vue-data-ui 3.23.1 → 3.23.2

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 (171) hide show
  1. package/dist/{PackageVersion-D6d8SCp9.js → PackageVersion-DXU7nRr9.js} +1 -1
  2. package/dist/components/vue-ui-3d-bar.js +1 -1
  3. package/dist/components/vue-ui-accordion.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-annotator.js +1 -1
  6. package/dist/components/vue-ui-bullet.js +1 -1
  7. package/dist/components/vue-ui-bump.js +1 -1
  8. package/dist/components/vue-ui-candlestick.js +1 -1
  9. package/dist/components/vue-ui-carousel-table.js +1 -1
  10. package/dist/components/vue-ui-chestnut.js +1 -1
  11. package/dist/components/vue-ui-chord.js +1 -1
  12. package/dist/components/vue-ui-circle-pack.js +1 -1
  13. package/dist/components/vue-ui-cursor.js +1 -1
  14. package/dist/components/vue-ui-dag.js +1 -1
  15. package/dist/components/vue-ui-dashboard.js +1 -1
  16. package/dist/components/vue-ui-digits.js +1 -1
  17. package/dist/components/vue-ui-donut-evolution.js +1 -1
  18. package/dist/components/vue-ui-donut.js +1 -1
  19. package/dist/components/vue-ui-dumbbell.js +1 -1
  20. package/dist/components/vue-ui-flow.js +1 -1
  21. package/dist/components/vue-ui-funnel.js +1 -1
  22. package/dist/components/vue-ui-galaxy.js +1 -1
  23. package/dist/components/vue-ui-gauge.js +1 -1
  24. package/dist/components/vue-ui-geo.js +1 -1
  25. package/dist/components/vue-ui-gizmo.js +1 -1
  26. package/dist/components/vue-ui-heatmap.js +1 -1
  27. package/dist/components/vue-ui-hill.js +1 -1
  28. package/dist/components/vue-ui-history-plot.js +1 -1
  29. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  30. package/dist/components/vue-ui-kpi.js +1 -1
  31. package/dist/components/vue-ui-mini-loader.js +1 -1
  32. package/dist/components/vue-ui-molecule.js +1 -1
  33. package/dist/components/vue-ui-mood-radar.js +1 -1
  34. package/dist/components/vue-ui-nested-donuts.js +1 -1
  35. package/dist/components/vue-ui-onion.js +1 -1
  36. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  37. package/dist/components/vue-ui-quadrant.js +1 -1
  38. package/dist/components/vue-ui-quick-chart.js +1 -1
  39. package/dist/components/vue-ui-radar.js +1 -1
  40. package/dist/components/vue-ui-rating.js +1 -1
  41. package/dist/components/vue-ui-relation-circle.js +1 -1
  42. package/dist/components/vue-ui-ridgeline.js +1 -1
  43. package/dist/components/vue-ui-rings.js +1 -1
  44. package/dist/components/vue-ui-scatter.js +1 -1
  45. package/dist/components/vue-ui-skeleton.js +1 -1
  46. package/dist/components/vue-ui-smiley.js +1 -1
  47. package/dist/components/vue-ui-spark-trend.js +1 -1
  48. package/dist/components/vue-ui-sparkbar.js +1 -1
  49. package/dist/components/vue-ui-sparkgauge.js +1 -1
  50. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  51. package/dist/components/vue-ui-sparkline.js +1 -1
  52. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  53. package/dist/components/vue-ui-stackbar.js +1 -1
  54. package/dist/components/vue-ui-stackline.js +1 -1
  55. package/dist/components/vue-ui-strip-plot.js +1 -1
  56. package/dist/components/vue-ui-table-heatmap.js +1 -1
  57. package/dist/components/vue-ui-table-sparkline.js +1 -1
  58. package/dist/components/vue-ui-table.js +1 -1
  59. package/dist/components/vue-ui-thermometer.js +1 -1
  60. package/dist/components/vue-ui-timer.js +1 -1
  61. package/dist/components/vue-ui-tiremarks.js +1 -1
  62. package/dist/components/vue-ui-treemap.js +1 -1
  63. package/dist/components/vue-ui-vertical-bar.js +1 -1
  64. package/dist/components/vue-ui-waffle.js +1 -1
  65. package/dist/components/vue-ui-wheel.js +1 -1
  66. package/dist/components/vue-ui-word-cloud.js +1 -1
  67. package/dist/components/vue-ui-world.js +1 -1
  68. package/dist/components/vue-ui-xy-canvas.js +1 -1
  69. package/dist/components/vue-ui-xy.js +1 -1
  70. package/dist/{package-KvlL5CqE.js → package-bsfpO6y3.js} +1 -1
  71. package/dist/{render-common-oDYGTc5P.js → render-common-C0PEe9so.js} +1 -1
  72. package/dist/ssr/vue-ui-donut.js +1 -1
  73. package/dist/ssr/vue-ui-xy.js +1 -1
  74. package/dist/ssr.js +2 -2
  75. package/dist/style.css +1 -1
  76. package/dist/types/vue-data-ui.d.ts +6 -0
  77. package/dist/{useSvgExport-DH-FfcqQ.js → useChartExport-DNiwdPmb.js} +47 -1
  78. package/dist/{useConfig-D3scuR88.js → useConfig-DlNpz6P8.js} +6 -0
  79. package/dist/{useObjectBindings-Brg8mm5J.js → useObjectBindings-BeWS5v0i.js} +1 -1
  80. package/dist/utils.js +1 -1
  81. package/dist/{vue-data-ui-DGWDPCwC.js → vue-data-ui-BNxtW8pK.js} +68 -68
  82. package/dist/vue-data-ui.js +69 -69
  83. package/dist/{vue-ui-3d-bar-C_Su9fve.js → vue-ui-3d-bar-BYumVxZG.js} +164 -182
  84. package/dist/{vue-ui-accordion-BxGriZik.js → vue-ui-accordion-DegI2lzR.js} +1 -1
  85. package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
  86. package/dist/{vue-ui-annotator-CCtnM8Rv.js → vue-ui-annotator-DfG79D4r.js} +2 -2
  87. package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
  88. package/dist/{vue-ui-bump-CcdzJZ9n.js → vue-ui-bump-mKysp0KO.js} +213 -263
  89. package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
  90. package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
  91. package/dist/vue-ui-chestnut-Dpklo-VE.js +2014 -0
  92. package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
  93. package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
  94. package/dist/{vue-ui-cursor-BqHr0n1Z.js → vue-ui-cursor-DIt7vOwc.js} +2 -2
  95. package/dist/{vue-ui-dag-jMLVoQkb.js → vue-ui-dag-Cl0WdSLb.js} +492 -515
  96. package/dist/{vue-ui-dashboard-DVAUFETR.js → vue-ui-dashboard-BwxRLR4E.js} +65 -65
  97. package/dist/{vue-ui-digits-Dy4gG6qm.js → vue-ui-digits-Bp1OH_t1.js} +2 -2
  98. package/dist/{vue-ui-donut-C0cWRLbU.js → vue-ui-donut-BZUT7QYt.js} +333 -359
  99. package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
  100. package/dist/{vue-ui-donut-CYpxGBhl.js → vue-ui-donut-y6tOAVyY.js} +2 -2
  101. package/dist/{vue-ui-dumbbell-DxVbRjKR.js → vue-ui-dumbbell-BtKZcAOV.js} +378 -428
  102. package/dist/{vue-ui-flow-DWaZF4FS.js → vue-ui-flow-BF_cndsv.js} +182 -207
  103. package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
  104. package/dist/{vue-ui-galaxy-CWBP9oH9.js → vue-ui-galaxy-ClWaSOmM.js} +308 -334
  105. package/dist/vue-ui-gauge-CJstpakj.js +932 -0
  106. package/dist/{vue-ui-geo-ZA7CBy8f.js → vue-ui-geo-B1tOD3HC.js} +362 -413
  107. package/dist/{vue-ui-gizmo-SQCou0bQ.js → vue-ui-gizmo-foatosAv.js} +2 -2
  108. package/dist/{vue-ui-heatmap-CHd9gs_p.js → vue-ui-heatmap-By33A9dZ.js} +292 -315
  109. package/dist/vue-ui-hill-ewqkK9s5.js +1745 -0
  110. package/dist/{vue-ui-history-plot-BwnlC1mx.js → vue-ui-history-plot-FEIwXlsz.js} +258 -283
  111. package/dist/{vue-ui-horizontal-bar-BUar2HUH.js → vue-ui-horizontal-bar-D51sAeVu.js} +273 -298
  112. package/dist/{vue-ui-kpi-BF_9WWoo.js → vue-ui-kpi-y3EkgqJQ.js} +2 -2
  113. package/dist/{vue-ui-mini-loader-CvfukjXi.js → vue-ui-mini-loader-CtTewZJG.js} +1 -1
  114. package/dist/vue-ui-molecule-paWHp18h.js +935 -0
  115. package/dist/{vue-ui-mood-radar-_zpbmvJs.js → vue-ui-mood-radar-wBRTZI5k.js} +337 -386
  116. package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
  117. package/dist/{vue-ui-onion-CB5RYIy5.js → vue-ui-onion-B2Q2n55x.js} +257 -282
  118. package/dist/{vue-ui-parallel-coordinate-plot-BUwt-apg.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +190 -215
  119. package/dist/{vue-ui-quadrant-CoROD3er.js → vue-ui-quadrant-DOPuejDE.js} +213 -243
  120. package/dist/{vue-ui-quick-chart-BcH7eY4-.js → vue-ui-quick-chart-CgHX9njq.js} +52 -61
  121. package/dist/{vue-ui-radar-DGbaXGme.js → vue-ui-radar-BLvG-_zE.js} +343 -370
  122. package/dist/{vue-ui-rating-Bo3zD3yW.js → vue-ui-rating-BDVSVFA0.js} +8 -9
  123. package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
  124. package/dist/{vue-ui-ridgeline-BCaGcyfk.js → vue-ui-ridgeline-BbrnXvBo.js} +267 -317
  125. package/dist/{vue-ui-rings-BJUBn8_b.js → vue-ui-rings-B3cKfMWy.js} +407 -432
  126. package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
  127. package/dist/{vue-ui-skeleton-EeJcGbCo.js → vue-ui-skeleton-DwKxd7fk.js} +2 -2
  128. package/dist/{vue-ui-smiley-D0gibt5c.js → vue-ui-smiley-5iHJeTPc.js} +62 -63
  129. package/dist/{vue-ui-spark-trend-BRoQ7JpQ.js → vue-ui-spark-trend-MpvrV5Wd.js} +2 -2
  130. package/dist/{vue-ui-sparkbar-DFp2k7-7.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
  131. package/dist/{vue-ui-sparkgauge-D0Bq85Hs.js → vue-ui-sparkgauge-B-BYVv4p.js} +2 -2
  132. package/dist/{vue-ui-sparkhistogram-BPln7v63.js → vue-ui-sparkhistogram-D7D4NHdi.js} +7 -8
  133. package/dist/{vue-ui-sparkline-C6Q45Dqp.js → vue-ui-sparkline-RbeYtLWp.js} +6 -7
  134. package/dist/{vue-ui-sparkstackbar-CjK4bcQg.js → vue-ui-sparkstackbar-ohN7mtbg.js} +191 -195
  135. package/dist/{vue-ui-stackbar-Ca8EPf3e.js → vue-ui-stackbar-D2bpvQYt.js} +524 -549
  136. package/dist/{vue-ui-stackline-Pz5WWlWT.js → vue-ui-stackline-Bo1oE8yq.js} +570 -595
  137. package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
  138. package/dist/{vue-ui-table-Bjg-ujJu.js → vue-ui-table-3PPiJPV6.js} +3 -3
  139. package/dist/{vue-ui-table-heatmap-ljeYW8Wc.js → vue-ui-table-heatmap-D1bbPXKG.js} +48 -49
  140. package/dist/{vue-ui-table-sparkline-iRFmtK5S.js → vue-ui-table-sparkline-l1cUX3ny.js} +7 -9
  141. package/dist/{vue-ui-thermometer-D8uiOaeA.js → vue-ui-thermometer-DltAELO7.js} +240 -261
  142. package/dist/{vue-ui-timer-CYw983oL.js → vue-ui-timer-DWNdx47q.js} +2 -2
  143. package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
  144. package/dist/{vue-ui-treemap-h4VbnqPA.js → vue-ui-treemap-DjNlnOG5.js} +498 -524
  145. package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
  146. package/dist/{vue-ui-wheel-tLvJadk5.js → vue-ui-wheel-DrefGLos.js} +188 -209
  147. package/dist/{vue-ui-word-cloud-BjpGSsod.js → vue-ui-word-cloud-CQZ8AyOi.js} +375 -398
  148. package/dist/{vue-ui-world-B4fCS3jN.js → vue-ui-world-Y7a3VEjq.js} +428 -453
  149. package/dist/{vue-ui-xy-7ZT9IRD8.js → vue-ui-xy-CJcdttNL.js} +857 -883
  150. package/dist/{vue-ui-xy-gyNS0yH0.js → vue-ui-xy-DPxtkYGc.js} +2 -2
  151. package/dist/{vue-ui-xy-canvas-BnLEwBpi.js → vue-ui-xy-canvas-1rbwMA1m.js} +13 -12
  152. package/package.json +1 -1
  153. package/dist/Slicer-CIk57nL4.js +0 -1163
  154. package/dist/vue-ui-age-pyramid-D4k1MkAL.js +0 -1264
  155. package/dist/vue-ui-bullet-DLZr2Uk8.js +0 -724
  156. package/dist/vue-ui-candlestick-EEEt7ORC.js +0 -1866
  157. package/dist/vue-ui-carousel-table-BicIpNAD.js +0 -463
  158. package/dist/vue-ui-chestnut-BI7mC5dd.js +0 -2068
  159. package/dist/vue-ui-chord-DXaq8ZMu.js +0 -1396
  160. package/dist/vue-ui-circle-pack-XHJBMG51.js +0 -1659
  161. package/dist/vue-ui-donut-evolution-DwR47A2r.js +0 -1603
  162. package/dist/vue-ui-funnel-Bmpx5GHR.js +0 -797
  163. package/dist/vue-ui-gauge-ByE_txav.js +0 -953
  164. package/dist/vue-ui-hill-BT183G-_.js +0 -1768
  165. package/dist/vue-ui-molecule-Bi2CKHer.js +0 -958
  166. package/dist/vue-ui-nested-donuts-qHZAJ70u.js +0 -1528
  167. package/dist/vue-ui-relation-circle-DaU1eTsG.js +0 -925
  168. package/dist/vue-ui-scatter-Pcft1bUt.js +0 -2428
  169. package/dist/vue-ui-strip-plot-Dw4MGDSO.js +0 -1757
  170. package/dist/vue-ui-tiremarks-CekiW2Ru.js +0 -559
  171. package/dist/vue-ui-waffle-cu0w_s6L.js +0 -1412
@@ -1,43 +1,43 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
2
  import { Jt as t, Ot as n, Vt as r, X as i, b as a, i as o, jt as s, kt as c, q as l, t as u, tt as d } from "./lib-Bttd6u5E.js";
3
3
  import { n as f, t as p } from "./useHints-Dq_w2E8B.js";
4
- import { t as m } from "./useConfig-D3scuR88.js";
4
+ import { t as m } from "./useConfig-DlNpz6P8.js";
5
5
  import { t as h } from "./usePrinter-DN5bYhTG.js";
6
6
  import { n as g, t as _ } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as v } from "./useSvgExport-DH-FfcqQ.js";
8
- import { t as y } from "./useNestedProp-vPNvh7rV.js";
9
- import { t as b } from "./useThemeCheck-C43Tcqmk.js";
7
+ import { t as v } from "./useNestedProp-vPNvh7rV.js";
8
+ import { t as y } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as b } from "./useChartExport-DNiwdPmb.js";
10
10
  import { t as x } from "./img-Bnokohej.js";
