vue-data-ui 2.16.6 → 2.17.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 (94) hide show
  1. package/README.md +84 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +999 -160
  23. package/dist/types/vue-data-ui.d.ts +999 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
  26. package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
  81. package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
  82. package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
  85. package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
  86. package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
  93. package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
  94. package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
@@ -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 S, Fragment as $, renderList as I, toDisplayString as x, createTextVNode as de, nextTick as q } from "vue";
2
- import { u as wt, o as St, e as te, g as Lt, 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-DvIXJm6t.js";
3
- import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
4
- import { u as Je } from "./useNestedProp-DrYHm61t.js";
5
- import { u as Mt } from "./usePrinter-CWnXbGMb.js";
6
- import { u as Rt } from "./useTimeLabels-Mrr0jrpL.js";
7
- import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
8
- import Bt from "./Legend-nBXoxXJH.js";
9
- import { S as Xt } from "./Slicer-BrqtJG2E.js";
10
- import Gt from "./Title-Gi81VwUM.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-CobsZUkv.js";
3
+ import { u as Rt } from "./useChartAccessibility-9icAAmYg.js";
4
+ import { u as Ke } from "./useNestedProp-BwL5wmVa.js";
5
+ import { u as Mt } from "./usePrinter-DPh6U_Qk.js";
6
+ import { u as Ut } from "./useTimeLabels-Mrr0jrpL.js";
7
+ import { u as Bt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import Xt from "./Legend-3LNqqLDg.js";
9
+ import { S as Gt } from "./Slicer-CpSu7plp.js";
10
+ import Wt from "./Title-DpERl1yr.js";
11
+ import jt from "./img-utitT2Gd.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 }, Sl = ["d", "fill", "stroke"], Ll = { 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-D55kCO5G.js")), tt = T(() => import("./BaseDraggableDialog-6DIKXIBU.js")), lt = T(() => import("./DataTable-CHBLjKtZ.js")), at = T(() => import("./PackageVersion-Bg_9KCU-.js")), ot = T(() => import("./PenAndPaper-BPTpbnay.js")), ut = T(() => import("./vue-ui-skeleton-BAOt2neL.js")), nt = T(() => import("./UserOptions-CBEK6_jo.js")), st = T(() => import("./vue-ui-donut-B59bCV5_.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-UewqY6OI.js")), lt = T(() => import("./BaseDraggableDialog-BvuWrldK.js")), at = T(() => import("./DataTable-Dt-TIOyY.js")), ot = T(() => import("./PackageVersion-C-4Ee8BQ.js")), ut = T(() => import("./PenAndPaper-Cde-wJ3N.js")), nt = T(() => import("./vue-ui-skeleton-8s4xts8z.js")), st = T(() => import("./UserOptions-DTEJ3UM_.js")), rt = T(() => import("./vue-ui-donut-D41WeqQU.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
- St(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
- Lt({
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: Se, keepUserOptionState: Le } = 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))), L = 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([L[u] ? L[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(Se)(!0)),
342
- onMouseleave: o[6] || (o[6] = () => r(Se)(!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,98 +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(Le) || 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
413
  printScale: e.value.userOptions.print.scale,
399
- onToggleFullscreen: pt,
400
- onGeneratePdf: r(Ne),
401
- onGenerateCsv: He,
402
- onGenerateImage: r(Fe),
403
- onToggleTable: Ve,
414
+ onToggleFullscreen: Ve,
415
+ onGeneratePdf: r(Ie),
416
+ onGenerateCsv: Ee,
417
+ onGenerateImage: r(Ne),
418
+ onToggleTable: He,
404
419
  onToggleAnnotator: ie,
405
- style: ee({
406
- visibility: r(Le) ? r(ne) ? "visible" : "hidden" : "visible"
420
+ style: te({
421
+ visibility: r(Se) ? r(ne) ? "visible" : "hidden" : "visible"
407
422
  })
408
- }, Ct({ _: 2 }, [
423
+ }, _t({ _: 2 }, [
409
424
  t.$slots.menuIcon ? {
410
425
  name: "menuIcon",
411
426
  fn: w(({ isOpen: l, color: s }) => [
412
- 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)
413
428
  ]),
414
429
  key: "0"
415
430
  } : void 0,
416
431
  t.$slots.optionPdf ? {
417
432
  name: "optionPdf",
418
433
  fn: w(() => [
419
- z(t.$slots, "optionPdf", {}, void 0, !0)
434
+ A(t.$slots, "optionPdf", {}, void 0, !0)
420
435
  ]),
421
436
  key: "1"
422
437
  } : void 0,
423
438
  t.$slots.optionCsv ? {
424
439
  name: "optionCsv",
425
440
  fn: w(() => [
426
- z(t.$slots, "optionCsv", {}, void 0, !0)
441
+ A(t.$slots, "optionCsv", {}, void 0, !0)
427
442
  ]),
428
443
  key: "2"
429
444
  } : void 0,
430
445
  t.$slots.optionImg ? {
431
446
  name: "optionImg",
432
447
  fn: w(() => [
433
- z(t.$slots, "optionImg", {}, void 0, !0)
448
+ A(t.$slots, "optionImg", {}, void 0, !0)
434
449
  ]),
435
450
  key: "3"
436
451
  } : void 0,
437
452
  t.$slots.optionTable ? {
438
453
  name: "optionTable",
439
454
  fn: w(() => [
440
- z(t.$slots, "optionTable", {}, void 0, !0)
455
+ A(t.$slots, "optionTable", {}, void 0, !0)
441
456
  ]),
442
457
  key: "4"
443
458
  } : void 0,
444
459
  t.$slots.optionFullscreen ? {
445
460
  name: "optionFullscreen",
446
461
  fn: w(({ toggleFullscreen: l, isFullscreen: s }) => [
447
- 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)
448
463
  ]),
449
464
  key: "5"
450
465
  } : void 0,
451
466
  t.$slots.optionAnnotator ? {
452
467
  name: "optionAnnotator",
453
468
  fn: w(({ toggleAnnotator: l, isAnnotator: s }) => [
454
- 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)
455
470
  ]),
456
471
  key: "6"
457
472
  } : void 0
458
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),
459
- K.value ? (a(), n("svg", {
474
+ Q.value ? (o(), n("svg", {
460
475
  key: 4,
461
476
  ref_key: "svgRef",
462
- ref: Ae,
463
- xmlns: r(Nt),
464
- 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 }),
465
480
  viewBox: `0 0 ${v.value.absoluteWidth} ${v.value.absoluteHeight}`,
466
- 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};`)
467
482
  }, [
468
- _t(r(at)),
469
- t.$slots["chart-background"] ? (a(), n("foreignObject", {
483
+ wt(r(ot)),
484
+ t.$slots["chart-background"] ? (o(), n("foreignObject", {
470
485
  key: 0,
471
486
  x: i.value.left,
472
487
  y: i.value.top,
@@ -476,11 +491,11 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
476
491
  pointerEvents: "none"
477
492
  }
478
493
  }, [
479
- z(t.$slots, "chart-background", {}, void 0, !0)
480
- ], 8, qt)) : c("", !0),
494
+ A(t.$slots, "chart-background", {}, void 0, !0)
495
+ ], 8, Kt)) : c("", !0),
481
496
  S("defs", null, [
482
497
  S("linearGradient", {
483
- id: `hover_${V.value}`,
498
+ id: `hover_${H.value}`,
484
499
  x1: "0%",
485
500
  y1: "0%",
486
501
  x2: "0%",
@@ -488,31 +503,31 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
488
503
  }, [
489
504
  S("stop", {
490
505
  offset: "0%",
491
- "stop-color": r(J)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
492
- }, null, 8, Kt),
506
+ "stop-color": r(K)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
507
+ }, null, 8, Zt),
493
508
  S("stop", {
494
509
  offset: "100%",
495
- "stop-color": r(J)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
496
- }, null, 8, Qt)
497
- ], 8, Jt),
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),
498
513
  S("radialGradient", {
499
- id: `focus_${V.value}`
514
+ id: `focus_${H.value}`
500
515
  }, [
501
516
  S("stop", {
502
517
  offset: "0%",
503
- "stop-color": r(J)(r(he)(e.value.style.chart.backgroundColor), 0)
504
- }, null, 8, el),
518
+ "stop-color": r(K)(r(de)(e.value.style.chart.backgroundColor), 0)
519
+ }, null, 8, ll),
505
520
  S("stop", {
506
521
  offset: "77%",
507
- "stop-color": r(J)("#FFFFFF", 30)
508
- }, null, 8, tl),
522
+ "stop-color": r(K)("#FFFFFF", 30)
523
+ }, null, 8, al),
509
524
  S("stop", {
510
525
  offset: "100%",
511
- "stop-color": r(J)(r(he)(e.value.style.chart.backgroundColor), 0)
512
- }, null, 8, ll)
513
- ], 8, Zt)
526
+ "stop-color": r(K)(r(de)(e.value.style.chart.backgroundColor), 0)
527
+ }, null, 8, ol)
528
+ ], 8, tl)
514
529
  ]),
515
- e.value.style.chart.layout.grid.show ? (a(), n("g", al, [
530
+ e.value.style.chart.layout.grid.show ? (o(), n("g", ul, [
516
531
  S("line", {
517
532
  x1: i.value.left,
518
533
  x2: i.value.left,
@@ -521,7 +536,7 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
521
536
  stroke: e.value.style.chart.layout.grid.stroke,
522
537
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
523
538
  "stroke-linecap": "round"
524
- }, null, 8, ol),
539
+ }, null, 8, nl),
525
540
  S("line", {
526
541
  x1: i.value.left,
527
542
  x2: v.value.absoluteWidth - i.value.right,
@@ -530,25 +545,25 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
530
545
  stroke: e.value.style.chart.layout.grid.stroke,
531
546
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
532
547
  "stroke-linecap": "round"
533
- }, null, 8, ul),
534
- e.value.style.chart.layout.grid.showVerticalLines ? (a(), n("g", nl, [
535
- (a(!0), n($, null, I(y.value.end - y.value.start, (l, s) => (a(), n("line", {
536
- x1: i.value.left + (s + 1) * p.value,
537
- 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,
538
553
  y1: i.value.top,
539
554
  y2: v.value.absoluteHeight - i.value.bottom,
540
555
  stroke: e.value.style.chart.layout.grid.stroke,
541
556
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
542
557
  "stroke-linecap": "round"
543
- }, null, 8, sl))), 256))
558
+ }, null, 8, il))), 256))
544
559
  ])) : c("", !0)
545
560
  ])) : c("", !0),
546
- 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", {
547
562
  key: 2,
548
- class: P({ "donut-opacity": !0, "donut-behind": g.value !== null })
563
+ class: F({ "donut-opacity": !0, "donut-behind": g.value !== null })
549
564
  }, [
550
- (a(!0), n($, null, I(yt.value, (l, s) => (a(), n("g", null, [
551
- 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", {
552
567
  key: 0,
553
568
  x1: i.value.left,
554
569
  x2: i.value.left - 5,
@@ -556,8 +571,8 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
556
571
  y2: l.y,
557
572
  stroke: e.value.style.chart.layout.grid.stroke,
558
573
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
559
- }, null, 8, rl)) : c("", !0),
560
- 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", {
561
576
  key: 1,
562
577
  x: i.value.left - 8 + e.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,
563
578
  y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
@@ -565,50 +580,50 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
565
580
  "text-anchor": "end",
566
581
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
567
582
  "font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
568
- }, x(r(Ft)(l.value) ? r(ge)(
583
+ }, p(r(Ft)(l.value) ? r(ye)(
569
584
  e.value.style.chart.layout.dataLabels.formatter,
570
585
  l.value,
571
- r(ae)({
586
+ r(oe)({
572
587
  p: e.value.style.chart.layout.dataLabels.prefix,
573
588
  v: l.value,
574
589
  s: e.value.style.chart.layout.dataLabels.suffix,
575
590
  r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
576
591
  }),
577
592
  { datapoint: l, seriesIndex: s }
578
- ) : ""), 9, il)) : c("", !0)
593
+ ) : ""), 9, vl)) : c("", !0)
579
594
  ]))), 256))
580
595
  ], 2)) : c("", !0),
581
- e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (a(), n("g", cl, [
582
- (a(!0), n($, null, I(y.value.end - y.value.start, (l, s) => (a(), n("g", null, [
583
- (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 ? (a(), n("g", vl, [
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, [
584
599
  String(L.value[s].text).includes(`
585
- `) ? (a(), n("text", {
600
+ `) ? (o(), n("text", {
586
601
  key: 1,
587
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",
588
603
  "font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
589
604
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
590
- 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})`,
591
- innerHTML: r(Pt)({
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)({
592
607
  content: String(L.value[s].text),
593
608
  fontSize: e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
594
609
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
595
610
  x: 0,
596
611
  y: 0
597
612
  })
598
- }, null, 8, hl)) : (a(), n("text", {
613
+ }, null, 8, gl)) : (o(), n("text", {
599
614
  key: 0,
600
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",
601
616
  "font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
602
617
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
603
- 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})`
604
- }, x(L.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))
605
620
  ])) : c("", !0)
606
621
  ]))), 256))
