vue-data-ui 2.16.5 → 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 +85 -55
  2. package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
  17. package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/img-Y_hYz-ZC.js +27 -0
  19. package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1098 -162
  23. package/dist/types/vue-data-ui.d.ts +1098 -162
  24. package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-ButWuZVm.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-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
  29. package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
  31. package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
  33. package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
  34. package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
  35. package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
  36. package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
  37. package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
  38. package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
  42. package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
  43. package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
  44. package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
  45. package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
  46. package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
  47. package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
  48. package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
  50. package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
  51. package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
  54. package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
  55. package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
  56. package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
  57. package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
  58. package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
  59. package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
  60. package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
  61. package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
  63. package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
  64. package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
  65. package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
  66. package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
  75. package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
  76. package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
  79. package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
  80. package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
  82. package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
  83. package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
  84. package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
  85. package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
  86. package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
  87. package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
  88. package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
  89. package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
  90. package/package.json +1 -1
  91. package/dist/img-CTC5DLKL.js +0 -20
  92. package/dist/vue-data-ui-BB8Upnjm.js +0 -301
@@ -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-CZNLCg7T.js";
3
- import { t as tl, u as ll } from "./useResponsive-DfdjqQps.js";
4
- import { u as vt } from "./useNestedProp-BcPDA6Xr.js";
5
- import { u as al } from "./usePrinter-ButWuZVm.js";
6
- import { u as ol } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as ul } from "./useChartAccessibility-9icAAmYg.js";
8
- import sl from "./Legend-DoxQwq_u.js";
9
- import nl from "./Title-BQLtfM0P.js";
10
- import { _ as rl } from "./Shape-CrstrfQ9.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"], Fl = ["d", "stroke", "filter"], Sl = ["d", "stroke", "filter"], Ll = ["cx", "cy", "r", "fill", "filter"], zl = { key: 6 }, Ol = ["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-CO4hmfuX.js")), yt = Q(() => import("./DataTable-B6MXw9cG.js")), ft = Q(() => import("./PackageVersion-DCreTQN4.js")), pt = Q(() => import("./PenAndPaper-BS60tkQN.js")), gt = Q(() => import("./vue-ui-skeleton-D9B8DY_k.js")), mt = Q(() => import("./Tooltip-5JmGL7sR.js")), bt = Q(() => import("./UserOptions-DMGkAAIO.js")), { vue_ui_donut: wt } = Vt(), kt = Xt(), z = $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
- return !!z.dataset && z.dataset.length;
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), Fe = x(0), Se = x(0), Le = x(0);
44
- tt(() => {
45
- ze();
46
- }), It(() => {
47
- U.value && (te.value && U.value.unobserve(te.value), U.value.disconnect());
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(() => {
46
+ Oe();
47
+ }), Dt(() => {
48
+ U.value && (le.value && U.value.unobserve(le.value), U.value.disconnect());
48
49
  });
49
- function ze() {
50
- if (Bt(z.dataset) ? st({
50
+ function Oe() {
51
+ if (Gt(O.dataset) ? nt({
51
52
  componentName: "VueUiDonut",
52
53
  type: "dataset"
53
- }) : z.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(""), O = x(null), Oe = 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
- userConfig: z.config,
86
- defaultConfig: wt
85
+ const l = ct({
86
+ userConfig: O.config,
87
+ defaultConfig: kt
87
88
  });
88
89
  return l.theme ? {
89
- ...vt({
90
- userConfig: Kt.vue_ui_donut[l.theme] || z.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 = z.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(() => z.config, (l) => {
133
- e.value = Ne(), ge.value = !e.value.userOptions.showOnChartHover, ze(), Fe.value += 1, Se.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;
133
+ at(() => O.config, (l) => {
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(() => z.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,43 +240,43 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
239
240
  value: v.value
240
241
  })));
241
242
  }
242
- const At = y(() => z.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(() => z.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
- proportion: l.value / z.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)
276
+ proportion: l.value / O.dataset.map((t) => (t.values || []).reduce((a, v) => a + v, 0)).reduce((t, a) => t + a, 0),
277
+ opacity: V.value.includes(o) ? 0.5 : 1,
278
+ segregate: () => !K.value && Ee(o),
279
+ isSegregated: V.value.includes(o)
279
280
  }))), Ft = y(() => ({
280
281
  cy: "donut-div-legend",
281
282
  backgroundColor: e.value.style.chart.legend.backgroundColor,
@@ -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
- }), F = 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)), St = 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(() => F.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
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 / Ot(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 Ot(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 S = y(() => W.value.map((l) => l.value).reduce((l, u) => l + u, 0)), je = y(() => S.value / W.value.length), He = y(() => (l) => J.value ? l.proportion * 100 : l.value / S.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, O.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,36 +388,36 @@ 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
- return e.value.useBlurOnHover && ![null, void 0].includes(O.value) && O.value !== l ? `url(#blur_${g.value})` : "";
391
+ function Q(l) {
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] / S.value) ? "-" : j.value.body[d] / S.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(() => {
409
410
  const l = [
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
- M({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: S.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
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
417
418
  },
418
419
  j.value.body[d],
419
- isNaN(j.value.body[d] / S.value) ? "-" : (j.value.body[d] / S.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
420
+ isNaN(j.value.body[d] / F.value) ? "-" : (j.value.body[d] / F.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
420
421
  ]), t = {
421
422
  th: {
422
423
  backgroundColor: e.value.table.th.backgroundColor,
@@ -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, Oe.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,21 +499,21 @@ 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, {
508
- key: `title_${Fe.value}`,
515
+ (u(), ee(rl, {
516
+ key: `title_${Se.value}`,
509
517
  config: {
510
518
  title: {
511
519
  cy: "donut-div-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,
524
- key: `user_option_${Oe.value}`,
531
+ ref: xt,
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,30 +542,31 @@ 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,
542
550
  titles: { ...e.value.userOptions.buttonTitles },
543
551
  hasAnnotator: e.value.userOptions.buttons.annotator,
544
552
  isAnnotation: he.value,
545
- onToggleFullscreen: Nt,
553
+ printScale: e.value.userOptions.print.scale,
554
+ onToggleFullscreen: Ke,
546
555
  onGeneratePdf: r(Ve),
547
556
  onGenerateCsv: Je,
548
557
  onGenerateImage: r(Be),
549
- onToggleTable: Qe,
550
- onToggleLabels: Ze,
551
- onToggleTooltip: et,
558
+ onToggleTable: Ze,
559
+ onToggleLabels: et,
560
+ onToggleTooltip: tt,
552
561
  onToggleAnnotator: ke,
553
562
  style: b({
554
563
  visibility: r(Ye) ? r(ge) ? "visible" : "hidden" : "visible"
555
564
  })
556
- }, at({ _: 2 }, [
565
+ }, ot({ _: 2 }, [
557
566
  l.$slots.menuIcon ? {
558
567
  name: "menuIcon",
559
568
  fn: C(({ isOpen: t, color: a }) => [
560
- 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)
561
570
  ]),
562
571
  key: "0"
563
572
  } : void 0,
@@ -606,29 +615,29 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
606
615
  l.$slots.optionFullscreen ? {
607
616
  name: "optionFullscreen",
608
617
  fn: C(({ toggleFullscreen: t, isFullscreen: a }) => [
609
- 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)
610
619
  ]),
611
620
  key: "7"
612
621
  } : void 0,
613
622
  l.$slots.optionAnnotator ? {
614
623
  name: "optionAnnotator",
615
624
  fn: C(({ toggleAnnotator: t, isAnnotator: a }) => [
616
- 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)
617
626
  ]),
618
627
  key: "8"
619
628
  } : void 0
620
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
621
- se.value ? (o(), n("svg", {
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),
630
+ ne.value ? (u(), n("svg", {
622
631
  key: 4,
623
632
  ref_key: "svgRef",
624
633
  ref: me,
625
- xmlns: r(jt),
626
- 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 }),
627
636
  viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
628
- 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}`)
629
638
  }, [
630
- xe(r(ft)),
631
- l.$slots["chart-background"] ? (o(), n("foreignObject", {
639
+ xe(r(pt)),
640
+ l.$slots["chart-background"] ? (u(), n("foreignObject", {
632
641
  key: 0,
633
642
  x: 0,
634
643
  y: 0,
@@ -639,9 +648,9 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
639
648
  }
640
649
  }, [
641
650
  m(l.$slots, "chart-background", {}, void 0, !0)
642
- ], 8, dl)) : i("", !0),
643
- e.value.type === "classic" && !isNaN(q.value / k.value) ? (o(), n("defs", hl, [
644
- 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", {
645
654
  key: 0,
646
655
  id: `gradient_${g.value}`
647
656
  }, [
@@ -649,25 +658,25 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
649
658
  offset: "0%",
650
659
  "stop-color": r(fe)(e.value.style.chart.backgroundColor, 0),
651
660
  "stop-opacity": "0"
652
- }, null, 8, fl),
661
+ }, null, 8, gl),
653
662
  f("stop", {
654
- offset: `${(1 - q.value / k.value) * 100}%`,
663
+ offset: `${(1 - J.value / k.value) * 100}%`,
655
664
  "stop-color": r(fe)("#FFFFFF", 0),
656
665
  "stop-opacity": "0"
657
- }, null, 8, pl),
666
+ }, null, 8, ml),
658
667
  f("stop", {
659
- offset: `${(1 - q.value / k.value / 2) * 100}%`,
668
+ offset: `${(1 - J.value / k.value / 2) * 100}%`,
660
669
  "stop-color": r(fe)("#FFFFFF", e.value.style.chart.gradientIntensity)
661
- }, null, 8, gl),
670
+ }, null, 8, bl),
662
671
  f("stop", {
663
672
  offset: "100%",
664
673
  "stop-color": r(fe)(e.value.style.chart.backgroundColor, 0),
665
674
  "stop-opacity": "0"
666
- }, null, 8, ml)
667
- ], 8, yl)) : i("", !0)
675
+ }, null, 8, wl)
676
+ ], 8, pl)) : i("", !0)
668
677
  ])) : i("", !0),
669
- e.value.type === "polar" ? (o(), n("defs", bl, [
670
- (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", {
671
680
  id: `polar_gradient_${a}_${g.value}`,
672
681
  cx: (isNaN(t.middlePoint.x / s.value.width * 100) ? 0 : t.middlePoint.x / s.value.width * 100) + "%",
673
682
  cy: (isNaN(t.middlePoint.y / s.value.height * 100) ? 0 : t.middlePoint.y / s.value.height * 100) + "%",
@@ -675,14 +684,14 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
675
684
  }, [
676
685
  f("stop", {
677
686
  offset: "0%",
678
- "stop-color": r(Ht)(F.value[a].color, 0.05),
687
+ "stop-color": r(qt)(S.value[a].color, 0.05),
679
688
  "stop-opacity": e.value.style.chart.gradientIntensity / 100
680
- }, null, 8, kl),
689
+ }, null, 8, xl),
681
690
  f("stop", {
682
691
  offset: "100%",
683
- "stop-color": F.value[a].color
684
- }, null, 8, _l)
685
- ], 8, wl))), 256))
692
+ "stop-color": S.value[a].color
693
+ }, null, 8, $l)
694
+ ], 8, _l))), 256))
686
695
  ])) : i("", !0),
687
696
  f("defs", null, [
688
697
  f("filter", {
@@ -696,12 +705,12 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
696
705
  in: "SourceGraphic",
697
706
  stdDeviation: 2,
698
707
  id: `blur_std_${g.value}`
699
- }, null, 8, $l),
700
- u[6] || (u[6] = f("feColorMatrix", {
708
+ }, null, 8, Tl),
709
+ o[6] || (o[6] = f("feColorMatrix", {
701
710
  type: "saturate",
702
711
  values: "0"
703
712
  }, null, -1))
704
- ], 8, xl),
713
+ ], 8, Cl),
705
714
  f("filter", {
706
715
  id: `shadow_${g.value}`,
707
716
  "color-interpolation-filters": "sRGB"
@@ -712,8 +721,8 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
712
721
  stdDeviation: "10",
713
722
  "flood-opacity": "0.5",
714
723
  "flood-color": e.value.style.chart.layout.donut.shadowColor
715
- }, null, 8, Tl)
716
- ], 8, Cl),
724
+ }, null, 8, Al)
725
+ ], 8, Pl),
717
726
  f("filter", {
718
727
  id: `drop_shadow_${g.value}`,
719
728
  "color-interpolation-filters": "sRGB",
@@ -728,23 +737,23 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
728
737
  stdDeviation: "3",
729
738
  "flood-opacity": "1",
730
739
  "flood-color": e.value.style.chart.layout.donut.shadowColor
731
- }, null, 8, Al)
732
- ], 8, Pl)
740
+ }, null, 8, Fl)
741
+ ], 8, Sl)
733
742
  ]),
734
- e.value.type === "classic" ? (o(!0), n(p, { key: 3 }, A(F.value.filter((t) => !t.ghost), (t, a) => (o(), n("g", null, [
735
- 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", {
736
745
  key: 0,
737
- 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),
738
747
  stroke: t.color,
739
748
  "stroke-width": "1",
740
749
  "stroke-linecap": "round",
741
750
  "stroke-linejoin": "round",
742
751
  fill: "none",
743
- filter: K(a)
744
- }, null, 8, Fl)) : i("", !0)
752
+ filter: Q(a)
753
+ }, null, 8, Ll)) : i("", !0)
745
754
  ]))), 256)) : i("", !0),
746
- e.value.type === "polar" ? (o(!0), n(p, { key: 4 }, A(F.value.filter((t) => !t.ghost), (t, a) => (o(), n("g", null, [
747
- 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", {
748
757
  key: 0,
749
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}`,
750
759
  stroke: t.color,
@@ -752,64 +761,64 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
752
761
  "stroke-linecap": "round",
753
762
  "stroke-linejoin": "round",
754
763
  fill: "none",
755
- filter: K(a),
764
+ filter: Q(a),
756
765
  style: b({
757
766
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
758
767
  })
759
- }, null, 12, Sl)) : i("", !0)
768
+ }, null, 12, Ol)) : i("", !0)
760
769
  ]))), 256)) : i("", !0),
761
- 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", {
762
771
  key: 5,
763
772
  cx: s.value.width / 2,
764
773
  cy: s.value.height / 2,
765
774
  r: k.value <= 0 ? 10 : k.value,
766
775
  fill: e.value.style.chart.backgroundColor,
767
776
  filter: `url(#shadow_${g.value})`
768
- }, null, 8, Ll)) : i("", !0),
769
- l.$slots.pattern ? (o(), n("g", zl, [
770
- (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", {
771
780
  key: `pattern-${t.patternIndex}`
772
781
  }, [
773
- 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)
774
783
  ]))), 128))
775
784
  ])) : i("", !0),
776
- S.value && e.value.type === "classic" ? (o(), n(p, { key: 7 }, [
777
- (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", {
778
787
  stroke: e.value.style.chart.backgroundColor,
779
788
  d: t.arcSlice,
780
789
  fill: "#FFFFFF"
781
- }, null, 8, Ol))), 256)),
782
- (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", {
783
792
  class: "vue-ui-donut-arc-path",
784
793
  d: t.arcSlice,
785
794
  fill: t.color,
786
795
  stroke: e.value.style.chart.backgroundColor,
787
796
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
788
- filter: K(a)
789
- }, null, 8, Nl))), 256)),
790
- l.$slots.pattern ? (o(), n("g", Ml, [
791
- (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", {
792
801
  class: "vue-ui-donut-arc-path",
793
802
  d: t.arcSlice,
794
803
  fill: `url(#${t.pattern})`,
795
804
  stroke: e.value.style.chart.backgroundColor,
796
805
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
797
- filter: K(a)
798
- }, null, 8, Yl))), 256))
806
+ filter: Q(a)
807
+ }, null, 8, Xl))), 256))
799
808
  ])) : i("", !0)
