vue-data-ui 2.3.76 → 2.3.77

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 (161) hide show
  1. package/dist/{Arrow-DY9RKUmG.js → Arrow-Dj2zuGLq.js} +1 -1
  2. package/dist/{Arrow-D7M4-bW7.cjs → Arrow-VCEIU9wi.cjs} +1 -1
  3. package/dist/{BaseIcon-DB7Apwv_.cjs → BaseIcon-CP535rdy.cjs} +1 -1
  4. package/dist/{BaseIcon-rwm-10Hu.js → BaseIcon-Cbr8np30.js} +1 -1
  5. package/dist/{DataTable-CsNozyz7.cjs → DataTable-CeHw-cqZ.cjs} +1 -1
  6. package/dist/{DataTable-e2fnfjXV.js → DataTable-OAUXdIYA.js} +2 -2
  7. package/dist/{Legend-5cQ0xZjK.js → Legend-BVByqGqZ.js} +1 -1
  8. package/dist/{Legend-DgFd-O0m.cjs → Legend-DfU44fjz.cjs} +1 -1
  9. package/dist/{Shape-yPECDLiP.cjs → Shape-B6cEKeIN.cjs} +1 -1
  10. package/dist/{Shape-CiTElr_0.js → Shape-Clmb3iTX.js} +1 -1
  11. package/dist/{Slicer-DwBBu3kB.js → Slicer-BlRQsQu0.js} +12 -12
  12. package/dist/{Slicer-DaZgCKV7.cjs → Slicer-Dt9iqvAA.cjs} +1 -1
  13. package/dist/{Title-3EduyW4p.cjs → Title-D9lSjLTg.cjs} +1 -1
  14. package/dist/{Title-gUz6GDA3.js → Title-gvR5aS6q.js} +1 -1
  15. package/dist/{Tooltip-DfSM1mNP.js → Tooltip-BGmkuAK4.js} +23 -23
  16. package/dist/Tooltip-C0PSN8vf.cjs +1 -0
  17. package/dist/{index-CaV1s-yZ.js → index-0KN57HdM.js} +1147 -1145
  18. package/dist/index-TabZg_HV.cjs +4 -0
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-CisbRRo_.cjs → useNestedProp-CoLyVvV9.cjs} +1 -1
  21. package/dist/{useNestedProp-tWCzZrLx.js → useNestedProp-NeGalTYk.js} +1 -1
  22. package/dist/{usePrinter-DzTaA1eh.cjs → usePrinter--7sLxlpn.cjs} +1 -1
  23. package/dist/{usePrinter-rvJyT65A.js → usePrinter-BvKYEc1z.js} +1 -1
  24. package/dist/{vue-data-ui-BGkWRPUY.cjs → vue-data-ui-CNZP_Hk4.cjs} +1 -1
  25. package/dist/{vue-data-ui-BO89gTtq.js → vue-data-ui-Du0OReJH.js} +57 -57
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +9 -9
  28. package/dist/vue-ui-3d-bar-AUSKibZS.cjs +19 -0
  29. package/dist/{vue-ui-3d-bar-CcTMIHiB.js → vue-ui-3d-bar-Dasj0J9j.js} +342 -342
  30. package/dist/{vue-ui-accordion-7e4Myhcg.cjs → vue-ui-accordion-0uSZBHsp.cjs} +1 -1
  31. package/dist/{vue-ui-accordion-CpzGQ63y.js → vue-ui-accordion-CczyfFaC.js} +3 -3
  32. package/dist/vue-ui-age-pyramid-CjBr4CXC.cjs +1 -0
  33. package/dist/{vue-ui-age-pyramid-D71ZLkVV.js → vue-ui-age-pyramid-DZ7vnojR.js} +22 -22
  34. package/dist/{vue-ui-annotator-B8Iu6cYt.js → vue-ui-annotator-BWwxpp_v.js} +39 -39
  35. package/dist/{vue-ui-annotator-BKQrweqm.cjs → vue-ui-annotator-CyYSiELS.cjs} +2 -2
  36. package/dist/{vue-ui-candlestick-DAc1FQ-i.cjs → vue-ui-candlestick-B9oSgBPN.cjs} +2 -2
  37. package/dist/{vue-ui-candlestick-Bx4QVkY0.js → vue-ui-candlestick-Dr9aS-Ku.js} +34 -34
  38. package/dist/{vue-ui-carousel-table-uFRqkghO.cjs → vue-ui-carousel-table-CjDze14W.cjs} +1 -1
  39. package/dist/{vue-ui-carousel-table-xuQG6bcH.js → vue-ui-carousel-table-D2LK5a9p.js} +31 -31
  40. package/dist/{vue-ui-chestnut-Bo6rDcU7.js → vue-ui-chestnut-DIqR-vZo.js} +291 -288
  41. package/dist/vue-ui-chestnut-RhZaDeRG.cjs +6 -0
  42. package/dist/vue-ui-cursor-7QhVReKN.cjs +1 -0
  43. package/dist/{vue-ui-cursor-C0KOqEOq.js → vue-ui-cursor-BxHK0bB7.js} +20 -20
  44. package/dist/{vue-ui-dashboard-0Hsjx-bO.cjs → vue-ui-dashboard-DO-zVgDu.cjs} +1 -1
  45. package/dist/{vue-ui-dashboard-BT71xS7P.js → vue-ui-dashboard-fYKECIc7.js} +2 -2
  46. package/dist/{vue-ui-digits-BRqpKYvD.js → vue-ui-digits-B8hAl2RW.js} +2 -2
  47. package/dist/{vue-ui-digits-C2ReH6w0.cjs → vue-ui-digits-CSsB4Zlr.cjs} +1 -1
  48. package/dist/{vue-ui-donut-NQW-3prf.js → vue-ui-donut-D5DTvWXB.js} +60 -60
  49. package/dist/vue-ui-donut-D8evqk7g.cjs +1 -0
  50. package/dist/vue-ui-donut-evolution-BUdWXb-N.cjs +1 -0
  51. package/dist/{vue-ui-donut-evolution-jbXQQGTc.js → vue-ui-donut-evolution-CPTiiUY6.js} +106 -106
  52. package/dist/{vue-ui-dumbbell-Dyz8xdtC.js → vue-ui-dumbbell-CfeTfNTU.js} +17 -17
  53. package/dist/{vue-ui-dumbbell-DXQSg6wa.cjs → vue-ui-dumbbell-Fm-Bqc5W.cjs} +1 -1
  54. package/dist/{vue-ui-flow-UqSNwH9d.cjs → vue-ui-flow-24WIcZVL.cjs} +1 -1
  55. package/dist/{vue-ui-flow-BL3JWW1m.js → vue-ui-flow-B2WWQo6P.js} +28 -28
  56. package/dist/{vue-ui-galaxy-DTQWGvRH.cjs → vue-ui-galaxy-DkRizJxm.cjs} +1 -1
  57. package/dist/{vue-ui-galaxy-Dx9nsOuM.js → vue-ui-galaxy-yfpv7Hky.js} +22 -22
  58. package/dist/vue-ui-gauge-BkB7BlNM.cjs +1 -0
  59. package/dist/{vue-ui-gauge-CLaKGi0-.js → vue-ui-gauge-CRVB3wlV.js} +99 -108
  60. package/dist/{vue-ui-gizmo-of-4s5HG.js → vue-ui-gizmo-DJYOx_YH.js} +2 -2
  61. package/dist/{vue-ui-gizmo-Kitfqu0J.cjs → vue-ui-gizmo-Zyo15xm3.cjs} +1 -1
  62. package/dist/{vue-ui-heatmap-BIzjOMXO.js → vue-ui-heatmap-C6fDCc7O.js} +17 -17
  63. package/dist/{vue-ui-heatmap-DUw2350O.cjs → vue-ui-heatmap-uynT8kN9.cjs} +1 -1
  64. package/dist/{vue-ui-kpi-By3YPwgo.js → vue-ui-kpi-CGC4h9uF.js} +3 -3
  65. package/dist/{vue-ui-kpi-DyL2Hcz-.cjs → vue-ui-kpi-CqEEFb04.cjs} +1 -1
  66. package/dist/{vue-ui-mini-loader-DnK3V2z2.js → vue-ui-mini-loader-2A0YUUIB.js} +2 -2
  67. package/dist/{vue-ui-mini-loader-C048-8Kd.cjs → vue-ui-mini-loader-ku9X16tx.cjs} +1 -1
  68. package/dist/{vue-ui-molecule-D-ahly6R.cjs → vue-ui-molecule-Bv1IBx1L.cjs} +1 -1
  69. package/dist/{vue-ui-molecule-BfhbIqa5.js → vue-ui-molecule-CwcUmg-k.js} +33 -33
  70. package/dist/vue-ui-mood-radar-Bf5g118s.cjs +1 -0
  71. package/dist/{vue-ui-mood-radar-DXxEKr3x.js → vue-ui-mood-radar-V04waMIM.js} +129 -132
  72. package/dist/{vue-ui-nested-donuts-C7qM_FRw.cjs → vue-ui-nested-donuts-DgVrAToy.cjs} +2 -2
  73. package/dist/{vue-ui-nested-donuts-BdUdHFd-.js → vue-ui-nested-donuts-DoFALZtp.js} +98 -98
  74. package/dist/{vue-ui-onion-DX3gofXZ.cjs → vue-ui-onion-BdZC2qt8.cjs} +1 -1
  75. package/dist/{vue-ui-onion-D0vF5jBt.js → vue-ui-onion-_GaJ78t_.js} +9 -9
  76. package/dist/{vue-ui-parallel-coordinate-plot-DEx5kFYd.cjs → vue-ui-parallel-coordinate-plot-BHYr1iqZ.cjs} +1 -1
  77. package/dist/{vue-ui-parallel-coordinate-plot-CTZY-pY8.js → vue-ui-parallel-coordinate-plot-Eh0gXDVG.js} +24 -24
  78. package/dist/vue-ui-quadrant-BEhnCog2.cjs +1 -0
  79. package/dist/{vue-ui-quadrant-ByY8GP3y.js → vue-ui-quadrant-C4LHosyR.js} +35 -35
  80. package/dist/{vue-ui-quick-chart-DTxJ__7j.js → vue-ui-quick-chart-IqY67olA.js} +69 -69
  81. package/dist/{vue-ui-quick-chart-DWZEgUJF.cjs → vue-ui-quick-chart-YFEmJP_6.cjs} +1 -1
  82. package/dist/{vue-ui-radar-5UBmAU6W.js → vue-ui-radar-BSsDvnVt.js} +39 -39
  83. package/dist/{vue-ui-radar-DEED0rTz.cjs → vue-ui-radar-Cel3ZnfN.cjs} +1 -1
  84. package/dist/{vue-ui-rating-Dr6jquxh.js → vue-ui-rating-Bb1xXC_r.js} +6 -6
  85. package/dist/{vue-ui-rating-Ce_Ewqtl.cjs → vue-ui-rating-D-qBEM1w.cjs} +1 -1
  86. package/dist/{vue-ui-relation-circle-BU8i2miI.js → vue-ui-relation-circle-CSqi6DqF.js} +29 -29
  87. package/dist/vue-ui-relation-circle-fb8g1ms8.cjs +1 -0
  88. package/dist/{vue-ui-rings-OQ8a1Ruw.cjs → vue-ui-rings-Bgb538Wa.cjs} +2 -2
  89. package/dist/{vue-ui-rings-Ctl3Jywh.js → vue-ui-rings-ezoy9PIq.js} +31 -31
  90. package/dist/vue-ui-scatter-B7z6AOLU.cjs +1 -0
  91. package/dist/{vue-ui-scatter-BwJ_koWT.js → vue-ui-scatter-Ci5l--xS.js} +95 -95
  92. package/dist/{vue-ui-screenshot-BS3L5vhN.js → vue-ui-screenshot-C2X1am1d.js} +4 -4
  93. package/dist/{vue-ui-screenshot-bAVk3EPl.cjs → vue-ui-screenshot-DLXQWgeo.cjs} +1 -1
  94. package/dist/vue-ui-skeleton-CYeXVNFu.cjs +41 -0
  95. package/dist/{vue-ui-skeleton-CvFX_ExX.js → vue-ui-skeleton-dgMXr8k9.js} +96 -96
  96. package/dist/{vue-ui-smiley-sF8QIso1.cjs → vue-ui-smiley-CDhXPYa7.cjs} +1 -1
  97. package/dist/{vue-ui-smiley-CGYZpNt9.js → vue-ui-smiley-DXb5VqXk.js} +2 -2
  98. package/dist/vue-ui-spark-trend-1hcgCu8H.cjs +1 -0
  99. package/dist/{vue-ui-spark-trend-B4XSSKl9.js → vue-ui-spark-trend-Bv1-LLRs.js} +21 -21
  100. package/dist/vue-ui-sparkbar-CWdFQTkx.cjs +1 -0
  101. package/dist/{vue-ui-sparkbar-BbsJGDMZ.js → vue-ui-sparkbar-CbmzVXcW.js} +10 -10
  102. package/dist/{vue-ui-sparkgauge-D4w_i_QJ.js → vue-ui-sparkgauge-CHODK9jn.js} +8 -8
  103. package/dist/{vue-ui-sparkgauge-BKyQoI7C.cjs → vue-ui-sparkgauge-r7VEpPtv.cjs} +1 -1
  104. package/dist/{vue-ui-sparkhistogram-CYybrW-6.js → vue-ui-sparkhistogram-CKiO1LGI.js} +111 -101
  105. package/dist/vue-ui-sparkhistogram-Do5qTT2U.cjs +1 -0
  106. package/dist/vue-ui-sparkline-Bw3dw-vW.cjs +1 -0
  107. package/dist/{vue-ui-sparkline-DjN1SVdO.js → vue-ui-sparkline-DLU7hK0K.js} +34 -34
  108. package/dist/{vue-ui-sparkstackbar-BLMhJxaN.js → vue-ui-sparkstackbar-B3TQVHlU.js} +5 -5
  109. package/dist/{vue-ui-sparkstackbar-BZ2bESBi.cjs → vue-ui-sparkstackbar-CD-HZ4Rq.cjs} +1 -1
  110. package/dist/{vue-ui-stackbar-DRHaJFR8.cjs → vue-ui-stackbar-2WJh-QtY.cjs} +2 -2
  111. package/dist/{vue-ui-stackbar-BTKOHUYc.js → vue-ui-stackbar-BnIeIS12.js} +202 -200
  112. package/dist/{vue-ui-strip-plot-o6GTsGAT.js → vue-ui-strip-plot-CddHmHSX.js} +26 -26
  113. package/dist/{vue-ui-strip-plot-DxQxFbWg.cjs → vue-ui-strip-plot-DyL8FH29.cjs} +1 -1
  114. package/dist/{vue-ui-table-CnquiTpr.js → vue-ui-table-BZ6yonvx.js} +1 -1
  115. package/dist/{vue-ui-table-BFIj1Rgh.cjs → vue-ui-table-_Sxgp6iC.cjs} +1 -1
  116. package/dist/{vue-ui-table-heatmap-CZRIwv-Q.js → vue-ui-table-heatmap-CYOgunS2.js} +24 -24
  117. package/dist/{vue-ui-table-heatmap-CCGK12Fa.cjs → vue-ui-table-heatmap-DGWhBhp0.cjs} +1 -1
  118. package/dist/{vue-ui-table-sparkline-B3zEeq6Z.js → vue-ui-table-sparkline-D33NLyyx.js} +26 -26
  119. package/dist/{vue-ui-table-sparkline-DYmgfHz4.cjs → vue-ui-table-sparkline-IVMQG6tp.cjs} +1 -1
  120. package/dist/{vue-ui-thermometer-CzPRBt6c.cjs → vue-ui-thermometer-8XDaKLt5.cjs} +1 -1
  121. package/dist/{vue-ui-thermometer-BopiohUh.js → vue-ui-thermometer-DMwZ2O16.js} +40 -40
  122. package/dist/{vue-ui-timer-Bonw69Lt.cjs → vue-ui-timer-B3_-DhDj.cjs} +1 -1
  123. package/dist/{vue-ui-timer-C7WkW8hK.js → vue-ui-timer-D59VSia6.js} +8 -8
  124. package/dist/{vue-ui-tiremarks-BurRtFv4.js → vue-ui-tiremarks-Bczw28td.js} +18 -18
  125. package/dist/{vue-ui-tiremarks-DkIGfq8t.cjs → vue-ui-tiremarks-Br_jF9bH.cjs} +1 -1
  126. package/dist/{vue-ui-treemap-DWy4voIr.js → vue-ui-treemap-DGJNw2WX.js} +29 -29
  127. package/dist/{vue-ui-treemap-CalhJmnp.cjs → vue-ui-treemap-DLHdaXss.cjs} +1 -1
  128. package/dist/vue-ui-vertical-bar-BGYrmyAK.cjs +4 -0
  129. package/dist/{vue-ui-vertical-bar-CJW1YhtY.js → vue-ui-vertical-bar-De0N4Ggo.js} +14 -14
  130. package/dist/{vue-ui-waffle-faQMBYNx.cjs → vue-ui-waffle-CJPVEDgC.cjs} +1 -1
  131. package/dist/{vue-ui-waffle-DB7X6nTS.js → vue-ui-waffle-CnXLf5xd.js} +84 -84
  132. package/dist/{vue-ui-wheel-CryKap2E.js → vue-ui-wheel-Bciq0JM9.js} +24 -24
  133. package/dist/{vue-ui-wheel-BzjbGP6a.cjs → vue-ui-wheel-CAKYmn0b.cjs} +1 -1
  134. package/dist/{vue-ui-word-cloud-DJN9I4q4.cjs → vue-ui-word-cloud-4ooTRM2O.cjs} +1 -1
  135. package/dist/{vue-ui-word-cloud-COqUkvei.js → vue-ui-word-cloud-CWm6r9Zf.js} +19 -19
  136. package/dist/{vue-ui-xy-b1Z_HPsx.js → vue-ui-xy-B5nBhYgd.js} +351 -350
  137. package/dist/vue-ui-xy-Ch5hDEec.cjs +3 -0
  138. package/dist/{vue-ui-xy-canvas-BgbLnY5B.js → vue-ui-xy-canvas-CzLTSmDS.js} +18 -18
  139. package/dist/vue-ui-xy-canvas-d-EE9_dN.cjs +9 -0
  140. package/package.json +1 -1
  141. package/dist/Tooltip-DScSrYXJ.cjs +0 -1
  142. package/dist/index-BTgtr0F8.cjs +0 -4
  143. package/dist/vue-ui-3d-bar-DzmcGuqh.cjs +0 -19
  144. package/dist/vue-ui-age-pyramid-C7qr9EwB.cjs +0 -1
  145. package/dist/vue-ui-chestnut-DJkm72oD.cjs +0 -6
  146. package/dist/vue-ui-cursor-BQbeuW-k.cjs +0 -1
  147. package/dist/vue-ui-donut-evolution-DOe-cwLi.cjs +0 -1
  148. package/dist/vue-ui-donut-v81suIOX.cjs +0 -1
  149. package/dist/vue-ui-gauge-BUB7H0qA.cjs +0 -1
  150. package/dist/vue-ui-mood-radar-DD8R9BpJ.cjs +0 -1
  151. package/dist/vue-ui-quadrant-CgApzie6.cjs +0 -1
  152. package/dist/vue-ui-relation-circle-CRcQ6Zcy.cjs +0 -1
  153. package/dist/vue-ui-scatter-B8StSjt8.cjs +0 -1
  154. package/dist/vue-ui-skeleton-CMQzFTs9.cjs +0 -41
  155. package/dist/vue-ui-spark-trend-CdIoxaqb.cjs +0 -1
  156. package/dist/vue-ui-sparkbar-C3i1K7hi.cjs +0 -1
  157. package/dist/vue-ui-sparkhistogram-CvTYEmbz.cjs +0 -1
  158. package/dist/vue-ui-sparkline-CDowaDRS.cjs +0 -1
  159. package/dist/vue-ui-vertical-bar-rwWp-sai.cjs +0 -4
  160. package/dist/vue-ui-xy-BmA0tspd.cjs +0 -3
  161. package/dist/vue-ui-xy-canvas-DOM2Kq_s.cjs +0 -9
