vue-data-ui 2.3.28 → 2.3.29

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 (180) hide show
  1. package/README.md +15 -0
  2. package/dist/{Arrow-C6lQ94rK.cjs → Arrow-B8z06v67.cjs} +1 -1
  3. package/dist/{Arrow-BPoxM_Tq.js → Arrow-Bh7WeO_g.js} +1 -1
  4. package/dist/{BaseIcon-Op8_v5x7.js → BaseIcon-BG_bJS3R.js} +1 -1
  5. package/dist/{BaseIcon-BK5xYOzV.cjs → BaseIcon-DDCJA3rm.cjs} +1 -1
  6. package/dist/{DataTable-bEXuvNn5.js → DataTable-CsPidn0_.js} +23 -20
  7. package/dist/DataTable-Doh_4M84.cjs +1 -0
  8. package/dist/{Legend-BNfS77GS.cjs → Legend-B20rRwGi.cjs} +1 -1
  9. package/dist/{Legend-DwludSgp.js → Legend-CkQ_zypV.js} +1 -1
  10. package/dist/{Shape-COYAxpcP.js → Shape-B4gGeBLI.js} +1 -1
  11. package/dist/{Shape-CcWWIf-s.cjs → Shape-B8O8_E6l.cjs} +1 -1
  12. package/dist/{Slicer-DGkm-5p-.cjs → Slicer-BXveU40S.cjs} +1 -1
  13. package/dist/{Slicer-Cv-2s_-r.js → Slicer-DaEfxscP.js} +1 -1
  14. package/dist/{Title-DQz9dO4d.cjs → Title-BU6E8Xld.cjs} +1 -1
  15. package/dist/{Title-CtWGLaoz.js → Title-eBTH8iGJ.js} +1 -1
  16. package/dist/{Tooltip-D6BUVHr1.js → Tooltip-B11OahTD.js} +1 -1
  17. package/dist/{Tooltip-DQgBkgFk.cjs → Tooltip-Oicp_EIo.cjs} +1 -1
  18. package/dist/{index-BhCM2QF1.js → index-BlXzlBwZ.js} +443 -364
  19. package/dist/index-hKWfT7Wa.cjs +4 -0
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +65 -0
  22. package/dist/types/vue-data-ui.d.ts +65 -0
  23. package/dist/{useNestedProp-CH3PVhvc.js → useNestedProp-BoNl5H_z.js} +1 -1
  24. package/dist/{useNestedProp-C2H2jmU6.cjs → useNestedProp-Cggpoz7e.cjs} +1 -1
  25. package/dist/{usePrinter-B75HLwzw.js → usePrinter-CZ8F5Cth.js} +1 -1
  26. package/dist/{usePrinter-DTF28E03.cjs → usePrinter-DoYKBzst.cjs} +1 -1
  27. package/dist/{vue-data-ui-DdhV5Pth.js → vue-data-ui-BOqzG_nZ.js} +57 -57
  28. package/dist/{vue-data-ui-cqeqQWwY.cjs → vue-data-ui-CGgiWEo3.cjs} +1 -1
  29. package/dist/vue-data-ui.cjs +1 -1
  30. package/dist/vue-data-ui.js +6 -6
  31. package/dist/{vue-ui-3d-bar-gi0fEJUl.js → vue-ui-3d-bar-CjnVg4YI.js} +342 -294
  32. package/dist/vue-ui-3d-bar-CpntMt7p.cjs +19 -0
  33. package/dist/{vue-ui-accordion-CVrj6roI.cjs → vue-ui-accordion-CTYvdLLH.cjs} +1 -1
  34. package/dist/{vue-ui-accordion-CSZdj7wA.js → vue-ui-accordion-wHRG3nXl.js} +3 -3
  35. package/dist/vue-ui-age-pyramid-DDiL1Zje.cjs +1 -0
  36. package/dist/{vue-ui-age-pyramid-CFSWDX3d.js → vue-ui-age-pyramid-vmCwgRy9.js} +258 -219
  37. package/dist/{vue-ui-annotator-DqZU11ky.js → vue-ui-annotator-9FGJdNLY.js} +1 -1
  38. package/dist/{vue-ui-annotator-u5YbenPl.cjs → vue-ui-annotator-DQ3wKf9n.cjs} +1 -1
  39. package/dist/{vue-ui-candlestick-C3xswSm3.cjs → vue-ui-candlestick-6joQ9JKQ.cjs} +1 -1
  40. package/dist/{vue-ui-candlestick-Dph2PhZC.js → vue-ui-candlestick-DpMr2r0i.js} +9 -9
  41. package/dist/{vue-ui-carousel-table-0S6lSZnt.cjs → vue-ui-carousel-table-BV0EOLqU.cjs} +1 -1
  42. package/dist/{vue-ui-carousel-table-eY08SE2G.js → vue-ui-carousel-table-CgR4ADOz.js} +4 -4
  43. package/dist/{vue-ui-chestnut-BikYCrjQ.js → vue-ui-chestnut-Ca2878kV.js} +439 -347
  44. package/dist/vue-ui-chestnut-CxoCcw_B.cjs +6 -0
  45. package/dist/{vue-ui-cursor-OFgeAFSo.js → vue-ui-cursor-BW8C6oUc.js} +2 -2
  46. package/dist/{vue-ui-cursor-DUA57VkZ.cjs → vue-ui-cursor-DxF_gXQf.cjs} +1 -1
  47. package/dist/{vue-ui-dashboard-BTG0m9YL.cjs → vue-ui-dashboard-BGrVyITN.cjs} +1 -1
  48. package/dist/{vue-ui-dashboard-DA4M1Z0-.js → vue-ui-dashboard-DN4nErBZ.js} +2 -2
  49. package/dist/{vue-ui-digits-55Zmunkv.js → vue-ui-digits-CmSFSs5S.js} +2 -2
  50. package/dist/{vue-ui-digits-COxRiMVI.cjs → vue-ui-digits-CpSKBG2c.cjs} +1 -1
  51. package/dist/vue-ui-donut-BqfRwAIM.js +857 -0
  52. package/dist/vue-ui-donut-C29yXH3H.cjs +1 -0
  53. package/dist/vue-ui-donut-evolution-COFG73Xl.cjs +1 -0
  54. package/dist/vue-ui-donut-evolution-DIR7yBUC.js +839 -0
  55. package/dist/{vue-ui-dumbbell-BSFT-Bce.cjs → vue-ui-dumbbell-1NA60u3h.cjs} +2 -2
  56. package/dist/{vue-ui-dumbbell-BtEXt5Ox.js → vue-ui-dumbbell-BASuPAvI.js} +202 -187
  57. package/dist/{vue-ui-flow-BPEGOFRZ.cjs → vue-ui-flow-DBK7d0DQ.cjs} +1 -1
  58. package/dist/{vue-ui-flow-BBoXBTkC.js → vue-ui-flow-wq0aqc5r.js} +98 -93
  59. package/dist/vue-ui-galaxy-BgdVvk4N.cjs +1 -0
  60. package/dist/{vue-ui-galaxy-ZFEufIyy.js → vue-ui-galaxy-CFQ2hQAl.js} +180 -144
  61. package/dist/{vue-ui-gauge-CfZ9XJW_.cjs → vue-ui-gauge-C4_kEbgg.cjs} +1 -1
  62. package/dist/{vue-ui-gauge-BqZp_V5m.js → vue-ui-gauge-CIN265dN.js} +158 -149
  63. package/dist/vue-ui-gizmo-BpT3iwC9.cjs +1 -0
  64. package/dist/{vue-ui-gizmo-DitbWAJp.js → vue-ui-gizmo-DRXWEpqU.js} +63 -49
  65. package/dist/vue-ui-heatmap-CVD7FVfk.cjs +1 -0
  66. package/dist/vue-ui-heatmap-Dc0ft_Ga.js +644 -0
  67. package/dist/{vue-ui-kpi-BWuzEkyY.js → vue-ui-kpi-DDL1TvBP.js} +19 -10
  68. package/dist/{vue-ui-kpi-B2Bo26hh.cjs → vue-ui-kpi-WDZIt76s.cjs} +1 -1
  69. package/dist/{vue-ui-mini-loader-BwAWiK3k.js → vue-ui-mini-loader-B2C5U55l.js} +2 -2
  70. package/dist/{vue-ui-mini-loader-C_Nb-qVd.cjs → vue-ui-mini-loader-BcGSpUfg.cjs} +1 -1
  71. package/dist/{vue-ui-molecule-CSbXNrvu.cjs → vue-ui-molecule-C5BmRi2R.cjs} +1 -1
  72. package/dist/{vue-ui-molecule-BD2UW2lJ.js → vue-ui-molecule-CD3cPNOq.js} +9 -9
  73. package/dist/{vue-ui-mood-radar-CbMab8pJ.js → vue-ui-mood-radar-D0KbeV5j.js} +213 -187
  74. package/dist/vue-ui-mood-radar-afS64zg-.cjs +1 -0
  75. package/dist/{vue-ui-nested-donuts-SDaiotgC.js → vue-ui-nested-donuts-BGoc1RFX.js} +295 -228
  76. package/dist/vue-ui-nested-donuts-D-TeyOtL.cjs +17 -0
  77. package/dist/{vue-ui-onion-BamHJBdP.js → vue-ui-onion-B_khL0Kv.js} +230 -196
  78. package/dist/vue-ui-onion-CFdbWLu3.cjs +1 -0
  79. package/dist/{vue-ui-parallel-coordinate-plot-BaAa3t1h.cjs → vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs} +2 -2
  80. package/dist/{vue-ui-parallel-coordinate-plot-1R4CyBdQ.js → vue-ui-parallel-coordinate-plot-CP4V0K8m.js} +87 -87
  81. package/dist/{vue-ui-quadrant-CKCLhAS7.js → vue-ui-quadrant-C1YbjeI7.js} +455 -397
  82. package/dist/vue-ui-quadrant-C6-A8Gx_.cjs +1 -0
  83. package/dist/vue-ui-quick-chart-ConXdEsU.cjs +15 -0
  84. package/dist/vue-ui-quick-chart-CtWhs_2c.js +1374 -0
  85. package/dist/{vue-ui-radar-BY-y8Mal.js → vue-ui-radar-B2vAPYa7.js} +237 -214
  86. package/dist/vue-ui-radar-DMJLLVWb.cjs +1 -0
  87. package/dist/{vue-ui-rating-DGEgzOaB.cjs → vue-ui-rating-DhZ0tltR.cjs} +1 -1
  88. package/dist/{vue-ui-rating-Bq1SsByA.js → vue-ui-rating-xGz4av68.js} +9 -9
  89. package/dist/{vue-ui-relation-circle-BPzLP6U6.js → vue-ui-relation-circle-BQK8wMQE.js} +5 -5
  90. package/dist/{vue-ui-relation-circle-pdZ79G9r.cjs → vue-ui-relation-circle-hb4Q051h.cjs} +1 -1
  91. package/dist/vue-ui-rings-D1EW3d4M.cjs +2 -0
  92. package/dist/{vue-ui-rings-C5ce6pEf.js → vue-ui-rings-ZKjhNx5K.js} +191 -162
  93. package/dist/{vue-ui-scatter-CMetujXJ.js → vue-ui-scatter-CHONk8k0.js} +437 -381
  94. package/dist/vue-ui-scatter-CMRe2b2K.cjs +1 -0
  95. package/dist/{vue-ui-screenshot-BqzljUT3.cjs → vue-ui-screenshot-DcKhT745.cjs} +1 -1
  96. package/dist/{vue-ui-screenshot--2aeIH_x.js → vue-ui-screenshot-DmGe5ptH.js} +6 -6
  97. package/dist/{vue-ui-skeleton-_VMQ594N.js → vue-ui-skeleton-CJ2R5R6u.js} +37 -37
  98. package/dist/{vue-ui-skeleton-B5Z4craS.cjs → vue-ui-skeleton-j-IOiy5w.cjs} +1 -1
  99. package/dist/{vue-ui-smiley-CL-bubXk.cjs → vue-ui-smiley-D5Jn6d5f.cjs} +1 -1
  100. package/dist/{vue-ui-smiley-Cty3e_yE.js → vue-ui-smiley-DXVcosKR.js} +2 -2
  101. package/dist/{vue-ui-spark-trend-DT1fMqf_.cjs → vue-ui-spark-trend-CWH3W7h3.cjs} +1 -1
  102. package/dist/{vue-ui-spark-trend-pgdWTEqG.js → vue-ui-spark-trend-Gg6TxR4m.js} +63 -58
  103. package/dist/vue-ui-sparkbar-BsoKTXr2.cjs +1 -0
  104. package/dist/vue-ui-sparkbar-DUx1qVzQ.js +280 -0
  105. package/dist/{vue-ui-sparkgauge-DdzlyDsm.cjs → vue-ui-sparkgauge-DPusPoRv.cjs} +1 -1
  106. package/dist/{vue-ui-sparkgauge-Dx2gFX6H.js → vue-ui-sparkgauge-xrvp9g87.js} +60 -50
  107. package/dist/vue-ui-sparkhistogram---JRg2R1.cjs +1 -0
  108. package/dist/{vue-ui-sparkhistogram-Bg_fJsT5.js → vue-ui-sparkhistogram-DzYXMNj8.js} +99 -90
  109. package/dist/{vue-ui-sparkline-WMI-RgkW.cjs → vue-ui-sparkline-1Z6GnwoN.cjs} +1 -1
  110. package/dist/{vue-ui-sparkline-BWl_B6LX.js → vue-ui-sparkline-CGWePkVI.js} +114 -105
  111. package/dist/{vue-ui-sparkstackbar-Skcshn6g.cjs → vue-ui-sparkstackbar-DCc68t8g.cjs} +1 -1
  112. package/dist/{vue-ui-sparkstackbar-MMGRG9eS.js → vue-ui-sparkstackbar-DFgeRAbQ.js} +52 -47
  113. package/dist/{vue-ui-stackbar-NZFO3R77.js → vue-ui-stackbar-B0dWToaf.js} +211 -196
  114. package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +15 -0
  115. package/dist/{vue-ui-strip-plot-CJmCgC_a.js → vue-ui-strip-plot-BFqd-S7c.js} +213 -198
  116. package/dist/vue-ui-strip-plot-DZt1Wq20.cjs +1 -0
  117. package/dist/{vue-ui-table-jJ3daLHe.cjs → vue-ui-table-CMvyMuc4.cjs} +1 -1
  118. package/dist/{vue-ui-table-B-vHHlRw.js → vue-ui-table-DtwEoIzI.js} +9 -9
  119. package/dist/{vue-ui-table-heatmap-YCyFyq8J.cjs → vue-ui-table-heatmap-3RSMOHkc.cjs} +1 -1
  120. package/dist/{vue-ui-table-heatmap-BfzDb2H7.js → vue-ui-table-heatmap-C8b3pE04.js} +12 -12
  121. package/dist/vue-ui-table-sparkline-BKOaVFtt.cjs +1 -0
  122. package/dist/vue-ui-table-sparkline-BrqhBv29.js +467 -0
  123. package/dist/vue-ui-thermometer-CKgIqM5y.cjs +1 -0
  124. package/dist/{vue-ui-thermometer-CdtG1AoI.js → vue-ui-thermometer-DMkLvJgE.js} +118 -108
  125. package/dist/{vue-ui-timer-Cb95XSdn.cjs → vue-ui-timer-D7fvoR77.cjs} +1 -1
  126. package/dist/{vue-ui-timer-DBqMb9iX.js → vue-ui-timer-RA9yfgBk.js} +8 -8
  127. package/dist/{vue-ui-tiremarks-CHKETcHr.js → vue-ui-tiremarks-B_EncUi6.js} +79 -71
  128. package/dist/{vue-ui-tiremarks-BqXfvQ4t.cjs → vue-ui-tiremarks-C7y6Mbxe.cjs} +1 -1
  129. package/dist/{vue-ui-treemap-DxKunHfW.js → vue-ui-treemap-BuGZgQsr.js} +274 -236
  130. package/dist/vue-ui-treemap-CfngjVUS.cjs +1 -0
  131. package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +4 -0
  132. package/dist/vue-ui-vertical-bar-T4bFd3JF.js +792 -0
  133. package/dist/vue-ui-waffle-BJFbhWnA.cjs +1 -0
  134. package/dist/vue-ui-waffle-CrxmrYsV.js +735 -0
  135. package/dist/{vue-ui-wheel-kMVi976p.cjs → vue-ui-wheel-BDRvKR1Z.cjs} +1 -1
  136. package/dist/{vue-ui-wheel-4HKXl04I.js → vue-ui-wheel-DOyC7NgR.js} +73 -65
  137. package/dist/{vue-ui-word-cloud-CrC3iKGd.js → vue-ui-word-cloud-DBxVNlJ3.js} +7 -7
  138. package/dist/{vue-ui-word-cloud-WgbYJhMF.cjs → vue-ui-word-cloud-Dmcelg3z.cjs} +1 -1
  139. package/dist/{vue-ui-xy-BN_H7q0X.js → vue-ui-xy-BIbvJSh2.js} +367 -288
  140. package/dist/vue-ui-xy-CVKaR90p.cjs +3 -0
  141. package/dist/vue-ui-xy-canvas-2AaNivzI.cjs +9 -0
  142. package/dist/{vue-ui-xy-canvas-DAY9Ylzs.js → vue-ui-xy-canvas-CXVni3kC.js} +284 -259
  143. package/package.json +1 -1
  144. package/dist/DataTable-B4_9ynlY.cjs +0 -1
  145. package/dist/index-Y23HeR26.cjs +0 -4
  146. package/dist/vue-ui-3d-bar-BB6yidY7.cjs +0 -19
  147. package/dist/vue-ui-age-pyramid-CrTadT86.cjs +0 -1
  148. package/dist/vue-ui-chestnut-C3XOHDgw.cjs +0 -6
  149. package/dist/vue-ui-donut-CG3VWjnG.js +0 -751
  150. package/dist/vue-ui-donut-JA9hlLlV.cjs +0 -1
  151. package/dist/vue-ui-donut-evolution-CA8sDbwX.js +0 -805
  152. package/dist/vue-ui-donut-evolution-_E0xUI9Y.cjs +0 -1
  153. package/dist/vue-ui-galaxy-DPrJum3L.cjs +0 -1
  154. package/dist/vue-ui-gizmo-CrSaW32p.cjs +0 -1
  155. package/dist/vue-ui-heatmap-CTRjjhmd.cjs +0 -1
  156. package/dist/vue-ui-heatmap-zV0pg2Q5.js +0 -606
  157. package/dist/vue-ui-mood-radar-zpxdsZ4u.cjs +0 -1
  158. package/dist/vue-ui-nested-donuts-07UI_VlW.cjs +0 -16
  159. package/dist/vue-ui-onion-DiychUul.cjs +0 -1
  160. package/dist/vue-ui-quadrant-DxLYb8Mk.cjs +0 -1
  161. package/dist/vue-ui-quick-chart-CAXuRSdm.js +0 -1318
  162. package/dist/vue-ui-quick-chart-DgCRM6WA.cjs +0 -13
  163. package/dist/vue-ui-radar-iETP_3US.cjs +0 -1
  164. package/dist/vue-ui-rings-DdpKT3DJ.cjs +0 -1
  165. package/dist/vue-ui-scatter-Dsc6RABP.cjs +0 -1
  166. package/dist/vue-ui-sparkbar-BVQPOz2O.js +0 -257
  167. package/dist/vue-ui-sparkbar-kfA-BPVJ.cjs +0 -1
  168. package/dist/vue-ui-sparkhistogram-B5xstgQG.cjs +0 -1
  169. package/dist/vue-ui-stackbar-DZ0CArmk.cjs +0 -15
  170. package/dist/vue-ui-strip-plot-Db_dqjd9.cjs +0 -1
  171. package/dist/vue-ui-table-sparkline-4Qbmxxsy.cjs +0 -1
  172. package/dist/vue-ui-table-sparkline-DZt-bo2D.js +0 -420
  173. package/dist/vue-ui-thermometer-HXWDU2wD.cjs +0 -1
  174. package/dist/vue-ui-treemap-CW9JmJ2d.cjs +0 -1
  175. package/dist/vue-ui-vertical-bar-83AMwsHD.cjs +0 -4
  176. package/dist/vue-ui-vertical-bar-DRLwZjIz.js +0 -745
  177. package/dist/vue-ui-waffle-BRuDxyDU.js +0 -650
  178. package/dist/vue-ui-waffle-BwUbvdOE.cjs +0 -1
  179. package/dist/vue-ui-xy-BXfP5pz5.cjs +0 -3
  180. package/dist/vue-ui-xy-canvas-NrhVgFsv.cjs +0 -9
