vue-data-ui 2.3.27 → 2.3.29

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 (183) hide show
  1. package/README.md +17 -1
  2. package/dist/{Arrow-HROOtfWV.cjs → Arrow-B8z06v67.cjs} +1 -1
  3. package/dist/{Arrow-O38M_J_k.js → Arrow-Bh7WeO_g.js} +1 -1
  4. package/dist/{BaseIcon-D8FXGup9.js → BaseIcon-BG_bJS3R.js} +1 -1
  5. package/dist/{BaseIcon-CiO8gP9x.cjs → BaseIcon-DDCJA3rm.cjs} +1 -1
  6. package/dist/{DataTable-EqeVt-K-.js → DataTable-CsPidn0_.js} +23 -20
  7. package/dist/DataTable-Doh_4M84.cjs +1 -0
  8. package/dist/{Legend-C_lBCmBu.cjs → Legend-B20rRwGi.cjs} +1 -1
  9. package/dist/{Legend-8eVERYMn.js → Legend-CkQ_zypV.js} +1 -1
  10. package/dist/{Shape-DvcgW6uK.js → Shape-B4gGeBLI.js} +1 -1
  11. package/dist/{Shape-D8RdmYWq.cjs → Shape-B8O8_E6l.cjs} +1 -1
  12. package/dist/{Slicer-BvYL7yVK.cjs → Slicer-BXveU40S.cjs} +1 -1
  13. package/dist/{Slicer-CH_5wnFM.js → Slicer-DaEfxscP.js} +1 -1
  14. package/dist/{Title-B9iq63n1.cjs → Title-BU6E8Xld.cjs} +1 -1
  15. package/dist/{Title-C3Ez1ceq.js → Title-eBTH8iGJ.js} +1 -1
  16. package/dist/{Tooltip-7SRMoiu-.js → Tooltip-B11OahTD.js} +1 -1
  17. package/dist/{Tooltip-DcDEanxk.cjs → Tooltip-Oicp_EIo.cjs} +1 -1
  18. package/dist/documentation/installation.md +1 -1
  19. package/dist/{index-DiWO-_ca.js → index-BlXzlBwZ.js} +447 -364
  20. package/dist/index-hKWfT7Wa.cjs +4 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +66 -0
  23. package/dist/types/vue-data-ui.d.ts +66 -0
  24. package/dist/{useNestedProp-DNX5EefQ.js → useNestedProp-BoNl5H_z.js} +1 -1
  25. package/dist/{useNestedProp-BtqgWTf9.cjs → useNestedProp-Cggpoz7e.cjs} +1 -1
  26. package/dist/{usePrinter-BD40aUzH.js → usePrinter-CZ8F5Cth.js} +1 -1
  27. package/dist/{usePrinter-Q1J--baX.cjs → usePrinter-DoYKBzst.cjs} +1 -1
  28. package/dist/{vue-data-ui-GHpxkf8a.js → vue-data-ui-BOqzG_nZ.js} +57 -57
  29. package/dist/{vue-data-ui-yd5q4Ura.cjs → vue-data-ui-CGgiWEo3.cjs} +1 -1
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +6 -6
  32. package/dist/{vue-ui-3d-bar-CAmoj5dT.js → vue-ui-3d-bar-CjnVg4YI.js} +342 -294
  33. package/dist/vue-ui-3d-bar-CpntMt7p.cjs +19 -0
  34. package/dist/{vue-ui-accordion-ogVvFfQy.cjs → vue-ui-accordion-CTYvdLLH.cjs} +1 -1
  35. package/dist/{vue-ui-accordion-CiNdgRO9.js → vue-ui-accordion-wHRG3nXl.js} +3 -3
  36. package/dist/vue-ui-age-pyramid-DDiL1Zje.cjs +1 -0
  37. package/dist/{vue-ui-age-pyramid-BrTpbEha.js → vue-ui-age-pyramid-vmCwgRy9.js} +258 -219
  38. package/dist/{vue-ui-annotator-B9IqZ-Hy.js → vue-ui-annotator-9FGJdNLY.js} +1 -1
  39. package/dist/{vue-ui-annotator-QbetAXoj.cjs → vue-ui-annotator-DQ3wKf9n.cjs} +1 -1
  40. package/dist/{vue-ui-candlestick-BvRwlc3d.cjs → vue-ui-candlestick-6joQ9JKQ.cjs} +1 -1
  41. package/dist/{vue-ui-candlestick-XjjwFaDO.js → vue-ui-candlestick-DpMr2r0i.js} +9 -9
  42. package/dist/{vue-ui-carousel-table-DtxcnSEp.cjs → vue-ui-carousel-table-BV0EOLqU.cjs} +1 -1
  43. package/dist/{vue-ui-carousel-table-KYENY5gp.js → vue-ui-carousel-table-CgR4ADOz.js} +4 -4
  44. package/dist/{vue-ui-chestnut-DfIcguJd.js → vue-ui-chestnut-Ca2878kV.js} +439 -347
  45. package/dist/vue-ui-chestnut-CxoCcw_B.cjs +6 -0
  46. package/dist/{vue-ui-cursor-C4pJe90O.js → vue-ui-cursor-BW8C6oUc.js} +2 -2
  47. package/dist/{vue-ui-cursor-COS_MXr8.cjs → vue-ui-cursor-DxF_gXQf.cjs} +1 -1
  48. package/dist/{vue-ui-dashboard-DNOjWStr.cjs → vue-ui-dashboard-BGrVyITN.cjs} +1 -1
  49. package/dist/{vue-ui-dashboard-B_NUnxEF.js → vue-ui-dashboard-DN4nErBZ.js} +2 -2
  50. package/dist/{vue-ui-digits-uufqLbRt.js → vue-ui-digits-CmSFSs5S.js} +2 -2
  51. package/dist/{vue-ui-digits-Vx5prxaT.cjs → vue-ui-digits-CpSKBG2c.cjs} +1 -1
  52. package/dist/vue-ui-donut-BqfRwAIM.js +857 -0
  53. package/dist/vue-ui-donut-C29yXH3H.cjs +1 -0
  54. package/dist/vue-ui-donut-evolution-COFG73Xl.cjs +1 -0
  55. package/dist/vue-ui-donut-evolution-DIR7yBUC.js +839 -0
  56. package/dist/{vue-ui-dumbbell-z_Ck4W33.cjs → vue-ui-dumbbell-1NA60u3h.cjs} +2 -2
  57. package/dist/{vue-ui-dumbbell-KvrVLLw6.js → vue-ui-dumbbell-BASuPAvI.js} +202 -187
  58. package/dist/{vue-ui-flow-Dg4dkrcd.cjs → vue-ui-flow-DBK7d0DQ.cjs} +1 -1
  59. package/dist/{vue-ui-flow-BjMikE9b.js → vue-ui-flow-wq0aqc5r.js} +98 -93
  60. package/dist/vue-ui-galaxy-BgdVvk4N.cjs +1 -0
  61. package/dist/{vue-ui-galaxy-BdgveN18.js → vue-ui-galaxy-CFQ2hQAl.js} +180 -144
  62. package/dist/{vue-ui-gauge-D8pokfoA.cjs → vue-ui-gauge-C4_kEbgg.cjs} +1 -1
  63. package/dist/{vue-ui-gauge-D01FLnNz.js → vue-ui-gauge-CIN265dN.js} +158 -149
  64. package/dist/vue-ui-gizmo-BpT3iwC9.cjs +1 -0
  65. package/dist/{vue-ui-gizmo-Cp-EftjP.js → vue-ui-gizmo-DRXWEpqU.js} +63 -49
  66. package/dist/vue-ui-heatmap-CVD7FVfk.cjs +1 -0
  67. package/dist/vue-ui-heatmap-Dc0ft_Ga.js +644 -0
  68. package/dist/{vue-ui-kpi-D6rVKouk.js → vue-ui-kpi-DDL1TvBP.js} +19 -10
  69. package/dist/{vue-ui-kpi-PWurAGxE.cjs → vue-ui-kpi-WDZIt76s.cjs} +1 -1
  70. package/dist/{vue-ui-mini-loader-YV68i0nk.js → vue-ui-mini-loader-B2C5U55l.js} +2 -2
  71. package/dist/{vue-ui-mini-loader-BsypWozL.cjs → vue-ui-mini-loader-BcGSpUfg.cjs} +1 -1
  72. package/dist/{vue-ui-molecule-Bx3fXHnw.cjs → vue-ui-molecule-C5BmRi2R.cjs} +1 -1
  73. package/dist/{vue-ui-molecule-BWYCf3Km.js → vue-ui-molecule-CD3cPNOq.js} +9 -9
  74. package/dist/{vue-ui-mood-radar-DsZozq6x.js → vue-ui-mood-radar-D0KbeV5j.js} +213 -187
  75. package/dist/vue-ui-mood-radar-afS64zg-.cjs +1 -0
  76. package/dist/{vue-ui-nested-donuts-qaViBhR3.js → vue-ui-nested-donuts-BGoc1RFX.js} +295 -228
  77. package/dist/vue-ui-nested-donuts-D-TeyOtL.cjs +17 -0
  78. package/dist/{vue-ui-onion-0iFsjuLM.js → vue-ui-onion-B_khL0Kv.js} +230 -196
  79. package/dist/vue-ui-onion-CFdbWLu3.cjs +1 -0
  80. package/dist/{vue-ui-parallel-coordinate-plot-BkZOKTIS.cjs → vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs} +2 -2
  81. package/dist/{vue-ui-parallel-coordinate-plot-DxDFs1Lb.js → vue-ui-parallel-coordinate-plot-CP4V0K8m.js} +87 -87
  82. package/dist/{vue-ui-quadrant-Tw7SKMbQ.js → vue-ui-quadrant-C1YbjeI7.js} +455 -397
  83. package/dist/vue-ui-quadrant-C6-A8Gx_.cjs +1 -0
  84. package/dist/vue-ui-quick-chart-ConXdEsU.cjs +15 -0
  85. package/dist/vue-ui-quick-chart-CtWhs_2c.js +1374 -0
  86. package/dist/{vue-ui-radar-D5FV2IDm.js → vue-ui-radar-B2vAPYa7.js} +237 -214
  87. package/dist/vue-ui-radar-DMJLLVWb.cjs +1 -0
  88. package/dist/{vue-ui-rating-DTWIh_CV.cjs → vue-ui-rating-DhZ0tltR.cjs} +1 -1
  89. package/dist/{vue-ui-rating-Dds9tjxd.js → vue-ui-rating-xGz4av68.js} +9 -9
  90. package/dist/{vue-ui-relation-circle-B2p8F7-L.js → vue-ui-relation-circle-BQK8wMQE.js} +5 -5
  91. package/dist/{vue-ui-relation-circle-Cu9lKkX3.cjs → vue-ui-relation-circle-hb4Q051h.cjs} +1 -1
  92. package/dist/vue-ui-rings-D1EW3d4M.cjs +2 -0
  93. package/dist/{vue-ui-rings-BKzCFSx-.js → vue-ui-rings-ZKjhNx5K.js} +191 -162
  94. package/dist/{vue-ui-scatter-CwV9l1P7.js → vue-ui-scatter-CHONk8k0.js} +437 -381
  95. package/dist/vue-ui-scatter-CMRe2b2K.cjs +1 -0
  96. package/dist/{vue-ui-screenshot-CnPWz57l.cjs → vue-ui-screenshot-DcKhT745.cjs} +1 -1
  97. package/dist/{vue-ui-screenshot-Bo6i-aRF.js → vue-ui-screenshot-DmGe5ptH.js} +6 -6
  98. package/dist/{vue-ui-skeleton-CeNL0kH-.js → vue-ui-skeleton-CJ2R5R6u.js} +37 -37
  99. package/dist/{vue-ui-skeleton-CcrGR_Vh.cjs → vue-ui-skeleton-j-IOiy5w.cjs} +1 -1
  100. package/dist/{vue-ui-smiley-BBcmwq4z.cjs → vue-ui-smiley-D5Jn6d5f.cjs} +1 -1
  101. package/dist/{vue-ui-smiley-BGMzw-SW.js → vue-ui-smiley-DXVcosKR.js} +2 -2
  102. package/dist/{vue-ui-spark-trend-DlvTlA9z.cjs → vue-ui-spark-trend-CWH3W7h3.cjs} +1 -1
  103. package/dist/{vue-ui-spark-trend-CSC9zmt7.js → vue-ui-spark-trend-Gg6TxR4m.js} +63 -58
  104. package/dist/vue-ui-sparkbar-BsoKTXr2.cjs +1 -0
  105. package/dist/vue-ui-sparkbar-DUx1qVzQ.js +280 -0
  106. package/dist/{vue-ui-sparkgauge-B5g5nxUh.cjs → vue-ui-sparkgauge-DPusPoRv.cjs} +1 -1
  107. package/dist/{vue-ui-sparkgauge-DJPt0cLe.js → vue-ui-sparkgauge-xrvp9g87.js} +60 -50
  108. package/dist/vue-ui-sparkhistogram---JRg2R1.cjs +1 -0
  109. package/dist/{vue-ui-sparkhistogram-DpvQcFls.js → vue-ui-sparkhistogram-DzYXMNj8.js} +99 -90
  110. package/dist/{vue-ui-sparkline-Bw3y-88R.cjs → vue-ui-sparkline-1Z6GnwoN.cjs} +1 -1
  111. package/dist/{vue-ui-sparkline-CDSg9rhl.js → vue-ui-sparkline-CGWePkVI.js} +114 -105
  112. package/dist/{vue-ui-sparkstackbar-Ckcir2dk.cjs → vue-ui-sparkstackbar-DCc68t8g.cjs} +1 -1
  113. package/dist/{vue-ui-sparkstackbar-DveNwcVx.js → vue-ui-sparkstackbar-DFgeRAbQ.js} +52 -47
  114. package/dist/{vue-ui-stackbar-CZUsUeZ_.js → vue-ui-stackbar-B0dWToaf.js} +211 -196
  115. package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +15 -0
  116. package/dist/{vue-ui-strip-plot-lVVqtsNc.js → vue-ui-strip-plot-BFqd-S7c.js} +213 -198
  117. package/dist/vue-ui-strip-plot-DZt1Wq20.cjs +1 -0
  118. package/dist/{vue-ui-table-qtBWpg0m.cjs → vue-ui-table-CMvyMuc4.cjs} +1 -1
  119. package/dist/{vue-ui-table-8hNkBy1z.js → vue-ui-table-DtwEoIzI.js} +9 -9
  120. package/dist/{vue-ui-table-heatmap-HgHQKSax.cjs → vue-ui-table-heatmap-3RSMOHkc.cjs} +1 -1
  121. package/dist/{vue-ui-table-heatmap-BAPA4nvf.js → vue-ui-table-heatmap-C8b3pE04.js} +12 -12
  122. package/dist/vue-ui-table-sparkline-BKOaVFtt.cjs +1 -0
  123. package/dist/vue-ui-table-sparkline-BrqhBv29.js +467 -0
  124. package/dist/vue-ui-thermometer-CKgIqM5y.cjs +1 -0
  125. package/dist/{vue-ui-thermometer-CcH1qmLq.js → vue-ui-thermometer-DMkLvJgE.js} +118 -108
  126. package/dist/{vue-ui-timer-C52mSn4m.cjs → vue-ui-timer-D7fvoR77.cjs} +1 -1
  127. package/dist/{vue-ui-timer-DJfYr02u.js → vue-ui-timer-RA9yfgBk.js} +8 -8
  128. package/dist/{vue-ui-tiremarks-CcLcd5oA.js → vue-ui-tiremarks-B_EncUi6.js} +79 -71
  129. package/dist/{vue-ui-tiremarks-dNuNMt_R.cjs → vue-ui-tiremarks-C7y6Mbxe.cjs} +1 -1
  130. package/dist/{vue-ui-treemap-BOz94BVK.js → vue-ui-treemap-BuGZgQsr.js} +274 -236
  131. package/dist/vue-ui-treemap-CfngjVUS.cjs +1 -0
  132. package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +4 -0
  133. package/dist/vue-ui-vertical-bar-T4bFd3JF.js +792 -0
  134. package/dist/vue-ui-waffle-BJFbhWnA.cjs +1 -0
  135. package/dist/vue-ui-waffle-CrxmrYsV.js +735 -0
  136. package/dist/{vue-ui-wheel-BVjbh4oM.cjs → vue-ui-wheel-BDRvKR1Z.cjs} +1 -1
  137. package/dist/{vue-ui-wheel-DMRiVkhu.js → vue-ui-wheel-DOyC7NgR.js} +73 -65
  138. package/dist/vue-ui-word-cloud-DBxVNlJ3.js +495 -0
  139. package/dist/vue-ui-word-cloud-Dmcelg3z.cjs +1 -0
  140. package/dist/{vue-ui-xy-CsFr8tix.js → vue-ui-xy-BIbvJSh2.js} +367 -288
  141. package/dist/vue-ui-xy-CVKaR90p.cjs +3 -0
  142. package/dist/vue-ui-xy-canvas-2AaNivzI.cjs +9 -0
  143. package/dist/{vue-ui-xy-canvas-Bb2Z3E-7.js → vue-ui-xy-canvas-CXVni3kC.js} +284 -259
  144. package/package.json +1 -1
  145. package/dist/DataTable-C6HTLT7L.cjs +0 -1
  146. package/dist/index-BQOxn6SH.cjs +0 -4
  147. package/dist/vue-ui-3d-bar-DkJ4c3HQ.cjs +0 -19
  148. package/dist/vue-ui-age-pyramid-CkKVbbl8.cjs +0 -1
  149. package/dist/vue-ui-chestnut-C7gFvKLJ.cjs +0 -6
  150. package/dist/vue-ui-donut-C33U3e8H.js +0 -751
  151. package/dist/vue-ui-donut-CeHnjIGu.cjs +0 -1
  152. package/dist/vue-ui-donut-evolution-IzfAVo5I.js +0 -805
  153. package/dist/vue-ui-donut-evolution-hHfvz1Yd.cjs +0 -1
  154. package/dist/vue-ui-galaxy-B8EoId23.cjs +0 -1
  155. package/dist/vue-ui-gizmo-8lKc8m8b.cjs +0 -1
  156. package/dist/vue-ui-heatmap-BEsvmj5R.js +0 -606
  157. package/dist/vue-ui-heatmap-DvpvKq3Q.cjs +0 -1
  158. package/dist/vue-ui-mood-radar-C6devC4e.cjs +0 -1
  159. package/dist/vue-ui-nested-donuts-BtT3VsSf.cjs +0 -16
  160. package/dist/vue-ui-onion-9ATTDUpw.cjs +0 -1
  161. package/dist/vue-ui-quadrant-DD4H_Dhk.cjs +0 -1
  162. package/dist/vue-ui-quick-chart-CpFHKtpm.js +0 -1318
  163. package/dist/vue-ui-quick-chart-D1udOl47.cjs +0 -13
  164. package/dist/vue-ui-radar-CZmJDj3q.cjs +0 -1
  165. package/dist/vue-ui-rings-DN7XmhKZ.cjs +0 -1
  166. package/dist/vue-ui-scatter-DJlC5mz4.cjs +0 -1
  167. package/dist/vue-ui-sparkbar-0CNZluKs.js +0 -257
  168. package/dist/vue-ui-sparkbar-Di-BPkJ0.cjs +0 -1
  169. package/dist/vue-ui-sparkhistogram-BhkYmR4U.cjs +0 -1
  170. package/dist/vue-ui-stackbar-jNWFgXiA.cjs +0 -15
  171. package/dist/vue-ui-strip-plot-CzHFNhr3.cjs +0 -1
  172. package/dist/vue-ui-table-sparkline-DZY_23mg.js +0 -420
  173. package/dist/vue-ui-table-sparkline-Q8y6tloS.cjs +0 -1
  174. package/dist/vue-ui-thermometer-Cbu9jVvC.cjs +0 -1
  175. package/dist/vue-ui-treemap-orjA7Y0U.cjs +0 -1
  176. package/dist/vue-ui-vertical-bar-BHIt5cjc.cjs +0 -4
  177. package/dist/vue-ui-vertical-bar-BquCm_UG.js +0 -745
  178. package/dist/vue-ui-waffle-CNlp7RTS.js +0 -650
  179. package/dist/vue-ui-waffle-Dv8pXiYm.cjs +0 -1
  180. package/dist/vue-ui-word-cloud-CHRE8f_k.js +0 -352
  181. package/dist/vue-ui-word-cloud-CZum_IjT.cjs +0 -1
  182. package/dist/vue-ui-xy-BOoG4xg8.cjs +0 -3
  183. package/dist/vue-ui-xy-canvas-BHa3-phi.cjs +0 -9
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./index-BQOxn6SH.cjs"),q=require("./Title-B9iq63n1.cjs"),P=require("./usePrinter-Q1J--baX.cjs"),B=require("./useResponsive-B3TrDDIG.cjs"),T=require("./vue-ui-skeleton-CcrGR_Vh.cjs"),S=require("./useNestedProp-BtqgWTf9.cjs"),U=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),G=["id"],L=["xmlns","viewBox"],R=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],X=["cx","cy","r","stroke","stroke-width"],j=["x","y","font-size","fill","font-weight"],H={key:3,class:"vue-data-ui-watermark"},Y={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(I,{expose:F}){const o=I,{vue_ui_wheel:N}=c.useConfig(),f=e.computed(()=>!!o.dataset&&Object.keys(o.dataset).length),y=e.ref(c.createUid()),z=e.ref(null),g=e.ref(0),d=e.ref(null),p=e.ref(null),t=e.computed(()=>{const l=S.useNestedProp({userConfig:o.config,defaultConfig:N});return l.theme?{...S.useNestedProp({userConfig:c.themes.vue_ui_wheel[l.theme]||o.config,defaultConfig:l})}:l}),{isPrinting:k,isImaging:w,generatePdf:C,generateImage:b}=P.usePrinter({elementId:y.value,fileName:t.value.style.chart.title.text||"vue-ui-wheel"}),n=e.ref({size:360,height:360,width:360}),m=e.ref(t.value.style.chart.layout.percentage.fontSize),r=e.computed(()=>({radius:Math.min(n.value.width,n.value.height)*.9/2,centerX:n.value.width/2,centerY:n.value.height/2}));function _(l,u=1){return{x:r.value.centerX+r.value.radius*Math.cos(29.85+l*Math.PI/180)*u,y:r.value.centerY+r.value.radius*Math.sin(29.85+l*Math.PI/180)*u}}const s=e.ref(t.value.style.chart.animation.use?0:o.dataset.percentage||0);e.watch(()=>o.dataset.percentage,()=>{s.value=e.ref(t.value.style.chart.animation.use?0:o.dataset.percentage||0),x()});const h=e.ref(null);e.onMounted(()=>{if(c.objectIsEmpty(o.dataset)&&c.error({componentName:"VueUiWheel",type:"dataset"}),x(),t.value.responsive){const l=B.throttle(()=>{const{width:u,height:a}=B.useResponsive({chart:d.value,title:t.value.style.chart.title.text?p.value:null});n.value.width=u,n.value.height=a,m.value=t.value.style.chart.layout.percentage.fontSize/360*Math.min(u,a)});h.value=new ResizeObserver(l),h.value.observe(d.value.parentNode)}}),e.onBeforeUnmount(()=>{h.value&&h.value.disconnect()});function x(){let l=0,u=t.value.style.chart.animation.speed,a=.005*t.value.style.chart.animation.acceleration;function i(){s.value+=u+l,l+=a,s.value<(o.dataset.percentage||0)?requestAnimationFrame(i):s.value=o.dataset.percentage||0}t.value.style.chart.animation.use&&(s.value=0,i())}const $=e.computed(()=>{const l=[];for(let a=0;a<100;a+=1){const i=s.value>a?t.value.style.chart.layout.wheel.ticks.activeColor:t.value.style.chart.layout.wheel.ticks.inactiveColor,{x:E,y:V}=_(n.value.size/100*a),{x:A,y:M}=_(n.value.size/100*a,.9);l.push({x1:E,y1:V,x2:A,y2:M,color:t.value.style.chart.layout.wheel.ticks.gradient.show?c.shiftHue(i,a/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):i})}return l}),v=e.ref(!1);function O(l){v.value=l,g.value+=1}return F({generatePdf:C,generateImage:b}),(l,u)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:d,id:y.value,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:p,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:12px`)},[e.createVNode(q._sfc_main,{config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&f.value?(e.openBlock(),e.createBlock(P.UserOptions,{ref_key:"details",ref:z,key:`user_options_${g.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(k),isImaging:e.unref(w),uid:y.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:v.value,titles:{...t.value.userOptions.buttonTitles},chartElement:d.value,onToggleFullscreen:O,onGeneratePdf:e.unref(C),onGenerateImage:e.unref(b)},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:i})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:i})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(c.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":v.value,"vue-data-ui-fulscreen--off":!v.value}),viewBox:`0 0 ${n.value.width<=0?10:n.value.width} ${n.value.height<=0?10:n.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(a,i)=>(e.openBlock(),e.createElementBlock("line",{x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2,stroke:a.color,"stroke-width":5/360*Math.min(n.value.width,n.value.height),"stroke-linecap":t.value.style.chart.layout.wheel.ticks.rounded?"round":"butt",class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&i<=s.value})},null,10,R))),256)),t.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:r.value.centerX,cy:r.value.centerY,r:r.value.radius*.8<=0?1e-4:r.value.radius*.8,stroke:t.value.style.chart.layout.innerCircle.stroke,"stroke-width":t.value.style.chart.layout.innerCircle.strokeWidth,fill:"none"},null,8,X)):e.createCommentVNode("",!0),t.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:r.value.centerX,y:r.value.centerY+m.value/3,"font-size":m.value,fill:t.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(c.shiftHue)(t.value.style.chart.layout.wheel.ticks.activeColor,s.value/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.layout.wheel.ticks.activeColor,"text-anchor":"middle","font-weight":t.value.style.chart.layout.percentage.bold?"bold":"normal",style:{"font-variant-numeric":"tabluar-nums"}},e.toDisplayString(Number(s.value.toFixed(t.value.style.chart.layout.percentage.rounding)).toLocaleString())+"% ",9,j)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:n.value},void 0,!0)],14,L)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",H,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(k)||e.unref(w)})),void 0,!0)])):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(T.default,{key:4,config:{type:"wheel",style:{backgroundColor:t.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],12,G))}},D=U._export_sfc(Y,[["__scopeId","data-v-1ea442b0"]]);exports.default=D;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-hKWfT7Wa.cjs"),q=require("./Title-BU6E8Xld.cjs"),P=require("./usePrinter-DoYKBzst.cjs"),B=require("./useResponsive-B3TrDDIG.cjs"),T=require("./vue-ui-skeleton-j-IOiy5w.cjs"),I=require("./useNestedProp-Cggpoz7e.cjs"),L=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),U=["id"],G=["xmlns","viewBox"],R=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],X=["cx","cy","r","stroke","stroke-width"],j=["x","y","font-size","fill","font-weight"],H={key:3,class:"vue-data-ui-watermark"},D={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(S,{expose:z}){const r=S,{vue_ui_wheel:F}=s.useConfig(),f=e.computed(()=>!!r.dataset&&Object.keys(r.dataset).length),y=e.ref(s.createUid()),N=e.ref(null),g=e.ref(0),d=e.ref(null),p=e.ref(null),t=e.computed(()=>{const l=I.useNestedProp({userConfig:r.config,defaultConfig:F});return l.theme?{...I.useNestedProp({userConfig:s.themes.vue_ui_wheel[l.theme]||r.config,defaultConfig:l})}:l}),{isPrinting:k,isImaging:w,generatePdf:C,generateImage:b}=P.usePrinter({elementId:y.value,fileName:t.value.style.chart.title.text||"vue-ui-wheel"}),n=e.ref({size:360,height:360,width:360}),m=e.ref(t.value.style.chart.layout.percentage.fontSize),o=e.computed(()=>({radius:Math.min(n.value.width,n.value.height)*.9/2,centerX:n.value.width/2,centerY:n.value.height/2}));function _(l,i=1){return{x:o.value.centerX+o.value.radius*Math.cos(29.85+l*Math.PI/180)*i,y:o.value.centerY+o.value.radius*Math.sin(29.85+l*Math.PI/180)*i}}const u=e.ref(t.value.style.chart.animation.use?0:r.dataset.percentage||0);e.watch(()=>r.dataset.percentage,()=>{u.value=e.ref(t.value.style.chart.animation.use?0:r.dataset.percentage||0),x()});const h=e.ref(null);e.onMounted(()=>{if(s.objectIsEmpty(r.dataset)&&s.error({componentName:"VueUiWheel",type:"dataset"}),x(),t.value.responsive){const l=B.throttle(()=>{const{width:i,height:a}=B.useResponsive({chart:d.value,title:t.value.style.chart.title.text?p.value:null});n.value.width=i,n.value.height=a,m.value=t.value.style.chart.layout.percentage.fontSize/360*Math.min(i,a)});h.value=new ResizeObserver(l),h.value.observe(d.value.parentNode)}}),e.onBeforeUnmount(()=>{h.value&&h.value.disconnect()});function x(){let l=0,i=t.value.style.chart.animation.speed,a=.005*t.value.style.chart.animation.acceleration;function c(){u.value+=i+l,l+=a,u.value<(r.dataset.percentage||0)?requestAnimationFrame(c):u.value=r.dataset.percentage||0}t.value.style.chart.animation.use&&(u.value=0,c())}const $=e.computed(()=>{const l=[];for(let a=0;a<100;a+=1){const c=u.value>a?t.value.style.chart.layout.wheel.ticks.activeColor:t.value.style.chart.layout.wheel.ticks.inactiveColor,{x:E,y:V}=_(n.value.size/100*a),{x:A,y:M}=_(n.value.size/100*a,.9);l.push({x1:E,y1:V,x2:A,y2:M,color:t.value.style.chart.layout.wheel.ticks.gradient.show?s.shiftHue(c,a/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):c})}return l}),v=e.ref(!1);function O(l){v.value=l,g.value+=1}return z({generatePdf:C,generateImage:b}),(l,i)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:d,id:y.value,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:p,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:12px`)},[e.createVNode(q._sfc_main,{config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&f.value?(e.openBlock(),e.createBlock(P.UserOptions,{ref_key:"details",ref:N,key:`user_options_${g.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(k),isImaging:e.unref(w),uid:y.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:v.value,titles:{...t.value.userOptions.buttonTitles},chartElement:d.value,onToggleFullscreen:O,onGeneratePdf:e.unref(C),onGenerateImage:e.unref(b)},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:c})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:c})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":v.value,"vue-data-ui-fulscreen--off":!v.value}),viewBox:`0 0 ${n.value.width<=0?10:n.value.width} ${n.value.height<=0?10:n.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(a,c)=>(e.openBlock(),e.createElementBlock("line",{x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2,stroke:a.color,"stroke-width":5/360*Math.min(n.value.width,n.value.height),"stroke-linecap":t.value.style.chart.layout.wheel.ticks.rounded?"round":"butt",class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&c<=u.value})},null,10,R))),256)),t.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:o.value.centerX,cy:o.value.centerY,r:o.value.radius*.8<=0?1e-4:o.value.radius*.8,stroke:t.value.style.chart.layout.innerCircle.stroke,"stroke-width":t.value.style.chart.layout.innerCircle.strokeWidth,fill:"none"},null,8,X)):e.createCommentVNode("",!0),t.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:o.value.centerX,y:o.value.centerY+m.value/3,"font-size":m.value,fill:t.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(s.shiftHue)(t.value.style.chart.layout.wheel.ticks.activeColor,u.value/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.layout.wheel.ticks.activeColor,"text-anchor":"middle","font-weight":t.value.style.chart.layout.percentage.bold?"bold":"normal",style:{"font-variant-numeric":"tabluar-nums"}},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.percentage.formatter,u.value,e.unref(s.dataLabel)({v:u.value,s:"%",r:t.value.style.chart.layout.percentage.rounding}))),9,j)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:n.value},void 0,!0)],14,G)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",H,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(k)||e.unref(w)})),void 0,!0)])):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(T.default,{key:4,config:{type:"wheel",style:{backgroundColor:t.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],12,U))}},Y=L._export_sfc(D,[["__scopeId","data-v-a9569c10"]]);exports.default=Y;
@@ -1,15 +1,15 @@
1
- import { computed as p, ref as s, watch as W, onMounted as q, onBeforeUnmount as J, openBlock as r, createElementBlock as h, normalizeStyle as C, createVNode as K, createCommentVNode as d, createBlock as N, unref as v, createSlots as Q, withCtx as _, renderSlot as y, normalizeProps as A, guardReactiveProps as M, normalizeClass as U, Fragment as Z, renderList as ee, toDisplayString as te } from "vue";
2
- import { u as ae, c as le, t as se, o as ne, e as oe, s as X, X as re } from "./index-DiWO-_ca.js";
3
- import { _ as ue } from "./Title-C3Ez1ceq.js";
4
- import { u as ie, U as ce } from "./usePrinter-BD40aUzH.js";
5
- import { t as he, u as ve } from "./useResponsive-NZB-WLRF.js";
6
- import de from "./vue-ui-skeleton-CeNL0kH-.js";
7
- import { u as B } from "./useNestedProp-DNX5EefQ.js";
8
- import { _ as ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- const fe = ["id"], ge = ["xmlns", "viewBox"], me = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], pe = ["cx", "cy", "r", "stroke", "stroke-width"], ke = ["x", "y", "font-size", "fill", "font-weight"], we = {
1
+ import { computed as p, ref as s, watch as W, onMounted as q, onBeforeUnmount as J, openBlock as u, createElementBlock as v, normalizeStyle as C, createVNode as K, createCommentVNode as d, createBlock as A, unref as i, createSlots as Q, withCtx as _, renderSlot as y, normalizeProps as N, guardReactiveProps as M, normalizeClass as L, Fragment as Z, renderList as ee, toDisplayString as te } from "vue";
2
+ import { u as ae, c as le, t as se, o as ne, e as oe, s as U, X as re, i as ue, f as ie } from "./index-BlXzlBwZ.js";
3
+ import { _ as ce } from "./Title-eBTH8iGJ.js";
4
+ import { u as he, U as ve } from "./usePrinter-CZ8F5Cth.js";
5
+ import { t as de, u as ye } from "./useResponsive-NZB-WLRF.js";
6
+ import fe from "./vue-ui-skeleton-CJ2R5R6u.js";
7
+ import { u as X } from "./useNestedProp-BoNl5H_z.js";
8
+ import { _ as ge } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ const me = ["id"], pe = ["xmlns", "viewBox"], ke = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], we = ["cx", "cy", "r", "stroke", "stroke-width"], be = ["x", "y", "font-size", "fill", "font-weight"], Ce = {
10
10
  key: 3,
11
11
  class: "vue-data-ui-watermark"
12
- }, be = {
12
+ }, _e = {
13
13
  __name: "vue-ui-wheel",
14
14
  props: {
15
15
  config: {
@@ -25,19 +25,19 @@ const fe = ["id"], ge = ["xmlns", "viewBox"], me = ["x1", "x2", "y1", "y2", "str
25
25
  }
26
26
  }
27
27
  },
28
- setup(G, { expose: L }) {
29
- const n = G, { vue_ui_wheel: T } = ae(), k = p(() => !!n.dataset && Object.keys(n.dataset).length), w = s(le()), E = s(null), x = s(0), f = s(null), I = s(null), e = p(() => {
30
- const t = B({
28
+ setup(B, { expose: G }) {
29
+ const n = B, { vue_ui_wheel: T } = ae(), k = p(() => !!n.dataset && Object.keys(n.dataset).length), w = s(le()), E = s(null), x = s(0), f = s(null), I = s(null), e = p(() => {
30
+ const t = X({
31
31
  userConfig: n.config,
32
32
  defaultConfig: T
33
33
  });
34
34
  return t.theme ? {
35
- ...B({
35
+ ...X({
36
36
  userConfig: se.vue_ui_wheel[t.theme] || n.config,
37
37
  defaultConfig: t
38
38
  })
39
39
  } : t;
40
- }), { isPrinting: F, isImaging: $, generatePdf: P, generateImage: z } = ie({
40
+ }), { isPrinting: $, isImaging: F, generatePdf: P, generateImage: z } = he({
41
41
  elementId: w.value,
42
42
  fileName: e.value.style.chart.title.text || "vue-ui-wheel"
43
43
  }), l = s({
@@ -49,75 +49,75 @@ const fe = ["id"], ge = ["xmlns", "viewBox"], me = ["x1", "x2", "y1", "y2", "str
49
49
  centerX: l.value.width / 2,
50
50
  centerY: l.value.height / 2
51
51
  }));
52
- function S(t, i = 1) {
52
+ function O(t, c = 1) {
53
53
  return {
54
- x: o.value.centerX + o.value.radius * Math.cos(29.85 + t * Math.PI / 180) * i,
55
- y: o.value.centerY + o.value.radius * Math.sin(29.85 + t * Math.PI / 180) * i
54
+ x: o.value.centerX + o.value.radius * Math.cos(29.85 + t * Math.PI / 180) * c,
55
+ y: o.value.centerY + o.value.radius * Math.sin(29.85 + t * Math.PI / 180) * c
56
56
  };
57
57
  }
58
- const u = s(e.value.style.chart.animation.use ? 0 : n.dataset.percentage || 0);
58
+ const r = s(e.value.style.chart.animation.use ? 0 : n.dataset.percentage || 0);
59
59
  W(() => n.dataset.percentage, () => {
60
- u.value = s(e.value.style.chart.animation.use ? 0 : n.dataset.percentage || 0), O();
60
+ r.value = s(e.value.style.chart.animation.use ? 0 : n.dataset.percentage || 0), S();
61
61
  });
62
62
  const g = s(null);
63
63
  q(() => {
64
64
  if (ne(n.dataset) && oe({
65
65
  componentName: "VueUiWheel",
66
66
  type: "dataset"
67
- }), O(), e.value.responsive) {
68
- const t = he(() => {
69
- const { width: i, height: a } = ve({
67
+ }), S(), e.value.responsive) {
68
+ const t = de(() => {
69
+ const { width: c, height: a } = ye({
70
70
  chart: f.value,
71
71
  title: e.value.style.chart.title.text ? I.value : null
72
72
  });
73
- l.value.width = i, l.value.height = a, b.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(i, a);
73
+ l.value.width = c, l.value.height = a, b.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(c, a);
74
74
  });
75
75
  g.value = new ResizeObserver(t), g.value.observe(f.value.parentNode);
76
76
  }
77
77
  }), J(() => {
78
78
  g.value && g.value.disconnect();
79
79
  });
80
- function O() {
81
- let t = 0, i = e.value.style.chart.animation.speed, a = 5e-3 * e.value.style.chart.animation.acceleration;
82
- function c() {
83
- u.value += i + t, t += a, u.value < (n.dataset.percentage || 0) ? requestAnimationFrame(c) : u.value = n.dataset.percentage || 0;
80
+ function S() {
81
+ let t = 0, c = e.value.style.chart.animation.speed, a = 5e-3 * e.value.style.chart.animation.acceleration;
82
+ function h() {
83
+ r.value += c + t, t += a, r.value < (n.dataset.percentage || 0) ? requestAnimationFrame(h) : r.value = n.dataset.percentage || 0;
84
84
  }
85
- e.value.style.chart.animation.use && (u.value = 0, c());
85
+ e.value.style.chart.animation.use && (r.value = 0, h());
86
86
  }
87
87
  const j = p(() => {
88
88
  const t = [];
89
89
  for (let a = 0; a < 100; a += 1) {
90
- const c = u.value > a ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: V, y: Y } = S(l.value.size / 100 * a), { x: D, y: H } = S(l.value.size / 100 * a, 0.9);
90
+ const h = r.value > a ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: R, y: V } = O(l.value.size / 100 * a), { x: Y, y: H } = O(l.value.size / 100 * a, 0.9);
91
91
  t.push({
92
- x1: V,
93
- y1: Y,
94
- x2: D,
92
+ x1: R,
93
+ y1: V,
94
+ x2: Y,
95
95
  y2: H,
96
- color: e.value.style.chart.layout.wheel.ticks.gradient.show ? X(c, a / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : c
96
+ color: e.value.style.chart.layout.wheel.ticks.gradient.show ? U(h, a / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : h
97
97
  });
98
98
  }
99
99
  return t;
100
100
  }), m = s(!1);
101
- function R(t) {
101
+ function D(t) {
102
102
  m.value = t, x.value += 1;
103
103
  }
104
- return L({
104
+ return G({
105
105
  generatePdf: P,
106
106
  generateImage: z
107
- }), (t, i) => (r(), h("div", {
107
+ }), (t, c) => (u(), v("div", {
108
108
  class: "vue-ui-wheel",
109
109
  ref_key: "wheelChart",
110
110
  ref: f,
111
111
  id: w.value,
112
112
  style: C(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`)
113
113
  }, [
114
- e.value.style.chart.title.text ? (r(), h("div", {
114
+ e.value.style.chart.title.text ? (u(), v("div", {
115
115
  key: 0,
116
116
  ref_key: "chartTitle",
117
117
  ref: I,
118
118
  style: C(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px`)
119
119
  }, [
120
- K(ue, {
120
+ K(ce, {
121
121
  config: {
122
122
  title: {
123
123
  cy: "wheel-title",
@@ -130,14 +130,14 @@ const fe = ["id"], ge = ["xmlns", "viewBox"], me = ["x1", "x2", "y1", "y2", "str
130
130
  }
131
131
  }, null, 8, ["config"])
132
132
  ], 4)) : d("", !0),
133
- e.value.userOptions.show && k.value ? (r(), N(ce, {
133
+ e.value.userOptions.show && k.value ? (u(), A(ve, {
134
134
  ref_key: "details",
135
135
  ref: E,
136
136
  key: `user_options_${x.value}`,
137
137
  backgroundColor: e.value.style.chart.backgroundColor,
138
138
  color: e.value.style.chart.color,
139
- isPrinting: v(F),
140
- isImaging: v($),
139
+ isPrinting: i($),
140
+ isImaging: i(F),
141
141
  uid: w.value,
142
142
  hasPdf: e.value.userOptions.buttons.pdf,
143
143
  hasImg: e.value.userOptions.buttons.img,
@@ -146,9 +146,9 @@ const fe = ["id"], ge = ["xmlns", "viewBox"], me = ["x1", "x2", "y1", "y2", "str
146
146
  isFullscreen: m.value,
147
147
  titles: { ...e.value.userOptions.buttonTitles },
148
148
  chartElement: f.value,
149
- onToggleFullscreen: R,
150
- onGeneratePdf: v(P),
151
- onGenerateImage: v(z)
149
+ onToggleFullscreen: D,
150
+ onGeneratePdf: i(P),
151
+ onGenerateImage: i(z)
152
152
  }, Q({ _: 2 }, [
153
153
  t.$slots.optionPdf ? {
154
154
  name: "optionPdf",
@@ -166,20 +166,20 @@ const fe = ["id"], ge = ["xmlns", "viewBox"], me = ["x1", "x2", "y1", "y2", "str
166
166
  } : void 0,
167
167
  t.$slots.optionFullscreen ? {
168
168
  name: "optionFullscreen",
169
- fn: _(({ toggleFullscreen: a, isFullscreen: c }) => [
170
- y(t.$slots, "optionFullscreen", A(M({ toggleFullscreen: a, isFullscreen: c })), void 0, !0)
169
+ fn: _(({ toggleFullscreen: a, isFullscreen: h }) => [
170
+ y(t.$slots, "optionFullscreen", N(M({ toggleFullscreen: a, isFullscreen: h })), void 0, !0)
171
171
  ]),
172
172
  key: "2"
173
173
  } : void 0
174
174
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
175
- k.value ? (r(), h("svg", {
175
+ k.value ? (u(), v("svg", {
176
176
  key: 2,
177
- xmlns: v(re),
178
- class: U({ "vue-data-ui-fullscreen--on": m.value, "vue-data-ui-fulscreen--off": !m.value }),
177
+ xmlns: i(re),
178
+ class: L({ "vue-data-ui-fullscreen--on": m.value, "vue-data-ui-fulscreen--off": !m.value }),
179
179
  viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
180
180
  style: C(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
181
181
  }, [
182
- (r(!0), h(Z, null, ee(j.value, (a, c) => (r(), h("line", {
182
+ (u(!0), v(Z, null, ee(j.value, (a, h) => (u(), v("line", {
183
183
  x1: a.x1,
184
184
  x2: a.x2,
185
185
  y1: a.y1,
@@ -187,9 +187,9 @@ const fe = ["id"], ge = ["xmlns", "viewBox"], me = ["x1", "x2", "y1", "y2", "str
187
187
  stroke: a.color,
188
188
  "stroke-width": 5 / 360 * Math.min(l.value.width, l.value.height),
189
189
  "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
190
- class: U({ "vue-ui-tick-animated": e.value.style.chart.animation.use && c <= u.value })
191
- }, null, 10, me))), 256)),
192
- e.value.style.chart.layout.innerCircle.show ? (r(), h("circle", {
190
+ class: L({ "vue-ui-tick-animated": e.value.style.chart.animation.use && h <= r.value })
191
+ }, null, 10, ke))), 256)),
192
+ e.value.style.chart.layout.innerCircle.show ? (u(), v("circle", {
193
193
  key: 0,
194
194
  cx: o.value.centerX,
195
195
  cy: o.value.centerY,
@@ -197,23 +197,31 @@ const fe = ["id"], ge = ["xmlns", "viewBox"], me = ["x1", "x2", "y1", "y2", "str
197
197
  stroke: e.value.style.chart.layout.innerCircle.stroke,
198
198
  "stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
199
199
  fill: "none"
200
- }, null, 8, pe)) : d("", !0),
201
- e.value.style.chart.layout.percentage.show ? (r(), h("text", {
200
+ }, null, 8, we)) : d("", !0),
201
+ e.value.style.chart.layout.percentage.show ? (u(), v("text", {
202
202
  key: 1,
203
203
  x: o.value.centerX,
204
204
  y: o.value.centerY + b.value / 3,
205
205
  "font-size": b.value,
206
- fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? v(X)(e.value.style.chart.layout.wheel.ticks.activeColor, u.value / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.wheel.ticks.activeColor,
206
+ fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? i(U)(e.value.style.chart.layout.wheel.ticks.activeColor, r.value / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.wheel.ticks.activeColor,
207
207
  "text-anchor": "middle",
208
208
  "font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
209
209
  style: { "font-variant-numeric": "tabluar-nums" }
210
- }, te(Number(u.value.toFixed(e.value.style.chart.layout.percentage.rounding)).toLocaleString()) + "% ", 9, ke)) : d("", !0),
210
+ }, te(i(ue)(
211
+ e.value.style.chart.layout.percentage.formatter,
212
+ r.value,
213
+ i(ie)({
214
+ v: r.value,
215
+ s: "%",
216
+ r: e.value.style.chart.layout.percentage.rounding
217
+ })
218
+ )), 9, be)) : d("", !0),
211
219
  y(t.$slots, "svg", { svg: l.value }, void 0, !0)
212
- ], 14, ge)) : d("", !0),
213
- t.$slots.watermark ? (r(), h("div", we, [
214
- y(t.$slots, "watermark", A(M({ isPrinting: v(F) || v($) })), void 0, !0)
220
+ ], 14, pe)) : d("", !0),
221
+ t.$slots.watermark ? (u(), v("div", Ce, [
222
+ y(t.$slots, "watermark", N(M({ isPrinting: i($) || i(F) })), void 0, !0)
215
223
  ])) : d("", !0),
216
- k.value ? d("", !0) : (r(), N(de, {
224
+ k.value ? d("", !0) : (u(), A(fe, {
217
225
  key: 4,
218
226
  config: {
219
227
  type: "wheel",
@@ -225,9 +233,9 @@ const fe = ["id"], ge = ["xmlns", "viewBox"], me = ["x1", "x2", "y1", "y2", "str
225
233
  }
226
234
  }
227
235
  }, null, 8, ["config"]))
228
- ], 12, fe));
236
+ ], 12, me));
229
237
  }
230
- }, Se = /* @__PURE__ */ ye(be, [["__scopeId", "data-v-1ea442b0"]]);
238
+ }, Ae = /* @__PURE__ */ ge(_e, [["__scopeId", "data-v-a9569c10"]]);
231
239
  export {
232
- Se as default
240
+ Ae as default
233
241
  };