vue-data-ui 2.3.92 → 2.3.94

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.
Files changed (148) hide show
  1. package/dist/{Arrow-CdJD01md.cjs → Arrow-Dqk-HgBj.cjs} +1 -1
  2. package/dist/{Arrow-16rQhq4i.js → Arrow-FQNwuQt_.js} +1 -1
  3. package/dist/{BaseIcon-CAmYNoaf.js → BaseIcon-CcOdzI48.js} +1 -1
  4. package/dist/{BaseIcon-dYWMubrH.cjs → BaseIcon-DhAyJ2rW.cjs} +1 -1
  5. package/dist/{DataTable-BXnbua0J.js → DataTable-D1vDu_2B.js} +2 -2
  6. package/dist/{DataTable-oa0Srfuc.cjs → DataTable-kOScyzFF.cjs} +1 -1
  7. package/dist/{Legend-Dhm9_peB.cjs → Legend-BJdr5n-o.cjs} +1 -1
  8. package/dist/{Legend-Cr1hulgT.js → Legend-CZk6McMv.js} +1 -1
  9. package/dist/{PackageVersion-BVZfgDqm.js → PackageVersion-DDKechCD.js} +1 -1
  10. package/dist/{PackageVersion-BkgJVmj1.cjs → PackageVersion-Tm6EPIDH.cjs} +1 -1
  11. package/dist/{Shape-hGbEoQOv.cjs → Shape-CHWOgbhq.cjs} +1 -1
  12. package/dist/{Shape-D75m5xWM.js → Shape-CY3Tsyaq.js} +1 -1
  13. package/dist/{Slicer-B7ya0m2Q.cjs → Slicer-C0R4JA2q.cjs} +1 -1
  14. package/dist/{Slicer-Bx8AozB8.js → Slicer-DBVND1TR.js} +15 -15
  15. package/dist/{Title-1Sw6EmHy.js → Title-B6kWQmNb.js} +1 -1
  16. package/dist/{Title-Bjrh7khe.cjs → Title-DAEaaXFr.cjs} +1 -1
  17. package/dist/{Tooltip-CPATjuur.cjs → Tooltip-Cb9jWppv.cjs} +1 -1
  18. package/dist/{Tooltip-EJf3VBPR.js → Tooltip-Cwp4dS4t.js} +1 -1
  19. package/dist/{index-DhJby8wL.js → index-Bu852AzK.js} +725 -705
  20. package/dist/index-jAZxyteD.cjs +9 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1 -0
  23. package/dist/types/vue-data-ui.d.ts +1 -0
  24. package/dist/{useNestedProp-CrHvyupb.js → useNestedProp-1sCLAHuR.js} +1 -1
  25. package/dist/{useNestedProp-Bwd7mK1Z.cjs → useNestedProp-DksYpyh6.cjs} +1 -1
  26. package/dist/{usePrinter-Bwm8J3RQ.js → usePrinter-CaNEdNUc.js} +1 -1
  27. package/dist/{usePrinter-DdsPm5a4.cjs → usePrinter-Cx-xmAjb.cjs} +1 -1
  28. package/dist/{vue-data-ui-CLxne31S.js → vue-data-ui-DRT0INR_.js} +57 -57
  29. package/dist/{vue-data-ui-ZitCqVgG.cjs → vue-data-ui-DVWQuwQb.cjs} +1 -1
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +5 -5
  32. package/dist/{vue-ui-3d-bar-Dg87_AAm.js → vue-ui-3d-bar-CwTmIafL.js} +8 -8
  33. package/dist/{vue-ui-3d-bar-DAv5cYGJ.cjs → vue-ui-3d-bar-fPokAY4t.cjs} +1 -1
  34. package/dist/{vue-ui-accordion-Cn5Jbplg.js → vue-ui-accordion-CBwmD_zS.js} +3 -3
  35. package/dist/{vue-ui-accordion-BAHX7KzB.cjs → vue-ui-accordion-WXKee19V.cjs} +1 -1
  36. package/dist/{vue-ui-age-pyramid-PlamQWqC.js → vue-ui-age-pyramid-BuJ384HP.js} +9 -9
  37. package/dist/{vue-ui-age-pyramid-GzHwQzsH.cjs → vue-ui-age-pyramid-CSlbHHIq.cjs} +1 -1
  38. package/dist/{vue-ui-annotator-Dd5KF_cy.js → vue-ui-annotator-CQQfgcyq.js} +1 -1
  39. package/dist/{vue-ui-annotator-DGgQwl-K.cjs → vue-ui-annotator-DqCVD1IT.cjs} +1 -1
  40. package/dist/{vue-ui-candlestick-BIEB2J1w.cjs → vue-ui-candlestick-2uxcI-Xb.cjs} +1 -1
  41. package/dist/{vue-ui-candlestick-DTzwPhV5.js → vue-ui-candlestick-O0pBnymd.js} +10 -10
  42. package/dist/{vue-ui-carousel-table-YEfvPESA.js → vue-ui-carousel-table-CpaHwBTF.js} +4 -4
  43. package/dist/{vue-ui-carousel-table-HNTf5AYY.cjs → vue-ui-carousel-table-DJelccvO.cjs} +1 -1
  44. package/dist/{vue-ui-chestnut-DzjdAYsT.cjs → vue-ui-chestnut-DoS0ZkSz.cjs} +1 -1
  45. package/dist/{vue-ui-chestnut-PzMOM7mp.js → vue-ui-chestnut-bP29gPF2.js} +7 -7
  46. package/dist/{vue-ui-cursor-DWea2yXV.js → vue-ui-cursor-BXsEO1jQ.js} +2 -2
  47. package/dist/{vue-ui-cursor-C5rsiCdn.cjs → vue-ui-cursor-DvrLmTy2.cjs} +1 -1
  48. package/dist/{vue-ui-dashboard-BqXhoS8m.cjs → vue-ui-dashboard-CtAtCuEu.cjs} +1 -1
  49. package/dist/{vue-ui-dashboard-CVespiTo.js → vue-ui-dashboard-VQiRxgUe.js} +2 -2
  50. package/dist/{vue-ui-digits-gNKgZqYU.js → vue-ui-digits-2h-uYg5M.js} +2 -2
  51. package/dist/{vue-ui-digits-wmDN7Vkf.cjs → vue-ui-digits-DxwUUK2a.cjs} +1 -1
  52. package/dist/vue-ui-donut-CVkNiaR7.js +999 -0
  53. package/dist/vue-ui-donut-ClCDBTXq.cjs +1 -0
  54. package/dist/{vue-ui-donut-evolution-DhDxLZ1J.cjs → vue-ui-donut-evolution-CVy-DhHk.cjs} +1 -1
  55. package/dist/{vue-ui-donut-evolution-Ch6HH0ja.js → vue-ui-donut-evolution-D0HDE6fN.js} +53 -53
  56. package/dist/{vue-ui-dumbbell-B9Z_pjnG.cjs → vue-ui-dumbbell-CblIThyd.cjs} +1 -1
  57. package/dist/{vue-ui-dumbbell-lFlZX8Yi.js → vue-ui-dumbbell-DIVxIXgO.js} +9 -9
  58. package/dist/{vue-ui-flow-CSIOC-JR.js → vue-ui-flow-Cy5HKKbs.js} +20 -20
  59. package/dist/{vue-ui-flow-BaFpUJg-.cjs → vue-ui-flow-Dbw0yzSb.cjs} +1 -1
  60. package/dist/{vue-ui-galaxy-DL2mnel_.js → vue-ui-galaxy-CBR86BVE.js} +23 -23
  61. package/dist/{vue-ui-galaxy-BIR5GxIc.cjs → vue-ui-galaxy-Z5-e5hHG.cjs} +1 -1
  62. package/dist/{vue-ui-gauge-BMq7KT3t.js → vue-ui-gauge-BwC9HPyF.js} +19 -19
  63. package/dist/{vue-ui-gauge-r_qvpwE7.cjs → vue-ui-gauge-DAgx6nds.cjs} +1 -1
  64. package/dist/{vue-ui-gizmo-DBas_Sw_.cjs → vue-ui-gizmo-5FygVg05.cjs} +1 -1
  65. package/dist/{vue-ui-gizmo-Dj7zvNI1.js → vue-ui-gizmo-D6U5riWt.js} +3 -3
  66. package/dist/{vue-ui-heatmap-pqBYIrxm.js → vue-ui-heatmap-PVlvCw_B.js} +9 -9
  67. package/dist/{vue-ui-heatmap-qPgEhAzc.cjs → vue-ui-heatmap-XVVbgtw6.cjs} +1 -1
  68. package/dist/{vue-ui-kpi-Cmo9J7wp.cjs → vue-ui-kpi-2eoTT0Hv.cjs} +1 -1
  69. package/dist/{vue-ui-kpi-ZPBinMiF.js → vue-ui-kpi-DiG34MXd.js} +3 -3
  70. package/dist/{vue-ui-mini-loader-DOTWhLi9.js → vue-ui-mini-loader-CVOfsZ-d.js} +2 -2
  71. package/dist/{vue-ui-mini-loader-Ce-jbgMT.cjs → vue-ui-mini-loader-DpoTiQhx.cjs} +1 -1
  72. package/dist/{vue-ui-molecule-RDpgNrHQ.js → vue-ui-molecule-85QzZoSm.js} +29 -29
  73. package/dist/{vue-ui-molecule-D429iwPP.cjs → vue-ui-molecule-Mt0YXGcP.cjs} +1 -1
  74. package/dist/{vue-ui-mood-radar-CdLJxrkT.cjs → vue-ui-mood-radar-B3xF0_xt.cjs} +1 -1
  75. package/dist/{vue-ui-mood-radar-CD5L8WCU.js → vue-ui-mood-radar-Ds21V6oP.js} +21 -21
  76. package/dist/{vue-ui-nested-donuts-A-tid5cQ.js → vue-ui-nested-donuts-BrMouz8T.js} +46 -46
  77. package/dist/{vue-ui-nested-donuts-DyM3uc7x.cjs → vue-ui-nested-donuts-DFrY4v-O.cjs} +1 -1
  78. package/dist/{vue-ui-onion-BKql8oal.cjs → vue-ui-onion-CQu0-ZlV.cjs} +1 -1
  79. package/dist/{vue-ui-onion-Cap01Ehu.js → vue-ui-onion-ZWa0bPAG.js} +10 -10
  80. package/dist/{vue-ui-parallel-coordinate-plot-B0zMgtnq.cjs → vue-ui-parallel-coordinate-plot-Cet-vJ3E.cjs} +1 -1
  81. package/dist/{vue-ui-parallel-coordinate-plot-CcDKe4L0.js → vue-ui-parallel-coordinate-plot-SpCkXomG.js} +11 -11
  82. package/dist/{vue-ui-quadrant-CZzdpeQ2.cjs → vue-ui-quadrant-B1fnSqPf.cjs} +1 -1
  83. package/dist/{vue-ui-quadrant-BDEfAeyJ.js → vue-ui-quadrant-DwxUTnpH.js} +11 -11
  84. package/dist/{vue-ui-quick-chart-DlAUYg5u.js → vue-ui-quick-chart-DDSDdZMZ.js} +8 -8
  85. package/dist/{vue-ui-quick-chart-DpGYUyhq.cjs → vue-ui-quick-chart-DSOONkrO.cjs} +1 -1
  86. package/dist/{vue-ui-radar-oBeaHlpT.cjs → vue-ui-radar-CQJzxB9Y.cjs} +1 -1
  87. package/dist/{vue-ui-radar-CbTln7gs.js → vue-ui-radar-Cc4hxNkF.js} +11 -11
  88. package/dist/{vue-ui-rating-BkDncqow.js → vue-ui-rating-CRs01ao2.js} +7 -7
  89. package/dist/{vue-ui-rating-BU7-F3_e.cjs → vue-ui-rating-DRLfSg4n.cjs} +1 -1
  90. package/dist/{vue-ui-relation-circle-IWiJWgcB.cjs → vue-ui-relation-circle-BZcoHhTb.cjs} +1 -1
  91. package/dist/{vue-ui-relation-circle-C5B6UNGd.js → vue-ui-relation-circle-mlXpg86O.js} +6 -6
  92. package/dist/{vue-ui-rings-BujVUJ90.js → vue-ui-rings-DHlbwWrt.js} +37 -37
  93. package/dist/{vue-ui-rings-Df2cRgD8.cjs → vue-ui-rings-OeMdVo_s.cjs} +1 -1
  94. package/dist/{vue-ui-scatter-jFTeM2hW.cjs → vue-ui-scatter-D65sxQAb.cjs} +1 -1
  95. package/dist/{vue-ui-scatter-D6yqZJ7s.js → vue-ui-scatter-DtX5NOb_.js} +34 -34
  96. package/dist/{vue-ui-screenshot-CVu8IM33.cjs → vue-ui-screenshot-B1pv3wKU.cjs} +1 -1
  97. package/dist/{vue-ui-screenshot-CHAySwpv.js → vue-ui-screenshot-BwgdW92q.js} +1 -1
  98. package/dist/{vue-ui-skeleton-ASX40MGk.js → vue-ui-skeleton-B-obKEDg.js} +49 -49
  99. package/dist/{vue-ui-skeleton-CAlTn_Cg.cjs → vue-ui-skeleton-C14g9G-o.cjs} +1 -1
  100. package/dist/{vue-ui-smiley-dwCqhB0r.cjs → vue-ui-smiley-CHY-BKbe.cjs} +1 -1
  101. package/dist/{vue-ui-smiley-DGVzhza2.js → vue-ui-smiley-i8xqKjND.js} +2 -2
  102. package/dist/{vue-ui-spark-trend-B7XhDvTj.js → vue-ui-spark-trend-DzZsfML2.js} +20 -20
  103. package/dist/{vue-ui-spark-trend-A1EHFK_r.cjs → vue-ui-spark-trend-i3VmY_gx.cjs} +1 -1
  104. package/dist/{vue-ui-sparkbar-BuNcvi66.js → vue-ui-sparkbar-7rOXvOgH.js} +4 -4
  105. package/dist/{vue-ui-sparkbar-CwNjHOjD.cjs → vue-ui-sparkbar-BnYKNJWQ.cjs} +1 -1
  106. package/dist/{vue-ui-sparkgauge-ISu154lS.cjs → vue-ui-sparkgauge-BuOMrzYW.cjs} +1 -1
  107. package/dist/{vue-ui-sparkgauge-JY2kB9WX.js → vue-ui-sparkgauge-DnphjNVE.js} +11 -11
  108. package/dist/{vue-ui-sparkhistogram-C8zyC-ii.cjs → vue-ui-sparkhistogram-DZaNR3tu.cjs} +1 -1
  109. package/dist/{vue-ui-sparkhistogram-DyEPWxkP.js → vue-ui-sparkhistogram-DvLl4E_s.js} +5 -5
  110. package/dist/{vue-ui-sparkline-DL3Thtc4.cjs → vue-ui-sparkline-BpmqNCQy.cjs} +1 -1
  111. package/dist/{vue-ui-sparkline-DYC3sdvQ.js → vue-ui-sparkline-CPjnG7wg.js} +21 -21
  112. package/dist/{vue-ui-sparkstackbar-7TmtP3WR.js → vue-ui-sparkstackbar-BGgNBuJz.js} +4 -4
  113. package/dist/{vue-ui-sparkstackbar-ChIM9bn2.cjs → vue-ui-sparkstackbar-CJ17fiW5.cjs} +1 -1
  114. package/dist/{vue-ui-stackbar-DrtiSaNc.cjs → vue-ui-stackbar-CFoe4XwZ.cjs} +1 -1
  115. package/dist/{vue-ui-stackbar-CP5C6Gb_.js → vue-ui-stackbar-SFKe9f6_.js} +11 -11
  116. package/dist/{vue-ui-strip-plot-BMYMIHGu.cjs → vue-ui-strip-plot-B8utOfmZ.cjs} +1 -1
  117. package/dist/{vue-ui-strip-plot-DJQCq_KE.js → vue-ui-strip-plot-CGgheJ1-.js} +10 -10
  118. package/dist/{vue-ui-table-D6hvgMif.cjs → vue-ui-table-BpSsgihB.cjs} +1 -1
  119. package/dist/{vue-ui-table-IJi0xaVg.js → vue-ui-table-JOi6x-Kt.js} +10 -10
  120. package/dist/{vue-ui-table-heatmap-Ls8_xq0D.js → vue-ui-table-heatmap-EeR8_0fs.js} +23 -23
  121. package/dist/{vue-ui-table-heatmap-BZNKXZNs.cjs → vue-ui-table-heatmap-fNf5Hgfn.cjs} +1 -1
  122. package/dist/{vue-ui-table-sparkline-BeuvdssX.js → vue-ui-table-sparkline-of9ZervK.js} +15 -15
  123. package/dist/{vue-ui-table-sparkline-BQFK30H1.cjs → vue-ui-table-sparkline-yjChfsNj.cjs} +1 -1
  124. package/dist/{vue-ui-thermometer-DKm8SXlE.cjs → vue-ui-thermometer-Ct59Zrkd.cjs} +1 -1
  125. package/dist/{vue-ui-thermometer-DPWIvG92.js → vue-ui-thermometer-Hb5jQa3y.js} +6 -6
  126. package/dist/{vue-ui-timer-CEzDvZf7.js → vue-ui-timer-Duo6PjNq.js} +5 -5
  127. package/dist/{vue-ui-timer-n6lv7oTx.cjs → vue-ui-timer-nIKem40S.cjs} +1 -1
  128. package/dist/{vue-ui-tiremarks-B33mHXZN.cjs → vue-ui-tiremarks-D5vYyYcq.cjs} +1 -1
  129. package/dist/{vue-ui-tiremarks-BUGoY22W.js → vue-ui-tiremarks-rxEA2WzL.js} +6 -6
  130. package/dist/{vue-ui-treemap-DPxBZUUr.cjs → vue-ui-treemap-DK5klTWq.cjs} +1 -1
  131. package/dist/{vue-ui-treemap-DmOYjJ_F.js → vue-ui-treemap-DWDrLYPR.js} +10 -10
  132. package/dist/{vue-ui-vertical-bar-BpVKdSY5.js → vue-ui-vertical-bar-3TzyIQBn.js} +10 -10
  133. package/dist/{vue-ui-vertical-bar-BJMYX8t4.cjs → vue-ui-vertical-bar-CCOjOr9t.cjs} +1 -1
  134. package/dist/{vue-ui-waffle-ULg6SwPx.js → vue-ui-waffle-CUiQJf4B.js} +23 -23
  135. package/dist/{vue-ui-waffle-DGcueccy.cjs → vue-ui-waffle-CzbWP2YI.cjs} +1 -1
  136. package/dist/{vue-ui-wheel-CWKq-CFW.cjs → vue-ui-wheel-BgLqSlSe.cjs} +1 -1
  137. package/dist/{vue-ui-wheel-DlmgZd-_.js → vue-ui-wheel-DJe1aYWh.js} +6 -6
  138. package/dist/vue-ui-word-cloud-CS4EPwJc.cjs +1 -0
  139. package/dist/{vue-ui-word-cloud-DWyboczt.js → vue-ui-word-cloud-ouNY0ixo.js} +75 -75
  140. package/dist/{vue-ui-xy-Cz81fw_E.cjs → vue-ui-xy-DkHIDMtO.cjs} +1 -1
  141. package/dist/{vue-ui-xy-canvas-B9cRe5gT.js → vue-ui-xy-canvas-CGG7Levw.js} +34 -34
  142. package/dist/{vue-ui-xy-canvas-GiuHOyj5.cjs → vue-ui-xy-canvas-iMF1sItL.cjs} +1 -1
  143. package/dist/{vue-ui-xy-V13Ns1gv.js → vue-ui-xy-iQJGfaFk.js} +28 -28
  144. package/package.json +1 -1
  145. package/dist/index-D09qCApg.cjs +0 -4
  146. package/dist/vue-ui-donut-n37BZPxr.cjs +0 -1
  147. package/dist/vue-ui-donut-sQunZI1L.js +0 -871
  148. package/dist/vue-ui-word-cloud-BhHWdmqP.cjs +0 -1
