vue-data-ui 3.22.5 → 3.22.6

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 (196) hide show
  1. package/dist/{Arrow-CgzmXCW_.js → Arrow-Ds4xmpiQ.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DjzNWkiE.js → BaseDraggableDialog-VbypEaAa.js} +2 -2
  3. package/dist/{BaseIcon-xBuW2jjI.js → BaseIcon-DcUvOfxf.js} +1 -1
  4. package/dist/{BaseLegendToggle-C4Usj0LI.js → BaseLegendToggle-DFwIY5bE.js} +1 -1
  5. package/dist/{BaseZoomControls-Cg9o2J-q.js → BaseZoomControls-DwolSINF.js} +2 -2
  6. package/dist/{ColorPicker-Usv7badH.js → ColorPicker-UVDPcrjE.js} +2 -2
  7. package/dist/{DataTable-PidUPOit.js → DataTable-CXfvIulC.js} +2 -2
  8. package/dist/{Legend-DXOzbXb-.js → Legend-D-635Kag.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-OIs8I25K.js → NonSvgPenAndPaper-pR_1qp3s.js} +29 -29
  10. package/dist/{PackageVersion-CqE8ssFu.js → PackageVersion-Da7hl-34.js} +1 -1
  11. package/dist/{PenAndPaper-ISUbDKXq.js → PenAndPaper-Bk2-E7V4.js} +18 -18
  12. package/dist/{Shape-BnF9aMPX.js → Shape-BSetplwm.js} +1 -1
  13. package/dist/{Slicer-hEvKOLw3.js → Slicer-ClIGOuoX.js} +2 -2
  14. package/dist/{SlicerPreview-BDI-aCXE.js → SlicerPreview-D1n9AW39.js} +4 -4
  15. package/dist/{SparkTooltip-DaWSTzfA.js → SparkTooltip-CjDAyolg.js} +1 -1
  16. package/dist/{Title-DDEEO-Nr.js → Title-C-p0ilWB.js} +1 -1
  17. package/dist/{Tooltip-BhKov422.js → Tooltip-YabpoXo1.js} +1 -1
  18. package/dist/{UserOptions-BxT1XHzN.js → UserOptions-BO4VFL8O.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-ZOysoMwu.js → dom-to-png-CVJfsfwL.js} +1 -1
  89. package/dist/exposedLib-CjwriUaG.js +19 -0
  90. package/dist/{img-B29J8tV5.js → img-B_y5qDdm.js} +1 -1
  91. package/dist/{labelUtils-BFcL_t-A.js → labelUtils-CyVwqXSh.js} +1 -1
  92. package/dist/{lib-CuwHGt1j.js → lib-DRBJCmHW.js} +6 -9
  93. package/dist/{package-YOcaZtwF.js → package-DyQ_PQis.js} +1 -1
  94. package/dist/{pdf-ymYt9Lee.js → pdf-CG02qhAH.js} +1 -1
  95. package/dist/{render-common-B80rr2N_.js → render-common-CUAlQvAQ.js} +22 -22
  96. package/dist/ssr/vue-ui-donut.js +1 -1
  97. package/dist/ssr/vue-ui-xy.js +1 -1
  98. package/dist/ssr.js +2 -2
  99. package/dist/style.css +1 -1
  100. package/dist/types/vue-data-ui.d.ts +13 -0
  101. package/dist/types/vue-ui-treemap.d.ts +3 -0
  102. package/dist/{useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js → useAutoSizeLabelsInsideViewbox-DPMOys9n.js} +1 -1
  103. package/dist/{useConfig-pVLia3dt.js → useConfig-DYM3f6EI.js} +5 -3
  104. package/dist/{useNestedProp-BjkuFaz1.js → useNestedProp-BEo2N1Db.js} +1 -1
  105. package/dist/{useObjectBindings-C1XuDxFr.js → useObjectBindings-CD31syQb.js} +1 -1
  106. package/dist/{usePrinter-C0wAS8yc.js → usePrinter-CRp5IW3v.js} +2 -2
  107. package/dist/utils.js +10 -10
  108. package/dist/{vue-data-ui-mqURXOql.js → vue-data-ui-Bpu4kxlm.js} +68 -68
  109. package/dist/vue-data-ui.js +73 -73
  110. package/dist/vue-ui-3d-bar-BAH0jNtT.js +1757 -0
  111. package/dist/{vue-ui-accordion-B64IJyPU.js → vue-ui-accordion-CfMrbDoq.js} +4 -4
  112. package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +1238 -0
  113. package/dist/{vue-ui-annotator-CU4CdKMm.js → vue-ui-annotator-CG6rhFpy.js} +68 -68
  114. package/dist/{vue-ui-bullet-RGCGF_cO.js → vue-ui-bullet-C_oBS1cr.js} +18 -18
  115. package/dist/{vue-ui-bump-CiUmHi6k.js → vue-ui-bump-BZB1Na8h.js} +243 -243
  116. package/dist/{vue-ui-candlestick-BJUk5fMm.js → vue-ui-candlestick-8d_1xO8X.js} +27 -27
  117. package/dist/{vue-ui-carousel-table-BksIDurC.js → vue-ui-carousel-table-BfZNcwmY.js} +43 -43
  118. package/dist/vue-ui-chestnut-Cx8T3NEl.js +2010 -0
  119. package/dist/vue-ui-chord-B-sauvLo.js +1391 -0
  120. package/dist/{vue-ui-circle-pack-DddaioRm.js → vue-ui-circle-pack-BLh8HnGK.js} +32 -32
  121. package/dist/{vue-ui-cursor-D2-hWt_G.js → vue-ui-cursor-DVsEm_4l.js} +4 -4
  122. package/dist/{vue-ui-dag-Dp7pV6Ps.js → vue-ui-dag-Cfi0b9qm.js} +24 -24
  123. package/dist/{vue-ui-dashboard-D91C5cXo.js → vue-ui-dashboard-F_NZ1xoQ.js} +70 -70
  124. package/dist/{vue-ui-digits-CMA3U4ZS.js → vue-ui-digits-BfP1kbj3.js} +4 -4
  125. package/dist/vue-ui-donut-BwAyvV3-.js +2410 -0
  126. package/dist/{vue-ui-donut-DpiS28CQ.js → vue-ui-donut-DlVRnVr_.js} +120 -120
  127. package/dist/{vue-ui-donut-evolution-2B61hvv2.js → vue-ui-donut-evolution-D1k4u6cA.js} +419 -419
  128. package/dist/vue-ui-dumbbell-DgmvPpK2.js +1530 -0
  129. package/dist/{vue-ui-flow-7Yfsu6AY.js → vue-ui-flow-D_7Idmmw.js} +84 -84
  130. package/dist/vue-ui-funnel-BYCFV5TD.js +777 -0
  131. package/dist/vue-ui-galaxy-Bjxbg5_B.js +1077 -0
  132. package/dist/{vue-ui-gauge-yo4G5HMt.js → vue-ui-gauge-Dt0H7DgC.js} +217 -217
  133. package/dist/{vue-ui-geo-BOHI6oMZ.js → vue-ui-geo-89DEQb5l.js} +18 -18
  134. package/dist/{vue-ui-gizmo-DI-35oK-.js → vue-ui-gizmo-CQyLK18v.js} +62 -62
  135. package/dist/{vue-ui-heatmap-DBVM90VE.js → vue-ui-heatmap-o6MvoxBK.js} +247 -247
  136. package/dist/vue-ui-history-plot-B7zuCfdg.js +1715 -0
  137. package/dist/{vue-ui-horizontal-bar-XBrvSxtJ.js → vue-ui-horizontal-bar-CwB4sc6M.js} +275 -275
  138. package/dist/{vue-ui-kpi-55wwhSBh.js → vue-ui-kpi-4C-j92D-.js} +4 -4
  139. package/dist/{vue-ui-mini-loader-nOsOsA2V.js → vue-ui-mini-loader-Bj4Wv-i8.js} +3 -3
  140. package/dist/vue-ui-molecule-BDrRmwmm.js +925 -0
  141. package/dist/{vue-ui-mood-radar-izcbwGOc.js → vue-ui-mood-radar-B5W35Fvp.js} +30 -30
  142. package/dist/{vue-ui-nested-donuts-DRJ1QT2n.js → vue-ui-nested-donuts-wfesrzle.js} +105 -105
  143. package/dist/{vue-ui-onion-xTZOmmtb.js → vue-ui-onion-B8-psLbF.js} +40 -40
  144. package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +1416 -0
  145. package/dist/vue-ui-quadrant-BzyGOJR2.js +1978 -0
  146. package/dist/{vue-ui-quick-chart-CJ1xQgYc.js → vue-ui-quick-chart-so_8PzvS.js} +663 -663
  147. package/dist/{vue-ui-radar-C26C6p7e.js → vue-ui-radar-5fQ5AAWD.js} +63 -63
  148. package/dist/{vue-ui-rating-CRziryE2.js → vue-ui-rating-CKWHDKOT.js} +34 -34
  149. package/dist/vue-ui-relation-circle-Bd_ONHCz.js +924 -0
  150. package/dist/{vue-ui-ridgeline-BbJa5C-d.js → vue-ui-ridgeline-DVbYznRz.js} +102 -102
  151. package/dist/vue-ui-rings-c-yLWFHr.js +1246 -0
  152. package/dist/{vue-ui-scatter-D9Iw5xlb.js → vue-ui-scatter-QhmE7n1H.js} +87 -87
  153. package/dist/{vue-ui-skeleton-C4D0i9ho.js → vue-ui-skeleton-BkxB6Dik.js} +4 -4
  154. package/dist/{vue-ui-smiley-BTvDy8Fm.js → vue-ui-smiley-C4g0iaF7.js} +10 -10
  155. package/dist/{vue-ui-spark-trend-CMb7UI2t.js → vue-ui-spark-trend-0FELlq4x.js} +98 -98
  156. package/dist/{vue-ui-sparkbar-DEawjWhg.js → vue-ui-sparkbar-D-i_VLO6.js} +87 -87
  157. package/dist/{vue-ui-sparkgauge-mubHGQF_.js → vue-ui-sparkgauge-CWw6w_ng.js} +48 -48
  158. package/dist/{vue-ui-sparkhistogram-D8N-jNBt.js → vue-ui-sparkhistogram-DuGpkfma.js} +105 -105
  159. package/dist/{vue-ui-sparkline-D4p0PS3-.js → vue-ui-sparkline-Bi06lHQd.js} +252 -252
  160. package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +662 -0
  161. package/dist/{vue-ui-stackbar-BzHSHKqe.js → vue-ui-stackbar-DDvuDGQ_.js} +85 -85
  162. package/dist/vue-ui-stackline-C0NHBUaE.js +2416 -0
  163. package/dist/{vue-ui-strip-plot-pPiVqFYo.js → vue-ui-strip-plot-_6LL45i9.js} +369 -369
  164. package/dist/{vue-ui-table-BzqQKuL-.js → vue-ui-table-DBlZswRi.js} +26 -26
  165. package/dist/{vue-ui-table-heatmap-D38YSxhJ.js → vue-ui-table-heatmap-3xYIDKcP.js} +6 -6
  166. package/dist/{vue-ui-table-sparkline-BnavmY2R.js → vue-ui-table-sparkline-BH5PzEnJ.js} +201 -201
  167. package/dist/{vue-ui-thermometer-ePIxpTuE.js → vue-ui-thermometer-BxMzAqoT.js} +119 -119
  168. package/dist/{vue-ui-timer-BQZxD91f.js → vue-ui-timer-ONSitYDm.js} +30 -30
  169. package/dist/{vue-ui-tiremarks-CDOlCWS8.js → vue-ui-tiremarks-DWXM-9nR.js} +15 -15
  170. package/dist/vue-ui-treemap-B03c4RIy.js +1713 -0
  171. package/dist/{vue-ui-waffle-BpZrFfUb.js → vue-ui-waffle-afa8HSxz.js} +160 -160
  172. package/dist/{vue-ui-wheel-DRfyK9q9.js → vue-ui-wheel-DRP7X8S2.js} +37 -37
  173. package/dist/{vue-ui-word-cloud-D0JUA9I9.js → vue-ui-word-cloud-AKpMO97a.js} +38 -38
  174. package/dist/{vue-ui-world-Dx-41fUM.js → vue-ui-world-CqS-HhZl.js} +400 -400
  175. package/dist/{vue-ui-xy-BLSGO4Lm.js → vue-ui-xy-Bmd11BxR.js} +656 -656
  176. package/dist/{vue-ui-xy-DpRqQ09J.js → vue-ui-xy-DJ8YKPgs.js} +244 -244
  177. package/dist/{vue-ui-xy-canvas-CjbjJ70r.js → vue-ui-xy-canvas-DO_PDGKf.js} +47 -47
  178. package/package.json +1 -1
  179. package/dist/exposedLib-C2U48XK7.js +0 -19
  180. package/dist/vue-ui-3d-bar-BZ1Slxfu.js +0 -1757
  181. package/dist/vue-ui-age-pyramid-uUVFZo8M.js +0 -1238
  182. package/dist/vue-ui-chestnut-B3OHA5rg.js +0 -2010
  183. package/dist/vue-ui-chord-DETV2viY.js +0 -1391
  184. package/dist/vue-ui-donut-DObpw5zP.js +0 -2410
  185. package/dist/vue-ui-dumbbell-Cmr65TNE.js +0 -1530
  186. package/dist/vue-ui-funnel-BLRBDW1a.js +0 -777
  187. package/dist/vue-ui-galaxy-B9cxOcoE.js +0 -1077
  188. package/dist/vue-ui-history-plot-BiWpOHKE.js +0 -1715
  189. package/dist/vue-ui-molecule-DB3rmTw1.js +0 -925
  190. package/dist/vue-ui-parallel-coordinate-plot-BxQ7D2_o.js +0 -1416
  191. package/dist/vue-ui-quadrant-BvAmtyAE.js +0 -1978
  192. package/dist/vue-ui-relation-circle-Dl1aWFAI.js +0 -924
  193. package/dist/vue-ui-rings-CyrvskTi.js +0 -1246
  194. package/dist/vue-ui-sparkstackbar-DnrZkIIc.js +0 -662
  195. package/dist/vue-ui-stackline-CWSvsW1n.js +0 -2416
  196. package/dist/vue-ui-treemap-DrZlX_7n.js +0 -1587
