vue-data-ui 3.0.22 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/{Arrow-C3_2GkYQ.js → Arrow-DvG07exK.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BhxUDwEm.js → BaseDraggableDialog-O7900pGp.js} +72 -59
  3. package/dist/{BaseIcon-B717hnWR.js → BaseIcon-DHtro8us.js} +1 -1
  4. package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
  5. package/dist/{ColorPicker-CH5_RNaK.js → ColorPicker-CpWzNn4r.js} +2 -2
  6. package/dist/DataTable-DJjA2_wf.js +140 -0
  7. package/dist/Legend-2-dC7DVb.js +72 -0
  8. package/dist/{NonSvgPenAndPaper-DCJGSteM.js → NonSvgPenAndPaper-DHeE4Yuv.js} +3 -3
  9. package/dist/{PackageVersion-CE7HSich.js → PackageVersion-DU12WH3O.js} +1 -1
  10. package/dist/{PenAndPaper-BMHsOtT8.js → PenAndPaper-B7QEDgx4.js} +3 -3
  11. package/dist/{Shape-C3J8aKNH.js → Shape-Dj2Hl33H.js} +1 -1
  12. package/dist/{Slicer-BEBDljWA.js → Slicer-D99HytqX.js} +2 -2
  13. package/dist/{SparkTooltip-CVSZQtoP.js → SparkTooltip-B-wL07rI.js} +1 -1
  14. package/dist/{Title-BL-IjQmj.js → Title-Dq2_Z9kR.js} +1 -1
  15. package/dist/{Tooltip-CCnDaboi.js → Tooltip-Y219DXZO.js} +1 -1
  16. package/dist/{UserOptions-BWMV0_Ze.js → UserOptions-BuGfCdAY.js} +2 -2
  17. package/dist/{dom-to-png-DwUGURhV.js → dom-to-png-BhciAKaM.js} +1 -1
  18. package/dist/{img-DsVqerdt.js → img-JOqdlnUs.js} +1 -1
  19. package/dist/{index-BHb_mcWF.js → index-CDQbCd41.js} +37 -2
  20. package/dist/{pdf-Ckt8JtYf.js → pdf-Dd-LIJqz.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +35 -0
  23. package/dist/types/vue-data-ui.d.ts +35 -0
  24. package/dist/{useAutoSizeLabelsInsideViewbox-Cy946l1e.js → useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js} +1 -1
  25. package/dist/{useNestedProp-aC9S6EFJ.js → useNestedProp-BPEHGiYX.js} +1 -1
  26. package/dist/{usePrinter-B7rhbRrT.js → usePrinter-Bnl1YeUU.js} +2 -2
  27. package/dist/{vue-data-ui-Bu7qDtf0.js → vue-data-ui-DcNYz3cZ.js} +64 -64
  28. package/dist/vue-data-ui.js +1 -1
  29. package/dist/vue-ui-3d-bar-BNIFAeN-.js +1369 -0
  30. package/dist/{vue-ui-accordion-DsnF0JuK.js → vue-ui-accordion-Bf_LHFFX.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-s8xyb3Gf.js → vue-ui-age-pyramid-Bz-l1afR.js} +333 -286
  32. package/dist/{vue-ui-annotator-DRacM62z.js → vue-ui-annotator-BcfRH2BF.js} +2 -2
  33. package/dist/{vue-ui-bullet-DdDrdyOJ.js → vue-ui-bullet-DK1aM9fX.js} +8 -8
  34. package/dist/{vue-ui-candlestick-BsNnInNt.js → vue-ui-candlestick-D6mMjvtu.js} +453 -406
  35. package/dist/{vue-ui-carousel-table-Ci9mrUBd.js → vue-ui-carousel-table-Vp5f238W.js} +4 -4
  36. package/dist/{vue-ui-chestnut-fHfJNK0V.js → vue-ui-chestnut-BKc4v-lf.js} +509 -459
  37. package/dist/vue-ui-chord-CquhRjf0.js +1100 -0
  38. package/dist/vue-ui-circle-pack-D6zLgxa3.js +755 -0
  39. package/dist/{vue-ui-cursor-Bk5LHg5V.js → vue-ui-cursor-DIXb2S93.js} +2 -2
  40. package/dist/{vue-ui-dashboard-CjZMEYs6.js → vue-ui-dashboard-DmiriAK7.js} +62 -62
  41. package/dist/{vue-ui-digits-nDIvHyRB.js → vue-ui-digits-CLAIo9gW.js} +2 -2
  42. package/dist/{vue-ui-donut-CF9FdxfC.js → vue-ui-donut-C8h_tCSO.js} +477 -431
  43. package/dist/{vue-ui-donut-evolution-f5k-Yu3N.js → vue-ui-donut-evolution-C3r0YhKz.js} +482 -435
  44. package/dist/{vue-ui-dumbbell-Dm3gsrzi.js → vue-ui-dumbbell-D-t4M00E.js} +443 -398
  45. package/dist/vue-ui-flow-D7_D_UNm.js +900 -0
  46. package/dist/vue-ui-funnel-B0QOfZRz.js +666 -0
  47. package/dist/vue-ui-galaxy-Ccw5uNes.js +744 -0
  48. package/dist/{vue-ui-gauge-DkDpUAN7.js → vue-ui-gauge-DvW7nFmK.js} +8 -8
  49. package/dist/{vue-ui-gizmo-BD5fLs8r.js → vue-ui-gizmo-WGQxvGPy.js} +4 -4
  50. package/dist/vue-ui-heatmap-BQkLujyp.js +1127 -0
  51. package/dist/{vue-ui-history-plot-ICoBBO-y.js → vue-ui-history-plot-eU33r_Ot.js} +408 -361
  52. package/dist/{vue-ui-kpi-Dp2M2EFo.js → vue-ui-kpi-CKg2i71M.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-C5672jjA.js → vue-ui-mini-loader-BmkGQsm_.js} +2 -2
  54. package/dist/vue-ui-molecule-Dlu0hjSg.js +702 -0
  55. package/dist/{vue-ui-mood-radar-B-qhYUcB.js → vue-ui-mood-radar-DQaxfw9R.js} +342 -291
  56. package/dist/{vue-ui-nested-donuts-V6BvP3pF.js → vue-ui-nested-donuts-Djj9Aw_i.js} +548 -502
  57. package/dist/{vue-ui-onion-BKqqbWbg.js → vue-ui-onion-ZgsErXis.js} +363 -317
  58. package/dist/vue-ui-parallel-coordinate-plot-B5fB22Jc.js +979 -0
  59. package/dist/vue-ui-quadrant-CMevCtXH.js +1483 -0
  60. package/dist/{vue-ui-quick-chart-BVZSdQeT.js → vue-ui-quick-chart-DcparKSX.js} +7 -7
  61. package/dist/vue-ui-radar-DFbxoKCK.js +858 -0
  62. package/dist/{vue-ui-rating-CncrxDCY.js → vue-ui-rating-ZUpxCWrk.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-VYM1dclx.js → vue-ui-relation-circle-eNKJY4Sx.js} +8 -8
  64. package/dist/vue-ui-ridgeline-D4shpQZd.js +1204 -0
  65. package/dist/vue-ui-rings-TdTHMbsa.js +785 -0
  66. package/dist/{vue-ui-scatter-D2b-u5dv.js → vue-ui-scatter-CVuV9ljU.js} +594 -548
  67. package/dist/{vue-ui-skeleton-BTuBaaE_.js → vue-ui-skeleton-CFxBU2-p.js} +3 -3
  68. package/dist/{vue-ui-smiley-D1UxJNbV.js → vue-ui-smiley-Har3B3aQ.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-BCP0BWMI.js → vue-ui-spark-trend-FPk-XEwI.js} +4 -4
  70. package/dist/{vue-ui-sparkbar-eBo-RSvE.js → vue-ui-sparkbar-V3eJ0w0t.js} +4 -4
  71. package/dist/{vue-ui-sparkgauge-DberOXWX.js → vue-ui-sparkgauge-DKTGkWnJ.js} +4 -4
  72. package/dist/{vue-ui-sparkhistogram-CoKQGG5X.js → vue-ui-sparkhistogram-DJsgFwHs.js} +5 -5
  73. package/dist/{vue-ui-sparkline-B_L4UNES.js → vue-ui-sparkline-Dmrm5SL5.js} +4 -4
  74. package/dist/{vue-ui-sparkstackbar-iAaRIyqb.js → vue-ui-sparkstackbar-B0Pl7VMI.js} +4 -4
  75. package/dist/{vue-ui-stackbar-B_0PJ7R2.js → vue-ui-stackbar-CNsgBPhj.js} +525 -479
  76. package/dist/{vue-ui-strip-plot-CWkA4l9P.js → vue-ui-strip-plot-CYAWwYOM.js} +390 -343
  77. package/dist/{vue-ui-table-CILVy7YP.js → vue-ui-table-Dn6H98rP.js} +3 -3
  78. package/dist/{vue-ui-table-heatmap-DL2n2Z7p.js → vue-ui-table-heatmap-COI9LRqC.js} +5 -5
  79. package/dist/{vue-ui-table-sparkline-DOt2EKpe.js → vue-ui-table-sparkline-B7Gg5FfJ.js} +4 -4
  80. package/dist/{vue-ui-thermometer-BTP1ic_T.js → vue-ui-thermometer-Bgynq5El.js} +8 -8
  81. package/dist/{vue-ui-timer-Bc-zJH9j.js → vue-ui-timer-CXng51v5.js} +5 -5
  82. package/dist/{vue-ui-tiremarks-B9n528e1.js → vue-ui-tiremarks-Cy1U3hO1.js} +7 -7
  83. package/dist/vue-ui-treemap-BsvIvRmE.js +1092 -0
  84. package/dist/{vue-ui-vertical-bar-CK2j09gJ.js → vue-ui-vertical-bar-DHqWeDIf.js} +512 -464
  85. package/dist/{vue-ui-waffle-DJkqgqlR.js → vue-ui-waffle-D1Mscj3N.js} +416 -370
  86. package/dist/{vue-ui-wheel-CcbgpIUr.js → vue-ui-wheel-DpV-N5tF.js} +7 -7
  87. package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +811 -0
  88. package/dist/{vue-ui-world-DLmB_Z96.js → vue-ui-world-DYz6zw3x.js} +512 -466
  89. package/dist/{vue-ui-xy-KmrNT6qh.js → vue-ui-xy-B1nqNbzw.js} +1559 -1508
  90. package/dist/vue-ui-xy-canvas-D4wd-Asd.js +1291 -0
  91. package/package.json +1 -1
  92. package/dist/DataTable-Y5T9UxMO.js +0 -133
  93. package/dist/Legend-DkU3at-b.js +0 -72
  94. package/dist/vue-ui-3d-bar-CBfQ3Pcb.js +0 -1323
  95. package/dist/vue-ui-chord-0wf798ls.js +0 -1049
  96. package/dist/vue-ui-circle-pack-CuRHG8gr.js +0 -709
  97. package/dist/vue-ui-flow-K7UBguES.js +0 -852
  98. package/dist/vue-ui-funnel-DoDZbsTp.js +0 -620
  99. package/dist/vue-ui-galaxy-BsDlHxzE.js +0 -691
  100. package/dist/vue-ui-heatmap-DOT2tBy_.js +0 -1078
  101. package/dist/vue-ui-molecule-DgqVh2k0.js +0 -656
  102. package/dist/vue-ui-parallel-coordinate-plot-BZf24Zur.js +0 -927
  103. package/dist/vue-ui-quadrant-S58B2LrQ.js +0 -1432
  104. package/dist/vue-ui-radar-Dh67mQ9E.js +0 -807
  105. package/dist/vue-ui-ridgeline-CsByERvm.js +0 -1157
  106. package/dist/vue-ui-rings-CR2UfgnV.js +0 -739
  107. package/dist/vue-ui-treemap-Cl9qo9O-.js +0 -1046
  108. package/dist/vue-ui-word-cloud-CZ_TRf4o.js +0 -765
  109. package/dist/vue-ui-xy-canvas-6VYNyX6a.js +0 -1243
@@ -1,22 +1,22 @@
1
- import { defineAsyncComponent as M, ref as c, shallowRef as dt, computed as f, onMounted as qt, toRefs as Jt, nextTick as _e, watch as Ce, watchEffect as Kt, onBeforeUnmount as Qt, createElementBlock as n, openBlock as o, unref as i, normalizeStyle as J, normalizeClass as P, createBlock as N, createCommentVNode as v, createElementVNode as m, createSlots as Zt, withCtx as L, renderSlot as S, normalizeProps as K, guardReactiveProps as Q, createVNode as el, Fragment as z, renderList as $, toDisplayString as b, Teleport as tl, createTextVNode as ht } from "vue";
2
- import { u as ll, c as yt, o as ft, f as se, g as al, t as ol, a as ul, p as ne, b as sl, C as gt, d as nl, e as Le, G as rl, D as mt, m as Ae, X as il, s as Z, H as cl, k as Se, i as re, I as vl, n as dl, q as hl, r as bt, v as yl, w as fl, J as xt, K as gl } from "./index-BHb_mcWF.js";
3
- import { u as ml } from "./useChartAccessibility-9icAAmYg.js";
4
- import { u as pt } from "./useNestedProp-aC9S6EFJ.js";
5
- import { u as bl } from "./usePrinter-B7rhbRrT.js";
6
- import { u as xl } from "./useTimeLabels-BGFjWgrv.js";
7
- import { u as pl } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as kl } from "./useTimeLabelCollider-CIsgDrl9.js";
9
- import wl from "./Legend-DkU3at-b.js";
10
- import { S as _l } from "./Slicer-BEBDljWA.js";
11
- import Cl from "./Title-BL-IjQmj.js";
12
- import Ll from "./img-DsVqerdt.js";
13
- import { t as kt, u as Al } from "./useResponsive-DfdjqQps.js";
14
- import { u as Sl, B as zl } from "./useLoading-D7YHNtLX.js";
15
- import { _ as $l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"], Pl = ["id"], Dl = ["stop-color"], Fl = ["stop-color"], El = ["id"], Rl = ["stop-color"], Vl = ["stop-color"], Ml = ["stop-color"], Hl = { key: 1 }, Bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xl = { key: 0 }, Gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wl = ["font-size", "fill", "transform"], Yl = ["x", "y", "font-size", "fill"], jl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ql = ["x", "y", "font-size", "fill", "font-weight"], Jl = { key: 0 }, Kl = ["text-anchor", "font-size", "fill", "transform"], Ql = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], Zl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ea = { key: 1 }, ta = ["cx", "cy", "r", "fill"], la = { key: 0 }, aa = { key: 0 }, oa = ["d", "stroke"], ua = ["text-anchor", "x", "y", "fill"], sa = ["cx", "cy", "r", "fill"], na = { key: 0 }, ra = ["cx", "cy", "fill"], ia = { key: 1 }, ca = ["d", "fill", "stroke"], va = { key: 2 }, da = ["d", "fill", "stroke"], ha = ["x", "y", "font-size", "fill"], ya = ["x", "y", "width", "height", "fill"], fa = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], ga = {
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-CDQbCd41.js";
3
+ import { t as _t, u as wl } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Cl } from "./usePrinter-Bnl1YeUU.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-BPEHGiYX.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-JOqdlnUs.js";
12
+ import Tl from "./Title-Dq2_Z9kR.js";
13
+ import Dl from "./Legend-2-dC7DVb.js";
14
+ import { S as Nl } from "./Slicer-D99HytqX.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 = {
17
17
  key: 4,
