vue-data-ui 3.22.13 → 3.23.0

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 (224) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
  4. package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
  5. package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
  6. package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
  7. package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
  8. package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
  9. package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
  10. package/dist/HillActions-BWhxHlrj.js +187 -0
  11. package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
  13. package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
  14. package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
  15. package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
  16. package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
  17. package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
  18. package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
  19. package/dist/Title-BODtwViI.js +87 -0
  20. package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
  21. package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
  93. package/dist/exposedLib-DWLRqRhv.js +25 -0
  94. package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
  95. package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
  96. package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
  97. package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
  98. package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
  99. package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +493 -0
  105. package/dist/types/vue-ui-hill.d.ts +90 -0
  106. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  107. package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
  108. package/dist/useHints-Dq_w2E8B.js +66 -0
  109. package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
  110. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
  111. package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
  112. package/dist/useTransitions-g_zBREk2.js +39 -0
  113. package/dist/utils.js +14 -14
  114. package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
  115. package/dist/vue-data-ui.js +77 -76
  116. package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
  117. package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
  119. package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
  120. package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
  121. package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
  122. package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
  123. package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
  124. package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
  125. package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
  126. package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
  127. package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
  128. package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
  129. package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
  130. package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
  131. package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
  132. package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
  133. package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
  134. package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
  135. package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
  136. package/dist/vue-ui-funnel-CjYosIik.js +797 -0
  137. package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
  138. package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
  139. package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
  140. package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
  141. package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
  142. package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
  143. package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
  144. package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
  145. package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
  146. package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
  147. package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
  148. package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
  149. package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
  150. package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
  151. package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
  152. package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
  153. package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
  154. package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
  155. package/dist/vue-ui-rating--K7rX2an.js +360 -0
  156. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
  157. package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
  158. package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
  159. package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
  160. package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
  161. package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
  162. package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
  163. package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
  164. package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
  165. package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
  166. package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
  167. package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
  168. package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
  169. package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
  170. package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
  171. package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
  172. package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
  173. package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
  174. package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
  175. package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
  176. package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
  177. package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
  178. package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
  179. package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
  180. package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
  181. package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
  182. package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
  183. package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
  184. package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
  185. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  186. package/package.json +2 -2
  187. package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
  188. package/dist/Title-BuPs74IB.js +0 -87
  189. package/dist/exposedLib-Ciw6TGtP.js +0 -25
  190. package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
  191. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  192. package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
  193. package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
  194. package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
  195. package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
  196. package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
  197. package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
  198. package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
  199. package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
  200. package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
  201. package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
  202. package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
  203. package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
  204. package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
  205. package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
  206. package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
  207. package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
  208. package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
  209. package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
  210. package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
  211. package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
  212. package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
  213. package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
  214. package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
  215. package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
  216. package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
  217. package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
  218. package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
  219. package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
  220. package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
  221. package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
  222. package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
  223. package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
  224. package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
@@ -1,28 +1,28 @@
1
- import { A as e, Bt as t, G as n, Gt as r, K as i, Nt as a, Ot as o, Y as s, d as c, f as l, i as u, jt as d, m as f, qt as p, t as m, tt as h, x as g, y as _, zt as v } from "./lib-CFm_J26b.js";
2
- import { t as y } from "./useConfig-C0V0eG7L.js";
1
+ import { Bt as e, Jt as t, K as n, Kt as r, Mt as i, Pt as a, S as o, Vt as s, X as c, b as l, f as u, h as d, i as f, j as p, kt as m, nt as h, p as g, q as _, t as v } from "./lib-BuMGJ_a0.js";
2
+ import { t as y } from "./useConfig-BilxnBNr.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-BIG8JYGK.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-Ktg2LZFG.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 t = e ?? {}, n = p({
9
- userConfig: t,
8
+ let n = e ?? {}, i = t({
9
+ userConfig: n,
10
10
  defaultConfig: ne
11
- }), i = n.theme;
12
- if (!i) return {
13
- ...n,
14
- customPalette: n.customPalette?.length ? n.customPalette : a
11
+ }), o = i.theme;
12
+ if (!o) return {
13
+ ...i,
14
+ customPalette: i.customPalette?.length ? i.customPalette : a
15
15
  };