800
809
  ], 64)) : i("", !0),
801
- S.value && e.value.type === "polar" ? (o(), n(p, { key: 8 }, [
802
- F.value.length > 1 ? (o(), n("g", Xl, [
803
- (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", {
804
813
  stroke: e.value.style.chart.backgroundColor,
805
814
  d: c.value[a].path,
806
815
  fill: "#FFFFFF",
807
816
  style: b({
808
817
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
809
818
  })
810
- }, null, 12, Il))), 256)),
811
- e.value.style.chart.layout.donut.useShadow ? (o(), n("g", Dl, [
812
- (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", {
813
822
  class: "vue-ui-donut-arc-path",
814
823
  d: c.value[a].path,
815
824
  fill: "transparent",
@@ -819,60 +828,60 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
819
828
  style: b({
820
829
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
821
830
  })
822
- }, null, 12, Vl))), 256))
831
+ }, null, 12, Gl))), 256))
823
832
  ])) : i("", !0),
824
- l.$slots.pattern ? (o(), n("g", Bl, [
825
- (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", {
826
835
  class: "vue-ui-donut-arc-path",
827
836
  d: c.value[a].path,
828
837
  fill: `url(#${t.pattern})`,
829
838
  stroke: e.value.style.chart.backgroundColor,
830
839
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
831
- filter: K(a),
840
+ filter: Q(a),
832
841
  style: b({
833
842
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
834
843
  })
835
- }, null, 12, Gl))), 256))
844
+ }, null, 12, Rl))), 256))
836
845
  ])) : i("", !0),
