vue-data-ui 3.4.8 → 3.5.0

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