607
622
  ])) : c("", !0),
608
- (a(!0), n($, null, I(C.value, (l, s) => (a(), n("g", null, [
609
- 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", {
610
625
  key: 0,
611
- class: P({ "donut-opacity": !0, "donut-behind": g.value !== null }),
626
+ class: F({ "donut-opacity": !0, "donut-behind": g.value !== null }),
612
627
  x1: l.x,
613
628
  y1: l.y,
614
629
  x2: C.value[s + 1].x,
@@ -617,44 +632,44 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
617
632
  "stroke-width": e.value.style.chart.layout.line.strokeWidth,
618
633
  "stroke-linecap": "round",
619
634
  "stroke-linejoin": "round"
620
- }, null, 10, yl)) : c("", !0),
621
- l.subtotal !== null ? (a(), n("g", gl, [
622
- 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", {
623
638
  key: 0,
624
639
  cx: l.x,
625
640
  cy: l.y,
626
641
  r: l.activeRadius,
627
642
  fill: e.value.style.chart.backgroundColor
628
- }, null, 8, fl)) : c("", !0)
643
+ }, null, 8, bl)) : c("", !0)
629
644
  ])) : c("", !0)
630
645
  ]))), 256)),
631
- (a(!0), n($, null, I(C.value, (l, s) => (a(), n("g", {
632
- 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 })
633
648
  }, [
634
- l.subtotal ? (a(), n("g", ml, [
635
- g.value !== null && g.value === s ? (a(), n("g", bl, [
636
- (a(!0), n($, null, I(l.donutHover, (u) => (a(), n("g", null, [
637
- 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", {
638
653
  key: 0,
639
- 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),
640
655
  stroke: u.color,
641
656
  "stroke-width": "1",
642
657
  "stroke-linecap": "round",
643
658
  "stroke-linejoin": "round",
644
659
  fill: "none"
645
- }, null, 8, pl)) : c("", !0)
660
+ }, null, 8, kl)) : c("", !0)
646
661
  ]))), 256)),
647
- (a(!0), n($, null, I(l.donutHover, (u, f) => (a(), n("g", null, [
648
- 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", {
649
664
  key: 0,
650
665
  "data-cy-hover-label": "",
651
- "text-anchor": r(Ye)(u, !0, 0).anchor,
652
- x: r(Ye)(u, !0, 9).x,
653
- 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),
654
669
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
655
670
  "font-size": 8,
656
671
  "font-weight": "bold"
657
- }, 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)
658
673
  ]))), 256)),
