vue-data-ui 3.23.0 → 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 (206) hide show
  1. package/dist/{Arrow-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
  2. package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
  3. package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
  4. package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
  5. package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
  6. package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
  7. package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
  8. package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
  9. package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
  11. package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
  12. package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
  13. package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
  14. package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
  15. package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
  16. package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
  17. package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
  18. package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/composables.js +1 -1
  90. package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
  91. package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
  92. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  93. package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
  94. package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
  95. package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
  96. package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
  97. package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
  98. package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
  99. package/dist/ssr/vue-ui-donut.js +1 -1
  100. package/dist/ssr/vue-ui-xy.js +1 -1
  101. package/dist/ssr.js +2 -2
  102. package/dist/style.css +1 -1
  103. package/dist/types/vue-data-ui.d.ts +9 -0
  104. package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
  105. package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
  106. package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
  107. package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
  108. package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
  109. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  110. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  111. package/dist/utils.js +3 -3
  112. package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
  113. package/dist/vue-data-ui.js +74 -74
  114. package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
  115. package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
  116. package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
  117. package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
  118. package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
  119. package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
  120. package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
  121. package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
  122. package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
  123. package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
  124. package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
  125. package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
  126. package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
  127. package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
  128. package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
  129. package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
  130. package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
  131. package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
  132. package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
  133. package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
  134. package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
  135. package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
  136. package/dist/vue-ui-gauge-CJstpakj.js +932 -0
  137. package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
  138. package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
  139. package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
  140. package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
  141. package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
  142. package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
  143. package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
  144. package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
  145. package/dist/vue-ui-molecule-paWHp18h.js +935 -0
  146. package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
  147. package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
  148. package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
  149. package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
  150. package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
  151. package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
  152. package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
  153. package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
  154. package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
  155. package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
  156. package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
  157. package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
  158. package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
  159. package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
  160. package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
  161. package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
  162. package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
  163. package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
  164. package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
  165. package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
  166. package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
  167. package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
  168. package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
  169. package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
  170. package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
  171. package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
  172. package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
  173. package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
  174. package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
  175. package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
  176. package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
  177. package/dist/vue-ui-wheel-DrefGLos.js +871 -0
  178. package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
  179. package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
  180. package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
  181. package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
  182. package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
  183. package/package.json +4 -4
  184. package/dist/Slicer-5yIrdoJv.js +0 -1149
  185. package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
  186. package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
  187. package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
  188. package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
  189. package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
  190. package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
  191. package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
  192. package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
  193. package/dist/vue-ui-funnel-CjYosIik.js +0 -797
  194. package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
  195. package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
  196. package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
  197. package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
  198. package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
  199. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
  200. package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
  201. package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
  202. package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
  203. package/dist/vue-ui-table-rFy16bp0.js +0 -1347
  204. package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
  205. package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
  206. package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
@@ -1,892 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
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-BuMGJ_a0.js";
3
- import { n as f, t as p } from "./useHints-Dq_w2E8B.js";
4
- import { t as m } from "./useConfig-BilxnBNr.js";
5
- import { t as h } from "./usePrinter-BFvi4jVy.js";
6
- import { n as g, t as _ } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as v } from "./useSvgExport-Ba9qBr9M.js";
8
- import { t as y } from "./useNestedProp--NSEmhOH.js";
9
- import { t as b } from "./useThemeCheck-C43Tcqmk.js";
10
- import { t as x } from "./img-DIQG5q8T.js";
11
- import { n as ee } from "./Title-BODtwViI.js";
12
- import { t as te } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { l as S, t as ne } from "./useResponsive-ZtArZtUf.js";
14
- import { t as re } from "./useUserOptionState-DK-_1ddE.js";
15
- import { t as ie } from "./useChartAccessibility-DYqac8yF.js";
16
- import { t as ae } from "./usePrefersMotion-BC-CsqR1.js";
17
- import { t as oe } from "./vue_ui_wheel-DZ_nR--t.js";
18
- import { Fragment as C, computed as w, createBlock as T, createCommentVNode as E, createElementBlock as D, createElementVNode as se, createSlots as ce, createVNode as le, defineAsyncComponent as ue, guardReactiveProps as O, nextTick as de, normalizeClass as k, normalizeProps as A, normalizeStyle as fe, onBeforeUnmount as pe, onMounted as me, openBlock as j, ref as M, renderList as N, renderSlot as P, shallowRef as he, toDisplayString as ge, toRefs as _e, unref as F, useCssVars as ve, watch as ye, withCtx as I } from "vue";
19
- //#region src/components/vue-ui-wheel.vue
20
- var be = /* @__PURE__ */ e({ default: () => Ve }), xe = ["id"], Se = [
21
- "xmlns",
22
- "viewBox",
23
- "aria-labelledby",
24
- "aria-describedby"
25
- ], Ce = ["id"], we = ["id"], Te = [
26
- "x",
27
- "y",
28
- "width",
29
- "height"
30
- ], Ee = [
31
- "d",
32
- "stroke",
33
- "stroke-width"
34
- ], De = [
35
- "cx",
36
- "cy",
37
- "r",
38
- "stroke",
39
- "stroke-width"
40
- ], Oe = { key: 0 }, ke = [
41
- "x1",
42
- "y1",
43
- "x2",
44
- "y2",
45
- "stroke",
46
- "stroke-width",
47
- "stroke-linecap"
48
- ], Ae = [
49
- "x1",
50
- "y1",
51
- "x2",
52
- "y2",
53
- "stroke",
54
- "stroke-width",
55
- "stroke-linecap"
56
- ], je = { key: 1 }, Me = [
57
- "d",
58
- "fill",
59
- "stroke",
60
- "stroke-width"
61
- ], Ne = [
62
- "d",
63
- "fill",
64
- "stroke",
65
- "stroke-width"
66
- ], Pe = [
67
- "d",
68
- "fill",
69
- "stroke",
70
- "stroke-width"
71
- ], Fe = [
72
- "x1",
73
- "x2",
74
- "y1",
75
- "y2",
76
- "stroke",
77
- "stroke-width",
78
- "stroke-linecap"
79
- ], Ie = [
80
- "d",
81
- "fill",
82
- "stroke",
83
- "stroke-width"
84
- ], Le = ["aria-label"], Re = [
85
- "x",
86
- "y",
87
- "height"
88
- ], ze = [
89
- "x",
90
- "y",
91
- "font-size",
92
- "fill",
93
- "font-weight",
94
- "stroke",
95
- "stroke-width"
96
- ], Be = {
97
- key: 4,
98
- class: "vue-data-ui-watermark"
99
- }, Ve = /*#__PURE__*/ te({
100
- __name: "vue-ui-wheel",
101
- props: {
102
- config: {
103
- type: Object,
104
- default() {
105
- return {};
106
- }
107
- },
108
- dataset: {
109
- type: Object,
110
- default() {
111
- return {};
112
- }
113
- }
114
- },
115
- emits: ["copyAlt"],
116
- setup(e, { expose: te, emit: be }) {
117
- ve((e) => ({
118
- v6abdd623: Lt.value,
119
- v51a03449: Rt.value,
120
- v51a016dc: zt.value
121
- }));
122
- let Ve = ue(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), He = ue(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), Ue = ue(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), { vue_ui_wheel: We } = m(), { isThemeValid: Ge, warnInvalidTheme: Ke } = b(), L = ae(), R = e, qe = be, Je = w(() => !!R.dataset && Object.keys(R.dataset).length), z = M(l()), Ye = M(null), Xe = M(0), B = M(null), Ze = M(null), Qe = M(null), $e = M(null), et = M(0), tt = M(!1), nt = M(!1), V = M(ut());
123
- f({
124
- config: () => V.value,
125
- dataset: () => R.dataset,
126
- component: "VueUiWheel",
127
- rules: [p.noHint]
128
- });
129
- let rt = w(() => V.value.userOptions.useCursorPointer), it = w(() => t({
130
- defaultConfig: {
131
- userOptions: { show: !1 },
132
- style: { chart: {
133
- backgroundColor: "#99999930",
134
- animation: { use: !1 },
135
- layout: {
136
- wheel: { ticks: {
137
- activeColor: "#6A6A6A80",
138
- inactiveColor: "#CACACA80"
139
- } },
140
- innerCircle: { stroke: "#CACACA80" }
141
- }
142
- } }
143
- },
144
- userConfig: V.value.skeletonConfig ?? {}
145
- })), { loading: at, FINAL_DATASET: H } = g({
146
- ..._e(R),
147
- FINAL_CONFIG: V,
148
- prepareConfig: ut,
149
- skeletonDataset: R.config?.skeletonDataset ?? { percentage: 50 },
150
- skeletonConfig: t({
151
- defaultConfig: V.value,
152
- userConfig: it.value
153
- })
154
- }), { userOptionsVisible: ot, setUserOptionsVisibility: st, keepUserOptionState: ct } = re({ config: V.value }), { svgRef: lt } = ie({ config: V.value.style.chart.title });
155
- function ut() {
156
- let e = y({
157
- userConfig: R.config,
158
- defaultConfig: We
159
- }), t = e.theme;
160
- if (!t) return e;
161
- if (!Ge.value(e)) return Ke(e), e;
162
- let n = y({
163
- userConfig: oe[t] || R.config,
164
- defaultConfig: e
165
- });
166
- return y({
167
- userConfig: R.config,
168
- defaultConfig: n
169
- });
170
- }
171
- ye(() => R.config, (e) => {
172
- V.value = ut(), ot.value = !V.value.userOptions.showOnChartHover, vt(), et.value += 1;
173
- }, { deep: !0 });
174
- let { isPrinting: dt, isImaging: ft, generatePdf: pt, generateImage: mt } = h({
175
- elementId: z.value,
176
- fileName: V.value.style.chart.title.text || "vue-ui-wheel",
177
- options: V.value.userOptions.print
178
- }), ht = w(() => V.value.userOptions.show && !V.value.style.chart.title.text), U = M({
179
- size: 360,
180
- height: 360,
181
- width: 360
182
- }), W = M(V.value.style.chart.layout.percentage.fontSize), G = w(() => ({
183
- radius: Math.min(U.value.width, U.value.height) * .9 / 2 * V.value.style.chart.layout.wheel.radiusRatio,
184
- centerX: U.value.width / 2,
185
- centerY: U.value.height / 2
186
- }));
187
- function gt(e, t = 1) {
188
- let n = 29.85;
189
- return {
190
- x: G.value.centerX + G.value.radius * Math.cos(n + e * Math.PI / 180) * t,
191
- y: G.value.centerY + G.value.radius * Math.sin(n + e * Math.PI / 180) * t
192
- };
193
- }
194
- let K = M(V.value.style.chart.animation.use && !L.value ? 0 : H.value.percentage || 0);
195
- ye(() => H.value, (e) => {
196
- V.value.style.chart.animation.use && !L.value ? At(e.percentage) : K.value = e.percentage || 0;
197
- }, { deep: !0 });
198
- let q = he(null), J = he(null);
199
- me(() => {
200
- vt();
201
- });
202
- let _t = w(() => !!V.value.debug);
203
- function vt() {
204
- if (s(R.dataset) && d({
205
- componentName: "VueUiWheel",
206
- type: "dataset",
207
- debug: _t.value
208
- }), V.value.responsive) {
209
- let e = S(() => {
210
- let { width: e, height: t } = ne({
211
- chart: B.value,
212
- title: V.value.style.chart.title.text ? Ze.value : null,
213
- source: Qe.value,
214
- noTitle: $e.value
215
- });
216
- requestAnimationFrame(() => {
217
- U.value.width = e, U.value.height = t, W.value = V.value.style.chart.layout.percentage.fontSize / 360 * Math.min(e, t);
218
- });
219
- });
220
- q.value && (J.value && q.value.unobserve(J.value), q.value.disconnect()), q.value = new ResizeObserver(e), J.value = B.value.parentNode, q.value.observe(J.value);
221
- }
222
- At(H.value.percentage || 0), V.value.style.chart.animation.use && !L.value || (K.value = H.value.percentage || 0);
223
- }
224
- pe(() => {
225
- q.value && (J.value && q.value.unobserve(J.value), q.value.disconnect());
226
- });
227
- function yt([e, t, n], r) {
228
- let i = Math.cos(r), a = Math.sin(r);
229
- return [
230
- e,
231
- t * i - n * a,
232
- t * a + n * i
233
- ];
234
- }
235
- function bt([e, t, n], r) {
236
- let i = r / (r - n);
237
- return [
238
- e * i,
239
- t * i,
240
- n,
241
- i
242
- ];
243
- }
244
- function xt(e, t) {
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, V.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
- return `#${s.toString(16).padStart(2, "0")}${c.toString(16).padStart(2, "0")}${l.toString(16).padStart(2, "0")}`;
247
- }
248
- function St({ 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
- let p = s * Math.PI / 180, m = n, h = n * i, g = [];
250
- for (let n = 0; n < a; n += 1) {
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 = [
252
- s - e,
253
- _ - t,
254
- 0
255
- ], x = [
256
- v - e,
257
- y - t,
258
- 0
259
- ], [ee, te, S] = yt(b, p), [ne, re, ie] = yt(x, p), [ae, oe, , C] = bt([
260
- ee,
261
- te,
262
- S
263
- ], c), [w, T, , E] = bt([
264
- ne,
265
- re,
266
- ie
267
- ], c), D = e + ae, se = t + oe, ce = e + w, le = t + T, ue = (Math.max(S, ie) - -m * Math.sin(p)) / (2 * m * Math.sin(p) || 1), O = !f || f(n), de = V.value.style.chart.layout.wheel.ticks.gradient.show ? r(u, n * Z.value / X.value * (V.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : u, k = xt(O ? de : d, ue), A = Math.max(1.25, l * C * (Math.min(U.value.width, U.value.height) / 360));
268
- g.push({
269
- i: n,
270
- x1: D,
271
- y1: se,
272
- x2: ce,
273
- y2: le,
274
- stroke: A,
275
- color: k,
276
- z: Math.max(S, ie)
277
- });
278
- }
279
- return g.sort((e, t) => e.z - t.z), g;
280
- }
281
- let Ct = w(() => {
282
- if (!V.value.layout === "3d") return null;
283
- let e = X.value, t = V.value.style.chart.layout.wheel.ticks.gradient.show ? r(V.value.style.chart.layout.wheel.ticks.activeColor, 0) : V.value.style.chart.layout.wheel.ticks.activeColor, n = V.value.style.chart.layout.wheel.ticks.inactiveColor, i = V.value.style.chart.layout.wheel.ticks.strokeWidth;
284
- return St({
285
- cx: G.value.centerX,
286
- cy: G.value.centerY,
287
- radius: G.value.radius,
288
- innerRatio: V.value.style.chart.layout.wheel.ticks.sizeRatio,
289
- count: e,
290
- startDeg: -90,
291
- axDeg: V.value.style.chart.layout.wheel.tiltAngle3d,
292
- f: Math.min(U.value.width, U.value.height) * 1.45,
293
- baseStroke: i,
294
- activeColor: t,
295
- inactiveColor: n,
296
- getActive: (e) => K.value > e * Z.value
297
- });
298
- });
299
- function wt({ cx: e, cy: t, r: n, count: r = 180, startDeg: i = -90, axDeg: a = 50, f: o }) {
300
- let s = a * Math.PI / 180, c = [], l = 0;
301
- for (let a = 0; a < r; a += 1) {
302
- let u = (a / r * 360 + i) * Math.PI / 180, [d, f, p] = yt([
303
- n * Math.cos(u),
304
- n * Math.sin(u),
305
- 0
306
- ], s), [m, h, , g] = bt([
307
- d,
308
- f,
309
- p
310
- ], o);
311
- l += g, c.push([e + m, t + h]);
312
- }
313
- let u = `M ${c[0][0]} ${c[0][1]}`;
314
- for (let e = 1; e < c.length; e += 1) u += ` L ${c[e][0]} ${c[e][1]}`;
315
- u += " Z";
316
- let d = l / r;
317
- return {
318
- d: u,
319
- avgScale: d,
320
- pts: c
321
- };
322
- }
323
- let Y = w(() => {
324
- if (V.value.layout !== "3d") return null;
325
- let e = Math.min(U.value.width, U.value.height) * 1.45, t = V.value.style.chart.layout.wheel.tiltAngle3d, n = G.value.radius, { pts: r, avgScale: i } = (() => {
326
- let r = n, i = t, { d: a, avgScale: o, pts: s } = wt({
327
- cx: G.value.centerX,
328
- cy: G.value.centerY,
329
- r,
330
- startDeg: -90,
331
- axDeg: i,
332
- f: e
333
- });
334
- return {
335
- pts: s,
336
- avgScale: o
337
- };
338
- })(), a = Infinity, o = Infinity, s = -Infinity, c = -Infinity;
339
- for (let [e, t] of r) e < a && (a = e), t < o && (o = t), e > s && (s = e), t > c && (c = t);
340
- let l = V.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(U.value.width, U.value.height), u = V.value.style.chart.layout.innerCircle.strokeWidth || 0, d = .5 * Math.max(l, u * (i || 1)), f = Math.max(0, Number(V.value.style.chart.layout.wheel.ticks.depth3d) || 0), p = d;
341
- return {
342
- x: a - p,
343
- y: o - f - p,
344
- w: s - a + 2 * p,
345
- h: c - (o - f) + 2 * p
346
- };
347
- });
348
- function Tt(e) {
349
- let t = Math.min(U.value.width, U.value.height) * 1.45, { d: n, avgScale: r } = wt({
350
- cx: G.value.centerX,
351
- cy: G.value.centerY,
352
- r: e,
353
- startDeg: -90,
354
- axDeg: V.value.style.chart.layout.wheel.tiltAngle3d,
355
- f: t
356
- }), i = (V.value.style.chart.layout.innerCircle.strokeWidth || 1) * r;
357
- return {
358
- d: n,
359
- stroke: V.value.style.chart.layout.innerCircle.stroke,
360
- strokeWidth: i
361
- };
362
- }
363
- let Et = w(() => Tt(Math.max(0, G.value.radius * .8 * V.value.style.chart.layout.innerCircle.radiusRatio)));
364
- function Dt({ cx: e, cy: t, r: n, aRad: r, ax: i, f: a }) {
365
- let [o, s, c] = yt([
366
- n * Math.cos(r),
367
- n * Math.sin(r),
368
- 0
369
- ], i), [l, u, , d] = bt([
370
- o,
371
- s,
372
- c
373
- ], a);
374
- return {
375
- x: e + l,
376
- y: t + u,
377
- z: c,
378
- s: d
379
- };
380
- }
381
- function Ot({ 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
- let p = s * Math.PI / 180, m = n, h = n * i, g = 2 * Math.PI / a, _ = [];
383
- for (let n = 0; n < a; n += 1) {
384
- let i = o * Math.PI / 180 + g * n, s = i + g * Math.min(1, V.value.style.chart.layout.wheel.ticks.spacingRatio3d), v = Dt({
385
- cx: e,
386
- cy: t + f,
387
- r: m,
388
- aRad: i,
389
- ax: p,
390
- f: c
391
- }), y = Dt({
392
- cx: e,
393
- cy: t + f,
394
- r: m,
395
- aRad: s,
396
- ax: p,
397
- f: c
398
- }), b = Dt({
399
- cx: e,
400
- cy: t + f,
401
- r: h,
402
- aRad: s,
403
- ax: p,
404
- f: c
405
- }), x = Dt({
406
- cx: e,
407
- cy: t + f,
408
- r: h,
409
- aRad: i,
410
- ax: p,
411
- f: c
412
- }), ee = (v.z + y.z + x.z + b.z) / 4, te = xt(!d || d(n) ? V.value.style.chart.layout.wheel.ticks.gradient.show ? r(V.value.style.chart.layout.wheel.ticks.activeColor, 100 / a * n / 100 * (V.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : l : u, (() => {
413
- let e = m * Math.sin(p) || 1;
414
- return (ee - -e) / (2 * e);
415
- })()), S = `M ${v.x} ${v.y} L ${y.x} ${y.y} L ${b.x} ${b.y} L ${x.x} ${x.y} Z`;
416
- _.push({
417
- i: n,
418
- d: S,
419
- fill: te,
420
- z: ee
421
- });
422
- }
423
- return _.sort((e, t) => e.z - t.z), _;
424
- }
425
- let kt = w(() => {
426
- if (V.value.layout !== "3d") return null;
427
- let e = X.value;
428
- return (t) => Ot({
429
- cx: G.value.centerX,
430
- cy: G.value.centerY,
431
- radius: G.value.radius,
432
- innerRatio: V.value.style.chart.layout.wheel.ticks.sizeRatio,
433
- count: e,
434
- startDeg: -90,
435
- axDeg: V.value.style.chart.layout.wheel.tiltAngle3d,
436
- f: Math.min(U.value.width, U.value.height) * 1.45,
437
- activeColor: V.value.style.chart.layout.wheel.ticks.activeColor,
438
- inactiveColor: V.value.style.chart.layout.wheel.ticks.inactiveColor,
439
- getActive: (t) => K.value > 100 / e * t,
440
- Y: t
441
- });
442
- });
443
- function At(e) {
444
- let t = V.value.style.chart.animation.speed, n = Math.abs(e - K.value) / (t * 120);
445
- function r() {
446
- K.value < e ? K.value = Math.min(K.value + n, e) : K.value > e && (K.value = Math.max(K.value - n, e)), K.value !== e && requestAnimationFrame(r);
447
- }
448
- r();
449
- }
450
- let X = w(() => (V.value.debug && V.value.style.chart.layout.wheel.ticks.quantity < 12 && console.warn("VueUiWheel - The min number of ticks is 12"), V.value.debug && V.value.style.chart.layout.wheel.ticks.quantity > 200 && console.warn("VueUiWheel - The max number of ticks is 200"), Math.max(12, Math.min(V.value.style.chart.layout.wheel.ticks.quantity, 200)))), Z = w(() => 100 / X.value), jt = w(() => {
451
- let e = [];
452
- for (let t = 0; t < X.value; t += 1) {
453
- let n = K.value > t * Z.value ? V.value.style.chart.layout.wheel.ticks.activeColor : V.value.style.chart.layout.wheel.ticks.inactiveColor, { x: i, y: a } = gt(U.value.size / X.value * t), { x: o, y: s } = gt(U.value.size / X.value * t, V.value.style.chart.layout.wheel.ticks.sizeRatio);
454
- e.push({
455
- x1: i,
456
- y1: a,
457
- x2: o,
458
- y2: s,
459
- color: V.value.style.chart.layout.wheel.ticks.gradient.show ? r(n, t * Z.value / X.value * (V.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : n
460
- });
461
- }
462
- return e;
463
- }), Mt = w(() => c({ series: jt.value.map((e) => ({
464
- name: "",
465
- value: 1,
466
- color: e.color
467
- })) }, G.value.centerX, G.value.centerY, G.value.radius, G.value.radius, 1.99999, 2, 1, 360, 105.25, G.value.radius * (1 - V.value.style.chart.layout.wheel.ticks.sizeRatio))), Nt = M(!1);
468
- function Pt(e) {
469
- Nt.value = e, Xe.value += 1;
470
- }
471
- let Q = M(!1);
472
- function Ft() {
473
- Q.value = !Q.value;
474
- }
475
- async function It({ scale: e = 2 } = {}) {
476
- if (!B.value) return;
477
- let { width: t, height: n } = B.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await x({
478
- domElement: B.value,
479
- base64: !0,
480
- img: !0,
481
- scale: e
482
- });
483
- return {
484
- imageUri: i,
485
- base64: a,
486
- title: V.value.style.chart.title.text,
487
- width: t,
488
- height: n,
489
- aspectRatio: r
490
- };
491
- }
492
- let Lt = w(() => V.value.style.chart.layout.wheel.ticks.strokeWidth * 2), Rt = w(() => V.value.style.chart.layout.wheel.ticks.strokeWidth * 2 * .75), zt = w(() => V.value.style.chart.layout.wheel.ticks.strokeWidth), $ = w(() => Math.max(1, Math.min(20, V.value.style.chart.layout.wheel.ticks.depth3d))), Bt = w(() => V.value.style.chart.backgroundColor), { exportSvg: Vt, getSvg: Ht } = v({
493
- svg: lt,
494
- title: w(() => V.value.style.chart.title),
495
- backgroundColor: Bt,
496
- stretchTitle: !0
497
- });
498
- async function Ut({ isCb: e }) {
499
- nt.value = !0, await de();
500
- try {
501
- if (e) {
502
- let { blob: e, url: t, text: n, dataUrl: r } = await Ht();
503
- await Promise.resolve(V.value.userOptions.callbacks.svg({
504
- blob: e,
505
- url: t,
506
- text: n,
507
- dataUrl: r
508
- }));
509
- } else await Promise.resolve(Vt());
510
- } finally {
511
- nt.value = !1;
512
- }
513
- }
514
- function Wt(e) {
515
- if (e?.stage === "start") {
516
- tt.value = !0;
517
- return;
518
- }
519
- if (e?.stage === "end") {
520
- tt.value = !1;
521
- return;
522
- }
523
- mt();
524
- }
525
- async function Gt() {
526
- if (qe("copyAlt", {
527
- config: V.value,
528
- dataset: H.value
529
- }), !V.value.userOptions.callbacks.altCopy) {
530
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
531
- return;
532
- }
533
- await Promise.resolve(V.value.userOptions.callbacks.altCopy({
534
- config: V.value,
535
- dataset: H.value
536
- }));
537
- }
538
- let Kt = w(() => `${z.value}-title`), qt = w(() => `${z.value}-desc`), Jt = w(() => o(V.value.style.chart.layout.percentage.formatter, a(K.value), i({
539
- v: a(K.value),
540
- s: "%",
541
- r: V.value.style.chart.layout.percentage.rounding
542
- }))), Yt = w(() => V.value.style.chart.title.text || ""), Xt = w(() => at.value ? "..." : `${Jt.value}`);
543
- return te({
544
- getImage: It,
545
- generatePdf: pt,
546
- generateImage: mt,
547
- generateSvg: Ut,
548
- toggleAnnotator: Ft,
549
- toggleFullscreen: Pt,
550
- copyAlt: Gt
551
- }), (e, t) => (j(), D("div", {
552
- class: k(["vue-ui-wheel", {
553
- "vue-data-ui-component": !0,
554
- "vue-ui-wheel-3d-wrap": V.value.layout === "3d"
555
- }]),
556
- ref_key: "wheelChart",
557
- ref: B,
558
- id: z.value,
559
- style: fe(`font-family:${V.value.style.fontFamily};width:100%; text-align:center;background:${V.value.style.chart.backgroundColor};${V.value.responsive ? "height:100%" : ""}`),
560
- onMouseenter: t[0] ||= () => F(st)(!0),
561
- onMouseleave: t[1] ||= () => F(st)(!1)
562
- }, [
563
- V.value.userOptions.buttons.annotator ? (j(), T(F(Ve), {
564
- key: 0,
565
- svgRef: F(lt),
566
- backgroundColor: V.value.style.chart.backgroundColor,
567
- color: V.value.style.chart.color,
568
- active: Q.value,
569
- isCursorPointer: rt.value,
570
- onClose: Ft
571
- }, {
572
- "annotator-action-close": I(() => [P(e.$slots, "annotator-action-close", {}, void 0, !0)]),
573
- "annotator-action-color": I(({ color: t }) => [P(e.$slots, "annotator-action-color", A(O({ color: t })), void 0, !0)]),
574
- "annotator-action-draw": I(({ mode: t }) => [P(e.$slots, "annotator-action-draw", A(O({ mode: t })), void 0, !0)]),
575
- "annotator-action-undo": I(({ disabled: t }) => [P(e.$slots, "annotator-action-undo", A(O({ disabled: t })), void 0, !0)]),
576
- "annotator-action-redo": I(({ disabled: t }) => [P(e.$slots, "annotator-action-redo", A(O({ disabled: t })), void 0, !0)]),
577
- "annotator-action-delete": I(({ disabled: t }) => [P(e.$slots, "annotator-action-delete", A(O({ disabled: t })), void 0, !0)]),
578
- _: 3
579
- }, 8, [
580
- "svgRef",
581
- "backgroundColor",
582
- "color",
583
- "active",
584
- "isCursorPointer"
585
- ])) : E("", !0),
586
- ht.value ? (j(), D("div", {
587
- key: 1,
588
- ref_key: "noTitle",
589
- ref: $e,
590
- class: "vue-data-ui-no-title-space",
591
- style: "height:36px; width: 100%;background:transparent"
592
- }, null, 512)) : E("", !0),
593
- V.value.style.chart.title.text ? (j(), D("div", {
594
- key: 2,
595
- ref_key: "chartTitle",
596
- ref: Ze,
597
- style: "width:100%;background:transparent;padding-bottom:12px"
598
- }, [(j(), T(ee, {
599
- key: `title_${et.value}`,
600
- config: {
601
- title: {
602
- cy: "wheel-title",
603
- ...V.value.style.chart.title
604
- },
605
- subtitle: {
606
- cy: "wheel-subtitle",
607
- ...V.value.style.chart.title.subtitle
608
- }
609
- }
610
- }, null, 8, ["config"]))], 512)) : E("", !0),
611
- V.value.userOptions.show && Je.value && (F(ct) || F(ot)) ? (j(), T(F(He), {
612
- ref_key: "details",
613
- ref: Ye,
614
- key: `user_options_${Xe.value}`,
615
- backgroundColor: V.value.style.chart.backgroundColor,
616
- color: V.value.style.chart.color,
617
- isPrinting: F(dt),
618
- isImaging: F(ft),
619
- uid: z.value,
620
- hasPdf: V.value.userOptions.buttons.pdf,
621
- hasImg: V.value.userOptions.buttons.img,
622
- hasSvg: V.value.userOptions.buttons.svg,
623
- hasFullscreen: V.value.userOptions.buttons.fullscreen,
624
- hasAltCopy: V.value.userOptions.buttons.altCopy,
625
- hasXls: !1,
626
- isFullscreen: Nt.value,
627
- position: V.value.userOptions.position,
628
- titles: { ...V.value.userOptions.buttonTitles },
629
- hasAnnotator: V.value.userOptions.buttons.annotator,
630
- isAnnotation: Q.value,
631
- chartElement: B.value,
632
- callbacks: V.value.userOptions.callbacks,
633
- printScale: V.value.userOptions.print.scale,
634
- isCursorPointer: rt.value,
635
- onToggleFullscreen: Pt,
636
- onGeneratePdf: F(pt),
637
- onGenerateImage: Wt,
638
- onGenerateSvg: Ut,
639
- onToggleAnnotator: Ft,
640
- onCopyAlt: Gt,
641
- style: fe({ visibility: F(ct) ? F(ot) ? "visible" : "hidden" : "visible" })
642
- }, ce({ _: 2 }, [
643
- e.$slots.menuIcon ? {
644
- name: "menuIcon",
645
- fn: I(({ isOpen: t, color: n }) => [P(e.$slots, "menuIcon", A(O({
646
- isOpen: t,
647
- color: n
648
- })), void 0, !0)]),
649
- key: "0"
650
- } : void 0,
651
- e.$slots.optionPdf ? {
652
- name: "optionPdf",
653
- fn: I(() => [P(e.$slots, "optionPdf", {}, void 0, !0)]),
654
- key: "1"
655
- } : void 0,
656
- e.$slots.optionImg ? {
657
- name: "optionImg",
658
- fn: I(() => [P(e.$slots, "optionImg", {}, void 0, !0)]),
659
- key: "2"
660
- } : void 0,
661
- e.$slots.optionSvg ? {
662
- name: "optionSvg",
663
- fn: I(() => [P(e.$slots, "optionSvg", {}, void 0, !0)]),
664
- key: "3"
665
- } : void 0,
666
- e.$slots.optionFullscreen ? {
667
- name: "optionFullscreen",
668
- fn: I(({ toggleFullscreen: t, isFullscreen: n }) => [P(e.$slots, "optionFullscreen", A(O({
669
- toggleFullscreen: t,
670
- isFullscreen: n
671
- })), void 0, !0)]),
672
- key: "4"
673
- } : void 0,
674
- e.$slots.optionAnnotator ? {
675
- name: "optionAnnotator",
676
- fn: I(({ toggleAnnotator: t, isAnnotator: n }) => [P(e.$slots, "optionAnnotator", A(O({
677
- toggleAnnotator: t,
678
- isAnnotator: n
679
- })), void 0, !0)]),
680
- key: "5"
681
- } : void 0,
682
- e.$slots.optionAltCopy ? {
683
- name: "optionAltCopy",
684
- fn: I(({ altCopy: t }) => [P(e.$slots, "optionAltCopy", A(O({ altCopy: t })), void 0, !0)]),
685
- key: "6"
686
- } : void 0,
687
- e.$slots["custom-menu-before"] ? {
688
- name: "custom-menu-before",
689
- fn: I(() => [P(e.$slots, "custom-menu-before", {}, void 0, !0)]),
690
- key: "7"
691
- } : void 0,
692
- e.$slots["custom-menu-after"] ? {
693
- name: "custom-menu-after",
694
- fn: I(() => [P(e.$slots, "custom-menu-after", {}, void 0, !0)]),
695
- key: "8"
696
- } : void 0
697
- ]), 1032, [
698
- "backgroundColor",
699
- "color",
700
- "isPrinting",
701
- "isImaging",
702
- "uid",
703
- "hasPdf",
704
- "hasImg",
705
- "hasSvg",
706
- "hasFullscreen",
707
- "hasAltCopy",
708
- "isFullscreen",
709
- "position",
710
- "titles",
711
- "hasAnnotator",
712
- "isAnnotation",
713
- "chartElement",
714
- "callbacks",
715
- "printScale",
716
- "isCursorPointer",
717
- "onGeneratePdf",
718
- "style"
719
- ])) : E("", !0),
720
- (j(), D("svg", {
721
- ref_key: "svgRef",
722
- ref: lt,
723
- xmlns: F(u),
724
- class: k({
725
- "vue-data-ui-fullscreen--on": Nt.value,
726
- "vue-data-ui-fulscreen--off": !Nt.value,
727
- "vue-ui-wheel-3d-svg": V.value.layout === "3d"
728
- }),
729
- viewBox: V.value.layout === "3d" && !V.value.responsive ? `${Y.value?.x - 10} ${Y.value?.y ?? 0} ${Y.value?.w + 20 ?? Math.max(10, U.value.width)} ${Y.value?.h ?? Math.max(10, U.value.height)}` : `0 0 ${Math.max(10, U.value.width)} ${Math.max(10, U.value.height)}`,
730
- style: fe(`max-width:100%;overflow:visible;background:transparent;color:${V.value.style.chart.color}`),
731
- role: "img",
732
- "aria-labelledby": Kt.value,
733
- "aria-describedby": qt.value
734
- }, [
735
- se("title", { id: Kt.value }, ge(Yt.value), 9, Ce),
736
- se("desc", { id: qt.value }, ge(Xt.value), 9, we),
737
- le(F(Ue)),
738
- e.$slots["chart-background"] ? (j(), D("foreignObject", {
739
- key: 0,
740
- x: V.value.layout === "3d" && !V.value.responsive ? Y.value?.x - 10 : 0,
741
- y: V.value.layout === "3d" && !V.value.responsive ? Y.value?.y ?? 0 : 0,
742
- width: V.value.layout === "3d" && !V.value.responsive ? Y.value?.w + 20 ?? Math.max(10, U.value.width) : Math.max(10, U.value.width),
743
- height: V.value.layout === "3d" && !V.value.responsive ? Y.value?.h ?? Math.max(10, U.value.height) : Math.max(10, U.value.height),
744
- style: { pointerEvents: "none" }
745
- }, [P(e.$slots, "chart-background", {}, void 0, !0)], 8, Te)) : E("", !0),
746
- V.value.layout === "3d" && Et.value ? (j(), D("path", {
747
- key: 1,
748
- class: "vue-ui-wheel-inner-circle",
749
- d: Et.value.d,
750
- stroke: V.value.style.chart.layout.innerCircle.stroke,
751
- "stroke-width": V.value.style.chart.layout.innerCircle.strokeWidth,
752
- fill: "none"
753
- }, null, 8, Ee)) : V.value.style.chart.layout.innerCircle.show ? (j(), D("circle", {
754
- key: 2,
755
- class: "vue-ui-wheel-inner-circle",
756
- cx: G.value.centerX,
757
- cy: G.value.centerY,
758
- r: Math.max(0, G.value.radius * V.value.style.chart.layout.innerCircle.radiusRatio * .8),
759
- stroke: V.value.style.chart.layout.innerCircle.stroke,
760
- "stroke-width": V.value.style.chart.layout.innerCircle.strokeWidth,
761
- fill: "none"
762
- }, null, 8, De)) : E("", !0),
763
- V.value.layout === "3d" ? (j(), D(C, { key: 3 }, [V.value.style.chart.layout.wheel.ticks.type === "classic" ? (j(), D("g", Oe, [(j(!0), D(C, null, N($.value, (e) => (j(), D("g", null, [(j(!0), D(C, null, N(Ct.value || [], (t) => (j(), D("line", {
764
- key: t.i,
765
- x1: t.x1,
766
- y1: t.y1 - e,
767
- x2: t.x2,
768
- y2: t.y2 - e,
769
- stroke: F(n)(t.color, .25 * e / 5),
770
- "stroke-width": V.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(U.value.width, U.value.height),
771
- "stroke-linecap": V.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
772
- class: k({
773
- "vue-ui-wheel-tick": !0,
774
- "vue-ui-tick-animated": V.value.style.chart.animation.use && !F(L) && t.i * Z.value <= K.value
775
- })
776
- }, null, 10, ke))), 128))]))), 256)), (j(!0), D(C, null, N(Ct.value || [], (e) => (j(), D("line", {
777
- key: e.i,
778
- x1: e.x1,
779
- y1: e.y1 - $.value,
780
- x2: e.x2,
781
- y2: e.y2 - $.value,
782
- stroke: e.color,
783
- "stroke-width": V.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(U.value.width, U.value.height),
784
- "stroke-linecap": V.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
785
- class: k({
786
- "vue-ui-wheel-tick": !0,
787
- "vue-ui-tick-animated": V.value.style.chart.animation.use && !F(L) && e.i * Z.value <= K.value
788
- })
789
- }, null, 10, Ae))), 128))])) : (j(), D("g", je, [(j(!0), D(C, null, N($.value, (e) => (j(), D("g", null, [(j(!0), D(C, null, N(kt.value(-e) || [], (e) => (j(), D("path", {
790
- key: e.i,
791
- d: e.d,
792
- fill: V.value.style.chart.layout.wheel.ticks.inactiveColor,
793
- stroke: V.value.style.chart.layout.wheel.ticks.stroke,
794
- "stroke-width": V.value.style.chart.layout.wheel.ticks.strokeWidth,
795
- "stroke-linecap": "round",
796
- "stroke-linejoin": "round",
797
- class: "vue-ui-wheel-tick"
798
- }, null, 8, Me))), 128)), (j(!0), D(C, null, N(kt.value(-e) || [], (t) => (j(), D("path", {
799
- key: t.i,
800
- d: t.d,
801
- fill: F(n)(t.fill, .5 * e / $.value),
802
- stroke: V.value.style.chart.layout.wheel.ticks.stroke,
803
- "stroke-width": V.value.style.chart.layout.wheel.ticks.strokeWidth,
804
- "stroke-linecap": "round",
805
- "stroke-linejoin": "round",
806
- class: k({
807
- "vue-ui-wheel-tick": !0,
808
- "vue-ui-tick-animated-3d": V.value.style.chart.animation.use && !F(L) && t.i * Z.value <= K.value
809
- })
810
- }, null, 10, Ne))), 128))]))), 256)), se("g", null, [(j(!0), D(C, null, N(kt.value(-$.value) || [], (e) => (j(), D("path", {
811
- key: e.i,
812
- d: e.d,
813
- fill: e.fill,
814
- stroke: V.value.style.chart.layout.wheel.ticks.stroke,
815
- "stroke-width": V.value.style.chart.layout.wheel.ticks.strokeWidth,
816
- "stroke-linecap": "round",
817
- "stroke-linejoin": "round",
818
- class: k({
819
- "vue-ui-wheel-tick": !0,
820
- "vue-ui-tick-animated-3d": V.value.style.chart.animation.use && !F(L) && e.i * Z.value <= K.value
821
- })
822
- }, null, 10, Pe))), 128))])]))], 64)) : (j(), D(C, { key: 4 }, [V.value.style.chart.layout.wheel.ticks.type === "classic" ? (j(!0), D(C, { key: 0 }, N(jt.value, (e, t) => (j(), D("line", {
823
- x1: e.x1,
824
- x2: e.x2,
825
- y1: e.y1,
826
- y2: e.y2,
827
- stroke: e.color,
828
- "stroke-width": V.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(U.value.width, U.value.height),
829
- "stroke-linecap": V.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
830
- class: k({
831
- "vue-ui-wheel-tick": !0,
832
- "vue-ui-tick-animated": V.value.style.chart.animation.use && !F(L) && t * Z.value <= K.value
833
- })
834
- }, null, 10, Fe))), 256)) : (j(!0), D(C, { key: 1 }, N(Mt.value, (e, t) => (j(), D("path", {
835
- d: e.arcSlice,
836
- fill: e.color,
837
- class: k({
838
- "vue-ui-wheel-tick": !0,
839
- "vue-ui-tick-animated": V.value.style.chart.animation.use && !F(L) && t * Z.value <= K.value
840
- }),
841
- stroke: V.value.style.chart.layout.wheel.ticks.stroke,
842
- "stroke-width": V.value.style.chart.layout.wheel.ticks.strokeWidth
843
- }, null, 10, Ie))), 256))], 64)),
844
- V.value.style.chart.layout.percentage.show ? (j(), D("g", {
845
- key: 5,
846
- role: "status",
847
- "aria-live": "polite",
848
- "aria-label": F(at) ? "..." : Jt.value
849
- }, [F(at) ? (j(), D("rect", {
850
- key: 0,
851
- x: G.value.centerX - 40,
852
- y: G.value.centerY - W.value / 2,
853
- width: 80,
854
- height: W.value,
855
- fill: "#6A6A6A80",
856
- rx: "3"
857
- }, null, 8, Re)) : (j(), D("text", {
858
- key: 1,
859
- "aria-hidden": "true",
860
- x: G.value.centerX + V.value.style.chart.layout.percentage.offsetX,
861
- y: G.value.centerY + W.value / 3 + V.value.style.chart.layout.percentage.offsetY,
862
- "font-size": W.value,
863
- fill: V.value.style.chart.layout.wheel.ticks.gradient.show ? F(r)(V.value.style.chart.layout.wheel.ticks.activeColor, K.value / 100 * (V.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : V.value.style.chart.layout.wheel.ticks.activeColor,
864
- "text-anchor": "middle",
865
- "font-weight": V.value.style.chart.layout.percentage.bold ? "bold" : "normal",
866
- style: { "font-variant-numeric": "tabluar-nums" },
867
- stroke: V.value.style.chart.layout.percentage.stroke,
868
- "stroke-width": V.value.style.chart.layout.percentage.strokeWidth,
869
- "stroke-linecap": "round",
870
- "stroke-linejoin": "round",
871
- "paint-order": "stroke fill",
872
- class: k({ "vue-ui-wheel-label": V.value.layout === "3d" })
873
- }, ge(Jt.value), 11, ze))], 8, Le)) : E("", !0),
874
- P(e.$slots, "svg", { svg: {
875
- ...U.value,
876
- isPrintingImg: F(dt) || F(ft) || tt.value,
877
- isPrintingSvg: nt.value
878
- } }, void 0, !0)
879
- ], 14, Se)),
880
- e.$slots.watermark ? (j(), D("div", Be, [P(e.$slots, "watermark", A(O({ isPrinting: F(dt) || F(ft) || tt.value || nt.value })), void 0, !0)])) : E("", !0),
881
- e.$slots.source ? (j(), D("div", {
882
- key: 5,
883
- ref_key: "source",
884
- ref: Qe,
885
- dir: "auto"
886
- }, [P(e.$slots, "source", {}, void 0, !0)], 512)) : E("", !0),
887
- P(e.$slots, "skeleton", {}, () => [F(at) ? (j(), T(_, { key: 0 })) : E("", !0)], !0)
888
- ], 46, xe));
889
- }
890
- }, [["__scopeId", "data-v-8da34f59"]]);
891
- //#endregion
892
- export { be as n, Ve as t };