vue-data-ui 3.6.0 → 3.7.1

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 (199) hide show
  1. package/README.md +26 -26
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
  5. package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-C82JCJOX.js} +1 -1
  10. package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +2 -0
  90. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  91. package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
  92. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  93. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  94. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  95. package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-d-OXgGG3.js} +78 -78
  96. package/dist/vue-data-ui.js +225 -205
  97. package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-BLbSbx2V.js} +546 -517
  98. package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  99. package/dist/vue-ui-age-pyramid-DQ-xc-if.js +960 -0
  100. package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  101. package/dist/vue-ui-bullet-BvMdxLkK.js +657 -0
  102. package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-DIWeygxV.js} +596 -561
  103. package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-DM2HJFMH.js} +48 -48
  104. package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DNOG6dqY.js} +534 -505
  105. package/dist/vue-ui-chord-D2wPt2JV.js +1182 -0
  106. package/dist/vue-ui-circle-pack-D_GDv7OV.js +832 -0
  107. package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  108. package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-BMby447A.js} +140 -140
  109. package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
  110. package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BqiNPW3q.js} +634 -602
  111. package/dist/vue-ui-donut-evolution-BL7HtdsP.js +1243 -0
  112. package/dist/vue-ui-dumbbell-BlTDnM8L.js +1258 -0
  113. package/dist/vue-ui-flow-BxIv20FH.js +1026 -0
  114. package/dist/vue-ui-funnel-Tnjg4srR.js +743 -0
  115. package/dist/vue-ui-galaxy-CYDVXdNj.js +837 -0
  116. package/dist/vue-ui-gauge-DAcpazK7.js +864 -0
  117. package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-Bg2TpPwm.js} +3 -3
  118. package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-BPEE_cLi.js} +501 -466
  119. package/dist/vue-ui-history-plot-BhfbLer8.js +1239 -0
  120. package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  121. package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  122. package/dist/vue-ui-molecule-DnzXYuUi.js +782 -0
  123. package/dist/vue-ui-mood-radar-CXyQEfeM.js +930 -0
  124. package/dist/vue-ui-nested-donuts-Dq8JoU5d.js +1454 -0
  125. package/dist/vue-ui-onion-D0KUHi-Z.js +944 -0
  126. package/dist/vue-ui-parallel-coordinate-plot-DNc2L4Rg.js +1080 -0
  127. package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-Cp8loNVN.js} +510 -481
  128. package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-kuTdgAKG.js} +795 -758
  129. package/dist/vue-ui-radar-x2Ry_IGa.js +1013 -0
  130. package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  131. package/dist/vue-ui-relation-circle-DbYE9UHq.js +671 -0
  132. package/dist/vue-ui-ridgeline-yaMl8iIE.js +1302 -0
  133. package/dist/vue-ui-rings-BowsO9I8.js +884 -0
  134. package/dist/vue-ui-scatter-C_nz0A4x.js +1619 -0
  135. package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-DdXq2gl1.js} +3 -3
  136. package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  137. package/dist/vue-ui-spark-trend-BLticwHl.js +364 -0
  138. package/dist/vue-ui-sparkbar-DC2sDr9_.js +381 -0
  139. package/dist/vue-ui-sparkgauge-BENUfyuR.js +260 -0
  140. package/dist/vue-ui-sparkhistogram-BY0jsNsc.js +411 -0
  141. package/dist/vue-ui-sparkline-fS36LGCB.js +549 -0
  142. package/dist/vue-ui-sparkstackbar-C59ocU83.js +470 -0
  143. package/dist/vue-ui-stackbar-BtWWtzDp.js +1867 -0
  144. package/dist/vue-ui-stackline-CsGEHOOr.js +1963 -0
  145. package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-n_rEdwkM.js} +343 -314
  146. package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-Kv2YL5OU.js} +5 -5
  147. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  148. package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-B8CCAdco.js} +292 -263
  149. package/dist/vue-ui-thermometer-C1Hr_LrY.js +613 -0
  150. package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-CmnO99_j.js} +25 -25
  151. package/dist/vue-ui-tiremarks-DbZbhw6Q.js +477 -0
  152. package/dist/vue-ui-treemap-BGMpUu5v.js +1359 -0
  153. package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-CWlGQoB3.js} +520 -485
  154. package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-BVVrMghT.js} +376 -347
  155. package/dist/vue-ui-wheel-B2pFBeKR.js +690 -0
  156. package/dist/vue-ui-word-cloud-BqKSDn2J.js +904 -0
  157. package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-glj9mQAg.js} +57 -57
  158. package/dist/vue-ui-xy-BdXV4naK.js +3455 -0
  159. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  160. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  161. package/package.json +5 -5
  162. package/dist/themes-DH-N_ePR.js +0 -54
  163. package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
  164. package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
  165. package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
  166. package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
  167. package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
  168. package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
  169. package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
  170. package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
  171. package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
  172. package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
  173. package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
  174. package/dist/vue-ui-molecule-CasngKZI.js +0 -753
  175. package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
  176. package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
  177. package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
  178. package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
  179. package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
  180. package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
  181. package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
  182. package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
  183. package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
  184. package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
  185. package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
  186. package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
  187. package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
  188. package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
  189. package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
  190. package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
  191. package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
  192. package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
  193. package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
  194. package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
  195. package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
  196. package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
  197. package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
  198. package/dist/vue-ui-xy-BT67faLv.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
