vue-data-ui 2.4.64 → 2.4.66

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 (164) hide show
  1. package/README.md +66 -34
  2. package/dist/{Arrow-DSkIkWAr.cjs → Arrow-CinoagyA.cjs} +1 -1
  3. package/dist/{Arrow-CRM8J83L.js → Arrow-DnHGHQq6.js} +1 -1
  4. package/dist/{BaseIcon-Axko0XAg.js → BaseIcon-BL0i0eFe.js} +1 -1
  5. package/dist/{BaseIcon-D13bKBUN.cjs → BaseIcon-DDhFGhji.cjs} +1 -1
  6. package/dist/{DataTable-B2hVpPSW.js → DataTable-CrQ-j4UZ.js} +2 -2
  7. package/dist/{DataTable-DnrSae6c.cjs → DataTable-CrU6NsnZ.cjs} +1 -1
  8. package/dist/Legend-B05Ec_1l.js +70 -0
  9. package/dist/Legend-CpC2khOT.cjs +1 -0
  10. package/dist/{PackageVersion-FzHnQSp-.cjs → PackageVersion-BTEZS-AO.cjs} +1 -1
  11. package/dist/{PackageVersion-B684aQUP.js → PackageVersion-yUQtXKwp.js} +1 -1
  12. package/dist/{PenAndPaper-C6I0ckZw.cjs → PenAndPaper-BaKbiNrh.cjs} +1 -1
  13. package/dist/{PenAndPaper-mC0kh-S8.js → PenAndPaper-CYyJrFfM.js} +3 -3
  14. package/dist/{Shape-DbnYh6z4.js → Shape-BpLTlC_C.js} +1 -1
  15. package/dist/{Shape-eJUVLesM.cjs → Shape-CDFEALe-.cjs} +1 -1
  16. package/dist/{Slicer-C9bF7-B-.cjs → Slicer-8RJ40s0G.cjs} +1 -1
  17. package/dist/{Slicer-BBolqweG.js → Slicer-C4sOxE_0.js} +2 -2
  18. package/dist/{Title-DuMgnso9.cjs → Title-BAqipUCK.cjs} +1 -1
  19. package/dist/{Title-DqZErnpZ.js → Title-DzwQyxHK.js} +1 -1
  20. package/dist/{Tooltip-Cz3eQmMV.cjs → Tooltip-Bg6dUJYI.cjs} +1 -1
  21. package/dist/{Tooltip-DddRc8qD.js → Tooltip-zI1jiDe6.js} +1 -1
  22. package/dist/documentation/installation.md +34 -34
  23. package/dist/{index-DjTPIx3R.js → index-CTPLFZB1.js} +398 -393
  24. package/dist/{index-D-xYtUSL.cjs → index-D34VnlKo.cjs} +5 -5
  25. package/dist/style.css +1 -1
  26. package/dist/{useNestedProp-BNmCbG1v.js → useNestedProp-CYQCqGyq.js} +1 -1
  27. package/dist/{useNestedProp-BN-VfUfj.cjs → useNestedProp-DQqkm_M2.cjs} +1 -1
  28. package/dist/{usePrinter-BFF1xn1s.js → usePrinter-BOhLGHKi.js} +1 -1
  29. package/dist/{usePrinter-pT-a_sFr.cjs → usePrinter-VZV9i0vE.cjs} +1 -1
  30. package/dist/{vue-data-ui-rWaUsffe.cjs → vue-data-ui--K40HoWH.cjs} +1 -1
  31. package/dist/{vue-data-ui-CPMtS74M.js → vue-data-ui-C2oB3zqB.js} +60 -60
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +9 -9
  34. package/dist/{vue-ui-3d-bar-Cpx0rTUr.js → vue-ui-3d-bar-Bia0XepA.js} +9 -9
  35. package/dist/{vue-ui-3d-bar-CxcO1rW_.cjs → vue-ui-3d-bar-DMJ8_prS.cjs} +1 -1
  36. package/dist/{vue-ui-accordion-B1MkyNta.cjs → vue-ui-accordion-CB-ii53-.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-CDTXGeL0.js → vue-ui-accordion-DLo-MS7a.js} +3 -3
  38. package/dist/{vue-ui-age-pyramid-CEvYSZnY.cjs → vue-ui-age-pyramid-BsCRCTkU.cjs} +1 -1
  39. package/dist/{vue-ui-age-pyramid-CSwlc2bd.js → vue-ui-age-pyramid-SRYqnWde.js} +10 -10
  40. package/dist/{vue-ui-annotator-D5dS0BTP.js → vue-ui-annotator-CMEi2CeL.js} +1 -1
  41. package/dist/{vue-ui-annotator-BUoz1Y87.cjs → vue-ui-annotator-CRyAG0LO.cjs} +1 -1
  42. package/dist/{vue-ui-bullet-Bcx-V2GQ.cjs → vue-ui-bullet-DMqGu5l7.cjs} +1 -1
  43. package/dist/{vue-ui-bullet-RDyK79l0.js → vue-ui-bullet-gH7JdVPs.js} +8 -8
  44. package/dist/{vue-ui-candlestick-CkjNRVDz.cjs → vue-ui-candlestick-DdRk6RyV.cjs} +1 -1
  45. package/dist/{vue-ui-candlestick-s-Z42Lns.js → vue-ui-candlestick-DvXyfStN.js} +11 -11
  46. package/dist/{vue-ui-carousel-table-CoLBbF34.cjs → vue-ui-carousel-table-D8qRz5dB.cjs} +1 -1
  47. package/dist/{vue-ui-carousel-table-DJNIAgAU.js → vue-ui-carousel-table-DV4mDEda.js} +4 -4
  48. package/dist/{vue-ui-chestnut-_90914ye.js → vue-ui-chestnut--47-80Bn.js} +8 -8
  49. package/dist/{vue-ui-chestnut-P1hAffNt.cjs → vue-ui-chestnut-BgIxc4rY.cjs} +1 -1
  50. package/dist/{vue-ui-cursor-BoGnTfem.cjs → vue-ui-cursor-BkwiaFRC.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-Doo6HM0B.js → vue-ui-cursor-ktnsEEbG.js} +2 -2
  52. package/dist/{vue-ui-dashboard-BZKKb8cZ.js → vue-ui-dashboard-CLfGxnbt.js} +2 -2
  53. package/dist/{vue-ui-dashboard-mC_BLuIN.cjs → vue-ui-dashboard-DwXOmsTy.cjs} +1 -1
  54. package/dist/{vue-ui-digits-DFwg7Et3.cjs → vue-ui-digits-2fdBtEvo.cjs} +1 -1
  55. package/dist/{vue-ui-digits-Z8AprQhX.js → vue-ui-digits-BZ1j5jy-.js} +2 -2
  56. package/dist/vue-ui-donut-CXumbWa-.cjs +1 -0
  57. package/dist/vue-ui-donut-CbLrJw6j.js +1173 -0
  58. package/dist/{vue-ui-donut-evolution-CK_0JI6T.js → vue-ui-donut-evolution-C6E6ex_P.js} +11 -11
  59. package/dist/{vue-ui-donut-evolution-D-6gM9JV.cjs → vue-ui-donut-evolution-D9b_8fvQ.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-C4y9e7Gz.js → vue-ui-dumbbell-Bw22lnUz.js} +10 -10
  61. package/dist/{vue-ui-dumbbell-DS_3Z5cT.cjs → vue-ui-dumbbell-yo3qeSim.cjs} +1 -1
  62. package/dist/{vue-ui-flow-XrJvcKqr.js → vue-ui-flow-4QNqMDZQ.js} +9 -9
  63. package/dist/{vue-ui-flow-C2sVVaok.cjs → vue-ui-flow-DWasFCLd.cjs} +1 -1
  64. package/dist/{vue-ui-funnel-CHhVPjnM.js → vue-ui-funnel-DkTmYwFz.js} +9 -9
  65. package/dist/{vue-ui-funnel-DxhsOEbU.cjs → vue-ui-funnel-yhpp5IjE.cjs} +1 -1
  66. package/dist/{vue-ui-galaxy-Bd8p21nC.js → vue-ui-galaxy-DmWcHtQs.js} +11 -11
  67. package/dist/{vue-ui-galaxy-CRsan4r5.cjs → vue-ui-galaxy-LZr-E91c.cjs} +1 -1
  68. package/dist/vue-ui-gauge-ClNvXC3Q.cjs +1 -0
  69. package/dist/{vue-ui-gauge-B-nOtSwD.js → vue-ui-gauge-DFDkLgtH.js} +236 -224
  70. package/dist/{vue-ui-gizmo-C3GRBcSW.cjs → vue-ui-gizmo-D-96qCuO.cjs} +1 -1
  71. package/dist/{vue-ui-gizmo-tQNlhr2p.js → vue-ui-gizmo-Dp6JyPHC.js} +3 -3
  72. package/dist/{vue-ui-heatmap-DwalrFVm.cjs → vue-ui-heatmap-BdT2qDhu.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-6MpvCBmt.js → vue-ui-heatmap-C28SIiux.js} +10 -10
  74. package/dist/{vue-ui-history-plot-Hk-UrZtS.js → vue-ui-history-plot-BXolBuor.js} +11 -11
  75. package/dist/{vue-ui-history-plot-FgapeA0e.cjs → vue-ui-history-plot-CiIq7L89.cjs} +1 -1
  76. package/dist/{vue-ui-kpi-CKZQsJnV.cjs → vue-ui-kpi-Cp52wvwz.cjs} +1 -1
  77. package/dist/{vue-ui-kpi-DrCH9EuP.js → vue-ui-kpi-nnH0NlWt.js} +3 -3
  78. package/dist/{vue-ui-mini-loader-BLvcc-fM.js → vue-ui-mini-loader-Bxpax8Nj.js} +2 -2
  79. package/dist/{vue-ui-mini-loader-BSKXq7CA.cjs → vue-ui-mini-loader-Cl9GjcDo.cjs} +1 -1
  80. package/dist/{vue-ui-molecule-Ch4_SJxL.js → vue-ui-molecule-CnCjuJu1.js} +11 -11
  81. package/dist/{vue-ui-molecule-D0IHSilQ.cjs → vue-ui-molecule-DfD1wEDy.cjs} +1 -1
  82. package/dist/{vue-ui-mood-radar-Gv0k1T46.js → vue-ui-mood-radar-CDOq4EXn.js} +11 -11
  83. package/dist/{vue-ui-mood-radar-DNPseOpJ.cjs → vue-ui-mood-radar-RPgRutQv.cjs} +1 -1
  84. package/dist/{vue-ui-nested-donuts-QOvJJc30.cjs → vue-ui-nested-donuts-BAKBPN7A.cjs} +1 -1
  85. package/dist/{vue-ui-nested-donuts-DY8Hig_-.js → vue-ui-nested-donuts-DOkP-Qof.js} +11 -11
  86. package/dist/{vue-ui-onion-Ct_1j1fA.js → vue-ui-onion-BDLsK5Yj.js} +11 -11
  87. package/dist/{vue-ui-onion-Ca0Tcbu3.cjs → vue-ui-onion-DTzZcLj-.cjs} +1 -1
  88. package/dist/{vue-ui-parallel-coordinate-plot-C_opo0qJ.cjs → vue-ui-parallel-coordinate-plot-CxQ4dMOc.cjs} +1 -1
  89. package/dist/{vue-ui-parallel-coordinate-plot-DkYcNRQk.js → vue-ui-parallel-coordinate-plot-onQ2LC2e.js} +12 -12
  90. package/dist/{vue-ui-quadrant-DwAKm2Yj.js → vue-ui-quadrant-BnpSQgPI.js} +12 -12
  91. package/dist/{vue-ui-quadrant-BJuoZ_lv.cjs → vue-ui-quadrant-DKFp_Xl5.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-D5V73GXO.js → vue-ui-quick-chart-C7yT4KRZ.js} +9 -9
  93. package/dist/{vue-ui-quick-chart-5ga8waQS.cjs → vue-ui-quick-chart-CfHuPSlh.cjs} +1 -1
  94. package/dist/{vue-ui-radar-CmE4wCWD.js → vue-ui-radar-2yAwkUX-.js} +12 -12
  95. package/dist/{vue-ui-radar-C3kzmi1G.cjs → vue-ui-radar-tWBSOOQ7.cjs} +1 -1
  96. package/dist/{vue-ui-rating-CE7LGiFS.cjs → vue-ui-rating-B6jY2NFV.cjs} +1 -1
  97. package/dist/{vue-ui-rating-SAph_BKh.js → vue-ui-rating-Bn0chVr_.js} +2 -2
  98. package/dist/{vue-ui-relation-circle-dQQw_mgd.cjs → vue-ui-relation-circle-CNQau7y6.cjs} +1 -1
  99. package/dist/{vue-ui-relation-circle-D1JdWshk.js → vue-ui-relation-circle-Cq2wrLZb.js} +7 -7
  100. package/dist/vue-ui-rings-BMSkgetK.cjs +2 -0
  101. package/dist/vue-ui-rings-Z61TsIO0.js +666 -0
  102. package/dist/{vue-ui-scatter-BrOg2xiN.cjs → vue-ui-scatter-CZTHchb5.cjs} +1 -1
  103. package/dist/{vue-ui-scatter-DE4X0DQI.js → vue-ui-scatter-Cd9d2gvB.js} +36 -36
  104. package/dist/{vue-ui-screenshot-BXq82cfA.cjs → vue-ui-screenshot--BsSpFoM.cjs} +1 -1
  105. package/dist/{vue-ui-screenshot-CyWEEkg_.js → vue-ui-screenshot-Dzex21Ck.js} +1 -1
  106. package/dist/{vue-ui-skeleton-D3zg7qd2.cjs → vue-ui-skeleton-CN5Eejtd.cjs} +1 -1
  107. package/dist/{vue-ui-skeleton-Dt9cA-wa.js → vue-ui-skeleton-D2SlwBer.js} +3 -3
  108. package/dist/{vue-ui-smiley-FUNmIUpN.cjs → vue-ui-smiley-BwXqK-x4.cjs} +1 -1
  109. package/dist/{vue-ui-smiley-uRlPgN-A.js → vue-ui-smiley-CqEd1qeu.js} +2 -2
  110. package/dist/{vue-ui-spark-trend-5KFnHsjs.js → vue-ui-spark-trend-BrEWsDTR.js} +13 -13
  111. package/dist/{vue-ui-spark-trend-DYXJMJLz.cjs → vue-ui-spark-trend-C37XHHpt.cjs} +1 -1
  112. package/dist/{vue-ui-sparkbar-D-Yk9z4E.js → vue-ui-sparkbar-Dkn9l6Iv.js} +4 -4
  113. package/dist/{vue-ui-sparkbar-BUg0DhGI.cjs → vue-ui-sparkbar-pOZ6cirK.cjs} +1 -1
  114. package/dist/{vue-ui-sparkgauge-DvDPPyau.cjs → vue-ui-sparkgauge-BUFLskBw.cjs} +1 -1
  115. package/dist/{vue-ui-sparkgauge-DVLZofTg.js → vue-ui-sparkgauge-FqKAu1Qk.js} +4 -4
  116. package/dist/{vue-ui-sparkhistogram-Dqgl_5RN.js → vue-ui-sparkhistogram-C1Rg7R7q.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram-GMZxK2oC.cjs → vue-ui-sparkhistogram-CDna0c0K.cjs} +1 -1
  118. package/dist/{vue-ui-sparkline-CPEHgvq0.js → vue-ui-sparkline-BoQGdcb-.js} +92 -92
  119. package/dist/{vue-ui-sparkline-C96IUWwW.cjs → vue-ui-sparkline-C4Y11Y9_.cjs} +1 -1
  120. package/dist/{vue-ui-sparkstackbar-DCceVnjJ.js → vue-ui-sparkstackbar-CttAiR_w.js} +5 -5
  121. package/dist/{vue-ui-sparkstackbar-BroOR6B-.cjs → vue-ui-sparkstackbar-DBudhYEs.cjs} +1 -1
  122. package/dist/vue-ui-stackbar-BOtbKiIU.js +1114 -0
  123. package/dist/vue-ui-stackbar-DRcXZyiM.cjs +6 -0
  124. package/dist/{vue-ui-strip-plot-BYO72loZ.cjs → vue-ui-strip-plot-B_jvu-0j.cjs} +1 -1
  125. package/dist/{vue-ui-strip-plot-CJxPAY9n.js → vue-ui-strip-plot-DlHIASsp.js} +11 -11
  126. package/dist/{vue-ui-table-BTuCiJb7.cjs → vue-ui-table-CaoW2jvO.cjs} +1 -1
  127. package/dist/{vue-ui-table-DKoRX7gX.js → vue-ui-table-fubeSxgu.js} +1 -1
  128. package/dist/{vue-ui-table-heatmap-L3Pg7wC0.cjs → vue-ui-table-heatmap-BJkfwCpI.cjs} +1 -1
  129. package/dist/{vue-ui-table-heatmap-4RZ4Bo12.js → vue-ui-table-heatmap-Cua4Oc1y.js} +14 -14
  130. package/dist/{vue-ui-table-sparkline-GaHw2cTh.cjs → vue-ui-table-sparkline-DolwHxoq.cjs} +1 -1
  131. package/dist/{vue-ui-table-sparkline-CVWPCRfz.js → vue-ui-table-sparkline-UimVaB_H.js} +5 -5
  132. package/dist/{vue-ui-thermometer-BFqURwxY.js → vue-ui-thermometer-C__SODnz.js} +7 -7
  133. package/dist/{vue-ui-thermometer-VC967j2q.cjs → vue-ui-thermometer-DJaHNf4v.cjs} +1 -1
  134. package/dist/{vue-ui-timer-mPQTAvi1.js → vue-ui-timer-CkQvP03G.js} +5 -5
  135. package/dist/{vue-ui-timer-Bou1Zg22.cjs → vue-ui-timer-DZZmMPv3.cjs} +1 -1
  136. package/dist/{vue-ui-tiremarks-DyEXFKpK.js → vue-ui-tiremarks-8liLSEKo.js} +7 -7
  137. package/dist/{vue-ui-tiremarks-ClzgPlHg.cjs → vue-ui-tiremarks-z5y9Zy-r.cjs} +1 -1
  138. package/dist/{vue-ui-treemap-pCrT4KlF.js → vue-ui-treemap-CeMceJLe.js} +11 -11
  139. package/dist/{vue-ui-treemap-DEUSAGw0.cjs → vue-ui-treemap-DG7Wnka3.cjs} +1 -1
  140. package/dist/vue-ui-vertical-bar-D6xUSkRV.js +936 -0
  141. package/dist/vue-ui-vertical-bar-oP2y79gc.cjs +4 -0
  142. package/dist/{vue-ui-waffle-DkHP1plA.js → vue-ui-waffle-BZqIeeRs.js} +11 -11
  143. package/dist/{vue-ui-waffle-DjcwBxNh.cjs → vue-ui-waffle-DZOSpIFQ.cjs} +1 -1
  144. package/dist/{vue-ui-wheel-L8vxpKcv.js → vue-ui-wheel-B01XDoES.js} +7 -7
  145. package/dist/{vue-ui-wheel-Y2Sny-6a.cjs → vue-ui-wheel-KMHJl6y4.cjs} +1 -1
  146. package/dist/{vue-ui-word-cloud-B9UJmesc.cjs → vue-ui-word-cloud-BR-0V6pW.cjs} +1 -1
  147. package/dist/{vue-ui-word-cloud-DIBB7HIj.js → vue-ui-word-cloud-DEUmMqMx.js} +10 -10
  148. package/dist/{vue-ui-xy-QmsiPNcv.js → vue-ui-xy-B6CWNQY7.js} +866 -819
  149. package/dist/vue-ui-xy-DvPWUcZ3.cjs +3 -0
  150. package/dist/{vue-ui-xy-canvas-CeKH8VIR.js → vue-ui-xy-canvas-BvBsQaxo.js} +31 -31
  151. package/dist/{vue-ui-xy-canvas-2aqG9yv5.cjs → vue-ui-xy-canvas-CCk1oOD_.cjs} +1 -1
  152. package/package.json +1 -1
  153. package/dist/Legend-CzY3Yhr8.js +0 -68
  154. package/dist/Legend-DIfEhYtz.cjs +0 -1
  155. package/dist/vue-ui-donut-C6i_KVvc.js +0 -1122
  156. package/dist/vue-ui-donut-uH8SS5Ms.cjs +0 -1
  157. package/dist/vue-ui-gauge-D0Mk9_aI.cjs +0 -1
  158. package/dist/vue-ui-rings-C-7vrgjN.js +0 -628
  159. package/dist/vue-ui-rings-kFhuaBvY.cjs +0 -2
  160. package/dist/vue-ui-stackbar-Bv7RiRae.cjs +0 -6
  161. package/dist/vue-ui-stackbar-KznnSCkj.js +0 -1061
  162. package/dist/vue-ui-vertical-bar-DxkQK0tN.cjs +0 -4
  163. package/dist/vue-ui-vertical-bar-QF9epdei.js +0 -888
  164. package/dist/vue-ui-xy-DwidR-Vl.cjs +0 -3
