vue-data-ui 2.4.41 → 2.4.43

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 (168) hide show
  1. package/README.md +34 -34
  2. package/dist/{Arrow-6z0ZQva_.js → Arrow-BB6bdwAh.js} +1 -1
  3. package/dist/{Arrow-Cht76m69.cjs → Arrow-DGDnIooM.cjs} +1 -1
  4. package/dist/{BaseIcon-DCE3wRiG.js → BaseIcon-Cg6tqk_d.js} +1 -1
  5. package/dist/{BaseIcon-D-JUZiGA.cjs → BaseIcon-Cj2lO-KJ.cjs} +1 -1
  6. package/dist/{DataTable-Cr3Xkxe4.cjs → DataTable-DnaY4y8p.cjs} +1 -1
  7. package/dist/{DataTable-B5DiCrf_.js → DataTable-YQ5lDRtX.js} +2 -2
  8. package/dist/{Legend-DzxQIjDO.js → Legend-3DteuHjj.js} +1 -1
  9. package/dist/{Legend-BXG_XPom.cjs → Legend-BPogA3ac.cjs} +1 -1
  10. package/dist/{PackageVersion-CMtZxTqq.cjs → PackageVersion-CQ9hp4g5.cjs} +1 -1
  11. package/dist/{PackageVersion-S7OD_s5u.js → PackageVersion-CS8EAteX.js} +1 -1
  12. package/dist/{PenAndPaper-DWYhyZye.cjs → PenAndPaper-B1DxKWdn.cjs} +1 -1
  13. package/dist/{PenAndPaper-BxJZd7k9.js → PenAndPaper-D22t_fD9.js} +3 -3
  14. package/dist/{Shape-C3ywBhkW.js → Shape-7VxscoGH.js} +1 -1
  15. package/dist/{Shape-CvL90fNe.cjs → Shape-BIoU-M2b.cjs} +1 -1
  16. package/dist/Slicer-BcXvtaNe.js +423 -0
  17. package/dist/Slicer-C_1pd_Kh.cjs +1 -0
  18. package/dist/{Title-BB0O0yol.js → Title-DQcop8gI.js} +1 -1
  19. package/dist/{Title-D9gPXVTT.cjs → Title-DoxrpVfD.cjs} +1 -1
  20. package/dist/{Tooltip-GvLaModr.js → Tooltip-Dx07vASW.js} +33 -25
  21. package/dist/Tooltip-t5_yWU6c.cjs +1 -0
  22. package/dist/documentation/installation.md +34 -34
  23. package/dist/index-Ce0TFqvS.cjs +9 -0
  24. package/dist/{index-B6Q1Fyk0.js → index-CvhiHStv.js} +48 -42
  25. package/dist/style.css +1 -1
  26. package/dist/types/vue-data-ui.d.cts +6 -0
  27. package/dist/types/vue-data-ui.d.ts +6 -0
  28. package/dist/{useNestedProp-DQpuJSz3.js → useNestedProp-Ccre6tXM.js} +1 -1
  29. package/dist/{useNestedProp-bZitLnbb.cjs → useNestedProp-Dv81zO0o.cjs} +1 -1
  30. package/dist/{usePrinter-D8dIU7aG.js → usePrinter-BVA2_kNp.js} +1 -1
  31. package/dist/{usePrinter-DtpFEgOX.cjs → usePrinter-Dq9TRqqU.cjs} +1 -1
  32. package/dist/{vue-data-ui-H24TWcBx.js → vue-data-ui-CXGGUSE5.js} +60 -60
  33. package/dist/{vue-data-ui-DBN7iJHU.cjs → vue-data-ui-DBaa-Zm-.cjs} +1 -1
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +3 -3
  36. package/dist/{vue-ui-3d-bar-BaNI_M3v.cjs → vue-ui-3d-bar-B0eWYShT.cjs} +1 -1
  37. package/dist/{vue-ui-3d-bar-BA2CQYGW.js → vue-ui-3d-bar-Bvyn0JAH.js} +9 -9
  38. package/dist/{vue-ui-accordion-u4xDSvRn.cjs → vue-ui-accordion-2oBs8M8G.cjs} +1 -1
  39. package/dist/{vue-ui-accordion-BOHicozd.js → vue-ui-accordion-CzsbGsxC.js} +3 -3
  40. package/dist/{vue-ui-age-pyramid-DN25tjv-.cjs → vue-ui-age-pyramid-8dnWY_2V.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-vKWko9vn.js → vue-ui-age-pyramid-gy4b8534.js} +42 -41
  42. package/dist/{vue-ui-annotator-D4KNucw5.js → vue-ui-annotator-BOxVmY-t.js} +1 -1
  43. package/dist/{vue-ui-annotator-BcxUQ5tM.cjs → vue-ui-annotator-D4AFe-ds.cjs} +1 -1
  44. package/dist/{vue-ui-bullet-DZgtd_qb.js → vue-ui-bullet-CYRzrrdq.js} +15 -15
  45. package/dist/{vue-ui-bullet-C3DKTZbg.cjs → vue-ui-bullet-DS61aLmi.cjs} +1 -1
  46. package/dist/vue-ui-candlestick-CnMW4VI7.cjs +2 -0
  47. package/dist/vue-ui-candlestick-z1XCCmjs.js +740 -0
  48. package/dist/{vue-ui-carousel-table-Bpsrlbx9.js → vue-ui-carousel-table-Dusdq9C-.js} +4 -4
  49. package/dist/{vue-ui-carousel-table-C62szGjt.cjs → vue-ui-carousel-table-STfjKv04.cjs} +1 -1
  50. package/dist/{vue-ui-chestnut-VWwSZnUX.cjs → vue-ui-chestnut-CiOs7_Mn.cjs} +1 -1
  51. package/dist/{vue-ui-chestnut-DhPSNM96.js → vue-ui-chestnut-xOUxz__4.js} +8 -8
  52. package/dist/{vue-ui-cursor-BM2OiZnZ.js → vue-ui-cursor-BAZcn7gS.js} +2 -2
  53. package/dist/{vue-ui-cursor-BwnZYB4D.cjs → vue-ui-cursor-CgulNaZF.cjs} +1 -1
  54. package/dist/{vue-ui-dashboard-D8FU1GbE.cjs → vue-ui-dashboard-B-e6E048.cjs} +1 -1
  55. package/dist/{vue-ui-dashboard-BcnW7vDs.js → vue-ui-dashboard-CM5h0sJK.js} +2 -2
  56. package/dist/{vue-ui-digits-BmQBwho3.cjs → vue-ui-digits-DE-VUfnq.cjs} +1 -1
  57. package/dist/{vue-ui-digits-M4Pvrg0n.js → vue-ui-digits-DFYtiFpE.js} +2 -2
  58. package/dist/{vue-ui-donut-BgsQjURe.js → vue-ui-donut-B7WCvZ9X.js} +99 -98
  59. package/dist/{vue-ui-donut-CZZfvbPk.cjs → vue-ui-donut-Dh1MEQSX.cjs} +1 -1
  60. package/dist/vue-ui-donut-evolution-E8YRIlka.cjs +1 -0
  61. package/dist/vue-ui-donut-evolution-tseD-zkG.js +908 -0
  62. package/dist/{vue-ui-dumbbell-zv7yiPPM.js → vue-ui-dumbbell-CB-nTGSr.js} +10 -10
  63. package/dist/{vue-ui-dumbbell-CsMqgiGr.cjs → vue-ui-dumbbell-DoajPALb.cjs} +1 -1
  64. package/dist/{vue-ui-flow-E5MkZ3Yb.cjs → vue-ui-flow-DZo1e2BI.cjs} +1 -1
  65. package/dist/{vue-ui-flow-BqtIWBkz.js → vue-ui-flow-DgM7D7Kz.js} +46 -46
  66. package/dist/{vue-ui-funnel-CmVLAttG.js → vue-ui-funnel-Bae7zmv7.js} +19 -19
  67. package/dist/{vue-ui-funnel-QU0_JscL.cjs → vue-ui-funnel-FwQya4Js.cjs} +1 -1
  68. package/dist/{vue-ui-galaxy-BPDH-9KW.cjs → vue-ui-galaxy-BmQPNy0t.cjs} +1 -1
  69. package/dist/{vue-ui-galaxy-sy8zvgcg.js → vue-ui-galaxy-C1hMuu_6.js} +53 -52
  70. package/dist/{vue-ui-gauge-D_yokJMS.cjs → vue-ui-gauge-4Gy_NFvq.cjs} +1 -1
  71. package/dist/{vue-ui-gauge--hARSvgz.js → vue-ui-gauge-CvUdCkBJ.js} +7 -7
  72. package/dist/{vue-ui-gizmo-CvTeq5j0.js → vue-ui-gizmo-B6t4exHM.js} +3 -3
  73. package/dist/{vue-ui-gizmo-AUJq3EQL.cjs → vue-ui-gizmo-F0ACp4Ym.cjs} +1 -1
  74. package/dist/{vue-ui-heatmap-lI8oO-nh.js → vue-ui-heatmap-CNptUmPc.js} +60 -59
  75. package/dist/{vue-ui-heatmap-D-xNLuqW.cjs → vue-ui-heatmap-DeLrr3m8.cjs} +1 -1
  76. package/dist/{vue-ui-history-plot-D3CwJpll.js → vue-ui-history-plot-DnVFjg0P.js} +60 -59
  77. package/dist/{vue-ui-history-plot-BC0Rvo-r.cjs → vue-ui-history-plot-iK6KKQTl.cjs} +1 -1
  78. package/dist/{vue-ui-kpi-C0agq-Os.js → vue-ui-kpi-BIb8GWpr.js} +3 -3
  79. package/dist/{vue-ui-kpi-B4FQKZ_r.cjs → vue-ui-kpi-BOLWEQ7j.cjs} +1 -1
  80. package/dist/{vue-ui-mini-loader-BJ70GAEv.cjs → vue-ui-mini-loader-dzvCTPe_.cjs} +1 -1
  81. package/dist/{vue-ui-mini-loader-CkjJ5pRO.js → vue-ui-mini-loader-vn8l58Co.js} +2 -2
  82. package/dist/{vue-ui-molecule-V9UFJHeV.js → vue-ui-molecule-BXVfvrYp.js} +26 -25
  83. package/dist/{vue-ui-molecule-CsQfkIEE.cjs → vue-ui-molecule-CztdOxnV.cjs} +1 -1
  84. package/dist/{vue-ui-mood-radar-CdU2vusL.cjs → vue-ui-mood-radar-COiSqYpY.cjs} +1 -1
  85. package/dist/{vue-ui-mood-radar-Cj_wOEbY.js → vue-ui-mood-radar-FyUqJ_WI.js} +11 -11
  86. package/dist/{vue-ui-nested-donuts-DFVQwbHg.js → vue-ui-nested-donuts-C3mVKHnx.js} +78 -77
  87. package/dist/{vue-ui-nested-donuts-DevV-xZr.cjs → vue-ui-nested-donuts-CyzGIcRn.cjs} +2 -2
  88. package/dist/{vue-ui-onion-BJ-PjA7d.js → vue-ui-onion-C3uZpdTX.js} +49 -48
  89. package/dist/{vue-ui-onion-DGWktnME.cjs → vue-ui-onion-PCbFeTBq.cjs} +2 -2
  90. package/dist/{vue-ui-parallel-coordinate-plot-CjxZbVNa.cjs → vue-ui-parallel-coordinate-plot-BbyG3T_L.cjs} +3 -3
  91. package/dist/{vue-ui-parallel-coordinate-plot-33naX1Ss.js → vue-ui-parallel-coordinate-plot-_nN05_KZ.js} +70 -69
  92. package/dist/{vue-ui-quadrant-xJaZzXgo.js → vue-ui-quadrant-CqcqhOTk.js} +55 -54
  93. package/dist/{vue-ui-quadrant-DqZqBb2L.cjs → vue-ui-quadrant-D48AnGwm.cjs} +1 -1
  94. package/dist/vue-ui-quick-chart-CUG-kf3L.cjs +15 -0
  95. package/dist/{vue-ui-quick-chart-BwN9eLye.js → vue-ui-quick-chart-CvhtEA16.js} +637 -622
  96. package/dist/{vue-ui-radar-CQ66YUG5.cjs → vue-ui-radar-CKq_4-3B.cjs} +1 -1
  97. package/dist/{vue-ui-radar-B4EXwJDY.js → vue-ui-radar-o4cmO82a.js} +38 -37
  98. package/dist/{vue-ui-rating-DNkygw1i.js → vue-ui-rating-CuBodH3C.js} +2 -2
  99. package/dist/{vue-ui-rating-D334I4ju.cjs → vue-ui-rating-DG1svxO9.cjs} +1 -1
  100. package/dist/{vue-ui-relation-circle-CP2Z6IWV.cjs → vue-ui-relation-circle-AXwyCjxM.cjs} +1 -1
  101. package/dist/{vue-ui-relation-circle-BKeSh28h.js → vue-ui-relation-circle-C--j7Q0q.js} +19 -19
  102. package/dist/{vue-ui-rings-D6M3UNSE.js → vue-ui-rings-DpVKPZCb.js} +49 -48
  103. package/dist/vue-ui-rings-fAvuiSZU.cjs +2 -0
  104. package/dist/{vue-ui-scatter-C9ZoWV1q.cjs → vue-ui-scatter-CHY2sxci.cjs} +1 -1
  105. package/dist/{vue-ui-scatter-JUPbbsO7.js → vue-ui-scatter-D_KsmIg_.js} +26 -25
  106. package/dist/{vue-ui-screenshot-JMBX_AWn.cjs → vue-ui-screenshot-Baj16IKL.cjs} +1 -1
  107. package/dist/{vue-ui-screenshot-DmLDHfF9.js → vue-ui-screenshot-C21qDF26.js} +1 -1
  108. package/dist/{vue-ui-skeleton-E9_X0-sa.cjs → vue-ui-skeleton-BdbO4Bxt.cjs} +1 -1
  109. package/dist/{vue-ui-skeleton-D7rg5vFC.js → vue-ui-skeleton-p82n8dLi.js} +3 -3
  110. package/dist/{vue-ui-smiley-BAlHZm8H.js → vue-ui-smiley-DDBn_kg-.js} +2 -2
  111. package/dist/{vue-ui-smiley-aRTznf8z.cjs → vue-ui-smiley-DGdo7pOJ.cjs} +1 -1
  112. package/dist/{vue-ui-spark-trend-J9swikF_.js → vue-ui-spark-trend-CM-XDvvj.js} +5 -5
  113. package/dist/{vue-ui-spark-trend-DZR6Fqu5.cjs → vue-ui-spark-trend-CyiYuOb3.cjs} +1 -1
  114. package/dist/{vue-ui-sparkbar-B0tCpwZ9.js → vue-ui-sparkbar-BRWlzT5P.js} +4 -4
  115. package/dist/{vue-ui-sparkbar-Bjmi8pMf.cjs → vue-ui-sparkbar-Bi952P46.cjs} +1 -1
  116. package/dist/{vue-ui-sparkgauge-DVX2pIC3.js → vue-ui-sparkgauge-BPcFMY0I.js} +4 -4
  117. package/dist/{vue-ui-sparkgauge-Dhzbkn67.cjs → vue-ui-sparkgauge-bhzDdT-A.cjs} +1 -1
  118. package/dist/{vue-ui-sparkhistogram-gIaXDrFh.cjs → vue-ui-sparkhistogram-BdiA32Fs.cjs} +1 -1
  119. package/dist/{vue-ui-sparkhistogram-Wd6q0mqj.js → vue-ui-sparkhistogram-DAtbloqL.js} +5 -5
  120. package/dist/{vue-ui-sparkline-B5ySeM9y.cjs → vue-ui-sparkline-BXa0bOgm.cjs} +1 -1
  121. package/dist/{vue-ui-sparkline-DYT-gts9.js → vue-ui-sparkline-CbnPVyxs.js} +4 -4
  122. package/dist/{vue-ui-sparkstackbar-ilvB3RBv.cjs → vue-ui-sparkstackbar-BDupdTEm.cjs} +1 -1
  123. package/dist/{vue-ui-sparkstackbar-BMGA05VR.js → vue-ui-sparkstackbar-BdjWWadM.js} +5 -5
  124. package/dist/vue-ui-stackbar-CUXctt_2.js +1026 -0
  125. package/dist/vue-ui-stackbar-DvIG4zyP.cjs +6 -0
  126. package/dist/{vue-ui-strip-plot-DPo7osh_.cjs → vue-ui-strip-plot-C5r83jmv.cjs} +1 -1
  127. package/dist/{vue-ui-strip-plot-B-r4luYX.js → vue-ui-strip-plot-lb-y68Hd.js} +71 -70
  128. package/dist/{vue-ui-table-wlXHwJVW.js → vue-ui-table-DFfsqpZU.js} +1 -1
  129. package/dist/{vue-ui-table-C6z56ODT.cjs → vue-ui-table-DgCMMvSx.cjs} +1 -1
  130. package/dist/{vue-ui-table-heatmap-CM-c7n0F.js → vue-ui-table-heatmap-BiSTfmrM.js} +9 -9
  131. package/dist/{vue-ui-table-heatmap-B05GifSw.cjs → vue-ui-table-heatmap-jp5xDCCO.cjs} +1 -1
  132. package/dist/{vue-ui-table-sparkline-Dx-ePVqW.cjs → vue-ui-table-sparkline-8itAuNdX.cjs} +1 -1
  133. package/dist/{vue-ui-table-sparkline-DHaEHFG_.js → vue-ui-table-sparkline-B7sNio6G.js} +5 -5
  134. package/dist/{vue-ui-thermometer-HCpOZBHv.cjs → vue-ui-thermometer-CsY6PZxF.cjs} +1 -1
  135. package/dist/{vue-ui-thermometer-BU_ckSdu.js → vue-ui-thermometer-Cvoq-NoB.js} +7 -7
  136. package/dist/{vue-ui-timer-CUChwyzF.cjs → vue-ui-timer-BBYru0Q7.cjs} +1 -1
  137. package/dist/{vue-ui-timer-DiRZ849L.js → vue-ui-timer-CKkmEEyh.js} +9 -9
  138. package/dist/{vue-ui-tiremarks-yoQtfbj7.cjs → vue-ui-tiremarks-CJyRAXGr.cjs} +1 -1
  139. package/dist/{vue-ui-tiremarks-BHMNb_tq.js → vue-ui-tiremarks-CVDQcr2f.js} +7 -7
  140. package/dist/{vue-ui-treemap-BInwLSes.cjs → vue-ui-treemap-BKA7MrUz.cjs} +1 -1
  141. package/dist/{vue-ui-treemap-BpD6OdL3.js → vue-ui-treemap-BLDOoQdk.js} +98 -97
  142. package/dist/{vue-ui-vertical-bar-hS4gzdKs.cjs → vue-ui-vertical-bar-BNZ-jiBi.cjs} +2 -2
  143. package/dist/{vue-ui-vertical-bar-CBNWMmCg.js → vue-ui-vertical-bar-DgluCuy7.js} +58 -57
  144. package/dist/{vue-ui-waffle-Cmq6zhD8.cjs → vue-ui-waffle-COGvHmU8.cjs} +1 -1
  145. package/dist/{vue-ui-waffle-BE8iTrGF.js → vue-ui-waffle-DOZ8DM_y.js} +79 -78
  146. package/dist/{vue-ui-wheel-BXSIBRLM.js → vue-ui-wheel-BiHGxIWR.js} +7 -7
  147. package/dist/{vue-ui-wheel-BT0mLxln.cjs → vue-ui-wheel-DrhwR-Z-.cjs} +1 -1
  148. package/dist/{vue-ui-word-cloud-3wvSYRbp.js → vue-ui-word-cloud-CEfsjt8Y.js} +10 -10
  149. package/dist/{vue-ui-word-cloud-BXHlm41O.cjs → vue-ui-word-cloud-ClzpBDxZ.cjs} +1 -1
  150. package/dist/{vue-ui-xy-D8XvOgW6.js → vue-ui-xy-BU03SArU.js} +888 -837
  151. package/dist/vue-ui-xy-CO99Ia72.cjs +3 -0
  152. package/dist/{vue-ui-xy-canvas-Cx7vPyfT.js → vue-ui-xy-canvas-D6xrOdYB.js} +378 -365
  153. package/dist/vue-ui-xy-canvas-lOb9PCZm.cjs +9 -0
  154. package/package.json +1 -1
  155. package/dist/Slicer-B2aHb4bj.cjs +0 -1
  156. package/dist/Slicer-D9ASV60L.js +0 -400
  157. package/dist/Tooltip-ypQtmi99.cjs +0 -1
  158. package/dist/index-B5Ugkauv.cjs +0 -9
  159. package/dist/vue-ui-candlestick-C8yBMu8-.js +0 -725
  160. package/dist/vue-ui-candlestick-DVEofXBZ.cjs +0 -2
  161. package/dist/vue-ui-donut-evolution-BO2-ARBX.js +0 -895
  162. package/dist/vue-ui-donut-evolution-DP14ctdf.cjs +0 -1
  163. package/dist/vue-ui-quick-chart-BzpXJYR_.cjs +0 -15
  164. package/dist/vue-ui-rings-2oDSTctd.cjs +0 -2
  165. package/dist/vue-ui-stackbar-BZKwsAjO.cjs +0 -6
  166. package/dist/vue-ui-stackbar-BZbOagnf.js +0 -947
  167. package/dist/vue-ui-xy-CfduqTWA.cjs +0 -3
  168. package/dist/vue-ui-xy-canvas-BTR-cL02.cjs +0 -9