16
- let o = p({
17
- userConfig: t,
18
- defaultConfig: p({
19
- userConfig: b[i] || {},
20
- defaultConfig: n
16
+ let s = t({
17
+ userConfig: n,
18
+ defaultConfig: t({
19
+ userConfig: b[o] || {},
20
+ defaultConfig: i
21
21
  })
22
22
  });
23
23
  return {
24
- ...o,
25
- customPalette: o.customPalette?.length ? o.customPalette : r[i] || a
24
+ ...s,
25
+ customPalette: s.customPalette?.length ? s.customPalette : r[o] || a
26
26
  };
27
27
  }
28
28
  function P(e, t = 0) {
@@ -45,7 +45,7 @@ function oe(e = [], t) {
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 ? g(r.color) : "") || n[t % n.length];
48
+ let r = e.source, i = e.value, a = (r?.color ? o(r.color) : "") || n[t % n.length];
49
49
  return {
50
50
  ...r,
51
51
  id: r?.id ?? `donut_serie_${t}`,
@@ -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 = i();
120
+ var ue = _();
121
121
  function I() {
122
122
  return ue;
123
123
  }
@@ -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 o({ 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 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) => ({
215
215
  ...e,
216
216
  index: n,
217
217
  color: k(e.color, t[n]?.color),
@@ -221,12 +221,12 @@ function he(e, t) {
221
221
  seriesIndex: e.seriesIndex ?? t[n]?.seriesIndex ?? n
222
222
  }));
223
223
  }
224
- function ge(t, n) {
225
- let r = Math.max(1, ...n.map((e) => Math.abs(x(e.value, 0))));
226
- return e({
227
- series: n.map((e) => Math.abs(x(e.value, 0)) / r),
228
- center: t.center,
229
- maxRadius: Math.min(t.drawingArea.width, t.drawingArea.height) / 3,
224
+ function ge(e, t) {
225
+ let n = Math.max(1, ...t.map((e) => Math.abs(x(e.value, 0))));
226
+ return p({
227
+ series: t.map((e) => Math.abs(x(e.value, 0)) / n),
228
+ center: e.center,
229
+ maxRadius: Math.min(e.drawingArea.width, e.drawingArea.height) / 3,
230
230
  hasGhost: !1
231
231
  });
232
232
  }
@@ -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(e, n) {
274
- let { config: r } = e, i = [], a = !!S(r, "useGradient", !1), o = !!S(r, "layout.donut.useShadow", !1);
273
+ function ye(t, n) {
274
+ let { config: r } = t, i = [], a = !!S(r, "useGradient", !1), o = !!S(r, "layout.donut.useShadow", !1);
275
275
  if (a) {
276
276
  let a = E(r, "type", "classic"), o = x(S(r, "gradientIntensity", 30), 30);
277
- if (a === "classic" && Number.isFinite(e.thickness / e.radius)) {
278
- let t = V(r) ? 1 : e.thickness / e.radius;
279
- i.push(M("radialGradient", { id: H(e) }, [
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) }, [
280
280
  w("stop", {
281
281
  offset: "0%",
282
- "stop-color": v(L(r), 0),
282
+ "stop-color": e(L(r), 0),
283
283
  "stop-opacity": 0
284
284
  }),
285
285
  w("stop", {
286
- offset: `${(1 - t) * 100}%`,
287
- "stop-color": v("#FFFFFF", 0),
286
+ offset: `${(1 - n) * 100}%`,
287
+ "stop-color": e("#FFFFFF", 0),
288
288
  "stop-opacity": 0
289
289
  }),
290
290
  w("stop", {
291
- offset: `${(1 - t / 2) * 100}%`,
292
- "stop-color": v("#FFFFFF", o)
291
+ offset: `${(1 - n / 2) * 100}%`,
292
+ "stop-color": e("#FFFFFF", o)
293
293
  }),
294
294
  w("stop", {
295
295
  offset: "100%",
296
- "stop-color": v(L(r), 0),
296
+ "stop-color": e(L(r), 0),
297
297
  "stop-opacity": 0
298
298
  })
299
299
  ].join("")));
300
300
  }
301
- a === "polar" && n.forEach((n, r) => {
302
- let a = e.polarAreas?.[r];
303
- a?.middlePoint && i.push(M("radialGradient", {
304
- id: U(e, r),
305
- cx: `${_(a.middlePoint.x / e.width * 100)}%`,
306
- cy: `${_(a.middlePoint.y / e.height * 100)}%`,
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)}%`,
307
307
  r: "62%"
308
308
  }, [w("stop", {
309
309
  offset: "0%",
310
- "stop-color": t(n.color, .05),
310
+ "stop-color": s(e.color, .05),
311
311
  "stop-opacity": o / 100
312
312
  }), w("stop", {
313
313
  offset: "100%",
314
- "stop-color": n.color
314
+ "stop-color": e.color
315
315
  })].join("")));
316
316
  });
317
317
  }
318
318
  if (o) {
319
- let t = 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);
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
320
  i.push(M("filter", {
321
- id: W(e),
321
+ id: W(t),
322
322
  x: "-50%",
323
323
  y: "-50%",
324
324
  width: "200%",
@@ -327,7 +327,7 @@ function ye(e, n) {
327
327
  dx: 0,
328
328
  dy: o,
329
329
  stdDeviation: a,
330
- "flood-color": t,
330
+ "flood-color": e,
331
331
  "flood-opacity": n
332
332
  })].join("")));
333
333
  }
@@ -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 ?? {}, c = s({
391
+ let { config: r } = e, i = S(r, "layout.labels", {}), a = i.dataLabels ?? {}, o = i.value ?? {}, s = c({
392
392
  p: a.prefix ?? "",
393
393
  v: t.value,
394
394
  s: a.suffix ?? "",
395
395
  r: x(S(r, n, o.rounding ?? 0), o.rounding ?? 0)
396
396
  });
397
- return u(o.formatter, t.value, c, { datapoint: t });
397
+ return f(o.formatter, t.value, s, { 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 = s({
400
+ let { config: n } = e, r = S(n, "layout.labels.percentage", {}), i = x(t.proportion, 0) * 100, a = c({
401
401
  v: i,
402
402
  s: "%",
403
403
  r: x(r.rounding, 0)
404
404
  });
405
- return u(r.formatter, i, a, { datapoint: t });
405
+ return f(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, u = o * 1.5, d = e.drawingArea.top + 16, f = e.drawingArea.bottom - 16, p = i - (e.radius + 6), m = i + (e.radius + 6), h = Q(e);
438
- function g(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, d = e.drawingArea.top + 16, f = e.drawingArea.bottom - 16, p = i - (e.radius + 6), m = i + (e.radius + 6), h = Q(e);
438
+ function _(e) {
439
439
  return {
440
- x: _(e.center?.endX ?? e.endX),
441
- y: _(e.center?.endY ?? e.endY)
440
+ x: l(e.center?.endX ?? e.endX),
441
+ y: l(e.center?.endY ?? e.endY)
442
442
  };
443
443
  }
444
444
  function v({ midX: e, midY: t, bandX: n, bandY: r }) {
@@ -480,17 +480,17 @@ function Ee(e, t) {
480
480
  }
481
481
  function y(e) {
482
482
  let t = String(e ?? "").split(/\n/g);
483
- return u + Math.max(0, t.length - 1) * o * 1.2;
483
+ return c + Math.max(0, t.length - 1) * o * 1.2;
484
484
  }
485
485
  function b({ arc: e, index: t }) {
486
- let n = g(e);
486
+ let n = _(e);
487
487
  return {
488
488
  arc: e,
489
489
  index: t,
490
490
  midX: n.x,
491
491
  midY: n.y,
492
- inlineMarkerX: c(e).x,
493
- inlineMarkerY: l(e) - 3.5,
492
+ inlineMarkerX: u(e).x,
493
+ inlineMarkerY: g(e) - 3.5,
494
494
  labelHeight: y(e.name)
495
495
  };
496
496
  }
@@ -573,25 +573,25 @@ 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 ?? {}, u = r?.labelX ?? c(t, !0, 12).x, d = r?.labelY ?? l(t), f = r?.textAnchor ?? c(t, !0, 12).anchor, { name: p } = Y(e, t), m = we(e, t), g = String(p).split(/\n/g), _ = p ? g.map((t, n) => M("tspan", {
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 ?? g(t), d = r?.textAnchor ?? u(t, !0, 12).anchor, { name: f } = Y(e, t), p = we(e, t), m = String(f).split(/\n/g), _ = f ? m.map((t, n) => M("tspan", {
577
577
  class: "vue-data-ui-datalabel-name",
578
- x: n === 0 ? void 0 : u,
578
+ x: n === 0 ? void 0 : c,
579
579
  dy: n === 0 ? void 0 : i * 1.2,
580
580
  fill: k(s.color, j(e.config)),
581
581
  "font-size": i,
582
582
  "font-weight": s.bold ? "700" : "400"
583
- }, h(t + (n === g.length - 1 ? " " : "")))).join("") : "", v = m ? M("tspan", {
583
+ }, h(t + (n === m.length - 1 ? " " : "")))).join("") : "", v = p ? M("tspan", {
584
584
  class: "vue-data-ui-datalabel-value",
585
585
  fill: k(o.color, j(e.config)),
586
586
  "font-size": i,
587
587
  "font-weight": o.bold ? "700" : "400"
588
- }, h(m)) : "";
588
+ }, h(p)) : "";
589
589
  return M("text", {
590
590
  "data-cy": `donut-label-inline-${n}`,
591
591
  class: "vue-data-ui-datalabel-inline",
592
- x: u,
593
- y: d,
594
- "text-anchor": f
592
+ x: c,
593
+ y: l,
594
+ "text-anchor": d
595
595
  }, `${_}${v}`);
596
596
  }
597
597
  function Oe(e, t) {
@@ -602,13 +602,13 @@ function Oe(e, t) {
602
602
  let a = x(r.offset, 16), o = Ee(e, t), s = [];
603
603
  return t.forEach((t, n) => {
604
604
  if (!Z(e, t)) return;
605
- let u = o[n];
606
- if (X(e, t), u) {
605
+ let c = o[n];
606
+ if (X(e, t), c) {
607
607
  s.push(De({
608
608
  state: e,
609
609
  arc: t,
610
610
  arcIndex: n,
611
- smallArcLayout: u,
611
+ smallArcLayout: c,
612
612
  fontSize: x(r.smallArcClusterFontSize, i)
613
613
  }));
614
614
  return;
@@ -618,16 +618,16 @@ function Oe(e, t) {
618
618
  arc: t,
619
619
  arcIndex: n,
620
620
  smallArcLayout: {
621
- labelX: c(t, !1, a + i / 2).x,
622
- labelY: l(t, a, a),
623
- textAnchor: c(t).anchor
621
+ labelX: u(t, !1, a + i / 2).x,
622
+ labelY: g(t, a, a),
623
+ textAnchor: u(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
629
  function ke(e, t, n = 42) {
630
- return d({
630
+ return i({
631
631
  initX: t.middlePoint.x,
632
632
  initY: t.middlePoint.y,
633
633
  offset: n,
@@ -707,7 +707,7 @@ function Me(e, t, r) {
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);
710
- return f(t, !1, i, i, !1, !1, 0, x(r.markerFlatLength, 12), Q(e));
710
+ return d(t, !1, i, i, !1, !1, 0, x(r.markerFlatLength, 12), Q(e));
711
711
  }
712
712
  function Pe(e, t) {
713
713
  let n = S(e.config, "layout.labels.dataLabels", {});
@@ -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 ?? c(t).x,
730
- cy: o?.markerY ?? l(t) - 3.5,
729
+ cx: o?.markerX ?? u(t).x,
730
+ cy: o?.markerY ?? g(t) - 3.5,
731
731
  r: x(n.markerRadius, 3),
732
732
  fill: t.color,
733
733
  stroke: L(e.config),
@@ -738,35 +738,35 @@ function Pe(e, t) {
738
738
  function Fe(e, t, n) {
739
739
  let r = S(e.config, "layout.labels.dataLabels", {});
740
740
  if (!E(e.config, "dataLabels.show", r.show ?? !0) || !r.show) return "";
741
- let i = [];
742
- return t.forEach((t, a) => {
743
- let o = n[a];
744
- if (!o?.middlePoint || !Z(e, t)) return;
745
- let s = d({
746
- initX: o.middlePoint.x,
747
- initY: o.middlePoint.y,
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({
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
- i.push(w("path", {
753
- "data-cy": `polar-marker-${a}`,
754
- d: `M ${s.x},${s.y} ${o.middlePoint.x},${o.middlePoint.y}`,
752
+ a.push(w("path", {
753
+ "data-cy": `polar-marker-${o}`,
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",
758
758
  "stroke-linejoin": "round",
759
759
  fill: "none"
760
- })), i.push(w("circle", {
761
- "data-cy": `polar-label-marker-${a}`,
762
- cx: s.x,
763
- cy: s.y,
760
+ })), a.push(w("circle", {
761
+ "data-cy": `polar-label-marker-${o}`,
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),
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, {
@@ -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 ?? {}, d = x(l.fontSize, n), f = u(l.formatter, t, s({
781
+ let n = x(i.fontSize, 14), r = !!a.show, s = e.center.y - (r ? n : 0) + x(i.offsetY, 0), l = i.value ?? {}, u = x(l.fontSize, n), d = f(l.formatter, t, c({
782
782
  p: l.prefix ?? "",
783
783
  v: t,
784
784
  s: l.suffix ?? "",
@@ -787,40 +787,40 @@ function Ie(e, t, n) {
787
787
  o.push($(i.text ?? "", {
788
788
  "data-cy": "hollow-total-name",
789
789
  x: e.center.x,
790
- y: c,
790
+ y: s,
791
791
  fill: k(i.color, j(e.config)),
792
792
  "font-size": n,
793
793
  "font-weight": i.bold ? "700" : "400"
794
- })), o.push($(f, {
794
+ })), o.push($(d, {
795
795
  "data-cy": "hollow-total-value",
796
796
  x: e.center.x,
797
797
  y: e.center.y + n - (r ? n : 0) + x(l.offsetY, 0),
798
798
  fill: k(l.color, k(i.color, j(e.config))),
799
- "font-size": d,
799
+ "font-size": u,
800
800
  "font-weight": l.bold ? "700" : "400"
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), d = a.value ?? {}, f = x(d.fontSize, r), p = u(d.formatter, l, s({
805
- p: d.prefix ?? "",
804
+ let r = x(a.fontSize, 14), s = !!i.show, l = t / Math.max(1, n.length), u = a.value ?? {}, d = x(u.fontSize, r), p = f(u.formatter, l, c({
805
+ p: u.prefix ?? "",
806
806
  v: l,
807
- s: d.suffix ?? "",
808
- r: x(d.rounding, 0)
807
+ s: u.suffix ?? "",
808
+ r: x(u.rounding, 0)
809
809
  }), { average: l });
810
810
  o.push($(a.text ?? "", {
811
811
  "data-cy": "hollow-average-name",
812
812
  x: e.center.x,
813
- y: e.center.y + (c ? r : 0) + x(a.offsetY, 0),
813
+ y: e.center.y + (s ? r : 0) + x(a.offsetY, 0),
814
814
  fill: k(a.color, j(e.config)),
815
815
  "font-size": r,
816
816
  "font-weight": a.bold ? "700" : "400"
817
817
  })), o.push($(p, {
818
818
  "data-cy": "hollow-average-value",
819
819
  x: e.center.x,
820
- y: e.center.y + (c ? r : 0) + r + x(d.offsetY, 0),
821
- fill: k(d.color, k(a.color, j(e.config))),
822
- "font-size": f,
823
- "font-weight": d.bold ? "700" : "400"
820
+ y: e.center.y + (s ? r : 0) + r + x(u.offsetY, 0),
821
+ fill: k(u.color, k(a.color, j(e.config))),
822
+ "font-size": d,
823
+ "font-weight": u.bold ? "700" : "400"
824
824
  }));
825
825
  }
826
826
  return o.filter(Boolean).length ? M("g", {
@@ -831,8 +831,8 @@ 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));
835
- return N(u(i.formatter, t, s({
834
+ let a = S(n, "layout.labels.dataLabels", {}), o = x(i.fontSize, 20), s = k(i.color, j(n));
835
+ return N(f(i.formatter, t, c({
836
836
  p: a.prefix ?? "",
837
837
  v: t,
838
838
  s: a.suffix ?? "",
@@ -844,7 +844,7 @@ function Le(e, t) {
844
844
  "font-size": o,
845
845
  "font-weight": i.bold ? "700" : "400",
846
846
  "text-anchor": "middle",
847
- fill: c
847
+ fill: s
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 = s({
855
+ let n = S(e.config, "legend", {}), r = S(e.config, "layout.labels", {}), i = r.dataLabels ?? {}, a = r.value ?? {}, o = c({
856
856
  p: i.prefix ?? "",
857
857
  v: t.value,
858
858
  s: i.suffix ?? "",
859
859
  r: x(n.roundingValue, a.rounding ?? 0)
860
860
  });
861
- return u(a.formatter, t.value, o, {
861
+ return f(a.formatter, t.value, o, {
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 = s({
867
+ let n = S(e.config, "legend", {}), r = S(e.config, "layout.labels", {}).percentage ?? {}, i = Re(e, t), a = c({
868
868
  v: i,
869
869
  s: "%",
870
870
  r: x(n.roundingPercentage, r.rounding ?? 0)
871
871
  });
872
- return u(r.formatter, i, a, {
872
+ return f(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
- return M("title", {}, h(`${E(e.config, "title.text", "Donut chart") || e.svgTitle || "Donut chart"}. ${t.length} series. Total ${_(n)}.`));
933
+ return M("title", {}, h(`${E(e.config, "title.text", "Donut chart") || e.svgTitle || "Donut chart"}. ${t.length} series. Total ${l(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="${m}"
943
+ xmlns="${v}"
944
944
  width="100%"
945
945
  viewBox="0 0 ${n} ${r}"
946
946
  role="img"