vue-data-ui 3.25.2 → 3.25.4

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 (194) hide show
  1. package/dist/{Arrow-CL6s6WpN.js → Arrow-DLn-pcrh.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Cwj9aGdF.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
  3. package/dist/{BaseIcon-Oj70ytWI.js → BaseIcon-t83PDe9k.js} +1 -1
  4. package/dist/{BaseLegendToggle-Cvuc-Mrr.js → BaseLegendToggle-__JnV08B.js} +1 -1
  5. package/dist/{BaseZoomControls-xstFfEqA.js → BaseZoomControls-Xo16vFa4.js} +2 -2
  6. package/dist/{ColorPicker-sZV-tVqO.js → ColorPicker-ZJrR3Olp.js} +2 -2
  7. package/dist/{DataTable-DcDMoMmQ.js → DataTable-COIO9gi4.js} +2 -2
  8. package/dist/{HillActions-BGA3Up35.js → HillActions-Cl-dNBZR.js} +1 -1
  9. package/dist/{Legend-BQxAKh7g.js → Legend-X4kF4PvW.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-1xl1Xynb.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
  11. package/dist/{PackageVersion-DWq6mo_q.js → PackageVersion-5SWftabm.js} +1 -1
  12. package/dist/{PenAndPaper-Co2OSRzH.js → PenAndPaper-B_SdRSKH.js} +12 -12
  13. package/dist/{Shape-26P9pTZH.js → Shape-CIqU-p2F.js} +1 -1
  14. package/dist/{SlicerPreview-CPhQI1vX.js → SlicerPreview-GvsdvE-h.js} +27 -27
  15. package/dist/{SparkTooltip-CQDq9mwg.js → SparkTooltip-C-Y-mDrc.js} +1 -1
  16. package/dist/{Title-BLrnZl5j.js → Title-CPHi-evi.js} +1 -1
  17. package/dist/{Tooltip-CmmM0DtW.js → Tooltip-hhrkQ3Lk.js} +1 -1
  18. package/dist/{UserOptions-pq95M7ss.js → UserOptions-f3Q0nqrj.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-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-C2hxsVHU.js → dom-to-png-C6cQJ5Hq.js} +1 -1
  91. package/dist/{exposedLib-CHbGXzAI.js → exposedLib-CG3aXJ-v.js} +9 -9
  92. package/dist/{img-EYBQVkRw.js → img-DhGApYG0.js} +1 -1
  93. package/dist/{labelUtils-Ba5vMXV8.js → labelUtils-BXX2NzRe.js} +1 -1
  94. package/dist/{lib-BPg41jWd.js → lib-Dql7cqyA.js} +202 -168
  95. package/dist/{package-ciWqdXC5.js → package-DmsdiyeS.js} +1 -1
  96. package/dist/{pdf-BoZtb_Ft.js → pdf-Di5yPEw9.js} +1 -1
  97. package/dist/{render-common-BEWzwi32.js → render-common-zoPh9a78.js} +2 -2
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/{useNestedProp-fNUUtYXm.js → useNestedProp-Chvyfpl-.js} +1 -1
  103. package/dist/{usePrinter-CsDAx75S.js → usePrinter-DISD7q5m.js} +2 -2
  104. package/dist/utils.js +2 -2
  105. package/dist/{vue-data-ui-BHRh3z_-.js → vue-data-ui-DTj71yB7.js} +70 -70
  106. package/dist/vue-data-ui.js +73 -73
  107. package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
  108. package/dist/{vue-ui-accordion-BGxpEtfk.js → vue-ui-accordion-D4zsdacF.js} +3 -3
  109. package/dist/{vue-ui-age-pyramid-CYHqR2NK.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
  110. package/dist/{vue-ui-annotator-Q5zC15Pp.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
  111. package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
  112. package/dist/{vue-ui-bump-DkntyN9G.js → vue-ui-bump-BkOtQNWe.js} +54 -54
  113. package/dist/{vue-ui-candlestick-Cz0s9M9a.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
  114. package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
  115. package/dist/{vue-ui-chestnut-iwScoeK0.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
  116. package/dist/{vue-ui-chord-Bl_91Sut.js → vue-ui-chord-DQRBgVOx.js} +31 -31
  117. package/dist/{vue-ui-circle-pack-Dm9BU5Kl.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
  118. package/dist/{vue-ui-cursor-D_bkWVNS.js → vue-ui-cursor-BHyXRadA.js} +3 -3
  119. package/dist/{vue-ui-dag-CF4YxXqU.js → vue-ui-dag-CyVqaLbF.js} +75 -75
  120. package/dist/{vue-ui-dashboard-Bwhlqoe4.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
  121. package/dist/{vue-ui-digits-CXM0xSi6.js → vue-ui-digits-BBL8uERO.js} +3 -3
  122. package/dist/{vue-ui-donut-DEn7HF5c.js → vue-ui-donut-DcgUuefk.js} +101 -101
  123. package/dist/vue-ui-donut-DfiocufT.js +2413 -0
  124. package/dist/{vue-ui-donut-evolution-Z7fpl7Zf.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
  125. package/dist/{vue-ui-dumbbell-BEFPs0t1.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
  126. package/dist/{vue-ui-flow-DAId7lkh.js → vue-ui-flow-CoylrfnO.js} +40 -40
  127. package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
  128. package/dist/{vue-ui-galaxy-So95hmON.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
  129. package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
  130. package/dist/{vue-ui-geo-MTJoJ3_A.js → vue-ui-geo-jR4P4pbt.js} +36 -36
  131. package/dist/{vue-ui-gizmo-D9tbjzYe.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
  132. package/dist/{vue-ui-heatmap-DRdQFkV_.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
  133. package/dist/{vue-ui-hill-CdtIsBTO.js → vue-ui-hill-fFq7pm-g.js} +9 -9
  134. package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
  135. package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
  136. package/dist/{vue-ui-kpi-DHDy4LcL.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
  137. package/dist/{vue-ui-label-Bm5iMSie.js → vue-ui-label-BSgLalWD.js} +64 -64
  138. package/dist/{vue-ui-mini-loader-EK0wtL10.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
  139. package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
  140. package/dist/{vue-ui-mood-radar-CTiFn6bj.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
  141. package/dist/{vue-ui-nested-donuts-DKzeriUP.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
  142. package/dist/{vue-ui-onion-C3ZiE1dn.js → vue-ui-onion-B7oFulsQ.js} +119 -119
  143. package/dist/{vue-ui-parallel-coordinate-plot-D1xAQ_qP.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
  144. package/dist/{vue-ui-quadrant-B82S1-8b.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
  145. package/dist/{vue-ui-quick-chart-BeIZ2KVy.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
  146. package/dist/{vue-ui-radar-Bh7LKVWz.js → vue-ui-radar-Bzx69q8f.js} +311 -311
  147. package/dist/{vue-ui-rating-AbGGnd-1.js → vue-ui-rating-CimC9FQ9.js} +2 -2
  148. package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
  149. package/dist/{vue-ui-ridgeline-BmmcBvtt.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
  150. package/dist/{vue-ui-rings-Bx3lTcrM.js → vue-ui-rings-qPL5Iwji.js} +327 -327
  151. package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
  152. package/dist/{vue-ui-skeleton-GSfVAGm5.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
  153. package/dist/{vue-ui-smiley-CVQ85iFx.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
  154. package/dist/{vue-ui-spark-trend-BVS__UWD.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
  155. package/dist/{vue-ui-sparkbar-C-xEaUvd.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
  156. package/dist/{vue-ui-sparkgauge-_XSE8M-e.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
  157. package/dist/{vue-ui-sparkhistogram-DUM6ygCM.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
  158. package/dist/{vue-ui-sparkline-Dg9fXwZG.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
  159. package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
  160. package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
  161. package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
  162. package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
  163. package/dist/vue-ui-table-BQna1wL6.js +1352 -0
  164. package/dist/{vue-ui-table-heatmap-DgFFlNnz.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
  165. package/dist/{vue-ui-table-sparkline-BsVOuCvB.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
  166. package/dist/{vue-ui-thermometer-DOECuI2_.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
  167. package/dist/{vue-ui-timer-B2Cd2bc6.js → vue-ui-timer-CvHP4HoW.js} +5 -5
  168. package/dist/{vue-ui-tiremarks-CrnFAVS8.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
  169. package/dist/{vue-ui-treemap-DHZ6BvAc.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
  170. package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
  171. package/dist/{vue-ui-wheel-7U-O7-xN.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
  172. package/dist/{vue-ui-word-cloud-CVsvKOiI.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
  173. package/dist/{vue-ui-world-B9VGieBA.js → vue-ui-world-D0_2upjg.js} +116 -116
  174. package/dist/{vue-ui-xy-chRPjTTj.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
  175. package/dist/{vue-ui-xy-CNy0avUa.js → vue-ui-xy-D_5FfaH-.js} +423 -422
  176. package/dist/{vue-ui-xy-canvas-B9kzEFnY.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
  177. package/package.json +1 -1
  178. package/dist/vue-ui-3d-bar-DUbSp0so.js +0 -1829
  179. package/dist/vue-ui-bullet-DOF7UCo_.js +0 -700
  180. package/dist/vue-ui-carousel-table-f3ddW3LA.js +0 -467
  181. package/dist/vue-ui-donut-BfehCl28.js +0 -2413
  182. package/dist/vue-ui-funnel-D6Hvhb_C.js +0 -747
  183. package/dist/vue-ui-gauge-Cs96ssGw.js +0 -932
  184. package/dist/vue-ui-history-plot-BaVZe6Fy.js +0 -1696
  185. package/dist/vue-ui-horizontal-bar-DETeVTOn.js +0 -1709
  186. package/dist/vue-ui-molecule-Dt31r51l.js +0 -929
  187. package/dist/vue-ui-relation-circle-4ZeUHCx_.js +0 -903
  188. package/dist/vue-ui-scatter-Vw4JbCjp.js +0 -2403
  189. package/dist/vue-ui-sparkstackbar-8-iyImVK.js +0 -738
  190. package/dist/vue-ui-stackbar-zl-GieBs.js +0 -2349
  191. package/dist/vue-ui-stackline-HcXMSuwS.js +0 -2463
  192. package/dist/vue-ui-strip-plot-B_q_YQiP.js +0 -1738
  193. package/dist/vue-ui-table-CftOhYTO.js +0 -1352
  194. package/dist/vue-ui-waffle-Ca4QSb5z.js +0 -1619
@@ -1,28 +1,28 @@
1
- import { Ht as e, It as t, Jt as n, K as r, Pt as i, S as a, Ut as o, X as s, Xt as c, b as l, f as u, h as d, i as f, j as p, jt as m, p as h, q as g, rt as _, t as v } from "./lib-BPg41jWd.js";
1
+ import { Ft as e, K as t, Lt as n, Mt as r, S as i, Ut as a, Wt as o, X as s, Yt as c, Zt as l, b as u, f as d, h as f, i as p, j as m, p as h, q as g, rt as _, t as v } from "./lib-Dql7cqyA.js";
2
2
  import { t as y } from "./useConfig-CyCVHo81.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-BEWzwi32.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-zoPh9a78.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 = c({
9
- userConfig: r,
8
+ let t = e ?? {}, r = l({
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
+ }), i = r.theme;
12
+ if (!i) return {
13
+ ...r,
14
+ customPalette: r.customPalette?.length ? r.customPalette : n
15
15
  };
16
- let o = c({
17
- userConfig: b[a] || {},
18
- defaultConfig: i
19
- }), s = c({
20
- userConfig: r,
21
- defaultConfig: o
16
+ let a = l({
17
+ userConfig: b[i] || {},
18
+ defaultConfig: r
19
+ }), o = l({
20
+ userConfig: t,
21
+ defaultConfig: a
22
22
  });
23
23
  return {
24
- ...s,
25
- customPalette: s.customPalette?.length ? s.customPalette : n[a] || t
24
+ ...o,
25
+ customPalette: o.customPalette?.length ? o.customPalette : c[i] || n
26
26
  };
27
27
  }
28
28
  function P(e, t = 0) {
@@ -38,21 +38,21 @@ 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 r = Array.isArray(t.customPalette) ? t.customPalette : n;
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, o = (n?.color ? a(n.color) : "") || r[t % r.length];
48
+ let n = e.source, a = e.value, o = (n?.color ? i(n.color) : "") || r[t % r.length];
49
49
  return {
50
50
  ...n,
51
51
  id: n?.id ?? `donut_serie_${t}`,
52
52
  name: ae(n, t),
53
- value: i,
54
- absoluteValue: Math.abs(i),
55
- absoluteValues: Array.isArray(n?.values) ? n.values : [i],
53
+ value: a,
54
+ absoluteValue: Math.abs(a),
55
+ absoluteValues: Array.isArray(n?.values) ? n.values : [a],
56
56
  color: o,
57
57
  index: t,
58
58
  sourceIndex: e.sourceIndex,
@@ -211,7 +211,7 @@ function me(e, t) {
211
211
  }
212
212
  function he(e, t) {
213
213
  let n = x(S(e.config, "layout.donut.rotation", 105.25), 105.25);
214
- return m({ 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) => ({
214
+ return r({ 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
216
  index: n,
217
217
  color: k(e.color, t[n]?.color),
@@ -223,7 +223,7 @@ function he(e, t) {
223
223
  }
224
224
  function ge(e, t) {
225
225
  let n = Math.max(1, ...t.map((e) => Math.abs(x(e.value, 0)))), r = t.map((e) => Math.abs(x(e.value, 0)) / n);
226
- return p({
226
+ return m({
227
227
  series: r,
228
228
  center: e.center,
229
229
  maxRadius: Math.min(e.drawingArea.width, e.drawingArea.height) / 3,
@@ -270,55 +270,55 @@ function ve(e) {
270
270
  fill: k(i.color || r.color, j(t))
271
271
  })), M("g", { "data-layer": "title" }, d.join(""));
272
272
  }
273
- function ye(t, n) {
274
- let { config: r } = t, i = [], a = !!S(r, "useGradient", !1), s = !!S(r, "layout.donut.useShadow", !1);
275
- if (a) {
276
- let a = E(r, "type", "classic"), s = x(S(r, "gradientIntensity", 30), 30);
277
- if (a === "classic" && Number.isFinite(t.thickness / t.radius)) {
278
- let n = V(r) ? 1 : t.thickness / t.radius;
279
- i.push(M("radialGradient", { id: H(t) }, [
273
+ function ye(e, t) {
274
+ let { config: n } = e, r = [], i = !!S(n, "useGradient", !1), s = !!S(n, "layout.donut.useShadow", !1);
275
+ if (i) {
276
+ let i = E(n, "type", "classic"), s = x(S(n, "gradientIntensity", 30), 30);
277
+ if (i === "classic" && Number.isFinite(e.thickness / e.radius)) {
278
+ let t = V(n) ? 1 : e.thickness / e.radius;
279
+ r.push(M("radialGradient", { id: H(e) }, [
280
280
  w("stop", {
281
281
  offset: "0%",
282
- "stop-color": e(L(r), 0),
282
+ "stop-color": a(L(n), 0),
283
283
  "stop-opacity": 0
284
284
  }),
285
285
  w("stop", {
286
- offset: `${(1 - n) * 100}%`,
287
- "stop-color": e("#FFFFFF", 0),
286
+ offset: `${(1 - t) * 100}%`,
287
+ "stop-color": a("#FFFFFF", 0),
288
288
  "stop-opacity": 0
289
289
  }),
290
290
  w("stop", {
291
- offset: `${(1 - n / 2) * 100}%`,
292
- "stop-color": e("#FFFFFF", s)
291
+ offset: `${(1 - t / 2) * 100}%`,
292
+ "stop-color": a("#FFFFFF", s)
293
293
  }),
294
294
  w("stop", {
295
295
  offset: "100%",
296
- "stop-color": e(L(r), 0),
296
+ "stop-color": a(L(n), 0),
297
297
  "stop-opacity": 0
298
298
  })
299
299
  ].join("")));
300
300
  }
301
- a === "polar" && n.forEach((e, n) => {
302
- let r = t.polarAreas?.[n];
303
- r?.middlePoint && i.push(M("radialGradient", {
304
- id: U(t, n),
305
- cx: `${l(r.middlePoint.x / t.width * 100)}%`,
306
- cy: `${l(r.middlePoint.y / t.height * 100)}%`,
301
+ i === "polar" && t.forEach((t, n) => {
302
+ let i = e.polarAreas?.[n];
303
+ i?.middlePoint && r.push(M("radialGradient", {
304
+ id: U(e, n),
305
+ cx: `${u(i.middlePoint.x / e.width * 100)}%`,
306
+ cy: `${u(i.middlePoint.y / e.height * 100)}%`,
307
307
  r: "62%"
308
308
  }, [w("stop", {
309
309
  offset: "0%",
310
- "stop-color": o(e.color, .05),
310
+ "stop-color": o(t.color, .05),
311
311
  "stop-opacity": s / 100
312
312
  }), w("stop", {
313
313
  offset: "100%",
314
- "stop-color": e.color
314
+ "stop-color": t.color
315
315
  })].join("")));
316
316
  });
317
317
  }
318
318
  if (s) {
319
- let e = k(S(r, "layout.donut.shadowColor", "#000000"), "#000000"), n = x(S(r, "layout.donut.shadowOpacity", .2), .2), a = x(S(r, "layout.donut.shadowBlur", 6), 6), o = x(S(r, "layout.donut.shadowOffsetY", 3), 3);
320
- i.push(M("filter", {
321
- id: W(t),
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
+ id: W(e),
322
322
  x: "-50%",
323
323
  y: "-50%",
324
324
  width: "200%",
@@ -327,11 +327,11 @@ function ye(t, n) {
327
327
  dx: 0,
328
328
  dy: o,
329
329
  stdDeviation: a,
330
- "flood-color": e,
331
- "flood-opacity": n
330
+ "flood-color": t,
331
+ "flood-opacity": i
332
332
  })].join("")));
333
333
  }
334
- return i.length ? M("defs", { "data-layer": "definitions" }, i.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;
@@ -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 f(o.formatter, t.value, c, { datapoint: t });
397
+ return p(o.formatter, t.value, c, { 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 = s({
@@ -402,7 +402,7 @@ function J(e, t) {
402
402
  s: "%",
403
403
  r: x(r.rounding, 0)
404
404
  });
405
- return f(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,11 +434,11 @@ 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, d = e.drawingArea.top + 16, f = e.drawingArea.bottom - 16, p = i - (e.radius + 6), m = i + (e.radius + 6), g = 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, f = e.drawingArea.bottom - 16, p = i - (e.radius + 6), m = i + (e.radius + 6), g = Q(e);
438
438
  function _(e) {
439
439
  return {
440
- x: l(e.center?.endX ?? e.endX),
441
- y: l(e.center?.endY ?? e.endY)
440
+ x: u(e.center?.endX ?? e.endX),
441
+ y: u(e.center?.endY ?? e.endY)
442
442
  };
443
443
  }
444
444
  function v({ midX: e, midY: t, bandX: n, bandY: r }) {
@@ -489,7 +489,7 @@ function Ee(e, t) {
489
489
  index: t,
490
490
  midX: n.x,
491
491
  midY: n.y,
492
- inlineMarkerX: u(e).x,
492
+ inlineMarkerX: d(e).x,
493
493
  inlineMarkerY: h(e) - 3.5,
494
494
  labelHeight: y(e.name)
495
495
  };
@@ -550,13 +550,13 @@ function Ee(e, t) {
550
550
  candidateList: D.TL,
551
551
  side: "left",
552
552
  bandMarkerX: p,
553
- startY: d,
553
+ startY: l,
554
554
  direction: "down"
555
555
  }), E({
556
556
  candidateList: D.TR,
557
557
  side: "right",
558
558
  bandMarkerX: m,
559
- startY: d,
559
+ startY: l,
560
560
  direction: "down"
561
561
  }), D.BL.length > 1 && E({
562
562
  candidateList: D.BL,
@@ -573,7 +573,7 @@ function Ee(e, t) {
573
573
  }), r;
574
574
  }
575
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 ?? u(t, !0, 12).x, l = r?.labelY ?? h(t), d = r?.textAnchor ?? u(t, !0, 12).anchor, { name: f } = Y(e, t), p = we(e, t), m = String(f).split(/\n/g), g = f ? m.map((t, n) => M("tspan", {
576
+ let a = S(e.config, "layout.labels", {}), o = a.percentage ?? {}, s = a.name ?? {}, c = r?.labelX ?? d(t, !0, 12).x, l = r?.labelY ?? h(t), u = r?.textAnchor ?? d(t, !0, 12).anchor, { name: f } = Y(e, t), p = we(e, t), m = String(f).split(/\n/g), g = f ? m.map((t, n) => M("tspan", {
577
577
  class: "vue-data-ui-datalabel-name",
578
578
  x: n === 0 ? void 0 : c,
579
579
  dy: n === 0 ? void 0 : i * 1.2,
@@ -591,7 +591,7 @@ function De({ state: e, arc: t, arcIndex: n, smallArcLayout: r, fontSize: i }) {
591
591
  class: "vue-data-ui-datalabel-inline",
592
592
  x: c,
593
593
  y: l,
594
- "text-anchor": d
594
+ "text-anchor": u
595
595
  }, `${g}${v}`);
596
596
  }
597
597
  function Oe(e, t) {
@@ -618,21 +618,21 @@ function Oe(e, t) {
618
618
  arc: t,
619
619
  arcIndex: n,
620
620
  smallArcLayout: {
621
- labelX: u(t, !1, a + i / 2).x,
621
+ labelX: d(t, !1, a + i / 2).x,
622
622
  labelY: h(t, a, a),
623
- textAnchor: u(t).anchor
623
+ textAnchor: d(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 i({
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) {
@@ -654,13 +654,13 @@ function je(e, t, n, r) {
654
654
  }, _(t))).join("") : "";
655
655
  return r === "end" ? `${u}${l}` : `${l}${u}`;
656
656
  }
657
- function Me(e, t, n) {
657
+ function Me(e, n, r) {
658
658
  let i = S(e.config, "layout.labels", {}), a = i.dataLabels ?? {}, o = i.value ?? {}, s = i.percentage ?? {}, c = i.name ?? {};
659
659
  if (!E(e.config, "dataLabels.show", a.show ?? !0) || !a.show) return "";
660
660
  let l = !!a.oneLine, u = x(o.fontSize, a.fontSize ?? 12), d = x(c.fontSize, a.fontSize ?? 12), f = [];
661
- return t.forEach((t, i) => {
662
- let a = n[i];
663
- if (!a || !Z(e, t)) return;
661
+ return n.forEach((n, i) => {
662
+ let a = r[i];
663
+ if (!a || !Z(e, n)) return;
664
664
  let o = ke(e, a, 42), p = Ae(e, o);
665
665
  if (l) {
666
666
  f.push(M("text", {
@@ -669,7 +669,7 @@ function Me(e, t, n) {
669
669
  x: o.x,
670
670
  y: o.y,
671
671
  "text-anchor": p
672
- }, je(e, t, o.x, p)));
672
+ }, je(e, n, o.x, p)));
673
673
  return;
674
674
  }
675
675
  f.push(M("text", {
@@ -682,7 +682,7 @@ function Me(e, t, n) {
682
682
  "text-anchor": p,
683
683
  fill: valueFill
684
684
  }, te({
685
- content: X(e, t),
685
+ content: X(e, n),
686
686
  x: o.x,
687
687
  fontSize: u,
688
688
  fill: valueFill,
@@ -696,8 +696,8 @@ function Me(e, t, n) {
696
696
  "font-weight": c.bold ? "700" : "400",
697
697
  "text-anchor": p,
698
698
  fill: k(c.color, j(e.config))
699
- }, r({
700
- content: _(String(t.name ?? "")),
699
+ }, t({
700
+ content: _(String(n.name ?? "")),
701
701
  fontSize: d,
702
702
  fill: k(c.color, j(e.config)),
703
703
  x: o.x
@@ -707,7 +707,7 @@ function Me(e, t, n) {
707
707
  function Ne(e, t, n = null) {
708
708
  if (n?.connectorPath) return n.connectorPath;
709
709
  let r = S(e.config, "layout.labels.dataLabels", {}), i = x(r.offset, 16), a = x(r.markerFlatLength, 12), o = Q(e);
710
- return d(t, !1, i, i, !1, !1, 0, a, o);
710
+ return f(t, !1, i, i, !1, !1, 0, a, o);
711
711
  }
712
712
  function Pe(e, t) {
713
713
  let n = S(e.config, "layout.labels.dataLabels", {});
@@ -726,7 +726,7 @@ 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 ?? u(t).x,
729
+ cx: o?.markerX ?? d(t).x,
730
730
  cy: o?.markerY ?? h(t) - 3.5,
731
731
  r: x(n.markerRadius, 3),
732
732
  fill: t.color,
@@ -735,25 +735,25 @@ 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 "";
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
741
  let a = [];
742
- return t.forEach((t, o) => {
743
- let s = n[o];
744
- if (!s?.middlePoint || !Z(e, t)) return;
745
- let c = i({
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
752
  a.push(w("path", {
753
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"
@@ -761,9 +761,9 @@ function Fe(e, t, n) {
761
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
769
  }), a.length ? M("g", { "data-layer": "polar-label-markers" }, a.join("")) : "";
@@ -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, c = e.center.y - (r ? n : 0) + x(i.offsetY, 0), l = i.value ?? {}, u = x(l.fontSize, n), d = f(l.formatter, t, s({
781
+ let n = x(i.fontSize, 14), r = !!a.show, c = e.center.y - (r ? n : 0) + x(i.offsetY, 0), l = i.value ?? {}, u = x(l.fontSize, n), d = p(l.formatter, t, s({
782
782
  p: l.prefix ?? "",
783
783
  v: t,
784
784
  s: l.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), c = !!i.show, l = t / Math.max(1, n.length), u = a.value ?? {}, d = x(u.fontSize, r), p = f(u.formatter, l, s({
804
+ let r = x(a.fontSize, 14), c = !!i.show, l = t / Math.max(1, n.length), u = a.value ?? {}, d = x(u.fontSize, r), f = p(u.formatter, l, s({
805
805
  p: u.prefix ?? "",
806
806
  v: l,
807
807
  s: u.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($(p, {
817
+ })), o.push($(f, {
818
818
  "data-cy": "hollow-average-value",
819
819
  x: e.center.x,
820
820
  y: e.center.y + (c ? r : 0) + r + x(u.offsetY, 0),
@@ -831,7 +831,7 @@ function Ie(e, t, n) {
831
831
  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
- let a = S(n, "layout.labels.dataLabels", {}), o = x(i.fontSize, 20), c = k(i.color, j(n)), l = f(i.formatter, t, s({
834
+ let a = S(n, "layout.labels.dataLabels", {}), o = x(i.fontSize, 20), c = k(i.color, j(n)), l = p(i.formatter, t, s({
835
835
  p: a.prefix ?? "",
836
836
  v: t,
837
837
  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 f(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 f(r.formatter, i, a, {
872
+ return p(r.formatter, i, a, {
873
873
  datapoint: t,
874
874
  serie: t
875
875
  });
@@ -930,7 +930,7 @@ function We(e, t) {
930
930
  }) ?? "" : n ?? "";
931
931
  }
932
932
  function Ge(e, t, n) {
933
- let r = `${E(e.config, "title.text", "Donut chart") || e.svgTitle || "Donut chart"}. ${t.length} series. Total ${l(n)}.`;
933
+ let r = `${E(e.config, "title.text", "Donut chart") || e.svgTitle || "Donut chart"}. ${t.length} series. Total ${u(n)}.`;
934
934
  return M("title", {}, _(r));
935
935
  }
936
936
  async function Ke(e) {