18
18
  class: "vue-data-ui-watermark"
19
- }, ma = ["id"], ba = ["onClick"], xa = { key: 0 }, pa = { key: 1 }, ka = {
19
+ }, wa = ["id"], Ca = ["onClick"], La = { key: 0 }, _a = { key: 1 }, Aa = {
20
20
  __name: "vue-ui-donut-evolution",
21
21
  props: {
22
22
  config: {
@@ -33,58 +33,58 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
33
33
  }
34
34
  },
35
35
  emits: ["selectLegend"],
36
- setup(wt, { expose: _t, emit: Ct }) {
37
- const Lt = M(() => import("./vue-ui-accordion-DsnF0JuK.js")), At = M(() => import("./BaseDraggableDialog-BhxUDwEm.js")), St = M(() => import("./DataTable-Y5T9UxMO.js")), zt = M(() => import("./PackageVersion-CE7HSich.js")), $t = M(() => import("./PenAndPaper-BMHsOtT8.js")), It = M(() => import("./UserOptions-BWMV0_Ze.js")), Tt = M(() => import("./vue-ui-donut-CF9FdxfC.js")), { vue_ui_donut_evolution: Nt } = ll(), x = wt, O = c(yt()), w = c([]), g = c(null), ee = c(null), ie = c(!1), R = c(null), F = c(null), Ot = c(null), ze = c(0), $e = c(0), Ie = c(0), Te = c(0), Ne = c(0), ce = c(null), te = c(null), ve = c(null), de = c(null), Oe = c(!1), Pe = c(null), De = c(null), Fe = c(null), Ee = c(null), Re = c(null), he = c(!1), Y = dt(null), le = dt(null), Ve = c(null), Me = Ct, He = f(() => !!x.dataset && x.dataset.length);
38
- qt(() => {
39
- Oe.value = !0, Be();
36
+ setup(St, { expose: $t, emit: zt }) {
37
+ const It = V(() => import("./vue-ui-accordion-Bf_LHFFX.js")), Tt = V(() => import("./BaseIcon-DHtro8us.js")), Dt = V(() => import("./DataTable-DJjA2_wf.js")), Nt = V(() => import("./PackageVersion-DU12WH3O.js")), Pt = V(() => import("./PenAndPaper-B7QEDgx4.js")), Ot = V(() => import("./UserOptions-BuGfCdAY.js")), Ft = V(() => import("./vue-ui-donut-C8h_tCSO.js")), De = V(() => import("./BaseDraggableDialog-O7900pGp.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();
40
40
  });
41
- const ae = f(() => !!e.value.debug);
42
- function Be() {
43
- if (ft(x.dataset) ? (se({
41
+ const ue = f(() => !!e.value.debug);
42
+ function Ye() {
43
+ if (pt(x.dataset) ? (ie({
44
44
  componentName: "VueUiDonutEvolution",
45
45
  type: "dataset",
46
- debug: ae.value
47
- }), oe.value = !0) : x.dataset.length && x.dataset.forEach((t, a) => {
48
- al({
46
+ debug: ue.value
47
+ }), se.value = !0) : x.dataset.length && x.dataset.forEach((t, a) => {
48
+ rl({
49
49
  datasetObject: t,
50
50
  requiredAttributes: ["name", "values"]
51
51
  }).forEach((l) => {
52
- se({
52
+ ie({
53
53
  componentName: "VueUiDonutEvolution",
54
54
  type: "datasetSerieAttribute",
55
55
  property: l,
56
56
  index: a,
57
- debug: ae.value
58
- }), oe.value = !0;
57
+ debug: ue.value
58
+ }), se.value = !0;
59
59
  });
60
- }), ft(x.dataset) || (oe.value = e.value.loading), setTimeout(() => {
61
- he.value = !0;
62
- }, 10), fe(), e.value.responsive) {
63
- const t = kt(() => {
64
- he.value = !1;
65
- const { width: a, height: l } = Al({
66
- chart: F.value,
67
- title: e.value.style.chart.title.text ? Pe.value : null,
68
- legend: e.value.style.chart.legend.show ? De.value : null,
69
- slicer: e.value.style.chart.zoom.show && Xe.value > 1 ? Re.value : null,
70
- source: Fe.value
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
71
71
  });
72
72
  requestAnimationFrame(() => {
73
- H.value.width = a, H.value.height = l - 12, clearTimeout(Ve.value), Ve.value = setTimeout(() => {
74
- he.value = !0;
73
+ U.value.width = a, U.value.height = l - 12, clearTimeout(Xe.value), Xe.value = setTimeout(() => {
74
+ ge.value = !0;
75
75
  }, 10);
76
76
  });
77
77
  });
78
- Y.value && (le.value && Y.value.unobserve(le.value), Y.value.disconnect()), Y.value = new ResizeObserver(t), le.value = F.value.parentNode, Y.value.observe(le.value);
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);
79
79
  }
80
80
  }
81
- const e = c(me()), { loading: Ue, FINAL_DATASET: ye, manualLoading: oe } = Sl({
82
- ...Jt(x),
81
+ const e = c(pe()), { loading: je, FINAL_DATASET: be, manualLoading: se } = Ll({
82
+ ...tl(x),
83
83
  FINAL_CONFIG: e,
84
- prepareConfig: me,
84
+ prepareConfig: pe,
85
85
  callback: () => {
86
86
  Promise.resolve().then(async () => {
87
- await fe();
87
+ await me();
88
88
  });
89
89
  },
90
90
  skeletonDataset: [
@@ -104,7 +104,7 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
104
104
  color: "#CACACA"
105
105
  }
106
106
  ],
107
- skeletonConfig: ol({
107
+ skeletonConfig: il({
108
108
  defaultConfig: e.value,
109
109
  userConfig: {
110
110
  useCssAnimation: !1,
@@ -146,173 +146,173 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
146
146
  }
147
147
  }
148
148
  })
149
- }), H = c({
149
+ }), U = c({
150
150
  width: e.value.style.chart.layout.width,
151
151
  height: e.value.style.chart.layout.height
152
- }), Xe = f(() => Math.max(...ye.value.map((t) => t.values.length))), h = c({
152
+ }), qe = f(() => Math.max(...be.value.map((t) => t.values.length))), h = c({
153
153
  start: 0,
154
- end: Xe.value
154
+ end: qe.value
155
155
  });
156
- function Ge() {
157
- fe();
156
+ function Je() {
157
+ me();
158
158
  }
159
- async function fe() {
160
- await _e(), await _e();
161
- const { startIndex: t, endIndex: a } = e.value.style.chart.zoom, l = Ee.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(Pt(a + 1)) : (h.value.end = I.value, l.setEndValue(I.value))) : (h.value = {
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 = {
163
163
  start: 0,
164
164
  end: I.value
165
- }, $e.value += 1);
165
+ }, Pe.value += 1);
166
166
  }
167
- function Pt(t) {
167
+ function Vt(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: ge, setUserOptionsVisibility: We, keepUserOptionState: Ye } = pl({ config: e.value }), { svgRef: je } = ml({ config: e.value.style.chart.title });
172
- function me() {
173
- const t = pt({
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({
174
174
  userConfig: x.config,
175
- defaultConfig: Nt
175
+ defaultConfig: Et
176
176
  });
177
177
  let a = {};
178
178
  return t.theme ? a = {
179
- ...pt({
180
- userConfig: sl.vue_ui_donut_evolution[t.theme] || x.config,
179
+ ...At({
180
+ userConfig: vl.vue_ui_donut_evolution[t.theme] || x.config,
181
181
  defaultConfig: t
182
182
  }),
183
- customPalette: ul[t.theme] || ne
184
- } : a = t, x.config && gt(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 && gt(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: 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;
185
185
  }
186
- Ce(() => x.config, (t) => {
187
- Ue.value || (e.value = me()), ge.value = !e.value.userOptions.showOnChartHover, Be(), Ie.value += 1, Te.value += 1, Ne.value += 1, B.value.showTable = e.value.table.show;
188
- }, { deep: !0 }), Ce(() => x.dataset, (t) => {
189
- Array.isArray(t) && t.length > 0 && (oe.value = !1), Ge();
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;
188
+ }, { deep: !0 }), re(() => x.dataset, (t) => {
189
+ Array.isArray(t) && t.length > 0 && (se.value = !1), Je();
190
190
  }, { deep: !0 });
191
- const { isPrinting: qe, isImaging: Je, generatePdf: Ke, generateImage: Qe } = bl({
192
- elementId: O.value,
191
+ const { isPrinting: et, isImaging: tt, generatePdf: lt, generateImage: at } = Cl({
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
- }), Dt = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ft = f(() => nl(e.value.customPalette)), B = c({
195
+ }), Bt = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Mt = f(() => dl(e.value.customPalette)), E = c({
196
196
  showTable: e.value.table.show
197
197
  });
198
- Ce(e, () => {
199
- B.value = {
198
+ re(e, () => {
199
+ E.value = {
200
200
  showTable: e.value.table.show
201
201
  };
202
202
  }, { immediate: !0 });
203
- const V = f(() => ({
203
+ const M = 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 Et() {
209
+ function Ht() {
210
210
  let t = 0;
211
- ce.value && (t = Array.from(ce.value.querySelectorAll("text")).reduce((u, y) => {
211
+ he.value && (t = Array.from(he.value.querySelectorAll("text")).reduce((u, y) => {
212
212
  const d = y.getComputedTextLength();
213
213
  return (d > u ? d : u) + e.value.style.chart.layout.grid.axis.yLabelOffsetX;
214
214
  }, 0));
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;
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 be = c(0), Rt = kt((t) => {
219
- be.value = t;
218
+ const ke = c(0), Ut = _t((t) => {
219
+ ke.value = t;
220
220
  }, 100);
221
- Kt((t) => {
222
- const a = te.value;
221
+ ll((t) => {
222
+ const a = ae.value;
223
223
  if (!a) return;
224
224
  const l = new ResizeObserver((s) => {
225
- Rt(s[0].contentRect.height);
225
+ Ut(s[0].contentRect.height);
226
226
  });
227
227
  l.observe(a), t(() => l.disconnect());
228
- }), Qt(() => {
229
- be.value = 0;
228
+ }), al(() => {
229
+ ke.value = 0;
230
230
  });
231
- const Ze = f(() => {
231
+ const ot = f(() => {
232
232
  let t = 0;
233
- ve.value && (t = ve.value.getBBox().height);
233
+ ye.value && (t = ye.value.getBBox().height);
234
234
  let a = 0;
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;
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;
236
236
  }), r = f(() => {
237
- const t = Et(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = H.value.width, s = H.value.height, u = V.value.left + t, y = l - V.value.right, d = l - u - V.value.right, p = s - V.value.top - V.value.bottom - a - Ze.value, W = V.value.top + a, E = s - V.value.bottom - Ze.value;
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;
238
238
  return {
239
- top: W,
239
+ top: G,
240
240
  left: u,
241
241
  right: y,
242
- bottom: E,
242
+ bottom: R,
243
243
  absoluteHeight: s,
244
244
  absoluteWidth: l,
245
245
  centerX: u + Math.max(10, d) / 2,
246
- centerY: W + Math.max(10, p) / 2,
246
+ centerY: G + Math.max(10, p) / 2,
247
247
  width: Math.max(10, d),
248
248
  height: Math.max(10, p)
249
249
  };
250
- }), D = f(() => (ye.value.forEach((t, a) => {
251
- [null, void 0].includes(t.name) && se({
250
+ }), F = f(() => (be.value.forEach((t, a) => {
251
+ [null, void 0].includes(t.name) && ie({
252
252
  componentName: "VueUiDonutEvolution",
253
253
  type: "datasetSerieAttribute",
254
254
  property: "name",
255
255
  index: a,
256
- debug: ae.value
257
- }), [null, void 0].includes(t.values) && se({
256
+ debug: ue.value
257
+ }), [null, void 0].includes(t.values) && ie({
258
258
  componentName: "VueUiDonutEvolution",
259
259
  type: "datasetSerieAttribute",
260
260
  property: "values",
261
261
  index: a,
262
- debug: ae.value
262
+ debug: ue.value
263
263
  });
264
- }), ye.value.map((t, a) => ({
264
+ }), be.value.map((t, a) => ({
265
265
  ...t,
266
- values: rl(t.values),
267
- color: Le(t.color) || Ft.value[a] || ne[a] || ne[a % ne.length],
266
+ values: hl(t.values),
267
+ color: ze(t.color) || Mt.value[a] || ce[a] || ce[a % ce.length],
268
268
  length: (t.values || []).length,
269
- uid: yt()
270
- })))), j = f(() => D.value.filter((t) => !w.value.includes(t.uid)).map((t) => ({
269
+ uid: xt()
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(...j.value.map((t) => t.length))), _ = f(() => xl({
273
+ }))), I = f(() => Math.max(...q.value.map((t) => t.length))), L = f(() => Al({
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
- })), k = f(() => r.value.width / (h.value.end - h.value.start)), C = f(() => {
279
+ })), w = f(() => r.value.width / (h.value.end - h.value.start)), _ = f(() => {
280
280
  const t = [];
281
281
  for (let u = 0; u < h.value.end - h.value.start; u += 1) {
282
- const y = j.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), W = y.map((T) => T / p), E = r.value.left + k.value * u + k.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), R = r.value.left + w.value * u + w.value / 2;
283
283
  t.push({
284
284
  index: u,
285
- percentages: W,
285
+ percentages: G,
286
286
  subtotal: d || p < 0 ? null : p,
287
287
  values: y,
288
- x: E
288
+ x: R
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, k.value / 2 * 0.7), p = d > r.value.width / 16 ? r.value.width / 16 : d, W = g.value === u.index ? r.value.width / 16 : p, E = t.length > 4 ? d * 2 : d * 2 > k.value / 2 * 0.7 ? k.value / 2 * 0.7 : d * 2, T = r.value.bottom - r.value.height * u.subtotal / mt(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, 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;
294
294
  return {
295
295
  ...u,
296
296
  y: T,
297
297
  radius: p,
298
- activeRadius: W,
299
- hoverRadius: E,
300
- donut: Ae({
301
- series: j.value.map((A, vt) => ({
298
+ activeRadius: G,
299
+ hoverRadius: R,
300
+ donut: Ie({
301
+ series: q.value.map((A, ft) => ({
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: Ae({
308
- series: j.value.map((A, vt) => ({
307
+ donutHover: Ie({
308
+ series: q.value.map((A, ft) => ({
309
309
  color: A.color,
310
310
  name: A.name,
311
311
  value: A.values[y] ?? 0
312
312
  }))
313
- }, u.x, T, E, E, 1.99999, 2, 1, 360, 105.25, E / 2),
314
- donutFocus: Ae({
315
- series: j.value.map((A, vt) => ({
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) => ({
316
316
  color: A.color,
317
317
  name: A.name,
318
318
  value: A.values[y] ?? 0
@@ -321,11 +321,11 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
321
321
  };
322
322
  });
323
323
  });
324
- function et(t, a, l) {
325
- return Se(
324
+ function ut(t, a, l) {
325
+ return Te(
326
326
  e.value.style.chart.layout.dataLabels.formatter,
327
327
  t,
328
- re({
328
+ ve({
329
329
  p: e.value.style.chart.layout.dataLabels.prefix,
330
330
  v: t,
331
331
  s: e.value.style.chart.layout.dataLabels.suffix,
@@ -334,34 +334,34 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
334
334
  { datapoint: a, index: l }
335
335
  );
336
336
  }
337
- const xe = f(() => ({
338
- max: Math.max(...C.value.map((t) => t.subtotal)),
337
+ const we = f(() => ({
338
+ max: Math.max(..._.value.map((t) => t.subtotal)),
339
339
  min: 0
340
- })), U = f(() => {
341
- const t = C.value.length === 1 ? xe.value.max * 2 : xe.value.max;
342
- return mt(xe.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
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);
343
343
  });
344
- function Vt(t) {
345
- return t / U.value.max;
344
+ function Xt(t) {
345
+ return t / X.value.max;
346
346
  }
347
- const Mt = f(() => U.value.ticks.map((t) => ({
348
- y: r.value.bottom - r.value.height * Vt(t),
347
+ const Wt = f(() => X.value.ticks.map((t) => ({
348
+ y: r.value.bottom - r.value.height * Xt(t),
349
349
  value: t
350
350
  })));
351
- function Ht(t, a) {
352
- return isNaN(t.value / xt(a, "value")) ? 0 : (t.value / xt(a, "value") * 100).toFixed(0) + "%";
351
+ function Gt(t, a) {
352
+ return isNaN(t.value / Lt(a, "value")) ? 0 : (t.value / Lt(a, "value") * 100).toFixed(0) + "%";
353
353
  }
354
- function tt(t) {
355
- g.value = null, ee.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex + h.value.start });
354
+ function st(t) {
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 Bt(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;
357
+ function Yt(t) {
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
- const q = c(null);
361
- function lt(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) && (ee.value = null, g.value = null, ie.value = !0, R.value = t, Gt(t), [null, void 0].includes(a) || (q.value = a));
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));
363
363
  }
364
- const at = f(() => D.value.map((t, a) => ({
364
+ const rt = 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",
@@ -369,10 +369,10 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
369
369
  color: t.color
370
370
  })).sort((t, a) => a.value - t.value).map((t) => ({
371
371
  ...t,
372
- opacity: w.value.includes(t.uid) ? 0.5 : 1,
373
- segregate: () => pe(t.uid),
374
- isSegregated: w.value.includes(t.uid)
375
- }))), ot = f(() => C.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), Ut = f(() => ({
372
+ opacity: C.value.includes(t.uid) ? 0.5 : 1,
373
+ segregate: () => Ce(t.uid),
374
+ isSegregated: C.value.includes(t.uid)
375
+ }))), it = f(() => _.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,24 +380,24 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
380
380
  paddingBottom: 12,
381
381
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
382
382
  }));
383
- function pe(t) {
384
- if (w.value.includes(t))
385
- w.value = w.value.filter((a) => a !== t), Me("selectLegend", null);
383
+ function Ce(t) {
384
+ if (C.value.includes(t))
385
+ C.value = C.value.filter((a) => a !== t), We("selectLegend", null);
386
386
  else {
387
- if (w.value.length === D.value.length - 1) return;
388
- w.value.push(t), Me("selectLegend", D.value.find((a) => a.uid === t));
387
+ if (C.value.length === F.value.length - 1) return;
388
+ C.value.push(t), We("selectLegend", F.value.find((a) => a.uid === t));
389
389
  }
390
- R.value && lt(C.value.find((a, l) => l === q.value));
390
+ B.value && nt(_.value.find((a, l) => l === J.value));
391
391
  }
392
- const X = f(() => {
393
- const t = [""].concat(D.value.filter((u) => !w.value.includes(u.uid)).map((u) => ({
392
+ const W = f(() => {
393
+ const t = [""].concat(F.value.filter((u) => !C.value.includes(u.uid)).map((u) => ({
394
394
  name: u.name,
395
395
  color: u.color
396
396
  }))).concat(["Σ"]);
397
397
  let a = [];
398
398
  for (let u = 0; u < I.value; u += 1) {
399
- const y = D.value.filter((d) => !w.value.includes(d.uid)).map((d) => d.values[u] ?? 0).reduce((d, p) => d + p, 0);
400
- a.push([_[u] ? _[u].text : "-"].concat(D.value.filter((d) => !w.value.includes(d.uid)).map((d) => ({
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) => ({
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}`]));
@@ -416,47 +416,47 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
416
416
  breakpoint: e.value.table.responsiveBreakpoint
417
417
  }, s = [
418
418
  e.value.table.columnNames.period
419
- ].concat(D.value.filter((u) => !w.value.includes(u.uid)).map((u) => u.name)).concat(e.value.table.columnNames.total);
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 Xt() {
423
- return D.value;
422
+ function qt() {
423
+ return F.value;
424
424
  }
425
- function ut(t = null) {
426
- _e(() => {
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((p) => p.value ?? p))], u = a.concat([l]).concat(s), y = yl(u);
428
- t ? t(y) : fl({ csvContent: y, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
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" });
429
429
  });
430
430
  }
431
- const G = c(!1);
432
- function st(t) {
433
- G.value = t, ze.value += 1;
431
+ const H = c(!1);
432
+ function ct(t) {
433
+ H.value = t, Ne.value += 1;
434
434
  }
435
- function nt() {
436
- B.value.showTable = !B.value.showTable;
435
+ function vt() {
436
+ E.value.showTable = !E.value.showTable;
437
437
  }
438
- const ue = c(!1);
439
- function ke() {
440
- ue.value = !ue.value;
438
+ const ne = c(!1);
439
+ function _e() {
440
+ ne.value = !ne.value;
441
441
  }
442
- function rt(t) {
442
+ function dt(t) {
443
443
  return t.proportion * 100 > e.value.style.chart.donuts.hover.hideLabelsUnderValue;
444
444
  }
445
- const it = c([]), ct = c({}), we = c(null);
446
- function Gt(t) {
447
- it.value = t.donut.map((a) => ({
445
+ const ht = c([]), yt = c({}), Ae = c(null);
446
+ function Jt(t) {
447
+ ht.value = t.donut.map((a) => ({
448
448
  name: a.name,
449
449
  values: [a.value],
450
450
  color: a.color
451
- })), ct.value = gl({
451
+ })), yt.value = kl({
452
452
  ...e.value.style.chart.dialog.donutChart,
453
453
  responsive: !0,
454
454
  theme: e.value.theme
455
- }), we.value && we.value.open();
455
+ }), Ae.value && Ae.value.open();
456
456
  }
457
- async function Wt({ scale: t = 2 } = {}) {
458
- if (!F.value) return;
459
- const { width: a, height: l } = F.value.getBoundingClientRect(), s = a / l, { imageUri: u, base64: y } = await Ll({ domElement: F.value, base64: !0, img: !0, scale: t });
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 });
460
460
  return {
461
461
  imageUri: u,
462
462
  base64: y,
@@ -466,60 +466,93 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
466
466
  aspectRatio: s
467
467
  };
468
468
  }
469
- const Yt = f(() => H.value.width), jt = f(() => H.value.height);
470
- return kl({
471
- timeLabelsEls: te,
472
- timeLabels: _,
469
+ const Qt = f(() => U.value.width), Zt = f(() => U.value.height);
470
+ zl({
471
+ timeLabelsEls: ae,
472
+ timeLabels: L,
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: Yt,
479
- height: jt,
478
+ width: Qt,
479
+ height: Zt,
480
480
  rotation: e.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
481
- }), _t({
482
- getData: Xt,
483
- getImage: Wt,
484
- generatePdf: Ke,
485
- generateCsv: ut,
486
- generateImage: Qe,
487
- toggleTable: nt,
488
- toggleAnnotator: ke,
489
- toggleFullscreen: st
481
+ });
482
+ const K = f(() => {
483
+ const t = e.value.table.useDialog && !e.value.table.show, a = E.value.showTable;
484
+ return {
485
+ component: t ? De : It,
486
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
487
+ props: t ? {
488
+ backgroundColor: e.value.table.th.backgroundColor,
489
+ color: e.value.table.th.color,
490
+ headerColor: e.value.table.th.color,
491
+ headerBg: e.value.table.th.backgroundColor,
492
+ isFullscreen: H.value,
493
+ fullscreenParent: O.value,
494
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
495
+ } : {
496
+ hideDetails: !0,
497
+ config: {
498
+ open: a,
499
+ maxHeight: 1e4,
500
+ body: {
501
+ backgroundColor: e.value.style.chart.backgroundColor,
502
+ color: e.value.style.chart.color
503
+ },
504
+ head: {
505
+ backgroundColor: e.value.style.chart.backgroundColor,
506
+ color: e.value.style.chart.color
507
+ }
508
+ }
509
+ }
510
+ };
511
+ });
512
+ return re(() => E.value.showTable, (t) => {
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,
518
+ generateCsv: Le,
519
+ generateImage: at,
520
+ toggleTable: vt,
521
+ toggleAnnotator: _e,
522
+ toggleFullscreen: ct
490
523
  }), (t, a) => (o(), n("div", {
491
524
  ref_key: "donutEvolutionChart",
492
- ref: F,
493
- class: P(`vue-ui-donut-evolution ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
494
- style: J(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
495
- id: O.value,
496
- onMouseenter: a[5] || (a[5] = () => i(We)(!0)),
497
- onMouseleave: a[6] || (a[6] = () => i(We)(!1))
525
+ ref: O,
526
+ class: P(`vue-ui-donut-evolution ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
527
+ style: Q(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
528
+ id: N.value,
529
+ onMouseenter: a[7] || (a[7] = () => i(Ke)(!0)),
530
+ onMouseleave: a[8] || (a[8] = () => i(Ke)(!1))
498
531
  }, [
499
- e.value.userOptions.buttons.annotator ? (o(), N(i($t), {
532
+ e.value.userOptions.buttons.annotator ? (o(), D(i(Pt), {
500
533
  key: 0,
501
- svgRef: i(je),
534
+ svgRef: i(Ze),
502
535
  backgroundColor: e.value.style.chart.backgroundColor,
503
536
  color: e.value.style.chart.color,
504
- active: ue.value,
505
- onClose: ke
537
+ active: ne.value,
538
+ onClose: _e
506
539
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
507
- Dt.value ? (o(), n("div", {
540
+ Bt.value ? (o(), n("div", {
508
541
  key: 1,
509
542
  ref_key: "noTitle",
510
- ref: Ot,
543
+ ref: Rt,
511
544
  class: "vue-data-ui-no-title-space",
512
545
  style: "height:36px; width: 100%;background:transparent"
513
546
  }, null, 512)) : v("", !0),
514
547
  e.value.style.chart.title.text ? (o(), n("div", {
515
548
  key: 2,
516
549
  ref_key: "chartTitle",
517
- ref: Pe,
550
+ ref: Ve,
518
551
  style: "width:100%;background:transparent;padding-bottom:24px",
519
- onMouseleave: tt
552
+ onMouseleave: st
520
553
  }, [
521
- (o(), N(Cl, {
522
- key: `title_${Ie.value}`,
554
+ (o(), D(Tl, {
555
+ key: `title_${Oe.value}`,
523
556
  config: {
524
557
  title: {
525
558
  cy: "donut-evolution-div-title",
@@ -532,99 +565,99 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
532
565
  }
533
566
  }, null, 8, ["config"]))
534
567
  ], 544)) : v("", !0),
535
- m("div", {
536
- id: `legend-top-${O.value}`
537
- }, null, 8, Tl),
538
- e.value.userOptions.show && He.value && (i(Ye) || i(ge)) ? (o(), N(i(It), {
568
+ b("div", {
569
+ id: `legend-top-${N.value}`
570
+ }, null, 8, Fl),
571
+ e.value.userOptions.show && Ge.value && (i(Qe) || i(xe)) ? (o(), D(i(Ot), {
539
572
  ref: "details",
540
- key: `user_options_${ze.value}`,
573
+ key: `user_options_${Ne.value}`,
541
574
  backgroundColor: e.value.style.chart.backgroundColor,
542
575
  color: e.value.style.chart.color,
543
- isPrinting: i(qe),
544
- isImaging: i(Je),
545
- uid: O.value,
576
+ isPrinting: i(et),
577
+ isImaging: i(tt),
578
+ uid: N.value,
546
579
  hasPdf: e.value.userOptions.buttons.pdf,
547
580
  hasImg: e.value.userOptions.buttons.img,
548
581
  hasXls: e.value.userOptions.buttons.csv,
549
582
  hasTable: e.value.userOptions.buttons.table,
550
583
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
551
- isFullscreen: G.value,
584
+ isFullscreen: H.value,
552
585
  titles: { ...e.value.userOptions.buttonTitles },
553
- chartElement: F.value,
586
+ chartElement: O.value,
554
587
  position: e.value.userOptions.position,
555
588
  hasAnnotator: e.value.userOptions.buttons.annotator,
556
- isAnnotation: ue.value,
589
+ isAnnotation: ne.value,
557
590
  callbacks: e.value.userOptions.callbacks,
558
591
  printScale: e.value.userOptions.print.scale,
559
- onToggleFullscreen: st,
560
- onGeneratePdf: i(Ke),
561
- onGenerateCsv: ut,
562
- onGenerateImage: i(Qe),
563
- onToggleTable: nt,
564
- onToggleAnnotator: ke,
565
- style: J({
566
- visibility: i(Ye) ? i(ge) ? "visible" : "hidden" : "visible"
592
+ onToggleFullscreen: ct,
593
+ onGeneratePdf: i(lt),
594
+ onGenerateCsv: Le,
595
+ onGenerateImage: i(at),
596
+ onToggleTable: vt,
597
+ onToggleAnnotator: _e,
598
+ style: Q({
599
+ visibility: i(Qe) ? i(xe) ? "visible" : "hidden" : "visible"
567
600
  })
568
- }, Zt({ _: 2 }, [
601
+ }, bt({ _: 2 }, [
569
602
  t.$slots.menuIcon ? {
570
603
  name: "menuIcon",
571
- fn: L(({ isOpen: l, color: s }) => [
572
- S(t.$slots, "menuIcon", K(Q({ isOpen: l, color: s })), void 0, !0)
604
+ fn: k(({ isOpen: l, color: s }) => [
605
+ S(t.$slots, "menuIcon", Z(ee({ isOpen: l, color: s })), void 0, !0)
573
606
  ]),
574
607
  key: "0"
575
608
  } : void 0,
576
609
  t.$slots.optionPdf ? {
577
610
  name: "optionPdf",
578
- fn: L(() => [
611
+ fn: k(() => [
579
612
  S(t.$slots, "optionPdf", {}, void 0, !0)
580
613
  ]),
581
614
  key: "1"
582
615
  } : void 0,
583
616
  t.$slots.optionCsv ? {
584
617
  name: "optionCsv",
585
- fn: L(() => [
618
+ fn: k(() => [
586
619
  S(t.$slots, "optionCsv", {}, void 0, !0)
587
620
  ]),
588
621
  key: "2"
589
622
  } : void 0,
590
623
  t.$slots.optionImg ? {
591
624
  name: "optionImg",
592
- fn: L(() => [
625
+ fn: k(() => [
593
626
  S(t.$slots, "optionImg", {}, void 0, !0)
594
627
  ]),
595
628
  key: "3"
596
629
  } : void 0,
597
630
  t.$slots.optionTable ? {
598
631
  name: "optionTable",
599
- fn: L(() => [
632
+ fn: k(() => [
600
633
  S(t.$slots, "optionTable", {}, void 0, !0)
601
634
  ]),
602
635
  key: "4"
603
636
  } : void 0,
604
637
  t.$slots.optionFullscreen ? {
605
638
  name: "optionFullscreen",
606
- fn: L(({ toggleFullscreen: l, isFullscreen: s }) => [
607
- S(t.$slots, "optionFullscreen", K(Q({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
639
+ fn: k(({ toggleFullscreen: l, isFullscreen: s }) => [
640
+ S(t.$slots, "optionFullscreen", Z(ee({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
608
641
  ]),
609
642
  key: "5"
610
643
  } : void 0,
611
644
  t.$slots.optionAnnotator ? {
612
645
  name: "optionAnnotator",
613
- fn: L(({ toggleAnnotator: l, isAnnotator: s }) => [
614
- S(t.$slots, "optionAnnotator", K(Q({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
646
+ fn: k(({ toggleAnnotator: l, isAnnotator: s }) => [
647
+ S(t.$slots, "optionAnnotator", Z(ee({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
615
648
  ]),
616
649
  key: "6"
617
650
  } : void 0
618
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),
619
652
  (o(), n("svg", {
620
653
  ref_key: "svgRef",
621
- ref: je,
622
- xmlns: i(il),
623
- class: P({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
654
+ ref: Ze,
655
+ xmlns: i(yl),
656
+ class: P({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
624
657
  viewBox: `0 0 ${r.value.absoluteWidth} ${r.value.absoluteHeight}`,
625
- style: J(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
658
+ style: Q(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
626
659
  }, [
627
- el(i(zt)),
660
+ mt(i(Nt)),
628
661
  t.$slots["chart-background"] ? (o(), n("foreignObject", {
629
662
  key: 0,
630
663
  x: r.value.left,
@@ -636,43 +669,43 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
636
669
  }
637
670
  }, [
638
671
  S(t.$slots, "chart-background", {}, void 0, !0)
639
- ], 8, Ol)) : v("", !0),
640
- m("defs", null, [
641
- m("linearGradient", {
642
- id: `hover_${O.value}`,
672
+ ], 8, Rl)) : v("", !0),
673
+ b("defs", null, [
674
+ b("linearGradient", {
675
+ id: `hover_${N.value}`,
643
676
  x1: "0%",
644
677
  y1: "0%",
645
678
  x2: "0%",
646
679
  y2: "100%"
647
680
  }, [
648
- m("stop", {
681
+ b("stop", {
649
682
  offset: "0%",
650
- "stop-color": i(Z)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
651
- }, null, 8, Dl),
652
- m("stop", {
683
+ "stop-color": i(te)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
684
+ }, null, 8, Bl),
685
+ b("stop", {
653
686
  offset: "100%",
654
- "stop-color": i(Z)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
655
- }, null, 8, Fl)
656
- ], 8, Pl),
657
- m("radialGradient", {
658
- id: `focus_${O.value}`
687
+ "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),
690
+ b("radialGradient", {
691
+ id: `focus_${N.value}`
659
692
  }, [
660
- m("stop", {
693
+ b("stop", {
661
694
  offset: "0%",
662
- "stop-color": i(Z)(i(Le)(e.value.style.chart.backgroundColor), 0)
663
- }, null, 8, Rl),
664
- m("stop", {
695
+ "stop-color": i(te)(i(ze)(e.value.style.chart.backgroundColor), 0)
696
+ }, null, 8, Ul),
697
+ b("stop", {
665
698
  offset: "77%",
666
- "stop-color": i(Z)("#FFFFFF", 30)
667
- }, null, 8, Vl),
668
- m("stop", {
699
+ "stop-color": i(te)("#FFFFFF", 30)
700
+ }, null, 8, Xl),
701
+ b("stop", {
669
702
  offset: "100%",
670
- "stop-color": i(Z)(i(Le)(e.value.style.chart.backgroundColor), 0)
671
- }, null, 8, Ml)
672
- ], 8, El)
703
+ "stop-color": i(te)(i(ze)(e.value.style.chart.backgroundColor), 0)
704
+ }, null, 8, Wl)
705
+ ], 8, Hl)
673
706
  ]),
674
- e.value.style.chart.layout.grid.show ? (o(), n("g", Hl, [
675
- m("line", {
707
+ e.value.style.chart.layout.grid.show ? (o(), n("g", Gl, [
708
+ b("line", {
676
709
  x1: r.value.left,
677
710
  x2: r.value.left,
678
711
  y1: r.value.top,
@@ -680,8 +713,8 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
680
713
  stroke: e.value.style.chart.layout.grid.stroke,
681
714
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
682
715
  "stroke-linecap": "round"
683
- }, null, 8, Bl),
684
- m("line", {
716
+ }, null, 8, Yl),
717
+ b("line", {
685
718
  x1: r.value.left,
686
719
  x2: r.value.right,
687
720
  y1: r.value.bottom,
@@ -689,49 +722,49 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
689
722
  stroke: e.value.style.chart.layout.grid.stroke,
690
723
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
691
724
  "stroke-linecap": "round"
692
- }, null, 8, Ul),
693
- e.value.style.chart.layout.grid.showVerticalLines ? (o(), n("g", Xl, [
694
- (o(!0), n(z, null, $(h.value.end - h.value.start, (l, s) => (o(), n("line", {
695
- x1: r.value.left + (s + 1) * k.value,
696
- x2: r.value.left + (s + 1) * k.value,
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", {
728
+ x1: r.value.left + (s + 1) * w.value,
729
+ x2: r.value.left + (s + 1) * w.value,
697
730
  y1: r.value.top,
698
731
  y2: r.value.bottom,
699
732
  stroke: e.value.style.chart.layout.grid.stroke,
700
733
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
701
734
  "stroke-linecap": "round"
702
- }, null, 8, Gl))), 256))
735
+ }, null, 8, Jl))), 256))
703
736
  ])) : v("", !0)
704
737
  ])) : v("", !0),
705
- m("g", null, [
738
+ b("g", null, [
706
739
  e.value.style.chart.layout.grid.axis.yLabel ? (o(), n("text", {
707
740
  key: 0,
708
741
  ref_key: "yAxisLabel",
709
- ref: de,
742
+ ref: fe,
710
743
  "font-size": e.value.style.chart.layout.grid.axis.fontSize,
711
744
  fill: e.value.style.chart.layout.grid.axis.color,
712
745
  transform: `translate(${e.value.style.chart.layout.grid.axis.fontSize}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
713
746
  "text-anchor": "middle",
714
747
  style: { transition: "none" }
715
- }, b(e.value.style.chart.layout.grid.axis.yLabel), 9, Wl)) : v("", !0),
748
+ }, m(e.value.style.chart.layout.grid.axis.yLabel), 9, Kl)) : v("", !0),
716
749
  e.value.style.chart.layout.grid.axis.xLabel ? (o(), n("text", {
717
750
  key: 1,
718
751
  ref_key: "xAxisLabel",
719
- ref: ve,
752
+ ref: ye,
720
753
  "text-anchor": "middle",
721
754
  x: r.value.absoluteWidth / 2,
722
755
  y: r.value.absoluteHeight - 3,
723
756
  "font-size": e.value.style.chart.layout.grid.axis.fontSize,
724
757
  fill: e.value.style.chart.layout.grid.axis.color
725
- }, b(e.value.style.chart.layout.grid.axis.xLabel), 9, Yl)) : v("", !0)
758
+ }, m(e.value.style.chart.layout.grid.axis.xLabel), 9, Ql)) : v("", !0)
726
759
  ]),
727
760
  e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (o(), n("g", {
728
761
  key: 2,
729
762
  ref_key: "scaleLabels",
730
- ref: ce,
763
+ ref: he,
731
764
  class: P({ "donut-opacity": !0, "donut-behind": g.value !== null })
732
765
  }, [
733
- (o(!0), n(z, null, $(Mt.value, (l, s) => (o(), n("g", null, [
734
- l.value >= U.value.min && l.value <= U.value.max ? (o(), n("line", {
766
+ (o(!0), n($, null, z(Wt.value, (l, s) => (o(), n("g", null, [
767
+ l.value >= X.value.min && l.value <= X.value.max ? (o(), n("line", {
735
768
  key: 0,
736
769
  x1: r.value.left,
737
770
  x2: r.value.left - 5,
@@ -739,8 +772,8 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
739
772
  y2: l.y,
740
773
  stroke: e.value.style.chart.layout.grid.stroke,
741
774
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
742
- }, null, 8, jl)) : v("", !0),
743
- l.value >= U.value.min && l.value <= U.value.max ? (o(), n("text", {
775
+ }, null, 8, Zl)) : v("", !0),
776
+ l.value >= X.value.min && l.value <= X.value.max ? (o(), n("text", {
744
777
  key: 1,
745
778
  x: r.value.left,
746
779
  y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
@@ -748,144 +781,144 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
748
781
  "text-anchor": "end",
749
782
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
750
783
  "font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
751
- }, b(i(cl)(l.value) ? i(Se)(
784
+ }, m(i(fl)(l.value) ? i(Te)(
752
785
  e.value.style.chart.layout.dataLabels.formatter,
753
786
  l.value,
754
- i(re)({
787
+ i(ve)({
755
788
  p: e.value.style.chart.layout.dataLabels.prefix,
756
789
  v: l.value,
757
790
  s: e.value.style.chart.layout.dataLabels.suffix,
758
791
  r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
759
792
  }),
760
793
  { datapoint: l, seriesIndex: s }
761
- ) : ""), 9, ql)) : v("", !0)
794
+ ) : ""), 9, ea)) : v("", !0)
762
795
  ]))), 256))
763
796
  ], 2)) : v("", !0),
764
797
  e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (o(), n("g", {
765
798
  key: 3,
766
799
  ref_key: "timeLabelsEls",
767
- ref: te,
800
+ ref: ae,
768
801
  class: P({ "donut-opacity": !0 })
769
802
  }, [
770
- (o(!0), n(z, null, $(h.value.end - h.value.start, (l, s) => (o(), n("g", null, [
771
- (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", Jl, [
772
- String(_.value[s].text).includes(`
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(`
773
806
  `) ? (o(), n("text", {
774
807
  key: 1,
775
808
  class: "vue-data-ui-time-label",
776
809
  "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",
777
810
  "font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
778
811
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
779
- 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})`,
780
- innerHTML: i(vl)({
781
- content: String(_.value[s].text),
812
+ 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),
782
815
  fontSize: e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
783
816
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
784
817
  x: 0,
785
818
  y: 0
786
819
  })
787
- }, null, 8, Ql)) : (o(), n("text", {
820
+ }, null, 8, aa)) : (o(), n("text", {
788
821
  key: 0,
789
822
  class: "vue-data-ui-time-label",
790
823
  "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",
791
824
  "font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
792
825
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
793
- 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})`
794
- }, b(_.value[s].text || ""), 9, Kl))
826
+ 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))
795
828
  ])) : v("", !0)
796
829
  ]))), 256))
797
830
  ], 512)) : v("", !0),
798
- (o(!0), n(z, null, $(C.value, (l, s) => (o(), n("g", null, [
799
- e.value.style.chart.layout.line.show && s < C.value.length - 1 && ![l.subtotal, C.value[s + 1].subtotal].includes(null) ? (o(), n("line", {
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", {
800
833
  key: 0,
801
834
  class: P({ "donut-opacity": !0, "donut-behind": g.value !== null }),
802
835
  x1: l.x,
803
836
  y1: l.y,
804
- x2: C.value[s + 1].x,
805
- y2: C.value[s + 1].y,
837
+ x2: _.value[s + 1].x,
838
+ y2: _.value[s + 1].y,
806
839
  stroke: e.value.style.chart.layout.line.stroke,
807
840
  "stroke-width": e.value.style.chart.layout.line.strokeWidth,
808
841
  "stroke-linecap": "round",
809
842
  "stroke-linejoin": "round"
810
- }, null, 10, Zl)) : v("", !0),
811
- l.subtotal !== null ? (o(), n("g", ea, [
843
+ }, null, 10, oa)) : v("", !0),
844
+ l.subtotal !== null ? (o(), n("g", ua, [
812
845
  l.subtotal ? (o(), n("circle", {
813
846
  key: 0,
814
847
  cx: l.x,
815
848
  cy: l.y,
816
849
  r: l.activeRadius,
817
850
  fill: e.value.style.chart.backgroundColor
818
- }, null, 8, ta)) : v("", !0)
851
+ }, null, 8, sa)) : v("", !0)
819
852
  ])) : v("", !0)
820
853
  ]))), 256)),
821
- (o(!0), n(z, null, $(C.value, (l, s) => (o(), n("g", {
854
+ (o(!0), n($, null, z(_.value, (l, s) => (o(), n("g", {
822
855
  class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
823
856
  }, [
824
- l.subtotal ? (o(), n("g", la, [
825
- g.value !== null && g.value === s ? (o(), n("g", aa, [
826
- (o(!0), n(z, null, $(l.donutHover, (u) => (o(), n("g", null, [
827
- rt(u) ? (o(), n("path", {
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", {
828
861
  key: 0,
829
- d: i(dl)(u, { x: u.center.endX, y: u.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
862
+ d: i(bl)(u, { x: u.center.endX, y: u.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
830
863
  stroke: u.color,
831
864
  "stroke-width": "1",
832
865
  "stroke-linecap": "round",
833
866
  "stroke-linejoin": "round",
834
867
  fill: "none"
835
- }, null, 8, oa)) : v("", !0)
868
+ }, null, 8, ia)) : v("", !0)
836
869
  ]))), 256)),
837
- (o(!0), n(z, null, $(l.donutHover, (u, y) => (o(), n("g", null, [
838
- rt(u) ? (o(), n("text", {
870
+ (o(!0), n($, null, z(l.donutHover, (u, y) => (o(), n("g", null, [
871
+ dt(u) ? (o(), n("text", {
839
872
  key: 0,
840
873
  "data-cy-hover-label": "",
841
- "text-anchor": i(bt)(u, !0, 0).anchor,
842
- x: i(bt)(u, !0, 9).x,
843
- y: i(hl)(u, 14, 10),
874
+ "text-anchor": i(Ct)(u, !0, 0).anchor,
875
+ x: i(Ct)(u, !0, 9).x,
876
+ y: i(ml)(u, 14, 10),
844
877
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
845
878
  "font-size": 8,
846
879
  "font-weight": "bold"
847
- }, b(u.name) + ": " + b(Ht(u, l.donut)) + " (" + b(u.value === null ? "-" : et(u.value, u, y)) + ") ", 9, ua)) : v("", !0)
880
+ }, m(u.name) + ": " + m(Gt(u, l.donut)) + " (" + m(u.value === null ? "-" : ut(u.value, u, y)) + ") ", 9, ca)) : v("", !0)
848
881
  ]))), 256)),
849
- m("g", null, [
850
- m("circle", {
882
+ b("g", null, [
883
+ b("circle", {
851
884
  cx: l.x,
852
885
  cy: l.y,
853
886
  r: l.hoverRadius,
854
887
  fill: e.value.style.chart.backgroundColor
855
- }, null, 8, sa)
888
+ }, null, 8, va)
856
889
  ])
857
890
  ])) : v("", !0)
858
891
  ])) : v("", !0)
859
892
  ], 2))), 256)),
860
- (o(!0), n(z, null, $(C.value, (l, s) => (o(), n("g", {
893
+ (o(!0), n($, null, z(_.value, (l, s) => (o(), n("g", {
861
894
  class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
862
895
  }, [
863
- l.subtotal !== null ? (o(), n("g", na, [
896
+ l.subtotal !== null ? (o(), n("g", da, [
864
897
  l.subtotal === 0 ? (o(), n("circle", {
865
898
  key: 0,
866
899
  cx: l.x,
867
900
  cy: l.y,
868
901
  r: 3,
869
902
  fill: e.value.style.chart.color
870
- }, null, 8, ra)) : g.value !== null && g.value === s ? (o(), n("g", ia, [
871
- (o(!0), n(z, null, $(l.donutHover, (u, y) => (o(), n("path", {
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", {
872
905
  d: u.arcSlice,
873
906
  fill: `${u.color}`,
874
907
  "stroke-width": 1,
875
908
  stroke: e.value.style.chart.backgroundColor
876
- }, null, 8, ca))), 256))
877
- ])) : (o(), n("g", va, [
878
- (o(!0), n(z, null, $(l.donut, (u, y) => (o(), n("path", {
909
+ }, null, 8, fa))), 256))
910
+ ])) : (o(), n("g", ga, [
911
+ (o(!0), n($, null, z(l.donut, (u, y) => (o(), n("path", {
879
912
  d: u.arcSlice,
880
913
  fill: `${u.color}`,
881
914
  "stroke-width": 0.5,
882
915
  stroke: e.value.style.chart.backgroundColor
883
- }, null, 8, da))), 256))
916
+ }, null, 8, ba))), 256))
884
917
  ]))
885
918
  ])) : v("", !0)
886
919
  ], 2))), 256)),
887
- (o(!0), n(z, null, $(C.value, (l, s) => (o(), n("g", {
888
- class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null || ie.value && s !== R.value.index })
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 })
889
922
  }, [
890
923
  l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (o(), n("text", {
891
924
  key: 0,
@@ -895,52 +928,52 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
895
928
  "font-size": e.value.style.chart.layout.dataLabels.fontSize,
896
929
  "font-weight": "bold",
897
930
  fill: e.value.style.chart.layout.dataLabels.color
898
- }, b(et(l.subtotal, l, s)), 9, ha)) : v("", !0)
931
+ }, m(ut(l.subtotal, l, s)), 9, ma)) : v("", !0)
899
932
  ], 2))), 256)),
900
- (o(!0), n(z, null, $(C.value, (l, s) => (o(), n("rect", {
901
- x: r.value.left + s * k.value,
933
+ (o(!0), n($, null, z(_.value, (l, s) => (o(), n("rect", {
934
+ x: r.value.left + s * w.value,
902
935
  y: r.value.top,
903
- width: k.value,
936
+ width: w.value,
904
937
  height: r.value.height,
905
- fill: [g.value, q.value].includes(l.index) ? `url(#hover_${O.value})` : "transparent",
906
- class: P({ "donut-hover": l.subtotal && [g.value, q.value].includes(l.index) }),
938
+ 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) }),
907
940
  style: {
908
941
  pointerEvents: "none"
909
942
  }
910
- }, null, 10, ya))), 256)),
911
- (o(!0), n(z, null, $(C.value, (l, s) => (o(), n("rect", {
943
+ }, null, 10, xa))), 256)),
944
+ (o(!0), n($, null, z(_.value, (l, s) => (o(), n("rect", {
912
945
  "data-cy-trap": "",
913
- x: r.value.left + s * k.value,
946
+ x: r.value.left + s * w.value,
914
947
  y: r.value.top,
915
- width: k.value,
948
+ width: w.value,
916
949
  height: r.value.height,
917
950
  fill: "transparent",
918
- onMouseenter: (u) => Bt(l),
919
- onMouseleave: (u) => tt(l),
920
- onClick: (u) => lt(l, s),
951
+ onMouseenter: (u) => Yt(l),
952
+ onMouseleave: (u) => st(l),
953
+ onClick: (u) => nt(l, s),
921
954
  class: P({ "donut-hover": g.value === l.index && l.subtotal })
922
- }, null, 42, fa))), 256)),
955
+ }, null, 42, pa))), 256)),
923
956
  S(t.$slots, "svg", { svg: r.value }, void 0, !0)
924
- ], 14, Nl)),
925
- t.$slots.watermark ? (o(), n("div", ga, [
926
- S(t.$slots, "watermark", K(Q({ isPrinting: i(qe) || i(Je) })), 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)
927
960
  ])) : v("", !0),
928
- m("div", {
961
+ b("div", {
929
962
  ref_key: "chartSlicer",
930
- ref: Re,
931
- style: J(`width:100%;background:${e.value.style.chart.backgroundColor}`),
963
+ ref: Ue,
964
+ style: Q(`width:100%;background:${e.value.style.chart.backgroundColor}`),
932
965
  "data-dom-to-png-ignore": ""
933
966
  }, [
934
- I.value > 1 && e.value.style.chart.zoom.show ? (o(), N(_l, {
967
+ I.value > 1 && e.value.style.chart.zoom.show ? (o(), D(Nl, {
935
968
  ref_key: "slicerComponent",
936
- ref: Ee,
937
- key: `slicer_${$e.value}`,
969
+ ref: He,
970
+ key: `slicer_${Pe.value}`,
938
971
  background: e.value.style.chart.zoom.color,
939
972
  borderColor: e.value.style.chart.backgroundColor,
940
973
  fontSize: e.value.style.chart.zoom.fontSize,
941
974
  useResetSlot: e.value.style.chart.zoom.useResetSlot,
942
- labelLeft: _.value[0] ? _.value[0].text : "",
943
- labelRight: _.value.at(-1) ? _.value.at(-1).text : "",
975
+ labelLeft: L.value[0] ? L.value[0].text : "",
976
+ labelRight: L.value.at(-1) ? L.value.at(-1).text : "",
944
977
  textColor: e.value.style.chart.color,
945
978
  inputColor: e.value.style.chart.zoom.color,
946
979
  selectColor: e.value.style.chart.zoom.highlightColor,
@@ -956,132 +989,146 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
956
989
  refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : I.value,
957
990
  enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
958
991
  enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
959
- onReset: Ge
992
+ onReset: Je
960
993
  }, {
961
- "reset-action": L(({ reset: l }) => [
962
- S(t.$slots, "reset-action", K(Q({ reset: l })), void 0, !0)
994
+ "reset-action": k(({ reset: l }) => [
995
+ S(t.$slots, "reset-action", Z(ee({ reset: l })), void 0, !0)
963
996
  ]),
964
997
  _: 3
965
998
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : v("", !0)
966
999
  ], 4),
967
- m("div", {
968
- id: `legend-bottom-${O.value}`
969
- }, null, 8, ma),
970
- Oe.value ? (o(), N(tl, {
1000
+ b("div", {
1001
+ id: `legend-bottom-${N.value}`
1002
+ }, null, 8, wa),
1003
+ Re.value ? (o(), D(ol, {
971
1004
  key: 5,
972
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
1005
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${N.value}` : `#legend-bottom-${N.value}`
973
1006
  }, [
974
- m("div", {
1007
+ b("div", {
975
1008
  ref_key: "chartLegend",
976
- ref: De
1009
+ ref: Be
977
1010
  }, [
978
- e.value.style.chart.legend.show ? (o(), N(wl, {
979
- key: `legend_${Ne.value}`,
980
- legendSet: at.value,
981
- config: Ut.value,
982
- onClickMarker: a[2] || (a[2] = ({ legend: l }) => pe(l.uid))
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))
983
1016
  }, {
984
- item: L(({ legend: l, index: s }) => [
985
- m("div", {
986
- onClick: (u) => pe(l.uid),
987
- style: J(`opacity:${w.value.includes(l.uid) ? 0.5 : 1}`)
988
- }, b(l.name) + b(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + b(e.value.style.chart.legend.showValue ? i(Se)(
1017
+ item: k(({ legend: l, index: s }) => [
1018
+ b("div", {
1019
+ onClick: (u) => Ce(l.uid),
1020
+ 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)(
989
1022
  e.value.style.chart.layout.dataLabels.formatter,
990
1023
  l.value,
991
- i(re)({
1024
+ i(ve)({
992
1025
  p: e.value.style.chart.layout.dataLabels.prefix,
993
1026
  v: l.value,
994
1027
  s: e.value.style.chart.layout.dataLabels.suffix,
995
1028
  r: e.value.style.chart.legend.roundingValue
996
1029
  }),
997
1030
  { datapoint: l, seriesIndex: s }
998
- ) : "") + " " + b(e.value.style.chart.legend.showPercentage ? w.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 / ot.value) ? "-" : i(re)({
999
- v: l.value / ot.value * 100,
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,
1000
1033
  s: "%",
1001
1034
  r: e.value.style.chart.legend.roundingPercentage
1002
- })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, ba)
1035
+ })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Ca)
1003
1036
  ]),
1004
1037
  _: 1
1005
1038
  }, 8, ["legendSet", "config"])) : v("", !0),
1006
- S(t.$slots, "legend", { legend: at.value }, void 0, !0)
1039
+ S(t.$slots, "legend", { legend: rt.value }, void 0, !0)
1007
1040
  ], 512)
1008
1041
  ], 8, ["to"])) : v("", !0),
1009
1042
  t.$slots.source ? (o(), n("div", {
1010
1043
  key: 6,
1011
1044
  ref_key: "source",
1012
- ref: Fe,
1045
+ ref: Me,
1013
1046
  dir: "auto"
1014
1047
  }, [
1015
1048
  S(t.$slots, "source", {}, void 0, !0)
1016
1049
  ], 512)) : v("", !0),
1017
- He.value ? (o(), N(i(Lt), {
1018
- key: 7,
1019
- hideDetails: "",
1020
- config: {
1021
- open: B.value.showTable,
1022
- maxHeight: 1e4,
1023
- body: {
1024
- backgroundColor: e.value.style.chart.backgroundColor,
1025
- color: e.value.style.chart.color
1026
- },
1027
- head: {
1028
- backgroundColor: e.value.style.chart.backgroundColor,
1029
- color: e.value.style.chart.color
1030
- }
1031
- }
1032
- }, {
1033
- content: L(() => [
1034
- (o(), N(i(St), {
1035
- key: `table_${Te.value}`,
1036
- colNames: X.value.colNames,
1037
- head: X.value.head,
1038
- body: X.value.body,
1039
- config: X.value.config,
1040
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1041
- onClose: a[3] || (a[3] = (l) => B.value.showTable = !1)
1050
+ Ge.value ? (o(), D(ul(K.value.component), sl({ key: 7 }, K.value.props, {
1051
+ ref_key: "tableUnit",
1052
+ ref: Y,
1053
+ onClose: a[5] || (a[5] = (l) => E.value.showTable = !1)
1054
+ }), bt({
1055
+ content: k(() => [
1056
+ (o(), D(i(Dt), {
1057
+ key: `table_${Fe.value}`,
1058
+ colNames: W.value.colNames,
1059
+ head: W.value.head,
1060
+ body: W.value.body,
1061
+ config: W.value.config,
1062
+ title: e.value.table.useDialog ? "" : K.value.title,
1063
+ withCloseButton: !e.value.table.useDialog,
1064
+ onClose: a[4] || (a[4] = (l) => E.value.showTable = !1)
1042
1065
  }, {
1043
- th: L(({ th: l }) => [
1044
- ht(b(l.name ?? l), 1)
1066
+ th: k(({ th: l }) => [
1067
+ $e(m(l.name ?? l), 1)
1045
1068
  ]),
1046
- td: L(({ td: l }) => [
1047
- l.value === null ? (o(), n("span", xa, "-")) : (o(), n("b", pa, b(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + b(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + b(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
1048
- m("span", null, b(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
1069
+ 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)),
1071
+ b("span", null, m(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
1049
1072
  ]),
1050
1073
  _: 1
1051
- }, 8, ["colNames", "head", "body", "config", "title"]))
1074
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
1052
1075
  ]),
1053
- _: 1
1054
- }, 8, ["config"])) : v("", !0),
1055
- e.value.style.chart.dialog.show ? (o(), N(i(At), {
1076
+ _: 2
1077
+ }, [
1078
+ e.value.table.useDialog ? {
1079
+ name: "title",
1080
+ fn: k(() => [
1081
+ $e(m(K.value.title), 1)
1082
+ ]),
1083
+ key: "0"
1084
+ } : void 0,
1085
+ e.value.table.useDialog ? {
1086
+ name: "actions",
1087
+ fn: k(() => [
1088
+ b("button", {
1089
+ tabindex: "0",
1090
+ class: "vue-ui-user-options-button",
1091
+ onClick: a[3] || (a[3] = (l) => Le(e.value.userOptions.callbacks.csv))
1092
+ }, [
1093
+ mt(i(Tt), {
1094
+ name: "excel",
1095
+ stroke: K.value.props.color
1096
+ }, null, 8, ["stroke"])
1097
+ ])
1098
+ ]),
1099
+ key: "1"
1100
+ } : void 0
1101
+ ]), 1040)) : v("", !0),
1102
+ e.value.style.chart.dialog.show ? (o(), D(i(De), {
1056
1103
  key: 8,
1057
1104
  ref_key: "dialog",
1058
- ref: we,
1059
- onClose: a[4] || (a[4] = (l) => {
1060
- R.value = null, ie.value = !1, ee.value = null, g.value = null, q.value = null;
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;
1061
1108
  }),
1062
1109
  backgroundColor: e.value.style.chart.dialog.backgroundColor,
1063
1110
  color: e.value.style.chart.dialog.color,
1064
1111
  headerBg: e.value.style.chart.dialog.header.backgroundColor,
1065
1112
  headerColor: e.value.style.chart.dialog.header.color,
1066
- isFullscreen: G.value,
1067
- fullscreenParent: F.value
1113
+ isFullscreen: H.value,
1114
+ fullscreenParent: O.value
1068
1115
  }, {
1069
- title: L(() => [
1070
- ht(b(_.value[Number(R.value.index)] ? _.value[Number(R.value.index)].text : ""), 1)
1116
+ title: k(() => [
1117
+ $e(m(L.value[Number(B.value.index)] ? L.value[Number(B.value.index)].text : ""), 1)
1071
1118
  ]),
1072
- default: L(() => [
1073
- R.value ? (o(), N(i(Tt), {
1119
+ content: k(() => [
1120
+ B.value ? (o(), D(i(Ft), {
1074
1121
  key: 0,
1075
- config: ct.value,
1076
- dataset: it.value
1122
+ config: yt.value,
1123
+ dataset: ht.value
1077
1124
  }, null, 8, ["config", "dataset"])) : v("", !0)
1078
1125
  ]),
1079
1126
  _: 1
1080
1127
  }, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : v("", !0),
1081
- i(Ue) ? (o(), N(zl, { key: 9 })) : v("", !0)
1082
- ], 46, Il));
1128
+ i(je) ? (o(), D(_l, { key: 9 })) : v("", !0)
1129
+ ], 46, Ol));
1083
1130
  }
1084
- }, Ea = /* @__PURE__ */ $l(ka, [["__scopeId", "data-v-d42e99b0"]]);
1131
+ }, Ha = /* @__PURE__ */ Pl(Aa, [["__scopeId", "data-v-b160d8ca"]]);
1085
1132
  export {
1086
- Ea as default
1133
+ Ha as default
1087
1134
  };