vue-data-ui 2.4.63 → 2.4.65

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 (165) hide show
  1. package/README.md +66 -34
  2. package/dist/{Arrow-BpZBF7Ak.cjs → Arrow-BKPURRQ6.cjs} +1 -1
  3. package/dist/{Arrow-nOy23OOV.js → Arrow-C7ihyW4O.js} +1 -1
  4. package/dist/{BaseIcon-rzIvDo2Q.cjs → BaseIcon-CyTdOpDr.cjs} +1 -1
  5. package/dist/{BaseIcon-CrqNvGTs.js → BaseIcon-DpaRUsHC.js} +1 -1
  6. package/dist/{DataTable-CCJGHIVo.cjs → DataTable-CwzQ-L0W.cjs} +1 -1
  7. package/dist/{DataTable-BBh7_ttv.js → DataTable-DX_jYNWG.js} +2 -2
  8. package/dist/Legend-BMTBtkoQ.cjs +1 -0
  9. package/dist/Legend-DGUxLqhs.js +70 -0
  10. package/dist/{PackageVersion-dR8EUy_P.js → PackageVersion-B9_Ed72C.js} +1 -1
  11. package/dist/{PackageVersion-eZ5Dmuid.cjs → PackageVersion-D_9QTWVm.cjs} +1 -1
  12. package/dist/{PenAndPaper-D_w2N2qM.cjs → PenAndPaper-CfGYucSm.cjs} +1 -1
  13. package/dist/{PenAndPaper-CrXlqi9I.js → PenAndPaper-CzjoEhsO.js} +3 -3
  14. package/dist/{Shape-qkkvCKyp.cjs → Shape-CZB2KQ0L.cjs} +1 -1
  15. package/dist/{Shape-CwmKWYzq.js → Shape-aXd72O71.js} +1 -1
  16. package/dist/{Slicer-oNEtv1s3.cjs → Slicer-ChxjRhai.cjs} +1 -1
  17. package/dist/{Slicer-DvdU-uf8.js → Slicer-CopZgIzh.js} +2 -2
  18. package/dist/{Title-CoNtoGH9.cjs → Title-BnRtxxP4.cjs} +1 -1
  19. package/dist/{Title-obqvTiXP.js → Title-DyUTj8GI.js} +1 -1
  20. package/dist/{Tooltip-BK-ACGDE.js → Tooltip-B-0uEV3l.js} +1 -1
  21. package/dist/{Tooltip-Dz4wVJkz.cjs → Tooltip-CUoQNXZK.cjs} +1 -1
  22. package/dist/documentation/installation.md +34 -34
  23. package/dist/{index-Z_vzxZTo.js → index-BVNcFEqn.js} +398 -393
  24. package/dist/{index-ChOY3hT9.cjs → index-CKgv8c-A.cjs} +5 -5
  25. package/dist/style.css +1 -1
  26. package/dist/{useNestedProp-CA8PjFJH.cjs → useNestedProp-0Mn5Z6Ae.cjs} +1 -1
  27. package/dist/{useNestedProp-Buhi5uyL.js → useNestedProp-D79dWdel.js} +1 -1
  28. package/dist/{usePrinter-Ck0oiMlt.js → usePrinter-Bcfs_I6G.js} +1 -1
  29. package/dist/{usePrinter-c3c7_uAW.cjs → usePrinter-Gkda9yEJ.cjs} +1 -1
  30. package/dist/{vue-data-ui-BGng_wXI.js → vue-data-ui-CXxR_hXg.js} +60 -60
  31. package/dist/{vue-data-ui-CihfnXFF.cjs → vue-data-ui-DAwVdbN1.cjs} +1 -1
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +9 -9
  34. package/dist/{vue-ui-3d-bar-BsxFEhMN.cjs → vue-ui-3d-bar-baVCskbW.cjs} +1 -1
  35. package/dist/{vue-ui-3d-bar-B7k4LzL1.js → vue-ui-3d-bar-mxTzin_H.js} +9 -9
  36. package/dist/{vue-ui-accordion-CV2-8b1O.js → vue-ui-accordion-GNblUy42.js} +3 -3
  37. package/dist/{vue-ui-accordion-CZ8AlriN.cjs → vue-ui-accordion-xV0it5je.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-Bc4DaLIy.js → vue-ui-age-pyramid-DFBuvQgd.js} +10 -10
  39. package/dist/{vue-ui-age-pyramid-C1crnKk7.cjs → vue-ui-age-pyramid-ULh6qSJs.cjs} +1 -1
  40. package/dist/{vue-ui-annotator-DNKcAaEh.cjs → vue-ui-annotator-C89rtAuX.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-DLbAn_Mz.js → vue-ui-annotator-XbCqxBQ0.js} +1 -1
  42. package/dist/{vue-ui-bullet-ClODxNrk.js → vue-ui-bullet-D_CS85II.js} +8 -8
  43. package/dist/{vue-ui-bullet-CEO3AsWC.cjs → vue-ui-bullet-DxRqDaiw.cjs} +1 -1
  44. package/dist/{vue-ui-candlestick-DI7t6jqz.js → vue-ui-candlestick-C8mUQTPF.js} +11 -11
  45. package/dist/{vue-ui-candlestick-B00zQB4B.cjs → vue-ui-candlestick-CZxpFMKR.cjs} +1 -1
  46. package/dist/{vue-ui-carousel-table-5jXlkslq.js → vue-ui-carousel-table-D5iLQe38.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-Bm2D_0pZ.cjs → vue-ui-carousel-table-DKcc-jNW.cjs} +1 -1
  48. package/dist/{vue-ui-chestnut-DP6-Gie6.cjs → vue-ui-chestnut-BFV6pTfc.cjs} +1 -1
  49. package/dist/{vue-ui-chestnut-CRZsXRUH.js → vue-ui-chestnut-BqGCLMiu.js} +8 -8
  50. package/dist/{vue-ui-cursor-BGe0gZK8.cjs → vue-ui-cursor-BJjzKpLm.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-DA8bsmEc.js → vue-ui-cursor-BysQ-bDH.js} +2 -2
  52. package/dist/{vue-ui-dashboard-D2v4oSiB.cjs → vue-ui-dashboard-C0L_0gyc.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-BZD-6Pz7.js → vue-ui-dashboard-zrJGrAmc.js} +2 -2
  54. package/dist/{vue-ui-digits-CKvrL9Wc.js → vue-ui-digits-B5P9UheE.js} +2 -2
  55. package/dist/{vue-ui-digits-DC8ZuHOj.cjs → vue-ui-digits-BG_xts2G.cjs} +1 -1
  56. package/dist/vue-ui-donut-7tNjrx1E.js +1173 -0
  57. package/dist/vue-ui-donut-B9M9CW9D.cjs +1 -0
  58. package/dist/{vue-ui-donut-evolution-CBsxmrTO.js → vue-ui-donut-evolution-C7FpJ59u.js} +11 -11
  59. package/dist/{vue-ui-donut-evolution-AlCGLfzy.cjs → vue-ui-donut-evolution-CEvGFdxK.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-DB7jNjQP.js → vue-ui-dumbbell-CdxHbLz6.js} +10 -10
  61. package/dist/{vue-ui-dumbbell-B9cELz3z.cjs → vue-ui-dumbbell-DP27C8NG.cjs} +1 -1
  62. package/dist/{vue-ui-flow-Cw1Vfk_e.js → vue-ui-flow-cKQSDKfP.js} +9 -9
  63. package/dist/{vue-ui-flow-CCM51fzQ.cjs → vue-ui-flow-yW5Pa_MJ.cjs} +1 -1
  64. package/dist/{vue-ui-funnel--4JhwVwW.cjs → vue-ui-funnel-73aPtRj5.cjs} +1 -1
  65. package/dist/{vue-ui-funnel-CU72MuGg.js → vue-ui-funnel-qPYVhQpD.js} +9 -9
  66. package/dist/{vue-ui-galaxy-BKInqdOk.js → vue-ui-galaxy-2SRA_RYP.js} +11 -11
  67. package/dist/{vue-ui-galaxy-BJrkygeR.cjs → vue-ui-galaxy-9E5GUtBD.cjs} +1 -1
  68. package/dist/vue-ui-gauge-CBbvp9DU.cjs +1 -0
  69. package/dist/{vue-ui-gauge-DBPB11Eo.js → vue-ui-gauge-Cpvg4BBS.js} +236 -224
  70. package/dist/{vue-ui-gizmo-BSDdKP_q.js → vue-ui-gizmo-B5v0g_Ly.js} +3 -3
  71. package/dist/{vue-ui-gizmo-D7hHruEs.cjs → vue-ui-gizmo-BkNuHnnf.cjs} +1 -1
  72. package/dist/{vue-ui-heatmap-CysVyR78.cjs → vue-ui-heatmap-CcUuOqGT.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-DhoDd6I_.js → vue-ui-heatmap-dNeKqLC0.js} +10 -10
  74. package/dist/{vue-ui-history-plot-C1IcR5tn.js → vue-ui-history-plot-COtfhHw8.js} +11 -11
  75. package/dist/{vue-ui-history-plot-D97p0C8E.cjs → vue-ui-history-plot-p18wqHFY.cjs} +1 -1
  76. package/dist/{vue-ui-kpi-Cu2PoWud.cjs → vue-ui-kpi-DCn50wZ8.cjs} +1 -1
  77. package/dist/{vue-ui-kpi-C43FJnkn.js → vue-ui-kpi-HyZOfh63.js} +3 -3
  78. package/dist/{vue-ui-mini-loader-Bdr0862F.cjs → vue-ui-mini-loader-DaPxFP7e.cjs} +1 -1
  79. package/dist/{vue-ui-mini-loader-DgPnsWaW.js → vue-ui-mini-loader-Dp7zc34Q.js} +2 -2
  80. package/dist/{vue-ui-molecule-CvxtHapj.js → vue-ui-molecule-Oim4-hUn.js} +11 -11
  81. package/dist/{vue-ui-molecule-CEJzQ7RY.cjs → vue-ui-molecule-zkdP7FYM.cjs} +1 -1
  82. package/dist/{vue-ui-mood-radar-DIn_Oars.cjs → vue-ui-mood-radar-CKdM8iDY.cjs} +1 -1
  83. package/dist/{vue-ui-mood-radar-B6EmzBGf.js → vue-ui-mood-radar-DsSO6gfa.js} +11 -11
  84. package/dist/{vue-ui-nested-donuts-D4pAkaZH.js → vue-ui-nested-donuts-B5NPJfg6.js} +11 -11
  85. package/dist/{vue-ui-nested-donuts-c2pJF_ex.cjs → vue-ui-nested-donuts-DbTXLan2.cjs} +1 -1
  86. package/dist/{vue-ui-onion-DHOhnx2s.cjs → vue-ui-onion-0Od2Vodu.cjs} +1 -1
  87. package/dist/{vue-ui-onion-98XPhnVF.js → vue-ui-onion-CID0DNSa.js} +11 -11
  88. package/dist/{vue-ui-parallel-coordinate-plot-DLOtv_NO.js → vue-ui-parallel-coordinate-plot-DAfBgYbI.js} +12 -12
  89. package/dist/{vue-ui-parallel-coordinate-plot-CrVVxflg.cjs → vue-ui-parallel-coordinate-plot-WtcXCTd-.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-DWM3zE7x.js → vue-ui-quadrant-063Cq0di.js} +12 -12
  91. package/dist/{vue-ui-quadrant-DbDQtcxz.cjs → vue-ui-quadrant-B6WNmecC.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-DP0hSesI.cjs → vue-ui-quick-chart-CwNFF0R4.cjs} +1 -1
  93. package/dist/{vue-ui-quick-chart-CFVAisN4.js → vue-ui-quick-chart-DCPwhpbx.js} +9 -9
  94. package/dist/{vue-ui-radar-CNBN5GF9.js → vue-ui-radar-BmY47r3J.js} +12 -12
  95. package/dist/{vue-ui-radar-CDhwXWfs.cjs → vue-ui-radar-DcnVyGrM.cjs} +1 -1
  96. package/dist/{vue-ui-rating-cHW6zh7i.cjs → vue-ui-rating-D_9Fqvd_.cjs} +1 -1
  97. package/dist/{vue-ui-rating-CEfg8aGb.js → vue-ui-rating-b2SThMJw.js} +2 -2
  98. package/dist/{vue-ui-relation-circle-92LvehQf.js → vue-ui-relation-circle-B0Q2FdDW.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-olDAN0lU.cjs → vue-ui-relation-circle-Cg3QL_aP.cjs} +1 -1
  100. package/dist/vue-ui-rings-BQdgj7bV.cjs +2 -0
  101. package/dist/vue-ui-rings-DlsKpDkQ.js +666 -0
  102. package/dist/{vue-ui-scatter-BvdgtUHX.cjs → vue-ui-scatter-D6Yb6VpP.cjs} +1 -1
  103. package/dist/{vue-ui-scatter-6wDrQ5fP.js → vue-ui-scatter-E_WveJ4p.js} +36 -36
  104. package/dist/{vue-ui-screenshot-CIAlcAvq.js → vue-ui-screenshot-CbLsOjZv.js} +1 -1
  105. package/dist/{vue-ui-screenshot-ChB7VFUO.cjs → vue-ui-screenshot-DhvqiF7S.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-DlnPFtb4.cjs → vue-ui-skeleton-73YO0ovP.cjs} +1 -1
  107. package/dist/{vue-ui-skeleton-BMRe3SzB.js → vue-ui-skeleton-Bgf16k10.js} +3 -3
  108. package/dist/{vue-ui-smiley-DkrQ5gDD.cjs → vue-ui-smiley-D-QDQ3Re.cjs} +1 -1
  109. package/dist/{vue-ui-smiley-CN5FWJ1G.js → vue-ui-smiley-ne5pBMum.js} +2 -2
  110. package/dist/{vue-ui-spark-trend-MNkadB41.js → vue-ui-spark-trend-BkiRBoVD.js} +13 -13
  111. package/dist/{vue-ui-spark-trend-BlOdnAb4.cjs → vue-ui-spark-trend-Dq1hox65.cjs} +1 -1
  112. package/dist/{vue-ui-sparkbar-CBPO2mUa.js → vue-ui-sparkbar--Q2alJoW.js} +4 -4
  113. package/dist/{vue-ui-sparkbar-ChTbwY11.cjs → vue-ui-sparkbar-DV5CtFQY.cjs} +1 -1
  114. package/dist/{vue-ui-sparkgauge-VLkIev3p.js → vue-ui-sparkgauge-BOcEbdij.js} +4 -4
  115. package/dist/{vue-ui-sparkgauge-B7yvQfZW.cjs → vue-ui-sparkgauge-BVNkRW_m.cjs} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-DbOxX4Ks.js → vue-ui-sparkhistogram-CIJmWjb4.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram-mYU6RAK_.cjs → vue-ui-sparkhistogram-CUiNT8vT.cjs} +1 -1
  118. package/dist/vue-ui-sparkline-BFlRfhM6.cjs +1 -0
  119. package/dist/{vue-ui-sparkline-D_-31O2S.js → vue-ui-sparkline-lY0wS6kU.js} +96 -96
  120. package/dist/{vue-ui-sparkstackbar-KaFMlIAL.cjs → vue-ui-sparkstackbar-CGeg_k0k.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-gW7rpJmQ.js → vue-ui-sparkstackbar-GHM4EY7-.js} +5 -5
  122. package/dist/vue-ui-stackbar-CQur8zP0.cjs +6 -0
  123. package/dist/vue-ui-stackbar-uR3T6rG4.js +1114 -0
  124. package/dist/{vue-ui-strip-plot-MlP5pDNx.cjs → vue-ui-strip-plot-CBYrZEIt.cjs} +1 -1
  125. package/dist/{vue-ui-strip-plot-4o1zAxG_.js → vue-ui-strip-plot-CNFrYVZ6.js} +11 -11
  126. package/dist/{vue-ui-table-B0PFrkLI.cjs → vue-ui-table-BbTwHDCo.cjs} +1 -1
  127. package/dist/{vue-ui-table-DWNrd7zM.js → vue-ui-table-DZV-uDG2.js} +1 -1
  128. package/dist/{vue-ui-table-heatmap-BSKCS8Lq.js → vue-ui-table-heatmap-DQBm_9Z3.js} +14 -14
  129. package/dist/{vue-ui-table-heatmap-4k74Ux7O.cjs → vue-ui-table-heatmap-DSgQpgxG.cjs} +1 -1
  130. package/dist/{vue-ui-table-sparkline-DCCogh2-.cjs → vue-ui-table-sparkline-AFK2LNsw.cjs} +1 -1
  131. package/dist/{vue-ui-table-sparkline-BrImSTh0.js → vue-ui-table-sparkline-wWAVQ0es.js} +5 -5
  132. package/dist/{vue-ui-thermometer-DswmMXiU.cjs → vue-ui-thermometer-CGFQfRUy.cjs} +1 -1
  133. package/dist/{vue-ui-thermometer-DHEoT4yB.js → vue-ui-thermometer-DRZWIAFj.js} +7 -7
  134. package/dist/{vue-ui-timer-Tv94CYqL.cjs → vue-ui-timer-C-RRrh5f.cjs} +1 -1
  135. package/dist/{vue-ui-timer-BNFihNgK.js → vue-ui-timer-D2_1bbpl.js} +5 -5
  136. package/dist/{vue-ui-tiremarks-B2kuKLe-.cjs → vue-ui-tiremarks-CIeid_A2.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-DzaUfiET.js → vue-ui-tiremarks-CdX2b-Fq.js} +7 -7
  138. package/dist/{vue-ui-treemap-qKZJcEYe.js → vue-ui-treemap-CgzgE20q.js} +11 -11
  139. package/dist/{vue-ui-treemap-Dmt3RPF2.cjs → vue-ui-treemap-r8xOrE8F.cjs} +1 -1
  140. package/dist/vue-ui-vertical-bar-BcxAjcoh.cjs +4 -0
  141. package/dist/vue-ui-vertical-bar-v9LvL35a.js +936 -0
  142. package/dist/{vue-ui-waffle-DjJoezg-.js → vue-ui-waffle-0mHE8fud.js} +11 -11
  143. package/dist/{vue-ui-waffle-fWQvVbAH.cjs → vue-ui-waffle-5h_9tS3C.cjs} +1 -1
  144. package/dist/{vue-ui-wheel-DOrWSWt6.js → vue-ui-wheel-BWL-td7-.js} +7 -7
  145. package/dist/{vue-ui-wheel-2qIHyZe1.cjs → vue-ui-wheel-rL5Shua2.cjs} +1 -1
  146. package/dist/{vue-ui-word-cloud-Tgg5jCE6.cjs → vue-ui-word-cloud-2E23n-B8.cjs} +1 -1
  147. package/dist/{vue-ui-word-cloud-UPPKGsXt.js → vue-ui-word-cloud-OkAF9hSC.js} +10 -10
  148. package/dist/{vue-ui-xy-zCJv-Vao.js → vue-ui-xy-C8E2WzGt.js} +866 -819
  149. package/dist/vue-ui-xy-DbJNxL5O.cjs +3 -0
  150. package/dist/{vue-ui-xy-canvas-paHHRtqs.js → vue-ui-xy-canvas-C_0c8FlA.js} +31 -31
  151. package/dist/{vue-ui-xy-canvas-Dm3YUQ3g.cjs → vue-ui-xy-canvas-I7rw1uDf.cjs} +1 -1
  152. package/package.json +1 -1
  153. package/dist/Legend-CqilK5CI.cjs +0 -1
  154. package/dist/Legend-WOejx9sp.js +0 -68
  155. package/dist/vue-ui-donut-D5mDCNky.cjs +0 -1
  156. package/dist/vue-ui-donut-DDayabSz.js +0 -1122
  157. package/dist/vue-ui-gauge-Uo_1rs0Z.cjs +0 -1
  158. package/dist/vue-ui-rings-Bp0WLW4E.js +0 -628
  159. package/dist/vue-ui-rings-BwvTmRCE.cjs +0 -2
  160. package/dist/vue-ui-sparkline-DO496Tk5.cjs +0 -1
  161. package/dist/vue-ui-stackbar-CYHsSzEK.cjs +0 -6
  162. package/dist/vue-ui-stackbar-vIyS6oag.js +0 -1061
  163. package/dist/vue-ui-vertical-bar-CMXtevyE.js +0 -888
  164. package/dist/vue-ui-vertical-bar-CQ_qEJ_O.cjs +0 -4
  165. package/dist/vue-ui-xy-CMde0Kq-.cjs +0 -3
