vue-data-ui 3.0.0-next.0 → 3.0.0-next.1

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 (98) hide show
  1. package/README.md +92 -66
  2. package/dist/{Arrow-CzFtSJ1v.js → Arrow-BKKETqRi.js} +1 -1
  3. package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-Duz4Bd3A.js} +2 -2
  4. package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BAHAKjob.js} +1 -1
  5. package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-oPTO1J9Q.js} +2 -2
  6. package/dist/{DataTable-BBbOgI-a.js → DataTable-vByThHdN.js} +2 -2
  7. package/dist/{Legend-Q4bOb-Nf.js → Legend-CIElSUHU.js} +11 -11
  8. package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CsY6Bf4e.js} +3 -3
  9. package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-B0wGS6pw.js} +1 -1
  10. package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-7o0xS-d4.js} +32 -32
  11. package/dist/{Shape-DbsLJ-SE.js → Shape-Blrp5ZfP.js} +1 -1
  12. package/dist/{Slicer-DZEFp2GU.js → Slicer-CcM8hzCn.js} +2 -2
  13. package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-iaouYun8.js} +1 -1
  14. package/dist/{Title-D29apS4l.js → Title-CWxjC3bE.js} +1 -1
  15. package/dist/{Tooltip-hVZUY_s5.js → Tooltip-Cq9HywcX.js} +1 -1
  16. package/dist/{UserOptions-Bdit7AWO.js → UserOptions-BEBaPSlU.js} +137 -129
  17. package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-CrAOuxmd.js} +1 -1
  18. package/dist/img-D3JvqNF8.js +33 -0
  19. package/dist/{index-DMqAxz7R.js → index-BSa4GlHG.js} +30 -8
  20. package/dist/pdf-DROWzopj.js +58 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1018 -166
  23. package/dist/types/vue-data-ui.d.ts +1018 -166
  24. package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-uR74_CFG.js} +1 -1
  25. package/dist/{usePrinter-COkTjv6C.js → usePrinter-j3g1L2nh.js} +2 -2
  26. package/dist/vue-data-ui-BzMRz9Un.js +314 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-BAOGEe-m.js} +261 -245
  29. package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DzF-SPaZ.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-BRdQ44O4.js} +233 -217
  31. package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-mjIKrhYa.js} +2 -2
  32. package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-CLYmLvSB.js} +172 -156
  33. package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-BFLmoEEN.js} +271 -254
  34. package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-V89TMa5p.js} +17 -16
  35. package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-C7eNjkFo.js} +418 -402
  36. package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-BuYDLE7K.js} +256 -240
  37. package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CCMbsOpk.js} +234 -218
  38. package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-BrKIImfp.js} +2 -2
  39. package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-WMKjx3iE.js} +62 -62
  40. package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-BoYPIuXn.js} +2 -2
  41. package/dist/vue-ui-donut-DJVqqXEb.js +1338 -0
  42. package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-DSG8NUG0.js} +370 -357
  43. package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-BMveoLd_.js} +216 -200
  44. package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-Dnsik-8f.js} +217 -201
  45. package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-CQ0nHCvy.js} +213 -197
  46. package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-D5L31IXm.js} +215 -202
  47. package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-BnuDe4Wj.js} +220 -204
  48. package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DYYw-JEs.js} +3 -3
  49. package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-9KJYiKzE.js} +244 -224
  50. package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-QOaVWh5L.js} +268 -252
  51. package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-EtTBwHGS.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CRnUCpsm.js} +2 -2
  53. package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-Bfk3Vhbi.js} +204 -188
  54. package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-BfRkWvgp.js} +206 -190
  55. package/dist/vue-ui-nested-donuts-Ck9Zm1UU.js +1177 -0
  56. package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-DF7Z21x-.js} +196 -180
  57. package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-JVogg7k5.js} +194 -178
  58. package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-DpFjMZoK.js} +321 -305
  59. package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-NfXEFkoL.js} +347 -331
  60. package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-Dg8UovnR.js} +193 -177
  61. package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-D3cpdLRt.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-BZTTPLCi.js} +188 -172
  63. package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-CtY_J3hk.js} +212 -196
  64. package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BiA-bRgU.js} +223 -210
  65. package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-C3sCChYD.js} +288 -273
  66. package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-DY48gQ96.js} +3 -3
  67. package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DopwmgcY.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-DO7P-2x8.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-mqLbTvAg.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-CdfZYUAZ.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DAy--kFA.js} +4 -4
  72. package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-KkG0FnmI.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-LDRannBB.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-Bys4yWs_.js} +497 -474
  75. package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-DUBqioS2.js} +241 -225
  76. package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-CPWgP-71.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DfrMVDEE.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-CNC7Lp0t.js} +8 -7
  79. package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-Bby5nWIi.js} +170 -154
  80. package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-ym9etXUy.js} +5 -5
  81. package/dist/vue-ui-tiremarks-C0V_XedF.js +358 -0
  82. package/dist/vue-ui-treemap-B5k0NEO3.js +965 -0
  83. package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DRmHFEMu.js} +335 -319
  84. package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-DrEQsTIO.js} +234 -221
  85. package/dist/vue-ui-wheel-BOTBLBOr.js +352 -0
  86. package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-Btay9XOs.js} +249 -233
  87. package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-zBvIXrWH.js} +239 -223
  88. package/dist/{vue-ui-xy-C_OUyzTC.js → vue-ui-xy-C7uPPKm9.js} +700 -686
  89. package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-CDjYeEkq.js} +447 -431
  90. package/package.json +1 -1
  91. package/dist/img-BeMVTwmF.js +0 -20
  92. package/dist/pdf-DPxOdzfi.js +0 -51
  93. package/dist/vue-data-ui-nceqWRts.js +0 -301
  94. package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
  95. package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
  96. package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
  97. package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
  98. package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
