vue-data-ui 2.4.1 → 2.4.2

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