vue-data-ui 2.4.61 → 2.4.63

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 (157) hide show
  1. package/dist/{Arrow-C4JCfYUu.cjs → Arrow-BpZBF7Ak.cjs} +1 -1
  2. package/dist/{Arrow-NyYxjtAV.js → Arrow-nOy23OOV.js} +1 -1
  3. package/dist/{BaseIcon-a81b_5b0.js → BaseIcon-CrqNvGTs.js} +1 -1
  4. package/dist/{BaseIcon-B1zKYJGk.cjs → BaseIcon-rzIvDo2Q.cjs} +1 -1
  5. package/dist/{DataTable-CcW8SHH2.js → DataTable-BBh7_ttv.js} +2 -2
  6. package/dist/{DataTable-BVwnM0tQ.cjs → DataTable-CCJGHIVo.cjs} +1 -1
  7. package/dist/{Legend-fpW6iFgA.cjs → Legend-CqilK5CI.cjs} +1 -1
  8. package/dist/{Legend-Cq1rcFzv.js → Legend-WOejx9sp.js} +1 -1
  9. package/dist/{PackageVersion-LRbiiLp0.js → PackageVersion-dR8EUy_P.js} +1 -1
  10. package/dist/{PackageVersion-B7-YDa6h.cjs → PackageVersion-eZ5Dmuid.cjs} +1 -1
  11. package/dist/{PenAndPaper-BCjJ-td_.js → PenAndPaper-CrXlqi9I.js} +3 -3
  12. package/dist/{PenAndPaper-JkRknDt7.cjs → PenAndPaper-D_w2N2qM.cjs} +1 -1
  13. package/dist/{Shape-hFNcMth4.js → Shape-CwmKWYzq.js} +1 -1
  14. package/dist/{Shape-QZcWXoYb.cjs → Shape-qkkvCKyp.cjs} +1 -1
  15. package/dist/Slicer-DvdU-uf8.js +484 -0
  16. package/dist/Slicer-oNEtv1s3.cjs +1 -0
  17. package/dist/{Title-CQVviDIQ.cjs → Title-CoNtoGH9.cjs} +1 -1
  18. package/dist/{Title-Zm0LCGPS.js → Title-obqvTiXP.js} +1 -1
  19. package/dist/{Tooltip-CoahRzyE.js → Tooltip-BK-ACGDE.js} +1 -1
  20. package/dist/{Tooltip-DZ1uTqBW.cjs → Tooltip-Dz4wVJkz.cjs} +1 -1
  21. package/dist/index-ChOY3hT9.cjs +9 -0
  22. package/dist/{index-CG_OTzik.js → index-Z_vzxZTo.js} +8 -3
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +5 -0
  25. package/dist/types/vue-data-ui.d.ts +5 -0
  26. package/dist/{useNestedProp-BZZvruew.js → useNestedProp-Buhi5uyL.js} +1 -1
  27. package/dist/{useNestedProp--db71Vbu.cjs → useNestedProp-CA8PjFJH.cjs} +1 -1
  28. package/dist/{usePrinter-CxBwzZkb.js → usePrinter-Ck0oiMlt.js} +1 -1
  29. package/dist/{usePrinter-D0LQ1CyY.cjs → usePrinter-c3c7_uAW.cjs} +1 -1
  30. package/dist/{vue-data-ui-C4A5zIHI.js → vue-data-ui-BGng_wXI.js} +60 -60
  31. package/dist/{vue-data-ui-CUyuYhwT.cjs → vue-data-ui-CihfnXFF.cjs} +1 -1
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-DAh8koX4.js → vue-ui-3d-bar-B7k4LzL1.js} +9 -9
  35. package/dist/{vue-ui-3d-bar-DKiYqw0u.cjs → vue-ui-3d-bar-BsxFEhMN.cjs} +1 -1
  36. package/dist/{vue-ui-accordion-C2IbGLRv.js → vue-ui-accordion-CV2-8b1O.js} +3 -3
  37. package/dist/{vue-ui-accordion-B7VpkrPR.cjs → vue-ui-accordion-CZ8AlriN.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-me4GgQNb.js → vue-ui-age-pyramid-Bc4DaLIy.js} +10 -10
  39. package/dist/{vue-ui-age-pyramid-BmqvzA-d.cjs → vue-ui-age-pyramid-C1crnKk7.cjs} +1 -1
  40. package/dist/{vue-ui-annotator-XOzj9Bpg.js → vue-ui-annotator-DLbAn_Mz.js} +1 -1
  41. package/dist/{vue-ui-annotator-Bg9Juc1l.cjs → vue-ui-annotator-DNKcAaEh.cjs} +1 -1
  42. package/dist/{vue-ui-bullet-BsHk8Y0E.cjs → vue-ui-bullet-CEO3AsWC.cjs} +1 -1
  43. package/dist/{vue-ui-bullet-D1ElgM95.js → vue-ui-bullet-ClODxNrk.js} +8 -8
  44. package/dist/{vue-ui-candlestick-Ba4yv9ZM.cjs → vue-ui-candlestick-B00zQB4B.cjs} +2 -2
  45. package/dist/{vue-ui-candlestick-DLhwvS6l.js → vue-ui-candlestick-DI7t6jqz.js} +75 -73
  46. package/dist/{vue-ui-carousel-table-cEaGm232.js → vue-ui-carousel-table-5jXlkslq.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-DSoV6GBf.cjs → vue-ui-carousel-table-Bm2D_0pZ.cjs} +1 -1
  48. package/dist/{vue-ui-chestnut-DCURZY6w.js → vue-ui-chestnut-CRZsXRUH.js} +8 -8
  49. package/dist/{vue-ui-chestnut-D6D5Zr4r.cjs → vue-ui-chestnut-DP6-Gie6.cjs} +1 -1
  50. package/dist/{vue-ui-cursor-CqDpaKei.cjs → vue-ui-cursor-BGe0gZK8.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-B9eASI3M.js → vue-ui-cursor-DA8bsmEc.js} +2 -2
  52. package/dist/{vue-ui-dashboard-B2rw-G-R.js → vue-ui-dashboard-BZD-6Pz7.js} +43 -43
  53. package/dist/vue-ui-dashboard-D2v4oSiB.cjs +1 -0
  54. package/dist/{vue-ui-digits-BAG_spWA.js → vue-ui-digits-CKvrL9Wc.js} +2 -2
  55. package/dist/{vue-ui-digits-CagcmtFs.cjs → vue-ui-digits-DC8ZuHOj.cjs} +1 -1
  56. package/dist/{vue-ui-donut-5jgX6ZLE.cjs → vue-ui-donut-D5mDCNky.cjs} +1 -1
  57. package/dist/{vue-ui-donut-BJl5Isgy.js → vue-ui-donut-DDayabSz.js} +11 -11
  58. package/dist/{vue-ui-donut-evolution-CnqdY8LW.cjs → vue-ui-donut-evolution-AlCGLfzy.cjs} +1 -1
  59. package/dist/{vue-ui-donut-evolution-DMhkt7mf.js → vue-ui-donut-evolution-CBsxmrTO.js} +127 -125
  60. package/dist/{vue-ui-dumbbell-Be0B-LgS.cjs → vue-ui-dumbbell-B9cELz3z.cjs} +1 -1
  61. package/dist/{vue-ui-dumbbell-Dg3mYtw3.js → vue-ui-dumbbell-DB7jNjQP.js} +10 -10
  62. package/dist/{vue-ui-flow-BKyhoEjt.cjs → vue-ui-flow-CCM51fzQ.cjs} +1 -1
  63. package/dist/{vue-ui-flow-Cq8-bQr_.js → vue-ui-flow-Cw1Vfk_e.js} +9 -9
  64. package/dist/{vue-ui-funnel-DFk4PKvj.cjs → vue-ui-funnel--4JhwVwW.cjs} +1 -1
  65. package/dist/{vue-ui-funnel-DHFbd45-.js → vue-ui-funnel-CU72MuGg.js} +9 -9
  66. package/dist/{vue-ui-galaxy-Y1gaT5UE.cjs → vue-ui-galaxy-BJrkygeR.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-rYHDLCt9.js → vue-ui-galaxy-BKInqdOk.js} +11 -11
  68. package/dist/{vue-ui-gauge-Ba14Ybvo.js → vue-ui-gauge-DBPB11Eo.js} +7 -7
  69. package/dist/{vue-ui-gauge-Bmuasq4t.cjs → vue-ui-gauge-Uo_1rs0Z.cjs} +1 -1
  70. package/dist/{vue-ui-gizmo-CuMablqV.js → vue-ui-gizmo-BSDdKP_q.js} +3 -3
  71. package/dist/{vue-ui-gizmo-CF11m0cq.cjs → vue-ui-gizmo-D7hHruEs.cjs} +1 -1
  72. package/dist/{vue-ui-heatmap-BekQJ_O8.cjs → vue-ui-heatmap-CysVyR78.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-B0Ry1OTW.js → vue-ui-heatmap-DhoDd6I_.js} +10 -10
  74. package/dist/{vue-ui-history-plot-DkJdYX5N.js → vue-ui-history-plot-C1IcR5tn.js} +11 -11
  75. package/dist/{vue-ui-history-plot-BTVojhgQ.cjs → vue-ui-history-plot-D97p0C8E.cjs} +1 -1
  76. package/dist/{vue-ui-kpi-BQwuGH5_.js → vue-ui-kpi-C43FJnkn.js} +3 -3
  77. package/dist/{vue-ui-kpi-BLreWPBQ.cjs → vue-ui-kpi-Cu2PoWud.cjs} +1 -1
  78. package/dist/{vue-ui-mini-loader-C-61eqcR.cjs → vue-ui-mini-loader-Bdr0862F.cjs} +1 -1
  79. package/dist/{vue-ui-mini-loader-DOGNwMhX.js → vue-ui-mini-loader-DgPnsWaW.js} +2 -2
  80. package/dist/{vue-ui-molecule-BRM8s9SD.cjs → vue-ui-molecule-CEJzQ7RY.cjs} +1 -1
  81. package/dist/{vue-ui-molecule-DHBRDC8t.js → vue-ui-molecule-CvxtHapj.js} +11 -11
  82. package/dist/{vue-ui-mood-radar-dfN44AZx.js → vue-ui-mood-radar-B6EmzBGf.js} +11 -11
  83. package/dist/{vue-ui-mood-radar-MXQgj0yp.cjs → vue-ui-mood-radar-DIn_Oars.cjs} +1 -1
  84. package/dist/{vue-ui-nested-donuts-C-nDnw6v.js → vue-ui-nested-donuts-D4pAkaZH.js} +11 -11
  85. package/dist/{vue-ui-nested-donuts-BAtJgYOg.cjs → vue-ui-nested-donuts-c2pJF_ex.cjs} +1 -1
  86. package/dist/{vue-ui-onion-D8OvxeHr.js → vue-ui-onion-98XPhnVF.js} +11 -11
  87. package/dist/{vue-ui-onion-EO8dPufp.cjs → vue-ui-onion-DHOhnx2s.cjs} +1 -1
  88. package/dist/{vue-ui-parallel-coordinate-plot-Cxl3bY0H.cjs → vue-ui-parallel-coordinate-plot-CrVVxflg.cjs} +1 -1
  89. package/dist/{vue-ui-parallel-coordinate-plot-3BNXcNsy.js → vue-ui-parallel-coordinate-plot-DLOtv_NO.js} +12 -12
  90. package/dist/{vue-ui-quadrant-BOReLkSm.js → vue-ui-quadrant-DWM3zE7x.js} +12 -12
  91. package/dist/{vue-ui-quadrant-DiU08Q5X.cjs → vue-ui-quadrant-DbDQtcxz.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-D4UZCrzj.js → vue-ui-quick-chart-CFVAisN4.js} +214 -212
  93. package/dist/{vue-ui-quick-chart-BRERkFkI.cjs → vue-ui-quick-chart-DP0hSesI.cjs} +3 -3
  94. package/dist/{vue-ui-radar-DduWN5dL.cjs → vue-ui-radar-CDhwXWfs.cjs} +1 -1
  95. package/dist/{vue-ui-radar-C2ePOuIW.js → vue-ui-radar-CNBN5GF9.js} +12 -12
  96. package/dist/{vue-ui-rating-BYfD1N57.js → vue-ui-rating-CEfg8aGb.js} +2 -2
  97. package/dist/{vue-ui-rating-BtzMW1EB.cjs → vue-ui-rating-cHW6zh7i.cjs} +1 -1
  98. package/dist/{vue-ui-relation-circle-BKjs6DR1.js → vue-ui-relation-circle-92LvehQf.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-DhLvWetz.cjs → vue-ui-relation-circle-olDAN0lU.cjs} +1 -1
  100. package/dist/{vue-ui-rings-BNwvxf2K.js → vue-ui-rings-Bp0WLW4E.js} +11 -11
  101. package/dist/{vue-ui-rings-CzZyxYeS.cjs → vue-ui-rings-BwvTmRCE.cjs} +1 -1
  102. package/dist/{vue-ui-scatter-thYwTZhC.js → vue-ui-scatter-6wDrQ5fP.js} +12 -12
  103. package/dist/{vue-ui-scatter-D3Cl-rFL.cjs → vue-ui-scatter-BvdgtUHX.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-9y8wYnc3.js → vue-ui-screenshot-CIAlcAvq.js} +1 -1
  105. package/dist/{vue-ui-screenshot-DFHP0ThC.cjs → vue-ui-screenshot-ChB7VFUO.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-B6hyEcxy.js → vue-ui-skeleton-BMRe3SzB.js} +3 -3
  107. package/dist/{vue-ui-skeleton-D56sSIBO.cjs → vue-ui-skeleton-DlnPFtb4.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-B-4Fqh2J.js → vue-ui-smiley-CN5FWJ1G.js} +2 -2
  109. package/dist/{vue-ui-smiley-BsWAahKv.cjs → vue-ui-smiley-DkrQ5gDD.cjs} +1 -1
  110. package/dist/{vue-ui-spark-trend-MAq0VlUq.cjs → vue-ui-spark-trend-BlOdnAb4.cjs} +1 -1
  111. package/dist/{vue-ui-spark-trend-DJcpI-ZY.js → vue-ui-spark-trend-MNkadB41.js} +5 -5
  112. package/dist/{vue-ui-sparkbar-DZqE8qN3.js → vue-ui-sparkbar-CBPO2mUa.js} +4 -4
  113. package/dist/{vue-ui-sparkbar-DMlzP8ZM.cjs → vue-ui-sparkbar-ChTbwY11.cjs} +1 -1
  114. package/dist/{vue-ui-sparkgauge-CvOP9U7-.cjs → vue-ui-sparkgauge-B7yvQfZW.cjs} +1 -1
  115. package/dist/{vue-ui-sparkgauge-B-kRhMYK.js → vue-ui-sparkgauge-VLkIev3p.js} +4 -4
  116. package/dist/{vue-ui-sparkhistogram-EOeboT7_.js → vue-ui-sparkhistogram-DbOxX4Ks.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram-DjUvwlYU.cjs → vue-ui-sparkhistogram-mYU6RAK_.cjs} +1 -1
  118. package/dist/vue-ui-sparkline-DO496Tk5.cjs +1 -0
  119. package/dist/{vue-ui-sparkline-BgB5km-f.js → vue-ui-sparkline-D_-31O2S.js} +117 -114
  120. package/dist/{vue-ui-sparkstackbar-DSTz24kS.cjs → vue-ui-sparkstackbar-KaFMlIAL.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-DGihKtGC.js → vue-ui-sparkstackbar-gW7rpJmQ.js} +5 -5
  122. package/dist/{vue-ui-stackbar-m-5t4Otk.cjs → vue-ui-stackbar-CYHsSzEK.cjs} +2 -2
  123. package/dist/{vue-ui-stackbar-DrJ3au6w.js → vue-ui-stackbar-vIyS6oag.js} +80 -78
  124. package/dist/{vue-ui-strip-plot-4uC5MD3e.js → vue-ui-strip-plot-4o1zAxG_.js} +11 -11
  125. package/dist/{vue-ui-strip-plot-Yy2DIoMg.cjs → vue-ui-strip-plot-MlP5pDNx.cjs} +1 -1
  126. package/dist/{vue-ui-table-DCe_BTaV.cjs → vue-ui-table-B0PFrkLI.cjs} +1 -1
  127. package/dist/{vue-ui-table-DN498EB2.js → vue-ui-table-DWNrd7zM.js} +1 -1
  128. package/dist/{vue-ui-table-heatmap-PvopeKyW.cjs → vue-ui-table-heatmap-4k74Ux7O.cjs} +1 -1
  129. package/dist/{vue-ui-table-heatmap-CMVmFTPi.js → vue-ui-table-heatmap-BSKCS8Lq.js} +4 -4
  130. package/dist/{vue-ui-table-sparkline-DpXxi6al.js → vue-ui-table-sparkline-BrImSTh0.js} +5 -5
  131. package/dist/{vue-ui-table-sparkline-BtUV0t4I.cjs → vue-ui-table-sparkline-DCCogh2-.cjs} +1 -1
  132. package/dist/{vue-ui-thermometer-CB38vNj3.js → vue-ui-thermometer-DHEoT4yB.js} +7 -7
  133. package/dist/{vue-ui-thermometer-B9YyPrvt.cjs → vue-ui-thermometer-DswmMXiU.cjs} +1 -1
  134. package/dist/{vue-ui-timer-BmFFjMb9.js → vue-ui-timer-BNFihNgK.js} +5 -5
  135. package/dist/{vue-ui-timer-D6GsFvTy.cjs → vue-ui-timer-Tv94CYqL.cjs} +1 -1
  136. package/dist/{vue-ui-tiremarks--CrAFWU2.cjs → vue-ui-tiremarks-B2kuKLe-.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-CJ2y_2T1.js → vue-ui-tiremarks-DzaUfiET.js} +7 -7
  138. package/dist/{vue-ui-treemap-HpoEGWKV.cjs → vue-ui-treemap-Dmt3RPF2.cjs} +1 -1
  139. package/dist/{vue-ui-treemap-Z3t2YGoE.js → vue-ui-treemap-qKZJcEYe.js} +11 -11
  140. package/dist/{vue-ui-vertical-bar-B_x2w4L8.js → vue-ui-vertical-bar-CMXtevyE.js} +11 -11
  141. package/dist/{vue-ui-vertical-bar-LdxXCg3W.cjs → vue-ui-vertical-bar-CQ_qEJ_O.cjs} +1 -1
  142. package/dist/{vue-ui-waffle-BKrNIOiM.js → vue-ui-waffle-DjJoezg-.js} +11 -11
  143. package/dist/{vue-ui-waffle-BDkOv8M4.cjs → vue-ui-waffle-fWQvVbAH.cjs} +1 -1
  144. package/dist/{vue-ui-wheel-DgzJQSl_.cjs → vue-ui-wheel-2qIHyZe1.cjs} +1 -1
  145. package/dist/{vue-ui-wheel-BCs1b_hk.js → vue-ui-wheel-DOrWSWt6.js} +7 -7
  146. package/dist/{vue-ui-word-cloud-BHm3q6eZ.cjs → vue-ui-word-cloud-Tgg5jCE6.cjs} +1 -1
  147. package/dist/{vue-ui-word-cloud-CO47t4OJ.js → vue-ui-word-cloud-UPPKGsXt.js} +10 -10
  148. package/dist/{vue-ui-xy-c7YLqedj.cjs → vue-ui-xy-CMde0Kq-.cjs} +3 -3
  149. package/dist/{vue-ui-xy-canvas-CY1JxJvm.cjs → vue-ui-xy-canvas-Dm3YUQ3g.cjs} +2 -2
  150. package/dist/{vue-ui-xy-canvas-Q6mKl1B-.js → vue-ui-xy-canvas-paHHRtqs.js} +227 -225
  151. package/dist/{vue-ui-xy-RDecyidx.js → vue-ui-xy-zCJv-Vao.js} +35 -33
  152. package/package.json +1 -1
  153. package/dist/Slicer-DGn72_0M.js +0 -423
  154. package/dist/Slicer-DMYxCNLb.cjs +0 -1
  155. package/dist/index-V6tl1xgQ.cjs +0 -9
  156. package/dist/vue-ui-dashboard-Q-ILTgqP.cjs +0 -1
  157. package/dist/vue-ui-sparkline-BS_ZXXei.cjs +0 -1
