vue-data-ui 3.19.6 → 3.19.7

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 (158) hide show
  1. package/dist/{BaseDraggableDialog-BQcmQAK5.js → BaseDraggableDialog-DUUu2E2Q.js} +1 -1
  2. package/dist/{BaseIcon-CEmt3Ifx.js → BaseIcon-DM1x8hQF.js} +6 -3
  3. package/dist/{BaseLegendToggle-DUIqQmwM.js → BaseLegendToggle-CJTwLGXL.js} +1 -1
  4. package/dist/{BaseZoomControls-Ce1yqas1.js → BaseZoomControls-BkajQ8q9.js} +1 -1
  5. package/dist/{ColorPicker-DS_QkH3W.js → ColorPicker-DTQeqKUV.js} +1 -1
  6. package/dist/{DataTable-BvDJEAma.js → DataTable-DmE8Oo4i.js} +1 -1
  7. package/dist/{NonSvgPenAndPaper-D4Gh7O43.js → NonSvgPenAndPaper-tvWXeCsd.js} +2 -2
  8. package/dist/{PackageVersion-C7CvErYQ.js → PackageVersion-DUU5Aku2.js} +1 -1
  9. package/dist/{PenAndPaper-DwpL8Z0l.js → PenAndPaper-DNgm6y3l.js} +2 -2
  10. package/dist/{Slicer-BlfyiHHD.js → Slicer-CPWGgGSp.js} +1 -1
  11. package/dist/{SlicerPreview-CG1jpZqZ.js → SlicerPreview-BU3ZeHjR.js} +1 -1
  12. package/dist/{UserOptions-B57xo6D2.js → UserOptions-D7zR0tnR.js} +1 -1
  13. package/dist/components/vue-ui-3d-bar.js +1 -1
  14. package/dist/components/vue-ui-accordion.js +1 -1
  15. package/dist/components/vue-ui-age-pyramid.js +1 -1
  16. package/dist/components/vue-ui-annotator.js +1 -1
  17. package/dist/components/vue-ui-bullet.js +1 -1
  18. package/dist/components/vue-ui-bump.js +1 -1
  19. package/dist/components/vue-ui-candlestick.js +1 -1
  20. package/dist/components/vue-ui-carousel-table.js +1 -1
  21. package/dist/components/vue-ui-chestnut.js +1 -1
  22. package/dist/components/vue-ui-chord.js +1 -1
  23. package/dist/components/vue-ui-circle-pack.js +1 -1
  24. package/dist/components/vue-ui-cursor.js +1 -1
  25. package/dist/components/vue-ui-dag.js +1 -1
  26. package/dist/components/vue-ui-dashboard.js +1 -1
  27. package/dist/components/vue-ui-digits.js +1 -1
  28. package/dist/components/vue-ui-donut-evolution.js +1 -1
  29. package/dist/components/vue-ui-donut.js +1 -1
  30. package/dist/components/vue-ui-dumbbell.js +1 -1
  31. package/dist/components/vue-ui-flow.js +1 -1
  32. package/dist/components/vue-ui-funnel.js +1 -1
  33. package/dist/components/vue-ui-galaxy.js +1 -1
  34. package/dist/components/vue-ui-gauge.js +1 -1
  35. package/dist/components/vue-ui-geo.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-history-plot.js +1 -1
  39. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  40. package/dist/components/vue-ui-icon.js +1 -1
  41. package/dist/components/vue-ui-kpi.js +1 -1
  42. package/dist/components/vue-ui-mini-loader.js +1 -1
  43. package/dist/components/vue-ui-molecule.js +1 -1
  44. package/dist/components/vue-ui-mood-radar.js +1 -1
  45. package/dist/components/vue-ui-nested-donuts.js +1 -1
  46. package/dist/components/vue-ui-onion.js +1 -1
  47. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  48. package/dist/components/vue-ui-quadrant.js +1 -1
  49. package/dist/components/vue-ui-quick-chart.js +1 -1
  50. package/dist/components/vue-ui-radar.js +1 -1
  51. package/dist/components/vue-ui-rating.js +1 -1
  52. package/dist/components/vue-ui-relation-circle.js +1 -1
  53. package/dist/components/vue-ui-ridgeline.js +1 -1
  54. package/dist/components/vue-ui-rings.js +1 -1
  55. package/dist/components/vue-ui-scatter.js +1 -1
  56. package/dist/components/vue-ui-skeleton.js +1 -1
  57. package/dist/components/vue-ui-smiley.js +1 -1
  58. package/dist/components/vue-ui-spark-trend.js +1 -1
  59. package/dist/components/vue-ui-sparkbar.js +1 -1
  60. package/dist/components/vue-ui-sparkgauge.js +1 -1
  61. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  62. package/dist/components/vue-ui-sparkline.js +1 -1
  63. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  64. package/dist/components/vue-ui-stackbar.js +1 -1
  65. package/dist/components/vue-ui-stackline.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/style.css +1 -1
  82. package/dist/types/vue-data-ui.d.ts +11 -0
  83. package/dist/{useConfig-lKgU652n.js → useConfig-ByaaSKhz.js} +5 -0
  84. package/dist/{useObjectBindings-C3q0I8Zm.js → useObjectBindings-BR1sGimd.js} +1 -1
  85. package/dist/utils.js +1 -1
  86. package/dist/{vue-data-ui-BBnKbdCT.js → vue-data-ui-DBjj6t8B.js} +68 -68
  87. package/dist/vue-data-ui.js +69 -69
  88. package/dist/{vue-ui-3d-bar-gMuK6OMP.js → vue-ui-3d-bar-CmAc1xBL.js} +2 -2
  89. package/dist/{vue-ui-accordion-CNtzLReQ.js → vue-ui-accordion-BX9WL-QF.js} +2 -2
  90. package/dist/{vue-ui-age-pyramid-B_D1wPY4.js → vue-ui-age-pyramid-CFvux3-S.js} +2 -2
  91. package/dist/{vue-ui-annotator-KPkeXw8q.js → vue-ui-annotator-Be3VpH8Z.js} +4 -4
  92. package/dist/{vue-ui-bullet-Ci3tqx6A.js → vue-ui-bullet-C4xEb3fq.js} +2 -2
  93. package/dist/{vue-ui-bump-31Kryh02.js → vue-ui-bump-BW76g7ep.js} +3 -3
  94. package/dist/vue-ui-candlestick-ShTn9uzH.js +1826 -0
  95. package/dist/{vue-ui-carousel-table-D3j0UTQ1.js → vue-ui-carousel-table-DMan_IZb.js} +2 -2
  96. package/dist/{vue-ui-chestnut-Cgf0vAxo.js → vue-ui-chestnut-BIfaNOqy.js} +2 -2
  97. package/dist/{vue-ui-chord-DGma5NsS.js → vue-ui-chord-GDJiAjfD.js} +2 -2
  98. package/dist/{vue-ui-circle-pack-EvRfcXnZ.js → vue-ui-circle-pack-Bo4ljiP_.js} +2 -2
  99. package/dist/{vue-ui-cursor-BX8kHXVE.js → vue-ui-cursor-BuLoDOFw.js} +2 -2
  100. package/dist/{vue-ui-dag-DuOokTx4.js → vue-ui-dag-BmbwijZi.js} +3 -3
  101. package/dist/{vue-ui-dashboard-BeZCujZv.js → vue-ui-dashboard-CyzIaw6M.js} +67 -67
  102. package/dist/{vue-ui-digits-nIgbeL-K.js → vue-ui-digits-B33dTRHj.js} +2 -2
  103. package/dist/{vue-ui-donut-FzQwgIbN.js → vue-ui-donut-BIgvjStd.js} +3 -3
  104. package/dist/{vue-ui-donut-evolution-CwLYRDws.js → vue-ui-donut-evolution-DT5F88LK.js} +228 -218
  105. package/dist/{vue-ui-dumbbell-BmujSKH2.js → vue-ui-dumbbell-SwLKpHuh.js} +2 -2
  106. package/dist/{vue-ui-flow-D4jeyY5a.js → vue-ui-flow-BqTUyRBS.js} +2 -2
  107. package/dist/{vue-ui-funnel-DQ1fOfXW.js → vue-ui-funnel-GOx4FfhB.js} +2 -2
  108. package/dist/{vue-ui-galaxy-Wldw6HHG.js → vue-ui-galaxy-CTMyOfp7.js} +3 -3
  109. package/dist/{vue-ui-gauge-BzV3y_h3.js → vue-ui-gauge-Clz_TmiX.js} +2 -2
  110. package/dist/{vue-ui-geo-WLEkf2a9.js → vue-ui-geo-2kZK_UVF.js} +3 -3
  111. package/dist/{vue-ui-gizmo-C0vr-wLL.js → vue-ui-gizmo-BpNEwLo7.js} +2 -2
  112. package/dist/{vue-ui-heatmap-RmaAnr9m.js → vue-ui-heatmap-B6FLZij5.js} +3 -3
  113. package/dist/{vue-ui-history-plot-Dyf2Atb2.js → vue-ui-history-plot-DpGwqYyg.js} +3 -3
  114. package/dist/{vue-ui-horizontal-bar-DG4paRTj.js → vue-ui-horizontal-bar-BHFd966c.js} +4 -4
  115. package/dist/{vue-ui-kpi-TBQhSM0a.js → vue-ui-kpi-DyIqCISK.js} +2 -2
  116. package/dist/{vue-ui-mini-loader-BpLz9pDO.js → vue-ui-mini-loader-DDJUya9e.js} +1 -1
  117. package/dist/{vue-ui-molecule-Df4zCHL5.js → vue-ui-molecule-BtQOQ32e.js} +2 -2
  118. package/dist/{vue-ui-mood-radar-RQqmJU_9.js → vue-ui-mood-radar-CZSLnIMi.js} +2 -2
  119. package/dist/{vue-ui-nested-donuts-C7VIp7mz.js → vue-ui-nested-donuts-Lhteboo1.js} +3 -3
  120. package/dist/{vue-ui-onion-DP4NWU3Y.js → vue-ui-onion-uCUgmyF1.js} +3 -3
  121. package/dist/{vue-ui-parallel-coordinate-plot-a7OvbsVh.js → vue-ui-parallel-coordinate-plot-_u_VTAjF.js} +3 -3
  122. package/dist/{vue-ui-quadrant-C4GxyyE3.js → vue-ui-quadrant-CgalDMyS.js} +3 -3
  123. package/dist/{vue-ui-quick-chart-BNCkZiiG.js → vue-ui-quick-chart-BAWcSaDB.js} +4 -4
  124. package/dist/{vue-ui-radar-Dcq3bWA4.js → vue-ui-radar-64HPFASp.js} +3 -3
  125. package/dist/{vue-ui-rating-DBxf9Vwv.js → vue-ui-rating-D_QR_A3V.js} +1 -1
  126. package/dist/{vue-ui-relation-circle-CZ1UtEIM.js → vue-ui-relation-circle-DT4So4-6.js} +2 -2
  127. package/dist/{vue-ui-ridgeline-CsNDB48W.js → vue-ui-ridgeline-5fZANTS9.js} +3 -3
  128. package/dist/{vue-ui-rings-Bwd_i2eo.js → vue-ui-rings-QFY794j3.js} +3 -3
  129. package/dist/{vue-ui-scatter-DAa8MnhH.js → vue-ui-scatter-BPCY-u36.js} +3 -3
  130. package/dist/{vue-ui-skeleton-CPy9DsSC.js → vue-ui-skeleton-Dj_ZVfSX.js} +2 -2
  131. package/dist/{vue-ui-smiley-2xc8AwPP.js → vue-ui-smiley-rFdGxZK6.js} +1 -1
  132. package/dist/{vue-ui-spark-trend-CM06cEvG.js → vue-ui-spark-trend-DB0VHzm0.js} +2 -2
  133. package/dist/{vue-ui-sparkbar-CSDRWMhb.js → vue-ui-sparkbar-DVGRTFO5.js} +2 -2
  134. package/dist/{vue-ui-sparkgauge-CKeKTyBH.js → vue-ui-sparkgauge-3UFZaDF9.js} +2 -2
  135. package/dist/{vue-ui-sparkhistogram-BSnU2_Q0.js → vue-ui-sparkhistogram-DRmBVef7.js} +2 -2
  136. package/dist/{vue-ui-sparkline-DhkrfLYf.js → vue-ui-sparkline-vsqKnakQ.js} +2 -2
  137. package/dist/{vue-ui-sparkstackbar-D3vn49rn.js → vue-ui-sparkstackbar-BNUhunuQ.js} +3 -3
  138. package/dist/vue-ui-stackbar-9jP1s0MN.js +2267 -0
  139. package/dist/vue-ui-stackline-D1o_afno.js +2395 -0
  140. package/dist/{vue-ui-strip-plot-DLH2Jc91.js → vue-ui-strip-plot-CogQ8VSl.js} +2 -2
  141. package/dist/{vue-ui-table-DBWGRgw6.js → vue-ui-table-Bub1v0eM.js} +5 -5
  142. package/dist/{vue-ui-table-heatmap-D0SM6A1L.js → vue-ui-table-heatmap-BFKyJTr1.js} +2 -2
  143. package/dist/{vue-ui-table-sparkline-BShpt1UR.js → vue-ui-table-sparkline-BPts9wTR.js} +2 -2
  144. package/dist/{vue-ui-thermometer-BIH00QYu.js → vue-ui-thermometer-CJJ4cVt0.js} +2 -2
  145. package/dist/{vue-ui-timer-vcaC2CGp.js → vue-ui-timer-BEPXWd20.js} +3 -3
  146. package/dist/{vue-ui-tiremarks-BmhvsqeP.js → vue-ui-tiremarks-BC7bLLQD.js} +2 -2
  147. package/dist/{vue-ui-treemap-C-M5PHTS.js → vue-ui-treemap-Cja-vZoa.js} +4 -4
  148. package/dist/{vue-ui-waffle-DnpUe9aj.js → vue-ui-waffle-BRj-YBlz.js} +3 -3
  149. package/dist/{vue-ui-wheel-D21hTOn0.js → vue-ui-wheel-AOTFpTWN.js} +2 -2
  150. package/dist/{vue-ui-word-cloud-C4SPxSlX.js → vue-ui-word-cloud-dqfAdhW-.js} +3 -3
  151. package/dist/{vue-ui-world-DSq_cPCv.js → vue-ui-world-DqwsIYze.js} +3 -3
  152. package/dist/vue-ui-xy-Dhult6gR.js +4181 -0
  153. package/dist/{vue-ui-xy-canvas-DjTurM4m.js → vue-ui-xy-canvas-B06Rit63.js} +6 -6
  154. package/package.json +1 -1
  155. package/dist/vue-ui-candlestick-DU0MXtKT.js +0 -1814
  156. package/dist/vue-ui-stackbar-BR7tZmWR.js +0 -2253
  157. package/dist/vue-ui-stackline-Dj9N60Js.js +0 -2381
  158. package/dist/vue-ui-xy-Iep0AjyV.js +0 -4151
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
2
  import { B as t, G as n, H as r, J as i, Lt as a, Pt as o, S as s, St as c, Tt as l, X as ee, _ as te, bt as ne, d as re, h as ie, ht as ae, i as oe, jt as se, kt as ce, ot as le, p as ue, q as de, t as fe, u as pe, x as me, y as he, zt as ge } from "./lib-BkiwukKO.js";
