vue-data-ui 3.4.9 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/README.md +114 -37
  2. package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
  3. package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
  4. package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-DQvyATVa.js} +1 -1
  5. package/dist/PenAndPaper-SZQIAgkg.js +388 -0
  6. package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
  7. package/dist/components/vue-ui-3d-bar.js +1 -1
  8. package/dist/components/vue-ui-accordion.js +1 -1
  9. package/dist/components/vue-ui-age-pyramid.js +1 -1
  10. package/dist/components/vue-ui-annotator.js +1 -1
  11. package/dist/components/vue-ui-bullet.js +1 -1
  12. package/dist/components/vue-ui-candlestick.js +1 -1
  13. package/dist/components/vue-ui-carousel-table.js +1 -1
  14. package/dist/components/vue-ui-chestnut.js +1 -1
  15. package/dist/components/vue-ui-chord.js +1 -1
  16. package/dist/components/vue-ui-circle-pack.js +1 -1
  17. package/dist/components/vue-ui-cursor.js +1 -1
  18. package/dist/components/vue-ui-dashboard.js +1 -1
  19. package/dist/components/vue-ui-digits.js +1 -1
  20. package/dist/components/vue-ui-donut-evolution.js +1 -1
  21. package/dist/components/vue-ui-donut.js +1 -1
  22. package/dist/components/vue-ui-dumbbell.js +1 -1
  23. package/dist/components/vue-ui-flow.js +1 -1
  24. package/dist/components/vue-ui-funnel.js +1 -1
  25. package/dist/components/vue-ui-galaxy.js +1 -1
  26. package/dist/components/vue-ui-gauge.js +1 -1
  27. package/dist/components/vue-ui-gizmo.js +1 -1
  28. package/dist/components/vue-ui-heatmap.js +1 -1
  29. package/dist/components/vue-ui-history-plot.js +1 -1
  30. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  31. package/dist/components/vue-ui-kpi.js +1 -1
  32. package/dist/components/vue-ui-mini-loader.js +1 -1
  33. package/dist/components/vue-ui-molecule.js +1 -1
  34. package/dist/components/vue-ui-mood-radar.js +1 -1
  35. package/dist/components/vue-ui-nested-donuts.js +1 -1
  36. package/dist/components/vue-ui-onion.js +1 -1
  37. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  38. package/dist/components/vue-ui-quadrant.js +1 -1
  39. package/dist/components/vue-ui-quick-chart.js +1 -1
  40. package/dist/components/vue-ui-radar.js +1 -1
  41. package/dist/components/vue-ui-rating.js +1 -1
  42. package/dist/components/vue-ui-relation-circle.js +1 -1
  43. package/dist/components/vue-ui-ridgeline.js +1 -1
  44. package/dist/components/vue-ui-rings.js +1 -1
  45. package/dist/components/vue-ui-scatter.js +1 -1
  46. package/dist/components/vue-ui-skeleton.js +1 -1
  47. package/dist/components/vue-ui-smiley.js +1 -1
  48. package/dist/components/vue-ui-spark-trend.js +1 -1
  49. package/dist/components/vue-ui-sparkbar.js +1 -1
  50. package/dist/components/vue-ui-sparkgauge.js +1 -1
  51. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  52. package/dist/components/vue-ui-sparkline.js +1 -1
  53. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  54. package/dist/components/vue-ui-stackbar.js +1 -1
  55. package/dist/components/vue-ui-strip-plot.js +1 -1
  56. package/dist/components/vue-ui-table-heatmap.js +1 -1
  57. package/dist/components/vue-ui-table-sparkline.js +1 -1
  58. package/dist/components/vue-ui-table.js +1 -1
  59. package/dist/components/vue-ui-thermometer.js +1 -1
  60. package/dist/components/vue-ui-timer.js +1 -1
  61. package/dist/components/vue-ui-tiremarks.js +1 -1
  62. package/dist/components/vue-ui-treemap.js +1 -1
  63. package/dist/components/vue-ui-vertical-bar.js +1 -1
  64. package/dist/components/vue-ui-waffle.js +1 -1
  65. package/dist/components/vue-ui-wheel.js +1 -1
  66. package/dist/components/vue-ui-word-cloud.js +1 -1
  67. package/dist/components/vue-ui-world.js +1 -1
  68. package/dist/components/vue-ui-xy-canvas.js +1 -1
  69. package/dist/components/vue-ui-xy.js +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/types/vue-data-ui.d.ts +17 -8
  72. package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
  73. package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-B_RxfmEm.js} +113 -107
  74. package/dist/vue-data-ui.js +64 -64
  75. package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
  76. package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
  77. package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
  78. package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
  79. package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
  80. package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
  81. package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
  82. package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
  83. package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
  84. package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
  85. package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
  86. package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
  87. package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
  88. package/dist/vue-ui-donut-CxZcJFTo.js +1681 -0
  89. package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-BVYL-BUJ.js} +480 -444
  90. package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
  91. package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-DEI5LRch.js} +339 -319
  92. package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-B_A5orFg.js} +218 -198
  93. package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-CUoDRr-O.js} +313 -277
  94. package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-46tSRZN5.js} +311 -291
  95. package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
  96. package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
  97. package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-C6p_aThr.js} +478 -442
  98. package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
  99. package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
  100. package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-L90GnHee.js} +156 -136
  101. package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
  102. package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-D0MCLs5n.js} +597 -557
  103. package/dist/vue-ui-onion-B7yPJ3gL.js +915 -0
  104. package/dist/vue-ui-parallel-coordinate-plot-DY21ivNe.js +1051 -0
  105. package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-b0vMRaq-.js} +532 -495
  106. package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
  107. package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-B5Vkoz9M.js} +412 -373
  108. package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
  109. package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
  110. package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CAMNq-p_.js} +517 -481
  111. package/dist/vue-ui-rings-ImGOqm_J.js +855 -0
  112. package/dist/vue-ui-scatter-CterNJYe.js +1590 -0
  113. package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
  114. package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
  115. package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
  116. package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
  117. package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
  118. package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
  119. package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
  120. package/dist/vue-ui-sparkstackbar-BXNy6nuw.js +441 -0
  121. package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
  122. package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
  123. package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-DSsIrT4L.js} +3 -3
  124. package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
  125. package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
  126. package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
  127. package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-BpdCY_wg.js} +3 -3
  128. package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
  129. package/dist/vue-ui-treemap-DPE8SY0_.js +1330 -0
  130. package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-ZU1GCbX0.js} +484 -448
  131. package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-z7nuSuSV.js} +398 -362
  132. package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
  133. package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
  134. package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-goXYnTyM.js} +287 -267
  135. package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-NDDbNbds.js} +1263 -1227
  136. package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-2a6NlQe3.js} +338 -322
  137. package/package.json +4 -4
  138. package/dist/PenAndPaper-DSvu9dwa.js +0 -373
  139. package/dist/vue-ui-chord-CDgzolI-.js +0 -1133
  140. package/dist/vue-ui-dashboard-CeJwbiON.js +0 -412
  141. package/dist/vue-ui-donut-DjQXHBJE.js +0 -1645
  142. package/dist/vue-ui-onion-DTY2p87s.js +0 -873
  143. package/dist/vue-ui-parallel-coordinate-plot-C8aWTcNn.js +0 -1014
  144. package/dist/vue-ui-rings-CnTMFK6R.js +0 -813
  145. package/dist/vue-ui-scatter-fzR2c0St.js +0 -1554
  146. package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
  147. package/dist/vue-ui-stackbar-DubS6Pg8.js +0 -1708
  148. package/dist/vue-ui-thermometer-DTnfnf9z.js +0 -564
  149. package/dist/vue-ui-tiremarks-CrC_tlIx.js +0 -430
  150. package/dist/vue-ui-treemap-kyuyi2ES.js +0 -1294
  151. package/dist/vue-ui-wheel-BasM7FWt.js +0 -643
