vue-data-ui 2.4.1 → 2.4.3

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 (218) hide show
  1. package/README.md +44 -44
  2. package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
  3. package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
  4. package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
  5. package/dist/BaseIcon-uALK38Ov.cjs +1 -0
  6. package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
  7. package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
  8. package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
  9. package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
  10. package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
  11. package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
  12. package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
  13. package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
  14. package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
  15. package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
  16. package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
  17. package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
  18. package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
  19. package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
  20. package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
  21. package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
  22. package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
  23. package/dist/index-eFox7weK.cjs +9 -0
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +22 -17
  26. package/dist/types/vue-data-ui.d.ts +22 -17
  27. package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
  28. package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
  29. package/dist/usePrinter-CSRFnDBU.cjs +1 -0
  30. package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
  31. package/dist/useResponsive-BY8tgM1n.js +188 -0
  32. package/dist/useResponsive-CodiGUOE.cjs +1 -0
  33. package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
  34. package/dist/vue-data-ui-Bduq4f2p.js +261 -0
  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-B-P7PMHs.cjs +19 -0
  38. package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
  39. package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
  40. package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
  42. package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
  43. package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
  44. package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
  45. package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
  46. package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
  47. package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
  48. package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
  49. package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
  50. package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
  51. package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
  52. package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
  53. package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
  54. package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
  55. package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
  56. package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
  57. package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
  58. package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
  59. package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
  60. package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
  61. package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
  62. package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
  63. package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
  64. package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
  65. package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
  66. package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
  67. package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
  68. package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
  69. package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
  70. package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
  71. package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
  72. package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
  73. package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
  74. package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
  75. package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
  76. package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
  77. package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
  78. package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
  79. package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
  80. package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
  81. package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
  82. package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
  83. package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
  84. package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
  85. package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
  86. package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
  87. package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
  88. package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
  89. package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
  90. package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
  91. package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
  92. package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
  93. package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
  94. package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
  95. package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
  96. package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
  97. package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
  98. package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
  99. package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
  100. package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
  101. package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
  102. package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
  103. package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
  105. package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
  106. package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
  107. package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
  109. package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
  110. package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
  111. package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
  112. package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
  113. package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
  114. package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
  115. package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
  116. package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
  117. package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
  118. package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
  119. package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
  120. package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
  121. package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
  122. package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
  123. package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
  124. package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
  125. package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
  126. package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
  128. package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
  129. package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
  130. package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
  131. package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
  132. package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
  133. package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
  134. package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
  135. package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
  136. package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
  137. package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
  138. package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
  139. package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
  140. package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
  141. package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
  142. package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
  143. package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
  144. package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
  145. package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
  146. package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
  147. package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
  148. package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
  149. package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
  150. package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
  151. package/package.json +1 -1
  152. package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
  153. package/dist/index-C7_6YjWN.cjs +0 -9
  154. package/dist/usePrinter-8EP4iaGm.cjs +0 -1
  155. package/dist/useResponsive-B3TrDDIG.cjs +0 -1
  156. package/dist/useResponsive-NZB-WLRF.js +0 -187
  157. package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
  158. package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
  159. package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
  160. package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
  161. package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
  162. package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
  163. package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
  164. package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
  165. package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
  166. package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
  167. package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
  168. package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
  169. package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
  170. package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
  171. package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
  172. package/dist/vue-ui-gauge-BXiy515T.js +0 -494
  173. package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
  174. package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
  175. package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
  176. package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
  177. package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
  178. package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
  179. package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
  180. package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
  181. package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
  182. package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
  183. package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
  184. package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
  185. package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
  186. package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
  187. package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
  188. package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
  189. package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
  190. package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
  191. package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
  192. package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
  193. package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
  194. package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
  195. package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
  196. package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
  197. package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
  198. package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
  199. package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
  200. package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
  201. package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
  202. package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
  203. package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
  204. package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
  205. package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
  206. package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
  207. package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
  208. package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
  209. package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
  210. package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
  211. package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
  212. package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
  213. package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
  214. package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
  215. package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
  216. package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
  217. package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
  218. package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