3
3
  import { t as _e } from "./useTimeLabels-C0x7zUXP.js";
4
- import { t as ve } from "./useConfig-lKgU652n.js";
4
+ import { t as ve } from "./useConfig-ByaaSKhz.js";
5
5
  import { t as ye } from "./usePrinter-X0yWOynH.js";
6
6
  import { n as be, t as xe } from "./BaseScanner-C7dmAref.js";
7
7
  import { t as Se } from "./useSvgExport-Dtu973wa.js";
@@ -13,13 +13,13 @@ import { n as De } from "./Title-__gWq2g6.js";
13
13
  import { t as Oe } from "./_plugin-vue_export-helper-Dq1MygBL.js";
14
14
  import { c as ke } from "./canvas-lib-DTaADQOK.js";
15
15
  import { t as Ae } from "./useResponsive-CrAInupd.js";
16
- import { t as je } from "./BaseLegendToggle-DUIqQmwM.js";
16
+ import { t as je } from "./BaseLegendToggle-CJTwLGXL.js";
17
17
  import { t as Me } from "./A11yDataTable-q2-8fSlJ.js";
18
18
  import { t as Ne } from "./useUserOptionState-CjPJPTg2.js";
19
19
  import { t as Pe } from "./useChartAccessibility-Do37qcw2.js";
20
20
  import { t as Fe } from "./Legend-Gg5Q4Clb.js";
21
21
  import { t as Ie } from "./vue_ui_donut_evolution-CAJefrHs.js";
22
- import { t as Le } from "./Slicer-BlfyiHHD.js";
22
+ import { t as Le } from "./Slicer-CPWGgGSp.js";
23
23
  import { Fragment as u, Teleport as Re, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as ze, createTextVNode as Be, createVNode as Ve, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as He, nextTick as Ue, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as We, onMounted as Ge, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Ke, shallowRef as qe, toDisplayString as T, toRefs as Je, unref as E, watch as Ye, watchEffect as Xe, withCtx as D } from "vue";
24
24
  //#region src/components/vue-ui-donut-evolution.vue
25
25
  var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et = ["id"], tt = { style: { position: "relative" } }, nt = [
@@ -72,6 +72,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
72
72
  "x",
73
73
  "y",
74
74
  "font-size",
75
+ "text-anchor",
75
76
  "fill",
76
77
  "font-weight"
77
78
  ], bt = { key: 0 }, xt = [
@@ -169,7 +170,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
169
170
  },
170
171
  emits: ["selectLegend", "copyAlt"],
