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