@@ -1,28 +1,28 @@
1
- import { Et as e, Gt as t, Lt as n, O as r, Rt as i, U as a, Ut as o, W as s, b as c, d as l, et as u, i as d, jt as f, kt as p, p as m, q as h, t as g, u as _, v } from "./lib-CuwHGt1j.js";
2
- import { t as y } from "./useConfig-pVLia3dt.js";
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";
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-B80rr2N_.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";
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 n = e ?? {}, r = t({
9
- userConfig: n,
8
+ let r = e ?? {}, i = u({
9
+ userConfig: r,
10
10
  defaultConfig: ne
11
- }), i = r.theme;
12
- if (!i) return {
13
- ...r,
14
- customPalette: r.customPalette?.length ? r.customPalette : f
11
+ }), a = i.theme;
12
+ if (!a) return {
13
+ ...i,
14
+ customPalette: i.customPalette?.length ? i.customPalette : t
15
15
  };
16
- let a = t({
17
- userConfig: n,
18
- defaultConfig: t({
19
- userConfig: b[i] || {},
20
- defaultConfig: r
16
+ let o = u({
17
+ userConfig: r,
18
+ defaultConfig: u({
19
+ userConfig: b[a] || {},
20
+ defaultConfig: i
21
21
  })
22
22
  });
23
23
  return {
24
- ...a,
25
- customPalette: a.customPalette?.length ? a.customPalette : o[i] || f
24
+ ...o,
25
+ customPalette: o.customPalette?.length ? o.customPalette : n[a] || t
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 = [], t) {
42
- let n = Array.isArray(t.customPalette) ? t.customPalette : f;
41
+ function oe(e = [], n) {
42
+ let r = Array.isArray(n.customPalette) ? n.customPalette : t;
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 r = e.source, i = e.value, a = (r?.color ? c(r.color) : "") || n[t % n.length];
48
+ let n = e.source, i = e.value, a = (n?.color ? d(n.color) : "") || r[t % r.length];
49
49
  return {
50
- ...r,
51
- id: r?.id ?? `donut_serie_${t}`,
52
- name: ae(r, t),
50
+ ...n,
51
+ id: n?.id ?? `donut_serie_${t}`,
52
+ name: ae(n, t),
53
53
  value: i,
54
54
  absoluteValue: Math.abs(i),
55
- absoluteValues: Array.isArray(r?.values) ? r.values : [i],
55
+ absoluteValues: Array.isArray(n?.values) ? n.values : [i],
56
56
  color: a,
57
57
  index: t,
58
58
  sourceIndex: e.sourceIndex,
59
- patternIndex: r?.patternIndex ?? t,
60
- seriesIndex: r?.seriesIndex ?? t,
61
- ghost: !!r?.ghost
59
+ patternIndex: n?.patternIndex ?? t,
60
+ seriesIndex: n?.seriesIndex ?? t,
61
+ ghost: !!n?.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 = s();
120
+ var ue = l();
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(t, n) {
213
- let r = x(S(t.config, "layout.donut.rotation", 105.25), 105.25);
214
- return e({ series: n }, t.center.x, t.center.y, t.radius, t.radius, 1.99999, 2, 1, 360, r, V(t.config) ? t.radius : t.thickness).map((e, t) => ({
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) => ({
215
215
  ...e,
216
- index: t,
217
- color: k(e.color, n[t]?.color),
216
+ index: n,
217
+ color: k(e.color, t[n]?.color),
218
218
  value: x(e.value, 0),
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
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
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 r({
226
+ return a({
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,29 +271,29 @@ function ve(e) {
271
271
  })), M("g", { "data-layer": "title" }, d.join(""));
272
272
  }
273
273
  function ye(e, t) {
274
- let { config: r } = e, a = [], o = !!S(r, "useGradient", !1), s = !!S(r, "layout.donut.useShadow", !1);
274
+ let { config: n } = e, a = [], o = !!S(n, "useGradient", !1), s = !!S(n, "layout.donut.useShadow", !1);
275
275
  if (o) {
276
- let o = E(r, "type", "classic"), s = x(S(r, "gradientIntensity", 30), 30);
276
+ let o = E(n, "type", "classic"), s = x(S(n, "gradientIntensity", 30), 30);
277
277
  if (o === "classic" && Number.isFinite(e.thickness / e.radius)) {
278
- let t = V(r) ? 1 : e.thickness / e.radius;
278
+ let t = V(n) ? 1 : e.thickness / e.radius;
279
279
  a.push(M("radialGradient", { id: H(e) }, [
280
280
  w("stop", {
281
281
  offset: "0%",
282
- "stop-color": n(L(r), 0),
282
+ "stop-color": r(L(n), 0),
283
283
  "stop-opacity": 0
284
284
  }),
285
285
  w("stop", {
286
286
  offset: `${(1 - t) * 100}%`,
287
- "stop-color": n("#FFFFFF", 0),
287
+ "stop-color": r("#FFFFFF", 0),
288
288
  "stop-opacity": 0
289
289
  }),
290
290
  w("stop", {
291
291
  offset: `${(1 - t / 2) * 100}%`,
292
- "stop-color": n("#FFFFFF", s)
292
+ "stop-color": r("#FFFFFF", s)
293
293
  }),
294
294
  w("stop", {
295
295
  offset: "100%",
296
- "stop-color": n(L(r), 0),
296
+ "stop-color": r(L(n), 0),
297
297
  "stop-opacity": 0
298
298
  })
299
299
  ].join("")));
@@ -316,7 +316,7 @@ function ye(e, t) {
316
316
  });
317
317
  }
318
318
  if (s) {
319
- let t = k(S(r, "layout.donut.shadowColor", "#000000"), "#000000"), n = x(S(r, "layout.donut.shadowOpacity", .2), .2), i = x(S(r, "layout.donut.shadowBlur", 6), 6), o = x(S(r, "layout.donut.shadowOffsetY", 3), 3);
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
320
  a.push(M("filter", {
321
321
  id: W(e),
322
322
  x: "-50%",
@@ -328,7 +328,7 @@ function ye(e, t) {
328
328
  dy: o,
329
329
  stdDeviation: i,
330
330
  "flood-color": t,
331
- "flood-opacity": n
331
+ "flood-opacity": r
332
332
  })].join("")));
333
333
  }
334
334
  return a.length ? M("defs", { "data-layer": "definitions" }, a.join("")) : "";
@@ -394,7 +394,7 @@ function q(e, t, n = "layout.labels.value.rounding") {
394
394
  s: a.suffix ?? "",
395
395
  r: x(S(r, n, o.rounding ?? 0), o.rounding ?? 0)
396
396
  });
397
- return d(o.formatter, t.value, s, { datapoint: t });
397
+ return p(o.formatter, t.value, s, { datapoint: t });
398
398
  }
399
399
  function J(e, t) {
400
400
  let { config: n } = e, r = S(n, "layout.labels.percentage", {}), i = x(t.proportion, 0) * 100, a = h({
@@ -402,7 +402,7 @@ function J(e, t) {
402
402
  s: "%",
403
403
  r: x(r.rounding, 0)
404
404
  });
405
- return d(r.formatter, i, a, { datapoint: t });
405
+ return p(r.formatter, i, a, { 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,7 +434,7 @@ 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, u = e.drawingArea.top + 16, d = e.drawingArea.bottom - 16, f = 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, u = e.drawingArea.bottom - 16, d = i - (e.radius + 6), p = i + (e.radius + 6), m = Q(e);
438
438
  function h(e) {
439
439
  return {
440
440
  x: v(e.center?.endX ?? e.endX),
@@ -490,7 +490,7 @@ function Ee(e, t) {
490
490
  midX: n.x,
491
491
  midY: n.y,
492
492
  inlineMarkerX: _(e).x,
493
- inlineMarkerY: l(e) - 3.5,
493
+ inlineMarkerY: f(e) - 3.5,
494
494
  labelHeight: y(e.name)
495
495
  };
496
496
  }
@@ -549,49 +549,49 @@ function Ee(e, t) {
549
549
  }), E({
550
550
  candidateList: D.TL,
551
551
  side: "left",
552
- bandMarkerX: f,
553
- startY: u,
552
+ bandMarkerX: d,
553
+ startY: l,
554
554
  direction: "down"
555
555
  }), E({
556
556
  candidateList: D.TR,
557
557
  side: "right",
558
558
  bandMarkerX: p,
559
- startY: u,
559
+ startY: l,
560
560
  direction: "down"
561
561
  }), D.BL.length > 1 && E({
562
562
  candidateList: D.BL,
563
563
  side: "left",
564
- bandMarkerX: f,
565
- startY: d,
564
+ bandMarkerX: d,
565
+ startY: u,
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: d,
571
+ startY: u,
572
572
  direction: "up"
573
573
  }), r;
574
574
  }
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 ?? _(t, !0, 12).x, d = r?.labelY ?? l(t), f = r?.textAnchor ?? _(t, !0, 12).anchor, { name: p } = Y(e, t), m = we(e, t), h = String(p).split(/\n/g), g = p ? h.map((t, n) => M("tspan", {
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", {
577
577
  class: "vue-data-ui-datalabel-name",
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,
582
- "font-weight": s.bold ? "700" : "400"
583
- }, u(t + (n === h.length - 1 ? " " : "")))).join("") : "", v = m ? M("tspan", {
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
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
- }, u(m)) : "";
585
+ fill: k(s.color, j(t.config)),
586
+ "font-size": a,
587
+ "font-weight": s.bold ? "700" : "400"
588
+ }, e(m)) : "";
589
589
  return M("text", {
590
- "data-cy": `donut-label-inline-${n}`,
590
+ "data-cy": `donut-label-inline-${r}`,
591
591
  class: "vue-data-ui-datalabel-inline",
592
- x: c,
593
- y: d,
594
- "text-anchor": f
592
+ x: l,
593
+ y: u,
594
+ "text-anchor": d
595
595
  }, `${g}${v}`);
596
596
  }
597
597
  function Oe(e, t) {
@@ -619,7 +619,7 @@ function Oe(e, t) {
619
619
  arcIndex: n,
620
620
  smallArcLayout: {
621
621
  labelX: _(t, !1, a + i / 2).x,
622
- labelY: l(t, a, a),
622
+ labelY: f(t, a, a),
623
623
  textAnchor: _(t).anchor
624
624
  },
625
625
  fontSize: i
@@ -627,7 +627,7 @@ function Oe(e, t) {
627
627
  }), s.length ? M("g", { "data-layer": "data-labels" }, s.join("")) : "";
628
628
  }
629
629
  function ke(e, t, n = 42) {
630
- return p({
630
+ return o({
631
631
  initX: t.middlePoint.x,
632
632
  initY: t.middlePoint.y,
633
633
  offset: n,
@@ -638,38 +638,38 @@ function ke(e, t, n = 42) {
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(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", {
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", {
643
643
  class: "vue-data-ui-datalabel-value",
644
- fill: k(a.color, j(e.config)),
645
- "font-size": s,
646
- "font-weight": a.bold ? "700" : "400"
647
- }, u(String(X(e, t).replace(/\n/g, " / ")))), d = 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)),
644
+ fill: k(o.color, j(t.config)),
652
645
  "font-size": c,
653
646
  "font-weight": o.bold ? "700" : "400"
654
- }, u(t))).join("") : "";
655
- return r === "end" ? `${d}${l}` : `${l}${d}`;
656
- }
657
- function Me(e, t, n) {
658
- let r = S(e.config, "layout.labels", {}), i = r.dataLabels ?? {}, o = r.value ?? {}, s = r.percentage ?? {}, c = r.name ?? {};
659
- if (!E(e.config, "dataLabels.show", i.show ?? !0) || !i.show) return "";
660
- let l = !!i.oneLine, d = x(o.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 o = ke(e, i, 42), m = Ae(e, o);
665
- if (l) {
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) {
666
666
  p.push(M("text", {
667
667
  "data-cy": "polar-label-inline",
668
668
  class: "vue-data-ui-datalabel-inline",
669
669
  x: o.x,
670
670
  y: o.y,
671
671
  "text-anchor": m
672
- }, je(e, t, o.x, m)));
672
+ }, je(t, n, o.x, m)));
673
673
  return;
674
674
  }
675
675
  p.push(M("text", {
@@ -682,24 +682,24 @@ function Me(e, t, n) {
682
682
  "text-anchor": m,
683
683
  fill: valueFill
684
684
  }, te({
685
- content: X(e, t),
685
+ content: X(t, n),
686
686
  x: o.x,
687
687
  fontSize: d,
688
688
  fill: valueFill,
689
689
  textAnchor: m
690
- }))), c.show && p.push(M("text", {
690
+ }))), l.show && p.push(M("text", {
691
691
  "data-cy": "polar-label-name",
692
692
  class: "vue-data-ui-datalabel-name",
693
693
  x: o.x,
694
694
  y: o.y + f * 1.2,
695
695
  "font-size": f,
696
- "font-weight": c.bold ? "700" : "400",
696
+ "font-weight": l.bold ? "700" : "400",
697
697
  "text-anchor": m,
698
- fill: k(c.color, j(e.config))
699
- }, a({
700
- content: u(String(t.name ?? "")),
698
+ fill: k(l.color, j(t.config))
699
+ }, c({
700
+ content: e(String(n.name ?? "")),
701
701
  fontSize: f,
702
- fill: k(c.color, j(e.config)),
702
+ fill: k(l.color, j(t.config)),
703
703
  x: o.x
704
704
  })));
705
705
  }), p.length ? M("g", { "data-layer": "polar-data-labels" }, p.join("")) : "";
@@ -727,7 +727,7 @@ function Pe(e, t) {
727
727
  })), i.push(w("circle", {
728
728
  "data-cy": `donut-label-marker-${a}`,
729
729
  cx: o?.markerX ?? _(t).x,
730
- cy: o?.markerY ?? l(t) - 3.5,
730
+ cy: o?.markerY ?? f(t) - 3.5,
731
731
  r: x(n.markerRadius, 3),
732
732
  fill: t.color,
733
733
  stroke: L(e.config),
@@ -740,18 +740,18 @@ function Fe(e, t, n) {
740
740
  if (!E(e.config, "dataLabels.show", r.show ?? !0) || !r.show) return "";
741
741
  let i = [];
742
742
  return t.forEach((t, a) => {
743
- let o = n[a];
744
- if (!o?.middlePoint || !Z(e, t)) return;
745
- let s = p({
746
- initX: o.middlePoint.x,
747
- initY: o.middlePoint.y,
743
+ let s = n[a];
744
+ if (!s?.middlePoint || !Z(e, t)) return;
745
+ let c = o({
746
+ initX: s.middlePoint.x,
747
+ initY: s.middlePoint.y,
748
748
  offset: 24,
749
749
  centerX: e.center.x,
750
750
  centerY: e.center.y
751
751
  });
752
752
  i.push(w("path", {
753
753
  "data-cy": `polar-marker-${a}`,
754
- d: `M ${s.x},${s.y} ${o.middlePoint.x},${o.middlePoint.y}`,
754
+ d: `M ${c.x},${c.y} ${s.middlePoint.x},${s.middlePoint.y}`,
755
755
  stroke: t.color,
756
756
  "stroke-width": x(r.markerStrokeWidth, 1),
757
757
  "stroke-linecap": "round",
@@ -759,8 +759,8 @@ function Fe(e, t, n) {
759
759
  fill: "none"
760
760
  })), i.push(w("circle", {
761
761
  "data-cy": `polar-label-marker-${a}`,
762
- cx: s.x,
763
- cy: s.y,
762
+ cx: c.x,
763
+ cy: c.y,
764
764
  r: x(r.markerRadius, 3),
765
765
  fill: t.color,
766
766
  stroke: L(e.config),
@@ -778,7 +778,7 @@ function Ie(e, t, n) {
778
778
  if (E(e.config, "type", "classic") !== "classic" || V(e.config) || !t) return "";
779
779
  let r = S(e.config, "layout.labels.hollow", {}), i = r.total ?? {}, a = r.average ?? {}, o = [];
780
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 = d(c.formatter, t, h({
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
782
  p: c.prefix ?? "",
783
783
  v: t,
784
784
  s: c.suffix ?? "",
@@ -801,7 +801,7 @@ function Ie(e, t, n) {
801
801
  }));
802
802
  }
803
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), f = d(l.formatter, c, h({
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
805
  p: l.prefix ?? "",
806
806
  v: c,
807
807
  s: l.suffix ?? "",
@@ -814,7 +814,7 @@ function Ie(e, t, n) {
814
814
  fill: k(a.color, j(e.config)),
815
815
  "font-size": r,
816
816
  "font-weight": a.bold ? "700" : "400"
817
- })), o.push($(f, {
817
+ })), o.push($(d, {
818
818
  "data-cy": "hollow-average-value",
819
819
  x: e.center.x,
820
820
  y: e.center.y + (s ? r : 0) + r + x(l.offsetY, 0),
@@ -832,7 +832,7 @@ function Le(e, t) {
832
832
  let { config: n, center: r } = e, i = S(n, "layout.donut.labels.total", S(n, "layout.labels.total", {}));
833
833
  if (!i.show || !Number.isFinite(t) || t <= 0) return "";
834
834
  let a = S(n, "layout.labels.dataLabels", {}), o = x(i.fontSize, 20), s = k(i.color, j(n));
835
- return N(d(i.formatter, t, h({
835
+ return N(p(i.formatter, t, h({
836
836
  p: a.prefix ?? "",
837
837
  v: t,
838
838
  s: a.suffix ?? "",
@@ -858,7 +858,7 @@ function ze(e, t) {
858
858
  s: i.suffix ?? "",
859
859
  r: x(n.roundingValue, a.rounding ?? 0)
860
860
  });
861
- return d(a.formatter, t.value, o, {
861
+ return p(a.formatter, t.value, o, {
862
862
  datapoint: t,
863
863
  serie: t
864
864
  });
@@ -869,7 +869,7 @@ function Be(e, t) {
869
869
  s: "%",
870
870
  r: x(n.roundingPercentage, r.rounding ?? 0)
871
871
  });
872
- return d(r.formatter, i, a, {
872
+ return p(r.formatter, i, a, {
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(e, t, n) {
933
- return M("title", {}, u(`${E(e.config, "title.text", "Donut chart") || e.svgTitle || "Donut chart"}. ${t.length} series. Total ${v(n)}.`));
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)}.`));
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({