@@ -0,0 +1,857 @@
1
+ import { computed as g, ref as d, onMounted as Me, onBeforeUnmount as Ge, watch as Ue, openBlock as s, createElementBlock as n, normalizeClass as ue, normalizeStyle as S, renderSlot as p, createVNode as se, createCommentVNode as v, createBlock as Q, unref as o, createSlots as Ee, withCtx as w, normalizeProps as W, guardReactiveProps as Y, createElementVNode as b, Fragment as V, renderList as H, toDisplayString as _, createTextVNode as Se, nextTick as je, pushScopeId as Re, popScopeId as We } from "vue";
2
+ import { u as Ye, o as He, e as Te, g as Xe, c as qe, t as Je, a as Ke, p as A, b as Qe, d as Z, m as Ze, f as C, X as el, v as ll, j as tl, D as al, i as T, k as y, n as X, w as ol, q as ul, r as sl } from "./index-BlXzlBwZ.js";
3
+ import { t as rl, u as nl } from "./useResponsive-NZB-WLRF.js";
4
+ import { _ as il } from "./Title-eBTH8iGJ.js";
5
+ import { u as vl, U as cl } from "./usePrinter-CZ8F5Cth.js";
6
+ import { D as dl } from "./DataTable-CsPidn0_.js";
7
+ import { _ as hl } from "./Tooltip-B11OahTD.js";
8
+ import { L as yl } from "./Legend-CkQ_zypV.js";
9
+ import fl from "./vue-ui-skeleton-CJ2R5R6u.js";
10
+ import bl from "./vue-ui-accordion-wHRG3nXl.js";
11
+ import { u as Fe } from "./useNestedProp-BoNl5H_z.js";
12
+ import { _ as gl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const pl = (M) => (Re("data-v-66476e18"), M = M(), We(), M), ml = ["id"], wl = ["xmlns", "viewBox"], kl = ["id"], _l = ["stop-color"], Cl = ["stop-color"], xl = ["stop-color"], $l = ["id"], Ll = ["id"], Sl = /* @__PURE__ */ pl(() => /* @__PURE__ */ b("feColorMatrix", {
14
+ type: "saturate",
15
+ values: "0"
16
+ }, null, -1)), Tl = ["id"], Fl = ["flood-color"], zl = ["d", "stroke", "filter"], Nl = ["cx", "cy", "r", "fill", "filter"], Pl = ["stroke", "d"], Ol = ["d", "fill", "stroke", "stroke-width", "filter"], Dl = ["cx", "cy", "r", "fill", "stroke"], Al = ["cx", "cy", "r", "fill"], Il = ["d", "fill", "onMouseenter", "onClick"], Bl = ["cx", "cy", "r", "fill"], Vl = ["x", "y", "fill", "font-size"], Ml = ["x", "y", "fill", "font-size"], Gl = ["x", "y", "fill", "font-size"], Ul = ["x", "y", "fill", "font-size"], El = ["filter"], jl = { key: 0 }, Rl = ["x", "y"], Wl = { key: 1 }, Yl = ["cx", "cy", "fill", "filter", "onClick"], Hl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Xl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ql = { key: 2 }, Jl = ["x", "y", "width"], Kl = {
17
+ key: 3,
18
+ class: "vue-data-ui-watermark"
19
+ }, Ql = ["onClick"], Zl = {
20
+ key: 0,
21
+ style: { "font-variant-numeric": "tabular-nums" }
22
+ }, et = { key: 1 }, lt = ["innerHTML"], tt = {
23
+ __name: "vue-ui-donut",
24
+ props: {
25
+ config: {
26
+ type: Object,
27
+ default() {
28
+ return {};
29
+ }
30
+ },
31
+ dataset: {
32
+ type: Array,
33
+ default() {
34
+ return [];
35
+ }
36
+ }
37
+ },
38
+ emits: ["selectLegend", "selectDatapoint"],
39
+ setup(M, { expose: ze, emit: re }) {
40
+ const F = M, { vue_ui_donut: Ne } = Ye(), G = g({
41
+ get() {
42
+ return !!F.dataset && F.dataset.length;
43
+ },
44
+ set(t) {
45
+ return t;
46
+ }
47
+ }), U = d(null), ne = d(null), ie = d(null), q = d(null);
48
+ Me(() => {
49
+ if (He(F.dataset) ? Te({
50
+ componentName: "VueUiDonut",
51
+ type: "dataset"
52
+ }) : F.dataset.forEach((t, a) => {
53
+ Xe({
54
+ datasetObject: t,
55
+ requiredAttributes: ["name", "values"]
56
+ }).forEach((l) => {
57
+ G.value = !1, Te({
58
+ componentName: "VueUiDonut",
59
+ type: "datasetSerieAttribute",
60
+ property: l,
61
+ index: a
62
+ });
63
+ });
64
+ }), e.value.responsive) {
65
+ const t = rl(() => {
66
+ const { width: a, height: l } = nl({
67
+ chart: U.value,
68
+ title: e.value.style.chart.title.text ? ne.value : null,
69
+ legend: e.value.style.chart.legend.show ? ie.value : null
70
+ });
71
+ i.value.width = a, i.value.height = l;
72
+ });
73
+ q.value = new ResizeObserver(t), q.value.observe(U.value.parentNode);
74
+ }
75
+ }), Ge(() => {
76
+ q.value && q.value.disconnect();
77
+ });
78
+ const x = d(qe()), Pe = d(null), ee = d(!1), le = d(""), z = d(null), ve = d(0), e = g(() => {
79
+ const t = Fe({
80
+ userConfig: F.config,
81
+ defaultConfig: Ne
82
+ });
83
+ return t.theme ? {
84
+ ...Fe({
85
+ userConfig: Je.vue_ui_donut[t.theme] || F.config,
86
+ defaultConfig: t
87
+ }),
88
+ customPalette: Ke[t.theme] || A
89
+ } : t;
90
+ }), { isPrinting: ce, isImaging: de, generatePdf: he, generateImage: ye } = vl({
91
+ elementId: `donut__${x.value}`,
92
+ fileName: e.value.style.chart.title.text || "vue-ui-donut"
93
+ }), fe = g(() => Qe(e.value.customPalette)), f = d({
94
+ dataLabels: {
95
+ show: e.value.style.chart.layout.labels.dataLabels.show
96
+ },
97
+ showTable: e.value.table.show,
98
+ showTooltip: e.value.style.chart.tooltip.show
99
+ }), i = d({
100
+ height: 360,
101
+ width: 512
102
+ }), E = g(() => {
103
+ const t = e.value.style.chart.layout.donut.strokeWidth / 512, a = i.value.width * t;
104
+ return a > e.value.style.chart.layout.donut.strokeWidth ? e.value.style.chart.layout.donut.strokeWidth : a;
105
+ }), P = g(() => F.dataset.map((t, a) => ({
106
+ name: t.name,
107
+ color: Z(t.color) || fe.value[a] || A[a] || A[a % A.length],
108
+ value: t.values.reduce((l, u) => l + u, 0),
109
+ absoluteValues: t.values,
110
+ comment: t.comment || ""
111
+ }))), k = d(P.value);
112
+ Ue(() => P.value, (t) => k.value = t);
113
+ function Oe() {
114
+ return P.value.map((t) => ({
115
+ name: t.name,
116
+ color: t.color,
117
+ value: t.value
118
+ }));
119
+ }
120
+ const $ = d([]), be = d(null), ge = d(null), O = d(!1);
121
+ function pe(t) {
122
+ const a = P.value.find((r, h) => h === t);
123
+ let u = k.value.find((r, h) => h === t).value;
124
+ if ($.value.includes(t)) {
125
+ let h = function() {
126
+ u > r ? (cancelAnimationFrame(be.value), k.value = k.value.map((c, oe) => t === oe ? {
127
+ ...c,
128
+ value: r
129
+ } : c), O.value = !1) : (O.value = !0, u += r * 0.025, k.value = k.value.map((c, oe) => t === oe ? {
130
+ ...c,
131
+ value: u
132
+ } : c), be.value = requestAnimationFrame(h));
133
+ };
134
+ $.value = $.value.filter((c) => c !== t);
135
+ const r = a.value;
136
+ h();
137
+ } else if ($.value.length < P.value.length - 1) {
138
+ let r = function() {
139
+ u < 0.1 ? (cancelAnimationFrame(ge.value), $.value.push(t), k.value = k.value.map((h, c) => t === c ? {
140
+ ...h,
141
+ value: 0
142
+ } : h), O.value = !1) : (O.value = !0, u /= 1.1, k.value = k.value.map((h, c) => t === c ? {
143
+ ...h,
144
+ value: u
145
+ } : h), ge.value = requestAnimationFrame(r));
146
+ };
147
+ r();
148
+ }
149
+ re("selectLegend", I.value.map((r) => ({
150
+ name: r.name,
151
+ color: r.color,
152
+ value: r.value
153
+ })));
154
+ }
155
+ const I = g(() => (k.value.forEach((t, a) => {
156
+ if ([null, void 0].includes(t.values))
157
+ return {
158
+ ...t,
159
+ values: []
160
+ };
161
+ }), k.value.map((t, a) => ({
162
+ ...t,
163
+ seriesIndex: a
164
+ })).filter((t, a) => !$.value.includes(a)))), me = g(() => F.dataset.map((t, a) => ({
165
+ name: t.name,
166
+ color: Z(t.color) || fe.value[a] || A[a] || A[a % A.length],
167
+ value: (t.values || []).reduce((l, u) => l + u, 0),
168
+ shape: "circle"
169
+ })).map((t, a) => ({
170
+ ...t,
171
+ proportion: t.value / F.dataset.map((l) => (l.values || []).reduce((u, r) => u + r, 0)).reduce((l, u) => l + u, 0),
172
+ opacity: $.value.includes(a) ? 0.5 : 1,
173
+ segregate: () => pe(a),
174
+ isSegregated: $.value.includes(a)
175
+ }))), De = g(() => ({
176
+ cy: "donut-div-legend",
177
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
178
+ color: e.value.style.chart.legend.color,
179
+ fontSize: e.value.style.chart.legend.fontSize,
180
+ paddingBottom: 12,
181
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
182
+ })), L = g(() => {
183
+ const t = Math.min(i.value.width / 3, i.value.height / 3);
184
+ return t < 55 ? 55 : t;
185
+ }), D = g(() => Ze({ series: I.value }, i.value.width / 2, i.value.height / 2, L.value, L.value, 1.99999, 2, 1, 360, 105.25, E.value));
186
+ function B(t) {
187
+ return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
188
+ }
189
+ function we(t, a) {
190
+ const l = t.value / Ae(a);
191
+ return isNaN(l) ? 0 : T(
192
+ e.value.style.chart.layout.labels.percentage.formatter,
193
+ l * 100,
194
+ C({
195
+ v: l * 100,
196
+ s: "%",
197
+ r: e.value.style.chart.layout.labels.percentage.rounding
198
+ }),
199
+ { datapoint: t }
200
+ );
201
+ }
202
+ function Ae(t) {
203
+ return [...t].map((a) => a.value).reduce((a, l) => a + l, 0);
204
+ }
205
+ const m = g(() => I.value.map((t) => t.value).reduce((t, a) => t + a, 0)), ke = g(() => m.value / I.value.length), te = d(null), j = d(!1);
206
+ function Ie({ datapoint: t, relativeIndex: a, seriesIndex: l, show: u = !1 }) {
207
+ te.value = { datapoint: t, seriesIndex: l, config: e.value, series: P.value }, ee.value = u, z.value = a;
208
+ let r = "";
209
+ const h = e.value.style.chart.tooltip.customFormat;
210
+ if (j.value = !1, ol(h))
211
+ try {
212
+ const c = h({
213
+ seriesIndex: l,
214
+ datapoint: t,
215
+ series: P.value,
216
+ config: e.value
217
+ });
218
+ typeof c == "string" && (le.value = c, j.value = !0);
219
+ } catch {
220
+ console.warn("Custom format cannot be applied."), j.value = !1;
221
+ }
222
+ if (!j.value) {
223
+ if (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${T(
224
+ e.value.style.chart.layout.labels.value.formatter,
225
+ t.value,
226
+ C({
227
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
228
+ v: t.value,
229
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
230
+ r: e.value.style.chart.tooltip.roundingValue
231
+ }),
232
+ {
233
+ datapoint: t,
234
+ relativeIndex: a,
235
+ seriesIndex: l
236
+ }
237
+ )}</b>`), e.value.style.chart.tooltip.showPercentage) {
238
+ const c = T(
239
+ e.value.style.chart.layout.labels.percentage.formatter,
240
+ t.proportion * 100,
241
+ C({
242
+ v: t.proportion * 100,
243
+ s: "%",
244
+ r: e.value.style.chart.tooltip.roundingPercentage
245
+ }),
246
+ {
247
+ datapoint: t,
248
+ relativeIndex: a,
249
+ seriesIndex: l
250
+ }
251
+ );
252
+ e.value.style.chart.tooltip.showValue ? r += `<span>(${c})</span></div>` : r += `<b>${c}%</b></div>`;
253
+ }
254
+ e.value.style.chart.comments.showInTooltip && t.comment && (r += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${t.color}">${t.comment}</div>`), le.value = `<div>${r}</div>`;
255
+ }
256
+ }
257
+ function ae(t) {
258
+ return e.value.useBlurOnHover && ![null, void 0].includes(z.value) && z.value !== t ? `url(#blur_${x.value})` : "";
259
+ }
260
+ const N = g(() => {
261
+ const t = I.value.map((l) => ({
262
+ name: l.name,
263
+ color: l.color
264
+ })), a = I.value.map((l) => l.value);
265
+ return { head: t, body: a };
266
+ });
267
+ function _e() {
268
+ je(() => {
269
+ const t = N.value.head.map((u, r) => [[
270
+ u.name
271
+ ], [N.value.body[r]], [isNaN(N.value.body[r] / m.value) ? "-" : N.value.body[r] / m.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = ul(a);
272
+ sl({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-donut" });
273
+ });
274
+ }
275
+ const J = g(() => {
276
+ const t = [
277
+ ' <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>',
278
+ C({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: m.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
279
+ "100%"
280
+ ], a = N.value.head.map((r, h) => {
281
+ const c = C({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: N.value.body[h], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
282
+ return [
283
+ {
284
+ color: r.color,
285
+ name: r.name
286
+ },
287
+ c,
288
+ isNaN(N.value.body[h] / m.value) ? "-" : (N.value.body[h] / m.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
289
+ ];
290
+ }), l = {
291
+ th: {
292
+ backgroundColor: e.value.table.th.backgroundColor,
293
+ color: e.value.table.th.color,
294
+ outline: e.value.table.th.outline
295
+ },
296
+ td: {
297
+ backgroundColor: e.value.table.td.backgroundColor,
298
+ color: e.value.table.td.color,
299
+ outline: e.value.table.td.outline
300
+ },
301
+ breakpoint: e.value.table.responsiveBreakpoint
302
+ };
303
+ return {
304
+ colNames: [
305
+ e.value.table.columnNames.series,
306
+ e.value.table.columnNames.value,
307
+ e.value.table.columnNames.percentage
308
+ ],
309
+ head: t,
310
+ body: a,
311
+ config: l
312
+ };
313
+ }), R = d(!1);
314
+ function Be(t) {
315
+ R.value = t, ve.value += 1;
316
+ }
317
+ const Ce = g(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
318
+ function Ve(t) {
319
+ return t.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((a) => "-").join("");
320
+ }
321
+ function K(t, a) {
322
+ re("selectDatapoint", { datapoint: t, index: a });
323
+ }
324
+ function xe() {
325
+ f.value.showTable = !f.value.showTable;
326
+ }
327
+ function $e() {
328
+ f.value.dataLabels.show = !f.value.dataLabels.show;
329
+ }
330
+ function Le() {
331
+ f.value.showTooltip = !f.value.showTooltip;
332
+ }
333
+ return ze({
334
+ getData: Oe,
335
+ generatePdf: he,
336
+ generateCsv: _e,
337
+ generateImage: ye,
338
+ toggleTable: xe,
339
+ toggleLabels: $e,
340
+ toggleTooltip: Le
341
+ }), (t, a) => (s(), n("div", {
342
+ ref_key: "donutChart",
343
+ ref: U,
344
+ class: ue(`vue-ui-donut ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
345
+ style: S(`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}`),
346
+ id: `donut__${x.value}`
347
+ }, [
348
+ p(t.$slots, "userConfig", {}, void 0, !0),
349
+ e.value.style.chart.title.text ? (s(), n("div", {
350
+ key: 0,
351
+ ref_key: "chartTitle",
352
+ ref: ne,
353
+ style: S(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
354
+ }, [
355
+ se(il, {
356
+ config: {
357
+ title: {
358
+ cy: "donut-div-title",
359
+ ...e.value.style.chart.title
360
+ },
361
+ subtitle: {
362
+ cy: "donut-div-subtitle",
363
+ ...e.value.style.chart.title.subtitle
364
+ }
365
+ }
366
+ }, null, 8, ["config"])
367
+ ], 4)) : v("", !0),
368
+ e.value.userOptions.show && G.value ? (s(), Q(cl, {
369
+ ref_key: "details",
370
+ ref: Pe,
371
+ key: `user_option_${ve.value}`,
372
+ backgroundColor: e.value.style.chart.backgroundColor,
373
+ color: e.value.style.chart.color,
374
+ isPrinting: o(ce),
375
+ isImaging: o(de),
376
+ uid: x.value,
377
+ hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
378
+ hasPdf: e.value.userOptions.buttons.pdf,
379
+ hasImg: e.value.userOptions.buttons.img,
380
+ hasXls: e.value.userOptions.buttons.csv,
381
+ hasTable: e.value.userOptions.buttons.table,
382
+ hasLabel: e.value.userOptions.buttons.labels,
383
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
384
+ isFullscreen: R.value,
385
+ chartElement: U.value,
386
+ isTooltip: f.value.showTooltip,
387
+ titles: { ...e.value.userOptions.buttonTitles },
388
+ onToggleFullscreen: Be,
389
+ onGeneratePdf: o(he),
390
+ onGenerateCsv: _e,
391
+ onGenerateImage: o(ye),
392
+ onToggleTable: xe,
393
+ onToggleLabels: $e,
394
+ onToggleTooltip: Le
395
+ }, Ee({ _: 2 }, [
396
+ t.$slots.optionTooltip ? {
397
+ name: "optionTooltip",
398
+ fn: w(() => [
399
+ p(t.$slots, "optionTooltip", {}, void 0, !0)
400
+ ]),
401
+ key: "0"
402
+ } : void 0,
403
+ t.$slots.optionPdf ? {
404
+ name: "optionPdf",
405
+ fn: w(() => [
406
+ p(t.$slots, "optionPdf", {}, void 0, !0)
407
+ ]),
408
+ key: "1"
409
+ } : void 0,
410
+ t.$slots.optionCsv ? {
411
+ name: "optionCsv",
412
+ fn: w(() => [
413
+ p(t.$slots, "optionCsv", {}, void 0, !0)
414
+ ]),
415
+ key: "2"
416
+ } : void 0,
417
+ t.$slots.optionImg ? {
418
+ name: "optionImg",
419
+ fn: w(() => [
420
+ p(t.$slots, "optionImg", {}, void 0, !0)
421
+ ]),
422
+ key: "3"
423
+ } : void 0,
424
+ t.$slots.optionTable ? {
425
+ name: "optionTable",
426
+ fn: w(() => [
427
+ p(t.$slots, "optionTable", {}, void 0, !0)
428
+ ]),
429
+ key: "4"
430
+ } : void 0,
431
+ t.$slots.optionLabels ? {
432
+ name: "optionLabels",
433
+ fn: w(() => [
434
+ p(t.$slots, "optionLabels", {}, void 0, !0)
435
+ ]),
436
+ key: "5"
437
+ } : void 0,
438
+ t.$slots.optionFullscreen ? {
439
+ name: "optionFullscreen",
440
+ fn: w(({ toggleFullscreen: l, isFullscreen: u }) => [
441
+ p(t.$slots, "optionFullscreen", W(Y({ toggleFullscreen: l, isFullscreen: u })), void 0, !0)
442
+ ]),
443
+ key: "6"
444
+ } : void 0
445
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
446
+ G.value ? (s(), n("svg", {
447
+ key: 2,
448
+ xmlns: o(el),
449
+ class: ue({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }),
450
+ viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
451
+ style: S(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
452
+ }, [
453
+ b("defs", null, [
454
+ e.value.style.chart.useGradient ? (s(), n("radialGradient", {
455
+ key: 0,
456
+ id: `gradient_${x.value}`
457
+ }, [
458
+ b("stop", {
459
+ offset: "0%",
460
+ "stop-color": `${o(Z)(e.value.style.chart.backgroundColor)}00`
461
+ }, null, 8, _l),
462
+ b("stop", {
463
+ offset: "77%",
464
+ "stop-color": "#FFFFFF" + o(ll)[e.value.style.chart.gradientIntensity]
465
+ }, null, 8, Cl),
466
+ b("stop", {
467
+ offset: "100%",
468
+ "stop-color": `${o(Z)(e.value.style.chart.backgroundColor)}00`
469
+ }, null, 8, xl)
470
+ ], 8, kl)) : v("", !0)
471
+ ]),
472
+ b("defs", null, [
473
+ b("filter", {
474
+ id: `blur_${x.value}`,
475
+ x: "-50%",
476
+ y: "-50%",
477
+ width: "200%",
478
+ height: "200%"
479
+ }, [
480
+ b("feGaussianBlur", {
481
+ in: "SourceGraphic",
482
+ stdDeviation: 2,
483
+ id: `blur_std_${x.value}`
484
+ }, null, 8, Ll),
485
+ Sl
486
+ ], 8, $l),
487
+ b("filter", {
488
+ id: `shadow_${x.value}`,
489
+ "color-interpolation-filters": "sRGB"
490
+ }, [
491
+ b("feDropShadow", {
492
+ dx: "0",
493
+ dy: "0",
494
+ stdDeviation: "10",
495
+ "flood-opacity": "0.5",
496
+ "flood-color": e.value.style.chart.layout.donut.shadowColor
497
+ }, null, 8, Fl)
498
+ ], 8, Tl)
499
+ ]),
500
+ (s(!0), n(V, null, H(D.value, (l, u) => (s(), n("g", null, [
501
+ B(l) && f.value.dataLabels.show ? (s(), n("path", {
502
+ key: 0,
503
+ d: o(tl)(l, { x: i.value.width / 2, y: i.value.height / 2 }, 16, 16, !1, !1, E.value),
504
+ stroke: l.color,
505
+ "stroke-width": "1",
506
+ "stroke-linecap": "round",
507
+ "stroke-linejoin": "round",
508
+ fill: "none",
509
+ filter: ae(u)
510
+ }, null, 8, zl)) : v("", !0)
511
+ ]))), 256)),
512
+ b("circle", {
513
+ cx: i.value.width / 2,
514
+ cy: i.value.height / 2,
515
+ r: L.value <= 0 ? 10 : L.value,
516
+ fill: e.value.style.chart.backgroundColor,
517
+ filter: e.value.style.chart.layout.donut.useShadow ? `url(#shadow_${x.value})` : ""
518
+ }, null, 8, Nl),
519
+ m.value ? (s(), n(V, { key: 0 }, [
520
+ (s(!0), n(V, null, H(D.value, (l, u) => (s(), n("path", {
521
+ stroke: e.value.style.chart.backgroundColor,
522
+ d: l.arcSlice,
523
+ fill: "#FFFFFF"
524
+ }, null, 8, Pl))), 256)),
525
+ (s(!0), n(V, null, H(D.value, (l, u) => (s(), n("path", {
526
+ class: "vue-ui-donut-arc-path",
527
+ d: l.arcSlice,
528
+ fill: `${l.color}CC`,
529
+ stroke: e.value.style.chart.backgroundColor,
530
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth,
531
+ filter: ae(u)
532
+ }, null, 8, Ol))), 256))
533
+ ], 64)) : (s(), n("circle", {
534
+ key: 1,
535
+ cx: i.value.width / 2,
536
+ cy: i.value.height / 2,
537
+ r: L.value <= 0 ? 10 : L.value,
538
+ fill: e.value.style.chart.backgroundColor,
539
+ stroke: o(al)(e.value.style.chart.background)
540
+ }, null, 8, Dl)),
541
+ e.value.style.chart.useGradient ? (s(), n("circle", {
542
+ key: 2,
543
+ cx: i.value.width / 2,
544
+ cy: i.value.height / 2,
545
+ r: (
546
+ /* This might require adjustments */
547
+ L.value <= 0 ? 10 : L.value
548
+ ),
549
+ fill: `url(#gradient_${x.value})`
550
+ }, null, 8, Al)) : v("", !0),
551
+ m.value ? (s(!0), n(V, { key: 3 }, H(D.value, (l, u) => (s(), n("path", {
552
+ "data-cy-donut-trap": "",
553
+ d: l.arcSlice,
554
+ fill: z.value === u ? "rgba(0,0,0,0.1)" : "transparent",
555
+ onMouseenter: (r) => Ie({
556
+ datapoint: l,
557
+ relativeIndex: u,
558
+ seriesIndex: l.seriesIndex,
559
+ show: !0
560
+ }),
561
+ onMouseleave: a[0] || (a[0] = (r) => {
562
+ ee.value = !1, z.value = null;
563
+ }),
564
+ onClick: (r) => K(l, u)
565
+ }, null, 40, Il))), 256)) : v("", !0),
566
+ e.value.style.chart.layout.labels.hollow.show ? (s(), n("circle", {
567
+ key: 4,
568
+ cx: i.value.width / 2,
569
+ cy: i.value.height / 2,
570
+ r: (
571
+ /* This might require adjustments */
572
+ L.value - E.value <= 0 ? 10 : L.value - E.value
573
+ ),
574
+ fill: e.value.style.chart.backgroundColor
575
+ }, null, 8, Bl)) : v("", !0),
576
+ e.value.style.chart.layout.labels.hollow.total.show ? (s(), n("text", {
577
+ key: 5,
578
+ "text-anchor": "middle",
579
+ x: i.value.width / 2,
580
+ y: i.value.height / 2 - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.offsetY,
581
+ fill: e.value.style.chart.layout.labels.hollow.total.color,
582
+ "font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
583
+ style: S(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
584
+ }, _(e.value.style.chart.layout.labels.hollow.total.text), 13, Vl)) : v("", !0),
585
+ e.value.style.chart.layout.labels.hollow.total.show ? (s(), n("text", {
586
+ key: 6,
587
+ "text-anchor": "middle",
588
+ x: i.value.width / 2,
589
+ y: i.value.height / 2 + e.value.style.chart.layout.labels.hollow.total.fontSize - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.value.offsetY,
590
+ fill: e.value.style.chart.layout.labels.hollow.total.value.color,
591
+ "font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
592
+ style: S(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
593
+ }, _(o(T)(
594
+ e.value.style.chart.layout.labels.hollow.total.value.formatter,
595
+ m.value,
596
+ o(C)({
597
+ p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
598
+ v: m.value,
599
+ s: e.value.style.chart.layout.labels.hollow.total.value.suffix
600
+ })
601
+ )), 13, Ml)) : v("", !0),
602
+ e.value.style.chart.layout.labels.hollow.average.show ? (s(), n("text", {
603
+ key: 7,
604
+ "text-anchor": "middle",
605
+ x: i.value.width / 2,
606
+ y: i.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.offsetY,
607
+ fill: e.value.style.chart.layout.labels.hollow.average.color,
608
+ "font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
609
+ style: S(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
610
+ }, _(e.value.style.chart.layout.labels.hollow.average.text), 13, Gl)) : v("", !0),
611
+ e.value.style.chart.layout.labels.hollow.average.show ? (s(), n("text", {
612
+ key: 8,
613
+ "text-anchor": "middle",
614
+ x: i.value.width / 2,
615
+ y: i.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.fontSize + e.value.style.chart.layout.labels.hollow.average.value.offsetY,
616
+ fill: e.value.style.chart.layout.labels.hollow.average.value.color,
617
+ "font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
618
+ style: S(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
619
+ }, _(O.value ? "--" : o(T)(
620
+ e.value.style.chart.layout.labels.hollow.average.value.formatter,
621
+ ke.value,
622
+ o(C)({
623
+ p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
624
+ v: ke.value,
625
+ s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
626
+ r: e.value.style.chart.layout.labels.hollow.average.value.rounding
627
+ })
628
+ )), 13, Ul)) : v("", !0),
629
+ (s(!0), n(V, null, H(D.value, (l, u) => (s(), n("g", {
630
+ filter: ae(u),
631
+ class: ue({ animated: e.value.useCssAnimation })
632
+ }, [
633
+ e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), n("g", jl, [
634
+ (s(), n("foreignObject", {
635
+ x: o(y)(l, !0).anchor === "end" ? o(y)(l).x - 120 : o(y)(l, !0).anchor === "middle" ? o(y)(l).x - 60 : o(y)(l).x,
636
+ y: o(X)(l) - (Ce.value ? 20 : 0),
637
+ width: "120",
638
+ height: "60",
639
+ style: { overflow: "visible" }
640
+ }, [
641
+ b("div", null, [
642
+ p(t.$slots, "dataLabel", W(Y({
643
+ datapoint: l,
644
+ isBlur: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === u,
645
+ isSafari: Ce.value,
646
+ isVisible: B(l) && f.value.dataLabels.show,
647
+ textAlign: o(y)(l, !0, 16, !0).anchor,
648
+ flexAlign: o(y)(l, !0, 16).anchor,
649
+ percentage: we(l, D.value)
650
+ })), void 0, !0)
651
+ ])
652
+ ], 8, Rl))
653
+ ])) : (s(), n("g", Wl, [
654
+ B(l) && f.value.dataLabels.show ? (s(), n("circle", {
655
+ key: 0,
656
+ cx: o(y)(l).x,
657
+ cy: o(X)(l) - 3.5,
658
+ fill: l.color,
659
+ r: 3,
660
+ filter: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === u ? "" : `url(#blur_${x.value})`,
661
+ onClick: (r) => K(l, u)
662
+ }, null, 8, Yl)) : v("", !0),
663
+ B(l) && f.value.dataLabels.show ? (s(), n("text", {
664
+ key: 1,
665
+ "text-anchor": o(y)(l, !0, 12).anchor,
666
+ x: o(y)(l, !0, 12).x,
667
+ y: o(X)(l),
668
+ fill: e.value.style.chart.layout.labels.percentage.color,
669
+ "font-size": e.value.style.chart.layout.labels.percentage.fontSize,
670
+ style: S(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
671
+ onClick: (r) => K(l, u)
672
+ }, _(we(l, D.value)) + " " + _(e.value.style.chart.layout.labels.value.show ? `(${o(T)(
673
+ e.value.style.chart.layout.labels.value.formatter,
674
+ l.value,
675
+ o(C)({
676
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
677
+ v: l.value,
678
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
679
+ r: e.value.style.chart.layout.labels.value.rounding
680
+ }),
681
+ { datapoint: l }
682
+ )})` : ""), 13, Hl)) : v("", !0),
683
+ B(l) && f.value.dataLabels.show ? (s(), n("text", {
684
+ key: 2,
685
+ "text-anchor": o(y)(l).anchor,
686
+ x: o(y)(l, !0, 12).x,
687
+ y: o(X)(l) + e.value.style.chart.layout.labels.percentage.fontSize,
688
+ fill: e.value.style.chart.layout.labels.name.color,
689
+ "font-size": e.value.style.chart.layout.labels.name.fontSize,
690
+ style: S(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
691
+ onClick: (r) => K(l, u)
692
+ }, _(l.name), 13, Xl)) : v("", !0)
693
+ ])),
694
+ f.value.dataLabels.show && e.value.style.chart.comments.show && l.comment ? (s(), n("g", ql, [
695
+ B(l) ? (s(), n("foreignObject", {
696
+ key: 0,
697
+ x: e.value.style.chart.comments.offsetX + (o(y)(l, !0).anchor === "end" ? o(y)(l).x - e.value.style.chart.comments.width : o(y)(l, !0).anchor === "middle" ? o(y)(l).x - e.value.style.chart.comments.width / 2 : o(y)(l).x),
698
+ y: o(X)(l) + 24 + e.value.style.chart.comments.offsetY,
699
+ width: e.value.style.chart.comments.width,
700
+ height: "200",
701
+ style: { overflow: "visible", "pointer-events": "none" }
702
+ }, [
703
+ b("div", null, [
704
+ p(t.$slots, "plot-comment", {
705
+ plot: { ...l, textAlign: o(y)(l, !0, 16, !0).anchor, flexAlign: o(y)(l, !0, 16).anchor }
706
+ }, void 0, !0)
707
+ ])
708
+ ], 8, Jl)) : v("", !0)
709
+ ])) : v("", !0)
710
+ ], 10, El))), 256)),
711
+ p(t.$slots, "svg", { svg: i.value }, void 0, !0)
712
+ ], 14, wl)) : v("", !0),
713
+ t.$slots.watermark ? (s(), n("div", Kl, [
714
+ p(t.$slots, "watermark", W(Y({ isPrinting: o(ce) || o(de) })), void 0, !0)
715
+ ])) : v("", !0),
716
+ G.value ? v("", !0) : (s(), Q(fl, {
717
+ key: 4,
718
+ config: {
719
+ type: "donut",
720
+ style: {
721
+ backgroundColor: e.value.style.chart.backgroundColor,
722
+ donut: {
723
+ color: "#CCCCCC",
724
+ strokeWidth: E.value * 0.8
725
+ }
726
+ }
727
+ }
728
+ }, null, 8, ["config"])),
729
+ b("div", {
730
+ ref_key: "chartLegend",
731
+ ref: ie
732
+ }, [
733
+ e.value.style.chart.legend.show ? (s(), Q(yl, {
734
+ key: 0,
735
+ legendSet: me.value,
736
+ config: De.value,
737
+ onClickMarker: a[1] || (a[1] = ({ i: l }) => pe(l))
738
+ }, {
739
+ item: w(({ legend: l, index: u }) => [
740
+ b("div", {
741
+ onClick: (r) => l.segregate(),
742
+ style: S(`opacity:${$.value.includes(u) ? 0.5 : 1}`)
743
+ }, [
744
+ Se(_(l.name) + ": " + _(o(T)(
745
+ e.value.style.chart.layout.labels.value.formatter,
746
+ l.value,
747
+ o(C)({
748
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
749
+ v: l.value,
750
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
751
+ r: e.value.style.chart.legend.roundingValue
752
+ }),
753
+ {
754
+ datapoint: l,
755
+ index: u
756
+ }
757
+ )) + " ", 1),
758
+ $.value.includes(u) ? (s(), n("span", et, " ( " + _(Ve(l.proportion * 100)) + " % ) ", 1)) : (s(), n("span", Zl, " (" + _(isNaN(l.value / m.value) ? "-" : o(T)(
759
+ e.value.style.chart.layout.labels.percentage.formatter,
760
+ O.value ? l.proportion * 100 : l.value / m.value * 100,
761
+ o(C)({
762
+ v: O.value ? l.proportion * 100 : l.value / m.value * 100,
763
+ s: "%",
764
+ r: e.value.style.chart.legend.roundingPercentage
765
+ })
766
+ )) + ") ", 1))
767
+ ], 12, Ql)
768
+ ]),
769
+ _: 1
770
+ }, 8, ["legendSet", "config"])) : v("", !0),
771
+ p(t.$slots, "legend", { legend: me.value }, void 0, !0)
772
+ ], 512),
773
+ se(hl, {
774
+ show: f.value.showTooltip && ee.value,
775
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
776
+ color: e.value.style.chart.tooltip.color,
777
+ fontSize: e.value.style.chart.tooltip.fontSize,
778
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
779
+ borderColor: e.value.style.chart.tooltip.borderColor,
780
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
781
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
782
+ position: e.value.style.chart.tooltip.position,
783
+ offsetY: e.value.style.chart.tooltip.offsetY,
784
+ parent: U.value,
785
+ content: le.value,
786
+ isCustom: j.value
787
+ }, {
788
+ "tooltip-before": w(() => [
789
+ p(t.$slots, "tooltip-before", W(Y({ ...te.value })), void 0, !0)
790
+ ]),
791
+ "tooltip-after": w(() => [
792
+ p(t.$slots, "tooltip-after", W(Y({ ...te.value })), void 0, !0)
793
+ ]),
794
+ _: 3
795
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
796
+ G.value ? (s(), Q(bl, {
797
+ key: 5,
798
+ hideDetails: "",
799
+ config: {
800
+ open: f.value.showTable,
801
+ maxHeight: 1e4,
802
+ body: {
803
+ backgroundColor: e.value.style.chart.backgroundColor,
804
+ color: e.value.style.chart.color
805
+ },
806
+ head: {
807
+ backgroundColor: e.value.style.chart.backgroundColor,
808
+ color: e.value.style.chart.color
809
+ }
810
+ }
811
+ }, {
812
+ content: w(() => [
813
+ se(dl, {
814
+ colNames: J.value.colNames,
815
+ head: J.value.head,
816
+ body: J.value.body,
817
+ config: J.value.config,
818
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
819
+ onClose: a[2] || (a[2] = (l) => f.value.showTable = !1)
820
+ }, {
821
+ th: w(({ th: l }) => [
822
+ b("div", {
823
+ innerHTML: l,
824
+ style: { display: "flex", "align-items": "center" }
825
+ }, null, 8, lt)
826
+ ]),
827
+ td: w(({ td: l }) => [
828
+ Se(_(l.name ? l.name : isNaN(Number(l)) ? l.includes("%") ? o(T)(
829
+ e.value.style.chart.layout.labels.percentage.formatter,
830
+ l,
831
+ o(C)({
832
+ v: l,
833
+ s: "%",
834
+ r: e.value.style.chart.layout.labels.percentage.rounding
835
+ })
836
+ ) : l : o(T)(
837
+ e.value.style.chart.layout.labels.value.formatter,
838
+ l,
839
+ o(C)({
840
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
841
+ v: l,
842
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
843
+ r: e.value.style.chart.layout.labels.value.rounding
844
+ })
845
+ )), 1)
846
+ ]),
847
+ _: 1
848
+ }, 8, ["colNames", "head", "body", "config", "title"])
849
+ ]),
850
+ _: 1
851
+ }, 8, ["config"])) : v("", !0)
852
+ ], 14, ml));
853
+ }
854
+ }, ft = /* @__PURE__ */ gl(tt, [["__scopeId", "data-v-66476e18"]]);
855
+ export {
856
+ ft as default
857
+ };