vue-data-ui 2.4.42 → 2.4.44

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 (159) hide show
  1. package/README.md +34 -34
  2. package/dist/{Arrow-DTscDttD.cjs → Arrow-D7FfpPjv.cjs} +1 -1
  3. package/dist/{Arrow-DE71uBJZ.js → Arrow-DabU4Tq7.js} +1 -1
  4. package/dist/{BaseIcon-C8XxmpRq.js → BaseIcon-DgOZGFA6.js} +1 -1
  5. package/dist/{BaseIcon-COOfxsl_.cjs → BaseIcon-vmPfwVXS.cjs} +1 -1
  6. package/dist/{DataTable-D_w08xos.js → DataTable-ByILXTgq.js} +2 -2
  7. package/dist/{DataTable-DEdQvqB1.cjs → DataTable-WzoXT7XP.cjs} +1 -1
  8. package/dist/{Legend-BWDoQii_.js → Legend-CJAbBncx.js} +1 -1
  9. package/dist/{Legend-C4rlR-Ge.cjs → Legend-eRHr8IFu.cjs} +1 -1
  10. package/dist/{PackageVersion-CH6MCx6T.js → PackageVersion-2fR7Awu1.js} +1 -1
  11. package/dist/{PackageVersion-DKyD7D76.cjs → PackageVersion-DylCZJMA.cjs} +1 -1
  12. package/dist/{PenAndPaper-Dc2zn4C0.cjs → PenAndPaper-2aIJsXNH.cjs} +1 -1
  13. package/dist/{PenAndPaper-BWTR3U2d.js → PenAndPaper-wVL9QD9U.js} +3 -3
  14. package/dist/{Shape-xrlfL_v4.js → Shape-JMJZs7By.js} +1 -1
  15. package/dist/{Shape-BLS-KzBD.cjs → Shape-nGoGILeB.cjs} +1 -1
  16. package/dist/{Slicer-8gKX0l4Q.cjs → Slicer-BLuFaL8r.cjs} +1 -1
  17. package/dist/{Slicer-DIYseEL1.js → Slicer-Ce0VzdTY.js} +2 -2
  18. package/dist/{Title-B-xkTfi8.cjs → Title-CtfsoH8U.cjs} +1 -1
  19. package/dist/{Title-Cnl9ySNH.js → Title-Dj5wajqV.js} +1 -1
  20. package/dist/{Tooltip-Brbj6DqX.cjs → Tooltip-6D9aABEX.cjs} +1 -1
  21. package/dist/{Tooltip-DEAOBZ8h.js → Tooltip-Zrcwpy3T.js} +6 -6
  22. package/dist/documentation/installation.md +34 -34
  23. package/dist/{index-DnukYspq.js → index-D3_dyp9t.js} +4 -2
  24. package/dist/index-ZAR4YEAn.cjs +9 -0
  25. package/dist/style.css +1 -1
  26. package/dist/types/vue-data-ui.d.cts +2 -0
  27. package/dist/types/vue-data-ui.d.ts +2 -0
  28. package/dist/{useNestedProp-es9bVqY_.cjs → useNestedProp-C8Y0yWDq.cjs} +1 -1
  29. package/dist/{useNestedProp-CVOQGx-X.js → useNestedProp-qwG6HgrL.js} +1 -1
  30. package/dist/{usePrinter-DVIALk5e.js → usePrinter-41NUZdgl.js} +1 -1
  31. package/dist/{usePrinter-C9yUesCc.cjs → usePrinter-Cw4E_LYe.cjs} +1 -1
  32. package/dist/{vue-data-ui-BmmjmNbb.js → vue-data-ui-CKlgRX2w.js} +60 -60
  33. package/dist/{vue-data-ui-LA94HAVo.cjs → vue-data-ui-DPujYnT2.cjs} +1 -1
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +1 -1
  36. package/dist/{vue-ui-3d-bar-DYswbvC_.cjs → vue-ui-3d-bar-CURLeBAg.cjs} +1 -1
  37. package/dist/{vue-ui-3d-bar-CnVJAgFO.js → vue-ui-3d-bar-DFqYSjKF.js} +9 -9
  38. package/dist/{vue-ui-accordion-f9NTID9e.js → vue-ui-accordion-DbKFz7vP.js} +3 -3
  39. package/dist/{vue-ui-accordion-D_K9gNUR.cjs → vue-ui-accordion-zOz2K8wY.cjs} +1 -1
  40. package/dist/{vue-ui-age-pyramid-Bj9K08ws.cjs → vue-ui-age-pyramid-BzwQxubx.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-CL0RB7mU.js → vue-ui-age-pyramid-DVjZHG-c.js} +10 -10
  42. package/dist/{vue-ui-annotator-DhwUZ4WB.cjs → vue-ui-annotator-CU8bDkP0.cjs} +1 -1
  43. package/dist/{vue-ui-annotator-C82vEb7R.js → vue-ui-annotator-ZDqHg-kV.js} +1 -1
  44. package/dist/{vue-ui-bullet-BxYYiFnu.js → vue-ui-bullet-BaQJ3acV.js} +8 -8
  45. package/dist/{vue-ui-bullet-D6KC5yoe.cjs → vue-ui-bullet-Dt0Ki37L.cjs} +1 -1
  46. package/dist/{vue-ui-candlestick-Duf3yfwR.js → vue-ui-candlestick-C5Pzu7U1.js} +11 -11
  47. package/dist/{vue-ui-candlestick-lunuQ9Ka.cjs → vue-ui-candlestick-CMubhqre.cjs} +1 -1
  48. package/dist/{vue-ui-carousel-table-4z9ZACSk.cjs → vue-ui-carousel-table-CL6njZH4.cjs} +1 -1
  49. package/dist/{vue-ui-carousel-table-DQymYeK0.js → vue-ui-carousel-table-CPE1nggj.js} +4 -4
  50. package/dist/{vue-ui-chestnut-DDNLUSav.js → vue-ui-chestnut-B7zSDFfA.js} +8 -8
  51. package/dist/{vue-ui-chestnut-iRODkXaw.cjs → vue-ui-chestnut-DHF2jlte.cjs} +1 -1
  52. package/dist/{vue-ui-cursor-Bdud_Fxg.js → vue-ui-cursor-GKguDqwJ.js} +2 -2
  53. package/dist/{vue-ui-cursor-Bt_SieMc.cjs → vue-ui-cursor-PG2njvGA.cjs} +1 -1
  54. package/dist/{vue-ui-dashboard-BzRR9Ra7.cjs → vue-ui-dashboard-D2w_aK31.cjs} +1 -1
  55. package/dist/{vue-ui-dashboard-CeVkJPeG.js → vue-ui-dashboard-u_haUFHY.js} +2 -2
  56. package/dist/{vue-ui-digits-DF3oLaaR.cjs → vue-ui-digits-DQetGFnZ.cjs} +1 -1
  57. package/dist/{vue-ui-digits-DtNvb8lM.js → vue-ui-digits-DjMZxTuZ.js} +2 -2
  58. package/dist/{vue-ui-donut-C028OlzU.js → vue-ui-donut-CmRH-JB2.js} +243 -243
  59. package/dist/vue-ui-donut-DQcISN6U.cjs +1 -0
  60. package/dist/{vue-ui-donut-evolution-2vQPsBFq.cjs → vue-ui-donut-evolution-XrPuyr-U.cjs} +1 -1
  61. package/dist/{vue-ui-donut-evolution-CprYApXF.js → vue-ui-donut-evolution-YntzBUIL.js} +11 -11
  62. package/dist/{vue-ui-dumbbell-CS8pY-mj.cjs → vue-ui-dumbbell-CCwYiUwP.cjs} +1 -1
  63. package/dist/{vue-ui-dumbbell-BV2LN5qt.js → vue-ui-dumbbell-DmgUkc9m.js} +10 -10
  64. package/dist/{vue-ui-flow-QRimZUXT.js → vue-ui-flow-CZkXzt4D.js} +9 -9
  65. package/dist/{vue-ui-flow-iNWWhp7U.cjs → vue-ui-flow-Ca2cA45D.cjs} +1 -1
  66. package/dist/{vue-ui-funnel-BL8vtmsw.cjs → vue-ui-funnel-CJAT8_1R.cjs} +1 -1
  67. package/dist/{vue-ui-funnel-CBymVSdd.js → vue-ui-funnel-z2OgL3Q1.js} +8 -8
  68. package/dist/{vue-ui-galaxy-KP3A9HVX.js → vue-ui-galaxy-CGhDJ3tA.js} +11 -11
  69. package/dist/{vue-ui-galaxy-DSJrMBzj.cjs → vue-ui-galaxy-bgA3s7VZ.cjs} +1 -1
  70. package/dist/{vue-ui-gauge-H9j8Dq5h.cjs → vue-ui-gauge-F-bvIFfG.cjs} +1 -1
  71. package/dist/{vue-ui-gauge-BuU0DDG0.js → vue-ui-gauge-NtnSEvX5.js} +7 -7
  72. package/dist/{vue-ui-gizmo-M7RalwJ6.js → vue-ui-gizmo-Bq56LDKo.js} +3 -3
  73. package/dist/{vue-ui-gizmo-Bl9JoMk1.cjs → vue-ui-gizmo-DBIefin8.cjs} +1 -1
  74. package/dist/{vue-ui-heatmap-BXWWh4iN.cjs → vue-ui-heatmap-C0NUwPN7.cjs} +1 -1
  75. package/dist/{vue-ui-heatmap-DSkfyl8j.js → vue-ui-heatmap-Dbrlismo.js} +10 -10
  76. package/dist/{vue-ui-history-plot-CYSDr-GH.js → vue-ui-history-plot-CMAu0w0K.js} +11 -11
  77. package/dist/{vue-ui-history-plot-BUoUHKx6.cjs → vue-ui-history-plot-Cd0Qgkox.cjs} +1 -1
  78. package/dist/{vue-ui-kpi-BXe7HQIh.cjs → vue-ui-kpi-C1a3ONse.cjs} +1 -1
  79. package/dist/{vue-ui-kpi-BvUaC7JA.js → vue-ui-kpi-CkRUVNcg.js} +3 -3
  80. package/dist/{vue-ui-mini-loader-DM8ShcKo.js → vue-ui-mini-loader-BVvBbruK.js} +2 -2
  81. package/dist/{vue-ui-mini-loader-zbjxzJTp.cjs → vue-ui-mini-loader-DZ1q-GO6.cjs} +1 -1
  82. package/dist/{vue-ui-molecule-BdIRpOM9.cjs → vue-ui-molecule-C-tmrnHA.cjs} +1 -1
  83. package/dist/{vue-ui-molecule-CZi84tUl.js → vue-ui-molecule-DlXNe42L.js} +11 -11
  84. package/dist/{vue-ui-mood-radar-DipV_UPN.cjs → vue-ui-mood-radar-DYXE1dDD.cjs} +1 -1
  85. package/dist/{vue-ui-mood-radar-DDnbuNdv.js → vue-ui-mood-radar-DzHvFqno.js} +11 -11
  86. package/dist/{vue-ui-nested-donuts-DuxVLzDH.cjs → vue-ui-nested-donuts-BpcKwKFO.cjs} +1 -1
  87. package/dist/{vue-ui-nested-donuts-Chuuvtu-.js → vue-ui-nested-donuts-DDpYr89I.js} +11 -11
  88. package/dist/{vue-ui-onion-CIRGvycb.js → vue-ui-onion-B9CAGc1E.js} +11 -11
  89. package/dist/{vue-ui-onion-CvlwZgpu.cjs → vue-ui-onion-_WXwSygI.cjs} +1 -1
  90. package/dist/{vue-ui-parallel-coordinate-plot-jv7L5_x8.js → vue-ui-parallel-coordinate-plot-CdvYxx2S.js} +12 -12
  91. package/dist/{vue-ui-parallel-coordinate-plot-eJMnJ_u2.cjs → vue-ui-parallel-coordinate-plot-DL5vZwuT.cjs} +1 -1
  92. package/dist/{vue-ui-quadrant-CjjXU43-.js → vue-ui-quadrant-CILC-e-o.js} +12 -12
  93. package/dist/{vue-ui-quadrant-ks_4yK85.cjs → vue-ui-quadrant-ivKVYVXn.cjs} +1 -1
  94. package/dist/{vue-ui-quick-chart-Br2gTOPk.cjs → vue-ui-quick-chart-DW3XlvkG.cjs} +1 -1
  95. package/dist/{vue-ui-quick-chart-BAVQ2SJ2.js → vue-ui-quick-chart-NIE0zUjt.js} +9 -9
  96. package/dist/{vue-ui-radar-CXXAYowO.js → vue-ui-radar-BonXp2ML.js} +12 -12
  97. package/dist/{vue-ui-radar-kjh9y4cm.cjs → vue-ui-radar-D9WtkmKW.cjs} +1 -1
  98. package/dist/{vue-ui-rating-EEIqiBgY.cjs → vue-ui-rating-3akEkZ0G.cjs} +1 -1
  99. package/dist/{vue-ui-rating-DOqMciYJ.js → vue-ui-rating-DblWs0Ay.js} +2 -2
  100. package/dist/{vue-ui-relation-circle-CR3iWQV_.js → vue-ui-relation-circle-BaPqJcbF.js} +7 -7
  101. package/dist/{vue-ui-relation-circle-BEv568py.cjs → vue-ui-relation-circle-Bv5QA1FA.cjs} +1 -1
  102. package/dist/{vue-ui-rings-B--CFaNX.js → vue-ui-rings-DHa-dc3s.js} +11 -11
  103. package/dist/{vue-ui-rings-CgvWaw5N.cjs → vue-ui-rings-KRi0yCa1.cjs} +1 -1
  104. package/dist/{vue-ui-scatter-ChWlgb1L.cjs → vue-ui-scatter-C-0G6tO_.cjs} +1 -1
  105. package/dist/{vue-ui-scatter-C-RD4h73.js → vue-ui-scatter-CKnKyeDJ.js} +12 -12
  106. package/dist/{vue-ui-screenshot-CtjCOun0.cjs → vue-ui-screenshot-BIvS3Dva.cjs} +1 -1
  107. package/dist/{vue-ui-screenshot-C6-MOj7h.js → vue-ui-screenshot-BnQlv1n0.js} +1 -1
  108. package/dist/{vue-ui-skeleton-CXdyOF4T.js → vue-ui-skeleton-CaV7JuCg.js} +3 -3
  109. package/dist/{vue-ui-skeleton-DGCkWrND.cjs → vue-ui-skeleton-urNi7er0.cjs} +1 -1
  110. package/dist/{vue-ui-smiley-AYBZK1EE.cjs → vue-ui-smiley-BDJWFNUb.cjs} +1 -1
  111. package/dist/{vue-ui-smiley-CHXnJeLu.js → vue-ui-smiley-BkKHZRcE.js} +2 -2
  112. package/dist/{vue-ui-spark-trend-DO5rDGRm.js → vue-ui-spark-trend-C6B6URVX.js} +5 -5
  113. package/dist/{vue-ui-spark-trend-D2wIBOvT.cjs → vue-ui-spark-trend-Jrg-tgH_.cjs} +1 -1
  114. package/dist/{vue-ui-sparkbar-COUcdDjn.cjs → vue-ui-sparkbar-CcPXRX01.cjs} +1 -1
  115. package/dist/{vue-ui-sparkbar-CU3UNgHm.js → vue-ui-sparkbar-D7A9EKVi.js} +4 -4
  116. package/dist/{vue-ui-sparkgauge-0810df6b.js → vue-ui-sparkgauge-C1kcwrm9.js} +4 -4
  117. package/dist/{vue-ui-sparkgauge-DrJzwEAh.cjs → vue-ui-sparkgauge-ZQOdaaF1.cjs} +1 -1
  118. package/dist/{vue-ui-sparkhistogram-j7MGEYYJ.cjs → vue-ui-sparkhistogram-CZQzNQHQ.cjs} +1 -1
  119. package/dist/{vue-ui-sparkhistogram-CENPsEeO.js → vue-ui-sparkhistogram-DkMaK9FC.js} +5 -5
  120. package/dist/{vue-ui-sparkline-CXMea9Ki.cjs → vue-ui-sparkline-DuJlR_56.cjs} +1 -1
  121. package/dist/{vue-ui-sparkline-BOYreaxT.js → vue-ui-sparkline-JNv27Q7M.js} +4 -4
  122. package/dist/{vue-ui-sparkstackbar-JvKmnoEy.js → vue-ui-sparkstackbar-4YKk6S2y.js} +5 -5
  123. package/dist/{vue-ui-sparkstackbar-BJIo5y1n.cjs → vue-ui-sparkstackbar-BStYMSiJ.cjs} +1 -1
  124. package/dist/vue-ui-stackbar-BKhScZJ4.cjs +6 -0
  125. package/dist/vue-ui-stackbar-BrBToOgd.js +1026 -0
  126. package/dist/{vue-ui-strip-plot-8MxOeTM_.js → vue-ui-strip-plot-BB9AjuXc.js} +11 -11
  127. package/dist/{vue-ui-strip-plot-CmIS1Osx.cjs → vue-ui-strip-plot-BSbIVJLB.cjs} +1 -1
  128. package/dist/{vue-ui-table-CS-NSZjj.js → vue-ui-table-BkfBNufP.js} +1 -1
  129. package/dist/{vue-ui-table-hVmeT8wY.cjs → vue-ui-table-CTwEo09l.cjs} +1 -1
  130. package/dist/{vue-ui-table-heatmap-k9e_RrhC.cjs → vue-ui-table-heatmap-BRa-idSR.cjs} +1 -1
  131. package/dist/{vue-ui-table-heatmap-CGHYZFJy.js → vue-ui-table-heatmap-t6NXIulS.js} +4 -4
  132. package/dist/{vue-ui-table-sparkline-CRnJVQmO.js → vue-ui-table-sparkline-CtVdHOeS.js} +5 -5
  133. package/dist/{vue-ui-table-sparkline-DiMZ_mh6.cjs → vue-ui-table-sparkline-LRvAe8DG.cjs} +1 -1
  134. package/dist/{vue-ui-thermometer-43jmlgFC.cjs → vue-ui-thermometer-Bkj9olK0.cjs} +1 -1
  135. package/dist/{vue-ui-thermometer-D2BUcsvF.js → vue-ui-thermometer-Dqy_A9Ka.js} +7 -7
  136. package/dist/{vue-ui-timer-Dc6zOjxq.js → vue-ui-timer-BkWR-FS3.js} +5 -5
  137. package/dist/{vue-ui-timer-BO9Ipy0W.cjs → vue-ui-timer-C2WYUfS1.cjs} +1 -1
  138. package/dist/{vue-ui-tiremarks-CMUTe1vY.cjs → vue-ui-tiremarks-BXumbUyZ.cjs} +1 -1
  139. package/dist/{vue-ui-tiremarks-ejt0fqPg.js → vue-ui-tiremarks-Dl881FpL.js} +7 -7
  140. package/dist/{vue-ui-treemap-DqSHqaJK.cjs → vue-ui-treemap-CvNWsOoE.cjs} +1 -1
  141. package/dist/{vue-ui-treemap-DD8tFk9R.js → vue-ui-treemap-Vl47y-4n.js} +11 -11
  142. package/dist/{vue-ui-vertical-bar-CxydSPHF.js → vue-ui-vertical-bar-BzkqxE45.js} +11 -11
  143. package/dist/{vue-ui-vertical-bar-D4dYglan.cjs → vue-ui-vertical-bar-D1EoKlII.cjs} +1 -1
  144. package/dist/{vue-ui-waffle-DYdcFM17.js → vue-ui-waffle-Bd4Wn4LE.js} +11 -11
  145. package/dist/{vue-ui-waffle-CHWAepdl.cjs → vue-ui-waffle-C6cN0uw8.cjs} +1 -1
  146. package/dist/{vue-ui-wheel-CxtgGGpt.js → vue-ui-wheel-D1SsLAru.js} +7 -7
  147. package/dist/{vue-ui-wheel-_ynSyF3l.cjs → vue-ui-wheel-OGoTipOg.cjs} +1 -1
  148. package/dist/{vue-ui-word-cloud-B0AhPT0k.js → vue-ui-word-cloud-C6vq-XKZ.js} +10 -10
  149. package/dist/{vue-ui-word-cloud-Ct16Xxaw.cjs → vue-ui-word-cloud-Da4dHp_U.cjs} +1 -1
  150. package/dist/{vue-ui-xy-B3346TfB.js → vue-ui-xy-Bbih4XkZ.js} +847 -805
  151. package/dist/vue-ui-xy-DXLSyett.cjs +3 -0
  152. package/dist/{vue-ui-xy-canvas-W7YGqG7f.js → vue-ui-xy-canvas-Dtv9a_jF.js} +11 -11
  153. package/dist/{vue-ui-xy-canvas-DtPqmu7B.cjs → vue-ui-xy-canvas-GffgFKCU.cjs} +1 -1
  154. package/package.json +1 -1
  155. package/dist/index-B68kzBN9.cjs +0 -9
  156. package/dist/vue-ui-donut-o09QqVJO.cjs +0 -1
  157. package/dist/vue-ui-stackbar-BOAmp-no.cjs +0 -6
  158. package/dist/vue-ui-stackbar-C3-hx7VM.js +0 -960
  159. package/dist/vue-ui-xy-DHYbKvBg.cjs +0 -3
