vue-data-ui 3.22.6 → 3.22.8

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 (203) hide show
  1. package/dist/{Arrow-Ds4xmpiQ.js → Arrow-DdymhUfY.js} +1 -1
  2. package/dist/{BaseDraggableDialog-VbypEaAa.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
  3. package/dist/{BaseIcon-DcUvOfxf.js → BaseIcon-C2qlyHc7.js} +1 -1
  4. package/dist/{BaseLegendToggle-DFwIY5bE.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
  5. package/dist/{BaseZoomControls-DwolSINF.js → BaseZoomControls-C6zonwhr.js} +2 -2
  6. package/dist/{ColorPicker-UVDPcrjE.js → ColorPicker-CK2-h611.js} +2 -2
  7. package/dist/{DataTable-CXfvIulC.js → DataTable-D9NvewTT.js} +2 -2
  8. package/dist/{Legend-D-635Kag.js → Legend-ROt6ugzW.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-pR_1qp3s.js → NonSvgPenAndPaper-BHHNsVVP.js} +29 -29
  10. package/dist/{PackageVersion-Da7hl-34.js → PackageVersion-DW7zwRcm.js} +1 -1
  11. package/dist/{PenAndPaper-Bk2-E7V4.js → PenAndPaper-pcgwlYr2.js} +18 -18
  12. package/dist/{Shape-BSetplwm.js → Shape-UpH0a4Ur.js} +3 -3
  13. package/dist/{Slicer-ClIGOuoX.js → Slicer-BZ5VnOOS.js} +19 -19
  14. package/dist/{SlicerPreview-D1n9AW39.js → SlicerPreview-BQFeCw0m.js} +351 -351
  15. package/dist/{SparkTooltip-CjDAyolg.js → SparkTooltip-BTLN-Kex.js} +6 -6
  16. package/dist/{Title-C-p0ilWB.js → Title-CcNiYzEo.js} +1 -1
  17. package/dist/{Tooltip-YabpoXo1.js → Tooltip-CxOrWlFy.js} +1 -1
  18. package/dist/{UserOptions-BO4VFL8O.js → UserOptions-16uF1ayB.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-CVJfsfwL.js → dom-to-png-BbwhsRIr.js} +1 -1
  89. package/dist/exposedLib-VXFp3Z2c.js +19 -0
  90. package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
  91. package/dist/{img-B_y5qDdm.js → img-DnP3eXuv.js} +1 -1
  92. package/dist/{labelUtils-CyVwqXSh.js → labelUtils-DBEh078l.js} +1 -1
  93. package/dist/{lib-DRBJCmHW.js → lib-JqW18y5I.js} +49 -30
  94. package/dist/{package-DyQ_PQis.js → package-gp9pYCfN.js} +1 -1
  95. package/dist/{pdf-CG02qhAH.js → pdf-hj3gzrE7.js} +1 -1
  96. package/dist/{render-common-CUAlQvAQ.js → render-common-CLn1VXJ9.js} +20 -20
  97. package/dist/ssr/vue-ui-donut.js +1 -1
  98. package/dist/ssr/vue-ui-xy.js +1 -1
  99. package/dist/ssr.js +2 -2
  100. package/dist/style.css +1 -1
  101. package/dist/types/utils.d.ts +18 -0
  102. package/dist/{useAutoSizeLabelsInsideViewbox-DPMOys9n.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
  103. package/dist/{useNestedProp-BEo2N1Db.js → useNestedProp-DIuuzG1r.js} +1 -1
  104. package/dist/{usePrinter-CRp5IW3v.js → usePrinter-CqqHmnBI.js} +2 -2
  105. package/dist/utils.js +23 -23
  106. package/dist/{vue-data-ui-Bpu4kxlm.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
  107. package/dist/vue-data-ui.js +77 -77
  108. package/dist/{vue-ui-3d-bar-BAH0jNtT.js → vue-ui-3d-bar-B3HxJmDI.js} +124 -124
  109. package/dist/{vue-ui-accordion-CfMrbDoq.js → vue-ui-accordion-YyosvEPo.js} +3 -3
  110. package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
  111. package/dist/{vue-ui-annotator-CG6rhFpy.js → vue-ui-annotator-CfJXeAOE.js} +6 -6
  112. package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
  113. package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
  114. package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
  115. package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
  116. package/dist/{vue-ui-chestnut-Cx8T3NEl.js → vue-ui-chestnut-RfWMGUD-.js} +114 -114
  117. package/dist/{vue-ui-chord-B-sauvLo.js → vue-ui-chord-Db1O_diJ.js} +57 -57
  118. package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
  119. package/dist/{vue-ui-cursor-DVsEm_4l.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
  120. package/dist/{vue-ui-dag-Cfi0b9qm.js → vue-ui-dag-DL3zq0F2.js} +37 -37
  121. package/dist/{vue-ui-dashboard-F_NZ1xoQ.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
  122. package/dist/{vue-ui-digits-BfP1kbj3.js → vue-ui-digits-ThFVNO3l.js} +3 -3
  123. package/dist/{vue-ui-donut-DlVRnVr_.js → vue-ui-donut-BuTd6dt4.js} +224 -224
  124. package/dist/{vue-ui-donut-BwAyvV3-.js → vue-ui-donut-C3Rt6j-I.js} +458 -458
  125. package/dist/vue-ui-donut-evolution-DY46UPF_.js +1510 -0
  126. package/dist/vue-ui-dumbbell-wK7vUB0x.js +1530 -0
  127. package/dist/{vue-ui-flow-D_7Idmmw.js → vue-ui-flow-BTUNfWb7.js} +122 -122
  128. package/dist/vue-ui-funnel-BhoHzyHa.js +777 -0
  129. package/dist/{vue-ui-galaxy-Bjxbg5_B.js → vue-ui-galaxy-DJ2uNYcN.js} +263 -263
  130. package/dist/{vue-ui-gauge-Dt0H7DgC.js → vue-ui-gauge-Cf4NqvrO.js} +226 -226
  131. package/dist/{vue-ui-geo-89DEQb5l.js → vue-ui-geo-ovHu_Sc9.js} +21 -21
  132. package/dist/{vue-ui-gizmo-CQyLK18v.js → vue-ui-gizmo-DDxEj-qe.js} +7 -7
  133. package/dist/{vue-ui-heatmap-o6MvoxBK.js → vue-ui-heatmap-Npqnvb1r.js} +282 -282
  134. package/dist/vue-ui-history-plot-C3Kjy2tc.js +1715 -0
  135. package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
  136. package/dist/{vue-ui-kpi-4C-j92D-.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
  137. package/dist/{vue-ui-mini-loader-Bj4Wv-i8.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
  138. package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
  139. package/dist/{vue-ui-mood-radar-B5W35Fvp.js → vue-ui-mood-radar-DlVh6hwx.js} +27 -27
  140. package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
  141. package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
  142. package/dist/{vue-ui-parallel-coordinate-plot-DBpHCFxa.js → vue-ui-parallel-coordinate-plot-DSp_cwU-.js} +57 -57
  143. package/dist/vue-ui-quadrant-ByVg-NBs.js +1978 -0
  144. package/dist/{vue-ui-quick-chart-so_8PzvS.js → vue-ui-quick-chart-WMzSJxGZ.js} +188 -188
  145. package/dist/{vue-ui-radar-5fQ5AAWD.js → vue-ui-radar-DE-me6OC.js} +64 -64
  146. package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
  147. package/dist/vue-ui-relation-circle-L7-dTqet.js +924 -0
  148. package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
  149. package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
  150. package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
  151. package/dist/{vue-ui-skeleton-BkxB6Dik.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
  152. package/dist/{vue-ui-smiley-C4g0iaF7.js → vue-ui-smiley-D4NnZ1mg.js} +17 -17
  153. package/dist/{vue-ui-spark-trend-0FELlq4x.js → vue-ui-spark-trend-C38ysZ-c.js} +21 -21
  154. package/dist/{vue-ui-sparkbar-D-i_VLO6.js → vue-ui-sparkbar-B03ndcUe.js} +80 -80
  155. package/dist/{vue-ui-sparkgauge-CWw6w_ng.js → vue-ui-sparkgauge-DgPc4vPT.js} +7 -7
  156. package/dist/{vue-ui-sparkhistogram-DuGpkfma.js → vue-ui-sparkhistogram-D02ff7ZI.js} +115 -115
  157. package/dist/{vue-ui-sparkline-Bi06lHQd.js → vue-ui-sparkline-DlTfNQj8.js} +464 -464
  158. package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +662 -0
  159. package/dist/vue-ui-stackbar-BVdApDnY.js +2332 -0
  160. package/dist/vue-ui-stackline-QzQQ7lTy.js +2419 -0
  161. package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
  162. package/dist/{vue-ui-table-DBlZswRi.js → vue-ui-table-Q3brrivC.js} +68 -68
  163. package/dist/{vue-ui-table-heatmap-3xYIDKcP.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
  164. package/dist/{vue-ui-table-sparkline-BH5PzEnJ.js → vue-ui-table-sparkline-Q6BHPKUn.js} +199 -199
  165. package/dist/{vue-ui-thermometer-BxMzAqoT.js → vue-ui-thermometer-Bg0RR6m4.js} +26 -26
  166. package/dist/{vue-ui-timer-ONSitYDm.js → vue-ui-timer-BdzKpoRj.js} +29 -29
  167. package/dist/{vue-ui-tiremarks-DWXM-9nR.js → vue-ui-tiremarks-DWb69ofh.js} +17 -17
  168. package/dist/{vue-ui-treemap-B03c4RIy.js → vue-ui-treemap-uUz07Prw.js} +401 -401
  169. package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
  170. package/dist/{vue-ui-wheel-DRP7X8S2.js → vue-ui-wheel-DTfvWYA7.js} +137 -137
  171. package/dist/{vue-ui-word-cloud-AKpMO97a.js → vue-ui-word-cloud-DqfljAqH.js} +40 -40
  172. package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
  173. package/dist/{vue-ui-xy-Bmd11BxR.js → vue-ui-xy-Bvgy2do1.js} +1598 -1596
  174. package/dist/{vue-ui-xy-DJ8YKPgs.js → vue-ui-xy-D5KsuNR2.js} +259 -259
  175. package/dist/{vue-ui-xy-canvas-DO_PDGKf.js → vue-ui-xy-canvas-BfgeE3TW.js} +440 -437
  176. package/package.json +1 -1
  177. package/dist/exposedLib-CjwriUaG.js +0 -19
  178. package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +0 -1238
  179. package/dist/vue-ui-bullet-C_oBS1cr.js +0 -710
  180. package/dist/vue-ui-bump-BZB1Na8h.js +0 -1249
  181. package/dist/vue-ui-candlestick-8d_1xO8X.js +0 -1826
  182. package/dist/vue-ui-carousel-table-BfZNcwmY.js +0 -455
  183. package/dist/vue-ui-circle-pack-BLh8HnGK.js +0 -1608
  184. package/dist/vue-ui-donut-evolution-D1k4u6cA.js +0 -1510
  185. package/dist/vue-ui-dumbbell-DgmvPpK2.js +0 -1530
  186. package/dist/vue-ui-funnel-BYCFV5TD.js +0 -777
  187. package/dist/vue-ui-history-plot-B7zuCfdg.js +0 -1715
  188. package/dist/vue-ui-horizontal-bar-CwB4sc6M.js +0 -1683
  189. package/dist/vue-ui-molecule-BDrRmwmm.js +0 -925
  190. package/dist/vue-ui-nested-donuts-wfesrzle.js +0 -1487
  191. package/dist/vue-ui-onion-B8-psLbF.js +0 -1200
  192. package/dist/vue-ui-quadrant-BzyGOJR2.js +0 -1978
  193. package/dist/vue-ui-rating-CKWHDKOT.js +0 -343
  194. package/dist/vue-ui-relation-circle-Bd_ONHCz.js +0 -924
  195. package/dist/vue-ui-ridgeline-DVbYznRz.js +0 -1622
  196. package/dist/vue-ui-rings-c-yLWFHr.js +0 -1246
  197. package/dist/vue-ui-scatter-QhmE7n1H.js +0 -2413
  198. package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +0 -662
  199. package/dist/vue-ui-stackbar-DDvuDGQ_.js +0 -2329
  200. package/dist/vue-ui-stackline-C0NHBUaE.js +0 -2416
  201. package/dist/vue-ui-strip-plot-_6LL45i9.js +0 -1729
  202. package/dist/vue-ui-waffle-afa8HSxz.js +0 -1362
  203. package/dist/vue-ui-world-CqS-HhZl.js +0 -14264
@@ -1,28 +1,28 @@
1
- import { $ as e, At as t, Ht as n, It as r, Lt as i, O as a, Ot as o, Tt as s, U as c, W as l, Wt as u, b as d, d as f, i as p, p as m, q as h, t as g, u as _, v } from "./lib-DRBJCmHW.js";
1
+ import { At as e, Dt as t, G as n, J as r, Kt as i, Mt as a, Rt as o, W as s, Wt as c, b as l, d as u, et as d, i as f, k as p, p as m, t as h, u as g, v as _, zt as v } from "./lib-JqW18y5I.js";
2
2
  import { t as y } from "./useConfig-DYM3f6EI.js";
3
3
  import { t as b } from "./vue_ui_donut-BDGqG07h.js";
4
- import { _ as x, a as S, c as C, d as w, g as T, i as E, l as D, n as O, o as k, p as A, r as j, s as ee, t as te, u as M, v as N } from "./render-common-CUAlQvAQ.js";
4
+ import { _ as x, a as S, c as C, d as w, g as T, i as E, l as D, n as O, o as k, p as A, r as j, s as ee, t as te, u as M, v as N } from "./render-common-CLn1VXJ9.js";
5
5
  //#region src/svg/vue-ui-donut/create.js
6
6
  var { vue_ui_donut: ne } = y();
7
7
  function re({ config: e = {} } = {}) {
8
- let r = e ?? {}, i = u({
9
- userConfig: r,
8
+ let t = e ?? {}, n = i({
9
+ userConfig: t,
10
10
  defaultConfig: ne
11
- }), a = i.theme;
12
- if (!a) return {
13
- ...i,
14
- customPalette: i.customPalette?.length ? i.customPalette : t
11
+ }), r = n.theme;
12
+ if (!r) return {
13
+ ...n,
14
+ customPalette: n.customPalette?.length ? n.customPalette : a
15
15
  };
16
- let o = u({
17
- userConfig: r,
18
- defaultConfig: u({
19
- userConfig: b[a] || {},
20
- defaultConfig: i
16
+ let o = i({
17
+ userConfig: t,
18
+ defaultConfig: i({
19
+ userConfig: b[r] || {},
20
+ defaultConfig: n
21
21
  })
22
22
  });
23
23
  return {
24
24
  ...o,
25
- customPalette: o.customPalette?.length ? o.customPalette : n[a] || t
25
+ customPalette: o.customPalette?.length ? o.customPalette : c[r] || a
26
26
  };
27
27
  }
28
28
  function P(e, t = 0) {
@@ -38,27 +38,27 @@ function ie(e) {
38
38
  function ae(e, t) {
39
39
  return String(e?.name ?? e?.label ?? `Serie ${t + 1}`);
40
40
  }
41
- function oe(e = [], n) {
42
- let r = Array.isArray(n.customPalette) ? n.customPalette : t;
41
+ function oe(e = [], t) {
42
+ let n = Array.isArray(t.customPalette) ? t.customPalette : a;
43
43
  return (Array.isArray(e) ? e : []).map((e, t) => ({
44
44
  source: e,
45
45
  sourceIndex: t,
46
46
  value: ie(e)
47
47
  })).filter((e) => Number.isFinite(e.value)).sort((e, t) => e.source?.ghost && !t.source?.ghost ? 1 : t.source?.ghost && !e.source?.ghost ? -1 : t.value - e.value).map((e, t) => {
48
- let n = e.source, i = e.value, a = (n?.color ? d(n.color) : "") || r[t % r.length];
48
+ let r = e.source, i = e.value, a = (r?.color ? l(r.color) : "") || n[t % n.length];
49
49
  return {
50
- ...n,
51
- id: n?.id ?? `donut_serie_${t}`,
52
- name: ae(n, t),
50
+ ...r,
51
+ id: r?.id ?? `donut_serie_${t}`,
52
+ name: ae(r, t),
53
53
  value: i,
54
54
  absoluteValue: Math.abs(i),
55
- absoluteValues: Array.isArray(n?.values) ? n.values : [i],
55
+ absoluteValues: Array.isArray(r?.values) ? r.values : [i],
56
56
  color: a,
57
57
  index: t,
58
58
  sourceIndex: e.sourceIndex,
59
- patternIndex: n?.patternIndex ?? t,
60
- seriesIndex: n?.seriesIndex ?? t,
61
- ghost: !!n?.ghost
59
+ patternIndex: r?.patternIndex ?? t,
60
+ seriesIndex: r?.seriesIndex ?? t,
61
+ ghost: !!r?.ghost
62
62
  };
63
63
  }).filter((e) => Number.isFinite(e.absoluteValue));
64
64
  }
@@ -117,7 +117,7 @@ function le({ dataset: e = [], config: t = {}, width: n = 512, height: r = 512,
117
117
  }
118
118
  //#endregion
119
119
  //#region src/svg/vue-ui-donut/render.js
120
- var ue = l();
120
+ var ue = n();
121
121
  function I() {
122
122
  return ue;
123
123
  }
@@ -209,21 +209,21 @@ function me(e, t) {
209
209
  innerRadius: V(n) ? 0 : Math.max(0, T - A)
210
210
  };
211
211
  }
212
- function he(e, t) {
213
- let n = x(S(e.config, "layout.donut.rotation", 105.25), 105.25);
214
- return s({ series: t }, e.center.x, e.center.y, e.radius, e.radius, 1.99999, 2, 1, 360, n, V(e.config) ? e.radius : e.thickness).map((e, n) => ({
212
+ function he(e, n) {
213
+ let r = x(S(e.config, "layout.donut.rotation", 105.25), 105.25);
214
+ return t({ series: n }, e.center.x, e.center.y, e.radius, e.radius, 1.99999, 2, 1, 360, r, V(e.config) ? e.radius : e.thickness).map((e, t) => ({
215
215
  ...e,
216
- index: n,
217
- color: k(e.color, t[n]?.color),
216
+ index: t,
217
+ color: k(e.color, n[t]?.color),
218
218
  value: x(e.value, 0),
219
- name: String(e.name ?? t[n]?.name ?? `Serie ${n + 1}`),
220
- patternIndex: e.patternIndex ?? t[n]?.patternIndex ?? n,
221
- seriesIndex: e.seriesIndex ?? t[n]?.seriesIndex ?? n
219
+ name: String(e.name ?? n[t]?.name ?? `Serie ${t + 1}`),
220
+ patternIndex: e.patternIndex ?? n[t]?.patternIndex ?? t,
221
+ seriesIndex: e.seriesIndex ?? n[t]?.seriesIndex ?? t
222
222
  }));
223
223
  }
224
224
  function ge(e, t) {
225
225
  let n = Math.max(1, ...t.map((e) => Math.abs(x(e.value, 0))));
226
- return a({
226
+ return p({
227
227
  series: t.map((e) => Math.abs(x(e.value, 0)) / n),
228
228
  center: e.center,
229
229
  maxRadius: Math.min(e.drawingArea.width, e.drawingArea.height) / 3,
@@ -271,53 +271,53 @@ function ve(e) {
271
271
  })), M("g", { "data-layer": "title" }, d.join(""));
272
272
  }
273
273
  function ye(e, t) {
274
- let { config: n } = e, a = [], o = !!S(n, "useGradient", !1), s = !!S(n, "layout.donut.useShadow", !1);
275
- if (o) {
276
- let o = E(n, "type", "classic"), s = x(S(n, "gradientIntensity", 30), 30);
277
- if (o === "classic" && Number.isFinite(e.thickness / e.radius)) {
274
+ let { config: n } = e, r = [], i = !!S(n, "useGradient", !1), a = !!S(n, "layout.donut.useShadow", !1);
275
+ if (i) {
276
+ let i = E(n, "type", "classic"), a = x(S(n, "gradientIntensity", 30), 30);
277
+ if (i === "classic" && Number.isFinite(e.thickness / e.radius)) {
278
278
  let t = V(n) ? 1 : e.thickness / e.radius;
279
- a.push(M("radialGradient", { id: H(e) }, [
279
+ r.push(M("radialGradient", { id: H(e) }, [
280
280
  w("stop", {
281
281
  offset: "0%",
282
- "stop-color": r(L(n), 0),
282
+ "stop-color": o(L(n), 0),
283
283
  "stop-opacity": 0
284
284
  }),
285
285
  w("stop", {
286
286
  offset: `${(1 - t) * 100}%`,
287
- "stop-color": r("#FFFFFF", 0),
287
+ "stop-color": o("#FFFFFF", 0),
288
288
  "stop-opacity": 0
289
289
  }),
290
290
  w("stop", {
291
291
  offset: `${(1 - t / 2) * 100}%`,
292
- "stop-color": r("#FFFFFF", s)
292
+ "stop-color": o("#FFFFFF", a)
293
293
  }),
294
294
  w("stop", {
295
295
  offset: "100%",
296
- "stop-color": r(L(n), 0),
296
+ "stop-color": o(L(n), 0),
297
297
  "stop-opacity": 0
298
298
  })
299
299
  ].join("")));
300
300
  }
301
- o === "polar" && t.forEach((t, n) => {
302
- let r = e.polarAreas?.[n];
303
- r?.middlePoint && a.push(M("radialGradient", {
301
+ i === "polar" && t.forEach((t, n) => {
302
+ let i = e.polarAreas?.[n];
303
+ i?.middlePoint && r.push(M("radialGradient", {
304
304
  id: U(e, n),
305
- cx: `${v(r.middlePoint.x / e.width * 100)}%`,
306
- cy: `${v(r.middlePoint.y / e.height * 100)}%`,
305
+ cx: `${_(i.middlePoint.x / e.width * 100)}%`,
306
+ cy: `${_(i.middlePoint.y / e.height * 100)}%`,
307
307
  r: "62%"
308
308
  }, [w("stop", {
309
309
  offset: "0%",
310
- "stop-color": i(t.color, .05),
311
- "stop-opacity": s / 100
310
+ "stop-color": v(t.color, .05),
311
+ "stop-opacity": a / 100
312
312
  }), w("stop", {
313
313
  offset: "100%",
314
314
  "stop-color": t.color
315
315
  })].join("")));
316
316
  });
317
317
  }
318
- if (s) {
319
- let t = k(S(n, "layout.donut.shadowColor", "#000000"), "#000000"), r = x(S(n, "layout.donut.shadowOpacity", .2), .2), i = x(S(n, "layout.donut.shadowBlur", 6), 6), o = x(S(n, "layout.donut.shadowOffsetY", 3), 3);
320
- a.push(M("filter", {
318
+ if (a) {
319
+ let t = k(S(n, "layout.donut.shadowColor", "#000000"), "#000000"), i = x(S(n, "layout.donut.shadowOpacity", .2), .2), a = x(S(n, "layout.donut.shadowBlur", 6), 6), o = x(S(n, "layout.donut.shadowOffsetY", 3), 3);
320
+ r.push(M("filter", {
321
321
  id: W(e),
322
322
  x: "-50%",
323
323
  y: "-50%",
@@ -326,12 +326,12 @@ function ye(e, t) {
326
326
  }, [w("feDropShadow", {
327
327
  dx: 0,
328
328
  dy: o,
329
- stdDeviation: i,
329
+ stdDeviation: a,
330
330
  "flood-color": t,
331
- "flood-opacity": r
331
+ "flood-opacity": i
332
332
  })].join("")));
333
333
  }
334
- return a.length ? M("defs", { "data-layer": "definitions" }, a.join("")) : "";
334
+ return r.length ? M("defs", { "data-layer": "definitions" }, r.join("")) : "";
335
335
  }
336
336
  function be(e, t) {
337
337
  return t.color;
@@ -388,21 +388,21 @@ function Ce(e, t, n) {
388
388
  }), M("g", { "data-layer": "polar-slices" }, a.join(""));
389
389
  }
390
390
  function q(e, t, n = "layout.labels.value.rounding") {
391
- let { config: r } = e, i = S(r, "layout.labels", {}), a = i.dataLabels ?? {}, o = i.value ?? {}, s = h({
392
- p: a.prefix ?? "",
391
+ let { config: i } = e, a = S(i, "layout.labels", {}), o = a.dataLabels ?? {}, s = a.value ?? {}, c = r({
392
+ p: o.prefix ?? "",
393
393
  v: t.value,
394
- s: a.suffix ?? "",
395
- r: x(S(r, n, o.rounding ?? 0), o.rounding ?? 0)
394
+ s: o.suffix ?? "",
395
+ r: x(S(i, n, s.rounding ?? 0), s.rounding ?? 0)
396
396
  });
397
- return p(o.formatter, t.value, s, { datapoint: t });
397
+ return f(s.formatter, t.value, c, { datapoint: t });
398
398
  }
399
399
  function J(e, t) {
400
- let { config: n } = e, r = S(n, "layout.labels.percentage", {}), i = x(t.proportion, 0) * 100, a = h({
401
- v: i,
400
+ let { config: n } = e, i = S(n, "layout.labels.percentage", {}), a = x(t.proportion, 0) * 100, o = r({
401
+ v: a,
402
402
  s: "%",
403
- r: x(r.rounding, 0)
403
+ r: x(i.rounding, 0)
404
404
  });
405
- return p(r.formatter, i, a, { datapoint: t });
405
+ return f(i.formatter, a, o, { datapoint: t });
406
406
  }
407
407
  function Y(e, t) {
408
408
  let n = S(e.config, "layout.labels", {}), r = !!n.name?.show, i = !!(n.value?.show ?? !0), a = !!(n.percentage?.show ?? !0);
@@ -434,14 +434,14 @@ function Q(e) {
434
434
  return !!S(e.config, "layout.curvedMarkers", S(e.config, "layout.donut.curvedMarkers", !1));
435
435
  }
436
436
  function Ee(e, t) {
437
- let n = S(e.config, "layout.labels.dataLabels", {}), r = {}, i = e.center.x, a = e.center.y, o = x(n.smallArcClusterFontSize ?? n.fontSize, 10), s = o / 3, c = o * 1.5, l = e.drawingArea.top + 16, u = e.drawingArea.bottom - 16, d = i - (e.radius + 6), p = i + (e.radius + 6), m = Q(e);
437
+ let n = S(e.config, "layout.labels.dataLabels", {}), r = {}, i = e.center.x, a = e.center.y, o = x(n.smallArcClusterFontSize ?? n.fontSize, 10), s = o / 3, c = o * 1.5, l = e.drawingArea.top + 16, d = e.drawingArea.bottom - 16, f = i - (e.radius + 6), p = i + (e.radius + 6), m = Q(e);
438
438
  function h(e) {
439
439
  return {
440
- x: v(e.center?.endX ?? e.endX),
441
- y: v(e.center?.endY ?? e.endY)
440
+ x: _(e.center?.endX ?? e.endX),
441
+ y: _(e.center?.endY ?? e.endY)
442
442
  };
443
443
  }
444
- function g({ midX: e, midY: t, bandX: n, bandY: r }) {
444
+ function v({ midX: e, midY: t, bandX: n, bandY: r }) {
445
445
  if (!m) return `M ${e} ${t} L ${e} ${r} L ${n} ${r}`;
446
446
  let o = n < i ? -1 : 1, s = n - e, c = r - t, l = Math.sqrt(s * s + c * c) || 1, u = e - i, d = t - a, f = Math.sqrt(u * u + d * d) || 1, p = u / f, h = d / f, g = f + 9;
447
447
  function _({ x: e, y: t }) {
@@ -489,8 +489,8 @@ function Ee(e, t) {
489
489
  index: t,
490
490
  midX: n.x,
491
491
  midY: n.y,
492
- inlineMarkerX: _(e).x,
493
- inlineMarkerY: f(e) - 3.5,
492
+ inlineMarkerX: g(e).x,
493
+ inlineMarkerY: u(e) - 3.5,
494
494
  labelHeight: y(e.name)
495
495
  };
496
496
  }
@@ -518,7 +518,7 @@ function Ee(e, t) {
518
518
  e.forEach((e) => {
519
519
  let { index: i, midX: s, midY: c, labelHeight: l } = e, u;
520
520
  a === "down" ? (u = o, o += l) : (o -= l, u = o);
521
- let d = u, f = g({
521
+ let d = u, f = v({
522
522
  midX: s,
523
523
  midY: c,
524
524
  bandX: n,
@@ -549,7 +549,7 @@ function Ee(e, t) {
549
549
  }), E({
550
550
  candidateList: D.TL,
551
551
  side: "left",
552
- bandMarkerX: d,
552
+ bandMarkerX: f,
553
553
  startY: l,
554
554
  direction: "down"
555
555
  }), E({
@@ -561,38 +561,38 @@ function Ee(e, t) {
561
561
  }), D.BL.length > 1 && E({
562
562
  candidateList: D.BL,
563
563
  side: "left",
564
- bandMarkerX: d,
565
- startY: u,
564
+ bandMarkerX: f,
565
+ startY: d,
566
566
  direction: "up"
567
567
  }), D.BR.length > 1 && E({
568
568
  candidateList: D.BR,
569
569
  side: "right",
570
570
  bandMarkerX: p,
571
- startY: u,
571
+ startY: d,
572
572
  direction: "up"
573
573
  }), r;
574
574
  }
575
- function De({ state: t, arc: n, arcIndex: r, smallArcLayout: i, fontSize: a }) {
576
- let o = S(t.config, "layout.labels", {}), s = o.percentage ?? {}, c = o.name ?? {}, l = i?.labelX ?? _(n, !0, 12).x, u = i?.labelY ?? f(n), d = i?.textAnchor ?? _(n, !0, 12).anchor, { name: p } = Y(t, n), m = we(t, n), h = String(p).split(/\n/g), g = p ? h.map((n, r) => M("tspan", {
575
+ function De({ state: e, arc: t, arcIndex: n, smallArcLayout: r, fontSize: i }) {
576
+ let a = S(e.config, "layout.labels", {}), o = a.percentage ?? {}, s = a.name ?? {}, c = r?.labelX ?? g(t, !0, 12).x, l = r?.labelY ?? u(t), f = r?.textAnchor ?? g(t, !0, 12).anchor, { name: p } = Y(e, t), m = we(e, t), h = String(p).split(/\n/g), _ = p ? h.map((t, n) => M("tspan", {
577
577
  class: "vue-data-ui-datalabel-name",
578
- x: r === 0 ? void 0 : l,
579
- dy: r === 0 ? void 0 : a * 1.2,
580
- fill: k(c.color, j(t.config)),
581
- "font-size": a,
582
- "font-weight": c.bold ? "700" : "400"
583
- }, e(n + (r === h.length - 1 ? " " : "")))).join("") : "", v = m ? M("tspan", {
584
- class: "vue-data-ui-datalabel-value",
585
- fill: k(s.color, j(t.config)),
586
- "font-size": a,
578
+ x: n === 0 ? void 0 : c,
579
+ dy: n === 0 ? void 0 : i * 1.2,
580
+ fill: k(s.color, j(e.config)),
581
+ "font-size": i,
587
582
  "font-weight": s.bold ? "700" : "400"
588
- }, e(m)) : "";
583
+ }, d(t + (n === h.length - 1 ? " " : "")))).join("") : "", v = m ? M("tspan", {
584
+ class: "vue-data-ui-datalabel-value",
585
+ fill: k(o.color, j(e.config)),
586
+ "font-size": i,
587
+ "font-weight": o.bold ? "700" : "400"
588
+ }, d(m)) : "";
589
589
  return M("text", {
590
- "data-cy": `donut-label-inline-${r}`,
590
+ "data-cy": `donut-label-inline-${n}`,
591
591
  class: "vue-data-ui-datalabel-inline",
592
- x: l,
593
- y: u,
594
- "text-anchor": d
595
- }, `${g}${v}`);
592
+ x: c,
593
+ y: l,
594
+ "text-anchor": f
595
+ }, `${_}${v}`);
596
596
  }
597
597
  function Oe(e, t) {
598
598
  let n = S(e.config, "layout.labels", {}), r = n.dataLabels ?? {};
@@ -618,89 +618,89 @@ function Oe(e, t) {
618
618
  arc: t,
619
619
  arcIndex: n,
620
620
  smallArcLayout: {
621
- labelX: _(t, !1, a + i / 2).x,
622
- labelY: f(t, a, a),
623
- textAnchor: _(t).anchor
621
+ labelX: g(t, !1, a + i / 2).x,
622
+ labelY: u(t, a, a),
623
+ textAnchor: g(t).anchor
624
624
  },
625
625
  fontSize: i
626
626
  }));
627
627
  }), s.length ? M("g", { "data-layer": "data-labels" }, s.join("")) : "";
628
628
  }
629
- function ke(e, t, n = 42) {
630
- return o({
631
- initX: t.middlePoint.x,
632
- initY: t.middlePoint.y,
633
- offset: n,
634
- centerX: e.center.x,
635
- centerY: e.center.y
629
+ function ke(t, n, r = 42) {
630
+ return e({
631
+ initX: n.middlePoint.x,
632
+ initY: n.middlePoint.y,
633
+ offset: r,
634
+ centerX: t.center.x,
635
+ centerY: t.center.y
636
636
  });
637
637
  }
638
638
  function Ae(e, t) {
639
639
  return t.x < e.center.x ? "end" : t.x > e.center.x ? "start" : "middle";
640
640
  }
641
- function je(t, n, r, i) {
642
- let a = S(t.config, "layout.labels", {}), o = a.percentage ?? {}, s = a.name ?? {}, c = x(o.fontSize, a.dataLabels?.fontSize ?? 12), l = x(s.fontSize, a.dataLabels?.fontSize ?? 12), u = M("tspan", {
641
+ function je(e, t, n, r) {
642
+ let i = S(e.config, "layout.labels", {}), a = i.percentage ?? {}, o = i.name ?? {}, s = x(a.fontSize, i.dataLabels?.fontSize ?? 12), c = x(o.fontSize, i.dataLabels?.fontSize ?? 12), l = M("tspan", {
643
643
  class: "vue-data-ui-datalabel-value",
644
- fill: k(o.color, j(t.config)),
644
+ fill: k(a.color, j(e.config)),
645
+ "font-size": s,
646
+ "font-weight": a.bold ? "700" : "400"
647
+ }, d(String(X(e, t).replace(/\n/g, " / ")))), u = o.show ? String(t.name ?? "").split(/\n/g).map((t, r) => M("tspan", {
648
+ class: "vue-data-ui-datalabel-name",
649
+ x: r === 0 ? void 0 : n,
650
+ dy: r === 0 ? void 0 : c * 1.2,
651
+ fill: k(o.color, j(e.config)),
645
652
  "font-size": c,
646
653
  "font-weight": o.bold ? "700" : "400"
647
- }, e(String(X(t, n).replace(/\n/g, " / ")))), d = s.show ? String(n.name ?? "").split(/\n/g).map((n, i) => M("tspan", {
648
- class: "vue-data-ui-datalabel-name",
649
- x: i === 0 ? void 0 : r,
650
- dy: i === 0 ? void 0 : l * 1.2,
651
- fill: k(s.color, j(t.config)),
652
- "font-size": l,
653
- "font-weight": s.bold ? "700" : "400"
654
- }, e(n))).join("") : "";
655
- return i === "end" ? `${d}${u}` : `${u}${d}`;
656
- }
657
- function Me(t, n, r) {
658
- let i = S(t.config, "layout.labels", {}), a = i.dataLabels ?? {}, o = i.value ?? {}, s = i.percentage ?? {}, l = i.name ?? {};
659
- if (!E(t.config, "dataLabels.show", a.show ?? !0) || !a.show) return "";
660
- let u = !!a.oneLine, d = x(o.fontSize, a.fontSize ?? 12), f = x(l.fontSize, a.fontSize ?? 12), p = [];
661
- return n.forEach((n, i) => {
662
- let a = r[i];
663
- if (!a || !Z(t, n)) return;
664
- let o = ke(t, a, 42), m = Ae(t, o);
665
- if (u) {
654
+ }, d(t))).join("") : "";
655
+ return r === "end" ? `${u}${l}` : `${l}${u}`;
656
+ }
657
+ function Me(e, t, n) {
658
+ let r = S(e.config, "layout.labels", {}), i = r.dataLabels ?? {}, a = r.value ?? {}, o = r.percentage ?? {}, c = r.name ?? {};
659
+ if (!E(e.config, "dataLabels.show", i.show ?? !0) || !i.show) return "";
660
+ let l = !!i.oneLine, u = x(a.fontSize, i.fontSize ?? 12), f = x(c.fontSize, i.fontSize ?? 12), p = [];
661
+ return t.forEach((t, r) => {
662
+ let i = n[r];
663
+ if (!i || !Z(e, t)) return;
664
+ let a = ke(e, i, 42), m = Ae(e, a);
665
+ if (l) {
666
666
  p.push(M("text", {
667
667
  "data-cy": "polar-label-inline",
668
668
  class: "vue-data-ui-datalabel-inline",
669
- x: o.x,
670
- y: o.y,
669
+ x: a.x,
670
+ y: a.y,
671
671
  "text-anchor": m
672
- }, je(t, n, o.x, m)));
672
+ }, je(e, t, a.x, m)));
673
673
  return;
674
674
  }
675
675
  p.push(M("text", {
676
676
  "data-cy": "polar-label-value",
677
677
  class: "vue-data-ui-datalabel-value",
678
- x: o.x,
679
- y: o.y,
680
- "font-size": d,
681
- "font-weight": s.bold ? "700" : "400",
678
+ x: a.x,
679
+ y: a.y,
680
+ "font-size": u,
681
+ "font-weight": o.bold ? "700" : "400",
682
682
  "text-anchor": m,
683
683
  fill: valueFill
684
684
  }, te({
685
- content: X(t, n),
686
- x: o.x,
687
- fontSize: d,
685
+ content: X(e, t),
686
+ x: a.x,
687
+ fontSize: u,
688
688
  fill: valueFill,
689
689
  textAnchor: m
690
- }))), l.show && p.push(M("text", {
690
+ }))), c.show && p.push(M("text", {
691
691
  "data-cy": "polar-label-name",
692
692
  class: "vue-data-ui-datalabel-name",
693
- x: o.x,
694
- y: o.y + f * 1.2,
693
+ x: a.x,
694
+ y: a.y + f * 1.2,
695
695
  "font-size": f,
696
- "font-weight": l.bold ? "700" : "400",
696
+ "font-weight": c.bold ? "700" : "400",
697
697
  "text-anchor": m,
698
- fill: k(l.color, j(t.config))
699
- }, c({
700
- content: e(String(n.name ?? "")),
698
+ fill: k(c.color, j(e.config))
699
+ }, s({
700
+ content: d(String(t.name ?? "")),
701
701
  fontSize: f,
702
- fill: k(l.color, j(t.config)),
703
- x: o.x
702
+ fill: k(c.color, j(e.config)),
703
+ x: a.x
704
704
  })));
705
705
  }), p.length ? M("g", { "data-layer": "polar-data-labels" }, p.join("")) : "";
706
706
  }
@@ -726,8 +726,8 @@ function Pe(e, t) {
726
726
  fill: "none"
727
727
  })), i.push(w("circle", {
728
728
  "data-cy": `donut-label-marker-${a}`,
729
- cx: o?.markerX ?? _(t).x,
730
- cy: o?.markerY ?? f(t) - 3.5,
729
+ cx: o?.markerX ?? g(t).x,
730
+ cy: o?.markerY ?? u(t) - 3.5,
731
731
  r: x(n.markerRadius, 3),
732
732
  fill: t.color,
733
733
  stroke: L(e.config),
@@ -735,38 +735,38 @@ function Pe(e, t) {
735
735
  })));
736
736
  }), i.length ? M("g", { "data-layer": "label-markers" }, i.join("")) : "";
737
737
  }
738
- function Fe(e, t, n) {
739
- let r = S(e.config, "layout.labels.dataLabels", {});
740
- if (!E(e.config, "dataLabels.show", r.show ?? !0) || !r.show) return "";
741
- let i = [];
742
- return t.forEach((t, a) => {
743
- let s = n[a];
744
- if (!s?.middlePoint || !Z(e, t)) return;
745
- let c = o({
738
+ function Fe(t, n, r) {
739
+ let i = S(t.config, "layout.labels.dataLabels", {});
740
+ if (!E(t.config, "dataLabels.show", i.show ?? !0) || !i.show) return "";
741
+ let a = [];
742
+ return n.forEach((n, o) => {
743
+ let s = r[o];
744
+ if (!s?.middlePoint || !Z(t, n)) return;
745
+ let c = e({
746
746
  initX: s.middlePoint.x,
747
747
  initY: s.middlePoint.y,
748
748
  offset: 24,
749
- centerX: e.center.x,
750
- centerY: e.center.y
749
+ centerX: t.center.x,
750
+ centerY: t.center.y
751
751
  });
752
- i.push(w("path", {
753
- "data-cy": `polar-marker-${a}`,
752
+ a.push(w("path", {
753
+ "data-cy": `polar-marker-${o}`,
754
754
  d: `M ${c.x},${c.y} ${s.middlePoint.x},${s.middlePoint.y}`,
755
- stroke: t.color,
756
- "stroke-width": x(r.markerStrokeWidth, 1),
755
+ stroke: n.color,
756
+ "stroke-width": x(i.markerStrokeWidth, 1),
757
757
  "stroke-linecap": "round",
758
758
  "stroke-linejoin": "round",
759
759
  fill: "none"
760
- })), i.push(w("circle", {
761
- "data-cy": `polar-label-marker-${a}`,
760
+ })), a.push(w("circle", {
761
+ "data-cy": `polar-label-marker-${o}`,
762
762
  cx: c.x,
763
763
  cy: c.y,
764
- r: x(r.markerRadius, 3),
765
- fill: t.color,
766
- stroke: L(e.config),
764
+ r: x(i.markerRadius, 3),
765
+ fill: n.color,
766
+ stroke: L(t.config),
767
767
  "stroke-width": 1
768
768
  }));
769
- }), i.length ? M("g", { "data-layer": "polar-label-markers" }, i.join("")) : "";
769
+ }), a.length ? M("g", { "data-layer": "polar-label-markers" }, a.join("")) : "";
770
770
  }
771
771
  function $(e, t) {
772
772
  return e == null || e === "" ? "" : N(e, {
@@ -776,75 +776,75 @@ function $(e, t) {
776
776
  }
777
777
  function Ie(e, t, n) {
778
778
  if (E(e.config, "type", "classic") !== "classic" || V(e.config) || !t) return "";
779
- let r = S(e.config, "layout.labels.hollow", {}), i = r.total ?? {}, a = r.average ?? {}, o = [];
780
- if (i.show) {
781
- let n = x(i.fontSize, 14), r = !!a.show, s = e.center.y - (r ? n : 0) + x(i.offsetY, 0), c = i.value ?? {}, l = x(c.fontSize, n), u = p(c.formatter, t, h({
782
- p: c.prefix ?? "",
779
+ let i = S(e.config, "layout.labels.hollow", {}), a = i.total ?? {}, o = i.average ?? {}, s = [];
780
+ if (a.show) {
781
+ let n = x(a.fontSize, 14), i = !!o.show, c = e.center.y - (i ? n : 0) + x(a.offsetY, 0), l = a.value ?? {}, u = x(l.fontSize, n), d = f(l.formatter, t, r({
782
+ p: l.prefix ?? "",
783
783
  v: t,
784
- s: c.suffix ?? "",
785
- r: x(c.rounding, 0)
784
+ s: l.suffix ?? "",
785
+ r: x(l.rounding, 0)
786
786
  }), { total: t });
787
- o.push($(i.text ?? "", {
787
+ s.push($(a.text ?? "", {
788
788
  "data-cy": "hollow-total-name",
789
789
  x: e.center.x,
790
- y: s,
791
- fill: k(i.color, j(e.config)),
790
+ y: c,
791
+ fill: k(a.color, j(e.config)),
792
792
  "font-size": n,
793
- "font-weight": i.bold ? "700" : "400"
794
- })), o.push($(u, {
793
+ "font-weight": a.bold ? "700" : "400"
794
+ })), s.push($(d, {
795
795
  "data-cy": "hollow-total-value",
796
796
  x: e.center.x,
797
- y: e.center.y + n - (r ? n : 0) + x(c.offsetY, 0),
798
- fill: k(c.color, k(i.color, j(e.config))),
799
- "font-size": l,
800
- "font-weight": c.bold ? "700" : "400"
797
+ y: e.center.y + n - (i ? n : 0) + x(l.offsetY, 0),
798
+ fill: k(l.color, k(a.color, j(e.config))),
799
+ "font-size": u,
800
+ "font-weight": l.bold ? "700" : "400"
801
801
  }));
802
802
  }
803
- if (a.show) {
804
- let r = x(a.fontSize, 14), s = !!i.show, c = t / Math.max(1, n.length), l = a.value ?? {}, u = x(l.fontSize, r), d = p(l.formatter, c, h({
805
- p: l.prefix ?? "",
806
- v: c,
807
- s: l.suffix ?? "",
808
- r: x(l.rounding, 0)
809
- }), { average: c });
810
- o.push($(a.text ?? "", {
803
+ if (o.show) {
804
+ let i = x(o.fontSize, 14), c = !!a.show, l = t / Math.max(1, n.length), u = o.value ?? {}, d = x(u.fontSize, i), p = f(u.formatter, l, r({
805
+ p: u.prefix ?? "",
806
+ v: l,
807
+ s: u.suffix ?? "",
808
+ r: x(u.rounding, 0)
809
+ }), { average: l });
810
+ s.push($(o.text ?? "", {
811
811
  "data-cy": "hollow-average-name",
812
812
  x: e.center.x,
813
- y: e.center.y + (s ? r : 0) + x(a.offsetY, 0),
814
- fill: k(a.color, j(e.config)),
815
- "font-size": r,
816
- "font-weight": a.bold ? "700" : "400"
817
- })), o.push($(d, {
813
+ y: e.center.y + (c ? i : 0) + x(o.offsetY, 0),
814
+ fill: k(o.color, j(e.config)),
815
+ "font-size": i,
816
+ "font-weight": o.bold ? "700" : "400"
817
+ })), s.push($(p, {
818
818
  "data-cy": "hollow-average-value",
819
819
  x: e.center.x,
820
- y: e.center.y + (s ? r : 0) + r + x(l.offsetY, 0),
821
- fill: k(l.color, k(a.color, j(e.config))),
822
- "font-size": u,
823
- "font-weight": l.bold ? "700" : "400"
820
+ y: e.center.y + (c ? i : 0) + i + x(u.offsetY, 0),
821
+ fill: k(u.color, k(o.color, j(e.config))),
822
+ "font-size": d,
823
+ "font-weight": u.bold ? "700" : "400"
824
824
  }));
825
825
  }
826
- return o.filter(Boolean).length ? M("g", {
826
+ return s.filter(Boolean).length ? M("g", {
827
827
  class: "vue-data-ui-donut-hollow-labels",
828
828
  "data-layer": "hollow-labels"
829
- }, o.join("")) : "";
829
+ }, s.join("")) : "";
830
830
  }
831
831
  function Le(e, t) {
832
- let { config: n, center: r } = e, i = S(n, "layout.donut.labels.total", S(n, "layout.labels.total", {}));
833
- if (!i.show || !Number.isFinite(t) || t <= 0) return "";
834
- let a = S(n, "layout.labels.dataLabels", {}), o = x(i.fontSize, 20), s = k(i.color, j(n));
835
- return N(p(i.formatter, t, h({
836
- p: a.prefix ?? "",
832
+ let { config: n, center: i } = e, a = S(n, "layout.donut.labels.total", S(n, "layout.labels.total", {}));
833
+ if (!a.show || !Number.isFinite(t) || t <= 0) return "";
834
+ let o = S(n, "layout.labels.dataLabels", {}), s = x(a.fontSize, 20), c = k(a.color, j(n));
835
+ return N(f(a.formatter, t, r({
836
+ p: o.prefix ?? "",
837
837
  v: t,
838
- s: a.suffix ?? "",
839
- r: x(i.rounding, 0)
838
+ s: o.suffix ?? "",
839
+ r: x(a.rounding, 0)
840
840
  }), { total: t }), {
841
841
  "data-cy": "donut-total",
842
- x: r.x,
843
- y: r.y + o / 3,
844
- "font-size": o,
845
- "font-weight": i.bold ? "700" : "400",
842
+ x: i.x,
843
+ y: i.y + s / 3,
844
+ "font-size": s,
845
+ "font-weight": a.bold ? "700" : "400",
846
846
  "text-anchor": "middle",
847
- fill: s
847
+ fill: c
848
848
  });
849
849
  }
850
850
  function Re(e, t) {
@@ -852,24 +852,24 @@ function Re(e, t) {
852
852
  return n ? x(t.value, 0) / n * 100 : 0;
853
853
  }
854
854
  function ze(e, t) {
855
- let n = S(e.config, "legend", {}), r = S(e.config, "layout.labels", {}), i = r.dataLabels ?? {}, a = r.value ?? {}, o = h({
856
- p: i.prefix ?? "",
855
+ let n = S(e.config, "legend", {}), i = S(e.config, "layout.labels", {}), a = i.dataLabels ?? {}, o = i.value ?? {}, s = r({
856
+ p: a.prefix ?? "",
857
857
  v: t.value,
858
- s: i.suffix ?? "",
859
- r: x(n.roundingValue, a.rounding ?? 0)
858
+ s: a.suffix ?? "",
859
+ r: x(n.roundingValue, o.rounding ?? 0)
860
860
  });
861
- return p(a.formatter, t.value, o, {
861
+ return f(o.formatter, t.value, s, {
862
862
  datapoint: t,
863
863
  serie: t
864
864
  });
865
865
  }
866
866
  function Be(e, t) {
867
- let n = S(e.config, "legend", {}), r = S(e.config, "layout.labels", {}).percentage ?? {}, i = Re(e, t), a = h({
868
- v: i,
867
+ let n = S(e.config, "legend", {}), i = S(e.config, "layout.labels", {}).percentage ?? {}, a = Re(e, t), o = r({
868
+ v: a,
869
869
  s: "%",
870
- r: x(n.roundingPercentage, r.rounding ?? 0)
870
+ r: x(n.roundingPercentage, i.rounding ?? 0)
871
871
  });
872
- return p(r.formatter, i, a, {
872
+ return f(i.formatter, a, o, {
873
873
  datapoint: t,
874
874
  serie: t
875
875
  });
@@ -929,8 +929,8 @@ function We(e, t) {
929
929
  series: t.map((e) => ({ ...e }))
930
930
  }) ?? "" : n ?? "";
931
931
  }
932
- function Ge(t, n, r) {
933
- return M("title", {}, e(`${E(t.config, "title.text", "Donut chart") || t.svgTitle || "Donut chart"}. ${n.length} series. Total ${v(r)}.`));
932
+ function Ge(e, t, n) {
933
+ return M("title", {}, d(`${E(e.config, "title.text", "Donut chart") || e.svgTitle || "Donut chart"}. ${t.length} series. Total ${_(n)}.`));
934
934
  }
935
935
  async function Ke(e) {
936
936
  let t = e.config, n = x(e.width, S(t, "width", 512)), r = x(e.height, S(t, "height", 512)), i = R(e), a = z(i), o = me({
@@ -940,7 +940,7 @@ async function Ke(e) {
940
940
  }, i), s = he(o, i), c = ge(o, i), l = E(t, "type", "classic"), u = a > 0 && s.some((e) => x(e.proportion, 0) > 0);
941
941
  return `
942
942
  <svg
943
- xmlns="${g}"
943
+ xmlns="${h}"
944
944
  width="100%"
945
945
  viewBox="0 0 ${n} ${r}"
946
946
  role="img"