837
- (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", {
838
847
  class: "vue-ui-donut-arc-path",
839
848
  d: c.value[a].path,
840
849
  fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${g.value})` : t.color,
841
850
  stroke: e.value.style.chart.backgroundColor,
842
851
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
843
- filter: K(a),
852
+ filter: Q(a),
844
853
  style: b({
845
854
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
846
855
  })
847
- }, null, 12, Wl))), 256))
848
- ])) : (o(), n("g", Rl, [
849
- l.$slots.pattern ? (o(), n("circle", {
856
+ }, null, 12, El))), 256))
857
+ ])) : (u(), n("g", Ul, [
858
+ l.$slots.pattern ? (u(), n("circle", {
850
859
  key: 0,
851
860
  cx: s.value.width / 2,
852
861
  cy: s.value.height / 2,
853
862
  r: k.value,
854
- fill: `url(#pattern_${g.value}_${F.value[0].patternIndex})`,
863
+ fill: `url(#pattern_${g.value}_${S.value[0].patternIndex})`,
855
864
  stroke: e.value.style.chart.backgroundColor,
856
865
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
857
- }, null, 8, El)) : i("", !0),
866
+ }, null, 8, jl)) : i("", !0),
858
867
  f("circle", {
859
868
  cx: s.value.width / 2,
860
869
  cy: s.value.height / 2,
861
870
  r: k.value,
862
- fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${g.value})` : F.value[0].color,
871
+ fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${g.value})` : S.value[0].color,
863
872
  stroke: e.value.style.chart.backgroundColor,
864
873
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
865
- }, null, 8, Ul)
874
+ }, null, 8, Hl)
866
875
  ]))