171
172
  setup(e, { expose: Oe, emit: Ze }) {
172
- let Kt = g(() => import("./vue-ui-accordion-CNtzLReQ.js").then((e) => e.n)), qt = g(() => import("./BaseIcon-CEmt3Ifx.js").then((e) => e.n)), Jt = g(() => import("./DataTable-BvDJEAma.js")), Yt = g(() => import("./PackageVersion-C7CvErYQ.js").then((e) => e.t)), Xt = g(() => import("./PenAndPaper-DwpL8Z0l.js").then((e) => e.t)), Zt = g(() => import("./UserOptions-B57xo6D2.js").then((e) => e.n)), Qt = g(() => import("./vue-ui-donut-FzQwgIbN.js").then((e) => e.n)), $t = g(() => import("./BaseDraggableDialog-BQcmQAK5.js").then((e) => e.n)), { vue_ui_donut_evolution: en } = ve(), { isThemeValid: tn, warnInvalidTheme: nn } = we(), O = e, k = S(r()), A = S([]), j = S(null), M = S(null), rn = S(!1), N = S(null), P = S(null), an = S(null), on = S(0), sn = S(0), cn = S(0), ln = S(0), un = S(0), dn = S(null), fn = S(null), pn = S(null), mn = S(null), hn = S(!1), gn = S(null), _n = S(null), vn = S(!1), yn = S(!1), bn = S(null), xn = S(null), Sn = S(null), Cn = S(null), wn = S(null), Tn = S(!1), F = qe(null), En = qe(null), Dn = S(null), I = S(null), On = S(!1), kn = Ze, An = d(() => !!O.dataset && O.dataset.length);
173
+ let Kt = g(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), qt = g(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), Jt = g(() => import("./DataTable-DmE8Oo4i.js")), Yt = g(() => import("./PackageVersion-DUU5Aku2.js").then((e) => e.t)), Xt = g(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), Zt = g(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), Qt = g(() => import("./vue-ui-donut-BIgvjStd.js").then((e) => e.n)), $t = g(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_donut_evolution: en } = ve(), { isThemeValid: tn, warnInvalidTheme: nn } = we(), O = e, k = S(r()), A = S([]), j = S(null), M = S(null), rn = S(!1), N = S(null), P = S(null), an = S(null), on = S(0), sn = S(0), cn = S(0), ln = S(0), un = S(0), dn = S(null), fn = S(null), pn = S(null), mn = S(null), hn = S(!1), F = S(null), gn = S(null), _n = S(!1), vn = S(!1), yn = S(null), bn = S(null), xn = S(null), Sn = S(null), Cn = S(null), wn = S(!1), Tn = qe(null), En = qe(null), Dn = S(null), I = S(null), On = S(!1), kn = Ze, An = d(() => !!O.dataset && O.dataset.length);
173
174
  Ge(() => {
174
175
  hn.value = !0, Mn();
175
176
  });
@@ -193,27 +194,27 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
193
194
  }), In.value = !0;
194
195
  });
195
196
  }), c(O.dataset) || (In.value = L.value.loading), setTimeout(() => {
196
- Tn.value = !0;
197
+ wn.value = !0;
197
198
  }, 10), zn(), L.value.responsive) {
198
199
  let e = ke(() => {
199
- Tn.value = !1;
200
+ wn.value = !1;
200
201
  let { width: e, height: t } = Ae({
201
202
  chart: P.value,
202
- title: L.value.style.chart.title.text ? bn.value : null,
203
- legend: L.value.style.chart.legend.show ? xn.value : null,
204
- slicer: L.value.style.chart.zoom.show && Ln.value > 1 ? wn.value : null,
205
- source: Sn.value
203
+ title: L.value.style.chart.title.text ? yn.value : null,
204
+ legend: L.value.style.chart.legend.show ? bn.value : null,
205
+ slicer: L.value.style.chart.zoom.show && Ln.value > 1 ? Cn.value : null,
206
+ source: xn.value
206
207
  });
207
208
  requestAnimationFrame(() => {
208
209
  z.value.width = e, z.value.height = t - 12, clearTimeout(Dn.value), Dn.value = setTimeout(() => {
209
- Tn.value = !0;
210
+ wn.value = !0;
210
211
  }, 10);
211
212
  });
212
213
  });
213
- F.value && (En.value && F.value.unobserve(En.value), F.value.disconnect()), F.value = new ResizeObserver(e), En.value = P.value.parentNode, F.value.observe(En.value);
214
+ Tn.value && (En.value && Tn.value.unobserve(En.value), Tn.value.disconnect()), Tn.value = new ResizeObserver(e), En.value = P.value.parentNode, Tn.value.observe(En.value);
214
215
  }
215
216
  }
