vue-data-ui 3.9.11 → 3.9.13

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 (164) hide show
  1. package/dist/{Arrow-Cbn8f8m4.js → Arrow-f1dKmuRH.js} +1 -1
  2. package/dist/{BaseDraggableDialog-C167SnU0.js → BaseDraggableDialog-CAJxIF6g.js} +2 -2
  3. package/dist/{BaseIcon-r3_sTK1A.js → BaseIcon-4i3dd7Ty.js} +1 -1
  4. package/dist/{BaseZoomControls-D8N7fb-c.js → BaseZoomControls-C0H509ZF.js} +6 -6
  5. package/dist/{ColorPicker-Bq2C5Dll.js → ColorPicker-B9oF4-O6.js} +8 -8
  6. package/dist/{DataTable-DNeCys3I.js → DataTable-WrXCJkfE.js} +2 -2
  7. package/dist/{Legend-Dxz13z4E.js → Legend-D6z73edh.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-ZnkWbBri.js → NonSvgPenAndPaper-7clRuQVF.js} +11 -11
  9. package/dist/{PackageVersion-DPLuuWzw.js → PackageVersion-D3cMhAlf.js} +1 -1
  10. package/dist/{PenAndPaper-CsqBamFZ.js → PenAndPaper-DxIUvoQ8.js} +17 -17
  11. package/dist/{Shape-_iTOIp3x.js → Shape-DAHhCEdg.js} +1 -1
  12. package/dist/{Slicer-DBYna_by.js → Slicer-Bn8azYkD.js} +70 -70
  13. package/dist/{SlicerPreview-pHjYklxh.js → SlicerPreview-oV3dMuV1.js} +2 -2
  14. package/dist/{SparkTooltip-BaSHhfes.js → SparkTooltip-D7iYVquk.js} +3 -3
  15. package/dist/{Title-DFtCaCah.js → Title-BhURirpm.js} +1 -1
  16. package/dist/{Tooltip-B79qvriT.js → Tooltip-TDyKgLB6.js} +1 -1
  17. package/dist/{UserOptions-B-2A_KRb.js → UserOptions-CzJWRC4s.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +1 -1
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +1 -1
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +1 -1
  24. package/dist/components/vue-ui-candlestick.js +1 -1
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +1 -1
  27. package/dist/components/vue-ui-chord.js +1 -1
  28. package/dist/components/vue-ui-circle-pack.js +1 -1
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dag.js +1 -1
  31. package/dist/components/vue-ui-dashboard.js +1 -1
  32. package/dist/components/vue-ui-digits.js +1 -1
  33. package/dist/components/vue-ui-donut-evolution.js +1 -1
  34. package/dist/components/vue-ui-donut.js +1 -1
  35. package/dist/components/vue-ui-dumbbell.js +1 -1
  36. package/dist/components/vue-ui-flow.js +1 -1
  37. package/dist/components/vue-ui-funnel.js +1 -1
  38. package/dist/components/vue-ui-galaxy.js +1 -1
  39. package/dist/components/vue-ui-gauge.js +1 -1
  40. package/dist/components/vue-ui-geo.js +1 -1
  41. package/dist/components/vue-ui-gizmo.js +1 -1
  42. package/dist/components/vue-ui-heatmap.js +1 -1
  43. package/dist/components/vue-ui-history-plot.js +1 -1
  44. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  45. package/dist/components/vue-ui-icon.js +1 -1
  46. package/dist/components/vue-ui-kpi.js +1 -1
  47. package/dist/components/vue-ui-mini-loader.js +1 -1
  48. package/dist/components/vue-ui-molecule.js +1 -1
  49. package/dist/components/vue-ui-mood-radar.js +1 -1
  50. package/dist/components/vue-ui-nested-donuts.js +1 -1
  51. package/dist/components/vue-ui-onion.js +1 -1
  52. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  53. package/dist/components/vue-ui-quadrant.js +1 -1
  54. package/dist/components/vue-ui-quick-chart.js +1 -1
  55. package/dist/components/vue-ui-radar.js +1 -1
  56. package/dist/components/vue-ui-rating.js +1 -1
  57. package/dist/components/vue-ui-relation-circle.js +1 -1
  58. package/dist/components/vue-ui-ridgeline.js +1 -1
  59. package/dist/components/vue-ui-rings.js +1 -1
  60. package/dist/components/vue-ui-scatter.js +1 -1
  61. package/dist/components/vue-ui-skeleton.js +1 -1
  62. package/dist/components/vue-ui-smiley.js +1 -1
  63. package/dist/components/vue-ui-spark-trend.js +1 -1
  64. package/dist/components/vue-ui-sparkbar.js +1 -1
  65. package/dist/components/vue-ui-sparkgauge.js +1 -1
  66. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  67. package/dist/components/vue-ui-sparkline.js +1 -1
  68. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  69. package/dist/components/vue-ui-stackbar.js +1 -1
  70. package/dist/components/vue-ui-stackline.js +1 -1
  71. package/dist/components/vue-ui-strip-plot.js +1 -1
  72. package/dist/components/vue-ui-table-heatmap.js +1 -1
  73. package/dist/components/vue-ui-table-sparkline.js +1 -1
  74. package/dist/components/vue-ui-table.js +1 -1
  75. package/dist/components/vue-ui-thermometer.js +1 -1
  76. package/dist/components/vue-ui-timer.js +1 -1
  77. package/dist/components/vue-ui-tiremarks.js +1 -1
  78. package/dist/components/vue-ui-treemap.js +1 -1
  79. package/dist/components/vue-ui-vertical-bar.js +1 -1
  80. package/dist/components/vue-ui-waffle.js +1 -1
  81. package/dist/components/vue-ui-wheel.js +1 -1
  82. package/dist/components/vue-ui-word-cloud.js +1 -1
  83. package/dist/components/vue-ui-world.js +1 -1
  84. package/dist/components/vue-ui-xy-canvas.js +1 -1
  85. package/dist/components/vue-ui-xy.js +1 -1
  86. package/dist/{dom-to-png-Cm7R2Zu2.js → dom-to-png-C2K57N1M.js} +1 -1
  87. package/dist/{img-BJzUSmkm.js → img-DKigoPDs.js} +1 -1
  88. package/dist/labelUtils-PMU3ZGCb.js +30 -0
  89. package/dist/{lib-W9waxHL3.js → lib-BwysEpWI.js} +81 -77
  90. package/dist/{pdf-BJR-8Moh.js → pdf-BHGnVnBG.js} +1 -1
  91. package/dist/style.css +1 -1
  92. package/dist/types/vue-data-ui.d.ts +20 -0
  93. package/dist/{useAutoSizeLabelsInsideViewbox-DAdqpHf1.js → useAutoSizeLabelsInsideViewbox-DO2dxQ78.js} +1 -1
  94. package/dist/{useNestedProp-D-jUHecl.js → useNestedProp--5lL-kf1.js} +209 -197
  95. package/dist/{usePrinter-DhoMn87n.js → usePrinter-BJzHDpYF.js} +2 -2
  96. package/dist/{vue-data-ui-B2w3blNC.js → vue-data-ui-DE3O1T8n.js} +67 -67
  97. package/dist/vue-data-ui.js +83 -83
  98. package/dist/{vue-ui-3d-bar-Cpp-5jo0.js → vue-ui-3d-bar-CVvhPzdH.js} +6 -6
  99. package/dist/{vue-ui-accordion-B6BX2vhq.js → vue-ui-accordion-tQNKwbVi.js} +3 -3
  100. package/dist/{vue-ui-age-pyramid-BH8z1r48.js → vue-ui-age-pyramid-DxTHqM7w.js} +25 -25
  101. package/dist/{vue-ui-annotator-DB6dpuUU.js → vue-ui-annotator-Da5aL57a.js} +7 -7
  102. package/dist/{vue-ui-bullet-CmLA4Lxs.js → vue-ui-bullet-DhpTML7L.js} +22 -22
  103. package/dist/{vue-ui-candlestick-IspjAN-a.js → vue-ui-candlestick-BDOKQqMm.js} +85 -85
  104. package/dist/{vue-ui-carousel-table-9mdO6mvP.js → vue-ui-carousel-table-BW6bKPsX.js} +13 -13
  105. package/dist/{vue-ui-chestnut-CC1bTcaA.js → vue-ui-chestnut-Cc-lke6P.js} +31 -31
  106. package/dist/{vue-ui-chord-B0pp0mDm.js → vue-ui-chord-CB6w31Ex.js} +8 -8
  107. package/dist/{vue-ui-circle-pack-CWhq37at.js → vue-ui-circle-pack-CfihOmNV.js} +6 -6
  108. package/dist/{vue-ui-cursor-DOWNTk2K.js → vue-ui-cursor-Dnpe76BQ.js} +3 -3
  109. package/dist/{vue-ui-dag-DlLdvPIA.js → vue-ui-dag-Dq3hKon7.js} +7 -7
  110. package/dist/{vue-ui-dashboard-BRAyn8IO.js → vue-ui-dashboard-eMwyGsuD.js} +68 -68
  111. package/dist/{vue-ui-digits-DQz1eJc-.js → vue-ui-digits-B5QhIbFD.js} +2 -2
  112. package/dist/vue-ui-donut-D3---CiY.js +2082 -0
  113. package/dist/{vue-ui-donut-evolution-C95OcKhs.js → vue-ui-donut-evolution-C6H1Vr6m.js} +8 -8
  114. package/dist/{vue-ui-dumbbell-L8fXdkQm.js → vue-ui-dumbbell-L1p0npq4.js} +33 -33
  115. package/dist/{vue-ui-flow-CPnYumnP.js → vue-ui-flow-CgAIlvZF.js} +38 -38
  116. package/dist/{vue-ui-funnel-BPnUog47.js → vue-ui-funnel-CpgqO34n.js} +6 -6
  117. package/dist/{vue-ui-galaxy-BjtDkIAw.js → vue-ui-galaxy-DAi1I2Cr.js} +316 -291
  118. package/dist/{vue-ui-gauge-CHqgIzG0.js → vue-ui-gauge-DY78U-uO.js} +7 -7
  119. package/dist/{vue-ui-geo-C3O4GHZF.js → vue-ui-geo-Befu6fkT.js} +20 -20
  120. package/dist/{vue-ui-gizmo-Dr0gsAOM.js → vue-ui-gizmo-BM_oOeYY.js} +3 -3
  121. package/dist/{vue-ui-heatmap-BBshmoO7.js → vue-ui-heatmap-C_ze3bzX.js} +80 -80
  122. package/dist/{vue-ui-history-plot-BiUyd40D.js → vue-ui-history-plot-C-_zpLPH.js} +50 -50
  123. package/dist/{vue-ui-horizontal-bar-BDtke67D.js → vue-ui-horizontal-bar-DvLMeP44.js} +47 -47
  124. package/dist/{vue-ui-kpi-BnCqocoi.js → vue-ui-kpi-IcOqABQz.js} +3 -3
  125. package/dist/{vue-ui-mini-loader-Dzqusv9i.js → vue-ui-mini-loader-DxlOXn6v.js} +2 -2
  126. package/dist/{vue-ui-molecule-DH-sHfQ-.js → vue-ui-molecule-N938wMMB.js} +5 -5
  127. package/dist/{vue-ui-mood-radar-BWASgbMe.js → vue-ui-mood-radar-D1hHnpLB.js} +7 -7
  128. package/dist/{vue-ui-nested-donuts-4ey-UxN-.js → vue-ui-nested-donuts-DeTGEb4T.js} +597 -595
  129. package/dist/{vue-ui-onion-40DoblSj.js → vue-ui-onion-BwY998zT.js} +376 -332
  130. package/dist/{vue-ui-parallel-coordinate-plot-BIV0-SLG.js → vue-ui-parallel-coordinate-plot-B4v3AheY.js} +43 -43
  131. package/dist/{vue-ui-quadrant-Dvuwg4h7.js → vue-ui-quadrant-4f1p9gSO.js} +8 -8
  132. package/dist/{vue-ui-quick-chart-CZgZOWsW.js → vue-ui-quick-chart-CGbEBTS1.js} +52 -52
  133. package/dist/{vue-ui-radar-BfoE3AZN.js → vue-ui-radar-B15r4HoM.js} +57 -57
  134. package/dist/{vue-ui-rating-BciQHmzs.js → vue-ui-rating-CaRZVE71.js} +2 -2
  135. package/dist/{vue-ui-relation-circle-EVMDQTCn.js → vue-ui-relation-circle-CFEL1uYt.js} +7 -7
  136. package/dist/{vue-ui-ridgeline-BO-JV7Qz.js → vue-ui-ridgeline-LGH61-xE.js} +8 -8
  137. package/dist/{vue-ui-rings-B0wMY8Cu.js → vue-ui-rings-DNdUdKax.js} +270 -246
  138. package/dist/{vue-ui-scatter-CyjpTjlf.js → vue-ui-scatter-Duxs0Ie_.js} +8 -8
  139. package/dist/{vue-ui-skeleton-C8Aq8dTp.js → vue-ui-skeleton-UoBAzUyN.js} +3 -3
  140. package/dist/{vue-ui-smiley-C0Bqip2_.js → vue-ui-smiley-BhpJbcM8.js} +2 -2
  141. package/dist/{vue-ui-spark-trend-B1pD2N9Z.js → vue-ui-spark-trend-2c75iF9Y.js} +96 -96
  142. package/dist/{vue-ui-sparkbar-DFlGdgrX.js → vue-ui-sparkbar-B2E5nzBF.js} +3 -3
  143. package/dist/{vue-ui-sparkgauge-BMRbWZ_X.js → vue-ui-sparkgauge-DFkpaMkk.js} +13 -13
  144. package/dist/{vue-ui-sparkhistogram-jI9-0GyS.js → vue-ui-sparkhistogram-K6lo-KnY.js} +4 -4
  145. package/dist/{vue-ui-sparkline-DLB7uHga.js → vue-ui-sparkline-CsByZZt4.js} +11 -11
  146. package/dist/{vue-ui-sparkstackbar-E8mYJ8eg.js → vue-ui-sparkstackbar-ByUb6nk-.js} +3 -3
  147. package/dist/{vue-ui-stackbar-zhHYnvVo.js → vue-ui-stackbar-D7SnQvr4.js} +41 -41
  148. package/dist/{vue-ui-stackline-rFr4hLbc.js → vue-ui-stackline-BnRxf3k_.js} +130 -130
  149. package/dist/{vue-ui-strip-plot-DA8uwUaL.js → vue-ui-strip-plot-CJWXdisu.js} +28 -28
  150. package/dist/{vue-ui-table-CldDVgkf.js → vue-ui-table-BHWwypkc.js} +27 -27
  151. package/dist/{vue-ui-table-heatmap-CDnzIKGy.js → vue-ui-table-heatmap-DvHKKwJA.js} +12 -12
  152. package/dist/{vue-ui-table-sparkline-D3XfL4kK.js → vue-ui-table-sparkline-uK0q-dO9.js} +11 -11
  153. package/dist/{vue-ui-thermometer-CU86DLRC.js → vue-ui-thermometer-Bxn0JNeJ.js} +31 -31
  154. package/dist/{vue-ui-timer-CPZBXUbs.js → vue-ui-timer-7o5Jrxf3.js} +5 -5
  155. package/dist/{vue-ui-tiremarks-CLiEtCKe.js → vue-ui-tiremarks-DHoUaHOe.js} +6 -6
  156. package/dist/{vue-ui-treemap-Dht5s1nE.js → vue-ui-treemap-B_4cIAAI.js} +51 -51
  157. package/dist/{vue-ui-waffle-BQM8XJln.js → vue-ui-waffle-CddfqNWD.js} +381 -352
  158. package/dist/{vue-ui-wheel-CX-gWpDL.js → vue-ui-wheel-CGYJA-33.js} +6 -6
  159. package/dist/{vue-ui-word-cloud-dolAsuyP.js → vue-ui-word-cloud-oszTieHn.js} +32 -32
  160. package/dist/{vue-ui-world-su4gjhTo.js → vue-ui-world-DQjHEyKe.js} +31 -31
  161. package/dist/{vue-ui-xy-BSBAegJ1.js → vue-ui-xy-D5A8tR-O.js} +9 -9
  162. package/dist/{vue-ui-xy-canvas-9tgX_s2v.js → vue-ui-xy-canvas-Bzd8pZdH.js} +100 -100
  163. package/package.json +1 -1
  164. package/dist/vue-ui-donut-BjSuCwQE.js +0 -2078
@@ -1,41 +1,42 @@
1
- import { defineAsyncComponent as z, computed as k, ref as v, toRefs as Cl, watch as ae, onMounted as kl, shallowRef as kt, onBeforeUnmount as wl, createElementBlock as r, openBlock as n, unref as i, normalizeStyle as he, normalizeClass as M, createBlock as U, createCommentVNode as L, createElementVNode as g, createVNode as Pe, withCtx as p, renderSlot as y, normalizeProps as O, guardReactiveProps as N, createSlots as wt, Fragment as x, renderList as F, toDisplayString as P, withDirectives as At, vShow as $t, Teleport as Al, resolveDynamicComponent as $l, mergeProps as Ll, createTextVNode as Lt, nextTick as _t } from "vue";
2
- import { c as _l, t as xl, i as Fl, p as Ve, a0 as Be, o as Tl, g as J, j as Sl, a6 as R, l as Dl, a2 as ze, a as oe, d as D, X as Ol, s as Nl, F as xt, a4 as Me, a5 as K, x as Ft, u as Il, q as El, Z as Pl, af as Tt, T as Ue } from "./lib-W9waxHL3.js";
3
- import { t as Vl, u as Bl } from "./useResponsive-DfdjqQps.js";
4
- import { u as zl, a as Re } from "./useNestedProp-D-jUHecl.js";
5
- import { u as Ml, B as Ul } from "./BaseScanner-BMpwQAfz.js";
6
- import { u as Rl } from "./usePrinter-DhoMn87n.js";
7
- import { u as Gl } from "./useSvgExport-ByUukOZt.js";
8
- import { u as Yl } from "./useThemeCheck-DGJ31Vi5.js";
9
- import { u as Wl } from "./useUserOptionState-BIvW1Kz7.js";
10
- import { u as Xl } from "./useChartAccessibility-9icAAmYg.js";
11
- import ql from "./img-BJzUSmkm.js";
12
- import Hl from "./Title-DFtCaCah.js";
13
- import jl from "./Legend-Dxz13z4E.js";
1
+ import { defineAsyncComponent as B, computed as k, ref as v, toRefs as wl, watch as oe, onMounted as Al, shallowRef as kt, onBeforeUnmount as $l, createElementBlock as r, openBlock as n, unref as c, normalizeStyle as he, normalizeClass as H, createBlock as z, createCommentVNode as L, createElementVNode as g, createVNode as Ie, withCtx as p, renderSlot as y, normalizeProps as S, guardReactiveProps as O, createSlots as wt, Fragment as x, renderList as T, toDisplayString as M, withDirectives as At, vShow as $t, Teleport as Ll, resolveDynamicComponent as _l, mergeProps as Fl, createTextVNode as Lt, nextTick as _t } from "vue";
2
+ import { c as xl, t as Tl, i as Dl, j as Ee, a1 as Ve, o as Sl, g as K, k as Ol, a7 as U, m as Nl, a3 as Be, a as fe, d as N, X as Pl, s as Il, G as Ft, a5 as xt, a6 as be, p as Tt, y as Dt, v as El, r as Vl, _ as Bl, ag as St, U as ze } from "./lib-BwysEpWI.js";
3
+ import { b as zl } from "./labelUtils-PMU3ZGCb.js";
4
+ import { t as Ml, u as Ul } from "./useResponsive-DfdjqQps.js";
5
+ import { u as Rl, a as Me } from "./useNestedProp--5lL-kf1.js";
6
+ import { u as Gl, B as Yl } from "./BaseScanner-BMpwQAfz.js";
7
+ import { u as Wl } from "./usePrinter-BJzHDpYF.js";
8
+ import { u as Xl } from "./useSvgExport-ByUukOZt.js";
9
+ import { u as Hl } from "./useThemeCheck-DGJ31Vi5.js";
10
+ import { u as ql } from "./useUserOptionState-BIvW1Kz7.js";
11
+ import { u as jl } from "./useChartAccessibility-9icAAmYg.js";
12
+ import Jl from "./img-DKigoPDs.js";
13
+ import Kl from "./Title-BhURirpm.js";
14
+ import Ql from "./Legend-D6z73edh.js";
14
15
  import { _ as Zl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { donut: { emptyFill: "#3A3A3A" }, labels: { dataLabels: { color: "#CCCCCC" } } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Dt = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { labels: { dataLabels: { color: "#424242" } } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Ot = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { labels: { dataLabels: { color: "#BDBDBD" } } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, Nt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { labels: { dataLabels: { color: "#AACCAA" } } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, It = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { labels: { dataLabels: { color: "#A0AC94" } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, Et = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { labels: { dataLabels: { color: "#61747E" } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Pt = {
16
+ const Ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { donut: { emptyFill: "#3A3A3A" }, labels: { dataLabels: { color: "#CCCCCC" } } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Nt = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { labels: { dataLabels: { color: "#424242" } } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Pt = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { labels: { dataLabels: { color: "#BDBDBD" } } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, It = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { labels: { dataLabels: { color: "#AACCAA" } } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, Et = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { labels: { dataLabels: { color: "#A0AC94" } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, Vt = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { labels: { dataLabels: { color: "#61747E" } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Bt = {
16
17
  default: {},
17
- dark: St,
18
- celebration: Dt,
19
- celebrationNight: Ot,
20
- hack: Nt,
21
- zen: It,
22
- concrete: Et
23
- }, Ya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18
+ dark: Ot,
19
+ celebration: Nt,
20
+ celebrationNight: Pt,
21
+ hack: It,
22
+ zen: Et,
23
+ concrete: Vt
24
+ }, Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
24
25
  __proto__: null,
25
- celebration: Dt,
26
- celebrationNight: Ot,
27
- concrete: Et,
28
- dark: St,
29
- default: Pt,
30
- hack: Nt,
31
- zen: It
32
- }, Symbol.toStringTag, { value: "Module" })), Jl = ["id"], Kl = ["id"], Ql = ["xmlns", "viewBox"], ea = ["width", "height"], ta = ["id"], la = ["offset", "stop-color"], aa = ["offset", "stop-opacity"], oa = ["id"], sa = ["id"], na = ["id"], ua = ["flood-color"], ra = ["id", "d"], ia = ["d", "fill", "stroke", "stroke-width", "filter"], da = ["d", "fill", "stroke", "stroke-width"], ca = { key: 1 }, va = ["d", "fill"], ha = { key: 2 }, fa = ["font-size", "font-weight", "fill", "dy"], ba = ["href"], ga = ["x", "y", "font-size", "font-weight", "fill"], pa = { key: 3 }, ya = ["filter"], ma = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ca = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], ka = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], wa = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], Aa = {
26
+ celebration: Nt,
27
+ celebrationNight: Pt,
28
+ concrete: Vt,
29
+ dark: Ot,
30
+ default: Bt,
31
+ hack: It,
32
+ zen: Et
33
+ }, Symbol.toStringTag, { value: "Module" })), ea = ["id"], ta = ["id"], la = ["xmlns", "viewBox"], aa = ["width", "height"], oa = ["id"], sa = ["offset", "stop-color"], na = ["offset", "stop-opacity"], ua = ["id"], ra = ["id"], ia = ["id"], ca = ["flood-color"], da = ["id", "d"], va = ["d", "fill", "stroke", "stroke-width", "filter"], ha = ["d", "fill", "stroke", "stroke-width"], fa = { key: 1 }, ba = ["d", "fill"], ga = { key: 2 }, pa = ["font-size", "font-weight", "fill", "dy"], ya = ["href"], ma = ["x", "y", "font-size", "font-weight", "fill"], Ca = { key: 3 }, ka = ["filter"], wa = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Aa = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], $a = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], La = {
33
34
  key: 4,
34
35
  class: "vue-data-ui-watermark"
35
- }, $a = ["id"], La = {
36
+ }, _a = ["id"], Fa = {
36
37
  key: 0,
37
38
  class: "vue-ui-nested-donuts-legend-title"
38
- }, _a = ["onClick"], xa = ["innerHTML"], Fa = {
39
+ }, xa = ["onClick"], Ta = ["innerHTML"], Da = {
39
40
  __name: "vue-ui-nested-donuts",
40
41
  props: {
41
42
  config: {
@@ -52,19 +53,19 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
52
53
  }
53
54
  },
54
55
  emits: ["selectLegend", "selectDatapoint"],
55
- setup(Vt, { expose: Bt, emit: zt }) {
56
- const Mt = z(() => import("./Tooltip-B79qvriT.js")), Ut = z(() => import("./BaseIcon-r3_sTK1A.js")), Rt = z(() => import("./vue-ui-accordion-B6BX2vhq.js")), Gt = z(() => import("./DataTable-DNeCys3I.js")), Yt = z(() => import("./UserOptions-B-2A_KRb.js")), Wt = z(() => import("./PenAndPaper-CsqBamFZ.js")), Xt = z(() => import("./PackageVersion-DPLuuWzw.js")), qt = z(() => import("./BaseDraggableDialog-C167SnU0.js")), { vue_ui_nested_donuts: Ht } = zl(), { isThemeValid: jt, warnInvalidTheme: Zt } = Yl(), w = Vt, fe = k({
56
+ setup(zt, { expose: Mt, emit: Ut }) {
57
+ const Rt = B(() => import("./Tooltip-TDyKgLB6.js")), Gt = B(() => import("./BaseIcon-4i3dd7Ty.js")), Yt = B(() => import("./vue-ui-accordion-tQNKwbVi.js")), Wt = B(() => import("./DataTable-WrXCJkfE.js")), Xt = B(() => import("./UserOptions-CzJWRC4s.js")), Ht = B(() => import("./PenAndPaper-DxIUvoQ8.js")), qt = B(() => import("./PackageVersion-D3cMhAlf.js")), jt = B(() => import("./BaseDraggableDialog-CAJxIF6g.js")), { vue_ui_nested_donuts: Jt } = Rl(), { isThemeValid: Kt, warnInvalidTheme: Qt } = Hl(), w = zt, ge = k({
57
58
  get() {
58
59
  return !!w.dataset && w.dataset.length;
59
60
  },
60
61
  set(t) {
61
62
  return t;
62
63
  }
63
- }), b = v(_l()), be = v(!1), ge = v(""), pe = v(null), Ge = v(0), I = v(null), Ye = v(null), ye = v(null), We = v(null), Xe = v(null), qe = v(0), He = v(0), je = v(0), G = v(!0), Y = v([]), Q = v([]), Ze = v(!1), ee = v(null), me = v(null), W = v(!1);
64
- function Je(t) {
65
- W.value = t, Ge.value += 1;
64
+ }), b = v(xl()), pe = v(!1), ye = v(""), me = v(null), Ue = v(0), P = v(null), Re = v(null), Ce = v(null), Ge = v(null), Ye = v(null), We = v(0), Xe = v(0), He = v(0), R = v(!0), G = v([]), Q = v([]), qe = v(!1), Z = v(null), ke = v(null), Y = v(!1);
65
+ function je(t) {
66
+ Y.value = t, Ue.value += 1;
66
67
  }
67
- const e = v(Ae()), Ke = {
68
+ const e = v(Le()), Je = {
68
69
  name: "",
69
70
  series: [
70
71
  {
@@ -83,17 +84,17 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
83
84
  color: "#CACACA"
84
85
  }
85
86
  ]
86
- }, { loading: Ce, FINAL_DATASET: X, manualLoading: ke } = Ml({
87
- ...Cl(w),
87
+ }, { loading: we, FINAL_DATASET: W, manualLoading: Ae } = Gl({
88
+ ...wl(w),
88
89
  FINAL_CONFIG: e,
89
- prepareConfig: Ae,
90
+ prepareConfig: Le,
90
91
  callback: () => {
91
92
  Promise.resolve().then(async () => {
92
- await lt();
93
+ await et();
93
94
  });
94
95
  },
95
- skeletonDataset: [Ke, Ke],
96
- skeletonConfig: xl({
96
+ skeletonDataset: [Je, Je],
97
+ skeletonConfig: Tl({
97
98
  defaultConfig: e.value,
98
99
  userConfig: {
99
100
  useCssAnimation: !1,
@@ -119,165 +120,165 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
119
120
  }
120
121
  }
121
122
  })
122
- }), { userOptionsVisible: we, setUserOptionsVisibility: Qe, keepUserOptionState: et } = Wl({ config: e.value }), { svgRef: te } = Xl({
123
+ }), { userOptionsVisible: $e, setUserOptionsVisibility: Ke, keepUserOptionState: Qe } = ql({ config: e.value }), { svgRef: ee } = jl({
123
124
  config: e.value.style.chart.title
124
125
  });
125
- function Ae() {
126
- const t = Re({
126
+ function Le() {
127
+ const t = Me({
127
128
  userConfig: w.config,
128
- defaultConfig: Ht
129
+ defaultConfig: Jt
129
130
  });
130
131
  let s = {};
131
- const a = t.theme;
132
- if (a)
133
- if (!jt.value(t))
134
- Zt(t), s = t;
132
+ const l = t.theme;
133
+ if (l)
134
+ if (!Kt.value(t))
135
+ Qt(t), s = t;
135
136
  else {
136
- const o = Re({
137
- userConfig: Pt[a] || w.config,
137
+ const o = Me({
138
+ userConfig: Bt[l] || w.config,
138
139
  defaultConfig: t
139
140
  });
140
141
  s = {
141
- ...Re({
142
+ ...Me({
142
143
  userConfig: w.config,
143
144
  defaultConfig: o
144
145
  }),
145
- customPalette: t.customPalette.length ? t.customPalette : Fl[a] || Ve
146
+ customPalette: t.customPalette.length ? t.customPalette : Dl[l] || Ee
146
147
  };
147
148
  }
148
149
  else
149
150
  s = t;
150
- return w.config && Be(w.config, "events.datapointEnter") ? s.events.datapointEnter = w.config.events.datapointEnter : s.events.datapointEnter = null, w.config && Be(w.config, "events.datapointLeave") ? s.events.datapointLeave = w.config.events.datapointLeave : s.events.datapointLeave = null, w.config && Be(w.config, "events.datapointClick") ? s.events.datapointClick = w.config.events.datapointClick : s.events.datapointClick = null, s;
151
+ return w.config && Ve(w.config, "events.datapointEnter") ? s.events.datapointEnter = w.config.events.datapointEnter : s.events.datapointEnter = null, w.config && Ve(w.config, "events.datapointLeave") ? s.events.datapointLeave = w.config.events.datapointLeave : s.events.datapointLeave = null, w.config && Ve(w.config, "events.datapointClick") ? s.events.datapointClick = w.config.events.datapointClick : s.events.datapointClick = null, s;
151
152
  }
152
- ae(
153
+ oe(
153
154
  () => w.config,
154
155
  (t) => {
155
- Ce.value || (e.value = Ae()), we.value = !e.value.userOptions.showOnChartHover, at(), qe.value += 1, He.value += 1, je.value += 1, _.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, _.value.showTable = e.value.table.show, _.value.showTooltip = e.value.style.chart.tooltip.show, h.value.width = e.value.style.chart.width, h.value.height = e.value.style.chart.height;
156
+ we.value || (e.value = Le()), $e.value = !e.value.userOptions.showOnChartHover, tt(), We.value += 1, Xe.value += 1, He.value += 1, _.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, _.value.showTable = e.value.table.show, _.value.showTooltip = e.value.style.chart.tooltip.show, h.value.width = e.value.style.chart.width, h.value.height = e.value.style.chart.height;
156
157
  },
157
158
  { deep: !0 }
158
159
  );
159
- const tt = k(() => {
160
- const { top: t, right: s, bottom: a, left: o } = e.value.style.chart.padding;
160
+ const Ze = k(() => {
161
+ const { top: t, right: s, bottom: l, left: o } = e.value.style.chart.padding;
161
162
  return {
162
- css: `padding:${t}px ${s}px ${a}px ${o}px`,
163
+ css: `padding:${t}px ${s}px ${l}px ${o}px`,
163
164
  top: t,
164
165
  right: s,
165
- bottom: a,
166
+ bottom: l,
166
167
  left: o
167
168
  };
168
169
  });
169
- function Jt(t, s = 1e3, a = 50) {
170
+ function Zt(t, s = 1e3, l = 50) {
170
171
  return new Promise((o) => {
171
- const l = t.length;
172
- Y.value = Array(l).fill(0), Q.value = [];
172
+ const a = t.length;
173
+ G.value = Array(a).fill(0), Q.value = [];
173
174
  let u = 0;
174
- t.forEach((c, f) => {
175
+ t.forEach((d, f) => {
175
176
  setTimeout(() => {
176
- const A = performance.now();
177
- function d(m) {
178
- const T = Math.min((m - A) / s, 1), Te = Tt(T), Se = c * Te;
179
- Y.value[f] = Se, Y.value = [...Y.value];
180
- const ce = [];
177
+ const $ = performance.now();
178
+ function i(C) {
179
+ const F = Math.min((C - $) / s, 1), le = St(F), ae = d * le;
180
+ G.value[f] = ae, G.value = [...G.value];
181
+ const de = [];
181
182
  let De = 0;
182
- w.dataset.forEach((ve, Oe) => {
183
- const gl = Ue(ve.series.reduce(
184
- (Ie, Ee) => Ie + Ue(R(Ee.values).reduce((yl, ml) => yl + ml, 0)),
183
+ w.dataset.forEach((ve, Se) => {
184
+ const yl = ze(ve.series.reduce(
185
+ (Ne, Pe) => Ne + ze(U(Pe.values).reduce((Cl, kl) => Cl + kl, 0)),
185
186
  0
186
- )), pl = Ue(Y.value.slice(De, De + ve.series.length).reduce((Ie, Ee) => Ie + Ee, 0)), Ne = gl - pl;
187
- Ne > Number.MIN_VALUE && ce.push({
187
+ )), ml = ze(G.value.slice(De, De + ve.series.length).reduce((Ne, Pe) => Ne + Pe, 0)), Oe = yl - ml;
188
+ Oe > Number.MIN_VALUE && de.push({
188
189
  name: "__ghost__",
189
190
  arcOf: ve.name,
190
- arcOfId: `${b.value}_${Oe}`,
191
- id: `ghost_${b.value}_${Oe}`,
191
+ arcOfId: `${b.value}_${Se}`,
192
+ id: `ghost_${b.value}_${Se}`,
192
193
  seriesIndex: -1,
193
- datasetIndex: Oe,
194
+ datasetIndex: Se,
194
195
  color: "transparent",
195
- value: Ne,
196
- fullValue: Ne,
196
+ value: Oe,
197
+ fullValue: Oe,
197
198
  absoluteValues: [],
198
199
  ghost: !0
199
200
  }), De += ve.series.length;
200
- }), Q.value = ce, T < 1 ? requestAnimationFrame(d) : (u += 1, u === l && o());
201
+ }), Q.value = de, F < 1 ? requestAnimationFrame(i) : (u += 1, u === a && o());
201
202
  }
202
- requestAnimationFrame(d);
203
- }, f * a);
203
+ requestAnimationFrame(i);
204
+ }, f * l);
204
205
  });
205
206
  });
206
207
  }
207
- async function lt() {
208
+ async function et() {
208
209
  if (e.value.startAnimation?.show) {
209
- const s = X.value.flatMap((a) => a.series).map(
210
- (a) => R(a.values).reduce((o, l) => o + l, 0)
210
+ const s = W.value.flatMap((l) => l.series).map(
211
+ (l) => U(l.values).reduce((o, a) => o + a, 0)
211
212
  );
212
- Y.value = s.map(() => 0), G.value = !0, Q.value = X.value.map((a, o) => {
213
- const l = a.series.reduce(
214
- (u, c) => u + R(c.values).reduce((f, A) => f + A, 0),
213
+ G.value = s.map(() => 0), R.value = !0, Q.value = W.value.map((l, o) => {
214
+ const a = l.series.reduce(
215
+ (u, d) => u + U(d.values).reduce((f, $) => f + $, 0),
215
216
  0
216
217
  );
217
218
  return {
218
219
  name: "__ghost__",
219
- arcOf: a.name,
220
+ arcOf: l.name,
220
221
  arcOfId: `${b.value}_${o}`,
221
222
  id: `ghost_${b.value}_${o}`,
222
223
  seriesIndex: -1,
223
224
  datasetIndex: o,
224
225
  color: "transparent",
225
- value: l,
226
- fullValue: l,
226
+ value: a,
227
+ fullValue: a,
227
228
  absoluteValues: [],
228
229
  ghost: !0
229
230
  };
230
- }), await _t(), Jt(
231
+ }), await _t(), Zt(
231
232
  s,
232
233
  e.value.startAnimation.durationMs,
233
234
  e.value.startAnimation.staggerMs
234
235
  ).then(() => {
235
- G.value = !1, Q.value = [];
236
+ R.value = !1, Q.value = [];
236
237
  });
237
238
  } else
238
- G.value = !1;
239
+ R.value = !1;
239
240
  }
240
- kl(async () => {
241
- Ze.value = !0, at(), await lt();
241
+ Al(async () => {
242
+ qe.value = !0, tt(), await et();
242
243
  });
243
- const V = kt(null), H = kt(null), j = k(() => !!e.value.debug);
244
- function at() {
245
- if (Tl(w.dataset) ? (J({
244
+ const E = kt(null), q = kt(null), j = k(() => !!e.value.debug);
245
+ function tt() {
246
+ if (Sl(w.dataset) ? (K({
246
247
  componentName: "VueUiNestedDonuts",
247
248
  type: "dataset",
248
249
  debug: j.value
249
- }), fe.value = !1, ke.value = !0) : ke.value = e.value.loading, e.value.responsive) {
250
- const t = Vl(() => {
251
- const { width: s, height: a } = Bl({
252
- chart: I.value,
253
- title: e.value.style.chart.title.text ? Ye.value : null,
254
- legend: e.value.style.chart.legend.show ? ye.value : null,
255
- source: We.value,
256
- noTitle: Xe.value,
257
- padding: tt.value
250
+ }), ge.value = !1, Ae.value = !0) : Ae.value = e.value.loading, e.value.responsive) {
251
+ const t = Ml(() => {
252
+ const { width: s, height: l } = Ul({
253
+ chart: P.value,
254
+ title: e.value.style.chart.title.text ? Re.value : null,
255
+ legend: e.value.style.chart.legend.show ? Ce.value : null,
256
+ source: Ge.value,
257
+ noTitle: Ye.value,
258
+ padding: Ze.value
258
259
  });
259
260
  requestAnimationFrame(() => {
260
- h.value.width = s, h.value.height = a;
261
+ h.value.width = s, h.value.height = l;
261
262
  });
262
263
  });
263
- V.value && (H.value && V.value.unobserve(H.value), V.value.disconnect()), V.value = new ResizeObserver(t), H.value = I.value.parentNode, V.value.observe(H.value);
264
+ E.value && (q.value && E.value.unobserve(q.value), E.value.disconnect()), E.value = new ResizeObserver(t), q.value = P.value.parentNode, E.value.observe(q.value);
264
265
  }
265
266
  }
266
- wl(() => {
267
- V.value && (H.value && V.value.unobserve(H.value), V.value.disconnect());
267
+ $l(() => {
268
+ E.value && (q.value && E.value.unobserve(q.value), E.value.disconnect());
268
269
  });
269
- const { isPrinting: ot, isImaging: st, generatePdf: nt, generateImage: ut } = Rl({
270
+ const { isPrinting: lt, isImaging: at, generatePdf: ot, generateImage: st } = Wl({
270
271
  elementId: `nested_donuts_${b.value}`,
271
272
  fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
272
273
  options: e.value.userOptions.print
273
- }), Kt = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Qt = k(() => Sl(e.value.customPalette)), _ = v({
274
+ }), el = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), tl = k(() => Ol(e.value.customPalette)), _ = v({
274
275
  dataLabels: {
275
276
  show: e.value.style.chart.layout.labels.dataLabels.show
276
277
  },
277
278
  showTable: e.value.table.show,
278
279
  showTooltip: e.value.style.chart.tooltip.show
279
280
  });
280
- ae(e, () => {
281
+ oe(e, () => {
281
282
  _.value = {
282
283
  dataLabels: {
283
284
  show: e.value.style.chart.layout.labels.dataLabels.show
@@ -289,184 +290,184 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
289
290
  const h = v({
290
291
  width: e.value.style.chart.width,
291
292
  height: e.value.style.chart.height
292
- }), rt = zt;
293
- function el({ datapoint: t, index: s, seriesIndex: a }) {
294
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a }), rt("selectDatapoint", { datapoint: t, index: s });
293
+ }), nt = Ut;
294
+ function ll({ datapoint: t, index: s, seriesIndex: l }) {
295
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l }), nt("selectDatapoint", { datapoint: t, index: s });
295
296
  }
296
- function it({
297
+ function ut({
297
298
  from: t,
298
299
  to: s,
299
- duration: a,
300
+ duration: l,
300
301
  onUpdate: o,
301
- onDone: l,
302
- easing: u = Tt
302
+ onDone: a,
303
+ easing: u = St
303
304
  }) {
304
- const c = performance.now();
305
- function f(A) {
306
- const d = Math.min((A - c) / a, 1), m = u(d), T = t + (s - t) * m;
307
- o(T, d), d < 1 ? requestAnimationFrame(f) : (o(s, 1), l && l());
305
+ const d = performance.now();
306
+ function f($) {
307
+ const i = Math.min(($ - d) / l, 1), C = u(i), F = t + (s - t) * C;
308
+ o(F, i), i < 1 ? requestAnimationFrame(f) : (o(s, 1), a && a());
308
309
  }
309
310
  requestAnimationFrame(f);
310
311
  }
311
- const C = v([]), S = k(() => {
312
- Ce.value, X.value.forEach((s, a) => {
313
- [null, void 0].includes(s.name) && J({
312
+ const m = v([]), D = k(() => {
313
+ we.value, W.value.forEach((s, l) => {
314
+ [null, void 0].includes(s.name) && K({
314
315
  componentName: "VueUiNestedDonuts",
315
316
  type: "datasetSerieAttribute",
316
317
  property: "name",
317
- index: a,
318
+ index: l,
318
319
  debug: j.value
319
- }), [null, void 0].includes(s.series) ? J({
320
+ }), [null, void 0].includes(s.series) ? K({
320
321
  componentName: "VueUiNestedDonuts",
321
322
  type: "datasetSerieAttribute",
322
323
  property: "series",
323
- index: a,
324
+ index: l,
324
325
  debug: j.value
325
- }) : s.series.length === 0 ? J({
326
+ }) : s.series.length === 0 ? K({
326
327
  componentName: "VueUiNestedDonuts",
327
328
  type: "datasetAttributeEmpty",
328
- property: `series at index ${a}`,
329
+ property: `series at index ${l}`,
329
330
  debug: j.value
330
- }) : s.series.forEach((o, l) => {
331
- [null, void 0].includes(o.name) && J({
331
+ }) : s.series.forEach((o, a) => {
332
+ [null, void 0].includes(o.name) && K({
332
333
  componentName: "VueUiNestedDonuts",
333
334
  type: "datasetSerieAttribute",
334
335
  property: "name",
335
- index: l,
336
+ index: a,
336
337
  key: "serie",
337
338
  debug: j.value
338
- }), [null, void 0].includes(o.values) && J({
339
+ }), [null, void 0].includes(o.values) && K({
339
340
  componentName: "VueUiNestedDonuts",
340
341
  type: "datasetSerieAttribute",
341
342
  property: "values",
342
- index: l,
343
+ index: a,
343
344
  key: "serie",
344
345
  debug: j.value
345
346
  });
346
347
  });
347
348
  });
348
349
  let t = 0;
349
- return X.value.map((s, a) => ({
350
+ return W.value.map((s, l) => ({
350
351
  ...s,
351
- total: s.series.filter((o) => !C.value.includes(o.id)).map((o) => R(o.values).reduce((l, u) => l + u, 0)).reduce((o, l) => o + l, 0),
352
- datasetIndex: a,
353
- id: `${b.value}_${a}`,
354
- series: s.series.map((o, l) => {
355
- const u = R(o.values).reduce((c, f) => c + f, 0);
352
+ total: s.series.filter((o) => !m.value.includes(o.id)).map((o) => U(o.values).reduce((a, u) => a + u, 0)).reduce((o, a) => o + a, 0),
353
+ datasetIndex: l,
354
+ id: `${b.value}_${l}`,
355
+ series: s.series.map((o, a) => {
356
+ const u = U(o.values).reduce((d, f) => d + f, 0);
356
357
  return {
357
358
  name: o.name,
358
359
  arcOf: s.name,
359
- arcOfId: `${b.value}_${a}`,
360
- id: `${b.value}_${a}_${l}`,
361
- seriesIndex: l,
362
- datasetIndex: a,
363
- color: Dl(o.color) || Qt.value[l] || Ve[l % Ve.length],
364
- value: G.value ? Y.value[t++] ?? 0 : u,
360
+ arcOfId: `${b.value}_${l}`,
361
+ id: `${b.value}_${l}_${a}`,
362
+ seriesIndex: a,
363
+ datasetIndex: l,
364
+ color: Nl(o.color) || tl.value[a] || Ee[a % Ee.length],
365
+ value: R.value ? G.value[t++] ?? 0 : u,
365
366
  absoluteValues: o.values || []
366
367
  };
367
368
  })
368
369
  }));
369
370
  });
370
- ae(() => w.dataset, (t) => {
371
- Array.isArray(t) && t.length > 0 && (ke.value = !1);
371
+ oe(() => w.dataset, (t) => {
372
+ Array.isArray(t) && t.length > 0 && (Ae.value = !1);
372
373
  }, { immediate: !0 });
373
- const E = k(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), dt = k(() => [...S.value].map((t, s) => {
374
- const a = t.series.filter((o) => !C.value.includes(o.id)).map((o) => o.value).reduce((o, l) => o + l, 0);
374
+ const I = k(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), rt = k(() => [...D.value].map((t, s) => {
375
+ const l = t.series.filter((o) => !m.value.includes(o.id)).map((o) => o.value).reduce((o, a) => o + a, 0);
375
376
  return {
376
377
  ...t,
377
- total: a,
378
- series: t.series.filter((o) => !C.value.includes(o.id)).map((o) => ({
378
+ total: l,
379
+ series: t.series.filter((o) => !m.value.includes(o.id)).map((o) => ({
379
380
  ...o,
380
- proportion: o.value / a
381
+ proportion: o.value / l
381
382
  }))
382
383
  };
383
384
  }));
384
- function tl(t, s, a) {
385
+ function al(t, s, l) {
385
386
  let o = 0;
386
- for (let l = 0; l < t.length; l += 1)
387
- a.includes(t[l]) && (o += 1);
387
+ for (let a = 0; a < t.length; a += 1)
388
+ l.includes(t[a]) && (o += 1);
388
389
  return o < s;
389
390
  }
390
- const $ = v(dt.value);
391
- ae(
392
- () => dt.value,
393
- (t) => $.value = t
391
+ const A = v(rt.value);
392
+ oe(
393
+ () => rt.value,
394
+ (t) => A.value = t
394
395
  );
395
- function q(t) {
396
- rt("selectLegend", t);
396
+ function X(t) {
397
+ nt("selectLegend", t);
397
398
  const s = w.dataset.flatMap(
398
- (d, m) => d.series.map((T, Te) => ({
399
- value: R(T.values).reduce((Se, ce) => Se + ce, 0),
400
- id: `${b.value}_${m}_${Te}`,
401
- arcOfId: `${b.value}_${m}`
399
+ (i, C) => i.series.map((F, le) => ({
400
+ value: U(F.values).reduce((ae, de) => ae + de, 0),
401
+ id: `${b.value}_${C}_${le}`,
402
+ arcOfId: `${b.value}_${C}`
402
403
  }))
403
- ).find((d) => d.id === t.id);
404
+ ).find((i) => i.id === t.id);
404
405
  if (!s) return;
405
- const a = S.value.flatMap((d) => d.series).find((d) => d.id === t.id)?.value ?? 0, o = $.value.flatMap((d) => d.series).find((d) => d.id === t.id);
406
+ const l = D.value.flatMap((i) => i.series).find((i) => i.id === t.id)?.value ?? 0, o = A.value.flatMap((i) => i.series).find((i) => i.id === t.id);
406
407
  let u = o ? o.value : 0;
407
- const c = S.value.find(
408
- (d) => d.id === s.arcOfId
408
+ const d = D.value.find(
409
+ (i) => i.id === s.arcOfId
409
410
  );
410
- if (!c) return;
411
- const f = c.series.map((d) => d.id), A = tl(
411
+ if (!d) return;
412
+ const f = d.series.map((i) => i.id), $ = al(
412
413
  f,
413
414
  f.length - 1,
414
- C.value
415
+ m.value
415
416
  );
416
- C.value.includes(t.id) ? (C.value = C.value.filter((d) => d !== t.id), e.value.serieToggleAnimation.show ? it({
417
+ m.value.includes(t.id) ? (m.value = m.value.filter((i) => i !== t.id), e.value.serieToggleAnimation.show ? ut({
417
418
  from: u,
418
- to: a,
419
+ to: l,
419
420
  duration: e.value.serieToggleAnimation.durationMs,
420
- onUpdate: (d) => {
421
- $.value = $.value.map((m) => ({
422
- ...m,
423
- series: m.series.map((T) => T.id === t.id ? { ...T, value: d } : T)
421
+ onUpdate: (i) => {
422
+ A.value = A.value.map((C) => ({
423
+ ...C,
424
+ series: C.series.map((F) => F.id === t.id ? { ...F, value: i } : F)
424
425
  }));
425
426
  }
426
- }) : $.value = $.value.map((d) => ({
427
- ...d,
428
- series: d.series.map((m) => m.id === t.id ? { ...m, value: a } : m)
429
- }))) : A && (e.value.serieToggleAnimation.show ? it({
427
+ }) : A.value = A.value.map((i) => ({
428
+ ...i,
429
+ series: i.series.map((C) => C.id === t.id ? { ...C, value: l } : C)
430
+ }))) : $ && (e.value.serieToggleAnimation.show ? ut({
430
431
  from: u,
431
432
  to: 0,
432
433
  duration: e.value.serieToggleAnimation.durationMs,
433
- onUpdate: (d) => {
434
- $.value = $.value.map((m) => ({
435
- ...m,
436
- series: m.series.map((T) => T.id === t.id ? { ...T, value: d } : T)
434
+ onUpdate: (i) => {
435
+ A.value = A.value.map((C) => ({
436
+ ...C,
437
+ series: C.series.map((F) => F.id === t.id ? { ...F, value: i } : F)
437
438
  }));
438
439
  },
439
440
  onDone: () => {
440
- C.value.push(t.id);
441
+ m.value.push(t.id);
441
442
  }
442
- }) : ($.value = $.value.map((d) => ({
443
- ...d,
444
- series: d.series.map((m) => m.id === t.id ? { ...m, value: 0 } : m)
445
- })), C.value.push(t.id)));
443
+ }) : (A.value = A.value.map((i) => ({
444
+ ...i,
445
+ series: i.series.map((C) => C.id === t.id ? { ...C, value: 0 } : C)
446
+ })), m.value.push(t.id)));
446
447
  }
447
- function ct(t) {
448
- if (!S.value.length)
448
+ function it(t) {
449
+ if (!D.value.length)
449
450
  return e.value.debug && console.warn("VueUiNestedDonuts - There are no series to show."), null;
450
- const s = S.value.flatMap((a) => a.series).filter((a) => a.name === t);
451
+ const s = D.value.flatMap((l) => l.series).filter((l) => l.name === t);
451
452
  return s || (e.value.debug && console.warn(`VueUiNestedDonuts - Series name not found "${t}"`), null);
452
453
  }
453
- function ll(t) {
454
- const s = ct(t);
455
- s !== null && (Array.isArray(s) ? s.forEach((a) => {
456
- C.value.includes(a.id) && q({ id: a.id });
457
- }) : C.value.includes(s.id) && q({ id: s.id }));
454
+ function ol(t) {
455
+ const s = it(t);
456
+ s !== null && (Array.isArray(s) ? s.forEach((l) => {
457
+ m.value.includes(l.id) && X({ id: l.id });
458
+ }) : m.value.includes(s.id) && X({ id: s.id }));
458
459
  }
459
- function al(t) {
460
- const s = ct(t);
461
- s !== null && (Array.isArray(s) ? s.forEach((a) => {
462
- C.value.includes(a.id) || q({ id: a.id });
463
- }) : C.value.includes(s.id) || q({ id: s.id }));
460
+ function sl(t) {
461
+ const s = it(t);
462
+ s !== null && (Array.isArray(s) ? s.forEach((l) => {
463
+ m.value.includes(l.id) || X({ id: l.id });
464
+ }) : m.value.includes(s.id) || X({ id: s.id }));
464
465
  }
465
- const se = k(() => E.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio), vt = k(() => $.value.map((t, s) => E.value - s * E.value / S.value.length)), Z = k(() => $.value.map((t, s) => {
466
- const a = Math.abs(t.series.map((A) => A.value).reduce((A, d) => A + d, 0)) > 0, o = E.value - s * E.value / $.value.length, l = G.value ? Q.value.find((A) => A.datasetIndex === s) : null, u = [...t.series, ...l ? [l] : []].map((A) => ({
467
- ...A,
468
- value: A.value < 1e-11 ? Number.MIN_VALUE : A.value
469
- })), c = ze(
466
+ const se = k(() => I.value / D.value.length * e.value.style.chart.layout.donut.spacingRatio), ct = k(() => A.value.map((t, s) => I.value - s * I.value / D.value.length)), J = k(() => A.value.map((t, s) => {
467
+ const l = Math.abs(t.series.map(($) => $.value).reduce(($, i) => $ + i, 0)) > 0, o = I.value - s * I.value / A.value.length, a = R.value ? Q.value.find(($) => $.datasetIndex === s) : null, u = [...t.series, ...a ? [a] : []].map(($) => ({
468
+ ...$,
469
+ value: $.value < 1e-11 ? Number.MIN_VALUE : $.value
470
+ })), d = Be(
470
471
  { series: [
471
472
  { name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
472
473
  ] },
@@ -485,11 +486,11 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
485
486
  a ${o},${o} 0 1,1 0,${2 * o}`;
486
487
  return {
487
488
  ...t,
488
- hasData: a,
489
+ hasData: l,
489
490
  radius: o,
490
- skeleton: c,
491
+ skeleton: d,
491
492
  fullCirclePath: f,
492
- donut: ze(
493
+ donut: Be(
493
494
  { series: u },
494
495
  h.value.width / 2,
495
496
  h.value.height / 2,
@@ -503,199 +504,226 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
503
504
  se.value
504
505
  )
505
506
  };
506
- })), ht = k(() => [...S.value].map((t, s) => {
507
- const a = s * E.value / S.value.length;
507
+ })), dt = k(() => [...D.value].map((t, s) => {
508
+ const l = s * I.value / D.value.length;
508
509
  return {
509
- sizeRatio: a,
510
- donut: ze(
510
+ sizeRatio: l,
511
+ donut: Be(
511
512
  { series: [{ value: 1 }] },
512
513
  h.value.width / 2,
513
514
  h.value.height / 2,
514
- E.value - a,
515
- E.value - a,
515
+ I.value - l,
516
+ I.value - l,
516
517
  1.99999,
517
518
  2,
518
519
  1,
519
520
  360,
520
521
  105.25,
521
- E.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio
522
+ I.value / D.value.length * e.value.style.chart.layout.donut.spacingRatio
522
523
  )[0]
523
524
  };
524
- })), ft = v(null), ne = v(null), ue = v(null), $e = v(null);
525
- function ol({ datapoint: t, seriesIndex: s }) {
526
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }), be.value = !1, ft.value = null, pe.value = null, ne.value = null, ue.value = null;
525
+ })), vt = v(null), ne = v(null), ue = v(null), _e = v(null);
526
+ function nl({ datapoint: t, seriesIndex: s }) {
527
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }), pe.value = !1, vt.value = null, me.value = null, ne.value = null, ue.value = null;
527
528
  }
528
- function sl({ datapoint: t, _relativeIndex: s, seriesIndex: a }) {
529
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), ft.value = t.arcOfId, ne.value = t.id, ue.value = a, pe.value = t.id, $e.value = {
529
+ function ht({
530
+ val: t,
531
+ percentage: s,
532
+ showVal: l,
533
+ showPercentage: o
534
+ }) {
535
+ const a = e.value.style.chart.layout.labels.dataLabels;
536
+ return zl({
537
+ config: a,
538
+ val: t,
539
+ percentage: s,
540
+ showVal: l,
541
+ showPercentage: o
542
+ });
543
+ }
544
+ function ul({ datapoint: t, _relativeIndex: s, seriesIndex: l }) {
545
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), vt.value = t.arcOfId, ne.value = t.id, ue.value = l, me.value = t.id, _e.value = {
530
546
  datapoint: t,
531
- seriesIndex: a,
532
- series: $.value,
547
+ seriesIndex: l,
548
+ series: A.value,
533
549
  config: e.value
534
550
  };
535
551
  const o = e.value.style.chart.tooltip.customFormat;
536
- if (Ft(o) && Pl(
552
+ if (Dt(o) && Bl(
537
553
  () => o({
538
- seriesIndex: a,
554
+ seriesIndex: l,
539
555
  datapoint: t,
540
- series: $.value,
556
+ series: A.value,
541
557
  config: e.value
542
558
  })
543
559
  ))
544
- ge.value = o({
545
- seriesIndex: a,
560
+ ye.value = o({
561
+ seriesIndex: l,
546
562
  datapoint: t,
547
- series: $.value,
563
+ series: A.value,
548
564
  config: e.value
549
565
  });
550
566
  else {
551
- let l = "";
552
- if (e.value.style.chart.tooltip.showAllItemsAtIndex && C.value.length === 0) {
553
- const u = $.value.map((c) => c.series.find((f) => f.seriesIndex === a));
554
- u.forEach((c, f) => {
555
- if (!c) return "";
556
- l += `
567
+ let a = "";
568
+ if (e.value.style.chart.tooltip.showAllItemsAtIndex && m.value.length === 0) {
569
+ const u = A.value.map((d) => d.series.find((f) => f.seriesIndex === l));
570
+ u.forEach((d, f) => {
571
+ if (!d) return "";
572
+ a += `
557
573
  <div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${f < u.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
558
574
  <div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
559
575
  <svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
560
- <circle cx="10" cy="10" r="10" fill="${c.color}"/>
576
+ <circle cx="10" cy="10" r="10" fill="${d.color}"/>
561
577
  </svg>
562
578
  <span>
563
- ${c.arcOf ?? ""} - ${c.name}
579
+ ${d.arcOf ?? ""} - ${d.name}
564
580
  </span>
565
581
  </div>
566
582
  <span>
567
- ${e.value.style.chart.tooltip.showValue ? `<b>${oe(
568
- e.value.style.chart.layout.labels.dataLabels.formatter,
569
- t.value,
570
- D({
571
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
572
- v: t.value,
573
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
574
- r: e.value.style.chart.tooltip.roundingValue
575
- }),
576
- { datapoint: t, seriesIndex: a }
577
- )}
578
- </b>` : ""}
579
- ${e.value.style.chart.tooltip.showPercentage ? `(${D({
580
- v: c.proportion * 100,
581
- s: "%",
582
- r: e.value.style.chart.tooltip.roundingPercentage
583
- })})` : ""}
583
+ <b>
584
+ ${ht({
585
+ showVal: e.value.style.chart.tooltip.showValue,
586
+ showPercentage: e.value.style.chart.tooltip.showPercentage,
587
+ val: fe(
588
+ e.value.style.chart.layout.labels.dataLabels.formatter,
589
+ t.value,
590
+ N({
591
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
592
+ v: t.value,
593
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
594
+ r: e.value.style.chart.tooltip.roundingValue
595
+ }),
596
+ { datapoint: t, seriesIndex: l }
597
+ ),
598
+ percentage: N({
599
+ v: d.proportion * 100,
600
+ s: "%",
601
+ r: e.value.style.chart.tooltip.roundingPercentage
602
+ })
603
+ })}
604
+ </b>
584
605
  </span>
585
606
  </div>
586
607
  `;
587
608
  });
588
609
  } else
589
- l += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, l += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (l += `<b>${oe(
610
+ a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, a += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (a += `<b>${fe(
590
611
  e.value.style.chart.layout.labels.dataLabels.formatter,
591
612
  t.value,
592
- D({
613
+ N({
593
614
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
594
615
  v: t.value,
595
616
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
596
617
  r: e.value.style.chart.tooltip.roundingValue
597
618
  }),
598
- { datapoint: t, seriesIndex: a }
599
- )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? l += `<span>(${D({
619
+ { datapoint: t, seriesIndex: l }
620
+ )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? a += `<span>(${N({
600
621
  v: t.proportion * 100,
601
622
  s: "%",
602
623
  r: e.value.style.chart.tooltip.roundingPercentage
603
- })})</span></div>` : l += `<b>${D({
624
+ })})</span></div>` : a += `<b>${N({
604
625
  v: t.proportion * 100,
605
626
  s: "%",
606
627
  r: e.value.style.chart.tooltip.roundingPercentage
607
628
  })}</b></div>`);
608
- ge.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${l}</div>`;
629
+ ye.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${a}</div>`;
609
630
  }
610
- be.value = !0;
631
+ pe.value = !0;
611
632
  }
612
- function Le(t) {
633
+ function ft(t) {
613
634
  return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
614
635
  }
615
636
  function bt(t, s) {
616
637
  if (!e.value.useBlurOnHover)
617
638
  return "";
618
- if (e.value.style.chart.tooltip.showAllItemsAtIndex && C.value.length === 0)
639
+ if (e.value.style.chart.tooltip.showAllItemsAtIndex && m.value.length === 0)
619
640
  return [null, void 0].includes(ue.value) || ue.value === s ? "" : `url(#blur_${b.value})`;
620
- if (!e.value.style.chart.tooltip.showAllItemsAtIndex || C.value.length)
641
+ if (!e.value.style.chart.tooltip.showAllItemsAtIndex || m.value.length)
621
642
  return [null, void 0].includes(ne.value) || ne.value === t.id ? "" : `url(#blur_${b.value})`;
622
643
  }
623
- const re = k(() => S.value.map((t, s) => {
624
- const a = t.series.filter(
625
- (l) => !C.value.includes(l.id)
626
- ), o = G.value ? a.map((l) => {
627
- const u = X.value[s].series.findIndex(
628
- (c) => c.name === l.name
644
+ const re = k(() => D.value.map((t, s) => {
645
+ const l = t.series.filter(
646
+ (a) => !m.value.includes(a.id)
647
+ ), o = R.value ? l.map((a) => {
648
+ const u = W.value[s].series.findIndex(
649
+ (d) => d.name === a.name
629
650
  );
630
- return R(
631
- X.value[s].series[u].values
632
- ).reduce((c, f) => c + f, 0);
633
- }).reduce((l, u) => l + u, 0) : a.map((l) => l.value).reduce((l, u) => l + u, 0);
634
- return t.series.map((l, u) => {
635
- const c = R(X.value[s].series[u].values).reduce(
636
- (d, m) => d + m,
651
+ return U(
652
+ W.value[s].series[u].values
653
+ ).reduce((d, f) => d + f, 0);
654
+ }).reduce((a, u) => a + u, 0) : l.map((a) => a.value).reduce((a, u) => a + u, 0);
655
+ return t.series.map((a, u) => {
656
+ const d = U(W.value[s].series[u].values).reduce(
657
+ (le, ae) => le + ae,
637
658
  0
638
- ), f = G.value ? c : l.value, A = `${l.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? oe(
659
+ ), f = R.value ? d : a.value;
660
+ console.log(m.value, a.id);
661
+ const $ = fe(
639
662
  e.value.style.chart.layout.labels.dataLabels.formatter,
640
663
  f,
641
- D({
664
+ N({
642
665
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
643
666
  v: f,
644
667
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
645
668
  r: e.value.style.chart.legend.roundingValue
646
669
  }),
647
- { datapoint: l, seriesIndex: u }
648
- ) : ""}${e.value.style.chart.legend.showPercentage ? C.value.includes(l.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(f / o) ? "-" : D({
670
+ { datapoint: a, seriesIndex: u }
671
+ ), i = isNaN(f / o) || m.value.includes(a.id) ? "-" : N({
649
672
  v: f / o * 100,
650
673
  s: "%",
651
674
  r: e.value.style.chart.legend.roundingPercentage
652
- })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`;
675
+ }), C = ht({
676
+ val: $,
677
+ percentage: i,
678
+ showVal: e.value.style.chart.legend.showValue,
679
+ showPercentage: e.value.style.chart.legend.showPercentage
680
+ }), F = `${a.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${C}`;
653
681
  return {
654
- name: l.name,
655
- color: l.color,
682
+ name: a.name,
683
+ color: a.color,
656
684
  value: f,
657
- display: A,
658
- svgDisplay: `${l.arcOf ? `${l.arcOf} - ` : ""}${A}`,
685
+ display: F,
686
+ svgDisplay: `${a.arcOf ? `${a.arcOf} - ` : ""}${F}`,
659
687
  shape: "circle",
660
- arcOf: l.arcOf,
661
- id: l.id,
688
+ arcOf: a.arcOf,
689
+ id: a.id,
662
690
  seriesIndex: u,
663
691
  datasetIndex: s,
664
692
  total: o,
665
- opacity: C.value.includes(l.id) ? 0.5 : 1,
666
- segregate: () => q(l),
667
- isSegregated: C.value.includes(l.id)
693
+ opacity: m.value.includes(a.id) ? 0.5 : 1,
694
+ segregate: () => X(a),
695
+ isSegregated: m.value.includes(a.id)
668
696
  };
669
697
  });
670
- })), nl = k(() => ({
698
+ })), rl = k(() => ({
671
699
  cy: "nested-donuts-legend",
672
700
  backgroundColor: e.value.style.chart.legend.backgroundColor,
673
701
  color: e.value.style.chart.legend.color,
674
702
  fontSize: e.value.style.chart.legend.fontSize,
675
703
  paddingBottom: 12,
676
704
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
677
- })), B = k(() => {
678
- const t = $.value.flatMap((a) => a.series.map((o) => ({
679
- name: `${a.name} - ${o.name}`,
705
+ })), V = k(() => {
706
+ const t = A.value.flatMap((l) => l.series.map((o) => ({
707
+ name: `${l.name} - ${o.name}`,
680
708
  color: o.color,
681
- total: a.total
682
- }))), s = $.value.flatMap((a) => a.series.map((o) => o.value));
709
+ total: l.total
710
+ }))), s = A.value.flatMap((l) => l.series.map((o) => o.value));
683
711
  return { head: t, body: s };
684
712
  });
685
- function _e(t = null) {
713
+ function Fe(t = null) {
686
714
  _t(() => {
687
- const s = B.value.head.map((l, u) => [
688
- [l.name],
689
- [B.value.body[u]],
715
+ const s = V.value.head.map((a, u) => [
716
+ [a.name],
717
+ [V.value.body[u]],
690
718
  [
691
- isNaN(B.value.body[u] / l.total) ? "-" : B.value.body[u] / l.total * 100
719
+ isNaN(V.value.body[u] / a.total) ? "-" : V.value.body[u] / a.total * 100
692
720
  ]
693
- ]), a = [
721
+ ]), l = [
694
722
  [e.value.style.chart.title.text],
695
723
  [e.value.style.chart.title.subtitle.text],
696
724
  [[""], ["val"], ["%"]]
697
- ].concat(s), o = Il(a);
698
- t ? t(o) : El({
725
+ ].concat(s), o = El(l);
726
+ t ? t(o) : Vl({
699
727
  csvContent: o,
700
728
  title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
701
729
  });
@@ -706,26 +734,26 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
706
734
  e.value.table.columnNames.series,
707
735
  e.value.table.columnNames.value,
708
736
  e.value.table.columnNames.percentage
709
- ], s = B.value.head.map((l, u) => {
710
- const c = D({
737
+ ], s = V.value.head.map((a, u) => {
738
+ const d = N({
711
739
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
712
- v: B.value.body[u],
740
+ v: V.value.body[u],
713
741
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
714
742
  r: e.value.table.td.roundingValue
715
743
  });
716
744
  return [
717
745
  {
718
- color: l.color,
719
- name: l.name
746
+ color: a.color,
747
+ name: a.name
720
748
  },
721
- c,
722
- isNaN(B.value.body[u] / l.total) ? "-" : D({
723
- v: B.value.body[u] / l.total * 100,
749
+ d,
750
+ isNaN(V.value.body[u] / a.total) ? "-" : N({
751
+ v: V.value.body[u] / a.total * 100,
724
752
  s: "%",
725
753
  r: e.value.table.td.roundingPercentage
726
754
  })
727
755
  ];
728
- }), a = {
756
+ }), l = {
729
757
  th: {
730
758
  backgroundColor: e.value.table.th.backgroundColor,
731
759
  color: e.value.table.th.color,
@@ -746,11 +774,11 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
746
774
  ],
747
775
  head: t,
748
776
  body: s,
749
- config: a
777
+ config: l
750
778
  };
751
779
  });
752
- function ul() {
753
- return S.value;
780
+ function il() {
781
+ return D.value;
754
782
  }
755
783
  function gt() {
756
784
  _.value.showTable = !_.value.showTable;
@@ -761,40 +789,40 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
761
789
  function yt() {
762
790
  _.value.showTooltip = !_.value.showTooltip;
763
791
  }
764
- const de = v(!1);
792
+ const ce = v(!1);
765
793
  function xe() {
766
- de.value = !de.value;
794
+ ce.value = !ce.value;
767
795
  }
768
- async function rl({ scale: t = 2 } = {}) {
769
- if (!I.value) return;
770
- const { width: s, height: a } = I.value.getBoundingClientRect(), o = s / a, { imageUri: l, base64: u } = await ql({ domElement: I.value, base64: !0, img: !0, scale: t });
796
+ async function cl({ scale: t = 2 } = {}) {
797
+ if (!P.value) return;
798
+ const { width: s, height: l } = P.value.getBoundingClientRect(), o = s / l, { imageUri: a, base64: u } = await Jl({ domElement: P.value, base64: !0, img: !0, scale: t });
771
799
  return {
772
- imageUri: l,
800
+ imageUri: a,
773
801
  base64: u,
774
802
  title: e.value.style.chart.title.text,
775
803
  width: s,
776
- height: a,
804
+ height: l,
777
805
  aspectRatio: o
778
806
  };
779
807
  }
780
- const Fe = v(null);
781
- function il() {
782
- if (!Fe.value) return;
783
- const { x: t, y: s, width: a, height: o } = Fe.value.getBBox();
784
- te.value && te.value.setAttribute("viewBox", `${t} ${s} ${a + Math.min(0, t)} ${o + Math.min(0, s)}`);
808
+ const Te = v(null);
809
+ function dl() {
810
+ if (!Te.value) return;
811
+ const { x: t, y: s, width: l, height: o } = Te.value.getBBox();
812
+ ee.value && ee.value.setAttribute("viewBox", `${t} ${s} ${l + Math.min(0, t)} ${o + Math.min(0, s)}`);
785
813
  }
786
- const le = k(() => {
814
+ const te = k(() => {
787
815
  const t = e.value.table.useDialog && !e.value.table.show, s = _.value.showTable;
788
816
  return {
789
- component: t ? qt : Rt,
817
+ component: t ? jt : Yt,
790
818
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
791
819
  props: t ? {
792
820
  backgroundColor: e.value.table.th.backgroundColor,
793
821
  color: e.value.table.th.color,
794
822
  headerColor: e.value.table.th.color,
795
823
  headerBg: e.value.table.th.backgroundColor,
796
- isFullscreen: W.value,
797
- fullscreenParent: I.value,
824
+ isFullscreen: Y.value,
825
+ fullscreenParent: P.value,
798
826
  forcedWidth: Math.min(800, window.innerWidth * 0.8)
799
827
  } : {
800
828
  hideDetails: !0,
@@ -813,95 +841,95 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
813
841
  }
814
842
  };
815
843
  });
816
- ae(() => _.value.showTable, (t) => {
817
- e.value.table.show || (t && e.value.table.useDialog && ee.value ? ee.value.open() : "close" in ee.value && ee.value.close());
844
+ oe(() => _.value.showTable, (t) => {
845
+ e.value.table.show || (t && e.value.table.useDialog && Z.value ? Z.value.open() : "close" in Z.value && Z.value.close());
818
846
  });
819
847
  function mt() {
820
- _.value.showTable = !1, me.value && me.value.setTableIconState(!1);
848
+ _.value.showTable = !1, ke.value && ke.value.setTableIconState(!1);
821
849
  }
822
- const dl = k(() => e.value.style.chart.backgroundColor), cl = k(() => e.value.style.chart.legend), vl = k(() => e.value.style.chart.title), hl = k(() => re.value.flat().map((t) => ({
850
+ const vl = k(() => e.value.style.chart.backgroundColor), hl = k(() => e.value.style.chart.legend), fl = k(() => e.value.style.chart.title), bl = k(() => re.value.flat().map((t) => ({
823
851
  ...t,
824
852
  name: t.svgDisplay
825
- }))), { exportSvg: fl, getSvg: bl } = Gl({
826
- svg: te,
827
- title: vl,
828
- legend: cl,
829
- legendItems: hl,
830
- backgroundColor: dl
853
+ }))), { exportSvg: gl, getSvg: pl } = Xl({
854
+ svg: ee,
855
+ title: fl,
856
+ legend: hl,
857
+ legendItems: bl,
858
+ backgroundColor: vl
831
859
  });
832
860
  async function Ct({ isCb: t }) {
833
861
  if (t) {
834
- const { blob: s, url: a, text: o, dataUrl: l } = await bl();
835
- e.value.userOptions.callbacks.svg({ blob: s, url: a, text: o, dataUrl: l });
862
+ const { blob: s, url: l, text: o, dataUrl: a } = await pl();
863
+ e.value.userOptions.callbacks.svg({ blob: s, url: l, text: o, dataUrl: a });
836
864
  } else
837
- fl();
865
+ gl();
838
866
  }
839
- return Bt({
840
- autoSize: il,
841
- getData: ul,
842
- getImage: rl,
843
- generatePdf: nt,
844
- generateCsv: _e,
845
- generateImage: ut,
867
+ return Mt({
868
+ autoSize: dl,
869
+ getData: il,
870
+ getImage: cl,
871
+ generatePdf: ot,
872
+ generateCsv: Fe,
873
+ generateImage: st,
846
874
  generateSvg: Ct,
847
- hideSeries: al,
848
- showSeries: ll,
875
+ hideSeries: sl,
876
+ showSeries: ol,
849
877
  toggleTable: gt,
850
878
  toggleLabels: pt,
851
879
  toggleTooltip: yt,
852
880
  toggleAnnotator: xe,
853
- toggleFullscreen: Je
881
+ toggleFullscreen: je
854
882
  }), (t, s) => (n(), r("div", {
855
883
  ref_key: "nestedDonutsChart",
856
- ref: I,
857
- class: M(`vue-data-ui-component vue-ui-nested-donuts ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
884
+ ref: P,
885
+ class: H(`vue-data-ui-component vue-ui-nested-donuts ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
858
886
  style: he(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
859
887
  id: `nested_donuts_${b.value}`,
860
- onMouseenter: s[2] || (s[2] = () => i(Qe)(!0)),
861
- onMouseleave: s[3] || (s[3] = () => i(Qe)(!1))
888
+ onMouseenter: s[2] || (s[2] = () => c(Ke)(!0)),
889
+ onMouseleave: s[3] || (s[3] = () => c(Ke)(!1))
862
890
  }, [
863
- e.value.userOptions.buttons.annotator ? (n(), U(i(Wt), {
891
+ e.value.userOptions.buttons.annotator ? (n(), z(c(Ht), {
864
892
  key: 0,
865
- svgRef: i(te),
893
+ svgRef: c(ee),
866
894
  backgroundColor: e.value.style.chart.backgroundColor,
867
895
  color: e.value.style.chart.color,
868
- active: de.value,
896
+ active: ce.value,
869
897
  onClose: xe
870
898
  }, {
871
899
  "annotator-action-close": p(() => [
872
900
  y(t.$slots, "annotator-action-close", {}, void 0, !0)
873
901
  ]),
874
- "annotator-action-color": p(({ color: a }) => [
875
- y(t.$slots, "annotator-action-color", O(N({ color: a })), void 0, !0)
902
+ "annotator-action-color": p(({ color: l }) => [
903
+ y(t.$slots, "annotator-action-color", S(O({ color: l })), void 0, !0)
876
904
  ]),
877
- "annotator-action-draw": p(({ mode: a }) => [
878
- y(t.$slots, "annotator-action-draw", O(N({ mode: a })), void 0, !0)
905
+ "annotator-action-draw": p(({ mode: l }) => [
906
+ y(t.$slots, "annotator-action-draw", S(O({ mode: l })), void 0, !0)
879
907
  ]),
880
- "annotator-action-undo": p(({ disabled: a }) => [
881
- y(t.$slots, "annotator-action-undo", O(N({ disabled: a })), void 0, !0)
908
+ "annotator-action-undo": p(({ disabled: l }) => [
909
+ y(t.$slots, "annotator-action-undo", S(O({ disabled: l })), void 0, !0)
882
910
  ]),
883
- "annotator-action-redo": p(({ disabled: a }) => [
884
- y(t.$slots, "annotator-action-redo", O(N({ disabled: a })), void 0, !0)
911
+ "annotator-action-redo": p(({ disabled: l }) => [
912
+ y(t.$slots, "annotator-action-redo", S(O({ disabled: l })), void 0, !0)
885
913
  ]),
886
- "annotator-action-delete": p(({ disabled: a }) => [
887
- y(t.$slots, "annotator-action-delete", O(N({ disabled: a })), void 0, !0)
914
+ "annotator-action-delete": p(({ disabled: l }) => [
915
+ y(t.$slots, "annotator-action-delete", S(O({ disabled: l })), void 0, !0)
888
916
  ]),
889
917
  _: 3
890
918
  }, 8, ["svgRef", "backgroundColor", "color", "active"])) : L("", !0),
891
- Kt.value ? (n(), r("div", {
919
+ el.value ? (n(), r("div", {
892
920
  key: 1,
893
921
  ref_key: "noTitle",
894
- ref: Xe,
922
+ ref: Ye,
895
923
  class: "vue-data-ui-no-title-space",
896
924
  style: "height:36px; width: 100%;background:transparent"
897
925
  }, null, 512)) : L("", !0),
898
926
  e.value.style.chart.title.text ? (n(), r("div", {
899
927
  key: 2,
900
928
  ref_key: "chartTitle",
901
- ref: Ye
929
+ ref: Re
902
930
  }, [
903
- (n(), U(Hl, {
904
- key: `title_${qe.value}`,
931
+ (n(), z(Kl, {
932
+ key: `title_${We.value}`,
905
933
  config: {
906
934
  title: {
907
935
  cy: "donut-div-title",
@@ -916,15 +944,15 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
916
944
  ], 512)) : L("", !0),
917
945
  g("div", {
918
946
  id: `legend-top-${b.value}`
919
- }, null, 8, Kl),
920
- e.value.userOptions.show && fe.value && (i(et) || i(we)) ? (n(), U(i(Yt), {
947
+ }, null, 8, ta),
948
+ e.value.userOptions.show && ge.value && (c(Qe) || c($e)) ? (n(), z(c(Xt), {
921
949
  ref_key: "userOptionsRef",
922
- ref: me,
923
- key: `user_option_${Ge.value}`,
950
+ ref: ke,
951
+ key: `user_option_${Ue.value}`,
924
952
  backgroundColor: e.value.style.chart.backgroundColor,
925
953
  color: e.value.style.chart.color,
926
- isPrinting: i(ot),
927
- isImaging: i(st),
954
+ isPrinting: c(lt),
955
+ isImaging: c(at),
928
956
  uid: b.value,
929
957
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
930
958
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -934,33 +962,33 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
934
962
  hasTable: e.value.userOptions.buttons.table,
935
963
  hasLabel: e.value.userOptions.buttons.labels,
936
964
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
937
- isFullscreen: W.value,
965
+ isFullscreen: Y.value,
938
966
  isTooltip: _.value.showTooltip,
939
967
  titles: { ...e.value.userOptions.buttonTitles },
940
- chartElement: I.value,
968
+ chartElement: P.value,
941
969
  position: e.value.userOptions.position,
942
970
  hasAnnotator: e.value.userOptions.buttons.annotator,
943
- isAnnotation: de.value,
971
+ isAnnotation: ce.value,
944
972
  callbacks: e.value.userOptions.callbacks,
945
973
  printScale: e.value.userOptions.print.scale,
946
974
  tableDialog: e.value.table.useDialog,
947
- onToggleFullscreen: Je,
948
- onGeneratePdf: i(nt),
949
- onGenerateCsv: _e,
950
- onGenerateImage: i(ut),
975
+ onToggleFullscreen: je,
976
+ onGeneratePdf: c(ot),
977
+ onGenerateCsv: Fe,
978
+ onGenerateImage: c(st),
951
979
  onGenerateSvg: Ct,
952
980
  onToggleTable: gt,
953
981
  onToggleLabels: pt,
954
982
  onToggleTooltip: yt,
955
983
  onToggleAnnotator: xe,
956
984
  style: he({
957
- visibility: i(et) ? i(we) ? "visible" : "hidden" : "visible"
985
+ visibility: c(Qe) ? c($e) ? "visible" : "hidden" : "visible"
958
986
  })
959
987
  }, wt({ _: 2 }, [
960
988
  t.$slots.menuIcon ? {
961
989
  name: "menuIcon",
962
- fn: p(({ isOpen: a, color: o }) => [
963
- y(t.$slots, "menuIcon", O(N({ isOpen: a, color: o })), void 0, !0)
990
+ fn: p(({ isOpen: l, color: o }) => [
991
+ y(t.$slots, "menuIcon", S(O({ isOpen: l, color: o })), void 0, !0)
964
992
  ]),
965
993
  key: "0"
966
994
  } : void 0,
@@ -1015,37 +1043,37 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1015
1043
  } : void 0,
1016
1044
  t.$slots.optionFullscreen ? {
1017
1045
  name: "optionFullscreen",
1018
- fn: p(({ toggleFullscreen: a, isFullscreen: o }) => [
1019
- y(t.$slots, "optionFullscreen", O(N({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
1046
+ fn: p(({ toggleFullscreen: l, isFullscreen: o }) => [
1047
+ y(t.$slots, "optionFullscreen", S(O({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
1020
1048
  ]),
1021
1049
  key: "8"
1022
1050
  } : void 0,
1023
1051
  t.$slots.optionAnnotator ? {
1024
1052
  name: "optionAnnotator",
1025
- fn: p(({ toggleAnnotator: a, isAnnotator: o }) => [
1026
- y(t.$slots, "optionAnnotator", O(N({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
1053
+ fn: p(({ toggleAnnotator: l, isAnnotator: o }) => [
1054
+ y(t.$slots, "optionAnnotator", S(O({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
1027
1055
  ]),
1028
1056
  key: "9"
1029
1057
  } : void 0
1030
1058
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : L("", !0),
1031
1059
  (n(), r("svg", {
1032
1060
  ref_key: "svgRef",
1033
- ref: te,
1034
- xmlns: i(Ol),
1035
- class: M({
1036
- "vue-data-ui-fullscreen--on": W.value,
1037
- "vue-data-ui-fulscreen--off": !W.value,
1061
+ ref: ee,
1062
+ xmlns: c(Pl),
1063
+ class: H({
1064
+ "vue-data-ui-fullscreen--on": Y.value,
1065
+ "vue-data-ui-fulscreen--off": !Y.value,
1038
1066
  "vue-data-ui-svg": !0
1039
1067
  }),
1040
1068
  viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
1041
- style: he(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${tt.value.css}`)
1069
+ style: he(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Ze.value.css}`)
1042
1070
  }, [
1043
1071
  g("g", {
1044
1072
  ref_key: "G",
1045
- ref: Fe,
1073
+ ref: Te,
1046
1074
  class: "vue-data-ui-g"
1047
1075
  }, [
1048
- Pe(i(Xt)),
1076
+ Ie(c(qt)),
1049
1077
  t.$slots["chart-background"] ? (n(), r("foreignObject", {
1050
1078
  key: 0,
1051
1079
  x: 0,
@@ -1057,9 +1085,9 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1057
1085
  }
1058
1086
  }, [
1059
1087
  y(t.$slots, "chart-background", {}, void 0, !0)
1060
- ], 8, ea)) : L("", !0),
1088
+ ], 8, aa)) : L("", !0),
1061
1089
  g("defs", null, [
1062
- (n(!0), r(x, null, F(ht.value, (a, o) => (n(), r("radialGradient", {
1090
+ (n(!0), r(x, null, T(dt.value, (l, o) => (n(), r("radialGradient", {
1063
1091
  id: `radial_${b.value}_${o}`
1064
1092
  }, [
1065
1093
  s[4] || (s[4] = g("stop", {
@@ -1068,21 +1096,21 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1068
1096
  "stop-opacity": "0"
1069
1097
  }, null, -1)),
1070
1098
  g("stop", {
1071
- offset: `${(1 - se.value / vt.value[o]) * 100}%`,
1072
- "stop-color": i(Nl)("#FFFFFF", 0),
1099
+ offset: `${(1 - se.value / ct.value[o]) * 100}%`,
1100
+ "stop-color": c(Il)("#FFFFFF", 0),
1073
1101
  "stop-opacity": "0"
1074
- }, null, 8, la),
1102
+ }, null, 8, sa),
1075
1103
  g("stop", {
1076
- offset: `${(1 - se.value / vt.value[o] / 2) * 100}%`,
1104
+ offset: `${(1 - se.value / ct.value[o] / 2) * 100}%`,
1077
1105
  "stop-color": "#FFFFFF",
1078
1106
  "stop-opacity": e.value.style.chart.gradientIntensity / 100
1079
- }, null, 8, aa),
1107
+ }, null, 8, na),
1080
1108
  s[5] || (s[5] = g("stop", {
1081
1109
  offset: "100%",
1082
1110
  "stop-color": "#FFFFFF",
1083
1111
  "stop-opacity": "0"
1084
1112
  }, null, -1))
1085
- ], 8, ta))), 256))
1113
+ ], 8, oa))), 256))
1086
1114
  ]),
1087
1115
  g("defs", null, [
1088
1116
  g("filter", {
@@ -1096,12 +1124,12 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1096
1124
  in: "SourceGraphic",
1097
1125
  stdDeviation: 2,
1098
1126
  id: `blur_std_${b.value}`
1099
- }, null, 8, sa),
1127
+ }, null, 8, ra),
1100
1128
  s[6] || (s[6] = g("feColorMatrix", {
1101
1129
  type: "saturate",
1102
1130
  values: "0"
1103
1131
  }, null, -1))
1104
- ], 8, oa),
1132
+ ], 8, ua),
1105
1133
  g("filter", {
1106
1134
  id: `shadow_${b.value}`,
1107
1135
  "color-interpolation-filters": "sRGB"
@@ -1112,53 +1140,53 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1112
1140
  stdDeviation: "10",
1113
1141
  "flood-opacity": "0.5",
1114
1142
  "flood-color": e.value.style.chart.layout.donut.shadowColor
1115
- }, null, 8, ua)
1116
- ], 8, na)
1143
+ }, null, 8, ca)
1144
+ ], 8, ia)
1117
1145
  ]),
1118
1146
  g("defs", null, [
1119
- (n(!0), r(x, null, F(Z.value, (a, o) => (n(), r("path", {
1147
+ (n(!0), r(x, null, T(J.value, (l, o) => (n(), r("path", {
1120
1148
  key: `path-full-${o}`,
1121
1149
  id: `path-full-${o}-${b.value}`,
1122
- d: a.fullCirclePath,
1150
+ d: l.fullCirclePath,
1123
1151
  fill: "none"
1124
- }, null, 8, ra))), 128))
1152
+ }, null, 8, da))), 128))
1125
1153
  ]),
1126
- (n(!0), r(x, null, F(Z.value, (a, o) => (n(), r("g", null, [
1127
- a.hasData ? (n(!0), r(x, { key: 0 }, F(a.donut.filter((l) => !l.ghost), (l, u) => (n(), r("g", null, [
1154
+ (n(!0), r(x, null, T(J.value, (l, o) => (n(), r("g", null, [
1155
+ l.hasData ? (n(!0), r(x, { key: 0 }, T(l.donut.filter((a) => !a.ghost), (a, u) => (n(), r("g", null, [
1128
1156
  g("path", {
1129
1157
  class: "vue-ui-donut-arc-path",
1130
- d: l.arcSlice,
1131
- fill: l.color,
1158
+ d: a.arcSlice,
1159
+ fill: a.color,
1132
1160
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1133
1161
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
1134
- filter: bt(l, u)
1135
- }, null, 8, ia)
1136
- ]))), 256)) : (n(!0), r(x, { key: 1 }, F(a.skeleton, (l, u) => (n(), r("g", null, [
1162
+ filter: bt(a, u)
1163
+ }, null, 8, va)
1164
+ ]))), 256)) : (n(!0), r(x, { key: 1 }, T(l.skeleton, (a, u) => (n(), r("g", null, [
1137
1165
  g("path", {
1138
1166
  class: "vue-ui-donut-arc-path",
1139
- d: l.arcSlice,
1140
- fill: l.color,
1167
+ d: a.arcSlice,
1168
+ fill: a.color,
1141
1169
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1142
1170
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
1143
- }, null, 8, da)
1171
+ }, null, 8, ha)
1144
1172
  ]))), 256))
1145
1173
  ]))), 256)),
1146
- e.value.style.chart.useGradient ? (n(), r("g", ca, [
1147
- (n(!0), r(x, null, F(ht.value, (a, o) => (n(), r("g", null, [
1174
+ e.value.style.chart.useGradient ? (n(), r("g", fa, [
1175
+ (n(!0), r(x, null, T(dt.value, (l, o) => (n(), r("g", null, [
1148
1176
  g("path", {
1149
- d: a.donut.arcSlice,
1177
+ d: l.donut.arcSlice,
1150
1178
  fill: `url(#radial_${b.value}_${o})`,
1151
1179
  stroke: "transparent",
1152
1180
  "stroke-width": "0"
1153
- }, null, 8, va)
1181
+ }, null, 8, ba)
1154
1182
  ]))), 256))
1155
1183
  ])) : L("", !0),
1156
- e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), r("g", ha, [
1157
- e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (n(!0), r(x, { key: 0 }, F(Z.value, (a, o) => (n(), r("g", null, [
1158
- (n(!0), r(x, null, F(a.donut, (l, u) => (n(), r("g", null, [
1184
+ e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), r("g", ga, [
1185
+ e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (n(!0), r(x, { key: 0 }, T(J.value, (l, o) => (n(), r("g", null, [
1186
+ (n(!0), r(x, null, T(l.donut, (a, u) => (n(), r("g", null, [
1159
1187
  u === 0 && h.value.width && h.value.height ? (n(), r("text", {
1160
1188
  key: 0,
1161
- class: M({ animated: e.value.useCssAnimation }),
1189
+ class: H({ animated: e.value.useCssAnimation }),
1162
1190
  "text-anchor": "middle",
1163
1191
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1164
1192
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
@@ -1171,148 +1199,122 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1171
1199
  "text-anchor": "middle",
1172
1200
  method: "align",
1173
1201
  spacing: "auto"
1174
- }, P(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(xt)({
1175
- source: a.name,
1202
+ }, M(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? c(Ft)({
1203
+ source: l.name,
1176
1204
  length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1177
- }) : a.name), 9, ba)
1178
- ], 10, fa)) : L("", !0)
1205
+ }) : l.name), 9, ya)
1206
+ ], 10, pa)) : L("", !0)
1179
1207
  ]))), 256))
1180
- ]))), 256)) : (n(!0), r(x, { key: 1 }, F(Z.value, (a, o) => (n(), r("g", null, [
1181
- (n(!0), r(x, null, F(a.donut, (l, u) => (n(), r("g", null, [
1208
+ ]))), 256)) : (n(!0), r(x, { key: 1 }, T(J.value, (l, o) => (n(), r("g", null, [
1209
+ (n(!0), r(x, null, T(l.donut, (a, u) => (n(), r("g", null, [
1182
1210
  u === 0 && h.value.width && h.value.height ? (n(), r("text", {
1183
1211
  key: 0,
1184
- class: M({ animated: e.value.useCssAnimation }),
1212
+ class: H({ animated: e.value.useCssAnimation }),
1185
1213
  x: h.value.width / 2,
1186
- y: l.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
1214
+ y: a.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
1187
1215
  "text-anchor": "middle",
1188
1216
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1189
1217
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
1190
1218
  fill: e.value.style.chart.layout.labels.dataLabels.color
1191
- }, P(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(xt)({
1192
- source: a.name,
1219
+ }, M(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? c(Ft)({
1220
+ source: l.name,
1193
1221
  length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1194
- }) : a.name), 11, ga)) : L("", !0)
1222
+ }) : l.name), 11, ma)) : L("", !0)
1195
1223
  ]))), 256))
1196
1224
  ]))), 256))
1197
1225
  ])) : L("", !0),
1198
- e.value.style.chart.layout.labels.dataLabels.show ? (n(), r("g", pa, [
1199
- (n(!0), r(x, null, F(Z.value, (a, o) => (n(), r("g", null, [
1200
- (n(!0), r(x, null, F(a.donut.filter((l) => !l.ghost), (l, u) => (n(), r("g", {
1201
- filter: bt(l, u)
1226
+ e.value.style.chart.layout.labels.dataLabels.show ? (n(), r("g", Ca, [
1227
+ (n(!0), r(x, null, T(J.value, (l, o) => (n(), r("g", null, [
1228
+ (n(!0), r(x, null, T(l.donut.filter((a) => !a.ghost), (a, u) => (n(), r("g", {
1229
+ filter: bt(a, u)
1202
1230
  }, [
1203
1231
  At(g("text", {
1204
- class: M({ animated: e.value.useCssAnimation }),
1205
- opacity: Le(l) ? 1 : 0,
1206
- "text-anchor": i(K)(l, !0).anchor,
1207
- x: i(K)(
1208
- l,
1232
+ class: H({ animated: e.value.useCssAnimation }),
1233
+ opacity: ft(a) ? 1 : 0,
1234
+ "text-anchor": c(be)(a, !0).anchor,
1235
+ x: c(be)(
1236
+ a,
1209
1237
  !1,
1210
1238
  e.value.style.chart.layout.labels.dataLabels.offsetX
1211
1239
  ).x || 0,
1212
- y: i(Me)(
1213
- l,
1240
+ y: c(xt)(
1241
+ a,
1214
1242
  e.value.style.chart.layout.labels.dataLabels.offsetY,
1215
1243
  e.value.style.chart.layout.labels.dataLabels.offsetY
1216
- ),
1217
- fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
1244
+ ) + (e.value.style.chart.layout.labels.dataLabels.showValueFirst && e.value.style.chart.layout.labels.dataLabels.showValue ? e.value.style.chart.layout.labels.dataLabels.fontSize : 0),
1245
+ fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? a.color : e.value.style.chart.layout.labels.dataLabels.color,
1218
1246
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1219
1247
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
1220
- }, P(i(D)({
1221
- v: l.proportion * 100,
1222
- s: "%",
1223
- r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
1224
- })), 11, ma), [
1225
- [
1226
- $t,
1227
- _.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
1228
- ]
1248
+ }, M(c(Tt)(
1249
+ c(N)({
1250
+ v: a.proportion * 100,
1251
+ s: "%",
1252
+ r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
1253
+ }),
1254
+ e.value.style.chart.layout.labels.dataLabels.usePercentageParens ? "(" : "",
1255
+ e.value.style.chart.layout.labels.dataLabels.usePercentageParens ? ")" : ""
1256
+ )), 11, wa), [
1257
+ [$t, _.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage]
1229
1258
  ]),
1230
1259
  At(g("text", {
1231
- class: M({ animated: e.value.useCssAnimation }),
1232
- opacity: Le(l) ? 1 : 0,
1233
- "text-anchor": i(K)(l, !0).anchor,
1234
- x: i(K)(
1235
- l,
1260
+ class: H({ animated: e.value.useCssAnimation }),
1261
+ opacity: ft(a) ? 1 : 0,
1262
+ "text-anchor": c(be)(a, !0).anchor,
1263
+ x: c(be)(
1264
+ a,
1236
1265
  !1,
1237
1266
  e.value.style.chart.layout.labels.dataLabels.offsetX
1238
1267
  ).x || 0,
1239
- y: i(Me)(
1240
- l,
1268
+ y: c(xt)(
1269
+ a,
1241
1270
  e.value.style.chart.layout.labels.dataLabels.offsetY,
1242
1271
  e.value.style.chart.layout.labels.dataLabels.offsetY
1243
- ) + e.value.style.chart.layout.labels.dataLabels.fontSize,
1244
- fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
1272
+ ) + (e.value.style.chart.layout.labels.dataLabels.showValueFirst || !e.value.style.chart.layout.labels.dataLabels.showPercentage ? 0 : e.value.style.chart.layout.labels.dataLabels.fontSize),
1273
+ fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? a.color : e.value.style.chart.layout.labels.dataLabels.color,
1245
1274
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1246
1275
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
1247
- }, " (" + P(i(oe)(
1248
- e.value.style.chart.layout.labels.dataLabels.formatter,
1249
- l.value,
1250
- i(D)({
1251
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
1252
- v: l.value,
1253
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
1254
- r: e.value.style.chart.layout.labels.dataLabels.roundingValue
1255
- }),
1256
- { datapoint: l, seriesIndex: o, datapointIndex: u }
1257
- )) + ") ", 11, Ca), [
1258
- [
1259
- $t,
1260
- _.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
1261
- ]
1262
- ]),
1263
- Le(l) && _.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), r("text", {
1264
- key: 0,
1265
- class: M({ animated: e.value.useCssAnimation }),
1266
- "text-anchor": i(K)(l, !0).anchor,
1267
- x: i(K)(
1268
- l,
1269
- !1,
1270
- e.value.style.chart.layout.labels.dataLabels.offsetX
1271
- ).x || 0,
1272
- y: i(Me)(
1273
- l,
1274
- e.value.style.chart.layout.labels.dataLabels.offsetY,
1275
- e.value.style.chart.layout.labels.dataLabels.offsetY
1276
+ }, M(c(Tt)(
1277
+ c(fe)(
1278
+ e.value.style.chart.layout.labels.dataLabels.formatter,
1279
+ a.value,
1280
+ c(N)({
1281
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
1282
+ v: a.value,
1283
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
1284
+ r: e.value.style.chart.layout.labels.dataLabels.roundingValue
1285
+ }),
1286
+ { datapoint: a, seriesIndex: o, datapointIndex: u }
1276
1287
  ),
1277
- fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
1278
- "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1279
- "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
1280
- }, P(i(oe)(
1281
- e.value.style.chart.layout.labels.dataLabels.formatter,
1282
- l.value,
1283
- i(D)({
1284
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
1285
- v: l.value,
1286
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
1287
- r: e.value.style.chart.layout.labels.dataLabels.roundingValue
1288
- }),
1289
- { datapoint: l, seriesIndex: o, datapointIndex: u }
1290
- )), 11, ka)) : L("", !0)
1291
- ], 8, ya))), 256))
1288
+ e.value.style.chart.layout.labels.dataLabels.useValueParens ? "(" : "",
1289
+ e.value.style.chart.layout.labels.dataLabels.useValueParens ? ")" : ""
1290
+ )), 11, Aa), [
1291
+ [$t, _.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showValue]
1292
+ ])
1293
+ ], 8, ka))), 256))
1292
1294
  ]))), 256))
1293
1295
  ])) : L("", !0),
1294
- (n(!0), r(x, null, F(Z.value, (a, o) => (n(), r("g", null, [
1295
- (n(!0), r(x, null, F(a.donut, (l, u) => (n(), r("g", null, [
1296
+ (n(!0), r(x, null, T(J.value, (l, o) => (n(), r("g", null, [
1297
+ (n(!0), r(x, null, T(l.donut, (a, u) => (n(), r("g", null, [
1296
1298
  g("path", {
1297
- d: l.arcSlice,
1298
- fill: pe.value === l.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
1299
- onMouseenter: (c) => sl({
1300
- datapoint: l,
1301
- seriesIndex: l.seriesIndex
1299
+ d: a.arcSlice,
1300
+ fill: me.value === a.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
1301
+ onMouseenter: (d) => ul({
1302
+ datapoint: a,
1303
+ seriesIndex: a.seriesIndex
1302
1304
  }),
1303
- onClick: (c) => el({ datapoint: l, index: u, seriesIndex: l.seriesIndex }),
1304
- onMouseleave: (c) => ol({ datapoint: l, seriesIndex: l.seriesIndex })
1305
- }, null, 40, wa)
1305
+ onClick: (d) => ll({ datapoint: a, index: u, seriesIndex: a.seriesIndex }),
1306
+ onMouseleave: (d) => nl({ datapoint: a, seriesIndex: a.seriesIndex })
1307
+ }, null, 40, $a)
1306
1308
  ]))), 256))
1307
1309
  ]))), 256)),
1308
1310
  y(t.$slots, "svg", { svg: h.value }, void 0, !0)
1309
1311
  ], 512)
1310
- ], 14, Ql)),
1311
- t.$slots.watermark ? (n(), r("div", Aa, [
1312
- y(t.$slots, "watermark", O(N({ isPrinting: i(ot) || i(st) })), void 0, !0)
1312
+ ], 14, la)),
1313
+ t.$slots.watermark ? (n(), r("div", La, [
1314
+ y(t.$slots, "watermark", S(O({ isPrinting: c(lt) || c(at) })), void 0, !0)
1313
1315
  ])) : L("", !0),
1314
- Pe(i(Mt), {
1315
- show: _.value.showTooltip && be.value,
1316
+ Ie(c(Rt), {
1317
+ show: _.value.showTooltip && pe.value,
1316
1318
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1317
1319
  color: e.value.style.chart.tooltip.color,
1318
1320
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -1322,50 +1324,50 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1322
1324
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1323
1325
  position: e.value.style.chart.tooltip.position,
1324
1326
  offsetY: e.value.style.chart.tooltip.offsetY,
1325
- parent: I.value,
1326
- content: ge.value,
1327
- isFullscreen: W.value,
1328
- isCustom: i(Ft)(e.value.style.chart.tooltip.customFormat),
1327
+ parent: P.value,
1328
+ content: ye.value,
1329
+ isFullscreen: Y.value,
1330
+ isCustom: c(Dt)(e.value.style.chart.tooltip.customFormat),
1329
1331
  smooth: e.value.style.chart.tooltip.smooth,
1330
1332
  backdropFilter: e.value.style.chart.tooltip.backdropFilter,
1331
1333
  smoothForce: e.value.style.chart.tooltip.smoothForce,
1332
1334
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
1333
1335
  }, {
1334
1336
  "tooltip-before": p(() => [
1335
- y(t.$slots, "tooltip-before", O(N({ ...$e.value })), void 0, !0)
1337
+ y(t.$slots, "tooltip-before", S(O({ ..._e.value })), void 0, !0)
1336
1338
  ]),
1337
1339
  "tooltip-after": p(() => [
1338
- y(t.$slots, "tooltip-after", O(N({ ...$e.value })), void 0, !0)
1340
+ y(t.$slots, "tooltip-after", S(O({ ..._e.value })), void 0, !0)
1339
1341
  ]),
1340
1342
  _: 3
1341
1343
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
1342
1344
  g("div", {
1343
1345
  id: `legend-bottom-${b.value}`
1344
- }, null, 8, $a),
1345
- Ze.value ? (n(), U(Al, {
1346
+ }, null, 8, _a),
1347
+ qe.value ? (n(), z(Ll, {
1346
1348
  key: 5,
1347
1349
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
1348
1350
  }, [
1349
1351
  e.value.style.chart.legend.show ? (n(), r("div", {
1350
1352
  key: 0,
1351
1353
  ref_key: "chartLegend",
1352
- ref: ye,
1353
- class: M({ "vue-ui-nested-donuts-legend": re.value.length > 1 })
1354
+ ref: Ce,
1355
+ class: H({ "vue-ui-nested-donuts-legend": re.value.length > 1 })
1354
1356
  }, [
1355
- (n(!0), r(x, null, F(re.value, (a, o) => (n(), U(jl, {
1356
- key: `legend_${o}_${je.value}`,
1357
- legendSet: a,
1358
- config: nl.value,
1359
- onClickMarker: s[0] || (s[0] = ({ legend: l }) => q(l))
1357
+ (n(!0), r(x, null, T(re.value, (l, o) => (n(), z(Ql, {
1358
+ key: `legend_${o}_${He.value}`,
1359
+ legendSet: l,
1360
+ config: rl.value,
1361
+ onClickMarker: s[0] || (s[0] = ({ legend: a }) => X(a))
1360
1362
  }, {
1361
- legendTitle: p(({ titleSet: l }) => [
1362
- l[0] && l[0].arcOf ? (n(), r("div", La, P(l[0].arcOf), 1)) : L("", !0)
1363
+ legendTitle: p(({ titleSet: a }) => [
1364
+ a[0] && a[0].arcOf ? (n(), r("div", Fa, M(a[0].arcOf), 1)) : L("", !0)
1363
1365
  ]),
1364
- item: p(({ legend: l, index: u }) => [
1366
+ item: p(({ legend: a, index: u }) => [
1365
1367
  g("div", {
1366
- onClick: (c) => q(l),
1367
- style: he(`opacity:${C.value.includes(l.id) ? 0.5 : 1}`)
1368
- }, P(l.display), 13, _a)
1368
+ onClick: (d) => X(a),
1369
+ style: he(`opacity:${m.value.includes(a.id) ? 0.5 : 1}`)
1370
+ }, M(a.display), 13, xa)
1369
1371
  ]),
1370
1372
  _: 1
1371
1373
  }, 8, ["legendSet", "config"]))), 128))
@@ -1374,42 +1376,42 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1374
1376
  e.value.style.chart.legend.show ? L("", !0) : (n(), r("div", {
1375
1377
  key: 6,
1376
1378
  ref_key: "chartLegend",
1377
- ref: ye
1379
+ ref: Ce
1378
1380
  }, [
1379
1381
  y(t.$slots, "legend", { legend: re.value }, void 0, !0)
1380
1382
  ], 512)),
1381
1383
  t.$slots.source ? (n(), r("div", {
1382
1384
  key: 7,
1383
1385
  ref_key: "source",
1384
- ref: We,
1386
+ ref: Ge,
1385
1387
  dir: "auto"
1386
1388
  }, [
1387
1389
  y(t.$slots, "source", {}, void 0, !0)
1388
1390
  ], 512)) : L("", !0),
1389
- fe.value && e.value.userOptions.buttons.table ? (n(), U($l(le.value.component), Ll({ key: 8 }, le.value.props, {
1391
+ ge.value && e.value.userOptions.buttons.table ? (n(), z(_l(te.value.component), Fl({ key: 8 }, te.value.props, {
1390
1392
  ref_key: "tableUnit",
1391
- ref: ee,
1393
+ ref: Z,
1392
1394
  onClose: mt
1393
1395
  }), wt({
1394
1396
  content: p(() => [
1395
- (n(), U(i(Gt), {
1396
- key: `table_${He.value}`,
1397
+ (n(), z(c(Wt), {
1398
+ key: `table_${Xe.value}`,
1397
1399
  colNames: ie.value.colNames,
1398
1400
  head: ie.value.head,
1399
1401
  body: ie.value.body,
1400
1402
  config: ie.value.config,
1401
- title: e.value.table.useDialog ? "" : le.value.title,
1403
+ title: e.value.table.useDialog ? "" : te.value.title,
1402
1404
  withCloseButton: !e.value.table.useDialog,
1403
1405
  onClose: mt
1404
1406
  }, {
1405
- th: p(({ th: a }) => [
1407
+ th: p(({ th: l }) => [
1406
1408
  g("div", {
1407
- innerHTML: a,
1409
+ innerHTML: l,
1408
1410
  style: { display: "flex", "align-items": "center" }
1409
- }, null, 8, xa)
1411
+ }, null, 8, Ta)
1410
1412
  ]),
1411
- td: p(({ td: a }) => [
1412
- Lt(P(a.name || a), 1)
1413
+ td: p(({ td: l }) => [
1414
+ Lt(M(l.name || l), 1)
1413
1415
  ]),
1414
1416
  _: 1
1415
1417
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -1419,7 +1421,7 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1419
1421
  e.value.table.useDialog ? {
1420
1422
  name: "title",
1421
1423
  fn: p(() => [
1422
- Lt(P(le.value.title), 1)
1424
+ Lt(M(te.value.title), 1)
1423
1425
  ]),
1424
1426
  key: "0"
1425
1427
  } : void 0,
@@ -1429,26 +1431,26 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1429
1431
  g("button", {
1430
1432
  tabindex: "0",
1431
1433
  class: "vue-ui-user-options-button",
1432
- onClick: s[1] || (s[1] = (a) => _e(e.value.userOptions.callbacks.csv))
1434
+ onClick: s[1] || (s[1] = (l) => Fe(e.value.userOptions.callbacks.csv))
1433
1435
  }, [
1434
- Pe(i(Ut), {
1436
+ Ie(c(Gt), {
1435
1437
  name: "excel",
1436
- stroke: le.value.props.color
1438
+ stroke: te.value.props.color
1437
1439
  }, null, 8, ["stroke"])
1438
1440
  ])
1439
1441
  ]),
1440
1442
  key: "1"
1441
1443
  } : void 0
1442
1444
  ]), 1040)) : L("", !0),
1443
- i(Ce) ? (n(), U(Ul, { key: 9 })) : L("", !0)
1444
- ], 46, Jl));
1445
+ c(we) ? (n(), z(Yl, { key: 9 })) : L("", !0)
1446
+ ], 46, ea));
1445
1447
  }
1446
- }, Ta = /* @__PURE__ */ Zl(Fa, [["__scopeId", "data-v-1468fc43"]]), Wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1448
+ }, Sa = /* @__PURE__ */ Zl(Da, [["__scopeId", "data-v-69e76543"]]), qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1447
1449
  __proto__: null,
1448
- default: Ta
1450
+ default: Sa
1449
1451
  }, Symbol.toStringTag, { value: "Module" }));
1450
1452
  export {
1451
- Ya as a,
1452
- Wa as b,
1453
- Ta as v
1453
+ Ha as a,
1454
+ qa as b,
1455
+ Sa as v
1454
1456
  };