vue-data-ui 3.5.0 → 3.5.2

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 (144) hide show
  1. package/README.md +26 -0
  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-Cyx_s25h.js → PackageVersion-Y7t79Jtq.js} +1 -1
  5. package/dist/PenAndPaper-SZQIAgkg.js +388 -0
  6. package/dist/{Title-l36lOBMx.js → Title-BzH_LEA3.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-CReNavA0.js} +23 -9
  73. package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-BRaq4hRp.js} +63 -63
  74. package/dist/vue-data-ui.js +64 -64
  75. package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-BB4ii8Nt.js} +454 -434
  76. package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-BmFTVF1a.js} +1 -1
  77. package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-8bUepd28.js} +180 -160
  78. package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-CcpaXBNK.js} +3 -3
  79. package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BvT4scFv.js} +190 -170
  80. package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-CMP7UL6z.js} +201 -181
  81. package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-CzOcKsDj.js} +2 -2
  82. package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-S787oASt.js} +375 -355
  83. package/dist/vue-ui-chord-Dl9Y4mcz.js +1153 -0
  84. package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-CU09BzOV.js} +289 -269
  85. package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-C3yD_TUr.js} +1 -1
  86. package/dist/vue-ui-dashboard-BfEcVRxQ.js +432 -0
  87. package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-pRh179Gg.js} +1 -1
  88. package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-B_tEm4dT.js} +462 -442
  89. package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-DiGhMwMO.js} +293 -273
  90. package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-BlF3CLbN.js} +210 -190
  91. package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-BQi5L8mJ.js} +339 -319
  92. package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-CM_6Sare.js} +218 -198
  93. package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-BnZA62Li.js} +201 -181
  94. package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-DAk72bez.js} +311 -291
  95. package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BQzQlUJ8.js} +2 -2
  96. package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-C9MhHWpp.js} +303 -283
  97. package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-BYQh3E8U.js} +229 -209
  98. package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-jcrPjW4C.js} +2 -2
  99. package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-DTM98mRN.js} +1 -1
  100. package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-Bd1OXvl3.js} +156 -136
  101. package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-DuoiTsYn.js} +266 -246
  102. package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-BTswQFjz.js} +506 -486
  103. package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-D-1U2Qgl.js} +220 -200
  104. package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-D-7VFHas.js} +235 -215
  105. package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-CeM23s0z.js} +463 -443
  106. package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-C0RMQzjC.js} +288 -268
  107. package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-BSfxyur3.js} +331 -311
  108. package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-tj97undO.js} +1 -1
  109. package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-C7uV2mIj.js} +228 -208
  110. package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CYMfTlwI.js} +242 -222
  111. package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-C96aj57d.js} +189 -169
  112. package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CtvOXUnx.js} +275 -255
  113. package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-87TORm6s.js} +2 -2
  114. package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-B74geHT3.js} +1 -1
  115. package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-6_Ibziyv.js} +2 -2
  116. package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-BDCocMLI.js} +2 -2
  117. package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-CQ4Zk9-f.js} +2 -2
  118. package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-BlTV9wfn.js} +143 -140
  119. package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-DWESyiqL.js} +2 -2
  120. package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-DK_7X8mL.js} +2 -2
  121. package/dist/vue-ui-stackbar-BWuw8ff4.js +1827 -0
  122. package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-C1N2n39d.js} +245 -225
  123. package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-CcuoPHgI.js} +3 -3
  124. package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-C9EMEM3Z.js} +1 -1
  125. package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-BAxmZRff.js} +2 -2
  126. package/dist/vue-ui-thermometer-CDrM-WFq.js +584 -0
  127. package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BVsUQJz_.js} +3 -3
  128. package/dist/vue-ui-tiremarks-BQH2pNkG.js +450 -0
  129. package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-6WLoCHsH.js} +453 -433
  130. package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-B3gfBqD_.js} +323 -303
  131. package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-Bhlqo4xM.js} +219 -199
  132. package/dist/vue-ui-wheel-CqHw1WuW.js +663 -0
  133. package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-CKuWZGLv.js} +248 -228
  134. package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-C8KVyDim.js} +287 -267
  135. package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-Cz2qIEfi.js} +389 -369
  136. package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-y4h7gEFp.js} +4 -4
  137. package/package.json +4 -4
  138. package/dist/PenAndPaper-DSvu9dwa.js +0 -373
  139. package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
  140. package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
  141. package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
  142. package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
  143. package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
  144. package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
