vue-data-ui 2.3.84 → 2.3.86
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-CQ1ubni5.js → Arrow-CJ7hmWgf.js} +1 -1
- package/dist/{Arrow-Uk_vwKtL.cjs → Arrow-CebZn6E4.cjs} +1 -1
- package/dist/{BaseIcon-B9ZZ6wkT.js → BaseIcon-B9istAKo.js} +1 -1
- package/dist/{BaseIcon-CF1HQdM0.cjs → BaseIcon-DnG75_Ol.cjs} +1 -1
- package/dist/{DataTable-CEtr89Og.cjs → DataTable-BA_BCbHC.cjs} +1 -1
- package/dist/{DataTable-C-iU_7h7.js → DataTable-tSDSY14n.js} +2 -2
- package/dist/{Legend-D2ZBCCXe.cjs → Legend-BOY57qwA.cjs} +1 -1
- package/dist/{Legend-pU_BwhaW.js → Legend-D3hovFqM.js} +1 -1
- package/dist/{Shape-BO_KyCq8.cjs → Shape-D6jrLLku.cjs} +1 -1
- package/dist/{Shape-CyM44biU.js → Shape-XiTBfhJM.js} +1 -1
- package/dist/{Slicer-CZobytqL.js → Slicer-BMvzmCKt.js} +2 -2
- package/dist/{Slicer-BAMZ4wsl.cjs → Slicer-sZ-DArc4.cjs} +1 -1
- package/dist/{Title-B1_d29Eh.cjs → Title-Ahj4TYHa.cjs} +1 -1
- package/dist/{Title-Bk3h09h9.js → Title-DJ2FNrSN.js} +1 -1
- package/dist/{Tooltip-CdB80DsD.js → Tooltip-CQpXRqRC.js} +1 -1
- package/dist/{Tooltip-BU4cSEF0.cjs → Tooltip-XhevgJmm.cjs} +1 -1
- package/dist/index-CVgBMJU6.cjs +4 -0
- package/dist/{index-DI4DaxVG.js → index-D2epy0rJ.js} +4 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +3 -0
- package/dist/types/vue-data-ui.d.ts +3 -0
- package/dist/{useNestedProp-BdsfyHWU.cjs → useNestedProp-B-NmF2LO.cjs} +1 -1
- package/dist/{useNestedProp-COsQo-tX.js → useNestedProp-C_ZrJBd9.js} +1 -1
- package/dist/usePrinter-B6qtXaHk.js +527 -0
- package/dist/usePrinter-DN-6Hoh5.cjs +1 -0
- package/dist/{vue-data-ui-kGaLyV0o.cjs → vue-data-ui-DlNasA0G.cjs} +1 -1
- package/dist/{vue-data-ui-9nofTL7J.js → vue-data-ui-vegY0BJm.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-CqRRjlUU.cjs +19 -0
- package/dist/{vue-ui-3d-bar-lKgwKkVj.js → vue-ui-3d-bar-D-0SSMOt.js} +165 -164
- package/dist/{vue-ui-accordion-C8ka_Ot0.cjs → vue-ui-accordion-BaV9R6cy.cjs} +1 -1
- package/dist/{vue-ui-accordion-DsN9lxvc.js → vue-ui-accordion-DzTB2FL0.js} +3 -3
- package/dist/vue-ui-age-pyramid-Bx4BuL3K.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-D2lSXDX6.js → vue-ui-age-pyramid-_eo2DGen.js} +68 -67
- package/dist/{vue-ui-annotator-DoLG0N5e.js → vue-ui-annotator-8j2dJ0CU.js} +1 -1
- package/dist/{vue-ui-annotator-DmfAqbqB.cjs → vue-ui-annotator-CDZtr6tp.cjs} +1 -1
- package/dist/{vue-ui-candlestick-vhHV9d6O.js → vue-ui-candlestick-CsF7OSvJ.js} +83 -82
- package/dist/vue-ui-candlestick-NypxP0Uu.cjs +2 -0
- package/dist/{vue-ui-carousel-table-BmyArloA.js → vue-ui-carousel-table-CMHd2i-6.js} +7 -7
- package/dist/{vue-ui-carousel-table-DaQV2SlJ.cjs → vue-ui-carousel-table-CV0eVeRd.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DvNW2Y0z.cjs → vue-ui-chestnut-B9miwyAN.cjs} +2 -2
- package/dist/{vue-ui-chestnut-DgbbDtL0.js → vue-ui-chestnut-CVftKftk.js} +11 -10
- package/dist/{vue-ui-cursor-zXDNHCZv.cjs → vue-ui-cursor-Bsrt107X.cjs} +1 -1
- package/dist/{vue-ui-cursor-7-jKCnOY.js → vue-ui-cursor-wujy8n_T.js} +2 -2
- package/dist/{vue-ui-dashboard-DMossMh1.cjs → vue-ui-dashboard-BCN0BhjL.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B_pnIQ5P.js → vue-ui-dashboard-Cvy0gI52.js} +2 -2
- package/dist/{vue-ui-digits-BL8Vyod-.cjs → vue-ui-digits-CnHgzHPI.cjs} +1 -1
- package/dist/{vue-ui-digits-C-lpZ-rg.js → vue-ui-digits-J-WrKKHg.js} +2 -2
- package/dist/{vue-ui-donut-e-p-l-_7.js → vue-ui-donut-BOhWcHY_.js} +91 -90
- package/dist/vue-ui-donut-CZ1iKZq6.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Ol1YS2OF.js → vue-ui-donut-evolution-CSSYuoti.js} +83 -82
- package/dist/vue-ui-donut-evolution-DuY2883r.cjs +1 -0
- package/dist/{vue-ui-dumbbell-BjTXdj83.js → vue-ui-dumbbell-Cm0Rp_6W.js} +23 -22
- package/dist/{vue-ui-dumbbell-CMFNfda1.cjs → vue-ui-dumbbell-i9QcsSVO.cjs} +2 -2
- package/dist/{vue-ui-flow-B4mdXrld.js → vue-ui-flow-0m7a1NP7.js} +54 -53
- package/dist/vue-ui-flow-DXCBGdQT.cjs +1 -0
- package/dist/vue-ui-galaxy-D6GyjAnX.cjs +1 -0
- package/dist/{vue-ui-galaxy-Eg1e5SG7.js → vue-ui-galaxy-DCHEdZAl.js} +87 -86
- package/dist/{vue-ui-gauge-BTt63SCn.js → vue-ui-gauge-HcM2JJpg.js} +78 -77
- package/dist/vue-ui-gauge-wbHQGQro.cjs +1 -0
- package/dist/{vue-ui-gizmo-bFlUFJa8.cjs → vue-ui-gizmo-B-zMyi1m.cjs} +1 -1
- package/dist/{vue-ui-gizmo-C0aF0qVF.js → vue-ui-gizmo-Bfo_nUnZ.js} +2 -2
- package/dist/{vue-ui-heatmap-kiVWYvjC.js → vue-ui-heatmap-CxIHmv0t.js} +170 -169
- package/dist/vue-ui-heatmap-Du2vI5Ae.cjs +1 -0
- package/dist/{vue-ui-kpi-qw5ofS-z.cjs → vue-ui-kpi-BOe7-M9V.cjs} +1 -1
- package/dist/{vue-ui-kpi-DdtZLwfi.js → vue-ui-kpi-DibULfkp.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8YrB3X-.cjs → vue-ui-mini-loader-Bv7l-Kx3.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DcL5v-Tv.js → vue-ui-mini-loader-qFRhERid.js} +2 -2
- package/dist/{vue-ui-molecule-BpomHzqe.js → vue-ui-molecule-4cIGPnWg.js} +282 -278
- package/dist/vue-ui-molecule-eOj3ZjvT.cjs +1 -0
- package/dist/{vue-ui-mood-radar-BV9xC9xF.js → vue-ui-mood-radar-BTe21WKk.js} +144 -143
- package/dist/vue-ui-mood-radar-tUFqqekd.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-D7D20nJu.js → vue-ui-nested-donuts-BVzabOga.js} +65 -64
- package/dist/vue-ui-nested-donuts-BigBLrFR.cjs +17 -0
- package/dist/{vue-ui-onion-4wR10l5H.js → vue-ui-onion-C3TAKqro.js} +90 -89
- package/dist/vue-ui-onion-_ZC3vbIS.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-BiXGkfj7.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DA3byJV2.js → vue-ui-parallel-coordinate-plot-CKoCQXqj.js} +40 -39
- package/dist/vue-ui-quadrant-B67wGTic.cjs +1 -0
- package/dist/{vue-ui-quadrant-D5wvd5h3.js → vue-ui-quadrant-CKnyfJoi.js} +51 -50
- package/dist/vue-ui-quick-chart-DEjdx0AB.cjs +15 -0
- package/dist/{vue-ui-quick-chart-CTSq5JJE.js → vue-ui-quick-chart-DZDYYnsI.js} +63 -62
- package/dist/vue-ui-radar-Cm_QkYGb.cjs +1 -0
- package/dist/{vue-ui-radar-OW6awckj.js → vue-ui-radar-v9yayJxu.js} +44 -43
- package/dist/{vue-ui-rating-C6gyJWJF.js → vue-ui-rating-Cc_N7qbe.js} +2 -2
- package/dist/{vue-ui-rating-3ZVG38br.cjs → vue-ui-rating-DV4cCZbB.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-Dr9-ozKG.js → vue-ui-relation-circle-Clqo4kkb.js} +74 -73
- package/dist/vue-ui-relation-circle-DcpIVbI6.cjs +1 -0
- package/dist/{vue-ui-rings-Ce6tFKrN.js → vue-ui-rings-D27xNq9q.js} +78 -77
- package/dist/vue-ui-rings-DTn3t8Ku.cjs +2 -0
- package/dist/{vue-ui-scatter-C_3WQPMf.js → vue-ui-scatter-C07Mon-6.js} +53 -52
- package/dist/vue-ui-scatter-CXbrqLFm.cjs +1 -0
- package/dist/{vue-ui-screenshot-BvE2dsvU.js → vue-ui-screenshot-CsxqbqlJ.js} +1 -1
- package/dist/{vue-ui-screenshot-D6N4GbAL.cjs → vue-ui-screenshot-D8TAvQYN.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DH4t1hrL.js → vue-ui-skeleton-BLiYyX95.js} +2 -2
- package/dist/{vue-ui-skeleton-CkSlhfsB.cjs → vue-ui-skeleton-Br1K3exH.cjs} +1 -1
- package/dist/{vue-ui-smiley-C-92SyPZ.js → vue-ui-smiley-BUHatT3Z.js} +2 -2
- package/dist/{vue-ui-smiley-CSA28QLT.cjs → vue-ui-smiley-CR_TkSYT.cjs} +1 -1
- package/dist/vue-ui-spark-trend-CnUz6s1m.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CrElvUcG.js → vue-ui-spark-trend-GY2CfYRt.js} +29 -29
- package/dist/vue-ui-sparkbar-DaFwUA6Z.cjs +1 -0
- package/dist/{vue-ui-sparkbar-DrbkUcOX.js → vue-ui-sparkbar-tdgek1gv.js} +27 -27
- package/dist/{vue-ui-sparkgauge-PSRf_u0V.js → vue-ui-sparkgauge-1zu5KmTA.js} +22 -22
- package/dist/vue-ui-sparkgauge-D8P01Hem.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-pZslBri7.js → vue-ui-sparkhistogram-b68QStxA.js} +52 -52
- package/dist/vue-ui-sparkhistogram-mg6yuwLH.cjs +1 -0
- package/dist/{vue-ui-sparkline-CqgArzCs.cjs → vue-ui-sparkline-CAqav9Gn.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BPExupWx.js → vue-ui-sparkline-CMmtp8MK.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-i02y9FzO.js → vue-ui-sparkstackbar-Cz8tOM3m.js} +6 -6
- package/dist/vue-ui-sparkstackbar-DOrquZvw.cjs +1 -0
- package/dist/vue-ui-stackbar-DUa5F_Zl.cjs +6 -0
- package/dist/{vue-ui-stackbar-DfXxN_P3.js → vue-ui-stackbar-DeQkP1dj.js} +64 -63
- package/dist/vue-ui-strip-plot-KNL9ToYG.cjs +1 -0
- package/dist/{vue-ui-strip-plot-BZ-we0b1.js → vue-ui-strip-plot-vqOCzdFV.js} +73 -72
- package/dist/{vue-ui-table-Dy26T2oy.cjs → vue-ui-table-BCdHNku5.cjs} +1 -1
- package/dist/{vue-ui-table-BqLbMTHt.js → vue-ui-table-DDdVqdHt.js} +1 -1
- package/dist/vue-ui-table-heatmap-BJDnZMZN.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-KzoqT8nX.js → vue-ui-table-heatmap-DQg_jtYq.js} +27 -26
- package/dist/{vue-ui-table-sparkline-BakiSjV4.js → vue-ui-table-sparkline-Bg-VFq7X.js} +25 -24
- package/dist/{vue-ui-table-sparkline-BBEsDDnN.cjs → vue-ui-table-sparkline-D8DJxb5J.cjs} +1 -1
- package/dist/{vue-ui-thermometer-D7cgRJoy.js → vue-ui-thermometer-CajBbbYc.js} +60 -59
- package/dist/vue-ui-thermometer-eYM8DX7u.cjs +1 -0
- package/dist/{vue-ui-timer-r4VFny9D.js → vue-ui-timer-D3VRVK-8.js} +4 -4
- package/dist/{vue-ui-timer-COLXZ1J1.cjs → vue-ui-timer-RclP4Tql.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DNQpuz8A.js → vue-ui-tiremarks-BT0k_3xi.js} +93 -92
- package/dist/vue-ui-tiremarks-Bc8bBBAw.cjs +1 -0
- package/dist/{vue-ui-treemap-CsHaQjwu.cjs → vue-ui-treemap-BjWDt2b2.cjs} +1 -1
- package/dist/{vue-ui-treemap-CD5GoXrU.js → vue-ui-treemap-DMhe3zCm.js} +14 -13
- package/dist/vue-ui-vertical-bar-DWzafNBH.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-DRH98pOw.js → vue-ui-vertical-bar-hH9R9V-K.js} +180 -179
- package/dist/vue-ui-waffle-BvYE9hAY.cjs +1 -0
- package/dist/{vue-ui-waffle-l9NGD_0B.js → vue-ui-waffle-DnNd6Iba.js} +85 -84
- package/dist/{vue-ui-wheel-BpqWo_KY.js → vue-ui-wheel-Bx9_m-7W.js} +72 -71
- package/dist/vue-ui-wheel-CVBmY6h7.cjs +1 -0
- package/dist/vue-ui-word-cloud-3R-mYkIW.cjs +1 -0
- package/dist/{vue-ui-word-cloud-DLaAm8t8.js → vue-ui-word-cloud-DUk0Xt8q.js} +109 -108
- package/dist/{vue-ui-xy-Ct-9OxiZ.js → vue-ui-xy-FtaqoNK8.js} +401 -405
- package/dist/{vue-ui-xy-canvas-BU3nj2M1.js → vue-ui-xy-canvas-Bp4PTl_E.js} +54 -53
- package/dist/{vue-ui-xy-canvas-Bub1qCm9.cjs → vue-ui-xy-canvas-Ctw_3PzN.cjs} +2 -2
- package/dist/vue-ui-xy-rX-aml0b.cjs +3 -0
- package/package.json +1 -1
- package/dist/index-Cx-40Fnz.cjs +0 -4
- package/dist/usePrinter-D9bNzUQP.js +0 -513
- package/dist/usePrinter-DbhL59iY.cjs +0 -1
- package/dist/vue-ui-3d-bar-1aTroDle.cjs +0 -19
- package/dist/vue-ui-age-pyramid-D8Tr8jvT.cjs +0 -1
- package/dist/vue-ui-candlestick-BAuWAMct.cjs +0 -2
- package/dist/vue-ui-donut-evolution-DsdzjA88.cjs +0 -1
- package/dist/vue-ui-donut-w1eqaTu0.cjs +0 -1
- package/dist/vue-ui-flow-oBnzNN4s.cjs +0 -1
- package/dist/vue-ui-galaxy-DgxKqf6u.cjs +0 -1
- package/dist/vue-ui-gauge-B64pcc54.cjs +0 -1
- package/dist/vue-ui-heatmap-cjY0mi4a.cjs +0 -1
- package/dist/vue-ui-molecule-B8cYtnHq.cjs +0 -1
- package/dist/vue-ui-mood-radar-BA2VVPO5.cjs +0 -1
- package/dist/vue-ui-nested-donuts-C3CMWjgk.cjs +0 -17
- package/dist/vue-ui-onion-CVp0g8MP.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CmaHQR6-.cjs +0 -8
- package/dist/vue-ui-quadrant-B8ffMNIS.cjs +0 -1
- package/dist/vue-ui-quick-chart-hnVT9GKL.cjs +0 -15
- package/dist/vue-ui-radar-ySl7KzoX.cjs +0 -1
- package/dist/vue-ui-relation-circle-CMW26dvv.cjs +0 -1
- package/dist/vue-ui-rings-CR1t6iss.cjs +0 -2
- package/dist/vue-ui-scatter-CKtgbptk.cjs +0 -1
- package/dist/vue-ui-spark-trend-D4d4Mr24.cjs +0 -1
- package/dist/vue-ui-sparkbar-DDqy0UBm.cjs +0 -1
- package/dist/vue-ui-sparkgauge-D6cG2rb8.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B9sVdLfh.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-BbGJ75_9.cjs +0 -1
- package/dist/vue-ui-stackbar-CRbcnnwn.cjs +0 -6
- package/dist/vue-ui-strip-plot-oZBXDxc-.cjs +0 -1
- package/dist/vue-ui-table-heatmap-BnwiB4id.cjs +0 -1
- package/dist/vue-ui-thermometer-E0mrvP4G.cjs +0 -1
- package/dist/vue-ui-tiremarks-C15sglnJ.cjs +0 -1
- package/dist/vue-ui-vertical-bar-DucujxOR.cjs +0 -4
- package/dist/vue-ui-waffle-DhroAZB3.cjs +0 -1
- package/dist/vue-ui-wheel-Bd87HcGT.cjs +0 -1
- package/dist/vue-ui-word-cloud-D5JLdr9g.cjs +0 -1
- package/dist/vue-ui-xy-BHzOpYm9.cjs +0 -3
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { computed as b, ref as v, onMounted as Ye, onBeforeUnmount as He, watch as Ne, openBlock as s, createElementBlock as n, normalizeClass as ue, normalizeStyle as
|
|
2
|
-
import { u as Qe, o as Ze, e as
|
|
1
|
+
import { computed as b, ref as v, onMounted as Ye, onBeforeUnmount as He, watch as Ne, openBlock as s, createElementBlock as n, normalizeClass as ue, normalizeStyle as z, renderSlot as g, createBlock as V, createCommentVNode as d, unref as o, createSlots as We, withCtx as w, normalizeProps as H, guardReactiveProps as W, createElementVNode as f, Fragment as M, renderList as X, toDisplayString as C, createTextVNode as Oe, createVNode as Xe, nextTick as qe, pushScopeId as Je, popScopeId as Ke } from "vue";
|
|
2
|
+
import { u as Qe, o as Ze, e as Pe, g as el, c as ll, b as tl, d as Ae, p as D, m as al, f as x, X as ol, s as q, j as ul, F as sl, i as F, k as y, n as J, t as rl, a as nl, x as il, q as vl, r as cl } from "./index-D2epy0rJ.js";
|
|
3
3
|
import { t as dl, u as hl } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { D as bl } from "./DataTable-
|
|
7
|
-
import { _ as gl } from "./Tooltip-
|
|
8
|
-
import { L as ml } from "./Legend-
|
|
9
|
-
import wl from "./vue-ui-skeleton-
|
|
10
|
-
import kl from "./vue-ui-accordion-
|
|
11
|
-
import { u as De } from "./useNestedProp-
|
|
4
|
+
import { _ as yl } from "./Title-DJ2FNrSN.js";
|
|
5
|
+
import { u as fl, U as pl } from "./usePrinter-B6qtXaHk.js";
|
|
6
|
+
import { D as bl } from "./DataTable-tSDSY14n.js";
|
|
7
|
+
import { _ as gl } from "./Tooltip-CQpXRqRC.js";
|
|
8
|
+
import { L as ml } from "./Legend-D3hovFqM.js";
|
|
9
|
+
import wl from "./vue-ui-skeleton-BLiYyX95.js";
|
|
10
|
+
import kl from "./vue-ui-accordion-DzTB2FL0.js";
|
|
11
|
+
import { u as De } from "./useNestedProp-C_ZrJBd9.js";
|
|
12
12
|
import { _ as _l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const Cl = (G) => (Je("data-v-
|
|
13
|
+
const Cl = (G) => (Je("data-v-15467798"), G = G(), Ke(), G), xl = ["id"], $l = ["xmlns", "viewBox"], Sl = ["id"], Ll = ["stop-color"], Fl = ["offset", "stop-color"], Tl = ["offset", "stop-color"], zl = ["stop-color"], Nl = ["id"], Ol = ["id"], Pl = /* @__PURE__ */ Cl(() => /* @__PURE__ */ f("feColorMatrix", {
|
|
14
14
|
type: "saturate",
|
|
15
15
|
values: "0"
|
|
16
16
|
}, null, -1)), Al = ["id"], Dl = ["flood-color"], Il = ["d", "stroke", "filter"], Bl = ["cx", "cy", "r", "fill", "filter"], Vl = ["stroke", "d"], Ml = ["d", "fill", "stroke", "stroke-width", "filter"], Gl = ["cx", "cy", "r", "fill", "stroke"], Ul = ["cx", "cy", "r", "fill"], jl = ["d", "fill", "onMouseenter", "onClick"], El = ["x", "y", "fill", "font-size"], Rl = ["x", "y", "fill", "font-size"], Yl = ["x", "y", "fill", "font-size"], Hl = ["x", "y", "fill", "font-size"], Wl = ["filter"], Xl = { key: 0 }, ql = ["x", "y"], Jl = { key: 1 }, Kl = ["cx", "cy", "fill", "filter", "onClick"], Ql = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Zl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], et = { key: 2 }, lt = ["x", "y", "width"], tt = {
|
|
@@ -51,7 +51,7 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
51
51
|
K.value && K.value.disconnect();
|
|
52
52
|
});
|
|
53
53
|
function de() {
|
|
54
|
-
if (Ze(S.dataset) ?
|
|
54
|
+
if (Ze(S.dataset) ? Pe({
|
|
55
55
|
componentName: "VueUiDonut",
|
|
56
56
|
type: "dataset"
|
|
57
57
|
}) : S.dataset.forEach((t, a) => {
|
|
@@ -59,7 +59,7 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
59
59
|
datasetObject: t,
|
|
60
60
|
requiredAttributes: ["name", "values"]
|
|
61
61
|
}).forEach((l) => {
|
|
62
|
-
U.value = !1,
|
|
62
|
+
U.value = !1, Pe({
|
|
63
63
|
componentName: "VueUiDonut",
|
|
64
64
|
type: "datasetSerieAttribute",
|
|
65
65
|
property: l,
|
|
@@ -78,8 +78,8 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
78
78
|
K.value = new ResizeObserver(t), K.value.observe(j.value.parentNode);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
const $ = v(ll()), Ve = v(null), ee = v(!1), le = v(""),
|
|
82
|
-
function
|
|
81
|
+
const $ = v(ll()), Ve = v(null), ee = v(!1), le = v(""), T = v(null), he = v(0);
|
|
82
|
+
function ye() {
|
|
83
83
|
const t = De({
|
|
84
84
|
userConfig: S.config,
|
|
85
85
|
defaultConfig: Be
|
|
@@ -93,13 +93,13 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
93
93
|
} : t;
|
|
94
94
|
}
|
|
95
95
|
const e = b({
|
|
96
|
-
get: () =>
|
|
96
|
+
get: () => ye(),
|
|
97
97
|
set: (t) => t
|
|
98
98
|
});
|
|
99
99
|
Ne(() => S.config, (t) => {
|
|
100
|
-
e.value =
|
|
100
|
+
e.value = ye(), de(), ie.value += 1, ve.value += 1, ce.value += 1;
|
|
101
101
|
}, { deep: !0 });
|
|
102
|
-
const { isPrinting:
|
|
102
|
+
const { isPrinting: fe, isImaging: pe, generatePdf: be, generateImage: ge } = fl({
|
|
103
103
|
elementId: `donut__${$.value}`,
|
|
104
104
|
fileName: e.value.style.chart.title.text || "vue-ui-donut"
|
|
105
105
|
}), me = b(() => tl(e.value.customPalette)), p = v({
|
|
@@ -114,31 +114,31 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
114
114
|
}), E = b(() => {
|
|
115
115
|
const t = e.value.style.chart.layout.donut.strokeWidth / 512, a = i.value.width * t, l = a > _.value ? _.value : a;
|
|
116
116
|
return l < 24 ? 24 : l;
|
|
117
|
-
}),
|
|
117
|
+
}), O = b(() => S.dataset.map((t, a) => ({
|
|
118
118
|
name: t.name,
|
|
119
119
|
color: Ae(t.color) || me.value[a] || D[a] || D[a % D.length],
|
|
120
120
|
value: t.values.reduce((l, u) => l + u, 0),
|
|
121
121
|
absoluteValues: t.values,
|
|
122
122
|
comment: t.comment || ""
|
|
123
|
-
}))), k = v(
|
|
124
|
-
Ne(() =>
|
|
123
|
+
}))), k = v(O.value);
|
|
124
|
+
Ne(() => O.value, (t) => k.value = t);
|
|
125
125
|
function Me() {
|
|
126
|
-
return
|
|
126
|
+
return O.value.map((t) => ({
|
|
127
127
|
name: t.name,
|
|
128
128
|
color: t.color,
|
|
129
129
|
value: t.value
|
|
130
130
|
}));
|
|
131
131
|
}
|
|
132
|
-
const L = v([]), we = v(null), ke = v(null),
|
|
132
|
+
const L = v([]), we = v(null), ke = v(null), P = v(!1);
|
|
133
133
|
function _e(t) {
|
|
134
|
-
const a =
|
|
134
|
+
const a = O.value.find((r, h) => h === t);
|
|
135
135
|
let u = k.value.find((r, h) => h === t).value;
|
|
136
136
|
if (L.value.includes(t)) {
|
|
137
137
|
let h = function() {
|
|
138
138
|
u > r ? (cancelAnimationFrame(we.value), k.value = k.value.map((c, oe) => t === oe ? {
|
|
139
139
|
...c,
|
|
140
140
|
value: r
|
|
141
|
-
} : c),
|
|
141
|
+
} : c), P.value = !1) : (P.value = !0, u += r * 0.025, k.value = k.value.map((c, oe) => t === oe ? {
|
|
142
142
|
...c,
|
|
143
143
|
value: u
|
|
144
144
|
} : c), we.value = requestAnimationFrame(h));
|
|
@@ -146,12 +146,12 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
146
146
|
L.value = L.value.filter((c) => c !== t);
|
|
147
147
|
const r = a.value;
|
|
148
148
|
h();
|
|
149
|
-
} else if (L.value.length <
|
|
149
|
+
} else if (L.value.length < O.value.length - 1) {
|
|
150
150
|
let r = function() {
|
|
151
151
|
u < 0.1 ? (cancelAnimationFrame(ke.value), L.value.push(t), k.value = k.value.map((h, c) => t === c ? {
|
|
152
152
|
...h,
|
|
153
153
|
value: 0
|
|
154
|
-
} : h),
|
|
154
|
+
} : h), P.value = !1) : (P.value = !0, u /= 1.1, k.value = k.value.map((h, c) => t === c ? {
|
|
155
155
|
...h,
|
|
156
156
|
value: u
|
|
157
157
|
} : h), ke.value = requestAnimationFrame(r));
|
|
@@ -200,7 +200,7 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
200
200
|
}
|
|
201
201
|
function xe(t, a) {
|
|
202
202
|
const l = t.value / Ue(a);
|
|
203
|
-
return isNaN(l) ? 0 :
|
|
203
|
+
return isNaN(l) ? 0 : F(
|
|
204
204
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
205
205
|
l * 100,
|
|
206
206
|
x({
|
|
@@ -216,7 +216,7 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
216
216
|
}
|
|
217
217
|
const m = b(() => I.value.map((t) => t.value).reduce((t, a) => t + a, 0)), $e = b(() => m.value / I.value.length), te = v(null), R = v(!1);
|
|
218
218
|
function je({ datapoint: t, relativeIndex: a, seriesIndex: l, show: u = !1 }) {
|
|
219
|
-
te.value = { datapoint: t, seriesIndex: l, config: e.value, series:
|
|
219
|
+
te.value = { datapoint: t, seriesIndex: l, config: e.value, series: O.value }, ee.value = u, T.value = a;
|
|
220
220
|
let r = "";
|
|
221
221
|
const h = e.value.style.chart.tooltip.customFormat;
|
|
222
222
|
if (R.value = !1, il(h))
|
|
@@ -224,7 +224,7 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
224
224
|
const c = h({
|
|
225
225
|
seriesIndex: l,
|
|
226
226
|
datapoint: t,
|
|
227
|
-
series:
|
|
227
|
+
series: O.value,
|
|
228
228
|
config: e.value
|
|
229
229
|
});
|
|
230
230
|
typeof c == "string" && (le.value = c, R.value = !0);
|
|
@@ -232,7 +232,7 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
232
232
|
console.warn("Custom format cannot be applied."), R.value = !1;
|
|
233
233
|
}
|
|
234
234
|
if (!R.value) {
|
|
235
|
-
if (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${
|
|
235
|
+
if (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${F(
|
|
236
236
|
e.value.style.chart.layout.labels.value.formatter,
|
|
237
237
|
t.value,
|
|
238
238
|
x({
|
|
@@ -247,7 +247,7 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
247
247
|
seriesIndex: l
|
|
248
248
|
}
|
|
249
249
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
250
|
-
const c =
|
|
250
|
+
const c = F(
|
|
251
251
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
252
252
|
t.proportion * 100,
|
|
253
253
|
x({
|
|
@@ -267,7 +267,7 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
function ae(t) {
|
|
270
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(
|
|
270
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(T.value) && T.value !== t ? `url(#blur_${$.value})` : "";
|
|
271
271
|
}
|
|
272
272
|
const N = b(() => {
|
|
273
273
|
const t = I.value.map((l) => ({
|
|
@@ -354,7 +354,7 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
354
354
|
ref_key: "donutChart",
|
|
355
355
|
ref: j,
|
|
356
356
|
class: ue(`vue-ui-donut ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
357
|
-
style:
|
|
357
|
+
style: z(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
|
|
358
358
|
id: `donut__${$.value}`
|
|
359
359
|
}, [
|
|
360
360
|
g(t.$slots, "userConfig", {}, void 0, !0),
|
|
@@ -362,9 +362,9 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
362
362
|
key: 0,
|
|
363
363
|
ref_key: "chartTitle",
|
|
364
364
|
ref: re,
|
|
365
|
-
style:
|
|
365
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
366
366
|
}, [
|
|
367
|
-
(s(), V(
|
|
367
|
+
(s(), V(yl, {
|
|
368
368
|
key: `title_${ie.value}`,
|
|
369
369
|
config: {
|
|
370
370
|
title: {
|
|
@@ -377,14 +377,14 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
}, null, 8, ["config"]))
|
|
380
|
-
],
|
|
380
|
+
], 512)) : d("", !0),
|
|
381
381
|
e.value.userOptions.show && U.value ? (s(), V(pl, {
|
|
382
382
|
ref_key: "details",
|
|
383
383
|
ref: Ve,
|
|
384
384
|
key: `user_option_${he.value}`,
|
|
385
385
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
386
386
|
color: e.value.style.chart.color,
|
|
387
|
-
isPrinting: o(
|
|
387
|
+
isPrinting: o(fe),
|
|
388
388
|
isImaging: o(pe),
|
|
389
389
|
uid: $.value,
|
|
390
390
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
@@ -396,6 +396,7 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
396
396
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
397
397
|
isFullscreen: Y.value,
|
|
398
398
|
chartElement: j.value,
|
|
399
|
+
position: e.value.userOptions.position,
|
|
399
400
|
isTooltip: p.value.showTooltip,
|
|
400
401
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
401
402
|
onToggleFullscreen: Ee,
|
|
@@ -455,60 +456,60 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
455
456
|
]),
|
|
456
457
|
key: "6"
|
|
457
458
|
} : void 0
|
|
458
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
|
|
459
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
|
|
459
460
|
U.value ? (s(), n("svg", {
|
|
460
461
|
key: 2,
|
|
461
462
|
xmlns: o(ol),
|
|
462
463
|
class: ue({ "vue-data-ui-fullscreen--on": Y.value, "vue-data-ui-fulscreen--off": !Y.value }),
|
|
463
464
|
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
464
|
-
style:
|
|
465
|
+
style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
465
466
|
}, [
|
|
466
|
-
|
|
467
|
+
f("defs", null, [
|
|
467
468
|
e.value.style.chart.useGradient ? (s(), n("radialGradient", {
|
|
468
469
|
key: 0,
|
|
469
470
|
id: `gradient_${$.value}`
|
|
470
471
|
}, [
|
|
471
|
-
|
|
472
|
+
f("stop", {
|
|
472
473
|
offset: "0%",
|
|
473
474
|
"stop-color": o(q)(e.value.style.chart.backgroundColor, 0),
|
|
474
475
|
"stop-opacity": "0"
|
|
475
476
|
}, null, 8, Ll),
|
|
476
|
-
|
|
477
|
+
f("stop", {
|
|
477
478
|
offset: `${(1 - E.value / _.value) * 100}%`,
|
|
478
479
|
"stop-color": o(q)("#FFFFFF", 0),
|
|
479
480
|
"stop-opacity": "0"
|
|
480
481
|
}, null, 8, Fl),
|
|
481
|
-
|
|
482
|
+
f("stop", {
|
|
482
483
|
offset: `${(1 - E.value / _.value / 2) * 100}%`,
|
|
483
484
|
"stop-color": o(q)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
484
485
|
}, null, 8, Tl),
|
|
485
|
-
|
|
486
|
+
f("stop", {
|
|
486
487
|
offset: "100%",
|
|
487
488
|
"stop-color": o(q)(e.value.style.chart.backgroundColor, 0),
|
|
488
489
|
"stop-opacity": "0"
|
|
489
490
|
}, null, 8, zl)
|
|
490
491
|
], 8, Sl)) : d("", !0)
|
|
491
492
|
]),
|
|
492
|
-
|
|
493
|
-
|
|
493
|
+
f("defs", null, [
|
|
494
|
+
f("filter", {
|
|
494
495
|
id: `blur_${$.value}`,
|
|
495
496
|
x: "-50%",
|
|
496
497
|
y: "-50%",
|
|
497
498
|
width: "200%",
|
|
498
499
|
height: "200%"
|
|
499
500
|
}, [
|
|
500
|
-
|
|
501
|
+
f("feGaussianBlur", {
|
|
501
502
|
in: "SourceGraphic",
|
|
502
503
|
stdDeviation: 2,
|
|
503
504
|
id: `blur_std_${$.value}`
|
|
504
|
-
}, null, 8,
|
|
505
|
-
|
|
505
|
+
}, null, 8, Ol),
|
|
506
|
+
Pl
|
|
506
507
|
], 8, Nl),
|
|
507
|
-
|
|
508
|
+
f("filter", {
|
|
508
509
|
id: `shadow_${$.value}`,
|
|
509
510
|
"color-interpolation-filters": "sRGB"
|
|
510
511
|
}, [
|
|
511
|
-
|
|
512
|
+
f("feDropShadow", {
|
|
512
513
|
dx: "0",
|
|
513
514
|
dy: "0",
|
|
514
515
|
stdDeviation: "10",
|
|
@@ -529,7 +530,7 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
529
530
|
filter: ae(u)
|
|
530
531
|
}, null, 8, Il)) : d("", !0)
|
|
531
532
|
]))), 256)),
|
|
532
|
-
|
|
533
|
+
f("circle", {
|
|
533
534
|
cx: i.value.width / 2,
|
|
534
535
|
cy: i.value.height / 2,
|
|
535
536
|
r: _.value <= 0 ? 10 : _.value,
|
|
@@ -571,7 +572,7 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
571
572
|
m.value ? (s(!0), n(M, { key: 3 }, X(A.value, (l, u) => (s(), n("path", {
|
|
572
573
|
"data-cy-donut-trap": "",
|
|
573
574
|
d: l.arcSlice,
|
|
574
|
-
fill:
|
|
575
|
+
fill: T.value === u ? "rgba(0,0,0,0.1)" : "transparent",
|
|
575
576
|
onMouseenter: (r) => je({
|
|
576
577
|
datapoint: l,
|
|
577
578
|
relativeIndex: u,
|
|
@@ -579,7 +580,7 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
579
580
|
show: !0
|
|
580
581
|
}),
|
|
581
582
|
onMouseleave: a[0] || (a[0] = (r) => {
|
|
582
|
-
ee.value = !1,
|
|
583
|
+
ee.value = !1, T.value = null;
|
|
583
584
|
}),
|
|
584
585
|
onClick: (r) => Z(l, u)
|
|
585
586
|
}, null, 40, jl))), 256)) : d("", !0),
|
|
@@ -590,7 +591,7 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
590
591
|
y: i.value.height / 2 - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.offsetY,
|
|
591
592
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
592
593
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
593
|
-
style:
|
|
594
|
+
style: z(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
594
595
|
}, C(e.value.style.chart.layout.labels.hollow.total.text), 13, El)) : d("", !0),
|
|
595
596
|
e.value.style.chart.layout.labels.hollow.total.show ? (s(), n("text", {
|
|
596
597
|
key: 5,
|
|
@@ -599,8 +600,8 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
599
600
|
y: i.value.height / 2 + e.value.style.chart.layout.labels.hollow.total.fontSize - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.value.offsetY,
|
|
600
601
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
601
602
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
602
|
-
style:
|
|
603
|
-
}, C(o(
|
|
603
|
+
style: z(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
604
|
+
}, C(o(F)(
|
|
604
605
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
605
606
|
m.value,
|
|
606
607
|
o(x)({
|
|
@@ -616,7 +617,7 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
616
617
|
y: i.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.offsetY,
|
|
617
618
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
618
619
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
619
|
-
style:
|
|
620
|
+
style: z(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
620
621
|
}, C(e.value.style.chart.layout.labels.hollow.average.text), 13, Yl)) : d("", !0),
|
|
621
622
|
e.value.style.chart.layout.labels.hollow.average.show ? (s(), n("text", {
|
|
622
623
|
key: 7,
|
|
@@ -625,8 +626,8 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
625
626
|
y: i.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.fontSize + e.value.style.chart.layout.labels.hollow.average.value.offsetY,
|
|
626
627
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
627
628
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
628
|
-
style:
|
|
629
|
-
}, C(
|
|
629
|
+
style: z(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
630
|
+
}, C(P.value ? "--" : o(F)(
|
|
630
631
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
631
632
|
$e.value,
|
|
632
633
|
o(x)({
|
|
@@ -642,20 +643,20 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
642
643
|
}, [
|
|
643
644
|
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), n("g", Xl, [
|
|
644
645
|
(s(), n("foreignObject", {
|
|
645
|
-
x: o(
|
|
646
|
+
x: o(y)(l, !0).anchor === "end" ? o(y)(l).x - 120 : o(y)(l, !0).anchor === "middle" ? o(y)(l).x - 60 : o(y)(l).x,
|
|
646
647
|
y: o(J)(l) - (Le.value ? 20 : 0),
|
|
647
648
|
width: "120",
|
|
648
649
|
height: "60",
|
|
649
650
|
style: { overflow: "visible" }
|
|
650
651
|
}, [
|
|
651
|
-
|
|
652
|
+
f("div", null, [
|
|
652
653
|
g(t.$slots, "dataLabel", H(W({
|
|
653
654
|
datapoint: l,
|
|
654
|
-
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
655
|
+
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(T.value) || T.value === u,
|
|
655
656
|
isSafari: Le.value,
|
|
656
657
|
isVisible: B(l) && p.value.dataLabels.show,
|
|
657
|
-
textAlign: o(
|
|
658
|
-
flexAlign: o(
|
|
658
|
+
textAlign: o(y)(l, !0, 16, !0).anchor,
|
|
659
|
+
flexAlign: o(y)(l, !0, 16).anchor,
|
|
659
660
|
percentage: xe(l, A.value)
|
|
660
661
|
})), void 0, !0)
|
|
661
662
|
])
|
|
@@ -663,23 +664,23 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
663
664
|
])) : (s(), n("g", Jl, [
|
|
664
665
|
B(l) && p.value.dataLabels.show ? (s(), n("circle", {
|
|
665
666
|
key: 0,
|
|
666
|
-
cx: o(
|
|
667
|
+
cx: o(y)(l).x,
|
|
667
668
|
cy: o(J)(l) - 3.5,
|
|
668
669
|
fill: l.color,
|
|
669
670
|
r: 3,
|
|
670
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
671
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(T.value) || T.value === u ? "" : `url(#blur_${$.value})`,
|
|
671
672
|
onClick: (r) => Z(l, u)
|
|
672
673
|
}, null, 8, Kl)) : d("", !0),
|
|
673
674
|
B(l) && p.value.dataLabels.show ? (s(), n("text", {
|
|
674
675
|
key: 1,
|
|
675
|
-
"text-anchor": o(
|
|
676
|
-
x: o(
|
|
676
|
+
"text-anchor": o(y)(l, !0, 12).anchor,
|
|
677
|
+
x: o(y)(l, !0, 12).x,
|
|
677
678
|
y: o(J)(l),
|
|
678
679
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
679
680
|
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
680
|
-
style:
|
|
681
|
+
style: z(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
681
682
|
onClick: (r) => Z(l, u)
|
|
682
|
-
}, C(xe(l, A.value)) + " " + C(e.value.style.chart.layout.labels.value.show ? `(${o(
|
|
683
|
+
}, C(xe(l, A.value)) + " " + C(e.value.style.chart.layout.labels.value.show ? `(${o(F)(
|
|
683
684
|
e.value.style.chart.layout.labels.value.formatter,
|
|
684
685
|
l.value,
|
|
685
686
|
o(x)({
|
|
@@ -692,27 +693,27 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
692
693
|
)})` : ""), 13, Ql)) : d("", !0),
|
|
693
694
|
B(l) && p.value.dataLabels.show ? (s(), n("text", {
|
|
694
695
|
key: 2,
|
|
695
|
-
"text-anchor": o(
|
|
696
|
-
x: o(
|
|
696
|
+
"text-anchor": o(y)(l).anchor,
|
|
697
|
+
x: o(y)(l, !0, 12).x,
|
|
697
698
|
y: o(J)(l) + e.value.style.chart.layout.labels.percentage.fontSize,
|
|
698
699
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
699
700
|
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
700
|
-
style:
|
|
701
|
+
style: z(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
701
702
|
onClick: (r) => Z(l, u)
|
|
702
703
|
}, C(l.name), 13, Zl)) : d("", !0)
|
|
703
704
|
])),
|
|
704
705
|
p.value.dataLabels.show && e.value.style.chart.comments.show && l.comment ? (s(), n("g", et, [
|
|
705
706
|
B(l) ? (s(), n("foreignObject", {
|
|
706
707
|
key: 0,
|
|
707
|
-
x: e.value.style.chart.comments.offsetX + (o(
|
|
708
|
+
x: e.value.style.chart.comments.offsetX + (o(y)(l, !0).anchor === "end" ? o(y)(l).x - e.value.style.chart.comments.width : o(y)(l, !0).anchor === "middle" ? o(y)(l).x - e.value.style.chart.comments.width / 2 : o(y)(l).x),
|
|
708
709
|
y: o(J)(l) + 24 + e.value.style.chart.comments.offsetY,
|
|
709
710
|
width: e.value.style.chart.comments.width,
|
|
710
711
|
height: "200",
|
|
711
712
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
712
713
|
}, [
|
|
713
|
-
|
|
714
|
+
f("div", null, [
|
|
714
715
|
g(t.$slots, "plot-comment", {
|
|
715
|
-
plot: { ...l, textAlign: o(
|
|
716
|
+
plot: { ...l, textAlign: o(y)(l, !0, 16, !0).anchor, flexAlign: o(y)(l, !0, 16).anchor }
|
|
716
717
|
}, void 0, !0)
|
|
717
718
|
])
|
|
718
719
|
], 8, lt)) : d("", !0)
|
|
@@ -721,7 +722,7 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
721
722
|
g(t.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
722
723
|
], 14, $l)) : d("", !0),
|
|
723
724
|
t.$slots.watermark ? (s(), n("div", tt, [
|
|
724
|
-
g(t.$slots, "watermark", H(W({ isPrinting: o(
|
|
725
|
+
g(t.$slots, "watermark", H(W({ isPrinting: o(fe) || o(pe) })), void 0, !0)
|
|
725
726
|
])) : d("", !0),
|
|
726
727
|
U.value ? d("", !0) : (s(), V(wl, {
|
|
727
728
|
key: 4,
|
|
@@ -736,7 +737,7 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
736
737
|
}
|
|
737
738
|
}
|
|
738
739
|
}, null, 8, ["config"])),
|
|
739
|
-
|
|
740
|
+
f("div", {
|
|
740
741
|
ref_key: "chartLegend",
|
|
741
742
|
ref: ne
|
|
742
743
|
}, [
|
|
@@ -747,11 +748,11 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
747
748
|
onClickMarker: a[1] || (a[1] = ({ i: l }) => _e(l))
|
|
748
749
|
}, {
|
|
749
750
|
item: w(({ legend: l, index: u }) => [
|
|
750
|
-
|
|
751
|
+
f("div", {
|
|
751
752
|
onClick: (r) => l.segregate(),
|
|
752
|
-
style:
|
|
753
|
+
style: z(`opacity:${L.value.includes(u) ? 0.5 : 1}`)
|
|
753
754
|
}, [
|
|
754
|
-
|
|
755
|
+
Oe(C(l.name) + ": " + C(o(F)(
|
|
755
756
|
e.value.style.chart.layout.labels.value.formatter,
|
|
756
757
|
l.value,
|
|
757
758
|
o(x)({
|
|
@@ -765,11 +766,11 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
765
766
|
index: u
|
|
766
767
|
}
|
|
767
768
|
)) + " ", 1),
|
|
768
|
-
L.value.includes(u) ? (s(), n("span", ut, " ( " + C(Re(l.proportion * 100)) + " % ) ", 1)) : (s(), n("span", ot, " (" + C(isNaN(l.value / m.value) ? "-" : o(
|
|
769
|
+
L.value.includes(u) ? (s(), n("span", ut, " ( " + C(Re(l.proportion * 100)) + " % ) ", 1)) : (s(), n("span", ot, " (" + C(isNaN(l.value / m.value) ? "-" : o(F)(
|
|
769
770
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
770
|
-
|
|
771
|
+
P.value ? l.proportion * 100 : l.value / m.value * 100,
|
|
771
772
|
o(x)({
|
|
772
|
-
v:
|
|
773
|
+
v: P.value ? l.proportion * 100 : l.value / m.value * 100,
|
|
773
774
|
s: "%",
|
|
774
775
|
r: e.value.style.chart.legend.roundingPercentage
|
|
775
776
|
})
|
|
@@ -830,13 +831,13 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
830
831
|
onClose: a[2] || (a[2] = (l) => p.value.showTable = !1)
|
|
831
832
|
}, {
|
|
832
833
|
th: w(({ th: l }) => [
|
|
833
|
-
|
|
834
|
+
f("div", {
|
|
834
835
|
innerHTML: l,
|
|
835
836
|
style: { display: "flex", "align-items": "center" }
|
|
836
837
|
}, null, 8, st)
|
|
837
838
|
]),
|
|
838
839
|
td: w(({ td: l }) => [
|
|
839
|
-
|
|
840
|
+
Oe(C(l.name ? l.name : isNaN(Number(l)) ? l.includes("%") ? o(F)(
|
|
840
841
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
841
842
|
l,
|
|
842
843
|
o(x)({
|
|
@@ -844,7 +845,7 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
844
845
|
s: "%",
|
|
845
846
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
846
847
|
})
|
|
847
|
-
) : l : o(
|
|
848
|
+
) : l : o(F)(
|
|
848
849
|
e.value.style.chart.layout.labels.value.formatter,
|
|
849
850
|
l,
|
|
850
851
|
o(x)({
|
|
@@ -862,7 +863,7 @@ const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
862
863
|
}, 8, ["config"])) : d("", !0)
|
|
863
864
|
], 14, xl));
|
|
864
865
|
}
|
|
865
|
-
}, wt = /* @__PURE__ */ _l(rt, [["__scopeId", "data-v-
|
|
866
|
+
}, wt = /* @__PURE__ */ _l(rt, [["__scopeId", "data-v-15467798"]]);
|
|
866
867
|
export {
|
|
867
868
|
wt as default
|
|
868
869
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-CVgBMJU6.cjs"),ie=require("./useResponsive-B3TrDDIG.cjs"),Ce=require("./Title-Ahj4TYHa.cjs"),ve=require("./usePrinter-DN-6Hoh5.cjs"),xe=require("./DataTable-BA_BCbHC.cjs"),_e=require("./Tooltip-XhevgJmm.cjs"),Be=require("./Legend-BOY57qwA.cjs"),Se=require("./vue-ui-skeleton-Br1K3exH.cjs"),$e=require("./vue-ui-accordion-BaV9R6cy.cjs"),de=require("./useNestedProp-B-NmF2LO.cjs"),Le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ne=B=>(e.pushScopeId("data-v-15467798"),B=B(),e.popScopeId(),B),Ee=["id"],Oe=["xmlns","viewBox"],Ve=["id"],ze=["stop-color"],Te=["offset","stop-color"],Fe=["offset","stop-color"],De=["stop-color"],Pe=["id"],Me=["id"],Xe=Ne(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),Ae=["id"],Ie=["flood-color"],qe=["d","stroke","filter"],Re=["cx","cy","r","fill","filter"],Ge=["stroke","d"],Ye=["d","fill","stroke","stroke-width","filter"],Ue=["cx","cy","r","fill","stroke"],je=["cx","cy","r","fill"],He=["d","fill","onMouseenter","onClick"],We=["x","y","fill","font-size"],Je=["x","y","fill","font-size"],Ke=["x","y","fill","font-size"],Qe=["x","y","fill","font-size"],Ze=["filter"],et={key:0},tt=["x","y"],lt={key:1},at=["cx","cy","fill","filter","onClick"],ot=["text-anchor","x","y","fill","font-size","onClick"],rt=["text-anchor","x","y","fill","font-size","onClick"],ut={key:2},nt=["x","y","width"],st={key:3,class:"vue-data-ui-watermark"},ct=["onClick"],it={key:0,style:{"font-variant-numeric":"tabular-nums"}},vt={key:1},dt=["innerHTML"],ht={__name:"vue-ui-donut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(B,{expose:he,emit:X}){const p=B,{vue_ui_donut:fe}=o.useConfig(),S=e.computed({get(){return!!p.dataset&&p.dataset.length},set(a){return a}}),$=e.ref(null),A=e.ref(null),I=e.ref(null),O=e.ref(null),q=e.ref(0),R=e.ref(0),G=e.ref(0);e.onMounted(()=>{Y()}),e.onBeforeUnmount(()=>{O.value&&O.value.disconnect()});function Y(){if(o.objectIsEmpty(p.dataset)?o.error({componentName:"VueUiDonut",type:"dataset"}):p.dataset.forEach((a,r)=>{o.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","values"]}).forEach(l=>{S.value=!1,o.error({componentName:"VueUiDonut",type:"datasetSerieAttribute",property:l,index:r})})}),t.value.responsive){const a=ie.throttle(()=>{const{width:r,height:l}=ie.useResponsive({chart:$.value,title:t.value.style.chart.title.text?A.value:null,legend:t.value.style.chart.legend.show?I.value:null});s.value.width=r,s.value.height=l});O.value=new ResizeObserver(a),O.value.observe($.value.parentNode)}}const y=e.ref(o.createUid()),ye=e.ref(null),T=e.ref(!1),F=e.ref(""),b=e.ref(null),U=e.ref(0);function j(){const a=de.useNestedProp({userConfig:p.config,defaultConfig:fe});return a.theme?{...de.useNestedProp({userConfig:o.themes.vue_ui_donut[a.theme]||p.config,defaultConfig:a}),customPalette:o.themePalettes[a.theme]||o.palette}:a}const t=e.computed({get:()=>j(),set:a=>a});e.watch(()=>p.config,a=>{t.value=j(),Y(),q.value+=1,R.value+=1,G.value+=1},{deep:!0});const{isPrinting:H,isImaging:W,generatePdf:J,generateImage:K}=ve.usePrinter({elementId:`donut__${y.value}`,fileName:t.value.style.chart.title.text||"vue-ui-donut"}),Q=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),v=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),s=e.ref({height:360,width:512}),L=e.computed(()=>{const a=t.value.style.chart.layout.donut.strokeWidth/512,r=s.value.width*a,l=r>f.value?f.value:r;return l<24?24:l}),k=e.computed(()=>p.dataset.map((a,r)=>({name:a.name,color:o.convertColorToHex(a.color)||Q.value[r]||o.palette[r]||o.palette[r%o.palette.length],value:a.values.reduce((l,u)=>l+u,0),absoluteValues:a.values,comment:a.comment||""}))),h=e.ref(k.value);e.watch(()=>k.value,a=>h.value=a);function pe(){return k.value.map(a=>({name:a.name,color:a.color,value:a.value}))}const m=e.ref([]),Z=e.ref(null),ee=e.ref(null),w=e.ref(!1);function te(a){const r=k.value.find((n,i)=>i===a);let u=h.value.find((n,i)=>i===a).value;if(m.value.includes(a)){let i=function(){u>n?(cancelAnimationFrame(Z.value),h.value=h.value.map((c,M)=>a===M?{...c,value:n}:c),w.value=!1):(w.value=!0,u+=n*.025,h.value=h.value.map((c,M)=>a===M?{...c,value:u}:c),Z.value=requestAnimationFrame(i))};m.value=m.value.filter(c=>c!==a);const n=r.value;i()}else if(m.value.length<k.value.length-1){let n=function(){u<.1?(cancelAnimationFrame(ee.value),m.value.push(a),h.value=h.value.map((i,c)=>a===c?{...i,value:0}:i),w.value=!1):(w.value=!0,u/=1.1,h.value=h.value.map((i,c)=>a===c?{...i,value:u}:i),ee.value=requestAnimationFrame(n))};n()}X("selectLegend",x.value.map(n=>({name:n.name,color:n.color,value:n.value})))}const x=e.computed(()=>(h.value.forEach((a,r)=>{if([null,void 0].includes(a.values))return{...a,values:[]}}),h.value.map((a,r)=>({...a,seriesIndex:r})).filter((a,r)=>!m.value.includes(r)))),le=e.computed(()=>p.dataset.map((a,r)=>({name:a.name,color:o.convertColorToHex(a.color)||Q.value[r]||o.palette[r]||o.palette[r%o.palette.length],value:(a.values||[]).reduce((l,u)=>l+u,0),shape:"circle"})).map((a,r)=>({...a,proportion:a.value/p.dataset.map(l=>(l.values||[]).reduce((u,n)=>u+n,0)).reduce((l,u)=>l+u,0),opacity:m.value.includes(r)?.5:1,segregate:()=>te(r),isSegregated:m.value.includes(r)}))),me=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),f=e.computed(()=>{const a=Math.min(s.value.width/3,s.value.height/3);return a<55?55:a}),C=e.computed(()=>o.makeDonut({series:x.value},s.value.width/2,s.value.height/2,f.value,f.value,1.99999,2,1,360,105.25,L.value));function _(a){return a.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function ae(a,r){const l=a.value/be(r);return isNaN(l)?0:o.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,l*100,o.dataLabel({v:l*100,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding}),{datapoint:a})}function be(a){return[...a].map(r=>r.value).reduce((r,l)=>r+l,0)}const d=e.computed(()=>x.value.map(a=>a.value).reduce((a,r)=>a+r,0)),oe=e.computed(()=>d.value/x.value.length),D=e.ref(null),N=e.ref(!1);function ge({datapoint:a,relativeIndex:r,seriesIndex:l,show:u=!1}){D.value={datapoint:a,seriesIndex:l,config:t.value,series:k.value},T.value=u,b.value=r;let n="";const i=t.value.style.chart.tooltip.customFormat;if(N.value=!1,o.isFunction(i))try{const c=i({seriesIndex:l,datapoint:a,series:k.value,config:t.value});typeof c=="string"&&(F.value=c,N.value=!0)}catch{console.warn("Custom format cannot be applied."),N.value=!1}if(!N.value){if(n+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${a.name}</div>`,n+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${a.color}"/></svg>`,t.value.style.chart.tooltip.showValue&&(n+=`<b>${o.applyDataLabel(t.value.style.chart.layout.labels.value.formatter,a.value,o.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,relativeIndex:r,seriesIndex:l})}</b>`),t.value.style.chart.tooltip.showPercentage){const c=o.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,a.proportion*100,o.dataLabel({v:a.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage}),{datapoint:a,relativeIndex:r,seriesIndex:l});t.value.style.chart.tooltip.showValue?n+=`<span>(${c})</span></div>`:n+=`<b>${c}%</b></div>`}t.value.style.chart.comments.showInTooltip&&a.comment&&(n+=`<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${a.color}">${a.comment}</div>`),F.value=`<div>${n}</div>`}}function P(a){return t.value.useBlurOnHover&&![null,void 0].includes(b.value)&&b.value!==a?`url(#blur_${y.value})`:""}const g=e.computed(()=>{const a=x.value.map(l=>({name:l.name,color:l.color})),r=x.value.map(l=>l.value);return{head:a,body:r}});function re(){e.nextTick(()=>{const a=g.value.head.map((u,n)=>[[u.name],[g.value.body[n]],[isNaN(g.value.body[n]/d.value)?"-":g.value.body[n]/d.value*100]]),r=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(a),l=o.createCsvContent(r);o.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-donut"})})}const V=e.computed(()=>{const a=[' <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>',o.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:d.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],r=g.value.head.map((n,i)=>{const c=o.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:g.value.body[i],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},c,isNaN(g.value.body[i]/d.value)?"-":(g.value.body[i]/d.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:a,body:r,config:l}}),E=e.ref(!1);function ke(a){E.value=a,U.value+=1}const ue=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent));function we(a){return a.toFixed(t.value.style.chart.legend.roundingPercentage).split("").map(r=>"-").join("")}function z(a,r){X("selectDatapoint",{datapoint:a,index:r})}function ne(){v.value.showTable=!v.value.showTable}function se(){v.value.dataLabels.show=!v.value.dataLabels.show}function ce(){v.value.showTooltip=!v.value.showTooltip}return he({getData:pe,generatePdf:J,generateCsv:re,generateImage:K,toggleTable:ne,toggleLabels:se,toggleTooltip:ce}),(a,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutChart",ref:$,class:e.normalizeClass(`vue-ui-donut ${E.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height:100%;":""} text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:`donut__${y.value}`},[e.renderSlot(a.$slots,"userConfig",{},void 0,!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:A,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(Ce._sfc_main,{key:`title_${q.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&S.value?(e.openBlock(),e.createBlock(ve.UserOptions,{ref_key:"details",ref:ye,key:`user_option_${U.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(H),isImaging:e.unref(W),uid:y.value,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:E.value,chartElement:$.value,position:t.value.userOptions.position,isTooltip:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},onToggleFullscreen:ke,onGeneratePdf:e.unref(J),onGenerateCsv:re,onGenerateImage:e.unref(K),onToggleTable:ne,onToggleLabels:se,onToggleTooltip:ce},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:u})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:u})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasLabel","hasFullscreen","isFullscreen","chartElement","position","isTooltip","titles","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),S.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":E.value,"vue-data-ui-fulscreen--off":!E.value}),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createElementVNode("defs",null,[t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("radialGradient",{key:0,id:`gradient_${y.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,ze),e.createElementVNode("stop",{offset:`${(1-L.value/f.value)*100}%`,"stop-color":e.unref(o.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,Te),e.createElementVNode("stop",{offset:`${(1-L.value/f.value/2)*100}%`,"stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.gradientIntensity)},null,8,Fe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,De)],8,Ve)):e.createCommentVNode("",!0)]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${y.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${y.value}`},null,8,Me),Xe],8,Pe),e.createElementVNode("filter",{id:`shadow_${y.value}`,"color-interpolation-filters":"sRGB"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"10","flood-opacity":"0.5","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,Ie)],8,Ae)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(l,u)=>(e.openBlock(),e.createElementBlock("g",null,[_(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(o.calcNutArrowPath)(l,{x:s.value.width/2,y:s.value.height/2},16,16,!1,!1,L.value),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:P(u)},null,8,qe)):e.createCommentVNode("",!0)]))),256)),e.createElementVNode("circle",{cx:s.value.width/2,cy:s.value.height/2,r:f.value<=0?10:f.value,fill:t.value.style.chart.backgroundColor,filter:t.value.style.chart.layout.donut.useShadow?`url(#shadow_${y.value})`:""},null,8,Re),d.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(l,u)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:l.arcSlice,fill:"#FFFFFF"},null,8,Ge))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(l,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:e.unref(o.setOpacity)(l.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:P(u)},null,8,Ye))),256))],64)):(e.openBlock(),e.createElementBlock("circle",{key:1,cx:s.value.width/2,cy:s.value.height/2,r:f.value<=0?10:f.value,fill:t.value.style.chart.backgroundColor,stroke:e.unref(o.adaptColorToBackground)(t.value.style.chart.background)},null,8,Ue)),t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("circle",{key:2,cx:s.value.width/2,cy:s.value.height/2,r:f.value<=0?10:f.value,fill:`url(#gradient_${y.value})`},null,8,je)):e.createCommentVNode("",!0),d.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(C.value,(l,u)=>(e.openBlock(),e.createElementBlock("path",{"data-cy-donut-trap":"",d:l.arcSlice,fill:b.value===u?"rgba(0,0,0,0.1)":"transparent",onMouseenter:n=>ge({datapoint:l,relativeIndex:u,seriesIndex:l.seriesIndex,show:!0}),onMouseleave:r[0]||(r[0]=n=>{T.value=!1,b.value=null}),onClick:n=>z(l,u)},null,40,He))),256)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:4,"text-anchor":"middle",x:s.value.width/2,y:s.value.height/2-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.color,"font-size":t.value.style.chart.layout.labels.hollow.total.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.total.text),13,We)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:5,"text-anchor":"middle",x:s.value.width/2,y:s.value.height/2+t.value.style.chart.layout.labels.hollow.total.fontSize-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.value.color,"font-size":t.value.style.chart.layout.labels.hollow.total.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.value.bold?"bold":""}`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.hollow.total.value.formatter,d.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.hollow.total.value.prefix,v:d.value,s:t.value.style.chart.layout.labels.hollow.total.value.suffix}))),13,Je)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:6,"text-anchor":"middle",x:s.value.width/2,y:s.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.color,"font-size":t.value.style.chart.layout.labels.hollow.average.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.average.text),13,Ke)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:7,"text-anchor":"middle",x:s.value.width/2,y:s.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.fontSize+t.value.style.chart.layout.labels.hollow.average.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.value.color,"font-size":t.value.style.chart.layout.labels.hollow.average.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.value.bold?"bold":""}`)},e.toDisplayString(w.value?"--":e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.hollow.average.value.formatter,oe.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.hollow.average.value.prefix,v:oe.value,s:t.value.style.chart.layout.labels.hollow.average.value.suffix,r:t.value.style.chart.layout.labels.hollow.average.value.rounding}))),13,Qe)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(l,u)=>(e.openBlock(),e.createElementBlock("g",{filter:P(u),class:e.normalizeClass({animated:t.value.useCssAnimation})},[t.value.style.chart.layout.labels.dataLabels.useLabelSlots?(e.openBlock(),e.createElementBlock("g",et,[(e.openBlock(),e.createElementBlock("foreignObject",{x:e.unref(o.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(o.calcMarkerOffsetX)(l).x-120:e.unref(o.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(o.calcMarkerOffsetX)(l).x-60:e.unref(o.calcMarkerOffsetX)(l).x,y:e.unref(o.calcMarkerOffsetY)(l)-(ue.value?20:0),width:"120",height:"60",style:{overflow:"visible"}},[e.createElementVNode("div",null,[e.renderSlot(a.$slots,"dataLabel",e.normalizeProps(e.guardReactiveProps({datapoint:l,isBlur:!t.value.useBlurOnHover||[null,void 0].includes(b.value)||b.value===u,isSafari:ue.value,isVisible:_(l)&&v.value.dataLabels.show,textAlign:e.unref(o.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(o.calcMarkerOffsetX)(l,!0,16).anchor,percentage:ae(l,C.value)})),void 0,!0)])],8,tt))])):(e.openBlock(),e.createElementBlock("g",lt,[_(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(o.calcMarkerOffsetX)(l).x,cy:e.unref(o.calcMarkerOffsetY)(l)-3.5,fill:l.color,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(b.value)||b.value===u?"":`url(#blur_${y.value})`,onClick:n=>z(l,u)},null,8,at)):e.createCommentVNode("",!0),_(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(o.calcMarkerOffsetX)(l,!0,12).anchor,x:e.unref(o.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(o.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.labels.percentage.color,"font-size":t.value.style.chart.layout.labels.percentage.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.percentage.bold?"bold":""}`),onClick:n=>z(l,u)},e.toDisplayString(ae(l,C.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}),{datapoint:l})})`:""),13,ot)):e.createCommentVNode("",!0),_(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,x:e.unref(o.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(o.calcMarkerOffsetY)(l)+t.value.style.chart.layout.labels.percentage.fontSize,fill:t.value.style.chart.layout.labels.name.color,"font-size":t.value.style.chart.layout.labels.name.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.name.bold?"bold":""}`),onClick:n=>z(l,u)},e.toDisplayString(l.name),13,rt)):e.createCommentVNode("",!0)])),v.value.dataLabels.show&&t.value.style.chart.comments.show&&l.comment?(e.openBlock(),e.createElementBlock("g",ut,[_(l)?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.value.style.chart.comments.offsetX+(e.unref(o.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(o.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width:e.unref(o.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(o.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width/2:e.unref(o.calcMarkerOffsetX)(l).x),y:e.unref(o.calcMarkerOffsetY)(l)+24+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:{overflow:"visible","pointer-events":"none"}},[e.createElementVNode("div",null,[e.renderSlot(a.$slots,"plot-comment",{plot:{...l,textAlign:e.unref(o.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(o.calcMarkerOffsetX)(l,!0,16).anchor}},void 0,!0)])],8,nt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,Ze))),256)),e.renderSlot(a.$slots,"svg",{svg:s.value},void 0,!0)],14,Oe)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",st,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(H)||e.unref(W)})),void 0,!0)])):e.createCommentVNode("",!0),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Se.default,{key:4,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC",strokeWidth:L.value*.8}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:I},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Be.Legend,{key:`legend_${G.value}`,legendSet:le.value,config:me.value,onClickMarker:r[1]||(r[1]=({i:l})=>te(l))},{item:e.withCtx(({legend:l,index:u})=>[e.createElementVNode("div",{onClick:n=>l.segregate(),style:e.normalizeStyle(`opacity:${m.value.includes(u)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,index:u}))+" ",1),m.value.includes(u)?(e.openBlock(),e.createElementBlock("span",vt," ( "+e.toDisplayString(we(l.proportion*100))+" % ) ",1)):(e.openBlock(),e.createElementBlock("span",it," ("+e.toDisplayString(isNaN(l.value/d.value)?"-":e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,w.value?l.proportion*100:l.value/d.value*100,e.unref(o.dataLabel)({v:w.value?l.proportion*100:l.value/d.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage})))+") ",1))],12,ct)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:le.value},void 0,!0)],512),e.createVNode(_e._sfc_main,{show:v.value.showTooltip&&T.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:$.value,content:F.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...D.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...D.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),S.value?(e.openBlock(),e.createBlock($e.default,{key:5,hideDetails:"",config:{open:v.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(xe.DataTable,{key:`table_${R.value}`,colNames:V.value.colNames,head:V.value.head,body:V.value.body,config:V.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:r[2]||(r[2]=l=>v.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,dt)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name?l.name:isNaN(Number(l))?l.includes("%")?e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,l,e.unref(o.dataLabel)({v:l,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding})):l:e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}))),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Ee))}},ft=Le._export_sfc(ht,[["__scopeId","data-v-15467798"]]);exports.default=ft;
|