vue-data-ui 2.6.5 → 2.6.6

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 (158) hide show
  1. package/dist/{Arrow-CyeGXbbD.cjs → Arrow-BYqxz6UG.cjs} +1 -1
  2. package/dist/{Arrow-DfGZcZu4.js → Arrow-DFWjAvCY.js} +1 -1
  3. package/dist/{BaseIcon-B5DvqSYe.cjs → BaseIcon-COe_H-UB.cjs} +1 -1
  4. package/dist/{BaseIcon-BzuvxztF.js → BaseIcon-t20JEZNG.js} +1 -1
  5. package/dist/{DataTable-BCCBpyhr.js → DataTable-CJN0sipt.js} +2 -2
  6. package/dist/{DataTable-zpYtivMM.cjs → DataTable-Du7nJ0TM.cjs} +1 -1
  7. package/dist/{Legend-CyJrN721.js → Legend-BDyPoYfp.js} +2 -2
  8. package/dist/{Legend-CJkkmRNE.cjs → Legend-CM7IGBC3.cjs} +1 -1
  9. package/dist/{PackageVersion-PZr4BkQ5.js → PackageVersion-DqmHcoqz.js} +1 -1
  10. package/dist/{PackageVersion-Dv25_ZxF.cjs → PackageVersion-qeLvq6l8.cjs} +1 -1
  11. package/dist/{PenAndPaper-Cniu2YEX.js → PenAndPaper-6UYizrkQ.js} +3 -3
  12. package/dist/{PenAndPaper-Cx3_Liuv.cjs → PenAndPaper-BYqaxOpk.cjs} +1 -1
  13. package/dist/{Shape-GAZUIBfN.cjs → Shape-BN3-_2DI.cjs} +1 -1
  14. package/dist/{Shape-BXTmpde5.js → Shape-C_qIhG3J.js} +1 -1
  15. package/dist/{Slicer-D3tEQT9Z.js → Slicer-BQP3UIW-.js} +2 -2
  16. package/dist/{Slicer-DzKrIvL0.cjs → Slicer-DPae3p1M.cjs} +1 -1
  17. package/dist/{Title-DdUtciJN.cjs → Title-BGiQdt7J.cjs} +1 -1
  18. package/dist/{Title-CXBc1TH6.js → Title-D6h1gTvZ.js} +1 -1
  19. package/dist/{Tooltip-C9lPh5bN.js → Tooltip-BonEVaob.js} +1 -1
  20. package/dist/{Tooltip-BlGVq6xj.cjs → Tooltip-DSPKrQcQ.cjs} +1 -1
  21. package/dist/{index-DLCyjPV0.js → index-B9qF6XbP.js} +6 -1
  22. package/dist/index-kZKcQZM_.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +89 -62
  25. package/dist/types/vue-data-ui.d.ts +89 -62
  26. package/dist/{useNestedProp-BdTohsDJ.cjs → useNestedProp-D4Jn2Oxr.cjs} +1 -1
  27. package/dist/{useNestedProp-q86V3_LA.js → useNestedProp-g5oKzlVy.js} +1 -1
  28. package/dist/{usePrinter-CPqTP09H.cjs → usePrinter-DR42gTOS.cjs} +1 -1
  29. package/dist/{usePrinter-CpHZjw3G.js → usePrinter-DsiBLAy1.js} +1 -1
  30. package/dist/{vue-data-ui-CzqznXmA.js → vue-data-ui-DB2kdhYH.js} +61 -61
  31. package/dist/{vue-data-ui-CR9Dof80.cjs → vue-data-ui-DbhVASfn.cjs} +1 -1
  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-vvpkf_bv.cjs → vue-ui-3d-bar-DEu24HHj.cjs} +1 -1
  35. package/dist/{vue-ui-3d-bar-DvHdA_uo.js → vue-ui-3d-bar-DHeSFJ5z.js} +9 -9
  36. package/dist/{vue-ui-accordion-FM16tlk7.cjs → vue-ui-accordion-BfDu7hTY.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-DR2qjfsa.js → vue-ui-accordion-DBmchkva.js} +3 -3
  38. package/dist/{vue-ui-age-pyramid-CMMnrI3R.cjs → vue-ui-age-pyramid-CRYYDXFo.cjs} +1 -1
  39. package/dist/{vue-ui-age-pyramid-BoXxK9_W.js → vue-ui-age-pyramid-CvUCPqxa.js} +10 -10
  40. package/dist/{vue-ui-annotator-5tI8NuFh.cjs → vue-ui-annotator-BV9t6ro7.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-D4kCCpAK.js → vue-ui-annotator-Dr5PLrJx.js} +1 -1
  42. package/dist/{vue-ui-bullet-X3Xa_OZ6.js → vue-ui-bullet-D7Uw9tez.js} +8 -8
  43. package/dist/{vue-ui-bullet-nXPlud-q.cjs → vue-ui-bullet-Dy71N3Jf.cjs} +1 -1
  44. package/dist/{vue-ui-candlestick-BTW5toA5.js → vue-ui-candlestick-BFmh-zx1.js} +11 -11
  45. package/dist/{vue-ui-candlestick-B6T0LhEG.cjs → vue-ui-candlestick-aZ1YN4hh.cjs} +1 -1
  46. package/dist/{vue-ui-carousel-table-Cmnwv9Y3.cjs → vue-ui-carousel-table-C30Gvanv.cjs} +1 -1
  47. package/dist/{vue-ui-carousel-table-D7s_SrJR.js → vue-ui-carousel-table-CUhkylz_.js} +4 -4
  48. package/dist/{vue-ui-chestnut-DN9EZShg.js → vue-ui-chestnut-C53wdHmR.js} +8 -8
  49. package/dist/{vue-ui-chestnut-D8Gq_i77.cjs → vue-ui-chestnut-DuycsDaB.cjs} +1 -1
  50. package/dist/{vue-ui-circle-pack-DCz3OWlu.cjs → vue-ui-circle-pack-BFF5_9Sm.cjs} +1 -1
  51. package/dist/{vue-ui-circle-pack-ts3rurGX.js → vue-ui-circle-pack-Bj3sA7RV.js} +9 -9
  52. package/dist/{vue-ui-cursor-SW96fYT3.js → vue-ui-cursor-0GY46Ywr.js} +2 -2
  53. package/dist/{vue-ui-cursor-CpWkrHpR.cjs → vue-ui-cursor-ZBrt-jTo.cjs} +1 -1
  54. package/dist/{vue-ui-dashboard-BZcfgajg.js → vue-ui-dashboard-BX787_or.js} +2 -2
  55. package/dist/{vue-ui-dashboard-Buh9xBz-.cjs → vue-ui-dashboard-pzZD8J2y.cjs} +1 -1
  56. package/dist/{vue-ui-digits-rB78vJRR.cjs → vue-ui-digits-Blb8fghV.cjs} +1 -1
  57. package/dist/{vue-ui-digits-C00yOT24.js → vue-ui-digits-BvCMwL0L.js} +2 -2
  58. package/dist/{vue-ui-donut-BpgK-I9o.cjs → vue-ui-donut-BO6RWqZ6.cjs} +1 -1
  59. package/dist/{vue-ui-donut-evolution-BVJCDPQ2.cjs → vue-ui-donut-evolution-BgJMw_a4.cjs} +1 -1
  60. package/dist/{vue-ui-donut-evolution-B7WrjiTO.js → vue-ui-donut-evolution-DRfJVMrP.js} +11 -11
  61. package/dist/{vue-ui-donut-BkGR2Q-_.js → vue-ui-donut-yBjSgsTz.js} +13 -14
  62. package/dist/{vue-ui-dumbbell-gQadUH53.js → vue-ui-dumbbell-4-hWZn-o.js} +10 -10
  63. package/dist/{vue-ui-dumbbell-DRcemHVG.cjs → vue-ui-dumbbell-BSXxNjyK.cjs} +1 -1
  64. package/dist/{vue-ui-flow-DdQsK5DR.cjs → vue-ui-flow-LNlNIRfb.cjs} +1 -1
  65. package/dist/{vue-ui-flow-CqSTZbgP.js → vue-ui-flow-aH6xSdwn.js} +9 -9
  66. package/dist/{vue-ui-funnel-Jr9TMTsq.js → vue-ui-funnel-BZy4SvlW.js} +9 -9
  67. package/dist/{vue-ui-funnel-Bq4yoTfd.cjs → vue-ui-funnel-BhDmLkFj.cjs} +1 -1
  68. package/dist/{vue-ui-galaxy-ia1UNlpc.cjs → vue-ui-galaxy-BcwAAgUh.cjs} +1 -1
  69. package/dist/{vue-ui-galaxy-BrQ10tPo.js → vue-ui-galaxy-GDXdZqjm.js} +11 -11
  70. package/dist/{vue-ui-gauge-C3FbYOSi.cjs → vue-ui-gauge-BCf-2H4T.cjs} +1 -1
  71. package/dist/{vue-ui-gauge-DOMio6Mv.js → vue-ui-gauge-CeyHdkuS.js} +7 -7
  72. package/dist/{vue-ui-gizmo-C3NimqVM.cjs → vue-ui-gizmo-CRTzb1J_.cjs} +1 -1
  73. package/dist/{vue-ui-gizmo-SKS1idHb.js → vue-ui-gizmo-veFxjktw.js} +3 -3
  74. package/dist/{vue-ui-heatmap-l4vCjb6f.js → vue-ui-heatmap-BizLgjJ8.js} +10 -10
  75. package/dist/{vue-ui-heatmap-BCau2Z3U.cjs → vue-ui-heatmap-Bxhy4dCf.cjs} +1 -1
  76. package/dist/{vue-ui-history-plot-DL7VjOd0.cjs → vue-ui-history-plot-CTBCFIG0.cjs} +1 -1
  77. package/dist/{vue-ui-history-plot-B05tJML1.js → vue-ui-history-plot-gzx5uGyY.js} +11 -11
  78. package/dist/{vue-ui-kpi-DQJr571M.cjs → vue-ui-kpi-CP08PB51.cjs} +1 -1
  79. package/dist/{vue-ui-kpi-DF4U5E1w.js → vue-ui-kpi-MdyAQjdJ.js} +3 -3
  80. package/dist/{vue-ui-mini-loader-BZkVKkqn.cjs → vue-ui-mini-loader-BRmtJ6az.cjs} +1 -1
  81. package/dist/{vue-ui-mini-loader-BMARnOW4.js → vue-ui-mini-loader-CYVr1K6S.js} +2 -2
  82. package/dist/{vue-ui-molecule-C1ycekVJ.js → vue-ui-molecule-CJ05ddhf.js} +11 -11
  83. package/dist/{vue-ui-molecule-B5XDGmLx.cjs → vue-ui-molecule-pTMJG_3k.cjs} +1 -1
  84. package/dist/{vue-ui-mood-radar-_Kd-Lhpm.js → vue-ui-mood-radar-DG1pF6Ii.js} +11 -11
  85. package/dist/{vue-ui-mood-radar-DyMCJKFb.cjs → vue-ui-mood-radar-DXLYUXbX.cjs} +1 -1
  86. package/dist/{vue-ui-nested-donuts-DIwRSn-O.js → vue-ui-nested-donuts-CDjZ6KfI.js} +11 -11
  87. package/dist/{vue-ui-nested-donuts-B4Am-r6T.cjs → vue-ui-nested-donuts-yztsnsjM.cjs} +1 -1
  88. package/dist/{vue-ui-onion-YeBdJrdx.cjs → vue-ui-onion-BgbKMVNe.cjs} +1 -1
  89. package/dist/{vue-ui-onion-Dqb0gwGl.js → vue-ui-onion-DsskQUiP.js} +11 -11
  90. package/dist/{vue-ui-parallel-coordinate-plot-CoecETlm.cjs → vue-ui-parallel-coordinate-plot-Cha1Em8k.cjs} +1 -1
  91. package/dist/{vue-ui-parallel-coordinate-plot-De-tYNNy.js → vue-ui-parallel-coordinate-plot-D7r71vdp.js} +12 -12
  92. package/dist/{vue-ui-quadrant-Btzq3qNJ.cjs → vue-ui-quadrant-BzYnR_Hc.cjs} +1 -1
  93. package/dist/{vue-ui-quadrant-BQ5maxJq.js → vue-ui-quadrant-DCHEhvMX.js} +13 -14
  94. package/dist/{vue-ui-quick-chart-DF_510YT.js → vue-ui-quick-chart-BB5b4AQ1.js} +9 -9
  95. package/dist/{vue-ui-quick-chart-5cWjffLJ.cjs → vue-ui-quick-chart-BcW7URue.cjs} +1 -1
  96. package/dist/{vue-ui-radar-DDHd0AYs.js → vue-ui-radar-CNEXWSEx.js} +53 -54
  97. package/dist/{vue-ui-radar-t22bqFiQ.cjs → vue-ui-radar-D-XPVXa9.cjs} +1 -1
  98. package/dist/{vue-ui-rating-D9kQcY2a.cjs → vue-ui-rating-ClvF4LPg.cjs} +1 -1
  99. package/dist/{vue-ui-rating-Chi3OOtp.js → vue-ui-rating-DJLSl0-4.js} +2 -2
  100. package/dist/{vue-ui-relation-circle-CWgGPxDJ.cjs → vue-ui-relation-circle-DfxnHEqR.cjs} +1 -1
  101. package/dist/{vue-ui-relation-circle-CV1xQOok.js → vue-ui-relation-circle-Hdzt7fOS.js} +7 -7
  102. package/dist/{vue-ui-rings-D2ezwyae.js → vue-ui-rings-BAFkqjcL.js} +13 -14
  103. package/dist/{vue-ui-rings-CiLJkRwa.cjs → vue-ui-rings-C9NFME3F.cjs} +2 -2
  104. package/dist/{vue-ui-scatter-BxbUYPk1.js → vue-ui-scatter-Ca67EOrI.js} +12 -12
  105. package/dist/{vue-ui-scatter-B24gGA8q.cjs → vue-ui-scatter-D0UloS1C.cjs} +1 -1
  106. package/dist/{vue-ui-screenshot-Bc7Lv1i8.cjs → vue-ui-screenshot-CFcvBOJm.cjs} +1 -1
  107. package/dist/{vue-ui-screenshot-cxDgcXJB.js → vue-ui-screenshot-CsdnwhSO.js} +1 -1
  108. package/dist/{vue-ui-skeleton-DvdPnQbR.cjs → vue-ui-skeleton-BBNX7lud.cjs} +1 -1
  109. package/dist/{vue-ui-skeleton-D6ojufhb.js → vue-ui-skeleton-CHEZlRpn.js} +3 -3
  110. package/dist/{vue-ui-smiley-9nGRDSn7.js → vue-ui-smiley-Dth6gRqg.js} +2 -2
  111. package/dist/{vue-ui-smiley-DEJ6S-We.cjs → vue-ui-smiley-EngC6Vc4.cjs} +1 -1
  112. package/dist/{vue-ui-spark-trend-DiNeAGXR.js → vue-ui-spark-trend-33sBlF-n.js} +5 -5
  113. package/dist/{vue-ui-spark-trend-BosbwgVe.cjs → vue-ui-spark-trend-DJ8yhFMx.cjs} +1 -1
  114. package/dist/{vue-ui-sparkbar-DGFKrcg0.cjs → vue-ui-sparkbar-D9QLpB7G.cjs} +1 -1
  115. package/dist/{vue-ui-sparkbar-DNf_Majv.js → vue-ui-sparkbar-mJu95295.js} +4 -4
  116. package/dist/{vue-ui-sparkgauge-DwK7dzdJ.cjs → vue-ui-sparkgauge-CBCbyOG2.cjs} +1 -1
  117. package/dist/{vue-ui-sparkgauge-D89HjxSK.js → vue-ui-sparkgauge-nFFf8h-x.js} +4 -4
  118. package/dist/{vue-ui-sparkhistogram-CU1_P6AJ.js → vue-ui-sparkhistogram-Bh6R737O.js} +5 -5
  119. package/dist/{vue-ui-sparkhistogram-DKoI6_TT.cjs → vue-ui-sparkhistogram-BstSpbti.cjs} +1 -1
  120. package/dist/{vue-ui-sparkline-C2McLmh5.js → vue-ui-sparkline-BfBiA1O5.js} +4 -4
  121. package/dist/{vue-ui-sparkline-Bp7GMRrA.cjs → vue-ui-sparkline-DTRZ-_Qw.cjs} +1 -1
  122. package/dist/{vue-ui-sparkstackbar-Cu4aG9PB.js → vue-ui-sparkstackbar-BNTFNUIA.js} +5 -5
  123. package/dist/{vue-ui-sparkstackbar-Dayxdcr7.cjs → vue-ui-sparkstackbar-CuU8Vpcv.cjs} +1 -1
  124. package/dist/{vue-ui-stackbar-C21xTVy9.cjs → vue-ui-stackbar-B5uNBkxp.cjs} +1 -1
  125. package/dist/{vue-ui-stackbar-6m5CpvNM.js → vue-ui-stackbar-BbFUifMU.js} +13 -13
  126. package/dist/{vue-ui-strip-plot-DAo8FMup.cjs → vue-ui-strip-plot-7G7BAGQM.cjs} +1 -1
  127. package/dist/{vue-ui-strip-plot-DlZ2Eez4.js → vue-ui-strip-plot-wsxpyqrw.js} +11 -11
  128. package/dist/{vue-ui-table-U0_3I0fu.js → vue-ui-table-CQYM4uPf.js} +1 -1
  129. package/dist/{vue-ui-table-BjhcV9qB.cjs → vue-ui-table-DUokotBj.cjs} +1 -1
  130. package/dist/{vue-ui-table-heatmap-Bfqytiv5.cjs → vue-ui-table-heatmap-Brk58nK_.cjs} +1 -1
  131. package/dist/{vue-ui-table-heatmap-BrGkCaOG.js → vue-ui-table-heatmap-OYQ9OOzo.js} +4 -4
  132. package/dist/{vue-ui-table-sparkline-CXlnp8E3.cjs → vue-ui-table-sparkline-C9dOsIAB.cjs} +1 -1
  133. package/dist/{vue-ui-table-sparkline-C1wNBDqO.js → vue-ui-table-sparkline-DUjDhg8A.js} +5 -5
  134. package/dist/{vue-ui-thermometer-CBdAwYdC.cjs → vue-ui-thermometer-VnlcJh4G.cjs} +1 -1
  135. package/dist/{vue-ui-thermometer-Bx2abW1B.js → vue-ui-thermometer-WSMSVcM_.js} +7 -7
  136. package/dist/{vue-ui-timer-CRDQbqJ_.cjs → vue-ui-timer-Bh8RpM2u.cjs} +1 -1
  137. package/dist/{vue-ui-timer-3UkgrtEj.js → vue-ui-timer-DBP_fRcm.js} +5 -5
  138. package/dist/{vue-ui-tiremarks-C78mfaBr.cjs → vue-ui-tiremarks-Ct96o_fd.cjs} +1 -1
  139. package/dist/{vue-ui-tiremarks-C_xuD4De.js → vue-ui-tiremarks-WWgS2mqw.js} +7 -7
  140. package/dist/{vue-ui-treemap-CP__1pdb.cjs → vue-ui-treemap-BfDk53pM.cjs} +1 -1
  141. package/dist/{vue-ui-treemap-BjDSR72h.js → vue-ui-treemap-CXoXEuSA.js} +11 -11
  142. package/dist/{vue-ui-vertical-bar-DUhOoSNl.js → vue-ui-vertical-bar-COaAa4nz.js} +14 -15
  143. package/dist/vue-ui-vertical-bar-EIy7A0dV.cjs +4 -0
  144. package/dist/{vue-ui-waffle-CrVyCF7k.cjs → vue-ui-waffle-BB3l0zZU.cjs} +1 -1
  145. package/dist/{vue-ui-waffle-Dpox5n5s.js → vue-ui-waffle-DD8pT7JN.js} +12 -12
  146. package/dist/vue-ui-wheel-BLlKekiu.js +327 -0
  147. package/dist/vue-ui-wheel-DfpXZJ8A.cjs +1 -0
  148. package/dist/{vue-ui-word-cloud-u5S86-Ft.js → vue-ui-word-cloud-CcYtTXW6.js} +10 -10
  149. package/dist/{vue-ui-word-cloud-DBkAo2uX.cjs → vue-ui-word-cloud-DdaMzF2e.cjs} +1 -1
  150. package/dist/{vue-ui-xy-mEVVQr_U.cjs → vue-ui-xy-B4Mzyy81.cjs} +1 -1
  151. package/dist/{vue-ui-xy-0nBQDwL2.js → vue-ui-xy-DYzfiZnJ.js} +14 -14
  152. package/dist/{vue-ui-xy-canvas-yQlThVu7.cjs → vue-ui-xy-canvas-CkB7VDhF.cjs} +1 -1
  153. package/dist/{vue-ui-xy-canvas-DI7LiD4U.js → vue-ui-xy-canvas-DqnK_i0Q.js} +11 -11
  154. package/package.json +1 -1
  155. package/dist/index-DSGAenF3.cjs +0 -9
  156. package/dist/vue-ui-vertical-bar-DTB8r4LH.cjs +0 -4
  157. package/dist/vue-ui-wheel-DV2zgr4d.cjs +0 -1
  158. package/dist/vue-ui-wheel-ykD8OULJ.js +0 -319
