vue-data-ui 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-B_RxfmEm.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-CxZcJFTo.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-BVYL-BUJ.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-CUoDRr-O.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-C6p_aThr.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-D0MCLs5n.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-B7yPJ3gL.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-DY21ivNe.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-b0vMRaq-.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-B5Vkoz9M.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CAMNq-p_.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-ImGOqm_J.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CterNJYe.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-BXNy6nuw.js} +2 -2
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-DPE8SY0_.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-ZU1GCbX0.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-z7nuSuSV.js} +219 -199
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-NDDbNbds.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-2a6NlQe3.js} +4 -4
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
- package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
- package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
- package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
- package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
- package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { o as Lt, f as je, g as Pl, c as Fl, t as Il, e as Ll, x as Ml, h as Mt, p as ie, a as
|
|
1
|
+
import { defineAsyncComponent as le, useSlots as _l, computed as f, shallowRef as Q, ref as p, onMounted as Tt, onBeforeUnmount as Pt, toRefs as Cl, watch as ye, createElementBlock as r, openBlock as s, normalizeStyle as C, normalizeClass as We, createBlock as ae, createCommentVNode as v, renderSlot as y, createElementVNode as h, createVNode as Te, unref as u, withCtx as b, normalizeProps as N, guardReactiveProps as Y, createSlots as qe, Fragment as k, renderList as I, mergeProps as He, toDisplayString as U, withDirectives as Ft, createTextVNode as Pe, vShow as It, Teleport as Al, resolveDynamicComponent as Sl, nextTick as Tl } from "vue";
|
|
2
|
+
import { o as Lt, f as je, g as Pl, c as Fl, t as Il, e as Ll, x as Ml, h as Mt, p as ie, a as W, d as X, T as zt, Z as zl, X as Ol, s as Fe, i as Dl, V as Nl, _ as P, W as ge, Y as $, $ as Ot, l as Yl, b as Xl, O as Qe, P as Bl, Q as Vl, G as El, a0 as Dt } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as Rl, u as Gl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Ul, a as Nt } from "./useNestedProp-
|
|
4
|
+
import { u as Ul, a as Nt } from "./useNestedProp-DjGXw6S9.js";
|
|
5
5
|
import { u as Wl } from "./usePrinter-DTzqpYKF.js";
|
|
6
6
|
import { u as ql, B as Hl } from "./BaseScanner-BgWxam9d.js";
|
|
7
7
|
import { u as jl } from "./useSvgExport-DrjCWun4.js";
|
|
@@ -9,11 +9,11 @@ import { u as Ql } from "./useUserOptionState-BIvW1Kz7.js";
|
|
|
9
9
|
import { u as Zl } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
10
|
import Jl from "./img-BecE5qXd.js";
|
|
11
11
|
import { _ as Kl } from "./Shape-CNXKB8O0.js";
|
|
12
|
-
import ea from "./Title-
|
|
12
|
+
import ea from "./Title-isbiM8i8.js";
|
|
13
13
|
import { t as ta } from "./themes-AUNCOb2G.js";
|
|
14
14
|
import la from "./Legend-G6GMcdAc.js";
|
|
15
15
|
import { _ as aa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const oa = ["id"],
|
|
16
|
+
const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "height"], ra = { key: 1 }, ia = ["id"], va = ["stop-color"], da = ["offset", "stop-color"], ca = ["offset", "stop-color"], ha = ["stop-color"], fa = { key: 2 }, ya = ["id", "cx", "cy"], ga = ["stop-color", "stop-opacity"], pa = ["stop-color"], ma = ["id"], ba = ["id"], wa = ["id"], ka = ["flood-color"], xa = ["id"], $a = ["flood-color"], _a = ["d", "stroke", "filter"], Ca = ["d", "stroke", "filter"], Aa = ["cx", "cy", "r", "fill", "filter"], Sa = { key: 6 }, Ta = ["stroke", "d"], Pa = ["d", "fill", "stroke", "stroke-width", "filter"], Fa = { key: 0 }, Ia = ["d", "fill", "stroke", "stroke-width", "filter"], La = { key: 0 }, Ma = ["stroke", "d"], za = { key: 0 }, Oa = ["d", "stroke", "stroke-width", "filter"], Da = { key: 1 }, Na = ["d", "fill", "stroke", "stroke-width", "filter"], Ya = ["d", "fill", "stroke", "stroke-width", "filter"], Xa = { key: 1 }, Ba = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Va = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ea = { key: 0 }, Ra = ["d", "fill", "stroke", "stroke-width"], Ga = ["cx", "cy", "r", "stroke"], Ua = ["cx", "cy", "r", "fill"], Wa = ["cx", "cy", "r"], qa = { key: 0 }, Ha = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], ja = { key: 1 }, Qa = ["cx", "cy", "r"], Za = ["x", "y", "fill", "font-size"], Ja = ["x", "y", "fill", "font-size"], Ka = ["x", "y", "fill", "font-size"], eo = ["x", "y", "fill", "font-size"], to = ["filter"], lo = { key: 0 }, ao = ["x", "y"], oo = { key: 1 }, no = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], so = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], uo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], ro = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], io = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], vo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], co = { key: 2 }, ho = ["x", "y", "width"], fo = ["x", "y", "width"], yo = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
19
|
}, go = ["id"], po = ["onClick"], mo = {
|
|
@@ -37,27 +37,27 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
37
37
|
},
|
|
38
38
|
emits: ["selectLegend", "selectDatapoint"],
|
|
39
39
|
setup(Ze, { expose: Yt, emit: Xt }) {
|
|
40
|
-
const Bt =
|
|
40
|
+
const Bt = le(() => import("./Tooltip-oWCO1HKy.js")), Vt = le(() => import("./BaseIcon-BmMbm4d0.js")), Et = le(() => import("./vue-ui-accordion-CqhVCfc2.js")), Rt = le(() => import("./DataTable-BT7VF2ua.js")), Gt = le(() => import("./PenAndPaper-SZQIAgkg.js")), Ut = le(() => import("./UserOptions-CGnQt6Fd.js")), Wt = le(() => import("./PackageVersion-DQvyATVa.js")), qt = le(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_donut: Ht } = Ul(), jt = _l(), x = Ze, we = f({
|
|
41
41
|
get() {
|
|
42
|
-
return !!
|
|
42
|
+
return !!x.dataset && x.dataset.length;
|
|
43
43
|
},
|
|
44
44
|
set(t) {
|
|
45
45
|
return t;
|
|
46
46
|
}
|
|
47
|
-
}),
|
|
47
|
+
}), B = Q(null), ke = p(null), Qt = p(null), Zt = p(null), Je = Q(null), Ke = Q(null), Z = Q(null), ve = Q(null), et = Q(null), tt = Q(null), lt = p(0), at = p(0), ot = p(0), nt = p(!1), pe = p(null), Ie = p(null), xe = f({
|
|
48
48
|
get: () => e.value.style.chart.layout.labels.percentage.fontSize,
|
|
49
49
|
set: (t) => t
|
|
50
|
-
}),
|
|
50
|
+
}), J = f({
|
|
51
51
|
get: () => e.value.style.chart.layout.labels.name.fontSize,
|
|
52
52
|
set: (t) => t
|
|
53
53
|
});
|
|
54
54
|
let Le = !1;
|
|
55
|
-
const
|
|
55
|
+
const q = () => {
|
|
56
56
|
!e.value.autoSize || Le || (Le = !0, requestAnimationFrame(() => {
|
|
57
57
|
Le = !1;
|
|
58
|
-
const t = e.value, a = ke.value, l =
|
|
58
|
+
const t = e.value, a = ke.value, l = oe.value;
|
|
59
59
|
if (!t.autoSize || !a || !l) return;
|
|
60
|
-
const [o, i, c,
|
|
60
|
+
const [o, i, c, w] = l.getAttribute("viewBox").split(" ").map(Number), A = { x: o, y: i, width: c, height: w }, O = [
|
|
61
61
|
{
|
|
62
62
|
selector: ".vue-data-ui-datalabel-value",
|
|
63
63
|
baseSize: t.style.chart.layout.labels.percentage.fontSize,
|
|
@@ -68,50 +68,50 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
68
68
|
selector: ".vue-data-ui-datalabel-name",
|
|
69
69
|
baseSize: t.style.chart.layout.labels.name.fontSize,
|
|
70
70
|
minSize: t.style.chart.layout.labels.name.minFontSize,
|
|
71
|
-
sizeRef:
|
|
71
|
+
sizeRef: J
|
|
72
72
|
}
|
|
73
73
|
];
|
|
74
|
-
O.map((
|
|
75
|
-
a.querySelectorAll(
|
|
76
|
-
const
|
|
74
|
+
O.map((G) => a.querySelectorAll(G.selector).length).reduce((G, te) => G + te, 0) !== 0 && O.forEach(({ selector: G, baseSize: te, minSize: Ue, sizeRef: kl }) => {
|
|
75
|
+
a.querySelectorAll(G).forEach((xl) => {
|
|
76
|
+
const $l = Yl({
|
|
77
77
|
el: xl,
|
|
78
78
|
bounds: A,
|
|
79
|
-
currentFontSize:
|
|
79
|
+
currentFontSize: te,
|
|
80
80
|
minFontSize: Ue,
|
|
81
81
|
attempts: 200,
|
|
82
82
|
padding: 1
|
|
83
83
|
});
|
|
84
|
-
kl.value =
|
|
84
|
+
kl.value = $l;
|
|
85
85
|
});
|
|
86
86
|
});
|
|
87
87
|
}));
|
|
88
88
|
};
|
|
89
89
|
Tt(async () => {
|
|
90
|
-
|
|
90
|
+
nt.value = !0, st(), requestAnimationFrame(q);
|
|
91
91
|
});
|
|
92
92
|
let Me;
|
|
93
93
|
Tt(() => {
|
|
94
|
-
|
|
94
|
+
B.value && (Me = new ResizeObserver((t) => {
|
|
95
95
|
for (const a of t) {
|
|
96
96
|
const { width: l, height: o } = a.contentRect;
|
|
97
97
|
if (l > 0 && o > 0) {
|
|
98
|
-
|
|
98
|
+
q();
|
|
99
99
|
break;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
}), Me.observe(
|
|
102
|
+
}), Me.observe(B.value.parentElement));
|
|
103
103
|
}), Pt(() => {
|
|
104
104
|
Me?.disconnect();
|
|
105
105
|
}), Pt(() => {
|
|
106
|
-
|
|
106
|
+
Z.value && (ve.value && Z.value.unobserve(ve.value), Z.value.disconnect());
|
|
107
107
|
});
|
|
108
|
-
const ze =
|
|
109
|
-
function
|
|
110
|
-
if (Lt(
|
|
108
|
+
const ze = f(() => !!e.value.debug);
|
|
109
|
+
function st() {
|
|
110
|
+
if (Lt(x.dataset) ? (je({
|
|
111
111
|
componentName: "VueUiDonut",
|
|
112
112
|
type: "dataset",
|
|
113
113
|
debug: ze.value
|
|
114
|
-
}), we.value = !1,
|
|
114
|
+
}), we.value = !1, _e.value = !0) : (x.dataset.forEach((t, a) => {
|
|
115
115
|
Pl({
|
|
116
116
|
datasetObject: t,
|
|
117
117
|
requiredAttributes: ["name", "values"]
|
|
@@ -122,9 +122,9 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
122
122
|
property: l,
|
|
123
123
|
index: a,
|
|
124
124
|
debug: ze.value
|
|
125
|
-
}), we.value = !1,
|
|
125
|
+
}), we.value = !1, _e.value = !0;
|
|
126
126
|
});
|
|
127
|
-
}),
|
|
127
|
+
}), x.dataset.forEach((t, a) => {
|
|
128
128
|
(!t.name || t.name === "") && je({
|
|
129
129
|
componentName: "VueUiDonut",
|
|
130
130
|
type: "datasetAttributeEmpty",
|
|
@@ -132,10 +132,10 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
132
132
|
index: a,
|
|
133
133
|
debug: ze.value
|
|
134
134
|
});
|
|
135
|
-
})), Lt(
|
|
135
|
+
})), Lt(x.dataset) || (_e.value = e.value.loading), e.value.responsive) {
|
|
136
136
|
const t = Rl(() => {
|
|
137
137
|
const { width: a, height: l } = Gl({
|
|
138
|
-
chart:
|
|
138
|
+
chart: B.value,
|
|
139
139
|
title: e.value.style.chart.title.text ? Je.value : null,
|
|
140
140
|
legend: e.value.style.chart.legend.show ? Ke.value : null,
|
|
141
141
|
source: et.value,
|
|
@@ -143,31 +143,31 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
143
143
|
padding: e.value.autoSize ? void 0 : dt.value
|
|
144
144
|
});
|
|
145
145
|
requestAnimationFrame(() => {
|
|
146
|
-
|
|
146
|
+
n.value.width = a, n.value.height = l, q();
|
|
147
147
|
});
|
|
148
148
|
});
|
|
149
|
-
|
|
149
|
+
Z.value && (ve.value && Z.value.unobserve(ve.value), Z.value.disconnect()), Z.value = new ResizeObserver(t), ve.value = B.value.parentNode, Z.value.observe(ve.value);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
const
|
|
153
|
-
|
|
154
|
-
const Oe =
|
|
152
|
+
const g = p(Fl());
|
|
153
|
+
p(null);
|
|
154
|
+
const Oe = p(!1), De = p(""), V = p(null), ut = p(0);
|
|
155
155
|
function Ne() {
|
|
156
156
|
const t = Nt({
|
|
157
|
-
userConfig:
|
|
157
|
+
userConfig: x.config,
|
|
158
158
|
defaultConfig: Ht
|
|
159
159
|
});
|
|
160
160
|
let a = {};
|
|
161
161
|
return t.theme ? a = {
|
|
162
162
|
...Nt({
|
|
163
|
-
userConfig: ta.vue_ui_donut[t.theme] ||
|
|
163
|
+
userConfig: ta.vue_ui_donut[t.theme] || x.config,
|
|
164
164
|
defaultConfig: t
|
|
165
165
|
}),
|
|
166
166
|
customPalette: Xl[t.theme] || ie
|
|
167
|
-
} : a = t,
|
|
167
|
+
} : a = t, x.config && Qe(x.config, "events.datapointEnter") ? a.events.datapointEnter = x.config.events.datapointEnter : a.events.datapointEnter = null, x.config && Qe(x.config, "events.datapointLeave") ? a.events.datapointLeave = x.config.events.datapointLeave : a.events.datapointLeave = null, x.config && Qe(x.config, "events.datapointClick") ? a.events.datapointClick = x.config.events.datapointClick : a.events.datapointClick = null, a;
|
|
168
168
|
}
|
|
169
|
-
const e =
|
|
170
|
-
...Cl(
|
|
169
|
+
const e = p(Ne()), { loading: $e, FINAL_DATASET: de, manualLoading: _e, skeletonDataset: Jt } = ql({
|
|
170
|
+
...Cl(x),
|
|
171
171
|
FINAL_CONFIG: e,
|
|
172
172
|
prepareConfig: Ne,
|
|
173
173
|
skeletonDataset: [
|
|
@@ -224,34 +224,34 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
})
|
|
227
|
-
}), S =
|
|
227
|
+
}), S = p(!0), H = Q([]);
|
|
228
228
|
function Kt(t, a = 1e3, l = 50) {
|
|
229
229
|
return new Promise((o) => {
|
|
230
230
|
const i = t.length;
|
|
231
|
-
|
|
231
|
+
H.value = Array(i).fill(0);
|
|
232
232
|
let c = 0;
|
|
233
|
-
t.forEach((
|
|
233
|
+
t.forEach((w, A) => {
|
|
234
234
|
setTimeout(() => {
|
|
235
235
|
const O = performance.now();
|
|
236
|
-
function D(
|
|
237
|
-
const
|
|
238
|
-
|
|
236
|
+
function D(G) {
|
|
237
|
+
const te = Math.min((G - O) / a, 1), Ue = Dt(te);
|
|
238
|
+
H.value[A] = w * Ue, H.value = [...H.value], te < 1 ? (requestAnimationFrame(D), requestAnimationFrame(q)) : (H.value[A] = w, H.value = [...H.value], c += 1, c === i && o(), requestAnimationFrame(q));
|
|
239
239
|
}
|
|
240
240
|
requestAnimationFrame(D);
|
|
241
241
|
}, A * l);
|
|
242
242
|
});
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
|
-
const rt =
|
|
246
|
-
|
|
247
|
-
() =>
|
|
245
|
+
const rt = p(!1);
|
|
246
|
+
ye(
|
|
247
|
+
() => $e.value,
|
|
248
248
|
async (t) => {
|
|
249
249
|
if (t || rt.value) return;
|
|
250
250
|
const a = de.value === Jt, l = e.value.startAnimation?.show;
|
|
251
251
|
if (!a && l) {
|
|
252
252
|
rt.value = !0;
|
|
253
253
|
const o = de.value.map(
|
|
254
|
-
(i) => i.values.reduce((c,
|
|
254
|
+
(i) => i.values.reduce((c, w) => c + w, 0)
|
|
255
255
|
);
|
|
256
256
|
await Kt(
|
|
257
257
|
o,
|
|
@@ -263,17 +263,17 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
263
263
|
},
|
|
264
264
|
{ immediate: !0 }
|
|
265
265
|
);
|
|
266
|
-
const { userOptionsVisible: Ye, setUserOptionsVisibility: it, keepUserOptionState: vt } = Ql({ config: e.value }), { svgRef:
|
|
266
|
+
const { userOptionsVisible: Ye, setUserOptionsVisibility: it, keepUserOptionState: vt } = Ql({ config: e.value }), { svgRef: oe } = Zl({ config: e.value.style.chart.title });
|
|
267
267
|
function el() {
|
|
268
268
|
it(!0);
|
|
269
269
|
}
|
|
270
270
|
function tl() {
|
|
271
271
|
it(!1);
|
|
272
272
|
}
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
ye(() => x.config, (t) => {
|
|
274
|
+
$e.value || (e.value = Ne()), Ye.value = !e.value.userOptions.showOnChartHover, st(), lt.value += 1, at.value += 1, ot.value += 1, m.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show, n.value.height = e.value.style.chart.height, n.value.width = e.value.style.chart.width;
|
|
275
275
|
}, { deep: !0 });
|
|
276
|
-
const dt =
|
|
276
|
+
const dt = f(() => {
|
|
277
277
|
const { top: t, right: a, bottom: l, left: o } = e.value.style.chart.padding;
|
|
278
278
|
return {
|
|
279
279
|
css: `padding:${t}px ${a}px ${l}px ${o}px`,
|
|
@@ -282,19 +282,19 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
282
282
|
bottom: l,
|
|
283
283
|
left: o
|
|
284
284
|
};
|
|
285
|
-
}), { isPrinting: ct, isImaging: ht, generatePdf:
|
|
286
|
-
elementId: `donut__${
|
|
285
|
+
}), { isPrinting: ct, isImaging: ht, generatePdf: ft, generateImage: yt } = Wl({
|
|
286
|
+
elementId: `donut__${g.value}`,
|
|
287
287
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
288
288
|
options: e.value.userOptions.print
|
|
289
|
-
}), ll =
|
|
289
|
+
}), ll = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), gt = f(() => Ll(e.value.customPalette)), m = p({
|
|
290
290
|
dataLabels: {
|
|
291
291
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
292
292
|
},
|
|
293
293
|
showTable: e.value.table.show,
|
|
294
294
|
showTooltip: e.value.style.chart.tooltip.show
|
|
295
295
|
});
|
|
296
|
-
|
|
297
|
-
|
|
296
|
+
ye(e, () => {
|
|
297
|
+
m.value = {
|
|
298
298
|
dataLabels: {
|
|
299
299
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
300
300
|
},
|
|
@@ -302,15 +302,15 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
302
302
|
showTooltip: e.value.style.chart.tooltip.show
|
|
303
303
|
};
|
|
304
304
|
}, { immediate: !0 });
|
|
305
|
-
const
|
|
305
|
+
const n = p({
|
|
306
306
|
height: e.value.style.chart.height,
|
|
307
307
|
width: e.value.style.chart.width
|
|
308
|
-
}),
|
|
308
|
+
}), ne = f(() => {
|
|
309
309
|
if (e.value.pie)
|
|
310
310
|
return _.value;
|
|
311
|
-
const t = e.value.style.chart.layout.donut.strokeWidth / 512, a = Math.min(
|
|
311
|
+
const t = e.value.style.chart.layout.donut.strokeWidth / 512, a = Math.min(n.value.width, n.value.height) * t, l = a > _.value ? _.value : a;
|
|
312
312
|
return Math.max(l, 12 * (1 + t));
|
|
313
|
-
}), pt = Xt, L =
|
|
313
|
+
}), pt = Xt, L = f(() => de.value.map((t, a) => ({
|
|
314
314
|
name: t.name,
|
|
315
315
|
color: Mt(t.color) || gt.value[a] || ie[a] || ie[a % ie.length],
|
|
316
316
|
value: Ml(t.values.reduce((l, o) => l + o, 0)),
|
|
@@ -319,14 +319,14 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
319
319
|
patternIndex: a,
|
|
320
320
|
seriesIndex: a,
|
|
321
321
|
ghost: !1,
|
|
322
|
-
pattern: `pattern_${
|
|
322
|
+
pattern: `pattern_${g.value}_${a}`
|
|
323
323
|
})));
|
|
324
|
-
|
|
325
|
-
Array.isArray(t) && t.length > 0 && (
|
|
324
|
+
ye(() => x.dataset, (t) => {
|
|
325
|
+
Array.isArray(t) && t.length > 0 && (_e.value = !1);
|
|
326
326
|
}, { immediate: !0 });
|
|
327
|
-
const M =
|
|
328
|
-
|
|
329
|
-
M.value = t, requestAnimationFrame(
|
|
327
|
+
const M = Q(L.value);
|
|
328
|
+
ye(() => L.value, (t) => {
|
|
329
|
+
M.value = t, requestAnimationFrame(q);
|
|
330
330
|
});
|
|
331
331
|
function al() {
|
|
332
332
|
return L.value.map((t) => ({
|
|
@@ -335,12 +335,12 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
335
335
|
value: t.value
|
|
336
336
|
}));
|
|
337
337
|
}
|
|
338
|
-
const z =
|
|
338
|
+
const z = p([]), se = p(!1);
|
|
339
339
|
function mt({ from: t, to: a, duration: l, onUpdate: o, onDone: i, easing: c = Dt }) {
|
|
340
|
-
const
|
|
340
|
+
const w = performance.now();
|
|
341
341
|
function A(O) {
|
|
342
|
-
const D = Math.min((O -
|
|
343
|
-
o(
|
|
342
|
+
const D = Math.min((O - w) / l, 1), G = c(D), te = t + (a - t) * G;
|
|
343
|
+
o(te, D), D < 1 ? requestAnimationFrame(A) : (o(a, 1), i && i());
|
|
344
344
|
}
|
|
345
345
|
requestAnimationFrame(A);
|
|
346
346
|
}
|
|
@@ -352,47 +352,47 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
352
352
|
M.value = M.value.map(
|
|
353
353
|
(A, O) => t === O ? { ...A, value: i } : A
|
|
354
354
|
);
|
|
355
|
-
},
|
|
356
|
-
|
|
355
|
+
}, w = function() {
|
|
356
|
+
se.value = !0, mt({
|
|
357
357
|
from: o,
|
|
358
358
|
to: i,
|
|
359
359
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
360
360
|
onUpdate: (A, O) => {
|
|
361
361
|
M.value = M.value.map(
|
|
362
|
-
(D,
|
|
363
|
-
), requestAnimationFrame(
|
|
362
|
+
(D, G) => t === G ? { ...D, value: A } : D
|
|
363
|
+
), requestAnimationFrame(q);
|
|
364
364
|
},
|
|
365
365
|
onDone: () => {
|
|
366
|
-
c(),
|
|
366
|
+
c(), se.value = !1;
|
|
367
367
|
}
|
|
368
368
|
});
|
|
369
369
|
};
|
|
370
370
|
z.value = z.value.filter((A) => A !== t);
|
|
371
371
|
const i = a.value;
|
|
372
|
-
e.value.serieToggleAnimation.show && e.value.type === "classic" ?
|
|
372
|
+
e.value.serieToggleAnimation.show && e.value.type === "classic" ? w() : (c(), requestAnimationFrame(q));
|
|
373
373
|
} else if (z.value.length < L.value.length - 1) {
|
|
374
374
|
let i = function() {
|
|
375
375
|
z.value.push(t), M.value = M.value.map(
|
|
376
|
-
(
|
|
376
|
+
(w, A) => t === A ? { ...w, value: 0 } : w
|
|
377
377
|
);
|
|
378
378
|
}, c = function() {
|
|
379
|
-
|
|
379
|
+
se.value = !0, mt({
|
|
380
380
|
from: o,
|
|
381
381
|
to: 0,
|
|
382
382
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
383
|
-
onUpdate: (
|
|
383
|
+
onUpdate: (w, A) => {
|
|
384
384
|
M.value = M.value.map(
|
|
385
|
-
(O, D) => t === D ? { ...O, value:
|
|
386
|
-
), requestAnimationFrame(
|
|
385
|
+
(O, D) => t === D ? { ...O, value: w } : O
|
|
386
|
+
), requestAnimationFrame(q);
|
|
387
387
|
},
|
|
388
388
|
onDone: () => {
|
|
389
|
-
i(), requestAnimationFrame(
|
|
389
|
+
i(), requestAnimationFrame(q), se.value = !1;
|
|
390
390
|
}
|
|
391
391
|
});
|
|
392
392
|
};
|
|
393
393
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? c() : i();
|
|
394
394
|
}
|
|
395
|
-
pt("selectLegend",
|
|
395
|
+
pt("selectLegend", j.value.map((i) => ({
|
|
396
396
|
name: i.name,
|
|
397
397
|
color: i.color,
|
|
398
398
|
value: i.value
|
|
@@ -408,18 +408,18 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
408
408
|
const a = bt(t);
|
|
409
409
|
a !== null && z.value.includes(a.seriesIndex) && Ce(a.seriesIndex);
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function nl(t) {
|
|
412
412
|
const a = bt(t);
|
|
413
413
|
a !== null && (z.value.includes(a.seriesIndex) || Ce(a.seriesIndex));
|
|
414
414
|
}
|
|
415
|
-
const
|
|
416
|
-
if (S.value &&
|
|
417
|
-
const t =
|
|
415
|
+
const sl = f(() => de.value.reduce((t, a) => t + a.values.reduce((l, o) => l + o, 0), 0)), j = f(() => {
|
|
416
|
+
if (S.value && !$e.value) {
|
|
417
|
+
const t = H.value.map((l, o) => ({
|
|
418
418
|
...L.value[o],
|
|
419
419
|
value: l,
|
|
420
420
|
color: L.value[o].color,
|
|
421
421
|
ghost: !1
|
|
422
|
-
})), a =
|
|
422
|
+
})), a = sl.value - H.value.reduce((l, o) => l + o, 0);
|
|
423
423
|
return a > 0 && t.push({
|
|
424
424
|
name: "__ghost__",
|
|
425
425
|
value: a,
|
|
@@ -437,8 +437,8 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
437
437
|
...t,
|
|
438
438
|
seriesIndex: a
|
|
439
439
|
})).filter((t, a) => !z.value.includes(a));
|
|
440
|
-
}), Xe =
|
|
441
|
-
const l = (t.values || []).reduce((i, c) => i + c, 0), o = l / de.value.map((i) => (i.values || []).reduce((c,
|
|
440
|
+
}), Xe = f(() => de.value.map((t, a) => {
|
|
441
|
+
const l = (t.values || []).reduce((i, c) => i + c, 0), o = l / de.value.map((i) => (i.values || []).reduce((c, w) => c + w, 0)).reduce((i, c) => i + c, 0);
|
|
442
442
|
return {
|
|
443
443
|
name: t.name,
|
|
444
444
|
color: Mt(t.color) || gt.value[a] || ie[a] || ie[a % ie.length],
|
|
@@ -450,29 +450,29 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
450
450
|
}).map((t, a) => ({
|
|
451
451
|
...t,
|
|
452
452
|
opacity: z.value.includes(a) ? 0.5 : 1,
|
|
453
|
-
segregate: () => !
|
|
453
|
+
segregate: () => !se.value && Ce(a),
|
|
454
454
|
isSegregated: z.value.includes(a),
|
|
455
|
-
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ?
|
|
455
|
+
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? W(e.value.style.chart.layout.labels.value.formatter, t.value, X({
|
|
456
456
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
457
457
|
v: t.value,
|
|
458
458
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
459
459
|
r: e.value.style.chart.legend.roundingValue
|
|
460
|
-
}), { datapoint: t, index: a }) : ""}${e.value.style.chart.legend.showPercentage ? z.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${cl(t.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / F.value) ? "-" :
|
|
460
|
+
}), { datapoint: t, index: a }) : ""}${e.value.style.chart.legend.showPercentage ? z.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${cl(t.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / F.value) ? "-" : W(e.value.style.chart.layout.labels.percentage.formatter, wt(t), X({
|
|
461
461
|
v: wt(t),
|
|
462
462
|
s: "%",
|
|
463
463
|
r: e.value.style.chart.legend.roundingPercentage
|
|
464
464
|
}))}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
465
|
-
}))), ul =
|
|
465
|
+
}))), ul = f(() => ({
|
|
466
466
|
cy: "donut-div-legend",
|
|
467
467
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
468
468
|
color: e.value.style.chart.legend.color,
|
|
469
469
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
470
470
|
paddingBottom: 12,
|
|
471
471
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
472
|
-
})), _ =
|
|
473
|
-
const t = e.value.style.chart.layout.donut.radiusRatio, a = Math.max(0.1, Math.min(0.50001, t)), l = Math.min(
|
|
472
|
+
})), _ = f(() => {
|
|
473
|
+
const t = e.value.style.chart.layout.donut.radiusRatio, a = Math.max(0.1, Math.min(0.50001, t)), l = Math.min(n.value.width * a, n.value.height * a);
|
|
474
474
|
return Math.max(12, l);
|
|
475
|
-
}), T =
|
|
475
|
+
}), T = f(() => zt({ series: j.value }, n.value.width / 2, n.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, ne.value)), rl = f(() => Math.abs(j.value.map((t) => t.value).reduce((t, a) => t + a, 0)) > 0), il = f(() => zt({
|
|
476
476
|
series: [
|
|
477
477
|
{
|
|
478
478
|
value: 1,
|
|
@@ -484,33 +484,33 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
484
484
|
absoluteValues: [1]
|
|
485
485
|
}
|
|
486
486
|
]
|
|
487
|
-
},
|
|
488
|
-
const t = Math.max(...
|
|
487
|
+
}, n.value.width / 2, n.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, ne.value)), E = f(() => T.value.filter((t) => !t.ghost)), d = f(() => {
|
|
488
|
+
const t = Math.max(...j.value.map((l) => l.value)), a = j.value.map((l) => l.value / t);
|
|
489
489
|
return zl({
|
|
490
490
|
series: a,
|
|
491
491
|
center: {
|
|
492
|
-
x:
|
|
493
|
-
y:
|
|
492
|
+
x: n.value.width / 2,
|
|
493
|
+
y: n.value.height / 2
|
|
494
494
|
},
|
|
495
|
-
maxRadius: Math.min(
|
|
495
|
+
maxRadius: Math.min(n.value.width, n.value.height) / 3,
|
|
496
496
|
hasGhost: S.value
|
|
497
497
|
});
|
|
498
498
|
});
|
|
499
499
|
function ce(t) {
|
|
500
|
-
return t.x >
|
|
500
|
+
return t.x > n.value.width / 2 + 6 ? "start" : t.x < n.value.width / 2 - 6 ? "end" : "middle";
|
|
501
501
|
}
|
|
502
502
|
function vl(t) {
|
|
503
|
-
return t.middlePoint.y >
|
|
503
|
+
return t.middlePoint.y > n.value.height / 2 ? P({ initX: t.middlePoint.x, initY: t.middlePoint.y, offset: 100, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y : P({ initX: t.middlePoint.x, initY: t.middlePoint.y, offset: 0, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y - 100;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function R(t) {
|
|
506
506
|
return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
507
507
|
}
|
|
508
508
|
function Be(t, a) {
|
|
509
509
|
const l = t.value / dl(a);
|
|
510
|
-
return isNaN(l) ? 0 :
|
|
510
|
+
return isNaN(l) ? 0 : W(
|
|
511
511
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
512
512
|
l * 100,
|
|
513
|
-
|
|
513
|
+
X({
|
|
514
514
|
v: l * 100,
|
|
515
515
|
s: "%",
|
|
516
516
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
@@ -521,35 +521,35 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
521
521
|
function dl(t) {
|
|
522
522
|
return [...t].map((a) => a.value).reduce((a, l) => a + l, 0);
|
|
523
523
|
}
|
|
524
|
-
const F =
|
|
524
|
+
const F = f(() => j.value.map((t) => t.value).reduce((t, a) => t + a, 0)), Ve = f(() => F.value / j.value.length);
|
|
525
525
|
function wt(t) {
|
|
526
|
-
return
|
|
526
|
+
return se.value ? t.proportion * 100 : t.value / F.value * 100;
|
|
527
527
|
}
|
|
528
|
-
const Ee =
|
|
528
|
+
const Ee = p(null), me = p(!1);
|
|
529
529
|
function he({ datapoint: t, seriesIndex: a }) {
|
|
530
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), Oe.value = !1,
|
|
530
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), Oe.value = !1, V.value = null;
|
|
531
531
|
}
|
|
532
|
-
function
|
|
533
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), Ee.value = { datapoint: t, seriesIndex: l, config: e.value, series: L.value }, Oe.value = o,
|
|
532
|
+
function fe({ datapoint: t, relativeIndex: a, seriesIndex: l, show: o = !1 }) {
|
|
533
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), Ee.value = { datapoint: t, seriesIndex: l, config: e.value, series: L.value }, Oe.value = o, V.value = a;
|
|
534
534
|
let i = "";
|
|
535
535
|
const c = e.value.style.chart.tooltip.customFormat;
|
|
536
536
|
if (me.value = !1, El(c))
|
|
537
537
|
try {
|
|
538
|
-
const
|
|
538
|
+
const w = c({
|
|
539
539
|
seriesIndex: l,
|
|
540
540
|
datapoint: t,
|
|
541
541
|
series: L.value,
|
|
542
542
|
config: e.value
|
|
543
543
|
});
|
|
544
|
-
typeof
|
|
544
|
+
typeof w == "string" && (De.value = w, me.value = !0);
|
|
545
545
|
} catch {
|
|
546
546
|
console.warn("Custom format cannot be applied."), me.value = !1;
|
|
547
547
|
}
|
|
548
548
|
if (!me.value) {
|
|
549
|
-
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;">${t.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="${t.color}"/>${jt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${
|
|
549
|
+
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;">${t.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="${t.color}"/>${jt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${g.value}_${l})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (i += `<b>${W(
|
|
550
550
|
e.value.style.chart.layout.labels.value.formatter,
|
|
551
551
|
t.value,
|
|
552
|
-
|
|
552
|
+
X({
|
|
553
553
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
554
554
|
v: t.value,
|
|
555
555
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -561,10 +561,10 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
561
561
|
seriesIndex: l
|
|
562
562
|
}
|
|
563
563
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
564
|
-
const
|
|
564
|
+
const w = W(
|
|
565
565
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
566
566
|
t.proportion * 100,
|
|
567
|
-
|
|
567
|
+
X({
|
|
568
568
|
v: t.proportion * 100,
|
|
569
569
|
s: "%",
|
|
570
570
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -575,41 +575,41 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
575
575
|
seriesIndex: l
|
|
576
576
|
}
|
|
577
577
|
);
|
|
578
|
-
e.value.style.chart.tooltip.showValue ? i += `<span>(${
|
|
578
|
+
e.value.style.chart.tooltip.showValue ? i += `<span>(${w})</span></div>` : i += `<b>${w}</b></div>`;
|
|
579
579
|
}
|
|
580
580
|
e.value.style.chart.comments.showInTooltip && t.comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${t.color}">${t.comment}</div>`), De.value = `<div>${i}</div>`;
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
|
-
function
|
|
584
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(
|
|
583
|
+
function ue(t) {
|
|
584
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(V.value) && V.value !== t ? `url(#blur_${g.value})` : "";
|
|
585
585
|
}
|
|
586
|
-
const
|
|
587
|
-
const t =
|
|
586
|
+
const K = f(() => {
|
|
587
|
+
const t = j.value.map((l) => ({
|
|
588
588
|
name: l.name,
|
|
589
589
|
color: l.color
|
|
590
|
-
})), a =
|
|
590
|
+
})), a = j.value.map((l) => l.value);
|
|
591
591
|
return { head: t, body: a };
|
|
592
592
|
});
|
|
593
593
|
function Re(t = null) {
|
|
594
594
|
Tl(() => {
|
|
595
|
-
const a =
|
|
595
|
+
const a = K.value.head.map((i, c) => [[
|
|
596
596
|
i.name
|
|
597
|
-
], [
|
|
597
|
+
], [K.value.body[c]], [isNaN(K.value.body[c] / F.value) ? "-" : K.value.body[c] / F.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Bl(l);
|
|
598
598
|
t ? t(o) : Vl({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
|
-
const Ae =
|
|
601
|
+
const Ae = f(() => {
|
|
602
602
|
const t = [
|
|
603
603
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
604
|
-
|
|
604
|
+
X({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: F.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
605
605
|
"100%"
|
|
606
|
-
], a =
|
|
606
|
+
], a = K.value.head.map((i, c) => [
|
|
607
607
|
{
|
|
608
608
|
color: i.color,
|
|
609
609
|
name: i.name || "-"
|
|
610
610
|
},
|
|
611
|
-
|
|
612
|
-
isNaN(
|
|
611
|
+
K.value.body[c],
|
|
612
|
+
isNaN(K.value.body[c] / F.value) ? "-" : (K.value.body[c] / F.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
613
613
|
]), l = {
|
|
614
614
|
th: {
|
|
615
615
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -633,33 +633,33 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
633
633
|
body: a,
|
|
634
634
|
config: l
|
|
635
635
|
};
|
|
636
|
-
}),
|
|
636
|
+
}), re = p(!1);
|
|
637
637
|
function kt(t) {
|
|
638
|
-
|
|
638
|
+
re.value = t, ut.value += 1;
|
|
639
639
|
}
|
|
640
|
-
const xt =
|
|
640
|
+
const xt = f(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
641
641
|
function cl(t) {
|
|
642
642
|
return t.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((a) => "-").join("");
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function ee(t, a) {
|
|
645
645
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.seriesIndex }), pt("selectDatapoint", { datapoint: t, index: a });
|
|
646
646
|
}
|
|
647
|
-
function _t() {
|
|
648
|
-
p.value.showTable = !p.value.showTable;
|
|
649
|
-
}
|
|
650
647
|
function $t() {
|
|
651
|
-
|
|
648
|
+
m.value.showTable = !m.value.showTable;
|
|
649
|
+
}
|
|
650
|
+
function _t() {
|
|
651
|
+
m.value.dataLabels.show = !m.value.dataLabels.show;
|
|
652
652
|
}
|
|
653
653
|
function Ct() {
|
|
654
|
-
|
|
654
|
+
m.value.showTooltip = !m.value.showTooltip;
|
|
655
655
|
}
|
|
656
|
-
const Se =
|
|
656
|
+
const Se = p(!1);
|
|
657
657
|
function Ge() {
|
|
658
658
|
Se.value = !Se.value;
|
|
659
659
|
}
|
|
660
660
|
async function hl({ scale: t = 2 } = {}) {
|
|
661
|
-
if (!
|
|
662
|
-
const { width: a, height: l } =
|
|
661
|
+
if (!B.value) return;
|
|
662
|
+
const { width: a, height: l } = B.value.getBoundingClientRect(), o = a / l, { imageUri: i, base64: c } = await Jl({ domElement: B.value, base64: !0, img: !0, scale: t });
|
|
663
663
|
return {
|
|
664
664
|
imageUri: i,
|
|
665
665
|
base64: c,
|
|
@@ -669,13 +669,13 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
669
669
|
aspectRatio: o
|
|
670
670
|
};
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function fl() {
|
|
673
673
|
if (!ke.value) return;
|
|
674
674
|
const { x: t, y: a, width: l, height: o } = ke.value.getBBox();
|
|
675
|
-
|
|
675
|
+
oe.value && oe.value.setAttribute("viewBox", `${t} ${a} ${l + Math.min(0, t)} ${o + Math.min(0, a)}`);
|
|
676
676
|
}
|
|
677
|
-
const be =
|
|
678
|
-
const t = e.value.table.useDialog && !e.value.table.show, a =
|
|
677
|
+
const be = f(() => {
|
|
678
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = m.value.showTable;
|
|
679
679
|
return {
|
|
680
680
|
component: t ? qt : Et,
|
|
681
681
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -684,8 +684,8 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
684
684
|
color: e.value.table.th.color,
|
|
685
685
|
headerColor: e.value.table.th.color,
|
|
686
686
|
headerBg: e.value.table.th.backgroundColor,
|
|
687
|
-
isFullscreen:
|
|
688
|
-
fullscreenParent:
|
|
687
|
+
isFullscreen: re.value,
|
|
688
|
+
fullscreenParent: B.value,
|
|
689
689
|
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
690
690
|
} : {
|
|
691
691
|
hideDetails: !0,
|
|
@@ -704,20 +704,20 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
704
704
|
}
|
|
705
705
|
};
|
|
706
706
|
});
|
|
707
|
-
|
|
707
|
+
ye(() => m.value.showTable, (t) => {
|
|
708
708
|
e.value.table.show || (t && e.value.table.useDialog && pe.value ? pe.value.open() : "close" in pe.value && pe.value.close());
|
|
709
709
|
});
|
|
710
710
|
function At() {
|
|
711
|
-
|
|
711
|
+
m.value.showTable = !1, Ie.value && Ie.value.setTableIconState(!1);
|
|
712
712
|
}
|
|
713
|
-
const
|
|
713
|
+
const yl = f(() => Xe.value.map((t) => ({
|
|
714
714
|
...t,
|
|
715
715
|
name: t.display
|
|
716
|
-
}))), gl =
|
|
717
|
-
svg:
|
|
716
|
+
}))), gl = f(() => e.value.style.chart.backgroundColor), pl = f(() => e.value.style.chart.legend), ml = f(() => e.value.style.chart.title), { exportSvg: bl, getSvg: wl } = jl({
|
|
717
|
+
svg: oe,
|
|
718
718
|
title: ml,
|
|
719
719
|
legend: pl,
|
|
720
|
-
legendItems:
|
|
720
|
+
legendItems: yl,
|
|
721
721
|
backgroundColor: gl
|
|
722
722
|
});
|
|
723
723
|
async function St({ isCb: t }) {
|
|
@@ -728,52 +728,72 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
728
728
|
bl();
|
|
729
729
|
}
|
|
730
730
|
return Yt({
|
|
731
|
-
autoSize:
|
|
731
|
+
autoSize: fl,
|
|
732
732
|
getData: al,
|
|
733
733
|
getImage: hl,
|
|
734
|
-
generatePdf:
|
|
734
|
+
generatePdf: ft,
|
|
735
735
|
generateCsv: Re,
|
|
736
|
-
generateImage:
|
|
736
|
+
generateImage: yt,
|
|
737
737
|
generateSvg: St,
|
|
738
|
-
hideSeries:
|
|
738
|
+
hideSeries: nl,
|
|
739
739
|
showSeries: ol,
|
|
740
|
-
toggleTable:
|
|
741
|
-
toggleLabels:
|
|
740
|
+
toggleTable: $t,
|
|
741
|
+
toggleLabels: _t,
|
|
742
742
|
toggleTooltip: Ct,
|
|
743
743
|
toggleAnnotator: Ge,
|
|
744
744
|
toggleFullscreen: kt
|
|
745
|
-
}), (t, a) => (
|
|
745
|
+
}), (t, a) => (s(), r("div", {
|
|
746
746
|
ref_key: "donutChart",
|
|
747
|
-
ref:
|
|
748
|
-
class: We(`vue-data-ui-component vue-ui-donut ${
|
|
749
|
-
style:
|
|
750
|
-
id: `donut__${
|
|
747
|
+
ref: B,
|
|
748
|
+
class: We(`vue-data-ui-component vue-ui-donut ${re.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
749
|
+
style: C(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
750
|
+
id: `donut__${g.value}`,
|
|
751
751
|
onMouseenter: el,
|
|
752
752
|
onMouseleave: tl
|
|
753
753
|
}, [
|
|
754
|
-
e.value.userOptions.buttons.annotator && u(
|
|
754
|
+
e.value.userOptions.buttons.annotator && u(oe) ? (s(), ae(u(Gt), {
|
|
755
755
|
key: 0,
|
|
756
756
|
color: e.value.style.chart.color,
|
|
757
757
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
758
758
|
active: Se.value,
|
|
759
|
-
svgRef: u(
|
|
759
|
+
svgRef: u(oe),
|
|
760
760
|
onClose: Ge
|
|
761
|
-
},
|
|
762
|
-
|
|
763
|
-
|
|
761
|
+
}, {
|
|
762
|
+
"annotator-action-close": b(() => [
|
|
763
|
+
y(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
764
|
+
]),
|
|
765
|
+
"annotator-action-color": b(({ color: l }) => [
|
|
766
|
+
y(t.$slots, "annotator-action-color", N(Y({ color: l })), void 0, !0)
|
|
767
|
+
]),
|
|
768
|
+
"annotator-action-draw": b(({ mode: l }) => [
|
|
769
|
+
y(t.$slots, "annotator-action-draw", N(Y({ mode: l })), void 0, !0)
|
|
770
|
+
]),
|
|
771
|
+
"annotator-action-undo": b(({ disabled: l }) => [
|
|
772
|
+
y(t.$slots, "annotator-action-undo", N(Y({ disabled: l })), void 0, !0)
|
|
773
|
+
]),
|
|
774
|
+
"annotator-action-redo": b(({ disabled: l }) => [
|
|
775
|
+
y(t.$slots, "annotator-action-redo", N(Y({ disabled: l })), void 0, !0)
|
|
776
|
+
]),
|
|
777
|
+
"annotator-action-delete": b(({ disabled: l }) => [
|
|
778
|
+
y(t.$slots, "annotator-action-delete", N(Y({ disabled: l })), void 0, !0)
|
|
779
|
+
]),
|
|
780
|
+
_: 3
|
|
781
|
+
}, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
782
|
+
y(t.$slots, "userConfig", {}, void 0, !0),
|
|
783
|
+
ll.value ? (s(), r("div", {
|
|
764
784
|
key: 1,
|
|
765
785
|
ref_key: "noTitle",
|
|
766
786
|
ref: tt,
|
|
767
787
|
class: "vue-data-ui-no-title-space",
|
|
768
788
|
style: "height:36px; width: 100%;background:transparent"
|
|
769
789
|
}, null, 512)) : v("", !0),
|
|
770
|
-
e.value.style.chart.title.text ? (
|
|
790
|
+
e.value.style.chart.title.text ? (s(), r("div", {
|
|
771
791
|
key: 2,
|
|
772
792
|
ref_key: "chartTitle",
|
|
773
793
|
ref: Je,
|
|
774
794
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
775
795
|
}, [
|
|
776
|
-
(
|
|
796
|
+
(s(), ae(ea, {
|
|
777
797
|
key: `title_${lt.value}`,
|
|
778
798
|
config: {
|
|
779
799
|
title: {
|
|
@@ -788,9 +808,9 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
788
808
|
}, null, 8, ["config"]))
|
|
789
809
|
], 512)) : v("", !0),
|
|
790
810
|
h("div", {
|
|
791
|
-
id: `legend-top-${
|
|
792
|
-
}, null, 8,
|
|
793
|
-
e.value.userOptions.show && we.value && (u(vt) || u(Ye)) ? (
|
|
811
|
+
id: `legend-top-${g.value}`
|
|
812
|
+
}, null, 8, na),
|
|
813
|
+
e.value.userOptions.show && we.value && (u(vt) || u(Ye)) ? (s(), ae(u(Ut), {
|
|
794
814
|
ref_key: "userOptionsRef",
|
|
795
815
|
ref: Ie,
|
|
796
816
|
key: `user_option_${ut.value}`,
|
|
@@ -798,7 +818,7 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
798
818
|
color: e.value.style.chart.color,
|
|
799
819
|
isPrinting: u(ct),
|
|
800
820
|
isImaging: u(ht),
|
|
801
|
-
uid:
|
|
821
|
+
uid: g.value,
|
|
802
822
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
803
823
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
804
824
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -807,105 +827,105 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
807
827
|
hasTable: e.value.userOptions.buttons.table,
|
|
808
828
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
809
829
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
810
|
-
isFullscreen:
|
|
811
|
-
chartElement:
|
|
830
|
+
isFullscreen: re.value,
|
|
831
|
+
chartElement: B.value,
|
|
812
832
|
position: e.value.userOptions.position,
|
|
813
833
|
callbacks: e.value.userOptions.callbacks,
|
|
814
|
-
isTooltip:
|
|
834
|
+
isTooltip: m.value.showTooltip,
|
|
815
835
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
816
836
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
817
837
|
isAnnotation: Se.value,
|
|
818
838
|
printScale: e.value.userOptions.print.scale,
|
|
819
839
|
tableDialog: e.value.table.useDialog,
|
|
820
840
|
onToggleFullscreen: kt,
|
|
821
|
-
onGeneratePdf: u(
|
|
841
|
+
onGeneratePdf: u(ft),
|
|
822
842
|
onGenerateCsv: Re,
|
|
823
|
-
onGenerateImage: u(
|
|
843
|
+
onGenerateImage: u(yt),
|
|
824
844
|
onGenerateSvg: St,
|
|
825
|
-
onToggleTable:
|
|
826
|
-
onToggleLabels:
|
|
845
|
+
onToggleTable: $t,
|
|
846
|
+
onToggleLabels: _t,
|
|
827
847
|
onToggleTooltip: Ct,
|
|
828
848
|
onToggleAnnotator: Ge,
|
|
829
|
-
style:
|
|
849
|
+
style: C({ visibility: u(vt) ? u(Ye) ? "visible" : "hidden" : "visible" })
|
|
830
850
|
}, qe({ _: 2 }, [
|
|
831
851
|
t.$slots.menuIcon ? {
|
|
832
852
|
name: "menuIcon",
|
|
833
|
-
fn:
|
|
834
|
-
|
|
853
|
+
fn: b(({ isOpen: l, color: o }) => [
|
|
854
|
+
y(t.$slots, "menuIcon", N(Y({ isOpen: l, color: o })), void 0, !0)
|
|
835
855
|
]),
|
|
836
856
|
key: "0"
|
|
837
857
|
} : void 0,
|
|
838
858
|
t.$slots.optionTooltip ? {
|
|
839
859
|
name: "optionTooltip",
|
|
840
|
-
fn:
|
|
841
|
-
|
|
860
|
+
fn: b(() => [
|
|
861
|
+
y(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
842
862
|
]),
|
|
843
863
|
key: "1"
|
|
844
864
|
} : void 0,
|
|
845
865
|
t.$slots.optionPdf ? {
|
|
846
866
|
name: "optionPdf",
|
|
847
|
-
fn:
|
|
848
|
-
|
|
867
|
+
fn: b(() => [
|
|
868
|
+
y(t.$slots, "optionPdf", {}, void 0, !0)
|
|
849
869
|
]),
|
|
850
870
|
key: "2"
|
|
851
871
|
} : void 0,
|
|
852
872
|
t.$slots.optionCsv ? {
|
|
853
873
|
name: "optionCsv",
|
|
854
|
-
fn:
|
|
855
|
-
|
|
874
|
+
fn: b(() => [
|
|
875
|
+
y(t.$slots, "optionCsv", {}, void 0, !0)
|
|
856
876
|
]),
|
|
857
877
|
key: "3"
|
|
858
878
|
} : void 0,
|
|
859
879
|
t.$slots.optionImg ? {
|
|
860
880
|
name: "optionImg",
|
|
861
|
-
fn:
|
|
862
|
-
|
|
881
|
+
fn: b(() => [
|
|
882
|
+
y(t.$slots, "optionImg", {}, void 0, !0)
|
|
863
883
|
]),
|
|
864
884
|
key: "4"
|
|
865
885
|
} : void 0,
|
|
866
886
|
t.$slots.optionSvg ? {
|
|
867
887
|
name: "optionSvg",
|
|
868
|
-
fn:
|
|
869
|
-
|
|
888
|
+
fn: b(() => [
|
|
889
|
+
y(t.$slots, "optionSvg", {}, void 0, !0)
|
|
870
890
|
]),
|
|
871
891
|
key: "5"
|
|
872
892
|
} : void 0,
|
|
873
893
|
t.$slots.optionTable ? {
|
|
874
894
|
name: "optionTable",
|
|
875
|
-
fn:
|
|
876
|
-
|
|
895
|
+
fn: b(() => [
|
|
896
|
+
y(t.$slots, "optionTable", {}, void 0, !0)
|
|
877
897
|
]),
|
|
878
898
|
key: "6"
|
|
879
899
|
} : void 0,
|
|
880
900
|
t.$slots.optionLabels ? {
|
|
881
901
|
name: "optionLabels",
|
|
882
|
-
fn:
|
|
883
|
-
|
|
902
|
+
fn: b(() => [
|
|
903
|
+
y(t.$slots, "optionLabels", {}, void 0, !0)
|
|
884
904
|
]),
|
|
885
905
|
key: "7"
|
|
886
906
|
} : void 0,
|
|
887
907
|
t.$slots.optionFullscreen ? {
|
|
888
908
|
name: "optionFullscreen",
|
|
889
|
-
fn:
|
|
890
|
-
|
|
909
|
+
fn: b(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
910
|
+
y(t.$slots, "optionFullscreen", N(Y({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
891
911
|
]),
|
|
892
912
|
key: "8"
|
|
893
913
|
} : void 0,
|
|
894
914
|
t.$slots.optionAnnotator ? {
|
|
895
915
|
name: "optionAnnotator",
|
|
896
|
-
fn:
|
|
897
|
-
|
|
916
|
+
fn: b(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
917
|
+
y(t.$slots, "optionAnnotator", N(Y({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
898
918
|
]),
|
|
899
919
|
key: "9"
|
|
900
920
|
} : void 0
|
|
901
921
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
902
|
-
(
|
|
922
|
+
(s(), r("svg", {
|
|
903
923
|
ref_key: "svgRef",
|
|
904
|
-
ref:
|
|
924
|
+
ref: oe,
|
|
905
925
|
xmlns: u(Ol),
|
|
906
|
-
class: We({ "vue-data-ui-fullscreen--on":
|
|
907
|
-
viewBox: `0 0 ${
|
|
908
|
-
style:
|
|
926
|
+
class: We({ "vue-data-ui-fullscreen--on": re.value, "vue-data-ui-fulscreen--off": !re.value, "vue-data-ui-svg": !0 }),
|
|
927
|
+
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
928
|
+
style: C(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${dt.value.css}`)
|
|
909
929
|
}, [
|
|
910
930
|
h("g", {
|
|
911
931
|
ref_key: "G",
|
|
@@ -913,22 +933,22 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
913
933
|
class: "vue-data-ui-g"
|
|
914
934
|
}, [
|
|
915
935
|
Te(u(Wt)),
|
|
916
|
-
t.$slots["chart-background"] ? (
|
|
936
|
+
t.$slots["chart-background"] ? (s(), r("foreignObject", {
|
|
917
937
|
key: 0,
|
|
918
938
|
x: 0,
|
|
919
939
|
y: 0,
|
|
920
|
-
width:
|
|
921
|
-
height:
|
|
940
|
+
width: n.value.width <= 0 ? 10 : n.value.width,
|
|
941
|
+
height: n.value.height <= 0 ? 10 : n.value.height,
|
|
922
942
|
style: {
|
|
923
943
|
pointerEvents: "none"
|
|
924
944
|
}
|
|
925
945
|
}, [
|
|
926
|
-
|
|
946
|
+
y(t.$slots, "chart-background", {}, void 0, !0)
|
|
927
947
|
], 8, ua)) : v("", !0),
|
|
928
|
-
e.value.type === "classic" && !isNaN(
|
|
929
|
-
e.value.style.chart.useGradient ? (
|
|
948
|
+
e.value.type === "classic" && !isNaN(ne.value / _.value) ? (s(), r("defs", ra, [
|
|
949
|
+
e.value.style.chart.useGradient ? (s(), r("radialGradient", {
|
|
930
950
|
key: 0,
|
|
931
|
-
id: `gradient_${
|
|
951
|
+
id: `gradient_${g.value}`
|
|
932
952
|
}, [
|
|
933
953
|
h("stop", {
|
|
934
954
|
offset: "0%",
|
|
@@ -936,12 +956,12 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
936
956
|
"stop-opacity": "0"
|
|
937
957
|
}, null, 8, va),
|
|
938
958
|
h("stop", {
|
|
939
|
-
offset: `${(1 -
|
|
959
|
+
offset: `${(1 - ne.value / _.value) * 100}%`,
|
|
940
960
|
"stop-color": u(Fe)("#FFFFFF", 0),
|
|
941
961
|
"stop-opacity": "0"
|
|
942
962
|
}, null, 8, da),
|
|
943
963
|
h("stop", {
|
|
944
|
-
offset: `${(1 -
|
|
964
|
+
offset: `${(1 - ne.value / _.value / 2) * 100}%`,
|
|
945
965
|
"stop-color": u(Fe)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
946
966
|
}, null, 8, ca),
|
|
947
967
|
h("stop", {
|
|
@@ -951,11 +971,11 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
951
971
|
}, null, 8, ha)
|
|
952
972
|
], 8, ia)) : v("", !0)
|
|
953
973
|
])) : v("", !0),
|
|
954
|
-
e.value.type === "polar" ? (
|
|
955
|
-
(
|
|
956
|
-
id: `polar_gradient_${o}_${
|
|
957
|
-
cx: (isNaN(l.middlePoint.x /
|
|
958
|
-
cy: (isNaN(l.middlePoint.y /
|
|
974
|
+
e.value.type === "polar" ? (s(), r("defs", fa, [
|
|
975
|
+
(s(!0), r(k, null, I(d.value, (l, o) => (s(), r("radialGradient", {
|
|
976
|
+
id: `polar_gradient_${o}_${g.value}`,
|
|
977
|
+
cx: (isNaN(l.middlePoint.x / n.value.width * 100) ? 0 : l.middlePoint.x / n.value.width * 100) + "%",
|
|
978
|
+
cy: (isNaN(l.middlePoint.y / n.value.height * 100) ? 0 : l.middlePoint.y / n.value.height * 100) + "%",
|
|
959
979
|
r: "62%"
|
|
960
980
|
}, [
|
|
961
981
|
h("stop", {
|
|
@@ -967,11 +987,11 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
967
987
|
offset: "100%",
|
|
968
988
|
"stop-color": T.value[o].color
|
|
969
989
|
}, null, 8, pa)
|
|
970
|
-
], 8,
|
|
990
|
+
], 8, ya))), 256))
|
|
971
991
|
])) : v("", !0),
|
|
972
992
|
h("defs", null, [
|
|
973
993
|
h("filter", {
|
|
974
|
-
id: `blur_${
|
|
994
|
+
id: `blur_${g.value}`,
|
|
975
995
|
x: "-50%",
|
|
976
996
|
y: "-50%",
|
|
977
997
|
width: "200%",
|
|
@@ -980,7 +1000,7 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
980
1000
|
h("feGaussianBlur", {
|
|
981
1001
|
in: "SourceGraphic",
|
|
982
1002
|
stdDeviation: 2,
|
|
983
|
-
id: `blur_std_${
|
|
1003
|
+
id: `blur_std_${g.value}`
|
|
984
1004
|
}, null, 8, ba),
|
|
985
1005
|
a[5] || (a[5] = h("feColorMatrix", {
|
|
986
1006
|
type: "saturate",
|
|
@@ -988,7 +1008,7 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
988
1008
|
}, null, -1))
|
|
989
1009
|
], 8, ma),
|
|
990
1010
|
h("filter", {
|
|
991
|
-
id: `shadow_${
|
|
1011
|
+
id: `shadow_${g.value}`,
|
|
992
1012
|
"color-interpolation-filters": "sRGB"
|
|
993
1013
|
}, [
|
|
994
1014
|
h("feDropShadow", {
|
|
@@ -1000,7 +1020,7 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1000
1020
|
}, null, 8, ka)
|
|
1001
1021
|
], 8, wa),
|
|
1002
1022
|
h("filter", {
|
|
1003
|
-
id: `drop_shadow_${
|
|
1023
|
+
id: `drop_shadow_${g.value}`,
|
|
1004
1024
|
"color-interpolation-filters": "sRGB",
|
|
1005
1025
|
x: "-50%",
|
|
1006
1026
|
y: "-50%",
|
|
@@ -1013,146 +1033,146 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1013
1033
|
stdDeviation: "3",
|
|
1014
1034
|
"flood-opacity": "1",
|
|
1015
1035
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
1016
|
-
}, null, 8,
|
|
1036
|
+
}, null, 8, $a)
|
|
1017
1037
|
], 8, xa)
|
|
1018
1038
|
]),
|
|
1019
|
-
e.value.type === "classic" ? (
|
|
1020
|
-
|
|
1039
|
+
e.value.type === "classic" ? (s(!0), r(k, { key: 3 }, I(T.value.filter((l) => !l.ghost), (l, o) => (s(), r("g", null, [
|
|
1040
|
+
R(l) && m.value.dataLabels.show ? (s(), r("path", {
|
|
1021
1041
|
key: 0,
|
|
1022
|
-
d: u(Nl)(l, { x:
|
|
1042
|
+
d: u(Nl)(l, { x: n.value.width / 2, y: n.value.height / 2 }, 16, 16, !1, !1, ne.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
1023
1043
|
stroke: l.color,
|
|
1024
1044
|
"stroke-width": "1",
|
|
1025
1045
|
"stroke-linecap": "round",
|
|
1026
1046
|
"stroke-linejoin": "round",
|
|
1027
1047
|
fill: "none",
|
|
1028
|
-
filter:
|
|
1029
|
-
}, null, 8,
|
|
1048
|
+
filter: ue(o)
|
|
1049
|
+
}, null, 8, _a)) : v("", !0)
|
|
1030
1050
|
]))), 256)) : v("", !0),
|
|
1031
|
-
e.value.type === "polar" ? (
|
|
1032
|
-
|
|
1051
|
+
e.value.type === "polar" ? (s(!0), r(k, { key: 4 }, I(T.value.filter((l) => !l.ghost), (l, o) => (s(), r("g", null, [
|
|
1052
|
+
R(l) && m.value.dataLabels.show ? (s(), r("path", {
|
|
1033
1053
|
key: 0,
|
|
1034
|
-
d: `M ${u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 24, centerX:
|
|
1054
|
+
d: `M ${u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x},${u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y} ${d.value[o].middlePoint.x},${d.value[o].middlePoint.y}`,
|
|
1035
1055
|
stroke: l.color,
|
|
1036
1056
|
"stroke-width": "1",
|
|
1037
1057
|
"stroke-linecap": "round",
|
|
1038
1058
|
"stroke-linejoin": "round",
|
|
1039
1059
|
fill: "none",
|
|
1040
|
-
filter:
|
|
1041
|
-
style:
|
|
1060
|
+
filter: ue(o),
|
|
1061
|
+
style: C({
|
|
1042
1062
|
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1043
1063
|
})
|
|
1044
1064
|
}, null, 12, Ca)) : v("", !0)
|
|
1045
1065
|
]))), 256)) : v("", !0),
|
|
1046
|
-
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (
|
|
1066
|
+
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (s(), r("circle", {
|
|
1047
1067
|
key: 5,
|
|
1048
|
-
cx:
|
|
1049
|
-
cy:
|
|
1068
|
+
cx: n.value.width / 2,
|
|
1069
|
+
cy: n.value.height / 2,
|
|
1050
1070
|
r: _.value <= 0 ? 10 : _.value,
|
|
1051
1071
|
fill: e.value.style.chart.backgroundColor,
|
|
1052
|
-
filter: `url(#shadow_${
|
|
1072
|
+
filter: `url(#shadow_${g.value})`
|
|
1053
1073
|
}, null, 8, Aa)) : v("", !0),
|
|
1054
|
-
t.$slots.pattern ? (
|
|
1055
|
-
(
|
|
1074
|
+
t.$slots.pattern ? (s(), r("g", Sa, [
|
|
1075
|
+
(s(!0), r(k, null, I(Ze.dataset, (l, o) => (s(), r("defs", {
|
|
1056
1076
|
key: `pattern-${l.patternIndex}`
|
|
1057
1077
|
}, [
|
|
1058
|
-
|
|
1078
|
+
y(t.$slots, "pattern", He({ ref_for: !0 }, { seriesIndex: o, patternId: `pattern_${g.value}_${o}` }), void 0, !0)
|
|
1059
1079
|
]))), 128))
|
|
1060
1080
|
])) : v("", !0),
|
|
1061
|
-
F.value && e.value.type === "classic" ? (
|
|
1062
|
-
(
|
|
1081
|
+
F.value && e.value.type === "classic" ? (s(), r(k, { key: 7 }, [
|
|
1082
|
+
(s(!0), r(k, null, I(E.value, (l, o) => (s(), r("path", {
|
|
1063
1083
|
stroke: e.value.style.chart.backgroundColor,
|
|
1064
1084
|
d: l.arcSlice,
|
|
1065
1085
|
fill: "#FFFFFF"
|
|
1066
1086
|
}, null, 8, Ta))), 256)),
|
|
1067
|
-
(
|
|
1087
|
+
(s(!0), r(k, null, I(E.value, (l, o) => (s(), r("path", {
|
|
1068
1088
|
class: "vue-ui-donut-arc-path",
|
|
1069
1089
|
d: l.arcSlice,
|
|
1070
1090
|
fill: l.color,
|
|
1071
1091
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1072
1092
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1073
|
-
filter:
|
|
1093
|
+
filter: ue(o)
|
|
1074
1094
|
}, null, 8, Pa))), 256)),
|
|
1075
|
-
t.$slots.pattern ? (
|
|
1076
|
-
(
|
|
1095
|
+
t.$slots.pattern ? (s(), r("g", Fa, [
|
|
1096
|
+
(s(!0), r(k, null, I(E.value, (l, o) => (s(), r("path", {
|
|
1077
1097
|
class: "vue-ui-donut-arc-path",
|
|
1078
1098
|
d: l.arcSlice,
|
|
1079
1099
|
fill: `url(#${l.pattern})`,
|
|
1080
1100
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1081
1101
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1082
|
-
filter:
|
|
1102
|
+
filter: ue(o)
|
|
1083
1103
|
}, null, 8, Ia))), 256))
|
|
1084
1104
|
])) : v("", !0)
|
|
1085
1105
|
], 64)) : v("", !0),
|
|
1086
|
-
F.value && e.value.type === "polar" ? (
|
|
1087
|
-
T.value.length > 1 ? (
|
|
1088
|
-
(
|
|
1106
|
+
F.value && e.value.type === "polar" ? (s(), r(k, { key: 8 }, [
|
|
1107
|
+
T.value.length > 1 ? (s(), r("g", La, [
|
|
1108
|
+
(s(!0), r(k, null, I(E.value, (l, o) => (s(), r("path", {
|
|
1089
1109
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1090
1110
|
d: d.value[o].path,
|
|
1091
1111
|
fill: "#FFFFFF",
|
|
1092
|
-
style:
|
|
1112
|
+
style: C({
|
|
1093
1113
|
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1094
1114
|
})
|
|
1095
1115
|
}, null, 12, Ma))), 256)),
|
|
1096
|
-
e.value.style.chart.layout.donut.useShadow ? (
|
|
1097
|
-
(
|
|
1116
|
+
e.value.style.chart.layout.donut.useShadow ? (s(), r("g", za, [
|
|
1117
|
+
(s(!0), r(k, null, I(E.value, (l, o) => (s(), r("path", {
|
|
1098
1118
|
class: "vue-ui-donut-arc-path",
|
|
1099
1119
|
d: d.value[o].path,
|
|
1100
1120
|
fill: "transparent",
|
|
1101
1121
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1102
1122
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1103
|
-
filter: `url(#drop_shadow_${
|
|
1104
|
-
style:
|
|
1123
|
+
filter: `url(#drop_shadow_${g.value})`,
|
|
1124
|
+
style: C({
|
|
1105
1125
|
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1106
1126
|
})
|
|
1107
1127
|
}, null, 12, Oa))), 256))
|
|
1108
1128
|
])) : v("", !0),
|
|
1109
|
-
t.$slots.pattern ? (
|
|
1110
|
-
(
|
|
1129
|
+
t.$slots.pattern ? (s(), r("g", Da, [
|
|
1130
|
+
(s(!0), r(k, null, I(E.value, (l, o) => (s(), r("path", {
|
|
1111
1131
|
class: "vue-ui-donut-arc-path",
|
|
1112
1132
|
d: d.value[o].path,
|
|
1113
1133
|
fill: `url(#${l.pattern})`,
|
|
1114
1134
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1115
1135
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1116
|
-
filter:
|
|
1117
|
-
style:
|
|
1136
|
+
filter: ue(o),
|
|
1137
|
+
style: C({
|
|
1118
1138
|
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1119
1139
|
transformOrigin: "center"
|
|
1120
1140
|
})
|
|
1121
1141
|
}, null, 12, Na))), 256))
|
|
1122
1142
|
])) : v("", !0),
|
|
1123
|
-
(
|
|
1143
|
+
(s(!0), r(k, null, I(E.value, (l, o) => (s(), r("path", {
|
|
1124
1144
|
class: "vue-ui-donut-arc-path",
|
|
1125
1145
|
d: d.value[o].path,
|
|
1126
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${o}_${
|
|
1146
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${o}_${g.value})` : l.color,
|
|
1127
1147
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1128
1148
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1129
|
-
filter:
|
|
1130
|
-
style:
|
|
1149
|
+
filter: ue(o),
|
|
1150
|
+
style: C({
|
|
1131
1151
|
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1132
1152
|
})
|
|
1133
1153
|
}, null, 12, Ya))), 256))
|
|
1134
|
-
])) : (
|
|
1135
|
-
t.$slots.pattern ? (
|
|
1154
|
+
])) : (s(), r("g", Xa, [
|
|
1155
|
+
t.$slots.pattern ? (s(), r("circle", {
|
|
1136
1156
|
key: 0,
|
|
1137
|
-
cx:
|
|
1138
|
-
cy:
|
|
1157
|
+
cx: n.value.width / 2,
|
|
1158
|
+
cy: n.value.height / 2,
|
|
1139
1159
|
r: _.value,
|
|
1140
|
-
fill: `url(#pattern_${
|
|
1160
|
+
fill: `url(#pattern_${g.value}_${T.value[0].patternIndex})`,
|
|
1141
1161
|
stroke: e.value.style.chart.backgroundColor,
|
|
1142
1162
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1143
1163
|
}, null, 8, Ba)) : v("", !0),
|
|
1144
1164
|
h("circle", {
|
|
1145
|
-
cx:
|
|
1146
|
-
cy:
|
|
1165
|
+
cx: n.value.width / 2,
|
|
1166
|
+
cy: n.value.height / 2,
|
|
1147
1167
|
r: _.value,
|
|
1148
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${
|
|
1168
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${g.value})` : T.value[0].color,
|
|
1149
1169
|
stroke: e.value.style.chart.backgroundColor,
|
|
1150
1170
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1151
1171
|
}, null, 8, Va)
|
|
1152
1172
|
]))
|
|
1153
|
-
], 64)) : (
|
|
1154
|
-
e.value.type === "classic" && !rl.value ? (
|
|
1155
|
-
(
|
|
1173
|
+
], 64)) : (s(), r(k, { key: 9 }, [
|
|
1174
|
+
e.value.type === "classic" && !rl.value ? (s(), r("g", Ea, [
|
|
1175
|
+
(s(!0), r(k, null, I(il.value, (l, o) => (s(), r("path", {
|
|
1156
1176
|
class: "vue-ui-donut-arc-path",
|
|
1157
1177
|
d: l.arcSlice,
|
|
1158
1178
|
fill: l.color,
|
|
@@ -1161,117 +1181,117 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1161
1181
|
}, null, 8, Ra))), 256))
|
|
1162
1182
|
])) : v("", !0),
|
|
1163
1183
|
h("circle", {
|
|
1164
|
-
cx:
|
|
1165
|
-
cy:
|
|
1184
|
+
cx: n.value.width / 2,
|
|
1185
|
+
cy: n.value.height / 2,
|
|
1166
1186
|
r: _.value <= 0 ? 10 : _.value,
|
|
1167
1187
|
fill: "transparent",
|
|
1168
1188
|
stroke: e.value.style.chart.backgroundColor
|
|
1169
1189
|
}, null, 8, Ga)
|
|
1170
1190
|
], 64)),
|
|
1171
|
-
e.value.style.chart.useGradient && e.value.type === "classic" ? (
|
|
1191
|
+
e.value.style.chart.useGradient && e.value.type === "classic" ? (s(), r("circle", {
|
|
1172
1192
|
key: 10,
|
|
1173
|
-
cx:
|
|
1174
|
-
cy:
|
|
1193
|
+
cx: n.value.width / 2,
|
|
1194
|
+
cy: n.value.height / 2,
|
|
1175
1195
|
r: (
|
|
1176
1196
|
/* This might require adjustments */
|
|
1177
1197
|
_.value <= 0 ? 10 : _.value
|
|
1178
1198
|
),
|
|
1179
|
-
fill: `url(#gradient_${
|
|
1199
|
+
fill: `url(#gradient_${g.value})`
|
|
1180
1200
|
}, null, 8, Ua)) : v("", !0),
|
|
1181
1201
|
h("circle", {
|
|
1182
1202
|
ref_key: "circle_hollow",
|
|
1183
1203
|
ref: Zt,
|
|
1184
1204
|
style: { pointerEvents: "none" },
|
|
1185
1205
|
fill: "none",
|
|
1186
|
-
cx:
|
|
1187
|
-
cy:
|
|
1188
|
-
r: Math.max(0.1,
|
|
1206
|
+
cx: n.value.width / 2,
|
|
1207
|
+
cy: n.value.height / 2,
|
|
1208
|
+
r: Math.max(0.1, ne.value * 1.7)
|
|
1189
1209
|
}, null, 8, Wa),
|
|
1190
|
-
F.value ? (
|
|
1191
|
-
T.value.length > 1 || e.value.type === "classic" ? (
|
|
1192
|
-
(
|
|
1210
|
+
F.value ? (s(), r(k, { key: 11 }, [
|
|
1211
|
+
T.value.length > 1 || e.value.type === "classic" ? (s(), r("g", qa, [
|
|
1212
|
+
(s(!0), r(k, null, I(T.value.filter((l) => !l.ghost), (l, o) => (s(), r("path", {
|
|
1193
1213
|
d: e.value.type === "classic" ? l.arcSlice : d.value[o].path,
|
|
1194
1214
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1195
|
-
fill:
|
|
1196
|
-
onMouseenter: (i) =>
|
|
1215
|
+
fill: V.value === o ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1216
|
+
onMouseenter: (i) => fe({
|
|
1197
1217
|
datapoint: l,
|
|
1198
1218
|
relativeIndex: o,
|
|
1199
1219
|
seriesIndex: l.seriesIndex,
|
|
1200
1220
|
show: !0
|
|
1201
1221
|
}),
|
|
1202
1222
|
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex }),
|
|
1203
|
-
onClick: (i) =>
|
|
1223
|
+
onClick: (i) => ee(l, o)
|
|
1204
1224
|
}, null, 40, Ha))), 256))
|
|
1205
|
-
])) : (
|
|
1225
|
+
])) : (s(), r("g", ja, [
|
|
1206
1226
|
h("circle", {
|
|
1207
|
-
cx:
|
|
1208
|
-
cy:
|
|
1227
|
+
cx: n.value.width / 2,
|
|
1228
|
+
cy: n.value.height / 2,
|
|
1209
1229
|
r: _.value,
|
|
1210
1230
|
fill: "transparent",
|
|
1211
|
-
onMouseenter: a[0] || (a[0] = (l) =>
|
|
1231
|
+
onMouseenter: a[0] || (a[0] = (l) => fe({
|
|
1212
1232
|
datapoint: T.value[0],
|
|
1213
1233
|
relativeIndex: 0,
|
|
1214
1234
|
seriesIndex: T.value[0].seriesIndex,
|
|
1215
1235
|
show: !0
|
|
1216
1236
|
})),
|
|
1217
1237
|
onMouseleave: a[1] || (a[1] = (l) => he({ datapoint: T.value[0], seriesIndex: T.value[0].seriesIndex })),
|
|
1218
|
-
onClick: a[2] || (a[2] = (l) =>
|
|
1238
|
+
onClick: a[2] || (a[2] = (l) => ee(T.value[0], t.i))
|
|
1219
1239
|
}, null, 40, Qa)
|
|
1220
1240
|
]))
|
|
1221
1241
|
], 64)) : v("", !0),
|
|
1222
|
-
e.value.type === "classic" ? (
|
|
1242
|
+
e.value.type === "classic" ? (s(), r("g", {
|
|
1223
1243
|
key: 12,
|
|
1224
1244
|
ref_key: "G_hollow",
|
|
1225
1245
|
ref: Qt,
|
|
1226
1246
|
class: "vue-data-ui-donut-hollow-labels"
|
|
1227
1247
|
}, [
|
|
1228
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (
|
|
1248
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (s(), r("text", {
|
|
1229
1249
|
key: 0,
|
|
1230
1250
|
"text-anchor": "middle",
|
|
1231
|
-
x:
|
|
1232
|
-
y:
|
|
1251
|
+
x: n.value.width / 2,
|
|
1252
|
+
y: n.value.height / 2 - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.offsetY,
|
|
1233
1253
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
1234
1254
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
1235
|
-
style:
|
|
1236
|
-
},
|
|
1237
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (
|
|
1255
|
+
style: C(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
1256
|
+
}, U(e.value.style.chart.layout.labels.hollow.total.text), 13, Za)) : v("", !0),
|
|
1257
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (s(), r("text", {
|
|
1238
1258
|
key: 1,
|
|
1239
1259
|
"text-anchor": "middle",
|
|
1240
|
-
x:
|
|
1241
|
-
y:
|
|
1260
|
+
x: n.value.width / 2,
|
|
1261
|
+
y: n.value.height / 2 + e.value.style.chart.layout.labels.hollow.total.fontSize - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.value.offsetY,
|
|
1242
1262
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
1243
1263
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
1244
|
-
style:
|
|
1245
|
-
},
|
|
1264
|
+
style: C(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
1265
|
+
}, U(u(W)(
|
|
1246
1266
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
1247
1267
|
F.value,
|
|
1248
|
-
u(
|
|
1268
|
+
u(X)({
|
|
1249
1269
|
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
1250
1270
|
v: F.value,
|
|
1251
1271
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
1252
1272
|
})
|
|
1253
1273
|
)), 13, Ja)) : v("", !0),
|
|
1254
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (
|
|
1274
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (s(), r("text", {
|
|
1255
1275
|
key: 2,
|
|
1256
1276
|
"text-anchor": "middle",
|
|
1257
|
-
x:
|
|
1258
|
-
y:
|
|
1277
|
+
x: n.value.width / 2,
|
|
1278
|
+
y: n.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.offsetY,
|
|
1259
1279
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
1260
1280
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
1261
|
-
style:
|
|
1262
|
-
},
|
|
1263
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (
|
|
1281
|
+
style: C(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
1282
|
+
}, U(e.value.style.chart.layout.labels.hollow.average.text), 13, Ka)) : v("", !0),
|
|
1283
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (s(), r("text", {
|
|
1264
1284
|
key: 3,
|
|
1265
1285
|
"text-anchor": "middle",
|
|
1266
|
-
x:
|
|
1267
|
-
y:
|
|
1286
|
+
x: n.value.width / 2,
|
|
1287
|
+
y: n.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.fontSize + e.value.style.chart.layout.labels.hollow.average.value.offsetY,
|
|
1268
1288
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
1269
1289
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
1270
|
-
style:
|
|
1271
|
-
},
|
|
1290
|
+
style: C(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1291
|
+
}, U(se.value || S.value ? "--" : u(W)(
|
|
1272
1292
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
1273
1293
|
Ve.value,
|
|
1274
|
-
u(
|
|
1294
|
+
u(X)({
|
|
1275
1295
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
1276
1296
|
v: Ve.value,
|
|
1277
1297
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
@@ -1279,96 +1299,96 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1279
1299
|
})
|
|
1280
1300
|
)), 13, eo)) : v("", !0)
|
|
1281
1301
|
], 512)) : v("", !0),
|
|
1282
|
-
(
|
|
1283
|
-
filter:
|
|
1302
|
+
(s(!0), r(k, null, I(E.value.filter((l) => !l.ghost), (l, o) => (s(), r("g", {
|
|
1303
|
+
filter: ue(o),
|
|
1284
1304
|
class: We({ animated: e.value.useCssAnimation }),
|
|
1285
1305
|
key: l.seriesIndex
|
|
1286
1306
|
}, [
|
|
1287
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (
|
|
1288
|
-
(
|
|
1289
|
-
x: u(
|
|
1307
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), r("g", lo, [
|
|
1308
|
+
(s(), r("foreignObject", {
|
|
1309
|
+
x: u($)(l, !0).anchor === "end" ? u($)(l).x - 120 : u($)(l, !0).anchor === "middle" ? u($)(l).x - 60 : u($)(l).x,
|
|
1290
1310
|
y: u(ge)(l) - (xt.value ? 20 : 0),
|
|
1291
1311
|
width: "120",
|
|
1292
1312
|
height: "60",
|
|
1293
1313
|
style: { overflow: "visible" }
|
|
1294
1314
|
}, [
|
|
1295
1315
|
h("div", null, [
|
|
1296
|
-
|
|
1316
|
+
y(t.$slots, "dataLabel", He({ ref_for: !0 }, {
|
|
1297
1317
|
datapoint: l,
|
|
1298
|
-
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1318
|
+
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(V.value) || V.value === o,
|
|
1299
1319
|
isSafari: xt.value,
|
|
1300
|
-
isVisible:
|
|
1301
|
-
textAlign: u(
|
|
1302
|
-
flexAlign: u(
|
|
1303
|
-
percentage: Be(l,
|
|
1320
|
+
isVisible: R(l) && m.value.dataLabels.show,
|
|
1321
|
+
textAlign: u($)(l, !0, 16, !0).anchor,
|
|
1322
|
+
flexAlign: u($)(l, !0, 16).anchor,
|
|
1323
|
+
percentage: Be(l, E.value)
|
|
1304
1324
|
}), void 0, !0)
|
|
1305
1325
|
])
|
|
1306
1326
|
], 8, ao))
|
|
1307
|
-
])) : (
|
|
1308
|
-
e.value.type === "classic" ? (
|
|
1309
|
-
|
|
1327
|
+
])) : (s(), r("g", oo, [
|
|
1328
|
+
e.value.type === "classic" ? (s(), r(k, { key: 0 }, [
|
|
1329
|
+
R(l) && m.value.dataLabels.show ? (s(), r("circle", {
|
|
1310
1330
|
key: 0,
|
|
1311
|
-
cx: u(
|
|
1331
|
+
cx: u($)(l).x,
|
|
1312
1332
|
cy: u(ge)(l) - 3.5,
|
|
1313
1333
|
fill: l.color,
|
|
1314
1334
|
stroke: e.value.style.chart.backgroundColor,
|
|
1315
1335
|
"stroke-width": 1,
|
|
1316
1336
|
r: 3,
|
|
1317
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1318
|
-
onClick: (i) =>
|
|
1319
|
-
onMouseenter: (i) =>
|
|
1337
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(V.value) || V.value === o ? "" : `url(#blur_${g.value})`,
|
|
1338
|
+
onClick: (i) => ee(l, o),
|
|
1339
|
+
onMouseenter: (i) => fe({
|
|
1320
1340
|
datapoint: l,
|
|
1321
1341
|
relativeIndex: o,
|
|
1322
1342
|
seriesIndex: l.seriesIndex,
|
|
1323
1343
|
show: !0
|
|
1324
1344
|
}),
|
|
1325
1345
|
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex })
|
|
1326
|
-
}, null, 40,
|
|
1346
|
+
}, null, 40, no)) : v("", !0)
|
|
1327
1347
|
], 64)) : v("", !0),
|
|
1328
|
-
e.value.type === "polar" ? (
|
|
1329
|
-
|
|
1348
|
+
e.value.type === "polar" ? (s(), r(k, { key: 1 }, [
|
|
1349
|
+
R(l) && m.value.dataLabels.show ? (s(), r("circle", {
|
|
1330
1350
|
key: 0,
|
|
1331
|
-
cx: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 24, centerX:
|
|
1332
|
-
cy: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 24, centerX:
|
|
1351
|
+
cx: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1352
|
+
cy: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
|
|
1333
1353
|
fill: l.color,
|
|
1334
1354
|
stroke: e.value.style.chart.backgroundColor,
|
|
1335
1355
|
"stroke-width": 1,
|
|
1336
1356
|
r: 3,
|
|
1337
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1338
|
-
onClick: (i) =>
|
|
1339
|
-
onMouseenter: (i) =>
|
|
1357
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(V.value) || V.value === o ? "" : `url(#blur_${g.value})`,
|
|
1358
|
+
onClick: (i) => ee(l, o),
|
|
1359
|
+
onMouseenter: (i) => fe({
|
|
1340
1360
|
datapoint: l,
|
|
1341
1361
|
relativeIndex: o,
|
|
1342
1362
|
seriesIndex: l.seriesIndex,
|
|
1343
1363
|
show: !0
|
|
1344
1364
|
}),
|
|
1345
1365
|
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex }),
|
|
1346
|
-
style:
|
|
1366
|
+
style: C({
|
|
1347
1367
|
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1348
1368
|
})
|
|
1349
|
-
}, null, 44,
|
|
1369
|
+
}, null, 44, so)) : v("", !0)
|
|
1350
1370
|
], 64)) : v("", !0),
|
|
1351
|
-
e.value.type === "classic" ? (
|
|
1371
|
+
e.value.type === "classic" ? (s(), r(k, { key: 2 }, [
|
|
1352
1372
|
Ft(h("text", {
|
|
1353
1373
|
class: "vue-data-ui-datalabel-value",
|
|
1354
|
-
"text-anchor": u(
|
|
1355
|
-
x: u(
|
|
1374
|
+
"text-anchor": u($)(l, !0, 12).anchor,
|
|
1375
|
+
x: u($)(l, !0, 12).x,
|
|
1356
1376
|
y: u(ge)(l),
|
|
1357
1377
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1358
1378
|
"font-size": xe.value + "px",
|
|
1359
|
-
style:
|
|
1360
|
-
onClick: (i) =>
|
|
1361
|
-
onMouseenter: (i) =>
|
|
1379
|
+
style: C(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
1380
|
+
onClick: (i) => ee(l, o),
|
|
1381
|
+
onMouseenter: (i) => fe({
|
|
1362
1382
|
datapoint: l,
|
|
1363
1383
|
relativeIndex: o,
|
|
1364
1384
|
seriesIndex: l.seriesIndex,
|
|
1365
1385
|
show: !0
|
|
1366
1386
|
}),
|
|
1367
1387
|
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex })
|
|
1368
|
-
},
|
|
1388
|
+
}, U(Be(l, E.value)) + " " + U(e.value.style.chart.layout.labels.value.show ? `(${u(W)(
|
|
1369
1389
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1370
1390
|
l.value,
|
|
1371
|
-
u(
|
|
1391
|
+
u(X)({
|
|
1372
1392
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1373
1393
|
v: l.value,
|
|
1374
1394
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1376,54 +1396,54 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1376
1396
|
}),
|
|
1377
1397
|
{ datapoint: l }
|
|
1378
1398
|
)})` : ""), 45, uo), [
|
|
1379
|
-
[It,
|
|
1399
|
+
[It, R(l) && m.value.dataLabels.show]
|
|
1380
1400
|
]),
|
|
1381
1401
|
Ft(h("text", {
|
|
1382
1402
|
class: "vue-data-ui-datalabel-name",
|
|
1383
|
-
"text-anchor": u(
|
|
1384
|
-
x: u(
|
|
1385
|
-
y: u(ge)(l) +
|
|
1403
|
+
"text-anchor": u($)(l).anchor,
|
|
1404
|
+
x: u($)(l, !0, 12).x,
|
|
1405
|
+
y: u(ge)(l) + J.value * 1.2,
|
|
1386
1406
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1387
|
-
"font-size":
|
|
1388
|
-
style:
|
|
1389
|
-
onClick: (i) =>
|
|
1407
|
+
"font-size": J.value + "px",
|
|
1408
|
+
style: C(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1409
|
+
onClick: (i) => ee(l, o),
|
|
1390
1410
|
innerHTML: u(Ot)({
|
|
1391
1411
|
content: l.name,
|
|
1392
|
-
fontSize:
|
|
1412
|
+
fontSize: J.value,
|
|
1393
1413
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1394
|
-
x: u(
|
|
1395
|
-
y: u(ge)(l) +
|
|
1414
|
+
x: u($)(l, !0, 12).x,
|
|
1415
|
+
y: u(ge)(l) + J.value
|
|
1396
1416
|
})
|
|
1397
1417
|
}, null, 12, ro), [
|
|
1398
|
-
[It,
|
|
1418
|
+
[It, R(l) && m.value.dataLabels.show]
|
|
1399
1419
|
]),
|
|
1400
1420
|
a[6] || (a[6] = Pe(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
|
|
1401
1421
|
], 64)) : v("", !0),
|
|
1402
|
-
e.value.type === "polar" ? (
|
|
1403
|
-
|
|
1422
|
+
e.value.type === "polar" ? (s(), r(k, { key: 3 }, [
|
|
1423
|
+
R(l) && m.value.dataLabels.show ? (s(), r("text", {
|
|
1404
1424
|
key: 0,
|
|
1405
1425
|
class: "vue-data-ui-datalabel-value",
|
|
1406
1426
|
"text-anchor": ce(d.value[o].middlePoint),
|
|
1407
|
-
x: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX:
|
|
1408
|
-
y: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX:
|
|
1427
|
+
x: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1428
|
+
y: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
|
|
1409
1429
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1410
1430
|
"font-size": xe.value,
|
|
1411
|
-
style:
|
|
1431
|
+
style: C({
|
|
1412
1432
|
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1413
1433
|
fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
1414
1434
|
}),
|
|
1415
|
-
onClick: (i) =>
|
|
1416
|
-
onMouseenter: (i) =>
|
|
1435
|
+
onClick: (i) => ee(l, o),
|
|
1436
|
+
onMouseenter: (i) => fe({
|
|
1417
1437
|
datapoint: l,
|
|
1418
1438
|
relativeIndex: o,
|
|
1419
1439
|
seriesIndex: l.seriesIndex,
|
|
1420
1440
|
show: !0
|
|
1421
1441
|
}),
|
|
1422
1442
|
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex })
|
|
1423
|
-
},
|
|
1443
|
+
}, U(Be(l, E.value)) + " " + U(e.value.style.chart.layout.labels.value.show ? `(${u(W)(
|
|
1424
1444
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1425
1445
|
l.value,
|
|
1426
|
-
u(
|
|
1446
|
+
u(X)({
|
|
1427
1447
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1428
1448
|
v: l.value,
|
|
1429
1449
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1431,130 +1451,130 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1431
1451
|
}),
|
|
1432
1452
|
{ datapoint: l }
|
|
1433
1453
|
)})` : ""), 45, io)) : v("", !0),
|
|
1434
|
-
|
|
1454
|
+
R(l) && m.value.dataLabels.show ? (s(), r("text", {
|
|
1435
1455
|
key: 1,
|
|
1436
1456
|
class: "vue-data-ui-datalabel-name",
|
|
1437
1457
|
"text-anchor": ce(d.value[o].middlePoint),
|
|
1438
|
-
x: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX:
|
|
1439
|
-
y: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX:
|
|
1458
|
+
x: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1459
|
+
y: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y + J.value * 1.2,
|
|
1440
1460
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1441
|
-
"font-size":
|
|
1442
|
-
style:
|
|
1461
|
+
"font-size": J.value,
|
|
1462
|
+
style: C({
|
|
1443
1463
|
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1444
1464
|
fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
1445
1465
|
}),
|
|
1446
|
-
onClick: (i) =>
|
|
1466
|
+
onClick: (i) => ee(l, o),
|
|
1447
1467
|
innerHTML: u(Ot)({
|
|
1448
1468
|
content: l.name,
|
|
1449
1469
|
fontSize: xe.value,
|
|
1450
1470
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1451
|
-
x: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX:
|
|
1452
|
-
y: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX:
|
|
1471
|
+
x: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1472
|
+
y: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y + J.value * 1.2
|
|
1453
1473
|
})
|
|
1454
1474
|
}, null, 12, vo)) : v("", !0),
|
|
1455
1475
|
a[7] || (a[7] = Pe(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
|
|
1456
1476
|
], 64)) : v("", !0)
|
|
1457
1477
|
])),
|
|
1458
|
-
|
|
1459
|
-
|
|
1478
|
+
m.value.dataLabels.show && e.value.style.chart.comments.show && l.comment ? (s(), r("g", co, [
|
|
1479
|
+
R(l) && e.value.type === "classic" ? (s(), r("foreignObject", {
|
|
1460
1480
|
key: 0,
|
|
1461
|
-
x: e.value.style.chart.comments.offsetX + (u(
|
|
1481
|
+
x: e.value.style.chart.comments.offsetX + (u($)(l, !0).anchor === "end" ? u($)(l).x - e.value.style.chart.comments.width : u($)(l, !0).anchor === "middle" ? u($)(l).x - e.value.style.chart.comments.width / 2 : u($)(l).x),
|
|
1462
1482
|
y: u(ge)(l) + 24 + e.value.style.chart.comments.offsetY,
|
|
1463
1483
|
width: e.value.style.chart.comments.width,
|
|
1464
1484
|
height: "200",
|
|
1465
1485
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
1466
1486
|
}, [
|
|
1467
1487
|
h("div", null, [
|
|
1468
|
-
|
|
1469
|
-
plot: { ...l, textAlign: u(
|
|
1488
|
+
y(t.$slots, "plot-comment", {
|
|
1489
|
+
plot: { ...l, textAlign: u($)(l, !0, 16, !0).anchor, flexAlign: u($)(l, !0, 16).anchor, isFirstLoad: S.value }
|
|
1470
1490
|
}, void 0, !0)
|
|
1471
1491
|
])
|
|
1472
1492
|
], 8, ho)) : v("", !0),
|
|
1473
|
-
|
|
1493
|
+
R(l) && e.value.type === "polar" ? (s(), r("foreignObject", {
|
|
1474
1494
|
key: 1,
|
|
1475
|
-
x: e.value.style.chart.comments.offsetX + (ce(d.value[o].middlePoint) === "end" ? u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX:
|
|
1495
|
+
x: e.value.style.chart.comments.offsetX + (ce(d.value[o].middlePoint) === "end" ? u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x - e.value.style.chart.comments.width : ce(d.value[o].middlePoint) === "middle" ? u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x),
|
|
1476
1496
|
y: vl(d.value[o]) + e.value.style.chart.comments.offsetY,
|
|
1477
1497
|
width: e.value.style.chart.comments.width,
|
|
1478
1498
|
height: "200",
|
|
1479
|
-
style:
|
|
1499
|
+
style: C({
|
|
1480
1500
|
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1481
1501
|
overflow: "visible",
|
|
1482
1502
|
pointerEvents: "none"
|
|
1483
1503
|
})
|
|
1484
1504
|
}, [
|
|
1485
1505
|
h("div", null, [
|
|
1486
|
-
|
|
1506
|
+
y(t.$slots, "plot-comment", {
|
|
1487
1507
|
plot: { ...l, textAlign: ce(d.value[o].middlePoint), flexAlign: ce(d.value[o].middlePoint), isFirstLoad: S.value }
|
|
1488
1508
|
}, void 0, !0)
|
|
1489
1509
|
])
|
|
1490
|
-
], 12,
|
|
1510
|
+
], 12, fo)) : v("", !0)
|
|
1491
1511
|
])) : v("", !0)
|
|
1492
1512
|
], 10, to))), 128)),
|
|
1493
|
-
|
|
1513
|
+
y(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
1494
1514
|
], 512)
|
|
1495
|
-
], 14,
|
|
1496
|
-
t.$slots.watermark ? (
|
|
1497
|
-
|
|
1515
|
+
], 14, sa)),
|
|
1516
|
+
t.$slots.watermark ? (s(), r("div", yo, [
|
|
1517
|
+
y(t.$slots, "watermark", N(Y({ isPrinting: u(ct) || u(ht) })), void 0, !0)
|
|
1498
1518
|
])) : v("", !0),
|
|
1499
1519
|
h("div", {
|
|
1500
|
-
id: `legend-bottom-${
|
|
1520
|
+
id: `legend-bottom-${g.value}`
|
|
1501
1521
|
}, null, 8, go),
|
|
1502
|
-
|
|
1522
|
+
nt.value ? (s(), ae(Al, {
|
|
1503
1523
|
key: 5,
|
|
1504
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1524
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${g.value}` : `#legend-bottom-${g.value}`
|
|
1505
1525
|
}, [
|
|
1506
1526
|
h("div", {
|
|
1507
1527
|
ref_key: "chartLegend",
|
|
1508
1528
|
ref: Ke
|
|
1509
1529
|
}, [
|
|
1510
|
-
e.value.style.chart.legend.show ? (
|
|
1530
|
+
e.value.style.chart.legend.show ? (s(), ae(la, {
|
|
1511
1531
|
key: `legend_${ot.value}`,
|
|
1512
1532
|
legendSet: Xe.value,
|
|
1513
1533
|
config: ul.value,
|
|
1514
1534
|
onClickMarker: a[3] || (a[3] = ({ i: l }) => Ce(l))
|
|
1515
1535
|
}, qe({
|
|
1516
|
-
item:
|
|
1536
|
+
item: b(({ legend: l, index: o }) => [
|
|
1517
1537
|
h("div", {
|
|
1518
|
-
style:
|
|
1538
|
+
style: C(`opacity:${z.value.includes(o) ? 0.5 : 1}`),
|
|
1519
1539
|
onClick: (i) => l.segregate()
|
|
1520
|
-
},
|
|
1540
|
+
}, U(l.display), 13, po)
|
|
1521
1541
|
]),
|
|
1522
1542
|
_: 2
|
|
1523
1543
|
}, [
|
|
1524
1544
|
t.$slots.pattern ? {
|
|
1525
1545
|
name: "legend-pattern",
|
|
1526
|
-
fn:
|
|
1546
|
+
fn: b(({ legend: l, index: o }) => [
|
|
1527
1547
|
Te(Kl, {
|
|
1528
1548
|
shape: l.shape,
|
|
1529
1549
|
radius: 30,
|
|
1530
1550
|
stroke: "none",
|
|
1531
1551
|
plot: { x: 30, y: 30 },
|
|
1532
|
-
fill: `url(#pattern_${
|
|
1552
|
+
fill: `url(#pattern_${g.value}_${o})`
|
|
1533
1553
|
}, null, 8, ["shape", "fill"])
|
|
1534
1554
|
]),
|
|
1535
1555
|
key: "0"
|
|
1536
1556
|
} : void 0
|
|
1537
1557
|
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
1538
|
-
|
|
1558
|
+
y(t.$slots, "legend", { legend: Xe.value }, void 0, !0)
|
|
1539
1559
|
], 512)
|
|
1540
1560
|
], 8, ["to"])) : v("", !0),
|
|
1541
|
-
t.$slots.source ? (
|
|
1561
|
+
t.$slots.source ? (s(), r("div", {
|
|
1542
1562
|
key: 6,
|
|
1543
1563
|
ref_key: "source",
|
|
1544
1564
|
ref: et,
|
|
1545
1565
|
dir: "auto"
|
|
1546
1566
|
}, [
|
|
1547
|
-
|
|
1567
|
+
y(t.$slots, "source", {}, void 0, !0)
|
|
1548
1568
|
], 512)) : v("", !0),
|
|
1549
|
-
t.$slots.hollow ? (
|
|
1550
|
-
|
|
1569
|
+
t.$slots.hollow ? (s(), r("div", mo, [
|
|
1570
|
+
y(t.$slots, "hollow", N(Y({
|
|
1551
1571
|
total: F.value,
|
|
1552
1572
|
average: Ve.value,
|
|
1553
1573
|
dataset: L.value
|
|
1554
1574
|
})), void 0, !0)
|
|
1555
1575
|
])) : v("", !0),
|
|
1556
1576
|
Te(u(Bt), {
|
|
1557
|
-
show:
|
|
1577
|
+
show: m.value.showTooltip && Oe.value,
|
|
1558
1578
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1559
1579
|
color: e.value.style.chart.tooltip.color,
|
|
1560
1580
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1564,30 +1584,30 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1564
1584
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1565
1585
|
position: e.value.style.chart.tooltip.position,
|
|
1566
1586
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1567
|
-
parent:
|
|
1587
|
+
parent: B.value,
|
|
1568
1588
|
content: De.value,
|
|
1569
1589
|
isCustom: me.value,
|
|
1570
|
-
isFullscreen:
|
|
1590
|
+
isFullscreen: re.value,
|
|
1571
1591
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1572
1592
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1573
1593
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1574
1594
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThrehsold
|
|
1575
1595
|
}, {
|
|
1576
|
-
"tooltip-before":
|
|
1577
|
-
|
|
1596
|
+
"tooltip-before": b(() => [
|
|
1597
|
+
y(t.$slots, "tooltip-before", N(Y({ ...Ee.value })), void 0, !0)
|
|
1578
1598
|
]),
|
|
1579
|
-
"tooltip-after":
|
|
1580
|
-
|
|
1599
|
+
"tooltip-after": b(() => [
|
|
1600
|
+
y(t.$slots, "tooltip-after", N(Y({ ...Ee.value })), void 0, !0)
|
|
1581
1601
|
]),
|
|
1582
1602
|
_: 3
|
|
1583
1603
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1584
|
-
we.value && e.value.userOptions.buttons.table ? (
|
|
1604
|
+
we.value && e.value.userOptions.buttons.table ? (s(), ae(Sl(be.value.component), He({ key: 8 }, be.value.props, {
|
|
1585
1605
|
ref_key: "tableUnit",
|
|
1586
1606
|
ref: pe,
|
|
1587
1607
|
onClose: At
|
|
1588
1608
|
}), qe({
|
|
1589
|
-
content:
|
|
1590
|
-
(
|
|
1609
|
+
content: b(() => [
|
|
1610
|
+
(s(), ae(u(Rt), {
|
|
1591
1611
|
key: `table_${at.value}`,
|
|
1592
1612
|
colNames: Ae.value.colNames,
|
|
1593
1613
|
head: Ae.value.head,
|
|
@@ -1597,25 +1617,25 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1597
1617
|
withCloseButton: !e.value.table.useDialog,
|
|
1598
1618
|
onClose: At
|
|
1599
1619
|
}, {
|
|
1600
|
-
th:
|
|
1620
|
+
th: b(({ th: l }) => [
|
|
1601
1621
|
h("div", {
|
|
1602
1622
|
innerHTML: l,
|
|
1603
1623
|
style: { display: "flex", "align-items": "center" }
|
|
1604
1624
|
}, null, 8, bo)
|
|
1605
1625
|
]),
|
|
1606
|
-
td:
|
|
1607
|
-
Pe(
|
|
1626
|
+
td: b(({ td: l }) => [
|
|
1627
|
+
Pe(U(l.name ? l.name : isNaN(Number(l)) ? l.includes("%") ? l : u(W)(
|
|
1608
1628
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1609
1629
|
l,
|
|
1610
|
-
u(
|
|
1630
|
+
u(X)({
|
|
1611
1631
|
v: l,
|
|
1612
1632
|
s: "%",
|
|
1613
1633
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
1614
1634
|
})
|
|
1615
|
-
) : u(
|
|
1635
|
+
) : u(W)(
|
|
1616
1636
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1617
1637
|
l,
|
|
1618
|
-
u(
|
|
1638
|
+
u(X)({
|
|
1619
1639
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1620
1640
|
v: l,
|
|
1621
1641
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1630,14 +1650,14 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1630
1650
|
}, [
|
|
1631
1651
|
e.value.table.useDialog ? {
|
|
1632
1652
|
name: "title",
|
|
1633
|
-
fn:
|
|
1634
|
-
Pe(
|
|
1653
|
+
fn: b(() => [
|
|
1654
|
+
Pe(U(be.value.title), 1)
|
|
1635
1655
|
]),
|
|
1636
1656
|
key: "0"
|
|
1637
1657
|
} : void 0,
|
|
1638
1658
|
e.value.table.useDialog ? {
|
|
1639
1659
|
name: "actions",
|
|
1640
|
-
fn:
|
|
1660
|
+
fn: b(() => [
|
|
1641
1661
|
h("button", {
|
|
1642
1662
|
tabindex: "0",
|
|
1643
1663
|
class: "vue-ui-user-options-button",
|
|
@@ -1652,10 +1672,10 @@ const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1652
1672
|
key: "1"
|
|
1653
1673
|
} : void 0
|
|
1654
1674
|
]), 1040)) : v("", !0),
|
|
1655
|
-
u(
|
|
1675
|
+
u($e) ? (s(), ae(Hl, { key: 9 })) : v("", !0)
|
|
1656
1676
|
], 46, oa));
|
|
1657
1677
|
}
|
|
1658
|
-
}, Do = /* @__PURE__ */ aa(wo, [["__scopeId", "data-v-
|
|
1678
|
+
}, Do = /* @__PURE__ */ aa(wo, [["__scopeId", "data-v-a23e4322"]]);
|
|
1659
1679
|
export {
|
|
1660
1680
|
Do as default
|
|
1661
1681
|
};
|