659
674
  S("g", null, [
660
675
  S("circle", {
@@ -662,42 +677,42 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
662
677
  cy: l.y,
663
678
  r: l.hoverRadius,
664
679
  fill: e.value.style.chart.backgroundColor
665
- }, null, 8, kl)
680
+ }, null, 8, _l)
666
681
  ])
667
682
  ])) : c("", !0)
668
683
  ])) : c("", !0)
669
684
  ], 2))), 256)),
670
- (a(!0), n($, null, I(C.value, (l, s) => (a(), n("g", {
671
- 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 })
672
687
  }, [
673
- l.subtotal !== null ? (a(), n("g", Cl, [
674
- l.subtotal === 0 ? (a(), n("circle", {
688
+ l.subtotal !== null ? (o(), n("g", wl, [
689
+ l.subtotal === 0 ? (o(), n("circle", {
675
690
  key: 0,
676
691
  cx: l.x,
677
692
  cy: l.y,
678
693
  r: 3,
679
694
  fill: e.value.style.chart.color
680
- }, null, 8, _l)) : g.value !== null && g.value === s ? (a(), n("g", wl, [
681
- (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", {
682
697
  d: u.arcSlice,
683
698
  fill: `${u.color}`,
684
699
  "stroke-width": 1,
685
700
  stroke: e.value.style.chart.backgroundColor
686
- }, null, 8, Sl))), 256))
687
- ])) : (a(), n("g", Ll, [
688
- (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", {
689
704
  d: u.arcSlice,
690
705
  fill: `${u.color}`,
691
706
  "stroke-width": 0.5,
692
707
  stroke: e.value.style.chart.backgroundColor
693
- }, null, 8, Al))), 256))
708
+ }, null, 8, zl))), 256))
694
709
  ]))