@@ -0,0 +1,1173 @@
1
+ import { useSlots as nt, computed as _, ref as d, onMounted as rt, onBeforeUnmount as it, watch as je, openBlock as o, createElementBlock as u, normalizeClass as de, normalizeStyle as O, unref as n, createBlock as U, createCommentVNode as i, renderSlot as m, createSlots as We, withCtx as $, normalizeProps as j, guardReactiveProps as W, createVNode as he, createElementVNode as f, Fragment as p, renderList as F, toDisplayString as C, createTextVNode as He, nextTick as vt, pushScopeId as ct, popScopeId as dt } from "vue";
2
+ import { u as ht, o as yt, e as Ee, g as ft, c as pt, b as gt, d as Re, p as H, m as bt, H as mt, f as L, X as wt, s as ee, w as kt, j as _t, I as T, i as A, k, n as te, t as xt, a as $t, x as Ct, q as Pt, r as St } from "./index-BVNcFEqn.js";
3
+ import { t as Ft, u as Lt } from "./useResponsive-CoxXLe23.js";
4
+ import { _ as Tt } from "./Title-DyUTj8GI.js";
5
+ import { u as zt, U as Ot } from "./usePrinter-Bcfs_I6G.js";
6
+ import { D as Yt } from "./DataTable-DX_jYNWG.js";
7
+ import { _ as At } from "./Tooltip-B-0uEV3l.js";
8
+ import { L as Nt } from "./Legend-DGUxLqhs.js";
9
+ import Xt from "./vue-ui-skeleton-Bgf16k10.js";
10
+ import It from "./vue-ui-accordion-GNblUy42.js";
11
+ import { u as qe } from "./useNestedProp-D79dWdel.js";
12
+ import { _ as Dt } from "./PackageVersion-B9_Ed72C.js";
13
+ import { P as Mt } from "./PenAndPaper-CzjoEhsO.js";
14
+ import { u as Bt } from "./useUserOptionState-BIvW1Kz7.js";
15
+ import { _ as Vt } from "./Shape-aXd72O71.js";
16
+ import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const Ut = (J) => (ct("data-v-bac48d71"), J = J(), dt(), J), jt = ["id"], Wt = ["xmlns", "viewBox"], Ht = ["width", "height"], Et = { key: 1 }, Rt = ["id"], qt = ["stop-color"], Jt = ["offset", "stop-color"], Kt = ["offset", "stop-color"], Qt = ["stop-color"], Zt = { key: 2 }, el = ["id", "cx", "cy"], tl = ["stop-color", "stop-opacity"], ll = ["stop-color"], al = ["id"], ol = ["id"], ul = /* @__PURE__ */ Ut(() => /* @__PURE__ */ f("feColorMatrix", {
18
+ type: "saturate",
19
+ values: "0"
20
+ }, null, -1)), sl = ["id"], nl = ["flood-color"], rl = ["id"], il = ["flood-color"], vl = ["d", "stroke", "filter"], cl = ["x1", "y1", "x2", "y2", "stroke", "filter"], dl = ["cx", "cy", "r", "fill", "filter"], hl = { key: 6 }, yl = ["stroke", "d"], fl = { key: 0 }, pl = ["d", "fill", "stroke", "stroke-width", "filter"], gl = ["d", "fill", "stroke", "stroke-width", "filter"], bl = { key: 0 }, ml = ["stroke", "d"], wl = { key: 0 }, kl = ["d", "stroke", "stroke-width", "filter"], _l = { key: 1 }, xl = ["d", "fill", "stroke", "stroke-width", "filter"], $l = ["d", "fill", "stroke", "stroke-width", "filter"], Cl = { key: 1 }, Pl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Sl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Fl = ["cx", "cy", "r", "stroke"], Ll = ["cx", "cy", "r", "fill"], Tl = { key: 0 }, zl = ["d", "fill", "onMouseenter", "onClick"], Ol = { key: 1 }, Yl = ["cx", "cy", "r", "fill"], Al = ["x", "y", "fill", "font-size"], Nl = ["x", "y", "fill", "font-size"], Xl = ["x", "y", "fill", "font-size"], Il = ["x", "y", "fill", "font-size"], Dl = ["filter"], Ml = { key: 0 }, Bl = ["x", "y"], Vl = { key: 1 }, Gl = ["cx", "cy", "fill", "stroke", "filter", "onClick"], Ul = ["cx", "cy", "fill", "stroke", "filter", "onClick"], jl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Wl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Hl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], El = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Rl = { key: 2 }, ql = ["x", "y", "width"], Jl = ["x", "y", "width"], Kl = {
21
+ key: 5,
22
+ class: "vue-data-ui-watermark"
23
+ }, Ql = ["onClick"], Zl = {
24
+ key: 0,
25
+ style: { "font-variant-numeric": "tabular-nums" }
26
+ }, ea = { key: 1 }, ta = ["innerHTML"], la = {
27
+ __name: "vue-ui-donut",
28
+ props: {
29
+ config: {
30
+ type: Object,
31
+ default() {
32
+ return {};
33
+ }
34
+ },
35
+ dataset: {
36
+ type: Array,
37
+ default() {
38
+ return [];
39
+ }
40
+ }
41
+ },
42
+ emits: ["selectLegend", "selectDatapoint"],
43
+ setup(J, { expose: Je, emit: ye }) {
44
+ const N = J, { vue_ui_donut: Ke } = ht(), Qe = nt(), K = _({
45
+ get() {
46
+ return !!N.dataset && N.dataset.length;
47
+ },
48
+ set(l) {
49
+ return l;
50
+ }
51
+ }), E = d(null), fe = d(null), pe = d(null), le = d(null), ge = d(null), be = d(null), me = d(0), we = d(0), ke = d(0);
52
+ rt(() => {
53
+ _e();
54
+ }), it(() => {
55
+ le.value && le.value.disconnect();
56
+ });
57
+ function _e() {
58
+ if (yt(N.dataset) ? Ee({
59
+ componentName: "VueUiDonut",
60
+ type: "dataset"
61
+ }) : N.dataset.forEach((l, r) => {
62
+ ft({
63
+ datasetObject: l,
64
+ requiredAttributes: ["name", "values"]
65
+ }).forEach((t) => {
66
+ K.value = !1, Ee({
67
+ componentName: "VueUiDonut",
68
+ type: "datasetSerieAttribute",
69
+ property: t,
70
+ index: r
71
+ });
72
+ });
73
+ }), e.value.responsive) {
74
+ const l = Ft(() => {
75
+ const { width: r, height: t } = Lt({
76
+ chart: E.value,
77
+ title: e.value.style.chart.title.text ? fe.value : null,
78
+ legend: e.value.style.chart.legend.show ? pe.value : null,
79
+ source: ge.value,
80
+ noTitle: be.value
81
+ });
82
+ s.value.width = r, s.value.height = t;
83
+ });
84
+ le.value = new ResizeObserver(l), le.value.observe(E.value.parentNode);
85
+ }
86
+ }
87
+ const y = d(pt()), Ze = d(null), ae = d(!1), se = d(""), P = d(null), xe = d(0);
88
+ function $e() {
89
+ const l = qe({
90
+ userConfig: N.config,
91
+ defaultConfig: Ke
92
+ });
93
+ return l.theme ? {
94
+ ...qe({
95
+ userConfig: xt.vue_ui_donut[l.theme] || N.config,
96
+ defaultConfig: l
97
+ }),
98
+ customPalette: $t[l.theme] || H
99
+ } : l;
100
+ }
101
+ const e = _({
102
+ get: () => $e(),
103
+ set: (l) => l
104
+ }), { userOptionsVisible: ne, setUserOptionsVisibility: Ce, keepUserOptionState: Pe } = Bt({ config: e.value });
105
+ je(() => N.config, (l) => {
106
+ e.value = $e(), ne.value = !e.value.showOnChartHover, _e(), me.value += 1, we.value += 1, ke.value += 1;
107
+ }, { deep: !0 });
108
+ const { isPrinting: Se, isImaging: Fe, generatePdf: Le, generateImage: Te } = zt({
109
+ elementId: `donut__${y.value}`,
110
+ fileName: e.value.style.chart.title.text || "vue-ui-donut"
111
+ }), et = _(() => e.value.userOptions.show && !e.value.style.chart.title.text), ze = _(() => gt(e.value.customPalette)), g = d({
112
+ dataLabels: {
113
+ show: e.value.style.chart.layout.labels.dataLabels.show
114
+ },
115
+ showTable: e.value.table.show,
116
+ showTooltip: e.value.style.chart.tooltip.show
117
+ }), s = d({
118
+ height: 360,
119
+ width: 512
120
+ }), Q = _(() => {
121
+ const l = e.value.style.chart.layout.donut.strokeWidth / 512, r = s.value.width * l, t = r > x.value ? x.value : r;
122
+ return t < 24 ? 24 : t;
123
+ }), B = _(() => N.dataset.map((l, r) => ({
124
+ name: l.name,
125
+ color: Re(l.color) || ze.value[r] || H[r] || H[r % H.length],
126
+ value: l.values.reduce((t, a) => t + a, 0),
127
+ absoluteValues: l.values,
128
+ comment: l.comment || "",
129
+ patternIndex: r
130
+ }))), z = d(B.value);
131
+ je(() => B.value, (l) => z.value = l);
132
+ function tt() {
133
+ return B.value.map((l) => ({
134
+ name: l.name,
135
+ color: l.color,
136
+ value: l.value
137
+ }));
138
+ }
139
+ const X = d([]), Oe = d(null), Ye = d(null), V = d(!1);
140
+ function Ae(l) {
141
+ const r = B.value.find((v, w) => w === l), t = z.value.find((v, w) => w === l);
142
+ let a = t.value;
143
+ if (X.value.includes(l)) {
144
+ let w = function() {
145
+ a > v ? (cancelAnimationFrame(Oe.value), z.value = z.value.map((b, ce) => l === ce ? {
146
+ ...b,
147
+ value: v
148
+ } : b), V.value = !1) : (V.value = !0, a += v * 0.025, z.value = z.value.map((b, ce) => l === ce ? {
149
+ ...b,
150
+ value: a
151
+ } : b), Oe.value = requestAnimationFrame(w));
152
+ };
153
+ X.value = X.value.filter((b) => b !== l);
154
+ const v = r.value;
155
+ w();
156
+ } else if (X.value.length < B.value.length - 1) {
157
+ let v = function() {
158
+ a < t.value / 100 ? (cancelAnimationFrame(Ye.value), X.value.push(l), z.value = z.value.map((w, b) => l === b ? {
159
+ ...w,
160
+ value: 0
161
+ } : w), V.value = !1) : (V.value = !0, a /= 1.1, z.value = z.value.map((w, b) => l === b ? {
162
+ ...w,
163
+ value: a
164
+ } : w), Ye.value = requestAnimationFrame(v));
165
+ };
166
+ v();
167
+ }
168
+ ye("selectLegend", I.value.map((v) => ({
169
+ name: v.name,
170
+ color: v.color,
171
+ value: v.value
172
+ })));
173
+ }
174
+ const I = _(() => (z.value.forEach((l, r) => {
175
+ if ([null, void 0].includes(l.values))
176
+ return {
177
+ ...l,
178
+ values: []
179
+ };
180
+ }), z.value.map((l, r) => ({
181
+ ...l,
182
+ seriesIndex: r
183
+ })).filter((l, r) => !X.value.includes(r)))), Ne = _(() => N.dataset.map((l, r) => ({
184
+ name: l.name,
185
+ color: Re(l.color) || ze.value[r] || H[r] || H[r % H.length],
186
+ value: (l.values || []).reduce((t, a) => t + a, 0),
187
+ shape: "circle",
188
+ patternIndex: r
189
+ })).map((l, r) => ({
190
+ ...l,
191
+ proportion: l.value / N.dataset.map((t) => (t.values || []).reduce((a, v) => a + v, 0)).reduce((t, a) => t + a, 0),
192
+ opacity: X.value.includes(r) ? 0.5 : 1,
193
+ segregate: () => !V.value && Ae(r),
194
+ isSegregated: X.value.includes(r)
195
+ }))), lt = _(() => ({
196
+ cy: "donut-div-legend",
197
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
198
+ color: e.value.style.chart.legend.color,
199
+ fontSize: e.value.style.chart.legend.fontSize,
200
+ paddingBottom: 12,
201
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
202
+ })), x = _(() => {
203
+ const l = Math.min(s.value.width / 3, s.value.height / 3);
204
+ return l < 55 ? 55 : l;
205
+ }), h = _(() => bt({ series: I.value }, s.value.width / 2, s.value.height / 2, x.value, x.value, 1.99999, 2, 1, 360, 105.25, Q.value)), c = _(() => {
206
+ const l = Math.max(...I.value.map((t) => t.value)), r = I.value.map((t) => t.value / l);
207
+ return mt({
208
+ series: r,
209
+ center: {
210
+ x: s.value.width / 2,
211
+ y: s.value.height / 2
212
+ },
213
+ maxRadius: Math.min(s.value.width, s.value.height) / 3
214
+ });
215
+ });
216
+ function R(l) {
217
+ return l.x > s.value.width / 2 + 6 ? "start" : l.x < s.value.width / 2 - 6 ? "end" : "middle";
218
+ }
219
+ function at(l) {
220
+ return l.middlePoint.y > s.value.height / 2 ? T({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y : T({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y - 100;
221
+ }
222
+ function Y(l) {
223
+ return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
224
+ }
225
+ function re(l, r) {
226
+ const t = l.value / ot(r);
227
+ return isNaN(t) ? 0 : A(
228
+ e.value.style.chart.layout.labels.percentage.formatter,
229
+ t * 100,
230
+ L({
231
+ v: t * 100,
232
+ s: "%",
233
+ r: e.value.style.chart.layout.labels.percentage.rounding
234
+ }),
235
+ { datapoint: l }
236
+ );
237
+ }
238
+ function ot(l) {
239
+ return [...l].map((r) => r.value).reduce((r, t) => r + t, 0);
240
+ }
241
+ const S = _(() => I.value.map((l) => l.value).reduce((l, r) => l + r, 0)), Xe = _(() => S.value / I.value.length), Ie = _(() => (l) => V.value ? l.proportion * 100 : l.value / S.value * 100), ie = d(null), Z = d(!1);
242
+ function De({ datapoint: l, relativeIndex: r, seriesIndex: t, show: a = !1 }) {
243
+ ie.value = { datapoint: l, seriesIndex: t, config: e.value, series: B.value }, ae.value = a, P.value = r;
244
+ let v = "";
245
+ const w = e.value.style.chart.tooltip.customFormat;
246
+ if (Z.value = !1, Ct(w))
247
+ try {
248
+ const b = w({
249
+ seriesIndex: t,
250
+ datapoint: l,
251
+ series: B.value,
252
+ config: e.value
253
+ });
254
+ typeof b == "string" && (se.value = b, Z.value = !0);
255
+ } catch {
256
+ console.warn("Custom format cannot be applied."), Z.value = !1;
257
+ }
258
+ if (!Z.value) {
259
+ if (v += `<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>`, v += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${Qe.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${y.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (v += `<b>${A(
260
+ e.value.style.chart.layout.labels.value.formatter,
261
+ l.value,
262
+ L({
263
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
264
+ v: l.value,
265
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
266
+ r: e.value.style.chart.tooltip.roundingValue
267
+ }),
268
+ {
269
+ datapoint: l,
270
+ relativeIndex: r,
271
+ seriesIndex: t
272
+ }
273
+ )}</b>`), e.value.style.chart.tooltip.showPercentage) {
274
+ const b = A(
275
+ e.value.style.chart.layout.labels.percentage.formatter,
276
+ l.proportion * 100,
277
+ L({
278
+ v: l.proportion * 100,
279
+ s: "%",
280
+ r: e.value.style.chart.tooltip.roundingPercentage
281
+ }),
282
+ {
283
+ datapoint: l,
284
+ relativeIndex: r,
285
+ seriesIndex: t
286
+ }
287
+ );
288
+ e.value.style.chart.tooltip.showValue ? v += `<span>(${b})</span></div>` : v += `<b>${b}</b></div>`;
289
+ }
290
+ e.value.style.chart.comments.showInTooltip && l.comment && (v += `<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>`), se.value = `<div>${v}</div>`;
291
+ }
292
+ }
293
+ function G(l) {
294
+ return e.value.useBlurOnHover && ![null, void 0].includes(P.value) && P.value !== l ? `url(#blur_${y.value})` : "";
295
+ }
296
+ const D = _(() => {
297
+ const l = I.value.map((t) => ({
298
+ name: t.name,
299
+ color: t.color
300
+ })), r = I.value.map((t) => t.value);
301
+ return { head: l, body: r };
302
+ });
303
+ function Me() {
304
+ vt(() => {
305
+ const l = D.value.head.map((a, v) => [[
306
+ a.name
307
+ ], [D.value.body[v]], [isNaN(D.value.body[v] / S.value) ? "-" : D.value.body[v] / S.value * 100]]), r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), t = Pt(r);
308
+ St({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-donut" });
309
+ });
310
+ }
311
+ const oe = _(() => {
312
+ const l = [
313
+ ' <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>',
314
+ L({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: S.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
315
+ "100%"
316
+ ], r = D.value.head.map((v, w) => {
317
+ const b = L({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: D.value.body[w], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
318
+ return [
319
+ {
320
+ color: v.color,
321
+ name: v.name
322
+ },
323
+ b,
324
+ isNaN(D.value.body[w] / S.value) ? "-" : (D.value.body[w] / S.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
325
+ ];
326
+ }), t = {
327
+ th: {
328
+ backgroundColor: e.value.table.th.backgroundColor,
329
+ color: e.value.table.th.color,
330
+ outline: e.value.table.th.outline
331
+ },
332
+ td: {
333
+ backgroundColor: e.value.table.td.backgroundColor,
334
+ color: e.value.table.td.color,
335
+ outline: e.value.table.td.outline
336
+ },
337
+ breakpoint: e.value.table.responsiveBreakpoint
338
+ };
339
+ return {
340
+ colNames: [
341
+ e.value.table.columnNames.series,
342
+ e.value.table.columnNames.value,
343
+ e.value.table.columnNames.percentage
344
+ ],
345
+ head: l,
346
+ body: r,
347
+ config: t
348
+ };
349
+ }), q = d(!1);
350
+ function ut(l) {
351
+ q.value = l, xe.value += 1;
352
+ }
353
+ const Be = _(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
354
+ function st(l) {
355
+ return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((r) => "-").join("");
356
+ }
357
+ function M(l, r) {
358
+ ye("selectDatapoint", { datapoint: l, index: r });
359
+ }
360
+ function Ve() {
361
+ g.value.showTable = !g.value.showTable;
362
+ }
363
+ function Ge() {
364
+ g.value.dataLabels.show = !g.value.dataLabels.show;
365
+ }
366
+ function Ue() {
367
+ g.value.showTooltip = !g.value.showTooltip;
368
+ }
369
+ const ue = d(!1);
370
+ function ve() {
371
+ ue.value = !ue.value;
372
+ }
373
+ return Je({
374
+ getData: tt,
375
+ generatePdf: Le,
376
+ generateCsv: Me,
377
+ generateImage: Te,
378
+ toggleTable: Ve,
379
+ toggleLabels: Ge,
380
+ toggleTooltip: Ue,
381
+ toggleAnnotator: ve
382
+ }), (l, r) => (o(), u("div", {
383
+ ref_key: "donutChart",
384
+ ref: E,
385
+ class: de(`vue-ui-donut ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
386
+ style: O(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
387
+ id: `donut__${y.value}`,
388
+ onMouseenter: r[6] || (r[6] = () => n(Ce)(!0)),
389
+ onMouseleave: r[7] || (r[7] = () => n(Ce)(!1))
390
+ }, [
391
+ e.value.userOptions.buttons.annotator ? (o(), U(Mt, {
392
+ key: 0,
393
+ parent: E.value,
394
+ backgroundColor: e.value.style.chart.backgroundColor,
395
+ color: e.value.style.chart.color,
396
+ active: ue.value,
397
+ onClose: ve
398
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : i("", !0),
399
+ m(l.$slots, "userConfig", {}, void 0, !0),
400
+ et.value ? (o(), u("div", {
401
+ key: 1,
402
+ ref_key: "noTitle",
403
+ ref: be,
404
+ class: "vue-data-ui-no-title-space",
405
+ style: "height:36px; width: 100%;background:transparent"
406
+ }, null, 512)) : i("", !0),
407
+ e.value.style.chart.title.text ? (o(), u("div", {
408
+ key: 2,
409
+ ref_key: "chartTitle",
410
+ ref: fe,
411
+ style: "width:100%;background:transparent;padding-bottom:24px"
412
+ }, [
413
+ (o(), U(Tt, {
414
+ key: `title_${me.value}`,
415
+ config: {
416
+ title: {
417
+ cy: "donut-div-title",
418
+ ...e.value.style.chart.title
419
+ },
420
+ subtitle: {
421
+ cy: "donut-div-subtitle",
422
+ ...e.value.style.chart.title.subtitle
423
+ }
424
+ }
425
+ }, null, 8, ["config"]))
426
+ ], 512)) : i("", !0),
427
+ e.value.userOptions.show && K.value && (n(Pe) || n(ne)) ? (o(), U(Ot, {
428
+ ref_key: "details",
429
+ ref: Ze,
430
+ key: `user_option_${xe.value}`,
431
+ backgroundColor: e.value.style.chart.backgroundColor,
432
+ color: e.value.style.chart.color,
433
+ isPrinting: n(Se),
434
+ isImaging: n(Fe),
435
+ uid: y.value,
436
+ hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
437
+ hasPdf: e.value.userOptions.buttons.pdf,
438
+ hasImg: e.value.userOptions.buttons.img,
439
+ hasXls: e.value.userOptions.buttons.csv,
440
+ hasTable: e.value.userOptions.buttons.table,
441
+ hasLabel: e.value.userOptions.buttons.labels,
442
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
443
+ isFullscreen: q.value,
444
+ chartElement: E.value,
445
+ position: e.value.userOptions.position,
446
+ isTooltip: g.value.showTooltip,
447
+ titles: { ...e.value.userOptions.buttonTitles },
448
+ hasAnnotator: e.value.userOptions.buttons.annotator,
449
+ isAnnotation: ue.value,
450
+ onToggleFullscreen: ut,
451
+ onGeneratePdf: n(Le),
452
+ onGenerateCsv: Me,
453
+ onGenerateImage: n(Te),
454
+ onToggleTable: Ve,
455
+ onToggleLabels: Ge,
456
+ onToggleTooltip: Ue,
457
+ onToggleAnnotator: ve,
458
+ style: O({
459
+ visibility: n(Pe) ? n(ne) ? "visible" : "hidden" : "visible"
460
+ })
461
+ }, We({ _: 2 }, [
462
+ l.$slots.optionTooltip ? {
463
+ name: "optionTooltip",
464
+ fn: $(() => [
465
+ m(l.$slots, "optionTooltip", {}, void 0, !0)
466
+ ]),
467
+ key: "0"
468
+ } : void 0,
469
+ l.$slots.optionPdf ? {
470
+ name: "optionPdf",
471
+ fn: $(() => [
472
+ m(l.$slots, "optionPdf", {}, void 0, !0)
473
+ ]),
474
+ key: "1"
475
+ } : void 0,
476
+ l.$slots.optionCsv ? {
477
+ name: "optionCsv",
478
+ fn: $(() => [
479
+ m(l.$slots, "optionCsv", {}, void 0, !0)
480
+ ]),
481
+ key: "2"
482
+ } : void 0,
483
+ l.$slots.optionImg ? {
484
+ name: "optionImg",
485
+ fn: $(() => [
486
+ m(l.$slots, "optionImg", {}, void 0, !0)
487
+ ]),
488
+ key: "3"
489
+ } : void 0,
490
+ l.$slots.optionTable ? {
491
+ name: "optionTable",
492
+ fn: $(() => [
493
+ m(l.$slots, "optionTable", {}, void 0, !0)
494
+ ]),
495
+ key: "4"
496
+ } : void 0,
497
+ l.$slots.optionLabels ? {
498
+ name: "optionLabels",
499
+ fn: $(() => [
500
+ m(l.$slots, "optionLabels", {}, void 0, !0)
501
+ ]),
502
+ key: "5"
503
+ } : void 0,
504
+ l.$slots.optionFullscreen ? {
505
+ name: "optionFullscreen",
506
+ fn: $(({ toggleFullscreen: t, isFullscreen: a }) => [
507
+ m(l.$slots, "optionFullscreen", j(W({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
508
+ ]),
509
+ key: "6"
510
+ } : void 0,
511
+ l.$slots.optionAnnotator ? {
512
+ name: "optionAnnotator",
513
+ fn: $(({ toggleAnnotator: t, isAnnotator: a }) => [
514
+ m(l.$slots, "optionAnnotator", j(W({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
515
+ ]),
516
+ key: "7"
517
+ } : void 0
518
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
519
+ K.value ? (o(), u("svg", {
520
+ key: 4,
521
+ xmlns: n(wt),
522
+ class: de({ "vue-data-ui-fullscreen--on": q.value, "vue-data-ui-fulscreen--off": !q.value }),
523
+ viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
524
+ style: O(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
525
+ }, [
526
+ he(Dt),
527
+ l.$slots["chart-background"] ? (o(), u("foreignObject", {
528
+ key: 0,
529
+ x: 0,
530
+ y: 0,
531
+ width: s.value.width <= 0 ? 10 : s.value.width,
532
+ height: s.value.height <= 0 ? 10 : s.value.height,
533
+ style: {
534
+ pointerEvents: "none"
535
+ }
536
+ }, [
537
+ m(l.$slots, "chart-background", {}, void 0, !0)
538
+ ], 8, Ht)) : i("", !0),
539
+ e.value.type === "classic" ? (o(), u("defs", Et, [
540
+ e.value.style.chart.useGradient ? (o(), u("radialGradient", {
541
+ key: 0,
542
+ id: `gradient_${y.value}`
543
+ }, [
544
+ f("stop", {
545
+ offset: "0%",
546
+ "stop-color": n(ee)(e.value.style.chart.backgroundColor, 0),
547
+ "stop-opacity": "0"
548
+ }, null, 8, qt),
549
+ f("stop", {
550
+ offset: `${(1 - Q.value / x.value) * 100}%`,
551
+ "stop-color": n(ee)("#FFFFFF", 0),
552
+ "stop-opacity": "0"
553
+ }, null, 8, Jt),
554
+ f("stop", {
555
+ offset: `${(1 - Q.value / x.value / 2) * 100}%`,
556
+ "stop-color": n(ee)("#FFFFFF", e.value.style.chart.gradientIntensity)
557
+ }, null, 8, Kt),
558
+ f("stop", {
559
+ offset: "100%",
560
+ "stop-color": n(ee)(e.value.style.chart.backgroundColor, 0),
561
+ "stop-opacity": "0"
562
+ }, null, 8, Qt)
563
+ ], 8, Rt)) : i("", !0)
564
+ ])) : i("", !0),
565
+ e.value.type === "polar" ? (o(), u("defs", Zt, [
566
+ (o(!0), u(p, null, F(c.value, (t, a) => (o(), u("radialGradient", {
567
+ id: `polar_gradient_${a}_${y.value}`,
568
+ cx: t.middlePoint.x / s.value.width * 100 + "%",
569
+ cy: t.middlePoint.y / s.value.height * 100 + "%",
570
+ r: "62%"
571
+ }, [
572
+ f("stop", {
573
+ offset: "0%",
574
+ "stop-color": n(kt)(h.value[a].color, 0.05),
575
+ "stop-opacity": e.value.style.chart.gradientIntensity / 100
576
+ }, null, 8, tl),
577
+ f("stop", {
578
+ offset: "100%",
579
+ "stop-color": h.value[a].color
580
+ }, null, 8, ll)
581
+ ], 8, el))), 256))
582
+ ])) : i("", !0),
583
+ f("defs", null, [
584
+ f("filter", {
585
+ id: `blur_${y.value}`,
586
+ x: "-50%",
587
+ y: "-50%",
588
+ width: "200%",
589
+ height: "200%"
590
+ }, [
591
+ f("feGaussianBlur", {
592
+ in: "SourceGraphic",
593
+ stdDeviation: 2,
594
+ id: `blur_std_${y.value}`
595
+ }, null, 8, ol),
596
+ ul
597
+ ], 8, al),
598
+ f("filter", {
599
+ id: `shadow_${y.value}`,
600
+ "color-interpolation-filters": "sRGB"
601
+ }, [
602
+ f("feDropShadow", {
603
+ dx: "0",
604
+ dy: "0",
605
+ stdDeviation: "10",
606
+ "flood-opacity": "0.5",
607
+ "flood-color": e.value.style.chart.layout.donut.shadowColor
608
+ }, null, 8, nl)
609
+ ], 8, sl),
610
+ f("filter", {
611
+ id: `drop_shadow_${y.value}`,
612
+ "color-interpolation-filters": "sRGB",
613
+ x: "-50%",
614
+ y: "-50%",
615
+ width: "200%",
616
+ height: "200%"
617
+ }, [
618
+ f("feDropShadow", {
619
+ dx: "0",
620
+ dy: "0",
621
+ stdDeviation: "3",
622
+ "flood-opacity": "1",
623
+ "flood-color": e.value.style.chart.layout.donut.shadowColor
624
+ }, null, 8, il)
625
+ ], 8, rl)
626
+ ]),
627
+ e.value.type === "classic" ? (o(!0), u(p, { key: 3 }, F(h.value, (t, a) => (o(), u("g", null, [
628
+ Y(t) && g.value.dataLabels.show ? (o(), u("path", {
629
+ key: 0,
630
+ d: n(_t)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, Q.value),
631
+ stroke: t.color,
632
+ "stroke-width": "1",
633
+ "stroke-linecap": "round",
634
+ "stroke-linejoin": "round",
635
+ fill: "none",
636
+ filter: G(a)
637
+ }, null, 8, vl)) : i("", !0)
638
+ ]))), 256)) : i("", !0),
639
+ e.value.type === "polar" ? (o(!0), u(p, { key: 4 }, F(h.value, (t, a) => (o(), u("g", null, [
640
+ Y(t) && g.value.dataLabels.show ? (o(), u("line", {
641
+ key: 0,
642
+ x1: n(T)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
643
+ y1: n(T)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
644
+ x2: c.value[a].middlePoint.x,
645
+ y2: c.value[a].middlePoint.y,
646
+ stroke: t.color,
647
+ "stroke-width": "1",
648
+ "stroke-linecap": "round",
649
+ "stroke-linejoin": "round",
650
+ fill: "none",
651
+ filter: G(a)
652
+ }, null, 8, cl)) : i("", !0)
653
+ ]))), 256)) : i("", !0),
654
+ e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (o(), u("circle", {
655
+ key: 5,
656
+ cx: s.value.width / 2,
657
+ cy: s.value.height / 2,
658
+ r: x.value <= 0 ? 10 : x.value,
659
+ fill: e.value.style.chart.backgroundColor,
660
+ filter: `url(#shadow_${y.value})`
661
+ }, null, 8, dl)) : i("", !0),
662
+ l.$slots.pattern ? (o(), u("g", hl, [
663
+ (o(!0), u(p, null, F(h.value, (t, a) => (o(), u("defs", null, [
664
+ m(l.$slots, "pattern", j(W({ ...t, patternId: `pattern_${y.value}_${t.patternIndex}` })), void 0, !0)
665
+ ]))), 256))
666
+ ])) : i("", !0),
667
+ S.value && e.value.type === "classic" ? (o(), u(p, { key: 7 }, [
668
+ (o(!0), u(p, null, F(h.value, (t, a) => (o(), u("path", {
669
+ stroke: e.value.style.chart.backgroundColor,
670
+ d: t.arcSlice,
671
+ fill: "#FFFFFF"
672
+ }, null, 8, yl))), 256)),
673
+ l.$slots.pattern ? (o(), u("g", fl, [
674
+ (o(!0), u(p, null, F(h.value, (t, a) => (o(), u("path", {
675
+ class: "vue-ui-donut-arc-path",
676
+ d: t.arcSlice,
677
+ fill: `url(#pattern_${y.value}_${t.patternIndex})`,
678
+ stroke: e.value.style.chart.backgroundColor,
679
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth,
680
+ filter: G(a)
681
+ }, null, 8, pl))), 256))
682
+ ])) : i("", !0),
683
+ (o(!0), u(p, null, F(h.value, (t, a) => (o(), u("path", {
684
+ class: "vue-ui-donut-arc-path",
685
+ d: t.arcSlice,
686
+ fill: n(ee)(t.color, 80),
687
+ stroke: e.value.style.chart.backgroundColor,
688
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth,
689
+ filter: G(a)
690
+ }, null, 8, gl))), 256))
691
+ ], 64)) : i("", !0),
692
+ S.value && e.value.type === "polar" ? (o(), u(p, { key: 8 }, [
693
+ h.value.length > 1 ? (o(), u("g", bl, [
694
+ (o(!0), u(p, null, F(h.value, (t, a) => (o(), u("path", {
695
+ stroke: e.value.style.chart.backgroundColor,
696
+ d: c.value[a].path,
697
+ fill: "#FFFFFF"
698
+ }, null, 8, ml))), 256)),
699
+ e.value.style.chart.layout.donut.useShadow ? (o(), u("g", wl, [
700
+ (o(!0), u(p, null, F(h.value, (t, a) => (o(), u("path", {
701
+ class: "vue-ui-donut-arc-path",
702
+ d: c.value[a].path,
703
+ fill: "transparent",
704
+ stroke: e.value.style.chart.backgroundColor,
705
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth,
706
+ filter: `url(#drop_shadow_${y.value})`
707
+ }, null, 8, kl))), 256))
708
+ ])) : i("", !0),
709
+ l.$slots.pattern ? (o(), u("g", _l, [
710
+ (o(!0), u(p, null, F(h.value, (t, a) => (o(), u("path", {
711
+ class: "vue-ui-donut-arc-path",
712
+ d: c.value[a].path,
713
+ fill: `url(#pattern_${y.value}_${t.patternIndex})`,
714
+ stroke: e.value.style.chart.backgroundColor,
715
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth,
716
+ filter: G(a)
717
+ }, null, 8, xl))), 256))
718
+ ])) : i("", !0),
719
+ (o(!0), u(p, null, F(h.value, (t, a) => (o(), u("path", {
720
+ class: "vue-ui-donut-arc-path",
721
+ d: c.value[a].path,
722
+ fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${y.value})` : t.color,
723
+ stroke: e.value.style.chart.backgroundColor,
724
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth,
725
+ filter: G(a)
726
+ }, null, 8, $l))), 256))
727
+ ])) : (o(), u("g", Cl, [
728
+ l.$slots.pattern ? (o(), u("circle", {
729
+ key: 0,
730
+ cx: s.value.width / 2,
731
+ cy: s.value.height / 2,
732
+ r: x.value,
733
+ fill: `url(#pattern_${y.value}_${h.value[0].patternIndex})`,
734
+ stroke: e.value.style.chart.backgroundColor,
735
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth
736
+ }, null, 8, Pl)) : i("", !0),
737
+ f("circle", {
738
+ cx: s.value.width / 2,
739
+ cy: s.value.height / 2,
740
+ r: x.value,
741
+ fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${y.value})` : h.value[0].color,
742
+ stroke: e.value.style.chart.backgroundColor,
743
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth
744
+ }, null, 8, Sl)
745
+ ]))
746
+ ], 64)) : (o(), u("circle", {
747
+ key: 9,
748
+ cx: s.value.width / 2,
749
+ cy: s.value.height / 2,
750
+ r: x.value <= 0 ? 10 : x.value,
751
+ fill: "transparent",
752
+ stroke: e.value.style.chart.backgroundColor
753
+ }, null, 8, Fl)),
754
+ e.value.style.chart.useGradient && e.value.type === "classic" ? (o(), u("circle", {
755
+ key: 10,
756
+ cx: s.value.width / 2,
757
+ cy: s.value.height / 2,
758
+ r: (
759
+ /* This might require adjustments */
760
+ x.value <= 0 ? 10 : x.value
761
+ ),
762
+ fill: `url(#gradient_${y.value})`
763
+ }, null, 8, Ll)) : i("", !0),
764
+ S.value ? (o(), u(p, { key: 11 }, [
765
+ h.value.length > 1 || e.value.type === "classic" ? (o(), u("g", Tl, [
766
+ (o(!0), u(p, null, F(h.value, (t, a) => (o(), u("path", {
767
+ "data-cy-donut-trap": "",
768
+ d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
769
+ fill: P.value === a ? "rgba(0,0,0,0.1)" : "transparent",
770
+ onMouseenter: (v) => De({
771
+ datapoint: t,
772
+ relativeIndex: a,
773
+ seriesIndex: t.seriesIndex,
774
+ show: !0
775
+ }),
776
+ onMouseleave: r[0] || (r[0] = (v) => {
777
+ ae.value = !1, P.value = null;
778
+ }),
779
+ onClick: (v) => M(t, a)
780
+ }, null, 40, zl))), 256))
781
+ ])) : (o(), u("g", Ol, [
782
+ f("circle", {
783
+ cx: s.value.width / 2,
784
+ cy: s.value.height / 2,
785
+ r: x.value,
786
+ fill: P.value === l.i ? "rgba(0,0,0,0.1)" : "transparent",
787
+ "data-cy-donut-trap": "",
788
+ onMouseenter: r[1] || (r[1] = (t) => De({
789
+ datapoint: h.value[0],
790
+ relativeIndex: 0,
791
+ seriesIndex: h.value[0].seriesIndex,
792
+ show: !0
793
+ })),
794
+ onMouseleave: r[2] || (r[2] = (t) => {
795
+ ae.value = !1, P.value = null;
796
+ }),
797
+ onClick: r[3] || (r[3] = (t) => M(h.value[0], l.i))
798
+ }, null, 40, Yl)
799
+ ]))
800
+ ], 64)) : i("", !0),
801
+ e.value.type === "classic" ? (o(), u(p, { key: 12 }, [
802
+ e.value.style.chart.layout.labels.hollow.total.show ? (o(), u("text", {
803
+ key: 0,
804
+ "text-anchor": "middle",
805
+ x: s.value.width / 2,
806
+ y: s.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,
807
+ fill: e.value.style.chart.layout.labels.hollow.total.color,
808
+ "font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
809
+ style: O(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
810
+ }, C(e.value.style.chart.layout.labels.hollow.total.text), 13, Al)) : i("", !0),
811
+ e.value.style.chart.layout.labels.hollow.total.show ? (o(), u("text", {
812
+ key: 1,
813
+ "text-anchor": "middle",
814
+ x: s.value.width / 2,
815
+ y: s.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,
816
+ fill: e.value.style.chart.layout.labels.hollow.total.value.color,
817
+ "font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
818
+ style: O(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
819
+ }, C(n(A)(
820
+ e.value.style.chart.layout.labels.hollow.total.value.formatter,
821
+ S.value,
822
+ n(L)({
823
+ p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
824
+ v: S.value,
825
+ s: e.value.style.chart.layout.labels.hollow.total.value.suffix
826
+ })
827
+ )), 13, Nl)) : i("", !0),
828
+ e.value.style.chart.layout.labels.hollow.average.show ? (o(), u("text", {
829
+ key: 2,
830
+ "text-anchor": "middle",
831
+ x: s.value.width / 2,
832
+ y: s.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,
833
+ fill: e.value.style.chart.layout.labels.hollow.average.color,
834
+ "font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
835
+ style: O(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
836
+ }, C(e.value.style.chart.layout.labels.hollow.average.text), 13, Xl)) : i("", !0),
837
+ e.value.style.chart.layout.labels.hollow.average.show ? (o(), u("text", {
838
+ key: 3,
839
+ "text-anchor": "middle",
840
+ x: s.value.width / 2,
841
+ y: s.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,
842
+ fill: e.value.style.chart.layout.labels.hollow.average.value.color,
843
+ "font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
844
+ style: O(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
845
+ }, C(V.value ? "--" : n(A)(
846
+ e.value.style.chart.layout.labels.hollow.average.value.formatter,
847
+ Xe.value,
848
+ n(L)({
849
+ p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
850
+ v: Xe.value,
851
+ s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
852
+ r: e.value.style.chart.layout.labels.hollow.average.value.rounding
853
+ })
854
+ )), 13, Il)) : i("", !0)
855
+ ], 64)) : i("", !0),
856
+ (o(!0), u(p, null, F(h.value, (t, a) => (o(), u("g", {
857
+ filter: G(a),
858
+ class: de({ animated: e.value.useCssAnimation })
859
+ }, [
860
+ e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(), u("g", Ml, [
861
+ (o(), u("foreignObject", {
862
+ x: n(k)(t, !0).anchor === "end" ? n(k)(t).x - 120 : n(k)(t, !0).anchor === "middle" ? n(k)(t).x - 60 : n(k)(t).x,
863
+ y: n(te)(t) - (Be.value ? 20 : 0),
864
+ width: "120",
865
+ height: "60",
866
+ style: { overflow: "visible" }
867
+ }, [
868
+ f("div", null, [
869
+ m(l.$slots, "dataLabel", j(W({
870
+ datapoint: t,
871
+ isBlur: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a,
872
+ isSafari: Be.value,
873
+ isVisible: Y(t) && g.value.dataLabels.show,
874
+ textAlign: n(k)(t, !0, 16, !0).anchor,
875
+ flexAlign: n(k)(t, !0, 16).anchor,
876
+ percentage: re(t, h.value)
877
+ })), void 0, !0)
878
+ ])
879
+ ], 8, Bl))
880
+ ])) : (o(), u("g", Vl, [
881
+ e.value.type === "classic" ? (o(), u(p, { key: 0 }, [
882
+ Y(t) && g.value.dataLabels.show ? (o(), u("circle", {
883
+ key: 0,
884
+ cx: n(k)(t).x,
885
+ cy: n(te)(t) - 3.5,
886
+ fill: t.color,
887
+ stroke: e.value.style.chart.backgroundColor,
888
+ "stroke-width": 1,
889
+ r: 3,
890
+ filter: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a ? "" : `url(#blur_${y.value})`,
891
+ onClick: (v) => M(t, a)
892
+ }, null, 8, Gl)) : i("", !0)
893
+ ], 64)) : i("", !0),
894
+ e.value.type === "polar" ? (o(), u(p, { key: 1 }, [
895
+ Y(t) && g.value.dataLabels.show ? (o(), u("circle", {
896
+ key: 0,
897
+ cx: n(T)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
898
+ cy: n(T)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
899
+ fill: t.color,
900
+ stroke: e.value.style.chart.backgroundColor,
901
+ "stroke-width": 1,
902
+ r: 3,
903
+ filter: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a ? "" : `url(#blur_${y.value})`,
904
+ onClick: (v) => M(t, a)
905
+ }, null, 8, Ul)) : i("", !0)
906
+ ], 64)) : i("", !0),
907
+ e.value.type === "classic" ? (o(), u(p, { key: 2 }, [
908
+ Y(t) && g.value.dataLabels.show ? (o(), u("text", {
909
+ key: 0,
910
+ "text-anchor": n(k)(t, !0, 12).anchor,
911
+ x: n(k)(t, !0, 12).x,
912
+ y: n(te)(t),
913
+ fill: e.value.style.chart.layout.labels.percentage.color,
914
+ "font-size": e.value.style.chart.layout.labels.percentage.fontSize,
915
+ style: O(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
916
+ onClick: (v) => M(t, a)
917
+ }, C(re(t, h.value)) + " " + C(e.value.style.chart.layout.labels.value.show ? `(${n(A)(
918
+ e.value.style.chart.layout.labels.value.formatter,
919
+ t.value,
920
+ n(L)({
921
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
922
+ v: t.value,
923
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
924
+ r: e.value.style.chart.layout.labels.value.rounding
925
+ }),
926
+ { datapoint: t }
927
+ )})` : ""), 13, jl)) : i("", !0),
928
+ Y(t) && g.value.dataLabels.show ? (o(), u("text", {
929
+ key: 1,
930
+ "text-anchor": n(k)(t).anchor,
931
+ x: n(k)(t, !0, 12).x,
932
+ y: n(te)(t) + e.value.style.chart.layout.labels.percentage.fontSize,
933
+ fill: e.value.style.chart.layout.labels.name.color,
934
+ "font-size": e.value.style.chart.layout.labels.name.fontSize,
935
+ style: O(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
936
+ onClick: (v) => M(t, a)
937
+ }, C(t.name), 13, Wl)) : i("", !0)
938
+ ], 64)) : i("", !0),
939
+ e.value.type === "polar" ? (o(), u(p, { key: 3 }, [
940
+ Y(t) && g.value.dataLabels.show ? (o(), u("text", {
941
+ key: 0,
942
+ "text-anchor": R(c.value[a].middlePoint),
943
+ x: n(T)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
944
+ y: n(T)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
945
+ fill: e.value.style.chart.layout.labels.percentage.color,
946
+ "font-size": e.value.style.chart.layout.labels.percentage.fontSize,
947
+ style: O(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
948
+ onClick: (v) => M(t, a)
949
+ }, C(re(t, h.value)) + " " + C(e.value.style.chart.layout.labels.value.show ? `(${n(A)(
950
+ e.value.style.chart.layout.labels.value.formatter,
951
+ t.value,
952
+ n(L)({
953
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
954
+ v: t.value,
955
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
956
+ r: e.value.style.chart.layout.labels.value.rounding
957
+ }),
958
+ { datapoint: t }
959
+ )})` : ""), 13, Hl)) : i("", !0),
960
+ Y(t) && g.value.dataLabels.show ? (o(), u("text", {
961
+ key: 1,
962
+ "text-anchor": R(c.value[a].middlePoint),
963
+ x: n(T)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
964
+ y: n(T)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y + e.value.style.chart.layout.labels.percentage.fontSize,
965
+ fill: e.value.style.chart.layout.labels.name.color,
966
+ "font-size": e.value.style.chart.layout.labels.name.fontSize,
967
+ style: O(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
968
+ onClick: (v) => M(t, a)
969
+ }, C(t.name), 13, El)) : i("", !0)
970
+ ], 64)) : i("", !0)
971
+ ])),
972
+ g.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(), u("g", Rl, [
973
+ Y(t) && e.value.type === "classic" ? (o(), u("foreignObject", {
974
+ key: 0,
975
+ x: e.value.style.chart.comments.offsetX + (n(k)(t, !0).anchor === "end" ? n(k)(t).x - e.value.style.chart.comments.width : n(k)(t, !0).anchor === "middle" ? n(k)(t).x - e.value.style.chart.comments.width / 2 : n(k)(t).x),
976
+ y: n(te)(t) + 24 + e.value.style.chart.comments.offsetY,
977
+ width: e.value.style.chart.comments.width,
978
+ height: "200",
979
+ style: { overflow: "visible", "pointer-events": "none" }
980
+ }, [
981
+ f("div", null, [
982
+ m(l.$slots, "plot-comment", {
983
+ plot: { ...t, textAlign: n(k)(t, !0, 16, !0).anchor, flexAlign: n(k)(t, !0, 16).anchor }
984
+ }, void 0, !0)
985
+ ])
986
+ ], 8, ql)) : i("", !0),
987
+ Y(t) && e.value.type === "polar" ? (o(), u("foreignObject", {
988
+ key: 1,
989
+ x: e.value.style.chart.comments.offsetX + (R(c.value[a].middlePoint) === "end" ? n(T)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width : R(c.value[a].middlePoint) === "middle" ? n(T)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : n(T)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x),
990
+ y: at(c.value[a]) + e.value.style.chart.comments.offsetY,
991
+ width: e.value.style.chart.comments.width,
992
+ height: "200",
993
+ style: { overflow: "visible", "pointer-events": "none" }
994
+ }, [
995
+ f("div", null, [
996
+ m(l.$slots, "plot-comment", {
997
+ plot: { ...t, textAlign: R(c.value[a].middlePoint), flexAlign: R(c.value[a].middlePoint) }
998
+ }, void 0, !0)
999
+ ])
1000
+ ], 8, Jl)) : i("", !0)
1001
+ ])) : i("", !0)
1002
+ ], 10, Dl))), 256)),
1003
+ m(l.$slots, "svg", { svg: s.value }, void 0, !0)
1004
+ ], 14, Wt)) : i("", !0),
1005
+ l.$slots.watermark ? (o(), u("div", Kl, [
1006
+ m(l.$slots, "watermark", j(W({ isPrinting: n(Se) || n(Fe) })), void 0, !0)
1007
+ ])) : i("", !0),
1008
+ K.value ? i("", !0) : (o(), U(Xt, {
1009
+ key: 6,
1010
+ config: {
1011
+ type: "donut",
1012
+ style: {
1013
+ backgroundColor: e.value.style.chart.backgroundColor,
1014
+ donut: {
1015
+ color: "#CCCCCC",
1016
+ strokeWidth: Q.value * 0.8
1017
+ }
1018
+ }
1019
+ }
1020
+ }, null, 8, ["config"])),
1021
+ f("div", {
1022
+ ref_key: "chartLegend",
1023
+ ref: pe
1024
+ }, [
1025
+ e.value.style.chart.legend.show ? (o(), U(Nt, {
1026
+ key: `legend_${ke.value}`,
1027
+ legendSet: Ne.value,
1028
+ config: lt.value,
1029
+ onClickMarker: r[4] || (r[4] = ({ i: t }) => Ae(t))
1030
+ }, We({
1031
+ item: $(({ legend: t, index: a }) => [
1032
+ f("div", {
1033
+ style: O(`opacity:${X.value.includes(a) ? 0.5 : 1}`),
1034
+ onClick: (v) => t.segregate()
1035
+ }, [
1036
+ He(C(t.name) + ": " + C(n(A)(
1037
+ e.value.style.chart.layout.labels.value.formatter,
1038
+ t.value,
1039
+ n(L)({
1040
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
1041
+ v: t.value,
1042
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
1043
+ r: e.value.style.chart.legend.roundingValue
1044
+ }),
1045
+ {
1046
+ datapoint: t,
1047
+ index: a
1048
+ }
1049
+ )) + " ", 1),
1050
+ X.value.includes(a) ? (o(), u("span", ea, " ( " + C(st(t.proportion * 100)) + " % ) ", 1)) : (o(), u("span", Zl, " (" + C(isNaN(t.value / S.value) ? "-" : n(A)(
1051
+ e.value.style.chart.layout.labels.percentage.formatter,
1052
+ Ie.value(t),
1053
+ n(L)({
1054
+ v: Ie.value(t),
1055
+ s: "%",
1056
+ r: e.value.style.chart.legend.roundingPercentage
1057
+ })
1058
+ )) + ") ", 1))
1059
+ ], 12, Ql)
1060
+ ]),
1061
+ _: 2
1062
+ }, [
1063
+ l.$slots.pattern ? {
1064
+ name: "legend-pattern",
1065
+ fn: $(({ legend: t, index: a }) => [
1066
+ he(Vt, {
1067
+ shape: t.shape,
1068
+ radius: 30,
1069
+ stroke: "none",
1070
+ plot: { x: 30, y: 30 },
1071
+ fill: `url(#pattern_${y.value}_${a})`
1072
+ }, null, 8, ["shape", "fill"])
1073
+ ]),
1074
+ key: "0"
1075
+ } : void 0
1076
+ ]), 1032, ["legendSet", "config"])) : i("", !0),
1077
+ m(l.$slots, "legend", { legend: Ne.value }, void 0, !0)
1078
+ ], 512),
1079
+ l.$slots.source ? (o(), u("div", {
1080
+ key: 7,
1081
+ ref_key: "source",
1082
+ ref: ge,
1083
+ dir: "auto"
1084
+ }, [
1085
+ m(l.$slots, "source", {}, void 0, !0)
1086
+ ], 512)) : i("", !0),
1087
+ he(At, {
1088
+ show: g.value.showTooltip && ae.value,
1089
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1090
+ color: e.value.style.chart.tooltip.color,
1091
+ fontSize: e.value.style.chart.tooltip.fontSize,
1092
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
1093
+ borderColor: e.value.style.chart.tooltip.borderColor,
1094
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
1095
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1096
+ position: e.value.style.chart.tooltip.position,
1097
+ offsetY: e.value.style.chart.tooltip.offsetY,
1098
+ parent: E.value,
1099
+ content: se.value,
1100
+ isCustom: Z.value,
1101
+ isFullscreen: q.value
1102
+ }, {
1103
+ "tooltip-before": $(() => [
1104
+ m(l.$slots, "tooltip-before", j(W({ ...ie.value })), void 0, !0)
1105
+ ]),
1106
+ "tooltip-after": $(() => [
1107
+ m(l.$slots, "tooltip-after", j(W({ ...ie.value })), void 0, !0)
1108
+ ]),
1109
+ _: 3
1110
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
1111
+ K.value ? (o(), U(It, {
1112
+ key: 8,
1113
+ hideDetails: "",
1114
+ config: {
1115
+ open: g.value.showTable,
1116
+ maxHeight: 1e4,
1117
+ body: {
1118
+ backgroundColor: e.value.style.chart.backgroundColor,
1119
+ color: e.value.style.chart.color
1120
+ },
1121
+ head: {
1122
+ backgroundColor: e.value.style.chart.backgroundColor,
1123
+ color: e.value.style.chart.color
1124
+ }
1125
+ }
1126
+ }, {
1127
+ content: $(() => [
1128
+ (o(), U(Yt, {
1129
+ key: `table_${we.value}`,
1130
+ colNames: oe.value.colNames,
1131
+ head: oe.value.head,
1132
+ body: oe.value.body,
1133
+ config: oe.value.config,
1134
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1135
+ onClose: r[5] || (r[5] = (t) => g.value.showTable = !1)
1136
+ }, {
1137
+ th: $(({ th: t }) => [
1138
+ f("div", {
1139
+ innerHTML: t,
1140
+ style: { display: "flex", "align-items": "center" }
1141
+ }, null, 8, ta)
1142
+ ]),
1143
+ td: $(({ td: t }) => [
1144
+ He(C(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : n(A)(
1145
+ e.value.style.chart.layout.labels.percentage.formatter,
1146
+ t,
1147
+ n(L)({
1148
+ v: t,
1149
+ s: "%",
1150
+ r: e.value.style.chart.layout.labels.percentage.rounding
1151
+ })
1152
+ ) : n(A)(
1153
+ e.value.style.chart.layout.labels.value.formatter,
1154
+ t,
1155
+ n(L)({
1156
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
1157
+ v: t,
1158
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
1159
+ r: e.value.style.chart.layout.labels.value.rounding
1160
+ })
1161
+ )), 1)
1162
+ ]),
1163
+ _: 1
1164
+ }, 8, ["colNames", "head", "body", "config", "title"]))
1165
+ ]),
1166
+ _: 1
1167
+ }, 8, ["config"])) : i("", !0)
1168
+ ], 46, jt));
1169
+ }
1170
+ }, ma = /* @__PURE__ */ Gt(la, [["__scopeId", "data-v-bac48d71"]]);
1171
+ export {
1172
+ ma as default
1173
+ };