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