@@ -1,20 +1,20 @@
1
1
  import { computed as w, ref as y, onMounted as je, watch as et, nextTick as ne, openBlock as s, createElementBlock as i, normalizeClass as xe, normalizeStyle as B, unref as p, createBlock as J, createCommentVNode as h, renderSlot as k, createVNode as ue, createSlots as Mt, withCtx as C, normalizeProps as O, guardReactiveProps as P, Fragment as v, renderList as f, createElementVNode as U, toDisplayString as S, createTextVNode as Tt } from "vue";
2
- import { u as Nt, c as tt, t as It, a as Ot, p as ce, C as ve, b as Pt, o as At, e as at, g as Vt, d as Rt, a7 as he, a3 as lt, D as rt, X as Et, l as Ft, G as ot, f as W, x as st, i as it, y as Dt, q as Ht, r as Bt } from "./index-CG_OTzik.js";
3
- import { u as nt } from "./useNestedProp-BZZvruew.js";
2
+ import { u as Nt, c as tt, t as It, a as Ot, p as ce, C as ve, b as Pt, o as Rt, e as at, g as At, d as Vt, a7 as he, a3 as lt, D as rt, X as Dt, l as Et, G as ot, f as W, x as st, i as it, y as Ft, q as Ht, r as Bt } from "./index-Z_vzxZTo.js";
3
+ import { u as nt } from "./useNestedProp-Buhi5uyL.js";
4
4
  import { t as Ut, u as Wt } from "./useResponsive-CoxXLe23.js";
5
- import { u as Yt, U as Xt } from "./usePrinter-CxBwzZkb.js";
6
- import { S as Gt } from "./Slicer-DGn72_0M.js";
7
- import { _ as Jt } from "./Tooltip-CoahRzyE.js";
8
- import { _ as qt } from "./Title-Zm0LCGPS.js";
9
- import { L as Zt } from "./Legend-Cq1rcFzv.js";
10
- import Kt from "./vue-ui-accordion-C2IbGLRv.js";
11
- import { D as Qt } from "./DataTable-CcW8SHH2.js";
12
- import jt from "./vue-ui-skeleton-B6hyEcxy.js";
13
- import { _ as ea } from "./PackageVersion-LRbiiLp0.js";
14
- import { P as ta } from "./PenAndPaper-BCjJ-td_.js";
5
+ import { u as Yt, U as Xt } from "./usePrinter-Ck0oiMlt.js";
6
+ import { S as Gt } from "./Slicer-DvdU-uf8.js";
7
+ import { _ as Jt } from "./Tooltip-BK-ACGDE.js";
8
+ import { _ as qt } from "./Title-obqvTiXP.js";
9
+ import { L as Zt } from "./Legend-WOejx9sp.js";
10
+ import Kt from "./vue-ui-accordion-CV2-8b1O.js";
11
+ import { D as Qt } from "./DataTable-BBh7_ttv.js";
12
+ import jt from "./vue-ui-skeleton-BMRe3SzB.js";
13
+ import { _ as ea } from "./PackageVersion-dR8EUy_P.js";
14
+ import { P as ta } from "./PenAndPaper-CrXlqi9I.js";
15
15
  import { u as aa } from "./useUserOptionState-BIvW1Kz7.js";