@@ -1,24 +1,24 @@
1
- import { defineAsyncComponent as z, computed as m, ref as c, toRefs as vl, watch as ae, onMounted as cl, shallowRef as wt, onBeforeUnmount as hl, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as he, normalizeClass as M, createBlock as B, createCommentVNode as C, createElementVNode as y, createVNode as Ve, createSlots as $t, withCtx as L, renderSlot as _, normalizeProps as Q, guardReactiveProps as J, Fragment as A, renderList as T, toDisplayString as I, withDirectives as kt, vShow as Ct, Teleport as fl, resolveDynamicComponent as pl, mergeProps as yl, createTextVNode as Lt, nextTick as xt } from "vue";
2
- import { c as gl, t as bl, b as ml, p as ze, O as Me, o as wl, f as K, e as $l, a1 as E, h as kl, T as Be, a as oe, d as F, X as Cl, s as Ll, I as _t, W as Ee, Y as Z, G as At, P as xl, Q as _l, H as Al, a0 as Tt, x as Ue } from "./lib-C_mNZmhD.js";
3
- import { t as Tl, u as Sl } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ol, a as St } from "./useNestedProp-BjZe1Y85.js";
5
- import { u as Fl, B as Nl } from "./BaseScanner-BgWxam9d.js";
6
- import { u as Dl } from "./usePrinter-DTzqpYKF.js";
7
- import { u as Il } from "./useSvgExport-DrjCWun4.js";
8
- import { u as Pl } from "./useUserOptionState-BIvW1Kz7.js";
9
- import { u as Vl } from "./useChartAccessibility-9icAAmYg.js";
10
- import zl from "./img-BecE5qXd.js";
11
- import Ml from "./Title-l36lOBMx.js";
12
- import { t as Bl } from "./themes-AUNCOb2G.js";
13
- import El from "./Legend-G6GMcdAc.js";
14
- import { _ as Ul } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "height"], Xl = ["id"], Hl = ["offset", "stop-color"], ql = ["offset", "stop-opacity"], Ql = ["id"], Jl = ["id"], Kl = ["id"], Zl = ["flood-color"], jl = ["id", "d"], ea = ["d", "fill", "stroke", "stroke-width", "filter"], ta = ["d", "fill", "stroke", "stroke-width"], la = { key: 1 }, aa = ["d", "fill"], oa = { key: 2 }, sa = ["font-size", "font-weight", "fill", "dy"], ua = ["href"], na = ["x", "y", "font-size", "font-weight", "fill"], ra = { key: 3 }, ia = ["filter"], da = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], va = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], ca = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], ha = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], fa = {
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-CReNavA0.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-BzH_LEA3.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
- }, pa = ["id"], ya = {
18
+ }, pl = ["id"], yl = {
19
19
  key: 0,
20
20
  class: "vue-ui-nested-donuts-legend-title"
21
- }, ga = ["onClick"], ba = ["innerHTML"], ma = {
21
+ }, gl = ["onClick"], bl = ["innerHTML"], ml = {
22
22
  __name: "vue-ui-nested-donuts",
23
23
  props: {
24
24
  config: {
@@ -36,18 +36,18 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
36
36
  },
37
37
  emits: ["selectLegend", "selectDatapoint"],
38
38
  setup(Ot, { expose: Ft, emit: Nt }) {
39
- const Dt = z(() => import("./Tooltip-oWCO1HKy.js")), It = z(() => import("./BaseIcon-BmMbm4d0.js")), Pt = z(() => import("./vue-ui-accordion-CZ0thhxa.js")), Vt = z(() => import("./DataTable-BT7VF2ua.js")), zt = z(() => import("./UserOptions-CGnQt6Fd.js")), Mt = z(() => import("./PenAndPaper-DSvu9dwa.js")), Bt = z(() => import("./PackageVersion-Cyx_s25h.js")), Et = z(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_nested_donuts: Ut } = Ol(), $ = Ot, fe = m({
39
+ const Dt = B(() => import("./Tooltip-oWCO1HKy.js")), It = B(() => import("./BaseIcon-BmMbm4d0.js")), Pt = B(() => import("./vue-ui-accordion-BmFTVF1a.js")), Vt = B(() => import("./DataTable-BT7VF2ua.js")), zt = B(() => import("./UserOptions-CGnQt6Fd.js")), Mt = B(() => import("./PenAndPaper-SZQIAgkg.js")), Bt = B(() => import("./PackageVersion-Y7t79Jtq.js")), Et = B(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_nested_donuts: Ut } = Oa(), C = Ot, fe = $({
40
40
  get() {
41
- return !!$.dataset && $.dataset.length;
41
+ return !!C.dataset && C.dataset.length;
42
42
  },
43
43
  set(t) {
44
44
  return t;
45
45
  }
46
- }), p = c(gl()), pe = c(!1), ye = c(""), ge = c(null), Re = c(0), N = c(null), Ge = c(null), be = c(null), Ye = c(null), We = c(null), Xe = c(0), He = c(0), qe = c(0), U = c(!0), R = c([]), j = c([]), Qe = c(!1), ee = c(null), me = 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, Re.value += 1;
48
+ W.value = t, Re.value += 1;
49
49
  }
50
- const e = c(Ce()), Ke = {
50
+ const e = v(Ce()), Ke = {
51
51
  name: "",
52
52
  series: [
53
53
  {
@@ -66,8 +66,8 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
66
66
  color: "#CACACA"
67
67
  }
68
68
  ]
69
- }, { loading: we, FINAL_DATASET: Y, manualLoading: $e } = Fl({
70
- ...vl($),
69
+ }, { loading: we, FINAL_DATASET: X, manualLoading: $e } = Fa({
70
+ ...ca(C),
71
71
  FINAL_CONFIG: e,
72
72
  prepareConfig: Ce,
73
73
  callback: () => {
@@ -76,7 +76,7 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
76
76
  });
77
77
  },
78
78
  skeletonDataset: [Ke, Ke],
79
- skeletonConfig: bl({
79
+ skeletonConfig: ba({
80
80
  defaultConfig: e.value,
81
81
  userConfig: {
82
82
  useCssAnimation: !1,
@@ -102,61 +102,61 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
102
102
  }
103
103
  }
104
104
  })
105
- }), { userOptionsVisible: ke, setUserOptionsVisibility: Ze, keepUserOptionState: je } = Pl({ config: e.value }), { svgRef: te } = Vl({
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
108
  function Ce() {
109
109
  const t = St({
110
- userConfig: $.config,
110
+ userConfig: C.config,
111
111
  defaultConfig: Ut
112
112
  });
113
113
  let s = {};
114
114
  return t.theme ? s = {
115
115
  ...St({
116
- userConfig: Bl.vue_ui_nested_donuts[t.theme] || $.config,
116
+ userConfig: Ba.vue_ui_nested_donuts[t.theme] || C.config,
117
117
  defaultConfig: t
118
118
  }),
119
- customPalette: ml[t.theme] || ze
120
- } : s = t, $.config && Me($.config, "events.datapointEnter") ? s.events.datapointEnter = $.config.events.datapointEnter : s.events.datapointEnter = null, $.config && Me($.config, "events.datapointLeave") ? s.events.datapointLeave = $.config.events.datapointLeave : s.events.datapointLeave = null, $.config && Me($.config, "events.datapointClick") ? s.events.datapointClick = $.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
- ae(
123
- () => $.config,
122
+ le(
123
+ () => C.config,
124
124
  (t) => {
125
- we.value || (e.value = Ce()), ke.value = !e.value.userOptions.showOnChartHover, lt(), Xe.value += 1, He.value += 1, qe.value += 1, x.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, x.value.showTable = e.value.table.show, x.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 = m(() => {
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
- R.value = Array(l).fill(0), j.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 w = performance.now();
147
- function d(g) {
148
- const S = Math.min((g - w) / s, 1), Se = Tt(S), Oe = v * Se;
149
- R.value[f] = Oe, R.value = [...R.value];
150
- const ve = [];
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
- $.dataset.forEach((ce, Ne) => {
153
- const nl = Ue(ce.series.reduce(
154
- (Ie, Pe) => Ie + Ue(E(Pe.values).reduce((il, dl) => il + dl, 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
- )), rl = Ue(R.value.slice(Fe, Fe + ce.series.length).reduce((Ie, Pe) => Ie + Pe, 0)), De = nl - rl;
157
- De > Number.MIN_VALUE && ve.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
- arcOf: ce.name,
159
+ arcOf: ve.name,
160
160
  arcOfId: `${p.value}_${Ne}`,
161
161
  id: `ghost_${p.value}_${Ne}`,
162
162
  seriesIndex: -1,
@@ -166,34 +166,34 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
166
166
  fullValue: De,
167
167
  absoluteValues: [],
168
168
  ghost: !0
169
- }), Fe += ce.series.length;
170
- }), j.value = ve, S < 1 ? requestAnimationFrame(d) : (n += 1, n === l && o());
169
+ }), Fe += ve.series.length;
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
- R.value = s.map(() => 0), U.value = !0, j.value = Y.value.map((a, o) => {
183
- const l = a.series.reduce(
184
- (n, v) => n + E(v.values).reduce((f, w) => f + w, 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
  };
@@ -202,24 +202,24 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
202
202
  e.value.startAnimation.durationMs,
203
203
  e.value.startAnimation.staggerMs
204
204
  ).then(() => {
205
- U.value = !1, j.value = [];
205
+ G.value = !1, j.value = [];
206
206
  });
207
207
  } else
208
- U.value = !1;
208
+ G.value = !1;
209
209
  }
210
- cl(async () => {
211
- Qe.value = !0, lt(), await tt();
210
+ va(async () => {
211
+ Qe.value = !0, at(), await tt();
212
212
  });
213
- const P = wt(null), X = wt(null), H = m(() => !!e.value.debug);
214
- function lt() {
215
- if (wl($.dataset) ? (K({
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: H.value
218
+ debug: Q.value
219
219
  }), fe.value = !1, $e.value = !0) : $e.value = e.value.loading, e.value.responsive) {
220
- const t = Tl(() => {
221
- const { width: s, height: a } = Sl({
222
- chart: N.value,
220
+ const t = Ta(() => {
221
+ const { width: s, height: l } = Sa({
222
+ chart: I.value,
223
223
  title: e.value.style.chart.title.text ? Ge.value : null,
224
224
  legend: e.value.style.chart.legend.show ? be.value : null,
225
225
  source: Ye.value,
@@ -227,28 +227,28 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
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 && (X.value && P.value.unobserve(X.value), P.value.disconnect()), P.value = new ResizeObserver(t), X.value = N.value.parentNode, P.value.observe(X.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
- hl(() => {
237
- P.value && (X.value && P.value.unobserve(X.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 } = Dl({
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
- }), Gt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), Yt = m(() => $l(e.value.customPalette)), x = 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
  },
247
247
  showTable: e.value.table.show,
248
248
  showTooltip: e.value.style.chart.tooltip.show
249
249
  });
250
- ae(e, () => {
251
- x.value = {
250
+ le(e, () => {
251
+ _.value = {
252
252
  dataLabels: {
253
253
  show: e.value.style.chart.layout.labels.dataLabels.show
254
254
  },
@@ -256,187 +256,187 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["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 = Nt;
263
- function Wt({ 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 = Tt
271
+ onDone: a,
272
+ easing: u = Tt
273
273
  }) {
274
- const v = performance.now();
275
- function f(w) {
276
- const d = Math.min((w - 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 b = c([]), O = m(() => {
282
- we.value, Y.value.forEach((s, a) => {
281
+ const w = v([]), O = $(() => {
282
+ we.value, X.value.forEach((s, l) => {
283
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: H.value
287
+ index: l,
288
+ debug: Q.value
289
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: H.value
293
+ index: l,
294
+ debug: Q.value
295
295
  }) : s.series.length === 0 ? K({
296
296
  componentName: "VueUiNestedDonuts",
297
297
  type: "datasetAttributeEmpty",
298
- property: `series at index ${a}`,
299
- debug: H.value
300
- }) : s.series.forEach((o, l) => {
298
+ property: `series at index ${l}`,
299
+ debug: Q.value
300
+ }) : s.series.forEach((o, a) => {
301
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: H.value
307
+ debug: Q.value
308
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: H.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) => !b.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: kl(o.color) || Yt.value[l] || ze[l % ze.length],
334
- value: U.value ? R.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
- ae(() => $.dataset, (t) => {
340
+ le(() => C.dataset, (t) => {
341
341
  Array.isArray(t) && t.length > 0 && ($e.value = !1);
342
342
  }, { immediate: !0 });
343
- const D = m(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), it = m(() => [...O.value].map((t, s) => {
344
- const a = t.series.filter((o) => !b.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) => !b.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 Xt(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 k = c(it.value);
361
- ae(
360
+ const L = v(it.value);
361
+ le(
362
362
  () => it.value,
363
- (t) => k.value = t
363
+ (t) => L.value = t
364
364
  );
365
- function W(t) {
366
- nt("selectLegend", t);
367
- const s = $.dataset.flatMap(
368
- (d, g) => d.series.map((S, Se) => ({
369
- value: E(S.values).reduce((Oe, ve) => Oe + ve, 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 = O.value.flatMap((d) => d.series).find((d) => d.id === t.id)?.value ?? 0, o = k.value.flatMap((d) => d.series).find((d) => d.id === t.id);
376
- let n = o ? o.value : 0;
377
- const v = O.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), w = Xt(
380
+ if (!c) return;
381
+ const f = c.series.map((d) => d.id), k = Xt(
382
382
  f,
383
383
  f.length - 1,
384
- b.value
384
+ w.value
385
385
  );
386
- b.value.includes(t.id) ? (b.value = b.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
- k.value = k.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
- }) : k.value = k.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
- }))) : w && (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
- k.value = k.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
- b.value.push(t.id);
410
+ w.value.push(t.id);
411
411
  }
412
- }) : (k.value = k.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
- })), b.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
417
  function dt(t) {
418
418
  if (!O.value.length)
419
419
  return e.value.debug && console.warn("VueUiNestedDonuts - There are no series to show."), null;
420
- const s = O.value.flatMap((a) => a.series).filter((a) => a.name === t);
420
+ const s = O.value.flatMap((l) => l.series).filter((l) => l.name === t);
421
421
  return s || (e.value.debug && console.warn(`VueUiNestedDonuts - Series name not found "${t}"`), null);
422
422
  }
423
423
  function Ht(t) {
424
424
  const s = dt(t);
425
- s !== null && (Array.isArray(s) ? s.forEach((a) => {
426
- b.value.includes(a.id) && W({ id: a.id });
427
- }) : b.value.includes(s.id) && W({ id: s.id }));
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
428
  }
429
429
  function qt(t) {
430
430
  const s = dt(t);
431
- s !== null && (Array.isArray(s) ? s.forEach((a) => {
432
- b.value.includes(a.id) || W({ id: a.id });
433
- }) : b.value.includes(s.id) || W({ id: s.id }));
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
434
  }
435
- const se = m(() => D.value / O.value.length * e.value.style.chart.layout.donut.spacingRatio), vt = m(() => k.value.map((t, s) => D.value - s * D.value / O.value.length)), q = m(() => k.value.map((t, s) => {
436
- const a = Math.abs(t.series.map((w) => w.value).reduce((w, d) => w + d, 0)) > 0, o = D.value - s * D.value / k.value.length, l = U.value ? j.value.find((w) => w.datasetIndex === s) : null, n = [...t.series, ...l ? [l] : []].map((w) => ({
437
- ...w,
438
- value: w.value < 1e-11 ? Number.MIN_VALUE : w.value
439
- })), v = Be(
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(
440
440
  { series: [
441
441
  { name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
442
442
  ] },
@@ -455,12 +455,12 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
455
455
  a ${o},${o} 0 1,1 0,${2 * o}`;
456
456
  return {
457
457
  ...t,
458
- hasData: a,
458
+ hasData: l,
459
459
  radius: o,
460
- skeleton: v,
460
+ skeleton: c,
461
461
  fullCirclePath: f,
462
462
  donut: Be(
463
- { series: n },
463
+ { series: u },
464
464
  h.value.width / 2,
465
465
  h.value.height / 2,
466
466
  o,
@@ -473,64 +473,64 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
473
473
  se.value
474
474
  )
475
475
  };
476
- })), ct = m(() => [...O.value].map((t, s) => {
477
- const a = s * D.value / O.value.length;
476
+ })), vt = $(() => [...O.value].map((t, s) => {
477
+ const l = s * P.value / O.value.length;
478
478
  return {
479
- sizeRatio: a,
479
+ sizeRatio: l,
480
480
  donut: Be(
481
481
  { series: [{ value: 1 }] },
482
482
  h.value.width / 2,
483
483
  h.value.height / 2,
484
- D.value - a,
485
- D.value - a,
484
+ P.value - l,
485
+ P.value - l,
486
486
  1.99999,
487
487
  2,
488
488
  1,
489
489
  360,
490
490
  105.25,
491
- D.value / O.value.length * e.value.style.chart.layout.donut.spacingRatio
491
+ P.value / O.value.length * e.value.style.chart.layout.donut.spacingRatio
492
492
  )[0]
493
493
  };
494
- })), ht = c(null), ue = c(null), ne = c(null), Le = c(null);
494
+ })), ht = v(null), ne = v(null), ue = v(null), Le = v(null);
495
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, ue.value = null, ne.value = null;
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;
497
497
  }
498
- function Jt({ datapoint: t, _relativeIndex: s, seriesIndex: a }) {
499
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), ht.value = t.arcOfId, ue.value = t.id, ne.value = a, ge.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 = {
500
500
  datapoint: t,
501
- seriesIndex: a,
502
- series: k.value,
501
+ seriesIndex: l,
502
+ series: L.value,
503
503
  config: e.value
504
504
  };
505
505
  const o = e.value.style.chart.tooltip.customFormat;
506
- if (At(o) && Al(
506
+ if (At(o) && Aa(
507
507
  () => o({
508
- seriesIndex: a,
508
+ seriesIndex: l,
509
509
  datapoint: t,
510
- series: k.value,
510
+ series: L.value,
511
511
  config: e.value
512
512
  })
513
513
  ))
514
514
  ye.value = o({
515
- seriesIndex: a,
515
+ seriesIndex: l,
516
516
  datapoint: t,
517
- series: k.value,
517
+ series: L.value,
518
518
  config: e.value
519
519
  });
520
520
  else {
521
- let l = "";
522
- if (e.value.style.chart.tooltip.showAllItemsAtIndex && b.value.length === 0) {
523
- const n = k.value.map((v) => v.series.find((f) => f.seriesIndex === a));
524
- n.forEach((v, f) => {
525
- if (!v) return "";
526
- l += `
527
- <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}` : ""}">
528
528
  <div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
529
529
  <svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
530
- <circle cx="10" cy="10" r="10" fill="${v.color}"/>
530
+ <circle cx="10" cy="10" r="10" fill="${c.color}"/>
531
531
  </svg>
532
532
  <span>
533
- ${v.arcOf ?? ""} - ${v.name}
533
+ ${c.arcOf ?? ""} - ${c.name}
534
534
  </span>
535
535
  </div>
536
536
  <span>
@@ -543,11 +543,11 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
543
543
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
544
544
  r: e.value.style.chart.tooltip.roundingValue
545
545
  }),
546
- { datapoint: t, seriesIndex: a }
546
+ { datapoint: t, seriesIndex: l }
547
547
  )}
548
548
  </b>` : ""}
549
549
  ${e.value.style.chart.tooltip.showPercentage ? `(${F({
550
- v: v.proportion * 100,
550
+ v: c.proportion * 100,
551
551
  s: "%",
552
552
  r: e.value.style.chart.tooltip.roundingPercentage
553
553
  })})` : ""}
@@ -556,7 +556,7 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
556
556
  `;
557
557
  });
558
558
  } else
559
- 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>${oe(
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(
560
560
  e.value.style.chart.layout.labels.dataLabels.formatter,
561
561
  t.value,
562
562
  F({
@@ -565,17 +565,17 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
565
565
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
566
566
  r: e.value.style.chart.tooltip.roundingValue
567
567
  }),
568
- { datapoint: t, seriesIndex: a }
569
- )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? l += `<span>(${F({
568
+ { datapoint: t, seriesIndex: l }
569
+ )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? a += `<span>(${F({
570
570
  v: t.proportion * 100,
571
571
  s: "%",
572
572
  r: e.value.style.chart.tooltip.roundingPercentage
573
- })})</span></div>` : l += `<b>${F({
573
+ })})</span></div>` : a += `<b>${F({
574
574
  v: t.proportion * 100,
575
575
  s: "%",
576
576
  r: e.value.style.chart.tooltip.roundingPercentage
577
577
  })}</b></div>`);
578
- ye.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>`;
579
579
  }
580
580
  pe.value = !0;
581
581
  }
@@ -585,27 +585,27 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
585
585
  function ft(t, s) {
586
586
  if (!e.value.useBlurOnHover)
587
587
  return "";
588
- if (e.value.style.chart.tooltip.showAllItemsAtIndex && b.value.length === 0)
589
- return [null, void 0].includes(ne.value) || ne.value === s ? "" : `url(#blur_${p.value})`;
590
- if (!e.value.style.chart.tooltip.showAllItemsAtIndex || b.value.length)
591
- return [null, void 0].includes(ue.value) || ue.value === t.id ? "" : `url(#blur_${p.value})`;
588
+ if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0)
589
+ return [null, void 0].includes(ue.value) || ue.value === s ? "" : `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})`;
592
592
  }
593
- const re = m(() => O.value.map((t, s) => {
594
- const a = t.series.filter(
595
- (l) => !b.value.includes(l.id)
596
- ), o = U.value ? a.map((l) => {
597
- const n = Y.value[s].series.findIndex(
598
- (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
599
599
  );
600
- return E(
601
- Y.value[s].series[n].values
602
- ).reduce((v, f) => v + f, 0);
603
- }).reduce((l, n) => l + n, 0) : a.map((l) => l.value).reduce((l, n) => l + n, 0);
604
- return t.series.map((l, n) => {
605
- const v = E(Y.value[s].series[n].values).reduce(
606
- (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,
607
607
  0
608
- ), f = U.value ? v : l.value, w = `${l.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? oe(
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(
609
609
  e.value.style.chart.layout.labels.dataLabels.formatter,
610
610
  f,
611
611
  F({
@@ -614,88 +614,88 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
614
614
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
615
615
  r: e.value.style.chart.legend.roundingValue
616
616
  }),
617
- { datapoint: l, seriesIndex: n }
618
- ) : ""}${e.value.style.chart.legend.showPercentage ? b.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) ? "-" : F({
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({
619
619
  v: f / o * 100,
620
620
  s: "%",
621
621
  r: e.value.style.chart.legend.roundingPercentage
622
622
  })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`;
623
623
  return {
624
- name: l.name,
625
- color: l.color,
624
+ name: a.name,
625
+ color: a.color,
626
626
  value: f,
627
- display: w,
628
- svgDisplay: `${l.arcOf ? `${l.arcOf} - ` : ""}${w}`,
627
+ display: k,
628
+ svgDisplay: `${a.arcOf ? `${a.arcOf} - ` : ""}${k}`,
629
629
  shape: "circle",
630
- arcOf: l.arcOf,
631
- id: l.id,
632
- seriesIndex: n,
630
+ arcOf: a.arcOf,
631
+ id: a.id,
632
+ seriesIndex: u,
633
633
  datasetIndex: s,
634
634
  total: o,
635
- opacity: b.value.includes(l.id) ? 0.5 : 1,
636
- segregate: () => W(l),
637
- isSegregated: b.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)
638
638
  };
639
639
  });
640
- })), Kt = m(() => ({
640
+ })), Kt = $(() => ({
641
641
  cy: "nested-donuts-legend",
642
642
  backgroundColor: e.value.style.chart.legend.backgroundColor,
643
643
  color: e.value.style.chart.legend.color,
644
644
  fontSize: e.value.style.chart.legend.fontSize,
645
645
  paddingBottom: 12,
646
646
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
647
- })), V = m(() => {
648
- const t = k.value.flatMap((a) => a.series.map((o) => ({
649
- name: `${a.name} - ${o.name}`,
647
+ })), M = $(() => {
648
+ const t = L.value.flatMap((l) => l.series.map((o) => ({
649
+ name: `${l.name} - ${o.name}`,
650
650
  color: o.color,
651
- total: a.total
652
- }))), s = k.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));
653
653
  return { head: t, body: s };
654
654
  });
655
655
  function _e(t = null) {
656
656
  xt(() => {
657
- const s = V.value.head.map((l, n) => [
658
- [l.name],
659
- [V.value.body[n]],
657
+ const s = M.value.head.map((a, u) => [
658
+ [a.name],
659
+ [M.value.body[u]],
660
660
  [
661
- 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
662
662
  ]
663
- ]), a = [
663
+ ]), l = [
664
664
  [e.value.style.chart.title.text],
665
665
  [e.value.style.chart.title.subtitle.text],
666
666
  [[""], ["val"], ["%"]]
667
- ].concat(s), o = xl(a);
668
- t ? t(o) : _l({
667
+ ].concat(s), o = xa(l);
668
+ t ? t(o) : _a({
669
669
  csvContent: o,
670
670
  title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
671
671
  });
672
672
  });
673
673
  }
674
- const ie = m(() => {
674
+ const ie = $(() => {
675
675
  const t = [
676
676
  e.value.table.columnNames.series,
677
677
  e.value.table.columnNames.value,
678
678
  e.value.table.columnNames.percentage
679
- ], s = V.value.head.map((l, n) => {
680
- const v = F({
679
+ ], s = M.value.head.map((a, u) => {
680
+ const c = F({
681
681
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
682
- v: V.value.body[n],
682
+ v: M.value.body[u],
683
683
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
684
684
  r: e.value.table.td.roundingValue
685
685
  });
686
686
  return [
687
687
  {
688
- color: l.color,
689
- name: l.name
688
+ color: a.color,
689
+ name: a.name
690
690
  },
691
- v,
692
- isNaN(V.value.body[n] / l.total) ? "-" : F({
693
- 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,
694
694
  s: "%",
695
695
  r: e.value.table.td.roundingPercentage
696
696
  })
697
697
  ];
698
- }), a = {
698
+ }), l = {
699
699
  th: {
700
700
  backgroundColor: e.value.table.th.backgroundColor,
701
701
  color: e.value.table.th.color,
@@ -716,45 +716,45 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
716
716
  ],
717
717
  head: t,
718
718
  body: s,
719
- config: a
719
+ config: l
720
720
  };
721
721
  });
722
722
  function Zt() {
723
723
  return O.value;
724
724
  }
725
725
  function pt() {
726
- x.value.showTable = !x.value.showTable;
726
+ _.value.showTable = !_.value.showTable;
727
727
  }
728
728
  function yt() {
729
- x.value.dataLabels.show = !x.value.dataLabels.show;
729
+ _.value.dataLabels.show = !_.value.dataLabels.show;
730
730
  }
731
731
  function gt() {
732
- x.value.showTooltip = !x.value.showTooltip;
732
+ _.value.showTooltip = !_.value.showTooltip;
733
733
  }
734
- const de = c(!1);
734
+ const de = v(!1);
735
735
  function Ae() {
736
736
  de.value = !de.value;
737
737
  }
738
738
  async function jt({ scale: t = 2 } = {}) {
739
- if (!N.value) return;
740
- const { width: s, height: a } = N.value.getBoundingClientRect(), o = s / a, { imageUri: l, base64: n } = await zl({ domElement: N.value, base64: !0, img: !0, scale: t });
739
+ if (!I.value) return;
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 });
741
741
  return {
742
- imageUri: l,
743
- base64: n,
742
+ imageUri: a,
743
+ base64: u,
744
744
  title: e.value.style.chart.title.text,
745
745
  width: s,
746
- height: a,
746
+ height: l,
747
747
  aspectRatio: o
748
748
  };
749
749
  }
750
- const Te = c(null);
751
- function el() {
750
+ const Te = v(null);
751
+ function ea() {
752
752
  if (!Te.value) return;
753
- const { x: t, y: s, width: a, height: o } = Te.value.getBBox();
754
- te.value && te.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)}`);
755
755
  }
756
- const le = m(() => {
757
- const t = e.value.table.useDialog && !e.value.table.show, s = x.value.showTable;
756
+ const ae = $(() => {
757
+ const t = e.value.table.useDialog && !e.value.table.show, s = _.value.showTable;
758
758
  return {
759
759
  component: t ? Et : Pt,
760
760
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
@@ -763,8 +763,8 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
763
763
  color: e.value.table.th.color,
764
764
  headerColor: e.value.table.th.color,
765
765
  headerBg: e.value.table.th.backgroundColor,
766
- isFullscreen: G.value,
767
- fullscreenParent: N.value,
766
+ isFullscreen: W.value,
767
+ fullscreenParent: I.value,
768
768
  forcedWidth: Math.min(800, window.innerWidth * 0.8)
769
769
  } : {
770
770
  hideDetails: !0,
@@ -783,36 +783,36 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
783
783
  }
784
784
  };
785
785
  });
786
- ae(() => x.value.showTable, (t) => {
786
+ le(() => _.value.showTable, (t) => {
787
787
  e.value.table.show || (t && e.value.table.useDialog && ee.value ? ee.value.open() : "close" in ee.value && ee.value.close());
788
788
  });
789
789
  function bt() {
790
- x.value.showTable = !1, me.value && me.value.setTableIconState(!1);
790
+ _.value.showTable = !1, me.value && me.value.setTableIconState(!1);
791
791
  }
792
- const tl = m(() => e.value.style.chart.backgroundColor), ll = m(() => e.value.style.chart.legend), al = m(() => e.value.style.chart.title), ol = m(() => re.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) => ({
793
793
  ...t,
794
794
  name: t.svgDisplay
795
- }))), { exportSvg: sl, getSvg: ul } = Il({
795
+ }))), { exportSvg: sa, getSvg: na } = Ia({
796
796
  svg: te,
797
- title: al,
798
- legend: ll,
799
- legendItems: ol,
800
- backgroundColor: tl
797
+ title: la,
798
+ legend: aa,
799
+ legendItems: oa,
800
+ backgroundColor: ta
801
801
  });
802
802
  async function mt({ isCb: t }) {
803
803
  if (t) {
804
- const { blob: s, url: a, text: o, dataUrl: l } = await ul();
805
- 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 });
806
806
  } else
807
- sl();
807
+ sa();
808
808
  }
809
809
  return Ft({
810
- autoSize: el,
810
+ autoSize: ea,
811
811
  getData: Zt,
812
812
  getImage: jt,
813
813
  generatePdf: st,
814
814
  generateCsv: _e,
815
- generateImage: ut,
815
+ generateImage: nt,
816
816
  generateSvg: mt,
817
817
  hideSeries: qt,
818
818
  showSeries: Ht,
@@ -821,36 +821,56 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
821
821
  toggleTooltip: gt,
822
822
  toggleAnnotator: Ae,
823
823
  toggleFullscreen: Je
824
- }), (t, s) => (u(), r("div", {
824
+ }), (t, s) => (n(), r("div", {
825
825
  ref_key: "nestedDonutsChart",
826
- ref: N,
827
- class: M(`vue-data-ui-component vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
826
+ ref: I,
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
828
  style: he(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
829
829
  id: `nested_donuts_${p.value}`,
830
830
  onMouseenter: s[2] || (s[2] = () => i(Ze)(!0)),
831
831
  onMouseleave: s[3] || (s[3] = () => i(Ze)(!1))
832
832
  }, [
833
- e.value.userOptions.buttons.annotator ? (u(), B(i(Mt), {
833
+ e.value.userOptions.buttons.annotator ? (n(), U(i(Mt), {
834
834
  key: 0,
835
835
  svgRef: i(te),
836
836
  backgroundColor: e.value.style.chart.backgroundColor,
837
837
  color: e.value.style.chart.color,
838
838
  active: de.value,
839
839
  onClose: Ae
840
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : C("", !0),
841
- Gt.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", {
842
862
  key: 1,
843
863
  ref_key: "noTitle",
844
864
  ref: We,
845
865
  class: "vue-data-ui-no-title-space",
846
866
  style: "height:36px; width: 100%;background:transparent"
847
- }, null, 512)) : C("", !0),
848
- e.value.style.chart.title.text ? (u(), r("div", {
867
+ }, null, 512)) : x("", !0),
868
+ e.value.style.chart.title.text ? (n(), r("div", {
849
869
  key: 2,
850
870
  ref_key: "chartTitle",
851
871
  ref: Ge
852
872
  }, [
853
- (u(), B(Ml, {
873
+ (n(), U(Ma, {
854
874
  key: `title_${Xe.value}`,
855
875
  config: {
856
876
  title: {
@@ -863,17 +883,17 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
863
883
  }
864
884
  }
865
885
  }, null, 8, ["config"]))
866
- ], 512)) : C("", !0),
886
+ ], 512)) : x("", !0),
867
887
  y("div", {
868
888
  id: `legend-top-${p.value}`
869
- }, null, 8, Gl),
870
- e.value.userOptions.show && fe.value && (i(je) || i(ke)) ? (u(), B(i(zt), {
889
+ }, null, 8, Ga),
890
+ e.value.userOptions.show && fe.value && (i(je) || i(ke)) ? (n(), U(i(zt), {
871
891
  ref_key: "userOptionsRef",
872
892
  ref: me,
873
893
  key: `user_option_${Re.value}`,
874
894
  backgroundColor: e.value.style.chart.backgroundColor,
875
895
  color: e.value.style.chart.color,
876
- isPrinting: i(at),
896
+ isPrinting: i(lt),
877
897
  isImaging: i(ot),
878
898
  uid: p.value,
879
899
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
@@ -884,10 +904,10 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
884
904
  hasTable: e.value.userOptions.buttons.table,
885
905
  hasLabel: e.value.userOptions.buttons.labels,
886
906
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
887
- isFullscreen: G.value,
888
- isTooltip: x.value.showTooltip,
907
+ isFullscreen: W.value,
908
+ isTooltip: _.value.showTooltip,
889
909
  titles: { ...e.value.userOptions.buttonTitles },
890
- chartElement: N.value,
910
+ chartElement: I.value,
891
911
  position: e.value.userOptions.position,
892
912
  hasAnnotator: e.value.userOptions.buttons.annotator,
893
913
  isAnnotation: de.value,
@@ -897,7 +917,7 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
897
917
  onToggleFullscreen: Je,
898
918
  onGeneratePdf: i(st),
899
919
  onGenerateCsv: _e,
900
- onGenerateImage: i(ut),
920
+ onGenerateImage: i(nt),
901
921
  onGenerateSvg: mt,
902
922
  onToggleTable: pt,
903
923
  onToggleLabels: yt,
@@ -909,82 +929,82 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
909
929
  }, $t({ _: 2 }, [
910
930
  t.$slots.menuIcon ? {
911
931
  name: "menuIcon",
912
- fn: L(({ isOpen: a, color: o }) => [
913
- _(t.$slots, "menuIcon", Q(J({ 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)
914
934
  ]),
915
935
  key: "0"
916
936
  } : void 0,
917
937
  t.$slots.optionTooltip ? {
918
938
  name: "optionTooltip",
919
- fn: L(() => [
920
- _(t.$slots, "optionTooltip", {}, void 0, !0)
939
+ fn: g(() => [
940
+ b(t.$slots, "optionTooltip", {}, void 0, !0)
921
941
  ]),
922
942
  key: "1"
923
943
  } : void 0,
924
944
  t.$slots.optionPdf ? {
925
945
  name: "optionPdf",
926
- fn: L(() => [
927
- _(t.$slots, "optionPdf", {}, void 0, !0)
946
+ fn: g(() => [
947
+ b(t.$slots, "optionPdf", {}, void 0, !0)
928
948
  ]),
929
949
  key: "2"
930
950
  } : void 0,
931
951
  t.$slots.optionCsv ? {
932
952
  name: "optionCsv",
933
- fn: L(() => [
934
- _(t.$slots, "optionCsv", {}, void 0, !0)
953
+ fn: g(() => [
954
+ b(t.$slots, "optionCsv", {}, void 0, !0)
935
955
  ]),
936
956
  key: "3"
937
957
  } : void 0,
938
958
  t.$slots.optionImg ? {
939
959
  name: "optionImg",
940
- fn: L(() => [
941
- _(t.$slots, "optionImg", {}, void 0, !0)
960
+ fn: g(() => [
961
+ b(t.$slots, "optionImg", {}, void 0, !0)
942
962
  ]),
943
963
  key: "4"
944
964
  } : void 0,
945
965
  t.$slots.optionSvg ? {
946
966
  name: "optionSvg",
947
- fn: L(() => [
948
- _(t.$slots, "optionSvg", {}, void 0, !0)
967
+ fn: g(() => [
968
+ b(t.$slots, "optionSvg", {}, void 0, !0)
949
969
  ]),
950
970
  key: "5"
951
971
  } : void 0,
952
972
  t.$slots.optionTable ? {
953
973
  name: "optionTable",
954
- fn: L(() => [
955
- _(t.$slots, "optionTable", {}, void 0, !0)
974
+ fn: g(() => [
975
+ b(t.$slots, "optionTable", {}, void 0, !0)
956
976
  ]),
957
977
  key: "6"
958
978
  } : void 0,
959
979
  t.$slots.optionLabels ? {
960
980
  name: "optionLabels",
961
- fn: L(() => [
962
- _(t.$slots, "optionLabels", {}, void 0, !0)
981
+ fn: g(() => [
982
+ b(t.$slots, "optionLabels", {}, void 0, !0)
963
983
  ]),
964
984
  key: "7"
965
985
  } : void 0,
966
986
  t.$slots.optionFullscreen ? {
967
987
  name: "optionFullscreen",
968
- fn: L(({ toggleFullscreen: a, isFullscreen: o }) => [
969
- _(t.$slots, "optionFullscreen", Q(J({ 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)
970
990
  ]),
971
991
  key: "8"
972
992
  } : void 0,
973
993
  t.$slots.optionAnnotator ? {
974
994
  name: "optionAnnotator",
975
- fn: L(({ toggleAnnotator: a, isAnnotator: o }) => [
976
- _(t.$slots, "optionAnnotator", Q(J({ 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)
977
997
  ]),
978
998
  key: "9"
979
999
  } : void 0
980
- ]), 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"])) : C("", !0),
981
- (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", {
982
1002
  ref_key: "svgRef",
983
1003
  ref: te,
984
- xmlns: i(Cl),
985
- class: M({
986
- "vue-data-ui-fullscreen--on": G.value,
987
- "vue-data-ui-fulscreen--off": !G.value,
1004
+ xmlns: i(Ca),
1005
+ class: E({
1006
+ "vue-data-ui-fullscreen--on": W.value,
1007
+ "vue-data-ui-fulscreen--off": !W.value,
988
1008
  "vue-data-ui-svg": !0
989
1009
  }),
990
1010
  viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
@@ -996,7 +1016,7 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
996
1016
  class: "vue-data-ui-g"
997
1017
  }, [
998
1018
  Ve(i(Bt)),
999
- t.$slots["chart-background"] ? (u(), r("foreignObject", {
1019
+ t.$slots["chart-background"] ? (n(), r("foreignObject", {
1000
1020
  key: 0,
1001
1021
  x: 0,
1002
1022
  y: 0,
@@ -1006,10 +1026,10 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
1006
1026
  pointerEvents: "none"
1007
1027
  }
1008
1028
  }, [
1009
- _(t.$slots, "chart-background", {}, void 0, !0)
1010
- ], 8, Wl)) : C("", !0),
1029
+ b(t.$slots, "chart-background", {}, void 0, !0)
1030
+ ], 8, Wa)) : x("", !0),
1011
1031
  y("defs", null, [
1012
- (u(!0), r(A, null, T(ct.value, (a, o) => (u(), r("radialGradient", {
1032
+ (n(!0), r(A, null, T(vt.value, (l, o) => (n(), r("radialGradient", {
1013
1033
  id: `radial_${p.value}_${o}`
1014
1034
  }, [
1015
1035
  s[4] || (s[4] = y("stop", {
@@ -1018,21 +1038,21 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
1018
1038
  "stop-opacity": "0"
1019
1039
  }, null, -1)),
1020
1040
  y("stop", {
1021
- offset: `${(1 - se.value / vt.value[o]) * 100}%`,
1022
- "stop-color": i(Ll)("#FFFFFF", 0),
1041
+ offset: `${(1 - se.value / ct.value[o]) * 100}%`,
1042
+ "stop-color": i(La)("#FFFFFF", 0),
1023
1043
  "stop-opacity": "0"
1024
- }, null, 8, Hl),
1044
+ }, null, 8, Ha),
1025
1045
  y("stop", {
1026
- offset: `${(1 - se.value / vt.value[o] / 2) * 100}%`,
1046
+ offset: `${(1 - se.value / ct.value[o] / 2) * 100}%`,
1027
1047
  "stop-color": "#FFFFFF",
1028
1048
  "stop-opacity": e.value.style.chart.gradientIntensity / 100
1029
- }, null, 8, ql),
1049
+ }, null, 8, qa),
1030
1050
  s[5] || (s[5] = y("stop", {
1031
1051
  offset: "100%",
1032
1052
  "stop-color": "#FFFFFF",
1033
1053
  "stop-opacity": "0"
1034
1054
  }, null, -1))
1035
- ], 8, Xl))), 256))
1055
+ ], 8, Xa))), 256))
1036
1056
  ]),
1037
1057
  y("defs", null, [
1038
1058
  y("filter", {
@@ -1046,12 +1066,12 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
1046
1066
  in: "SourceGraphic",
1047
1067
  stdDeviation: 2,
1048
1068
  id: `blur_std_${p.value}`
1049
- }, null, 8, Jl),
1069
+ }, null, 8, Ja),
1050
1070
  s[6] || (s[6] = y("feColorMatrix", {
1051
1071
  type: "saturate",
1052
1072
  values: "0"
1053
1073
  }, null, -1))
1054
- ], 8, Ql),
1074
+ ], 8, Qa),
1055
1075
  y("filter", {
1056
1076
  id: `shadow_${p.value}`,
1057
1077
  "color-interpolation-filters": "sRGB"
@@ -1062,53 +1082,53 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
1062
1082
  stdDeviation: "10",
1063
1083
  "flood-opacity": "0.5",
1064
1084
  "flood-color": e.value.style.chart.layout.donut.shadowColor
1065
- }, null, 8, Zl)
1066
- ], 8, Kl)
1085
+ }, null, 8, Za)
1086
+ ], 8, Ka)
1067
1087
  ]),
1068
1088
  y("defs", null, [
1069
- (u(!0), r(A, null, T(q.value, (a, o) => (u(), r("path", {
1089
+ (n(!0), r(A, null, T(J.value, (l, o) => (n(), r("path", {
1070
1090
  key: `path-full-${o}`,
1071
1091
  id: `path-full-${o}-${p.value}`,
1072
- d: a.fullCirclePath,
1092
+ d: l.fullCirclePath,
1073
1093
  fill: "none"
1074
- }, null, 8, jl))), 128))
1094
+ }, null, 8, ja))), 128))
1075
1095
  ]),
1076
- (u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
1077
- 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, [
1078
1098
  y("path", {
1079
1099
  class: "vue-ui-donut-arc-path",
1080
- d: l.arcSlice,
1081
- fill: l.color,
1100
+ d: a.arcSlice,
1101
+ fill: a.color,
1082
1102
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1083
1103
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
1084
- filter: ft(l, n)
1085
- }, null, 8, ea)
1086
- ]))), 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, [
1087
1107
  y("path", {
1088
1108
  class: "vue-ui-donut-arc-path",
1089
- d: l.arcSlice,
1090
- fill: l.color,
1109
+ d: a.arcSlice,
1110
+ fill: a.color,
1091
1111
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1092
1112
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
1093
- }, null, 8, ta)
1113
+ }, null, 8, tl)
1094
1114
  ]))), 256))
1095
1115
  ]))), 256)),
1096
- e.value.style.chart.useGradient ? (u(), r("g", la, [
1097
- (u(!0), r(A, null, T(ct.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, [
1098
1118
  y("path", {
1099
- d: a.donut.arcSlice,
1119
+ d: l.donut.arcSlice,
1100
1120
  fill: `url(#radial_${p.value}_${o})`,
1101
1121
  stroke: "transparent",
1102
1122
  "stroke-width": "0"
1103
- }, null, 8, aa)
1123
+ }, null, 8, ll)
1104
1124
  ]))), 256))
1105
- ])) : C("", !0),
1106
- e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), r("g", oa, [
1107
- e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (u(!0), r(A, { key: 0 }, T(q.value, (a, o) => (u(), r("g", null, [
1108
- (u(!0), r(A, null, T(a.donut, (l, n) => (u(), r("g", null, [
1109
- 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", {
1110
1130
  key: 0,
1111
- class: M({ animated: e.value.useCssAnimation }),
1131
+ class: E({ animated: e.value.useCssAnimation }),
1112
1132
  "text-anchor": "middle",
1113
1133
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1114
1134
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
@@ -1121,148 +1141,148 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
1121
1141
  "text-anchor": "middle",
1122
1142
  method: "align",
1123
1143
  spacing: "auto"
1124
- }, I(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(_t)({
1125
- source: a.name,
1144
+ }, V(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(_t)({
1145
+ source: l.name,
1126
1146
  length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1127
- }) : a.name), 9, ua)
1128
- ], 10, sa)) : C("", !0)
1147
+ }) : l.name), 9, nl)
1148
+ ], 10, sl)) : x("", !0)
1129
1149
  ]))), 256))
1130
- ]))), 256)) : (u(!0), r(A, { key: 1 }, T(q.value, (a, o) => (u(), r("g", null, [
1131
- (u(!0), r(A, null, T(a.donut, (l, n) => (u(), r("g", null, [
1132
- 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", {
1133
1153
  key: 0,
1134
- class: M({ animated: e.value.useCssAnimation }),
1154
+ class: E({ animated: e.value.useCssAnimation }),
1135
1155
  x: h.value.width / 2,
1136
- 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,
1137
1157
  "text-anchor": "middle",
1138
1158
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1139
1159
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
1140
1160
  fill: e.value.style.chart.layout.labels.dataLabels.color
1141
- }, I(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(_t)({
1142
- source: a.name,
1161
+ }, V(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(_t)({
1162
+ source: l.name,
1143
1163
  length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1144
- }) : a.name), 11, na)) : C("", !0)
1164
+ }) : l.name), 11, ul)) : x("", !0)
1145
1165
  ]))), 256))
1146
1166
  ]))), 256))
1147
- ])) : C("", !0),
1148
- e.value.style.chart.layout.labels.dataLabels.show ? (u(), r("g", ra, [
1149
- (u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
1150
- (u(!0), r(A, null, T(a.donut.filter((l) => !l.ghost), (l, n) => (u(), r("g", {
1151
- filter: ft(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)
1152
1172
  }, [
1153
1173
  kt(y("text", {
1154
- class: M({ animated: e.value.useCssAnimation }),
1155
- opacity: xe(l) ? 1 : 0,
1156
- "text-anchor": i(Z)(l, !0).anchor,
1174
+ class: E({ animated: e.value.useCssAnimation }),
1175
+ opacity: xe(a) ? 1 : 0,
1176
+ "text-anchor": i(Z)(a, !0).anchor,
1157
1177
  x: i(Z)(
1158
- l,
1178
+ a,
1159
1179
  !1,
1160
1180
  e.value.style.chart.layout.labels.dataLabels.offsetX
1161
1181
  ).x || 0,
1162
1182
  y: i(Ee)(
1163
- l,
1183
+ a,
1164
1184
  e.value.style.chart.layout.labels.dataLabels.offsetY,
1165
1185
  e.value.style.chart.layout.labels.dataLabels.offsetY
1166
1186
  ),
1167
- 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,
1168
1188
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1169
1189
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
1170
- }, I(i(F)({
1171
- v: l.proportion * 100,
1190
+ }, V(i(F)({
1191
+ v: a.proportion * 100,
1172
1192
  s: "%",
1173
1193
  r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
1174
- })), 11, da), [
1194
+ })), 11, dl), [
1175
1195
  [
1176
1196
  Ct,
1177
- x.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
1197
+ _.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
1178
1198
  ]
1179
1199
  ]),
1180
1200
  kt(y("text", {
1181
- class: M({ animated: e.value.useCssAnimation }),
1182
- opacity: xe(l) ? 1 : 0,
1183
- "text-anchor": i(Z)(l, !0).anchor,
1201
+ class: E({ animated: e.value.useCssAnimation }),
1202
+ opacity: xe(a) ? 1 : 0,
1203
+ "text-anchor": i(Z)(a, !0).anchor,
1184
1204
  x: i(Z)(
1185
- l,
1205
+ a,
1186
1206
  !1,
1187
1207
  e.value.style.chart.layout.labels.dataLabels.offsetX
1188
1208
  ).x || 0,
1189
1209
  y: i(Ee)(
1190
- l,
1210
+ a,
1191
1211
  e.value.style.chart.layout.labels.dataLabels.offsetY,
1192
1212
  e.value.style.chart.layout.labels.dataLabels.offsetY
1193
1213
  ) + e.value.style.chart.layout.labels.dataLabels.fontSize,
1194
- 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,
1195
1215
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1196
1216
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
1197
- }, " (" + I(i(oe)(
1217
+ }, " (" + V(i(oe)(
1198
1218
  e.value.style.chart.layout.labels.dataLabels.formatter,
1199
- l.value,
1219
+ a.value,
1200
1220
  i(F)({
1201
1221
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1202
- v: l.value,
1222
+ v: a.value,
1203
1223
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1204
1224
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
1205
1225
  }),
1206
- { datapoint: l, seriesIndex: o, datapointIndex: n }
1207
- )) + ") ", 11, va), [
1226
+ { datapoint: a, seriesIndex: o, datapointIndex: u }
1227
+ )) + ") ", 11, cl), [
1208
1228
  [
1209
1229
  Ct,
1210
- x.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
1230
+ _.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
1211
1231
  ]
1212
1232
  ]),
1213
- xe(l) && x.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", {
1214
1234
  key: 0,
1215
- class: M({ animated: e.value.useCssAnimation }),
1216
- "text-anchor": i(Z)(l, !0).anchor,
1235
+ class: E({ animated: e.value.useCssAnimation }),
1236
+ "text-anchor": i(Z)(a, !0).anchor,
1217
1237
  x: i(Z)(
1218
- l,
1238
+ a,
1219
1239
  !1,
1220
1240
  e.value.style.chart.layout.labels.dataLabels.offsetX
1221
1241
  ).x || 0,
1222
1242
  y: i(Ee)(
1223
- l,
1243
+ a,
1224
1244
  e.value.style.chart.layout.labels.dataLabels.offsetY,
1225
1245
  e.value.style.chart.layout.labels.dataLabels.offsetY
1226
1246
  ),
1227
- 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,
1228
1248
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1229
1249
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
1230
- }, I(i(oe)(
1250
+ }, V(i(oe)(
1231
1251
  e.value.style.chart.layout.labels.dataLabels.formatter,
1232
- l.value,
1252
+ a.value,
1233
1253
  i(F)({
1234
1254
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1235
- v: l.value,
1255
+ v: a.value,
1236
1256
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1237
1257
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
1238
1258
  }),
1239
- { datapoint: l, seriesIndex: o, datapointIndex: n }
1240
- )), 11, ca)) : C("", !0)
1241
- ], 8, ia))), 256))
1259
+ { datapoint: a, seriesIndex: o, datapointIndex: u }
1260
+ )), 11, vl)) : x("", !0)
1261
+ ], 8, il))), 256))
1242
1262
  ]))), 256))
1243
- ])) : C("", !0),
1244
- (u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
1245
- (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, [
1246
1266
  y("path", {
1247
- d: l.arcSlice,
1248
- fill: ge.value === l.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
1249
- onMouseenter: (v) => Jt({
1250
- datapoint: l,
1251
- 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
1252
1272
  }),
1253
- onClick: (v) => Wt({ datapoint: l, index: n, seriesIndex: l.seriesIndex }),
1254
- onMouseleave: (v) => Qt({ datapoint: l, seriesIndex: l.seriesIndex })
1255
- }, null, 40, ha)
1273
+ onClick: (c) => Wt({ datapoint: a, index: u, seriesIndex: a.seriesIndex }),
1274
+ onMouseleave: (c) => Qt({ datapoint: a, seriesIndex: a.seriesIndex })
1275
+ }, null, 40, hl)
1256
1276
  ]))), 256))
1257
1277
  ]))), 256)),
1258
- _(t.$slots, "svg", { svg: h.value }, void 0, !0)
1278
+ b(t.$slots, "svg", { svg: h.value }, void 0, !0)
1259
1279
  ], 512)
1260
- ], 14, Yl)),
1261
- t.$slots.watermark ? (u(), r("div", fa, [
1262
- _(t.$slots, "watermark", Q(J({ isPrinting: i(at) || i(ot) })), void 0, !0)
1263
- ])) : C("", !0),
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),
1264
1284
  Ve(i(Dt), {
1265
- show: x.value.showTooltip && pe.value,
1285
+ show: _.value.showTooltip && pe.value,
1266
1286
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1267
1287
  color: e.value.style.chart.tooltip.color,
1268
1288
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -1272,94 +1292,94 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
1272
1292
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1273
1293
  position: e.value.style.chart.tooltip.position,
1274
1294
  offsetY: e.value.style.chart.tooltip.offsetY,
1275
- parent: N.value,
1295
+ parent: I.value,
1276
1296
  content: ye.value,
1277
- isFullscreen: G.value,
1297
+ isFullscreen: W.value,
1278
1298
  isCustom: i(At)(e.value.style.chart.tooltip.customFormat),
1279
1299
  smooth: e.value.style.chart.tooltip.smooth,
1280
1300
  backdropFilter: e.value.style.chart.tooltip.backdropFilter,
1281
1301
  smoothForce: e.value.style.chart.tooltip.smoothForce,
1282
1302
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
1283
1303
  }, {
1284
- "tooltip-before": L(() => [
1285
- _(t.$slots, "tooltip-before", Q(J({ ...Le.value })), void 0, !0)
1304
+ "tooltip-before": g(() => [
1305
+ b(t.$slots, "tooltip-before", N(D({ ...Le.value })), void 0, !0)
1286
1306
  ]),
1287
- "tooltip-after": L(() => [
1288
- _(t.$slots, "tooltip-after", Q(J({ ...Le.value })), void 0, !0)
1307
+ "tooltip-after": g(() => [
1308
+ b(t.$slots, "tooltip-after", N(D({ ...Le.value })), void 0, !0)
1289
1309
  ]),
1290
1310
  _: 3
1291
1311
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
1292
1312
  y("div", {
1293
1313
  id: `legend-bottom-${p.value}`
1294
- }, null, 8, pa),
1295
- Qe.value ? (u(), B(fl, {
1314
+ }, null, 8, pl),
1315
+ Qe.value ? (n(), U(fa, {
1296
1316
  key: 5,
1297
1317
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${p.value}` : `#legend-bottom-${p.value}`
1298
1318
  }, [
1299
- e.value.style.chart.legend.show ? (u(), r("div", {
1319
+ e.value.style.chart.legend.show ? (n(), r("div", {
1300
1320
  key: 0,
1301
1321
  ref_key: "chartLegend",
1302
1322
  ref: be,
1303
- class: M({ "vue-ui-nested-donuts-legend": re.value.length > 1 })
1323
+ class: E({ "vue-ui-nested-donuts-legend": re.value.length > 1 })
1304
1324
  }, [
1305
- (u(!0), r(A, null, T(re.value, (a, o) => (u(), B(El, {
1325
+ (n(!0), r(A, null, T(re.value, (l, o) => (n(), U(Ea, {
1306
1326
  key: `legend_${o}_${qe.value}`,
1307
- legendSet: a,
1327
+ legendSet: l,
1308
1328
  config: Kt.value,
1309
- onClickMarker: s[0] || (s[0] = ({ legend: l }) => W(l))
1329
+ onClickMarker: s[0] || (s[0] = ({ legend: a }) => H(a))
1310
1330
  }, {
1311
- legendTitle: L(({ titleSet: l }) => [
1312
- l[0] && l[0].arcOf ? (u(), r("div", ya, I(l[0].arcOf), 1)) : C("", !0)
1331
+ legendTitle: g(({ titleSet: a }) => [
1332
+ a[0] && a[0].arcOf ? (n(), r("div", yl, V(a[0].arcOf), 1)) : x("", !0)
1313
1333
  ]),
1314
- item: L(({ legend: l, index: n }) => [
1334
+ item: g(({ legend: a, index: u }) => [
1315
1335
  y("div", {
1316
- onClick: (v) => W(l),
1317
- style: he(`opacity:${b.value.includes(l.id) ? 0.5 : 1}`)
1318
- }, I(l.display), 13, ga)
1336
+ onClick: (c) => H(a),
1337
+ style: he(`opacity:${w.value.includes(a.id) ? 0.5 : 1}`)
1338
+ }, V(a.display), 13, gl)
1319
1339
  ]),
1320
1340
  _: 1
1321
1341
  }, 8, ["legendSet", "config"]))), 128))
1322
- ], 2)) : C("", !0)
1323
- ], 8, ["to"])) : C("", !0),
1324
- e.value.style.chart.legend.show ? C("", !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", {
1325
1345
  key: 6,
1326
1346
  ref_key: "chartLegend",
1327
1347
  ref: be
1328
1348
  }, [
1329
- _(t.$slots, "legend", { legend: re.value }, void 0, !0)
1349
+ b(t.$slots, "legend", { legend: re.value }, void 0, !0)
1330
1350
  ], 512)),
1331
- t.$slots.source ? (u(), r("div", {
1351
+ t.$slots.source ? (n(), r("div", {
1332
1352
  key: 7,
1333
1353
  ref_key: "source",
1334
1354
  ref: Ye,
1335
1355
  dir: "auto"
1336
1356
  }, [
1337
- _(t.$slots, "source", {}, void 0, !0)
1338
- ], 512)) : C("", !0),
1339
- fe.value && e.value.userOptions.buttons.table ? (u(), B(pl(le.value.component), yl({ key: 8 }, le.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, {
1340
1360
  ref_key: "tableUnit",
1341
1361
  ref: ee,
1342
1362
  onClose: bt
1343
1363
  }), $t({
1344
- content: L(() => [
1345
- (u(), B(i(Vt), {
1364
+ content: g(() => [
1365
+ (n(), U(i(Vt), {
1346
1366
  key: `table_${He.value}`,
1347
1367
  colNames: ie.value.colNames,
1348
1368
  head: ie.value.head,
1349
1369
  body: ie.value.body,
1350
1370
  config: ie.value.config,
1351
- title: e.value.table.useDialog ? "" : le.value.title,
1371
+ title: e.value.table.useDialog ? "" : ae.value.title,
1352
1372
  withCloseButton: !e.value.table.useDialog,
1353
1373
  onClose: bt
1354
1374
  }, {
1355
- th: L(({ th: a }) => [
1375
+ th: g(({ th: l }) => [
1356
1376
  y("div", {
1357
- innerHTML: a,
1377
+ innerHTML: l,
1358
1378
  style: { display: "flex", "align-items": "center" }
1359
- }, null, 8, ba)
1379
+ }, null, 8, bl)
1360
1380
  ]),
1361
- td: L(({ td: a }) => [
1362
- Lt(I(a.name || a), 1)
1381
+ td: g(({ td: l }) => [
1382
+ Lt(V(l.name || l), 1)
1363
1383
  ]),
1364
1384
  _: 1
1365
1385
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -1368,32 +1388,32 @@ const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "heigh
1368
1388
  }, [
1369
1389
  e.value.table.useDialog ? {
1370
1390
  name: "title",
1371
- fn: L(() => [
1372
- Lt(I(le.value.title), 1)
1391
+ fn: g(() => [
1392
+ Lt(V(ae.value.title), 1)
1373
1393
  ]),
1374
1394
  key: "0"
1375
1395
  } : void 0,
1376
1396
  e.value.table.useDialog ? {
1377
1397
  name: "actions",
1378
- fn: L(() => [
1398
+ fn: g(() => [
1379
1399
  y("button", {
1380
1400
  tabindex: "0",
1381
1401
  class: "vue-ui-user-options-button",
1382
- 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))
1383
1403
  }, [
1384
1404
  Ve(i(It), {
1385
1405
  name: "excel",
1386
- stroke: le.value.props.color
1406
+ stroke: ae.value.props.color
1387
1407
  }, null, 8, ["stroke"])
1388
1408
  ])
1389
1409
  ]),
1390
1410
  key: "1"
1391
1411
  } : void 0
1392
- ]), 1040)) : C("", !0),
1393
- i(we) ? (u(), B(Nl, { key: 9 })) : C("", !0)
1394
- ], 46, Rl));
1412
+ ]), 1040)) : x("", !0),
1413
+ i(we) ? (n(), U(Na, { key: 9 })) : x("", !0)
1414
+ ], 46, Ra));
1395
1415
  }
1396
- }, Ia = /* @__PURE__ */ Ul(ma, [["__scopeId", "data-v-2263029b"]]);
1416
+ }, Il = /* @__PURE__ */ Ua(ml, [["__scopeId", "data-v-92467a66"]]);
1397
1417
  export {
1398
- Ia as default
1418
+ Il as default
1399
1419
  };