@@ -0,0 +1,947 @@
1
+ import { computed as p, ref as g, onMounted as Xe, watch as Ue, openBlock as s, createElementBlock as n, normalizeClass as ye, normalizeStyle as U, createBlock as Y, createCommentVNode as v, renderSlot as k, createVNode as se, unref as z, createSlots as xt, withCtx as C, normalizeProps as D, guardReactiveProps as E, Fragment as h, renderList as f, createElementVNode as H, toDisplayString as S, createTextVNode as kt } from "vue";
2
+ import { u as wt, c as Ye, t as Ct, a as _t, p as ie, M as Ge, b as zt, o as Lt, e as Je, g as St, d as $t, a4 as ne, a0 as qe, C as Ze, X as Mt, l as Tt, F as Ke, f as B, x as Qe, i as je, y as Nt, q as Ot, r as Pt } from "./index-Bya_q1J-.js";
3
+ import { u as et } from "./useNestedProp-B33hazbH.js";
4
+ import { t as At, u as Rt } from "./useResponsive-BY8tgM1n.js";
5
+ import { u as It, U as Ft } from "./usePrinter-CiHd1FwD.js";
6
+ import { S as Vt } from "./Slicer-TfpN2Cr4.js";
7
+ import { _ as Dt } from "./Tooltip-Cz24YLfw.js";
8
+ import { _ as Et } from "./Title-C5pIfQAz.js";
9
+ import { L as Ht } from "./Legend-DNgTCgEK.js";
10
+ import Bt from "./vue-ui-accordion-DfUfL2dI.js";
11
+ import { D as Wt } from "./DataTable-DYqC2pqu.js";
12
+ import Xt from "./vue-ui-skeleton-BYssP0K4.js";
13
+ import { _ as Ut } from "./PackageVersion-VkaUzgmt.js";
14
+ import { P as Yt } from "./PenAndPaper-DAZYA8Ew.js";
15
+ import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt = ["stop-color"], jt = ["stop-color"], ea = ["stop-color"], ta = ["x1", "x2", "y1", "y2", "stroke"], aa = ["x1", "x2", "y1", "y2", "stroke"], la = ["x1", "x2", "y1", "y2", "stroke"], oa = ["x1", "x2", "y1", "y2", "stroke"], ra = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], sa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ua = ["x", "y", "font-size", "fill", "font-weight"], ca = ["transform", "font-size", "fill", "font-weight"], va = ["x", "y", "font-size", "fill", "font-weight"], ha = { key: 0 }, da = ["x", "y", "font-size", "font-weight", "fill"], ya = ["x", "y", "font-size", "fill", "font-weight"], ga = { key: 0 }, ba = ["x", "y", "font-size", "font-weight", "fill"], fa = ["x1", "x2", "y1", "y2", "stroke"], ma = ["x", "y", "font-size", "font-weight", "fill"], pa = ["x1", "x2", "y1", "y2", "stroke"], xa = ["font-size", "font-weight", "fill", "text-anchor", "transform"], ka = ["text-anchor", "font-size", "font-weight", "fill", "transform"], wa = ["font-size", "font-weight", "fill", "x", "y"], Ca = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], _a = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], za = {
17
+ key: 4,
18
+ class: "vue-data-ui-watermark"
19
+ }, La = ["onClick"], Sa = ["innerHTML"], $a = {
20
+ __name: "vue-ui-stackbar",
21
+ props: {
22
+ config: {
23
+ type: Object,
24
+ default() {
25
+ return {};
26
+ }
27
+ },
28
+ dataset: {
29
+ type: Array,
30
+ default() {
31
+ return [];
32
+ }
33
+ }
34
+ },
35
+ emits: ["selectDatapoint", "selectLegend"],
36
+ setup(ge, { expose: tt, emit: be }) {
37
+ const x = ge, { vue_ui_stackbar: at } = wt(), W = p({
38
+ get() {
39
+ return !!x.dataset && x.dataset.length;
40
+ },
41
+ set(a) {
42
+ return a;
43
+ }
44
+ }), X = g(null), ue = g(Ye()), j = g(!1), fe = g(null), ce = g(""), L = g([]), me = g(0), pe = g(null), xe = g(null), ke = g(null), we = g(null), Ce = g(0), ve = g(!1), G = g(null), J = g(!1), lt = g(0), ot = g(0), rt = g(0);
45
+ Xe(() => {
46
+ he();
47
+ });
48
+ const e = p({
49
+ get: () => _e(),
50
+ set: (a) => a
51
+ });
52
+ function _e() {
53
+ const a = et({
54
+ userConfig: x.config,
55
+ defaultConfig: at
56
+ });
57
+ let o = {};
58
+ return a.theme ? o = {
59
+ ...et({
60
+ userConfig: Ct.vue_ui_stackbar[a.theme] || x.config,
61
+ defaultConfig: a
62
+ }),
63
+ customPalette: _t[a.theme] || ie
64
+ } : o = a, x.config && Ge(x.config, "style.chart.grid.scale.scaleMin") ? o.style.chart.grid.scale.scaleMin = x.config.style.chart.grid.scale.scaleMin : o.style.chart.grid.scale.scaleMin = null, x.config && Ge(x.config, "style.chart.grid.scale.scaleMax") ? o.style.chart.grid.scale.scaleMax = x.config.style.chart.grid.scale.scaleMax : o.style.chart.grid.scale.scaleMax = null, o;
65
+ }
66
+ Ue(() => x.config, (a) => {
67
+ e.value = _e(), he(), lt.value += 1, ot.value += 1, rt.value += 1;
68
+ }, { deep: !0 }), Ue(() => x.dataset, (a) => {
69
+ Ne();
70
+ }, { deep: !0 });
71
+ const _ = g({
72
+ dataLabels: {
73
+ show: e.value.style.chart.bars.dataLabels.show
74
+ },
75
+ showTable: e.value.table.show,
76
+ showTooltip: e.value.style.chart.tooltip.show
77
+ }), { isPrinting: ze, isImaging: Le, generatePdf: Se, generateImage: $e } = It({
78
+ elementId: `stackbar_${ue.value}`,
79
+ fileName: e.value.style.chart.title.text || "vue-ui-stackbar"
80
+ }), ee = g({
81
+ width: e.value.style.chart.width,
82
+ height: e.value.style.chart.height,
83
+ paddingRatio: {
84
+ top: e.value.style.chart.padding.top / e.value.style.chart.height,
85
+ right: e.value.style.chart.padding.right / e.value.style.chart.width,
86
+ bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
87
+ left: e.value.style.chart.padding.left / e.value.style.chart.width
88
+ }
89
+ }), st = p(() => zt(e.value.customPalette)), Me = g(null), Te = g(null);
90
+ Xe(() => {
91
+ he();
92
+ });
93
+ function he() {
94
+ if (Lt(x.dataset) ? Je({
95
+ componentName: "VueUiStackbar",
96
+ type: "dataset"
97
+ }) : x.dataset.forEach((a, o) => {
98
+ St({
99
+ datasetObject: a,
100
+ requiredAttributes: ["name", "series"]
101
+ }).forEach((t) => {
102
+ W.value = !1, Je({
103
+ componentName: "VueUiStackbar",
104
+ type: "datasetSerieAttribute",
105
+ property: t,
106
+ index: o
107
+ });
108
+ });
109
+ }), setTimeout(() => {
110
+ J.value = !0;
111
+ }, 10), e.value.responsive) {
112
+ const a = At(() => {
113
+ J.value = !1;
114
+ const { width: o, height: t } = Rt({
115
+ chart: X.value,
116
+ title: e.value.style.chart.title.text ? pe.value : null,
117
+ legend: e.value.style.chart.legend.show ? xe.value : null,
118
+ slicer: e.value.style.chart.zoom.show && A.value > 1 ? ke.value : null,
119
+ source: we.value
120
+ });
121
+ ee.value.width = o, ee.value.height = t, clearTimeout(Te.value), Te.value = setTimeout(() => {
122
+ J.value = !0;
123
+ }, 10);
124
+ });
125
+ Me.value = new ResizeObserver(a), Me.value.observe(X.value.parentNode);
126
+ }
127
+ }
128
+ const r = p(() => {
129
+ const { height: a, width: o } = ee.value, { right: t } = ee.value.paddingRatio, l = e.value.style.chart.padding.top, i = o - o * t, u = a - e.value.style.chart.padding.bottom, w = e.value.style.chart.padding.left, R = o - w - o * t, I = a - l - e.value.style.chart.padding.bottom;
130
+ return {
131
+ chartHeight: a,
132
+ chartWidth: o,
133
+ top: l,
134
+ right: i,
135
+ bottom: u,
136
+ left: w,
137
+ width: R,
138
+ height: I < 0 ? 0 : I
139
+ };
140
+ }), P = p(() => x.dataset.map((a, o) => {
141
+ const t = $t(a.color) || st.value[o] || ie[o] || ie[o % ie.length];
142
+ return {
143
+ ...a,
144
+ // In distributed mode, all values are converted to positive
145
+ series: JSON.parse(JSON.stringify(a.series)).map((l) => e.value.style.chart.bars.distributed ? Math.abs(l) : l),
146
+ // Store signs to manage display of neg values in distributed mode
147
+ signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
148
+ absoluteIndex: o,
149
+ id: Ye(),
150
+ color: t
151
+ };
152
+ })), A = p(() => Math.max(...P.value.filter((a) => !L.value.includes(a.id)).map((a) => a.series.length))), c = g({
153
+ start: 0,
154
+ end: Math.max(...x.dataset.map((a) => a.series.length))
155
+ });
156
+ function Ne() {
157
+ c.value = {
158
+ start: 0,
159
+ end: Math.max(...x.dataset.map((a) => a.series.length))
160
+ }, Ce.value += 1;
161
+ }
162
+ const d = p(() => {
163
+ let a;
164
+ return e.value.orientation === "vertical" ? a = r.value.width / (c.value.end - c.value.start) : a = r.value.height / (c.value.end - c.value.start), a <= 0 ? 0 : a;
165
+ }), q = p(() => ne(P.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)), it = p(() => ne(P.value.filter((a) => !L.value.includes(a.id)).map((a) => ({
166
+ ...a,
167
+ series: a.series.map((o, t) => a.signedSeries[t] === -1 && o >= 0 ? -o : o)
168
+ }))).slice(c.value.start, c.value.end)), te = p(() => {
169
+ const a = P.value.filter((o) => !L.value.includes(o.id));
170
+ return {
171
+ positive: ne(a.map((o) => ({
172
+ ...o,
173
+ series: o.series.slice(c.value.start, c.value.end).map((t) => t >= 0 ? t : 0)
174
+ }))),
175
+ negative: ne(a.map((o) => ({
176
+ ...o,
177
+ series: o.series.slice(c.value.start, c.value.end).map((t) => t < 0 ? t : 0)
178
+ })))
179
+ };
180
+ }), N = p(() => {
181
+ const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...te.value.positive), o = Math.min(...te.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(o) ? 0 : o, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? qe(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Ze(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
182
+ return l.ticks.map((i) => ({
183
+ zero: r.value.bottom - r.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
184
+ y: r.value.bottom - r.value.height * ((i + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
185
+ x: r.value.left - 8,
186
+ horizontal_zero: r.value.left + r.value.width * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
187
+ horizontal_x: r.value.left + r.value.width * ((i + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
188
+ horizontal_y: r.value.bottom - 8,
189
+ value: i
190
+ }));
191
+ }), Z = p(() => e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)), m = p(() => {
192
+ if (!W.value) return [];
193
+ let a = Array(A.value).fill(0), o = Array(A.value).fill(0), t = Array(A.value).fill(0), l = Array(A.value).fill(0);
194
+ const i = Math.max(...te.value.positive) || 0, u = Math.min(...te.value.negative), w = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, R = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? qe(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks) : Ze(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks), { min: I, max: K } = R, F = K + (I >= 0 ? 0 : Math.abs(I)) || 1, $ = r.value.height, re = r.value.width, Be = N.value[0] ? N.value[0].zero : r.value.bottom, We = N.value[0] ? N.value[0].horizontal_zero : r.value.left;
195
+ return P.value.filter((Q) => !L.value.includes(Q.id)).map((Q) => {
196
+ const O = Q.series.slice(c.value.start, c.value.end), ht = Q.signedSeries.slice(c.value.start, c.value.end), dt = O.map((y, b) => r.value.left + d.value * b + d.value * e.value.style.chart.bars.gapRatio / 4), yt = O.map((y, b) => r.value.top + d.value * b + d.value * e.value.style.chart.bars.gapRatio / 4), gt = O.map((y, b) => {
197
+ const M = e.value.style.chart.bars.distributed ? (y || 0) / q.value[b] : (y || 0) / F;
198
+ let V, T;
199
+ return y > 0 ? (T = $ * M, V = Be - T - a[b], a[b] += T) : (T = $ * M, V = Be + t[b], t[b] += Math.abs(T)), V;
200
+ }), bt = O.map((y, b) => {
201
+ const M = e.value.style.chart.bars.distributed ? (y || 0) / q.value[b] : (y || 0) / F;
202
+ let V, T;
203
+ return y > 0 ? (T = re * M, V = We + o[b], o[b] += T) : (T = re * M, V = We - Math.abs(T) - l[b], l[b] += Math.abs(T)), V;
204
+ }), ft = O.map((y, b) => {
205
+ const M = e.value.style.chart.bars.distributed ? (y || 0) / q.value[b] : (y || 0) / F;
206
+ return y > 0 ? $ * M : $ * Math.abs(M);
207
+ }), mt = O.map((y, b) => {
208
+ const M = e.value.style.chart.bars.distributed ? (y || 0) / q.value[b] : (y || 0) / F;
209
+ return y > 0 ? re * M : re * Math.abs(M);
210
+ }), pt = O.map((y) => Math.abs(y)).reduce((y, b) => y + b, 0);
211
+ return {
212
+ ...Q,
213
+ proportions: O.map((y, b) => e.value.style.chart.bars.distributed ? (y || 0) / q.value[b] : (y || 0) / pt),
214
+ series: O,
215
+ signedSeries: ht,
216
+ x: dt,
217
+ y: gt,
218
+ height: ft,
219
+ horizontal_width: mt,
220
+ horizontal_y: yt,
221
+ horizontal_x: bt
222
+ };
223
+ });
224
+ }), Oe = p(() => it.value.map((a, o) => ({
225
+ value: a,
226
+ sign: a >= 0 ? 1 : -1
227
+ })));
228
+ function ae(a, o, t, l, i) {
229
+ const u = i === -1 && a >= 0 ? -a : a;
230
+ return je(
231
+ e.value.style.chart.bars.dataLabels.formatter,
232
+ u,
233
+ B({
234
+ p: e.value.style.chart.bars.dataLabels.prefix,
235
+ v: u,
236
+ s: e.value.style.chart.bars.dataLabels.suffix,
237
+ r: e.value.style.chart.bars.dataLabels.rounding
238
+ }),
239
+ { datapoint: o, seriesIndex: t, datapointIndex: l }
240
+ );
241
+ }
242
+ function Pe(a, o, t, l) {
243
+ return je(
244
+ e.value.style.chart.bars.dataLabels.formatter,
245
+ a,
246
+ B({
247
+ v: a,
248
+ s: "%",
249
+ r: e.value.style.chart.bars.dataLabels.rounding
250
+ }),
251
+ { datapoint: o, seriesIndex: t, datapointIndex: l }
252
+ );
253
+ }
254
+ function Ae(a) {
255
+ const o = JSON.parse(JSON.stringify(m.value)).map((t) => ({
256
+ name: t.name,
257
+ value: t.series[a] === 0 ? 0 : t.series[a] || null,
258
+ proportion: t.proportions[a] || null,
259
+ color: t.color,
260
+ id: t.id
261
+ }));
262
+ be("selectDatapoint", { datapoint: o, period: Z.value[a] });
263
+ }
264
+ function Re(a) {
265
+ G.value = a, j.value = !0;
266
+ const o = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(m.value)).map((i) => ({
267
+ name: i.name,
268
+ value: i.series[a] === 0 ? 0 : (i.signedSeries[a] === -1 && i.series[a] >= 0 ? -i.series[a] : i.series[a]) || null,
269
+ proportion: i.proportions[a] || null,
270
+ color: i.color,
271
+ id: i.id
272
+ })), l = t.map((i) => Math.abs(i.value)).reduce((i, u) => i + u, 0);
273
+ if (Qe(o) && Nt(() => o({
274
+ seriesIndex: a,
275
+ datapoint: t,
276
+ series: m.value,
277
+ config: e.value
278
+ })))
279
+ ce.value = o({
280
+ seriesIndex: a,
281
+ datapoint: t,
282
+ series: m.value,
283
+ config: e.value
284
+ });
285
+ else {
286
+ const {
287
+ showValue: i,
288
+ showPercentage: u,
289
+ borderColor: w,
290
+ roundingValue: R,
291
+ roundingPercentage: I
292
+ } = e.value.style.chart.tooltip;
293
+ let K = "";
294
+ Z.value[a] && (K += `<div style="width:100%;text-align:center;border-bottom:1px solid ${w};padding-bottom:6px;margin-bottom:3px;">${Z.value[a]}</div>`);
295
+ const F = [
296
+ i && u ? "(" : "",
297
+ i && u ? ")" : ""
298
+ ];
299
+ t.reverse().forEach(($) => {
300
+ K += `
301
+ <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
302
+ <svg viewBox="0 0 12 12" height="14" width="14"><rect rx="1" x="0" y="0" height="12" width="12" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${$.id})` : $.color}"/></svg>
303
+ ${$.name}${i || u ? ":" : ""} ${i ? B({
304
+ p: e.value.style.chart.bars.dataLabels.prefix,
305
+ v: $.value,
306
+ s: e.value.style.chart.bars.dataLabels.suffix,
307
+ r: R
308
+ }) : ""} ${F[0]}${u ? B({
309
+ v: isNaN($.value / l) ? 0 : Math.abs($.value) / l * 100,
310
+ // Negs are absed to show relative proportion to absolute total. It's opinionated.
311
+ s: "%",
312
+ r: I
313
+ }) : ""}${F[1]}
314
+ </div>
315
+ `;
316
+ }), ce.value = `<div>${K}</div>`;
317
+ }
318
+ }
319
+ function nt(a) {
320
+ ve.value = a, me.value += 1;
321
+ }
322
+ function Ie() {
323
+ _.value.showTable = !_.value.showTable;
324
+ }
325
+ function Fe() {
326
+ _.value.dataLabels.show = !_.value.dataLabels.show;
327
+ }
328
+ function Ve() {
329
+ _.value.showTooltip = !_.value.showTooltip;
330
+ }
331
+ function ut() {
332
+ return m.value;
333
+ }
334
+ const De = p(() => {
335
+ if (m.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
336
+ const a = m.value.map(({ name: t, color: l }) => ({
337
+ label: t,
338
+ color: l
339
+ })), o = [];
340
+ for (let t = c.value.start; t < c.value.end; t += 1) {
341
+ const l = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
342
+ P.value.forEach((i) => {
343
+ l.push(Number((i.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
344
+ }), o.push(l);
345
+ }
346
+ return { head: a, body: o };
347
+ });
348
+ function Ee() {
349
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = ["", ...De.value.head.map((u) => u.label)], t = De.value.body, l = a.concat([o]).concat(t), i = Ot(l);
350
+ Pt({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
351
+ }
352
+ const le = p(() => {
353
+ const a = [""].concat(m.value.map((i) => i.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
354
+ let o = [];
355
+ for (let i = 0; i < A.value; i += 1) {
356
+ const u = m.value.map((w) => w.series[i] ?? 0).reduce((w, R) => w + R, 0);
357
+ o.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[i] ?? i + 1].concat(m.value.map((w) => (w.series[i] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
358
+ }
359
+ const t = {
360
+ th: {
361
+ backgroundColor: e.value.table.th.backgroundColor,
362
+ color: e.value.table.th.color,
363
+ outline: e.value.table.th.outline
364
+ },
365
+ td: {
366
+ backgroundColor: e.value.table.td.backgroundColor,
367
+ color: e.value.table.td.color,
368
+ outline: e.value.table.td.outline
369
+ },
370
+ breakpoint: e.value.table.responsiveBreakpoint
371
+ }, l = [e.value.table.columnNames.period].concat(m.value.map((i) => i.name)).concat(e.value.table.columnNames.total);
372
+ return { head: a, body: o.slice(0, c.value.end - c.value.start), config: t, colNames: l };
373
+ });
374
+ function ct(a, o) {
375
+ if (be("selectLegend", m.value.find((t) => t.absoluteIndex === a)), L.value.includes(o.id))
376
+ L.value = L.value.filter((t) => t !== o.id);
377
+ else {
378
+ if (L.value.length === P.value.length - 1) return;
379
+ L.value.push(o.id);
380
+ }
381
+ }
382
+ const He = p(() => P.value.map((a, o) => ({
383
+ ...a,
384
+ shape: "square"
385
+ })).map((a) => ({
386
+ ...a,
387
+ opacity: L.value.includes(a.id) ? 0.5 : 1,
388
+ segregate: () => ct(a.absoluteIndex, a),
389
+ isSegregated: L.value.includes(a.id)
390
+ }))), vt = p(() => ({
391
+ cy: "stackbar-legend",
392
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
393
+ color: e.value.style.chart.legend.color,
394
+ fontSize: e.value.style.chart.legend.fontSize,
395
+ paddingBottom: 12,
396
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
397
+ })), oe = g(!1);
398
+ function de() {
399
+ oe.value = !oe.value;
400
+ }
401
+ return tt({
402
+ getData: ut,
403
+ generatePdf: Se,
404
+ generateCsv: Ee,
405
+ generateImage: $e,
406
+ toggleTable: Ie,
407
+ toggleLabels: Fe,
408
+ toggleTooltip: Ve,
409
+ toggleAnnotator: de
410
+ }), (a, o) => (s(), n("div", {
411
+ id: `stackbar_${ue.value}`,
412
+ ref_key: "stackbarChart",
413
+ ref: X,
414
+ class: ye({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ve.value }),
415
+ style: U(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`)
416
+ }, [
417
+ e.value.userOptions.buttons.annotator ? (s(), Y(Yt, {
418
+ key: 0,
419
+ parent: X.value,
420
+ backgroundColor: e.value.style.chart.backgroundColor,
421
+ color: e.value.style.chart.color,
422
+ active: oe.value,
423
+ onClose: de
424
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
425
+ k(a.$slots, "userConfig", {}, void 0, !0),
426
+ e.value.style.chart.title.text ? (s(), n("div", {
427
+ key: 1,
428
+ ref_key: "chartTitle",
429
+ ref: pe,
430
+ style: "width:100%;background:transparent;padding-bottom:24px"
431
+ }, [
432
+ se(Et, {
433
+ config: {
434
+ title: {
435
+ cy: "stackbar-title",
436
+ ...e.value.style.chart.title
437
+ },
438
+ subtitle: {
439
+ cy: "stackbar-subtitle",
440
+ ...e.value.style.chart.title.subtitle
441
+ }
442
+ }
443
+ }, null, 8, ["config"])
444
+ ], 512)) : v("", !0),
445
+ e.value.userOptions.show && W.value ? (s(), Y(Ft, {
446
+ ref: "details",
447
+ key: `user_option_${me.value}`,
448
+ backgroundColor: e.value.style.chart.backgroundColor,
449
+ color: e.value.style.chart.color,
450
+ isPrinting: z(ze),
451
+ isImaging: z(Le),
452
+ uid: ue.value,
453
+ hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
454
+ hasPdf: e.value.userOptions.buttons.pdf,
455
+ hasImg: e.value.userOptions.buttons.img,
456
+ hasXls: e.value.userOptions.buttons.csv,
457
+ hasTable: e.value.userOptions.buttons.table,
458
+ hasLabel: e.value.userOptions.buttons.labels,
459
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
460
+ isFullscreen: ve.value,
461
+ chartElement: X.value,
462
+ position: e.value.userOptions.position,
463
+ isTooltip: _.value.showTooltip,
464
+ titles: { ...e.value.userOptions.buttonTitles },
465
+ hasAnnotator: e.value.userOptions.buttons.annotator,
466
+ isAnnotation: oe.value,
467
+ onToggleFullscreen: nt,
468
+ onGeneratePdf: z(Se),
469
+ onGenerateCsv: Ee,
470
+ onGenerateImage: z($e),
471
+ onToggleTable: Ie,
472
+ onToggleLabels: Fe,
473
+ onToggleTooltip: Ve,
474
+ onToggleAnnotator: de
475
+ }, xt({ _: 2 }, [
476
+ a.$slots.optionTooltip ? {
477
+ name: "optionTooltip",
478
+ fn: C(() => [
479
+ k(a.$slots, "optionTooltip", {}, void 0, !0)
480
+ ]),
481
+ key: "0"
482
+ } : void 0,
483
+ a.$slots.optionPdf ? {
484
+ name: "optionPdf",
485
+ fn: C(() => [
486
+ k(a.$slots, "optionPdf", {}, void 0, !0)
487
+ ]),
488
+ key: "1"
489
+ } : void 0,
490
+ a.$slots.optionCsv ? {
491
+ name: "optionCsv",
492
+ fn: C(() => [
493
+ k(a.$slots, "optionCsv", {}, void 0, !0)
494
+ ]),
495
+ key: "2"
496
+ } : void 0,
497
+ a.$slots.optionImg ? {
498
+ name: "optionImg",
499
+ fn: C(() => [
500
+ k(a.$slots, "optionImg", {}, void 0, !0)
501
+ ]),
502
+ key: "3"
503
+ } : void 0,
504
+ a.$slots.optionTable ? {
505
+ name: "optionTable",
506
+ fn: C(() => [
507
+ k(a.$slots, "optionTable", {}, void 0, !0)
508
+ ]),
509
+ key: "4"
510
+ } : void 0,
511
+ a.$slots.optionLabels ? {
512
+ name: "optionLabels",
513
+ fn: C(() => [
514
+ k(a.$slots, "optionLabels", {}, void 0, !0)
515
+ ]),
516
+ key: "5"
517
+ } : void 0,
518
+ a.$slots.optionFullscreen ? {
519
+ name: "optionFullscreen",
520
+ fn: C(({ toggleFullscreen: t, isFullscreen: l }) => [
521
+ k(a.$slots, "optionFullscreen", D(E({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
522
+ ]),
523
+ key: "6"
524
+ } : void 0,
525
+ a.$slots.optionAnnotator ? {
526
+ name: "optionAnnotator",
527
+ fn: C(({ toggleAnnotator: t, isAnnotator: l }) => [
528
+ k(a.$slots, "optionAnnotator", D(E({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
529
+ ]),
530
+ key: "7"
531
+ } : void 0
532
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
533
+ W.value ? (s(), n("svg", {
534
+ key: 3,
535
+ xmlns: z(Mt),
536
+ viewBox: `0 0 ${r.value.chartWidth <= 0 ? 10 : r.value.chartWidth} ${r.value.chartHeight <= 0 ? 10 : r.value.chartHeight}`,
537
+ style: U(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
538
+ }, [
539
+ se(Ut),
540
+ e.value.style.chart.bars.gradient.show ? (s(), n("defs", Zt, [
541
+ (s(!0), n(h, null, f(m.value, (t, l) => (s(), n("linearGradient", {
542
+ id: `gradient_${t.id}`,
543
+ x1: "0%",
544
+ y1: "0%",
545
+ x2: "0%",
546
+ y2: "100%"
547
+ }, [
548
+ H("stop", {
549
+ offset: "0%",
550
+ "stop-color": t.color
551
+ }, null, 8, Qt),
552
+ H("stop", {
553
+ offset: "61.8%",
554
+ "stop-color": z(Tt)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
555
+ }, null, 8, jt),
556
+ H("stop", {
557
+ offset: "100%",
558
+ "stop-color": t.color
559
+ }, null, 8, ea)
560
+ ], 8, Kt))), 256))
561
+ ])) : v("", !0),
562
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 1 }, f(N.value, (t, l) => (s(), n("line", {
563
+ x1: r.value.left,
564
+ x2: r.value.right,
565
+ y1: t.y,
566
+ y2: t.y,
567
+ stroke: e.value.style.chart.grid.x.axisColor,
568
+ "stroke-width": 1,
569
+ "stroke-linecap": "round"
570
+ }, null, 8, ta))), 256)) : v("", !0),
571
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 2 }, f(c.value.end - c.value.start + 1, (t, l) => (s(), n("line", {
572
+ x1: r.value.left,
573
+ x2: r.value.right,
574
+ y1: r.value.top + d.value * l,
575
+ y2: r.value.top + d.value * l,
576
+ stroke: e.value.style.chart.grid.y.axisColor,
577
+ "stroke-width": 1,
578
+ "stroke-linecap": "round"
579
+ }, null, 8, aa))), 256)) : v("", !0),
580
+ e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 3 }, f(c.value.end - c.value.start + 1, (t, l) => (s(), n("line", {
581
+ x1: r.value.left + d.value * l,
582
+ x2: r.value.left + d.value * l,
583
+ y1: r.value.top,
584
+ y2: r.value.bottom,
585
+ stroke: e.value.style.chart.grid.y.axisColor,
586
+ "stroke-width": 1,
587
+ "stroke-linecap": "round"
588
+ }, null, 8, la))), 256)) : v("", !0),
589
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 4 }, f(N.value, (t, l) => (s(), n("line", {
590
+ x1: t.horizontal_x,
591
+ x2: t.horizontal_x,
592
+ y1: r.value.top,
593
+ y2: r.value.bottom,
594
+ stroke: e.value.style.chart.grid.x.axisColor,
595
+ "stroke-width": 1,
596
+ "stroke-linecap": "round"
597
+ }, null, 8, oa))), 256)) : v("", !0),
598
+ (s(!0), n(h, null, f(m.value, (t, l) => (s(), n("g", null, [
599
+ e.value.orientation === "vertical" ? (s(!0), n(h, { key: 0 }, f(t.x, (i, u) => (s(), n("rect", {
600
+ x: i,
601
+ y: t.y[u] < 0 ? 0 : t.y[u],
602
+ height: t.height[u] < 0 ? 1e-4 : t.height[u],
603
+ rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
604
+ width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
605
+ fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
606
+ stroke: e.value.style.chart.backgroundColor,
607
+ "stroke-width": e.value.style.chart.bars.strokeWidth,
608
+ "stroke-linecap": "round",
609
+ "stroke-linejoin": "round",
610
+ class: ye({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": J.value })
611
+ }, null, 10, ra))), 256)) : (s(!0), n(h, { key: 1 }, f(t.horizontal_x, (i, u) => (s(), n("rect", {
612
+ x: i,
613
+ y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
614
+ width: t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u],
615
+ rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
616
+ height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
617
+ fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
618
+ stroke: e.value.style.chart.backgroundColor,
619
+ "stroke-width": e.value.style.chart.bars.strokeWidth,
620
+ "stroke-linecap": "round",
621
+ "stroke-linejoin": "round",
622
+ class: ye({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": J.value })
623
+ }, null, 10, sa))), 256))
624
+ ]))), 256)),
625
+ e.value.style.chart.grid.x.showAxis ? (s(), n("line", {
626
+ key: 5,
627
+ x1: r.value.left,
628
+ x2: r.value.right,
629
+ y1: r.value.bottom,
630
+ y2: r.value.bottom,
631
+ stroke: e.value.style.chart.grid.x.axisColor,
632
+ "stroke-width": e.value.style.chart.grid.x.axisThickness,
633
+ "stroke-linecap": "round",
634
+ "stroke-linejoin": "round"
635
+ }, null, 8, ia)) : v("", !0),
636
+ e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), n("line", {
637
+ key: 6,
638
+ x1: r.value.left,
639
+ x2: r.value.left,
640
+ y1: r.value.top,
641
+ y2: r.value.bottom,
642
+ stroke: e.value.style.chart.grid.y.axisColor,
643
+ "stroke-width": e.value.style.chart.grid.y.axisThickness,
644
+ "stroke-linecap": "round",
645
+ "stroke-linejoin": "round"
646
+ }, null, 8, na)) : v("", !0),
647
+ e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), n("text", {
648
+ key: 7,
649
+ x: r.value.left + r.value.width / 2,
650
+ y: r.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
651
+ "font-size": e.value.style.chart.grid.x.axisName.fontSize,
652
+ fill: e.value.style.chart.grid.x.axisName.color,
653
+ "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
654
+ "text-anchor": "middle"
655
+ }, S(e.value.style.chart.grid.x.axisName.text), 9, ua)) : v("", !0),
656
+ e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), n("text", {
657
+ key: 8,
658
+ transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
659
+ "font-size": e.value.style.chart.grid.y.axisName.fontSize,
660
+ fill: e.value.style.chart.grid.y.axisName.color,
661
+ "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
662
+ "text-anchor": "middle"
663
+ }, S(e.value.style.chart.grid.y.axisName.text), 9, ca)) : v("", !0),
664
+ _.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), n(h, { key: 9 }, [
665
+ (s(!0), n(h, null, f(m.value, (t, l) => (s(), n("g", null, [
666
+ (s(!0), n(h, null, f(t.x, (i, u) => (s(), n("text", {
667
+ x: i + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
668
+ y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
669
+ "font-size": e.value.style.chart.bars.dataLabels.fontSize,
670
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? z(Ke)(t.color) : e.value.style.chart.bars.dataLabels.color,
671
+ "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
672
+ "text-anchor": "middle"
673
+ }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Pe(t.proportions[u] * 100, t, l, u) : ae(t.series[u], t, l, u, t.signedSeries[u])), 9, va))), 256))
674
+ ]))), 256)),
675
+ e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), n("g", ha, [
676
+ (s(!0), n(h, null, f(Oe.value, (t, l) => (s(), n("text", {
677
+ x: r.value.left + d.value * l + d.value / 2,
678
+ y: r.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
679
+ "text-anchor": "middle",
680
+ "font-size": e.value.style.chart.bars.totalValues.fontSize,
681
+ "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
682
+ fill: e.value.style.chart.bars.totalValues.color
683
+ }, S(ae(t.value, t, l, t.sign)), 9, da))), 256))
684
+ ])) : v("", !0)
685
+ ], 64)) : v("", !0),
686
+ _.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), n(h, { key: 10 }, [
687
+ (s(!0), n(h, null, f(m.value, (t, l) => (s(), n("g", null, [
688
+ (s(!0), n(h, null, f(t.horizontal_x, (i, u) => (s(), n("text", {
689
+ x: i + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
690
+ y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
691
+ "font-size": e.value.style.chart.bars.dataLabels.fontSize,
692
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? z(Ke)(t.color) : e.value.style.chart.bars.dataLabels.color,
693
+ "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
694
+ "text-anchor": "middle"
695
+ }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Pe(t.proportions[u] * 100, t, l, u) : ae(t.series[u], t, l, u, t.signedSeries[u])), 9, ya))), 256))
696
+ ]))), 256)),
697
+ e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), n("g", ga, [
698
+ (s(!0), n(h, null, f(Oe.value, (t, l) => (s(), n("text", {
699
+ x: r.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
700
+ y: r.value.top + d.value * l + d.value / 2,
701
+ "text-anchor": "start",
702
+ "font-size": e.value.style.chart.bars.totalValues.fontSize,
703
+ "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
704
+ fill: e.value.style.chart.bars.totalValues.color
705
+ }, S(ae(t.value, t, l, t.sign)), 9, ba))), 256))
706
+ ])) : v("", !0)
707
+ ], 64)) : v("", !0),
708
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (s(), n(h, { key: 11 }, [
709
+ (s(!0), n(h, null, f(N.value, (t, l) => (s(), n("line", {
710
+ x1: r.value.left,
711
+ x2: r.value.left - 6,
712
+ y1: t.y,
713
+ y2: t.y,
714
+ stroke: e.value.style.chart.grid.x.axisColor,
715
+ "stroke-width": 1
716
+ }, null, 8, fa))), 256)),
717
+ (s(!0), n(h, null, f(N.value, (t, l) => (s(), n("text", {
718
+ x: t.x,
719
+ y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
720
+ "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
721
+ "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
722
+ fill: e.value.style.chart.grid.y.axisLabels.color,
723
+ "text-anchor": "end"
724
+ }, S(z(B)({
725
+ p: e.value.style.chart.bars.dataLabels.prefix,
726
+ v: t.value,
727
+ s: e.value.style.chart.bars.dataLabels.suffix,
728
+ r: e.value.style.chart.grid.y.axisLabels.rounding
729
+ })), 9, ma))), 256))
730
+ ], 64)) : v("", !0),
731
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), n(h, { key: 12 }, [
732
+ (s(!0), n(h, null, f(N.value, (t, l) => (s(), n("line", {
733
+ x1: t.horizontal_x,
734
+ x2: t.horizontal_x,
735
+ y1: r.value.bottom,
736
+ y2: r.value.bottom + 6,
737
+ stroke: e.value.style.chart.grid.x.axisColor,
738
+ "stroke-width": 1,
739
+ "stroke-linecap": "round"
740
+ }, null, 8, pa))), 256)),
741
+ (s(!0), n(h, null, f(N.value, (t, l) => (s(), n("text", {
742
+ "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
743
+ "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
744
+ fill: e.value.style.chart.grid.y.axisLabels.color,
745
+ "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
746
+ transform: `translate(${t.horizontal_x}, ${r.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
747
+ }, S(z(B)({
748
+ p: e.value.style.chart.bars.dataLabels.prefix,
749
+ v: t.value,
750
+ s: e.value.style.chart.bars.dataLabels.suffix,
751
+ r: e.value.style.chart.grid.y.axisLabels.rounding
752
+ })), 9, xa))), 256))
753
+ ], 64)) : v("", !0),
754
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 13 }, f(Z.value, (t, l) => (s(), n("text", {
755
+ "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
756
+ "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
757
+ "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
758
+ fill: e.value.style.chart.grid.x.timeLabels.color,
759
+ transform: `translate(${r.value.left + d.value * l + d.value / 2}, ${r.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
760
+ }, S(t), 9, ka))), 256)) : v("", !0),
761
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 14 }, f(Z.value, (t, l) => (s(), n("text", {
762
+ "text-anchor": "end",
763
+ "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
764
+ "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
765
+ fill: e.value.style.chart.grid.y.axisLabels.color,
766
+ x: r.value.left - 8,
767
+ y: r.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3
768
+ }, S(t), 9, wa))), 256)) : v("", !0),
769
+ _.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 15 }, f(c.value.end - c.value.start, (t, l) => (s(), n("rect", {
770
+ x: r.value.left + l * d.value,
771
+ y: r.value.top,
772
+ width: d.value,
773
+ height: r.value.height < 0 ? 0 : r.value.height,
774
+ onClick: (i) => Ae(l),
775
+ onMouseenter: (i) => Re(l),
776
+ onMouseleave: o[0] || (o[0] = (i) => {
777
+ G.value = null, j.value = !1;
778
+ }),
779
+ fill: l === G.value ? e.value.style.chart.highlighter.color : "transparent",
780
+ style: U({ opacity: e.value.style.chart.highlighter.opacity / 100 })
781
+ }, null, 44, Ca))), 256)) : v("", !0),
782
+ _.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 16 }, f(c.value.end - c.value.start, (t, l) => (s(), n("rect", {
783
+ x: r.value.left,
784
+ y: r.value.top + l * d.value,
785
+ width: r.value.width < 0 ? 0 : r.value.width,
786
+ height: d.value,
787
+ onClick: (i) => Ae(l),
788
+ onMouseenter: (i) => Re(l),
789
+ onMouseleave: o[1] || (o[1] = (i) => {
790
+ G.value = null, j.value = !1;
791
+ }),
792
+ fill: l === G.value ? e.value.style.chart.highlighter.color : "transparent",
793
+ style: U({ opacity: e.value.style.chart.highlighter.opacity / 100 })
794
+ }, null, 44, _a))), 256)) : v("", !0),
795
+ k(a.$slots, "svg", D(E({ ...r.value })), void 0, !0)
796
+ ], 12, qt)) : v("", !0),
797
+ a.$slots.watermark ? (s(), n("div", za, [
798
+ k(a.$slots, "watermark", D(E({ isPrinting: z(ze) || z(Le) })), void 0, !0)
799
+ ])) : v("", !0),
800
+ W.value ? v("", !0) : (s(), Y(Xt, {
801
+ key: 5,
802
+ config: {
803
+ type: "bar",
804
+ style: {
805
+ backgroundColor: e.value.style.chart.backgroundColor,
806
+ bar: {
807
+ axis: {
808
+ color: "#CCCCCC"
809
+ },
810
+ color: "#CCCCCC"
811
+ }
812
+ }
813
+ }
814
+ }, null, 8, ["config"])),
815
+ H("div", {
816
+ ref_key: "chartSlicer",
817
+ ref: ke,
818
+ style: U(`width:100%;background:${e.value.style.chart.backgroundColor}`),
819
+ "data-html2canvas-ignore": ""
820
+ }, [
821
+ e.value.style.chart.zoom.show && A.value > 1 ? (s(), Y(Vt, {
822
+ key: `slicer_${Ce.value}`,
823
+ background: e.value.style.chart.zoom.color,
824
+ borderColor: e.value.style.chart.backgroundColor,
825
+ fontSize: e.value.style.chart.zoom.fontSize,
826
+ useResetSlot: e.value.style.chart.zoom.useResetSlot,
827
+ labelLeft: e.value.style.chart.grid.x.timeLabels.values[c.value.start] ? e.value.style.chart.grid.x.timeLabels.values[c.value.start] : "",
828
+ labelRight: e.value.style.chart.grid.x.timeLabels.values[c.value.end - 1] ? e.value.style.chart.grid.x.timeLabels.values[c.value.end - 1] : "",
829
+ textColor: e.value.style.chart.color,
830
+ inputColor: e.value.style.chart.zoom.color,
831
+ selectColor: e.value.style.chart.zoom.highlightColor,
832
+ max: Math.max(...ge.dataset.map((t) => t.series.length)),
833
+ min: 0,
834
+ valueStart: c.value.start,
835
+ valueEnd: c.value.end,
836
+ start: c.value.start,
837
+ "onUpdate:start": o[2] || (o[2] = (t) => c.value.start = t),
838
+ end: c.value.end,
839
+ "onUpdate:end": o[3] || (o[3] = (t) => c.value.end = t),
840
+ onReset: Ne
841
+ }, {
842
+ "reset-action": C(({ reset: t }) => [
843
+ k(a.$slots, "reset-action", D(E({ reset: t })), void 0, !0)
844
+ ]),
845
+ _: 3
846
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : v("", !0)
847
+ ], 4),
848
+ se(Dt, {
849
+ show: _.value.showTooltip && j.value,
850
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
851
+ color: e.value.style.chart.tooltip.color,
852
+ fontSize: e.value.style.chart.tooltip.fontSize,
853
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
854
+ borderColor: e.value.style.chart.tooltip.borderColor,
855
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
856
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
857
+ position: e.value.style.chart.tooltip.position,
858
+ offsetY: e.value.style.chart.tooltip.offsetY,
859
+ parent: X.value,
860
+ content: ce.value,
861
+ isCustom: z(Qe)(e.value.style.chart.tooltip.customFormat)
862
+ }, {
863
+ "tooltip-before": C(() => [
864
+ k(a.$slots, "tooltip-before", D(E({ ...fe.value })), void 0, !0)
865
+ ]),
866
+ "tooltip-after": C(() => [
867
+ k(a.$slots, "tooltip-after", D(E({ ...fe.value })), void 0, !0)
868
+ ]),
869
+ _: 3
870
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
871
+ H("div", {
872
+ ref_key: "chartLegend",
873
+ ref: xe
874
+ }, [
875
+ e.value.style.chart.legend.show && W.value ? (s(), Y(Ht, {
876
+ key: 0,
877
+ legendSet: He.value,
878
+ config: vt.value,
879
+ onClickMarker: o[4] || (o[4] = ({ legend: t }) => t.segregate())
880
+ }, {
881
+ item: C(({ legend: t }) => [
882
+ H("div", {
883
+ onClick: (l) => t.segregate(),
884
+ style: U(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
885
+ }, S(t.name), 13, La)
886
+ ]),
887
+ _: 1
888
+ }, 8, ["legendSet", "config"])) : k(a.$slots, "legend", {
889
+ key: 1,
890
+ legend: He.value
891
+ }, void 0, !0)
892
+ ], 512),
893
+ a.$slots.source ? (s(), n("div", {
894
+ key: 6,
895
+ ref_key: "source",
896
+ ref: we,
897
+ dir: "auto"
898
+ }, [
899
+ k(a.$slots, "source", {}, void 0, !0)
900
+ ], 512)) : v("", !0),
901
+ c.value.end - c.value.start < 200 ? (s(), Y(Bt, {
902
+ key: 7,
903
+ hideDetails: "",
904
+ config: {
905
+ open: _.value.showTable,
906
+ maxHeight: 1e4,
907
+ body: {
908
+ backgroundColor: e.value.style.chart.backgroundColor,
909
+ color: e.value.style.chart.color
910
+ },
911
+ head: {
912
+ backgroundColor: e.value.style.chart.backgroundColor,
913
+ color: e.value.style.chart.color
914
+ }
915
+ }
916
+ }, {
917
+ content: C(() => [
918
+ se(Wt, {
919
+ colNames: le.value.colNames,
920
+ head: le.value.head,
921
+ body: le.value.body,
922
+ config: le.value.config,
923
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
924
+ onClose: o[5] || (o[5] = (t) => _.value.showTable = !1)
925
+ }, {
926
+ th: C(({ th: t }) => [
927
+ H("div", { innerHTML: t }, null, 8, Sa)
928
+ ]),
929
+ td: C(({ td: t }) => [
930
+ kt(S(isNaN(Number(t)) ? t : z(B)({
931
+ p: e.value.style.chart.bars.dataLabels.prefix,
932
+ v: t,
933
+ s: e.value.style.chart.bars.dataLabels.suffix,
934
+ r: e.value.table.td.roundingValue
935
+ })), 1)
936
+ ]),
937
+ _: 1
938
+ }, 8, ["colNames", "head", "body", "config", "title"])
939
+ ]),
940
+ _: 1
941
+ }, 8, ["config"])) : v("", !0)
942
+ ], 14, Jt));
943
+ }
944
+ }, Xa = /* @__PURE__ */ Gt($a, [["__scopeId", "data-v-d80dd138"]]);
945
+ export {
946
+ Xa as default
947
+ };