867
- ], 64)) : (o(), n(p, { key: 9 }, [
868
- e.value.type === "classic" && !St.value ? (o(), n("g", jl, [
869
- (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", {
870
879
  class: "vue-ui-donut-arc-path",
871
880
  d: t.arcSlice,
872
881
  fill: t.color,
873
882
  stroke: e.value.style.chart.backgroundColor,
874
883
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
875
- }, null, 8, Hl))), 256))
884
+ }, null, 8, Jl))), 256))
876
885
  ])) : i("", !0),
877
886
  f("circle", {
878
887
  cx: s.value.width / 2,
@@ -880,9 +889,9 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
880
889
  r: k.value <= 0 ? 10 : k.value,
881
890
  fill: "transparent",
882
891
  stroke: e.value.style.chart.backgroundColor
883
- }, null, 8, ql)
892
+ }, null, 8, Kl)
884
893
  ], 64)),
885
- 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", {
886
895
  key: 10,
887
896
  cx: s.value.width / 2,
888
897
  cy: s.value.height / 2,
@@ -891,44 +900,44 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
891
900
  k.value <= 0 ? 10 : k.value
892
901
  ),
893
902
  fill: `url(#gradient_${g.value})`
894
- }, null, 8, Jl)) : i("", !0),
895
- S.value ? (o(), n(p, { key: 11 }, [
896
- F.value.length > 1 || e.value.type === "classic" ? (o(), n("g", Kl, [
897
- (o(!0), n(p, null, A(F.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", {
898
907
  d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
899
- fill: O.value === a ? "rgba(0,0,0,0.1)" : "transparent",
908
+ fill: z.value === a ? "rgba(0,0,0,0.1)" : "transparent",
900
909
  onMouseenter: (v) => qe({
901
910
  datapoint: t,
902
911
  relativeIndex: a,
903
912
  seriesIndex: t.seriesIndex,
904
913
  show: !0
905
914
  }),
906
- onMouseleave: u[0] || (u[0] = (v) => {
907
- ce.value = !1, O.value = null;
915
+ onMouseleave: o[0] || (o[0] = (v) => {
916
+ ce.value = !1, z.value = null;
908
917
  }),
909
918
  onClick: (v) => H(t, a)
910
- }, null, 40, Ql))), 256))
911
- ])) : (o(), n("g", Zl, [
919
+ }, null, 40, ea))), 256))
920
+ ])) : (u(), n("g", ta, [
912
921
  f("circle", {
913
922
  cx: s.value.width / 2,
914
923
  cy: s.value.height / 2,
915
924
  r: k.value,
916
925
  fill: "transparent",
917
- onMouseenter: u[1] || (u[1] = (t) => qe({
918
- datapoint: F.value[0],
926
+ onMouseenter: o[1] || (o[1] = (t) => qe({
927
+ datapoint: S.value[0],
919
928
  relativeIndex: 0,
920
- seriesIndex: F.value[0].seriesIndex,
929
+ seriesIndex: S.value[0].seriesIndex,
921
930
  show: !0
922
931
  })),
923
- onMouseleave: u[2] || (u[2] = (t) => {
924
- ce.value = !1, O.value = null;
932
+ onMouseleave: o[2] || (o[2] = (t) => {
933
+ ce.value = !1, z.value = null;
925
934
  }),
926
- onClick: u[3] || (u[3] = (t) => H(F.value[0], l.i))
927
- }, null, 40, ea)
935
+ onClick: o[3] || (o[3] = (t) => H(S.value[0], l.i))
936
+ }, null, 40, la)
928
937
  ]))
929
938
  ], 64)) : i("", !0),
