vue-data-ui 3.6.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -26
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
- package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
- package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- 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 +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- package/dist/components/vue-ui-icon.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 +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-ByLTJx5V.js} +78 -78
- package/dist/vue-data-ui.js +225 -205
- package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-DH-N_ePR.js +0 -54
- package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
- package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
- package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
- package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
- package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
- package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
- package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
- package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
- package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
- package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
- package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
- package/dist/vue-ui-molecule-CasngKZI.js +0 -753
- package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
- package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
- package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
- package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
- package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
- package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
- package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
- package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
- package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
- package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
- package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
- package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
- package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
- package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
- package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
- package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
- package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
- package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
- package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
- package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
- package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
- package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
- package/dist/vue-ui-xy-BT67faLv.js +0 -3424
- package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
|
@@ -1,25 +1,42 @@
|
|
|
1
|
-
import { defineAsyncComponent as le, useSlots as
|
|
2
|
-
import { o as Lt,
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
1
|
+
import { defineAsyncComponent as le, useSlots as Ll, computed as f, shallowRef as Z, ref as b, onMounted as Tt, onBeforeUnmount as Pt, toRefs as Ml, watch as ye, createElementBlock as r, openBlock as s, normalizeStyle as _, normalizeClass as We, createBlock as oe, createCommentVNode as c, renderSlot as y, createElementVNode as h, createVNode as Se, unref as u, withCtx as m, normalizeProps as O, guardReactiveProps as E, createSlots as qe, Fragment as k, renderList as D, mergeProps as je, toDisplayString as U, withDirectives as Dt, createTextVNode as Te, vShow as It, Teleport as Bl, resolveDynamicComponent as zl, nextTick as Ol } from "vue";
|
|
2
|
+
import { o as Lt, g as He, k as El, c as Nl, t as Yl, j as Xl, M as Vl, l as Mt, p as ie, a as W, d as N, Z as Bt, a1 as Rl, X as Gl, s as Pe, h as Ul, _ as Wl, a2 as T, $ as ge, a0 as x, a3 as zt, f as ql, i as jl, W as Ze, u as Hl, q as Zl, x as Jl, a4 as Ot } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { t as Kl, u as Ql } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as eo, a as Je } from "./useNestedProp-CWo6bftQ.js";
|
|
5
|
+
import { u as to } from "./usePrinter-DCJzEiS8.js";
|
|
6
|
+
import { u as lo, B as oo } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as ao } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as no } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
|
+
import { u as so } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as uo } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import ro from "./img-DUzJeMlr.js";
|
|
12
|
+
import { _ as io } from "./Shape-DE6X_t31.js";
|
|
13
|
+
import co from "./Title-DfFUb9hd.js";
|
|
14
|
+
import vo from "./Legend-Web3GjlR.js";
|
|
15
|
+
import { _ as ho } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { labels: { percentage: { color: "#CCCCCC" }, name: { color: "#CCCCCC" }, hollow: { total: { color: "#CCCCCC", value: { color: "#CCCCCC" } }, average: { color: "#CCCCCC", value: { color: "#CCCCCC" } } } } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Nt = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { labels: { percentage: { color: "#424242" }, name: { color: "#424242" }, hollow: { total: { color: "#424242", value: { color: "#424242" } }, average: { color: "#424242", value: { color: "#424242" } } } } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Yt = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { labels: { percentage: { color: "#BDBDBD" }, name: { color: "#BDBDBD" }, hollow: { total: { color: "#BDBDBD", value: { color: "#BDBDBD" } }, average: { color: "#BDBDBD", value: { color: "#BDBDBD" } } } } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, Xt = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { labels: { percentage: { color: "#61747E" }, name: { color: "#8A9892" }, hollow: { total: { color: "#8A9892", value: { color: "#61747E" } }, average: { color: "#8A9892", value: { color: "#61747E" } } } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Vt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { labels: { percentage: { color: "#AACCAA" }, name: { color: "#99CC99" }, hollow: { total: { color: "#99CC99", value: { color: "#AACCAA" } }, average: { color: "#99CC99", value: { color: "#AACCAA" } } } } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, Rt = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { labels: { percentage: { color: "#A0AC94" }, name: { color: "#8A9892" }, hollow: { total: { color: "#8A9892", value: { color: "#A0AC94" } }, average: { color: "#8A9892", value: { color: "#A0AC94" } } } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, Gt = {
|
|
17
|
+
default: {},
|
|
18
|
+
dark: Et,
|
|
19
|
+
celebration: Nt,
|
|
20
|
+
celebrationNight: Yt,
|
|
21
|
+
concrete: Xt,
|
|
22
|
+
hack: Vt,
|
|
23
|
+
zen: Rt
|
|
24
|
+
}, Wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25
|
+
__proto__: null,
|
|
26
|
+
celebration: Nt,
|
|
27
|
+
celebrationNight: Yt,
|
|
28
|
+
concrete: Xt,
|
|
29
|
+
dark: Et,
|
|
30
|
+
default: Gt,
|
|
31
|
+
hack: Vt,
|
|
32
|
+
zen: Rt
|
|
33
|
+
}, Symbol.toStringTag, { value: "Module" })), fo = ["id"], yo = ["id"], go = ["xmlns", "viewBox"], po = ["width", "height"], bo = { key: 1 }, mo = ["id"], wo = ["stop-color"], ko = ["offset", "stop-color"], Co = ["offset", "stop-color"], xo = ["stop-color"], Ao = { key: 2 }, _o = ["id", "cx", "cy"], $o = ["stop-color", "stop-opacity"], Fo = ["stop-color"], So = ["id"], To = ["id"], Po = ["id"], Do = ["flood-color"], Io = ["id"], Lo = ["flood-color"], Mo = ["d", "stroke", "filter"], Bo = ["d", "stroke", "filter"], zo = ["cx", "cy", "r", "fill", "filter"], Oo = { key: 6 }, Eo = ["stroke", "d"], No = ["d", "fill", "stroke", "stroke-width", "filter"], Yo = { key: 0 }, Xo = ["d", "fill", "stroke", "stroke-width", "filter"], Vo = { key: 0 }, Ro = ["stroke", "d"], Go = { key: 0 }, Uo = ["d", "stroke", "stroke-width", "filter"], Wo = { key: 1 }, qo = ["d", "fill", "stroke", "stroke-width", "filter"], jo = ["d", "fill", "stroke", "stroke-width", "filter"], Ho = { key: 1 }, Zo = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Jo = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ko = { key: 0 }, Qo = ["d", "fill", "stroke", "stroke-width"], ea = ["cx", "cy", "r", "stroke"], ta = ["cx", "cy", "r", "fill"], la = ["cx", "cy", "r"], oa = { key: 0 }, aa = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], na = { key: 1 }, sa = ["cx", "cy", "r"], ua = ["x", "y", "fill", "font-size"], ra = ["x", "y", "fill", "font-size"], ia = ["x", "y", "fill", "font-size"], ca = ["x", "y", "fill", "font-size"], va = ["filter"], da = { key: 0 }, ha = ["x", "y"], fa = { key: 1 }, ya = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], ga = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], pa = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], ba = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], ma = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], wa = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], ka = { key: 2 }, Ca = ["x", "y", "width"], xa = ["x", "y", "width"], Aa = {
|
|
17
34
|
key: 4,
|
|
18
35
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
36
|
+
}, _a = ["id"], $a = ["onClick"], Fa = {
|
|
20
37
|
key: 7,
|
|
21
38
|
class: "vue-ui-donut-hollow"
|
|
22
|
-
},
|
|
39
|
+
}, Sa = ["innerHTML"], Ta = {
|
|
23
40
|
__name: "vue-ui-donut",
|
|
24
41
|
props: {
|
|
25
42
|
config: {
|
|
@@ -36,62 +53,62 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
36
53
|
}
|
|
37
54
|
},
|
|
38
55
|
emits: ["selectLegend", "selectDatapoint"],
|
|
39
|
-
setup(
|
|
40
|
-
const
|
|
56
|
+
setup(Ke, { expose: Ut, emit: Wt }) {
|
|
57
|
+
const qt = le(() => import("./Tooltip-WD0Ros6G.js")), jt = le(() => import("./BaseIcon-CofSxalQ.js")), Ht = le(() => import("./vue-ui-accordion-DSdZUn2C.js")), Zt = le(() => import("./DataTable-CHaOCmsE.js")), Jt = le(() => import("./PenAndPaper-HCZQTkqi.js")), Kt = le(() => import("./UserOptions-B3I-s3Lw.js")), Qt = le(() => import("./PackageVersion-Bq_mtsqr.js")), el = le(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_donut: tl } = eo(), { isThemeValid: ll, warnInvalidTheme: ol } = no(), al = Ll(), C = Ke, we = f({
|
|
41
58
|
get() {
|
|
42
|
-
return !!
|
|
59
|
+
return !!C.dataset && C.dataset.length;
|
|
43
60
|
},
|
|
44
61
|
set(t) {
|
|
45
62
|
return t;
|
|
46
63
|
}
|
|
47
|
-
}),
|
|
64
|
+
}), Y = Z(null), ke = b(null), nl = b(null), sl = b(null), Qe = Z(null), et = Z(null), J = Z(null), ce = Z(null), tt = Z(null), lt = Z(null), ot = b(0), at = b(0), nt = b(0), st = b(!1), pe = b(null), De = b(null), Ce = f({
|
|
48
65
|
get: () => e.value.style.chart.layout.labels.percentage.fontSize,
|
|
49
66
|
set: (t) => t
|
|
50
|
-
}),
|
|
67
|
+
}), K = f({
|
|
51
68
|
get: () => e.value.style.chart.layout.labels.name.fontSize,
|
|
52
69
|
set: (t) => t
|
|
53
70
|
});
|
|
54
|
-
let
|
|
71
|
+
let Ie = !1;
|
|
55
72
|
const q = () => {
|
|
56
|
-
!e.value.autoSize ||
|
|
57
|
-
|
|
58
|
-
const t = e.value, a = ke.value, l =
|
|
73
|
+
!e.value.autoSize || Ie || (Ie = !0, requestAnimationFrame(() => {
|
|
74
|
+
Ie = !1;
|
|
75
|
+
const t = e.value, a = ke.value, l = ae.value;
|
|
59
76
|
if (!t.autoSize || !a || !l) return;
|
|
60
|
-
const [o, i,
|
|
77
|
+
const [o, i, d, w] = l.getAttribute("viewBox").split(" ").map(Number), $ = { x: o, y: i, width: d, height: w }, B = [
|
|
61
78
|
{
|
|
62
79
|
selector: ".vue-data-ui-datalabel-value",
|
|
63
80
|
baseSize: t.style.chart.layout.labels.percentage.fontSize,
|
|
64
81
|
minSize: t.style.chart.layout.labels.percentage.minFontSize,
|
|
65
|
-
sizeRef:
|
|
82
|
+
sizeRef: Ce
|
|
66
83
|
},
|
|
67
84
|
{
|
|
68
85
|
selector: ".vue-data-ui-datalabel-name",
|
|
69
86
|
baseSize: t.style.chart.layout.labels.name.fontSize,
|
|
70
87
|
minSize: t.style.chart.layout.labels.name.minFontSize,
|
|
71
|
-
sizeRef:
|
|
88
|
+
sizeRef: K
|
|
72
89
|
}
|
|
73
90
|
];
|
|
74
|
-
|
|
75
|
-
a.querySelectorAll(G).forEach((
|
|
76
|
-
const
|
|
77
|
-
el:
|
|
78
|
-
bounds:
|
|
91
|
+
B.map((G) => a.querySelectorAll(G.selector).length).reduce((G, te) => G + te, 0) !== 0 && B.forEach(({ selector: G, baseSize: te, minSize: Ue, sizeRef: Pl }) => {
|
|
92
|
+
a.querySelectorAll(G).forEach((Dl) => {
|
|
93
|
+
const Il = ql({
|
|
94
|
+
el: Dl,
|
|
95
|
+
bounds: $,
|
|
79
96
|
currentFontSize: te,
|
|
80
97
|
minFontSize: Ue,
|
|
81
98
|
attempts: 200,
|
|
82
99
|
padding: 1
|
|
83
100
|
});
|
|
84
|
-
|
|
101
|
+
Pl.value = Il;
|
|
85
102
|
});
|
|
86
103
|
});
|
|
87
104
|
}));
|
|
88
105
|
};
|
|
89
106
|
Tt(async () => {
|
|
90
|
-
|
|
107
|
+
st.value = !0, ut(), requestAnimationFrame(q);
|
|
91
108
|
});
|
|
92
|
-
let
|
|
109
|
+
let Le;
|
|
93
110
|
Tt(() => {
|
|
94
|
-
|
|
111
|
+
Y.value && (Le = new ResizeObserver((t) => {
|
|
95
112
|
for (const a of t) {
|
|
96
113
|
const { width: l, height: o } = a.contentRect;
|
|
97
114
|
if (l > 0 && o > 0) {
|
|
@@ -99,77 +116,87 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
99
116
|
break;
|
|
100
117
|
}
|
|
101
118
|
}
|
|
102
|
-
}),
|
|
119
|
+
}), Le.observe(Y.value.parentElement));
|
|
103
120
|
}), Pt(() => {
|
|
104
|
-
|
|
121
|
+
Le?.disconnect();
|
|
105
122
|
}), Pt(() => {
|
|
106
|
-
|
|
123
|
+
J.value && (ce.value && J.value.unobserve(ce.value), J.value.disconnect());
|
|
107
124
|
});
|
|
108
|
-
const
|
|
109
|
-
function
|
|
110
|
-
if (Lt(
|
|
125
|
+
const Me = f(() => !!e.value.debug);
|
|
126
|
+
function ut() {
|
|
127
|
+
if (Lt(C.dataset) ? (He({
|
|
111
128
|
componentName: "VueUiDonut",
|
|
112
129
|
type: "dataset",
|
|
113
|
-
debug:
|
|
114
|
-
}), we.value = !1,
|
|
115
|
-
|
|
130
|
+
debug: Me.value
|
|
131
|
+
}), we.value = !1, Ae.value = !0) : (C.dataset.forEach((t, a) => {
|
|
132
|
+
El({
|
|
116
133
|
datasetObject: t,
|
|
117
134
|
requiredAttributes: ["name", "values"]
|
|
118
135
|
}).forEach((l) => {
|
|
119
|
-
|
|
136
|
+
He({
|
|
120
137
|
componentName: "VueUiDonut",
|
|
121
138
|
type: "datasetSerieAttribute",
|
|
122
139
|
property: l,
|
|
123
140
|
index: a,
|
|
124
|
-
debug:
|
|
125
|
-
}), we.value = !1,
|
|
141
|
+
debug: Me.value
|
|
142
|
+
}), we.value = !1, Ae.value = !0;
|
|
126
143
|
});
|
|
127
|
-
}),
|
|
128
|
-
(!t.name || t.name === "") &&
|
|
144
|
+
}), C.dataset.forEach((t, a) => {
|
|
145
|
+
(!t.name || t.name === "") && He({
|
|
129
146
|
componentName: "VueUiDonut",
|
|
130
147
|
type: "datasetAttributeEmpty",
|
|
131
148
|
property: "name",
|
|
132
149
|
index: a,
|
|
133
|
-
debug:
|
|
150
|
+
debug: Me.value
|
|
134
151
|
});
|
|
135
|
-
})), Lt(
|
|
136
|
-
const t =
|
|
137
|
-
const { width: a, height: l } =
|
|
138
|
-
chart:
|
|
139
|
-
title: e.value.style.chart.title.text ?
|
|
140
|
-
legend: e.value.style.chart.legend.show ?
|
|
141
|
-
source:
|
|
142
|
-
noTitle:
|
|
152
|
+
})), Lt(C.dataset) || (Ae.value = e.value.loading), e.value.responsive) {
|
|
153
|
+
const t = Kl(() => {
|
|
154
|
+
const { width: a, height: l } = Ql({
|
|
155
|
+
chart: Y.value,
|
|
156
|
+
title: e.value.style.chart.title.text ? Qe.value : null,
|
|
157
|
+
legend: e.value.style.chart.legend.show ? et.value : null,
|
|
158
|
+
source: tt.value,
|
|
159
|
+
noTitle: lt.value,
|
|
143
160
|
padding: e.value.autoSize ? void 0 : dt.value
|
|
144
161
|
});
|
|
145
162
|
requestAnimationFrame(() => {
|
|
146
163
|
n.value.width = a, n.value.height = l, q();
|
|
147
164
|
});
|
|
148
165
|
});
|
|
149
|
-
|
|
166
|
+
J.value && (ce.value && J.value.unobserve(ce.value), J.value.disconnect()), J.value = new ResizeObserver(t), ce.value = Y.value.parentNode, J.value.observe(ce.value);
|
|
150
167
|
}
|
|
151
168
|
}
|
|
152
|
-
const g =
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
userConfig: x.config,
|
|
158
|
-
defaultConfig: Ht
|
|
169
|
+
const g = b(Nl()), Be = b(!1), ze = b(""), X = b(null), rt = b(0);
|
|
170
|
+
function Oe() {
|
|
171
|
+
const t = Je({
|
|
172
|
+
userConfig: C.config,
|
|
173
|
+
defaultConfig: tl
|
|
159
174
|
});
|
|
160
175
|
let a = {};
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
176
|
+
const l = t.theme;
|
|
177
|
+
if (!l)
|
|
178
|
+
a = t;
|
|
179
|
+
else if (!ll.value(t))
|
|
180
|
+
ol(t), a = t;
|
|
181
|
+
else {
|
|
182
|
+
const o = Je({
|
|
183
|
+
userConfig: Gt[l] || C.config,
|
|
164
184
|
defaultConfig: t
|
|
165
|
-
})
|
|
166
|
-
|
|
167
|
-
|
|
185
|
+
});
|
|
186
|
+
a = {
|
|
187
|
+
...Je({
|
|
188
|
+
userConfig: C.config,
|
|
189
|
+
defaultConfig: o
|
|
190
|
+
}),
|
|
191
|
+
customPalette: t.customPalette.length ? t.customPalette : jl[l] || ie
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
return C.config && Ze(C.config, "events.datapointEnter") ? a.events.datapointEnter = C.config.events.datapointEnter : a.events.datapointEnter = null, C.config && Ze(C.config, "events.datapointLeave") ? a.events.datapointLeave = C.config.events.datapointLeave : a.events.datapointLeave = null, C.config && Ze(C.config, "events.datapointClick") ? a.events.datapointClick = C.config.events.datapointClick : a.events.datapointClick = null, a;
|
|
168
195
|
}
|
|
169
|
-
const e =
|
|
170
|
-
...
|
|
196
|
+
const e = b(Oe()), { loading: xe, FINAL_DATASET: ve, manualLoading: Ae, skeletonDataset: ul } = lo({
|
|
197
|
+
...Ml(C),
|
|
171
198
|
FINAL_CONFIG: e,
|
|
172
|
-
prepareConfig:
|
|
199
|
+
prepareConfig: Oe,
|
|
173
200
|
skeletonDataset: [
|
|
174
201
|
{
|
|
175
202
|
name: "",
|
|
@@ -187,7 +214,7 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
187
214
|
color: "#CACACA"
|
|
188
215
|
}
|
|
189
216
|
],
|
|
190
|
-
skeletonConfig:
|
|
217
|
+
skeletonConfig: Yl({
|
|
191
218
|
defaultConfig: e.value,
|
|
192
219
|
userConfig: {
|
|
193
220
|
useCssAnimation: !1,
|
|
@@ -224,54 +251,54 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
224
251
|
}
|
|
225
252
|
}
|
|
226
253
|
})
|
|
227
|
-
}),
|
|
228
|
-
function
|
|
254
|
+
}), F = b(!0), j = Z([]);
|
|
255
|
+
function rl(t, a = 1e3, l = 50) {
|
|
229
256
|
return new Promise((o) => {
|
|
230
257
|
const i = t.length;
|
|
231
|
-
|
|
232
|
-
let
|
|
233
|
-
t.forEach((w,
|
|
258
|
+
j.value = Array(i).fill(0);
|
|
259
|
+
let d = 0;
|
|
260
|
+
t.forEach((w, $) => {
|
|
234
261
|
setTimeout(() => {
|
|
235
|
-
const
|
|
236
|
-
function
|
|
237
|
-
const te = Math.min((G -
|
|
238
|
-
|
|
262
|
+
const B = performance.now();
|
|
263
|
+
function z(G) {
|
|
264
|
+
const te = Math.min((G - B) / a, 1), Ue = Ot(te);
|
|
265
|
+
j.value[$] = w * Ue, j.value = [...j.value], te < 1 ? (requestAnimationFrame(z), requestAnimationFrame(q)) : (j.value[$] = w, j.value = [...j.value], d += 1, d === i && o(), requestAnimationFrame(q));
|
|
239
266
|
}
|
|
240
|
-
requestAnimationFrame(
|
|
241
|
-
},
|
|
267
|
+
requestAnimationFrame(z);
|
|
268
|
+
}, $ * l);
|
|
242
269
|
});
|
|
243
270
|
});
|
|
244
271
|
}
|
|
245
|
-
const
|
|
272
|
+
const it = b(!1);
|
|
246
273
|
ye(
|
|
247
|
-
() =>
|
|
274
|
+
() => xe.value,
|
|
248
275
|
async (t) => {
|
|
249
|
-
if (t ||
|
|
250
|
-
const a =
|
|
276
|
+
if (t || it.value) return;
|
|
277
|
+
const a = ve.value === ul, l = e.value.startAnimation?.show;
|
|
251
278
|
if (!a && l) {
|
|
252
|
-
|
|
253
|
-
const o =
|
|
254
|
-
(i) => i.values.reduce((
|
|
279
|
+
it.value = !0;
|
|
280
|
+
const o = ve.value.map(
|
|
281
|
+
(i) => i.values.reduce((d, w) => d + w, 0)
|
|
255
282
|
);
|
|
256
|
-
await
|
|
283
|
+
await rl(
|
|
257
284
|
o,
|
|
258
285
|
e.value.startAnimation.durationMs,
|
|
259
286
|
e.value.startAnimation.staggerMs
|
|
260
287
|
);
|
|
261
288
|
}
|
|
262
|
-
|
|
289
|
+
F.value = !1;
|
|
263
290
|
},
|
|
264
291
|
{ immediate: !0 }
|
|
265
292
|
);
|
|
266
|
-
const { userOptionsVisible:
|
|
267
|
-
function
|
|
268
|
-
|
|
293
|
+
const { userOptionsVisible: Ee, setUserOptionsVisibility: ct, keepUserOptionState: vt } = so({ config: e.value }), { svgRef: ae } = uo({ config: e.value.style.chart.title });
|
|
294
|
+
function il() {
|
|
295
|
+
ct(!0);
|
|
269
296
|
}
|
|
270
|
-
function
|
|
271
|
-
|
|
297
|
+
function cl() {
|
|
298
|
+
ct(!1);
|
|
272
299
|
}
|
|
273
|
-
ye(() =>
|
|
274
|
-
|
|
300
|
+
ye(() => C.config, (t) => {
|
|
301
|
+
xe.value || (e.value = Oe()), Ee.value = !e.value.userOptions.showOnChartHover, ut(), ot.value += 1, at.value += 1, nt.value += 1, p.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, p.value.showTable = e.value.table.show, p.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
302
|
}, { deep: !0 });
|
|
276
303
|
const dt = f(() => {
|
|
277
304
|
const { top: t, right: a, bottom: l, left: o } = e.value.style.chart.padding;
|
|
@@ -282,11 +309,11 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
282
309
|
bottom: l,
|
|
283
310
|
left: o
|
|
284
311
|
};
|
|
285
|
-
}), { isPrinting:
|
|
312
|
+
}), { isPrinting: ht, isImaging: ft, generatePdf: yt, generateImage: gt } = to({
|
|
286
313
|
elementId: `donut__${g.value}`,
|
|
287
314
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
288
315
|
options: e.value.userOptions.print
|
|
289
|
-
}),
|
|
316
|
+
}), vl = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), pt = f(() => Xl(e.value.customPalette)), p = b({
|
|
290
317
|
dataLabels: {
|
|
291
318
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
292
319
|
},
|
|
@@ -294,7 +321,7 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
294
321
|
showTooltip: e.value.style.chart.tooltip.show
|
|
295
322
|
});
|
|
296
323
|
ye(e, () => {
|
|
297
|
-
|
|
324
|
+
p.value = {
|
|
298
325
|
dataLabels: {
|
|
299
326
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
300
327
|
},
|
|
@@ -302,18 +329,18 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
302
329
|
showTooltip: e.value.style.chart.tooltip.show
|
|
303
330
|
};
|
|
304
331
|
}, { immediate: !0 });
|
|
305
|
-
const n =
|
|
332
|
+
const n = b({
|
|
306
333
|
height: e.value.style.chart.height,
|
|
307
334
|
width: e.value.style.chart.width
|
|
308
335
|
}), ne = f(() => {
|
|
309
336
|
if (e.value.pie)
|
|
310
|
-
return
|
|
311
|
-
const t = e.value.style.chart.layout.donut.strokeWidth / 512, a = Math.min(n.value.width, n.value.height) * t, l = a >
|
|
337
|
+
return A.value;
|
|
338
|
+
const t = e.value.style.chart.layout.donut.strokeWidth / 512, a = Math.min(n.value.width, n.value.height) * t, l = a > A.value ? A.value : a;
|
|
312
339
|
return Math.max(l, 12 * (1 + t));
|
|
313
|
-
}),
|
|
340
|
+
}), bt = Wt, I = f(() => ve.value.map((t, a) => ({
|
|
314
341
|
name: t.name,
|
|
315
|
-
color: Mt(t.color) ||
|
|
316
|
-
value:
|
|
342
|
+
color: Mt(t.color) || pt.value[a] || ie[a] || ie[a % ie.length],
|
|
343
|
+
value: Vl(t.values.reduce((l, o) => l + o, 0)),
|
|
317
344
|
absoluteValues: t.values,
|
|
318
345
|
comment: t.comment || "",
|
|
319
346
|
patternIndex: a,
|
|
@@ -321,68 +348,68 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
321
348
|
ghost: !1,
|
|
322
349
|
pattern: `pattern_${g.value}_${a}`
|
|
323
350
|
})));
|
|
324
|
-
ye(() =>
|
|
325
|
-
Array.isArray(t) && t.length > 0 && (
|
|
351
|
+
ye(() => C.dataset, (t) => {
|
|
352
|
+
Array.isArray(t) && t.length > 0 && (Ae.value = !1);
|
|
326
353
|
}, { immediate: !0 });
|
|
327
|
-
const
|
|
328
|
-
ye(() =>
|
|
329
|
-
|
|
354
|
+
const L = Z(I.value);
|
|
355
|
+
ye(() => I.value, (t) => {
|
|
356
|
+
L.value = t, requestAnimationFrame(q);
|
|
330
357
|
});
|
|
331
|
-
function
|
|
332
|
-
return
|
|
358
|
+
function dl() {
|
|
359
|
+
return I.value.map((t) => ({
|
|
333
360
|
name: t.name,
|
|
334
361
|
color: t.color,
|
|
335
362
|
value: t.value
|
|
336
363
|
}));
|
|
337
364
|
}
|
|
338
|
-
const
|
|
339
|
-
function mt({ from: t, to: a, duration: l, onUpdate: o, onDone: i, easing:
|
|
365
|
+
const M = b([]), se = b(!1);
|
|
366
|
+
function mt({ from: t, to: a, duration: l, onUpdate: o, onDone: i, easing: d = Ot }) {
|
|
340
367
|
const w = performance.now();
|
|
341
|
-
function
|
|
342
|
-
const
|
|
343
|
-
o(te,
|
|
368
|
+
function $(B) {
|
|
369
|
+
const z = Math.min((B - w) / l, 1), G = d(z), te = t + (a - t) * G;
|
|
370
|
+
o(te, z), z < 1 ? requestAnimationFrame($) : (o(a, 1), i && i());
|
|
344
371
|
}
|
|
345
|
-
requestAnimationFrame(
|
|
372
|
+
requestAnimationFrame($);
|
|
346
373
|
}
|
|
347
|
-
function
|
|
348
|
-
const a =
|
|
349
|
-
let o =
|
|
350
|
-
if (
|
|
351
|
-
let
|
|
352
|
-
|
|
353
|
-
(
|
|
374
|
+
function _e(t) {
|
|
375
|
+
const a = I.value.find((i, d) => d === t);
|
|
376
|
+
let o = L.value.find((i, d) => d === t).value;
|
|
377
|
+
if (M.value.includes(t)) {
|
|
378
|
+
let d = function() {
|
|
379
|
+
L.value = L.value.map(
|
|
380
|
+
($, B) => t === B ? { ...$, value: i } : $
|
|
354
381
|
);
|
|
355
382
|
}, w = function() {
|
|
356
383
|
se.value = !0, mt({
|
|
357
384
|
from: o,
|
|
358
385
|
to: i,
|
|
359
386
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
360
|
-
onUpdate: (
|
|
361
|
-
|
|
362
|
-
(
|
|
387
|
+
onUpdate: ($, B) => {
|
|
388
|
+
L.value = L.value.map(
|
|
389
|
+
(z, G) => t === G ? { ...z, value: $ } : z
|
|
363
390
|
), requestAnimationFrame(q);
|
|
364
391
|
},
|
|
365
392
|
onDone: () => {
|
|
366
|
-
|
|
393
|
+
d(), se.value = !1;
|
|
367
394
|
}
|
|
368
395
|
});
|
|
369
396
|
};
|
|
370
|
-
|
|
397
|
+
M.value = M.value.filter(($) => $ !== t);
|
|
371
398
|
const i = a.value;
|
|
372
|
-
e.value.serieToggleAnimation.show && e.value.type === "classic" ? w() : (
|
|
373
|
-
} else if (
|
|
399
|
+
e.value.serieToggleAnimation.show && e.value.type === "classic" ? w() : (d(), requestAnimationFrame(q));
|
|
400
|
+
} else if (M.value.length < I.value.length - 1) {
|
|
374
401
|
let i = function() {
|
|
375
|
-
|
|
376
|
-
(w,
|
|
402
|
+
M.value.push(t), L.value = L.value.map(
|
|
403
|
+
(w, $) => t === $ ? { ...w, value: 0 } : w
|
|
377
404
|
);
|
|
378
|
-
},
|
|
405
|
+
}, d = function() {
|
|
379
406
|
se.value = !0, mt({
|
|
380
407
|
from: o,
|
|
381
408
|
to: 0,
|
|
382
409
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
383
|
-
onUpdate: (w,
|
|
384
|
-
|
|
385
|
-
(
|
|
410
|
+
onUpdate: (w, $) => {
|
|
411
|
+
L.value = L.value.map(
|
|
412
|
+
(B, z) => t === z ? { ...B, value: w } : B
|
|
386
413
|
), requestAnimationFrame(q);
|
|
387
414
|
},
|
|
388
415
|
onDone: () => {
|
|
@@ -390,36 +417,36 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
390
417
|
}
|
|
391
418
|
});
|
|
392
419
|
};
|
|
393
|
-
e.value.serieToggleAnimation.show && e.value.type === "classic" ?
|
|
420
|
+
e.value.serieToggleAnimation.show && e.value.type === "classic" ? d() : i();
|
|
394
421
|
}
|
|
395
|
-
|
|
422
|
+
bt("selectLegend", H.value.map((i) => ({
|
|
396
423
|
name: i.name,
|
|
397
424
|
color: i.color,
|
|
398
425
|
value: i.value
|
|
399
426
|
})));
|
|
400
427
|
}
|
|
401
|
-
function
|
|
402
|
-
if (!
|
|
428
|
+
function wt(t) {
|
|
429
|
+
if (!I.value.length)
|
|
403
430
|
return e.value.debug && console.warn("VueUiDonut - There are no series to show."), null;
|
|
404
|
-
const a =
|
|
431
|
+
const a = I.value.find((l) => l.name === t);
|
|
405
432
|
return a || (e.value.debug && console.warn(`VueUiDonut - Series name not found "${t}"`), null);
|
|
406
433
|
}
|
|
407
|
-
function
|
|
408
|
-
const a =
|
|
409
|
-
a !== null &&
|
|
434
|
+
function hl(t) {
|
|
435
|
+
const a = wt(t);
|
|
436
|
+
a !== null && M.value.includes(a.seriesIndex) && _e(a.seriesIndex);
|
|
410
437
|
}
|
|
411
|
-
function
|
|
412
|
-
const a =
|
|
413
|
-
a !== null && (
|
|
438
|
+
function fl(t) {
|
|
439
|
+
const a = wt(t);
|
|
440
|
+
a !== null && (M.value.includes(a.seriesIndex) || _e(a.seriesIndex));
|
|
414
441
|
}
|
|
415
|
-
const
|
|
416
|
-
if (
|
|
417
|
-
const t =
|
|
418
|
-
...
|
|
442
|
+
const yl = f(() => ve.value.reduce((t, a) => t + a.values.reduce((l, o) => l + o, 0), 0)), H = f(() => {
|
|
443
|
+
if (F.value && !xe.value) {
|
|
444
|
+
const t = j.value.map((l, o) => ({
|
|
445
|
+
...I.value[o],
|
|
419
446
|
value: l,
|
|
420
|
-
color:
|
|
447
|
+
color: I.value[o].color,
|
|
421
448
|
ghost: !1
|
|
422
|
-
})), a =
|
|
449
|
+
})), a = yl.value - j.value.reduce((l, o) => l + o, 0);
|
|
423
450
|
return a > 0 && t.push({
|
|
424
451
|
name: "__ghost__",
|
|
425
452
|
value: a,
|
|
@@ -427,21 +454,21 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
427
454
|
ghost: !0
|
|
428
455
|
}), t;
|
|
429
456
|
} else
|
|
430
|
-
return
|
|
457
|
+
return L.value.forEach((t, a) => {
|
|
431
458
|
if ([null, void 0].includes(t.values))
|
|
432
459
|
return {
|
|
433
460
|
...t,
|
|
434
461
|
values: []
|
|
435
462
|
};
|
|
436
|
-
}),
|
|
463
|
+
}), L.value.map((t, a) => ({
|
|
437
464
|
...t,
|
|
438
465
|
seriesIndex: a
|
|
439
|
-
})).filter((t, a) => !
|
|
440
|
-
}),
|
|
441
|
-
const l = (t.values || []).reduce((i,
|
|
466
|
+
})).filter((t, a) => !M.value.includes(a));
|
|
467
|
+
}), Ne = f(() => ve.value.map((t, a) => {
|
|
468
|
+
const l = (t.values || []).reduce((i, d) => i + d, 0), o = l / ve.value.map((i) => (i.values || []).reduce((d, w) => d + w, 0)).reduce((i, d) => i + d, 0);
|
|
442
469
|
return {
|
|
443
470
|
name: t.name,
|
|
444
|
-
color: Mt(t.color) ||
|
|
471
|
+
color: Mt(t.color) || pt.value[a] || ie[a] || ie[a % ie.length],
|
|
445
472
|
value: l,
|
|
446
473
|
shape: "circle",
|
|
447
474
|
patternIndex: a,
|
|
@@ -449,30 +476,30 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
449
476
|
};
|
|
450
477
|
}).map((t, a) => ({
|
|
451
478
|
...t,
|
|
452
|
-
opacity:
|
|
453
|
-
segregate: () => !se.value &&
|
|
454
|
-
isSegregated:
|
|
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,
|
|
479
|
+
opacity: M.value.includes(a) ? 0.5 : 1,
|
|
480
|
+
segregate: () => !se.value && _e(a),
|
|
481
|
+
isSegregated: M.value.includes(a),
|
|
482
|
+
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, N({
|
|
456
483
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
457
484
|
v: t.value,
|
|
458
485
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
459
486
|
r: e.value.style.chart.legend.roundingValue
|
|
460
|
-
}), { datapoint: t, index: a }) : ""}${e.value.style.chart.legend.showPercentage ?
|
|
461
|
-
v:
|
|
487
|
+
}), { datapoint: t, index: a }) : ""}${e.value.style.chart.legend.showPercentage ? M.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${kl(t.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / P.value) ? "-" : W(e.value.style.chart.layout.labels.percentage.formatter, kt(t), N({
|
|
488
|
+
v: kt(t),
|
|
462
489
|
s: "%",
|
|
463
490
|
r: e.value.style.chart.legend.roundingPercentage
|
|
464
491
|
}))}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
465
|
-
}))),
|
|
492
|
+
}))), gl = f(() => ({
|
|
466
493
|
cy: "donut-div-legend",
|
|
467
494
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
468
495
|
color: e.value.style.chart.legend.color,
|
|
469
496
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
470
497
|
paddingBottom: 12,
|
|
471
498
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
472
|
-
})),
|
|
499
|
+
})), A = f(() => {
|
|
473
500
|
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
501
|
return Math.max(12, l);
|
|
475
|
-
}),
|
|
502
|
+
}), S = f(() => Bt({ series: H.value }, n.value.width / 2, n.value.height / 2, A.value, A.value, 1.99999, 2, 1, 360, 105.25, ne.value)), pl = f(() => Math.abs(H.value.map((t) => t.value).reduce((t, a) => t + a, 0)) > 0), bl = f(() => Bt({
|
|
476
503
|
series: [
|
|
477
504
|
{
|
|
478
505
|
value: 1,
|
|
@@ -484,33 +511,33 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
484
511
|
absoluteValues: [1]
|
|
485
512
|
}
|
|
486
513
|
]
|
|
487
|
-
}, n.value.width / 2, n.value.height / 2,
|
|
488
|
-
const t = Math.max(...
|
|
489
|
-
return
|
|
514
|
+
}, n.value.width / 2, n.value.height / 2, A.value, A.value, 1.99999, 2, 1, 360, 105.25, ne.value)), V = f(() => S.value.filter((t) => !t.ghost)), v = f(() => {
|
|
515
|
+
const t = Math.max(...H.value.map((l) => l.value)), a = H.value.map((l) => l.value / t);
|
|
516
|
+
return Rl({
|
|
490
517
|
series: a,
|
|
491
518
|
center: {
|
|
492
519
|
x: n.value.width / 2,
|
|
493
520
|
y: n.value.height / 2
|
|
494
521
|
},
|
|
495
522
|
maxRadius: Math.min(n.value.width, n.value.height) / 3,
|
|
496
|
-
hasGhost:
|
|
523
|
+
hasGhost: F.value
|
|
497
524
|
});
|
|
498
525
|
});
|
|
499
|
-
function
|
|
526
|
+
function de(t) {
|
|
500
527
|
return t.x > n.value.width / 2 + 6 ? "start" : t.x < n.value.width / 2 - 6 ? "end" : "middle";
|
|
501
528
|
}
|
|
502
|
-
function
|
|
503
|
-
return t.middlePoint.y > n.value.height / 2 ?
|
|
529
|
+
function ml(t) {
|
|
530
|
+
return t.middlePoint.y > n.value.height / 2 ? T({ initX: t.middlePoint.x, initY: t.middlePoint.y, offset: 100, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y : T({ initX: t.middlePoint.x, initY: t.middlePoint.y, offset: 0, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y - 100;
|
|
504
531
|
}
|
|
505
532
|
function R(t) {
|
|
506
533
|
return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
507
534
|
}
|
|
508
|
-
function
|
|
509
|
-
const l = t.value /
|
|
535
|
+
function Ye(t, a) {
|
|
536
|
+
const l = t.value / wl(a);
|
|
510
537
|
return isNaN(l) ? 0 : W(
|
|
511
538
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
512
539
|
l * 100,
|
|
513
|
-
|
|
540
|
+
N({
|
|
514
541
|
v: l * 100,
|
|
515
542
|
s: "%",
|
|
516
543
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
@@ -518,38 +545,38 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
518
545
|
{ datapoint: t }
|
|
519
546
|
);
|
|
520
547
|
}
|
|
521
|
-
function
|
|
548
|
+
function wl(t) {
|
|
522
549
|
return [...t].map((a) => a.value).reduce((a, l) => a + l, 0);
|
|
523
550
|
}
|
|
524
|
-
const
|
|
525
|
-
function
|
|
526
|
-
return se.value ? t.proportion * 100 : t.value /
|
|
551
|
+
const P = f(() => H.value.map((t) => t.value).reduce((t, a) => t + a, 0)), Xe = f(() => P.value / H.value.length);
|
|
552
|
+
function kt(t) {
|
|
553
|
+
return se.value ? t.proportion * 100 : t.value / P.value * 100;
|
|
527
554
|
}
|
|
528
|
-
const
|
|
555
|
+
const Ve = b(null), be = b(!1);
|
|
529
556
|
function he({ datapoint: t, seriesIndex: a }) {
|
|
530
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }),
|
|
557
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), Be.value = !1, X.value = null;
|
|
531
558
|
}
|
|
532
559
|
function fe({ datapoint: t, relativeIndex: a, seriesIndex: l, show: o = !1 }) {
|
|
533
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }),
|
|
560
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), Ve.value = { datapoint: t, seriesIndex: l, config: e.value, series: I.value }, Be.value = o, X.value = a;
|
|
534
561
|
let i = "";
|
|
535
|
-
const
|
|
536
|
-
if (
|
|
562
|
+
const d = e.value.style.chart.tooltip.customFormat;
|
|
563
|
+
if (be.value = !1, Jl(d))
|
|
537
564
|
try {
|
|
538
|
-
const w =
|
|
565
|
+
const w = d({
|
|
539
566
|
seriesIndex: l,
|
|
540
567
|
datapoint: t,
|
|
541
|
-
series:
|
|
568
|
+
series: I.value,
|
|
542
569
|
config: e.value
|
|
543
570
|
});
|
|
544
|
-
typeof w == "string" && (
|
|
571
|
+
typeof w == "string" && (ze.value = w, be.value = !0);
|
|
545
572
|
} catch {
|
|
546
|
-
console.warn("Custom format cannot be applied."),
|
|
573
|
+
console.warn("Custom format cannot be applied."), be.value = !1;
|
|
547
574
|
}
|
|
548
|
-
if (!
|
|
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}"/>${
|
|
575
|
+
if (!be.value) {
|
|
576
|
+
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}"/>${al.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
577
|
e.value.style.chart.layout.labels.value.formatter,
|
|
551
578
|
t.value,
|
|
552
|
-
|
|
579
|
+
N({
|
|
553
580
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
554
581
|
v: t.value,
|
|
555
582
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -564,7 +591,7 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
564
591
|
const w = W(
|
|
565
592
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
566
593
|
t.proportion * 100,
|
|
567
|
-
|
|
594
|
+
N({
|
|
568
595
|
v: t.proportion * 100,
|
|
569
596
|
s: "%",
|
|
570
597
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -577,39 +604,39 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
577
604
|
);
|
|
578
605
|
e.value.style.chart.tooltip.showValue ? i += `<span>(${w})</span></div>` : i += `<b>${w}</b></div>`;
|
|
579
606
|
}
|
|
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>`),
|
|
607
|
+
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>`), ze.value = `<div>${i}</div>`;
|
|
581
608
|
}
|
|
582
609
|
}
|
|
583
610
|
function ue(t) {
|
|
584
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(
|
|
611
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(X.value) && X.value !== t ? `url(#blur_${g.value})` : "";
|
|
585
612
|
}
|
|
586
|
-
const
|
|
587
|
-
const t =
|
|
613
|
+
const Q = f(() => {
|
|
614
|
+
const t = H.value.map((l) => ({
|
|
588
615
|
name: l.name,
|
|
589
616
|
color: l.color
|
|
590
|
-
})), a =
|
|
617
|
+
})), a = H.value.map((l) => l.value);
|
|
591
618
|
return { head: t, body: a };
|
|
592
619
|
});
|
|
593
620
|
function Re(t = null) {
|
|
594
|
-
|
|
595
|
-
const a =
|
|
621
|
+
Ol(() => {
|
|
622
|
+
const a = Q.value.head.map((i, d) => [[
|
|
596
623
|
i.name
|
|
597
|
-
], [
|
|
598
|
-
t ? t(o) :
|
|
624
|
+
], [Q.value.body[d]], [isNaN(Q.value.body[d] / P.value) ? "-" : Q.value.body[d] / P.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Hl(l);
|
|
625
|
+
t ? t(o) : Zl({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
599
626
|
});
|
|
600
627
|
}
|
|
601
|
-
const
|
|
628
|
+
const $e = f(() => {
|
|
602
629
|
const t = [
|
|
603
630
|
' <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
|
-
|
|
631
|
+
N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: P.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
605
632
|
"100%"
|
|
606
|
-
], a =
|
|
633
|
+
], a = Q.value.head.map((i, d) => [
|
|
607
634
|
{
|
|
608
635
|
color: i.color,
|
|
609
636
|
name: i.name || "-"
|
|
610
637
|
},
|
|
611
|
-
|
|
612
|
-
isNaN(
|
|
638
|
+
Q.value.body[d],
|
|
639
|
+
isNaN(Q.value.body[d] / P.value) ? "-" : (Q.value.body[d] / P.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
613
640
|
]), l = {
|
|
614
641
|
th: {
|
|
615
642
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -633,51 +660,51 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
633
660
|
body: a,
|
|
634
661
|
config: l
|
|
635
662
|
};
|
|
636
|
-
}), re =
|
|
637
|
-
function
|
|
638
|
-
re.value = t,
|
|
663
|
+
}), re = b(!1);
|
|
664
|
+
function Ct(t) {
|
|
665
|
+
re.value = t, rt.value += 1;
|
|
639
666
|
}
|
|
640
667
|
const xt = f(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
641
|
-
function
|
|
668
|
+
function kl(t) {
|
|
642
669
|
return t.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((a) => "-").join("");
|
|
643
670
|
}
|
|
644
671
|
function ee(t, a) {
|
|
645
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
672
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.seriesIndex }), bt("selectDatapoint", { datapoint: t, index: a });
|
|
646
673
|
}
|
|
647
|
-
function
|
|
648
|
-
|
|
674
|
+
function At() {
|
|
675
|
+
p.value.showTable = !p.value.showTable;
|
|
649
676
|
}
|
|
650
677
|
function _t() {
|
|
651
|
-
|
|
678
|
+
p.value.dataLabels.show = !p.value.dataLabels.show;
|
|
652
679
|
}
|
|
653
|
-
function
|
|
654
|
-
|
|
680
|
+
function $t() {
|
|
681
|
+
p.value.showTooltip = !p.value.showTooltip;
|
|
655
682
|
}
|
|
656
|
-
const
|
|
683
|
+
const Fe = b(!1);
|
|
657
684
|
function Ge() {
|
|
658
|
-
|
|
685
|
+
Fe.value = !Fe.value;
|
|
659
686
|
}
|
|
660
|
-
async function
|
|
661
|
-
if (!
|
|
662
|
-
const { width: a, height: l } =
|
|
687
|
+
async function Cl({ scale: t = 2 } = {}) {
|
|
688
|
+
if (!Y.value) return;
|
|
689
|
+
const { width: a, height: l } = Y.value.getBoundingClientRect(), o = a / l, { imageUri: i, base64: d } = await ro({ domElement: Y.value, base64: !0, img: !0, scale: t });
|
|
663
690
|
return {
|
|
664
691
|
imageUri: i,
|
|
665
|
-
base64:
|
|
692
|
+
base64: d,
|
|
666
693
|
title: e.value.style.chart.title.text,
|
|
667
694
|
width: a,
|
|
668
695
|
height: l,
|
|
669
696
|
aspectRatio: o
|
|
670
697
|
};
|
|
671
698
|
}
|
|
672
|
-
function
|
|
699
|
+
function xl() {
|
|
673
700
|
if (!ke.value) return;
|
|
674
701
|
const { x: t, y: a, width: l, height: o } = ke.value.getBBox();
|
|
675
|
-
|
|
702
|
+
ae.value && ae.value.setAttribute("viewBox", `${t} ${a} ${l + Math.min(0, t)} ${o + Math.min(0, a)}`);
|
|
676
703
|
}
|
|
677
|
-
const
|
|
678
|
-
const t = e.value.table.useDialog && !e.value.table.show, a =
|
|
704
|
+
const me = f(() => {
|
|
705
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = p.value.showTable;
|
|
679
706
|
return {
|
|
680
|
-
component: t ?
|
|
707
|
+
component: t ? el : Ht,
|
|
681
708
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
682
709
|
props: t ? {
|
|
683
710
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -685,7 +712,7 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
685
712
|
headerColor: e.value.table.th.color,
|
|
686
713
|
headerBg: e.value.table.th.backgroundColor,
|
|
687
714
|
isFullscreen: re.value,
|
|
688
|
-
fullscreenParent:
|
|
715
|
+
fullscreenParent: Y.value,
|
|
689
716
|
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
690
717
|
} : {
|
|
691
718
|
hideDetails: !0,
|
|
@@ -704,97 +731,97 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
704
731
|
}
|
|
705
732
|
};
|
|
706
733
|
});
|
|
707
|
-
ye(() =>
|
|
734
|
+
ye(() => p.value.showTable, (t) => {
|
|
708
735
|
e.value.table.show || (t && e.value.table.useDialog && pe.value ? pe.value.open() : "close" in pe.value && pe.value.close());
|
|
709
736
|
});
|
|
710
|
-
function
|
|
711
|
-
|
|
737
|
+
function Ft() {
|
|
738
|
+
p.value.showTable = !1, De.value && De.value.setTableIconState(!1);
|
|
712
739
|
}
|
|
713
|
-
const
|
|
740
|
+
const Al = f(() => Ne.value.map((t) => ({
|
|
714
741
|
...t,
|
|
715
742
|
name: t.display
|
|
716
|
-
}))),
|
|
717
|
-
svg:
|
|
718
|
-
title:
|
|
719
|
-
legend:
|
|
720
|
-
legendItems:
|
|
721
|
-
backgroundColor:
|
|
743
|
+
}))), _l = f(() => e.value.style.chart.backgroundColor), $l = f(() => e.value.style.chart.legend), Fl = f(() => e.value.style.chart.title), { exportSvg: Sl, getSvg: Tl } = ao({
|
|
744
|
+
svg: ae,
|
|
745
|
+
title: Fl,
|
|
746
|
+
legend: $l,
|
|
747
|
+
legendItems: Al,
|
|
748
|
+
backgroundColor: _l
|
|
722
749
|
});
|
|
723
750
|
async function St({ isCb: t }) {
|
|
724
751
|
if (t) {
|
|
725
|
-
const { blob: a, url: l, text: o, dataUrl: i } = await
|
|
752
|
+
const { blob: a, url: l, text: o, dataUrl: i } = await Tl();
|
|
726
753
|
e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl: i });
|
|
727
754
|
} else
|
|
728
|
-
|
|
755
|
+
Sl();
|
|
729
756
|
}
|
|
730
|
-
return
|
|
731
|
-
autoSize:
|
|
732
|
-
getData:
|
|
733
|
-
getImage:
|
|
734
|
-
generatePdf:
|
|
757
|
+
return Ut({
|
|
758
|
+
autoSize: xl,
|
|
759
|
+
getData: dl,
|
|
760
|
+
getImage: Cl,
|
|
761
|
+
generatePdf: yt,
|
|
735
762
|
generateCsv: Re,
|
|
736
|
-
generateImage:
|
|
763
|
+
generateImage: gt,
|
|
737
764
|
generateSvg: St,
|
|
738
|
-
hideSeries:
|
|
739
|
-
showSeries:
|
|
740
|
-
toggleTable:
|
|
765
|
+
hideSeries: fl,
|
|
766
|
+
showSeries: hl,
|
|
767
|
+
toggleTable: At,
|
|
741
768
|
toggleLabels: _t,
|
|
742
|
-
toggleTooltip:
|
|
769
|
+
toggleTooltip: $t,
|
|
743
770
|
toggleAnnotator: Ge,
|
|
744
|
-
toggleFullscreen:
|
|
771
|
+
toggleFullscreen: Ct
|
|
745
772
|
}), (t, a) => (s(), r("div", {
|
|
746
773
|
ref_key: "donutChart",
|
|
747
|
-
ref:
|
|
774
|
+
ref: Y,
|
|
748
775
|
class: We(`vue-data-ui-component vue-ui-donut ${re.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
749
|
-
style:
|
|
776
|
+
style: _(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
750
777
|
id: `donut__${g.value}`,
|
|
751
|
-
onMouseenter:
|
|
752
|
-
onMouseleave:
|
|
778
|
+
onMouseenter: il,
|
|
779
|
+
onMouseleave: cl
|
|
753
780
|
}, [
|
|
754
|
-
e.value.userOptions.buttons.annotator && u(
|
|
781
|
+
e.value.userOptions.buttons.annotator && u(ae) ? (s(), oe(u(Jt), {
|
|
755
782
|
key: 0,
|
|
756
783
|
color: e.value.style.chart.color,
|
|
757
784
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
758
|
-
active:
|
|
759
|
-
svgRef: u(
|
|
785
|
+
active: Fe.value,
|
|
786
|
+
svgRef: u(ae),
|
|
760
787
|
onClose: Ge
|
|
761
788
|
}, {
|
|
762
|
-
"annotator-action-close":
|
|
789
|
+
"annotator-action-close": m(() => [
|
|
763
790
|
y(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
764
791
|
]),
|
|
765
|
-
"annotator-action-color":
|
|
766
|
-
y(t.$slots, "annotator-action-color",
|
|
792
|
+
"annotator-action-color": m(({ color: l }) => [
|
|
793
|
+
y(t.$slots, "annotator-action-color", O(E({ color: l })), void 0, !0)
|
|
767
794
|
]),
|
|
768
|
-
"annotator-action-draw":
|
|
769
|
-
y(t.$slots, "annotator-action-draw",
|
|
795
|
+
"annotator-action-draw": m(({ mode: l }) => [
|
|
796
|
+
y(t.$slots, "annotator-action-draw", O(E({ mode: l })), void 0, !0)
|
|
770
797
|
]),
|
|
771
|
-
"annotator-action-undo":
|
|
772
|
-
y(t.$slots, "annotator-action-undo",
|
|
798
|
+
"annotator-action-undo": m(({ disabled: l }) => [
|
|
799
|
+
y(t.$slots, "annotator-action-undo", O(E({ disabled: l })), void 0, !0)
|
|
773
800
|
]),
|
|
774
|
-
"annotator-action-redo":
|
|
775
|
-
y(t.$slots, "annotator-action-redo",
|
|
801
|
+
"annotator-action-redo": m(({ disabled: l }) => [
|
|
802
|
+
y(t.$slots, "annotator-action-redo", O(E({ disabled: l })), void 0, !0)
|
|
776
803
|
]),
|
|
777
|
-
"annotator-action-delete":
|
|
778
|
-
y(t.$slots, "annotator-action-delete",
|
|
804
|
+
"annotator-action-delete": m(({ disabled: l }) => [
|
|
805
|
+
y(t.$slots, "annotator-action-delete", O(E({ disabled: l })), void 0, !0)
|
|
779
806
|
]),
|
|
780
807
|
_: 3
|
|
781
|
-
}, 8, ["color", "backgroundColor", "active", "svgRef"])) :
|
|
808
|
+
}, 8, ["color", "backgroundColor", "active", "svgRef"])) : c("", !0),
|
|
782
809
|
y(t.$slots, "userConfig", {}, void 0, !0),
|
|
783
|
-
|
|
810
|
+
vl.value ? (s(), r("div", {
|
|
784
811
|
key: 1,
|
|
785
812
|
ref_key: "noTitle",
|
|
786
|
-
ref:
|
|
813
|
+
ref: lt,
|
|
787
814
|
class: "vue-data-ui-no-title-space",
|
|
788
815
|
style: "height:36px; width: 100%;background:transparent"
|
|
789
|
-
}, null, 512)) :
|
|
816
|
+
}, null, 512)) : c("", !0),
|
|
790
817
|
e.value.style.chart.title.text ? (s(), r("div", {
|
|
791
818
|
key: 2,
|
|
792
819
|
ref_key: "chartTitle",
|
|
793
|
-
ref:
|
|
820
|
+
ref: Qe,
|
|
794
821
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
795
822
|
}, [
|
|
796
|
-
(s(),
|
|
797
|
-
key: `title_${
|
|
823
|
+
(s(), oe(co, {
|
|
824
|
+
key: `title_${ot.value}`,
|
|
798
825
|
config: {
|
|
799
826
|
title: {
|
|
800
827
|
cy: "donut-div-title",
|
|
@@ -806,18 +833,18 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
806
833
|
}
|
|
807
834
|
}
|
|
808
835
|
}, null, 8, ["config"]))
|
|
809
|
-
], 512)) :
|
|
836
|
+
], 512)) : c("", !0),
|
|
810
837
|
h("div", {
|
|
811
838
|
id: `legend-top-${g.value}`
|
|
812
|
-
}, null, 8,
|
|
813
|
-
e.value.userOptions.show && we.value && (u(vt) || u(
|
|
839
|
+
}, null, 8, yo),
|
|
840
|
+
e.value.userOptions.show && we.value && (u(vt) || u(Ee)) ? (s(), oe(u(Kt), {
|
|
814
841
|
ref_key: "userOptionsRef",
|
|
815
|
-
ref:
|
|
816
|
-
key: `user_option_${
|
|
842
|
+
ref: De,
|
|
843
|
+
key: `user_option_${rt.value}`,
|
|
817
844
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
818
845
|
color: e.value.style.chart.color,
|
|
819
|
-
isPrinting: u(
|
|
820
|
-
isImaging: u(
|
|
846
|
+
isPrinting: u(ht),
|
|
847
|
+
isImaging: u(ft),
|
|
821
848
|
uid: g.value,
|
|
822
849
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
823
850
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -828,111 +855,111 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
828
855
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
829
856
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
830
857
|
isFullscreen: re.value,
|
|
831
|
-
chartElement:
|
|
858
|
+
chartElement: Y.value,
|
|
832
859
|
position: e.value.userOptions.position,
|
|
833
860
|
callbacks: e.value.userOptions.callbacks,
|
|
834
|
-
isTooltip:
|
|
861
|
+
isTooltip: p.value.showTooltip,
|
|
835
862
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
836
863
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
837
|
-
isAnnotation:
|
|
864
|
+
isAnnotation: Fe.value,
|
|
838
865
|
printScale: e.value.userOptions.print.scale,
|
|
839
866
|
tableDialog: e.value.table.useDialog,
|
|
840
|
-
onToggleFullscreen:
|
|
841
|
-
onGeneratePdf: u(
|
|
867
|
+
onToggleFullscreen: Ct,
|
|
868
|
+
onGeneratePdf: u(yt),
|
|
842
869
|
onGenerateCsv: Re,
|
|
843
|
-
onGenerateImage: u(
|
|
870
|
+
onGenerateImage: u(gt),
|
|
844
871
|
onGenerateSvg: St,
|
|
845
|
-
onToggleTable:
|
|
872
|
+
onToggleTable: At,
|
|
846
873
|
onToggleLabels: _t,
|
|
847
|
-
onToggleTooltip:
|
|
874
|
+
onToggleTooltip: $t,
|
|
848
875
|
onToggleAnnotator: Ge,
|
|
849
|
-
style:
|
|
876
|
+
style: _({ visibility: u(vt) ? u(Ee) ? "visible" : "hidden" : "visible" })
|
|
850
877
|
}, qe({ _: 2 }, [
|
|
851
878
|
t.$slots.menuIcon ? {
|
|
852
879
|
name: "menuIcon",
|
|
853
|
-
fn:
|
|
854
|
-
y(t.$slots, "menuIcon",
|
|
880
|
+
fn: m(({ isOpen: l, color: o }) => [
|
|
881
|
+
y(t.$slots, "menuIcon", O(E({ isOpen: l, color: o })), void 0, !0)
|
|
855
882
|
]),
|
|
856
883
|
key: "0"
|
|
857
884
|
} : void 0,
|
|
858
885
|
t.$slots.optionTooltip ? {
|
|
859
886
|
name: "optionTooltip",
|
|
860
|
-
fn:
|
|
887
|
+
fn: m(() => [
|
|
861
888
|
y(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
862
889
|
]),
|
|
863
890
|
key: "1"
|
|
864
891
|
} : void 0,
|
|
865
892
|
t.$slots.optionPdf ? {
|
|
866
893
|
name: "optionPdf",
|
|
867
|
-
fn:
|
|
894
|
+
fn: m(() => [
|
|
868
895
|
y(t.$slots, "optionPdf", {}, void 0, !0)
|
|
869
896
|
]),
|
|
870
897
|
key: "2"
|
|
871
898
|
} : void 0,
|
|
872
899
|
t.$slots.optionCsv ? {
|
|
873
900
|
name: "optionCsv",
|
|
874
|
-
fn:
|
|
901
|
+
fn: m(() => [
|
|
875
902
|
y(t.$slots, "optionCsv", {}, void 0, !0)
|
|
876
903
|
]),
|
|
877
904
|
key: "3"
|
|
878
905
|
} : void 0,
|
|
879
906
|
t.$slots.optionImg ? {
|
|
880
907
|
name: "optionImg",
|
|
881
|
-
fn:
|
|
908
|
+
fn: m(() => [
|
|
882
909
|
y(t.$slots, "optionImg", {}, void 0, !0)
|
|
883
910
|
]),
|
|
884
911
|
key: "4"
|
|
885
912
|
} : void 0,
|
|
886
913
|
t.$slots.optionSvg ? {
|
|
887
914
|
name: "optionSvg",
|
|
888
|
-
fn:
|
|
915
|
+
fn: m(() => [
|
|
889
916
|
y(t.$slots, "optionSvg", {}, void 0, !0)
|
|
890
917
|
]),
|
|
891
918
|
key: "5"
|
|
892
919
|
} : void 0,
|
|
893
920
|
t.$slots.optionTable ? {
|
|
894
921
|
name: "optionTable",
|
|
895
|
-
fn:
|
|
922
|
+
fn: m(() => [
|
|
896
923
|
y(t.$slots, "optionTable", {}, void 0, !0)
|
|
897
924
|
]),
|
|
898
925
|
key: "6"
|
|
899
926
|
} : void 0,
|
|
900
927
|
t.$slots.optionLabels ? {
|
|
901
928
|
name: "optionLabels",
|
|
902
|
-
fn:
|
|
929
|
+
fn: m(() => [
|
|
903
930
|
y(t.$slots, "optionLabels", {}, void 0, !0)
|
|
904
931
|
]),
|
|
905
932
|
key: "7"
|
|
906
933
|
} : void 0,
|
|
907
934
|
t.$slots.optionFullscreen ? {
|
|
908
935
|
name: "optionFullscreen",
|
|
909
|
-
fn:
|
|
910
|
-
y(t.$slots, "optionFullscreen",
|
|
936
|
+
fn: m(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
937
|
+
y(t.$slots, "optionFullscreen", O(E({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
911
938
|
]),
|
|
912
939
|
key: "8"
|
|
913
940
|
} : void 0,
|
|
914
941
|
t.$slots.optionAnnotator ? {
|
|
915
942
|
name: "optionAnnotator",
|
|
916
|
-
fn:
|
|
917
|
-
y(t.$slots, "optionAnnotator",
|
|
943
|
+
fn: m(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
944
|
+
y(t.$slots, "optionAnnotator", O(E({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
918
945
|
]),
|
|
919
946
|
key: "9"
|
|
920
947
|
} : void 0
|
|
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"])) :
|
|
948
|
+
]), 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"])) : c("", !0),
|
|
922
949
|
(s(), r("svg", {
|
|
923
950
|
ref_key: "svgRef",
|
|
924
|
-
ref:
|
|
925
|
-
xmlns: u(
|
|
951
|
+
ref: ae,
|
|
952
|
+
xmlns: u(Gl),
|
|
926
953
|
class: We({ "vue-data-ui-fullscreen--on": re.value, "vue-data-ui-fulscreen--off": !re.value, "vue-data-ui-svg": !0 }),
|
|
927
954
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
928
|
-
style:
|
|
955
|
+
style: _(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${dt.value.css}`)
|
|
929
956
|
}, [
|
|
930
957
|
h("g", {
|
|
931
958
|
ref_key: "G",
|
|
932
959
|
ref: ke,
|
|
933
960
|
class: "vue-data-ui-g"
|
|
934
961
|
}, [
|
|
935
|
-
|
|
962
|
+
Se(u(Qt)),
|
|
936
963
|
t.$slots["chart-background"] ? (s(), r("foreignObject", {
|
|
937
964
|
key: 0,
|
|
938
965
|
x: 0,
|
|
@@ -944,35 +971,35 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
944
971
|
}
|
|
945
972
|
}, [
|
|
946
973
|
y(t.$slots, "chart-background", {}, void 0, !0)
|
|
947
|
-
], 8,
|
|
948
|
-
e.value.type === "classic" && !isNaN(ne.value /
|
|
974
|
+
], 8, po)) : c("", !0),
|
|
975
|
+
e.value.type === "classic" && !isNaN(ne.value / A.value) ? (s(), r("defs", bo, [
|
|
949
976
|
e.value.style.chart.useGradient ? (s(), r("radialGradient", {
|
|
950
977
|
key: 0,
|
|
951
978
|
id: `gradient_${g.value}`
|
|
952
979
|
}, [
|
|
953
980
|
h("stop", {
|
|
954
981
|
offset: "0%",
|
|
955
|
-
"stop-color": u(
|
|
982
|
+
"stop-color": u(Pe)(e.value.style.chart.backgroundColor, 0),
|
|
956
983
|
"stop-opacity": "0"
|
|
957
|
-
}, null, 8,
|
|
984
|
+
}, null, 8, wo),
|
|
958
985
|
h("stop", {
|
|
959
|
-
offset: `${(1 - ne.value /
|
|
960
|
-
"stop-color": u(
|
|
986
|
+
offset: `${(1 - ne.value / A.value) * 100}%`,
|
|
987
|
+
"stop-color": u(Pe)("#FFFFFF", 0),
|
|
961
988
|
"stop-opacity": "0"
|
|
962
|
-
}, null, 8,
|
|
989
|
+
}, null, 8, ko),
|
|
963
990
|
h("stop", {
|
|
964
|
-
offset: `${(1 - ne.value /
|
|
965
|
-
"stop-color": u(
|
|
966
|
-
}, null, 8,
|
|
991
|
+
offset: `${(1 - ne.value / A.value / 2) * 100}%`,
|
|
992
|
+
"stop-color": u(Pe)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
993
|
+
}, null, 8, Co),
|
|
967
994
|
h("stop", {
|
|
968
995
|
offset: "100%",
|
|
969
|
-
"stop-color": u(
|
|
996
|
+
"stop-color": u(Pe)(e.value.style.chart.backgroundColor, 0),
|
|
970
997
|
"stop-opacity": "0"
|
|
971
|
-
}, null, 8,
|
|
972
|
-
], 8,
|
|
973
|
-
])) :
|
|
974
|
-
e.value.type === "polar" ? (s(), r("defs",
|
|
975
|
-
(s(!0), r(k, null,
|
|
998
|
+
}, null, 8, xo)
|
|
999
|
+
], 8, mo)) : c("", !0)
|
|
1000
|
+
])) : c("", !0),
|
|
1001
|
+
e.value.type === "polar" ? (s(), r("defs", Ao, [
|
|
1002
|
+
(s(!0), r(k, null, D(v.value, (l, o) => (s(), r("radialGradient", {
|
|
976
1003
|
id: `polar_gradient_${o}_${g.value}`,
|
|
977
1004
|
cx: (isNaN(l.middlePoint.x / n.value.width * 100) ? 0 : l.middlePoint.x / n.value.width * 100) + "%",
|
|
978
1005
|
cy: (isNaN(l.middlePoint.y / n.value.height * 100) ? 0 : l.middlePoint.y / n.value.height * 100) + "%",
|
|
@@ -980,15 +1007,15 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
980
1007
|
}, [
|
|
981
1008
|
h("stop", {
|
|
982
1009
|
offset: "0%",
|
|
983
|
-
"stop-color": u(
|
|
1010
|
+
"stop-color": u(Ul)(S.value[o].color, 0.05),
|
|
984
1011
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
985
|
-
}, null, 8,
|
|
1012
|
+
}, null, 8, $o),
|
|
986
1013
|
h("stop", {
|
|
987
1014
|
offset: "100%",
|
|
988
|
-
"stop-color":
|
|
989
|
-
}, null, 8,
|
|
990
|
-
], 8,
|
|
991
|
-
])) :
|
|
1015
|
+
"stop-color": S.value[o].color
|
|
1016
|
+
}, null, 8, Fo)
|
|
1017
|
+
], 8, _o))), 256))
|
|
1018
|
+
])) : c("", !0),
|
|
992
1019
|
h("defs", null, [
|
|
993
1020
|
h("filter", {
|
|
994
1021
|
id: `blur_${g.value}`,
|
|
@@ -1001,12 +1028,12 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1001
1028
|
in: "SourceGraphic",
|
|
1002
1029
|
stdDeviation: 2,
|
|
1003
1030
|
id: `blur_std_${g.value}`
|
|
1004
|
-
}, null, 8,
|
|
1031
|
+
}, null, 8, To),
|
|
1005
1032
|
a[5] || (a[5] = h("feColorMatrix", {
|
|
1006
1033
|
type: "saturate",
|
|
1007
1034
|
values: "0"
|
|
1008
1035
|
}, null, -1))
|
|
1009
|
-
], 8,
|
|
1036
|
+
], 8, So),
|
|
1010
1037
|
h("filter", {
|
|
1011
1038
|
id: `shadow_${g.value}`,
|
|
1012
1039
|
"color-interpolation-filters": "sRGB"
|
|
@@ -1017,8 +1044,8 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1017
1044
|
stdDeviation: "10",
|
|
1018
1045
|
"flood-opacity": "0.5",
|
|
1019
1046
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
1020
|
-
}, null, 8,
|
|
1021
|
-
], 8,
|
|
1047
|
+
}, null, 8, Do)
|
|
1048
|
+
], 8, Po),
|
|
1022
1049
|
h("filter", {
|
|
1023
1050
|
id: `drop_shadow_${g.value}`,
|
|
1024
1051
|
"color-interpolation-filters": "sRGB",
|
|
@@ -1033,160 +1060,160 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1033
1060
|
stdDeviation: "3",
|
|
1034
1061
|
"flood-opacity": "1",
|
|
1035
1062
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
1036
|
-
}, null, 8,
|
|
1037
|
-
], 8,
|
|
1063
|
+
}, null, 8, Lo)
|
|
1064
|
+
], 8, Io)
|
|
1038
1065
|
]),
|
|
1039
|
-
e.value.type === "classic" ? (s(!0), r(k, { key: 3 },
|
|
1040
|
-
R(l) &&
|
|
1066
|
+
e.value.type === "classic" ? (s(!0), r(k, { key: 3 }, D(S.value.filter((l) => !l.ghost), (l, o) => (s(), r("g", null, [
|
|
1067
|
+
R(l) && p.value.dataLabels.show ? (s(), r("path", {
|
|
1041
1068
|
key: 0,
|
|
1042
|
-
d: u(
|
|
1069
|
+
d: u(Wl)(l, { x: n.value.width / 2, y: n.value.height / 2 }, 16, 16, !1, !1, ne.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
1043
1070
|
stroke: l.color,
|
|
1044
1071
|
"stroke-width": "1",
|
|
1045
1072
|
"stroke-linecap": "round",
|
|
1046
1073
|
"stroke-linejoin": "round",
|
|
1047
1074
|
fill: "none",
|
|
1048
1075
|
filter: ue(o)
|
|
1049
|
-
}, null, 8,
|
|
1050
|
-
]))), 256)) :
|
|
1051
|
-
e.value.type === "polar" ? (s(!0), r(k, { key: 4 },
|
|
1052
|
-
R(l) &&
|
|
1076
|
+
}, null, 8, Mo)) : c("", !0)
|
|
1077
|
+
]))), 256)) : c("", !0),
|
|
1078
|
+
e.value.type === "polar" ? (s(!0), r(k, { key: 4 }, D(S.value.filter((l) => !l.ghost), (l, o) => (s(), r("g", null, [
|
|
1079
|
+
R(l) && p.value.dataLabels.show ? (s(), r("path", {
|
|
1053
1080
|
key: 0,
|
|
1054
|
-
d: `M ${u(
|
|
1081
|
+
d: `M ${u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x},${u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y} ${v.value[o].middlePoint.x},${v.value[o].middlePoint.y}`,
|
|
1055
1082
|
stroke: l.color,
|
|
1056
1083
|
"stroke-width": "1",
|
|
1057
1084
|
"stroke-linecap": "round",
|
|
1058
1085
|
"stroke-linejoin": "round",
|
|
1059
1086
|
fill: "none",
|
|
1060
1087
|
filter: ue(o),
|
|
1061
|
-
style:
|
|
1062
|
-
transition:
|
|
1088
|
+
style: _({
|
|
1089
|
+
transition: F.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1063
1090
|
})
|
|
1064
|
-
}, null, 12,
|
|
1065
|
-
]))), 256)) :
|
|
1091
|
+
}, null, 12, Bo)) : c("", !0)
|
|
1092
|
+
]))), 256)) : c("", !0),
|
|
1066
1093
|
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (s(), r("circle", {
|
|
1067
1094
|
key: 5,
|
|
1068
1095
|
cx: n.value.width / 2,
|
|
1069
1096
|
cy: n.value.height / 2,
|
|
1070
|
-
r:
|
|
1097
|
+
r: A.value <= 0 ? 10 : A.value,
|
|
1071
1098
|
fill: e.value.style.chart.backgroundColor,
|
|
1072
1099
|
filter: `url(#shadow_${g.value})`
|
|
1073
|
-
}, null, 8,
|
|
1074
|
-
t.$slots.pattern ? (s(), r("g",
|
|
1075
|
-
(s(!0), r(k, null,
|
|
1100
|
+
}, null, 8, zo)) : c("", !0),
|
|
1101
|
+
t.$slots.pattern ? (s(), r("g", Oo, [
|
|
1102
|
+
(s(!0), r(k, null, D(Ke.dataset, (l, o) => (s(), r("defs", {
|
|
1076
1103
|
key: `pattern-${l.patternIndex}`
|
|
1077
1104
|
}, [
|
|
1078
|
-
y(t.$slots, "pattern",
|
|
1105
|
+
y(t.$slots, "pattern", je({ ref_for: !0 }, { seriesIndex: o, patternId: `pattern_${g.value}_${o}` }), void 0, !0)
|
|
1079
1106
|
]))), 128))
|
|
1080
|
-
])) :
|
|
1081
|
-
|
|
1082
|
-
(s(!0), r(k, null,
|
|
1107
|
+
])) : c("", !0),
|
|
1108
|
+
P.value && e.value.type === "classic" ? (s(), r(k, { key: 7 }, [
|
|
1109
|
+
(s(!0), r(k, null, D(V.value, (l, o) => (s(), r("path", {
|
|
1083
1110
|
stroke: e.value.style.chart.backgroundColor,
|
|
1084
1111
|
d: l.arcSlice,
|
|
1085
1112
|
fill: "#FFFFFF"
|
|
1086
|
-
}, null, 8,
|
|
1087
|
-
(s(!0), r(k, null,
|
|
1113
|
+
}, null, 8, Eo))), 256)),
|
|
1114
|
+
(s(!0), r(k, null, D(V.value, (l, o) => (s(), r("path", {
|
|
1088
1115
|
class: "vue-ui-donut-arc-path",
|
|
1089
1116
|
d: l.arcSlice,
|
|
1090
1117
|
fill: l.color,
|
|
1091
1118
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1092
1119
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1093
1120
|
filter: ue(o)
|
|
1094
|
-
}, null, 8,
|
|
1095
|
-
t.$slots.pattern ? (s(), r("g",
|
|
1096
|
-
(s(!0), r(k, null,
|
|
1121
|
+
}, null, 8, No))), 256)),
|
|
1122
|
+
t.$slots.pattern ? (s(), r("g", Yo, [
|
|
1123
|
+
(s(!0), r(k, null, D(V.value, (l, o) => (s(), r("path", {
|
|
1097
1124
|
class: "vue-ui-donut-arc-path",
|
|
1098
1125
|
d: l.arcSlice,
|
|
1099
1126
|
fill: `url(#${l.pattern})`,
|
|
1100
1127
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1101
1128
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1102
1129
|
filter: ue(o)
|
|
1103
|
-
}, null, 8,
|
|
1104
|
-
])) :
|
|
1105
|
-
], 64)) :
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
(s(!0), r(k, null,
|
|
1130
|
+
}, null, 8, Xo))), 256))
|
|
1131
|
+
])) : c("", !0)
|
|
1132
|
+
], 64)) : c("", !0),
|
|
1133
|
+
P.value && e.value.type === "polar" ? (s(), r(k, { key: 8 }, [
|
|
1134
|
+
S.value.length > 1 ? (s(), r("g", Vo, [
|
|
1135
|
+
(s(!0), r(k, null, D(V.value, (l, o) => (s(), r("path", {
|
|
1109
1136
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1110
|
-
d:
|
|
1137
|
+
d: v.value[o].path,
|
|
1111
1138
|
fill: "#FFFFFF",
|
|
1112
|
-
style:
|
|
1113
|
-
transition:
|
|
1139
|
+
style: _({
|
|
1140
|
+
transition: F.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1114
1141
|
})
|
|
1115
|
-
}, null, 12,
|
|
1116
|
-
e.value.style.chart.layout.donut.useShadow ? (s(), r("g",
|
|
1117
|
-
(s(!0), r(k, null,
|
|
1142
|
+
}, null, 12, Ro))), 256)),
|
|
1143
|
+
e.value.style.chart.layout.donut.useShadow ? (s(), r("g", Go, [
|
|
1144
|
+
(s(!0), r(k, null, D(V.value, (l, o) => (s(), r("path", {
|
|
1118
1145
|
class: "vue-ui-donut-arc-path",
|
|
1119
|
-
d:
|
|
1146
|
+
d: v.value[o].path,
|
|
1120
1147
|
fill: "transparent",
|
|
1121
1148
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1122
1149
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1123
1150
|
filter: `url(#drop_shadow_${g.value})`,
|
|
1124
|
-
style:
|
|
1125
|
-
transition:
|
|
1151
|
+
style: _({
|
|
1152
|
+
transition: F.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1126
1153
|
})
|
|
1127
|
-
}, null, 12,
|
|
1128
|
-
])) :
|
|
1129
|
-
t.$slots.pattern ? (s(), r("g",
|
|
1130
|
-
(s(!0), r(k, null,
|
|
1154
|
+
}, null, 12, Uo))), 256))
|
|
1155
|
+
])) : c("", !0),
|
|
1156
|
+
t.$slots.pattern ? (s(), r("g", Wo, [
|
|
1157
|
+
(s(!0), r(k, null, D(V.value, (l, o) => (s(), r("path", {
|
|
1131
1158
|
class: "vue-ui-donut-arc-path",
|
|
1132
|
-
d:
|
|
1159
|
+
d: v.value[o].path,
|
|
1133
1160
|
fill: `url(#${l.pattern})`,
|
|
1134
1161
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1135
1162
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1136
1163
|
filter: ue(o),
|
|
1137
|
-
style:
|
|
1138
|
-
transition:
|
|
1164
|
+
style: _({
|
|
1165
|
+
transition: F.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1139
1166
|
transformOrigin: "center"
|
|
1140
1167
|
})
|
|
1141
|
-
}, null, 12,
|
|
1142
|
-
])) :
|
|
1143
|
-
(s(!0), r(k, null,
|
|
1168
|
+
}, null, 12, qo))), 256))
|
|
1169
|
+
])) : c("", !0),
|
|
1170
|
+
(s(!0), r(k, null, D(V.value, (l, o) => (s(), r("path", {
|
|
1144
1171
|
class: "vue-ui-donut-arc-path",
|
|
1145
|
-
d:
|
|
1172
|
+
d: v.value[o].path,
|
|
1146
1173
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${o}_${g.value})` : l.color,
|
|
1147
1174
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1148
1175
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1149
1176
|
filter: ue(o),
|
|
1150
|
-
style:
|
|
1151
|
-
transition:
|
|
1177
|
+
style: _({
|
|
1178
|
+
transition: F.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1152
1179
|
})
|
|
1153
|
-
}, null, 12,
|
|
1154
|
-
])) : (s(), r("g",
|
|
1180
|
+
}, null, 12, jo))), 256))
|
|
1181
|
+
])) : (s(), r("g", Ho, [
|
|
1155
1182
|
t.$slots.pattern ? (s(), r("circle", {
|
|
1156
1183
|
key: 0,
|
|
1157
1184
|
cx: n.value.width / 2,
|
|
1158
1185
|
cy: n.value.height / 2,
|
|
1159
|
-
r:
|
|
1160
|
-
fill: `url(#pattern_${g.value}_${
|
|
1186
|
+
r: A.value,
|
|
1187
|
+
fill: `url(#pattern_${g.value}_${S.value[0].patternIndex})`,
|
|
1161
1188
|
stroke: e.value.style.chart.backgroundColor,
|
|
1162
1189
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1163
|
-
}, null, 8,
|
|
1190
|
+
}, null, 8, Zo)) : c("", !0),
|
|
1164
1191
|
h("circle", {
|
|
1165
1192
|
cx: n.value.width / 2,
|
|
1166
1193
|
cy: n.value.height / 2,
|
|
1167
|
-
r:
|
|
1168
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${g.value})` :
|
|
1194
|
+
r: A.value,
|
|
1195
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${g.value})` : S.value[0].color,
|
|
1169
1196
|
stroke: e.value.style.chart.backgroundColor,
|
|
1170
1197
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1171
|
-
}, null, 8,
|
|
1198
|
+
}, null, 8, Jo)
|
|
1172
1199
|
]))
|
|
1173
1200
|
], 64)) : (s(), r(k, { key: 9 }, [
|
|
1174
|
-
e.value.type === "classic" && !
|
|
1175
|
-
(s(!0), r(k, null,
|
|
1201
|
+
e.value.type === "classic" && !pl.value ? (s(), r("g", Ko, [
|
|
1202
|
+
(s(!0), r(k, null, D(bl.value, (l, o) => (s(), r("path", {
|
|
1176
1203
|
class: "vue-ui-donut-arc-path",
|
|
1177
1204
|
d: l.arcSlice,
|
|
1178
1205
|
fill: l.color,
|
|
1179
1206
|
stroke: e.value.style.chart.backgroundColor,
|
|
1180
1207
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1181
|
-
}, null, 8,
|
|
1182
|
-
])) :
|
|
1208
|
+
}, null, 8, Qo))), 256))
|
|
1209
|
+
])) : c("", !0),
|
|
1183
1210
|
h("circle", {
|
|
1184
1211
|
cx: n.value.width / 2,
|
|
1185
1212
|
cy: n.value.height / 2,
|
|
1186
|
-
r:
|
|
1213
|
+
r: A.value <= 0 ? 10 : A.value,
|
|
1187
1214
|
fill: "transparent",
|
|
1188
1215
|
stroke: e.value.style.chart.backgroundColor
|
|
1189
|
-
}, null, 8,
|
|
1216
|
+
}, null, 8, ea)
|
|
1190
1217
|
], 64)),
|
|
1191
1218
|
e.value.style.chart.useGradient && e.value.type === "classic" ? (s(), r("circle", {
|
|
1192
1219
|
key: 10,
|
|
@@ -1194,25 +1221,25 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1194
1221
|
cy: n.value.height / 2,
|
|
1195
1222
|
r: (
|
|
1196
1223
|
/* This might require adjustments */
|
|
1197
|
-
|
|
1224
|
+
A.value <= 0 ? 10 : A.value
|
|
1198
1225
|
),
|
|
1199
1226
|
fill: `url(#gradient_${g.value})`
|
|
1200
|
-
}, null, 8,
|
|
1227
|
+
}, null, 8, ta)) : c("", !0),
|
|
1201
1228
|
h("circle", {
|
|
1202
1229
|
ref_key: "circle_hollow",
|
|
1203
|
-
ref:
|
|
1230
|
+
ref: sl,
|
|
1204
1231
|
style: { pointerEvents: "none" },
|
|
1205
1232
|
fill: "none",
|
|
1206
1233
|
cx: n.value.width / 2,
|
|
1207
1234
|
cy: n.value.height / 2,
|
|
1208
1235
|
r: Math.max(0.1, ne.value * 1.7)
|
|
1209
|
-
}, null, 8,
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
(s(!0), r(k, null,
|
|
1213
|
-
d: e.value.type === "classic" ? l.arcSlice :
|
|
1236
|
+
}, null, 8, la),
|
|
1237
|
+
P.value ? (s(), r(k, { key: 11 }, [
|
|
1238
|
+
S.value.length > 1 || e.value.type === "classic" ? (s(), r("g", oa, [
|
|
1239
|
+
(s(!0), r(k, null, D(S.value.filter((l) => !l.ghost), (l, o) => (s(), r("path", {
|
|
1240
|
+
d: e.value.type === "classic" ? l.arcSlice : v.value[o].path,
|
|
1214
1241
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1215
|
-
fill:
|
|
1242
|
+
fill: X.value === o ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1216
1243
|
onMouseenter: (i) => fe({
|
|
1217
1244
|
datapoint: l,
|
|
1218
1245
|
relativeIndex: o,
|
|
@@ -1221,28 +1248,28 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1221
1248
|
}),
|
|
1222
1249
|
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex }),
|
|
1223
1250
|
onClick: (i) => ee(l, o)
|
|
1224
|
-
}, null, 40,
|
|
1225
|
-
])) : (s(), r("g",
|
|
1251
|
+
}, null, 40, aa))), 256))
|
|
1252
|
+
])) : (s(), r("g", na, [
|
|
1226
1253
|
h("circle", {
|
|
1227
1254
|
cx: n.value.width / 2,
|
|
1228
1255
|
cy: n.value.height / 2,
|
|
1229
|
-
r:
|
|
1256
|
+
r: A.value,
|
|
1230
1257
|
fill: "transparent",
|
|
1231
1258
|
onMouseenter: a[0] || (a[0] = (l) => fe({
|
|
1232
|
-
datapoint:
|
|
1259
|
+
datapoint: S.value[0],
|
|
1233
1260
|
relativeIndex: 0,
|
|
1234
|
-
seriesIndex:
|
|
1261
|
+
seriesIndex: S.value[0].seriesIndex,
|
|
1235
1262
|
show: !0
|
|
1236
1263
|
})),
|
|
1237
|
-
onMouseleave: a[1] || (a[1] = (l) => he({ datapoint:
|
|
1238
|
-
onClick: a[2] || (a[2] = (l) => ee(
|
|
1239
|
-
}, null, 40,
|
|
1264
|
+
onMouseleave: a[1] || (a[1] = (l) => he({ datapoint: S.value[0], seriesIndex: S.value[0].seriesIndex })),
|
|
1265
|
+
onClick: a[2] || (a[2] = (l) => ee(S.value[0], t.i))
|
|
1266
|
+
}, null, 40, sa)
|
|
1240
1267
|
]))
|
|
1241
|
-
], 64)) :
|
|
1268
|
+
], 64)) : c("", !0),
|
|
1242
1269
|
e.value.type === "classic" ? (s(), r("g", {
|
|
1243
1270
|
key: 12,
|
|
1244
1271
|
ref_key: "G_hollow",
|
|
1245
|
-
ref:
|
|
1272
|
+
ref: nl,
|
|
1246
1273
|
class: "vue-data-ui-donut-hollow-labels"
|
|
1247
1274
|
}, [
|
|
1248
1275
|
e.value.style.chart.layout.labels.hollow.total.show ? (s(), r("text", {
|
|
@@ -1252,8 +1279,8 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1252
1279
|
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,
|
|
1253
1280
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
1254
1281
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
1255
|
-
style:
|
|
1256
|
-
}, U(e.value.style.chart.layout.labels.hollow.total.text), 13,
|
|
1282
|
+
style: _(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
1283
|
+
}, U(e.value.style.chart.layout.labels.hollow.total.text), 13, ua)) : c("", !0),
|
|
1257
1284
|
e.value.style.chart.layout.labels.hollow.total.show ? (s(), r("text", {
|
|
1258
1285
|
key: 1,
|
|
1259
1286
|
"text-anchor": "middle",
|
|
@@ -1261,16 +1288,16 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1261
1288
|
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,
|
|
1262
1289
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
1263
1290
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
1264
|
-
style:
|
|
1291
|
+
style: _(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
1265
1292
|
}, U(u(W)(
|
|
1266
1293
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
1267
|
-
|
|
1268
|
-
u(
|
|
1294
|
+
P.value,
|
|
1295
|
+
u(N)({
|
|
1269
1296
|
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
1270
|
-
v:
|
|
1297
|
+
v: P.value,
|
|
1271
1298
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
1272
1299
|
})
|
|
1273
|
-
)), 13,
|
|
1300
|
+
)), 13, ra)) : c("", !0),
|
|
1274
1301
|
e.value.style.chart.layout.labels.hollow.average.show ? (s(), r("text", {
|
|
1275
1302
|
key: 2,
|
|
1276
1303
|
"text-anchor": "middle",
|
|
@@ -1278,8 +1305,8 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1278
1305
|
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,
|
|
1279
1306
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
1280
1307
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
1281
|
-
style:
|
|
1282
|
-
}, U(e.value.style.chart.layout.labels.hollow.average.text), 13,
|
|
1308
|
+
style: _(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
1309
|
+
}, U(e.value.style.chart.layout.labels.hollow.average.text), 13, ia)) : c("", !0),
|
|
1283
1310
|
e.value.style.chart.layout.labels.hollow.average.show ? (s(), r("text", {
|
|
1284
1311
|
key: 3,
|
|
1285
1312
|
"text-anchor": "middle",
|
|
@@ -1287,54 +1314,54 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1287
1314
|
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,
|
|
1288
1315
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
1289
1316
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
1290
|
-
style:
|
|
1291
|
-
}, U(se.value ||
|
|
1317
|
+
style: _(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1318
|
+
}, U(se.value || F.value ? "--" : u(W)(
|
|
1292
1319
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
1293
|
-
|
|
1294
|
-
u(
|
|
1320
|
+
Xe.value,
|
|
1321
|
+
u(N)({
|
|
1295
1322
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
1296
|
-
v:
|
|
1323
|
+
v: Xe.value,
|
|
1297
1324
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
1298
1325
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
1299
1326
|
})
|
|
1300
|
-
)), 13,
|
|
1301
|
-
], 512)) :
|
|
1302
|
-
(s(!0), r(k, null,
|
|
1327
|
+
)), 13, ca)) : c("", !0)
|
|
1328
|
+
], 512)) : c("", !0),
|
|
1329
|
+
(s(!0), r(k, null, D(V.value.filter((l) => !l.ghost), (l, o) => (s(), r("g", {
|
|
1303
1330
|
filter: ue(o),
|
|
1304
1331
|
class: We({ animated: e.value.useCssAnimation }),
|
|
1305
1332
|
key: l.seriesIndex
|
|
1306
1333
|
}, [
|
|
1307
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), r("g",
|
|
1334
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), r("g", da, [
|
|
1308
1335
|
(s(), r("foreignObject", {
|
|
1309
|
-
x: u(
|
|
1336
|
+
x: u(x)(l, !0).anchor === "end" ? u(x)(l).x - 120 : u(x)(l, !0).anchor === "middle" ? u(x)(l).x - 60 : u(x)(l).x,
|
|
1310
1337
|
y: u(ge)(l) - (xt.value ? 20 : 0),
|
|
1311
1338
|
width: "120",
|
|
1312
1339
|
height: "60",
|
|
1313
1340
|
style: { overflow: "visible" }
|
|
1314
1341
|
}, [
|
|
1315
1342
|
h("div", null, [
|
|
1316
|
-
y(t.$slots, "dataLabel",
|
|
1343
|
+
y(t.$slots, "dataLabel", je({ ref_for: !0 }, {
|
|
1317
1344
|
datapoint: l,
|
|
1318
|
-
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1345
|
+
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(X.value) || X.value === o,
|
|
1319
1346
|
isSafari: xt.value,
|
|
1320
|
-
isVisible: R(l) &&
|
|
1321
|
-
textAlign: u(
|
|
1322
|
-
flexAlign: u(
|
|
1323
|
-
percentage:
|
|
1347
|
+
isVisible: R(l) && p.value.dataLabels.show,
|
|
1348
|
+
textAlign: u(x)(l, !0, 16, !0).anchor,
|
|
1349
|
+
flexAlign: u(x)(l, !0, 16).anchor,
|
|
1350
|
+
percentage: Ye(l, V.value)
|
|
1324
1351
|
}), void 0, !0)
|
|
1325
1352
|
])
|
|
1326
|
-
], 8,
|
|
1327
|
-
])) : (s(), r("g",
|
|
1353
|
+
], 8, ha))
|
|
1354
|
+
])) : (s(), r("g", fa, [
|
|
1328
1355
|
e.value.type === "classic" ? (s(), r(k, { key: 0 }, [
|
|
1329
|
-
R(l) &&
|
|
1356
|
+
R(l) && p.value.dataLabels.show ? (s(), r("circle", {
|
|
1330
1357
|
key: 0,
|
|
1331
|
-
cx: u(
|
|
1358
|
+
cx: u(x)(l).x,
|
|
1332
1359
|
cy: u(ge)(l) - 3.5,
|
|
1333
1360
|
fill: l.color,
|
|
1334
1361
|
stroke: e.value.style.chart.backgroundColor,
|
|
1335
1362
|
"stroke-width": 1,
|
|
1336
1363
|
r: 3,
|
|
1337
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1364
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(X.value) || X.value === o ? "" : `url(#blur_${g.value})`,
|
|
1338
1365
|
onClick: (i) => ee(l, o),
|
|
1339
1366
|
onMouseenter: (i) => fe({
|
|
1340
1367
|
datapoint: l,
|
|
@@ -1343,18 +1370,18 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1343
1370
|
show: !0
|
|
1344
1371
|
}),
|
|
1345
1372
|
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex })
|
|
1346
|
-
}, null, 40,
|
|
1347
|
-
], 64)) :
|
|
1373
|
+
}, null, 40, ya)) : c("", !0)
|
|
1374
|
+
], 64)) : c("", !0),
|
|
1348
1375
|
e.value.type === "polar" ? (s(), r(k, { key: 1 }, [
|
|
1349
|
-
R(l) &&
|
|
1376
|
+
R(l) && p.value.dataLabels.show ? (s(), r("circle", {
|
|
1350
1377
|
key: 0,
|
|
1351
|
-
cx: u(
|
|
1352
|
-
cy: u(
|
|
1378
|
+
cx: u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1379
|
+
cy: u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
|
|
1353
1380
|
fill: l.color,
|
|
1354
1381
|
stroke: e.value.style.chart.backgroundColor,
|
|
1355
1382
|
"stroke-width": 1,
|
|
1356
1383
|
r: 3,
|
|
1357
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1384
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(X.value) || X.value === o ? "" : `url(#blur_${g.value})`,
|
|
1358
1385
|
onClick: (i) => ee(l, o),
|
|
1359
1386
|
onMouseenter: (i) => fe({
|
|
1360
1387
|
datapoint: l,
|
|
@@ -1363,20 +1390,20 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1363
1390
|
show: !0
|
|
1364
1391
|
}),
|
|
1365
1392
|
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex }),
|
|
1366
|
-
style:
|
|
1367
|
-
transition:
|
|
1393
|
+
style: _({
|
|
1394
|
+
transition: F.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1368
1395
|
})
|
|
1369
|
-
}, null, 44,
|
|
1370
|
-
], 64)) :
|
|
1396
|
+
}, null, 44, ga)) : c("", !0)
|
|
1397
|
+
], 64)) : c("", !0),
|
|
1371
1398
|
e.value.type === "classic" ? (s(), r(k, { key: 2 }, [
|
|
1372
|
-
|
|
1399
|
+
Dt(h("text", {
|
|
1373
1400
|
class: "vue-data-ui-datalabel-value",
|
|
1374
|
-
"text-anchor": u(
|
|
1375
|
-
x: u(
|
|
1401
|
+
"text-anchor": u(x)(l, !0, 12).anchor,
|
|
1402
|
+
x: u(x)(l, !0, 12).x,
|
|
1376
1403
|
y: u(ge)(l),
|
|
1377
1404
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1378
|
-
"font-size":
|
|
1379
|
-
style:
|
|
1405
|
+
"font-size": Ce.value + "px",
|
|
1406
|
+
style: _(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
1380
1407
|
onClick: (i) => ee(l, o),
|
|
1381
1408
|
onMouseenter: (i) => fe({
|
|
1382
1409
|
datapoint: l,
|
|
@@ -1385,51 +1412,51 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1385
1412
|
show: !0
|
|
1386
1413
|
}),
|
|
1387
1414
|
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex })
|
|
1388
|
-
}, U(
|
|
1415
|
+
}, U(Ye(l, V.value)) + " " + U(e.value.style.chart.layout.labels.value.show ? `(${u(W)(
|
|
1389
1416
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1390
1417
|
l.value,
|
|
1391
|
-
u(
|
|
1418
|
+
u(N)({
|
|
1392
1419
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1393
1420
|
v: l.value,
|
|
1394
1421
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1395
1422
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1396
1423
|
}),
|
|
1397
1424
|
{ datapoint: l }
|
|
1398
|
-
)})` : ""), 45,
|
|
1399
|
-
[It, R(l) &&
|
|
1425
|
+
)})` : ""), 45, pa), [
|
|
1426
|
+
[It, R(l) && p.value.dataLabels.show]
|
|
1400
1427
|
]),
|
|
1401
|
-
|
|
1428
|
+
Dt(h("text", {
|
|
1402
1429
|
class: "vue-data-ui-datalabel-name",
|
|
1403
|
-
"text-anchor": u(
|
|
1404
|
-
x: u(
|
|
1405
|
-
y: u(ge)(l) +
|
|
1430
|
+
"text-anchor": u(x)(l).anchor,
|
|
1431
|
+
x: u(x)(l, !0, 12).x,
|
|
1432
|
+
y: u(ge)(l) + K.value * 1.2,
|
|
1406
1433
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1407
|
-
"font-size":
|
|
1408
|
-
style:
|
|
1434
|
+
"font-size": K.value + "px",
|
|
1435
|
+
style: _(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1409
1436
|
onClick: (i) => ee(l, o),
|
|
1410
|
-
innerHTML: u(
|
|
1437
|
+
innerHTML: u(zt)({
|
|
1411
1438
|
content: l.name,
|
|
1412
|
-
fontSize:
|
|
1439
|
+
fontSize: K.value,
|
|
1413
1440
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1414
|
-
x: u(
|
|
1415
|
-
y: u(ge)(l) +
|
|
1441
|
+
x: u(x)(l, !0, 12).x,
|
|
1442
|
+
y: u(ge)(l) + K.value
|
|
1416
1443
|
})
|
|
1417
|
-
}, null, 12,
|
|
1418
|
-
[It, R(l) &&
|
|
1444
|
+
}, null, 12, ba), [
|
|
1445
|
+
[It, R(l) && p.value.dataLabels.show]
|
|
1419
1446
|
]),
|
|
1420
|
-
a[6] || (a[6] =
|
|
1421
|
-
], 64)) :
|
|
1447
|
+
a[6] || (a[6] = Te(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
|
|
1448
|
+
], 64)) : c("", !0),
|
|
1422
1449
|
e.value.type === "polar" ? (s(), r(k, { key: 3 }, [
|
|
1423
|
-
R(l) &&
|
|
1450
|
+
R(l) && p.value.dataLabels.show ? (s(), r("text", {
|
|
1424
1451
|
key: 0,
|
|
1425
1452
|
class: "vue-data-ui-datalabel-value",
|
|
1426
|
-
"text-anchor":
|
|
1427
|
-
x: u(
|
|
1428
|
-
y: u(
|
|
1453
|
+
"text-anchor": de(v.value[o].middlePoint),
|
|
1454
|
+
x: u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1455
|
+
y: u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
|
|
1429
1456
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1430
|
-
"font-size":
|
|
1431
|
-
style:
|
|
1432
|
-
transition:
|
|
1457
|
+
"font-size": Ce.value,
|
|
1458
|
+
style: _({
|
|
1459
|
+
transition: F.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1433
1460
|
fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
1434
1461
|
}),
|
|
1435
1462
|
onClick: (i) => ee(l, o),
|
|
@@ -1440,45 +1467,45 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1440
1467
|
show: !0
|
|
1441
1468
|
}),
|
|
1442
1469
|
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex })
|
|
1443
|
-
}, U(
|
|
1470
|
+
}, U(Ye(l, V.value)) + " " + U(e.value.style.chart.layout.labels.value.show ? `(${u(W)(
|
|
1444
1471
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1445
1472
|
l.value,
|
|
1446
|
-
u(
|
|
1473
|
+
u(N)({
|
|
1447
1474
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1448
1475
|
v: l.value,
|
|
1449
1476
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1450
1477
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1451
1478
|
}),
|
|
1452
1479
|
{ datapoint: l }
|
|
1453
|
-
)})` : ""), 45,
|
|
1454
|
-
R(l) &&
|
|
1480
|
+
)})` : ""), 45, ma)) : c("", !0),
|
|
1481
|
+
R(l) && p.value.dataLabels.show ? (s(), r("text", {
|
|
1455
1482
|
key: 1,
|
|
1456
1483
|
class: "vue-data-ui-datalabel-name",
|
|
1457
|
-
"text-anchor":
|
|
1458
|
-
x: u(
|
|
1459
|
-
y: u(
|
|
1484
|
+
"text-anchor": de(v.value[o].middlePoint),
|
|
1485
|
+
x: u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1486
|
+
y: u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y + K.value * 1.2,
|
|
1460
1487
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1461
|
-
"font-size":
|
|
1462
|
-
style:
|
|
1463
|
-
transition:
|
|
1488
|
+
"font-size": K.value,
|
|
1489
|
+
style: _({
|
|
1490
|
+
transition: F.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1464
1491
|
fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
1465
1492
|
}),
|
|
1466
1493
|
onClick: (i) => ee(l, o),
|
|
1467
|
-
innerHTML: u(
|
|
1494
|
+
innerHTML: u(zt)({
|
|
1468
1495
|
content: l.name,
|
|
1469
|
-
fontSize:
|
|
1496
|
+
fontSize: Ce.value,
|
|
1470
1497
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1471
|
-
x: u(
|
|
1472
|
-
y: u(
|
|
1498
|
+
x: u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1499
|
+
y: u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y + K.value * 1.2
|
|
1473
1500
|
})
|
|
1474
|
-
}, null, 12,
|
|
1475
|
-
a[7] || (a[7] =
|
|
1476
|
-
], 64)) :
|
|
1501
|
+
}, null, 12, wa)) : c("", !0),
|
|
1502
|
+
a[7] || (a[7] = Te(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
|
|
1503
|
+
], 64)) : c("", !0)
|
|
1477
1504
|
])),
|
|
1478
|
-
|
|
1505
|
+
p.value.dataLabels.show && e.value.style.chart.comments.show && l.comment ? (s(), r("g", ka, [
|
|
1479
1506
|
R(l) && e.value.type === "classic" ? (s(), r("foreignObject", {
|
|
1480
1507
|
key: 0,
|
|
1481
|
-
x: e.value.style.chart.comments.offsetX + (u(
|
|
1508
|
+
x: e.value.style.chart.comments.offsetX + (u(x)(l, !0).anchor === "end" ? u(x)(l).x - e.value.style.chart.comments.width : u(x)(l, !0).anchor === "middle" ? u(x)(l).x - e.value.style.chart.comments.width / 2 : u(x)(l).x),
|
|
1482
1509
|
y: u(ge)(l) + 24 + e.value.style.chart.comments.offsetY,
|
|
1483
1510
|
width: e.value.style.chart.comments.width,
|
|
1484
1511
|
height: "200",
|
|
@@ -1486,65 +1513,65 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1486
1513
|
}, [
|
|
1487
1514
|
h("div", null, [
|
|
1488
1515
|
y(t.$slots, "plot-comment", {
|
|
1489
|
-
plot: { ...l, textAlign: u(
|
|
1516
|
+
plot: { ...l, textAlign: u(x)(l, !0, 16, !0).anchor, flexAlign: u(x)(l, !0, 16).anchor, isFirstLoad: F.value }
|
|
1490
1517
|
}, void 0, !0)
|
|
1491
1518
|
])
|
|
1492
|
-
], 8,
|
|
1519
|
+
], 8, Ca)) : c("", !0),
|
|
1493
1520
|
R(l) && e.value.type === "polar" ? (s(), r("foreignObject", {
|
|
1494
1521
|
key: 1,
|
|
1495
|
-
x: e.value.style.chart.comments.offsetX + (
|
|
1496
|
-
y:
|
|
1522
|
+
x: e.value.style.chart.comments.offsetX + (de(v.value[o].middlePoint) === "end" ? u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x - e.value.style.chart.comments.width : de(v.value[o].middlePoint) === "middle" ? u(T)({ initX: v.value[o].middlePoint.x, initY: v.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(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x),
|
|
1523
|
+
y: ml(v.value[o]) + e.value.style.chart.comments.offsetY,
|
|
1497
1524
|
width: e.value.style.chart.comments.width,
|
|
1498
1525
|
height: "200",
|
|
1499
|
-
style:
|
|
1500
|
-
transition:
|
|
1526
|
+
style: _({
|
|
1527
|
+
transition: F.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1501
1528
|
overflow: "visible",
|
|
1502
1529
|
pointerEvents: "none"
|
|
1503
1530
|
})
|
|
1504
1531
|
}, [
|
|
1505
1532
|
h("div", null, [
|
|
1506
1533
|
y(t.$slots, "plot-comment", {
|
|
1507
|
-
plot: { ...l, textAlign:
|
|
1534
|
+
plot: { ...l, textAlign: de(v.value[o].middlePoint), flexAlign: de(v.value[o].middlePoint), isFirstLoad: F.value }
|
|
1508
1535
|
}, void 0, !0)
|
|
1509
1536
|
])
|
|
1510
|
-
], 12,
|
|
1511
|
-
])) :
|
|
1512
|
-
], 10,
|
|
1537
|
+
], 12, xa)) : c("", !0)
|
|
1538
|
+
])) : c("", !0)
|
|
1539
|
+
], 10, va))), 128)),
|
|
1513
1540
|
y(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
1514
1541
|
], 512)
|
|
1515
|
-
], 14,
|
|
1516
|
-
t.$slots.watermark ? (s(), r("div",
|
|
1517
|
-
y(t.$slots, "watermark",
|
|
1518
|
-
])) :
|
|
1542
|
+
], 14, go)),
|
|
1543
|
+
t.$slots.watermark ? (s(), r("div", Aa, [
|
|
1544
|
+
y(t.$slots, "watermark", O(E({ isPrinting: u(ht) || u(ft) })), void 0, !0)
|
|
1545
|
+
])) : c("", !0),
|
|
1519
1546
|
h("div", {
|
|
1520
1547
|
id: `legend-bottom-${g.value}`
|
|
1521
|
-
}, null, 8,
|
|
1522
|
-
|
|
1548
|
+
}, null, 8, _a),
|
|
1549
|
+
st.value ? (s(), oe(Bl, {
|
|
1523
1550
|
key: 5,
|
|
1524
1551
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${g.value}` : `#legend-bottom-${g.value}`
|
|
1525
1552
|
}, [
|
|
1526
1553
|
h("div", {
|
|
1527
1554
|
ref_key: "chartLegend",
|
|
1528
|
-
ref:
|
|
1555
|
+
ref: et
|
|
1529
1556
|
}, [
|
|
1530
|
-
e.value.style.chart.legend.show ? (s(),
|
|
1531
|
-
key: `legend_${
|
|
1532
|
-
legendSet:
|
|
1533
|
-
config:
|
|
1534
|
-
onClickMarker: a[3] || (a[3] = ({ i: l }) =>
|
|
1557
|
+
e.value.style.chart.legend.show ? (s(), oe(vo, {
|
|
1558
|
+
key: `legend_${nt.value}`,
|
|
1559
|
+
legendSet: Ne.value,
|
|
1560
|
+
config: gl.value,
|
|
1561
|
+
onClickMarker: a[3] || (a[3] = ({ i: l }) => _e(l))
|
|
1535
1562
|
}, qe({
|
|
1536
|
-
item:
|
|
1563
|
+
item: m(({ legend: l, index: o }) => [
|
|
1537
1564
|
h("div", {
|
|
1538
|
-
style:
|
|
1565
|
+
style: _(`opacity:${M.value.includes(o) ? 0.5 : 1}`),
|
|
1539
1566
|
onClick: (i) => l.segregate()
|
|
1540
|
-
}, U(l.display), 13,
|
|
1567
|
+
}, U(l.display), 13, $a)
|
|
1541
1568
|
]),
|
|
1542
1569
|
_: 2
|
|
1543
1570
|
}, [
|
|
1544
1571
|
t.$slots.pattern ? {
|
|
1545
1572
|
name: "legend-pattern",
|
|
1546
|
-
fn:
|
|
1547
|
-
|
|
1573
|
+
fn: m(({ legend: l, index: o }) => [
|
|
1574
|
+
Se(io, {
|
|
1548
1575
|
shape: l.shape,
|
|
1549
1576
|
radius: 30,
|
|
1550
1577
|
stroke: "none",
|
|
@@ -1554,27 +1581,27 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1554
1581
|
]),
|
|
1555
1582
|
key: "0"
|
|
1556
1583
|
} : void 0
|
|
1557
|
-
]), 1032, ["legendSet", "config"])) :
|
|
1558
|
-
y(t.$slots, "legend", { legend:
|
|
1584
|
+
]), 1032, ["legendSet", "config"])) : c("", !0),
|
|
1585
|
+
y(t.$slots, "legend", { legend: Ne.value }, void 0, !0)
|
|
1559
1586
|
], 512)
|
|
1560
|
-
], 8, ["to"])) :
|
|
1587
|
+
], 8, ["to"])) : c("", !0),
|
|
1561
1588
|
t.$slots.source ? (s(), r("div", {
|
|
1562
1589
|
key: 6,
|
|
1563
1590
|
ref_key: "source",
|
|
1564
|
-
ref:
|
|
1591
|
+
ref: tt,
|
|
1565
1592
|
dir: "auto"
|
|
1566
1593
|
}, [
|
|
1567
1594
|
y(t.$slots, "source", {}, void 0, !0)
|
|
1568
|
-
], 512)) :
|
|
1569
|
-
t.$slots.hollow ? (s(), r("div",
|
|
1570
|
-
y(t.$slots, "hollow",
|
|
1571
|
-
total:
|
|
1572
|
-
average:
|
|
1573
|
-
dataset:
|
|
1595
|
+
], 512)) : c("", !0),
|
|
1596
|
+
t.$slots.hollow ? (s(), r("div", Fa, [
|
|
1597
|
+
y(t.$slots, "hollow", O(E({
|
|
1598
|
+
total: P.value,
|
|
1599
|
+
average: Xe.value,
|
|
1600
|
+
dataset: I.value
|
|
1574
1601
|
})), void 0, !0)
|
|
1575
|
-
])) :
|
|
1576
|
-
|
|
1577
|
-
show:
|
|
1602
|
+
])) : c("", !0),
|
|
1603
|
+
Se(u(qt), {
|
|
1604
|
+
show: p.value.showTooltip && Be.value,
|
|
1578
1605
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1579
1606
|
color: e.value.style.chart.tooltip.color,
|
|
1580
1607
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1584,50 +1611,50 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1584
1611
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1585
1612
|
position: e.value.style.chart.tooltip.position,
|
|
1586
1613
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1587
|
-
parent:
|
|
1588
|
-
content:
|
|
1589
|
-
isCustom:
|
|
1614
|
+
parent: Y.value,
|
|
1615
|
+
content: ze.value,
|
|
1616
|
+
isCustom: be.value,
|
|
1590
1617
|
isFullscreen: re.value,
|
|
1591
1618
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1592
1619
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1593
1620
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1594
1621
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThrehsold
|
|
1595
1622
|
}, {
|
|
1596
|
-
"tooltip-before":
|
|
1597
|
-
y(t.$slots, "tooltip-before",
|
|
1623
|
+
"tooltip-before": m(() => [
|
|
1624
|
+
y(t.$slots, "tooltip-before", O(E({ ...Ve.value })), void 0, !0)
|
|
1598
1625
|
]),
|
|
1599
|
-
"tooltip-after":
|
|
1600
|
-
y(t.$slots, "tooltip-after",
|
|
1626
|
+
"tooltip-after": m(() => [
|
|
1627
|
+
y(t.$slots, "tooltip-after", O(E({ ...Ve.value })), void 0, !0)
|
|
1601
1628
|
]),
|
|
1602
1629
|
_: 3
|
|
1603
1630
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1604
|
-
we.value && e.value.userOptions.buttons.table ? (s(),
|
|
1631
|
+
we.value && e.value.userOptions.buttons.table ? (s(), oe(zl(me.value.component), je({ key: 8 }, me.value.props, {
|
|
1605
1632
|
ref_key: "tableUnit",
|
|
1606
1633
|
ref: pe,
|
|
1607
|
-
onClose:
|
|
1634
|
+
onClose: Ft
|
|
1608
1635
|
}), qe({
|
|
1609
|
-
content:
|
|
1610
|
-
(s(),
|
|
1636
|
+
content: m(() => [
|
|
1637
|
+
(s(), oe(u(Zt), {
|
|
1611
1638
|
key: `table_${at.value}`,
|
|
1612
|
-
colNames:
|
|
1613
|
-
head:
|
|
1614
|
-
body:
|
|
1615
|
-
config:
|
|
1616
|
-
title: e.value.table.useDialog ? "" :
|
|
1639
|
+
colNames: $e.value.colNames,
|
|
1640
|
+
head: $e.value.head,
|
|
1641
|
+
body: $e.value.body,
|
|
1642
|
+
config: $e.value.config,
|
|
1643
|
+
title: e.value.table.useDialog ? "" : me.value.title,
|
|
1617
1644
|
withCloseButton: !e.value.table.useDialog,
|
|
1618
|
-
onClose:
|
|
1645
|
+
onClose: Ft
|
|
1619
1646
|
}, {
|
|
1620
|
-
th:
|
|
1647
|
+
th: m(({ th: l }) => [
|
|
1621
1648
|
h("div", {
|
|
1622
1649
|
innerHTML: l,
|
|
1623
1650
|
style: { display: "flex", "align-items": "center" }
|
|
1624
|
-
}, null, 8,
|
|
1651
|
+
}, null, 8, Sa)
|
|
1625
1652
|
]),
|
|
1626
|
-
td:
|
|
1627
|
-
|
|
1653
|
+
td: m(({ td: l }) => [
|
|
1654
|
+
Te(U(l.name ? l.name : isNaN(Number(l)) ? l.includes("%") ? l : u(W)(
|
|
1628
1655
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1629
1656
|
l,
|
|
1630
|
-
u(
|
|
1657
|
+
u(N)({
|
|
1631
1658
|
v: l,
|
|
1632
1659
|
s: "%",
|
|
1633
1660
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
@@ -1635,7 +1662,7 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1635
1662
|
) : u(W)(
|
|
1636
1663
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1637
1664
|
l,
|
|
1638
|
-
u(
|
|
1665
|
+
u(N)({
|
|
1639
1666
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1640
1667
|
v: l,
|
|
1641
1668
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1650,32 +1677,37 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
|
|
|
1650
1677
|
}, [
|
|
1651
1678
|
e.value.table.useDialog ? {
|
|
1652
1679
|
name: "title",
|
|
1653
|
-
fn:
|
|
1654
|
-
|
|
1680
|
+
fn: m(() => [
|
|
1681
|
+
Te(U(me.value.title), 1)
|
|
1655
1682
|
]),
|
|
1656
1683
|
key: "0"
|
|
1657
1684
|
} : void 0,
|
|
1658
1685
|
e.value.table.useDialog ? {
|
|
1659
1686
|
name: "actions",
|
|
1660
|
-
fn:
|
|
1687
|
+
fn: m(() => [
|
|
1661
1688
|
h("button", {
|
|
1662
1689
|
tabindex: "0",
|
|
1663
1690
|
class: "vue-ui-user-options-button",
|
|
1664
1691
|
onClick: a[4] || (a[4] = (l) => Re(e.value.userOptions.callbacks.csv))
|
|
1665
1692
|
}, [
|
|
1666
|
-
|
|
1693
|
+
Se(u(jt), {
|
|
1667
1694
|
name: "excel",
|
|
1668
|
-
stroke:
|
|
1695
|
+
stroke: me.value.props.color
|
|
1669
1696
|
}, null, 8, ["stroke"])
|
|
1670
1697
|
])
|
|
1671
1698
|
]),
|
|
1672
1699
|
key: "1"
|
|
1673
1700
|
} : void 0
|
|
1674
|
-
]), 1040)) :
|
|
1675
|
-
u(
|
|
1676
|
-
], 46,
|
|
1701
|
+
]), 1040)) : c("", !0),
|
|
1702
|
+
u(xe) ? (s(), oe(oo, { key: 9 })) : c("", !0)
|
|
1703
|
+
], 46, fo));
|
|
1677
1704
|
}
|
|
1678
|
-
},
|
|
1705
|
+
}, Pa = /* @__PURE__ */ ho(Ta, [["__scopeId", "data-v-3033b2a3"]]), qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1706
|
+
__proto__: null,
|
|
1707
|
+
default: Pa
|
|
1708
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1679
1709
|
export {
|
|
1680
|
-
|
|
1710
|
+
Pa as V,
|
|
1711
|
+
qa as a,
|
|
1712
|
+
Wa as v
|
|
1681
1713
|
};
|