vue-data-ui 3.0.0-next.5 → 3.0.0-next.50

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 (115) hide show
  1. package/dist/{Arrow-6c56sGJ3.js → Arrow-Z9jhaVP0.js} +1 -1
  2. package/dist/{BaseDraggableDialog-y-BEzdTM.js → BaseDraggableDialog-CXFM6lrb.js} +2 -2
  3. package/dist/{BaseIcon-C-MP5EHV.js → BaseIcon-D3lVmh4q.js} +1 -1
  4. package/dist/{useLoading-Bt5Doa8m.js → BaseScanner-DIK2NTdp.js} +11 -11
  5. package/dist/{ColorPicker-P7R8vBej.js → ColorPicker-CZydWpxG.js} +2 -2
  6. package/dist/{DataTable-DD2pZIgh.js → DataTable-DBPMgoC3.js} +2 -2
  7. package/dist/{Legend-DZZeyx5j.js → Legend-Dj4hW4ih.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-uETwt6yC.js → NonSvgPenAndPaper-JPMlKVW3.js} +3 -3
  9. package/dist/{PackageVersion-D3jqYZS6.js → PackageVersion-_JpUHIQF.js} +1 -1
  10. package/dist/{PenAndPaper-Dy9zUXnw.js → PenAndPaper-CiXy6ifX.js} +3 -3
  11. package/dist/{Shape-CFp_TwS5.js → Shape-BLUp5WPA.js} +43 -37
  12. package/dist/Slicer-QbudvRet.js +602 -0
  13. package/dist/{SparkTooltip-BMV9aNLi.js → SparkTooltip-Nh3_vlzT.js} +7 -7
  14. package/dist/{Title-zqtIOYc5.js → Title-CxOYqn0J.js} +1 -1
  15. package/dist/{Tooltip-Bo30Qf34.js → Tooltip-CzRs24i2.js} +23 -19
  16. package/dist/{UserOptions-Cgrlu96K.js → UserOptions-RZkXTOCa.js} +2 -2
  17. package/dist/{dom-to-png-SVXVB8J4.js → dom-to-png-CV2fR0EQ.js} +1 -1
  18. package/dist/{img-DJTFe-dE.js → img-B7ogJ4e0.js} +1 -1
  19. package/dist/{index-DFSXaw69.js → index-CJ_8wwwn.js} +1594 -1216
  20. package/dist/{pdf-D-ie2h2J.js → pdf-set5F9CM.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +324 -14
  23. package/dist/types/vue-data-ui.d.ts +324 -14
  24. package/dist/useAutoSizeLabelsInsideViewbox-CyuM0n69.js +41 -0
  25. package/dist/{useNestedProp-CV3NndHa.js → useNestedProp-Co3NIfJz.js} +1 -1
  26. package/dist/{usePrinter-DXG9SdJr.js → usePrinter-Djgu-cC0.js} +2 -2
  27. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  28. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
  29. package/dist/{vue-data-ui-DhThPvS0.js → vue-data-ui-HYXpyDKV.js} +64 -64
  30. package/dist/vue-data-ui.js +30 -29
  31. package/dist/{vue-ui-3d-bar-C1M9fXQl.js → vue-ui-3d-bar-CT_YtMoO.js} +6 -6
  32. package/dist/{vue-ui-accordion-B-PjY4U8.js → vue-ui-accordion-3yBUN0ar.js} +3 -3
  33. package/dist/vue-ui-age-pyramid-FUsbvtyA.js +834 -0
  34. package/dist/{vue-ui-annotator-DauoYrzs.js → vue-ui-annotator-C4Z-9ldl.js} +2 -2
  35. package/dist/vue-ui-bullet-B1ALDthr.js +571 -0
  36. package/dist/vue-ui-candlestick-BuD3f7_o.js +999 -0
  37. package/dist/{vue-ui-carousel-table-B7i9TvuL.js → vue-ui-carousel-table-Dm_FdAF0.js} +4 -4
  38. package/dist/{vue-ui-chestnut-D9HL_oAu.js → vue-ui-chestnut-WTwQvrY9.js} +5 -5
  39. package/dist/{vue-ui-chord-BaEQ4_bQ.js → vue-ui-chord-CPVmSnYG.js} +8 -8
  40. package/dist/{vue-ui-circle-pack-DumySU9s.js → vue-ui-circle-pack-Bc8bJtl0.js} +26 -26
  41. package/dist/{vue-ui-cursor-D-88A6ue.js → vue-ui-cursor-DfZVsgB6.js} +2 -2
  42. package/dist/{vue-ui-dashboard-Br7MlswR.js → vue-ui-dashboard-BP5AhItc.js} +62 -62
  43. package/dist/{vue-ui-digits-BMb2ZxN9.js → vue-ui-digits-FvXrM2xK.js} +2 -2
  44. package/dist/{vue-ui-donut-NZIGKCYr.js → vue-ui-donut-3JmvHI0A.js} +401 -375
  45. package/dist/vue-ui-donut-evolution-DiBD970y.js +1075 -0
  46. package/dist/{vue-ui-dumbbell-B7jEqxUu.js → vue-ui-dumbbell-BiD393o3.js} +7 -7
  47. package/dist/vue-ui-flow-DbdQR23z.js +841 -0
  48. package/dist/{vue-ui-funnel-BRfQjCk6.js → vue-ui-funnel-DByaDRM7.js} +6 -6
  49. package/dist/{vue-ui-galaxy-u0oNgjDP.js → vue-ui-galaxy-C4Al6xQj.js} +60 -58
  50. package/dist/vue-ui-gauge-DjUtEfNU.js +791 -0
  51. package/dist/{vue-ui-gizmo-6QSDxdTp.js → vue-ui-gizmo-CzrxRz6L.js} +3 -3
  52. package/dist/vue-ui-heatmap-HVYUxTOT.js +1078 -0
  53. package/dist/vue-ui-history-plot-DXSpSL4A.js +1073 -0
  54. package/dist/{vue-ui-kpi-DwOX2xG0.js → vue-ui-kpi-DU8bOzeM.js} +3 -3
  55. package/dist/{vue-ui-mini-loader-CrAhBt4w.js → vue-ui-mini-loader-E4KhKAQz.js} +2 -2
  56. package/dist/{vue-ui-molecule-DVPFCYdv.js → vue-ui-molecule-DrFrNbBj.js} +46 -44
  57. package/dist/{vue-ui-mood-radar-BPCedEDi.js → vue-ui-mood-radar-Cf_2QCYC.js} +7 -7
  58. package/dist/vue-ui-nested-donuts-BnA1KtIt.js +1286 -0
  59. package/dist/vue-ui-onion-B84CPvyH.js +776 -0
  60. package/dist/vue-ui-parallel-coordinate-plot-D4Ct2cvP.js +915 -0
  61. package/dist/{vue-ui-quadrant-CRR0XJzp.js → vue-ui-quadrant-8ksd3FSu.js} +59 -57
  62. package/dist/vue-ui-quick-chart-BY8Kd1LO.js +1761 -0
  63. package/dist/{vue-ui-radar-Fxk4Nq3_.js → vue-ui-radar-BUQaHh0L.js} +12 -10
  64. package/dist/{vue-ui-rating-EwwvsCi3.js → vue-ui-rating-Cn1_Hn2b.js} +2 -2
  65. package/dist/{vue-ui-relation-circle-DB7plTEJ.js → vue-ui-relation-circle-DPKDfjYx.js} +6 -6
  66. package/dist/vue-ui-ridgeline-zvRHpo_N.js +1153 -0
  67. package/dist/vue-ui-rings-Tw1dHWHH.js +728 -0
  68. package/dist/vue-ui-scatter-8LZZMVhD.js +1178 -0
  69. package/dist/{vue-ui-skeleton-1OErZL6t.js → vue-ui-skeleton-DVxUvega.js} +3 -3
  70. package/dist/{vue-ui-smiley-C_8dvJDX.js → vue-ui-smiley-DJTTUjT_.js} +2 -2
  71. package/dist/{vue-ui-spark-trend-Ds3apeYN.js → vue-ui-spark-trend-Dsku4oGR.js} +6 -6
  72. package/dist/{vue-ui-sparkbar-NpyQVY-J.js → vue-ui-sparkbar-Br_fLEOr.js} +3 -3
  73. package/dist/{vue-ui-sparkgauge-BYHhBxke.js → vue-ui-sparkgauge-DSBJsCu3.js} +3 -3
  74. package/dist/{vue-ui-sparkhistogram-DFbQ-g2X.js → vue-ui-sparkhistogram-BX6SXzWN.js} +4 -4
  75. package/dist/vue-ui-sparkline-DgVH0bCY.js +489 -0
  76. package/dist/{vue-ui-sparkstackbar-BxMFKBBt.js → vue-ui-sparkstackbar-D-KbMYmo.js} +55 -53
  77. package/dist/vue-ui-stackbar-DWOm3J6d.js +1370 -0
  78. package/dist/{vue-ui-strip-plot-Crml8nCi.js → vue-ui-strip-plot-Bi4PWqJG.js} +30 -28
  79. package/dist/{vue-ui-table-C3lxyo1m.js → vue-ui-table-Ac5mvoTX.js} +11 -11
  80. package/dist/{vue-ui-table-heatmap-DYgu1wOK.js → vue-ui-table-heatmap-DtN-NEea.js} +5 -5
  81. package/dist/{vue-ui-table-sparkline-B_eROo0E.js → vue-ui-table-sparkline-Dm9VtfGM.js} +4 -4
  82. package/dist/{vue-ui-thermometer-Dn8-68zJ.js → vue-ui-thermometer-CKzsQxea.js} +6 -6
  83. package/dist/{vue-ui-timer-CREgpYVZ.js → vue-ui-timer-CRuQHU_f.js} +5 -5
  84. package/dist/vue-ui-tiremarks-0mS5yMkd.js +406 -0
  85. package/dist/vue-ui-treemap-BkU919fN.js +1035 -0
  86. package/dist/{vue-ui-vertical-bar-BYtbI3Eq.js → vue-ui-vertical-bar-ByPC7JmK.js} +322 -306
  87. package/dist/vue-ui-waffle-GWXnMKeQ.js +910 -0
  88. package/dist/{vue-ui-wheel-CUgfhL9p.js → vue-ui-wheel-PP-IY2XR.js} +6 -6
  89. package/dist/{vue-ui-word-cloud-DBJueUIP.js → vue-ui-word-cloud-Cc5c_8Z1.js} +12 -10
  90. package/dist/{vue-ui-world-DR6IEkat.js → vue-ui-world-B1zbPwk3.js} +11 -9
  91. package/dist/vue-ui-xy-D7Sx_bPF.js +3760 -0
  92. package/dist/{vue-ui-xy-canvas-C2k2SOVa.js → vue-ui-xy-canvas-sA_OEIMw.js} +265 -264
  93. package/package.json +1 -1
  94. package/dist/Slicer-Bba4UfIm.js +0 -577
  95. package/dist/vue-ui-age-pyramid-Bt0KEjza.js +0 -746
  96. package/dist/vue-ui-bullet-CWxvbrat.js +0 -513
  97. package/dist/vue-ui-candlestick-BmYaA6wk.js +0 -873
  98. package/dist/vue-ui-donut-evolution-D38U9QxB.js +0 -903
  99. package/dist/vue-ui-flow-k4KjXCTn.js +0 -765
  100. package/dist/vue-ui-gauge-DUpSrOgm.js +0 -738
  101. package/dist/vue-ui-heatmap-CqqXcJ8F.js +0 -877
  102. package/dist/vue-ui-history-plot-BiC39PhQ.js +0 -924
  103. package/dist/vue-ui-nested-donuts-C2kl6581.js +0 -1177
  104. package/dist/vue-ui-onion-Dk3OUNGJ.js +0 -701
  105. package/dist/vue-ui-parallel-coordinate-plot-B-r0h3BM.js +0 -807
  106. package/dist/vue-ui-quick-chart-CS-Uk49C.js +0 -1612
  107. package/dist/vue-ui-ridgeline-D55xotqc.js +0 -969
  108. package/dist/vue-ui-rings-D6gr6DBO.js +0 -685
  109. package/dist/vue-ui-scatter-hFI2YfFt.js +0 -1045
  110. package/dist/vue-ui-sparkline-CiVlvGOI.js +0 -459
  111. package/dist/vue-ui-stackbar-DHsxlaNI.js +0 -1207
  112. package/dist/vue-ui-tiremarks-DrFKdGSj.js +0 -358
  113. package/dist/vue-ui-treemap-C1m-cAh0.js +0 -965
  114. package/dist/vue-ui-waffle-Cr0JqMuU.js +0 -863
  115. package/dist/vue-ui-xy-BCFKGTws.js +0 -2980
@@ -1,20 +1,23 @@
1
- import { defineAsyncComponent as ce, useSlots as sl, computed as y, shallowRef as U, ref as p, onMounted as ul, onBeforeUnmount as nl, toRefs as rl, watch as ge, createElementBlock as r, openBlock as n, normalizeStyle as $, normalizeClass as Xe, createBlock as ae, createCommentVNode as v, renderSlot as w, createElementVNode as h, createVNode as De, unref as u, createSlots as wt, withCtx as A, normalizeProps as he, guardReactiveProps as ye, Fragment as b, renderList as F, mergeProps as kt, toDisplayString as I, withDirectives as xt, createTextVNode as Be, vShow as _t, nextTick as il } from "vue";
2
- import { u as vl, o as $t, e as Ve, g as dl, c as cl, A as hl, b as yl, v as fl, d as Ct, p as oe, m as At, $ as pl, f as N, X as gl, s as Ce, w as ml, j as bl, N as P, i as V, k as fe, n as x, a0 as Tt, a1 as wl, a2 as kl, t as xl, a as _l, C as Ee, q as $l, r as Cl, x as Al, T as St } from "./index-DFSXaw69.js";
3
- import { t as Tl, u as Sl } from "./useResponsive-DfdjqQps.js";
4
- import { u as Pt } from "./useNestedProp-CV3NndHa.js";
5
- import { u as Pl } from "./usePrinter-DXG9SdJr.js";
6
- import { u as Fl } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Ll } from "./useChartAccessibility-9icAAmYg.js";
8
- import Il from "./Legend-DZZeyx5j.js";
9
- import Ml from "./Title-zqtIOYc5.js";
10
- import { _ as zl } from "./Shape-CFp_TwS5.js";
11
- import { u as Ol, B as Nl } from "./useLoading-Bt5Doa8m.js";
12
- import Yl from "./img-DJTFe-dE.js";
13
- import { _ as Xl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { key: 1 }, Gl = ["id"], Rl = ["stop-color"], ql = ["offset", "stop-color"], Wl = ["offset", "stop-color"], Ul = ["stop-color"], Hl = { key: 2 }, jl = ["id", "cx", "cy"], Jl = ["stop-color", "stop-opacity"], Kl = ["stop-color"], Ql = ["id"], Zl = ["id"], ea = ["id"], ta = ["flood-color"], la = ["id"], aa = ["flood-color"], oa = ["d", "stroke", "filter"], sa = ["d", "stroke", "filter"], ua = ["cx", "cy", "r", "fill", "filter"], na = { key: 6 }, ra = ["stroke", "d"], ia = ["d", "fill", "stroke", "stroke-width", "filter"], va = { key: 0 }, da = ["d", "fill", "stroke", "stroke-width", "filter"], ca = { key: 0 }, ha = ["stroke", "d"], ya = { key: 0 }, fa = ["d", "stroke", "stroke-width", "filter"], pa = { key: 1 }, ga = ["d", "fill", "stroke", "stroke-width", "filter"], ma = ["d", "fill", "stroke", "stroke-width", "filter"], ba = { key: 1 }, wa = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ka = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], xa = { key: 0 }, _a = ["d", "fill", "stroke", "stroke-width"], $a = ["cx", "cy", "r", "stroke"], Ca = ["cx", "cy", "r", "fill"], Aa = ["cx", "cy", "r"], Ta = { key: 0 }, Sa = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], Pa = { key: 1 }, Fa = ["cx", "cy", "r"], La = ["x", "y", "fill", "font-size"], Ia = ["x", "y", "fill", "font-size"], Ma = ["x", "y", "fill", "font-size"], za = ["x", "y", "fill", "font-size"], Oa = ["filter"], Na = { key: 0 }, Ya = ["x", "y"], Xa = { key: 1 }, Da = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Ba = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Va = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Ea = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], Ga = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Ra = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], qa = { key: 2 }, Wa = ["x", "y", "width"], Ua = ["x", "y", "width"], Ha = {
1
+ import { defineAsyncComponent as ye, useSlots as rl, computed as y, shallowRef as H, ref as p, onMounted as kt, onBeforeUnmount as xt, toRefs as il, watch as ge, createElementBlock as r, openBlock as n, normalizeStyle as $, normalizeClass as Be, createBlock as ae, createCommentVNode as v, renderSlot as b, createElementVNode as h, createVNode as Ve, unref as u, createSlots as _t, withCtx as A, normalizeProps as oe, guardReactiveProps as se, Fragment as w, renderList as L, mergeProps as $t, toDisplayString as I, withDirectives as Ct, createTextVNode as Ee, vShow as At, nextTick as vl } from "vue";
2
+ import { u as dl, o as Tt, e as Re, g as cl, c as hl, v as yl, b as fl, w as pl, d as St, p as ne, m as Pt, a0 as gl, f as N, X as ml, s as Ce, x as bl, j as wl, N as P, i as V, k as fe, n as x, a1 as Ft, U as kl, a2 as xl, t as _l, a as $l, C as Ge, q as Cl, r as Al, y as Tl, T as Lt } from "./index-CJ_8wwwn.js";
3
+ import { t as Sl, u as Pl } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Fl } from "./usePrinter-Djgu-cC0.js";
5
+ import { u as Ll, B as Il } from "./BaseScanner-DIK2NTdp.js";
6
+ import { u as It } from "./useNestedProp-Co3NIfJz.js";
7
+ import { u as Ml } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as zl } from "./useChartAccessibility-9icAAmYg.js";
9
+ import Ol from "./img-B7ogJ4e0.js";
10
+ import { _ as Nl } from "./Shape-BLUp5WPA.js";
11
+ import Yl from "./Title-CxOYqn0J.js";
12
+ import Xl from "./Legend-Dj4hW4ih.js";
13
+ import { _ as Dl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Rl = { key: 1 }, Gl = ["id"], ql = ["stop-color"], Ul = ["offset", "stop-color"], Wl = ["offset", "stop-color"], Hl = ["stop-color"], jl = { key: 2 }, Jl = ["id", "cx", "cy"], Kl = ["stop-color", "stop-opacity"], Ql = ["stop-color"], Zl = ["id"], ea = ["id"], ta = ["id"], la = ["flood-color"], aa = ["id"], oa = ["flood-color"], sa = ["d", "stroke", "filter"], na = ["d", "stroke", "filter"], ua = ["cx", "cy", "r", "fill", "filter"], ra = { key: 6 }, ia = ["stroke", "d"], va = ["d", "fill", "stroke", "stroke-width", "filter"], da = { key: 0 }, ca = ["d", "fill", "stroke", "stroke-width", "filter"], ha = { key: 0 }, ya = ["stroke", "d"], fa = { key: 0 }, pa = ["d", "stroke", "stroke-width", "filter"], ga = { key: 1 }, ma = ["d", "fill", "stroke", "stroke-width", "filter"], ba = ["d", "fill", "stroke", "stroke-width", "filter"], wa = { key: 1 }, ka = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], xa = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], _a = { key: 0 }, $a = ["d", "fill", "stroke", "stroke-width"], Ca = ["cx", "cy", "r", "stroke"], Aa = ["cx", "cy", "r", "fill"], Ta = ["cx", "cy", "r"], Sa = { key: 0 }, Pa = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], Fa = { key: 1 }, La = ["cx", "cy", "r"], Ia = ["x", "y", "fill", "font-size"], Ma = ["x", "y", "fill", "font-size"], za = ["x", "y", "fill", "font-size"], Oa = ["x", "y", "fill", "font-size"], Na = ["filter"], Ya = { key: 0 }, Xa = ["x", "y"], Da = { key: 1 }, Ba = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Va = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Ea = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Ra = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], Ga = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], qa = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], Ua = { key: 2 }, Wa = ["x", "y", "width"], Ha = ["x", "y", "width"], ja = {
15
15
  key: 4,
16
16
  class: "vue-data-ui-watermark"
17
- }, ja = ["onClick"], Ja = ["innerHTML"], Ka = {
17
+ }, Ja = ["onClick"], Ka = {
18
+ key: 6,
19
+ class: "vue-ui-donut-hollow"
20
+ }, Qa = ["innerHTML"], Za = {
18
21
  __name: "vue-ui-donut",
19
22
  props: {
20
23
  config: {
@@ -31,15 +34,15 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
31
34
  }
32
35
  },
33
36
  emits: ["selectLegend", "selectDatapoint"],
34
- setup(Ge, { expose: Ft, emit: Lt }) {
35
- const It = ce(() => import("./vue-ui-accordion-B-PjY4U8.js")), Mt = ce(() => import("./DataTable-DD2pZIgh.js")), zt = ce(() => import("./PackageVersion-D3jqYZS6.js")), Ot = ce(() => import("./PenAndPaper-Dy9zUXnw.js")), Nt = ce(() => import("./Tooltip-Bo30Qf34.js")), Yt = ce(() => import("./UserOptions-Cgrlu96K.js")), { vue_ui_donut: Xt } = vl(), Dt = sl(), k = Ge, me = y({
37
+ setup(qe, { expose: Mt, emit: zt }) {
38
+ const Ot = ye(() => import("./vue-ui-accordion-3yBUN0ar.js")), Nt = ye(() => import("./DataTable-DBPMgoC3.js")), Yt = ye(() => import("./PackageVersion-_JpUHIQF.js")), Xt = ye(() => import("./PenAndPaper-CiXy6ifX.js")), Dt = ye(() => import("./Tooltip-CzRs24i2.js")), Bt = ye(() => import("./UserOptions-RZkXTOCa.js")), { vue_ui_donut: Vt } = dl(), Et = rl(), k = qe, me = y({
36
39
  get() {
37
40
  return !!k.dataset && k.dataset.length;
38
41
  },
39
42
  set(l) {
40
43
  return l;
41
44
  }
42
- }), H = U(null), be = p(null), Ae = p(null), Te = p(null), Re = U(null), qe = U(null), j = U(null), se = U(null), We = U(null), Ue = U(null), He = p(0), je = p(0), Je = p(0), we = y({
45
+ }), E = H(null), be = p(null), Ae = p(null), Te = p(null), Ue = H(null), We = H(null), j = H(null), ue = H(null), He = H(null), je = H(null), Je = p(0), Ke = p(0), Qe = p(0), we = y({
43
46
  get: () => e.value.style.chart.layout.labels.percentage.fontSize,
44
47
  set: (l) => l
45
48
  }), J = y({
@@ -47,10 +50,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
47
50
  set: (l) => l
48
51
  });
49
52
  let Se = !1;
50
- const G = () => {
53
+ const R = () => {
51
54
  !e.value.autoSize || Se || (Se = !0, requestAnimationFrame(() => {
52
55
  Se = !1;
53
- const l = e.value, o = be.value, t = ne.value;
56
+ const l = e.value, o = be.value, t = ie.value;
54
57
  if (!l.autoSize || !o || !t) return;
55
58
  const [a, i, c, m] = t.getAttribute("viewBox").split(" ").map(Number), C = { x: a, y: i, width: c, height: m }, z = [
56
59
  {
@@ -66,92 +69,106 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
66
69
  sizeRef: J
67
70
  }
68
71
  ];
69
- z.map((B) => o.querySelectorAll(B.selector).length).reduce((B, Z) => B + Z, 0) !== 0 && (z.forEach(({ selector: B, baseSize: Z, minSize: Ye, sizeRef: ll }) => {
70
- o.querySelectorAll(B).forEach((al) => {
71
- const ol = wl({
72
- el: al,
72
+ z.map((B) => o.querySelectorAll(B.selector).length).reduce((B, Z) => B + Z, 0) !== 0 && (z.forEach(({ selector: B, baseSize: Z, minSize: De, sizeRef: sl }) => {
73
+ o.querySelectorAll(B).forEach((nl) => {
74
+ const ul = kl({
75
+ el: nl,
73
76
  bounds: C,
74
77
  currentFontSize: Z,
75
- minFontSize: Ye,
78
+ minFontSize: De,
76
79
  attempts: 200,
77
80
  padding: 1
78
81
  });
79
- ll.value = ol;
82
+ sl.value = ul;
80
83
  });
81
- }), e.value.autoSize && Ae.value && Te.value && kl({
84
+ }), e.value.autoSize && Ae.value && Te.value && xl({
82
85
  el: Ae.value,
83
86
  container: Te.value
84
87
  }));
85
88
  }));
86
89
  };
87
- ul(async () => {
88
- Ke(), requestAnimationFrame(G);
89
- }), nl(() => {
90
- j.value && (se.value && j.value.unobserve(se.value), j.value.disconnect());
90
+ kt(async () => {
91
+ Ze(), requestAnimationFrame(R);
91
92
  });
92
- const Pe = y(() => !!e.value.debug);
93
- function Ke() {
94
- if ($t(k.dataset) ? (Ve({
93
+ let Pe;
94
+ kt(() => {
95
+ E.value && (Pe = new ResizeObserver((l) => {
96
+ for (const o of l) {
97
+ const { width: t, height: a } = o.contentRect;
98
+ if (t > 0 && a > 0) {
99
+ R();
100
+ break;
101
+ }
102
+ }
103
+ }), Pe.observe(E.value.parentElement));
104
+ }), xt(() => {
105
+ Pe?.disconnect();
106
+ }), xt(() => {
107
+ j.value && (ue.value && j.value.unobserve(ue.value), j.value.disconnect());
108
+ });
109
+ const Fe = y(() => !!e.value.debug);
110
+ function Ze() {
111
+ if (Tt(k.dataset) ? (Re({
95
112
  componentName: "VueUiDonut",
96
113
  type: "dataset",
97
- debug: Pe.value
114
+ debug: Fe.value
98
115
  }), me.value = !1, xe.value = !0) : (k.dataset.forEach((l, o) => {
99
- dl({
116
+ cl({
100
117
  datasetObject: l,
101
118
  requiredAttributes: ["name", "values"]
102
119
  }).forEach((t) => {
103
- Ve({
120
+ Re({
104
121
  componentName: "VueUiDonut",
105
122
  type: "datasetSerieAttribute",
106
123
  property: t,
107
124
  index: o,
108
- debug: Pe.value
125
+ debug: Fe.value
109
126
  }), me.value = !1, xe.value = !0;
110
127
  });
111
128
  }), k.dataset.forEach((l, o) => {
112
- (!l.name || l.name === "") && Ve({
129
+ (!l.name || l.name === "") && Re({
113
130
  componentName: "VueUiDonut",
114
131
  type: "datasetAttributeEmpty",
115
132
  property: "name",
116
133
  index: o,
117
- debug: Pe.value
134
+ debug: Fe.value
118
135
  });
119
- })), $t(k.dataset) || (xe.value = e.value.loading), e.value.responsive) {
120
- const l = Tl(() => {
121
- const { width: o, height: t } = Sl({
122
- chart: H.value,
123
- title: e.value.style.chart.title.text ? Re.value : null,
124
- legend: e.value.style.chart.legend.show ? qe.value : null,
125
- source: We.value,
126
- noTitle: Ue.value,
127
- padding: e.value.autoSize ? void 0 : lt.value
136
+ })), Tt(k.dataset) || (xe.value = e.value.loading), e.value.responsive) {
137
+ const l = Sl(() => {
138
+ const { width: o, height: t } = Pl({
139
+ chart: E.value,
140
+ title: e.value.style.chart.title.text ? Ue.value : null,
141
+ legend: e.value.style.chart.legend.show ? We.value : null,
142
+ source: He.value,
143
+ noTitle: je.value,
144
+ padding: e.value.autoSize ? void 0 : ot.value
128
145
  });
129
146
  requestAnimationFrame(() => {
130
- s.value.width = o, s.value.height = t, G();
147
+ s.value.width = o, s.value.height = t, R();
131
148
  });
132
149
  });
133
- j.value && (se.value && j.value.unobserve(se.value), j.value.disconnect()), j.value = new ResizeObserver(l), se.value = H.value.parentNode, j.value.observe(se.value);
150
+ j.value && (ue.value && j.value.unobserve(ue.value), j.value.disconnect()), j.value = new ResizeObserver(l), ue.value = E.value.parentNode, j.value.observe(ue.value);
134
151
  }
135
152
  }
136
- const g = p(cl()), Bt = p(null), Fe = p(!1), Le = p(""), Y = p(null), Qe = p(0);
137
- function Ie() {
138
- const l = Pt({
153
+ const g = p(hl()), Rt = p(null), Le = p(!1), Ie = p(""), Y = p(null), et = p(0);
154
+ function Me() {
155
+ const l = It({
139
156
  userConfig: k.config,
140
- defaultConfig: Xt
157
+ defaultConfig: Vt
141
158
  });
142
159
  let o = {};
143
160
  return l.theme ? o = {
144
- ...Pt({
145
- userConfig: _l.vue_ui_donut[l.theme] || k.config,
161
+ ...It({
162
+ userConfig: $l.vue_ui_donut[l.theme] || k.config,
146
163
  defaultConfig: l
147
164
  }),
148
- customPalette: xl[l.theme] || oe
149
- } : o = l, k.config && Ee(k.config, "events.datapointEnter") ? o.events.datapointEnter = k.config.events.datapointEnter : o.events.datapointEnter = null, k.config && Ee(k.config, "events.datapointLeave") ? o.events.datapointLeave = k.config.events.datapointLeave : o.events.datapointLeave = null, k.config && Ee(k.config, "events.datapointClick") ? o.events.datapointClick = k.config.events.datapointClick : o.events.datapointClick = null, o;
165
+ customPalette: _l[l.theme] || ne
166
+ } : o = l, k.config && Ge(k.config, "events.datapointEnter") ? o.events.datapointEnter = k.config.events.datapointEnter : o.events.datapointEnter = null, k.config && Ge(k.config, "events.datapointLeave") ? o.events.datapointLeave = k.config.events.datapointLeave : o.events.datapointLeave = null, k.config && Ge(k.config, "events.datapointClick") ? o.events.datapointClick = k.config.events.datapointClick : o.events.datapointClick = null, o;
150
167
  }
151
- const e = p(Ie()), { loading: ke, FINAL_DATASET: ue, manualLoading: xe, skeletonDataset: Vt } = Ol({
152
- ...rl(k),
168
+ const e = p(Me()), { loading: ke, FINAL_DATASET: re, manualLoading: xe, skeletonDataset: Gt } = Ll({
169
+ ...il(k),
153
170
  FINAL_CONFIG: e,
154
- prepareConfig: Ie,
171
+ prepareConfig: Me,
155
172
  skeletonDataset: [
156
173
  {
157
174
  name: "",
@@ -169,7 +186,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
169
186
  color: "#CACACA"
170
187
  }
171
188
  ],
172
- skeletonConfig: hl({
189
+ skeletonConfig: yl({
173
190
  defaultConfig: e.value,
174
191
  userConfig: {
175
192
  useCssAnimation: !1,
@@ -180,7 +197,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
180
197
  userOptions: { show: !1 },
181
198
  style: {
182
199
  chart: {
183
- backgroundColor: "#999999",
200
+ backgroundColor: "#99999930",
184
201
  layout: {
185
202
  labels: {
186
203
  dataLabels: { show: !1 },
@@ -192,7 +209,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
192
209
  }
193
210
  },
194
211
  legend: {
195
- backgroundColor: "#999999",
212
+ backgroundColor: "transparent",
196
213
  showValue: !1,
197
214
  showPercentage: !1
198
215
  },
@@ -206,36 +223,36 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
206
223
  }
207
224
  }
208
225
  })
209
- }), T = p(!0), R = U([]);
210
- function Et(l, o = 1e3, t = 50) {
226
+ }), T = p(!0), U = H([]);
227
+ function qt(l, o = 1e3, t = 50) {
211
228
  return new Promise((a) => {
212
229
  const i = l.length;
213
- R.value = Array(i).fill(0);
230
+ U.value = Array(i).fill(0);
214
231
  let c = 0;
215
232
  l.forEach((m, C) => {
216
233
  setTimeout(() => {
217
234
  const z = performance.now();
218
235
  function O(B) {
219
- const Z = Math.min((B - z) / o, 1), Ye = St(Z);
220
- R.value[C] = m * Ye, R.value = [...R.value], Z < 1 ? (requestAnimationFrame(O), requestAnimationFrame(G)) : (R.value[C] = m, R.value = [...R.value], c += 1, c === i && a(), requestAnimationFrame(G));
236
+ const Z = Math.min((B - z) / o, 1), De = Lt(Z);
237
+ U.value[C] = m * De, U.value = [...U.value], Z < 1 ? (requestAnimationFrame(O), requestAnimationFrame(R)) : (U.value[C] = m, U.value = [...U.value], c += 1, c === i && a(), requestAnimationFrame(R));
221
238
  }
222
239
  requestAnimationFrame(O);
223
240
  }, C * t);
224
241
  });
225
242
  });
226
243
  }
227
- const Ze = p(!1);
244
+ const tt = p(!1);
228
245
  ge(
229
246
  () => ke.value,
230
247
  async (l) => {
231
- if (l || Ze.value) return;
232
- const o = ue.value === Vt, t = e.value.startAnimation?.show;
248
+ if (l || tt.value) return;
249
+ const o = re.value === Gt, t = e.value.startAnimation?.show;
233
250
  if (!o && t) {
234
- Ze.value = !0;
235
- const a = ue.value.map(
251
+ tt.value = !0;
252
+ const a = re.value.map(
236
253
  (i) => i.values.reduce((c, m) => c + m, 0)
237
254
  );
238
- await Et(
255
+ await qt(
239
256
  a,
240
257
  e.value.startAnimation.durationMs,
241
258
  e.value.startAnimation.staggerMs
@@ -245,17 +262,17 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
245
262
  },
246
263
  { immediate: !0 }
247
264
  );
248
- const { userOptionsVisible: Me, setUserOptionsVisibility: et, keepUserOptionState: tt } = Fl({ config: e.value }), { svgRef: ne } = Ll({ config: e.value.style.chart.title });
249
- function Gt() {
250
- et(!0);
265
+ const { userOptionsVisible: ze, setUserOptionsVisibility: lt, keepUserOptionState: at } = Ml({ config: e.value }), { svgRef: ie } = zl({ config: e.value.style.chart.title });
266
+ function Ut() {
267
+ lt(!0);
251
268
  }
252
- function Rt() {
253
- et(!1);
269
+ function Wt() {
270
+ lt(!1);
254
271
  }
255
272
  ge(() => k.config, (l) => {
256
- ke.value || (e.value = Ie()), Me.value = !e.value.userOptions.showOnChartHover, Ke(), He.value += 1, je.value += 1, Je.value += 1, f.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, f.value.showTable = e.value.table.show, f.value.showTooltip = e.value.style.chart.tooltip.show, s.value.height = e.value.style.chart.height, s.value.width = e.value.style.chart.width;
273
+ ke.value || (e.value = Me()), ze.value = !e.value.userOptions.showOnChartHover, Ze(), Je.value += 1, Ke.value += 1, Qe.value += 1, f.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, f.value.showTable = e.value.table.show, f.value.showTooltip = e.value.style.chart.tooltip.show, s.value.height = e.value.style.chart.height, s.value.width = e.value.style.chart.width;
257
274
  }, { deep: !0 });
258
- const lt = y(() => {
275
+ const ot = y(() => {
259
276
  const { top: l, right: o, bottom: t, left: a } = e.value.style.chart.padding;
260
277
  return {
261
278
  css: `padding:${l}px ${o}px ${t}px ${a}px`,
@@ -264,11 +281,11 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
264
281
  bottom: t,
265
282
  left: a
266
283
  };
267
- }), { isPrinting: at, isImaging: ot, generatePdf: st, generateImage: ut } = Pl({
284
+ }), { isPrinting: st, isImaging: nt, generatePdf: ut, generateImage: rt } = Fl({
268
285
  elementId: `donut__${g.value}`,
269
286
  fileName: e.value.style.chart.title.text || "vue-ui-donut",
270
287
  options: e.value.userOptions.print
271
- }), qt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), nt = y(() => yl(e.value.customPalette)), f = p({
288
+ }), Ht = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), it = y(() => fl(e.value.customPalette)), f = p({
272
289
  dataLabels: {
273
290
  show: e.value.style.chart.layout.labels.dataLabels.show
274
291
  },
@@ -292,10 +309,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
292
309
  return _.value;
293
310
  const l = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(s.value.width, s.value.height) * l, t = o > _.value ? _.value : o;
294
311
  return Math.max(t, 12 * (1 + l));
295
- }), rt = Lt, q = y(() => ue.value.map((l, o) => ({
312
+ }), vt = zt, G = y(() => re.value.map((l, o) => ({
296
313
  name: l.name,
297
- color: Ct(l.color) || nt.value[o] || oe[o] || oe[o % oe.length],
298
- value: fl(l.values.reduce((t, a) => t + a, 0)),
314
+ color: St(l.color) || it.value[o] || ne[o] || ne[o % ne.length],
315
+ value: pl(l.values.reduce((t, a) => t + a, 0)),
299
316
  absoluteValues: l.values,
300
317
  comment: l.comment || "",
301
318
  patternIndex: o,
@@ -306,19 +323,19 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
306
323
  ge(() => k.dataset, (l) => {
307
324
  Array.isArray(l) && l.length > 0 && (xe.value = !1);
308
325
  }, { immediate: !0 });
309
- const M = U(q.value);
310
- ge(() => q.value, (l) => {
311
- M.value = l, requestAnimationFrame(G);
326
+ const M = H(G.value);
327
+ ge(() => G.value, (l) => {
328
+ M.value = l, requestAnimationFrame(R);
312
329
  });
313
- function Wt() {
314
- return q.value.map((l) => ({
330
+ function jt() {
331
+ return G.value.map((l) => ({
315
332
  name: l.name,
316
333
  color: l.color,
317
334
  value: l.value
318
335
  }));
319
336
  }
320
- const E = p([]), te = p(!1);
321
- function it({ from: l, to: o, duration: t, onUpdate: a, onDone: i, easing: c = St }) {
337
+ const q = p([]), te = p(!1);
338
+ function dt({ from: l, to: o, duration: t, onUpdate: a, onDone: i, easing: c = Lt }) {
322
339
  const m = performance.now();
323
340
  function C(z) {
324
341
  const O = Math.min((z - m) / t, 1), B = c(O), Z = l + (o - l) * B;
@@ -326,68 +343,68 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
326
343
  }
327
344
  requestAnimationFrame(C);
328
345
  }
329
- function vt(l) {
330
- const o = q.value.find((i, c) => c === l);
346
+ function ct(l) {
347
+ const o = G.value.find((i, c) => c === l);
331
348
  let a = M.value.find((i, c) => c === l).value;
332
- if (E.value.includes(l)) {
349
+ if (q.value.includes(l)) {
333
350
  let c = function() {
334
351
  M.value = M.value.map(
335
352
  (C, z) => l === z ? { ...C, value: i } : C
336
353
  );
337
354
  }, m = function() {
338
- te.value = !0, it({
355
+ te.value = !0, dt({
339
356
  from: a,
340
357
  to: i,
341
358
  duration: e.value.serieToggleAnimation.durationMs,
342
359
  onUpdate: (C, z) => {
343
360
  M.value = M.value.map(
344
361
  (O, B) => l === B ? { ...O, value: C } : O
345
- ), requestAnimationFrame(G);
362
+ ), requestAnimationFrame(R);
346
363
  },
347
364
  onDone: () => {
348
365
  c(), te.value = !1;
349
366
  }
350
367
  });
351
368
  };
352
- E.value = E.value.filter((C) => C !== l);
369
+ q.value = q.value.filter((C) => C !== l);
353
370
  const i = o.value;
354
- e.value.serieToggleAnimation.show && e.value.type === "classic" ? m() : (c(), requestAnimationFrame(G));
355
- } else if (E.value.length < q.value.length - 1) {
371
+ e.value.serieToggleAnimation.show && e.value.type === "classic" ? m() : (c(), requestAnimationFrame(R));
372
+ } else if (q.value.length < G.value.length - 1) {
356
373
  let i = function() {
357
- E.value.push(l), M.value = M.value.map(
374
+ q.value.push(l), M.value = M.value.map(
358
375
  (m, C) => l === C ? { ...m, value: 0 } : m
359
376
  );
360
377
  }, c = function() {
361
- te.value = !0, it({
378
+ te.value = !0, dt({
362
379
  from: a,
363
380
  to: 0,
364
381
  duration: e.value.serieToggleAnimation.durationMs,
365
382
  onUpdate: (m, C) => {
366
383
  M.value = M.value.map(
367
384
  (z, O) => l === O ? { ...z, value: m } : z
368
- ), requestAnimationFrame(G);
385
+ ), requestAnimationFrame(R);
369
386
  },
370
387
  onDone: () => {
371
- i(), requestAnimationFrame(G), te.value = !1;
388
+ i(), requestAnimationFrame(R), te.value = !1;
372
389
  }
373
390
  });
374
391
  };
375
392
  e.value.serieToggleAnimation.show && e.value.type === "classic" ? c() : i();
376
393
  }
377
- rt("selectLegend", W.value.map((i) => ({
394
+ vt("selectLegend", W.value.map((i) => ({
378
395
  name: i.name,
379
396
  color: i.color,
380
397
  value: i.value
381
398
  })));
382
399
  }
383
- const Ut = y(() => ue.value.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)), W = y(() => {
400
+ const Jt = y(() => re.value.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)), W = y(() => {
384
401
  if (T.value && !ke.value) {
385
- const l = R.value.map((t, a) => ({
386
- ...q.value[a],
402
+ const l = U.value.map((t, a) => ({
403
+ ...G.value[a],
387
404
  value: t,
388
- color: q.value[a].color,
405
+ color: G.value[a].color,
389
406
  ghost: !1
390
- })), o = Ut.value - R.value.reduce((t, a) => t + a, 0);
407
+ })), o = Jt.value - U.value.reduce((t, a) => t + a, 0);
391
408
  return o > 0 && l.push({
392
409
  name: "__ghost__",
393
410
  value: o,
@@ -404,20 +421,20 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
404
421
  }), M.value.map((l, o) => ({
405
422
  ...l,
406
423
  seriesIndex: o
407
- })).filter((l, o) => !E.value.includes(o));
408
- }), dt = y(() => ue.value.map((l, o) => ({
424
+ })).filter((l, o) => !q.value.includes(o));
425
+ }), ht = y(() => re.value.map((l, o) => ({
409
426
  name: l.name,
410
- color: Ct(l.color) || nt.value[o] || oe[o] || oe[o % oe.length],
427
+ color: St(l.color) || it.value[o] || ne[o] || ne[o % ne.length],
411
428
  value: (l.values || []).reduce((t, a) => t + a, 0),
412
429
  shape: "circle",
413
430
  patternIndex: o
414
431
  })).map((l, o) => ({
415
432
  ...l,
416
- proportion: l.value / ue.value.map((t) => (t.values || []).reduce((a, i) => a + i, 0)).reduce((t, a) => t + a, 0),
417
- opacity: E.value.includes(o) ? 0.5 : 1,
418
- segregate: () => !te.value && vt(o),
419
- isSegregated: E.value.includes(o)
420
- }))), Ht = y(() => ({
433
+ proportion: l.value / re.value.map((t) => (t.values || []).reduce((a, i) => a + i, 0)).reduce((t, a) => t + a, 0),
434
+ opacity: q.value.includes(o) ? 0.5 : 1,
435
+ segregate: () => !te.value && ct(o),
436
+ isSegregated: q.value.includes(o)
437
+ }))), Kt = y(() => ({
421
438
  cy: "donut-div-legend",
422
439
  backgroundColor: e.value.style.chart.legend.backgroundColor,
423
440
  color: e.value.style.chart.legend.color,
@@ -425,9 +442,9 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
425
442
  paddingBottom: 12,
426
443
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
427
444
  })), _ = y(() => {
428
- const l = Math.min(s.value.width / 3, s.value.height / 3);
429
- return l < 12 ? 12 : l;
430
- }), S = y(() => At({ series: W.value }, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, ee.value)), jt = y(() => Math.abs(W.value.map((l) => l.value).reduce((l, o) => l + o, 0)) > 0), Jt = y(() => At({
445
+ const l = e.value.style.chart.layout.donut.radiusRatio, o = Math.max(0.1, Math.min(0.50001, l)), t = Math.min(s.value.width * o, s.value.height * o);
446
+ return Math.max(12, t);
447
+ }), S = y(() => Pt({ series: W.value }, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, ee.value)), Qt = y(() => Math.abs(W.value.map((l) => l.value).reduce((l, o) => l + o, 0)) > 0), Zt = y(() => Pt({
431
448
  series: [
432
449
  {
433
450
  value: 1,
@@ -441,7 +458,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
441
458
  ]
442
459
  }, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, ee.value)), X = y(() => S.value.filter((l) => !l.ghost)), d = y(() => {
443
460
  const l = Math.max(...W.value.map((t) => t.value)), o = W.value.map((t) => t.value / l);
444
- return pl({
461
+ return gl({
445
462
  series: o,
446
463
  center: {
447
464
  x: s.value.width / 2,
@@ -451,17 +468,17 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
451
468
  hasGhost: T.value
452
469
  });
453
470
  });
454
- function re(l) {
471
+ function ve(l) {
455
472
  return l.x > s.value.width / 2 + 6 ? "start" : l.x < s.value.width / 2 - 6 ? "end" : "middle";
456
473
  }
457
- function Kt(l) {
474
+ function el(l) {
458
475
  return l.middlePoint.y > s.value.height / 2 ? P({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y : P({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y - 100;
459
476
  }
460
477
  function D(l) {
461
478
  return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
462
479
  }
463
- function ze(l, o) {
464
- const t = l.value / Qt(o);
480
+ function Oe(l, o) {
481
+ const t = l.value / tl(o);
465
482
  return isNaN(t) ? 0 : V(
466
483
  e.value.style.chart.layout.labels.percentage.formatter,
467
484
  t * 100,
@@ -473,31 +490,31 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
473
490
  { datapoint: l }
474
491
  );
475
492
  }
476
- function Qt(l) {
493
+ function tl(l) {
477
494
  return [...l].map((o) => o.value).reduce((o, t) => o + t, 0);
478
495
  }
479
- const L = y(() => W.value.map((l) => l.value).reduce((l, o) => l + o, 0)), ct = y(() => L.value / W.value.length), ht = y(() => (l) => te.value ? l.proportion * 100 : l.value / L.value * 100), Oe = p(null), pe = p(!1);
480
- function ie({ datapoint: l, seriesIndex: o }) {
481
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), Fe.value = !1, Y.value = null;
496
+ const F = y(() => W.value.map((l) => l.value).reduce((l, o) => l + o, 0)), Ne = y(() => F.value / W.value.length), yt = y(() => (l) => te.value ? l.proportion * 100 : l.value / F.value * 100), Ye = p(null), pe = p(!1);
497
+ function de({ datapoint: l, seriesIndex: o }) {
498
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), Le.value = !1, Y.value = null;
482
499
  }
483
- function ve({ datapoint: l, relativeIndex: o, seriesIndex: t, show: a = !1 }) {
484
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }), Oe.value = { datapoint: l, seriesIndex: t, config: e.value, series: q.value }, Fe.value = a, Y.value = o;
500
+ function ce({ datapoint: l, relativeIndex: o, seriesIndex: t, show: a = !1 }) {
501
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }), Ye.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, Le.value = a, Y.value = o;
485
502
  let i = "";
486
503
  const c = e.value.style.chart.tooltip.customFormat;
487
- if (pe.value = !1, Al(c))
504
+ if (pe.value = !1, Tl(c))
488
505
  try {
489
506
  const m = c({
490
507
  seriesIndex: t,
491
508
  datapoint: l,
492
- series: q.value,
509
+ series: G.value,
493
510
  config: e.value
494
511
  });
495
- typeof m == "string" && (Le.value = m, pe.value = !0);
512
+ typeof m == "string" && (Ie.value = m, pe.value = !0);
496
513
  } catch {
497
514
  console.warn("Custom format cannot be applied."), pe.value = !1;
498
515
  }
499
516
  if (!pe.value) {
500
- if (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${Dt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${g.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (i += `<b>${V(
517
+ if (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${Et.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${g.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (i += `<b>${V(
501
518
  e.value.style.chart.layout.labels.value.formatter,
502
519
  l.value,
503
520
  N({
@@ -528,7 +545,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
528
545
  );
529
546
  e.value.style.chart.tooltip.showValue ? i += `<span>(${m})</span></div>` : i += `<b>${m}</b></div>`;
530
547
  }
531
- e.value.style.chart.comments.showInTooltip && l.comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`), Le.value = `<div>${i}</div>`;
548
+ e.value.style.chart.comments.showInTooltip && l.comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`), Ie.value = `<div>${i}</div>`;
532
549
  }
533
550
  }
534
551
  function le(l) {
@@ -541,18 +558,18 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
541
558
  })), o = W.value.map((t) => t.value);
542
559
  return { head: l, body: o };
543
560
  });
544
- function yt(l = null) {
545
- il(() => {
561
+ function ft(l = null) {
562
+ vl(() => {
546
563
  const o = K.value.head.map((i, c) => [[
547
564
  i.name
548
- ], [K.value.body[c]], [isNaN(K.value.body[c] / L.value) ? "-" : K.value.body[c] / L.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = $l(t);
549
- l ? l(a) : Cl({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
565
+ ], [K.value.body[c]], [isNaN(K.value.body[c] / F.value) ? "-" : K.value.body[c] / F.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Cl(t);
566
+ l ? l(a) : Al({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
550
567
  });
551
568
  }
552
569
  const _e = y(() => {
553
570
  const l = [
554
571
  ' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
555
- N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: L.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
572
+ N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: F.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
556
573
  "100%"
557
574
  ], o = K.value.head.map((i, c) => [
558
575
  {
@@ -560,7 +577,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
560
577
  name: i.name || "-"
561
578
  },
562
579
  K.value.body[c],
563
- isNaN(K.value.body[c] / L.value) ? "-" : (K.value.body[c] / L.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
580
+ isNaN(K.value.body[c] / F.value) ? "-" : (K.value.body[c] / F.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
564
581
  ]), t = {
565
582
  th: {
566
583
  backgroundColor: e.value.table.th.backgroundColor,
@@ -584,33 +601,33 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
584
601
  body: o,
585
602
  config: t
586
603
  };
587
- }), de = p(!1);
588
- function ft(l) {
589
- de.value = l, Qe.value += 1;
604
+ }), he = p(!1);
605
+ function pt(l) {
606
+ he.value = l, et.value += 1;
590
607
  }
591
- const pt = y(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
592
- function Zt(l) {
608
+ const gt = y(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
609
+ function ll(l) {
593
610
  return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((o) => "-").join("");
594
611
  }
595
612
  function Q(l, o) {
596
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }), rt("selectDatapoint", { datapoint: l, index: o });
613
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }), vt("selectDatapoint", { datapoint: l, index: o });
597
614
  }
598
- function gt() {
615
+ function mt() {
599
616
  f.value.showTable = !f.value.showTable;
600
617
  }
601
- function mt() {
618
+ function bt() {
602
619
  f.value.dataLabels.show = !f.value.dataLabels.show;
603
620
  }
604
- function bt() {
621
+ function wt() {
605
622
  f.value.showTooltip = !f.value.showTooltip;
606
623
  }
607
624
  const $e = p(!1);
608
- function Ne() {
625
+ function Xe() {
609
626
  $e.value = !$e.value;
610
627
  }
611
- async function el({ scale: l = 2 } = {}) {
612
- if (!H.value) return;
613
- const { width: o, height: t } = H.value.getBoundingClientRect(), a = o / t, { imageUri: i, base64: c } = await Yl({ domElement: H.value, base64: !0, img: !0, scale: l });
628
+ async function al({ scale: l = 2 } = {}) {
629
+ if (!E.value) return;
630
+ const { width: o, height: t } = E.value.getBoundingClientRect(), a = o / t, { imageUri: i, base64: c } = await Ol({ domElement: E.value, base64: !0, img: !0, scale: l });
614
631
  return {
615
632
  imageUri: i,
616
633
  base64: c,
@@ -620,56 +637,56 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
620
637
  aspectRatio: a
621
638
  };
622
639
  }
623
- function tl() {
640
+ function ol() {
624
641
  if (!be.value) return;
625
642
  const { x: l, y: o, width: t, height: a } = be.value.getBBox();
626
- ne.value && ne.value.setAttribute("viewBox", `${l} ${o} ${t + Math.min(0, l)} ${a + Math.min(0, o)}`);
643
+ ie.value && ie.value.setAttribute("viewBox", `${l} ${o} ${t + Math.min(0, l)} ${a + Math.min(0, o)}`);
627
644
  }
628
- return Ft({
629
- autoSize: tl,
630
- getData: Wt,
631
- getImage: el,
632
- generatePdf: st,
633
- generateCsv: yt,
634
- generateImage: ut,
635
- toggleTable: gt,
636
- toggleLabels: mt,
637
- toggleTooltip: bt,
638
- toggleAnnotator: Ne,
639
- toggleFullscreen: ft
645
+ return Mt({
646
+ autoSize: ol,
647
+ getData: jt,
648
+ getImage: al,
649
+ generatePdf: ut,
650
+ generateCsv: ft,
651
+ generateImage: rt,
652
+ toggleTable: mt,
653
+ toggleLabels: bt,
654
+ toggleTooltip: wt,
655
+ toggleAnnotator: Xe,
656
+ toggleFullscreen: pt
640
657
  }), (l, o) => (n(), r("div", {
641
658
  ref_key: "donutChart",
642
- ref: H,
643
- class: Xe(`vue-ui-donut ${de.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
659
+ ref: E,
660
+ class: Be(`vue-ui-donut ${he.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
644
661
  style: $(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
645
662
  id: `donut__${g.value}`,
646
- onMouseenter: Gt,
647
- onMouseleave: Rt
663
+ onMouseenter: Ut,
664
+ onMouseleave: Wt
648
665
  }, [
649
- e.value.userOptions.buttons.annotator && u(ne) ? (n(), ae(u(Ot), {
666
+ e.value.userOptions.buttons.annotator && u(ie) ? (n(), ae(u(Xt), {
650
667
  key: 0,
651
668
  color: e.value.style.chart.color,
652
669
  backgroundColor: e.value.style.chart.backgroundColor,
653
670
  active: $e.value,
654
- svgRef: u(ne),
655
- onClose: Ne
671
+ svgRef: u(ie),
672
+ onClose: Xe
656
673
  }, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
657
- w(l.$slots, "userConfig", {}, void 0, !0),
658
- qt.value ? (n(), r("div", {
674
+ b(l.$slots, "userConfig", {}, void 0, !0),
675
+ Ht.value ? (n(), r("div", {
659
676
  key: 1,
660
677
  ref_key: "noTitle",
661
- ref: Ue,
678
+ ref: je,
662
679
  class: "vue-data-ui-no-title-space",
663
680
  style: "height:36px; width: 100%;background:transparent"
664
681
  }, null, 512)) : v("", !0),
665
682
  e.value.style.chart.title.text ? (n(), r("div", {
666
683
  key: 2,
667
684
  ref_key: "chartTitle",
668
- ref: Re,
685
+ ref: Ue,
669
686
  style: "width:100%;background:transparent;padding-bottom:24px"
670
687
  }, [
671
- (n(), ae(Ml, {
672
- key: `title_${He.value}`,
688
+ (n(), ae(Yl, {
689
+ key: `title_${Je.value}`,
673
690
  config: {
674
691
  title: {
675
692
  cy: "donut-div-title",
@@ -682,14 +699,14 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
682
699
  }
683
700
  }, null, 8, ["config"]))
684
701
  ], 512)) : v("", !0),
685
- e.value.userOptions.show && me.value && (u(tt) || u(Me)) ? (n(), ae(u(Yt), {
702
+ e.value.userOptions.show && me.value && (u(at) || u(ze)) ? (n(), ae(u(Bt), {
686
703
  ref_key: "details",
687
- ref: Bt,
688
- key: `user_option_${Qe.value}`,
704
+ ref: Rt,
705
+ key: `user_option_${et.value}`,
689
706
  backgroundColor: e.value.style.chart.backgroundColor,
690
707
  color: e.value.style.chart.color,
691
- isPrinting: u(at),
692
- isImaging: u(ot),
708
+ isPrinting: u(st),
709
+ isImaging: u(nt),
693
710
  uid: g.value,
694
711
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
695
712
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -698,8 +715,8 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
698
715
  hasTable: e.value.userOptions.buttons.table,
699
716
  hasLabel: e.value.userOptions.buttons.labels,
700
717
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
701
- isFullscreen: de.value,
702
- chartElement: H.value,
718
+ isFullscreen: he.value,
719
+ chartElement: E.value,
703
720
  position: e.value.userOptions.position,
704
721
  callbacks: e.value.userOptions.callbacks,
705
722
  isTooltip: f.value.showTooltip,
@@ -707,96 +724,96 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
707
724
  hasAnnotator: e.value.userOptions.buttons.annotator,
708
725
  isAnnotation: $e.value,
709
726
  printScale: e.value.userOptions.print.scale,
710
- onToggleFullscreen: ft,
711
- onGeneratePdf: u(st),
712
- onGenerateCsv: yt,
713
- onGenerateImage: u(ut),
714
- onToggleTable: gt,
715
- onToggleLabels: mt,
716
- onToggleTooltip: bt,
717
- onToggleAnnotator: Ne,
727
+ onToggleFullscreen: pt,
728
+ onGeneratePdf: u(ut),
729
+ onGenerateCsv: ft,
730
+ onGenerateImage: u(rt),
731
+ onToggleTable: mt,
732
+ onToggleLabels: bt,
733
+ onToggleTooltip: wt,
734
+ onToggleAnnotator: Xe,
718
735
  style: $({
719
- visibility: u(tt) ? u(Me) ? "visible" : "hidden" : "visible"
736
+ visibility: u(at) ? u(ze) ? "visible" : "hidden" : "visible"
720
737
  })
721
- }, wt({ _: 2 }, [
738
+ }, _t({ _: 2 }, [
722
739
  l.$slots.menuIcon ? {
723
740
  name: "menuIcon",
724
741
  fn: A(({ isOpen: t, color: a }) => [
725
- w(l.$slots, "menuIcon", he(ye({ isOpen: t, color: a })), void 0, !0)
742
+ b(l.$slots, "menuIcon", oe(se({ isOpen: t, color: a })), void 0, !0)
726
743
  ]),
727
744
  key: "0"
728
745
  } : void 0,
729
746
  l.$slots.optionTooltip ? {
730
747
  name: "optionTooltip",
731
748
  fn: A(() => [
732
- w(l.$slots, "optionTooltip", {}, void 0, !0)
749
+ b(l.$slots, "optionTooltip", {}, void 0, !0)
733
750
  ]),
734
751
  key: "1"
735
752
  } : void 0,
736
753
  l.$slots.optionPdf ? {
737
754
  name: "optionPdf",
738
755
  fn: A(() => [
739
- w(l.$slots, "optionPdf", {}, void 0, !0)
756
+ b(l.$slots, "optionPdf", {}, void 0, !0)
740
757
  ]),
741
758
  key: "2"
742
759
  } : void 0,
743
760
  l.$slots.optionCsv ? {
744
761
  name: "optionCsv",
745
762
  fn: A(() => [
746
- w(l.$slots, "optionCsv", {}, void 0, !0)
763
+ b(l.$slots, "optionCsv", {}, void 0, !0)
747
764
  ]),
748
765
  key: "3"
749
766
  } : void 0,
750
767
  l.$slots.optionImg ? {
751
768
  name: "optionImg",
752
769
  fn: A(() => [
753
- w(l.$slots, "optionImg", {}, void 0, !0)
770
+ b(l.$slots, "optionImg", {}, void 0, !0)
754
771
  ]),
755
772
  key: "4"
756
773
  } : void 0,
757
774
  l.$slots.optionTable ? {
758
775
  name: "optionTable",
759
776
  fn: A(() => [
760
- w(l.$slots, "optionTable", {}, void 0, !0)
777
+ b(l.$slots, "optionTable", {}, void 0, !0)
761
778
  ]),
762
779
  key: "5"
763
780
  } : void 0,
764
781
  l.$slots.optionLabels ? {
765
782
  name: "optionLabels",
766
783
  fn: A(() => [
767
- w(l.$slots, "optionLabels", {}, void 0, !0)
784
+ b(l.$slots, "optionLabels", {}, void 0, !0)
768
785
  ]),
769
786
  key: "6"
770
787
  } : void 0,
771
788
  l.$slots.optionFullscreen ? {
772
789
  name: "optionFullscreen",
773
790
  fn: A(({ toggleFullscreen: t, isFullscreen: a }) => [
774
- w(l.$slots, "optionFullscreen", he(ye({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
791
+ b(l.$slots, "optionFullscreen", oe(se({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
775
792
  ]),
776
793
  key: "7"
777
794
  } : void 0,
778
795
  l.$slots.optionAnnotator ? {
779
796
  name: "optionAnnotator",
780
797
  fn: A(({ toggleAnnotator: t, isAnnotator: a }) => [
781
- w(l.$slots, "optionAnnotator", he(ye({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
798
+ b(l.$slots, "optionAnnotator", oe(se({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
782
799
  ]),
783
800
  key: "8"
784
801
  } : void 0
785
802
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
786
803
  (n(), r("svg", {
787
804
  ref_key: "svgRef",
788
- ref: ne,
789
- xmlns: u(gl),
790
- class: Xe({ "vue-data-ui-fullscreen--on": de.value, "vue-data-ui-fulscreen--off": !de.value, "vue-data-ui-svg": !0 }),
805
+ ref: ie,
806
+ xmlns: u(ml),
807
+ class: Be({ "vue-data-ui-fullscreen--on": he.value, "vue-data-ui-fulscreen--off": !he.value, "vue-data-ui-svg": !0 }),
791
808
  viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
792
- style: $(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${lt.value.css}`)
809
+ style: $(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${ot.value.css}`)
793
810
  }, [
794
811
  h("g", {
795
812
  ref_key: "G",
796
813
  ref: be,
797
814
  class: "vue-data-ui-g"
798
815
  }, [
799
- De(u(zt)),
816
+ Ve(u(Yt)),
800
817
  l.$slots["chart-background"] ? (n(), r("foreignObject", {
801
818
  key: 0,
802
819
  x: 0,
@@ -807,9 +824,9 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
807
824
  pointerEvents: "none"
808
825
  }
809
826
  }, [
810
- w(l.$slots, "chart-background", {}, void 0, !0)
811
- ], 8, Vl)) : v("", !0),
812
- e.value.type === "classic" && !isNaN(ee.value / _.value) ? (n(), r("defs", El, [
827
+ b(l.$slots, "chart-background", {}, void 0, !0)
828
+ ], 8, El)) : v("", !0),
829
+ e.value.type === "classic" && !isNaN(ee.value / _.value) ? (n(), r("defs", Rl, [
813
830
  e.value.style.chart.useGradient ? (n(), r("radialGradient", {
814
831
  key: 0,
815
832
  id: `gradient_${g.value}`
@@ -818,12 +835,12 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
818
835
  offset: "0%",
819
836
  "stop-color": u(Ce)(e.value.style.chart.backgroundColor, 0),
820
837
  "stop-opacity": "0"
821
- }, null, 8, Rl),
838
+ }, null, 8, ql),
822
839
  h("stop", {
823
840
  offset: `${(1 - ee.value / _.value) * 100}%`,
824
841
  "stop-color": u(Ce)("#FFFFFF", 0),
825
842
  "stop-opacity": "0"
826
- }, null, 8, ql),
843
+ }, null, 8, Ul),
827
844
  h("stop", {
828
845
  offset: `${(1 - ee.value / _.value / 2) * 100}%`,
829
846
  "stop-color": u(Ce)("#FFFFFF", e.value.style.chart.gradientIntensity)
@@ -832,11 +849,11 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
832
849
  offset: "100%",
833
850
  "stop-color": u(Ce)(e.value.style.chart.backgroundColor, 0),
834
851
  "stop-opacity": "0"
835
- }, null, 8, Ul)
852
+ }, null, 8, Hl)
836
853
  ], 8, Gl)) : v("", !0)
837
854
  ])) : v("", !0),
838
- e.value.type === "polar" ? (n(), r("defs", Hl, [
839
- (n(!0), r(b, null, F(d.value, (t, a) => (n(), r("radialGradient", {
855
+ e.value.type === "polar" ? (n(), r("defs", jl, [
856
+ (n(!0), r(w, null, L(d.value, (t, a) => (n(), r("radialGradient", {
840
857
  id: `polar_gradient_${a}_${g.value}`,
841
858
  cx: (isNaN(t.middlePoint.x / s.value.width * 100) ? 0 : t.middlePoint.x / s.value.width * 100) + "%",
842
859
  cy: (isNaN(t.middlePoint.y / s.value.height * 100) ? 0 : t.middlePoint.y / s.value.height * 100) + "%",
@@ -844,14 +861,14 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
844
861
  }, [
845
862
  h("stop", {
846
863
  offset: "0%",
847
- "stop-color": u(ml)(S.value[a].color, 0.05),
864
+ "stop-color": u(bl)(S.value[a].color, 0.05),
848
865
  "stop-opacity": e.value.style.chart.gradientIntensity / 100
849
- }, null, 8, Jl),
866
+ }, null, 8, Kl),
850
867
  h("stop", {
851
868
  offset: "100%",
852
869
  "stop-color": S.value[a].color
853
- }, null, 8, Kl)
854
- ], 8, jl))), 256))
870
+ }, null, 8, Ql)
871
+ ], 8, Jl))), 256))
855
872
  ])) : v("", !0),
856
873
  h("defs", null, [
857
874
  h("filter", {
@@ -865,12 +882,12 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
865
882
  in: "SourceGraphic",
866
883
  stdDeviation: 2,
867
884
  id: `blur_std_${g.value}`
868
- }, null, 8, Zl),
885
+ }, null, 8, ea),
869
886
  o[5] || (o[5] = h("feColorMatrix", {
870
887
  type: "saturate",
871
888
  values: "0"
872
889
  }, null, -1))
873
- ], 8, Ql),
890
+ ], 8, Zl),
874
891
  h("filter", {
875
892
  id: `shadow_${g.value}`,
876
893
  "color-interpolation-filters": "sRGB"
@@ -881,8 +898,8 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
881
898
  stdDeviation: "10",
882
899
  "flood-opacity": "0.5",
883
900
  "flood-color": e.value.style.chart.layout.donut.shadowColor
884
- }, null, 8, ta)
885
- ], 8, ea),
901
+ }, null, 8, la)
902
+ ], 8, ta),
886
903
  h("filter", {
887
904
  id: `drop_shadow_${g.value}`,
888
905
  "color-interpolation-filters": "sRGB",
@@ -897,22 +914,22 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
897
914
  stdDeviation: "3",
898
915
  "flood-opacity": "1",
899
916
  "flood-color": e.value.style.chart.layout.donut.shadowColor
900
- }, null, 8, aa)
901
- ], 8, la)
917
+ }, null, 8, oa)
918
+ ], 8, aa)
902
919
  ]),
903
- e.value.type === "classic" ? (n(!0), r(b, { key: 3 }, F(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", null, [
920
+ e.value.type === "classic" ? (n(!0), r(w, { key: 3 }, L(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", null, [
904
921
  D(t) && f.value.dataLabels.show ? (n(), r("path", {
905
922
  key: 0,
906
- d: u(bl)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, ee.value, 12, e.value.style.chart.layout.curvedMarkers),
923
+ d: u(wl)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, ee.value, 12, e.value.style.chart.layout.curvedMarkers),
907
924
  stroke: t.color,
908
925
  "stroke-width": "1",
909
926
  "stroke-linecap": "round",
910
927
  "stroke-linejoin": "round",
911
928
  fill: "none",
912
929
  filter: le(a)
913
- }, null, 8, oa)) : v("", !0)
930
+ }, null, 8, sa)) : v("", !0)
914
931
  ]))), 256)) : v("", !0),
915
- e.value.type === "polar" ? (n(!0), r(b, { key: 4 }, F(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", null, [
932
+ e.value.type === "polar" ? (n(!0), r(w, { key: 4 }, L(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", null, [
916
933
  D(t) && f.value.dataLabels.show ? (n(), r("path", {
917
934
  key: 0,
918
935
  d: `M ${u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x},${u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y} ${d.value[a].middlePoint.x},${d.value[a].middlePoint.y}`,
@@ -925,7 +942,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
925
942
  style: $({
926
943
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
927
944
  })
928
- }, null, 12, sa)) : v("", !0)
945
+ }, null, 12, na)) : v("", !0)
929
946
  ]))), 256)) : v("", !0),
930
947
  e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (n(), r("circle", {
931
948
  key: 5,
@@ -935,50 +952,50 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
935
952
  fill: e.value.style.chart.backgroundColor,
936
953
  filter: `url(#shadow_${g.value})`
937
954
  }, null, 8, ua)) : v("", !0),
938
- l.$slots.pattern ? (n(), r("g", na, [
939
- (n(!0), r(b, null, F(Ge.dataset, (t, a) => (n(), r("defs", {
955
+ l.$slots.pattern ? (n(), r("g", ra, [
956
+ (n(!0), r(w, null, L(qe.dataset, (t, a) => (n(), r("defs", {
940
957
  key: `pattern-${t.patternIndex}`
941
958
  }, [
942
- w(l.$slots, "pattern", kt({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${g.value}_${a}` }), void 0, !0)
959
+ b(l.$slots, "pattern", $t({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${g.value}_${a}` }), void 0, !0)
943
960
  ]))), 128))
944
961
  ])) : v("", !0),
945
- L.value && e.value.type === "classic" ? (n(), r(b, { key: 7 }, [
946
- (n(!0), r(b, null, F(X.value, (t, a) => (n(), r("path", {
962
+ F.value && e.value.type === "classic" ? (n(), r(w, { key: 7 }, [
963
+ (n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
947
964
  stroke: e.value.style.chart.backgroundColor,
948
965
  d: t.arcSlice,
949
966
  fill: "#FFFFFF"
950
- }, null, 8, ra))), 256)),
951
- (n(!0), r(b, null, F(X.value, (t, a) => (n(), r("path", {
967
+ }, null, 8, ia))), 256)),
968
+ (n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
952
969
  class: "vue-ui-donut-arc-path",
953
970
  d: t.arcSlice,
954
971
  fill: t.color,
955
972
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
956
973
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
957
974
  filter: le(a)
958
- }, null, 8, ia))), 256)),
959
- l.$slots.pattern ? (n(), r("g", va, [
960
- (n(!0), r(b, null, F(X.value, (t, a) => (n(), r("path", {
975
+ }, null, 8, va))), 256)),
976
+ l.$slots.pattern ? (n(), r("g", da, [
977
+ (n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
961
978
  class: "vue-ui-donut-arc-path",
962
979
  d: t.arcSlice,
963
980
  fill: `url(#${t.pattern})`,
964
981
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
965
982
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
966
983
  filter: le(a)
967
- }, null, 8, da))), 256))
984
+ }, null, 8, ca))), 256))
968
985
  ])) : v("", !0)
969
986
  ], 64)) : v("", !0),
970
- L.value && e.value.type === "polar" ? (n(), r(b, { key: 8 }, [
971
- S.value.length > 1 ? (n(), r("g", ca, [
972
- (n(!0), r(b, null, F(X.value, (t, a) => (n(), r("path", {
987
+ F.value && e.value.type === "polar" ? (n(), r(w, { key: 8 }, [
988
+ S.value.length > 1 ? (n(), r("g", ha, [
989
+ (n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
973
990
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
974
991
  d: d.value[a].path,
975
992
  fill: "#FFFFFF",
976
993
  style: $({
977
994
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
978
995
  })
979
- }, null, 12, ha))), 256)),
980
- e.value.style.chart.layout.donut.useShadow ? (n(), r("g", ya, [
981
- (n(!0), r(b, null, F(X.value, (t, a) => (n(), r("path", {
996
+ }, null, 12, ya))), 256)),
997
+ e.value.style.chart.layout.donut.useShadow ? (n(), r("g", fa, [
998
+ (n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
982
999
  class: "vue-ui-donut-arc-path",
983
1000
  d: d.value[a].path,
984
1001
  fill: "transparent",
@@ -988,10 +1005,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
988
1005
  style: $({
989
1006
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
990
1007
  })
991
- }, null, 12, fa))), 256))
1008
+ }, null, 12, pa))), 256))
992
1009
  ])) : v("", !0),
993
- l.$slots.pattern ? (n(), r("g", pa, [
994
- (n(!0), r(b, null, F(X.value, (t, a) => (n(), r("path", {
1010
+ l.$slots.pattern ? (n(), r("g", ga, [
1011
+ (n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
995
1012
  class: "vue-ui-donut-arc-path",
996
1013
  d: d.value[a].path,
997
1014
  fill: `url(#${t.pattern})`,
@@ -1002,9 +1019,9 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1002
1019
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1003
1020
  transformOrigin: "center"
1004
1021
  })
1005
- }, null, 12, ga))), 256))
1022
+ }, null, 12, ma))), 256))
1006
1023
  ])) : v("", !0),
1007
- (n(!0), r(b, null, F(X.value, (t, a) => (n(), r("path", {
1024
+ (n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
1008
1025
  class: "vue-ui-donut-arc-path",
1009
1026
  d: d.value[a].path,
1010
1027
  fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${g.value})` : t.color,
@@ -1014,8 +1031,8 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1014
1031
  style: $({
1015
1032
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1016
1033
  })
1017
- }, null, 12, ma))), 256))
1018
- ])) : (n(), r("g", ba, [
1034
+ }, null, 12, ba))), 256))
1035
+ ])) : (n(), r("g", wa, [
1019
1036
  l.$slots.pattern ? (n(), r("circle", {
1020
1037
  key: 0,
1021
1038
  cx: s.value.width / 2,
@@ -1024,7 +1041,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1024
1041
  fill: `url(#pattern_${g.value}_${S.value[0].patternIndex})`,
1025
1042
  stroke: e.value.style.chart.backgroundColor,
1026
1043
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
1027
- }, null, 8, wa)) : v("", !0),
1044
+ }, null, 8, ka)) : v("", !0),
1028
1045
  h("circle", {
1029
1046
  cx: s.value.width / 2,
1030
1047
  cy: s.value.height / 2,
@@ -1032,17 +1049,17 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1032
1049
  fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${g.value})` : S.value[0].color,
1033
1050
  stroke: e.value.style.chart.backgroundColor,
1034
1051
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
1035
- }, null, 8, ka)
1052
+ }, null, 8, xa)
1036
1053
  ]))
1037
- ], 64)) : (n(), r(b, { key: 9 }, [
1038
- e.value.type === "classic" && !jt.value ? (n(), r("g", xa, [
1039
- (n(!0), r(b, null, F(Jt.value, (t, a) => (n(), r("path", {
1054
+ ], 64)) : (n(), r(w, { key: 9 }, [
1055
+ e.value.type === "classic" && !Qt.value ? (n(), r("g", _a, [
1056
+ (n(!0), r(w, null, L(Zt.value, (t, a) => (n(), r("path", {
1040
1057
  class: "vue-ui-donut-arc-path",
1041
1058
  d: t.arcSlice,
1042
1059
  fill: t.color,
1043
1060
  stroke: e.value.style.chart.backgroundColor,
1044
1061
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
1045
- }, null, 8, _a))), 256))
1062
+ }, null, 8, $a))), 256))
1046
1063
  ])) : v("", !0),
1047
1064
  h("circle", {
1048
1065
  cx: s.value.width / 2,
@@ -1050,7 +1067,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1050
1067
  r: _.value <= 0 ? 10 : _.value,
1051
1068
  fill: "transparent",
1052
1069
  stroke: e.value.style.chart.backgroundColor
1053
- }, null, 8, $a)
1070
+ }, null, 8, Ca)
1054
1071
  ], 64)),
1055
1072
  e.value.style.chart.useGradient && e.value.type === "classic" ? (n(), r("circle", {
1056
1073
  key: 10,
@@ -1061,7 +1078,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1061
1078
  _.value <= 0 ? 10 : _.value
1062
1079
  ),
1063
1080
  fill: `url(#gradient_${g.value})`
1064
- }, null, 8, Ca)) : v("", !0),
1081
+ }, null, 8, Aa)) : v("", !0),
1065
1082
  h("circle", {
1066
1083
  ref_key: "circle_hollow",
1067
1084
  ref: Te,
@@ -1070,37 +1087,37 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1070
1087
  cx: s.value.width / 2,
1071
1088
  cy: s.value.height / 2,
1072
1089
  r: Math.max(0.1, ee.value * 1.7)
1073
- }, null, 8, Aa),
1074
- L.value ? (n(), r(b, { key: 11 }, [
1075
- S.value.length > 1 || e.value.type === "classic" ? (n(), r("g", Ta, [
1076
- (n(!0), r(b, null, F(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("path", {
1090
+ }, null, 8, Ta),
1091
+ F.value ? (n(), r(w, { key: 11 }, [
1092
+ S.value.length > 1 || e.value.type === "classic" ? (n(), r("g", Sa, [
1093
+ (n(!0), r(w, null, L(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("path", {
1077
1094
  d: e.value.type === "classic" ? t.arcSlice : d.value[a].path,
1078
1095
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1079
1096
  fill: Y.value === a ? e.value.style.chart.layout.donut.selectedColor : "transparent",
1080
- onMouseenter: (i) => ve({
1097
+ onMouseenter: (i) => ce({
1081
1098
  datapoint: t,
1082
1099
  relativeIndex: a,
1083
1100
  seriesIndex: t.seriesIndex,
1084
1101
  show: !0
1085
1102
  }),
1086
- onMouseleave: (i) => ie({ datapoint: t, seriesIndex: t.seriesIndex }),
1103
+ onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex }),
1087
1104
  onClick: (i) => Q(t, a)
1088
- }, null, 40, Sa))), 256))
1089
- ])) : (n(), r("g", Pa, [
1105
+ }, null, 40, Pa))), 256))
1106
+ ])) : (n(), r("g", Fa, [
1090
1107
  h("circle", {
1091
1108
  cx: s.value.width / 2,
1092
1109
  cy: s.value.height / 2,
1093
1110
  r: _.value,
1094
1111
  fill: "transparent",
1095
- onMouseenter: o[0] || (o[0] = (t) => ve({
1112
+ onMouseenter: o[0] || (o[0] = (t) => ce({
1096
1113
  datapoint: S.value[0],
1097
1114
  relativeIndex: 0,
1098
1115
  seriesIndex: S.value[0].seriesIndex,
1099
1116
  show: !0
1100
1117
  })),
1101
- onMouseleave: o[1] || (o[1] = (t) => ie({ datapoint: S.value[0], seriesIndex: S.value[0].seriesIndex })),
1118
+ onMouseleave: o[1] || (o[1] = (t) => de({ datapoint: S.value[0], seriesIndex: S.value[0].seriesIndex })),
1102
1119
  onClick: o[2] || (o[2] = (t) => Q(S.value[0], l.i))
1103
- }, null, 40, Fa)
1120
+ }, null, 40, La)
1104
1121
  ]))
1105
1122
  ], 64)) : v("", !0),
1106
1123
  e.value.type === "classic" ? (n(), r("g", {
@@ -1117,7 +1134,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1117
1134
  fill: e.value.style.chart.layout.labels.hollow.total.color,
1118
1135
  "font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
1119
1136
  style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
1120
- }, I(e.value.style.chart.layout.labels.hollow.total.text), 13, La)) : v("", !0),
1137
+ }, I(e.value.style.chart.layout.labels.hollow.total.text), 13, Ia)) : v("", !0),
1121
1138
  e.value.style.chart.layout.labels.hollow.total.show ? (n(), r("text", {
1122
1139
  key: 1,
1123
1140
  "text-anchor": "middle",
@@ -1128,13 +1145,13 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1128
1145
  style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
1129
1146
  }, I(u(V)(
1130
1147
  e.value.style.chart.layout.labels.hollow.total.value.formatter,
1131
- L.value,
1148
+ F.value,
1132
1149
  u(N)({
1133
1150
  p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
1134
- v: L.value,
1151
+ v: F.value,
1135
1152
  s: e.value.style.chart.layout.labels.hollow.total.value.suffix
1136
1153
  })
1137
- )), 13, Ia)) : v("", !0),
1154
+ )), 13, Ma)) : v("", !0),
1138
1155
  e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
1139
1156
  key: 2,
1140
1157
  "text-anchor": "middle",
@@ -1143,7 +1160,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1143
1160
  fill: e.value.style.chart.layout.labels.hollow.average.color,
1144
1161
  "font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
1145
1162
  style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
1146
- }, I(e.value.style.chart.layout.labels.hollow.average.text), 13, Ma)) : v("", !0),
1163
+ }, I(e.value.style.chart.layout.labels.hollow.average.text), 13, za)) : v("", !0),
1147
1164
  e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
1148
1165
  key: 3,
1149
1166
  "text-anchor": "middle",
@@ -1154,42 +1171,42 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1154
1171
  style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
1155
1172
  }, I(te.value || T.value ? "--" : u(V)(
1156
1173
  e.value.style.chart.layout.labels.hollow.average.value.formatter,
1157
- ct.value,
1174
+ Ne.value,
1158
1175
  u(N)({
1159
1176
  p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
1160
- v: ct.value,
1177
+ v: Ne.value,
1161
1178
  s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
1162
1179
  r: e.value.style.chart.layout.labels.hollow.average.value.rounding
1163
1180
  })
1164
- )), 13, za)) : v("", !0)
1181
+ )), 13, Oa)) : v("", !0)
1165
1182
  ], 512)) : v("", !0),
1166
- (n(!0), r(b, null, F(X.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", {
1183
+ (n(!0), r(w, null, L(X.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", {
1167
1184
  filter: le(a),
1168
- class: Xe({ animated: e.value.useCssAnimation }),
1185
+ class: Be({ animated: e.value.useCssAnimation }),
1169
1186
  key: t.seriesIndex
1170
1187
  }, [
1171
- e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g", Na, [
1188
+ e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g", Ya, [
1172
1189
  (n(), r("foreignObject", {
1173
1190
  x: u(x)(t, !0).anchor === "end" ? u(x)(t).x - 120 : u(x)(t, !0).anchor === "middle" ? u(x)(t).x - 60 : u(x)(t).x,
1174
- y: u(fe)(t) - (pt.value ? 20 : 0),
1191
+ y: u(fe)(t) - (gt.value ? 20 : 0),
1175
1192
  width: "120",
1176
1193
  height: "60",
1177
1194
  style: { overflow: "visible" }
1178
1195
  }, [
1179
1196
  h("div", null, [
1180
- w(l.$slots, "dataLabel", kt({ ref_for: !0 }, {
1197
+ b(l.$slots, "dataLabel", $t({ ref_for: !0 }, {
1181
1198
  datapoint: t,
1182
1199
  isBlur: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a,
1183
- isSafari: pt.value,
1200
+ isSafari: gt.value,
1184
1201
  isVisible: D(t) && f.value.dataLabels.show,
1185
1202
  textAlign: u(x)(t, !0, 16, !0).anchor,
1186
1203
  flexAlign: u(x)(t, !0, 16).anchor,
1187
- percentage: ze(t, X.value)
1204
+ percentage: Oe(t, X.value)
1188
1205
  }), void 0, !0)
1189
1206
  ])
1190
- ], 8, Ya))
1191
- ])) : (n(), r("g", Xa, [
1192
- e.value.type === "classic" ? (n(), r(b, { key: 0 }, [
1207
+ ], 8, Xa))
1208
+ ])) : (n(), r("g", Da, [
1209
+ e.value.type === "classic" ? (n(), r(w, { key: 0 }, [
1193
1210
  D(t) && f.value.dataLabels.show ? (n(), r("circle", {
1194
1211
  key: 0,
1195
1212
  cx: u(x)(t).x,
@@ -1200,16 +1217,16 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1200
1217
  r: 3,
1201
1218
  filter: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a ? "" : `url(#blur_${g.value})`,
1202
1219
  onClick: (i) => Q(t, a),
1203
- onMouseenter: (i) => ve({
1220
+ onMouseenter: (i) => ce({
1204
1221
  datapoint: t,
1205
1222
  relativeIndex: a,
1206
1223
  seriesIndex: t.seriesIndex,
1207
1224
  show: !0
1208
1225
  }),
1209
- onMouseleave: (i) => ie({ datapoint: t, seriesIndex: t.seriesIndex })
1210
- }, null, 40, Da)) : v("", !0)
1226
+ onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex })
1227
+ }, null, 40, Ba)) : v("", !0)
1211
1228
  ], 64)) : v("", !0),
1212
- e.value.type === "polar" ? (n(), r(b, { key: 1 }, [
1229
+ e.value.type === "polar" ? (n(), r(w, { key: 1 }, [
1213
1230
  D(t) && f.value.dataLabels.show ? (n(), r("circle", {
1214
1231
  key: 0,
1215
1232
  cx: u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
@@ -1220,20 +1237,20 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1220
1237
  r: 3,
1221
1238
  filter: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a ? "" : `url(#blur_${g.value})`,
1222
1239
  onClick: (i) => Q(t, a),
1223
- onMouseenter: (i) => ve({
1240
+ onMouseenter: (i) => ce({
1224
1241
  datapoint: t,
1225
1242
  relativeIndex: a,
1226
1243
  seriesIndex: t.seriesIndex,
1227
1244
  show: !0
1228
1245
  }),
1229
- onMouseleave: (i) => ie({ datapoint: t, seriesIndex: t.seriesIndex }),
1246
+ onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex }),
1230
1247
  style: $({
1231
1248
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1232
1249
  })
1233
- }, null, 44, Ba)) : v("", !0)
1250
+ }, null, 44, Va)) : v("", !0)
1234
1251
  ], 64)) : v("", !0),
1235
- e.value.type === "classic" ? (n(), r(b, { key: 2 }, [
1236
- xt(h("text", {
1252
+ e.value.type === "classic" ? (n(), r(w, { key: 2 }, [
1253
+ Ct(h("text", {
1237
1254
  class: "vue-data-ui-datalabel-value",
1238
1255
  "text-anchor": u(x)(t, !0, 12).anchor,
1239
1256
  x: u(x)(t, !0, 12).x,
@@ -1242,14 +1259,14 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1242
1259
  "font-size": we.value + "px",
1243
1260
  style: $(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
1244
1261
  onClick: (i) => Q(t, a),
1245
- onMouseenter: (i) => ve({
1262
+ onMouseenter: (i) => ce({
1246
1263
  datapoint: t,
1247
1264
  relativeIndex: a,
1248
1265
  seriesIndex: t.seriesIndex,
1249
1266
  show: !0
1250
1267
  }),
1251
- onMouseleave: (i) => ie({ datapoint: t, seriesIndex: t.seriesIndex })
1252
- }, I(ze(t, X.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${u(V)(
1268
+ onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex })
1269
+ }, I(Oe(t, X.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${u(V)(
1253
1270
  e.value.style.chart.layout.labels.value.formatter,
1254
1271
  t.value,
1255
1272
  u(N)({
@@ -1259,10 +1276,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1259
1276
  r: e.value.style.chart.layout.labels.value.rounding
1260
1277
  }),
1261
1278
  { datapoint: t }
1262
- )})` : ""), 45, Va), [
1263
- [_t, D(t) && f.value.dataLabels.show]
1279
+ )})` : ""), 45, Ea), [
1280
+ [At, D(t) && f.value.dataLabels.show]
1264
1281
  ]),
1265
- xt(h("text", {
1282
+ Ct(h("text", {
1266
1283
  class: "vue-data-ui-datalabel-name",
1267
1284
  "text-anchor": u(x)(t).anchor,
1268
1285
  x: u(x)(t, !0, 12).x,
@@ -1271,23 +1288,23 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1271
1288
  "font-size": J.value + "px",
1272
1289
  style: $(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
1273
1290
  onClick: (i) => Q(t, a),
1274
- innerHTML: u(Tt)({
1291
+ innerHTML: u(Ft)({
1275
1292
  content: t.name,
1276
1293
  fontSize: J.value,
1277
1294
  fill: e.value.style.chart.layout.labels.name.color,
1278
1295
  x: u(x)(t, !0, 12).x,
1279
1296
  y: u(fe)(t) + J.value
1280
1297
  })
1281
- }, null, 12, Ea), [
1282
- [_t, D(t) && f.value.dataLabels.show]
1298
+ }, null, 12, Ra), [
1299
+ [At, D(t) && f.value.dataLabels.show]
1283
1300
  ]),
1284
- o[6] || (o[6] = Be(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> '))
1301
+ o[6] || (o[6] = Ee(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> '))
1285
1302
  ], 64)) : v("", !0),
1286
- e.value.type === "polar" ? (n(), r(b, { key: 3 }, [
1303
+ e.value.type === "polar" ? (n(), r(w, { key: 3 }, [
1287
1304
  D(t) && f.value.dataLabels.show ? (n(), r("text", {
1288
1305
  key: 0,
1289
1306
  class: "vue-data-ui-datalabel-value",
1290
- "text-anchor": re(d.value[a].middlePoint),
1307
+ "text-anchor": ve(d.value[a].middlePoint),
1291
1308
  x: u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
1292
1309
  y: u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
1293
1310
  fill: e.value.style.chart.layout.labels.percentage.color,
@@ -1297,14 +1314,14 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1297
1314
  fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
1298
1315
  }),
1299
1316
  onClick: (i) => Q(t, a),
1300
- onMouseenter: (i) => ve({
1317
+ onMouseenter: (i) => ce({
1301
1318
  datapoint: t,
1302
1319
  relativeIndex: a,
1303
1320
  seriesIndex: t.seriesIndex,
1304
1321
  show: !0
1305
1322
  }),
1306
- onMouseleave: (i) => ie({ datapoint: t, seriesIndex: t.seriesIndex })
1307
- }, I(ze(t, X.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${u(V)(
1323
+ onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex })
1324
+ }, I(Oe(t, X.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${u(V)(
1308
1325
  e.value.style.chart.layout.labels.value.formatter,
1309
1326
  t.value,
1310
1327
  u(N)({
@@ -1318,7 +1335,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1318
1335
  D(t) && f.value.dataLabels.show ? (n(), r("text", {
1319
1336
  key: 1,
1320
1337
  class: "vue-data-ui-datalabel-name",
1321
- "text-anchor": re(d.value[a].middlePoint),
1338
+ "text-anchor": ve(d.value[a].middlePoint),
1322
1339
  x: u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
1323
1340
  y: u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y + J.value * 1.2,
1324
1341
  fill: e.value.style.chart.layout.labels.name.color,
@@ -1328,18 +1345,18 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1328
1345
  fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
1329
1346
  }),
1330
1347
  onClick: (i) => Q(t, a),
1331
- innerHTML: u(Tt)({
1348
+ innerHTML: u(Ft)({
1332
1349
  content: t.name,
1333
1350
  fontSize: we.value,
1334
1351
  fill: e.value.style.chart.layout.labels.name.color,
1335
1352
  x: u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
1336
1353
  y: u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y + J.value * 1.2
1337
1354
  })
1338
- }, null, 12, Ra)) : v("", !0),
1339
- o[7] || (o[7] = Be(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> '))
1355
+ }, null, 12, qa)) : v("", !0),
1356
+ o[7] || (o[7] = Ee(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> '))
1340
1357
  ], 64)) : v("", !0)
1341
1358
  ])),
1342
- f.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (n(), r("g", qa, [
1359
+ f.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (n(), r("g", Ua, [
1343
1360
  D(t) && e.value.type === "classic" ? (n(), r("foreignObject", {
1344
1361
  key: 0,
1345
1362
  x: e.value.style.chart.comments.offsetX + (u(x)(t, !0).anchor === "end" ? u(x)(t).x - e.value.style.chart.comments.width : u(x)(t, !0).anchor === "middle" ? u(x)(t).x - e.value.style.chart.comments.width / 2 : u(x)(t).x),
@@ -1349,15 +1366,15 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1349
1366
  style: { overflow: "visible", "pointer-events": "none" }
1350
1367
  }, [
1351
1368
  h("div", null, [
1352
- w(l.$slots, "plot-comment", {
1369
+ b(l.$slots, "plot-comment", {
1353
1370
  plot: { ...t, textAlign: u(x)(t, !0, 16, !0).anchor, flexAlign: u(x)(t, !0, 16).anchor, isFirstLoad: T.value }
1354
1371
  }, void 0, !0)
1355
1372
  ])
1356
1373
  ], 8, Wa)) : v("", !0),
1357
1374
  D(t) && e.value.type === "polar" ? (n(), r("foreignObject", {
1358
1375
  key: 1,
1359
- x: e.value.style.chart.comments.offsetX + (re(d.value[a].middlePoint) === "end" ? u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width : re(d.value[a].middlePoint) === "middle" ? u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x),
1360
- y: Kt(d.value[a]) + e.value.style.chart.comments.offsetY,
1376
+ x: e.value.style.chart.comments.offsetX + (ve(d.value[a].middlePoint) === "end" ? u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width : ve(d.value[a].middlePoint) === "middle" ? u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x),
1377
+ y: el(d.value[a]) + e.value.style.chart.comments.offsetY,
1361
1378
  width: e.value.style.chart.comments.width,
1362
1379
  height: "200",
1363
1380
  style: $({
@@ -1367,32 +1384,32 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1367
1384
  })
1368
1385
  }, [
1369
1386
  h("div", null, [
1370
- w(l.$slots, "plot-comment", {
1371
- plot: { ...t, textAlign: re(d.value[a].middlePoint), flexAlign: re(d.value[a].middlePoint), isFirstLoad: T.value }
1387
+ b(l.$slots, "plot-comment", {
1388
+ plot: { ...t, textAlign: ve(d.value[a].middlePoint), flexAlign: ve(d.value[a].middlePoint), isFirstLoad: T.value }
1372
1389
  }, void 0, !0)
1373
1390
  ])
1374
- ], 12, Ua)) : v("", !0)
1391
+ ], 12, Ha)) : v("", !0)
1375
1392
  ])) : v("", !0)
1376
- ], 10, Oa))), 128)),
1377
- w(l.$slots, "svg", { svg: s.value }, void 0, !0)
1393
+ ], 10, Na))), 128)),
1394
+ b(l.$slots, "svg", { svg: s.value }, void 0, !0)
1378
1395
  ], 512)
1379
- ], 14, Bl)),
1380
- l.$slots.watermark ? (n(), r("div", Ha, [
1381
- w(l.$slots, "watermark", he(ye({ isPrinting: u(at) || u(ot) })), void 0, !0)
1396
+ ], 14, Vl)),
1397
+ l.$slots.watermark ? (n(), r("div", ja, [
1398
+ b(l.$slots, "watermark", oe(se({ isPrinting: u(st) || u(nt) })), void 0, !0)
1382
1399
  ])) : v("", !0),
1383
1400
  h("div", {
1384
1401
  ref_key: "chartLegend",
1385
- ref: qe
1402
+ ref: We
1386
1403
  }, [
1387
- e.value.style.chart.legend.show ? (n(), ae(Il, {
1388
- key: `legend_${Je.value}`,
1389
- legendSet: dt.value,
1390
- config: Ht.value,
1391
- onClickMarker: o[3] || (o[3] = ({ i: t }) => vt(t))
1392
- }, wt({
1404
+ e.value.style.chart.legend.show ? (n(), ae(Xl, {
1405
+ key: `legend_${Qe.value}`,
1406
+ legendSet: ht.value,
1407
+ config: Kt.value,
1408
+ onClickMarker: o[3] || (o[3] = ({ i: t }) => ct(t))
1409
+ }, _t({
1393
1410
  item: A(({ legend: t, index: a }) => [
1394
1411
  h("div", {
1395
- style: $(`opacity:${E.value.includes(a) ? 0.5 : 1}`),
1412
+ style: $(`opacity:${q.value.includes(a) ? 0.5 : 1}`),
1396
1413
  onClick: (i) => t.segregate()
1397
1414
  }, I(t.name) + I(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + I(e.value.style.chart.legend.showValue ? u(V)(
1398
1415
  e.value.style.chart.layout.labels.value.formatter,
@@ -1407,22 +1424,22 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1407
1424
  datapoint: t,
1408
1425
  index: a
1409
1426
  }
1410
- ) : "") + " " + I(e.value.style.chart.legend.showPercentage ? E.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${Zt(t.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / L.value) ? "-" : u(V)(
1427
+ ) : "") + " " + I(e.value.style.chart.legend.showPercentage ? q.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${ll(t.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / F.value) ? "-" : u(V)(
1411
1428
  e.value.style.chart.layout.labels.percentage.formatter,
1412
- ht.value(t),
1429
+ yt.value(t),
1413
1430
  u(N)({
1414
- v: ht.value(t),
1431
+ v: yt.value(t),
1415
1432
  s: "%",
1416
1433
  r: e.value.style.chart.legend.roundingPercentage
1417
1434
  })
1418
- )}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, ja)
1435
+ )}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Ja)
1419
1436
  ]),
1420
1437
  _: 2
1421
1438
  }, [
1422
1439
  l.$slots.pattern ? {
1423
1440
  name: "legend-pattern",
1424
1441
  fn: A(({ legend: t, index: a }) => [
1425
- De(zl, {
1442
+ Ve(Nl, {
1426
1443
  shape: t.shape,
1427
1444
  radius: 30,
1428
1445
  stroke: "none",
@@ -1433,18 +1450,25 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1433
1450
  key: "0"
1434
1451
  } : void 0
1435
1452
  ]), 1032, ["legendSet", "config"])) : v("", !0),
1436
- w(l.$slots, "legend", { legend: dt.value }, void 0, !0)
1453
+ b(l.$slots, "legend", { legend: ht.value }, void 0, !0)
1437
1454
  ], 512),
1438
1455
  l.$slots.source ? (n(), r("div", {
1439
1456
  key: 5,
1440
1457
  ref_key: "source",
1441
- ref: We,
1458
+ ref: He,
1442
1459
  dir: "auto"
1443
1460
  }, [
1444
- w(l.$slots, "source", {}, void 0, !0)
1461
+ b(l.$slots, "source", {}, void 0, !0)
1445
1462
  ], 512)) : v("", !0),
1446
- De(u(Nt), {
1447
- show: f.value.showTooltip && Fe.value,
1463
+ l.$slots.hollow ? (n(), r("div", Ka, [
1464
+ b(l.$slots, "hollow", oe(se({
1465
+ total: F.value,
1466
+ average: Ne.value,
1467
+ dataset: G.value
1468
+ })), void 0, !0)
1469
+ ])) : v("", !0),
1470
+ Ve(u(Dt), {
1471
+ show: f.value.showTooltip && Le.value,
1448
1472
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1449
1473
  color: e.value.style.chart.tooltip.color,
1450
1474
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -1454,21 +1478,23 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1454
1478
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1455
1479
  position: e.value.style.chart.tooltip.position,
1456
1480
  offsetY: e.value.style.chart.tooltip.offsetY,
1457
- parent: H.value,
1458
- content: Le.value,
1481
+ parent: E.value,
1482
+ content: Ie.value,
1459
1483
  isCustom: pe.value,
1460
- isFullscreen: de.value
1484
+ isFullscreen: he.value,
1485
+ smooth: e.value.style.chart.tooltip.smooth,
1486
+ backdropFilter: e.value.style.chart.tooltip.backdropFilter
1461
1487
  }, {
1462
1488
  "tooltip-before": A(() => [
1463
- w(l.$slots, "tooltip-before", he(ye({ ...Oe.value })), void 0, !0)
1489
+ b(l.$slots, "tooltip-before", oe(se({ ...Ye.value })), void 0, !0)
1464
1490
  ]),
1465
1491
  "tooltip-after": A(() => [
1466
- w(l.$slots, "tooltip-after", he(ye({ ...Oe.value })), void 0, !0)
1492
+ b(l.$slots, "tooltip-after", oe(se({ ...Ye.value })), void 0, !0)
1467
1493
  ]),
1468
1494
  _: 3
1469
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
1470
- me.value ? (n(), ae(u(It), {
1471
- key: 6,
1495
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter"]),
1496
+ me.value ? (n(), ae(u(Ot), {
1497
+ key: 7,
1472
1498
  hideDetails: "",
1473
1499
  config: {
1474
1500
  open: f.value.showTable,
@@ -1484,8 +1510,8 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1484
1510
  }
1485
1511
  }, {
1486
1512
  content: A(() => [
1487
- (n(), ae(u(Mt), {
1488
- key: `table_${je.value}`,
1513
+ (n(), ae(u(Nt), {
1514
+ key: `table_${Ke.value}`,
1489
1515
  colNames: _e.value.colNames,
1490
1516
  head: _e.value.head,
1491
1517
  body: _e.value.body,
@@ -1497,10 +1523,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1497
1523
  h("div", {
1498
1524
  innerHTML: t,
1499
1525
  style: { display: "flex", "align-items": "center" }
1500
- }, null, 8, Ja)
1526
+ }, null, 8, Qa)
1501
1527
  ]),
1502
1528
  td: A(({ td: t }) => [
1503
- Be(I(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : u(V)(
1529
+ Ee(I(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : u(V)(
1504
1530
  e.value.style.chart.layout.labels.percentage.formatter,
1505
1531
  t,
1506
1532
  u(N)({
@@ -1524,10 +1550,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
1524
1550
  ]),
1525
1551
  _: 1
1526
1552
  }, 8, ["config"])) : v("", !0),
1527
- u(ke) ? (n(), ae(Nl, { key: 7 })) : v("", !0)
1528
- ], 46, Dl));
1553
+ u(ke) ? (n(), ae(Il, { key: 8 })) : v("", !0)
1554
+ ], 46, Bl));
1529
1555
  }
1530
- }, co = /* @__PURE__ */ Xl(Ka, [["__scopeId", "data-v-d52589ce"]]);
1556
+ }, yo = /* @__PURE__ */ Dl(Za, [["__scopeId", "data-v-3da81d6a"]]);
1531
1557
  export {
1532
- co as default
1558
+ yo as default
1533
1559
  };