930
- e.value.type === "classic" ? (o(), n(p, { key: 12 }, [
931
- 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", {
932
941
  key: 0,
933
942
  "text-anchor": "middle",
934
943
  x: s.value.width / 2,
@@ -936,8 +945,8 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
936
945
  fill: e.value.style.chart.layout.labels.hollow.total.color,
937
946
  "font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
938
947
  style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
939
- }, P(e.value.style.chart.layout.labels.hollow.total.text), 13, ta)) : i("", !0),
940
- 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", {
941
950
  key: 1,
942
951
  "text-anchor": "middle",
943
952
  x: s.value.width / 2,
@@ -947,14 +956,14 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
947
956
  style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
948
957
  }, P(r(D)(
949
958
  e.value.style.chart.layout.labels.hollow.total.value.formatter,
950
- S.value,
959
+ F.value,
951
960
  r(M)({
952
961
  p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
953
- v: S.value,
962
+ v: F.value,
954
963
  s: e.value.style.chart.layout.labels.hollow.total.value.suffix
955
964
  })
956
- )), 13, la)) : i("", !0),
957
- 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", {
958
967
  key: 2,
959
968
  "text-anchor": "middle",
960
969
  x: s.value.width / 2,
@@ -962,8 +971,8 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
962
971
  fill: e.value.style.chart.layout.labels.hollow.average.color,
963
972
  "font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
964
973
  style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
965
- }, P(e.value.style.chart.layout.labels.hollow.average.text), 13, aa)) : i("", !0),
966
- 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", {
967
976
  key: 3,
968
977
  "text-anchor": "middle",
969
978
  x: s.value.width / 2,
@@ -971,7 +980,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
971
980
  fill: e.value.style.chart.layout.labels.hollow.average.value.color,
972
981
  "font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
973
982
  style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