11
- import { n as S } from "./Title-BE3qg9xl.js";
12
- import { t as ee } from "./_plugin-vue_export-helper-B3ysoDQm.js";
11
+ import { n as ee } from "./Title-BE3qg9xl.js";
12
+ import { t as S } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
13
  import { l as C, t as te } from "./useResponsive-ZtArZtUf.js";
14
14
  import { t as ne } from "./useUserOptionState-DK-_1ddE.js";
15
15
  import { t as re } from "./useChartAccessibility-DYqac8yF.js";
16
16
  import { t as ie } from "./usePrefersMotion-BC-CsqR1.js";
17
17
  import { t as ae } from "./vue_ui_wheel-DZ_nR--t.js";
18
- import { Fragment as w, computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as oe, createSlots as se, createVNode as ce, defineAsyncComponent as le, guardReactiveProps as k, nextTick as ue, normalizeClass as A, normalizeProps as j, normalizeStyle as de, onBeforeUnmount as fe, onMounted as pe, openBlock as M, ref as N, renderList as P, renderSlot as F, shallowRef as me, toDisplayString as he, toRefs as ge, unref as I, useCssVars as _e, watch as ve, withCtx as L } from "vue";
18
+ import { Fragment as w, computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as oe, createSlots as se, createVNode as ce, defineAsyncComponent as le, guardReactiveProps as k, normalizeClass as A, normalizeProps as j, normalizeStyle as ue, onBeforeUnmount as de, onMounted as fe, openBlock as M, ref as N, renderList as P, renderSlot as F, shallowRef as pe, toDisplayString as me, toRefs as he, unref as I, useCssVars as ge, watch as _e, withCtx as L } from "vue";
19
19
  //#region src/components/vue-ui-wheel.vue
