vue-data-ui 2.4.50 → 2.4.51

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 (199) hide show
  1. package/README.md +12 -0
  2. package/dist/{Arrow-DuuEh1Nr.cjs → Arrow-2a_SwBgz.cjs} +1 -1
  3. package/dist/{Arrow-D1z9KkQN.js → Arrow-BUz63pb2.js} +1 -1
  4. package/dist/{BaseIcon-DemqZ_13.cjs → BaseIcon-BASl_NFX.cjs} +1 -1
  5. package/dist/{BaseIcon-BHwqOTt4.js → BaseIcon-CmiukQBl.js} +1 -1
  6. package/dist/{DataTable-CQ8fQnex.js → DataTable-DGf6RrOJ.js} +2 -2
  7. package/dist/{DataTable-CovKV5Yy.cjs → DataTable-G3ICK-5h.cjs} +1 -1
  8. package/dist/{Legend-Br7MWNDo.js → Legend-BLaZxMge.js} +1 -1
  9. package/dist/{Legend-Bbz-hKDf.cjs → Legend-BiuPlEMg.cjs} +1 -1
  10. package/dist/{PackageVersion-BEtuCME5.cjs → PackageVersion-Bj34UNnQ.cjs} +1 -1
  11. package/dist/{PackageVersion-BV3fHO46.js → PackageVersion-CxJghxYD.js} +1 -1
  12. package/dist/{PenAndPaper-BIcmfBvD.cjs → PenAndPaper-D9yQnc0e.cjs} +1 -1
  13. package/dist/{PenAndPaper-CCOywdmm.js → PenAndPaper-ZdZEumki.js} +3 -3
  14. package/dist/{Shape-B7Mekpyf.js → Shape-DIKzzpFm.js} +1 -1
  15. package/dist/{Shape-BD37ZaX9.cjs → Shape-yducHWd0.cjs} +1 -1
  16. package/dist/{Slicer-CWvkt-8k.cjs → Slicer-BHS9W4MJ.cjs} +1 -1
  17. package/dist/{Slicer-ahFReg7h.js → Slicer-Cxdl3cDt.js} +2 -2
  18. package/dist/{Title-C2siG5N2.cjs → Title-Bk_55doC.cjs} +1 -1
  19. package/dist/{Title-CIsKiWgN.js → Title-aSAft5dl.js} +1 -1
  20. package/dist/{Tooltip-CS4C58T7.cjs → Tooltip-G7ENx87_.cjs} +1 -1
  21. package/dist/{Tooltip-B1LgrF9R.js → Tooltip-smutPF--.js} +1 -1
  22. package/dist/{index-BtL_cLa8.js → index-BbPeL8Gp.js} +5 -1
  23. package/dist/index-DhDYBLBe.cjs +9 -0
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +5 -1
  26. package/dist/types/vue-data-ui.d.ts +5 -1
  27. package/dist/{useNestedProp-CEAfm1tu.js → useNestedProp-BN8claGG.js} +1 -1
  28. package/dist/{useNestedProp-D_feh7A_.cjs → useNestedProp-BphUExEh.cjs} +1 -1
  29. package/dist/{usePrinter-B4xDG31F.cjs → usePrinter-2_QjJFdH.cjs} +1 -1
  30. package/dist/{usePrinter-sRt2SKr2.js → usePrinter-DaybDVqP.js} +1 -1
  31. package/dist/useUserOptionState-BIvW1Kz7.js +17 -0
  32. package/dist/useUserOptionState-BgepsfED.cjs +1 -0
  33. package/dist/{vue-data-ui-CuEYAddV.cjs → vue-data-ui-C5vsHRHD.cjs} +1 -1
  34. package/dist/{vue-data-ui-NkhaiK6y.js → vue-data-ui-Ckbp-yIf.js} +60 -60
  35. package/dist/vue-data-ui.cjs +1 -1
  36. package/dist/vue-data-ui.js +1 -1
  37. package/dist/vue-ui-3d-bar-DUgumRsg.cjs +19 -0
  38. package/dist/{vue-ui-3d-bar-BeXYzdzu.js → vue-ui-3d-bar-wDYs3sVe.js} +345 -339
  39. package/dist/{vue-ui-accordion-Cjc683tN.js → vue-ui-accordion-5d5iVpr7.js} +3 -3
  40. package/dist/{vue-ui-accordion-CBxsUoGb.cjs → vue-ui-accordion-B7tNzRWB.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-rnt8M-Qz.js → vue-ui-age-pyramid-BH1khaaq.js} +260 -254
  42. package/dist/vue-ui-age-pyramid-Dxx1mVwR.cjs +1 -0
  43. package/dist/{vue-ui-annotator-CFU5Zyfk.js → vue-ui-annotator-B9VKE_qz.js} +1 -1
  44. package/dist/{vue-ui-annotator-Yu-mHS2N.cjs → vue-ui-annotator-jXkB5XnD.cjs} +1 -1
  45. package/dist/{vue-ui-bullet-CRbW1ON6.js → vue-ui-bullet-BLi9CSZw.js} +152 -146
  46. package/dist/vue-ui-bullet-QrXtipbT.cjs +34 -0
  47. package/dist/{vue-ui-candlestick-D-ERLtI1.js → vue-ui-candlestick-Bjz1uFbv.js} +223 -217
  48. package/dist/vue-ui-candlestick-Da4ygGXR.cjs +2 -0
  49. package/dist/{vue-ui-carousel-table-I1m4HMWf.js → vue-ui-carousel-table-B6zgTL-W.js} +160 -154
  50. package/dist/vue-ui-carousel-table-Cfif8Oiz.cjs +1 -0
  51. package/dist/vue-ui-chestnut-C_N7EbjQ.cjs +6 -0
  52. package/dist/{vue-ui-chestnut-CqJRKECX.js → vue-ui-chestnut-D5HpkuIa.js} +237 -231
  53. package/dist/{vue-ui-cursor-S83QIsxQ.cjs → vue-ui-cursor-A_siHYBc.cjs} +1 -1
  54. package/dist/{vue-ui-cursor-jrrdh8Lf.js → vue-ui-cursor-DZNIbvR2.js} +2 -2
  55. package/dist/{vue-ui-dashboard-DW1mIInG.cjs → vue-ui-dashboard-BfPJyiY9.cjs} +1 -1
  56. package/dist/{vue-ui-dashboard-DR_Bhwa3.js → vue-ui-dashboard-DCqe4BZg.js} +2 -2
  57. package/dist/{vue-ui-digits-1jZdiwHJ.js → vue-ui-digits-BEWCnojc.js} +2 -2
  58. package/dist/{vue-ui-digits-s5f9eFtW.cjs → vue-ui-digits-BEhLa3jI.cjs} +1 -1
  59. package/dist/vue-ui-donut-By3QRfkV.cjs +1 -0
  60. package/dist/{vue-ui-donut-evolution-DsHTZ9T2.js → vue-ui-donut-evolution-Cu6dmlT2.js} +300 -294
  61. package/dist/vue-ui-donut-evolution-DEABWsj0.cjs +1 -0
  62. package/dist/{vue-ui-donut-BAYiPsxp.js → vue-ui-donut-g5ZLhYPx.js} +376 -370
  63. package/dist/vue-ui-dumbbell-Dfb1l5qP.cjs +9 -0
  64. package/dist/{vue-ui-dumbbell-DcMmBxLy.js → vue-ui-dumbbell-bb4-Ep6o.js} +256 -250
  65. package/dist/vue-ui-flow-CCvTnu7z.cjs +1 -0
  66. package/dist/{vue-ui-flow-BTXEmIQG.js → vue-ui-flow-hD0F6mTK.js} +164 -158
  67. package/dist/vue-ui-funnel-DKxAPRi_.cjs +1 -0
  68. package/dist/{vue-ui-funnel-BB_h0FKg.js → vue-ui-funnel-hcbE4yky.js} +178 -172
  69. package/dist/{vue-ui-galaxy-DlBk1FUz.js → vue-ui-galaxy-ByKjxVWV.js} +187 -181
  70. package/dist/vue-ui-galaxy-D2kmqwpI.cjs +1 -0
  71. package/dist/vue-ui-gauge-BFA_unjg.cjs +1 -0
  72. package/dist/{vue-ui-gauge-1SFhSMfU.js → vue-ui-gauge-PGirbe6O.js} +220 -214
  73. package/dist/{vue-ui-gizmo-C8rLR4n5.cjs → vue-ui-gizmo-CHMApil6.cjs} +1 -1
  74. package/dist/{vue-ui-gizmo-CtX6KFN2.js → vue-ui-gizmo-ChSfBYZ_.js} +3 -3
  75. package/dist/vue-ui-heatmap-C0VxwPhr.cjs +1 -0
  76. package/dist/{vue-ui-heatmap-BzyvTePn.js → vue-ui-heatmap-CK3FIWpo.js} +270 -264
  77. package/dist/vue-ui-history-plot-BmGodgUx.cjs +1 -0
  78. package/dist/{vue-ui-history-plot-BEoHuZ3N.js → vue-ui-history-plot-EmQ-Byiz.js} +236 -230
  79. package/dist/{vue-ui-kpi-LO4KKRR9.cjs → vue-ui-kpi-BdungaO2.cjs} +1 -1
  80. package/dist/{vue-ui-kpi-BYOyJjYg.js → vue-ui-kpi-DjC68pSz.js} +3 -3
  81. package/dist/{vue-ui-mini-loader-ChHdx5me.js → vue-ui-mini-loader-CzrblCCD.js} +2 -2
  82. package/dist/{vue-ui-mini-loader-wlUD77O6.cjs → vue-ui-mini-loader-jwL_pZjb.cjs} +1 -1
  83. package/dist/{vue-ui-molecule-Bo7XYpf-.js → vue-ui-molecule-DBQJQs4Y.js} +294 -289
  84. package/dist/vue-ui-molecule-Dzh-0SWI.cjs +1 -0
  85. package/dist/{vue-ui-mood-radar-DXj4Ce6l.js → vue-ui-mood-radar-Ca9wPZpJ.js} +205 -199
  86. package/dist/vue-ui-mood-radar-DV6ZZIXF.cjs +1 -0
  87. package/dist/{vue-ui-nested-donuts-BBLpNVwF.js → vue-ui-nested-donuts-C8at93dN.js} +286 -280
  88. package/dist/vue-ui-nested-donuts-DEdS6dpj.cjs +17 -0
  89. package/dist/{vue-ui-onion-DC8VIInA.js → vue-ui-onion-B-PXxNu6.js} +198 -192
  90. package/dist/vue-ui-onion-B2ioudP5.cjs +5 -0
  91. package/dist/{vue-ui-parallel-coordinate-plot-Cl1wiHsK.js → vue-ui-parallel-coordinate-plot-ByM3So9k.js} +236 -230
  92. package/dist/vue-ui-parallel-coordinate-plot-DtJi9cT0.cjs +8 -0
  93. package/dist/{vue-ui-quadrant-b5cuEH9z.js → vue-ui-quadrant-BqOJBcsI.js} +255 -249
  94. package/dist/vue-ui-quadrant-CIr4i6cC.cjs +1 -0
  95. package/dist/{vue-ui-quick-chart-CFBPYw2J.js → vue-ui-quick-chart-BfXxT3KM.js} +474 -466
  96. package/dist/vue-ui-quick-chart-Bt9KA82P.cjs +15 -0
  97. package/dist/{vue-ui-radar-DP8360kx.js → vue-ui-radar-BKpD9xDr.js} +256 -250
  98. package/dist/vue-ui-radar-Czmsd_uv.cjs +1 -0
  99. package/dist/{vue-ui-rating-D7b-kfyp.cjs → vue-ui-rating-BE545aI4.cjs} +1 -1
  100. package/dist/{vue-ui-rating-DIthBSp_.js → vue-ui-rating-DQRuqev5.js} +2 -2
  101. package/dist/vue-ui-relation-circle-B1uMTqFP.cjs +1 -0
  102. package/dist/vue-ui-relation-circle-nZ2nBpWX.js +498 -0
  103. package/dist/vue-ui-rings-B7JzZ3ub.cjs +2 -0
  104. package/dist/{vue-ui-rings-y9Zx-DaI.js → vue-ui-rings-C1PV0873.js} +177 -172
  105. package/dist/vue-ui-scatter-CTI943ks.cjs +1 -0
  106. package/dist/{vue-ui-scatter-Cbu5GDc1.js → vue-ui-scatter-dgs1m3-2.js} +310 -304
  107. package/dist/{vue-ui-screenshot-oH-YnZBE.cjs → vue-ui-screenshot--cHV0jG3.cjs} +1 -1
  108. package/dist/{vue-ui-screenshot-BZh_sgjP.js → vue-ui-screenshot-Dxj0l8Jg.js} +1 -1
  109. package/dist/{vue-ui-skeleton-DjFU2X3P.js → vue-ui-skeleton-Bniq21d9.js} +3 -3
  110. package/dist/{vue-ui-skeleton-Nuju6X7l.cjs → vue-ui-skeleton-lkPDknHn.cjs} +1 -1
  111. package/dist/{vue-ui-smiley-DtQVEc4B.cjs → vue-ui-smiley-CozXoiti.cjs} +1 -1
  112. package/dist/{vue-ui-smiley-DdnzzEYS.js → vue-ui-smiley-D4DAZIpA.js} +2 -2
  113. package/dist/{vue-ui-spark-trend-B36zW41F.cjs → vue-ui-spark-trend-CSqyvI_K.cjs} +1 -1
  114. package/dist/{vue-ui-spark-trend-CaIGk_53.js → vue-ui-spark-trend-ZqrwhwqS.js} +5 -5
  115. package/dist/{vue-ui-sparkbar-iQKGtxo8.cjs → vue-ui-sparkbar-Bph8KIjk.cjs} +1 -1
  116. package/dist/{vue-ui-sparkbar-DixeozKp.js → vue-ui-sparkbar-q0G4GvFm.js} +4 -4
  117. package/dist/{vue-ui-sparkgauge-C01VB6KP.js → vue-ui-sparkgauge-DA_h9jcN.js} +4 -4
  118. package/dist/{vue-ui-sparkgauge-DEvgucF7.cjs → vue-ui-sparkgauge-nSAW83dN.cjs} +1 -1
  119. package/dist/{vue-ui-sparkhistogram-C_6lHF3O.js → vue-ui-sparkhistogram-B1WyBiq_.js} +5 -5
  120. package/dist/{vue-ui-sparkhistogram-CTUuxOma.cjs → vue-ui-sparkhistogram-BLYhRNpt.cjs} +1 -1
  121. package/dist/{vue-ui-sparkline-DrZWPGOG.cjs → vue-ui-sparkline-PNix1-R9.cjs} +1 -1
  122. package/dist/{vue-ui-sparkline-Btm4HVgi.js → vue-ui-sparkline-ccfl0s3m.js} +4 -4
  123. package/dist/{vue-ui-sparkstackbar-7pcfCNMr.cjs → vue-ui-sparkstackbar-DpuvEumy.cjs} +1 -1
  124. package/dist/{vue-ui-sparkstackbar-D0UGUm-1.js → vue-ui-sparkstackbar-PNKwVRu8.js} +5 -5
  125. package/dist/{vue-ui-stackbar-BPMDmY04.js → vue-ui-stackbar-BBYnF8qm.js} +367 -361
  126. package/dist/vue-ui-stackbar-D4AIFoQT.cjs +6 -0
  127. package/dist/vue-ui-strip-plot-ClNxSw9M.cjs +1 -0
  128. package/dist/{vue-ui-strip-plot-BfWQMGXy.js → vue-ui-strip-plot-TVlnzXFq.js} +269 -263
  129. package/dist/{vue-ui-table-Cdo265Yt.cjs → vue-ui-table-CHdv3KuM.cjs} +1 -1
  130. package/dist/{vue-ui-table-D8GaLhM9.js → vue-ui-table-CsEajH9S.js} +1 -1
  131. package/dist/vue-ui-table-heatmap-BE3UT8U9.cjs +1 -0
  132. package/dist/vue-ui-table-heatmap-CubRipoB.js +262 -0
  133. package/dist/vue-ui-table-sparkline-BeYviUrb.cjs +1 -0
  134. package/dist/{vue-ui-table-sparkline-DMHf03C9.js → vue-ui-table-sparkline-YV8DUOqh.js} +173 -167
  135. package/dist/vue-ui-thermometer-C6lMWRiF.cjs +1 -0
  136. package/dist/{vue-ui-thermometer-BCVqil7E.js → vue-ui-thermometer-DmMjSLc1.js} +170 -164
  137. package/dist/{vue-ui-timer-gxiLCP1n.cjs → vue-ui-timer-DteYgv9y.cjs} +1 -1
  138. package/dist/{vue-ui-timer-DF5HkeeS.js → vue-ui-timer-DvE_nqd9.js} +5 -5
  139. package/dist/vue-ui-tiremarks-CCrkDgjX.js +323 -0
  140. package/dist/vue-ui-tiremarks-PGGgsNgS.cjs +1 -0
  141. package/dist/vue-ui-treemap-BzRVKqXL.cjs +1 -0
  142. package/dist/{vue-ui-treemap-CIZaPmbi.js → vue-ui-treemap-C4A4spvg.js} +243 -237
  143. package/dist/{vue-ui-vertical-bar-dQoTddqU.js → vue-ui-vertical-bar-8iL1xiaz.js} +238 -232
  144. package/dist/vue-ui-vertical-bar-B60lSXNq.cjs +4 -0
  145. package/dist/{vue-ui-waffle-CnvWOEVU.js → vue-ui-waffle-CaYNz-Kd.js} +316 -310
  146. package/dist/vue-ui-waffle-O8pAEf4X.cjs +1 -0
  147. package/dist/vue-ui-wheel-BRR2rGou.js +305 -0
  148. package/dist/vue-ui-wheel-CnFdB_B1.cjs +1 -0
  149. package/dist/vue-ui-word-cloud-X4mp280j.cjs +1 -0
  150. package/dist/{vue-ui-word-cloud-o3zU6r0-.js → vue-ui-word-cloud-y2GGxwoq.js} +246 -240
  151. package/dist/{vue-ui-xy-GR4PGBDy.js → vue-ui-xy-CXoWP8bh.js} +708 -697
  152. package/dist/vue-ui-xy-CbM75yXK.cjs +3 -0
  153. package/dist/{vue-ui-xy-canvas-BKGOnjut.js → vue-ui-xy-canvas-D7MrUJj7.js} +334 -328
  154. package/dist/vue-ui-xy-canvas-DWvIvSry.cjs +9 -0
  155. package/package.json +1 -1
  156. package/dist/index-DoD-GxZR.cjs +0 -9
  157. package/dist/vue-ui-3d-bar-RduHvzwG.cjs +0 -19
  158. package/dist/vue-ui-age-pyramid-DVtbyRJw.cjs +0 -1
  159. package/dist/vue-ui-bullet-Be5aYhtp.cjs +0 -34
  160. package/dist/vue-ui-candlestick-B6wSs-JC.cjs +0 -2
  161. package/dist/vue-ui-carousel-table-7reErH8M.cjs +0 -1
  162. package/dist/vue-ui-chestnut-D-WzX16q.cjs +0 -6
  163. package/dist/vue-ui-donut-Ce1SaXNu.cjs +0 -1
  164. package/dist/vue-ui-donut-evolution-DI8yeIa4.cjs +0 -1
  165. package/dist/vue-ui-dumbbell-CFJkwtM8.cjs +0 -9
  166. package/dist/vue-ui-flow-B4MtorhO.cjs +0 -1
  167. package/dist/vue-ui-funnel-DNL12vLQ.cjs +0 -1
  168. package/dist/vue-ui-galaxy-CmCZGOKz.cjs +0 -1
  169. package/dist/vue-ui-gauge-B7ieQMud.cjs +0 -1
  170. package/dist/vue-ui-heatmap-Bfi3KJwS.cjs +0 -1
  171. package/dist/vue-ui-history-plot-5kZ54hgy.cjs +0 -1
  172. package/dist/vue-ui-molecule-D-4cRS5w.cjs +0 -1
  173. package/dist/vue-ui-mood-radar-C3x_LH7Q.cjs +0 -1
  174. package/dist/vue-ui-nested-donuts-DrL7-SUd.cjs +0 -17
  175. package/dist/vue-ui-onion-8Vz3lPbn.cjs +0 -5
  176. package/dist/vue-ui-parallel-coordinate-plot-D6q4WQ0B.cjs +0 -8
  177. package/dist/vue-ui-quadrant-DBZS5jFQ.cjs +0 -1
  178. package/dist/vue-ui-quick-chart-Cno_1mzu.cjs +0 -15
  179. package/dist/vue-ui-radar-ChcBO21S.cjs +0 -1
  180. package/dist/vue-ui-relation-circle-C5pO0iHY.cjs +0 -1
  181. package/dist/vue-ui-relation-circle-D2iwmChn.js +0 -492
  182. package/dist/vue-ui-rings-C_NLJYs8.cjs +0 -2
  183. package/dist/vue-ui-scatter-BNeMGDNk.cjs +0 -1
  184. package/dist/vue-ui-stackbar-BwRdmPvB.cjs +0 -6
  185. package/dist/vue-ui-strip-plot-CLN9LikJ.cjs +0 -1
  186. package/dist/vue-ui-table-heatmap-C4DRSfsE.js +0 -256
  187. package/dist/vue-ui-table-heatmap-CDAf1IIk.cjs +0 -1
  188. package/dist/vue-ui-table-sparkline-Cw7NOiYx.cjs +0 -1
  189. package/dist/vue-ui-thermometer-7BORZJjd.cjs +0 -1
  190. package/dist/vue-ui-tiremarks-CwGnFx4f.cjs +0 -1
  191. package/dist/vue-ui-tiremarks-lidhcJsi.js +0 -317
  192. package/dist/vue-ui-treemap-BZ_LmiBK.cjs +0 -1
  193. package/dist/vue-ui-vertical-bar-venrkqjM.cjs +0 -4
  194. package/dist/vue-ui-waffle-oR54BbIg.cjs +0 -1
  195. package/dist/vue-ui-wheel-BUHZEzPr.cjs +0 -1
  196. package/dist/vue-ui-wheel-D3itrMku.js +0 -299
  197. package/dist/vue-ui-word-cloud-87gwksmM.cjs +0 -1
  198. package/dist/vue-ui-xy-D56pm4L0.cjs +0 -3
  199. package/dist/vue-ui-xy-canvas-uikeVe72.cjs +0 -9
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DhDYBLBe.cjs"),j=require("./useResponsive-BJ7DTGpm.cjs"),re=require("./Title-Bk_55doC.cjs"),Y=require("./usePrinter-2_QjJFdH.cjs"),ie=require("./Tooltip-G7ENx87_.cjs"),ne=require("./DataTable-G3ICK-5h.cjs"),ue=require("./vue-ui-skeleton-lkPDknHn.cjs"),de=require("./vue-ui-accordion-B7tNzRWB.cjs"),J=require("./useNestedProp-BphUExEh.cjs"),ce=require("./PackageVersion-Bj34UNnQ.cjs"),ve=require("./PenAndPaper-D9yQnc0e.cjs"),ye=require("./useUserOptionState-BgepsfED.cjs"),he=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),fe=["id"],pe=["xmlns","viewBox"],ge=["id"],be=["stop-color"],me=["stop-color"],xe=["id"],ke=["stop-color"],we=["stop-color"],Ce=["x","y","width","height","fill","rx"],_e=["x","y","width","height","fill","rx"],Ne=["x","y","width","height","fill","rx"],Le=["x","y","width","height","fill","rx"],Se={key:0},Te=["x","y","fill","font-size","font-weight"],Be=["x","y","fill","font-size","font-weight"],Ae={key:1},$e=["x","y","font-size","fill","font-weight"],Ee={key:2},Ve={key:0},ze=["x1","x2","y1","y2","stroke","stroke-width"],Pe=["x1","x2","y1","y2","stroke","stroke-width"],Oe=["x1","x2","y1","y2","stroke","stroke-width"],Fe=["x","y","font-size","fill","font-weight"],Ie=["x1","x2","y1","y2","stroke","stroke-width"],De=["x","y","font-size","fill","font-weight"],Me=["x","y","font-size","fill","font-weight"],Re=["x","y","width","height","fill","onMouseover"],qe={key:5,class:"vue-data-ui-watermark"},Ue={__name:"vue-ui-age-pyramid",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(S,{expose:K}){const u=S,{vue_ui_age_pyramid:Q}=s.useConfig(),m=e.computed(()=>!!u.dataset&&u.dataset.length),c=e.ref(s.createUid()),Z=e.ref(null),C=e.ref(!1),_=e.ref(""),x=e.ref(null),T=e.ref(0),y=e.ref(null),B=e.ref(null),A=e.ref(null),$=e.ref(null),E=e.ref(0),V=e.ref(0),t=e.computed({get:()=>F(),set:l=>l}),{userOptionsVisible:z,setUserOptionsVisibility:P,keepUserOptionState:O}=ye.useUserOptionState({config:t.value});function F(){const l=J.useNestedProp({userConfig:u.config,defaultConfig:Q});return l.theme?{...J.useNestedProp({userConfig:s.themes.vue_ui_age_pyramid[l.theme]||u.config,defaultConfig:l})}:l}e.watch(()=>u.config,l=>{t.value=F(),D(),E.value+=1,V.value+=1},{deep:!0});const I=e.ref(null);e.onMounted(()=>{D()});function D(){if(s.objectIsEmpty(u.dataset)&&s.error({componentName:"VueUiAgePyramid",type:"dataset"}),t.value.responsive){const l=j.throttle(()=>{const{width:r,height:o}=j.useResponsive({chart:y.value,title:t.value.style.title.text?B.value:null,source:A.value,noTitle:$.value});d.value.width=r,d.value.height=o});I.value=new ResizeObserver(l),I.value.observe(y.value.parentNode)}}const{isPrinting:M,isImaging:R,generatePdf:q,generateImage:U}=Y.usePrinter({elementId:`vue-ui-age-pyramid_${c.value}`,fileName:t.value.style.title.text||"vue-ui-age-pyramid"}),ee=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),v=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),d=e.ref({height:t.value.style.height,width:t.value.style.width}),i=e.computed(()=>{const l=d.value.width-t.value.style.layout.padding.right-t.value.style.layout.padding.left,r=t.value.style.layout.padding.left,o=d.value.width-t.value.style.layout.padding.right;return{top:t.value.style.layout.padding.top,left:r,right:o,bottom:d.value.height-t.value.style.layout.padding.bottom,width:l,height:d.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom,centerX:t.value.style.layout.padding.left+l/2,leftChart:{width:l/2-t.value.style.layout.centerSlit.width,right:r+l/2-t.value.style.layout.centerSlit.width},rightChart:{width:l/2-t.value.style.layout.centerSlit.width,left:r+l/2+t.value.style.layout.centerSlit.width}}}),te=e.computed(()=>u.dataset.map(l=>t.value.style.layout.dataLabels.yAxis.display==="age"?l[1]:l[0])),h=e.computed(()=>{const l=le(b.value/5),r=[],o=[];for(let a=0;a<=5;a+=1){const n=l*a,X=l*(a-5);r.push({value:n,x:i.value.left+i.value.width/2+t.value.style.layout.centerSlit.width+n/b.value*i.value.leftChart.width}),o.push({value:Math.abs(X),x:i.value.left+i.value.width/2+X/b.value*i.value.leftChart.width-t.value.style.layout.centerSlit.width})}return{right:r,left:o}});function le(l){if(l===0)return 0;const o=10**Math.floor(Math.log10(Math.abs(l)));let a;return l<0,a=Math.round(l/o)*o,a}const b=e.computed(()=>Math.max(...u.dataset.flatMap(l=>l.slice(-2).map(r=>s.checkNaN(r))))),f=e.computed(()=>u.dataset.length),oe=e.computed(()=>u.dataset.map(l=>({segment:l[0],age:l[1],left:{value:l[2],proportionToMax:l[2]/b.value},right:{value:l[3],proportionToMax:l[3]/b.value}}))),p=e.computed(()=>oe.value.map((l,r)=>{const o=i.value.top+i.value.height/f.value*r,a=i.value.height/f.value-t.value.style.layout.bars.gap;return{segment:l.segment,age:l.age,left:{...l.left,y:o,color:t.value.style.layout.bars.left.color,x:i.value.leftChart.right-l.left.proportionToMax*i.value.leftChart.width,width:s.checkNaN(l.left.proportionToMax*i.value.leftChart.width),height:a},right:{...l.right,y:o,color:t.value.style.layout.bars.right.color,x:i.value.rightChart.left,width:s.checkNaN(l.right.proportionToMax*i.value.rightChart.width),height:a}}})),N=e.ref(null);function ae(l,r){x.value=l,N.value={datapoint:r,seriesIndex:l,series:p.value,config:t.value};const o=t.value.style.tooltip.customFormat;if(s.isFunction(o)&&s.functionReturnsString(()=>o({seriesIndex:l,datapoint:{segment:r[0],index:r[1],left:r[2],right:r[3]},series:p.value,config:t.value})))_.value=o({seriesIndex:l,datapoint:{segment:r[0],index:r[1],left:r[2],right:r[3]},series:p.value,config:t.value});else{let a="";const n=p.value[l];a+=`<div><b>${n.segment}</b></div>`,a+=`<div>${t.value.translations.age}: ${s.applyDataLabel(t.value.style.layout.dataLabels.yAxis.formatter,s.checkNaN(n.age),s.dataLabel({v:s.checkNaN(n.age)}),{datapoint:r,seriesIndex:l})}</div>`,a+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,a+='<div style="display:flex; flex-direction:row;gap:12px">',a+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${c.value})`:t.value.style.layout.bars.left.color}"/></svg><div>${t.value.translations.female}</div><div><b>${s.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(n.left.value),s.dataLabel({v:s.checkNaN(n.left.value)}),{datapoint:r,seriesIndex:l})}</b></div></div>`,a+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${c.value})`:t.value.style.layout.bars.right.color}"/></svg><div>${t.value.translations.male}</div><div><b>${s.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(n.right.value),s.dataLabel({v:s.checkNaN(n.right.value)}),{datapoint:r,seriesIndex:l})}</b></div></div>`,a+="</div>",a+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}"><div>${t.value.translations.total}</div><div><b>${s.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(n.right.value)+s.checkNaN(n.left.value),s.dataLabel({v:s.checkNaN(n.right.value)+s.checkNaN(n.left.value)}),{datapoint:r,seriesIndex:l})}</b></div></div>`,a+="</div>",_.value=`<div>${a}</div>`}C.value=!0}function G(){e.nextTick(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],r=u.dataset.map(n=>[n[0],n[1],n[2],n[3],n[2]+n[3]]),o=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(r),a=s.createCsvContent(o);s.downloadCsv({csvContent:a,title:t.value.style.title.text||"vue-ui-heatmap"})})}const k=e.computed(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],r=u.dataset.map(a=>[a[0],a[1],a[2].toLocaleString(),a[3].toLocaleString(),(a[2]+a[3]).toLocaleString()]),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:l,body:r,config:o,colNames:l}}),g=e.ref(!1);function se(l){g.value=l,T.value+=1}function W(){v.value.showTable=!v.value.showTable}function H(){v.value.showTooltip=!v.value.showTooltip}const w=e.ref(!1);function L(){w.value=!w.value}return K({generatePdf:q,generateCsv:G,generateImage:U,toggleTable:W,toggleTooltip:H,toggleAnnotator:L}),(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-age-pyramid ${g.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"agePyramid",ref:y,id:`vue-ui-age-pyramid_${c.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:r[2]||(r[2]=()=>e.unref(P)(!0)),onMouseleave:r[3]||(r[3]=()=>e.unref(P)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ve.PenAndPaper,{key:0,parent:y.value,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:w.value,onClose:L},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ee.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:$,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:B,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(re._sfc_main,{key:`title_${E.value}`,config:{title:{cy:"pyramid-div-title",...t.value.style.title},subtitle:{cy:"pyramid-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&m.value&&(e.unref(O)||e.unref(z))?(e.openBlock(),e.createBlock(Y.UserOptions,{ref_key:"details",ref:Z,key:`user_options_${T.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(R),isPrinting:e.unref(M),uid:c.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:g.value,isTooltip:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:y.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:se,onGeneratePdf:e.unref(q),onGenerateCsv:G,onGenerateImage:e.unref(U),onToggleTable:W,onToggleTooltip:H,onToggleAnnotator:L,style:e.normalizeStyle({visibility:e.unref(O)?e.unref(z)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:a})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:a})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:a})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:a})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":g.value,"vue-data-ui-fulscreen--off":!g.value}),viewBox:`0 0 ${d.value.width<=0?10:d.value.width} ${d.value.height<=0?10:d.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(ce._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`age_pyramid_left_${c.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.bars.left.color},null,8,be),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(e.unref(s.shiftHue)(t.value.style.layout.bars.left.color,t.value.style.layout.bars.gradient.shiftHue),100-t.value.style.layout.bars.gradient.intensity)},null,8,me)],8,ge),e.createElementVNode("linearGradient",{id:`age_pyramid_right_${c.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(e.unref(s.shiftHue)(t.value.style.layout.bars.right.color,t.value.style.layout.bars.gradient.shiftHue),100-t.value.style.layout.bars.gradient.intensity)},null,8,ke),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.bars.right.color},null,8,we)],8,xe)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:o.left.x,y:o.left.y,width:e.unref(s.checkNaN)(o.left.width<=0?1e-4:o.left.width),height:o.left.height<=0?1e-4:o.left.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,Ce),e.createElementVNode("rect",{x:o.left.x,y:o.left.y,width:o.left.width<=0?1e-4:o.left.width,height:o.left.height<=0?1e-4:o.left.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${c.value})`:o.left.color,rx:t.value.style.layout.bars.borderRadius},null,8,_e),e.createElementVNode("rect",{x:o.right.x,y:o.right.y,width:o.right.width<=0?1e-4:o.right.width,height:o.right.height<=0?1e-4:o.right.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,Ne),e.createElementVNode("rect",{x:o.right.x,y:o.right.y,width:o.right.width<=0?1e-4:o.right.width,height:o.right.height<=0?1e-4:o.right.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${c.value})`:o.right.color,rx:t.value.style.layout.bars.borderRadius},null,8,Le)]))),256)),e.createElementVNode("g",null,[t.value.style.layout.dataLabels.sideTitles.show?(e.openBlock(),e.createElementBlock("g",Se,[e.createElementVNode("text",{x:i.value.left,y:i.value.top+t.value.style.layout.dataLabels.sideTitles.offsetY,fill:t.value.style.layout.dataLabels.sideTitles.useSideColor?t.value.style.layout.bars.left.color:t.value.style.layout.dataLabels.sideTitles.color,"font-size":t.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"start","font-weight":t.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},e.toDisplayString(t.value.translations.female),9,Te),e.createElementVNode("text",{x:i.value.right,y:i.value.top+t.value.style.layout.dataLabels.sideTitles.offsetY,fill:t.value.style.layout.dataLabels.sideTitles.useSideColor?t.value.style.layout.bars.right.color:t.value.style.layout.dataLabels.sideTitles.color,"font-size":t.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"end","font-weight":t.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},e.toDisplayString(t.value.translations.male),9,Be)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",Ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(te.value,(o,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a%t.value.style.layout.dataLabels.yAxis.showEvery===0?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.value.centerX,y:i.value.top+i.value.height/f.value*a+t.value.style.layout.dataLabels.yAxis.fontSize/3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.dataLabels.yAxis.formatter,o,e.unref(s.dataLabel)({v:o}),{datapoint:o,seriesIndex:a})),9,$e)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",Ee,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Ve,[e.createElementVNode("line",{x1:h.value.right[0].x,x2:h.value.right.at(-1).x,y1:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,ze),e.createElementVNode("line",{x1:h.value.left[0].x,x2:h.value.left.at(-1).x,y1:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Pe)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.right,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x,y1:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Oe)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:o.x,y:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,o.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(s.dataLabel)({v:o.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:o,seriesIndex:a})),9,Fe)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.left,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x,y1:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ie)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:o.x,y:i.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,o.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(s.dataLabel)({v:o.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:o,seriesIndex:a})),9,De)]))),256)),e.createElementVNode("text",{x:i.value.right,y:d.value.height,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.translation),9,Me)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.dataset,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:i.value.left,y:i.value.top+i.value.height/f.value*a-t.value.style.layout.bars.gap/2,width:i.value.width<=0?1e-4:i.value.width,height:i.value.height/f.value<=0?1e-4:i.value.height/f.value,fill:x.value!==null&&x.value===a?e.unref(s.setOpacity)(t.value.style.highlighter.color,t.value.style.highlighter.opacity):"transparent",onMouseover:n=>ae(a,o),onMouseleave:r[0]||(r[0]=n=>{x.value=null,C.value=!1})},null,40,Re)]))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,pe)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",qe,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(M)||e.unref(R)})),void 0,!0)])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ue.default,{key:6,config:{type:"pyramid",style:{backgroundColor:t.value.style.backgroundColor,pyramid:{color:"#CCCCCC"}}}},null,8,["config"])),e.renderSlot(l.$slots,"legend",{legend:p.value},void 0,!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:A,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ie._sfc_main,{show:v.value.showTooltip&&C.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:y.value,content:_.value,isFullscreen:g.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...N.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...N.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),m.value?(e.openBlock(),e.createBlock(de.default,{key:8,hideDetails:"",config:{open:v.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ne.DataTable,{key:`table_${V.value}`,colNames:k.value.colNames,head:k.value.head,body:k.value.body,config:k.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:r[1]||(r[1]=o=>v.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,fe))}},Ge=he._export_sfc(Ue,[["__scopeId","data-v-0934fe8b"]]);exports.default=Ge;
@@ -1,6 +1,6 @@
1
1
  import p from "./html2canvas.esm-d2sM-0Wm.js";
2
2
  import { E as _ } from "./jspdf.es.min-C660YX78.js";
3
- import { z as v, u as w, A, B as M } from "./index-BtL_cLa8.js";
3
+ import { z as v, u as w, A, B as M } from "./index-BbPeL8Gp.js";
4
4
  import { openBlock as d, createElementBlock as n, createElementVNode as r, normalizeStyle as c, toDisplayString as u, normalizeClass as y, createCommentVNode as a, withDirectives as f, vModelCheckbox as g, vModelText as C, renderSlot as O, Fragment as L, renderList as G, createStaticVNode as N, pushScopeId as m, popScopeId as T } from "vue";
5
5
  import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const D = {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./html2canvas.esm-BA_v9SIU.cjs"),I=require("./jspdf.es.min-DLYY9DTT.cjs"),u=require("./index-DoD-GxZR.cjs"),o=require("vue"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{shapes:[],lastSelectedShape:void 0}}}},data(){return{activeShape:void 0,strokeSize:1,currentPointer:{start:{x:0,y:0},end:{x:0,end:0}},currentTarget:void 0,hoveredShapeId:void 0,isBold:!1,isBulletTextMode:!1,isDash:!1,isDeleteMode:!1,isDrawing:!1,isDrawingNewShape:!0,isDrawMode:!1,isItalic:!1,isMouseDown:!1,isMoveMode:!1,isPrinting:!1,isResizeMode:!1,isSelectMode:!1,isSummaryOpen:!1,isTextMode:!1,isUnderline:!1,isWriting:!1,lastSelectedShape:this.dataset.lastSelectedShape,pointerDownId:-1,pointerPosition:{x:0,y:0},preventEdit:!0,selectedGroup:[],shapes:this.dataset.shapes?this.dataset.shapes:[],shapesOrder:[],step:Math.round(Math.random())*1e5,svgHeight:1e3,svgWidth:1e3,options:{arrow:{color:"grey",filled:!0},circle:{color:"grey",filled:!1,radius:3,strokeWidth:2},rect:{color:"grey",filled:!1,strokeWidth:2,height:12,width:12}},selectedColor:"#000000",showCaret:!1,sizeRatio:1,slottedSvg:void 0,sourceWidth:1,sourceHeight:1,textAlign:"start",textFont:20,transparency:100,transparencyCodes:u.opacity}},watch:{shapes:{handler(e){e.length===0&&(this.lastSelectedShape=void 0)}}},computed:{FINAL_CONFIG(){const e=u.useConfig().vue_ui_annotator;if(!Object.keys(this.config||{}).length)return e;const l=this.treeShake({defaultConfig:e,userConfig:this.config});return this.convertConfigColors(l)},canSelect(){return this.shapes.filter(e=>!["line","group"].includes(e.type)).length>1},colorTransparency(){return this.transparencyCodes[this.transparency>98?98:this.transparency]},cursorClass(){switch(!0){case this.isDeleteMode:return"default";case this.isMoveMode:return"move";case this.isTextMode:return"text";case this.isResizeMode:return"se-resize";default:return""}},records(){return this.shapes},userShapes(){return this.records.map(e=>{switch(!0){case(e&&e.type==="arrow"):const l=e.strokeWidth>3?5:10,s=e.strokeWidth>3?2.5:5;return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./html2canvas.esm-BA_v9SIU.cjs"),I=require("./jspdf.es.min-DLYY9DTT.cjs"),u=require("./index-DhDYBLBe.cjs"),o=require("vue"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{shapes:[],lastSelectedShape:void 0}}}},data(){return{activeShape:void 0,strokeSize:1,currentPointer:{start:{x:0,y:0},end:{x:0,end:0}},currentTarget:void 0,hoveredShapeId:void 0,isBold:!1,isBulletTextMode:!1,isDash:!1,isDeleteMode:!1,isDrawing:!1,isDrawingNewShape:!0,isDrawMode:!1,isItalic:!1,isMouseDown:!1,isMoveMode:!1,isPrinting:!1,isResizeMode:!1,isSelectMode:!1,isSummaryOpen:!1,isTextMode:!1,isUnderline:!1,isWriting:!1,lastSelectedShape:this.dataset.lastSelectedShape,pointerDownId:-1,pointerPosition:{x:0,y:0},preventEdit:!0,selectedGroup:[],shapes:this.dataset.shapes?this.dataset.shapes:[],shapesOrder:[],step:Math.round(Math.random())*1e5,svgHeight:1e3,svgWidth:1e3,options:{arrow:{color:"grey",filled:!0},circle:{color:"grey",filled:!1,radius:3,strokeWidth:2},rect:{color:"grey",filled:!1,strokeWidth:2,height:12,width:12}},selectedColor:"#000000",showCaret:!1,sizeRatio:1,slottedSvg:void 0,sourceWidth:1,sourceHeight:1,textAlign:"start",textFont:20,transparency:100,transparencyCodes:u.opacity}},watch:{shapes:{handler(e){e.length===0&&(this.lastSelectedShape=void 0)}}},computed:{FINAL_CONFIG(){const e=u.useConfig().vue_ui_annotator;if(!Object.keys(this.config||{}).length)return e;const l=this.treeShake({defaultConfig:e,userConfig:this.config});return this.convertConfigColors(l)},canSelect(){return this.shapes.filter(e=>!["line","group"].includes(e.type)).length>1},colorTransparency(){return this.transparencyCodes[this.transparency>98?98:this.transparency]},cursorClass(){switch(!0){case this.isDeleteMode:return"default";case this.isMoveMode:return"move";case this.isTextMode:return"text";case this.isResizeMode:return"se-resize";default:return""}},records(){return this.shapes},userShapes(){return this.records.map(e=>{switch(!0){case(e&&e.type==="arrow"):const l=e.strokeWidth>3?5:10,s=e.strokeWidth>3?2.5:5;return`
2
2
  <defs>
3
3
  <marker
4
4
  id="${e.id}"
@@ -1,29 +1,30 @@
1
- import { ref as d, computed as g, onMounted as ce, watch as V, onBeforeUnmount as he, openBlock as r, createElementBlock as n, normalizeClass as q, normalizeStyle as X, createBlock as k, createCommentVNode as u, unref as v, createSlots as ve, withCtx as w, renderSlot as y, normalizeProps as I, guardReactiveProps as O, createVNode as de, Fragment as H, renderList as T, createElementVNode as x, toDisplayString as L } from "vue";
2
- import { u as ge, o as fe, e as Y, g as me, c as ye, l as pe, D as be, d as ke, i as $, f as B, X as we, t as xe } from "./index-BtL_cLa8.js";
3
- import { u as J } from "./useNestedProp-CEAfm1tu.js";
4
- import { _ as _e } from "./Title-CIsKiWgN.js";
5
- import { L as Ce } from "./Legend-Br7MWNDo.js";
6
- import { u as Le, U as $e } from "./usePrinter-sRt2SKr2.js";
7
- import { _ as Be } from "./PackageVersion-BV3fHO46.js";
8
- import { P as Ae } from "./PenAndPaper-CCOywdmm.js";
9
- import Pe from "./vue-ui-skeleton-DjFU2X3P.js";
10
- import { _ as Fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const Se = ["id"], Ie = {
1
+ import { ref as d, computed as g, onMounted as de, watch as J, onBeforeUnmount as ge, openBlock as r, createElementBlock as n, normalizeClass as K, normalizeStyle as S, unref as u, createBlock as k, createCommentVNode as i, createSlots as fe, withCtx as w, renderSlot as y, normalizeProps as I, guardReactiveProps as H, createVNode as me, Fragment as M, renderList as T, createElementVNode as x, toDisplayString as L } from "vue";
2
+ import { u as ye, o as pe, e as Q, g as be, c as ke, l as we, D as xe, d as _e, i as $, f as B, X as Ce, t as Le } from "./index-BbPeL8Gp.js";
3
+ import { u as Z } from "./useNestedProp-BN8claGG.js";
4
+ import { _ as $e } from "./Title-aSAft5dl.js";
5
+ import { L as Be } from "./Legend-BLaZxMge.js";
6
+ import { u as Ae, U as Pe } from "./usePrinter-DaybDVqP.js";
7
+ import { _ as Oe } from "./PackageVersion-CxJghxYD.js";
8
+ import { P as Fe } from "./PenAndPaper-ZdZEumki.js";
9
+ import Se from "./vue-ui-skeleton-Bniq21d9.js";
10
+ import { u as Ie } from "./useUserOptionState-BIvW1Kz7.js";
11
+ import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
+ const Me = ["id"], Te = {
12
13
  key: 1,
13
14
  ref: "noTitle",
14
15
  class: "vue-data-ui-no-title-space",
15
16
  style: "height:36px; width: 100%;background:transparent"
16
- }, Oe = ["xmlns", "viewBox"], He = { key: 0 }, Te = ["x", "y", "height", "width", "fill", "stroke"], Ne = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ze = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Me = ["x", "y", "font-size", "font-weight", "fill"], Ue = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], We = { key: 3 }, Ee = ["x", "y", "fill", "font-size", "font-weight"], De = { key: 4 }, Re = ["x1", "x2", "y1", "y2", "stroke"], Ge = {
17
+ }, Ue = ["xmlns", "viewBox"], Ne = { key: 0 }, ze = ["x", "y", "height", "width", "fill", "stroke"], We = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ee = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], De = ["x", "y", "font-size", "font-weight", "fill"], Re = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ve = { key: 3 }, Ge = ["x", "y", "fill", "font-size", "font-weight"], je = { key: 4 }, qe = ["x1", "x2", "y1", "y2", "stroke"], Xe = {
17
18
  key: 5,
18
19
  class: "vue-data-ui-watermark"
19
- }, je = {
20
+ }, Ye = {
20
21
  class: "vue-ui-bullet-legend-item",
21
22
  dir: "auto"
22
- }, Ve = { style: { "margin-right": "2px" } }, qe = {
23
+ }, Je = { style: { "margin-right": "2px" } }, Ke = {
23
24
  key: 7,
24
25
  ref: "source",
25
26
  dir: "auto"
26
- }, Xe = {
27
+ }, Qe = {
27
28
  __name: "vue-ui-bullet",
28
29
  props: {
29
30
  config: {
@@ -39,8 +40,8 @@ const Se = ["id"], Ie = {
39
40
  }
40
41
  }
41
42
  },
42
- setup(K, { expose: Q }) {
43
- const o = K, { vue_ui_bullet: Z } = ge(), A = d(null), ee = d(null), N = d(0), te = d(null), ae = d(0), f = g({
43
+ setup(ee, { expose: te }) {
44
+ const o = ee, { vue_ui_bullet: ae } = ye(), A = d(null), le = d(null), U = d(0), se = d(null), re = d(0), f = g({
44
45
  get: () => o.dataset.hasOwnProperty("value"),
45
46
  set: (t) => t
46
47
  }), p = g(() => o.dataset.segments ? Array.isArray(o.dataset.segments) ? o.dataset.segments.length ? !0 : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
@@ -77,111 +78,111 @@ segments: [
77
78
  {...}
78
79
  ]
79
80
  `), f.value = !1, !1));
80
- ce(z);
81
- function z() {
82
- fe(o.dataset) ? Y({
81
+ de(N);
82
+ function N() {
83
+ pe(o.dataset) ? Q({
83
84
  componentName: "VueUiBullet",
84
85
  type: "dataset"
85
86
  }) : p.value ? o.dataset.segments.forEach((t, s) => {
86
- me({
87
+ be({
87
88
  datasetObject: t,
88
89
  requiredAttributes: ["name", "from", "to"]
89
90
  }).forEach((a) => {
90
- f.value = !1, Y({
91
+ f.value = !1, Q({
91
92
  componentName: "VueUiBullet segment",
92
93
  type: "datasetSerieAttribute",
93
94
  property: a,
94
95
  index: s
95
96
  });
96
97
  });
97
- }) : f.value = !1, e.value.style.chart.animation.show && W(o.dataset.value || 0);
98
+ }) : f.value = !1, e.value.style.chart.animation.show && V(o.dataset.value || 0);
98
99
  }
99
- const P = d(ye());
100
- function M() {
101
- const t = J({
100
+ const P = d(ke());
101
+ function z() {
102
+ const t = Z({
102
103
  userConfig: o.config,
103
- defaultConfig: Z
104
+ defaultConfig: ae
104
105
  });
105
106
  return t.theme ? {
106
- ...J({
107
- userConfig: xe.vue_ui_bullet[t.theme] || o.config,
107
+ ...Z({
108
+ userConfig: Le.vue_ui_bullet[t.theme] || o.config,
108
109
  defaultConfig: t
109
110
  })
110
111
  } : t;
111
112
  }
112
113
  const e = g({
113
- get: () => M(),
114
+ get: () => z(),
114
115
  set: (t) => t
115
- });
116
- V(() => o.config, (t) => {
117
- e.value = M(), z(), N.value += 1;
116
+ }), { userOptionsVisible: W, setUserOptionsVisibility: E, keepUserOptionState: D } = Ie({ config: e.value });
117
+ J(() => o.config, (t) => {
118
+ e.value = z(), N(), U.value += 1;
118
119
  }, { deep: !0 });
119
120
  const l = g(() => {
120
- const t = e.value.style.chart.height, s = e.value.style.chart.width, a = e.value.style.chart.padding.left, m = s - e.value.style.chart.padding.right, C = e.value.style.chart.padding.top, h = t - e.value.style.chart.padding.bottom;
121
+ const t = e.value.style.chart.height, s = e.value.style.chart.width, a = e.value.style.chart.padding.left, m = s - e.value.style.chart.padding.right, C = e.value.style.chart.padding.top, v = t - e.value.style.chart.padding.bottom;
121
122
  return {
122
123
  height: t,
123
124
  width: s,
124
125
  left: a,
125
126
  right: m,
126
127
  top: C,
127
- bottom: h,
128
+ bottom: v,
128
129
  chartWidth: m - a,
129
- chartHeight: h - C
130
+ chartHeight: v - C
130
131
  };
131
- }), le = g(() => {
132
+ }), oe = g(() => {
132
133
  if (!p.value) return [];
133
134
  const t = [];
134
135
  for (let s = 0; s < o.dataset.segments.length; s += 1)
135
- t.push(pe(e.value.style.chart.segments.baseColor, s / o.dataset.segments.length));
136
+ t.push(we(e.value.style.chart.segments.baseColor, s / o.dataset.segments.length));
136
137
  return t;
137
- }), F = g(() => p.value ? {
138
+ }), O = g(() => p.value ? {
138
139
  min: Math.min(...o.dataset.segments.map((t) => t.from)),
139
140
  max: Math.max(...o.dataset.segments.map((t) => t.to))
140
- } : { min: 0, max: 1 }), i = d(se());
141
- V(() => o.dataset, (t) => {
142
- e.value.style.chart.animation.show ? W(t.value || 0) : i.value = t.value || 0;
141
+ } : { min: 0, max: 1 }), c = d(ne());
142
+ J(() => o.dataset, (t) => {
143
+ e.value.style.chart.animation.show ? V(t.value || 0) : c.value = t.value || 0;
143
144
  }, { deep: !0 });
144
- function se() {
145
- return e.value.style.chart.animation.show ? F.value.min : o.dataset.value || 0;
145
+ function ne() {
146
+ return e.value.style.chart.animation.show ? O.value.min : o.dataset.value || 0;
146
147
  }
147
- const U = d(null);
148
- function W(t) {
149
- const s = Math.abs(t - i.value) / e.value.style.chart.animation.animationFrames;
148
+ const R = d(null);
149
+ function V(t) {
150
+ const s = Math.abs(t - c.value) / e.value.style.chart.animation.animationFrames;
150
151
  function a() {
151
- i.value < t ? i.value = Math.min(i.value + s, t) : i.value > t && (i.value = Math.max(i.value - s, t)), i.value !== t && (U.value = requestAnimationFrame(a));
152
+ c.value < t ? c.value = Math.min(c.value + s, t) : c.value > t && (c.value = Math.max(c.value - s, t)), c.value !== t && (R.value = requestAnimationFrame(a));
152
153
  }
153
154
  a();
154
155
  }
155
- he(() => {
156
- cancelAnimationFrame(U.value);
156
+ ge(() => {
157
+ cancelAnimationFrame(R.value);
157
158
  });
158
- const c = g(() => {
159
+ const h = g(() => {
159
160
  if (!p.value)
160
161
  return [];
161
- const t = be(F.value.min, F.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
162
+ const t = xe(O.value.min, O.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
162
163
  x: l.value.left + (o.dataset.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
163
164
  }, m = {
164
- width: (i.value + s) / (t.max + s) * l.value.chartWidth
165
- }, C = t.ticks.map((h) => ({
166
- value: h,
165
+ width: (c.value + s) / (t.max + s) * l.value.chartWidth
166
+ }, C = t.ticks.map((v) => ({
167
+ value: v,
167
168
  y: l.value.bottom + e.value.style.chart.segments.dataLabels.fontSize + 3 + e.value.style.chart.segments.dataLabels.offsetY,
168
- x: l.value.left + (h + s) / (t.max + s) * l.value.chartWidth
169
+ x: l.value.left + (v + s) / (t.max + s) * l.value.chartWidth
169
170
  }));
170
171
  return {
171
172
  scale: t,
172
173
  target: a,
173
174
  value: m,
174
175
  ticks: C,
175
- chunks: o.dataset.segments.map((h, ie) => ({
176
- ...h,
177
- color: h.color ? ke(h.color) : le.value[ie],
178
- x: l.value.left + l.value.chartWidth * ((h.from + s) / (t.max + s)),
176
+ chunks: o.dataset.segments.map((v, ve) => ({
177
+ ...v,
178
+ color: v.color ? _e(v.color) : oe.value[ve],
179
+ x: l.value.left + l.value.chartWidth * ((v.from + s) / (t.max + s)),
179
180
  y: l.value.top,
180
181
  height: l.value.chartHeight,
181
- width: l.value.chartWidth * (Math.abs(h.to - h.from) / (t.max + s))
182
+ width: l.value.chartWidth * (Math.abs(v.to - v.from) / (t.max + s))
182
183
  }))
183
184
  };
184
- }), E = g(() => !c.value || !c.value.chunks || !c.value.chunks.length ? [] : c.value.chunks.map((t) => {
185
+ }), G = g(() => !h.value || !h.value.chunks || !h.value.chunks.length ? [] : h.value.chunks.map((t) => {
185
186
  const s = $(
186
187
  e.value.style.chart.segments.dataLabels.formatter,
187
188
  t.from,
@@ -206,57 +207,59 @@ segments: [
206
207
  shape: "square",
207
208
  value: `${s} - ${a}`
208
209
  };
209
- })), re = g(() => ({
210
+ })), ue = g(() => ({
210
211
  cy: "bullet-div-legend",
211
212
  backgroundColor: "transparent",
212
213
  color: e.value.style.chart.legend.color,
213
214
  fontSize: e.value.style.chart.legend.fontSize,
214
215
  paddingBottom: 6,
215
216
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
216
- })), { isPrinting: D, isImaging: R, generatePdf: G, generateImage: j } = Le({
217
+ })), { isPrinting: j, isImaging: q, generatePdf: X, generateImage: Y } = Ae({
217
218
  elementId: `bullet_${P.value}`,
218
219
  fileName: e.value.style.chart.title.text || "vue-ui-bullet"
219
- }), oe = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), b = d(!1);
220
- function ne(t) {
221
- b.value = t, ae.value += 1;
220
+ }), ie = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), b = d(!1);
221
+ function ce(t) {
222
+ b.value = t, re.value += 1;
222
223
  }
223
- function ue() {
224
- return c.value;
224
+ function he() {
225
+ return h.value;
225
226
  }
226
227
  const _ = d(!1);
227
- function S() {
228
+ function F() {
228
229
  _.value = !_.value;
229
230
  }
230
- return Q({
231
- getData: ue,
232
- generatePdf: G,
233
- generateImage: j,
234
- toggleAnnotator: S
231
+ return te({
232
+ getData: he,
233
+ generatePdf: X,
234
+ generateImage: Y,
235
+ toggleAnnotator: F
235
236
  }), (t, s) => (r(), n("div", {
236
237
  ref_key: "bulletChart",
237
238
  ref: A,
238
- class: q(`vue-ui-bullet ${b.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
239
- style: X(`font-family:${e.value.style.fontFamily};width:100%;background:${e.value.style.chart.backgroundColor}`),
240
- id: `bullet_${P.value}`
239
+ class: K(`vue-ui-bullet ${b.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
240
+ style: S(`font-family:${e.value.style.fontFamily};width:100%;background:${e.value.style.chart.backgroundColor}`),
241
+ id: `bullet_${P.value}`,
242
+ onMouseenter: s[0] || (s[0] = () => u(E)(!0)),
243
+ onMouseleave: s[1] || (s[1] = () => u(E)(!1))
241
244
  }, [
242
- e.value.userOptions.buttons.annotator ? (r(), k(Ae, {
245
+ e.value.userOptions.buttons.annotator ? (r(), k(Fe, {
243
246
  key: 0,
244
247
  parent: A.value,
245
248
  backgroundColor: e.value.style.chart.backgroundColor,
246
249
  color: e.value.style.chart.color,
247
250
  active: _.value,
248
- onClose: S
249
- }, null, 8, ["parent", "backgroundColor", "color", "active"])) : u("", !0),
250
- oe.value ? (r(), n("div", Ie, null, 512)) : u("", !0),
251
+ onClose: F
252
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : i("", !0),
253
+ ie.value ? (r(), n("div", Te, null, 512)) : i("", !0),
251
254
  e.value.style.chart.title.text ? (r(), n("div", {
252
255
  key: 2,
253
256
  ref_key: "chartTitle",
254
- ref: ee,
257
+ ref: le,
255
258
  style: "width:100%;background:transparent;"
256
259
  }, [
257
- (r(), k(_e, {
260
+ (r(), k($e, {
258
261
  lineHeight: "1.3rem",
259
- key: `title_${N.value}`,
262
+ key: `title_${U.value}`,
260
263
  config: {
261
264
  title: {
262
265
  cy: "bullet-div-title",
@@ -268,14 +271,14 @@ segments: [
268
271
  }
269
272
  }
270
273
  }, null, 8, ["config"]))
271
- ], 512)) : u("", !0),
272
- e.value.userOptions.show && f.value ? (r(), k($e, {
274
+ ], 512)) : i("", !0),
275
+ e.value.userOptions.show && f.value && (u(D) || u(W)) ? (r(), k(Pe, {
273
276
  key: 3,
274
277
  ref: "details",
275
278
  backgroundColor: e.value.style.chart.backgroundColor,
276
279
  color: e.value.style.chart.color,
277
- isPrinting: v(D),
278
- isImaging: v(R),
280
+ isPrinting: u(j),
281
+ isImaging: u(q),
279
282
  uid: P.value,
280
283
  hasTooltip: !1,
281
284
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -290,11 +293,14 @@ segments: [
290
293
  titles: { ...e.value.userOptions.buttonTitles },
291
294
  hasAnnotator: e.value.userOptions.buttons.annotator,
292
295
  isAnnotation: _.value,
293
- onToggleFullscreen: ne,
294
- onGeneratePdf: v(G),
295
- onGenerateImage: v(j),
296
- onToggleAnnotator: S
297
- }, ve({ _: 2 }, [
296
+ onToggleFullscreen: ce,
297
+ onGeneratePdf: u(X),
298
+ onGenerateImage: u(Y),
299
+ onToggleAnnotator: F,
300
+ style: S({
301
+ visibility: u(D) ? u(W) ? "visible" : "hidden" : "visible"
302
+ })
303
+ }, fe({ _: 2 }, [
298
304
  t.$slots.optionPdf ? {
299
305
  name: "optionPdf",
300
306
  fn: w(() => [
@@ -312,28 +318,28 @@ segments: [
312
318
  t.$slots.optionFullscreen ? {
313
319
  name: "optionFullscreen",
314
320
  fn: w(({ toggleFullscreen: a, isFullscreen: m }) => [
315
- y(t.$slots, "optionFullscreen", I(O({ toggleFullscreen: a, isFullscreen: m })), void 0, !0)
321
+ y(t.$slots, "optionFullscreen", I(H({ toggleFullscreen: a, isFullscreen: m })), void 0, !0)
316
322
  ]),
317
323
  key: "2"
318
324
  } : void 0,
319
325
  t.$slots.optionAnnotator ? {
320
326
  name: "optionAnnotator",
321
327
  fn: w(({ toggleAnnotator: a, isAnnotator: m }) => [
322
- y(t.$slots, "optionAnnotator", I(O({ toggleAnnotator: a, isAnnotator: m })), void 0, !0)
328
+ y(t.$slots, "optionAnnotator", I(H({ toggleAnnotator: a, isAnnotator: m })), void 0, !0)
323
329
  ]),
324
330
  key: "3"
325
331
  } : void 0
326
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : u("", !0),
332
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
327
333
  f.value ? (r(), n("svg", {
328
334
  key: 4,
329
- xmlns: v(we),
330
- class: q({ "vue-data-ui-fullscreen--on": b.value, "vue-data-ui-fulscreen--off": !b.value, "vue-ui-bullet-svg": !0 }),
335
+ xmlns: u(Ce),
336
+ class: K({ "vue-data-ui-fullscreen--on": b.value, "vue-data-ui-fulscreen--off": !b.value, "vue-ui-bullet-svg": !0 }),
331
337
  viewBox: `0 0 ${l.value.width} ${l.value.height}`,
332
- style: X(`width: 100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
338
+ style: S(`width: 100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
333
339
  }, [
334
- de(Be),
335
- p.value ? (r(), n("g", He, [
336
- (r(!0), n(H, null, T(c.value.chunks, (a) => (r(), n("rect", {
340
+ me(Oe),
341
+ p.value ? (r(), n("g", Ne, [
342
+ (r(!0), n(M, null, T(h.value.chunks, (a) => (r(), n("rect", {
337
343
  x: a.x,
338
344
  y: a.y,
339
345
  height: a.height,
@@ -341,10 +347,10 @@ segments: [
341
347
  fill: a.color,
342
348
  "stroke-width": 1,
343
349
  stroke: e.value.style.chart.backgroundColor
344
- }, null, 8, Te))), 256)),
345
- e.value.style.chart.target.onTop ? u("", !0) : (r(), n("rect", {
350
+ }, null, 8, ze))), 256)),
351
+ e.value.style.chart.target.onTop ? i("", !0) : (r(), n("rect", {
346
352
  key: 0,
347
- x: c.value.target.x,
353
+ x: h.value.target.x,
348
354
  y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
349
355
  height: l.value.chartHeight * e.value.style.chart.target.heightRatio,
350
356
  width: e.value.style.chart.target.width,
@@ -352,37 +358,37 @@ segments: [
352
358
  fill: e.value.style.chart.target.color,
353
359
  stroke: e.value.style.chart.target.stroke,
354
360
  "stroke-width": e.value.style.chart.target.strokeWidth
355
- }, null, 8, Ne)),
361
+ }, null, 8, We)),
356
362
  x("rect", {
357
363
  x: l.value.left,
358
364
  y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.valueBar.heightRatio) / 2,
359
365
  height: l.value.chartHeight * e.value.style.chart.valueBar.heightRatio,
360
- width: c.value.value.width,
366
+ width: h.value.value.width,
361
367
  fill: e.value.style.chart.valueBar.color,
362
368
  stroke: e.value.style.chart.valueBar.stroke,
363
369
  "stroke-width": e.value.style.chart.valueBar.strokeWidth
364
- }, null, 8, ze),
370
+ }, null, 8, Ee),
365
371
  e.value.style.chart.valueBar.label.show ? (r(), n("text", {
366
372
  key: 1,
367
- x: l.value.left + c.value.value.width,
373
+ x: l.value.left + h.value.value.width,
368
374
  y: l.value.top - 6 + e.value.style.chart.valueBar.label.offsetY,
369
375
  "font-size": e.value.style.chart.valueBar.label.fontSize,
370
376
  "font-weight": e.value.style.chart.valueBar.label.bold ? "bold" : "normal",
371
377
  fill: e.value.style.chart.valueBar.label.color,
372
378
  "text-anchor": "middle"
373
- }, L(v($)(
379
+ }, L(u($)(
374
380
  e.value.style.chart.segments.dataLabels.formatter,
375
- i.value,
376
- v(B)({
381
+ c.value,
382
+ u(B)({
377
383
  p: e.value.style.chart.segments.dataLabels.prefix,
378
- v: i.value,
384
+ v: c.value,
379
385
  s: e.value.style.chart.segments.dataLabels.suffix,
380
386
  r: e.value.style.chart.segments.dataLabels.rounding
381
387
  })
382
- )), 9, Me)) : u("", !0),
388
+ )), 9, De)) : i("", !0),
383
389
  e.value.style.chart.target.onTop ? (r(), n("rect", {
384
390
  key: 2,
385
- x: c.value.target.x,
391
+ x: h.value.target.x,
386
392
  y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
387
393
  height: l.value.chartHeight * e.value.style.chart.target.heightRatio,
388
394
  width: e.value.style.chart.target.width,
@@ -390,28 +396,28 @@ segments: [
390
396
  fill: e.value.style.chart.target.color,
391
397
  stroke: e.value.style.chart.target.stroke,
392
398
  "stroke-width": e.value.style.chart.target.strokeWidth
393
- }, null, 8, Ue)) : u("", !0),
394
- e.value.style.chart.segments.dataLabels.show ? (r(), n("g", We, [
395
- (r(!0), n(H, null, T(c.value.ticks, (a) => (r(), n("text", {
399
+ }, null, 8, Re)) : i("", !0),
400
+ e.value.style.chart.segments.dataLabels.show ? (r(), n("g", Ve, [
401
+ (r(!0), n(M, null, T(h.value.ticks, (a) => (r(), n("text", {
396
402
  x: a.x,
397
403
  y: a.y,
398
404
  "text-anchor": "middle",
399
405
  fill: e.value.style.chart.segments.dataLabels.color,
400
406
  "font-size": e.value.style.chart.segments.dataLabels.fontSize + "px",
401
407
  "font-weight": e.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
402
- }, L(v($)(
408
+ }, L(u($)(
403
409
  e.value.style.chart.segments.dataLabels.formatter,
404
410
  a.value,
405
- v(B)({
411
+ u(B)({
406
412
  p: e.value.style.chart.segments.dataLabels.prefix,
407
413
  v: a.value,
408
414
  s: e.value.style.chart.segments.dataLabels.suffix,
409
415
  r: e.value.style.chart.segments.dataLabels.rounding
410
416
  })
411
- )), 9, Ee))), 256))
412
- ])) : u("", !0),
413
- e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (r(), n("g", De, [
414
- (r(!0), n(H, null, T(c.value.ticks, (a) => (r(), n("line", {
417
+ )), 9, Ge))), 256))
418
+ ])) : i("", !0),
419
+ e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (r(), n("g", je, [
420
+ (r(!0), n(M, null, T(h.value.ticks, (a) => (r(), n("line", {
415
421
  x1: a.x,
416
422
  x2: a.x,
417
423
  y1: l.value.bottom,
@@ -419,15 +425,15 @@ segments: [
419
425
  stroke: e.value.style.chart.segments.ticks.stroke,
420
426
  "stroke-width": 1,
421
427
  "stroke-linecap": "round"
422
- }, null, 8, Re))), 256))
423
- ])) : u("", !0)
424
- ])) : u("", !0),
428
+ }, null, 8, qe))), 256))
429
+ ])) : i("", !0)
430
+ ])) : i("", !0),
425
431
  y(t.$slots, "svg", { svg: l.value }, void 0, !0)
426
- ], 14, Oe)) : u("", !0),
427
- t.$slots.watermark ? (r(), n("div", Ge, [
428
- y(t.$slots, "watermark", I(O({ isPrinting: v(D) || v(R) })), void 0, !0)
429
- ])) : u("", !0),
430
- f.value ? u("", !0) : (r(), k(Pe, {
432
+ ], 14, Ue)) : i("", !0),
433
+ t.$slots.watermark ? (r(), n("div", Xe, [
434
+ y(t.$slots, "watermark", I(H({ isPrinting: u(j) || u(q) })), void 0, !0)
435
+ ])) : i("", !0),
436
+ f.value ? i("", !0) : (r(), k(Se, {
431
437
  key: 6,
432
438
  config: {
433
439
  type: "bullet",
@@ -441,30 +447,30 @@ segments: [
441
447
  }, null, 8, ["config"])),
442
448
  x("div", {
443
449
  ref_key: "chartLegend",
444
- ref: te
450
+ ref: se
445
451
  }, [
446
- e.value.style.chart.legend.show ? (r(), k(Ce, {
452
+ e.value.style.chart.legend.show ? (r(), k(Be, {
447
453
  key: 0,
448
454
  clickable: !1,
449
- legendSet: E.value,
450
- config: re.value
455
+ legendSet: G.value,
456
+ config: ue.value
451
457
  }, {
452
458
  item: w(({ legend: a }) => [
453
- x("div", je, [
454
- x("span", Ve, L(a.name) + ":", 1),
459
+ x("div", Ye, [
460
+ x("span", Je, L(a.name) + ":", 1),
455
461
  x("span", null, L(a.value), 1)
456
462
  ])
457
463
  ]),
458
464
  _: 1
459
- }, 8, ["legendSet", "config"])) : u("", !0),
460
- y(t.$slots, "legend", { legend: E.value }, void 0, !0)
465
+ }, 8, ["legendSet", "config"])) : i("", !0),
466
+ y(t.$slots, "legend", { legend: G.value }, void 0, !0)
461
467
  ], 512),
462
- t.$slots.source ? (r(), n("div", qe, [
468
+ t.$slots.source ? (r(), n("div", Ke, [
463
469
  y(t.$slots, "source", {}, void 0, !0)
464
- ], 512)) : u("", !0)
465
- ], 14, Se));
470
+ ], 512)) : i("", !0)
471
+ ], 46, Me));
466
472
  }
467
- }, rt = /* @__PURE__ */ Fe(Xe, [["__scopeId", "data-v-cfe188c3"]]);
473
+ }, ct = /* @__PURE__ */ He(Qe, [["__scopeId", "data-v-cd9011ec"]]);
468
474
  export {
469
- rt as default
475
+ ct as default
470
476
  };