974
- }, P(J.value || T.value ? "--" : r(D)(
983
+ }, P(K.value || T.value ? "--" : r(D)(
975
984
  e.value.style.chart.layout.labels.hollow.average.value.formatter,
976
985
  je.value,
977
986
  r(M)({
@@ -980,35 +989,35 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
980
989
  s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
981
990
  r: e.value.style.chart.layout.labels.hollow.average.value.rounding
982
991
  })
983
- )), 13, oa)) : i("", !0)
992
+ )), 13, sa)) : i("", !0)
984
993
  ], 64)) : i("", !0),
985
- (o(!0), n(p, null, A(Y.value.filter((t) => !t.ghost), (t, a) => (o(), n("g", {
986
- 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),
987
996
  class: _e({ animated: e.value.useCssAnimation })
988
997
  }, [
989
- e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(), n("g", sa, [
990
- (o(), n("foreignObject", {
998
+ e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (u(), n("g", ra, [
999
+ (u(), n("foreignObject", {
991
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,
992
- y: r(ve)(t) - (Ke.value ? 20 : 0),
1001
+ y: r(ve)(t) - (Qe.value ? 20 : 0),
993
1002
  width: "120",
994
1003
  height: "60",
995
1004
  style: { overflow: "visible" }
996
1005
  }, [
997
1006
  f("div", null, [
998
- m(l.$slots, "dataLabel", ot({ ref_for: !0 }, {
1007
+ m(l.$slots, "dataLabel", ut({ ref_for: !0 }, {
999
1008
  datapoint: t,
1000
- isBlur: !e.value.useBlurOnHover || [null, void 0].includes(O.value) || O.value === a,
1001
- isSafari: Ke.value,
1002
- isVisible: X(t) && h.value.dataLabels.show,
1009
+ isBlur: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === a,
1010
+ isSafari: Qe.value,
1011
+ isVisible: I(t) && h.value.dataLabels.show,
1003
1012
  textAlign: r(w)(t, !0, 16, !0).anchor,
1004
1013
  flexAlign: r(w)(t, !0, 16).anchor,
1005
1014
  percentage: be(t, Y.value)
1006
1015
  }), void 0, !0)
1007
1016
  ])
1008
- ], 8, na))
1009
- ])) : (o(), n("g", ra, [
1010
- e.value.type === "classic" ? (o(), n(p, { key: 0 }, [
1011
- 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", {
1012
1021
  key: 0,
1013
1022
  cx: r(w)(t).x,
1014
1023
  cy: r(ve)(t) - 3.5,
@@ -1016,12 +1025,12 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1016
1025
  stroke: e.value.style.chart.backgroundColor,
1017
1026
  "stroke-width": 1,
1018
1027
  r: 3,
1019
- filter: !e.value.useBlurOnHover || [null, void 0].includes(O.value) || O.value === a ? "" : `url(#blur_${g.value})`,
1028
+ filter: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === a ? "" : `url(#blur_${g.value})`,
1020
1029
  onClick: (v) => H(t, a)
1021
- }, null, 8, ia)) : i("", !0)
1030
+ }, null, 8, ca)) : i("", !0)
1022
1031
  ], 64)) : i("", !0),
1023
- e.value.type === "polar" ? (o(), n(p, { key: 1 }, [
1024
- 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", {
1025
1034
  key: 0,
1026
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,
1027
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,
@@ -1029,15 +1038,15 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1029
1038
  stroke: e.value.style.chart.backgroundColor,
1030
1039
  "stroke-width": 1,
1031
1040
  r: 3,
1032
- filter: !e.value.useBlurOnHover || [null, void 0].includes(O.value) || O.value === a ? "" : `url(#blur_${g.value})`,
1041
+ filter: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === a ? "" : `url(#blur_${g.value})`,
1033
1042
  onClick: (v) => H(t, a),
1034
1043
  style: b({
1035
1044
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1036
1045
  })
1037
- }, null, 12, va)) : i("", !0)
1046
+ }, null, 12, da)) : i("", !0)
1038
1047
  ], 64)) : i("", !0),
1039
- e.value.type === "classic" ? (o(), n(p, { key: 2 }, [
1040
- 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", {
1041
1050
  key: 0,
1042
1051
  "text-anchor": r(w)(t, !0, 12).anchor,
1043
1052
  x: r(w)(t, !0, 12).x,
@@ -1056,8 +1065,8 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1056
1065
  r: e.value.style.chart.layout.labels.value.rounding
1057
1066
  }),
1058
1067
  { datapoint: t }
1059
- )})` : ""), 13, ca)) : i("", !0),
1060
- X(t) && h.value.dataLabels.show ? (o(), n("text", {
1068
+ )})` : ""), 13, ha)) : i("", !0),
1069
+ I(t) && h.value.dataLabels.show ? (u(), n("text", {
1061
1070
  key: 1,
1062
1071
  "text-anchor": r(w)(t).anchor,
1063
1072
  x: r(w)(t, !0, 12).x,
@@ -1066,12 +1075,12 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1066
1075
  "font-size": e.value.style.chart.layout.labels.name.fontSize,
1067
1076
  style: b(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
1068
1077
  onClick: (v) => H(t, a)
1069
- }, P(t.name), 13, da)) : i("", !0)
1078
+ }, P(t.name), 13, ya)) : i("", !0)
1070
1079
  ], 64)) : i("", !0),