@@ -1,19 +1,19 @@
1
- import { computed as g, ref as v, onMounted as Re, onBeforeUnmount as Ye, watch as Ne, openBlock as s, createElementBlock as n, normalizeClass as ue, normalizeStyle as T, renderSlot as p, createBlock as V, createCommentVNode as c, unref as o, createSlots as He, withCtx as w, normalizeProps as H, guardReactiveProps as W, createElementVNode as b, Fragment as M, renderList as X, toDisplayString as _, createTextVNode as Pe, createVNode as We, nextTick as Xe, pushScopeId as qe, popScopeId as Je } from "vue";
2
- import { u as Ke, o as Qe, e as Oe, g as Ze, c as el, b as ll, d as Z, p as D, m as tl, f as C, X as al, w as ol, j as ul, E as sl, i as F, k as y, n as q, t as rl, a as nl, x as il, q as vl, r as cl } from "./index-CaV1s-yZ.js";
1
+ import { computed as g, ref as v, onMounted as Ye, onBeforeUnmount as He, watch as Ne, openBlock as s, createElementBlock as n, normalizeClass as ue, normalizeStyle as T, renderSlot as p, createBlock as V, createCommentVNode as c, unref as o, createSlots as We, withCtx as w, normalizeProps as H, guardReactiveProps as W, createElementVNode as b, Fragment as M, renderList as X, toDisplayString as _, createTextVNode as Pe, createVNode as Xe, nextTick as qe, pushScopeId as Je, popScopeId as Ke } from "vue";
2
+ import { u as Qe, o as Ze, e as Oe, g as el, c as ll, b as tl, d as Ae, p as D, m as al, f as C, X as ol, s as Z, j as ul, F as sl, i as F, k as y, n as q, t as rl, a as nl, x as il, q as vl, r as cl } from "./index-0KN57HdM.js";
3
3
  import { t as dl, u as hl } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as yl } from "./Title-gUz6GDA3.js";
