vue-data-ui 3.26.4 → 3.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-BW_Fs3gD.js → Arrow-DKO1l8oR.js} +1 -1
- package/dist/{BaseDraggableDialog-BniZj4c8.js → BaseDraggableDialog-C50TEJFv.js} +2 -2
- package/dist/{BaseIcon-CPBlYfWq.js → BaseIcon-Cx9FD751.js} +1 -1
- package/dist/{BaseLegendToggle-CWtURpCj.js → BaseLegendToggle-CP3sddwv.js} +1 -1
- package/dist/{BaseZoomControls-jfXIQvEi.js → BaseZoomControls-vNi8YykO.js} +2 -2
- package/dist/{ColorPicker-BKndMOAm.js → ColorPicker-hmC2bvwS.js} +2 -2
- package/dist/{DataTable-DV4Plrm3.js → DataTable-CjF_An2h.js} +2 -2
- package/dist/{HillActions-B45z2DmP.js → HillActions-DqqGB33u.js} +1 -1
- package/dist/{Legend-CJzCVAWl.js → Legend-CulFgjUY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B3I_UGDm.js → NonSvgPenAndPaper-BK1v_MfW.js} +3 -3
- package/dist/{PackageVersion-DEAYvEjl.js → PackageVersion-D7H9nfK0.js} +1 -1
- package/dist/{PenAndPaper-Dv8WPVwA.js → PenAndPaper-CNiuGw6k.js} +3 -3
- package/dist/{Shape-BIe6C0HJ.js → Shape-DSwamtmO.js} +1 -1
- package/dist/{SlicerPreview-8atniw0P.js → SlicerPreview-k5YerMA9.js} +12 -12
- package/dist/{SparkTooltip-DsGcGbm2.js → SparkTooltip-D35KVv6N.js} +6 -6
- package/dist/{Title-B4UpMerH.js → Title-BMCuINbv.js} +1 -1
- package/dist/{Tooltip-BmfGHn1L.js → Tooltip-C4ZTwkLF.js} +1 -1
- package/dist/{UserOptions-C92R4ACT.js → UserOptions-CORYQiif.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.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-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BL08UcHI.js → dom-to-png-CBusMkua.js} +1 -1
- package/dist/{exposedLib-CBUiJ5b-.js → exposedLib-UNxZlnAS.js} +10 -10
- package/dist/{img--C0otIB0.js → img-Bb5rHcpO.js} +1 -1
- package/dist/{labelUtils-CfQIxXGL.js → labelUtils-Ccn9kK7T.js} +1 -1
- package/dist/{lib-DTiqmM1G.js → lib-D4wK6ljP.js} +130 -136
- package/dist/{package-Dj6ohGVJ.js → package-DmQufM0G.js} +1 -1
- package/dist/{pdf-CbSwKZjC.js → pdf-BzIQHx-F.js} +1 -1
- package/dist/{render-common-vuBsglf8.js → render-common-BtfjXdkJ.js} +10 -10
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +212 -60
- package/dist/types/vue-ui-stackbar.d.ts +10 -0
- package/dist/{useConfig-DObkR9Aa.js → useConfig-D_6ZrPMD.js} +82 -0
- package/dist/{useNestedProp-D8cRQaVo.js → useNestedProp-DR_8JPol.js} +1 -1
- package/dist/{useObjectBindings-CPmyIJxB.js → useObjectBindings-DvasYMGu.js} +2 -2
- package/dist/{usePrinter-R2nu9g4B.js → usePrinter-DdW2GSm0.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-CijFk00w.js → vue-data-ui-Df7WV80w.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-BxmndVBz.js → vue-ui-3d-bar-CJjNPwhG.js} +463 -463
- package/dist/{vue-ui-accordion-CxMo-mXC.js → vue-ui-accordion-CaoNWreI.js} +4 -4
- package/dist/{vue-ui-age-pyramid-ysX_ySuK.js → vue-ui-age-pyramid-BYcM0uIP.js} +22 -22
- package/dist/{vue-ui-annotator-IAqTX-5M.js → vue-ui-annotator-BmqjDjRF.js} +10 -10
- package/dist/{vue-ui-bullet-rO5_pB7t.js → vue-ui-bullet-DBOAvpBB.js} +18 -18
- package/dist/vue-ui-bump-rPYwDJ4o.js +1242 -0
- package/dist/{vue-ui-candlestick-BLxP54W4.js → vue-ui-candlestick-WQHIQNv_.js} +625 -625
- package/dist/{vue-ui-carousel-table-DHbt40ze.js → vue-ui-carousel-table-Dojcvt49.js} +106 -106
- package/dist/{vue-ui-chestnut-CHHZx5ek.js → vue-ui-chestnut-BdhEByUf.js} +65 -65
- package/dist/{vue-ui-chord-WmqFMK4A.js → vue-ui-chord-MF4xF5az.js} +46 -46
- package/dist/{vue-ui-circle-pack-D2RXFToP.js → vue-ui-circle-pack-BwDim7G8.js} +26 -26
- package/dist/{vue-ui-cursor-CDf6s7AZ.js → vue-ui-cursor-w_5cbpSb.js} +61 -61
- package/dist/{vue-ui-dag-Ba3Bkxd7.js → vue-ui-dag-D2EUqeDN.js} +65 -65
- package/dist/{vue-ui-dashboard-DKCEm56d.js → vue-ui-dashboard-BLnVXosj.js} +70 -70
- package/dist/{vue-ui-digits-B6cSEytP.js → vue-ui-digits-zSqwYWHm.js} +4 -4
- package/dist/{vue-ui-donut-BfAlXtvS.js → vue-ui-donut-ZYZfqIhi.js} +117 -117
- package/dist/{vue-ui-donut-evolution-C2TYUKag.js → vue-ui-donut-evolution-DtLbWi3h.js} +216 -216
- package/dist/vue-ui-donut-nLDLZwig.js +2427 -0
- package/dist/{vue-ui-dumbbell-GMQ4JZf_.js → vue-ui-dumbbell-Qgn3wRyI.js} +20 -20
- package/dist/{vue-ui-flow-B53jXaVQ.js → vue-ui-flow-iSH6dyGw.js} +109 -109
- package/dist/vue-ui-funnel-Cc2z2zS5.js +749 -0
- package/dist/{vue-ui-galaxy-CE7LYi8M.js → vue-ui-galaxy-GhuBSU0o.js} +267 -267
- package/dist/vue-ui-gauge-BAjBO13a.js +934 -0
- package/dist/{vue-ui-geo-B4a2hwYf.js → vue-ui-geo-mwTtvIHY.js} +19 -19
- package/dist/{vue-ui-gizmo-CY4cLNcJ.js → vue-ui-gizmo-B5vOOrZX.js} +4 -4
- package/dist/vue-ui-heatmap-fimkY1nN.js +1613 -0
- package/dist/{vue-ui-hill-CTPzgkCs.js → vue-ui-hill-DPfTt3UE.js} +18 -18
- package/dist/{vue-ui-history-plot-CGFijdmp.js → vue-ui-history-plot-B1WgzqTb.js} +53 -53
- package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +1723 -0
- package/dist/{vue-ui-kpi-Bu2OpF5d.js → vue-ui-kpi-D-p0CSQh.js} +4 -4
- package/dist/{vue-ui-label-CWFQzKOy.js → vue-ui-label-r3-QloJL.js} +65 -65
- package/dist/{vue-ui-mini-loader-hdh8SSxW.js → vue-ui-mini-loader-CnrBGAtM.js} +3 -3
- package/dist/vue-ui-molecule-BhdAYX_H.js +941 -0
- package/dist/vue-ui-mood-radar-CdlnPrQf.js +1111 -0
- package/dist/{vue-ui-nested-donuts-DN2PgxeK.js → vue-ui-nested-donuts-DceVEyUc.js} +341 -341
- package/dist/{vue-ui-onion-lrDciRpg.js → vue-ui-onion-_L0uEATI.js} +209 -209
- package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +1444 -0
- package/dist/{vue-ui-quadrant-DrcflMPg.js → vue-ui-quadrant-CDDFLRcX.js} +55 -55
- package/dist/{vue-ui-quick-chart-D5ZFV0Aj.js → vue-ui-quick-chart-Dom257hl.js} +377 -377
- package/dist/vue-ui-radar-BLdri1bA.js +1386 -0
- package/dist/{vue-ui-rating-DxBJXbPW.js → vue-ui-rating-C_iTttXB.js} +25 -25
- package/dist/vue-ui-relation-circle-BmxTSgjd.js +905 -0
- package/dist/vue-ui-ridgeline-CsUrcVmL.js +1630 -0
- package/dist/{vue-ui-rings-6OHcBlOC.js → vue-ui-rings-D_GPkgbD.js} +318 -318
- package/dist/vue-ui-scatter-D_C-IhnW.js +2418 -0
- package/dist/{vue-ui-skeleton--HlS7ySk.js → vue-ui-skeleton-t7e6KEZ2.js} +60 -60
- package/dist/{vue-ui-smiley-ZrM6-QCy.js → vue-ui-smiley-Dl95YWVo.js} +14 -14
- package/dist/{vue-ui-spark-trend-CIfpocxI.js → vue-ui-spark-trend-pkZA7u5V.js} +20 -20
- package/dist/{vue-ui-sparkbar-Db7Ntacd.js → vue-ui-sparkbar-Ds7OJjhG.js} +77 -77
- package/dist/{vue-ui-sparkgauge-DEuNFkU_.js → vue-ui-sparkgauge-US1M88qc.js} +6 -6
- package/dist/vue-ui-sparkhistogram-FISVpSvv.js +589 -0
- package/dist/{vue-ui-sparkline-CSsnkXMJ.js → vue-ui-sparkline-DvE1dHcs.js} +37 -37
- package/dist/{vue-ui-sparkstackbar-BnN7KebI.js → vue-ui-sparkstackbar-CWtF9eG-.js} +39 -39
- package/dist/vue-ui-stackbar-fMgrHzZe.js +3273 -0
- package/dist/{vue-ui-stackline-CqjwxpU1.js → vue-ui-stackline-CSMuUup2.js} +303 -303
- package/dist/vue-ui-strip-plot-TGD2UFHS.js +1752 -0
- package/dist/{vue-ui-table-CsMozTrM.js → vue-ui-table-BCEIbg8-.js} +14 -14
- package/dist/{vue-ui-table-heatmap-DFcESbBy.js → vue-ui-table-heatmap-CvUcFWMf.js} +9 -9
- package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +738 -0
- package/dist/vue-ui-thermometer-BYFAZCzh.js +758 -0
- package/dist/{vue-ui-timer-CFxvU_q1.js → vue-ui-timer-BKr8RVnn.js} +10 -10
- package/dist/{vue-ui-tiremarks-DIjsyNwO.js → vue-ui-tiremarks-BYu3cEoy.js} +35 -35
- package/dist/{vue-ui-treemap-BuvFUWJm.js → vue-ui-treemap-BR3rX5_L.js} +50 -50
- package/dist/{vue-ui-waffle-B8Knvp7m.js → vue-ui-waffle-mP8g5aQk.js} +275 -275
- package/dist/{vue-ui-wheel-2_4BOo6P.js → vue-ui-wheel-CZsSO2R6.js} +187 -187
- package/dist/{vue-ui-word-cloud-BEgmAfj1.js → vue-ui-word-cloud-CJ30onqy.js} +35 -35
- package/dist/{vue-ui-world-D4WMHq7E.js → vue-ui-world-BZ09DOiF.js} +498 -498
- package/dist/{vue-ui-xy-DBLJ8Uhc.js → vue-ui-xy-C3h54loZ.js} +405 -405
- package/dist/{vue-ui-xy-canvas-Dv0pk4Wd.js → vue-ui-xy-canvas-BwgK8drp.js} +165 -165
- package/dist/{vue-ui-xy-DGIz4MDV.js → vue-ui-xy-jemv5dsf.js} +288 -288
- package/dist/{vue_ui_stackbar-DdjDL6aq.js → vue_ui_stackbar-yQyvT4Su.js} +46 -0
- package/package.json +1 -1
- package/dist/vue-ui-bump-BIyTRpqJ.js +0 -1242
- package/dist/vue-ui-donut-DMISY-E8.js +0 -2427
- package/dist/vue-ui-funnel-eVH871L3.js +0 -749
- package/dist/vue-ui-gauge-D_jNBHjA.js +0 -934
- package/dist/vue-ui-heatmap-DW7bo_Um.js +0 -1613
- package/dist/vue-ui-horizontal-bar-vPeWNfxO.js +0 -1723
- package/dist/vue-ui-molecule-ejjPjG63.js +0 -941
- package/dist/vue-ui-mood-radar-pqMAcUWm.js +0 -1111
- package/dist/vue-ui-parallel-coordinate-plot-McES6sLT.js +0 -1444
- package/dist/vue-ui-radar-DZPVV9cU.js +0 -1386
- package/dist/vue-ui-relation-circle-BtESVsB0.js +0 -905
- package/dist/vue-ui-ridgeline-CSLuDJWq.js +0 -1630
- package/dist/vue-ui-scatter-CKJ87fhp.js +0 -2418
- package/dist/vue-ui-sparkhistogram-CQTwLaZi.js +0 -589
- package/dist/vue-ui-stackbar-CISQXhoK.js +0 -2660
- package/dist/vue-ui-strip-plot-CRZDCNc1.js +0 -1752
- package/dist/vue-ui-table-sparkline-CwsrD7te.js +0 -738
- package/dist/vue-ui-thermometer-_zSQM0Nk.js +0 -758
|
@@ -1,2427 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, $t as n, D as r, Et as i, Ft as a, Jt as o, Rt as s, S as c, Vt as l, X as u, Y as ee, at as te, b as ne, et as d, f, h as re, i as p, it as m, j as ie, lt as ae, nt as oe, p as h, qt as se, s as ce, t as le, tn as ue, ut as de, vt as fe, w as pe, zt as g } from "./lib-DTiqmM1G.js";
|
|
3
|
-
import { n as me, t as he } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as ge } from "./useConfig-DObkR9Aa.js";
|
|
5
|
-
import { t as _e } from "./usePrinter-R2nu9g4B.js";
|
|
6
|
-
import { n as ve, t as ye } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
-
import { t as be } from "./useNestedProp-D8cRQaVo.js";
|
|
8
|
-
import { t as xe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as Se } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
-
import { t as Ce } from "./img--C0otIB0.js";
|
|
11
|
-
import { n as we } from "./Title-B4UpMerH.js";
|
|
12
|
-
import { t as Te } from "./Shape-BIe6C0HJ.js";
|
|
13
|
-
import { t as Ee } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
|
-
import { l as De, t as Oe } from "./useResponsive-ZtArZtUf.js";
|
|
15
|
-
import { t as ke } from "./DefGrad-DVBqDjhO.js";
|
|
16
|
-
import { t as Ae } from "./BaseLegendToggle-CWtURpCj.js";
|
|
17
|
-
import { t as je } from "./A11yDataTable-DdRsVULz.js";
|
|
18
|
-
import { t as Me } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
|
-
import { t as Ne } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
-
import { n as Pe, t as Fe } from "./labelUtils-CfQIxXGL.js";
|
|
21
|
-
import { t as Ie } from "./vue_ui_donut-BDGqG07h.js";
|
|
22
|
-
import { t as Le } from "./Legend-CJzCVAWl.js";
|
|
23
|
-
import { Fragment as _, Teleport as Re, computed as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as ze, createTextVNode as Be, createVNode as Ve, defineAsyncComponent as He, guardReactiveProps as C, mergeProps as Ue, nextTick as We, normalizeClass as Ge, normalizeProps as w, normalizeStyle as T, onBeforeUnmount as Ke, onMounted as qe, openBlock as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as Je, shallowRef as Ye, toDisplayString as Xe, toRefs as Ze, unref as A, useSlots as Qe, vShow as $e, watch as et, withCtx as j, withDirectives as tt } from "vue";
|
|
24
|
-
//#region src/useSmallArcLayouts.js
|
|
25
|
-
function nt(e) {
|
|
26
|
-
let { FINAL_CONFIG: t, noGhostDonut: n, svg: r, padding: i, labels_inline_fontSize: a, minSize: o, findArcMidpoint: s, calcMarkerOffsetX: c, calcMarkerOffsetY: l, animatingIndex: u, segregated: ee, isSmallArc: te } = e;
|
|
27
|
-
return { smallArcLayoutsClassic: v(() => {
|
|
28
|
-
if (t.value.type !== "classic") return {};
|
|
29
|
-
let e = {}, ne = n.value || [];
|
|
30
|
-
if (!ne.length) return e;
|
|
31
|
-
let d = r.value.width / 2, f = r.value.height / 2, re = i.value.top + 16, p = r.value.height - i.value.bottom - 16, m = a.value, ie = m / 3, ae = m * 1.5, oe = d - (o.value + 6), h = d + (o.value + 6), se = !!t.value.style.chart.layout.curvedMarkers;
|
|
32
|
-
function ce({ midX: e, midY: t, bandX: n, bandY: r }) {
|
|
33
|
-
if (!se) return `M ${e} ${t} L ${e} ${r} L ${n} ${r}`;
|
|
34
|
-
let i = n < d ? -1 : 1, a = n - e, o = r - t, s = Math.sqrt(a * a + o * o) || 1, c = e - d, l = t - f, u = Math.sqrt(c * c + l * l) || 1, ee = c / u, te = l / u, ne = u + 9;
|
|
35
|
-
function re({ x: e, y: t }) {
|
|
36
|
-
let n = e - d, r = t - f, i = Math.sqrt(n * n + r * r) || 1;
|
|
37
|
-
if (i >= ne) return {
|
|
38
|
-
x: e,
|
|
39
|
-
y: t
|
|
40
|
-
};
|
|
41
|
-
let a = ne / i;
|
|
42
|
-
return {
|
|
43
|
-
x: d + n * a,
|
|
44
|
-
y: f + r * a
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
if (s < 56) {
|
|
48
|
-
let i = a / s, c = -(o / s), l = i, u = (e + n) * .5, ne = (t + r) * .5, p = u + c, m = ne + l, ie = (p - d) * (p - d) + (m - f) * (m - f), ae = u - c, oe = ne - l;
|
|
49
|
-
(ae - d) * (ae - d) + (oe - f) * (oe - f) > ie && (c = -c, l = -l);
|
|
50
|
-
let h = .78, se = e + a * h, ce = t + o * h, le = Math.max(0, Math.min(1, (s - 18) / 44)), ue = le * le * (3 - 2 * le), de = 2.5 + ue * 4, fe = 1 + ue * 2.5;
|
|
51
|
-
de *= .9;
|
|
52
|
-
let pe = re({
|
|
53
|
-
x: se + c * de + ee * fe,
|
|
54
|
-
y: ce + l * de + te * fe
|
|
55
|
-
});
|
|
56
|
-
return `M ${e} ${t} Q ${pe.x} ${pe.y} ${n} ${r}`;
|
|
57
|
-
}
|
|
58
|
-
let p = s * .34;
|
|
59
|
-
p < 20 && (p = 20), p > 46 && (p = 46);
|
|
60
|
-
let m = s * .46;
|
|
61
|
-
m < 22 && (m = 22), m > 70 && (m = 70);
|
|
62
|
-
let ie = {
|
|
63
|
-
x: e + ee * p,
|
|
64
|
-
y: t + te * p
|
|
65
|
-
}, ae = d + i * Math.max(Math.abs(n - d), ne), oe = {
|
|
66
|
-
x: n - i * Math.min(m, Math.abs(ae - n) * .75),
|
|
67
|
-
y: r
|
|
68
|
-
}, h = re(ie), ce = re(oe);
|
|
69
|
-
return `M ${e} ${t} C ${h.x} ${h.y} ${ce.x} ${ce.y} ${n} ${r}`;
|
|
70
|
-
}
|
|
71
|
-
function le(e) {
|
|
72
|
-
let t = String(e ?? "").split(/\n/g), n = Math.max(0, t.length - 1) * (m * 1.2);
|
|
73
|
-
return ae + n;
|
|
74
|
-
}
|
|
75
|
-
function ue({ arc: e, index: t }) {
|
|
76
|
-
let { x: n, y: r } = s(e.path);
|
|
77
|
-
return {
|
|
78
|
-
arc: e,
|
|
79
|
-
index: t,
|
|
80
|
-
midX: n,
|
|
81
|
-
midY: r,
|
|
82
|
-
inlineMarkerX: c(e).x,
|
|
83
|
-
inlineMarkerY: l(e) - 3.5,
|
|
84
|
-
labelHeight: le(e.name)
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
function de(e) {
|
|
88
|
-
let { arc: t } = e, n = t.seriesIndex ?? 0;
|
|
89
|
-
return u.value === n || ee.value.includes(n) ? !1 : te(t, n);
|
|
90
|
-
}
|
|
91
|
-
function fe(e) {
|
|
92
|
-
let t = e.inlineMarkerY < f, n = e.inlineMarkerX < d;
|
|
93
|
-
return t && n ? "TL" : t && !n ? "TR" : !t && n ? "BL" : "BR";
|
|
94
|
-
}
|
|
95
|
-
function pe(e, t) {
|
|
96
|
-
if (t.startsWith("T")) {
|
|
97
|
-
e.sort((e, t) => e.inlineMarkerY - t.inlineMarkerY || e.index - t.index);
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
e.sort((e, t) => t.inlineMarkerY - e.inlineMarkerY || e.index - t.index);
|
|
101
|
-
}
|
|
102
|
-
function g({ side: e, markerX: t, markerY: n, labelY: r, connectorPath: i }) {
|
|
103
|
-
return {
|
|
104
|
-
side: e,
|
|
105
|
-
labelX: e === "left" ? t - 8 : t + 8,
|
|
106
|
-
labelY: r + ie,
|
|
107
|
-
textAnchor: e === "left" ? "end" : "start",
|
|
108
|
-
markerX: t,
|
|
109
|
-
markerY: n,
|
|
110
|
-
connectorPath: i
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
function me({ candidateList: t, side: n, bandMarkerX: r, startY: i, direction: a }) {
|
|
114
|
-
let o = i;
|
|
115
|
-
t.forEach((t) => {
|
|
116
|
-
let { index: i, midX: s, midY: c, labelHeight: l } = t, u;
|
|
117
|
-
a === "down" ? (u = o, o += l) : (o -= l, u = o);
|
|
118
|
-
let ee = u, te = ce({
|
|
119
|
-
midX: s,
|
|
120
|
-
midY: c,
|
|
121
|
-
bandX: r,
|
|
122
|
-
bandY: ee
|
|
123
|
-
});
|
|
124
|
-
e[i] = g({
|
|
125
|
-
side: n,
|
|
126
|
-
markerX: r,
|
|
127
|
-
markerY: ee,
|
|
128
|
-
labelY: u,
|
|
129
|
-
connectorPath: te
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
let he = ne.map((e, t) => ue({
|
|
134
|
-
arc: e,
|
|
135
|
-
index: t
|
|
136
|
-
})).filter(de), ge = {
|
|
137
|
-
TL: [],
|
|
138
|
-
TR: [],
|
|
139
|
-
BL: [],
|
|
140
|
-
BR: []
|
|
141
|
-
};
|
|
142
|
-
return he.forEach((e) => {
|
|
143
|
-
ge[fe(e)].push(e);
|
|
144
|
-
}), Object.keys(ge).forEach((e) => {
|
|
145
|
-
pe(ge[e], e);
|
|
146
|
-
}), me({
|
|
147
|
-
candidateList: ge.TL,
|
|
148
|
-
side: "left",
|
|
149
|
-
bandMarkerX: oe,
|
|
150
|
-
startY: re,
|
|
151
|
-
direction: "down"
|
|
152
|
-
}), me({
|
|
153
|
-
candidateList: ge.TR,
|
|
154
|
-
side: "right",
|
|
155
|
-
bandMarkerX: h,
|
|
156
|
-
startY: re,
|
|
157
|
-
direction: "down"
|
|
158
|
-
}), ge.BL.length > 1 && me({
|
|
159
|
-
candidateList: ge.BL,
|
|
160
|
-
side: "left",
|
|
161
|
-
bandMarkerX: oe,
|
|
162
|
-
startY: p,
|
|
163
|
-
direction: "up"
|
|
164
|
-
}), ge.BR.length > 1 && me({
|
|
165
|
-
candidateList: ge.BR,
|
|
166
|
-
side: "right",
|
|
167
|
-
bandMarkerX: h,
|
|
168
|
-
startY: p,
|
|
169
|
-
direction: "up"
|
|
170
|
-
}), e;
|
|
171
|
-
}) };
|
|
172
|
-
}
|
|
173
|
-
//#endregion
|
|
174
|
-
//#region src/components/vue-ui-donut.vue
|
|
175
|
-
var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot = ["id"], st = { style: { position: "relative" } }, ct = [
|
|
176
|
-
"xmlns",
|
|
177
|
-
"aria-describedby",
|
|
178
|
-
"viewBox"
|
|
179
|
-
], lt = ["width", "height"], ut = { key: 1 }, dt = { key: 2 }, ft = ["id"], pt = ["id"], mt = ["id"], ht = ["flood-color"], gt = ["id"], _t = ["flood-color"], vt = [
|
|
180
|
-
"d",
|
|
181
|
-
"stroke",
|
|
182
|
-
"filter"
|
|
183
|
-
], yt = [
|
|
184
|
-
"d",
|
|
185
|
-
"stroke",
|
|
186
|
-
"filter"
|
|
187
|
-
], bt = [
|
|
188
|
-
"cx",
|
|
189
|
-
"cy",
|
|
190
|
-
"r",
|
|
191
|
-
"fill",
|
|
192
|
-
"filter"
|
|
193
|
-
], xt = { key: 6 }, St = ["stroke", "d"], Ct = [
|
|
194
|
-
"d",
|
|
195
|
-
"fill",
|
|
196
|
-
"stroke",
|
|
197
|
-
"stroke-width",
|
|
198
|
-
"filter"
|
|
199
|
-
], wt = { key: 0 }, Tt = [
|
|
200
|
-
"d",
|
|
201
|
-
"fill",
|
|
202
|
-
"stroke",
|
|
203
|
-
"stroke-width",
|
|
204
|
-
"filter"
|
|
205
|
-
], Et = { key: 0 }, Dt = ["stroke", "d"], Ot = { key: 0 }, kt = [
|
|
206
|
-
"d",
|
|
207
|
-
"stroke",
|
|
208
|
-
"stroke-width",
|
|
209
|
-
"filter"
|
|
210
|
-
], At = { key: 1 }, jt = [
|
|
211
|
-
"d",
|
|
212
|
-
"fill",
|
|
213
|
-
"stroke",
|
|
214
|
-
"stroke-width",
|
|
215
|
-
"filter"
|
|
216
|
-
], Mt = [
|
|
217
|
-
"d",
|
|
218
|
-
"fill",
|
|
219
|
-
"stroke",
|
|
220
|
-
"stroke-width",
|
|
221
|
-
"filter"
|
|
222
|
-
], Nt = { key: 1 }, Pt = [
|
|
223
|
-
"cx",
|
|
224
|
-
"cy",
|
|
225
|
-
"r",
|
|
226
|
-
"fill",
|
|
227
|
-
"stroke",
|
|
228
|
-
"stroke-width"
|
|
229
|
-
], Ft = [
|
|
230
|
-
"cx",
|
|
231
|
-
"cy",
|
|
232
|
-
"r",
|
|
233
|
-
"fill",
|
|
234
|
-
"stroke",
|
|
235
|
-
"stroke-width"
|
|
236
|
-
], It = { key: 0 }, Lt = [
|
|
237
|
-
"d",
|
|
238
|
-
"fill",
|
|
239
|
-
"stroke",
|
|
240
|
-
"stroke-width"
|
|
241
|
-
], Rt = [
|
|
242
|
-
"cx",
|
|
243
|
-
"cy",
|
|
244
|
-
"r",
|
|
245
|
-
"stroke"
|
|
246
|
-
], zt = [
|
|
247
|
-
"cx",
|
|
248
|
-
"cy",
|
|
249
|
-
"r",
|
|
250
|
-
"fill"
|
|
251
|
-
], Bt = [
|
|
252
|
-
"cx",
|
|
253
|
-
"cy",
|
|
254
|
-
"r"
|
|
255
|
-
], Vt = { key: 0 }, Ht = [
|
|
256
|
-
"d",
|
|
257
|
-
"stroke",
|
|
258
|
-
"fill",
|
|
259
|
-
"onMouseenter",
|
|
260
|
-
"onMouseleave",
|
|
261
|
-
"onClick"
|
|
262
|
-
], Ut = { key: 1 }, Wt = [
|
|
263
|
-
"cx",
|
|
264
|
-
"cy",
|
|
265
|
-
"r"
|
|
266
|
-
], Gt = [
|
|
267
|
-
"x",
|
|
268
|
-
"y",
|
|
269
|
-
"fill",
|
|
270
|
-
"font-size"
|
|
271
|
-
], Kt = [
|
|
272
|
-
"x",
|
|
273
|
-
"y",
|
|
274
|
-
"fill",
|
|
275
|
-
"font-size"
|
|
276
|
-
], qt = [
|
|
277
|
-
"x",
|
|
278
|
-
"y",
|
|
279
|
-
"fill",
|
|
280
|
-
"font-size"
|
|
281
|
-
], Jt = [
|
|
282
|
-
"x",
|
|
283
|
-
"y",
|
|
284
|
-
"fill",
|
|
285
|
-
"font-size"
|
|
286
|
-
], Yt = ["filter", "opacity"], Xt = { key: 0 }, Zt = ["x", "y"], Qt = { key: 1 }, $t = [
|
|
287
|
-
"cx",
|
|
288
|
-
"cy",
|
|
289
|
-
"fill",
|
|
290
|
-
"stroke",
|
|
291
|
-
"filter",
|
|
292
|
-
"onClick",
|
|
293
|
-
"onMouseenter",
|
|
294
|
-
"onMouseleave"
|
|
295
|
-
], en = [
|
|
296
|
-
"text-anchor",
|
|
297
|
-
"x",
|
|
298
|
-
"y",
|
|
299
|
-
"onClick",
|
|
300
|
-
"onMouseenter",
|
|
301
|
-
"onMouseleave",
|
|
302
|
-
"innerHTML"
|
|
303
|
-
], tn = [
|
|
304
|
-
"text-anchor",
|
|
305
|
-
"x",
|
|
306
|
-
"y",
|
|
307
|
-
"fill",
|
|
308
|
-
"font-size",
|
|
309
|
-
"onClick",
|
|
310
|
-
"onMouseenter",
|
|
311
|
-
"onMouseleave"
|
|
312
|
-
], nn = [
|
|
313
|
-
"text-anchor",
|
|
314
|
-
"x",
|
|
315
|
-
"y",
|
|
316
|
-
"fill",
|
|
317
|
-
"font-size",
|
|
318
|
-
"onClick",
|
|
319
|
-
"onMouseenter",
|
|
320
|
-
"onMouseleave",
|
|
321
|
-
"innerHTML"
|
|
322
|
-
], rn = [
|
|
323
|
-
"cx",
|
|
324
|
-
"cy",
|
|
325
|
-
"fill",
|
|
326
|
-
"stroke",
|
|
327
|
-
"filter",
|
|
328
|
-
"onClick",
|
|
329
|
-
"onMouseenter",
|
|
330
|
-
"onMouseleave"
|
|
331
|
-
], an = [
|
|
332
|
-
"text-anchor",
|
|
333
|
-
"x",
|
|
334
|
-
"y",
|
|
335
|
-
"onClick",
|
|
336
|
-
"onMouseenter",
|
|
337
|
-
"onMouseleave",
|
|
338
|
-
"innerHTML"
|
|
339
|
-
], on = [
|
|
340
|
-
"text-anchor",
|
|
341
|
-
"x",
|
|
342
|
-
"y",
|
|
343
|
-
"fill",
|
|
344
|
-
"font-size",
|
|
345
|
-
"onClick",
|
|
346
|
-
"onMouseenter",
|
|
347
|
-
"onMouseleave"
|
|
348
|
-
], sn = [
|
|
349
|
-
"text-anchor",
|
|
350
|
-
"x",
|
|
351
|
-
"y",
|
|
352
|
-
"fill",
|
|
353
|
-
"font-size",
|
|
354
|
-
"onClick",
|
|
355
|
-
"onMouseenter",
|
|
356
|
-
"onMouseleave",
|
|
357
|
-
"innerHTML"
|
|
358
|
-
], cn = { key: 2 }, ln = [
|
|
359
|
-
"x",
|
|
360
|
-
"y",
|
|
361
|
-
"width"
|
|
362
|
-
], un = [
|
|
363
|
-
"x",
|
|
364
|
-
"y",
|
|
365
|
-
"width"
|
|
366
|
-
], dn = {
|
|
367
|
-
key: 0,
|
|
368
|
-
style: {
|
|
369
|
-
position: "absolute",
|
|
370
|
-
top: "100%",
|
|
371
|
-
left: "0",
|
|
372
|
-
width: "100%"
|
|
373
|
-
},
|
|
374
|
-
"data-dom-to-png-ignore": "",
|
|
375
|
-
"aria-hidden": "true"
|
|
376
|
-
}, fn = {
|
|
377
|
-
key: 5,
|
|
378
|
-
class: "vue-data-ui-watermark"
|
|
379
|
-
}, pn = ["id"], mn = ["onClick"], hn = {
|
|
380
|
-
key: 8,
|
|
381
|
-
class: "vue-ui-donut-hollow"
|
|
382
|
-
}, gn = { key: 0 }, _n = { key: 1 }, vn = /*#__PURE__*/ Ee({
|
|
383
|
-
__name: "vue-ui-donut",
|
|
384
|
-
props: {
|
|
385
|
-
config: {
|
|
386
|
-
type: Object,
|
|
387
|
-
default() {
|
|
388
|
-
return {};
|
|
389
|
-
}
|
|
390
|
-
},
|
|
391
|
-
dataset: {
|
|
392
|
-
type: Array,
|
|
393
|
-
default() {
|
|
394
|
-
return [];
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
},
|
|
398
|
-
emits: [
|
|
399
|
-
"selectLegend",
|
|
400
|
-
"selectDatapoint",
|
|
401
|
-
"copyAlt"
|
|
402
|
-
],
|
|
403
|
-
setup(e, { expose: Ee, emit: rt }) {
|
|
404
|
-
let vn = He(() => import("./Tooltip-BmfGHn1L.js")), yn = He(() => import("./BaseIcon-CPBlYfWq.js").then((e) => e.n)), bn = He(() => import("./vue-ui-accordion-CxMo-mXC.js").then((e) => e.n)), xn = He(() => import("./DataTable-DV4Plrm3.js")), Sn = He(() => import("./PenAndPaper-Dv8WPVwA.js").then((e) => e.t)), Cn = He(() => import("./UserOptions-C92R4ACT.js").then((e) => e.n)), wn = He(() => import("./PackageVersion-DEAYvEjl.js").then((e) => e.t)), Tn = He(() => import("./BaseDraggableDialog-BniZj4c8.js").then((e) => e.n)), { vue_ui_donut: En } = ge(), { isThemeValid: Dn, warnInvalidTheme: On } = xe(), kn = Qe(), M = e, An = v({
|
|
405
|
-
get() {
|
|
406
|
-
return !!M.dataset && M.dataset.length;
|
|
407
|
-
},
|
|
408
|
-
set(e) {
|
|
409
|
-
return e;
|
|
410
|
-
}
|
|
411
|
-
}), jn = Ye(null), Mn = D(null), Nn = D(null), Pn = D(null), Fn = Ye(null), In = Ye(null), Ln = Ye(null), Rn = Ye(null), zn = Ye(null), Bn = Ye(null), Vn = D(0), Hn = D(0), Un = D(0), Wn = D(!1), Gn = D(null), Kn = D(null), qn = D(null), Jn = D({
|
|
412
|
-
x: 0,
|
|
413
|
-
y: 0
|
|
414
|
-
}), Yn = D("pointer"), Xn = D(!1), Zn = v({
|
|
415
|
-
get: () => I.value.style.chart.layout.labels.percentage.fontSize,
|
|
416
|
-
set: (e) => e
|
|
417
|
-
}), N = v({
|
|
418
|
-
get: () => I.value.style.chart.layout.labels.name.fontSize,
|
|
419
|
-
set: (e) => e
|
|
420
|
-
}), Qn = v({
|
|
421
|
-
get: () => I.value.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
|
|
422
|
-
set: (e) => e
|
|
423
|
-
}), $n = !1, er = () => {
|
|
424
|
-
I.value.autoSize && !$n && ($n = !0, requestAnimationFrame(() => {
|
|
425
|
-
$n = !1;
|
|
426
|
-
let e = I.value, t = Mn.value, n = Sr.value;
|
|
427
|
-
if (!e.autoSize || !t || !n) return;
|
|
428
|
-
let [r, i, a, o] = n.getAttribute("viewBox").split(" ").map(Number), s = {
|
|
429
|
-
x: r,
|
|
430
|
-
y: i,
|
|
431
|
-
width: a,
|
|
432
|
-
height: o
|
|
433
|
-
}, c = [
|
|
434
|
-
{
|
|
435
|
-
selector: ".vue-data-ui-datalabel-value",
|
|
436
|
-
baseSize: L.value.percentage.fontSize,
|
|
437
|
-
minSize: L.value.percentage.minFontSize,
|
|
438
|
-
sizeRef: Zn
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
selector: ".vue-data-ui-datalabel-name",
|
|
442
|
-
baseSize: L.value.name.fontSize,
|
|
443
|
-
minSize: L.value.name.minFontSize,
|
|
444
|
-
sizeRef: N
|
|
445
|
-
},
|
|
446
|
-
{
|
|
447
|
-
selector: ".vue-data-ui-datalabel-inline",
|
|
448
|
-
baseSize: L.value.dataLabels.smallArcClusterFontSize,
|
|
449
|
-
minSize: L.value.name.minFontSize,
|
|
450
|
-
sizeRef: Qn
|
|
451
|
-
}
|
|
452
|
-
];
|
|
453
|
-
c.map((e) => t.querySelectorAll(e.selector).length).reduce((e, t) => e + t, 0) !== 0 && c.forEach(({ selector: e, baseSize: n, minSize: r, sizeRef: i }) => {
|
|
454
|
-
t.querySelectorAll(e).forEach((e) => {
|
|
455
|
-
i.value = ce({
|
|
456
|
-
el: e,
|
|
457
|
-
bounds: s,
|
|
458
|
-
currentFontSize: n,
|
|
459
|
-
minFontSize: r,
|
|
460
|
-
attempts: 200,
|
|
461
|
-
padding: 1
|
|
462
|
-
});
|
|
463
|
-
});
|
|
464
|
-
});
|
|
465
|
-
}));
|
|
466
|
-
};
|
|
467
|
-
qe(async () => {
|
|
468
|
-
Wn.value = !0, rr(), requestAnimationFrame(er);
|
|
469
|
-
});
|
|
470
|
-
let tr;
|
|
471
|
-
qe(() => {
|
|
472
|
-
jn.value && (tr = new ResizeObserver((e) => {
|
|
473
|
-
for (let t of e) {
|
|
474
|
-
let { width: e, height: n } = t.contentRect;
|
|
475
|
-
if (e > 0 && n > 0) {
|
|
476
|
-
er();
|
|
477
|
-
break;
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
}), tr.observe(jn.value.parentElement));
|
|
481
|
-
}), Ke(() => {
|
|
482
|
-
tr?.disconnect();
|
|
483
|
-
}), Ke(() => {
|
|
484
|
-
Ln.value && (Rn.value && Ln.value.unobserve(Rn.value), Ln.value.disconnect());
|
|
485
|
-
});
|
|
486
|
-
let nr = v(() => I.value.debug);
|
|
487
|
-
function rr() {
|
|
488
|
-
if (s(M.dataset) ? (te({
|
|
489
|
-
componentName: "VueUiDonut",
|
|
490
|
-
type: "dataset",
|
|
491
|
-
debug: nr.value
|
|
492
|
-
}), An.value = !1, pr.value = !0) : (M.dataset.forEach((e, t) => {
|
|
493
|
-
fe({
|
|
494
|
-
datasetObject: e,
|
|
495
|
-
requiredAttributes: ["name", "values"]
|
|
496
|
-
}).forEach((e) => {
|
|
497
|
-
te({
|
|
498
|
-
componentName: "VueUiDonut",
|
|
499
|
-
type: "datasetSerieAttribute",
|
|
500
|
-
property: e,
|
|
501
|
-
index: t,
|
|
502
|
-
debug: nr.value
|
|
503
|
-
}), An.value = !1, pr.value = !0;
|
|
504
|
-
});
|
|
505
|
-
}), nr.value && M.dataset.forEach((e, t) => {
|
|
506
|
-
(!e.name || e.name === "") && te({
|
|
507
|
-
componentName: "VueUiDonut",
|
|
508
|
-
type: "datasetAttributeEmpty",
|
|
509
|
-
property: "name",
|
|
510
|
-
index: t
|
|
511
|
-
});
|
|
512
|
-
})), s(M.dataset) || (pr.value = I.value.loading), I.value.responsive) {
|
|
513
|
-
let e = De(() => {
|
|
514
|
-
let { width: e, height: t } = Oe({
|
|
515
|
-
chart: jn.value,
|
|
516
|
-
title: I.value.style.chart.title.text ? Fn.value : null,
|
|
517
|
-
legend: I.value.style.chart.legend.show ? In.value : null,
|
|
518
|
-
source: zn.value,
|
|
519
|
-
noTitle: Bn.value,
|
|
520
|
-
padding: I.value.autoSize ? void 0 : Dr.value
|
|
521
|
-
});
|
|
522
|
-
requestAnimationFrame(() => {
|
|
523
|
-
H.value.width = e, H.value.height = t, er();
|
|
524
|
-
});
|
|
525
|
-
});
|
|
526
|
-
Ln.value && (Rn.value && Ln.value.unobserve(Rn.value), Ln.value.disconnect()), Ln.value = new ResizeObserver(e), Rn.value = jn.value.parentNode, Ln.value.observe(Rn.value);
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
let P = D(u()), ir = D(!1), ar = D(""), F = D(null), or = D(0);
|
|
530
|
-
function sr() {
|
|
531
|
-
let e = be({
|
|
532
|
-
userConfig: M.config,
|
|
533
|
-
defaultConfig: En
|
|
534
|
-
}), t = {}, r = e.theme;
|
|
535
|
-
if (!r) t = e;
|
|
536
|
-
else if (!Dn.value(e)) On(e), t = e;
|
|
537
|
-
else {
|
|
538
|
-
let i = be({
|
|
539
|
-
userConfig: Ie[r] || M.config,
|
|
540
|
-
defaultConfig: e
|
|
541
|
-
});
|
|
542
|
-
t = {
|
|
543
|
-
...be({
|
|
544
|
-
userConfig: M.config,
|
|
545
|
-
defaultConfig: i
|
|
546
|
-
}),
|
|
547
|
-
customPalette: e.customPalette.length ? e.customPalette : n[r] || l
|
|
548
|
-
};
|
|
549
|
-
}
|
|
550
|
-
return t;
|
|
551
|
-
}
|
|
552
|
-
let I = D(sr()), L = v(() => I.value.style.chart.layout.labels), R = v(() => I.value.style.chart.layout.donut), cr = v(() => I.value.style.chart.layout), z = v(() => I.value.style.chart);
|
|
553
|
-
me({
|
|
554
|
-
config: () => I.value,
|
|
555
|
-
dataset: () => M.dataset,
|
|
556
|
-
component: "VueUiDonut",
|
|
557
|
-
rules: [
|
|
558
|
-
he.singleSeries,
|
|
559
|
-
he.emptyArray,
|
|
560
|
-
{
|
|
561
|
-
test: (e) => e.length > 6,
|
|
562
|
-
message: [
|
|
563
|
-
"👀 The number of series is > 6. Consider:",
|
|
564
|
-
"",
|
|
565
|
-
"▶️ Grouping small values dynamically into a single \"Other\" series.",
|
|
566
|
-
"",
|
|
567
|
-
"▶️ Using filters to let users choose a maximum number of series to display.",
|
|
568
|
-
"",
|
|
569
|
-
"▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
|
|
570
|
-
]
|
|
571
|
-
}
|
|
572
|
-
]
|
|
573
|
-
});
|
|
574
|
-
let lr = v(() => I.value.userOptions.useCursorPointer), ur = v(() => ue({
|
|
575
|
-
defaultConfig: {
|
|
576
|
-
useCssAnimation: !1,
|
|
577
|
-
table: { show: !1 },
|
|
578
|
-
startAnimation: { show: !1 },
|
|
579
|
-
userOptions: { show: !1 },
|
|
580
|
-
style: { chart: {
|
|
581
|
-
backgroundColor: "#99999930",
|
|
582
|
-
layout: { labels: {
|
|
583
|
-
dataLabels: { show: !1 },
|
|
584
|
-
hollow: {
|
|
585
|
-
average: { show: !1 },
|
|
586
|
-
total: { show: !1 }
|
|
587
|
-
},
|
|
588
|
-
value: { show: !1 }
|
|
589
|
-
} },
|
|
590
|
-
legend: {
|
|
591
|
-
backgroundColor: "transparent",
|
|
592
|
-
showValue: !1,
|
|
593
|
-
showPercentage: !1
|
|
594
|
-
},
|
|
595
|
-
title: {
|
|
596
|
-
color: "#1A1A1A",
|
|
597
|
-
subtitle: { color: "#5A5A5A" }
|
|
598
|
-
}
|
|
599
|
-
} }
|
|
600
|
-
},
|
|
601
|
-
userConfig: I.value.skeletonConfig ?? {}
|
|
602
|
-
})), { loading: dr, FINAL_DATASET: fr, manualLoading: pr, skeletonDataset: mr } = ve({
|
|
603
|
-
...Ze(M),
|
|
604
|
-
FINAL_CONFIG: I,
|
|
605
|
-
prepareConfig: sr,
|
|
606
|
-
skeletonDataset: M.config?.skeletonDataset ?? [
|
|
607
|
-
{
|
|
608
|
-
name: "",
|
|
609
|
-
values: [3],
|
|
610
|
-
color: "#BABABA"
|
|
611
|
-
},
|
|
612
|
-
{
|
|
613
|
-
name: "",
|
|
614
|
-
values: [2],
|
|
615
|
-
color: "#AAAAAA"
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
name: "",
|
|
619
|
-
values: [1],
|
|
620
|
-
color: "#CACACA"
|
|
621
|
-
}
|
|
622
|
-
],
|
|
623
|
-
skeletonConfig: ue({
|
|
624
|
-
defaultConfig: I.value,
|
|
625
|
-
userConfig: ur.value
|
|
626
|
-
})
|
|
627
|
-
}), B = D(!0), hr = D(0), gr = D(!1), _r = null;
|
|
628
|
-
function vr(e = 1e3) {
|
|
629
|
-
return new Promise((t) => {
|
|
630
|
-
let n = performance.now();
|
|
631
|
-
function r(i) {
|
|
632
|
-
let a = i - n, o = Math.min(a / e, 1), s = m(o);
|
|
633
|
-
hr.value = s, o < 1 ? _r = requestAnimationFrame(r) : (hr.value = 1, _r = null, t());
|
|
634
|
-
}
|
|
635
|
-
_r !== null && cancelAnimationFrame(_r), hr.value = 0, _r = requestAnimationFrame(r);
|
|
636
|
-
});
|
|
637
|
-
}
|
|
638
|
-
et(() => dr.value, async (e) => {
|
|
639
|
-
if (e || gr.value) return;
|
|
640
|
-
let t = fr.value === mr, n = I.value.startAnimation?.show;
|
|
641
|
-
!t && n ? (gr.value = !0, await vr(I.value.startAnimation.durationMs || 1e3)) : hr.value = 1, B.value = !1;
|
|
642
|
-
}, { immediate: !0 });
|
|
643
|
-
let { userOptionsVisible: yr, setUserOptionsVisibility: br, keepUserOptionState: xr } = Me({ config: I.value }), { svgRef: Sr } = Ne({ config: z.value.title });
|
|
644
|
-
function Cr() {
|
|
645
|
-
br(!0);
|
|
646
|
-
}
|
|
647
|
-
function wr() {
|
|
648
|
-
br(!1);
|
|
649
|
-
}
|
|
650
|
-
function Tr(e) {
|
|
651
|
-
let t = d(e);
|
|
652
|
-
return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
|
|
653
|
-
}
|
|
654
|
-
let Er = Tr(M.config);
|
|
655
|
-
et(() => M.config, (e, t) => {
|
|
656
|
-
let n = Tr(e), r = n !== Er;
|
|
657
|
-
Er = n;
|
|
658
|
-
let i = sr();
|
|
659
|
-
if (!r) {
|
|
660
|
-
I.value.style.chart.tooltip = i.style.chart.tooltip, V.value.showTooltip = I.value.style.chart.tooltip.show;
|
|
661
|
-
return;
|
|
662
|
-
}
|
|
663
|
-
dr.value || (I.value = i), yr.value = !I.value.userOptions.showOnChartHover, rr(), Vn.value += 1, Hn.value += 1, Un.value += 1, V.value.dataLabels.show = L.value.dataLabels.show, V.value.showTable = I.value.table.show, V.value.showTooltip = z.value.tooltip.show, H.value.height = z.value.height, H.value.width = z.value.width;
|
|
664
|
-
}, { deep: !0 });
|
|
665
|
-
let Dr = v(() => {
|
|
666
|
-
let { top: e, right: t, bottom: n, left: r } = z.value.padding;
|
|
667
|
-
return {
|
|
668
|
-
css: `padding:${e}px ${t}px ${n}px ${r}px`,
|
|
669
|
-
top: e,
|
|
670
|
-
right: t,
|
|
671
|
-
bottom: n,
|
|
672
|
-
left: r
|
|
673
|
-
};
|
|
674
|
-
}), { isPrinting: Or, isImaging: kr, generatePdf: Ar, generateImage: jr } = _e({
|
|
675
|
-
elementId: `donut__${P.value}`,
|
|
676
|
-
fileName: z.value.title.text || "vue-ui-donut",
|
|
677
|
-
options: I.value.userOptions.print
|
|
678
|
-
}), Mr = v(() => I.value.userOptions.show && !z.value.title.text), Nr = v(() => pe(I.value.customPalette)), V = D({
|
|
679
|
-
dataLabels: { show: L.value.dataLabels.show },
|
|
680
|
-
showTable: I.value.table.show,
|
|
681
|
-
showTooltip: z.value.tooltip.show
|
|
682
|
-
});
|
|
683
|
-
et(I, () => {
|
|
684
|
-
V.value = {
|
|
685
|
-
dataLabels: { show: L.value.dataLabels.show },
|
|
686
|
-
showTable: I.value.table.show,
|
|
687
|
-
showTooltip: z.value.tooltip.show
|
|
688
|
-
};
|
|
689
|
-
}, { immediate: !0 });
|
|
690
|
-
let H = D({
|
|
691
|
-
height: z.value.height,
|
|
692
|
-
width: z.value.width
|
|
693
|
-
}), Pr = v(() => {
|
|
694
|
-
if (I.value.pie) return K.value;
|
|
695
|
-
let e = R.value.strokeWidth / 512, t = Math.min(H.value.width, H.value.height) * e, n = t > K.value ? K.value : t;
|
|
696
|
-
return Math.max(n, 12 * (1 + e));
|
|
697
|
-
}), Fr = rt, U = v(() => fr.value.sort((e, t) => {
|
|
698
|
-
let n = Array.isArray(e.values) ? e.values.reduce((e, t) => e + t, 0) : e.value ?? 0, r = Array.isArray(t.values) ? t.values.reduce((e, t) => e + t, 0) : t.value ?? 0;
|
|
699
|
-
return e.ghost && !t.ghost ? 1 : t.ghost && !e.ghost ? -1 : r - n;
|
|
700
|
-
}).map((e, t) => ({
|
|
701
|
-
name: e.name,
|
|
702
|
-
color: c(e.color) || Nr.value[t] || l[t] || l[t % l.length],
|
|
703
|
-
value: ne(e.values.reduce((e, t) => e + t, 0)),
|
|
704
|
-
absoluteValues: e.values,
|
|
705
|
-
comment: e.comment || "",
|
|
706
|
-
patternIndex: t,
|
|
707
|
-
seriesIndex: t,
|
|
708
|
-
ghost: !1,
|
|
709
|
-
pattern: `pattern_${P.value}_${t}`
|
|
710
|
-
})));
|
|
711
|
-
et(() => M.dataset, (e) => {
|
|
712
|
-
Array.isArray(e) && e.length > 0 && (pr.value = !1);
|
|
713
|
-
}, { immediate: !0 });
|
|
714
|
-
let W = Ye(U.value);
|
|
715
|
-
et(() => U.value, (e) => {
|
|
716
|
-
W.value = e, requestAnimationFrame(er);
|
|
717
|
-
});
|
|
718
|
-
function Ir() {
|
|
719
|
-
return U.value.map((e) => ({
|
|
720
|
-
name: e.name,
|
|
721
|
-
color: e.color,
|
|
722
|
-
value: e.value
|
|
723
|
-
}));
|
|
724
|
-
}
|
|
725
|
-
let G = D([]), Lr = D(!1), Rr = D(null);
|
|
726
|
-
function zr() {
|
|
727
|
-
Fr("selectLegend", qr.value.map((e) => ({
|
|
728
|
-
name: e.name,
|
|
729
|
-
color: e.color,
|
|
730
|
-
value: e.value
|
|
731
|
-
})));
|
|
732
|
-
}
|
|
733
|
-
function Br({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = m }) {
|
|
734
|
-
let o = performance.now();
|
|
735
|
-
function s(c) {
|
|
736
|
-
let l = Math.min((c - o) / n, 1), u = a(l);
|
|
737
|
-
r(e + (t - e) * u, l), l < 1 ? requestAnimationFrame(s) : (r(t, 1), i && i());
|
|
738
|
-
}
|
|
739
|
-
requestAnimationFrame(s);
|
|
740
|
-
}
|
|
741
|
-
function Vr() {
|
|
742
|
-
G.value.length ? G.value = [] : Jr.value.forEach((e, t) => {
|
|
743
|
-
G.value.push(t);
|
|
744
|
-
}), zr();
|
|
745
|
-
}
|
|
746
|
-
function Hr(e) {
|
|
747
|
-
let t = U.value.find((t, n) => n === e), n = W.value.find((t, n) => n === e).value;
|
|
748
|
-
if (G.value.includes(e)) {
|
|
749
|
-
G.value = G.value.filter((t) => t !== e);
|
|
750
|
-
let r = t.value;
|
|
751
|
-
function i() {
|
|
752
|
-
W.value = W.value.map((t, n) => e === n ? {
|
|
753
|
-
...t,
|
|
754
|
-
value: r
|
|
755
|
-
} : t), zr();
|
|
756
|
-
}
|
|
757
|
-
function a() {
|
|
758
|
-
Lr.value = !0, Rr.value = e, Br({
|
|
759
|
-
from: n,
|
|
760
|
-
to: r,
|
|
761
|
-
duration: I.value.serieToggleAnimation.durationMs,
|
|
762
|
-
onUpdate: (t, n) => {
|
|
763
|
-
W.value = W.value.map((n, r) => e === r ? {
|
|
764
|
-
...n,
|
|
765
|
-
value: t
|
|
766
|
-
} : n), requestAnimationFrame(er);
|
|
767
|
-
},
|
|
768
|
-
onDone: () => {
|
|
769
|
-
i(), Lr.value = !1, Rr.value = null;
|
|
770
|
-
}
|
|
771
|
-
});
|
|
772
|
-
}
|
|
773
|
-
I.value.serieToggleAnimation.show && I.value.type === "classic" ? a() : (i(), requestAnimationFrame(er));
|
|
774
|
-
} else if (G.value.length < U.value.length - 1) {
|
|
775
|
-
function t() {
|
|
776
|
-
G.value.push(e), W.value = W.value.map((t, n) => e === n ? {
|
|
777
|
-
...t,
|
|
778
|
-
value: 0
|
|
779
|
-
} : t), zr();
|
|
780
|
-
}
|
|
781
|
-
function r() {
|
|
782
|
-
Lr.value = !0, Rr.value = e, Br({
|
|
783
|
-
from: n,
|
|
784
|
-
to: 0,
|
|
785
|
-
duration: I.value.serieToggleAnimation.durationMs,
|
|
786
|
-
onUpdate: (t, n) => {
|
|
787
|
-
W.value = W.value.map((n, r) => e === r ? {
|
|
788
|
-
...n,
|
|
789
|
-
value: t
|
|
790
|
-
} : n), requestAnimationFrame(er);
|
|
791
|
-
},
|
|
792
|
-
onDone: () => {
|
|
793
|
-
t(), requestAnimationFrame(er), Lr.value = !1, Rr.value = null;
|
|
794
|
-
}
|
|
795
|
-
});
|
|
796
|
-
}
|
|
797
|
-
I.value.serieToggleAnimation.show && I.value.type === "classic" ? r() : t();
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
function Ur(e) {
|
|
801
|
-
return U.value.length ? U.value.find((t) => t.name === e) || (nr.value && console.warn(`VueUiDonut - Series name not found "${e}"`), null) : (nr.value && console.warn("VueUiDonut - There are no series to show."), null);
|
|
802
|
-
}
|
|
803
|
-
function Wr(e) {
|
|
804
|
-
let t = Ur(e);
|
|
805
|
-
t !== null && G.value.includes(t.seriesIndex) && Hr(t.seriesIndex);
|
|
806
|
-
}
|
|
807
|
-
function Gr(e) {
|
|
808
|
-
let t = Ur(e);
|
|
809
|
-
t !== null && (G.value.includes(t.seriesIndex) || Hr(t.seriesIndex));
|
|
810
|
-
}
|
|
811
|
-
let Kr = v(() => fr.value.reduce((e, t) => e + t.values.reduce((e, t) => e + t, 0), 0)), qr = v(() => {
|
|
812
|
-
if (B.value && !dr.value) {
|
|
813
|
-
let e = hr.value, t = U.value.map((t) => ({
|
|
814
|
-
...t,
|
|
815
|
-
value: t.value * e,
|
|
816
|
-
color: t.color,
|
|
817
|
-
ghost: !1
|
|
818
|
-
})), n = Kr.value * (1 - e);
|
|
819
|
-
return n > 0 && t.push({
|
|
820
|
-
name: "__ghost__",
|
|
821
|
-
value: n,
|
|
822
|
-
color: "transparent",
|
|
823
|
-
ghost: !0
|
|
824
|
-
}), t;
|
|
825
|
-
}
|
|
826
|
-
return W.value.forEach((e) => {
|
|
827
|
-
if ([null, void 0].includes(e.values)) return {
|
|
828
|
-
...e,
|
|
829
|
-
values: []
|
|
830
|
-
};
|
|
831
|
-
}), W.value.map((e, t) => ({
|
|
832
|
-
...e,
|
|
833
|
-
seriesIndex: t
|
|
834
|
-
})).filter((e, t) => !G.value.includes(t));
|
|
835
|
-
}), Jr = v(() => fr.value.map((e, t) => {
|
|
836
|
-
let n = (e.values || []).reduce((e, t) => e + t, 0), r = n / fr.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0);
|
|
837
|
-
return {
|
|
838
|
-
name: e.name,
|
|
839
|
-
color: c(e.color) || Nr.value[t] || l[t] || l[t % l.length],
|
|
840
|
-
value: n,
|
|
841
|
-
shape: "circle",
|
|
842
|
-
patternIndex: t,
|
|
843
|
-
proportion: r
|
|
844
|
-
};
|
|
845
|
-
}).map((e, n) => {
|
|
846
|
-
let r = p(L.value.value.formatter, e.value, t({
|
|
847
|
-
p: L.value.dataLabels.prefix,
|
|
848
|
-
v: e.value,
|
|
849
|
-
s: L.value.dataLabels.suffix,
|
|
850
|
-
r: z.value.legend.roundingValue
|
|
851
|
-
}), {
|
|
852
|
-
datapoint: e,
|
|
853
|
-
index: n
|
|
854
|
-
}), i = p(L.value.percentage.formatter, ai(e), t({
|
|
855
|
-
v: ai(e),
|
|
856
|
-
s: "%",
|
|
857
|
-
r: z.value.legend.roundingPercentage
|
|
858
|
-
})), a = Si({
|
|
859
|
-
val: r,
|
|
860
|
-
percentage: G.value.includes(n) ? `${xi(e.proportion * 100)}%` : i,
|
|
861
|
-
showVal: z.value.legend.showValue,
|
|
862
|
-
showPercentage: z.value.legend.showPercentage,
|
|
863
|
-
config: z.value.legend
|
|
864
|
-
});
|
|
865
|
-
return {
|
|
866
|
-
...e,
|
|
867
|
-
opacity: G.value.includes(n) ? .5 : 1,
|
|
868
|
-
segregate: () => !Lr.value && Hr(n),
|
|
869
|
-
isSegregated: G.value.includes(n),
|
|
870
|
-
display: `${e.name}${z.value.legend.showPercentage || z.value.legend.showValue ? ": " : ""}${a}`
|
|
871
|
-
};
|
|
872
|
-
})), Yr = v(() => ({
|
|
873
|
-
cy: "donut-div-legend",
|
|
874
|
-
backgroundColor: z.value.legend.backgroundColor,
|
|
875
|
-
color: z.value.legend.color,
|
|
876
|
-
fontSize: z.value.legend.fontSize,
|
|
877
|
-
paddingBottom: 12,
|
|
878
|
-
fontWeight: z.value.legend.bold ? "bold" : ""
|
|
879
|
-
})), K = v(() => {
|
|
880
|
-
let e = R.value.radiusRatio, t = Math.max(.1, Math.min(.50001, e)), n = Math.min(H.value.width * t, H.value.height * t);
|
|
881
|
-
return Math.max(12, n);
|
|
882
|
-
}), q = v(() => a({ series: qr.value }, H.value.width / 2, H.value.height / 2, K.value, K.value, 1.99999, 2, 1, 360, 105.25, Pr.value)), Xr = v(() => Math.abs(qr.value.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0), Zr = v(() => a({ series: [{
|
|
883
|
-
value: 1,
|
|
884
|
-
color: R.value.emptyFill,
|
|
885
|
-
name: "_",
|
|
886
|
-
seriesIndex: 0,
|
|
887
|
-
patternIndex: -1,
|
|
888
|
-
ghost: !1,
|
|
889
|
-
absoluteValues: [1]
|
|
890
|
-
}] }, H.value.width / 2, H.value.height / 2, K.value, K.value, 1.99999, 2, 1, 360, 105.25, Pr.value)), J = v(() => q.value.filter((e) => !e.ghost)), Y = v(() => {
|
|
891
|
-
let e = Math.max(...qr.value.map((e) => e.value)), t = qr.value.map((t) => t.value / e);
|
|
892
|
-
return ie({
|
|
893
|
-
series: t,
|
|
894
|
-
center: {
|
|
895
|
-
x: H.value.width / 2,
|
|
896
|
-
y: H.value.height / 2
|
|
897
|
-
},
|
|
898
|
-
maxRadius: Math.min(H.value.width, H.value.height) / 3,
|
|
899
|
-
hasGhost: B.value
|
|
900
|
-
});
|
|
901
|
-
});
|
|
902
|
-
function Qr(e) {
|
|
903
|
-
return e.x > H.value.width / 2 + 6 ? "start" : e.x < H.value.width / 2 - 6 ? "end" : "middle";
|
|
904
|
-
}
|
|
905
|
-
function $r(e) {
|
|
906
|
-
return e.middlePoint.y > H.value.height / 2 ? g({
|
|
907
|
-
initX: e.middlePoint.x,
|
|
908
|
-
initY: e.middlePoint.y,
|
|
909
|
-
offset: 100,
|
|
910
|
-
centerX: H.value.width / 2,
|
|
911
|
-
centerY: H.value.height / 2
|
|
912
|
-
}).y : g({
|
|
913
|
-
initX: e.middlePoint.x,
|
|
914
|
-
initY: e.middlePoint.y,
|
|
915
|
-
offset: 0,
|
|
916
|
-
centerX: H.value.width / 2,
|
|
917
|
-
centerY: H.value.height / 2
|
|
918
|
-
}).y - 100;
|
|
919
|
-
}
|
|
920
|
-
function X(e) {
|
|
921
|
-
return e.proportion * 100 > L.value.dataLabels.hideUnderValue;
|
|
922
|
-
}
|
|
923
|
-
function ei(e, t) {
|
|
924
|
-
let n = L.value.dataLabels.hideUnderValue, r = L.value.dataLabels.smallArcClusterThreshold, i = (ri.value[t] ?? e.proportion ?? 0) * 100;
|
|
925
|
-
return i > n && i <= r;
|
|
926
|
-
}
|
|
927
|
-
let { smallArcLayoutsClassic: Z } = nt({
|
|
928
|
-
FINAL_CONFIG: I,
|
|
929
|
-
noGhostDonut: J,
|
|
930
|
-
svg: H,
|
|
931
|
-
padding: Dr,
|
|
932
|
-
labels_inline_fontSize: Qn,
|
|
933
|
-
minSize: K,
|
|
934
|
-
findArcMidpoint: ae,
|
|
935
|
-
calcMarkerOffsetX: f,
|
|
936
|
-
calcMarkerOffsetY: h,
|
|
937
|
-
animatingIndex: Rr,
|
|
938
|
-
segregated: G,
|
|
939
|
-
isSmallArc: ei
|
|
940
|
-
});
|
|
941
|
-
function ti(e, n) {
|
|
942
|
-
let r = e.value / ni(n);
|
|
943
|
-
return isNaN(r) ? 0 : p(L.value.percentage.formatter, r * 100, t({
|
|
944
|
-
v: r * 100,
|
|
945
|
-
s: "%",
|
|
946
|
-
r: L.value.percentage.rounding
|
|
947
|
-
}), { datapoint: e });
|
|
948
|
-
}
|
|
949
|
-
function ni(e) {
|
|
950
|
-
return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
951
|
-
}
|
|
952
|
-
let Q = v(() => qr.value.map((e) => e.value).reduce((e, t) => e + t, 0)), ri = v(() => {
|
|
953
|
-
let e = U.value.reduce((e, t) => e + t.value, 0);
|
|
954
|
-
return e <= 0 ? [] : U.value.map((t) => t.value / e);
|
|
955
|
-
}), ii = v(() => Q.value / qr.value.length);
|
|
956
|
-
function ai(e) {
|
|
957
|
-
return Lr.value ? e.proportion * 100 : e.value / Q.value * 100;
|
|
958
|
-
}
|
|
959
|
-
let oi = D(null), si = D(!1);
|
|
960
|
-
function ci({ datapoint: e, seriesIndex: t }) {
|
|
961
|
-
I.value.events.datapointLeave && I.value.events.datapointLeave({
|
|
962
|
-
datapoint: e,
|
|
963
|
-
seriesIndex: t
|
|
964
|
-
}), ir.value = !1, F.value = null, qn.value = null, Yn.value = "pointer";
|
|
965
|
-
}
|
|
966
|
-
function li({ datapoint: e, relativeIndex: n, seriesIndex: r, show: a = !1, triggerMode: o = "pointer" }) {
|
|
967
|
-
I.value.events.datapointEnter && I.value.events.datapointEnter({
|
|
968
|
-
datapoint: e,
|
|
969
|
-
seriesIndex: r
|
|
970
|
-
}), Yn.value = o, qn.value = n, oi.value = {
|
|
971
|
-
datapoint: e,
|
|
972
|
-
seriesIndex: r,
|
|
973
|
-
config: I.value,
|
|
974
|
-
series: U.value
|
|
975
|
-
}, ir.value = a, F.value = n;
|
|
976
|
-
let s = "", c = z.value.tooltip.customFormat;
|
|
977
|
-
if (si.value = !1, i(c)) try {
|
|
978
|
-
let t = c({
|
|
979
|
-
seriesIndex: r,
|
|
980
|
-
datapoint: e,
|
|
981
|
-
series: U.value,
|
|
982
|
-
config: I.value
|
|
983
|
-
});
|
|
984
|
-
typeof t == "string" && (ar.value = t, si.value = !0);
|
|
985
|
-
} catch {
|
|
986
|
-
console.warn("Custom format cannot be applied."), si.value = !1;
|
|
987
|
-
}
|
|
988
|
-
si.value || (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${z.value.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, s += `<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="${e.color}"/>${kn.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${P.value}_${r})"/>` : ""}</svg>`, s += `<b>${Si({
|
|
989
|
-
showVal: z.value.tooltip.showValue,
|
|
990
|
-
showPercentage: z.value.tooltip.showPercentage,
|
|
991
|
-
val: `<span>${p(L.value.value.formatter, e.value, t({
|
|
992
|
-
p: L.value.dataLabels.prefix,
|
|
993
|
-
v: e.value,
|
|
994
|
-
s: L.value.dataLabels.suffix,
|
|
995
|
-
r: z.value.tooltip.roundingValue
|
|
996
|
-
}), {
|
|
997
|
-
datapoint: e,
|
|
998
|
-
relativeIndex: n,
|
|
999
|
-
seriesIndex: r
|
|
1000
|
-
})}</span>`,
|
|
1001
|
-
percentage: p(L.value.percentage.formatter, e.proportion * 100, t({
|
|
1002
|
-
v: e.proportion * 100,
|
|
1003
|
-
s: "%",
|
|
1004
|
-
r: z.value.tooltip.roundingPercentage
|
|
1005
|
-
}), {
|
|
1006
|
-
datapoint: e,
|
|
1007
|
-
relativeIndex: n,
|
|
1008
|
-
seriesIndex: r
|
|
1009
|
-
}),
|
|
1010
|
-
config: z.value.tooltip
|
|
1011
|
-
})}</b></div>`, z.value.comments.showInTooltip && e.comment && (s += `<div class="vue-data-ui-tooltip-comment" style="background:${e.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${e.color}">${e.comment}</div>`), ar.value = `<div>${s}</div>`);
|
|
1012
|
-
}
|
|
1013
|
-
function ui(e, t) {
|
|
1014
|
-
let n = Z.value[t];
|
|
1015
|
-
if (n) return {
|
|
1016
|
-
textAnchor: n.textAnchor,
|
|
1017
|
-
x: n.labelX,
|
|
1018
|
-
y: n.labelY
|
|
1019
|
-
};
|
|
1020
|
-
let r = f(e, !0, 12);
|
|
1021
|
-
return {
|
|
1022
|
-
textAnchor: r.anchor,
|
|
1023
|
-
x: r.x,
|
|
1024
|
-
y: h(e)
|
|
1025
|
-
};
|
|
1026
|
-
}
|
|
1027
|
-
function di(e, t, n) {
|
|
1028
|
-
let { textAnchor: r, x: i } = ui(e, t), a = Ci(e), o = `
|
|
1029
|
-
<tspan
|
|
1030
|
-
class="vue-data-ui-datalabel-inline"
|
|
1031
|
-
fill="${L.value.percentage.color}"
|
|
1032
|
-
font-size="${n ? Qn.value : Zn.value}px"
|
|
1033
|
-
style="font-weight:${L.value.percentage.bold ? "bold" : ""}"
|
|
1034
|
-
>${a}</tspan>
|
|
1035
|
-
`, s = String(e.name ?? "").split(/\n/g), c = "";
|
|
1036
|
-
return s.forEach((e, t) => {
|
|
1037
|
-
c += t === 0 ? `
|
|
1038
|
-
<tspan
|
|
1039
|
-
class="${n ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
|
|
1040
|
-
fill="${L.value.name.color}"
|
|
1041
|
-
font-size="${n ? Qn.value : N.value}px"
|
|
1042
|
-
style="font-weight:${L.value.name.bold ? "bold" : ""}"
|
|
1043
|
-
>${e}</tspan>
|
|
1044
|
-
` : `
|
|
1045
|
-
<tspan
|
|
1046
|
-
class="${n ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
|
|
1047
|
-
x="${i}"
|
|
1048
|
-
dy="${(n ? Qn.value : N.value) * 1.2}"
|
|
1049
|
-
fill="${L.value.name.color}"
|
|
1050
|
-
font-size="${n ? Qn.value : N.value}px"
|
|
1051
|
-
style="font-weight:${L.value.name.bold ? "bold" : ""}"
|
|
1052
|
-
>${e}</tspan>
|
|
1053
|
-
`;
|
|
1054
|
-
}), r === "end" ? `${L.value.name.show ? c : ""}${o}` : `${o}${L.value.name.show ? c : ""}`;
|
|
1055
|
-
}
|
|
1056
|
-
function fi(e, t) {
|
|
1057
|
-
let n = Y.value[t].middlePoint, r = Qr(n), i = g({
|
|
1058
|
-
initX: n.x,
|
|
1059
|
-
initY: n.y,
|
|
1060
|
-
offset: 42,
|
|
1061
|
-
centerX: H.value.width / 2,
|
|
1062
|
-
centerY: H.value.height / 2
|
|
1063
|
-
}), a = i.x;
|
|
1064
|
-
i.y;
|
|
1065
|
-
let o = Ci(e), s = `
|
|
1066
|
-
<tspan
|
|
1067
|
-
class="vue-data-ui-datalabel-value"
|
|
1068
|
-
fill="${L.value.percentage.color}"
|
|
1069
|
-
font-size="${Zn.value}px"
|
|
1070
|
-
style="font-weight:${L.value.percentage.bold ? "bold" : "normal"}"
|
|
1071
|
-
>${o}</tspan>
|
|
1072
|
-
`, c = String(e.name ?? "").split(/\n/g), l = "";
|
|
1073
|
-
return c.forEach((e, t) => {
|
|
1074
|
-
l += t === 0 ? `
|
|
1075
|
-
<tspan
|
|
1076
|
-
class="vue-data-ui-datalabel-name"
|
|
1077
|
-
fill="${L.value.name.color}"
|
|
1078
|
-
font-size="${N.value}px"
|
|
1079
|
-
style="font-weight:${L.value.name.bold ? "bold" : "normal"}"
|
|
1080
|
-
>${e}</tspan>
|
|
1081
|
-
` : `
|
|
1082
|
-
<tspan
|
|
1083
|
-
class="vue-data-ui-datalabel-name"
|
|
1084
|
-
x="${a}"
|
|
1085
|
-
dy="${N.value * 1.2}"
|
|
1086
|
-
fill="${L.value.name.color}"
|
|
1087
|
-
font-size="${N.value}px"
|
|
1088
|
-
style="font-weight:${L.value.name.bold ? "bold" : "normal"}"
|
|
1089
|
-
>${e}</tspan>
|
|
1090
|
-
`;
|
|
1091
|
-
}), r === "end" ? `${L.value.name.show ? l : ""}${s}` : `${s}${L.value.name.show ? l : ""}`;
|
|
1092
|
-
}
|
|
1093
|
-
function pi(e) {
|
|
1094
|
-
return I.value.useBlurOnHover && ![null, void 0].includes(F.value) && F.value !== e ? `url(#blur_${P.value})` : "";
|
|
1095
|
-
}
|
|
1096
|
-
function mi(e) {
|
|
1097
|
-
if (!Lr.value || Rr.value === null || e.seriesIndex !== Rr.value) return 1;
|
|
1098
|
-
let t = (e.proportion ?? 0) * 100, n = L.value.dataLabels.hideUnderValue, r = L.value.dataLabels.smallArcClusterThreshold + 2, i = n;
|
|
1099
|
-
return t >= r ? 1 : t <= i ? 0 : (t - i) / (r - i);
|
|
1100
|
-
}
|
|
1101
|
-
let hi = v(() => ({
|
|
1102
|
-
head: qr.value.map((e) => ({
|
|
1103
|
-
name: e.name,
|
|
1104
|
-
color: e.color
|
|
1105
|
-
})),
|
|
1106
|
-
body: qr.value.map((e) => e.value)
|
|
1107
|
-
}));
|
|
1108
|
-
function gi(e = null) {
|
|
1109
|
-
We(() => {
|
|
1110
|
-
let t = hi.value.head.map((e, t) => [
|
|
1111
|
-
[e.name],
|
|
1112
|
-
[hi.value.body[t]],
|
|
1113
|
-
[isNaN(hi.value.body[t] / Q.value) ? "-" : hi.value.body[t] / Q.value * 100]
|
|
1114
|
-
]), n = [
|
|
1115
|
-
[z.value.title.text],
|
|
1116
|
-
[z.value.title.subtitle.text],
|
|
1117
|
-
[
|
|
1118
|
-
[""],
|
|
1119
|
-
["val"],
|
|
1120
|
-
["%"]
|
|
1121
|
-
]
|
|
1122
|
-
].concat(t), i = r(n);
|
|
1123
|
-
e ? e(i) : oe({
|
|
1124
|
-
csvContent: i,
|
|
1125
|
-
title: z.value.title.text || "vue-ui-donut"
|
|
1126
|
-
});
|
|
1127
|
-
});
|
|
1128
|
-
}
|
|
1129
|
-
let _i = v(() => {
|
|
1130
|
-
let e = [
|
|
1131
|
-
"__SUM__",
|
|
1132
|
-
t({
|
|
1133
|
-
p: L.value.dataLabels.prefix,
|
|
1134
|
-
v: Q.value,
|
|
1135
|
-
s: L.value.dataLabels.suffix,
|
|
1136
|
-
r: I.value.table.td.roundingValue
|
|
1137
|
-
}),
|
|
1138
|
-
"100%"
|
|
1139
|
-
], n = hi.value.head.map((e, t) => [
|
|
1140
|
-
{
|
|
1141
|
-
color: e.color,
|
|
1142
|
-
name: e.name || "-"
|
|
1143
|
-
},
|
|
1144
|
-
hi.value.body[t],
|
|
1145
|
-
isNaN(hi.value.body[t] / Q.value) ? "-" : (hi.value.body[t] / Q.value * 100).toFixed(I.value.table.td.roundingPercentage) + "%"
|
|
1146
|
-
]), r = n.map((e) => e.map((e, t) => t === 0 ? e.name : e)), i = {
|
|
1147
|
-
th: {
|
|
1148
|
-
backgroundColor: I.value.table.th.backgroundColor,
|
|
1149
|
-
color: I.value.table.th.color,
|
|
1150
|
-
outline: I.value.table.th.outline
|
|
1151
|
-
},
|
|
1152
|
-
td: {
|
|
1153
|
-
backgroundColor: I.value.table.td.backgroundColor,
|
|
1154
|
-
color: I.value.table.td.color,
|
|
1155
|
-
outline: I.value.table.td.outline
|
|
1156
|
-
},
|
|
1157
|
-
breakpoint: I.value.table.responsiveBreakpoint
|
|
1158
|
-
};
|
|
1159
|
-
return {
|
|
1160
|
-
colNames: [
|
|
1161
|
-
I.value.table.columnNames.series,
|
|
1162
|
-
I.value.table.columnNames.value,
|
|
1163
|
-
I.value.table.columnNames.percentage
|
|
1164
|
-
],
|
|
1165
|
-
head: e,
|
|
1166
|
-
body: n,
|
|
1167
|
-
a11yBody: r,
|
|
1168
|
-
config: i
|
|
1169
|
-
};
|
|
1170
|
-
}), vi = D(!1);
|
|
1171
|
-
function yi(e) {
|
|
1172
|
-
vi.value = e, or.value += 1;
|
|
1173
|
-
}
|
|
1174
|
-
let bi = v(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
1175
|
-
function xi(e) {
|
|
1176
|
-
return Pe({
|
|
1177
|
-
num: e,
|
|
1178
|
-
rounding: z.value.legend.roundingPercentage
|
|
1179
|
-
});
|
|
1180
|
-
}
|
|
1181
|
-
function Si({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
|
|
1182
|
-
return Fe({
|
|
1183
|
-
config: i,
|
|
1184
|
-
val: e,
|
|
1185
|
-
percentage: t,
|
|
1186
|
-
showVal: n,
|
|
1187
|
-
showPercentage: r
|
|
1188
|
-
});
|
|
1189
|
-
}
|
|
1190
|
-
function Ci(e) {
|
|
1191
|
-
return Si({
|
|
1192
|
-
val: p(L.value.value.formatter, e.value, t({
|
|
1193
|
-
p: L.value.dataLabels.prefix,
|
|
1194
|
-
v: e.value,
|
|
1195
|
-
s: L.value.dataLabels.suffix,
|
|
1196
|
-
r: L.value.value.rounding
|
|
1197
|
-
}), { datapoint: e }),
|
|
1198
|
-
percentage: ti(e, J.value),
|
|
1199
|
-
showVal: L.value.value.show,
|
|
1200
|
-
showPercentage: L.value.percentage.show,
|
|
1201
|
-
config: L.value.dataLabels
|
|
1202
|
-
});
|
|
1203
|
-
}
|
|
1204
|
-
function $(e, t) {
|
|
1205
|
-
I.value.events.datapointClick && I.value.events.datapointClick({
|
|
1206
|
-
datapoint: e,
|
|
1207
|
-
seriesIndex: e.seriesIndex
|
|
1208
|
-
}), Fr("selectDatapoint", {
|
|
1209
|
-
datapoint: e,
|
|
1210
|
-
index: t
|
|
1211
|
-
});
|
|
1212
|
-
}
|
|
1213
|
-
function wi() {
|
|
1214
|
-
V.value.showTable = !V.value.showTable;
|
|
1215
|
-
}
|
|
1216
|
-
function Ti() {
|
|
1217
|
-
V.value.dataLabels.show = !V.value.dataLabels.show;
|
|
1218
|
-
}
|
|
1219
|
-
function Ei() {
|
|
1220
|
-
V.value.showTooltip = !V.value.showTooltip;
|
|
1221
|
-
}
|
|
1222
|
-
let Di = D(!1);
|
|
1223
|
-
function Oi() {
|
|
1224
|
-
Di.value = !Di.value;
|
|
1225
|
-
}
|
|
1226
|
-
async function ki({ scale: e = 2 } = {}) {
|
|
1227
|
-
if (!jn.value) return;
|
|
1228
|
-
let { width: t, height: n } = jn.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ce({
|
|
1229
|
-
domElement: jn.value,
|
|
1230
|
-
base64: !0,
|
|
1231
|
-
img: !0,
|
|
1232
|
-
scale: e
|
|
1233
|
-
});
|
|
1234
|
-
return {
|
|
1235
|
-
imageUri: i,
|
|
1236
|
-
base64: a,
|
|
1237
|
-
title: z.value.title.text,
|
|
1238
|
-
width: t,
|
|
1239
|
-
height: n,
|
|
1240
|
-
aspectRatio: r
|
|
1241
|
-
};
|
|
1242
|
-
}
|
|
1243
|
-
function Ai() {
|
|
1244
|
-
if (!Mn.value) return;
|
|
1245
|
-
let { x: e, y: t, width: n, height: r } = Mn.value.getBBox();
|
|
1246
|
-
Sr.value && Sr.value.setAttribute("viewBox", `${e} ${t} ${n + Math.min(0, e)} ${r + Math.min(0, t)}`);
|
|
1247
|
-
}
|
|
1248
|
-
let ji = v(() => {
|
|
1249
|
-
let e = I.value.table.useDialog && !I.value.table.show, t = V.value.showTable;
|
|
1250
|
-
return {
|
|
1251
|
-
component: e ? Tn : bn,
|
|
1252
|
-
title: `${z.value.title.text}${z.value.title.subtitle.text ? `: ${z.value.title.subtitle.text}` : ""}`,
|
|
1253
|
-
props: e ? {
|
|
1254
|
-
backgroundColor: I.value.table.th.backgroundColor,
|
|
1255
|
-
color: I.value.table.th.color,
|
|
1256
|
-
headerColor: I.value.table.th.color,
|
|
1257
|
-
headerBg: I.value.table.th.backgroundColor,
|
|
1258
|
-
isFullscreen: vi.value,
|
|
1259
|
-
fullscreenParent: jn.value,
|
|
1260
|
-
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
1261
|
-
isCursorPointer: lr.value
|
|
1262
|
-
} : {
|
|
1263
|
-
hideDetails: !0,
|
|
1264
|
-
config: {
|
|
1265
|
-
open: t,
|
|
1266
|
-
maxHeight: 1e4,
|
|
1267
|
-
body: {
|
|
1268
|
-
backgroundColor: z.value.backgroundColor,
|
|
1269
|
-
color: z.value.color
|
|
1270
|
-
},
|
|
1271
|
-
head: {
|
|
1272
|
-
backgroundColor: z.value.backgroundColor,
|
|
1273
|
-
color: z.value.color
|
|
1274
|
-
}
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
};
|
|
1278
|
-
});
|
|
1279
|
-
et(() => V.value.showTable, (e) => {
|
|
1280
|
-
I.value.table.show || (e && I.value.table.useDialog && Gn.value ? Gn.value.open() : "close" in Gn.value && Gn.value.close());
|
|
1281
|
-
});
|
|
1282
|
-
function Mi() {
|
|
1283
|
-
V.value.showTable = !1, Kn.value && Kn.value.setTableIconState(!1);
|
|
1284
|
-
}
|
|
1285
|
-
let Ni = v(() => Jr.value.map((e) => ({
|
|
1286
|
-
...e,
|
|
1287
|
-
name: e.display
|
|
1288
|
-
}))), Pi = v(() => z.value.backgroundColor), Fi = v(() => z.value.legend), Ii = v(() => z.value.title), { isCallbackImaging: Li, isCallbackSvg: Ri, generateSvg: zi, onGenerateImage: Bi } = Se({
|
|
1289
|
-
svg: Sr,
|
|
1290
|
-
title: Ii,
|
|
1291
|
-
legend: Fi,
|
|
1292
|
-
legendItems: Ni,
|
|
1293
|
-
backgroundColor: Pi,
|
|
1294
|
-
getSvgCallback: () => I.value.userOptions.callbacks.svg,
|
|
1295
|
-
generateImage: jr
|
|
1296
|
-
});
|
|
1297
|
-
async function Vi() {
|
|
1298
|
-
if (Fr("copyAlt", {
|
|
1299
|
-
config: I.value,
|
|
1300
|
-
dataset: W.value
|
|
1301
|
-
}), !I.value.userOptions.callbacks.altCopy) {
|
|
1302
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1303
|
-
return;
|
|
1304
|
-
}
|
|
1305
|
-
await Promise.resolve(I.value.userOptions.callbacks.altCopy({
|
|
1306
|
-
config: I.value,
|
|
1307
|
-
dataset: W.value
|
|
1308
|
-
}));
|
|
1309
|
-
}
|
|
1310
|
-
function Hi() {
|
|
1311
|
-
qn.value = null, Xn.value = !0;
|
|
1312
|
-
}
|
|
1313
|
-
function Ui() {
|
|
1314
|
-
qn.value = null, Yn.value = "pointer", ir.value = !1, F.value = null, Xn.value = !1;
|
|
1315
|
-
}
|
|
1316
|
-
function Wi(e) {
|
|
1317
|
-
if (!Sr.value || Di.value || document.activeElement !== Sr.value || !J.value.length) return;
|
|
1318
|
-
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1319
|
-
if (!t && !n && !r && !i) return;
|
|
1320
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1321
|
-
qn.value = null, Yn.value = "pointer", ir.value = !1, F.value = null;
|
|
1322
|
-
return;
|
|
1323
|
-
}
|
|
1324
|
-
if (r) {
|
|
1325
|
-
if (qn.value === null) return;
|
|
1326
|
-
let e = J.value[qn.value];
|
|
1327
|
-
if (!e) return;
|
|
1328
|
-
$(e, qn.value);
|
|
1329
|
-
return;
|
|
1330
|
-
}
|
|
1331
|
-
let a = qn.value, o = F.value, s = a !== null && a >= 0 && a < J.value.length, c = o !== null && o >= 0 && o < J.value.length;
|
|
1332
|
-
s ? n ? (a += 1, a >= J.value.length && (a = 0)) : t && (--a, a < 0 && (a = J.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= J.value.length && (a = 0), a < 0 && (a = J.value.length - 1)) : a = n ? 0 : J.value.length - 1;
|
|
1333
|
-
let l = J.value[a];
|
|
1334
|
-
l && (qn.value = a, Gi(a), li({
|
|
1335
|
-
datapoint: l,
|
|
1336
|
-
relativeIndex: a,
|
|
1337
|
-
seriesIndex: l.seriesIndex,
|
|
1338
|
-
show: !0,
|
|
1339
|
-
triggerMode: "keyboard"
|
|
1340
|
-
}));
|
|
1341
|
-
}
|
|
1342
|
-
function Gi(e) {
|
|
1343
|
-
if (!Number.isFinite(e) || !Sr.value) return;
|
|
1344
|
-
let t = H.value.width / 2, n = H.value.height / 2;
|
|
1345
|
-
if (I.value.type === "classic") {
|
|
1346
|
-
let r = J.value[e];
|
|
1347
|
-
if (!r?.arcSlice) return;
|
|
1348
|
-
let i = ae(r.arcSlice);
|
|
1349
|
-
if (!i) return;
|
|
1350
|
-
t = i.x, n = i.y;
|
|
1351
|
-
} else {
|
|
1352
|
-
let r = Y.value[e]?.middlePoint;
|
|
1353
|
-
if (!r) return;
|
|
1354
|
-
t = r.x, n = r.y;
|
|
1355
|
-
}
|
|
1356
|
-
let r = Sr.value.getBoundingClientRect();
|
|
1357
|
-
Jn.value = {
|
|
1358
|
-
x: r.left + t / H.value.width * r.width,
|
|
1359
|
-
y: r.top + n / H.value.height * r.height
|
|
1360
|
-
};
|
|
1361
|
-
}
|
|
1362
|
-
let Ki = v(() => ({
|
|
1363
|
-
headers: _i.value?.colNames ?? [],
|
|
1364
|
-
rows: _i.value?.a11yBody ?? []
|
|
1365
|
-
}));
|
|
1366
|
-
return Ee({
|
|
1367
|
-
autoSize: Ai,
|
|
1368
|
-
getData: Ir,
|
|
1369
|
-
getImage: ki,
|
|
1370
|
-
generatePdf: Ar,
|
|
1371
|
-
generateCsv: gi,
|
|
1372
|
-
generateImage: jr,
|
|
1373
|
-
generateSvg: zi,
|
|
1374
|
-
hideSeries: Gr,
|
|
1375
|
-
showSeries: Wr,
|
|
1376
|
-
toggleTable: wi,
|
|
1377
|
-
toggleLabels: Ti,
|
|
1378
|
-
toggleTooltip: Ei,
|
|
1379
|
-
toggleAnnotator: Oi,
|
|
1380
|
-
toggleFullscreen: yi,
|
|
1381
|
-
copyAlt: Vi
|
|
1382
|
-
}), (n, r) => (E(), x("div", {
|
|
1383
|
-
ref_key: "donutChart",
|
|
1384
|
-
ref: jn,
|
|
1385
|
-
class: Ge(`vue-data-ui-component vue-ui-donut ${vi.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1386
|
-
style: T(`font-family:${I.value.style.fontFamily};width:100%; ${I.value.responsive ? "height:100%;" : ""} text-align:center;background:${z.value.backgroundColor}`),
|
|
1387
|
-
id: `donut__${P.value}`,
|
|
1388
|
-
onMouseenter: Cr,
|
|
1389
|
-
onMouseleave: wr
|
|
1390
|
-
}, [
|
|
1391
|
-
S("div", {
|
|
1392
|
-
id: `chart-instructions-${P.value}`,
|
|
1393
|
-
class: "sr-only"
|
|
1394
|
-
}, [S("p", null, Xe(I.value.a11y.translations.keyboardNavigation), 1)], 8, at),
|
|
1395
|
-
Ki.value?.rows?.length ? (E(), y(je, {
|
|
1396
|
-
key: 0,
|
|
1397
|
-
uid: P.value,
|
|
1398
|
-
head: Ki.value.headers,
|
|
1399
|
-
body: Ki.value.rows,
|
|
1400
|
-
notice: I.value.a11y.translations.tableAvailable,
|
|
1401
|
-
caption: I.value.a11y.translations.tableCaption
|
|
1402
|
-
}, null, 8, [
|
|
1403
|
-
"uid",
|
|
1404
|
-
"head",
|
|
1405
|
-
"body",
|
|
1406
|
-
"notice",
|
|
1407
|
-
"caption"
|
|
1408
|
-
])) : b("", !0),
|
|
1409
|
-
I.value.userOptions.buttons.annotator && A(Sr) ? (E(), y(A(Sn), {
|
|
1410
|
-
key: 1,
|
|
1411
|
-
color: z.value.color,
|
|
1412
|
-
backgroundColor: z.value.backgroundColor,
|
|
1413
|
-
active: Di.value,
|
|
1414
|
-
svgRef: A(Sr),
|
|
1415
|
-
isCursorPointer: lr.value,
|
|
1416
|
-
palette: I.value.userOptions.annotatorPalette,
|
|
1417
|
-
onClose: Oi
|
|
1418
|
-
}, {
|
|
1419
|
-
"annotator-action-close": j(() => [k(n.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1420
|
-
"annotator-action-color": j(({ color: e }) => [k(n.$slots, "annotator-action-color", w(C({ color: e })), void 0, !0)]),
|
|
1421
|
-
"annotator-action-draw": j(({ mode: e }) => [k(n.$slots, "annotator-action-draw", w(C({ mode: e })), void 0, !0)]),
|
|
1422
|
-
"annotator-action-undo": j(({ disabled: e }) => [k(n.$slots, "annotator-action-undo", w(C({ disabled: e })), void 0, !0)]),
|
|
1423
|
-
"annotator-action-redo": j(({ disabled: e }) => [k(n.$slots, "annotator-action-redo", w(C({ disabled: e })), void 0, !0)]),
|
|
1424
|
-
"annotator-action-delete": j(({ disabled: e }) => [k(n.$slots, "annotator-action-delete", w(C({ disabled: e })), void 0, !0)]),
|
|
1425
|
-
_: 3
|
|
1426
|
-
}, 8, [
|
|
1427
|
-
"color",
|
|
1428
|
-
"backgroundColor",
|
|
1429
|
-
"active",
|
|
1430
|
-
"svgRef",
|
|
1431
|
-
"isCursorPointer",
|
|
1432
|
-
"palette"
|
|
1433
|
-
])) : b("", !0),
|
|
1434
|
-
k(n.$slots, "userConfig", {}, void 0, !0),
|
|
1435
|
-
Mr.value ? (E(), x("div", {
|
|
1436
|
-
key: 2,
|
|
1437
|
-
ref_key: "noTitle",
|
|
1438
|
-
ref: Bn,
|
|
1439
|
-
class: "vue-data-ui-no-title-space",
|
|
1440
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
1441
|
-
}, null, 512)) : b("", !0),
|
|
1442
|
-
z.value.title.text ? (E(), x("div", {
|
|
1443
|
-
key: 3,
|
|
1444
|
-
ref_key: "chartTitle",
|
|
1445
|
-
ref: Fn,
|
|
1446
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1447
|
-
}, [(E(), y(we, {
|
|
1448
|
-
key: `title_${Vn.value}`,
|
|
1449
|
-
config: {
|
|
1450
|
-
title: {
|
|
1451
|
-
cy: "donut-div-title",
|
|
1452
|
-
...z.value.title
|
|
1453
|
-
},
|
|
1454
|
-
subtitle: {
|
|
1455
|
-
cy: "donut-div-subtitle",
|
|
1456
|
-
...z.value.title.subtitle
|
|
1457
|
-
}
|
|
1458
|
-
}
|
|
1459
|
-
}, null, 8, ["config"]))], 512)) : b("", !0),
|
|
1460
|
-
S("div", { id: `legend-top-${P.value}` }, null, 8, ot),
|
|
1461
|
-
I.value.userOptions.show && An.value && (A(xr) || A(yr)) ? (E(), y(A(Cn), {
|
|
1462
|
-
ref_key: "userOptionsRef",
|
|
1463
|
-
ref: Kn,
|
|
1464
|
-
key: `user_option_${or.value}`,
|
|
1465
|
-
backgroundColor: z.value.backgroundColor,
|
|
1466
|
-
color: z.value.color,
|
|
1467
|
-
isPrinting: A(Or),
|
|
1468
|
-
isImaging: A(kr),
|
|
1469
|
-
uid: P.value,
|
|
1470
|
-
hasTooltip: z.value.tooltip.show && I.value.userOptions.buttons.tooltip,
|
|
1471
|
-
hasPdf: I.value.userOptions.buttons.pdf,
|
|
1472
|
-
hasImg: I.value.userOptions.buttons.img,
|
|
1473
|
-
hasSvg: I.value.userOptions.buttons.svg,
|
|
1474
|
-
hasXls: I.value.userOptions.buttons.csv,
|
|
1475
|
-
hasTable: I.value.userOptions.buttons.table,
|
|
1476
|
-
hasLabel: I.value.userOptions.buttons.labels,
|
|
1477
|
-
hasFullscreen: I.value.userOptions.buttons.fullscreen,
|
|
1478
|
-
hasAltCopy: I.value.userOptions.buttons.altCopy,
|
|
1479
|
-
isFullscreen: vi.value,
|
|
1480
|
-
chartElement: jn.value,
|
|
1481
|
-
position: I.value.userOptions.position,
|
|
1482
|
-
callbacks: I.value.userOptions.callbacks,
|
|
1483
|
-
isTooltip: V.value.showTooltip,
|
|
1484
|
-
titles: { ...I.value.userOptions.buttonTitles },
|
|
1485
|
-
hasAnnotator: I.value.userOptions.buttons.annotator,
|
|
1486
|
-
isAnnotation: Di.value,
|
|
1487
|
-
printScale: I.value.userOptions.print.scale,
|
|
1488
|
-
tableDialog: I.value.table.useDialog,
|
|
1489
|
-
isCursorPointer: lr.value,
|
|
1490
|
-
onToggleFullscreen: yi,
|
|
1491
|
-
onGeneratePdf: A(Ar),
|
|
1492
|
-
onGenerateCsv: gi,
|
|
1493
|
-
onGenerateImage: A(Bi),
|
|
1494
|
-
onGenerateSvg: A(zi),
|
|
1495
|
-
onToggleTable: wi,
|
|
1496
|
-
onToggleLabels: Ti,
|
|
1497
|
-
onToggleTooltip: Ei,
|
|
1498
|
-
onToggleAnnotator: Oi,
|
|
1499
|
-
onCopyAlt: Vi,
|
|
1500
|
-
style: T({ visibility: A(xr) ? A(yr) ? "visible" : "hidden" : "visible" })
|
|
1501
|
-
}, ze({ _: 2 }, [
|
|
1502
|
-
n.$slots.menuIcon ? {
|
|
1503
|
-
name: "menuIcon",
|
|
1504
|
-
fn: j(({ isOpen: e, color: t }) => [k(n.$slots, "menuIcon", w(C({
|
|
1505
|
-
isOpen: e,
|
|
1506
|
-
color: t
|
|
1507
|
-
})), void 0, !0)]),
|
|
1508
|
-
key: "0"
|
|
1509
|
-
} : void 0,
|
|
1510
|
-
n.$slots.optionTooltip ? {
|
|
1511
|
-
name: "optionTooltip",
|
|
1512
|
-
fn: j(() => [k(n.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1513
|
-
key: "1"
|
|
1514
|
-
} : void 0,
|
|
1515
|
-
n.$slots.optionPdf ? {
|
|
1516
|
-
name: "optionPdf",
|
|
1517
|
-
fn: j(() => [k(n.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1518
|
-
key: "2"
|
|
1519
|
-
} : void 0,
|
|
1520
|
-
n.$slots.optionCsv ? {
|
|
1521
|
-
name: "optionCsv",
|
|
1522
|
-
fn: j(() => [k(n.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1523
|
-
key: "3"
|
|
1524
|
-
} : void 0,
|
|
1525
|
-
n.$slots.optionImg ? {
|
|
1526
|
-
name: "optionImg",
|
|
1527
|
-
fn: j(() => [k(n.$slots, "optionImg", {}, void 0, !0)]),
|
|
1528
|
-
key: "4"
|
|
1529
|
-
} : void 0,
|
|
1530
|
-
n.$slots.optionSvg ? {
|
|
1531
|
-
name: "optionSvg",
|
|
1532
|
-
fn: j(() => [k(n.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1533
|
-
key: "5"
|
|
1534
|
-
} : void 0,
|
|
1535
|
-
n.$slots.optionTable ? {
|
|
1536
|
-
name: "optionTable",
|
|
1537
|
-
fn: j(() => [k(n.$slots, "optionTable", {}, void 0, !0)]),
|
|
1538
|
-
key: "6"
|
|
1539
|
-
} : void 0,
|
|
1540
|
-
n.$slots.optionLabels ? {
|
|
1541
|
-
name: "optionLabels",
|
|
1542
|
-
fn: j(() => [k(n.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1543
|
-
key: "7"
|
|
1544
|
-
} : void 0,
|
|
1545
|
-
n.$slots.optionFullscreen ? {
|
|
1546
|
-
name: "optionFullscreen",
|
|
1547
|
-
fn: j(({ toggleFullscreen: e, isFullscreen: t }) => [k(n.$slots, "optionFullscreen", w(C({
|
|
1548
|
-
toggleFullscreen: e,
|
|
1549
|
-
isFullscreen: t
|
|
1550
|
-
})), void 0, !0)]),
|
|
1551
|
-
key: "8"
|
|
1552
|
-
} : void 0,
|
|
1553
|
-
n.$slots.optionAnnotator ? {
|
|
1554
|
-
name: "optionAnnotator",
|
|
1555
|
-
fn: j(({ toggleAnnotator: e, isAnnotator: t }) => [k(n.$slots, "optionAnnotator", w(C({
|
|
1556
|
-
toggleAnnotator: e,
|
|
1557
|
-
isAnnotator: t
|
|
1558
|
-
})), void 0, !0)]),
|
|
1559
|
-
key: "9"
|
|
1560
|
-
} : void 0,
|
|
1561
|
-
n.$slots.optionAltCopy ? {
|
|
1562
|
-
name: "optionAltCopy",
|
|
1563
|
-
fn: j(({ altCopy: e }) => [k(n.$slots, "optionAltCopy", w(C({ altCopy: e })), void 0, !0)]),
|
|
1564
|
-
key: "10"
|
|
1565
|
-
} : void 0,
|
|
1566
|
-
n.$slots["custom-menu-before"] ? {
|
|
1567
|
-
name: "custom-menu-before",
|
|
1568
|
-
fn: j(() => [k(n.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1569
|
-
key: "11"
|
|
1570
|
-
} : void 0,
|
|
1571
|
-
n.$slots["custom-menu-after"] ? {
|
|
1572
|
-
name: "custom-menu-after",
|
|
1573
|
-
fn: j(() => [k(n.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1574
|
-
key: "12"
|
|
1575
|
-
} : void 0
|
|
1576
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.callbacks.isTooltip.titles.hasAnnotator.isAnnotation.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : b("", !0),
|
|
1577
|
-
S("div", st, [(E(), x("svg", {
|
|
1578
|
-
ref_key: "svgRef",
|
|
1579
|
-
ref: Sr,
|
|
1580
|
-
xmlns: A(le),
|
|
1581
|
-
"aria-describedby": `chart-instructions-${P.value}`,
|
|
1582
|
-
class: Ge({
|
|
1583
|
-
"vue-data-ui-fullscreen--on": vi.value,
|
|
1584
|
-
"vue-data-ui-fulscreen--off": !vi.value,
|
|
1585
|
-
"vue-data-ui-svg": !0
|
|
1586
|
-
}),
|
|
1587
|
-
viewBox: `0 0 ${H.value.width <= 0 ? 10 : H.value.width} ${H.value.height <= 0 ? 10 : H.value.height}`,
|
|
1588
|
-
style: T(`max-width:100%; overflow: visible; background:transparent;color:${z.value.color};${Dr.value.css}`),
|
|
1589
|
-
tabindex: "0",
|
|
1590
|
-
onFocus: Hi,
|
|
1591
|
-
onBlur: Ui,
|
|
1592
|
-
onKeydown: Wi
|
|
1593
|
-
}, [S("g", {
|
|
1594
|
-
ref_key: "G",
|
|
1595
|
-
ref: Mn,
|
|
1596
|
-
class: "vue-data-ui-g"
|
|
1597
|
-
}, [
|
|
1598
|
-
Ve(A(wn)),
|
|
1599
|
-
n.$slots["chart-background"] ? (E(), x("foreignObject", {
|
|
1600
|
-
key: 0,
|
|
1601
|
-
x: 0,
|
|
1602
|
-
y: 0,
|
|
1603
|
-
width: H.value.width <= 0 ? 10 : H.value.width,
|
|
1604
|
-
height: H.value.height <= 0 ? 10 : H.value.height,
|
|
1605
|
-
style: { pointerEvents: "none" }
|
|
1606
|
-
}, [k(n.$slots, "chart-background", {}, void 0, !0)], 8, lt)) : b("", !0),
|
|
1607
|
-
I.value.type === "classic" && !isNaN(Pr.value / K.value) ? (E(), x("defs", ut, [z.value.useGradient ? (E(), y(ke, {
|
|
1608
|
-
key: 0,
|
|
1609
|
-
t: "radial",
|
|
1610
|
-
id: `gradient_${P.value}`,
|
|
1611
|
-
stops: [
|
|
1612
|
-
[
|
|
1613
|
-
"0%",
|
|
1614
|
-
A(se)(z.value.backgroundColor, 0),
|
|
1615
|
-
0
|
|
1616
|
-
],
|
|
1617
|
-
[
|
|
1618
|
-
`${(1 - Pr.value / K.value) * 100}%`,
|
|
1619
|
-
A(se)("#FFFFFF", 0),
|
|
1620
|
-
0
|
|
1621
|
-
],
|
|
1622
|
-
[
|
|
1623
|
-
`${(1 - Pr.value / K.value / 2) * 100}%`,
|
|
1624
|
-
A(se)("#FFFFFF", z.value.gradientIntensity),
|
|
1625
|
-
1
|
|
1626
|
-
],
|
|
1627
|
-
[
|
|
1628
|
-
"100%",
|
|
1629
|
-
A(se)(z.value.backgroundColor, 0),
|
|
1630
|
-
0
|
|
1631
|
-
]
|
|
1632
|
-
]
|
|
1633
|
-
}, null, 8, ["id", "stops"])) : b("", !0)])) : b("", !0),
|
|
1634
|
-
I.value.type === "polar" ? (E(), x("defs", dt, [(E(!0), x(_, null, O(Y.value, (e, t) => (E(), y(ke, {
|
|
1635
|
-
t: "radial",
|
|
1636
|
-
id: `polar_gradient_${t}_${P.value}`,
|
|
1637
|
-
key: `pg_${t}_${P.value}`,
|
|
1638
|
-
cx: (isNaN(e.middlePoint.x / H.value.width * 100) ? 0 : e.middlePoint.x / H.value.width * 100) + "%",
|
|
1639
|
-
cy: (isNaN(e.middlePoint.y / H.value.height * 100) ? 0 : e.middlePoint.y / H.value.height * 100) + "%",
|
|
1640
|
-
r: "62%",
|
|
1641
|
-
stops: [[
|
|
1642
|
-
"0%",
|
|
1643
|
-
A(o)(q.value[t].color, .05),
|
|
1644
|
-
z.value.gradientIntensity / 100
|
|
1645
|
-
], [
|
|
1646
|
-
"100%",
|
|
1647
|
-
q.value[t].color,
|
|
1648
|
-
1
|
|
1649
|
-
]]
|
|
1650
|
-
}, null, 8, [
|
|
1651
|
-
"id",
|
|
1652
|
-
"cx",
|
|
1653
|
-
"cy",
|
|
1654
|
-
"stops"
|
|
1655
|
-
]))), 128))])) : b("", !0),
|
|
1656
|
-
S("defs", null, [
|
|
1657
|
-
S("filter", {
|
|
1658
|
-
id: `blur_${P.value}`,
|
|
1659
|
-
x: "-50%",
|
|
1660
|
-
y: "-50%",
|
|
1661
|
-
width: "200%",
|
|
1662
|
-
height: "200%"
|
|
1663
|
-
}, [S("feGaussianBlur", {
|
|
1664
|
-
in: "SourceGraphic",
|
|
1665
|
-
stdDeviation: 2,
|
|
1666
|
-
id: `blur_std_${P.value}`
|
|
1667
|
-
}, null, 8, pt), r[5] ||= S("feColorMatrix", {
|
|
1668
|
-
type: "saturate",
|
|
1669
|
-
values: "0"
|
|
1670
|
-
}, null, -1)], 8, ft),
|
|
1671
|
-
S("filter", {
|
|
1672
|
-
id: `shadow_${P.value}`,
|
|
1673
|
-
"color-interpolation-filters": "sRGB"
|
|
1674
|
-
}, [S("feDropShadow", {
|
|
1675
|
-
dx: "0",
|
|
1676
|
-
dy: "0",
|
|
1677
|
-
stdDeviation: "10",
|
|
1678
|
-
"flood-opacity": "0.5",
|
|
1679
|
-
"flood-color": R.value.shadowColor
|
|
1680
|
-
}, null, 8, ht)], 8, mt),
|
|
1681
|
-
S("filter", {
|
|
1682
|
-
id: `drop_shadow_${P.value}`,
|
|
1683
|
-
"color-interpolation-filters": "sRGB",
|
|
1684
|
-
x: "-50%",
|
|
1685
|
-
y: "-50%",
|
|
1686
|
-
width: "200%",
|
|
1687
|
-
height: "200%"
|
|
1688
|
-
}, [S("feDropShadow", {
|
|
1689
|
-
dx: "0",
|
|
1690
|
-
dy: "0",
|
|
1691
|
-
stdDeviation: "3",
|
|
1692
|
-
"flood-opacity": "1",
|
|
1693
|
-
"flood-color": R.value.shadowColor
|
|
1694
|
-
}, null, 8, _t)], 8, gt)
|
|
1695
|
-
]),
|
|
1696
|
-
I.value.type === "classic" ? (E(!0), x(_, { key: 3 }, O(q.value.filter((e) => !e.ghost), (e, t) => (E(), x("g", null, [X(e) && V.value.dataLabels.show ? (E(), x("path", {
|
|
1697
|
-
key: 0,
|
|
1698
|
-
d: A(Z)[t]?.connectorPath || A(re)(e, {
|
|
1699
|
-
x: H.value.width / 2,
|
|
1700
|
-
y: H.value.height / 2
|
|
1701
|
-
}, 16, 16, !1, !1, Pr.value, 12, cr.value.curvedMarkers),
|
|
1702
|
-
stroke: e.color,
|
|
1703
|
-
"stroke-width": "1",
|
|
1704
|
-
"stroke-linecap": "round",
|
|
1705
|
-
"stroke-linejoin": "round",
|
|
1706
|
-
fill: "none",
|
|
1707
|
-
filter: pi(t)
|
|
1708
|
-
}, null, 8, vt)) : b("", !0)]))), 256)) : b("", !0),
|
|
1709
|
-
I.value.type === "polar" ? (E(!0), x(_, { key: 4 }, O(q.value.filter((e) => !e.ghost), (e, t) => (E(), x("g", null, [X(e) && V.value.dataLabels.show ? (E(), x("path", {
|
|
1710
|
-
key: 0,
|
|
1711
|
-
d: `M ${A(g)({
|
|
1712
|
-
initX: Y.value[t].middlePoint.x,
|
|
1713
|
-
initY: Y.value[t].middlePoint.y,
|
|
1714
|
-
offset: 24,
|
|
1715
|
-
centerX: H.value.width / 2,
|
|
1716
|
-
centerY: H.value.height / 2
|
|
1717
|
-
}).x},${A(g)({
|
|
1718
|
-
initX: Y.value[t].middlePoint.x,
|
|
1719
|
-
initY: Y.value[t].middlePoint.y,
|
|
1720
|
-
offset: 24,
|
|
1721
|
-
centerX: H.value.width / 2,
|
|
1722
|
-
centerY: H.value.height / 2
|
|
1723
|
-
}).y} ${Y.value[t].middlePoint.x},${Y.value[t].middlePoint.y}`,
|
|
1724
|
-
stroke: e.color,
|
|
1725
|
-
"stroke-width": "1",
|
|
1726
|
-
"stroke-linecap": "round",
|
|
1727
|
-
"stroke-linejoin": "round",
|
|
1728
|
-
fill: "none",
|
|
1729
|
-
filter: pi(t),
|
|
1730
|
-
style: T({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1731
|
-
}, null, 12, yt)) : b("", !0)]))), 256)) : b("", !0),
|
|
1732
|
-
I.value.type === "classic" && R.value.useShadow ? (E(), x("circle", {
|
|
1733
|
-
key: 5,
|
|
1734
|
-
cx: H.value.width / 2,
|
|
1735
|
-
cy: H.value.height / 2,
|
|
1736
|
-
r: K.value <= 0 ? 10 : K.value,
|
|
1737
|
-
fill: z.value.backgroundColor,
|
|
1738
|
-
filter: `url(#shadow_${P.value})`
|
|
1739
|
-
}, null, 8, bt)) : b("", !0),
|
|
1740
|
-
n.$slots.pattern ? (E(), x("g", xt, [(E(!0), x(_, null, O(e.dataset, (e, t) => (E(), x("defs", { key: `pattern-${e.patternIndex}` }, [k(n.$slots, "pattern", Ue({ ref_for: !0 }, {
|
|
1741
|
-
seriesIndex: t,
|
|
1742
|
-
patternId: `pattern_${P.value}_${t}`
|
|
1743
|
-
}), void 0, !0)]))), 128))])) : b("", !0),
|
|
1744
|
-
Q.value && I.value.type === "classic" ? (E(), x(_, { key: 7 }, [
|
|
1745
|
-
(E(!0), x(_, null, O(J.value, (e, t) => (E(), x("path", {
|
|
1746
|
-
stroke: z.value.backgroundColor,
|
|
1747
|
-
d: e.arcSlice,
|
|
1748
|
-
fill: "#FFFFFF"
|
|
1749
|
-
}, null, 8, St))), 256)),
|
|
1750
|
-
(E(!0), x(_, null, O(J.value, (e, t) => (E(), x("path", {
|
|
1751
|
-
class: "vue-ui-donut-arc-path",
|
|
1752
|
-
d: e.arcSlice,
|
|
1753
|
-
fill: e.color,
|
|
1754
|
-
stroke: R.value.borderColorAuto ? z.value.backgroundColor : R.value.borderColor,
|
|
1755
|
-
"stroke-width": R.value.borderWidth,
|
|
1756
|
-
filter: pi(t)
|
|
1757
|
-
}, null, 8, Ct))), 256)),
|
|
1758
|
-
n.$slots.pattern ? (E(), x("g", wt, [(E(!0), x(_, null, O(J.value, (e, t) => (E(), x("path", {
|
|
1759
|
-
class: "vue-ui-donut-arc-path",
|
|
1760
|
-
d: e.arcSlice,
|
|
1761
|
-
fill: `url(#${e.pattern})`,
|
|
1762
|
-
stroke: R.value.borderColorAuto ? z.value.backgroundColor : R.value.borderColor,
|
|
1763
|
-
"stroke-width": R.value.borderWidth,
|
|
1764
|
-
filter: pi(t)
|
|
1765
|
-
}, null, 8, Tt))), 256))])) : b("", !0)
|
|
1766
|
-
], 64)) : b("", !0),
|
|
1767
|
-
Q.value && I.value.type === "polar" ? (E(), x(_, { key: 8 }, [q.value.length > 1 ? (E(), x("g", Et, [
|
|
1768
|
-
(E(!0), x(_, null, O(J.value, (e, t) => (E(), x("path", {
|
|
1769
|
-
stroke: R.value.borderColorAuto ? z.value.backgroundColor : R.value.borderColor,
|
|
1770
|
-
d: Y.value[t].path,
|
|
1771
|
-
fill: "#FFFFFF",
|
|
1772
|
-
style: T({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1773
|
-
}, null, 12, Dt))), 256)),
|
|
1774
|
-
R.value.useShadow ? (E(), x("g", Ot, [(E(!0), x(_, null, O(J.value, (e, t) => (E(), x("path", {
|
|
1775
|
-
class: "vue-ui-donut-arc-path",
|
|
1776
|
-
d: Y.value[t].path,
|
|
1777
|
-
fill: "transparent",
|
|
1778
|
-
stroke: R.value.borderColorAuto ? z.value.backgroundColor : cr.value.donut.borderColor,
|
|
1779
|
-
"stroke-width": R.value.borderWidth,
|
|
1780
|
-
filter: `url(#drop_shadow_${P.value})`,
|
|
1781
|
-
style: T({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1782
|
-
}, null, 12, kt))), 256))])) : b("", !0),
|
|
1783
|
-
n.$slots.pattern ? (E(), x("g", At, [(E(!0), x(_, null, O(J.value, (e, t) => (E(), x("path", {
|
|
1784
|
-
class: "vue-ui-donut-arc-path",
|
|
1785
|
-
d: Y.value[t].path,
|
|
1786
|
-
fill: `url(#${e.pattern})`,
|
|
1787
|
-
stroke: R.value.borderColorAuto ? z.value.backgroundColor : cr.value.donut.borderColor,
|
|
1788
|
-
"stroke-width": R.value.borderWidth,
|
|
1789
|
-
filter: pi(t),
|
|
1790
|
-
style: T({
|
|
1791
|
-
transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1792
|
-
transformOrigin: "center"
|
|
1793
|
-
})
|
|
1794
|
-
}, null, 12, jt))), 256))])) : b("", !0),
|
|
1795
|
-
(E(!0), x(_, null, O(J.value, (e, t) => (E(), x("path", {
|
|
1796
|
-
class: "vue-ui-donut-arc-path",
|
|
1797
|
-
d: Y.value[t].path,
|
|
1798
|
-
fill: z.value.useGradient ? `url(#polar_gradient_${t}_${P.value})` : e.color,
|
|
1799
|
-
stroke: R.value.borderColorAuto ? z.value.backgroundColor : R.value.borderColor,
|
|
1800
|
-
"stroke-width": R.value.borderWidth,
|
|
1801
|
-
filter: pi(t),
|
|
1802
|
-
style: T({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1803
|
-
}, null, 12, Mt))), 256))
|
|
1804
|
-
])) : (E(), x("g", Nt, [n.$slots.pattern ? (E(), x("circle", {
|
|
1805
|
-
key: 0,
|
|
1806
|
-
cx: H.value.width / 2,
|
|
1807
|
-
cy: H.value.height / 2,
|
|
1808
|
-
r: K.value,
|
|
1809
|
-
fill: `url(#pattern_${P.value}_${q.value[0].patternIndex})`,
|
|
1810
|
-
stroke: z.value.backgroundColor,
|
|
1811
|
-
"stroke-width": R.value.borderWidth
|
|
1812
|
-
}, null, 8, Pt)) : b("", !0), S("circle", {
|
|
1813
|
-
cx: H.value.width / 2,
|
|
1814
|
-
cy: H.value.height / 2,
|
|
1815
|
-
r: K.value,
|
|
1816
|
-
fill: z.value.useGradient ? `url(#polar_gradient_0_${P.value})` : q.value[0].color,
|
|
1817
|
-
stroke: z.value.backgroundColor,
|
|
1818
|
-
"stroke-width": R.value.borderWidth
|
|
1819
|
-
}, null, 8, Ft)]))], 64)) : (E(), x(_, { key: 9 }, [I.value.type === "classic" && !Xr.value ? (E(), x("g", It, [(E(!0), x(_, null, O(Zr.value, (e, t) => (E(), x("path", {
|
|
1820
|
-
class: "vue-ui-donut-arc-path",
|
|
1821
|
-
d: e.arcSlice,
|
|
1822
|
-
fill: e.color,
|
|
1823
|
-
stroke: z.value.backgroundColor,
|
|
1824
|
-
"stroke-width": R.value.borderWidth
|
|
1825
|
-
}, null, 8, Lt))), 256))])) : b("", !0), S("circle", {
|
|
1826
|
-
cx: H.value.width / 2,
|
|
1827
|
-
cy: H.value.height / 2,
|
|
1828
|
-
r: K.value <= 0 ? 10 : K.value,
|
|
1829
|
-
fill: "transparent",
|
|
1830
|
-
stroke: z.value.backgroundColor
|
|
1831
|
-
}, null, 8, Rt)], 64)),
|
|
1832
|
-
z.value.useGradient && I.value.type === "classic" ? (E(), x("circle", {
|
|
1833
|
-
key: 10,
|
|
1834
|
-
cx: H.value.width / 2,
|
|
1835
|
-
cy: H.value.height / 2,
|
|
1836
|
-
r: K.value <= 0 ? 10 : K.value,
|
|
1837
|
-
fill: `url(#gradient_${P.value})`
|
|
1838
|
-
}, null, 8, zt)) : b("", !0),
|
|
1839
|
-
S("circle", {
|
|
1840
|
-
ref_key: "circle_hollow",
|
|
1841
|
-
ref: Pn,
|
|
1842
|
-
style: { pointerEvents: "none" },
|
|
1843
|
-
fill: "none",
|
|
1844
|
-
cx: H.value.width / 2,
|
|
1845
|
-
cy: H.value.height / 2,
|
|
1846
|
-
r: Math.max(.1, Pr.value * 1.7)
|
|
1847
|
-
}, null, 8, Bt),
|
|
1848
|
-
Q.value ? (E(), x(_, { key: 11 }, [q.value.length > 1 || I.value.type === "classic" ? (E(), x("g", Vt, [(E(!0), x(_, null, O(q.value.filter((e) => !e.ghost), (e, t) => (E(), x("path", {
|
|
1849
|
-
d: I.value.type === "classic" ? e.arcSlice : Y.value[t].path,
|
|
1850
|
-
stroke: R.value.borderColorAuto ? z.value.backgroundColor : R.value.borderColor,
|
|
1851
|
-
fill: F.value === t ? R.value.selectedColor : "transparent",
|
|
1852
|
-
onMouseenter: (n) => li({
|
|
1853
|
-
datapoint: e,
|
|
1854
|
-
relativeIndex: t,
|
|
1855
|
-
seriesIndex: e.seriesIndex,
|
|
1856
|
-
show: !0
|
|
1857
|
-
}),
|
|
1858
|
-
onMouseleave: (t) => ci({
|
|
1859
|
-
datapoint: e,
|
|
1860
|
-
seriesIndex: e.seriesIndex
|
|
1861
|
-
}),
|
|
1862
|
-
onClick: (n) => $(e, t)
|
|
1863
|
-
}, null, 40, Ht))), 256))])) : (E(), x("g", Ut, [S("circle", {
|
|
1864
|
-
cx: H.value.width / 2,
|
|
1865
|
-
cy: H.value.height / 2,
|
|
1866
|
-
r: K.value,
|
|
1867
|
-
fill: "transparent",
|
|
1868
|
-
onMouseenter: r[0] ||= (e) => li({
|
|
1869
|
-
datapoint: q.value[0],
|
|
1870
|
-
relativeIndex: 0,
|
|
1871
|
-
seriesIndex: q.value[0].seriesIndex,
|
|
1872
|
-
show: !0
|
|
1873
|
-
}),
|
|
1874
|
-
onMouseleave: r[1] ||= (e) => ci({
|
|
1875
|
-
datapoint: q.value[0],
|
|
1876
|
-
seriesIndex: q.value[0].seriesIndex
|
|
1877
|
-
}),
|
|
1878
|
-
onClick: r[2] ||= (e) => $(q.value[0], n.i)
|
|
1879
|
-
}, null, 40, Wt)]))], 64)) : b("", !0),
|
|
1880
|
-
I.value.type === "classic" ? (E(), x("g", {
|
|
1881
|
-
key: 12,
|
|
1882
|
-
ref_key: "G_hollow",
|
|
1883
|
-
ref: Nn,
|
|
1884
|
-
class: "vue-data-ui-donut-hollow-labels"
|
|
1885
|
-
}, [
|
|
1886
|
-
L.value.hollow.total.show ? (E(), x("text", {
|
|
1887
|
-
key: 0,
|
|
1888
|
-
"text-anchor": "middle",
|
|
1889
|
-
x: H.value.width / 2,
|
|
1890
|
-
y: H.value.height / 2 - (L.value.hollow.average.show ? L.value.hollow.total.fontSize : 0) + L.value.hollow.total.offsetY,
|
|
1891
|
-
fill: L.value.hollow.total.color,
|
|
1892
|
-
"font-size": L.value.hollow.total.fontSize,
|
|
1893
|
-
style: T(`font-weight:${L.value.hollow.total.bold ? "bold" : ""}`)
|
|
1894
|
-
}, Xe(L.value.hollow.total.text), 13, Gt)) : b("", !0),
|
|
1895
|
-
L.value.hollow.total.show ? (E(), x("text", {
|
|
1896
|
-
key: 1,
|
|
1897
|
-
"text-anchor": "middle",
|
|
1898
|
-
x: H.value.width / 2,
|
|
1899
|
-
y: H.value.height / 2 + L.value.hollow.total.fontSize - (L.value.hollow.average.show ? L.value.hollow.total.fontSize : 0) + L.value.hollow.total.value.offsetY,
|
|
1900
|
-
fill: L.value.hollow.total.value.color,
|
|
1901
|
-
"font-size": L.value.hollow.total.value.fontSize,
|
|
1902
|
-
style: T(`font-weight:${L.value.hollow.total.value.bold ? "bold" : ""}`)
|
|
1903
|
-
}, Xe(A(p)(L.value.hollow.total.value.formatter, Q.value, A(t)({
|
|
1904
|
-
p: L.value.hollow.total.value.prefix,
|
|
1905
|
-
v: Q.value,
|
|
1906
|
-
s: L.value.hollow.total.value.suffix
|
|
1907
|
-
}))), 13, Kt)) : b("", !0),
|
|
1908
|
-
L.value.hollow.average.show ? (E(), x("text", {
|
|
1909
|
-
key: 2,
|
|
1910
|
-
"text-anchor": "middle",
|
|
1911
|
-
x: H.value.width / 2,
|
|
1912
|
-
y: H.value.height / 2 + (L.value.hollow.total.show ? L.value.hollow.average.fontSize : 0) + L.value.hollow.average.offsetY,
|
|
1913
|
-
fill: L.value.hollow.average.color,
|
|
1914
|
-
"font-size": L.value.hollow.average.fontSize,
|
|
1915
|
-
style: T(`font-weight:${L.value.hollow.average.bold ? "bold" : ""}`)
|
|
1916
|
-
}, Xe(L.value.hollow.average.text), 13, qt)) : b("", !0),
|
|
1917
|
-
L.value.hollow.average.show ? (E(), x("text", {
|
|
1918
|
-
key: 3,
|
|
1919
|
-
"text-anchor": "middle",
|
|
1920
|
-
x: H.value.width / 2,
|
|
1921
|
-
y: H.value.height / 2 + (L.value.hollow.total.show ? L.value.hollow.average.fontSize : 0) + L.value.hollow.average.fontSize + L.value.hollow.average.value.offsetY,
|
|
1922
|
-
fill: L.value.hollow.average.value.color,
|
|
1923
|
-
"font-size": L.value.hollow.average.value.fontSize,
|
|
1924
|
-
style: T(`font-weight:${L.value.hollow.average.value.bold ? "bold" : ""}`)
|
|
1925
|
-
}, Xe(Lr.value || B.value ? "--" : A(p)(L.value.hollow.average.value.formatter, A(de)(ii.value), A(t)({
|
|
1926
|
-
p: L.value.hollow.average.value.prefix,
|
|
1927
|
-
v: A(de)(ii.value),
|
|
1928
|
-
s: L.value.hollow.average.value.suffix,
|
|
1929
|
-
r: L.value.hollow.average.value.rounding
|
|
1930
|
-
}))), 13, Jt)) : b("", !0)
|
|
1931
|
-
], 512)) : b("", !0),
|
|
1932
|
-
(E(!0), x(_, null, O(J.value.filter((e) => !e.ghost), (e, t) => (E(), x("g", {
|
|
1933
|
-
filter: pi(t),
|
|
1934
|
-
key: e.seriesIndex,
|
|
1935
|
-
opacity: mi(e)
|
|
1936
|
-
}, [L.value.dataLabels.useLabelSlots ? (E(), x("g", Xt, [(E(), x("foreignObject", {
|
|
1937
|
-
x: A(f)(e, !0).anchor === "end" ? A(f)(e).x - 120 : A(f)(e, !0).anchor === "middle" ? A(f)(e).x - 60 : A(f)(e).x,
|
|
1938
|
-
y: A(h)(e) - (bi.value ? 20 : 0),
|
|
1939
|
-
width: "120",
|
|
1940
|
-
height: "60",
|
|
1941
|
-
style: { overflow: "visible" }
|
|
1942
|
-
}, [S("div", null, [k(n.$slots, "dataLabel", Ue({ ref_for: !0 }, {
|
|
1943
|
-
datapoint: e,
|
|
1944
|
-
isBlur: !I.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === t,
|
|
1945
|
-
isSafari: bi.value,
|
|
1946
|
-
isVisible: X(e) && V.value.dataLabels.show,
|
|
1947
|
-
textAlign: A(f)(e, !0, 16, !0).anchor,
|
|
1948
|
-
flexAlign: A(f)(e, !0, 16).anchor,
|
|
1949
|
-
percentage: ti(e, J.value)
|
|
1950
|
-
}), void 0, !0)])], 8, Zt))])) : (E(), x("g", Qt, [I.value.type === "classic" ? (E(), x(_, { key: 0 }, [X(e) && V.value.dataLabels.show ? (E(), x("circle", {
|
|
1951
|
-
key: 0,
|
|
1952
|
-
cx: A(Z)[t]?.markerX ?? A(f)(e).x,
|
|
1953
|
-
cy: A(Z)[t]?.markerY ?? A(h)(e) - 3.5,
|
|
1954
|
-
fill: e.color,
|
|
1955
|
-
stroke: z.value.backgroundColor,
|
|
1956
|
-
"stroke-width": 1,
|
|
1957
|
-
r: 3,
|
|
1958
|
-
filter: !I.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === t ? "" : `url(#blur_${P.value})`,
|
|
1959
|
-
onClick: (n) => $(e, t),
|
|
1960
|
-
onMouseenter: (n) => li({
|
|
1961
|
-
datapoint: e,
|
|
1962
|
-
relativeIndex: t,
|
|
1963
|
-
seriesIndex: e.seriesIndex,
|
|
1964
|
-
show: !0
|
|
1965
|
-
}),
|
|
1966
|
-
onMouseleave: (t) => ci({
|
|
1967
|
-
datapoint: e,
|
|
1968
|
-
seriesIndex: e.seriesIndex
|
|
1969
|
-
})
|
|
1970
|
-
}, null, 40, $t)) : b("", !0), L.value.dataLabels.oneLine || A(Z)[t] ? tt((E(), x("text", {
|
|
1971
|
-
key: 1,
|
|
1972
|
-
class: "vue-data-ui-datalabel-inline",
|
|
1973
|
-
"text-anchor": A(Z)[t]?.textAnchor || A(f)(e, !0, 12).anchor,
|
|
1974
|
-
x: A(Z)[t]?.labelX ?? A(f)(e, !0, 12).x,
|
|
1975
|
-
y: A(Z)[t]?.labelY ?? A(h)(e),
|
|
1976
|
-
onClick: (n) => $(e, t),
|
|
1977
|
-
onMouseenter: (n) => li({
|
|
1978
|
-
datapoint: e,
|
|
1979
|
-
relativeIndex: t,
|
|
1980
|
-
seriesIndex: e.seriesIndex,
|
|
1981
|
-
show: !0
|
|
1982
|
-
}),
|
|
1983
|
-
onMouseleave: (t) => ci({
|
|
1984
|
-
datapoint: e,
|
|
1985
|
-
seriesIndex: e.seriesIndex
|
|
1986
|
-
}),
|
|
1987
|
-
innerHTML: di(e, t, !!A(Z)[t])
|
|
1988
|
-
}, null, 40, en)), [[$e, X(e) && V.value.dataLabels.show]]) : (E(), x(_, { key: 2 }, [tt(S("text", {
|
|
1989
|
-
class: "vue-data-ui-datalabel-value",
|
|
1990
|
-
"text-anchor": A(Z)[t]?.textAnchor || A(f)(e, !0, 12).anchor,
|
|
1991
|
-
x: A(Z)[t]?.labelX ?? A(f)(e, !0, 12).x,
|
|
1992
|
-
y: A(Z)[t]?.labelY ?? A(h)(e),
|
|
1993
|
-
fill: L.value.percentage.color,
|
|
1994
|
-
"font-size": Zn.value + "px",
|
|
1995
|
-
style: T(`font-weight:${L.value.percentage.bold ? "bold" : ""}`),
|
|
1996
|
-
onClick: (n) => $(e, t),
|
|
1997
|
-
onMouseenter: (n) => li({
|
|
1998
|
-
datapoint: e,
|
|
1999
|
-
relativeIndex: t,
|
|
2000
|
-
seriesIndex: e.seriesIndex,
|
|
2001
|
-
show: !0
|
|
2002
|
-
}),
|
|
2003
|
-
onMouseleave: (t) => ci({
|
|
2004
|
-
datapoint: e,
|
|
2005
|
-
seriesIndex: e.seriesIndex
|
|
2006
|
-
})
|
|
2007
|
-
}, Xe(Ci(e)), 45, tn), [[$e, X(e) && V.value.dataLabels.show]]), tt(S("text", {
|
|
2008
|
-
class: "vue-data-ui-datalabel-name",
|
|
2009
|
-
"text-anchor": A(Z)[t]?.textAnchor || A(f)(e).anchor,
|
|
2010
|
-
x: A(Z)[t]?.labelX ?? A(f)(e, !0, 12).x,
|
|
2011
|
-
y: (A(Z)[t]?.labelY ?? A(h)(e)) + N.value * 1.2,
|
|
2012
|
-
fill: L.value.name.color,
|
|
2013
|
-
"font-size": N.value + "px",
|
|
2014
|
-
style: T(`font-weight:${L.value.name.bold ? "bold" : ""}`),
|
|
2015
|
-
onClick: (n) => $(e, t),
|
|
2016
|
-
onMouseenter: (n) => li({
|
|
2017
|
-
datapoint: e,
|
|
2018
|
-
relativeIndex: t,
|
|
2019
|
-
seriesIndex: e.seriesIndex,
|
|
2020
|
-
show: !0
|
|
2021
|
-
}),
|
|
2022
|
-
onMouseleave: (t) => ci({
|
|
2023
|
-
datapoint: e,
|
|
2024
|
-
seriesIndex: e.seriesIndex
|
|
2025
|
-
}),
|
|
2026
|
-
innerHTML: A(ee)({
|
|
2027
|
-
content: e.name,
|
|
2028
|
-
fontSize: N.value,
|
|
2029
|
-
fill: L.value.name.color,
|
|
2030
|
-
x: A(Z)[t]?.labelX ?? A(f)(e, !0, 12).x,
|
|
2031
|
-
y: (A(Z)[t]?.labelY ?? A(h)(e)) + N.value
|
|
2032
|
-
})
|
|
2033
|
-
}, null, 44, nn), [[$e, X(e, !0, 12) && V.value.dataLabels.show && L.value.name.show]])], 64))], 64)) : b("", !0), I.value.type === "polar" ? (E(), x(_, { key: 1 }, [X(e) && V.value.dataLabels.show ? (E(), x("circle", {
|
|
2034
|
-
key: 0,
|
|
2035
|
-
cx: A(g)({
|
|
2036
|
-
initX: Y.value[t].middlePoint.x,
|
|
2037
|
-
initY: Y.value[t].middlePoint.y,
|
|
2038
|
-
offset: 24,
|
|
2039
|
-
centerX: H.value.width / 2,
|
|
2040
|
-
centerY: H.value.height / 2
|
|
2041
|
-
}).x,
|
|
2042
|
-
cy: A(g)({
|
|
2043
|
-
initX: Y.value[t].middlePoint.x,
|
|
2044
|
-
initY: Y.value[t].middlePoint.y,
|
|
2045
|
-
offset: 24,
|
|
2046
|
-
centerX: H.value.width / 2,
|
|
2047
|
-
centerY: H.value.height / 2
|
|
2048
|
-
}).y,
|
|
2049
|
-
fill: e.color,
|
|
2050
|
-
stroke: z.value.backgroundColor,
|
|
2051
|
-
"stroke-width": 1,
|
|
2052
|
-
r: 3,
|
|
2053
|
-
filter: !I.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === t ? "" : `url(#blur_${P.value})`,
|
|
2054
|
-
onClick: (n) => $(e, t),
|
|
2055
|
-
onMouseenter: (n) => li({
|
|
2056
|
-
datapoint: e,
|
|
2057
|
-
relativeIndex: t,
|
|
2058
|
-
seriesIndex: e.seriesIndex,
|
|
2059
|
-
show: !0
|
|
2060
|
-
}),
|
|
2061
|
-
onMouseleave: (t) => ci({
|
|
2062
|
-
datapoint: e,
|
|
2063
|
-
seriesIndex: e.seriesIndex
|
|
2064
|
-
}),
|
|
2065
|
-
style: T({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
2066
|
-
}, null, 44, rn)) : b("", !0), L.value.dataLabels.oneLine ? tt((E(), x("text", {
|
|
2067
|
-
key: 1,
|
|
2068
|
-
class: "vue-data-ui-datalabel-inline",
|
|
2069
|
-
"text-anchor": Qr(Y.value[t].middlePoint),
|
|
2070
|
-
x: A(g)({
|
|
2071
|
-
initX: Y.value[t].middlePoint.x,
|
|
2072
|
-
initY: Y.value[t].middlePoint.y,
|
|
2073
|
-
offset: 42,
|
|
2074
|
-
centerX: H.value.width / 2,
|
|
2075
|
-
centerY: H.value.height / 2
|
|
2076
|
-
}).x,
|
|
2077
|
-
y: A(g)({
|
|
2078
|
-
initX: Y.value[t].middlePoint.x,
|
|
2079
|
-
initY: Y.value[t].middlePoint.y,
|
|
2080
|
-
offset: 42,
|
|
2081
|
-
centerX: H.value.width / 2,
|
|
2082
|
-
centerY: H.value.height / 2
|
|
2083
|
-
}).y,
|
|
2084
|
-
style: T({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` }),
|
|
2085
|
-
onClick: (n) => $(e, t),
|
|
2086
|
-
onMouseenter: (n) => li({
|
|
2087
|
-
datapoint: e,
|
|
2088
|
-
relativeIndex: t,
|
|
2089
|
-
seriesIndex: e.seriesIndex,
|
|
2090
|
-
show: !0
|
|
2091
|
-
}),
|
|
2092
|
-
onMouseleave: (t) => ci({
|
|
2093
|
-
datapoint: e,
|
|
2094
|
-
seriesIndex: e.seriesIndex
|
|
2095
|
-
}),
|
|
2096
|
-
innerHTML: fi(e, t)
|
|
2097
|
-
}, null, 44, an)), [[$e, X(e) && V.value.dataLabels.show]]) : (E(), x(_, { key: 2 }, [X(e) && V.value.dataLabels.show ? (E(), x("text", {
|
|
2098
|
-
key: 0,
|
|
2099
|
-
class: "vue-data-ui-datalabel-value",
|
|
2100
|
-
"text-anchor": Qr(Y.value[t].middlePoint),
|
|
2101
|
-
x: A(g)({
|
|
2102
|
-
initX: Y.value[t].middlePoint.x,
|
|
2103
|
-
initY: Y.value[t].middlePoint.y,
|
|
2104
|
-
offset: 42,
|
|
2105
|
-
centerX: H.value.width / 2,
|
|
2106
|
-
centerY: H.value.height / 2
|
|
2107
|
-
}).x,
|
|
2108
|
-
y: A(g)({
|
|
2109
|
-
initX: Y.value[t].middlePoint.x,
|
|
2110
|
-
initY: Y.value[t].middlePoint.y,
|
|
2111
|
-
offset: 42,
|
|
2112
|
-
centerX: H.value.width / 2,
|
|
2113
|
-
centerY: H.value.height / 2
|
|
2114
|
-
}).y,
|
|
2115
|
-
fill: L.value.percentage.color,
|
|
2116
|
-
"font-size": Zn.value,
|
|
2117
|
-
style: T({
|
|
2118
|
-
transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
2119
|
-
fontWeight: L.value.percentage.bold ? "bold" : "normal"
|
|
2120
|
-
}),
|
|
2121
|
-
onClick: (n) => $(e, t),
|
|
2122
|
-
onMouseenter: (n) => li({
|
|
2123
|
-
datapoint: e,
|
|
2124
|
-
relativeIndex: t,
|
|
2125
|
-
seriesIndex: e.seriesIndex,
|
|
2126
|
-
show: !0
|
|
2127
|
-
}),
|
|
2128
|
-
onMouseleave: (t) => ci({
|
|
2129
|
-
datapoint: e,
|
|
2130
|
-
seriesIndex: e.seriesIndex
|
|
2131
|
-
})
|
|
2132
|
-
}, Xe(Ci(e)), 45, on)) : b("", !0), X(e, !0, 12) && V.value.dataLabels.show && L.value.name.show ? (E(), x("text", {
|
|
2133
|
-
key: 1,
|
|
2134
|
-
class: "vue-data-ui-datalabel-name",
|
|
2135
|
-
"text-anchor": Qr(Y.value[t].middlePoint),
|
|
2136
|
-
x: A(g)({
|
|
2137
|
-
initX: Y.value[t].middlePoint.x,
|
|
2138
|
-
initY: Y.value[t].middlePoint.y,
|
|
2139
|
-
offset: 42,
|
|
2140
|
-
centerX: H.value.width / 2,
|
|
2141
|
-
centerY: H.value.height / 2
|
|
2142
|
-
}).x,
|
|
2143
|
-
y: A(g)({
|
|
2144
|
-
initX: Y.value[t].middlePoint.x,
|
|
2145
|
-
initY: Y.value[t].middlePoint.y,
|
|
2146
|
-
offset: 42,
|
|
2147
|
-
centerX: H.value.width / 2,
|
|
2148
|
-
centerY: H.value.height / 2
|
|
2149
|
-
}).y + N.value * 1.2,
|
|
2150
|
-
fill: L.value.name.color,
|
|
2151
|
-
"font-size": N.value,
|
|
2152
|
-
style: T({
|
|
2153
|
-
transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
2154
|
-
fontWeight: L.value.name.bold ? "bold" : "normal"
|
|
2155
|
-
}),
|
|
2156
|
-
onClick: (n) => $(e, t),
|
|
2157
|
-
onMouseenter: (n) => li({
|
|
2158
|
-
datapoint: e,
|
|
2159
|
-
relativeIndex: t,
|
|
2160
|
-
seriesIndex: e.seriesIndex,
|
|
2161
|
-
show: !0
|
|
2162
|
-
}),
|
|
2163
|
-
onMouseleave: (t) => ci({
|
|
2164
|
-
datapoint: e,
|
|
2165
|
-
seriesIndex: e.seriesIndex
|
|
2166
|
-
}),
|
|
2167
|
-
innerHTML: A(ee)({
|
|
2168
|
-
content: e.name,
|
|
2169
|
-
fontSize: N.value,
|
|
2170
|
-
fill: L.value.name.color,
|
|
2171
|
-
x: A(g)({
|
|
2172
|
-
initX: Y.value[t].middlePoint.x,
|
|
2173
|
-
initY: Y.value[t].middlePoint.y,
|
|
2174
|
-
offset: 42,
|
|
2175
|
-
centerX: H.value.width / 2,
|
|
2176
|
-
centerY: H.value.height / 2
|
|
2177
|
-
}).x,
|
|
2178
|
-
y: A(g)({
|
|
2179
|
-
initX: Y.value[t].middlePoint.x,
|
|
2180
|
-
initY: Y.value[t].middlePoint.y,
|
|
2181
|
-
offset: 42,
|
|
2182
|
-
centerX: H.value.width / 2,
|
|
2183
|
-
centerY: H.value.height / 2
|
|
2184
|
-
}).y + N.value * 1.2
|
|
2185
|
-
})
|
|
2186
|
-
}, null, 44, sn)) : b("", !0)], 64))], 64)) : b("", !0)])), V.value.dataLabels.show && z.value.comments.show && e.comment ? (E(), x("g", cn, [X(e) && I.value.type === "classic" ? (E(), x("foreignObject", {
|
|
2187
|
-
key: 0,
|
|
2188
|
-
x: z.value.comments.offsetX + (A(f)(e, !0).anchor === "end" ? A(f)(e).x - z.value.comments.width : A(f)(e, !0).anchor === "middle" ? A(f)(e).x - z.value.comments.width / 2 : A(f)(e).x),
|
|
2189
|
-
y: A(h)(e) + 24 + z.value.comments.offsetY,
|
|
2190
|
-
width: z.value.comments.width,
|
|
2191
|
-
height: "200",
|
|
2192
|
-
style: {
|
|
2193
|
-
overflow: "visible",
|
|
2194
|
-
"pointer-events": "none"
|
|
2195
|
-
}
|
|
2196
|
-
}, [S("div", null, [k(n.$slots, "plot-comment", { plot: {
|
|
2197
|
-
...e,
|
|
2198
|
-
textAlign: A(f)(e, !0, 16, !0).anchor,
|
|
2199
|
-
flexAlign: A(f)(e, !0, 16).anchor,
|
|
2200
|
-
isFirstLoad: B.value
|
|
2201
|
-
} }, void 0, !0)])], 8, ln)) : b("", !0), X(e) && I.value.type === "polar" ? (E(), x("foreignObject", {
|
|
2202
|
-
key: 1,
|
|
2203
|
-
x: z.value.comments.offsetX + (Qr(Y.value[t].middlePoint) === "end" ? A(g)({
|
|
2204
|
-
initX: Y.value[t].middlePoint.x,
|
|
2205
|
-
initY: Y.value[t].middlePoint.y,
|
|
2206
|
-
offset: 42,
|
|
2207
|
-
centerX: H.value.width / 2,
|
|
2208
|
-
centerY: H.value.height / 2
|
|
2209
|
-
}).x - z.value.comments.width : Qr(Y.value[t].middlePoint) === "middle" ? A(g)({
|
|
2210
|
-
initX: Y.value[t].middlePoint.x,
|
|
2211
|
-
initY: Y.value[t].middlePoint.y,
|
|
2212
|
-
offset: 42,
|
|
2213
|
-
centerX: H.value.width / 2,
|
|
2214
|
-
centerY: H.value.height / 2
|
|
2215
|
-
}).x - z.value.comments.width / 2 : A(g)({
|
|
2216
|
-
initX: Y.value[t].middlePoint.x,
|
|
2217
|
-
initY: Y.value[t].middlePoint.y,
|
|
2218
|
-
offset: 42,
|
|
2219
|
-
centerX: H.value.width / 2,
|
|
2220
|
-
centerY: H.value.height / 2
|
|
2221
|
-
}).x),
|
|
2222
|
-
y: $r(Y.value[t]) + z.value.comments.offsetY,
|
|
2223
|
-
width: z.value.comments.width,
|
|
2224
|
-
height: "200",
|
|
2225
|
-
style: T({
|
|
2226
|
-
transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
2227
|
-
overflow: "visible",
|
|
2228
|
-
pointerEvents: "none"
|
|
2229
|
-
})
|
|
2230
|
-
}, [S("div", null, [k(n.$slots, "plot-comment", { plot: {
|
|
2231
|
-
...e,
|
|
2232
|
-
textAlign: Qr(Y.value[t].middlePoint),
|
|
2233
|
-
flexAlign: Qr(Y.value[t].middlePoint),
|
|
2234
|
-
isFirstLoad: B.value
|
|
2235
|
-
} }, void 0, !0)])], 12, un)) : b("", !0)])) : b("", !0)], 8, Yt))), 128)),
|
|
2236
|
-
k(n.$slots, "svg", { svg: {
|
|
2237
|
-
...H.value,
|
|
2238
|
-
datapoints: q.value,
|
|
2239
|
-
isPrintingImg: A(Or) || A(kr) || A(Li),
|
|
2240
|
-
isPrintingSvg: A(Ri)
|
|
2241
|
-
} }, void 0, !0)
|
|
2242
|
-
], 512)], 46, ct)), n.$slots.hint ? (E(), x("div", dn, [k(n.$slots, "hint", w(C({
|
|
2243
|
-
hint: I.value.a11y.translations.keyboardNavigation,
|
|
2244
|
-
isVisible: Xn.value
|
|
2245
|
-
})), void 0, !0)])) : b("", !0)]),
|
|
2246
|
-
n.$slots.watermark ? (E(), x("div", fn, [k(n.$slots, "watermark", w(C({ isPrinting: A(Or) || A(kr) || A(Li) || A(Ri) })), void 0, !0)])) : b("", !0),
|
|
2247
|
-
S("div", { id: `legend-bottom-${P.value}` }, null, 8, pn),
|
|
2248
|
-
Wn.value && (z.value.legend.show || n.$slots.legend) ? (E(), y(Re, {
|
|
2249
|
-
key: 6,
|
|
2250
|
-
to: z.value.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
|
|
2251
|
-
}, [S("div", {
|
|
2252
|
-
ref_key: "chartLegend",
|
|
2253
|
-
ref: In
|
|
2254
|
-
}, [k(n.$slots, "legend", { legend: Jr.value }, () => [z.value.legend.show ? (E(), y(Le, {
|
|
2255
|
-
key: `legend_${Un.value}`,
|
|
2256
|
-
legendSet: Jr.value,
|
|
2257
|
-
config: Yr.value,
|
|
2258
|
-
onClickMarker: r[3] ||= ({ i: e }) => Hr(e),
|
|
2259
|
-
isCursorPointer: lr.value
|
|
2260
|
-
}, ze({
|
|
2261
|
-
item: j(({ legend: e, index: t }) => [S("div", {
|
|
2262
|
-
style: T(`opacity:${G.value.includes(t) ? .5 : 1}`),
|
|
2263
|
-
onClick: (t) => e.segregate()
|
|
2264
|
-
}, Xe(e.display), 13, mn)]),
|
|
2265
|
-
legendToggle: j(() => [Jr.value.length > 2 && z.value.legend.selectAllToggle.show && !A(dr) ? (E(), y(Ae, {
|
|
2266
|
-
key: 0,
|
|
2267
|
-
backgroundColor: z.value.legend.selectAllToggle.backgroundColor,
|
|
2268
|
-
color: z.value.legend.selectAllToggle.color,
|
|
2269
|
-
fontSize: z.value.legend.fontSize,
|
|
2270
|
-
checked: G.value.length > 0,
|
|
2271
|
-
isCursorPointer: lr.value,
|
|
2272
|
-
onToggle: Vr
|
|
2273
|
-
}, null, 8, [
|
|
2274
|
-
"backgroundColor",
|
|
2275
|
-
"color",
|
|
2276
|
-
"fontSize",
|
|
2277
|
-
"checked",
|
|
2278
|
-
"isCursorPointer"
|
|
2279
|
-
])) : b("", !0)]),
|
|
2280
|
-
_: 2
|
|
2281
|
-
}, [n.$slots.pattern ? {
|
|
2282
|
-
name: "legend-pattern",
|
|
2283
|
-
fn: j(({ legend: e, index: t }) => [Ve(Te, {
|
|
2284
|
-
shape: e.shape,
|
|
2285
|
-
radius: 30,
|
|
2286
|
-
stroke: "none",
|
|
2287
|
-
plot: {
|
|
2288
|
-
x: 30,
|
|
2289
|
-
y: 30
|
|
2290
|
-
},
|
|
2291
|
-
fill: `url(#pattern_${P.value}_${t})`
|
|
2292
|
-
}, null, 8, ["shape", "fill"])]),
|
|
2293
|
-
key: "0"
|
|
2294
|
-
} : void 0]), 1032, [
|
|
2295
|
-
"legendSet",
|
|
2296
|
-
"config",
|
|
2297
|
-
"isCursorPointer"
|
|
2298
|
-
])) : b("", !0)], !0)], 512)], 8, ["to"])) : b("", !0),
|
|
2299
|
-
n.$slots.source ? (E(), x("div", {
|
|
2300
|
-
key: 7,
|
|
2301
|
-
ref_key: "source",
|
|
2302
|
-
ref: zn,
|
|
2303
|
-
dir: "auto"
|
|
2304
|
-
}, [k(n.$slots, "source", {}, void 0, !0)], 512)) : b("", !0),
|
|
2305
|
-
n.$slots.hollow ? (E(), x("div", hn, [k(n.$slots, "hollow", w(C({
|
|
2306
|
-
total: Q.value,
|
|
2307
|
-
average: ii.value,
|
|
2308
|
-
dataset: U.value,
|
|
2309
|
-
...H.value
|
|
2310
|
-
})), void 0, !0)])) : b("", !0),
|
|
2311
|
-
Ve(A(vn), {
|
|
2312
|
-
teleportTo: z.value.tooltip.teleportTo,
|
|
2313
|
-
show: V.value.showTooltip && ir.value,
|
|
2314
|
-
backgroundColor: z.value.tooltip.backgroundColor,
|
|
2315
|
-
color: z.value.tooltip.color,
|
|
2316
|
-
fontSize: z.value.tooltip.fontSize,
|
|
2317
|
-
borderRadius: z.value.tooltip.borderRadius,
|
|
2318
|
-
borderColor: z.value.tooltip.borderColor,
|
|
2319
|
-
borderWidth: z.value.tooltip.borderWidth,
|
|
2320
|
-
backgroundOpacity: z.value.tooltip.backgroundOpacity,
|
|
2321
|
-
position: z.value.tooltip.position,
|
|
2322
|
-
offsetX: z.value.tooltip.offsetX,
|
|
2323
|
-
offsetY: z.value.tooltip.offsetY,
|
|
2324
|
-
parent: jn.value,
|
|
2325
|
-
content: ar.value,
|
|
2326
|
-
isCustom: si.value,
|
|
2327
|
-
isFullscreen: vi.value,
|
|
2328
|
-
smooth: z.value.tooltip.smooth,
|
|
2329
|
-
backdropFilter: z.value.tooltip.backdropFilter,
|
|
2330
|
-
smoothForce: z.value.tooltip.smoothForce,
|
|
2331
|
-
smoothSnapThreshold: z.value.tooltip.smoothSnapThrehsold,
|
|
2332
|
-
isA11yMode: Yn.value === "keyboard",
|
|
2333
|
-
a11yPosition: Jn.value
|
|
2334
|
-
}, {
|
|
2335
|
-
"tooltip-before": j(() => [k(n.$slots, "tooltip-before", w(C({ ...oi.value })), void 0, !0)]),
|
|
2336
|
-
tooltip: j(() => [k(n.$slots, "tooltip", w(C({ ...oi.value })), void 0, !0)]),
|
|
2337
|
-
"tooltip-after": j(() => [k(n.$slots, "tooltip-after", w(C({ ...oi.value })), void 0, !0)]),
|
|
2338
|
-
_: 3
|
|
2339
|
-
}, 8, [
|
|
2340
|
-
"teleportTo",
|
|
2341
|
-
"show",
|
|
2342
|
-
"backgroundColor",
|
|
2343
|
-
"color",
|
|
2344
|
-
"fontSize",
|
|
2345
|
-
"borderRadius",
|
|
2346
|
-
"borderColor",
|
|
2347
|
-
"borderWidth",
|
|
2348
|
-
"backgroundOpacity",
|
|
2349
|
-
"position",
|
|
2350
|
-
"offsetX",
|
|
2351
|
-
"offsetY",
|
|
2352
|
-
"parent",
|
|
2353
|
-
"content",
|
|
2354
|
-
"isCustom",
|
|
2355
|
-
"isFullscreen",
|
|
2356
|
-
"smooth",
|
|
2357
|
-
"backdropFilter",
|
|
2358
|
-
"smoothForce",
|
|
2359
|
-
"smoothSnapThreshold",
|
|
2360
|
-
"isA11yMode",
|
|
2361
|
-
"a11yPosition"
|
|
2362
|
-
]),
|
|
2363
|
-
An.value && I.value.userOptions.buttons.table ? (E(), y(Je(ji.value.component), Ue({ key: 9 }, ji.value.props, {
|
|
2364
|
-
ref_key: "tableUnit",
|
|
2365
|
-
ref: Gn,
|
|
2366
|
-
onClose: Mi
|
|
2367
|
-
}), ze({
|
|
2368
|
-
content: j(() => [(E(), y(A(xn), {
|
|
2369
|
-
key: `table_${Hn.value}`,
|
|
2370
|
-
colNames: _i.value.colNames,
|
|
2371
|
-
head: _i.value.head,
|
|
2372
|
-
body: _i.value.body,
|
|
2373
|
-
config: _i.value.config,
|
|
2374
|
-
title: I.value.table.useDialog ? "" : ji.value.title,
|
|
2375
|
-
withCloseButton: !I.value.table.useDialog,
|
|
2376
|
-
isCursorPointer: lr.value,
|
|
2377
|
-
onClose: Mi
|
|
2378
|
-
}, {
|
|
2379
|
-
th: j(({ th: e }) => [e === "__SUM__" ? (E(), x("div", gn, [Ve(A(yn), {
|
|
2380
|
-
name: "sigma",
|
|
2381
|
-
stroke: _i.value.config.th.color,
|
|
2382
|
-
size: 16
|
|
2383
|
-
}, null, 8, ["stroke"])])) : (E(), x("div", _n, Xe(e), 1))]),
|
|
2384
|
-
td: j(({ td: e }) => [Be(Xe(e.name ? e.name : isNaN(Number(e)) ? e.includes("%") ? e : A(p)(L.value.percentage.formatter, e, A(t)({
|
|
2385
|
-
v: e,
|
|
2386
|
-
s: "%",
|
|
2387
|
-
r: L.value.percentage.rounding
|
|
2388
|
-
})) : A(p)(L.value.value.formatter, e, A(t)({
|
|
2389
|
-
p: L.value.dataLabels.prefix,
|
|
2390
|
-
v: e,
|
|
2391
|
-
s: L.value.dataLabels.suffix,
|
|
2392
|
-
r: L.value.value.rounding
|
|
2393
|
-
}))), 1)]),
|
|
2394
|
-
_: 1
|
|
2395
|
-
}, 8, [
|
|
2396
|
-
"colNames",
|
|
2397
|
-
"head",
|
|
2398
|
-
"body",
|
|
2399
|
-
"config",
|
|
2400
|
-
"title",
|
|
2401
|
-
"withCloseButton",
|
|
2402
|
-
"isCursorPointer"
|
|
2403
|
-
]))]),
|
|
2404
|
-
_: 2
|
|
2405
|
-
}, [I.value.table.useDialog ? {
|
|
2406
|
-
name: "title",
|
|
2407
|
-
fn: j(() => [Be(Xe(ji.value.title), 1)]),
|
|
2408
|
-
key: "0"
|
|
2409
|
-
} : void 0, I.value.table.useDialog ? {
|
|
2410
|
-
name: "actions",
|
|
2411
|
-
fn: j(() => [S("button", {
|
|
2412
|
-
tabindex: "0",
|
|
2413
|
-
class: "vue-ui-user-options-button",
|
|
2414
|
-
onClick: r[4] ||= (e) => gi(I.value.userOptions.callbacks.csv),
|
|
2415
|
-
style: T({ cursor: lr.value ? "pointer" : "default" })
|
|
2416
|
-
}, [Ve(A(yn), {
|
|
2417
|
-
name: "fileCsv",
|
|
2418
|
-
stroke: ji.value.props.color
|
|
2419
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
2420
|
-
key: "1"
|
|
2421
|
-
} : void 0]), 1040)) : b("", !0),
|
|
2422
|
-
k(n.$slots, "skeleton", {}, () => [A(dr) ? (E(), y(ye, { key: 0 })) : b("", !0)], !0)
|
|
2423
|
-
], 46, it));
|
|
2424
|
-
}
|
|
2425
|
-
}, [["__scopeId", "data-v-f5725be5"]]);
|
|
2426
|
-
//#endregion
|
|
2427
|
-
export { rt as n, vn as t };
|