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 z, computed as b, ref as c, toRefs as rl, watch as le, onMounted as il, shallowRef as mt, onBeforeUnmount as dl, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as ce, normalizeClass as M, createBlock as B, createCommentVNode as k, createElementVNode as y, createVNode as Ve, createSlots as wt, withCtx as C, renderSlot as _, normalizeProps as q, guardReactiveProps as Q, Fragment as A, renderList as T, toDisplayString as D, withDirectives as $t, vShow as kt, Teleport as vl, resolveDynamicComponent as cl, mergeProps as hl, createTextVNode as Ct, nextTick as Lt } from "vue";
2
- import { c as fl, t as pl, b as yl, p as ze, O as Me, o as gl, f as J, e as bl, a1 as E, h as ml, T as Be, a as ae, d as O, X as wl, s as $l, I as xt, W as Ee, Y as K, G as _t, P as kl, Q as Cl, H as Ll, a0 as At, x as Re } from "./lib-C_mNZmhD.js";
3
- import { t as xl, u as _l } from "./useResponsive-DfdjqQps.js";
4
- import { u as Al, a as Tt } from "./useNestedProp-BjZe1Y85.js";
5
- import { u as Tl, B as Sl } from "./BaseScanner-BgWxam9d.js";
6
- import { u as Ol } from "./usePrinter-DTzqpYKF.js";
7
- import { u as Fl } from "./useSvgExport-DrjCWun4.js";
8
- import { u as Il } from "./useUserOptionState-BIvW1Kz7.js";
9
- import { u as Nl } from "./useChartAccessibility-9icAAmYg.js";
10
- import Dl from "./img-BecE5qXd.js";
11
- import Pl from "./Title-l36lOBMx.js";
12
- import { t as Vl } from "./themes-AUNCOb2G.js";
13
- import zl from "./Legend-G6GMcdAc.js";
14
- import { _ as Ml } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "height"], Gl = ["id"], Yl = ["offset", "stop-color"], Wl = ["offset", "stop-opacity"], Xl = ["id"], Hl = ["id"], ql = ["id"], Ql = ["flood-color"], Jl = ["id", "d"], Kl = ["d", "fill", "stroke", "stroke-width", "filter"], Zl = ["d", "fill", "stroke", "stroke-width"], jl = { key: 1 }, ea = ["d", "fill"], ta = { key: 2 }, la = ["font-size", "font-weight", "fill", "dy"], aa = ["href"], oa = ["x", "y", "font-size", "font-weight", "fill"], sa = { key: 3 }, ua = ["filter"], na = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], ra = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], ia = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], da = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], va = {
1
+ import { defineAsyncComponent as B, computed as $, ref as v, toRefs as ca, watch as le, onMounted as va, shallowRef as wt, onBeforeUnmount as ha, createElementBlock as r, openBlock as n, unref as i, normalizeStyle as he, normalizeClass as E, createBlock as U, createCommentVNode as x, createElementVNode as y, createVNode as Ve, withCtx as g, renderSlot as b, normalizeProps as N, guardReactiveProps as D, createSlots as $t, Fragment as A, renderList as T, toDisplayString as V, withDirectives as kt, vShow as Ct, Teleport as fa, resolveDynamicComponent as pa, mergeProps as ya, createTextVNode as Lt, nextTick as xt } from "vue";
2
+ import { c as ga, t as ba, b as ma, p as ze, O as Me, o as wa, f as K, e as $a, a1 as R, h as ka, T as Be, a as oe, d as F, X as Ca, s as La, I as _t, W as Ee, Y as Z, G as At, P as xa, Q as _a, H as Aa, a0 as Tt, x as Ue } from "./lib-C_mNZmhD.js";
3
+ import { t as Ta, u as Sa } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Oa, a as St } from "./useNestedProp-DjGXw6S9.js";
5
+ import { u as Fa, B as Na } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as Da } from "./usePrinter-DTzqpYKF.js";
7
+ import { u as Ia } from "./useSvgExport-DrjCWun4.js";
8
+ import { u as Pa } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as Va } from "./useChartAccessibility-9icAAmYg.js";
10
+ import za from "./img-BecE5qXd.js";
11
+ import Ma from "./Title-isbiM8i8.js";
12
+ import { t as Ba } from "./themes-AUNCOb2G.js";
13
+ import Ea from "./Legend-G6GMcdAc.js";
14
+ import { _ as Ua } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const Ra = ["id"], Ga = ["id"], Ya = ["xmlns", "viewBox"], Wa = ["width", "height"], Xa = ["id"], Ha = ["offset", "stop-color"], qa = ["offset", "stop-opacity"], Qa = ["id"], Ja = ["id"], Ka = ["id"], Za = ["flood-color"], ja = ["id", "d"], el = ["d", "fill", "stroke", "stroke-width", "filter"], tl = ["d", "fill", "stroke", "stroke-width"], al = { key: 1 }, ll = ["d", "fill"], ol = { key: 2 }, sl = ["font-size", "font-weight", "fill", "dy"], nl = ["href"], ul = ["x", "y", "font-size", "font-weight", "fill"], rl = { key: 3 }, il = ["filter"], dl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], cl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], vl = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], hl = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], fl = {
16
16
  key: 4,
17
17
  class: "vue-data-ui-watermark"
18
- }, ca = ["id"], ha = {
18
+ }, pl = ["id"], yl = {
19
19
  key: 0,
20
20
  class: "vue-ui-nested-donuts-legend-title"
21
- }, fa = ["onClick"], pa = ["innerHTML"], ya = {
21
+ }, gl = ["onClick"], bl = ["innerHTML"], ml = {
22
22
  __name: "vue-ui-nested-donuts",
23
23
  props: {
24
24
  config: {
@@ -35,19 +35,19 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
35
35
  }
36
36
  },
37
37
  emits: ["selectLegend", "selectDatapoint"],
38
- setup(St, { expose: Ot, emit: Ft }) {
39
- const It = z(() => import("./Tooltip-oWCO1HKy.js")), Nt = z(() => import("./BaseIcon-BmMbm4d0.js")), Dt = z(() => import("./vue-ui-accordion-CZ0thhxa.js")), Pt = z(() => import("./DataTable-BT7VF2ua.js")), Vt = z(() => import("./UserOptions-CGnQt6Fd.js")), zt = z(() => import("./PenAndPaper-DSvu9dwa.js")), Mt = z(() => import("./PackageVersion-CTUqGqWV.js")), Bt = z(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_nested_donuts: Et } = Al(), w = St, he = b({
38
+ setup(Ot, { expose: Ft, emit: Nt }) {
39
+ const Dt = B(() => import("./Tooltip-oWCO1HKy.js")), It = B(() => import("./BaseIcon-BmMbm4d0.js")), Pt = B(() => import("./vue-ui-accordion-CqhVCfc2.js")), Vt = B(() => import("./DataTable-BT7VF2ua.js")), zt = B(() => import("./UserOptions-CGnQt6Fd.js")), Mt = B(() => import("./PenAndPaper-SZQIAgkg.js")), Bt = B(() => import("./PackageVersion-DQvyATVa.js")), Et = B(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_nested_donuts: Ut } = Oa(), C = Ot, fe = $({
40
40
  get() {
41
- return !!w.dataset && w.dataset.length;
41
+ return !!C.dataset && C.dataset.length;
42
42
  },
43
43
  set(t) {
44
44
  return t;
45
45
  }
46
- }), p = c(fl()), fe = c(!1), pe = c(""), ye = c(null), Ue = c(0), I = c(null), Ge = c(null), ge = c(null), Ye = c(null), We = c(null), Xe = c(0), He = c(0), qe = c(0), R = c(!0), U = c([]), Z = c([]), Qe = c(!1), j = c(null), be = c(null), G = c(!1);
46
+ }), p = v(ga()), pe = v(!1), ye = v(""), ge = v(null), Re = v(0), I = v(null), Ge = v(null), be = v(null), Ye = v(null), We = v(null), Xe = v(0), He = v(0), qe = v(0), G = v(!0), Y = v([]), j = v([]), Qe = v(!1), ee = v(null), me = v(null), W = v(!1);
47
47
  function Je(t) {
48
- G.value = t, Ue.value += 1;
48
+ W.value = t, Re.value += 1;
49
49
  }
50
- const e = c(ke()), Ke = {
50
+ const e = v(Ce()), Ke = {
51
51
  name: "",
52
52
  series: [
53
53
  {
@@ -66,17 +66,17 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
66
66
  color: "#CACACA"
67
67
  }
68
68
  ]
69
- }, { loading: me, FINAL_DATASET: Y, manualLoading: we } = Tl({
70
- ...rl(w),
69
+ }, { loading: we, FINAL_DATASET: X, manualLoading: $e } = Fa({
70
+ ...ca(C),
71
71
  FINAL_CONFIG: e,
72
- prepareConfig: ke,
72
+ prepareConfig: Ce,
73
73
  callback: () => {
74
74
  Promise.resolve().then(async () => {
75
75
  await tt();
76
76
  });
77
77
  },
78
78
  skeletonDataset: [Ke, Ke],
79
- skeletonConfig: pl({
79
+ skeletonConfig: ba({
80
80
  defaultConfig: e.value,
81
81
  userConfig: {
82
82
  useCssAnimation: !1,
@@ -102,145 +102,145 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
102
102
  }
103
103
  }
104
104
  })
105
- }), { userOptionsVisible: $e, setUserOptionsVisibility: Ze, keepUserOptionState: je } = Il({ config: e.value }), { svgRef: ee } = Nl({
105
+ }), { userOptionsVisible: ke, setUserOptionsVisibility: Ze, keepUserOptionState: je } = Pa({ config: e.value }), { svgRef: te } = Va({
106
106
  config: e.value.style.chart.title
107
107
  });
108
- function ke() {
109
- const t = Tt({
110
- userConfig: w.config,
111
- defaultConfig: Et
108
+ function Ce() {
109
+ const t = St({
110
+ userConfig: C.config,
111
+ defaultConfig: Ut
112
112
  });
113
113
  let s = {};
114
114
  return t.theme ? s = {
115
- ...Tt({
116
- userConfig: Vl.vue_ui_nested_donuts[t.theme] || w.config,
115
+ ...St({
116
+ userConfig: Ba.vue_ui_nested_donuts[t.theme] || C.config,
117
117
  defaultConfig: t
118
118
  }),
119
- customPalette: yl[t.theme] || ze
120
- } : s = t, w.config && Me(w.config, "events.datapointEnter") ? s.events.datapointEnter = w.config.events.datapointEnter : s.events.datapointEnter = null, w.config && Me(w.config, "events.datapointLeave") ? s.events.datapointLeave = w.config.events.datapointLeave : s.events.datapointLeave = null, w.config && Me(w.config, "events.datapointClick") ? s.events.datapointClick = w.config.events.datapointClick : s.events.datapointClick = null, s;
119
+ customPalette: ma[t.theme] || ze
120
+ } : s = t, C.config && Me(C.config, "events.datapointEnter") ? s.events.datapointEnter = C.config.events.datapointEnter : s.events.datapointEnter = null, C.config && Me(C.config, "events.datapointLeave") ? s.events.datapointLeave = C.config.events.datapointLeave : s.events.datapointLeave = null, C.config && Me(C.config, "events.datapointClick") ? s.events.datapointClick = C.config.events.datapointClick : s.events.datapointClick = null, s;
121
121
  }
122
122
  le(
123
- () => w.config,
123
+ () => C.config,
124
124
  (t) => {
125
- me.value || (e.value = ke()), $e.value = !e.value.userOptions.showOnChartHover, lt(), Xe.value += 1, He.value += 1, qe.value += 1, L.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, L.value.showTable = e.value.table.show, L.value.showTooltip = e.value.style.chart.tooltip.show, h.value.width = e.value.style.chart.width, h.value.height = e.value.style.chart.height;
125
+ we.value || (e.value = Ce()), ke.value = !e.value.userOptions.showOnChartHover, at(), Xe.value += 1, He.value += 1, qe.value += 1, _.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, _.value.showTable = e.value.table.show, _.value.showTooltip = e.value.style.chart.tooltip.show, h.value.width = e.value.style.chart.width, h.value.height = e.value.style.chart.height;
126
126
  },
127
127
  { deep: !0 }
128
128
  );
129
- const et = b(() => {
130
- const { top: t, right: s, bottom: a, left: o } = e.value.style.chart.padding;
129
+ const et = $(() => {
130
+ const { top: t, right: s, bottom: l, left: o } = e.value.style.chart.padding;
131
131
  return {
132
- css: `padding:${t}px ${s}px ${a}px ${o}px`,
132
+ css: `padding:${t}px ${s}px ${l}px ${o}px`,
133
133
  top: t,
134
134
  right: s,
135
- bottom: a,
135
+ bottom: l,
136
136
  left: o
137
137
  };
138
138
  });
139
- function Rt(t, s = 1e3, a = 50) {
139
+ function Rt(t, s = 1e3, l = 50) {
140
140
  return new Promise((o) => {
141
- const l = t.length;
142
- U.value = Array(l).fill(0), Z.value = [];
143
- let n = 0;
144
- t.forEach((v, f) => {
141
+ const a = t.length;
142
+ Y.value = Array(a).fill(0), j.value = [];
143
+ let u = 0;
144
+ t.forEach((c, f) => {
145
145
  setTimeout(() => {
146
- const m = performance.now();
147
- function d(g) {
148
- const S = Math.min((g - m) / s, 1), Se = At(S), Oe = v * Se;
149
- U.value[f] = Oe, U.value = [...U.value];
150
- const de = [];
146
+ const k = performance.now();
147
+ function d(m) {
148
+ const S = Math.min((m - k) / s, 1), Se = Tt(S), Oe = c * Se;
149
+ Y.value[f] = Oe, Y.value = [...Y.value];
150
+ const ce = [];
151
151
  let Fe = 0;
152
- w.dataset.forEach((ve, Ie) => {
153
- const ol = Re(ve.series.reduce(
154
- (De, Pe) => De + Re(E(Pe.values).reduce((ul, nl) => ul + nl, 0)),
152
+ C.dataset.forEach((ve, Ne) => {
153
+ const ua = Ue(ve.series.reduce(
154
+ (Ie, Pe) => Ie + Ue(R(Pe.values).reduce((ia, da) => ia + da, 0)),
155
155
  0
156
- )), sl = Re(U.value.slice(Fe, Fe + ve.series.length).reduce((De, Pe) => De + Pe, 0)), Ne = ol - sl;
157
- Ne > Number.MIN_VALUE && de.push({
156
+ )), ra = Ue(Y.value.slice(Fe, Fe + ve.series.length).reduce((Ie, Pe) => Ie + Pe, 0)), De = ua - ra;
157
+ De > Number.MIN_VALUE && ce.push({
158
158
  name: "__ghost__",
159
159
  arcOf: ve.name,
160
- arcOfId: `${p.value}_${Ie}`,
161
- id: `ghost_${p.value}_${Ie}`,
160
+ arcOfId: `${p.value}_${Ne}`,
161
+ id: `ghost_${p.value}_${Ne}`,
162
162
  seriesIndex: -1,
163
- datasetIndex: Ie,
163
+ datasetIndex: Ne,
164
164
  color: "transparent",
165
- value: Ne,
166
- fullValue: Ne,
165
+ value: De,
166
+ fullValue: De,
167
167
  absoluteValues: [],
168
168
  ghost: !0
169
169
  }), Fe += ve.series.length;
170
- }), Z.value = de, S < 1 ? requestAnimationFrame(d) : (n += 1, n === l && o());
170
+ }), j.value = ce, S < 1 ? requestAnimationFrame(d) : (u += 1, u === a && o());
171
171
  }
172
172
  requestAnimationFrame(d);
173
- }, f * a);
173
+ }, f * l);
174
174
  });
175
175
  });
176
176
  }
177
177
  async function tt() {
178
178
  if (e.value.startAnimation?.show) {
179
- const s = Y.value.flatMap((a) => a.series).map(
180
- (a) => E(a.values).reduce((o, l) => o + l, 0)
179
+ const s = X.value.flatMap((l) => l.series).map(
180
+ (l) => R(l.values).reduce((o, a) => o + a, 0)
181
181
  );
182
- U.value = s.map(() => 0), R.value = !0, Z.value = Y.value.map((a, o) => {
183
- const l = a.series.reduce(
184
- (n, v) => n + E(v.values).reduce((f, m) => f + m, 0),
182
+ Y.value = s.map(() => 0), G.value = !0, j.value = X.value.map((l, o) => {
183
+ const a = l.series.reduce(
184
+ (u, c) => u + R(c.values).reduce((f, k) => f + k, 0),
185
185
  0
186
186
  );
187
187
  return {
188
188
  name: "__ghost__",
189
- arcOf: a.name,
189
+ arcOf: l.name,
190
190
  arcOfId: `${p.value}_${o}`,
191
191
  id: `ghost_${p.value}_${o}`,
192
192
  seriesIndex: -1,
193
193
  datasetIndex: o,
194
194
  color: "transparent",
195
- value: l,
196
- fullValue: l,
195
+ value: a,
196
+ fullValue: a,
197
197
  absoluteValues: [],
198
198
  ghost: !0
199
199
  };
200
- }), await Lt(), Rt(
200
+ }), await xt(), Rt(
201
201
  s,
202
202
  e.value.startAnimation.durationMs,
203
203
  e.value.startAnimation.staggerMs
204
204
  ).then(() => {
205
- R.value = !1, Z.value = [];
205
+ G.value = !1, j.value = [];
206
206
  });
207
207
  } else
208
- R.value = !1;
208
+ G.value = !1;
209
209
  }
210
- il(async () => {
211
- Qe.value = !0, lt(), await tt();
210
+ va(async () => {
211
+ Qe.value = !0, at(), await tt();
212
212
  });
213
- const P = mt(null), W = mt(null), X = b(() => !!e.value.debug);
214
- function lt() {
215
- if (gl(w.dataset) ? (J({
213
+ const z = wt(null), q = wt(null), Q = $(() => !!e.value.debug);
214
+ function at() {
215
+ if (wa(C.dataset) ? (K({
216
216
  componentName: "VueUiNestedDonuts",
217
217
  type: "dataset",
218
- debug: X.value
219
- }), he.value = !1, we.value = !0) : we.value = e.value.loading, e.value.responsive) {
220
- const t = xl(() => {
221
- const { width: s, height: a } = _l({
218
+ debug: Q.value
219
+ }), fe.value = !1, $e.value = !0) : $e.value = e.value.loading, e.value.responsive) {
220
+ const t = Ta(() => {
221
+ const { width: s, height: l } = Sa({
222
222
  chart: I.value,
223
223
  title: e.value.style.chart.title.text ? Ge.value : null,
224
- legend: e.value.style.chart.legend.show ? ge.value : null,
224
+ legend: e.value.style.chart.legend.show ? be.value : null,
225
225
  source: Ye.value,
226
226
  noTitle: We.value,
227
227
  padding: et.value
228
228
  });
229
229
  requestAnimationFrame(() => {
230
- h.value.width = s, h.value.height = a;
230
+ h.value.width = s, h.value.height = l;
231
231
  });
232
232
  });
233
- P.value && (W.value && P.value.unobserve(W.value), P.value.disconnect()), P.value = new ResizeObserver(t), W.value = I.value.parentNode, P.value.observe(W.value);
233
+ z.value && (q.value && z.value.unobserve(q.value), z.value.disconnect()), z.value = new ResizeObserver(t), q.value = I.value.parentNode, z.value.observe(q.value);
234
234
  }
235
235
  }
236
- dl(() => {
237
- P.value && (W.value && P.value.unobserve(W.value), P.value.disconnect());
236
+ ha(() => {
237
+ z.value && (q.value && z.value.unobserve(q.value), z.value.disconnect());
238
238
  });
239
- const { isPrinting: at, isImaging: ot, generatePdf: st, generateImage: ut } = Ol({
239
+ const { isPrinting: lt, isImaging: ot, generatePdf: st, generateImage: nt } = Da({
240
240
  elementId: `nested_donuts_${p.value}`,
241
241
  fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
242
242
  options: e.value.userOptions.print
243
- }), Ut = b(() => e.value.userOptions.show && !e.value.style.chart.title.text), Gt = b(() => bl(e.value.customPalette)), L = c({
243
+ }), Gt = $(() => e.value.userOptions.show && !e.value.style.chart.title.text), Yt = $(() => $a(e.value.customPalette)), _ = v({
244
244
  dataLabels: {
245
245
  show: e.value.style.chart.layout.labels.dataLabels.show
246
246
  },
@@ -248,7 +248,7 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
248
248
  showTooltip: e.value.style.chart.tooltip.show
249
249
  });
250
250
  le(e, () => {
251
- L.value = {
251
+ _.value = {
252
252
  dataLabels: {
253
253
  show: e.value.style.chart.layout.labels.dataLabels.show
254
254
  },
@@ -256,169 +256,187 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
256
256
  showTooltip: e.value.style.chart.tooltip.show
257
257
  };
258
258
  }, { immediate: !0 });
259
- const h = c({
259
+ const h = v({
260
260
  width: e.value.style.chart.width,
261
261
  height: e.value.style.chart.height
262
- }), nt = Ft;
263
- function Yt({ datapoint: t, index: s, seriesIndex: a }) {
264
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a }), nt("selectDatapoint", { datapoint: t, index: s });
262
+ }), ut = Nt;
263
+ function Wt({ datapoint: t, index: s, seriesIndex: l }) {
264
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l }), ut("selectDatapoint", { datapoint: t, index: s });
265
265
  }
266
266
  function rt({
267
267
  from: t,
268
268
  to: s,
269
- duration: a,
269
+ duration: l,
270
270
  onUpdate: o,
271
- onDone: l,
272
- easing: n = At
271
+ onDone: a,
272
+ easing: u = Tt
273
273
  }) {
274
- const v = performance.now();
275
- function f(m) {
276
- const d = Math.min((m - v) / a, 1), g = n(d), S = t + (s - t) * g;
277
- o(S, d), d < 1 ? requestAnimationFrame(f) : (o(s, 1), l && l());
274
+ const c = performance.now();
275
+ function f(k) {
276
+ const d = Math.min((k - c) / l, 1), m = u(d), S = t + (s - t) * m;
277
+ o(S, d), d < 1 ? requestAnimationFrame(f) : (o(s, 1), a && a());
278
278
  }
279
279
  requestAnimationFrame(f);
280
280
  }
281
- const x = c([]), F = b(() => {
282
- me.value, Y.value.forEach((s, a) => {
283
- [null, void 0].includes(s.name) && J({
281
+ const w = v([]), O = $(() => {
282
+ we.value, X.value.forEach((s, l) => {
283
+ [null, void 0].includes(s.name) && K({
284
284
  componentName: "VueUiNestedDonuts",
285
285
  type: "datasetSerieAttribute",
286
286
  property: "name",
287
- index: a,
288
- debug: X.value
289
- }), [null, void 0].includes(s.series) ? J({
287
+ index: l,
288
+ debug: Q.value
289
+ }), [null, void 0].includes(s.series) ? K({
290
290
  componentName: "VueUiNestedDonuts",
291
291
  type: "datasetSerieAttribute",
292
292
  property: "series",
293
- index: a,
294
- debug: X.value
295
- }) : s.series.length === 0 ? J({
293
+ index: l,
294
+ debug: Q.value
295
+ }) : s.series.length === 0 ? K({
296
296
  componentName: "VueUiNestedDonuts",
297
297
  type: "datasetAttributeEmpty",
298
- property: `series at index ${a}`,
299
- debug: X.value
300
- }) : s.series.forEach((o, l) => {
301
- [null, void 0].includes(o.name) && J({
298
+ property: `series at index ${l}`,
299
+ debug: Q.value
300
+ }) : s.series.forEach((o, a) => {
301
+ [null, void 0].includes(o.name) && K({
302
302
  componentName: "VueUiNestedDonuts",
303
303
  type: "datasetSerieAttribute",
304
304
  property: "name",
305
- index: l,
305
+ index: a,
306
306
  key: "serie",
307
- debug: X.value
308
- }), [null, void 0].includes(o.values) && J({
307
+ debug: Q.value
308
+ }), [null, void 0].includes(o.values) && K({
309
309
  componentName: "VueUiNestedDonuts",
310
310
  type: "datasetSerieAttribute",
311
311
  property: "values",
312
- index: l,
312
+ index: a,
313
313
  key: "serie",
314
- debug: X.value
314
+ debug: Q.value
315
315
  });
316
316
  });
317
317
  });
318
318
  let t = 0;
319
- return Y.value.map((s, a) => ({
319
+ return X.value.map((s, l) => ({
320
320
  ...s,
321
- total: s.series.filter((o) => !x.value.includes(o.id)).map((o) => E(o.values).reduce((l, n) => l + n, 0)).reduce((o, l) => o + l, 0),
322
- datasetIndex: a,
323
- id: `${p.value}_${a}`,
324
- series: s.series.map((o, l) => {
325
- const n = E(o.values).reduce((v, f) => v + f, 0);
321
+ total: s.series.filter((o) => !w.value.includes(o.id)).map((o) => R(o.values).reduce((a, u) => a + u, 0)).reduce((o, a) => o + a, 0),
322
+ datasetIndex: l,
323
+ id: `${p.value}_${l}`,
324
+ series: s.series.map((o, a) => {
325
+ const u = R(o.values).reduce((c, f) => c + f, 0);
326
326
  return {
327
327
  name: o.name,
328
328
  arcOf: s.name,
329
- arcOfId: `${p.value}_${a}`,
330
- id: `${p.value}_${a}_${l}`,
331
- seriesIndex: l,
332
- datasetIndex: a,
333
- color: ml(o.color) || Gt.value[l] || ze[l % ze.length],
334
- value: R.value ? U.value[t++] ?? 0 : n,
329
+ arcOfId: `${p.value}_${l}`,
330
+ id: `${p.value}_${l}_${a}`,
331
+ seriesIndex: a,
332
+ datasetIndex: l,
333
+ color: ka(o.color) || Yt.value[a] || ze[a % ze.length],
334
+ value: G.value ? Y.value[t++] ?? 0 : u,
335
335
  absoluteValues: o.values || []
336
336
  };
337
337
  })
338
338
  }));
339
339
  });
340
- le(() => w.dataset, (t) => {
341
- Array.isArray(t) && t.length > 0 && (we.value = !1);
340
+ le(() => C.dataset, (t) => {
341
+ Array.isArray(t) && t.length > 0 && ($e.value = !1);
342
342
  }, { immediate: !0 });
343
- const N = b(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), it = b(() => [...F.value].map((t, s) => {
344
- const a = t.series.filter((o) => !x.value.includes(o.id)).map((o) => o.value).reduce((o, l) => o + l, 0);
343
+ const P = $(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), it = $(() => [...O.value].map((t, s) => {
344
+ const l = t.series.filter((o) => !w.value.includes(o.id)).map((o) => o.value).reduce((o, a) => o + a, 0);
345
345
  return {
346
346
  ...t,
347
- total: a,
348
- series: t.series.filter((o) => !x.value.includes(o.id)).map((o) => ({
347
+ total: l,
348
+ series: t.series.filter((o) => !w.value.includes(o.id)).map((o) => ({
349
349
  ...o,
350
- proportion: o.value / a
350
+ proportion: o.value / l
351
351
  }))
352
352
  };
353
353
  }));
354
- function Wt(t, s, a) {
354
+ function Xt(t, s, l) {
355
355
  let o = 0;
356
- for (let l = 0; l < t.length; l += 1)
357
- a.includes(t[l]) && (o += 1);
356
+ for (let a = 0; a < t.length; a += 1)
357
+ l.includes(t[a]) && (o += 1);
358
358
  return o < s;
359
359
  }
360
- const $ = c(it.value);
360
+ const L = v(it.value);
361
361
  le(
362
362
  () => it.value,
363
- (t) => $.value = t
363
+ (t) => L.value = t
364
364
  );
365
- function Ce(t) {
366
- nt("selectLegend", t);
367
- const s = w.dataset.flatMap(
368
- (d, g) => d.series.map((S, Se) => ({
369
- value: E(S.values).reduce((Oe, de) => Oe + de, 0),
370
- id: `${p.value}_${g}_${Se}`,
371
- arcOfId: `${p.value}_${g}`
365
+ function H(t) {
366
+ ut("selectLegend", t);
367
+ const s = C.dataset.flatMap(
368
+ (d, m) => d.series.map((S, Se) => ({
369
+ value: R(S.values).reduce((Oe, ce) => Oe + ce, 0),
370
+ id: `${p.value}_${m}_${Se}`,
371
+ arcOfId: `${p.value}_${m}`
372
372
  }))
373
373
  ).find((d) => d.id === t.id);
374
374
  if (!s) return;
375
- const a = F.value.flatMap((d) => d.series).find((d) => d.id === t.id)?.value ?? 0, o = $.value.flatMap((d) => d.series).find((d) => d.id === t.id);
376
- let n = o ? o.value : 0;
377
- const v = F.value.find(
375
+ const l = O.value.flatMap((d) => d.series).find((d) => d.id === t.id)?.value ?? 0, o = L.value.flatMap((d) => d.series).find((d) => d.id === t.id);
376
+ let u = o ? o.value : 0;
377
+ const c = O.value.find(
378
378
  (d) => d.id === s.arcOfId
379
379
  );
380
- if (!v) return;
381
- const f = v.series.map((d) => d.id), m = Wt(
380
+ if (!c) return;
381
+ const f = c.series.map((d) => d.id), k = Xt(
382
382
  f,
383
383
  f.length - 1,
384
- x.value
384
+ w.value
385
385
  );
386
- x.value.includes(t.id) ? (x.value = x.value.filter((d) => d !== t.id), e.value.serieToggleAnimation.show ? rt({
387
- from: n,
388
- to: a,
386
+ w.value.includes(t.id) ? (w.value = w.value.filter((d) => d !== t.id), e.value.serieToggleAnimation.show ? rt({
387
+ from: u,
388
+ to: l,
389
389
  duration: e.value.serieToggleAnimation.durationMs,
390
390
  onUpdate: (d) => {
391
- $.value = $.value.map((g) => ({
392
- ...g,
393
- series: g.series.map((S) => S.id === t.id ? { ...S, value: d } : S)
391
+ L.value = L.value.map((m) => ({
392
+ ...m,
393
+ series: m.series.map((S) => S.id === t.id ? { ...S, value: d } : S)
394
394
  }));
395
395
  }
396
- }) : $.value = $.value.map((d) => ({
396
+ }) : L.value = L.value.map((d) => ({
397
397
  ...d,
398
- series: d.series.map((g) => g.id === t.id ? { ...g, value: a } : g)
399
- }))) : m && (e.value.serieToggleAnimation.show ? rt({
400
- from: n,
398
+ series: d.series.map((m) => m.id === t.id ? { ...m, value: l } : m)
399
+ }))) : k && (e.value.serieToggleAnimation.show ? rt({
400
+ from: u,
401
401
  to: 0,
402
402
  duration: e.value.serieToggleAnimation.durationMs,
403
403
  onUpdate: (d) => {
404
- $.value = $.value.map((g) => ({
405
- ...g,
406
- series: g.series.map((S) => S.id === t.id ? { ...S, value: d } : S)
404
+ L.value = L.value.map((m) => ({
405
+ ...m,
406
+ series: m.series.map((S) => S.id === t.id ? { ...S, value: d } : S)
407
407
  }));
408
408
  },
409
409
  onDone: () => {
410
- x.value.push(t.id);
410
+ w.value.push(t.id);
411
411
  }
412
- }) : ($.value = $.value.map((d) => ({
412
+ }) : (L.value = L.value.map((d) => ({
413
413
  ...d,
414
- series: d.series.map((g) => g.id === t.id ? { ...g, value: 0 } : g)
415
- })), x.value.push(t.id)));
414
+ series: d.series.map((m) => m.id === t.id ? { ...m, value: 0 } : m)
415
+ })), w.value.push(t.id)));
416
416
  }
417
- const oe = b(() => N.value / F.value.length * e.value.style.chart.layout.donut.spacingRatio), dt = b(() => $.value.map((t, s) => N.value - s * N.value / F.value.length)), H = b(() => $.value.map((t, s) => {
418
- const a = Math.abs(t.series.map((m) => m.value).reduce((m, d) => m + d, 0)) > 0, o = N.value - s * N.value / $.value.length, l = R.value ? Z.value.find((m) => m.datasetIndex === s) : null, n = [...t.series, ...l ? [l] : []].map((m) => ({
419
- ...m,
420
- value: m.value < 1e-11 ? Number.MIN_VALUE : m.value
421
- })), v = Be(
417
+ function dt(t) {
418
+ if (!O.value.length)
419
+ return e.value.debug && console.warn("VueUiNestedDonuts - There are no series to show."), null;
420
+ const s = O.value.flatMap((l) => l.series).filter((l) => l.name === t);
421
+ return s || (e.value.debug && console.warn(`VueUiNestedDonuts - Series name not found "${t}"`), null);
422
+ }
423
+ function Ht(t) {
424
+ const s = dt(t);
425
+ s !== null && (Array.isArray(s) ? s.forEach((l) => {
426
+ w.value.includes(l.id) && H({ id: l.id });
427
+ }) : w.value.includes(s.id) && H({ id: s.id }));
428
+ }
429
+ function qt(t) {
430
+ const s = dt(t);
431
+ s !== null && (Array.isArray(s) ? s.forEach((l) => {
432
+ w.value.includes(l.id) || H({ id: l.id });
433
+ }) : w.value.includes(s.id) || H({ id: s.id }));
434
+ }
435
+ const se = $(() => P.value / O.value.length * e.value.style.chart.layout.donut.spacingRatio), ct = $(() => L.value.map((t, s) => P.value - s * P.value / O.value.length)), J = $(() => L.value.map((t, s) => {
436
+ const l = Math.abs(t.series.map((k) => k.value).reduce((k, d) => k + d, 0)) > 0, o = P.value - s * P.value / L.value.length, a = G.value ? j.value.find((k) => k.datasetIndex === s) : null, u = [...t.series, ...a ? [a] : []].map((k) => ({
437
+ ...k,
438
+ value: k.value < 1e-11 ? Number.MIN_VALUE : k.value
439
+ })), c = Be(
422
440
  { series: [
423
441
  { name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
424
442
  ] },
@@ -431,18 +449,18 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
431
449
  1,
432
450
  360,
433
451
  105.25,
434
- oe.value
452
+ se.value
435
453
  ), f = `M ${h.value.width / 2},${h.value.height / 2 + o}
436
454
  a ${o},${o} 0 1,1 0,${-2 * o}
437
455
  a ${o},${o} 0 1,1 0,${2 * o}`;
438
456
  return {
439
457
  ...t,
440
- hasData: a,
458
+ hasData: l,
441
459
  radius: o,
442
- skeleton: v,
460
+ skeleton: c,
443
461
  fullCirclePath: f,
444
462
  donut: Be(
445
- { series: n },
463
+ { series: u },
446
464
  h.value.width / 2,
447
465
  h.value.height / 2,
448
466
  o,
@@ -452,84 +470,84 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
452
470
  1,
453
471
  360,
454
472
  105.25,
455
- oe.value
473
+ se.value
456
474
  )
457
475
  };
458
- })), vt = b(() => [...F.value].map((t, s) => {
459
- const a = s * N.value / F.value.length;
476
+ })), vt = $(() => [...O.value].map((t, s) => {
477
+ const l = s * P.value / O.value.length;
460
478
  return {
461
- sizeRatio: a,
479
+ sizeRatio: l,
462
480
  donut: Be(
463
481
  { series: [{ value: 1 }] },
464
482
  h.value.width / 2,
465
483
  h.value.height / 2,
466
- N.value - a,
467
- N.value - a,
484
+ P.value - l,
485
+ P.value - l,
468
486
  1.99999,
469
487
  2,
470
488
  1,
471
489
  360,
472
490
  105.25,
473
- N.value / F.value.length * e.value.style.chart.layout.donut.spacingRatio
491
+ P.value / O.value.length * e.value.style.chart.layout.donut.spacingRatio
474
492
  )[0]
475
493
  };
476
- })), ct = c(null), se = c(null), ue = c(null), Le = c(null);
477
- function Xt({ datapoint: t, seriesIndex: s }) {
478
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }), fe.value = !1, ct.value = null, ye.value = null, se.value = null, ue.value = null;
494
+ })), ht = v(null), ne = v(null), ue = v(null), Le = v(null);
495
+ function Qt({ datapoint: t, seriesIndex: s }) {
496
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }), pe.value = !1, ht.value = null, ge.value = null, ne.value = null, ue.value = null;
479
497
  }
480
- function Ht({ datapoint: t, _relativeIndex: s, seriesIndex: a }) {
481
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), ct.value = t.arcOfId, se.value = t.id, ue.value = a, ye.value = t.id, Le.value = {
498
+ function Jt({ datapoint: t, _relativeIndex: s, seriesIndex: l }) {
499
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), ht.value = t.arcOfId, ne.value = t.id, ue.value = l, ge.value = t.id, Le.value = {
482
500
  datapoint: t,
483
- seriesIndex: a,
484
- series: $.value,
501
+ seriesIndex: l,
502
+ series: L.value,
485
503
  config: e.value
486
504
  };
487
505
  const o = e.value.style.chart.tooltip.customFormat;
488
- if (_t(o) && Ll(
506
+ if (At(o) && Aa(
489
507
  () => o({
490
- seriesIndex: a,
508
+ seriesIndex: l,
491
509
  datapoint: t,
492
- series: $.value,
510
+ series: L.value,
493
511
  config: e.value
494
512
  })
495
513
  ))
496
- pe.value = o({
497
- seriesIndex: a,
514
+ ye.value = o({
515
+ seriesIndex: l,
498
516
  datapoint: t,
499
- series: $.value,
517
+ series: L.value,
500
518
  config: e.value
501
519
  });
502
520
  else {
503
- let l = "";
504
- if (e.value.style.chart.tooltip.showAllItemsAtIndex && x.value.length === 0) {
505
- const n = $.value.map((v) => v.series.find((f) => f.seriesIndex === a));
506
- n.forEach((v, f) => {
507
- if (!v) return "";
508
- l += `
509
- <div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${f < n.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
521
+ let a = "";
522
+ if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0) {
523
+ const u = L.value.map((c) => c.series.find((f) => f.seriesIndex === l));
524
+ u.forEach((c, f) => {
525
+ if (!c) return "";
526
+ a += `
527
+ <div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${f < u.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
510
528
  <div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
511
529
  <svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
512
- <circle cx="10" cy="10" r="10" fill="${v.color}"/>
530
+ <circle cx="10" cy="10" r="10" fill="${c.color}"/>
513
531
  </svg>
514
532
  <span>
515
- ${v.arcOf ?? ""} - ${v.name}
533
+ ${c.arcOf ?? ""} - ${c.name}
516
534
  </span>
517
535
  </div>
518
536
  <span>
519
- ${e.value.style.chart.tooltip.showValue ? `<b>${ae(
537
+ ${e.value.style.chart.tooltip.showValue ? `<b>${oe(
520
538
  e.value.style.chart.layout.labels.dataLabels.formatter,
521
539
  t.value,
522
- O({
540
+ F({
523
541
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
524
542
  v: t.value,
525
543
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
526
544
  r: e.value.style.chart.tooltip.roundingValue
527
545
  }),
528
- { datapoint: t, seriesIndex: a }
546
+ { datapoint: t, seriesIndex: l }
529
547
  )}
530
548
  </b>` : ""}
531
- ${e.value.style.chart.tooltip.showPercentage ? `(${O({
532
- v: v.proportion * 100,
549
+ ${e.value.style.chart.tooltip.showPercentage ? `(${F({
550
+ v: c.proportion * 100,
533
551
  s: "%",
534
552
  r: e.value.style.chart.tooltip.roundingPercentage
535
553
  })})` : ""}
@@ -538,146 +556,146 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
538
556
  `;
539
557
  });
540
558
  } else
541
- l += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, l += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (l += `<b>${ae(
559
+ a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, a += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (a += `<b>${oe(
542
560
  e.value.style.chart.layout.labels.dataLabels.formatter,
543
561
  t.value,
544
- O({
562
+ F({
545
563
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
546
564
  v: t.value,
547
565
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
548
566
  r: e.value.style.chart.tooltip.roundingValue
549
567
  }),
550
- { datapoint: t, seriesIndex: a }
551
- )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? l += `<span>(${O({
568
+ { datapoint: t, seriesIndex: l }
569
+ )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? a += `<span>(${F({
552
570
  v: t.proportion * 100,
553
571
  s: "%",
554
572
  r: e.value.style.chart.tooltip.roundingPercentage
555
- })})</span></div>` : l += `<b>${O({
573
+ })})</span></div>` : a += `<b>${F({
556
574
  v: t.proportion * 100,
557
575
  s: "%",
558
576
  r: e.value.style.chart.tooltip.roundingPercentage
559
577
  })}</b></div>`);
560
- pe.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${l}</div>`;
578
+ ye.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${a}</div>`;
561
579
  }
562
- fe.value = !0;
580
+ pe.value = !0;
563
581
  }
564
582
  function xe(t) {
565
583
  return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
566
584
  }
567
- function ht(t, s) {
585
+ function ft(t, s) {
568
586
  if (!e.value.useBlurOnHover)
569
587
  return "";
570
- if (e.value.style.chart.tooltip.showAllItemsAtIndex && x.value.length === 0)
588
+ if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0)
571
589
  return [null, void 0].includes(ue.value) || ue.value === s ? "" : `url(#blur_${p.value})`;
572
- if (!e.value.style.chart.tooltip.showAllItemsAtIndex || x.value.length)
573
- return [null, void 0].includes(se.value) || se.value === t.id ? "" : `url(#blur_${p.value})`;
590
+ if (!e.value.style.chart.tooltip.showAllItemsAtIndex || w.value.length)
591
+ return [null, void 0].includes(ne.value) || ne.value === t.id ? "" : `url(#blur_${p.value})`;
574
592
  }
575
- const ne = b(() => F.value.map((t, s) => {
576
- const a = t.series.filter(
577
- (l) => !x.value.includes(l.id)
578
- ), o = R.value ? a.map((l) => {
579
- const n = Y.value[s].series.findIndex(
580
- (v) => v.name === l.name
593
+ const re = $(() => O.value.map((t, s) => {
594
+ const l = t.series.filter(
595
+ (a) => !w.value.includes(a.id)
596
+ ), o = G.value ? l.map((a) => {
597
+ const u = X.value[s].series.findIndex(
598
+ (c) => c.name === a.name
581
599
  );
582
- return E(
583
- Y.value[s].series[n].values
584
- ).reduce((v, f) => v + f, 0);
585
- }).reduce((l, n) => l + n, 0) : a.map((l) => l.value).reduce((l, n) => l + n, 0);
586
- return t.series.map((l, n) => {
587
- const v = E(Y.value[s].series[n].values).reduce(
588
- (d, g) => d + g,
600
+ return R(
601
+ X.value[s].series[u].values
602
+ ).reduce((c, f) => c + f, 0);
603
+ }).reduce((a, u) => a + u, 0) : l.map((a) => a.value).reduce((a, u) => a + u, 0);
604
+ return t.series.map((a, u) => {
605
+ const c = R(X.value[s].series[u].values).reduce(
606
+ (d, m) => d + m,
589
607
  0
590
- ), f = R.value ? v : l.value, m = `${l.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? ae(
608
+ ), f = G.value ? c : a.value, k = `${a.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? oe(
591
609
  e.value.style.chart.layout.labels.dataLabels.formatter,
592
610
  f,
593
- O({
611
+ F({
594
612
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
595
613
  v: f,
596
614
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
597
615
  r: e.value.style.chart.legend.roundingValue
598
616
  }),
599
- { datapoint: l, seriesIndex: n }
600
- ) : ""}${e.value.style.chart.legend.showPercentage ? x.value.includes(l.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(f / o) ? "-" : O({
617
+ { datapoint: a, seriesIndex: u }
618
+ ) : ""}${e.value.style.chart.legend.showPercentage ? w.value.includes(a.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(f / o) ? "-" : F({
601
619
  v: f / o * 100,
602
620
  s: "%",
603
621
  r: e.value.style.chart.legend.roundingPercentage
604
622
  })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`;
605
623
  return {
606
- name: l.name,
607
- color: l.color,
624
+ name: a.name,
625
+ color: a.color,
608
626
  value: f,
609
- display: m,
610
- svgDisplay: `${l.arcOf ? `${l.arcOf} - ` : ""}${m}`,
627
+ display: k,
628
+ svgDisplay: `${a.arcOf ? `${a.arcOf} - ` : ""}${k}`,
611
629
  shape: "circle",
612
- arcOf: l.arcOf,
613
- id: l.id,
614
- seriesIndex: n,
630
+ arcOf: a.arcOf,
631
+ id: a.id,
632
+ seriesIndex: u,
615
633
  datasetIndex: s,
616
634
  total: o,
617
- opacity: x.value.includes(l.id) ? 0.5 : 1,
618
- segregate: () => Ce(l),
619
- isSegregated: x.value.includes(l.id)
635
+ opacity: w.value.includes(a.id) ? 0.5 : 1,
636
+ segregate: () => H(a),
637
+ isSegregated: w.value.includes(a.id)
620
638
  };
621
639
  });
622
- })), qt = b(() => ({
640
+ })), Kt = $(() => ({
623
641
  cy: "nested-donuts-legend",
624
642
  backgroundColor: e.value.style.chart.legend.backgroundColor,
625
643
  color: e.value.style.chart.legend.color,
626
644
  fontSize: e.value.style.chart.legend.fontSize,
627
645
  paddingBottom: 12,
628
646
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
629
- })), V = b(() => {
630
- const t = $.value.flatMap((a) => a.series.map((o) => ({
631
- name: `${a.name} - ${o.name}`,
647
+ })), M = $(() => {
648
+ const t = L.value.flatMap((l) => l.series.map((o) => ({
649
+ name: `${l.name} - ${o.name}`,
632
650
  color: o.color,
633
- total: a.total
634
- }))), s = $.value.flatMap((a) => a.series.map((o) => o.value));
651
+ total: l.total
652
+ }))), s = L.value.flatMap((l) => l.series.map((o) => o.value));
635
653
  return { head: t, body: s };
636
654
  });
637
655
  function _e(t = null) {
638
- Lt(() => {
639
- const s = V.value.head.map((l, n) => [
640
- [l.name],
641
- [V.value.body[n]],
656
+ xt(() => {
657
+ const s = M.value.head.map((a, u) => [
658
+ [a.name],
659
+ [M.value.body[u]],
642
660
  [
643
- isNaN(V.value.body[n] / l.total) ? "-" : V.value.body[n] / l.total * 100
661
+ isNaN(M.value.body[u] / a.total) ? "-" : M.value.body[u] / a.total * 100
644
662
  ]
645
- ]), a = [
663
+ ]), l = [
646
664
  [e.value.style.chart.title.text],
647
665
  [e.value.style.chart.title.subtitle.text],
648
666
  [[""], ["val"], ["%"]]
649
- ].concat(s), o = kl(a);
650
- t ? t(o) : Cl({
667
+ ].concat(s), o = xa(l);
668
+ t ? t(o) : _a({
651
669
  csvContent: o,
652
670
  title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
653
671
  });
654
672
  });
655
673
  }
656
- const re = b(() => {
674
+ const ie = $(() => {
657
675
  const t = [
658
676
  e.value.table.columnNames.series,
659
677
  e.value.table.columnNames.value,
660
678
  e.value.table.columnNames.percentage
661
- ], s = V.value.head.map((l, n) => {
662
- const v = O({
679
+ ], s = M.value.head.map((a, u) => {
680
+ const c = F({
663
681
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
664
- v: V.value.body[n],
682
+ v: M.value.body[u],
665
683
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
666
684
  r: e.value.table.td.roundingValue
667
685
  });
668
686
  return [
669
687
  {
670
- color: l.color,
671
- name: l.name
688
+ color: a.color,
689
+ name: a.name
672
690
  },
673
- v,
674
- isNaN(V.value.body[n] / l.total) ? "-" : O({
675
- v: V.value.body[n] / l.total * 100,
691
+ c,
692
+ isNaN(M.value.body[u] / a.total) ? "-" : F({
693
+ v: M.value.body[u] / a.total * 100,
676
694
  s: "%",
677
695
  r: e.value.table.td.roundingPercentage
678
696
  })
679
697
  ];
680
- }), a = {
698
+ }), l = {
681
699
  th: {
682
700
  backgroundColor: e.value.table.th.backgroundColor,
683
701
  color: e.value.table.th.color,
@@ -698,54 +716,54 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
698
716
  ],
699
717
  head: t,
700
718
  body: s,
701
- config: a
719
+ config: l
702
720
  };
703
721
  });
704
- function Qt() {
705
- return F.value;
706
- }
707
- function ft() {
708
- L.value.showTable = !L.value.showTable;
722
+ function Zt() {
723
+ return O.value;
709
724
  }
710
725
  function pt() {
711
- L.value.dataLabels.show = !L.value.dataLabels.show;
726
+ _.value.showTable = !_.value.showTable;
712
727
  }
713
728
  function yt() {
714
- L.value.showTooltip = !L.value.showTooltip;
729
+ _.value.dataLabels.show = !_.value.dataLabels.show;
715
730
  }
716
- const ie = c(!1);
731
+ function gt() {
732
+ _.value.showTooltip = !_.value.showTooltip;
733
+ }
734
+ const de = v(!1);
717
735
  function Ae() {
718
- ie.value = !ie.value;
736
+ de.value = !de.value;
719
737
  }
720
- async function Jt({ scale: t = 2 } = {}) {
738
+ async function jt({ scale: t = 2 } = {}) {
721
739
  if (!I.value) return;
722
- const { width: s, height: a } = I.value.getBoundingClientRect(), o = s / a, { imageUri: l, base64: n } = await Dl({ domElement: I.value, base64: !0, img: !0, scale: t });
740
+ const { width: s, height: l } = I.value.getBoundingClientRect(), o = s / l, { imageUri: a, base64: u } = await za({ domElement: I.value, base64: !0, img: !0, scale: t });
723
741
  return {
724
- imageUri: l,
725
- base64: n,
742
+ imageUri: a,
743
+ base64: u,
726
744
  title: e.value.style.chart.title.text,
727
745
  width: s,
728
- height: a,
746
+ height: l,
729
747
  aspectRatio: o
730
748
  };
731
749
  }
732
- const Te = c(null);
733
- function Kt() {
750
+ const Te = v(null);
751
+ function ea() {
734
752
  if (!Te.value) return;
735
- const { x: t, y: s, width: a, height: o } = Te.value.getBBox();
736
- ee.value && ee.value.setAttribute("viewBox", `${t} ${s} ${a + Math.min(0, t)} ${o + Math.min(0, s)}`);
753
+ const { x: t, y: s, width: l, height: o } = Te.value.getBBox();
754
+ te.value && te.value.setAttribute("viewBox", `${t} ${s} ${l + Math.min(0, t)} ${o + Math.min(0, s)}`);
737
755
  }
738
- const te = b(() => {
739
- const t = e.value.table.useDialog && !e.value.table.show, s = L.value.showTable;
756
+ const ae = $(() => {
757
+ const t = e.value.table.useDialog && !e.value.table.show, s = _.value.showTable;
740
758
  return {
741
- component: t ? Bt : Dt,
759
+ component: t ? Et : Pt,
742
760
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
743
761
  props: t ? {
744
762
  backgroundColor: e.value.table.th.backgroundColor,
745
763
  color: e.value.table.th.color,
746
764
  headerColor: e.value.table.th.color,
747
765
  headerBg: e.value.table.th.backgroundColor,
748
- isFullscreen: G.value,
766
+ isFullscreen: W.value,
749
767
  fullscreenParent: I.value,
750
768
  forcedWidth: Math.min(800, window.innerWidth * 0.8)
751
769
  } : {
@@ -765,72 +783,94 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
765
783
  }
766
784
  };
767
785
  });
768
- le(() => L.value.showTable, (t) => {
769
- e.value.table.show || (t && e.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
786
+ le(() => _.value.showTable, (t) => {
787
+ e.value.table.show || (t && e.value.table.useDialog && ee.value ? ee.value.open() : "close" in ee.value && ee.value.close());
770
788
  });
771
- function gt() {
772
- L.value.showTable = !1, be.value && be.value.setTableIconState(!1);
789
+ function bt() {
790
+ _.value.showTable = !1, me.value && me.value.setTableIconState(!1);
773
791
  }
774
- const Zt = b(() => e.value.style.chart.backgroundColor), jt = b(() => e.value.style.chart.legend), el = b(() => e.value.style.chart.title), tl = b(() => ne.value.flat().map((t) => ({
792
+ const ta = $(() => e.value.style.chart.backgroundColor), aa = $(() => e.value.style.chart.legend), la = $(() => e.value.style.chart.title), oa = $(() => re.value.flat().map((t) => ({
775
793
  ...t,
776
794
  name: t.svgDisplay
777
- }))), { exportSvg: ll, getSvg: al } = Fl({
778
- svg: ee,
779
- title: el,
780
- legend: jt,
781
- legendItems: tl,
782
- backgroundColor: Zt
795
+ }))), { exportSvg: sa, getSvg: na } = Ia({
796
+ svg: te,
797
+ title: la,
798
+ legend: aa,
799
+ legendItems: oa,
800
+ backgroundColor: ta
783
801
  });
784
- async function bt({ isCb: t }) {
802
+ async function mt({ isCb: t }) {
785
803
  if (t) {
786
- const { blob: s, url: a, text: o, dataUrl: l } = await al();
787
- e.value.userOptions.callbacks.svg({ blob: s, url: a, text: o, dataUrl: l });
804
+ const { blob: s, url: l, text: o, dataUrl: a } = await na();
805
+ e.value.userOptions.callbacks.svg({ blob: s, url: l, text: o, dataUrl: a });
788
806
  } else
789
- ll();
807
+ sa();
790
808
  }
791
- return Ot({
792
- autoSize: Kt,
793
- getData: Qt,
794
- getImage: Jt,
809
+ return Ft({
810
+ autoSize: ea,
811
+ getData: Zt,
812
+ getImage: jt,
795
813
  generatePdf: st,
796
814
  generateCsv: _e,
797
- generateImage: ut,
798
- generateSvg: bt,
799
- toggleTable: ft,
800
- toggleLabels: pt,
801
- toggleTooltip: yt,
815
+ generateImage: nt,
816
+ generateSvg: mt,
817
+ hideSeries: qt,
818
+ showSeries: Ht,
819
+ toggleTable: pt,
820
+ toggleLabels: yt,
821
+ toggleTooltip: gt,
802
822
  toggleAnnotator: Ae,
803
823
  toggleFullscreen: Je
804
- }), (t, s) => (u(), r("div", {
824
+ }), (t, s) => (n(), r("div", {
805
825
  ref_key: "nestedDonutsChart",
806
826
  ref: I,
807
- class: M(`vue-data-ui-component vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
808
- style: ce(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
827
+ class: E(`vue-data-ui-component vue-ui-nested-donuts ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
828
+ style: he(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
809
829
  id: `nested_donuts_${p.value}`,
810
830
  onMouseenter: s[2] || (s[2] = () => i(Ze)(!0)),
811
831
  onMouseleave: s[3] || (s[3] = () => i(Ze)(!1))
812
832
  }, [
813
- e.value.userOptions.buttons.annotator ? (u(), B(i(zt), {
833
+ e.value.userOptions.buttons.annotator ? (n(), U(i(Mt), {
814
834
  key: 0,
815
- svgRef: i(ee),
835
+ svgRef: i(te),
816
836
  backgroundColor: e.value.style.chart.backgroundColor,
817
837
  color: e.value.style.chart.color,
818
- active: ie.value,
838
+ active: de.value,
819
839
  onClose: Ae
820
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : k("", !0),
821
- Ut.value ? (u(), r("div", {
840
+ }, {
841
+ "annotator-action-close": g(() => [
842
+ b(t.$slots, "annotator-action-close", {}, void 0, !0)
843
+ ]),
844
+ "annotator-action-color": g(({ color: l }) => [
845
+ b(t.$slots, "annotator-action-color", N(D({ color: l })), void 0, !0)
846
+ ]),
847
+ "annotator-action-draw": g(({ mode: l }) => [
848
+ b(t.$slots, "annotator-action-draw", N(D({ mode: l })), void 0, !0)
849
+ ]),
850
+ "annotator-action-undo": g(({ disabled: l }) => [
851
+ b(t.$slots, "annotator-action-undo", N(D({ disabled: l })), void 0, !0)
852
+ ]),
853
+ "annotator-action-redo": g(({ disabled: l }) => [
854
+ b(t.$slots, "annotator-action-redo", N(D({ disabled: l })), void 0, !0)
855
+ ]),
856
+ "annotator-action-delete": g(({ disabled: l }) => [
857
+ b(t.$slots, "annotator-action-delete", N(D({ disabled: l })), void 0, !0)
858
+ ]),
859
+ _: 3
860
+ }, 8, ["svgRef", "backgroundColor", "color", "active"])) : x("", !0),
861
+ Gt.value ? (n(), r("div", {
822
862
  key: 1,
823
863
  ref_key: "noTitle",
824
864
  ref: We,
825
865
  class: "vue-data-ui-no-title-space",
826
866
  style: "height:36px; width: 100%;background:transparent"
827
- }, null, 512)) : k("", !0),
828
- e.value.style.chart.title.text ? (u(), r("div", {
867
+ }, null, 512)) : x("", !0),
868
+ e.value.style.chart.title.text ? (n(), r("div", {
829
869
  key: 2,
830
870
  ref_key: "chartTitle",
831
871
  ref: Ge
832
872
  }, [
833
- (u(), B(Pl, {
873
+ (n(), U(Ma, {
834
874
  key: `title_${Xe.value}`,
835
875
  config: {
836
876
  title: {
@@ -843,17 +883,17 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
843
883
  }
844
884
  }
845
885
  }, null, 8, ["config"]))
846
- ], 512)) : k("", !0),
886
+ ], 512)) : x("", !0),
847
887
  y("div", {
848
888
  id: `legend-top-${p.value}`
849
- }, null, 8, El),
850
- e.value.userOptions.show && he.value && (i(je) || i($e)) ? (u(), B(i(Vt), {
889
+ }, null, 8, Ga),
890
+ e.value.userOptions.show && fe.value && (i(je) || i(ke)) ? (n(), U(i(zt), {
851
891
  ref_key: "userOptionsRef",
852
- ref: be,
853
- key: `user_option_${Ue.value}`,
892
+ ref: me,
893
+ key: `user_option_${Re.value}`,
854
894
  backgroundColor: e.value.style.chart.backgroundColor,
855
895
  color: e.value.style.chart.color,
856
- isPrinting: i(at),
896
+ isPrinting: i(lt),
857
897
  isImaging: i(ot),
858
898
  uid: p.value,
859
899
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
@@ -864,119 +904,119 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
864
904
  hasTable: e.value.userOptions.buttons.table,
865
905
  hasLabel: e.value.userOptions.buttons.labels,
866
906
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
867
- isFullscreen: G.value,
868
- isTooltip: L.value.showTooltip,
907
+ isFullscreen: W.value,
908
+ isTooltip: _.value.showTooltip,
869
909
  titles: { ...e.value.userOptions.buttonTitles },
870
910
  chartElement: I.value,
871
911
  position: e.value.userOptions.position,
872
912
  hasAnnotator: e.value.userOptions.buttons.annotator,
873
- isAnnotation: ie.value,
913
+ isAnnotation: de.value,
874
914
  callbacks: e.value.userOptions.callbacks,
875
915
  printScale: e.value.userOptions.print.scale,
876
916
  tableDialog: e.value.table.useDialog,
877
917
  onToggleFullscreen: Je,
878
918
  onGeneratePdf: i(st),
879
919
  onGenerateCsv: _e,
880
- onGenerateImage: i(ut),
881
- onGenerateSvg: bt,
882
- onToggleTable: ft,
883
- onToggleLabels: pt,
884
- onToggleTooltip: yt,
920
+ onGenerateImage: i(nt),
921
+ onGenerateSvg: mt,
922
+ onToggleTable: pt,
923
+ onToggleLabels: yt,
924
+ onToggleTooltip: gt,
885
925
  onToggleAnnotator: Ae,
886
- style: ce({
887
- visibility: i(je) ? i($e) ? "visible" : "hidden" : "visible"
926
+ style: he({
927
+ visibility: i(je) ? i(ke) ? "visible" : "hidden" : "visible"
888
928
  })
889
- }, wt({ _: 2 }, [
929
+ }, $t({ _: 2 }, [
890
930
  t.$slots.menuIcon ? {
891
931
  name: "menuIcon",
892
- fn: C(({ isOpen: a, color: o }) => [
893
- _(t.$slots, "menuIcon", q(Q({ isOpen: a, color: o })), void 0, !0)
932
+ fn: g(({ isOpen: l, color: o }) => [
933
+ b(t.$slots, "menuIcon", N(D({ isOpen: l, color: o })), void 0, !0)
894
934
  ]),
895
935
  key: "0"
896
936
  } : void 0,
897
937
  t.$slots.optionTooltip ? {
898
938
  name: "optionTooltip",
899
- fn: C(() => [
900
- _(t.$slots, "optionTooltip", {}, void 0, !0)
939
+ fn: g(() => [
940
+ b(t.$slots, "optionTooltip", {}, void 0, !0)
901
941
  ]),
902
942
  key: "1"
903
943
  } : void 0,
904
944
  t.$slots.optionPdf ? {
905
945
  name: "optionPdf",
906
- fn: C(() => [
907
- _(t.$slots, "optionPdf", {}, void 0, !0)
946
+ fn: g(() => [
947
+ b(t.$slots, "optionPdf", {}, void 0, !0)
908
948
  ]),
909
949
  key: "2"
910
950
  } : void 0,
911
951
  t.$slots.optionCsv ? {
912
952
  name: "optionCsv",
913
- fn: C(() => [
914
- _(t.$slots, "optionCsv", {}, void 0, !0)
953
+ fn: g(() => [
954
+ b(t.$slots, "optionCsv", {}, void 0, !0)
915
955
  ]),
916
956
  key: "3"
917
957
  } : void 0,
918
958
  t.$slots.optionImg ? {
919
959
  name: "optionImg",
920
- fn: C(() => [
921
- _(t.$slots, "optionImg", {}, void 0, !0)
960
+ fn: g(() => [
961
+ b(t.$slots, "optionImg", {}, void 0, !0)
922
962
  ]),
923
963
  key: "4"
924
964
  } : void 0,
925
965
  t.$slots.optionSvg ? {
926
966
  name: "optionSvg",
927
- fn: C(() => [
928
- _(t.$slots, "optionSvg", {}, void 0, !0)
967
+ fn: g(() => [
968
+ b(t.$slots, "optionSvg", {}, void 0, !0)
929
969
  ]),
930
970
  key: "5"
931
971
  } : void 0,
932
972
  t.$slots.optionTable ? {
933
973
  name: "optionTable",
934
- fn: C(() => [
935
- _(t.$slots, "optionTable", {}, void 0, !0)
974
+ fn: g(() => [
975
+ b(t.$slots, "optionTable", {}, void 0, !0)
936
976
  ]),
937
977
  key: "6"
938
978
  } : void 0,
939
979
  t.$slots.optionLabels ? {
940
980
  name: "optionLabels",
941
- fn: C(() => [
942
- _(t.$slots, "optionLabels", {}, void 0, !0)
981
+ fn: g(() => [
982
+ b(t.$slots, "optionLabels", {}, void 0, !0)
943
983
  ]),
944
984
  key: "7"
945
985
  } : void 0,
946
986
  t.$slots.optionFullscreen ? {
947
987
  name: "optionFullscreen",
948
- fn: C(({ toggleFullscreen: a, isFullscreen: o }) => [
949
- _(t.$slots, "optionFullscreen", q(Q({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
988
+ fn: g(({ toggleFullscreen: l, isFullscreen: o }) => [
989
+ b(t.$slots, "optionFullscreen", N(D({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
950
990
  ]),
951
991
  key: "8"
952
992
  } : void 0,
953
993
  t.$slots.optionAnnotator ? {
954
994
  name: "optionAnnotator",
955
- fn: C(({ toggleAnnotator: a, isAnnotator: o }) => [
956
- _(t.$slots, "optionAnnotator", q(Q({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
995
+ fn: g(({ toggleAnnotator: l, isAnnotator: o }) => [
996
+ b(t.$slots, "optionAnnotator", N(D({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
957
997
  ]),
958
998
  key: "9"
959
999
  } : void 0
960
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : k("", !0),
961
- (u(), r("svg", {
1000
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : x("", !0),
1001
+ (n(), r("svg", {
962
1002
  ref_key: "svgRef",
963
- ref: ee,
964
- xmlns: i(wl),
965
- class: M({
966
- "vue-data-ui-fullscreen--on": G.value,
967
- "vue-data-ui-fulscreen--off": !G.value,
1003
+ ref: te,
1004
+ xmlns: i(Ca),
1005
+ class: E({
1006
+ "vue-data-ui-fullscreen--on": W.value,
1007
+ "vue-data-ui-fulscreen--off": !W.value,
968
1008
  "vue-data-ui-svg": !0
969
1009
  }),
970
1010
  viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
971
- style: ce(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${et.value.css}`)
1011
+ style: he(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${et.value.css}`)
972
1012
  }, [
973
1013
  y("g", {
974
1014
  ref_key: "G",
975
1015
  ref: Te,
976
1016
  class: "vue-data-ui-g"
977
1017
  }, [
978
- Ve(i(Mt)),
979
- t.$slots["chart-background"] ? (u(), r("foreignObject", {
1018
+ Ve(i(Bt)),
1019
+ t.$slots["chart-background"] ? (n(), r("foreignObject", {
980
1020
  key: 0,
981
1021
  x: 0,
982
1022
  y: 0,
@@ -986,10 +1026,10 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
986
1026
  pointerEvents: "none"
987
1027
  }
988
1028
  }, [
989
- _(t.$slots, "chart-background", {}, void 0, !0)
990
- ], 8, Ul)) : k("", !0),
1029
+ b(t.$slots, "chart-background", {}, void 0, !0)
1030
+ ], 8, Wa)) : x("", !0),
991
1031
  y("defs", null, [
992
- (u(!0), r(A, null, T(vt.value, (a, o) => (u(), r("radialGradient", {
1032
+ (n(!0), r(A, null, T(vt.value, (l, o) => (n(), r("radialGradient", {
993
1033
  id: `radial_${p.value}_${o}`
994
1034
  }, [
995
1035
  s[4] || (s[4] = y("stop", {
@@ -998,21 +1038,21 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
998
1038
  "stop-opacity": "0"
999
1039
  }, null, -1)),
1000
1040
  y("stop", {
1001
- offset: `${(1 - oe.value / dt.value[o]) * 100}%`,
1002
- "stop-color": i($l)("#FFFFFF", 0),
1041
+ offset: `${(1 - se.value / ct.value[o]) * 100}%`,
1042
+ "stop-color": i(La)("#FFFFFF", 0),
1003
1043
  "stop-opacity": "0"
1004
- }, null, 8, Yl),
1044
+ }, null, 8, Ha),
1005
1045
  y("stop", {
1006
- offset: `${(1 - oe.value / dt.value[o] / 2) * 100}%`,
1046
+ offset: `${(1 - se.value / ct.value[o] / 2) * 100}%`,
1007
1047
  "stop-color": "#FFFFFF",
1008
1048
  "stop-opacity": e.value.style.chart.gradientIntensity / 100
1009
- }, null, 8, Wl),
1049
+ }, null, 8, qa),
1010
1050
  s[5] || (s[5] = y("stop", {
1011
1051
  offset: "100%",
1012
1052
  "stop-color": "#FFFFFF",
1013
1053
  "stop-opacity": "0"
1014
1054
  }, null, -1))
1015
- ], 8, Gl))), 256))
1055
+ ], 8, Xa))), 256))
1016
1056
  ]),
1017
1057
  y("defs", null, [
1018
1058
  y("filter", {
@@ -1026,12 +1066,12 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
1026
1066
  in: "SourceGraphic",
1027
1067
  stdDeviation: 2,
1028
1068
  id: `blur_std_${p.value}`
1029
- }, null, 8, Hl),
1069
+ }, null, 8, Ja),
1030
1070
  s[6] || (s[6] = y("feColorMatrix", {
1031
1071
  type: "saturate",
1032
1072
  values: "0"
1033
1073
  }, null, -1))
1034
- ], 8, Xl),
1074
+ ], 8, Qa),
1035
1075
  y("filter", {
1036
1076
  id: `shadow_${p.value}`,
1037
1077
  "color-interpolation-filters": "sRGB"
@@ -1042,53 +1082,53 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
1042
1082
  stdDeviation: "10",
1043
1083
  "flood-opacity": "0.5",
1044
1084
  "flood-color": e.value.style.chart.layout.donut.shadowColor
1045
- }, null, 8, Ql)
1046
- ], 8, ql)
1085
+ }, null, 8, Za)
1086
+ ], 8, Ka)
1047
1087
  ]),
1048
1088
  y("defs", null, [
1049
- (u(!0), r(A, null, T(H.value, (a, o) => (u(), r("path", {
1089
+ (n(!0), r(A, null, T(J.value, (l, o) => (n(), r("path", {
1050
1090
  key: `path-full-${o}`,
1051
1091
  id: `path-full-${o}-${p.value}`,
1052
- d: a.fullCirclePath,
1092
+ d: l.fullCirclePath,
1053
1093
  fill: "none"
1054
- }, null, 8, Jl))), 128))
1094
+ }, null, 8, ja))), 128))
1055
1095
  ]),
1056
- (u(!0), r(A, null, T(H.value, (a, o) => (u(), r("g", null, [
1057
- a.hasData ? (u(!0), r(A, { key: 0 }, T(a.donut.filter((l) => !l.ghost), (l, n) => (u(), r("g", null, [
1096
+ (n(!0), r(A, null, T(J.value, (l, o) => (n(), r("g", null, [
1097
+ l.hasData ? (n(!0), r(A, { key: 0 }, T(l.donut.filter((a) => !a.ghost), (a, u) => (n(), r("g", null, [
1058
1098
  y("path", {
1059
1099
  class: "vue-ui-donut-arc-path",
1060
- d: l.arcSlice,
1061
- fill: l.color,
1100
+ d: a.arcSlice,
1101
+ fill: a.color,
1062
1102
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1063
1103
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
1064
- filter: ht(l, n)
1065
- }, null, 8, Kl)
1066
- ]))), 256)) : (u(!0), r(A, { key: 1 }, T(a.skeleton, (l, n) => (u(), r("g", null, [
1104
+ filter: ft(a, u)
1105
+ }, null, 8, el)
1106
+ ]))), 256)) : (n(!0), r(A, { key: 1 }, T(l.skeleton, (a, u) => (n(), r("g", null, [
1067
1107
  y("path", {
1068
1108
  class: "vue-ui-donut-arc-path",
1069
- d: l.arcSlice,
1070
- fill: l.color,
1109
+ d: a.arcSlice,
1110
+ fill: a.color,
1071
1111
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1072
1112
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
1073
- }, null, 8, Zl)
1113
+ }, null, 8, tl)
1074
1114
  ]))), 256))
1075
1115
  ]))), 256)),
1076
- e.value.style.chart.useGradient ? (u(), r("g", jl, [
1077
- (u(!0), r(A, null, T(vt.value, (a, o) => (u(), r("g", null, [
1116
+ e.value.style.chart.useGradient ? (n(), r("g", al, [
1117
+ (n(!0), r(A, null, T(vt.value, (l, o) => (n(), r("g", null, [
1078
1118
  y("path", {
1079
- d: a.donut.arcSlice,
1119
+ d: l.donut.arcSlice,
1080
1120
  fill: `url(#radial_${p.value}_${o})`,
1081
1121
  stroke: "transparent",
1082
1122
  "stroke-width": "0"
1083
- }, null, 8, ea)
1123
+ }, null, 8, ll)
1084
1124
  ]))), 256))
1085
- ])) : k("", !0),
1086
- e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), r("g", ta, [
1087
- e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (u(!0), r(A, { key: 0 }, T(H.value, (a, o) => (u(), r("g", null, [
1088
- (u(!0), r(A, null, T(a.donut, (l, n) => (u(), r("g", null, [
1089
- n === 0 && h.value.width && h.value.height ? (u(), r("text", {
1125
+ ])) : x("", !0),
1126
+ e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), r("g", ol, [
1127
+ e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (n(!0), r(A, { key: 0 }, T(J.value, (l, o) => (n(), r("g", null, [
1128
+ (n(!0), r(A, null, T(l.donut, (a, u) => (n(), r("g", null, [
1129
+ u === 0 && h.value.width && h.value.height ? (n(), r("text", {
1090
1130
  key: 0,
1091
- class: M({ animated: e.value.useCssAnimation }),
1131
+ class: E({ animated: e.value.useCssAnimation }),
1092
1132
  "text-anchor": "middle",
1093
1133
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1094
1134
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
@@ -1101,148 +1141,148 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
1101
1141
  "text-anchor": "middle",
1102
1142
  method: "align",
1103
1143
  spacing: "auto"
1104
- }, D(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(xt)({
1105
- source: a.name,
1144
+ }, V(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(_t)({
1145
+ source: l.name,
1106
1146
  length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1107
- }) : a.name), 9, aa)
1108
- ], 10, la)) : k("", !0)
1147
+ }) : l.name), 9, nl)
1148
+ ], 10, sl)) : x("", !0)
1109
1149
  ]))), 256))
1110
- ]))), 256)) : (u(!0), r(A, { key: 1 }, T(H.value, (a, o) => (u(), r("g", null, [
1111
- (u(!0), r(A, null, T(a.donut, (l, n) => (u(), r("g", null, [
1112
- n === 0 && h.value.width && h.value.height ? (u(), r("text", {
1150
+ ]))), 256)) : (n(!0), r(A, { key: 1 }, T(J.value, (l, o) => (n(), r("g", null, [
1151
+ (n(!0), r(A, null, T(l.donut, (a, u) => (n(), r("g", null, [
1152
+ u === 0 && h.value.width && h.value.height ? (n(), r("text", {
1113
1153
  key: 0,
1114
- class: M({ animated: e.value.useCssAnimation }),
1154
+ class: E({ animated: e.value.useCssAnimation }),
1115
1155
  x: h.value.width / 2,
1116
- y: l.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
1156
+ y: a.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
1117
1157
  "text-anchor": "middle",
1118
1158
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1119
1159
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
1120
1160
  fill: e.value.style.chart.layout.labels.dataLabels.color
1121
- }, D(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(xt)({
1122
- source: a.name,
1161
+ }, V(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(_t)({
1162
+ source: l.name,
1123
1163
  length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1124
- }) : a.name), 11, oa)) : k("", !0)
1164
+ }) : l.name), 11, ul)) : x("", !0)
1125
1165
  ]))), 256))
1126
1166
  ]))), 256))
1127
- ])) : k("", !0),
1128
- e.value.style.chart.layout.labels.dataLabels.show ? (u(), r("g", sa, [
1129
- (u(!0), r(A, null, T(H.value, (a, o) => (u(), r("g", null, [
1130
- (u(!0), r(A, null, T(a.donut.filter((l) => !l.ghost), (l, n) => (u(), r("g", {
1131
- filter: ht(l, n)
1167
+ ])) : x("", !0),
1168
+ e.value.style.chart.layout.labels.dataLabels.show ? (n(), r("g", rl, [
1169
+ (n(!0), r(A, null, T(J.value, (l, o) => (n(), r("g", null, [
1170
+ (n(!0), r(A, null, T(l.donut.filter((a) => !a.ghost), (a, u) => (n(), r("g", {
1171
+ filter: ft(a, u)
1132
1172
  }, [
1133
- $t(y("text", {
1134
- class: M({ animated: e.value.useCssAnimation }),
1135
- opacity: xe(l) ? 1 : 0,
1136
- "text-anchor": i(K)(l, !0).anchor,
1137
- x: i(K)(
1138
- l,
1173
+ kt(y("text", {
1174
+ class: E({ animated: e.value.useCssAnimation }),
1175
+ opacity: xe(a) ? 1 : 0,
1176
+ "text-anchor": i(Z)(a, !0).anchor,
1177
+ x: i(Z)(
1178
+ a,
1139
1179
  !1,
1140
1180
  e.value.style.chart.layout.labels.dataLabels.offsetX
1141
1181
  ).x || 0,
1142
1182
  y: i(Ee)(
1143
- l,
1183
+ a,
1144
1184
  e.value.style.chart.layout.labels.dataLabels.offsetY,
1145
1185
  e.value.style.chart.layout.labels.dataLabels.offsetY
1146
1186
  ),
1147
- fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
1187
+ fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? a.color : e.value.style.chart.layout.labels.dataLabels.color,
1148
1188
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1149
1189
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
1150
- }, D(i(O)({
1151
- v: l.proportion * 100,
1190
+ }, V(i(F)({
1191
+ v: a.proportion * 100,
1152
1192
  s: "%",
1153
1193
  r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
1154
- })), 11, na), [
1194
+ })), 11, dl), [
1155
1195
  [
1156
- kt,
1157
- L.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
1196
+ Ct,
1197
+ _.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
1158
1198
  ]
1159
1199
  ]),
1160
- $t(y("text", {
1161
- class: M({ animated: e.value.useCssAnimation }),
1162
- opacity: xe(l) ? 1 : 0,
1163
- "text-anchor": i(K)(l, !0).anchor,
1164
- x: i(K)(
1165
- l,
1200
+ kt(y("text", {
1201
+ class: E({ animated: e.value.useCssAnimation }),
1202
+ opacity: xe(a) ? 1 : 0,
1203
+ "text-anchor": i(Z)(a, !0).anchor,
1204
+ x: i(Z)(
1205
+ a,
1166
1206
  !1,
1167
1207
  e.value.style.chart.layout.labels.dataLabels.offsetX
1168
1208
  ).x || 0,
1169
1209
  y: i(Ee)(
1170
- l,
1210
+ a,
1171
1211
  e.value.style.chart.layout.labels.dataLabels.offsetY,
1172
1212
  e.value.style.chart.layout.labels.dataLabels.offsetY
1173
1213
  ) + e.value.style.chart.layout.labels.dataLabels.fontSize,
1174
- fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
1214
+ fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? a.color : e.value.style.chart.layout.labels.dataLabels.color,
1175
1215
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1176
1216
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
1177
- }, " (" + D(i(ae)(
1217
+ }, " (" + V(i(oe)(
1178
1218
  e.value.style.chart.layout.labels.dataLabels.formatter,
1179
- l.value,
1180
- i(O)({
1219
+ a.value,
1220
+ i(F)({
1181
1221
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1182
- v: l.value,
1222
+ v: a.value,
1183
1223
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1184
1224
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
1185
1225
  }),
1186
- { datapoint: l, seriesIndex: o, datapointIndex: n }
1187
- )) + ") ", 11, ra), [
1226
+ { datapoint: a, seriesIndex: o, datapointIndex: u }
1227
+ )) + ") ", 11, cl), [
1188
1228
  [
1189
- kt,
1190
- L.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
1229
+ Ct,
1230
+ _.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
1191
1231
  ]
1192
1232
  ]),
1193
- xe(l) && L.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), r("text", {
1233
+ xe(a) && _.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), r("text", {
1194
1234
  key: 0,
1195
- class: M({ animated: e.value.useCssAnimation }),
1196
- "text-anchor": i(K)(l, !0).anchor,
1197
- x: i(K)(
1198
- l,
1235
+ class: E({ animated: e.value.useCssAnimation }),
1236
+ "text-anchor": i(Z)(a, !0).anchor,
1237
+ x: i(Z)(
1238
+ a,
1199
1239
  !1,
1200
1240
  e.value.style.chart.layout.labels.dataLabels.offsetX
1201
1241
  ).x || 0,
1202
1242
  y: i(Ee)(
1203
- l,
1243
+ a,
1204
1244
  e.value.style.chart.layout.labels.dataLabels.offsetY,
1205
1245
  e.value.style.chart.layout.labels.dataLabels.offsetY
1206
1246
  ),
1207
- fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
1247
+ fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? a.color : e.value.style.chart.layout.labels.dataLabels.color,
1208
1248
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1209
1249
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
1210
- }, D(i(ae)(
1250
+ }, V(i(oe)(
1211
1251
  e.value.style.chart.layout.labels.dataLabels.formatter,
1212
- l.value,
1213
- i(O)({
1252
+ a.value,
1253
+ i(F)({
1214
1254
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1215
- v: l.value,
1255
+ v: a.value,
1216
1256
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1217
1257
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
1218
1258
  }),
1219
- { datapoint: l, seriesIndex: o, datapointIndex: n }
1220
- )), 11, ia)) : k("", !0)
1221
- ], 8, ua))), 256))
1259
+ { datapoint: a, seriesIndex: o, datapointIndex: u }
1260
+ )), 11, vl)) : x("", !0)
1261
+ ], 8, il))), 256))
1222
1262
  ]))), 256))
1223
- ])) : k("", !0),
1224
- (u(!0), r(A, null, T(H.value, (a, o) => (u(), r("g", null, [
1225
- (u(!0), r(A, null, T(a.donut, (l, n) => (u(), r("g", null, [
1263
+ ])) : x("", !0),
1264
+ (n(!0), r(A, null, T(J.value, (l, o) => (n(), r("g", null, [
1265
+ (n(!0), r(A, null, T(l.donut, (a, u) => (n(), r("g", null, [
1226
1266
  y("path", {
1227
- d: l.arcSlice,
1228
- fill: ye.value === l.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
1229
- onMouseenter: (v) => Ht({
1230
- datapoint: l,
1231
- seriesIndex: l.seriesIndex
1267
+ d: a.arcSlice,
1268
+ fill: ge.value === a.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
1269
+ onMouseenter: (c) => Jt({
1270
+ datapoint: a,
1271
+ seriesIndex: a.seriesIndex
1232
1272
  }),
1233
- onClick: (v) => Yt({ datapoint: l, index: n, seriesIndex: l.seriesIndex }),
1234
- onMouseleave: (v) => Xt({ datapoint: l, seriesIndex: l.seriesIndex })
1235
- }, null, 40, da)
1273
+ onClick: (c) => Wt({ datapoint: a, index: u, seriesIndex: a.seriesIndex }),
1274
+ onMouseleave: (c) => Qt({ datapoint: a, seriesIndex: a.seriesIndex })
1275
+ }, null, 40, hl)
1236
1276
  ]))), 256))
1237
1277
  ]))), 256)),
1238
- _(t.$slots, "svg", { svg: h.value }, void 0, !0)
1278
+ b(t.$slots, "svg", { svg: h.value }, void 0, !0)
1239
1279
  ], 512)
1240
- ], 14, Rl)),
1241
- t.$slots.watermark ? (u(), r("div", va, [
1242
- _(t.$slots, "watermark", q(Q({ isPrinting: i(at) || i(ot) })), void 0, !0)
1243
- ])) : k("", !0),
1244
- Ve(i(It), {
1245
- show: L.value.showTooltip && fe.value,
1280
+ ], 14, Ya)),
1281
+ t.$slots.watermark ? (n(), r("div", fl, [
1282
+ b(t.$slots, "watermark", N(D({ isPrinting: i(lt) || i(ot) })), void 0, !0)
1283
+ ])) : x("", !0),
1284
+ Ve(i(Dt), {
1285
+ show: _.value.showTooltip && pe.value,
1246
1286
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1247
1287
  color: e.value.style.chart.tooltip.color,
1248
1288
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -1253,93 +1293,93 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
1253
1293
  position: e.value.style.chart.tooltip.position,
1254
1294
  offsetY: e.value.style.chart.tooltip.offsetY,
1255
1295
  parent: I.value,
1256
- content: pe.value,
1257
- isFullscreen: G.value,
1258
- isCustom: i(_t)(e.value.style.chart.tooltip.customFormat),
1296
+ content: ye.value,
1297
+ isFullscreen: W.value,
1298
+ isCustom: i(At)(e.value.style.chart.tooltip.customFormat),
1259
1299
  smooth: e.value.style.chart.tooltip.smooth,
1260
1300
  backdropFilter: e.value.style.chart.tooltip.backdropFilter,
1261
1301
  smoothForce: e.value.style.chart.tooltip.smoothForce,
1262
1302
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
1263
1303
  }, {
1264
- "tooltip-before": C(() => [
1265
- _(t.$slots, "tooltip-before", q(Q({ ...Le.value })), void 0, !0)
1304
+ "tooltip-before": g(() => [
1305
+ b(t.$slots, "tooltip-before", N(D({ ...Le.value })), void 0, !0)
1266
1306
  ]),
1267
- "tooltip-after": C(() => [
1268
- _(t.$slots, "tooltip-after", q(Q({ ...Le.value })), void 0, !0)
1307
+ "tooltip-after": g(() => [
1308
+ b(t.$slots, "tooltip-after", N(D({ ...Le.value })), void 0, !0)
1269
1309
  ]),
1270
1310
  _: 3
1271
1311
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
1272
1312
  y("div", {
1273
1313
  id: `legend-bottom-${p.value}`
1274
- }, null, 8, ca),
1275
- Qe.value ? (u(), B(vl, {
1314
+ }, null, 8, pl),
1315
+ Qe.value ? (n(), U(fa, {
1276
1316
  key: 5,
1277
1317
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${p.value}` : `#legend-bottom-${p.value}`
1278
1318
  }, [
1279
- e.value.style.chart.legend.show ? (u(), r("div", {
1319
+ e.value.style.chart.legend.show ? (n(), r("div", {
1280
1320
  key: 0,
1281
1321
  ref_key: "chartLegend",
1282
- ref: ge,
1283
- class: M({ "vue-ui-nested-donuts-legend": ne.value.length > 1 })
1322
+ ref: be,
1323
+ class: E({ "vue-ui-nested-donuts-legend": re.value.length > 1 })
1284
1324
  }, [
1285
- (u(!0), r(A, null, T(ne.value, (a, o) => (u(), B(zl, {
1325
+ (n(!0), r(A, null, T(re.value, (l, o) => (n(), U(Ea, {
1286
1326
  key: `legend_${o}_${qe.value}`,
1287
- legendSet: a,
1288
- config: qt.value,
1289
- onClickMarker: s[0] || (s[0] = ({ legend: l }) => Ce(l))
1327
+ legendSet: l,
1328
+ config: Kt.value,
1329
+ onClickMarker: s[0] || (s[0] = ({ legend: a }) => H(a))
1290
1330
  }, {
1291
- legendTitle: C(({ titleSet: l }) => [
1292
- l[0] && l[0].arcOf ? (u(), r("div", ha, D(l[0].arcOf), 1)) : k("", !0)
1331
+ legendTitle: g(({ titleSet: a }) => [
1332
+ a[0] && a[0].arcOf ? (n(), r("div", yl, V(a[0].arcOf), 1)) : x("", !0)
1293
1333
  ]),
1294
- item: C(({ legend: l, index: n }) => [
1334
+ item: g(({ legend: a, index: u }) => [
1295
1335
  y("div", {
1296
- onClick: (v) => Ce(l),
1297
- style: ce(`opacity:${x.value.includes(l.id) ? 0.5 : 1}`)
1298
- }, D(l.display), 13, fa)
1336
+ onClick: (c) => H(a),
1337
+ style: he(`opacity:${w.value.includes(a.id) ? 0.5 : 1}`)
1338
+ }, V(a.display), 13, gl)
1299
1339
  ]),
1300
1340
  _: 1
1301
1341
  }, 8, ["legendSet", "config"]))), 128))
1302
- ], 2)) : k("", !0)
1303
- ], 8, ["to"])) : k("", !0),
1304
- e.value.style.chart.legend.show ? k("", !0) : (u(), r("div", {
1342
+ ], 2)) : x("", !0)
1343
+ ], 8, ["to"])) : x("", !0),
1344
+ e.value.style.chart.legend.show ? x("", !0) : (n(), r("div", {
1305
1345
  key: 6,
1306
1346
  ref_key: "chartLegend",
1307
- ref: ge
1347
+ ref: be
1308
1348
  }, [
1309
- _(t.$slots, "legend", { legend: ne.value }, void 0, !0)
1349
+ b(t.$slots, "legend", { legend: re.value }, void 0, !0)
1310
1350
  ], 512)),
1311
- t.$slots.source ? (u(), r("div", {
1351
+ t.$slots.source ? (n(), r("div", {
1312
1352
  key: 7,
1313
1353
  ref_key: "source",
1314
1354
  ref: Ye,
1315
1355
  dir: "auto"
1316
1356
  }, [
1317
- _(t.$slots, "source", {}, void 0, !0)
1318
- ], 512)) : k("", !0),
1319
- he.value && e.value.userOptions.buttons.table ? (u(), B(cl(te.value.component), hl({ key: 8 }, te.value.props, {
1357
+ b(t.$slots, "source", {}, void 0, !0)
1358
+ ], 512)) : x("", !0),
1359
+ fe.value && e.value.userOptions.buttons.table ? (n(), U(pa(ae.value.component), ya({ key: 8 }, ae.value.props, {
1320
1360
  ref_key: "tableUnit",
1321
- ref: j,
1322
- onClose: gt
1323
- }), wt({
1324
- content: C(() => [
1325
- (u(), B(i(Pt), {
1361
+ ref: ee,
1362
+ onClose: bt
1363
+ }), $t({
1364
+ content: g(() => [
1365
+ (n(), U(i(Vt), {
1326
1366
  key: `table_${He.value}`,
1327
- colNames: re.value.colNames,
1328
- head: re.value.head,
1329
- body: re.value.body,
1330
- config: re.value.config,
1331
- title: e.value.table.useDialog ? "" : te.value.title,
1367
+ colNames: ie.value.colNames,
1368
+ head: ie.value.head,
1369
+ body: ie.value.body,
1370
+ config: ie.value.config,
1371
+ title: e.value.table.useDialog ? "" : ae.value.title,
1332
1372
  withCloseButton: !e.value.table.useDialog,
1333
- onClose: gt
1373
+ onClose: bt
1334
1374
  }, {
1335
- th: C(({ th: a }) => [
1375
+ th: g(({ th: l }) => [
1336
1376
  y("div", {
1337
- innerHTML: a,
1377
+ innerHTML: l,
1338
1378
  style: { display: "flex", "align-items": "center" }
1339
- }, null, 8, pa)
1379
+ }, null, 8, bl)
1340
1380
  ]),
1341
- td: C(({ td: a }) => [
1342
- Ct(D(a.name || a), 1)
1381
+ td: g(({ td: l }) => [
1382
+ Lt(V(l.name || l), 1)
1343
1383
  ]),
1344
1384
  _: 1
1345
1385
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -1348,32 +1388,32 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
1348
1388
  }, [
1349
1389
  e.value.table.useDialog ? {
1350
1390
  name: "title",
1351
- fn: C(() => [
1352
- Ct(D(te.value.title), 1)
1391
+ fn: g(() => [
1392
+ Lt(V(ae.value.title), 1)
1353
1393
  ]),
1354
1394
  key: "0"
1355
1395
  } : void 0,
1356
1396
  e.value.table.useDialog ? {
1357
1397
  name: "actions",
1358
- fn: C(() => [
1398
+ fn: g(() => [
1359
1399
  y("button", {
1360
1400
  tabindex: "0",
1361
1401
  class: "vue-ui-user-options-button",
1362
- onClick: s[1] || (s[1] = (a) => _e(e.value.userOptions.callbacks.csv))
1402
+ onClick: s[1] || (s[1] = (l) => _e(e.value.userOptions.callbacks.csv))
1363
1403
  }, [
1364
- Ve(i(Nt), {
1404
+ Ve(i(It), {
1365
1405
  name: "excel",
1366
- stroke: te.value.props.color
1406
+ stroke: ae.value.props.color
1367
1407
  }, null, 8, ["stroke"])
1368
1408
  ])
1369
1409
  ]),
1370
1410
  key: "1"
1371
1411
  } : void 0
1372
- ]), 1040)) : k("", !0),
1373
- i(me) ? (u(), B(Sl, { key: 9 })) : k("", !0)
1374
- ], 46, Bl));
1412
+ ]), 1040)) : x("", !0),
1413
+ i(we) ? (n(), U(Na, { key: 9 })) : x("", !0)
1414
+ ], 46, Ra));
1375
1415
  }
1376
- }, Fa = /* @__PURE__ */ Ml(ya, [["__scopeId", "data-v-4462e610"]]);
1416
+ }, Il = /* @__PURE__ */ Ua(ml, [["__scopeId", "data-v-92467a66"]]);
1377
1417
  export {
1378
- Fa as default
1418
+ Il as default
1379
1419
  };