vue-data-ui 3.15.12 → 3.16.1

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 (218) hide show
  1. package/README.md +132 -59
  2. package/dist/A11yDataTable-KcVAX2cP.js +54 -0
  3. package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
  5. package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
  6. package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
  7. package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
  8. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  9. package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
  10. package/dist/Legend-CS7Xo5LK.js +101 -0
  11. package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
  12. package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
  13. package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  14. package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
  15. package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
  16. package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
  17. package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
  18. package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
  19. package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
  20. package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
  21. package/dist/components/arrow.js +1 -1
  22. package/dist/components/vue-ui-3d-bar.js +1 -1
  23. package/dist/components/vue-ui-accordion.js +1 -1
  24. package/dist/components/vue-ui-age-pyramid.js +1 -1
  25. package/dist/components/vue-ui-annotator.js +1 -1
  26. package/dist/components/vue-ui-bullet.js +1 -1
  27. package/dist/components/vue-ui-bump.js +1 -1
  28. package/dist/components/vue-ui-candlestick.js +1 -1
  29. package/dist/components/vue-ui-carousel-table.js +1 -1
  30. package/dist/components/vue-ui-chestnut.js +1 -1
  31. package/dist/components/vue-ui-chord.js +1 -1
  32. package/dist/components/vue-ui-circle-pack.js +1 -1
  33. package/dist/components/vue-ui-cursor.js +1 -1
  34. package/dist/components/vue-ui-dag.js +1 -1
  35. package/dist/components/vue-ui-dashboard.js +1 -1
  36. package/dist/components/vue-ui-digits.js +1 -1
  37. package/dist/components/vue-ui-donut-evolution.js +1 -1
  38. package/dist/components/vue-ui-donut.js +1 -1
  39. package/dist/components/vue-ui-dumbbell.js +1 -1
  40. package/dist/components/vue-ui-flow.js +1 -1
  41. package/dist/components/vue-ui-funnel.js +1 -1
  42. package/dist/components/vue-ui-galaxy.js +1 -1
  43. package/dist/components/vue-ui-gauge.js +1 -1
  44. package/dist/components/vue-ui-geo.js +1 -1
  45. package/dist/components/vue-ui-gizmo.js +1 -1
  46. package/dist/components/vue-ui-heatmap.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.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-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
  91. package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
  92. package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
  93. package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
  94. package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
  95. package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/types/vue-data-ui.d.ts +59 -0
  98. package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
  99. package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
  100. package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
  101. package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
  102. package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
  103. package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
  104. package/dist/utils.js +3 -3
  105. package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
  108. package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
  109. package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
  110. package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
  111. package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
  112. package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
  113. package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
  114. package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
  115. package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
  116. package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
  117. package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
  118. package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
  119. package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
  120. package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
  121. package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
  122. package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
  123. package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
  124. package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
  125. package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
  126. package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
  127. package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
  128. package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
  129. package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
  130. package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
  131. package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
  132. package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
  133. package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
  134. package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
  135. package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
  136. package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
  137. package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
  138. package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
  139. package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
  141. package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
  142. package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
  143. package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
  144. package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
  145. package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
  146. package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
  147. package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
  148. package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
  149. package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
  150. package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
  151. package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
  152. package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
  153. package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
  154. package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
  155. package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
  156. package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
  157. package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
  158. package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
  159. package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
  160. package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
  161. package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
  162. package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
  163. package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
  164. package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
  165. package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
  166. package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
  167. package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
  168. package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
  169. package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
  170. package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
  171. package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
  172. package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
  173. package/package.json +2 -2
  174. package/dist/ColorPicker-j0ySewhI.js +0 -244
  175. package/dist/Legend-1LMMsPxL.js +0 -90
  176. package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
  177. package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
  178. package/dist/vue-ui-bump-C_fKharc.js +0 -1059
  179. package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
  180. package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
  181. package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
  182. package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
  183. package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
  184. package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
  185. package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
  186. package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
  187. package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
  188. package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
  189. package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
  190. package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
  191. package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
  192. package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
  193. package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
  194. package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
  195. package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
  196. package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
  197. package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
  198. package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
  199. package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
  200. package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
  201. package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
  202. package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
  203. package/dist/vue-ui-rings-80ZUki42.js +0 -1083
  204. package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
  205. package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
  206. package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
  207. package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
  208. package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
  209. package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
  210. package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
  211. package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
  212. package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
  213. package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
  214. package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
  215. package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
  216. package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
  217. package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
  218. package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