16
16
  import { _ as la } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"], ia = { key: 1 }, na = ["id"], ua = ["stop-color"], ca = ["stop-color"], va = ["stop-color"], ha = ["x1", "x2", "y1", "y2", "stroke"], da = ["x1", "x2", "y1", "y2", "stroke"], ya = ["x1", "x2", "y1", "y2", "stroke"], ga = ["x1", "x2", "y1", "y2", "stroke"], ba = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], fa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xa = ["x", "y", "font-size", "fill", "font-weight"], ka = ["transform", "font-size", "fill", "font-weight"], wa = ["x", "y", "font-size", "fill", "font-weight"], za = { key: 0 }, Ca = ["x", "y", "font-size", "font-weight", "fill"], La = ["x", "y", "font-size", "fill", "font-weight"], _a = { key: 0 }, Sa = ["x", "y", "font-size", "font-weight", "fill"], $a = ["x1", "x2", "y1", "y2", "stroke"], Ma = ["x", "y", "font-size", "font-weight", "fill"], Ta = ["x1", "x2", "y1", "y2", "stroke"], Na = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Ia = { key: 0 }, Oa = { key: 1 }, Pa = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Aa = { key: 0 }, Va = { key: 1 }, Ra = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Ea = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Fa = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Da = {
17
+ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"], ia = { key: 1 }, na = ["id"], ua = ["stop-color"], ca = ["stop-color"], va = ["stop-color"], ha = ["x1", "x2", "y1", "y2", "stroke"], da = ["x1", "x2", "y1", "y2", "stroke"], ya = ["x1", "x2", "y1", "y2", "stroke"], ga = ["x1", "x2", "y1", "y2", "stroke"], ba = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], fa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xa = ["x", "y", "font-size", "fill", "font-weight"], ka = ["transform", "font-size", "fill", "font-weight"], wa = ["x", "y", "font-size", "fill", "font-weight"], za = { key: 0 }, Ca = ["x", "y", "font-size", "font-weight", "fill"], La = ["x", "y", "font-size", "fill", "font-weight"], _a = { key: 0 }, Sa = ["x", "y", "font-size", "font-weight", "fill"], $a = ["x1", "x2", "y1", "y2", "stroke"], Ma = ["x", "y", "font-size", "font-weight", "fill"], Ta = ["x1", "x2", "y1", "y2", "stroke"], Na = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Ia = { key: 0 }, Oa = { key: 1 }, Pa = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Ra = { key: 0 }, Aa = { key: 1 }, Va = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Da = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Ea = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Fa = {
18
18
  key: 4,
19
19
  class: "vue-data-ui-watermark"
20
20
  }, Ha = ["onClick"], Ba = ["innerHTML"], Ua = {
@@ -67,7 +67,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
67
67
  et(() => g.config, (a) => {
68
68
  e.value = Te(), fe.value = !e.value.showOnChartHover, me(), vt.value += 1, ht.value += 1, dt.value += 1;
69
69
  }, { deep: !0 }), et(() => g.dataset, (a) => {
70
- Re();
70
+ Ve();
71
71
  }, { deep: !0 });
72
72
  const L = y({
73
73
  dataLabels: {
@@ -87,16 +87,16 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
87
87
  bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
88
88
  left: e.value.style.chart.padding.left / e.value.style.chart.width
89
89
  }
90
- }), yt = w(() => Pt(e.value.customPalette)), Ae = y(null), Ve = y(null);
90
+ }), yt = w(() => Pt(e.value.customPalette)), Re = y(null), Ae = y(null);
91
91
  je(() => {
92
92
  me();
93
93
  });