@@ -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-DMqAxz7R.js";
3
- import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
4
- import { u as Je } from "./useNestedProp-YgN3FV_8.js";
5
- import { u as Mt } from "./usePrinter-COkTjv6C.js";
6
- import { u as Rt } from "./useTimeLabels-Mrr0jrpL.js";
7
- import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
8
- import Bt from "./Legend-Q4bOb-Nf.js";
9
- import { S as Xt } from "./Slicer-DZEFp2GU.js";
10
- import Gt from "./Title-D29apS4l.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 Xe, createElementBlock as n, openBlock as o, unref as r, normalizeStyle as te, normalizeClass as F, createBlock as P, createCommentVNode as c, renderSlot as A, createSlots as _t, withCtx as w, normalizeProps as Y, guardReactiveProps as q, createVNode as wt, createElementVNode as S, Fragment as z, renderList as I, toDisplayString as p, createTextVNode as Ge, nextTick as J } from "vue";
2
+ import { u as St, o as Lt, e as le, g as $t, c as We, t as At, p as ae, a as zt, C as je, b as It, d as de, G as Nt, D as Ye, m as he, X as Pt, s as K, H as Ft, i as ye, f as oe, I as Dt, j as Ot, k as Tt, n as qe, q as Et, r as Vt, J as Je, K as Ht } from "./index-BSa4GlHG.js";
3
+ import { u as Rt } from "./useChartAccessibility-9icAAmYg.js";
4
+ import { u as Ke } from "./useNestedProp-uR74_CFG.js";
5
+ import { u as Mt } from "./usePrinter-j3g1L2nh.js";
6
+ import { u as Ut } from "./useTimeLabels-Mrr0jrpL.js";
7
+ import { u as Bt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import Xt from "./Legend-CIElSUHU.js";
9
+ import { S as Gt } from "./Slicer-CcM8hzCn.js";
10
+ import Wt from "./Title-CWxjC3bE.js";
11
+ import jt from "./img-D3JvqNF8.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
- 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 = {
15
+ class: /* @__PURE__ */ F({ "donut-opacity": !0 })
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 }, $l = ["d", "fill", "stroke"], Al = { key: 2 }, zl = ["d", "fill", "stroke"], Il = ["x", "y", "font-size", "fill"], Nl = ["x", "y", "width", "height", "fill"], Pl = ["x", "y", "width", "height", "onMouseenter", "onClick"], Fl = {
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 = {
19
20
  key: 9,
20
21
  ref: "source",
21
22
  dir: "auto"
22
- }, Tl = { key: 0 }, El = { key: 1 }, Hl = {
23
+ }, Tl = { key: 0 }, El = { key: 1 }, Vl = {
23
24
  __name: "vue-ui-donut-evolution",
24
25
  props: {
25
26
  config: {
@@ -36,74 +37,74 @@ 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-P6eFHGQp.js")), tt = T(() => import("./BaseDraggableDialog-0S5xhs2P.js")), lt = T(() => import("./DataTable-BBbOgI-a.js")), at = T(() => import("./PackageVersion-D0VPY8-5.js")), ot = T(() => import("./PenAndPaper-DhBJsnob.js")), ut = T(() => import("./vue-ui-skeleton-CjN2ZdgT.js")), nt = T(() => import("./UserOptions-Bdit7AWO.js")), st = T(() => import("./vue-ui-donut-DSE7ubVv.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-DzF-SPaZ.js")), lt = T(() => import("./BaseDraggableDialog-Duz4Bd3A.js")), at = T(() => import("./DataTable-vByThHdN.js")), ot = T(() => import("./PackageVersion-B0wGS6pw.js")), ut = T(() => import("./PenAndPaper-7o0xS-d4.js")), nt = T(() => import("./vue-ui-skeleton-DY48gQ96.js")), st = T(() => import("./UserOptions-BEBaPSlU.js")), rt = T(() => import("./vue-ui-donut-DJVqqXEb.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
  });
44
- function fe() {
45
- me();
45
+ function ge() {
46
+ fe();
46
47
  }
47
- const H = h(null);
48
- 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 = {
48
+ const V = h(null);
49
+ async function fe() {
50
+ (e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && V.value ? (e.value.style.chart.zoom.startIndex !== null && (await J(), await J(), V.value && V.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await J(), await J(), V.value && V.value.setEndValue(ct(e.value.style.chart.zoom.endIndex + 1)))) : (y.value = {
50
51
  start: 0,
51
52
  end: O.value
52
- }, xe.value += 1);
53
+ }, pe.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
- be();
59
+ Ct(() => {
60
+ me();
60
61
  });
61
- function be() {
62
- Lt(b.dataset) ? te({
62
+ function me() {
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
+ $t({
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
- }), me();
78
+ }), fe();
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
- get: () => ze(),
80
+ const H = h(We()), k = h([]), g = h(null), Z = h(null), ue = h(!1), E = h(null), R = h(null), vt = h(null), be = h(0), pe = h(0), xe = h(0), ke = h(0), Ce = h(0), _e = et, e = m({
81
+ get: () => $e(),
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
- function ze() {
84
- const t = Je({
83
+ }), { userOptionsVisible: ne, setUserOptionsVisibility: we, keepUserOptionState: Se } = Bt({ config: e.value }), { svgRef: Le } = Rt({ config: e.value.style.chart.title });
84
+ function $e() {
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({
89
+ let a = {};
90
+ return t.theme ? a = {
91
+ ...Ke({
91
92
  userConfig: zt.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: At[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
98
  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
+ e.value = $e(), ne.value = !e.value.userOptions.showOnChartHover, me(), xe.value += 1, ke.value += 1, Ce.value += 1, G.value.showTable = e.value.table.show;
99
100
  }, { deep: !0 }), Xe(() => b.dataset, (t) => {
100
- fe();
101
+ ge();
101
102
  }, { deep: !0 });
102
- const { isPrinting: $e, isImaging: Ie, generatePdf: Ne, generateImage: Fe } = Mt({
103
- elementId: V.value,
103
+ const { isPrinting: Ae, isImaging: ze, generatePdf: Ie, generateImage: Ne } = Mt({
104
+ elementId: H.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,98 +112,98 @@ 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: de(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,
148
149
  start: y.value.start,
149
150
  end: y.value.end
150
- })), p = m(() => v.value.width / (y.value.end - y.value.start)), C = m(() => {
151
+ })), x = 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, $) => N + $, 0), ve = f.map((N) => N / _), X = i.value.left + x.value * u + x.value / 2;
154
155
  t.push({
155
156
  index: u,
156
157
  percentages: ve,
157
158
  subtotal: d || _ < 0 ? null : _,
158
159
  values: f,
159
- x: B
160
+ x: X
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 = x.value / 2 * 0.7, _ = d > v.value.width / 16 ? v.value.width / 16 : d, ve = g.value === u.index ? v.value.width / 16 : _, X = t.length > 4 ? d * 2 : d * 2 > x.value / 2 * 0.7 ? x.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,
168
169
  radius: _,
169
170
  activeRadius: ve,
170
- hoverRadius: B,
171
- donut: ye({
172
- series: G.value.map((A, Be) => ({
173
- color: A.color,
174
- name: A.name,
175
- value: A.values[f] ?? 0
171
+ hoverRadius: X,
172
+ donut: he({
173
+ series: W.value.map(($, Be) => ({
174
+ color: $.color,
175
+ name: $.name,
176
+ value: $.values[f] ?? 0
176
177
  }))
177
178
  }, u.x, N, _, _, 1.99999, 2, 1, 360, 105.25, _ / 2),
178
- donutHover: ye({
179
- series: G.value.map((A, Be) => ({
180
- color: A.color,
181
- name: A.name,
182
- value: A.values[f] ?? 0
179
+ donutHover: he({
180
+ series: W.value.map(($, Be) => ({
181
+ color: $.color,
182
+ name: $.name,
183
+ value: $.values[f] ?? 0
183
184
  }))
184
- }, u.x, N, B, B, 1.99999, 2, 1, 360, 105.25, B / 2),
185
- donutFocus: ye({
186
- series: G.value.map((A, Be) => ({
187
- color: A.color,
188
- name: A.name,
189
- value: A.values[f] ?? 0
185
+ }, u.x, N, X, X, 1.99999, 2, 1, 360, 105.25, X / 2),
186
+ donutFocus: he({
187
+ series: W.value.map(($, Be) => ({
188
+ color: $.color,
189
+ name: $.name,
190
+ value: $.values[f] ?? 0
190
191
  }))
191
192
  }, v.value.centerX, v.value.centerY, v.value.height / 3.6, v.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, v.value.height / 6)
192
193
  };
193
194
  });
194
195
  });
195
- function Pe(t, o, l) {
196
- return ge(
196
+ function Pe(t, a, l) {
197
+ return ye(
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
- function De() {
226
- g.value = null, Q.value = null;
226
+ function Fe() {
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 De(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 Oe = 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
+ }))), Te = 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), _e("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), _e("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 && De(C.value.find((a, l) => l === j.value));
262
263
  }
263
- const R = m(() => {
264
+ const U = 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,81 +289,95 @@ 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
- 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" });
297
+ function Ee(t = null) {
298
+ J(() => {
299
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...U.value.head.map((d) => d.name ?? d)], s = [...U.value.body.map((d) => d.map((_) => _.value ?? _))], u = a.concat([l]).concat(s), f = Et(u);
300
+ t ? t(f) : Vt({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
300
301
  });
301
302
  }
302
- const U = h(!1);
303
- function pt(t) {
304
- U.value = t, pe.value += 1;
303
+ const B = h(!1);
304
+ function Ve(t) {
305
+ B.value = t, be.value += 1;
305
306
  }
306
- function Ve() {
307
- X.value.showTable = !X.value.showTable;
307
+ function He() {
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 Me = h([]), Ue = 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
319
+ Me.value = t.donut.map((a) => ({
320
+ name: a.name,
321
+ values: [a.value],
322
+ color: a.color
322
323
  })), Ue.value = Ht({
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,
330
- generatePdf: Ne,
331
- generateCsv: He,
332
- generateImage: Fe,
333
- toggleTable: Ve,
334
- toggleAnnotator: ie
335
- }), (t, o) => (a(), n("div", {
329
+ async function kt({ scale: t = 2 } = {}) {
330
+ if (!R.value) return;
331
+ const { width: a, height: l } = R.value.getBoundingClientRect(), s = a / l, { imageUri: u, base64: f } = await jt({ domElement: R.value, base64: !0, img: !0, scale: t });
332
+ return {
333
+ imageUri: u,
334
+ base64: f,
335
+ title: e.value.style.chart.title.text,
336
+ width: a,
337
+ height: l,
338
+ aspectRatio: s
339
+ };
340
+ }
341
+ return Ze({
342
+ getData: pt,
343
+ getImage: kt,
344
+ generatePdf: Ie,
345
+ generateCsv: Ee,
346
+ generateImage: Ne,
347
+ toggleTable: He,
348
+ toggleAnnotator: ie,
349
+ toggleFullscreen: Ve
350
+ }), (t, a) => (o(), n("div", {
336
351
  ref_key: "donutEvolutionChart",
337
- ref: ue,
338
- 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}`),
340
- id: V.value,
341
- onMouseenter: o[5] || (o[5] = () => r(Le)(!0)),
342
- onMouseleave: o[6] || (o[6] = () => r(Le)(!1))
352
+ ref: R,
353
+ class: F(`vue-ui-donut-evolution ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
354
+ style: te(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
355
+ id: H.value,
356
+ onMouseenter: a[5] || (a[5] = () => r(we)(!0)),
357
+ onMouseleave: a[6] || (a[6] = () => r(we)(!1))
343
358
  }, [
344
- e.value.userOptions.buttons.annotator ? (a(), F(r(ot), {
359
+ e.value.userOptions.buttons.annotator ? (o(), P(r(ut), {
345
360
  key: 0,
346
- svgRef: r(Ae),
361
+ svgRef: r(Le),
347
362
  backgroundColor: e.value.style.chart.backgroundColor,
348
363
  color: e.value.style.chart.color,
349
- active: Z.value,
364
+ active: ee.value,
350
365
  onClose: ie
351
366
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
352
- vt.value ? (a(), n("div", {
367
+ dt.value ? (o(), n("div", {
353
368
  key: 1,
354
369
  ref_key: "noTitle",
355
- ref: ct,
370
+ ref: vt,
356
371
  class: "vue-data-ui-no-title-space",
357
372
  style: "height:36px; width: 100%;background:transparent"
358
373
  }, null, 512)) : c("", !0),
359
- e.value.style.chart.title.text ? (a(), n("div", {
374
+ e.value.style.chart.title.text ? (o(), n("div", {
360
375
  key: 2,
361
376
  style: "width:100%;background:transparent;padding-bottom:24px",
362
- onMouseleave: De
377
+ onMouseleave: Fe
363
378
  }, [
364
- (a(), F(Gt, {
365
- key: `title_${ke.value}`,
379
+ (o(), P(Wt, {
380
+ key: `title_${xe.value}`,
366
381
  config: {
367
382
  title: {
368
383
  cy: "donut-evolution-div-title",
@@ -375,97 +390,98 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
375
390
  }
376
391
  }, null, 8, ["config"]))
377
392
  ], 32)) : c("", !0),
378
- e.value.userOptions.show && K.value && (r(Se) || r(ne)) ? (a(), F(r(nt), {
393
+ e.value.userOptions.show && Q.value && (r(Se) || r(ne)) ? (o(), P(r(st), {
379
394
  ref: "details",
380
- key: `user_options_${pe.value}`,
395
+ key: `user_options_${be.value}`,
381
396
  backgroundColor: e.value.style.chart.backgroundColor,
382
397
  color: e.value.style.chart.color,
383
- isPrinting: r($e),
384
- isImaging: r(Ie),
385
- uid: V.value,
398
+ isPrinting: r(Ae),
399
+ isImaging: r(ze),
400
+ uid: H.value,
386
401
  hasPdf: e.value.userOptions.buttons.pdf,
387
402
  hasImg: e.value.userOptions.buttons.img,
388
403
  hasXls: e.value.userOptions.buttons.csv,
389
404
  hasTable: e.value.userOptions.buttons.table,
390
405
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
391
- isFullscreen: U.value,
406
+ isFullscreen: B.value,
392
407
  titles: { ...e.value.userOptions.buttonTitles },
393
- chartElement: ue.value,
408
+ chartElement: R.value,
394
409
  position: e.value.userOptions.position,
395
410
  hasAnnotator: e.value.userOptions.buttons.annotator,
396
- isAnnotation: Z.value,
411
+ isAnnotation: ee.value,
397
412
  callbacks: e.value.userOptions.callbacks,
398
- onToggleFullscreen: pt,
399
- onGeneratePdf: r(Ne),
400
- onGenerateCsv: He,
401
- onGenerateImage: r(Fe),
402
- onToggleTable: Ve,
413
+ printScale: e.value.userOptions.print.scale,
414
+ onToggleFullscreen: Ve,
415
+ onGeneratePdf: r(Ie),
416
+ onGenerateCsv: Ee,
417
+ onGenerateImage: r(Ne),
418
+ onToggleTable: He,
403
419
  onToggleAnnotator: ie,
404
- style: ee({
420
+ style: te({
405
421
  visibility: r(Se) ? r(ne) ? "visible" : "hidden" : "visible"
406
422
  })
407
- }, Ct({ _: 2 }, [
423
+ }, _t({ _: 2 }, [
408
424
  t.$slots.menuIcon ? {
409
425
  name: "menuIcon",
410
426
  fn: w(({ isOpen: l, color: s }) => [
411
- z(t.$slots, "menuIcon", j(Y({ isOpen: l, color: s })), void 0, !0)
427
+ A(t.$slots, "menuIcon", Y(q({ isOpen: l, color: s })), void 0, !0)
412
428
  ]),
413
429
  key: "0"
414
430
  } : void 0,
415
431
  t.$slots.optionPdf ? {
416
432
  name: "optionPdf",
417
433
  fn: w(() => [
418
- z(t.$slots, "optionPdf", {}, void 0, !0)
434
+ A(t.$slots, "optionPdf", {}, void 0, !0)
419
435
  ]),
420
436
  key: "1"
421
437
  } : void 0,
422
438
  t.$slots.optionCsv ? {
423
439
  name: "optionCsv",
424
440
  fn: w(() => [
425
- z(t.$slots, "optionCsv", {}, void 0, !0)
441
+ A(t.$slots, "optionCsv", {}, void 0, !0)
426
442
  ]),
427
443
  key: "2"
428
444
  } : void 0,
429
445
  t.$slots.optionImg ? {
430
446
  name: "optionImg",
431
447
  fn: w(() => [
432
- z(t.$slots, "optionImg", {}, void 0, !0)
448
+ A(t.$slots, "optionImg", {}, void 0, !0)
433
449
  ]),
434
450
  key: "3"
435
451
  } : void 0,
436
452
  t.$slots.optionTable ? {
437
453
  name: "optionTable",
438
454
  fn: w(() => [
439
- z(t.$slots, "optionTable", {}, void 0, !0)
455
+ A(t.$slots, "optionTable", {}, void 0, !0)
440
456
  ]),
441
457
  key: "4"
442
458
  } : void 0,
443
459
  t.$slots.optionFullscreen ? {
444
460
  name: "optionFullscreen",
445
461
  fn: w(({ toggleFullscreen: l, isFullscreen: s }) => [
446
- z(t.$slots, "optionFullscreen", j(Y({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
462
+ A(t.$slots, "optionFullscreen", Y(q({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
447
463
  ]),
448
464
  key: "5"
449
465
  } : void 0,
450
466
  t.$slots.optionAnnotator ? {
451
467
  name: "optionAnnotator",
452
468
  fn: w(({ toggleAnnotator: l, isAnnotator: s }) => [
453
- z(t.$slots, "optionAnnotator", j(Y({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
469
+ A(t.$slots, "optionAnnotator", Y(q({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
454
470
  ]),
455
471
  key: "6"
456
472
  } : 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", {
473
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
474
+ Q.value ? (o(), n("svg", {
459
475
  key: 4,
460
476
  ref_key: "svgRef",
461
- ref: Ae,
462
- xmlns: r(Nt),
463
- class: P({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
477
+ ref: Le,
478
+ xmlns: r(Pt),
479
+ class: F({ "vue-data-ui-fullscreen--on": B.value, "vue-data-ui-fulscreen--off": !B.value }),
464
480
  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};`)
481
+ style: te(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
466
482
  }, [
467
- _t(r(at)),
468
- t.$slots["chart-background"] ? (a(), n("foreignObject", {
483
+ wt(r(ot)),
484
+ t.$slots["chart-background"] ? (o(), n("foreignObject", {
469
485
  key: 0,
470
486
  x: i.value.left,
471
487
  y: i.value.top,
@@ -475,44 +491,44 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
475
491
  pointerEvents: "none"
476
492
  }
477
493
  }, [
478
- z(t.$slots, "chart-background", {}, void 0, !0)
479
- ], 8, qt)) : c("", !0),
480
- L("defs", null, [
481
- L("linearGradient", {
482
- id: `hover_${V.value}`,
494
+ A(t.$slots, "chart-background", {}, void 0, !0)
495
+ ], 8, Kt)) : c("", !0),
496
+ S("defs", null, [
497
+ S("linearGradient", {
498
+ id: `hover_${H.value}`,
483
499
  x1: "0%",
484
500
  y1: "0%",
485
501
  x2: "0%",
486
502
  y2: "100%"
487
503
  }, [
488
- L("stop", {
504
+ S("stop", {
489
505
  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", {
506
+ "stop-color": r(K)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
507
+ }, null, 8, Zt),
508
+ S("stop", {
493
509
  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", {
498
- id: `focus_${V.value}`
510
+ "stop-color": r(K)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
511
+ }, null, 8, el)
512
+ ], 8, Qt),
513
+ S("radialGradient", {
514
+ id: `focus_${H.value}`
499
515
  }, [
500
- L("stop", {
516
+ S("stop", {
501
517
  offset: "0%",
502
- "stop-color": r(J)(r(he)(e.value.style.chart.backgroundColor), 0)
503
- }, null, 8, el),
504
- L("stop", {
518
+ "stop-color": r(K)(r(de)(e.value.style.chart.backgroundColor), 0)
519
+ }, null, 8, ll),
520
+ S("stop", {
505
521
  offset: "77%",
506
- "stop-color": r(J)("#FFFFFF", 30)
507
- }, null, 8, tl),
508
- L("stop", {
522
+ "stop-color": r(K)("#FFFFFF", 30)
523
+ }, null, 8, al),
524
+ S("stop", {
509
525
  offset: "100%",
510
- "stop-color": r(J)(r(he)(e.value.style.chart.backgroundColor), 0)
511
- }, null, 8, ll)
512
- ], 8, Zt)
526
+ "stop-color": r(K)(r(de)(e.value.style.chart.backgroundColor), 0)
527
+ }, null, 8, ol)
528
+ ], 8, tl)
513
529
  ]),
514
- e.value.style.chart.layout.grid.show ? (a(), n("g", al, [
515
- L("line", {
530
+ e.value.style.chart.layout.grid.show ? (o(), n("g", ul, [
531
+ S("line", {
516
532
  x1: i.value.left,
517
533
  x2: i.value.left,
518
534
  y1: i.value.top,
@@ -520,8 +536,8 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
520
536
  stroke: e.value.style.chart.layout.grid.stroke,
521
537
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
522
538
  "stroke-linecap": "round"
523
- }, null, 8, ol),
524
- L("line", {
539
+ }, null, 8, nl),
540
+ S("line", {
525
541
  x1: i.value.left,
526
542
  x2: v.value.absoluteWidth - i.value.right,
527
543
  y1: v.value.absoluteHeight - i.value.bottom,
@@ -529,25 +545,25 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
529
545
  stroke: e.value.style.chart.layout.grid.stroke,
530
546
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
531
547
  "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", {
535
- x1: i.value.left + (s + 1) * p.value,
536
- x2: i.value.left + (s + 1) * p.value,
548
+ }, null, 8, sl),
549
+ e.value.style.chart.layout.grid.showVerticalLines ? (o(), n("g", rl, [
550
+ (o(!0), n(z, null, I(y.value.end - y.value.start, (l, s) => (o(), n("line", {
551
+ x1: i.value.left + (s + 1) * x.value,
552
+ x2: i.value.left + (s + 1) * x.value,
537
553
  y1: i.value.top,
538
554
  y2: v.value.absoluteHeight - i.value.bottom,
539
555
  stroke: e.value.style.chart.layout.grid.stroke,
540
556
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
541
557
  "stroke-linecap": "round"
542
- }, null, 8, sl))), 256))
558
+ }, null, 8, il))), 256))
543
559
  ])) : c("", !0)
544
560
  ])) : c("", !0),
545
- e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (a(), n("g", {
561
+ e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (o(), n("g", {
546
562
  key: 2,
547
- class: P({ "donut-opacity": !0, "donut-behind": g.value !== null })
563
+ class: F({ "donut-opacity": !0, "donut-behind": g.value !== null })
548
564
  }, [
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", {
565
+ (o(!0), n(z, null, I(gt.value, (l, s) => (o(), n("g", null, [
566
+ l.value >= M.value.min && l.value <= M.value.max ? (o(), n("line", {
551
567
  key: 0,
552
568
  x1: i.value.left,
553
569
  x2: i.value.left - 5,
@@ -555,8 +571,8 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
555
571
  y2: l.y,
556
572
  stroke: e.value.style.chart.layout.grid.stroke,
557
573
  "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", {
574
+ }, null, 8, cl)) : c("", !0),
575
+ l.value >= M.value.min && l.value <= M.value.max ? (o(), n("text", {
560
576
  key: 1,
561
577
  x: i.value.left - 8 + e.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,
562
578
  y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
@@ -564,50 +580,50 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
564
580
  "text-anchor": "end",
565
581
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
566
582
  "font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
567
- }, x(r(Ft)(l.value) ? r(ge)(
583
+ }, p(r(Ft)(l.value) ? r(ye)(
568
584
  e.value.style.chart.layout.dataLabels.formatter,
569
585
  l.value,
570
- r(ae)({
586
+ r(oe)({
571
587
  p: e.value.style.chart.layout.dataLabels.prefix,
572
588
  v: l.value,
573
589
  s: e.value.style.chart.layout.dataLabels.suffix,
574
590
  r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
575
591
  }),
576
592
  { datapoint: l, seriesIndex: s }
577
- ) : ""), 9, il)) : c("", !0)
593
+ ) : ""), 9, vl)) : c("", !0)
578
594
  ]))), 256))
579
595
  ], 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", {
596
+ e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (o(), n("g", dl, [
597
+ (o(!0), n(z, null, I(y.value.end - y.value.start, (l, s) => (o(), n("g", null, [
598
+ (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, [
599
+ String(L.value[s].text).includes(`
600
+ `) ? (o(), n("text", {
585
601
  key: 1,
586
602
  "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
603
  "font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
588
604
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
589
- 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),
605
+ transform: `translate(${i.value.left + x.value * s + x.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})`,
606
+ innerHTML: r(Dt)({
607
+ content: String(L.value[s].text),
592
608
  fontSize: e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
593
609
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
594
610
  x: 0,
595
611
  y: 0
596
612
  })
597
- }, null, 8, hl)) : (a(), n("text", {
613
+ }, null, 8, gl)) : (o(), n("text", {
598
614
  key: 0,
599
615
  "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
616
  "font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
601
617
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
602
- 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))
618
+ transform: `translate(${i.value.left + x.value * s + x.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})`
619
+ }, p(L.value[s].text), 9, yl))
604
620
  ])) : c("", !0)
605
621
  ]))), 256))
606
622
  ])) : 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", {
623
+ (o(!0), n(z, null, I(C.value, (l, s) => (o(), n("g", null, [
624
+ 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
625
  key: 0,
610
- class: P({ "donut-opacity": !0, "donut-behind": g.value !== null }),
626
+ class: F({ "donut-opacity": !0, "donut-behind": g.value !== null }),
611
627
  x1: l.x,
612
628
  y1: l.y,
613
629
  x2: C.value[s + 1].x,
@@ -616,87 +632,87 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
616
632
  "stroke-width": e.value.style.chart.layout.line.strokeWidth,
617
633
  "stroke-linecap": "round",
618
634
  "stroke-linejoin": "round"
619
- }, null, 10, yl)) : c("", !0),
620
- l.subtotal !== null ? (a(), n("g", gl, [
621
- l.subtotal ? (a(), n("circle", {
635
+ }, null, 10, fl)) : c("", !0),
636
+ l.subtotal !== null ? (o(), n("g", ml, [
637
+ l.subtotal ? (o(), n("circle", {
622
638
  key: 0,
623
639
  cx: l.x,
624
640
  cy: l.y,
625
641
  r: l.activeRadius,
626
642
  fill: e.value.style.chart.backgroundColor
627
- }, null, 8, fl)) : c("", !0)
643
+ }, null, 8, bl)) : c("", !0)
628
644
  ])) : c("", !0)
629
645
  ]))), 256)),
630
- (a(!0), n($, null, I(C.value, (l, s) => (a(), n("g", {
631
- class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
646
+ (o(!0), n(z, null, I(C.value, (l, s) => (o(), n("g", {
647
+ class: F({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
632
648
  }, [
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", {
649
+ l.subtotal ? (o(), n("g", pl, [
650
+ g.value !== null && g.value === s ? (o(), n("g", xl, [
651
+ (o(!0), n(z, null, I(l.donutHover, (u) => (o(), n("g", null, [
652
+ Re(u) ? (o(), n("path", {
637
653
  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),
654
+ d: r(Ot)(u, { x: u.center.endX, y: u.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
639
655
  stroke: u.color,
640
656
  "stroke-width": "1",
641
657
  "stroke-linecap": "round",
642
658
  "stroke-linejoin": "round",
643
659
  fill: "none"
644
- }, null, 8, pl)) : c("", !0)
660
+ }, null, 8, kl)) : c("", !0)
645
661
  ]))), 256)),
646
- (a(!0), n($, null, I(l.donutHover, (u, f) => (a(), n("g", null, [
647
- Me(u) ? (a(), n("text", {
662
+ (o(!0), n(z, null, I(l.donutHover, (u, f) => (o(), n("g", null, [
663
+ Re(u) ? (o(), n("text", {
648
664
  key: 0,
649
665
  "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),
666
+ "text-anchor": r(qe)(u, !0, 0).anchor,
667
+ x: r(qe)(u, !0, 9).x,
668
+ y: r(Tt)(u, 14, 10),
653
669
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
654
670
  "font-size": 8,
655
671
  "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)
672
+ }, p(u.name) + ": " + p(ft(u, l.donut)) + " (" + p(u.value === null ? "-" : Pe(u.value, u, f)) + ") ", 9, Cl)) : c("", !0)
657
673
  ]))), 256)),
658
- L("g", null, [
659
- L("circle", {
674
+ S("g", null, [
675
+ S("circle", {
660
676
  cx: l.x,
661
677
  cy: l.y,
662
678
  r: l.hoverRadius,
663
679
  fill: e.value.style.chart.backgroundColor
664
- }, null, 8, kl)
680
+ }, null, 8, _l)
665
681
  ])
666
682
  ])) : c("", !0)
667
683
  ])) : c("", !0)
668
684
  ], 2))), 256)),
669
- (a(!0), n($, null, I(C.value, (l, s) => (a(), n("g", {
670
- class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
685
+ (o(!0), n(z, null, I(C.value, (l, s) => (o(), n("g", {
686
+ class: F({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
671
687
  }, [
672
- l.subtotal !== null ? (a(), n("g", Cl, [
673
- l.subtotal === 0 ? (a(), n("circle", {
688
+ l.subtotal !== null ? (o(), n("g", wl, [
689
+ l.subtotal === 0 ? (o(), n("circle", {
674
690
  key: 0,
675
691
  cx: l.x,
676
692
  cy: l.y,
677
693
  r: 3,
678
694
  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", {
695
+ }, null, 8, Sl)) : g.value !== null && g.value === s ? (o(), n("g", Ll, [
696
+ (o(!0), n(z, null, I(l.donutHover, (u, f) => (o(), n("path", {
681
697
  d: u.arcSlice,
682
698
  fill: `${u.color}`,
683
699
  "stroke-width": 1,
684
700
  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", {
701
+ }, null, 8, $l))), 256))
702
+ ])) : (o(), n("g", Al, [
703
+ (o(!0), n(z, null, I(l.donut, (u, f) => (o(), n("path", {
688
704
  d: u.arcSlice,
689
705
  fill: `${u.color}`,
690
706
  "stroke-width": 0.5,
691
707
  stroke: e.value.style.chart.backgroundColor
692
- }, null, 8, Al))), 256))
708
+ }, null, 8, zl))), 256))
693
709
  ]))
694
710
  ])) : c("", !0)
695
711
  ], 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 })
712
+ (o(!0), n(z, null, I(C.value, (l, s) => (o(), n("g", {
713
+ class: F({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null || ue.value && s !== E.value.index })
698
714
  }, [
699
- l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (a(), n("text", {
715
+ l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (o(), n("text", {
700
716
  key: 0,
701
717
  "text-anchor": "middle",
702
718
  x: l.x,
@@ -704,37 +720,37 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
704
720
  "font-size": e.value.style.chart.layout.dataLabels.fontSize,
705
721
  "font-weight": "bold",
706
722
  fill: e.value.style.chart.layout.dataLabels.color
707
- }, x(Pe(l.subtotal, l, s)), 9, zl)) : c("", !0)
723
+ }, p(Pe(l.subtotal, l, s)), 9, Il)) : c("", !0)
708
724
  ], 2))), 256)),
709
- (a(!0), n($, null, I(C.value, (l, s) => (a(), n("rect", {
710
- x: i.value.left + s * p.value,
725
+ (o(!0), n(z, null, I(C.value, (l, s) => (o(), n("rect", {
726
+ x: i.value.left + s * x.value,
711
727
  y: i.value.top,
712
- width: p.value,
728
+ width: x.value,
713
729
  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) }),
730
+ fill: [g.value, j.value].includes(l.index) ? `url(#hover_${H.value})` : "transparent",
731
+ class: F({ "donut-hover": l.subtotal && [g.value, j.value].includes(l.index) }),
716
732
  style: {
717
733
  pointerEvents: "none"
718
734
  }
719
- }, null, 10, $l))), 256)),
720
- (a(!0), n($, null, I(C.value, (l, s) => (a(), n("rect", {
735
+ }, null, 10, Nl))), 256)),
736
+ (o(!0), n(z, null, I(C.value, (l, s) => (o(), n("rect", {
721
737
  "data-cy-trap": "",
722
- x: i.value.left + s * p.value,
738
+ x: i.value.left + s * x.value,
723
739
  y: i.value.top,
724
- width: p.value,
740
+ width: x.value,
725
741
  height: v.value.height,
726
742
  fill: "transparent",
727
- onMouseenter: (u) => ft(l),
728
- onMouseleave: De,
729
- onClick: (u) => Oe(l, s),
730
- class: P({ "donut-hover": g.value === l.index && l.subtotal })
731
- }, null, 42, Il))), 256)),
732
- 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)
743
+ onMouseenter: (u) => mt(l),
744
+ onMouseleave: Fe,
745
+ onClick: (u) => De(l, s),
746
+ class: F({ "donut-hover": g.value === l.index && l.subtotal })
747
+ }, null, 42, Pl))), 256)),
748
+ A(t.$slots, "svg", { svg: v.value }, void 0, !0)
749
+ ], 14, Jt)) : c("", !0),
750
+ t.$slots.watermark ? (o(), n("div", Fl, [
751
+ A(t.$slots, "watermark", Y(q({ isPrinting: r(Ae) || r(ze) })), void 0, !0)
736
752
  ])) : c("", !0),
737
- K.value ? c("", !0) : (a(), F(r(ut), {
753
+ Q.value ? c("", !0) : (o(), P(r(nt), {
738
754
  key: 6,
739
755
  config: {
740
756
  type: "donutEvolution",
@@ -751,16 +767,16 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
751
767
  }
752
768
  }
753
769
  }, null, 8, ["config"])),
754
- O.value > 1 && e.value.style.chart.zoom.show ? (a(), F(Xt, {
770
+ O.value > 1 && e.value.style.chart.zoom.show ? (o(), P(Gt, {
755
771
  ref_key: "slicerComponent",
756
- ref: H,
757
- key: `slicer_${xe.value}`,
772
+ ref: V,
773
+ key: `slicer_${pe.value}`,
758
774
  background: e.value.style.chart.zoom.color,
759
775
  borderColor: e.value.style.chart.backgroundColor,
760
776
  fontSize: e.value.style.chart.zoom.fontSize,
761
777
  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 : "",
778
+ labelLeft: L.value[0] ? L.value[0].text : "",
779
+ labelRight: L.value.at(-1) ? L.value.at(-1).text : "",
764
780
  textColor: e.value.style.chart.color,
765
781
  inputColor: e.value.style.chart.zoom.color,
766
782
  selectColor: e.value.style.chart.zoom.highlightColor,
@@ -769,60 +785,57 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
769
785
  valueStart: y.value.start,
770
786
  valueEnd: y.value.end,
771
787
  start: y.value.start,
772
- "onUpdate:start": o[0] || (o[0] = (l) => y.value.start = l),
788
+ "onUpdate:start": a[0] || (a[0] = (l) => y.value.start = l),
773
789
  end: y.value.end,
774
- "onUpdate:end": o[1] || (o[1] = (l) => y.value.end = l),
790
+ "onUpdate:end": a[1] || (a[1] = (l) => y.value.end = l),
775
791
  refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
776
792
  refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : O.value,
777
793
  enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
778
794
  enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
779
- onReset: fe
795
+ onReset: ge
780
796
  }, {
781
797
  "reset-action": w(({ reset: l }) => [
782
- z(t.$slots, "reset-action", j(Y({ reset: l })), void 0, !0)
798
+ A(t.$slots, "reset-action", Y(q({ reset: l })), void 0, !0)
783
799
  ]),
784
800
  _: 3
785
801
  }, 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, {
787
- key: `legend_${_e.value}`,
788
- legendSet: Te.value,
789
- config: mt.value,
790
- onClickMarker: o[2] || (o[2] = ({ legend: l }) => re(l.uid))
802
+ e.value.style.chart.legend.show ? (o(), P(Xt, {
803
+ key: `legend_${Ce.value}`,
804
+ legendSet: Oe.value,
805
+ config: bt.value,
806
+ onClickMarker: a[2] || (a[2] = ({ legend: l }) => re(l.uid))
791
807
  }, {
792
808
  item: w(({ legend: l, index: s }) => [
793
- L("div", {
809
+ S("div", {
794
810
  onClick: (u) => re(l.uid),
795
- style: ee(`opacity:${k.value.includes(l.uid) ? 0.5 : 1}`)
796
- }, [
797
- de(x(l.name) + ": " + x(r(ge)(
798
- e.value.style.chart.layout.dataLabels.formatter,
799
- l.value,
800
- r(ae)({
801
- p: e.value.style.chart.layout.dataLabels.prefix,
802
- v: l.value,
803
- s: e.value.style.chart.layout.dataLabels.suffix,
804
- r: e.value.style.chart.legend.roundingValue
805
- }),
806
- { datapoint: l, seriesIndex: s }
807
- )) + " ", 1),
808
- k.value.includes(l.uid) ? (a(), n("span", Dl, " ( - % ) ")) : (a(), n("span", Pl, " (" + x(isNaN(l.value / Ee.value) ? "-" : r(ae)({
809
- v: l.value / Ee.value * 100,
810
- s: "%",
811
- r: e.value.style.chart.legend.roundingPercentage
812
- })) + ") ", 1))
813
- ], 12, Fl)
811
+ style: te(`opacity:${k.value.includes(l.uid) ? 0.5 : 1}`)
812
+ }, p(l.name) + p(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + p(e.value.style.chart.legend.showValue ? r(ye)(
813
+ e.value.style.chart.layout.dataLabels.formatter,
814
+ l.value,
815
+ r(oe)({
816
+ p: e.value.style.chart.layout.dataLabels.prefix,
817
+ v: l.value,
818
+ s: e.value.style.chart.layout.dataLabels.suffix,
819
+ r: e.value.style.chart.legend.roundingValue
820
+ }),
821
+ { datapoint: l, seriesIndex: s }
822
+ ) : "") + " " + p(e.value.style.chart.legend.showPercentage ? k.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / Te.value) ? "-" : r(oe)({
823
+ v: l.value / Te.value * 100,
824
+ s: "%",
825
+ r: e.value.style.chart.legend.roundingPercentage
826
+ })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Dl)
814
827
  ]),
815
828
  _: 1
816
829
  }, 8, ["legendSet", "config"])) : c("", !0),
817
- z(t.$slots, "legend", { legend: Te.value }, void 0, !0),
818
- t.$slots.source ? (a(), n("div", Ol, [
819
- z(t.$slots, "source", {}, void 0, !0)
830
+ A(t.$slots, "legend", { legend: Oe.value }, void 0, !0),
831
+ t.$slots.source ? (o(), n("div", Ol, [
832
+ A(t.$slots, "source", {}, void 0, !0)
820
833
  ], 512)) : c("", !0),
821
- K.value ? (a(), F(r(et), {
834
+ Q.value ? (o(), P(r(tt), {
822
835
  key: 10,
823
836
  hideDetails: "",
824
837
  config: {
825
- open: X.value.showTable,
838
+ open: G.value.showTable,
826
839
  maxHeight: 1e4,
827
840
  body: {
828
841
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -835,56 +848,56 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
835
848
  }
836
849
  }, {
837
850
  content: w(() => [
838
- (a(), F(r(lt), {
839
- key: `table_${Ce.value}`,
840
- colNames: R.value.colNames,
841
- head: R.value.head,
842
- body: R.value.body,
843
- config: R.value.config,
851
+ (o(), P(r(at), {
852
+ key: `table_${ke.value}`,
853
+ colNames: U.value.colNames,
854
+ head: U.value.head,
855
+ body: U.value.body,
856
+ config: U.value.config,
844
857
  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)
858
+ onClose: a[3] || (a[3] = (l) => G.value.showTable = !1)
846
859
  }, {
847
860
  th: w(({ th: l }) => [
848
- de(x(l.name ?? l), 1)
861
+ Ge(p(l.name ?? l), 1)
849
862
  ]),
850
863
  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)
864
+ l.value === null ? (o(), n("span", Tl, "-")) : (o(), n("b", El, 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)),
865
+ S("span", null, p(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
853
866
  ]),
854
867
  _: 1
855
868
  }, 8, ["colNames", "head", "body", "config", "title"]))
856
869
  ]),
857
870
  _: 1
858
871
  }, 8, ["config"])) : c("", !0),
859
- e.value.style.chart.dialog.show ? (a(), F(r(tt), {
872
+ e.value.style.chart.dialog.show ? (o(), P(r(lt), {
860
873
  key: 11,
861
874
  ref_key: "dialog",
862
875
  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;
876
+ onClose: a[4] || (a[4] = (l) => {
877
+ E.value = null, ue.value = !1, Z.value = null, g.value = null, j.value = null;
865
878
  }),
866
879
  backgroundColor: e.value.style.chart.dialog.backgroundColor,
867
880
  color: e.value.style.chart.dialog.color,
868
881
  headerBg: e.value.style.chart.dialog.header.backgroundColor,
869
882
  headerColor: e.value.style.chart.dialog.header.color,
870
- isFullscreen: U.value,
871
- fullscreenParent: ue.value
883
+ isFullscreen: B.value,
884
+ fullscreenParent: R.value
872
885
  }, {
873
886
  title: w(() => [
874
- de(x(S.value[Number(E.value.index)] ? S.value[Number(E.value.index)].text : ""), 1)
887
+ Ge(p(L.value[Number(E.value.index)] ? L.value[Number(E.value.index)].text : ""), 1)
875
888
  ]),
876
889
  default: w(() => [
877
- E.value ? (a(), F(r(st), {
890
+ E.value ? (o(), P(r(rt), {
878
891
  key: 0,
879
892
  config: Ue.value,
880
- dataset: Re.value
893
+ dataset: Me.value
881
894
  }, null, 8, ["config", "dataset"])) : c("", !0)
882
895
  ]),
883
896
  _: 1
884
897
  }, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : c("", !0)
885
- ], 46, jt));
898
+ ], 46, qt));
886
899
  }
887
- }, Jl = /* @__PURE__ */ Wt(Hl, [["__scopeId", "data-v-0510a9dc"]]);
900
+ }, Kl = /* @__PURE__ */ Yt(Vl, [["__scopeId", "data-v-014a9c31"]]);
888
901
  export {
889
- Jl as default
902
+ Kl as default
890
903
  };