1071
- e.value.type === "polar" ? (o(), n(p, { key: 3 }, [
1072
- 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", {
1073
1082
  key: 0,
1074
- "text-anchor": le(c.value[a].middlePoint),
1083
+ "text-anchor": ae(c.value[a].middlePoint),
1075
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,
1076
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,
1077
1086
  fill: e.value.style.chart.layout.labels.percentage.color,
@@ -1091,10 +1100,10 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1091
1100
  r: e.value.style.chart.layout.labels.value.rounding
1092
1101
  }),
1093
1102
  { datapoint: t }
1094
- )})` : ""), 13, ha)) : i("", !0),
1095
- X(t) && h.value.dataLabels.show ? (o(), n("text", {
1103
+ )})` : ""), 13, fa)) : i("", !0),
1104
+ I(t) && h.value.dataLabels.show ? (u(), n("text", {
1096
1105
  key: 1,
1097
- "text-anchor": le(c.value[a].middlePoint),
1106
+ "text-anchor": ae(c.value[a].middlePoint),
1098
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,
1099
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,
1100
1109
  fill: e.value.style.chart.layout.labels.name.color,
@@ -1104,11 +1113,11 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1104
1113
  fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
1105
1114
  }),
1106
1115
  onClick: (v) => H(t, a)
1107
- }, P(t.name), 13, ya)) : i("", !0)
1116
+ }, P(t.name), 13, pa)) : i("", !0)
1108
1117
  ], 64)) : i("", !0)
1109
1118
  ])),
1110
- h.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(), n("g", fa, [
1111
- 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", {
1112
1121
  key: 0,
1113
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),
1114
1123
  y: r(ve)(t) + 24 + e.value.style.chart.comments.offsetY,
@@ -1121,10 +1130,10 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1121
1130
  plot: { ...t, textAlign: r(w)(t, !0, 16, !0).anchor, flexAlign: r(w)(t, !0, 16).anchor, isFirstLoad: T.value }
1122
1131
  }, void 0, !0)
1123
1132
  ])
1124
- ], 8, pa)) : i("", !0),
1125
- X(t) && e.value.type === "polar" ? (o(), n("foreignObject", {
1133
+ ], 8, ma)) : i("", !0),
1134
+ I(t) && e.value.type === "polar" ? (u(), n("foreignObject", {
1126
1135
  key: 1,
1127
- 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),
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),
1128
1137
  y: zt(c.value[a]) + e.value.style.chart.comments.offsetY,
1129
1138
  width: e.value.style.chart.comments.width,
1130
1139
  height: "200",
@@ -1136,18 +1145,18 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1136
1145
  }, [
1137
1146
  f("div", null, [
1138
1147
  m(l.$slots, "plot-comment", {
1139
- 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 }
1140
1149
  }, void 0, !0)
1141
1150
  ])
1142
- ], 12, ga)) : i("", !0)
1151
+ ], 12, ba)) : i("", !0)
1143
1152
  ])) : i("", !0)
1144
- ], 10, ua))), 256)),
1153
+ ], 10, na))), 256)),
1145
1154
  m(l.$slots, "svg", { svg: s.value }, void 0, !0)
1146
- ], 14, cl)) : i("", !0),
1147
- l.$slots.watermark ? (o(), n("div", ma, [
1148
- 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)
1149
1158
  ])) : i("", !0),