@@ -1,25 +1,42 @@
1
- import { defineAsyncComponent as le, useSlots as _l, computed as f, shallowRef as Q, ref as p, onMounted as Tt, onBeforeUnmount as Pt, toRefs as Cl, watch as ye, createElementBlock as r, openBlock as s, normalizeStyle as C, normalizeClass as We, createBlock as ae, createCommentVNode as v, renderSlot as y, createElementVNode as h, createVNode as Te, unref as u, withCtx as b, normalizeProps as N, guardReactiveProps as Y, createSlots as qe, Fragment as k, renderList as I, mergeProps as He, toDisplayString as U, withDirectives as Ft, createTextVNode as Pe, vShow as It, Teleport as Al, resolveDynamicComponent as Sl, nextTick as Tl } from "vue";
2
- import { o as Lt, f as je, g as Pl, c as Fl, t as Il, e as Ll, x as Ml, h as Mt, p as ie, a as W, d as X, T as zt, Z as zl, X as Ol, s as Fe, i as Dl, V as Nl, _ as P, W as ge, Y as $, $ as Ot, l as Yl, b as Xl, O as Qe, P as Bl, Q as Vl, G as El, a0 as Dt } from "./lib-C_mNZmhD.js";
3
- import { t as Rl, u as Gl } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ul, a as Nt } from "./useNestedProp-CIoDlpHu.js";
5
- import { u as Wl } from "./usePrinter-DTzqpYKF.js";
6
- import { u as ql, B as Hl } from "./BaseScanner-BgWxam9d.js";
7
- import { u as jl } from "./useSvgExport-DrjCWun4.js";
8
- import { u as Ql } from "./useUserOptionState-BIvW1Kz7.js";
9
- import { u as Zl } from "./useChartAccessibility-9icAAmYg.js";
10
- import Jl from "./img-BecE5qXd.js";
11
- import { _ as Kl } from "./Shape-CNXKB8O0.js";
12
- import ea from "./Title-Bb1VWCtR.js";
13
- import { t as ta } from "./themes-DH-N_ePR.js";
14
- import la from "./Legend-D9ZTJKjh.js";
15
- import { _ as aa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "height"], ra = { key: 1 }, ia = ["id"], va = ["stop-color"], da = ["offset", "stop-color"], ca = ["offset", "stop-color"], ha = ["stop-color"], fa = { key: 2 }, ya = ["id", "cx", "cy"], ga = ["stop-color", "stop-opacity"], pa = ["stop-color"], ma = ["id"], ba = ["id"], wa = ["id"], ka = ["flood-color"], xa = ["id"], $a = ["flood-color"], _a = ["d", "stroke", "filter"], Ca = ["d", "stroke", "filter"], Aa = ["cx", "cy", "r", "fill", "filter"], Sa = { key: 6 }, Ta = ["stroke", "d"], Pa = ["d", "fill", "stroke", "stroke-width", "filter"], Fa = { key: 0 }, Ia = ["d", "fill", "stroke", "stroke-width", "filter"], La = { key: 0 }, Ma = ["stroke", "d"], za = { key: 0 }, Oa = ["d", "stroke", "stroke-width", "filter"], Da = { key: 1 }, Na = ["d", "fill", "stroke", "stroke-width", "filter"], Ya = ["d", "fill", "stroke", "stroke-width", "filter"], Xa = { key: 1 }, Ba = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Va = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ea = { key: 0 }, Ra = ["d", "fill", "stroke", "stroke-width"], Ga = ["cx", "cy", "r", "stroke"], Ua = ["cx", "cy", "r", "fill"], Wa = ["cx", "cy", "r"], qa = { key: 0 }, Ha = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], ja = { key: 1 }, Qa = ["cx", "cy", "r"], Za = ["x", "y", "fill", "font-size"], Ja = ["x", "y", "fill", "font-size"], Ka = ["x", "y", "fill", "font-size"], eo = ["x", "y", "fill", "font-size"], to = ["filter"], lo = { key: 0 }, ao = ["x", "y"], oo = { key: 1 }, no = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], so = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], uo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], ro = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], io = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], vo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], co = { key: 2 }, ho = ["x", "y", "width"], fo = ["x", "y", "width"], yo = {
1
+ import { defineAsyncComponent as le, useSlots as Ll, computed as f, shallowRef as Z, ref as b, onMounted as Tt, onBeforeUnmount as Pt, toRefs as Ml, watch as ye, createElementBlock as r, openBlock as s, normalizeStyle as _, normalizeClass as We, createBlock as oe, createCommentVNode as c, renderSlot as y, createElementVNode as h, createVNode as Se, unref as u, withCtx as m, normalizeProps as O, guardReactiveProps as E, createSlots as qe, Fragment as k, renderList as D, mergeProps as je, toDisplayString as U, withDirectives as Dt, createTextVNode as Te, vShow as It, Teleport as Bl, resolveDynamicComponent as zl, nextTick as Ol } from "vue";
2
+ import { o as Lt, g as He, k as El, c as Nl, t as Yl, j as Xl, M as Vl, l as Mt, p as ie, a as W, d as N, Z as Bt, a1 as Rl, X as Gl, s as Pe, h as Ul, _ as Wl, a2 as T, $ as ge, a0 as x, a3 as zt, f as ql, i as jl, W as Ze, u as Hl, q as Zl, x as Jl, a4 as Ot } from "./lib-C5BH09_g.js";
3
+ import { t as Kl, u as Ql } from "./useResponsive-DfdjqQps.js";
4
+ import { u as eo, a as Je } from "./useNestedProp-CWo6bftQ.js";
5
+ import { u as to } from "./usePrinter-DCJzEiS8.js";
6
+ import { u as lo, B as oo } from "./BaseScanner-BgWxam9d.js";
7
+ import { u as ao } from "./useSvgExport-DrjCWun4.js";
8
+ import { u as no } from "./useThemeCheck-DGJ31Vi5.js";
9
+ import { u as so } from "./useUserOptionState-BIvW1Kz7.js";
10
+ import { u as uo } from "./useChartAccessibility-9icAAmYg.js";
11
+ import ro from "./img-DUzJeMlr.js";
12
+ import { _ as io } from "./Shape-DE6X_t31.js";
13
+ import co from "./Title-DfFUb9hd.js";
14
+ import vo from "./Legend-Web3GjlR.js";
15
+ import { _ as ho } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { labels: { percentage: { color: "#CCCCCC" }, name: { color: "#CCCCCC" }, hollow: { total: { color: "#CCCCCC", value: { color: "#CCCCCC" } }, average: { color: "#CCCCCC", value: { color: "#CCCCCC" } } } } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Nt = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { labels: { percentage: { color: "#424242" }, name: { color: "#424242" }, hollow: { total: { color: "#424242", value: { color: "#424242" } }, average: { color: "#424242", value: { color: "#424242" } } } } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Yt = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { labels: { percentage: { color: "#BDBDBD" }, name: { color: "#BDBDBD" }, hollow: { total: { color: "#BDBDBD", value: { color: "#BDBDBD" } }, average: { color: "#BDBDBD", value: { color: "#BDBDBD" } } } } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, Xt = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { labels: { percentage: { color: "#61747E" }, name: { color: "#8A9892" }, hollow: { total: { color: "#8A9892", value: { color: "#61747E" } }, average: { color: "#8A9892", value: { color: "#61747E" } } } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Vt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { labels: { percentage: { color: "#AACCAA" }, name: { color: "#99CC99" }, hollow: { total: { color: "#99CC99", value: { color: "#AACCAA" } }, average: { color: "#99CC99", value: { color: "#AACCAA" } } } } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, Rt = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { labels: { percentage: { color: "#A0AC94" }, name: { color: "#8A9892" }, hollow: { total: { color: "#8A9892", value: { color: "#A0AC94" } }, average: { color: "#8A9892", value: { color: "#A0AC94" } } } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, Gt = {
17
+ default: {},
18
+ dark: Et,
19
+ celebration: Nt,
20
+ celebrationNight: Yt,
21
+ concrete: Xt,
22
+ hack: Vt,
23
+ zen: Rt
24
+ }, Wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25
+ __proto__: null,
26
+ celebration: Nt,
27
+ celebrationNight: Yt,
28
+ concrete: Xt,
29
+ dark: Et,
30
+ default: Gt,
31
+ hack: Vt,
32
+ zen: Rt
33
+ }, Symbol.toStringTag, { value: "Module" })), fo = ["id"], yo = ["id"], go = ["xmlns", "viewBox"], po = ["width", "height"], bo = { key: 1 }, mo = ["id"], wo = ["stop-color"], ko = ["offset", "stop-color"], Co = ["offset", "stop-color"], xo = ["stop-color"], Ao = { key: 2 }, _o = ["id", "cx", "cy"], $o = ["stop-color", "stop-opacity"], Fo = ["stop-color"], So = ["id"], To = ["id"], Po = ["id"], Do = ["flood-color"], Io = ["id"], Lo = ["flood-color"], Mo = ["d", "stroke", "filter"], Bo = ["d", "stroke", "filter"], zo = ["cx", "cy", "r", "fill", "filter"], Oo = { key: 6 }, Eo = ["stroke", "d"], No = ["d", "fill", "stroke", "stroke-width", "filter"], Yo = { key: 0 }, Xo = ["d", "fill", "stroke", "stroke-width", "filter"], Vo = { key: 0 }, Ro = ["stroke", "d"], Go = { key: 0 }, Uo = ["d", "stroke", "stroke-width", "filter"], Wo = { key: 1 }, qo = ["d", "fill", "stroke", "stroke-width", "filter"], jo = ["d", "fill", "stroke", "stroke-width", "filter"], Ho = { key: 1 }, Zo = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Jo = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ko = { key: 0 }, Qo = ["d", "fill", "stroke", "stroke-width"], ea = ["cx", "cy", "r", "stroke"], ta = ["cx", "cy", "r", "fill"], la = ["cx", "cy", "r"], oa = { key: 0 }, aa = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], na = { key: 1 }, sa = ["cx", "cy", "r"], ua = ["x", "y", "fill", "font-size"], ra = ["x", "y", "fill", "font-size"], ia = ["x", "y", "fill", "font-size"], ca = ["x", "y", "fill", "font-size"], va = ["filter"], da = { key: 0 }, ha = ["x", "y"], fa = { key: 1 }, ya = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], ga = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], pa = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], ba = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], ma = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], wa = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], ka = { key: 2 }, Ca = ["x", "y", "width"], xa = ["x", "y", "width"], Aa = {
17
34
  key: 4,
18
35
  class: "vue-data-ui-watermark"
19
- }, go = ["id"], po = ["onClick"], mo = {
36
+ }, _a = ["id"], $a = ["onClick"], Fa = {
20
37
  key: 7,
21
38
  class: "vue-ui-donut-hollow"
22
- }, bo = ["innerHTML"], wo = {
39
+ }, Sa = ["innerHTML"], Ta = {
23
40
  __name: "vue-ui-donut",
24
41
  props: {
25
42
  config: {
@@ -36,62 +53,62 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
36
53
  }
37
54
  },
38
55
  emits: ["selectLegend", "selectDatapoint"],
39
- setup(Ze, { expose: Yt, emit: Xt }) {
40
- const Bt = le(() => import("./Tooltip-oWCO1HKy.js")), Vt = le(() => import("./BaseIcon-DLFL0M4-.js")), Et = le(() => import("./vue-ui-accordion-SSLXLlNz.js")), Rt = le(() => import("./DataTable-UCyd_BQI.js")), Gt = le(() => import("./PenAndPaper-BJSMejV9.js")), Ut = le(() => import("./UserOptions-BqmUW9Kp.js")), Wt = le(() => import("./PackageVersion-D_4Hr4S4.js")), qt = le(() => import("./BaseDraggableDialog-DhKIof09.js")), { vue_ui_donut: Ht } = Ul(), jt = _l(), x = Ze, we = f({
56
+ setup(Ke, { expose: Ut, emit: Wt }) {
57
+ const qt = le(() => import("./Tooltip-WD0Ros6G.js")), jt = le(() => import("./BaseIcon-CofSxalQ.js")), Ht = le(() => import("./vue-ui-accordion-DSdZUn2C.js")), Zt = le(() => import("./DataTable-CHaOCmsE.js")), Jt = le(() => import("./PenAndPaper-HCZQTkqi.js")), Kt = le(() => import("./UserOptions-B3I-s3Lw.js")), Qt = le(() => import("./PackageVersion-C82JCJOX.js")), el = le(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_donut: tl } = eo(), { isThemeValid: ll, warnInvalidTheme: ol } = no(), al = Ll(), C = Ke, we = f({
41
58
  get() {
42
- return !!x.dataset && x.dataset.length;
59
+ return !!C.dataset && C.dataset.length;
43
60
  },
44
61
  set(t) {
45
62
  return t;
46
63
  }
47
- }), B = Q(null), ke = p(null), Qt = p(null), Zt = p(null), Je = Q(null), Ke = Q(null), Z = Q(null), ve = Q(null), et = Q(null), tt = Q(null), lt = p(0), at = p(0), ot = p(0), nt = p(!1), pe = p(null), Ie = p(null), xe = f({
64
+ }), Y = Z(null), ke = b(null), nl = b(null), sl = b(null), Qe = Z(null), et = Z(null), J = Z(null), ce = Z(null), tt = Z(null), lt = Z(null), ot = b(0), at = b(0), nt = b(0), st = b(!1), pe = b(null), De = b(null), Ce = f({
48
65
  get: () => e.value.style.chart.layout.labels.percentage.fontSize,
49
66
  set: (t) => t
50
- }), J = f({
67
+ }), K = f({
51
68
  get: () => e.value.style.chart.layout.labels.name.fontSize,
52
69
  set: (t) => t
53
70
  });
54
- let Le = !1;
71
+ let Ie = !1;
55
72
  const q = () => {
56
- !e.value.autoSize || Le || (Le = !0, requestAnimationFrame(() => {
57
- Le = !1;
58
- const t = e.value, a = ke.value, l = oe.value;
73
+ !e.value.autoSize || Ie || (Ie = !0, requestAnimationFrame(() => {
74
+ Ie = !1;
75
+ const t = e.value, a = ke.value, l = ae.value;
59
76
  if (!t.autoSize || !a || !l) return;
60
- const [o, i, c, w] = l.getAttribute("viewBox").split(" ").map(Number), A = { x: o, y: i, width: c, height: w }, O = [
77
+ const [o, i, d, w] = l.getAttribute("viewBox").split(" ").map(Number), $ = { x: o, y: i, width: d, height: w }, B = [
61
78
  {
62
79
  selector: ".vue-data-ui-datalabel-value",
63
80
  baseSize: t.style.chart.layout.labels.percentage.fontSize,
64
81
  minSize: t.style.chart.layout.labels.percentage.minFontSize,
65
- sizeRef: xe
82
+ sizeRef: Ce
66
83
  },
67
84
  {
68
85
  selector: ".vue-data-ui-datalabel-name",
69
86
  baseSize: t.style.chart.layout.labels.name.fontSize,
70
87
  minSize: t.style.chart.layout.labels.name.minFontSize,
71
- sizeRef: J
88
+ sizeRef: K
72
89
  }
73
90
  ];
74
- O.map((G) => a.querySelectorAll(G.selector).length).reduce((G, te) => G + te, 0) !== 0 && O.forEach(({ selector: G, baseSize: te, minSize: Ue, sizeRef: kl }) => {
75
- a.querySelectorAll(G).forEach((xl) => {
76
- const $l = Yl({
77
- el: xl,
78
- bounds: A,
91
+ B.map((G) => a.querySelectorAll(G.selector).length).reduce((G, te) => G + te, 0) !== 0 && B.forEach(({ selector: G, baseSize: te, minSize: Ue, sizeRef: Pl }) => {
92
+ a.querySelectorAll(G).forEach((Dl) => {
93
+ const Il = ql({
94
+ el: Dl,
95
+ bounds: $,
79
96
  currentFontSize: te,
80
97
  minFontSize: Ue,
81
98
  attempts: 200,
82
99
  padding: 1
83
100
  });
84
- kl.value = $l;
101
+ Pl.value = Il;
85
102
  });
86
103
  });
87
104
  }));
88
105
  };
89
106
  Tt(async () => {
90
- nt.value = !0, st(), requestAnimationFrame(q);
107
+ st.value = !0, ut(), requestAnimationFrame(q);
91
108
  });
92
- let Me;
109
+ let Le;
93
110
  Tt(() => {
94
- B.value && (Me = new ResizeObserver((t) => {
111
+ Y.value && (Le = new ResizeObserver((t) => {
95
112
  for (const a of t) {
96
113
  const { width: l, height: o } = a.contentRect;
97
114
  if (l > 0 && o > 0) {
@@ -99,77 +116,87 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
99
116
  break;
100
117
  }
101
118
  }
102
- }), Me.observe(B.value.parentElement));
119
+ }), Le.observe(Y.value.parentElement));
103
120
  }), Pt(() => {
104
- Me?.disconnect();
121
+ Le?.disconnect();
105
122
  }), Pt(() => {
106
- Z.value && (ve.value && Z.value.unobserve(ve.value), Z.value.disconnect());
123
+ J.value && (ce.value && J.value.unobserve(ce.value), J.value.disconnect());
107
124
  });
108
- const ze = f(() => !!e.value.debug);
109
- function st() {
110
- if (Lt(x.dataset) ? (je({
125
+ const Me = f(() => !!e.value.debug);
126
+ function ut() {
127
+ if (Lt(C.dataset) ? (He({
111
128
  componentName: "VueUiDonut",
112
129
  type: "dataset",
113
- debug: ze.value
114
- }), we.value = !1, _e.value = !0) : (x.dataset.forEach((t, a) => {
115
- Pl({
130
+ debug: Me.value
131
+ }), we.value = !1, Ae.value = !0) : (C.dataset.forEach((t, a) => {
132
+ El({
116
133
  datasetObject: t,
117
134
  requiredAttributes: ["name", "values"]
118
135
  }).forEach((l) => {
119
- je({
136
+ He({
120
137
  componentName: "VueUiDonut",
121
138
  type: "datasetSerieAttribute",
122
139
  property: l,
123
140
  index: a,
124
- debug: ze.value
125
- }), we.value = !1, _e.value = !0;
141
+ debug: Me.value
142
+ }), we.value = !1, Ae.value = !0;
126
143
  });
127
- }), x.dataset.forEach((t, a) => {
128
- (!t.name || t.name === "") && je({
144
+ }), C.dataset.forEach((t, a) => {
145
+ (!t.name || t.name === "") && He({
129
146
  componentName: "VueUiDonut",
130
147
  type: "datasetAttributeEmpty",
131
148
  property: "name",
132
149
  index: a,
133
- debug: ze.value
150
+ debug: Me.value
134
151
  });
135
- })), Lt(x.dataset) || (_e.value = e.value.loading), e.value.responsive) {
136
- const t = Rl(() => {
137
- const { width: a, height: l } = Gl({
138
- chart: B.value,
139
- title: e.value.style.chart.title.text ? Je.value : null,
140
- legend: e.value.style.chart.legend.show ? Ke.value : null,
141
- source: et.value,
142
- noTitle: tt.value,
152
+ })), Lt(C.dataset) || (Ae.value = e.value.loading), e.value.responsive) {
153
+ const t = Kl(() => {
154
+ const { width: a, height: l } = Ql({
155
+ chart: Y.value,
156
+ title: e.value.style.chart.title.text ? Qe.value : null,
157
+ legend: e.value.style.chart.legend.show ? et.value : null,
158
+ source: tt.value,
159
+ noTitle: lt.value,
143
160
  padding: e.value.autoSize ? void 0 : dt.value
144
161
  });
145
162
  requestAnimationFrame(() => {
146
163
  n.value.width = a, n.value.height = l, q();
147
164
  });
148
165
  });
149
- Z.value && (ve.value && Z.value.unobserve(ve.value), Z.value.disconnect()), Z.value = new ResizeObserver(t), ve.value = B.value.parentNode, Z.value.observe(ve.value);
166
+ J.value && (ce.value && J.value.unobserve(ce.value), J.value.disconnect()), J.value = new ResizeObserver(t), ce.value = Y.value.parentNode, J.value.observe(ce.value);
150
167
  }
151
168
  }
152
- const g = p(Fl());
153
- p(null);
154
- const Oe = p(!1), De = p(""), V = p(null), ut = p(0);
155
- function Ne() {
156
- const t = Nt({
157
- userConfig: x.config,
158
- defaultConfig: Ht
169
+ const g = b(Nl()), Be = b(!1), ze = b(""), X = b(null), rt = b(0);
170
+ function Oe() {
171
+ const t = Je({
172
+ userConfig: C.config,
173
+ defaultConfig: tl
159
174
  });
160
175
  let a = {};
161
- return t.theme ? a = {
162
- ...Nt({
163
- userConfig: ta.vue_ui_donut[t.theme] || x.config,
176
+ const l = t.theme;
177
+ if (!l)
178
+ a = t;
179
+ else if (!ll.value(t))
180
+ ol(t), a = t;
181
+ else {
182
+ const o = Je({
183
+ userConfig: Gt[l] || C.config,
164
184
  defaultConfig: t
165
- }),
166
- customPalette: Xl[t.theme] || ie
167
- } : a = t, x.config && Qe(x.config, "events.datapointEnter") ? a.events.datapointEnter = x.config.events.datapointEnter : a.events.datapointEnter = null, x.config && Qe(x.config, "events.datapointLeave") ? a.events.datapointLeave = x.config.events.datapointLeave : a.events.datapointLeave = null, x.config && Qe(x.config, "events.datapointClick") ? a.events.datapointClick = x.config.events.datapointClick : a.events.datapointClick = null, a;
185
+ });
186
+ a = {
187
+ ...Je({
188
+ userConfig: C.config,
189
+ defaultConfig: o
190
+ }),
191
+ customPalette: t.customPalette.length ? t.customPalette : jl[l] || ie
192
+ };
193
+ }
194
+ return C.config && Ze(C.config, "events.datapointEnter") ? a.events.datapointEnter = C.config.events.datapointEnter : a.events.datapointEnter = null, C.config && Ze(C.config, "events.datapointLeave") ? a.events.datapointLeave = C.config.events.datapointLeave : a.events.datapointLeave = null, C.config && Ze(C.config, "events.datapointClick") ? a.events.datapointClick = C.config.events.datapointClick : a.events.datapointClick = null, a;
168
195
  }
169
- const e = p(Ne()), { loading: $e, FINAL_DATASET: de, manualLoading: _e, skeletonDataset: Jt } = ql({
170
- ...Cl(x),
196
+ const e = b(Oe()), { loading: xe, FINAL_DATASET: ve, manualLoading: Ae, skeletonDataset: ul } = lo({
197
+ ...Ml(C),
171
198
  FINAL_CONFIG: e,
172
- prepareConfig: Ne,
199
+ prepareConfig: Oe,
173
200
  skeletonDataset: [
174
201
  {
175
202
  name: "",
@@ -187,7 +214,7 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
187
214
  color: "#CACACA"
188
215
  }
189
216
  ],
190
- skeletonConfig: Il({
217
+ skeletonConfig: Yl({
191
218
  defaultConfig: e.value,
192
219
  userConfig: {
193
220
  useCssAnimation: !1,
@@ -224,54 +251,54 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
224
251
  }
225
252
  }
226
253
  })
227
- }), S = p(!0), H = Q([]);
228
- function Kt(t, a = 1e3, l = 50) {
254
+ }), F = b(!0), j = Z([]);
255
+ function rl(t, a = 1e3, l = 50) {
229
256
  return new Promise((o) => {
230
257
  const i = t.length;
231
- H.value = Array(i).fill(0);
232
- let c = 0;
233
- t.forEach((w, A) => {
258
+ j.value = Array(i).fill(0);
259
+ let d = 0;
260
+ t.forEach((w, $) => {
234
261
  setTimeout(() => {
235
- const O = performance.now();
236
- function D(G) {
237
- const te = Math.min((G - O) / a, 1), Ue = Dt(te);
238
- H.value[A] = w * Ue, H.value = [...H.value], te < 1 ? (requestAnimationFrame(D), requestAnimationFrame(q)) : (H.value[A] = w, H.value = [...H.value], c += 1, c === i && o(), requestAnimationFrame(q));
262
+ const B = performance.now();
263
+ function z(G) {
264
+ const te = Math.min((G - B) / a, 1), Ue = Ot(te);
265
+ j.value[$] = w * Ue, j.value = [...j.value], te < 1 ? (requestAnimationFrame(z), requestAnimationFrame(q)) : (j.value[$] = w, j.value = [...j.value], d += 1, d === i && o(), requestAnimationFrame(q));
239
266
  }
240
- requestAnimationFrame(D);
241
- }, A * l);
267
+ requestAnimationFrame(z);
268
+ }, $ * l);
242
269
  });
243
270
  });
244
271
  }
245
- const rt = p(!1);
272
+ const it = b(!1);
246
273
  ye(
247
- () => $e.value,
274
+ () => xe.value,
248
275
  async (t) => {
249
- if (t || rt.value) return;
250
- const a = de.value === Jt, l = e.value.startAnimation?.show;
276
+ if (t || it.value) return;
277
+ const a = ve.value === ul, l = e.value.startAnimation?.show;
251
278
  if (!a && l) {
252
- rt.value = !0;
253
- const o = de.value.map(
254
- (i) => i.values.reduce((c, w) => c + w, 0)
279
+ it.value = !0;
280
+ const o = ve.value.map(
281
+ (i) => i.values.reduce((d, w) => d + w, 0)
255
282
  );
256
- await Kt(
283
+ await rl(
257
284
  o,
258
285
  e.value.startAnimation.durationMs,
259
286
  e.value.startAnimation.staggerMs
260
287
  );
261
288
  }
262
- S.value = !1;
289
+ F.value = !1;
263
290
  },
264
291
  { immediate: !0 }
265
292
  );
266
- const { userOptionsVisible: Ye, setUserOptionsVisibility: it, keepUserOptionState: vt } = Ql({ config: e.value }), { svgRef: oe } = Zl({ config: e.value.style.chart.title });
267
- function el() {
268
- it(!0);
293
+ const { userOptionsVisible: Ee, setUserOptionsVisibility: ct, keepUserOptionState: vt } = so({ config: e.value }), { svgRef: ae } = uo({ config: e.value.style.chart.title });
294
+ function il() {
295
+ ct(!0);
269
296
  }
270
- function tl() {
271
- it(!1);
297
+ function cl() {
298
+ ct(!1);
272
299
  }
273
- ye(() => x.config, (t) => {
274
- $e.value || (e.value = Ne()), Ye.value = !e.value.userOptions.showOnChartHover, st(), lt.value += 1, at.value += 1, ot.value += 1, m.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show, n.value.height = e.value.style.chart.height, n.value.width = e.value.style.chart.width;
300
+ ye(() => C.config, (t) => {
301
+ xe.value || (e.value = Oe()), Ee.value = !e.value.userOptions.showOnChartHover, ut(), ot.value += 1, at.value += 1, nt.value += 1, p.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show, n.value.height = e.value.style.chart.height, n.value.width = e.value.style.chart.width;
275
302
  }, { deep: !0 });
276
303
  const dt = f(() => {
277
304
  const { top: t, right: a, bottom: l, left: o } = e.value.style.chart.padding;
@@ -282,11 +309,11 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
282
309
  bottom: l,
283
310
  left: o
284
311
  };
285
- }), { isPrinting: ct, isImaging: ht, generatePdf: ft, generateImage: yt } = Wl({
312
+ }), { isPrinting: ht, isImaging: ft, generatePdf: yt, generateImage: gt } = to({
286
313
  elementId: `donut__${g.value}`,
287
314
  fileName: e.value.style.chart.title.text || "vue-ui-donut",
288
315
  options: e.value.userOptions.print
289
- }), ll = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), gt = f(() => Ll(e.value.customPalette)), m = p({
316
+ }), vl = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), pt = f(() => Xl(e.value.customPalette)), p = b({
290
317
  dataLabels: {
291
318
  show: e.value.style.chart.layout.labels.dataLabels.show
292
319
  },
@@ -294,7 +321,7 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
294
321
  showTooltip: e.value.style.chart.tooltip.show
295
322
  });
296
323
  ye(e, () => {
297
- m.value = {
324
+ p.value = {
298
325
  dataLabels: {
299
326
  show: e.value.style.chart.layout.labels.dataLabels.show
300
327
  },
@@ -302,18 +329,18 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
302
329
  showTooltip: e.value.style.chart.tooltip.show
303
330
  };
304
331
  }, { immediate: !0 });
305
- const n = p({
332
+ const n = b({
306
333
  height: e.value.style.chart.height,
307
334
  width: e.value.style.chart.width
308
335
  }), ne = f(() => {
309
336
  if (e.value.pie)
310
- return _.value;
311
- const t = e.value.style.chart.layout.donut.strokeWidth / 512, a = Math.min(n.value.width, n.value.height) * t, l = a > _.value ? _.value : a;
337
+ return A.value;
338
+ const t = e.value.style.chart.layout.donut.strokeWidth / 512, a = Math.min(n.value.width, n.value.height) * t, l = a > A.value ? A.value : a;
312
339
  return Math.max(l, 12 * (1 + t));
313
- }), pt = Xt, L = f(() => de.value.map((t, a) => ({
340
+ }), bt = Wt, I = f(() => ve.value.map((t, a) => ({
314
341
  name: t.name,
315
- color: Mt(t.color) || gt.value[a] || ie[a] || ie[a % ie.length],
316
- value: Ml(t.values.reduce((l, o) => l + o, 0)),
342
+ color: Mt(t.color) || pt.value[a] || ie[a] || ie[a % ie.length],
343
+ value: Vl(t.values.reduce((l, o) => l + o, 0)),
317
344
  absoluteValues: t.values,
318
345
  comment: t.comment || "",
319
346
  patternIndex: a,
@@ -321,68 +348,68 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
321
348
  ghost: !1,
322
349
  pattern: `pattern_${g.value}_${a}`
323
350
  })));
324
- ye(() => x.dataset, (t) => {
325
- Array.isArray(t) && t.length > 0 && (_e.value = !1);
351
+ ye(() => C.dataset, (t) => {
352
+ Array.isArray(t) && t.length > 0 && (Ae.value = !1);
326
353
  }, { immediate: !0 });
327
- const M = Q(L.value);
328
- ye(() => L.value, (t) => {
329
- M.value = t, requestAnimationFrame(q);
354
+ const L = Z(I.value);
355
+ ye(() => I.value, (t) => {
356
+ L.value = t, requestAnimationFrame(q);
330
357
  });
331
- function al() {
332
- return L.value.map((t) => ({
358
+ function dl() {
359
+ return I.value.map((t) => ({
333
360
  name: t.name,
334
361
  color: t.color,
335
362
  value: t.value
336
363
  }));
337
364
  }
338
- const z = p([]), se = p(!1);
339
- function mt({ from: t, to: a, duration: l, onUpdate: o, onDone: i, easing: c = Dt }) {
365
+ const M = b([]), se = b(!1);
366
+ function mt({ from: t, to: a, duration: l, onUpdate: o, onDone: i, easing: d = Ot }) {
340
367
  const w = performance.now();
341
- function A(O) {
342
- const D = Math.min((O - w) / l, 1), G = c(D), te = t + (a - t) * G;
343
- o(te, D), D < 1 ? requestAnimationFrame(A) : (o(a, 1), i && i());
368
+ function $(B) {
369
+ const z = Math.min((B - w) / l, 1), G = d(z), te = t + (a - t) * G;
370
+ o(te, z), z < 1 ? requestAnimationFrame($) : (o(a, 1), i && i());
344
371
  }
345
- requestAnimationFrame(A);
372
+ requestAnimationFrame($);
346
373
  }
347
- function Ce(t) {
348
- const a = L.value.find((i, c) => c === t);
349
- let o = M.value.find((i, c) => c === t).value;
350
- if (z.value.includes(t)) {
351
- let c = function() {
352
- M.value = M.value.map(
353
- (A, O) => t === O ? { ...A, value: i } : A
374
+ function _e(t) {
375
+ const a = I.value.find((i, d) => d === t);
376
+ let o = L.value.find((i, d) => d === t).value;
377
+ if (M.value.includes(t)) {
378
+ let d = function() {
379
+ L.value = L.value.map(
380
+ ($, B) => t === B ? { ...$, value: i } : $
354
381
  );
355
382
  }, w = function() {
356
383
  se.value = !0, mt({
357
384
  from: o,
358
385
  to: i,
359
386
  duration: e.value.serieToggleAnimation.durationMs,
360
- onUpdate: (A, O) => {
361
- M.value = M.value.map(
362
- (D, G) => t === G ? { ...D, value: A } : D
387
+ onUpdate: ($, B) => {
388
+ L.value = L.value.map(
389
+ (z, G) => t === G ? { ...z, value: $ } : z
363
390
  ), requestAnimationFrame(q);
364
391
  },
365
392
  onDone: () => {
366
- c(), se.value = !1;
393
+ d(), se.value = !1;
367
394
  }
368
395
  });
369
396
  };
370
- z.value = z.value.filter((A) => A !== t);
397
+ M.value = M.value.filter(($) => $ !== t);
371
398
  const i = a.value;
372
- e.value.serieToggleAnimation.show && e.value.type === "classic" ? w() : (c(), requestAnimationFrame(q));
373
- } else if (z.value.length < L.value.length - 1) {
399
+ e.value.serieToggleAnimation.show && e.value.type === "classic" ? w() : (d(), requestAnimationFrame(q));
400
+ } else if (M.value.length < I.value.length - 1) {
374
401
  let i = function() {
375
- z.value.push(t), M.value = M.value.map(
376
- (w, A) => t === A ? { ...w, value: 0 } : w
402
+ M.value.push(t), L.value = L.value.map(
403
+ (w, $) => t === $ ? { ...w, value: 0 } : w
377
404
  );
378
- }, c = function() {
405
+ }, d = function() {
379
406
  se.value = !0, mt({
380
407
  from: o,
381
408
  to: 0,
382
409
  duration: e.value.serieToggleAnimation.durationMs,
383
- onUpdate: (w, A) => {
384
- M.value = M.value.map(
385
- (O, D) => t === D ? { ...O, value: w } : O
410
+ onUpdate: (w, $) => {
411
+ L.value = L.value.map(
412
+ (B, z) => t === z ? { ...B, value: w } : B
386
413
  ), requestAnimationFrame(q);
387
414
  },
388
415
  onDone: () => {
@@ -390,36 +417,36 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
390
417
  }
391
418
  });
392
419
  };
393
- e.value.serieToggleAnimation.show && e.value.type === "classic" ? c() : i();
420
+ e.value.serieToggleAnimation.show && e.value.type === "classic" ? d() : i();
394
421
  }
395
- pt("selectLegend", j.value.map((i) => ({
422
+ bt("selectLegend", H.value.map((i) => ({
396
423
  name: i.name,
397
424
  color: i.color,
398
425
  value: i.value
399
426
  })));
400
427
  }
401
- function bt(t) {
402
- if (!L.value.length)
428
+ function wt(t) {
429
+ if (!I.value.length)
403
430
  return e.value.debug && console.warn("VueUiDonut - There are no series to show."), null;
404
- const a = L.value.find((l) => l.name === t);
431
+ const a = I.value.find((l) => l.name === t);
405
432
  return a || (e.value.debug && console.warn(`VueUiDonut - Series name not found "${t}"`), null);
406
433
  }
407
- function ol(t) {
408
- const a = bt(t);
409
- a !== null && z.value.includes(a.seriesIndex) && Ce(a.seriesIndex);
434
+ function hl(t) {
435
+ const a = wt(t);
436
+ a !== null && M.value.includes(a.seriesIndex) && _e(a.seriesIndex);
410
437
  }
411
- function nl(t) {
412
- const a = bt(t);
413
- a !== null && (z.value.includes(a.seriesIndex) || Ce(a.seriesIndex));
438
+ function fl(t) {
439
+ const a = wt(t);
440
+ a !== null && (M.value.includes(a.seriesIndex) || _e(a.seriesIndex));
414
441
  }
415
- const sl = f(() => de.value.reduce((t, a) => t + a.values.reduce((l, o) => l + o, 0), 0)), j = f(() => {
416
- if (S.value && !$e.value) {
417
- const t = H.value.map((l, o) => ({
418
- ...L.value[o],
442
+ const yl = f(() => ve.value.reduce((t, a) => t + a.values.reduce((l, o) => l + o, 0), 0)), H = f(() => {
443
+ if (F.value && !xe.value) {
444
+ const t = j.value.map((l, o) => ({
445
+ ...I.value[o],
419
446
  value: l,
420
- color: L.value[o].color,
447
+ color: I.value[o].color,
421
448
  ghost: !1
422
- })), a = sl.value - H.value.reduce((l, o) => l + o, 0);
449
+ })), a = yl.value - j.value.reduce((l, o) => l + o, 0);
423
450
  return a > 0 && t.push({
424
451
  name: "__ghost__",
425
452
  value: a,
@@ -427,21 +454,21 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
427
454
  ghost: !0
428
455
  }), t;
429
456
  } else
430
- return M.value.forEach((t, a) => {
457
+ return L.value.forEach((t, a) => {
431
458
  if ([null, void 0].includes(t.values))
432
459
  return {
433
460
  ...t,
434
461
  values: []
435
462
  };
436
- }), M.value.map((t, a) => ({
463
+ }), L.value.map((t, a) => ({
437
464
  ...t,
438
465
  seriesIndex: a
439
- })).filter((t, a) => !z.value.includes(a));
440
- }), Xe = f(() => de.value.map((t, a) => {
441
- const l = (t.values || []).reduce((i, c) => i + c, 0), o = l / de.value.map((i) => (i.values || []).reduce((c, w) => c + w, 0)).reduce((i, c) => i + c, 0);
466
+ })).filter((t, a) => !M.value.includes(a));
467
+ }), Ne = f(() => ve.value.map((t, a) => {
468
+ const l = (t.values || []).reduce((i, d) => i + d, 0), o = l / ve.value.map((i) => (i.values || []).reduce((d, w) => d + w, 0)).reduce((i, d) => i + d, 0);
442
469
  return {
443
470
  name: t.name,
444
- color: Mt(t.color) || gt.value[a] || ie[a] || ie[a % ie.length],
471
+ color: Mt(t.color) || pt.value[a] || ie[a] || ie[a % ie.length],
445
472
  value: l,
446
473
  shape: "circle",
447
474
  patternIndex: a,
@@ -449,30 +476,30 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
449
476
  };
450
477
  }).map((t, a) => ({
451
478
  ...t,
452
- opacity: z.value.includes(a) ? 0.5 : 1,
453
- segregate: () => !se.value && Ce(a),
454
- isSegregated: z.value.includes(a),
455
- display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? W(e.value.style.chart.layout.labels.value.formatter, t.value, X({
479
+ opacity: M.value.includes(a) ? 0.5 : 1,
480
+ segregate: () => !se.value && _e(a),
481
+ isSegregated: M.value.includes(a),
482
+ display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? W(e.value.style.chart.layout.labels.value.formatter, t.value, N({
456
483
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
457
484
  v: t.value,
458
485
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
459
486
  r: e.value.style.chart.legend.roundingValue
460
- }), { datapoint: t, index: a }) : ""}${e.value.style.chart.legend.showPercentage ? z.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${cl(t.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / F.value) ? "-" : W(e.value.style.chart.layout.labels.percentage.formatter, wt(t), X({
461
- v: wt(t),
487
+ }), { datapoint: t, index: a }) : ""}${e.value.style.chart.legend.showPercentage ? M.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${kl(t.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / P.value) ? "-" : W(e.value.style.chart.layout.labels.percentage.formatter, kt(t), N({
488
+ v: kt(t),
462
489
  s: "%",
463
490
  r: e.value.style.chart.legend.roundingPercentage
464
491
  }))}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
465
- }))), ul = f(() => ({
492
+ }))), gl = f(() => ({
466
493
  cy: "donut-div-legend",
467
494
  backgroundColor: e.value.style.chart.legend.backgroundColor,
468
495
  color: e.value.style.chart.legend.color,
469
496
  fontSize: e.value.style.chart.legend.fontSize,
470
497
  paddingBottom: 12,
471
498
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
472
- })), _ = f(() => {
499
+ })), A = f(() => {
473
500
  const t = e.value.style.chart.layout.donut.radiusRatio, a = Math.max(0.1, Math.min(0.50001, t)), l = Math.min(n.value.width * a, n.value.height * a);
474
501
  return Math.max(12, l);
475
- }), T = f(() => zt({ series: j.value }, n.value.width / 2, n.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, ne.value)), rl = f(() => Math.abs(j.value.map((t) => t.value).reduce((t, a) => t + a, 0)) > 0), il = f(() => zt({
502
+ }), S = f(() => Bt({ series: H.value }, n.value.width / 2, n.value.height / 2, A.value, A.value, 1.99999, 2, 1, 360, 105.25, ne.value)), pl = f(() => Math.abs(H.value.map((t) => t.value).reduce((t, a) => t + a, 0)) > 0), bl = f(() => Bt({
476
503
  series: [
477
504
  {
478
505
  value: 1,
@@ -484,33 +511,33 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
484
511
  absoluteValues: [1]
485
512
  }
486
513
  ]
487
- }, n.value.width / 2, n.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, ne.value)), E = f(() => T.value.filter((t) => !t.ghost)), d = f(() => {
488
- const t = Math.max(...j.value.map((l) => l.value)), a = j.value.map((l) => l.value / t);
489
- return zl({
514
+ }, n.value.width / 2, n.value.height / 2, A.value, A.value, 1.99999, 2, 1, 360, 105.25, ne.value)), V = f(() => S.value.filter((t) => !t.ghost)), v = f(() => {
515
+ const t = Math.max(...H.value.map((l) => l.value)), a = H.value.map((l) => l.value / t);
516
+ return Rl({
490
517
  series: a,
491
518
  center: {
492
519
  x: n.value.width / 2,
493
520
  y: n.value.height / 2
494
521
  },
495
522
  maxRadius: Math.min(n.value.width, n.value.height) / 3,
496
- hasGhost: S.value
523
+ hasGhost: F.value
497
524
  });
498
525
  });
499
- function ce(t) {
526
+ function de(t) {
500
527
  return t.x > n.value.width / 2 + 6 ? "start" : t.x < n.value.width / 2 - 6 ? "end" : "middle";
501
528
  }
502
- function vl(t) {
503
- return t.middlePoint.y > n.value.height / 2 ? P({ initX: t.middlePoint.x, initY: t.middlePoint.y, offset: 100, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y : P({ initX: t.middlePoint.x, initY: t.middlePoint.y, offset: 0, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y - 100;
529
+ function ml(t) {
530
+ return t.middlePoint.y > n.value.height / 2 ? T({ initX: t.middlePoint.x, initY: t.middlePoint.y, offset: 100, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y : T({ initX: t.middlePoint.x, initY: t.middlePoint.y, offset: 0, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y - 100;
504
531
  }
505
532
  function R(t) {
506
533
  return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
507
534
  }
508
- function Be(t, a) {
509
- const l = t.value / dl(a);
535
+ function Ye(t, a) {
536
+ const l = t.value / wl(a);
510
537
  return isNaN(l) ? 0 : W(
511
538
  e.value.style.chart.layout.labels.percentage.formatter,
512
539
  l * 100,
513
- X({
540
+ N({
514
541
  v: l * 100,
515
542
  s: "%",
516
543
  r: e.value.style.chart.layout.labels.percentage.rounding
@@ -518,38 +545,38 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
518
545
  { datapoint: t }
519
546
  );
520
547
  }
521
- function dl(t) {
548
+ function wl(t) {
522
549
  return [...t].map((a) => a.value).reduce((a, l) => a + l, 0);
523
550
  }
524
- const F = f(() => j.value.map((t) => t.value).reduce((t, a) => t + a, 0)), Ve = f(() => F.value / j.value.length);
525
- function wt(t) {
526
- return se.value ? t.proportion * 100 : t.value / F.value * 100;
551
+ const P = f(() => H.value.map((t) => t.value).reduce((t, a) => t + a, 0)), Xe = f(() => P.value / H.value.length);
552
+ function kt(t) {
553
+ return se.value ? t.proportion * 100 : t.value / P.value * 100;
527
554
  }
528
- const Ee = p(null), me = p(!1);
555
+ const Ve = b(null), be = b(!1);
529
556
  function he({ datapoint: t, seriesIndex: a }) {
530
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), Oe.value = !1, V.value = null;
557
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), Be.value = !1, X.value = null;
531
558
  }
532
559
  function fe({ datapoint: t, relativeIndex: a, seriesIndex: l, show: o = !1 }) {
533
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), Ee.value = { datapoint: t, seriesIndex: l, config: e.value, series: L.value }, Oe.value = o, V.value = a;
560
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), Ve.value = { datapoint: t, seriesIndex: l, config: e.value, series: I.value }, Be.value = o, X.value = a;
534
561
  let i = "";
535
- const c = e.value.style.chart.tooltip.customFormat;
536
- if (me.value = !1, El(c))
562
+ const d = e.value.style.chart.tooltip.customFormat;
563
+ if (be.value = !1, Jl(d))
537
564
  try {
538
- const w = c({
565
+ const w = d({
539
566
  seriesIndex: l,
540
567
  datapoint: t,
541
- series: L.value,
568
+ series: I.value,
542
569
  config: e.value
543
570
  });
544
- typeof w == "string" && (De.value = w, me.value = !0);
571
+ typeof w == "string" && (ze.value = w, be.value = !0);
545
572
  } catch {
546
- console.warn("Custom format cannot be applied."), me.value = !1;
573
+ console.warn("Custom format cannot be applied."), be.value = !1;
547
574
  }
548
- if (!me.value) {
549
- if (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${t.color}"/>${jt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${g.value}_${l})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (i += `<b>${W(
575
+ if (!be.value) {
576
+ if (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${t.color}"/>${al.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${g.value}_${l})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (i += `<b>${W(
550
577
  e.value.style.chart.layout.labels.value.formatter,
551
578
  t.value,
552
- X({
579
+ N({
553
580
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
554
581
  v: t.value,
555
582
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -564,7 +591,7 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
564
591
  const w = W(
565
592
  e.value.style.chart.layout.labels.percentage.formatter,
566
593
  t.proportion * 100,
567
- X({
594
+ N({
568
595
  v: t.proportion * 100,
569
596
  s: "%",
570
597
  r: e.value.style.chart.tooltip.roundingPercentage
@@ -577,39 +604,39 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
577
604
  );
578
605
  e.value.style.chart.tooltip.showValue ? i += `<span>(${w})</span></div>` : i += `<b>${w}</b></div>`;
579
606
  }
580
- e.value.style.chart.comments.showInTooltip && t.comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${t.color}">${t.comment}</div>`), De.value = `<div>${i}</div>`;
607
+ e.value.style.chart.comments.showInTooltip && t.comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${t.color}">${t.comment}</div>`), ze.value = `<div>${i}</div>`;
581
608
  }
582
609
  }
583
610
  function ue(t) {
584
- return e.value.useBlurOnHover && ![null, void 0].includes(V.value) && V.value !== t ? `url(#blur_${g.value})` : "";
611
+ return e.value.useBlurOnHover && ![null, void 0].includes(X.value) && X.value !== t ? `url(#blur_${g.value})` : "";
585
612
  }
586
- const K = f(() => {
587
- const t = j.value.map((l) => ({
613
+ const Q = f(() => {
614
+ const t = H.value.map((l) => ({
588
615
  name: l.name,
589
616
  color: l.color
590
- })), a = j.value.map((l) => l.value);
617
+ })), a = H.value.map((l) => l.value);
591
618
  return { head: t, body: a };
592
619
  });
593
620
  function Re(t = null) {
594
- Tl(() => {
595
- const a = K.value.head.map((i, c) => [[
621
+ Ol(() => {
622
+ const a = Q.value.head.map((i, d) => [[
596
623
  i.name
597
- ], [K.value.body[c]], [isNaN(K.value.body[c] / F.value) ? "-" : K.value.body[c] / F.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Bl(l);
598
- t ? t(o) : Vl({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-donut" });
624
+ ], [Q.value.body[d]], [isNaN(Q.value.body[d] / P.value) ? "-" : Q.value.body[d] / P.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Hl(l);
625
+ t ? t(o) : Zl({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-donut" });
599
626
  });
600
627
  }
601
- const Ae = f(() => {
628
+ const $e = f(() => {
602
629
  const t = [
603
630
  ' <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>',
604
- X({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: F.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
631
+ N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: P.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
605
632
  "100%"
606
- ], a = K.value.head.map((i, c) => [
633
+ ], a = Q.value.head.map((i, d) => [
607
634
  {
608
635
  color: i.color,
609
636
  name: i.name || "-"
610
637
  },
611
- K.value.body[c],
612
- isNaN(K.value.body[c] / F.value) ? "-" : (K.value.body[c] / F.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
638
+ Q.value.body[d],
639
+ isNaN(Q.value.body[d] / P.value) ? "-" : (Q.value.body[d] / P.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
613
640
  ]), l = {
614
641
  th: {
615
642
  backgroundColor: e.value.table.th.backgroundColor,
@@ -633,51 +660,51 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
633
660
  body: a,
634
661
  config: l
635
662
  };
636
- }), re = p(!1);
637
- function kt(t) {
638
- re.value = t, ut.value += 1;
663
+ }), re = b(!1);
664
+ function Ct(t) {
665
+ re.value = t, rt.value += 1;
639
666
  }
640
667
  const xt = f(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
641
- function cl(t) {
668
+ function kl(t) {
642
669
  return t.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((a) => "-").join("");
643
670
  }
644
671
  function ee(t, a) {
645
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.seriesIndex }), pt("selectDatapoint", { datapoint: t, index: a });
672
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.seriesIndex }), bt("selectDatapoint", { datapoint: t, index: a });
646
673
  }
647
- function $t() {
648
- m.value.showTable = !m.value.showTable;
674
+ function At() {
675
+ p.value.showTable = !p.value.showTable;
649
676
  }
650
677
  function _t() {
651
- m.value.dataLabels.show = !m.value.dataLabels.show;
678
+ p.value.dataLabels.show = !p.value.dataLabels.show;
652
679
  }
653
- function Ct() {
654
- m.value.showTooltip = !m.value.showTooltip;
680
+ function $t() {
681
+ p.value.showTooltip = !p.value.showTooltip;
655
682
  }
656
- const Se = p(!1);
683
+ const Fe = b(!1);
657
684
  function Ge() {
658
- Se.value = !Se.value;
685
+ Fe.value = !Fe.value;
659
686
  }
660
- async function hl({ scale: t = 2 } = {}) {
661
- if (!B.value) return;
662
- const { width: a, height: l } = B.value.getBoundingClientRect(), o = a / l, { imageUri: i, base64: c } = await Jl({ domElement: B.value, base64: !0, img: !0, scale: t });
687
+ async function Cl({ scale: t = 2 } = {}) {
688
+ if (!Y.value) return;
689
+ const { width: a, height: l } = Y.value.getBoundingClientRect(), o = a / l, { imageUri: i, base64: d } = await ro({ domElement: Y.value, base64: !0, img: !0, scale: t });
663
690
  return {
664
691
  imageUri: i,
665
- base64: c,
692
+ base64: d,
666
693
  title: e.value.style.chart.title.text,
667
694
  width: a,
668
695
  height: l,
669
696
  aspectRatio: o
670
697
  };
671
698
  }
672
- function fl() {
699
+ function xl() {
673
700
  if (!ke.value) return;
674
701
  const { x: t, y: a, width: l, height: o } = ke.value.getBBox();
675
- oe.value && oe.value.setAttribute("viewBox", `${t} ${a} ${l + Math.min(0, t)} ${o + Math.min(0, a)}`);
702
+ ae.value && ae.value.setAttribute("viewBox", `${t} ${a} ${l + Math.min(0, t)} ${o + Math.min(0, a)}`);
676
703
  }
677
- const be = f(() => {
678
- const t = e.value.table.useDialog && !e.value.table.show, a = m.value.showTable;
704
+ const me = f(() => {
705
+ const t = e.value.table.useDialog && !e.value.table.show, a = p.value.showTable;
679
706
  return {
680
- component: t ? qt : Et,
707
+ component: t ? el : Ht,
681
708
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
682
709
  props: t ? {
683
710
  backgroundColor: e.value.table.th.backgroundColor,
@@ -685,7 +712,7 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
685
712
  headerColor: e.value.table.th.color,
686
713
  headerBg: e.value.table.th.backgroundColor,
687
714
  isFullscreen: re.value,
688
- fullscreenParent: B.value,
715
+ fullscreenParent: Y.value,
689
716
  forcedWidth: Math.min(500, window.innerWidth * 0.8)
690
717
  } : {
691
718
  hideDetails: !0,
@@ -704,97 +731,97 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
704
731
  }
705
732
  };
706
733
  });
707
- ye(() => m.value.showTable, (t) => {
734
+ ye(() => p.value.showTable, (t) => {
708
735
  e.value.table.show || (t && e.value.table.useDialog && pe.value ? pe.value.open() : "close" in pe.value && pe.value.close());
709
736
  });
710
- function At() {
711
- m.value.showTable = !1, Ie.value && Ie.value.setTableIconState(!1);
737
+ function Ft() {
738
+ p.value.showTable = !1, De.value && De.value.setTableIconState(!1);
712
739
  }
713
- const yl = f(() => Xe.value.map((t) => ({
740
+ const Al = f(() => Ne.value.map((t) => ({
714
741
  ...t,
715
742
  name: t.display
716
- }))), gl = f(() => e.value.style.chart.backgroundColor), pl = f(() => e.value.style.chart.legend), ml = f(() => e.value.style.chart.title), { exportSvg: bl, getSvg: wl } = jl({
717
- svg: oe,
718
- title: ml,
719
- legend: pl,
720
- legendItems: yl,
721
- backgroundColor: gl
743
+ }))), _l = f(() => e.value.style.chart.backgroundColor), $l = f(() => e.value.style.chart.legend), Fl = f(() => e.value.style.chart.title), { exportSvg: Sl, getSvg: Tl } = ao({
744
+ svg: ae,
745
+ title: Fl,
746
+ legend: $l,
747
+ legendItems: Al,
748
+ backgroundColor: _l
722
749
  });
723
750
  async function St({ isCb: t }) {
724
751
  if (t) {
725
- const { blob: a, url: l, text: o, dataUrl: i } = await wl();
752
+ const { blob: a, url: l, text: o, dataUrl: i } = await Tl();
726
753
  e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl: i });
727
754
  } else
728
- bl();
755
+ Sl();
729
756
  }
730
- return Yt({
731
- autoSize: fl,
732
- getData: al,
733
- getImage: hl,
734
- generatePdf: ft,
757
+ return Ut({
758
+ autoSize: xl,
759
+ getData: dl,
760
+ getImage: Cl,
761
+ generatePdf: yt,
735
762
  generateCsv: Re,
736
- generateImage: yt,
763
+ generateImage: gt,
737
764
  generateSvg: St,
738
- hideSeries: nl,
739
- showSeries: ol,
740
- toggleTable: $t,
765
+ hideSeries: fl,
766
+ showSeries: hl,
767
+ toggleTable: At,
741
768
  toggleLabels: _t,
742
- toggleTooltip: Ct,
769
+ toggleTooltip: $t,
743
770
  toggleAnnotator: Ge,
744
- toggleFullscreen: kt
771
+ toggleFullscreen: Ct
745
772
  }), (t, a) => (s(), r("div", {
746
773
  ref_key: "donutChart",
747
- ref: B,
774
+ ref: Y,
748
775
  class: We(`vue-data-ui-component vue-ui-donut ${re.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
749
- style: C(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
776
+ style: _(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
750
777
  id: `donut__${g.value}`,
751
- onMouseenter: el,
752
- onMouseleave: tl
778
+ onMouseenter: il,
779
+ onMouseleave: cl
753
780
  }, [
754
- e.value.userOptions.buttons.annotator && u(oe) ? (s(), ae(u(Gt), {
781
+ e.value.userOptions.buttons.annotator && u(ae) ? (s(), oe(u(Jt), {
755
782
  key: 0,
756
783
  color: e.value.style.chart.color,
757
784
  backgroundColor: e.value.style.chart.backgroundColor,
758
- active: Se.value,
759
- svgRef: u(oe),
785
+ active: Fe.value,
786
+ svgRef: u(ae),
760
787
  onClose: Ge
761
788
  }, {
762
- "annotator-action-close": b(() => [
789
+ "annotator-action-close": m(() => [
763
790
  y(t.$slots, "annotator-action-close", {}, void 0, !0)
764
791
  ]),
765
- "annotator-action-color": b(({ color: l }) => [
766
- y(t.$slots, "annotator-action-color", N(Y({ color: l })), void 0, !0)
792
+ "annotator-action-color": m(({ color: l }) => [
793
+ y(t.$slots, "annotator-action-color", O(E({ color: l })), void 0, !0)
767
794
  ]),
768
- "annotator-action-draw": b(({ mode: l }) => [
769
- y(t.$slots, "annotator-action-draw", N(Y({ mode: l })), void 0, !0)
795
+ "annotator-action-draw": m(({ mode: l }) => [
796
+ y(t.$slots, "annotator-action-draw", O(E({ mode: l })), void 0, !0)
770
797
  ]),
771
- "annotator-action-undo": b(({ disabled: l }) => [
772
- y(t.$slots, "annotator-action-undo", N(Y({ disabled: l })), void 0, !0)
798
+ "annotator-action-undo": m(({ disabled: l }) => [
799
+ y(t.$slots, "annotator-action-undo", O(E({ disabled: l })), void 0, !0)
773
800
  ]),
774
- "annotator-action-redo": b(({ disabled: l }) => [
775
- y(t.$slots, "annotator-action-redo", N(Y({ disabled: l })), void 0, !0)
801
+ "annotator-action-redo": m(({ disabled: l }) => [
802
+ y(t.$slots, "annotator-action-redo", O(E({ disabled: l })), void 0, !0)
776
803
  ]),
777
- "annotator-action-delete": b(({ disabled: l }) => [
778
- y(t.$slots, "annotator-action-delete", N(Y({ disabled: l })), void 0, !0)
804
+ "annotator-action-delete": m(({ disabled: l }) => [
805
+ y(t.$slots, "annotator-action-delete", O(E({ disabled: l })), void 0, !0)
779
806
  ]),
780
807
  _: 3
781
- }, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
808
+ }, 8, ["color", "backgroundColor", "active", "svgRef"])) : c("", !0),
782
809
  y(t.$slots, "userConfig", {}, void 0, !0),
783
- ll.value ? (s(), r("div", {
810
+ vl.value ? (s(), r("div", {
784
811
  key: 1,
785
812
  ref_key: "noTitle",
786
- ref: tt,
813
+ ref: lt,
787
814
  class: "vue-data-ui-no-title-space",
788
815
  style: "height:36px; width: 100%;background:transparent"
789
- }, null, 512)) : v("", !0),
816
+ }, null, 512)) : c("", !0),
790
817
  e.value.style.chart.title.text ? (s(), r("div", {
791
818
  key: 2,
792
819
  ref_key: "chartTitle",
793
- ref: Je,
820
+ ref: Qe,
794
821
  style: "width:100%;background:transparent;padding-bottom:24px"
795
822
  }, [
796
- (s(), ae(ea, {
797
- key: `title_${lt.value}`,
823
+ (s(), oe(co, {
824
+ key: `title_${ot.value}`,
798
825
  config: {
799
826
  title: {
800
827
  cy: "donut-div-title",
@@ -806,18 +833,18 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
806
833
  }
807
834
  }
808
835
  }, null, 8, ["config"]))
809
- ], 512)) : v("", !0),
836
+ ], 512)) : c("", !0),
810
837
  h("div", {
811
838
  id: `legend-top-${g.value}`
812
- }, null, 8, na),
813
- e.value.userOptions.show && we.value && (u(vt) || u(Ye)) ? (s(), ae(u(Ut), {
839
+ }, null, 8, yo),
840
+ e.value.userOptions.show && we.value && (u(vt) || u(Ee)) ? (s(), oe(u(Kt), {
814
841
  ref_key: "userOptionsRef",
815
- ref: Ie,
816
- key: `user_option_${ut.value}`,
842
+ ref: De,
843
+ key: `user_option_${rt.value}`,
817
844
  backgroundColor: e.value.style.chart.backgroundColor,
818
845
  color: e.value.style.chart.color,
819
- isPrinting: u(ct),
820
- isImaging: u(ht),
846
+ isPrinting: u(ht),
847
+ isImaging: u(ft),
821
848
  uid: g.value,
822
849
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
823
850
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -828,111 +855,111 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
828
855
  hasLabel: e.value.userOptions.buttons.labels,
829
856
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
830
857
  isFullscreen: re.value,
831
- chartElement: B.value,
858
+ chartElement: Y.value,
832
859
  position: e.value.userOptions.position,
833
860
  callbacks: e.value.userOptions.callbacks,
834
- isTooltip: m.value.showTooltip,
861
+ isTooltip: p.value.showTooltip,
835
862
  titles: { ...e.value.userOptions.buttonTitles },
836
863
  hasAnnotator: e.value.userOptions.buttons.annotator,
837
- isAnnotation: Se.value,
864
+ isAnnotation: Fe.value,
838
865
  printScale: e.value.userOptions.print.scale,
839
866
  tableDialog: e.value.table.useDialog,
840
- onToggleFullscreen: kt,
841
- onGeneratePdf: u(ft),
867
+ onToggleFullscreen: Ct,
868
+ onGeneratePdf: u(yt),
842
869
  onGenerateCsv: Re,
843
- onGenerateImage: u(yt),
870
+ onGenerateImage: u(gt),
844
871
  onGenerateSvg: St,
845
- onToggleTable: $t,
872
+ onToggleTable: At,
846
873
  onToggleLabels: _t,
847
- onToggleTooltip: Ct,
874
+ onToggleTooltip: $t,
848
875
  onToggleAnnotator: Ge,
849
- style: C({ visibility: u(vt) ? u(Ye) ? "visible" : "hidden" : "visible" })
876
+ style: _({ visibility: u(vt) ? u(Ee) ? "visible" : "hidden" : "visible" })
850
877
  }, qe({ _: 2 }, [
851
878
  t.$slots.menuIcon ? {
852
879
  name: "menuIcon",
853
- fn: b(({ isOpen: l, color: o }) => [
854
- y(t.$slots, "menuIcon", N(Y({ isOpen: l, color: o })), void 0, !0)
880
+ fn: m(({ isOpen: l, color: o }) => [
881
+ y(t.$slots, "menuIcon", O(E({ isOpen: l, color: o })), void 0, !0)
855
882
  ]),
856
883
  key: "0"
857
884
  } : void 0,
858
885
  t.$slots.optionTooltip ? {
859
886
  name: "optionTooltip",
860
- fn: b(() => [
887
+ fn: m(() => [
861
888
  y(t.$slots, "optionTooltip", {}, void 0, !0)
862
889
  ]),
863
890
  key: "1"
864
891
  } : void 0,
865
892
  t.$slots.optionPdf ? {
866
893
  name: "optionPdf",
867
- fn: b(() => [
894
+ fn: m(() => [
868
895
  y(t.$slots, "optionPdf", {}, void 0, !0)
869
896
  ]),
870
897
  key: "2"
871
898
  } : void 0,
872
899
  t.$slots.optionCsv ? {
873
900
  name: "optionCsv",
874
- fn: b(() => [
901
+ fn: m(() => [
875
902
  y(t.$slots, "optionCsv", {}, void 0, !0)
876
903
  ]),
877
904
  key: "3"
878
905
  } : void 0,
879
906
  t.$slots.optionImg ? {
880
907
  name: "optionImg",
881
- fn: b(() => [
908
+ fn: m(() => [
882
909
  y(t.$slots, "optionImg", {}, void 0, !0)
883
910
  ]),
884
911
  key: "4"
885
912
  } : void 0,
886
913
  t.$slots.optionSvg ? {
887
914
  name: "optionSvg",
888
- fn: b(() => [
915
+ fn: m(() => [
889
916
  y(t.$slots, "optionSvg", {}, void 0, !0)
890
917
  ]),
891
918
  key: "5"
892
919
  } : void 0,
893
920
  t.$slots.optionTable ? {
894
921
  name: "optionTable",
895
- fn: b(() => [
922
+ fn: m(() => [
896
923
  y(t.$slots, "optionTable", {}, void 0, !0)
897
924
  ]),
898
925
  key: "6"
899
926
  } : void 0,
900
927
  t.$slots.optionLabels ? {
901
928
  name: "optionLabels",
902
- fn: b(() => [
929
+ fn: m(() => [
903
930
  y(t.$slots, "optionLabels", {}, void 0, !0)
904
931
  ]),
905
932
  key: "7"
906
933
  } : void 0,
907
934
  t.$slots.optionFullscreen ? {
908
935
  name: "optionFullscreen",
909
- fn: b(({ toggleFullscreen: l, isFullscreen: o }) => [
910
- y(t.$slots, "optionFullscreen", N(Y({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
936
+ fn: m(({ toggleFullscreen: l, isFullscreen: o }) => [
937
+ y(t.$slots, "optionFullscreen", O(E({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
911
938
  ]),
912
939
  key: "8"
913
940
  } : void 0,
914
941
  t.$slots.optionAnnotator ? {
915
942
  name: "optionAnnotator",
916
- fn: b(({ toggleAnnotator: l, isAnnotator: o }) => [
917
- y(t.$slots, "optionAnnotator", N(Y({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
943
+ fn: m(({ toggleAnnotator: l, isAnnotator: o }) => [
944
+ y(t.$slots, "optionAnnotator", O(E({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
918
945
  ]),
919
946
  key: "9"
920
947
  } : void 0
921
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
948
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
922
949
  (s(), r("svg", {
923
950
  ref_key: "svgRef",
924
- ref: oe,
925
- xmlns: u(Ol),
951
+ ref: ae,
952
+ xmlns: u(Gl),
926
953
  class: We({ "vue-data-ui-fullscreen--on": re.value, "vue-data-ui-fulscreen--off": !re.value, "vue-data-ui-svg": !0 }),
927
954
  viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
928
- style: C(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${dt.value.css}`)
955
+ style: _(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${dt.value.css}`)
929
956
  }, [
930
957
  h("g", {
931
958
  ref_key: "G",
932
959
  ref: ke,
933
960
  class: "vue-data-ui-g"
934
961
  }, [
935
- Te(u(Wt)),
962
+ Se(u(Qt)),
936
963
  t.$slots["chart-background"] ? (s(), r("foreignObject", {
937
964
  key: 0,
938
965
  x: 0,
@@ -944,35 +971,35 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
944
971
  }
945
972
  }, [
946
973
  y(t.$slots, "chart-background", {}, void 0, !0)
947
- ], 8, ua)) : v("", !0),
948
- e.value.type === "classic" && !isNaN(ne.value / _.value) ? (s(), r("defs", ra, [
974
+ ], 8, po)) : c("", !0),
975
+ e.value.type === "classic" && !isNaN(ne.value / A.value) ? (s(), r("defs", bo, [
949
976
  e.value.style.chart.useGradient ? (s(), r("radialGradient", {
950
977
  key: 0,
951
978
  id: `gradient_${g.value}`
952
979
  }, [
953
980
  h("stop", {
954
981
  offset: "0%",
955
- "stop-color": u(Fe)(e.value.style.chart.backgroundColor, 0),
982
+ "stop-color": u(Pe)(e.value.style.chart.backgroundColor, 0),
956
983
  "stop-opacity": "0"
957
- }, null, 8, va),
984
+ }, null, 8, wo),
958
985
  h("stop", {
959
- offset: `${(1 - ne.value / _.value) * 100}%`,
960
- "stop-color": u(Fe)("#FFFFFF", 0),
986
+ offset: `${(1 - ne.value / A.value) * 100}%`,
987
+ "stop-color": u(Pe)("#FFFFFF", 0),
961
988
  "stop-opacity": "0"
962
- }, null, 8, da),
989
+ }, null, 8, ko),
963
990
  h("stop", {
964
- offset: `${(1 - ne.value / _.value / 2) * 100}%`,
965
- "stop-color": u(Fe)("#FFFFFF", e.value.style.chart.gradientIntensity)
966
- }, null, 8, ca),
991
+ offset: `${(1 - ne.value / A.value / 2) * 100}%`,
992
+ "stop-color": u(Pe)("#FFFFFF", e.value.style.chart.gradientIntensity)
993
+ }, null, 8, Co),
967
994
  h("stop", {
968
995
  offset: "100%",
969
- "stop-color": u(Fe)(e.value.style.chart.backgroundColor, 0),
996
+ "stop-color": u(Pe)(e.value.style.chart.backgroundColor, 0),
970
997
  "stop-opacity": "0"
971
- }, null, 8, ha)
972
- ], 8, ia)) : v("", !0)
973
- ])) : v("", !0),
974
- e.value.type === "polar" ? (s(), r("defs", fa, [
975
- (s(!0), r(k, null, I(d.value, (l, o) => (s(), r("radialGradient", {
998
+ }, null, 8, xo)
999
+ ], 8, mo)) : c("", !0)
1000
+ ])) : c("", !0),
1001
+ e.value.type === "polar" ? (s(), r("defs", Ao, [
1002
+ (s(!0), r(k, null, D(v.value, (l, o) => (s(), r("radialGradient", {
976
1003
  id: `polar_gradient_${o}_${g.value}`,
977
1004
  cx: (isNaN(l.middlePoint.x / n.value.width * 100) ? 0 : l.middlePoint.x / n.value.width * 100) + "%",
978
1005
  cy: (isNaN(l.middlePoint.y / n.value.height * 100) ? 0 : l.middlePoint.y / n.value.height * 100) + "%",
@@ -980,15 +1007,15 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
980
1007
  }, [
981
1008
  h("stop", {
982
1009
  offset: "0%",
983
- "stop-color": u(Dl)(T.value[o].color, 0.05),
1010
+ "stop-color": u(Ul)(S.value[o].color, 0.05),
984
1011
  "stop-opacity": e.value.style.chart.gradientIntensity / 100
985
- }, null, 8, ga),
1012
+ }, null, 8, $o),
986
1013
  h("stop", {
987
1014
  offset: "100%",
988
- "stop-color": T.value[o].color
989
- }, null, 8, pa)
990
- ], 8, ya))), 256))
991
- ])) : v("", !0),
1015
+ "stop-color": S.value[o].color
1016
+ }, null, 8, Fo)
1017
+ ], 8, _o))), 256))
1018
+ ])) : c("", !0),
992
1019
  h("defs", null, [
993
1020
  h("filter", {
994
1021
  id: `blur_${g.value}`,
@@ -1001,12 +1028,12 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
1001
1028
  in: "SourceGraphic",
1002
1029
  stdDeviation: 2,
1003
1030
  id: `blur_std_${g.value}`
1004
- }, null, 8, ba),
1031
+ }, null, 8, To),
1005
1032
  a[5] || (a[5] = h("feColorMatrix", {
1006
1033
  type: "saturate",
1007
1034
  values: "0"
1008
1035
  }, null, -1))
1009
- ], 8, ma),
1036
+ ], 8, So),
1010
1037
  h("filter", {
1011
1038
  id: `shadow_${g.value}`,
1012
1039
  "color-interpolation-filters": "sRGB"
@@ -1017,8 +1044,8 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
1017
1044
  stdDeviation: "10",
1018
1045
  "flood-opacity": "0.5",
1019
1046
  "flood-color": e.value.style.chart.layout.donut.shadowColor
1020
- }, null, 8, ka)
1021
- ], 8, wa),
1047
+ }, null, 8, Do)
1048
+ ], 8, Po),
1022
1049
  h("filter", {
1023
1050
  id: `drop_shadow_${g.value}`,
1024
1051
  "color-interpolation-filters": "sRGB",
@@ -1033,160 +1060,160 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
1033
1060
  stdDeviation: "3",
1034
1061
  "flood-opacity": "1",
1035
1062
  "flood-color": e.value.style.chart.layout.donut.shadowColor
1036
- }, null, 8, $a)
1037
- ], 8, xa)
1063
+ }, null, 8, Lo)
1064
+ ], 8, Io)
1038
1065
  ]),
1039
- e.value.type === "classic" ? (s(!0), r(k, { key: 3 }, I(T.value.filter((l) => !l.ghost), (l, o) => (s(), r("g", null, [
1040
- R(l) && m.value.dataLabels.show ? (s(), r("path", {
1066
+ e.value.type === "classic" ? (s(!0), r(k, { key: 3 }, D(S.value.filter((l) => !l.ghost), (l, o) => (s(), r("g", null, [
1067
+ R(l) && p.value.dataLabels.show ? (s(), r("path", {
1041
1068
  key: 0,
1042
- d: u(Nl)(l, { x: n.value.width / 2, y: n.value.height / 2 }, 16, 16, !1, !1, ne.value, 12, e.value.style.chart.layout.curvedMarkers),
1069
+ d: u(Wl)(l, { x: n.value.width / 2, y: n.value.height / 2 }, 16, 16, !1, !1, ne.value, 12, e.value.style.chart.layout.curvedMarkers),
1043
1070
  stroke: l.color,
1044
1071
  "stroke-width": "1",
1045
1072
  "stroke-linecap": "round",
1046
1073
  "stroke-linejoin": "round",
1047
1074
  fill: "none",
1048
1075
  filter: ue(o)
1049
- }, null, 8, _a)) : v("", !0)
1050
- ]))), 256)) : v("", !0),
1051
- e.value.type === "polar" ? (s(!0), r(k, { key: 4 }, I(T.value.filter((l) => !l.ghost), (l, o) => (s(), r("g", null, [
1052
- R(l) && m.value.dataLabels.show ? (s(), r("path", {
1076
+ }, null, 8, Mo)) : c("", !0)
1077
+ ]))), 256)) : c("", !0),
1078
+ e.value.type === "polar" ? (s(!0), r(k, { key: 4 }, D(S.value.filter((l) => !l.ghost), (l, o) => (s(), r("g", null, [
1079
+ R(l) && p.value.dataLabels.show ? (s(), r("path", {
1053
1080
  key: 0,
1054
- d: `M ${u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x},${u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y} ${d.value[o].middlePoint.x},${d.value[o].middlePoint.y}`,
1081
+ d: `M ${u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x},${u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y} ${v.value[o].middlePoint.x},${v.value[o].middlePoint.y}`,
1055
1082
  stroke: l.color,
1056
1083
  "stroke-width": "1",
1057
1084
  "stroke-linecap": "round",
1058
1085
  "stroke-linejoin": "round",
1059
1086
  fill: "none",
1060
1087
  filter: ue(o),
1061
- style: C({
1062
- transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1088
+ style: _({
1089
+ transition: F.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1063
1090
  })
1064
- }, null, 12, Ca)) : v("", !0)
1065
- ]))), 256)) : v("", !0),
1091
+ }, null, 12, Bo)) : c("", !0)
1092
+ ]))), 256)) : c("", !0),
1066
1093
  e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (s(), r("circle", {
1067
1094
  key: 5,
1068
1095
  cx: n.value.width / 2,
1069
1096
  cy: n.value.height / 2,
1070
- r: _.value <= 0 ? 10 : _.value,
1097
+ r: A.value <= 0 ? 10 : A.value,
1071
1098
  fill: e.value.style.chart.backgroundColor,
1072
1099
  filter: `url(#shadow_${g.value})`
1073
- }, null, 8, Aa)) : v("", !0),
1074
- t.$slots.pattern ? (s(), r("g", Sa, [
1075
- (s(!0), r(k, null, I(Ze.dataset, (l, o) => (s(), r("defs", {
1100
+ }, null, 8, zo)) : c("", !0),
1101
+ t.$slots.pattern ? (s(), r("g", Oo, [
1102
+ (s(!0), r(k, null, D(Ke.dataset, (l, o) => (s(), r("defs", {
1076
1103
  key: `pattern-${l.patternIndex}`
1077
1104
  }, [
1078
- y(t.$slots, "pattern", He({ ref_for: !0 }, { seriesIndex: o, patternId: `pattern_${g.value}_${o}` }), void 0, !0)
1105
+ y(t.$slots, "pattern", je({ ref_for: !0 }, { seriesIndex: o, patternId: `pattern_${g.value}_${o}` }), void 0, !0)
1079
1106
  ]))), 128))
1080
- ])) : v("", !0),
1081
- F.value && e.value.type === "classic" ? (s(), r(k, { key: 7 }, [
1082
- (s(!0), r(k, null, I(E.value, (l, o) => (s(), r("path", {
1107
+ ])) : c("", !0),
1108
+ P.value && e.value.type === "classic" ? (s(), r(k, { key: 7 }, [
1109
+ (s(!0), r(k, null, D(V.value, (l, o) => (s(), r("path", {
1083
1110
  stroke: e.value.style.chart.backgroundColor,
1084
1111
  d: l.arcSlice,
1085
1112
  fill: "#FFFFFF"
1086
- }, null, 8, Ta))), 256)),
1087
- (s(!0), r(k, null, I(E.value, (l, o) => (s(), r("path", {
1113
+ }, null, 8, Eo))), 256)),
1114
+ (s(!0), r(k, null, D(V.value, (l, o) => (s(), r("path", {
1088
1115
  class: "vue-ui-donut-arc-path",
1089
1116
  d: l.arcSlice,
1090
1117
  fill: l.color,
1091
1118
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1092
1119
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
1093
1120
  filter: ue(o)
1094
- }, null, 8, Pa))), 256)),
1095
- t.$slots.pattern ? (s(), r("g", Fa, [
1096
- (s(!0), r(k, null, I(E.value, (l, o) => (s(), r("path", {
1121
+ }, null, 8, No))), 256)),
1122
+ t.$slots.pattern ? (s(), r("g", Yo, [
1123
+ (s(!0), r(k, null, D(V.value, (l, o) => (s(), r("path", {
1097
1124
  class: "vue-ui-donut-arc-path",
1098
1125
  d: l.arcSlice,
1099
1126
  fill: `url(#${l.pattern})`,
1100
1127
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1101
1128
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
1102
1129
  filter: ue(o)
1103
- }, null, 8, Ia))), 256))
1104
- ])) : v("", !0)
1105
- ], 64)) : v("", !0),
1106
- F.value && e.value.type === "polar" ? (s(), r(k, { key: 8 }, [
1107
- T.value.length > 1 ? (s(), r("g", La, [
1108
- (s(!0), r(k, null, I(E.value, (l, o) => (s(), r("path", {
1130
+ }, null, 8, Xo))), 256))
1131
+ ])) : c("", !0)
1132
+ ], 64)) : c("", !0),
1133
+ P.value && e.value.type === "polar" ? (s(), r(k, { key: 8 }, [
1134
+ S.value.length > 1 ? (s(), r("g", Vo, [
1135
+ (s(!0), r(k, null, D(V.value, (l, o) => (s(), r("path", {
1109
1136
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1110
- d: d.value[o].path,
1137
+ d: v.value[o].path,
1111
1138
  fill: "#FFFFFF",
1112
- style: C({
1113
- transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1139
+ style: _({
1140
+ transition: F.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1114
1141
  })
1115
- }, null, 12, Ma))), 256)),
1116
- e.value.style.chart.layout.donut.useShadow ? (s(), r("g", za, [
1117
- (s(!0), r(k, null, I(E.value, (l, o) => (s(), r("path", {
1142
+ }, null, 12, Ro))), 256)),
1143
+ e.value.style.chart.layout.donut.useShadow ? (s(), r("g", Go, [
1144
+ (s(!0), r(k, null, D(V.value, (l, o) => (s(), r("path", {
1118
1145
  class: "vue-ui-donut-arc-path",
1119
- d: d.value[o].path,
1146
+ d: v.value[o].path,
1120
1147
  fill: "transparent",
1121
1148
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1122
1149
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
1123
1150
  filter: `url(#drop_shadow_${g.value})`,
1124
- style: C({
1125
- transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1151
+ style: _({
1152
+ transition: F.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1126
1153
  })
1127
- }, null, 12, Oa))), 256))
1128
- ])) : v("", !0),
1129
- t.$slots.pattern ? (s(), r("g", Da, [
1130
- (s(!0), r(k, null, I(E.value, (l, o) => (s(), r("path", {
1154
+ }, null, 12, Uo))), 256))
1155
+ ])) : c("", !0),
1156
+ t.$slots.pattern ? (s(), r("g", Wo, [
1157
+ (s(!0), r(k, null, D(V.value, (l, o) => (s(), r("path", {
1131
1158
  class: "vue-ui-donut-arc-path",
1132
- d: d.value[o].path,
1159
+ d: v.value[o].path,
1133
1160
  fill: `url(#${l.pattern})`,
1134
1161
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1135
1162
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
1136
1163
  filter: ue(o),
1137
- style: C({
1138
- transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1164
+ style: _({
1165
+ transition: F.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1139
1166
  transformOrigin: "center"
1140
1167
  })
1141
- }, null, 12, Na))), 256))
1142
- ])) : v("", !0),
1143
- (s(!0), r(k, null, I(E.value, (l, o) => (s(), r("path", {
1168
+ }, null, 12, qo))), 256))
1169
+ ])) : c("", !0),
1170
+ (s(!0), r(k, null, D(V.value, (l, o) => (s(), r("path", {
1144
1171
  class: "vue-ui-donut-arc-path",
1145
- d: d.value[o].path,
1172
+ d: v.value[o].path,
1146
1173
  fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${o}_${g.value})` : l.color,
1147
1174
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1148
1175
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
1149
1176
  filter: ue(o),
1150
- style: C({
1151
- transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1177
+ style: _({
1178
+ transition: F.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1152
1179
  })
1153
- }, null, 12, Ya))), 256))
1154
- ])) : (s(), r("g", Xa, [
1180
+ }, null, 12, jo))), 256))
1181
+ ])) : (s(), r("g", Ho, [
1155
1182
  t.$slots.pattern ? (s(), r("circle", {
1156
1183
  key: 0,
1157
1184
  cx: n.value.width / 2,
1158
1185
  cy: n.value.height / 2,
1159
- r: _.value,
1160
- fill: `url(#pattern_${g.value}_${T.value[0].patternIndex})`,
1186
+ r: A.value,
1187
+ fill: `url(#pattern_${g.value}_${S.value[0].patternIndex})`,
1161
1188
  stroke: e.value.style.chart.backgroundColor,
1162
1189
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
1163
- }, null, 8, Ba)) : v("", !0),
1190
+ }, null, 8, Zo)) : c("", !0),
1164
1191
  h("circle", {
1165
1192
  cx: n.value.width / 2,
1166
1193
  cy: n.value.height / 2,
1167
- r: _.value,
1168
- fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${g.value})` : T.value[0].color,
1194
+ r: A.value,
1195
+ fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${g.value})` : S.value[0].color,
1169
1196
  stroke: e.value.style.chart.backgroundColor,
1170
1197
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
1171
- }, null, 8, Va)
1198
+ }, null, 8, Jo)
1172
1199
  ]))
1173
1200
  ], 64)) : (s(), r(k, { key: 9 }, [
1174
- e.value.type === "classic" && !rl.value ? (s(), r("g", Ea, [
1175
- (s(!0), r(k, null, I(il.value, (l, o) => (s(), r("path", {
1201
+ e.value.type === "classic" && !pl.value ? (s(), r("g", Ko, [
1202
+ (s(!0), r(k, null, D(bl.value, (l, o) => (s(), r("path", {
1176
1203
  class: "vue-ui-donut-arc-path",
1177
1204
  d: l.arcSlice,
1178
1205
  fill: l.color,
1179
1206
  stroke: e.value.style.chart.backgroundColor,
1180
1207
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
1181
- }, null, 8, Ra))), 256))
1182
- ])) : v("", !0),
1208
+ }, null, 8, Qo))), 256))
1209
+ ])) : c("", !0),
1183
1210
  h("circle", {
1184
1211
  cx: n.value.width / 2,
1185
1212
  cy: n.value.height / 2,
1186
- r: _.value <= 0 ? 10 : _.value,
1213
+ r: A.value <= 0 ? 10 : A.value,
1187
1214
  fill: "transparent",
1188
1215
  stroke: e.value.style.chart.backgroundColor
1189
- }, null, 8, Ga)
1216
+ }, null, 8, ea)
1190
1217
  ], 64)),
1191
1218
  e.value.style.chart.useGradient && e.value.type === "classic" ? (s(), r("circle", {
1192
1219
  key: 10,
@@ -1194,25 +1221,25 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
1194
1221
  cy: n.value.height / 2,
1195
1222
  r: (
1196
1223
  /* This might require adjustments */
1197
- _.value <= 0 ? 10 : _.value
1224
+ A.value <= 0 ? 10 : A.value
1198
1225
  ),
1199
1226
  fill: `url(#gradient_${g.value})`
1200
- }, null, 8, Ua)) : v("", !0),
1227
+ }, null, 8, ta)) : c("", !0),
1201
1228
  h("circle", {
1202
1229
  ref_key: "circle_hollow",
1203
- ref: Zt,
1230
+ ref: sl,
1204
1231
  style: { pointerEvents: "none" },
1205
1232
  fill: "none",
1206
1233
  cx: n.value.width / 2,
1207
1234
  cy: n.value.height / 2,
1208
1235
  r: Math.max(0.1, ne.value * 1.7)
1209
- }, null, 8, Wa),
1210
- F.value ? (s(), r(k, { key: 11 }, [
1211
- T.value.length > 1 || e.value.type === "classic" ? (s(), r("g", qa, [
1212
- (s(!0), r(k, null, I(T.value.filter((l) => !l.ghost), (l, o) => (s(), r("path", {
1213
- d: e.value.type === "classic" ? l.arcSlice : d.value[o].path,
1236
+ }, null, 8, la),
1237
+ P.value ? (s(), r(k, { key: 11 }, [
1238
+ S.value.length > 1 || e.value.type === "classic" ? (s(), r("g", oa, [
1239
+ (s(!0), r(k, null, D(S.value.filter((l) => !l.ghost), (l, o) => (s(), r("path", {
1240
+ d: e.value.type === "classic" ? l.arcSlice : v.value[o].path,
1214
1241
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1215
- fill: V.value === o ? e.value.style.chart.layout.donut.selectedColor : "transparent",
1242
+ fill: X.value === o ? e.value.style.chart.layout.donut.selectedColor : "transparent",
1216
1243
  onMouseenter: (i) => fe({
1217
1244
  datapoint: l,
1218
1245
  relativeIndex: o,
@@ -1221,28 +1248,28 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
1221
1248
  }),
1222
1249
  onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex }),
1223
1250
  onClick: (i) => ee(l, o)
1224
- }, null, 40, Ha))), 256))
1225
- ])) : (s(), r("g", ja, [
1251
+ }, null, 40, aa))), 256))
1252
+ ])) : (s(), r("g", na, [
1226
1253
  h("circle", {
1227
1254
  cx: n.value.width / 2,
1228
1255
  cy: n.value.height / 2,
1229
- r: _.value,
1256
+ r: A.value,
1230
1257
  fill: "transparent",
1231
1258
  onMouseenter: a[0] || (a[0] = (l) => fe({
1232
- datapoint: T.value[0],
1259
+ datapoint: S.value[0],
1233
1260
  relativeIndex: 0,
1234
- seriesIndex: T.value[0].seriesIndex,
1261
+ seriesIndex: S.value[0].seriesIndex,
1235
1262
  show: !0
1236
1263
  })),
1237
- onMouseleave: a[1] || (a[1] = (l) => he({ datapoint: T.value[0], seriesIndex: T.value[0].seriesIndex })),
1238
- onClick: a[2] || (a[2] = (l) => ee(T.value[0], t.i))
1239
- }, null, 40, Qa)
1264
+ onMouseleave: a[1] || (a[1] = (l) => he({ datapoint: S.value[0], seriesIndex: S.value[0].seriesIndex })),
1265
+ onClick: a[2] || (a[2] = (l) => ee(S.value[0], t.i))
1266
+ }, null, 40, sa)
1240
1267
  ]))
1241
- ], 64)) : v("", !0),
1268
+ ], 64)) : c("", !0),
1242
1269
  e.value.type === "classic" ? (s(), r("g", {
1243
1270
  key: 12,
1244
1271
  ref_key: "G_hollow",
1245
- ref: Qt,
1272
+ ref: nl,
1246
1273
  class: "vue-data-ui-donut-hollow-labels"
1247
1274
  }, [
1248
1275
  e.value.style.chart.layout.labels.hollow.total.show ? (s(), r("text", {
@@ -1252,8 +1279,8 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
1252
1279
  y: n.value.height / 2 - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.offsetY,
1253
1280
  fill: e.value.style.chart.layout.labels.hollow.total.color,
1254
1281
  "font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
1255
- style: C(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
1256
- }, U(e.value.style.chart.layout.labels.hollow.total.text), 13, Za)) : v("", !0),
1282
+ style: _(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
1283
+ }, U(e.value.style.chart.layout.labels.hollow.total.text), 13, ua)) : c("", !0),
1257
1284
  e.value.style.chart.layout.labels.hollow.total.show ? (s(), r("text", {
1258
1285
  key: 1,
1259
1286
  "text-anchor": "middle",
@@ -1261,16 +1288,16 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
1261
1288
  y: n.value.height / 2 + e.value.style.chart.layout.labels.hollow.total.fontSize - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.value.offsetY,
1262
1289
  fill: e.value.style.chart.layout.labels.hollow.total.value.color,
1263
1290
  "font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
1264
- style: C(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
1291
+ style: _(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
1265
1292
  }, U(u(W)(
1266
1293
  e.value.style.chart.layout.labels.hollow.total.value.formatter,
1267
- F.value,
1268
- u(X)({
1294
+ P.value,
1295
+ u(N)({
1269
1296
  p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
1270
- v: F.value,
1297
+ v: P.value,
1271
1298
  s: e.value.style.chart.layout.labels.hollow.total.value.suffix
1272
1299
  })
1273
- )), 13, Ja)) : v("", !0),
1300
+ )), 13, ra)) : c("", !0),
1274
1301
  e.value.style.chart.layout.labels.hollow.average.show ? (s(), r("text", {
1275
1302
  key: 2,
1276
1303
  "text-anchor": "middle",
@@ -1278,8 +1305,8 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
1278
1305
  y: n.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.offsetY,
1279
1306
  fill: e.value.style.chart.layout.labels.hollow.average.color,
1280
1307
  "font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
1281
- style: C(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
1282
- }, U(e.value.style.chart.layout.labels.hollow.average.text), 13, Ka)) : v("", !0),
1308
+ style: _(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
1309
+ }, U(e.value.style.chart.layout.labels.hollow.average.text), 13, ia)) : c("", !0),
1283
1310
  e.value.style.chart.layout.labels.hollow.average.show ? (s(), r("text", {
1284
1311
  key: 3,
1285
1312
  "text-anchor": "middle",
@@ -1287,54 +1314,54 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
1287
1314
  y: n.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.fontSize + e.value.style.chart.layout.labels.hollow.average.value.offsetY,
1288
1315
  fill: e.value.style.chart.layout.labels.hollow.average.value.color,
1289
1316
  "font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
1290
- style: C(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
1291
- }, U(se.value || S.value ? "--" : u(W)(
1317
+ style: _(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
1318
+ }, U(se.value || F.value ? "--" : u(W)(
1292
1319
  e.value.style.chart.layout.labels.hollow.average.value.formatter,
1293
- Ve.value,
1294
- u(X)({
1320
+ Xe.value,
1321
+ u(N)({
1295
1322
  p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
1296
- v: Ve.value,
1323
+ v: Xe.value,
1297
1324
  s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
1298
1325
  r: e.value.style.chart.layout.labels.hollow.average.value.rounding
1299
1326
  })
1300
- )), 13, eo)) : v("", !0)
1301
- ], 512)) : v("", !0),
1302
- (s(!0), r(k, null, I(E.value.filter((l) => !l.ghost), (l, o) => (s(), r("g", {
1327
+ )), 13, ca)) : c("", !0)
1328
+ ], 512)) : c("", !0),
1329
+ (s(!0), r(k, null, D(V.value.filter((l) => !l.ghost), (l, o) => (s(), r("g", {
1303
1330
  filter: ue(o),
1304
1331
  class: We({ animated: e.value.useCssAnimation }),
1305
1332
  key: l.seriesIndex
1306
1333
  }, [
1307
- e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), r("g", lo, [
1334
+ e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), r("g", da, [
1308
1335
  (s(), r("foreignObject", {
1309
- x: u($)(l, !0).anchor === "end" ? u($)(l).x - 120 : u($)(l, !0).anchor === "middle" ? u($)(l).x - 60 : u($)(l).x,
1336
+ x: u(x)(l, !0).anchor === "end" ? u(x)(l).x - 120 : u(x)(l, !0).anchor === "middle" ? u(x)(l).x - 60 : u(x)(l).x,
1310
1337
  y: u(ge)(l) - (xt.value ? 20 : 0),
1311
1338
  width: "120",
1312
1339
  height: "60",
1313
1340
  style: { overflow: "visible" }
1314
1341
  }, [
1315
1342
  h("div", null, [
1316
- y(t.$slots, "dataLabel", He({ ref_for: !0 }, {
1343
+ y(t.$slots, "dataLabel", je({ ref_for: !0 }, {
1317
1344
  datapoint: l,
1318
- isBlur: !e.value.useBlurOnHover || [null, void 0].includes(V.value) || V.value === o,
1345
+ isBlur: !e.value.useBlurOnHover || [null, void 0].includes(X.value) || X.value === o,
1319
1346
  isSafari: xt.value,
1320
- isVisible: R(l) && m.value.dataLabels.show,
1321
- textAlign: u($)(l, !0, 16, !0).anchor,
1322
- flexAlign: u($)(l, !0, 16).anchor,
1323
- percentage: Be(l, E.value)
1347
+ isVisible: R(l) && p.value.dataLabels.show,
1348
+ textAlign: u(x)(l, !0, 16, !0).anchor,
1349
+ flexAlign: u(x)(l, !0, 16).anchor,
1350
+ percentage: Ye(l, V.value)
1324
1351
  }), void 0, !0)
1325
1352
  ])
1326
- ], 8, ao))
1327
- ])) : (s(), r("g", oo, [
1353
+ ], 8, ha))
1354
+ ])) : (s(), r("g", fa, [
1328
1355
  e.value.type === "classic" ? (s(), r(k, { key: 0 }, [
1329
- R(l) && m.value.dataLabels.show ? (s(), r("circle", {
1356
+ R(l) && p.value.dataLabels.show ? (s(), r("circle", {
1330
1357
  key: 0,
1331
- cx: u($)(l).x,
1358
+ cx: u(x)(l).x,
1332
1359
  cy: u(ge)(l) - 3.5,
1333
1360
  fill: l.color,
1334
1361
  stroke: e.value.style.chart.backgroundColor,
1335
1362
  "stroke-width": 1,
1336
1363
  r: 3,
1337
- filter: !e.value.useBlurOnHover || [null, void 0].includes(V.value) || V.value === o ? "" : `url(#blur_${g.value})`,
1364
+ filter: !e.value.useBlurOnHover || [null, void 0].includes(X.value) || X.value === o ? "" : `url(#blur_${g.value})`,
1338
1365
  onClick: (i) => ee(l, o),
1339
1366
  onMouseenter: (i) => fe({
1340
1367
  datapoint: l,
@@ -1343,18 +1370,18 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
1343
1370
  show: !0
1344
1371
  }),
1345
1372
  onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex })
1346
- }, null, 40, no)) : v("", !0)
1347
- ], 64)) : v("", !0),
1373
+ }, null, 40, ya)) : c("", !0)
1374
+ ], 64)) : c("", !0),
1348
1375
  e.value.type === "polar" ? (s(), r(k, { key: 1 }, [
1349
- R(l) && m.value.dataLabels.show ? (s(), r("circle", {
1376
+ R(l) && p.value.dataLabels.show ? (s(), r("circle", {
1350
1377
  key: 0,
1351
- cx: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
1352
- cy: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
1378
+ cx: u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
1379
+ cy: u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
1353
1380
  fill: l.color,
1354
1381
  stroke: e.value.style.chart.backgroundColor,
1355
1382
  "stroke-width": 1,
1356
1383
  r: 3,
1357
- filter: !e.value.useBlurOnHover || [null, void 0].includes(V.value) || V.value === o ? "" : `url(#blur_${g.value})`,
1384
+ filter: !e.value.useBlurOnHover || [null, void 0].includes(X.value) || X.value === o ? "" : `url(#blur_${g.value})`,
1358
1385
  onClick: (i) => ee(l, o),
1359
1386
  onMouseenter: (i) => fe({
1360
1387
  datapoint: l,
@@ -1363,20 +1390,20 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
1363
1390
  show: !0
1364
1391
  }),
1365
1392
  onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex }),
1366
- style: C({
1367
- transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1393
+ style: _({
1394
+ transition: F.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1368
1395
  })
1369
- }, null, 44, so)) : v("", !0)
1370
- ], 64)) : v("", !0),
1396
+ }, null, 44, ga)) : c("", !0)
1397
+ ], 64)) : c("", !0),
1371
1398
  e.value.type === "classic" ? (s(), r(k, { key: 2 }, [
1372
- Ft(h("text", {
1399
+ Dt(h("text", {
1373
1400
  class: "vue-data-ui-datalabel-value",
1374
- "text-anchor": u($)(l, !0, 12).anchor,
1375
- x: u($)(l, !0, 12).x,
1401
+ "text-anchor": u(x)(l, !0, 12).anchor,
1402
+ x: u(x)(l, !0, 12).x,
1376
1403
  y: u(ge)(l),
1377
1404
  fill: e.value.style.chart.layout.labels.percentage.color,
1378
- "font-size": xe.value + "px",
1379
- style: C(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
1405
+ "font-size": Ce.value + "px",
1406
+ style: _(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
1380
1407
  onClick: (i) => ee(l, o),
1381
1408
  onMouseenter: (i) => fe({
1382
1409
  datapoint: l,
@@ -1385,51 +1412,51 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
1385
1412
  show: !0
1386
1413
  }),
1387
1414
  onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex })
1388
- }, U(Be(l, E.value)) + " " + U(e.value.style.chart.layout.labels.value.show ? `(${u(W)(
1415
+ }, U(Ye(l, V.value)) + " " + U(e.value.style.chart.layout.labels.value.show ? `(${u(W)(
1389
1416
  e.value.style.chart.layout.labels.value.formatter,
1390
1417
  l.value,
1391
- u(X)({
1418
+ u(N)({
1392
1419
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1393
1420
  v: l.value,
1394
1421
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1395
1422
  r: e.value.style.chart.layout.labels.value.rounding
1396
1423
  }),
1397
1424
  { datapoint: l }
1398
- )})` : ""), 45, uo), [
1399
- [It, R(l) && m.value.dataLabels.show]
1425
+ )})` : ""), 45, pa), [
1426
+ [It, R(l) && p.value.dataLabels.show]
1400
1427
  ]),
1401
- Ft(h("text", {
1428
+ Dt(h("text", {
1402
1429
  class: "vue-data-ui-datalabel-name",
1403
- "text-anchor": u($)(l).anchor,
1404
- x: u($)(l, !0, 12).x,
1405
- y: u(ge)(l) + J.value * 1.2,
1430
+ "text-anchor": u(x)(l).anchor,
1431
+ x: u(x)(l, !0, 12).x,
1432
+ y: u(ge)(l) + K.value * 1.2,
1406
1433
  fill: e.value.style.chart.layout.labels.name.color,
1407
- "font-size": J.value + "px",
1408
- style: C(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
1434
+ "font-size": K.value + "px",
1435
+ style: _(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
1409
1436
  onClick: (i) => ee(l, o),
1410
- innerHTML: u(Ot)({
1437
+ innerHTML: u(zt)({
1411
1438
  content: l.name,
1412
- fontSize: J.value,
1439
+ fontSize: K.value,
1413
1440
  fill: e.value.style.chart.layout.labels.name.color,
1414
- x: u($)(l, !0, 12).x,
1415
- y: u(ge)(l) + J.value
1441
+ x: u(x)(l, !0, 12).x,
1442
+ y: u(ge)(l) + K.value
1416
1443
  })
1417
- }, null, 12, ro), [
1418
- [It, R(l) && m.value.dataLabels.show]
1444
+ }, null, 12, ba), [
1445
+ [It, R(l) && p.value.dataLabels.show]
1419
1446
  ]),
1420
- a[6] || (a[6] = Pe(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
1421
- ], 64)) : v("", !0),
1447
+ a[6] || (a[6] = Te(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
1448
+ ], 64)) : c("", !0),
1422
1449
  e.value.type === "polar" ? (s(), r(k, { key: 3 }, [
1423
- R(l) && m.value.dataLabels.show ? (s(), r("text", {
1450
+ R(l) && p.value.dataLabels.show ? (s(), r("text", {
1424
1451
  key: 0,
1425
1452
  class: "vue-data-ui-datalabel-value",
1426
- "text-anchor": ce(d.value[o].middlePoint),
1427
- x: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
1428
- y: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
1453
+ "text-anchor": de(v.value[o].middlePoint),
1454
+ x: u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
1455
+ y: u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
1429
1456
  fill: e.value.style.chart.layout.labels.percentage.color,
1430
- "font-size": xe.value,
1431
- style: C({
1432
- transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1457
+ "font-size": Ce.value,
1458
+ style: _({
1459
+ transition: F.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1433
1460
  fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
1434
1461
  }),
1435
1462
  onClick: (i) => ee(l, o),
@@ -1440,45 +1467,45 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
1440
1467
  show: !0
1441
1468
  }),
1442
1469
  onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex })
1443
- }, U(Be(l, E.value)) + " " + U(e.value.style.chart.layout.labels.value.show ? `(${u(W)(
1470
+ }, U(Ye(l, V.value)) + " " + U(e.value.style.chart.layout.labels.value.show ? `(${u(W)(
1444
1471
  e.value.style.chart.layout.labels.value.formatter,
1445
1472
  l.value,
1446
- u(X)({
1473
+ u(N)({
1447
1474
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1448
1475
  v: l.value,
1449
1476
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1450
1477
  r: e.value.style.chart.layout.labels.value.rounding
1451
1478
  }),
1452
1479
  { datapoint: l }
1453
- )})` : ""), 45, io)) : v("", !0),
1454
- R(l) && m.value.dataLabels.show ? (s(), r("text", {
1480
+ )})` : ""), 45, ma)) : c("", !0),
1481
+ R(l) && p.value.dataLabels.show ? (s(), r("text", {
1455
1482
  key: 1,
1456
1483
  class: "vue-data-ui-datalabel-name",
1457
- "text-anchor": ce(d.value[o].middlePoint),
1458
- x: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
1459
- y: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y + J.value * 1.2,
1484
+ "text-anchor": de(v.value[o].middlePoint),
1485
+ x: u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
1486
+ y: u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y + K.value * 1.2,
1460
1487
  fill: e.value.style.chart.layout.labels.name.color,
1461
- "font-size": J.value,
1462
- style: C({
1463
- transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1488
+ "font-size": K.value,
1489
+ style: _({
1490
+ transition: F.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1464
1491
  fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
1465
1492
  }),
1466
1493
  onClick: (i) => ee(l, o),
1467
- innerHTML: u(Ot)({
1494
+ innerHTML: u(zt)({
1468
1495
  content: l.name,
1469
- fontSize: xe.value,
1496
+ fontSize: Ce.value,
1470
1497
  fill: e.value.style.chart.layout.labels.name.color,
1471
- x: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
1472
- y: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y + J.value * 1.2
1498
+ x: u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
1499
+ y: u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y + K.value * 1.2
1473
1500
  })
1474
- }, null, 12, vo)) : v("", !0),
1475
- a[7] || (a[7] = Pe(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
1476
- ], 64)) : v("", !0)
1501
+ }, null, 12, wa)) : c("", !0),
1502
+ a[7] || (a[7] = Te(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
1503
+ ], 64)) : c("", !0)
1477
1504
  ])),
1478
- m.value.dataLabels.show && e.value.style.chart.comments.show && l.comment ? (s(), r("g", co, [
1505
+ p.value.dataLabels.show && e.value.style.chart.comments.show && l.comment ? (s(), r("g", ka, [
1479
1506
  R(l) && e.value.type === "classic" ? (s(), r("foreignObject", {
1480
1507
  key: 0,
1481
- x: e.value.style.chart.comments.offsetX + (u($)(l, !0).anchor === "end" ? u($)(l).x - e.value.style.chart.comments.width : u($)(l, !0).anchor === "middle" ? u($)(l).x - e.value.style.chart.comments.width / 2 : u($)(l).x),
1508
+ x: e.value.style.chart.comments.offsetX + (u(x)(l, !0).anchor === "end" ? u(x)(l).x - e.value.style.chart.comments.width : u(x)(l, !0).anchor === "middle" ? u(x)(l).x - e.value.style.chart.comments.width / 2 : u(x)(l).x),
1482
1509
  y: u(ge)(l) + 24 + e.value.style.chart.comments.offsetY,
1483
1510
  width: e.value.style.chart.comments.width,
1484
1511
  height: "200",
@@ -1486,65 +1513,65 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
1486
1513
  }, [
1487
1514
  h("div", null, [
1488
1515
  y(t.$slots, "plot-comment", {
1489
- plot: { ...l, textAlign: u($)(l, !0, 16, !0).anchor, flexAlign: u($)(l, !0, 16).anchor, isFirstLoad: S.value }
1516
+ plot: { ...l, textAlign: u(x)(l, !0, 16, !0).anchor, flexAlign: u(x)(l, !0, 16).anchor, isFirstLoad: F.value }
1490
1517
  }, void 0, !0)
1491
1518
  ])
1492
- ], 8, ho)) : v("", !0),
1519
+ ], 8, Ca)) : c("", !0),
1493
1520
  R(l) && e.value.type === "polar" ? (s(), r("foreignObject", {
1494
1521
  key: 1,
1495
- x: e.value.style.chart.comments.offsetX + (ce(d.value[o].middlePoint) === "end" ? u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x - e.value.style.chart.comments.width : ce(d.value[o].middlePoint) === "middle" ? u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x),
1496
- y: vl(d.value[o]) + e.value.style.chart.comments.offsetY,
1522
+ x: e.value.style.chart.comments.offsetX + (de(v.value[o].middlePoint) === "end" ? u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x - e.value.style.chart.comments.width : de(v.value[o].middlePoint) === "middle" ? u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : u(T)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x),
1523
+ y: ml(v.value[o]) + e.value.style.chart.comments.offsetY,
1497
1524
  width: e.value.style.chart.comments.width,
1498
1525
  height: "200",
1499
- style: C({
1500
- transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1526
+ style: _({
1527
+ transition: F.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1501
1528
  overflow: "visible",
1502
1529
  pointerEvents: "none"
1503
1530
  })
1504
1531
  }, [
1505
1532
  h("div", null, [
1506
1533
  y(t.$slots, "plot-comment", {
1507
- plot: { ...l, textAlign: ce(d.value[o].middlePoint), flexAlign: ce(d.value[o].middlePoint), isFirstLoad: S.value }
1534
+ plot: { ...l, textAlign: de(v.value[o].middlePoint), flexAlign: de(v.value[o].middlePoint), isFirstLoad: F.value }
1508
1535
  }, void 0, !0)
1509
1536
  ])
1510
- ], 12, fo)) : v("", !0)
1511
- ])) : v("", !0)
1512
- ], 10, to))), 128)),
1537
+ ], 12, xa)) : c("", !0)
1538
+ ])) : c("", !0)
1539
+ ], 10, va))), 128)),
1513
1540
  y(t.$slots, "svg", { svg: n.value }, void 0, !0)
1514
1541
  ], 512)
1515
- ], 14, sa)),
1516
- t.$slots.watermark ? (s(), r("div", yo, [
1517
- y(t.$slots, "watermark", N(Y({ isPrinting: u(ct) || u(ht) })), void 0, !0)
1518
- ])) : v("", !0),
1542
+ ], 14, go)),
1543
+ t.$slots.watermark ? (s(), r("div", Aa, [
1544
+ y(t.$slots, "watermark", O(E({ isPrinting: u(ht) || u(ft) })), void 0, !0)
1545
+ ])) : c("", !0),
1519
1546
  h("div", {
1520
1547
  id: `legend-bottom-${g.value}`
1521
- }, null, 8, go),
1522
- nt.value ? (s(), ae(Al, {
1548
+ }, null, 8, _a),
1549
+ st.value ? (s(), oe(Bl, {
1523
1550
  key: 5,
1524
1551
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${g.value}` : `#legend-bottom-${g.value}`
1525
1552
  }, [
1526
1553
  h("div", {
1527
1554
  ref_key: "chartLegend",
1528
- ref: Ke
1555
+ ref: et
1529
1556
  }, [
1530
- e.value.style.chart.legend.show ? (s(), ae(la, {
1531
- key: `legend_${ot.value}`,
1532
- legendSet: Xe.value,
1533
- config: ul.value,
1534
- onClickMarker: a[3] || (a[3] = ({ i: l }) => Ce(l))
1557
+ e.value.style.chart.legend.show ? (s(), oe(vo, {
1558
+ key: `legend_${nt.value}`,
1559
+ legendSet: Ne.value,
1560
+ config: gl.value,
1561
+ onClickMarker: a[3] || (a[3] = ({ i: l }) => _e(l))
1535
1562
  }, qe({
1536
- item: b(({ legend: l, index: o }) => [
1563
+ item: m(({ legend: l, index: o }) => [
1537
1564
  h("div", {
1538
- style: C(`opacity:${z.value.includes(o) ? 0.5 : 1}`),
1565
+ style: _(`opacity:${M.value.includes(o) ? 0.5 : 1}`),
1539
1566
  onClick: (i) => l.segregate()
1540
- }, U(l.display), 13, po)
1567
+ }, U(l.display), 13, $a)
1541
1568
  ]),
1542
1569
  _: 2
1543
1570
  }, [
1544
1571
  t.$slots.pattern ? {
1545
1572
  name: "legend-pattern",
1546
- fn: b(({ legend: l, index: o }) => [
1547
- Te(Kl, {
1573
+ fn: m(({ legend: l, index: o }) => [
1574
+ Se(io, {
1548
1575
  shape: l.shape,
1549
1576
  radius: 30,
1550
1577
  stroke: "none",
@@ -1554,27 +1581,27 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
1554
1581
  ]),
1555
1582
  key: "0"
1556
1583
  } : void 0
1557
- ]), 1032, ["legendSet", "config"])) : v("", !0),
1558
- y(t.$slots, "legend", { legend: Xe.value }, void 0, !0)
1584
+ ]), 1032, ["legendSet", "config"])) : c("", !0),
1585
+ y(t.$slots, "legend", { legend: Ne.value }, void 0, !0)
1559
1586
  ], 512)
1560
- ], 8, ["to"])) : v("", !0),
1587
+ ], 8, ["to"])) : c("", !0),
1561
1588
  t.$slots.source ? (s(), r("div", {
1562
1589
  key: 6,
1563
1590
  ref_key: "source",
1564
- ref: et,
1591
+ ref: tt,
1565
1592
  dir: "auto"
1566
1593
  }, [
1567
1594
  y(t.$slots, "source", {}, void 0, !0)
1568
- ], 512)) : v("", !0),
1569
- t.$slots.hollow ? (s(), r("div", mo, [
1570
- y(t.$slots, "hollow", N(Y({
1571
- total: F.value,
1572
- average: Ve.value,
1573
- dataset: L.value
1595
+ ], 512)) : c("", !0),
1596
+ t.$slots.hollow ? (s(), r("div", Fa, [
1597
+ y(t.$slots, "hollow", O(E({
1598
+ total: P.value,
1599
+ average: Xe.value,
1600
+ dataset: I.value
1574
1601
  })), void 0, !0)
1575
- ])) : v("", !0),
1576
- Te(u(Bt), {
1577
- show: m.value.showTooltip && Oe.value,
1602
+ ])) : c("", !0),
1603
+ Se(u(qt), {
1604
+ show: p.value.showTooltip && Be.value,
1578
1605
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1579
1606
  color: e.value.style.chart.tooltip.color,
1580
1607
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -1584,50 +1611,50 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
1584
1611
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1585
1612
  position: e.value.style.chart.tooltip.position,
1586
1613
  offsetY: e.value.style.chart.tooltip.offsetY,
1587
- parent: B.value,
1588
- content: De.value,
1589
- isCustom: me.value,
1614
+ parent: Y.value,
1615
+ content: ze.value,
1616
+ isCustom: be.value,
1590
1617
  isFullscreen: re.value,
1591
1618
  smooth: e.value.style.chart.tooltip.smooth,
1592
1619
  backdropFilter: e.value.style.chart.tooltip.backdropFilter,
1593
1620
  smoothForce: e.value.style.chart.tooltip.smoothForce,
1594
1621
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThrehsold
1595
1622
  }, {
1596
- "tooltip-before": b(() => [
1597
- y(t.$slots, "tooltip-before", N(Y({ ...Ee.value })), void 0, !0)
1623
+ "tooltip-before": m(() => [
1624
+ y(t.$slots, "tooltip-before", O(E({ ...Ve.value })), void 0, !0)
1598
1625
  ]),
1599
- "tooltip-after": b(() => [
1600
- y(t.$slots, "tooltip-after", N(Y({ ...Ee.value })), void 0, !0)
1626
+ "tooltip-after": m(() => [
1627
+ y(t.$slots, "tooltip-after", O(E({ ...Ve.value })), void 0, !0)
1601
1628
  ]),
1602
1629
  _: 3
1603
1630
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
1604
- we.value && e.value.userOptions.buttons.table ? (s(), ae(Sl(be.value.component), He({ key: 8 }, be.value.props, {
1631
+ we.value && e.value.userOptions.buttons.table ? (s(), oe(zl(me.value.component), je({ key: 8 }, me.value.props, {
1605
1632
  ref_key: "tableUnit",
1606
1633
  ref: pe,
1607
- onClose: At
1634
+ onClose: Ft
1608
1635
  }), qe({
1609
- content: b(() => [
1610
- (s(), ae(u(Rt), {
1636
+ content: m(() => [
1637
+ (s(), oe(u(Zt), {
1611
1638
  key: `table_${at.value}`,
1612
- colNames: Ae.value.colNames,
1613
- head: Ae.value.head,
1614
- body: Ae.value.body,
1615
- config: Ae.value.config,
1616
- title: e.value.table.useDialog ? "" : be.value.title,
1639
+ colNames: $e.value.colNames,
1640
+ head: $e.value.head,
1641
+ body: $e.value.body,
1642
+ config: $e.value.config,
1643
+ title: e.value.table.useDialog ? "" : me.value.title,
1617
1644
  withCloseButton: !e.value.table.useDialog,
1618
- onClose: At
1645
+ onClose: Ft
1619
1646
  }, {
1620
- th: b(({ th: l }) => [
1647
+ th: m(({ th: l }) => [
1621
1648
  h("div", {
1622
1649
  innerHTML: l,
1623
1650
  style: { display: "flex", "align-items": "center" }
1624
- }, null, 8, bo)
1651
+ }, null, 8, Sa)
1625
1652
  ]),
1626
- td: b(({ td: l }) => [
1627
- Pe(U(l.name ? l.name : isNaN(Number(l)) ? l.includes("%") ? l : u(W)(
1653
+ td: m(({ td: l }) => [
1654
+ Te(U(l.name ? l.name : isNaN(Number(l)) ? l.includes("%") ? l : u(W)(
1628
1655
  e.value.style.chart.layout.labels.percentage.formatter,
1629
1656
  l,
1630
- u(X)({
1657
+ u(N)({
1631
1658
  v: l,
1632
1659
  s: "%",
1633
1660
  r: e.value.style.chart.layout.labels.percentage.rounding
@@ -1635,7 +1662,7 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
1635
1662
  ) : u(W)(
1636
1663
  e.value.style.chart.layout.labels.value.formatter,
1637
1664
  l,
1638
- u(X)({
1665
+ u(N)({
1639
1666
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1640
1667
  v: l,
1641
1668
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -1650,32 +1677,37 @@ const oa = ["id"], na = ["id"], sa = ["xmlns", "viewBox"], ua = ["width", "heigh
1650
1677
  }, [
1651
1678
  e.value.table.useDialog ? {
1652
1679
  name: "title",
1653
- fn: b(() => [
1654
- Pe(U(be.value.title), 1)
1680
+ fn: m(() => [
1681
+ Te(U(me.value.title), 1)
1655
1682
  ]),
1656
1683
  key: "0"
1657
1684
  } : void 0,
1658
1685
  e.value.table.useDialog ? {
1659
1686
  name: "actions",
1660
- fn: b(() => [
1687
+ fn: m(() => [
1661
1688
  h("button", {
1662
1689
  tabindex: "0",
1663
1690
  class: "vue-ui-user-options-button",
1664
1691
  onClick: a[4] || (a[4] = (l) => Re(e.value.userOptions.callbacks.csv))
1665
1692
  }, [
1666
- Te(u(Vt), {
1693
+ Se(u(jt), {
1667
1694
  name: "excel",
1668
- stroke: be.value.props.color
1695
+ stroke: me.value.props.color
1669
1696
  }, null, 8, ["stroke"])
1670
1697
  ])
1671
1698
  ]),
1672
1699
  key: "1"
1673
1700
  } : void 0
1674
- ]), 1040)) : v("", !0),
1675
- u($e) ? (s(), ae(Hl, { key: 9 })) : v("", !0)
1676
- ], 46, oa));
1701
+ ]), 1040)) : c("", !0),
1702
+ u(xe) ? (s(), oe(oo, { key: 9 })) : c("", !0)
1703
+ ], 46, fo));
1677
1704
  }
1678
- }, Do = /* @__PURE__ */ aa(wo, [["__scopeId", "data-v-a23e4322"]]);
1705
+ }, Pa = /* @__PURE__ */ ho(Ta, [["__scopeId", "data-v-3033b2a3"]]), qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1706
+ __proto__: null,
1707
+ default: Pa
1708
+ }, Symbol.toStringTag, { value: "Module" }));
1679
1709
  export {
1680
- Do as default
1710
+ Pa as V,
1711
+ qa as a,
1712
+ Wa as v
1681
1713
  };