20
- var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
20
+ var ve = /* @__PURE__ */ e({ default: () => ze }), ye = ["id"], be = [
21
21
  "xmlns",
22
22
  "viewBox",
23
23
  "aria-labelledby",
24
24
  "aria-describedby"
25
- ], Se = ["id"], Ce = ["id"], we = [
25
+ ], xe = ["id"], Se = ["id"], Ce = [
26
26
  "x",
27
27
  "y",
28
28
  "width",
29
29
  "height"
30
- ], Te = [
30
+ ], we = [
31
31
  "d",
32
32
  "stroke",
33
33
  "stroke-width"
34
- ], Ee = [
34
+ ], Te = [
35
35
  "cx",
36
36
  "cy",
37
37
  "r",
38
38
  "stroke",
39
39
  "stroke-width"
40
- ], De = { key: 0 }, Oe = [
40
+ ], Ee = { key: 0 }, De = [
41
41
  "x1",
42
42
  "y1",
43
43
  "x2",
@@ -45,7 +45,7 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
45
45
  "stroke",
46
46
  "stroke-width",
47
47
  "stroke-linecap"
48
- ], ke = [
48
+ ], Oe = [
49
49
  "x1",
50
50
  "y1",
51
51
  "x2",
@@ -53,22 +53,22 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
53
53
  "stroke",
54
54
  "stroke-width",
55
55
  "stroke-linecap"
56
- ], Ae = { key: 1 }, je = [
56
+ ], ke = { key: 1 }, Ae = [
57
57
  "d",
58
58
  "fill",
59
59
  "stroke",
60
60
  "stroke-width"
61
- ], Me = [
61
+ ], je = [
62
62
  "d",
63
63
  "fill",
64
64
  "stroke",
65
65
  "stroke-width"
66
- ], Ne = [
66
+ ], Me = [
67
67
  "d",
68
68
  "fill",
69
69
  "stroke",
70
70
  "stroke-width"
71
- ], Pe = [
71
+ ], Ne = [
72
72
  "x1",
73
73
  "x2",
74
74
  "y1",
@@ -76,16 +76,16 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
76
76
  "stroke",
77
77
  "stroke-width",
78
78
  "stroke-linecap"
79
- ], Fe = [
79
+ ], Pe = [
80
80
  "d",
81
81
  "fill",
82
82
  "stroke",
83
83
  "stroke-width"
84
- ], Ie = ["aria-label"], Le = [
84
+ ], Fe = ["aria-label"], Ie = [
85
85
  "x",
86
86
  "y",
87
87
  "height"
88
- ], Re = [
88
+ ], Le = [
89
89
  "x",
90
90
  "y",
91
91
  "font-size",
@@ -93,10 +93,10 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
93
93
  "font-weight",
94
94
  "stroke",
95
95
  "stroke-width"
96
- ], ze = {
96
+ ], Re = {
97
97
  key: 4,
98
98
  class: "vue-data-ui-watermark"
99
- }, Be = /*#__PURE__*/ ee({
99
+ }, ze = /*#__PURE__*/ S({
100
100
  __name: "vue-ui-wheel",
101
101
  props: {
102
102
  config: {
@@ -113,20 +113,20 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
113
113
  }
114
114
  },
115
115
  emits: ["copyAlt"],
116
- setup(e, { expose: ee, emit: ye }) {
117
- _e((e) => ({
118
- v6abdd623: Lt.value,
119
- v51a03449: Rt.value,
120
- v51a016dc: zt.value
116
+ setup(e, { expose: S, emit: ve }) {
117
+ ge((e) => ({
118
+ v79c1e0f9: Pt.value,
119
+ v52b4fc9f: Ft.value,
120
+ v52b4df32: It.value
121
121
  }));
122
- let Be = le(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Ve = le(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), He = le(() => import("./PackageVersion-D6d8SCp9.js").then((e) => e.t)), { vue_ui_wheel: Ue } = m(), { isThemeValid: We, warnInvalidTheme: Ge } = b(), R = ie(), z = e, Ke = ye, qe = T(() => !!z.dataset && Object.keys(z.dataset).length), B = N(l()), Je = N(null), Ye = N(0), V = N(null), Xe = N(null), Ze = N(null), Qe = N(null), $e = N(0), et = N(!1), tt = N(!1), H = N(lt());
122
+ let ze = le(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Be = le(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Ve = le(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), { vue_ui_wheel: He } = m(), { isThemeValid: Ue, warnInvalidTheme: We } = y(), R = ie(), z = e, Ge = ve, Ke = T(() => !!z.dataset && Object.keys(z.dataset).length), B = N(l()), qe = N(null), Je = N(0), V = N(null), Ye = N(null), Xe = N(null), Ze = N(null), Qe = N(0), H = N(ot());
123
123
  f({
124
124
  config: () => H.value,
125
125
  dataset: () => z.dataset,
126
126
  component: "VueUiWheel",
127
127
  rules: [p.noHint]
128
128
  });
129
- let nt = T(() => H.value.userOptions.useCursorPointer), rt = T(() => t({
129
+ let $e = T(() => H.value.userOptions.useCursorPointer), et = T(() => t({
130
130
  defaultConfig: {
131
131
  userOptions: { show: !1 },
132
132
  style: { chart: {
@@ -142,40 +142,40 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
142
142
  } }
143
143
  },
144
144
  userConfig: H.value.skeletonConfig ?? {}
145
- })), { loading: it, FINAL_DATASET: U } = g({
146
- ...ge(z),
145
+ })), { loading: tt, FINAL_DATASET: U } = g({
146
+ ...he(z),
147
147
  FINAL_CONFIG: H,
148
- prepareConfig: lt,
148
+ prepareConfig: ot,
149
149
  skeletonDataset: z.config?.skeletonDataset ?? { percentage: 50 },
150
150
  skeletonConfig: t({
151
151
  defaultConfig: H.value,
152
- userConfig: rt.value
152
+ userConfig: et.value
153
153
  })
154
- }), { userOptionsVisible: at, setUserOptionsVisibility: ot, keepUserOptionState: st } = ne({ config: H.value }), { svgRef: ct } = re({ config: H.value.style.chart.title });
155
- function lt() {
156
- let e = y({
154
+ }), { userOptionsVisible: nt, setUserOptionsVisibility: rt, keepUserOptionState: it } = ne({ config: H.value }), { svgRef: at } = re({ config: H.value.style.chart.title });
155
+ function ot() {
156
+ let e = v({
157
157
  userConfig: z.config,
158
- defaultConfig: Ue
158
+ defaultConfig: He
159
159
  }), t = e.theme;
160
160
  if (!t) return e;
161
- if (!We.value(e)) return Ge(e), e;
162
- let n = y({
161
+ if (!Ue.value(e)) return We(e), e;
162
+ let n = v({
163
163
  userConfig: ae[t] || z.config,
164
164
  defaultConfig: e
165
165
  });
166
- return y({
166
+ return v({
167
167
  userConfig: z.config,
168
168
  defaultConfig: n
169
169
  });
170
170
  }
171
- ve(() => z.config, (e) => {
172
- H.value = lt(), at.value = !H.value.userOptions.showOnChartHover, _t(), $e.value += 1;
171
+ _e(() => z.config, (e) => {
172
+ H.value = ot(), nt.value = !H.value.userOptions.showOnChartHover, mt(), Qe.value += 1;
173
173
  }, { deep: !0 });
174
- let { isPrinting: ut, isImaging: dt, generatePdf: ft, generateImage: pt } = h({
174
+ let { isPrinting: st, isImaging: ct, generatePdf: lt, generateImage: ut } = h({
175
175
  elementId: B.value,
176
176
  fileName: H.value.style.chart.title.text || "vue-ui-wheel",
177
177
  options: H.value.userOptions.print
178
- }), mt = T(() => H.value.userOptions.show && !H.value.style.chart.title.text), W = N({
178
+ }), dt = T(() => H.value.userOptions.show && !H.value.style.chart.title.text), W = N({
179
179
  size: 360,
180
180
  height: 360,
181
181
  width: 360
@@ -184,7 +184,7 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
184
184
  centerX: W.value.width / 2,
185
185
  centerY: W.value.height / 2
186
186
  }));
187
- function ht(e, t = 1) {
187
+ function ft(e, t = 1) {
188
188
  let n = 29.85;
189
189
  return {
190
190
  x: K.value.centerX + K.value.radius * Math.cos(n + e * Math.PI / 180) * t,
@@ -192,26 +192,26 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
192
192
  };
193
193
  }
194
194
  let q = N(H.value.style.chart.animation.use && !R.value ? 0 : U.value.percentage || 0);
195
- ve(() => U.value, (e) => {
196
- H.value.style.chart.animation.use && !R.value ? kt(e.percentage) : q.value = e.percentage || 0;
195
+ _e(() => U.value, (e) => {
196
+ H.value.style.chart.animation.use && !R.value ? Et(e.percentage) : q.value = e.percentage || 0;
197
197
  }, { deep: !0 });
198
- let J = me(null), Y = me(null);
199
- pe(() => {
200
- _t();
198
+ let J = pe(null), Y = pe(null);
199
+ fe(() => {
200
+ mt();
201
201
  });
202
- let gt = T(() => !!H.value.debug);
203
- function _t() {
202
+ let pt = T(() => H.value.debug);
203
+ function mt() {
204
204
  if (s(z.dataset) && d({
205
205
  componentName: "VueUiWheel",
206
206
  type: "dataset",
207
- debug: gt.value
207
+ debug: pt.value
208
208
  }), H.value.responsive) {
209
209
  let e = C(() => {
210
210
  let { width: e, height: t } = te({
211
211
  chart: V.value,
212
- title: H.value.style.chart.title.text ? Xe.value : null,
213
- source: Ze.value,
214
- noTitle: Qe.value
212
+ title: H.value.style.chart.title.text ? Ye.value : null,
213
+ source: Xe.value,
214
+ noTitle: Ze.value
215
215
  });
216
216
  requestAnimationFrame(() => {
217
217
  W.value.width = e, W.value.height = t, G.value = H.value.style.chart.layout.percentage.fontSize / 360 * Math.min(e, t);
@@ -219,12 +219,12 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
219
219
  });
220
220
  J.value && (Y.value && J.value.unobserve(Y.value), J.value.disconnect()), J.value = new ResizeObserver(e), Y.value = V.value.parentNode, J.value.observe(Y.value);
221
221
  }
222
- kt(U.value.percentage || 0), H.value.style.chart.animation.use && !R.value || (q.value = U.value.percentage || 0);
222
+ Et(U.value.percentage || 0), H.value.style.chart.animation.use && !R.value || (q.value = U.value.percentage || 0);
223
223
  }
224
- fe(() => {
224
+ de(() => {
225
225
  J.value && (Y.value && J.value.unobserve(Y.value), J.value.disconnect());
226
226
  });
227
- function vt([e, t, n], r) {
227
+ function ht([e, t, n], r) {
228
228
  let i = Math.cos(r), a = Math.sin(r);
229
229
  return [
230
230
  e,
@@ -232,7 +232,7 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
232
232
  t * a + n * i
233
233
  ];
234
234
  }
235
- function yt([e, t, n], r) {
235
+ function gt([e, t, n], r) {
236
236
  let i = r / (r - n);
237
237
  return [
238
238
  e * i,
@@ -241,11 +241,11 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
241
241
  i
242
242
  ];
243
243
  }
244
- function bt(e, t) {
244
+ function _t(e, t) {
245
245
  let n = e.replace("#", ""), r = parseInt(n.substring(0, 2), 16), i = parseInt(n.substring(2, 4), 16), a = parseInt(n.substring(4, 6), 16), o = 1 - Math.min(1, Math.max(0, H.value.style.chart.layout.wheel.ticks.shadeColorRatio3d)) * t, s = Math.max(0, Math.min(255, Math.round(r * o))), c = Math.max(0, Math.min(255, Math.round(i * o))), l = Math.max(0, Math.min(255, Math.round(a * o)));
246
246
  return `#${s.toString(16).padStart(2, "0")}${c.toString(16).padStart(2, "0")}${l.toString(16).padStart(2, "0")}`;
247
247
  }
248
- function xt({ cx: e, cy: t, radius: n, innerRatio: i = .8, count: a = 120, startDeg: o = 0, axDeg: s = 50, f: c = 520, baseStroke: l = 5, activeColor: u, inactiveColor: d, getActive: f }) {
248
+ function vt({ cx: e, cy: t, radius: n, innerRatio: i = .8, count: a = 120, startDeg: o = 0, axDeg: s = 50, f: c = 520, baseStroke: l = 5, activeColor: u, inactiveColor: d, getActive: f }) {
249
249
  let p = s * Math.PI / 180, m = n, h = n * i, g = [];
250
250
  for (let n = 0; n < a; n += 1) {
251
251
  let i = (n / a * 360 + o) * Math.PI / 180, s = e + m * Math.cos(i), _ = t + m * Math.sin(i), v = e + h * Math.cos(i), y = t + h * Math.sin(i), b = [
@@ -256,32 +256,32 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
256
256
  v - e,
257
257
  y - t,
258
258
  0
259
- ], [S, ee, C] = vt(b, p), [te, ne, re] = vt(x, p), [ie, ae, , w] = yt([
260
- S,
259
+ ], [ee, S, C] = ht(b, p), [te, ne, re] = ht(x, p), [ie, ae, , w] = gt([
261
260
  ee,
261
+ S,
262
262
  C
263
- ], c), [T, E, , D] = yt([
263
+ ], c), [T, E, , D] = gt([
264
264
  te,
265
265
  ne,
266
266
  re
267
- ], c), O = e + ie, oe = t + ae, se = e + T, ce = t + E, le = (Math.max(C, re) - -m * Math.sin(p)) / (2 * m * Math.sin(p) || 1), k = !f || f(n), ue = H.value.style.chart.layout.wheel.ticks.gradient.show ? r(u, n * Q.value / Z.value * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : u, A = bt(k ? ue : d, le), j = Math.max(1.25, l * w * (Math.min(W.value.width, W.value.height) / 360));
267
+ ], c), O = e + ie, oe = t + ae, se = e + T, ce = t + E, le = (Math.max(C, re) - -m * Math.sin(p)) / (2 * m * Math.sin(p) || 1), k = !f || f(n), A = H.value.style.chart.layout.wheel.ticks.gradient.show ? r(u, n * Q.value / Z.value * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : u, j = _t(k ? A : d, le), ue = Math.max(1.25, l * w * (Math.min(W.value.width, W.value.height) / 360));
268
268
  g.push({
269
269
  i: n,
270
270
  x1: O,
271
271
  y1: oe,
272
272
  x2: se,
273
273
  y2: ce,
274
- stroke: j,
275
- color: A,
274
+ stroke: ue,
275
+ color: j,
276
276
  z: Math.max(C, re)
277
277
  });
278
278
  }
279
279
  return g.sort((e, t) => e.z - t.z), g;
280
280
  }
281
- let St = T(() => {
281
+ let yt = T(() => {
282
282
  if (!H.value.layout === "3d") return null;
283
283
  let e = Z.value, t = H.value.style.chart.layout.wheel.ticks.gradient.show ? r(H.value.style.chart.layout.wheel.ticks.activeColor, 0) : H.value.style.chart.layout.wheel.ticks.activeColor, n = H.value.style.chart.layout.wheel.ticks.inactiveColor, i = H.value.style.chart.layout.wheel.ticks.strokeWidth;
284
- return xt({
284
+ return vt({
285
285
  cx: K.value.centerX,
286
286
  cy: K.value.centerY,
287
287
  radius: K.value.radius,
@@ -296,14 +296,14 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
296
296
  getActive: (e) => q.value > e * Q.value
297
297
  });
298
298
  });
299
- function Ct({ cx: e, cy: t, r: n, count: r = 180, startDeg: i = -90, axDeg: a = 50, f: o }) {
299
+ function bt({ cx: e, cy: t, r: n, count: r = 180, startDeg: i = -90, axDeg: a = 50, f: o }) {
300
300
  let s = a * Math.PI / 180, c = [], l = 0;
301
301
  for (let a = 0; a < r; a += 1) {
302
- let u = (a / r * 360 + i) * Math.PI / 180, [d, f, p] = vt([
302
+ let u = (a / r * 360 + i) * Math.PI / 180, [d, f, p] = ht([
303
303
  n * Math.cos(u),
304
304
  n * Math.sin(u),
305
305
  0
306
- ], s), [m, h, , g] = yt([
306
+ ], s), [m, h, , g] = gt([
307
307
  d,
308
308
  f,
309
309
  p
@@ -323,7 +323,7 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
323
323
  let X = T(() => {
324
324
  if (H.value.layout !== "3d") return null;
325
325
  let e = Math.min(W.value.width, W.value.height) * 1.45, t = H.value.style.chart.layout.wheel.tiltAngle3d, n = K.value.radius, { pts: r, avgScale: i } = (() => {
326
- let r = n, i = t, { d: a, avgScale: o, pts: s } = Ct({
326
+ let r = n, i = t, { d: a, avgScale: o, pts: s } = bt({
327
327
  cx: K.value.centerX,
328
328
  cy: K.value.centerY,
329
329
  r,
@@ -345,8 +345,8 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
345
345
  h: c - (o - f) + 2 * p
346
346
  };
347
347
  });
348
- function wt(e) {
349
- let t = Math.min(W.value.width, W.value.height) * 1.45, { d: n, avgScale: r } = Ct({
348
+ function xt(e) {
349
+ let t = Math.min(W.value.width, W.value.height) * 1.45, { d: n, avgScale: r } = bt({
350
350
  cx: K.value.centerX,
351
351
  cy: K.value.centerY,
352
352
  r: e,
@@ -360,13 +360,13 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
360
360
  strokeWidth: i
361
361
  };
362
362
  }
363
- let Tt = T(() => wt(Math.max(0, K.value.radius * .8 * H.value.style.chart.layout.innerCircle.radiusRatio)));
364
- function Et({ cx: e, cy: t, r: n, aRad: r, ax: i, f: a }) {
365
- let [o, s, c] = vt([
363
+ let St = T(() => xt(Math.max(0, K.value.radius * .8 * H.value.style.chart.layout.innerCircle.radiusRatio)));
364
+ function Ct({ cx: e, cy: t, r: n, aRad: r, ax: i, f: a }) {
365
+ let [o, s, c] = ht([
366
366
  n * Math.cos(r),
367
367
  n * Math.sin(r),
368
368
  0
369
- ], i), [l, u, , d] = yt([
369
+ ], i), [l, u, , d] = gt([
370
370
  o,
371
371
  s,
372
372
  c
@@ -378,54 +378,54 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
378
378
  s: d
379
379
  };
380
380
  }
381
- function Dt({ cx: e, cy: t, radius: n, innerRatio: i = .8, count: a = 120, startDeg: o = -87, axDeg: s = 45, f: c = 600, activeColor: l, inactiveColor: u, getActive: d, Y: f = 0 }) {
381
+ function wt({ cx: e, cy: t, radius: n, innerRatio: i = .8, count: a = 120, startDeg: o = -87, axDeg: s = 45, f: c = 600, activeColor: l, inactiveColor: u, getActive: d, Y: f = 0 }) {
382
382
  let p = s * Math.PI / 180, m = n, h = n * i, g = 2 * Math.PI / a, _ = [];
383
383
  for (let n = 0; n < a; n += 1) {
384
- let i = o * Math.PI / 180 + g * n, s = i + g * Math.min(1, H.value.style.chart.layout.wheel.ticks.spacingRatio3d), v = Et({
384
+ let i = o * Math.PI / 180 + g * n, s = i + g * Math.min(1, H.value.style.chart.layout.wheel.ticks.spacingRatio3d), v = Ct({
385
385
  cx: e,
386
386
  cy: t + f,
387
387
  r: m,
388
388
  aRad: i,
389
389
  ax: p,
390
390
  f: c
391
- }), y = Et({
391
+ }), y = Ct({
392
392
  cx: e,
393
393
  cy: t + f,
394
394
  r: m,
395
395
  aRad: s,
396
396
  ax: p,
397
397
  f: c
398
- }), b = Et({
398
+ }), b = Ct({
399
399
  cx: e,
400
400
  cy: t + f,
401
401
  r: h,
402
402
  aRad: s,
403
403
  ax: p,
404
404
  f: c
405
- }), x = Et({
405
+ }), x = Ct({
406
406
  cx: e,
407
407
  cy: t + f,
408
408
  r: h,
409
409
  aRad: i,
410
410
  ax: p,
411
411
  f: c
412
- }), S = (v.z + y.z + x.z + b.z) / 4, ee = bt(!d || d(n) ? H.value.style.chart.layout.wheel.ticks.gradient.show ? r(H.value.style.chart.layout.wheel.ticks.activeColor, 100 / a * n / 100 * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : l : u, (() => {
412
+ }), ee = (v.z + y.z + x.z + b.z) / 4, S = _t(!d || d(n) ? H.value.style.chart.layout.wheel.ticks.gradient.show ? r(H.value.style.chart.layout.wheel.ticks.activeColor, 100 / a * n / 100 * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : l : u, (() => {
413
413
  let e = m * Math.sin(p) || 1;
414
- return (S - -e) / (2 * e);
414
+ return (ee - -e) / (2 * e);
415
415
  })()), C = `M ${v.x} ${v.y} L ${y.x} ${y.y} L ${b.x} ${b.y} L ${x.x} ${x.y} Z`;
416
416
  _.push({
417
417
  i: n,
418
418
  d: C,
419
- fill: ee,
420
- z: S
419
+ fill: S,
420
+ z: ee
421
421
  });
422
422
  }
423
423
  return _.sort((e, t) => e.z - t.z), _;
424
424
  }
425
- let Ot = T(() => {
425
+ let Tt = T(() => {
426
426
  if (H.value.layout !== "3d") return null;
427
427
  let e = Z.value;
428
- return (t) => Dt({
428
+ return (t) => wt({
429
429
  cx: K.value.centerX,
430
430
  cy: K.value.centerY,
431
431
  radius: K.value.radius,
@@ -440,17 +440,17 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
440
440
  Y: t
441
441
  });
442
442
  });
443
- function kt(e) {
443
+ function Et(e) {
444
444
  let t = H.value.style.chart.animation.speed, n = Math.abs(e - q.value) / (t * 120);
445
445
  function r() {
446
446
  q.value < e ? q.value = Math.min(q.value + n, e) : q.value > e && (q.value = Math.max(q.value - n, e)), q.value !== e && requestAnimationFrame(r);
447
447
  }
448
448
  r();
449
449
  }
450
- let Z = T(() => (H.value.debug && H.value.style.chart.layout.wheel.ticks.quantity < 12 && console.warn("VueUiWheel - The min number of ticks is 12"), H.value.debug && H.value.style.chart.layout.wheel.ticks.quantity > 200 && console.warn("VueUiWheel - The max number of ticks is 200"), Math.max(12, Math.min(H.value.style.chart.layout.wheel.ticks.quantity, 200)))), Q = T(() => 100 / Z.value), At = T(() => {
450
+ let Z = T(() => (pt.value && H.value.style.chart.layout.wheel.ticks.quantity < 12 && console.warn("VueUiWheel - The min number of ticks is 12"), pt.value && H.value.style.chart.layout.wheel.ticks.quantity > 200 && console.warn("VueUiWheel - The max number of ticks is 200"), Math.max(12, Math.min(H.value.style.chart.layout.wheel.ticks.quantity, 200)))), Q = T(() => 100 / Z.value), Dt = T(() => {
451
451
  let e = [];
452
452
  for (let t = 0; t < Z.value; t += 1) {
453
- let n = q.value > t * Q.value ? H.value.style.chart.layout.wheel.ticks.activeColor : H.value.style.chart.layout.wheel.ticks.inactiveColor, { x: i, y: a } = ht(W.value.size / Z.value * t), { x: o, y: s } = ht(W.value.size / Z.value * t, H.value.style.chart.layout.wheel.ticks.sizeRatio);
453
+ let n = q.value > t * Q.value ? H.value.style.chart.layout.wheel.ticks.activeColor : H.value.style.chart.layout.wheel.ticks.inactiveColor, { x: i, y: a } = ft(W.value.size / Z.value * t), { x: o, y: s } = ft(W.value.size / Z.value * t, H.value.style.chart.layout.wheel.ticks.sizeRatio);
454
454
  e.push({
455
455
  x1: i,
456
456
  y1: a,
@@ -460,19 +460,19 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
460
460
  });
461
461
  }
462
462
  return e;
463
- }), jt = T(() => c({ series: At.value.map((e) => ({
463
+ }), Ot = T(() => c({ series: Dt.value.map((e) => ({
464
464
  name: "",
465
465
  value: 1,
466
466
  color: e.color
467
- })) }, K.value.centerX, K.value.centerY, K.value.radius, K.value.radius, 1.99999, 2, 1, 360, 105.25, K.value.radius * (1 - H.value.style.chart.layout.wheel.ticks.sizeRatio))), Mt = N(!1);
468
- function Nt(e) {
469
- Mt.value = e, Ye.value += 1;
467
+ })) }, K.value.centerX, K.value.centerY, K.value.radius, K.value.radius, 1.99999, 2, 1, 360, 105.25, K.value.radius * (1 - H.value.style.chart.layout.wheel.ticks.sizeRatio))), kt = N(!1);
468
+ function At(e) {
469
+ kt.value = e, Je.value += 1;
470
470
  }
471
- let Pt = N(!1);
472
- function Ft() {
473
- Pt.value = !Pt.value;
471
+ let jt = N(!1);
472
+ function Mt() {
473
+ jt.value = !jt.value;
474
474
  }
475
- async function It({ scale: e = 2 } = {}) {
475
+ async function Nt({ scale: e = 2 } = {}) {
476
476
  if (!V.value) return;
477
477
  let { width: t, height: n } = V.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await x({
478
478
  domElement: V.value,
@@ -489,41 +489,18 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
489
489
  aspectRatio: r
490
490
  };
491
491
  }
492
- let Lt = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth * 2), Rt = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth * 2 * .75), zt = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth), $ = T(() => Math.max(1, Math.min(20, H.value.style.chart.layout.wheel.ticks.depth3d))), Bt = T(() => H.value.style.chart.backgroundColor), Vt = T(() => H.value.style.chart.title), { exportSvg: Ht, getSvg: Ut } = v({
493
- svg: ct,
494
- title: Vt,
495
- backgroundColor: Bt,
496
- stretchTitle: !0
492
+ let Pt = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth * 2), Ft = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth * 2 * .75), It = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth), $ = T(() => Math.max(1, Math.min(20, H.value.style.chart.layout.wheel.ticks.depth3d))), Lt = T(() => H.value.style.chart.backgroundColor), Rt = T(() => H.value.style.chart.title), { isCallbackImaging: zt, isCallbackSvg: Bt, generateSvg: Vt, onGenerateImage: Ht } = b({
493
+ svg: at,
494
+ title: Rt,
495
+ legend: null,
496
+ legendItems: null,
497
+ backgroundColor: Lt,
498
+ stretchTitle: !0,
499
+ getSvgCallback: () => H.value.userOptions.callbacks.svg,
500
+ generateImage: ut
497
501
  });
498
- async function Wt({ isCb: e }) {
499
- tt.value = !0, await ue();
500
- try {
501
- if (e) {
502
- let { blob: e, url: t, text: n, dataUrl: r } = await Ut();
503
- await Promise.resolve(H.value.userOptions.callbacks.svg({
504
- blob: e,
505
- url: t,
506
- text: n,
507
- dataUrl: r
508
- }));
509
- } else await Promise.resolve(Ht());
510
- } finally {
511
- tt.value = !1;
512
- }
513
- }
514
- function Gt(e) {
515
- if (e?.stage === "start") {
516
- et.value = !0;
517
- return;
518
- }
519
- if (e?.stage === "end") {
520
- et.value = !1;
521
- return;
522
- }
523
- pt();
524
- }
525
- async function Kt() {
526
- if (Ke("copyAlt", {
502
+ async function Ut() {
503
+ if (Ge("copyAlt", {
527
504
  config: H.value,
528
505
  dataset: U.value
529
506
  }), !H.value.userOptions.callbacks.altCopy) {
@@ -535,19 +512,19 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
535
512
  dataset: U.value
536
513
  }));
537
514
  }
538
- let qt = T(() => `${B.value}-title`), Jt = T(() => `${B.value}-desc`), Yt = T(() => o(H.value.style.chart.layout.percentage.formatter, a(q.value), i({
515
+ let Wt = T(() => `${B.value}-title`), Gt = T(() => `${B.value}-desc`), Kt = T(() => o(H.value.style.chart.layout.percentage.formatter, a(q.value), i({
539
516
  v: a(q.value),
540
517
  s: "%",
541
518
  r: H.value.style.chart.layout.percentage.rounding
542
- }))), Xt = T(() => H.value.style.chart.title.text || ""), Zt = T(() => it.value ? "..." : `${Yt.value}`);
543
- return ee({
544
- getImage: It,
545
- generatePdf: ft,
546
- generateImage: pt,
547
- generateSvg: Wt,
548
- toggleAnnotator: Ft,
549
- toggleFullscreen: Nt,
550
- copyAlt: Kt
519
+ }))), qt = T(() => H.value.style.chart.title.text || ""), Jt = T(() => tt.value ? "..." : `${Kt.value}`);
520
+ return S({
521
+ getImage: Nt,
522
+ generatePdf: lt,
523
+ generateImage: ut,
524
+ generateSvg: Vt,
525
+ toggleAnnotator: Mt,
526
+ toggleFullscreen: At,
527
+ copyAlt: Ut
551
528
  }), (e, t) => (M(), O("div", {
552
529
  class: A(["vue-ui-wheel", {
553
530
  "vue-data-ui-component": !0,
@@ -556,18 +533,18 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
556
533
  ref_key: "wheelChart",
557
534
  ref: V,
558
535
  id: B.value,
559
- style: de(`font-family:${H.value.style.fontFamily};width:100%; text-align:center;background:${H.value.style.chart.backgroundColor};${H.value.responsive ? "height:100%" : ""}`),
560
- onMouseenter: t[0] ||= () => I(ot)(!0),
561
- onMouseleave: t[1] ||= () => I(ot)(!1)
536
+ style: ue(`font-family:${H.value.style.fontFamily};width:100%; text-align:center;background:${H.value.style.chart.backgroundColor};${H.value.responsive ? "height:100%" : ""}`),
537
+ onMouseenter: t[0] ||= () => I(rt)(!0),
538
+ onMouseleave: t[1] ||= () => I(rt)(!1)
562
539
  }, [
563
- H.value.userOptions.buttons.annotator ? (M(), E(I(Be), {
540
+ H.value.userOptions.buttons.annotator ? (M(), E(I(ze), {
564
541
  key: 0,
565
- svgRef: I(ct),
542
+ svgRef: I(at),
566
543
  backgroundColor: H.value.style.chart.backgroundColor,
567
544
  color: H.value.style.chart.color,
568
- active: Pt.value,
569
- isCursorPointer: nt.value,
570
- onClose: Ft
545
+ active: jt.value,
546
+ isCursorPointer: $e.value,
547
+ onClose: Mt
571
548
  }, {
572
549
  "annotator-action-close": L(() => [F(e.$slots, "annotator-action-close", {}, void 0, !0)]),
573
550
  "annotator-action-color": L(({ color: t }) => [F(e.$slots, "annotator-action-color", j(k({ color: t })), void 0, !0)]),
@@ -583,20 +560,20 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
583
560
  "active",
584
561
  "isCursorPointer"
585
562
  ])) : D("", !0),
586
- mt.value ? (M(), O("div", {
563
+ dt.value ? (M(), O("div", {
587
564
  key: 1,
588
565
  ref_key: "noTitle",
589
- ref: Qe,
566
+ ref: Ze,
590
567
  class: "vue-data-ui-no-title-space",
591
568
  style: "height:36px; width: 100%;background:transparent"
592
569
  }, null, 512)) : D("", !0),
593
570
  H.value.style.chart.title.text ? (M(), O("div", {
594
571
  key: 2,
595
572
  ref_key: "chartTitle",
596
- ref: Xe,
573
+ ref: Ye,
597
574
  style: "width:100%;background:transparent;padding-bottom:12px"
598
- }, [(M(), E(S, {
599
- key: `title_${$e.value}`,
575
+ }, [(M(), E(ee, {
576
+ key: `title_${Qe.value}`,
600
577
  config: {
601
578
  title: {
602
579
  cy: "wheel-title",
@@ -608,14 +585,14 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
608
585
  }
609
586
  }
610
587
  }, null, 8, ["config"]))], 512)) : D("", !0),
611
- H.value.userOptions.show && qe.value && (I(st) || I(at)) ? (M(), E(I(Ve), {
588
+ H.value.userOptions.show && Ke.value && (I(it) || I(nt)) ? (M(), E(I(Be), {
612
589
  ref_key: "details",
613
- ref: Je,
614
- key: `user_options_${Ye.value}`,
590
+ ref: qe,
591
+ key: `user_options_${Je.value}`,
615
592
  backgroundColor: H.value.style.chart.backgroundColor,
616
593
  color: H.value.style.chart.color,
617
- isPrinting: I(ut),
618
- isImaging: I(dt),
594
+ isPrinting: I(st),
595
+ isImaging: I(ct),
619
596
  uid: B.value,
620
597
  hasPdf: H.value.userOptions.buttons.pdf,
621
598
  hasImg: H.value.userOptions.buttons.img,
@@ -623,22 +600,22 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
623
600
  hasFullscreen: H.value.userOptions.buttons.fullscreen,
624
601
  hasAltCopy: H.value.userOptions.buttons.altCopy,
625
602
  hasXls: !1,
626
- isFullscreen: Mt.value,
603
+ isFullscreen: kt.value,
627
604
  position: H.value.userOptions.position,
628
605
  titles: { ...H.value.userOptions.buttonTitles },
629
606
  hasAnnotator: H.value.userOptions.buttons.annotator,
630
- isAnnotation: Pt.value,
607
+ isAnnotation: jt.value,
631
608
  chartElement: V.value,
632
609
  callbacks: H.value.userOptions.callbacks,
633
610
  printScale: H.value.userOptions.print.scale,
634
- isCursorPointer: nt.value,
635
- onToggleFullscreen: Nt,
636
- onGeneratePdf: I(ft),
637
- onGenerateImage: Gt,
638
- onGenerateSvg: Wt,
639
- onToggleAnnotator: Ft,
640
- onCopyAlt: Kt,
641
- style: de({ visibility: I(st) ? I(at) ? "visible" : "hidden" : "visible" })
611
+ isCursorPointer: $e.value,
612
+ onToggleFullscreen: At,
613
+ onGeneratePdf: I(lt),
614
+ onGenerateImage: I(Ht),
615
+ onGenerateSvg: I(Vt),
616
+ onToggleAnnotator: Mt,
617
+ onCopyAlt: Ut,
618
+ style: ue({ visibility: I(it) ? I(nt) ? "visible" : "hidden" : "visible" })
642
619
  }, se({ _: 2 }, [
643
620
  e.$slots.menuIcon ? {
644
621
  name: "menuIcon",
@@ -715,26 +692,28 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
715
692
  "printScale",
716
693
  "isCursorPointer",
717
694
  "onGeneratePdf",
695
+ "onGenerateImage",
696
+ "onGenerateSvg",
718
697
  "style"
719
698
  ])) : D("", !0),
720
699
  (M(), O("svg", {
721
700
  ref_key: "svgRef",
722
- ref: ct,
701
+ ref: at,
723
702
  xmlns: I(u),
724
703
  class: A({
725
- "vue-data-ui-fullscreen--on": Mt.value,
726
- "vue-data-ui-fulscreen--off": !Mt.value,
704
+ "vue-data-ui-fullscreen--on": kt.value,
705
+ "vue-data-ui-fulscreen--off": !kt.value,
727
706
  "vue-ui-wheel-3d-svg": H.value.layout === "3d"
728
707
  }),
729
708
  viewBox: H.value.layout === "3d" && !H.value.responsive ? `${X.value?.x - 10} ${X.value?.y ?? 0} ${X.value?.w + 20 ?? Math.max(10, W.value.width)} ${X.value?.h ?? Math.max(10, W.value.height)}` : `0 0 ${Math.max(10, W.value.width)} ${Math.max(10, W.value.height)}`,
730
- style: de(`max-width:100%;overflow:visible;background:transparent;color:${H.value.style.chart.color}`),
709
+ style: ue(`max-width:100%;overflow:visible;background:transparent;color:${H.value.style.chart.color}`),
731
710
  role: "img",
732
- "aria-labelledby": qt.value,
733
- "aria-describedby": Jt.value
711
+ "aria-labelledby": Wt.value,
712
+ "aria-describedby": Gt.value
734
713
  }, [
735
- oe("title", { id: qt.value }, he(Xt.value), 9, Se),
736
- oe("desc", { id: Jt.value }, he(Zt.value), 9, Ce),
737
- ce(I(He)),
714
+ oe("title", { id: Wt.value }, me(qt.value), 9, xe),
715
+ oe("desc", { id: Gt.value }, me(Jt.value), 9, Se),
716
+ ce(I(Ve)),
738
717
  e.$slots["chart-background"] ? (M(), O("foreignObject", {
739
718
  key: 0,
740
719
  x: H.value.layout === "3d" && !H.value.responsive ? X.value?.x - 10 : 0,
@@ -742,15 +721,15 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
742
721
  width: H.value.layout === "3d" && !H.value.responsive ? X.value?.w + 20 ?? Math.max(10, W.value.width) : Math.max(10, W.value.width),
743
722
  height: H.value.layout === "3d" && !H.value.responsive ? X.value?.h ?? Math.max(10, W.value.height) : Math.max(10, W.value.height),
744
723
  style: { pointerEvents: "none" }
745
- }, [F(e.$slots, "chart-background", {}, void 0, !0)], 8, we)) : D("", !0),
746
- H.value.layout === "3d" && Tt.value ? (M(), O("path", {
724
+ }, [F(e.$slots, "chart-background", {}, void 0, !0)], 8, Ce)) : D("", !0),
725
+ H.value.layout === "3d" && St.value ? (M(), O("path", {
747
726
  key: 1,
748
727
  class: "vue-ui-wheel-inner-circle",
749
- d: Tt.value.d,
728
+ d: St.value.d,
750
729
  stroke: H.value.style.chart.layout.innerCircle.stroke,
751
730
  "stroke-width": H.value.style.chart.layout.innerCircle.strokeWidth,
752
731
  fill: "none"
753
- }, null, 8, Te)) : H.value.style.chart.layout.innerCircle.show ? (M(), O("circle", {
732
+ }, null, 8, we)) : H.value.style.chart.layout.innerCircle.show ? (M(), O("circle", {
754
733
  key: 2,
755
734
  class: "vue-ui-wheel-inner-circle",
756
735
  cx: K.value.centerX,
@@ -759,8 +738,8 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
759
738
  stroke: H.value.style.chart.layout.innerCircle.stroke,
760
739
  "stroke-width": H.value.style.chart.layout.innerCircle.strokeWidth,
761
740
  fill: "none"
762
- }, null, 8, Ee)) : D("", !0),
763
- H.value.layout === "3d" ? (M(), O(w, { key: 3 }, [H.value.style.chart.layout.wheel.ticks.type === "classic" ? (M(), O("g", De, [(M(!0), O(w, null, P($.value, (e) => (M(), O("g", null, [(M(!0), O(w, null, P(St.value || [], (t) => (M(), O("line", {
741
+ }, null, 8, Te)) : D("", !0),
742
+ H.value.layout === "3d" ? (M(), O(w, { key: 3 }, [H.value.style.chart.layout.wheel.ticks.type === "classic" ? (M(), O("g", Ee, [(M(!0), O(w, null, P($.value, (e) => (M(), O("g", null, [(M(!0), O(w, null, P(yt.value || [], (t) => (M(), O("line", {
764
743
  key: t.i,
765
744
  x1: t.x1,
766
745
  y1: t.y1 - e,
@@ -773,7 +752,7 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
773
752
  "vue-ui-wheel-tick": !0,
774
753
  "vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && t.i * Q.value <= q.value
775
754
  })
776
- }, null, 10, Oe))), 128))]))), 256)), (M(!0), O(w, null, P(St.value || [], (e) => (M(), O("line", {
755
+ }, null, 10, De))), 128))]))), 256)), (M(!0), O(w, null, P(yt.value || [], (e) => (M(), O("line", {
777
756
  key: e.i,
778
757
  x1: e.x1,
779
758
  y1: e.y1 - $.value,
@@ -786,7 +765,7 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
786
765
  "vue-ui-wheel-tick": !0,
787
766
  "vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && e.i * Q.value <= q.value
788
767
  })
789
- }, null, 10, ke))), 128))])) : (M(), O("g", Ae, [(M(!0), O(w, null, P($.value, (e) => (M(), O("g", null, [(M(!0), O(w, null, P(Ot.value(-e) || [], (e) => (M(), O("path", {
768
+ }, null, 10, Oe))), 128))])) : (M(), O("g", ke, [(M(!0), O(w, null, P($.value, (e) => (M(), O("g", null, [(M(!0), O(w, null, P(Tt.value(-e) || [], (e) => (M(), O("path", {
790
769
  key: e.i,
791
770
  d: e.d,
792
771
  fill: H.value.style.chart.layout.wheel.ticks.inactiveColor,
@@ -795,7 +774,7 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
795
774
  "stroke-linecap": "round",
796
775
  "stroke-linejoin": "round",
797
776
  class: "vue-ui-wheel-tick"
798
- }, null, 8, je))), 128)), (M(!0), O(w, null, P(Ot.value(-e) || [], (t) => (M(), O("path", {
777
+ }, null, 8, Ae))), 128)), (M(!0), O(w, null, P(Tt.value(-e) || [], (t) => (M(), O("path", {
799
778
  key: t.i,
800
779
  d: t.d,
801
780
  fill: I(n)(t.fill, .5 * e / $.value),
@@ -807,7 +786,7 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
807
786
  "vue-ui-wheel-tick": !0,
808
787
  "vue-ui-tick-animated-3d": H.value.style.chart.animation.use && !I(R) && t.i * Q.value <= q.value
809
788
  })
810
- }, null, 10, Me))), 128))]))), 256)), oe("g", null, [(M(!0), O(w, null, P(Ot.value(-$.value) || [], (e) => (M(), O("path", {
789
+ }, null, 10, je))), 128))]))), 256)), oe("g", null, [(M(!0), O(w, null, P(Tt.value(-$.value) || [], (e) => (M(), O("path", {
811
790
  key: e.i,
812
791
  d: e.d,
813
792
  fill: e.fill,
@@ -819,7 +798,7 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
819
798
  "vue-ui-wheel-tick": !0,
820
799
  "vue-ui-tick-animated-3d": H.value.style.chart.animation.use && !I(R) && e.i * Q.value <= q.value
821
800
  })
822
- }, null, 10, Ne))), 128))])]))], 64)) : (M(), O(w, { key: 4 }, [H.value.style.chart.layout.wheel.ticks.type === "classic" ? (M(!0), O(w, { key: 0 }, P(At.value, (e, t) => (M(), O("line", {
801
+ }, null, 10, Me))), 128))])]))], 64)) : (M(), O(w, { key: 4 }, [H.value.style.chart.layout.wheel.ticks.type === "classic" ? (M(!0), O(w, { key: 0 }, P(Dt.value, (e, t) => (M(), O("line", {
823
802
  x1: e.x1,
824
803
  x2: e.x2,
825
804
  y1: e.y1,
@@ -831,7 +810,7 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
831
810
  "vue-ui-wheel-tick": !0,
832
811
  "vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && t * Q.value <= q.value
833
812
  })
834
- }, null, 10, Pe))), 256)) : (M(!0), O(w, { key: 1 }, P(jt.value, (e, t) => (M(), O("path", {
813
+ }, null, 10, Ne))), 256)) : (M(!0), O(w, { key: 1 }, P(Ot.value, (e, t) => (M(), O("path", {
835
814
  d: e.arcSlice,
836
815
  fill: e.color,
837
816
  class: A({
@@ -840,13 +819,13 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
840
819
  }),
841
820
  stroke: H.value.style.chart.layout.wheel.ticks.stroke,
842
821
  "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth
843
- }, null, 10, Fe))), 256))], 64)),
822
+ }, null, 10, Pe))), 256))], 64)),
844
823
  H.value.style.chart.layout.percentage.show ? (M(), O("g", {
845
824
  key: 5,
846
825
  role: "status",
847
826
  "aria-live": "polite",
848
- "aria-label": I(it) ? "..." : Yt.value
849
- }, [I(it) ? (M(), O("rect", {
827
+ "aria-label": I(tt) ? "..." : Kt.value
828
+ }, [I(tt) ? (M(), O("rect", {
850
829
  key: 0,
851
830
  x: K.value.centerX - 40,
852
831
  y: K.value.centerY - G.value / 2,
@@ -854,7 +833,7 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
854
833
  height: G.value,
855
834
  fill: "#6A6A6A80",
856
835
  rx: "3"
857
- }, null, 8, Le)) : (M(), O("text", {
836
+ }, null, 8, Ie)) : (M(), O("text", {
858
837
  key: 1,
859
838
  "aria-hidden": "true",
860
839
  x: K.value.centerX + H.value.style.chart.layout.percentage.offsetX,
@@ -870,23 +849,23 @@ var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
870
849
  "stroke-linejoin": "round",
871
850
  "paint-order": "stroke fill",
872
851
  class: A({ "vue-ui-wheel-label": H.value.layout === "3d" })
873
- }, he(Yt.value), 11, Re))], 8, Ie)) : D("", !0),
852
+ }, me(Kt.value), 11, Le))], 8, Fe)) : D("", !0),
874
853
  F(e.$slots, "svg", { svg: {
875
854
  ...W.value,
876
- isPrintingImg: I(ut) || I(dt) || et.value,
877
- isPrintingSvg: tt.value
855
+ isPrintingImg: I(st) || I(ct) || I(zt),
856
+ isPrintingSvg: I(Bt)
878
857
  } }, void 0, !0)
879
- ], 14, xe)),
880
- e.$slots.watermark ? (M(), O("div", ze, [F(e.$slots, "watermark", j(k({ isPrinting: I(ut) || I(dt) || et.value || tt.value })), void 0, !0)])) : D("", !0),
858
+ ], 14, be)),
859
+ e.$slots.watermark ? (M(), O("div", Re, [F(e.$slots, "watermark", j(k({ isPrinting: I(st) || I(ct) || I(zt) || I(Bt) })), void 0, !0)])) : D("", !0),
881
860
  e.$slots.source ? (M(), O("div", {
882
861
  key: 5,
883
862
  ref_key: "source",
884
- ref: Ze,
863
+ ref: Xe,
885
864
  dir: "auto"
886
865
  }, [F(e.$slots, "source", {}, void 0, !0)], 512)) : D("", !0),
887
- F(e.$slots, "skeleton", {}, () => [I(it) ? (M(), E(_, { key: 0 })) : D("", !0)], !0)
888
- ], 46, be));
866
+ F(e.$slots, "skeleton", {}, () => [I(tt) ? (M(), E(_, { key: 0 })) : D("", !0)], !0)
867
+ ], 46, ye));
889
868
  }
890
- }, [["__scopeId", "data-v-8da34f59"]]);
869
+ }, [["__scopeId", "data-v-8b3cd2bd"]]);
891
870
  //#endregion
892
- export { ye as n, Be as t };
871
+ export { ve as n, ze as t };