vue-data-ui 3.1.1 → 3.1.3

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 (95) hide show
  1. package/dist/{Arrow-xQM7mBzd.js → Arrow-DBaAWGvq.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B2BQC0-h.js → BaseDraggableDialog-BmN9jTP8.js} +2 -2
  3. package/dist/{BaseIcon-DLesaZpW.js → BaseIcon-BcOSijbz.js} +5 -3
  4. package/dist/{ColorPicker-BKvJvFtX.js → ColorPicker-D1yNPt76.js} +2 -2
  5. package/dist/{DataTable-BAf4Obr9.js → DataTable-Cm8Tt9PQ.js} +2 -2
  6. package/dist/Legend-5qvgVkrY.js +85 -0
  7. package/dist/{NonSvgPenAndPaper-Cq4fHmA0.js → NonSvgPenAndPaper-D3QGd7vP.js} +3 -3
  8. package/dist/{PackageVersion-Cv_ypT0N.js → PackageVersion-0XlRFsI_.js} +1 -1
  9. package/dist/{PenAndPaper-B6OvfyHH.js → PenAndPaper-CyH7Ip2i.js} +3 -3
  10. package/dist/{Shape-Cjca5zta.js → Shape-DiplSMFy.js} +1 -1
  11. package/dist/{Slicer-6w3K8gAc.js → Slicer-DG99wPTy.js} +11 -9
  12. package/dist/{SparkTooltip-BV4Z-NMp.js → SparkTooltip-VveQSwlw.js} +1 -1
  13. package/dist/Title-CqYBs02Y.js +88 -0
  14. package/dist/{Tooltip-BTGOEC7w.js → Tooltip-CP0tVHAf.js} +1 -1
  15. package/dist/{UserOptions-CsDlFB0L.js → UserOptions-ZmwlARCV.js} +125 -108
  16. package/dist/{dom-to-png-BOu5-Ohz.js → dom-to-png-DGA4a3xT.js} +1 -1
  17. package/dist/{img-gBDz7xQQ.js → img-DSrvx9J6.js} +1 -1
  18. package/dist/{index-BKQqb9lF.js → index-CaxArMHL.js} +97 -74
  19. package/dist/pdf-BG8PiGFH.js +79 -0
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +28 -3
  22. package/dist/types/vue-data-ui.d.ts +28 -3
  23. package/dist/{useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js → useAutoSizeLabelsInsideViewbox-DmtFf4bt.js} +1 -1
  24. package/dist/{useNestedProp-aBOhgs4U.js → useNestedProp-tWT02_6S.js} +1 -1
  25. package/dist/{usePrinter-BzuXiubT.js → usePrinter-BYtPmEo8.js} +13 -12
  26. package/dist/{vue-data-ui-B6eM6hF3.js → vue-data-ui-DVb8r5z7.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-DBeWmnvH.js → vue-ui-3d-bar-BLKyWpz7.js} +371 -366
  29. package/dist/{vue-ui-accordion-B5QeV3BK.js → vue-ui-accordion-DUlNpLir.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-rZFdUsgz.js → vue-ui-age-pyramid-LLqbXP1m.js} +200 -195
  31. package/dist/{vue-ui-annotator-CCCuslrT.js → vue-ui-annotator-CcYIlcKF.js} +2 -2
  32. package/dist/{vue-ui-bullet-DhJf9mvK.js → vue-ui-bullet-BKmts_u4.js} +7 -7
  33. package/dist/{vue-ui-candlestick-CGVtDKqZ.js → vue-ui-candlestick-C9l_NpXu.js} +225 -220
  34. package/dist/{vue-ui-carousel-table-DLAR3WY8.js → vue-ui-carousel-table-H7xS6aBC.js} +4 -4
  35. package/dist/{vue-ui-chestnut-BXnSxoXB.js → vue-ui-chestnut-CAW0IOdY.js} +344 -340
  36. package/dist/{vue-ui-chord-DH_MwAKX.js → vue-ui-chord-CK5YhCqM.js} +272 -266
  37. package/dist/{vue-ui-circle-pack-Cx_E1R63.js → vue-ui-circle-pack-NLyZgTGF.js} +6 -6
  38. package/dist/{vue-ui-cursor-CEvH1qDS.js → vue-ui-cursor-CyGUrKWU.js} +2 -2
  39. package/dist/vue-ui-dashboard-Cf5pvEzD.js +412 -0
  40. package/dist/{vue-ui-digits-PTozKs3l.js → vue-ui-digits-BZWwwp7c.js} +2 -2
  41. package/dist/{vue-ui-donut-evolution-DD7o-CxF.js → vue-ui-donut-evolution-CaEYMVZj.js} +310 -304
  42. package/dist/{vue-ui-donut-CsEtKJJD.js → vue-ui-donut-g1WHrj6G.js} +348 -343
  43. package/dist/{vue-ui-dumbbell-DfPYl3fu.js → vue-ui-dumbbell-BArS1nXS.js} +293 -287
  44. package/dist/{vue-ui-flow-CSTTZHwg.js → vue-ui-flow-BR0CB5qt.js} +263 -257
  45. package/dist/{vue-ui-funnel-C-NUZqIo.js → vue-ui-funnel-D2OCItvq.js} +206 -200
  46. package/dist/{vue-ui-galaxy-BwsZnU6T.js → vue-ui-galaxy-qgGF1AAf.js} +243 -238
  47. package/dist/{vue-ui-gauge-D9MUneq0.js → vue-ui-gauge-BIXmGyQL.js} +7 -7
  48. package/dist/{vue-ui-gizmo-Dnzs9wSf.js → vue-ui-gizmo-DHEoS051.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CYaQIhy8.js → vue-ui-heatmap-tRzq9BnI.js} +405 -401
  50. package/dist/{vue-ui-history-plot-DMTFzl-_.js → vue-ui-history-plot-DmwHhrDk.js} +305 -299
  51. package/dist/{vue-ui-kpi-CkPotdff.js → vue-ui-kpi-C2b2R5i1.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CCE-bDOJ.js → vue-ui-mini-loader-Bs1Mi1tD.js} +2 -2
  53. package/dist/{vue-ui-molecule-DaN5lroq.js → vue-ui-molecule-BsUvf2v7.js} +188 -183
  54. package/dist/{vue-ui-mood-radar-tM0mmZh8.js → vue-ui-mood-radar-D3JIpVvX.js} +197 -192
  55. package/dist/{vue-ui-nested-donuts-RB4r6beI.js → vue-ui-nested-donuts-dJEgQXTH.js} +326 -320
  56. package/dist/{vue-ui-onion-CxDozHg3.js → vue-ui-onion-D8dF1DdA.js} +8 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-CK9nNExU.js → vue-ui-parallel-coordinate-plot-LmFsg7UA.js} +401 -395
  58. package/dist/{vue-ui-quadrant-C7tLJYn7.js → vue-ui-quadrant-C4O8ki4N.js} +339 -334
  59. package/dist/{vue-ui-quick-chart-MUBAkrHb.js → vue-ui-quick-chart-6bEtTQBG.js} +6 -6
  60. package/dist/{vue-ui-radar-Br4K80I9.js → vue-ui-radar-CfjGWGk3.js} +248 -243
  61. package/dist/{vue-ui-rating-NtvT9r_M.js → vue-ui-rating-D3WSs2OD.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CPQjAy1g.js → vue-ui-relation-circle-DzTfi7Tf.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-C2M_Cjlh.js → vue-ui-ridgeline-NtYOJvDy.js} +267 -263
  64. package/dist/{vue-ui-rings-DEru-cWN.js → vue-ui-rings-CYQ4i71V.js} +229 -224
  65. package/dist/{vue-ui-scatter-CJKkiKle.js → vue-ui-scatter-meJEHdAD.js} +359 -354
  66. package/dist/{vue-ui-skeleton--twnjS2t.js → vue-ui-skeleton-BtILTxx-.js} +3 -3
  67. package/dist/{vue-ui-smiley-CNccdPZ7.js → vue-ui-smiley-B5bELpYD.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-9BFkkC0u.js → vue-ui-spark-trend-lixdWq_N.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-RYAThoA4.js → vue-ui-sparkbar-CaGPav-J.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DkPlmgMF.js → vue-ui-sparkgauge-BZBGYDjs.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-6EkCyYRF.js → vue-ui-sparkhistogram-Bp6KxpjH.js} +4 -4
  72. package/dist/{vue-ui-sparkline-Bl3nj8zd.js → vue-ui-sparkline-CF-EAZa6.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-B88lA7iy.js → vue-ui-sparkstackbar-Cj1LAYC8.js} +3 -3
  74. package/dist/{vue-ui-stackbar-Csj7NhT6.js → vue-ui-stackbar-BrzKhqAK.js} +310 -304
  75. package/dist/{vue-ui-strip-plot-yY9NsUUI.js → vue-ui-strip-plot-BfVVaSFn.js} +246 -240
  76. package/dist/{vue-ui-table-Dg6U31ex.js → vue-ui-table-CBzNgzVP.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-BWU7CAWP.js → vue-ui-table-heatmap-CKz5bA7N.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-DV4Y9aRL.js → vue-ui-table-sparkline-O-Z0YH6u.js} +4 -4
  79. package/dist/{vue-ui-thermometer-C3fKamV-.js → vue-ui-thermometer-DpNyTGNH.js} +7 -7
  80. package/dist/{vue-ui-timer-6VAK9XyF.js → vue-ui-timer-uvshaRMI.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BB-KAkF7.js → vue-ui-tiremarks-A8Akuz-q.js} +6 -6
  82. package/dist/{vue-ui-treemap-GrXkD_3Z.js → vue-ui-treemap-Dvmuo3tM.js} +262 -256
  83. package/dist/{vue-ui-vertical-bar-Mmz6u4aX.js → vue-ui-vertical-bar-eMgRMSKN.js} +310 -306
  84. package/dist/{vue-ui-waffle-DzPVRUOA.js → vue-ui-waffle-Cm8VfnG8.js} +257 -252
  85. package/dist/{vue-ui-wheel-idRCvS5t.js → vue-ui-wheel-Bhsklf_m.js} +6 -6
  86. package/dist/vue-ui-word-cloud-C9HGLsG4.js +817 -0
  87. package/dist/{vue-ui-world-D6s5Eph8.js → vue-ui-world-B_MrjwGJ.js} +257 -252
  88. package/dist/{vue-ui-xy-BKTGSvfU.js → vue-ui-xy-DnYJw2aS.js} +1448 -1438
  89. package/dist/{vue-ui-xy-canvas-BOQyxVRl.js → vue-ui-xy-canvas-C0Snw0Dz.js} +235 -229
  90. package/package.json +1 -1
  91. package/dist/Legend-8_V5egWW.js +0 -72
  92. package/dist/Title-Dz-j6ERs.js +0 -61
  93. package/dist/pdf-Cjsn5GEE.js +0 -61
  94. package/dist/vue-ui-dashboard-CvduVgEy.js +0 -325
  95. package/dist/vue-ui-word-cloud-B2641uNP.js +0 -811