@@ -1,960 +0,0 @@
1
- import { computed as x, ref as d, onMounted as Je, watch as qe, nextTick as ne, openBlock as s, createElementBlock as n, normalizeClass as me, normalizeStyle as U, createBlock as Y, createCommentVNode as v, renderSlot as k, createVNode as ue, unref as _, createSlots as Ct, withCtx as z, normalizeProps as D, guardReactiveProps as E, Fragment as h, renderList as m, createElementVNode as H, toDisplayString as S, createTextVNode as _t } from "vue";
2
- import { u as Lt, c as Ze, t as St, a as $t, p as ce, C as ve, b as Mt, o as Tt, e as Ke, g as Nt, d as It, a7 as he, a3 as Qe, D as je, X as Pt, l as Ot, G as et, f as B, x as tt, i as at, y as At, q as Rt, r as Vt } from "./index-DnukYspq.js";
3
- import { u as lt } from "./useNestedProp-CVOQGx-X.js";
4
- import { t as Ft, u as Dt } from "./useResponsive-CoxXLe23.js";
5
- import { u as Et, U as Ht } from "./usePrinter-DVIALk5e.js";
6
- import { S as Bt } from "./Slicer-DIYseEL1.js";
7
- import { _ as Wt } from "./Tooltip-DEAOBZ8h.js";
8
- import { _ as Xt } from "./Title-Cnl9ySNH.js";
9
- import { L as Gt } from "./Legend-BWDoQii_.js";
10
- import Ut from "./vue-ui-accordion-f9NTID9e.js";
11
- import { D as Yt } from "./DataTable-D_w08xos.js";
12
- import Jt from "./vue-ui-skeleton-CXdyOF4T.js";
13
- import { _ as qt } from "./PackageVersion-CH6MCx6T.js";
14
- import { P as Zt } from "./PenAndPaper-BWTR3U2d.js";
15
- import { _ as Kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const Qt = ["id"], jt = ["xmlns", "viewBox"], ea = { key: 0 }, ta = ["id"], aa = ["stop-color"], la = ["stop-color"], oa = ["stop-color"], ra = ["x1", "x2", "y1", "y2", "stroke"], sa = ["x1", "x2", "y1", "y2", "stroke"], ia = ["x1", "x2", "y1", "y2", "stroke"], na = ["x1", "x2", "y1", "y2", "stroke"], ua = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], ca = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], va = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ha = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], da = ["x", "y", "font-size", "fill", "font-weight"], ya = ["transform", "font-size", "fill", "font-weight"], ga = ["x", "y", "font-size", "fill", "font-weight"], ba = { key: 0 }, fa = ["x", "y", "font-size", "font-weight", "fill"], ma = ["x", "y", "font-size", "fill", "font-weight"], pa = { key: 0 }, xa = ["x", "y", "font-size", "font-weight", "fill"], ka = ["x1", "x2", "y1", "y2", "stroke"], wa = ["x", "y", "font-size", "font-weight", "fill"], za = ["x1", "x2", "y1", "y2", "stroke"], Ca = ["font-size", "font-weight", "fill", "text-anchor", "transform"], _a = ["text-anchor", "font-size", "font-weight", "fill", "transform"], La = ["font-size", "font-weight", "fill", "x", "y"], Sa = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], $a = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Ma = {
17
- key: 4,
18
- class: "vue-data-ui-watermark"
19
- }, Ta = ["onClick"], Na = ["innerHTML"], Ia = {
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(de, { expose: ot, emit: pe }) {
37
- const y = de, { vue_ui_stackbar: rt } = Lt(), W = x({
38
- get() {
39
- return !!y.dataset && y.dataset.length;
40
- },
41
- set(a) {
42
- return a;
43
- }
44
- }), X = d(null), ye = d(Ze()), ee = d(!1), xe = d(null), ge = d(""), L = d([]), ke = d(0), we = d(null), ze = d(null), Ce = d(null), _e = d(null), Le = d(0), te = d(!1), J = d(null), q = d(!1), st = d(0), it = d(0), nt = d(0), G = d(null);
45
- Je(() => {
46
- be();
47
- });
48
- const e = x({
49
- get: () => Se(),
50
- set: (a) => a
51
- });
52
- function Se() {
53
- const a = lt({
54
- userConfig: y.config,
55
- defaultConfig: rt
56
- });
57
- let l = {};
58
- return a.theme ? l = {
59
- ...lt({
60
- userConfig: St.vue_ui_stackbar[a.theme] || y.config,
61
- defaultConfig: a
62
- }),
63
- customPalette: $t[a.theme] || ce
64
- } : l = a, y.config && ve(y.config, "style.chart.grid.scale.scaleMin") ? l.style.chart.grid.scale.scaleMin = y.config.style.chart.grid.scale.scaleMin : l.style.chart.grid.scale.scaleMin = null, y.config && ve(y.config, "style.chart.grid.scale.scaleMax") ? l.style.chart.grid.scale.scaleMax = y.config.style.chart.grid.scale.scaleMax : l.style.chart.grid.scale.scaleMax = null, y.config && ve(y.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = y.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, y.config && ve(y.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = y.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, l;
65
- }
66
- qe(() => y.config, (a) => {
67
- e.value = Se(), be(), st.value += 1, it.value += 1, nt.value += 1;
68
- }, { deep: !0 }), qe(() => y.dataset, (a) => {
69
- Oe();
70
- }, { deep: !0 });
71
- const C = d({
72
- dataLabels: {
73
- show: e.value.style.chart.bars.dataLabels.show
74
- },
75
- showTable: e.value.table.show,
76
- showTooltip: e.value.style.chart.tooltip.show
77
- }), { isPrinting: $e, isImaging: Me, generatePdf: Te, generateImage: Ne } = Et({
78
- elementId: `stackbar_${ye.value}`,
79
- fileName: e.value.style.chart.title.text || "vue-ui-stackbar"
80
- }), ae = d({
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
- }), ut = x(() => Mt(e.value.customPalette)), Ie = d(null), Pe = d(null);
90
- Je(() => {
91
- be();
92
- });
93
- function be() {
94
- if (Tt(y.dataset) ? Ke({
95
- componentName: "VueUiStackbar",
96
- type: "dataset"
97
- }) : y.dataset.forEach((a, l) => {
98
- Nt({
99
- datasetObject: a,
100
- requiredAttributes: ["name", "series"]
101
- }).forEach((t) => {
102
- W.value = !1, Ke({
103
- componentName: "VueUiStackbar",
104
- type: "datasetSerieAttribute",
105
- property: t,
106
- index: l
107
- });
108
- });
109
- }), setTimeout(() => {
110
- q.value = !0;
111
- }, 10), e.value.responsive) {
112
- const a = Ft(() => {
113
- q.value = !1;
114
- const { width: l, height: t } = Dt({
115
- chart: X.value,
116
- title: e.value.style.chart.title.text ? we.value : null,
117
- legend: e.value.style.chart.legend.show ? ze.value : null,
118
- slicer: e.value.style.chart.zoom.show && O.value > 1 ? Ce.value : null,
119
- source: _e.value
120
- });
121
- ae.value.width = l, ae.value.height = t, clearTimeout(Pe.value), Pe.value = setTimeout(() => {
122
- q.value = !0;
123
- }, 10);
124
- });
125
- Ie.value = new ResizeObserver(a), Ie.value.observe(X.value.parentNode);
126
- }
127
- Ae();
128
- }
129
- const r = x(() => {
130
- const { height: a, width: l } = ae.value, { right: t } = ae.value.paddingRatio, o = e.value.style.chart.padding.top, i = l - l * t, u = a - e.value.style.chart.padding.bottom, w = e.value.style.chart.padding.left, A = l - w - l * t, R = a - o - e.value.style.chart.padding.bottom;
131
- return {
132
- chartHeight: a,
133
- chartWidth: l,
134
- top: o,
135
- right: i,
136
- bottom: u,
137
- left: w,
138
- width: A,
139
- height: R < 0 ? 0 : R
140
- };
141
- }), P = x(() => y.dataset.map((a, l) => {
142
- const t = It(a.color) || ut.value[l] || ce[l] || ce[l % ce.length];
143
- return {
144
- ...a,
145
- // In distributed mode, all values are converted to positive
146
- series: JSON.parse(JSON.stringify(a.series)).map((o) => e.value.style.chart.bars.distributed ? Math.abs(o) : o),
147
- // Store signs to manage display of neg values in distributed mode
148
- signedSeries: a.series.map((o) => o >= 0 ? 1 : -1),
149
- absoluteIndex: l,
150
- id: Ze(),
151
- color: t
152
- };
153
- })), O = x(() => Math.max(...P.value.filter((a) => !L.value.includes(a.id)).map((a) => a.series.length))), c = d({
154
- start: 0,
155
- end: Math.max(...y.dataset.map((a) => a.series.length))
156
- });
157
- function Oe() {
158
- Ae();
159
- }
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(ct(e.value.style.chart.zoom.endIndex + 1)))) : (c.value = {
162
- start: 0,
163
- end: Math.max(...y.dataset.map((a) => a.series.length))
164
- }, Le.value += 1);
165
- }
166
- function ct(a) {
167
- const l = Math.max(...y.dataset.map((t) => t.series.length));
168
- 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
- const g = x(() => {
171
- let a;
172
- 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;
173
- }), Z = x(() => he(P.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)), vt = x(() => he(P.value.filter((a) => !L.value.includes(a.id)).map((a) => ({
174
- ...a,
175
- series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
176
- }))).slice(c.value.start, c.value.end)), le = x(() => {
177
- const a = P.value.filter((l) => !L.value.includes(l.id));
178
- return {
179
- positive: he(a.map((l) => ({
180
- ...l,
181
- series: l.series.slice(c.value.start, c.value.end).map((t) => t >= 0 ? t : 0)
182
- }))),
183
- negative: he(a.map((l) => ({
184
- ...l,
185
- series: l.series.slice(c.value.start, c.value.end).map((t) => t < 0 ? t : 0)
186
- })))
187
- };
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), 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) ? Qe(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : je(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
190
- return o.ticks.map((i) => ({
191
- zero: r.value.bottom - r.value.height * (Math.abs(o.min) / (o.max + Math.abs(o.min))),
192
- y: r.value.bottom - r.value.height * ((i + Math.abs(o.min)) / (o.max + Math.abs(o.min))),
193
- x: r.value.left - 8,
194
- horizontal_zero: r.value.left + r.value.width * (Math.abs(o.min) / (o.max + Math.abs(o.min))),
195
- horizontal_x: r.value.left + r.value.width * ((i + Math.abs(o.min)) / (o.max + Math.abs(o.min))),
196
- horizontal_y: r.value.bottom - 8,
197
- value: i
198
- }));
199
- }), K = x(() => e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)), p = x(() => {
200
- if (!W.value) return [];
201
- let a = Array(O.value).fill(0), l = Array(O.value).fill(0), t = Array(O.value).fill(0), o = Array(O.value).fill(0);
202
- const i = 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, A = !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) : 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 : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks), { min: R, max: Q } = A, V = Q + (R >= 0 ? 0 : Math.abs(R)) || 1, $ = r.value.height, ie = r.value.width, Ue = N.value[0] ? N.value[0].zero : r.value.bottom, Ye = N.value[0] ? N.value[0].horizontal_zero : r.value.left;
203
- return P.value.filter((j) => !L.value.includes(j.id)).map((j) => {
204
- const I = j.series.slice(c.value.start, c.value.end), bt = j.signedSeries.slice(c.value.start, c.value.end), ft = I.map((b, f) => r.value.left + g.value * f + g.value * e.value.style.chart.bars.gapRatio / 4), mt = I.map((b, f) => r.value.top + g.value * f + g.value * e.value.style.chart.bars.gapRatio / 4), pt = I.map((b, f) => {
205
- const M = e.value.style.chart.bars.distributed ? (b || 0) / Z.value[f] : (b || 0) / V;
206
- let F, T;
207
- return b > 0 ? (T = $ * M, F = Ue - T - a[f], a[f] += T) : (T = $ * M, F = Ue + t[f], t[f] += Math.abs(T)), F;
208
- }), xt = I.map((b, f) => {
209
- const M = e.value.style.chart.bars.distributed ? (b || 0) / Z.value[f] : (b || 0) / V;
210
- let F, T;
211
- return b > 0 ? (T = ie * M, F = Ye + l[f], l[f] += T) : (T = ie * M, F = Ye - Math.abs(T) - o[f], o[f] += Math.abs(T)), F;
212
- }), kt = I.map((b, f) => {
213
- const M = e.value.style.chart.bars.distributed ? (b || 0) / Z.value[f] : (b || 0) / V;
214
- return b > 0 ? $ * M : $ * Math.abs(M);
215
- }), wt = I.map((b, f) => {
216
- const M = e.value.style.chart.bars.distributed ? (b || 0) / Z.value[f] : (b || 0) / V;
217
- return b > 0 ? ie * M : ie * Math.abs(M);
218
- }), zt = I.map((b) => Math.abs(b)).reduce((b, f) => b + f, 0);
219
- return {
220
- ...j,
221
- proportions: I.map((b, f) => e.value.style.chart.bars.distributed ? (b || 0) / Z.value[f] : (b || 0) / zt),
222
- series: I,
223
- signedSeries: bt,
224
- x: ft,
225
- y: pt,
226
- height: kt,
227
- horizontal_width: wt,
228
- horizontal_y: mt,
229
- horizontal_x: xt
230
- };
231
- });
232
- }), Re = x(() => vt.value.map((a, l) => ({
233
- value: a,
234
- sign: a >= 0 ? 1 : -1
235
- })));
236
- function oe(a, l, t, o, i) {
237
- const u = i === -1 && a >= 0 ? -a : a;
238
- return at(
239
- e.value.style.chart.bars.dataLabels.formatter,
240
- u,
241
- B({
242
- p: e.value.style.chart.bars.dataLabels.prefix,
243
- v: u,
244
- s: e.value.style.chart.bars.dataLabels.suffix,
245
- r: e.value.style.chart.bars.dataLabels.rounding
246
- }),
247
- { datapoint: l, seriesIndex: t, datapointIndex: o }
248
- );
249
- }
250
- function Ve(a, l, t, o) {
251
- return at(
252
- e.value.style.chart.bars.dataLabels.formatter,
253
- a,
254
- B({
255
- v: a,
256
- s: "%",
257
- r: e.value.style.chart.bars.dataLabels.rounding
258
- }),
259
- { datapoint: l, seriesIndex: t, datapointIndex: o }
260
- );
261
- }
262
- function Fe(a) {
263
- const l = JSON.parse(JSON.stringify(p.value)).map((t) => ({
264
- name: t.name,
265
- value: t.series[a] === 0 ? 0 : t.series[a] || null,
266
- proportion: t.proportions[a] || null,
267
- color: t.color,
268
- id: t.id
269
- }));
270
- pe("selectDatapoint", { datapoint: l, period: K.value[a] });
271
- }
272
- function De(a) {
273
- J.value = a, ee.value = !0;
274
- const l = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(p.value)).map((i) => ({
275
- name: i.name,
276
- value: i.series[a] === 0 ? 0 : (i.signedSeries[a] === -1 && i.series[a] >= 0 ? -i.series[a] : i.series[a]) || null,
277
- proportion: i.proportions[a] || null,
278
- color: i.color,
279
- id: i.id
280
- })), o = t.map((i) => Math.abs(i.value)).reduce((i, u) => i + u, 0);
281
- if (tt(l) && At(() => l({
282
- seriesIndex: a,
283
- datapoint: t,
284
- series: p.value,
285
- config: e.value
286
- })))
287
- ge.value = l({
288
- seriesIndex: a,
289
- datapoint: t,
290
- series: p.value,
291
- config: e.value
292
- });
293
- else {
294
- const {
295
- showValue: i,
296
- showPercentage: u,
297
- borderColor: w,
298
- roundingValue: A,
299
- roundingPercentage: R
300
- } = e.value.style.chart.tooltip;
301
- let Q = "";
302
- K.value[a] && (Q += `<div style="width:100%;text-align:center;border-bottom:1px solid ${w};padding-bottom:6px;margin-bottom:3px;">${K.value[a]}</div>`);
303
- const V = [
304
- i && u ? "(" : "",
305
- i && u ? ")" : ""
306
- ];
307
- t.reverse().forEach(($) => {
308
- Q += `
309
- <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
310
- <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>
311
- ${$.name}${i || u ? ":" : ""} ${i ? B({
312
- p: e.value.style.chart.bars.dataLabels.prefix,
313
- v: $.value,
314
- s: e.value.style.chart.bars.dataLabels.suffix,
315
- r: A
316
- }) : ""} ${V[0]}${u ? B({
317
- v: isNaN($.value / o) ? 0 : Math.abs($.value) / o * 100,
318
- // Negs are absed to show relative proportion to absolute total. It's opinionated.
319
- s: "%",
320
- r: R
321
- }) : ""}${V[1]}
322
- </div>
323
- `;
324
- }), ge.value = `<div>${Q}</div>`;
325
- }
326
- }
327
- function ht(a) {
328
- te.value = a, ke.value += 1;
329
- }
330
- function Ee() {
331
- C.value.showTable = !C.value.showTable;
332
- }
333
- function He() {
334
- C.value.dataLabels.show = !C.value.dataLabels.show;
335
- }
336
- function Be() {
337
- C.value.showTooltip = !C.value.showTooltip;
338
- }
339
- function dt() {
340
- return p.value;
341
- }
342
- const We = x(() => {
343
- if (p.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
344
- const a = p.value.map(({ name: t, color: o }) => ({
345
- label: t,
346
- color: o
347
- })), l = [];
348
- for (let t = c.value.start; t < c.value.end; t += 1) {
349
- const o = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
350
- P.value.forEach((i) => {
351
- o.push(Number((i.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
352
- }), l.push(o);
353
- }
354
- return { head: a, body: l };
355
- });
356
- function Xe() {
357
- const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = ["", ...We.value.head.map((u) => u.label)], t = We.value.body, o = a.concat([l]).concat(t), i = Rt(o);
358
- Vt({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
359
- }
360
- const re = x(() => {
361
- const a = [""].concat(p.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>');
362
- let l = [];
363
- for (let i = 0; i < O.value; i += 1) {
364
- const u = p.value.map((w) => w.series[i] ?? 0).reduce((w, A) => w + A, 0);
365
- l.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[i] ?? i + 1].concat(p.value.map((w) => (w.series[i] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
366
- }
367
- const t = {
368
- th: {
369
- backgroundColor: e.value.table.th.backgroundColor,
370
- color: e.value.table.th.color,
371
- outline: e.value.table.th.outline
372
- },
373
- td: {
374
- backgroundColor: e.value.table.td.backgroundColor,
375
- color: e.value.table.td.color,
376
- outline: e.value.table.td.outline
377
- },
378
- breakpoint: e.value.table.responsiveBreakpoint
379
- }, o = [e.value.table.columnNames.period].concat(p.value.map((i) => i.name)).concat(e.value.table.columnNames.total);
380
- return { head: a, body: l.slice(0, c.value.end - c.value.start), config: t, colNames: o };
381
- });
382
- function yt(a, l) {
383
- if (pe("selectLegend", p.value.find((t) => t.absoluteIndex === a)), L.value.includes(l.id))
384
- L.value = L.value.filter((t) => t !== l.id);
385
- else {
386
- if (L.value.length === P.value.length - 1) return;
387
- L.value.push(l.id);
388
- }
389
- }
390
- const Ge = x(() => P.value.map((a, l) => ({
391
- ...a,
392
- shape: "square"
393
- })).map((a) => ({
394
- ...a,
395
- opacity: L.value.includes(a.id) ? 0.5 : 1,
396
- segregate: () => yt(a.absoluteIndex, a),
397
- isSegregated: L.value.includes(a.id)
398
- }))), gt = x(() => ({
399
- cy: "stackbar-legend",
400
- backgroundColor: e.value.style.chart.legend.backgroundColor,
401
- color: e.value.style.chart.legend.color,
402
- fontSize: e.value.style.chart.legend.fontSize,
403
- paddingBottom: 12,
404
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
405
- })), se = d(!1);
406
- function fe() {
407
- se.value = !se.value;
408
- }
409
- return ot({
410
- getData: dt,
411
- generatePdf: Te,
412
- generateCsv: Xe,
413
- generateImage: Ne,
414
- toggleTable: Ee,
415
- toggleLabels: He,
416
- toggleTooltip: Be,
417
- toggleAnnotator: fe
418
- }), (a, l) => (s(), n("div", {
419
- id: `stackbar_${ye.value}`,
420
- ref_key: "stackbarChart",
421
- ref: X,
422
- class: me({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": te.value }),
423
- 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%" : ""}`)
424
- }, [
425
- e.value.userOptions.buttons.annotator ? (s(), Y(Zt, {
426
- key: 0,
427
- parent: X.value,
428
- backgroundColor: e.value.style.chart.backgroundColor,
429
- color: e.value.style.chart.color,
430
- active: se.value,
431
- onClose: fe
432
- }, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
433
- k(a.$slots, "userConfig", {}, void 0, !0),
434
- e.value.style.chart.title.text ? (s(), n("div", {
435
- key: 1,
436
- ref_key: "chartTitle",
437
- ref: we,
438
- style: "width:100%;background:transparent;padding-bottom:24px"
439
- }, [
440
- ue(Xt, {
441
- config: {
442
- title: {
443
- cy: "stackbar-title",
444
- ...e.value.style.chart.title
445
- },
446
- subtitle: {
447
- cy: "stackbar-subtitle",
448
- ...e.value.style.chart.title.subtitle
449
- }
450
- }
451
- }, null, 8, ["config"])
452
- ], 512)) : v("", !0),
453
- e.value.userOptions.show && W.value ? (s(), Y(Ht, {
454
- ref: "details",
455
- key: `user_option_${ke.value}`,
456
- backgroundColor: e.value.style.chart.backgroundColor,
457
- color: e.value.style.chart.color,
458
- isPrinting: _($e),
459
- isImaging: _(Me),
460
- uid: ye.value,
461
- hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
462
- hasPdf: e.value.userOptions.buttons.pdf,
463
- hasImg: e.value.userOptions.buttons.img,
464
- hasXls: e.value.userOptions.buttons.csv,
465
- hasTable: e.value.userOptions.buttons.table,
466
- hasLabel: e.value.userOptions.buttons.labels,
467
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
468
- isFullscreen: te.value,
469
- chartElement: X.value,
470
- position: e.value.userOptions.position,
471
- isTooltip: C.value.showTooltip,
472
- titles: { ...e.value.userOptions.buttonTitles },
473
- hasAnnotator: e.value.userOptions.buttons.annotator,
474
- isAnnotation: se.value,
475
- onToggleFullscreen: ht,
476
- onGeneratePdf: _(Te),
477
- onGenerateCsv: Xe,
478
- onGenerateImage: _(Ne),
479
- onToggleTable: Ee,
480
- onToggleLabels: He,
481
- onToggleTooltip: Be,
482
- onToggleAnnotator: fe
483
- }, Ct({ _: 2 }, [
484
- a.$slots.optionTooltip ? {
485
- name: "optionTooltip",
486
- fn: z(() => [
487
- k(a.$slots, "optionTooltip", {}, void 0, !0)
488
- ]),
489
- key: "0"
490
- } : void 0,
491
- a.$slots.optionPdf ? {
492
- name: "optionPdf",
493
- fn: z(() => [
494
- k(a.$slots, "optionPdf", {}, void 0, !0)
495
- ]),
496
- key: "1"
497
- } : void 0,
498
- a.$slots.optionCsv ? {
499
- name: "optionCsv",
500
- fn: z(() => [
501
- k(a.$slots, "optionCsv", {}, void 0, !0)
502
- ]),
503
- key: "2"
504
- } : void 0,
505
- a.$slots.optionImg ? {
506
- name: "optionImg",
507
- fn: z(() => [
508
- k(a.$slots, "optionImg", {}, void 0, !0)
509
- ]),
510
- key: "3"
511
- } : void 0,
512
- a.$slots.optionTable ? {
513
- name: "optionTable",
514
- fn: z(() => [
515
- k(a.$slots, "optionTable", {}, void 0, !0)
516
- ]),
517
- key: "4"
518
- } : void 0,
519
- a.$slots.optionLabels ? {
520
- name: "optionLabels",
521
- fn: z(() => [
522
- k(a.$slots, "optionLabels", {}, void 0, !0)
523
- ]),
524
- key: "5"
525
- } : void 0,
526
- a.$slots.optionFullscreen ? {
527
- name: "optionFullscreen",
528
- fn: z(({ toggleFullscreen: t, isFullscreen: o }) => [
529
- k(a.$slots, "optionFullscreen", D(E({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
530
- ]),
531
- key: "6"
532
- } : void 0,
533
- a.$slots.optionAnnotator ? {
534
- name: "optionAnnotator",
535
- fn: z(({ toggleAnnotator: t, isAnnotator: o }) => [
536
- k(a.$slots, "optionAnnotator", D(E({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
537
- ]),
538
- key: "7"
539
- } : void 0
540
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
541
- W.value ? (s(), n("svg", {
542
- key: 3,
543
- xmlns: _(Pt),
544
- viewBox: `0 0 ${r.value.chartWidth <= 0 ? 10 : r.value.chartWidth} ${r.value.chartHeight <= 0 ? 10 : r.value.chartHeight}`,
545
- style: U(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
546
- }, [
547
- ue(qt),
548
- e.value.style.chart.bars.gradient.show ? (s(), n("defs", ea, [
549
- (s(!0), n(h, null, m(p.value, (t, o) => (s(), n("linearGradient", {
550
- id: `gradient_${t.id}`,
551
- x1: "0%",
552
- y1: "0%",
553
- x2: "0%",
554
- y2: "100%"
555
- }, [
556
- H("stop", {
557
- offset: "0%",
558
- "stop-color": t.color
559
- }, null, 8, aa),
560
- H("stop", {
561
- offset: "61.8%",
562
- "stop-color": _(Ot)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
563
- }, null, 8, la),
564
- H("stop", {
565
- offset: "100%",
566
- "stop-color": t.color
567
- }, null, 8, oa)
568
- ], 8, ta))), 256))
569
- ])) : v("", !0),
570
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 1 }, m(N.value, (t, o) => (s(), n("line", {
571
- x1: r.value.left,
572
- x2: r.value.right,
573
- y1: t.y,
574
- y2: t.y,
575
- stroke: e.value.style.chart.grid.x.axisColor,
576
- "stroke-width": 1,
577
- "stroke-linecap": "round"
578
- }, null, 8, ra))), 256)) : v("", !0),
579
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 2 }, m(c.value.end - c.value.start + 1, (t, o) => (s(), n("line", {
580
- x1: r.value.left,
581
- x2: r.value.right,
582
- y1: r.value.top + g.value * o,
583
- y2: r.value.top + g.value * o,
584
- stroke: e.value.style.chart.grid.y.axisColor,
585
- "stroke-width": 1,
586
- "stroke-linecap": "round"
587
- }, null, 8, sa))), 256)) : v("", !0),
588
- e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 3 }, m(c.value.end - c.value.start + 1, (t, o) => (s(), n("line", {
589
- x1: r.value.left + g.value * o,
590
- x2: r.value.left + g.value * o,
591
- y1: r.value.top,
592
- y2: r.value.bottom,
593
- stroke: e.value.style.chart.grid.y.axisColor,
594
- "stroke-width": 1,
595
- "stroke-linecap": "round"
596
- }, null, 8, ia))), 256)) : v("", !0),
597
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 4 }, m(N.value, (t, o) => (s(), n("line", {
598
- x1: t.horizontal_x,
599
- x2: t.horizontal_x,
600
- y1: r.value.top,
601
- y2: r.value.bottom,
602
- stroke: e.value.style.chart.grid.x.axisColor,
603
- "stroke-width": 1,
604
- "stroke-linecap": "round"
605
- }, null, 8, na))), 256)) : v("", !0),
606
- (s(!0), n(h, null, m(p.value, (t, o) => (s(), n("g", null, [
607
- e.value.orientation === "vertical" ? (s(!0), n(h, { key: 0 }, m(t.x, (i, u) => (s(), n("rect", {
608
- x: i,
609
- y: t.y[u] < 0 ? 0 : t.y[u],
610
- height: t.height[u] < 0 ? 1e-4 : t.height[u],
611
- 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,
612
- width: g.value * (1 - e.value.style.chart.bars.gapRatio / 2),
613
- fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
614
- stroke: e.value.style.chart.backgroundColor,
615
- "stroke-width": e.value.style.chart.bars.strokeWidth,
616
- "stroke-linecap": "round",
617
- "stroke-linejoin": "round",
618
- class: me({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": q.value })
619
- }, null, 10, ua))), 256)) : (s(!0), n(h, { key: 1 }, m(t.horizontal_x, (i, u) => (s(), n("rect", {
620
- x: i,
621
- y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
622
- width: t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u],
623
- 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,
624
- height: g.value * (1 - e.value.style.chart.bars.gapRatio / 2),
625
- fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
626
- stroke: e.value.style.chart.backgroundColor,
627
- "stroke-width": e.value.style.chart.bars.strokeWidth,
628
- "stroke-linecap": "round",
629
- "stroke-linejoin": "round",
630
- class: me({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": q.value })
631
- }, null, 10, ca))), 256))
632
- ]))), 256)),
633
- e.value.style.chart.grid.x.showAxis ? (s(), n("line", {
634
- key: 5,
635
- x1: r.value.left,
636
- x2: r.value.right,
637
- y1: r.value.bottom,
638
- y2: r.value.bottom,
639
- stroke: e.value.style.chart.grid.x.axisColor,
640
- "stroke-width": e.value.style.chart.grid.x.axisThickness,
641
- "stroke-linecap": "round",
642
- "stroke-linejoin": "round"
643
- }, null, 8, va)) : v("", !0),
644
- e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), n("line", {
645
- key: 6,
646
- x1: r.value.left,
647
- x2: r.value.left,
648
- y1: r.value.top,
649
- y2: r.value.bottom,
650
- stroke: e.value.style.chart.grid.y.axisColor,
651
- "stroke-width": e.value.style.chart.grid.y.axisThickness,
652
- "stroke-linecap": "round",
653
- "stroke-linejoin": "round"
654
- }, null, 8, ha)) : v("", !0),
655
- e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), n("text", {
656
- key: 7,
657
- x: r.value.left + r.value.width / 2,
658
- y: r.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
659
- "font-size": e.value.style.chart.grid.x.axisName.fontSize,
660
- fill: e.value.style.chart.grid.x.axisName.color,
661
- "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
662
- "text-anchor": "middle"
663
- }, S(e.value.style.chart.grid.x.axisName.text), 9, da)) : v("", !0),
664
- e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), n("text", {
665
- key: 8,
666
- 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)`,
667
- "font-size": e.value.style.chart.grid.y.axisName.fontSize,
668
- fill: e.value.style.chart.grid.y.axisName.color,
669
- "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
670
- "text-anchor": "middle"
671
- }, S(e.value.style.chart.grid.y.axisName.text), 9, ya)) : v("", !0),
672
- C.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), n(h, { key: 9 }, [
673
- (s(!0), n(h, null, m(p.value, (t, o) => (s(), n("g", null, [
674
- (s(!0), n(h, null, m(t.x, (i, u) => (s(), n("text", {
675
- x: i + g.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
676
- y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
677
- "font-size": e.value.style.chart.bars.dataLabels.fontSize,
678
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? _(et)(t.color) : e.value.style.chart.bars.dataLabels.color,
679
- "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
680
- "text-anchor": "middle"
681
- }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ve(t.proportions[u] * 100, t, o, u) : oe(t.series[u], t, o, u, t.signedSeries[u])), 9, ga))), 256))
682
- ]))), 256)),
683
- e.value.style.chart.bars.totalValues.show && p.value.length > 1 ? (s(), n("g", ba, [
684
- (s(!0), n(h, null, m(Re.value, (t, o) => (s(), n("text", {
685
- x: r.value.left + g.value * o + g.value / 2,
686
- y: r.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
687
- "text-anchor": "middle",
688
- "font-size": e.value.style.chart.bars.totalValues.fontSize,
689
- "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
690
- fill: e.value.style.chart.bars.totalValues.color
691
- }, S(oe(t.value, t, o, t.sign)), 9, fa))), 256))
692
- ])) : v("", !0)
693
- ], 64)) : v("", !0),
694
- C.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), n(h, { key: 10 }, [
695
- (s(!0), n(h, null, m(p.value, (t, o) => (s(), n("g", null, [
696
- (s(!0), n(h, null, m(t.horizontal_x, (i, u) => (s(), n("text", {
697
- x: i + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
698
- y: t.horizontal_y[u] + g.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
699
- "font-size": e.value.style.chart.bars.dataLabels.fontSize,
700
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? _(et)(t.color) : e.value.style.chart.bars.dataLabels.color,
701
- "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
702
- "text-anchor": "middle"
703
- }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ve(t.proportions[u] * 100, t, o, u) : oe(t.series[u], t, o, u, t.signedSeries[u])), 9, ma))), 256))
704
- ]))), 256)),
705
- e.value.style.chart.bars.totalValues.show && p.value.length > 1 ? (s(), n("g", pa, [
706
- (s(!0), n(h, null, m(Re.value, (t, o) => (s(), n("text", {
707
- x: r.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
708
- y: r.value.top + g.value * o + g.value / 2,
709
- "text-anchor": "start",
710
- "font-size": e.value.style.chart.bars.totalValues.fontSize,
711
- "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
712
- fill: e.value.style.chart.bars.totalValues.color
713
- }, S(oe(t.value, t, o, t.sign)), 9, xa))), 256))
714
- ])) : v("", !0)
715
- ], 64)) : v("", !0),
716
- e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (s(), n(h, { key: 11 }, [
717
- (s(!0), n(h, null, m(N.value, (t, o) => (s(), n("line", {
718
- x1: r.value.left,
719
- x2: r.value.left - 6,
720
- y1: t.y,
721
- y2: t.y,
722
- stroke: e.value.style.chart.grid.x.axisColor,
723
- "stroke-width": 1
724
- }, null, 8, ka))), 256)),
725
- (s(!0), n(h, null, m(N.value, (t, o) => (s(), n("text", {
726
- x: t.x,
727
- y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
728
- "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
729
- "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
730
- fill: e.value.style.chart.grid.y.axisLabels.color,
731
- "text-anchor": "end"
732
- }, S(_(B)({
733
- p: e.value.style.chart.bars.dataLabels.prefix,
734
- v: t.value,
735
- s: e.value.style.chart.bars.dataLabels.suffix,
736
- r: e.value.style.chart.grid.y.axisLabels.rounding
737
- })), 9, wa))), 256))
738
- ], 64)) : v("", !0),
739
- e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), n(h, { key: 12 }, [
740
- (s(!0), n(h, null, m(N.value, (t, o) => (s(), n("line", {
741
- x1: t.horizontal_x,
742
- x2: t.horizontal_x,
743
- y1: r.value.bottom,
744
- y2: r.value.bottom + 6,
745
- stroke: e.value.style.chart.grid.x.axisColor,
746
- "stroke-width": 1,
747
- "stroke-linecap": "round"
748
- }, null, 8, za))), 256)),
749
- (s(!0), n(h, null, m(N.value, (t, o) => (s(), n("text", {
750
- "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
751
- "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
752
- fill: e.value.style.chart.grid.y.axisLabels.color,
753
- "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
754
- 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})`
755
- }, S(_(B)({
756
- p: e.value.style.chart.bars.dataLabels.prefix,
757
- v: t.value,
758
- s: e.value.style.chart.bars.dataLabels.suffix,
759
- r: e.value.style.chart.grid.y.axisLabels.rounding
760
- })), 9, Ca))), 256))
761
- ], 64)) : v("", !0),
762
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 13 }, m(K.value, (t, o) => (s(), n("text", {
763
- "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
764
- "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
765
- "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
766
- fill: e.value.style.chart.grid.x.timeLabels.color,
767
- transform: `translate(${r.value.left + g.value * o + g.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})`
768
- }, S(t), 9, _a))), 256)) : v("", !0),
769
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 14 }, m(K.value, (t, o) => (s(), n("text", {
770
- "text-anchor": "end",
771
- "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
772
- "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
773
- fill: e.value.style.chart.grid.y.axisLabels.color,
774
- x: r.value.left - 8,
775
- y: r.value.top + g.value * o + g.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3
776
- }, S(t), 9, La))), 256)) : v("", !0),
777
- C.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 15 }, m(c.value.end - c.value.start, (t, o) => (s(), n("rect", {
778
- x: r.value.left + o * g.value,
779
- y: r.value.top,
780
- width: g.value,
781
- height: r.value.height < 0 ? 0 : r.value.height,
782
- onClick: (i) => Fe(o),
783
- onMouseenter: (i) => De(o),
784
- onMouseleave: l[0] || (l[0] = (i) => {
785
- J.value = null, ee.value = !1;
786
- }),
787
- fill: o === J.value ? e.value.style.chart.highlighter.color : "transparent",
788
- style: U({ opacity: e.value.style.chart.highlighter.opacity / 100 })
789
- }, null, 44, Sa))), 256)) : v("", !0),
790
- C.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 16 }, m(c.value.end - c.value.start, (t, o) => (s(), n("rect", {
791
- x: r.value.left,
792
- y: r.value.top + o * g.value,
793
- width: r.value.width < 0 ? 0 : r.value.width,
794
- height: g.value,
795
- onClick: (i) => Fe(o),
796
- onMouseenter: (i) => De(o),
797
- onMouseleave: l[1] || (l[1] = (i) => {
798
- J.value = null, ee.value = !1;
799
- }),
800
- fill: o === J.value ? e.value.style.chart.highlighter.color : "transparent",
801
- style: U({ opacity: e.value.style.chart.highlighter.opacity / 100 })
802
- }, null, 44, $a))), 256)) : v("", !0),
803
- k(a.$slots, "svg", D(E({ ...r.value })), void 0, !0)
804
- ], 12, jt)) : v("", !0),
805
- a.$slots.watermark ? (s(), n("div", Ma, [
806
- k(a.$slots, "watermark", D(E({ isPrinting: _($e) || _(Me) })), void 0, !0)
807
- ])) : v("", !0),
808
- W.value ? v("", !0) : (s(), Y(Jt, {
809
- key: 5,
810
- config: {
811
- type: "bar",
812
- style: {
813
- backgroundColor: e.value.style.chart.backgroundColor,
814
- bar: {
815
- axis: {
816
- color: "#CCCCCC"
817
- },
818
- color: "#CCCCCC"
819
- }
820
- }
821
- }
822
- }, null, 8, ["config"])),
823
- H("div", {
824
- ref_key: "chartSlicer",
825
- ref: Ce,
826
- style: U(`width:100%;background:${e.value.style.chart.backgroundColor}`),
827
- "data-html2canvas-ignore": ""
828
- }, [
829
- e.value.style.chart.zoom.show && O.value > 1 ? (s(), Y(Bt, {
830
- ref_key: "slicerComponent",
831
- ref: G,
832
- key: `slicer_${Le.value}`,
833
- background: e.value.style.chart.zoom.color,
834
- borderColor: e.value.style.chart.backgroundColor,
835
- fontSize: e.value.style.chart.zoom.fontSize,
836
- useResetSlot: e.value.style.chart.zoom.useResetSlot,
837
- labelLeft: e.value.style.chart.grid.x.timeLabels.values[c.value.start] ? e.value.style.chart.grid.x.timeLabels.values[c.value.start] : "",
838
- 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] : "",
839
- textColor: e.value.style.chart.color,
840
- inputColor: e.value.style.chart.zoom.color,
841
- selectColor: e.value.style.chart.zoom.highlightColor,
842
- max: Math.max(...de.dataset.map((t) => t.series.length)),
843
- min: 0,
844
- valueStart: c.value.start,
845
- valueEnd: c.value.end,
846
- start: c.value.start,
847
- "onUpdate:start": l[2] || (l[2] = (t) => c.value.start = t),
848
- end: c.value.end,
849
- "onUpdate:end": l[3] || (l[3] = (t) => c.value.end = t),
850
- refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
851
- refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...de.dataset.map((t) => t.series.length)),
852
- onReset: Oe
853
- }, {
854
- "reset-action": z(({ reset: t }) => [
855
- k(a.$slots, "reset-action", D(E({ reset: t })), void 0, !0)
856
- ]),
857
- _: 3
858
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint"])) : v("", !0)
859
- ], 4),
860
- ue(Wt, {
861
- show: C.value.showTooltip && ee.value,
862
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
863
- color: e.value.style.chart.tooltip.color,
864
- fontSize: e.value.style.chart.tooltip.fontSize,
865
- borderRadius: e.value.style.chart.tooltip.borderRadius,
866
- borderColor: e.value.style.chart.tooltip.borderColor,
867
- borderWidth: e.value.style.chart.tooltip.borderWidth,
868
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
869
- position: e.value.style.chart.tooltip.position,
870
- offsetY: e.value.style.chart.tooltip.offsetY,
871
- parent: X.value,
872
- content: ge.value,
873
- isFullscreen: te.value,
874
- isCustom: _(tt)(e.value.style.chart.tooltip.customFormat)
875
- }, {
876
- "tooltip-before": z(() => [
877
- k(a.$slots, "tooltip-before", D(E({ ...xe.value })), void 0, !0)
878
- ]),
879
- "tooltip-after": z(() => [
880
- k(a.$slots, "tooltip-after", D(E({ ...xe.value })), void 0, !0)
881
- ]),
882
- _: 3
883
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
884
- H("div", {
885
- ref_key: "chartLegend",
886
- ref: ze
887
- }, [
888
- e.value.style.chart.legend.show && W.value ? (s(), Y(Gt, {
889
- key: 0,
890
- legendSet: Ge.value,
891
- config: gt.value,
892
- onClickMarker: l[4] || (l[4] = ({ legend: t }) => t.segregate())
893
- }, {
894
- item: z(({ legend: t }) => [
895
- H("div", {
896
- onClick: (o) => t.segregate(),
897
- style: U(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
898
- }, S(t.name), 13, Ta)
899
- ]),
900
- _: 1
901
- }, 8, ["legendSet", "config"])) : k(a.$slots, "legend", {
902
- key: 1,
903
- legend: Ge.value
904
- }, void 0, !0)
905
- ], 512),
906
- a.$slots.source ? (s(), n("div", {
907
- key: 6,
908
- ref_key: "source",
909
- ref: _e,
910
- dir: "auto"
911
- }, [
912
- k(a.$slots, "source", {}, void 0, !0)
913
- ], 512)) : v("", !0),
914
- c.value.end - c.value.start < 200 ? (s(), Y(Ut, {
915
- key: 7,
916
- hideDetails: "",
917
- config: {
918
- open: C.value.showTable,
919
- maxHeight: 1e4,
920
- body: {
921
- backgroundColor: e.value.style.chart.backgroundColor,
922
- color: e.value.style.chart.color
923
- },
924
- head: {
925
- backgroundColor: e.value.style.chart.backgroundColor,
926
- color: e.value.style.chart.color
927
- }
928
- }
929
- }, {
930
- content: z(() => [
931
- ue(Yt, {
932
- colNames: re.value.colNames,
933
- head: re.value.head,
934
- body: re.value.body,
935
- config: re.value.config,
936
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
937
- onClose: l[5] || (l[5] = (t) => C.value.showTable = !1)
938
- }, {
939
- th: z(({ th: t }) => [
940
- H("div", { innerHTML: t }, null, 8, Na)
941
- ]),
942
- td: z(({ td: t }) => [
943
- _t(S(isNaN(Number(t)) ? t : _(B)({
944
- p: e.value.style.chart.bars.dataLabels.prefix,
945
- v: t,
946
- s: e.value.style.chart.bars.dataLabels.suffix,
947
- r: e.value.table.td.roundingValue
948
- })), 1)
949
- ]),
950
- _: 1
951
- }, 8, ["colNames", "head", "body", "config", "title"])
952
- ]),
953
- _: 1
954
- }, 8, ["config"])) : v("", !0)
955
- ], 14, Qt));
956
- }
957
- }, Ja = /* @__PURE__ */ Kt(Ia, [["__scopeId", "data-v-965785b9"]]);
958
- export {
959
- Ja as default
960
- };