@@ -1,947 +0,0 @@
1
- import { computed as p, ref as g, onMounted as Xe, watch as Ue, openBlock as s, createElementBlock as n, normalizeClass as ye, normalizeStyle as U, createBlock as Y, createCommentVNode as v, renderSlot as k, createVNode as se, unref as z, createSlots as xt, withCtx as C, normalizeProps as D, guardReactiveProps as E, Fragment as h, renderList as f, createElementVNode as H, toDisplayString as S, createTextVNode as kt } from "vue";
2
- import { u as wt, c as Ye, t as Ct, a as _t, p as ie, M as Ge, b as zt, o as Lt, e as Je, g as St, d as $t, a7 as ne, a3 as qe, C as Ze, X as Mt, l as Tt, F as Ke, f as B, x as Qe, i as je, y as Nt, q as Ot, r as Pt } from "./index-B6Q1Fyk0.js";
3
- import { u as et } from "./useNestedProp-DQpuJSz3.js";
4
- import { t as At, u as Rt } from "./useResponsive-CoxXLe23.js";
5
- import { u as It, U as Ft } from "./usePrinter-D8dIU7aG.js";
6
- import { S as Vt } from "./Slicer-D9ASV60L.js";
7
- import { _ as Dt } from "./Tooltip-GvLaModr.js";
8
- import { _ as Et } from "./Title-BB0O0yol.js";
9
- import { L as Ht } from "./Legend-DzxQIjDO.js";
10
- import Bt from "./vue-ui-accordion-BOHicozd.js";
11
- import { D as Wt } from "./DataTable-B5DiCrf_.js";
12
- import Xt from "./vue-ui-skeleton-D7rg5vFC.js";
13
- import { _ as Ut } from "./PackageVersion-S7OD_s5u.js";
14
- import { P as Yt } from "./PenAndPaper-BxJZd7k9.js";
15
- import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt = ["stop-color"], jt = ["stop-color"], ea = ["stop-color"], ta = ["x1", "x2", "y1", "y2", "stroke"], aa = ["x1", "x2", "y1", "y2", "stroke"], la = ["x1", "x2", "y1", "y2", "stroke"], oa = ["x1", "x2", "y1", "y2", "stroke"], ra = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], sa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ua = ["x", "y", "font-size", "fill", "font-weight"], ca = ["transform", "font-size", "fill", "font-weight"], va = ["x", "y", "font-size", "fill", "font-weight"], ha = { key: 0 }, da = ["x", "y", "font-size", "font-weight", "fill"], ya = ["x", "y", "font-size", "fill", "font-weight"], ga = { key: 0 }, ba = ["x", "y", "font-size", "font-weight", "fill"], fa = ["x1", "x2", "y1", "y2", "stroke"], ma = ["x", "y", "font-size", "font-weight", "fill"], pa = ["x1", "x2", "y1", "y2", "stroke"], xa = ["font-size", "font-weight", "fill", "text-anchor", "transform"], ka = ["text-anchor", "font-size", "font-weight", "fill", "transform"], wa = ["font-size", "font-weight", "fill", "x", "y"], Ca = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], _a = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], za = {
17
- key: 4,
18
- class: "vue-data-ui-watermark"
19
- }, La = ["onClick"], Sa = ["innerHTML"], $a = {
20
- __name: "vue-ui-stackbar",
21
- props: {
22
- config: {
23
- type: Object,
24
- default() {
25
- return {};
26
- }
27
- },
28
- dataset: {
29
- type: Array,
30
- default() {
31
- return [];
32
- }
33
- }
34
- },
35
- emits: ["selectDatapoint", "selectLegend"],
36
- setup(ge, { expose: tt, emit: be }) {
37
- const x = ge, { vue_ui_stackbar: at } = wt(), W = p({
38
- get() {
39
- return !!x.dataset && x.dataset.length;
40
- },
41
- set(a) {
42
- return a;
43
- }
44
- }), X = g(null), ue = g(Ye()), j = g(!1), fe = g(null), ce = g(""), L = g([]), me = g(0), pe = g(null), xe = g(null), ke = g(null), we = g(null), Ce = g(0), ve = g(!1), G = g(null), J = g(!1), lt = g(0), ot = g(0), rt = g(0);
45
- Xe(() => {
46
- he();
47
- });
48
- const e = p({
49
- get: () => _e(),
50
- set: (a) => a
51
- });
52
- function _e() {
53
- const a = et({
54
- userConfig: x.config,
55
- defaultConfig: at
56
- });
57
- let o = {};
58
- return a.theme ? o = {
59
- ...et({
60
- userConfig: Ct.vue_ui_stackbar[a.theme] || x.config,
61
- defaultConfig: a
62
- }),
63
- customPalette: _t[a.theme] || ie
64
- } : o = a, x.config && Ge(x.config, "style.chart.grid.scale.scaleMin") ? o.style.chart.grid.scale.scaleMin = x.config.style.chart.grid.scale.scaleMin : o.style.chart.grid.scale.scaleMin = null, x.config && Ge(x.config, "style.chart.grid.scale.scaleMax") ? o.style.chart.grid.scale.scaleMax = x.config.style.chart.grid.scale.scaleMax : o.style.chart.grid.scale.scaleMax = null, o;
65
- }
66
- Ue(() => x.config, (a) => {
67
- e.value = _e(), he(), lt.value += 1, ot.value += 1, rt.value += 1;
68
- }, { deep: !0 }), Ue(() => x.dataset, (a) => {
69
- Ne();
70
- }, { deep: !0 });
71
- const _ = g({
72
- dataLabels: {
73
- show: e.value.style.chart.bars.dataLabels.show
74
- },
75
- showTable: e.value.table.show,
76
- showTooltip: e.value.style.chart.tooltip.show
77
- }), { isPrinting: ze, isImaging: Le, generatePdf: Se, generateImage: $e } = It({
78
- elementId: `stackbar_${ue.value}`,
79
- fileName: e.value.style.chart.title.text || "vue-ui-stackbar"
80
- }), ee = g({
81
- width: e.value.style.chart.width,
82
- height: e.value.style.chart.height,
83
- paddingRatio: {
84
- top: e.value.style.chart.padding.top / e.value.style.chart.height,
85
- right: e.value.style.chart.padding.right / e.value.style.chart.width,
86
- bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
87
- left: e.value.style.chart.padding.left / e.value.style.chart.width
88
- }
89
- }), st = p(() => zt(e.value.customPalette)), Me = g(null), Te = g(null);
90
- Xe(() => {
91
- he();
92
- });
93
- function he() {
94
- if (Lt(x.dataset) ? Je({
95
- componentName: "VueUiStackbar",
96
- type: "dataset"
97
- }) : x.dataset.forEach((a, o) => {
98
- St({
99
- datasetObject: a,
100
- requiredAttributes: ["name", "series"]
101
- }).forEach((t) => {
102
- W.value = !1, Je({
103
- componentName: "VueUiStackbar",
104
- type: "datasetSerieAttribute",
105
- property: t,
106
- index: o
107
- });
108
- });
109
- }), setTimeout(() => {
110
- J.value = !0;
111
- }, 10), e.value.responsive) {
112
- const a = At(() => {
113
- J.value = !1;
114
- const { width: o, height: t } = Rt({
115
- chart: X.value,
116
- title: e.value.style.chart.title.text ? pe.value : null,
117
- legend: e.value.style.chart.legend.show ? xe.value : null,
118
- slicer: e.value.style.chart.zoom.show && A.value > 1 ? ke.value : null,
119
- source: we.value
120
- });
121
- ee.value.width = o, ee.value.height = t, clearTimeout(Te.value), Te.value = setTimeout(() => {
122
- J.value = !0;
123
- }, 10);
124
- });
125
- Me.value = new ResizeObserver(a), Me.value.observe(X.value.parentNode);
126
- }
127
- }
128
- const r = p(() => {
129
- const { height: a, width: o } = ee.value, { right: t } = ee.value.paddingRatio, l = e.value.style.chart.padding.top, i = o - o * t, u = a - e.value.style.chart.padding.bottom, w = e.value.style.chart.padding.left, R = o - w - o * t, I = a - l - e.value.style.chart.padding.bottom;
130
- return {
131
- chartHeight: a,
132
- chartWidth: o,
133
- top: l,
134
- right: i,
135
- bottom: u,
136
- left: w,
137
- width: R,
138
- height: I < 0 ? 0 : I
139
- };
140
- }), P = p(() => x.dataset.map((a, o) => {
141
- const t = $t(a.color) || st.value[o] || ie[o] || ie[o % ie.length];
142
- return {
143
- ...a,
144
- // In distributed mode, all values are converted to positive
145
- series: JSON.parse(JSON.stringify(a.series)).map((l) => e.value.style.chart.bars.distributed ? Math.abs(l) : l),
146
- // Store signs to manage display of neg values in distributed mode
147
- signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
148
- absoluteIndex: o,
149
- id: Ye(),
150
- color: t
151
- };
152
- })), A = p(() => Math.max(...P.value.filter((a) => !L.value.includes(a.id)).map((a) => a.series.length))), c = g({
153
- start: 0,
154
- end: Math.max(...x.dataset.map((a) => a.series.length))
155
- });
156
- function Ne() {
157
- c.value = {
158
- start: 0,
159
- end: Math.max(...x.dataset.map((a) => a.series.length))
160
- }, Ce.value += 1;
161
- }
162
- const d = p(() => {
163
- let a;
164
- return e.value.orientation === "vertical" ? a = r.value.width / (c.value.end - c.value.start) : a = r.value.height / (c.value.end - c.value.start), a <= 0 ? 0 : a;
165
- }), q = p(() => ne(P.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)), it = p(() => ne(P.value.filter((a) => !L.value.includes(a.id)).map((a) => ({
166
- ...a,
167
- series: a.series.map((o, t) => a.signedSeries[t] === -1 && o >= 0 ? -o : o)
168
- }))).slice(c.value.start, c.value.end)), te = p(() => {
169
- const a = P.value.filter((o) => !L.value.includes(o.id));
170
- return {
171
- positive: ne(a.map((o) => ({
172
- ...o,
173
- series: o.series.slice(c.value.start, c.value.end).map((t) => t >= 0 ? t : 0)
174
- }))),
175
- negative: ne(a.map((o) => ({
176
- ...o,
177
- series: o.series.slice(c.value.start, c.value.end).map((t) => t < 0 ? t : 0)
178
- })))
179
- };
180
- }), N = p(() => {
181
- const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...te.value.positive), o = Math.min(...te.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(o) ? 0 : o, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? qe(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Ze(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
182
- return l.ticks.map((i) => ({
183
- zero: r.value.bottom - r.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
184
- y: r.value.bottom - r.value.height * ((i + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
185
- x: r.value.left - 8,
186
- horizontal_zero: r.value.left + r.value.width * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
187
- horizontal_x: r.value.left + r.value.width * ((i + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
188
- horizontal_y: r.value.bottom - 8,
189
- value: i
190
- }));
191
- }), Z = p(() => e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)), m = p(() => {
192
- if (!W.value) return [];
193
- let a = Array(A.value).fill(0), o = Array(A.value).fill(0), t = Array(A.value).fill(0), l = Array(A.value).fill(0);
194
- const i = Math.max(...te.value.positive) || 0, u = Math.min(...te.value.negative), w = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, R = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? qe(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks) : Ze(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks), { min: I, max: K } = R, F = K + (I >= 0 ? 0 : Math.abs(I)) || 1, $ = r.value.height, re = r.value.width, Be = N.value[0] ? N.value[0].zero : r.value.bottom, We = N.value[0] ? N.value[0].horizontal_zero : r.value.left;
195
- return P.value.filter((Q) => !L.value.includes(Q.id)).map((Q) => {
196
- const O = Q.series.slice(c.value.start, c.value.end), ht = Q.signedSeries.slice(c.value.start, c.value.end), dt = O.map((y, b) => r.value.left + d.value * b + d.value * e.value.style.chart.bars.gapRatio / 4), yt = O.map((y, b) => r.value.top + d.value * b + d.value * e.value.style.chart.bars.gapRatio / 4), gt = O.map((y, b) => {
197
- const M = e.value.style.chart.bars.distributed ? (y || 0) / q.value[b] : (y || 0) / F;
198
- let V, T;
199
- return y > 0 ? (T = $ * M, V = Be - T - a[b], a[b] += T) : (T = $ * M, V = Be + t[b], t[b] += Math.abs(T)), V;
200
- }), bt = O.map((y, b) => {
201
- const M = e.value.style.chart.bars.distributed ? (y || 0) / q.value[b] : (y || 0) / F;
202
- let V, T;
203
- return y > 0 ? (T = re * M, V = We + o[b], o[b] += T) : (T = re * M, V = We - Math.abs(T) - l[b], l[b] += Math.abs(T)), V;
204
- }), ft = O.map((y, b) => {
205
- const M = e.value.style.chart.bars.distributed ? (y || 0) / q.value[b] : (y || 0) / F;
206
- return y > 0 ? $ * M : $ * Math.abs(M);
207
- }), mt = O.map((y, b) => {
208
- const M = e.value.style.chart.bars.distributed ? (y || 0) / q.value[b] : (y || 0) / F;
209
- return y > 0 ? re * M : re * Math.abs(M);
210
- }), pt = O.map((y) => Math.abs(y)).reduce((y, b) => y + b, 0);
211
- return {
212
- ...Q,
213
- proportions: O.map((y, b) => e.value.style.chart.bars.distributed ? (y || 0) / q.value[b] : (y || 0) / pt),
214
- series: O,
215
- signedSeries: ht,
216
- x: dt,
217
- y: gt,
218
- height: ft,
219
- horizontal_width: mt,
220
- horizontal_y: yt,
221
- horizontal_x: bt
222
- };
223
- });
224
- }), Oe = p(() => it.value.map((a, o) => ({
225
- value: a,
226
- sign: a >= 0 ? 1 : -1
227
- })));
228
- function ae(a, o, t, l, i) {
229
- const u = i === -1 && a >= 0 ? -a : a;
230
- return je(
231
- e.value.style.chart.bars.dataLabels.formatter,
232
- u,
233
- B({
234
- p: e.value.style.chart.bars.dataLabels.prefix,
235
- v: u,
236
- s: e.value.style.chart.bars.dataLabels.suffix,
237
- r: e.value.style.chart.bars.dataLabels.rounding
238
- }),
239
- { datapoint: o, seriesIndex: t, datapointIndex: l }
240
- );
241
- }
242
- function Pe(a, o, t, l) {
243
- return je(
244
- e.value.style.chart.bars.dataLabels.formatter,
245
- a,
246
- B({
247
- v: a,
248
- s: "%",
249
- r: e.value.style.chart.bars.dataLabels.rounding
250
- }),
251
- { datapoint: o, seriesIndex: t, datapointIndex: l }
252
- );
253
- }
254
- function Ae(a) {
255
- const o = JSON.parse(JSON.stringify(m.value)).map((t) => ({
256
- name: t.name,
257
- value: t.series[a] === 0 ? 0 : t.series[a] || null,
258
- proportion: t.proportions[a] || null,
259
- color: t.color,
260
- id: t.id
261
- }));
262
- be("selectDatapoint", { datapoint: o, period: Z.value[a] });
263
- }
264
- function Re(a) {
265
- G.value = a, j.value = !0;
266
- const o = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(m.value)).map((i) => ({
267
- name: i.name,
268
- value: i.series[a] === 0 ? 0 : (i.signedSeries[a] === -1 && i.series[a] >= 0 ? -i.series[a] : i.series[a]) || null,
269
- proportion: i.proportions[a] || null,
270
- color: i.color,
271
- id: i.id
272
- })), l = t.map((i) => Math.abs(i.value)).reduce((i, u) => i + u, 0);
273
- if (Qe(o) && Nt(() => o({
274
- seriesIndex: a,
275
- datapoint: t,
276
- series: m.value,
277
- config: e.value
278
- })))
279
- ce.value = o({
280
- seriesIndex: a,
281
- datapoint: t,
282
- series: m.value,
283
- config: e.value
284
- });
285
- else {
286
- const {
287
- showValue: i,
288
- showPercentage: u,
289
- borderColor: w,
290
- roundingValue: R,
291
- roundingPercentage: I
292
- } = e.value.style.chart.tooltip;
293
- let K = "";
294
- Z.value[a] && (K += `<div style="width:100%;text-align:center;border-bottom:1px solid ${w};padding-bottom:6px;margin-bottom:3px;">${Z.value[a]}</div>`);
295
- const F = [
296
- i && u ? "(" : "",
297
- i && u ? ")" : ""
298
- ];
299
- t.reverse().forEach(($) => {
300
- K += `
301
- <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
302
- <svg viewBox="0 0 12 12" height="14" width="14"><rect rx="1" x="0" y="0" height="12" width="12" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${$.id})` : $.color}"/></svg>
303
- ${$.name}${i || u ? ":" : ""} ${i ? B({
304
- p: e.value.style.chart.bars.dataLabels.prefix,
305
- v: $.value,
306
- s: e.value.style.chart.bars.dataLabels.suffix,
307
- r: R
308
- }) : ""} ${F[0]}${u ? B({
309
- v: isNaN($.value / l) ? 0 : Math.abs($.value) / l * 100,
310
- // Negs are absed to show relative proportion to absolute total. It's opinionated.
311
- s: "%",
312
- r: I
313
- }) : ""}${F[1]}
314
- </div>
315
- `;
316
- }), ce.value = `<div>${K}</div>`;
317
- }
318
- }
319
- function nt(a) {
320
- ve.value = a, me.value += 1;
321
- }
322
- function Ie() {
323
- _.value.showTable = !_.value.showTable;
324
- }
325
- function Fe() {
326
- _.value.dataLabels.show = !_.value.dataLabels.show;
327
- }
328
- function Ve() {
329
- _.value.showTooltip = !_.value.showTooltip;
330
- }
331
- function ut() {
332
- return m.value;
333
- }
334
- const De = p(() => {
335
- if (m.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
336
- const a = m.value.map(({ name: t, color: l }) => ({
337
- label: t,
338
- color: l
339
- })), o = [];
340
- for (let t = c.value.start; t < c.value.end; t += 1) {
341
- const l = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
342
- P.value.forEach((i) => {
343
- l.push(Number((i.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
344
- }), o.push(l);
345
- }
346
- return { head: a, body: o };
347
- });
348
- function Ee() {
349
- const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = ["", ...De.value.head.map((u) => u.label)], t = De.value.body, l = a.concat([o]).concat(t), i = Ot(l);
350
- Pt({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
351
- }
352
- const le = p(() => {
353
- const a = [""].concat(m.value.map((i) => i.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
354
- let o = [];
355
- for (let i = 0; i < A.value; i += 1) {
356
- const u = m.value.map((w) => w.series[i] ?? 0).reduce((w, R) => w + R, 0);
357
- o.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[i] ?? i + 1].concat(m.value.map((w) => (w.series[i] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
358
- }
359
- const t = {
360
- th: {
361
- backgroundColor: e.value.table.th.backgroundColor,
362
- color: e.value.table.th.color,
363
- outline: e.value.table.th.outline
364
- },
365
- td: {
366
- backgroundColor: e.value.table.td.backgroundColor,
367
- color: e.value.table.td.color,
368
- outline: e.value.table.td.outline
369
- },
370
- breakpoint: e.value.table.responsiveBreakpoint
371
- }, l = [e.value.table.columnNames.period].concat(m.value.map((i) => i.name)).concat(e.value.table.columnNames.total);
372
- return { head: a, body: o.slice(0, c.value.end - c.value.start), config: t, colNames: l };
373
- });
374
- function ct(a, o) {
375
- if (be("selectLegend", m.value.find((t) => t.absoluteIndex === a)), L.value.includes(o.id))
376
- L.value = L.value.filter((t) => t !== o.id);
377
- else {
378
- if (L.value.length === P.value.length - 1) return;
379
- L.value.push(o.id);
380
- }
381
- }
382
- const He = p(() => P.value.map((a, o) => ({
383
- ...a,
384
- shape: "square"
385
- })).map((a) => ({
386
- ...a,
387
- opacity: L.value.includes(a.id) ? 0.5 : 1,
388
- segregate: () => ct(a.absoluteIndex, a),
389
- isSegregated: L.value.includes(a.id)
390
- }))), vt = p(() => ({
391
- cy: "stackbar-legend",
392
- backgroundColor: e.value.style.chart.legend.backgroundColor,
393
- color: e.value.style.chart.legend.color,
394
- fontSize: e.value.style.chart.legend.fontSize,
395
- paddingBottom: 12,
396
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
397
- })), oe = g(!1);
398
- function de() {
399
- oe.value = !oe.value;
400
- }
401
- return tt({
402
- getData: ut,
403
- generatePdf: Se,
404
- generateCsv: Ee,
405
- generateImage: $e,
406
- toggleTable: Ie,
407
- toggleLabels: Fe,
408
- toggleTooltip: Ve,
409
- toggleAnnotator: de
410
- }), (a, o) => (s(), n("div", {
411
- id: `stackbar_${ue.value}`,
412
- ref_key: "stackbarChart",
413
- ref: X,
414
- class: ye({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ve.value }),
415
- style: U(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`)
416
- }, [
417
- e.value.userOptions.buttons.annotator ? (s(), Y(Yt, {
418
- key: 0,
419
- parent: X.value,
420
- backgroundColor: e.value.style.chart.backgroundColor,
421
- color: e.value.style.chart.color,
422
- active: oe.value,
423
- onClose: de
424
- }, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
425
- k(a.$slots, "userConfig", {}, void 0, !0),
426
- e.value.style.chart.title.text ? (s(), n("div", {
427
- key: 1,
428
- ref_key: "chartTitle",
429
- ref: pe,
430
- style: "width:100%;background:transparent;padding-bottom:24px"
431
- }, [
432
- se(Et, {
433
- config: {
434
- title: {
435
- cy: "stackbar-title",
436
- ...e.value.style.chart.title
437
- },
438
- subtitle: {
439
- cy: "stackbar-subtitle",
440
- ...e.value.style.chart.title.subtitle
441
- }
442
- }
443
- }, null, 8, ["config"])
444
- ], 512)) : v("", !0),
445
- e.value.userOptions.show && W.value ? (s(), Y(Ft, {
446
- ref: "details",
447
- key: `user_option_${me.value}`,
448
- backgroundColor: e.value.style.chart.backgroundColor,
449
- color: e.value.style.chart.color,
450
- isPrinting: z(ze),
451
- isImaging: z(Le),
452
- uid: ue.value,
453
- hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
454
- hasPdf: e.value.userOptions.buttons.pdf,
455
- hasImg: e.value.userOptions.buttons.img,
456
- hasXls: e.value.userOptions.buttons.csv,
457
- hasTable: e.value.userOptions.buttons.table,
458
- hasLabel: e.value.userOptions.buttons.labels,
459
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
460
- isFullscreen: ve.value,
461
- chartElement: X.value,
462
- position: e.value.userOptions.position,
463
- isTooltip: _.value.showTooltip,
464
- titles: { ...e.value.userOptions.buttonTitles },
465
- hasAnnotator: e.value.userOptions.buttons.annotator,
466
- isAnnotation: oe.value,
467
- onToggleFullscreen: nt,
468
- onGeneratePdf: z(Se),
469
- onGenerateCsv: Ee,
470
- onGenerateImage: z($e),
471
- onToggleTable: Ie,
472
- onToggleLabels: Fe,
473
- onToggleTooltip: Ve,
474
- onToggleAnnotator: de
475
- }, xt({ _: 2 }, [
476
- a.$slots.optionTooltip ? {
477
- name: "optionTooltip",
478
- fn: C(() => [
479
- k(a.$slots, "optionTooltip", {}, void 0, !0)
480
- ]),
481
- key: "0"
482
- } : void 0,
483
- a.$slots.optionPdf ? {
484
- name: "optionPdf",
485
- fn: C(() => [
486
- k(a.$slots, "optionPdf", {}, void 0, !0)
487
- ]),
488
- key: "1"
489
- } : void 0,
490
- a.$slots.optionCsv ? {
491
- name: "optionCsv",
492
- fn: C(() => [
493
- k(a.$slots, "optionCsv", {}, void 0, !0)
494
- ]),
495
- key: "2"
496
- } : void 0,
497
- a.$slots.optionImg ? {
498
- name: "optionImg",
499
- fn: C(() => [
500
- k(a.$slots, "optionImg", {}, void 0, !0)
501
- ]),
502
- key: "3"
503
- } : void 0,
504
- a.$slots.optionTable ? {
505
- name: "optionTable",
506
- fn: C(() => [
507
- k(a.$slots, "optionTable", {}, void 0, !0)
508
- ]),
509
- key: "4"
510
- } : void 0,
511
- a.$slots.optionLabels ? {
512
- name: "optionLabels",
513
- fn: C(() => [
514
- k(a.$slots, "optionLabels", {}, void 0, !0)
515
- ]),
516
- key: "5"
517
- } : void 0,
518
- a.$slots.optionFullscreen ? {
519
- name: "optionFullscreen",
520
- fn: C(({ toggleFullscreen: t, isFullscreen: l }) => [
521
- k(a.$slots, "optionFullscreen", D(E({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
522
- ]),
523
- key: "6"
524
- } : void 0,
525
- a.$slots.optionAnnotator ? {
526
- name: "optionAnnotator",
527
- fn: C(({ toggleAnnotator: t, isAnnotator: l }) => [
528
- k(a.$slots, "optionAnnotator", D(E({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
529
- ]),
530
- key: "7"
531
- } : void 0
532
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
533
- W.value ? (s(), n("svg", {
534
- key: 3,
535
- xmlns: z(Mt),
536
- viewBox: `0 0 ${r.value.chartWidth <= 0 ? 10 : r.value.chartWidth} ${r.value.chartHeight <= 0 ? 10 : r.value.chartHeight}`,
537
- style: U(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
538
- }, [
539
- se(Ut),
540
- e.value.style.chart.bars.gradient.show ? (s(), n("defs", Zt, [
541
- (s(!0), n(h, null, f(m.value, (t, l) => (s(), n("linearGradient", {
542
- id: `gradient_${t.id}`,
543
- x1: "0%",
544
- y1: "0%",
545
- x2: "0%",
546
- y2: "100%"
547
- }, [
548
- H("stop", {
549
- offset: "0%",
550
- "stop-color": t.color
551
- }, null, 8, Qt),
552
- H("stop", {
553
- offset: "61.8%",
554
- "stop-color": z(Tt)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
555
- }, null, 8, jt),
556
- H("stop", {
557
- offset: "100%",
558
- "stop-color": t.color
559
- }, null, 8, ea)
560
- ], 8, Kt))), 256))
561
- ])) : v("", !0),
562
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 1 }, f(N.value, (t, l) => (s(), n("line", {
563
- x1: r.value.left,
564
- x2: r.value.right,
565
- y1: t.y,
566
- y2: t.y,
567
- stroke: e.value.style.chart.grid.x.axisColor,
568
- "stroke-width": 1,
569
- "stroke-linecap": "round"
570
- }, null, 8, ta))), 256)) : v("", !0),
571
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 2 }, f(c.value.end - c.value.start + 1, (t, l) => (s(), n("line", {
572
- x1: r.value.left,
573
- x2: r.value.right,
574
- y1: r.value.top + d.value * l,
575
- y2: r.value.top + d.value * l,
576
- stroke: e.value.style.chart.grid.y.axisColor,
577
- "stroke-width": 1,
578
- "stroke-linecap": "round"
579
- }, null, 8, aa))), 256)) : v("", !0),
580
- e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 3 }, f(c.value.end - c.value.start + 1, (t, l) => (s(), n("line", {
581
- x1: r.value.left + d.value * l,
582
- x2: r.value.left + d.value * l,
583
- y1: r.value.top,
584
- y2: r.value.bottom,
585
- stroke: e.value.style.chart.grid.y.axisColor,
586
- "stroke-width": 1,
587
- "stroke-linecap": "round"
588
- }, null, 8, la))), 256)) : v("", !0),
589
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 4 }, f(N.value, (t, l) => (s(), n("line", {
590
- x1: t.horizontal_x,
591
- x2: t.horizontal_x,
592
- y1: r.value.top,
593
- y2: r.value.bottom,
594
- stroke: e.value.style.chart.grid.x.axisColor,
595
- "stroke-width": 1,
596
- "stroke-linecap": "round"
597
- }, null, 8, oa))), 256)) : v("", !0),
598
- (s(!0), n(h, null, f(m.value, (t, l) => (s(), n("g", null, [
599
- e.value.orientation === "vertical" ? (s(!0), n(h, { key: 0 }, f(t.x, (i, u) => (s(), n("rect", {
600
- x: i,
601
- y: t.y[u] < 0 ? 0 : t.y[u],
602
- height: t.height[u] < 0 ? 1e-4 : t.height[u],
603
- rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
604
- width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
605
- fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
606
- stroke: e.value.style.chart.backgroundColor,
607
- "stroke-width": e.value.style.chart.bars.strokeWidth,
608
- "stroke-linecap": "round",
609
- "stroke-linejoin": "round",
610
- class: ye({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": J.value })
611
- }, null, 10, ra))), 256)) : (s(!0), n(h, { key: 1 }, f(t.horizontal_x, (i, u) => (s(), n("rect", {
612
- x: i,
613
- y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
614
- width: t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u],
615
- rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
616
- height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
617
- fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
618
- stroke: e.value.style.chart.backgroundColor,
619
- "stroke-width": e.value.style.chart.bars.strokeWidth,
620
- "stroke-linecap": "round",
621
- "stroke-linejoin": "round",
622
- class: ye({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": J.value })
623
- }, null, 10, sa))), 256))
624
- ]))), 256)),
625
- e.value.style.chart.grid.x.showAxis ? (s(), n("line", {
626
- key: 5,
627
- x1: r.value.left,
628
- x2: r.value.right,
629
- y1: r.value.bottom,
630
- y2: r.value.bottom,
631
- stroke: e.value.style.chart.grid.x.axisColor,
632
- "stroke-width": e.value.style.chart.grid.x.axisThickness,
633
- "stroke-linecap": "round",
634
- "stroke-linejoin": "round"
635
- }, null, 8, ia)) : v("", !0),
636
- e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), n("line", {
637
- key: 6,
638
- x1: r.value.left,
639
- x2: r.value.left,
640
- y1: r.value.top,
641
- y2: r.value.bottom,
642
- stroke: e.value.style.chart.grid.y.axisColor,
643
- "stroke-width": e.value.style.chart.grid.y.axisThickness,
644
- "stroke-linecap": "round",
645
- "stroke-linejoin": "round"
646
- }, null, 8, na)) : v("", !0),
647
- e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), n("text", {
648
- key: 7,
649
- x: r.value.left + r.value.width / 2,
650
- y: r.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
651
- "font-size": e.value.style.chart.grid.x.axisName.fontSize,
652
- fill: e.value.style.chart.grid.x.axisName.color,
653
- "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
654
- "text-anchor": "middle"
655
- }, S(e.value.style.chart.grid.x.axisName.text), 9, ua)) : v("", !0),
656
- e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), n("text", {
657
- key: 8,
658
- transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
659
- "font-size": e.value.style.chart.grid.y.axisName.fontSize,
660
- fill: e.value.style.chart.grid.y.axisName.color,
661
- "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
662
- "text-anchor": "middle"
663
- }, S(e.value.style.chart.grid.y.axisName.text), 9, ca)) : v("", !0),
664
- _.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), n(h, { key: 9 }, [
665
- (s(!0), n(h, null, f(m.value, (t, l) => (s(), n("g", null, [
666
- (s(!0), n(h, null, f(t.x, (i, u) => (s(), n("text", {
667
- x: i + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
668
- y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
669
- "font-size": e.value.style.chart.bars.dataLabels.fontSize,
670
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? z(Ke)(t.color) : e.value.style.chart.bars.dataLabels.color,
671
- "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
672
- "text-anchor": "middle"
673
- }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Pe(t.proportions[u] * 100, t, l, u) : ae(t.series[u], t, l, u, t.signedSeries[u])), 9, va))), 256))
674
- ]))), 256)),
675
- e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), n("g", ha, [
676
- (s(!0), n(h, null, f(Oe.value, (t, l) => (s(), n("text", {
677
- x: r.value.left + d.value * l + d.value / 2,
678
- y: r.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
679
- "text-anchor": "middle",
680
- "font-size": e.value.style.chart.bars.totalValues.fontSize,
681
- "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
682
- fill: e.value.style.chart.bars.totalValues.color
683
- }, S(ae(t.value, t, l, t.sign)), 9, da))), 256))
684
- ])) : v("", !0)
685
- ], 64)) : v("", !0),
686
- _.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), n(h, { key: 10 }, [
687
- (s(!0), n(h, null, f(m.value, (t, l) => (s(), n("g", null, [
688
- (s(!0), n(h, null, f(t.horizontal_x, (i, u) => (s(), n("text", {
689
- x: i + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
690
- y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
691
- "font-size": e.value.style.chart.bars.dataLabels.fontSize,
692
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? z(Ke)(t.color) : e.value.style.chart.bars.dataLabels.color,
693
- "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
694
- "text-anchor": "middle"
695
- }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Pe(t.proportions[u] * 100, t, l, u) : ae(t.series[u], t, l, u, t.signedSeries[u])), 9, ya))), 256))
696
- ]))), 256)),
697
- e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), n("g", ga, [
698
- (s(!0), n(h, null, f(Oe.value, (t, l) => (s(), n("text", {
699
- x: r.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
700
- y: r.value.top + d.value * l + d.value / 2,
701
- "text-anchor": "start",
702
- "font-size": e.value.style.chart.bars.totalValues.fontSize,
703
- "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
704
- fill: e.value.style.chart.bars.totalValues.color
705
- }, S(ae(t.value, t, l, t.sign)), 9, ba))), 256))
706
- ])) : v("", !0)
707
- ], 64)) : v("", !0),
708
- e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (s(), n(h, { key: 11 }, [
709
- (s(!0), n(h, null, f(N.value, (t, l) => (s(), n("line", {
710
- x1: r.value.left,
711
- x2: r.value.left - 6,
712
- y1: t.y,
713
- y2: t.y,
714
- stroke: e.value.style.chart.grid.x.axisColor,
715
- "stroke-width": 1
716
- }, null, 8, fa))), 256)),
717
- (s(!0), n(h, null, f(N.value, (t, l) => (s(), n("text", {
718
- x: t.x,
719
- y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
720
- "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
721
- "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
722
- fill: e.value.style.chart.grid.y.axisLabels.color,
723
- "text-anchor": "end"
724
- }, S(z(B)({
725
- p: e.value.style.chart.bars.dataLabels.prefix,
726
- v: t.value,
727
- s: e.value.style.chart.bars.dataLabels.suffix,
728
- r: e.value.style.chart.grid.y.axisLabels.rounding
729
- })), 9, ma))), 256))
730
- ], 64)) : v("", !0),
731
- e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), n(h, { key: 12 }, [
732
- (s(!0), n(h, null, f(N.value, (t, l) => (s(), n("line", {
733
- x1: t.horizontal_x,
734
- x2: t.horizontal_x,
735
- y1: r.value.bottom,
736
- y2: r.value.bottom + 6,
737
- stroke: e.value.style.chart.grid.x.axisColor,
738
- "stroke-width": 1,
739
- "stroke-linecap": "round"
740
- }, null, 8, pa))), 256)),
741
- (s(!0), n(h, null, f(N.value, (t, l) => (s(), n("text", {
742
- "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
743
- "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
744
- fill: e.value.style.chart.grid.y.axisLabels.color,
745
- "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
746
- transform: `translate(${t.horizontal_x}, ${r.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
747
- }, S(z(B)({
748
- p: e.value.style.chart.bars.dataLabels.prefix,
749
- v: t.value,
750
- s: e.value.style.chart.bars.dataLabels.suffix,
751
- r: e.value.style.chart.grid.y.axisLabels.rounding
752
- })), 9, xa))), 256))
753
- ], 64)) : v("", !0),
754
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 13 }, f(Z.value, (t, l) => (s(), n("text", {
755
- "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
756
- "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
757
- "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
758
- fill: e.value.style.chart.grid.x.timeLabels.color,
759
- transform: `translate(${r.value.left + d.value * l + d.value / 2}, ${r.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
760
- }, S(t), 9, ka))), 256)) : v("", !0),
761
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 14 }, f(Z.value, (t, l) => (s(), n("text", {
762
- "text-anchor": "end",
763
- "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
764
- "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
765
- fill: e.value.style.chart.grid.y.axisLabels.color,
766
- x: r.value.left - 8,
767
- y: r.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3
768
- }, S(t), 9, wa))), 256)) : v("", !0),
769
- _.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 15 }, f(c.value.end - c.value.start, (t, l) => (s(), n("rect", {
770
- x: r.value.left + l * d.value,
771
- y: r.value.top,
772
- width: d.value,
773
- height: r.value.height < 0 ? 0 : r.value.height,
774
- onClick: (i) => Ae(l),
775
- onMouseenter: (i) => Re(l),
776
- onMouseleave: o[0] || (o[0] = (i) => {
777
- G.value = null, j.value = !1;
778
- }),
779
- fill: l === G.value ? e.value.style.chart.highlighter.color : "transparent",
780
- style: U({ opacity: e.value.style.chart.highlighter.opacity / 100 })
781
- }, null, 44, Ca))), 256)) : v("", !0),
782
- _.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 16 }, f(c.value.end - c.value.start, (t, l) => (s(), n("rect", {
783
- x: r.value.left,
784
- y: r.value.top + l * d.value,
785
- width: r.value.width < 0 ? 0 : r.value.width,
786
- height: d.value,
787
- onClick: (i) => Ae(l),
788
- onMouseenter: (i) => Re(l),
789
- onMouseleave: o[1] || (o[1] = (i) => {
790
- G.value = null, j.value = !1;
791
- }),
792
- fill: l === G.value ? e.value.style.chart.highlighter.color : "transparent",
793
- style: U({ opacity: e.value.style.chart.highlighter.opacity / 100 })
794
- }, null, 44, _a))), 256)) : v("", !0),
795
- k(a.$slots, "svg", D(E({ ...r.value })), void 0, !0)
796
- ], 12, qt)) : v("", !0),
797
- a.$slots.watermark ? (s(), n("div", za, [
798
- k(a.$slots, "watermark", D(E({ isPrinting: z(ze) || z(Le) })), void 0, !0)
799
- ])) : v("", !0),
800
- W.value ? v("", !0) : (s(), Y(Xt, {
801
- key: 5,
802
- config: {
803
- type: "bar",
804
- style: {
805
- backgroundColor: e.value.style.chart.backgroundColor,
806
- bar: {
807
- axis: {
808
- color: "#CCCCCC"
809
- },
810
- color: "#CCCCCC"
811
- }
812
- }
813
- }
814
- }, null, 8, ["config"])),
815
- H("div", {
816
- ref_key: "chartSlicer",
817
- ref: ke,
818
- style: U(`width:100%;background:${e.value.style.chart.backgroundColor}`),
819
- "data-html2canvas-ignore": ""
820
- }, [
821
- e.value.style.chart.zoom.show && A.value > 1 ? (s(), Y(Vt, {
822
- key: `slicer_${Ce.value}`,
823
- background: e.value.style.chart.zoom.color,
824
- borderColor: e.value.style.chart.backgroundColor,
825
- fontSize: e.value.style.chart.zoom.fontSize,
826
- useResetSlot: e.value.style.chart.zoom.useResetSlot,
827
- labelLeft: e.value.style.chart.grid.x.timeLabels.values[c.value.start] ? e.value.style.chart.grid.x.timeLabels.values[c.value.start] : "",
828
- labelRight: e.value.style.chart.grid.x.timeLabels.values[c.value.end - 1] ? e.value.style.chart.grid.x.timeLabels.values[c.value.end - 1] : "",
829
- textColor: e.value.style.chart.color,
830
- inputColor: e.value.style.chart.zoom.color,
831
- selectColor: e.value.style.chart.zoom.highlightColor,
832
- max: Math.max(...ge.dataset.map((t) => t.series.length)),
833
- min: 0,
834
- valueStart: c.value.start,
835
- valueEnd: c.value.end,
836
- start: c.value.start,
837
- "onUpdate:start": o[2] || (o[2] = (t) => c.value.start = t),
838
- end: c.value.end,
839
- "onUpdate:end": o[3] || (o[3] = (t) => c.value.end = t),
840
- onReset: Ne
841
- }, {
842
- "reset-action": C(({ reset: t }) => [
843
- k(a.$slots, "reset-action", D(E({ reset: t })), void 0, !0)
844
- ]),
845
- _: 3
846
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : v("", !0)
847
- ], 4),
848
- se(Dt, {
849
- show: _.value.showTooltip && j.value,
850
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
851
- color: e.value.style.chart.tooltip.color,
852
- fontSize: e.value.style.chart.tooltip.fontSize,
853
- borderRadius: e.value.style.chart.tooltip.borderRadius,
854
- borderColor: e.value.style.chart.tooltip.borderColor,
855
- borderWidth: e.value.style.chart.tooltip.borderWidth,
856
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
857
- position: e.value.style.chart.tooltip.position,
858
- offsetY: e.value.style.chart.tooltip.offsetY,
859
- parent: X.value,
860
- content: ce.value,
861
- isCustom: z(Qe)(e.value.style.chart.tooltip.customFormat)
862
- }, {
863
- "tooltip-before": C(() => [
864
- k(a.$slots, "tooltip-before", D(E({ ...fe.value })), void 0, !0)
865
- ]),
866
- "tooltip-after": C(() => [
867
- k(a.$slots, "tooltip-after", D(E({ ...fe.value })), void 0, !0)
868
- ]),
869
- _: 3
870
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
871
- H("div", {
872
- ref_key: "chartLegend",
873
- ref: xe
874
- }, [
875
- e.value.style.chart.legend.show && W.value ? (s(), Y(Ht, {
876
- key: 0,
877
- legendSet: He.value,
878
- config: vt.value,
879
- onClickMarker: o[4] || (o[4] = ({ legend: t }) => t.segregate())
880
- }, {
881
- item: C(({ legend: t }) => [
882
- H("div", {
883
- onClick: (l) => t.segregate(),
884
- style: U(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
885
- }, S(t.name), 13, La)
886
- ]),
887
- _: 1
888
- }, 8, ["legendSet", "config"])) : k(a.$slots, "legend", {
889
- key: 1,
890
- legend: He.value
891
- }, void 0, !0)
892
- ], 512),
893
- a.$slots.source ? (s(), n("div", {
894
- key: 6,
895
- ref_key: "source",
896
- ref: we,
897
- dir: "auto"
898
- }, [
899
- k(a.$slots, "source", {}, void 0, !0)
900
- ], 512)) : v("", !0),
901
- c.value.end - c.value.start < 200 ? (s(), Y(Bt, {
902
- key: 7,
903
- hideDetails: "",
904
- config: {
905
- open: _.value.showTable,
906
- maxHeight: 1e4,
907
- body: {
908
- backgroundColor: e.value.style.chart.backgroundColor,
909
- color: e.value.style.chart.color
910
- },
911
- head: {
912
- backgroundColor: e.value.style.chart.backgroundColor,
913
- color: e.value.style.chart.color
914
- }
915
- }
916
- }, {
917
- content: C(() => [
918
- se(Wt, {
919
- colNames: le.value.colNames,
920
- head: le.value.head,
921
- body: le.value.body,
922
- config: le.value.config,
923
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
924
- onClose: o[5] || (o[5] = (t) => _.value.showTable = !1)
925
- }, {
926
- th: C(({ th: t }) => [
927
- H("div", { innerHTML: t }, null, 8, Sa)
928
- ]),
929
- td: C(({ td: t }) => [
930
- kt(S(isNaN(Number(t)) ? t : z(B)({
931
- p: e.value.style.chart.bars.dataLabels.prefix,
932
- v: t,
933
- s: e.value.style.chart.bars.dataLabels.suffix,
934
- r: e.value.table.td.roundingValue
935
- })), 1)
936
- ]),
937
- _: 1
938
- }, 8, ["colNames", "head", "body", "config", "title"])
939
- ]),
940
- _: 1
941
- }, 8, ["config"])) : v("", !0)
942
- ], 14, Jt));
943
- }
944
- }, Xa = /* @__PURE__ */ Gt($a, [["__scopeId", "data-v-d80dd138"]]);
945
- export {
946
- Xa as default
947
- };