5
- import { u as fl, U as bl } from "./usePrinter-rvJyT65A.js";
6
- import { D as gl } from "./DataTable-e2fnfjXV.js";
7
- import { _ as pl } from "./Tooltip-DfSM1mNP.js";
8
- import { L as ml } from "./Legend-5cQ0xZjK.js";
9
- import wl from "./vue-ui-skeleton-CvFX_ExX.js";
10
- import kl from "./vue-ui-accordion-CpzGQ63y.js";
11
- import { u as Ae } from "./useNestedProp-tWCzZrLx.js";
4
+ import { _ as yl } from "./Title-gvR5aS6q.js";
5
+ import { u as fl, U as bl } from "./usePrinter-BvKYEc1z.js";
6
+ import { D as gl } from "./DataTable-OAUXdIYA.js";
7
+ import { _ as pl } from "./Tooltip-BGmkuAK4.js";
8
+ import { L as ml } from "./Legend-BVByqGqZ.js";
9
+ import wl from "./vue-ui-skeleton-dgMXr8k9.js";
10
+ import kl from "./vue-ui-accordion-CczyfFaC.js";
11
+ import { u as De } from "./useNestedProp-NeGalTYk.js";
12
12
  import { _ as _l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = ["xmlns", "viewBox"], Sl = ["id"], Ll = ["stop-color"], Tl = ["stop-color"], Fl = ["stop-color"], zl = ["id"], Nl = ["id"], Pl = /* @__PURE__ */ Cl(() => /* @__PURE__ */ b("feColorMatrix", {
13
+ const Cl = (G) => (Je("data-v-9d45c2b6"), G = G(), Ke(), G), xl = ["id"], $l = ["xmlns", "viewBox"], Sl = ["id"], Ll = ["stop-color"], Tl = ["stop-color"], Fl = ["stop-color"], zl = ["id"], Nl = ["id"], Pl = /* @__PURE__ */ Cl(() => /* @__PURE__ */ b("feColorMatrix", {
14
14
  type: "saturate",
15
15
  values: "0"
16
- }, null, -1)), Ol = ["id"], Al = ["flood-color"], Dl = ["d", "stroke", "filter"], Il = ["cx", "cy", "r", "fill", "filter"], Bl = ["stroke", "d"], Vl = ["d", "fill", "stroke", "stroke-width", "filter"], Ml = ["cx", "cy", "r", "fill", "stroke"], Gl = ["cx", "cy", "r", "fill"], El = ["d", "fill", "onMouseenter", "onClick"], Ul = ["cx", "cy", "r", "fill"], jl = ["x", "y", "fill", "font-size"], Rl = ["x", "y", "fill", "font-size"], Yl = ["x", "y", "fill", "font-size"], Hl = ["x", "y", "fill", "font-size"], Wl = ["filter"], Xl = { key: 0 }, ql = ["x", "y"], Jl = { key: 1 }, Kl = ["cx", "cy", "fill", "filter", "onClick"], Ql = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Zl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], et = { key: 2 }, lt = ["x", "y", "width"], tt = {
16
+ }, null, -1)), Ol = ["id"], Al = ["flood-color"], Dl = ["d", "stroke", "filter"], Il = ["cx", "cy", "r", "fill", "filter"], Bl = ["stroke", "d"], Vl = ["d", "fill", "stroke", "stroke-width", "filter"], Ml = ["cx", "cy", "r", "fill", "stroke"], Gl = ["cx", "cy", "r", "fill"], Ul = ["d", "fill", "onMouseenter", "onClick"], El = ["cx", "cy", "r", "fill"], jl = ["x", "y", "fill", "font-size"], Rl = ["x", "y", "fill", "font-size"], Yl = ["x", "y", "fill", "font-size"], Hl = ["x", "y", "fill", "font-size"], Wl = ["filter"], Xl = { key: 0 }, ql = ["x", "y"], Jl = { key: 1 }, Kl = ["cx", "cy", "fill", "filter", "onClick"], Ql = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Zl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], et = { key: 2 }, lt = ["x", "y", "width"], tt = {
17
17
  key: 3,
18
18
  class: "vue-data-ui-watermark"
19
19
  }, at = ["onClick"], ot = {
@@ -36,30 +36,30 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
36
36
  }
37
37
  },
38
38
  emits: ["selectLegend", "selectDatapoint"],
