vue-data-ui 2.6.6 → 2.6.7

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 (197) hide show
  1. package/dist/{Arrow-DFWjAvCY.js → Arrow-BxUmDF04.js} +1 -1
  2. package/dist/{Arrow-BYqxz6UG.cjs → Arrow-PPbxds1Q.cjs} +1 -1
  3. package/dist/{BaseIcon-COe_H-UB.cjs → BaseIcon-BmVwfJg2.cjs} +1 -1
  4. package/dist/{BaseIcon-t20JEZNG.js → BaseIcon-CDx9pxUG.js} +1 -1
  5. package/dist/{DataTable-Du7nJ0TM.cjs → DataTable-Cv_TVAas.cjs} +1 -1
  6. package/dist/{DataTable-CJN0sipt.js → DataTable-TjJIVFlL.js} +2 -2
  7. package/dist/{Legend-CM7IGBC3.cjs → Legend-DunrYGuw.cjs} +1 -1
  8. package/dist/{Legend-BDyPoYfp.js → Legend-NKGwxkI7.js} +2 -2
  9. package/dist/{PackageVersion-qeLvq6l8.cjs → PackageVersion-DJKkRuOD.cjs} +1 -1
  10. package/dist/{PackageVersion-DqmHcoqz.js → PackageVersion-QRvxRYPv.js} +1 -1
  11. package/dist/{PenAndPaper-6UYizrkQ.js → PenAndPaper-CxC1lWGK.js} +3 -3
  12. package/dist/{PenAndPaper-BYqaxOpk.cjs → PenAndPaper-MTTJ3Gd9.cjs} +1 -1
  13. package/dist/{Shape-C_qIhG3J.js → Shape-58uyOuYc.js} +26 -23
  14. package/dist/Shape-D_1vUjCL.cjs +1 -0
  15. package/dist/{Slicer-DPae3p1M.cjs → Slicer-BGEieXKn.cjs} +1 -1
  16. package/dist/{Slicer-BQP3UIW-.js → Slicer-C7ormJRw.js} +2 -2
  17. package/dist/{Title-D6h1gTvZ.js → Title-BI8etrRU.js} +1 -1
  18. package/dist/{Title-BGiQdt7J.cjs → Title-Dk92HYMu.cjs} +1 -1
  19. package/dist/Tooltip-ClMeqejQ.cjs +1 -0
  20. package/dist/{Tooltip-BonEVaob.js → Tooltip-Cxc8c50d.js} +23 -20
  21. package/dist/{index-B9qF6XbP.js → index-9EeNZMz1.js} +1 -1
  22. package/dist/{index-kZKcQZM_.cjs → index-DEnRHTzk.cjs} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/useChartAccessibility-BWojgys7.js +13 -0
  25. package/dist/useChartAccessibility-Cm7nkzTG.cjs +1 -0
  26. package/dist/{useNestedProp-D4Jn2Oxr.cjs → useNestedProp-BNT60LxO.cjs} +1 -1
  27. package/dist/{useNestedProp-g5oKzlVy.js → useNestedProp-df_bKQEI.js} +1 -1
  28. package/dist/{usePrinter-DR42gTOS.cjs → usePrinter-dyVny55M.cjs} +1 -1
  29. package/dist/{usePrinter-DsiBLAy1.js → usePrinter-ngrh00Ym.js} +1 -1
  30. package/dist/{vue-data-ui-DbhVASfn.cjs → vue-data-ui-BYX-I7HQ.cjs} +1 -1
  31. package/dist/{vue-data-ui-DB2kdhYH.js → vue-data-ui-CDD7JcMs.js} +61 -61
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-DHeSFJ5z.js → vue-ui-3d-bar-BArLjlrc.js} +171 -168
  35. package/dist/vue-ui-3d-bar-DegdXf_S.cjs +19 -0
  36. package/dist/{vue-ui-accordion-BfDu7hTY.cjs → vue-ui-accordion-D2qxHGzp.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-DBmchkva.js → vue-ui-accordion-Qo8JxnIN.js} +3 -3
  38. package/dist/{vue-ui-age-pyramid-CvUCPqxa.js → vue-ui-age-pyramid-Biz02m7c.js} +85 -82
  39. package/dist/vue-ui-age-pyramid-kpaaJ2Gx.cjs +1 -0
  40. package/dist/{vue-ui-annotator-BV9t6ro7.cjs → vue-ui-annotator-By6XNYm0.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-Dr5PLrJx.js → vue-ui-annotator-MXs48Lua.js} +1 -1
  42. package/dist/{vue-ui-bullet-D7Uw9tez.js → vue-ui-bullet-CtBs_r3I.js} +92 -89
  43. package/dist/vue-ui-bullet-Dkz6vX0T.cjs +34 -0
  44. package/dist/vue-ui-candlestick-DiEUIuW8.cjs +2 -0
  45. package/dist/{vue-ui-candlestick-BFmh-zx1.js → vue-ui-candlestick-gPztmuJE.js} +155 -152
  46. package/dist/{vue-ui-carousel-table-C30Gvanv.cjs → vue-ui-carousel-table-CYeXP21y.cjs} +1 -1
  47. package/dist/{vue-ui-carousel-table-CUhkylz_.js → vue-ui-carousel-table-D9ckYNKZ.js} +4 -4
  48. package/dist/{vue-ui-chestnut-C53wdHmR.js → vue-ui-chestnut-DWjn-jcN.js} +186 -183
  49. package/dist/vue-ui-chestnut-oZtRERnV.cjs +6 -0
  50. package/dist/{vue-ui-circle-pack-Bj3sA7RV.js → vue-ui-circle-pack-Bz5yVvAM.js} +99 -96
  51. package/dist/vue-ui-circle-pack-DCJ6N00S.cjs +1 -0
  52. package/dist/{vue-ui-cursor-0GY46Ywr.js → vue-ui-cursor-BrrVDy1u.js} +2 -2
  53. package/dist/{vue-ui-cursor-ZBrt-jTo.cjs → vue-ui-cursor-DZhRygRy.cjs} +1 -1
  54. package/dist/{vue-ui-dashboard-BX787_or.js → vue-ui-dashboard-DEmGN8Js.js} +2 -2
  55. package/dist/{vue-ui-dashboard-pzZD8J2y.cjs → vue-ui-dashboard-o8Ju_cXW.cjs} +1 -1
  56. package/dist/{vue-ui-digits-Blb8fghV.cjs → vue-ui-digits-CgyYdrQ5.cjs} +1 -1
  57. package/dist/{vue-ui-digits-BvCMwL0L.js → vue-ui-digits-DbOrROu7.js} +2 -2
  58. package/dist/vue-ui-donut-9pWaRwf3.cjs +1 -0
  59. package/dist/{vue-ui-donut-yBjSgsTz.js → vue-ui-donut-CP5uWglM.js} +158 -155
  60. package/dist/{vue-ui-donut-evolution-DRfJVMrP.js → vue-ui-donut-evolution-BAMD1wQ5.js} +133 -131
  61. package/dist/vue-ui-donut-evolution-Ci_gIrkO.cjs +1 -0
  62. package/dist/{vue-ui-dumbbell-4-hWZn-o.js → vue-ui-dumbbell-CFYd-Ypn.js} +125 -122
  63. package/dist/vue-ui-dumbbell-DUNYoZxT.cjs +9 -0
  64. package/dist/{vue-ui-flow-aH6xSdwn.js → vue-ui-flow-CdvGWFzv.js} +96 -93
  65. package/dist/vue-ui-flow-W89ofPB-.cjs +1 -0
  66. package/dist/{vue-ui-funnel-BZy4SvlW.js → vue-ui-funnel-DYutKyoz.js} +88 -85
  67. package/dist/vue-ui-funnel-RvdVrhFu.cjs +1 -0
  68. package/dist/{vue-ui-galaxy-GDXdZqjm.js → vue-ui-galaxy-BCBRlYS1.js} +123 -120
  69. package/dist/vue-ui-galaxy-Djdx-ca8.cjs +1 -0
  70. package/dist/{vue-ui-gauge-CeyHdkuS.js → vue-ui-gauge-BNAAZt4F.js} +86 -83
  71. package/dist/vue-ui-gauge-BVVmf09x.cjs +1 -0
  72. package/dist/{vue-ui-gizmo-veFxjktw.js → vue-ui-gizmo-BFQ_KgLX.js} +3 -3
  73. package/dist/{vue-ui-gizmo-CRTzb1J_.cjs → vue-ui-gizmo-Ceh0oFY3.cjs} +1 -1
  74. package/dist/vue-ui-heatmap-CiZpI-tA.cjs +1 -0
  75. package/dist/{vue-ui-heatmap-BizLgjJ8.js → vue-ui-heatmap-Ct3qaBv7.js} +109 -106
  76. package/dist/vue-ui-history-plot-Ci8Y2EFg.cjs +1 -0
  77. package/dist/{vue-ui-history-plot-gzx5uGyY.js → vue-ui-history-plot-shn74MJ6.js} +130 -127
  78. package/dist/{vue-ui-kpi-MdyAQjdJ.js → vue-ui-kpi-B_pV-2JJ.js} +3 -3
  79. package/dist/{vue-ui-kpi-CP08PB51.cjs → vue-ui-kpi-DfYrbxlX.cjs} +1 -1
  80. package/dist/{vue-ui-mini-loader-CYVr1K6S.js → vue-ui-mini-loader-BFnWQs5p.js} +2 -2
  81. package/dist/{vue-ui-mini-loader-BRmtJ6az.cjs → vue-ui-mini-loader-LIqf62jk.cjs} +1 -1
  82. package/dist/vue-ui-molecule-D8YuYTKv.cjs +1 -0
  83. package/dist/{vue-ui-molecule-CJ05ddhf.js → vue-ui-molecule-DNz1m8XZ.js} +147 -144
  84. package/dist/{vue-ui-mood-radar-DG1pF6Ii.js → vue-ui-mood-radar-DiYB_zhM.js} +97 -94
  85. package/dist/vue-ui-mood-radar-uvH7qUHy.cjs +1 -0
  86. package/dist/{vue-ui-nested-donuts-CDjZ6KfI.js → vue-ui-nested-donuts-9hn-g4ir.js} +99 -96
  87. package/dist/vue-ui-nested-donuts-C7ikDjp7.cjs +17 -0
  88. package/dist/vue-ui-onion-5Rqvd4Fw.cjs +5 -0
  89. package/dist/{vue-ui-onion-DsskQUiP.js → vue-ui-onion-DCWfNTNu.js} +105 -102
  90. package/dist/{vue-ui-parallel-coordinate-plot-D7r71vdp.js → vue-ui-parallel-coordinate-plot-CaPFL9_1.js} +97 -94
  91. package/dist/vue-ui-parallel-coordinate-plot-tlgTbaNX.cjs +8 -0
  92. package/dist/vue-ui-quadrant-B0Sw5NGo.cjs +1 -0
  93. package/dist/{vue-ui-quadrant-DCHEhvMX.js → vue-ui-quadrant-BoQZ375K.js} +155 -152
  94. package/dist/vue-ui-quick-chart-D3zV1d7t.cjs +15 -0
  95. package/dist/{vue-ui-quick-chart-BB5b4AQ1.js → vue-ui-quick-chart-vfMN8F1q.js} +164 -161
  96. package/dist/{vue-ui-radar-CNEXWSEx.js → vue-ui-radar-CAuu6wkh.js} +105 -102
  97. package/dist/vue-ui-radar-CNMJCAwo.cjs +1 -0
  98. package/dist/{vue-ui-rating-DJLSl0-4.js → vue-ui-rating-Bm0HZ3du.js} +2 -2
  99. package/dist/{vue-ui-rating-ClvF4LPg.cjs → vue-ui-rating-dsRDRL98.cjs} +1 -1
  100. package/dist/{vue-ui-relation-circle-Hdzt7fOS.js → vue-ui-relation-circle-5OZMN9jR.js} +127 -124
  101. package/dist/vue-ui-relation-circle-iD7BufNH.cjs +1 -0
  102. package/dist/{vue-ui-rings-BAFkqjcL.js → vue-ui-rings-COefBaQT.js} +114 -111
  103. package/dist/vue-ui-rings-DC4WG4sK.cjs +2 -0
  104. package/dist/vue-ui-scatter-5ny76dmi.cjs +1 -0
  105. package/dist/{vue-ui-scatter-Ca67EOrI.js → vue-ui-scatter-DhO83TZZ.js} +157 -154
  106. package/dist/{vue-ui-screenshot-CFcvBOJm.cjs → vue-ui-screenshot-DABH_phE.cjs} +1 -1
  107. package/dist/{vue-ui-screenshot-CsdnwhSO.js → vue-ui-screenshot-brillPo5.js} +1 -1
  108. package/dist/{vue-ui-skeleton-CHEZlRpn.js → vue-ui-skeleton-BmJiYGtE.js} +3 -3
  109. package/dist/{vue-ui-skeleton-BBNX7lud.cjs → vue-ui-skeleton-_DN0U6W6.cjs} +1 -1
  110. package/dist/{vue-ui-smiley-EngC6Vc4.cjs → vue-ui-smiley-CW6714mb.cjs} +1 -1
  111. package/dist/{vue-ui-smiley-Dth6gRqg.js → vue-ui-smiley-D9NRimij.js} +2 -2
  112. package/dist/{vue-ui-spark-trend-33sBlF-n.js → vue-ui-spark-trend-BKZj03CQ.js} +5 -5
  113. package/dist/{vue-ui-spark-trend-DJ8yhFMx.cjs → vue-ui-spark-trend-expbkxgR.cjs} +1 -1
  114. package/dist/{vue-ui-sparkbar-mJu95295.js → vue-ui-sparkbar-CYRORE5i.js} +4 -4
  115. package/dist/{vue-ui-sparkbar-D9QLpB7G.cjs → vue-ui-sparkbar-Cr9FtevP.cjs} +1 -1
  116. package/dist/vue-ui-sparkgauge-BHXFhvTv.cjs +1 -0
  117. package/dist/{vue-ui-sparkgauge-nFFf8h-x.js → vue-ui-sparkgauge-JV4tYB7P.js} +56 -53
  118. package/dist/{vue-ui-sparkhistogram-Bh6R737O.js → vue-ui-sparkhistogram-DKINHX2q.js} +93 -90
  119. package/dist/vue-ui-sparkhistogram-T4a3DDck.cjs +1 -0
  120. package/dist/{vue-ui-sparkline-BfBiA1O5.js → vue-ui-sparkline-CbRTHtig.js} +109 -106
  121. package/dist/vue-ui-sparkline-Dc6Sf3n8.cjs +1 -0
  122. package/dist/{vue-ui-sparkstackbar-BNTFNUIA.js → vue-ui-sparkstackbar-6u9-2nG4.js} +59 -56
  123. package/dist/vue-ui-sparkstackbar-CV5SkdsP.cjs +1 -0
  124. package/dist/{vue-ui-stackbar-BbFUifMU.js → vue-ui-stackbar-CUppObfj.js} +136 -133
  125. package/dist/vue-ui-stackbar-CXB-nd71.cjs +6 -0
  126. package/dist/vue-ui-strip-plot-6IXF_U6-.cjs +1 -0
  127. package/dist/{vue-ui-strip-plot-wsxpyqrw.js → vue-ui-strip-plot-doaNZAW4.js} +127 -124
  128. package/dist/{vue-ui-table-CQYM4uPf.js → vue-ui-table-CZsNuDR5.js} +1 -1
  129. package/dist/{vue-ui-table-DUokotBj.cjs → vue-ui-table-S66UCskD.cjs} +1 -1
  130. package/dist/{vue-ui-table-heatmap-Brk58nK_.cjs → vue-ui-table-heatmap-BU9UU15H.cjs} +1 -1
  131. package/dist/{vue-ui-table-heatmap-OYQ9OOzo.js → vue-ui-table-heatmap-CjohHqDV.js} +4 -4
  132. package/dist/{vue-ui-table-sparkline-C9dOsIAB.cjs → vue-ui-table-sparkline-CHFFTD0a.cjs} +1 -1
  133. package/dist/{vue-ui-table-sparkline-DUjDhg8A.js → vue-ui-table-sparkline-ab2rwdKB.js} +5 -5
  134. package/dist/{vue-ui-thermometer-WSMSVcM_.js → vue-ui-thermometer-C72mHwUi.js} +84 -81
  135. package/dist/vue-ui-thermometer-Ccd6RGh8.cjs +1 -0
  136. package/dist/vue-ui-timer-C8Fn2B0b.cjs +64 -0
  137. package/dist/{vue-ui-timer-DBP_fRcm.js → vue-ui-timer-D-LNi6lz.js} +183 -180
  138. package/dist/{vue-ui-tiremarks-WWgS2mqw.js → vue-ui-tiremarks-Bo8EWsJ8.js} +59 -56
  139. package/dist/vue-ui-tiremarks-SOzvMOz4.cjs +1 -0
  140. package/dist/vue-ui-treemap-BqTTQrVh.cjs +1 -0
  141. package/dist/{vue-ui-treemap-CXoXEuSA.js → vue-ui-treemap-uj94elVB.js} +123 -120
  142. package/dist/{vue-ui-vertical-bar-COaAa4nz.js → vue-ui-vertical-bar-BUTOw-DK.js} +108 -105
  143. package/dist/vue-ui-vertical-bar-C4Sxun4Q.cjs +4 -0
  144. package/dist/{vue-ui-waffle-DD8pT7JN.js → vue-ui-waffle-CTWA1frT.js} +107 -104
  145. package/dist/vue-ui-waffle-DYWGRKdT.cjs +1 -0
  146. package/dist/{vue-ui-wheel-BLlKekiu.js → vue-ui-wheel-8K72ZKda.js} +75 -72
  147. package/dist/vue-ui-wheel-Cz5-0klT.cjs +1 -0
  148. package/dist/{vue-ui-word-cloud-CcYtTXW6.js → vue-ui-word-cloud-CSwBPDB8.js} +97 -94
  149. package/dist/vue-ui-word-cloud-D39riLZb.cjs +1 -0
  150. package/dist/vue-ui-xy-BbWXjajH.cjs +3 -0
  151. package/dist/{vue-ui-xy-DYzfiZnJ.js → vue-ui-xy-DpDKutd7.js} +65 -58
  152. package/dist/{vue-ui-xy-canvas-CkB7VDhF.cjs → vue-ui-xy-canvas-BCj0SCqe.cjs} +2 -2
  153. package/dist/{vue-ui-xy-canvas-DqnK_i0Q.js → vue-ui-xy-canvas-BQm9gah4.js} +82 -81
  154. package/package.json +1 -1
  155. package/dist/Shape-BN3-_2DI.cjs +0 -1
  156. package/dist/Tooltip-DSPKrQcQ.cjs +0 -1
  157. package/dist/vue-ui-3d-bar-DEu24HHj.cjs +0 -19
  158. package/dist/vue-ui-age-pyramid-CRYYDXFo.cjs +0 -1
  159. package/dist/vue-ui-bullet-Dy71N3Jf.cjs +0 -34
  160. package/dist/vue-ui-candlestick-aZ1YN4hh.cjs +0 -2
  161. package/dist/vue-ui-chestnut-DuycsDaB.cjs +0 -6
  162. package/dist/vue-ui-circle-pack-BFF5_9Sm.cjs +0 -1
  163. package/dist/vue-ui-donut-BO6RWqZ6.cjs +0 -1
  164. package/dist/vue-ui-donut-evolution-BgJMw_a4.cjs +0 -1
  165. package/dist/vue-ui-dumbbell-BSXxNjyK.cjs +0 -9
  166. package/dist/vue-ui-flow-LNlNIRfb.cjs +0 -1
  167. package/dist/vue-ui-funnel-BhDmLkFj.cjs +0 -1
  168. package/dist/vue-ui-galaxy-BcwAAgUh.cjs +0 -1
  169. package/dist/vue-ui-gauge-BCf-2H4T.cjs +0 -1
  170. package/dist/vue-ui-heatmap-Bxhy4dCf.cjs +0 -1
  171. package/dist/vue-ui-history-plot-CTBCFIG0.cjs +0 -1
  172. package/dist/vue-ui-molecule-pTMJG_3k.cjs +0 -1
  173. package/dist/vue-ui-mood-radar-DXLYUXbX.cjs +0 -1
  174. package/dist/vue-ui-nested-donuts-yztsnsjM.cjs +0 -17
  175. package/dist/vue-ui-onion-BgbKMVNe.cjs +0 -5
  176. package/dist/vue-ui-parallel-coordinate-plot-Cha1Em8k.cjs +0 -8
  177. package/dist/vue-ui-quadrant-BzYnR_Hc.cjs +0 -1
  178. package/dist/vue-ui-quick-chart-BcW7URue.cjs +0 -15
  179. package/dist/vue-ui-radar-D-XPVXa9.cjs +0 -1
  180. package/dist/vue-ui-relation-circle-DfxnHEqR.cjs +0 -1
  181. package/dist/vue-ui-rings-C9NFME3F.cjs +0 -2
  182. package/dist/vue-ui-scatter-D0UloS1C.cjs +0 -1
  183. package/dist/vue-ui-sparkgauge-CBCbyOG2.cjs +0 -1
  184. package/dist/vue-ui-sparkhistogram-BstSpbti.cjs +0 -1
  185. package/dist/vue-ui-sparkline-DTRZ-_Qw.cjs +0 -1
  186. package/dist/vue-ui-sparkstackbar-CuU8Vpcv.cjs +0 -1
  187. package/dist/vue-ui-stackbar-B5uNBkxp.cjs +0 -6
  188. package/dist/vue-ui-strip-plot-7G7BAGQM.cjs +0 -1
  189. package/dist/vue-ui-thermometer-VnlcJh4G.cjs +0 -1
  190. package/dist/vue-ui-timer-Bh8RpM2u.cjs +0 -64
  191. package/dist/vue-ui-tiremarks-Ct96o_fd.cjs +0 -1
  192. package/dist/vue-ui-treemap-BfDk53pM.cjs +0 -1
  193. package/dist/vue-ui-vertical-bar-EIy7A0dV.cjs +0 -4
  194. package/dist/vue-ui-waffle-BB3l0zZU.cjs +0 -1
  195. package/dist/vue-ui-wheel-DfpXZJ8A.cjs +0 -1
  196. package/dist/vue-ui-word-cloud-DdaMzF2e.cjs +0 -1
  197. package/dist/vue-ui-xy-B4Mzyy81.cjs +0 -3
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-DEnRHTzk.cjs"),fe=require("./useResponsive-YQYQrAZ_.cjs"),Fe=require("./Title-Dk92HYMu.cjs"),ye=require("./usePrinter-dyVny55M.cjs"),ze=require("./Tooltip-ClMeqejQ.cjs"),Oe=require("./DataTable-Cv_TVAas.cjs"),Ae=require("./Legend-DunrYGuw.cjs"),De=require("./vue-ui-skeleton-_DN0U6W6.cjs"),qe=require("./vue-ui-accordion-D2qxHGzp.cjs"),ge=require("./useNestedProp-BNT60LxO.cjs"),Me=require("./PackageVersion-DJKkRuOD.cjs"),Re=require("./PenAndPaper-MTTJ3Gd9.cjs"),Ue=require("./useUserOptionState-BgepsfED.cjs"),je=require("./Shape-D_1vUjCL.cjs"),Ge=require("./useChartAccessibility-Cm7nkzTG.cjs"),We=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),He=["id"],Ye=["xmlns","viewBox"],Xe=["id"],Je=["stop-color"],Ke=["stop-color"],Qe=["id"],Ze=["x","y","height","width"],et=["height","width"],tt={key:0},lt=["rx","x","y","height","width","stroke","stroke-width","filter"],at=["rx","x","y","height","width","fill","stroke","stroke-width","filter"],ot={key:1},rt=["rx","x","y","height","width","fill","filter"],ut=["x","y","height","width","filter"],nt={key:0},st={key:1},it={key:2},ct={key:3},vt=["onMouseover","x","y","height","width"],dt={key:5,class:"vue-data-ui-watermark"},pt=["onClick"],ht={key:0},ft={key:1},yt=["innerHTML"],gt={__name:"vue-ui-waffle",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(me,{expose:be,emit:ke}){const{vue_ui_waffle:we}=n.useConfig(),p=me,Ce=e.useSlots(),V=e.computed(()=>!!p.dataset&&p.dataset.length),f=e.ref(n.createUid()),xe=e.ref(null),O=e.ref(!1),A=e.ref(""),B=e.ref(null),j=e.ref(0),_=e.ref(null),G=e.ref(null),W=e.ref(null),H=e.ref(null),Y=e.ref(null),X=e.ref(0),J=e.ref(0),K=e.ref(0),t=e.computed({get:()=>ee(),set:l=>l}),{userOptionsVisible:D,setUserOptionsVisibility:Q,keepUserOptionState:Z}=Ue.useUserOptionState({config:t.value}),{svgRef:Be}=Ge.useChartAccessibility({config:t.value.style.chart.title});function ee(){const l=ge.useNestedProp({userConfig:p.config,defaultConfig:we});return l.theme?{...ge.useNestedProp({userConfig:n.themes.vue_ui_waffle[l.theme]||p.config,defaultConfig:l}),customPalette:n.themePalettes[l.theme]||n.palette}:l}e.watch(()=>p.config,l=>{t.value=ee(),D.value=!t.value.userOptions.showOnChartHover,te(),X.value+=1,J.value+=1,K.value+=1,y.value.showTable=t.value.table.show,y.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const P=e.ref(null);function te(){if(n.objectIsEmpty(p.dataset)?n.error({componentName:"VueUiWaffle",type:"dataset"}):p.dataset.forEach((l,o)=>{n.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(a=>{n.error({componentName:"VueUiWaffle",type:"datasetSerieAttribute",property:a,index:o})})}),t.value.responsive){const l=fe.throttle(()=>{const{width:o,height:a}=fe.useResponsive({chart:_.value,title:t.value.style.chart.title.text?G.value:null,legend:t.value.style.chart.legend.show?W.value:null,source:H.value,noTitle:Y.value});requestAnimationFrame(()=>{C.value.width=o,C.value.height=a,g.value.width=o,g.value.height=a})});P.value=new ResizeObserver(l),P.value.observe(_.value.parentNode)}}e.onMounted(()=>{te()}),e.onBeforeUnmount(()=>{P.value&&P.value.disconnect()});const{isPrinting:le,isImaging:ae,generatePdf:oe,generateImage:re}=ye.usePrinter({elementId:`vue-ui-waffle_${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-waffle"}),_e=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),ue=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),y=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),C=e.ref({height:512,width:512}),g=e.ref({top:0,left:0,height:512,width:512}),m=e.computed(()=>(g.value.width-t.value.style.chart.layout.grid.size*t.value.style.chart.layout.grid.spaceBetween)/t.value.style.chart.layout.grid.size),b=e.computed(()=>(g.value.height-t.value.style.chart.layout.grid.size*t.value.style.chart.layout.grid.spaceBetween)/t.value.style.chart.layout.grid.size),T=e.computed(()=>g.value.width/t.value.style.chart.layout.grid.size),E=e.computed(()=>g.value.height/t.value.style.chart.layout.grid.size);function ne(l){const o=t.value.style.chart.layout.grid.size*t.value.style.chart.layout.grid.size,a=l.reduce((h,U)=>h+U,0),r=l.map(h=>h/a*o),u=r.map(Math.floor),i=r.map(h=>h%1);let d=o-u.reduce((h,U)=>h+U,0);for(;d>0;){let h=i.indexOf(Math.max(...i));u[h]+=1,i[h]=0,d-=1}return u}function se(){return p.dataset.map((l,o)=>({...l,color:n.convertColorToHex(l.color)||ue.value[o]||n.palette[o]||n.palette[o%n.palette.length],uid:`serie_${o}`,absoluteIndex:o}))}const q=e.computed(()=>se()),c=e.ref(q.value);e.watch(()=>p.dataset,l=>{c.value=se()},{deep:!0});const Se=e.computed(()=>{const l=c.value.filter((o,a)=>!v.value.includes(o.uid)).map((o,a)=>(o.values||[]).reduce((r,u)=>r+u,0));return ne(l)}),$e=e.computed(()=>{const l=c.value.map((o,a)=>(o.values||[]).reduce((r,u)=>r+u));return ne(l)}),L=e.computed(()=>(p.dataset.forEach((l,o)=>{[null,void 0].includes(l.values)&&n.error({componentName:"VueUiWaffle",type:"datasetSerieAttribute",property:"values (number[])",index:o})}),c.value.filter((l,o)=>!v.value.includes(l.uid)).map((l,o)=>({absoluteIndex:l.absoluteIndex,uid:l.uid,name:l.name,color:l.color,value:(l.values||[]).reduce((a,r)=>a+r,0),absoluteValues:l.values||[],proportion:Se.value[o]})))),Ne=e.computed(()=>c.value.map((l,o)=>({absoluteIndex:l.absoluteIndex,uid:l.uid,name:l.name,color:l.color,value:(l.values||[]).reduce((a,r)=>a+r,0),absoluteValues:l.values||[],proportion:$e.value[o]})));function Te(){return Ne.value.map(l=>({name:l.name,color:l.color,value:l.value,proportion:l.proportion}))}const Le=e.computed(()=>{let l=0;return L.value.map((o,a)=>{const r=l,u=r+o.proportion,i=[];for(let d=Math.floor(r);d<Math.floor(u);d+=1)i.push(d);return l=u,{...o,start:r,rects:i}})}),s=e.computed(()=>Le.value.flatMap((l,o)=>l.rects.map((a,r)=>({isFirst:r===0,isLongEnough:a.length>2,name:l.name,color:l.color,value:l.value,serieIndex:o,absoluteStartIndex:r<3,serieId:l.uid,...l}))).map((l,o)=>({...l,isAbsoluteFirst:o%t.value.style.chart.layout.grid.size===0}))),S=e.computed(()=>{const l=[];for(let o=0;o<t.value.style.chart.layout.grid.size;o+=1)for(let a=0;a<t.value.style.chart.layout.grid.size;a+=1)l.push({isStartOfLine:a===0,position:t.value.style.chart.layout.grid.vertical?o:a,x:(t.value.style.chart.layout.grid.vertical?o:a)*(m.value+t.value.style.chart.layout.grid.spaceBetween),y:(t.value.style.chart.layout.grid.vertical?a:o)*(b.value+t.value.style.chart.layout.grid.spaceBetween)+g.value.top});return l}),v=e.ref([]),x=e.ref(!1),ie=e.ref(null),ce=e.ref(null);function ve(l){if(!t.value.useAnimation){v.value.includes(l)?v.value=v.value.filter(u=>u!==l):v.value.length<$.value.length-1&&$.value.length>1&&v.value.push(l);return}const o=q.value.find(u=>u.uid===l).values.reduce((u,i)=>u+i,0),a=c.value.find(u=>u.uid===l).values.reduce((u,i)=>u+i,0);let r=a;if(v.value.includes(l)){let i=function(){r>u?(cancelAnimationFrame(ie.value),c.value=c.value.map((d,h)=>d.uid===l?{...d,values:[u]}:d),x.value=!1):(x.value=!0,r+=u*.025,c.value=c.value.map((d,h)=>d.uid===l?{...d,values:[r]}:d),ie.value=requestAnimationFrame(i))};v.value=v.value.filter(d=>d!==l);const u=o;i()}else if(v.value.length<$.value.length-1&&$.value.length>1){let u=function(){r<a/100?(cancelAnimationFrame(ce.value),v.value.push(l),c.value=c.value.map((i,d)=>i.uid===l?{...i,values:[0]}:i),x.value=!1):(x.value=!0,r/=1.15,c.value=c.value.map(i=>i.uid===l?{...i,values:[r]}:i),ce.value=requestAnimationFrame(u))};u()}Ee("selectLegend",L.value.map(u=>({name:u.name,color:u.color,value:u.value,proportion:u.proportion/Math.pow(t.value.style.chart.layout.grid.size,2)})))}const $=e.computed(()=>c.value.map((l,o)=>({name:l.name,color:l.color||ue[o]||n.palette[o]||n.palette[o%n.palette.length],value:(l.values||[]).reduce((a,r)=>a+r,0),uid:l.uid,shape:"square"})).map(l=>({...l,proportion:l.value/c.value.map(o=>(o.values||[]).reduce((a,r)=>a+r,0)).reduce((o,a)=>o+a,0),opacity:v.value.includes(l.uid)?.5:1,segregate:()=>ve(l.uid),isSegregated:v.value.includes(l.uid)}))),Ve=e.computed(()=>({cy:"waffle-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),k=e.computed(()=>L.value.map(l=>l.value).reduce((l,o)=>l+o,0)),M=e.ref(null);function Pe(l){if(v.value.length===p.dataset.length)return;const o=s.value[l];M.value={datapoint:o,seriesIndex:o.absoluteIndex,series:c.value,config:t.value},O.value=!0,B.value=s.value[l].serieIndex;const a=t.value.style.chart.tooltip.customFormat;if(n.isFunction(a)&&n.functionReturnsString(()=>a({seriesIndex:s.value[l].absoluteIndex,datapoint:o,series:c.value,config:t.value})))A.value=a({seriesIndex:s.value[l].absoluteIndex,datapoint:o,series:c.value,config:t.value});else{let r="";if(r+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,r+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${o.color}" />${Ce.pattern?`<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${f.value}_${o.absoluteIndex})"/>`:""}</svg>`,t.value.style.chart.tooltip.showValue&&(r+=`<b>${n.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:o,seriesIndex:s.value[l].absoluteIndex,series:c.value})}</b>`),t.value.style.chart.tooltip.showPercentage){const u=n.dataLabel({v:o.value/k.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage});t.value.style.chart.tooltip.showValue?r+=`<span>(${u})</span></div>`:r+=`<b>${u}%</b></div>`}A.value=r}}const Ee=ke,w=e.computed(()=>{const l=L.value.map(a=>({name:a.name,color:a.color})),o=L.value.map(a=>a.value);return{head:l,body:o}});function I(l){return t.value.useBlurOnHover&&![null,void 0].includes(B.value)&&B.value!==l?`url(#blur_${f.value})`:""}function de(){e.nextTick(()=>{const l=w.value.head.map((r,u)=>[[r.name],[w.value.body[u]],[isNaN(w.value.body[u]/k.value)?"-":w.value.body[u]/k.value*100]]),o=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),a=n.createCsvContent(o);n.downloadCsv({csvContent:a,title:t.value.style.chart.title.text||"vue-ui-waffle"})})}const F=e.computed(()=>{const l=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',n.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,k.value,n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:k.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue})),"100%"],o=w.value.head.map((u,i)=>[{color:u.color,name:u.name},n.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,w.value.body[i],n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:w.value.body[i],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue})),isNaN(w.value.body[i]/k.value)?"-":n.dataLabel({v:w.value.body[i]/k.value*100,s:"%",r:t.value.table.td.roundingPercentage})]),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},shape:"square",breakpoint:t.value.table.responsiveBreakpoint},r=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:l,body:o,config:a,colNames:r}}),N=e.ref(!1);function Ie(l){N.value=l,j.value+=1}function pe(){y.value.showTable=!y.value.showTable}function he(){y.value.showTooltip=!y.value.showTooltip}const z=e.ref(!1);function R(){z.value=!z.value}return be({getData:Te,generatePdf:oe,generateCsv:de,generateImage:re,toggleTable:pe,toggleTooltip:he,toggleAnnotator:R}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-waffle ${N.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"waffleChart",ref:_,id:`vue-ui-waffle_${f.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%":""}`),onMouseenter:o[3]||(o[3]=()=>e.unref(Q)(!0)),onMouseleave:o[4]||(o[4]=()=>e.unref(Q)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Re.PenAndPaper,{key:0,parent:_.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:z.value,onClose:R},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),_e.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:Y,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:G,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(Fe._sfc_main,{key:`title_${X.value}`,config:{title:{cy:"waffle-title",...t.value.style.chart.title},subtitle:{cy:"waffle-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&V.value&&(e.unref(Z)||e.unref(D))?(e.openBlock(),e.createBlock(ye.UserOptions,{ref_key:"details",ref:xe,key:`user_options_${j.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(le),isImaging:e.unref(ae),uid:f.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:N.value,isTooltip:y.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:_.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:z.value,onToggleFullscreen:Ie,onGeneratePdf:e.unref(oe),onGenerateCsv:de,onGenerateImage:e.unref(re),onToggleTable:pe,onToggleTooltip:he,onToggleAnnotator:R,style:e.normalizeStyle({visibility:e.unref(Z)?e.unref(D)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:r})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:r})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:r})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),V.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:Be,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":N.value,"vue-data-ui-fulscreen--off":!N.value}),viewBox:`0 0 ${C.value.width<=0?10:C.value.width} ${C.value.height<=0?10:C.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Me._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(a,r)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${f.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(a.color,.05),100-t.value.style.chart.layout.rect.gradientIntensity)},null,8,Je),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Ke)],8,Xe))),256))]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${f.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},o[5]||(o[5]=[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2},null,-1),e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)]),8,Qe)]),t.value.useCustomCells&&s.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(S.value,(a,r)=>(e.openBlock(),e.createElementBlock("foreignObject",{x:a.x,y:a.y,height:b.value<=0?1e-4:b.value,width:m.value<=0?1e-4:m.value,class:"vue-ui-waffle-custom-cell-foreignObject"},[e.renderSlot(l.$slots,"cell",e.mergeProps({ref_for:!0},{cell:{...a,color:s.value[r].color,...s.value[r]},isSelected:[null,void 0].includes(B.value)?!0:s.value[r].serieIndex===B.value}),void 0,!0)],8,Ze))),256)):e.createCommentVNode("",!0),!s.value.length&&!t.value.useCustomCells?(e.openBlock(),e.createElementBlock("rect",{key:1,x:12,y:12,height:g.value.height-24,width:g.value.width-24,rx:3,fill:"none",stroke:"black"},null,8,et)):s.value.length&&!t.value.useCustomCells?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[l.$slots.pattern?(e.openBlock(),e.createElementBlock("g",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,a=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(l.$slots,"pattern",e.mergeProps({ref_for:!0},{seriesIndex:a.absoluteIndex,patternId:`pattern_${f.value}_${a.absoluteIndex}`}),void 0,!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(a,r)=>(e.openBlock(),e.createElementBlock("rect",{rx:t.value.style.chart.layout.rect.rounded?t.value.style.chart.layout.rect.rounding:0,x:a.x+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.grid.spaceBetween/2,height:b.value<=0?1e-4:b.value,width:m.value<=0?1e-4:m.value,fill:"white",stroke:t.value.style.chart.layout.rect.stroke,"stroke-width":t.value.style.chart.layout.rect.strokeWidth,filter:I(s.value[r].serieIndex)},null,8,lt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(a,r)=>(e.openBlock(),e.createElementBlock("rect",{rx:t.value.style.chart.layout.rect.rounded?t.value.style.chart.layout.rect.rounding:0,x:a.x+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.grid.spaceBetween/2,height:b.value<=0?1e-4:b.value,width:m.value<=0?1e-4:m.value,fill:t.value.style.chart.layout.rect.useGradient&&t.value.style.chart.layout.rect.gradientIntensity>0?`url(#gradient_${f.value}_${r})`:s.value[r].color,stroke:t.value.style.chart.layout.rect.stroke,"stroke-width":t.value.style.chart.layout.rect.strokeWidth,filter:I(s.value[r].serieIndex)},null,8,at))),256)),l.$slots.pattern?(e.openBlock(),e.createElementBlock("g",ot,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(a,r)=>(e.openBlock(),e.createElementBlock("rect",{rx:t.value.style.chart.layout.rect.rounded?t.value.style.chart.layout.rect.rounding:0,x:a.x+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.grid.spaceBetween/2,height:b.value<=0?1e-4:b.value,width:m.value<=0?1e-4:m.value,fill:`url(#pattern_${f.value}_${s.value[r].absoluteIndex})`,stroke:"none",filter:I(s.value[r].serieIndex)},null,8,rt))),256))])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.value.length&&!x.value&&!t.value.style.chart.layout.grid.vertical&&t.value.style.chart.layout.labels.captions.show&&(s.value[r].isFirst&&a.position<t.value.style.chart.layout.grid.size-2||s.value[r].isAbsoluteFirst&&r%t.value.style.chart.layout.grid.size===0&&s.value[r].absoluteStartIndex)?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:a.x+t.value.style.chart.layout.labels.captions.offsetX+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.labels.captions.offsetY+t.value.style.chart.layout.grid.spaceBetween/2,height:E.value<=0?1e-4:E.value,width:T.value*t.value.style.chart.layout.grid.size<=0?1e-4:T.value*t.value.style.chart.layout.grid.size,filter:I(s.value[r].serieIndex)},[e.createElementVNode("div",{class:"vue-ui-waffle-caption",style:e.normalizeStyle(`height: 100%; width: 100%; font-size:${t.value.style.chart.layout.labels.captions.fontSize}px;display:flex;align-items:center;justify-content:flex-start;padding: 0 ${T.value/12}px;color:${e.unref(n.adaptColorToBackground)(s.value[r].color)};gap:2px`)},[t.value.style.chart.layout.labels.captions.showSerieName?(e.openBlock(),e.createElementBlock("span",nt,e.toDisplayString(t.value.style.chart.layout.labels.captions.serieNameAbbreviation?e.unref(n.abbreviate)({source:s.value[r].name,length:t.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize}):s.value[r].name)+": ",1)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.captions.showPercentage?(e.openBlock(),e.createElementBlock("span",st,e.toDisplayString(e.unref(n.dataLabel)({v:s.value[r].proportion,s:"%",r:t.value.style.chart.layout.labels.captions.roundingPercentage})),1)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.captions.showPercentage&&t.value.style.chart.layout.labels.captions.showValue?(e.openBlock(),e.createElementBlock("span",it," ("+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,s.value[r].value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:s.value[r].value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.captions.roundingValue}),{datapoint:s.value[r],position:a}))+") ",1)):e.createCommentVNode("",!0),!t.value.style.chart.layout.labels.captions.showPercentage&&t.value.style.chart.layout.labels.captions.showValue?(e.openBlock(),e.createElementBlock("span",ct,e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,s.value[r].value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:s.value[r].value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.captions.roundingValue}),{datapoint:s.value[r],position:a})),1)):e.createCommentVNode("",!0)],4)],8,ut)):e.createCommentVNode("",!0)],64))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(a,r)=>(e.openBlock(),e.createElementBlock("rect",{onMouseover:u=>Pe(r),onMouseleave:o[0]||(o[0]=u=>{O.value=!1,B.value=null}),x:a.x+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.grid.spaceBetween/2,height:E.value<=0?1e-4:E.value,width:T.value<=0?1e-4:T.value,fill:"transparent",stroke:"none"},null,40,vt))),256)),e.renderSlot(l.$slots,"svg",{svg:C.value},void 0,!0)],14,Ye)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",dt,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(le)||e.unref(ae)})),void 0,!0)])):e.createCommentVNode("",!0),V.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(De.default,{key:6,config:{type:"waffle",style:{backgroundColor:t.value.style.chart.backgroundColor,waffle:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:W},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Ae.Legend,{key:`legend_${K.value}`,legendSet:$.value,config:Ve.value,onClickMarker:o[1]||(o[1]=({legend:a})=>ve(a.uid))},e.createSlots({item:e.withCtx(({legend:a})=>[e.createElementVNode("div",{onClick:r=>a.segregate(),style:e.normalizeStyle(`opacity:${v.value.includes(a.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(a.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,a.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue,isAnimating:x.value}),{datapoint:a}))+" ",1),v.value.includes(a.uid)?(e.openBlock(),e.createElementBlock("span",ft," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",ht," ("+e.toDisplayString(isNaN(a.value/k.value)?"-":e.unref(n.dataLabel)({v:a.value/k.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage,isAnimating:x.value}))+") ",1))],12,pt)]),_:2},[l.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:a,index:r})=>[e.createVNode(je._sfc_main,{shape:a.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${f.value}_${r})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:$.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:H,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ze._sfc_main,{show:y.value.showTooltip&&O.value&&v.value.length<p.dataset.length,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:_.value,content:A.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function",fontSize:t.value.style.chart.tooltip.fontSize,isFullscreen:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...M.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...M.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom","fontSize","isFullscreen"]),V.value?(e.openBlock(),e.createBlock(qe.default,{key:8,hideDetails:"",config:{open:y.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Oe.DataTable,{key:`table_${J.value}`,colNames:F.value.colNames,head:F.value.head,body:F.value.body,config:F.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:o[2]||(o[2]=a=>y.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a,style:{display:"flex","align-items":"center"}},null,8,yt)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a.name||a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,He))}},mt=We._export_sfc(gt,[["__scopeId","data-v-059288a6"]]);exports.default=mt;
@@ -1,18 +1,19 @@
1
- import { computed as y, ref as i, watch as V, onMounted as ve, onBeforeUnmount as he, createElementBlock as c, openBlock as s, unref as n, normalizeStyle as A, createBlock as C, createCommentVNode as h, createSlots as de, withCtx as _, renderSlot as f, normalizeProps as F, guardReactiveProps as S, normalizeClass as z, createVNode as ye, Fragment as J, renderList as K, toDisplayString as fe } from "vue";
2
- import { u as pe, c as ge, a as me, o as ke, e as we, w as Q, m as be, X as Ce, i as _e, v as Z, f as Oe } from "./index-B9qF6XbP.js";
3
- import { _ as $e } from "./Title-D6h1gTvZ.js";
4
- import { u as xe, U as Ie } from "./usePrinter-DsiBLAy1.js";
5
- import { t as Pe, u as Ae } from "./useResponsive-BWapHhVH.js";
6
- import Fe from "./vue-ui-skeleton-CHEZlRpn.js";
7
- import { u as ee } from "./useNestedProp-g5oKzlVy.js";
8
- import { _ as Se } from "./PackageVersion-DqmHcoqz.js";
9
- import { P as ze } from "./PenAndPaper-6UYizrkQ.js";
10
- import { u as Me } from "./useUserOptionState-BIvW1Kz7.js";
11
- import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const Ne = ["id"], Ue = ["xmlns", "viewBox"], Xe = ["width", "height"], Le = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], Be = ["d", "fill"], Ee = ["cx", "cy", "r", "stroke", "stroke-width"], Ge = ["x", "y", "font-size", "fill", "font-weight"], Re = {
1
+ import { computed as y, ref as i, watch as V, onMounted as he, onBeforeUnmount as de, createElementBlock as c, openBlock as n, unref as s, normalizeStyle as A, createBlock as C, createCommentVNode as h, createSlots as ye, withCtx as _, renderSlot as f, normalizeProps as F, guardReactiveProps as S, normalizeClass as z, createVNode as fe, Fragment as J, renderList as K, toDisplayString as pe } from "vue";
2
+ import { u as ge, c as me, a as ke, o as we, e as be, w as Q, m as Ce, X as _e, i as Oe, v as Z, f as $e } from "./index-9EeNZMz1.js";
3
+ import { _ as xe } from "./Title-BI8etrRU.js";
4
+ import { u as Ie, U as Pe } from "./usePrinter-ngrh00Ym.js";
5
+ import { t as Ae, u as Fe } from "./useResponsive-BWapHhVH.js";
6
+ import Se from "./vue-ui-skeleton-BmJiYGtE.js";
7
+ import { u as ee } from "./useNestedProp-df_bKQEI.js";
8
+ import { _ as ze } from "./PackageVersion-QRvxRYPv.js";
9
+ import { P as Me } from "./PenAndPaper-CxC1lWGK.js";
10
+ import { u as Te } from "./useUserOptionState-BIvW1Kz7.js";
11
+ import { u as Ne } from "./useChartAccessibility-BWojgys7.js";
12
+ import { _ as Ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const Re = ["id"], Xe = ["xmlns", "viewBox"], Le = ["width", "height"], Be = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], Ee = ["d", "fill"], Ge = ["cx", "cy", "r", "stroke", "stroke-width"], je = ["x", "y", "font-size", "fill", "font-weight"], De = {
13
14
  key: 5,
14
15
  class: "vue-data-ui-watermark"
15
- }, je = {
16
+ }, Ye = {
16
17
  __name: "vue-ui-wheel",
17
18
  props: {
18
19
  config: {
@@ -29,26 +30,26 @@ const Ne = ["id"], Ue = ["xmlns", "viewBox"], Xe = ["width", "height"], Le = ["x
29
30
  }
30
31
  },
31
32
  setup(te, { expose: ae }) {
32
- const { vue_ui_wheel: le } = pe(), d = te, O = y(() => !!d.dataset && Object.keys(d.dataset).length), $ = i(ge()), oe = i(null), M = i(0), p = i(null), T = i(null), N = i(null), U = i(null), X = i(0), e = y({
33
- get: () => E(),
33
+ const { vue_ui_wheel: le } = ge(), d = te, O = y(() => !!d.dataset && Object.keys(d.dataset).length), $ = i(me()), oe = i(null), M = i(0), p = i(null), T = i(null), N = i(null), U = i(null), R = i(0), e = y({
34
+ get: () => B(),
34
35
  set: (t) => t
35
- }), { userOptionsVisible: x, setUserOptionsVisibility: L, keepUserOptionState: B } = Me({ config: e.value });
36
- function E() {
36
+ }), { userOptionsVisible: x, setUserOptionsVisibility: X, keepUserOptionState: L } = Te({ config: e.value }), { svgRef: se } = Ne({ config: e.value.style.chart.title });
37
+ function B() {
37
38
  const t = ee({
38
39
  userConfig: d.config,
39
40
  defaultConfig: le
40
41
  });
41
42
  return t.theme ? {
42
43
  ...ee({
43
- userConfig: me.vue_ui_wheel[t.theme] || d.config,
44
+ userConfig: ke.vue_ui_wheel[t.theme] || d.config,
44
45
  defaultConfig: t
45
46
  })
46
47
  } : t;
47
48
  }
48
49
  V(() => d.config, (t) => {
49
- e.value = E(), x.value = !e.value.userOptions.showOnChartHover, H(), X.value += 1;
50
+ e.value = B(), x.value = !e.value.userOptions.showOnChartHover, H(), R.value += 1;
50
51
  }, { deep: !0 });
51
- const { isPrinting: G, isImaging: R, generatePdf: j, generateImage: D } = xe({
52
+ const { isPrinting: E, isImaging: G, generatePdf: j, generateImage: D } = Ie({
52
53
  elementId: $.value,
53
54
  fileName: e.value.style.chart.title.text || "vue-ui-wheel"
54
55
  }), ne = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), l = i({
@@ -71,16 +72,16 @@ const Ne = ["id"], Ue = ["xmlns", "viewBox"], Xe = ["width", "height"], Le = ["x
71
72
  e.value.style.chart.animation.use ? W(t.percentage) : u.value = t.percentage || 0;
72
73
  }, { deep: !0 });
73
74
  const m = i(null);
74
- ve(() => {
75
+ he(() => {
75
76
  H();
76
77
  });
77
78
  function H() {
78
- if (ke(d.dataset) && we({
79
+ if (we(d.dataset) && be({
79
80
  componentName: "VueUiWheel",
80
81
  type: "dataset"
81
82
  }), W(d.dataset.percentage || 0), e.value.responsive) {
82
- const t = Pe(() => {
83
- const { width: o, height: a } = Ae({
83
+ const t = Ae(() => {
84
+ const { width: o, height: a } = Fe({
84
85
  chart: p.value,
85
86
  title: e.value.style.chart.title.text ? T.value : null,
86
87
  source: N.value,
@@ -93,7 +94,7 @@ const Ne = ["id"], Ue = ["xmlns", "viewBox"], Xe = ["width", "height"], Le = ["x
93
94
  m.value = new ResizeObserver(t), m.value.observe(p.value.parentNode);
94
95
  }
95
96
  }
96
- he(() => {
97
+ de(() => {
97
98
  m.value && m.value.disconnect();
98
99
  });
99
100
  function W(t) {
@@ -107,22 +108,22 @@ const Ne = ["id"], Ue = ["xmlns", "viewBox"], Xe = ["width", "height"], Le = ["x
107
108
  const g = y(() => Math.max(100, e.value.style.chart.layout.wheel.ticks.quantity)), k = y(() => 100 / g.value), q = y(() => {
108
109
  const t = [];
109
110
  for (let o = 0; o < g.value; o += 1) {
110
- const a = u.value > o * k.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: v, y: ue } = Y(l.value.size / g.value * o), { x: ie, y: ce } = Y(l.value.size / g.value * o, e.value.style.chart.layout.wheel.ticks.sizeRatio);
111
+ const a = u.value > o * k.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: v, y: ie } = Y(l.value.size / g.value * o), { x: ce, y: ve } = Y(l.value.size / g.value * o, e.value.style.chart.layout.wheel.ticks.sizeRatio);
111
112
  t.push({
112
113
  x1: v,
113
- y1: ue,
114
- x2: ie,
115
- y2: ce,
114
+ y1: ie,
115
+ x2: ce,
116
+ y2: ve,
116
117
  color: e.value.style.chart.layout.wheel.ticks.gradient.show ? Q(a, o * k.value / g.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
117
118
  });
118
119
  }
119
120
  return t;
120
- }), se = y(() => be({ series: q.value.map((t) => ({
121
+ }), re = y(() => Ce({ series: q.value.map((t) => ({
121
122
  name: "",
122
123
  value: 1,
123
124
  color: t.color
124
125
  })) }, r.value.centerX, r.value.centerY, r.value.radius, r.value.radius, 1.99999, 2, 1, 360, 105.25, r.value.radius * (1 - e.value.style.chart.layout.wheel.ticks.sizeRatio))), w = i(!1);
125
- function re(t) {
126
+ function ue(t) {
126
127
  w.value = t, M.value += 1;
127
128
  }
128
129
  const b = i(!1);
@@ -133,16 +134,16 @@ const Ne = ["id"], Ue = ["xmlns", "viewBox"], Xe = ["width", "height"], Le = ["x
133
134
  generatePdf: j,
134
135
  generateImage: D,
135
136
  toggleAnnotator: P
136
- }), (t, o) => (s(), c("div", {
137
+ }), (t, o) => (n(), c("div", {
137
138
  class: "vue-ui-wheel",
138
139
  ref_key: "wheelChart",
139
140
  ref: p,
140
141
  id: $.value,
141
142
  style: A(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
142
- onMouseenter: o[0] || (o[0] = () => n(L)(!0)),
143
- onMouseleave: o[1] || (o[1] = () => n(L)(!1))
143
+ onMouseenter: o[0] || (o[0] = () => s(X)(!0)),
144
+ onMouseleave: o[1] || (o[1] = () => s(X)(!1))
144
145
  }, [
145
- e.value.userOptions.buttons.annotator ? (s(), C(ze, {
146
+ e.value.userOptions.buttons.annotator ? (n(), C(Me, {
146
147
  key: 0,
147
148
  parent: p.value,
148
149
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -150,21 +151,21 @@ const Ne = ["id"], Ue = ["xmlns", "viewBox"], Xe = ["width", "height"], Le = ["x
150
151
  active: b.value,
151
152
  onClose: P
152
153
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : h("", !0),
153
- ne.value ? (s(), c("div", {
154
+ ne.value ? (n(), c("div", {
154
155
  key: 1,
155
156
  ref_key: "noTitle",
156
157
  ref: U,
157
158
  class: "vue-data-ui-no-title-space",
158
159
  style: "height:36px; width: 100%;background:transparent"
159
160
  }, null, 512)) : h("", !0),
160
- e.value.style.chart.title.text ? (s(), c("div", {
161
+ e.value.style.chart.title.text ? (n(), c("div", {
161
162
  key: 2,
162
163
  ref_key: "chartTitle",
163
164
  ref: T,
164
165
  style: "width:100%;background:transparent;padding-bottom:12px"
165
166
  }, [
166
- (s(), C($e, {
167
- key: `title_${X.value}`,
167
+ (n(), C(xe, {
168
+ key: `title_${R.value}`,
168
169
  config: {
169
170
  title: {
170
171
  cy: "wheel-title",
@@ -177,14 +178,14 @@ const Ne = ["id"], Ue = ["xmlns", "viewBox"], Xe = ["width", "height"], Le = ["x
177
178
  }
178
179
  }, null, 8, ["config"]))
179
180
  ], 512)) : h("", !0),
180
- e.value.userOptions.show && O.value && (n(B) || n(x)) ? (s(), C(Ie, {
181
+ e.value.userOptions.show && O.value && (s(L) || s(x)) ? (n(), C(Pe, {
181
182
  ref_key: "details",
182
183
  ref: oe,
183
184
  key: `user_options_${M.value}`,
184
185
  backgroundColor: e.value.style.chart.backgroundColor,
185
186
  color: e.value.style.chart.color,
186
- isPrinting: n(G),
187
- isImaging: n(R),
187
+ isPrinting: s(E),
188
+ isImaging: s(G),
188
189
  uid: $.value,
189
190
  hasPdf: e.value.userOptions.buttons.pdf,
190
191
  hasImg: e.value.userOptions.buttons.img,
@@ -196,14 +197,14 @@ const Ne = ["id"], Ue = ["xmlns", "viewBox"], Xe = ["width", "height"], Le = ["x
196
197
  hasAnnotator: e.value.userOptions.buttons.annotator,
197
198
  isAnnotation: b.value,
198
199
  chartElement: p.value,
199
- onToggleFullscreen: re,
200
- onGeneratePdf: n(j),
201
- onGenerateImage: n(D),
200
+ onToggleFullscreen: ue,
201
+ onGeneratePdf: s(j),
202
+ onGenerateImage: s(D),
202
203
  onToggleAnnotator: P,
203
204
  style: A({
204
- visibility: n(B) ? n(x) ? "visible" : "hidden" : "visible"
205
+ visibility: s(L) ? s(x) ? "visible" : "hidden" : "visible"
205
206
  })
206
- }, de({ _: 2 }, [
207
+ }, ye({ _: 2 }, [
207
208
  t.$slots.optionPdf ? {
208
209
  name: "optionPdf",
209
210
  fn: _(() => [
@@ -233,15 +234,17 @@ const Ne = ["id"], Ue = ["xmlns", "viewBox"], Xe = ["width", "height"], Le = ["x
233
234
  key: "3"
234
235
  } : void 0
235
236
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
236
- O.value ? (s(), c("svg", {
237
+ O.value ? (n(), c("svg", {
237
238
  key: 4,
238
- xmlns: n(Ce),
239
+ ref_key: "svgRef",
240
+ ref: se,
241
+ xmlns: s(_e),
239
242
  class: z({ "vue-data-ui-fullscreen--on": w.value, "vue-data-ui-fulscreen--off": !w.value }),
240
243
  viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
241
244
  style: A(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
242
245
  }, [
243
- ye(Se),
244
- t.$slots["chart-background"] ? (s(), c("foreignObject", {
246
+ fe(ze),
247
+ t.$slots["chart-background"] ? (n(), c("foreignObject", {
245
248
  key: 0,
246
249
  x: 0,
247
250
  y: 0,
@@ -252,8 +255,8 @@ const Ne = ["id"], Ue = ["xmlns", "viewBox"], Xe = ["width", "height"], Le = ["x
252
255
  }
253
256
  }, [
254
257
  f(t.$slots, "chart-background", {}, void 0, !0)
255
- ], 8, Xe)) : h("", !0),
256
- e.value.style.chart.layout.wheel.ticks.type === "classic" ? (s(!0), c(J, { key: 1 }, K(q.value, (a, v) => (s(), c("line", {
258
+ ], 8, Le)) : h("", !0),
259
+ e.value.style.chart.layout.wheel.ticks.type === "classic" ? (n(!0), c(J, { key: 1 }, K(q.value, (a, v) => (n(), c("line", {
257
260
  x1: a.x1,
258
261
  x2: a.x2,
259
262
  y1: a.y1,
@@ -262,12 +265,12 @@ const Ne = ["id"], Ue = ["xmlns", "viewBox"], Xe = ["width", "height"], Le = ["x
262
265
  "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(l.value.width, l.value.height),
263
266
  "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
264
267
  class: z({ "vue-ui-tick-animated": e.value.style.chart.animation.use && v * k.value <= u.value })
265
- }, null, 10, Le))), 256)) : (s(!0), c(J, { key: 2 }, K(se.value, (a, v) => (s(), c("path", {
268
+ }, null, 10, Be))), 256)) : (n(!0), c(J, { key: 2 }, K(re.value, (a, v) => (n(), c("path", {
266
269
  d: a.arcSlice,
267
270
  fill: a.color,
268
271
  class: z({ "vue-ui-tick-animated": e.value.style.chart.animation.use && v * k.value <= u.value })
269
- }, null, 10, Be))), 256)),
270
- e.value.style.chart.layout.innerCircle.show ? (s(), c("circle", {
272
+ }, null, 10, Ee))), 256)),
273
+ e.value.style.chart.layout.innerCircle.show ? (n(), c("circle", {
271
274
  key: 3,
272
275
  cx: r.value.centerX,
273
276
  cy: r.value.centerY,
@@ -275,31 +278,31 @@ const Ne = ["id"], Ue = ["xmlns", "viewBox"], Xe = ["width", "height"], Le = ["x
275
278
  stroke: e.value.style.chart.layout.innerCircle.stroke,
276
279
  "stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
277
280
  fill: "none"
278
- }, null, 8, Ee)) : h("", !0),
279
- e.value.style.chart.layout.percentage.show ? (s(), c("text", {
281
+ }, null, 8, Ge)) : h("", !0),
282
+ e.value.style.chart.layout.percentage.show ? (n(), c("text", {
280
283
  key: 4,
281
284
  x: r.value.centerX,
282
285
  y: r.value.centerY + I.value / 3,
283
286
  "font-size": I.value,
284
- fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? n(Q)(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,
287
+ fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? s(Q)(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,
285
288
  "text-anchor": "middle",
286
289
  "font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
287
290
  style: { "font-variant-numeric": "tabluar-nums" }
288
- }, fe(n(_e)(
291
+ }, pe(s(Oe)(
289
292
  e.value.style.chart.layout.percentage.formatter,
290
- n(Z)(u.value),
291
- n(Oe)({
292
- v: n(Z)(u.value),
293
+ s(Z)(u.value),
294
+ s($e)({
295
+ v: s(Z)(u.value),
293
296
  s: "%",
294
297
  r: e.value.style.chart.layout.percentage.rounding
295
298
  })
296
- )), 9, Ge)) : h("", !0),
299
+ )), 9, je)) : h("", !0),
297
300
  f(t.$slots, "svg", { svg: l.value }, void 0, !0)
298
- ], 14, Ue)) : h("", !0),
299
- t.$slots.watermark ? (s(), c("div", Re, [
300
- f(t.$slots, "watermark", F(S({ isPrinting: n(G) || n(R) })), void 0, !0)
301
+ ], 14, Xe)) : h("", !0),
302
+ t.$slots.watermark ? (n(), c("div", De, [
303
+ f(t.$slots, "watermark", F(S({ isPrinting: s(E) || s(G) })), void 0, !0)
301
304
  ])) : h("", !0),
302
- t.$slots.source ? (s(), c("div", {
305
+ t.$slots.source ? (n(), c("div", {
303
306
  key: 6,
304
307
  ref_key: "source",
305
308
  ref: N,
@@ -307,7 +310,7 @@ const Ne = ["id"], Ue = ["xmlns", "viewBox"], Xe = ["width", "height"], Le = ["x
307
310
  }, [
308
311
  f(t.$slots, "source", {}, void 0, !0)
309
312
  ], 512)) : h("", !0),
310
- O.value ? h("", !0) : (s(), C(Fe, {
313
+ O.value ? h("", !0) : (n(), C(Se, {
311
314
  key: 7,
312
315
  config: {
313
316
  type: "wheel",
@@ -319,9 +322,9 @@ const Ne = ["id"], Ue = ["xmlns", "viewBox"], Xe = ["width", "height"], Le = ["x
319
322
  }
320
323
  }
321
324
  }, null, 8, ["config"]))
322
- ], 44, Ne));
325
+ ], 44, Re));
323
326
  }
324
- }, tt = /* @__PURE__ */ Te(je, [["__scopeId", "data-v-c9c35e28"]]);
327
+ }, ot = /* @__PURE__ */ Ue(Ye, [["__scopeId", "data-v-1d726029"]]);
325
328
  export {
326
- tt as default
329
+ ot as default
327
330
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-DEnRHTzk.cjs"),Q=require("./Title-Dk92HYMu.cjs"),q=require("./usePrinter-dyVny55M.cjs"),V=require("./useResponsive-YQYQrAZ_.cjs"),Z=require("./vue-ui-skeleton-_DN0U6W6.cjs"),R=require("./useNestedProp-BNT60LxO.cjs"),ee=require("./PackageVersion-DJKkRuOD.cjs"),te=require("./PenAndPaper-MTTJ3Gd9.cjs"),le=require("./useUserOptionState-BgepsfED.cjs"),ae=require("./useChartAccessibility-Cm7nkzTG.cjs"),oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ne=["id"],re=["xmlns","viewBox"],se=["width","height"],ue=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],ie=["d","fill"],ce=["cx","cy","r","stroke","stroke-width"],ve=["x","y","font-size","fill","font-weight"],de={key:5,class:"vue-data-ui-watermark"},he={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(U,{expose:L}){const{vue_ui_wheel:X}=u.useConfig(),c=U,m=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length),k=e.ref(u.createUid()),j=e.ref(null),b=e.ref(0),v=e.ref(null),B=e.ref(null),P=e.ref(null),_=e.ref(null),S=e.ref(0),t=e.computed({get:()=>x(),set:l=>l}),{userOptionsVisible:g,setUserOptionsVisibility:N,keepUserOptionState:O}=le.useUserOptionState({config:t.value}),{svgRef:G}=ae.useChartAccessibility({config:t.value.style.chart.title});function x(){const l=R.useNestedProp({userConfig:c.config,defaultConfig:X});return l.theme?{...R.useNestedProp({userConfig:u.themes.vue_ui_wheel[l.theme]||c.config,defaultConfig:l})}:l}e.watch(()=>c.config,l=>{t.value=x(),g.value=!t.value.userOptions.showOnChartHover,E(),S.value+=1},{deep:!0});const{isPrinting:$,isImaging:z,generatePdf:A,generateImage:I}=q.usePrinter({elementId:k.value,fileName:t.value.style.chart.title.text||"vue-ui-wheel"}),H=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),o=e.ref({size:360,height:360,width:360}),w=e.ref(t.value.style.chart.layout.percentage.fontSize),r=e.computed(()=>({radius:Math.min(o.value.width,o.value.height)*.9/2,centerX:o.value.width/2,centerY:o.value.height/2}));function F(l,n=1){return{x:r.value.centerX+r.value.radius*Math.cos(29.85+l*Math.PI/180)*n,y:r.value.centerY+r.value.radius*Math.sin(29.85+l*Math.PI/180)*n}}const s=e.ref(t.value.style.chart.animation.use?0:c.dataset.percentage||0);e.watch(()=>c.dataset,l=>{t.value.style.chart.animation.use?M(l.percentage):s.value=l.percentage||0},{deep:!0});const h=e.ref(null);e.onMounted(()=>{E()});function E(){if(u.objectIsEmpty(c.dataset)&&u.error({componentName:"VueUiWheel",type:"dataset"}),M(c.dataset.percentage||0),t.value.responsive){const l=V.throttle(()=>{const{width:n,height:a}=V.useResponsive({chart:v.value,title:t.value.style.chart.title.text?B.value:null,source:P.value,noTitle:_.value});requestAnimationFrame(()=>{o.value.width=n,o.value.height=a,w.value=t.value.style.chart.layout.percentage.fontSize/360*Math.min(n,a)})});h.value=new ResizeObserver(l),h.value.observe(v.value.parentNode)}}e.onBeforeUnmount(()=>{h.value&&h.value.disconnect()});function M(l){let n=t.value.style.chart.animation.speed;const a=Math.abs(l-s.value)/(n*120);function i(){s.value<l?s.value=Math.min(s.value+a,l):s.value>l&&(s.value=Math.max(s.value-a,l)),s.value!==l&&requestAnimationFrame(i)}i()}const d=e.computed(()=>Math.max(100,t.value.style.chart.layout.wheel.ticks.quantity)),f=e.computed(()=>100/d.value),T=e.computed(()=>{const l=[];for(let n=0;n<d.value;n+=1){const a=s.value>n*f.value?t.value.style.chart.layout.wheel.ticks.activeColor:t.value.style.chart.layout.wheel.ticks.inactiveColor,{x:i,y:W}=F(o.value.size/d.value*n),{x:J,y:K}=F(o.value.size/d.value*n,t.value.style.chart.layout.wheel.ticks.sizeRatio);l.push({x1:i,y1:W,x2:J,y2:K,color:t.value.style.chart.layout.wheel.ticks.gradient.show?u.shiftHue(a,n*f.value/d.value*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):a})}return l}),D=e.computed(()=>u.makeDonut({series:T.value.map(l=>({name:"",value:1,color:l.color}))},r.value.centerX,r.value.centerY,r.value.radius,r.value.radius,1.99999,2,1,360,105.25,r.value.radius*(1-t.value.style.chart.layout.wheel.ticks.sizeRatio))),y=e.ref(!1);function Y(l){y.value=l,b.value+=1}const p=e.ref(!1);function C(){p.value=!p.value}return L({generatePdf:A,generateImage:I,toggleAnnotator:C}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:v,id:k.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%":""}`),onMouseenter:n[0]||(n[0]=()=>e.unref(N)(!0)),onMouseleave:n[1]||(n[1]=()=>e.unref(N)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(te.PenAndPaper,{key:0,parent:v.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:p.value,onClose:C},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),H.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:_,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:B,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(Q._sfc_main,{key:`title_${S.value}`,config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&m.value&&(e.unref(O)||e.unref(g))?(e.openBlock(),e.createBlock(q.UserOptions,{ref_key:"details",ref:j,key:`user_options_${b.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref($),isImaging:e.unref(z),uid:k.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:y.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:p.value,chartElement:v.value,onToggleFullscreen:Y,onGeneratePdf:e.unref(A),onGenerateImage:e.unref(I),onToggleAnnotator:C,style:e.normalizeStyle({visibility:e.unref(O)?e.unref(g)?"visible":"hidden":"visible"})},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,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:i})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:i})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","position","titles","hasAnnotator","isAnnotation","chartElement","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:G,xmlns:e.unref(u.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":y.value,"vue-data-ui-fulscreen--off":!y.value}),viewBox:`0 0 ${o.value.width<=0?10:o.value.width} ${o.value.height<=0?10:o.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(ee._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:o.value.width<=0?10:o.value.width,height:o.value.height<=0?10:o.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,se)):e.createCommentVNode("",!0),t.value.style.chart.layout.wheel.ticks.type==="classic"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(T.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":t.value.style.chart.layout.wheel.ticks.strokeWidth/360*Math.min(o.value.width,o.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*f.value<=s.value})},null,10,ue))),256)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(D.value,(a,i)=>(e.openBlock(),e.createElementBlock("path",{d:a.arcSlice,fill:a.color,class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&i*f.value<=s.value})},null,10,ie))),256)),t.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:3,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,ce)):e.createCommentVNode("",!0),t.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:4,x:r.value.centerX,y:r.value.centerY+w.value/3,"font-size":w.value,fill:t.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(u.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(e.unref(u.applyDataLabel)(t.value.style.chart.layout.percentage.formatter,e.unref(u.checkNaN)(s.value),e.unref(u.dataLabel)({v:e.unref(u.checkNaN)(s.value),s:"%",r:t.value.style.chart.layout.percentage.rounding}))),9,ve)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:o.value},void 0,!0)],14,re)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",de,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref($)||e.unref(z)})),void 0,!0)])):e.createCommentVNode("",!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:P,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Z.default,{key:7,config:{type:"wheel",style:{backgroundColor:t.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],44,ne))}},fe=oe._export_sfc(he,[["__scopeId","data-v-1d726029"]]);exports.default=fe;