1150
- se.value ? i("", !0) : (o(), Z(r(gt), {
1159
+ ne.value ? i("", !0) : (u(), ee(r(mt), {
1151
1160
  key: 6,
1152
1161
  config: {
1153
1162
  type: "donut",
@@ -1155,7 +1164,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1155
1164
  backgroundColor: e.value.style.chart.backgroundColor,
1156
1165
  donut: {
1157
1166
  color: "#CCCCCC",
1158
- strokeWidth: q.value * 0.8
1167
+ strokeWidth: J.value * 0.8
1159
1168
  }
1160
1169
  }
1161
1170
  }
@@ -1164,18 +1173,18 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1164
1173
  ref_key: "chartLegend",
1165
1174
  ref: Te
1166
1175
  }, [
1167
- e.value.style.chart.legend.show ? (o(), Z(sl, {
1176
+ e.value.style.chart.legend.show ? (u(), ee(nl, {
1168
1177
  key: `legend_${Le.value}`,
1169
1178
  legendSet: Ue.value,
1170
1179
  config: Ft.value,
1171
- onClickMarker: u[4] || (u[4] = ({ i: t }) => Ee(t))
1172
- }, at({
1180
+ onClickMarker: o[4] || (o[4] = ({ i: t }) => Ee(t))
1181
+ }, ot({
1173
1182
  item: C(({ legend: t, index: a }) => [
1174
1183
  f("div", {
1175
1184
  style: b(`opacity:${V.value.includes(a) ? 0.5 : 1}`),
1176
1185
  onClick: (v) => t.segregate()
1177
1186
  }, [
1178
- ut(P(t.name) + ": " + P(r(D)(
1187
+ st(P(t.name) + ": " + P(r(D)(
1179
1188
  e.value.style.chart.layout.labels.value.formatter,
1180
1189
  t.value,
1181
1190
  r(M)({
@@ -1189,7 +1198,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1189
1198
  index: a
1190
1199
  }
1191
1200
  )) + " ", 1),
1192
- V.value.includes(a) ? (o(), n("span", ka, " ( " + P(Mt(t.proportion * 100)) + " % ) ", 1)) : (o(), n("span", wa, " (" + P(isNaN(t.value / S.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)(
1193
1202
  e.value.style.chart.layout.labels.percentage.formatter,
1194
1203
  He.value(t),
1195
1204
  r(M)({
@@ -1198,14 +1207,14 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1198
1207
  r: e.value.style.chart.legend.roundingPercentage
1199
1208
  })
1200
1209
  )) + ") ", 1))
1201
- ], 12, ba)
1210
+ ], 12, ka)
1202
1211
  ]),
1203
1212
  _: 2
1204
1213
  }, [
1205
1214
  l.$slots.pattern ? {
1206
1215
  name: "legend-pattern",
1207
1216
  fn: C(({ legend: t, index: a }) => [
1208
- xe(rl, {
1217
+ xe(il, {
1209
1218
  shape: t.shape,
1210
1219
  radius: 30,
1211
1220
  stroke: "none",
@@ -1218,7 +1227,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1218
1227
  ]), 1032, ["legendSet", "config"])) : i("", !0),
1219
1228
  m(l.$slots, "legend", { legend: Ue.value }, void 0, !0)
1220
1229
  ], 512),
1221
- l.$slots.source ? (o(), n("div", {
1230
+ l.$slots.source ? (u(), n("div", {
1222
1231
  key: 7,
1223
1232
  ref_key: "source",
1224
1233
  ref: Pe,
@@ -1226,7 +1235,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1226
1235
  }, [
1227
1236
  m(l.$slots, "source", {}, void 0, !0)
1228
1237
  ], 512)) : i("", !0),
1229
- xe(r(mt), {
1238
+ xe(r(bt), {
1230
1239
  show: h.value.showTooltip && ce.value,
1231
1240
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1232
1241
  color: e.value.style.chart.tooltip.color,
@@ -1237,20 +1246,20 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1237
1246
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1238
1247
  position: e.value.style.chart.tooltip.position,
1239
1248
  offsetY: e.value.style.chart.tooltip.offsetY,
1240
- parent: ne.value,
1249
+ parent: q.value,
1241
1250
  content: pe.value,
1242
1251
  isCustom: re.value,
1243
- isFullscreen: ae.value
1252
+ isFullscreen: oe.value
1244
1253
  }, {
1245
1254
  "tooltip-before": C(() => [
1246
- 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)
1247
1256
  ]),
1248
1257
  "tooltip-after": C(() => [
1249
- 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)
1250
1259
  ]),
1251
1260
  _: 3
1252
1261
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
1253
- se.value ? (o(), Z(r(ht), {
1262
+ ne.value ? (u(), ee(r(yt), {
1254
1263
  key: 8,
1255
1264
  hideDetails: "",
1256
1265
  config: {
@@ -1267,23 +1276,23 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1267
1276
  }
1268
1277
  }, {
1269
1278
  content: C(() => [
1270
- (o(), Z(r(yt), {
1271
- key: `table_${Se.value}`,
1279
+ (u(), ee(r(ft), {
1280
+ key: `table_${Fe.value}`,
1272
1281
  colNames: de.value.colNames,
1273
1282
  head: de.value.head,
1274
1283
  body: de.value.body,
1275
1284
  config: de.value.config,
1276
1285
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1277
- onClose: u[5] || (u[5] = (t) => h.value.showTable = !1)
1286
+ onClose: o[5] || (o[5] = (t) => h.value.showTable = !1)
1278
1287
  }, {
1279
1288
  th: C(({ th: t }) => [
1280
1289
  f("div", {
1281
1290
  innerHTML: t,
1282
1291
  style: { display: "flex", "align-items": "center" }
1283
- }, null, 8, _a)
1292
+ }, null, 8, $a)
1284
1293
  ]),
1285
1294
  td: C(({ td: t }) => [
1286
- 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)(
1287
1296
  e.value.style.chart.layout.labels.percentage.formatter,
1288
1297
  t,
1289
1298
  r(M)({
@@ -1307,9 +1316,9 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
1307
1316
  ]),
1308
1317
  _: 1
1309
1318
  }, 8, ["config"])) : i("", !0)
1310
- ], 46, vl));
1319
+ ], 46, dl));
1311
1320
  }
1312
- }, Ma = /* @__PURE__ */ il(xa, [["__scopeId", "data-v-f2338bb9"]]);
1321
+ }, Xa = /* @__PURE__ */ cl(Ca, [["__scopeId", "data-v-e9aecf1b"]]);
1313
1322
  export {
1314
- Ma as default
1323
+ Xa as default
1315
1324
  };