vue-data-ui 2.6.19 → 2.6.20

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 (157) hide show
  1. package/README.md +8 -0
  2. package/dist/{Arrow-DTtLZwne.js → Arrow-C9wt_iwE.js} +1 -1
  3. package/dist/{Arrow-QMACp9z-.cjs → Arrow-mU42Peiq.cjs} +1 -1
  4. package/dist/{BaseIcon-nz-vbP7I.js → BaseIcon-CR8s5lLC.js} +1 -1
  5. package/dist/{BaseIcon-BpRuwiFD.cjs → BaseIcon-DMhDupLt.cjs} +1 -1
  6. package/dist/{DataTable-pNLWbeCL.js → DataTable-CMUyDj6S.js} +2 -2
  7. package/dist/{DataTable-Dr-djTUz.cjs → DataTable-Qba16zLZ.cjs} +1 -1
  8. package/dist/{Legend-s9DRKvJo.js → Legend-CaMKYW-V.js} +2 -2
  9. package/dist/{Legend-BHbX2C8f.cjs → Legend-EauKcdAx.cjs} +1 -1
  10. package/dist/{PackageVersion-hltZM-fb.js → PackageVersion-CURzw4q1.js} +1 -1
  11. package/dist/{PackageVersion-DsoqDgVf.cjs → PackageVersion-Vv7wNIAl.cjs} +1 -1
  12. package/dist/{PenAndPaper-qmkn1GhB.js → PenAndPaper-CjiJra09.js} +3 -3
  13. package/dist/{PenAndPaper-Dbw8Fph9.cjs → PenAndPaper-DSEAEpTs.cjs} +1 -1
  14. package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-z17A_S1M.js → PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-BzSorLrT.js} +3 -3
  15. package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-lH7bkq1z.cjs → PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-DB_DsgPX.cjs} +1 -1
  16. package/dist/{Shape-C3y6rj0O.js → Shape-F5v4f45p.js} +1 -1
  17. package/dist/{Shape-YhMDtuHk.cjs → Shape-gLknKTb6.cjs} +1 -1
  18. package/dist/{Slicer-BA8XF-Ak.cjs → Slicer-CVVRixhP.cjs} +1 -1
  19. package/dist/{Slicer-BIW17-XH.js → Slicer-DQp19cm1.js} +2 -2
  20. package/dist/{Title-dsg3PqUg.js → Title-CUHNtIyE.js} +1 -1
  21. package/dist/{Title-DWqgN4Kv.cjs → Title-m1x23s4w.cjs} +1 -1
  22. package/dist/{Tooltip-B6T_qzJD.cjs → Tooltip-BXY2gKbA.cjs} +1 -1
  23. package/dist/{Tooltip-DRFQIslg.js → Tooltip-BuAQ8HVL.js} +1 -1
  24. package/dist/{index-3OrObUP-.cjs → index-CmhvuQro.cjs} +1 -1
  25. package/dist/{index-DvAaY6OP.js → index-Cq7-va_5.js} +1 -1
  26. package/dist/style.css +1 -1
  27. package/dist/{useNestedProp-CGzX7c5Q.js → useNestedProp-BEyJNlaO.js} +1 -1
  28. package/dist/{useNestedProp-B53Yi1Rk.cjs → useNestedProp-CnH-XcZU.cjs} +1 -1
  29. package/dist/usePrinter-DhZH4pcR.cjs +1 -0
  30. package/dist/{usePrinter-D_2jA4x8.js → usePrinter-jRjc8Naz.js} +72 -70
  31. package/dist/{vue-data-ui-DMl9rAwQ.js → vue-data-ui-BPSCRfcK.js} +61 -61
  32. package/dist/{vue-data-ui-CTjgYwlW.cjs → vue-data-ui-DD5SV4SW.cjs} +1 -1
  33. package/dist/vue-data-ui.cjs +1 -1
  34. package/dist/vue-data-ui.js +1 -1
  35. package/dist/{vue-ui-3d-bar-OwVsZokU.cjs → vue-ui-3d-bar-BlCSdagh.cjs} +2 -2
  36. package/dist/{vue-ui-3d-bar-DBVRoMwv.js → vue-ui-3d-bar-TB1XdncJ.js} +105 -98
  37. package/dist/{vue-ui-accordion-BmScSwW2.cjs → vue-ui-accordion-C3Ljak65.cjs} +1 -1
  38. package/dist/{vue-ui-accordion-LbUarYuf.js → vue-ui-accordion-vAQ_LLoP.js} +3 -3
  39. package/dist/{vue-ui-age-pyramid-rmfEfmj7.js → vue-ui-age-pyramid-BUWoRp_B.js} +75 -68
  40. package/dist/{vue-ui-age-pyramid-DQ5dL4yb.cjs → vue-ui-age-pyramid-CrDKpPil.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-FlMkU7Kj.js → vue-ui-annotator-BVE-xqSy.js} +1 -1
  42. package/dist/{vue-ui-annotator-nS_RSspz.cjs → vue-ui-annotator-wjsB7Ihy.cjs} +1 -1
  43. package/dist/{vue-ui-bullet-BGTTcXBJ.cjs → vue-ui-bullet-BcU0lGMw.cjs} +4 -4
  44. package/dist/{vue-ui-bullet-esfPgi-9.js → vue-ui-bullet-Cj4GC_-F.js} +145 -138
  45. package/dist/{vue-ui-candlestick-RHrlnUqs.js → vue-ui-candlestick-C2hAp3Fi.js} +115 -108
  46. package/dist/{vue-ui-candlestick-BUEGFHg_.cjs → vue-ui-candlestick-n--kSbN7.cjs} +2 -2
  47. package/dist/{vue-ui-carousel-table-DCcPnWRU.cjs → vue-ui-carousel-table-CU96d16y.cjs} +1 -1
  48. package/dist/{vue-ui-carousel-table-6uP-Kk9U.js → vue-ui-carousel-table-Do1uzI_G.js} +130 -123
  49. package/dist/{vue-ui-chestnut-B7Ep4Lho.cjs → vue-ui-chestnut-DJq8IWIL.cjs} +2 -2
  50. package/dist/{vue-ui-chestnut-Dh4y5s_v.js → vue-ui-chestnut-fb3ioT4a.js} +131 -124
  51. package/dist/{vue-ui-circle-pack-CrgnQ_jY.js → vue-ui-circle-pack-DByIHOMA.js} +165 -158
  52. package/dist/{vue-ui-circle-pack-Ce1oEvgz.cjs → vue-ui-circle-pack-DnwKX38S.cjs} +1 -1
  53. package/dist/{vue-ui-cursor-D-IzE_jd.cjs → vue-ui-cursor-DSCiOK2l.cjs} +1 -1
  54. package/dist/{vue-ui-cursor-C21WgpGu.js → vue-ui-cursor-scYLETJY.js} +2 -2
  55. package/dist/{vue-ui-dashboard-DQ_wht4B.cjs → vue-ui-dashboard-BBDfkeCW.cjs} +1 -1
  56. package/dist/{vue-ui-dashboard-T0LqYCqM.js → vue-ui-dashboard-DjxJGI1j.js} +2 -2
  57. package/dist/{vue-ui-digits-CLFrlUIW.js → vue-ui-digits-7bQAdMhs.js} +2 -2
  58. package/dist/{vue-ui-digits-CwV6mhHZ.cjs → vue-ui-digits-Cmn1NNzQ.cjs} +1 -1
  59. package/dist/{vue-ui-donut-b_UXDeKJ.cjs → vue-ui-donut-C291KoIU.cjs} +1 -1
  60. package/dist/{vue-ui-donut-dVplEheX.js → vue-ui-donut-RJQUTfyW.js} +117 -110
  61. package/dist/{vue-ui-donut-evolution-Bl50EWBG.js → vue-ui-donut-evolution-DPW_ITH8.js} +164 -157
  62. package/dist/{vue-ui-donut-evolution-VxNtQWGH.cjs → vue-ui-donut-evolution-Dp15D88c.cjs} +1 -1
  63. package/dist/{vue-ui-dumbbell-Bp685TTG.js → vue-ui-dumbbell-B8Zm8EVd.js} +74 -67
  64. package/dist/{vue-ui-dumbbell-B-7s7x7a.cjs → vue-ui-dumbbell-BdEUvUV7.cjs} +2 -2
  65. package/dist/{vue-ui-flow-CHbfoU97.js → vue-ui-flow-BNIgPNGy.js} +177 -170
  66. package/dist/{vue-ui-flow-DJqOVlD7.cjs → vue-ui-flow-BukV6_Zl.cjs} +1 -1
  67. package/dist/{vue-ui-funnel-Bhv0XRzJ.js → vue-ui-funnel-BrPqtGct.js} +128 -121
  68. package/dist/{vue-ui-funnel-B77giO54.cjs → vue-ui-funnel-CIgZpg3T.cjs} +1 -1
  69. package/dist/{vue-ui-galaxy-DMA8AX8h.js → vue-ui-galaxy-D1IYOUwX.js} +77 -70
  70. package/dist/{vue-ui-galaxy-Dt4dx9bS.cjs → vue-ui-galaxy-FGqZ4tWB.cjs} +1 -1
  71. package/dist/{vue-ui-gauge-Bh3iSbSd.cjs → vue-ui-gauge-B00JvBFF.cjs} +1 -1
  72. package/dist/{vue-ui-gauge-CBlurlZk.js → vue-ui-gauge-BsOXy5MV.js} +152 -145
  73. package/dist/{vue-ui-gizmo-CHhJKge-.js → vue-ui-gizmo-Cyl89etd.js} +3 -3
  74. package/dist/{vue-ui-gizmo-BMrnNfYR.cjs → vue-ui-gizmo-D_uv6qkV.cjs} +1 -1
  75. package/dist/vue-ui-heatmap-CGg2_xWH.cjs +1 -0
  76. package/dist/{vue-ui-heatmap-CB4852rp.js → vue-ui-heatmap-CgF4n8Bh.js} +139 -132
  77. package/dist/{vue-ui-history-plot-BG7r0ZF7.cjs → vue-ui-history-plot-DR11Ips0.cjs} +1 -1
  78. package/dist/{vue-ui-history-plot-AwmdEhYL.js → vue-ui-history-plot-Rdjb-yOk.js} +121 -114
  79. package/dist/{vue-ui-kpi-DcxE4Vv7.js → vue-ui-kpi-COfnJm-X.js} +3 -3
  80. package/dist/{vue-ui-kpi-BYCMEzBt.cjs → vue-ui-kpi-CbAgFb-9.cjs} +1 -1
  81. package/dist/{vue-ui-mini-loader-DOqUfxRJ.cjs → vue-ui-mini-loader-CizZv79e.cjs} +1 -1
  82. package/dist/{vue-ui-mini-loader-CdDRH8Rb.js → vue-ui-mini-loader-DNM7jU2W.js} +2 -2
  83. package/dist/{vue-ui-molecule-C-Z0Ywq1.cjs → vue-ui-molecule-CiOIVjFk.cjs} +1 -1
  84. package/dist/{vue-ui-molecule-BskBKGbQ.js → vue-ui-molecule-Cv6jp9D_.js} +249 -242
  85. package/dist/{vue-ui-mood-radar-BAPZ1LyF.js → vue-ui-mood-radar-B-VE2pVS.js} +111 -104
  86. package/dist/{vue-ui-mood-radar-BIrQKfVf.cjs → vue-ui-mood-radar-CoHouhrl.cjs} +1 -1
  87. package/dist/{vue-ui-nested-donuts-BB2Kgb5F.js → vue-ui-nested-donuts-D-7tn_Qe.js} +116 -109
  88. package/dist/{vue-ui-nested-donuts-7YjtP-jC.cjs → vue-ui-nested-donuts-ITcu4gJW.cjs} +2 -2
  89. package/dist/{vue-ui-onion-BjMfXAZK.js → vue-ui-onion-B4SgCj8L.js} +143 -136
  90. package/dist/{vue-ui-onion-BWb18zcN.cjs → vue-ui-onion-fzXsWjjI.cjs} +2 -2
  91. package/dist/{vue-ui-parallel-coordinate-plot-D6Vs-5Vh.cjs → vue-ui-parallel-coordinate-plot-CTFOY5xi.cjs} +2 -2
  92. package/dist/{vue-ui-parallel-coordinate-plot-ryqdfkHL.js → vue-ui-parallel-coordinate-plot-CpQOyh-W.js} +112 -105
  93. package/dist/{vue-ui-quadrant-BmsHBpKo.cjs → vue-ui-quadrant-ByRNr-XD.cjs} +1 -1
  94. package/dist/{vue-ui-quadrant-Cr4ypLzT.js → vue-ui-quadrant-DhODDM5V.js} +111 -104
  95. package/dist/{vue-ui-quick-chart-45IEXHb0.cjs → vue-ui-quick-chart-BsQAMw9M.cjs} +3 -3
  96. package/dist/{vue-ui-quick-chart-C9dIHRYi.js → vue-ui-quick-chart-DpeGH277.js} +194 -187
  97. package/dist/{vue-ui-radar-T6xdl9ic.js → vue-ui-radar-CWkrni4Y.js} +100 -93
  98. package/dist/{vue-ui-radar-Nr5JmVlk.cjs → vue-ui-radar-D-qttZKw.cjs} +1 -1
  99. package/dist/{vue-ui-rating-CFIhZlG-.cjs → vue-ui-rating-CY25IY75.cjs} +1 -1
  100. package/dist/{vue-ui-rating-C5AaiBqZ.js → vue-ui-rating-DB4nQsuM.js} +2 -2
  101. package/dist/{vue-ui-relation-circle-BktS594K.js → vue-ui-relation-circle-B_PxY9ZN.js} +102 -95
  102. package/dist/{vue-ui-relation-circle-Cw-DcsRY.cjs → vue-ui-relation-circle-KDFaFqqu.cjs} +1 -1
  103. package/dist/{vue-ui-rings-2j5fsO_o.cjs → vue-ui-rings-C1Upd5ja.cjs} +2 -2
  104. package/dist/{vue-ui-rings-_evAK3j7.js → vue-ui-rings-D5-sTr38.js} +168 -161
  105. package/dist/{vue-ui-scatter-W1_ChsfO.cjs → vue-ui-scatter-B-aqlIcn.cjs} +1 -1
  106. package/dist/{vue-ui-scatter-C5ePnByD.js → vue-ui-scatter-C8cn3MR5.js} +85 -78
  107. package/dist/{vue-ui-screenshot-B6ASKPJf.cjs → vue-ui-screenshot-D9EV_KXZ.cjs} +1 -1
  108. package/dist/{vue-ui-screenshot-DM-PQM2g.js → vue-ui-screenshot-kQRZJHLO.js} +1 -1
  109. package/dist/{vue-ui-skeleton-WoggMoff.js → vue-ui-skeleton-DIrE1OTF.js} +3 -3
  110. package/dist/{vue-ui-skeleton-DaowWOKJ.cjs → vue-ui-skeleton-DyJu1ibj.cjs} +1 -1
  111. package/dist/{vue-ui-smiley-hlaNlq2y.cjs → vue-ui-smiley-B7dNRQyO.cjs} +1 -1
  112. package/dist/{vue-ui-smiley-gulDZ8i7.js → vue-ui-smiley-DVjsjIa4.js} +2 -2
  113. package/dist/{vue-ui-spark-trend-BcrMflk6.cjs → vue-ui-spark-trend-DRtaXADG.cjs} +1 -1
  114. package/dist/{vue-ui-spark-trend-LbApLsdt.js → vue-ui-spark-trend-DsUy3aw-.js} +5 -5
  115. package/dist/{vue-ui-sparkbar-CnL6FbaE.js → vue-ui-sparkbar-Dm8xksUj.js} +4 -4
  116. package/dist/{vue-ui-sparkbar-BdfaDBkw.cjs → vue-ui-sparkbar-x0F1llCZ.cjs} +1 -1
  117. package/dist/{vue-ui-sparkgauge-CHv1q1cO.cjs → vue-ui-sparkgauge-B4DRMVOW.cjs} +1 -1
  118. package/dist/{vue-ui-sparkgauge-Du7PRJyB.js → vue-ui-sparkgauge-_gF53YgV.js} +4 -4
  119. package/dist/{vue-ui-sparkhistogram-CyEyZvbD.js → vue-ui-sparkhistogram-CD_0ihS9.js} +5 -5
  120. package/dist/{vue-ui-sparkhistogram-CBqKXnvX.cjs → vue-ui-sparkhistogram-CIMJUDlb.cjs} +1 -1
  121. package/dist/{vue-ui-sparkline-BMNXPHhB.js → vue-ui-sparkline-Cs0h6tKI.js} +4 -4
  122. package/dist/{vue-ui-sparkline-DRHE0kK8.cjs → vue-ui-sparkline-DzOL1IDW.cjs} +1 -1
  123. package/dist/{vue-ui-sparkstackbar-D6wuDd8h.cjs → vue-ui-sparkstackbar-BBz1lDg0.cjs} +1 -1
  124. package/dist/{vue-ui-sparkstackbar-D33lwh8d.js → vue-ui-sparkstackbar-Dhula5ka.js} +5 -5
  125. package/dist/{vue-ui-stackbar-CnxGAca-.cjs → vue-ui-stackbar-BuUtwfyC.cjs} +3 -3
  126. package/dist/{vue-ui-stackbar-C5yoqQAY.js → vue-ui-stackbar-DanAQnBd.js} +210 -203
  127. package/dist/{vue-ui-strip-plot-DDTTc2jA.cjs → vue-ui-strip-plot-95uUJ2fc.cjs} +1 -1
  128. package/dist/{vue-ui-strip-plot-Cg1B7i3X.js → vue-ui-strip-plot-DIlGTBzG.js} +82 -75
  129. package/dist/{vue-ui-table-TV5Coa0A.cjs → vue-ui-table-CDS7xlZS.cjs} +1 -1
  130. package/dist/{vue-ui-table-BGfZl0wF.js → vue-ui-table-FKZF6cxI.js} +1 -1
  131. package/dist/{vue-ui-table-heatmap-D0j2OFv0.js → vue-ui-table-heatmap-BcGX_vpU.js} +63 -56
  132. package/dist/{vue-ui-table-heatmap-Jjx8L8St.cjs → vue-ui-table-heatmap-qVmiG576.cjs} +1 -1
  133. package/dist/{vue-ui-table-sparkline-C2sUG_7S.js → vue-ui-table-sparkline-CVY9EZ7Q.js} +90 -83
  134. package/dist/{vue-ui-table-sparkline-D0_FhhN5.cjs → vue-ui-table-sparkline-CnVFXbUB.cjs} +1 -1
  135. package/dist/{vue-ui-thermometer-Bw35Fw8v.cjs → vue-ui-thermometer-BTer1qaq.cjs} +1 -1
  136. package/dist/{vue-ui-thermometer-CdLZ8te2.js → vue-ui-thermometer-tcTgQiAu.js} +113 -106
  137. package/dist/{vue-ui-timer-Deg5YPx0.cjs → vue-ui-timer-CmLGKRcK.cjs} +1 -1
  138. package/dist/{vue-ui-timer-1-kXQ5_q.js → vue-ui-timer-DO_VKZHm.js} +5 -5
  139. package/dist/{vue-ui-tiremarks-BHTSw0fa.js → vue-ui-tiremarks-BKnAiR_H.js} +76 -69
  140. package/dist/{vue-ui-tiremarks-uSgVLSbo.cjs → vue-ui-tiremarks-BPxAgMQx.cjs} +1 -1
  141. package/dist/{vue-ui-treemap-7W_lvbV0.cjs → vue-ui-treemap-BnKYnm8A.cjs} +1 -1
  142. package/dist/{vue-ui-treemap-C2u5sEzh.js → vue-ui-treemap-oE2QDc_9.js} +143 -136
  143. package/dist/{vue-ui-vertical-bar-U3LQF-NS.js → vue-ui-vertical-bar-BfFnXSO5.js} +119 -112
  144. package/dist/{vue-ui-vertical-bar-BlzOi8LC.cjs → vue-ui-vertical-bar-CHUZAnfv.cjs} +3 -3
  145. package/dist/{vue-ui-waffle-DUXvINoC.cjs → vue-ui-waffle-DxL_bhhX.cjs} +1 -1
  146. package/dist/{vue-ui-waffle-qAheWwiI.js → vue-ui-waffle-YwQAGMlZ.js} +77 -70
  147. package/dist/{vue-ui-wheel-DIoKCgCS.cjs → vue-ui-wheel-CbEf5uhL.cjs} +1 -1
  148. package/dist/{vue-ui-wheel-CuLQchDK.js → vue-ui-wheel-gZQIZUx1.js} +104 -97
  149. package/dist/{vue-ui-word-cloud-B-nFH7hZ.js → vue-ui-word-cloud-CXpfOcDf.js} +122 -115
  150. package/dist/{vue-ui-word-cloud-BSvmRQ5n.cjs → vue-ui-word-cloud-Ddmhs5i-.cjs} +1 -1
  151. package/dist/{vue-ui-xy-BGsFH9wE.cjs → vue-ui-xy-BFdih9uG.cjs} +2 -2
  152. package/dist/{vue-ui-xy-DXMoSF2C.js → vue-ui-xy-BHGNHgRk.js} +72 -65
  153. package/dist/{vue-ui-xy-canvas-CTymfSH6.js → vue-ui-xy-canvas-BFZjHXBj.js} +200 -193
  154. package/dist/{vue-ui-xy-canvas-i13v43UX.cjs → vue-ui-xy-canvas-hM1oa-dn.cjs} +2 -2
  155. package/package.json +1 -1
  156. package/dist/usePrinter-bPnqqKha.cjs +0 -1
  157. package/dist/vue-ui-heatmap-DvItO4xs.cjs +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-3OrObUP-.cjs"),F=require("./useNestedProp-B53Yi1Rk.cjs"),J=require("./Title-DWqgN4Kv.cjs"),K=require("./Legend-BHbX2C8f.cjs"),z=require("./usePrinter-bPnqqKha.cjs"),Q=require("./PackageVersion-DsoqDgVf.cjs"),Z=require("./PenAndPaper-Dbw8Fph9.cjs"),ee=require("./vue-ui-skeleton-DaowWOKJ.cjs"),te=require("./useUserOptionState-BgepsfED.cjs"),ae=require("./useChartAccessibility-Cm7nkzTG.cjs"),le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),re=["id"],oe={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},se=["xmlns","viewBox"],ne=["width","height"],ue={key:1},ie=["x","y","height","width","fill","stroke"],ce=["x","y","height","width","rx","fill","stroke","stroke-width"],de=["x","y","height","width","fill","stroke","stroke-width"],he=["x","y","font-size","font-weight","fill"],ve=["x","y","height","width","rx","fill","stroke","stroke-width"],ge={key:3},me=["x","y","fill","font-size","font-weight"],fe={key:4},ye=["x1","x2","y1","y2","stroke"],pe={key:5,class:"vue-data-ui-watermark"},ke={class:"vue-ui-bullet-legend-item",dir:"auto"},be={style:{"margin-right":"2px"}},we={key:7,ref:"source",dir:"auto"},Be={__name:"vue-ui-bullet",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(I,{expose:H}){const{vue_ui_bullet:T}=s.useConfig(),n=I,w=e.ref(null),q=e.ref(null),B=e.ref(0),M=e.ref(null),U=e.ref(0),d=e.computed({get:()=>n.dataset.hasOwnProperty("value"),set:a=>a}),v=e.computed(()=>n.dataset.segments?Array.isArray(n.dataset.segments)?n.dataset.segments.length?!0:(console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-CmhvuQro.cjs"),F=require("./useNestedProp-CnH-XcZU.cjs"),J=require("./Title-m1x23s4w.cjs"),K=require("./Legend-EauKcdAx.cjs"),I=require("./usePrinter-DhZH4pcR.cjs"),Q=require("./PackageVersion-Vv7wNIAl.cjs"),Z=require("./PenAndPaper-DSEAEpTs.cjs"),ee=require("./vue-ui-skeleton-DyJu1ibj.cjs"),te=require("./useUserOptionState-BgepsfED.cjs"),ae=require("./useChartAccessibility-Cm7nkzTG.cjs"),le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),re=["id"],oe={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},se=["xmlns","viewBox"],ne=["width","height"],ue={key:1},ie=["x","y","height","width","fill","stroke"],ce=["x","y","height","width","rx","fill","stroke","stroke-width"],de=["x","y","height","width","fill","stroke","stroke-width"],he=["x","y","font-size","font-weight","fill"],ve=["x","y","height","width","rx","fill","stroke","stroke-width"],me={key:3},ge=["x","y","fill","font-size","font-weight"],fe={key:4},ye=["x1","x2","y1","y2","stroke"],pe={key:5,class:"vue-data-ui-watermark"},ke={class:"vue-ui-bullet-legend-item",dir:"auto"},be={style:{"margin-right":"2px"}},we={key:7,ref:"source",dir:"auto"},Be={__name:"vue-ui-bullet",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(z,{expose:H}){const{vue_ui_bullet:T}=s.useConfig(),n=z,w=e.ref(null),q=e.ref(null),B=e.ref(0),M=e.ref(null),U=e.ref(0),h=e.computed({get:()=>n.dataset.hasOwnProperty("value"),set:a=>a}),v=e.computed(()=>n.dataset.segments?Array.isArray(n.dataset.segments)?n.dataset.segments.length?!0:(console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
2
2
 
3
3
  segments: [
4
4
  {
@@ -9,7 +9,7 @@ segments: [
9
9
  },
10
10
  {...}
11
11
  ]
12
- `),d.value=!1,!1):(console.warn(`VueUiBullet: dataset segments must be an array of objects with this datastructure:
12
+ `),h.value=!1,!1):(console.warn(`VueUiBullet: dataset segments must be an array of objects with this datastructure:
13
13
 
14
14
  segments: [
15
15
  {
@@ -20,7 +20,7 @@ segments: [
20
20
  },
21
21
  {...}
22
22
  ]
23
- `),d.value=!1,!1):(console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
23
+ `),h.value=!1,!1):(console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
24
24
 
25
25
  segments: [
26
26
  {
@@ -31,4 +31,4 @@ segments: [
31
31
  },
32
32
  {...}
33
33
  ]
34
- `),d.value=!1,!1));e.onMounted(C);function C(){s.objectIsEmpty(n.dataset)?s.error({componentName:"VueUiBullet",type:"dataset"}):v.value?n.dataset.segments.forEach((a,o)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","from","to"]}).forEach(r=>{d.value=!1,s.error({componentName:"VueUiBullet segment",type:"datasetSerieAttribute",property:r,index:o})})}):d.value=!1,t.value.style.chart.animation.show&&P(n.dataset.value||0)}const y=e.ref(s.createUid());function x(){const a=F.useNestedProp({userConfig:n.config,defaultConfig:T});return a.theme?{...F.useNestedProp({userConfig:s.themes.vue_ui_bullet[a.theme]||n.config,defaultConfig:a})}:a}const t=e.computed({get:()=>x(),set:a=>a}),{userOptionsVisible:p,setUserOptionsVisibility:_,keepUserOptionState:L}=te.useUserOptionState({config:t.value}),{svgRef:S}=ae.useChartAccessibility({config:t.value.style.chart.title});e.watch(()=>n.config,a=>{t.value=x(),p.value=!t.value.userOptions.showOnChartHover,C(),B.value+=1},{deep:!0});const l=e.computed(()=>{const a=t.value.style.chart.height,o=t.value.style.chart.width,r=t.value.style.chart.padding.left,h=o-t.value.style.chart.padding.right,f=t.value.style.chart.padding.top,c=a-t.value.style.chart.padding.bottom;return{height:a,width:o,left:r,right:h,top:f,bottom:c,chartWidth:h-r,chartHeight:c-f}}),R=e.computed(()=>{if(!v.value)return[];const a=[];for(let o=0;o<n.dataset.segments.length;o+=1)a.push(s.lightenHexColor(t.value.style.chart.segments.baseColor,o/n.dataset.segments.length));return a}),k=e.computed(()=>v.value?{min:Math.min(...n.dataset.segments.map(a=>a.from)),max:Math.max(...n.dataset.segments.map(a=>a.to))}:{min:0,max:1}),u=e.ref(D());e.watch(()=>n.dataset,a=>{t.value.style.chart.animation.show?P(a.value||0):u.value=a.value||0},{deep:!0});function D(){return t.value.style.chart.animation.show?k.value.min:n.dataset.value||0}const N=e.ref(null);function P(a){const o=Math.abs(a-u.value)/t.value.style.chart.animation.animationFrames;function r(){u.value<a?u.value=Math.min(u.value+o,a):u.value>a&&(u.value=Math.max(u.value-o,a)),u.value!==a&&(N.value=requestAnimationFrame(r))}r()}e.onBeforeUnmount(()=>{cancelAnimationFrame(N.value)});const i=e.computed(()=>{if(!v.value)return[];const a=s.calculateNiceScale(k.value.min,k.value.max,t.value.style.chart.segments.ticks.divisions),o=a.min>=0?0:Math.abs(a.min),r={x:l.value.left+(n.dataset.target+o)/(a.max+o)*l.value.chartWidth-t.value.style.chart.target.width/2},h={width:(u.value+o)/(a.max+o)*l.value.chartWidth},f=a.ticks.map(c=>({value:c,y:l.value.bottom+t.value.style.chart.segments.dataLabels.fontSize+3+t.value.style.chart.segments.dataLabels.offsetY,x:l.value.left+(c+o)/(a.max+o)*l.value.chartWidth}));return{scale:a,target:r,value:h,ticks:f,chunks:n.dataset.segments.map((c,Y)=>({...c,color:c.color?s.convertColorToHex(c.color):R.value[Y],x:l.value.left+l.value.chartWidth*((c.from+o)/(a.max+o)),y:l.value.top,height:l.value.chartHeight,width:l.value.chartWidth*(Math.abs(c.to-c.from)/(a.max+o))}))}}),E=e.computed(()=>!i.value||!i.value.chunks||!i.value.chunks.length?[]:i.value.chunks.map(a=>{const o=s.applyDataLabel(t.value.style.chart.segments.dataLabels.formatter,a.from,s.dataLabel({p:t.value.style.chart.segments.dataLabels.prefix,v:a.from,s:t.value.style.chart.segments.dataLabels.suffix,r:t.value.style.chart.segments.dataLabels.rounding})),r=s.applyDataLabel(t.value.style.chart.segments.dataLabels.formatter,a.to,s.dataLabel({p:t.value.style.chart.segments.dataLabels.prefix,v:a.to,s:t.value.style.chart.segments.dataLabels.suffix,r:t.value.style.chart.segments.dataLabels.rounding}));return{...a,shape:"square",value:`${o} - ${r}`}})),W=e.computed(()=>({cy:"bullet-div-legend",backgroundColor:"transparent",color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:6,fontWeight:t.value.style.chart.legend.bold?"bold":""})),{isPrinting:V,isImaging:$,generatePdf:O,generateImage:A}=z.usePrinter({elementId:`bullet_${y.value}`,fileName:t.value.style.chart.title.text||"vue-ui-bullet"}),j=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),g=e.ref(!1);function G(a){g.value=a,U.value+=1}function X(){return i.value}const m=e.ref(!1);function b(){m.value=!m.value}return H({getData:X,generatePdf:O,generateImage:A,toggleAnnotator:b}),(a,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"bulletChart",ref:w,class:e.normalizeClass(`vue-ui-bullet ${g.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%;background:${t.value.style.chart.backgroundColor}`),id:`bullet_${y.value}`,onMouseenter:o[0]||(o[0]=()=>e.unref(_)(!0)),onMouseleave:o[1]||(o[1]=()=>e.unref(_)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Z.PenAndPaper,{key:0,svgRef:e.unref(S),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:m.value,onClose:b},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),j.value?(e.openBlock(),e.createElementBlock("div",oe,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:q,style:"width:100%;background:transparent;"},[(e.openBlock(),e.createBlock(J._sfc_main,{lineHeight:"1.3rem",key:`title_${B.value}`,config:{title:{cy:"bullet-div-title",...t.value.style.chart.title},subtitle:{cy:"bullet-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&d.value&&(e.unref(L)||e.unref(p))?(e.openBlock(),e.createBlock(z.UserOptions,{key:3,ref:"details",backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(V),isImaging:e.unref($),uid:y.value,hasTooltip:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:!1,hasTable:!1,hasLabel:!1,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:g.value,chartElement:w.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:m.value,onToggleFullscreen:G,onGeneratePdf:e.unref(O),onGenerateImage:e.unref(A),onToggleAnnotator:b,style:e.normalizeStyle({visibility:e.unref(L)?e.unref(p)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:r,isFullscreen:h})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:r,isFullscreen:h})),void 0,!0)]),key:"2"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:r,isAnnotator:h})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:r,isAnnotator:h})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","chartElement","position","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:S,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":g.value,"vue-data-ui-fulscreen--off":!g.value,"vue-ui-bullet-svg":!0}),viewBox:`0 0 ${l.value.width} ${l.value.height}`,style:e.normalizeStyle(`width: 100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Q._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:l.value.width,height:l.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,ne)):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createElementBlock("g",ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.chunks,r=>(e.openBlock(),e.createElementBlock("rect",{x:r.x,y:r.y,height:r.height,width:r.width,fill:r.color,"stroke-width":1,stroke:t.value.style.chart.backgroundColor},null,8,ie))),256)),t.value.style.chart.target.onTop?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("rect",{key:0,x:i.value.target.x,y:l.value.top+(l.value.chartHeight-l.value.chartHeight*t.value.style.chart.target.heightRatio)/2,height:l.value.chartHeight*t.value.style.chart.target.heightRatio,width:t.value.style.chart.target.width,rx:t.value.style.chart.target.rounded?t.value.style.chart.target.width/2:0,fill:t.value.style.chart.target.color,stroke:t.value.style.chart.target.stroke,"stroke-width":t.value.style.chart.target.strokeWidth},null,8,ce)),e.createElementVNode("rect",{x:l.value.left,y:l.value.top+(l.value.chartHeight-l.value.chartHeight*t.value.style.chart.valueBar.heightRatio)/2,height:l.value.chartHeight*t.value.style.chart.valueBar.heightRatio,width:i.value.value.width,fill:t.value.style.chart.valueBar.color,stroke:t.value.style.chart.valueBar.stroke,"stroke-width":t.value.style.chart.valueBar.strokeWidth},null,8,de),t.value.style.chart.valueBar.label.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:l.value.left+i.value.value.width,y:l.value.top-6+t.value.style.chart.valueBar.label.offsetY,"font-size":t.value.style.chart.valueBar.label.fontSize,"font-weight":t.value.style.chart.valueBar.label.bold?"bold":"normal",fill:t.value.style.chart.valueBar.label.color,"text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.segments.dataLabels.formatter,u.value,e.unref(s.dataLabel)({p:t.value.style.chart.segments.dataLabels.prefix,v:u.value,s:t.value.style.chart.segments.dataLabels.suffix,r:t.value.style.chart.segments.dataLabels.rounding}))),9,he)):e.createCommentVNode("",!0),t.value.style.chart.target.onTop?(e.openBlock(),e.createElementBlock("rect",{key:2,x:i.value.target.x,y:l.value.top+(l.value.chartHeight-l.value.chartHeight*t.value.style.chart.target.heightRatio)/2,height:l.value.chartHeight*t.value.style.chart.target.heightRatio,width:t.value.style.chart.target.width,rx:t.value.style.chart.target.rounded?t.value.style.chart.target.width/2:0,fill:t.value.style.chart.target.color,stroke:t.value.style.chart.target.stroke,"stroke-width":t.value.style.chart.target.strokeWidth},null,8,ve)):e.createCommentVNode("",!0),t.value.style.chart.segments.dataLabels.show?(e.openBlock(),e.createElementBlock("g",ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.ticks,r=>(e.openBlock(),e.createElementBlock("text",{x:r.x,y:r.y,"text-anchor":"middle",fill:t.value.style.chart.segments.dataLabels.color,"font-size":t.value.style.chart.segments.dataLabels.fontSize+"px","font-weight":t.value.style.chart.segments.dataLabels.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.segments.dataLabels.formatter,r.value,e.unref(s.dataLabel)({p:t.value.style.chart.segments.dataLabels.prefix,v:r.value,s:t.value.style.chart.segments.dataLabels.suffix,r:t.value.style.chart.segments.dataLabels.rounding}))),9,me))),256))])):e.createCommentVNode("",!0),t.value.style.chart.segments.dataLabels.show&&t.value.style.chart.segments.ticks.show?(e.openBlock(),e.createElementBlock("g",fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.ticks,r=>(e.openBlock(),e.createElementBlock("line",{x1:r.x,x2:r.x,y1:l.value.bottom,y2:l.value.bottom+3,stroke:t.value.style.chart.segments.ticks.stroke,"stroke-width":1,"stroke-linecap":"round"},null,8,ye))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:l.value},void 0,!0)],14,se)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",pe,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(V)||e.unref($)})),void 0,!0)])):e.createCommentVNode("",!0),d.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ee.default,{key:6,config:{type:"bullet",style:{backgroundColor:t.value.style.chart.backgroundColor,bullet:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:M},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(K.Legend,{key:0,clickable:!1,legendSet:E.value,config:W.value},{item:e.withCtx(({legend:r})=>[e.createElementVNode("div",ke,[e.createElementVNode("span",be,e.toDisplayString(r.name)+":",1),e.createElementVNode("span",null,e.toDisplayString(r.value),1)])]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:E.value},void 0,!0)],512),a.$slots.source?(e.openBlock(),e.createElementBlock("div",we,[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],46,re))}},Ce=le._export_sfc(Be,[["__scopeId","data-v-fccfff27"]]);exports.default=Ce;
34
+ `),h.value=!1,!1));e.onMounted(C);function C(){s.objectIsEmpty(n.dataset)?s.error({componentName:"VueUiBullet",type:"dataset"}):v.value?n.dataset.segments.forEach((a,o)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","from","to"]}).forEach(l=>{h.value=!1,s.error({componentName:"VueUiBullet segment",type:"datasetSerieAttribute",property:l,index:o})})}):h.value=!1,t.value.style.chart.animation.show&&P(n.dataset.value||0)}const y=e.ref(s.createUid());function x(){const a=F.useNestedProp({userConfig:n.config,defaultConfig:T});return a.theme?{...F.useNestedProp({userConfig:s.themes.vue_ui_bullet[a.theme]||n.config,defaultConfig:a})}:a}const t=e.computed({get:()=>x(),set:a=>a}),{userOptionsVisible:p,setUserOptionsVisibility:_,keepUserOptionState:L}=te.useUserOptionState({config:t.value}),{svgRef:S}=ae.useChartAccessibility({config:t.value.style.chart.title});e.watch(()=>n.config,a=>{t.value=x(),p.value=!t.value.userOptions.showOnChartHover,C(),B.value+=1},{deep:!0});const r=e.computed(()=>{const a=t.value.style.chart.height,o=t.value.style.chart.width,l=t.value.style.chart.padding.left,d=o-t.value.style.chart.padding.right,f=t.value.style.chart.padding.top,c=a-t.value.style.chart.padding.bottom;return{height:a,width:o,left:l,right:d,top:f,bottom:c,chartWidth:d-l,chartHeight:c-f}}),R=e.computed(()=>{if(!v.value)return[];const a=[];for(let o=0;o<n.dataset.segments.length;o+=1)a.push(s.lightenHexColor(t.value.style.chart.segments.baseColor,o/n.dataset.segments.length));return a}),k=e.computed(()=>v.value?{min:Math.min(...n.dataset.segments.map(a=>a.from)),max:Math.max(...n.dataset.segments.map(a=>a.to))}:{min:0,max:1}),u=e.ref(D());e.watch(()=>n.dataset,a=>{t.value.style.chart.animation.show?P(a.value||0):u.value=a.value||0},{deep:!0});function D(){return t.value.style.chart.animation.show?k.value.min:n.dataset.value||0}const N=e.ref(null);function P(a){const o=Math.abs(a-u.value)/t.value.style.chart.animation.animationFrames;function l(){u.value<a?u.value=Math.min(u.value+o,a):u.value>a&&(u.value=Math.max(u.value-o,a)),u.value!==a&&(N.value=requestAnimationFrame(l))}l()}e.onBeforeUnmount(()=>{cancelAnimationFrame(N.value)});const i=e.computed(()=>{if(!v.value)return[];const a=s.calculateNiceScale(k.value.min,k.value.max,t.value.style.chart.segments.ticks.divisions),o=a.min>=0?0:Math.abs(a.min),l={x:r.value.left+(n.dataset.target+o)/(a.max+o)*r.value.chartWidth-t.value.style.chart.target.width/2},d={width:(u.value+o)/(a.max+o)*r.value.chartWidth},f=a.ticks.map(c=>({value:c,y:r.value.bottom+t.value.style.chart.segments.dataLabels.fontSize+3+t.value.style.chart.segments.dataLabels.offsetY,x:r.value.left+(c+o)/(a.max+o)*r.value.chartWidth}));return{scale:a,target:l,value:d,ticks:f,chunks:n.dataset.segments.map((c,Y)=>({...c,color:c.color?s.convertColorToHex(c.color):R.value[Y],x:r.value.left+r.value.chartWidth*((c.from+o)/(a.max+o)),y:r.value.top,height:r.value.chartHeight,width:r.value.chartWidth*(Math.abs(c.to-c.from)/(a.max+o))}))}}),E=e.computed(()=>!i.value||!i.value.chunks||!i.value.chunks.length?[]:i.value.chunks.map(a=>{const o=s.applyDataLabel(t.value.style.chart.segments.dataLabels.formatter,a.from,s.dataLabel({p:t.value.style.chart.segments.dataLabels.prefix,v:a.from,s:t.value.style.chart.segments.dataLabels.suffix,r:t.value.style.chart.segments.dataLabels.rounding})),l=s.applyDataLabel(t.value.style.chart.segments.dataLabels.formatter,a.to,s.dataLabel({p:t.value.style.chart.segments.dataLabels.prefix,v:a.to,s:t.value.style.chart.segments.dataLabels.suffix,r:t.value.style.chart.segments.dataLabels.rounding}));return{...a,shape:"square",value:`${o} - ${l}`}})),W=e.computed(()=>({cy:"bullet-div-legend",backgroundColor:"transparent",color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:6,fontWeight:t.value.style.chart.legend.bold?"bold":""})),{isPrinting:$,isImaging:V,generatePdf:O,generateImage:A}=I.usePrinter({elementId:`bullet_${y.value}`,fileName:t.value.style.chart.title.text||"vue-ui-bullet"}),j=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),m=e.ref(!1);function G(a){m.value=a,U.value+=1}function X(){return i.value}const g=e.ref(!1);function b(){g.value=!g.value}return H({getData:X,generatePdf:O,generateImage:A,toggleAnnotator:b}),(a,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"bulletChart",ref:w,class:e.normalizeClass(`vue-ui-bullet ${m.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%;background:${t.value.style.chart.backgroundColor}`),id:`bullet_${y.value}`,onMouseenter:o[0]||(o[0]=()=>e.unref(_)(!0)),onMouseleave:o[1]||(o[1]=()=>e.unref(_)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Z.PenAndPaper,{key:0,svgRef:e.unref(S),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:g.value,onClose:b},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),j.value?(e.openBlock(),e.createElementBlock("div",oe,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:q,style:"width:100%;background:transparent;"},[(e.openBlock(),e.createBlock(J._sfc_main,{lineHeight:"1.3rem",key:`title_${B.value}`,config:{title:{cy:"bullet-div-title",...t.value.style.chart.title},subtitle:{cy:"bullet-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&h.value&&(e.unref(L)||e.unref(p))?(e.openBlock(),e.createBlock(I.UserOptions,{key:3,ref:"details",backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref($),isImaging:e.unref(V),uid:y.value,hasTooltip:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:!1,hasTable:!1,hasLabel:!1,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:m.value,chartElement:w.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:g.value,onToggleFullscreen:G,onGeneratePdf:e.unref(O),onGenerateImage:e.unref(A),onToggleAnnotator:b,style:e.normalizeStyle({visibility:e.unref(L)?e.unref(p)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:d})=>[e.renderSlot(a.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:d})),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.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:d})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:d})),void 0,!0)]),key:"3"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:d})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:d})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","chartElement","position","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:S,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":m.value,"vue-data-ui-fulscreen--off":!m.value,"vue-ui-bullet-svg":!0}),viewBox:`0 0 ${r.value.width} ${r.value.height}`,style:e.normalizeStyle(`width: 100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Q._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width,height:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,ne)):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createElementBlock("g",ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.chunks,l=>(e.openBlock(),e.createElementBlock("rect",{x:l.x,y:l.y,height:l.height,width:l.width,fill:l.color,"stroke-width":1,stroke:t.value.style.chart.backgroundColor},null,8,ie))),256)),t.value.style.chart.target.onTop?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("rect",{key:0,x:i.value.target.x,y:r.value.top+(r.value.chartHeight-r.value.chartHeight*t.value.style.chart.target.heightRatio)/2,height:r.value.chartHeight*t.value.style.chart.target.heightRatio,width:t.value.style.chart.target.width,rx:t.value.style.chart.target.rounded?t.value.style.chart.target.width/2:0,fill:t.value.style.chart.target.color,stroke:t.value.style.chart.target.stroke,"stroke-width":t.value.style.chart.target.strokeWidth},null,8,ce)),e.createElementVNode("rect",{x:r.value.left,y:r.value.top+(r.value.chartHeight-r.value.chartHeight*t.value.style.chart.valueBar.heightRatio)/2,height:r.value.chartHeight*t.value.style.chart.valueBar.heightRatio,width:i.value.value.width,fill:t.value.style.chart.valueBar.color,stroke:t.value.style.chart.valueBar.stroke,"stroke-width":t.value.style.chart.valueBar.strokeWidth},null,8,de),t.value.style.chart.valueBar.label.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:r.value.left+i.value.value.width,y:r.value.top-6+t.value.style.chart.valueBar.label.offsetY,"font-size":t.value.style.chart.valueBar.label.fontSize,"font-weight":t.value.style.chart.valueBar.label.bold?"bold":"normal",fill:t.value.style.chart.valueBar.label.color,"text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.segments.dataLabels.formatter,u.value,e.unref(s.dataLabel)({p:t.value.style.chart.segments.dataLabels.prefix,v:u.value,s:t.value.style.chart.segments.dataLabels.suffix,r:t.value.style.chart.segments.dataLabels.rounding}))),9,he)):e.createCommentVNode("",!0),t.value.style.chart.target.onTop?(e.openBlock(),e.createElementBlock("rect",{key:2,x:i.value.target.x,y:r.value.top+(r.value.chartHeight-r.value.chartHeight*t.value.style.chart.target.heightRatio)/2,height:r.value.chartHeight*t.value.style.chart.target.heightRatio,width:t.value.style.chart.target.width,rx:t.value.style.chart.target.rounded?t.value.style.chart.target.width/2:0,fill:t.value.style.chart.target.color,stroke:t.value.style.chart.target.stroke,"stroke-width":t.value.style.chart.target.strokeWidth},null,8,ve)):e.createCommentVNode("",!0),t.value.style.chart.segments.dataLabels.show?(e.openBlock(),e.createElementBlock("g",me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.ticks,l=>(e.openBlock(),e.createElementBlock("text",{x:l.x,y:l.y,"text-anchor":"middle",fill:t.value.style.chart.segments.dataLabels.color,"font-size":t.value.style.chart.segments.dataLabels.fontSize+"px","font-weight":t.value.style.chart.segments.dataLabels.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.segments.dataLabels.formatter,l.value,e.unref(s.dataLabel)({p:t.value.style.chart.segments.dataLabels.prefix,v:l.value,s:t.value.style.chart.segments.dataLabels.suffix,r:t.value.style.chart.segments.dataLabels.rounding}))),9,ge))),256))])):e.createCommentVNode("",!0),t.value.style.chart.segments.dataLabels.show&&t.value.style.chart.segments.ticks.show?(e.openBlock(),e.createElementBlock("g",fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.ticks,l=>(e.openBlock(),e.createElementBlock("line",{x1:l.x,x2:l.x,y1:r.value.bottom,y2:r.value.bottom+3,stroke:t.value.style.chart.segments.ticks.stroke,"stroke-width":1,"stroke-linecap":"round"},null,8,ye))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:r.value},void 0,!0)],14,se)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",pe,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref($)||e.unref(V)})),void 0,!0)])):e.createCommentVNode("",!0),h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ee.default,{key:6,config:{type:"bullet",style:{backgroundColor:t.value.style.chart.backgroundColor,bullet:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:M},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(K.Legend,{key:0,clickable:!1,legendSet:E.value,config:W.value},{item:e.withCtx(({legend:l})=>[e.createElementVNode("div",ke,[e.createElementVNode("span",be,e.toDisplayString(l.name)+":",1),e.createElementVNode("span",null,e.toDisplayString(l.value),1)])]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:E.value},void 0,!0)],512),a.$slots.source?(e.openBlock(),e.createElementBlock("div",we,[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],46,re))}},Ce=le._export_sfc(Be,[["__scopeId","data-v-1ef5edae"]]);exports.default=Ce;