94
94
  function me() {
95
- if (At(g.dataset) ? at({
95
+ if (Rt(g.dataset) ? at({
96
96
  componentName: "VueUiStackbar",
97
97
  type: "dataset"
98
98
  }) : g.dataset.forEach((a, l) => {
99
- Vt({
99
+ At({
100
100
  datasetObject: a,
101
101
  requiredAttributes: ["name", "series"]
102
102
  }).forEach((t) => {
@@ -116,19 +116,19 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
116
116
  chart: X.value,
117
117
  title: e.value.style.chart.title.text ? ze.value : null,
118
118
  legend: e.value.style.chart.legend.show ? Ce.value : null,
119
- slicer: e.value.style.chart.zoom.show && V.value > 1 ? Le.value : null,
119
+ slicer: e.value.style.chart.zoom.show && A.value > 1 ? Le.value : null,
120
120
  source: _e.value
121
121
  });
122
- ae.value.width = l, ae.value.height = t, clearTimeout(Ve.value), Ve.value = setTimeout(() => {
122
+ ae.value.width = l, ae.value.height = t, clearTimeout(Ae.value), Ae.value = setTimeout(() => {
123
123
  Z.value = !0;
124
124
  }, 10);
125
125
  });
126
- Ae.value = new ResizeObserver(a), Ae.value.observe(X.value.parentNode);
126
+ Re.value = new ResizeObserver(a), Re.value.observe(X.value.parentNode);
127
127
  }
128
- Ee();
128
+ De();
129
129
  }
130
130
  const o = w(() => {
131
- const { height: a, width: l } = ae.value, { right: t } = ae.value.paddingRatio, r = e.value.style.chart.padding.top, n = l - l * t, u = a - e.value.style.chart.padding.bottom, z = e.value.style.chart.padding.left, E = l - z - l * t, F = a - r - e.value.style.chart.padding.bottom;
131
+ const { height: a, width: l } = ae.value, { right: t } = ae.value.paddingRatio, r = e.value.style.chart.padding.top, n = l - l * t, u = a - e.value.style.chart.padding.bottom, z = e.value.style.chart.padding.left, D = l - z - l * t, E = a - r - e.value.style.chart.padding.bottom;
132
132
  return {
133
133
  chartHeight: a,
134
134
  chartWidth: l,
@@ -136,11 +136,11 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
136
136
  right: n,
137
137
  bottom: u,
138
138
  left: z,
139
- width: E,
140
- height: F < 0 ? 0 : F
139
+ width: D,
140
+ height: E < 0 ? 0 : E
141
141
  };
142
- }), A = w(() => g.dataset.map((a, l) => {
143
- const t = Rt(a.color) || yt.value[l] || ce[l] || ce[l % ce.length];
142
+ }), R = w(() => g.dataset.map((a, l) => {
143
+ const t = Vt(a.color) || yt.value[l] || ce[l] || ce[l % ce.length];
144
144
  return {
145
145
  ...a,
146
146
  // In distributed mode, all values are converted to positive
@@ -151,14 +151,14 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
151
151
  id: tt(),
152
152
  color: t
153
153
  };
154
- })), V = w(() => Math.max(...A.value.filter((a) => !_.value.includes(a.id)).map((a) => a.series.length))), c = y({
154
+ })), A = w(() => Math.max(...R.value.filter((a) => !_.value.includes(a.id)).map((a) => a.series.length))), c = y({
155
155
  start: 0,
156
156
  end: Math.max(...g.dataset.map((a) => a.series.length))
157
157
  });
158
- function Re() {
159
- Ee();
158
+ function Ve() {
159
+ De();
160
160
  }
161
- async function Ee() {
161
+ async function De() {
162
162
  (e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && G.value ? (e.value.style.chart.zoom.startIndex !== null && (await ne(), await ne(), G.value && G.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await ne(), await ne(), G.value && G.value.setEndValue(gt(e.value.style.chart.zoom.endIndex + 1)))) : (c.value = {
163
163
  start: 0,
164
164
  end: Math.max(...g.dataset.map((a) => a.series.length))
@@ -171,11 +171,11 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
171
171
  const d = w(() => {
172
172
  let a;
173
173
  return e.value.orientation === "vertical" ? a = o.value.width / (c.value.end - c.value.start) : a = o.value.height / (c.value.end - c.value.start), a <= 0 ? 0 : a;
174
- }), K = w(() => he(A.value.filter((a) => !_.value.includes(a.id))).slice(c.value.start, c.value.end)), bt = w(() => he(A.value.filter((a) => !_.value.includes(a.id)).map((a) => ({
174
+ }), K = w(() => he(R.value.filter((a) => !_.value.includes(a.id))).slice(c.value.start, c.value.end)), bt = w(() => he(R.value.filter((a) => !_.value.includes(a.id)).map((a) => ({
175
175
  ...a,
176
176
  series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
177
177
  }))).slice(c.value.start, c.value.end)), le = w(() => {
178
- const a = A.value.filter((l) => !_.value.includes(l.id));
178
+ const a = R.value.filter((l) => !_.value.includes(l.id));
179
179
  return {
180
180
  positive: he(a.map((l) => ({
181
181
  ...l,
@@ -197,9 +197,9 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
197
197
  horizontal_y: o.value.bottom - 8,
198
198
  value: n
199
199
  }));
200
- }), R = w(() => {
200
+ }), V = w(() => {
201
201
  const a = [];
202
- for (let l = 0; l < V.value; l += 1)
202
+ for (let l = 0; l < A.value; l += 1)
203
203
  a.push({
204
204
  text: e.value.style.chart.grid.x.timeLabels.values[l] || String(l),
205
205
  absoluteIndex: l
@@ -207,22 +207,22 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
207
207
  return a.slice(c.value.start, c.value.end);
208
208
  }), x = w(() => {
209
209
  if (!Y.value) return [];
210
- let a = Array(V.value).fill(0), l = Array(V.value).fill(0), t = Array(V.value).fill(0), r = Array(V.value).fill(0);
211
- const n = Math.max(...le.value.positive) || 0, u = Math.min(...le.value.negative), z = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, E = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? lt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : z > 0 ? 0 : z, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : n < 0 ? 0 : n, e.value.style.chart.grid.scale.ticks) : rt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : z > 0 ? 0 : z, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : n < 0 ? 0 : n, e.value.style.chart.grid.scale.ticks), { min: F, max: Q } = E, D = Q + (F >= 0 ? 0 : Math.abs(F)) || 1, $ = o.value.height, ie = o.value.width, Ke = N.value[0] ? N.value[0].zero : o.value.bottom, Qe = N.value[0] ? N.value[0].horizontal_zero : o.value.left;
212
- return A.value.filter((j) => !_.value.includes(j.id)).map((j) => {
210
+ let a = Array(A.value).fill(0), l = Array(A.value).fill(0), t = Array(A.value).fill(0), r = Array(A.value).fill(0);
211
+ const n = Math.max(...le.value.positive) || 0, u = Math.min(...le.value.negative), z = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, D = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? lt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : z > 0 ? 0 : z, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : n < 0 ? 0 : n, e.value.style.chart.grid.scale.ticks) : rt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : z > 0 ? 0 : z, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : n < 0 ? 0 : n, e.value.style.chart.grid.scale.ticks), { min: E, max: Q } = D, F = Q + (E >= 0 ? 0 : Math.abs(E)) || 1, $ = o.value.height, ie = o.value.width, Ke = N.value[0] ? N.value[0].zero : o.value.bottom, Qe = N.value[0] ? N.value[0].horizontal_zero : o.value.left;
212
+ return R.value.filter((j) => !_.value.includes(j.id)).map((j) => {
213
213
  const I = j.series.slice(c.value.start, c.value.end), kt = j.signedSeries.slice(c.value.start, c.value.end), wt = I.map((b, m) => o.value.left + d.value * m + d.value * e.value.style.chart.bars.gapRatio / 4), zt = I.map((b, m) => o.value.top + d.value * m + d.value * e.value.style.chart.bars.gapRatio / 4), Ct = I.map((b, m) => {
214
- const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / D;
214
+ const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / F;
215
215
  let H, T;
216
216
  return b > 0 ? (T = $ * M, H = Ke - T - a[m], a[m] += T) : (T = $ * M, H = Ke + t[m], t[m] += Math.abs(T)), H;
217
217
  }), Lt = I.map((b, m) => {
218
- const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / D;
218
+ const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / F;
219
219
  let H, T;
220
220
  return b > 0 ? (T = ie * M, H = Qe + l[m], l[m] += T) : (T = ie * M, H = Qe - Math.abs(T) - r[m], r[m] += Math.abs(T)), H;
221
221
  }), _t = I.map((b, m) => {
222
- const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / D;
222
+ const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / F;
223
223
  return b > 0 ? $ * M : $ * Math.abs(M);
224
224
  }), St = I.map((b, m) => {
225
- const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / D;
225
+ const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / F;
226
226
  return b > 0 ? ie * M : ie * Math.abs(M);
227
227
  }), $t = I.map((b) => Math.abs(b)).reduce((b, m) => b + m, 0);
228
228
  return {
@@ -238,7 +238,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
238
238
  horizontal_x: Lt
239
239
  };
240
240
  });
241
- }), Fe = w(() => bt.value.map((a, l) => ({
241
+ }), Ee = w(() => bt.value.map((a, l) => ({
242
242
  value: a,
243
243
  sign: a >= 0 ? 1 : -1
244
244
  })));
@@ -256,7 +256,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
256
256
  { datapoint: l, seriesIndex: t, datapointIndex: r }
257
257
  );
258
258
  }
259
- function De(a, l, t, r) {
259
+ function Fe(a, l, t, r) {
260
260
  return it(
261
261
  e.value.style.chart.bars.dataLabels.formatter,
262
262
  a,
@@ -276,7 +276,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
276
276
  color: t.color,
277
277
  id: t.id
278
278
  }));
279
- ye("selectDatapoint", { datapoint: l, period: R.value[a] });
279
+ ye("selectDatapoint", { datapoint: l, period: V.value[a] });
280
280
  }
281
281
  function Be(a) {
282
282
  q.value = a, ee.value = !0;
@@ -287,7 +287,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
287
287
  color: n.color,
288
288
  id: n.id
289
289
  })), r = t.map((n) => Math.abs(n.value)).reduce((n, u) => n + u, 0);
290
- if (st(l) && Dt(() => l({
290
+ if (st(l) && Ft(() => l({
291
291
  seriesIndex: a,
292
292
  datapoint: t,
293
293
  series: x.value,
@@ -304,12 +304,12 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
304
304
  showValue: n,
305
305
  showPercentage: u,
306
306
  borderColor: z,
307
- roundingValue: E,
308
- roundingPercentage: F
307
+ roundingValue: D,
308
+ roundingPercentage: E
309
309
  } = e.value.style.chart.tooltip;
310
310
  let Q = "";
311
- R.value[a] && R.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (Q += `<div style="width:100%;text-align:center;border-bottom:1px solid ${z};padding-bottom:6px;margin-bottom:3px;">${R.value[a].text}</div>`);
312
- const D = [
311
+ V.value[a] && V.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (Q += `<div style="width:100%;text-align:center;border-bottom:1px solid ${z};padding-bottom:6px;margin-bottom:3px;">${V.value[a].text}</div>`);
312
+ const F = [
313
313
  n && u ? "(" : "",
314
314
  n && u ? ")" : ""
315
315
  ];
@@ -321,13 +321,13 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
321
321
  p: e.value.style.chart.bars.dataLabels.prefix,
322
322
  v: $.value,
323
323
  s: e.value.style.chart.bars.dataLabels.suffix,
324
- r: E
325
- }) : ""} ${D[0]}${u ? W({
324
+ r: D
325
+ }) : ""} ${F[0]}${u ? W({
326
326
  v: isNaN($.value / r) ? 0 : Math.abs($.value) / r * 100,
327
327
  // Negs are absed to show relative proportion to absolute total. It's opinionated.
328
328
  s: "%",
329
- r: F
330
- }) : ""}${D[1]}
329
+ r: E
330
+ }) : ""}${F[1]}
331
331
  </div>
332
332
  `;
333
333
  }), be.value = `<div>${Q}</div>`;
@@ -356,7 +356,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
356
356
  })), l = [];
357
357
  for (let t = c.value.start; t < c.value.end; t += 1) {
358
358
  const r = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
359
- A.value.forEach((n) => {
359
+ R.value.forEach((n) => {
360
360
  r.push(Number((n.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
361
361
  }), l.push(r);
362
362
  }
@@ -369,8 +369,8 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
369
369
  const oe = w(() => {
370
370
  const a = [""].concat(x.value.map((n) => n.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
371
371
  let l = [];
372
- for (let n = 0; n < V.value; n += 1) {
373
- const u = x.value.map((z) => z.series[n] ?? 0).reduce((z, E) => z + E, 0);
372
+ for (let n = 0; n < A.value; n += 1) {
373
+ const u = x.value.map((z) => z.series[n] ?? 0).reduce((z, D) => z + D, 0);
374
374
  l.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[n] ?? n + 1].concat(x.value.map((z) => (z.series[n] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
375
375
  }
376
376
  const t = {
@@ -392,11 +392,11 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
392
392
  if (ye("selectLegend", x.value.find((t) => t.absoluteIndex === a)), _.value.includes(l.id))
393
393
  _.value = _.value.filter((t) => t !== l.id);
394
394
  else {
395
- if (_.value.length === A.value.length - 1) return;
395
+ if (_.value.length === R.value.length - 1) return;
396
396
  _.value.push(l.id);
397
397
  }
398
398
  }
399
- const Je = w(() => A.value.map((a, l) => ({
399
+ const Je = w(() => R.value.map((a, l) => ({
400
400
  ...a,
401
401
  shape: "square"
402
402
  })).map((a) => ({
@@ -571,7 +571,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
571
571
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
572
572
  Y.value ? (s(), i("svg", {
573
573
  key: 3,
574
- xmlns: p(Et),
574
+ xmlns: p(Dt),
575
575
  viewBox: `0 0 ${o.value.chartWidth <= 0 ? 10 : o.value.chartWidth} ${o.value.chartHeight <= 0 ? 10 : o.value.chartHeight}`,
576
576
  style: B(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
577
577
  }, [
@@ -602,7 +602,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
602
602
  }, null, 8, ua),
603
603
  U("stop", {
604
604
  offset: "61.8%",
605
- "stop-color": p(Ft)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
605
+ "stop-color": p(Et)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
606
606
  }, null, 8, ca),
607
607
  U("stop", {
608
608
  offset: "100%",
@@ -723,11 +723,11 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
723
723
  fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? p(ot)(t.color) : e.value.style.chart.bars.dataLabels.color,
724
724
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
725
725
  "text-anchor": "middle"
726
- }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? De(t.proportions[u] * 100, t, r, u) : re(t.series[u], t, r, u, t.signedSeries[u])), 9, wa)) : h("", !0)
726
+ }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Fe(t.proportions[u] * 100, t, r, u) : re(t.series[u], t, r, u, t.signedSeries[u])), 9, wa)) : h("", !0)
727
727
  ], 64))), 256))
728
728
  ]))), 256)),
729
729
  e.value.style.chart.bars.totalValues.show && x.value.length > 1 ? (s(), i("g", za, [
730
- (s(!0), i(v, null, f(Fe.value, (t, r) => (s(), i(v, null, [
730
+ (s(!0), i(v, null, f(Ee.value, (t, r) => (s(), i(v, null, [
731
731
  !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), i("text", {
732
732
  key: 0,
733
733
  x: o.value.left + d.value * r + d.value / 2,
@@ -751,11 +751,11 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
751
751
  fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? p(ot)(t.color) : e.value.style.chart.bars.dataLabels.color,
752
752
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
753
753
  "text-anchor": "middle"
754
- }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? De(t.proportions[u] * 100, t, r, u) : re(t.series[u], t, r, u, t.signedSeries[u])), 9, La)) : h("", !0)
754
+ }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Fe(t.proportions[u] * 100, t, r, u) : re(t.series[u], t, r, u, t.signedSeries[u])), 9, La)) : h("", !0)
755
755
  ], 64))), 256))
756
756
  ]))), 256)),
757
757
  e.value.style.chart.bars.totalValues.show && x.value.length > 1 ? (s(), i("g", _a, [
758
- (s(!0), i(v, null, f(Fe.value, (t, r) => (s(), i(v, null, [
758
+ (s(!0), i(v, null, f(Ee.value, (t, r) => (s(), i(v, null, [
759
759
  !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), i("text", {
760
760
  key: 0,
761
761
  x: o.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
@@ -816,7 +816,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
816
816
  ], 64)) : h("", !0),
817
817
  e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(), i(v, { key: 14 }, [
818
818
  a.$slots["time-label"] ? (s(), i("g", Ia, [
819
- (s(!0), i(v, null, f(R.value, (t, r) => (s(), i("g", null, [
819
+ (s(!0), i(v, null, f(V.value, (t, r) => (s(), i("g", null, [
820
820
  k(a.$slots, "time-label", O(P({
821
821
  x: o.value.left + d.value * r + d.value / 2,
822
822
  y: o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
@@ -830,7 +830,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
830
830
  })), void 0, !0)
831
831
  ]))), 256))
832
832
  ])) : (s(), i("g", Oa, [
833
- (s(!0), i(v, null, f(R.value, (t, r) => (s(), i("text", {
833
+ (s(!0), i(v, null, f(V.value, (t, r) => (s(), i("text", {
834
834
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
835
835
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
836
836
  "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
@@ -844,8 +844,8 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
844
844
  ]))
845
845
  ], 64)) : h("", !0),
846
846
  e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(), i(v, { key: 15 }, [
847
- a.$slots["time-label"] ? (s(), i("g", Aa, [
848
- (s(!0), i(v, null, f(R.value, (t, r) => (s(), i("g", null, [
847
+ a.$slots["time-label"] ? (s(), i("g", Ra, [
848
+ (s(!0), i(v, null, f(V.value, (t, r) => (s(), i("g", null, [
849
849
  k(a.$slots, "time-label", O(P({
850
850
  x: o.value.left - 8,
851
851
  y: o.value.top + d.value * r + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
@@ -858,8 +858,8 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
858
858
  show: !0
859
859
  })), void 0, !0)
860
860
  ]))), 256))
861
- ])) : (s(), i("g", Va, [
862
- (s(!0), i(v, null, f(R.value, (t, r) => (s(), i("text", {
861
+ ])) : (s(), i("g", Aa, [
862
+ (s(!0), i(v, null, f(V.value, (t, r) => (s(), i("text", {
863
863
  "text-anchor": "end",
864
864
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
865
865
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
@@ -870,7 +870,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
870
870
  cursor: "pointer"
871
871
  },
872
872
  onClick: () => qe(t, r)
873
- }, S(t.text), 9, Ra))), 256))
873
+ }, S(t.text), 9, Va))), 256))
874
874
  ]))
875
875
  ], 64)) : h("", !0),
876
876
  L.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), i(v, { key: 16 }, f(c.value.end - c.value.start, (t, r) => (s(), i("rect", {
@@ -885,7 +885,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
885
885
  }),
886
886
  fill: r === q.value ? e.value.style.chart.highlighter.color : "transparent",
887
887
  style: B({ opacity: e.value.style.chart.highlighter.opacity / 100 })
888
- }, null, 44, Ea))), 256)) : h("", !0),
888
+ }, null, 44, Da))), 256)) : h("", !0),
889
889
  L.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), i(v, { key: 17 }, f(c.value.end - c.value.start, (t, r) => (s(), i("rect", {
890
890
  x: o.value.left,
891
891
  y: o.value.top + r * d.value,
@@ -898,10 +898,10 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
898
898
  }),
899
899
  fill: r === q.value ? e.value.style.chart.highlighter.color : "transparent",
900
900
  style: B({ opacity: e.value.style.chart.highlighter.opacity / 100 })
901
- }, null, 44, Fa))), 256)) : h("", !0),
901
+ }, null, 44, Ea))), 256)) : h("", !0),
902
902
  k(a.$slots, "svg", O(P({ ...o.value })), void 0, !0)
903
903
  ], 12, oa)) : h("", !0),
904
- a.$slots.watermark ? (s(), i("div", Da, [
904
+ a.$slots.watermark ? (s(), i("div", Fa, [
905
905
  k(a.$slots, "watermark", O(P({ isPrinting: p(Ne) || p(Ie) })), void 0, !0)
906
906
  ])) : h("", !0),
907
907
  Y.value ? h("", !0) : (s(), J(jt, {
@@ -925,7 +925,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
925
925
  style: B(`width:100%;background:${e.value.style.chart.backgroundColor}`),
926
926
  "data-html2canvas-ignore": ""
927
927
  }, [
928
- e.value.style.chart.zoom.show && V.value > 1 ? (s(), J(Gt, {
928
+ e.value.style.chart.zoom.show && A.value > 1 ? (s(), J(Gt, {
929
929
  ref_key: "slicerComponent",
930
930
  ref: G,
931
931
  key: `slicer_${Se.value}`,
@@ -948,13 +948,15 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
948
948
  "onUpdate:end": l[3] || (l[3] = (t) => c.value.end = t),
949
949
  refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
950
950
  refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...de.dataset.map((t) => t.series.length)),
951
- onReset: Re
951
+ enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
952
+ enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
953
+ onReset: Ve
952
954
  }, {
953
955
  "reset-action": C(({ reset: t }) => [
954
956
  k(a.$slots, "reset-action", O(P({ reset: t })), void 0, !0)
955
957
  ]),
956
958
  _: 3
957
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint"])) : h("", !0)
959
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : h("", !0)
958
960
  ], 4),
959
961
  ue(Jt, {
960
962
  show: L.value.showTooltip && ee.value,
@@ -1053,7 +1055,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
1053
1055
  }, 8, ["config"])) : h("", !0)
1054
1056
  ], 46, ra));
1055
1057
  }
1056
- }, sl = /* @__PURE__ */ la(Ua, [["__scopeId", "data-v-4cb01f17"]]);
1058
+ }, sl = /* @__PURE__ */ la(Ua, [["__scopeId", "data-v-004effc3"]]);
1057
1059
  export {
1058
1060
  sl as default
1059
1061
  };
@@ -1,16 +1,16 @@
1
1
  import { computed as d, ref as n, watch as Ge, onMounted as Ue, onBeforeUnmount as Ve, openBlock as s, createElementBlock as u, normalizeClass as F, normalizeStyle as B, unref as v, createBlock as T, createCommentVNode as c, createSlots as Ee, withCtx as f, renderSlot as p, normalizeProps as M, guardReactiveProps as W, createVNode as $e, Fragment as g, renderList as C, createElementVNode as k, toDisplayString as L, mergeProps as He, createTextVNode as Re, nextTick as Be } from "vue";
2
- import { u as Xe, c as ee, t as je, a as Ye, p as A, o as Je, e as te, g as _e, b as qe, d as Te, v as Ke, D as Qe, f as X, X as Ze, i as le, l as et, h as tt, x as Le, y as lt, q as at, r as ot, F as st } from "./index-CG_OTzik.js";
2
+ import { u as Xe, c as ee, t as je, a as Ye, p as A, o as Je, e as te, g as _e, b as qe, d as Te, v as Ke, D as Qe, f as X, X as Ze, i as le, l as et, h as tt, x as Le, y as lt, q as at, r as ot, F as st } from "./index-Z_vzxZTo.js";
3
3
  import { t as rt, u as ut } from "./useResponsive-CoxXLe23.js";
4
- import { _ as it } from "./Title-Zm0LCGPS.js";
5
- import { u as nt, U as vt } from "./usePrinter-CxBwzZkb.js";
6
- import { _ as ct } from "./Tooltip-CoahRzyE.js";
7
- import { D as ht } from "./DataTable-CcW8SHH2.js";
8
- import dt from "./vue-ui-skeleton-B6hyEcxy.js";
9
- import { _ as pt } from "./Shape-hFNcMth4.js";
10
- import yt from "./vue-ui-accordion-C2IbGLRv.js";
11
- import { u as Ae } from "./useNestedProp-BZZvruew.js";
12
- import { _ as ft } from "./PackageVersion-LRbiiLp0.js";
13
- import { P as bt } from "./PenAndPaper-BCjJ-td_.js";
4
+ import { _ as it } from "./Title-obqvTiXP.js";
5
+ import { u as nt, U as vt } from "./usePrinter-Ck0oiMlt.js";
6
+ import { _ as ct } from "./Tooltip-BK-ACGDE.js";
7
+ import { D as ht } from "./DataTable-BBh7_ttv.js";
8
+ import dt from "./vue-ui-skeleton-BMRe3SzB.js";
9
+ import { _ as pt } from "./Shape-CwmKWYzq.js";
10
+ import yt from "./vue-ui-accordion-CV2-8b1O.js";
11
+ import { u as Ae } from "./useNestedProp-Buhi5uyL.js";
12
+ import { _ as ft } from "./PackageVersion-dR8EUy_P.js";
13
+ import { P as bt } from "./PenAndPaper-CrXlqi9I.js";
14
14
  import { u as mt } from "./useUserOptionState-BIvW1Kz7.js";
15
15
  import { _ as gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
16
  const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"], wt = { key: 1 }, $t = { key: 0 }, _t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Tt = { key: 1 }, Lt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], At = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], St = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pt = ["x", "y", "fill", "font-size"], Ot = ["x", "y", "font-size", "fill"], zt = ["fill", "font-size", "transform"], Nt = ["fill", "font-size", "x", "y"], Ft = ["x1", "x2", "y1", "y2", "stroke"], Mt = ["cx", "cy", "fill"], Wt = ["cx", "cy", "fill"], It = ["id"], Dt = ["stop-color"], Gt = ["stop-color"], Ut = ["stop-color"], Vt = { key: 0 }, Et = ["x", "y", "font-size", "fill"], Ht = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-V6tl1xgQ.cjs"),ae=require("./useResponsive-BJ7DTGpm.cjs"),ye=require("./Title-CQVviDIQ.cjs"),re=require("./usePrinter-D0LQ1CyY.cjs"),be=require("./Tooltip-DZ1uTqBW.cjs"),ge=require("./DataTable-BVwnM0tQ.cjs"),ke=require("./vue-ui-skeleton-D56sSIBO.cjs"),xe=require("./Shape-QZcWXoYb.cjs"),Ce=require("./vue-ui-accordion-B7VpkrPR.cjs"),se=require("./useNestedProp--db71Vbu.cjs"),we=require("./PackageVersion-B7-YDa6h.cjs"),Be=require("./PenAndPaper-JkRknDt7.cjs"),Se=require("./useUserOptionState-BgepsfED.cjs"),Ne=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$e=["id"],_e=["xmlns","viewBox"],Te=["x","y","width","height"],Le={key:1},Pe={key:0},Ee=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],ze={key:1},Ae=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Ve=["x1","x2","y1","y2","stroke","stroke-width"],Oe=["x1","x2","y1","y2","stroke","stroke-width"],Fe=["x","y","fill","font-size"],De=["x","y","font-size","fill"],Me=["fill","font-size","transform"],We=["fill","font-size","x","y"],Ie=["x1","x2","y1","y2","stroke"],qe=["cx","cy","fill"],Ge=["cx","cy","fill"],Ue=["id"],Re=["stop-color"],He=["stop-color"],je=["stop-color"],Xe={key:0},Ye=["x","y","font-size","fill"],Je={key:5,class:"vue-data-ui-watermark"},Ke=["innerHTML"],Qe={__name:"vue-ui-strip-plot",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(ne,{expose:ue,emit:ie}){const v=ne,{vue_ui_strip_plot:ce}=r.useConfig(),p=e.computed({get(){return!!v.dataset&&v.dataset.length},set(l){return l}}),L=e.ref(r.createUid()),F=e.ref(0),P=e.ref(!1),E=e.ref(""),y=e.ref(null),D=e.ref(null),M=e.ref(null),W=e.ref(null),I=e.ref(!1),q=e.ref(0),G=e.ref(0),t=e.computed({get:()=>H(),set:l=>l}),{userOptionsVisible:z,setUserOptionsVisibility:U,keepUserOptionState:R}=Se.useUserOptionState({config:t.value});function H(){const l=se.useNestedProp({userConfig:v.config,defaultConfig:ce});return l.theme?{...se.useNestedProp({userConfig:r.themes.vue_ui_strip_plot[l.theme]||v.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>v.config,l=>{t.value=H(),z.value=!t.value.showOnChartHover,j(),q.value+=1,G.value+=1},{deep:!0});const C=e.ref(null);e.onMounted(()=>{j()});function j(){if(r.objectIsEmpty(v.dataset)?r.error({componentName:"VueUiStripPlot",type:"dataset"}):v.dataset.forEach((l,s)=>{r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","plots"]}).forEach(o=>{p.value=!1,r.error({componentName:"VueUiStripPlot",type:"datasetSerieAttribute",property:o,index:s})}),l.plots&&l.plots.forEach((o,n)=>{r.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(u=>{p.value=!1,r.error({componentName:"VueUiStripPlot",type:"datasetSerieAttribute",property:u,index:`${s},${n}`})})})}),t.value.responsive){const l=ae.throttle(()=>{const{width:s,height:o}=ae.useResponsive({chart:y.value,title:t.value.style.chart.title.text?D.value:null,source:M.value,noTitle:W.value});w.value=o,b.value.width=s,b.value.height=o,x.value=(s-d.value.left-d.value.right)/v.dataset.length,B.value=r.translateSize({relator:Math.min(o,s),adjuster:600,source:t.value.style.chart.plots.radius,threshold:6,fallback:6})});C.value=new ResizeObserver(l),C.value.observe(y.value.parentNode)}I.value=!0,setTimeout(()=>{k.value=!1},de.value*50)}e.onBeforeUnmount(()=>{C.value&&C.value.disconnect()});const{isPrinting:X,isImaging:Y,generatePdf:J,generateImage:K}=re.usePrinter({elementId:`strip-plot_${L.value}`,fileName:t.value.style.chart.title.text||"vue-ui-strip-plot"}),ve=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Q=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),k=e.ref(t.value.useCssAnimation),c=e.ref({showTable:t.value.table.show,dataLabels:{show:t.value.style.chart.labels.bestPlotLabel.show},showTooltip:t.value.style.chart.tooltip.show}),d=e.ref({top:t.value.style.chart.padding.top,bottom:t.value.style.chart.padding.bottom,left:t.value.style.chart.padding.left,right:t.value.style.chart.padding.right}),x=e.ref(t.value.style.chart.stripWidth),w=e.ref(t.value.style.chart.height),B=e.ref(t.value.style.chart.plots.radius),b=e.ref({width:x.value*v.dataset.length+d.value.left+d.value.right,height:t.value.style.chart.height}),a=e.computed(()=>{const l=x.value*v.dataset.length+d.value.left+d.value.right;return{left:d.value.left,right:l-d.value.right,top:d.value.top,bottom:w.value-d.value.bottom,width:x.value*v.dataset.length,height:w.value-d.value.top-d.value.bottom,stripWidth:x.value,absoluteHeight:w.value,absoluteWidth:l}}),S=e.computed(()=>p.value?v.dataset.map((l,s)=>{const o=r.createUid();return{...l,id:o,color:l.color?r.convertColorToHex(l.color):Q.value[s]||r.palette[s]||r.palette[s%r.palette.length],plots:l.plots.map(n=>({...n,value:r.checkNaN(n.value),parentId:o,color:l.color?r.convertColorToHex(l.color):Q.value[s]||r.palette[s]||r.palette[s%r.palette.length],id:r.createUid()})).sort((n,u)=>n.value-u.value)}}):null),h=e.computed(()=>(S.value||[]).map((l,s)=>({...l,plots:l.plots.map(o=>({...o,x:a.value.left+(s+1)*a.value.stripWidth-a.value.stripWidth/2}))}))),de=e.computed(()=>Math.max(...h.value.map(l=>l.plots.length))),A=e.computed(()=>{const l=h.value.flatMap(s=>s.plots.map(o=>o.value));return{max:Math.max(...l),min:Math.min(...l)}}),m=e.computed(()=>r.calculateNiceScale(A.value.min<0?A.value.min:0,A.value.max,t.value.style.chart.grid.scaleSteps)),he=e.computed(()=>(h.value||[]).map((l,s)=>({...l,plots:l.plots.map(o=>({...o,y:a.value.bottom-(o.value+Math.abs(m.value.min))/(m.value.max+Math.abs(m.value.min))*a.value.height}))}))),Z=e.computed(()=>m.value.ticks.map(l=>({y:a.value.bottom-a.value.height*((l+Math.abs(m.value.min))/(m.value.max+Math.abs(m.value.min))),x1:a.value.left,x2:a.value.right,value:l}))),V=e.ref(null),i=e.ref(null);function pe({datapoint:l,seriesIndex:s}){V.value={datapoint:l,seriesIndex:s,config:t.value,series:S.value},P.value=!0,i.value=l;const o=t.value.style.chart.tooltip.customFormat;if(r.isFunction(o)&&r.functionReturnsString(()=>o({seriesIndex:s,datapoint:l,series:S.value,config:t.value})))E.value=o({seriesIndex:s,datapoint:l,series:S.value,config:t.value});else{let n="";n+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.value.style.chart.plots.gradient.show?`url(#${l.parentId})`:l.color}"/></svg>${l.name}</div>`,n+=`<div>${r.applyDataLabel(t.value.style.chart.labels.formatter,l.value,r.dataLabel({p:t.value.style.chart.labels.prefix,v:l.value,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:l,seriesIndex:s})}</div>`,E.value=`<div>${n}</div>`}}const N=e.computed(()=>{const l=h.value.flatMap(o=>JSON.parse(JSON.stringify(o.plots)).sort((n,u)=>u.value-n.value).map(n=>({name:`${o.name} - ${n.name}`,color:n.color}))),s=h.value.flatMap(o=>JSON.parse(JSON.stringify(o.plots)).sort((n,u)=>u.value-n.value).map(n=>n.value));return{head:l,body:s}});function ee(){e.nextTick(()=>{const l=N.value.head.map((n,u)=>[[n.name],[N.value.body[u]]]),s=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[t.value.table.columnNames.series],[t.value.table.columnNames.value]]].concat(l),o=r.createCsvContent(s);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-strip-plot"})})}const $=e.computed(()=>{const l=[t.value.table.columnNames.series,t.value.table.columnNames.value],s=N.value.head.map((u,f)=>{const T=r.dataLabel({p:t.value.style.chart.labels.prefix,v:N.value.body[f],s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue});return[{color:u.color,name:u.name},T]}),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:l,body:s,config:o}}),g=e.ref(!1);function me(l){g.value=l,F.value+=1}function fe(){return h.value}function te(){c.value.showTable=!c.value.showTable}function le(){c.value.dataLabels.show=!c.value.dataLabels.show}function oe(){c.value.showTooltip=!c.value.showTooltip}const _=e.ref(!1);function O(){_.value=!_.value}return ue({getData:fe,generatePdf:J,generateCsv:ee,generateImage:K,toggleTable:te,toggleLabels:le,toggleTooltip:oe,toggleAnnotator:O}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"stripPlotChart",ref:y,class:e.normalizeClass(`vue-ui-strip-plot ${g.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),id:`strip-plot_${L.value}`,onMouseenter:s[2]||(s[2]=()=>e.unref(U)(!0)),onMouseleave:s[3]||(s[3]=()=>e.unref(U)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Be.PenAndPaper,{key:0,parent:y.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:_.value,onClose:O},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ve.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:W,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:D,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ye._sfc_main,{key:`title_${q.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&p.value&&(e.unref(R)||e.unref(z))?(e.openBlock(),e.createBlock(re.UserOptions,{ref:"details",key:`user_option_${F.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(X),isImaging:e.unref(Y),uid:L.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:c.value.showTooltip,isFullscreen:g.value,titles:{...t.value.userOptions.buttonTitles},chartElement:y.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:_.value,onToggleFullscreen:me,onGeneratePdf:e.unref(J),onGenerateCsv:ee,onGenerateImage:e.unref(K),onToggleTable:te,onToggleLabels:le,onToggleTooltip:oe,onToggleAnnotator:O,style:e.normalizeStyle({visibility:e.unref(R)?e.unref(z)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:n})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasLabel","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":g.value,"vue-data-ui-fulscreen--off":!g.value}),viewBox:`0 0 ${b.value.width<=0?10:b.value.width} ${b.value.height<=0?10:b.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color};`)},[e.createVNode(we._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:a.value.left,y:a.value.top,width:a.value.width,height:a.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Te)):e.createCommentVNode("",!0),t.value.style.chart.grid.show?(e.openBlock(),e.createElementBlock("g",Le,[t.value.style.chart.grid.horizontalGrid.show?(e.openBlock(),e.createElementBlock("g",Pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Z.value,o=>(e.openBlock(),e.createElementBlock("line",{x1:o.x1,x2:o.x2,y1:o.y,y2:o.y,stroke:t.value.style.chart.grid.horizontalGrid.stroke,"stroke-width":t.value.style.chart.grid.horizontalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.horizontalGrid.strokeDasharray,"stroke-linecap":"round"},null,8,Ee))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.verticalGrid.show?(e.openBlock(),e.createElementBlock("g",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,n)=>(e.openBlock(),e.createElementBlock("line",{x1:a.value.left+(n+1)*a.value.stripWidth,x2:a.value.left+(n+1)*a.value.stripWidth,y1:a.value.top,y2:a.value.bottom,stroke:t.value.style.chart.grid.verticalGrid.stroke,"stroke-width":t.value.style.chart.grid.verticalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.verticalGrid.strokeDasharray,"stroke-linecap":"round"},null,8,Ae))),256))])):e.createCommentVNode("",!0),e.createElementVNode("line",{x1:a.value.left,x2:a.value.left,y1:a.value.top,y2:a.value.bottom,stroke:t.value.style.chart.grid.stroke,"stroke-width":t.value.style.chart.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ve),e.createElementVNode("line",{x1:a.value.left,x2:a.value.right,y1:a.value.bottom,y2:a.value.bottom,stroke:t.value.style.chart.grid.stroke,"stroke-width":t.value.style.chart.grid.strokeWidth,"stroke-linecap":"round"},null,8,Oe)])):e.createCommentVNode("",!0),t.value.style.chart.labels.yAxisLabels.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(Z.value,(o,n)=>(e.openBlock(),e.createElementBlock("text",{x:o.x1-t.value.style.chart.labels.yAxisLabels.fontSize/2+t.value.style.chart.labels.yAxisLabels.offsetX,y:o.y+t.value.style.chart.labels.yAxisLabels.fontSize/3,fill:t.value.style.chart.labels.yAxisLabels.color,"font-size":t.value.style.chart.labels.yAxisLabels.fontSize,"text-anchor":"end"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.labels.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.labels.prefix,v:o.value,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.yAxisLabels.rounding}),{datapoint:o,seriesIndex:n})),9,Fe))),256)):e.createCommentVNode("",!0),t.value.style.chart.labels.xAxisLabels.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(h.value,(o,n)=>(e.openBlock(),e.createElementBlock("text",{x:a.value.left+(n+1)*a.value.stripWidth-a.value.stripWidth/2,y:a.value.bottom+t.value.style.chart.labels.xAxisLabels.fontSize*2+t.value.style.chart.labels.xAxisLabels.offsetY,"font-size":t.value.style.chart.labels.xAxisLabels.fontSize,fill:t.value.style.chart.labels.xAxisLabels.color,"text-anchor":"middle"},e.toDisplayString(o.name),9,De))),256)):e.createCommentVNode("",!0),t.value.style.chart.labels.axis.yLabel?(e.openBlock(),e.createElementBlock("text",{key:4,fill:t.value.style.chart.labels.axis.color,"font-size":t.value.style.chart.labels.axis.fontSize,transform:`translate(${t.value.style.chart.labels.axis.fontSize+t.value.style.chart.labels.axis.yLabelOffsetX}, ${a.value.top+a.value.height/2}) rotate(-90)`,"text-anchor":"middle"},e.toDisplayString(t.value.style.chart.labels.axis.yLabel),9,Me)):e.createCommentVNode("",!0),t.value.style.chart.labels.axis.xLabel?(e.openBlock(),e.createElementBlock("text",{key:5,fill:t.value.style.chart.labels.axis.color,"font-size":t.value.style.chart.labels.axis.fontSize,x:a.value.left+a.value.width/2,y:a.value.absoluteHeight,"text-anchor":"middle"},e.toDisplayString(t.value.style.chart.labels.axis.xLabel),9,We)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:6},[e.createElementVNode("line",{x1:a.value.left,x2:a.value.right,y1:i.value.y,y2:i.value.y,stroke:i.value.color,"stroke-width":1,class:e.normalizeClass({"select-circle":t.value.useCssAnimation})},null,10,Ie),e.createElementVNode("circle",{cx:a.value.left,cy:i.value.y,r:3,fill:i.value.color,class:e.normalizeClass({"select-circle":t.value.useCssAnimation})},null,10,qe),e.createElementVNode("circle",{cx:a.value.right,cy:i.value.y,r:3,fill:i.value.color,class:e.normalizeClass({"select-circle":t.value.useCssAnimation})},null,10,Ge)],64)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,o=>(e.openBlock(),e.createElementBlock("radialGradient",{id:o.id,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(r.lightenHexColor)(o.color,t.value.style.chart.plots.gradient.intensity/100)},null,8,Re),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(r.darkenHexColor)(o.color,.1)},null,8,He),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,je)],8,Ue))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(he.value,(o,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.plots,(u,f)=>(e.openBlock(),e.createBlock(xe._sfc_main,e.mergeProps({plot:{x:u.x,y:I.value?u.y:a.value.top},radius:i.value&&i.value.id===u.id?B.value*1.5:B.value,shape:t.value.style.chart.plots.shape,stroke:t.value.style.chart.plots.stroke,strokeWidth:t.value.style.chart.plots.strokeWidth,color:t.value.style.chart.plots.gradient.show?`url(#${o.id})`:o.color,onMouseenter:T=>pe({datapoint:u,seriesIndex:f}),onMouseleave:s[0]||(s[0]=T=>{P.value=!1,i.value=null}),onClick:T=>ie("selectDatapoint",u),style:`transition: all 0.2s ease-in-out; opacity:${i.value?i.value.id===u.id?1:.2:t.value.style.chart.plots.opacity};${k.value?`transition-delay:${f*50}ms`:""}`,class:{"vue-ui-strip-plot-animated":t.value.useCssAnimation&&k.value,"vue-ui-strip-plot-select-circle":t.value.useCssAnimation&&!k.value}},l.$attrs),null,16,["plot","radius","shape","stroke","strokeWidth","color","onMouseenter","onClick","style","class"]))),256)),c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("g",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.plots,(u,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[f===o.plots.length-1||i.value&&i.value.id===u.id&&!c.value.showTooltip?(e.openBlock(),e.createElementBlock("text",{key:0,x:u.x,y:u.y+t.value.style.chart.labels.bestPlotLabel.offsetY-B.value*(i.value&&i.value.id===u.id&&!c.value.showTooltip?2:1.5),"font-size":t.value.style.chart.labels.bestPlotLabel.fontSize,fill:t.value.style.chart.labels.bestPlotLabel.color,"text-anchor":"middle",style:e.normalizeStyle(`opacity:${t.value.useCssAnimation&&k.value?0:1};transition:opacity 0.2s ease-in;`)},e.toDisplayString(u.name)+" "+e.toDisplayString(t.value.style.chart.labels.bestPlotLabel.showValue?e.unref(r.applyDataLabel)(t.value.style.chart.labels.formatter,u.value,e.unref(r.dataLabel)({p:`(${t.value.style.chart.labels.prefix}`,v:u.value,s:`${t.value.style.chart.labels.suffix})`,r:t.value.style.chart.labels.bestPlotLabel.rounding}),{datapoint:u,seriesIndex:f}):""),13,Ye)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0)],64))),256)),e.renderSlot(l.$slots,"svg",{svg:a.value},void 0,!0)],14,_e)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Je,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(X)||e.unref(Y)})),void 0,!0)])):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ke.default,{key:6,config:{type:"stripPlot",style:{backgroundColor:t.value.style.chart.backgroundColor,stripPlot:{color:"#CCCCCC"}}}},null,8,["config"])),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:M,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(be._sfc_main,{show:c.value.showTooltip&&P.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:y.value,content:E.value,isFullscreen:g.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...V.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...V.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),p.value?(e.openBlock(),e.createBlock(Ce.default,{key:8,hideDetails:"",config:{open:c.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ge.DataTable,{key:`table_${G.value}`,colNames:$.value.colNames,head:$.value.head,body:$.value.body,config:$.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:s[1]||(s[1]=o=>c.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Ke)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,$e))}},Ze=Ne._export_sfc(Qe,[["__scopeId","data-v-375e8dc0"]]);exports.default=Ze;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-ChOY3hT9.cjs"),ae=require("./useResponsive-BJ7DTGpm.cjs"),ye=require("./Title-CoNtoGH9.cjs"),re=require("./usePrinter-c3c7_uAW.cjs"),be=require("./Tooltip-Dz4wVJkz.cjs"),ge=require("./DataTable-CCJGHIVo.cjs"),ke=require("./vue-ui-skeleton-DlnPFtb4.cjs"),xe=require("./Shape-qkkvCKyp.cjs"),Ce=require("./vue-ui-accordion-CZ8AlriN.cjs"),se=require("./useNestedProp-CA8PjFJH.cjs"),we=require("./PackageVersion-eZ5Dmuid.cjs"),Be=require("./PenAndPaper-D_w2N2qM.cjs"),Se=require("./useUserOptionState-BgepsfED.cjs"),Ne=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$e=["id"],_e=["xmlns","viewBox"],Te=["x","y","width","height"],Le={key:1},Pe={key:0},Ee=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],ze={key:1},Ae=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Ve=["x1","x2","y1","y2","stroke","stroke-width"],Oe=["x1","x2","y1","y2","stroke","stroke-width"],Fe=["x","y","fill","font-size"],De=["x","y","font-size","fill"],Me=["fill","font-size","transform"],We=["fill","font-size","x","y"],Ie=["x1","x2","y1","y2","stroke"],qe=["cx","cy","fill"],Ge=["cx","cy","fill"],Ue=["id"],Re=["stop-color"],He=["stop-color"],je=["stop-color"],Xe={key:0},Ye=["x","y","font-size","fill"],Je={key:5,class:"vue-data-ui-watermark"},Ke=["innerHTML"],Qe={__name:"vue-ui-strip-plot",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(ne,{expose:ue,emit:ie}){const v=ne,{vue_ui_strip_plot:ce}=r.useConfig(),p=e.computed({get(){return!!v.dataset&&v.dataset.length},set(l){return l}}),L=e.ref(r.createUid()),F=e.ref(0),P=e.ref(!1),E=e.ref(""),y=e.ref(null),D=e.ref(null),M=e.ref(null),W=e.ref(null),I=e.ref(!1),q=e.ref(0),G=e.ref(0),t=e.computed({get:()=>H(),set:l=>l}),{userOptionsVisible:z,setUserOptionsVisibility:U,keepUserOptionState:R}=Se.useUserOptionState({config:t.value});function H(){const l=se.useNestedProp({userConfig:v.config,defaultConfig:ce});return l.theme?{...se.useNestedProp({userConfig:r.themes.vue_ui_strip_plot[l.theme]||v.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>v.config,l=>{t.value=H(),z.value=!t.value.showOnChartHover,j(),q.value+=1,G.value+=1},{deep:!0});const C=e.ref(null);e.onMounted(()=>{j()});function j(){if(r.objectIsEmpty(v.dataset)?r.error({componentName:"VueUiStripPlot",type:"dataset"}):v.dataset.forEach((l,s)=>{r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","plots"]}).forEach(o=>{p.value=!1,r.error({componentName:"VueUiStripPlot",type:"datasetSerieAttribute",property:o,index:s})}),l.plots&&l.plots.forEach((o,n)=>{r.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(u=>{p.value=!1,r.error({componentName:"VueUiStripPlot",type:"datasetSerieAttribute",property:u,index:`${s},${n}`})})})}),t.value.responsive){const l=ae.throttle(()=>{const{width:s,height:o}=ae.useResponsive({chart:y.value,title:t.value.style.chart.title.text?D.value:null,source:M.value,noTitle:W.value});w.value=o,b.value.width=s,b.value.height=o,x.value=(s-d.value.left-d.value.right)/v.dataset.length,B.value=r.translateSize({relator:Math.min(o,s),adjuster:600,source:t.value.style.chart.plots.radius,threshold:6,fallback:6})});C.value=new ResizeObserver(l),C.value.observe(y.value.parentNode)}I.value=!0,setTimeout(()=>{k.value=!1},de.value*50)}e.onBeforeUnmount(()=>{C.value&&C.value.disconnect()});const{isPrinting:X,isImaging:Y,generatePdf:J,generateImage:K}=re.usePrinter({elementId:`strip-plot_${L.value}`,fileName:t.value.style.chart.title.text||"vue-ui-strip-plot"}),ve=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Q=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),k=e.ref(t.value.useCssAnimation),c=e.ref({showTable:t.value.table.show,dataLabels:{show:t.value.style.chart.labels.bestPlotLabel.show},showTooltip:t.value.style.chart.tooltip.show}),d=e.ref({top:t.value.style.chart.padding.top,bottom:t.value.style.chart.padding.bottom,left:t.value.style.chart.padding.left,right:t.value.style.chart.padding.right}),x=e.ref(t.value.style.chart.stripWidth),w=e.ref(t.value.style.chart.height),B=e.ref(t.value.style.chart.plots.radius),b=e.ref({width:x.value*v.dataset.length+d.value.left+d.value.right,height:t.value.style.chart.height}),a=e.computed(()=>{const l=x.value*v.dataset.length+d.value.left+d.value.right;return{left:d.value.left,right:l-d.value.right,top:d.value.top,bottom:w.value-d.value.bottom,width:x.value*v.dataset.length,height:w.value-d.value.top-d.value.bottom,stripWidth:x.value,absoluteHeight:w.value,absoluteWidth:l}}),S=e.computed(()=>p.value?v.dataset.map((l,s)=>{const o=r.createUid();return{...l,id:o,color:l.color?r.convertColorToHex(l.color):Q.value[s]||r.palette[s]||r.palette[s%r.palette.length],plots:l.plots.map(n=>({...n,value:r.checkNaN(n.value),parentId:o,color:l.color?r.convertColorToHex(l.color):Q.value[s]||r.palette[s]||r.palette[s%r.palette.length],id:r.createUid()})).sort((n,u)=>n.value-u.value)}}):null),h=e.computed(()=>(S.value||[]).map((l,s)=>({...l,plots:l.plots.map(o=>({...o,x:a.value.left+(s+1)*a.value.stripWidth-a.value.stripWidth/2}))}))),de=e.computed(()=>Math.max(...h.value.map(l=>l.plots.length))),A=e.computed(()=>{const l=h.value.flatMap(s=>s.plots.map(o=>o.value));return{max:Math.max(...l),min:Math.min(...l)}}),m=e.computed(()=>r.calculateNiceScale(A.value.min<0?A.value.min:0,A.value.max,t.value.style.chart.grid.scaleSteps)),he=e.computed(()=>(h.value||[]).map((l,s)=>({...l,plots:l.plots.map(o=>({...o,y:a.value.bottom-(o.value+Math.abs(m.value.min))/(m.value.max+Math.abs(m.value.min))*a.value.height}))}))),Z=e.computed(()=>m.value.ticks.map(l=>({y:a.value.bottom-a.value.height*((l+Math.abs(m.value.min))/(m.value.max+Math.abs(m.value.min))),x1:a.value.left,x2:a.value.right,value:l}))),V=e.ref(null),i=e.ref(null);function pe({datapoint:l,seriesIndex:s}){V.value={datapoint:l,seriesIndex:s,config:t.value,series:S.value},P.value=!0,i.value=l;const o=t.value.style.chart.tooltip.customFormat;if(r.isFunction(o)&&r.functionReturnsString(()=>o({seriesIndex:s,datapoint:l,series:S.value,config:t.value})))E.value=o({seriesIndex:s,datapoint:l,series:S.value,config:t.value});else{let n="";n+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.value.style.chart.plots.gradient.show?`url(#${l.parentId})`:l.color}"/></svg>${l.name}</div>`,n+=`<div>${r.applyDataLabel(t.value.style.chart.labels.formatter,l.value,r.dataLabel({p:t.value.style.chart.labels.prefix,v:l.value,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:l,seriesIndex:s})}</div>`,E.value=`<div>${n}</div>`}}const N=e.computed(()=>{const l=h.value.flatMap(o=>JSON.parse(JSON.stringify(o.plots)).sort((n,u)=>u.value-n.value).map(n=>({name:`${o.name} - ${n.name}`,color:n.color}))),s=h.value.flatMap(o=>JSON.parse(JSON.stringify(o.plots)).sort((n,u)=>u.value-n.value).map(n=>n.value));return{head:l,body:s}});function ee(){e.nextTick(()=>{const l=N.value.head.map((n,u)=>[[n.name],[N.value.body[u]]]),s=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[t.value.table.columnNames.series],[t.value.table.columnNames.value]]].concat(l),o=r.createCsvContent(s);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-strip-plot"})})}const $=e.computed(()=>{const l=[t.value.table.columnNames.series,t.value.table.columnNames.value],s=N.value.head.map((u,f)=>{const T=r.dataLabel({p:t.value.style.chart.labels.prefix,v:N.value.body[f],s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue});return[{color:u.color,name:u.name},T]}),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:l,body:s,config:o}}),g=e.ref(!1);function me(l){g.value=l,F.value+=1}function fe(){return h.value}function te(){c.value.showTable=!c.value.showTable}function le(){c.value.dataLabels.show=!c.value.dataLabels.show}function oe(){c.value.showTooltip=!c.value.showTooltip}const _=e.ref(!1);function O(){_.value=!_.value}return ue({getData:fe,generatePdf:J,generateCsv:ee,generateImage:K,toggleTable:te,toggleLabels:le,toggleTooltip:oe,toggleAnnotator:O}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"stripPlotChart",ref:y,class:e.normalizeClass(`vue-ui-strip-plot ${g.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),id:`strip-plot_${L.value}`,onMouseenter:s[2]||(s[2]=()=>e.unref(U)(!0)),onMouseleave:s[3]||(s[3]=()=>e.unref(U)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Be.PenAndPaper,{key:0,parent:y.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:_.value,onClose:O},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ve.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:W,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:D,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ye._sfc_main,{key:`title_${q.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&p.value&&(e.unref(R)||e.unref(z))?(e.openBlock(),e.createBlock(re.UserOptions,{ref:"details",key:`user_option_${F.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(X),isImaging:e.unref(Y),uid:L.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:c.value.showTooltip,isFullscreen:g.value,titles:{...t.value.userOptions.buttonTitles},chartElement:y.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:_.value,onToggleFullscreen:me,onGeneratePdf:e.unref(J),onGenerateCsv:ee,onGenerateImage:e.unref(K),onToggleTable:te,onToggleLabels:le,onToggleTooltip:oe,onToggleAnnotator:O,style:e.normalizeStyle({visibility:e.unref(R)?e.unref(z)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:n})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasLabel","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":g.value,"vue-data-ui-fulscreen--off":!g.value}),viewBox:`0 0 ${b.value.width<=0?10:b.value.width} ${b.value.height<=0?10:b.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color};`)},[e.createVNode(we._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:a.value.left,y:a.value.top,width:a.value.width,height:a.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Te)):e.createCommentVNode("",!0),t.value.style.chart.grid.show?(e.openBlock(),e.createElementBlock("g",Le,[t.value.style.chart.grid.horizontalGrid.show?(e.openBlock(),e.createElementBlock("g",Pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Z.value,o=>(e.openBlock(),e.createElementBlock("line",{x1:o.x1,x2:o.x2,y1:o.y,y2:o.y,stroke:t.value.style.chart.grid.horizontalGrid.stroke,"stroke-width":t.value.style.chart.grid.horizontalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.horizontalGrid.strokeDasharray,"stroke-linecap":"round"},null,8,Ee))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.verticalGrid.show?(e.openBlock(),e.createElementBlock("g",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,n)=>(e.openBlock(),e.createElementBlock("line",{x1:a.value.left+(n+1)*a.value.stripWidth,x2:a.value.left+(n+1)*a.value.stripWidth,y1:a.value.top,y2:a.value.bottom,stroke:t.value.style.chart.grid.verticalGrid.stroke,"stroke-width":t.value.style.chart.grid.verticalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.verticalGrid.strokeDasharray,"stroke-linecap":"round"},null,8,Ae))),256))])):e.createCommentVNode("",!0),e.createElementVNode("line",{x1:a.value.left,x2:a.value.left,y1:a.value.top,y2:a.value.bottom,stroke:t.value.style.chart.grid.stroke,"stroke-width":t.value.style.chart.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ve),e.createElementVNode("line",{x1:a.value.left,x2:a.value.right,y1:a.value.bottom,y2:a.value.bottom,stroke:t.value.style.chart.grid.stroke,"stroke-width":t.value.style.chart.grid.strokeWidth,"stroke-linecap":"round"},null,8,Oe)])):e.createCommentVNode("",!0),t.value.style.chart.labels.yAxisLabels.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(Z.value,(o,n)=>(e.openBlock(),e.createElementBlock("text",{x:o.x1-t.value.style.chart.labels.yAxisLabels.fontSize/2+t.value.style.chart.labels.yAxisLabels.offsetX,y:o.y+t.value.style.chart.labels.yAxisLabels.fontSize/3,fill:t.value.style.chart.labels.yAxisLabels.color,"font-size":t.value.style.chart.labels.yAxisLabels.fontSize,"text-anchor":"end"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.labels.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.labels.prefix,v:o.value,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.yAxisLabels.rounding}),{datapoint:o,seriesIndex:n})),9,Fe))),256)):e.createCommentVNode("",!0),t.value.style.chart.labels.xAxisLabels.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(h.value,(o,n)=>(e.openBlock(),e.createElementBlock("text",{x:a.value.left+(n+1)*a.value.stripWidth-a.value.stripWidth/2,y:a.value.bottom+t.value.style.chart.labels.xAxisLabels.fontSize*2+t.value.style.chart.labels.xAxisLabels.offsetY,"font-size":t.value.style.chart.labels.xAxisLabels.fontSize,fill:t.value.style.chart.labels.xAxisLabels.color,"text-anchor":"middle"},e.toDisplayString(o.name),9,De))),256)):e.createCommentVNode("",!0),t.value.style.chart.labels.axis.yLabel?(e.openBlock(),e.createElementBlock("text",{key:4,fill:t.value.style.chart.labels.axis.color,"font-size":t.value.style.chart.labels.axis.fontSize,transform:`translate(${t.value.style.chart.labels.axis.fontSize+t.value.style.chart.labels.axis.yLabelOffsetX}, ${a.value.top+a.value.height/2}) rotate(-90)`,"text-anchor":"middle"},e.toDisplayString(t.value.style.chart.labels.axis.yLabel),9,Me)):e.createCommentVNode("",!0),t.value.style.chart.labels.axis.xLabel?(e.openBlock(),e.createElementBlock("text",{key:5,fill:t.value.style.chart.labels.axis.color,"font-size":t.value.style.chart.labels.axis.fontSize,x:a.value.left+a.value.width/2,y:a.value.absoluteHeight,"text-anchor":"middle"},e.toDisplayString(t.value.style.chart.labels.axis.xLabel),9,We)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:6},[e.createElementVNode("line",{x1:a.value.left,x2:a.value.right,y1:i.value.y,y2:i.value.y,stroke:i.value.color,"stroke-width":1,class:e.normalizeClass({"select-circle":t.value.useCssAnimation})},null,10,Ie),e.createElementVNode("circle",{cx:a.value.left,cy:i.value.y,r:3,fill:i.value.color,class:e.normalizeClass({"select-circle":t.value.useCssAnimation})},null,10,qe),e.createElementVNode("circle",{cx:a.value.right,cy:i.value.y,r:3,fill:i.value.color,class:e.normalizeClass({"select-circle":t.value.useCssAnimation})},null,10,Ge)],64)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,o=>(e.openBlock(),e.createElementBlock("radialGradient",{id:o.id,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(r.lightenHexColor)(o.color,t.value.style.chart.plots.gradient.intensity/100)},null,8,Re),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(r.darkenHexColor)(o.color,.1)},null,8,He),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,je)],8,Ue))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(he.value,(o,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.plots,(u,f)=>(e.openBlock(),e.createBlock(xe._sfc_main,e.mergeProps({plot:{x:u.x,y:I.value?u.y:a.value.top},radius:i.value&&i.value.id===u.id?B.value*1.5:B.value,shape:t.value.style.chart.plots.shape,stroke:t.value.style.chart.plots.stroke,strokeWidth:t.value.style.chart.plots.strokeWidth,color:t.value.style.chart.plots.gradient.show?`url(#${o.id})`:o.color,onMouseenter:T=>pe({datapoint:u,seriesIndex:f}),onMouseleave:s[0]||(s[0]=T=>{P.value=!1,i.value=null}),onClick:T=>ie("selectDatapoint",u),style:`transition: all 0.2s ease-in-out; opacity:${i.value?i.value.id===u.id?1:.2:t.value.style.chart.plots.opacity};${k.value?`transition-delay:${f*50}ms`:""}`,class:{"vue-ui-strip-plot-animated":t.value.useCssAnimation&&k.value,"vue-ui-strip-plot-select-circle":t.value.useCssAnimation&&!k.value}},l.$attrs),null,16,["plot","radius","shape","stroke","strokeWidth","color","onMouseenter","onClick","style","class"]))),256)),c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("g",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.plots,(u,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[f===o.plots.length-1||i.value&&i.value.id===u.id&&!c.value.showTooltip?(e.openBlock(),e.createElementBlock("text",{key:0,x:u.x,y:u.y+t.value.style.chart.labels.bestPlotLabel.offsetY-B.value*(i.value&&i.value.id===u.id&&!c.value.showTooltip?2:1.5),"font-size":t.value.style.chart.labels.bestPlotLabel.fontSize,fill:t.value.style.chart.labels.bestPlotLabel.color,"text-anchor":"middle",style:e.normalizeStyle(`opacity:${t.value.useCssAnimation&&k.value?0:1};transition:opacity 0.2s ease-in;`)},e.toDisplayString(u.name)+" "+e.toDisplayString(t.value.style.chart.labels.bestPlotLabel.showValue?e.unref(r.applyDataLabel)(t.value.style.chart.labels.formatter,u.value,e.unref(r.dataLabel)({p:`(${t.value.style.chart.labels.prefix}`,v:u.value,s:`${t.value.style.chart.labels.suffix})`,r:t.value.style.chart.labels.bestPlotLabel.rounding}),{datapoint:u,seriesIndex:f}):""),13,Ye)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0)],64))),256)),e.renderSlot(l.$slots,"svg",{svg:a.value},void 0,!0)],14,_e)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Je,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(X)||e.unref(Y)})),void 0,!0)])):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ke.default,{key:6,config:{type:"stripPlot",style:{backgroundColor:t.value.style.chart.backgroundColor,stripPlot:{color:"#CCCCCC"}}}},null,8,["config"])),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:M,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(be._sfc_main,{show:c.value.showTooltip&&P.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:y.value,content:E.value,isFullscreen:g.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...V.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...V.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),p.value?(e.openBlock(),e.createBlock(Ce.default,{key:8,hideDetails:"",config:{open:c.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ge.DataTable,{key:`table_${G.value}`,colNames:$.value.colNames,head:$.value.head,body:$.value.body,config:$.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:s[1]||(s[1]=o=>c.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Ke)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,$e))}},Ze=Ne._export_sfc(Qe,[["__scopeId","data-v-375e8dc0"]]);exports.default=Ze;