@@ -1,22 +1,22 @@
1
- import { defineAsyncComponent as V, ref as c, shallowRef as gt, computed as f, onMounted as el, toRefs as tl, nextTick as Se, watch as re, watchEffect as ll, onBeforeUnmount as al, createElementBlock as n, openBlock as o, unref as i, normalizeStyle as Q, normalizeClass as P, createBlock as D, createCommentVNode as v, createElementVNode as b, createSlots as bt, withCtx as k, renderSlot as S, normalizeProps as Z, guardReactiveProps as ee, createVNode as mt, Fragment as $, renderList as z, toDisplayString as m, Teleport as ol, resolveDynamicComponent as ul, mergeProps as sl, createTextVNode as $e } from "vue";
2
- import { u as nl, c as xt, o as pt, f as ie, g as rl, t as il, a as cl, p as ce, b as vl, C as kt, d as dl, e as ze, G as hl, D as wt, m as Ie, X as yl, s as te, H as fl, k as Te, i as ve, I as gl, n as bl, q as ml, r as Ct, v as xl, w as pl, J as Lt, K as kl } from "./index-BKQqb9lF.js";
3
- import { t as _t, u as wl } from "./useResponsive-DfdjqQps.js";
4
- import { u as Cl } from "./usePrinter-BzuXiubT.js";
5
- import { u as Ll, B as _l } from "./BaseScanner-BgWxam9d.js";
6
- import { u as Al } from "./useTimeLabels-BGFjWgrv.js";
7
- import { u as At } from "./useNestedProp-aBOhgs4U.js";
8
- import { u as Sl } from "./useUserOptionState-BIvW1Kz7.js";
9
- import { u as $l } from "./useChartAccessibility-9icAAmYg.js";
10
- import { u as zl } from "./useTimeLabelCollider-CIsgDrl9.js";
11
- import Il from "./img-gBDz7xQQ.js";
12
- import Tl from "./Title-Dz-j6ERs.js";
13
- import Dl from "./Legend-8_V5egWW.js";
14
- import { S as Nl } from "./Slicer-6w3K8gAc.js";
15
- import { _ as Pl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "width", "height"], Vl = ["id"], Bl = ["stop-color"], Ml = ["stop-color"], Hl = ["id"], Ul = ["stop-color"], Xl = ["stop-color"], Wl = ["stop-color"], Gl = { key: 1 }, Yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ql = { key: 0 }, Jl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kl = ["font-size", "fill", "transform"], Ql = ["x", "y", "font-size", "fill"], Zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ea = ["x", "y", "font-size", "fill", "font-weight"], ta = { key: 0 }, la = ["text-anchor", "font-size", "fill", "transform"], aa = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], oa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ua = { key: 1 }, sa = ["cx", "cy", "r", "fill"], na = { key: 0 }, ra = { key: 0 }, ia = ["d", "stroke"], ca = ["text-anchor", "x", "y", "fill"], va = ["cx", "cy", "r", "fill"], da = { key: 0 }, ha = ["cx", "cy", "fill"], ya = { key: 1 }, fa = ["d", "fill", "stroke"], ga = { key: 2 }, ba = ["d", "fill", "stroke"], ma = ["x", "y", "font-size", "fill"], xa = ["x", "y", "width", "height", "fill"], pa = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], ka = {
1
+ import { defineAsyncComponent as R, ref as c, shallowRef as mt, computed as f, onMounted as ll, toRefs as al, nextTick as ze, watch as re, watchEffect as ol, onBeforeUnmount as ul, createElementBlock as n, openBlock as o, unref as i, normalizeStyle as Q, normalizeClass as O, createBlock as D, createCommentVNode as v, createElementVNode as b, createSlots as xt, withCtx as k, renderSlot as S, normalizeProps as Z, guardReactiveProps as ee, createVNode as pt, Fragment as z, renderList as $, toDisplayString as m, Teleport as sl, resolveDynamicComponent as nl, mergeProps as rl, createTextVNode as $e } from "vue";
2
+ import { u as il, c as kt, o as wt, f as ie, g as cl, t as vl, a as dl, p as ce, b as hl, C as Ct, d as yl, e as Ie, G as fl, D as _t, m as Te, X as gl, s as te, H as bl, k as De, i as ve, I as ml, n as xl, q as pl, r as Lt, v as kl, w as wl, J as At, K as Cl } from "./index-CaxArMHL.js";
3
+ import { t as St, u as _l } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ll } from "./usePrinter-BYtPmEo8.js";
5
+ import { u as Al, B as Sl } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as zl } from "./useTimeLabels-BGFjWgrv.js";
7
+ import { u as zt } from "./useNestedProp-tWT02_6S.js";
8
+ import { u as $l } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as Il } from "./useChartAccessibility-9icAAmYg.js";
10
+ import { u as Tl } from "./useTimeLabelCollider-CIsgDrl9.js";
11
+ import Dl from "./img-DSrvx9J6.js";
12
+ import Nl from "./Title-CqYBs02Y.js";
13
+ import Ol from "./Legend-5qvgVkrY.js";
14
+ import { S as Pl } from "./Slicer-DG99wPTy.js";
15
+ import { _ as Fl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ const El = ["id"], Rl = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "width", "height"], Ml = ["id"], Hl = ["stop-color"], Ul = ["stop-color"], Xl = ["id"], Wl = ["stop-color"], Gl = ["stop-color"], Yl = ["stop-color"], jl = { key: 1 }, ql = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Jl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kl = { key: 0 }, Ql = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Zl = ["font-size", "fill", "transform"], ea = ["x", "y", "font-size", "fill"], ta = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], la = ["x", "y", "font-size", "fill", "font-weight"], aa = { key: 0 }, oa = ["text-anchor", "font-size", "fill", "transform"], ua = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], sa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], na = { key: 1 }, ra = ["cx", "cy", "r", "fill"], ia = { key: 0 }, ca = { key: 0 }, va = ["d", "stroke"], da = ["text-anchor", "x", "y", "fill"], ha = ["cx", "cy", "r", "fill"], ya = { key: 0 }, fa = ["cx", "cy", "fill"], ga = { key: 1 }, ba = ["d", "fill", "stroke"], ma = { key: 2 }, xa = ["d", "fill", "stroke"], pa = ["x", "y", "font-size", "fill"], ka = ["x", "y", "width", "height", "fill"], wa = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], Ca = {
17
17
  key: 4,
18
18
  class: "vue-data-ui-watermark"
19
- }, wa = ["id"], Ca = ["onClick"], La = { key: 0 }, _a = { key: 1 }, Aa = {
19
+ }, _a = ["id"], La = ["onClick"], Aa = { key: 0 }, Sa = { key: 1 }, za = {
20
20
  __name: "vue-ui-donut-evolution",
21
21
  props: {
22
22
  config: {
@@ -33,19 +33,19 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
33
33
  }
34
34
  },
35
35
  emits: ["selectLegend"],
36
- setup(St, { expose: $t, emit: zt }) {
37
- const It = V(() => import("./vue-ui-accordion-B5QeV3BK.js")), Tt = V(() => import("./BaseIcon-DLesaZpW.js")), Dt = V(() => import("./DataTable-BAf4Obr9.js")), Nt = V(() => import("./PackageVersion-Cv_ypT0N.js")), Pt = V(() => import("./PenAndPaper-B6OvfyHH.js")), Ot = V(() => import("./UserOptions-CsDlFB0L.js")), Ft = V(() => import("./vue-ui-donut-CsEtKJJD.js")), De = V(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_donut_evolution: Et } = nl(), x = St, N = c(xt()), C = c([]), g = c(null), le = c(null), de = c(!1), B = c(null), O = c(null), Rt = c(null), Ne = c(0), Pe = c(0), Oe = c(0), Fe = c(0), Ee = c(0), he = c(null), ae = c(null), ye = c(null), fe = c(null), Re = c(!1), Y = c(null), Ve = c(null), Be = c(null), Me = c(null), He = c(null), Ue = c(null), ge = c(!1), j = gt(null), oe = gt(null), Xe = c(null), We = zt, Ge = f(() => !!x.dataset && x.dataset.length);
38
- el(() => {
39
- Re.value = !0, Ye();
36
+ setup($t, { expose: It, emit: Tt }) {
37
+ const Dt = R(() => import("./vue-ui-accordion-DUlNpLir.js")), Nt = R(() => import("./BaseIcon-BcOSijbz.js")), Ot = R(() => import("./DataTable-Cm8Tt9PQ.js")), Pt = R(() => import("./PackageVersion-0XlRFsI_.js")), Ft = R(() => import("./PenAndPaper-CyH7Ip2i.js")), Et = R(() => import("./UserOptions-ZmwlARCV.js")), Rt = R(() => import("./vue-ui-donut-g1WHrj6G.js")), Ne = R(() => import("./BaseDraggableDialog-BmN9jTP8.js")), { vue_ui_donut_evolution: Vt } = il(), x = $t, N = c(kt()), C = c([]), g = c(null), le = c(null), de = c(!1), V = c(null), P = c(null), Bt = c(null), Oe = c(0), Pe = c(0), Fe = c(0), Ee = c(0), Re = c(0), he = c(null), ae = c(null), ye = c(null), fe = c(null), Ve = c(!1), Y = c(null), ge = c(null), Be = c(null), Me = c(null), He = c(null), Ue = c(null), Xe = c(null), be = c(!1), j = mt(null), oe = mt(null), We = c(null), Ge = Tt, Ye = f(() => !!x.dataset && x.dataset.length);
38
+ ll(() => {
39
+ Ve.value = !0, je();
40
40
  });
41
41
  const ue = f(() => !!e.value.debug);
42
- function Ye() {
43
- if (pt(x.dataset) ? (ie({
42
+ function je() {
43
+ if (wt(x.dataset) ? (ie({
44
44
  componentName: "VueUiDonutEvolution",
45
45
  type: "dataset",
46
46
  debug: ue.value
47
47
  }), se.value = !0) : x.dataset.length && x.dataset.forEach((t, a) => {
48
- rl({
48
+ cl({
49
49
  datasetObject: t,
50
50
  requiredAttributes: ["name", "values"]
51
51
  }).forEach((l) => {
@@ -57,34 +57,34 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
57
57
  debug: ue.value
58
58
  }), se.value = !0;
59
59
  });
60
- }), pt(x.dataset) || (se.value = e.value.loading), setTimeout(() => {
61
- ge.value = !0;
62
- }, 10), me(), e.value.responsive) {
63
- const t = _t(() => {
64
- ge.value = !1;
65
- const { width: a, height: l } = wl({
66
- chart: O.value,
67
- title: e.value.style.chart.title.text ? Ve.value : null,
68
- legend: e.value.style.chart.legend.show ? Be.value : null,
69
- slicer: e.value.style.chart.zoom.show && qe.value > 1 ? Ue.value : null,
70
- source: Me.value
60
+ }), wt(x.dataset) || (se.value = e.value.loading), setTimeout(() => {
61
+ be.value = !0;
62
+ }, 10), xe(), e.value.responsive) {
63
+ const t = St(() => {
64
+ be.value = !1;
65
+ const { width: a, height: l } = _l({
66
+ chart: P.value,
67
+ title: e.value.style.chart.title.text ? Be.value : null,
68
+ legend: e.value.style.chart.legend.show ? Me.value : null,
69
+ slicer: e.value.style.chart.zoom.show && Je.value > 1 ? Xe.value : null,
70
+ source: He.value
71
71
  });
72
72
  requestAnimationFrame(() => {
73
- U.value.width = a, U.value.height = l - 12, clearTimeout(Xe.value), Xe.value = setTimeout(() => {
74
- ge.value = !0;
73
+ U.value.width = a, U.value.height = l - 12, clearTimeout(We.value), We.value = setTimeout(() => {
74
+ be.value = !0;
75
75
  }, 10);
76
76
  });
77
77
  });
78
- j.value && (oe.value && j.value.unobserve(oe.value), j.value.disconnect()), j.value = new ResizeObserver(t), oe.value = O.value.parentNode, j.value.observe(oe.value);
78
+ j.value && (oe.value && j.value.unobserve(oe.value), j.value.disconnect()), j.value = new ResizeObserver(t), oe.value = P.value.parentNode, j.value.observe(oe.value);
79
79
  }
80
80
  }
81
- const e = c(pe()), { loading: je, FINAL_DATASET: be, manualLoading: se } = Ll({
82
- ...tl(x),
81
+ const e = c(ke()), { loading: qe, FINAL_DATASET: me, manualLoading: se } = Al({
82
+ ...al(x),
83
83
  FINAL_CONFIG: e,
84
- prepareConfig: pe,
84
+ prepareConfig: ke,
85
85
  callback: () => {
86
86
  Promise.resolve().then(async () => {
87
- await me();
87
+ await xe();
88
88
  });
89
89
  },
90
90
  skeletonDataset: [
@@ -104,7 +104,7 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
104
104
  color: "#CACACA"
105
105
  }
106
106
  ],
107
- skeletonConfig: il({
107
+ skeletonConfig: vl({
108
108
  defaultConfig: e.value,
109
109
  userConfig: {
110
110
  useCssAnimation: !1,
@@ -149,54 +149,54 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
149
149
  }), U = c({
150
150
  width: e.value.style.chart.layout.width,
151
151
  height: e.value.style.chart.layout.height
152
- }), qe = f(() => Math.max(...be.value.map((t) => t.values.length))), h = c({
152
+ }), Je = f(() => Math.max(...me.value.map((t) => t.values.length))), h = c({
153
153
  start: 0,
154
- end: qe.value
154
+ end: Je.value
155
155
  });
156
- function Je() {
157
- me();
156
+ function Ke() {
157
+ xe();
158
158
  }
159
- async function me() {
160
- await Se(), await Se();
161
- const { startIndex: t, endIndex: a } = e.value.style.chart.zoom, l = He.value;
162
- h.value = { start: 0, max: I.value }, (t != null || a != null) && l ? (t != null ? l.setStartValue(t) : (h.value.start = 0, l.setStartValue(0)), a != null ? l.setEndValue(Vt(a + 1)) : (h.value.end = I.value, l.setEndValue(I.value))) : (h.value = {
159
+ async function xe() {
160
+ await ze(), await ze();
161
+ const { startIndex: t, endIndex: a } = e.value.style.chart.zoom, l = Ue.value;
162
+ h.value = { start: 0, max: I.value }, (t != null || a != null) && l ? (t != null ? l.setStartValue(t) : (h.value.start = 0, l.setStartValue(0)), a != null ? l.setEndValue(Mt(a + 1)) : (h.value.end = I.value, l.setEndValue(I.value))) : (h.value = {
163
163
  start: 0,
164
164
  end: I.value
165
165
  }, Pe.value += 1);
166
166
  }
167
- function Vt(t) {
167
+ function Mt(t) {
168
168
  const a = I.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: xe, setUserOptionsVisibility: Ke, keepUserOptionState: Qe } = Sl({ config: e.value }), { svgRef: Ze } = $l({ config: e.value.style.chart.title });
172
- function pe() {
173
- const t = At({
171
+ const { userOptionsVisible: pe, setUserOptionsVisibility: Qe, keepUserOptionState: Ze } = $l({ config: e.value }), { svgRef: et } = Il({ config: e.value.style.chart.title });
172
+ function ke() {
173
+ const t = zt({
174
174
  userConfig: x.config,
175
- defaultConfig: Et
175
+ defaultConfig: Vt
176
176
  });
177
177
  let a = {};
178
178
  return t.theme ? a = {
179
- ...At({
180
- userConfig: vl.vue_ui_donut_evolution[t.theme] || x.config,
179
+ ...zt({
180
+ userConfig: hl.vue_ui_donut_evolution[t.theme] || x.config,
181
181
  defaultConfig: t
182
182
  }),
183
- customPalette: cl[t.theme] || ce
184
- } : a = t, x.config && kt(x.config, "style.chart.zoom.startIndex") ? a.style.chart.zoom.startIndex = x.config.style.chart.zoom.startIndex : a.style.chart.zoom.startIndex = null, x.config && kt(x.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = x.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
183
+ customPalette: dl[t.theme] || ce
184
+ } : a = t, x.config && Ct(x.config, "style.chart.zoom.startIndex") ? a.style.chart.zoom.startIndex = x.config.style.chart.zoom.startIndex : a.style.chart.zoom.startIndex = null, x.config && Ct(x.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = x.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
185
185
  }
186
186
  re(() => x.config, (t) => {
187
- je.value || (e.value = pe()), xe.value = !e.value.userOptions.showOnChartHover, Ye(), Oe.value += 1, Fe.value += 1, Ee.value += 1, E.value.showTable = e.value.table.show;
187
+ qe.value || (e.value = ke()), pe.value = !e.value.userOptions.showOnChartHover, je(), Fe.value += 1, Ee.value += 1, Re.value += 1, B.value.showTable = e.value.table.show;
188
188
  }, { deep: !0 }), re(() => x.dataset, (t) => {
189
- Array.isArray(t) && t.length > 0 && (se.value = !1), Je();
189
+ Array.isArray(t) && t.length > 0 && (se.value = !1), Ke();
190
190
  }, { deep: !0 });
191
- const { isPrinting: et, isImaging: tt, generatePdf: lt, generateImage: at } = Cl({
191
+ const { isPrinting: tt, isImaging: lt, generatePdf: at, generateImage: ot } = Ll({
192
192
  elementId: N.value,
193
193
  fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
194
194
  options: e.value.userOptions.print
195
- }), Bt = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Mt = f(() => dl(e.value.customPalette)), E = c({
195
+ }), Ht = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ut = f(() => yl(e.value.customPalette)), B = c({
196
196
  showTable: e.value.table.show
197
197
  });
198
198
  re(e, () => {
199
- E.value = {
199
+ B.value = {
200
200
  showTable: e.value.table.show
201
201
  };
202
202
  }, { immediate: !0 });
@@ -206,7 +206,7 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
206
206
  bottom: e.value.style.chart.layout.padding.bottom,
207
207
  left: e.value.style.chart.layout.padding.left
208
208
  }));
209
- function Ht() {
209
+ function Xt() {
210
210
  let t = 0;
211
211
  he.value && (t = Array.from(he.value.querySelectorAll("text")).reduce((u, y) => {
212
212
  const d = y.getComputedTextLength();
@@ -215,31 +215,31 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
215
215
  const a = fe.value ? fe.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;
217
217
  }
218
- const ke = c(0), Ut = _t((t) => {
219
- ke.value = t;
218
+ const we = c(0), Wt = St((t) => {
219
+ we.value = t;
220
220
  }, 100);
221
- ll((t) => {
221
+ ol((t) => {
222
222
  const a = ae.value;
223
223
  if (!a) return;
224
224
  const l = new ResizeObserver((s) => {
225
- Ut(s[0].contentRect.height);
225
+ Wt(s[0].contentRect.height);
226
226
  });
227
227
  l.observe(a), t(() => l.disconnect());
228
- }), al(() => {
229
- ke.value = 0;
228
+ }), ul(() => {
229
+ we.value = 0;
230
230
  });
231
- const ot = f(() => {
231
+ const ut = f(() => {
232
232
  let t = 0;
233
233
  ye.value && (t = ye.value.getBBox().height);
234
234
  let a = 0;
235
- return ae.value && (a = ke.value), t + a + e.value.style.chart.layout.grid.axis.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
235
+ return ae.value && (a = we.value), t + a + e.value.style.chart.layout.grid.axis.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
236
236
  }), r = f(() => {
237
- const t = Ht(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = U.value.width, s = U.value.height, u = M.value.left + t, y = l - M.value.right, d = l - u - M.value.right, p = s - M.value.top - M.value.bottom - a - ot.value, G = M.value.top + a, R = s - M.value.bottom - ot.value;
237
+ const t = Xt(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = U.value.width, s = U.value.height, u = M.value.left + t, y = l - M.value.right, d = l - u - M.value.right, p = s - M.value.top - M.value.bottom - a - ut.value, G = M.value.top + a, E = s - M.value.bottom - ut.value;
238
238
  return {
239
239
  top: G,
240
240
  left: u,
241
241
  right: y,
242
- bottom: R,
242
+ bottom: E,
243
243
  absoluteHeight: s,
244
244
  absoluteWidth: l,
245
245
  centerX: u + Math.max(10, d) / 2,
@@ -247,7 +247,7 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
247
247
  width: Math.max(10, d),
248
248
  height: Math.max(10, p)
249
249
  };
250
- }), F = f(() => (be.value.forEach((t, a) => {
250
+ }), F = f(() => (me.value.forEach((t, a) => {
251
251
  [null, void 0].includes(t.name) && ie({
252
252
  componentName: "VueUiDonutEvolution",
253
253
  type: "datasetSerieAttribute",
@@ -261,58 +261,58 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
261
261
  index: a,
262
262
  debug: ue.value
263
263
  });
264
- }), be.value.map((t, a) => ({
264
+ }), me.value.map((t, a) => ({
265
265
  ...t,
266
- values: hl(t.values),
267
- color: ze(t.color) || Mt.value[a] || ce[a] || ce[a % ce.length],
266
+ values: fl(t.values),
267
+ color: Ie(t.color) || Ut.value[a] || ce[a] || ce[a % ce.length],
268
268
  length: (t.values || []).length,
269
- uid: xt()
269
+ uid: kt()
270
270
  })))), q = f(() => F.value.filter((t) => !C.value.includes(t.uid)).map((t) => ({
271
271
  ...t,
272
272
  values: t.values.filter((a, l) => l >= h.value.start && l <= h.value.end)
273
- }))), I = f(() => Math.max(...q.value.map((t) => t.length))), L = f(() => Al({
273
+ }))), I = f(() => Math.max(...q.value.map((t) => t.length))), _ = f(() => zl({
274
274
  values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
275
275
  maxDatapoints: I.value,
276
276
  formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
277
277
  start: h.value.start,
278
278
  end: h.value.end
279
- })), w = f(() => r.value.width / (h.value.end - h.value.start)), _ = f(() => {
279
+ })), w = f(() => r.value.width / (h.value.end - h.value.start)), L = f(() => {
280
280
  const t = [];
281
281
  for (let u = 0; u < h.value.end - h.value.start; u += 1) {
282
- const y = q.value.map((T) => T.values[u] ?? null), d = y.filter((T) => [void 0, null].includes(T)).length === y.length, p = y.reduce((T, A) => T + A, 0), G = y.map((T) => T / p), R = r.value.left + w.value * u + w.value / 2;
282
+ const y = q.value.map((T) => T.values[u] ?? null), d = y.filter((T) => [void 0, null].includes(T)).length === y.length, p = y.reduce((T, A) => T + A, 0), G = y.map((T) => T / p), E = r.value.left + w.value * u + w.value / 2;
283
283
  t.push({
284
284
  index: u,
285
285
  percentages: G,
286
286
  subtotal: d || p < 0 ? null : p,
287
287
  values: y,
288
- x: R
288
+ x: E
289
289
  });
290
290
  }
291
291
  const a = 0, l = Math.max(...t.map((u) => u.subtotal)), s = t.length === 1 ? l * 2 : l;
292
292
  return t.map((u, y) => {
293
- const d = Math.min(r.value.width / 24, w.value / 2 * 0.7), p = d > r.value.width / 16 ? r.value.width / 16 : d, G = g.value === u.index ? r.value.width / 16 : p, R = t.length > 4 ? d * 2 : d * 2 > w.value / 2 * 0.7 ? w.value / 2 * 0.7 : d * 2, T = r.value.bottom - r.value.height * u.subtotal / wt(a, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
293
+ const d = Math.min(r.value.width / 24, w.value / 2 * 0.7), p = d > r.value.width / 16 ? r.value.width / 16 : d, G = g.value === u.index ? r.value.width / 16 : p, E = t.length > 4 ? d * 2 : d * 2 > w.value / 2 * 0.7 ? w.value / 2 * 0.7 : d * 2, T = r.value.bottom - r.value.height * u.subtotal / _t(a, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
294
294
  return {
295
295
  ...u,
296
296
  y: T,
297
297
  radius: p,
298
298
  activeRadius: G,
299
- hoverRadius: R,
300
- donut: Ie({
301
- series: q.value.map((A, ft) => ({
299
+ hoverRadius: E,
300
+ donut: Te({
301
+ series: q.value.map((A, bt) => ({
302
302
  color: A.color,
303
303
  name: A.name,
304
304
  value: A.values[y] ?? 0
305
305
  }))
306
306
  }, u.x, T, p, p, 1.99999, 2, 1, 360, 105.25, p / 2),
307
- donutHover: Ie({
308
- series: q.value.map((A, ft) => ({
307
+ donutHover: Te({
308
+ series: q.value.map((A, bt) => ({
309
309
  color: A.color,
310
310
  name: A.name,
311
311
  value: A.values[y] ?? 0
312
312
  }))
313
- }, u.x, T, R, R, 1.99999, 2, 1, 360, 105.25, R / 2),
314
- donutFocus: Ie({
315
- series: q.value.map((A, ft) => ({
313
+ }, u.x, T, E, E, 1.99999, 2, 1, 360, 105.25, E / 2),
314
+ donutFocus: Te({
315
+ series: q.value.map((A, bt) => ({
316
316
  color: A.color,
317
317
  name: A.name,
318
318
  value: A.values[y] ?? 0
@@ -321,8 +321,8 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
321
321
  };
322
322
  });
323
323
  });
324
- function ut(t, a, l) {
325
- return Te(
324
+ function st(t, a, l) {
325
+ return De(
326
326
  e.value.style.chart.layout.dataLabels.formatter,
327
327
  t,
328
328
  ve({
@@ -334,34 +334,34 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
334
334
  { datapoint: a, index: l }
335
335
  );
336
336
  }
337
- const we = f(() => ({
338
- max: Math.max(..._.value.map((t) => t.subtotal)),
337
+ const Ce = f(() => ({
338
+ max: Math.max(...L.value.map((t) => t.subtotal)),
339
339
  min: 0
340
340
  })), X = f(() => {
341
- const t = _.value.length === 1 ? we.value.max * 2 : we.value.max;
342
- return wt(we.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
341
+ const t = L.value.length === 1 ? Ce.value.max * 2 : Ce.value.max;
342
+ return _t(Ce.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
343
343
  });
344
- function Xt(t) {
344
+ function Gt(t) {
345
345
  return t / X.value.max;
346
346
  }
347
- const Wt = f(() => X.value.ticks.map((t) => ({
348
- y: r.value.bottom - r.value.height * Xt(t),
347
+ const Yt = f(() => X.value.ticks.map((t) => ({
348
+ y: r.value.bottom - r.value.height * Gt(t),
349
349
  value: t
350
350
  })));
351
- function Gt(t, a) {
352
- return isNaN(t.value / Lt(a, "value")) ? 0 : (t.value / Lt(a, "value") * 100).toFixed(0) + "%";
351
+ function jt(t, a) {
352
+ return isNaN(t.value / At(a, "value")) ? 0 : (t.value / At(a, "value") * 100).toFixed(0) + "%";
353
353
  }
354
- function st(t) {
354
+ function nt(t) {
355
355
  g.value = null, le.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex + h.value.start });
356
356
  }
357
- function Yt(t) {
357
+ function qt(t) {
358
358
  e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + h.value.start }), g.value = t.index, le.value = t;
359
359
  }
360
360
  const J = c(null);
361
- function nt(t, 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) && (le.value = null, g.value = null, de.value = !0, B.value = t, Jt(t), [null, void 0].includes(a) || (J.value = a));
361
+ function rt(t, 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) && (le.value = null, g.value = null, de.value = !0, V.value = t, Qt(t), [null, void 0].includes(a) || (J.value = a));
363
363
  }
364
- const rt = f(() => F.value.map((t, a) => ({
364
+ const it = f(() => F.value.map((t, a) => ({
365
365
  name: t.name,
366
366
  value: t.values.slice(h.value.start, h.value.end).reduce((l, s) => l + s, 0),
367
367
  shape: "circle",
@@ -370,9 +370,9 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
370
370
  })).sort((t, a) => a.value - t.value).map((t) => ({
371
371
  ...t,
372
372
  opacity: C.value.includes(t.uid) ? 0.5 : 1,
373
- segregate: () => Ce(t.uid),
373
+ segregate: () => _e(t.uid),
374
374
  isSegregated: C.value.includes(t.uid)
375
- }))), it = f(() => _.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), jt = f(() => ({
375
+ }))), ct = f(() => L.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), Jt = 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,
@@ -380,14 +380,14 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
380
380
  paddingBottom: 12,
381
381
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
382
382
  }));
383
- function Ce(t) {
383
+ function _e(t) {
384
384
  if (C.value.includes(t))
385
- C.value = C.value.filter((a) => a !== t), We("selectLegend", null);
385
+ C.value = C.value.filter((a) => a !== t), Ge("selectLegend", null);
386
386
  else {
387
387
  if (C.value.length === F.value.length - 1) return;
388
- C.value.push(t), We("selectLegend", F.value.find((a) => a.uid === t));
388
+ C.value.push(t), Ge("selectLegend", F.value.find((a) => a.uid === t));
389
389
  }
390
- B.value && nt(_.value.find((a, l) => l === J.value));
390
+ V.value && rt(L.value.find((a, l) => l === J.value));
391
391
  }
392
392
  const W = f(() => {
393
393
  const t = [""].concat(F.value.filter((u) => !C.value.includes(u.uid)).map((u) => ({
@@ -397,7 +397,7 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
397
397
  let a = [];
398
398
  for (let u = 0; u < I.value; u += 1) {
399
399
  const y = F.value.filter((d) => !C.value.includes(d.uid)).map((d) => d.values[u] ?? 0).reduce((d, p) => d + p, 0);
400
- a.push([L.value[u] ? L.value[u].text : "-"].concat(F.value.filter((d) => !C.value.includes(d.uid)).map((d) => ({
400
+ a.push([_.value[u] ? _.value[u].text : "-"].concat(F.value.filter((d) => !C.value.includes(d.uid)).map((d) => ({
401
401
  value: d.values[u] ?? 0,
402
402
  percentage: d.values[u] ? d.values[u] / y * 100 : 0
403
403
  }))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(y.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
@@ -419,44 +419,44 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
419
419
  ].concat(F.value.filter((u) => !C.value.includes(u.uid)).map((u) => u.name)).concat(e.value.table.columnNames.total);
420
420
  return { head: t, body: a, config: l, colNames: s };
421
421
  });
422
- function qt() {
422
+ function Kt() {
423
423
  return F.value;
424
424
  }
425
425
  function Le(t = null) {
426
- Se(() => {
427
- const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...W.value.head.map((d) => d.name ?? d)], s = [...W.value.body.map((d) => d.map((p) => p.value ?? p))], u = a.concat([l]).concat(s), y = xl(u);
428
- t ? t(y) : pl({ csvContent: y, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
426
+ ze(() => {
427
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...W.value.head.map((d) => d.name ?? d)], s = [...W.value.body.map((d) => d.map((p) => p.value ?? p))], u = a.concat([l]).concat(s), y = kl(u);
428
+ t ? t(y) : wl({ csvContent: y, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
429
429
  });
430
430
  }
431
431
  const H = c(!1);
432
- function ct(t) {
433
- H.value = t, Ne.value += 1;
432
+ function vt(t) {
433
+ H.value = t, Oe.value += 1;
434
434
  }
435
- function vt() {
436
- E.value.showTable = !E.value.showTable;
435
+ function dt() {
436
+ B.value.showTable = !B.value.showTable;
437
437
  }
438
438
  const ne = c(!1);
439
- function _e() {
439
+ function Ae() {
440
440
  ne.value = !ne.value;
441
441
  }
442
- function dt(t) {
442
+ function ht(t) {
443
443
  return t.proportion * 100 > e.value.style.chart.donuts.hover.hideLabelsUnderValue;
444
444
  }
445
- const ht = c([]), yt = c({}), Ae = c(null);
446
- function Jt(t) {
447
- ht.value = t.donut.map((a) => ({
445
+ const yt = c([]), ft = c({}), Se = c(null);
446
+ function Qt(t) {
447
+ yt.value = t.donut.map((a) => ({
448
448
  name: a.name,
449
449
  values: [a.value],
450
450
  color: a.color
451
- })), yt.value = kl({
451
+ })), ft.value = Cl({
452
452
  ...e.value.style.chart.dialog.donutChart,
453
453
  responsive: !0,
454
454
  theme: e.value.theme
455
- }), Ae.value && Ae.value.open();
455
+ }), Se.value && Se.value.open();
456
456
  }
457
- async function Kt({ scale: t = 2 } = {}) {
458
- if (!O.value) return;
459
- const { width: a, height: l } = O.value.getBoundingClientRect(), s = a / l, { imageUri: u, base64: y } = await Il({ domElement: O.value, base64: !0, img: !0, scale: t });
457
+ async function Zt({ scale: t = 2 } = {}) {
458
+ if (!P.value) return;
459
+ const { width: a, height: l } = P.value.getBoundingClientRect(), s = a / l, { imageUri: u, base64: y } = await Dl({ domElement: P.value, base64: !0, img: !0, scale: t });
460
460
  return {
461
461
  imageUri: u,
462
462
  base64: y,
@@ -466,23 +466,23 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
466
466
  aspectRatio: s
467
467
  };
468
468
  }
469
- const Qt = f(() => U.value.width), Zt = f(() => U.value.height);
470
- zl({
469
+ const el = f(() => U.value.width), tl = f(() => U.value.height);
470
+ Tl({
471
471
  timeLabelsEls: ae,
472
- timeLabels: L,
472
+ timeLabels: _,
473
473
  slicer: h,
474
474
  configRef: e,
475
475
  rotationPath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "rotation"],
476
476
  autoRotatePath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "autoRotate", "enable"],
477
477
  isAutoSize: !1,
478
- width: Qt,
479
- height: Zt,
478
+ width: el,
479
+ height: tl,
480
480
  rotation: e.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
481
481
  });
482
482
  const K = f(() => {
483
- const t = e.value.table.useDialog && !e.value.table.show, a = E.value.showTable;
483
+ const t = e.value.table.useDialog && !e.value.table.show, a = B.value.showTable;
484
484
  return {
485
- component: t ? De : It,
485
+ component: t ? Ne : Dt,
486
486
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
487
487
  props: t ? {
488
488
  backgroundColor: e.value.table.th.backgroundColor,
@@ -490,7 +490,7 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
490
490
  headerColor: e.value.table.th.color,
491
491
  headerBg: e.value.table.th.backgroundColor,
492
492
  isFullscreen: H.value,
493
- fullscreenParent: O.value,
493
+ fullscreenParent: P.value,
494
494
  forcedWidth: Math.min(800, window.innerWidth * 0.8)
495
495
  } : {
496
496
  hideDetails: !0,
@@ -509,50 +509,54 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
509
509
  }
510
510
  };
511
511
  });
512
- return re(() => E.value.showTable, (t) => {
512
+ re(() => B.value.showTable, (t) => {
513
513
  e.value.table.show || (t && e.value.table.useDialog && Y.value ? Y.value.open() : "close" in Y.value && Y.value.close());
514
- }), $t({
515
- getData: qt,
516
- getImage: Kt,
517
- generatePdf: lt,
514
+ });
515
+ function gt() {
516
+ B.value.showTable = !1, ge.value && ge.value.setTableIconState(!1);
517
+ }
518
+ return It({
519
+ getData: Kt,
520
+ getImage: Zt,
521
+ generatePdf: at,
518
522
  generateCsv: Le,
519
- generateImage: at,
520
- toggleTable: vt,
521
- toggleAnnotator: _e,
522
- toggleFullscreen: ct
523
+ generateImage: ot,
524
+ toggleTable: dt,
525
+ toggleAnnotator: Ae,
526
+ toggleFullscreen: vt
523
527
  }), (t, a) => (o(), n("div", {
524
528
  ref_key: "donutEvolutionChart",
525
- ref: O,
526
- class: P(`vue-ui-donut-evolution ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
529
+ ref: P,
530
+ class: O(`vue-ui-donut-evolution ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
527
531
  style: Q(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
528
532
  id: N.value,
529
- onMouseenter: a[7] || (a[7] = () => i(Ke)(!0)),
530
- onMouseleave: a[8] || (a[8] = () => i(Ke)(!1))
533
+ onMouseenter: a[5] || (a[5] = () => i(Qe)(!0)),
534
+ onMouseleave: a[6] || (a[6] = () => i(Qe)(!1))
531
535
  }, [
532
- e.value.userOptions.buttons.annotator ? (o(), D(i(Pt), {
536
+ e.value.userOptions.buttons.annotator ? (o(), D(i(Ft), {
533
537
  key: 0,
534
- svgRef: i(Ze),
538
+ svgRef: i(et),
535
539
  backgroundColor: e.value.style.chart.backgroundColor,
536
540
  color: e.value.style.chart.color,
537
541
  active: ne.value,
538
- onClose: _e
542
+ onClose: Ae
539
543
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
540
- Bt.value ? (o(), n("div", {
544
+ Ht.value ? (o(), n("div", {
541
545
  key: 1,
542
546
  ref_key: "noTitle",
543
- ref: Rt,
547
+ ref: Bt,
544
548
  class: "vue-data-ui-no-title-space",
545
549
  style: "height:36px; width: 100%;background:transparent"
546
550
  }, null, 512)) : v("", !0),
547
551
  e.value.style.chart.title.text ? (o(), n("div", {
548
552
  key: 2,
549
553
  ref_key: "chartTitle",
550
- ref: Ve,
554
+ ref: Be,
551
555
  style: "width:100%;background:transparent;padding-bottom:24px",
552
- onMouseleave: st
556
+ onMouseleave: nt
553
557
  }, [
554
- (o(), D(Tl, {
555
- key: `title_${Oe.value}`,
558
+ (o(), D(Nl, {
559
+ key: `title_${Fe.value}`,
556
560
  config: {
557
561
  title: {
558
562
  cy: "donut-evolution-div-title",
@@ -567,14 +571,15 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
567
571
  ], 544)) : v("", !0),
568
572
  b("div", {
569
573
  id: `legend-top-${N.value}`
570
- }, null, 8, Fl),
571
- e.value.userOptions.show && Ge.value && (i(Qe) || i(xe)) ? (o(), D(i(Ot), {
572
- ref: "details",
573
- key: `user_options_${Ne.value}`,
574
+ }, null, 8, Rl),
575
+ e.value.userOptions.show && Ye.value && (i(Ze) || i(pe)) ? (o(), D(i(Et), {
576
+ ref_key: "userOptionsRef",
577
+ ref: ge,
578
+ key: `user_options_${Oe.value}`,
574
579
  backgroundColor: e.value.style.chart.backgroundColor,
575
580
  color: e.value.style.chart.color,
576
- isPrinting: i(et),
577
- isImaging: i(tt),
581
+ isPrinting: i(tt),
582
+ isImaging: i(lt),
578
583
  uid: N.value,
579
584
  hasPdf: e.value.userOptions.buttons.pdf,
580
585
  hasImg: e.value.userOptions.buttons.img,
@@ -583,22 +588,23 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
583
588
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
584
589
  isFullscreen: H.value,
585
590
  titles: { ...e.value.userOptions.buttonTitles },
586
- chartElement: O.value,
591
+ chartElement: P.value,
587
592
  position: e.value.userOptions.position,
588
593
  hasAnnotator: e.value.userOptions.buttons.annotator,
589
594
  isAnnotation: ne.value,
590
595
  callbacks: e.value.userOptions.callbacks,
591
596
  printScale: e.value.userOptions.print.scale,
592
- onToggleFullscreen: ct,
593
- onGeneratePdf: i(lt),
597
+ tableDialog: e.value.table.useDialog,
598
+ onToggleFullscreen: vt,
599
+ onGeneratePdf: i(at),
594
600
  onGenerateCsv: Le,
595
- onGenerateImage: i(at),
596
- onToggleTable: vt,
597
- onToggleAnnotator: _e,
601
+ onGenerateImage: i(ot),
602
+ onToggleTable: dt,
603
+ onToggleAnnotator: Ae,
598
604
  style: Q({
599
- visibility: i(Qe) ? i(xe) ? "visible" : "hidden" : "visible"
605
+ visibility: i(Ze) ? i(pe) ? "visible" : "hidden" : "visible"
600
606
  })
601
- }, bt({ _: 2 }, [
607
+ }, xt({ _: 2 }, [
602
608
  t.$slots.menuIcon ? {
603
609
  name: "menuIcon",
604
610
  fn: k(({ isOpen: l, color: s }) => [
@@ -648,16 +654,16 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
648
654
  ]),
649
655
  key: "6"
650
656
  } : void 0
651
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
657
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
652
658
  (o(), n("svg", {
653
659
  ref_key: "svgRef",
654
- ref: Ze,
655
- xmlns: i(yl),
656
- class: P({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
660
+ ref: et,
661
+ xmlns: i(gl),
662
+ class: O({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
657
663
  viewBox: `0 0 ${r.value.absoluteWidth} ${r.value.absoluteHeight}`,
658
664
  style: Q(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
659
665
  }, [
660
- mt(i(Nt)),
666
+ pt(i(Pt)),
661
667
  t.$slots["chart-background"] ? (o(), n("foreignObject", {
662
668
  key: 0,
663
669
  x: r.value.left,
@@ -669,7 +675,7 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
669
675
  }
670
676
  }, [
671
677
  S(t.$slots, "chart-background", {}, void 0, !0)
672
- ], 8, Rl)) : v("", !0),
678
+ ], 8, Bl)) : v("", !0),
673
679
  b("defs", null, [
674
680
  b("linearGradient", {
675
681
  id: `hover_${N.value}`,
@@ -681,30 +687,30 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
681
687
  b("stop", {
682
688
  offset: "0%",
683
689
  "stop-color": i(te)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
684
- }, null, 8, Bl),
690
+ }, null, 8, Hl),
685
691
  b("stop", {
686
692
  offset: "100%",
687
693
  "stop-color": i(te)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
688
- }, null, 8, Ml)
689
- ], 8, Vl),
694
+ }, null, 8, Ul)
695
+ ], 8, Ml),
690
696
  b("radialGradient", {
691
697
  id: `focus_${N.value}`
692
698
  }, [
693
699
  b("stop", {
694
700
  offset: "0%",
695
- "stop-color": i(te)(i(ze)(e.value.style.chart.backgroundColor), 0)
696
- }, null, 8, Ul),
701
+ "stop-color": i(te)(i(Ie)(e.value.style.chart.backgroundColor), 0)
702
+ }, null, 8, Wl),
697
703
  b("stop", {
698
704
  offset: "77%",
699
705
  "stop-color": i(te)("#FFFFFF", 30)
700
- }, null, 8, Xl),
706
+ }, null, 8, Gl),
701
707
  b("stop", {
702
708
  offset: "100%",
703
- "stop-color": i(te)(i(ze)(e.value.style.chart.backgroundColor), 0)
704
- }, null, 8, Wl)
705
- ], 8, Hl)
709
+ "stop-color": i(te)(i(Ie)(e.value.style.chart.backgroundColor), 0)
710
+ }, null, 8, Yl)
711
+ ], 8, Xl)
706
712
  ]),
707
- e.value.style.chart.layout.grid.show ? (o(), n("g", Gl, [
713
+ e.value.style.chart.layout.grid.show ? (o(), n("g", jl, [
708
714
  b("line", {
709
715
  x1: r.value.left,
710
716
  x2: r.value.left,
@@ -713,7 +719,7 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
713
719
  stroke: e.value.style.chart.layout.grid.stroke,
714
720
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
715
721
  "stroke-linecap": "round"
716
- }, null, 8, Yl),
722
+ }, null, 8, ql),
717
723
  b("line", {
718
724
  x1: r.value.left,
719
725
  x2: r.value.right,
@@ -722,9 +728,9 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
722
728
  stroke: e.value.style.chart.layout.grid.stroke,
723
729
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
724
730
  "stroke-linecap": "round"
725
- }, null, 8, jl),
726
- e.value.style.chart.layout.grid.showVerticalLines ? (o(), n("g", ql, [
727
- (o(!0), n($, null, z(h.value.end - h.value.start, (l, s) => (o(), n("line", {
731
+ }, null, 8, Jl),
732
+ e.value.style.chart.layout.grid.showVerticalLines ? (o(), n("g", Kl, [
733
+ (o(!0), n(z, null, $(h.value.end - h.value.start, (l, s) => (o(), n("line", {
728
734
  x1: r.value.left + (s + 1) * w.value,
729
735
  x2: r.value.left + (s + 1) * w.value,
730
736
  y1: r.value.top,
@@ -732,7 +738,7 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
732
738
  stroke: e.value.style.chart.layout.grid.stroke,
733
739
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
734
740
  "stroke-linecap": "round"
735
- }, null, 8, Jl))), 256))
741
+ }, null, 8, Ql))), 256))
736
742
  ])) : v("", !0)
737
743
  ])) : v("", !0),
738
744
  b("g", null, [
@@ -745,7 +751,7 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
745
751
  transform: `translate(${e.value.style.chart.layout.grid.axis.fontSize}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
746
752
  "text-anchor": "middle",
747
753
  style: { transition: "none" }
748
- }, m(e.value.style.chart.layout.grid.axis.yLabel), 9, Kl)) : v("", !0),
754
+ }, m(e.value.style.chart.layout.grid.axis.yLabel), 9, Zl)) : v("", !0),
749
755
  e.value.style.chart.layout.grid.axis.xLabel ? (o(), n("text", {
750
756
  key: 1,
751
757
  ref_key: "xAxisLabel",
@@ -755,15 +761,15 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
755
761
  y: r.value.absoluteHeight - 3,
756
762
  "font-size": e.value.style.chart.layout.grid.axis.fontSize,
757
763
  fill: e.value.style.chart.layout.grid.axis.color
758
- }, m(e.value.style.chart.layout.grid.axis.xLabel), 9, Ql)) : v("", !0)
764
+ }, m(e.value.style.chart.layout.grid.axis.xLabel), 9, ea)) : v("", !0)
759
765
  ]),
760
766
  e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (o(), n("g", {
761
767
  key: 2,
762
768
  ref_key: "scaleLabels",
763
769
  ref: he,
764
- class: P({ "donut-opacity": !0, "donut-behind": g.value !== null })
770
+ class: O({ "donut-opacity": !0, "donut-behind": g.value !== null })
765
771
  }, [
766
- (o(!0), n($, null, z(Wt.value, (l, s) => (o(), n("g", null, [
772
+ (o(!0), n(z, null, $(Yt.value, (l, s) => (o(), n("g", null, [
767
773
  l.value >= X.value.min && l.value <= X.value.max ? (o(), n("line", {
768
774
  key: 0,
769
775
  x1: r.value.left,
@@ -772,7 +778,7 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
772
778
  y2: l.y,
773
779
  stroke: e.value.style.chart.layout.grid.stroke,
774
780
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
775
- }, null, 8, Zl)) : v("", !0),
781
+ }, null, 8, ta)) : v("", !0),
776
782
  l.value >= X.value.min && l.value <= X.value.max ? (o(), n("text", {
777
783
  key: 1,
778
784
  x: r.value.left,
@@ -781,7 +787,7 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
781
787
  "text-anchor": "end",
782
788
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
783
789
  "font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
784
- }, m(i(fl)(l.value) ? i(Te)(
790
+ }, m(i(bl)(l.value) ? i(De)(
785
791
  e.value.style.chart.layout.dataLabels.formatter,
786
792
  l.value,
787
793
  i(ve)({
@@ -791,18 +797,18 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
791
797
  r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
792
798
  }),
793
799
  { datapoint: l, seriesIndex: s }
794
- ) : ""), 9, ea)) : v("", !0)
800
+ ) : ""), 9, la)) : v("", !0)
795
801
  ]))), 256))
796
802
  ], 2)) : v("", !0),
797
803
  e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (o(), n("g", {
798
804
  key: 3,
799
805
  ref_key: "timeLabelsEls",
800
806
  ref: ae,
801
- class: P({ "donut-opacity": !0 })
807
+ class: O({ "donut-opacity": !0 })
802
808
  }, [
803
- (o(!0), n($, null, z(h.value.end - h.value.start, (l, s) => (o(), n("g", null, [
804
- (e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === I.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && L.value[s] && L.value[s].text ? (o(), n("g", ta, [
805
- String(L.value[s].text).includes(`
809
+ (o(!0), n(z, null, $(h.value.end - h.value.start, (l, s) => (o(), n("g", null, [
810
+ (e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === I.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && _.value[s] && _.value[s].text ? (o(), n("g", aa, [
811
+ String(_.value[s].text).includes(`
806
812
  `) ? (o(), n("text", {
807
813
  key: 1,
808
814
  class: "vue-data-ui-time-label",
@@ -810,74 +816,74 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
810
816
  "font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
811
817
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
812
818
  transform: `translate(${r.value.left + w.value * s + w.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})`,
813
- innerHTML: i(gl)({
814
- content: String(L.value[s].text),
819
+ innerHTML: i(ml)({
820
+ content: String(_.value[s].text),
815
821
  fontSize: e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
816
822
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
817
823
  x: 0,
818
824
  y: 0
819
825
  })
820
- }, null, 8, aa)) : (o(), n("text", {
826
+ }, null, 8, ua)) : (o(), n("text", {
821
827
  key: 0,
822
828
  class: "vue-data-ui-time-label",
823
829
  "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",
824
830
  "font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
825
831
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
826
832
  transform: `translate(${r.value.left + w.value * s + w.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})`
827
- }, m(L.value[s].text || ""), 9, la))
833
+ }, m(_.value[s].text || ""), 9, oa))
828
834
  ])) : v("", !0)
829
835
  ]))), 256))
830
836
  ], 512)) : v("", !0),
831
- (o(!0), n($, null, z(_.value, (l, s) => (o(), n("g", null, [
832
- e.value.style.chart.layout.line.show && s < _.value.length - 1 && ![l.subtotal, _.value[s + 1].subtotal].includes(null) ? (o(), n("line", {
837
+ (o(!0), n(z, null, $(L.value, (l, s) => (o(), n("g", null, [
838
+ e.value.style.chart.layout.line.show && s < L.value.length - 1 && ![l.subtotal, L.value[s + 1].subtotal].includes(null) ? (o(), n("line", {
833
839
  key: 0,
834
- class: P({ "donut-opacity": !0, "donut-behind": g.value !== null }),
840
+ class: O({ "donut-opacity": !0, "donut-behind": g.value !== null }),
835
841
  x1: l.x,
836
842
  y1: l.y,
837
- x2: _.value[s + 1].x,
838
- y2: _.value[s + 1].y,
843
+ x2: L.value[s + 1].x,
844
+ y2: L.value[s + 1].y,
839
845
  stroke: e.value.style.chart.layout.line.stroke,
840
846
  "stroke-width": e.value.style.chart.layout.line.strokeWidth,
841
847
  "stroke-linecap": "round",
842
848
  "stroke-linejoin": "round"
843
- }, null, 10, oa)) : v("", !0),
844
- l.subtotal !== null ? (o(), n("g", ua, [
849
+ }, null, 10, sa)) : v("", !0),
850
+ l.subtotal !== null ? (o(), n("g", na, [
845
851
  l.subtotal ? (o(), n("circle", {
846
852
  key: 0,
847
853
  cx: l.x,
848
854
  cy: l.y,
849
855
  r: l.activeRadius,
850
856
  fill: e.value.style.chart.backgroundColor
851
- }, null, 8, sa)) : v("", !0)
857
+ }, null, 8, ra)) : v("", !0)
852
858
  ])) : v("", !0)
853
859
  ]))), 256)),
854
- (o(!0), n($, null, z(_.value, (l, s) => (o(), n("g", {
855
- class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
860
+ (o(!0), n(z, null, $(L.value, (l, s) => (o(), n("g", {
861
+ class: O({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
856
862
  }, [
857
- l.subtotal ? (o(), n("g", na, [
858
- g.value !== null && g.value === s ? (o(), n("g", ra, [
859
- (o(!0), n($, null, z(l.donutHover, (u) => (o(), n("g", null, [
860
- dt(u) ? (o(), n("path", {
863
+ l.subtotal ? (o(), n("g", ia, [
864
+ g.value !== null && g.value === s ? (o(), n("g", ca, [
865
+ (o(!0), n(z, null, $(l.donutHover, (u) => (o(), n("g", null, [
866
+ ht(u) ? (o(), n("path", {
861
867
  key: 0,
862
- d: i(bl)(u, { x: u.center.endX, y: u.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
868
+ d: i(xl)(u, { x: u.center.endX, y: u.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
863
869
  stroke: u.color,
864
870
  "stroke-width": "1",
865
871
  "stroke-linecap": "round",
866
872
  "stroke-linejoin": "round",
867
873
  fill: "none"
868
- }, null, 8, ia)) : v("", !0)
874
+ }, null, 8, va)) : v("", !0)
869
875
  ]))), 256)),
870
- (o(!0), n($, null, z(l.donutHover, (u, y) => (o(), n("g", null, [
871
- dt(u) ? (o(), n("text", {
876
+ (o(!0), n(z, null, $(l.donutHover, (u, y) => (o(), n("g", null, [
877
+ ht(u) ? (o(), n("text", {
872
878
  key: 0,
873
879
  "data-cy-hover-label": "",
874
- "text-anchor": i(Ct)(u, !0, 0).anchor,
875
- x: i(Ct)(u, !0, 9).x,
876
- y: i(ml)(u, 14, 10),
880
+ "text-anchor": i(Lt)(u, !0, 0).anchor,
881
+ x: i(Lt)(u, !0, 9).x,
882
+ y: i(pl)(u, 14, 10),
877
883
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
878
884
  "font-size": 8,
879
885
  "font-weight": "bold"
880
- }, m(u.name) + ": " + m(Gt(u, l.donut)) + " (" + m(u.value === null ? "-" : ut(u.value, u, y)) + ") ", 9, ca)) : v("", !0)
886
+ }, m(u.name) + ": " + m(jt(u, l.donut)) + " (" + m(u.value === null ? "-" : st(u.value, u, y)) + ") ", 9, da)) : v("", !0)
881
887
  ]))), 256)),
882
888
  b("g", null, [
883
889
  b("circle", {
@@ -885,40 +891,40 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
885
891
  cy: l.y,
886
892
  r: l.hoverRadius,
887
893
  fill: e.value.style.chart.backgroundColor
888
- }, null, 8, va)
894
+ }, null, 8, ha)
889
895
  ])
890
896
  ])) : v("", !0)
891
897
  ])) : v("", !0)
892
898
  ], 2))), 256)),
893
- (o(!0), n($, null, z(_.value, (l, s) => (o(), n("g", {
894
- class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
899
+ (o(!0), n(z, null, $(L.value, (l, s) => (o(), n("g", {
900
+ class: O({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
895
901
  }, [
896
- l.subtotal !== null ? (o(), n("g", da, [
902
+ l.subtotal !== null ? (o(), n("g", ya, [
897
903
  l.subtotal === 0 ? (o(), n("circle", {
898
904
  key: 0,
899
905
  cx: l.x,
900
906
  cy: l.y,
901
907
  r: 3,
902
908
  fill: e.value.style.chart.color
903
- }, null, 8, ha)) : g.value !== null && g.value === s ? (o(), n("g", ya, [
904
- (o(!0), n($, null, z(l.donutHover, (u, y) => (o(), n("path", {
909
+ }, null, 8, fa)) : g.value !== null && g.value === s ? (o(), n("g", ga, [
910
+ (o(!0), n(z, null, $(l.donutHover, (u, y) => (o(), n("path", {
905
911
  d: u.arcSlice,
906
912
  fill: `${u.color}`,
907
913
  "stroke-width": 1,
908
914
  stroke: e.value.style.chart.backgroundColor
909
- }, null, 8, fa))), 256))
910
- ])) : (o(), n("g", ga, [
911
- (o(!0), n($, null, z(l.donut, (u, y) => (o(), n("path", {
915
+ }, null, 8, ba))), 256))
916
+ ])) : (o(), n("g", ma, [
917
+ (o(!0), n(z, null, $(l.donut, (u, y) => (o(), n("path", {
912
918
  d: u.arcSlice,
913
919
  fill: `${u.color}`,
914
920
  "stroke-width": 0.5,
915
921
  stroke: e.value.style.chart.backgroundColor
916
- }, null, 8, ba))), 256))
922
+ }, null, 8, xa))), 256))
917
923
  ]))
918
924
  ])) : v("", !0)
919
925
  ], 2))), 256)),
920
- (o(!0), n($, null, z(_.value, (l, s) => (o(), n("g", {
921
- class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null || de.value && s !== B.value.index })
926
+ (o(!0), n(z, null, $(L.value, (l, s) => (o(), n("g", {
927
+ class: O({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null || de.value && s !== V.value.index })
922
928
  }, [
923
929
  l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (o(), n("text", {
924
930
  key: 0,
@@ -928,52 +934,52 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
928
934
  "font-size": e.value.style.chart.layout.dataLabels.fontSize,
929
935
  "font-weight": "bold",
930
936
  fill: e.value.style.chart.layout.dataLabels.color
931
- }, m(ut(l.subtotal, l, s)), 9, ma)) : v("", !0)
937
+ }, m(st(l.subtotal, l, s)), 9, pa)) : v("", !0)
932
938
  ], 2))), 256)),
933
- (o(!0), n($, null, z(_.value, (l, s) => (o(), n("rect", {
939
+ (o(!0), n(z, null, $(L.value, (l, s) => (o(), n("rect", {
934
940
  x: r.value.left + s * w.value,
935
941
  y: r.value.top,
936
942
  width: w.value,
937
943
  height: r.value.height,
938
944
  fill: [g.value, J.value].includes(l.index) ? `url(#hover_${N.value})` : "transparent",
939
- class: P({ "donut-hover": l.subtotal && [g.value, J.value].includes(l.index) }),
945
+ class: O({ "donut-hover": l.subtotal && [g.value, J.value].includes(l.index) }),
940
946
  style: {
941
947
  pointerEvents: "none"
942
948
  }
943
- }, null, 10, xa))), 256)),
944
- (o(!0), n($, null, z(_.value, (l, s) => (o(), n("rect", {
949
+ }, null, 10, ka))), 256)),
950
+ (o(!0), n(z, null, $(L.value, (l, s) => (o(), n("rect", {
945
951
  "data-cy-trap": "",
946
952
  x: r.value.left + s * w.value,
947
953
  y: r.value.top,
948
954
  width: w.value,
949
955
  height: r.value.height,
950
956
  fill: "transparent",
951
- onMouseenter: (u) => Yt(l),
952
- onMouseleave: (u) => st(l),
953
- onClick: (u) => nt(l, s),
954
- class: P({ "donut-hover": g.value === l.index && l.subtotal })
955
- }, null, 42, pa))), 256)),
957
+ onMouseenter: (u) => qt(l),
958
+ onMouseleave: (u) => nt(l),
959
+ onClick: (u) => rt(l, s),
960
+ class: O({ "donut-hover": g.value === l.index && l.subtotal })
961
+ }, null, 42, wa))), 256)),
956
962
  S(t.$slots, "svg", { svg: r.value }, void 0, !0)
957
- ], 14, El)),
958
- t.$slots.watermark ? (o(), n("div", ka, [
959
- S(t.$slots, "watermark", Z(ee({ isPrinting: i(et) || i(tt) })), void 0, !0)
963
+ ], 14, Vl)),
964
+ t.$slots.watermark ? (o(), n("div", Ca, [
965
+ S(t.$slots, "watermark", Z(ee({ isPrinting: i(tt) || i(lt) })), void 0, !0)
960
966
  ])) : v("", !0),
961
967
  b("div", {
962
968
  ref_key: "chartSlicer",
963
- ref: Ue,
969
+ ref: Xe,
964
970
  style: Q(`width:100%;background:${e.value.style.chart.backgroundColor}`),
965
971
  "data-dom-to-png-ignore": ""
966
972
  }, [
967
- I.value > 1 && e.value.style.chart.zoom.show ? (o(), D(Nl, {
973
+ I.value > 1 && e.value.style.chart.zoom.show ? (o(), D(Pl, {
968
974
  ref_key: "slicerComponent",
969
- ref: He,
975
+ ref: Ue,
970
976
  key: `slicer_${Pe.value}`,
971
977
  background: e.value.style.chart.zoom.color,
972
978
  borderColor: e.value.style.chart.backgroundColor,
973
979
  fontSize: e.value.style.chart.zoom.fontSize,
974
980
  useResetSlot: e.value.style.chart.zoom.useResetSlot,
975
- labelLeft: L.value[0] ? L.value[0].text : "",
976
- labelRight: L.value.at(-1) ? L.value.at(-1).text : "",
981
+ labelLeft: _.value[0] ? _.value[0].text : "",
982
+ labelRight: _.value.at(-1) ? _.value.at(-1).text : "",
977
983
  textColor: e.value.style.chart.color,
978
984
  inputColor: e.value.style.chart.zoom.color,
979
985
  selectColor: e.value.style.chart.zoom.highlightColor,
@@ -989,7 +995,7 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
989
995
  refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : I.value,
990
996
  enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
991
997
  enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
992
- onReset: Je
998
+ onReset: Ke
993
999
  }, {
994
1000
  "reset-action": k(({ reset: l }) => [
995
1001
  S(t.$slots, "reset-action", Z(ee({ reset: l })), void 0, !0)
@@ -999,26 +1005,26 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
999
1005
  ], 4),
1000
1006
  b("div", {
1001
1007
  id: `legend-bottom-${N.value}`
1002
- }, null, 8, wa),
1003
- Re.value ? (o(), D(ol, {
1008
+ }, null, 8, _a),
1009
+ Ve.value ? (o(), D(sl, {
1004
1010
  key: 5,
1005
1011
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${N.value}` : `#legend-bottom-${N.value}`
1006
1012
  }, [
1007
1013
  b("div", {
1008
1014
  ref_key: "chartLegend",
1009
- ref: Be
1015
+ ref: Me
1010
1016
  }, [
1011
- e.value.style.chart.legend.show ? (o(), D(Dl, {
1012
- key: `legend_${Ee.value}`,
1013
- legendSet: rt.value,
1014
- config: jt.value,
1015
- onClickMarker: a[2] || (a[2] = ({ legend: l }) => Ce(l.uid))
1017
+ e.value.style.chart.legend.show ? (o(), D(Ol, {
1018
+ key: `legend_${Re.value}`,
1019
+ legendSet: it.value,
1020
+ config: Jt.value,
1021
+ onClickMarker: a[2] || (a[2] = ({ legend: l }) => _e(l.uid))
1016
1022
  }, {
1017
1023
  item: k(({ legend: l, index: s }) => [
1018
1024
  b("div", {
1019
- onClick: (u) => Ce(l.uid),
1025
+ onClick: (u) => _e(l.uid),
1020
1026
  style: Q(`opacity:${C.value.includes(l.uid) ? 0.5 : 1}`)
1021
- }, m(l.name) + m(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + m(e.value.style.chart.legend.showValue ? i(Te)(
1027
+ }, m(l.name) + m(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + m(e.value.style.chart.legend.showValue ? i(De)(
1022
1028
  e.value.style.chart.layout.dataLabels.formatter,
1023
1029
  l.value,
1024
1030
  i(ve)({
@@ -1028,46 +1034,46 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
1028
1034
  r: e.value.style.chart.legend.roundingValue
1029
1035
  }),
1030
1036
  { datapoint: l, seriesIndex: s }
1031
- ) : "") + " " + m(e.value.style.chart.legend.showPercentage ? C.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 / it.value) ? "-" : i(ve)({
1032
- v: l.value / it.value * 100,
1037
+ ) : "") + " " + m(e.value.style.chart.legend.showPercentage ? C.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 / ct.value) ? "-" : i(ve)({
1038
+ v: l.value / ct.value * 100,
1033
1039
  s: "%",
1034
1040
  r: e.value.style.chart.legend.roundingPercentage
1035
- })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Ca)
1041
+ })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, La)
1036
1042
  ]),
1037
1043
  _: 1
1038
1044
  }, 8, ["legendSet", "config"])) : v("", !0),
1039
- S(t.$slots, "legend", { legend: rt.value }, void 0, !0)
1045
+ S(t.$slots, "legend", { legend: it.value }, void 0, !0)
1040
1046
  ], 512)
1041
1047
  ], 8, ["to"])) : v("", !0),
1042
1048
  t.$slots.source ? (o(), n("div", {
1043
1049
  key: 6,
1044
1050
  ref_key: "source",
1045
- ref: Me,
1051
+ ref: He,
1046
1052
  dir: "auto"
1047
1053
  }, [
1048
1054
  S(t.$slots, "source", {}, void 0, !0)
1049
1055
  ], 512)) : v("", !0),
1050
- Ge.value ? (o(), D(ul(K.value.component), sl({ key: 7 }, K.value.props, {
1056
+ Ye.value ? (o(), D(nl(K.value.component), rl({ key: 7 }, K.value.props, {
1051
1057
  ref_key: "tableUnit",
1052
1058
  ref: Y,
1053
- onClose: a[5] || (a[5] = (l) => E.value.showTable = !1)
1054
- }), bt({
1059
+ onClose: gt
1060
+ }), xt({
1055
1061
  content: k(() => [
1056
- (o(), D(i(Dt), {
1057
- key: `table_${Fe.value}`,
1062
+ (o(), D(i(Ot), {
1063
+ key: `table_${Ee.value}`,
1058
1064
  colNames: W.value.colNames,
1059
1065
  head: W.value.head,
1060
1066
  body: W.value.body,
1061
1067
  config: W.value.config,
1062
1068
  title: e.value.table.useDialog ? "" : K.value.title,
1063
1069
  withCloseButton: !e.value.table.useDialog,
1064
- onClose: a[4] || (a[4] = (l) => E.value.showTable = !1)
1070
+ onClose: gt
1065
1071
  }, {
1066
1072
  th: k(({ th: l }) => [
1067
1073
  $e(m(l.name ?? l), 1)
1068
1074
  ]),
1069
1075
  td: k(({ td: l }) => [
1070
- l.value === null ? (o(), n("span", La, "-")) : (o(), n("b", _a, 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)),
1076
+ l.value === null ? (o(), n("span", Aa, "-")) : (o(), n("b", Sa, 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)),
1071
1077
  b("span", null, m(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
1072
1078
  ]),
1073
1079
  _: 1
@@ -1090,7 +1096,7 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
1090
1096
  class: "vue-ui-user-options-button",
1091
1097
  onClick: a[3] || (a[3] = (l) => Le(e.value.userOptions.callbacks.csv))
1092
1098
  }, [
1093
- mt(i(Tt), {
1099
+ pt(i(Nt), {
1094
1100
  name: "excel",
1095
1101
  stroke: K.value.props.color
1096
1102
  }, null, 8, ["stroke"])
@@ -1099,36 +1105,36 @@ const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "widt
1099
1105
  key: "1"
1100
1106
  } : void 0
1101
1107
  ]), 1040)) : v("", !0),
1102
- e.value.style.chart.dialog.show ? (o(), D(i(De), {
1108
+ e.value.style.chart.dialog.show ? (o(), D(i(Ne), {
1103
1109
  key: 8,
1104
1110
  ref_key: "dialog",
1105
- ref: Ae,
1106
- onClose: a[6] || (a[6] = (l) => {
1107
- B.value = null, de.value = !1, le.value = null, g.value = null, J.value = null;
1111
+ ref: Se,
1112
+ onClose: a[4] || (a[4] = (l) => {
1113
+ V.value = null, de.value = !1, le.value = null, g.value = null, J.value = null;
1108
1114
  }),
1109
1115
  backgroundColor: e.value.style.chart.dialog.backgroundColor,
1110
1116
  color: e.value.style.chart.dialog.color,
1111
1117
  headerBg: e.value.style.chart.dialog.header.backgroundColor,
1112
1118
  headerColor: e.value.style.chart.dialog.header.color,
1113
1119
  isFullscreen: H.value,
1114
- fullscreenParent: O.value
1120
+ fullscreenParent: P.value
1115
1121
  }, {
1116
1122
  title: k(() => [
1117
- $e(m(L.value[Number(B.value.index)] ? L.value[Number(B.value.index)].text : ""), 1)
1123
+ $e(m(_.value[Number(V.value.index)] ? _.value[Number(V.value.index)].text : ""), 1)
1118
1124
  ]),
1119
1125
  content: k(() => [
1120
- B.value ? (o(), D(i(Ft), {
1126
+ V.value ? (o(), D(i(Rt), {
1121
1127
  key: 0,
1122
- config: yt.value,
1123
- dataset: ht.value
1128
+ config: ft.value,
1129
+ dataset: yt.value
1124
1130
  }, null, 8, ["config", "dataset"])) : v("", !0)
1125
1131
  ]),
1126
1132
  _: 1
1127
1133
  }, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : v("", !0),
1128
- i(je) ? (o(), D(_l, { key: 9 })) : v("", !0)
1129
- ], 46, Ol));
1134
+ i(qe) ? (o(), D(Sl, { key: 9 })) : v("", !0)
1135
+ ], 46, El));
1130
1136
  }
1131
- }, Ha = /* @__PURE__ */ Pl(Aa, [["__scopeId", "data-v-b160d8ca"]]);
1137
+ }, Xa = /* @__PURE__ */ Fl(za, [["__scopeId", "data-v-7f7c1db9"]]);
1132
1138
  export {
1133
- Ha as default
1139
+ Xa as default
1134
1140
  };