vue-data-ui 2.4.50 → 2.4.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/README.md +12 -0
  2. package/dist/{Arrow-DuuEh1Nr.cjs → Arrow-2a_SwBgz.cjs} +1 -1
  3. package/dist/{Arrow-D1z9KkQN.js → Arrow-BUz63pb2.js} +1 -1
  4. package/dist/{BaseIcon-DemqZ_13.cjs → BaseIcon-BASl_NFX.cjs} +1 -1
  5. package/dist/{BaseIcon-BHwqOTt4.js → BaseIcon-CmiukQBl.js} +1 -1
  6. package/dist/{DataTable-CQ8fQnex.js → DataTable-DGf6RrOJ.js} +2 -2
  7. package/dist/{DataTable-CovKV5Yy.cjs → DataTable-G3ICK-5h.cjs} +1 -1
  8. package/dist/{Legend-Br7MWNDo.js → Legend-BLaZxMge.js} +1 -1
  9. package/dist/{Legend-Bbz-hKDf.cjs → Legend-BiuPlEMg.cjs} +1 -1
  10. package/dist/{PackageVersion-BEtuCME5.cjs → PackageVersion-Bj34UNnQ.cjs} +1 -1
  11. package/dist/{PackageVersion-BV3fHO46.js → PackageVersion-CxJghxYD.js} +1 -1
  12. package/dist/{PenAndPaper-BIcmfBvD.cjs → PenAndPaper-D9yQnc0e.cjs} +1 -1
  13. package/dist/{PenAndPaper-CCOywdmm.js → PenAndPaper-ZdZEumki.js} +3 -3
  14. package/dist/{Shape-B7Mekpyf.js → Shape-DIKzzpFm.js} +1 -1
  15. package/dist/{Shape-BD37ZaX9.cjs → Shape-yducHWd0.cjs} +1 -1
  16. package/dist/{Slicer-CWvkt-8k.cjs → Slicer-BHS9W4MJ.cjs} +1 -1
  17. package/dist/{Slicer-ahFReg7h.js → Slicer-Cxdl3cDt.js} +2 -2
  18. package/dist/{Title-C2siG5N2.cjs → Title-Bk_55doC.cjs} +1 -1
  19. package/dist/{Title-CIsKiWgN.js → Title-aSAft5dl.js} +1 -1
  20. package/dist/{Tooltip-CS4C58T7.cjs → Tooltip-G7ENx87_.cjs} +1 -1
  21. package/dist/{Tooltip-B1LgrF9R.js → Tooltip-smutPF--.js} +1 -1
  22. package/dist/{index-BtL_cLa8.js → index-BbPeL8Gp.js} +5 -1
  23. package/dist/index-DhDYBLBe.cjs +9 -0
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +5 -1
  26. package/dist/types/vue-data-ui.d.ts +5 -1
  27. package/dist/{useNestedProp-CEAfm1tu.js → useNestedProp-BN8claGG.js} +1 -1
  28. package/dist/{useNestedProp-D_feh7A_.cjs → useNestedProp-BphUExEh.cjs} +1 -1
  29. package/dist/{usePrinter-B4xDG31F.cjs → usePrinter-2_QjJFdH.cjs} +1 -1
  30. package/dist/{usePrinter-sRt2SKr2.js → usePrinter-DaybDVqP.js} +1 -1
  31. package/dist/useUserOptionState-BIvW1Kz7.js +17 -0
  32. package/dist/useUserOptionState-BgepsfED.cjs +1 -0
  33. package/dist/{vue-data-ui-CuEYAddV.cjs → vue-data-ui-C5vsHRHD.cjs} +1 -1
  34. package/dist/{vue-data-ui-NkhaiK6y.js → vue-data-ui-Ckbp-yIf.js} +60 -60
  35. package/dist/vue-data-ui.cjs +1 -1
  36. package/dist/vue-data-ui.js +1 -1
  37. package/dist/vue-ui-3d-bar-DUgumRsg.cjs +19 -0
  38. package/dist/{vue-ui-3d-bar-BeXYzdzu.js → vue-ui-3d-bar-wDYs3sVe.js} +345 -339
  39. package/dist/{vue-ui-accordion-Cjc683tN.js → vue-ui-accordion-5d5iVpr7.js} +3 -3
  40. package/dist/{vue-ui-accordion-CBxsUoGb.cjs → vue-ui-accordion-B7tNzRWB.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-rnt8M-Qz.js → vue-ui-age-pyramid-BH1khaaq.js} +260 -254
  42. package/dist/vue-ui-age-pyramid-Dxx1mVwR.cjs +1 -0
  43. package/dist/{vue-ui-annotator-CFU5Zyfk.js → vue-ui-annotator-B9VKE_qz.js} +1 -1
  44. package/dist/{vue-ui-annotator-Yu-mHS2N.cjs → vue-ui-annotator-jXkB5XnD.cjs} +1 -1
  45. package/dist/{vue-ui-bullet-CRbW1ON6.js → vue-ui-bullet-BLi9CSZw.js} +152 -146
  46. package/dist/vue-ui-bullet-QrXtipbT.cjs +34 -0
  47. package/dist/{vue-ui-candlestick-D-ERLtI1.js → vue-ui-candlestick-Bjz1uFbv.js} +223 -217
  48. package/dist/vue-ui-candlestick-Da4ygGXR.cjs +2 -0
  49. package/dist/{vue-ui-carousel-table-I1m4HMWf.js → vue-ui-carousel-table-B6zgTL-W.js} +160 -154
  50. package/dist/vue-ui-carousel-table-Cfif8Oiz.cjs +1 -0
  51. package/dist/vue-ui-chestnut-C_N7EbjQ.cjs +6 -0
  52. package/dist/{vue-ui-chestnut-CqJRKECX.js → vue-ui-chestnut-D5HpkuIa.js} +237 -231
  53. package/dist/{vue-ui-cursor-S83QIsxQ.cjs → vue-ui-cursor-A_siHYBc.cjs} +1 -1
  54. package/dist/{vue-ui-cursor-jrrdh8Lf.js → vue-ui-cursor-DZNIbvR2.js} +2 -2
  55. package/dist/{vue-ui-dashboard-DW1mIInG.cjs → vue-ui-dashboard-BfPJyiY9.cjs} +1 -1
  56. package/dist/{vue-ui-dashboard-DR_Bhwa3.js → vue-ui-dashboard-DCqe4BZg.js} +2 -2
  57. package/dist/{vue-ui-digits-1jZdiwHJ.js → vue-ui-digits-BEWCnojc.js} +2 -2
  58. package/dist/{vue-ui-digits-s5f9eFtW.cjs → vue-ui-digits-BEhLa3jI.cjs} +1 -1
  59. package/dist/vue-ui-donut-By3QRfkV.cjs +1 -0
  60. package/dist/{vue-ui-donut-evolution-DsHTZ9T2.js → vue-ui-donut-evolution-Cu6dmlT2.js} +300 -294
  61. package/dist/vue-ui-donut-evolution-DEABWsj0.cjs +1 -0
  62. package/dist/{vue-ui-donut-BAYiPsxp.js → vue-ui-donut-g5ZLhYPx.js} +376 -370
  63. package/dist/vue-ui-dumbbell-Dfb1l5qP.cjs +9 -0
  64. package/dist/{vue-ui-dumbbell-DcMmBxLy.js → vue-ui-dumbbell-bb4-Ep6o.js} +256 -250
  65. package/dist/vue-ui-flow-CCvTnu7z.cjs +1 -0
  66. package/dist/{vue-ui-flow-BTXEmIQG.js → vue-ui-flow-hD0F6mTK.js} +164 -158
  67. package/dist/vue-ui-funnel-DKxAPRi_.cjs +1 -0
  68. package/dist/{vue-ui-funnel-BB_h0FKg.js → vue-ui-funnel-hcbE4yky.js} +178 -172
  69. package/dist/{vue-ui-galaxy-DlBk1FUz.js → vue-ui-galaxy-ByKjxVWV.js} +187 -181
  70. package/dist/vue-ui-galaxy-D2kmqwpI.cjs +1 -0
  71. package/dist/vue-ui-gauge-BFA_unjg.cjs +1 -0
  72. package/dist/{vue-ui-gauge-1SFhSMfU.js → vue-ui-gauge-PGirbe6O.js} +220 -214
  73. package/dist/{vue-ui-gizmo-C8rLR4n5.cjs → vue-ui-gizmo-CHMApil6.cjs} +1 -1
  74. package/dist/{vue-ui-gizmo-CtX6KFN2.js → vue-ui-gizmo-ChSfBYZ_.js} +3 -3
  75. package/dist/vue-ui-heatmap-C0VxwPhr.cjs +1 -0
  76. package/dist/{vue-ui-heatmap-BzyvTePn.js → vue-ui-heatmap-CK3FIWpo.js} +270 -264
  77. package/dist/vue-ui-history-plot-BmGodgUx.cjs +1 -0
  78. package/dist/{vue-ui-history-plot-BEoHuZ3N.js → vue-ui-history-plot-EmQ-Byiz.js} +236 -230
  79. package/dist/{vue-ui-kpi-LO4KKRR9.cjs → vue-ui-kpi-BdungaO2.cjs} +1 -1
  80. package/dist/{vue-ui-kpi-BYOyJjYg.js → vue-ui-kpi-DjC68pSz.js} +3 -3
  81. package/dist/{vue-ui-mini-loader-ChHdx5me.js → vue-ui-mini-loader-CzrblCCD.js} +2 -2
  82. package/dist/{vue-ui-mini-loader-wlUD77O6.cjs → vue-ui-mini-loader-jwL_pZjb.cjs} +1 -1
  83. package/dist/{vue-ui-molecule-Bo7XYpf-.js → vue-ui-molecule-DBQJQs4Y.js} +294 -289
  84. package/dist/vue-ui-molecule-Dzh-0SWI.cjs +1 -0
  85. package/dist/{vue-ui-mood-radar-DXj4Ce6l.js → vue-ui-mood-radar-Ca9wPZpJ.js} +205 -199
  86. package/dist/vue-ui-mood-radar-DV6ZZIXF.cjs +1 -0
  87. package/dist/{vue-ui-nested-donuts-BBLpNVwF.js → vue-ui-nested-donuts-C8at93dN.js} +286 -280
  88. package/dist/vue-ui-nested-donuts-DEdS6dpj.cjs +17 -0
  89. package/dist/{vue-ui-onion-DC8VIInA.js → vue-ui-onion-B-PXxNu6.js} +198 -192
  90. package/dist/vue-ui-onion-B2ioudP5.cjs +5 -0
  91. package/dist/{vue-ui-parallel-coordinate-plot-Cl1wiHsK.js → vue-ui-parallel-coordinate-plot-ByM3So9k.js} +236 -230
  92. package/dist/vue-ui-parallel-coordinate-plot-DtJi9cT0.cjs +8 -0
  93. package/dist/{vue-ui-quadrant-b5cuEH9z.js → vue-ui-quadrant-BqOJBcsI.js} +255 -249
  94. package/dist/vue-ui-quadrant-CIr4i6cC.cjs +1 -0
  95. package/dist/{vue-ui-quick-chart-CFBPYw2J.js → vue-ui-quick-chart-BfXxT3KM.js} +474 -466
  96. package/dist/vue-ui-quick-chart-Bt9KA82P.cjs +15 -0
  97. package/dist/{vue-ui-radar-DP8360kx.js → vue-ui-radar-BKpD9xDr.js} +256 -250
  98. package/dist/vue-ui-radar-Czmsd_uv.cjs +1 -0
  99. package/dist/{vue-ui-rating-D7b-kfyp.cjs → vue-ui-rating-BE545aI4.cjs} +1 -1
  100. package/dist/{vue-ui-rating-DIthBSp_.js → vue-ui-rating-DQRuqev5.js} +2 -2
  101. package/dist/vue-ui-relation-circle-B1uMTqFP.cjs +1 -0
  102. package/dist/vue-ui-relation-circle-nZ2nBpWX.js +498 -0
  103. package/dist/vue-ui-rings-B7JzZ3ub.cjs +2 -0
  104. package/dist/{vue-ui-rings-y9Zx-DaI.js → vue-ui-rings-C1PV0873.js} +177 -172
  105. package/dist/vue-ui-scatter-CTI943ks.cjs +1 -0
  106. package/dist/{vue-ui-scatter-Cbu5GDc1.js → vue-ui-scatter-dgs1m3-2.js} +310 -304
  107. package/dist/{vue-ui-screenshot-oH-YnZBE.cjs → vue-ui-screenshot--cHV0jG3.cjs} +1 -1
  108. package/dist/{vue-ui-screenshot-BZh_sgjP.js → vue-ui-screenshot-Dxj0l8Jg.js} +1 -1
  109. package/dist/{vue-ui-skeleton-DjFU2X3P.js → vue-ui-skeleton-Bniq21d9.js} +3 -3
  110. package/dist/{vue-ui-skeleton-Nuju6X7l.cjs → vue-ui-skeleton-lkPDknHn.cjs} +1 -1
  111. package/dist/{vue-ui-smiley-DtQVEc4B.cjs → vue-ui-smiley-CozXoiti.cjs} +1 -1
  112. package/dist/{vue-ui-smiley-DdnzzEYS.js → vue-ui-smiley-D4DAZIpA.js} +2 -2
  113. package/dist/{vue-ui-spark-trend-B36zW41F.cjs → vue-ui-spark-trend-CSqyvI_K.cjs} +1 -1
  114. package/dist/{vue-ui-spark-trend-CaIGk_53.js → vue-ui-spark-trend-ZqrwhwqS.js} +5 -5
  115. package/dist/{vue-ui-sparkbar-iQKGtxo8.cjs → vue-ui-sparkbar-Bph8KIjk.cjs} +1 -1
  116. package/dist/{vue-ui-sparkbar-DixeozKp.js → vue-ui-sparkbar-q0G4GvFm.js} +4 -4
  117. package/dist/{vue-ui-sparkgauge-C01VB6KP.js → vue-ui-sparkgauge-DA_h9jcN.js} +4 -4
  118. package/dist/{vue-ui-sparkgauge-DEvgucF7.cjs → vue-ui-sparkgauge-nSAW83dN.cjs} +1 -1
  119. package/dist/{vue-ui-sparkhistogram-C_6lHF3O.js → vue-ui-sparkhistogram-B1WyBiq_.js} +5 -5
  120. package/dist/{vue-ui-sparkhistogram-CTUuxOma.cjs → vue-ui-sparkhistogram-BLYhRNpt.cjs} +1 -1
  121. package/dist/{vue-ui-sparkline-DrZWPGOG.cjs → vue-ui-sparkline-PNix1-R9.cjs} +1 -1
  122. package/dist/{vue-ui-sparkline-Btm4HVgi.js → vue-ui-sparkline-ccfl0s3m.js} +4 -4
  123. package/dist/{vue-ui-sparkstackbar-7pcfCNMr.cjs → vue-ui-sparkstackbar-DpuvEumy.cjs} +1 -1
  124. package/dist/{vue-ui-sparkstackbar-D0UGUm-1.js → vue-ui-sparkstackbar-PNKwVRu8.js} +5 -5
  125. package/dist/{vue-ui-stackbar-BPMDmY04.js → vue-ui-stackbar-BBYnF8qm.js} +367 -361
  126. package/dist/vue-ui-stackbar-D4AIFoQT.cjs +6 -0
  127. package/dist/vue-ui-strip-plot-ClNxSw9M.cjs +1 -0
  128. package/dist/{vue-ui-strip-plot-BfWQMGXy.js → vue-ui-strip-plot-TVlnzXFq.js} +269 -263
  129. package/dist/{vue-ui-table-Cdo265Yt.cjs → vue-ui-table-CHdv3KuM.cjs} +1 -1
  130. package/dist/{vue-ui-table-D8GaLhM9.js → vue-ui-table-CsEajH9S.js} +1 -1
  131. package/dist/vue-ui-table-heatmap-BE3UT8U9.cjs +1 -0
  132. package/dist/vue-ui-table-heatmap-CubRipoB.js +262 -0
  133. package/dist/vue-ui-table-sparkline-BeYviUrb.cjs +1 -0
  134. package/dist/{vue-ui-table-sparkline-DMHf03C9.js → vue-ui-table-sparkline-YV8DUOqh.js} +173 -167
  135. package/dist/vue-ui-thermometer-C6lMWRiF.cjs +1 -0
  136. package/dist/{vue-ui-thermometer-BCVqil7E.js → vue-ui-thermometer-DmMjSLc1.js} +170 -164
  137. package/dist/{vue-ui-timer-gxiLCP1n.cjs → vue-ui-timer-DteYgv9y.cjs} +1 -1
  138. package/dist/{vue-ui-timer-DF5HkeeS.js → vue-ui-timer-DvE_nqd9.js} +5 -5
  139. package/dist/vue-ui-tiremarks-CCrkDgjX.js +323 -0
  140. package/dist/vue-ui-tiremarks-PGGgsNgS.cjs +1 -0
  141. package/dist/vue-ui-treemap-BzRVKqXL.cjs +1 -0
  142. package/dist/{vue-ui-treemap-CIZaPmbi.js → vue-ui-treemap-C4A4spvg.js} +243 -237
  143. package/dist/{vue-ui-vertical-bar-dQoTddqU.js → vue-ui-vertical-bar-8iL1xiaz.js} +238 -232
  144. package/dist/vue-ui-vertical-bar-B60lSXNq.cjs +4 -0
  145. package/dist/{vue-ui-waffle-CnvWOEVU.js → vue-ui-waffle-CaYNz-Kd.js} +316 -310
  146. package/dist/vue-ui-waffle-O8pAEf4X.cjs +1 -0
  147. package/dist/vue-ui-wheel-BRR2rGou.js +305 -0
  148. package/dist/vue-ui-wheel-CnFdB_B1.cjs +1 -0
  149. package/dist/vue-ui-word-cloud-X4mp280j.cjs +1 -0
  150. package/dist/{vue-ui-word-cloud-o3zU6r0-.js → vue-ui-word-cloud-y2GGxwoq.js} +246 -240
  151. package/dist/{vue-ui-xy-GR4PGBDy.js → vue-ui-xy-CXoWP8bh.js} +708 -697
  152. package/dist/vue-ui-xy-CbM75yXK.cjs +3 -0
  153. package/dist/{vue-ui-xy-canvas-BKGOnjut.js → vue-ui-xy-canvas-D7MrUJj7.js} +334 -328
  154. package/dist/vue-ui-xy-canvas-DWvIvSry.cjs +9 -0
  155. package/package.json +1 -1
  156. package/dist/index-DoD-GxZR.cjs +0 -9
  157. package/dist/vue-ui-3d-bar-RduHvzwG.cjs +0 -19
  158. package/dist/vue-ui-age-pyramid-DVtbyRJw.cjs +0 -1
  159. package/dist/vue-ui-bullet-Be5aYhtp.cjs +0 -34
  160. package/dist/vue-ui-candlestick-B6wSs-JC.cjs +0 -2
  161. package/dist/vue-ui-carousel-table-7reErH8M.cjs +0 -1
  162. package/dist/vue-ui-chestnut-D-WzX16q.cjs +0 -6
  163. package/dist/vue-ui-donut-Ce1SaXNu.cjs +0 -1
  164. package/dist/vue-ui-donut-evolution-DI8yeIa4.cjs +0 -1
  165. package/dist/vue-ui-dumbbell-CFJkwtM8.cjs +0 -9
  166. package/dist/vue-ui-flow-B4MtorhO.cjs +0 -1
  167. package/dist/vue-ui-funnel-DNL12vLQ.cjs +0 -1
  168. package/dist/vue-ui-galaxy-CmCZGOKz.cjs +0 -1
  169. package/dist/vue-ui-gauge-B7ieQMud.cjs +0 -1
  170. package/dist/vue-ui-heatmap-Bfi3KJwS.cjs +0 -1
  171. package/dist/vue-ui-history-plot-5kZ54hgy.cjs +0 -1
  172. package/dist/vue-ui-molecule-D-4cRS5w.cjs +0 -1
  173. package/dist/vue-ui-mood-radar-C3x_LH7Q.cjs +0 -1
  174. package/dist/vue-ui-nested-donuts-DrL7-SUd.cjs +0 -17
  175. package/dist/vue-ui-onion-8Vz3lPbn.cjs +0 -5
  176. package/dist/vue-ui-parallel-coordinate-plot-D6q4WQ0B.cjs +0 -8
  177. package/dist/vue-ui-quadrant-DBZS5jFQ.cjs +0 -1
  178. package/dist/vue-ui-quick-chart-Cno_1mzu.cjs +0 -15
  179. package/dist/vue-ui-radar-ChcBO21S.cjs +0 -1
  180. package/dist/vue-ui-relation-circle-C5pO0iHY.cjs +0 -1
  181. package/dist/vue-ui-relation-circle-D2iwmChn.js +0 -492
  182. package/dist/vue-ui-rings-C_NLJYs8.cjs +0 -2
  183. package/dist/vue-ui-scatter-BNeMGDNk.cjs +0 -1
  184. package/dist/vue-ui-stackbar-BwRdmPvB.cjs +0 -6
  185. package/dist/vue-ui-strip-plot-CLN9LikJ.cjs +0 -1
  186. package/dist/vue-ui-table-heatmap-C4DRSfsE.js +0 -256
  187. package/dist/vue-ui-table-heatmap-CDAf1IIk.cjs +0 -1
  188. package/dist/vue-ui-table-sparkline-Cw7NOiYx.cjs +0 -1
  189. package/dist/vue-ui-thermometer-7BORZJjd.cjs +0 -1
  190. package/dist/vue-ui-tiremarks-CwGnFx4f.cjs +0 -1
  191. package/dist/vue-ui-tiremarks-lidhcJsi.js +0 -317
  192. package/dist/vue-ui-treemap-BZ_LmiBK.cjs +0 -1
  193. package/dist/vue-ui-vertical-bar-venrkqjM.cjs +0 -4
  194. package/dist/vue-ui-waffle-oR54BbIg.cjs +0 -1
  195. package/dist/vue-ui-wheel-BUHZEzPr.cjs +0 -1
  196. package/dist/vue-ui-wheel-D3itrMku.js +0 -299
  197. package/dist/vue-ui-word-cloud-87gwksmM.cjs +0 -1
  198. package/dist/vue-ui-xy-D56pm4L0.cjs +0 -3
  199. package/dist/vue-ui-xy-canvas-uikeVe72.cjs +0 -9
