vue-data-ui 2.13.4 → 2.13.5-beta.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 (91) hide show
  1. package/dist/{Arrow-Cv5RKI2K.js → Arrow-nJWOreP4.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CbNaTai1.js → BaseDraggableDialog-IYfaPzLA.js} +2 -2
  3. package/dist/{BaseIcon-B90jg7Eo.js → BaseIcon-lwpKi6Wa.js} +1 -1
  4. package/dist/{ColorPicker-DrHXo6NB.js → ColorPicker-D8TZj-R5.js} +2 -2
  5. package/dist/{DataTable-DOdmEVBM.js → DataTable-CuFlXUxm.js} +2 -2
  6. package/dist/{Legend-D7As_VVi.js → Legend-DwNuhYnG.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-Qe1IsvyR.js → NonSvgPenAndPaper-D1qSfnYa.js} +3 -3
  8. package/dist/{PackageVersion-CJ0MHPau.js → PackageVersion-1psmmuzo.js} +2 -2
  9. package/dist/{PenAndPaper-CsV9xVqP.js → PenAndPaper-DgUkj01g.js} +3 -3
  10. package/dist/{Shape-CMT3DgWJ.js → Shape-CmlBrd-F.js} +1 -1
  11. package/dist/{Slicer-kZ-UNW0I.js → Slicer-B-5jXhhw.js} +161 -161
  12. package/dist/{SparkTooltip-DgaaFrSC.js → SparkTooltip-BGjRXPbu.js} +1 -1
  13. package/dist/{Title-Cuxd1Hw4.js → Title-BoKeR6i0.js} +1 -1
  14. package/dist/{Tooltip-nm6v9SvD.js → Tooltip-Df2iF7bv.js} +1 -1
  15. package/dist/{UserOptions-B4olqrwb.js → UserOptions-NrArsCuC.js} +2 -2
  16. package/dist/{dom-to-png-JxvpNdgk.js → dom-to-png-DK9TIQio.js} +1 -1
  17. package/dist/{img-BrSPXg54.js → img-CqqmkwDl.js} +1 -1
  18. package/dist/{index-DXfqC_CG.js → index-C137VZkI.js} +675 -656
  19. package/dist/{pdf-CRNRsa97.js → pdf-DTB7aasS.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +23 -0
  22. package/dist/types/vue-data-ui.d.ts +23 -0
  23. package/dist/{useNestedProp-CUF1PWxQ.js → useNestedProp-ZNu8JrRX.js} +1 -1
  24. package/dist/{usePrinter-DGQh_spY.js → usePrinter-B63T3abI.js} +2 -2
  25. package/dist/useTimeLabels-Mrr0jrpL.js +242 -0
  26. package/dist/{vue-data-ui-tkhMq-bw.js → vue-data-ui-CBTXw5iV.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Dwdfdqch.js → vue-ui-3d-bar-DKF0Y325.js} +5 -5
  29. package/dist/{vue-ui-accordion-D-tjbzQS.js → vue-ui-accordion-BI2rBS5z.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-BZmYWVrS.js → vue-ui-age-pyramid-BDulR8Zn.js} +5 -5
  31. package/dist/{vue-ui-annotator-DBrXod-O.js → vue-ui-annotator-BokgyAXW.js} +2 -2
  32. package/dist/{vue-ui-bullet-ur-PTrPw.js → vue-ui-bullet-D5TWFElT.js} +6 -6
  33. package/dist/{vue-ui-candlestick-72UivaQY.js → vue-ui-candlestick-DHTA9GKN.js} +96 -96
  34. package/dist/{vue-ui-carousel-table-CApme8lg.js → vue-ui-carousel-table-Bw4rC-Mv.js} +4 -4
  35. package/dist/{vue-ui-chestnut-jcZZ8cOw.js → vue-ui-chestnut-DJAW8dTu.js} +4 -4
  36. package/dist/{vue-ui-chord-A9jGFNM2.js → vue-ui-chord-Drxbeh2P.js} +7 -7
  37. package/dist/{vue-ui-circle-pack-DPnOBq40.js → vue-ui-circle-pack-ClMdOEtG.js} +5 -5
  38. package/dist/{vue-ui-cursor-Cby6-Vrh.js → vue-ui-cursor-DaT20eFb.js} +2 -2
  39. package/dist/{vue-ui-dashboard-BGzORkrX.js → vue-ui-dashboard-z7pGTlMX.js} +62 -62
  40. package/dist/{vue-ui-digits-Dhxd38mc.js → vue-ui-digits-D6kq38s9.js} +2 -2
  41. package/dist/{vue-ui-donut-DsFBb3Cl.js → vue-ui-donut-_kVdFrZR.js} +7 -7
  42. package/dist/{vue-ui-donut-evolution-B-Bo4b4Y.js → vue-ui-donut-evolution-D5P6GSM6.js} +320 -313
  43. package/dist/{vue-ui-dumbbell-EVSJdr9V.js → vue-ui-dumbbell-DfZNlCK5.js} +6 -6
  44. package/dist/{vue-ui-flow-Cr1-ETyc.js → vue-ui-flow-DTx267Ka.js} +6 -6
  45. package/dist/{vue-ui-funnel-BQ0LckzE.js → vue-ui-funnel-B_J0AaMa.js} +83 -83
  46. package/dist/{vue-ui-galaxy-_fwGK1PY.js → vue-ui-galaxy-DtE48yJw.js} +4 -4
  47. package/dist/{vue-ui-gauge-BrnOoF9C.js → vue-ui-gauge-CAKj45DE.js} +5 -5
  48. package/dist/{vue-ui-gizmo-tgjSYkeV.js → vue-ui-gizmo-B-7-Lfai.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CamaTaei.js → vue-ui-heatmap-3anHqH8-.js} +6 -6
  50. package/dist/{vue-ui-history-plot-DSBQu-9Y.js → vue-ui-history-plot-DfduurUS.js} +103 -103
  51. package/dist/{vue-ui-kpi-OCtgONK3.js → vue-ui-kpi-C_wEVoh0.js} +3 -3
  52. package/dist/{vue-ui-mini-loader--xzmMUNI.js → vue-ui-mini-loader-lGMkM8Kw.js} +2 -2
  53. package/dist/{vue-ui-molecule-DnkENzdw.js → vue-ui-molecule-fXW4ejgw.js} +4 -4
  54. package/dist/{vue-ui-mood-radar-DKP1rjSd.js → vue-ui-mood-radar-TuyuMkzg.js} +6 -6
  55. package/dist/{vue-ui-nested-donuts-CHwTDQ9J.js → vue-ui-nested-donuts-CtbOVaRR.js} +6 -6
  56. package/dist/{vue-ui-onion-BxaynRPn.js → vue-ui-onion-BV3A2JCN.js} +6 -6
  57. package/dist/{vue-ui-parallel-coordinate-plot-ohCDDK1Q.js → vue-ui-parallel-coordinate-plot-DJbeP86h.js} +175 -175
  58. package/dist/{vue-ui-quadrant-DXZsVWe3.js → vue-ui-quadrant-xaXINXWX.js} +7 -7
  59. package/dist/{vue-ui-quick-chart-C_ofgdSY.js → vue-ui-quick-chart-Dr1HyP8V.js} +464 -457
  60. package/dist/{vue-ui-radar-CLa2PHHK.js → vue-ui-radar-Cbqe4LM_.js} +6 -6
  61. package/dist/{vue-ui-rating-GiRUw1Wv.js → vue-ui-rating-FuSmmUE8.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-BJ1M2Pnc.js → vue-ui-relation-circle-kDNSenDo.js} +96 -96
  63. package/dist/{vue-ui-ridgeline-E_7xjHTY.js → vue-ui-ridgeline-DxtgFsg_.js} +317 -308
  64. package/dist/{vue-ui-rings-BiOAND3T.js → vue-ui-rings-DMx8sMKa.js} +7 -7
  65. package/dist/{vue-ui-scatter-Bai9QSqI.js → vue-ui-scatter-DX42tHz8.js} +7 -7
  66. package/dist/{vue-ui-skeleton-B2N_3mr0.js → vue-ui-skeleton-CO_Hk6A_.js} +3 -3
  67. package/dist/{vue-ui-smiley-DAvm3IGu.js → vue-ui-smiley-4lhGcbc2.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-D4EwvdX0.js → vue-ui-spark-trend-hGZ_JmgH.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-DM_2iDVI.js → vue-ui-sparkbar-BTf3c9Qn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-UW6sVQdV.js → vue-ui-sparkgauge-oMfHC1dA.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CF0JPKYB.js → vue-ui-sparkhistogram-DvVbSLEj.js} +4 -4
  72. package/dist/{vue-ui-sparkline-Dg8j2KTF.js → vue-ui-sparkline-BbmMxjnF.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-CqT_oEk7.js → vue-ui-sparkstackbar-ChREWvRl.js} +3 -3
  74. package/dist/vue-ui-stackbar-BNPLRyEN.js +1130 -0
  75. package/dist/{vue-ui-strip-plot-BR66rY0G.js → vue-ui-strip-plot-Ca1C6bZ_.js} +73 -73
  76. package/dist/{vue-ui-table-Dk0eXTU9.js → vue-ui-table-Cfb6eIU4.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-Brldpa0g.js → vue-ui-table-heatmap-BnjgK_PF.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-DxQrZBCR.js → vue-ui-table-sparkline-MJ8lvKbd.js} +4 -4
  79. package/dist/{vue-ui-thermometer-B_OrqIjE.js → vue-ui-thermometer-C2qisXo8.js} +5 -5
  80. package/dist/{vue-ui-timer-Cz0J-s5D.js → vue-ui-timer-By6_kV9k.js} +8 -8
  81. package/dist/{vue-ui-tiremarks-B1B3h-Vi.js → vue-ui-tiremarks-BU6rsols.js} +5 -5
  82. package/dist/{vue-ui-treemap-CMm6fSIO.js → vue-ui-treemap-DivJblJW.js} +7 -7
  83. package/dist/{vue-ui-vertical-bar-DA2Xpx46.js → vue-ui-vertical-bar-Dyt4yezz.js} +8 -8
  84. package/dist/{vue-ui-waffle-U3NxGQ3l.js → vue-ui-waffle-DSzMjANd.js} +7 -7
  85. package/dist/{vue-ui-wheel-WNOVLYp8.js → vue-ui-wheel-DFCGjYBy.js} +5 -5
  86. package/dist/{vue-ui-word-cloud-_TBCcmAV.js → vue-ui-word-cloud-BiG5zI03.js} +5 -5
  87. package/dist/{vue-ui-world-DREkLtrD.js → vue-ui-world-BhGGmeGq.js} +5 -5
  88. package/dist/{vue-ui-xy-CIiqKrxF.js → vue-ui-xy-CZpcKEkV.js} +680 -668
  89. package/dist/{vue-ui-xy-canvas-ClHv-Wlu.js → vue-ui-xy-canvas-B7fE9npn.js} +400 -392
  90. package/package.json +1 -1
  91. package/dist/vue-ui-stackbar-By7DVfJV.js +0 -1132
@@ -1,24 +1,25 @@
1
- import { defineAsyncComponent as F, computed as b, ref as y, onMounted as xt, watch as Be, createElementBlock as n, openBlock as o, unref as r, normalizeStyle as Z, normalizeClass as P, createBlock as N, createCommentVNode as c, renderSlot as A, createSlots as kt, withCtx as _, normalizeProps as W, guardReactiveProps as j, createVNode as Ct, createElementVNode as w, Fragment as L, renderList as z, toDisplayString as p, createTextVNode as ve, nextTick as Y } from "vue";
2
- import { u as _t, o as wt, e as ee, g as St, c as Xe, t as $t, p as te, a as At, C as Ge, b as Lt, d as de, H as zt, D as We, m as he, X as It, s as q, E as Nt, i as ye, f as le, j as Pt, k as Dt, n as je, q as Ft, r as Ot, I as Ye, J as Et } from "./index-DXfqC_CG.js";
3
- import { u as qe } from "./useNestedProp-CUF1PWxQ.js";
4
- import { u as Tt } from "./usePrinter-DGQh_spY.js";
5
- import { u as Vt } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { u as Ht } from "./useChartAccessibility-9icAAmYg.js";
7
- import Rt from "./Legend-D7As_VVi.js";
8
- import { S as Mt } from "./Slicer-kZ-UNW0I.js";
9
- import Ut from "./Title-Cuxd1Hw4.js";
10
- import { _ as Bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"], jt = ["id"], Yt = ["stop-color"], qt = ["stop-color"], Jt = ["id"], Kt = ["stop-color"], Qt = ["stop-color"], Zt = ["stop-color"], el = { key: 1 }, tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], al = { key: 0 }, ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nl = ["x", "y", "font-size", "fill", "font-weight"], sl = {
1
+ import { defineAsyncComponent as E, computed as m, ref as h, onMounted as kt, watch as Xe, createElementBlock as n, openBlock as o, unref as r, normalizeStyle as ee, normalizeClass as D, createBlock as P, createCommentVNode as c, renderSlot as z, createSlots as Ct, withCtx as _, normalizeProps as j, guardReactiveProps as Y, createVNode as _t, createElementVNode as w, Fragment as L, renderList as A, toDisplayString as p, createTextVNode as de, nextTick as q } from "vue";
2
+ import { u as wt, o as St, e as te, g as $t, c as Ge, t as zt, p as le, a as Lt, C as We, b as At, d as he, H as It, D as je, m as ye, X as Nt, s as J, E as Pt, i as ge, f as ae, j as Dt, k as Ft, n as Ye, q as Ot, r as Et, I as qe, J as Tt } from "./index-C137VZkI.js";
3
+ import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
4
+ import { u as Je } from "./useNestedProp-ZNu8JrRX.js";
5
+ import { u as Ht } from "./usePrinter-B63T3abI.js";
6
+ import { u as Rt } from "./useTimeLabels-Mrr0jrpL.js";
7
+ import { u as Mt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import Ut from "./Legend-DwNuhYnG.js";
9
+ import { S as Bt } from "./Slicer-B-5jXhhw.js";
10
+ import Xt from "./Title-BoKeR6i0.js";
11
+ import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
+ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"], qt = ["id"], Jt = ["stop-color"], Kt = ["stop-color"], Qt = ["id"], Zt = ["stop-color"], el = ["stop-color"], tl = ["stop-color"], ll = { key: 1 }, al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ul = { key: 0 }, nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], rl = ["x", "y", "font-size", "fill", "font-weight"], il = {
12
13
  key: 3,
13
- class: /* @__PURE__ */ P({ "donut-opacity": !0 })
14
- }, rl = ["text-anchor", "font-size", "fill", "transform"], il = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], cl = { key: 1 }, vl = ["cx", "cy", "r", "fill"], dl = { key: 0 }, hl = { key: 0 }, yl = ["d", "stroke"], gl = ["text-anchor", "x", "y", "fill"], fl = ["cx", "cy", "r", "fill"], ml = { key: 0 }, bl = ["cx", "cy", "fill"], pl = { key: 1 }, xl = ["d", "fill", "stroke"], kl = { key: 2 }, Cl = ["d", "fill", "stroke"], _l = ["x", "y", "font-size", "fill"], wl = ["x", "y", "width", "height", "fill"], Sl = ["x", "y", "width", "height", "onMouseenter", "onClick"], $l = {
14
+ class: /* @__PURE__ */ D({ "donut-opacity": !0 })
15
+ }, cl = ["text-anchor", "font-size", "fill", "transform"], vl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], dl = { key: 1 }, hl = ["cx", "cy", "r", "fill"], yl = { key: 0 }, gl = { key: 0 }, fl = ["d", "stroke"], ml = ["text-anchor", "x", "y", "fill"], bl = ["cx", "cy", "r", "fill"], pl = { key: 0 }, xl = ["cx", "cy", "fill"], kl = { key: 1 }, Cl = ["d", "fill", "stroke"], _l = { key: 2 }, wl = ["d", "fill", "stroke"], Sl = ["x", "y", "font-size", "fill"], $l = ["x", "y", "width", "height", "fill"], zl = ["x", "y", "width", "height", "onMouseenter", "onClick"], Ll = {
15
16
  key: 5,
16
17
  class: "vue-data-ui-watermark"
17
- }, Al = ["onClick"], Ll = { key: 0 }, zl = { key: 1 }, Il = {
18
+ }, Al = ["onClick"], Il = { key: 0 }, Nl = { key: 1 }, Pl = {
18
19
  key: 9,
19
20
  ref: "source",
20
21
  dir: "auto"
21
- }, Nl = { key: 0 }, Pl = { key: 1 }, Dl = {
22
+ }, Dl = { key: 0 }, Fl = { key: 1 }, Ol = {
22
23
  __name: "vue-ui-donut-evolution",
23
24
  props: {
24
25
  config: {
@@ -35,81 +36,81 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
35
36
  }
36
37
  },
37
38
  emits: ["selectLegend"],
38
- setup(Je, { expose: Ke, emit: Qe }) {
39
- const Ze = F(() => import("./vue-ui-accordion-D-tjbzQS.js")), et = F(() => import("./BaseDraggableDialog-CbNaTai1.js")), tt = F(() => import("./DataTable-DOdmEVBM.js")), lt = F(() => import("./PackageVersion-CJ0MHPau.js")), at = F(() => import("./PenAndPaper-CsV9xVqP.js")), ot = F(() => import("./vue-ui-skeleton-B2N_3mr0.js")), ut = F(() => import("./UserOptions-B4olqrwb.js")), nt = F(() => import("./vue-ui-donut-DsFBb3Cl.js")), { vue_ui_donut_evolution: st } = _t(), m = Je, J = b(() => !!m.dataset && m.dataset.length), h = y({
39
+ setup(Ke, { expose: Qe, emit: Ze }) {
40
+ const et = E(() => import("./vue-ui-accordion-BI2rBS5z.js")), tt = E(() => import("./BaseDraggableDialog-IYfaPzLA.js")), lt = E(() => import("./DataTable-CuFlXUxm.js")), at = E(() => import("./PackageVersion-1psmmuzo.js")), ot = E(() => import("./PenAndPaper-DgUkj01g.js")), ut = E(() => import("./vue-ui-skeleton-CO_Hk6A_.js")), nt = E(() => import("./UserOptions-NrArsCuC.js")), st = E(() => import("./vue-ui-donut-_kVdFrZR.js")), { vue_ui_donut_evolution: rt } = wt(), b = Ke, K = m(() => !!b.dataset && b.dataset.length), y = h({
40
41
  start: 0,
41
- end: Math.max(...m.dataset.map((t) => t.values.length))
42
+ end: Math.max(...b.dataset.map((t) => t.values.length))
42
43
  });
43
- function ge() {
44
- fe();
44
+ function fe() {
45
+ me();
45
46
  }
46
- const E = y(null);
47
- async function fe() {
48
- (e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && E.value ? (e.value.style.chart.zoom.startIndex !== null && (await Y(), await Y(), E.value && E.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await Y(), await Y(), E.value && E.value.setEndValue(rt(e.value.style.chart.zoom.endIndex + 1)))) : (h.value = {
47
+ const V = h(null);
48
+ async function me() {
49
+ (e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && V.value ? (e.value.style.chart.zoom.startIndex !== null && (await q(), await q(), V.value && V.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await q(), await q(), V.value && V.value.setEndValue(it(e.value.style.chart.zoom.endIndex + 1)))) : (y.value = {
49
50
  start: 0,
50
51
  end: O.value
51
- }, pe.value += 1);
52
+ }, xe.value += 1);
52
53
  }
53
- function rt(t) {
54
+ function it(t) {
54
55
  const a = O.value;
55
56
  return t > a ? a : t < 0 || e.value.style.chart.zoom.startIndex !== null && t < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : t;
56
57
  }
57
- xt(() => {
58
- me();
58
+ kt(() => {
59
+ be();
59
60
  });
60
- function me() {
61
- wt(m.dataset) ? ee({
61
+ function be() {
62
+ St(b.dataset) ? te({
62
63
  componentName: "VueUiDonutEvolution",
63
64
  type: "dataset"
64
- }) : m.dataset.length && m.dataset.forEach((t, a) => {
65
- St({
65
+ }) : b.dataset.length && b.dataset.forEach((t, a) => {
66
+ $t({
66
67
  datasetObject: t,
67
68
  requiredAttributes: ["name", "values"]
68
69
  }).forEach((l) => {
69
- ee({
70
+ te({
70
71
  componentName: "VueUiDonutEvolution",
71
72
  type: "datasetSerieAttribute",
72
73
  property: l,
73
74
  index: a
74
75
  });
75
76
  });
76
- }), fe();
77
+ }), me();
77
78
  }
78
- const T = y(Xe()), x = y([]), g = y(null), K = y(null), ae = y(!1), V = y(null), oe = y(null), it = y(null), be = y(0), pe = y(0), xe = y(0), ke = y(0), Ce = y(0), _e = Qe, e = b({
79
- get: () => Ae(),
79
+ const H = h(Ge()), x = h([]), g = h(null), Q = h(null), oe = h(!1), T = h(null), ue = h(null), ct = h(null), pe = h(0), xe = h(0), ke = h(0), Ce = h(0), _e = h(0), we = Ze, e = m({
80
+ get: () => Le(),
80
81
  set: (t) => t
81
- }), { userOptionsVisible: ue, setUserOptionsVisibility: we, keepUserOptionState: Se } = Vt({ config: e.value }), { svgRef: $e } = Ht({ config: e.value.style.chart.title });
82
- function Ae() {
83
- const t = qe({
84
- userConfig: m.config,
85
- defaultConfig: st
82
+ }), { userOptionsVisible: ne, setUserOptionsVisibility: Se, keepUserOptionState: $e } = Mt({ config: e.value }), { svgRef: ze } = Vt({ config: e.value.style.chart.title });
83
+ function Le() {
84
+ const t = Je({
85
+ userConfig: b.config,
86
+ defaultConfig: rt
86
87
  });
87
88
  let a = {};
88
89
  return t.theme ? a = {
89
- ...qe({
90
- userConfig: At.vue_ui_donut_evolution[t.theme] || m.config,
90
+ ...Je({
91
+ userConfig: Lt.vue_ui_donut_evolution[t.theme] || b.config,
91
92
  defaultConfig: t
92
93
  }),
93
- customPalette: $t[t.theme] || te
94
- } : a = t, m.config && Ge(m.config, "style.chart.zoom.startIndex") ? a.style.chart.zoom.startIndex = m.config.style.chart.zoom.startIndex : a.style.chart.zoom.startIndex = null, m.config && Ge(m.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = m.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
94
+ customPalette: zt[t.theme] || le
95
+ } : a = t, b.config && We(b.config, "style.chart.zoom.startIndex") ? a.style.chart.zoom.startIndex = b.config.style.chart.zoom.startIndex : a.style.chart.zoom.startIndex = null, b.config && We(b.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = b.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
95
96
  }
96
- Be(() => m.config, (t) => {
97
- e.value = Ae(), ue.value = !e.value.userOptions.showOnChartHover, me(), xe.value += 1, ke.value += 1, Ce.value += 1, B.value.showTable = e.value.table.show;
98
- }, { deep: !0 }), Be(() => m.dataset, (t) => {
99
- ge();
97
+ Xe(() => b.config, (t) => {
98
+ e.value = Le(), ne.value = !e.value.userOptions.showOnChartHover, be(), ke.value += 1, Ce.value += 1, _e.value += 1, X.value.showTable = e.value.table.show;
99
+ }, { deep: !0 }), Xe(() => b.dataset, (t) => {
100
+ fe();
100
101
  }, { deep: !0 });
101
- const { isPrinting: Le, isImaging: ze, generatePdf: Ie, generateImage: Ne } = Tt({
102
- elementId: T.value,
102
+ const { isPrinting: Ae, isImaging: Ie, generatePdf: Ne, generateImage: Pe } = Ht({
103
+ elementId: H.value,
103
104
  fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
104
105
  options: e.value.userOptions.print
105
- }), ct = b(() => e.value.userOptions.show && !e.value.style.chart.title.text), vt = b(() => Lt(e.value.customPalette)), B = y({
106
+ }), vt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), dt = m(() => At(e.value.customPalette)), X = h({
106
107
  showTable: e.value.table.show
107
- }), i = b(() => ({
108
+ }), i = m(() => ({
108
109
  top: e.value.style.chart.layout.padding.top,
109
110
  right: e.value.style.chart.layout.padding.right,
110
111
  bottom: e.value.style.chart.layout.padding.bottom,
111
112
  left: e.value.style.chart.layout.padding.left
112
- })), v = b(() => {
113
+ })), v = m(() => {
113
114
  const t = e.value.style.chart.layout.height, a = e.value.style.chart.layout.width, l = t - i.value.top - i.value.bottom, s = a - i.value.left - i.value.right;
114
115
  return {
115
116
  absoluteHeight: t,
@@ -119,64 +120,70 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
119
120
  height: l,
120
121
  width: s
121
122
  };
122
- }), D = b(() => (m.dataset.forEach((t, a) => {
123
- [null, void 0].includes(t.name) && ee({
123
+ }), F = m(() => (b.dataset.forEach((t, a) => {
124
+ [null, void 0].includes(t.name) && te({
124
125
  componentName: "VueUiDonutEvolution",
125
126
  type: "datasetSerieAttribute",
126
127
  property: "name",
127
128
  index: a
128
- }), [null, void 0].includes(t.values) && ee({
129
+ }), [null, void 0].includes(t.values) && te({
129
130
  componentName: "VueUiDonutEvolution",
130
131
  type: "datasetSerieAttribute",
131
132
  property: "values",
132
133
  index: a
133
134
  });
134
- }), m.dataset.map((t, a) => ({
135
+ }), b.dataset.map((t, a) => ({
135
136
  ...t,
136
- values: zt(t.values),
137
- color: de(t.color) || vt.value[a] || te[a] || te[a % te.length],
137
+ values: It(t.values),
138
+ color: he(t.color) || dt.value[a] || le[a] || le[a % le.length],
138
139
  length: (t.values || []).length,
139
- uid: Xe()
140
- })))), X = b(() => D.value.filter((t) => !x.value.includes(t.uid)).map((t) => ({
140
+ uid: Ge()
141
+ })))), G = m(() => F.value.filter((t) => !x.value.includes(t.uid)).map((t) => ({
141
142
  ...t,
142
- values: t.values.filter((a, l) => l >= h.value.start && l <= h.value.end)
143
- }))), O = b(() => Math.max(...X.value.map((t) => t.length))), S = b(() => v.value.width / (h.value.end - h.value.start)), k = b(() => {
143
+ values: t.values.filter((a, l) => l >= y.value.start && l <= y.value.end)
144
+ }))), O = m(() => Math.max(...G.value.map((t) => t.length))), N = m(() => Rt({
145
+ values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
146
+ maxDatapoints: O.value,
147
+ formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.formatter,
148
+ start: y.value.start,
149
+ end: y.value.end
150
+ })), S = m(() => v.value.width / (y.value.end - y.value.start)), k = m(() => {
144
151
  const t = [];
145
- for (let u = 0; u < h.value.end - h.value.start; u += 1) {
146
- const f = X.value.map((I) => I.values[u] ?? null), d = f.filter((I) => [void 0, null].includes(I)).length === f.length, C = f.reduce((I, $) => I + $, 0), ce = f.map((I) => I / C), U = i.value.left + S.value * u + S.value / 2;
152
+ for (let u = 0; u < y.value.end - y.value.start; u += 1) {
153
+ const f = G.value.map((I) => I.values[u] ?? null), d = f.filter((I) => [void 0, null].includes(I)).length === f.length, C = f.reduce((I, $) => I + $, 0), ve = f.map((I) => I / C), B = i.value.left + S.value * u + S.value / 2;
147
154
  t.push({
148
155
  index: u,
149
- percentages: ce,
156
+ percentages: ve,
150
157
  subtotal: d || C < 0 ? null : C,
151
158
  values: f,
152
- x: U
159
+ x: B
153
160
  });
154
161
  }
155
162
  const a = 0, l = Math.max(...t.map((u) => u.subtotal)), s = t.length === 1 ? l * 2 : l;
156
163
  return t.map((u, f) => {
157
- const d = S.value / 2 * 0.7, C = d > v.value.width / 16 ? v.value.width / 16 : d, ce = g.value === u.index ? v.value.width / 16 : C, U = t.length > 4 ? d * 2 : d * 2 > S.value / 2 * 0.7 ? S.value / 2 * 0.7 : d * 2, I = v.value.absoluteHeight - i.value.bottom - v.value.height * u.subtotal / We(a, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
164
+ const d = S.value / 2 * 0.7, C = d > v.value.width / 16 ? v.value.width / 16 : d, ve = g.value === u.index ? v.value.width / 16 : C, B = t.length > 4 ? d * 2 : d * 2 > S.value / 2 * 0.7 ? S.value / 2 * 0.7 : d * 2, I = v.value.absoluteHeight - i.value.bottom - v.value.height * u.subtotal / je(a, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
158
165
  return {
159
166
  ...u,
160
167
  y: I,
161
168
  radius: C,
162
- activeRadius: ce,
163
- hoverRadius: U,
164
- donut: he({
165
- series: X.value.map(($, Ue) => ({
169
+ activeRadius: ve,
170
+ hoverRadius: B,
171
+ donut: ye({
172
+ series: G.value.map(($, Be) => ({
166
173
  color: $.color,
167
174
  name: $.name,
168
175
  value: $.values[f] ?? 0
169
176
  }))
170
177
  }, u.x, I, C, C, 1.99999, 2, 1, 360, 105.25, C / 2),
171
- donutHover: he({
172
- series: X.value.map(($, Ue) => ({
178
+ donutHover: ye({
179
+ series: G.value.map(($, Be) => ({
173
180
  color: $.color,
174
181
  name: $.name,
175
182
  value: $.values[f] ?? 0
176
183
  }))
177
- }, u.x, I, U, U, 1.99999, 2, 1, 360, 105.25, U / 2),
178
- donutFocus: he({
179
- series: X.value.map(($, Ue) => ({
184
+ }, u.x, I, B, B, 1.99999, 2, 1, 360, 105.25, B / 2),
185
+ donutFocus: ye({
186
+ series: G.value.map(($, Be) => ({
180
187
  color: $.color,
181
188
  name: $.name,
182
189
  value: $.values[f] ?? 0
@@ -185,11 +192,11 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
185
192
  };
186
193
  });
187
194
  });
188
- function Pe(t, a, l) {
189
- return ye(
195
+ function De(t, a, l) {
196
+ return ge(
190
197
  e.value.style.chart.layout.dataLabels.formatter,
191
198
  t,
192
- le({
199
+ ae({
193
200
  p: e.value.style.chart.layout.dataLabels.prefix,
194
201
  v: t,
195
202
  s: e.value.style.chart.layout.dataLabels.suffix,
@@ -198,45 +205,45 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
198
205
  { datapoint: a, index: l }
199
206
  );
200
207
  }
201
- const ne = b(() => ({
208
+ const se = m(() => ({
202
209
  max: Math.max(...k.value.map((t) => t.subtotal)),
203
210
  min: 0
204
- })), H = b(() => {
205
- const t = k.value.length === 1 ? ne.value.max * 2 : ne.value.max;
206
- return We(ne.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
211
+ })), R = m(() => {
212
+ const t = k.value.length === 1 ? se.value.max * 2 : se.value.max;
213
+ return je(se.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
207
214
  });
208
- function dt(t) {
209
- return t / H.value.max;
215
+ function ht(t) {
216
+ return t / R.value.max;
210
217
  }
211
- const ht = b(() => H.value.ticks.map((t) => ({
212
- y: v.value.absoluteHeight - i.value.bottom - v.value.height * dt(t),
218
+ const yt = m(() => R.value.ticks.map((t) => ({
219
+ y: v.value.absoluteHeight - i.value.bottom - v.value.height * ht(t),
213
220
  value: t
214
221
  })));
215
- function yt(t, a) {
216
- return isNaN(t.value / Ye(a, "value")) ? 0 : (t.value / Ye(a, "value") * 100).toFixed(0) + "%";
222
+ function gt(t, a) {
223
+ return isNaN(t.value / qe(a, "value")) ? 0 : (t.value / qe(a, "value") * 100).toFixed(0) + "%";
217
224
  }
218
- function De() {
219
- g.value = null, K.value = null;
225
+ function Fe() {
226
+ g.value = null, Q.value = null;
220
227
  }
221
- function gt(t) {
222
- g.value = t.index, K.value = t;
228
+ function ft(t) {
229
+ g.value = t.index, Q.value = t;
223
230
  }
224
- const G = y(null);
225
- function Fe(t, a) {
226
- !t.subtotal || !e.value.style.chart.dialog.show || (K.value = null, g.value = null, ae.value = !0, V.value = t, pt(t), [null, void 0].includes(a) || (G.value = a));
231
+ const W = h(null);
232
+ function Oe(t, a) {
233
+ !t.subtotal || !e.value.style.chart.dialog.show || (Q.value = null, g.value = null, oe.value = !0, T.value = t, xt(t), [null, void 0].includes(a) || (W.value = a));
227
234
  }
228
- const Oe = b(() => D.value.map((t, a) => ({
235
+ const Ee = m(() => F.value.map((t, a) => ({
229
236
  name: t.name,
230
- value: t.values.slice(h.value.start, h.value.end).reduce((l, s) => l + s, 0),
237
+ value: t.values.slice(y.value.start, y.value.end).reduce((l, s) => l + s, 0),
231
238
  shape: "circle",
232
239
  uid: t.uid,
233
240
  color: t.color
234
241
  })).sort((t, a) => a.value - t.value).map((t) => ({
235
242
  ...t,
236
243
  opacity: x.value.includes(t.uid) ? 0.5 : 1,
237
- segregate: () => se(t.uid),
244
+ segregate: () => re(t.uid),
238
245
  isSegregated: x.value.includes(t.uid)
239
- }))), Ee = b(() => k.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), ft = b(() => ({
246
+ }))), Te = m(() => k.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), mt = m(() => ({
240
247
  cy: "donut-div-legend",
241
248
  backgroundColor: e.value.style.chart.legend.backgroundColor,
242
249
  color: e.value.style.chart.legend.color,
@@ -244,24 +251,24 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
244
251
  paddingBottom: 12,
245
252
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
246
253
  }));
247
- function se(t) {
254
+ function re(t) {
248
255
  if (x.value.includes(t))
249
- x.value = x.value.filter((a) => a !== t), _e("selectLegend", null);
256
+ x.value = x.value.filter((a) => a !== t), we("selectLegend", null);
250
257
  else {
251
- if (x.value.length === D.value.length - 1) return;
252
- x.value.push(t), _e("selectLegend", D.value.find((a) => a.uid === t));
258
+ if (x.value.length === F.value.length - 1) return;
259
+ x.value.push(t), we("selectLegend", F.value.find((a) => a.uid === t));
253
260
  }
254
- V.value && Fe(k.value.find((a, l) => l === G.value));
261
+ T.value && Oe(k.value.find((a, l) => l === W.value));
255
262
  }
256
- const R = b(() => {
257
- const t = [""].concat(D.value.filter((u) => !x.value.includes(u.uid)).map((u) => ({
263
+ const M = m(() => {
264
+ const t = [""].concat(F.value.filter((u) => !x.value.includes(u.uid)).map((u) => ({
258
265
  name: u.name,
259
266
  color: u.color
260
267
  }))).concat(["Σ"]);
261
268
  let a = [];
262
269
  for (let u = 0; u < O.value; u += 1) {
263
- const f = D.value.filter((d) => !x.value.includes(d.uid)).map((d) => d.values[u] ?? 0).reduce((d, C) => d + C, 0);
264
- a.push([e.value.style.chart.layout.grid.xAxis.dataLabels.values[u] ?? "-"].concat(D.value.filter((d) => !x.value.includes(d.uid)).map((d) => ({
270
+ const f = F.value.filter((d) => !x.value.includes(d.uid)).map((d) => d.values[u] ?? 0).reduce((d, C) => d + C, 0);
271
+ a.push([N[u] ? N[u].text : "-"].concat(F.value.filter((d) => !x.value.includes(d.uid)).map((d) => ({
265
272
  value: d.values[u] ?? 0,
266
273
  percentage: d.values[u] ? d.values[u] / f * 100 : 0
267
274
  }))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(f.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
@@ -280,82 +287,82 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
280
287
  breakpoint: e.value.table.responsiveBreakpoint
281
288
  }, s = [
282
289
  e.value.table.columnNames.period
283
- ].concat(D.value.filter((u) => !x.value.includes(u.uid)).map((u) => u.name)).concat(e.value.table.columnNames.total);
290
+ ].concat(F.value.filter((u) => !x.value.includes(u.uid)).map((u) => u.name)).concat(e.value.table.columnNames.total);
284
291
  return { head: t, body: a, config: l, colNames: s };
285
292
  });
286
- function mt() {
287
- return D.value;
293
+ function bt() {
294
+ return F.value;
288
295
  }
289
- function Te(t = null) {
290
- Y(() => {
291
- const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...R.value.head.map((d) => d.name ?? d)], s = [...R.value.body.map((d) => d.map((C) => C.value ?? C))], u = a.concat([l]).concat(s), f = Ft(u);
292
- t ? t(f) : Ot({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
296
+ function Ve(t = null) {
297
+ q(() => {
298
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...M.value.head.map((d) => d.name ?? d)], s = [...M.value.body.map((d) => d.map((C) => C.value ?? C))], u = a.concat([l]).concat(s), f = Ot(u);
299
+ t ? t(f) : Et({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
293
300
  });
294
301
  }
295
- const M = y(!1);
296
- function bt(t) {
297
- M.value = t, be.value += 1;
302
+ const U = h(!1);
303
+ function pt(t) {
304
+ U.value = t, pe.value += 1;
298
305
  }
299
- function Ve() {
300
- B.value.showTable = !B.value.showTable;
306
+ function He() {
307
+ X.value.showTable = !X.value.showTable;
301
308
  }
302
- const Q = y(!1);
303
- function re() {
304
- Q.value = !Q.value;
309
+ const Z = h(!1);
310
+ function ie() {
311
+ Z.value = !Z.value;
305
312
  }
306
- function He(t) {
313
+ function Re(t) {
307
314
  return t.proportion * 100 > e.value.style.chart.donuts.hover.hideLabelsUnderValue;
308
315
  }
309
- const Re = y([]), Me = y({}), ie = y(null);
310
- function pt(t) {
311
- Re.value = t.donut.map((a) => ({
316
+ const Me = h([]), Ue = h({}), ce = h(null);
317
+ function xt(t) {
318
+ Me.value = t.donut.map((a) => ({
312
319
  name: a.name,
313
320
  values: [a.value],
314
321
  color: a.color
315
- })), Me.value = Et({
322
+ })), Ue.value = Tt({
316
323
  ...e.value.style.chart.dialog.donutChart,
317
324
  responsive: !0,
318
325
  theme: e.value.theme
319
- }), ie.value && ie.value.open();
326
+ }), ce.value && ce.value.open();
320
327
  }
321
- return Ke({
322
- getData: mt,
323
- generatePdf: Ie,
324
- generateCsv: Te,
325
- generateImage: Ne,
326
- toggleTable: Ve,
327
- toggleAnnotator: re
328
+ return Qe({
329
+ getData: bt,
330
+ generatePdf: Ne,
331
+ generateCsv: Ve,
332
+ generateImage: Pe,
333
+ toggleTable: He,
334
+ toggleAnnotator: ie
328
335
  }), (t, a) => (o(), n("div", {
329
336
  ref_key: "donutEvolutionChart",
330
- ref: oe,
331
- class: P(`vue-ui-donut-evolution ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
332
- style: Z(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
333
- id: T.value,
334
- onMouseenter: a[5] || (a[5] = () => r(we)(!0)),
335
- onMouseleave: a[6] || (a[6] = () => r(we)(!1))
337
+ ref: ue,
338
+ class: D(`vue-ui-donut-evolution ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
339
+ style: ee(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
340
+ id: H.value,
341
+ onMouseenter: a[5] || (a[5] = () => r(Se)(!0)),
342
+ onMouseleave: a[6] || (a[6] = () => r(Se)(!1))
336
343
  }, [
337
- e.value.userOptions.buttons.annotator ? (o(), N(r(at), {
344
+ e.value.userOptions.buttons.annotator ? (o(), P(r(ot), {
338
345
  key: 0,
339
- svgRef: r($e),
346
+ svgRef: r(ze),
340
347
  backgroundColor: e.value.style.chart.backgroundColor,
341
348
  color: e.value.style.chart.color,
342
- active: Q.value,
343
- onClose: re
349
+ active: Z.value,
350
+ onClose: ie
344
351
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
345
- ct.value ? (o(), n("div", {
352
+ vt.value ? (o(), n("div", {
346
353
  key: 1,
347
354
  ref_key: "noTitle",
348
- ref: it,
355
+ ref: ct,
349
356
  class: "vue-data-ui-no-title-space",
350
357
  style: "height:36px; width: 100%;background:transparent"
351
358
  }, null, 512)) : c("", !0),
352
359
  e.value.style.chart.title.text ? (o(), n("div", {
353
360
  key: 2,
354
361
  style: "width:100%;background:transparent;padding-bottom:24px",
355
- onMouseleave: De
362
+ onMouseleave: Fe
356
363
  }, [
357
- (o(), N(Ut, {
358
- key: `title_${xe.value}`,
364
+ (o(), P(Xt, {
365
+ key: `title_${ke.value}`,
359
366
  config: {
360
367
  title: {
361
368
  cy: "donut-evolution-div-title",
@@ -368,96 +375,96 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
368
375
  }
369
376
  }, null, 8, ["config"]))
370
377
  ], 32)) : c("", !0),
371
- e.value.userOptions.show && J.value && (r(Se) || r(ue)) ? (o(), N(r(ut), {
378
+ e.value.userOptions.show && K.value && (r($e) || r(ne)) ? (o(), P(r(nt), {
372
379
  ref: "details",
373
- key: `user_options_${be.value}`,
380
+ key: `user_options_${pe.value}`,
374
381
  backgroundColor: e.value.style.chart.backgroundColor,
375
382
  color: e.value.style.chart.color,
376
- isPrinting: r(Le),
377
- isImaging: r(ze),
378
- uid: T.value,
383
+ isPrinting: r(Ae),
384
+ isImaging: r(Ie),
385
+ uid: H.value,
379
386
  hasPdf: e.value.userOptions.buttons.pdf,
380
387
  hasImg: e.value.userOptions.buttons.img,
381
388
  hasXls: e.value.userOptions.buttons.csv,
382
389
  hasTable: e.value.userOptions.buttons.table,
383
390
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
384
- isFullscreen: M.value,
391
+ isFullscreen: U.value,
385
392
  titles: { ...e.value.userOptions.buttonTitles },
386
- chartElement: oe.value,
393
+ chartElement: ue.value,
387
394
  position: e.value.userOptions.position,
388
395
  hasAnnotator: e.value.userOptions.buttons.annotator,
389
- isAnnotation: Q.value,
396
+ isAnnotation: Z.value,
390
397
  callbacks: e.value.userOptions.callbacks,
391
- onToggleFullscreen: bt,
392
- onGeneratePdf: r(Ie),
393
- onGenerateCsv: Te,
394
- onGenerateImage: r(Ne),
395
- onToggleTable: Ve,
396
- onToggleAnnotator: re,
397
- style: Z({
398
- visibility: r(Se) ? r(ue) ? "visible" : "hidden" : "visible"
398
+ onToggleFullscreen: pt,
399
+ onGeneratePdf: r(Ne),
400
+ onGenerateCsv: Ve,
401
+ onGenerateImage: r(Pe),
402
+ onToggleTable: He,
403
+ onToggleAnnotator: ie,
404
+ style: ee({
405
+ visibility: r($e) ? r(ne) ? "visible" : "hidden" : "visible"
399
406
  })
400
- }, kt({ _: 2 }, [
407
+ }, Ct({ _: 2 }, [
401
408
  t.$slots.menuIcon ? {
402
409
  name: "menuIcon",
403
410
  fn: _(({ isOpen: l, color: s }) => [
404
- A(t.$slots, "menuIcon", W(j({ isOpen: l, color: s })), void 0, !0)
411
+ z(t.$slots, "menuIcon", j(Y({ isOpen: l, color: s })), void 0, !0)
405
412
  ]),
406
413
  key: "0"
407
414
  } : void 0,
408
415
  t.$slots.optionPdf ? {
409
416
  name: "optionPdf",
410
417
  fn: _(() => [
411
- A(t.$slots, "optionPdf", {}, void 0, !0)
418
+ z(t.$slots, "optionPdf", {}, void 0, !0)
412
419
  ]),
413
420
  key: "1"
414
421
  } : void 0,
415
422
  t.$slots.optionCsv ? {
416
423
  name: "optionCsv",
417
424
  fn: _(() => [
418
- A(t.$slots, "optionCsv", {}, void 0, !0)
425
+ z(t.$slots, "optionCsv", {}, void 0, !0)
419
426
  ]),
420
427
  key: "2"
421
428
  } : void 0,
422
429
  t.$slots.optionImg ? {
423
430
  name: "optionImg",
424
431
  fn: _(() => [
425
- A(t.$slots, "optionImg", {}, void 0, !0)
432
+ z(t.$slots, "optionImg", {}, void 0, !0)
426
433
  ]),
427
434
  key: "3"
428
435
  } : void 0,
429
436
  t.$slots.optionTable ? {
430
437
  name: "optionTable",
431
438
  fn: _(() => [
432
- A(t.$slots, "optionTable", {}, void 0, !0)
439
+ z(t.$slots, "optionTable", {}, void 0, !0)
433
440
  ]),
434
441
  key: "4"
435
442
  } : void 0,
436
443
  t.$slots.optionFullscreen ? {
437
444
  name: "optionFullscreen",
438
445
  fn: _(({ toggleFullscreen: l, isFullscreen: s }) => [
439
- A(t.$slots, "optionFullscreen", W(j({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
446
+ z(t.$slots, "optionFullscreen", j(Y({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
440
447
  ]),
441
448
  key: "5"
442
449
  } : void 0,
443
450
  t.$slots.optionAnnotator ? {
444
451
  name: "optionAnnotator",
445
452
  fn: _(({ toggleAnnotator: l, isAnnotator: s }) => [
446
- A(t.$slots, "optionAnnotator", W(j({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
453
+ z(t.$slots, "optionAnnotator", j(Y({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
447
454
  ]),
448
455
  key: "6"
449
456
  } : void 0
450
457
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
451
- J.value ? (o(), n("svg", {
458
+ K.value ? (o(), n("svg", {
452
459
  key: 4,
453
460
  ref_key: "svgRef",
454
- ref: $e,
455
- xmlns: r(It),
456
- class: P({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
461
+ ref: ze,
462
+ xmlns: r(Nt),
463
+ class: D({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
457
464
  viewBox: `0 0 ${v.value.absoluteWidth} ${v.value.absoluteHeight}`,
458
- style: Z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
465
+ style: ee(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
459
466
  }, [
460
- Ct(r(lt)),
467
+ _t(r(at)),
461
468
  t.$slots["chart-background"] ? (o(), n("foreignObject", {
462
469
  key: 0,
463
470
  x: i.value.left,
@@ -468,11 +475,11 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
468
475
  pointerEvents: "none"
469
476
  }
470
477
  }, [
471
- A(t.$slots, "chart-background", {}, void 0, !0)
472
- ], 8, Wt)) : c("", !0),
478
+ z(t.$slots, "chart-background", {}, void 0, !0)
479
+ ], 8, Yt)) : c("", !0),
473
480
  w("defs", null, [
474
481
  w("linearGradient", {
475
- id: `hover_${T.value}`,
482
+ id: `hover_${H.value}`,
476
483
  x1: "0%",
477
484
  y1: "0%",
478
485
  x2: "0%",
@@ -480,31 +487,31 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
480
487
  }, [
481
488
  w("stop", {
482
489
  offset: "0%",
483
- "stop-color": r(q)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
484
- }, null, 8, Yt),
490
+ "stop-color": r(J)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
491
+ }, null, 8, Jt),
485
492
  w("stop", {
486
493
  offset: "100%",
487
- "stop-color": r(q)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
488
- }, null, 8, qt)
489
- ], 8, jt),
494
+ "stop-color": r(J)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
495
+ }, null, 8, Kt)
496
+ ], 8, qt),
490
497
  w("radialGradient", {
491
- id: `focus_${T.value}`
498
+ id: `focus_${H.value}`
492
499
  }, [
493
500
  w("stop", {
494
501
  offset: "0%",
495
- "stop-color": r(q)(r(de)(e.value.style.chart.backgroundColor), 0)
496
- }, null, 8, Kt),
502
+ "stop-color": r(J)(r(he)(e.value.style.chart.backgroundColor), 0)
503
+ }, null, 8, Zt),
497
504
  w("stop", {
498
505
  offset: "77%",
499
- "stop-color": r(q)("#FFFFFF", 30)
500
- }, null, 8, Qt),
506
+ "stop-color": r(J)("#FFFFFF", 30)
507
+ }, null, 8, el),
501
508
  w("stop", {
502
509
  offset: "100%",
503
- "stop-color": r(q)(r(de)(e.value.style.chart.backgroundColor), 0)
504
- }, null, 8, Zt)
505
- ], 8, Jt)
510
+ "stop-color": r(J)(r(he)(e.value.style.chart.backgroundColor), 0)
511
+ }, null, 8, tl)
512
+ ], 8, Qt)
506
513
  ]),
507
- e.value.style.chart.layout.grid.show ? (o(), n("g", el, [
514
+ e.value.style.chart.layout.grid.show ? (o(), n("g", ll, [
508
515
  w("line", {
509
516
  x1: i.value.left,
510
517
  x2: i.value.left,
@@ -513,7 +520,7 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
513
520
  stroke: e.value.style.chart.layout.grid.stroke,
514
521
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
515
522
  "stroke-linecap": "round"
516
- }, null, 8, tl),
523
+ }, null, 8, al),
517
524
  w("line", {
518
525
  x1: i.value.left,
519
526
  x2: v.value.absoluteWidth - i.value.right,
@@ -522,9 +529,9 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
522
529
  stroke: e.value.style.chart.layout.grid.stroke,
523
530
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
524
531
  "stroke-linecap": "round"
525
- }, null, 8, ll),
526
- e.value.style.chart.layout.grid.showVerticalLines ? (o(), n("g", al, [
527
- (o(!0), n(L, null, z(h.value.end - h.value.start, (l, s) => (o(), n("line", {
532
+ }, null, 8, ol),
533
+ e.value.style.chart.layout.grid.showVerticalLines ? (o(), n("g", ul, [
534
+ (o(!0), n(L, null, A(y.value.end - y.value.start, (l, s) => (o(), n("line", {
528
535
  x1: i.value.left + (s + 1) * S.value,
529
536
  x2: i.value.left + (s + 1) * S.value,
530
537
  y1: i.value.top,
@@ -532,15 +539,15 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
532
539
  stroke: e.value.style.chart.layout.grid.stroke,
533
540
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
534
541
  "stroke-linecap": "round"
535
- }, null, 8, ol))), 256))
542
+ }, null, 8, nl))), 256))
536
543
  ])) : c("", !0)
537
544
  ])) : c("", !0),
538
545
  e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (o(), n("g", {
539
546
  key: 2,
540
- class: P({ "donut-opacity": !0, "donut-behind": g.value !== null })
547
+ class: D({ "donut-opacity": !0, "donut-behind": g.value !== null })
541
548
  }, [
542
- (o(!0), n(L, null, z(ht.value, (l, s) => (o(), n("g", null, [
543
- l.value >= H.value.min && l.value <= H.value.max ? (o(), n("line", {
549
+ (o(!0), n(L, null, A(yt.value, (l, s) => (o(), n("g", null, [
550
+ l.value >= R.value.min && l.value <= R.value.max ? (o(), n("line", {
544
551
  key: 0,
545
552
  x1: i.value.left,
546
553
  x2: i.value.left - 5,
@@ -548,8 +555,8 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
548
555
  y2: l.y,
549
556
  stroke: e.value.style.chart.layout.grid.stroke,
550
557
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
551
- }, null, 8, ul)) : c("", !0),
552
- l.value >= H.value.min && l.value <= H.value.max ? (o(), n("text", {
558
+ }, null, 8, sl)) : c("", !0),
559
+ l.value >= R.value.min && l.value <= R.value.max ? (o(), n("text", {
553
560
  key: 1,
554
561
  x: i.value.left - 8 + e.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,
555
562
  y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
@@ -557,34 +564,34 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
557
564
  "text-anchor": "end",
558
565
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
559
566
  "font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
560
- }, p(r(Nt)(l.value) ? r(ye)(
567
+ }, p(r(Pt)(l.value) ? r(ge)(
561
568
  e.value.style.chart.layout.dataLabels.formatter,
562
569
  l.value,
563
- r(le)({
570
+ r(ae)({
564
571
  p: e.value.style.chart.layout.dataLabels.prefix,
565
572
  v: l.value,
566
573
  s: e.value.style.chart.layout.dataLabels.suffix,
567
574
  r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
568
575
  }),
569
576
  { datapoint: l, seriesIndex: s }
570
- ) : ""), 9, nl)) : c("", !0)
577
+ ) : ""), 9, rl)) : c("", !0)
571
578
  ]))), 256))
572
579
  ], 2)) : c("", !0),
573
- e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (o(), n("g", sl, [
574
- (o(!0), n(L, null, z(h.value.end - h.value.start, (l, s) => (o(), n("g", null, [
580
+ e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (o(), n("g", il, [
581
+ (o(!0), n(L, null, A(y.value.end - y.value.start, (l, s) => (o(), n("g", null, [
575
582
  e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === O.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast ? (o(), n("text", {
576
583
  key: 0,
577
584
  "text-anchor": e.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
578
585
  "font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
579
586
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
580
587
  transform: `translate(${i.value.left + S.value * s + S.value / 2}, ${e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY + v.value.absoluteHeight - i.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize * 2}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
581
- }, p(e.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(s) + Number(h.value.start)] ?? ""), 9, rl)) : c("", !0)
588
+ }, p(N.value[s] ? N.value[s].text : ""), 9, cl)) : c("", !0)
582
589
  ]))), 256))
583
590
  ])) : c("", !0),
584
- (o(!0), n(L, null, z(k.value, (l, s) => (o(), n("g", null, [
591
+ (o(!0), n(L, null, A(k.value, (l, s) => (o(), n("g", null, [
585
592
  e.value.style.chart.layout.line.show && s < k.value.length - 1 && ![l.subtotal, k.value[s + 1].subtotal].includes(null) ? (o(), n("line", {
586
593
  key: 0,
587
- class: P({ "donut-opacity": !0, "donut-behind": g.value !== null }),
594
+ class: D({ "donut-opacity": !0, "donut-behind": g.value !== null }),
588
595
  x1: l.x,
589
596
  y1: l.y,
590
597
  x2: k.value[s + 1].x,
@@ -593,44 +600,44 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
593
600
  "stroke-width": e.value.style.chart.layout.line.strokeWidth,
594
601
  "stroke-linecap": "round",
595
602
  "stroke-linejoin": "round"
596
- }, null, 10, il)) : c("", !0),
597
- l.subtotal !== null ? (o(), n("g", cl, [
603
+ }, null, 10, vl)) : c("", !0),
604
+ l.subtotal !== null ? (o(), n("g", dl, [
598
605
  l.subtotal ? (o(), n("circle", {
599
606
  key: 0,
600
607
  cx: l.x,
601
608
  cy: l.y,
602
609
  r: l.activeRadius,
603
610
  fill: e.value.style.chart.backgroundColor
604
- }, null, 8, vl)) : c("", !0)
611
+ }, null, 8, hl)) : c("", !0)
605
612
  ])) : c("", !0)
606
613
  ]))), 256)),
607
- (o(!0), n(L, null, z(k.value, (l, s) => (o(), n("g", {
608
- class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
614
+ (o(!0), n(L, null, A(k.value, (l, s) => (o(), n("g", {
615
+ class: D({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
609
616
  }, [
610
- l.subtotal ? (o(), n("g", dl, [
611
- g.value !== null && g.value === s ? (o(), n("g", hl, [
612
- (o(!0), n(L, null, z(l.donutHover, (u) => (o(), n("g", null, [
613
- He(u) ? (o(), n("path", {
617
+ l.subtotal ? (o(), n("g", yl, [
618
+ g.value !== null && g.value === s ? (o(), n("g", gl, [
619
+ (o(!0), n(L, null, A(l.donutHover, (u) => (o(), n("g", null, [
620
+ Re(u) ? (o(), n("path", {
614
621
  key: 0,
615
- d: r(Pt)(u, { x: u.center.endX, y: u.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
622
+ d: r(Dt)(u, { x: u.center.endX, y: u.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
616
623
  stroke: u.color,
617
624
  "stroke-width": "1",
618
625
  "stroke-linecap": "round",
619
626
  "stroke-linejoin": "round",
620
627
  fill: "none"
621
- }, null, 8, yl)) : c("", !0)
628
+ }, null, 8, fl)) : c("", !0)
622
629
  ]))), 256)),
623
- (o(!0), n(L, null, z(l.donutHover, (u, f) => (o(), n("g", null, [
624
- He(u) ? (o(), n("text", {
630
+ (o(!0), n(L, null, A(l.donutHover, (u, f) => (o(), n("g", null, [
631
+ Re(u) ? (o(), n("text", {
625
632
  key: 0,
626
633
  "data-cy-hover-label": "",
627
- "text-anchor": r(je)(u, !0, 0).anchor,
628
- x: r(je)(u, !0, 9).x,
629
- y: r(Dt)(u, 14, 10),
634
+ "text-anchor": r(Ye)(u, !0, 0).anchor,
635
+ x: r(Ye)(u, !0, 9).x,
636
+ y: r(Ft)(u, 14, 10),
630
637
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
631
638
  "font-size": 8,
632
639
  "font-weight": "bold"
633
- }, p(u.name) + ": " + p(yt(u, l.donut)) + " (" + p(u.value === null ? "-" : Pe(u.value, u, f)) + ") ", 9, gl)) : c("", !0)
640
+ }, p(u.name) + ": " + p(gt(u, l.donut)) + " (" + p(u.value === null ? "-" : De(u.value, u, f)) + ") ", 9, ml)) : c("", !0)
634
641
  ]))), 256)),
635
642
  w("g", null, [
636
643
  w("circle", {
@@ -638,40 +645,40 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
638
645
  cy: l.y,
639
646
  r: l.hoverRadius,
640
647
  fill: e.value.style.chart.backgroundColor
641
- }, null, 8, fl)
648
+ }, null, 8, bl)
642
649
  ])
643
650
  ])) : c("", !0)
644
651
  ])) : c("", !0)
645
652
  ], 2))), 256)),
646
- (o(!0), n(L, null, z(k.value, (l, s) => (o(), n("g", {
647
- class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
653
+ (o(!0), n(L, null, A(k.value, (l, s) => (o(), n("g", {
654
+ class: D({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
648
655
  }, [
649
- l.subtotal !== null ? (o(), n("g", ml, [
656
+ l.subtotal !== null ? (o(), n("g", pl, [
650
657
  l.subtotal === 0 ? (o(), n("circle", {
651
658
  key: 0,
652
659
  cx: l.x,
653
660
  cy: l.y,
654
661
  r: 3,
655
662
  fill: e.value.style.chart.color
656
- }, null, 8, bl)) : g.value !== null && g.value === s ? (o(), n("g", pl, [
657
- (o(!0), n(L, null, z(l.donutHover, (u, f) => (o(), n("path", {
663
+ }, null, 8, xl)) : g.value !== null && g.value === s ? (o(), n("g", kl, [
664
+ (o(!0), n(L, null, A(l.donutHover, (u, f) => (o(), n("path", {
658
665
  d: u.arcSlice,
659
666
  fill: `${u.color}`,
660
667
  "stroke-width": 1,
661
668
  stroke: e.value.style.chart.backgroundColor
662
- }, null, 8, xl))), 256))
663
- ])) : (o(), n("g", kl, [
664
- (o(!0), n(L, null, z(l.donut, (u, f) => (o(), n("path", {
669
+ }, null, 8, Cl))), 256))
670
+ ])) : (o(), n("g", _l, [
671
+ (o(!0), n(L, null, A(l.donut, (u, f) => (o(), n("path", {
665
672
  d: u.arcSlice,
666
673
  fill: `${u.color}`,
667
674
  "stroke-width": 0.5,
668
675
  stroke: e.value.style.chart.backgroundColor
669
- }, null, 8, Cl))), 256))
676
+ }, null, 8, wl))), 256))
670
677
  ]))
671
678
  ])) : c("", !0)
672
679
  ], 2))), 256)),
673
- (o(!0), n(L, null, z(k.value, (l, s) => (o(), n("g", {
674
- class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null || ae.value && s !== V.value.index })
680
+ (o(!0), n(L, null, A(k.value, (l, s) => (o(), n("g", {
681
+ class: D({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null || oe.value && s !== T.value.index })
675
682
  }, [
676
683
  l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (o(), n("text", {
677
684
  key: 0,
@@ -681,37 +688,37 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
681
688
  "font-size": e.value.style.chart.layout.dataLabels.fontSize,
682
689
  "font-weight": "bold",
683
690
  fill: e.value.style.chart.layout.dataLabels.color
684
- }, p(Pe(l.subtotal, l, s)), 9, _l)) : c("", !0)
691
+ }, p(De(l.subtotal, l, s)), 9, Sl)) : c("", !0)
685
692
  ], 2))), 256)),
686
- (o(!0), n(L, null, z(k.value, (l, s) => (o(), n("rect", {
693
+ (o(!0), n(L, null, A(k.value, (l, s) => (o(), n("rect", {
687
694
  x: i.value.left + s * S.value,
688
695
  y: i.value.top,
689
696
  width: S.value,
690
697
  height: v.value.height,
691
- fill: [g.value, G.value].includes(l.index) ? `url(#hover_${T.value})` : "transparent",
692
- class: P({ "donut-hover": l.subtotal && [g.value, G.value].includes(l.index) }),
698
+ fill: [g.value, W.value].includes(l.index) ? `url(#hover_${H.value})` : "transparent",
699
+ class: D({ "donut-hover": l.subtotal && [g.value, W.value].includes(l.index) }),
693
700
  style: {
694
701
  pointerEvents: "none"
695
702
  }
696
- }, null, 10, wl))), 256)),
697
- (o(!0), n(L, null, z(k.value, (l, s) => (o(), n("rect", {
703
+ }, null, 10, $l))), 256)),
704
+ (o(!0), n(L, null, A(k.value, (l, s) => (o(), n("rect", {
698
705
  "data-cy-trap": "",
699
706
  x: i.value.left + s * S.value,
700
707
  y: i.value.top,
701
708
  width: S.value,
702
709
  height: v.value.height,
703
710
  fill: "transparent",
704
- onMouseenter: (u) => gt(l),
705
- onMouseleave: De,
706
- onClick: (u) => Fe(l, s),
707
- class: P({ "donut-hover": g.value === l.index && l.subtotal })
708
- }, null, 42, Sl))), 256)),
709
- A(t.$slots, "svg", { svg: v.value }, void 0, !0)
710
- ], 14, Gt)) : c("", !0),
711
- t.$slots.watermark ? (o(), n("div", $l, [
712
- A(t.$slots, "watermark", W(j({ isPrinting: r(Le) || r(ze) })), void 0, !0)
711
+ onMouseenter: (u) => ft(l),
712
+ onMouseleave: Fe,
713
+ onClick: (u) => Oe(l, s),
714
+ class: D({ "donut-hover": g.value === l.index && l.subtotal })
715
+ }, null, 42, zl))), 256)),
716
+ z(t.$slots, "svg", { svg: v.value }, void 0, !0)
717
+ ], 14, jt)) : c("", !0),
718
+ t.$slots.watermark ? (o(), n("div", Ll, [
719
+ z(t.$slots, "watermark", j(Y({ isPrinting: r(Ae) || r(Ie) })), void 0, !0)
713
720
  ])) : c("", !0),
714
- J.value ? c("", !0) : (o(), N(r(ot), {
721
+ K.value ? c("", !0) : (o(), P(r(ut), {
715
722
  key: 6,
716
723
  config: {
717
724
  type: "donutEvolution",
@@ -728,53 +735,53 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
728
735
  }
729
736
  }
730
737
  }, null, 8, ["config"])),
731
- O.value > 1 && e.value.style.chart.zoom.show ? (o(), N(Mt, {
738
+ O.value > 1 && e.value.style.chart.zoom.show ? (o(), P(Bt, {
732
739
  ref_key: "slicerComponent",
733
- ref: E,
734
- key: `slicer_${pe.value}`,
740
+ ref: V,
741
+ key: `slicer_${xe.value}`,
735
742
  background: e.value.style.chart.zoom.color,
736
743
  borderColor: e.value.style.chart.backgroundColor,
737
744
  fontSize: e.value.style.chart.zoom.fontSize,
738
745
  useResetSlot: e.value.style.chart.zoom.useResetSlot,
739
- labelLeft: e.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(h.value.start)] || "",
740
- labelRight: e.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(h.value.end) - 1] || "",
746
+ labelLeft: N.value[0] ? N.value[0].text : "",
747
+ labelRight: N.value.at(-1) ? N.value.at(-1).text : "",
741
748
  textColor: e.value.style.chart.color,
742
749
  inputColor: e.value.style.chart.zoom.color,
743
750
  selectColor: e.value.style.chart.zoom.highlightColor,
744
751
  max: O.value,
745
752
  min: 0,
746
- valueStart: h.value.start,
747
- valueEnd: h.value.end,
748
- start: h.value.start,
749
- "onUpdate:start": a[0] || (a[0] = (l) => h.value.start = l),
750
- end: h.value.end,
751
- "onUpdate:end": a[1] || (a[1] = (l) => h.value.end = l),
753
+ valueStart: y.value.start,
754
+ valueEnd: y.value.end,
755
+ start: y.value.start,
756
+ "onUpdate:start": a[0] || (a[0] = (l) => y.value.start = l),
757
+ end: y.value.end,
758
+ "onUpdate:end": a[1] || (a[1] = (l) => y.value.end = l),
752
759
  refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
753
760
  refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : O.value,
754
761
  enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
755
762
  enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
756
- onReset: ge
763
+ onReset: fe
757
764
  }, {
758
765
  "reset-action": _(({ reset: l }) => [
759
- A(t.$slots, "reset-action", W(j({ reset: l })), void 0, !0)
766
+ z(t.$slots, "reset-action", j(Y({ reset: l })), void 0, !0)
760
767
  ]),
761
768
  _: 3
762
769
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : c("", !0),
763
- e.value.style.chart.legend.show ? (o(), N(Rt, {
764
- key: `legend_${Ce.value}`,
765
- legendSet: Oe.value,
766
- config: ft.value,
767
- onClickMarker: a[2] || (a[2] = ({ legend: l }) => se(l.uid))
770
+ e.value.style.chart.legend.show ? (o(), P(Ut, {
771
+ key: `legend_${_e.value}`,
772
+ legendSet: Ee.value,
773
+ config: mt.value,
774
+ onClickMarker: a[2] || (a[2] = ({ legend: l }) => re(l.uid))
768
775
  }, {
769
776
  item: _(({ legend: l, index: s }) => [
770
777
  w("div", {
771
- onClick: (u) => se(l.uid),
772
- style: Z(`opacity:${x.value.includes(l.uid) ? 0.5 : 1}`)
778
+ onClick: (u) => re(l.uid),
779
+ style: ee(`opacity:${x.value.includes(l.uid) ? 0.5 : 1}`)
773
780
  }, [
774
- ve(p(l.name) + ": " + p(r(ye)(
781
+ de(p(l.name) + ": " + p(r(ge)(
775
782
  e.value.style.chart.layout.dataLabels.formatter,
776
783
  l.value,
777
- r(le)({
784
+ r(ae)({
778
785
  p: e.value.style.chart.layout.dataLabels.prefix,
779
786
  v: l.value,
780
787
  s: e.value.style.chart.layout.dataLabels.suffix,
@@ -782,8 +789,8 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
782
789
  }),
783
790
  { datapoint: l, seriesIndex: s }
784
791
  )) + " ", 1),
785
- x.value.includes(l.uid) ? (o(), n("span", zl, " ( - % ) ")) : (o(), n("span", Ll, " (" + p(isNaN(l.value / Ee.value) ? "-" : r(le)({
786
- v: l.value / Ee.value * 100,
792
+ x.value.includes(l.uid) ? (o(), n("span", Nl, " ( - % ) ")) : (o(), n("span", Il, " (" + p(isNaN(l.value / Te.value) ? "-" : r(ae)({
793
+ v: l.value / Te.value * 100,
787
794
  s: "%",
788
795
  r: e.value.style.chart.legend.roundingPercentage
789
796
  })) + ") ", 1))
@@ -791,15 +798,15 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
791
798
  ]),
792
799
  _: 1
793
800
  }, 8, ["legendSet", "config"])) : c("", !0),
794
- A(t.$slots, "legend", { legend: Oe.value }, void 0, !0),
795
- t.$slots.source ? (o(), n("div", Il, [
796
- A(t.$slots, "source", {}, void 0, !0)
801
+ z(t.$slots, "legend", { legend: Ee.value }, void 0, !0),
802
+ t.$slots.source ? (o(), n("div", Pl, [
803
+ z(t.$slots, "source", {}, void 0, !0)
797
804
  ], 512)) : c("", !0),
798
- J.value ? (o(), N(r(Ze), {
805
+ K.value ? (o(), P(r(et), {
799
806
  key: 10,
800
807
  hideDetails: "",
801
808
  config: {
802
- open: B.value.showTable,
809
+ open: X.value.showTable,
803
810
  maxHeight: 1e4,
804
811
  body: {
805
812
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -812,20 +819,20 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
812
819
  }
813
820
  }, {
814
821
  content: _(() => [
815
- (o(), N(r(tt), {
816
- key: `table_${ke.value}`,
817
- colNames: R.value.colNames,
818
- head: R.value.head,
819
- body: R.value.body,
820
- config: R.value.config,
822
+ (o(), P(r(lt), {
823
+ key: `table_${Ce.value}`,
824
+ colNames: M.value.colNames,
825
+ head: M.value.head,
826
+ body: M.value.body,
827
+ config: M.value.config,
821
828
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
822
- onClose: a[3] || (a[3] = (l) => B.value.showTable = !1)
829
+ onClose: a[3] || (a[3] = (l) => X.value.showTable = !1)
823
830
  }, {
824
831
  th: _(({ th: l }) => [
825
- ve(p(l.name ?? l), 1)
832
+ de(p(l.name ?? l), 1)
826
833
  ]),
827
834
  td: _(({ td: l }) => [
828
- l.value === null ? (o(), n("span", Nl, "-")) : (o(), n("b", Pl, p(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + p(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + p(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
835
+ l.value === null ? (o(), n("span", Dl, "-")) : (o(), n("b", Fl, p(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + p(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + p(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
829
836
  w("span", null, p(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
830
837
  ]),
831
838
  _: 1
@@ -833,35 +840,35 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
833
840
  ]),
834
841
  _: 1
835
842
  }, 8, ["config"])) : c("", !0),
836
- e.value.style.chart.dialog.show ? (o(), N(r(et), {
843
+ e.value.style.chart.dialog.show ? (o(), P(r(tt), {
837
844
  key: 11,
838
845
  ref_key: "dialog",
839
- ref: ie,
846
+ ref: ce,
840
847
  onClose: a[4] || (a[4] = (l) => {
841
- V.value = null, ae.value = !1, K.value = null, g.value = null, G.value = null;
848
+ T.value = null, oe.value = !1, Q.value = null, g.value = null, W.value = null;
842
849
  }),
843
850
  backgroundColor: e.value.style.chart.dialog.backgroundColor,
844
851
  color: e.value.style.chart.dialog.color,
845
852
  headerBg: e.value.style.chart.dialog.header.backgroundColor,
846
853
  headerColor: e.value.style.chart.dialog.header.color,
847
- isFullscreen: M.value,
848
- fullscreenParent: oe.value
854
+ isFullscreen: U.value,
855
+ fullscreenParent: ue.value
849
856
  }, {
850
857
  title: _(() => [
851
- ve(p(e.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(V.value.index) + Number(h.value.start)]), 1)
858
+ de(p(N.value[Number(T.value.index)] ? N.value[Number(T.value.index)].text : ""), 1)
852
859
  ]),
853
860
  default: _(() => [
854
- V.value ? (o(), N(r(nt), {
861
+ T.value ? (o(), P(r(st), {
855
862
  key: 0,
856
- config: Me.value,
857
- dataset: Re.value
863
+ config: Ue.value,
864
+ dataset: Me.value
858
865
  }, null, 8, ["config", "dataset"])) : c("", !0)
859
866
  ]),
860
867
  _: 1
861
868
  }, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : c("", !0)
862
- ], 46, Xt));
869
+ ], 46, Wt));
863
870
  }
864
- }, Xl = /* @__PURE__ */ Bt(Dl, [["__scopeId", "data-v-8140cd84"]]);
871
+ }, jl = /* @__PURE__ */ Gt(Ol, [["__scopeId", "data-v-4d8857ae"]]);
865
872
  export {
866
- Xl as default
873
+ jl as default
867
874
  };