@@ -0,0 +1,999 @@
1
+ import { computed as b, ref as d, onMounted as Je, onBeforeUnmount as Ke, watch as Ne, openBlock as s, createElementBlock as r, normalizeClass as ie, normalizeStyle as Y, renderSlot as m, createBlock as H, createCommentVNode as v, unref as o, createSlots as Qe, withCtx as $, normalizeProps as Q, guardReactiveProps as Z, createVNode as Oe, createElementVNode as g, Fragment as w, renderList as A, toDisplayString as k, createTextVNode as Ae, nextTick as Ze, pushScopeId as et, popScopeId as tt } from "vue";
2
+ import { u as lt, o as at, e as De, g as ot, c as ut, b as st, d as Ie, p as G, m as nt, G as rt, f as P, X as it, s as ee, w as vt, j as ct, H as L, i as X, k as p, n as te, t as dt, a as ht, x as yt, q as ft, r as pt } from "./index-Bu852AzK.js";
3
+ import { t as gt, u as bt } from "./useResponsive-NZB-WLRF.js";
4
+ import { _ as mt } from "./Title-B6kWQmNb.js";
5
+ import { u as wt, U as kt } from "./usePrinter-CaNEdNUc.js";
6
+ import { D as xt } from "./DataTable-D1vDu_2B.js";
7
+ import { _ as _t } from "./Tooltip-Cwp4dS4t.js";
8
+ import { L as Ct } from "./Legend-CZk6McMv.js";
9
+ import $t from "./vue-ui-skeleton-B-obKEDg.js";
10
+ import Pt from "./vue-ui-accordion-CBwmD_zS.js";
11
+ import { u as Be } from "./useNestedProp-1sCLAHuR.js";
12
+ import { _ as Lt } from "./PackageVersion-DDKechCD.js";
13
+ import { _ as St } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const Ft = (U) => (et("data-v-2ebaf5df"), U = U(), tt(), U), zt = ["id"], Tt = ["xmlns", "viewBox"], Yt = { key: 0 }, Xt = ["id"], Nt = ["stop-color"], Ot = ["offset", "stop-color"], At = ["offset", "stop-color"], Dt = ["stop-color"], It = { key: 1 }, Bt = ["id", "cx", "cy"], Vt = ["stop-color", "stop-opacity"], Mt = ["stop-color"], Gt = ["id"], jt = ["id"], Ht = /* @__PURE__ */ Ft(() => /* @__PURE__ */ g("feColorMatrix", {
15
+ type: "saturate",
16
+ values: "0"
17
+ }, null, -1)), Ut = ["id"], Et = ["flood-color"], Rt = ["d", "stroke", "filter"], Wt = ["x1", "y1", "x2", "y2", "stroke", "filter"], qt = ["cx", "cy", "r", "fill", "filter"], Jt = ["stroke", "d"], Kt = ["d", "fill", "stroke", "stroke-width", "filter"], Qt = ["stroke", "d"], Zt = ["d", "fill", "stroke", "stroke-width", "filter"], el = ["cx", "cy", "r", "stroke"], tl = ["cx", "cy", "r", "fill"], ll = ["d", "fill", "onMouseenter", "onClick"], al = ["x", "y", "fill", "font-size"], ol = ["x", "y", "fill", "font-size"], ul = ["x", "y", "fill", "font-size"], sl = ["x", "y", "fill", "font-size"], nl = ["filter"], rl = { key: 0 }, il = ["x", "y"], vl = { key: 1 }, cl = ["cx", "cy", "fill", "filter", "onClick"], dl = ["cx", "cy", "fill", "filter", "onClick"], hl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], yl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], fl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], pl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], gl = { key: 2 }, bl = ["x", "y", "width"], ml = ["x", "y", "width"], wl = {
18
+ key: 3,
19
+ class: "vue-data-ui-watermark"
20
+ }, kl = ["onClick"], xl = {
21
+ key: 0,
22
+ style: { "font-variant-numeric": "tabular-nums" }
23
+ }, _l = { key: 1 }, Cl = ["innerHTML"], $l = {
24
+ __name: "vue-ui-donut",
25
+ props: {
26
+ config: {
27
+ type: Object,
28
+ default() {
29
+ return {};
30
+ }
31
+ },
32
+ dataset: {
33
+ type: Array,
34
+ default() {
35
+ return [];
36
+ }
37
+ }
38
+ },
39
+ emits: ["selectLegend", "selectDatapoint"],
40
+ setup(U, { expose: Ve, emit: ve }) {
41
+ const N = U, { vue_ui_donut: Me } = lt(), E = b({
42
+ get() {
43
+ return !!N.dataset && N.dataset.length;
44
+ },
45
+ set(l) {
46
+ return l;
47
+ }
48
+ }), R = d(null), ce = d(null), de = d(null), le = d(null), he = d(0), ye = d(0), fe = d(0);
49
+ Je(() => {
50
+ pe();
51
+ }), Ke(() => {
52
+ le.value && le.value.disconnect();
53
+ });
54
+ function pe() {
55
+ if (at(N.dataset) ? De({
56
+ componentName: "VueUiDonut",
57
+ type: "dataset"
58
+ }) : N.dataset.forEach((l, n) => {
59
+ ot({
60
+ datasetObject: l,
61
+ requiredAttributes: ["name", "values"]
62
+ }).forEach((t) => {
63
+ E.value = !1, De({
64
+ componentName: "VueUiDonut",
65
+ type: "datasetSerieAttribute",
66
+ property: t,
67
+ index: n
68
+ });
69
+ });
70
+ }), e.value.responsive) {
71
+ const l = gt(() => {
72
+ const { width: n, height: t } = bt({
73
+ chart: R.value,
74
+ title: e.value.style.chart.title.text ? ce.value : null,
75
+ legend: e.value.style.chart.legend.show ? de.value : null
76
+ });
77
+ u.value.width = n, u.value.height = t;
78
+ });
79
+ le.value = new ResizeObserver(l), le.value.observe(R.value.parentNode);
80
+ }
81
+ }
82
+ const x = d(ut()), Ge = d(null), oe = d(!1), ue = d(""), z = d(null), ge = d(0);
83
+ function be() {
84
+ const l = Be({
85
+ userConfig: N.config,
86
+ defaultConfig: Me
87
+ });
88
+ return l.theme ? {
89
+ ...Be({
90
+ userConfig: dt.vue_ui_donut[l.theme] || N.config,
91
+ defaultConfig: l
92
+ }),
93
+ customPalette: ht[l.theme] || G
94
+ } : l;
95
+ }
96
+ const e = b({
97
+ get: () => be(),
98
+ set: (l) => l
99
+ });
100
+ Ne(() => N.config, (l) => {
101
+ e.value = be(), pe(), he.value += 1, ye.value += 1, fe.value += 1;
102
+ }, { deep: !0 });
103
+ const { isPrinting: me, isImaging: we, generatePdf: ke, generateImage: xe } = wt({
104
+ elementId: `donut__${x.value}`,
105
+ fileName: e.value.style.chart.title.text || "vue-ui-donut"
106
+ }), _e = b(() => st(e.value.customPalette)), h = d({
107
+ dataLabels: {
108
+ show: e.value.style.chart.layout.labels.dataLabels.show
109
+ },
110
+ showTable: e.value.table.show,
111
+ showTooltip: e.value.style.chart.tooltip.show
112
+ }), u = d({
113
+ height: 360,
114
+ width: 512
115
+ }), W = b(() => {
116
+ const l = e.value.style.chart.layout.donut.strokeWidth / 512, n = u.value.width * l, t = n > F.value ? F.value : n;
117
+ return t < 24 ? 24 : t;
118
+ }), B = b(() => N.dataset.map((l, n) => ({
119
+ name: l.name,
120
+ color: Ie(l.color) || _e.value[n] || G[n] || G[n % G.length],
121
+ value: l.values.reduce((t, a) => t + a, 0),
122
+ absoluteValues: l.values,
123
+ comment: l.comment || ""
124
+ }))), S = d(B.value);
125
+ Ne(() => B.value, (l) => S.value = l);
126
+ function je() {
127
+ return B.value.map((l) => ({
128
+ name: l.name,
129
+ color: l.color,
130
+ value: l.value
131
+ }));
132
+ }
133
+ const O = d([]), Ce = d(null), $e = d(null), V = d(!1);
134
+ function Pe(l) {
135
+ const n = B.value.find((i, f) => f === l);
136
+ let a = S.value.find((i, f) => f === l).value;
137
+ if (O.value.includes(l)) {
138
+ let f = function() {
139
+ a > i ? (cancelAnimationFrame(Ce.value), S.value = S.value.map((y, re) => l === re ? {
140
+ ...y,
141
+ value: i
142
+ } : y), V.value = !1) : (V.value = !0, a += i * 0.025, S.value = S.value.map((y, re) => l === re ? {
143
+ ...y,
144
+ value: a
145
+ } : y), Ce.value = requestAnimationFrame(f));
146
+ };
147
+ O.value = O.value.filter((y) => y !== l);
148
+ const i = n.value;
149
+ f();
150
+ } else if (O.value.length < B.value.length - 1) {
151
+ let i = function() {
152
+ a < 0.1 ? (cancelAnimationFrame($e.value), O.value.push(l), S.value = S.value.map((f, y) => l === y ? {
153
+ ...f,
154
+ value: 0
155
+ } : f), V.value = !1) : (V.value = !0, a /= 1.1, S.value = S.value.map((f, y) => l === y ? {
156
+ ...f,
157
+ value: a
158
+ } : f), $e.value = requestAnimationFrame(i));
159
+ };
160
+ i();
161
+ }
162
+ ve("selectLegend", D.value.map((i) => ({
163
+ name: i.name,
164
+ color: i.color,
165
+ value: i.value
166
+ })));
167
+ }
168
+ const D = b(() => (S.value.forEach((l, n) => {
169
+ if ([null, void 0].includes(l.values))
170
+ return {
171
+ ...l,
172
+ values: []
173
+ };
174
+ }), S.value.map((l, n) => ({
175
+ ...l,
176
+ seriesIndex: n
177
+ })).filter((l, n) => !O.value.includes(n)))), Le = b(() => N.dataset.map((l, n) => ({
178
+ name: l.name,
179
+ color: Ie(l.color) || _e.value[n] || G[n] || G[n % G.length],
180
+ value: (l.values || []).reduce((t, a) => t + a, 0),
181
+ shape: "circle"
182
+ })).map((l, n) => ({
183
+ ...l,
184
+ proportion: l.value / N.dataset.map((t) => (t.values || []).reduce((a, i) => a + i, 0)).reduce((t, a) => t + a, 0),
185
+ opacity: O.value.includes(n) ? 0.5 : 1,
186
+ segregate: () => Pe(n),
187
+ isSegregated: O.value.includes(n)
188
+ }))), He = b(() => ({
189
+ cy: "donut-div-legend",
190
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
191
+ color: e.value.style.chart.legend.color,
192
+ fontSize: e.value.style.chart.legend.fontSize,
193
+ paddingBottom: 12,
194
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
195
+ })), F = b(() => {
196
+ const l = Math.min(u.value.width / 3, u.value.height / 3);
197
+ return l < 55 ? 55 : l;
198
+ }), C = b(() => nt({ series: D.value }, u.value.width / 2, u.value.height / 2, F.value, F.value, 1.99999, 2, 1, 360, 105.25, W.value)), c = b(() => {
199
+ const l = Math.max(...D.value.map((t) => t.value)), n = D.value.map((t) => t.value / l);
200
+ return rt({
201
+ series: n,
202
+ center: {
203
+ x: u.value.width / 2,
204
+ y: u.value.height / 2
205
+ },
206
+ maxRadius: Math.min(u.value.width, u.value.height) / 3
207
+ });
208
+ });
209
+ function j(l) {
210
+ return l.x > u.value.width / 2 + 6 ? "start" : l.x < u.value.width / 2 - 6 ? "end" : "middle";
211
+ }
212
+ function Ue(l) {
213
+ return l.middlePoint.y > u.value.height / 2 ? L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y : L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y - 100;
214
+ }
215
+ function T(l) {
216
+ return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
217
+ }
218
+ function se(l, n) {
219
+ const t = l.value / Ee(n);
220
+ return isNaN(t) ? 0 : X(
221
+ e.value.style.chart.layout.labels.percentage.formatter,
222
+ t * 100,
223
+ P({
224
+ v: t * 100,
225
+ s: "%",
226
+ r: e.value.style.chart.layout.labels.percentage.rounding
227
+ }),
228
+ { datapoint: l }
229
+ );
230
+ }
231
+ function Ee(l) {
232
+ return [...l].map((n) => n.value).reduce((n, t) => n + t, 0);
233
+ }
234
+ const _ = b(() => D.value.map((l) => l.value).reduce((l, n) => l + n, 0)), Se = b(() => _.value / D.value.length), ne = d(null), q = d(!1);
235
+ function Re({ datapoint: l, relativeIndex: n, seriesIndex: t, show: a = !1 }) {
236
+ ne.value = { datapoint: l, seriesIndex: t, config: e.value, series: B.value }, oe.value = a, z.value = n;
237
+ let i = "";
238
+ const f = e.value.style.chart.tooltip.customFormat;
239
+ if (q.value = !1, yt(f))
240
+ try {
241
+ const y = f({
242
+ seriesIndex: t,
243
+ datapoint: l,
244
+ series: B.value,
245
+ config: e.value
246
+ });
247
+ typeof y == "string" && (ue.value = y, q.value = !0);
248
+ } catch {
249
+ console.warn("Custom format cannot be applied."), q.value = !1;
250
+ }
251
+ if (!q.value) {
252
+ if (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, i += `<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="${l.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (i += `<b>${X(
253
+ e.value.style.chart.layout.labels.value.formatter,
254
+ l.value,
255
+ P({
256
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
257
+ v: l.value,
258
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
259
+ r: e.value.style.chart.tooltip.roundingValue
260
+ }),
261
+ {
262
+ datapoint: l,
263
+ relativeIndex: n,
264
+ seriesIndex: t
265
+ }
266
+ )}</b>`), e.value.style.chart.tooltip.showPercentage) {
267
+ const y = X(
268
+ e.value.style.chart.layout.labels.percentage.formatter,
269
+ l.proportion * 100,
270
+ P({
271
+ v: l.proportion * 100,
272
+ s: "%",
273
+ r: e.value.style.chart.tooltip.roundingPercentage
274
+ }),
275
+ {
276
+ datapoint: l,
277
+ relativeIndex: n,
278
+ seriesIndex: t
279
+ }
280
+ );
281
+ e.value.style.chart.tooltip.showValue ? i += `<span>(${y})</span></div>` : i += `<b>${y}</b></div>`;
282
+ }
283
+ e.value.style.chart.comments.showInTooltip && l.comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`), ue.value = `<div>${i}</div>`;
284
+ }
285
+ }
286
+ function J(l) {
287
+ return e.value.useBlurOnHover && ![null, void 0].includes(z.value) && z.value !== l ? `url(#blur_${x.value})` : "";
288
+ }
289
+ const I = b(() => {
290
+ const l = D.value.map((t) => ({
291
+ name: t.name,
292
+ color: t.color
293
+ })), n = D.value.map((t) => t.value);
294
+ return { head: l, body: n };
295
+ });
296
+ function Fe() {
297
+ Ze(() => {
298
+ const l = I.value.head.map((a, i) => [[
299
+ a.name
300
+ ], [I.value.body[i]], [isNaN(I.value.body[i] / _.value) ? "-" : I.value.body[i] / _.value * 100]]), n = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), t = ft(n);
301
+ pt({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-donut" });
302
+ });
303
+ }
304
+ const ae = b(() => {
305
+ const l = [
306
+ ' <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>',
307
+ P({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: _.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
308
+ "100%"
309
+ ], n = I.value.head.map((i, f) => {
310
+ const y = P({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: I.value.body[f], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
311
+ return [
312
+ {
313
+ color: i.color,
314
+ name: i.name
315
+ },
316
+ y,
317
+ isNaN(I.value.body[f] / _.value) ? "-" : (I.value.body[f] / _.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
318
+ ];
319
+ }), t = {
320
+ th: {
321
+ backgroundColor: e.value.table.th.backgroundColor,
322
+ color: e.value.table.th.color,
323
+ outline: e.value.table.th.outline
324
+ },
325
+ td: {
326
+ backgroundColor: e.value.table.td.backgroundColor,
327
+ color: e.value.table.td.color,
328
+ outline: e.value.table.td.outline
329
+ },
330
+ breakpoint: e.value.table.responsiveBreakpoint
331
+ };
332
+ return {
333
+ colNames: [
334
+ e.value.table.columnNames.series,
335
+ e.value.table.columnNames.value,
336
+ e.value.table.columnNames.percentage
337
+ ],
338
+ head: l,
339
+ body: n,
340
+ config: t
341
+ };
342
+ }), K = d(!1);
343
+ function We(l) {
344
+ K.value = l, ge.value += 1;
345
+ }
346
+ const ze = b(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
347
+ function qe(l) {
348
+ return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((n) => "-").join("");
349
+ }
350
+ function M(l, n) {
351
+ ve("selectDatapoint", { datapoint: l, index: n });
352
+ }
353
+ function Te() {
354
+ h.value.showTable = !h.value.showTable;
355
+ }
356
+ function Ye() {
357
+ h.value.dataLabels.show = !h.value.dataLabels.show;
358
+ }
359
+ function Xe() {
360
+ h.value.showTooltip = !h.value.showTooltip;
361
+ }
362
+ return Ve({
363
+ getData: je,
364
+ generatePdf: ke,
365
+ generateCsv: Fe,
366
+ generateImage: xe,
367
+ toggleTable: Te,
368
+ toggleLabels: Ye,
369
+ toggleTooltip: Xe
370
+ }), (l, n) => (s(), r("div", {
371
+ ref_key: "donutChart",
372
+ ref: R,
373
+ class: ie(`vue-ui-donut ${K.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
374
+ style: Y(`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}`),
375
+ id: `donut__${x.value}`
376
+ }, [
377
+ m(l.$slots, "userConfig", {}, void 0, !0),
378
+ e.value.style.chart.title.text ? (s(), r("div", {
379
+ key: 0,
380
+ ref_key: "chartTitle",
381
+ ref: ce,
382
+ style: "width:100%;background:transparent;padding-bottom:24px"
383
+ }, [
384
+ (s(), H(mt, {
385
+ key: `title_${he.value}`,
386
+ config: {
387
+ title: {
388
+ cy: "donut-div-title",
389
+ ...e.value.style.chart.title
390
+ },
391
+ subtitle: {
392
+ cy: "donut-div-subtitle",
393
+ ...e.value.style.chart.title.subtitle
394
+ }
395
+ }
396
+ }, null, 8, ["config"]))
397
+ ], 512)) : v("", !0),
398
+ e.value.userOptions.show && E.value ? (s(), H(kt, {
399
+ ref_key: "details",
400
+ ref: Ge,
401
+ key: `user_option_${ge.value}`,
402
+ backgroundColor: e.value.style.chart.backgroundColor,
403
+ color: e.value.style.chart.color,
404
+ isPrinting: o(me),
405
+ isImaging: o(we),
406
+ uid: x.value,
407
+ hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
408
+ hasPdf: e.value.userOptions.buttons.pdf,
409
+ hasImg: e.value.userOptions.buttons.img,
410
+ hasXls: e.value.userOptions.buttons.csv,
411
+ hasTable: e.value.userOptions.buttons.table,
412
+ hasLabel: e.value.userOptions.buttons.labels,
413
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
414
+ isFullscreen: K.value,
415
+ chartElement: R.value,
416
+ position: e.value.userOptions.position,
417
+ isTooltip: h.value.showTooltip,
418
+ titles: { ...e.value.userOptions.buttonTitles },
419
+ onToggleFullscreen: We,
420
+ onGeneratePdf: o(ke),
421
+ onGenerateCsv: Fe,
422
+ onGenerateImage: o(xe),
423
+ onToggleTable: Te,
424
+ onToggleLabels: Ye,
425
+ onToggleTooltip: Xe
426
+ }, Qe({ _: 2 }, [
427
+ l.$slots.optionTooltip ? {
428
+ name: "optionTooltip",
429
+ fn: $(() => [
430
+ m(l.$slots, "optionTooltip", {}, void 0, !0)
431
+ ]),
432
+ key: "0"
433
+ } : void 0,
434
+ l.$slots.optionPdf ? {
435
+ name: "optionPdf",
436
+ fn: $(() => [
437
+ m(l.$slots, "optionPdf", {}, void 0, !0)
438
+ ]),
439
+ key: "1"
440
+ } : void 0,
441
+ l.$slots.optionCsv ? {
442
+ name: "optionCsv",
443
+ fn: $(() => [
444
+ m(l.$slots, "optionCsv", {}, void 0, !0)
445
+ ]),
446
+ key: "2"
447
+ } : void 0,
448
+ l.$slots.optionImg ? {
449
+ name: "optionImg",
450
+ fn: $(() => [
451
+ m(l.$slots, "optionImg", {}, void 0, !0)
452
+ ]),
453
+ key: "3"
454
+ } : void 0,
455
+ l.$slots.optionTable ? {
456
+ name: "optionTable",
457
+ fn: $(() => [
458
+ m(l.$slots, "optionTable", {}, void 0, !0)
459
+ ]),
460
+ key: "4"
461
+ } : void 0,
462
+ l.$slots.optionLabels ? {
463
+ name: "optionLabels",
464
+ fn: $(() => [
465
+ m(l.$slots, "optionLabels", {}, void 0, !0)
466
+ ]),
467
+ key: "5"
468
+ } : void 0,
469
+ l.$slots.optionFullscreen ? {
470
+ name: "optionFullscreen",
471
+ fn: $(({ toggleFullscreen: t, isFullscreen: a }) => [
472
+ m(l.$slots, "optionFullscreen", Q(Z({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
473
+ ]),
474
+ key: "6"
475
+ } : void 0
476
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
477
+ E.value ? (s(), r("svg", {
478
+ key: 2,
479
+ xmlns: o(it),
480
+ class: ie({ "vue-data-ui-fullscreen--on": K.value, "vue-data-ui-fulscreen--off": !K.value }),
481
+ viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
482
+ style: Y(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
483
+ }, [
484
+ Oe(Lt),
485
+ e.value.type === "classic" ? (s(), r("defs", Yt, [
486
+ e.value.style.chart.useGradient ? (s(), r("radialGradient", {
487
+ key: 0,
488
+ id: `gradient_${x.value}`
489
+ }, [
490
+ g("stop", {
491
+ offset: "0%",
492
+ "stop-color": o(ee)(e.value.style.chart.backgroundColor, 0),
493
+ "stop-opacity": "0"
494
+ }, null, 8, Nt),
495
+ g("stop", {
496
+ offset: `${(1 - W.value / F.value) * 100}%`,
497
+ "stop-color": o(ee)("#FFFFFF", 0),
498
+ "stop-opacity": "0"
499
+ }, null, 8, Ot),
500
+ g("stop", {
501
+ offset: `${(1 - W.value / F.value / 2) * 100}%`,
502
+ "stop-color": o(ee)("#FFFFFF", e.value.style.chart.gradientIntensity)
503
+ }, null, 8, At),
504
+ g("stop", {
505
+ offset: "100%",
506
+ "stop-color": o(ee)(e.value.style.chart.backgroundColor, 0),
507
+ "stop-opacity": "0"
508
+ }, null, 8, Dt)
509
+ ], 8, Xt)) : v("", !0)
510
+ ])) : v("", !0),
511
+ e.value.type === "polar" ? (s(), r("defs", It, [
512
+ (s(!0), r(w, null, A(c.value, (t, a) => (s(), r("radialGradient", {
513
+ id: `polar_gradient_${a}_${x.value}`,
514
+ cx: t.middlePoint.x / u.value.width * 100 + "%",
515
+ cy: t.middlePoint.y / u.value.height * 100 + "%",
516
+ r: "62%"
517
+ }, [
518
+ g("stop", {
519
+ offset: "0%",
520
+ "stop-color": o(vt)(C.value[a].color, 0.05),
521
+ "stop-opacity": e.value.style.chart.gradientIntensity / 100
522
+ }, null, 8, Vt),
523
+ g("stop", {
524
+ offset: "100%",
525
+ "stop-color": C.value[a].color
526
+ }, null, 8, Mt)
527
+ ], 8, Bt))), 256))
528
+ ])) : v("", !0),
529
+ g("defs", null, [
530
+ g("filter", {
531
+ id: `blur_${x.value}`,
532
+ x: "-50%",
533
+ y: "-50%",
534
+ width: "200%",
535
+ height: "200%"
536
+ }, [
537
+ g("feGaussianBlur", {
538
+ in: "SourceGraphic",
539
+ stdDeviation: 2,
540
+ id: `blur_std_${x.value}`
541
+ }, null, 8, jt),
542
+ Ht
543
+ ], 8, Gt),
544
+ g("filter", {
545
+ id: `shadow_${x.value}`,
546
+ "color-interpolation-filters": "sRGB"
547
+ }, [
548
+ g("feDropShadow", {
549
+ dx: "0",
550
+ dy: "0",
551
+ stdDeviation: "10",
552
+ "flood-opacity": "0.5",
553
+ "flood-color": e.value.style.chart.layout.donut.shadowColor
554
+ }, null, 8, Et)
555
+ ], 8, Ut)
556
+ ]),
557
+ e.value.type === "classic" ? (s(!0), r(w, { key: 2 }, A(C.value, (t, a) => (s(), r("g", null, [
558
+ T(t) && h.value.dataLabels.show ? (s(), r("path", {
559
+ key: 0,
560
+ d: o(ct)(t, { x: u.value.width / 2, y: u.value.height / 2 }, 16, 16, !1, !1, W.value),
561
+ stroke: t.color,
562
+ "stroke-width": "1",
563
+ "stroke-linecap": "round",
564
+ "stroke-linejoin": "round",
565
+ fill: "none",
566
+ filter: J(a)
567
+ }, null, 8, Rt)) : v("", !0)
568
+ ]))), 256)) : v("", !0),
569
+ e.value.type === "polar" ? (s(!0), r(w, { key: 3 }, A(C.value, (t, a) => (s(), r("g", null, [
570
+ T(t) && h.value.dataLabels.show ? (s(), r("line", {
571
+ key: 0,
572
+ x1: o(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
573
+ y1: o(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y,
574
+ x2: c.value[a].middlePoint.x,
575
+ y2: c.value[a].middlePoint.y,
576
+ stroke: t.color,
577
+ "stroke-width": "1",
578
+ "stroke-linecap": "round",
579
+ "stroke-linejoin": "round",
580
+ fill: "none",
581
+ filter: J(a)
582
+ }, null, 8, Wt)) : v("", !0)
583
+ ]))), 256)) : v("", !0),
584
+ e.value.type === "classic" ? (s(), r("circle", {
585
+ key: 4,
586
+ cx: u.value.width / 2,
587
+ cy: u.value.height / 2,
588
+ r: F.value <= 0 ? 10 : F.value,
589
+ fill: e.value.style.chart.backgroundColor,
590
+ filter: e.value.style.chart.layout.donut.useShadow ? `url(#shadow_${x.value})` : ""
591
+ }, null, 8, qt)) : v("", !0),
592
+ _.value && e.value.type === "classic" ? (s(), r(w, { key: 5 }, [
593
+ (s(!0), r(w, null, A(C.value, (t, a) => (s(), r("path", {
594
+ stroke: e.value.style.chart.backgroundColor,
595
+ d: t.arcSlice,
596
+ fill: "#FFFFFF"
597
+ }, null, 8, Jt))), 256)),
598
+ (s(!0), r(w, null, A(C.value, (t, a) => (s(), r("path", {
599
+ class: "vue-ui-donut-arc-path",
600
+ d: t.arcSlice,
601
+ fill: o(ee)(t.color, 80),
602
+ stroke: e.value.style.chart.backgroundColor,
603
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth,
604
+ filter: J(a)
605
+ }, null, 8, Kt))), 256))
606
+ ], 64)) : v("", !0),
607
+ _.value && e.value.type === "polar" ? (s(), r(w, { key: 6 }, [
608
+ (s(!0), r(w, null, A(C.value, (t, a) => (s(), r("path", {
609
+ stroke: e.value.style.chart.backgroundColor,
610
+ d: c.value[a].path,
611
+ fill: "#FFFFFF"
612
+ }, null, 8, Qt))), 256)),
613
+ (s(!0), r(w, null, A(C.value, (t, a) => (s(), r("path", {
614
+ class: "vue-ui-donut-arc-path",
615
+ d: c.value[a].path,
616
+ fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${x.value})` : t.color,
617
+ stroke: e.value.style.chart.backgroundColor,
618
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth,
619
+ filter: J(a)
620
+ }, null, 8, Zt))), 256))
621
+ ], 64)) : (s(), r("circle", {
622
+ key: 7,
623
+ cx: u.value.width / 2,
624
+ cy: u.value.height / 2,
625
+ r: F.value <= 0 ? 10 : F.value,
626
+ fill: "transparent",
627
+ stroke: e.value.style.chart.backgroundColor
628
+ }, null, 8, el)),
629
+ e.value.style.chart.useGradient && e.value.type === "classic" ? (s(), r("circle", {
630
+ key: 8,
631
+ cx: u.value.width / 2,
632
+ cy: u.value.height / 2,
633
+ r: (
634
+ /* This might require adjustments */
635
+ F.value <= 0 ? 10 : F.value
636
+ ),
637
+ fill: `url(#gradient_${x.value})`
638
+ }, null, 8, tl)) : v("", !0),
639
+ _.value ? (s(!0), r(w, { key: 9 }, A(C.value, (t, a) => (s(), r("path", {
640
+ "data-cy-donut-trap": "",
641
+ d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
642
+ fill: z.value === a ? "rgba(0,0,0,0.1)" : "transparent",
643
+ onMouseenter: (i) => Re({
644
+ datapoint: t,
645
+ relativeIndex: a,
646
+ seriesIndex: t.seriesIndex,
647
+ show: !0
648
+ }),
649
+ onMouseleave: n[0] || (n[0] = (i) => {
650
+ oe.value = !1, z.value = null;
651
+ }),
652
+ onClick: (i) => M(t, a)
653
+ }, null, 40, ll))), 256)) : v("", !0),
654
+ e.value.type === "classic" ? (s(), r(w, { key: 10 }, [
655
+ e.value.style.chart.layout.labels.hollow.total.show ? (s(), r("text", {
656
+ key: 0,
657
+ "text-anchor": "middle",
658
+ x: u.value.width / 2,
659
+ y: u.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,
660
+ fill: e.value.style.chart.layout.labels.hollow.total.color,
661
+ "font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
662
+ style: Y(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
663
+ }, k(e.value.style.chart.layout.labels.hollow.total.text), 13, al)) : v("", !0),
664
+ e.value.style.chart.layout.labels.hollow.total.show ? (s(), r("text", {
665
+ key: 1,
666
+ "text-anchor": "middle",
667
+ x: u.value.width / 2,
668
+ y: u.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,
669
+ fill: e.value.style.chart.layout.labels.hollow.total.value.color,
670
+ "font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
671
+ style: Y(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
672
+ }, k(o(X)(
673
+ e.value.style.chart.layout.labels.hollow.total.value.formatter,
674
+ _.value,
675
+ o(P)({
676
+ p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
677
+ v: _.value,
678
+ s: e.value.style.chart.layout.labels.hollow.total.value.suffix
679
+ })
680
+ )), 13, ol)) : v("", !0),
681
+ e.value.style.chart.layout.labels.hollow.average.show ? (s(), r("text", {
682
+ key: 2,
683
+ "text-anchor": "middle",
684
+ x: u.value.width / 2,
685
+ y: u.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,
686
+ fill: e.value.style.chart.layout.labels.hollow.average.color,
687
+ "font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
688
+ style: Y(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
689
+ }, k(e.value.style.chart.layout.labels.hollow.average.text), 13, ul)) : v("", !0),
690
+ e.value.style.chart.layout.labels.hollow.average.show ? (s(), r("text", {
691
+ key: 3,
692
+ "text-anchor": "middle",
693
+ x: u.value.width / 2,
694
+ y: u.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,
695
+ fill: e.value.style.chart.layout.labels.hollow.average.value.color,
696
+ "font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
697
+ style: Y(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
698
+ }, k(V.value ? "--" : o(X)(
699
+ e.value.style.chart.layout.labels.hollow.average.value.formatter,
700
+ Se.value,
701
+ o(P)({
702
+ p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
703
+ v: Se.value,
704
+ s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
705
+ r: e.value.style.chart.layout.labels.hollow.average.value.rounding
706
+ })
707
+ )), 13, sl)) : v("", !0)
708
+ ], 64)) : v("", !0),
709
+ (s(!0), r(w, null, A(C.value, (t, a) => (s(), r("g", {
710
+ filter: J(a),
711
+ class: ie({ animated: e.value.useCssAnimation })
712
+ }, [
713
+ e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), r("g", rl, [
714
+ (s(), r("foreignObject", {
715
+ x: o(p)(t, !0).anchor === "end" ? o(p)(t).x - 120 : o(p)(t, !0).anchor === "middle" ? o(p)(t).x - 60 : o(p)(t).x,
716
+ y: o(te)(t) - (ze.value ? 20 : 0),
717
+ width: "120",
718
+ height: "60",
719
+ style: { overflow: "visible" }
720
+ }, [
721
+ g("div", null, [
722
+ m(l.$slots, "dataLabel", Q(Z({
723
+ datapoint: t,
724
+ isBlur: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === a,
725
+ isSafari: ze.value,
726
+ isVisible: T(t) && h.value.dataLabels.show,
727
+ textAlign: o(p)(t, !0, 16, !0).anchor,
728
+ flexAlign: o(p)(t, !0, 16).anchor,
729
+ percentage: se(t, C.value)
730
+ })), void 0, !0)
731
+ ])
732
+ ], 8, il))
733
+ ])) : (s(), r("g", vl, [
734
+ e.value.type === "classic" ? (s(), r(w, { key: 0 }, [
735
+ T(t) && h.value.dataLabels.show ? (s(), r("circle", {
736
+ key: 0,
737
+ cx: o(p)(t).x,
738
+ cy: o(te)(t) - 3.5,
739
+ fill: t.color,
740
+ r: 3,
741
+ filter: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === a ? "" : `url(#blur_${x.value})`,
742
+ onClick: (i) => M(t, a)
743
+ }, null, 8, cl)) : v("", !0)
744
+ ], 64)) : v("", !0),
745
+ e.value.type === "polar" ? (s(), r(w, { key: 1 }, [
746
+ T(t) && h.value.dataLabels.show ? (s(), r("circle", {
747
+ key: 0,
748
+ cx: o(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
749
+ cy: o(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y,
750
+ fill: t.color,
751
+ r: 3,
752
+ filter: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === a ? "" : `url(#blur_${x.value})`,
753
+ onClick: (i) => M(t, a)
754
+ }, null, 8, dl)) : v("", !0)
755
+ ], 64)) : v("", !0),
756
+ e.value.type === "classic" ? (s(), r(w, { key: 2 }, [
757
+ T(t) && h.value.dataLabels.show ? (s(), r("text", {
758
+ key: 0,
759
+ "text-anchor": o(p)(t, !0, 12).anchor,
760
+ x: o(p)(t, !0, 12).x,
761
+ y: o(te)(t),
762
+ fill: e.value.style.chart.layout.labels.percentage.color,
763
+ "font-size": e.value.style.chart.layout.labels.percentage.fontSize,
764
+ style: Y(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
765
+ onClick: (i) => M(t, a)
766
+ }, k(se(t, C.value)) + " " + k(e.value.style.chart.layout.labels.value.show ? `(${o(X)(
767
+ e.value.style.chart.layout.labels.value.formatter,
768
+ t.value,
769
+ o(P)({
770
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
771
+ v: t.value,
772
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
773
+ r: e.value.style.chart.layout.labels.value.rounding
774
+ }),
775
+ { datapoint: t }
776
+ )})` : ""), 13, hl)) : v("", !0),
777
+ T(t) && h.value.dataLabels.show ? (s(), r("text", {
778
+ key: 1,
779
+ "text-anchor": o(p)(t).anchor,
780
+ x: o(p)(t, !0, 12).x,
781
+ y: o(te)(t) + e.value.style.chart.layout.labels.percentage.fontSize,
782
+ fill: e.value.style.chart.layout.labels.name.color,
783
+ "font-size": e.value.style.chart.layout.labels.name.fontSize,
784
+ style: Y(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
785
+ onClick: (i) => M(t, a)
786
+ }, k(t.name), 13, yl)) : v("", !0)
787
+ ], 64)) : v("", !0),
788
+ e.value.type === "polar" ? (s(), r(w, { key: 3 }, [
789
+ T(t) && h.value.dataLabels.show ? (s(), r("text", {
790
+ key: 0,
791
+ "text-anchor": j(c.value[a].middlePoint),
792
+ x: o(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
793
+ y: o(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y,
794
+ fill: e.value.style.chart.layout.labels.percentage.color,
795
+ "font-size": e.value.style.chart.layout.labels.percentage.fontSize,
796
+ style: Y(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
797
+ onClick: (i) => M(t, a)
798
+ }, k(se(t, C.value)) + " " + k(e.value.style.chart.layout.labels.value.show ? `(${o(X)(
799
+ e.value.style.chart.layout.labels.value.formatter,
800
+ t.value,
801
+ o(P)({
802
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
803
+ v: t.value,
804
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
805
+ r: e.value.style.chart.layout.labels.value.rounding
806
+ }),
807
+ { datapoint: t }
808
+ )})` : ""), 13, fl)) : v("", !0),
809
+ T(t) && h.value.dataLabels.show ? (s(), r("text", {
810
+ key: 1,
811
+ "text-anchor": j(c.value[a].middlePoint),
812
+ x: o(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
813
+ y: o(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y + e.value.style.chart.layout.labels.percentage.fontSize,
814
+ fill: e.value.style.chart.layout.labels.name.color,
815
+ "font-size": e.value.style.chart.layout.labels.name.fontSize,
816
+ style: Y(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
817
+ onClick: (i) => M(t, a)
818
+ }, k(t.name), 13, pl)) : v("", !0)
819
+ ], 64)) : v("", !0)
820
+ ])),
821
+ h.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (s(), r("g", gl, [
822
+ T(t) && e.value.type === "classic" ? (s(), r("foreignObject", {
823
+ key: 0,
824
+ x: e.value.style.chart.comments.offsetX + (o(p)(t, !0).anchor === "end" ? o(p)(t).x - e.value.style.chart.comments.width : o(p)(t, !0).anchor === "middle" ? o(p)(t).x - e.value.style.chart.comments.width / 2 : o(p)(t).x),
825
+ y: o(te)(t) + 24 + e.value.style.chart.comments.offsetY,
826
+ width: e.value.style.chart.comments.width,
827
+ height: "200",
828
+ style: { overflow: "visible", "pointer-events": "none" }
829
+ }, [
830
+ g("div", null, [
831
+ m(l.$slots, "plot-comment", {
832
+ plot: { ...t, textAlign: o(p)(t, !0, 16, !0).anchor, flexAlign: o(p)(t, !0, 16).anchor }
833
+ }, void 0, !0)
834
+ ])
835
+ ], 8, bl)) : v("", !0),
836
+ T(t) && e.value.type === "polar" ? (s(), r("foreignObject", {
837
+ key: 1,
838
+ x: e.value.style.chart.comments.offsetX + (j(c.value[a].middlePoint) === "end" ? o(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x - e.value.style.chart.comments.width : j(c.value[a].middlePoint) === "middle" ? o(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : o(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x),
839
+ y: Ue(c.value[a]) + e.value.style.chart.comments.offsetY,
840
+ width: e.value.style.chart.comments.width,
841
+ height: "200",
842
+ style: { overflow: "visible", "pointer-events": "none" }
843
+ }, [
844
+ g("div", null, [
845
+ m(l.$slots, "plot-comment", {
846
+ plot: { ...t, textAlign: j(c.value[a].middlePoint), flexAlign: j(c.value[a].middlePoint) }
847
+ }, void 0, !0)
848
+ ])
849
+ ], 8, ml)) : v("", !0)
850
+ ])) : v("", !0)
851
+ ], 10, nl))), 256)),
852
+ m(l.$slots, "svg", { svg: u.value }, void 0, !0)
853
+ ], 14, Tt)) : v("", !0),
854
+ l.$slots.watermark ? (s(), r("div", wl, [
855
+ m(l.$slots, "watermark", Q(Z({ isPrinting: o(me) || o(we) })), void 0, !0)
856
+ ])) : v("", !0),
857
+ E.value ? v("", !0) : (s(), H($t, {
858
+ key: 4,
859
+ config: {
860
+ type: "donut",
861
+ style: {
862
+ backgroundColor: e.value.style.chart.backgroundColor,
863
+ donut: {
864
+ color: "#CCCCCC",
865
+ strokeWidth: W.value * 0.8
866
+ }
867
+ }
868
+ }
869
+ }, null, 8, ["config"])),
870
+ g("div", {
871
+ ref_key: "chartLegend",
872
+ ref: de
873
+ }, [
874
+ e.value.style.chart.legend.show ? (s(), H(Ct, {
875
+ key: `legend_${fe.value}`,
876
+ legendSet: Le.value,
877
+ config: He.value,
878
+ onClickMarker: n[1] || (n[1] = ({ i: t }) => Pe(t))
879
+ }, {
880
+ item: $(({ legend: t, index: a }) => [
881
+ g("div", {
882
+ onClick: (i) => t.segregate(),
883
+ style: Y(`opacity:${O.value.includes(a) ? 0.5 : 1}`)
884
+ }, [
885
+ Ae(k(t.name) + ": " + k(o(X)(
886
+ e.value.style.chart.layout.labels.value.formatter,
887
+ t.value,
888
+ o(P)({
889
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
890
+ v: t.value,
891
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
892
+ r: e.value.style.chart.legend.roundingValue
893
+ }),
894
+ {
895
+ datapoint: t,
896
+ index: a
897
+ }
898
+ )) + " ", 1),
899
+ O.value.includes(a) ? (s(), r("span", _l, " ( " + k(qe(t.proportion * 100)) + " % ) ", 1)) : (s(), r("span", xl, " (" + k(isNaN(t.value / _.value) ? "-" : o(X)(
900
+ e.value.style.chart.layout.labels.percentage.formatter,
901
+ V.value ? t.proportion * 100 : t.value / _.value * 100,
902
+ o(P)({
903
+ v: V.value ? t.proportion * 100 : t.value / _.value * 100,
904
+ s: "%",
905
+ r: e.value.style.chart.legend.roundingPercentage
906
+ })
907
+ )) + ") ", 1))
908
+ ], 12, kl)
909
+ ]),
910
+ _: 1
911
+ }, 8, ["legendSet", "config"])) : v("", !0),
912
+ m(l.$slots, "legend", { legend: Le.value }, void 0, !0)
913
+ ], 512),
914
+ Oe(_t, {
915
+ show: h.value.showTooltip && oe.value,
916
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
917
+ color: e.value.style.chart.tooltip.color,
918
+ fontSize: e.value.style.chart.tooltip.fontSize,
919
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
920
+ borderColor: e.value.style.chart.tooltip.borderColor,
921
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
922
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
923
+ position: e.value.style.chart.tooltip.position,
924
+ offsetY: e.value.style.chart.tooltip.offsetY,
925
+ parent: R.value,
926
+ content: ue.value,
927
+ isCustom: q.value
928
+ }, {
929
+ "tooltip-before": $(() => [
930
+ m(l.$slots, "tooltip-before", Q(Z({ ...ne.value })), void 0, !0)
931
+ ]),
932
+ "tooltip-after": $(() => [
933
+ m(l.$slots, "tooltip-after", Q(Z({ ...ne.value })), void 0, !0)
934
+ ]),
935
+ _: 3
936
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
937
+ E.value ? (s(), H(Pt, {
938
+ key: 5,
939
+ hideDetails: "",
940
+ config: {
941
+ open: h.value.showTable,
942
+ maxHeight: 1e4,
943
+ body: {
944
+ backgroundColor: e.value.style.chart.backgroundColor,
945
+ color: e.value.style.chart.color
946
+ },
947
+ head: {
948
+ backgroundColor: e.value.style.chart.backgroundColor,
949
+ color: e.value.style.chart.color
950
+ }
951
+ }
952
+ }, {
953
+ content: $(() => [
954
+ (s(), H(xt, {
955
+ key: `table_${ye.value}`,
956
+ colNames: ae.value.colNames,
957
+ head: ae.value.head,
958
+ body: ae.value.body,
959
+ config: ae.value.config,
960
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
961
+ onClose: n[2] || (n[2] = (t) => h.value.showTable = !1)
962
+ }, {
963
+ th: $(({ th: t }) => [
964
+ g("div", {
965
+ innerHTML: t,
966
+ style: { display: "flex", "align-items": "center" }
967
+ }, null, 8, Cl)
968
+ ]),
969
+ td: $(({ td: t }) => [
970
+ Ae(k(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : o(X)(
971
+ e.value.style.chart.layout.labels.percentage.formatter,
972
+ t,
973
+ o(P)({
974
+ v: t,
975
+ s: "%",
976
+ r: e.value.style.chart.layout.labels.percentage.rounding
977
+ })
978
+ ) : o(X)(
979
+ e.value.style.chart.layout.labels.value.formatter,
980
+ t,
981
+ o(P)({
982
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
983
+ v: t,
984
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
985
+ r: e.value.style.chart.layout.labels.value.rounding
986
+ })
987
+ )), 1)
988
+ ]),
989
+ _: 1
990
+ }, 8, ["colNames", "head", "body", "config", "title"]))
991
+ ]),
992
+ _: 1
993
+ }, 8, ["config"])) : v("", !0)
994
+ ], 14, zt));
995
+ }
996
+ }, Bl = /* @__PURE__ */ St($l, [["__scopeId", "data-v-2ebaf5df"]]);
997
+ export {
998
+ Bl as default
999
+ };