@@ -0,0 +1,738 @@
1
+ import { useCssVars as Vt, defineAsyncComponent as xe, computed as v, ref as b, toRefs as Gt, watch as Je, shallowRef as Qe, onMounted as Ht, onBeforeUnmount as qt, openBlock as s, createElementBlock as n, unref as r, normalizeStyle as Me, normalizeClass as F, createBlock as he, withCtx as S, renderSlot as p, normalizeProps as O, guardReactiveProps as R, createCommentVNode as z, createSlots as Zt, createElementVNode as $e, toDisplayString as Ae, createVNode as Kt, Fragment as P, renderList as X, nextTick as Jt } from "vue";
2
+ import { j as Qt, t as et, o as ea, q as ta, v as te, a4 as aa, k as la, l as oa, K as tt, X as sa, x as at } from "./lib-DBptbyyI.js";
3
+ import { t as na, u as ua } from "./useResponsive-DfdjqQps.js";
4
+ import { u as ia } from "./useConfig-DO94Aj5s.js";
5
+ import { u as ra, B as ca } from "./BaseScanner-BhhkKVoj.js";
6
+ import { u as va } from "./usePrinter-CEpYU3r5.js";
7
+ import { u as ha } from "./useSvgExport-ByUukOZt.js";
8
+ import { u as Ie } from "./useNestedProp-Bf5XFbs8.js";
9
+ import { u as da } from "./useThemeCheck-D1ZYXUwG.js";
10
+ import { u as ya } from "./useUserOptionState-BIvW1Kz7.js";
11
+ import { u as ka } from "./useChartAccessibility-9icAAmYg.js";
12
+ import { u as fa } from "./usePrefersMotion-CUKm8_t8.js";
13
+ import ga from "./img-LXxMLmCg.js";
14
+ import pa from "./Title-BeMKE1cj.js";
15
+ import ma from "./vue_ui_wheel-LqBz3lv4.js";
16
+ import { _ as wa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const ba = ["id"], Ca = ["xmlns", "viewBox", "aria-labelledby", "aria-describedby"], xa = ["id"], Ma = ["id"], $a = ["x", "y", "width", "height"], Aa = ["d", "stroke", "stroke-width"], Ia = ["cx", "cy", "r", "stroke", "stroke-width"], Sa = { key: 0 }, Pa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap"], _a = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap"], Oa = { key: 1 }, Ra = ["d", "fill", "stroke", "stroke-width"], za = ["d", "fill", "stroke", "stroke-width"], Ta = ["d", "fill", "stroke", "stroke-width"], Da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], Wa = ["d", "fill", "stroke", "stroke-width"], Fa = ["aria-label"], Xa = ["x", "y", "height"], Na = ["x", "y", "font-size", "fill", "font-weight", "stroke", "stroke-width"], Ua = {
18
+ key: 4,
19
+ class: "vue-data-ui-watermark"
20
+ }, La = {
21
+ __name: "vue-ui-wheel",
22
+ props: {
23
+ config: {
24
+ type: Object,
25
+ default() {
26
+ return {};
27
+ }
28
+ },
29
+ dataset: {
30
+ type: Object,
31
+ default() {
32
+ return {};
33
+ }
34
+ }
35
+ },
36
+ emits: ["copyAlt"],
37
+ setup(lt, { expose: ot, emit: st }) {
38
+ Vt((t) => ({
39
+ v07f51e2f: xt.value,
40
+ v77e20f55: Mt.value,
41
+ v77e1f1e8: $t.value
42
+ }));
43
+ const nt = xe(() => import("./PenAndPaper-Ct3qJ4lA.js")), ut = xe(() => import("./UserOptions-rW2fRf3V.js")), it = xe(() => import("./PackageVersion-DPO-OOVI.js")), { vue_ui_wheel: rt } = ia(), { isThemeValid: ct, warnInvalidTheme: vt } = da(), T = fa(), D = lt, ht = st, dt = v(() => !!D.dataset && Object.keys(D.dataset).length), H = b(Qt()), yt = b(null), Se = b(0), j = b(null), Pe = b(null), _e = b(null), Oe = b(null), Re = b(0), ae = b(!1), le = b(!1), e = b(ke()), ze = v(() => e.value.userOptions.useCursorPointer), kt = v(() => et({
44
+ defaultConfig: {
45
+ userOptions: { show: !1 },
46
+ style: {
47
+ chart: {
48
+ backgroundColor: "#99999930",
49
+ animation: { use: !1 },
50
+ layout: {
51
+ wheel: {
52
+ ticks: {
53
+ activeColor: "#6A6A6A80",
54
+ inactiveColor: "#CACACA80"
55
+ }
56
+ },
57
+ innerCircle: {
58
+ stroke: "#CACACA80"
59
+ }
60
+ }
61
+ }
62
+ }
63
+ },
64
+ userConfig: e.value.skeletonConfig ?? {}
65
+ })), { loading: oe, FINAL_DATASET: E } = ra({
66
+ ...Gt(D),
67
+ FINAL_CONFIG: e,
68
+ prepareConfig: ke,
69
+ skeletonDataset: D.config?.skeletonDataset ?? { percentage: 50 },
70
+ skeletonConfig: et({
71
+ defaultConfig: e.value,
72
+ userConfig: kt.value
73
+ })
74
+ }), { userOptionsVisible: de, setUserOptionsVisibility: Te, keepUserOptionState: De } = ya({ config: e.value }), { svgRef: ye } = ka({ config: e.value.style.chart.title });
75
+ function ke() {
76
+ const t = Ie({
77
+ userConfig: D.config,
78
+ defaultConfig: rt
79
+ }), o = t.theme;
80
+ if (!o) return t;
81
+ if (!ct.value(t))
82
+ return vt(t), t;
83
+ const a = Ie({
84
+ userConfig: ma[o] || D.config,
85
+ defaultConfig: t
86
+ });
87
+ return Ie({
88
+ userConfig: D.config,
89
+ defaultConfig: a
90
+ });
91
+ }
92
+ Je(() => D.config, (t) => {
93
+ e.value = ke(), de.value = !e.value.userOptions.showOnChartHover, Ne(), Re.value += 1;
94
+ }, { deep: !0 });
95
+ const { isPrinting: fe, isImaging: ge, generatePdf: We, generateImage: Fe } = va({
96
+ elementId: H.value,
97
+ fileName: e.value.style.chart.title.text || "vue-ui-wheel",
98
+ options: e.value.userOptions.print
99
+ }), ft = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = b({
100
+ size: 360,
101
+ height: 360,
102
+ width: 360
103
+ }), q = b(e.value.style.chart.layout.percentage.fontSize), c = v(() => ({
104
+ radius: Math.min(u.value.width, u.value.height) * 0.9 / 2 * e.value.style.chart.layout.wheel.radiusRatio,
105
+ centerX: u.value.width / 2,
106
+ centerY: u.value.height / 2
107
+ }));
108
+ function Xe(t, o = 1) {
109
+ return {
110
+ x: c.value.centerX + c.value.radius * Math.cos(29.85 + t * Math.PI / 180) * o,
111
+ y: c.value.centerY + c.value.radius * Math.sin(29.85 + t * Math.PI / 180) * o
112
+ };
113
+ }
114
+ const y = b(
115
+ e.value.style.chart.animation.use && !T.value ? 0 : E.value.percentage || 0
116
+ );
117
+ Je(() => E.value, (t) => {
118
+ e.value.style.chart.animation.use && !T.value ? Ee(t.percentage) : y.value = t.percentage || 0;
119
+ }, { deep: !0 });
120
+ const N = Qe(null), Y = Qe(null);
121
+ Ht(() => {
122
+ Ne();
123
+ });
124
+ const gt = v(() => !!e.value.debug);
125
+ function Ne() {
126
+ if (ea(D.dataset) && ta({
127
+ componentName: "VueUiWheel",
128
+ type: "dataset",
129
+ debug: gt.value
130
+ }), e.value.responsive) {
131
+ const t = na(() => {
132
+ const { width: o, height: a } = ua({
133
+ chart: j.value,
134
+ title: e.value.style.chart.title.text ? Pe.value : null,
135
+ source: _e.value,
136
+ noTitle: Oe.value
137
+ });
138
+ requestAnimationFrame(() => {
139
+ u.value.width = o, u.value.height = a, q.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(o, a);
140
+ });
141
+ });
142
+ N.value && (Y.value && N.value.unobserve(Y.value), N.value.disconnect()), N.value = new ResizeObserver(t), Y.value = j.value.parentNode, N.value.observe(Y.value);
143
+ }
144
+ Ee(E.value.percentage || 0), e.value.style.chart.animation.use && !T.value || (y.value = E.value.percentage || 0);
145
+ }
146
+ qt(() => {
147
+ N.value && (Y.value && N.value.unobserve(Y.value), N.value.disconnect());
148
+ });
149
+ function se([t, o, a], l) {
150
+ const i = Math.cos(l), d = Math.sin(l);
151
+ return [t, o * i - a * d, o * d + a * i];
152
+ }
153
+ function ne([t, o, a], l) {
154
+ const i = l / (l - a);
155
+ return [t * i, o * i, a, i];
156
+ }
157
+ function Ue(t, o) {
158
+ const a = t.replace("#", ""), l = parseInt(a.substring(0, 2), 16), i = parseInt(a.substring(2, 4), 16), d = parseInt(a.substring(4, 6), 16), k = 1 - Math.min(1, Math.max(0, e.value.style.chart.layout.wheel.ticks.shadeColorRatio3d)) * o, f = Math.max(0, Math.min(255, Math.round(l * k))), M = Math.max(0, Math.min(255, Math.round(i * k))), $ = Math.max(0, Math.min(255, Math.round(d * k)));
159
+ return `#${f.toString(16).padStart(2, "0")}${M.toString(16).padStart(2, "0")}${$.toString(16).padStart(2, "0")}`;
160
+ }
161
+ function pt({
162
+ cx: t,
163
+ cy: o,
164
+ radius: a,
165
+ innerRatio: l = 0.8,
166
+ count: i = 120,
167
+ startDeg: d = 0,
168
+ axDeg: C = 50,
169
+ f: k = 520,
170
+ baseStroke: f = 5,
171
+ activeColor: M,
172
+ inactiveColor: $,
173
+ getActive: I
174
+ }) {
175
+ const h = C * Math.PI / 180, m = a, A = a * l, x = [];
176
+ for (let w = 0; w < i; w += 1) {
177
+ const g = (w / i * 360 + d) * Math.PI / 180, W = t + m * Math.cos(g), G = o + m * Math.sin(g), B = t + A * Math.cos(g), Z = o + A * Math.sin(g), K = [W - t, G - o, 0], J = [B - t, Z - o, 0], [ce, Ke, Q] = se(K, h), [be, Ce, ee] = se(J, h), [ve, zt, , Tt] = ne([ce, Ke, Q], k), [Dt, Wt] = ne([be, Ce, ee], k), Ft = t + ve, Xt = o + zt, Nt = t + Dt, Ut = o + Wt, Lt = (Math.max(Q, ee) - -m * Math.sin(h)) / (2 * m * Math.sin(h) || 1), jt = I ? I(w) : !0, Bt = e.value.style.chart.layout.wheel.ticks.gradient.show ? te(M, w * _.value / L.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : M, Et = Ue(jt ? Bt : $, Lt), Yt = Math.max(1.25, f * Tt * (Math.min(u.value.width, u.value.height) / 360));
178
+ x.push({ i: w, x1: Ft, y1: Xt, x2: Nt, y2: Ut, stroke: Yt, color: Et, z: Math.max(Q, ee) });
179
+ }
180
+ return x.sort((w, g) => w.z - g.z), x;
181
+ }
182
+ const Le = v(() => {
183
+ if (!e.value.layout === "3d") return null;
184
+ const t = L.value, o = e.value.style.chart.layout.wheel.ticks.gradient.show ? te(e.value.style.chart.layout.wheel.ticks.activeColor, 0) : e.value.style.chart.layout.wheel.ticks.activeColor, a = e.value.style.chart.layout.wheel.ticks.inactiveColor, l = e.value.style.chart.layout.wheel.ticks.strokeWidth;
185
+ return pt({
186
+ cx: c.value.centerX,
187
+ cy: c.value.centerY,
188
+ radius: c.value.radius,
189
+ innerRatio: e.value.style.chart.layout.wheel.ticks.sizeRatio,
190
+ count: t,
191
+ startDeg: -90,
192
+ axDeg: e.value.style.chart.layout.wheel.tiltAngle3d,
193
+ f: Math.min(u.value.width, u.value.height) * 1.45,
194
+ baseStroke: l,
195
+ activeColor: o,
196
+ inactiveColor: a,
197
+ getActive: (i) => y.value > i * _.value
198
+ });
199
+ });
200
+ function je({ cx: t, cy: o, r: a, count: l = 180, startDeg: i = -90, axDeg: d = 50, f: C }) {
201
+ const k = d * Math.PI / 180, f = [];
202
+ let M = 0;
203
+ for (let h = 0; h < l; h += 1) {
204
+ const m = (h / l * 360 + i) * Math.PI / 180, A = [a * Math.cos(m), a * Math.sin(m), 0], [x, w, g] = se(A, k), [W, G, , B] = ne([x, w, g], C);
205
+ M += B, f.push([t + W, o + G]);
206
+ }
207
+ let $ = `M ${f[0][0]} ${f[0][1]}`;
208
+ for (let h = 1; h < f.length; h += 1)
209
+ $ += ` L ${f[h][0]} ${f[h][1]}`;
210
+ $ += " Z";
211
+ const I = M / l;
212
+ return { d: $, avgScale: I, pts: f };
213
+ }
214
+ const U = v(() => {
215
+ if (e.value.layout !== "3d") return null;
216
+ const t = Math.min(u.value.width, u.value.height) * 1.45, o = e.value.style.chart.layout.wheel.tiltAngle3d, a = c.value.radius, { pts: l, avgScale: i } = (() => {
217
+ const A = a, x = o, { avgScale: w, pts: g } = je({
218
+ cx: c.value.centerX,
219
+ cy: c.value.centerY,
220
+ r: A,
221
+ startDeg: -90,
222
+ axDeg: x,
223
+ f: t
224
+ });
225
+ return { pts: g, avgScale: w };
226
+ })();
227
+ let d = 1 / 0, C = 1 / 0, k = -1 / 0, f = -1 / 0;
228
+ for (const [A, x] of l)
229
+ A < d && (d = A), x < C && (C = x), A > k && (k = A), x > f && (f = x);
230
+ const M = e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height), $ = e.value.style.chart.layout.innerCircle.strokeWidth || 0, I = 0.5 * Math.max(M, $ * (i || 1)), h = Math.max(0, Number(e.value.style.chart.layout.wheel.ticks.depth3d) || 0), m = I;
231
+ return {
232
+ x: d - m,
233
+ y: C - h - m,
234
+ w: k - d + 2 * m,
235
+ h: f - (C - h) + 2 * m
236
+ };
237
+ });
238
+ function mt(t) {
239
+ const o = Math.min(u.value.width, u.value.height) * 1.45, { d: a, avgScale: l } = je({
240
+ cx: c.value.centerX,
241
+ cy: c.value.centerY,
242
+ r: t,
243
+ startDeg: -90,
244
+ axDeg: e.value.style.chart.layout.wheel.tiltAngle3d,
245
+ f: o
246
+ }), d = (e.value.style.chart.layout.innerCircle.strokeWidth || 1) * l;
247
+ return {
248
+ d: a,
249
+ stroke: e.value.style.chart.layout.innerCircle.stroke,
250
+ strokeWidth: d
251
+ };
252
+ }
253
+ const Be = v(() => mt(Math.max(0, c.value.radius * 0.8 * e.value.style.chart.layout.innerCircle.radiusRatio)));
254
+ function ue({ cx: t, cy: o, r: a, aRad: l, ax: i, f: d }) {
255
+ const C = [a * Math.cos(l), a * Math.sin(l), 0], [k, f, M] = se(C, i), [$, I, , h] = ne([k, f, M], d);
256
+ return { x: t + $, y: o + I, z: M, s: h };
257
+ }
258
+ function wt({
259
+ cx: t,
260
+ cy: o,
261
+ radius: a,
262
+ innerRatio: l = 0.8,
263
+ count: i = 120,
264
+ startDeg: d = -87,
265
+ axDeg: C = 45,
266
+ f: k = 600,
267
+ activeColor: f,
268
+ inactiveColor: M,
269
+ getActive: $,
270
+ Y: I = 0
271
+ }) {
272
+ const h = C * Math.PI / 180, m = a, A = a * l, x = 2 * Math.PI / i, w = [];
273
+ for (let g = 0; g < i; g += 1) {
274
+ const W = d * Math.PI / 180 + x * g, G = W + x * Math.min(1, e.value.style.chart.layout.wheel.ticks.spacingRatio3d), B = ue({ cx: t, cy: o + I, r: m, aRad: W, ax: h, f: k }), Z = ue({ cx: t, cy: o + I, r: m, aRad: G, ax: h, f: k }), K = ue({ cx: t, cy: o + I, r: A, aRad: G, ax: h, f: k }), J = ue({ cx: t, cy: o + I, r: A, aRad: W, ax: h, f: k }), ce = (B.z + Z.z + J.z + K.z) / 4, Q = ($ ? $(g) : !0) ? e.value.style.chart.layout.wheel.ticks.gradient.show ? te(
275
+ e.value.style.chart.layout.wheel.ticks.activeColor,
276
+ g * (100 / i) / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)
277
+ ) : f : M, be = (() => {
278
+ const ve = m * Math.sin(h) || 1;
279
+ return (ce - -ve) / (2 * ve);
280
+ })(), Ce = Ue(Q, be), ee = `M ${B.x} ${B.y} L ${Z.x} ${Z.y} L ${K.x} ${K.y} L ${J.x} ${J.y} Z`;
281
+ w.push({ i: g, d: ee, fill: Ce, z: ce });
282
+ }
283
+ return w.sort((g, W) => g.z - W.z), w;
284
+ }
285
+ const pe = v(() => {
286
+ if (e.value.layout !== "3d") return null;
287
+ const t = L.value;
288
+ return (o) => wt({
289
+ cx: c.value.centerX,
290
+ cy: c.value.centerY,
291
+ radius: c.value.radius,
292
+ innerRatio: e.value.style.chart.layout.wheel.ticks.sizeRatio,
293
+ count: t,
294
+ startDeg: -90,
295
+ axDeg: e.value.style.chart.layout.wheel.tiltAngle3d,
296
+ f: Math.min(u.value.width, u.value.height) * 1.45,
297
+ activeColor: e.value.style.chart.layout.wheel.ticks.activeColor,
298
+ inactiveColor: e.value.style.chart.layout.wheel.ticks.inactiveColor,
299
+ getActive: (a) => y.value > a * (100 / t),
300
+ Y: o
301
+ });
302
+ });
303
+ function Ee(t) {
304
+ let o = e.value.style.chart.animation.speed;
305
+ const a = Math.abs(t - y.value) / (o * 120);
306
+ function l() {
307
+ y.value < t ? y.value = Math.min(y.value + a, t) : y.value > t && (y.value = Math.max(y.value - a, t)), y.value !== t && requestAnimationFrame(l);
308
+ }
309
+ l();
310
+ }
311
+ const L = v(() => (e.value.debug && e.value.style.chart.layout.wheel.ticks.quantity < 12 && console.warn("VueUiWheel - The min number of ticks is 12"), e.value.debug && e.value.style.chart.layout.wheel.ticks.quantity > 200 && console.warn("VueUiWheel - The max number of ticks is 200"), Math.max(12, Math.min(e.value.style.chart.layout.wheel.ticks.quantity, 200)))), _ = v(() => 100 / L.value), Ye = v(() => {
312
+ const t = [];
313
+ for (let o = 0; o < L.value; o += 1) {
314
+ const a = y.value > o * _.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: l, y: i } = Xe(u.value.size / L.value * o), { x: d, y: C } = Xe(u.value.size / L.value * o, e.value.style.chart.layout.wheel.ticks.sizeRatio);
315
+ t.push({
316
+ x1: l,
317
+ y1: i,
318
+ x2: d,
319
+ y2: C,
320
+ color: e.value.style.chart.layout.wheel.ticks.gradient.show ? te(a, o * _.value / L.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
321
+ });
322
+ }
323
+ return t;
324
+ }), bt = v(() => aa({ series: Ye.value.map((t) => ({
325
+ name: "",
326
+ value: 1,
327
+ color: t.color
328
+ })) }, c.value.centerX, c.value.centerY, c.value.radius, c.value.radius, 1.99999, 2, 1, 360, 105.25, c.value.radius * (1 - e.value.style.chart.layout.wheel.ticks.sizeRatio))), ie = b(!1);
329
+ function Ve(t) {
330
+ ie.value = t, Se.value += 1;
331
+ }
332
+ const re = b(!1);
333
+ function me() {
334
+ re.value = !re.value;
335
+ }
336
+ async function Ct({ scale: t = 2 } = {}) {
337
+ if (!j.value) return;
338
+ const { width: o, height: a } = j.value.getBoundingClientRect(), l = o / a, { imageUri: i, base64: d } = await ga({ domElement: j.value, base64: !0, img: !0, scale: t });
339
+ return {
340
+ imageUri: i,
341
+ base64: d,
342
+ title: e.value.style.chart.title.text,
343
+ width: o,
344
+ height: a,
345
+ aspectRatio: l
346
+ };
347
+ }
348
+ const xt = v(() => e.value.style.chart.layout.wheel.ticks.strokeWidth * 2), Mt = v(() => e.value.style.chart.layout.wheel.ticks.strokeWidth * 2 * 0.75), $t = v(() => e.value.style.chart.layout.wheel.ticks.strokeWidth), V = v(() => Math.max(1, Math.min(20, e.value.style.chart.layout.wheel.ticks.depth3d))), At = v(() => e.value.style.chart.backgroundColor), It = v(() => e.value.style.chart.title), { exportSvg: St, getSvg: Pt } = ha({
349
+ svg: ye,
350
+ title: It,
351
+ backgroundColor: At,
352
+ stretchTitle: !0
353
+ });
354
+ async function Ge({ isCb: t }) {
355
+ le.value = !0, await Jt();
356
+ try {
357
+ if (t) {
358
+ const { blob: o, url: a, text: l, dataUrl: i } = await Pt();
359
+ await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: o, url: a, text: l, dataUrl: i }));
360
+ } else
361
+ await Promise.resolve(St());
362
+ } finally {
363
+ le.value = !1;
364
+ }
365
+ }
366
+ function _t(t) {
367
+ if (t?.stage === "start") {
368
+ ae.value = !0;
369
+ return;
370
+ }
371
+ if (t?.stage === "end") {
372
+ ae.value = !1;
373
+ return;
374
+ }
375
+ Fe();
376
+ }
377
+ async function He() {
378
+ if (ht("copyAlt", {
379
+ config: e.value,
380
+ dataset: E.value
381
+ }), !e.value.userOptions.callbacks.altCopy) {
382
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
383
+ return;
384
+ }
385
+ await Promise.resolve(e.value.userOptions.callbacks.altCopy({
386
+ config: e.value,
387
+ dataset: E.value
388
+ }));
389
+ }
390
+ const qe = v(() => `${H.value}-title`), Ze = v(() => `${H.value}-desc`), we = v(() => la(
391
+ e.value.style.chart.layout.percentage.formatter,
392
+ tt(y.value),
393
+ oa({
394
+ v: tt(y.value),
395
+ s: "%",
396
+ r: e.value.style.chart.layout.percentage.rounding
397
+ })
398
+ )), Ot = v(() => e.value.style.chart.title.text || ""), Rt = v(() => oe.value ? "..." : `${we.value}`);
399
+ return ot({
400
+ getImage: Ct,
401
+ generatePdf: We,
402
+ generateImage: Fe,
403
+ generateSvg: Ge,
404
+ toggleAnnotator: me,
405
+ toggleFullscreen: Ve,
406
+ copyAlt: He
407
+ }), (t, o) => (s(), n("div", {
408
+ class: F(["vue-ui-wheel", { "vue-data-ui-component": !0, "vue-ui-wheel-3d-wrap": e.value.layout === "3d" }]),
409
+ ref_key: "wheelChart",
410
+ ref: j,
411
+ id: H.value,
412
+ style: Me(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
413
+ onMouseenter: o[0] || (o[0] = () => r(Te)(!0)),
414
+ onMouseleave: o[1] || (o[1] = () => r(Te)(!1))
415
+ }, [
416
+ e.value.userOptions.buttons.annotator ? (s(), he(r(nt), {
417
+ key: 0,
418
+ svgRef: r(ye),
419
+ backgroundColor: e.value.style.chart.backgroundColor,
420
+ color: e.value.style.chart.color,
421
+ active: re.value,
422
+ isCursorPointer: ze.value,
423
+ onClose: me
424
+ }, {
425
+ "annotator-action-close": S(() => [
426
+ p(t.$slots, "annotator-action-close", {}, void 0, !0)
427
+ ]),
428
+ "annotator-action-color": S(({ color: a }) => [
429
+ p(t.$slots, "annotator-action-color", O(R({ color: a })), void 0, !0)
430
+ ]),
431
+ "annotator-action-draw": S(({ mode: a }) => [
432
+ p(t.$slots, "annotator-action-draw", O(R({ mode: a })), void 0, !0)
433
+ ]),
434
+ "annotator-action-undo": S(({ disabled: a }) => [
435
+ p(t.$slots, "annotator-action-undo", O(R({ disabled: a })), void 0, !0)
436
+ ]),
437
+ "annotator-action-redo": S(({ disabled: a }) => [
438
+ p(t.$slots, "annotator-action-redo", O(R({ disabled: a })), void 0, !0)
439
+ ]),
440
+ "annotator-action-delete": S(({ disabled: a }) => [
441
+ p(t.$slots, "annotator-action-delete", O(R({ disabled: a })), void 0, !0)
442
+ ]),
443
+ _: 3
444
+ }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : z("", !0),
445
+ ft.value ? (s(), n("div", {
446
+ key: 1,
447
+ ref_key: "noTitle",
448
+ ref: Oe,
449
+ class: "vue-data-ui-no-title-space",
450
+ style: "height:36px; width: 100%;background:transparent"
451
+ }, null, 512)) : z("", !0),
452
+ e.value.style.chart.title.text ? (s(), n("div", {
453
+ key: 2,
454
+ ref_key: "chartTitle",
455
+ ref: Pe,
456
+ style: "width:100%;background:transparent;padding-bottom:12px"
457
+ }, [
458
+ (s(), he(pa, {
459
+ key: `title_${Re.value}`,
460
+ config: {
461
+ title: {
462
+ cy: "wheel-title",
463
+ ...e.value.style.chart.title
464
+ },
465
+ subtitle: {
466
+ cy: "wheel-subtitle",
467
+ ...e.value.style.chart.title.subtitle
468
+ }
469
+ }
470
+ }, null, 8, ["config"]))
471
+ ], 512)) : z("", !0),
472
+ e.value.userOptions.show && dt.value && (r(De) || r(de)) ? (s(), he(r(ut), {
473
+ ref_key: "details",
474
+ ref: yt,
475
+ key: `user_options_${Se.value}`,
476
+ backgroundColor: e.value.style.chart.backgroundColor,
477
+ color: e.value.style.chart.color,
478
+ isPrinting: r(fe),
479
+ isImaging: r(ge),
480
+ uid: H.value,
481
+ hasPdf: e.value.userOptions.buttons.pdf,
482
+ hasImg: e.value.userOptions.buttons.img,
483
+ hasSvg: e.value.userOptions.buttons.svg,
484
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
485
+ hasAltCopy: e.value.userOptions.buttons.altCopy,
486
+ hasXls: !1,
487
+ isFullscreen: ie.value,
488
+ position: e.value.userOptions.position,
489
+ titles: { ...e.value.userOptions.buttonTitles },
490
+ hasAnnotator: e.value.userOptions.buttons.annotator,
491
+ isAnnotation: re.value,
492
+ chartElement: j.value,
493
+ callbacks: e.value.userOptions.callbacks,
494
+ printScale: e.value.userOptions.print.scale,
495
+ isCursorPointer: ze.value,
496
+ onToggleFullscreen: Ve,
497
+ onGeneratePdf: r(We),
498
+ onGenerateImage: _t,
499
+ onGenerateSvg: Ge,
500
+ onToggleAnnotator: me,
501
+ onCopyAlt: He,
502
+ style: Me({
503
+ visibility: r(De) ? r(de) ? "visible" : "hidden" : "visible"
504
+ })
505
+ }, Zt({ _: 2 }, [
506
+ t.$slots.menuIcon ? {
507
+ name: "menuIcon",
508
+ fn: S(({ isOpen: a, color: l }) => [
509
+ p(t.$slots, "menuIcon", O(R({ isOpen: a, color: l })), void 0, !0)
510
+ ]),
511
+ key: "0"
512
+ } : void 0,
513
+ t.$slots.optionPdf ? {
514
+ name: "optionPdf",
515
+ fn: S(() => [
516
+ p(t.$slots, "optionPdf", {}, void 0, !0)
517
+ ]),
518
+ key: "1"
519
+ } : void 0,
520
+ t.$slots.optionImg ? {
521
+ name: "optionImg",
522
+ fn: S(() => [
523
+ p(t.$slots, "optionImg", {}, void 0, !0)
524
+ ]),
525
+ key: "2"
526
+ } : void 0,
527
+ t.$slots.optionSvg ? {
528
+ name: "optionSvg",
529
+ fn: S(() => [
530
+ p(t.$slots, "optionSvg", {}, void 0, !0)
531
+ ]),
532
+ key: "3"
533
+ } : void 0,
534
+ t.$slots.optionFullscreen ? {
535
+ name: "optionFullscreen",
536
+ fn: S(({ toggleFullscreen: a, isFullscreen: l }) => [
537
+ p(t.$slots, "optionFullscreen", O(R({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
538
+ ]),
539
+ key: "4"
540
+ } : void 0,
541
+ t.$slots.optionAnnotator ? {
542
+ name: "optionAnnotator",
543
+ fn: S(({ toggleAnnotator: a, isAnnotator: l }) => [
544
+ p(t.$slots, "optionAnnotator", O(R({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
545
+ ]),
546
+ key: "5"
547
+ } : void 0,
548
+ t.$slots.optionAltCopy ? {
549
+ name: "optionAltCopy",
550
+ fn: S(({ altCopy: a }) => [
551
+ p(t.$slots, "optionAltCopy", O(R({ altCopy: a })), void 0, !0)
552
+ ]),
553
+ key: "6"
554
+ } : void 0
555
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "hasAltCopy", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "callbacks", "printScale", "isCursorPointer", "onGeneratePdf", "style"])) : z("", !0),
556
+ (s(), n("svg", {
557
+ ref_key: "svgRef",
558
+ ref: ye,
559
+ xmlns: r(sa),
560
+ class: F({ "vue-data-ui-fullscreen--on": ie.value, "vue-data-ui-fulscreen--off": !ie.value, "vue-ui-wheel-3d-svg": e.value.layout === "3d" }),
561
+ viewBox: e.value.layout === "3d" && !e.value.responsive ? `${U.value?.x - 10} ${U.value?.y ?? 0} ${U.value?.w + 20} ${U.value?.h ?? Math.max(10, u.value.height)}` : `0 0 ${Math.max(10, u.value.width)} ${Math.max(10, u.value.height)}`,
562
+ style: Me(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`),
563
+ role: "img",
564
+ "aria-labelledby": qe.value,
565
+ "aria-describedby": Ze.value
566
+ }, [
567
+ $e("title", { id: qe.value }, Ae(Ot.value), 9, xa),
568
+ $e("desc", { id: Ze.value }, Ae(Rt.value), 9, Ma),
569
+ Kt(r(it)),
570
+ t.$slots["chart-background"] ? (s(), n("foreignObject", {
571
+ key: 0,
572
+ x: e.value.layout === "3d" && !e.value.responsive ? U.value?.x - 10 : 0,
573
+ y: e.value.layout === "3d" && !e.value.responsive ? U.value?.y ?? 0 : 0,
574
+ width: e.value.layout === "3d" && !e.value.responsive ? U.value?.w + 20 : Math.max(10, u.value.width),
575
+ height: e.value.layout === "3d" && !e.value.responsive ? U.value?.h ?? Math.max(10, u.value.height) : Math.max(10, u.value.height),
576
+ style: {
577
+ pointerEvents: "none"
578
+ }
579
+ }, [
580
+ p(t.$slots, "chart-background", {}, void 0, !0)
581
+ ], 8, $a)) : z("", !0),
582
+ e.value.layout === "3d" && Be.value ? (s(), n("path", {
583
+ key: 1,
584
+ class: "vue-ui-wheel-inner-circle",
585
+ d: Be.value.d,
586
+ stroke: e.value.style.chart.layout.innerCircle.stroke,
587
+ "stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
588
+ fill: "none"
589
+ }, null, 8, Aa)) : e.value.style.chart.layout.innerCircle.show ? (s(), n("circle", {
590
+ key: 2,
591
+ class: "vue-ui-wheel-inner-circle",
592
+ cx: c.value.centerX,
593
+ cy: c.value.centerY,
594
+ r: Math.max(0, c.value.radius * e.value.style.chart.layout.innerCircle.radiusRatio * 0.8),
595
+ stroke: e.value.style.chart.layout.innerCircle.stroke,
596
+ "stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
597
+ fill: "none"
598
+ }, null, 8, Ia)) : z("", !0),
599
+ e.value.layout === "3d" ? (s(), n(P, { key: 3 }, [
600
+ e.value.style.chart.layout.wheel.ticks.type === "classic" ? (s(), n("g", Sa, [
601
+ (s(!0), n(P, null, X(V.value, (a) => (s(), n("g", null, [
602
+ (s(!0), n(P, null, X(Le.value || [], (l) => (s(), n("line", {
603
+ key: l.i,
604
+ x1: l.x1,
605
+ y1: l.y1 - a,
606
+ x2: l.x2,
607
+ y2: l.y2 - a,
608
+ stroke: r(at)(l.color, 0.25 * a / 5),
609
+ "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
610
+ "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
611
+ class: F({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && !r(T) && l.i * _.value <= y.value })
612
+ }, null, 10, Pa))), 128))
613
+ ]))), 256)),
614
+ (s(!0), n(P, null, X(Le.value || [], (a) => (s(), n("line", {
615
+ key: a.i,
616
+ x1: a.x1,
617
+ y1: a.y1 - V.value,
618
+ x2: a.x2,
619
+ y2: a.y2 - V.value,
620
+ stroke: a.color,
621
+ "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
622
+ "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
623
+ class: F({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && !r(T) && a.i * _.value <= y.value })
624
+ }, null, 10, _a))), 128))
625
+ ])) : (s(), n("g", Oa, [
626
+ (s(!0), n(P, null, X(V.value, (a) => (s(), n("g", null, [
627
+ (s(!0), n(P, null, X(pe.value(-a) || [], (l) => (s(), n("path", {
628
+ key: l.i,
629
+ d: l.d,
630
+ fill: e.value.style.chart.layout.wheel.ticks.inactiveColor,
631
+ stroke: e.value.style.chart.layout.wheel.ticks.stroke,
632
+ "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth,
633
+ "stroke-linecap": "round",
634
+ "stroke-linejoin": "round",
635
+ class: "vue-ui-wheel-tick"
636
+ }, null, 8, Ra))), 128)),
637
+ (s(!0), n(P, null, X(pe.value(-a) || [], (l) => (s(), n("path", {
638
+ key: l.i,
639
+ d: l.d,
640
+ fill: r(at)(l.fill, 0.5 * a / V.value),
641
+ stroke: e.value.style.chart.layout.wheel.ticks.stroke,
642
+ "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth,
643
+ "stroke-linecap": "round",
644
+ "stroke-linejoin": "round",
645
+ class: F({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated-3d": e.value.style.chart.animation.use && !r(T) && l.i * _.value <= y.value })
646
+ }, null, 10, za))), 128))
647
+ ]))), 256)),
648
+ $e("g", null, [
649
+ (s(!0), n(P, null, X(pe.value(-V.value) || [], (a) => (s(), n("path", {
650
+ key: a.i,
651
+ d: a.d,
652
+ fill: a.fill,
653
+ stroke: e.value.style.chart.layout.wheel.ticks.stroke,
654
+ "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth,
655
+ "stroke-linecap": "round",
656
+ "stroke-linejoin": "round",
657
+ class: F({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated-3d": e.value.style.chart.animation.use && !r(T) && a.i * _.value <= y.value })
658
+ }, null, 10, Ta))), 128))
659
+ ])
660
+ ]))
661
+ ], 64)) : (s(), n(P, { key: 4 }, [
662
+ e.value.style.chart.layout.wheel.ticks.type === "classic" ? (s(!0), n(P, { key: 0 }, X(Ye.value, (a, l) => (s(), n("line", {
663
+ x1: a.x1,
664
+ x2: a.x2,
665
+ y1: a.y1,
666
+ y2: a.y2,
667
+ stroke: a.color,
668
+ "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
669
+ "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
670
+ class: F({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && !r(T) && l * _.value <= y.value })
671
+ }, null, 10, Da))), 256)) : (s(!0), n(P, { key: 1 }, X(bt.value, (a, l) => (s(), n("path", {
672
+ d: a.arcSlice,
673
+ fill: a.color,
674
+ class: F({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && !r(T) && l * _.value <= y.value }),
675
+ stroke: e.value.style.chart.layout.wheel.ticks.stroke,
676
+ "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth
677
+ }, null, 10, Wa))), 256))
678
+ ], 64)),
679
+ e.value.style.chart.layout.percentage.show ? (s(), n("g", {
680
+ key: 5,
681
+ role: "status",
682
+ "aria-live": "polite",
683
+ "aria-label": r(oe) ? "..." : we.value
684
+ }, [
685
+ r(oe) ? (s(), n("rect", {
686
+ key: 0,
687
+ x: c.value.centerX - 40,
688
+ y: c.value.centerY - q.value / 2,
689
+ width: 80,
690
+ height: q.value,
691
+ fill: "#6A6A6A80",
692
+ rx: "3"
693
+ }, null, 8, Xa)) : (s(), n("text", {
694
+ key: 1,
695
+ "aria-hidden": "true",
696
+ x: c.value.centerX + e.value.style.chart.layout.percentage.offsetX,
697
+ y: c.value.centerY + q.value / 3 + e.value.style.chart.layout.percentage.offsetY,
698
+ "font-size": q.value,
699
+ fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? r(te)(e.value.style.chart.layout.wheel.ticks.activeColor, y.value / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.wheel.ticks.activeColor,
700
+ "text-anchor": "middle",
701
+ "font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
702
+ style: { "font-variant-numeric": "tabluar-nums" },
703
+ stroke: e.value.style.chart.layout.percentage.stroke,
704
+ "stroke-width": e.value.style.chart.layout.percentage.strokeWidth,
705
+ "stroke-linecap": "round",
706
+ "stroke-linejoin": "round",
707
+ "paint-order": "stroke fill",
708
+ class: F({ "vue-ui-wheel-label": e.value.layout === "3d" })
709
+ }, Ae(we.value), 11, Na))
710
+ ], 8, Fa)) : z("", !0),
711
+ p(t.$slots, "svg", {
712
+ svg: {
713
+ ...u.value,
714
+ isPrintingImg: r(fe) | r(ge) | ae.value,
715
+ isPrintingSvg: le.value
716
+ }
717
+ }, void 0, !0)
718
+ ], 14, Ca)),
719
+ t.$slots.watermark ? (s(), n("div", Ua, [
720
+ p(t.$slots, "watermark", O(R({ isPrinting: r(fe) || r(ge) || ae.value || le.value })), void 0, !0)
721
+ ])) : z("", !0),
722
+ t.$slots.source ? (s(), n("div", {
723
+ key: 5,
724
+ ref_key: "source",
725
+ ref: _e,
726
+ dir: "auto"
727
+ }, [
728
+ p(t.$slots, "source", {}, void 0, !0)
729
+ ], 512)) : z("", !0),
730
+ p(t.$slots, "skeleton", {}, () => [
731
+ r(oe) ? (s(), he(ca, { key: 0 })) : z("", !0)
732
+ ], !0)
733
+ ], 46, ba));
734
+ }
735
+ }, sl = /* @__PURE__ */ wa(La, [["__scopeId", "data-v-b75ffa32"]]);
736
+ export {
737
+ sl as default
738
+ };