@@ -1,4 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-D-xYtUSL.cjs"),pe=require("./useResponsive-BJ7DTGpm.cjs"),Pe=require("./Title-DuMgnso9.cjs"),ye=require("./usePrinter-pT-a_sFr.cjs"),ze=require("./Tooltip-Cz3eQmMV.cjs"),ge=require("./Legend-DIfEhYtz.cjs"),De=require("./vue-ui-skeleton-D3zg7qd2.cjs"),Oe=require("./BaseIcon-D13bKBUN.cjs"),Fe=require("./vue-ui-accordion-B1MkyNta.cjs"),fe=require("./useNestedProp-BN-VfUfj.cjs"),Me=require("./PackageVersion-FzHnQSp-.cjs"),Ie=require("./PenAndPaper-C6I0ckZw.cjs"),Ae=require("./useUserOptionState-BgepsfED.cjs"),Re=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),qe=["id"],He=["onClick"],Ue=["xmlns","viewBox"],Xe=["width","height"],je=["id"],Ge=["stop-color"],We=["stop-color"],Ye=["x","y","width","height","fill","rx"],Ke=["x","y","width","height","fill","rx","stroke","stroke-width"],Je=["x2","y1","y2","stroke","stroke-width"],Qe=["x1","x2","y1","y2","stroke","stroke-width"],Ze=["x","y","text-anchor","font-size","fill","font-weight"],et=["x","y","font-size","fill","font-weight"],tt=["x","y","font-size","fill","font-weight"],lt=["x","y","font-size","fill","font-weight"],at=["y","width","height","fill","onMouseenter"],ot={key:6,class:"vue-data-ui-watermark"},nt=["onClick"],rt={style:"width:100%;padding-top: 36px;position:relative"},ut={class:"vue-ui-data-table"},st={key:0},it={style:{width:"100%"}},ct=["data-cell"],dt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},vt=["data-cell"],ht={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},pt=["data-cell"],yt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},gt=["data-cell"],ft={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},bt=["data-cell"],mt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},kt=["data-cell"],Ct={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},_t=["data-cell"],xt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Nt={__name:"vue-ui-vertical-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(be,{expose:me,emit:ke}){const y=be;e.useCssVars(l=>({"3aac6a71":l.tdo}));const{vue_ui_vertical_bar:Ce}=n.useConfig(),B=e.computed(()=>!!y.dataset&&y.dataset.length),C=e.ref(n.createUid()),_e=e.ref(null),D=e.ref(!1),O=e.ref(""),E=e.ref(0),xe=e.ref(null),H=e.ref(0),N=e.ref(null),U=e.ref(null),F=e.ref(null),X=e.ref(null),j=e.ref(null),G=e.ref(0),M=e.ref(0),t=e.computed({get:()=>K(),set:l=>l}),{userOptionsVisible:I,setUserOptionsVisibility:W,keepUserOptionState:Y}=Ae.useUserOptionState({config:t.value});function K(){const l=fe.useNestedProp({userConfig:y.config,defaultConfig:Ce});return l.theme?{...fe.useNestedProp({userConfig:n.themes.vue_ui_vertical_bar[l.theme]||y.config,defaultConfig:l}),customPalette:n.themePalettes[l.theme]||n.palette}:l}e.watch(()=>y.config,l=>{t.value=K(),I.value=!t.value.showOnChartHover,oe(),G.value+=1,M.value+=1,s.value=t.value.style.chart.layout.bars.height,d.value=t.value.style.chart.layout.bars.gap},{deep:!0}),e.watch(()=>y.dataset,P,{deep:!0});const{isPrinting:J,isImaging:Q,generatePdf:Z,generateImage:ee}=ye.usePrinter({elementId:`vue-ui-vertical-bar_${C.value}`,fileName:t.value.style.chart.title.text||"vue-ui-vertical-bar"}),Ne=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),te=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),le=e.ref(null),ae=e.ref(!1),we=e.computed(()=>t.value.table.responsiveBreakpoint),L=e.ref(null);e.onMounted(()=>{oe()});function oe(){if(n.objectIsEmpty(y.dataset)&&n.error({componentName:"VueUiVerticalBar",type:"dataset"}),E.value=y.dataset.flatMap(l=>l.children&&l.children.length>0?l.children.length:1).reduce((l,o)=>l+o,0),$e(),t.value.responsive){const l=pe.throttle(()=>{const{width:o,height:a}=pe.useResponsive({chart:N.value,title:t.value.style.chart.title.text?U.value:null,legend:t.value.style.chart.legend.show?F.value:null,source:X.value,noTitle:j.value});ue.value=o,s.value=a/E.value-d.value*2});L.value=new ResizeObserver(l),L.value.observe(N.value.parentNode)}}e.onBeforeUnmount(()=>{L.value&&L.value.disconnect()});function $e(){new ResizeObserver(o=>{o.forEach(a=>{ae.value=a.contentRect.width<we.value})}).observe(le.value)}const p=e.ref({showTable:t.value.table.show,sortDesc:t.value.style.chart.layout.bars.sort==="desc",showTooltip:t.value.style.chart.tooltip.show}),ne=e.computed(()=>p.value.sortDesc),_=e.computed(()=>(y.dataset.forEach((l,o)=>{!l.value&&!l.children&&n.error({componentName:"VueUiVerticalBar",type:"datasetAttributeEmpty",property:`value (index ${o})`}),l.children&&(n.objectIsEmpty(l.children)?n.error({componentName:"VueUiVerticalBar",type:"datasetAttributeEmpty",property:`children (index ${o})`}):l.children.forEach((a,r)=>{[null,void 0].includes(a.name)&&n.error({componentName:"VueUiVerticalBar",type:"datasetSerieAttribute",property:"name",key:"children",index:r})}))}),y.dataset.map((l,o)=>{const a=`vertical_parent_${o}_${C.value}`,r=l.children&&l.children.length>0,v=n.checkNaN(l.value?l.value:r?l.children.map(h=>h.value||0).reduce((h,m)=>h+m,0):0),c=v>=0?1:-1;return{...l,id:a,shape:"square",opacity:f.value.includes(a)?.5:1,value:Math.abs(v),sign:c,hasChildren:r,isChild:!1,segregate:()=>V(a),isSegregated:f.value.includes(a),color:n.convertColorToHex(l.color)||te.value[o]||n.palette[o]||n.palette[o%n.palette.length],children:!l.children||!l.children.length?[]:l.children.toSorted((h,m)=>ne.value?m.value-h.value:h.value-m.value).map((h,m)=>({...h,value:n.checkNaN(Math.abs(h.value)),sign:h.value>=0?1:-1,isChild:!0,parentId:a,parentName:l.name,parentValue:v,parentSign:c,id:`vertical_child_${o}_${m}_${C.value}`,childIndex:m,color:n.convertColorToHex(h.color)||n.convertColorToHex(l.color)||te.value[o]||n.palette[o]||n.palette[o%n.palette.length]})).map((h,m)=>({...h,isFirstChild:m===0,isLastChild:m===l.children.length-1}))}}).toSorted((l,o)=>ne.value?o.value-l.value:l.value-o.value))),re=e.computed(()=>({cy:"vertical-bar-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),s=e.ref(t.value.style.chart.layout.bars.height),d=e.ref(t.value.style.chart.layout.bars.gap),Se=e.computed(()=>(s.value+d.value)*E.value),ue=e.ref(512),i=e.computed(()=>({width:ue.value,height:Se.value,padding:{top:12,left:128+t.value.style.chart.layout.bars.offsetX,right:64+t.value.style.chart.layout.bars.paddingRight,bottom:12}})),u=e.computed(()=>({fullHeight:i.value.padding.top+i.value.padding.bottom+i.value.height,top:i.value.padding.top,left:i.value.padding.left,right:i.value.width-i.value.padding.right,bottom:i.value.padding.top+i.value.height,width:i.value.width-(i.value.padding.left+i.value.padding.right)}));function P(){E.value=x.value.flatMap(l=>l.children&&l.children.length>0?l.children.length:1).reduce((l,o)=>l+o,0)}const f=e.ref([]);function V(l){f.value.includes(l)?f.value=f.value.filter(o=>o!==l):f.value.push(l),P(),ke("selectLegend",x.value)}const x=e.computed(()=>_.value.filter(l=>!f.value.includes(l.id))),b=e.computed(()=>x.value.map(l=>Math.abs(l.value)).reduce((l,o)=>l+o,0));function se(l,o=!1,a=0){return o?n.dataLabel({v:n.checkNaN(Math.abs(l)/b.value*100),s:"%",r:a}):Math.abs(l)/b.value}const w=e.computed(()=>x.value.flatMap(l=>l.hasChildren?l.children:l)),$=e.computed(()=>w.value.map(l=>l.sign).includes(-1)),Ve=e.computed(()=>Math.max(...x.value.flatMap(l=>l.children&&l.children.length?Math.max(...l.children.map(o=>o.value)):l.value)));function k(l){const o=l/Ve.value;return u.value.width/($.value?2:1)*o}function Te(l){return k(l)+u.value.left}function T(l,o){const a=x.value.find(c=>c.id===l.parentId),r=u.value.top+(d.value+s.value)*o,v=a.children.length*(d.value+s.value);return{y:r+v/2-t.value.style.chart.layout.bars.parentLabels.fontSize,name:a.name,value:[void 0,NaN,null].includes(a.value)?"":a.sign===1?a.value:-a.value,percentageToTotal:isNaN(a.value/b.value)?"":se(a.value,!0,t.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),sign:a.sign}}function Be(){return x.value}const A=e.ref(null),R=e.ref(null);function Ee(l,o){R.value={datapoint:l,seriesIndex:o,series:_.value,config:t.value},D.value=!0,A.value=l.id;let a="";const r=l.isChild?l.parentName:l.name,v=l.isChild?l.name:"",c=t.value.style.chart.tooltip.customFormat;n.isFunction(c)&&n.functionReturnsString(()=>c({datapoint:l,series:_.value,config:t.value,seriesIndex:o}))?O.value=c({datapoint:l,series:_.value,config:t.value,seriesIndex:o}):(a+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
2
- <div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" rx="2" stroke="none" fill="${l.color}"/></svg> ${r}</div>
3
- ${v?`<div>${v}</div>`:""}
4
- </div>`,t.value.style.chart.tooltip.showValue&&(a+=`<div>${t.value.translations.value}: <b>${n.applyDataLabel(t.value.style.chart.layout.bars.dataLabels.value.formatter,l.sign===1?l.value:-l.value,n.dataLabel({p:t.value.style.chart.tooltip.prefix,v:l.sign===1?l.value:-l.value,s:t.value.style.chart.tooltip.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:l,seriesIndex:o})}</b></div>`),t.value.style.chart.tooltip.showPercentage&&(a+=`<div>${t.value.translations.percentageToTotal} : <b>${n.dataLabel({v:Math.abs(l.value)/b.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`,l.isChild&&(a+=`<div>${t.value.translations.percentageToSerie}: <b>${n.dataLabel({v:Math.abs(l.value)/Math.abs(l.parentValue)*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`)),O.value=`<div style="text-align:left">${a}</div>`)}function ie(l,o,a,r){if(!t.value.style.chart.layout.bars.dataLabels.value.show)return"";const v=n.applyDataLabel(t.value.style.chart.layout.bars.dataLabels.value.formatter,n.checkNaN(r===-1&&l>=0?-l:l),n.dataLabel({p:t.value.style.chart.layout.bars.dataLabels.value.prefix,v:n.checkNaN(r===-1&&l>=0?-l:l),s:t.value.style.chart.layout.bars.dataLabels.value.suffix,r:t.value.style.chart.layout.bars.dataLabels.value.roundingValue}),{datapoint:o,seriesIndex:a}),c=`(${se(l,!0,t.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;return`${v}${t.value.style.chart.layout.bars.dataLabels.percentage.show?` ${c}`:""}`}const g=e.computed(()=>{const l=[t.value.translations.parentName,t.value.translations.value,t.value.translations.percentageToTotal,t.value.translations.childName,t.value.translations.value,t.value.translations.percentageToSerie,t.value.translations.percentageToTotal],o=w.value.map(a=>a.isChild?a.isFirstChild?{color:a.color,parentName:a.parentName,parentValue:a.parentValue,percentageToTotal:a.parentValue/b.value,childName:a.name,childValue:a.sign===1?a.value:-a.value,childPercentageToParent:Math.abs(a.value)/Math.abs(a.parentValue),childPercentageToTotal:Math.abs(a.value)/b.value}:{color:"",parentName:"",parentValue:"",percentageToTotal:"",childName:a.name,childValue:a.sign===1?a.value:-a.value,childPercentageToParent:Math.abs(a.value)/Math.abs(a.parentValue),childPercentageToTotal:Math.abs(a.value)/b.value}:{color:a.color,parentName:a.name,parentValue:a.sign===1?a.value:-a.value,percentageToTotal:Math.abs(a.value)/b.value,childName:"",childValue:"",childPercentageToParent:"",childPercentageToTotal:""});return{head:l,body:o}});function ce(){const l=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=g.value.head,a=g.value.body.map(c=>[c.parentName,c.parentValue,c.percentageToTotal,c.childName,c.childValue,c.childPercentageToParent,c.childPercentageToTotal]),r=l.concat([o]).concat(a),v=n.createCsvContent(r);n.downloadCsv({csvContent:v,title:t.value.style.chart.title.text||"vue-ui-vertical-bar"})}const S=e.ref(!1);function Le(l){S.value=l,H.value+=1}function de(){p.value.showTable=!p.value.showTable}function ve(){p.value.sortDesc=!p.value.sortDesc,P()}function he(){p.value.showTooltip=!p.value.showTooltip}const z=e.ref(!1);function q(){z.value=!z.value}return me({getData:Be,recalculateHeight:P,generatePdf:Z,generateCsv:ce,generateImage:ee,toggleTable:de,toggleSort:ve,toggleTooltip:he,toggleAnnotator:q}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-vertical-bar ${S.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"verticalBarChart",ref:N,id:`vue-ui-vertical-bar_${C.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:o[5]||(o[5]=()=>e.unref(W)(!0)),onMouseleave:o[6]||(o[6]=()=>e.unref(W)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ie.PenAndPaper,{key:0,parent:N.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:z.value,onClose:q},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),Ne.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:j,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:U,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(Pe._sfc_main,{key:`title_${G.value}`,config:{title:{cy:"vertical-bar-div-title",...t.value.style.chart.title},subtitle:{cy:"vertical-bar-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&B.value&&(e.unref(Y)||e.unref(I))?(e.openBlock(),e.createBlock(ye.UserOptions,{ref_key:"details",ref:_e,key:`user_options_${H.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(Q),isPrinting:e.unref(J),uid:C.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasSort:t.value.userOptions.buttons.sort,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:S.value,isTooltip:p.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:N.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:z.value,onToggleFullscreen:Le,onGeneratePdf:e.unref(Z),onGenerateCsv:ce,onGenerateImage:e.unref(ee),onToggleTable:de,onToggleSort:ve,onToggleTooltip:he,onToggleAnnotator:q,style:e.normalizeStyle({visibility:e.unref(Y)?e.unref(I)?"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.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionSort?{name:"optionSort",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionSort",{},void 0,!0)]),key:"6"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:r})),void 0,!0)]),key:"7"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:r})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:r})),void 0,!0)]),key:"8"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasSort","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),t.value.style.chart.legend.show&&t.value.style.chart.legend.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:4,ref_key:"chartLegend",ref:F},[(e.openBlock(),e.createBlock(ge.Legend,{key:`legend_top_${M.value}`,legendSet:_.value,config:re.value,onClickMarker:o[0]||(o[0]=({legend:a})=>V(a.id))},{item:e.withCtx(({legend:a,index:r})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:v=>V(a.id),style:e.normalizeStyle(`opacity:${f.value.includes(a.id)?.5:1}`)},e.toDisplayString(a.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.bars.dataLabels.value.formatter,a.value,e.unref(n.dataLabel)({p:t.value.style.chart.legend.prefix,v:a.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:a,seriesIndex:r})),13,He)]),_:1},8,["legendSet","config"]))],512)):e.createCommentVNode("",!0),B.value?(e.openBlock(),e.createElementBlock("svg",{key:5,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":S.value,"vue-data-ui-fulscreen--off":!S.value}),viewBox:`0 0 ${i.value.width<=0?10:i.value.width} ${u.value.fullHeight<=0?10:u.value.fullHeight}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Me._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:i.value.width<=0?10:i.value.width,height:u.value.fullHeight<=0?10:u.value.fullHeight,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Xe)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(a,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`vertical_bar_gradient_${C.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":a.color},null,8,Ge),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(a.color,.03),100-t.value.style.chart.layout.bars.gradientIntensity)},null,8,We)],8,je))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:e.unref(n.checkNaN)($.value?u.value.left+u.value.width/2-(a.sign===1?0:k(a.value)<=0?1e-4:k(a.value)):u.value.left),y:u.value.top+(d.value+s.value)*r,width:e.unref(n.checkNaN)(k(a.value)<=0?1e-4:k(a.value)),height:s.value<=0?1e-4:s.value,fill:t.value.style.chart.layout.bars.underlayerColor,rx:t.value.style.chart.layout.bars.borderRadius,class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,Ye)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:e.unref(n.checkNaN)($.value?u.value.left+u.value.width/2-(a.sign===1?0:k(a.value)<=0?1e-4:k(a.value)):u.value.left),y:u.value.top+(d.value+s.value)*r,width:e.unref(n.checkNaN)(k(a.value)<=0?1e-4:k(a.value)),height:s.value<=0?1e-4:s.value,fill:t.value.style.chart.layout.bars.useGradient?`url(#vertical_bar_gradient_${C.value}_${r})`:e.unref(n.setOpacity)(a.color,t.value.style.chart.layout.bars.fillOpacity),rx:t.value.style.chart.layout.bars.borderRadius,stroke:t.value.style.chart.layout.bars.useStroke?a.color:"none","stroke-width":t.value.style.chart.layout.bars.useStroke?t.value.style.chart.layout.bars.strokeWidth:0,class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,Ke),(!a.isChild||a.isLastChild)&&t.value.style.chart.layout.separators.show&&r!==w.value.length-1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:0,x2:u.value.left,y1:s.value+d.value/2+u.value.top+(d.value+s.value)*r,y2:s.value+d.value/2+u.value.top+(d.value+s.value)*r,stroke:t.value.style.chart.layout.separators.color,"stroke-width":t.value.style.chart.layout.separators.strokeWidth,"stroke-linecap":"round"},null,8,Je)):e.createCommentVNode("",!0),$.value&&t.value.style.chart.layout.separators.show?(e.openBlock(),e.createElementBlock("line",{key:1,x1:u.value.left+u.value.width/2,x2:u.value.left+u.value.width/2,y1:u.value.top,y2:u.value.bottom,stroke:t.value.style.chart.layout.separators.color,"stroke-width":t.value.style.chart.layout.separators.strokeWidth,"stroke-linecap":"round"},null,8,Qe)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:$.value?u.value.left+u.value.width/2+(a.sign===1?-12:12)+(a.sign===1?-t.value.style.chart.layout.bars.dataLabels.offsetX:t.value.style.chart.layout.bars.dataLabels.offsetX):Te(a.value)+3+t.value.style.chart.layout.bars.dataLabels.offsetX,y:u.value.top+(d.value+s.value)*r+s.value/2+t.value.style.chart.layout.bars.dataLabels.fontSize/2,"text-anchor":!$.value||a.sign===-1?"start":"end","font-size":t.value.style.chart.layout.bars.dataLabels.fontSize,fill:t.value.style.chart.layout.bars.dataLabels.color,"font-weight":t.value.style.chart.layout.bars.dataLabels.bold?"bold":"normal"},e.toDisplayString(ie(a.value,a,r,a.sign)),9,Ze),(a.isChild||!a.hasChildren)&&t.value.style.chart.layout.bars.nameLabels.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":"end",x:u.value.left-3+t.value.style.chart.layout.bars.nameLabels.offsetX,y:u.value.top+(d.value+s.value)*r+s.value/2+t.value.style.chart.layout.bars.nameLabels.fontSize/2,"font-size":t.value.style.chart.layout.bars.nameLabels.fontSize,fill:t.value.style.chart.layout.bars.nameLabels.color,"font-weight":t.value.style.chart.layout.bars.nameLabels.bold?"bold":"normal"},e.toDisplayString(a.name),9,et)):e.createCommentVNode("",!0),a.isChild&&a.childIndex===0&&t.value.style.chart.layout.bars.parentLabels.show?(e.openBlock(),e.createElementBlock("text",{key:3,x:3+t.value.style.chart.layout.bars.parentLabels.offsetX,y:T(a,r).y,"font-size":t.value.style.chart.layout.bars.parentLabels.fontSize,fill:t.value.style.chart.layout.bars.parentLabels.color,"font-weight":t.value.style.chart.layout.bars.parentLabels.bold?"bold":"normal","text-anchor":"start"},e.toDisplayString(T(a,r).name),9,tt)):e.createCommentVNode("",!0),a.isChild&&a.childIndex===0&&t.value.style.chart.layout.bars.parentLabels.show?(e.openBlock(),e.createElementBlock("text",{key:4,x:3+t.value.style.chart.layout.bars.parentLabels.offsetX,y:T(a,r).y+t.value.style.chart.layout.bars.parentLabels.fontSize+6,"font-size":t.value.style.chart.layout.bars.parentLabels.fontSize,fill:t.value.style.chart.layout.bars.parentLabels.color,"font-weight":t.value.style.chart.layout.bars.dataLabels.bold?"bold":"normal","text-anchor":"start"},e.toDisplayString(ie(T(a,r).value),T(a,r),r,a.parentSign||a.sign),9,lt)):e.createCommentVNode("",!0),e.createElementVNode("rect",{"data-cy-trap":"",x:0,y:u.value.top+(d.value+s.value)*r-d.value/2,width:i.value.width<=0?1e-4:i.value.width,height:s.value+d.value<=0?1e-4:s.value+d.value,fill:A.value===a.id?e.unref(n.setOpacity)(t.value.style.chart.layout.highlighter.color,t.value.style.chart.layout.highlighter.opacity):"transparent",onMouseenter:v=>Ee(a,r),onMouseleave:o[1]||(o[1]=v=>{xe.value=null,D.value=!1,A.value=null})},null,40,at)]))),256)),e.renderSlot(l.$slots,"svg",{svg:i.value},void 0,!0)],14,Ue)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ot,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(J)||e.unref(Q)})),void 0,!0)])):e.createCommentVNode("",!0),B.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(De.default,{key:7,config:{type:"verticalBar",style:{backgroundColor:t.value.style.chart.backgroundColor,verticalBar:{axis:{color:"#CCCCCC"},color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.chart.legend.show&&t.value.style.chart.legend.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:8,ref_key:"chartLegend",ref:F},[(e.openBlock(),e.createBlock(ge.Legend,{key:`legend_bottom_${M.value}`,legendSet:_.value,config:re.value,onClickMarker:o[2]||(o[2]=({legend:a})=>V(a.id))},{item:e.withCtx(({legend:a,index:r})=>[e.createElementVNode("div",{onClick:v=>V(a.id),style:e.normalizeStyle(`opacity:${f.value.includes(a.id)?.5:1}`)},e.toDisplayString(a.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.bars.dataLabels.value.formatter,a.value,e.unref(n.dataLabel)({p:t.value.style.chart.legend.prefix,v:a.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:a,seriesIndex:r})),13,nt)]),_:1},8,["legendSet","config"]))],512)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"legend",{legend:_.value},void 0,!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:9,ref_key:"source",ref:X,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ze._sfc_main,{show:p.value.showTooltip&&D.value&&f.value.length<y.dataset.length,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:N.value,content:O.value,isFullscreen:S.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...R.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...R.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),B.value?(e.openBlock(),e.createBlock(Fe.default,{key:10,hideDetails:"",config:{open:p.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"tableContainer",ref:le,class:"vue-ui-vertical-bar-table"},[e.createElementVNode("div",rt,[e.createElementVNode("div",{role:"button",tabindex:"0",style:e.normalizeStyle(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${t.value.table.th.backgroundColor};`),onClick:o[3]||(o[3]=a=>p.value.showTable=!1),onKeypress:o[4]||(o[4]=e.withKeys(a=>p.value.showTable=!1,["enter"]))},[e.createVNode(Oe.default,{name:"close",stroke:t.value.table.th.color,"stroke-width":2},null,8,["stroke"])],36),e.createElementVNode("div",{style:{width:"100%","container-type":"inline-size"},class:e.normalizeClass({"vue-ui-responsive":ae.value})},[e.createElementVNode("table",ut,[e.createElementVNode("caption",{style:e.normalizeStyle({backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline}),class:"vue-ui-data-table__caption"},[e.createTextVNode(e.toDisplayString(t.value.style.chart.title.text)+" ",1),t.value.style.chart.title.subtitle.text?(e.openBlock(),e.createElementBlock("span",st,e.toDisplayString(t.value.style.chart.title.subtitle.text),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value.head,a=>(e.openBlock(),e.createElementBlock("th",{style:e.normalizeStyle(`outline:${t.value.table.th.outline}`)},[e.createElementVNode("div",it,e.toDisplayString(a),1)],4))),256))],4),e.createElementVNode("tr",null,[e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)},"∑ "+e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(isNaN(b.value)?"":b.value.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),5),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)},"100%",4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value.body,(a,r)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":r%2===0,"vue-ui-data-table__tbody__row-odd":r%2!==0}),style:e.normalizeStyle(`background:${t.value.table.td.backgroundColor};color:${t.value.table.td.color}`)},[e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline};font-variant-numeric: tabular-nums;`),"data-cell":g.value.head[0]??""},[e.createElementVNode("div",dt,[a.color?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`color:${a.color};margin-right:3px`)},"⬤",4)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(a.parentName),1)])],12,ct),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":g.value.head[1]??""},[e.createElementVNode("div",ht,e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(["",NaN,void 0].includes(a.parentValue)?"":a.parentValue.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),1)],12,vt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":g.value.head[2]??""},[e.createElementVNode("div",yt,e.toDisplayString(["",NaN,void 0].includes(a.percentageToTotal)?"":`${(a.percentageToTotal*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,pt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":g.value.head[3]??""},[e.createElementVNode("div",ft,e.toDisplayString(a.childName),1)],12,gt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":g.value.head[4]??""},[e.createElementVNode("div",mt,e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(["",NaN,void 0].includes(a.childValue)?"":a.childValue.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),1)],12,bt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":g.value.head[5]??""},[e.createElementVNode("div",Ct,e.toDisplayString(["",NaN,void 0].includes(a.childPercentageToParent)?"":`${(a.childPercentageToParent*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,kt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":g.value.head[6]??""},[e.createElementVNode("div",xt,e.toDisplayString(["",NaN,void 0].includes(a.childPercentageToTotal)?"":`${(a.childPercentageToTotal*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,_t)],6))),256))])])],2)])],512)]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,qe))}},wt=Re._export_sfc(Nt,[["__scopeId","data-v-0cafc13e"]]);exports.default=wt;