@@ -1,4 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-DSGAenF3.cjs"),ge=require("./useResponsive-YQYQrAZ_.cjs"),Ae=require("./Title-DdUtciJN.cjs"),fe=require("./usePrinter-CPqTP09H.cjs"),Re=require("./Tooltip-BlGVq6xj.cjs"),me=require("./Legend-CJkkmRNE.cjs"),qe=require("./vue-ui-skeleton-DvdPnQbR.cjs"),Ue=require("./BaseIcon-B5DvqSYe.cjs"),He=require("./vue-ui-accordion-FM16tlk7.cjs"),be=require("./useNestedProp-BdTohsDJ.cjs"),Xe=require("./PackageVersion-Dv25_ZxF.cjs"),je=require("./PenAndPaper-Cx3_Liuv.cjs"),We=require("./useUserOptionState-BgepsfED.cjs"),ke=require("./Shape-GAZUIBfN.cjs"),Ge=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ye=["id"],Ke=["onClick"],Je=["xmlns","viewBox"],Qe=["width","height"],Ze=["id"],et=["stop-color"],tt=["stop-color"],lt={key:1},at=["x","y","width","height","fill","rx"],ot=["x","y","width","height","fill","rx","stroke","stroke-width"],nt=["x","y","width","height","fill","rx","stroke","stroke-width"],rt=["x2","y1","y2","stroke","stroke-width"],ut=["x1","x2","y1","y2","stroke","stroke-width"],st=["x","y","text-anchor","font-size","fill","font-weight"],it=["x","y","font-size","fill","font-weight"],ct=["x","y","font-size","fill","font-weight"],dt=["x","y","font-size","fill","font-weight"],vt=["y","width","height","fill","onMouseenter"],ht={key:6,class:"vue-data-ui-watermark"},pt=["onClick"],yt={style:"width:100%;padding-top: 36px;position:relative"},gt={class:"vue-ui-data-table"},ft={key:0},mt={style:{width:"100%"}},bt=["data-cell"],kt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Ct=["data-cell"],_t={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},xt=["data-cell"],wt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Nt=["data-cell"],$t={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},St=["data-cell"],Vt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Tt=["data-cell"],Bt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Et=["data-cell"],Lt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Pt={__name:"vue-ui-vertical-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(Ce,{expose:_e,emit:xe}){e.useCssVars(a=>({bb39f718:a.tdo}));const{vue_ui_vertical_bar:we}=n.useConfig(),Ne=e.useSlots(),f=Ce,E=e.computed(()=>!!f.dataset&&f.dataset.length),g=e.ref(n.createUid()),$e=e.ref(null),O=e.ref(!1),I=e.ref(""),L=e.ref(0),Se=e.ref(null),X=e.ref(0),S=e.ref(null),j=e.ref(null),M=e.ref(null),W=e.ref(null),G=e.ref(null),Y=e.ref(0),A=e.ref(0),Ve=xe,t=e.computed({get:()=>Q(),set:a=>a}),{userOptionsVisible:R,setUserOptionsVisibility:K,keepUserOptionState:J}=We.useUserOptionState({config:t.value});function Q(){const a=be.useNestedProp({userConfig:f.config,defaultConfig:we});return a.theme?{...be.useNestedProp({userConfig:n.themes.vue_ui_vertical_bar[a.theme]||f.config,defaultConfig:a}),customPalette:n.themePalettes[a.theme]||n.palette}:a}e.watch(()=>f.config,a=>{t.value=Q(),R.value=!t.value.userOptions.showOnChartHover,re(),Y.value+=1,A.value+=1,s.value=t.value.style.chart.layout.bars.height,c.value=t.value.style.chart.layout.bars.gap,h.value.showTable=t.value.table.show,h.value.sortDesc=t.value.style.chart.layout.bars.sort==="desc",h.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0}),e.watch(()=>f.dataset,z,{deep:!0});const{isPrinting:Z,isImaging:ee,generatePdf:te,generateImage:le}=fe.usePrinter({elementId:`vue-ui-vertical-bar_${g.value}`,fileName:t.value.style.chart.title.text||"vue-ui-vertical-bar"}),Te=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),ae=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),oe=e.ref(null),ne=e.ref(!1),Be=e.computed(()=>t.value.table.responsiveBreakpoint),P=e.ref(null);e.onMounted(()=>{re()});function re(){if(n.objectIsEmpty(f.dataset)&&n.error({componentName:"VueUiVerticalBar",type:"dataset"}),L.value=f.dataset.flatMap(a=>a.children&&a.children.length>0?a.children.length:1).reduce((a,o)=>a+o,0),Ee(),t.value.responsive){const a=ge.throttle(()=>{const{width:o,height:l}=ge.useResponsive({chart:S.value,title:t.value.style.chart.title.text?j.value:null,legend:t.value.style.chart.legend.show?M.value:null,source:W.value,noTitle:G.value});requestAnimationFrame(()=>{ie.value=o,s.value=l/L.value-c.value*2})});P.value=new ResizeObserver(a),P.value.observe(S.value.parentNode)}}e.onBeforeUnmount(()=>{P.value&&P.value.disconnect()});function Ee(){new ResizeObserver(o=>{o.forEach(l=>{ne.value=l.contentRect.width<Be.value})}).observe(oe.value)}const h=e.ref({showTable:t.value.table.show,sortDesc:t.value.style.chart.layout.bars.sort==="desc",showTooltip:t.value.style.chart.tooltip.show}),ue=e.computed(()=>h.value.sortDesc),x=e.computed(()=>(f.dataset.forEach((a,o)=>{!a.value&&!a.children&&n.error({componentName:"VueUiVerticalBar",type:"datasetAttributeEmpty",property:`value (index ${o})`}),a.children&&(n.objectIsEmpty(a.children)?n.error({componentName:"VueUiVerticalBar",type:"datasetAttributeEmpty",property:`children (index ${o})`}):a.children.forEach((l,r)=>{[null,void 0].includes(l.name)&&n.error({componentName:"VueUiVerticalBar",type:"datasetSerieAttribute",property:"name",key:"children",index:r})}))}),f.dataset.map((a,o)=>{const l=`vertical_parent_${o}_${g.value}`,r=a.children&&a.children.length>0,v=n.checkNaN(a.value?a.value:r?a.children.map(y=>y.value||0).reduce((y,C)=>y+C,0):0),d=v>=0?1:-1;return{...a,id:l,absoluteIndex:o,shape:"square",opacity:b.value.includes(l)?.5:1,value:Math.abs(v),sign:d,hasChildren:r,isChild:!1,segregate:()=>T(l),isSegregated:b.value.includes(l),color:n.convertColorToHex(a.color)||ae.value[o]||n.palette[o]||n.palette[o%n.palette.length],children:!a.children||!a.children.length?[]:a.children.toSorted(D.value?()=>0:(y,C)=>ue.value?C.value-y.value:y.value-C.value).map((y,C)=>({...y,value:n.checkNaN(Math.abs(y.value)),absoluteIndex:o,sign:y.value>=0?1:-1,isChild:!0,parentId:l,parentName:a.name,parentValue:v,parentSign:d,id:`vertical_child_${o}_${C}_${g.value}`,childIndex:C,color:n.convertColorToHex(y.color)||n.convertColorToHex(a.color)||ae.value[o]||n.palette[o]||n.palette[o%n.palette.length]})).map((y,C)=>({...y,isFirstChild:C===0,isLastChild:C===a.children.length-1}))}}).toSorted(D.value?()=>0:(a,o)=>ue.value?o.value-a.value:a.value-o.value))),se=e.computed(()=>({cy:"vertical-bar-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":""})),s=e.ref(t.value.style.chart.layout.bars.height),c=e.ref(t.value.style.chart.layout.bars.gap),Le=e.computed(()=>(s.value+c.value)*L.value),ie=e.ref(512),i=e.computed(()=>({width:ie.value,height:Le.value,padding:{top:12,left:128+t.value.style.chart.layout.bars.offsetX,right:64+t.value.style.chart.layout.bars.paddingRight,bottom:12}})),u=e.computed(()=>({fullHeight:i.value.padding.top+i.value.padding.bottom+i.value.height,top:i.value.padding.top,left:i.value.padding.left,right:i.value.width-i.value.padding.right,bottom:i.value.padding.top+i.value.height,width:i.value.width-(i.value.padding.left+i.value.padding.right)}));function z(){L.value=w.value.flatMap(a=>a.children&&a.children.length>0?a.children.length:1).reduce((a,o)=>a+o,0)}const b=e.ref([]);function T(a){b.value.includes(a)?b.value=b.value.filter(o=>o!==a):b.value.push(a),z(),Ve("selectLegend",w.value)}const w=e.computed(()=>x.value.filter(a=>!b.value.includes(a.id))),k=e.computed(()=>w.value.map(a=>Math.abs(a.value)).reduce((a,o)=>a+o,0));function ce(a,o=!1,l=0){return o?n.dataLabel({v:n.checkNaN(Math.abs(a)/k.value*100),s:"%",r:l}):Math.abs(a)/k.value}const N=e.computed(()=>w.value.flatMap(a=>a.hasChildren?a.children:a)),$=e.computed(()=>N.value.map(a=>a.sign).includes(-1)),Pe=e.computed(()=>Math.max(...w.value.flatMap(a=>a.children&&a.children.length?Math.max(...a.children.map(o=>o.value)):a.value)));function p(a){const o=a/Pe.value;return u.value.width/($.value?2:1)*o}function ze(a){return p(a)+u.value.left}function B(a,o){const l=w.value.find(d=>d.id===a.parentId),r=u.value.top+(c.value+s.value)*o,v=l.children.length*(c.value+s.value);return{y:r+v/2-t.value.style.chart.layout.bars.parentLabels.fontSize,name:l.name,value:[void 0,NaN,null].includes(l.value)?"":l.sign===1?l.value:-l.value,percentageToTotal:isNaN(l.value/k.value)?"":ce(l.value,!0,t.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),sign:l.sign}}function De(){return w.value}const q=e.ref(null),U=e.ref(null);function Fe(a,o){U.value={datapoint:a,seriesIndex:o,series:x.value,config:t.value},O.value=!0,q.value=a.id;let l="";const r=a.isChild?a.parentName:a.name,v=a.isChild?a.name:"",d=t.value.style.chart.tooltip.customFormat;n.isFunction(d)&&n.functionReturnsString(()=>d({datapoint:a,series:x.value,config:t.value,seriesIndex:o}))?I.value=d({datapoint:a,series:x.value,config:t.value,seriesIndex:o}):(l+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
2
- <div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${a.color}"/>${Ne.pattern?`<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${g.value}_${a.absoluteIndex})"/>`:""}</svg> ${r}</div>
3
- ${v?`<div>${v}</div>`:""}
4
- </div>`,t.value.style.chart.tooltip.showValue&&(l+=`<div>${t.value.translations.value}: <b>${n.applyDataLabel(t.value.style.chart.layout.bars.dataLabels.value.formatter,a.sign===1?a.value:-a.value,n.dataLabel({p:t.value.style.chart.tooltip.prefix,v:a.sign===1?a.value:-a.value,s:t.value.style.chart.tooltip.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,seriesIndex:o})}</b></div>`),t.value.style.chart.tooltip.showPercentage&&(l+=`<div>${t.value.translations.percentageToTotal} : <b>${n.dataLabel({v:Math.abs(a.value)/k.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`,a.isChild&&(l+=`<div>${t.value.translations.percentageToSerie}: <b>${n.dataLabel({v:Math.abs(a.value)/Math.abs(a.parentValue)*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`)),I.value=`<div style="text-align:left">${l}</div>`)}function de(a,o,l,r){if(!t.value.style.chart.layout.bars.dataLabels.value.show)return"";const v=n.applyDataLabel(t.value.style.chart.layout.bars.dataLabels.value.formatter,n.checkNaN(r===-1&&a>=0?-a:a),n.dataLabel({p:t.value.style.chart.layout.bars.dataLabels.value.prefix,v:n.checkNaN(r===-1&&a>=0?-a:a),s:t.value.style.chart.layout.bars.dataLabels.value.suffix,r:t.value.style.chart.layout.bars.dataLabels.value.roundingValue}),{datapoint:o,seriesIndex:l}),d=`(${ce(a,!0,t.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;return`${v}${t.value.style.chart.layout.bars.dataLabels.percentage.show?` ${d}`:""}`}const m=e.computed(()=>{const a=[t.value.translations.parentName,t.value.translations.value,t.value.translations.percentageToTotal,t.value.translations.childName,t.value.translations.value,t.value.translations.percentageToSerie,t.value.translations.percentageToTotal],o=N.value.map(l=>l.isChild?l.isFirstChild?{color:l.color,parentName:l.parentName,parentValue:l.parentValue,percentageToTotal:l.parentValue/k.value,childName:l.name,childValue:l.sign===1?l.value:-l.value,childPercentageToParent:Math.abs(l.value)/Math.abs(l.parentValue),childPercentageToTotal:Math.abs(l.value)/k.value}:{color:"",parentName:"",parentValue:"",percentageToTotal:"",childName:l.name,childValue:l.sign===1?l.value:-l.value,childPercentageToParent:Math.abs(l.value)/Math.abs(l.parentValue),childPercentageToTotal:Math.abs(l.value)/k.value}:{color:l.color,parentName:l.name,parentValue:l.sign===1?l.value:-l.value,percentageToTotal:Math.abs(l.value)/k.value,childName:"",childValue:"",childPercentageToParent:"",childPercentageToTotal:""});return{head:a,body:o}});function ve(){const a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=m.value.head,l=m.value.body.map(d=>[d.parentName,d.parentValue,d.percentageToTotal,d.childName,d.childValue,d.childPercentageToParent,d.childPercentageToTotal]),r=a.concat([o]).concat(l),v=n.createCsvContent(r);n.downloadCsv({csvContent:v,title:t.value.style.chart.title.text||"vue-ui-vertical-bar"})}const V=e.ref(!1);function Oe(a){V.value=a,X.value+=1}function he(){h.value.showTable=!h.value.showTable}const Ie=e.ref({none:0,asc:1,desc:2}),_=e.ref(0),D=e.ref(!1);e.onMounted(()=>{["none","asc","desc"].includes(t.value.style.chart.layout.bars.sort)||n.error({componentName:"VueUiVerticalBar",type:"attributeWrongValue",property:"style.chart.layout.bars.sort",key:t.value.style.chart.layout.bars.sort}),_.value=Ie.value[t.value.style.chart.layout.bars.sort],h.value.sortDesc=_.value===2,D.value=_.value===0});function Me(){_.value+=1,_.value>2&&(_.value=0)}function pe(){Me(),h.value.sortDesc=_.value===2,D.value=_.value===0,z()}function ye(){h.value.showTooltip=!h.value.showTooltip}const F=e.ref(!1);function H(){F.value=!F.value}return _e({getData:De,recalculateHeight:z,generatePdf:te,generateCsv:ve,generateImage:le,toggleTable:he,toggleSort:pe,toggleTooltip:ye,toggleAnnotator:H}),(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-vertical-bar ${V.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"verticalBarChart",ref:S,id:`vue-ui-vertical-bar_${g.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[5]||(o[5]=()=>e.unref(K)(!0)),onMouseleave:o[6]||(o[6]=()=>e.unref(K)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(je.PenAndPaper,{key:0,parent:S.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:F.value,onClose:H},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),Te.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:G,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:j,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(Ae._sfc_main,{key:`title_${Y.value}`,config:{title:{cy:"vertical-bar-div-title",...t.value.style.chart.title},subtitle:{cy:"vertical-bar-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&E.value&&(e.unref(J)||e.unref(R))?(e.openBlock(),e.createBlock(fe.UserOptions,{ref_key:"details",ref:$e,key:`user_options_${X.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(ee),isPrinting:e.unref(Z),uid:g.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,hasSort:t.value.userOptions.buttons.sort,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,isTooltip:h.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:S.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:F.value,onToggleFullscreen:Oe,onGeneratePdf:e.unref(te),onGenerateCsv:ve,onGenerateImage:e.unref(le),onToggleTable:he,onToggleSort:pe,onToggleTooltip:ye,onToggleAnnotator:H,style:e.normalizeStyle({visibility:e.unref(J)?e.unref(R)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,a.$slots.optionSort?{name:"optionSort",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionSort",{},void 0,!0)]),key:"6"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"7"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),void 0,!0)]),key:"8"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasSort","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),t.value.style.chart.legend.show&&t.value.style.chart.legend.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:4,ref_key:"chartLegend",ref:M},[(e.openBlock(),e.createBlock(me.Legend,{key:`legend_top_${A.value}`,legendSet:x.value,config:se.value,onClickMarker:o[0]||(o[0]=({legend:l})=>T(l.id))},e.createSlots({item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:v=>T(l.id),style:e.normalizeStyle(`opacity:${b.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.bars.dataLabels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.legend.prefix,v:l.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:r})),13,Ke)]),_:2},[a.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:l,index:r})=>[e.createVNode(ke._sfc_main,{shape:l.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${g.value}_${r})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"]))],512)):e.createCommentVNode("",!0),E.value?(e.openBlock(),e.createElementBlock("svg",{key:5,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${i.value.width<=0?10:i.value.width} ${u.value.fullHeight<=0?10:u.value.fullHeight}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Xe._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:i.value.width<=0?10:i.value.width,height:u.value.fullHeight<=0?10:u.value.fullHeight,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,Qe)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`vertical_bar_gradient_${g.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,et),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(l.color,.03),100-t.value.style.chart.layout.bars.gradientIntensity)},null,8,tt)],8,Ze))),256)),a.$slots.pattern?(e.openBlock(),e.createElementBlock("g",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,l=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(a.$slots,"pattern",e.mergeProps({ref_for:!0},{seriesIndex:l.absoluteIndex,patternId:`pattern_${g.value}_${l.absoluteIndex}`}),void 0,!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:e.unref(n.checkNaN)($.value?u.value.left+u.value.width/2-(l.sign===1?0:p(l.value)<=0?1e-4:p(l.value)):u.value.left),y:u.value.top+(c.value+s.value)*r,width:e.unref(n.checkNaN)(p(l.value)<=0?1e-4:p(l.value)),height:s.value<=0?1e-4:s.value,fill:t.value.style.chart.layout.bars.underlayerColor,rx:t.value.style.chart.layout.bars.borderRadius,class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,at)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:e.unref(n.checkNaN)($.value?u.value.left+u.value.width/2-(l.sign===1?0:p(l.value)<=0?1e-4:p(l.value)):u.value.left),y:u.value.top+(c.value+s.value)*r,width:e.unref(n.checkNaN)(p(l.value)<=0?1e-4:p(l.value)),height:s.value<=0?1e-4:s.value,fill:t.value.style.chart.layout.bars.useGradient?`url(#vertical_bar_gradient_${g.value}_${r})`:e.unref(n.setOpacity)(l.color,t.value.style.chart.layout.bars.fillOpacity),rx:t.value.style.chart.layout.bars.borderRadius,stroke:t.value.style.chart.layout.bars.useStroke?l.color:"none","stroke-width":t.value.style.chart.layout.bars.useStroke?t.value.style.chart.layout.bars.strokeWidth:0,class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,ot),a.$slots.pattern?(e.openBlock(),e.createElementBlock("rect",{key:0,x:e.unref(n.checkNaN)($.value?u.value.left+u.value.width/2-(l.sign===1?0:p(l.value)<=0?1e-4:p(l.value)):u.value.left),y:u.value.top+(c.value+s.value)*r,width:e.unref(n.checkNaN)(p(l.value)<=0?1e-4:p(l.value)),height:s.value<=0?1e-4:s.value,fill:`url(#pattern_${g.value}_${l.absoluteIndex})`,rx:t.value.style.chart.layout.bars.borderRadius,stroke:t.value.style.chart.layout.bars.useStroke?l.color:"none","stroke-width":t.value.style.chart.layout.bars.useStroke?t.value.style.chart.layout.bars.strokeWidth:0,class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,nt)):e.createCommentVNode("",!0),(!l.isChild||l.isLastChild)&&t.value.style.chart.layout.separators.show&&r!==N.value.length-1?(e.openBlock(),e.createElementBlock("line",{key:1,x1:0,x2:u.value.left,y1:s.value+c.value/2+u.value.top+(c.value+s.value)*r,y2:s.value+c.value/2+u.value.top+(c.value+s.value)*r,stroke:t.value.style.chart.layout.separators.color,"stroke-width":t.value.style.chart.layout.separators.strokeWidth,"stroke-linecap":"round"},null,8,rt)):e.createCommentVNode("",!0),$.value&&t.value.style.chart.layout.separators.show?(e.openBlock(),e.createElementBlock("line",{key:2,x1:u.value.left+u.value.width/2,x2:u.value.left+u.value.width/2,y1:u.value.top,y2:u.value.bottom,stroke:t.value.style.chart.layout.separators.color,"stroke-width":t.value.style.chart.layout.separators.strokeWidth,"stroke-linecap":"round"},null,8,ut)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:$.value?u.value.left+u.value.width/2+(l.sign===1?-12:12)+(l.sign===1?-t.value.style.chart.layout.bars.dataLabels.offsetX:t.value.style.chart.layout.bars.dataLabels.offsetX):ze(l.value)+3+t.value.style.chart.layout.bars.dataLabels.offsetX,y:u.value.top+(c.value+s.value)*r+s.value/2+t.value.style.chart.layout.bars.dataLabels.fontSize/2,"text-anchor":!$.value||l.sign===-1?"start":"end","font-size":t.value.style.chart.layout.bars.dataLabels.fontSize,fill:t.value.style.chart.layout.bars.dataLabels.color,"font-weight":t.value.style.chart.layout.bars.dataLabels.bold?"bold":"normal"},e.toDisplayString(de(l.value,l,r,l.sign)),9,st),(l.isChild||!l.hasChildren)&&t.value.style.chart.layout.bars.nameLabels.show?(e.openBlock(),e.createElementBlock("text",{key:3,"text-anchor":"end",x:u.value.left-3+t.value.style.chart.layout.bars.nameLabels.offsetX,y:u.value.top+(c.value+s.value)*r+s.value/2+t.value.style.chart.layout.bars.nameLabels.fontSize/2,"font-size":t.value.style.chart.layout.bars.nameLabels.fontSize,fill:t.value.style.chart.layout.bars.nameLabels.color,"font-weight":t.value.style.chart.layout.bars.nameLabels.bold?"bold":"normal"},e.toDisplayString(l.name),9,it)):e.createCommentVNode("",!0),l.isChild&&l.childIndex===0&&t.value.style.chart.layout.bars.parentLabels.show?(e.openBlock(),e.createElementBlock("text",{key:4,x:3+t.value.style.chart.layout.bars.parentLabels.offsetX,y:B(l,r).y,"font-size":t.value.style.chart.layout.bars.parentLabels.fontSize,fill:t.value.style.chart.layout.bars.parentLabels.color,"font-weight":t.value.style.chart.layout.bars.parentLabels.bold?"bold":"normal","text-anchor":"start"},e.toDisplayString(B(l,r).name),9,ct)):e.createCommentVNode("",!0),l.isChild&&l.childIndex===0&&t.value.style.chart.layout.bars.parentLabels.show?(e.openBlock(),e.createElementBlock("text",{key:5,x:3+t.value.style.chart.layout.bars.parentLabels.offsetX,y:B(l,r).y+t.value.style.chart.layout.bars.parentLabels.fontSize+6,"font-size":t.value.style.chart.layout.bars.parentLabels.fontSize,fill:t.value.style.chart.layout.bars.parentLabels.color,"font-weight":t.value.style.chart.layout.bars.dataLabels.bold?"bold":"normal","text-anchor":"start"},e.toDisplayString(de(B(l,r).value),B(l,r),r,l.parentSign||l.sign),9,dt)):e.createCommentVNode("",!0),e.createElementVNode("rect",{x:0,y:u.value.top+(c.value+s.value)*r-c.value/2,width:i.value.width<=0?1e-4:i.value.width,height:s.value+c.value<=0?1e-4:s.value+c.value,fill:q.value===l.id?e.unref(n.setOpacity)(t.value.style.chart.layout.highlighter.color,t.value.style.chart.layout.highlighter.opacity):"transparent",onMouseenter:v=>Fe(l,r),onMouseleave:o[1]||(o[1]=v=>{Se.value=null,O.value=!1,q.value=null})},null,40,vt)]))),256)),e.renderSlot(a.$slots,"svg",{svg:i.value},void 0,!0)],14,Je)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ht,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Z)||e.unref(ee)})),void 0,!0)])):e.createCommentVNode("",!0),E.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(qe.default,{key:7,config:{type:"verticalBar",style:{backgroundColor:t.value.style.chart.backgroundColor,verticalBar:{axis:{color:"#CCCCCC"},color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.chart.legend.show&&t.value.style.chart.legend.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:8,ref_key:"chartLegend",ref:M},[(e.openBlock(),e.createBlock(me.Legend,{key:`legend_bottom_${A.value}`,legendSet:x.value,config:se.value,onClickMarker:o[2]||(o[2]=({legend:l})=>T(l.id))},e.createSlots({item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{onClick:v=>T(l.id),style:e.normalizeStyle(`opacity:${b.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.bars.dataLabels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.legend.prefix,v:l.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:r})),13,pt)]),_:2},[a.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:l,index:r})=>[e.createVNode(ke._sfc_main,{shape:l.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${g.value}_${r})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"]))],512)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:x.value},void 0,!0),a.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:9,ref_key:"source",ref:W,dir:"auto"},[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Re._sfc_main,{show:h.value.showTooltip&&O.value&&b.value.length<f.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,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:S.value,content:I.value,isFullscreen:V.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...U.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...U.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),E.value?(e.openBlock(),e.createBlock(He.default,{key:10,hideDetails:"",config:{open:h.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.createElementVNode("div",{ref_key:"tableContainer",ref:oe,class:"vue-ui-vertical-bar-table atom-data-table"},[e.createElementVNode("div",yt,[e.createElementVNode("div",{role:"button",tabindex:"0",style:e.normalizeStyle(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${t.value.table.th.backgroundColor};`),onClick:o[3]||(o[3]=l=>h.value.showTable=!1),onKeypress:o[4]||(o[4]=e.withKeys(l=>h.value.showTable=!1,["enter"]))},[e.createVNode(Ue.default,{name:"close",stroke:t.value.table.th.color,"stroke-width":2},null,8,["stroke"])],36),e.createElementVNode("div",{style:{width:"100%","container-type":"inline-size"},class:e.normalizeClass({"vue-ui-responsive":ne.value})},[e.createElementVNode("table",gt,[e.createElementVNode("caption",{style:e.normalizeStyle({backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline}),class:"vue-ui-data-table__caption"},[e.createTextVNode(e.toDisplayString(t.value.style.chart.title.text)+" ",1),t.value.style.chart.title.subtitle.text?(e.openBlock(),e.createElementBlock("span",ft,e.toDisplayString(t.value.style.chart.title.subtitle.text),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value.head,l=>(e.openBlock(),e.createElementBlock("th",{style:e.normalizeStyle(`outline:${t.value.table.th.outline}`)},[e.createElementVNode("div",mt,e.toDisplayString(l),1)],4))),256))],4),e.createElementVNode("tr",null,[e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)},"∑ "+e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(isNaN(k.value)?"":k.value.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),5),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)},"100%",4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value.body,(l,r)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":r%2===0,"vue-ui-data-table__tbody__row-odd":r%2!==0}),style:e.normalizeStyle(`background:${t.value.table.td.backgroundColor};color:${t.value.table.td.color}`)},[e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline};font-variant-numeric: tabular-nums;`),"data-cell":m.value.head[0]??""},[e.createElementVNode("div",kt,[l.color?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`color:${l.color};margin-right:3px`)},"⬤",4)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(l.parentName),1)])],12,bt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":m.value.head[1]??""},[e.createElementVNode("div",_t,e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(["",NaN,void 0].includes(l.parentValue)?"":l.parentValue.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),1)],12,Ct),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":m.value.head[2]??""},[e.createElementVNode("div",wt,e.toDisplayString(["",NaN,void 0].includes(l.percentageToTotal)?"":`${(l.percentageToTotal*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,xt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":m.value.head[3]??""},[e.createElementVNode("div",$t,e.toDisplayString(l.childName),1)],12,Nt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":m.value.head[4]??""},[e.createElementVNode("div",Vt,e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(["",NaN,void 0].includes(l.childValue)?"":l.childValue.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),1)],12,St),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":m.value.head[5]??""},[e.createElementVNode("div",Bt,e.toDisplayString(["",NaN,void 0].includes(l.childPercentageToParent)?"":`${(l.childPercentageToParent*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,Tt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":m.value.head[6]??""},[e.createElementVNode("div",Lt,e.toDisplayString(["",NaN,void 0].includes(l.childPercentageToTotal)?"":`${(l.childPercentageToTotal*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,Et)],6))),256))])])],2)])],512)]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ye))}},zt=Ge._export_sfc(Pt,[["__scopeId","data-v-2d1c42e8"]]);exports.default=zt;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DSGAenF3.cjs"),W=require("./Title-DdUtciJN.cjs"),E=require("./usePrinter-CPqTP09H.cjs"),M=require("./useResponsive-YQYQrAZ_.cjs"),J=require("./vue-ui-skeleton-DvdPnQbR.cjs"),q=require("./useNestedProp-BdTohsDJ.cjs"),K=require("./PackageVersion-Dv25_ZxF.cjs"),Q=require("./PenAndPaper-Cx3_Liuv.cjs"),Z=require("./useUserOptionState-BgepsfED.cjs"),ee=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),te=["id"],ne=["xmlns","viewBox"],oe=["width","height"],le=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],ae=["cx","cy","r","stroke","stroke-width"],re=["x","y","font-size","fill","font-weight"],se={key:5,class:"vue-data-ui-watermark"},ue={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(T,{expose:V}){const{vue_ui_wheel:U}=s.useConfig(),c=T,p=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length),y=e.ref(s.createUid()),R=e.ref(null),w=e.ref(0),v=e.ref(null),C=e.ref(null),b=e.ref(null),B=e.ref(null),P=e.ref(0),t=e.computed({get:()=>O(),set:n=>n}),{userOptionsVisible:m,setUserOptionsVisibility:S,keepUserOptionState:N}=Z.useUserOptionState({config:t.value});function O(){const n=q.useNestedProp({userConfig:c.config,defaultConfig:U});return n.theme?{...q.useNestedProp({userConfig:s.themes.vue_ui_wheel[n.theme]||c.config,defaultConfig:n})}:n}e.watch(()=>c.config,n=>{t.value=O(),m.value=!t.value.userOptions.showOnChartHover,z(),P.value+=1},{deep:!0});const{isPrinting:_,isImaging:x,generatePdf:A,generateImage:$}=E.usePrinter({elementId:y.value,fileName:t.value.style.chart.title.text||"vue-ui-wheel"}),L=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),l=e.ref({size:360,height:360,width:360}),g=e.ref(t.value.style.chart.layout.percentage.fontSize),i=e.computed(()=>({radius:Math.min(l.value.width,l.value.height)*.9/2,centerX:l.value.width/2,centerY:l.value.height/2}));function I(n,r=1){return{x:i.value.centerX+i.value.radius*Math.cos(29.85+n*Math.PI/180)*r,y:i.value.centerY+i.value.radius*Math.sin(29.85+n*Math.PI/180)*r}}const a=e.ref(t.value.style.chart.animation.use?0:c.dataset.percentage||0);e.watch(()=>c.dataset,n=>{t.value.style.chart.animation.use?F(n.percentage):a.value=n.percentage||0},{deep:!0});const d=e.ref(null);e.onMounted(()=>{z()});function z(){if(s.objectIsEmpty(c.dataset)&&s.error({componentName:"VueUiWheel",type:"dataset"}),F(c.dataset.percentage||0),t.value.responsive){const n=M.throttle(()=>{const{width:r,height:o}=M.useResponsive({chart:v.value,title:t.value.style.chart.title.text?C.value:null,source:b.value,noTitle:B.value});requestAnimationFrame(()=>{l.value.width=r,l.value.height=o,g.value=t.value.style.chart.layout.percentage.fontSize/360*Math.min(r,o)})});d.value=new ResizeObserver(n),d.value.observe(v.value.parentNode)}}e.onBeforeUnmount(()=>{d.value&&d.value.disconnect()});function F(n){let r=t.value.style.chart.animation.speed;const o=Math.abs(n-a.value)/(r*120);function u(){a.value<n?a.value=Math.min(a.value+o,n):a.value>n&&(a.value=Math.max(a.value-o,n)),a.value!==n&&requestAnimationFrame(u)}u()}const j=e.computed(()=>{const n=[];for(let o=0;o<100;o+=1){const u=a.value>o?t.value.style.chart.layout.wheel.ticks.activeColor:t.value.style.chart.layout.wheel.ticks.inactiveColor,{x:H,y:X}=I(l.value.size/100*o),{x:D,y:Y}=I(l.value.size/100*o,t.value.style.chart.layout.wheel.ticks.sizeRatio);n.push({x1:H,y1:X,x2:D,y2:Y,color:t.value.style.chart.layout.wheel.ticks.gradient.show?s.shiftHue(u,o/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):u})}return n}),h=e.ref(!1);function G(n){h.value=n,w.value+=1}const f=e.ref(!1);function k(){f.value=!f.value}return V({generatePdf:A,generateImage:$,toggleAnnotator:k}),(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:v,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%":""}`),onMouseenter:r[0]||(r[0]=()=>e.unref(S)(!0)),onMouseleave:r[1]||(r[1]=()=>e.unref(S)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Q.PenAndPaper,{key:0,parent:v.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:f.value,onClose:k},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),L.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:B,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:C,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(W._sfc_main,{key:`title_${P.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&&p.value&&(e.unref(N)||e.unref(m))?(e.openBlock(),e.createBlock(E.UserOptions,{ref_key:"details",ref:R,key:`user_options_${w.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(_),isImaging:e.unref(x),uid:y.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:h.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:f.value,chartElement:v.value,onToggleFullscreen:G,onGeneratePdf:e.unref(A),onGenerateImage:e.unref($),onToggleAnnotator:k,style:e.normalizeStyle({visibility:e.unref(N)?e.unref(m)?"visible":"hidden":"visible"})},e.createSlots({_:2},[n.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,n.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,n.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:u})=>[e.renderSlot(n.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:u})),void 0,!0)]),key:"2"}:void 0,n.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:u})=>[e.renderSlot(n.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:u})),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),p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":h.value,"vue-data-ui-fulscreen--off":!h.value}),viewBox:`0 0 ${l.value.width<=0?10:l.value.width} ${l.value.height<=0?10:l.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(K._sfc_main),n.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:l.value.width<=0?10:l.value.width,height:l.value.height<=0?10:l.value.height,style:{pointerEvents:"none"}},[e.renderSlot(n.$slots,"chart-background",{},void 0,!0)],8,oe)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.value,(o,u)=>(e.openBlock(),e.createElementBlock("line",{x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2,stroke:o.color,"stroke-width":5/360*Math.min(l.value.width,l.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&&u<=a.value})},null,10,le))),256)),t.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:1,cx:i.value.centerX,cy:i.value.centerY,r:i.value.radius*.8<=0?1e-4:i.value.radius*.8,stroke:t.value.style.chart.layout.innerCircle.stroke,"stroke-width":t.value.style.chart.layout.innerCircle.strokeWidth,fill:"none"},null,8,ae)):e.createCommentVNode("",!0),t.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:2,x:i.value.centerX,y:i.value.centerY+g.value/3,"font-size":g.value,fill:t.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(s.shiftHue)(t.value.style.chart.layout.wheel.ticks.activeColor,a.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,e.unref(s.checkNaN)(a.value),e.unref(s.dataLabel)({v:e.unref(s.checkNaN)(a.value),s:"%",r:t.value.style.chart.layout.percentage.rounding}))),9,re)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"svg",{svg:l.value},void 0,!0)],14,ne)):e.createCommentVNode("",!0),n.$slots.watermark?(e.openBlock(),e.createElementBlock("div",se,[e.renderSlot(n.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(_)||e.unref(x)})),void 0,!0)])):e.createCommentVNode("",!0),n.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:b,dir:"auto"},[e.renderSlot(n.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(J.default,{key:7,config:{type:"wheel",style:{backgroundColor:t.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],44,te))}},ie=ee._export_sfc(ue,[["__scopeId","data-v-a4a1eb50"]]);exports.default=ie;
@@ -1,319 +0,0 @@
1
- import { computed as p, ref as r, watch as H, onMounted as re, onBeforeUnmount as ue, createElementBlock as c, openBlock as n, unref as o, normalizeStyle as x, createBlock as w, createCommentVNode as v, createSlots as ie, withCtx as b, renderSlot as f, normalizeProps as I, guardReactiveProps as P, normalizeClass as Y, createVNode as ce, Fragment as ve, renderList as he, toDisplayString as de } from "vue";
2
- import { u as fe, c as ye, a as pe, o as ge, e as me, w as W, X as ke, i as we, v as q, f as be } from "./index-DLCyjPV0.js";
3
- import { _ as Ce } from "./Title-CXBc1TH6.js";
4
- import { u as _e, U as Oe } from "./usePrinter-CpHZjw3G.js";
5
- import { t as $e, u as Ae } from "./useResponsive-BWapHhVH.js";
6
- import xe from "./vue-ui-skeleton-D6ojufhb.js";
7
- import { u as V } from "./useNestedProp-q86V3_LA.js";
8
- import { _ as Ie } from "./PackageVersion-PZr4BkQ5.js";
9
- import { P as Pe } from "./PenAndPaper-Cniu2YEX.js";
10
- import { u as Fe } from "./useUserOptionState-BIvW1Kz7.js";
11
- import { _ as Se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["width", "height"], Te = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], Ue = ["cx", "cy", "r", "stroke", "stroke-width"], Le = ["x", "y", "font-size", "fill", "font-weight"], Xe = {
13
- key: 5,
14
- class: "vue-data-ui-watermark"
15
- }, Be = {
16
- __name: "vue-ui-wheel",
17
- props: {
18
- config: {
19
- type: Object,
20
- default() {
21
- return {};
22
- }
23
- },
24
- dataset: {
25
- type: Object,
26
- default() {
27
- return {};
28
- }
29
- }
30
- },
31
- setup(J, { expose: K }) {
32
- const { vue_ui_wheel: Q } = fe(), d = J, C = p(() => !!d.dataset && Object.keys(d.dataset).length), _ = r(ye()), Z = r(null), F = r(0), y = r(null), S = r(null), z = r(null), M = r(null), N = r(0), e = p({
33
- get: () => L(),
34
- set: (t) => t
35
- }), { userOptionsVisible: O, setUserOptionsVisibility: T, keepUserOptionState: U } = Fe({ config: e.value });
36
- function L() {
37
- const t = V({
38
- userConfig: d.config,
39
- defaultConfig: Q
40
- });
41
- return t.theme ? {
42
- ...V({
43
- userConfig: pe.vue_ui_wheel[t.theme] || d.config,
44
- defaultConfig: t
45
- })
46
- } : t;
47
- }
48
- H(() => d.config, (t) => {
49
- e.value = L(), O.value = !e.value.userOptions.showOnChartHover, R(), N.value += 1;
50
- }, { deep: !0 });
51
- const { isPrinting: X, isImaging: B, generatePdf: E, generateImage: G } = _e({
52
- elementId: _.value,
53
- fileName: e.value.style.chart.title.text || "vue-ui-wheel"
54
- }), ee = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), l = r({
55
- size: 360,
56
- height: 360,
57
- width: 360
58
- }), $ = r(e.value.style.chart.layout.percentage.fontSize), h = p(() => ({
59
- radius: Math.min(l.value.width, l.value.height) * 0.9 / 2,
60
- centerX: l.value.width / 2,
61
- centerY: l.value.height / 2
62
- }));
63
- function j(t, u = 1) {
64
- return {
65
- x: h.value.centerX + h.value.radius * Math.cos(29.85 + t * Math.PI / 180) * u,
66
- y: h.value.centerY + h.value.radius * Math.sin(29.85 + t * Math.PI / 180) * u
67
- };
68
- }
69
- const s = r(e.value.style.chart.animation.use ? 0 : d.dataset.percentage || 0);
70
- H(() => d.dataset, (t) => {
71
- e.value.style.chart.animation.use ? D(t.percentage) : s.value = t.percentage || 0;
72
- }, { deep: !0 });
73
- const g = r(null);
74
- re(() => {
75
- R();
76
- });
77
- function R() {
78
- if (ge(d.dataset) && me({
79
- componentName: "VueUiWheel",
80
- type: "dataset"
81
- }), D(d.dataset.percentage || 0), e.value.responsive) {
82
- const t = $e(() => {
83
- const { width: u, height: a } = Ae({
84
- chart: y.value,
85
- title: e.value.style.chart.title.text ? S.value : null,
86
- source: z.value,
87
- noTitle: M.value
88
- });
89
- requestAnimationFrame(() => {
90
- l.value.width = u, l.value.height = a, $.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(u, a);
91
- });
92
- });
93
- g.value = new ResizeObserver(t), g.value.observe(y.value.parentNode);
94
- }
95
- }
96
- ue(() => {
97
- g.value && g.value.disconnect();
98
- });
99
- function D(t) {
100
- let u = e.value.style.chart.animation.speed;
101
- const a = Math.abs(t - s.value) / (u * 120);
102
- function i() {
103
- s.value < t ? s.value = Math.min(s.value + a, t) : s.value > t && (s.value = Math.max(s.value - a, t)), s.value !== t && requestAnimationFrame(i);
104
- }
105
- i();
106
- }
107
- const te = p(() => {
108
- const t = [];
109
- for (let a = 0; a < 100; a += 1) {
110
- const i = s.value > a ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: le, y: oe } = j(l.value.size / 100 * a), { x: ne, y: se } = j(l.value.size / 100 * a, e.value.style.chart.layout.wheel.ticks.sizeRatio);
111
- t.push({
112
- x1: le,
113
- y1: oe,
114
- x2: ne,
115
- y2: se,
116
- color: e.value.style.chart.layout.wheel.ticks.gradient.show ? W(i, a / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : i
117
- });
118
- }
119
- return t;
120
- }), m = r(!1);
121
- function ae(t) {
122
- m.value = t, F.value += 1;
123
- }
124
- const k = r(!1);
125
- function A() {
126
- k.value = !k.value;
127
- }
128
- return K({
129
- generatePdf: E,
130
- generateImage: G,
131
- toggleAnnotator: A
132
- }), (t, u) => (n(), c("div", {
133
- class: "vue-ui-wheel",
134
- ref_key: "wheelChart",
135
- ref: y,
136
- id: _.value,
137
- style: x(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
138
- onMouseenter: u[0] || (u[0] = () => o(T)(!0)),
139
- onMouseleave: u[1] || (u[1] = () => o(T)(!1))
140
- }, [
141
- e.value.userOptions.buttons.annotator ? (n(), w(Pe, {
142
- key: 0,
143
- parent: y.value,
144
- backgroundColor: e.value.style.chart.backgroundColor,
145
- color: e.value.style.chart.color,
146
- active: k.value,
147
- onClose: A
148
- }, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
149
- ee.value ? (n(), c("div", {
150
- key: 1,
151
- ref_key: "noTitle",
152
- ref: M,
153
- class: "vue-data-ui-no-title-space",
154
- style: "height:36px; width: 100%;background:transparent"
155
- }, null, 512)) : v("", !0),
156
- e.value.style.chart.title.text ? (n(), c("div", {
157
- key: 2,
158
- ref_key: "chartTitle",
159
- ref: S,
160
- style: "width:100%;background:transparent;padding-bottom:12px"
161
- }, [
162
- (n(), w(Ce, {
163
- key: `title_${N.value}`,
164
- config: {
165
- title: {
166
- cy: "wheel-title",
167
- ...e.value.style.chart.title
168
- },
169
- subtitle: {
170
- cy: "wheel-subtitle",
171
- ...e.value.style.chart.title.subtitle
172
- }
173
- }
174
- }, null, 8, ["config"]))
175
- ], 512)) : v("", !0),
176
- e.value.userOptions.show && C.value && (o(U) || o(O)) ? (n(), w(Oe, {
177
- ref_key: "details",
178
- ref: Z,
179
- key: `user_options_${F.value}`,
180
- backgroundColor: e.value.style.chart.backgroundColor,
181
- color: e.value.style.chart.color,
182
- isPrinting: o(X),
183
- isImaging: o(B),
184
- uid: _.value,
185
- hasPdf: e.value.userOptions.buttons.pdf,
186
- hasImg: e.value.userOptions.buttons.img,
187
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
188
- hasXls: !1,
189
- isFullscreen: m.value,
190
- position: e.value.userOptions.position,
191
- titles: { ...e.value.userOptions.buttonTitles },
192
- hasAnnotator: e.value.userOptions.buttons.annotator,
193
- isAnnotation: k.value,
194
- chartElement: y.value,
195
- onToggleFullscreen: ae,
196
- onGeneratePdf: o(E),
197
- onGenerateImage: o(G),
198
- onToggleAnnotator: A,
199
- style: x({
200
- visibility: o(U) ? o(O) ? "visible" : "hidden" : "visible"
201
- })
202
- }, ie({ _: 2 }, [
203
- t.$slots.optionPdf ? {
204
- name: "optionPdf",
205
- fn: b(() => [
206
- f(t.$slots, "optionPdf", {}, void 0, !0)
207
- ]),
208
- key: "0"
209
- } : void 0,
210
- t.$slots.optionImg ? {
211
- name: "optionImg",
212
- fn: b(() => [
213
- f(t.$slots, "optionImg", {}, void 0, !0)
214
- ]),
215
- key: "1"
216
- } : void 0,
217
- t.$slots.optionFullscreen ? {
218
- name: "optionFullscreen",
219
- fn: b(({ toggleFullscreen: a, isFullscreen: i }) => [
220
- f(t.$slots, "optionFullscreen", I(P({ toggleFullscreen: a, isFullscreen: i })), void 0, !0)
221
- ]),
222
- key: "2"
223
- } : void 0,
224
- t.$slots.optionAnnotator ? {
225
- name: "optionAnnotator",
226
- fn: b(({ toggleAnnotator: a, isAnnotator: i }) => [
227
- f(t.$slots, "optionAnnotator", I(P({ toggleAnnotator: a, isAnnotator: i })), void 0, !0)
228
- ]),
229
- key: "3"
230
- } : void 0
231
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
232
- C.value ? (n(), c("svg", {
233
- key: 4,
234
- xmlns: o(ke),
235
- class: Y({ "vue-data-ui-fullscreen--on": m.value, "vue-data-ui-fulscreen--off": !m.value }),
236
- viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
237
- style: x(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
238
- }, [
239
- ce(Ie),
240
- t.$slots["chart-background"] ? (n(), c("foreignObject", {
241
- key: 0,
242
- x: 0,
243
- y: 0,
244
- width: l.value.width <= 0 ? 10 : l.value.width,
245
- height: l.value.height <= 0 ? 10 : l.value.height,
246
- style: {
247
- pointerEvents: "none"
248
- }
249
- }, [
250
- f(t.$slots, "chart-background", {}, void 0, !0)
251
- ], 8, Ne)) : v("", !0),
252
- (n(!0), c(ve, null, he(te.value, (a, i) => (n(), c("line", {
253
- x1: a.x1,
254
- x2: a.x2,
255
- y1: a.y1,
256
- y2: a.y2,
257
- stroke: a.color,
258
- "stroke-width": 5 / 360 * Math.min(l.value.width, l.value.height),
259
- "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
260
- class: Y({ "vue-ui-tick-animated": e.value.style.chart.animation.use && i <= s.value })
261
- }, null, 10, Te))), 256)),
262
- e.value.style.chart.layout.innerCircle.show ? (n(), c("circle", {
263
- key: 1,
264
- cx: h.value.centerX,
265
- cy: h.value.centerY,
266
- r: h.value.radius * 0.8 <= 0 ? 1e-4 : h.value.radius * 0.8,
267
- stroke: e.value.style.chart.layout.innerCircle.stroke,
268
- "stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
269
- fill: "none"
270
- }, null, 8, Ue)) : v("", !0),
271
- e.value.style.chart.layout.percentage.show ? (n(), c("text", {
272
- key: 2,
273
- x: h.value.centerX,
274
- y: h.value.centerY + $.value / 3,
275
- "font-size": $.value,
276
- fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? o(W)(e.value.style.chart.layout.wheel.ticks.activeColor, s.value / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.wheel.ticks.activeColor,
277
- "text-anchor": "middle",
278
- "font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
279
- style: { "font-variant-numeric": "tabluar-nums" }
280
- }, de(o(we)(
281
- e.value.style.chart.layout.percentage.formatter,
282
- o(q)(s.value),
283
- o(be)({
284
- v: o(q)(s.value),
285
- s: "%",
286
- r: e.value.style.chart.layout.percentage.rounding
287
- })
288
- )), 9, Le)) : v("", !0),
289
- f(t.$slots, "svg", { svg: l.value }, void 0, !0)
290
- ], 14, Me)) : v("", !0),
291
- t.$slots.watermark ? (n(), c("div", Xe, [
292
- f(t.$slots, "watermark", I(P({ isPrinting: o(X) || o(B) })), void 0, !0)
293
- ])) : v("", !0),
294
- t.$slots.source ? (n(), c("div", {
295
- key: 6,
296
- ref_key: "source",
297
- ref: z,
298
- dir: "auto"
299
- }, [
300
- f(t.$slots, "source", {}, void 0, !0)
301
- ], 512)) : v("", !0),
302
- C.value ? v("", !0) : (n(), w(xe, {
303
- key: 7,
304
- config: {
305
- type: "wheel",
306
- style: {
307
- backgroundColor: e.value.style.chart.backgroundColor,
308
- wheel: {
309
- color: "#CCCCCC"
310
- }
311
- }
312
- }
313
- }, null, 8, ["config"]))
314
- ], 44, ze));
315
- }
316
- }, Ke = /* @__PURE__ */ Se(Be, [["__scopeId", "data-v-a4a1eb50"]]);
317
- export {
318
- Ke as default
319
- };