vue-data-ui 2.16.5 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README.md +85 -55
  2. package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
  17. package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/img-Y_hYz-ZC.js +27 -0
  19. package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1098 -162
  23. package/dist/types/vue-data-ui.d.ts +1098 -162
  24. package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-ButWuZVm.js → usePrinter-DDHcrl0A.js} +2 -2
  26. package/dist/vue-data-ui-CIWxgKjd.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
  29. package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
  31. package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
  33. package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
  34. package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
  35. package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
  36. package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
  37. package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
  38. package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
  42. package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
  43. package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
  44. package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
  45. package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
  46. package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
  47. package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
  48. package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
  50. package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
  51. package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
  54. package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
  55. package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
  56. package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
  57. package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
  58. package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
  59. package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
  60. package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
  61. package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
  63. package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
  64. package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
  65. package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
  66. package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
  75. package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
  76. package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
  79. package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
  80. package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
  82. package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
  83. package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
  84. package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
  85. package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
  86. package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
  87. package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
  88. package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
  89. package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
  90. package/package.json +1 -1
  91. package/dist/img-CTC5DLKL.js +0 -20
  92. package/dist/vue-data-ui-BB8Upnjm.js +0 -301
@@ -1,25 +1,26 @@
1
- import { defineAsyncComponent as T, computed as m, ref as h, onMounted as kt, watch as Xe, createElementBlock as n, openBlock as a, unref as r, normalizeStyle as ee, normalizeClass as P, createBlock as F, createCommentVNode as c, renderSlot as z, createSlots as Ct, withCtx as w, normalizeProps as j, guardReactiveProps as Y, createVNode as _t, createElementVNode as L, Fragment as $, renderList as I, toDisplayString as x, createTextVNode as de, nextTick as q } from "vue";
2
- import { u as wt, o as Lt, e as te, g as St, c as Ge, t as At, p as le, a as zt, C as We, b as $t, d as he, G as It, D as je, m as ye, X as Nt, s as J, H as Ft, i as ge, f as ae, I as Pt, j as Dt, k as Ot, n as Ye, q as Tt, r as Et, J as qe, K as Ht } from "./index-CZNLCg7T.js";
3
- import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
4
- import { u as Je } from "./useNestedProp-BcPDA6Xr.js";
5
- import { u as Mt } from "./usePrinter-ButWuZVm.js";
6
- import { u as Rt } from "./useTimeLabels-Mrr0jrpL.js";
7
- import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
8
- import Bt from "./Legend-DoxQwq_u.js";
9
- import { S as Xt } from "./Slicer-Bd0AkciG.js";
10
- import Gt from "./Title-BQLtfM0P.js";
11
- import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"], Jt = ["id"], Kt = ["stop-color"], Qt = ["stop-color"], Zt = ["id"], el = ["stop-color"], tl = ["stop-color"], ll = ["stop-color"], al = { key: 1 }, ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nl = { key: 0 }, sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], il = ["x", "y", "font-size", "fill", "font-weight"], cl = {
1
+ import { defineAsyncComponent as T, computed as m, ref as h, onMounted as Ct, watch as Ge, createElementBlock as n, openBlock as o, unref as r, normalizeStyle as te, normalizeClass as P, createBlock as F, createCommentVNode as c, renderSlot as z, createSlots as _t, withCtx as w, normalizeProps as Y, guardReactiveProps as q, createVNode as wt, createElementVNode as S, Fragment as $, renderList as I, toDisplayString as x, createTextVNode as de, nextTick as J } from "vue";
2
+ import { u as St, o as Lt, e as le, g as At, c as We, t as zt, p as ae, a as $t, C as je, b as It, d as he, G as Nt, D as Ye, m as ye, X as Ft, s as K, H as Pt, i as ge, f as oe, I as Dt, j as Ot, k as Tt, n as qe, q as Et, r as Ht, J as Je, K as Vt } from "./index-pPGk-uhD.js";
3
+ import { u as Mt } from "./useChartAccessibility-9icAAmYg.js";
4
+ import { u as Ke } from "./useNestedProp-DjACxgdZ.js";
5
+ import { u as Rt } from "./usePrinter-DDHcrl0A.js";
6
+ import { u as Ut } from "./useTimeLabels-Mrr0jrpL.js";
7
+ import { u as Bt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import Xt from "./Legend-Bxlv67uY.js";
9
+ import { S as Gt } from "./Slicer-CL6-MRI6.js";
10
+ import Wt from "./Title-B-2bV0SW.js";
11
+ import jt from "./img-Y_hYz-ZC.js";
12
+ import { _ as Yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"], Qt = ["id"], Zt = ["stop-color"], el = ["stop-color"], tl = ["id"], ll = ["stop-color"], al = ["stop-color"], ol = ["stop-color"], ul = { key: 1 }, nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], rl = { key: 0 }, il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], vl = ["x", "y", "font-size", "fill", "font-weight"], dl = {
13
14
  key: 3,
14
15
  class: /* @__PURE__ */ P({ "donut-opacity": !0 })
15
- }, vl = { key: 0 }, dl = ["text-anchor", "font-size", "fill", "transform"], hl = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], yl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], gl = { key: 1 }, fl = ["cx", "cy", "r", "fill"], ml = { key: 0 }, bl = { key: 0 }, pl = ["d", "stroke"], xl = ["text-anchor", "x", "y", "fill"], kl = ["cx", "cy", "r", "fill"], Cl = { key: 0 }, _l = ["cx", "cy", "fill"], wl = { key: 1 }, Ll = ["d", "fill", "stroke"], Sl = { key: 2 }, Al = ["d", "fill", "stroke"], zl = ["x", "y", "font-size", "fill"], $l = ["x", "y", "width", "height", "fill"], Il = ["x", "y", "width", "height", "onMouseenter", "onClick"], Nl = {
16
+ }, hl = { key: 0 }, yl = ["text-anchor", "font-size", "fill", "transform"], gl = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], fl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ml = { key: 1 }, bl = ["cx", "cy", "r", "fill"], pl = { key: 0 }, xl = { key: 0 }, kl = ["d", "stroke"], Cl = ["text-anchor", "x", "y", "fill"], _l = ["cx", "cy", "r", "fill"], wl = { key: 0 }, Sl = ["cx", "cy", "fill"], Ll = { key: 1 }, Al = ["d", "fill", "stroke"], zl = { key: 2 }, $l = ["d", "fill", "stroke"], Il = ["x", "y", "font-size", "fill"], Nl = ["x", "y", "width", "height", "fill"], Fl = ["x", "y", "width", "height", "onMouseenter", "onClick"], Pl = {
16
17
  key: 5,
17
18
  class: "vue-data-ui-watermark"
18
- }, Fl = ["onClick"], Pl = { key: 0 }, Dl = { key: 1 }, Ol = {
19
+ }, Dl = ["onClick"], Ol = { key: 0 }, Tl = { key: 1 }, El = {
19
20
  key: 9,
20
21
  ref: "source",
21
22
  dir: "auto"
22
- }, Tl = { key: 0 }, El = { key: 1 }, Hl = {
23
+ }, Hl = { key: 0 }, Vl = { key: 1 }, Ml = {
23
24
  __name: "vue-ui-donut-evolution",
24
25
  props: {
25
26
  config: {
@@ -36,8 +37,8 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
36
37
  }
37
38
  },
38
39
  emits: ["selectLegend"],
39
- setup(Ke, { expose: Qe, emit: Ze }) {
40
- const et = T(() => import("./vue-ui-accordion-CO4hmfuX.js")), tt = T(() => import("./BaseDraggableDialog-DloHiD4h.js")), lt = T(() => import("./DataTable-B6MXw9cG.js")), at = T(() => import("./PackageVersion-DCreTQN4.js")), ot = T(() => import("./PenAndPaper-BS60tkQN.js")), ut = T(() => import("./vue-ui-skeleton-D9B8DY_k.js")), nt = T(() => import("./UserOptions-DMGkAAIO.js")), st = T(() => import("./vue-ui-donut-BxSTOFDt.js")), { vue_ui_donut_evolution: rt } = wt(), b = Ke, K = m(() => !!b.dataset && b.dataset.length), y = h({
40
+ setup(Qe, { expose: Ze, emit: et }) {
41
+ const tt = T(() => import("./vue-ui-accordion-CVnA550V.js")), lt = T(() => import("./BaseDraggableDialog-ChCkcmj_.js")), at = T(() => import("./DataTable-D0VYDhfx.js")), ot = T(() => import("./PackageVersion-5TR4ocqp.js")), ut = T(() => import("./PenAndPaper-D6AqipIO.js")), nt = T(() => import("./vue-ui-skeleton-DJPjyNYn.js")), st = T(() => import("./UserOptions-Dd34lEKb.js")), rt = T(() => import("./vue-ui-donut-CKa7nFjt.js")), { vue_ui_donut_evolution: it } = St(), b = Qe, Q = m(() => !!b.dataset && b.dataset.length), y = h({
41
42
  start: 0,
42
43
  end: Math.max(...b.dataset.map((t) => t.values.length))
43
44
  });
@@ -46,64 +47,64 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
46
47
  }
47
48
  const H = h(null);
48
49
  async function me() {
49
- (e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && H.value ? (e.value.style.chart.zoom.startIndex !== null && (await q(), await q(), H.value && H.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await q(), await q(), H.value && H.value.setEndValue(it(e.value.style.chart.zoom.endIndex + 1)))) : (y.value = {
50
+ (e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && H.value ? (e.value.style.chart.zoom.startIndex !== null && (await J(), await J(), H.value && H.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await J(), await J(), H.value && H.value.setEndValue(ct(e.value.style.chart.zoom.endIndex + 1)))) : (y.value = {
50
51
  start: 0,
51
52
  end: O.value
52
53
  }, xe.value += 1);
53
54
  }
54
- function it(t) {
55
- const o = O.value;
56
- return t > o ? o : 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;
55
+ function ct(t) {
56
+ const a = O.value;
57
+ 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;
57
58
  }
58
- kt(() => {
59
+ Ct(() => {
59
60
  be();
60
61
  });
61
62
  function be() {
62
- Lt(b.dataset) ? te({
63
+ Lt(b.dataset) ? le({
63
64
  componentName: "VueUiDonutEvolution",
64
65
  type: "dataset"
65
- }) : b.dataset.length && b.dataset.forEach((t, o) => {
66
- St({
66
+ }) : b.dataset.length && b.dataset.forEach((t, a) => {
67
+ At({
67
68
  datasetObject: t,
68
69
  requiredAttributes: ["name", "values"]
69
70
  }).forEach((l) => {
70
- te({
71
+ le({
71
72
  componentName: "VueUiDonutEvolution",
72
73
  type: "datasetSerieAttribute",
73
74
  property: l,
74
- index: o
75
+ index: a
75
76
  });
76
77
  });
77
78
  }), me();
78
79
  }
79
- const V = h(Ge()), k = h([]), g = h(null), Q = h(null), oe = h(!1), E = 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
+ const V = h(We()), k = h([]), g = h(null), Z = h(null), ue = h(!1), E = h(null), X = h(null), vt = h(null), pe = h(0), xe = h(0), ke = h(0), Ce = h(0), _e = h(0), we = et, e = m({
80
81
  get: () => ze(),
81
82
  set: (t) => t
82
- }), { userOptionsVisible: ne, setUserOptionsVisibility: Le, keepUserOptionState: Se } = Ut({ config: e.value }), { svgRef: Ae } = Vt({ config: e.value.style.chart.title });
83
+ }), { userOptionsVisible: ne, setUserOptionsVisibility: Se, keepUserOptionState: Le } = Bt({ config: e.value }), { svgRef: Ae } = Mt({ config: e.value.style.chart.title });
83
84
  function ze() {
84
- const t = Je({
85
+ const t = Ke({
85
86
  userConfig: b.config,
86
- defaultConfig: rt
87
+ defaultConfig: it
87
88
  });
88
- let o = {};
89
- return t.theme ? o = {
90
- ...Je({
91
- userConfig: zt.vue_ui_donut_evolution[t.theme] || b.config,
89
+ let a = {};
90
+ return t.theme ? a = {
91
+ ...Ke({
92
+ userConfig: $t.vue_ui_donut_evolution[t.theme] || b.config,
92
93
  defaultConfig: t
93
94
  }),
94
- customPalette: At[t.theme] || le
95
- } : o = t, b.config && We(b.config, "style.chart.zoom.startIndex") ? o.style.chart.zoom.startIndex = b.config.style.chart.zoom.startIndex : o.style.chart.zoom.startIndex = null, b.config && We(b.config, "style.chart.zoom.endIndex") ? o.style.chart.zoom.endIndex = b.config.style.chart.zoom.endIndex : o.style.chart.zoom.endIndex = null, o;
95
+ customPalette: zt[t.theme] || ae
96
+ } : a = t, b.config && je(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 && je(b.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = b.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
96
97
  }
97
- Xe(() => b.config, (t) => {
98
- e.value = ze(), 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) => {
98
+ Ge(() => b.config, (t) => {
99
+ e.value = ze(), ne.value = !e.value.userOptions.showOnChartHover, be(), ke.value += 1, Ce.value += 1, _e.value += 1, G.value.showTable = e.value.table.show;
100
+ }, { deep: !0 }), Ge(() => b.dataset, (t) => {
100
101
  fe();
101
102
  }, { deep: !0 });
102
- const { isPrinting: $e, isImaging: Ie, generatePdf: Ne, generateImage: Fe } = Mt({
103
+ const { isPrinting: $e, isImaging: Ie, generatePdf: Ne, generateImage: Fe } = Rt({
103
104
  elementId: V.value,
104
105
  fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
105
106
  options: e.value.userOptions.print
106
- }), vt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), dt = m(() => $t(e.value.customPalette)), X = h({
107
+ }), dt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), ht = m(() => It(e.value.customPalette)), G = h({
107
108
  showTable: e.value.table.show
108
109
  }), i = m(() => ({
109
110
  top: e.value.style.chart.layout.padding.top,
@@ -111,37 +112,37 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
111
112
  bottom: e.value.style.chart.layout.padding.bottom,
112
113
  left: e.value.style.chart.layout.padding.left
113
114
  })), v = m(() => {
114
- const t = e.value.style.chart.layout.height, o = e.value.style.chart.layout.width, l = t - i.value.top - i.value.bottom, s = o - i.value.left - i.value.right;
115
+ 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;
115
116
  return {
116
117
  absoluteHeight: t,
117
- absoluteWidth: o,
118
+ absoluteWidth: a,
118
119
  centerX: i.value.left + s / 2,
119
120
  centerY: i.value.top + l / 2,
120
121
  height: l,
121
122
  width: s
122
123
  };
123
- }), D = m(() => (b.dataset.forEach((t, o) => {
124
- [null, void 0].includes(t.name) && te({
124
+ }), D = m(() => (b.dataset.forEach((t, a) => {
125
+ [null, void 0].includes(t.name) && le({
125
126
  componentName: "VueUiDonutEvolution",
126
127
  type: "datasetSerieAttribute",
127
128
  property: "name",
128
- index: o
129
- }), [null, void 0].includes(t.values) && te({
129
+ index: a
130
+ }), [null, void 0].includes(t.values) && le({
130
131
  componentName: "VueUiDonutEvolution",
131
132
  type: "datasetSerieAttribute",
132
133
  property: "values",
133
- index: o
134
+ index: a
134
135
  });
135
- }), b.dataset.map((t, o) => ({
136
+ }), b.dataset.map((t, a) => ({
136
137
  ...t,
137
- values: It(t.values),
138
- color: he(t.color) || dt.value[o] || le[o] || le[o % le.length],
138
+ values: Nt(t.values),
139
+ color: he(t.color) || ht.value[a] || ae[a] || ae[a % ae.length],
139
140
  length: (t.values || []).length,
140
- uid: Ge()
141
- })))), G = m(() => D.value.filter((t) => !k.value.includes(t.uid)).map((t) => ({
141
+ uid: We()
142
+ })))), W = m(() => D.value.filter((t) => !k.value.includes(t.uid)).map((t) => ({
142
143
  ...t,
143
- values: t.values.filter((o, l) => l >= y.value.start && l <= y.value.end)
144
- }))), O = m(() => Math.max(...G.value.map((t) => t.length))), S = m(() => Rt({
144
+ values: t.values.filter((a, l) => l >= y.value.start && l <= y.value.end)
145
+ }))), O = m(() => Math.max(...W.value.map((t) => t.length))), L = m(() => Ut({
145
146
  values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
146
147
  maxDatapoints: O.value,
147
148
  formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
@@ -150,7 +151,7 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
150
151
  })), p = m(() => v.value.width / (y.value.end - y.value.start)), C = m(() => {
151
152
  const t = [];
152
153
  for (let u = 0; u < y.value.end - y.value.start; u += 1) {
153
- const f = G.value.map((N) => N.values[u] ?? null), d = f.filter((N) => [void 0, null].includes(N)).length === f.length, _ = f.reduce((N, A) => N + A, 0), ve = f.map((N) => N / _), B = i.value.left + p.value * u + p.value / 2;
154
+ const f = W.value.map((N) => N.values[u] ?? null), d = f.filter((N) => [void 0, null].includes(N)).length === f.length, _ = f.reduce((N, A) => N + A, 0), ve = f.map((N) => N / _), B = i.value.left + p.value * u + p.value / 2;
154
155
  t.push({
155
156
  index: u,
156
157
  percentages: ve,
@@ -159,9 +160,9 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
159
160
  x: B
160
161
  });
161
162
  }
162
- const o = 0, l = Math.max(...t.map((u) => u.subtotal)), s = t.length === 1 ? l * 2 : l;
163
+ const a = 0, l = Math.max(...t.map((u) => u.subtotal)), s = t.length === 1 ? l * 2 : l;
163
164
  return t.map((u, f) => {
164
- const d = p.value / 2 * 0.7, _ = d > v.value.width / 16 ? v.value.width / 16 : d, ve = g.value === u.index ? v.value.width / 16 : _, B = t.length > 4 ? d * 2 : d * 2 > p.value / 2 * 0.7 ? p.value / 2 * 0.7 : d * 2, N = v.value.absoluteHeight - i.value.bottom - v.value.height * u.subtotal / je(o, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
165
+ const d = p.value / 2 * 0.7, _ = d > v.value.width / 16 ? v.value.width / 16 : d, ve = g.value === u.index ? v.value.width / 16 : _, B = t.length > 4 ? d * 2 : d * 2 > p.value / 2 * 0.7 ? p.value / 2 * 0.7 : d * 2, N = v.value.absoluteHeight - i.value.bottom - v.value.height * u.subtotal / Ye(a, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
165
166
  return {
166
167
  ...u,
167
168
  y: N,
@@ -169,21 +170,21 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
169
170
  activeRadius: ve,
170
171
  hoverRadius: B,
171
172
  donut: ye({
172
- series: G.value.map((A, Be) => ({
173
+ series: W.value.map((A, Xe) => ({
173
174
  color: A.color,
174
175
  name: A.name,
175
176
  value: A.values[f] ?? 0
176
177
  }))
177
178
  }, u.x, N, _, _, 1.99999, 2, 1, 360, 105.25, _ / 2),
178
179
  donutHover: ye({
179
- series: G.value.map((A, Be) => ({
180
+ series: W.value.map((A, Xe) => ({
180
181
  color: A.color,
181
182
  name: A.name,
182
183
  value: A.values[f] ?? 0
183
184
  }))
184
185
  }, u.x, N, B, B, 1.99999, 2, 1, 360, 105.25, B / 2),
185
186
  donutFocus: ye({
186
- series: G.value.map((A, Be) => ({
187
+ series: W.value.map((A, Xe) => ({
187
188
  color: A.color,
188
189
  name: A.name,
189
190
  value: A.values[f] ?? 0
@@ -192,17 +193,17 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
192
193
  };
193
194
  });
194
195
  });
195
- function Pe(t, o, l) {
196
+ function Pe(t, a, l) {
196
197
  return ge(
197
198
  e.value.style.chart.layout.dataLabels.formatter,
198
199
  t,
199
- ae({
200
+ oe({
200
201
  p: e.value.style.chart.layout.dataLabels.prefix,
201
202
  v: t,
202
203
  s: e.value.style.chart.layout.dataLabels.suffix,
203
204
  r: e.value.style.chart.layout.dataLabels.rounding
204
205
  }),
205
- { datapoint: o, index: l }
206
+ { datapoint: a, index: l }
206
207
  );
207
208
  }
208
209
  const se = m(() => ({
@@ -210,40 +211,40 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
210
211
  min: 0
211
212
  })), M = m(() => {
212
213
  const t = C.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);
214
+ return Ye(se.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
214
215
  });
215
- function ht(t) {
216
+ function yt(t) {
216
217
  return t / M.value.max;
217
218
  }
218
- const yt = m(() => M.value.ticks.map((t) => ({
219
- y: v.value.absoluteHeight - i.value.bottom - v.value.height * ht(t),
219
+ const gt = m(() => M.value.ticks.map((t) => ({
220
+ y: v.value.absoluteHeight - i.value.bottom - v.value.height * yt(t),
220
221
  value: t
221
222
  })));
222
- function gt(t, o) {
223
- return isNaN(t.value / qe(o, "value")) ? 0 : (t.value / qe(o, "value") * 100).toFixed(0) + "%";
223
+ function ft(t, a) {
224
+ return isNaN(t.value / Je(a, "value")) ? 0 : (t.value / Je(a, "value") * 100).toFixed(0) + "%";
224
225
  }
225
226
  function De() {
226
- g.value = null, Q.value = null;
227
+ g.value = null, Z.value = null;
227
228
  }
228
- function ft(t) {
229
- g.value = t.index, Q.value = t;
229
+ function mt(t) {
230
+ g.value = t.index, Z.value = t;
230
231
  }
231
- const W = h(null);
232
- function Oe(t, o) {
233
- !t.subtotal || !e.value.style.chart.dialog.show || (Q.value = null, g.value = null, oe.value = !0, E.value = t, xt(t), [null, void 0].includes(o) || (W.value = o));
232
+ const j = h(null);
233
+ function Oe(t, a) {
234
+ !t.subtotal || !e.value.style.chart.dialog.show || (Z.value = null, g.value = null, ue.value = !0, E.value = t, xt(t), [null, void 0].includes(a) || (j.value = a));
234
235
  }
235
- const Te = m(() => D.value.map((t, o) => ({
236
+ const Te = m(() => D.value.map((t, a) => ({
236
237
  name: t.name,
237
238
  value: t.values.slice(y.value.start, y.value.end).reduce((l, s) => l + s, 0),
238
239
  shape: "circle",
239
240
  uid: t.uid,
240
241
  color: t.color
241
- })).sort((t, o) => o.value - t.value).map((t) => ({
242
+ })).sort((t, a) => a.value - t.value).map((t) => ({
242
243
  ...t,
243
244
  opacity: k.value.includes(t.uid) ? 0.5 : 1,
244
245
  segregate: () => re(t.uid),
245
246
  isSegregated: k.value.includes(t.uid)
246
- }))), Ee = m(() => C.value.map((t) => t.subtotal).reduce((t, o) => t + o, 0)), mt = m(() => ({
247
+ }))), Ee = m(() => C.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), bt = m(() => ({
247
248
  cy: "donut-div-legend",
248
249
  backgroundColor: e.value.style.chart.legend.backgroundColor,
249
250
  color: e.value.style.chart.legend.color,
@@ -253,22 +254,22 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
253
254
  }));
254
255
  function re(t) {
255
256
  if (k.value.includes(t))
256
- k.value = k.value.filter((o) => o !== t), we("selectLegend", null);
257
+ k.value = k.value.filter((a) => a !== t), we("selectLegend", null);
257
258
  else {
258
259
  if (k.value.length === D.value.length - 1) return;
259
- k.value.push(t), we("selectLegend", D.value.find((o) => o.uid === t));
260
+ k.value.push(t), we("selectLegend", D.value.find((a) => a.uid === t));
260
261
  }
261
- E.value && Oe(C.value.find((o, l) => l === W.value));
262
+ E.value && Oe(C.value.find((a, l) => l === j.value));
262
263
  }
263
264
  const R = m(() => {
264
265
  const t = [""].concat(D.value.filter((u) => !k.value.includes(u.uid)).map((u) => ({
265
266
  name: u.name,
266
267
  color: u.color
267
268
  }))).concat(["Σ"]);
268
- let o = [];
269
+ let a = [];
269
270
  for (let u = 0; u < O.value; u += 1) {
270
271
  const f = D.value.filter((d) => !k.value.includes(d.uid)).map((d) => d.values[u] ?? 0).reduce((d, _) => d + _, 0);
271
- o.push([S[u] ? S[u].text : "-"].concat(D.value.filter((d) => !k.value.includes(d.uid)).map((d) => ({
272
+ a.push([L[u] ? L[u].text : "-"].concat(D.value.filter((d) => !k.value.includes(d.uid)).map((d) => ({
272
273
  value: d.values[u] ?? 0,
273
274
  percentage: d.values[u] ? d.values[u] / f * 100 : 0
274
275
  }))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(f.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
@@ -288,80 +289,87 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
288
289
  }, s = [
289
290
  e.value.table.columnNames.period
290
291
  ].concat(D.value.filter((u) => !k.value.includes(u.uid)).map((u) => u.name)).concat(e.value.table.columnNames.total);
291
- return { head: t, body: o, config: l, colNames: s };
292
+ return { head: t, body: a, config: l, colNames: s };
292
293
  });
293
- function bt() {
294
+ function pt() {
294
295
  return D.value;
295
296
  }
296
297
  function He(t = null) {
297
- q(() => {
298
- const o = [[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((_) => _.value ?? _))], u = o.concat([l]).concat(s), f = Tt(u);
299
- t ? t(f) : Et({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
298
+ J(() => {
299
+ 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((_) => _.value ?? _))], u = a.concat([l]).concat(s), f = Et(u);
300
+ t ? t(f) : Ht({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
300
301
  });
301
302
  }
302
303
  const U = h(!1);
303
- function pt(t) {
304
+ function Ve(t) {
304
305
  U.value = t, pe.value += 1;
305
306
  }
306
- function Ve() {
307
- X.value.showTable = !X.value.showTable;
307
+ function Me() {
308
+ G.value.showTable = !G.value.showTable;
308
309
  }
309
- const Z = h(!1);
310
+ const ee = h(!1);
310
311
  function ie() {
311
- Z.value = !Z.value;
312
+ ee.value = !ee.value;
312
313
  }
313
- function Me(t) {
314
+ function Re(t) {
314
315
  return t.proportion * 100 > e.value.style.chart.donuts.hover.hideLabelsUnderValue;
315
316
  }
316
- const Re = h([]), Ue = h({}), ce = h(null);
317
+ const Ue = h([]), Be = h({}), ce = h(null);
317
318
  function xt(t) {
318
- Re.value = t.donut.map((o) => ({
319
- name: o.name,
320
- values: [o.value],
321
- color: o.color
322
- })), Ue.value = Ht({
319
+ Ue.value = t.donut.map((a) => ({
320
+ name: a.name,
321
+ values: [a.value],
322
+ color: a.color
323
+ })), Be.value = Vt({
323
324
  ...e.value.style.chart.dialog.donutChart,
324
325
  responsive: !0,
325
326
  theme: e.value.theme
326
327
  }), ce.value && ce.value.open();
327
328
  }
328
- return Qe({
329
- getData: bt,
329
+ async function kt({ scale: t = 2 } = {}) {
330
+ if (!X.value) return;
331
+ const { imageUri: a, base64: l } = await jt({ domElement: X.value, base64: !0, img: !0, scale: t });
332
+ return { imageUri: a, base64: l };
333
+ }
334
+ return Ze({
335
+ getData: pt,
336
+ getImage: kt,
330
337
  generatePdf: Ne,
331
338
  generateCsv: He,
332
339
  generateImage: Fe,
333
- toggleTable: Ve,
334
- toggleAnnotator: ie
335
- }), (t, o) => (a(), n("div", {
340
+ toggleTable: Me,
341
+ toggleAnnotator: ie,
342
+ toggleFullscreen: Ve
343
+ }), (t, a) => (o(), n("div", {
336
344
  ref_key: "donutEvolutionChart",
337
- ref: ue,
345
+ ref: X,
338
346
  class: P(`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}`),
347
+ style: te(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
340
348
  id: V.value,
341
- onMouseenter: o[5] || (o[5] = () => r(Le)(!0)),
342
- onMouseleave: o[6] || (o[6] = () => r(Le)(!1))
349
+ onMouseenter: a[5] || (a[5] = () => r(Se)(!0)),
350
+ onMouseleave: a[6] || (a[6] = () => r(Se)(!1))
343
351
  }, [
344
- e.value.userOptions.buttons.annotator ? (a(), F(r(ot), {
352
+ e.value.userOptions.buttons.annotator ? (o(), F(r(ut), {
345
353
  key: 0,
346
354
  svgRef: r(Ae),
347
355
  backgroundColor: e.value.style.chart.backgroundColor,
348
356
  color: e.value.style.chart.color,
349
- active: Z.value,
357
+ active: ee.value,
350
358
  onClose: ie
351
359
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
352
- vt.value ? (a(), n("div", {
360
+ dt.value ? (o(), n("div", {
353
361
  key: 1,
354
362
  ref_key: "noTitle",
355
- ref: ct,
363
+ ref: vt,
356
364
  class: "vue-data-ui-no-title-space",
357
365
  style: "height:36px; width: 100%;background:transparent"
358
366
  }, null, 512)) : c("", !0),
359
- e.value.style.chart.title.text ? (a(), n("div", {
367
+ e.value.style.chart.title.text ? (o(), n("div", {
360
368
  key: 2,
361
369
  style: "width:100%;background:transparent;padding-bottom:24px",
362
370
  onMouseleave: De
363
371
  }, [
364
- (a(), F(Gt, {
372
+ (o(), F(Wt, {
365
373
  key: `title_${ke.value}`,
366
374
  config: {
367
375
  title: {
@@ -375,7 +383,7 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
375
383
  }
376
384
  }, null, 8, ["config"]))
377
385
  ], 32)) : c("", !0),
378
- e.value.userOptions.show && K.value && (r(Se) || r(ne)) ? (a(), F(r(nt), {
386
+ e.value.userOptions.show && Q.value && (r(Le) || r(ne)) ? (o(), F(r(st), {
379
387
  ref: "details",
380
388
  key: `user_options_${pe.value}`,
381
389
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -390,25 +398,26 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
390
398
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
391
399
  isFullscreen: U.value,
392
400
  titles: { ...e.value.userOptions.buttonTitles },
393
- chartElement: ue.value,
401
+ chartElement: X.value,
394
402
  position: e.value.userOptions.position,
395
403
  hasAnnotator: e.value.userOptions.buttons.annotator,
396
- isAnnotation: Z.value,
404
+ isAnnotation: ee.value,
397
405
  callbacks: e.value.userOptions.callbacks,
398
- onToggleFullscreen: pt,
406
+ printScale: e.value.userOptions.print.scale,
407
+ onToggleFullscreen: Ve,
399
408
  onGeneratePdf: r(Ne),
400
409
  onGenerateCsv: He,
401
410
  onGenerateImage: r(Fe),
402
- onToggleTable: Ve,
411
+ onToggleTable: Me,
403
412
  onToggleAnnotator: ie,
404
- style: ee({
405
- visibility: r(Se) ? r(ne) ? "visible" : "hidden" : "visible"
413
+ style: te({
414
+ visibility: r(Le) ? r(ne) ? "visible" : "hidden" : "visible"
406
415
  })
407
- }, Ct({ _: 2 }, [
416
+ }, _t({ _: 2 }, [
408
417
  t.$slots.menuIcon ? {
409
418
  name: "menuIcon",
410
419
  fn: w(({ isOpen: l, color: s }) => [
411
- z(t.$slots, "menuIcon", j(Y({ isOpen: l, color: s })), void 0, !0)
420
+ z(t.$slots, "menuIcon", Y(q({ isOpen: l, color: s })), void 0, !0)
412
421
  ]),
413
422
  key: "0"
414
423
  } : void 0,
@@ -443,29 +452,29 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
443
452
  t.$slots.optionFullscreen ? {
444
453
  name: "optionFullscreen",
445
454
  fn: w(({ toggleFullscreen: l, isFullscreen: s }) => [
446
- z(t.$slots, "optionFullscreen", j(Y({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
455
+ z(t.$slots, "optionFullscreen", Y(q({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
447
456
  ]),
448
457
  key: "5"
449
458
  } : void 0,
450
459
  t.$slots.optionAnnotator ? {
451
460
  name: "optionAnnotator",
452
461
  fn: w(({ toggleAnnotator: l, isAnnotator: s }) => [
453
- z(t.$slots, "optionAnnotator", j(Y({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
462
+ z(t.$slots, "optionAnnotator", Y(q({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
454
463
  ]),
455
464
  key: "6"
456
465
  } : void 0
457
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
458
- K.value ? (a(), n("svg", {
466
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
467
+ Q.value ? (o(), n("svg", {
459
468
  key: 4,
460
469
  ref_key: "svgRef",
461
470
  ref: Ae,
462
- xmlns: r(Nt),
471
+ xmlns: r(Ft),
463
472
  class: P({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
464
473
  viewBox: `0 0 ${v.value.absoluteWidth} ${v.value.absoluteHeight}`,
465
- style: ee(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
474
+ style: te(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
466
475
  }, [
467
- _t(r(at)),
468
- t.$slots["chart-background"] ? (a(), n("foreignObject", {
476
+ wt(r(ot)),
477
+ t.$slots["chart-background"] ? (o(), n("foreignObject", {
469
478
  key: 0,
470
479
  x: i.value.left,
471
480
  y: i.value.top,
@@ -476,43 +485,43 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
476
485
  }
477
486
  }, [
478
487
  z(t.$slots, "chart-background", {}, void 0, !0)
479
- ], 8, qt)) : c("", !0),
480
- L("defs", null, [
481
- L("linearGradient", {
488
+ ], 8, Kt)) : c("", !0),
489
+ S("defs", null, [
490
+ S("linearGradient", {
482
491
  id: `hover_${V.value}`,
483
492
  x1: "0%",
484
493
  y1: "0%",
485
494
  x2: "0%",
486
495
  y2: "100%"
487
496
  }, [
488
- L("stop", {
497
+ S("stop", {
489
498
  offset: "0%",
490
- "stop-color": r(J)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
491
- }, null, 8, Kt),
492
- L("stop", {
499
+ "stop-color": r(K)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
500
+ }, null, 8, Zt),
501
+ S("stop", {
493
502
  offset: "100%",
494
- "stop-color": r(J)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
495
- }, null, 8, Qt)
496
- ], 8, Jt),
497
- L("radialGradient", {
503
+ "stop-color": r(K)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
504
+ }, null, 8, el)
505
+ ], 8, Qt),
506
+ S("radialGradient", {
498
507
  id: `focus_${V.value}`
499
508
  }, [
500
- L("stop", {
509
+ S("stop", {
501
510
  offset: "0%",
502
- "stop-color": r(J)(r(he)(e.value.style.chart.backgroundColor), 0)
503
- }, null, 8, el),
504
- L("stop", {
511
+ "stop-color": r(K)(r(he)(e.value.style.chart.backgroundColor), 0)
512
+ }, null, 8, ll),
513
+ S("stop", {
505
514
  offset: "77%",
506
- "stop-color": r(J)("#FFFFFF", 30)
507
- }, null, 8, tl),
508
- L("stop", {
515
+ "stop-color": r(K)("#FFFFFF", 30)
516
+ }, null, 8, al),
517
+ S("stop", {
509
518
  offset: "100%",
510
- "stop-color": r(J)(r(he)(e.value.style.chart.backgroundColor), 0)
511
- }, null, 8, ll)
512
- ], 8, Zt)
519
+ "stop-color": r(K)(r(he)(e.value.style.chart.backgroundColor), 0)
520
+ }, null, 8, ol)
521
+ ], 8, tl)
513
522
  ]),
514
- e.value.style.chart.layout.grid.show ? (a(), n("g", al, [
515
- L("line", {
523
+ e.value.style.chart.layout.grid.show ? (o(), n("g", ul, [
524
+ S("line", {
516
525
  x1: i.value.left,
517
526
  x2: i.value.left,
518
527
  y1: i.value.top,
@@ -520,8 +529,8 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
520
529
  stroke: e.value.style.chart.layout.grid.stroke,
521
530
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
522
531
  "stroke-linecap": "round"
523
- }, null, 8, ol),
524
- L("line", {
532
+ }, null, 8, nl),
533
+ S("line", {
525
534
  x1: i.value.left,
526
535
  x2: v.value.absoluteWidth - i.value.right,
527
536
  y1: v.value.absoluteHeight - i.value.bottom,
@@ -529,9 +538,9 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
529
538
  stroke: e.value.style.chart.layout.grid.stroke,
530
539
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
531
540
  "stroke-linecap": "round"
532
- }, null, 8, ul),
533
- e.value.style.chart.layout.grid.showVerticalLines ? (a(), n("g", nl, [
534
- (a(!0), n($, null, I(y.value.end - y.value.start, (l, s) => (a(), n("line", {
541
+ }, null, 8, sl),
542
+ e.value.style.chart.layout.grid.showVerticalLines ? (o(), n("g", rl, [
543
+ (o(!0), n($, null, I(y.value.end - y.value.start, (l, s) => (o(), n("line", {
535
544
  x1: i.value.left + (s + 1) * p.value,
536
545
  x2: i.value.left + (s + 1) * p.value,
537
546
  y1: i.value.top,
@@ -539,15 +548,15 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
539
548
  stroke: e.value.style.chart.layout.grid.stroke,
540
549
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
541
550
  "stroke-linecap": "round"
542
- }, null, 8, sl))), 256))
551
+ }, null, 8, il))), 256))
543
552
  ])) : c("", !0)
544
553
  ])) : c("", !0),
545
- e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (a(), n("g", {
554
+ e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (o(), n("g", {
546
555
  key: 2,
547
556
  class: P({ "donut-opacity": !0, "donut-behind": g.value !== null })
548
557
  }, [
549
- (a(!0), n($, null, I(yt.value, (l, s) => (a(), n("g", null, [
550
- l.value >= M.value.min && l.value <= M.value.max ? (a(), n("line", {
558
+ (o(!0), n($, null, I(gt.value, (l, s) => (o(), n("g", null, [
559
+ l.value >= M.value.min && l.value <= M.value.max ? (o(), n("line", {
551
560
  key: 0,
552
561
  x1: i.value.left,
553
562
  x2: i.value.left - 5,
@@ -555,8 +564,8 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
555
564
  y2: l.y,
556
565
  stroke: e.value.style.chart.layout.grid.stroke,
557
566
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
558
- }, null, 8, rl)) : c("", !0),
559
- l.value >= M.value.min && l.value <= M.value.max ? (a(), n("text", {
567
+ }, null, 8, cl)) : c("", !0),
568
+ l.value >= M.value.min && l.value <= M.value.max ? (o(), n("text", {
560
569
  key: 1,
561
570
  x: i.value.left - 8 + e.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,
562
571
  y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
@@ -564,48 +573,48 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
564
573
  "text-anchor": "end",
565
574
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
566
575
  "font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
567
- }, x(r(Ft)(l.value) ? r(ge)(
576
+ }, x(r(Pt)(l.value) ? r(ge)(
568
577
  e.value.style.chart.layout.dataLabels.formatter,
569
578
  l.value,
570
- r(ae)({
579
+ r(oe)({
571
580
  p: e.value.style.chart.layout.dataLabels.prefix,
572
581
  v: l.value,
573
582
  s: e.value.style.chart.layout.dataLabels.suffix,
574
583
  r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
575
584
  }),
576
585
  { datapoint: l, seriesIndex: s }
577
- ) : ""), 9, il)) : c("", !0)
586
+ ) : ""), 9, vl)) : c("", !0)
578
587
  ]))), 256))
579
588
  ], 2)) : c("", !0),
580
- e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (a(), n("g", cl, [
581
- (a(!0), n($, null, I(y.value.end - y.value.start, (l, s) => (a(), n("g", null, [
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) && S.value[s] && S.value[s].text ? (a(), n("g", vl, [
583
- String(S.value[s].text).includes(`
584
- `) ? (a(), n("text", {
589
+ e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (o(), n("g", dl, [
590
+ (o(!0), n($, null, I(y.value.end - y.value.start, (l, s) => (o(), n("g", null, [
591
+ (e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === O.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && L.value[s] && L.value[s].text ? (o(), n("g", hl, [
592
+ String(L.value[s].text).includes(`
593
+ `) ? (o(), n("text", {
585
594
  key: 1,
586
595
  "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",
587
596
  "font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
588
597
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
589
598
  transform: `translate(${i.value.left + p.value * s + p.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})`,
590
- innerHTML: r(Pt)({
591
- content: String(S.value[s].text),
599
+ innerHTML: r(Dt)({
600
+ content: String(L.value[s].text),
592
601
  fontSize: e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
593
602
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
594
603
  x: 0,
595
604
  y: 0
596
605
  })
597
- }, null, 8, hl)) : (a(), n("text", {
606
+ }, null, 8, gl)) : (o(), n("text", {
598
607
  key: 0,
599
608
  "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",
600
609
  "font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
601
610
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
602
611
  transform: `translate(${i.value.left + p.value * s + p.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})`
603
- }, x(S.value[s].text), 9, dl))
612
+ }, x(L.value[s].text), 9, yl))
604
613
  ])) : c("", !0)
605
614
  ]))), 256))
606
615
  ])) : c("", !0),
607
- (a(!0), n($, null, I(C.value, (l, s) => (a(), n("g", null, [
608
- e.value.style.chart.layout.line.show && s < C.value.length - 1 && ![l.subtotal, C.value[s + 1].subtotal].includes(null) ? (a(), n("line", {
616
+ (o(!0), n($, null, I(C.value, (l, s) => (o(), n("g", null, [
617
+ e.value.style.chart.layout.line.show && s < C.value.length - 1 && ![l.subtotal, C.value[s + 1].subtotal].includes(null) ? (o(), n("line", {
609
618
  key: 0,
610
619
  class: P({ "donut-opacity": !0, "donut-behind": g.value !== null }),
611
620
  x1: l.x,
@@ -616,87 +625,87 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
616
625
  "stroke-width": e.value.style.chart.layout.line.strokeWidth,
617
626
  "stroke-linecap": "round",
618
627
  "stroke-linejoin": "round"
619
- }, null, 10, yl)) : c("", !0),
620
- l.subtotal !== null ? (a(), n("g", gl, [
621
- l.subtotal ? (a(), n("circle", {
628
+ }, null, 10, fl)) : c("", !0),
629
+ l.subtotal !== null ? (o(), n("g", ml, [
630
+ l.subtotal ? (o(), n("circle", {
622
631
  key: 0,
623
632
  cx: l.x,
624
633
  cy: l.y,
625
634
  r: l.activeRadius,
626
635
  fill: e.value.style.chart.backgroundColor
627
- }, null, 8, fl)) : c("", !0)
636
+ }, null, 8, bl)) : c("", !0)
628
637
  ])) : c("", !0)
629
638
  ]))), 256)),
630
- (a(!0), n($, null, I(C.value, (l, s) => (a(), n("g", {
639
+ (o(!0), n($, null, I(C.value, (l, s) => (o(), n("g", {
631
640
  class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
632
641
  }, [
633
- l.subtotal ? (a(), n("g", ml, [
634
- g.value !== null && g.value === s ? (a(), n("g", bl, [
635
- (a(!0), n($, null, I(l.donutHover, (u) => (a(), n("g", null, [
636
- Me(u) ? (a(), n("path", {
642
+ l.subtotal ? (o(), n("g", pl, [
643
+ g.value !== null && g.value === s ? (o(), n("g", xl, [
644
+ (o(!0), n($, null, I(l.donutHover, (u) => (o(), n("g", null, [
645
+ Re(u) ? (o(), n("path", {
637
646
  key: 0,
638
- d: r(Dt)(u, { x: u.center.endX, y: u.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
647
+ d: r(Ot)(u, { x: u.center.endX, y: u.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
639
648
  stroke: u.color,
640
649
  "stroke-width": "1",
641
650
  "stroke-linecap": "round",
642
651
  "stroke-linejoin": "round",
643
652
  fill: "none"
644
- }, null, 8, pl)) : c("", !0)
653
+ }, null, 8, kl)) : c("", !0)
645
654
  ]))), 256)),
646
- (a(!0), n($, null, I(l.donutHover, (u, f) => (a(), n("g", null, [
647
- Me(u) ? (a(), n("text", {
655
+ (o(!0), n($, null, I(l.donutHover, (u, f) => (o(), n("g", null, [
656
+ Re(u) ? (o(), n("text", {
648
657
  key: 0,
649
658
  "data-cy-hover-label": "",
650
- "text-anchor": r(Ye)(u, !0, 0).anchor,
651
- x: r(Ye)(u, !0, 9).x,
652
- y: r(Ot)(u, 14, 10),
659
+ "text-anchor": r(qe)(u, !0, 0).anchor,
660
+ x: r(qe)(u, !0, 9).x,
661
+ y: r(Tt)(u, 14, 10),
653
662
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
654
663
  "font-size": 8,
655
664
  "font-weight": "bold"
656
- }, x(u.name) + ": " + x(gt(u, l.donut)) + " (" + x(u.value === null ? "-" : Pe(u.value, u, f)) + ") ", 9, xl)) : c("", !0)
665
+ }, x(u.name) + ": " + x(ft(u, l.donut)) + " (" + x(u.value === null ? "-" : Pe(u.value, u, f)) + ") ", 9, Cl)) : c("", !0)
657
666
  ]))), 256)),
658
- L("g", null, [
659
- L("circle", {
667
+ S("g", null, [
668
+ S("circle", {
660
669
  cx: l.x,
661
670
  cy: l.y,
662
671
  r: l.hoverRadius,
663
672
  fill: e.value.style.chart.backgroundColor
664
- }, null, 8, kl)
673
+ }, null, 8, _l)
665
674
  ])
666
675
  ])) : c("", !0)
667
676
  ])) : c("", !0)
668
677
  ], 2))), 256)),
669
- (a(!0), n($, null, I(C.value, (l, s) => (a(), n("g", {
678
+ (o(!0), n($, null, I(C.value, (l, s) => (o(), n("g", {
670
679
  class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
671
680
  }, [
672
- l.subtotal !== null ? (a(), n("g", Cl, [
673
- l.subtotal === 0 ? (a(), n("circle", {
681
+ l.subtotal !== null ? (o(), n("g", wl, [
682
+ l.subtotal === 0 ? (o(), n("circle", {
674
683
  key: 0,
675
684
  cx: l.x,
676
685
  cy: l.y,
677
686
  r: 3,
678
687
  fill: e.value.style.chart.color
679
- }, null, 8, _l)) : g.value !== null && g.value === s ? (a(), n("g", wl, [
680
- (a(!0), n($, null, I(l.donutHover, (u, f) => (a(), n("path", {
688
+ }, null, 8, Sl)) : g.value !== null && g.value === s ? (o(), n("g", Ll, [
689
+ (o(!0), n($, null, I(l.donutHover, (u, f) => (o(), n("path", {
681
690
  d: u.arcSlice,
682
691
  fill: `${u.color}`,
683
692
  "stroke-width": 1,
684
693
  stroke: e.value.style.chart.backgroundColor
685
- }, null, 8, Ll))), 256))
686
- ])) : (a(), n("g", Sl, [
687
- (a(!0), n($, null, I(l.donut, (u, f) => (a(), n("path", {
694
+ }, null, 8, Al))), 256))
695
+ ])) : (o(), n("g", zl, [
696
+ (o(!0), n($, null, I(l.donut, (u, f) => (o(), n("path", {
688
697
  d: u.arcSlice,
689
698
  fill: `${u.color}`,
690
699
  "stroke-width": 0.5,
691
700
  stroke: e.value.style.chart.backgroundColor
692
- }, null, 8, Al))), 256))
701
+ }, null, 8, $l))), 256))
693
702
  ]))
694
703
  ])) : c("", !0)
695
704
  ], 2))), 256)),
696
- (a(!0), n($, null, I(C.value, (l, s) => (a(), n("g", {
697
- class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null || oe.value && s !== E.value.index })
705
+ (o(!0), n($, null, I(C.value, (l, s) => (o(), n("g", {
706
+ class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null || ue.value && s !== E.value.index })
698
707
  }, [
699
- l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (a(), n("text", {
708
+ l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (o(), n("text", {
700
709
  key: 0,
701
710
  "text-anchor": "middle",
702
711
  x: l.x,
@@ -704,37 +713,37 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
704
713
  "font-size": e.value.style.chart.layout.dataLabels.fontSize,
705
714
  "font-weight": "bold",
706
715
  fill: e.value.style.chart.layout.dataLabels.color
707
- }, x(Pe(l.subtotal, l, s)), 9, zl)) : c("", !0)
716
+ }, x(Pe(l.subtotal, l, s)), 9, Il)) : c("", !0)
708
717
  ], 2))), 256)),
709
- (a(!0), n($, null, I(C.value, (l, s) => (a(), n("rect", {
718
+ (o(!0), n($, null, I(C.value, (l, s) => (o(), n("rect", {
710
719
  x: i.value.left + s * p.value,
711
720
  y: i.value.top,
712
721
  width: p.value,
713
722
  height: v.value.height,
714
- fill: [g.value, W.value].includes(l.index) ? `url(#hover_${V.value})` : "transparent",
715
- class: P({ "donut-hover": l.subtotal && [g.value, W.value].includes(l.index) }),
723
+ fill: [g.value, j.value].includes(l.index) ? `url(#hover_${V.value})` : "transparent",
724
+ class: P({ "donut-hover": l.subtotal && [g.value, j.value].includes(l.index) }),
716
725
  style: {
717
726
  pointerEvents: "none"
718
727
  }
719
- }, null, 10, $l))), 256)),
720
- (a(!0), n($, null, I(C.value, (l, s) => (a(), n("rect", {
728
+ }, null, 10, Nl))), 256)),
729
+ (o(!0), n($, null, I(C.value, (l, s) => (o(), n("rect", {
721
730
  "data-cy-trap": "",
722
731
  x: i.value.left + s * p.value,
723
732
  y: i.value.top,
724
733
  width: p.value,
725
734
  height: v.value.height,
726
735
  fill: "transparent",
727
- onMouseenter: (u) => ft(l),
736
+ onMouseenter: (u) => mt(l),
728
737
  onMouseleave: De,
729
738
  onClick: (u) => Oe(l, s),
730
739
  class: P({ "donut-hover": g.value === l.index && l.subtotal })
731
- }, null, 42, Il))), 256)),
740
+ }, null, 42, Fl))), 256)),
732
741
  z(t.$slots, "svg", { svg: v.value }, void 0, !0)
733
- ], 14, Yt)) : c("", !0),
734
- t.$slots.watermark ? (a(), n("div", Nl, [
735
- z(t.$slots, "watermark", j(Y({ isPrinting: r($e) || r(Ie) })), void 0, !0)
742
+ ], 14, Jt)) : c("", !0),
743
+ t.$slots.watermark ? (o(), n("div", Pl, [
744
+ z(t.$slots, "watermark", Y(q({ isPrinting: r($e) || r(Ie) })), void 0, !0)
736
745
  ])) : c("", !0),
737
- K.value ? c("", !0) : (a(), F(r(ut), {
746
+ Q.value ? c("", !0) : (o(), F(r(nt), {
738
747
  key: 6,
739
748
  config: {
740
749
  type: "donutEvolution",
@@ -751,7 +760,7 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
751
760
  }
752
761
  }
753
762
  }, null, 8, ["config"])),
754
- O.value > 1 && e.value.style.chart.zoom.show ? (a(), F(Xt, {
763
+ O.value > 1 && e.value.style.chart.zoom.show ? (o(), F(Gt, {
755
764
  ref_key: "slicerComponent",
756
765
  ref: H,
757
766
  key: `slicer_${xe.value}`,
@@ -759,8 +768,8 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
759
768
  borderColor: e.value.style.chart.backgroundColor,
760
769
  fontSize: e.value.style.chart.zoom.fontSize,
761
770
  useResetSlot: e.value.style.chart.zoom.useResetSlot,
762
- labelLeft: S.value[0] ? S.value[0].text : "",
763
- labelRight: S.value.at(-1) ? S.value.at(-1).text : "",
771
+ labelLeft: L.value[0] ? L.value[0].text : "",
772
+ labelRight: L.value.at(-1) ? L.value.at(-1).text : "",
764
773
  textColor: e.value.style.chart.color,
765
774
  inputColor: e.value.style.chart.zoom.color,
766
775
  selectColor: e.value.style.chart.zoom.highlightColor,
@@ -769,9 +778,9 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
769
778
  valueStart: y.value.start,
770
779
  valueEnd: y.value.end,
771
780
  start: y.value.start,
772
- "onUpdate:start": o[0] || (o[0] = (l) => y.value.start = l),
781
+ "onUpdate:start": a[0] || (a[0] = (l) => y.value.start = l),
773
782
  end: y.value.end,
774
- "onUpdate:end": o[1] || (o[1] = (l) => y.value.end = l),
783
+ "onUpdate:end": a[1] || (a[1] = (l) => y.value.end = l),
775
784
  refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
776
785
  refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : O.value,
777
786
  enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
@@ -779,25 +788,25 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
779
788
  onReset: fe
780
789
  }, {
781
790
  "reset-action": w(({ reset: l }) => [
782
- z(t.$slots, "reset-action", j(Y({ reset: l })), void 0, !0)
791
+ z(t.$slots, "reset-action", Y(q({ reset: l })), void 0, !0)
783
792
  ]),
784
793
  _: 3
785
794
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : c("", !0),
786
- e.value.style.chart.legend.show ? (a(), F(Bt, {
795
+ e.value.style.chart.legend.show ? (o(), F(Xt, {
787
796
  key: `legend_${_e.value}`,
788
797
  legendSet: Te.value,
789
- config: mt.value,
790
- onClickMarker: o[2] || (o[2] = ({ legend: l }) => re(l.uid))
798
+ config: bt.value,
799
+ onClickMarker: a[2] || (a[2] = ({ legend: l }) => re(l.uid))
791
800
  }, {
792
801
  item: w(({ legend: l, index: s }) => [
793
- L("div", {
802
+ S("div", {
794
803
  onClick: (u) => re(l.uid),
795
- style: ee(`opacity:${k.value.includes(l.uid) ? 0.5 : 1}`)
804
+ style: te(`opacity:${k.value.includes(l.uid) ? 0.5 : 1}`)
796
805
  }, [
797
806
  de(x(l.name) + ": " + x(r(ge)(
798
807
  e.value.style.chart.layout.dataLabels.formatter,
799
808
  l.value,
800
- r(ae)({
809
+ r(oe)({
801
810
  p: e.value.style.chart.layout.dataLabels.prefix,
802
811
  v: l.value,
803
812
  s: e.value.style.chart.layout.dataLabels.suffix,
@@ -805,24 +814,24 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
805
814
  }),
806
815
  { datapoint: l, seriesIndex: s }
807
816
  )) + " ", 1),
808
- k.value.includes(l.uid) ? (a(), n("span", Dl, " ( - % ) ")) : (a(), n("span", Pl, " (" + x(isNaN(l.value / Ee.value) ? "-" : r(ae)({
817
+ k.value.includes(l.uid) ? (o(), n("span", Tl, " ( - % ) ")) : (o(), n("span", Ol, " (" + x(isNaN(l.value / Ee.value) ? "-" : r(oe)({
809
818
  v: l.value / Ee.value * 100,
810
819
  s: "%",
811
820
  r: e.value.style.chart.legend.roundingPercentage
812
821
  })) + ") ", 1))
813
- ], 12, Fl)
822
+ ], 12, Dl)
814
823
  ]),
815
824
  _: 1
816
825
  }, 8, ["legendSet", "config"])) : c("", !0),
817
826
  z(t.$slots, "legend", { legend: Te.value }, void 0, !0),
818
- t.$slots.source ? (a(), n("div", Ol, [
827
+ t.$slots.source ? (o(), n("div", El, [
819
828
  z(t.$slots, "source", {}, void 0, !0)
820
829
  ], 512)) : c("", !0),
821
- K.value ? (a(), F(r(et), {
830
+ Q.value ? (o(), F(r(tt), {
822
831
  key: 10,
823
832
  hideDetails: "",
824
833
  config: {
825
- open: X.value.showTable,
834
+ open: G.value.showTable,
826
835
  maxHeight: 1e4,
827
836
  body: {
828
837
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -835,56 +844,56 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
835
844
  }
836
845
  }, {
837
846
  content: w(() => [
838
- (a(), F(r(lt), {
847
+ (o(), F(r(at), {
839
848
  key: `table_${Ce.value}`,
840
849
  colNames: R.value.colNames,
841
850
  head: R.value.head,
842
851
  body: R.value.body,
843
852
  config: R.value.config,
844
853
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
845
- onClose: o[3] || (o[3] = (l) => X.value.showTable = !1)
854
+ onClose: a[3] || (a[3] = (l) => G.value.showTable = !1)
846
855
  }, {
847
856
  th: w(({ th: l }) => [
848
857
  de(x(l.name ?? l), 1)
849
858
  ]),
850
859
  td: w(({ td: l }) => [
851
- l.value === null ? (a(), n("span", Tl, "-")) : (a(), n("b", El, x(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + x(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + x(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
852
- L("span", null, x(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
860
+ l.value === null ? (o(), n("span", Hl, "-")) : (o(), n("b", Vl, x(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + x(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + x(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
861
+ S("span", null, x(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
853
862
  ]),
854
863
  _: 1
855
864
  }, 8, ["colNames", "head", "body", "config", "title"]))
856
865
  ]),
857
866
  _: 1
858
867
  }, 8, ["config"])) : c("", !0),
859
- e.value.style.chart.dialog.show ? (a(), F(r(tt), {
868
+ e.value.style.chart.dialog.show ? (o(), F(r(lt), {
860
869
  key: 11,
861
870
  ref_key: "dialog",
862
871
  ref: ce,
863
- onClose: o[4] || (o[4] = (l) => {
864
- E.value = null, oe.value = !1, Q.value = null, g.value = null, W.value = null;
872
+ onClose: a[4] || (a[4] = (l) => {
873
+ E.value = null, ue.value = !1, Z.value = null, g.value = null, j.value = null;
865
874
  }),
866
875
  backgroundColor: e.value.style.chart.dialog.backgroundColor,
867
876
  color: e.value.style.chart.dialog.color,
868
877
  headerBg: e.value.style.chart.dialog.header.backgroundColor,
869
878
  headerColor: e.value.style.chart.dialog.header.color,
870
879
  isFullscreen: U.value,
871
- fullscreenParent: ue.value
880
+ fullscreenParent: X.value
872
881
  }, {
873
882
  title: w(() => [
874
- de(x(S.value[Number(E.value.index)] ? S.value[Number(E.value.index)].text : ""), 1)
883
+ de(x(L.value[Number(E.value.index)] ? L.value[Number(E.value.index)].text : ""), 1)
875
884
  ]),
876
885
  default: w(() => [
877
- E.value ? (a(), F(r(st), {
886
+ E.value ? (o(), F(r(rt), {
878
887
  key: 0,
879
- config: Ue.value,
880
- dataset: Re.value
888
+ config: Be.value,
889
+ dataset: Ue.value
881
890
  }, null, 8, ["config", "dataset"])) : c("", !0)
882
891
  ]),
883
892
  _: 1
884
893
  }, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : c("", !0)
885
- ], 46, jt));
894
+ ], 46, qt));
886
895
  }
887
- }, Jl = /* @__PURE__ */ Wt(Hl, [["__scopeId", "data-v-0510a9dc"]]);
896
+ }, Zl = /* @__PURE__ */ Yt(Ml, [["__scopeId", "data-v-26a2f177"]]);
888
897
  export {
889
- Jl as default
898
+ Zl as default
890
899
  };