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
@@ -1,915 +0,0 @@
1
- import { computed as p, ref as b, onMounted as He, watch as Be, openBlock as s, createElementBlock as u, normalizeClass as he, normalizeStyle as B, renderSlot as _, createVNode as oe, createCommentVNode as v, createBlock as Q, unref as C, createSlots as ft, withCtx as z, normalizeProps as W, guardReactiveProps as X, Fragment as h, renderList as f, createElementVNode as D, toDisplayString as S, createTextVNode as mt } from "vue";
2
- import { u as pt, c as We, t as xt, a as kt, p as se, M as Xe, b as wt, o as _t, e as Ue, g as Ct, d as zt, a4 as ie, a0 as Ye, C as Ge, X as Lt, l as St, F as Je, f as E, x as qe, i as Ze, y as Mt, q as $t, r as Tt } from "./index-DDXisDKy.js";
3
- import { u as Ke } from "./useNestedProp-S1UXxUgm.js";
4
- import { t as Nt, u as Ot } from "./useResponsive-NZB-WLRF.js";
5
- import { u as Pt, U as Rt } from "./usePrinter-8ofTb2MJ.js";
6
- import { S as It } from "./Slicer-BZfUZr1J.js";
7
- import { _ as Ft } from "./Tooltip-CICAYyQj.js";
8
- import { _ as Vt } from "./Title-DYNLqCCT.js";
9
- import { L as At } from "./Legend-DXLiSLHd.js";
10
- import Dt from "./vue-ui-accordion-D_1fE5EF.js";
11
- import { D as Et } from "./DataTable-DL2agEJ3.js";
12
- import Ht from "./vue-ui-skeleton-B2sRnIXX.js";
13
- import { _ as Bt } from "./PackageVersion-DtnhR89q.js";
14
- import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- const Xt = ["id"], Ut = ["xmlns", "viewBox"], Yt = { key: 0 }, Gt = ["id"], Jt = ["stop-color"], qt = ["stop-color"], Zt = ["stop-color"], Kt = ["x1", "x2", "y1", "y2", "stroke"], Qt = ["x1", "x2", "y1", "y2", "stroke"], jt = ["x1", "x2", "y1", "y2", "stroke"], ea = ["x1", "x2", "y1", "y2", "stroke"], ta = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], aa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], la = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ra = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], oa = ["x", "y", "font-size", "fill", "font-weight"], sa = ["transform", "font-size", "fill", "font-weight"], ia = ["x", "y", "font-size", "fill", "font-weight"], ua = { key: 0 }, na = ["x", "y", "font-size", "font-weight", "fill"], ca = ["x", "y", "font-size", "fill", "font-weight"], va = { key: 0 }, ha = ["x", "y", "font-size", "font-weight", "fill"], da = ["x1", "x2", "y1", "y2", "stroke"], ya = ["x", "y", "font-size", "font-weight", "fill"], ga = ["x1", "x2", "y1", "y2", "stroke"], ba = ["font-size", "font-weight", "fill", "text-anchor", "transform"], fa = ["text-anchor", "font-size", "font-weight", "fill", "transform"], ma = ["font-size", "font-weight", "fill", "x", "y"], pa = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], xa = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ka = {
16
- key: 3,
17
- class: "vue-data-ui-watermark"
18
- }, wa = ["onClick"], _a = ["innerHTML"], Ca = {
19
- __name: "vue-ui-stackbar",
20
- props: {
21
- config: {
22
- type: Object,
23
- default() {
24
- return {};
25
- }
26
- },
27
- dataset: {
28
- type: Array,
29
- default() {
30
- return [];
31
- }
32
- }
33
- },
34
- emits: ["selectDatapoint", "selectLegend"],
35
- setup(de, { expose: Qe, emit: ye }) {
36
- const x = de, { vue_ui_stackbar: je } = pt(), H = p({
37
- get() {
38
- return !!x.dataset && x.dataset.length;
39
- },
40
- set(a) {
41
- return a;
42
- }
43
- }), U = b(null), ue = b(We()), j = b(!1), ge = b(null), ne = b(""), L = b([]), be = b(0), fe = b(null), me = b(null), pe = b(null), xe = b(0), ce = b(!1), Y = b(null), G = b(!1), et = b(0), tt = b(0), at = b(0);
44
- He(() => {
45
- ve();
46
- });
47
- const e = p({
48
- get: () => ke(),
49
- set: (a) => a
50
- });
51
- function ke() {
52
- const a = Ke({
53
- userConfig: x.config,
54
- defaultConfig: je
55
- });
56
- let r = {};
57
- return a.theme ? r = {
58
- ...Ke({
59
- userConfig: xt.vue_ui_stackbar[a.theme] || x.config,
60
- defaultConfig: a
61
- }),
62
- customPalette: kt[a.theme] || se
63
- } : r = a, x.config && Xe(x.config, "style.chart.grid.scale.scaleMin") ? r.style.chart.grid.scale.scaleMin = x.config.style.chart.grid.scale.scaleMin : r.style.chart.grid.scale.scaleMin = null, x.config && Xe(x.config, "style.chart.grid.scale.scaleMax") ? r.style.chart.grid.scale.scaleMax = x.config.style.chart.grid.scale.scaleMax : r.style.chart.grid.scale.scaleMax = null, r;
64
- }
65
- Be(() => x.config, (a) => {
66
- e.value = ke(), ve(), et.value += 1, tt.value += 1, at.value += 1;
67
- }, { deep: !0 }), Be(() => x.dataset, (a) => {
68
- Me();
69
- }, { deep: !0 });
70
- const w = b({
71
- dataLabels: {
72
- show: e.value.style.chart.bars.dataLabels.show
73
- },
74
- showTable: e.value.table.show,
75
- showTooltip: e.value.style.chart.tooltip.show
76
- }), { isPrinting: we, isImaging: _e, generatePdf: Ce, generateImage: ze } = Pt({
77
- elementId: `stackbar_${ue.value}`,
78
- fileName: e.value.style.chart.title.text || "vue-ui-stackbar"
79
- }), ee = b({
80
- width: e.value.style.chart.width,
81
- height: e.value.style.chart.height,
82
- paddingRatio: {
83
- top: e.value.style.chart.padding.top / e.value.style.chart.height,
84
- right: e.value.style.chart.padding.right / e.value.style.chart.width,
85
- bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
86
- left: e.value.style.chart.padding.left / e.value.style.chart.width
87
- }
88
- }), lt = p(() => wt(e.value.customPalette)), Le = b(null), Se = b(null);
89
- He(() => {
90
- ve();
91
- });
92
- function ve() {
93
- if (_t(x.dataset) ? Ue({
94
- componentName: "VueUiStackbar",
95
- type: "dataset"
96
- }) : x.dataset.forEach((a, r) => {
97
- Ct({
98
- datasetObject: a,
99
- requiredAttributes: ["name", "series"]
100
- }).forEach((t) => {
101
- H.value = !1, Ue({
102
- componentName: "VueUiStackbar",
103
- type: "datasetSerieAttribute",
104
- property: t,
105
- index: r
106
- });
107
- });
108
- }), setTimeout(() => {
109
- G.value = !0;
110
- }, 10), e.value.responsive) {
111
- const a = Nt(() => {
112
- G.value = !1;
113
- const { width: r, height: t } = Ot({
114
- chart: U.value,
115
- title: e.value.style.chart.title.text ? fe.value : null,
116
- legend: e.value.style.chart.legend.show ? me.value : null,
117
- slicer: e.value.style.chart.zoom.show && R.value > 1 ? pe.value : null
118
- });
119
- ee.value.width = r, ee.value.height = t, clearTimeout(Se.value), Se.value = setTimeout(() => {
120
- G.value = !0;
121
- }, 10);
122
- });
123
- Le.value = new ResizeObserver(a), Le.value.observe(U.value.parentNode);
124
- }
125
- }
126
- const o = p(() => {
127
- const { height: a, width: r } = ee.value, { right: t } = ee.value.paddingRatio, l = e.value.style.chart.padding.top, i = r - r * t, n = a - e.value.style.chart.padding.bottom, k = e.value.style.chart.padding.left, I = r - k - r * t, F = a - l - e.value.style.chart.padding.bottom;
128
- return {
129
- chartHeight: a,
130
- chartWidth: r,
131
- top: l,
132
- right: i,
133
- bottom: n,
134
- left: k,
135
- width: I,
136
- height: F < 0 ? 0 : F
137
- };
138
- }), P = p(() => x.dataset.map((a, r) => {
139
- const t = zt(a.color) || lt.value[r] || se[r] || se[r % se.length];
140
- return {
141
- ...a,
142
- // In distributed mode, all values are converted to positive
143
- series: JSON.parse(JSON.stringify(a.series)).map((l) => e.value.style.chart.bars.distributed ? Math.abs(l) : l),
144
- // Store signs to manage display of neg values in distributed mode
145
- signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
146
- absoluteIndex: r,
147
- id: We(),
148
- color: t
149
- };
150
- })), R = p(() => Math.max(...P.value.filter((a) => !L.value.includes(a.id)).map((a) => a.series.length))), c = b({
151
- start: 0,
152
- end: Math.max(...x.dataset.map((a) => a.series.length))
153
- });
154
- function Me() {
155
- c.value = {
156
- start: 0,
157
- end: Math.max(...x.dataset.map((a) => a.series.length))
158
- }, xe.value += 1;
159
- }
160
- const d = p(() => {
161
- let a;
162
- return e.value.orientation === "vertical" ? a = o.value.width / (c.value.end - c.value.start) : a = o.value.height / (c.value.end - c.value.start), a <= 0 ? 0 : a;
163
- }), J = p(() => ie(P.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)), rt = p(() => ie(P.value.filter((a) => !L.value.includes(a.id)).map((a) => ({
164
- ...a,
165
- series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
166
- }))).slice(c.value.start, c.value.end)), te = p(() => {
167
- const a = P.value.filter((r) => !L.value.includes(r.id));
168
- return {
169
- positive: ie(a.map((r) => ({
170
- ...r,
171
- series: r.series.slice(c.value.start, c.value.end).map((t) => t >= 0 ? t : 0)
172
- }))),
173
- negative: ie(a.map((r) => ({
174
- ...r,
175
- series: r.series.slice(c.value.start, c.value.end).map((t) => t < 0 ? t : 0)
176
- })))
177
- };
178
- }), N = p(() => {
179
- 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), r = 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(r) ? 0 : r, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ye(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Ge(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
180
- return l.ticks.map((i) => ({
181
- zero: o.value.bottom - o.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
182
- y: o.value.bottom - o.value.height * ((i + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
183
- x: o.value.left - 8,
184
- horizontal_zero: o.value.left + o.value.width * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
185
- horizontal_x: o.value.left + o.value.width * ((i + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
186
- horizontal_y: o.value.bottom - 8,
187
- value: i
188
- }));
189
- }), q = p(() => e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)), m = p(() => {
190
- if (!H.value) return [];
191
- let a = Array(R.value).fill(0), r = Array(R.value).fill(0), t = Array(R.value).fill(0), l = Array(R.value).fill(0);
192
- const i = Math.max(...te.value.positive) || 0, n = Math.min(...te.value.negative), k = [-1 / 0, 1 / 0, NaN, void 0, null].includes(n) ? 0 : n, I = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ye(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : k > 0 ? 0 : k, 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) : Ge(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : k > 0 ? 0 : k, 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: F, max: Z } = I, V = Z + (F >= 0 ? 0 : Math.abs(F)) || 1, M = o.value.height, re = o.value.width, De = N.value[0] ? N.value[0].zero : o.value.bottom, Ee = N.value[0] ? N.value[0].horizontal_zero : o.value.left;
193
- return P.value.filter((K) => !L.value.includes(K.id)).map((K) => {
194
- const O = K.series.slice(c.value.start, c.value.end), nt = K.signedSeries.slice(c.value.start, c.value.end), ct = O.map((y, g) => o.value.left + d.value * g + d.value * e.value.style.chart.bars.gapRatio / 4), vt = O.map((y, g) => o.value.top + d.value * g + d.value * e.value.style.chart.bars.gapRatio / 4), ht = O.map((y, g) => {
195
- const $ = e.value.style.chart.bars.distributed ? (y || 0) / J.value[g] : (y || 0) / V;
196
- let A, T;
197
- return y > 0 ? (T = M * $, A = De - T - a[g], a[g] += T) : (T = M * $, A = De + t[g], t[g] += Math.abs(T)), A;
198
- }), dt = O.map((y, g) => {
199
- const $ = e.value.style.chart.bars.distributed ? (y || 0) / J.value[g] : (y || 0) / V;
200
- let A, T;
201
- return y > 0 ? (T = re * $, A = Ee + r[g], r[g] += T) : (T = re * $, A = Ee - Math.abs(T) - l[g], l[g] += Math.abs(T)), A;
202
- }), yt = O.map((y, g) => {
203
- const $ = e.value.style.chart.bars.distributed ? (y || 0) / J.value[g] : (y || 0) / V;
204
- return y > 0 ? M * $ : M * Math.abs($);
205
- }), gt = O.map((y, g) => {
206
- const $ = e.value.style.chart.bars.distributed ? (y || 0) / J.value[g] : (y || 0) / V;
207
- return y > 0 ? re * $ : re * Math.abs($);
208
- }), bt = O.map((y) => Math.abs(y)).reduce((y, g) => y + g, 0);
209
- return {
210
- ...K,
211
- proportions: O.map((y, g) => e.value.style.chart.bars.distributed ? (y || 0) / J.value[g] : (y || 0) / bt),
212
- series: O,
213
- signedSeries: nt,
214
- x: ct,
215
- y: ht,
216
- height: yt,
217
- horizontal_width: gt,
218
- horizontal_y: vt,
219
- horizontal_x: dt
220
- };
221
- });
222
- }), $e = p(() => rt.value.map((a, r) => ({
223
- value: a,
224
- sign: a >= 0 ? 1 : -1
225
- })));
226
- function ae(a, r, t, l, i) {
227
- const n = i === -1 && a >= 0 ? -a : a;
228
- return Ze(
229
- e.value.style.chart.bars.dataLabels.formatter,
230
- n,
231
- E({
232
- p: e.value.style.chart.bars.dataLabels.prefix,
233
- v: n,
234
- s: e.value.style.chart.bars.dataLabels.suffix,
235
- r: e.value.style.chart.bars.dataLabels.rounding
236
- }),
237
- { datapoint: r, seriesIndex: t, datapointIndex: l }
238
- );
239
- }
240
- function Te(a, r, t, l) {
241
- return Ze(
242
- e.value.style.chart.bars.dataLabels.formatter,
243
- a,
244
- E({
245
- v: a,
246
- s: "%",
247
- r: e.value.style.chart.bars.dataLabels.rounding
248
- }),
249
- { datapoint: r, seriesIndex: t, datapointIndex: l }
250
- );
251
- }
252
- function Ne(a) {
253
- const r = JSON.parse(JSON.stringify(m.value)).map((t) => ({
254
- name: t.name,
255
- value: t.series[a] === 0 ? 0 : t.series[a] || null,
256
- proportion: t.proportions[a] || null,
257
- color: t.color,
258
- id: t.id
259
- }));
260
- ye("selectDatapoint", { datapoint: r, period: q.value[a] });
261
- }
262
- function Oe(a) {
263
- Y.value = a, j.value = !0;
264
- const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(m.value)).map((i) => ({
265
- name: i.name,
266
- value: i.series[a] === 0 ? 0 : (i.signedSeries[a] === -1 && i.series[a] >= 0 ? -i.series[a] : i.series[a]) || null,
267
- proportion: i.proportions[a] || null,
268
- color: i.color,
269
- id: i.id
270
- })), l = t.map((i) => Math.abs(i.value)).reduce((i, n) => i + n, 0);
271
- if (qe(r) && Mt(() => r({
272
- seriesIndex: a,
273
- datapoint: t,
274
- series: m.value,
275
- config: e.value
276
- })))
277
- ne.value = r({
278
- seriesIndex: a,
279
- datapoint: t,
280
- series: m.value,
281
- config: e.value
282
- });
283
- else {
284
- const {
285
- showValue: i,
286
- showPercentage: n,
287
- borderColor: k,
288
- roundingValue: I,
289
- roundingPercentage: F
290
- } = e.value.style.chart.tooltip;
291
- let Z = "";
292
- q.value[a] && (Z += `<div style="width:100%;text-align:center;border-bottom:1px solid ${k};padding-bottom:6px;margin-bottom:3px;">${q.value[a]}</div>`);
293
- const V = [
294
- i && n ? "(" : "",
295
- i && n ? ")" : ""
296
- ];
297
- t.reverse().forEach((M) => {
298
- Z += `
299
- <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
300
- <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_${M.id})` : M.color}"/></svg>
301
- ${M.name}${i || n ? ":" : ""} ${i ? E({
302
- p: e.value.style.chart.bars.dataLabels.prefix,
303
- v: M.value,
304
- s: e.value.style.chart.bars.dataLabels.suffix,
305
- r: I
306
- }) : ""} ${V[0]}${n ? E({
307
- v: isNaN(M.value / l) ? 0 : Math.abs(M.value) / l * 100,
308
- // Negs are absed to show relative proportion to absolute total. It's opinionated.
309
- s: "%",
310
- r: F
311
- }) : ""}${V[1]}
312
- </div>
313
- `;
314
- }), ne.value = `<div>${Z}</div>`;
315
- }
316
- }
317
- function ot(a) {
318
- ce.value = a, be.value += 1;
319
- }
320
- function Pe() {
321
- w.value.showTable = !w.value.showTable;
322
- }
323
- function Re() {
324
- w.value.dataLabels.show = !w.value.dataLabels.show;
325
- }
326
- function Ie() {
327
- w.value.showTooltip = !w.value.showTooltip;
328
- }
329
- function st() {
330
- return m.value;
331
- }
332
- const Fe = p(() => {
333
- if (m.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
334
- const a = m.value.map(({ name: t, color: l }) => ({
335
- label: t,
336
- color: l
337
- })), r = [];
338
- for (let t = c.value.start; t < c.value.end; t += 1) {
339
- const l = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
340
- P.value.forEach((i) => {
341
- l.push(Number((i.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
342
- }), r.push(l);
343
- }
344
- return { head: a, body: r };
345
- });
346
- function Ve() {
347
- const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], r = ["", ...Fe.value.head.map((n) => n.label)], t = Fe.value.body, l = a.concat([r]).concat(t), i = $t(l);
348
- Tt({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
349
- }
350
- const le = p(() => {
351
- 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>');
352
- let r = [];
353
- for (let i = 0; i < R.value; i += 1) {
354
- const n = m.value.map((k) => k.series[i] ?? 0).reduce((k, I) => k + I, 0);
355
- r.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[i] ?? i + 1].concat(m.value.map((k) => (k.series[i] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((n ?? 0).toFixed(e.value.table.td.roundingValue)));
356
- }
357
- const t = {
358
- th: {
359
- backgroundColor: e.value.table.th.backgroundColor,
360
- color: e.value.table.th.color,
361
- outline: e.value.table.th.outline
362
- },
363
- td: {
364
- backgroundColor: e.value.table.td.backgroundColor,
365
- color: e.value.table.td.color,
366
- outline: e.value.table.td.outline
367
- },
368
- breakpoint: e.value.table.responsiveBreakpoint
369
- }, l = [e.value.table.columnNames.period].concat(m.value.map((i) => i.name)).concat(e.value.table.columnNames.total);
370
- return { head: a, body: r.slice(0, c.value.end - c.value.start), config: t, colNames: l };
371
- });
372
- function it(a, r) {
373
- if (ye("selectLegend", m.value.find((t) => t.absoluteIndex === a)), L.value.includes(r.id))
374
- L.value = L.value.filter((t) => t !== r.id);
375
- else {
376
- if (L.value.length === P.value.length - 1) return;
377
- L.value.push(r.id);
378
- }
379
- }
380
- const Ae = p(() => P.value.map((a, r) => ({
381
- ...a,
382
- shape: "square"
383
- })).map((a) => ({
384
- ...a,
385
- opacity: L.value.includes(a.id) ? 0.5 : 1,
386
- segregate: () => it(a.absoluteIndex, a),
387
- isSegregated: L.value.includes(a.id)
388
- }))), ut = p(() => ({
389
- cy: "stackbar-legend",
390
- backgroundColor: e.value.style.chart.legend.backgroundColor,
391
- color: e.value.style.chart.legend.color,
392
- fontSize: e.value.style.chart.legend.fontSize,
393
- paddingBottom: 12,
394
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
395
- }));
396
- return Qe({
397
- getData: st,
398
- generatePdf: Ce,
399
- generateCsv: Ve,
400
- generateImage: ze,
401
- toggleTable: Pe,
402
- toggleLabels: Re,
403
- toggleTooltip: Ie
404
- }), (a, r) => (s(), u("div", {
405
- id: `stackbar_${ue.value}`,
406
- ref_key: "stackbarChart",
407
- ref: U,
408
- class: he({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ce.value }),
409
- style: B(`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%" : ""}`)
410
- }, [
411
- _(a.$slots, "userConfig", {}, void 0, !0),
412
- e.value.style.chart.title.text ? (s(), u("div", {
413
- key: 0,
414
- ref_key: "chartTitle",
415
- ref: fe,
416
- style: "width:100%;background:transparent;padding-bottom:24px"
417
- }, [
418
- oe(Vt, {
419
- config: {
420
- title: {
421
- cy: "stackbar-title",
422
- ...e.value.style.chart.title
423
- },
424
- subtitle: {
425
- cy: "stackbar-subtitle",
426
- ...e.value.style.chart.title.subtitle
427
- }
428
- }
429
- }, null, 8, ["config"])
430
- ], 512)) : v("", !0),
431
- e.value.userOptions.show && H.value ? (s(), Q(Rt, {
432
- ref: "details",
433
- key: `user_option_${be.value}`,
434
- backgroundColor: e.value.style.chart.backgroundColor,
435
- color: e.value.style.chart.color,
436
- isPrinting: C(we),
437
- isImaging: C(_e),
438
- uid: ue.value,
439
- hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
440
- hasPdf: e.value.userOptions.buttons.pdf,
441
- hasImg: e.value.userOptions.buttons.img,
442
- hasXls: e.value.userOptions.buttons.csv,
443
- hasTable: e.value.userOptions.buttons.table,
444
- hasLabel: e.value.userOptions.buttons.labels,
445
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
446
- isFullscreen: ce.value,
447
- chartElement: U.value,
448
- position: e.value.userOptions.position,
449
- isTooltip: w.value.showTooltip,
450
- titles: { ...e.value.userOptions.buttonTitles },
451
- onToggleFullscreen: ot,
452
- onGeneratePdf: C(Ce),
453
- onGenerateCsv: Ve,
454
- onGenerateImage: C(ze),
455
- onToggleTable: Pe,
456
- onToggleLabels: Re,
457
- onToggleTooltip: Ie
458
- }, ft({ _: 2 }, [
459
- a.$slots.optionTooltip ? {
460
- name: "optionTooltip",
461
- fn: z(() => [
462
- _(a.$slots, "optionTooltip", {}, void 0, !0)
463
- ]),
464
- key: "0"
465
- } : void 0,
466
- a.$slots.optionPdf ? {
467
- name: "optionPdf",
468
- fn: z(() => [
469
- _(a.$slots, "optionPdf", {}, void 0, !0)
470
- ]),
471
- key: "1"
472
- } : void 0,
473
- a.$slots.optionCsv ? {
474
- name: "optionCsv",
475
- fn: z(() => [
476
- _(a.$slots, "optionCsv", {}, void 0, !0)
477
- ]),
478
- key: "2"
479
- } : void 0,
480
- a.$slots.optionImg ? {
481
- name: "optionImg",
482
- fn: z(() => [
483
- _(a.$slots, "optionImg", {}, void 0, !0)
484
- ]),
485
- key: "3"
486
- } : void 0,
487
- a.$slots.optionTable ? {
488
- name: "optionTable",
489
- fn: z(() => [
490
- _(a.$slots, "optionTable", {}, void 0, !0)
491
- ]),
492
- key: "4"
493
- } : void 0,
494
- a.$slots.optionLabels ? {
495
- name: "optionLabels",
496
- fn: z(() => [
497
- _(a.$slots, "optionLabels", {}, void 0, !0)
498
- ]),
499
- key: "5"
500
- } : void 0,
501
- a.$slots.optionFullscreen ? {
502
- name: "optionFullscreen",
503
- fn: z(({ toggleFullscreen: t, isFullscreen: l }) => [
504
- _(a.$slots, "optionFullscreen", W(X({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
505
- ]),
506
- key: "6"
507
- } : void 0
508
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
509
- H.value ? (s(), u("svg", {
510
- key: 2,
511
- xmlns: C(Lt),
512
- viewBox: `0 0 ${o.value.chartWidth <= 0 ? 10 : o.value.chartWidth} ${o.value.chartHeight <= 0 ? 10 : o.value.chartHeight}`,
513
- style: B(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
514
- }, [
515
- oe(Bt),
516
- e.value.style.chart.bars.gradient.show ? (s(), u("defs", Yt, [
517
- (s(!0), u(h, null, f(m.value, (t, l) => (s(), u("linearGradient", {
518
- id: `gradient_${t.id}`,
519
- x1: "0%",
520
- y1: "0%",
521
- x2: "0%",
522
- y2: "100%"
523
- }, [
524
- D("stop", {
525
- offset: "0%",
526
- "stop-color": t.color
527
- }, null, 8, Jt),
528
- D("stop", {
529
- offset: "61.8%",
530
- "stop-color": C(St)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
531
- }, null, 8, qt),
532
- D("stop", {
533
- offset: "100%",
534
- "stop-color": t.color
535
- }, null, 8, Zt)
536
- ], 8, Gt))), 256))
537
- ])) : v("", !0),
538
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 1 }, f(N.value, (t, l) => (s(), u("line", {
539
- x1: o.value.left,
540
- x2: o.value.right,
541
- y1: t.y,
542
- y2: t.y,
543
- stroke: e.value.style.chart.grid.x.axisColor,
544
- "stroke-width": 1,
545
- "stroke-linecap": "round"
546
- }, null, 8, Kt))), 256)) : v("", !0),
547
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 2 }, f(c.value.end - c.value.start + 1, (t, l) => (s(), u("line", {
548
- x1: o.value.left,
549
- x2: o.value.right,
550
- y1: o.value.top + d.value * l,
551
- y2: o.value.top + d.value * l,
552
- stroke: e.value.style.chart.grid.y.axisColor,
553
- "stroke-width": 1,
554
- "stroke-linecap": "round"
555
- }, null, 8, Qt))), 256)) : v("", !0),
556
- e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 3 }, f(c.value.end - c.value.start + 1, (t, l) => (s(), u("line", {
557
- x1: o.value.left + d.value * l,
558
- x2: o.value.left + d.value * l,
559
- y1: o.value.top,
560
- y2: o.value.bottom,
561
- stroke: e.value.style.chart.grid.y.axisColor,
562
- "stroke-width": 1,
563
- "stroke-linecap": "round"
564
- }, null, 8, jt))), 256)) : v("", !0),
565
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 4 }, f(N.value, (t, l) => (s(), u("line", {
566
- x1: t.horizontal_x,
567
- x2: t.horizontal_x,
568
- y1: o.value.top,
569
- y2: o.value.bottom,
570
- stroke: e.value.style.chart.grid.x.axisColor,
571
- "stroke-width": 1,
572
- "stroke-linecap": "round"
573
- }, null, 8, ea))), 256)) : v("", !0),
574
- (s(!0), u(h, null, f(m.value, (t, l) => (s(), u("g", null, [
575
- e.value.orientation === "vertical" ? (s(!0), u(h, { key: 0 }, f(t.x, (i, n) => (s(), u("rect", {
576
- x: i,
577
- y: t.y[n] < 0 ? 0 : t.y[n],
578
- height: t.height[n] < 0 ? 1e-4 : t.height[n],
579
- rx: e.value.style.chart.bars.borderRadius > t.height[n] / 2 ? (t.height[n] < 0 ? 0 : t.height[n]) / 2 : e.value.style.chart.bars.borderRadius,
580
- width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
581
- fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
582
- stroke: e.value.style.chart.backgroundColor,
583
- "stroke-width": e.value.style.chart.bars.strokeWidth,
584
- "stroke-linecap": "round",
585
- "stroke-linejoin": "round",
586
- class: he({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": G.value })
587
- }, null, 10, ta))), 256)) : (s(!0), u(h, { key: 1 }, f(t.horizontal_x, (i, n) => (s(), u("rect", {
588
- x: i,
589
- y: t.horizontal_y[n] < 0 ? 0 : t.horizontal_y[n],
590
- width: t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n],
591
- rx: e.value.style.chart.bars.borderRadius > t.height[n] / 2 ? (t.height[n] < 0 ? 0 : t.height[n]) / 2 : e.value.style.chart.bars.borderRadius,
592
- height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
593
- fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
594
- stroke: e.value.style.chart.backgroundColor,
595
- "stroke-width": e.value.style.chart.bars.strokeWidth,
596
- "stroke-linecap": "round",
597
- "stroke-linejoin": "round",
598
- class: he({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": G.value })
599
- }, null, 10, aa))), 256))
600
- ]))), 256)),
601
- e.value.style.chart.grid.x.showAxis ? (s(), u("line", {
602
- key: 5,
603
- x1: o.value.left,
604
- x2: o.value.right,
605
- y1: o.value.bottom,
606
- y2: o.value.bottom,
607
- stroke: e.value.style.chart.grid.x.axisColor,
608
- "stroke-width": e.value.style.chart.grid.x.axisThickness,
609
- "stroke-linecap": "round",
610
- "stroke-linejoin": "round"
611
- }, null, 8, la)) : v("", !0),
612
- e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), u("line", {
613
- key: 6,
614
- x1: o.value.left,
615
- x2: o.value.left,
616
- y1: o.value.top,
617
- y2: o.value.bottom,
618
- stroke: e.value.style.chart.grid.y.axisColor,
619
- "stroke-width": e.value.style.chart.grid.y.axisThickness,
620
- "stroke-linecap": "round",
621
- "stroke-linejoin": "round"
622
- }, null, 8, ra)) : v("", !0),
623
- e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), u("text", {
624
- key: 7,
625
- x: o.value.left + o.value.width / 2,
626
- y: o.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
627
- "font-size": e.value.style.chart.grid.x.axisName.fontSize,
628
- fill: e.value.style.chart.grid.x.axisName.color,
629
- "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
630
- "text-anchor": "middle"
631
- }, S(e.value.style.chart.grid.x.axisName.text), 9, oa)) : v("", !0),
632
- e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), u("text", {
633
- key: 8,
634
- transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${o.value.top + o.value.height / 2}) rotate(-90)`,
635
- "font-size": e.value.style.chart.grid.y.axisName.fontSize,
636
- fill: e.value.style.chart.grid.y.axisName.color,
637
- "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
638
- "text-anchor": "middle"
639
- }, S(e.value.style.chart.grid.y.axisName.text), 9, sa)) : v("", !0),
640
- w.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), u(h, { key: 9 }, [
641
- (s(!0), u(h, null, f(m.value, (t, l) => (s(), u("g", null, [
642
- (s(!0), u(h, null, f(t.x, (i, n) => (s(), u("text", {
643
- x: i + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
644
- y: t.y[n] + t.height[n] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
645
- "font-size": e.value.style.chart.bars.dataLabels.fontSize,
646
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? C(Je)(t.color) : e.value.style.chart.bars.dataLabels.color,
647
- "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
648
- "text-anchor": "middle"
649
- }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Te(t.proportions[n] * 100, t, l, n) : ae(t.series[n], t, l, n, t.signedSeries[n])), 9, ia))), 256))
650
- ]))), 256)),
651
- e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), u("g", ua, [
652
- (s(!0), u(h, null, f($e.value, (t, l) => (s(), u("text", {
653
- x: o.value.left + d.value * l + d.value / 2,
654
- y: o.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
655
- "text-anchor": "middle",
656
- "font-size": e.value.style.chart.bars.totalValues.fontSize,
657
- "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
658
- fill: e.value.style.chart.bars.totalValues.color
659
- }, S(ae(t.value, t, l, t.sign)), 9, na))), 256))
660
- ])) : v("", !0)
661
- ], 64)) : v("", !0),
662
- w.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), u(h, { key: 10 }, [
663
- (s(!0), u(h, null, f(m.value, (t, l) => (s(), u("g", null, [
664
- (s(!0), u(h, null, f(t.horizontal_x, (i, n) => (s(), u("text", {
665
- x: i + (t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n]) / 2,
666
- y: t.horizontal_y[n] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
667
- "font-size": e.value.style.chart.bars.dataLabels.fontSize,
668
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? C(Je)(t.color) : e.value.style.chart.bars.dataLabels.color,
669
- "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
670
- "text-anchor": "middle"
671
- }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Te(t.proportions[n] * 100, t, l, n) : ae(t.series[n], t, l, n, t.signedSeries[n])), 9, ca))), 256))
672
- ]))), 256)),
673
- e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), u("g", va, [
674
- (s(!0), u(h, null, f($e.value, (t, l) => (s(), u("text", {
675
- x: o.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
676
- y: o.value.top + d.value * l + d.value / 2,
677
- "text-anchor": "start",
678
- "font-size": e.value.style.chart.bars.totalValues.fontSize,
679
- "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
680
- fill: e.value.style.chart.bars.totalValues.color
681
- }, S(ae(t.value, t, l, t.sign)), 9, ha))), 256))
682
- ])) : v("", !0)
683
- ], 64)) : v("", !0),
684
- e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (s(), u(h, { key: 11 }, [
685
- (s(!0), u(h, null, f(N.value, (t, l) => (s(), u("line", {
686
- x1: o.value.left,
687
- x2: o.value.left - 6,
688
- y1: t.y,
689
- y2: t.y,
690
- stroke: e.value.style.chart.grid.x.axisColor,
691
- "stroke-width": 1
692
- }, null, 8, da))), 256)),
693
- (s(!0), u(h, null, f(N.value, (t, l) => (s(), u("text", {
694
- x: t.x,
695
- y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
696
- "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
697
- "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
698
- fill: e.value.style.chart.grid.y.axisLabels.color,
699
- "text-anchor": "end"
700
- }, S(C(E)({
701
- p: e.value.style.chart.bars.dataLabels.prefix,
702
- v: t.value,
703
- s: e.value.style.chart.bars.dataLabels.suffix,
704
- r: e.value.style.chart.grid.y.axisLabels.rounding
705
- })), 9, ya))), 256))
706
- ], 64)) : v("", !0),
707
- e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), u(h, { key: 12 }, [
708
- (s(!0), u(h, null, f(N.value, (t, l) => (s(), u("line", {
709
- x1: t.horizontal_x,
710
- x2: t.horizontal_x,
711
- y1: o.value.bottom,
712
- y2: o.value.bottom + 6,
713
- stroke: e.value.style.chart.grid.x.axisColor,
714
- "stroke-width": 1,
715
- "stroke-linecap": "round"
716
- }, null, 8, ga))), 256)),
717
- (s(!0), u(h, null, f(N.value, (t, l) => (s(), u("text", {
718
- "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
719
- "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
720
- fill: e.value.style.chart.grid.y.axisLabels.color,
721
- "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
722
- transform: `translate(${t.horizontal_x}, ${o.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})`
723
- }, S(C(E)({
724
- p: e.value.style.chart.bars.dataLabels.prefix,
725
- v: t.value,
726
- s: e.value.style.chart.bars.dataLabels.suffix,
727
- r: e.value.style.chart.grid.y.axisLabels.rounding
728
- })), 9, ba))), 256))
729
- ], 64)) : v("", !0),
730
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 13 }, f(q.value, (t, l) => (s(), u("text", {
731
- "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
732
- "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
733
- "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
734
- fill: e.value.style.chart.grid.x.timeLabels.color,
735
- transform: `translate(${o.value.left + d.value * l + d.value / 2}, ${o.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})`
736
- }, S(t), 9, fa))), 256)) : v("", !0),
737
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 14 }, f(q.value, (t, l) => (s(), u("text", {
738
- "text-anchor": "end",
739
- "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
740
- "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
741
- fill: e.value.style.chart.grid.y.axisLabels.color,
742
- x: o.value.left - 8,
743
- y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3
744
- }, S(t), 9, ma))), 256)) : v("", !0),
745
- w.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 15 }, f(c.value.end - c.value.start, (t, l) => (s(), u("rect", {
746
- x: o.value.left + l * d.value,
747
- y: o.value.top,
748
- width: d.value,
749
- height: o.value.height < 0 ? 0 : o.value.height,
750
- onClick: (i) => Ne(l),
751
- onMouseenter: (i) => Oe(l),
752
- onMouseleave: r[0] || (r[0] = (i) => {
753
- Y.value = null, j.value = !1;
754
- }),
755
- fill: l === Y.value ? e.value.style.chart.highlighter.color : "transparent",
756
- style: B({ opacity: e.value.style.chart.highlighter.opacity / 100 })
757
- }, null, 44, pa))), 256)) : v("", !0),
758
- w.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 16 }, f(c.value.end - c.value.start, (t, l) => (s(), u("rect", {
759
- x: o.value.left,
760
- y: o.value.top + l * d.value,
761
- width: o.value.width < 0 ? 0 : o.value.width,
762
- height: d.value,
763
- onClick: (i) => Ne(l),
764
- onMouseenter: (i) => Oe(l),
765
- onMouseleave: r[1] || (r[1] = (i) => {
766
- Y.value = null, j.value = !1;
767
- }),
768
- fill: l === Y.value ? e.value.style.chart.highlighter.color : "transparent",
769
- style: B({ opacity: e.value.style.chart.highlighter.opacity / 100 })
770
- }, null, 44, xa))), 256)) : v("", !0),
771
- _(a.$slots, "svg", W(X({ ...o.value })), void 0, !0)
772
- ], 12, Ut)) : v("", !0),
773
- a.$slots.watermark ? (s(), u("div", ka, [
774
- _(a.$slots, "watermark", W(X({ isPrinting: C(we) || C(_e) })), void 0, !0)
775
- ])) : v("", !0),
776
- H.value ? v("", !0) : (s(), Q(Ht, {
777
- key: 4,
778
- config: {
779
- type: "bar",
780
- style: {
781
- backgroundColor: e.value.style.chart.backgroundColor,
782
- bar: {
783
- axis: {
784
- color: "#CCCCCC"
785
- },
786
- color: "#CCCCCC"
787
- }
788
- }
789
- }
790
- }, null, 8, ["config"])),
791
- D("div", {
792
- ref_key: "chartSlicer",
793
- ref: pe,
794
- style: B(`width:100%;background:${e.value.style.chart.backgroundColor}`),
795
- "data-html2canvas-ignore": ""
796
- }, [
797
- e.value.style.chart.zoom.show && R.value > 1 ? (s(), Q(It, {
798
- key: `slicer_${xe.value}`,
799
- background: e.value.style.chart.zoom.color,
800
- borderColor: e.value.style.chart.backgroundColor,
801
- fontSize: e.value.style.chart.zoom.fontSize,
802
- useResetSlot: e.value.style.chart.zoom.useResetSlot,
803
- labelLeft: e.value.style.chart.grid.x.timeLabels.values[c.value.start] ? e.value.style.chart.grid.x.timeLabels.values[c.value.start] : "",
804
- 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] : "",
805
- textColor: e.value.style.chart.color,
806
- inputColor: e.value.style.chart.zoom.color,
807
- selectColor: e.value.style.chart.zoom.highlightColor,
808
- max: Math.max(...de.dataset.map((t) => t.series.length)),
809
- min: 0,
810
- valueStart: c.value.start,
811
- valueEnd: c.value.end,
812
- start: c.value.start,
813
- "onUpdate:start": r[2] || (r[2] = (t) => c.value.start = t),
814
- end: c.value.end,
815
- "onUpdate:end": r[3] || (r[3] = (t) => c.value.end = t),
816
- onReset: Me
817
- }, {
818
- "reset-action": z(({ reset: t }) => [
819
- _(a.$slots, "reset-action", W(X({ reset: t })), void 0, !0)
820
- ]),
821
- _: 3
822
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : v("", !0)
823
- ], 4),
824
- oe(Ft, {
825
- show: w.value.showTooltip && j.value,
826
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
827
- color: e.value.style.chart.tooltip.color,
828
- fontSize: e.value.style.chart.tooltip.fontSize,
829
- borderRadius: e.value.style.chart.tooltip.borderRadius,
830
- borderColor: e.value.style.chart.tooltip.borderColor,
831
- borderWidth: e.value.style.chart.tooltip.borderWidth,
832
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
833
- position: e.value.style.chart.tooltip.position,
834
- offsetY: e.value.style.chart.tooltip.offsetY,
835
- parent: U.value,
836
- content: ne.value,
837
- isCustom: C(qe)(e.value.style.chart.tooltip.customFormat)
838
- }, {
839
- "tooltip-before": z(() => [
840
- _(a.$slots, "tooltip-before", W(X({ ...ge.value })), void 0, !0)
841
- ]),
842
- "tooltip-after": z(() => [
843
- _(a.$slots, "tooltip-after", W(X({ ...ge.value })), void 0, !0)
844
- ]),
845
- _: 3
846
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
847
- D("div", {
848
- ref_key: "chartLegend",
849
- ref: me
850
- }, [
851
- e.value.style.chart.legend.show && H.value ? (s(), Q(At, {
852
- key: 0,
853
- legendSet: Ae.value,
854
- config: ut.value,
855
- onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
856
- }, {
857
- item: z(({ legend: t }) => [
858
- D("div", {
859
- onClick: (l) => t.segregate(),
860
- style: B(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
861
- }, S(t.name), 13, wa)
862
- ]),
863
- _: 1
864
- }, 8, ["legendSet", "config"])) : _(a.$slots, "legend", {
865
- key: 1,
866
- legend: Ae.value
867
- }, void 0, !0)
868
- ], 512),
869
- c.value.end - c.value.start < 200 ? (s(), Q(Dt, {
870
- key: 5,
871
- hideDetails: "",
872
- config: {
873
- open: w.value.showTable,
874
- maxHeight: 1e4,
875
- body: {
876
- backgroundColor: e.value.style.chart.backgroundColor,
877
- color: e.value.style.chart.color
878
- },
879
- head: {
880
- backgroundColor: e.value.style.chart.backgroundColor,
881
- color: e.value.style.chart.color
882
- }
883
- }
884
- }, {
885
- content: z(() => [
886
- oe(Et, {
887
- colNames: le.value.colNames,
888
- head: le.value.head,
889
- body: le.value.body,
890
- config: le.value.config,
891
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
892
- onClose: r[5] || (r[5] = (t) => w.value.showTable = !1)
893
- }, {
894
- th: z(({ th: t }) => [
895
- D("div", { innerHTML: t }, null, 8, _a)
896
- ]),
897
- td: z(({ td: t }) => [
898
- mt(S(isNaN(Number(t)) ? t : C(E)({
899
- p: e.value.style.chart.bars.dataLabels.prefix,
900
- v: t,
901
- s: e.value.style.chart.bars.dataLabels.suffix,
902
- r: e.value.table.td.roundingValue
903
- })), 1)
904
- ]),
905
- _: 1
906
- }, 8, ["colNames", "head", "body", "config", "title"])
907
- ]),
908
- _: 1
909
- }, 8, ["config"])) : v("", !0)
910
- ], 14, Xt));
911
- }
912
- }, Da = /* @__PURE__ */ Wt(Ca, [["__scopeId", "data-v-a4f47dd7"]]);
913
- export {
914
- Da as default
915
- };