@@ -1,22 +1,23 @@
1
- import { computed as x, ref as y, onMounted as qe, watch as Ze, nextTick as ne, openBlock as r, createElementBlock as i, normalizeClass as pe, normalizeStyle as U, createBlock as J, createCommentVNode as d, renderSlot as k, createVNode as ue, unref as _, createSlots as _t, withCtx as z, normalizeProps as O, guardReactiveProps as P, Fragment as h, renderList as f, createElementVNode as B, toDisplayString as S, createTextVNode as Lt } from "vue";
2
- import { u as St, c as Ke, t as $t, a as Mt, p as ce, C as ve, b as Tt, o as Nt, e as Qe, g as It, d as Ot, a7 as he, a3 as je, D as et, X as Pt, l as At, G as tt, f as W, x as at, i as lt, y as Rt, q as Vt, r as Ft } from "./index-BtL_cLa8.js";
3
- import { u as ot } from "./useNestedProp-CEAfm1tu.js";
4
- import { t as Dt, u as Et } from "./useResponsive-CoxXLe23.js";
5
- import { u as Ht, U as Bt } from "./usePrinter-sRt2SKr2.js";
6
- import { S as Wt } from "./Slicer-ahFReg7h.js";
7
- import { _ as Yt } from "./Tooltip-B1LgrF9R.js";
8
- import { _ as Xt } from "./Title-CIsKiWgN.js";
9
- import { L as Gt } from "./Legend-Br7MWNDo.js";
10
- import Ut from "./vue-ui-accordion-Cjc683tN.js";
11
- import { D as Jt } from "./DataTable-CQ8fQnex.js";
12
- import qt from "./vue-ui-skeleton-DjFU2X3P.js";
13
- import { _ as Zt } from "./PackageVersion-BV3fHO46.js";
14
- import { P as Kt } from "./PenAndPaper-CCOywdmm.js";
15
- import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la = ["stop-color"], oa = ["stop-color"], ra = ["stop-color"], sa = ["x1", "x2", "y1", "y2", "stroke"], ia = ["x1", "x2", "y1", "y2", "stroke"], na = ["x1", "x2", "y1", "y2", "stroke"], ua = ["x1", "x2", "y1", "y2", "stroke"], ca = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], va = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], ha = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ya = ["x", "y", "font-size", "fill", "font-weight"], ga = ["transform", "font-size", "fill", "font-weight"], ba = ["x", "y", "font-size", "fill", "font-weight"], fa = { key: 0 }, ma = ["x", "y", "font-size", "font-weight", "fill"], pa = ["x", "y", "font-size", "fill", "font-weight"], xa = { key: 0 }, ka = ["x", "y", "font-size", "font-weight", "fill"], wa = ["x1", "x2", "y1", "y2", "stroke"], za = ["x", "y", "font-size", "font-weight", "fill"], Ca = ["x1", "x2", "y1", "y2", "stroke"], _a = ["font-size", "font-weight", "fill", "text-anchor", "transform"], La = { key: 0 }, Sa = { key: 1 }, $a = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Ma = { key: 0 }, Ta = { key: 1 }, Na = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Ia = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Oa = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Pa = {
1
+ import { computed as k, ref as y, onMounted as Qe, watch as je, nextTick as ne, openBlock as r, createElementBlock as i, normalizeClass as pe, normalizeStyle as B, unref as p, createBlock as J, createCommentVNode as d, renderSlot as w, createVNode as ue, createSlots as $t, withCtx as C, normalizeProps as O, guardReactiveProps as P, Fragment as h, renderList as f, createElementVNode as U, toDisplayString as S, createTextVNode as Mt } from "vue";
2
+ import { u as Tt, c as et, t as Nt, a as It, p as ce, C as ve, b as Ot, o as Pt, e as tt, g as At, d as Rt, a7 as he, a3 as at, D as lt, X as Vt, l as Ft, G as ot, f as W, x as rt, i as st, y as Dt, q as Et, r as Ht } from "./index-BbPeL8Gp.js";
3
+ import { u as it } from "./useNestedProp-BN8claGG.js";
4
+ import { t as Bt, u as Ut } from "./useResponsive-CoxXLe23.js";
5
+ import { u as Wt, U as Yt } from "./usePrinter-DaybDVqP.js";
6
+ import { S as Xt } from "./Slicer-Cxdl3cDt.js";
7
+ import { _ as Gt } from "./Tooltip-smutPF--.js";
8
+ import { _ as Jt } from "./Title-aSAft5dl.js";
9
+ import { L as qt } from "./Legend-BLaZxMge.js";
10
+ import Zt from "./vue-ui-accordion-5d5iVpr7.js";
11
+ import { D as Kt } from "./DataTable-DGf6RrOJ.js";
12
+ import Qt from "./vue-ui-skeleton-Bniq21d9.js";
13
+ import { _ as jt } from "./PackageVersion-CxJghxYD.js";
14
+ import { P as ea } from "./PenAndPaper-ZdZEumki.js";
15
+ import { u as ta } from "./useUserOptionState-BIvW1Kz7.js";
16
+ import { _ as aa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const la = ["id"], oa = ["xmlns", "viewBox"], ra = { key: 0 }, sa = ["id"], ia = ["stop-color"], na = ["stop-color"], ua = ["stop-color"], ca = ["x1", "x2", "y1", "y2", "stroke"], va = ["x1", "x2", "y1", "y2", "stroke"], ha = ["x1", "x2", "y1", "y2", "stroke"], da = ["x1", "x2", "y1", "y2", "stroke"], ya = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], ga = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], ba = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], fa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ma = ["x", "y", "font-size", "fill", "font-weight"], pa = ["transform", "font-size", "fill", "font-weight"], xa = ["x", "y", "font-size", "fill", "font-weight"], ka = { key: 0 }, wa = ["x", "y", "font-size", "font-weight", "fill"], za = ["x", "y", "font-size", "fill", "font-weight"], Ca = { key: 0 }, La = ["x", "y", "font-size", "font-weight", "fill"], _a = ["x1", "x2", "y1", "y2", "stroke"], Sa = ["x", "y", "font-size", "font-weight", "fill"], $a = ["x1", "x2", "y1", "y2", "stroke"], Ma = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Ta = { key: 0 }, Na = { key: 1 }, Ia = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Oa = { key: 0 }, Pa = { key: 1 }, Aa = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Ra = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Va = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Fa = {
17
18
  key: 4,
18
19
  class: "vue-data-ui-watermark"
19
- }, Aa = ["onClick"], Ra = ["innerHTML"], Va = {
20
+ }, Da = ["onClick"], Ea = ["innerHTML"], Ha = {
20
21
  __name: "vue-ui-stackbar",
21
22
  props: {
22
23
  config: {
@@ -33,48 +34,48 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
33
34
  }
34
35
  },
35
36
  emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
36
- setup(de, { expose: rt, emit: ye }) {
37
- const g = de, { vue_ui_stackbar: st } = St(), Y = x({
37
+ setup(de, { expose: nt, emit: ye }) {
38
+ const g = de, { vue_ui_stackbar: ut } = Tt(), Y = k({
38
39
  get() {
39
40
  return !!g.dataset && g.dataset.length;
40
41
  },
41
42
  set(a) {
42
43
  return a;
43
44
  }
44
- }), X = y(null), ge = y(Ke()), ee = y(!1), xe = y(null), be = y(""), L = y([]), ke = y(0), we = y(null), ze = y(null), Ce = y(null), _e = y(null), Le = y(0), te = y(!1), q = y(null), Z = y(!1), it = y(0), nt = y(0), ut = y(0), G = y(null);
45
- qe(() => {
45
+ }), X = y(null), ge = y(et()), ee = y(!1), xe = y(null), be = y(""), _ = y([]), ke = y(0), we = y(null), ze = y(null), Ce = y(null), Le = y(null), _e = y(0), te = y(!1), q = y(null), Z = y(!1), ct = y(0), vt = y(0), ht = y(0), G = y(null);
46
+ Qe(() => {
46
47
  fe();
47
48
  });
48
- const e = x({
49
- get: () => Se(),
49
+ const e = k({
50
+ get: () => Te(),
50
51
  set: (a) => a
51
- });
52
- function Se() {
53
- const a = ot({
52
+ }), { userOptionsVisible: Se, setUserOptionsVisibility: $e, keepUserOptionState: Me } = ta({ config: e.value });
53
+ function Te() {
54
+ const a = it({
54
55
  userConfig: g.config,
55
- defaultConfig: st
56
+ defaultConfig: ut
56
57
  });
57
- let o = {};
58
- return a.theme ? o = {
59
- ...ot({
60
- userConfig: $t.vue_ui_stackbar[a.theme] || g.config,
58
+ let l = {};
59
+ return a.theme ? l = {
60
+ ...it({
61
+ userConfig: Nt.vue_ui_stackbar[a.theme] || g.config,
61
62
  defaultConfig: a
62
63
  }),
63
- customPalette: Mt[a.theme] || ce
64
- } : o = a, g.config && ve(g.config, "style.chart.grid.scale.scaleMin") ? o.style.chart.grid.scale.scaleMin = g.config.style.chart.grid.scale.scaleMin : o.style.chart.grid.scale.scaleMin = null, g.config && ve(g.config, "style.chart.grid.scale.scaleMax") ? o.style.chart.grid.scale.scaleMax = g.config.style.chart.grid.scale.scaleMax : o.style.chart.grid.scale.scaleMax = null, g.config && ve(g.config, "style.chart.zoom.startIndex") ? o.style.chart.zoom.startIndex = g.config.style.chart.zoom.startIndex : o.style.chart.zoom.startIndex = null, g.config && ve(g.config, "style.chart.zoom.endIndex") ? o.style.chart.zoom.endIndex = g.config.style.chart.zoom.endIndex : o.style.chart.zoom.endIndex = null, o;
64
+ customPalette: It[a.theme] || ce
65
+ } : l = a, g.config && ve(g.config, "style.chart.grid.scale.scaleMin") ? l.style.chart.grid.scale.scaleMin = g.config.style.chart.grid.scale.scaleMin : l.style.chart.grid.scale.scaleMin = null, g.config && ve(g.config, "style.chart.grid.scale.scaleMax") ? l.style.chart.grid.scale.scaleMax = g.config.style.chart.grid.scale.scaleMax : l.style.chart.grid.scale.scaleMax = null, g.config && ve(g.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = g.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, g.config && ve(g.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = g.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, l;
65
66
  }
66
- Ze(() => g.config, (a) => {
67
- e.value = Se(), fe(), it.value += 1, nt.value += 1, ut.value += 1;
68
- }, { deep: !0 }), Ze(() => g.dataset, (a) => {
69
- Pe();
67
+ je(() => g.config, (a) => {
68
+ e.value = Te(), fe(), ct.value += 1, vt.value += 1, ht.value += 1;
69
+ }, { deep: !0 }), je(() => g.dataset, (a) => {
70
+ Ve();
70
71
  }, { deep: !0 });
71
- const C = y({
72
+ const L = y({
72
73
  dataLabels: {
73
74
  show: e.value.style.chart.bars.dataLabels.show
74
75
  },
75
76
  showTable: e.value.table.show,
76
77
  showTooltip: e.value.style.chart.tooltip.show
77
- }), { isPrinting: $e, isImaging: Me, generatePdf: Te, generateImage: Ne } = Ht({
78
+ }), { isPrinting: Ne, isImaging: Ie, generatePdf: Oe, generateImage: Pe } = Wt({
78
79
  elementId: `stackbar_${ge.value}`,
79
80
  fileName: e.value.style.chart.title.text || "vue-ui-stackbar"
80
81
  }), ae = y({
@@ -86,164 +87,164 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
86
87
  bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
87
88
  left: e.value.style.chart.padding.left / e.value.style.chart.width
88
89
  }
89
- }), ct = x(() => Tt(e.value.customPalette)), Ie = y(null), Oe = y(null);
90
- qe(() => {
90
+ }), dt = k(() => Ot(e.value.customPalette)), Ae = y(null), Re = y(null);
91
+ Qe(() => {
91
92
  fe();
92
93
  });
93
94
  function fe() {
94
- if (Nt(g.dataset) ? Qe({
95
+ if (Pt(g.dataset) ? tt({
95
96
  componentName: "VueUiStackbar",
96
97
  type: "dataset"
97
- }) : g.dataset.forEach((a, o) => {
98
- It({
98
+ }) : g.dataset.forEach((a, l) => {
99
+ At({
99
100
  datasetObject: a,
100
101
  requiredAttributes: ["name", "series"]
101
102
  }).forEach((t) => {
102
- Y.value = !1, Qe({
103
+ Y.value = !1, tt({
103
104
  componentName: "VueUiStackbar",
104
105
  type: "datasetSerieAttribute",
105
106
  property: t,
106
- index: o
107
+ index: l
107
108
  });
108
109
  });
109
110
  }), setTimeout(() => {
110
111
  Z.value = !0;
111
112
  }, 10), e.value.responsive) {
112
- const a = Dt(() => {
113
+ const a = Bt(() => {
113
114
  Z.value = !1;
114
- const { width: o, height: t } = Et({
115
+ const { width: l, height: t } = Ut({
115
116
  chart: X.value,
116
117
  title: e.value.style.chart.title.text ? we.value : null,
117
118
  legend: e.value.style.chart.legend.show ? ze.value : null,
118
119
  slicer: e.value.style.chart.zoom.show && R.value > 1 ? Ce.value : null,
119
- source: _e.value
120
+ source: Le.value
120
121
  });
121
- ae.value.width = o, ae.value.height = t, clearTimeout(Oe.value), Oe.value = setTimeout(() => {
122
+ ae.value.width = l, ae.value.height = t, clearTimeout(Re.value), Re.value = setTimeout(() => {
122
123
  Z.value = !0;
123
124
  }, 10);
124
125
  });
125
- Ie.value = new ResizeObserver(a), Ie.value.observe(X.value.parentNode);
126
+ Ae.value = new ResizeObserver(a), Ae.value.observe(X.value.parentNode);
126
127
  }
127
- Ae();
128
+ Fe();
128
129
  }
129
- const s = x(() => {
130
- const { height: a, width: o } = ae.value, { right: t } = ae.value.paddingRatio, l = e.value.style.chart.padding.top, n = o - o * t, u = a - e.value.style.chart.padding.bottom, w = e.value.style.chart.padding.left, F = o - w - o * t, D = a - l - e.value.style.chart.padding.bottom;
130
+ const s = k(() => {
131
+ const { height: a, width: l } = ae.value, { right: t } = ae.value.paddingRatio, o = e.value.style.chart.padding.top, n = l - l * t, u = a - e.value.style.chart.padding.bottom, z = e.value.style.chart.padding.left, F = l - z - l * t, D = a - o - e.value.style.chart.padding.bottom;
131
132
  return {
132
133
  chartHeight: a,
133
- chartWidth: o,
134
- top: l,
134
+ chartWidth: l,
135
+ top: o,
135
136
  right: n,
136
137
  bottom: u,
137
- left: w,
138
+ left: z,
138
139
  width: F,
139
140
  height: D < 0 ? 0 : D
140
141
  };
141
- }), A = x(() => g.dataset.map((a, o) => {
142
- const t = Ot(a.color) || ct.value[o] || ce[o] || ce[o % ce.length];
142
+ }), A = k(() => g.dataset.map((a, l) => {
143
+ const t = Rt(a.color) || dt.value[l] || ce[l] || ce[l % ce.length];
143
144
  return {
144
145
  ...a,
145
146
  // In distributed mode, all values are converted to positive
146
- series: JSON.parse(JSON.stringify(a.series)).map((l) => e.value.style.chart.bars.distributed ? Math.abs(l) : l),
147
+ series: JSON.parse(JSON.stringify(a.series)).map((o) => e.value.style.chart.bars.distributed ? Math.abs(o) : o),
147
148
  // Store signs to manage display of neg values in distributed mode
148
- signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
149
- absoluteIndex: o,
150
- id: Ke(),
149
+ signedSeries: a.series.map((o) => o >= 0 ? 1 : -1),
150
+ absoluteIndex: l,
151
+ id: et(),
151
152
  color: t
152
153
  };
153
- })), R = x(() => Math.max(...A.value.filter((a) => !L.value.includes(a.id)).map((a) => a.series.length))), c = y({
154
+ })), R = k(() => Math.max(...A.value.filter((a) => !_.value.includes(a.id)).map((a) => a.series.length))), c = y({
154
155
  start: 0,
155
156
  end: Math.max(...g.dataset.map((a) => a.series.length))
156
157
  });
157
- function Pe() {
158
- Ae();
158
+ function Ve() {
159
+ Fe();
159
160
  }
160
- async function Ae() {
161
- (e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && G.value ? (e.value.style.chart.zoom.startIndex !== null && (await ne(), await ne(), G.value && G.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await ne(), await ne(), G.value && G.value.setEndValue(vt(e.value.style.chart.zoom.endIndex + 1)))) : (c.value = {
161
+ async function Fe() {
162
+ (e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && G.value ? (e.value.style.chart.zoom.startIndex !== null && (await ne(), await ne(), G.value && G.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await ne(), await ne(), G.value && G.value.setEndValue(yt(e.value.style.chart.zoom.endIndex + 1)))) : (c.value = {
162
163
  start: 0,
163
164
  end: Math.max(...g.dataset.map((a) => a.series.length))
164
- }, Le.value += 1);
165
+ }, _e.value += 1);
165
166
  }
166
- function vt(a) {
167
- const o = Math.max(...g.dataset.map((t) => t.series.length));
168
- return a > o ? o : a < 0 || e.value.style.chart.zoom.startIndex !== null && a < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : a;
167
+ function yt(a) {
168
+ const l = Math.max(...g.dataset.map((t) => t.series.length));
169
+ return a > l ? l : a < 0 || e.value.style.chart.zoom.startIndex !== null && a < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : a;
169
170
  }
170
- const v = x(() => {
171
+ const v = k(() => {
171
172
  let a;
172
173
  return e.value.orientation === "vertical" ? a = s.value.width / (c.value.end - c.value.start) : a = s.value.height / (c.value.end - c.value.start), a <= 0 ? 0 : a;
173
- }), K = x(() => he(A.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)), ht = x(() => he(A.value.filter((a) => !L.value.includes(a.id)).map((a) => ({
174
+ }), K = k(() => he(A.value.filter((a) => !_.value.includes(a.id))).slice(c.value.start, c.value.end)), gt = k(() => he(A.value.filter((a) => !_.value.includes(a.id)).map((a) => ({
174
175
  ...a,
175
- series: a.series.map((o, t) => a.signedSeries[t] === -1 && o >= 0 ? -o : o)
176
- }))).slice(c.value.start, c.value.end)), le = x(() => {
177
- const a = A.value.filter((o) => !L.value.includes(o.id));
176
+ series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
177
+ }))).slice(c.value.start, c.value.end)), le = k(() => {
178
+ const a = A.value.filter((l) => !_.value.includes(l.id));
178
179
  return {
179
- positive: he(a.map((o) => ({
180
- ...o,
181
- series: o.series.slice(c.value.start, c.value.end).map((t) => t >= 0 ? t : 0)
180
+ positive: he(a.map((l) => ({
181
+ ...l,
182
+ series: l.series.slice(c.value.start, c.value.end).map((t) => t >= 0 ? t : 0)
182
183
  }))),
183
- negative: he(a.map((o) => ({
184
- ...o,
185
- series: o.series.slice(c.value.start, c.value.end).map((t) => t < 0 ? t : 0)
184
+ negative: he(a.map((l) => ({
185
+ ...l,
186
+ series: l.series.slice(c.value.start, c.value.end).map((t) => t < 0 ? t : 0)
186
187
  })))
187
188
  };
188
- }), N = x(() => {
189
- 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(...le.value.positive), o = Math.min(...le.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) : et(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
190
- return l.ticks.map((n) => ({
191
- zero: s.value.bottom - s.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
192
- y: s.value.bottom - s.value.height * ((n + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
189
+ }), N = k(() => {
190
+ 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(...le.value.positive), l = Math.min(...le.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(l) ? 0 : l, o = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? at(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : lt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
191
+ return o.ticks.map((n) => ({
192
+ zero: s.value.bottom - s.value.height * (Math.abs(o.min) / (o.max + Math.abs(o.min))),
193
+ y: s.value.bottom - s.value.height * ((n + Math.abs(o.min)) / (o.max + Math.abs(o.min))),
193
194
  x: s.value.left - 8,
194
- horizontal_zero: s.value.left + s.value.width * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
195
- horizontal_x: s.value.left + s.value.width * ((n + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
195
+ horizontal_zero: s.value.left + s.value.width * (Math.abs(o.min) / (o.max + Math.abs(o.min))),
196
+ horizontal_x: s.value.left + s.value.width * ((n + Math.abs(o.min)) / (o.max + Math.abs(o.min))),
196
197
  horizontal_y: s.value.bottom - 8,
197
198
  value: n
198
199
  }));
199
- }), V = x(() => {
200
+ }), V = k(() => {
200
201
  const a = [];
201
- for (let o = 0; o < R.value; o += 1)
202
+ for (let l = 0; l < R.value; l += 1)
202
203
  a.push({
203
- text: e.value.style.chart.grid.x.timeLabels.values[o] || String(o),
204
- absoluteIndex: o
204
+ text: e.value.style.chart.grid.x.timeLabels.values[l] || String(l),
205
+ absoluteIndex: l
205
206
  });
206
207
  return a.slice(c.value.start, c.value.end);
207
- }), p = x(() => {
208
+ }), x = k(() => {
208
209
  if (!Y.value) return [];
209
- let a = Array(R.value).fill(0), o = Array(R.value).fill(0), t = Array(R.value).fill(0), l = Array(R.value).fill(0);
210
- const n = Math.max(...le.value.positive) || 0, u = Math.min(...le.value.negative), w = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, F = !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 : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : n < 0 ? 0 : n, e.value.style.chart.grid.scale.ticks) : et(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : n < 0 ? 0 : n, e.value.style.chart.grid.scale.ticks), { min: D, max: Q } = F, E = Q + (D >= 0 ? 0 : Math.abs(D)) || 1, $ = s.value.height, ie = s.value.width, Ue = N.value[0] ? N.value[0].zero : s.value.bottom, Je = N.value[0] ? N.value[0].horizontal_zero : s.value.left;
211
- return A.value.filter((j) => !L.value.includes(j.id)).map((j) => {
212
- const I = j.series.slice(c.value.start, c.value.end), ft = j.signedSeries.slice(c.value.start, c.value.end), mt = I.map((b, m) => s.value.left + v.value * m + v.value * e.value.style.chart.bars.gapRatio / 4), pt = I.map((b, m) => s.value.top + v.value * m + v.value * e.value.style.chart.bars.gapRatio / 4), xt = I.map((b, m) => {
210
+ let a = Array(R.value).fill(0), l = Array(R.value).fill(0), t = Array(R.value).fill(0), o = Array(R.value).fill(0);
211
+ const n = Math.max(...le.value.positive) || 0, u = Math.min(...le.value.negative), z = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, F = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? at(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : z > 0 ? 0 : z, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : n < 0 ? 0 : n, e.value.style.chart.grid.scale.ticks) : lt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : z > 0 ? 0 : z, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : n < 0 ? 0 : n, e.value.style.chart.grid.scale.ticks), { min: D, max: Q } = F, E = Q + (D >= 0 ? 0 : Math.abs(D)) || 1, $ = s.value.height, ie = s.value.width, Ze = N.value[0] ? N.value[0].zero : s.value.bottom, Ke = N.value[0] ? N.value[0].horizontal_zero : s.value.left;
212
+ return A.value.filter((j) => !_.value.includes(j.id)).map((j) => {
213
+ const I = j.series.slice(c.value.start, c.value.end), xt = j.signedSeries.slice(c.value.start, c.value.end), kt = I.map((b, m) => s.value.left + v.value * m + v.value * e.value.style.chart.bars.gapRatio / 4), wt = I.map((b, m) => s.value.top + v.value * m + v.value * e.value.style.chart.bars.gapRatio / 4), zt = I.map((b, m) => {
213
214
  const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / E;
214
215
  let H, T;
215
- return b > 0 ? (T = $ * M, H = Ue - T - a[m], a[m] += T) : (T = $ * M, H = Ue + t[m], t[m] += Math.abs(T)), H;
216
- }), kt = I.map((b, m) => {
216
+ return b > 0 ? (T = $ * M, H = Ze - T - a[m], a[m] += T) : (T = $ * M, H = Ze + t[m], t[m] += Math.abs(T)), H;
217
+ }), Ct = I.map((b, m) => {
217
218
  const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / E;
218
219
  let H, T;
219
- return b > 0 ? (T = ie * M, H = Je + o[m], o[m] += T) : (T = ie * M, H = Je - Math.abs(T) - l[m], l[m] += Math.abs(T)), H;
220
- }), wt = I.map((b, m) => {
220
+ return b > 0 ? (T = ie * M, H = Ke + l[m], l[m] += T) : (T = ie * M, H = Ke - Math.abs(T) - o[m], o[m] += Math.abs(T)), H;
221
+ }), Lt = I.map((b, m) => {
221
222
  const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / E;
222
223
  return b > 0 ? $ * M : $ * Math.abs(M);
223
- }), zt = I.map((b, m) => {
224
+ }), _t = I.map((b, m) => {
224
225
  const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / E;
225
226
  return b > 0 ? ie * M : ie * Math.abs(M);
226
- }), Ct = I.map((b) => Math.abs(b)).reduce((b, m) => b + m, 0);
227
+ }), St = I.map((b) => Math.abs(b)).reduce((b, m) => b + m, 0);
227
228
  return {
228
229
  ...j,
229
- proportions: I.map((b, m) => e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / Ct),
230
+ proportions: I.map((b, m) => e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / St),
230
231
  series: I,
231
- signedSeries: ft,
232
- x: mt,
233
- y: xt,
234
- height: wt,
235
- horizontal_width: zt,
236
- horizontal_y: pt,
237
- horizontal_x: kt
232
+ signedSeries: xt,
233
+ x: kt,
234
+ y: zt,
235
+ height: Lt,
236
+ horizontal_width: _t,
237
+ horizontal_y: wt,
238
+ horizontal_x: Ct
238
239
  };
239
240
  });
240
- }), Re = x(() => ht.value.map((a, o) => ({
241
+ }), De = k(() => gt.value.map((a, l) => ({
241
242
  value: a,
242
243
  sign: a >= 0 ? 1 : -1
243
244
  })));
244
- function oe(a, o, t, l, n) {
245
+ function oe(a, l, t, o, n) {
245
246
  const u = n === -1 && a >= 0 ? -a : a;
246
- return lt(
247
+ return st(
247
248
  e.value.style.chart.bars.dataLabels.formatter,
248
249
  u,
249
250
  W({
@@ -252,11 +253,11 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
252
253
  s: e.value.style.chart.bars.dataLabels.suffix,
253
254
  r: e.value.style.chart.bars.dataLabels.rounding
254
255
  }),
255
- { datapoint: o, seriesIndex: t, datapointIndex: l }
256
+ { datapoint: l, seriesIndex: t, datapointIndex: o }
256
257
  );
257
258
  }
258
- function Ve(a, o, t, l) {
259
- return lt(
259
+ function Ee(a, l, t, o) {
260
+ return st(
260
261
  e.value.style.chart.bars.dataLabels.formatter,
261
262
  a,
262
263
  W({
@@ -264,50 +265,50 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
264
265
  s: "%",
265
266
  r: e.value.style.chart.bars.dataLabels.rounding
266
267
  }),
267
- { datapoint: o, seriesIndex: t, datapointIndex: l }
268
+ { datapoint: l, seriesIndex: t, datapointIndex: o }
268
269
  );
269
270
  }
270
- function Fe(a) {
271
- const o = JSON.parse(JSON.stringify(p.value)).map((t) => ({
271
+ function He(a) {
272
+ const l = JSON.parse(JSON.stringify(x.value)).map((t) => ({
272
273
  name: t.name,
273
274
  value: t.series[a] === 0 ? 0 : t.series[a] || null,
274
275
  proportion: t.proportions[a] || null,
275
276
  color: t.color,
276
277
  id: t.id
277
278
  }));
278
- ye("selectDatapoint", { datapoint: o, period: V.value[a] });
279
+ ye("selectDatapoint", { datapoint: l, period: V.value[a] });
279
280
  }
280
- function De(a) {
281
+ function Be(a) {
281
282
  q.value = a, ee.value = !0;
282
- const o = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(p.value)).map((n) => ({
283
+ const l = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(x.value)).map((n) => ({
283
284
  name: n.name,
284
285
  value: n.series[a] === 0 ? 0 : (n.signedSeries[a] === -1 && n.series[a] >= 0 ? -n.series[a] : n.series[a]) || null,
285
286
  proportion: n.proportions[a] || null,
286
287
  color: n.color,
287
288
  id: n.id
288
- })), l = t.map((n) => Math.abs(n.value)).reduce((n, u) => n + u, 0);
289
- if (at(o) && Rt(() => o({
289
+ })), o = t.map((n) => Math.abs(n.value)).reduce((n, u) => n + u, 0);
290
+ if (rt(l) && Dt(() => l({
290
291
  seriesIndex: a,
291
292
  datapoint: t,
292
- series: p.value,
293
+ series: x.value,
293
294
  config: e.value
294
295
  })))
295
- be.value = o({
296
+ be.value = l({
296
297
  seriesIndex: a,
297
298
  datapoint: t,
298
- series: p.value,
299
+ series: x.value,
299
300
  config: e.value
300
301
  });
301
302
  else {
302
303
  const {
303
304
  showValue: n,
304
305
  showPercentage: u,
305
- borderColor: w,
306
+ borderColor: z,
306
307
  roundingValue: F,
307
308
  roundingPercentage: D
308
309
  } = e.value.style.chart.tooltip;
309
310
  let Q = "";
310
- V.value[a] && V.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (Q += `<div style="width:100%;text-align:center;border-bottom:1px solid ${w};padding-bottom:6px;margin-bottom:3px;">${V.value[a].text}</div>`);
311
+ V.value[a] && V.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (Q += `<div style="width:100%;text-align:center;border-bottom:1px solid ${z};padding-bottom:6px;margin-bottom:3px;">${V.value[a].text}</div>`);
311
312
  const E = [
312
313
  n && u ? "(" : "",
313
314
  n && u ? ")" : ""
@@ -322,7 +323,7 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
322
323
  s: e.value.style.chart.bars.dataLabels.suffix,
323
324
  r: F
324
325
  }) : ""} ${E[0]}${u ? W({
325
- v: isNaN($.value / l) ? 0 : Math.abs($.value) / l * 100,
326
+ v: isNaN($.value / o) ? 0 : Math.abs($.value) / o * 100,
326
327
  // Negs are absed to show relative proportion to absolute total. It's opinionated.
327
328
  s: "%",
328
329
  r: D
@@ -332,45 +333,45 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
332
333
  }), be.value = `<div>${Q}</div>`;
333
334
  }
334
335
  }
335
- function dt(a) {
336
+ function bt(a) {
336
337
  te.value = a, ke.value += 1;
337
338
  }
338
- function Ee() {
339
- C.value.showTable = !C.value.showTable;
339
+ function Ue() {
340
+ L.value.showTable = !L.value.showTable;
340
341
  }
341
- function He() {
342
- C.value.dataLabels.show = !C.value.dataLabels.show;
342
+ function We() {
343
+ L.value.dataLabels.show = !L.value.dataLabels.show;
343
344
  }
344
- function Be() {
345
- C.value.showTooltip = !C.value.showTooltip;
345
+ function Ye() {
346
+ L.value.showTooltip = !L.value.showTooltip;
346
347
  }
347
- function yt() {
348
- return p.value;
348
+ function ft() {
349
+ return x.value;
349
350
  }
350
- const We = x(() => {
351
- if (p.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
352
- const a = p.value.map(({ name: t, color: l }) => ({
351
+ const Xe = k(() => {
352
+ if (x.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
353
+ const a = x.value.map(({ name: t, color: o }) => ({
353
354
  label: t,
354
- color: l
355
- })), o = [];
355
+ color: o
356
+ })), l = [];
356
357
  for (let t = c.value.start; t < c.value.end; t += 1) {
357
- const l = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
358
+ const o = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
358
359
  A.value.forEach((n) => {
359
- l.push(Number((n.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
360
- }), o.push(l);
360
+ o.push(Number((n.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
361
+ }), l.push(o);
361
362
  }
362
- return { head: a, body: o };
363
+ return { head: a, body: l };
363
364
  });
364
- function Ye() {
365
- const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = ["", ...We.value.head.map((u) => u.label)], t = We.value.body, l = a.concat([o]).concat(t), n = Vt(l);
366
- Ft({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
365
+ function Ge() {
366
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = ["", ...Xe.value.head.map((u) => u.label)], t = Xe.value.body, o = a.concat([l]).concat(t), n = Et(o);
367
+ Ht({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
367
368
  }
368
- const re = x(() => {
369
- const a = [""].concat(p.value.map((n) => n.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>');
370
- let o = [];
369
+ const re = k(() => {
370
+ const a = [""].concat(x.value.map((n) => n.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>');
371
+ let l = [];
371
372
  for (let n = 0; n < R.value; n += 1) {
372
- const u = p.value.map((w) => w.series[n] ?? 0).reduce((w, F) => w + F, 0);
373
- o.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[n] ?? n + 1].concat(p.value.map((w) => (w.series[n] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
373
+ const u = x.value.map((z) => z.series[n] ?? 0).reduce((z, F) => z + F, 0);
374
+ l.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[n] ?? n + 1].concat(x.value.map((z) => (z.series[n] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
374
375
  }
375
376
  const t = {
376
377
  th: {
@@ -384,26 +385,26 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
384
385
  outline: e.value.table.td.outline
385
386
  },
386
387
  breakpoint: e.value.table.responsiveBreakpoint
387
- }, l = [e.value.table.columnNames.period].concat(p.value.map((n) => n.name)).concat(e.value.table.columnNames.total);
388
- return { head: a, body: o.slice(0, c.value.end - c.value.start), config: t, colNames: l };
388
+ }, o = [e.value.table.columnNames.period].concat(x.value.map((n) => n.name)).concat(e.value.table.columnNames.total);
389
+ return { head: a, body: l.slice(0, c.value.end - c.value.start), config: t, colNames: o };
389
390
  });
390
- function gt(a, o) {
391
- if (ye("selectLegend", p.value.find((t) => t.absoluteIndex === a)), L.value.includes(o.id))
392
- L.value = L.value.filter((t) => t !== o.id);
391
+ function mt(a, l) {
392
+ if (ye("selectLegend", x.value.find((t) => t.absoluteIndex === a)), _.value.includes(l.id))
393
+ _.value = _.value.filter((t) => t !== l.id);
393
394
  else {
394
- if (L.value.length === A.value.length - 1) return;
395
- L.value.push(o.id);
395
+ if (_.value.length === A.value.length - 1) return;
396
+ _.value.push(l.id);
396
397
  }
397
398
  }
398
- const Xe = x(() => A.value.map((a, o) => ({
399
+ const Je = k(() => A.value.map((a, l) => ({
399
400
  ...a,
400
401
  shape: "square"
401
402
  })).map((a) => ({
402
403
  ...a,
403
- opacity: L.value.includes(a.id) ? 0.5 : 1,
404
- segregate: () => gt(a.absoluteIndex, a),
405
- isSegregated: L.value.includes(a.id)
406
- }))), bt = x(() => ({
404
+ opacity: _.value.includes(a.id) ? 0.5 : 1,
405
+ segregate: () => mt(a.absoluteIndex, a),
406
+ isSegregated: _.value.includes(a.id)
407
+ }))), pt = k(() => ({
407
408
  cy: "stackbar-legend",
408
409
  backgroundColor: e.value.style.chart.legend.backgroundColor,
409
410
  color: e.value.style.chart.legend.color,
@@ -414,13 +415,13 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
414
415
  function me() {
415
416
  se.value = !se.value;
416
417
  }
417
- function Ge(a, o) {
418
- const t = JSON.parse(JSON.stringify(p.value)).map((l) => ({
419
- name: l.name,
420
- value: l.series[o] === 0 ? 0 : (l.signedSeries[o] === -1 && l.series[o] >= 0 ? -l.series[o] : l.series[o]) || null,
421
- proportion: l.proportions[o] || null,
422
- color: l.color,
423
- id: l.id
418
+ function qe(a, l) {
419
+ const t = JSON.parse(JSON.stringify(x.value)).map((o) => ({
420
+ name: o.name,
421
+ value: o.series[l] === 0 ? 0 : (o.signedSeries[l] === -1 && o.series[l] >= 0 ? -o.series[l] : o.series[l]) || null,
422
+ proportion: o.proportions[l] || null,
423
+ color: o.color,
424
+ id: o.id
424
425
  }));
425
426
  ye("selectTimeLabel", {
426
427
  datapoint: t,
@@ -428,23 +429,25 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
428
429
  label: a.text
429
430
  });
430
431
  }
431
- return rt({
432
- getData: yt,
433
- generatePdf: Te,
434
- generateCsv: Ye,
435
- generateImage: Ne,
436
- toggleTable: Ee,
437
- toggleLabels: He,
438
- toggleTooltip: Be,
432
+ return nt({
433
+ getData: ft,
434
+ generatePdf: Oe,
435
+ generateCsv: Ge,
436
+ generateImage: Pe,
437
+ toggleTable: Ue,
438
+ toggleLabels: We,
439
+ toggleTooltip: Ye,
439
440
  toggleAnnotator: me
440
- }), (a, o) => (r(), i("div", {
441
+ }), (a, l) => (r(), i("div", {
441
442
  id: `stackbar_${ge.value}`,
442
443
  ref_key: "stackbarChart",
443
444
  ref: X,
444
445
  class: pe({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": te.value }),
445
- 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%" : ""}`)
446
+ 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%" : ""}`),
447
+ onMouseenter: l[6] || (l[6] = () => p($e)(!0)),
448
+ onMouseleave: l[7] || (l[7] = () => p($e)(!1))
446
449
  }, [
447
- e.value.userOptions.buttons.annotator ? (r(), J(Kt, {
450
+ e.value.userOptions.buttons.annotator ? (r(), J(ea, {
448
451
  key: 0,
449
452
  parent: X.value,
450
453
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -452,14 +455,14 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
452
455
  active: se.value,
453
456
  onClose: me
454
457
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : d("", !0),
455
- k(a.$slots, "userConfig", {}, void 0, !0),
458
+ w(a.$slots, "userConfig", {}, void 0, !0),
456
459
  e.value.style.chart.title.text ? (r(), i("div", {
457
460
  key: 1,
458
461
  ref_key: "chartTitle",
459
462
  ref: we,
460
463
  style: "width:100%;background:transparent;padding-bottom:24px"
461
464
  }, [
462
- ue(Xt, {
465
+ ue(Jt, {
463
466
  config: {
464
467
  title: {
465
468
  cy: "stackbar-title",
@@ -472,13 +475,13 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
472
475
  }
473
476
  }, null, 8, ["config"])
474
477
  ], 512)) : d("", !0),
475
- e.value.userOptions.show && Y.value ? (r(), J(Bt, {
478
+ e.value.userOptions.show && Y.value && (p(Me) || p(Se)) ? (r(), J(Yt, {
476
479
  ref: "details",
477
480
  key: `user_option_${ke.value}`,
478
481
  backgroundColor: e.value.style.chart.backgroundColor,
479
482
  color: e.value.style.chart.color,
480
- isPrinting: _($e),
481
- isImaging: _(Me),
483
+ isPrinting: p(Ne),
484
+ isImaging: p(Ie),
482
485
  uid: ge.value,
483
486
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
484
487
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -490,106 +493,109 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
490
493
  isFullscreen: te.value,
491
494
  chartElement: X.value,
492
495
  position: e.value.userOptions.position,
493
- isTooltip: C.value.showTooltip,
496
+ isTooltip: L.value.showTooltip,
494
497
  titles: { ...e.value.userOptions.buttonTitles },
495
498
  hasAnnotator: e.value.userOptions.buttons.annotator,
496
499
  isAnnotation: se.value,
497
- onToggleFullscreen: dt,
498
- onGeneratePdf: _(Te),
499
- onGenerateCsv: Ye,
500
- onGenerateImage: _(Ne),
501
- onToggleTable: Ee,
502
- onToggleLabels: He,
503
- onToggleTooltip: Be,
504
- onToggleAnnotator: me
505
- }, _t({ _: 2 }, [
500
+ onToggleFullscreen: bt,
501
+ onGeneratePdf: p(Oe),
502
+ onGenerateCsv: Ge,
503
+ onGenerateImage: p(Pe),
504
+ onToggleTable: Ue,
505
+ onToggleLabels: We,
506
+ onToggleTooltip: Ye,
507
+ onToggleAnnotator: me,
508
+ style: B({
509
+ visibility: p(Me) ? p(Se) ? "visible" : "hidden" : "visible"
510
+ })
511
+ }, $t({ _: 2 }, [
506
512
  a.$slots.optionTooltip ? {
507
513
  name: "optionTooltip",
508
- fn: z(() => [
509
- k(a.$slots, "optionTooltip", {}, void 0, !0)
514
+ fn: C(() => [
515
+ w(a.$slots, "optionTooltip", {}, void 0, !0)
510
516
  ]),
511
517
  key: "0"
512
518
  } : void 0,
513
519
  a.$slots.optionPdf ? {
514
520
  name: "optionPdf",
515
- fn: z(() => [
516
- k(a.$slots, "optionPdf", {}, void 0, !0)
521
+ fn: C(() => [
522
+ w(a.$slots, "optionPdf", {}, void 0, !0)
517
523
  ]),
518
524
  key: "1"
519
525
  } : void 0,
520
526
  a.$slots.optionCsv ? {
521
527
  name: "optionCsv",
522
- fn: z(() => [
523
- k(a.$slots, "optionCsv", {}, void 0, !0)
528
+ fn: C(() => [
529
+ w(a.$slots, "optionCsv", {}, void 0, !0)
524
530
  ]),
525
531
  key: "2"
526
532
  } : void 0,
527
533
  a.$slots.optionImg ? {
528
534
  name: "optionImg",
529
- fn: z(() => [
530
- k(a.$slots, "optionImg", {}, void 0, !0)
535
+ fn: C(() => [
536
+ w(a.$slots, "optionImg", {}, void 0, !0)
531
537
  ]),
532
538
  key: "3"
533
539
  } : void 0,
534
540
  a.$slots.optionTable ? {
535
541
  name: "optionTable",
536
- fn: z(() => [
537
- k(a.$slots, "optionTable", {}, void 0, !0)
542
+ fn: C(() => [
543
+ w(a.$slots, "optionTable", {}, void 0, !0)
538
544
  ]),
539
545
  key: "4"
540
546
  } : void 0,
541
547
  a.$slots.optionLabels ? {
542
548
  name: "optionLabels",
543
- fn: z(() => [
544
- k(a.$slots, "optionLabels", {}, void 0, !0)
549
+ fn: C(() => [
550
+ w(a.$slots, "optionLabels", {}, void 0, !0)
545
551
  ]),
546
552
  key: "5"
547
553
  } : void 0,
548
554
  a.$slots.optionFullscreen ? {
549
555
  name: "optionFullscreen",
550
- fn: z(({ toggleFullscreen: t, isFullscreen: l }) => [
551
- k(a.$slots, "optionFullscreen", O(P({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
556
+ fn: C(({ toggleFullscreen: t, isFullscreen: o }) => [
557
+ w(a.$slots, "optionFullscreen", O(P({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
552
558
  ]),
553
559
  key: "6"
554
560
  } : void 0,
555
561
  a.$slots.optionAnnotator ? {
556
562
  name: "optionAnnotator",
557
- fn: z(({ toggleAnnotator: t, isAnnotator: l }) => [
558
- k(a.$slots, "optionAnnotator", O(P({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
563
+ fn: C(({ toggleAnnotator: t, isAnnotator: o }) => [
564
+ w(a.$slots, "optionAnnotator", O(P({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
559
565
  ]),
560
566
  key: "7"
561
567
  } : void 0
562
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
568
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
563
569
  Y.value ? (r(), i("svg", {
564
570
  key: 3,
565
- xmlns: _(Pt),
571
+ xmlns: p(Vt),
566
572
  viewBox: `0 0 ${s.value.chartWidth <= 0 ? 10 : s.value.chartWidth} ${s.value.chartHeight <= 0 ? 10 : s.value.chartHeight}`,
567
- style: U(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
573
+ style: B(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
568
574
  }, [
569
- ue(Zt),
570
- e.value.style.chart.bars.gradient.show ? (r(), i("defs", ta, [
571
- (r(!0), i(h, null, f(p.value, (t, l) => (r(), i("linearGradient", {
575
+ ue(jt),
576
+ e.value.style.chart.bars.gradient.show ? (r(), i("defs", ra, [
577
+ (r(!0), i(h, null, f(x.value, (t, o) => (r(), i("linearGradient", {
572
578
  id: `gradient_${t.id}`,
573
579
  x1: "0%",
574
580
  y1: "0%",
575
581
  x2: "0%",
576
582
  y2: "100%"
577
583
  }, [
578
- B("stop", {
584
+ U("stop", {
579
585
  offset: "0%",
580
586
  "stop-color": t.color
581
- }, null, 8, la),
582
- B("stop", {
587
+ }, null, 8, ia),
588
+ U("stop", {
583
589
  offset: "61.8%",
584
- "stop-color": _(At)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
585
- }, null, 8, oa),
586
- B("stop", {
590
+ "stop-color": p(Ft)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
591
+ }, null, 8, na),
592
+ U("stop", {
587
593
  offset: "100%",
588
594
  "stop-color": t.color
589
- }, null, 8, ra)
590
- ], 8, aa))), 256))
595
+ }, null, 8, ua)
596
+ ], 8, sa))), 256))
591
597
  ])) : d("", !0),
592
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), i(h, { key: 1 }, f(N.value, (t, l) => (r(), i("line", {
598
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), i(h, { key: 1 }, f(N.value, (t, o) => (r(), i("line", {
593
599
  x1: s.value.left,
594
600
  x2: s.value.right,
595
601
  y1: t.y,
@@ -597,26 +603,26 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
597
603
  stroke: e.value.style.chart.grid.x.axisColor,
598
604
  "stroke-width": 1,
599
605
  "stroke-linecap": "round"
600
- }, null, 8, sa))), 256)) : d("", !0),
601
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), i(h, { key: 2 }, f(c.value.end - c.value.start + 1, (t, l) => (r(), i("line", {
606
+ }, null, 8, ca))), 256)) : d("", !0),
607
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), i(h, { key: 2 }, f(c.value.end - c.value.start + 1, (t, o) => (r(), i("line", {
602
608
  x1: s.value.left,
603
609
  x2: s.value.right,
604
- y1: s.value.top + v.value * l,
605
- y2: s.value.top + v.value * l,
610
+ y1: s.value.top + v.value * o,
611
+ y2: s.value.top + v.value * o,
606
612
  stroke: e.value.style.chart.grid.y.axisColor,
607
613
  "stroke-width": 1,
608
614
  "stroke-linecap": "round"
609
- }, null, 8, ia))), 256)) : d("", !0),
610
- e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), i(h, { key: 3 }, f(c.value.end - c.value.start + 1, (t, l) => (r(), i("line", {
611
- x1: s.value.left + v.value * l,
612
- x2: s.value.left + v.value * l,
615
+ }, null, 8, va))), 256)) : d("", !0),
616
+ e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), i(h, { key: 3 }, f(c.value.end - c.value.start + 1, (t, o) => (r(), i("line", {
617
+ x1: s.value.left + v.value * o,
618
+ x2: s.value.left + v.value * o,
613
619
  y1: s.value.top,
614
620
  y2: s.value.bottom,
615
621
  stroke: e.value.style.chart.grid.y.axisColor,
616
622
  "stroke-width": 1,
617
623
  "stroke-linecap": "round"
618
- }, null, 8, na))), 256)) : d("", !0),
619
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), i(h, { key: 4 }, f(N.value, (t, l) => (r(), i("line", {
624
+ }, null, 8, ha))), 256)) : d("", !0),
625
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), i(h, { key: 4 }, f(N.value, (t, o) => (r(), i("line", {
620
626
  x1: t.horizontal_x,
621
627
  x2: t.horizontal_x,
622
628
  y1: s.value.top,
@@ -624,8 +630,8 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
624
630
  stroke: e.value.style.chart.grid.x.axisColor,
625
631
  "stroke-width": 1,
626
632
  "stroke-linecap": "round"
627
- }, null, 8, ua))), 256)) : d("", !0),
628
- (r(!0), i(h, null, f(p.value, (t, l) => (r(), i("g", null, [
633
+ }, null, 8, da))), 256)) : d("", !0),
634
+ (r(!0), i(h, null, f(x.value, (t, o) => (r(), i("g", null, [
629
635
  e.value.orientation === "vertical" ? (r(!0), i(h, { key: 0 }, f(t.x, (n, u) => (r(), i("rect", {
630
636
  x: n,
631
637
  y: t.y[u] < 0 ? 0 : t.y[u],
@@ -638,7 +644,7 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
638
644
  "stroke-linecap": "round",
639
645
  "stroke-linejoin": "round",
640
646
  class: pe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Z.value })
641
- }, null, 10, ca))), 256)) : (r(!0), i(h, { key: 1 }, f(t.horizontal_x, (n, u) => (r(), i("rect", {
647
+ }, null, 10, ya))), 256)) : (r(!0), i(h, { key: 1 }, f(t.horizontal_x, (n, u) => (r(), i("rect", {
642
648
  x: n,
643
649
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
644
650
  width: t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u],
@@ -650,7 +656,7 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
650
656
  "stroke-linecap": "round",
651
657
  "stroke-linejoin": "round",
652
658
  class: pe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Z.value })
653
- }, null, 10, va))), 256))
659
+ }, null, 10, ga))), 256))
654
660
  ]))), 256)),
655
661
  e.value.style.chart.grid.x.showAxis ? (r(), i("line", {
656
662
  key: 5,
@@ -662,7 +668,7 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
662
668
  "stroke-width": e.value.style.chart.grid.x.axisThickness,
663
669
  "stroke-linecap": "round",
664
670
  "stroke-linejoin": "round"
665
- }, null, 8, ha)) : d("", !0),
671
+ }, null, 8, ba)) : d("", !0),
666
672
  e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (r(), i("line", {
667
673
  key: 6,
668
674
  x1: s.value.left,
@@ -673,7 +679,7 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
673
679
  "stroke-width": e.value.style.chart.grid.y.axisThickness,
674
680
  "stroke-linecap": "round",
675
681
  "stroke-linejoin": "round"
676
- }, null, 8, da)) : d("", !0),
682
+ }, null, 8, fa)) : d("", !0),
677
683
  e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (r(), i("text", {
678
684
  key: 7,
679
685
  x: s.value.left + s.value.width / 2,
@@ -682,7 +688,7 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
682
688
  fill: e.value.style.chart.grid.x.axisName.color,
683
689
  "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
684
690
  "text-anchor": "middle"
685
- }, S(e.value.style.chart.grid.x.axisName.text), 9, ya)) : d("", !0),
691
+ }, S(e.value.style.chart.grid.x.axisName.text), 9, ma)) : d("", !0),
686
692
  e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (r(), i("text", {
687
693
  key: 8,
688
694
  transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${s.value.top + s.value.height / 2}) rotate(-90)`,
@@ -690,76 +696,76 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
690
696
  fill: e.value.style.chart.grid.y.axisName.color,
691
697
  "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
692
698
  "text-anchor": "middle"
693
- }, S(e.value.style.chart.grid.y.axisName.text), 9, ga)) : d("", !0),
694
- C.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), i(h, { key: 9 }, [
695
- (r(!0), i(h, null, f(p.value, (t, l) => (r(), i("g", null, [
699
+ }, S(e.value.style.chart.grid.y.axisName.text), 9, pa)) : d("", !0),
700
+ L.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), i(h, { key: 9 }, [
701
+ (r(!0), i(h, null, f(x.value, (t, o) => (r(), i("g", null, [
696
702
  (r(!0), i(h, null, f(t.x, (n, u) => (r(), i("text", {
697
703
  x: n + v.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
698
704
  y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
699
705
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
700
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? _(tt)(t.color) : e.value.style.chart.bars.dataLabels.color,
706
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? p(ot)(t.color) : e.value.style.chart.bars.dataLabels.color,
701
707
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
702
708
  "text-anchor": "middle"
703
- }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ve(t.proportions[u] * 100, t, l, u) : oe(t.series[u], t, l, u, t.signedSeries[u])), 9, ba))), 256))
709
+ }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ee(t.proportions[u] * 100, t, o, u) : oe(t.series[u], t, o, u, t.signedSeries[u])), 9, xa))), 256))
704
710
  ]))), 256)),
705
- e.value.style.chart.bars.totalValues.show && p.value.length > 1 ? (r(), i("g", fa, [
706
- (r(!0), i(h, null, f(Re.value, (t, l) => (r(), i("text", {
707
- x: s.value.left + v.value * l + v.value / 2,
711
+ e.value.style.chart.bars.totalValues.show && x.value.length > 1 ? (r(), i("g", ka, [
712
+ (r(!0), i(h, null, f(De.value, (t, o) => (r(), i("text", {
713
+ x: s.value.left + v.value * o + v.value / 2,
708
714
  y: s.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
709
715
  "text-anchor": "middle",
710
716
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
711
717
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
712
718
  fill: e.value.style.chart.bars.totalValues.color
713
- }, S(oe(t.value, t, l, t.sign)), 9, ma))), 256))
719
+ }, S(oe(t.value, t, o, t.sign)), 9, wa))), 256))
714
720
  ])) : d("", !0)
715
721
  ], 64)) : d("", !0),
716
- C.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), i(h, { key: 10 }, [
717
- (r(!0), i(h, null, f(p.value, (t, l) => (r(), i("g", null, [
722
+ L.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), i(h, { key: 10 }, [
723
+ (r(!0), i(h, null, f(x.value, (t, o) => (r(), i("g", null, [
718
724
  (r(!0), i(h, null, f(t.horizontal_x, (n, u) => (r(), i("text", {
719
725
  x: n + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
720
726
  y: t.horizontal_y[u] + v.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
721
727
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
722
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? _(tt)(t.color) : e.value.style.chart.bars.dataLabels.color,
728
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? p(ot)(t.color) : e.value.style.chart.bars.dataLabels.color,
723
729
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
724
730
  "text-anchor": "middle"
725
- }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ve(t.proportions[u] * 100, t, l, u) : oe(t.series[u], t, l, u, t.signedSeries[u])), 9, pa))), 256))
731
+ }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ee(t.proportions[u] * 100, t, o, u) : oe(t.series[u], t, o, u, t.signedSeries[u])), 9, za))), 256))
726
732
  ]))), 256)),
727
- e.value.style.chart.bars.totalValues.show && p.value.length > 1 ? (r(), i("g", xa, [
728
- (r(!0), i(h, null, f(Re.value, (t, l) => (r(), i("text", {
733
+ e.value.style.chart.bars.totalValues.show && x.value.length > 1 ? (r(), i("g", Ca, [
734
+ (r(!0), i(h, null, f(De.value, (t, o) => (r(), i("text", {
729
735
  x: s.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
730
- y: s.value.top + v.value * l + v.value / 2,
736
+ y: s.value.top + v.value * o + v.value / 2,
731
737
  "text-anchor": "start",
732
738
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
733
739
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
734
740
  fill: e.value.style.chart.bars.totalValues.color
735
- }, S(oe(t.value, t, l, t.sign)), 9, ka))), 256))
741
+ }, S(oe(t.value, t, o, t.sign)), 9, La))), 256))
736
742
  ])) : d("", !0)
737
743
  ], 64)) : d("", !0),
738
744
  e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (r(), i(h, { key: 11 }, [
739
- (r(!0), i(h, null, f(N.value, (t, l) => (r(), i("line", {
745
+ (r(!0), i(h, null, f(N.value, (t, o) => (r(), i("line", {
740
746
  x1: s.value.left,
741
747
  x2: s.value.left - 6,
742
748
  y1: t.y,
743
749
  y2: t.y,
744
750
  stroke: e.value.style.chart.grid.x.axisColor,
745
751
  "stroke-width": 1
746
- }, null, 8, wa))), 256)),
747
- (r(!0), i(h, null, f(N.value, (t, l) => (r(), i("text", {
752
+ }, null, 8, _a))), 256)),
753
+ (r(!0), i(h, null, f(N.value, (t, o) => (r(), i("text", {
748
754
  x: t.x,
749
755
  y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
750
756
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
751
757
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
752
758
  fill: e.value.style.chart.grid.y.axisLabels.color,
753
759
  "text-anchor": "end"
754
- }, S(_(W)({
760
+ }, S(p(W)({
755
761
  p: e.value.style.chart.bars.dataLabels.prefix,
756
762
  v: t.value,
757
763
  s: e.value.style.chart.bars.dataLabels.suffix,
758
764
  r: e.value.style.chart.grid.y.axisLabels.rounding
759
- })), 9, za))), 256))
765
+ })), 9, Sa))), 256))
760
766
  ], 64)) : d("", !0),
761
767
  e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (r(), i(h, { key: 12 }, [
762
- (r(!0), i(h, null, f(N.value, (t, l) => (r(), i("line", {
768
+ (r(!0), i(h, null, f(N.value, (t, o) => (r(), i("line", {
763
769
  x1: t.horizontal_x,
764
770
  x2: t.horizontal_x,
765
771
  y1: s.value.bottom,
@@ -767,55 +773,55 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
767
773
  stroke: e.value.style.chart.grid.x.axisColor,
768
774
  "stroke-width": 1,
769
775
  "stroke-linecap": "round"
770
- }, null, 8, Ca))), 256)),
771
- (r(!0), i(h, null, f(N.value, (t, l) => (r(), i("text", {
776
+ }, null, 8, $a))), 256)),
777
+ (r(!0), i(h, null, f(N.value, (t, o) => (r(), i("text", {
772
778
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
773
779
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
774
780
  fill: e.value.style.chart.grid.y.axisLabels.color,
775
781
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
776
782
  transform: `translate(${t.horizontal_x}, ${s.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})`
777
- }, S(_(W)({
783
+ }, S(p(W)({
778
784
  p: e.value.style.chart.bars.dataLabels.prefix,
779
785
  v: t.value,
780
786
  s: e.value.style.chart.bars.dataLabels.suffix,
781
787
  r: e.value.style.chart.grid.y.axisLabels.rounding
782
- })), 9, _a))), 256))
788
+ })), 9, Ma))), 256))
783
789
  ], 64)) : d("", !0),
784
790
  e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (r(), i(h, { key: 13 }, [
785
- a.$slots["time-label"] ? (r(), i("g", La, [
786
- (r(!0), i(h, null, f(V.value, (t, l) => (r(), i("g", null, [
787
- k(a.$slots, "time-label", O(P({
788
- x: s.value.left + v.value * l + v.value / 2,
791
+ a.$slots["time-label"] ? (r(), i("g", Ta, [
792
+ (r(!0), i(h, null, f(V.value, (t, o) => (r(), i("g", null, [
793
+ w(a.$slots, "time-label", O(P({
794
+ x: s.value.left + v.value * o + v.value / 2,
789
795
  y: s.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
790
796
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
791
797
  fill: e.value.style.chart.grid.x.timeLabels.color,
792
- transform: `translate(${s.value.left + v.value * l + v.value / 2}, ${s.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})`,
798
+ transform: `translate(${s.value.left + v.value * o + v.value / 2}, ${s.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})`,
793
799
  absoluteIndex: t.absoluteIndex,
794
800
  content: t.text,
795
801
  textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
796
802
  show: !0
797
803
  })), void 0, !0)
798
804
  ]))), 256))
799
- ])) : (r(), i("g", Sa, [
800
- (r(!0), i(h, null, f(V.value, (t, l) => (r(), i("text", {
805
+ ])) : (r(), i("g", Na, [
806
+ (r(!0), i(h, null, f(V.value, (t, o) => (r(), i("text", {
801
807
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
802
808
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
803
809
  "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
804
810
  fill: e.value.style.chart.grid.x.timeLabels.color,
805
- transform: `translate(${s.value.left + v.value * l + v.value / 2}, ${s.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})`,
811
+ transform: `translate(${s.value.left + v.value * o + v.value / 2}, ${s.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})`,
806
812
  style: {
807
813
  cursor: "pointer"
808
814
  },
809
- onClick: () => Ge(t, l)
810
- }, S(t.text), 9, $a))), 256))
815
+ onClick: () => qe(t, o)
816
+ }, S(t.text), 9, Ia))), 256))
811
817
  ]))
812
818
  ], 64)) : d("", !0),
813
819
  e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (r(), i(h, { key: 14 }, [
814
- a.$slots["time-label"] ? (r(), i("g", Ma, [
815
- (r(!0), i(h, null, f(V.value, (t, l) => (r(), i("g", null, [
816
- k(a.$slots, "time-label", O(P({
820
+ a.$slots["time-label"] ? (r(), i("g", Oa, [
821
+ (r(!0), i(h, null, f(V.value, (t, o) => (r(), i("g", null, [
822
+ w(a.$slots, "time-label", O(P({
817
823
  x: s.value.left - 8,
818
- y: s.value.top + v.value * l + v.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
824
+ y: s.value.top + v.value * o + v.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
819
825
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
820
826
  fill: e.value.style.chart.grid.x.timeLabels.color,
821
827
  transform: null,
@@ -825,53 +831,53 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
825
831
  show: !0
826
832
  })), void 0, !0)
827
833
  ]))), 256))
828
- ])) : (r(), i("g", Ta, [
829
- (r(!0), i(h, null, f(V.value, (t, l) => (r(), i("text", {
834
+ ])) : (r(), i("g", Pa, [
835
+ (r(!0), i(h, null, f(V.value, (t, o) => (r(), i("text", {
830
836
  "text-anchor": "end",
831
837
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
832
838
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
833
839
  fill: e.value.style.chart.grid.y.axisLabels.color,
834
840
  x: s.value.left - 8,
835
- y: s.value.top + v.value * l + v.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
841
+ y: s.value.top + v.value * o + v.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
836
842
  style: {
837
843
  cursor: "pointer"
838
844
  },
839
- onClick: () => Ge(t, l)
840
- }, S(t.text), 9, Na))), 256))
845
+ onClick: () => qe(t, o)
846
+ }, S(t.text), 9, Aa))), 256))
841
847
  ]))
842
848
  ], 64)) : d("", !0),
843
- C.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), i(h, { key: 15 }, f(c.value.end - c.value.start, (t, l) => (r(), i("rect", {
844
- x: s.value.left + l * v.value,
849
+ L.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), i(h, { key: 15 }, f(c.value.end - c.value.start, (t, o) => (r(), i("rect", {
850
+ x: s.value.left + o * v.value,
845
851
  y: s.value.top,
846
852
  width: v.value,
847
853
  height: s.value.height < 0 ? 0 : s.value.height,
848
- onClick: (n) => Fe(l),
849
- onMouseenter: (n) => De(l),
850
- onMouseleave: o[0] || (o[0] = (n) => {
854
+ onClick: (n) => He(o),
855
+ onMouseenter: (n) => Be(o),
856
+ onMouseleave: l[0] || (l[0] = (n) => {
851
857
  q.value = null, ee.value = !1;
852
858
  }),
853
- fill: l === q.value ? e.value.style.chart.highlighter.color : "transparent",
854
- style: U({ opacity: e.value.style.chart.highlighter.opacity / 100 })
855
- }, null, 44, Ia))), 256)) : d("", !0),
856
- C.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), i(h, { key: 16 }, f(c.value.end - c.value.start, (t, l) => (r(), i("rect", {
859
+ fill: o === q.value ? e.value.style.chart.highlighter.color : "transparent",
860
+ style: B({ opacity: e.value.style.chart.highlighter.opacity / 100 })
861
+ }, null, 44, Ra))), 256)) : d("", !0),
862
+ L.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), i(h, { key: 16 }, f(c.value.end - c.value.start, (t, o) => (r(), i("rect", {
857
863
  x: s.value.left,
858
- y: s.value.top + l * v.value,
864
+ y: s.value.top + o * v.value,
859
865
  width: s.value.width < 0 ? 0 : s.value.width,
860
866
  height: v.value,
861
- onClick: (n) => Fe(l),
862
- onMouseenter: (n) => De(l),
863
- onMouseleave: o[1] || (o[1] = (n) => {
867
+ onClick: (n) => He(o),
868
+ onMouseenter: (n) => Be(o),
869
+ onMouseleave: l[1] || (l[1] = (n) => {
864
870
  q.value = null, ee.value = !1;
865
871
  }),
866
- fill: l === q.value ? e.value.style.chart.highlighter.color : "transparent",
867
- style: U({ opacity: e.value.style.chart.highlighter.opacity / 100 })
868
- }, null, 44, Oa))), 256)) : d("", !0),
869
- k(a.$slots, "svg", O(P({ ...s.value })), void 0, !0)
870
- ], 12, ea)) : d("", !0),
871
- a.$slots.watermark ? (r(), i("div", Pa, [
872
- k(a.$slots, "watermark", O(P({ isPrinting: _($e) || _(Me) })), void 0, !0)
872
+ fill: o === q.value ? e.value.style.chart.highlighter.color : "transparent",
873
+ style: B({ opacity: e.value.style.chart.highlighter.opacity / 100 })
874
+ }, null, 44, Va))), 256)) : d("", !0),
875
+ w(a.$slots, "svg", O(P({ ...s.value })), void 0, !0)
876
+ ], 12, oa)) : d("", !0),
877
+ a.$slots.watermark ? (r(), i("div", Fa, [
878
+ w(a.$slots, "watermark", O(P({ isPrinting: p(Ne) || p(Ie) })), void 0, !0)
873
879
  ])) : d("", !0),
874
- Y.value ? d("", !0) : (r(), J(qt, {
880
+ Y.value ? d("", !0) : (r(), J(Qt, {
875
881
  key: 5,
876
882
  config: {
877
883
  type: "bar",
@@ -886,16 +892,16 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
886
892
  }
887
893
  }
888
894
  }, null, 8, ["config"])),
889
- B("div", {
895
+ U("div", {
890
896
  ref_key: "chartSlicer",
891
897
  ref: Ce,
892
- style: U(`width:100%;background:${e.value.style.chart.backgroundColor}`),
898
+ style: B(`width:100%;background:${e.value.style.chart.backgroundColor}`),
893
899
  "data-html2canvas-ignore": ""
894
900
  }, [
895
- e.value.style.chart.zoom.show && R.value > 1 ? (r(), J(Wt, {
901
+ e.value.style.chart.zoom.show && R.value > 1 ? (r(), J(Xt, {
896
902
  ref_key: "slicerComponent",
897
903
  ref: G,
898
- key: `slicer_${Le.value}`,
904
+ key: `slicer_${_e.value}`,
899
905
  background: e.value.style.chart.zoom.color,
900
906
  borderColor: e.value.style.chart.backgroundColor,
901
907
  fontSize: e.value.style.chart.zoom.fontSize,
@@ -910,21 +916,21 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
910
916
  valueStart: c.value.start,
911
917
  valueEnd: c.value.end,
912
918
  start: c.value.start,
913
- "onUpdate:start": o[2] || (o[2] = (t) => c.value.start = t),
919
+ "onUpdate:start": l[2] || (l[2] = (t) => c.value.start = t),
914
920
  end: c.value.end,
915
- "onUpdate:end": o[3] || (o[3] = (t) => c.value.end = t),
921
+ "onUpdate:end": l[3] || (l[3] = (t) => c.value.end = t),
916
922
  refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
917
923
  refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...de.dataset.map((t) => t.series.length)),
918
- onReset: Pe
924
+ onReset: Ve
919
925
  }, {
920
- "reset-action": z(({ reset: t }) => [
921
- k(a.$slots, "reset-action", O(P({ reset: t })), void 0, !0)
926
+ "reset-action": C(({ reset: t }) => [
927
+ w(a.$slots, "reset-action", O(P({ reset: t })), void 0, !0)
922
928
  ]),
923
929
  _: 3
924
930
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint"])) : d("", !0)
925
931
  ], 4),
926
- ue(Yt, {
927
- show: C.value.showTooltip && ee.value,
932
+ ue(Gt, {
933
+ show: L.value.showTooltip && ee.value,
928
934
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
929
935
  color: e.value.style.chart.tooltip.color,
930
936
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -937,51 +943,51 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
937
943
  parent: X.value,
938
944
  content: be.value,
939
945
  isFullscreen: te.value,
940
- isCustom: _(at)(e.value.style.chart.tooltip.customFormat)
946
+ isCustom: p(rt)(e.value.style.chart.tooltip.customFormat)
941
947
  }, {
942
- "tooltip-before": z(() => [
943
- k(a.$slots, "tooltip-before", O(P({ ...xe.value })), void 0, !0)
948
+ "tooltip-before": C(() => [
949
+ w(a.$slots, "tooltip-before", O(P({ ...xe.value })), void 0, !0)
944
950
  ]),
945
- "tooltip-after": z(() => [
946
- k(a.$slots, "tooltip-after", O(P({ ...xe.value })), void 0, !0)
951
+ "tooltip-after": C(() => [
952
+ w(a.$slots, "tooltip-after", O(P({ ...xe.value })), void 0, !0)
947
953
  ]),
948
954
  _: 3
949
955
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
950
- B("div", {
956
+ U("div", {
951
957
  ref_key: "chartLegend",
952
958
  ref: ze
953
959
  }, [
954
- e.value.style.chart.legend.show && Y.value ? (r(), J(Gt, {
960
+ e.value.style.chart.legend.show && Y.value ? (r(), J(qt, {
955
961
  key: 0,
956
- legendSet: Xe.value,
957
- config: bt.value,
958
- onClickMarker: o[4] || (o[4] = ({ legend: t }) => t.segregate())
962
+ legendSet: Je.value,
963
+ config: pt.value,
964
+ onClickMarker: l[4] || (l[4] = ({ legend: t }) => t.segregate())
959
965
  }, {
960
- item: z(({ legend: t }) => [
961
- B("div", {
962
- onClick: (l) => t.segregate(),
963
- style: U(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
964
- }, S(t.name), 13, Aa)
966
+ item: C(({ legend: t }) => [
967
+ U("div", {
968
+ onClick: (o) => t.segregate(),
969
+ style: B(`opacity:${_.value.includes(t.id) ? 0.5 : 1}`)
970
+ }, S(t.name), 13, Da)
965
971
  ]),
966
972
  _: 1
967
- }, 8, ["legendSet", "config"])) : k(a.$slots, "legend", {
973
+ }, 8, ["legendSet", "config"])) : w(a.$slots, "legend", {
968
974
  key: 1,
969
- legend: Xe.value
975
+ legend: Je.value
970
976
  }, void 0, !0)
971
977
  ], 512),
972
978
  a.$slots.source ? (r(), i("div", {
973
979
  key: 6,
974
980
  ref_key: "source",
975
- ref: _e,
981
+ ref: Le,
976
982
  dir: "auto"
977
983
  }, [
978
- k(a.$slots, "source", {}, void 0, !0)
984
+ w(a.$slots, "source", {}, void 0, !0)
979
985
  ], 512)) : d("", !0),
980
- c.value.end - c.value.start < 200 ? (r(), J(Ut, {
986
+ c.value.end - c.value.start < 200 ? (r(), J(Zt, {
981
987
  key: 7,
982
988
  hideDetails: "",
983
989
  config: {
984
- open: C.value.showTable,
990
+ open: L.value.showTable,
985
991
  maxHeight: 1e4,
986
992
  body: {
987
993
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -993,20 +999,20 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
993
999
  }
994
1000
  }
995
1001
  }, {
996
- content: z(() => [
997
- ue(Jt, {
1002
+ content: C(() => [
1003
+ ue(Kt, {
998
1004
  colNames: re.value.colNames,
999
1005
  head: re.value.head,
1000
1006
  body: re.value.body,
1001
1007
  config: re.value.config,
1002
1008
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1003
- onClose: o[5] || (o[5] = (t) => C.value.showTable = !1)
1009
+ onClose: l[5] || (l[5] = (t) => L.value.showTable = !1)
1004
1010
  }, {
1005
- th: z(({ th: t }) => [
1006
- B("div", { innerHTML: t }, null, 8, Ra)
1011
+ th: C(({ th: t }) => [
1012
+ U("div", { innerHTML: t }, null, 8, Ea)
1007
1013
  ]),
1008
- td: z(({ td: t }) => [
1009
- Lt(S(isNaN(Number(t)) ? t : _(W)({
1014
+ td: C(({ td: t }) => [
1015
+ Mt(S(isNaN(Number(t)) ? t : p(W)({
1010
1016
  p: e.value.style.chart.bars.dataLabels.prefix,
1011
1017
  v: t,
1012
1018
  s: e.value.style.chart.bars.dataLabels.suffix,
@@ -1018,9 +1024,9 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
1018
1024
  ]),
1019
1025
  _: 1
1020
1026
  }, 8, ["config"])) : d("", !0)
1021
- ], 14, jt));
1027
+ ], 46, la));
1022
1028
  }
1023
- }, ja = /* @__PURE__ */ Qt(Va, [["__scopeId", "data-v-3ae192b4"]]);
1029
+ }, ol = /* @__PURE__ */ aa(Ha, [["__scopeId", "data-v-8c7297e5"]]);
1024
1030
  export {
1025
- ja as default
1031
+ ol as default
1026
1032
  };