39
- setup(G, { expose: De, emit: se }) {
40
- const S = G, { vue_ui_donut: Ie } = Ke(), E = g({
39
+ setup(G, { expose: Ie, emit: se }) {
40
+ const S = G, { vue_ui_donut: Be } = Qe(), U = g({
41
41
  get() {
42
42
  return !!S.dataset && S.dataset.length;
43
43
  },
44
44
  set(l) {
45
45
  return l;
46
46
  }
47
- }), U = v(null), re = v(null), ne = v(null), J = v(null), ie = v(0), ve = v(0), ce = v(0);
48
- Re(() => {
47
+ }), E = v(null), re = v(null), ne = v(null), J = v(null), ie = v(0), ve = v(0), ce = v(0);
48
+ Ye(() => {
49
49
  de();
50
- }), Ye(() => {
50
+ }), He(() => {
51
51
  J.value && J.value.disconnect();
52
52
  });
53
53
  function de() {
54
- if (Qe(S.dataset) ? Oe({
54
+ if (Ze(S.dataset) ? Oe({
55
55
  componentName: "VueUiDonut",
56
56
  type: "dataset"
57
57
  }) : S.dataset.forEach((l, a) => {
58
- Ze({
58
+ el({
59
59
  datasetObject: l,
60
60
  requiredAttributes: ["name", "values"]
61
61
  }).forEach((t) => {
62
- E.value = !1, Oe({
62
+ U.value = !1, Oe({
63
63
  componentName: "VueUiDonut",
64
64
  type: "datasetSerieAttribute",
65
65
  property: t,
@@ -69,23 +69,23 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
69
69
  }), e.value.responsive) {
70
70
  const l = dl(() => {
71
71
  const { width: a, height: t } = hl({
72
- chart: U.value,
72
+ chart: E.value,
73
73
  title: e.value.style.chart.title.text ? re.value : null,
74
74
  legend: e.value.style.chart.legend.show ? ne.value : null
75
75
  });
76
76
  i.value.width = a, i.value.height = t;
77
77
  });
78
- J.value = new ResizeObserver(l), J.value.observe(U.value.parentNode);
78
+ J.value = new ResizeObserver(l), J.value.observe(E.value.parentNode);
79
79
  }
80
80
  }
81
- const x = v(el()), Be = v(null), ee = v(!1), le = v(""), z = v(null), he = v(0);
81
+ const x = v(ll()), Ve = v(null), ee = v(!1), le = v(""), z = v(null), he = v(0);
82
82
  function ye() {
83
- const l = Ae({
83
+ const l = De({
84
84
  userConfig: S.config,
85
- defaultConfig: Ie
85
+ defaultConfig: Be
86
86
  });
87
87
  return l.theme ? {
88
- ...Ae({
88
+ ...De({
89
89
  userConfig: rl.vue_ui_donut[l.theme] || S.config,
90
90
  defaultConfig: l
91
91
  }),
@@ -102,7 +102,7 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
102
102
  const { isPrinting: fe, isImaging: be, generatePdf: ge, generateImage: pe } = fl({
103
103
  elementId: `donut__${x.value}`,
104
104
  fileName: e.value.style.chart.title.text || "vue-ui-donut"
105
- }), me = g(() => ll(e.value.customPalette)), f = v({
105
+ }), me = g(() => tl(e.value.customPalette)), f = v({
106
106
  dataLabels: {
107
107
  show: e.value.style.chart.layout.labels.dataLabels.show
108
108
  },
@@ -116,13 +116,13 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
116
116
  return a > $.value / 2 ? e.value.style.chart.layout.donut.strokeWidth : a;
117
117
  }), P = g(() => S.dataset.map((l, a) => ({
118
118
  name: l.name,
119
- color: Z(l.color) || me.value[a] || D[a] || D[a % D.length],
119
+ color: Ae(l.color) || me.value[a] || D[a] || D[a % D.length],
120
120
  value: l.values.reduce((t, u) => t + u, 0),
121
121
  absoluteValues: l.values,
122
122
  comment: l.comment || ""
123
123
  }))), k = v(P.value);
124
124
  Ne(() => P.value, (l) => k.value = l);
125
- function Ve() {
125
+ function Me() {
126
126
  return P.value.map((l) => ({
127
127
  name: l.name,
128
128
  color: l.color,
@@ -175,7 +175,7 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
175
175
  seriesIndex: a
176
176
  })).filter((l, a) => !L.value.includes(a)))), Ce = g(() => S.dataset.map((l, a) => ({
177
177
  name: l.name,
178
- color: Z(l.color) || me.value[a] || D[a] || D[a % D.length],
178
+ color: Ae(l.color) || me.value[a] || D[a] || D[a % D.length],
179
179
  value: (l.values || []).reduce((t, u) => t + u, 0),
180
180
  shape: "circle"
181
181
  })).map((l, a) => ({
@@ -184,7 +184,7 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
184
184
  opacity: L.value.includes(a) ? 0.5 : 1,
185
185
  segregate: () => _e(a),
186
186
  isSegregated: L.value.includes(a)
187
- }))), Me = g(() => ({
187
+ }))), Ge = g(() => ({
188
188
  cy: "donut-div-legend",
189
189
  backgroundColor: e.value.style.chart.legend.backgroundColor,
190
190
  color: e.value.style.chart.legend.color,
@@ -194,12 +194,12 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
194
194
  })), $ = g(() => {
195
195
  const l = Math.min(i.value.width / 3, i.value.height / 3);
196
196
  return l < 55 ? 55 : l;
197
- }), A = g(() => tl({ series: I.value }, i.value.width / 2, i.value.height / 2, $.value, $.value, 1.99999, 2, 1, 360, 105.25, j.value));
197
+ }), A = g(() => al({ series: I.value }, i.value.width / 2, i.value.height / 2, $.value, $.value, 1.99999, 2, 1, 360, 105.25, j.value));
198
198
  function B(l) {
199
199
  return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
200
200
  }
201
201
  function xe(l, a) {
202
- const t = l.value / Ge(a);
202
+ const t = l.value / Ue(a);
203
203
  return isNaN(t) ? 0 : F(
204
204
  e.value.style.chart.layout.labels.percentage.formatter,
205
205
  t * 100,
@@ -211,7 +211,7 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
211
211
  { datapoint: l }
212
212
  );
213
213
  }
214
- function Ge(l) {
214
+ function Ue(l) {
215
215
  return [...l].map((a) => a.value).reduce((a, t) => a + t, 0);
216
216
  }
217
217
  const m = g(() => I.value.map((l) => l.value).reduce((l, a) => l + a, 0)), $e = g(() => m.value / I.value.length), te = v(null), R = v(!1);
@@ -277,7 +277,7 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
277
277
  return { head: l, body: a };
278
278
  });
279
279
  function Se() {
280
- Xe(() => {
280
+ qe(() => {
281
281
  const l = N.value.head.map((u, r) => [[
282
282
  u.name
283
283
  ], [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(l), t = vl(a);
@@ -323,11 +323,11 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
323
323
  config: t
324
324
  };
325
325
  }), Y = v(!1);
326
- function Ue(l) {
326
+ function je(l) {
327
327
  Y.value = l, he.value += 1;
328
328
  }
329
329
  const Le = g(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
330
- function je(l) {
330
+ function Re(l) {
331
331
  return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((a) => "-").join("");
332
332
  }
333
333
  function Q(l, a) {
@@ -342,8 +342,8 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
342
342
  function ze() {
343
343
  f.value.showTooltip = !f.value.showTooltip;
344
344
  }
345
- return De({
346
- getData: Ve,
345
+ return Ie({
346
+ getData: Me,
347
347
  generatePdf: ge,
348
348
  generateCsv: Se,
349
349
  generateImage: pe,
@@ -352,7 +352,7 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
352
352
  toggleTooltip: ze
353
353
  }), (l, a) => (s(), n("div", {
354
354
  ref_key: "donutChart",
355
- ref: U,
355
+ ref: E,
356
356
  class: ue(`vue-ui-donut ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
357
357
  style: T(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
358
358
  id: `donut__${x.value}`
@@ -378,9 +378,9 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
378
378
  }
379
379
  }, null, 8, ["config"]))
380
380
  ], 4)) : c("", !0),
381
- e.value.userOptions.show && E.value ? (s(), V(bl, {
381
+ e.value.userOptions.show && U.value ? (s(), V(bl, {
382
382
  ref_key: "details",
383
- ref: Be,
383
+ ref: Ve,
384
384
  key: `user_option_${he.value}`,
385
385
  backgroundColor: e.value.style.chart.backgroundColor,
386
386
  color: e.value.style.chart.color,
@@ -395,17 +395,17 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
395
395
  hasLabel: e.value.userOptions.buttons.labels,
396
396
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
397
397
  isFullscreen: Y.value,
398
- chartElement: U.value,
398
+ chartElement: E.value,
399
399
  isTooltip: f.value.showTooltip,
400
400
  titles: { ...e.value.userOptions.buttonTitles },
401
- onToggleFullscreen: Ue,
401
+ onToggleFullscreen: je,
402
402
  onGeneratePdf: o(ge),
403
403
  onGenerateCsv: Se,
404
404
  onGenerateImage: o(pe),
405
405
  onToggleTable: Te,
406
406
  onToggleLabels: Fe,
407
407
  onToggleTooltip: ze
408
- }, He({ _: 2 }, [
408
+ }, We({ _: 2 }, [
409
409
  l.$slots.optionTooltip ? {
410
410
  name: "optionTooltip",
411
411
  fn: w(() => [
@@ -456,9 +456,9 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
456
456
  key: "6"
457
457
  } : void 0
458
458
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : c("", !0),
459
- E.value ? (s(), n("svg", {
459
+ U.value ? (s(), n("svg", {
460
460
  key: 2,
461
- xmlns: o(al),
461
+ xmlns: o(ol),
462
462
  class: ue({ "vue-data-ui-fullscreen--on": Y.value, "vue-data-ui-fulscreen--off": !Y.value }),
463
463
  viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
464
464
  style: T(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
@@ -470,15 +470,15 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
470
470
  }, [
471
471
  b("stop", {
472
472
  offset: "0%",
473
- "stop-color": `${o(Z)(e.value.style.chart.backgroundColor)}00`
473
+ "stop-color": o(Z)(e.value.style.chart.backgroundColor, 0)
474
474
  }, null, 8, Ll),
475
475
  b("stop", {
476
476
  offset: "77%",
477
- "stop-color": "#FFFFFF" + o(ol)[e.value.style.chart.gradientIntensity]
477
+ "stop-color": o(Z)("#FFFFFF", e.value.style.chart.gradientIntensity)
478
478
  }, null, 8, Tl),
479
479
  b("stop", {
480
480
  offset: "100%",
481
- "stop-color": `${o(Z)(e.value.style.chart.backgroundColor)}00`
481
+ "stop-color": o(Z)(e.value.style.chart.backgroundColor, 0)
482
482
  }, null, 8, Fl)
483
483
  ], 8, Sl)) : c("", !0)
484
484
  ]),
@@ -538,7 +538,7 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
538
538
  (s(!0), n(M, null, X(A.value, (t, u) => (s(), n("path", {
539
539
  class: "vue-ui-donut-arc-path",
540
540
  d: t.arcSlice,
541
- fill: `${t.color}CC`,
541
+ fill: o(Z)(t.color, 80),
542
542
  stroke: e.value.style.chart.backgroundColor,
543
543
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
544
544
  filter: ae(u)
@@ -575,7 +575,7 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
575
575
  ee.value = !1, z.value = null;
576
576
  }),
577
577
  onClick: (r) => Q(t, u)
578
- }, null, 40, El))), 256)) : c("", !0),
578
+ }, null, 40, Ul))), 256)) : c("", !0),
579
579
  e.value.style.chart.layout.labels.hollow.show ? (s(), n("circle", {
580
580
  key: 4,
581
581
  cx: i.value.width / 2,
@@ -585,7 +585,7 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
585
585
  $.value - j.value <= 0 ? 10 : $.value - j.value
586
586
  ),
587
587
  fill: e.value.style.chart.backgroundColor
588
- }, null, 8, Ul)) : c("", !0),
588
+ }, null, 8, El)) : c("", !0),
589
589
  e.value.style.chart.layout.labels.hollow.total.show ? (s(), n("text", {
590
590
  key: 5,
591
591
  "text-anchor": "middle",
@@ -726,7 +726,7 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
726
726
  l.$slots.watermark ? (s(), n("div", tt, [
727
727
  p(l.$slots, "watermark", H(W({ isPrinting: o(fe) || o(be) })), void 0, !0)
728
728
  ])) : c("", !0),
729
- E.value ? c("", !0) : (s(), V(wl, {
729
+ U.value ? c("", !0) : (s(), V(wl, {
730
730
  key: 4,
731
731
  config: {
732
732
  type: "donut",
@@ -746,7 +746,7 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
746
746
  e.value.style.chart.legend.show ? (s(), V(ml, {
747
747
  key: `legend_${ce.value}`,
748
748
  legendSet: Ce.value,
749
- config: Me.value,
749
+ config: Ge.value,
750
750
  onClickMarker: a[1] || (a[1] = ({ i: t }) => _e(t))
751
751
  }, {
752
752
  item: w(({ legend: t, index: u }) => [
@@ -768,7 +768,7 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
768
768
  index: u
769
769
  }
770
770
  )) + " ", 1),
771
- L.value.includes(u) ? (s(), n("span", ut, " ( " + _(je(t.proportion * 100)) + " % ) ", 1)) : (s(), n("span", ot, " (" + _(isNaN(t.value / m.value) ? "-" : o(F)(
771
+ L.value.includes(u) ? (s(), n("span", ut, " ( " + _(Re(t.proportion * 100)) + " % ) ", 1)) : (s(), n("span", ot, " (" + _(isNaN(t.value / m.value) ? "-" : o(F)(
772
772
  e.value.style.chart.layout.labels.percentage.formatter,
773
773
  O.value ? t.proportion * 100 : t.value / m.value * 100,
774
774
  o(C)({
@@ -783,7 +783,7 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
783
783
  }, 8, ["legendSet", "config"])) : c("", !0),
784
784
  p(l.$slots, "legend", { legend: Ce.value }, void 0, !0)
785
785
  ], 512),
786
- We(pl, {
786
+ Xe(pl, {
787
787
  show: f.value.showTooltip && ee.value,
788
788
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
789
789
  color: e.value.style.chart.tooltip.color,
@@ -794,7 +794,7 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
794
794
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
795
795
  position: e.value.style.chart.tooltip.position,
796
796
  offsetY: e.value.style.chart.tooltip.offsetY,
797
- parent: U.value,
797
+ parent: E.value,
798
798
  content: le.value,
799
799
  isCustom: R.value
800
800
  }, {
@@ -806,7 +806,7 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
806
806
  ]),
807
807
  _: 3
808
808
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
809
- E.value ? (s(), V(kl, {
809
+ U.value ? (s(), V(kl, {
810
810
  key: 5,
811
811
  hideDetails: "",
812
812
  config: {
@@ -865,7 +865,7 @@ const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = [
865
865
  }, 8, ["config"])) : c("", !0)
866
866
  ], 14, xl));
867
867
  }
868
- }, wt = /* @__PURE__ */ _l(rt, [["__scopeId", "data-v-315950a4"]]);
868
+ }, wt = /* @__PURE__ */ _l(rt, [["__scopeId", "data-v-9d45c2b6"]]);
869
869
  export {
870
870
  wt as default
871
871
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-TabZg_HV.cjs"),ie=require("./useResponsive-B3TrDDIG.cjs"),Ce=require("./Title-D9lSjLTg.cjs"),ve=require("./usePrinter--7sLxlpn.cjs"),xe=require("./DataTable-CeHw-cqZ.cjs"),_e=require("./Tooltip-C0PSN8vf.cjs"),Be=require("./Legend-DfU44fjz.cjs"),Se=require("./vue-ui-skeleton-CYeXVNFu.cjs"),$e=require("./vue-ui-accordion-0uSZBHsp.cjs"),de=require("./useNestedProp-CoLyVvV9.cjs"),Le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ne=B=>(e.pushScopeId("data-v-9d45c2b6"),B=B(),e.popScopeId(),B),Ee=["id"],Ve=["xmlns","viewBox"],ze=["id"],Oe=["stop-color"],Te=["stop-color"],Fe=["stop-color"],De=["id"],Pe=["id"],Me=Ne(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),Xe=["id"],Ae=["flood-color"],Ie=["d","stroke","filter"],qe=["cx","cy","r","fill","filter"],Re=["stroke","d"],Ge=["d","fill","stroke","stroke-width","filter"],Ye=["cx","cy","r","fill","stroke"],Ue=["cx","cy","r","fill"],He=["d","fill","onMouseenter","onClick"],je=["cx","cy","r","fill"],We=["x","y","fill","font-size"],Je=["x","y","fill","font-size"],Ke=["x","y","fill","font-size"],Qe=["x","y","fill","font-size"],Ze=["filter"],et={key:0},tt=["x","y"],lt={key:1},at=["cx","cy","fill","filter","onClick"],ot=["text-anchor","x","y","fill","font-size","onClick"],rt=["text-anchor","x","y","fill","font-size","onClick"],ut={key:2},nt=["x","y","width"],st={key:3,class:"vue-data-ui-watermark"},ct=["onClick"],it={key:0,style:{"font-variant-numeric":"tabular-nums"}},vt={key:1},dt=["innerHTML"],ht={__name:"vue-ui-donut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(B,{expose:he,emit:X}){const p=B,{vue_ui_donut:fe}=o.useConfig(),S=e.computed({get(){return!!p.dataset&&p.dataset.length},set(l){return l}}),$=e.ref(null),A=e.ref(null),I=e.ref(null),V=e.ref(null),q=e.ref(0),R=e.ref(0),G=e.ref(0);e.onMounted(()=>{Y()}),e.onBeforeUnmount(()=>{V.value&&V.value.disconnect()});function Y(){if(o.objectIsEmpty(p.dataset)?o.error({componentName:"VueUiDonut",type:"dataset"}):p.dataset.forEach((l,r)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(a=>{S.value=!1,o.error({componentName:"VueUiDonut",type:"datasetSerieAttribute",property:a,index:r})})}),t.value.responsive){const l=ie.throttle(()=>{const{width:r,height:a}=ie.useResponsive({chart:$.value,title:t.value.style.chart.title.text?A.value:null,legend:t.value.style.chart.legend.show?I.value:null});s.value.width=r,s.value.height=a});V.value=new ResizeObserver(l),V.value.observe($.value.parentNode)}}const f=e.ref(o.createUid()),ye=e.ref(null),T=e.ref(!1),F=e.ref(""),b=e.ref(null),U=e.ref(0);function H(){const l=de.useNestedProp({userConfig:p.config,defaultConfig:fe});return l.theme?{...de.useNestedProp({userConfig:o.themes.vue_ui_donut[l.theme]||p.config,defaultConfig:l}),customPalette:o.themePalettes[l.theme]||o.palette}:l}const t=e.computed({get:()=>H(),set:l=>l});e.watch(()=>p.config,l=>{t.value=H(),Y(),q.value+=1,R.value+=1,G.value+=1},{deep:!0});const{isPrinting:j,isImaging:W,generatePdf:J,generateImage:K}=ve.usePrinter({elementId:`donut__${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-donut"}),Q=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),v=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),s=e.ref({height:360,width:512}),L=e.computed(()=>{const l=t.value.style.chart.layout.donut.strokeWidth/512,r=s.value.width*l;return r>y.value/2?t.value.style.chart.layout.donut.strokeWidth:r}),k=e.computed(()=>p.dataset.map((l,r)=>({name:l.name,color:o.convertColorToHex(l.color)||Q.value[r]||o.palette[r]||o.palette[r%o.palette.length],value:l.values.reduce((a,u)=>a+u,0),absoluteValues:l.values,comment:l.comment||""}))),h=e.ref(k.value);e.watch(()=>k.value,l=>h.value=l);function pe(){return k.value.map(l=>({name:l.name,color:l.color,value:l.value}))}const m=e.ref([]),Z=e.ref(null),ee=e.ref(null),w=e.ref(!1);function te(l){const r=k.value.find((n,i)=>i===l);let u=h.value.find((n,i)=>i===l).value;if(m.value.includes(l)){let i=function(){u>n?(cancelAnimationFrame(Z.value),h.value=h.value.map((c,M)=>l===M?{...c,value:n}:c),w.value=!1):(w.value=!0,u+=n*.025,h.value=h.value.map((c,M)=>l===M?{...c,value:u}:c),Z.value=requestAnimationFrame(i))};m.value=m.value.filter(c=>c!==l);const n=r.value;i()}else if(m.value.length<k.value.length-1){let n=function(){u<.1?(cancelAnimationFrame(ee.value),m.value.push(l),h.value=h.value.map((i,c)=>l===c?{...i,value:0}:i),w.value=!1):(w.value=!0,u/=1.1,h.value=h.value.map((i,c)=>l===c?{...i,value:u}:i),ee.value=requestAnimationFrame(n))};n()}X("selectLegend",x.value.map(n=>({name:n.name,color:n.color,value:n.value})))}const x=e.computed(()=>(h.value.forEach((l,r)=>{if([null,void 0].includes(l.values))return{...l,values:[]}}),h.value.map((l,r)=>({...l,seriesIndex:r})).filter((l,r)=>!m.value.includes(r)))),le=e.computed(()=>p.dataset.map((l,r)=>({name:l.name,color:o.convertColorToHex(l.color)||Q.value[r]||o.palette[r]||o.palette[r%o.palette.length],value:(l.values||[]).reduce((a,u)=>a+u,0),shape:"circle"})).map((l,r)=>({...l,proportion:l.value/p.dataset.map(a=>(a.values||[]).reduce((u,n)=>u+n,0)).reduce((a,u)=>a+u,0),opacity:m.value.includes(r)?.5:1,segregate:()=>te(r),isSegregated:m.value.includes(r)}))),me=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),y=e.computed(()=>{const l=Math.min(s.value.width/3,s.value.height/3);return l<55?55:l}),C=e.computed(()=>o.makeDonut({series:x.value},s.value.width/2,s.value.height/2,y.value,y.value,1.99999,2,1,360,105.25,L.value));function _(l){return l.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function ae(l,r){const a=l.value/be(r);return isNaN(a)?0:o.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,a*100,o.dataLabel({v:a*100,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding}),{datapoint:l})}function be(l){return[...l].map(r=>r.value).reduce((r,a)=>r+a,0)}const d=e.computed(()=>x.value.map(l=>l.value).reduce((l,r)=>l+r,0)),oe=e.computed(()=>d.value/x.value.length),D=e.ref(null),N=e.ref(!1);function ge({datapoint:l,relativeIndex:r,seriesIndex:a,show:u=!1}){D.value={datapoint:l,seriesIndex:a,config:t.value,series:k.value},T.value=u,b.value=r;let n="";const i=t.value.style.chart.tooltip.customFormat;if(N.value=!1,o.isFunction(i))try{const c=i({seriesIndex:a,datapoint:l,series:k.value,config:t.value});typeof c=="string"&&(F.value=c,N.value=!0)}catch{console.warn("Custom format cannot be applied."),N.value=!1}if(!N.value){if(n+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`,n+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`,t.value.style.chart.tooltip.showValue&&(n+=`<b>${o.applyDataLabel(t.value.style.chart.layout.labels.value.formatter,l.value,o.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:l,relativeIndex:r,seriesIndex:a})}</b>`),t.value.style.chart.tooltip.showPercentage){const c=o.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,l.proportion*100,o.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage}),{datapoint:l,relativeIndex:r,seriesIndex:a});t.value.style.chart.tooltip.showValue?n+=`<span>(${c})</span></div>`:n+=`<b>${c}%</b></div>`}t.value.style.chart.comments.showInTooltip&&l.comment&&(n+=`<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>`),F.value=`<div>${n}</div>`}}function P(l){return t.value.useBlurOnHover&&![null,void 0].includes(b.value)&&b.value!==l?`url(#blur_${f.value})`:""}const g=e.computed(()=>{const l=x.value.map(a=>({name:a.name,color:a.color})),r=x.value.map(a=>a.value);return{head:l,body:r}});function re(){e.nextTick(()=>{const l=g.value.head.map((u,n)=>[[u.name],[g.value.body[n]],[isNaN(g.value.body[n]/d.value)?"-":g.value.body[n]/d.value*100]]),r=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),a=o.createCsvContent(r);o.downloadCsv({csvContent:a,title:t.value.style.chart.title.text||"vue-ui-donut"})})}const z=e.computed(()=>{const l=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',o.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:d.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],r=g.value.head.map((n,i)=>{const c=o.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:g.value.body[i],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},c,isNaN(g.value.body[i]/d.value)?"-":(g.value.body[i]/d.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]}),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:l,body:r,config:a}}),E=e.ref(!1);function ke(l){E.value=l,U.value+=1}const ue=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent));function we(l){return l.toFixed(t.value.style.chart.legend.roundingPercentage).split("").map(r=>"-").join("")}function O(l,r){X("selectDatapoint",{datapoint:l,index:r})}function ne(){v.value.showTable=!v.value.showTable}function se(){v.value.dataLabels.show=!v.value.dataLabels.show}function ce(){v.value.showTooltip=!v.value.showTooltip}return he({getData:pe,generatePdf:J,generateCsv:re,generateImage:K,toggleTable:ne,toggleLabels:se,toggleTooltip:ce}),(l,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutChart",ref:$,class:e.normalizeClass(`vue-ui-donut ${E.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height:100%;":""} text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:`donut__${f.value}`},[e.renderSlot(l.$slots,"userConfig",{},void 0,!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:A,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:24px`)},[(e.openBlock(),e.createBlock(Ce._sfc_main,{key:`title_${q.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&S.value?(e.openBlock(),e.createBlock(ve.UserOptions,{ref_key:"details",ref:ye,key:`user_option_${U.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(j),isImaging:e.unref(W),uid:f.value,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:E.value,chartElement:$.value,isTooltip:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},onToggleFullscreen:ke,onGeneratePdf:e.unref(J),onGenerateCsv:re,onGenerateImage:e.unref(K),onToggleTable:ne,onToggleLabels:se,onToggleTooltip:ce},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:u})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:u})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasLabel","hasFullscreen","isFullscreen","chartElement","isTooltip","titles","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),S.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":E.value,"vue-data-ui-fulscreen--off":!E.value}),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[e.createElementVNode("defs",null,[t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("radialGradient",{key:0,id:`gradient_${f.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0)},null,8,Oe),e.createElementVNode("stop",{offset:"77%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.gradientIntensity)},null,8,Te),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0)},null,8,Fe)],8,ze)):e.createCommentVNode("",!0)]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${f.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${f.value}`},null,8,Pe),Me],8,De),e.createElementVNode("filter",{id:`shadow_${f.value}`,"color-interpolation-filters":"sRGB"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"10","flood-opacity":"0.5","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,Ae)],8,Xe)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(a,u)=>(e.openBlock(),e.createElementBlock("g",null,[_(a)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(o.calcNutArrowPath)(a,{x:s.value.width/2,y:s.value.height/2},16,16,!1,!1,L.value),stroke:a.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:P(u)},null,8,Ie)):e.createCommentVNode("",!0)]))),256)),e.createElementVNode("circle",{cx:s.value.width/2,cy:s.value.height/2,r:y.value<=0?10:y.value,fill:t.value.style.chart.backgroundColor,filter:t.value.style.chart.layout.donut.useShadow?`url(#shadow_${f.value})`:""},null,8,qe),d.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(a,u)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:a.arcSlice,fill:"#FFFFFF"},null,8,Re))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(a,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:a.arcSlice,fill:e.unref(o.setOpacity)(a.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:P(u)},null,8,Ge))),256))],64)):(e.openBlock(),e.createElementBlock("circle",{key:1,cx:s.value.width/2,cy:s.value.height/2,r:y.value<=0?10:y.value,fill:t.value.style.chart.backgroundColor,stroke:e.unref(o.adaptColorToBackground)(t.value.style.chart.background)},null,8,Ye)),t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("circle",{key:2,cx:s.value.width/2,cy:s.value.height/2,r:y.value<=0?10:y.value,fill:`url(#gradient_${f.value})`},null,8,Ue)):e.createCommentVNode("",!0),d.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(C.value,(a,u)=>(e.openBlock(),e.createElementBlock("path",{"data-cy-donut-trap":"",d:a.arcSlice,fill:b.value===u?"rgba(0,0,0,0.1)":"transparent",onMouseenter:n=>ge({datapoint:a,relativeIndex:u,seriesIndex:a.seriesIndex,show:!0}),onMouseleave:r[0]||(r[0]=n=>{T.value=!1,b.value=null}),onClick:n=>O(a,u)},null,40,He))),256)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.show?(e.openBlock(),e.createElementBlock("circle",{key:4,cx:s.value.width/2,cy:s.value.height/2,r:y.value-L.value<=0?10:y.value-L.value,fill:t.value.style.chart.backgroundColor},null,8,je)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:5,"text-anchor":"middle",x:s.value.width/2,y:s.value.height/2-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.color,"font-size":t.value.style.chart.layout.labels.hollow.total.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.total.text),13,We)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:6,"text-anchor":"middle",x:s.value.width/2,y:s.value.height/2+t.value.style.chart.layout.labels.hollow.total.fontSize-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.value.color,"font-size":t.value.style.chart.layout.labels.hollow.total.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.value.bold?"bold":""}`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.hollow.total.value.formatter,d.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.hollow.total.value.prefix,v:d.value,s:t.value.style.chart.layout.labels.hollow.total.value.suffix}))),13,Je)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:7,"text-anchor":"middle",x:s.value.width/2,y:s.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.color,"font-size":t.value.style.chart.layout.labels.hollow.average.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.average.text),13,Ke)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:8,"text-anchor":"middle",x:s.value.width/2,y:s.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.fontSize+t.value.style.chart.layout.labels.hollow.average.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.value.color,"font-size":t.value.style.chart.layout.labels.hollow.average.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.value.bold?"bold":""}`)},e.toDisplayString(w.value?"--":e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.hollow.average.value.formatter,oe.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.hollow.average.value.prefix,v:oe.value,s:t.value.style.chart.layout.labels.hollow.average.value.suffix,r:t.value.style.chart.layout.labels.hollow.average.value.rounding}))),13,Qe)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(a,u)=>(e.openBlock(),e.createElementBlock("g",{filter:P(u),class:e.normalizeClass({animated:t.value.useCssAnimation})},[t.value.style.chart.layout.labels.dataLabels.useLabelSlots?(e.openBlock(),e.createElementBlock("g",et,[(e.openBlock(),e.createElementBlock("foreignObject",{x:e.unref(o.calcMarkerOffsetX)(a,!0).anchor==="end"?e.unref(o.calcMarkerOffsetX)(a).x-120:e.unref(o.calcMarkerOffsetX)(a,!0).anchor==="middle"?e.unref(o.calcMarkerOffsetX)(a).x-60:e.unref(o.calcMarkerOffsetX)(a).x,y:e.unref(o.calcMarkerOffsetY)(a)-(ue.value?20:0),width:"120",height:"60",style:{overflow:"visible"}},[e.createElementVNode("div",null,[e.renderSlot(l.$slots,"dataLabel",e.normalizeProps(e.guardReactiveProps({datapoint:a,isBlur:!t.value.useBlurOnHover||[null,void 0].includes(b.value)||b.value===u,isSafari:ue.value,isVisible:_(a)&&v.value.dataLabels.show,textAlign:e.unref(o.calcMarkerOffsetX)(a,!0,16,!0).anchor,flexAlign:e.unref(o.calcMarkerOffsetX)(a,!0,16).anchor,percentage:ae(a,C.value)})),void 0,!0)])],8,tt))])):(e.openBlock(),e.createElementBlock("g",lt,[_(a)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(o.calcMarkerOffsetX)(a).x,cy:e.unref(o.calcMarkerOffsetY)(a)-3.5,fill:a.color,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(b.value)||b.value===u?"":`url(#blur_${f.value})`,onClick:n=>O(a,u)},null,8,at)):e.createCommentVNode("",!0),_(a)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(o.calcMarkerOffsetX)(a,!0,12).anchor,x:e.unref(o.calcMarkerOffsetX)(a,!0,12).x,y:e.unref(o.calcMarkerOffsetY)(a),fill:t.value.style.chart.layout.labels.percentage.color,"font-size":t.value.style.chart.layout.labels.percentage.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.percentage.bold?"bold":""}`),onClick:n=>O(a,u)},e.toDisplayString(ae(a,C.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,a.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}),{datapoint:a})})`:""),13,ot)):e.createCommentVNode("",!0),_(a)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":e.unref(o.calcMarkerOffsetX)(a).anchor,x:e.unref(o.calcMarkerOffsetX)(a,!0,12).x,y:e.unref(o.calcMarkerOffsetY)(a)+t.value.style.chart.layout.labels.percentage.fontSize,fill:t.value.style.chart.layout.labels.name.color,"font-size":t.value.style.chart.layout.labels.name.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.name.bold?"bold":""}`),onClick:n=>O(a,u)},e.toDisplayString(a.name),13,rt)):e.createCommentVNode("",!0)])),v.value.dataLabels.show&&t.value.style.chart.comments.show&&a.comment?(e.openBlock(),e.createElementBlock("g",ut,[_(a)?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.value.style.chart.comments.offsetX+(e.unref(o.calcMarkerOffsetX)(a,!0).anchor==="end"?e.unref(o.calcMarkerOffsetX)(a).x-t.value.style.chart.comments.width:e.unref(o.calcMarkerOffsetX)(a,!0).anchor==="middle"?e.unref(o.calcMarkerOffsetX)(a).x-t.value.style.chart.comments.width/2:e.unref(o.calcMarkerOffsetX)(a).x),y:e.unref(o.calcMarkerOffsetY)(a)+24+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:{overflow:"visible","pointer-events":"none"}},[e.createElementVNode("div",null,[e.renderSlot(l.$slots,"plot-comment",{plot:{...a,textAlign:e.unref(o.calcMarkerOffsetX)(a,!0,16,!0).anchor,flexAlign:e.unref(o.calcMarkerOffsetX)(a,!0,16).anchor}},void 0,!0)])],8,nt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,Ze))),256)),e.renderSlot(l.$slots,"svg",{svg:s.value},void 0,!0)],14,Ve)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",st,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(j)||e.unref(W)})),void 0,!0)])):e.createCommentVNode("",!0),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Se.default,{key:4,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC",strokeWidth:L.value*.8}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:I},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Be.Legend,{key:`legend_${G.value}`,legendSet:le.value,config:me.value,onClickMarker:r[1]||(r[1]=({i:a})=>te(a))},{item:e.withCtx(({legend:a,index:u})=>[e.createElementVNode("div",{onClick:n=>a.segregate(),style:e.normalizeStyle(`opacity:${m.value.includes(u)?.5:1}`)},[e.createTextVNode(e.toDisplayString(a.name)+": "+e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,a.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:a,index:u}))+" ",1),m.value.includes(u)?(e.openBlock(),e.createElementBlock("span",vt," ( "+e.toDisplayString(we(a.proportion*100))+" % ) ",1)):(e.openBlock(),e.createElementBlock("span",it," ("+e.toDisplayString(isNaN(a.value/d.value)?"-":e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,w.value?a.proportion*100:a.value/d.value*100,e.unref(o.dataLabel)({v:w.value?a.proportion*100:a.value/d.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage})))+") ",1))],12,ct)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"legend",{legend:le.value},void 0,!0)],512),e.createVNode(_e._sfc_main,{show:v.value.showTooltip&&T.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:$.value,content:F.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...D.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...D.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),S.value?(e.openBlock(),e.createBlock($e.default,{key:5,hideDetails:"",config:{open:v.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(xe.DataTable,{key:`table_${R.value}`,colNames:z.value.colNames,head:z.value.head,body:z.value.body,config:z.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:r[2]||(r[2]=a=>v.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a,style:{display:"flex","align-items":"center"}},null,8,dt)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a.name?a.name:isNaN(Number(a))?a.includes("%")?e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,a,e.unref(o.dataLabel)({v:a,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding})):a:e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,a,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}))),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Ee))}},ft=Le._export_sfc(ht,[["__scopeId","data-v-9d45c2b6"]]);exports.default=ft;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-TabZg_HV.cjs"),be=require("./Title-D9lSjLTg.cjs"),se=require("./usePrinter--7sLxlpn.cjs"),xe=require("./DataTable-CeHw-cqZ.cjs"),Be=require("./Legend-DfU44fjz.cjs"),Ce=require("./vue-ui-skeleton-CYeXVNFu.cjs"),_e=require("./Slicer-Dt9iqvAA.cjs"),Ee=require("./vue-ui-accordion-0uSZBHsp.cjs"),ce=require("./useNestedProp-CoLyVvV9.cjs"),Ne=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),we=["id"],Se=["xmlns","viewBox"],Le=["id"],Ve=["stop-color"],$e=["stop-color"],ze=["id"],Fe=["stop-color"],Ae=["stop-color"],De=["stop-color"],Pe={key:0},Te=["x1","x2","y1","y2","stroke","stroke-width"],Oe=["x1","x2","y1","y2","stroke","stroke-width"],Ie={key:0},Me=["x1","x2","y1","y2","stroke","stroke-width"],He=["x1","x2","y1","y2","stroke","stroke-width"],Re=["x","y","font-size","fill","font-weight"],We=["text-anchor","font-size","fill","transform"],Ue=["x1","y1","x2","y2","stroke","stroke-width"],Xe={key:1},qe=["cx","cy","r","fill"],Ge={key:0},Ye={key:0},je=["d","stroke"],Ke=["text-anchor","x","y","fill"],Je=["cx","cy","r","fill"],Qe={key:0},Ze=["cx","cy","fill"],et={key:1},tt=["d","fill","stroke"],lt={key:2},at=["d","fill","stroke"],ot=["x","y","font-size","fill"],ut=["x","y","width","fill","onClick"],rt=["x","y","width","height","onMouseenter","onClick"],nt={key:3,"data-cy-zoom":"",class:"vue-ui-donut-evolution-dialog"},st=["x","y","width","height","fill"],ct=["x1","y1","x2","y2","stroke"],it=["x1","y2","x2","y1","stroke"],dt=["onKeypress","cx","cy","r"],vt=["d","stroke"],ht=["cx","cy","r","fill"],yt=["d","fill","stroke"],mt={class:"vue-ui-donut-evolution-focus"},ft=["text-anchor","x","y","fill"],gt=["cx","cy","r","fill"],kt=["cx","cy","r","fill"],pt=["x","y","fill"],bt=["x","y","font-size","fill"],xt={key:3,class:"vue-data-ui-watermark"},Bt=["onClick"],Ct={key:0},_t={key:1},Et={key:0},Nt={key:1},wt={__name:"vue-ui-donut-evolution",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(ie,{expose:de,emit:M}){const k=ie,{vue_ui_donut_evolution:ve}=r.useConfig(),$=e.computed(()=>!!k.dataset&&k.dataset.length),i=e.ref({start:0,end:Math.max(...k.dataset.map(a=>a.values.length))});function H(){i.value={start:0,end:L.value},X.value+=1}e.onMounted(()=>{R()});function R(){r.objectIsEmpty(k.dataset)?r.error({componentName:"VueUiDonutEvolution",type:"dataset"}):k.dataset.length&&k.dataset.forEach((a,c)=>{r.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","values"]}).forEach(l=>{r.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:l,index:c})})})}const _=e.ref(r.createUid()),y=e.ref([]),h=e.ref(null),A=e.ref(null),p=e.ref(!1),b=e.ref(null),W=e.ref(null),U=e.ref(0),X=e.ref(0),q=e.ref(0),G=e.ref(0),Y=e.ref(0),t=e.computed({get:()=>j(),set:a=>a});function j(){const a=ce.useNestedProp({userConfig:k.config,defaultConfig:ve});return a.theme?{...ce.useNestedProp({userConfig:r.themes.vue_ui_donut_evolution[a.theme]||k.config,defaultConfig:a}),customPalette:r.themePalettes[a.theme]||r.palette}:a}e.watch(()=>k.config,a=>{t.value=j(),R(),q.value+=1,G.value+=1,Y.value+=1},{deep:!0}),e.watch(()=>k.dataset,a=>{H()},{deep:!0});const{isPrinting:K,isImaging:J,generatePdf:Q,generateImage:Z}=se.usePrinter({elementId:_.value,fileName:t.value.style.chart.title.text||"vue-ui-donut-evolution"}),he=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),z=e.ref({showTable:t.value.table.show}),u=e.computed(()=>({top:t.value.style.chart.layout.padding.top,right:t.value.style.chart.layout.padding.right,bottom:t.value.style.chart.layout.padding.bottom,left:t.value.style.chart.layout.padding.left})),n=e.computed(()=>{const a=t.value.style.chart.layout.height,c=t.value.style.chart.layout.width,l=a-u.value.top-u.value.bottom,s=c-u.value.left-u.value.right;return{absoluteHeight:a,absoluteWidth:c,centerX:u.value.left+s/2,centerY:u.value.top+l/2,height:l,width:s}}),C=e.computed(()=>(k.dataset.forEach((a,c)=>{[null,void 0].includes(a.name)&&r.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"name",index:c}),[null,void 0].includes(a.values)&&r.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"values",index:c})}),k.dataset.map((a,c)=>({...a,values:r.sanitizeArray(a.values),color:r.convertColorToHex(a.color)||he.value[c]||r.palette[c]||r.palette[c%r.palette.length],length:(a.values||[]).length,uid:r.createUid()})))),S=e.computed(()=>C.value.filter(a=>!y.value.includes(a.uid)).map(a=>({...a,values:a.values.filter((c,l)=>l>=i.value.start&&l<=i.value.end)}))),L=e.computed(()=>Math.max(...S.value.map(a=>a.length))),f=e.computed(()=>n.value.width/(i.value.end-i.value.start)),m=e.computed(()=>{const a=[];for(let o=0;o<i.value.end-i.value.start;o+=1){const v=S.value.map(B=>B.values[o]??null),d=v.filter(B=>[void 0,null].includes(B)).length===v.length,x=v.reduce((B,g)=>B+g,0),I=v.map(B=>B/x),w=u.value.left+f.value*o+f.value/2;a.push({index:o,percentages:I,subtotal:d||x<0?null:x,values:v,x:w})}const c=0,l=Math.max(...a.map(o=>o.subtotal)),s=a.length===1?l*2:l;return a.map((o,v)=>{const d=f.value/2*.7,x=d>n.value.width/16?n.value.width/16:d,I=h.value===o.index?n.value.width/16:x,w=a.length>4?d*2:d*2>f.value/2*.7?f.value/2*.7:d*2,B=n.value.absoluteHeight-u.value.bottom-n.value.height*o.subtotal/r.calculateNiceScale(c,s,t.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;return{...o,y:B,radius:x,activeRadius:I,hoverRadius:w,donut:r.makeDonut({series:S.value.map((g,ne)=>({color:g.color,name:g.name,value:g.values[v]??0}))},o.x,B,x,x,1.99999,2,1,360,105.25,x/2),donutHover:r.makeDonut({series:S.value.map((g,ne)=>({color:g.color,name:g.name,value:g.values[v]??0}))},o.x,B,w,w,1.99999,2,1,360,105.25,w/2),donutFocus:r.makeDonut({series:S.value.map((g,ne)=>({color:g.color,name:g.name,value:g.values[v]??0}))},n.value.centerX,n.value.centerY,n.value.height/3.6,n.value.height/3.6,1.99999,2,1,360,105.25,n.value.height/6)}})});function F(a,c,l){return r.applyDataLabel(t.value.style.chart.layout.dataLabels.formatter,a,r.dataLabel({p:t.value.style.chart.layout.dataLabels.prefix,v:a,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.layout.dataLabels.rounding}),{datapoint:c,index:l})}const D=e.computed(()=>({max:Math.max(...m.value.map(a=>a.subtotal)),min:0})),E=e.computed(()=>{const a=m.value.length===1?D.value.max*2:D.value.max;return r.calculateNiceScale(D.value.min,a,t.value.style.chart.layout.grid.yAxis.dataLabels.steps)});function ye(a){return a/E.value.max}const me=e.computed(()=>E.value.ticks.map(a=>({y:n.value.absoluteHeight-u.value.bottom-n.value.height*ye(a),value:a})));function ee(a,c){return isNaN(a.value/r.sumByAttribute(c,"value"))?0:(a.value/r.sumByAttribute(c,"value")*100).toFixed(0)+"%"}function te(){p.value||(h.value=null,A.value=null)}function fe(a){p.value||(h.value=a.index,A.value=a)}const P=e.ref(null);function T(a,c){a.subtotal&&(A.value=null,h.value=null,p.value=!0,b.value=a,[null,void 0].includes(c)||(P.value=c))}function le(){b.value=null,p.value=!1,P.value=null}const ae=e.computed(()=>C.value.map((a,c)=>({name:a.name,value:a.values.slice(i.value.start,i.value.end).reduce((l,s)=>l+s,0),shape:"circle",uid:a.uid,color:a.color})).sort((a,c)=>c.value-a.value).map(a=>({...a,opacity:y.value.includes(a.uid)?.5:1,segregate:()=>O(a.uid),isSegregated:y.value.includes(a.uid)}))),oe=e.computed(()=>m.value.map(a=>a.subtotal).reduce((a,c)=>a+c,0)),ge=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""}));function O(a){if(y.value.includes(a))y.value=y.value.filter(c=>c!==a),M("selectLegend",null);else{if(y.value.length===C.value.length-1)return;y.value.push(a),M("selectLegend",C.value.find(c=>c.uid===a))}b.value&&T(m.value.find((c,l)=>l===P.value))}const N=e.computed(()=>{const a=[""].concat(C.value.filter(o=>!y.value.includes(o.uid)).map(o=>({name:o.name,color:o.color}))).concat(["Σ"]);let c=[];for(let o=0;o<L.value;o+=1){const v=C.value.filter(d=>!y.value.includes(d.uid)).map(d=>d.values[o]??0).reduce((d,x)=>d+x,0);c.push([t.value.style.chart.layout.grid.xAxis.dataLabels.values[o]??"-"].concat(C.value.filter(d=>!y.value.includes(d.uid)).map(d=>({value:d.values[o]??0,percentage:d.values[o]?d.values[o]/v*100:0}))).concat([`${t.value.style.chart.layout.dataLabels.prefix}${Number(v.toFixed(t.value.table.td.roundingValue))}${t.value.style.chart.layout.dataLabels.suffix}`]))}const l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint},s=[t.value.table.columnNames.period].concat(C.value.filter(o=>!y.value.includes(o.uid)).map(o=>o.name)).concat(t.value.table.columnNames.total);return{head:a,body:c,config:l,colNames:s}});function ke(){return C.value}function ue(){e.nextTick(()=>{const a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],c=[...N.value.head.map(v=>v.name??v)],l=[...N.value.body.map(v=>v.map(d=>d.value??d))],s=a.concat([c]).concat(l),o=r.createCsvContent(s);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-donut-evolution"})})}const V=e.ref(!1);function pe(a){V.value=a,U.value+=1}function re(){z.value.showTable=!z.value.showTable}return de({getData:ke,generatePdf:Q,generateCsv:ue,generateImage:Z,toggleTable:re}),(a,c)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutEvolutionChart",ref:W,class:e.normalizeClass(`vue-ui-donut-evolution ${V.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:_.value},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:24px`),onMouseleave:te},[(e.openBlock(),e.createBlock(be._sfc_main,{key:`title_${q.value}`,config:{title:{cy:"donut-evolution-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-evolution-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],36)):e.createCommentVNode("",!0),t.value.userOptions.show&&$.value?(e.openBlock(),e.createBlock(se.UserOptions,{ref:"details",key:`user_options_${U.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(K),isImaging:e.unref(J),uid:_.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:W.value,onToggleFullscreen:pe,onGeneratePdf:e.unref(Q),onGenerateCsv:ue,onGenerateImage:e.unref(Z),onToggleTable:re},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:s})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:s})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${n.value.absoluteWidth} ${n.value.absoluteHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`hover_${_.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.backgroundColor,t.value.style.chart.layout.highlighter.opacity)},null,8,Ve),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.layout.highlighter.color,t.value.style.chart.layout.highlighter.opacity)},null,8,$e)],8,Le),e.createElementVNode("radialGradient",{id:`focus_${_.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.convertColorToHex)(t.value.style.chart.backgroundColor),0)},null,8,Fe),e.createElementVNode("stop",{offset:"77%","stop-color":e.unref(r.setOpacity)("#FFFFFF",30)},null,8,Ae),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.convertColorToHex)(t.value.style.chart.backgroundColor),0)},null,8,De)],8,ze)]),t.value.style.chart.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Pe,[e.createElementVNode("line",{x1:u.value.left,x2:u.value.left,y1:u.value.top,y2:u.value.top+n.value.height,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Te),e.createElementVNode("line",{x1:u.value.left,x2:n.value.absoluteWidth-u.value.right,y1:n.value.absoluteHeight-u.value.bottom,y2:n.value.absoluteHeight-u.value.bottom,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Oe),t.value.style.chart.layout.grid.showVerticalLines?(e.openBlock(),e.createElementBlock("g",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.end-i.value.start,(l,s)=>(e.openBlock(),e.createElementBlock("line",{x1:u.value.left+(s+1)*f.value,x2:u.value.left+(s+1)*f.value,y1:u.value.top,y2:n.value.absoluteHeight-u.value.bottom,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Me))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.chart.layout.grid.yAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:1,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":h.value!==null||p.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(me.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l.value>=E.value.min&&l.value<=E.value.max?(e.openBlock(),e.createElementBlock("line",{key:0,x1:u.value.left,x2:u.value.left-5,y1:l.y,y2:l.y,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,He)):e.createCommentVNode("",!0),l.value>=E.value.min&&l.value<=E.value.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:u.value.left-8+t.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,y:l.y+t.value.style.chart.layout.grid.yAxis.dataLabels.fontSize/3,"font-size":t.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,"text-anchor":"end",fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-weight":t.value.style.chart.layout.grid.yAxis.dataLabels.bold?"bold":"normal"},e.toDisplayString(e.unref(r.canShowValue)(l.value)?e.unref(r.applyDataLabel)(t.value.style.chart.layout.dataLabels.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue}),{datapoint:l,seriesIndex:s}):""),9,Re)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),t.value.style.chart.layout.grid.xAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:2,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":p.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.end-i.value.start,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast&&(s===0||s===L.value-1)||!t.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":t.value.style.chart.layout.grid.xAxis.dataLabels.rotation>0?"start":t.value.style.chart.layout.grid.xAxis.dataLabels.rotation<0?"end":"middle","font-size":t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,fill:t.value.style.chart.layout.grid.xAxis.dataLabels.color,transform:`translate(${u.value.left+f.value*s+f.value/2}, ${t.value.style.chart.layout.grid.xAxis.dataLabels.offsetY+n.value.absoluteHeight-u.value.bottom+t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2}), rotate(${t.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`},e.toDisplayString(t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(s)+Number(i.value.start)]??""),9,We)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.line.show&&s<m.value.length-1&&![l.subtotal,m.value[s+1].subtotal].includes(null)?(e.openBlock(),e.createElementBlock("line",{key:0,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":h.value!==null||p.value}),x1:l.x,y1:l.y,x2:m.value[s+1].x,y2:m.value[s+1].y,stroke:t.value.style.chart.layout.line.stroke,"stroke-width":t.value.style.chart.layout.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,10,Ue)):e.createCommentVNode("",!0),l.subtotal!==null?(e.openBlock(),e.createElementBlock("g",Xe,[l.subtotal?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:l.activeRadius,fill:t.value.style.chart.backgroundColor},null,8,qe)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||p.value})},[l.subtotal?(e.openBlock(),e.createElementBlock("g",Ge,[h.value!==null&&h.value===s?(e.openBlock(),e.createElementBlock("g",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,o=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{d:e.unref(r.calcNutArrowPath)(o,{x:o.center.endX,y:o.center.endY},12,12,{x:l.x,y:l.y},!0),stroke:o.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,je)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,(o,v)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("text",{"data-cy-hover-label":"","text-anchor":e.unref(r.calcMarkerOffsetX)(o,!0,0).anchor,x:e.unref(r.calcMarkerOffsetX)(o,!0,3).x,y:e.unref(r.calcMarkerOffsetY)(o),fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":8,"font-weight":"bold"},e.toDisplayString(o.name)+": "+e.toDisplayString(ee(o,l.donut))+" ("+e.toDisplayString(o.value===null?"-":F(o.value,o,v))+") ",9,Ke)]))),256)),e.createElementVNode("g",null,[e.createElementVNode("circle",{cx:l.x,cy:l.y,r:l.hoverRadius,fill:t.value.style.chart.backgroundColor},null,8,Je)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||p.value})},[l.subtotal!==null?(e.openBlock(),e.createElementBlock("g",Qe,[l.subtotal===0?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:3,fill:t.value.style.chart.color},null,8,Ze)):h.value!==null&&h.value===s?(e.openBlock(),e.createElementBlock("g",et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,(o,v)=>(e.openBlock(),e.createElementBlock("path",{d:o.arcSlice,fill:`${o.color}`,"stroke-width":1,stroke:t.value.style.chart.backgroundColor},null,8,tt))),256))])):(e.openBlock(),e.createElementBlock("g",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donut,(o,v)=>(e.openBlock(),e.createElementBlock("path",{d:o.arcSlice,fill:`${o.color}`,"stroke-width":.5,stroke:t.value.style.chart.backgroundColor},null,8,at))),256))]))])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||p.value})},[l.subtotal!==null&&t.value.style.chart.layout.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:l.x,y:h.value===l.index&&l.subtotal?l.y+t.value.style.chart.layout.dataLabels.fontSize/3:l.y-l.radius-t.value.style.chart.layout.dataLabels.fontSize+t.value.style.chart.layout.dataLabels.offsetY,"font-size":t.value.style.chart.layout.dataLabels.fontSize,"font-weight":"bold",fill:t.value.style.chart.layout.dataLabels.color},e.toDisplayString(F(l.subtotal,l,s)),9,ot)):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,s)=>(e.openBlock(),e.createElementBlock("rect",{x:u.value.left+s*f.value,y:n.value.absoluteHeight-u.value.bottom-10,width:f.value,height:10,fill:h.value===l.index?`url(#hover_${_.value})`:"transparent",onClick:o=>T(l,s),class:e.normalizeClass({"donut-hover":h.value===l.index&&l.subtotal})},null,10,ut))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,s)=>(e.openBlock(),e.createElementBlock("rect",{"data-cy-trap":"",x:u.value.left+s*f.value,y:u.value.top,width:f.value,height:n.value.height,fill:"transparent",onMouseenter:o=>fe(l),onMouseleave:te,onClick:o=>T(l,s),class:e.normalizeClass({"donut-hover":h.value===l.index&&l.subtotal})},null,42,rt))),256)),p.value?(e.openBlock(),e.createElementBlock("g",nt,[e.createElementVNode("rect",{rx:4,x:u.value.left,y:u.value.top,width:n.value.width,height:n.value.height,fill:t.value.style.chart.backgroundColor,style:{filter:"drop-shadow(0 12px 12px rgba(0,0,0,0.3))"}},null,8,st),e.createElementVNode("line",{"data-html2canvas-ignore":"",x1:n.value.absoluteWidth-u.value.right-15,y1:u.value.top+5,x2:n.value.absoluteWidth-u.value.right-4,y2:u.value.top+15.5,"stroke-linecap":"round",stroke:t.value.style.chart.color,"stroke-width":"1.5"},null,8,ct),e.createElementVNode("line",{"data-html2canvas-ignore":"",x1:n.value.absoluteWidth-u.value.right-15,y2:u.value.top+5,x2:n.value.absoluteWidth-u.value.right-4,y1:u.value.top+15.5,"stroke-linecap":"round",stroke:t.value.style.chart.color,"stroke-width":"1.5"},null,8,it),e.createElementVNode("circle",{"data-cy-close":"",onClick:le,onKeypress:e.withKeys(le,["enter"]),cx:n.value.absoluteWidth-u.value.right-n.value.width/40,cy:u.value.top+n.value.height/30,r:n.value.height/12,fill:"transparent",style:{cursor:"pointer"},tabindex:"0"},null,40,dt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.donutFocus,l=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{"data-cy-zoom-donut":"",d:e.unref(r.calcNutArrowPath)(l,{x:n.value.centerX,y:n.value.centerY},12,12,!1,!1,15),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:"vue-ui-donut-evolution-focus"},null,8,vt)]))),256)),e.createElementVNode("circle",{cx:u.value.left+n.value.width/2,cy:u.value.top+n.value.height/2,r:n.value.height/7,fill:t.value.style.chart.backgroundColor},null,8,ht),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.donutFocus,(l,s)=>(e.openBlock(),e.createElementBlock("path",{d:l.arcSlice,fill:`${l.color}`,"stroke-width":1,stroke:t.value.style.chart.backgroundColor,class:"vue-ui-donut-evolution-focus"},null,8,yt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.donutFocus,(l,s)=>(e.openBlock(),e.createElementBlock("g",mt,[e.createElementVNode("text",{"text-anchor":e.unref(r.calcMarkerOffsetX)(l,!0,20).anchor,x:e.unref(r.calcMarkerOffsetX)(l,!0,10).x,y:e.unref(r.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":10,"font-weight":"bold"},e.toDisplayString(l.name)+": "+e.toDisplayString(ee(l,b.value.donutFocus))+" ("+e.toDisplayString(l.value===null?"-":F(l.value,l,s))+") ",9,ft)]))),256)),e.createElementVNode("circle",{cx:u.value.left+n.value.width/2,cy:u.value.top+n.value.height/2,r:n.value.height/3.8,fill:`url(#focus_${_.value})`},null,8,gt),e.createElementVNode("circle",{cx:u.value.left+n.value.width/2,cy:u.value.top+n.value.height/2,r:n.value.height/7.7,fill:t.value.style.chart.backgroundColor},null,8,kt),e.createElementVNode("text",{"text-anchor":"middle",x:u.value.left+n.value.width/2,y:u.value.top+n.value.height/2+14/3,"font-size":14,"font-weight":"bold",fill:t.value.style.chart.layout.dataLabels.color,class:"vue-ui-donut-evolution-focus"},e.toDisplayString(F(b.value.subtotal,b.value,null)),9,pt),t.value.style.chart.layout.grid.xAxis.dataLabels.values[b.value.index]?(e.openBlock(),e.createElementBlock("text",{key:0,x:u.value.left+6,y:u.value.top+t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2,"font-size":t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*1.6,fill:t.value.style.chart.layout.dataLabels.color},e.toDisplayString(t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(b.value.index)+Number(i.value.start)]),9,bt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:n.value},void 0,!0)],14,Se)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",xt,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(K)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ce.default,{key:4,config:{type:"donutEvolution",style:{backgroundColor:t.value.style.chart.backgroundColor,donutEvolution:{axis:{color:"#CCCCCC"},donuts:{color:"#CCCCCC"}}}}},null,8,["config"])),L.value>1&&t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(_e.Slicer,{key:`slicer_${X.value}`,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,fontSize:t.value.style.chart.zoom.fontSize,useResetSlot:t.value.style.chart.zoom.useResetSlot,labelLeft:t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(i.value.start)]||"",labelRight:t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(i.value.end)-1]||"",textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,max:L.value,min:0,valueStart:i.value.start,valueEnd:i.value.end,start:i.value.start,"onUpdate:start":c[0]||(c[0]=l=>i.value.start=l),end:i.value.end,"onUpdate:end":c[1]||(c[1]=l=>i.value.end=l),onReset:H},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(a.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end"])):e.createCommentVNode("",!0),t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Be.Legend,{key:`legend_${Y.value}`,legendSet:ae.value,config:ge.value,onClickMarker:c[2]||(c[2]=({legend:l})=>O(l.uid))},{item:e.withCtx(({legend:l,index:s})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:o=>O(l.uid),style:e.normalizeStyle(`opacity:${y.value.includes(l.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.dataLabels.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:s}))+" ",1),y.value.includes(l.uid)?(e.openBlock(),e.createElementBlock("span",_t," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Ct," ("+e.toDisplayString(isNaN(l.value/oe.value)?"-":e.unref(r.dataLabel)({v:l.value/oe.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,Bt)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:ae.value},void 0,!0),$.value?(e.openBlock(),e.createBlock(Ee.default,{key:7,hideDetails:"",config:{open:z.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(xe.DataTable,{key:`table_${G.value}`,colNames:N.value.colNames,head:N.value.head,body:N.value.body,config:N.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:c[3]||(c[3]=l=>z.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l.name??l),1)]),td:e.withCtx(({td:l})=>[l.value===null?(e.openBlock(),e.createElementBlock("span",Et,"-")):(e.openBlock(),e.createElementBlock("b",Nt,e.toDisplayString(isNaN(l.value)?"":t.value.style.chart.layout.dataLabels.prefix)+e.toDisplayString(!isNaN(l.value)&&l.value!==null?Number(l.value.toFixed(t.value.table.td.roundingValue)).toLocaleString():l)+e.toDisplayString(isNaN(l.value)?"":t.value.style.chart.layout.dataLabels.suffix),1)),e.createElementVNode("span",null,e.toDisplayString(l.percentage&&!isNaN(l.percentage)?`(${Number(l.percentage.toFixed(t.value.table.td.roundingPercentage)).toLocaleString()}%)`:""),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,we))}},St=Ne._export_sfc(wt,[["__scopeId","data-v-df485855"]]);exports.default=St;