695
710
  ])) : c("", !0)
696
711
  ], 2))), 256)),
697
- (a(!0), n($, null, I(C.value, (l, s) => (a(), n("g", {
698
- 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 })
699
714
  }, [
700
- 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", {
701
716
  key: 0,
702
717
  "text-anchor": "middle",
703
718
  x: l.x,
@@ -705,37 +720,37 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
705
720
  "font-size": e.value.style.chart.layout.dataLabels.fontSize,
706
721
  "font-weight": "bold",
707
722
  fill: e.value.style.chart.layout.dataLabels.color
708
- }, x(Pe(l.subtotal, l, s)), 9, zl)) : c("", !0)
723
+ }, p(Pe(l.subtotal, l, s)), 9, Il)) : c("", !0)
709
724
  ], 2))), 256)),
710
- (a(!0), n($, null, I(C.value, (l, s) => (a(), n("rect", {
711
- 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,
712
727
  y: i.value.top,
713
- width: p.value,
728
+ width: x.value,
714
729
  height: v.value.height,
715
- fill: [g.value, W.value].includes(l.index) ? `url(#hover_${V.value})` : "transparent",
716
- 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) }),
717
732
  style: {
718
733
  pointerEvents: "none"
719
734
  }
720
- }, null, 10, $l))), 256)),
721
- (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", {
722
737
  "data-cy-trap": "",
723
- x: i.value.left + s * p.value,
738
+ x: i.value.left + s * x.value,
724
739
  y: i.value.top,
725
- width: p.value,
740
+ width: x.value,
726
741
  height: v.value.height,
727
742
  fill: "transparent",
728
- onMouseenter: (u) => ft(l),
729
- onMouseleave: De,
730
- onClick: (u) => Oe(l, s),
731
- class: P({ "donut-hover": g.value === l.index && l.subtotal })
732
- }, null, 42, Il))), 256)),
733
- z(t.$slots, "svg", { svg: v.value }, void 0, !0)
734
- ], 14, Yt)) : c("", !0),
735
- t.$slots.watermark ? (a(), n("div", Nl, [
736
- 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)
737
752
  ])) : c("", !0),