@@ -1,24 +1,24 @@
1
- import { defineAsyncComponent as E, ref as i, shallowRef as pt, computed as y, onMounted as il, toRefs as cl, nextTick as Ie, watch as re, watchEffect as vl, onBeforeUnmount as dl, createElementBlock as n, openBlock as u, unref as c, normalizeStyle as K, normalizeClass as N, createBlock as T, createCommentVNode as v, createElementVNode as b, createSlots as xt, withCtx as x, renderSlot as A, normalizeProps as Z, guardReactiveProps as ee, createVNode as kt, Fragment as $, renderList as z, toDisplayString as k, Teleport as hl, resolveDynamicComponent as yl, mergeProps as gl, createTextVNode as Oe } from "vue";
2
- import { c as wt, o as Ct, f as ie, g as fl, t as bl, b as ml, p as ce, O as _t, e as pl, h as Te, a1 as xl, m as Lt, T as De, a as Ne, d as ve, X as kl, s as te, a2 as wl, M as Cl, V as _l, W as Ll, Y as At, P as Al, Q as Sl, a3 as St, a4 as $l } from "./lib-C_mNZmhD.js";
3
- import { t as $t, u as zl } from "./useResponsive-DfdjqQps.js";
4
- import { u as Il, a as zt } from "./useNestedProp-BjZe1Y85.js";
5
- import { u as Ol } from "./usePrinter-DTzqpYKF.js";
6
- import { u as Tl, B as Dl } from "./BaseScanner-BgWxam9d.js";
7
- import { u as Nl } from "./useSvgExport-DrjCWun4.js";
8
- import { u as Pl } from "./useTimeLabels-BGFjWgrv.js";
9
- import { u as Rl } from "./useUserOptionState-BIvW1Kz7.js";
10
- import { u as Fl } from "./useChartAccessibility-9icAAmYg.js";
11
- import { u as El } from "./useTimeLabelCollider-CIsgDrl9.js";
12
- import Vl from "./img-BecE5qXd.js";
13
- import Bl from "./Title-l36lOBMx.js";
14
- import { t as Ml } from "./themes-AUNCOb2G.js";
15
- import Hl from "./Legend-G6GMcdAc.js";
16
- import { S as Ul } from "./Slicer-D2wm0coO.js";
17
- import { _ as Xl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "width", "height"], ql = ["id"], Ql = ["stop-color"], Jl = ["stop-color"], Kl = ["id"], Zl = ["stop-color"], ea = ["stop-color"], ta = ["stop-color"], la = { key: 1 }, aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], oa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ua = { key: 0 }, sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], na = ["font-size", "fill", "transform"], ra = ["x", "y", "font-size", "fill"], ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ca = ["x", "y", "font-size", "fill", "font-weight"], va = { key: 0 }, da = ["text-anchor", "font-size", "fill", "transform"], ha = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], ya = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ga = { key: 1 }, fa = ["cx", "cy", "r", "fill"], ba = { key: 0 }, ma = { key: 0 }, pa = ["d", "stroke"], xa = ["text-anchor", "x", "y", "fill"], ka = ["cx", "cy", "r", "fill"], wa = { key: 0 }, Ca = ["cx", "cy", "fill"], _a = { key: 1 }, La = ["d", "fill", "stroke"], Aa = { key: 2 }, Sa = ["d", "fill", "stroke"], $a = ["x", "y", "font-size", "fill"], za = ["x", "y", "width", "height", "fill"], Ia = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], Oa = {
1
+ import { defineAsyncComponent as B, ref as i, shallowRef as xt, computed as y, onMounted as dl, toRefs as hl, nextTick as Ie, watch as ie, watchEffect as yl, onBeforeUnmount as gl, createElementBlock as s, openBlock as u, unref as c, normalizeStyle as te, normalizeClass as P, createBlock as D, createCommentVNode as v, createElementVNode as m, withCtx as f, renderSlot as p, normalizeProps as R, guardReactiveProps as E, createSlots as kt, createVNode as wt, Fragment as $, renderList as z, toDisplayString as C, Teleport as fl, resolveDynamicComponent as bl, mergeProps as ml, createTextVNode as Te } from "vue";
2
+ import { c as Ct, o as Lt, f as ce, g as pl, t as xl, b as kl, p as ve, O as _t, e as wl, h as De, a1 as Cl, m as At, T as Oe, a as Ne, d as de, X as Ll, s as le, a2 as _l, M as Al, V as Sl, W as $l, Y as St, P as zl, Q as Il, a3 as $t, a4 as Tl } from "./lib-C_mNZmhD.js";
3
+ import { t as zt, u as Dl } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ol, a as It } from "./useNestedProp-DjGXw6S9.js";
5
+ import { u as Nl } from "./usePrinter-DTzqpYKF.js";
6
+ import { u as Pl, B as Rl } from "./BaseScanner-BgWxam9d.js";
7
+ import { u as El } from "./useSvgExport-DrjCWun4.js";
8
+ import { u as Fl } from "./useTimeLabels-BGFjWgrv.js";
9
+ import { u as Vl } from "./useUserOptionState-BIvW1Kz7.js";
10
+ import { u as Bl } from "./useChartAccessibility-9icAAmYg.js";
11
+ import { u as Ml } from "./useTimeLabelCollider-CIsgDrl9.js";
12
+ import Hl from "./img-BecE5qXd.js";
13
+ import Ul from "./Title-isbiM8i8.js";
14
+ import { t as Xl } from "./themes-AUNCOb2G.js";
15
+ import Wl from "./Legend-G6GMcdAc.js";
16
+ import { S as Gl } from "./Slicer-D2wm0coO.js";
17
+ import { _ as Yl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
+ const jl = ["id"], ql = ["id"], Ql = ["xmlns", "viewBox"], Jl = ["x", "y", "width", "height"], Kl = ["id"], Zl = ["stop-color"], ea = ["stop-color"], ta = ["id"], la = ["stop-color"], aa = ["stop-color"], oa = ["stop-color"], ua = { key: 1 }, na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ra = { key: 0 }, ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ca = ["font-size", "fill", "transform"], va = ["x", "y", "font-size", "fill"], da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ha = ["x", "y", "font-size", "fill", "font-weight"], ya = { key: 0 }, ga = ["text-anchor", "font-size", "fill", "transform"], fa = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], ba = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ma = { key: 1 }, pa = ["cx", "cy", "r", "fill"], xa = { key: 0 }, ka = { key: 0 }, wa = ["d", "stroke"], Ca = ["text-anchor", "x", "y", "fill"], La = ["cx", "cy", "r", "fill"], _a = { key: 0 }, Aa = ["cx", "cy", "fill"], Sa = { key: 1 }, $a = ["d", "fill", "stroke"], za = { key: 2 }, Ia = ["d", "fill", "stroke"], Ta = ["x", "y", "font-size", "fill"], Da = ["x", "y", "width", "height", "fill"], Oa = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], Na = {
19
19
  key: 4,
20
20
  class: "vue-data-ui-watermark"
21
- }, Ta = ["id"], Da = ["onClick"], Na = { key: 0 }, Pa = { key: 1 }, Ra = {
21
+ }, Pa = ["id"], Ra = ["onClick"], Ea = { key: 0 }, Fa = { key: 1 }, Va = {
22
22
  __name: "vue-ui-donut-evolution",
23
23
  props: {
24
24
  config: {
@@ -35,58 +35,58 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
35
35
  }
36
36
  },
37
37
  emits: ["selectLegend"],
38
- setup(It, { expose: Ot, emit: Tt }) {
39
- const Dt = E(() => import("./vue-ui-accordion-CZ0thhxa.js")), Nt = E(() => import("./BaseIcon-BmMbm4d0.js")), Pt = E(() => import("./DataTable-BT7VF2ua.js")), Rt = E(() => import("./PackageVersion-CTUqGqWV.js")), Ft = E(() => import("./PenAndPaper-DSvu9dwa.js")), Et = E(() => import("./UserOptions-CGnQt6Fd.js")), Vt = E(() => import("./vue-ui-donut-DjQXHBJE.js")), Pe = E(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_donut_evolution: Bt } = Il(), m = It, D = i(wt()), C = i([]), f = i(null), le = i(null), de = i(!1), V = i(null), P = i(null), Mt = i(null), Re = i(0), Fe = i(0), Ee = i(0), Ve = i(0), Be = i(0), he = i(null), ae = i(null), ye = i(null), ge = i(null), Me = i(!1), Y = i(null), fe = i(null), He = i(null), Ue = i(null), Xe = i(null), We = i(null), Ge = i(null), be = i(!1), j = pt(null), oe = pt(null), Ye = i(null), je = Tt, qe = y(() => !!m.dataset && m.dataset.length);
40
- il(() => {
38
+ setup(Tt, { expose: Dt, emit: Ot }) {
39
+ const Nt = B(() => import("./vue-ui-accordion-CqhVCfc2.js")), Pt = B(() => import("./BaseIcon-BmMbm4d0.js")), Rt = B(() => import("./DataTable-BT7VF2ua.js")), Et = B(() => import("./PackageVersion-DQvyATVa.js")), Ft = B(() => import("./PenAndPaper-SZQIAgkg.js")), Vt = B(() => import("./UserOptions-CGnQt6Fd.js")), Bt = B(() => import("./vue-ui-donut-CxZcJFTo.js")), Pe = B(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_donut_evolution: Mt } = Ol(), x = Tt, O = i(Ct()), w = i([]), b = i(null), ae = i(null), he = i(!1), M = i(null), F = i(null), Ht = i(null), Re = i(0), Ee = i(0), Fe = i(0), Ve = i(0), Be = i(0), ye = i(null), oe = i(null), ge = i(null), fe = i(null), Me = i(!1), Q = i(null), be = i(null), He = i(null), Ue = i(null), Xe = i(null), We = i(null), Ge = i(null), me = i(!1), J = xt(null), ue = xt(null), Ye = i(null), je = Ot, qe = y(() => !!x.dataset && x.dataset.length);
40
+ dl(() => {
41
41
  Me.value = !0, Qe();
42
42
  });
43
- const ue = y(() => !!e.value.debug);
43
+ const ne = y(() => !!e.value.debug);
44
44
  function Qe() {
45
- if (Ct(m.dataset) ? (ie({
45
+ if (Lt(x.dataset) ? (ce({
46
46
  componentName: "VueUiDonutEvolution",
47
47
  type: "dataset",
48
- debug: ue.value
49
- }), se.value = !0) : m.dataset.length && m.dataset.forEach((t, a) => {
50
- fl({
48
+ debug: ne.value
49
+ }), se.value = !0) : x.dataset.length && x.dataset.forEach((t, a) => {
50
+ pl({
51
51
  datasetObject: t,
52
52
  requiredAttributes: ["name", "values"]
53
53
  }).forEach((l) => {
54
- ie({
54
+ ce({
55
55
  componentName: "VueUiDonutEvolution",
56
56
  type: "datasetSerieAttribute",
57
57
  property: l,
58
58
  index: a,
59
- debug: ue.value
59
+ debug: ne.value
60
60
  }), se.value = !0;
61
61
  });
62
- }), Ct(m.dataset) || (se.value = e.value.loading), setTimeout(() => {
63
- be.value = !0;
64
- }, 10), pe(), e.value.responsive) {
65
- const t = $t(() => {
66
- be.value = !1;
67
- const { width: a, height: l } = zl({
68
- chart: P.value,
62
+ }), Lt(x.dataset) || (se.value = e.value.loading), setTimeout(() => {
63
+ me.value = !0;
64
+ }, 10), xe(), e.value.responsive) {
65
+ const t = zt(() => {
66
+ me.value = !1;
67
+ const { width: a, height: l } = Dl({
68
+ chart: F.value,
69
69
  title: e.value.style.chart.title.text ? He.value : null,
70
70
  legend: e.value.style.chart.legend.show ? Ue.value : null,
71
71
  slicer: e.value.style.chart.zoom.show && Ke.value > 1 ? Ge.value : null,
72
72
  source: Xe.value
73
73
  });
74
74
  requestAnimationFrame(() => {
75
- U.value.width = a, U.value.height = l - 12, clearTimeout(Ye.value), Ye.value = setTimeout(() => {
76
- be.value = !0;
75
+ G.value.width = a, G.value.height = l - 12, clearTimeout(Ye.value), Ye.value = setTimeout(() => {
76
+ me.value = !0;
77
77
  }, 10);
78
78
  });
79
79
  });
80
- 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);
80
+ J.value && (ue.value && J.value.unobserve(ue.value), J.value.disconnect()), J.value = new ResizeObserver(t), ue.value = F.value.parentNode, J.value.observe(ue.value);
81
81
  }
82
82
  }
83
- const e = i(we()), { loading: Je, FINAL_DATASET: me, manualLoading: se } = Tl({
84
- ...cl(m),
83
+ const e = i(Ce()), { loading: Je, FINAL_DATASET: pe, manualLoading: se } = Pl({
84
+ ...hl(x),
85
85
  FINAL_CONFIG: e,
86
- prepareConfig: we,
86
+ prepareConfig: Ce,
87
87
  callback: () => {
88
88
  Promise.resolve().then(async () => {
89
- await pe();
89
+ await xe();
90
90
  });
91
91
  },
92
92
  skeletonDataset: [
@@ -106,7 +106,7 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
106
106
  color: "#CACACA"
107
107
  }
108
108
  ],
109
- skeletonConfig: bl({
109
+ skeletonConfig: xl({
110
110
  defaultConfig: e.value,
111
111
  userConfig: {
112
112
  useCssAnimation: !1,
@@ -148,173 +148,173 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
148
148
  }
149
149
  }
150
150
  })
151
- }), U = i({
151
+ }), G = i({
152
152
  width: e.value.style.chart.layout.width,
153
153
  height: e.value.style.chart.layout.height
154
- }), Ke = y(() => Math.max(...me.value.map((t) => t.values.length))), h = i({
154
+ }), Ke = y(() => Math.max(...pe.value.map((t) => t.values.length))), h = i({
155
155
  start: 0,
156
156
  end: Ke.value
157
157
  });
158
158
  function Ze() {
159
- pe();
159
+ xe();
160
160
  }
161
- async function pe() {
161
+ async function xe() {
162
162
  await Ie(), await Ie();
163
163
  const { startIndex: t, endIndex: a } = e.value.style.chart.zoom, l = We.value;
164
- 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(Ht(a + 1)) : (h.value.end = I.value, l.setEndValue(I.value))) : (h.value = {
164
+ 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(Ut(a + 1)) : (h.value.end = I.value, l.setEndValue(I.value))) : (h.value = {
165
165
  start: 0,
166
166
  end: I.value
167
- }, Fe.value += 1);
167
+ }, Ee.value += 1);
168
168
  }
169
- function Ht(t) {
169
+ function Ut(t) {
170
170
  const a = I.value;
171
171
  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;
172
172
  }
173
- const { userOptionsVisible: xe, setUserOptionsVisibility: et, keepUserOptionState: tt } = Rl({ config: e.value }), { svgRef: ke } = Fl({ config: e.value.style.chart.title });
174
- function we() {
175
- const t = zt({
176
- userConfig: m.config,
177
- defaultConfig: Bt
173
+ const { userOptionsVisible: ke, setUserOptionsVisibility: et, keepUserOptionState: tt } = Vl({ config: e.value }), { svgRef: we } = Bl({ config: e.value.style.chart.title });
174
+ function Ce() {
175
+ const t = It({
176
+ userConfig: x.config,
177
+ defaultConfig: Mt
178
178
  });
179
179
  let a = {};
180
180
  return t.theme ? a = {
181
- ...zt({
182
- userConfig: Ml.vue_ui_donut_evolution[t.theme] || m.config,
181
+ ...It({
182
+ userConfig: Xl.vue_ui_donut_evolution[t.theme] || x.config,
183
183
  defaultConfig: t
184
184
  }),
185
- customPalette: ml[t.theme] || ce
186
- } : a = t, m.config && _t(m.config, "style.chart.zoom.startIndex") ? a.style.chart.zoom.startIndex = m.config.style.chart.zoom.startIndex : a.style.chart.zoom.startIndex = null, m.config && _t(m.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = m.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
185
+ customPalette: kl[t.theme] || ve
186
+ } : a = t, x.config && _t(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 && _t(x.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = x.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
187
187
  }
188
- re(() => m.config, (t) => {
189
- Je.value || (e.value = we()), xe.value = !e.value.userOptions.showOnChartHover, Qe(), Ee.value += 1, Ve.value += 1, Be.value += 1, B.value.showTable = e.value.table.show;
190
- }, { deep: !0 }), re(() => m.dataset, (t) => {
188
+ ie(() => x.config, (t) => {
189
+ Je.value || (e.value = Ce()), ke.value = !e.value.userOptions.showOnChartHover, Qe(), Fe.value += 1, Ve.value += 1, Be.value += 1, H.value.showTable = e.value.table.show;
190
+ }, { deep: !0 }), ie(() => x.dataset, (t) => {
191
191
  Array.isArray(t) && t.length > 0 && (se.value = !1), Ze();
192
192
  }, { deep: !0 });
193
- const { isPrinting: lt, isImaging: at, generatePdf: ot, generateImage: ut } = Ol({
194
- elementId: D.value,
193
+ const { isPrinting: lt, isImaging: at, generatePdf: ot, generateImage: ut } = Nl({
194
+ elementId: O.value,
195
195
  fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
196
196
  options: e.value.userOptions.print
197
- }), Ut = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Xt = y(() => pl(e.value.customPalette)), B = i({
197
+ }), Xt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Wt = y(() => wl(e.value.customPalette)), H = i({
198
198
  showTable: e.value.table.show
199
199
  });
200
- re(e, () => {
201
- B.value = {
200
+ ie(e, () => {
201
+ H.value = {
202
202
  showTable: e.value.table.show
203
203
  };
204
204
  }, { immediate: !0 });
205
- const M = y(() => ({
205
+ const U = y(() => ({
206
206
  top: e.value.style.chart.layout.padding.top,
207
207
  right: e.value.style.chart.layout.padding.right,
208
208
  bottom: e.value.style.chart.layout.padding.bottom,
209
209
  left: e.value.style.chart.layout.padding.left
210
210
  }));
211
- function Wt() {
211
+ function Gt() {
212
212
  let t = 0;
213
- he.value && (t = Array.from(he.value.querySelectorAll("text")).reduce((o, g) => {
213
+ ye.value && (t = Array.from(ye.value.querySelectorAll("text")).reduce((o, g) => {
214
214
  const d = g.getComputedTextLength();
215
215
  return (d > o ? d : o) + e.value.style.chart.layout.grid.axis.yLabelOffsetX;
216
216
  }, 0));
217
- const a = ge.value ? ge.value.getBoundingClientRect().width + e.value.style.chart.layout.grid.axis.yLabelOffsetX + e.value.style.chart.layout.grid.axis.fontSize : 0;
217
+ 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;
218
218
  return t + a + 5;
219
219
  }
220
- const Ce = i(0), Gt = $t((t) => {
221
- Ce.value = t;
220
+ const Le = i(0), Yt = zt((t) => {
221
+ Le.value = t;
222
222
  }, 100);
223
- vl((t) => {
224
- const a = ae.value;
223
+ yl((t) => {
224
+ const a = oe.value;
225
225
  if (!a) return;
226
- const l = new ResizeObserver((s) => {
227
- Gt(s[0].contentRect.height);
226
+ const l = new ResizeObserver((n) => {
227
+ Yt(n[0].contentRect.height);
228
228
  });
229
229
  l.observe(a), t(() => l.disconnect());
230
- }), dl(() => {
231
- Ce.value = 0;
230
+ }), gl(() => {
231
+ Le.value = 0;
232
232
  });
233
- const st = y(() => {
233
+ const nt = y(() => {
234
234
  let t = 0;
235
- ye.value && (t = ye.value.getBBox().height);
235
+ ge.value && (t = ge.value.getBBox().height);
236
236
  let a = 0;
237
- return ae.value && (a = Ce.value), t + a + e.value.style.chart.layout.grid.axis.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
237
+ return oe.value && (a = Le.value), t + a + e.value.style.chart.layout.grid.axis.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
238
238
  }), r = y(() => {
239
- const t = Wt(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = U.value.width, s = U.value.height, o = M.value.left + t, g = l - M.value.right, d = l - o - M.value.right, p = s - M.value.top - M.value.bottom - a - st.value, G = M.value.top + a, F = s - M.value.bottom - st.value;
239
+ const t = Gt(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = G.value.width, n = G.value.height, o = U.value.left + t, g = l - U.value.right, d = l - o - U.value.right, k = n - U.value.top - U.value.bottom - a - nt.value, q = U.value.top + a, V = n - U.value.bottom - nt.value;
240
240
  return {
241
- top: G,
241
+ top: q,
242
242
  left: o,
243
243
  right: g,
244
- bottom: F,
245
- absoluteHeight: s,
244
+ bottom: V,
245
+ absoluteHeight: n,
246
246
  absoluteWidth: l,
247
247
  centerX: o + Math.max(10, d) / 2,
248
- centerY: G + Math.max(10, p) / 2,
248
+ centerY: q + Math.max(10, k) / 2,
249
249
  width: Math.max(10, d),
250
- height: Math.max(10, p)
250
+ height: Math.max(10, k)
251
251
  };
252
- }), R = y(() => (me.value.forEach((t, a) => {
253
- [null, void 0].includes(t.name) && ie({
252
+ }), N = y(() => (pe.value.forEach((t, a) => {
253
+ [null, void 0].includes(t.name) && ce({
254
254
  componentName: "VueUiDonutEvolution",
255
255
  type: "datasetSerieAttribute",
256
256
  property: "name",
257
257
  index: a,
258
- debug: ue.value
259
- }), [null, void 0].includes(t.values) && ie({
258
+ debug: ne.value
259
+ }), [null, void 0].includes(t.values) && ce({
260
260
  componentName: "VueUiDonutEvolution",
261
261
  type: "datasetSerieAttribute",
262
262
  property: "values",
263
263
  index: a,
264
- debug: ue.value
264
+ debug: ne.value
265
265
  });
266
- }), me.value.map((t, a) => ({
266
+ }), pe.value.map((t, a) => ({
267
267
  ...t,
268
- values: xl(t.values),
269
- color: Te(t.color) || Xt.value[a] || ce[a] || ce[a % ce.length],
268
+ values: Cl(t.values),
269
+ color: De(t.color) || Wt.value[a] || ve[a] || ve[a % ve.length],
270
270
  length: (t.values || []).length,
271
- uid: wt()
272
- })))), q = y(() => R.value.filter((t) => !C.value.includes(t.uid)).map((t) => ({
271
+ uid: Ct()
272
+ })))), X = y(() => N.value.filter((t) => !w.value.includes(t.uid)).map((t) => ({
273
273
  ...t,
274
274
  values: t.values.filter((a, l) => l >= h.value.start && l <= h.value.end)
275
- }))), I = y(() => Math.max(...q.value.map((t) => t.length))), _ = y(() => Pl({
275
+ }))), I = y(() => Math.max(...X.value.map((t) => t.length))), _ = y(() => Fl({
276
276
  values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
277
277
  maxDatapoints: I.value,
278
278
  formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
279
279
  start: h.value.start,
280
280
  end: h.value.end
281
- })), w = y(() => r.value.width / (h.value.end - h.value.start)), L = y(() => {
281
+ })), L = y(() => r.value.width / (h.value.end - h.value.start)), A = y(() => {
282
282
  const t = [];
283
283
  for (let o = 0; o < h.value.end - h.value.start; o += 1) {
284
- const g = q.value.map((O) => O.values[o] ?? null), d = g.filter((O) => [void 0, null].includes(O)).length === g.length, p = g.reduce((O, S) => O + S, 0), G = g.map((O) => O / p), F = r.value.left + w.value * o + w.value / 2;
284
+ const g = X.value.map((T) => T.values[o] ?? null), d = g.filter((T) => [void 0, null].includes(T)).length === g.length, k = g.reduce((T, S) => T + S, 0), q = g.map((T) => T / k), V = r.value.left + L.value * o + L.value / 2;
285
285
  t.push({
286
286
  index: o,
287
- percentages: G,
288
- subtotal: d || p < 0 ? null : p,
287
+ percentages: q,
288
+ subtotal: d || k < 0 ? null : k,
289
289
  values: g,
290
- x: F
290
+ x: V
291
291
  });
292
292
  }
293
- const a = 0, l = Math.max(...t.map((o) => o.subtotal)), s = t.length === 1 ? l * 2 : l;
293
+ const a = 0, l = Math.max(...t.map((o) => o.subtotal)), n = t.length === 1 ? l * 2 : l;
294
294
  return t.map((o, g) => {
295
- 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 = f.value === o.index ? r.value.width / 16 : p, F = t.length > 4 ? d * 2 : d * 2 > w.value / 2 * 0.7 ? w.value / 2 * 0.7 : d * 2, O = r.value.bottom - r.value.height * o.subtotal / Lt(a, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
295
+ const d = Math.min(r.value.width / 24, L.value / 2 * 0.7), k = d > r.value.width / 16 ? r.value.width / 16 : d, q = b.value === o.index ? r.value.width / 16 : k, V = t.length > 4 ? d * 2 : d * 2 > L.value / 2 * 0.7 ? L.value / 2 * 0.7 : d * 2, T = r.value.bottom - r.value.height * o.subtotal / At(a, n, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
296
296
  return {
297
297
  ...o,
298
- y: O,
299
- radius: p,
300
- activeRadius: G,
301
- hoverRadius: F,
302
- donut: De({
303
- series: q.value.map((S, mt) => ({
298
+ y: T,
299
+ radius: k,
300
+ activeRadius: q,
301
+ hoverRadius: V,
302
+ donut: Oe({
303
+ series: X.value.map((S, pt) => ({
304
304
  color: S.color,
305
305
  name: S.name,
306
306
  value: S.values[g] ?? 0
307
307
  }))
308
- }, o.x, O, p, p, 1.99999, 2, 1, 360, 105.25, p / 2),
309
- donutHover: De({
310
- series: q.value.map((S, mt) => ({
308
+ }, o.x, T, k, k, 1.99999, 2, 1, 360, 105.25, k / 2),
309
+ donutHover: Oe({
310
+ series: X.value.map((S, pt) => ({
311
311
  color: S.color,
312
312
  name: S.name,
313
313
  value: S.values[g] ?? 0
314
314
  }))
315
- }, o.x, O, F, F, 1.99999, 2, 1, 360, 105.25, F / 2),
316
- donutFocus: De({
317
- series: q.value.map((S, mt) => ({
315
+ }, o.x, T, V, V, 1.99999, 2, 1, 360, 105.25, V / 2),
316
+ donutFocus: Oe({
317
+ series: X.value.map((S, pt) => ({
318
318
  color: S.color,
319
319
  name: S.name,
320
320
  value: S.values[g] ?? 0
@@ -323,11 +323,11 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
323
323
  };
324
324
  });
325
325
  });
326
- function nt(t, a, l) {
326
+ function st(t, a, l) {
327
327
  return Ne(
328
328
  e.value.style.chart.layout.dataLabels.formatter,
329
329
  t,
330
- ve({
330
+ de({
331
331
  p: e.value.style.chart.layout.dataLabels.prefix,
332
332
  v: t,
333
333
  s: e.value.style.chart.layout.dataLabels.suffix,
@@ -337,59 +337,59 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
337
337
  );
338
338
  }
339
339
  const _e = y(() => ({
340
- max: Math.max(...L.value.map((t) => t.subtotal)),
340
+ max: Math.max(...A.value.map((t) => t.subtotal)),
341
341
  min: 0
342
- })), X = y(() => {
343
- const t = L.value.length === 1 ? _e.value.max * 2 : _e.value.max;
344
- return Lt(_e.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
342
+ })), Y = y(() => {
343
+ const t = A.value.length === 1 ? _e.value.max * 2 : _e.value.max;
344
+ return At(_e.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
345
345
  });
346
- function Yt(t) {
347
- return t / X.value.max;
346
+ function jt(t) {
347
+ return t / Y.value.max;
348
348
  }
349
- const jt = y(() => X.value.ticks.map((t) => ({
350
- y: r.value.bottom - r.value.height * Yt(t),
349
+ const qt = y(() => Y.value.ticks.map((t) => ({
350
+ y: r.value.bottom - r.value.height * jt(t),
351
351
  value: t
352
352
  })));
353
- function qt(t, a) {
354
- return isNaN(t.value / St(a, "value")) ? 0 : (t.value / St(a, "value") * 100).toFixed(0) + "%";
353
+ function Qt(t, a) {
354
+ return isNaN(t.value / $t(a, "value")) ? 0 : (t.value / $t(a, "value") * 100).toFixed(0) + "%";
355
355
  }
356
356
  function rt(t) {
357
- f.value = null, le.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex + h.value.start });
357
+ b.value = null, ae.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex + h.value.start });
358
358
  }
359
- function Qt(t) {
360
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + h.value.start }), f.value = t.index, le.value = t;
359
+ function Jt(t) {
360
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + h.value.start }), b.value = t.index, ae.value = t;
361
361
  }
362
- const Q = i(null);
362
+ const K = i(null);
363
363
  function it(t, a) {
364
- 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, f.value = null, de.value = !0, V.value = t, Zt(t), [null, void 0].includes(a) || (Q.value = a));
364
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.index + h.value.start }), !(!t.subtotal || !e.value.style.chart.dialog.show) && (ae.value = null, b.value = null, he.value = !0, M.value = t, ll(t), [null, void 0].includes(a) || (K.value = a));
365
365
  }
366
- const Le = y(() => R.value.map((t, a) => ({
366
+ const Ae = y(() => N.value.map((t, a) => ({
367
367
  name: t.name,
368
- value: t.values.slice(h.value.start, h.value.end).reduce((l, s) => l + s, 0),
368
+ value: t.values.slice(h.value.start, h.value.end).reduce((l, n) => l + n, 0),
369
369
  shape: "circle",
370
370
  uid: t.uid,
371
371
  color: t.color
372
372
  })).sort((t, a) => a.value - t.value).map((t, a) => ({
373
373
  ...t,
374
- opacity: C.value.includes(t.uid) ? 0.5 : 1,
375
- segregate: () => Ae(t.uid),
376
- isSegregated: C.value.includes(t.uid),
374
+ opacity: w.value.includes(t.uid) ? 0.5 : 1,
375
+ segregate: () => Z(t.uid),
376
+ isSegregated: w.value.includes(t.uid),
377
377
  display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? Ne(
378
378
  e.value.style.chart.layout.dataLabels.formatter,
379
379
  t.value,
380
- ve({
380
+ de({
381
381
  p: e.value.style.chart.layout.dataLabels.prefix,
382
382
  v: t.value,
383
383
  s: e.value.style.chart.layout.dataLabels.suffix,
384
384
  r: e.value.style.chart.legend.roundingValue
385
385
  }),
386
386
  { datapoint: t, seriesIndex: a }
387
- ) : ""}${e.value.style.chart.legend.showPercentage ? C.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / ct.value) ? "-" : ve({
387
+ ) : ""}${e.value.style.chart.legend.showPercentage ? w.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / ct.value) ? "-" : de({
388
388
  v: t.value / ct.value * 100,
389
389
  s: "%",
390
390
  r: e.value.style.chart.legend.roundingPercentage
391
391
  })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
392
- }))), ct = y(() => L.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), Jt = y(() => ({
392
+ }))), ct = y(() => A.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), Kt = y(() => ({
393
393
  cy: "donut-div-legend",
394
394
  backgroundColor: e.value.style.chart.legend.backgroundColor,
395
395
  color: e.value.style.chart.legend.color,
@@ -397,24 +397,38 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
397
397
  paddingBottom: 12,
398
398
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
399
399
  }));
400
- function Ae(t) {
401
- if (C.value.includes(t))
402
- C.value = C.value.filter((a) => a !== t), je("selectLegend", null);
400
+ function Z(t) {
401
+ if (w.value.includes(t))
402
+ w.value = w.value.filter((a) => a !== t), je("selectLegend", X.value);
403
403
  else {
404
- if (C.value.length === R.value.length - 1) return;
405
- C.value.push(t), je("selectLegend", R.value.find((a) => a.uid === t));
404
+ if (w.value.length === N.value.length - 1) return;
405
+ w.value.push(t), je("selectLegend", X.value);
406
406
  }
407
- V.value && it(L.value.find((a, l) => l === Q.value));
407
+ M.value && it(A.value.find((a, l) => l === K.value));
408
408
  }
409
- const W = y(() => {
410
- const t = [""].concat(R.value.filter((o) => !C.value.includes(o.uid)).map((o) => ({
409
+ function vt(t) {
410
+ if (!N.value.length)
411
+ return e.value.debug && console.warn("VueUiDonutEvolution - There are no series to show."), null;
412
+ const a = N.value.find((l) => l.name === t);
413
+ return a || (e.value.debug && console.warn(`VueUiDonutEvolution - Series name not found "${t}"`), null);
414
+ }
415
+ function Zt(t) {
416
+ const a = vt(t);
417
+ a !== null && w.value.includes(a.uid) && Z(a.uid);
418
+ }
419
+ function el(t) {
420
+ const a = vt(t);
421
+ a !== null && (w.value.includes(a.uid) || Z(a.uid));
422
+ }
423
+ const j = y(() => {
424
+ const t = [""].concat(N.value.filter((o) => !w.value.includes(o.uid)).map((o) => ({
411
425
  name: o.name,
412
426
  color: o.color
413
427
  }))).concat(["Σ"]);
414
428
  let a = [];
415
429
  for (let o = 0; o < I.value; o += 1) {
416
- const g = R.value.filter((d) => !C.value.includes(d.uid)).map((d) => d.values[o] ?? 0).reduce((d, p) => d + p, 0);
417
- a.push([_.value[o] ? _.value[o].text : "-"].concat(R.value.filter((d) => !C.value.includes(d.uid)).map((d) => ({
430
+ const g = N.value.filter((d) => !w.value.includes(d.uid)).map((d) => d.values[o] ?? 0).reduce((d, k) => d + k, 0);
431
+ a.push([_.value[o] ? _.value[o].text : "-"].concat(N.value.filter((d) => !w.value.includes(d.uid)).map((d) => ({
418
432
  value: d.values[o] ?? 0,
419
433
  percentage: d.values[o] ? d.values[o] / g * 100 : 0
420
434
  }))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(g.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
@@ -431,83 +445,83 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
431
445
  outline: e.value.table.td.outline
432
446
  },
433
447
  breakpoint: e.value.table.responsiveBreakpoint
434
- }, s = [
448
+ }, n = [
435
449
  e.value.table.columnNames.period
436
- ].concat(R.value.filter((o) => !C.value.includes(o.uid)).map((o) => o.name)).concat(e.value.table.columnNames.total);
437
- return { head: t, body: a, config: l, colNames: s };
450
+ ].concat(N.value.filter((o) => !w.value.includes(o.uid)).map((o) => o.name)).concat(e.value.table.columnNames.total);
451
+ return { head: t, body: a, config: l, colNames: n };
438
452
  });
439
- function Kt() {
440
- return R.value;
453
+ function tl() {
454
+ return N.value;
441
455
  }
442
456
  function Se(t = null) {
443
457
  Ie(() => {
444
- 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))], o = a.concat([l]).concat(s), g = Al(o);
445
- t ? t(g) : Sl({ csvContent: g, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
458
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...j.value.head.map((d) => d.name ?? d)], n = [...j.value.body.map((d) => d.map((k) => k.value ?? k))], o = a.concat([l]).concat(n), g = zl(o);
459
+ t ? t(g) : Il({ csvContent: g, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
446
460
  });
447
461
  }
448
- const H = i(!1);
449
- function vt(t) {
450
- H.value = t, Re.value += 1;
462
+ const W = i(!1);
463
+ function dt(t) {
464
+ W.value = t, Re.value += 1;
451
465
  }
452
- function dt() {
453
- B.value.showTable = !B.value.showTable;
466
+ function ht() {
467
+ H.value.showTable = !H.value.showTable;
454
468
  }
455
- const ne = i(!1);
469
+ const re = i(!1);
456
470
  function $e() {
457
- ne.value = !ne.value;
471
+ re.value = !re.value;
458
472
  }
459
- function ht(t) {
473
+ function yt(t) {
460
474
  return t.proportion * 100 > e.value.style.chart.donuts.hover.hideLabelsUnderValue;
461
475
  }
462
- const yt = i([]), gt = i({}), ze = i(null);
463
- function Zt(t) {
464
- yt.value = t.donut.map((a) => ({
476
+ const gt = i([]), ft = i({}), ze = i(null);
477
+ function ll(t) {
478
+ gt.value = t.donut.map((a) => ({
465
479
  name: a.name,
466
480
  values: [a.value],
467
481
  color: a.color
468
- })), gt.value = $l({
482
+ })), ft.value = Tl({
469
483
  ...e.value.style.chart.dialog.donutChart,
470
484
  responsive: !0,
471
485
  theme: e.value.theme
472
486
  }), ze.value && ze.value.open();
473
487
  }
474
- async function el({ scale: t = 2 } = {}) {
475
- if (!P.value) return;
476
- const { width: a, height: l } = P.value.getBoundingClientRect(), s = a / l, { imageUri: o, base64: g } = await Vl({ domElement: P.value, base64: !0, img: !0, scale: t });
488
+ async function al({ scale: t = 2 } = {}) {
489
+ if (!F.value) return;
490
+ const { width: a, height: l } = F.value.getBoundingClientRect(), n = a / l, { imageUri: o, base64: g } = await Hl({ domElement: F.value, base64: !0, img: !0, scale: t });
477
491
  return {
478
492
  imageUri: o,
479
493
  base64: g,
480
494
  title: e.value.style.chart.title.text,
481
495
  width: a,
482
496
  height: l,
483
- aspectRatio: s
497
+ aspectRatio: n
484
498
  };
485
499
  }
486
- const tl = y(() => U.value.width), ll = y(() => U.value.height);
487
- El({
488
- timeLabelsEls: ae,
500
+ const ol = y(() => G.value.width), ul = y(() => G.value.height);
501
+ Ml({
502
+ timeLabelsEls: oe,
489
503
  timeLabels: _,
490
504
  slicer: h,
491
505
  configRef: e,
492
506
  rotationPath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "rotation"],
493
507
  autoRotatePath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "autoRotate", "enable"],
494
508
  isAutoSize: !1,
495
- width: tl,
496
- height: ll,
509
+ width: ol,
510
+ height: ul,
497
511
  rotation: e.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
498
512
  });
499
- const J = y(() => {
500
- const t = e.value.table.useDialog && !e.value.table.show, a = B.value.showTable;
513
+ const ee = y(() => {
514
+ const t = e.value.table.useDialog && !e.value.table.show, a = H.value.showTable;
501
515
  return {
502
- component: t ? Pe : Dt,
516
+ component: t ? Pe : Nt,
503
517
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
504
518
  props: t ? {
505
519
  backgroundColor: e.value.table.th.backgroundColor,
506
520
  color: e.value.table.th.color,
507
521
  headerColor: e.value.table.th.color,
508
522
  headerBg: e.value.table.th.backgroundColor,
509
- isFullscreen: H.value,
510
- fullscreenParent: P.value,
523
+ isFullscreen: W.value,
524
+ fullscreenParent: F.value,
511
525
  forcedWidth: Math.min(800, window.innerWidth * 0.8)
512
526
  } : {
513
527
  hideDetails: !0,
@@ -526,72 +540,94 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
526
540
  }
527
541
  };
528
542
  });
529
- re(() => B.value.showTable, (t) => {
530
- e.value.table.show || (t && e.value.table.useDialog && Y.value ? Y.value.open() : "close" in Y.value && Y.value.close());
543
+ ie(() => H.value.showTable, (t) => {
544
+ e.value.table.show || (t && e.value.table.useDialog && Q.value ? Q.value.open() : "close" in Q.value && Q.value.close());
531
545
  });
532
- function ft() {
533
- B.value.showTable = !1, fe.value && fe.value.setTableIconState(!1);
546
+ function bt() {
547
+ H.value.showTable = !1, be.value && be.value.setTableIconState(!1);
534
548
  }
535
- const al = y(() => Le.value.map((t) => ({
549
+ const nl = y(() => Ae.value.map((t) => ({
536
550
  ...t,
537
551
  name: t.display
538
- }))), ol = y(() => e.value.style.chart.backgroundColor), ul = y(() => e.value.style.chart.legend), sl = y(() => e.value.style.chart.title), { exportSvg: nl, getSvg: rl } = Nl({
539
- svg: ke,
540
- title: sl,
541
- legend: ul,
542
- legendItems: al,
543
- backgroundColor: ol
552
+ }))), sl = y(() => e.value.style.chart.backgroundColor), rl = y(() => e.value.style.chart.legend), il = y(() => e.value.style.chart.title), { exportSvg: cl, getSvg: vl } = El({
553
+ svg: we,
554
+ title: il,
555
+ legend: rl,
556
+ legendItems: nl,
557
+ backgroundColor: sl
544
558
  });
545
- async function bt({ isCb: t }) {
559
+ async function mt({ isCb: t }) {
546
560
  if (t) {
547
- const { blob: a, url: l, text: s, dataUrl: o } = await rl();
548
- e.value.userOptions.callbacks.svg({ blob: a, url: l, text: s, dataUrl: o });
561
+ const { blob: a, url: l, text: n, dataUrl: o } = await vl();
562
+ e.value.userOptions.callbacks.svg({ blob: a, url: l, text: n, dataUrl: o });
549
563
  } else
550
- nl();
564
+ cl();
551
565
  }
552
- return Ot({
553
- getData: Kt,
554
- getImage: el,
566
+ return Dt({
567
+ getData: tl,
568
+ getImage: al,
555
569
  generatePdf: ot,
556
570
  generateCsv: Se,
557
571
  generateImage: ut,
558
- generateSvg: bt,
559
- toggleTable: dt,
572
+ generateSvg: mt,
573
+ hideSeries: el,
574
+ showSeries: Zt,
575
+ toggleTable: ht,
560
576
  toggleAnnotator: $e,
561
- toggleFullscreen: vt
562
- }), (t, a) => (u(), n("div", {
577
+ toggleFullscreen: dt
578
+ }), (t, a) => (u(), s("div", {
563
579
  ref_key: "donutEvolutionChart",
564
- ref: P,
565
- class: N(`vue-data-ui-component vue-ui-donut-evolution ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
566
- style: K(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
567
- id: D.value,
580
+ ref: F,
581
+ class: P(`vue-data-ui-component vue-ui-donut-evolution ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
582
+ style: te(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
583
+ id: O.value,
568
584
  onMouseenter: a[5] || (a[5] = () => c(et)(!0)),
569
585
  onMouseleave: a[6] || (a[6] = () => c(et)(!1))
570
586
  }, [
571
- e.value.userOptions.buttons.annotator ? (u(), T(c(Ft), {
587
+ e.value.userOptions.buttons.annotator ? (u(), D(c(Ft), {
572
588
  key: 0,
573
- svgRef: c(ke),
589
+ svgRef: c(we),
574
590
  backgroundColor: e.value.style.chart.backgroundColor,
575
591
  color: e.value.style.chart.color,
576
- active: ne.value,
592
+ active: re.value,
577
593
  onClose: $e
578
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
579
- Ut.value ? (u(), n("div", {
594
+ }, {
595
+ "annotator-action-close": f(() => [
596
+ p(t.$slots, "annotator-action-close", {}, void 0, !0)
597
+ ]),
598
+ "annotator-action-color": f(({ color: l }) => [
599
+ p(t.$slots, "annotator-action-color", R(E({ color: l })), void 0, !0)
600
+ ]),
601
+ "annotator-action-draw": f(({ mode: l }) => [
602
+ p(t.$slots, "annotator-action-draw", R(E({ mode: l })), void 0, !0)
603
+ ]),
604
+ "annotator-action-undo": f(({ disabled: l }) => [
605
+ p(t.$slots, "annotator-action-undo", R(E({ disabled: l })), void 0, !0)
606
+ ]),
607
+ "annotator-action-redo": f(({ disabled: l }) => [
608
+ p(t.$slots, "annotator-action-redo", R(E({ disabled: l })), void 0, !0)
609
+ ]),
610
+ "annotator-action-delete": f(({ disabled: l }) => [
611
+ p(t.$slots, "annotator-action-delete", R(E({ disabled: l })), void 0, !0)
612
+ ]),
613
+ _: 3
614
+ }, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
615
+ Xt.value ? (u(), s("div", {
580
616
  key: 1,
581
617
  ref_key: "noTitle",
582
- ref: Mt,
618
+ ref: Ht,
583
619
  class: "vue-data-ui-no-title-space",
584
620
  style: "height:36px; width: 100%;background:transparent"
585
621
  }, null, 512)) : v("", !0),
586
- e.value.style.chart.title.text ? (u(), n("div", {
622
+ e.value.style.chart.title.text ? (u(), s("div", {
587
623
  key: 2,
588
624
  ref_key: "chartTitle",
589
625
  ref: He,
590
626
  style: "width:100%;background:transparent;padding-bottom:24px",
591
627
  onMouseleave: rt
592
628
  }, [
593
- (u(), T(Bl, {
594
- key: `title_${Ee.value}`,
629
+ (u(), D(Ul, {
630
+ key: `title_${Fe.value}`,
595
631
  config: {
596
632
  title: {
597
633
  cy: "donut-evolution-div-title",
@@ -604,111 +640,111 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
604
640
  }
605
641
  }, null, 8, ["config"]))
606
642
  ], 544)) : v("", !0),
607
- b("div", {
608
- id: `legend-top-${D.value}`
609
- }, null, 8, Gl),
610
- e.value.userOptions.show && qe.value && (c(tt) || c(xe)) ? (u(), T(c(Et), {
643
+ m("div", {
644
+ id: `legend-top-${O.value}`
645
+ }, null, 8, ql),
646
+ e.value.userOptions.show && qe.value && (c(tt) || c(ke)) ? (u(), D(c(Vt), {
611
647
  ref_key: "userOptionsRef",
612
- ref: fe,
648
+ ref: be,
613
649
  key: `user_options_${Re.value}`,
614
650
  backgroundColor: e.value.style.chart.backgroundColor,
615
651
  color: e.value.style.chart.color,
616
652
  isPrinting: c(lt),
617
653
  isImaging: c(at),
618
- uid: D.value,
654
+ uid: O.value,
619
655
  hasPdf: e.value.userOptions.buttons.pdf,
620
656
  hasImg: e.value.userOptions.buttons.img,
621
657
  hasSvg: e.value.userOptions.buttons.svg,
622
658
  hasXls: e.value.userOptions.buttons.csv,
623
659
  hasTable: e.value.userOptions.buttons.table,
624
660
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
625
- isFullscreen: H.value,
661
+ isFullscreen: W.value,
626
662
  titles: { ...e.value.userOptions.buttonTitles },
627
- chartElement: P.value,
663
+ chartElement: F.value,
628
664
  position: e.value.userOptions.position,
629
665
  hasAnnotator: e.value.userOptions.buttons.annotator,
630
- isAnnotation: ne.value,
666
+ isAnnotation: re.value,
631
667
  callbacks: e.value.userOptions.callbacks,
632
668
  printScale: e.value.userOptions.print.scale,
633
669
  tableDialog: e.value.table.useDialog,
634
- onToggleFullscreen: vt,
670
+ onToggleFullscreen: dt,
635
671
  onGeneratePdf: c(ot),
636
672
  onGenerateCsv: Se,
637
673
  onGenerateImage: c(ut),
638
- onGenerateSvg: bt,
639
- onToggleTable: dt,
674
+ onGenerateSvg: mt,
675
+ onToggleTable: ht,
640
676
  onToggleAnnotator: $e,
641
- style: K({
642
- visibility: c(tt) ? c(xe) ? "visible" : "hidden" : "visible"
677
+ style: te({
678
+ visibility: c(tt) ? c(ke) ? "visible" : "hidden" : "visible"
643
679
  })
644
- }, xt({ _: 2 }, [
680
+ }, kt({ _: 2 }, [
645
681
  t.$slots.menuIcon ? {
646
682
  name: "menuIcon",
647
- fn: x(({ isOpen: l, color: s }) => [
648
- A(t.$slots, "menuIcon", Z(ee({ isOpen: l, color: s })), void 0, !0)
683
+ fn: f(({ isOpen: l, color: n }) => [
684
+ p(t.$slots, "menuIcon", R(E({ isOpen: l, color: n })), void 0, !0)
649
685
  ]),
650
686
  key: "0"
651
687
  } : void 0,
652
688
  t.$slots.optionPdf ? {
653
689
  name: "optionPdf",
654
- fn: x(() => [
655
- A(t.$slots, "optionPdf", {}, void 0, !0)
690
+ fn: f(() => [
691
+ p(t.$slots, "optionPdf", {}, void 0, !0)
656
692
  ]),
657
693
  key: "1"
658
694
  } : void 0,
659
695
  t.$slots.optionCsv ? {
660
696
  name: "optionCsv",
661
- fn: x(() => [
662
- A(t.$slots, "optionCsv", {}, void 0, !0)
697
+ fn: f(() => [
698
+ p(t.$slots, "optionCsv", {}, void 0, !0)
663
699
  ]),
664
700
  key: "2"
665
701
  } : void 0,
666
702
  t.$slots.optionImg ? {
667
703
  name: "optionImg",
668
- fn: x(() => [
669
- A(t.$slots, "optionImg", {}, void 0, !0)
704
+ fn: f(() => [
705
+ p(t.$slots, "optionImg", {}, void 0, !0)
670
706
  ]),
671
707
  key: "3"
672
708
  } : void 0,
673
709
  t.$slots.optionSvg ? {
674
710
  name: "optionSvg",
675
- fn: x(() => [
676
- A(t.$slots, "optionSvg", {}, void 0, !0)
711
+ fn: f(() => [
712
+ p(t.$slots, "optionSvg", {}, void 0, !0)
677
713
  ]),
678
714
  key: "4"
679
715
  } : void 0,
680
716
  t.$slots.optionTable ? {
681
717
  name: "optionTable",
682
- fn: x(() => [
683
- A(t.$slots, "optionTable", {}, void 0, !0)
718
+ fn: f(() => [
719
+ p(t.$slots, "optionTable", {}, void 0, !0)
684
720
  ]),
685
721
  key: "5"
686
722
  } : void 0,
687
723
  t.$slots.optionFullscreen ? {
688
724
  name: "optionFullscreen",
689
- fn: x(({ toggleFullscreen: l, isFullscreen: s }) => [
690
- A(t.$slots, "optionFullscreen", Z(ee({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
725
+ fn: f(({ toggleFullscreen: l, isFullscreen: n }) => [
726
+ p(t.$slots, "optionFullscreen", R(E({ toggleFullscreen: l, isFullscreen: n })), void 0, !0)
691
727
  ]),
692
728
  key: "6"
693
729
  } : void 0,
694
730
  t.$slots.optionAnnotator ? {
695
731
  name: "optionAnnotator",
696
- fn: x(({ toggleAnnotator: l, isAnnotator: s }) => [
697
- A(t.$slots, "optionAnnotator", Z(ee({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
732
+ fn: f(({ toggleAnnotator: l, isAnnotator: n }) => [
733
+ p(t.$slots, "optionAnnotator", R(E({ toggleAnnotator: l, isAnnotator: n })), void 0, !0)
698
734
  ]),
699
735
  key: "7"
700
736
  } : void 0
701
737
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
702
- (u(), n("svg", {
738
+ (u(), s("svg", {
703
739
  ref_key: "svgRef",
704
- ref: ke,
705
- xmlns: c(kl),
706
- class: N({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
740
+ ref: we,
741
+ xmlns: c(Ll),
742
+ class: P({ "vue-data-ui-fullscreen--on": W.value, "vue-data-ui-fulscreen--off": !W.value }),
707
743
  viewBox: `0 0 ${r.value.absoluteWidth} ${r.value.absoluteHeight}`,
708
- style: K(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
744
+ style: te(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
709
745
  }, [
710
- kt(c(Rt)),
711
- t.$slots["chart-background"] ? (u(), n("foreignObject", {
746
+ wt(c(Et)),
747
+ t.$slots["chart-background"] ? (u(), s("foreignObject", {
712
748
  key: 0,
713
749
  x: r.value.left,
714
750
  y: r.value.top,
@@ -718,44 +754,44 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
718
754
  pointerEvents: "none"
719
755
  }
720
756
  }, [
721
- A(t.$slots, "chart-background", {}, void 0, !0)
722
- ], 8, jl)) : v("", !0),
723
- b("defs", null, [
724
- b("linearGradient", {
725
- id: `hover_${D.value}`,
757
+ p(t.$slots, "chart-background", {}, void 0, !0)
758
+ ], 8, Jl)) : v("", !0),
759
+ m("defs", null, [
760
+ m("linearGradient", {
761
+ id: `hover_${O.value}`,
726
762
  x1: "0%",
727
763
  y1: "0%",
728
764
  x2: "0%",
729
765
  y2: "100%"
730
766
  }, [
731
- b("stop", {
767
+ m("stop", {
732
768
  offset: "0%",
733
- "stop-color": c(te)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
734
- }, null, 8, Ql),
735
- b("stop", {
769
+ "stop-color": c(le)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
770
+ }, null, 8, Zl),
771
+ m("stop", {
736
772
  offset: "100%",
737
- "stop-color": c(te)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
738
- }, null, 8, Jl)
739
- ], 8, ql),
740
- b("radialGradient", {
741
- id: `focus_${D.value}`
773
+ "stop-color": c(le)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
774
+ }, null, 8, ea)
775
+ ], 8, Kl),
776
+ m("radialGradient", {
777
+ id: `focus_${O.value}`
742
778
  }, [
743
- b("stop", {
779
+ m("stop", {
744
780
  offset: "0%",
745
- "stop-color": c(te)(c(Te)(e.value.style.chart.backgroundColor), 0)
746
- }, null, 8, Zl),
747
- b("stop", {
781
+ "stop-color": c(le)(c(De)(e.value.style.chart.backgroundColor), 0)
782
+ }, null, 8, la),
783
+ m("stop", {
748
784
  offset: "77%",
749
- "stop-color": c(te)("#FFFFFF", 30)
750
- }, null, 8, ea),
751
- b("stop", {
785
+ "stop-color": c(le)("#FFFFFF", 30)
786
+ }, null, 8, aa),
787
+ m("stop", {
752
788
  offset: "100%",
753
- "stop-color": c(te)(c(Te)(e.value.style.chart.backgroundColor), 0)
754
- }, null, 8, ta)
755
- ], 8, Kl)
789
+ "stop-color": c(le)(c(De)(e.value.style.chart.backgroundColor), 0)
790
+ }, null, 8, oa)
791
+ ], 8, ta)
756
792
  ]),
757
- e.value.style.chart.layout.grid.show ? (u(), n("g", la, [
758
- b("line", {
793
+ e.value.style.chart.layout.grid.show ? (u(), s("g", ua, [
794
+ m("line", {
759
795
  x1: r.value.left,
760
796
  x2: r.value.left,
761
797
  y1: r.value.top,
@@ -763,8 +799,8 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
763
799
  stroke: e.value.style.chart.layout.grid.stroke,
764
800
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
765
801
  "stroke-linecap": "round"
766
- }, null, 8, aa),
767
- b("line", {
802
+ }, null, 8, na),
803
+ m("line", {
768
804
  x1: r.value.left,
769
805
  x2: r.value.right,
770
806
  y1: r.value.bottom,
@@ -772,49 +808,49 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
772
808
  stroke: e.value.style.chart.layout.grid.stroke,
773
809
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
774
810
  "stroke-linecap": "round"
775
- }, null, 8, oa),
776
- e.value.style.chart.layout.grid.showVerticalLines ? (u(), n("g", ua, [
777
- (u(!0), n($, null, z(h.value.end - h.value.start, (l, s) => (u(), n("line", {
778
- x1: r.value.left + (s + 1) * w.value,
779
- x2: r.value.left + (s + 1) * w.value,
811
+ }, null, 8, sa),
812
+ e.value.style.chart.layout.grid.showVerticalLines ? (u(), s("g", ra, [
813
+ (u(!0), s($, null, z(h.value.end - h.value.start, (l, n) => (u(), s("line", {
814
+ x1: r.value.left + (n + 1) * L.value,
815
+ x2: r.value.left + (n + 1) * L.value,
780
816
  y1: r.value.top,
781
817
  y2: r.value.bottom,
782
818
  stroke: e.value.style.chart.layout.grid.stroke,
783
819
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
784
820
  "stroke-linecap": "round"
785
- }, null, 8, sa))), 256))
821
+ }, null, 8, ia))), 256))
786
822
  ])) : v("", !0)
787
823
  ])) : v("", !0),
788
- b("g", null, [
789
- e.value.style.chart.layout.grid.axis.yLabel ? (u(), n("text", {
824
+ m("g", null, [
825
+ e.value.style.chart.layout.grid.axis.yLabel ? (u(), s("text", {
790
826
  key: 0,
791
827
  ref_key: "yAxisLabel",
792
- ref: ge,
828
+ ref: fe,
793
829
  "font-size": e.value.style.chart.layout.grid.axis.fontSize,
794
830
  fill: e.value.style.chart.layout.grid.axis.color,
795
831
  transform: `translate(${e.value.style.chart.layout.grid.axis.fontSize}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
796
832
  "text-anchor": "middle",
797
833
  style: { transition: "none" }
798
- }, k(e.value.style.chart.layout.grid.axis.yLabel), 9, na)) : v("", !0),
799
- e.value.style.chart.layout.grid.axis.xLabel ? (u(), n("text", {
834
+ }, C(e.value.style.chart.layout.grid.axis.yLabel), 9, ca)) : v("", !0),
835
+ e.value.style.chart.layout.grid.axis.xLabel ? (u(), s("text", {
800
836
  key: 1,
801
837
  ref_key: "xAxisLabel",
802
- ref: ye,
838
+ ref: ge,
803
839
  "text-anchor": "middle",
804
840
  x: r.value.absoluteWidth / 2,
805
841
  y: r.value.absoluteHeight - 3,
806
842
  "font-size": e.value.style.chart.layout.grid.axis.fontSize,
807
843
  fill: e.value.style.chart.layout.grid.axis.color
808
- }, k(e.value.style.chart.layout.grid.axis.xLabel), 9, ra)) : v("", !0)
844
+ }, C(e.value.style.chart.layout.grid.axis.xLabel), 9, va)) : v("", !0)
809
845
  ]),
810
- e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (u(), n("g", {
846
+ e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (u(), s("g", {
811
847
  key: 2,
812
848
  ref_key: "scaleLabels",
813
- ref: he,
814
- class: N({ "donut-opacity": !0, "donut-behind": f.value !== null })
849
+ ref: ye,
850
+ class: P({ "donut-opacity": !0, "donut-behind": b.value !== null })
815
851
  }, [
816
- (u(!0), n($, null, z(jt.value, (l, s) => (u(), n("g", null, [
817
- l.value >= X.value.min && l.value <= X.value.max ? (u(), n("line", {
852
+ (u(!0), s($, null, z(qt.value, (l, n) => (u(), s("g", null, [
853
+ l.value >= Y.value.min && l.value <= Y.value.max ? (u(), s("line", {
818
854
  key: 0,
819
855
  x1: r.value.left,
820
856
  x2: r.value.left - 5,
@@ -822,8 +858,8 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
822
858
  y2: l.y,
823
859
  stroke: e.value.style.chart.layout.grid.stroke,
824
860
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
825
- }, null, 8, ia)) : v("", !0),
826
- l.value >= X.value.min && l.value <= X.value.max ? (u(), n("text", {
861
+ }, null, 8, da)) : v("", !0),
862
+ l.value >= Y.value.min && l.value <= Y.value.max ? (u(), s("text", {
827
863
  key: 1,
828
864
  x: r.value.left,
829
865
  y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
@@ -831,193 +867,193 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
831
867
  "text-anchor": "end",
832
868
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
833
869
  "font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
834
- }, k(c(wl)(l.value) ? c(Ne)(
870
+ }, C(c(_l)(l.value) ? c(Ne)(
835
871
  e.value.style.chart.layout.dataLabels.formatter,
836
872
  l.value,
837
- c(ve)({
873
+ c(de)({
838
874
  p: e.value.style.chart.layout.dataLabels.prefix,
839
875
  v: l.value,
840
876
  s: e.value.style.chart.layout.dataLabels.suffix,
841
877
  r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
842
878
  }),
843
- { datapoint: l, seriesIndex: s }
844
- ) : ""), 9, ca)) : v("", !0)
879
+ { datapoint: l, seriesIndex: n }
880
+ ) : ""), 9, ha)) : v("", !0)
845
881
  ]))), 256))
846
882
  ], 2)) : v("", !0),
847
- e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (u(), n("g", {
883
+ e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (u(), s("g", {
848
884
  key: 3,
849
885
  ref_key: "timeLabelsEls",
850
- ref: ae,
851
- class: N({ "donut-opacity": !0 })
886
+ ref: oe,
887
+ class: P({ "donut-opacity": !0 })
852
888
  }, [
853
- (u(!0), n($, null, z(h.value.end - h.value.start, (l, s) => (u(), n("g", null, [
854
- (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 ? (u(), n("g", va, [
855
- String(_.value[s].text).includes(`
856
- `) ? (u(), n("text", {
889
+ (u(!0), s($, null, z(h.value.end - h.value.start, (l, n) => (u(), s("g", null, [
890
+ (e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (n === 0 || n === I.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && _.value[n] && _.value[n].text ? (u(), s("g", ya, [
891
+ String(_.value[n].text).includes(`
892
+ `) ? (u(), s("text", {
857
893
  key: 1,
858
894
  class: "vue-data-ui-time-label",
859
895
  "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",
860
896
  "font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
861
897
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
862
- 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})`,
863
- innerHTML: c(Cl)({
864
- content: String(_.value[s].text),
898
+ transform: `translate(${r.value.left + L.value * n + L.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})`,
899
+ innerHTML: c(Al)({
900
+ content: String(_.value[n].text),
865
901
  fontSize: e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
866
902
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
867
903
  x: 0,
868
904
  y: 0
869
905
  })
870
- }, null, 8, ha)) : (u(), n("text", {
906
+ }, null, 8, fa)) : (u(), s("text", {
871
907
  key: 0,
872
908
  class: "vue-data-ui-time-label",
873
909
  "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",
874
910
  "font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
875
911
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
876
- 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})`
877
- }, k(_.value[s].text || ""), 9, da))
912
+ transform: `translate(${r.value.left + L.value * n + L.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})`
913
+ }, C(_.value[n].text || ""), 9, ga))
878
914
  ])) : v("", !0)
879
915
  ]))), 256))
880
916
  ], 512)) : v("", !0),
881
- (u(!0), n($, null, z(L.value, (l, s) => (u(), n("g", null, [
882
- e.value.style.chart.layout.line.show && s < L.value.length - 1 && ![l.subtotal, L.value[s + 1].subtotal].includes(null) ? (u(), n("line", {
917
+ (u(!0), s($, null, z(A.value, (l, n) => (u(), s("g", null, [
918
+ e.value.style.chart.layout.line.show && n < A.value.length - 1 && ![l.subtotal, A.value[n + 1].subtotal].includes(null) ? (u(), s("line", {
883
919
  key: 0,
884
- class: N({ "donut-opacity": !0, "donut-behind": f.value !== null }),
920
+ class: P({ "donut-opacity": !0, "donut-behind": b.value !== null }),
885
921
  x1: l.x,
886
922
  y1: l.y,
887
- x2: L.value[s + 1].x,
888
- y2: L.value[s + 1].y,
923
+ x2: A.value[n + 1].x,
924
+ y2: A.value[n + 1].y,
889
925
  stroke: e.value.style.chart.layout.line.stroke,
890
926
  "stroke-width": e.value.style.chart.layout.line.strokeWidth,
891
927
  "stroke-linecap": "round",
892
928
  "stroke-linejoin": "round"
893
- }, null, 10, ya)) : v("", !0),
894
- l.subtotal !== null ? (u(), n("g", ga, [
895
- l.subtotal ? (u(), n("circle", {
929
+ }, null, 10, ba)) : v("", !0),
930
+ l.subtotal !== null ? (u(), s("g", ma, [
931
+ l.subtotal ? (u(), s("circle", {
896
932
  key: 0,
897
933
  cx: l.x,
898
934
  cy: l.y,
899
935
  r: l.activeRadius,
900
936
  fill: e.value.style.chart.backgroundColor
901
- }, null, 8, fa)) : v("", !0)
937
+ }, null, 8, pa)) : v("", !0)
902
938
  ])) : v("", !0)
903
939
  ]))), 256)),
904
- (u(!0), n($, null, z(L.value, (l, s) => (u(), n("g", {
905
- class: N({ "donut-opacity": !0, "donut-behind": s !== f.value && f.value !== null })
940
+ (u(!0), s($, null, z(A.value, (l, n) => (u(), s("g", {
941
+ class: P({ "donut-opacity": !0, "donut-behind": n !== b.value && b.value !== null })
906
942
  }, [
907
- l.subtotal ? (u(), n("g", ba, [
908
- f.value !== null && f.value === s ? (u(), n("g", ma, [
909
- (u(!0), n($, null, z(l.donutHover, (o) => (u(), n("g", null, [
910
- ht(o) ? (u(), n("path", {
943
+ l.subtotal ? (u(), s("g", xa, [
944
+ b.value !== null && b.value === n ? (u(), s("g", ka, [
945
+ (u(!0), s($, null, z(l.donutHover, (o) => (u(), s("g", null, [
946
+ yt(o) ? (u(), s("path", {
911
947
  key: 0,
912
- d: c(_l)(o, { x: o.center.endX, y: o.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
948
+ d: c(Sl)(o, { x: o.center.endX, y: o.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
913
949
  stroke: o.color,
914
950
  "stroke-width": "1",
915
951
  "stroke-linecap": "round",
916
952
  "stroke-linejoin": "round",
917
953
  fill: "none"
918
- }, null, 8, pa)) : v("", !0)
954
+ }, null, 8, wa)) : v("", !0)
919
955
  ]))), 256)),
920
- (u(!0), n($, null, z(l.donutHover, (o, g) => (u(), n("g", null, [
921
- ht(o) ? (u(), n("text", {
956
+ (u(!0), s($, null, z(l.donutHover, (o, g) => (u(), s("g", null, [
957
+ yt(o) ? (u(), s("text", {
922
958
  key: 0,
923
959
  "data-cy-hover-label": "",
924
- "text-anchor": c(At)(o, !0, 0).anchor,
925
- x: c(At)(o, !0, 9).x,
926
- y: c(Ll)(o, 14, 10),
960
+ "text-anchor": c(St)(o, !0, 0).anchor,
961
+ x: c(St)(o, !0, 9).x,
962
+ y: c($l)(o, 14, 10),
927
963
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
928
964
  "font-size": 8,
929
965
  "font-weight": "bold"
930
- }, k(o.name) + ": " + k(qt(o, l.donut)) + " (" + k(o.value === null ? "-" : nt(o.value, o, g)) + ") ", 9, xa)) : v("", !0)
966
+ }, C(o.name) + ": " + C(Qt(o, l.donut)) + " (" + C(o.value === null ? "-" : st(o.value, o, g)) + ") ", 9, Ca)) : v("", !0)
931
967
  ]))), 256)),
932
- b("g", null, [
933
- b("circle", {
968
+ m("g", null, [
969
+ m("circle", {
934
970
  cx: l.x,
935
971
  cy: l.y,
936
972
  r: l.hoverRadius,
937
973
  fill: e.value.style.chart.backgroundColor
938
- }, null, 8, ka)
974
+ }, null, 8, La)
939
975
  ])
940
976
  ])) : v("", !0)
941
977
  ])) : v("", !0)
942
978
  ], 2))), 256)),
943
- (u(!0), n($, null, z(L.value, (l, s) => (u(), n("g", {
944
- class: N({ "donut-opacity": !0, "donut-behind": s !== f.value && f.value !== null })
979
+ (u(!0), s($, null, z(A.value, (l, n) => (u(), s("g", {
980
+ class: P({ "donut-opacity": !0, "donut-behind": n !== b.value && b.value !== null })
945
981
  }, [
946
- l.subtotal !== null ? (u(), n("g", wa, [
947
- l.subtotal === 0 ? (u(), n("circle", {
982
+ l.subtotal !== null ? (u(), s("g", _a, [
983
+ l.subtotal === 0 ? (u(), s("circle", {
948
984
  key: 0,
949
985
  cx: l.x,
950
986
  cy: l.y,
951
987
  r: 3,
952
988
  fill: e.value.style.chart.color
953
- }, null, 8, Ca)) : f.value !== null && f.value === s ? (u(), n("g", _a, [
954
- (u(!0), n($, null, z(l.donutHover, (o, g) => (u(), n("path", {
989
+ }, null, 8, Aa)) : b.value !== null && b.value === n ? (u(), s("g", Sa, [
990
+ (u(!0), s($, null, z(l.donutHover, (o, g) => (u(), s("path", {
955
991
  d: o.arcSlice,
956
992
  fill: `${o.color}`,
957
993
  "stroke-width": 1,
958
994
  stroke: e.value.style.chart.backgroundColor
959
- }, null, 8, La))), 256))
960
- ])) : (u(), n("g", Aa, [
961
- (u(!0), n($, null, z(l.donut, (o, g) => (u(), n("path", {
995
+ }, null, 8, $a))), 256))
996
+ ])) : (u(), s("g", za, [
997
+ (u(!0), s($, null, z(l.donut, (o, g) => (u(), s("path", {
962
998
  d: o.arcSlice,
963
999
  fill: `${o.color}`,
964
1000
  "stroke-width": 0.5,
965
1001
  stroke: e.value.style.chart.backgroundColor
966
- }, null, 8, Sa))), 256))
1002
+ }, null, 8, Ia))), 256))
967
1003
  ]))
968
1004
  ])) : v("", !0)
969
1005
  ], 2))), 256)),
970
- (u(!0), n($, null, z(L.value, (l, s) => (u(), n("g", {
971
- class: N({ "donut-opacity": !0, "donut-behind": s !== f.value && f.value !== null || de.value && s !== V.value.index })
1006
+ (u(!0), s($, null, z(A.value, (l, n) => (u(), s("g", {
1007
+ class: P({ "donut-opacity": !0, "donut-behind": n !== b.value && b.value !== null || he.value && n !== M.value.index })
972
1008
  }, [
973
- l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (u(), n("text", {
1009
+ l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (u(), s("text", {
974
1010
  key: 0,
975
1011
  "text-anchor": "middle",
976
1012
  x: l.x,
977
- y: f.value === l.index && l.subtotal ? l.y + e.value.style.chart.layout.dataLabels.fontSize / 3 : l.y - l.radius - e.value.style.chart.layout.dataLabels.fontSize + e.value.style.chart.layout.dataLabels.offsetY,
1013
+ y: b.value === l.index && l.subtotal ? l.y + e.value.style.chart.layout.dataLabels.fontSize / 3 : l.y - l.radius - e.value.style.chart.layout.dataLabels.fontSize + e.value.style.chart.layout.dataLabels.offsetY,
978
1014
  "font-size": e.value.style.chart.layout.dataLabels.fontSize,
979
1015
  "font-weight": "bold",
980
1016
  fill: e.value.style.chart.layout.dataLabels.color
981
- }, k(nt(l.subtotal, l, s)), 9, $a)) : v("", !0)
1017
+ }, C(st(l.subtotal, l, n)), 9, Ta)) : v("", !0)
982
1018
  ], 2))), 256)),
983
- (u(!0), n($, null, z(L.value, (l, s) => (u(), n("rect", {
984
- x: r.value.left + s * w.value,
1019
+ (u(!0), s($, null, z(A.value, (l, n) => (u(), s("rect", {
1020
+ x: r.value.left + n * L.value,
985
1021
  y: r.value.top,
986
- width: w.value,
1022
+ width: L.value,
987
1023
  height: r.value.height,
988
- fill: [f.value, Q.value].includes(l.index) ? `url(#hover_${D.value})` : "transparent",
989
- class: N({ "donut-hover": l.subtotal && [f.value, Q.value].includes(l.index) }),
1024
+ fill: [b.value, K.value].includes(l.index) ? `url(#hover_${O.value})` : "transparent",
1025
+ class: P({ "donut-hover": l.subtotal && [b.value, K.value].includes(l.index) }),
990
1026
  style: {
991
1027
  pointerEvents: "none"
992
1028
  }
993
- }, null, 10, za))), 256)),
994
- (u(!0), n($, null, z(L.value, (l, s) => (u(), n("rect", {
1029
+ }, null, 10, Da))), 256)),
1030
+ (u(!0), s($, null, z(A.value, (l, n) => (u(), s("rect", {
995
1031
  "data-cy-trap": "",
996
- x: r.value.left + s * w.value,
1032
+ x: r.value.left + n * L.value,
997
1033
  y: r.value.top,
998
- width: w.value,
1034
+ width: L.value,
999
1035
  height: r.value.height,
1000
1036
  fill: "transparent",
1001
- onMouseenter: (o) => Qt(l),
1037
+ onMouseenter: (o) => Jt(l),
1002
1038
  onMouseleave: (o) => rt(l),
1003
- onClick: (o) => it(l, s),
1004
- class: N({ "donut-hover": f.value === l.index && l.subtotal })
1005
- }, null, 42, Ia))), 256)),
1006
- A(t.$slots, "svg", { svg: r.value }, void 0, !0)
1007
- ], 14, Yl)),
1008
- t.$slots.watermark ? (u(), n("div", Oa, [
1009
- A(t.$slots, "watermark", Z(ee({ isPrinting: c(lt) || c(at) })), void 0, !0)
1039
+ onClick: (o) => it(l, n),
1040
+ class: P({ "donut-hover": b.value === l.index && l.subtotal })
1041
+ }, null, 42, Oa))), 256)),
1042
+ p(t.$slots, "svg", { svg: r.value }, void 0, !0)
1043
+ ], 14, Ql)),
1044
+ t.$slots.watermark ? (u(), s("div", Na, [
1045
+ p(t.$slots, "watermark", R(E({ isPrinting: c(lt) || c(at) })), void 0, !0)
1010
1046
  ])) : v("", !0),
1011
- b("div", {
1047
+ m("div", {
1012
1048
  ref_key: "chartSlicer",
1013
1049
  ref: Ge,
1014
- style: K(`width:100%;background:${e.value.style.chart.backgroundColor}`),
1050
+ style: te(`width:100%;background:${e.value.style.chart.backgroundColor}`),
1015
1051
  "data-dom-to-png-ignore": ""
1016
1052
  }, [
1017
- I.value > 1 && e.value.style.chart.zoom.show ? (u(), T(Ul, {
1053
+ I.value > 1 && e.value.style.chart.zoom.show ? (u(), D(Gl, {
1018
1054
  ref_key: "slicerComponent",
1019
1055
  ref: We,
1020
- key: `slicer_${Fe.value}`,
1056
+ key: `slicer_${Ee.value}`,
1021
1057
  background: e.value.style.chart.zoom.color,
1022
1058
  borderColor: e.value.style.chart.backgroundColor,
1023
1059
  fontSize: e.value.style.chart.zoom.fontSize,
@@ -1043,70 +1079,70 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
1043
1079
  focusRangeRatio: e.value.style.chart.zoom.focusRangeRatio,
1044
1080
  onReset: Ze
1045
1081
  }, {
1046
- "reset-action": x(({ reset: l }) => [
1047
- A(t.$slots, "reset-action", Z(ee({ reset: l })), void 0, !0)
1082
+ "reset-action": f(({ reset: l }) => [
1083
+ p(t.$slots, "reset-action", R(E({ reset: l })), void 0, !0)
1048
1084
  ]),
1049
1085
  _: 3
1050
1086
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "focusOnDrag", "focusRangeRatio"])) : v("", !0)
1051
1087
  ], 4),
1052
- b("div", {
1053
- id: `legend-bottom-${D.value}`
1054
- }, null, 8, Ta),
1055
- Me.value ? (u(), T(hl, {
1088
+ m("div", {
1089
+ id: `legend-bottom-${O.value}`
1090
+ }, null, 8, Pa),
1091
+ Me.value ? (u(), D(fl, {
1056
1092
  key: 5,
1057
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
1093
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
1058
1094
  }, [
1059
- b("div", {
1095
+ m("div", {
1060
1096
  ref_key: "chartLegend",
1061
1097
  ref: Ue
1062
1098
  }, [
1063
- e.value.style.chart.legend.show ? (u(), T(Hl, {
1099
+ e.value.style.chart.legend.show ? (u(), D(Wl, {
1064
1100
  key: `legend_${Be.value}`,
1065
- legendSet: Le.value,
1066
- config: Jt.value,
1067
- onClickMarker: a[2] || (a[2] = ({ legend: l }) => Ae(l.uid))
1101
+ legendSet: Ae.value,
1102
+ config: Kt.value,
1103
+ onClickMarker: a[2] || (a[2] = ({ legend: l }) => Z(l.uid))
1068
1104
  }, {
1069
- item: x(({ legend: l, index: s }) => [
1070
- b("div", {
1071
- onClick: (o) => Ae(l.uid),
1072
- style: K(`opacity:${C.value.includes(l.uid) ? 0.5 : 1}`)
1073
- }, k(l.display), 13, Da)
1105
+ item: f(({ legend: l, index: n }) => [
1106
+ m("div", {
1107
+ onClick: (o) => Z(l.uid),
1108
+ style: te(`opacity:${w.value.includes(l.uid) ? 0.5 : 1}`)
1109
+ }, C(l.display), 13, Ra)
1074
1110
  ]),
1075
1111
  _: 1
1076
1112
  }, 8, ["legendSet", "config"])) : v("", !0),
1077
- A(t.$slots, "legend", { legend: Le.value }, void 0, !0)
1113
+ p(t.$slots, "legend", { legend: Ae.value }, void 0, !0)
1078
1114
  ], 512)
1079
1115
  ], 8, ["to"])) : v("", !0),
1080
- t.$slots.source ? (u(), n("div", {
1116
+ t.$slots.source ? (u(), s("div", {
1081
1117
  key: 6,
1082
1118
  ref_key: "source",
1083
1119
  ref: Xe,
1084
1120
  dir: "auto"
1085
1121
  }, [
1086
- A(t.$slots, "source", {}, void 0, !0)
1122
+ p(t.$slots, "source", {}, void 0, !0)
1087
1123
  ], 512)) : v("", !0),
1088
- qe.value && e.value.userOptions.buttons.table ? (u(), T(yl(J.value.component), gl({ key: 7 }, J.value.props, {
1124
+ qe.value && e.value.userOptions.buttons.table ? (u(), D(bl(ee.value.component), ml({ key: 7 }, ee.value.props, {
1089
1125
  ref_key: "tableUnit",
1090
- ref: Y,
1091
- onClose: ft
1092
- }), xt({
1093
- content: x(() => [
1094
- (u(), T(c(Pt), {
1126
+ ref: Q,
1127
+ onClose: bt
1128
+ }), kt({
1129
+ content: f(() => [
1130
+ (u(), D(c(Rt), {
1095
1131
  key: `table_${Ve.value}`,
1096
- colNames: W.value.colNames,
1097
- head: W.value.head,
1098
- body: W.value.body,
1099
- config: W.value.config,
1100
- title: e.value.table.useDialog ? "" : J.value.title,
1132
+ colNames: j.value.colNames,
1133
+ head: j.value.head,
1134
+ body: j.value.body,
1135
+ config: j.value.config,
1136
+ title: e.value.table.useDialog ? "" : ee.value.title,
1101
1137
  withCloseButton: !e.value.table.useDialog,
1102
- onClose: ft
1138
+ onClose: bt
1103
1139
  }, {
1104
- th: x(({ th: l }) => [
1105
- Oe(k(l.name ?? l), 1)
1140
+ th: f(({ th: l }) => [
1141
+ Te(C(l.name ?? l), 1)
1106
1142
  ]),
1107
- td: x(({ td: l }) => [
1108
- l.value === null ? (u(), n("span", Na, "-")) : (u(), n("b", Pa, k(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + k(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + k(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
1109
- b("span", null, k(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
1143
+ td: f(({ td: l }) => [
1144
+ l.value === null ? (u(), s("span", Ea, "-")) : (u(), s("b", Fa, C(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + C(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + C(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
1145
+ m("span", null, C(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
1110
1146
  ]),
1111
1147
  _: 1
1112
1148
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -1115,58 +1151,58 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
1115
1151
  }, [
1116
1152
  e.value.table.useDialog ? {
1117
1153
  name: "title",
1118
- fn: x(() => [
1119
- Oe(k(J.value.title), 1)
1154
+ fn: f(() => [
1155
+ Te(C(ee.value.title), 1)
1120
1156
  ]),
1121
1157
  key: "0"
1122
1158
  } : void 0,
1123
1159
  e.value.table.useDialog ? {
1124
1160
  name: "actions",
1125
- fn: x(() => [
1126
- b("button", {
1161
+ fn: f(() => [
1162
+ m("button", {
1127
1163
  tabindex: "0",
1128
1164
  class: "vue-ui-user-options-button",
1129
1165
  onClick: a[3] || (a[3] = (l) => Se(e.value.userOptions.callbacks.csv))
1130
1166
  }, [
1131
- kt(c(Nt), {
1167
+ wt(c(Pt), {
1132
1168
  name: "excel",
1133
- stroke: J.value.props.color
1169
+ stroke: ee.value.props.color
1134
1170
  }, null, 8, ["stroke"])
1135
1171
  ])
1136
1172
  ]),
1137
1173
  key: "1"
1138
1174
  } : void 0
1139
1175
  ]), 1040)) : v("", !0),
1140
- e.value.style.chart.dialog.show ? (u(), T(c(Pe), {
1176
+ e.value.style.chart.dialog.show ? (u(), D(c(Pe), {
1141
1177
  key: 8,
1142
1178
  ref_key: "dialog",
1143
1179
  ref: ze,
1144
1180
  onClose: a[4] || (a[4] = (l) => {
1145
- V.value = null, de.value = !1, le.value = null, f.value = null, Q.value = null;
1181
+ M.value = null, he.value = !1, ae.value = null, b.value = null, K.value = null;
1146
1182
  }),
1147
1183
  backgroundColor: e.value.style.chart.dialog.backgroundColor,
1148
1184
  color: e.value.style.chart.dialog.color,
1149
1185
  headerBg: e.value.style.chart.dialog.header.backgroundColor,
1150
1186
  headerColor: e.value.style.chart.dialog.header.color,
1151
- isFullscreen: H.value,
1152
- fullscreenParent: P.value
1187
+ isFullscreen: W.value,
1188
+ fullscreenParent: F.value
1153
1189
  }, {
1154
- title: x(() => [
1155
- Oe(k(_.value[Number(V.value.index)] ? _.value[Number(V.value.index)].text : ""), 1)
1190
+ title: f(() => [
1191
+ Te(C(_.value[Number(M.value.index)] ? _.value[Number(M.value.index)].text : ""), 1)
1156
1192
  ]),
1157
- content: x(() => [
1158
- V.value ? (u(), T(c(Vt), {
1193
+ content: f(() => [
1194
+ M.value ? (u(), D(c(Bt), {
1159
1195
  key: 0,
1160
- config: gt.value,
1161
- dataset: yt.value
1196
+ config: ft.value,
1197
+ dataset: gt.value
1162
1198
  }, null, 8, ["config", "dataset"])) : v("", !0)
1163
1199
  ]),
1164
1200
  _: 1
1165
1201
  }, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : v("", !0),
1166
- c(Je) ? (u(), T(Dl, { key: 9 })) : v("", !0)
1167
- ], 46, Wl));
1202
+ c(Je) ? (u(), D(Rl, { key: 9 })) : v("", !0)
1203
+ ], 46, jl));
1168
1204
  }
1169
- }, eo = /* @__PURE__ */ Xl(Ra, [["__scopeId", "data-v-33d95825"]]);
1205
+ }, ao = /* @__PURE__ */ Yl(Va, [["__scopeId", "data-v-d491ac71"]]);
1170
1206
  export {
1171
- eo as default
1207
+ ao as default
1172
1208
  };