vue-data-ui 2.16.6 → 2.17.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 (92) hide show
  1. package/README.md +83 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1096 -160
  23. package/dist/types/vue-data-ui.d.ts +1096 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
  26. package/dist/vue-data-ui-CIWxgKjd.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
  82. package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
  85. package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
  86. package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
@@ -1,21 +1,22 @@
1
- import { defineAsyncComponent as Q, useSlots as Xt, computed as y, shallowRef as E, ref as x, onMounted as tt, onBeforeUnmount as It, watch as lt, createElementBlock as n, openBlock as o, normalizeStyle as b, normalizeClass as _e, createBlock as Z, createCommentVNode as i, renderSlot as m, createElementVNode as f, createVNode as xe, unref as r, createSlots as at, withCtx as C, normalizeProps as oe, guardReactiveProps as ue, Fragment as p, renderList as A, mergeProps as ot, toDisplayString as P, createTextVNode as ut, nextTick as Dt } from "vue";
2
- import { u as Vt, o as Bt, e as st, g as Gt, c as Wt, b as Rt, v as Et, d as nt, p as ee, m as rt, $ as Ut, f as M, X as jt, s as fe, w as Ht, j as qt, N as L, i as D, k as ve, n as w, t as Jt, a as Kt, q as Qt, r as Zt, x as el, T as it } from "./index-DvIXJm6t.js";
3
- import { t as tl, u as ll } from "./useResponsive-DfdjqQps.js";
4
- import { u as vt } from "./useNestedProp-DrYHm61t.js";
5
- import { u as al } from "./usePrinter-CWnXbGMb.js";
6
- import { u as ol } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as ul } from "./useChartAccessibility-9icAAmYg.js";
8
- import sl from "./Legend-nBXoxXJH.js";
9
- import nl from "./Title-Gi81VwUM.js";
10
- import { _ as rl } from "./Shape-Bnf512BA.js";
11
- import { _ as il } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { key: 1 }, yl = ["id"], fl = ["stop-color"], pl = ["offset", "stop-color"], gl = ["offset", "stop-color"], ml = ["stop-color"], bl = { key: 2 }, wl = ["id", "cx", "cy"], kl = ["stop-color", "stop-opacity"], _l = ["stop-color"], xl = ["id"], $l = ["id"], Cl = ["id"], Tl = ["flood-color"], Pl = ["id"], Al = ["flood-color"], Sl = ["d", "stroke", "filter"], Fl = ["d", "stroke", "filter"], Ll = ["cx", "cy", "r", "fill", "filter"], Ol = { key: 6 }, zl = ["stroke", "d"], Nl = ["d", "fill", "stroke", "stroke-width", "filter"], Ml = { key: 0 }, Yl = ["d", "fill", "stroke", "stroke-width", "filter"], Xl = { key: 0 }, Il = ["stroke", "d"], Dl = { key: 0 }, Vl = ["d", "stroke", "stroke-width", "filter"], Bl = { key: 1 }, Gl = ["d", "fill", "stroke", "stroke-width", "filter"], Wl = ["d", "fill", "stroke", "stroke-width", "filter"], Rl = { key: 1 }, El = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ul = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], jl = { key: 0 }, Hl = ["d", "fill", "stroke", "stroke-width"], ql = ["cx", "cy", "r", "stroke"], Jl = ["cx", "cy", "r", "fill"], Kl = { key: 0 }, Ql = ["d", "fill", "onMouseenter", "onClick"], Zl = { key: 1 }, ea = ["cx", "cy", "r"], ta = ["x", "y", "fill", "font-size"], la = ["x", "y", "fill", "font-size"], aa = ["x", "y", "fill", "font-size"], oa = ["x", "y", "fill", "font-size"], ua = ["filter"], sa = { key: 0 }, na = ["x", "y"], ra = { key: 1 }, ia = ["cx", "cy", "fill", "stroke", "filter", "onClick"], va = ["cx", "cy", "fill", "stroke", "filter", "onClick"], ca = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], da = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ha = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ya = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], fa = { key: 2 }, pa = ["x", "y", "width"], ga = ["x", "y", "width"], ma = {
1
+ import { defineAsyncComponent as Z, useSlots as Xt, computed as y, shallowRef as E, ref as x, onMounted as lt, onBeforeUnmount as Dt, watch as at, createElementBlock as n, openBlock as u, normalizeStyle as b, normalizeClass as _e, createBlock as ee, createCommentVNode as i, renderSlot as m, createElementVNode as f, createVNode as xe, unref as r, createSlots as ot, withCtx as C, normalizeProps as ue, guardReactiveProps as se, Fragment as p, renderList as A, mergeProps as ut, toDisplayString as P, createTextVNode as st, nextTick as Vt } from "vue";
2
+ import { u as Bt, o as Gt, e as nt, g as Wt, c as Rt, b as Et, v as Ut, d as rt, p as te, m as it, $ as jt, f as M, X as Ht, s as fe, w as qt, j as Jt, N as L, i as D, k as ve, n as w, t as Kt, a as Qt, q as Zt, r as el, x as tl, T as vt } from "./index-pPGk-uhD.js";
3
+ import { t as ll, u as al } from "./useResponsive-DfdjqQps.js";
4
+ import { u as ct } from "./useNestedProp-DjACxgdZ.js";
5
+ import { u as ol } from "./usePrinter-DDHcrl0A.js";
6
+ import { u as ul } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as sl } from "./useChartAccessibility-9icAAmYg.js";
8
+ import nl from "./Legend-Bxlv67uY.js";
9
+ import rl from "./Title-B-2bV0SW.js";
10
+ import { _ as il } from "./Shape-DtFT5EJa.js";
11
+ import vl from "./img-Y_hYz-ZC.js";
12
+ import { _ as cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const dl = ["id"], hl = ["xmlns", "viewBox"], yl = ["width", "height"], fl = { key: 1 }, pl = ["id"], gl = ["stop-color"], ml = ["offset", "stop-color"], bl = ["offset", "stop-color"], wl = ["stop-color"], kl = { key: 2 }, _l = ["id", "cx", "cy"], xl = ["stop-color", "stop-opacity"], $l = ["stop-color"], Cl = ["id"], Tl = ["id"], Pl = ["id"], Al = ["flood-color"], Sl = ["id"], Fl = ["flood-color"], Ll = ["d", "stroke", "filter"], Ol = ["d", "stroke", "filter"], zl = ["cx", "cy", "r", "fill", "filter"], Nl = { key: 6 }, Ml = ["stroke", "d"], Yl = ["d", "fill", "stroke", "stroke-width", "filter"], Il = { key: 0 }, Xl = ["d", "fill", "stroke", "stroke-width", "filter"], Dl = { key: 0 }, Vl = ["stroke", "d"], Bl = { key: 0 }, Gl = ["d", "stroke", "stroke-width", "filter"], Wl = { key: 1 }, Rl = ["d", "fill", "stroke", "stroke-width", "filter"], El = ["d", "fill", "stroke", "stroke-width", "filter"], Ul = { key: 1 }, jl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Hl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ql = { key: 0 }, Jl = ["d", "fill", "stroke", "stroke-width"], Kl = ["cx", "cy", "r", "stroke"], Ql = ["cx", "cy", "r", "fill"], Zl = { key: 0 }, ea = ["d", "fill", "onMouseenter", "onClick"], ta = { key: 1 }, la = ["cx", "cy", "r"], aa = ["x", "y", "fill", "font-size"], oa = ["x", "y", "fill", "font-size"], ua = ["x", "y", "fill", "font-size"], sa = ["x", "y", "fill", "font-size"], na = ["filter"], ra = { key: 0 }, ia = ["x", "y"], va = { key: 1 }, ca = ["cx", "cy", "fill", "stroke", "filter", "onClick"], da = ["cx", "cy", "fill", "stroke", "filter", "onClick"], ha = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ya = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], fa = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], pa = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ga = { key: 2 }, ma = ["x", "y", "width"], ba = ["x", "y", "width"], wa = {
13
14
  key: 5,
14
15
  class: "vue-data-ui-watermark"
15
- }, ba = ["onClick"], wa = {
16
+ }, ka = ["onClick"], _a = {
16
17
  key: 0,
17
18
  style: { "font-variant-numeric": "tabular-nums" }
18
- }, ka = { key: 1 }, _a = ["innerHTML"], xa = {
19
+ }, xa = { key: 1 }, $a = ["innerHTML"], Ca = {
19
20
  __name: "vue-ui-donut",
20
21
  props: {
21
22
  config: {
@@ -32,72 +33,72 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
32
33
  }
33
34
  },
34
35
  emits: ["selectLegend", "selectDatapoint"],
35
- setup($e, { expose: ct, emit: dt }) {
36
- const ht = Q(() => import("./vue-ui-accordion-D55kCO5G.js")), yt = Q(() => import("./DataTable-CHBLjKtZ.js")), ft = Q(() => import("./PackageVersion-Bg_9KCU-.js")), pt = Q(() => import("./PenAndPaper-BPTpbnay.js")), gt = Q(() => import("./vue-ui-skeleton-BAOt2neL.js")), mt = Q(() => import("./Tooltip-CJxVw7-T.js")), bt = Q(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_donut: wt } = Vt(), kt = Xt(), O = $e, se = y({
36
+ setup($e, { expose: dt, emit: ht }) {
37
+ const yt = Z(() => import("./vue-ui-accordion-CVnA550V.js")), ft = Z(() => import("./DataTable-D0VYDhfx.js")), pt = Z(() => import("./PackageVersion-5TR4ocqp.js")), gt = Z(() => import("./PenAndPaper-D6AqipIO.js")), mt = Z(() => import("./vue-ui-skeleton-DJPjyNYn.js")), bt = Z(() => import("./Tooltip-CoQnTnr-.js")), wt = Z(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_donut: kt } = Bt(), _t = Xt(), O = $e, ne = y({
37
38
  get() {
38
39
  return !!O.dataset && O.dataset.length;
39
40
  },
40
41
  set(l) {
41
42
  return l;
42
43
  }
43
- }), ne = E(null), Ce = E(null), Te = E(null), U = E(null), te = E(null), Pe = E(null), Ae = E(null), Se = x(0), Fe = x(0), Le = x(0);
44
- tt(() => {
44
+ }), q = E(null), Ce = E(null), Te = E(null), U = E(null), le = E(null), Pe = E(null), Ae = E(null), Se = x(0), Fe = x(0), Le = x(0);
45
+ lt(() => {
45
46
  Oe();
46
- }), It(() => {
47
- U.value && (te.value && U.value.unobserve(te.value), U.value.disconnect());
47
+ }), Dt(() => {
48
+ U.value && (le.value && U.value.unobserve(le.value), U.value.disconnect());
48
49
  });
49
50
  function Oe() {
50
- if (Bt(O.dataset) ? st({
51
+ if (Gt(O.dataset) ? nt({
51
52
  componentName: "VueUiDonut",
52
53
  type: "dataset"
53
- }) : O.dataset.forEach((l, u) => {
54
- Gt({
54
+ }) : O.dataset.forEach((l, o) => {
55
+ Wt({
55
56
  datasetObject: l,
56
57
  requiredAttributes: ["name", "values"]
57
58
  }).forEach((t) => {
58
- se.value = !1, st({
59
+ ne.value = !1, nt({
59
60
  componentName: "VueUiDonut",
60
61
  type: "datasetSerieAttribute",
61
62
  property: t,
62
- index: u
63
+ index: o
63
64
  });
64
65
  });
65
66
  }), e.value.responsive) {
66
- const l = tl(() => {
67
- const { width: u, height: t } = ll({
68
- chart: ne.value,
67
+ const l = ll(() => {
68
+ const { width: o, height: t } = al({
69
+ chart: q.value,
69
70
  title: e.value.style.chart.title.text ? Ce.value : null,
70
71
  legend: e.value.style.chart.legend.show ? Te.value : null,
71
72
  source: Pe.value,
72
73
  noTitle: Ae.value,
73
- padding: Xe.value
74
+ padding: Ie.value
74
75
  });
75
76
  requestAnimationFrame(() => {
76
- s.value.width = u, s.value.height = t;
77
+ s.value.width = o, s.value.height = t;
77
78
  });
78
79
  });
79
- U.value && (te.value && U.value.unobserve(te.value), U.value.disconnect()), U.value = new ResizeObserver(l), te.value = ne.value.parentNode, U.value.observe(te.value);
80
+ U.value && (le.value && U.value.unobserve(le.value), U.value.disconnect()), U.value = new ResizeObserver(l), le.value = q.value.parentNode, U.value.observe(le.value);
80
81
  }
81
82
  }
82
- const g = x(Wt()), _t = x(null), ce = x(!1), pe = x(""), z = x(null), ze = x(0);
83
+ const g = x(Rt()), xt = x(null), ce = x(!1), pe = x(""), z = x(null), ze = x(0);
83
84
  function Ne() {
84
- const l = vt({
85
+ const l = ct({
85
86
  userConfig: O.config,
86
- defaultConfig: wt
87
+ defaultConfig: kt
87
88
  });
88
89
  return l.theme ? {
89
- ...vt({
90
- userConfig: Kt.vue_ui_donut[l.theme] || O.config,
90
+ ...ct({
91
+ userConfig: Qt.vue_ui_donut[l.theme] || O.config,
91
92
  defaultConfig: l
92
93
  }),
93
- customPalette: Jt[l.theme] || ee
94
+ customPalette: Kt[l.theme] || te
94
95
  } : l;
95
96
  }
96
97
  const e = y({
97
98
  get: () => Ne(),
98
99
  set: (l) => l
99
100
  }), T = x(!0), B = E([]);
100
- function xt(l, u = 1e3, t = 50) {
101
+ function $t(l, o = 1e3, t = 50) {
101
102
  return new Promise((a) => {
102
103
  const v = l.length;
103
104
  B.value = Array(v).fill(0);
@@ -105,47 +106,47 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
105
106
  l.forEach((_, $) => {
106
107
  setTimeout(() => {
107
108
  const R = performance.now();
108
- function I(ie) {
109
- const ye = Math.min((ie - R) / u, 1), Yt = it(ye);
110
- B.value[$] = _ * Yt, B.value = [...B.value], ye < 1 ? requestAnimationFrame(I) : (B.value[$] = _, B.value = [...B.value], d += 1, d === v && a());
109
+ function X(ie) {
110
+ const ye = Math.min((ie - R) / o, 1), It = vt(ye);
111
+ B.value[$] = _ * It, B.value = [...B.value], ye < 1 ? requestAnimationFrame(X) : (B.value[$] = _, B.value = [...B.value], d += 1, d === v && a());
111
112
  }
112
- requestAnimationFrame(I);
113
+ requestAnimationFrame(X);
113
114
  }, $ * t);
114
115
  });
115
116
  });
116
117
  }
117
- tt(async () => {
118
- const l = O.dataset.map((u) => u.values.reduce((t, a) => t + a, 0));
119
- e.value.startAnimation.show && await xt(
118
+ lt(async () => {
119
+ const l = O.dataset.map((o) => o.values.reduce((t, a) => t + a, 0));
120
+ e.value.startAnimation.show && await $t(
120
121
  l,
121
122
  e.value.startAnimation.durationMs,
122
123
  e.value.startAnimation.staggerMs
123
124
  ), T.value = !1;
124
125
  });
125
- const { userOptionsVisible: ge, setUserOptionsVisibility: Me, keepUserOptionState: Ye } = ol({ config: e.value }), { svgRef: me } = ul({ config: e.value.style.chart.title });
126
- function $t() {
126
+ const { userOptionsVisible: ge, setUserOptionsVisibility: Me, keepUserOptionState: Ye } = ul({ config: e.value }), { svgRef: me } = sl({ config: e.value.style.chart.title });
127
+ function Ct() {
127
128
  Me(!0);
128
129
  }
129
- function Ct() {
130
+ function Tt() {
130
131
  Me(!1);
131
132
  }
132
- lt(() => O.config, (l) => {
133
+ at(() => O.config, (l) => {
133
134
  e.value = Ne(), ge.value = !e.value.userOptions.showOnChartHover, Oe(), Se.value += 1, Fe.value += 1, Le.value += 1, h.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, h.value.showTable = e.value.table.show, h.value.showTooltip = e.value.style.chart.tooltip.show, s.value.height = e.value.style.chart.height, s.value.width = e.value.style.chart.width;
134
135
  }, { deep: !0 });
135
- const Xe = y(() => {
136
- const { top: l, right: u, bottom: t, left: a } = e.value.style.chart.padding;
136
+ const Ie = y(() => {
137
+ const { top: l, right: o, bottom: t, left: a } = e.value.style.chart.padding;
137
138
  return {
138
- css: `padding:${l}px ${u}px ${t}px ${a}px`,
139
+ css: `padding:${l}px ${o}px ${t}px ${a}px`,
139
140
  top: l,
140
- right: u,
141
+ right: o,
141
142
  bottom: t,
142
143
  left: a
143
144
  };
144
- }), { isPrinting: Ie, isImaging: De, generatePdf: Ve, generateImage: Be } = al({
145
+ }), { isPrinting: Xe, isImaging: De, generatePdf: Ve, generateImage: Be } = ol({
145
146
  elementId: `donut__${g.value}`,
146
147
  fileName: e.value.style.chart.title.text || "vue-ui-donut",
147
148
  options: e.value.userOptions.print
148
- }), Tt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ge = y(() => Rt(e.value.customPalette)), h = x({
149
+ }), Pt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ge = y(() => Et(e.value.customPalette)), h = x({
149
150
  dataLabels: {
150
151
  show: e.value.style.chart.layout.labels.dataLabels.show
151
152
  },
@@ -154,39 +155,39 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
154
155
  }), s = x({
155
156
  height: e.value.style.chart.height,
156
157
  width: e.value.style.chart.width
157
- }), q = y(() => {
158
- const l = e.value.style.chart.layout.donut.strokeWidth / 512, u = Math.min(s.value.width, s.value.height) * l, t = u > k.value ? k.value : u;
158
+ }), J = y(() => {
159
+ const l = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(s.value.width, s.value.height) * l, t = o > k.value ? k.value : o;
159
160
  return Math.max(t, 3);
160
- }), We = dt, G = y(() => O.dataset.map((l, u) => ({
161
+ }), We = ht, G = y(() => O.dataset.map((l, o) => ({
161
162
  name: l.name,
162
- color: nt(l.color) || Ge.value[u] || ee[u] || ee[u % ee.length],
163
- value: Et(l.values.reduce((t, a) => t + a, 0)),
163
+ color: rt(l.color) || Ge.value[o] || te[o] || te[o % te.length],
164
+ value: Ut(l.values.reduce((t, a) => t + a, 0)),
164
165
  absoluteValues: l.values,
165
166
  comment: l.comment || "",
166
- patternIndex: u,
167
- seriesIndex: u,
167
+ patternIndex: o,
168
+ seriesIndex: o,
168
169
  ghost: !1,
169
- pattern: `pattern_${g.value}_${u}`
170
+ pattern: `pattern_${g.value}_${o}`
170
171
  }))), N = E(G.value);
171
- lt(() => G.value, (l) => N.value = l);
172
- function Pt() {
172
+ at(() => G.value, (l) => N.value = l);
173
+ function At() {
173
174
  return G.value.map((l) => ({
174
175
  name: l.name,
175
176
  color: l.color,
176
177
  value: l.value
177
178
  }));
178
179
  }
179
- const V = x([]), J = x(!1);
180
- function Re({ from: l, to: u, duration: t, onUpdate: a, onDone: v, easing: d = it }) {
180
+ const V = x([]), K = x(!1);
181
+ function Re({ from: l, to: o, duration: t, onUpdate: a, onDone: v, easing: d = vt }) {
181
182
  const _ = performance.now();
182
183
  function $(R) {
183
- const I = Math.min((R - _) / t, 1), ie = d(I), ye = l + (u - l) * ie;
184
- a(ye, I), I < 1 ? requestAnimationFrame($) : (a(u, 1), v && v());
184
+ const X = Math.min((R - _) / t, 1), ie = d(X), ye = l + (o - l) * ie;
185
+ a(ye, X), X < 1 ? requestAnimationFrame($) : (a(o, 1), v && v());
185
186
  }
186
187
  requestAnimationFrame($);
187
188
  }
188
189
  function Ee(l) {
189
- const u = G.value.find((v, d) => d === l);
190
+ const o = G.value.find((v, d) => d === l);
190
191
  let a = N.value.find((v, d) => d === l).value;
191
192
  if (V.value.includes(l)) {
192
193
  let d = function() {
@@ -194,22 +195,22 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
194
195
  ($, R) => l === R ? { ...$, value: v } : $
195
196
  );
196
197
  }, _ = function() {
197
- J.value = !0, Re({
198
+ K.value = !0, Re({
198
199
  from: a,
199
200
  to: v,
200
201
  duration: e.value.serieToggleAnimation.durationMs,
201
202
  onUpdate: ($, R) => {
202
203
  N.value = N.value.map(
203
- (I, ie) => l === ie ? { ...I, value: $ } : I
204
+ (X, ie) => l === ie ? { ...X, value: $ } : X
204
205
  );
205
206
  },
206
207
  onDone: () => {
207
- d(), J.value = !1;
208
+ d(), K.value = !1;
208
209
  }
209
210
  });
210
211
  };
211
212
  V.value = V.value.filter(($) => $ !== l);
212
- const v = u.value;
213
+ const v = o.value;
213
214
  e.value.serieToggleAnimation.show && e.value.type === "classic" ? _() : d();
214
215
  } else if (V.value.length < G.value.length - 1) {
215
216
  let v = function() {
@@ -217,17 +218,17 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
217
218
  (_, $) => l === $ ? { ..._, value: 0 } : _
218
219
  );
219
220
  }, d = function() {
220
- J.value = !0, Re({
221
+ K.value = !0, Re({
221
222
  from: a,
222
223
  to: 0,
223
224
  duration: e.value.serieToggleAnimation.durationMs,
224
225
  onUpdate: (_, $) => {
225
226
  N.value = N.value.map(
226
- (R, I) => l === I ? { ...R, value: _ } : R
227
+ (R, X) => l === X ? { ...R, value: _ } : R
227
228
  );
228
229
  },
229
230
  onDone: () => {
230
- v(), J.value = !1;
231
+ v(), K.value = !1;
231
232
  }
232
233
  });
233
234
  };
@@ -239,44 +240,44 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
239
240
  value: v.value
240
241
  })));
241
242
  }
242
- const At = y(() => O.dataset.reduce((l, u) => l + u.values.reduce((t, a) => t + a, 0), 0)), W = y(() => {
243
+ const St = y(() => O.dataset.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)), W = y(() => {
243
244
  if (T.value) {
244
245
  const l = B.value.map((t, a) => ({
245
246
  ...G.value[a],
246
247
  value: t,
247
248
  color: G.value[a].color,
248
249
  ghost: !1
249
- })), u = At.value - B.value.reduce((t, a) => t + a, 0);
250
- return u > 0 && l.push({
250
+ })), o = St.value - B.value.reduce((t, a) => t + a, 0);
251
+ return o > 0 && l.push({
251
252
  name: "__ghost__",
252
- value: u,
253
+ value: o,
253
254
  color: "transparent",
254
255
  ghost: !0
255
256
  }), l;
256
257
  } else
257
- return N.value.forEach((l, u) => {
258
+ return N.value.forEach((l, o) => {
258
259
  if ([null, void 0].includes(l.values))
259
260
  return {
260
261
  ...l,
261
262
  values: []
262
263
  };
263
- }), N.value.map((l, u) => ({
264
+ }), N.value.map((l, o) => ({
264
265
  ...l,
265
- seriesIndex: u
266
- })).filter((l, u) => !V.value.includes(u));
267
- }), Ue = y(() => O.dataset.map((l, u) => ({
266
+ seriesIndex: o
267
+ })).filter((l, o) => !V.value.includes(o));
268
+ }), Ue = y(() => O.dataset.map((l, o) => ({
268
269
  name: l.name,
269
- color: nt(l.color) || Ge.value[u] || ee[u] || ee[u % ee.length],
270
+ color: rt(l.color) || Ge.value[o] || te[o] || te[o % te.length],
270
271
  value: (l.values || []).reduce((t, a) => t + a, 0),
271
272
  shape: "circle",
272
- patternIndex: u
273
- })).map((l, u) => ({
273
+ patternIndex: o
274
+ })).map((l, o) => ({
274
275
  ...l,
275
276
  proportion: l.value / O.dataset.map((t) => (t.values || []).reduce((a, v) => a + v, 0)).reduce((t, a) => t + a, 0),
276
- opacity: V.value.includes(u) ? 0.5 : 1,
277
- segregate: () => !J.value && Ee(u),
278
- isSegregated: V.value.includes(u)
279
- }))), St = y(() => ({
277
+ opacity: V.value.includes(o) ? 0.5 : 1,
278
+ segregate: () => !K.value && Ee(o),
279
+ isSegregated: V.value.includes(o)
280
+ }))), Ft = y(() => ({
280
281
  cy: "donut-div-legend",
281
282
  backgroundColor: e.value.style.chart.legend.backgroundColor,
282
283
  color: e.value.style.chart.legend.color,
@@ -286,7 +287,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
286
287
  })), k = y(() => {
287
288
  const l = Math.min(s.value.width / 3, s.value.height / 3);
288
289
  return l < 55 ? 55 : l;
289
- }), S = y(() => rt({ series: W.value }, s.value.width / 2, s.value.height / 2, k.value, k.value, 1.99999, 2, 1, 360, 105.25, q.value)), Ft = y(() => Math.abs(W.value.map((l) => l.value).reduce((l, u) => l + u, 0)) > 0), Lt = y(() => rt({
290
+ }), S = y(() => it({ series: W.value }, s.value.width / 2, s.value.height / 2, k.value, k.value, 1.99999, 2, 1, 360, 105.25, J.value)), Lt = y(() => Math.abs(W.value.map((l) => l.value).reduce((l, o) => l + o, 0)) > 0), Ot = y(() => it({
290
291
  series: [
291
292
  {
292
293
  value: 1,
@@ -298,10 +299,10 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
298
299
  absoluteValues: [1]
299
300
  }
300
301
  ]
301
- }, s.value.width / 2, s.value.height / 2, k.value, k.value, 1.99999, 2, 1, 360, 105.25, q.value)), Y = y(() => S.value.filter((l) => !l.ghost)), c = y(() => {
302
- const l = Math.max(...W.value.map((t) => t.value)), u = W.value.map((t) => t.value / l);
303
- return Ut({
304
- series: u,
302
+ }, s.value.width / 2, s.value.height / 2, k.value, k.value, 1.99999, 2, 1, 360, 105.25, J.value)), Y = y(() => S.value.filter((l) => !l.ghost)), c = y(() => {
303
+ const l = Math.max(...W.value.map((t) => t.value)), o = W.value.map((t) => t.value / l);
304
+ return jt({
305
+ series: o,
305
306
  center: {
306
307
  x: s.value.width / 2,
307
308
  y: s.value.height / 2
@@ -310,17 +311,17 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
310
311
  hasGhost: T.value
311
312
  });
312
313
  });
313
- function le(l) {
314
+ function ae(l) {
314
315
  return l.x > s.value.width / 2 + 6 ? "start" : l.x < s.value.width / 2 - 6 ? "end" : "middle";
315
316
  }
316
- function Ot(l) {
317
+ function zt(l) {
317
318
  return l.middlePoint.y > s.value.height / 2 ? L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y : L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y - 100;
318
319
  }
319
- function X(l) {
320
+ function I(l) {
320
321
  return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
321
322
  }
322
- function be(l, u) {
323
- const t = l.value / zt(u);
323
+ function be(l, o) {
324
+ const t = l.value / Nt(o);
324
325
  return isNaN(t) ? 0 : D(
325
326
  e.value.style.chart.layout.labels.percentage.formatter,
326
327
  t * 100,
@@ -332,15 +333,15 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
332
333
  { datapoint: l }
333
334
  );
334
335
  }
335
- function zt(l) {
336
- return [...l].map((u) => u.value).reduce((u, t) => u + t, 0);
336
+ function Nt(l) {
337
+ return [...l].map((o) => o.value).reduce((o, t) => o + t, 0);
337
338
  }
338
- const F = y(() => W.value.map((l) => l.value).reduce((l, u) => l + u, 0)), je = y(() => F.value / W.value.length), He = y(() => (l) => J.value ? l.proportion * 100 : l.value / F.value * 100), we = x(null), re = x(!1);
339
- function qe({ datapoint: l, relativeIndex: u, seriesIndex: t, show: a = !1 }) {
340
- we.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, ce.value = a, z.value = u;
339
+ const F = y(() => W.value.map((l) => l.value).reduce((l, o) => l + o, 0)), je = y(() => F.value / W.value.length), He = y(() => (l) => K.value ? l.proportion * 100 : l.value / F.value * 100), we = x(null), re = x(!1);
340
+ function qe({ datapoint: l, relativeIndex: o, seriesIndex: t, show: a = !1 }) {
341
+ we.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, ce.value = a, z.value = o;
341
342
  let v = "";
342
343
  const d = e.value.style.chart.tooltip.customFormat;
343
- if (re.value = !1, el(d))
344
+ if (re.value = !1, tl(d))
344
345
  try {
345
346
  const _ = d({
346
347
  seriesIndex: t,
@@ -353,7 +354,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
353
354
  console.warn("Custom format cannot be applied."), re.value = !1;
354
355
  }
355
356
  if (!re.value) {
356
- if (v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, v += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${kt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${g.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (v += `<b>${D(
357
+ if (v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, v += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${_t.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${g.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (v += `<b>${D(
357
358
  e.value.style.chart.layout.labels.value.formatter,
358
359
  l.value,
359
360
  M({
@@ -364,7 +365,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
364
365
  }),
365
366
  {
366
367
  datapoint: l,
367
- relativeIndex: u,
368
+ relativeIndex: o,
368
369
  seriesIndex: t
369
370
  }
370
371
  )}</b>`), e.value.style.chart.tooltip.showPercentage) {
@@ -378,7 +379,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
378
379
  }),
379
380
  {
380
381
  datapoint: l,
381
- relativeIndex: u,
382
+ relativeIndex: o,
382
383
  seriesIndex: t
383
384
  }
384
385
  );
@@ -387,22 +388,22 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
387
388
  e.value.style.chart.comments.showInTooltip && l.comment && (v += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`), pe.value = `<div>${v}</div>`;
388
389
  }
389
390
  }
390
- function K(l) {
391
+ function Q(l) {
391
392
  return e.value.useBlurOnHover && ![null, void 0].includes(z.value) && z.value !== l ? `url(#blur_${g.value})` : "";
392
393
  }
393
394
  const j = y(() => {
394
395
  const l = W.value.map((t) => ({
395
396
  name: t.name,
396
397
  color: t.color
397
- })), u = W.value.map((t) => t.value);
398
- return { head: l, body: u };
398
+ })), o = W.value.map((t) => t.value);
399
+ return { head: l, body: o };
399
400
  });
400
401
  function Je(l = null) {
401
- Dt(() => {
402
- const u = j.value.head.map((v, d) => [[
402
+ Vt(() => {
403
+ const o = j.value.head.map((v, d) => [[
403
404
  v.name
404
- ], [j.value.body[d]], [isNaN(j.value.body[d] / F.value) ? "-" : j.value.body[d] / F.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(u), a = Qt(t);
405
- l ? l(a) : Zt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
405
+ ], [j.value.body[d]], [isNaN(j.value.body[d] / F.value) ? "-" : j.value.body[d] / F.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Zt(t);
406
+ l ? l(a) : el({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
406
407
  });
407
408
  }
408
409
  const de = y(() => {
@@ -410,7 +411,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
410
411
  ' <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>',
411
412
  M({ 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 }),
412
413
  "100%"
413
- ], u = j.value.head.map((v, d) => [
414
+ ], o = j.value.head.map((v, d) => [
414
415
  {
415
416
  color: v.color,
416
417
  name: v.name
@@ -437,52 +438,59 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
437
438
  e.value.table.columnNames.percentage
438
439
  ],
439
440
  head: l,
440
- body: u,
441
+ body: o,
441
442
  config: t
442
443
  };
443
- }), ae = x(!1);
444
- function Nt(l) {
445
- ae.value = l, ze.value += 1;
444
+ }), oe = x(!1);
445
+ function Ke(l) {
446
+ oe.value = l, ze.value += 1;
446
447
  }
447
- const Ke = y(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
448
+ const Qe = y(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
448
449
  function Mt(l) {
449
- return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((u) => "-").join("");
450
+ return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((o) => "-").join("");
450
451
  }
451
- function H(l, u) {
452
- We("selectDatapoint", { datapoint: l, index: u });
452
+ function H(l, o) {
453
+ We("selectDatapoint", { datapoint: l, index: o });
453
454
  }
454
- function Qe() {
455
+ function Ze() {
455
456
  h.value.showTable = !h.value.showTable;
456
457
  }
457
- function Ze() {
458
+ function et() {
458
459
  h.value.dataLabels.show = !h.value.dataLabels.show;
459
460
  }
460
- function et() {
461
+ function tt() {
461
462
  h.value.showTooltip = !h.value.showTooltip;
462
463
  }
463
464
  const he = x(!1);
464
465
  function ke() {
465
466
  he.value = !he.value;
466
467
  }
467
- return ct({
468
- getData: Pt,
468
+ async function Yt({ scale: l = 2 } = {}) {
469
+ if (!q.value) return;
470
+ const { imageUri: o, base64: t } = await vl({ domElement: q.value, base64: !0, img: !0, scale: l });
471
+ return { imageUri: o, base64: t };
472
+ }
473
+ return dt({
474
+ getData: At,
475
+ getImage: Yt,
469
476
  generatePdf: Ve,
470
477
  generateCsv: Je,
471
478
  generateImage: Be,
472
- toggleTable: Qe,
473
- toggleLabels: Ze,
474
- toggleTooltip: et,
475
- toggleAnnotator: ke
476
- }), (l, u) => (o(), n("div", {
479
+ toggleTable: Ze,
480
+ toggleLabels: et,
481
+ toggleTooltip: tt,
482
+ toggleAnnotator: ke,
483
+ toggleFullscreen: Ke
484
+ }), (l, o) => (u(), n("div", {
477
485
  ref_key: "donutChart",
478
- ref: ne,
479
- class: _e(`vue-ui-donut ${ae.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
486
+ ref: q,
487
+ class: _e(`vue-ui-donut ${oe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
480
488
  style: b(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
481
489
  id: `donut__${g.value}`,
482
- onMouseenter: $t,
483
- onMouseleave: Ct
490
+ onMouseenter: Ct,
491
+ onMouseleave: Tt
484
492
  }, [
485
- e.value.userOptions.buttons.annotator && r(me) ? (o(), Z(r(pt), {
493
+ e.value.userOptions.buttons.annotator && r(me) ? (u(), ee(r(gt), {
486
494
  key: 0,
487
495
  color: e.value.style.chart.color,
488
496
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -491,20 +499,20 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
491
499
  onClose: ke
492
500
  }, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : i("", !0),
493
501
  m(l.$slots, "userConfig", {}, void 0, !0),
494
- Tt.value ? (o(), n("div", {
502
+ Pt.value ? (u(), n("div", {
495
503
  key: 1,
496
504
  ref_key: "noTitle",
497
505
  ref: Ae,
498
506
  class: "vue-data-ui-no-title-space",
499
507
  style: "height:36px; width: 100%;background:transparent"
500
508
  }, null, 512)) : i("", !0),
501
- e.value.style.chart.title.text ? (o(), n("div", {
509
+ e.value.style.chart.title.text ? (u(), n("div", {
502
510
  key: 2,
503
511
  ref_key: "chartTitle",
504
512
  ref: Ce,
505
513
  style: "width:100%;background:transparent;padding-bottom:24px"
506
514
  }, [
507
- (o(), Z(nl, {
515
+ (u(), ee(rl, {
508
516
  key: `title_${Se.value}`,
509
517
  config: {
510
518
  title: {
@@ -518,13 +526,13 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
518
526
  }
519
527
  }, null, 8, ["config"]))
520
528
  ], 512)) : i("", !0),
521
- e.value.userOptions.show && se.value && (r(Ye) || r(ge)) ? (o(), Z(r(bt), {
529
+ e.value.userOptions.show && ne.value && (r(Ye) || r(ge)) ? (u(), ee(r(wt), {
522
530
  ref_key: "details",
523
- ref: _t,
531
+ ref: xt,
524
532
  key: `user_option_${ze.value}`,
525
533
  backgroundColor: e.value.style.chart.backgroundColor,
526
534
  color: e.value.style.chart.color,
527
- isPrinting: r(Ie),
535
+ isPrinting: r(Xe),
528
536
  isImaging: r(De),
529
537
  uid: g.value,
530
538
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
@@ -534,8 +542,8 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
534
542
  hasTable: e.value.userOptions.buttons.table,
535
543
  hasLabel: e.value.userOptions.buttons.labels,
536
544
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
537
- isFullscreen: ae.value,
538
- chartElement: ne.value,
545
+ isFullscreen: oe.value,
546
+ chartElement: q.value,
539
547
  position: e.value.userOptions.position,
540
548
  callbacks: e.value.userOptions.callbacks,
541
549
  isTooltip: h.value.showTooltip,
@@ -543,22 +551,22 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
543
551
  hasAnnotator: e.value.userOptions.buttons.annotator,
544
552
  isAnnotation: he.value,
545
553
  printScale: e.value.userOptions.print.scale,
546
- onToggleFullscreen: Nt,
554
+ onToggleFullscreen: Ke,
547
555
  onGeneratePdf: r(Ve),
548
556
  onGenerateCsv: Je,
549
557
  onGenerateImage: r(Be),
550
- onToggleTable: Qe,
551
- onToggleLabels: Ze,
552
- onToggleTooltip: et,
558
+ onToggleTable: Ze,
559
+ onToggleLabels: et,
560
+ onToggleTooltip: tt,
553
561
  onToggleAnnotator: ke,
554
562
  style: b({
555
563
  visibility: r(Ye) ? r(ge) ? "visible" : "hidden" : "visible"
556
564
  })
557
- }, at({ _: 2 }, [
565
+ }, ot({ _: 2 }, [
558
566
  l.$slots.menuIcon ? {
559
567
  name: "menuIcon",
560
568
  fn: C(({ isOpen: t, color: a }) => [
561
- m(l.$slots, "menuIcon", oe(ue({ isOpen: t, color: a })), void 0, !0)
569
+ m(l.$slots, "menuIcon", ue(se({ isOpen: t, color: a })), void 0, !0)
562
570
  ]),
563
571
  key: "0"
564
572
  } : void 0,
@@ -607,29 +615,29 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
607
615
  l.$slots.optionFullscreen ? {
608
616
  name: "optionFullscreen",
609
617
  fn: C(({ toggleFullscreen: t, isFullscreen: a }) => [
610
- m(l.$slots, "optionFullscreen", oe(ue({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
618
+ m(l.$slots, "optionFullscreen", ue(se({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
611
619
  ]),
612
620
  key: "7"
613
621
  } : void 0,
614
622
  l.$slots.optionAnnotator ? {
615
623
  name: "optionAnnotator",
616
624
  fn: C(({ toggleAnnotator: t, isAnnotator: a }) => [
617
- m(l.$slots, "optionAnnotator", oe(ue({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
625
+ m(l.$slots, "optionAnnotator", ue(se({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
618
626
  ]),
619
627
  key: "8"
620
628
  } : void 0
621
629
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
622
- se.value ? (o(), n("svg", {
630
+ ne.value ? (u(), n("svg", {
623
631
  key: 4,
624
632
  ref_key: "svgRef",
625
633
  ref: me,
626
- xmlns: r(jt),
627
- class: _e({ "vue-data-ui-fullscreen--on": ae.value, "vue-data-ui-fulscreen--off": !ae.value }),
634
+ xmlns: r(Ht),
635
+ class: _e({ "vue-data-ui-fullscreen--on": oe.value, "vue-data-ui-fulscreen--off": !oe.value }),
628
636
  viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
629
- style: b(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Xe.value.css}`)
637
+ style: b(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Ie.value.css}`)
630
638
  }, [
631
- xe(r(ft)),
632
- l.$slots["chart-background"] ? (o(), n("foreignObject", {
639
+ xe(r(pt)),
640
+ l.$slots["chart-background"] ? (u(), n("foreignObject", {
633
641
  key: 0,
634
642
  x: 0,
635
643
  y: 0,
@@ -640,9 +648,9 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
640
648
  }
641
649
  }, [
642
650
  m(l.$slots, "chart-background", {}, void 0, !0)
643
- ], 8, dl)) : i("", !0),
644
- e.value.type === "classic" && !isNaN(q.value / k.value) ? (o(), n("defs", hl, [
645
- e.value.style.chart.useGradient ? (o(), n("radialGradient", {
651
+ ], 8, yl)) : i("", !0),
652
+ e.value.type === "classic" && !isNaN(J.value / k.value) ? (u(), n("defs", fl, [
653
+ e.value.style.chart.useGradient ? (u(), n("radialGradient", {
646
654
  key: 0,
647
655
  id: `gradient_${g.value}`
648
656
  }, [
@@ -650,25 +658,25 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
650
658
  offset: "0%",
651
659
  "stop-color": r(fe)(e.value.style.chart.backgroundColor, 0),
652
660
  "stop-opacity": "0"
653
- }, null, 8, fl),
661
+ }, null, 8, gl),
654
662
  f("stop", {
655
- offset: `${(1 - q.value / k.value) * 100}%`,
663
+ offset: `${(1 - J.value / k.value) * 100}%`,
656
664
  "stop-color": r(fe)("#FFFFFF", 0),
657
665
  "stop-opacity": "0"
658
- }, null, 8, pl),
666
+ }, null, 8, ml),
659
667
  f("stop", {
660
- offset: `${(1 - q.value / k.value / 2) * 100}%`,
668
+ offset: `${(1 - J.value / k.value / 2) * 100}%`,
661
669
  "stop-color": r(fe)("#FFFFFF", e.value.style.chart.gradientIntensity)
662
- }, null, 8, gl),
670
+ }, null, 8, bl),
663
671
  f("stop", {
664
672
  offset: "100%",
665
673
  "stop-color": r(fe)(e.value.style.chart.backgroundColor, 0),
666
674
  "stop-opacity": "0"
667
- }, null, 8, ml)
668
- ], 8, yl)) : i("", !0)
675
+ }, null, 8, wl)
676
+ ], 8, pl)) : i("", !0)
669
677
  ])) : i("", !0),
670
- e.value.type === "polar" ? (o(), n("defs", bl, [
671
- (o(!0), n(p, null, A(c.value, (t, a) => (o(), n("radialGradient", {
678
+ e.value.type === "polar" ? (u(), n("defs", kl, [
679
+ (u(!0), n(p, null, A(c.value, (t, a) => (u(), n("radialGradient", {
672
680
  id: `polar_gradient_${a}_${g.value}`,
673
681
  cx: (isNaN(t.middlePoint.x / s.value.width * 100) ? 0 : t.middlePoint.x / s.value.width * 100) + "%",
674
682
  cy: (isNaN(t.middlePoint.y / s.value.height * 100) ? 0 : t.middlePoint.y / s.value.height * 100) + "%",
@@ -676,14 +684,14 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
676
684
  }, [
677
685
  f("stop", {
678
686
  offset: "0%",
679
- "stop-color": r(Ht)(S.value[a].color, 0.05),
687
+ "stop-color": r(qt)(S.value[a].color, 0.05),
680
688
  "stop-opacity": e.value.style.chart.gradientIntensity / 100
681
- }, null, 8, kl),
689
+ }, null, 8, xl),
682
690
  f("stop", {
683
691
  offset: "100%",
684
692
  "stop-color": S.value[a].color
685
- }, null, 8, _l)
686
- ], 8, wl))), 256))
693
+ }, null, 8, $l)
694
+ ], 8, _l))), 256))
687
695
  ])) : i("", !0),
688
696
  f("defs", null, [
689
697
  f("filter", {
@@ -697,12 +705,12 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
697
705
  in: "SourceGraphic",
698
706
  stdDeviation: 2,
699
707
  id: `blur_std_${g.value}`
700
- }, null, 8, $l),
701
- u[6] || (u[6] = f("feColorMatrix", {
708
+ }, null, 8, Tl),
709
+ o[6] || (o[6] = f("feColorMatrix", {
702
710
  type: "saturate",
703
711
  values: "0"
704
712
  }, null, -1))
705
- ], 8, xl),
713
+ ], 8, Cl),
706
714
  f("filter", {
707
715
  id: `shadow_${g.value}`,
708
716
  "color-interpolation-filters": "sRGB"
@@ -713,8 +721,8 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
713
721
  stdDeviation: "10",
714
722
  "flood-opacity": "0.5",
715
723
  "flood-color": e.value.style.chart.layout.donut.shadowColor
716
- }, null, 8, Tl)
717
- ], 8, Cl),
724
+ }, null, 8, Al)
725
+ ], 8, Pl),
718
726
  f("filter", {
719
727
  id: `drop_shadow_${g.value}`,
720
728
  "color-interpolation-filters": "sRGB",
@@ -729,23 +737,23 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
729
737
  stdDeviation: "3",
730
738
  "flood-opacity": "1",
731
739
  "flood-color": e.value.style.chart.layout.donut.shadowColor
732
- }, null, 8, Al)
733
- ], 8, Pl)
740
+ }, null, 8, Fl)
741
+ ], 8, Sl)
734
742
  ]),
735
- e.value.type === "classic" ? (o(!0), n(p, { key: 3 }, A(S.value.filter((t) => !t.ghost), (t, a) => (o(), n("g", null, [
736
- X(t) && h.value.dataLabels.show ? (o(), n("path", {
743
+ e.value.type === "classic" ? (u(!0), n(p, { key: 3 }, A(S.value.filter((t) => !t.ghost), (t, a) => (u(), n("g", null, [
744
+ I(t) && h.value.dataLabels.show ? (u(), n("path", {
737
745
  key: 0,
738
- d: r(qt)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, q.value, 12, e.value.style.chart.layout.curvedMarkers),
746
+ d: r(Jt)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, J.value, 12, e.value.style.chart.layout.curvedMarkers),
739
747
  stroke: t.color,
740
748
  "stroke-width": "1",
741
749
  "stroke-linecap": "round",
742
750
  "stroke-linejoin": "round",
743
751
  fill: "none",
744
- filter: K(a)
745
- }, null, 8, Sl)) : i("", !0)
752
+ filter: Q(a)
753
+ }, null, 8, Ll)) : i("", !0)
746
754
  ]))), 256)) : i("", !0),
747
- e.value.type === "polar" ? (o(!0), n(p, { key: 4 }, A(S.value.filter((t) => !t.ghost), (t, a) => (o(), n("g", null, [
748
- X(t) && h.value.dataLabels.show ? (o(), n("path", {
755
+ e.value.type === "polar" ? (u(!0), n(p, { key: 4 }, A(S.value.filter((t) => !t.ghost), (t, a) => (u(), n("g", null, [
756
+ I(t) && h.value.dataLabels.show ? (u(), n("path", {
749
757
  key: 0,
750
758
  d: `M ${r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x},${r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y} ${c.value[a].middlePoint.x},${c.value[a].middlePoint.y}`,
751
759
  stroke: t.color,
@@ -753,64 +761,64 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
753
761
  "stroke-linecap": "round",
754
762
  "stroke-linejoin": "round",
755
763
  fill: "none",
756
- filter: K(a),
764
+ filter: Q(a),
757
765
  style: b({
758
766
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
759
767
  })
760
- }, null, 12, Fl)) : i("", !0)
768
+ }, null, 12, Ol)) : i("", !0)
761
769
  ]))), 256)) : i("", !0),
762
- e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (o(), n("circle", {
770
+ e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (u(), n("circle", {
763
771
  key: 5,
764
772
  cx: s.value.width / 2,
765
773
  cy: s.value.height / 2,
766
774
  r: k.value <= 0 ? 10 : k.value,
767
775
  fill: e.value.style.chart.backgroundColor,
768
776
  filter: `url(#shadow_${g.value})`
769
- }, null, 8, Ll)) : i("", !0),
770
- l.$slots.pattern ? (o(), n("g", Ol, [
771
- (o(!0), n(p, null, A($e.dataset, (t, a) => (o(), n("defs", {
777
+ }, null, 8, zl)) : i("", !0),
778
+ l.$slots.pattern ? (u(), n("g", Nl, [
779
+ (u(!0), n(p, null, A($e.dataset, (t, a) => (u(), n("defs", {
772
780
  key: `pattern-${t.patternIndex}`
773
781
  }, [
774
- m(l.$slots, "pattern", ot({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${g.value}_${a}` }), void 0, !0)
782
+ m(l.$slots, "pattern", ut({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${g.value}_${a}` }), void 0, !0)
775
783
  ]))), 128))
776
784
  ])) : i("", !0),
777
- F.value && e.value.type === "classic" ? (o(), n(p, { key: 7 }, [
778
- (o(!0), n(p, null, A(Y.value, (t, a) => (o(), n("path", {
785
+ F.value && e.value.type === "classic" ? (u(), n(p, { key: 7 }, [
786
+ (u(!0), n(p, null, A(Y.value, (t, a) => (u(), n("path", {
779
787
  stroke: e.value.style.chart.backgroundColor,
780
788
  d: t.arcSlice,
781
789
  fill: "#FFFFFF"
782
- }, null, 8, zl))), 256)),
783
- (o(!0), n(p, null, A(Y.value, (t, a) => (o(), n("path", {
790
+ }, null, 8, Ml))), 256)),
791
+ (u(!0), n(p, null, A(Y.value, (t, a) => (u(), n("path", {
784
792
  class: "vue-ui-donut-arc-path",
785
793
  d: t.arcSlice,
786
794
  fill: t.color,
787
795
  stroke: e.value.style.chart.backgroundColor,
788
796
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
789
- filter: K(a)
790
- }, null, 8, Nl))), 256)),
791
- l.$slots.pattern ? (o(), n("g", Ml, [
792
- (o(!0), n(p, null, A(Y.value, (t, a) => (o(), n("path", {
797
+ filter: Q(a)
798
+ }, null, 8, Yl))), 256)),
799
+ l.$slots.pattern ? (u(), n("g", Il, [
800
+ (u(!0), n(p, null, A(Y.value, (t, a) => (u(), n("path", {
793
801
  class: "vue-ui-donut-arc-path",
794
802
  d: t.arcSlice,
795
803
  fill: `url(#${t.pattern})`,
796
804
  stroke: e.value.style.chart.backgroundColor,
797
805
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
798
- filter: K(a)
799
- }, null, 8, Yl))), 256))
806
+ filter: Q(a)
807
+ }, null, 8, Xl))), 256))
800
808
  ])) : i("", !0)
801
809
  ], 64)) : i("", !0),
802
- F.value && e.value.type === "polar" ? (o(), n(p, { key: 8 }, [
803
- S.value.length > 1 ? (o(), n("g", Xl, [
804
- (o(!0), n(p, null, A(Y.value, (t, a) => (o(), n("path", {
810
+ F.value && e.value.type === "polar" ? (u(), n(p, { key: 8 }, [
811
+ S.value.length > 1 ? (u(), n("g", Dl, [
812
+ (u(!0), n(p, null, A(Y.value, (t, a) => (u(), n("path", {
805
813
  stroke: e.value.style.chart.backgroundColor,
806
814
  d: c.value[a].path,
807
815
  fill: "#FFFFFF",
808
816
  style: b({
809
817
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
810
818
  })
811
- }, null, 12, Il))), 256)),
812
- e.value.style.chart.layout.donut.useShadow ? (o(), n("g", Dl, [
813
- (o(!0), n(p, null, A(Y.value, (t, a) => (o(), n("path", {
819
+ }, null, 12, Vl))), 256)),
820
+ e.value.style.chart.layout.donut.useShadow ? (u(), n("g", Bl, [
821
+ (u(!0), n(p, null, A(Y.value, (t, a) => (u(), n("path", {
814
822
  class: "vue-ui-donut-arc-path",
815
823
  d: c.value[a].path,
816
824
  fill: "transparent",
@@ -820,34 +828,34 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
820
828
  style: b({
821
829
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
822
830
  })
823
- }, null, 12, Vl))), 256))
831
+ }, null, 12, Gl))), 256))
824
832
  ])) : i("", !0),
825
- l.$slots.pattern ? (o(), n("g", Bl, [
826
- (o(!0), n(p, null, A(Y.value, (t, a) => (o(), n("path", {
833
+ l.$slots.pattern ? (u(), n("g", Wl, [
834
+ (u(!0), n(p, null, A(Y.value, (t, a) => (u(), n("path", {
827
835
  class: "vue-ui-donut-arc-path",
828
836
  d: c.value[a].path,
829
837
  fill: `url(#${t.pattern})`,
830
838
  stroke: e.value.style.chart.backgroundColor,
831
839
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
832
- filter: K(a),
840
+ filter: Q(a),
833
841
  style: b({
834
842
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
835
843
  })
836
- }, null, 12, Gl))), 256))
844
+ }, null, 12, Rl))), 256))
837
845
  ])) : i("", !0),
838
- (o(!0), n(p, null, A(Y.value, (t, a) => (o(), n("path", {
846
+ (u(!0), n(p, null, A(Y.value, (t, a) => (u(), n("path", {
839
847
  class: "vue-ui-donut-arc-path",
840
848
  d: c.value[a].path,
841
849
  fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${g.value})` : t.color,
842
850
  stroke: e.value.style.chart.backgroundColor,
843
851
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
844
- filter: K(a),
852
+ filter: Q(a),
845
853
  style: b({
846
854
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
847
855
  })
848
- }, null, 12, Wl))), 256))
849
- ])) : (o(), n("g", Rl, [
850
- l.$slots.pattern ? (o(), n("circle", {
856
+ }, null, 12, El))), 256))
857
+ ])) : (u(), n("g", Ul, [
858
+ l.$slots.pattern ? (u(), n("circle", {
851
859
  key: 0,
852
860
  cx: s.value.width / 2,
853
861
  cy: s.value.height / 2,
@@ -855,7 +863,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
855
863
  fill: `url(#pattern_${g.value}_${S.value[0].patternIndex})`,
856
864
  stroke: e.value.style.chart.backgroundColor,
857
865
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
858
- }, null, 8, El)) : i("", !0),
866
+ }, null, 8, jl)) : i("", !0),
859
867
  f("circle", {
860
868
  cx: s.value.width / 2,
861
869
  cy: s.value.height / 2,
@@ -863,17 +871,17 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
863
871
  fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${g.value})` : S.value[0].color,
864
872
  stroke: e.value.style.chart.backgroundColor,
865
873
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
866
- }, null, 8, Ul)
874
+ }, null, 8, Hl)
867
875
  ]))
868
- ], 64)) : (o(), n(p, { key: 9 }, [
869
- e.value.type === "classic" && !Ft.value ? (o(), n("g", jl, [
870
- (o(!0), n(p, null, A(Lt.value, (t, a) => (o(), n("path", {
876
+ ], 64)) : (u(), n(p, { key: 9 }, [
877
+ e.value.type === "classic" && !Lt.value ? (u(), n("g", ql, [
878
+ (u(!0), n(p, null, A(Ot.value, (t, a) => (u(), n("path", {
871
879
  class: "vue-ui-donut-arc-path",
872
880
  d: t.arcSlice,
873
881
  fill: t.color,
874
882
  stroke: e.value.style.chart.backgroundColor,
875
883
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
876
- }, null, 8, Hl))), 256))
884
+ }, null, 8, Jl))), 256))
877
885
  ])) : i("", !0),
878
886
  f("circle", {
879
887
  cx: s.value.width / 2,
@@ -881,9 +889,9 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
881
889
  r: k.value <= 0 ? 10 : k.value,
882
890
  fill: "transparent",
883
891
  stroke: e.value.style.chart.backgroundColor
884
- }, null, 8, ql)
892
+ }, null, 8, Kl)
885
893
  ], 64)),
886
- e.value.style.chart.useGradient && e.value.type === "classic" ? (o(), n("circle", {
894
+ e.value.style.chart.useGradient && e.value.type === "classic" ? (u(), n("circle", {
887
895
  key: 10,
888
896
  cx: s.value.width / 2,
889
897
  cy: s.value.height / 2,
@@ -892,10 +900,10 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
892
900
  k.value <= 0 ? 10 : k.value
893
901
  ),
894
902
  fill: `url(#gradient_${g.value})`
895
- }, null, 8, Jl)) : i("", !0),
896
- F.value ? (o(), n(p, { key: 11 }, [
897
- S.value.length > 1 || e.value.type === "classic" ? (o(), n("g", Kl, [
898
- (o(!0), n(p, null, A(S.value.filter((t) => !t.ghost), (t, a) => (o(), n("path", {
903
+ }, null, 8, Ql)) : i("", !0),
904
+ F.value ? (u(), n(p, { key: 11 }, [
905
+ S.value.length > 1 || e.value.type === "classic" ? (u(), n("g", Zl, [
906
+ (u(!0), n(p, null, A(S.value.filter((t) => !t.ghost), (t, a) => (u(), n("path", {
899
907
  d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
900
908
  fill: z.value === a ? "rgba(0,0,0,0.1)" : "transparent",
901
909
  onMouseenter: (v) => qe({
@@ -904,32 +912,32 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
904
912
  seriesIndex: t.seriesIndex,
905
913
  show: !0
906
914
  }),
907
- onMouseleave: u[0] || (u[0] = (v) => {
915
+ onMouseleave: o[0] || (o[0] = (v) => {
908
916
  ce.value = !1, z.value = null;
909
917
  }),
910
918
  onClick: (v) => H(t, a)
911
- }, null, 40, Ql))), 256))
912
- ])) : (o(), n("g", Zl, [
919
+ }, null, 40, ea))), 256))
920
+ ])) : (u(), n("g", ta, [
913
921
  f("circle", {
914
922
  cx: s.value.width / 2,
915
923
  cy: s.value.height / 2,
916
924
  r: k.value,
917
925
  fill: "transparent",
918
- onMouseenter: u[1] || (u[1] = (t) => qe({
926
+ onMouseenter: o[1] || (o[1] = (t) => qe({
919
927
  datapoint: S.value[0],
920
928
  relativeIndex: 0,
921
929
  seriesIndex: S.value[0].seriesIndex,
922
930
  show: !0
923
931
  })),
924
- onMouseleave: u[2] || (u[2] = (t) => {
932
+ onMouseleave: o[2] || (o[2] = (t) => {
925
933
  ce.value = !1, z.value = null;
926
934
  }),
927
- onClick: u[3] || (u[3] = (t) => H(S.value[0], l.i))
928
- }, null, 40, ea)
935
+ onClick: o[3] || (o[3] = (t) => H(S.value[0], l.i))
936
+ }, null, 40, la)
929
937
  ]))
930
938
  ], 64)) : i("", !0),
931
- e.value.type === "classic" ? (o(), n(p, { key: 12 }, [
932
- e.value.style.chart.layout.labels.hollow.total.show ? (o(), n("text", {
939
+ e.value.type === "classic" ? (u(), n(p, { key: 12 }, [
940
+ e.value.style.chart.layout.labels.hollow.total.show ? (u(), n("text", {
933
941
  key: 0,
934
942
  "text-anchor": "middle",
935
943
  x: s.value.width / 2,
@@ -937,8 +945,8 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
937
945
  fill: e.value.style.chart.layout.labels.hollow.total.color,
938
946
  "font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
939
947
  style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
940
- }, P(e.value.style.chart.layout.labels.hollow.total.text), 13, ta)) : i("", !0),
941
- e.value.style.chart.layout.labels.hollow.total.show ? (o(), n("text", {
948
+ }, P(e.value.style.chart.layout.labels.hollow.total.text), 13, aa)) : i("", !0),
949
+ e.value.style.chart.layout.labels.hollow.total.show ? (u(), n("text", {
942
950
  key: 1,
943
951
  "text-anchor": "middle",
944
952
  x: s.value.width / 2,
@@ -954,8 +962,8 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
954
962
  v: F.value,
955
963
  s: e.value.style.chart.layout.labels.hollow.total.value.suffix
956
964
  })
957
- )), 13, la)) : i("", !0),
958
- e.value.style.chart.layout.labels.hollow.average.show ? (o(), n("text", {
965
+ )), 13, oa)) : i("", !0),
966
+ e.value.style.chart.layout.labels.hollow.average.show ? (u(), n("text", {
959
967
  key: 2,
960
968
  "text-anchor": "middle",
961
969
  x: s.value.width / 2,
@@ -963,8 +971,8 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
963
971
  fill: e.value.style.chart.layout.labels.hollow.average.color,
964
972
  "font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
965
973
  style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
966
- }, P(e.value.style.chart.layout.labels.hollow.average.text), 13, aa)) : i("", !0),
967
- e.value.style.chart.layout.labels.hollow.average.show ? (o(), n("text", {
974
+ }, P(e.value.style.chart.layout.labels.hollow.average.text), 13, ua)) : i("", !0),
975
+ e.value.style.chart.layout.labels.hollow.average.show ? (u(), n("text", {
968
976
  key: 3,
969
977
  "text-anchor": "middle",
970
978
  x: s.value.width / 2,
@@ -972,7 +980,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
972
980
  fill: e.value.style.chart.layout.labels.hollow.average.value.color,
973
981
  "font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
974
982
  style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
975
- }, P(J.value || T.value ? "--" : r(D)(
983
+ }, P(K.value || T.value ? "--" : r(D)(
976
984
  e.value.style.chart.layout.labels.hollow.average.value.formatter,
977
985
  je.value,
978
986
  r(M)({
@@ -981,35 +989,35 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
981
989
  s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
982
990
  r: e.value.style.chart.layout.labels.hollow.average.value.rounding
983
991
  })
984
- )), 13, oa)) : i("", !0)
992
+ )), 13, sa)) : i("", !0)
985
993
  ], 64)) : i("", !0),
986
- (o(!0), n(p, null, A(Y.value.filter((t) => !t.ghost), (t, a) => (o(), n("g", {
987
- filter: K(a),
994
+ (u(!0), n(p, null, A(Y.value.filter((t) => !t.ghost), (t, a) => (u(), n("g", {
995
+ filter: Q(a),
988
996
  class: _e({ animated: e.value.useCssAnimation })
989
997
  }, [
990
- e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(), n("g", sa, [
991
- (o(), n("foreignObject", {
998
+ e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (u(), n("g", ra, [
999
+ (u(), n("foreignObject", {
992
1000
  x: r(w)(t, !0).anchor === "end" ? r(w)(t).x - 120 : r(w)(t, !0).anchor === "middle" ? r(w)(t).x - 60 : r(w)(t).x,
993
- y: r(ve)(t) - (Ke.value ? 20 : 0),
1001
+ y: r(ve)(t) - (Qe.value ? 20 : 0),
994
1002
  width: "120",
995
1003
  height: "60",
996
1004
  style: { overflow: "visible" }
997
1005
  }, [
998
1006
  f("div", null, [
999
- m(l.$slots, "dataLabel", ot({ ref_for: !0 }, {
1007
+ m(l.$slots, "dataLabel", ut({ ref_for: !0 }, {
1000
1008
  datapoint: t,
1001
1009
  isBlur: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === a,
1002
- isSafari: Ke.value,
1003
- isVisible: X(t) && h.value.dataLabels.show,
1010
+ isSafari: Qe.value,
1011
+ isVisible: I(t) && h.value.dataLabels.show,
1004
1012
  textAlign: r(w)(t, !0, 16, !0).anchor,
1005
1013
  flexAlign: r(w)(t, !0, 16).anchor,
1006
1014
  percentage: be(t, Y.value)
1007
1015
  }), void 0, !0)
1008
1016
  ])
1009
- ], 8, na))
1010
- ])) : (o(), n("g", ra, [
1011
- e.value.type === "classic" ? (o(), n(p, { key: 0 }, [
1012
- X(t) && h.value.dataLabels.show ? (o(), n("circle", {
1017
+ ], 8, ia))
1018
+ ])) : (u(), n("g", va, [
1019
+ e.value.type === "classic" ? (u(), n(p, { key: 0 }, [
1020
+ I(t) && h.value.dataLabels.show ? (u(), n("circle", {
1013
1021
  key: 0,
1014
1022
  cx: r(w)(t).x,
1015
1023
  cy: r(ve)(t) - 3.5,
@@ -1019,10 +1027,10 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1019
1027
  r: 3,
1020
1028
  filter: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === a ? "" : `url(#blur_${g.value})`,
1021
1029
  onClick: (v) => H(t, a)
1022
- }, null, 8, ia)) : i("", !0)
1030
+ }, null, 8, ca)) : i("", !0)
1023
1031
  ], 64)) : i("", !0),
1024
- e.value.type === "polar" ? (o(), n(p, { key: 1 }, [
1025
- X(t) && h.value.dataLabels.show ? (o(), n("circle", {
1032
+ e.value.type === "polar" ? (u(), n(p, { key: 1 }, [
1033
+ I(t) && h.value.dataLabels.show ? (u(), n("circle", {
1026
1034
  key: 0,
1027
1035
  cx: r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
1028
1036
  cy: r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
@@ -1035,10 +1043,10 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1035
1043
  style: b({
1036
1044
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1037
1045
  })
1038
- }, null, 12, va)) : i("", !0)
1046
+ }, null, 12, da)) : i("", !0)
1039
1047
  ], 64)) : i("", !0),
1040
- e.value.type === "classic" ? (o(), n(p, { key: 2 }, [
1041
- X(t) && h.value.dataLabels.show ? (o(), n("text", {
1048
+ e.value.type === "classic" ? (u(), n(p, { key: 2 }, [
1049
+ I(t) && h.value.dataLabels.show ? (u(), n("text", {
1042
1050
  key: 0,
1043
1051
  "text-anchor": r(w)(t, !0, 12).anchor,
1044
1052
  x: r(w)(t, !0, 12).x,
@@ -1057,8 +1065,8 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1057
1065
  r: e.value.style.chart.layout.labels.value.rounding
1058
1066
  }),
1059
1067
  { datapoint: t }
1060
- )})` : ""), 13, ca)) : i("", !0),
1061
- X(t) && h.value.dataLabels.show ? (o(), n("text", {
1068
+ )})` : ""), 13, ha)) : i("", !0),
1069
+ I(t) && h.value.dataLabels.show ? (u(), n("text", {
1062
1070
  key: 1,
1063
1071
  "text-anchor": r(w)(t).anchor,
1064
1072
  x: r(w)(t, !0, 12).x,
@@ -1067,12 +1075,12 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1067
1075
  "font-size": e.value.style.chart.layout.labels.name.fontSize,
1068
1076
  style: b(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
1069
1077
  onClick: (v) => H(t, a)
1070
- }, P(t.name), 13, da)) : i("", !0)
1078
+ }, P(t.name), 13, ya)) : i("", !0)
1071
1079
  ], 64)) : i("", !0),
1072
- e.value.type === "polar" ? (o(), n(p, { key: 3 }, [
1073
- X(t) && h.value.dataLabels.show ? (o(), n("text", {
1080
+ e.value.type === "polar" ? (u(), n(p, { key: 3 }, [
1081
+ I(t) && h.value.dataLabels.show ? (u(), n("text", {
1074
1082
  key: 0,
1075
- "text-anchor": le(c.value[a].middlePoint),
1083
+ "text-anchor": ae(c.value[a].middlePoint),
1076
1084
  x: r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
1077
1085
  y: r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
1078
1086
  fill: e.value.style.chart.layout.labels.percentage.color,
@@ -1092,10 +1100,10 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1092
1100
  r: e.value.style.chart.layout.labels.value.rounding
1093
1101
  }),
1094
1102
  { datapoint: t }
1095
- )})` : ""), 13, ha)) : i("", !0),
1096
- X(t) && h.value.dataLabels.show ? (o(), n("text", {
1103
+ )})` : ""), 13, fa)) : i("", !0),
1104
+ I(t) && h.value.dataLabels.show ? (u(), n("text", {
1097
1105
  key: 1,
1098
- "text-anchor": le(c.value[a].middlePoint),
1106
+ "text-anchor": ae(c.value[a].middlePoint),
1099
1107
  x: r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
1100
1108
  y: r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y + e.value.style.chart.layout.labels.percentage.fontSize,
1101
1109
  fill: e.value.style.chart.layout.labels.name.color,
@@ -1105,11 +1113,11 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1105
1113
  fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
1106
1114
  }),
1107
1115
  onClick: (v) => H(t, a)
1108
- }, P(t.name), 13, ya)) : i("", !0)
1116
+ }, P(t.name), 13, pa)) : i("", !0)
1109
1117
  ], 64)) : i("", !0)
1110
1118
  ])),
1111
- h.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(), n("g", fa, [
1112
- X(t) && e.value.type === "classic" ? (o(), n("foreignObject", {
1119
+ h.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (u(), n("g", ga, [
1120
+ I(t) && e.value.type === "classic" ? (u(), n("foreignObject", {
1113
1121
  key: 0,
1114
1122
  x: e.value.style.chart.comments.offsetX + (r(w)(t, !0).anchor === "end" ? r(w)(t).x - e.value.style.chart.comments.width : r(w)(t, !0).anchor === "middle" ? r(w)(t).x - e.value.style.chart.comments.width / 2 : r(w)(t).x),
1115
1123
  y: r(ve)(t) + 24 + e.value.style.chart.comments.offsetY,
@@ -1122,11 +1130,11 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1122
1130
  plot: { ...t, textAlign: r(w)(t, !0, 16, !0).anchor, flexAlign: r(w)(t, !0, 16).anchor, isFirstLoad: T.value }
1123
1131
  }, void 0, !0)
1124
1132
  ])
1125
- ], 8, pa)) : i("", !0),
1126
- X(t) && e.value.type === "polar" ? (o(), n("foreignObject", {
1133
+ ], 8, ma)) : i("", !0),
1134
+ I(t) && e.value.type === "polar" ? (u(), n("foreignObject", {
1127
1135
  key: 1,
1128
- x: e.value.style.chart.comments.offsetX + (le(c.value[a].middlePoint) === "end" ? r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width : le(c.value[a].middlePoint) === "middle" ? r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x),
1129
- y: Ot(c.value[a]) + e.value.style.chart.comments.offsetY,
1136
+ x: e.value.style.chart.comments.offsetX + (ae(c.value[a].middlePoint) === "end" ? r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width : ae(c.value[a].middlePoint) === "middle" ? r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x),
1137
+ y: zt(c.value[a]) + e.value.style.chart.comments.offsetY,
1130
1138
  width: e.value.style.chart.comments.width,
1131
1139
  height: "200",
1132
1140
  style: b({
@@ -1137,18 +1145,18 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1137
1145
  }, [
1138
1146
  f("div", null, [
1139
1147
  m(l.$slots, "plot-comment", {
1140
- plot: { ...t, textAlign: le(c.value[a].middlePoint), flexAlign: le(c.value[a].middlePoint), isFirstLoad: T.value }
1148
+ plot: { ...t, textAlign: ae(c.value[a].middlePoint), flexAlign: ae(c.value[a].middlePoint), isFirstLoad: T.value }
1141
1149
  }, void 0, !0)
1142
1150
  ])
1143
- ], 12, ga)) : i("", !0)
1151
+ ], 12, ba)) : i("", !0)
1144
1152
  ])) : i("", !0)
1145
- ], 10, ua))), 256)),
1153
+ ], 10, na))), 256)),
1146
1154
  m(l.$slots, "svg", { svg: s.value }, void 0, !0)
1147
- ], 14, cl)) : i("", !0),
1148
- l.$slots.watermark ? (o(), n("div", ma, [
1149
- m(l.$slots, "watermark", oe(ue({ isPrinting: r(Ie) || r(De) })), void 0, !0)
1155
+ ], 14, hl)) : i("", !0),
1156
+ l.$slots.watermark ? (u(), n("div", wa, [
1157
+ m(l.$slots, "watermark", ue(se({ isPrinting: r(Xe) || r(De) })), void 0, !0)
1150
1158
  ])) : i("", !0),
1151
- se.value ? i("", !0) : (o(), Z(r(gt), {
1159
+ ne.value ? i("", !0) : (u(), ee(r(mt), {
1152
1160
  key: 6,
1153
1161
  config: {
1154
1162
  type: "donut",
@@ -1156,7 +1164,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1156
1164
  backgroundColor: e.value.style.chart.backgroundColor,
1157
1165
  donut: {
1158
1166
  color: "#CCCCCC",
1159
- strokeWidth: q.value * 0.8
1167
+ strokeWidth: J.value * 0.8
1160
1168
  }
1161
1169
  }
1162
1170
  }
@@ -1165,18 +1173,18 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1165
1173
  ref_key: "chartLegend",
1166
1174
  ref: Te
1167
1175
  }, [
1168
- e.value.style.chart.legend.show ? (o(), Z(sl, {
1176
+ e.value.style.chart.legend.show ? (u(), ee(nl, {
1169
1177
  key: `legend_${Le.value}`,
1170
1178
  legendSet: Ue.value,
1171
- config: St.value,
1172
- onClickMarker: u[4] || (u[4] = ({ i: t }) => Ee(t))
1173
- }, at({
1179
+ config: Ft.value,
1180
+ onClickMarker: o[4] || (o[4] = ({ i: t }) => Ee(t))
1181
+ }, ot({
1174
1182
  item: C(({ legend: t, index: a }) => [
1175
1183
  f("div", {
1176
1184
  style: b(`opacity:${V.value.includes(a) ? 0.5 : 1}`),
1177
1185
  onClick: (v) => t.segregate()
1178
1186
  }, [
1179
- ut(P(t.name) + ": " + P(r(D)(
1187
+ st(P(t.name) + ": " + P(r(D)(
1180
1188
  e.value.style.chart.layout.labels.value.formatter,
1181
1189
  t.value,
1182
1190
  r(M)({
@@ -1190,7 +1198,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1190
1198
  index: a
1191
1199
  }
1192
1200
  )) + " ", 1),
1193
- V.value.includes(a) ? (o(), n("span", ka, " ( " + P(Mt(t.proportion * 100)) + " % ) ", 1)) : (o(), n("span", wa, " (" + P(isNaN(t.value / F.value) ? "-" : r(D)(
1201
+ V.value.includes(a) ? (u(), n("span", xa, " ( " + P(Mt(t.proportion * 100)) + " % ) ", 1)) : (u(), n("span", _a, " (" + P(isNaN(t.value / F.value) ? "-" : r(D)(
1194
1202
  e.value.style.chart.layout.labels.percentage.formatter,
1195
1203
  He.value(t),
1196
1204
  r(M)({
@@ -1199,14 +1207,14 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1199
1207
  r: e.value.style.chart.legend.roundingPercentage
1200
1208
  })
1201
1209
  )) + ") ", 1))
1202
- ], 12, ba)
1210
+ ], 12, ka)
1203
1211
  ]),
1204
1212
  _: 2
1205
1213
  }, [
1206
1214
  l.$slots.pattern ? {
1207
1215
  name: "legend-pattern",
1208
1216
  fn: C(({ legend: t, index: a }) => [
1209
- xe(rl, {
1217
+ xe(il, {
1210
1218
  shape: t.shape,
1211
1219
  radius: 30,
1212
1220
  stroke: "none",
@@ -1219,7 +1227,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1219
1227
  ]), 1032, ["legendSet", "config"])) : i("", !0),
1220
1228
  m(l.$slots, "legend", { legend: Ue.value }, void 0, !0)
1221
1229
  ], 512),
1222
- l.$slots.source ? (o(), n("div", {
1230
+ l.$slots.source ? (u(), n("div", {
1223
1231
  key: 7,
1224
1232
  ref_key: "source",
1225
1233
  ref: Pe,
@@ -1227,7 +1235,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1227
1235
  }, [
1228
1236
  m(l.$slots, "source", {}, void 0, !0)
1229
1237
  ], 512)) : i("", !0),
1230
- xe(r(mt), {
1238
+ xe(r(bt), {
1231
1239
  show: h.value.showTooltip && ce.value,
1232
1240
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1233
1241
  color: e.value.style.chart.tooltip.color,
@@ -1238,20 +1246,20 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1238
1246
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1239
1247
  position: e.value.style.chart.tooltip.position,
1240
1248
  offsetY: e.value.style.chart.tooltip.offsetY,
1241
- parent: ne.value,
1249
+ parent: q.value,
1242
1250
  content: pe.value,
1243
1251
  isCustom: re.value,
1244
- isFullscreen: ae.value
1252
+ isFullscreen: oe.value
1245
1253
  }, {
1246
1254
  "tooltip-before": C(() => [
1247
- m(l.$slots, "tooltip-before", oe(ue({ ...we.value })), void 0, !0)
1255
+ m(l.$slots, "tooltip-before", ue(se({ ...we.value })), void 0, !0)
1248
1256
  ]),
1249
1257
  "tooltip-after": C(() => [
1250
- m(l.$slots, "tooltip-after", oe(ue({ ...we.value })), void 0, !0)
1258
+ m(l.$slots, "tooltip-after", ue(se({ ...we.value })), void 0, !0)
1251
1259
  ]),
1252
1260
  _: 3
1253
1261
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
1254
- se.value ? (o(), Z(r(ht), {
1262
+ ne.value ? (u(), ee(r(yt), {
1255
1263
  key: 8,
1256
1264
  hideDetails: "",
1257
1265
  config: {
@@ -1268,23 +1276,23 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1268
1276
  }
1269
1277
  }, {
1270
1278
  content: C(() => [
1271
- (o(), Z(r(yt), {
1279
+ (u(), ee(r(ft), {
1272
1280
  key: `table_${Fe.value}`,
1273
1281
  colNames: de.value.colNames,
1274
1282
  head: de.value.head,
1275
1283
  body: de.value.body,
1276
1284
  config: de.value.config,
1277
1285
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1278
- onClose: u[5] || (u[5] = (t) => h.value.showTable = !1)
1286
+ onClose: o[5] || (o[5] = (t) => h.value.showTable = !1)
1279
1287
  }, {
1280
1288
  th: C(({ th: t }) => [
1281
1289
  f("div", {
1282
1290
  innerHTML: t,
1283
1291
  style: { display: "flex", "align-items": "center" }
1284
- }, null, 8, _a)
1292
+ }, null, 8, $a)
1285
1293
  ]),
1286
1294
  td: C(({ td: t }) => [
1287
- ut(P(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : r(D)(
1295
+ st(P(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : r(D)(
1288
1296
  e.value.style.chart.layout.labels.percentage.formatter,
1289
1297
  t,
1290
1298
  r(M)({
@@ -1308,9 +1316,9 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1308
1316
  ]),
1309
1317
  _: 1
1310
1318
  }, 8, ["config"])) : i("", !0)
1311
- ], 46, vl));
1319
+ ], 46, dl));
1312
1320
  }
1313
- }, Ma = /* @__PURE__ */ il(xa, [["__scopeId", "data-v-8f18408e"]]);
1321
+ }, Xa = /* @__PURE__ */ cl(Ca, [["__scopeId", "data-v-e9aecf1b"]]);
1314
1322
  export {
1315
- Ma as default
1323
+ Xa as default
1316
1324
  };