738
- K.value ? c("", !0) : (a(), F(r(ut), {
753
+ Q.value ? c("", !0) : (o(), P(r(nt), {
739
754
  key: 6,
740
755
  config: {
741
756
  type: "donutEvolution",
@@ -752,10 +767,10 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
752
767
  }
753
768
  }
754
769
  }, null, 8, ["config"])),
755
- 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, {
756
771
  ref_key: "slicerComponent",
757
- ref: H,
758
- key: `slicer_${xe.value}`,
772
+ ref: V,
773
+ key: `slicer_${pe.value}`,
759
774
  background: e.value.style.chart.zoom.color,
760
775
  borderColor: e.value.style.chart.backgroundColor,
761
776
  fontSize: e.value.style.chart.zoom.fontSize,
@@ -770,60 +785,57 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
770
785
  valueStart: y.value.start,
771
786
  valueEnd: y.value.end,
772
787
  start: y.value.start,
773
- "onUpdate:start": o[0] || (o[0] = (l) => y.value.start = l),
788
+ "onUpdate:start": a[0] || (a[0] = (l) => y.value.start = l),
774
789
  end: y.value.end,
775
- "onUpdate:end": o[1] || (o[1] = (l) => y.value.end = l),
790
+ "onUpdate:end": a[1] || (a[1] = (l) => y.value.end = l),
776
791
  refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
777
792
  refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : O.value,
778
793
  enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
779
794
  enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
780
- onReset: fe
795
+ onReset: ge
781
796
  }, {
782
797
  "reset-action": w(({ reset: l }) => [
783
- 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)
784
799
  ]),
785
800
  _: 3
786
801
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : c("", !0),
787
- e.value.style.chart.legend.show ? (a(), F(Bt, {
788
- key: `legend_${_e.value}`,
789
- legendSet: Te.value,
790
- config: mt.value,
791
- 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))
792
807
  }, {
793
808
  item: w(({ legend: l, index: s }) => [
794
809
  S("div", {
795
810
  onClick: (u) => re(l.uid),
796
- style: ee(`opacity:${k.value.includes(l.uid) ? 0.5 : 1}`)
797
- }, [
798
- de(x(l.name) + ": " + x(r(ge)(
799
- e.value.style.chart.layout.dataLabels.formatter,
800
- l.value,
801
- r(ae)({
802
- p: e.value.style.chart.layout.dataLabels.prefix,
803
- v: l.value,
804
- s: e.value.style.chart.layout.dataLabels.suffix,
805
- r: e.value.style.chart.legend.roundingValue
806
- }),
807
- { datapoint: l, seriesIndex: s }
808
- )) + " ", 1),
809
- k.value.includes(l.uid) ? (a(), n("span", Dl, " ( - % ) ")) : (a(), n("span", Pl, " (" + x(isNaN(l.value / Ee.value) ? "-" : r(ae)({
810
- v: l.value / Ee.value * 100,
811
- s: "%",
812
- r: e.value.style.chart.legend.roundingPercentage
813
- })) + ") ", 1))
814
- ], 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)
815
827
  ]),
816
828
  _: 1
817
829
  }, 8, ["legendSet", "config"])) : c("", !0),
