vue-data-ui 3.0.0-next.33 → 3.0.0-next.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/{Arrow-VgHimrRb.js → Arrow-9U-UjNas.js} +1 -1
  2. package/dist/{BaseDraggableDialog-S80pCP_z.js → BaseDraggableDialog-CdaQDDs0.js} +2 -2
  3. package/dist/{BaseIcon-CVvwtj-w.js → BaseIcon-DB8UP3sU.js} +1 -1
  4. package/dist/{ColorPicker-DhGMsdlx.js → ColorPicker-Cb3SgjWM.js} +2 -2
  5. package/dist/{DataTable-CQqQt3fP.js → DataTable-BvgiQ2JE.js} +2 -2
  6. package/dist/{Legend-DAN5L1lo.js → Legend-DBh56vdD.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-s0PFQNll.js → NonSvgPenAndPaper-fHaJC-dl.js} +3 -3
  8. package/dist/{PackageVersion-DGlLBQOn.js → PackageVersion-Bhohtzrj.js} +1 -1
  9. package/dist/{PenAndPaper-hAK7vneq.js → PenAndPaper-vCj1-UEY.js} +3 -3
  10. package/dist/{Shape-CjeprST6.js → Shape-D2E4CMoi.js} +1 -1
  11. package/dist/{Slicer-8WIL9Cfq.js → Slicer-1-SaJZ80.js} +2 -2
  12. package/dist/{SparkTooltip-DeTWOnTg.js → SparkTooltip-CE4BUH-_.js} +1 -1
  13. package/dist/{Title-Bo-MVYcn.js → Title-8eeSFss9.js} +1 -1
  14. package/dist/{Tooltip-DD9Ly0Pw.js → Tooltip-C7HgI7vF.js} +1 -1
  15. package/dist/{UserOptions-dJLhbxrH.js → UserOptions-Cxr0ZsfM.js} +2 -2
  16. package/dist/{dom-to-png-CjNOdM-6.js → dom-to-png-DDW5fRWT.js} +1 -1
  17. package/dist/{img-59KgIaXp.js → img-czwmJka_.js} +1 -1
  18. package/dist/{index-h6tbqLot.js → index-Cy_OHCLi.js} +700 -660
  19. package/dist/{pdf-CVKcemYx.js → pdf-BLIP6Yoc.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +46 -8
  22. package/dist/types/vue-data-ui.d.ts +46 -8
  23. package/dist/{useNestedProp-D059IOwh.js → useNestedProp-Di0uuVL6.js} +1 -1
  24. package/dist/{usePrinter-BuJDNOzF.js → usePrinter-B3aBnAXo.js} +2 -2
  25. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  26. package/dist/{vue-data-ui-CnP-8qvV.js → vue-data-ui-C8hTMkHA.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-2BDo53CG.js → vue-ui-3d-bar-BybaBB_P.js} +6 -6
  29. package/dist/{vue-ui-accordion-DyBJ-mad.js → vue-ui-accordion-DJ7Cgx6-.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DlD9Y8xr.js → vue-ui-age-pyramid-DPuw31_r.js} +6 -6
  31. package/dist/{vue-ui-annotator-BoWAUlmS.js → vue-ui-annotator-BRVlhEK2.js} +2 -2
  32. package/dist/{vue-ui-bullet-CfUFHtlX.js → vue-ui-bullet-4NYyyaH9.js} +7 -7
  33. package/dist/{vue-ui-candlestick-DDS8WYxh.js → vue-ui-candlestick-DEYGVnYY.js} +230 -222
  34. package/dist/{vue-ui-carousel-table-D2xngvtB.js → vue-ui-carousel-table-DBV6s3lm.js} +4 -4
  35. package/dist/{vue-ui-chestnut-D1pWQozg.js → vue-ui-chestnut-EngIIDHp.js} +5 -5
  36. package/dist/{vue-ui-chord-DEK-Wk7B.js → vue-ui-chord-B0lIgdaA.js} +8 -8
  37. package/dist/{vue-ui-circle-pack-CeykLpx8.js → vue-ui-circle-pack-D2_7Q03M.js} +6 -6
  38. package/dist/{vue-ui-cursor-D86Y-gg1.js → vue-ui-cursor-B8W8SBMh.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CwWcub4O.js → vue-ui-dashboard-R18RfpNq.js} +62 -62
  40. package/dist/{vue-ui-digits-CBD1fasp.js → vue-ui-digits-lDDMeEMg.js} +2 -2
  41. package/dist/{vue-ui-donut-DzM857Mw.js → vue-ui-donut-C0QxZHSs.js} +8 -8
  42. package/dist/{vue-ui-donut-evolution-BPTk5wKW.js → vue-ui-donut-evolution-DMuOgr00.js} +307 -304
  43. package/dist/{vue-ui-dumbbell-Dqm2btrM.js → vue-ui-dumbbell-BoehGkow.js} +7 -7
  44. package/dist/{vue-ui-flow-C-JgLHsh.js → vue-ui-flow-CMpJ4VNW.js} +7 -7
  45. package/dist/{vue-ui-funnel-Dm3aCwVL.js → vue-ui-funnel-V-ep0uRk.js} +6 -6
  46. package/dist/{vue-ui-galaxy-siSx2yn6.js → vue-ui-galaxy-5_UI4rRC.js} +5 -5
  47. package/dist/{vue-ui-gauge-BgIR1PlQ.js → vue-ui-gauge-DuPPfpX8.js} +6 -6
  48. package/dist/{vue-ui-gizmo-CPIlfu1s.js → vue-ui-gizmo-DC0_MhU8.js} +3 -3
  49. package/dist/vue-ui-heatmap-Du7CgmK0.js +1084 -0
  50. package/dist/{vue-ui-history-plot-DOWu_0wY.js → vue-ui-history-plot-DUAojY09.js} +7 -7
  51. package/dist/{vue-ui-kpi-BqGvPVuE.js → vue-ui-kpi-DFqD1V27.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-C3RV5-mc.js → vue-ui-mini-loader-Dhx_wzdm.js} +2 -2
  53. package/dist/{vue-ui-molecule-DsMfjmG0.js → vue-ui-molecule-F69F6eYS.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-CRWVJjIb.js → vue-ui-mood-radar-Bx-4k7jY.js} +7 -7
  55. package/dist/{vue-ui-nested-donuts-D5gnJmVK.js → vue-ui-nested-donuts-BVeoZkgI.js} +9 -9
  56. package/dist/{vue-ui-onion-D1qHQTBl.js → vue-ui-onion-DHYlAXM7.js} +7 -7
  57. package/dist/{vue-ui-parallel-coordinate-plot-BnAveZOI.js → vue-ui-parallel-coordinate-plot-N5KtznHX.js} +8 -8
  58. package/dist/{vue-ui-quadrant-B7Lqriri.js → vue-ui-quadrant-BsQ8O9e6.js} +8 -8
  59. package/dist/{vue-ui-quick-chart-CvQRgbKq.js → vue-ui-quick-chart-Bocy5d7r.js} +6 -6
  60. package/dist/{vue-ui-radar-D494eivm.js → vue-ui-radar-ByUt1ys9.js} +7 -7
  61. package/dist/{vue-ui-rating-CTHYICJA.js → vue-ui-rating-C1KpOoZF.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-DMtH5ofd.js → vue-ui-relation-circle-Bw-A49Ol.js} +6 -6
  63. package/dist/{vue-ui-ridgeline-BiDnGLX5.js → vue-ui-ridgeline-g9JYjIcs.js} +11 -9
  64. package/dist/{vue-ui-rings-DXGyAl3y.js → vue-ui-rings-D4-dAblw.js} +8 -8
  65. package/dist/{vue-ui-scatter-Ds7sncxR.js → vue-ui-scatter-Ese_ubEo.js} +8 -8
  66. package/dist/{vue-ui-skeleton-DIJ5u0HF.js → vue-ui-skeleton-DGCSWS6R.js} +3 -3
  67. package/dist/{vue-ui-smiley-Dyhet6zb.js → vue-ui-smiley-D-2kksbm.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-rhXFuApA.js → vue-ui-spark-trend-x900EpiA.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-COfmi6KI.js → vue-ui-sparkbar-t47Lq5jH.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DJOsuPG-.js → vue-ui-sparkgauge-T8iByZV1.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-DV3KR-q5.js → vue-ui-sparkhistogram-D_ZvA5DH.js} +4 -4
  72. package/dist/{vue-ui-sparkline-kf86uahK.js → vue-ui-sparkline-DQExYN7j.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DPpQkxUm.js → vue-ui-sparkstackbar-9ywYLwLc.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CASe4O-t.js → vue-ui-stackbar-Cpf9GA_9.js} +455 -446
  75. package/dist/{vue-ui-strip-plot-DRfNBQ9A.js → vue-ui-strip-plot-Dd31-kf1.js} +7 -7
  76. package/dist/{vue-ui-table-Cg422ltc.js → vue-ui-table-ChP6rjYz.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-BCDOpShn.js → vue-ui-table-heatmap-sp_8-q-v.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-MtUkhn2K.js → vue-ui-table-sparkline-D04Usdos.js} +4 -4
  79. package/dist/{vue-ui-thermometer-Bz4qJzLC.js → vue-ui-thermometer-tp3Zjpbn.js} +6 -6
  80. package/dist/{vue-ui-timer-Da3hWBUk.js → vue-ui-timer-xVlYHzJH.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-Bafaf_gE.js → vue-ui-tiremarks-CkUbhFx0.js} +6 -6
  82. package/dist/{vue-ui-treemap-CSQjMeIP.js → vue-ui-treemap-BpkTja9I.js} +8 -8
  83. package/dist/{vue-ui-vertical-bar-tLYgt_Pg.js → vue-ui-vertical-bar-CQ2y_LEJ.js} +9 -9
  84. package/dist/{vue-ui-waffle-ir_3LGj_.js → vue-ui-waffle-BzBS5B9r.js} +8 -8
  85. package/dist/{vue-ui-wheel-bDEJ_vBc.js → vue-ui-wheel-CEiRdkDJ.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-BLQ-MfCc.js → vue-ui-word-cloud-h7iNtGpT.js} +6 -6
  87. package/dist/{vue-ui-world-_IoWGh3p.js → vue-ui-world-D6iHt4w8.js} +6 -6
  88. package/dist/{vue-ui-xy-dnlLx-v4.js → vue-ui-xy-BtOdpKQf.js} +58 -55
  89. package/dist/{vue-ui-xy-canvas-DDRJMmPT.js → vue-ui-xy-canvas-BvrKpXv1.js} +8 -8
  90. package/package.json +1 -1
  91. package/dist/useTimeLabelCollider-V7AOiPLB.js +0 -71
  92. package/dist/vue-ui-heatmap-D_8NEANa.js +0 -881
@@ -1,22 +1,22 @@
1
- import { defineAsyncComponent as V, ref as c, shallowRef as vt, computed as g, onMounted as Wt, toRefs as Yt, nextTick as Ce, watch as _e, watchEffect as jt, onBeforeUnmount as qt, createElementBlock as n, openBlock as o, unref as i, normalizeStyle as q, normalizeClass as N, createBlock as T, createCommentVNode as v, createElementVNode as p, createSlots as Jt, withCtx as L, renderSlot as S, normalizeProps as J, guardReactiveProps as K, createVNode as Kt, Fragment as z, renderList as $, toDisplayString as m, createTextVNode as dt } from "vue";
2
- import { u as Qt, c as ht, o as yt, e as se, g as Zt, A as el, t as tl, p as ne, a as ll, C as ft, b as al, d as Le, G as ol, D as gt, m as Ae, X as ul, s as Q, H as sl, i as Se, f as re, I as nl, j as rl, k as il, n as mt, q as cl, r as vl, J as bt, K as dl } from "./index-h6tbqLot.js";
3
- import { u as hl } from "./useChartAccessibility-9icAAmYg.js";
4
- import { u as xt } from "./useNestedProp-D059IOwh.js";
5
- import { u as yl } from "./usePrinter-BuJDNOzF.js";
6
- import { u as fl } from "./useTimeLabels-DkzmKfZn.js";
7
- import { u as gl } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as ml } from "./useTimeLabelCollider-V7AOiPLB.js";
9
- import bl from "./Legend-DAN5L1lo.js";
10
- import { S as xl } from "./Slicer-8WIL9Cfq.js";
11
- import pl from "./Title-Bo-MVYcn.js";
12
- import kl from "./img-59KgIaXp.js";
13
- import { t as pt, u as wl } from "./useResponsive-DfdjqQps.js";
14
- import { u as Cl, B as _l } from "./BaseScanner-DIK2NTdp.js";
15
- import { _ as Ll } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"], $l = ["id"], Il = ["stop-color"], Nl = ["stop-color"], Tl = ["id"], Ol = ["stop-color"], Pl = ["stop-color"], Fl = ["stop-color"], Dl = { key: 1 }, El = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vl = { key: 0 }, Ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bl = ["font-size", "fill", "transform"], Hl = ["x", "y", "font-size", "fill"], Ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xl = ["x", "y", "font-size", "fill", "font-weight"], Gl = { key: 0 }, Wl = ["text-anchor", "font-size", "fill", "transform"], Yl = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], jl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ql = { key: 1 }, Jl = ["cx", "cy", "r", "fill"], Kl = { key: 0 }, Ql = { key: 0 }, Zl = ["d", "stroke"], ea = ["text-anchor", "x", "y", "fill"], ta = ["cx", "cy", "r", "fill"], la = { key: 0 }, aa = ["cx", "cy", "fill"], oa = { key: 1 }, ua = ["d", "fill", "stroke"], sa = { key: 2 }, na = ["d", "fill", "stroke"], ra = ["x", "y", "font-size", "fill"], ia = ["x", "y", "width", "height", "fill"], ca = ["x", "y", "width", "height", "onMouseenter", "onClick"], va = {
1
+ import { defineAsyncComponent as V, ref as c, shallowRef as vt, computed as f, onMounted as jt, toRefs as qt, nextTick as Ce, watch as Le, watchEffect as Jt, onBeforeUnmount as Kt, createElementBlock as n, openBlock as u, unref as i, normalizeStyle as J, normalizeClass as N, createBlock as T, createCommentVNode as v, createElementVNode as p, createSlots as Qt, withCtx as _, renderSlot as S, normalizeProps as K, guardReactiveProps as Q, createVNode as Zt, Fragment as z, renderList as $, toDisplayString as m, createTextVNode as dt } from "vue";
2
+ import { u as el, c as ht, o as yt, e as se, g as tl, A as ll, t as al, p as ne, a as ol, C as ft, b as ul, d as _e, G as sl, D as gt, m as Ae, X as nl, s as Z, H as rl, i as Se, f as re, I as il, j as cl, k as vl, n as mt, q as dl, r as hl, J as bt, K as yl } from "./index-Cy_OHCLi.js";
3
+ import { u as fl } from "./useChartAccessibility-9icAAmYg.js";
4
+ import { u as xt } from "./useNestedProp-Di0uuVL6.js";
5
+ import { u as gl } from "./usePrinter-B3aBnAXo.js";
6
+ import { u as ml } from "./useTimeLabels-DkzmKfZn.js";
7
+ import { u as bl } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as xl } from "./useTimeLabelCollider-CIsgDrl9.js";
9
+ import pl from "./Legend-DBh56vdD.js";
10
+ import { S as kl } from "./Slicer-1-SaJZ80.js";
11
+ import wl from "./Title-8eeSFss9.js";
12
+ import Cl from "./img-czwmJka_.js";
13
+ import { t as pt, u as Ll } from "./useResponsive-DfdjqQps.js";
14
+ import { u as _l, B as Al } from "./BaseScanner-DIK2NTdp.js";
15
+ import { _ as Sl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"], Nl = ["id"], Tl = ["stop-color"], Ol = ["stop-color"], Pl = ["id"], Dl = ["stop-color"], Fl = ["stop-color"], El = ["stop-color"], Rl = { key: 1 }, Vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Hl = { key: 0 }, Bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ul = ["font-size", "fill", "transform"], Xl = ["x", "y", "font-size", "fill"], Gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wl = ["x", "y", "font-size", "fill", "font-weight"], Yl = { key: 0 }, jl = ["text-anchor", "font-size", "fill", "transform"], ql = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], Jl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Kl = { key: 1 }, Ql = ["cx", "cy", "r", "fill"], Zl = { key: 0 }, ea = { key: 0 }, ta = ["d", "stroke"], la = ["text-anchor", "x", "y", "fill"], aa = ["cx", "cy", "r", "fill"], oa = { key: 0 }, ua = ["cx", "cy", "fill"], sa = { key: 1 }, na = ["d", "fill", "stroke"], ra = { key: 2 }, ia = ["d", "fill", "stroke"], ca = ["x", "y", "font-size", "fill"], va = ["x", "y", "width", "height", "fill"], da = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], ha = {
17
17
  key: 4,
18
18
  class: "vue-data-ui-watermark"
19
- }, da = ["onClick"], ha = { key: 0 }, ya = { key: 1 }, fa = {
19
+ }, ya = ["onClick"], fa = { key: 0 }, ga = { key: 1 }, ma = {
20
20
  __name: "vue-ui-donut-evolution",
21
21
  props: {
22
22
  config: {
@@ -34,18 +34,18 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
34
34
  },
35
35
  emits: ["selectLegend"],
36
36
  setup(kt, { expose: wt, emit: Ct }) {
37
- const _t = V(() => import("./vue-ui-accordion-DyBJ-mad.js")), Lt = V(() => import("./BaseDraggableDialog-S80pCP_z.js")), At = V(() => import("./DataTable-CQqQt3fP.js")), St = V(() => import("./PackageVersion-DGlLBQOn.js")), zt = V(() => import("./PenAndPaper-hAK7vneq.js")), $t = V(() => import("./UserOptions-dJLhbxrH.js")), It = V(() => import("./vue-ui-donut-DzM857Mw.js")), { vue_ui_donut_evolution: Nt } = Qt(), b = kt, M = c(ht()), w = c([]), f = c(null), Z = c(null), ie = c(!1), E = c(null), P = c(null), Tt = c(null), ze = c(0), $e = c(0), Ie = c(0), Ne = c(0), Te = c(0), ce = c(null), ee = c(null), ve = c(null), de = c(null), Oe = c(null), Pe = c(null), Fe = c(null), De = c(null), Ee = c(null), he = c(!1), W = vt(null), te = vt(null), Re = c(null), Ve = Ct, Me = g(() => !!b.dataset && b.dataset.length);
38
- Wt(() => {
39
- Be();
37
+ const Lt = V(() => import("./vue-ui-accordion-DJ7Cgx6-.js")), _t = V(() => import("./BaseDraggableDialog-CdaQDDs0.js")), At = V(() => import("./DataTable-BvgiQ2JE.js")), St = V(() => import("./PackageVersion-Bhohtzrj.js")), zt = V(() => import("./PenAndPaper-vCj1-UEY.js")), $t = V(() => import("./UserOptions-Cxr0ZsfM.js")), It = V(() => import("./vue-ui-donut-C0QxZHSs.js")), { vue_ui_donut_evolution: Nt } = el(), b = kt, M = c(ht()), w = c([]), g = c(null), ee = c(null), ie = c(!1), E = c(null), P = c(null), Tt = c(null), ze = c(0), $e = c(0), Ie = c(0), Ne = c(0), Te = c(0), ce = c(null), te = c(null), ve = c(null), de = c(null), Oe = c(null), Pe = c(null), De = c(null), Fe = c(null), Ee = c(null), he = c(!1), Y = vt(null), le = vt(null), Re = c(null), Ve = Ct, Me = f(() => !!b.dataset && b.dataset.length);
38
+ jt(() => {
39
+ He();
40
40
  });
41
- const le = g(() => !!e.value.debug);
42
- function Be() {
41
+ const ae = f(() => !!e.value.debug);
42
+ function He() {
43
43
  if (yt(b.dataset) ? (se({
44
44
  componentName: "VueUiDonutEvolution",
45
45
  type: "dataset",
46
- debug: le.value
47
- }), ae.value = !0) : b.dataset.length && b.dataset.forEach((t, a) => {
48
- Zt({
46
+ debug: ae.value
47
+ }), oe.value = !0) : b.dataset.length && b.dataset.forEach((t, a) => {
48
+ tl({
49
49
  datasetObject: t,
50
50
  requiredAttributes: ["name", "values"]
51
51
  }).forEach((l) => {
@@ -54,32 +54,32 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
54
54
  type: "datasetSerieAttribute",
55
55
  property: l,
56
56
  index: a,
57
- debug: le.value
58
- }), ae.value = !0;
57
+ debug: ae.value
58
+ }), oe.value = !0;
59
59
  });
60
- }), yt(b.dataset) || (ae.value = e.value.loading), setTimeout(() => {
60
+ }), yt(b.dataset) || (oe.value = e.value.loading), setTimeout(() => {
61
61
  he.value = !0;
62
62
  }, 10), fe(), e.value.responsive) {
63
63
  const t = pt(() => {
64
64
  he.value = !1;
65
- const { width: a, height: l } = wl({
65
+ const { width: a, height: l } = Ll({
66
66
  chart: P.value,
67
67
  title: e.value.style.chart.title.text ? Oe.value : null,
68
68
  legend: e.value.style.chart.legend.show ? Pe.value : null,
69
69
  slicer: e.value.style.chart.zoom.show && Ue.value > 1 ? Ee.value : null,
70
- source: Fe.value
70
+ source: De.value
71
71
  });
72
72
  requestAnimationFrame(() => {
73
- oe.value.width = a, oe.value.height = l - 12, clearTimeout(Re.value), Re.value = setTimeout(() => {
73
+ H.value.width = a, H.value.height = l - 12, clearTimeout(Re.value), Re.value = setTimeout(() => {
74
74
  he.value = !0;
75
75
  }, 10);
76
76
  });
77
77
  });
78
- W.value && (te.value && W.value.unobserve(te.value), W.value.disconnect()), W.value = new ResizeObserver(t), te.value = P.value.parentNode, W.value.observe(te.value);
78
+ Y.value && (le.value && Y.value.unobserve(le.value), Y.value.disconnect()), Y.value = new ResizeObserver(t), le.value = P.value.parentNode, Y.value.observe(le.value);
79
79
  }
80
80
  }
81
- const e = c(me()), { loading: He, FINAL_DATASET: ye, manualLoading: ae } = Cl({
82
- ...Yt(b),
81
+ const e = c(me()), { loading: Be, FINAL_DATASET: ye, manualLoading: oe } = _l({
82
+ ...qt(b),
83
83
  FINAL_CONFIG: e,
84
84
  prepareConfig: me,
85
85
  callback: () => {
@@ -104,7 +104,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
104
104
  color: "#CACACA"
105
105
  }
106
106
  ],
107
- skeletonConfig: el({
107
+ skeletonConfig: ll({
108
108
  defaultConfig: e.value,
109
109
  userConfig: {
110
110
  useCssAnimation: !1,
@@ -146,10 +146,10 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
146
146
  }
147
147
  }
148
148
  })
149
- }), oe = c({
149
+ }), H = c({
150
150
  width: e.value.style.chart.layout.width,
151
151
  height: e.value.style.chart.layout.height
152
- }), Ue = g(() => Math.max(...ye.value.map((t) => t.values.length))), y = c({
152
+ }), Ue = f(() => Math.max(...ye.value.map((t) => t.values.length))), h = c({
153
153
  start: 0,
154
154
  end: Ue.value
155
155
  });
@@ -158,17 +158,17 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
158
158
  }
159
159
  async function fe() {
160
160
  await Ce(), await Ce();
161
- const { startIndex: t, endIndex: a } = e.value.style.chart.zoom, l = De.value;
162
- (t != null || a != null) && l ? (t != null && l.setStartValue(t), a != null && l.setEndValue(Ot(a + 1))) : (y.value = {
161
+ const { startIndex: t, endIndex: a } = e.value.style.chart.zoom, l = Fe.value;
162
+ (t != null || a != null) && l ? (t != null && l.setStartValue(t), a != null && l.setEndValue(Ot(a + 1))) : (h.value = {
163
163
  start: 0,
164
- end: F.value
164
+ end: D.value
165
165
  }, $e.value += 1);
166
166
  }
167
167
  function Ot(t) {
168
- const a = F.value;
168
+ const a = D.value;
169
169
  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;
170
170
  }
171
- const { userOptionsVisible: ge, setUserOptionsVisibility: Ge, keepUserOptionState: We } = gl({ config: e.value }), { svgRef: Ye } = hl({ config: e.value.style.chart.title });
171
+ const { userOptionsVisible: ge, setUserOptionsVisibility: Ge, keepUserOptionState: We } = bl({ config: e.value }), { svgRef: Ye } = fl({ config: e.value.style.chart.title });
172
172
  function me() {
173
173
  const t = xt({
174
174
  userConfig: b.config,
@@ -177,40 +177,40 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
177
177
  let a = {};
178
178
  return t.theme ? a = {
179
179
  ...xt({
180
- userConfig: ll.vue_ui_donut_evolution[t.theme] || b.config,
180
+ userConfig: ol.vue_ui_donut_evolution[t.theme] || b.config,
181
181
  defaultConfig: t
182
182
  }),
183
- customPalette: tl[t.theme] || ne
183
+ customPalette: al[t.theme] || ne
184
184
  } : a = t, b.config && ft(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 && ft(b.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = b.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
185
185
  }
186
- _e(() => b.config, (t) => {
187
- He.value || (e.value = me()), ge.value = !e.value.userOptions.showOnChartHover, Be(), Ie.value += 1, Ne.value += 1, Te.value += 1, B.value.showTable = e.value.table.show;
188
- }, { deep: !0 }), _e(() => b.dataset, (t) => {
189
- Array.isArray(t) && t.length > 0 && (ae.value = !1), Xe();
186
+ Le(() => b.config, (t) => {
187
+ Be.value || (e.value = me()), ge.value = !e.value.userOptions.showOnChartHover, He(), Ie.value += 1, Ne.value += 1, Te.value += 1, B.value.showTable = e.value.table.show;
188
+ }, { deep: !0 }), Le(() => b.dataset, (t) => {
189
+ Array.isArray(t) && t.length > 0 && (oe.value = !1), Xe();
190
190
  }, { deep: !0 });
191
- const { isPrinting: je, isImaging: qe, generatePdf: Je, generateImage: Ke } = yl({
191
+ const { isPrinting: je, isImaging: qe, generatePdf: Je, generateImage: Ke } = gl({
192
192
  elementId: M.value,
193
193
  fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
194
194
  options: e.value.userOptions.print
195
- }), Pt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ft = g(() => al(e.value.customPalette)), B = c({
195
+ }), Pt = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Dt = f(() => ul(e.value.customPalette)), B = c({
196
196
  showTable: e.value.table.show
197
197
  });
198
- _e(e, () => {
198
+ Le(e, () => {
199
199
  B.value = {
200
200
  showTable: e.value.table.show
201
201
  };
202
202
  }, { immediate: !0 });
203
- const R = g(() => ({
203
+ const R = f(() => ({
204
204
  top: e.value.style.chart.layout.padding.top,
205
205
  right: e.value.style.chart.layout.padding.right,
206
206
  bottom: e.value.style.chart.layout.padding.bottom,
207
207
  left: e.value.style.chart.layout.padding.left
208
208
  }));
209
- function Dt() {
209
+ function Ft() {
210
210
  let t = 0;
211
- ce.value && (t = Array.from(ce.value.querySelectorAll("text")).reduce((u, h) => {
212
- const d = h.getComputedTextLength();
213
- return (d > u ? d : u) + e.value.style.chart.layout.grid.axis.yLabelOffsetX;
211
+ ce.value && (t = Array.from(ce.value.querySelectorAll("text")).reduce((o, y) => {
212
+ const d = y.getComputedTextLength();
213
+ return (d > o ? d : o) + e.value.style.chart.layout.grid.axis.yLabelOffsetX;
214
214
  }, 0));
215
215
  const a = de.value ? de.value.getBoundingClientRect().width + e.value.style.chart.layout.grid.axis.yLabelOffsetX + e.value.style.chart.layout.grid.axis.fontSize : 0;
216
216
  return t + a + 5;
@@ -218,104 +218,104 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
218
218
  const be = c(0), Et = pt((t) => {
219
219
  be.value = t;
220
220
  }, 100);
221
- jt((t) => {
222
- const a = ee.value;
221
+ Jt((t) => {
222
+ const a = te.value;
223
223
  if (!a) return;
224
224
  const l = new ResizeObserver((s) => {
225
225
  Et(s[0].contentRect.height);
226
226
  });
227
227
  l.observe(a), t(() => l.disconnect());
228
- }), qt(() => {
228
+ }), Kt(() => {
229
229
  be.value = 0;
230
230
  });
231
- const Qe = g(() => {
231
+ const Qe = f(() => {
232
232
  let t = 0;
233
233
  ve.value && (t = ve.value.getBBox().height);
234
234
  let a = 0;
235
- return ee.value && (a = be.value), t + a + e.value.style.chart.layout.grid.axis.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
236
- }), r = g(() => {
237
- const t = Dt(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = oe.value.width, s = oe.value.height, u = R.value.left + t, h = l - R.value.right, d = l - u - R.value.right, x = s - R.value.top - R.value.bottom - a - Qe.value, G = R.value.top + a, D = s - R.value.bottom - Qe.value;
235
+ return te.value && (a = be.value), t + a + e.value.style.chart.layout.grid.axis.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
236
+ }), r = f(() => {
237
+ const t = Ft(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = H.value.width, s = H.value.height, o = R.value.left + t, y = l - R.value.right, d = l - o - R.value.right, x = s - R.value.top - R.value.bottom - a - Qe.value, W = R.value.top + a, F = s - R.value.bottom - Qe.value;
238
238
  return {
239
- top: G,
240
- left: u,
241
- right: h,
242
- bottom: D,
239
+ top: W,
240
+ left: o,
241
+ right: y,
242
+ bottom: F,
243
243
  absoluteHeight: s,
244
244
  absoluteWidth: l,
245
- centerX: u + Math.max(10, d) / 2,
246
- centerY: G + Math.max(10, x) / 2,
245
+ centerX: o + Math.max(10, d) / 2,
246
+ centerY: W + Math.max(10, x) / 2,
247
247
  width: Math.max(10, d),
248
248
  height: Math.max(10, x)
249
249
  };
250
- }), O = g(() => (ye.value.forEach((t, a) => {
250
+ }), O = f(() => (ye.value.forEach((t, a) => {
251
251
  [null, void 0].includes(t.name) && se({
252
252
  componentName: "VueUiDonutEvolution",
253
253
  type: "datasetSerieAttribute",
254
254
  property: "name",
255
255
  index: a,
256
- debug: le.value
256
+ debug: ae.value
257
257
  }), [null, void 0].includes(t.values) && se({
258
258
  componentName: "VueUiDonutEvolution",
259
259
  type: "datasetSerieAttribute",
260
260
  property: "values",
261
261
  index: a,
262
- debug: le.value
262
+ debug: ae.value
263
263
  });
264
264
  }), ye.value.map((t, a) => ({
265
265
  ...t,
266
- values: ol(t.values),
267
- color: Le(t.color) || Ft.value[a] || ne[a] || ne[a % ne.length],
266
+ values: sl(t.values),
267
+ color: _e(t.color) || Dt.value[a] || ne[a] || ne[a % ne.length],
268
268
  length: (t.values || []).length,
269
269
  uid: ht()
270
- })))), Y = g(() => O.value.filter((t) => !w.value.includes(t.uid)).map((t) => ({
270
+ })))), j = f(() => O.value.filter((t) => !w.value.includes(t.uid)).map((t) => ({
271
271
  ...t,
272
- values: t.values.filter((a, l) => l >= y.value.start && l <= y.value.end)
273
- }))), F = g(() => Math.max(...Y.value.map((t) => t.length))), C = g(() => fl({
272
+ values: t.values.filter((a, l) => l >= h.value.start && l <= h.value.end)
273
+ }))), D = f(() => Math.max(...j.value.map((t) => t.length))), C = f(() => ml({
274
274
  values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
275
- maxDatapoints: F.value,
275
+ maxDatapoints: D.value,
276
276
  formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
277
- start: y.value.start,
278
- end: y.value.end
279
- })), k = g(() => r.value.width / (y.value.end - y.value.start)), _ = g(() => {
277
+ start: h.value.start,
278
+ end: h.value.end
279
+ })), k = f(() => r.value.width / (h.value.end - h.value.start)), L = f(() => {
280
280
  const t = [];
281
- for (let u = 0; u < y.value.end - y.value.start; u += 1) {
282
- const h = Y.value.map((I) => I.values[u] ?? null), d = h.filter((I) => [void 0, null].includes(I)).length === h.length, x = h.reduce((I, A) => I + A, 0), G = h.map((I) => I / x), D = r.value.left + k.value * u + k.value / 2;
281
+ for (let o = 0; o < h.value.end - h.value.start; o += 1) {
282
+ const y = j.value.map((I) => I.values[o] ?? null), d = y.filter((I) => [void 0, null].includes(I)).length === y.length, x = y.reduce((I, A) => I + A, 0), W = y.map((I) => I / x), F = r.value.left + k.value * o + k.value / 2;
283
283
  t.push({
284
- index: u,
285
- percentages: G,
284
+ index: o,
285
+ percentages: W,
286
286
  subtotal: d || x < 0 ? null : x,
287
- values: h,
288
- x: D
287
+ values: y,
288
+ x: F
289
289
  });
290
290
  }
291
- const a = 0, l = Math.max(...t.map((u) => u.subtotal)), s = t.length === 1 ? l * 2 : l;
292
- return t.map((u, h) => {
293
- const d = Math.min(r.value.width / 24, k.value / 2 * 0.7), x = d > r.value.width / 16 ? r.value.width / 16 : d, G = f.value === u.index ? r.value.width / 16 : x, D = t.length > 4 ? d * 2 : d * 2 > k.value / 2 * 0.7 ? k.value / 2 * 0.7 : d * 2, I = r.value.bottom - r.value.height * u.subtotal / gt(a, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
291
+ const a = 0, l = Math.max(...t.map((o) => o.subtotal)), s = t.length === 1 ? l * 2 : l;
292
+ return t.map((o, y) => {
293
+ const d = Math.min(r.value.width / 24, k.value / 2 * 0.7), x = d > r.value.width / 16 ? r.value.width / 16 : d, W = g.value === o.index ? r.value.width / 16 : x, F = t.length > 4 ? d * 2 : d * 2 > k.value / 2 * 0.7 ? k.value / 2 * 0.7 : d * 2, I = r.value.bottom - r.value.height * o.subtotal / gt(a, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
294
294
  return {
295
- ...u,
295
+ ...o,
296
296
  y: I,
297
297
  radius: x,
298
- activeRadius: G,
299
- hoverRadius: D,
298
+ activeRadius: W,
299
+ hoverRadius: F,
300
300
  donut: Ae({
301
- series: Y.value.map((A, ct) => ({
301
+ series: j.value.map((A, ct) => ({
302
302
  color: A.color,
303
303
  name: A.name,
304
- value: A.values[h] ?? 0
304
+ value: A.values[y] ?? 0
305
305
  }))
306
- }, u.x, I, x, x, 1.99999, 2, 1, 360, 105.25, x / 2),
306
+ }, o.x, I, x, x, 1.99999, 2, 1, 360, 105.25, x / 2),
307
307
  donutHover: Ae({
308
- series: Y.value.map((A, ct) => ({
308
+ series: j.value.map((A, ct) => ({
309
309
  color: A.color,
310
310
  name: A.name,
311
- value: A.values[h] ?? 0
311
+ value: A.values[y] ?? 0
312
312
  }))
313
- }, u.x, I, D, D, 1.99999, 2, 1, 360, 105.25, D / 2),
313
+ }, o.x, I, F, F, 1.99999, 2, 1, 360, 105.25, F / 2),
314
314
  donutFocus: Ae({
315
- series: Y.value.map((A, ct) => ({
315
+ series: j.value.map((A, ct) => ({
316
316
  color: A.color,
317
317
  name: A.name,
318
- value: A.values[h] ?? 0
318
+ value: A.values[y] ?? 0
319
319
  }))
320
320
  }, r.value.centerX, r.value.centerY, r.value.height / 3.6, r.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, r.value.height / 6)
321
321
  };
@@ -334,36 +334,36 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
334
334
  { datapoint: a, index: l }
335
335
  );
336
336
  }
337
- const xe = g(() => ({
338
- max: Math.max(..._.value.map((t) => t.subtotal)),
337
+ const xe = f(() => ({
338
+ max: Math.max(...L.value.map((t) => t.subtotal)),
339
339
  min: 0
340
- })), H = g(() => {
341
- const t = _.value.length === 1 ? xe.value.max * 2 : xe.value.max;
340
+ })), U = f(() => {
341
+ const t = L.value.length === 1 ? xe.value.max * 2 : xe.value.max;
342
342
  return gt(xe.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
343
343
  });
344
344
  function Rt(t) {
345
- return t / H.value.max;
345
+ return t / U.value.max;
346
346
  }
347
- const Vt = g(() => H.value.ticks.map((t) => ({
347
+ const Vt = f(() => U.value.ticks.map((t) => ({
348
348
  y: r.value.bottom - r.value.height * Rt(t),
349
349
  value: t
350
350
  })));
351
351
  function Mt(t, a) {
352
352
  return isNaN(t.value / bt(a, "value")) ? 0 : (t.value / bt(a, "value") * 100).toFixed(0) + "%";
353
353
  }
354
- function et() {
355
- f.value = null, Z.value = null;
354
+ function et(t) {
355
+ g.value = null, ee.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex + h.value.start });
356
356
  }
357
- function Bt(t) {
358
- f.value = t.index, Z.value = t;
357
+ function Ht(t) {
358
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + h.value.start }), g.value = t.index, ee.value = t;
359
359
  }
360
- const j = c(null);
360
+ const q = c(null);
361
361
  function tt(t, a) {
362
- !t.subtotal || !e.value.style.chart.dialog.show || (Z.value = null, f.value = null, ie.value = !0, E.value = t, Xt(t), [null, void 0].includes(a) || (j.value = a));
362
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.index + h.value.start }), !(!t.subtotal || !e.value.style.chart.dialog.show) && (ee.value = null, g.value = null, ie.value = !0, E.value = t, Xt(t), [null, void 0].includes(a) || (q.value = a));
363
363
  }
364
- const lt = g(() => O.value.map((t, a) => ({
364
+ const lt = f(() => O.value.map((t, a) => ({
365
365
  name: t.name,
366
- value: t.values.slice(y.value.start, y.value.end).reduce((l, s) => l + s, 0),
366
+ value: t.values.slice(h.value.start, h.value.end).reduce((l, s) => l + s, 0),
367
367
  shape: "circle",
368
368
  uid: t.uid,
369
369
  color: t.color
@@ -372,7 +372,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
372
372
  opacity: w.value.includes(t.uid) ? 0.5 : 1,
373
373
  segregate: () => pe(t.uid),
374
374
  isSegregated: w.value.includes(t.uid)
375
- }))), at = g(() => _.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), Ht = g(() => ({
375
+ }))), at = f(() => L.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), Bt = f(() => ({
376
376
  cy: "donut-div-legend",
377
377
  backgroundColor: e.value.style.chart.legend.backgroundColor,
378
378
  color: e.value.style.chart.legend.color,
@@ -387,20 +387,20 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
387
387
  if (w.value.length === O.value.length - 1) return;
388
388
  w.value.push(t), Ve("selectLegend", O.value.find((a) => a.uid === t));
389
389
  }
390
- E.value && tt(_.value.find((a, l) => l === j.value));
390
+ E.value && tt(L.value.find((a, l) => l === q.value));
391
391
  }
392
- const U = g(() => {
393
- const t = [""].concat(O.value.filter((u) => !w.value.includes(u.uid)).map((u) => ({
394
- name: u.name,
395
- color: u.color
392
+ const X = f(() => {
393
+ const t = [""].concat(O.value.filter((o) => !w.value.includes(o.uid)).map((o) => ({
394
+ name: o.name,
395
+ color: o.color
396
396
  }))).concat(["Σ"]);
397
397
  let a = [];
398
- for (let u = 0; u < F.value; u += 1) {
399
- const h = O.value.filter((d) => !w.value.includes(d.uid)).map((d) => d.values[u] ?? 0).reduce((d, x) => d + x, 0);
400
- a.push([C[u] ? C[u].text : "-"].concat(O.value.filter((d) => !w.value.includes(d.uid)).map((d) => ({
401
- value: d.values[u] ?? 0,
402
- percentage: d.values[u] ? d.values[u] / h * 100 : 0
403
- }))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(h.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
398
+ for (let o = 0; o < D.value; o += 1) {
399
+ const y = O.value.filter((d) => !w.value.includes(d.uid)).map((d) => d.values[o] ?? 0).reduce((d, x) => d + x, 0);
400
+ a.push([C[o] ? C[o].text : "-"].concat(O.value.filter((d) => !w.value.includes(d.uid)).map((d) => ({
401
+ value: d.values[o] ?? 0,
402
+ percentage: d.values[o] ? d.values[o] / y * 100 : 0
403
+ }))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(y.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
404
404
  }
405
405
  const l = {
406
406
  th: {
@@ -416,7 +416,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
416
416
  breakpoint: e.value.table.responsiveBreakpoint
417
417
  }, s = [
418
418
  e.value.table.columnNames.period
419
- ].concat(O.value.filter((u) => !w.value.includes(u.uid)).map((u) => u.name)).concat(e.value.table.columnNames.total);
419
+ ].concat(O.value.filter((o) => !w.value.includes(o.uid)).map((o) => o.name)).concat(e.value.table.columnNames.total);
420
420
  return { head: t, body: a, config: l, colNames: s };
421
421
  });
422
422
  function Ut() {
@@ -424,13 +424,13 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
424
424
  }
425
425
  function ot(t = null) {
426
426
  Ce(() => {
427
- 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((x) => x.value ?? x))], u = a.concat([l]).concat(s), h = cl(u);
428
- t ? t(h) : vl({ csvContent: h, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
427
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...X.value.head.map((d) => d.name ?? d)], s = [...X.value.body.map((d) => d.map((x) => x.value ?? x))], o = a.concat([l]).concat(s), y = dl(o);
428
+ t ? t(y) : hl({ csvContent: y, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
429
429
  });
430
430
  }
431
- const X = c(!1);
431
+ const G = c(!1);
432
432
  function ut(t) {
433
- X.value = t, ze.value += 1;
433
+ G.value = t, ze.value += 1;
434
434
  }
435
435
  function st() {
436
436
  B.value.showTable = !B.value.showTable;
@@ -448,7 +448,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
448
448
  name: a.name,
449
449
  values: [a.value],
450
450
  color: a.color
451
- })), it.value = dl({
451
+ })), it.value = yl({
452
452
  ...e.value.style.chart.dialog.donutChart,
453
453
  responsive: !0,
454
454
  theme: e.value.theme
@@ -456,24 +456,27 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
456
456
  }
457
457
  async function Gt({ scale: t = 2 } = {}) {
458
458
  if (!P.value) return;
459
- const { width: a, height: l } = P.value.getBoundingClientRect(), s = a / l, { imageUri: u, base64: h } = await kl({ domElement: P.value, base64: !0, img: !0, scale: t });
459
+ const { width: a, height: l } = P.value.getBoundingClientRect(), s = a / l, { imageUri: o, base64: y } = await Cl({ domElement: P.value, base64: !0, img: !0, scale: t });
460
460
  return {
461
- imageUri: u,
462
- base64: h,
461
+ imageUri: o,
462
+ base64: y,
463
463
  title: e.value.style.chart.title.text,
464
464
  width: a,
465
465
  height: l,
466
466
  aspectRatio: s
467
467
  };
468
468
  }
469
- return ml({
470
- timeLabelsEls: ee,
469
+ const Wt = f(() => H.value.width), Yt = f(() => H.value.height);
470
+ return xl({
471
+ timeLabelsEls: te,
471
472
  timeLabels: C,
472
- slicer: y,
473
+ slicer: h,
473
474
  configRef: e,
474
475
  rotationPath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "rotation"],
475
476
  autoRotatePath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "autoRotate"],
476
- isAutoSize: !1
477
+ isAutoSize: !1,
478
+ width: Wt,
479
+ height: Yt
477
480
  }), wt({
478
481
  getData: Ut,
479
482
  getImage: Gt,
@@ -483,16 +486,16 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
483
486
  toggleTable: st,
484
487
  toggleAnnotator: ke,
485
488
  toggleFullscreen: ut
486
- }), (t, a) => (o(), n("div", {
489
+ }), (t, a) => (u(), n("div", {
487
490
  ref_key: "donutEvolutionChart",
488
491
  ref: P,
489
- class: N(`vue-ui-donut-evolution ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
490
- style: q(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
492
+ class: N(`vue-ui-donut-evolution ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
493
+ style: J(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
491
494
  id: M.value,
492
495
  onMouseenter: a[5] || (a[5] = () => i(Ge)(!0)),
493
496
  onMouseleave: a[6] || (a[6] = () => i(Ge)(!1))
494
497
  }, [
495
- e.value.userOptions.buttons.annotator ? (o(), T(i(zt), {
498
+ e.value.userOptions.buttons.annotator ? (u(), T(i(zt), {
496
499
  key: 0,
497
500
  svgRef: i(Ye),
498
501
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -500,21 +503,21 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
500
503
  active: ue.value,
501
504
  onClose: ke
502
505
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
503
- Pt.value ? (o(), n("div", {
506
+ Pt.value ? (u(), n("div", {
504
507
  key: 1,
505
508
  ref_key: "noTitle",
506
509
  ref: Tt,
507
510
  class: "vue-data-ui-no-title-space",
508
511
  style: "height:36px; width: 100%;background:transparent"
509
512
  }, null, 512)) : v("", !0),
510
- e.value.style.chart.title.text ? (o(), n("div", {
513
+ e.value.style.chart.title.text ? (u(), n("div", {
511
514
  key: 2,
512
515
  ref_key: "chartTitle",
513
516
  ref: Oe,
514
517
  style: "width:100%;background:transparent;padding-bottom:24px",
515
518
  onMouseleave: et
516
519
  }, [
517
- (o(), T(pl, {
520
+ (u(), T(wl, {
518
521
  key: `title_${Ie.value}`,
519
522
  config: {
520
523
  title: {
@@ -528,7 +531,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
528
531
  }
529
532
  }, null, 8, ["config"]))
530
533
  ], 544)) : v("", !0),
531
- e.value.userOptions.show && Me.value && (i(We) || i(ge)) ? (o(), T(i($t), {
534
+ e.value.userOptions.show && Me.value && (i(We) || i(ge)) ? (u(), T(i($t), {
532
535
  ref: "details",
533
536
  key: `user_options_${ze.value}`,
534
537
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -541,7 +544,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
541
544
  hasXls: e.value.userOptions.buttons.csv,
542
545
  hasTable: e.value.userOptions.buttons.table,
543
546
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
544
- isFullscreen: X.value,
547
+ isFullscreen: G.value,
545
548
  titles: { ...e.value.userOptions.buttonTitles },
546
549
  chartElement: P.value,
547
550
  position: e.value.userOptions.position,
@@ -555,70 +558,70 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
555
558
  onGenerateImage: i(Ke),
556
559
  onToggleTable: st,
557
560
  onToggleAnnotator: ke,
558
- style: q({
561
+ style: J({
559
562
  visibility: i(We) ? i(ge) ? "visible" : "hidden" : "visible"
560
563
  })
561
- }, Jt({ _: 2 }, [
564
+ }, Qt({ _: 2 }, [
562
565
  t.$slots.menuIcon ? {
563
566
  name: "menuIcon",
564
- fn: L(({ isOpen: l, color: s }) => [
565
- S(t.$slots, "menuIcon", J(K({ isOpen: l, color: s })), void 0, !0)
567
+ fn: _(({ isOpen: l, color: s }) => [
568
+ S(t.$slots, "menuIcon", K(Q({ isOpen: l, color: s })), void 0, !0)
566
569
  ]),
567
570
  key: "0"
568
571
  } : void 0,
569
572
  t.$slots.optionPdf ? {
570
573
  name: "optionPdf",
571
- fn: L(() => [
574
+ fn: _(() => [
572
575
  S(t.$slots, "optionPdf", {}, void 0, !0)
573
576
  ]),
574
577
  key: "1"
575
578
  } : void 0,
576
579
  t.$slots.optionCsv ? {
577
580
  name: "optionCsv",
578
- fn: L(() => [
581
+ fn: _(() => [
579
582
  S(t.$slots, "optionCsv", {}, void 0, !0)
580
583
  ]),
581
584
  key: "2"
582
585
  } : void 0,
583
586
  t.$slots.optionImg ? {
584
587
  name: "optionImg",
585
- fn: L(() => [
588
+ fn: _(() => [
586
589
  S(t.$slots, "optionImg", {}, void 0, !0)
587
590
  ]),
588
591
  key: "3"
589
592
  } : void 0,
590
593
  t.$slots.optionTable ? {
591
594
  name: "optionTable",
592
- fn: L(() => [
595
+ fn: _(() => [
593
596
  S(t.$slots, "optionTable", {}, void 0, !0)
594
597
  ]),
595
598
  key: "4"
596
599
  } : void 0,
597
600
  t.$slots.optionFullscreen ? {
598
601
  name: "optionFullscreen",
599
- fn: L(({ toggleFullscreen: l, isFullscreen: s }) => [
600
- S(t.$slots, "optionFullscreen", J(K({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
602
+ fn: _(({ toggleFullscreen: l, isFullscreen: s }) => [
603
+ S(t.$slots, "optionFullscreen", K(Q({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
601
604
  ]),
602
605
  key: "5"
603
606
  } : void 0,
604
607
  t.$slots.optionAnnotator ? {
605
608
  name: "optionAnnotator",
606
- fn: L(({ toggleAnnotator: l, isAnnotator: s }) => [
607
- S(t.$slots, "optionAnnotator", J(K({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
609
+ fn: _(({ toggleAnnotator: l, isAnnotator: s }) => [
610
+ S(t.$slots, "optionAnnotator", K(Q({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
608
611
  ]),
609
612
  key: "6"
610
613
  } : void 0
611
614
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
612
- (o(), n("svg", {
615
+ (u(), n("svg", {
613
616
  ref_key: "svgRef",
614
617
  ref: Ye,
615
- xmlns: i(ul),
616
- class: N({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
618
+ xmlns: i(nl),
619
+ class: N({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
617
620
  viewBox: `0 0 ${r.value.absoluteWidth} ${r.value.absoluteHeight}`,
618
- style: q(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
621
+ style: J(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
619
622
  }, [
620
- Kt(i(St)),
621
- t.$slots["chart-background"] ? (o(), n("foreignObject", {
623
+ Zt(i(St)),
624
+ t.$slots["chart-background"] ? (u(), n("foreignObject", {
622
625
  key: 0,
623
626
  x: r.value.left,
624
627
  y: r.value.top,
@@ -629,7 +632,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
629
632
  }
630
633
  }, [
631
634
  S(t.$slots, "chart-background", {}, void 0, !0)
632
- ], 8, zl)) : v("", !0),
635
+ ], 8, Il)) : v("", !0),
633
636
  p("defs", null, [
634
637
  p("linearGradient", {
635
638
  id: `hover_${M.value}`,
@@ -640,31 +643,31 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
640
643
  }, [
641
644
  p("stop", {
642
645
  offset: "0%",
643
- "stop-color": i(Q)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
644
- }, null, 8, Il),
646
+ "stop-color": i(Z)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
647
+ }, null, 8, Tl),
645
648
  p("stop", {
646
649
  offset: "100%",
647
- "stop-color": i(Q)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
648
- }, null, 8, Nl)
649
- ], 8, $l),
650
+ "stop-color": i(Z)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
651
+ }, null, 8, Ol)
652
+ ], 8, Nl),
650
653
  p("radialGradient", {
651
654
  id: `focus_${M.value}`
652
655
  }, [
653
656
  p("stop", {
654
657
  offset: "0%",
655
- "stop-color": i(Q)(i(Le)(e.value.style.chart.backgroundColor), 0)
656
- }, null, 8, Ol),
658
+ "stop-color": i(Z)(i(_e)(e.value.style.chart.backgroundColor), 0)
659
+ }, null, 8, Dl),
657
660
  p("stop", {
658
661
  offset: "77%",
659
- "stop-color": i(Q)("#FFFFFF", 30)
660
- }, null, 8, Pl),
662
+ "stop-color": i(Z)("#FFFFFF", 30)
663
+ }, null, 8, Fl),
661
664
  p("stop", {
662
665
  offset: "100%",
663
- "stop-color": i(Q)(i(Le)(e.value.style.chart.backgroundColor), 0)
664
- }, null, 8, Fl)
665
- ], 8, Tl)
666
+ "stop-color": i(Z)(i(_e)(e.value.style.chart.backgroundColor), 0)
667
+ }, null, 8, El)
668
+ ], 8, Pl)
666
669
  ]),
667
- e.value.style.chart.layout.grid.show ? (o(), n("g", Dl, [
670
+ e.value.style.chart.layout.grid.show ? (u(), n("g", Rl, [
668
671
  p("line", {
669
672
  x1: r.value.left,
670
673
  x2: r.value.left,
@@ -673,7 +676,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
673
676
  stroke: e.value.style.chart.layout.grid.stroke,
674
677
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
675
678
  "stroke-linecap": "round"
676
- }, null, 8, El),
679
+ }, null, 8, Vl),
677
680
  p("line", {
678
681
  x1: r.value.left,
679
682
  x2: r.value.right,
@@ -682,9 +685,9 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
682
685
  stroke: e.value.style.chart.layout.grid.stroke,
683
686
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
684
687
  "stroke-linecap": "round"
685
- }, null, 8, Rl),
686
- e.value.style.chart.layout.grid.showVerticalLines ? (o(), n("g", Vl, [
687
- (o(!0), n(z, null, $(y.value.end - y.value.start, (l, s) => (o(), n("line", {
688
+ }, null, 8, Ml),
689
+ e.value.style.chart.layout.grid.showVerticalLines ? (u(), n("g", Hl, [
690
+ (u(!0), n(z, null, $(h.value.end - h.value.start, (l, s) => (u(), n("line", {
688
691
  x1: r.value.left + (s + 1) * k.value,
689
692
  x2: r.value.left + (s + 1) * k.value,
690
693
  y1: r.value.top,
@@ -692,11 +695,11 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
692
695
  stroke: e.value.style.chart.layout.grid.stroke,
693
696
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
694
697
  "stroke-linecap": "round"
695
- }, null, 8, Ml))), 256))
698
+ }, null, 8, Bl))), 256))
696
699
  ])) : v("", !0)
697
700
  ])) : v("", !0),
698
701
  p("g", null, [
699
- e.value.style.chart.layout.grid.axis.yLabel ? (o(), n("text", {
702
+ e.value.style.chart.layout.grid.axis.yLabel ? (u(), n("text", {
700
703
  key: 0,
701
704
  ref_key: "yAxisLabel",
702
705
  ref: de,
@@ -705,8 +708,8 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
705
708
  transform: `translate(${e.value.style.chart.layout.grid.axis.fontSize}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
706
709
  "text-anchor": "middle",
707
710
  style: { transition: "none" }
708
- }, m(e.value.style.chart.layout.grid.axis.yLabel), 9, Bl)) : v("", !0),
709
- e.value.style.chart.layout.grid.axis.xLabel ? (o(), n("text", {
711
+ }, m(e.value.style.chart.layout.grid.axis.yLabel), 9, Ul)) : v("", !0),
712
+ e.value.style.chart.layout.grid.axis.xLabel ? (u(), n("text", {
710
713
  key: 1,
711
714
  ref_key: "xAxisLabel",
712
715
  ref: ve,
@@ -715,16 +718,16 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
715
718
  y: r.value.absoluteHeight - 3,
716
719
  "font-size": e.value.style.chart.layout.grid.axis.fontSize,
717
720
  fill: e.value.style.chart.layout.grid.axis.color
718
- }, m(e.value.style.chart.layout.grid.axis.xLabel), 9, Hl)) : v("", !0)
721
+ }, m(e.value.style.chart.layout.grid.axis.xLabel), 9, Xl)) : v("", !0)
719
722
  ]),
720
- e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (o(), n("g", {
723
+ e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (u(), n("g", {
721
724
  key: 2,
722
725
  ref_key: "scaleLabels",
723
726
  ref: ce,
724
- class: N({ "donut-opacity": !0, "donut-behind": f.value !== null })
727
+ class: N({ "donut-opacity": !0, "donut-behind": g.value !== null })
725
728
  }, [
726
- (o(!0), n(z, null, $(Vt.value, (l, s) => (o(), n("g", null, [
727
- l.value >= H.value.min && l.value <= H.value.max ? (o(), n("line", {
729
+ (u(!0), n(z, null, $(Vt.value, (l, s) => (u(), n("g", null, [
730
+ l.value >= U.value.min && l.value <= U.value.max ? (u(), n("line", {
728
731
  key: 0,
729
732
  x1: r.value.left,
730
733
  x2: r.value.left - 5,
@@ -732,8 +735,8 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
732
735
  y2: l.y,
733
736
  stroke: e.value.style.chart.layout.grid.stroke,
734
737
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
735
- }, null, 8, Ul)) : v("", !0),
736
- l.value >= H.value.min && l.value <= H.value.max ? (o(), n("text", {
738
+ }, null, 8, Gl)) : v("", !0),
739
+ l.value >= U.value.min && l.value <= U.value.max ? (u(), n("text", {
737
740
  key: 1,
738
741
  x: r.value.left,
739
742
  y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
@@ -741,7 +744,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
741
744
  "text-anchor": "end",
742
745
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
743
746
  "font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
744
- }, m(i(sl)(l.value) ? i(Se)(
747
+ }, m(i(rl)(l.value) ? i(Se)(
745
748
  e.value.style.chart.layout.dataLabels.formatter,
746
749
  l.value,
747
750
  i(re)({
@@ -751,93 +754,93 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
751
754
  r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
752
755
  }),
753
756
  { datapoint: l, seriesIndex: s }
754
- ) : ""), 9, Xl)) : v("", !0)
757
+ ) : ""), 9, Wl)) : v("", !0)
755
758
  ]))), 256))
756
759
  ], 2)) : v("", !0),
757
- e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (o(), n("g", {
760
+ e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (u(), n("g", {
758
761
  key: 3,
759
762
  ref_key: "timeLabelsEls",
760
- ref: ee,
763
+ ref: te,
761
764
  class: N({ "donut-opacity": !0 })
762
765
  }, [
763
- (o(!0), n(z, null, $(y.value.end - y.value.start, (l, s) => (o(), n("g", null, [
764
- (e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === F.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && C.value[s] && C.value[s].text ? (o(), n("g", Gl, [
766
+ (u(!0), n(z, null, $(h.value.end - h.value.start, (l, s) => (u(), n("g", null, [
767
+ (e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === D.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && C.value[s] && C.value[s].text ? (u(), n("g", Yl, [
765
768
  String(C.value[s].text).includes(`
766
- `) ? (o(), n("text", {
769
+ `) ? (u(), n("text", {
767
770
  key: 1,
768
771
  class: "vue-data-ui-time-label",
769
772
  "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",
770
773
  "font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
771
774
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
772
775
  transform: `translate(${r.value.left + k.value * s + k.value / 2}, ${r.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`,
773
- innerHTML: i(nl)({
776
+ innerHTML: i(il)({
774
777
  content: String(C.value[s].text),
775
778
  fontSize: e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
776
779
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
777
780
  x: 0,
778
781
  y: 0
779
782
  })
780
- }, null, 8, Yl)) : (o(), n("text", {
783
+ }, null, 8, ql)) : (u(), n("text", {
781
784
  key: 0,
782
785
  class: "vue-data-ui-time-label",
783
786
  "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",
784
787
  "font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
785
788
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
786
789
  transform: `translate(${r.value.left + k.value * s + k.value / 2}, ${r.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
787
- }, m(C.value[s].text || ""), 9, Wl))
790
+ }, m(C.value[s].text || ""), 9, jl))
788
791
  ])) : v("", !0)
789
792
  ]))), 256))
790
793
  ], 512)) : v("", !0),
791
- (o(!0), n(z, null, $(_.value, (l, s) => (o(), n("g", null, [
792
- e.value.style.chart.layout.line.show && s < _.value.length - 1 && ![l.subtotal, _.value[s + 1].subtotal].includes(null) ? (o(), n("line", {
794
+ (u(!0), n(z, null, $(L.value, (l, s) => (u(), n("g", null, [
795
+ e.value.style.chart.layout.line.show && s < L.value.length - 1 && ![l.subtotal, L.value[s + 1].subtotal].includes(null) ? (u(), n("line", {
793
796
  key: 0,
794
- class: N({ "donut-opacity": !0, "donut-behind": f.value !== null }),
797
+ class: N({ "donut-opacity": !0, "donut-behind": g.value !== null }),
795
798
  x1: l.x,
796
799
  y1: l.y,
797
- x2: _.value[s + 1].x,
798
- y2: _.value[s + 1].y,
800
+ x2: L.value[s + 1].x,
801
+ y2: L.value[s + 1].y,
799
802
  stroke: e.value.style.chart.layout.line.stroke,
800
803
  "stroke-width": e.value.style.chart.layout.line.strokeWidth,
801
804
  "stroke-linecap": "round",
802
805
  "stroke-linejoin": "round"
803
- }, null, 10, jl)) : v("", !0),
804
- l.subtotal !== null ? (o(), n("g", ql, [
805
- l.subtotal ? (o(), n("circle", {
806
+ }, null, 10, Jl)) : v("", !0),
807
+ l.subtotal !== null ? (u(), n("g", Kl, [
808
+ l.subtotal ? (u(), n("circle", {
806
809
  key: 0,
807
810
  cx: l.x,
808
811
  cy: l.y,
809
812
  r: l.activeRadius,
810
813
  fill: e.value.style.chart.backgroundColor
811
- }, null, 8, Jl)) : v("", !0)
814
+ }, null, 8, Ql)) : v("", !0)
812
815
  ])) : v("", !0)
813
816
  ]))), 256)),
814
- (o(!0), n(z, null, $(_.value, (l, s) => (o(), n("g", {
815
- class: N({ "donut-opacity": !0, "donut-behind": s !== f.value && f.value !== null })
817
+ (u(!0), n(z, null, $(L.value, (l, s) => (u(), n("g", {
818
+ class: N({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
816
819
  }, [
817
- l.subtotal ? (o(), n("g", Kl, [
818
- f.value !== null && f.value === s ? (o(), n("g", Ql, [
819
- (o(!0), n(z, null, $(l.donutHover, (u) => (o(), n("g", null, [
820
- nt(u) ? (o(), n("path", {
820
+ l.subtotal ? (u(), n("g", Zl, [
821
+ g.value !== null && g.value === s ? (u(), n("g", ea, [
822
+ (u(!0), n(z, null, $(l.donutHover, (o) => (u(), n("g", null, [
823
+ nt(o) ? (u(), n("path", {
821
824
  key: 0,
822
- d: i(rl)(u, { x: u.center.endX, y: u.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
823
- stroke: u.color,
825
+ d: i(cl)(o, { x: o.center.endX, y: o.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
826
+ stroke: o.color,
824
827
  "stroke-width": "1",
825
828
  "stroke-linecap": "round",
826
829
  "stroke-linejoin": "round",
827
830
  fill: "none"
828
- }, null, 8, Zl)) : v("", !0)
831
+ }, null, 8, ta)) : v("", !0)
829
832
  ]))), 256)),
830
- (o(!0), n(z, null, $(l.donutHover, (u, h) => (o(), n("g", null, [
831
- nt(u) ? (o(), n("text", {
833
+ (u(!0), n(z, null, $(l.donutHover, (o, y) => (u(), n("g", null, [
834
+ nt(o) ? (u(), n("text", {
832
835
  key: 0,
833
836
  "data-cy-hover-label": "",
834
- "text-anchor": i(mt)(u, !0, 0).anchor,
835
- x: i(mt)(u, !0, 9).x,
836
- y: i(il)(u, 14, 10),
837
+ "text-anchor": i(mt)(o, !0, 0).anchor,
838
+ x: i(mt)(o, !0, 9).x,
839
+ y: i(vl)(o, 14, 10),
837
840
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
838
841
  "font-size": 8,
839
842
  "font-weight": "bold"
840
- }, m(u.name) + ": " + m(Mt(u, l.donut)) + " (" + m(u.value === null ? "-" : Ze(u.value, u, h)) + ") ", 9, ea)) : v("", !0)
843
+ }, m(o.name) + ": " + m(Mt(o, l.donut)) + " (" + m(o.value === null ? "-" : Ze(o.value, o, y)) + ") ", 9, la)) : v("", !0)
841
844
  ]))), 256)),
842
845
  p("g", null, [
843
846
  p("circle", {
@@ -845,88 +848,88 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
845
848
  cy: l.y,
846
849
  r: l.hoverRadius,
847
850
  fill: e.value.style.chart.backgroundColor
848
- }, null, 8, ta)
851
+ }, null, 8, aa)
849
852
  ])
850
853
  ])) : v("", !0)
851
854
  ])) : v("", !0)
852
855
  ], 2))), 256)),
853
- (o(!0), n(z, null, $(_.value, (l, s) => (o(), n("g", {
854
- class: N({ "donut-opacity": !0, "donut-behind": s !== f.value && f.value !== null })
856
+ (u(!0), n(z, null, $(L.value, (l, s) => (u(), n("g", {
857
+ class: N({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
855
858
  }, [
856
- l.subtotal !== null ? (o(), n("g", la, [
857
- l.subtotal === 0 ? (o(), n("circle", {
859
+ l.subtotal !== null ? (u(), n("g", oa, [
860
+ l.subtotal === 0 ? (u(), n("circle", {
858
861
  key: 0,
859
862
  cx: l.x,
860
863
  cy: l.y,
861
864
  r: 3,
862
865
  fill: e.value.style.chart.color
863
- }, null, 8, aa)) : f.value !== null && f.value === s ? (o(), n("g", oa, [
864
- (o(!0), n(z, null, $(l.donutHover, (u, h) => (o(), n("path", {
865
- d: u.arcSlice,
866
- fill: `${u.color}`,
866
+ }, null, 8, ua)) : g.value !== null && g.value === s ? (u(), n("g", sa, [
867
+ (u(!0), n(z, null, $(l.donutHover, (o, y) => (u(), n("path", {
868
+ d: o.arcSlice,
869
+ fill: `${o.color}`,
867
870
  "stroke-width": 1,
868
871
  stroke: e.value.style.chart.backgroundColor
869
- }, null, 8, ua))), 256))
870
- ])) : (o(), n("g", sa, [
871
- (o(!0), n(z, null, $(l.donut, (u, h) => (o(), n("path", {
872
- d: u.arcSlice,
873
- fill: `${u.color}`,
872
+ }, null, 8, na))), 256))
873
+ ])) : (u(), n("g", ra, [
874
+ (u(!0), n(z, null, $(l.donut, (o, y) => (u(), n("path", {
875
+ d: o.arcSlice,
876
+ fill: `${o.color}`,
874
877
  "stroke-width": 0.5,
875
878
  stroke: e.value.style.chart.backgroundColor
876
- }, null, 8, na))), 256))
879
+ }, null, 8, ia))), 256))
877
880
  ]))
878
881
  ])) : v("", !0)
879
882
  ], 2))), 256)),
880
- (o(!0), n(z, null, $(_.value, (l, s) => (o(), n("g", {
881
- class: N({ "donut-opacity": !0, "donut-behind": s !== f.value && f.value !== null || ie.value && s !== E.value.index })
883
+ (u(!0), n(z, null, $(L.value, (l, s) => (u(), n("g", {
884
+ class: N({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null || ie.value && s !== E.value.index })
882
885
  }, [
883
- l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (o(), n("text", {
886
+ l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (u(), n("text", {
884
887
  key: 0,
885
888
  "text-anchor": "middle",
886
889
  x: l.x,
887
- y: f.value === l.index && l.subtotal ? l.y + e.value.style.chart.layout.dataLabels.fontSize / 3 : l.y - l.radius - e.value.style.chart.layout.dataLabels.fontSize + e.value.style.chart.layout.dataLabels.offsetY,
890
+ y: g.value === l.index && l.subtotal ? l.y + e.value.style.chart.layout.dataLabels.fontSize / 3 : l.y - l.radius - e.value.style.chart.layout.dataLabels.fontSize + e.value.style.chart.layout.dataLabels.offsetY,
888
891
  "font-size": e.value.style.chart.layout.dataLabels.fontSize,
889
892
  "font-weight": "bold",
890
893
  fill: e.value.style.chart.layout.dataLabels.color
891
- }, m(Ze(l.subtotal, l, s)), 9, ra)) : v("", !0)
894
+ }, m(Ze(l.subtotal, l, s)), 9, ca)) : v("", !0)
892
895
  ], 2))), 256)),
893
- (o(!0), n(z, null, $(_.value, (l, s) => (o(), n("rect", {
896
+ (u(!0), n(z, null, $(L.value, (l, s) => (u(), n("rect", {
894
897
  x: r.value.left + s * k.value,
895
898
  y: r.value.top,
896
899
  width: k.value,
897
900
  height: r.value.height,
898
- fill: [f.value, j.value].includes(l.index) ? `url(#hover_${M.value})` : "transparent",
899
- class: N({ "donut-hover": l.subtotal && [f.value, j.value].includes(l.index) }),
901
+ fill: [g.value, q.value].includes(l.index) ? `url(#hover_${M.value})` : "transparent",
902
+ class: N({ "donut-hover": l.subtotal && [g.value, q.value].includes(l.index) }),
900
903
  style: {
901
904
  pointerEvents: "none"
902
905
  }
903
- }, null, 10, ia))), 256)),
904
- (o(!0), n(z, null, $(_.value, (l, s) => (o(), n("rect", {
906
+ }, null, 10, va))), 256)),
907
+ (u(!0), n(z, null, $(L.value, (l, s) => (u(), n("rect", {
905
908
  "data-cy-trap": "",
906
909
  x: r.value.left + s * k.value,
907
910
  y: r.value.top,
908
911
  width: k.value,
909
912
  height: r.value.height,
910
913
  fill: "transparent",
911
- onMouseenter: (u) => Bt(l),
912
- onMouseleave: et,
913
- onClick: (u) => tt(l, s),
914
- class: N({ "donut-hover": f.value === l.index && l.subtotal })
915
- }, null, 42, ca))), 256)),
914
+ onMouseenter: (o) => Ht(l),
915
+ onMouseleave: (o) => et(l),
916
+ onClick: (o) => tt(l, s),
917
+ class: N({ "donut-hover": g.value === l.index && l.subtotal })
918
+ }, null, 42, da))), 256)),
916
919
  S(t.$slots, "svg", { svg: r.value }, void 0, !0)
917
- ], 14, Sl)),
918
- t.$slots.watermark ? (o(), n("div", va, [
919
- S(t.$slots, "watermark", J(K({ isPrinting: i(je) || i(qe) })), void 0, !0)
920
+ ], 14, $l)),
921
+ t.$slots.watermark ? (u(), n("div", ha, [
922
+ S(t.$slots, "watermark", K(Q({ isPrinting: i(je) || i(qe) })), void 0, !0)
920
923
  ])) : v("", !0),
921
924
  p("div", {
922
925
  ref_key: "chartSlicer",
923
926
  ref: Ee,
924
- style: q(`width:100%;background:${e.value.style.chart.backgroundColor}`),
927
+ style: J(`width:100%;background:${e.value.style.chart.backgroundColor}`),
925
928
  "data-dom-to-png-ignore": ""
926
929
  }, [
927
- F.value > 1 && e.value.style.chart.zoom.show ? (o(), T(xl, {
930
+ D.value > 1 && e.value.style.chart.zoom.show ? (u(), T(kl, {
928
931
  ref_key: "slicerComponent",
929
- ref: De,
932
+ ref: Fe,
930
933
  key: `slicer_${$e.value}`,
931
934
  background: e.value.style.chart.zoom.color,
932
935
  borderColor: e.value.style.chart.backgroundColor,
@@ -937,22 +940,22 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
937
940
  textColor: e.value.style.chart.color,
938
941
  inputColor: e.value.style.chart.zoom.color,
939
942
  selectColor: e.value.style.chart.zoom.highlightColor,
940
- max: F.value,
943
+ max: D.value,
941
944
  min: 0,
942
- valueStart: y.value.start,
943
- valueEnd: y.value.end,
944
- start: y.value.start,
945
- "onUpdate:start": a[0] || (a[0] = (l) => y.value.start = l),
946
- end: y.value.end,
947
- "onUpdate:end": a[1] || (a[1] = (l) => y.value.end = l),
945
+ valueStart: h.value.start,
946
+ valueEnd: h.value.end,
947
+ start: h.value.start,
948
+ "onUpdate:start": a[0] || (a[0] = (l) => h.value.start = l),
949
+ end: h.value.end,
950
+ "onUpdate:end": a[1] || (a[1] = (l) => h.value.end = l),
948
951
  refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
949
- refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : F.value,
952
+ refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : D.value,
950
953
  enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
951
954
  enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
952
955
  onReset: Xe
953
956
  }, {
954
- "reset-action": L(({ reset: l }) => [
955
- S(t.$slots, "reset-action", J(K({ reset: l })), void 0, !0)
957
+ "reset-action": _(({ reset: l }) => [
958
+ S(t.$slots, "reset-action", K(Q({ reset: l })), void 0, !0)
956
959
  ]),
957
960
  _: 3
958
961
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : v("", !0)
@@ -961,16 +964,16 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
961
964
  ref_key: "chartLegend",
962
965
  ref: Pe
963
966
  }, [
964
- e.value.style.chart.legend.show ? (o(), T(bl, {
967
+ e.value.style.chart.legend.show ? (u(), T(pl, {
965
968
  key: `legend_${Te.value}`,
966
969
  legendSet: lt.value,
967
- config: Ht.value,
970
+ config: Bt.value,
968
971
  onClickMarker: a[2] || (a[2] = ({ legend: l }) => pe(l.uid))
969
972
  }, {
970
- item: L(({ legend: l, index: s }) => [
973
+ item: _(({ legend: l, index: s }) => [
971
974
  p("div", {
972
- onClick: (u) => pe(l.uid),
973
- style: q(`opacity:${w.value.includes(l.uid) ? 0.5 : 1}`)
975
+ onClick: (o) => pe(l.uid),
976
+ style: J(`opacity:${w.value.includes(l.uid) ? 0.5 : 1}`)
974
977
  }, m(l.name) + m(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + m(e.value.style.chart.legend.showValue ? i(Se)(
975
978
  e.value.style.chart.layout.dataLabels.formatter,
976
979
  l.value,
@@ -985,21 +988,21 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
985
988
  v: l.value / at.value * 100,
986
989
  s: "%",
987
990
  r: e.value.style.chart.legend.roundingPercentage
988
- })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, da)
991
+ })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, ya)
989
992
  ]),
990
993
  _: 1
991
994
  }, 8, ["legendSet", "config"])) : v("", !0),
992
995
  S(t.$slots, "legend", { legend: lt.value }, void 0, !0)
993
996
  ], 512),
994
- t.$slots.source ? (o(), n("div", {
997
+ t.$slots.source ? (u(), n("div", {
995
998
  key: 5,
996
999
  ref_key: "source",
997
- ref: Fe,
1000
+ ref: De,
998
1001
  dir: "auto"
999
1002
  }, [
1000
1003
  S(t.$slots, "source", {}, void 0, !0)
1001
1004
  ], 512)) : v("", !0),
1002
- Me.value ? (o(), T(i(_t), {
1005
+ Me.value ? (u(), T(i(Lt), {
1003
1006
  key: 6,
1004
1007
  hideDetails: "",
1005
1008
  config: {
@@ -1015,21 +1018,21 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
1015
1018
  }
1016
1019
  }
1017
1020
  }, {
1018
- content: L(() => [
1019
- (o(), T(i(At), {
1021
+ content: _(() => [
1022
+ (u(), T(i(At), {
1020
1023
  key: `table_${Ne.value}`,
1021
- colNames: U.value.colNames,
1022
- head: U.value.head,
1023
- body: U.value.body,
1024
- config: U.value.config,
1024
+ colNames: X.value.colNames,
1025
+ head: X.value.head,
1026
+ body: X.value.body,
1027
+ config: X.value.config,
1025
1028
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1026
1029
  onClose: a[3] || (a[3] = (l) => B.value.showTable = !1)
1027
1030
  }, {
1028
- th: L(({ th: l }) => [
1031
+ th: _(({ th: l }) => [
1029
1032
  dt(m(l.name ?? l), 1)
1030
1033
  ]),
1031
- td: L(({ td: l }) => [
1032
- l.value === null ? (o(), n("span", ha, "-")) : (o(), n("b", ya, m(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + m(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + m(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
1034
+ td: _(({ td: l }) => [
1035
+ l.value === null ? (u(), n("span", fa, "-")) : (u(), n("b", ga, m(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + m(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + m(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
1033
1036
  p("span", null, m(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
1034
1037
  ]),
1035
1038
  _: 1
@@ -1037,25 +1040,25 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
1037
1040
  ]),
1038
1041
  _: 1
1039
1042
  }, 8, ["config"])) : v("", !0),
1040
- e.value.style.chart.dialog.show ? (o(), T(i(Lt), {
1043
+ e.value.style.chart.dialog.show ? (u(), T(i(_t), {
1041
1044
  key: 7,
1042
1045
  ref_key: "dialog",
1043
1046
  ref: we,
1044
1047
  onClose: a[4] || (a[4] = (l) => {
1045
- E.value = null, ie.value = !1, Z.value = null, f.value = null, j.value = null;
1048
+ E.value = null, ie.value = !1, ee.value = null, g.value = null, q.value = null;
1046
1049
  }),
1047
1050
  backgroundColor: e.value.style.chart.dialog.backgroundColor,
1048
1051
  color: e.value.style.chart.dialog.color,
1049
1052
  headerBg: e.value.style.chart.dialog.header.backgroundColor,
1050
1053
  headerColor: e.value.style.chart.dialog.header.color,
1051
- isFullscreen: X.value,
1054
+ isFullscreen: G.value,
1052
1055
  fullscreenParent: P.value
1053
1056
  }, {
1054
- title: L(() => [
1057
+ title: _(() => [
1055
1058
  dt(m(C.value[Number(E.value.index)] ? C.value[Number(E.value.index)].text : ""), 1)
1056
1059
  ]),
1057
- default: L(() => [
1058
- E.value ? (o(), T(i(It), {
1060
+ default: _(() => [
1061
+ E.value ? (u(), T(i(It), {
1059
1062
  key: 0,
1060
1063
  config: it.value,
1061
1064
  dataset: rt.value
@@ -1063,10 +1066,10 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
1063
1066
  ]),
1064
1067
  _: 1
1065
1068
  }, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : v("", !0),
1066
- i(He) ? (o(), T(_l, { key: 8 })) : v("", !0)
1067
- ], 46, Al));
1069
+ i(Be) ? (u(), T(Al, { key: 8 })) : v("", !0)
1070
+ ], 46, zl));
1068
1071
  }
1069
- }, Na = /* @__PURE__ */ Ll(fa, [["__scopeId", "data-v-e863f653"]]);
1072
+ }, Oa = /* @__PURE__ */ Sl(ma, [["__scopeId", "data-v-b059689d"]]);
1070
1073
  export {
1071
- Na as default
1074
+ Oa as default
1072
1075
  };