216
- let L = S(Wn()), R = d(() => L.value.userOptions.useCursorPointer), Nn = d(() => ge({
217
+ let L = S(Gn()), R = d(() => L.value.userOptions.useCursorPointer), Nn = d(() => ge({
217
218
  defaultConfig: {
218
219
  useCssAnimation: !1,
219
220
  table: { show: !1 },
@@ -254,7 +255,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
254
255
  })), { loading: Pn, FINAL_DATASET: Fn, manualLoading: In } = be({
255
256
  ...Je(O),
256
257
  FINAL_CONFIG: L,
257
- prepareConfig: Wn,
258
+ prepareConfig: Gn,
258
259
  callback: () => {
259
260
  Promise.resolve().then(async () => {
260
261
  await zn();
@@ -314,7 +315,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
314
315
  }
315
316
  async function zn() {
316
317
  await Ue(), await Ue();
317
- let { startIndex: e, endIndex: t } = L.value.style.chart.zoom, n = Cn.value;
318
+ let { startIndex: e, endIndex: t } = L.value.style.chart.zoom, n = Sn.value;
318
319
  B.value = {
319
320
  start: 0,
320
321
  max: K.value
@@ -327,8 +328,8 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
327
328
  let t = K.value;
328
329
  return e > t ? t : e < 0 || L.value.style.chart.zoom.startIndex !== null && e < L.value.style.chart.zoom.startIndex ? L.value.style.chart.zoom.startIndex === null ? 1 : L.value.style.chart.zoom.startIndex + 1 : e;
329
330
  }
330
- let { userOptionsVisible: Vn, setUserOptionsVisibility: Hn, keepUserOptionState: Un } = Ne({ config: L.value }), { svgRef: V } = Pe({ config: L.value.style.chart.title });
331
- function Wn() {
331
+ let { userOptionsVisible: Vn, setUserOptionsVisibility: Hn, keepUserOptionState: Un } = Ne({ config: L.value }), { svgRef: Wn } = Pe({ config: L.value.style.chart.title });
332
+ function Gn() {
332
333
  let e = Ce({
333
334
  userConfig: O.config,
334
335
  defaultConfig: en
@@ -351,64 +352,73 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
351
352
  return t;
352
353
  }
353
354
  Ye(() => O.config, (e) => {
354
- Pn.value || (L.value = Wn()), Vn.value = !L.value.userOptions.showOnChartHover, Mn(), cn.value += 1, ln.value += 1, un.value += 1, H.value.showTable = L.value.table.show;
355
+ Pn.value || (L.value = Gn()), Vn.value = !L.value.userOptions.showOnChartHover, Mn(), cn.value += 1, ln.value += 1, un.value += 1, V.value.showTable = L.value.table.show;
355
356
  }, { deep: !0 }), Ye(() => O.dataset, (e) => {
356
357
  Array.isArray(e) && e.length > 0 && (In.value = !1), Rn();
357
358
  }, { deep: !0 });
358
- let { isPrinting: Gn, isImaging: Kn, generatePdf: qn, generateImage: Jn } = ye({
359
+ let { isPrinting: Kn, isImaging: qn, generatePdf: Jn, generateImage: Yn } = ye({
359
360
  elementId: k.value,
360
361
  fileName: L.value.style.chart.title.text || "vue-ui-donut-evolution",
361
362
  options: L.value.userOptions.print
362
- }), Yn = d(() => L.value.userOptions.show && !L.value.style.chart.title.text), Xn = d(() => me(L.value.customPalette)), H = S({ showTable: L.value.table.show });
363
+ }), Xn = d(() => L.value.userOptions.show && !L.value.style.chart.title.text), Zn = d(() => me(L.value.customPalette)), V = S({ showTable: L.value.table.show });
363
364
  Ye(L, () => {
364
- H.value = { showTable: L.value.table.show };
365
+ V.value = { showTable: L.value.table.show };
365
366
  }, { immediate: !0 });
366
- let U = d(() => ({
367
+ let H = d(() => ({
367
368
  top: L.value.style.chart.layout.padding.top,
368
369
  right: L.value.style.chart.layout.padding.right,
369
370
  bottom: L.value.style.chart.layout.padding.bottom,
370
371
  left: L.value.style.chart.layout.padding.left
371
- }));
372
- function Zn() {
372
+ })), U = d(() => L.value.style.chart.layout.grid.yAxis.position === "right");
373
+ function Qn() {
373
374
  let e = 0;
374
375
  dn.value && (e = Array.from(dn.value.querySelectorAll("text")).reduce((e, t) => {
375
376
  let n = t.getComputedTextLength();
376
377
  return n > e ? n : e;
377
378
  }, 0));
378
- let t = mn.value ? mn.value.getBoundingClientRect().width + L.value.style.chart.layout.grid.axis.yLabelOffsetX + L.value.style.chart.layout.grid.axis.fontSize : 0;
379
- return e + t + 5;
379
+ let t = mn.value ? mn.value.getBoundingClientRect().width + L.value.style.chart.layout.grid.axis.yLabelOffsetX + L.value.style.chart.layout.grid.axis.fontSize : 0, n = e + t + 5;
380
+ return {
381
+ left: U.value ? 0 : n,
382
+ right: U.value ? n : 0,
383
+ scaleLabelsWidth: e,
384
+ yAxisLabelWidth: t,
385
+ crosshair: 5
386
+ };
380
387
  }
381
- let Qn = S(0), $n = ke((e) => {
382
- Qn.value = e;
388
+ let $n = S(0), er = ke((e) => {
389
+ $n.value = e;
383
390
  }, 100);
384
391
  Xe((e) => {
385
392
  let t = fn.value;
386
393
  if (!t) return;
387
394
  let n = new ResizeObserver((e) => {
388
- $n(e[0].contentRect.height);
395
+ er(e[0].contentRect.height);
389
396
  });
390
397
  n.observe(t), e(() => n.disconnect());
391
398
  }), We(() => {
392
- Qn.value = 0;
399
+ $n.value = 0;
393
400
  });
394
- let er = d(() => {
401
+ let tr = d(() => {
395
402
  let e = 0;
396
403
  pn.value && (e = pn.value.getBBox().height);
397
404
  let t = 0;
398
- return fn.value && (t = Qn.value), e + t + L.value.style.chart.layout.grid.axis.fontSize + L.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
405
+ return fn.value && (t = $n.value), e + t + L.value.style.chart.layout.grid.axis.fontSize + L.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
399
406
  }), W = d(() => {
400
- let e = Zn(), t = L.value.style.chart.layout.dataLabels.fontSize * 3, n = z.value.width, r = z.value.height, i = U.value.left + e, a = n - U.value.right, o = n - i - U.value.right, s = r - U.value.top - U.value.bottom - t - er.value, c = U.value.top + t;
407
+ let e = Qn(), t = L.value.style.chart.layout.dataLabels.fontSize * 3, n = z.value.width, r = z.value.height, i = H.value.left + e.left, a = n - H.value.right - e.right, o = n - i - H.value.right - e.right, s = r - H.value.top - H.value.bottom - t - tr.value, c = H.value.top + t;
401
408
  return {
402
409
  top: c,
403
410
  left: i,
404
411
  right: a,
405
- bottom: r - U.value.bottom - er.value,
412
+ bottom: r - H.value.bottom - tr.value,
406
413
  absoluteHeight: r,
407
414
  absoluteWidth: n,
408
415
  centerX: i + Math.max(10, o) / 2,
409
416
  centerY: c + Math.max(10, s) / 2,
410
417
  width: Math.max(10, o),
411
- height: Math.max(10, s)
418
+ height: Math.max(10, s),
419
+ scaleLabelsWidth: e.scaleLabelsWidth,
420
+ yAxisLabelWidth: e.yAxisLabelWidth,
421
+ crosshair: e.crosshair
412
422
  };
413
423
  }), G = d(() => (Fn.value.forEach((e, t) => {
414
424
  [null, void 0].includes(e.name) && ee({
@@ -427,15 +437,15 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
427
437
  }), Fn.value.map((e, t) => ({
428
438
  ...e,
429
439
  values: ce(e.values),
430
- color: he(e.color) || Xn.value[t] || l[t] || l[t % l.length],
440
+ color: he(e.color) || Zn.value[t] || l[t] || l[t % l.length],
431
441
  length: (e.values || []).length,
432
442
  uid: r()
433
- })))), tr = d(() => G.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
443
+ })))), nr = d(() => G.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
434
444
  ...e,
435
445
  values: e.values.filter((e, t) => t >= B.value.start && t <= B.value.end)
436
- }))), K = d(() => Math.max(...G.value.map((e) => e.length))), q = S([]), nr = 0;
446
+ }))), K = d(() => Math.max(...G.value.map((e) => e.length))), q = S([]), rr = 0;
437
447
  Xe(() => {
438
- let e = ++nr;
448
+ let e = ++rr;
439
449
  (async () => {
440
450
  let t = await _e({
441
451
  values: L.value.style.chart.layout.grid.xAxis.dataLabels.values,
@@ -444,13 +454,13 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
444
454
  start: B.value.start,
445
455
  end: B.value.end
446
456
  });
447
- e === nr && (q.value = t);
457
+ e === rr && (q.value = t);
448
458
  })();
449
459
  });
450
- let J = d(() => W.value.width / (B.value.end - B.value.start)), rr = d(() => {
460
+ let J = d(() => W.value.width / (B.value.end - B.value.start)), ir = d(() => {
451
461
  let e = [];
452
462
  for (let t = 0; t < B.value.end - B.value.start; t += 1) {
453
- let n = tr.value.map((e) => e.values[t] ?? null), r = n.filter((e) => [void 0, null].includes(e)).length === n.length, i = n.reduce((e, t) => e + t, 0), a = n.map((e) => e / i), o = W.value.left + J.value * t + J.value / 2;
463
+ let n = nr.value.map((e) => e.values[t] ?? null), r = n.filter((e) => [void 0, null].includes(e)).length === n.length, i = n.reduce((e, t) => e + t, 0), a = n.map((e) => e / i), o = W.value.left + J.value * t + J.value / 2;
454
464
  e.push({
455
465
  index: t,
456
466
  percentages: a,
@@ -460,26 +470,26 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
460
470
  });
461
471
  }
462
472
  return e;
463
- }), ir = d(() => {
464
- let e = Math.max(...rr.value.map((e) => e.subtotal).filter((e) => ae(e))) ?? 1, t = Math.min(...rr.value.map((e) => e.subtotal).filter((e) => ae(e))) ?? 0, n = Math.max(L.value.style.chart.layout.grid.yAxis.scaleMax ?? 0, e), r;
473
+ }), ar = d(() => {
474
+ let e = Math.max(...ir.value.map((e) => e.subtotal).filter((e) => ae(e))) ?? 1, t = Math.min(...ir.value.map((e) => e.subtotal).filter((e) => ae(e))) ?? 0, n = Math.max(L.value.style.chart.layout.grid.yAxis.scaleMax ?? 0, e), r;
465
475
  return r = L.value.style.chart.layout.grid.yAxis.scaleMin == null ? 0 : Math.min(t, L.value.style.chart.layout.grid.yAxis.scaleMin), L.value.style.chart.layout.grid.yAxis.autoScale && (r = t, n = e), r === n && (r = n / 2, n *= 1.5), {
466
476
  max: n,
467
477
  min: r
468
478
  };
469
479
  }), Y = d(() => {
470
- let e = rr.value.length === 1 ? ir.value.max * 2 : ir.value.max;
471
- return ie(ir.value.min, e, L.value.style.chart.layout.grid.yAxis.dataLabels.steps);
480
+ let e = ir.value.length === 1 ? ar.value.max * 2 : ar.value.max;
481
+ return ie(ar.value.min, e, L.value.style.chart.layout.grid.yAxis.dataLabels.steps);
472
482
  });
473
- function ar(e) {
483
+ function or(e) {
474
484
  return (e - Y.value.min) / (Y.value.max - Y.value.min);
475
485
  }
476
- let or = d(() => Y.value.ticks.map((e) => ({
477
- y: W.value.bottom - W.value.height * ar(e),
486
+ let sr = d(() => Y.value.ticks.map((e) => ({
487
+ y: W.value.bottom - W.value.height * or(e),
478
488
  value: e
479
489
  }))), X = d(() => {
480
- let e = rr.value, t = Math.max(...e.map((e) => e.subtotal));
490
+ let e = ir.value, t = Math.max(...e.map((e) => e.subtotal));
481
491
  return e.length === 1 && t * 2, e.map((t, n) => {
482
- let r = Math.min(W.value.width / 24, J.value / 2 * .7), i = r > W.value.width / 16 ? W.value.width / 16 : r, a = j.value === t.index ? W.value.width / 16 : i, o = e.length > 4 ? r * 2 : r * 2 > J.value / 2 * .7 ? J.value / 2 * .7 : r * 2, s = W.value.bottom - W.value.height * ar(t.subtotal), c = tr.value.map((e) => ({
492
+ let r = Math.min(W.value.width / 24, J.value / 2 * .7), i = r > W.value.width / 16 ? W.value.width / 16 : r, a = j.value === t.index ? W.value.width / 16 : i, o = e.length > 4 ? r * 2 : r * 2 > J.value / 2 * .7 ? J.value / 2 * .7 : r * 2, s = W.value.bottom - W.value.height * or(t.subtotal), c = nr.value.map((e) => ({
483
493
  color: e.color,
484
494
  name: e.name,
485
495
  value: e.values[n] ?? 0
@@ -496,7 +506,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
496
506
  };
497
507
  });
498
508
  });
499
- function sr(e, t, r) {
509
+ function cr(e, t, r) {
500
510
  return oe(L.value.style.chart.layout.dataLabels.formatter, e, n({
501
511
  p: L.value.style.chart.layout.dataLabels.prefix,
502
512
  v: e,
@@ -507,29 +517,29 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
507
517
  index: r
508
518
  });
509
519
  }
510
- function cr(e, t) {
520
+ function lr(e, t) {
511
521
  return isNaN(e.value / o(t, "value")) ? 0 : (e.value / o(t, "value") * 100).toFixed(0) + "%";
512
522
  }
513
- function lr(e) {
523
+ function ur(e) {
514
524
  j.value = null, M.value = null, I.value = null, L.value.events.datapointLeave && L.value.events.datapointLeave({
515
525
  datapoint: e,
516
526
  seriesIndex: e.seriesIndex + B.value.start
517
527
  });
518
528
  }
519
- function ur(e) {
529
+ function dr(e) {
520
530
  L.value.events.datapointEnter && L.value.events.datapointEnter({
521
531
  datapoint: e,
522
532
  seriesIndex: e.index + B.value.start
523
533
  }), j.value = e.index, M.value = e, I.value = e.index;
524
534
  }
525
- let Z = S(null);
526
- function dr(e, t) {
535
+ let fr = S(null);
536
+ function pr(e, t) {
527
537
  L.value.events.datapointClick && L.value.events.datapointClick({
528
538
  datapoint: e,
529
539
  seriesIndex: e.index + B.value.start
530
- }), !(!e.subtotal || !L.value.style.chart.dialog.show) && (M.value = null, j.value = null, rn.value = !0, N.value = e, Ar(e), [null, void 0].includes(t) || (Z.value = t));
540
+ }), !(!e.subtotal || !L.value.style.chart.dialog.show) && (M.value = null, j.value = null, rn.value = !0, N.value = e, jr(e), [null, void 0].includes(t) || (fr.value = t));
531
541
  }
532
- let fr = d(() => G.value.map((e, t) => ({
542
+ let mr = d(() => G.value.map((e, t) => ({
533
543
  name: e.name,
534
544
  value: e.values.slice(B.value.start, B.value.end).reduce((e, t) => e + t, 0),
535
545
  shape: "circle",
@@ -538,7 +548,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
538
548
  })).sort((e, t) => t.value - e.value).map((e, t) => ({
539
549
  ...e,
540
550
  opacity: A.value.includes(e.uid) ? .5 : 1,
541
- segregate: () => gr(e.uid),
551
+ segregate: () => vr(e.uid),
542
552
  isSegregated: A.value.includes(e.uid),
543
553
  display: `${e.name}${L.value.style.chart.legend.showPercentage || L.value.style.chart.legend.showValue ? ": " : ""}${L.value.style.chart.legend.showValue ? oe(L.value.style.chart.layout.dataLabels.formatter, e.value, n({
544
554
  p: L.value.style.chart.layout.dataLabels.prefix,
@@ -548,12 +558,12 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
548
558
  }), {
549
559
  datapoint: e,
550
560
  seriesIndex: t
551
- }) : ""}${L.value.style.chart.legend.showPercentage ? A.value.includes(e.uid) ? `${L.value.style.chart.legend.showValue ? " (" : ""}- %${L.value.style.chart.legend.showValue ? ")" : ""}` : `${L.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / pr.value) ? "-" : n({
552
- v: e.value / pr.value * 100,
561
+ }) : ""}${L.value.style.chart.legend.showPercentage ? A.value.includes(e.uid) ? `${L.value.style.chart.legend.showValue ? " (" : ""}- %${L.value.style.chart.legend.showValue ? ")" : ""}` : `${L.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / hr.value) ? "-" : n({
562
+ v: e.value / hr.value * 100,
553
563
  s: "%",
554
564
  r: L.value.style.chart.legend.roundingPercentage
555
565
  })}${L.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
556
- }))), pr = d(() => X.value.map((e) => e.subtotal).reduce((e, t) => e + t, 0)), mr = d(() => ({
566
+ }))), hr = d(() => X.value.map((e) => e.subtotal).reduce((e, t) => e + t, 0)), gr = d(() => ({
557
567
  cy: "donut-div-legend",
558
568
  backgroundColor: L.value.style.chart.legend.backgroundColor,
559
569
  color: L.value.style.chart.legend.color,
@@ -561,31 +571,31 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
561
571
  paddingBottom: 12,
562
572
  fontWeight: L.value.style.chart.legend.bold ? "bold" : ""
563
573
  }));
564
- function hr() {
565
- A.value.length ? A.value = [] : fr.value.forEach((e) => {
574
+ function _r() {
575
+ A.value.length ? A.value = [] : mr.value.forEach((e) => {
566
576
  A.value.push(e.uid);
567
577
  });
568
578
  }
569
- function gr(e) {
570
- if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e), kn("selectLegend", tr.value);
579
+ function vr(e) {
580
+ if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e), kn("selectLegend", nr.value);
571
581
  else {
572
582
  if (A.value.length === G.value.length - 1) return;
573
- A.value.push(e), kn("selectLegend", tr.value);
583
+ A.value.push(e), kn("selectLegend", nr.value);
574
584
  }
575
- N.value && dr(X.value.find((e, t) => t === Z.value));
585
+ N.value && pr(X.value.find((e, t) => t === fr.value));
576
586
  }
577
- function _r(e) {
587
+ function yr(e) {
578
588
  return G.value.length ? G.value.find((t) => t.name === e) || (L.value.debug && console.warn(`VueUiDonutEvolution - Series name not found "${e}"`), null) : (L.value.debug && console.warn("VueUiDonutEvolution - There are no series to show."), null);
579
589
  }
580
- function vr(e) {
581
- let t = _r(e);
582
- t !== null && A.value.includes(t.uid) && gr(t.uid);
590
+ function br(e) {
591
+ let t = yr(e);
592
+ t !== null && A.value.includes(t.uid) && vr(t.uid);
583
593
  }
584
- function yr(e) {
585
- let t = _r(e);
586
- t !== null && (A.value.includes(t.uid) || gr(t.uid));
594
+ function xr(e) {
595
+ let t = yr(e);
596
+ t !== null && (A.value.includes(t.uid) || vr(t.uid));
587
597
  }
588
- let Q = d(() => {
598
+ let Z = d(() => {
589
599
  let e = [""].concat(G.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
590
600
  name: e.name,
591
601
  color: e.color
@@ -600,7 +610,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
600
610
  return {
601
611
  head: e,
602
612
  body: t,
603
- bodyA11y: t.map((e) => e.map((t, n) => n === 0 || n === e.length - 1 ? t : `${sr(t.value ?? 0, null, n)} (${t.percentage.toFixed(1)}%)`)),
613
+ bodyA11y: t.map((e) => e.map((t, n) => n === 0 || n === e.length - 1 ? t : `${cr(t.value ?? 0, null, n)} (${t.percentage.toFixed(1)}%)`)),
604
614
  config: {
605
615
  th: {
606
616
  backgroundColor: L.value.table.th.backgroundColor,
@@ -617,49 +627,49 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
617
627
  colNames: [L.value.table.columnNames.period].concat(G.value.filter((e) => !A.value.includes(e.uid)).map((e) => e.name), L.value.table.columnNames.total)
618
628
  };
619
629
  });
620
- function br() {
630
+ function Sr() {
621
631
  return G.value;
622
632
  }
623
- function xr(e = null) {
633
+ function Cr(e = null) {
624
634
  Ue(() => {
625
635
  let t = [
626
636
  [L.value.style.chart.title.text],
627
637
  [L.value.style.chart.title.subtitle.text],
628
638
  [""]
629
- ], n = [...Q.value.head.map((e) => e.name ?? e)], r = [...Q.value.body.map((e) => e.map((e) => e.value ?? e))], a = s(t.concat([n]).concat(r));
639
+ ], n = [...Z.value.head.map((e) => e.name ?? e)], r = [...Z.value.body.map((e) => e.map((e) => e.value ?? e))], a = s(t.concat([n]).concat(r));
630
640
  e ? e(a) : i({
631
641
  csvContent: a,
632
642
  title: L.value.style.chart.title.text || "vue-ui-donut-evolution"
633
643
  });
634
644
  });
635
645
  }
636
- let $ = S(!1);
637
- function Sr(e) {
638
- $.value = e, on.value += 1;
639
- }
640
- function Cr() {
641
- H.value.showTable = !H.value.showTable;
646
+ let Q = S(!1);
647
+ function wr(e) {
648
+ Q.value = e, on.value += 1;
642
649
  }
643
- let wr = S(!1);
644
650
  function Tr() {
645
- wr.value = !wr.value;
651
+ V.value.showTable = !V.value.showTable;
646
652
  }
647
- function Er(e) {
653
+ let $ = S(!1);
654
+ function Er() {
655
+ $.value = !$.value;
656
+ }
657
+ function Dr(e) {
648
658
  return e.proportion * 100 > L.value.style.chart.donuts.hover.hideLabelsUnderValue;
649
659
  }
650
- let Dr = S([]), Or = S({}), kr = S(null);
651
- function Ar(e) {
652
- Dr.value = e.donut.map((e) => ({
660
+ let Or = S([]), kr = S({}), Ar = S(null);
661
+ function jr(e) {
662
+ Or.value = e.donut.map((e) => ({
653
663
  name: e.name,
654
664
  values: [e.value],
655
665
  color: e.color
656
- })), Or.value = de({
666
+ })), kr.value = de({
657
667
  ...L.value.style.chart.dialog.donutChart,
658
668
  responsive: !0,
659
669
  theme: L.value.theme
660
- }), kr.value && kr.value.open();
670
+ }), Ar.value && Ar.value.open();
661
671
  }
662
- async function jr({ scale: e = 2 } = {}) {
672
+ async function Mr({ scale: e = 2 } = {}) {
663
673
  if (!P.value) return;
664
674
  let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ee({
665
675
  domElement: P.value,
@@ -705,8 +715,8 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
705
715
  height: d(() => z.value.height),
706
716
  rotation: L.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
707
717
  });
708
- let Mr = d(() => {
709
- let e = L.value.table.useDialog && !L.value.table.show, t = H.value.showTable;
718
+ let Nr = d(() => {
719
+ let e = L.value.table.useDialog && !L.value.table.show, t = V.value.showTable;
710
720
  return {
711
721
  component: e ? $t : Kt,
712
722
  title: `${L.value.style.chart.title.text}${L.value.style.chart.title.subtitle.text ? `: ${L.value.style.chart.title.subtitle.text}` : ""}`,
@@ -715,7 +725,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
715
725
  color: L.value.table.th.color,
716
726
  headerColor: L.value.table.th.color,
717
727
  headerBg: L.value.table.th.backgroundColor,
718
- isFullscreen: $.value,
728
+ isFullscreen: Q.value,
719
729
  fullscreenParent: P.value,
720
730
  forcedWidth: Math.min(800, window.innerWidth * .8),
721
731
  isCursorPointer: R.value
@@ -736,50 +746,50 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
736
746
  }
737
747
  };
738
748
  });
739
- Ye(() => H.value.showTable, (e) => {
740
- L.value.table.show || (e && L.value.table.useDialog && gn.value ? gn.value.open() : "close" in gn.value && gn.value.close());
749
+ Ye(() => V.value.showTable, (e) => {
750
+ L.value.table.show || (e && L.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
741
751
  });
742
- function Nr() {
743
- H.value.showTable = !1, _n.value && _n.value.setTableIconState(!1);
752
+ function Pr() {
753
+ V.value.showTable = !1, gn.value && gn.value.setTableIconState(!1);
744
754
  }
745
- let Pr = d(() => fr.value.map((e) => ({
755
+ let Fr = d(() => mr.value.map((e) => ({
746
756
  ...e,
747
757
  name: e.display
748
- }))), Fr = d(() => L.value.style.chart.backgroundColor), Ir = d(() => L.value.style.chart.legend), { exportSvg: Lr, getSvg: Rr } = Se({
749
- svg: V,
758
+ }))), Ir = d(() => L.value.style.chart.backgroundColor), Lr = d(() => L.value.style.chart.legend), { exportSvg: Rr, getSvg: zr } = Se({
759
+ svg: Wn,
750
760
  title: d(() => L.value.style.chart.title),
751
- legend: Ir,
752
- legendItems: Pr,
753
- backgroundColor: Fr
761
+ legend: Lr,
762
+ legendItems: Fr,
763
+ backgroundColor: Ir
754
764
  });
755
- async function zr({ isCb: e }) {
756
- yn.value = !0, await Ue();
765
+ async function Br({ isCb: e }) {
766
+ vn.value = !0, await Ue();
757
767
  try {
758
768
  if (e) {
759
- let { blob: e, url: t, text: n, dataUrl: r } = await Rr();
769
+ let { blob: e, url: t, text: n, dataUrl: r } = await zr();
760
770
  await Promise.resolve(L.value.userOptions.callbacks.svg({
761
771
  blob: e,
762
772
  url: t,
763
773
  text: n,
764
774
  dataUrl: r
765
775
  }));
766
- } else await Promise.resolve(Lr());
776
+ } else await Promise.resolve(Rr());
767
777
  } finally {
768
- yn.value = !1;
778
+ vn.value = !1;
769
779
  }
770
780
  }
771
- function Br(e) {
781
+ function Vr(e) {
772
782
  if (e?.stage === "start") {
773
- vn.value = !0;
783
+ _n.value = !0;
774
784
  return;
775
785
  }
776
786
  if (e?.stage === "end") {
777
- vn.value = !1;
787
+ _n.value = !1;
778
788
  return;
779
789
  }
780
- Jn();
790
+ Yn();
781
791
  }
782
- async function Vr() {
792
+ async function Hr() {
783
793
  if (kn("copyAlt", {
784
794
  config: L.value,
785
795
  dataset: X.value
@@ -792,14 +802,14 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
792
802
  dataset: X.value
793
803
  }));
794
804
  }
795
- function Hr() {
805
+ function Ur() {
796
806
  I.value = null, On.value = !0;
797
807
  }
798
- function Ur() {
808
+ function Wr() {
799
809
  I.value = null, j.value = null, M.value = null, On.value = !1;
800
810
  }
801
- function Wr(e) {
802
- if (!V.value || wr.value || document.activeElement !== V.value || !X.value.length) return;
811
+ function Gr(e) {
812
+ if (!Wn.value || $.value || document.activeElement !== Wn.value || !X.value.length) return;
803
813
  let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
804
814
  if (!t && !n && !r && !i) return;
805
815
  if (e.preventDefault(), e.stopPropagation(), i) {
@@ -810,35 +820,35 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
810
820
  if (I.value === null) return;
811
821
  let e = X.value[I.value];
812
822
  if (!e) return;
813
- dr(e, I.value);
823
+ pr(e, I.value);
814
824
  return;
815
825
  }
816
826
  let a = I.value, o = j.value, s = a !== null && a >= 0 && a < X.value.length, c = o !== null && o >= 0 && o < X.value.length;
817
827
  s ? n ? (a += 1, a >= X.value.length && (a = 0)) : t && (--a, a < 0 && (a = X.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= X.value.length && (a = 0), a < 0 && (a = X.value.length - 1)) : a = n ? 0 : X.value.length - 1;
818
828
  let l = X.value[a];
819
- l && ur(l);
829
+ l && dr(l);
820
830
  }
821
- let Gr = d(() => ({
822
- headers: Q.value?.colNames ?? [],
823
- rows: Q.value?.bodyA11y ?? []
831
+ let Kr = d(() => ({
832
+ headers: Z.value?.colNames ?? [],
833
+ rows: Z.value?.bodyA11y ?? []
824
834
  }));
825
835
  return Oe({
826
- getData: br,
827
- getImage: jr,
828
- generatePdf: qn,
829
- generateCsv: xr,
830
- generateImage: Jn,
831
- generateSvg: zr,
832
- hideSeries: yr,
833
- showSeries: vr,
834
- toggleTable: Cr,
835
- toggleAnnotator: Tr,
836
- toggleFullscreen: Sr,
837
- copyAlt: Vr
836
+ getData: Sr,
837
+ getImage: Mr,
838
+ generatePdf: Jn,
839
+ generateCsv: Cr,
840
+ generateImage: Yn,
841
+ generateSvg: Br,
842
+ hideSeries: xr,
843
+ showSeries: br,
844
+ toggleTable: Tr,
845
+ toggleAnnotator: Er,
846
+ toggleFullscreen: wr,
847
+ copyAlt: Hr
838
848
  }), (e, r) => (x(), m("div", {
839
849
  ref_key: "donutEvolutionChart",
840
850
  ref: P,
841
- class: v(`vue-data-ui-component vue-ui-donut-evolution ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${L.value.useCssAnimation ? "" : "vue-ui-dna"}`),
851
+ class: v(`vue-data-ui-component vue-ui-donut-evolution ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${L.value.useCssAnimation ? "" : "vue-ui-dna"}`),
842
852
  style: b(`font-family:${L.value.style.fontFamily};width:100%; text-align:center;background:${L.value.style.chart.backgroundColor}`),
843
853
  id: k.value,
844
854
  onMouseenter: r[5] ||= () => E(Hn)(!0),
@@ -848,11 +858,11 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
848
858
  id: `chart-instructions-${k.value}`,
849
859
  class: "sr-only"
850
860
  }, [h("p", null, T(L.value.a11y.translations.keyboardNavigation), 1)], 8, $e),
851
- Gr.value?.rows?.length ? (x(), f(Me, {
861
+ Kr.value?.rows?.length ? (x(), f(Me, {
852
862
  key: 0,
853
863
  uid: k.value,
854
- head: Gr.value.headers,
855
- body: Gr.value.rows,
864
+ head: Kr.value.headers,
865
+ body: Kr.value.rows,
856
866
  notice: L.value.a11y.translations.tableAvailable,
857
867
  caption: L.value.a11y.translations.tableCaption
858
868
  }, null, 8, [
@@ -864,12 +874,12 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
864
874
  ])) : p("", !0),
865
875
  L.value.userOptions.buttons.annotator ? (x(), f(E(Xt), {
866
876
  key: 1,
867
- svgRef: E(V),
877
+ svgRef: E(Wn),
868
878
  backgroundColor: L.value.style.chart.backgroundColor,
869
879
  color: L.value.style.chart.color,
870
- active: wr.value,
880
+ active: $.value,
871
881
  isCursorPointer: R.value,
872
- onClose: Tr
882
+ onClose: Er
873
883
  }, {
874
884
  "annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
875
885
  "annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
@@ -885,7 +895,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
885
895
  "active",
886
896
  "isCursorPointer"
887
897
  ])) : p("", !0),
888
- Yn.value ? (x(), m("div", {
898
+ Xn.value ? (x(), m("div", {
889
899
  key: 2,
890
900
  ref_key: "noTitle",
891
901
  ref: an,
@@ -895,9 +905,9 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
895
905
  L.value.style.chart.title.text ? (x(), m("div", {
896
906
  key: 3,
897
907
  ref_key: "chartTitle",
898
- ref: bn,
908
+ ref: yn,
899
909
  style: "width:100%;background:transparent;padding-bottom:24px",
900
- onMouseleave: lr
910
+ onMouseleave: ur
901
911
  }, [(x(), f(De, {
902
912
  key: `title_${cn.value}`,
903
913
  config: {
@@ -914,12 +924,12 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
914
924
  h("div", { id: `legend-top-${k.value}` }, null, 8, et),
915
925
  L.value.userOptions.show && An.value && (E(Un) || E(Vn)) ? (x(), f(E(Zt), {
916
926
  ref_key: "userOptionsRef",
917
- ref: _n,
927
+ ref: gn,
918
928
  key: `user_options_${on.value}`,
919
929
  backgroundColor: L.value.style.chart.backgroundColor,
920
930
  color: L.value.style.chart.color,
921
- isPrinting: E(Gn),
922
- isImaging: E(Kn),
931
+ isPrinting: E(Kn),
932
+ isImaging: E(qn),
923
933
  uid: k.value,
924
934
  hasPdf: L.value.userOptions.buttons.pdf,
925
935
  hasImg: L.value.userOptions.buttons.img,
@@ -928,24 +938,24 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
928
938
  hasTable: L.value.userOptions.buttons.table,
929
939
  hasFullscreen: L.value.userOptions.buttons.fullscreen,
930
940
  hasAltCopy: L.value.userOptions.buttons.altCopy,
931
- isFullscreen: $.value,
941
+ isFullscreen: Q.value,
932
942
  titles: { ...L.value.userOptions.buttonTitles },
933
943
  chartElement: P.value,
934
944
  position: L.value.userOptions.position,
935
945
  hasAnnotator: L.value.userOptions.buttons.annotator,
936
- isAnnotation: wr.value,
946
+ isAnnotation: $.value,
937
947
  callbacks: L.value.userOptions.callbacks,
938
948
  printScale: L.value.userOptions.print.scale,
939
949
  tableDialog: L.value.table.useDialog,
940
950
  isCursorPointer: R.value,
941
- onToggleFullscreen: Sr,
942
- onGeneratePdf: E(qn),
943
- onGenerateCsv: xr,
944
- onGenerateImage: Br,
945
- onGenerateSvg: zr,
946
- onToggleTable: Cr,
947
- onToggleAnnotator: Tr,
948
- onCopyAlt: Vr,
951
+ onToggleFullscreen: wr,
952
+ onGeneratePdf: E(Jn),
953
+ onGenerateCsv: Cr,
954
+ onGenerateImage: Vr,
955
+ onGenerateSvg: Br,
956
+ onToggleTable: Tr,
957
+ onToggleAnnotator: Er,
958
+ onCopyAlt: Hr,
949
959
  style: b({ visibility: E(Un) ? E(Vn) ? "visible" : "hidden" : "visible" })
950
960
  }, ze({ _: 2 }, [
951
961
  e.$slots.menuIcon ? {
@@ -1040,19 +1050,19 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
1040
1050
  ])) : p("", !0),
1041
1051
  h("div", tt, [(x(), m("svg", {
1042
1052
  ref_key: "svgRef",
1043
- ref: V,
1053
+ ref: Wn,
1044
1054
  xmlns: E(fe),
1045
1055
  "aria-describedby": `chart-instructions-${k.value}`,
1046
1056
  class: v({
1047
- "vue-data-ui-fullscreen--on": $.value,
1048
- "vue-data-ui-fulscreen--off": !$.value
1057
+ "vue-data-ui-fullscreen--on": Q.value,
1058
+ "vue-data-ui-fulscreen--off": !Q.value
1049
1059
  }),
1050
1060
  viewBox: `0 0 ${W.value.absoluteWidth} ${W.value.absoluteHeight}`,
1051
1061
  style: b(`max-width:100%; overflow: visible; background:transparent;color:${L.value.style.chart.color};`),
1052
1062
  tabindex: "0",
1053
- onFocus: Hr,
1054
- onBlur: Ur,
1055
- onKeydown: Wr
1063
+ onFocus: Ur,
1064
+ onBlur: Wr,
1065
+ onKeydown: Gr
1056
1066
  }, [
1057
1067
  Ve(E(Yt)),
1058
1068
  e.$slots["chart-background"] ? (x(), m("foreignObject", {
@@ -1091,8 +1101,8 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
1091
1101
  ], 8, st)]),
1092
1102
  L.value.style.chart.layout.grid.show ? (x(), m("g", dt, [
1093
1103
  h("line", {
1094
- x1: W.value.left,
1095
- x2: W.value.left,
1104
+ x1: U.value ? W.value.right : W.value.left,
1105
+ x2: U.value ? W.value.right : W.value.left,
1096
1106
  y1: W.value.top,
1097
1107
  y2: W.value.top + W.value.height,
1098
1108
  stroke: L.value.style.chart.layout.grid.stroke,
@@ -1124,7 +1134,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
1124
1134
  ref: mn,
1125
1135
  "font-size": L.value.style.chart.layout.grid.axis.fontSize,
1126
1136
  fill: L.value.style.chart.layout.grid.axis.color,
1127
- transform: `translate(${L.value.style.chart.layout.grid.axis.fontSize}, ${W.value.top + W.value.height / 2}) rotate(-90)`,
1137
+ transform: `translate(${U.value ? W.value.absoluteWidth - L.value.style.chart.layout.grid.axis.fontSize / 2 - L.value.style.chart.layout.grid.axis.yLabelOffsetX : L.value.style.chart.layout.grid.axis.fontSize}, ${W.value.top + W.value.height / 2}) rotate(-90)`,
1128
1138
  "text-anchor": "middle",
1129
1139
  style: { transition: "none" }
1130
1140
  }, T(L.value.style.chart.layout.grid.axis.yLabel), 9, gt)) : p("", !0), L.value.style.chart.layout.grid.axis.xLabel ? (x(), m("text", {
@@ -1145,20 +1155,20 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
1145
1155
  "donut-opacity": !0,
1146
1156
  "donut-behind": j.value !== null
1147
1157
  })
1148
- }, [(x(!0), m(u, null, C(or.value, (e, t) => (x(), m("g", null, [e.value >= Y.value.min && e.value <= Y.value.max ? (x(), m("line", {
1158
+ }, [(x(!0), m(u, null, C(sr.value, (e, t) => (x(), m("g", null, [e.value >= Y.value.min && e.value <= Y.value.max ? (x(), m("line", {
1149
1159
  key: 0,
1150
- x1: W.value.left,
1151
- x2: W.value.left - 5,
1160
+ x1: U.value ? W.value.right : W.value.left,
1161
+ x2: U.value ? W.value.right + 5 : W.value.left - 5,
1152
1162
  y1: e.y,
1153
1163
  y2: e.y,
1154
1164
  stroke: L.value.style.chart.layout.grid.stroke,
1155
1165
  "stroke-width": L.value.style.chart.layout.grid.strokeWidth
1156
1166
  }, null, 8, vt)) : p("", !0), e.value >= Y.value.min && e.value <= Y.value.max ? (x(), m("text", {
1157
1167
  key: 1,
1158
- x: W.value.left + L.value.style.chart.layout.grid.yAxis.dataLabels.offsetX - 7,
1168
+ x: U.value ? W.value.right - L.value.style.chart.layout.grid.yAxis.dataLabels.offsetX + 7 : W.value.left + L.value.style.chart.layout.grid.yAxis.dataLabels.offsetX - 7,
1159
1169
  y: e.y + L.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
1160
1170
  "font-size": L.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,
1161
- "text-anchor": "end",
1171
+ "text-anchor": U.value ? "start" : "end",
1162
1172
  fill: L.value.style.chart.layout.grid.yAxis.dataLabels.color,
1163
1173
  "font-weight": L.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
1164
1174
  }, T(E(te)(e.value) ? E(oe)(L.value.style.chart.layout.dataLabels.formatter, e.value, E(n)({
@@ -1222,7 +1232,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
1222
1232
  "donut-opacity": !0,
1223
1233
  "donut-behind": t !== j.value && j.value !== null
1224
1234
  }) }, [e.subtotal ? (x(), m("g", Et, [j.value !== null && j.value === t ? (x(), m("g", Dt, [
1225
- (x(!0), m(u, null, C(e.donutHover, (t) => (x(), m("g", null, [Er(t) ? (x(), m("path", {
1235
+ (x(!0), m(u, null, C(e.donutHover, (t) => (x(), m("g", null, [Dr(t) ? (x(), m("path", {
1226
1236
  key: 0,
1227
1237
  d: E(ue)(t, {
1228
1238
  x: t.center.endX,
@@ -1237,7 +1247,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
1237
1247
  "stroke-linejoin": "round",
1238
1248
  fill: "none"
1239
1249
  }, null, 8, Ot)) : p("", !0)]))), 256)),
1240
- (x(!0), m(u, null, C(e.donutHover, (t, n) => (x(), m("g", null, [Er(t) ? (x(), m("text", {
1250
+ (x(!0), m(u, null, C(e.donutHover, (t, n) => (x(), m("g", null, [Dr(t) ? (x(), m("text", {
1241
1251
  key: 0,
1242
1252
  "data-cy-hover-label": "",
1243
1253
  "text-anchor": E(pe)(t, !0, 0).anchor,
@@ -1246,7 +1256,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
1246
1256
  fill: L.value.style.chart.layout.grid.yAxis.dataLabels.color,
1247
1257
  "font-size": 8,
1248
1258
  "font-weight": "bold"
1249
- }, T(t.name) + ": " + T(cr(t, e.donut)) + " (" + T(t.value === null ? "-" : sr(t.value, t, n)) + ") ", 9, kt)) : p("", !0)]))), 256)),
1259
+ }, T(t.name) + ": " + T(lr(t, e.donut)) + " (" + T(t.value === null ? "-" : cr(t.value, t, n)) + ") ", 9, kt)) : p("", !0)]))), 256)),
1250
1260
  h("g", null, [h("circle", {
1251
1261
  cx: e.x,
1252
1262
  cy: e.y,
@@ -1285,14 +1295,14 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
1285
1295
  "font-size": L.value.style.chart.layout.dataLabels.fontSize,
1286
1296
  "font-weight": "bold",
1287
1297
  fill: L.value.style.chart.layout.dataLabels.color
1288
- }, T(sr(e.subtotal, e, t)), 9, Lt)) : p("", !0)], 2))), 256)),
1298
+ }, T(cr(e.subtotal, e, t)), 9, Lt)) : p("", !0)], 2))), 256)),
1289
1299
  (x(!0), m(u, null, C(X.value, (e, t) => (x(), m("rect", {
1290
1300
  x: W.value.left + t * J.value,
1291
1301
  y: W.value.top,
1292
1302
  width: J.value,
1293
1303
  height: W.value.height,
1294
- fill: [j.value, Z.value].includes(e.index) ? `url(#hover_${k.value})` : "transparent",
1295
- class: v({ "donut-hover": R.value && e.subtotal && [j.value, Z.value].includes(e.index) }),
1304
+ fill: [j.value, fr.value].includes(e.index) ? `url(#hover_${k.value})` : "transparent",
1305
+ class: v({ "donut-hover": R.value && e.subtotal && [j.value, fr.value].includes(e.index) }),
1296
1306
  style: { pointerEvents: "none" }
1297
1307
  }, null, 10, Rt))), 256)),
1298
1308
  (x(!0), m(u, null, C(X.value, (e, t) => (x(), m("rect", {
@@ -1302,29 +1312,29 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
1302
1312
  width: J.value,
1303
1313
  height: W.value.height,
1304
1314
  fill: "transparent",
1305
- onMouseenter: (t) => ur(e),
1306
- onMouseleave: (t) => lr(e),
1307
- onClick: (n) => dr(e, t),
1315
+ onMouseenter: (t) => dr(e),
1316
+ onMouseleave: (t) => ur(e),
1317
+ onClick: (n) => pr(e, t),
1308
1318
  class: v({ "donut-hover": R.value && j.value === e.index && e.subtotal })
1309
1319
  }, null, 42, zt))), 256)),
1310
1320
  w(e.$slots, "svg", { svg: {
1311
1321
  ...W.value,
1312
- isPrintingImg: E(Gn) || E(Kn) || vn.value,
1313
- isPrintingSvg: yn.value
1322
+ isPrintingImg: E(Kn) || E(qn) || _n.value,
1323
+ isPrintingSvg: vn.value
1314
1324
  } }, void 0, !0)
1315
1325
  ], 46, nt)), e.$slots.hint ? (x(), m("div", Bt, [w(e.$slots, "hint", y(_({
1316
1326
  hint: L.value.a11y.translations.keyboardNavigation,
1317
1327
  isVisible: On.value
1318
1328
  })), void 0, !0)])) : p("", !0)]),
1319
- e.$slots.watermark ? (x(), m("div", Vt, [w(e.$slots, "watermark", y(_({ isPrinting: E(Gn) || E(Kn) || vn.value || yn.value })), void 0, !0)])) : p("", !0),
1329
+ e.$slots.watermark ? (x(), m("div", Vt, [w(e.$slots, "watermark", y(_({ isPrinting: E(Kn) || E(qn) || _n.value || vn.value })), void 0, !0)])) : p("", !0),
1320
1330
  h("div", {
1321
1331
  ref_key: "chartSlicer",
1322
- ref: wn,
1332
+ ref: Cn,
1323
1333
  style: b(`width:100%;background:${L.value.style.chart.backgroundColor}`),
1324
1334
  "data-dom-to-png-ignore": ""
1325
1335
  }, [K.value > 1 && L.value.style.chart.zoom.show ? (x(), f(Le, {
1326
1336
  ref_key: "slicerComponent",
1327
- ref: Cn,
1337
+ ref: Sn,
1328
1338
  key: `slicer_${sn.value}`,
1329
1339
  background: L.value.style.chart.zoom.color,
1330
1340
  borderColor: L.value.style.chart.backgroundColor,
@@ -1385,24 +1395,24 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
1385
1395
  to: L.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
1386
1396
  }, [h("div", {
1387
1397
  ref_key: "chartLegend",
1388
- ref: xn
1389
- }, [w(e.$slots, "legend", { legend: fr.value }, () => [L.value.style.chart.legend.show ? (x(), f(Fe, {
1398
+ ref: bn
1399
+ }, [w(e.$slots, "legend", { legend: mr.value }, () => [L.value.style.chart.legend.show ? (x(), f(Fe, {
1390
1400
  key: `legend_${un.value}`,
1391
- legendSet: fr.value,
1392
- config: mr.value,
1393
- onClickMarker: r[2] ||= ({ legend: e }) => gr(e.uid)
1401
+ legendSet: mr.value,
1402
+ config: gr.value,
1403
+ onClickMarker: r[2] ||= ({ legend: e }) => vr(e.uid)
1394
1404
  }, {
1395
1405
  item: D(({ legend: e, index: t }) => [h("div", {
1396
- onClick: (t) => gr(e.uid),
1406
+ onClick: (t) => vr(e.uid),
1397
1407
  style: b(`opacity:${A.value.includes(e.uid) ? .5 : 1}`)
1398
1408
  }, T(e.display), 13, Ut)]),
1399
- legendToggle: D(() => [fr.value.length > 2 && L.value.style.chart.legend.selectAllToggle.show && !E(Pn) ? (x(), f(je, {
1409
+ legendToggle: D(() => [mr.value.length > 2 && L.value.style.chart.legend.selectAllToggle.show && !E(Pn) ? (x(), f(je, {
1400
1410
  key: 0,
1401
1411
  backgroundColor: L.value.style.chart.legend.selectAllToggle.backgroundColor,
1402
1412
  color: L.value.style.chart.legend.selectAllToggle.color,
1403
1413
  fontSize: L.value.style.chart.legend.fontSize,
1404
1414
  checked: A.value.length > 0,
1405
- onToggle: hr
1415
+ onToggle: _r
1406
1416
  }, null, 8, [
1407
1417
  "backgroundColor",
1408
1418
  "color",
@@ -1414,24 +1424,24 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
1414
1424
  e.$slots.source ? (x(), m("div", {
1415
1425
  key: 7,
1416
1426
  ref_key: "source",
1417
- ref: Sn,
1427
+ ref: xn,
1418
1428
  dir: "auto"
1419
1429
  }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1420
- An.value && L.value.userOptions.buttons.table ? (x(), f(Ke(Mr.value.component), He({ key: 8 }, Mr.value.props, {
1430
+ An.value && L.value.userOptions.buttons.table ? (x(), f(Ke(Nr.value.component), He({ key: 8 }, Nr.value.props, {
1421
1431
  ref_key: "tableUnit",
1422
- ref: gn,
1423
- onClose: Nr
1432
+ ref: F,
1433
+ onClose: Pr
1424
1434
  }), ze({
1425
1435
  content: D(() => [(x(), f(E(Jt), {
1426
1436
  key: `table_${ln.value}`,
1427
- colNames: Q.value.colNames,
1428
- head: Q.value.head,
1429
- body: Q.value.body,
1430
- config: Q.value.config,
1431
- title: L.value.table.useDialog ? "" : Mr.value.title,
1437
+ colNames: Z.value.colNames,
1438
+ head: Z.value.head,
1439
+ body: Z.value.body,
1440
+ config: Z.value.config,
1441
+ title: L.value.table.useDialog ? "" : Nr.value.title,
1432
1442
  withCloseButton: !L.value.table.useDialog,
1433
1443
  isCursorPointer: R.value,
1434
- onClose: Nr
1444
+ onClose: Pr
1435
1445
  }, {
1436
1446
  th: D(({ th: e }) => [Be(T(e.name ?? e), 1)]),
1437
1447
  td: D(({ td: e }) => [e.value === null ? (x(), m("span", Wt, "-")) : (x(), m("b", Gt, T(isNaN(e.value) ? "" : L.value.style.chart.layout.dataLabels.prefix) + T(!isNaN(e.value) && e.value !== null ? Number(e.value.toFixed(L.value.table.td.roundingValue)).toLocaleString() : e) + T(isNaN(e.value) ? "" : L.value.style.chart.layout.dataLabels.suffix), 1)), h("span", null, T(e.percentage && !isNaN(e.percentage) ? `(${Number(e.percentage.toFixed(L.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)]),
@@ -1448,40 +1458,40 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
1448
1458
  _: 2
1449
1459
  }, [L.value.table.useDialog ? {
1450
1460
  name: "title",
1451
- fn: D(() => [Be(T(Mr.value.title), 1)]),
1461
+ fn: D(() => [Be(T(Nr.value.title), 1)]),
1452
1462
  key: "0"
1453
1463
  } : void 0, L.value.table.useDialog ? {
1454
1464
  name: "actions",
1455
1465
  fn: D(() => [h("button", {
1456
1466
  tabindex: "0",
1457
1467
  class: "vue-ui-user-options-button",
1458
- onClick: r[3] ||= (e) => xr(L.value.userOptions.callbacks.csv),
1468
+ onClick: r[3] ||= (e) => Cr(L.value.userOptions.callbacks.csv),
1459
1469
  style: b({ cursor: R.value ? "cursor" : "default" })
1460
1470
  }, [Ve(E(qt), {
1461
1471
  name: "fileCsv",
1462
- stroke: Mr.value.props.color
1472
+ stroke: Nr.value.props.color
1463
1473
  }, null, 8, ["stroke"])], 4)]),
1464
1474
  key: "1"
1465
1475
  } : void 0]), 1040)) : p("", !0),
1466
1476
  L.value.style.chart.dialog.show ? (x(), f(E($t), {
1467
1477
  key: 9,
1468
1478
  ref_key: "dialog",
1469
- ref: kr,
1479
+ ref: Ar,
1470
1480
  onClose: r[4] ||= (e) => {
1471
- N.value = null, rn.value = !1, M.value = null, j.value = null, Z.value = null;
1481
+ N.value = null, rn.value = !1, M.value = null, j.value = null, fr.value = null;
1472
1482
  },
1473
1483
  backgroundColor: L.value.style.chart.dialog.backgroundColor,
1474
1484
  color: L.value.style.chart.dialog.color,
1475
1485
  headerBg: L.value.style.chart.dialog.header.backgroundColor,
1476
1486
  headerColor: L.value.style.chart.dialog.header.color,
1477
- isFullscreen: $.value,
1487
+ isFullscreen: Q.value,
1478
1488
  fullscreenParent: P.value
1479
1489
  }, {
1480
1490
  title: D(() => [Be(T(q.value[Number(N.value.index)] ? q.value[Number(N.value.index)].text : ""), 1)]),
1481
1491
  content: D(() => [N.value ? (x(), f(E(Qt), {
1482
1492
  key: 0,
1483
- config: Or.value,
1484
- dataset: Dr.value
1493
+ config: kr.value,
1494
+ dataset: Or.value
1485
1495
  }, null, 8, ["config", "dataset"])) : p("", !0)]),
1486
1496
  _: 1
1487
1497
  }, 8, [
@@ -1495,6 +1505,6 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
1495
1505
  E(Pn) ? (x(), f(xe, { key: 10 })) : p("", !0)
1496
1506
  ], 46, Qe));
1497
1507
  }
1498
- }, [["__scopeId", "data-v-5c9c4621"]]);
1508
+ }, [["__scopeId", "data-v-63ca0b0c"]]);
1499
1509
  //#endregion
1500
1510
  export { Ze as n, Kt as t };