818
- z(t.$slots, "legend", { legend: Te.value }, void 0, !0),
819
- t.$slots.source ? (a(), n("div", Ol, [
820
- 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)
821
833
  ], 512)) : c("", !0),
822
- K.value ? (a(), F(r(et), {
834
+ Q.value ? (o(), P(r(tt), {
823
835
  key: 10,
824
836
  hideDetails: "",
825
837
  config: {
826
- open: X.value.showTable,
838
+ open: G.value.showTable,
827
839
  maxHeight: 1e4,
828
840
  body: {
829
841
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -836,56 +848,56 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
836
848
  }
837
849
  }, {
838
850
  content: w(() => [
839
- (a(), F(r(lt), {
840
- key: `table_${Ce.value}`,
841
- colNames: R.value.colNames,
842
- head: R.value.head,
843
- body: R.value.body,
844
- 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,
845
857
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
846
- onClose: o[3] || (o[3] = (l) => X.value.showTable = !1)
858
+ onClose: a[3] || (a[3] = (l) => G.value.showTable = !1)
847
859
  }, {
848
860
  th: w(({ th: l }) => [
849
- de(x(l.name ?? l), 1)
861
+ Ge(p(l.name ?? l), 1)
850
862
  ]),
851
863
  td: w(({ td: l }) => [
852
- 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)),
853
- S("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)
854
866
  ]),
855
867
  _: 1
856
868
  }, 8, ["colNames", "head", "body", "config", "title"]))
857
869
  ]),
858
870
  _: 1
859
871
  }, 8, ["config"])) : c("", !0),
860
- e.value.style.chart.dialog.show ? (a(), F(r(tt), {
872
+ e.value.style.chart.dialog.show ? (o(), P(r(lt), {
861
873
  key: 11,
862
874
  ref_key: "dialog",
863
875
  ref: ce,
864
- onClose: o[4] || (o[4] = (l) => {
865
- 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;
866
878
  }),
867
879
  backgroundColor: e.value.style.chart.dialog.backgroundColor,
868
880
  color: e.value.style.chart.dialog.color,
869
881
  headerBg: e.value.style.chart.dialog.header.backgroundColor,
870
882
  headerColor: e.value.style.chart.dialog.header.color,
871
- isFullscreen: U.value,
872
- fullscreenParent: ue.value
883
+ isFullscreen: B.value,
884
+ fullscreenParent: R.value
873
885
  }, {
874
886
  title: w(() => [
875
- de(x(L.value[Number(E.value.index)] ? L.value[Number(E.value.index)].text : ""), 1)
887
+ Ge(p(L.value[Number(E.value.index)] ? L.value[Number(E.value.index)].text : ""), 1)
876
888
  ]),
877
889
  default: w(() => [
878
- E.value ? (a(), F(r(st), {
890
+ E.value ? (o(), P(r(rt), {
879
891
  key: 0,
880
892
  config: Ue.value,
881
- dataset: Re.value
893
+ dataset: Me.value
882
894
  }, null, 8, ["config", "dataset"])) : c("", !0)
883
895
  ]),
884
896
  _: 1
885
897
  }, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : c("", !0)
886
- ], 46, jt));
898
+ ], 46, qt));
887
899
  }
888
- }, Jl = /* @__PURE__ */ Wt(Hl, [["__scopeId", "data-v-66d6b9b0"]]);
900
+ }, Kl = /* @__PURE__ */ Yt(Vl, [["__scopeId", "data-v-1eefe74f"]]);
889
901
  export {
890
- Jl as default
902
+ Kl as default
891
903
  };