vue-data-ui 2.4.63 → 2.4.65

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 (165) hide show
  1. package/README.md +66 -34
  2. package/dist/{Arrow-BpZBF7Ak.cjs → Arrow-BKPURRQ6.cjs} +1 -1
  3. package/dist/{Arrow-nOy23OOV.js → Arrow-C7ihyW4O.js} +1 -1
  4. package/dist/{BaseIcon-rzIvDo2Q.cjs → BaseIcon-CyTdOpDr.cjs} +1 -1
  5. package/dist/{BaseIcon-CrqNvGTs.js → BaseIcon-DpaRUsHC.js} +1 -1
  6. package/dist/{DataTable-CCJGHIVo.cjs → DataTable-CwzQ-L0W.cjs} +1 -1
  7. package/dist/{DataTable-BBh7_ttv.js → DataTable-DX_jYNWG.js} +2 -2
  8. package/dist/Legend-BMTBtkoQ.cjs +1 -0
  9. package/dist/Legend-DGUxLqhs.js +70 -0
  10. package/dist/{PackageVersion-dR8EUy_P.js → PackageVersion-B9_Ed72C.js} +1 -1
  11. package/dist/{PackageVersion-eZ5Dmuid.cjs → PackageVersion-D_9QTWVm.cjs} +1 -1
  12. package/dist/{PenAndPaper-D_w2N2qM.cjs → PenAndPaper-CfGYucSm.cjs} +1 -1
  13. package/dist/{PenAndPaper-CrXlqi9I.js → PenAndPaper-CzjoEhsO.js} +3 -3
  14. package/dist/{Shape-qkkvCKyp.cjs → Shape-CZB2KQ0L.cjs} +1 -1
  15. package/dist/{Shape-CwmKWYzq.js → Shape-aXd72O71.js} +1 -1
  16. package/dist/{Slicer-oNEtv1s3.cjs → Slicer-ChxjRhai.cjs} +1 -1
  17. package/dist/{Slicer-DvdU-uf8.js → Slicer-CopZgIzh.js} +2 -2
  18. package/dist/{Title-CoNtoGH9.cjs → Title-BnRtxxP4.cjs} +1 -1
  19. package/dist/{Title-obqvTiXP.js → Title-DyUTj8GI.js} +1 -1
  20. package/dist/{Tooltip-BK-ACGDE.js → Tooltip-B-0uEV3l.js} +1 -1
  21. package/dist/{Tooltip-Dz4wVJkz.cjs → Tooltip-CUoQNXZK.cjs} +1 -1
  22. package/dist/documentation/installation.md +34 -34
  23. package/dist/{index-Z_vzxZTo.js → index-BVNcFEqn.js} +398 -393
  24. package/dist/{index-ChOY3hT9.cjs → index-CKgv8c-A.cjs} +5 -5
  25. package/dist/style.css +1 -1
  26. package/dist/{useNestedProp-CA8PjFJH.cjs → useNestedProp-0Mn5Z6Ae.cjs} +1 -1
  27. package/dist/{useNestedProp-Buhi5uyL.js → useNestedProp-D79dWdel.js} +1 -1
  28. package/dist/{usePrinter-Ck0oiMlt.js → usePrinter-Bcfs_I6G.js} +1 -1
  29. package/dist/{usePrinter-c3c7_uAW.cjs → usePrinter-Gkda9yEJ.cjs} +1 -1
  30. package/dist/{vue-data-ui-BGng_wXI.js → vue-data-ui-CXxR_hXg.js} +60 -60
  31. package/dist/{vue-data-ui-CihfnXFF.cjs → vue-data-ui-DAwVdbN1.cjs} +1 -1
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +9 -9
  34. package/dist/{vue-ui-3d-bar-BsxFEhMN.cjs → vue-ui-3d-bar-baVCskbW.cjs} +1 -1
  35. package/dist/{vue-ui-3d-bar-B7k4LzL1.js → vue-ui-3d-bar-mxTzin_H.js} +9 -9
  36. package/dist/{vue-ui-accordion-CV2-8b1O.js → vue-ui-accordion-GNblUy42.js} +3 -3
  37. package/dist/{vue-ui-accordion-CZ8AlriN.cjs → vue-ui-accordion-xV0it5je.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-Bc4DaLIy.js → vue-ui-age-pyramid-DFBuvQgd.js} +10 -10
  39. package/dist/{vue-ui-age-pyramid-C1crnKk7.cjs → vue-ui-age-pyramid-ULh6qSJs.cjs} +1 -1
  40. package/dist/{vue-ui-annotator-DNKcAaEh.cjs → vue-ui-annotator-C89rtAuX.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-DLbAn_Mz.js → vue-ui-annotator-XbCqxBQ0.js} +1 -1
  42. package/dist/{vue-ui-bullet-ClODxNrk.js → vue-ui-bullet-D_CS85II.js} +8 -8
  43. package/dist/{vue-ui-bullet-CEO3AsWC.cjs → vue-ui-bullet-DxRqDaiw.cjs} +1 -1
  44. package/dist/{vue-ui-candlestick-DI7t6jqz.js → vue-ui-candlestick-C8mUQTPF.js} +11 -11
  45. package/dist/{vue-ui-candlestick-B00zQB4B.cjs → vue-ui-candlestick-CZxpFMKR.cjs} +1 -1
  46. package/dist/{vue-ui-carousel-table-5jXlkslq.js → vue-ui-carousel-table-D5iLQe38.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-Bm2D_0pZ.cjs → vue-ui-carousel-table-DKcc-jNW.cjs} +1 -1
  48. package/dist/{vue-ui-chestnut-DP6-Gie6.cjs → vue-ui-chestnut-BFV6pTfc.cjs} +1 -1
  49. package/dist/{vue-ui-chestnut-CRZsXRUH.js → vue-ui-chestnut-BqGCLMiu.js} +8 -8
  50. package/dist/{vue-ui-cursor-BGe0gZK8.cjs → vue-ui-cursor-BJjzKpLm.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-DA8bsmEc.js → vue-ui-cursor-BysQ-bDH.js} +2 -2
  52. package/dist/{vue-ui-dashboard-D2v4oSiB.cjs → vue-ui-dashboard-C0L_0gyc.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-BZD-6Pz7.js → vue-ui-dashboard-zrJGrAmc.js} +2 -2
  54. package/dist/{vue-ui-digits-CKvrL9Wc.js → vue-ui-digits-B5P9UheE.js} +2 -2
  55. package/dist/{vue-ui-digits-DC8ZuHOj.cjs → vue-ui-digits-BG_xts2G.cjs} +1 -1
  56. package/dist/vue-ui-donut-7tNjrx1E.js +1173 -0
  57. package/dist/vue-ui-donut-B9M9CW9D.cjs +1 -0
  58. package/dist/{vue-ui-donut-evolution-CBsxmrTO.js → vue-ui-donut-evolution-C7FpJ59u.js} +11 -11
  59. package/dist/{vue-ui-donut-evolution-AlCGLfzy.cjs → vue-ui-donut-evolution-CEvGFdxK.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-DB7jNjQP.js → vue-ui-dumbbell-CdxHbLz6.js} +10 -10
  61. package/dist/{vue-ui-dumbbell-B9cELz3z.cjs → vue-ui-dumbbell-DP27C8NG.cjs} +1 -1
  62. package/dist/{vue-ui-flow-Cw1Vfk_e.js → vue-ui-flow-cKQSDKfP.js} +9 -9
  63. package/dist/{vue-ui-flow-CCM51fzQ.cjs → vue-ui-flow-yW5Pa_MJ.cjs} +1 -1
  64. package/dist/{vue-ui-funnel--4JhwVwW.cjs → vue-ui-funnel-73aPtRj5.cjs} +1 -1
  65. package/dist/{vue-ui-funnel-CU72MuGg.js → vue-ui-funnel-qPYVhQpD.js} +9 -9
  66. package/dist/{vue-ui-galaxy-BKInqdOk.js → vue-ui-galaxy-2SRA_RYP.js} +11 -11
  67. package/dist/{vue-ui-galaxy-BJrkygeR.cjs → vue-ui-galaxy-9E5GUtBD.cjs} +1 -1
  68. package/dist/vue-ui-gauge-CBbvp9DU.cjs +1 -0
  69. package/dist/{vue-ui-gauge-DBPB11Eo.js → vue-ui-gauge-Cpvg4BBS.js} +236 -224
  70. package/dist/{vue-ui-gizmo-BSDdKP_q.js → vue-ui-gizmo-B5v0g_Ly.js} +3 -3
  71. package/dist/{vue-ui-gizmo-D7hHruEs.cjs → vue-ui-gizmo-BkNuHnnf.cjs} +1 -1
  72. package/dist/{vue-ui-heatmap-CysVyR78.cjs → vue-ui-heatmap-CcUuOqGT.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-DhoDd6I_.js → vue-ui-heatmap-dNeKqLC0.js} +10 -10
  74. package/dist/{vue-ui-history-plot-C1IcR5tn.js → vue-ui-history-plot-COtfhHw8.js} +11 -11
  75. package/dist/{vue-ui-history-plot-D97p0C8E.cjs → vue-ui-history-plot-p18wqHFY.cjs} +1 -1
  76. package/dist/{vue-ui-kpi-Cu2PoWud.cjs → vue-ui-kpi-DCn50wZ8.cjs} +1 -1
  77. package/dist/{vue-ui-kpi-C43FJnkn.js → vue-ui-kpi-HyZOfh63.js} +3 -3
  78. package/dist/{vue-ui-mini-loader-Bdr0862F.cjs → vue-ui-mini-loader-DaPxFP7e.cjs} +1 -1
  79. package/dist/{vue-ui-mini-loader-DgPnsWaW.js → vue-ui-mini-loader-Dp7zc34Q.js} +2 -2
  80. package/dist/{vue-ui-molecule-CvxtHapj.js → vue-ui-molecule-Oim4-hUn.js} +11 -11
  81. package/dist/{vue-ui-molecule-CEJzQ7RY.cjs → vue-ui-molecule-zkdP7FYM.cjs} +1 -1
  82. package/dist/{vue-ui-mood-radar-DIn_Oars.cjs → vue-ui-mood-radar-CKdM8iDY.cjs} +1 -1
  83. package/dist/{vue-ui-mood-radar-B6EmzBGf.js → vue-ui-mood-radar-DsSO6gfa.js} +11 -11
  84. package/dist/{vue-ui-nested-donuts-D4pAkaZH.js → vue-ui-nested-donuts-B5NPJfg6.js} +11 -11
  85. package/dist/{vue-ui-nested-donuts-c2pJF_ex.cjs → vue-ui-nested-donuts-DbTXLan2.cjs} +1 -1
  86. package/dist/{vue-ui-onion-DHOhnx2s.cjs → vue-ui-onion-0Od2Vodu.cjs} +1 -1
  87. package/dist/{vue-ui-onion-98XPhnVF.js → vue-ui-onion-CID0DNSa.js} +11 -11
  88. package/dist/{vue-ui-parallel-coordinate-plot-DLOtv_NO.js → vue-ui-parallel-coordinate-plot-DAfBgYbI.js} +12 -12
  89. package/dist/{vue-ui-parallel-coordinate-plot-CrVVxflg.cjs → vue-ui-parallel-coordinate-plot-WtcXCTd-.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-DWM3zE7x.js → vue-ui-quadrant-063Cq0di.js} +12 -12
  91. package/dist/{vue-ui-quadrant-DbDQtcxz.cjs → vue-ui-quadrant-B6WNmecC.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-DP0hSesI.cjs → vue-ui-quick-chart-CwNFF0R4.cjs} +1 -1
  93. package/dist/{vue-ui-quick-chart-CFVAisN4.js → vue-ui-quick-chart-DCPwhpbx.js} +9 -9
  94. package/dist/{vue-ui-radar-CNBN5GF9.js → vue-ui-radar-BmY47r3J.js} +12 -12
  95. package/dist/{vue-ui-radar-CDhwXWfs.cjs → vue-ui-radar-DcnVyGrM.cjs} +1 -1
  96. package/dist/{vue-ui-rating-cHW6zh7i.cjs → vue-ui-rating-D_9Fqvd_.cjs} +1 -1
  97. package/dist/{vue-ui-rating-CEfg8aGb.js → vue-ui-rating-b2SThMJw.js} +2 -2
  98. package/dist/{vue-ui-relation-circle-92LvehQf.js → vue-ui-relation-circle-B0Q2FdDW.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-olDAN0lU.cjs → vue-ui-relation-circle-Cg3QL_aP.cjs} +1 -1
  100. package/dist/vue-ui-rings-BQdgj7bV.cjs +2 -0
  101. package/dist/vue-ui-rings-DlsKpDkQ.js +666 -0
  102. package/dist/{vue-ui-scatter-BvdgtUHX.cjs → vue-ui-scatter-D6Yb6VpP.cjs} +1 -1
  103. package/dist/{vue-ui-scatter-6wDrQ5fP.js → vue-ui-scatter-E_WveJ4p.js} +36 -36
  104. package/dist/{vue-ui-screenshot-CIAlcAvq.js → vue-ui-screenshot-CbLsOjZv.js} +1 -1
  105. package/dist/{vue-ui-screenshot-ChB7VFUO.cjs → vue-ui-screenshot-DhvqiF7S.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-DlnPFtb4.cjs → vue-ui-skeleton-73YO0ovP.cjs} +1 -1
  107. package/dist/{vue-ui-skeleton-BMRe3SzB.js → vue-ui-skeleton-Bgf16k10.js} +3 -3
  108. package/dist/{vue-ui-smiley-DkrQ5gDD.cjs → vue-ui-smiley-D-QDQ3Re.cjs} +1 -1
  109. package/dist/{vue-ui-smiley-CN5FWJ1G.js → vue-ui-smiley-ne5pBMum.js} +2 -2
  110. package/dist/{vue-ui-spark-trend-MNkadB41.js → vue-ui-spark-trend-BkiRBoVD.js} +13 -13
  111. package/dist/{vue-ui-spark-trend-BlOdnAb4.cjs → vue-ui-spark-trend-Dq1hox65.cjs} +1 -1
  112. package/dist/{vue-ui-sparkbar-CBPO2mUa.js → vue-ui-sparkbar--Q2alJoW.js} +4 -4
  113. package/dist/{vue-ui-sparkbar-ChTbwY11.cjs → vue-ui-sparkbar-DV5CtFQY.cjs} +1 -1
  114. package/dist/{vue-ui-sparkgauge-VLkIev3p.js → vue-ui-sparkgauge-BOcEbdij.js} +4 -4
  115. package/dist/{vue-ui-sparkgauge-B7yvQfZW.cjs → vue-ui-sparkgauge-BVNkRW_m.cjs} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-DbOxX4Ks.js → vue-ui-sparkhistogram-CIJmWjb4.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram-mYU6RAK_.cjs → vue-ui-sparkhistogram-CUiNT8vT.cjs} +1 -1
  118. package/dist/vue-ui-sparkline-BFlRfhM6.cjs +1 -0
  119. package/dist/{vue-ui-sparkline-D_-31O2S.js → vue-ui-sparkline-lY0wS6kU.js} +96 -96
  120. package/dist/{vue-ui-sparkstackbar-KaFMlIAL.cjs → vue-ui-sparkstackbar-CGeg_k0k.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-gW7rpJmQ.js → vue-ui-sparkstackbar-GHM4EY7-.js} +5 -5
  122. package/dist/vue-ui-stackbar-CQur8zP0.cjs +6 -0
  123. package/dist/vue-ui-stackbar-uR3T6rG4.js +1114 -0
  124. package/dist/{vue-ui-strip-plot-MlP5pDNx.cjs → vue-ui-strip-plot-CBYrZEIt.cjs} +1 -1
  125. package/dist/{vue-ui-strip-plot-4o1zAxG_.js → vue-ui-strip-plot-CNFrYVZ6.js} +11 -11
  126. package/dist/{vue-ui-table-B0PFrkLI.cjs → vue-ui-table-BbTwHDCo.cjs} +1 -1
  127. package/dist/{vue-ui-table-DWNrd7zM.js → vue-ui-table-DZV-uDG2.js} +1 -1
  128. package/dist/{vue-ui-table-heatmap-BSKCS8Lq.js → vue-ui-table-heatmap-DQBm_9Z3.js} +14 -14
  129. package/dist/{vue-ui-table-heatmap-4k74Ux7O.cjs → vue-ui-table-heatmap-DSgQpgxG.cjs} +1 -1
  130. package/dist/{vue-ui-table-sparkline-DCCogh2-.cjs → vue-ui-table-sparkline-AFK2LNsw.cjs} +1 -1
  131. package/dist/{vue-ui-table-sparkline-BrImSTh0.js → vue-ui-table-sparkline-wWAVQ0es.js} +5 -5
  132. package/dist/{vue-ui-thermometer-DswmMXiU.cjs → vue-ui-thermometer-CGFQfRUy.cjs} +1 -1
  133. package/dist/{vue-ui-thermometer-DHEoT4yB.js → vue-ui-thermometer-DRZWIAFj.js} +7 -7
  134. package/dist/{vue-ui-timer-Tv94CYqL.cjs → vue-ui-timer-C-RRrh5f.cjs} +1 -1
  135. package/dist/{vue-ui-timer-BNFihNgK.js → vue-ui-timer-D2_1bbpl.js} +5 -5
  136. package/dist/{vue-ui-tiremarks-B2kuKLe-.cjs → vue-ui-tiremarks-CIeid_A2.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-DzaUfiET.js → vue-ui-tiremarks-CdX2b-Fq.js} +7 -7
  138. package/dist/{vue-ui-treemap-qKZJcEYe.js → vue-ui-treemap-CgzgE20q.js} +11 -11
  139. package/dist/{vue-ui-treemap-Dmt3RPF2.cjs → vue-ui-treemap-r8xOrE8F.cjs} +1 -1
  140. package/dist/vue-ui-vertical-bar-BcxAjcoh.cjs +4 -0
  141. package/dist/vue-ui-vertical-bar-v9LvL35a.js +936 -0
  142. package/dist/{vue-ui-waffle-DjJoezg-.js → vue-ui-waffle-0mHE8fud.js} +11 -11
  143. package/dist/{vue-ui-waffle-fWQvVbAH.cjs → vue-ui-waffle-5h_9tS3C.cjs} +1 -1
  144. package/dist/{vue-ui-wheel-DOrWSWt6.js → vue-ui-wheel-BWL-td7-.js} +7 -7
  145. package/dist/{vue-ui-wheel-2qIHyZe1.cjs → vue-ui-wheel-rL5Shua2.cjs} +1 -1
  146. package/dist/{vue-ui-word-cloud-Tgg5jCE6.cjs → vue-ui-word-cloud-2E23n-B8.cjs} +1 -1
  147. package/dist/{vue-ui-word-cloud-UPPKGsXt.js → vue-ui-word-cloud-OkAF9hSC.js} +10 -10
  148. package/dist/{vue-ui-xy-zCJv-Vao.js → vue-ui-xy-C8E2WzGt.js} +866 -819
  149. package/dist/vue-ui-xy-DbJNxL5O.cjs +3 -0
  150. package/dist/{vue-ui-xy-canvas-paHHRtqs.js → vue-ui-xy-canvas-C_0c8FlA.js} +31 -31
  151. package/dist/{vue-ui-xy-canvas-Dm3YUQ3g.cjs → vue-ui-xy-canvas-I7rw1uDf.cjs} +1 -1
  152. package/package.json +1 -1
  153. package/dist/Legend-CqilK5CI.cjs +0 -1
  154. package/dist/Legend-WOejx9sp.js +0 -68
  155. package/dist/vue-ui-donut-D5mDCNky.cjs +0 -1
  156. package/dist/vue-ui-donut-DDayabSz.js +0 -1122
  157. package/dist/vue-ui-gauge-Uo_1rs0Z.cjs +0 -1
  158. package/dist/vue-ui-rings-Bp0WLW4E.js +0 -628
  159. package/dist/vue-ui-rings-BwvTmRCE.cjs +0 -2
  160. package/dist/vue-ui-sparkline-DO496Tk5.cjs +0 -1
  161. package/dist/vue-ui-stackbar-CYHsSzEK.cjs +0 -6
  162. package/dist/vue-ui-stackbar-vIyS6oag.js +0 -1061
  163. package/dist/vue-ui-vertical-bar-CMXtevyE.js +0 -888
  164. package/dist/vue-ui-vertical-bar-CQ_qEJ_O.cjs +0 -4
  165. package/dist/vue-ui-xy-CMde0Kq-.cjs +0 -3
@@ -0,0 +1,1114 @@
1
+ import { useSlots as It, computed as w, ref as g, onMounted as et, watch as tt, nextTick as he, openBlock as o, createElementBlock as s, normalizeClass as te, normalizeStyle as U, unref as m, createBlock as Z, createCommentVNode as v, renderSlot as x, createVNode as ae, createSlots as at, withCtx as z, normalizeProps as I, guardReactiveProps as O, Fragment as h, renderList as y, createElementVNode as Y, toDisplayString as $, createTextVNode as Ot } from "vue";
2
+ import { u as Pt, c as lt, t as Rt, a as At, p as ve, C as de, b as Vt, o as Dt, e as rt, g as Et, d as Ft, a9 as ye, a5 as ot, D as st, X as Ht, l as Wt, a2 as ge, G as it, f as X, x as nt, i as ut, y as Bt, q as Ut, r as Yt } from "./index-BVNcFEqn.js";
3
+ import { u as ct } from "./useNestedProp-D79dWdel.js";
4
+ import { t as Xt, u as Gt } from "./useResponsive-CoxXLe23.js";
5
+ import { u as Jt, U as qt } from "./usePrinter-Bcfs_I6G.js";
6
+ import { S as Zt } from "./Slicer-CopZgIzh.js";
7
+ import { _ as Kt } from "./Tooltip-B-0uEV3l.js";
8
+ import { _ as Qt } from "./Title-DyUTj8GI.js";
9
+ import { L as jt } from "./Legend-DGUxLqhs.js";
10
+ import ea from "./vue-ui-accordion-GNblUy42.js";
11
+ import { D as ta } from "./DataTable-DX_jYNWG.js";
12
+ import aa from "./vue-ui-skeleton-Bgf16k10.js";
13
+ import { _ as la } from "./PackageVersion-B9_Ed72C.js";
14
+ import { P as ra } from "./PenAndPaper-CzjoEhsO.js";
15
+ import { u as oa } from "./useUserOptionState-BIvW1Kz7.js";
16
+ import { _ as sa } from "./Shape-aXd72O71.js";
17
+ import { _ as ia } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
+ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"], ha = { key: 1 }, va = ["id"], da = ["stop-color"], ya = ["stop-color"], ga = ["stop-color"], ba = ["x1", "x2", "y1", "y2", "stroke"], fa = ["x1", "x2", "y1", "y2", "stroke"], ma = ["x1", "x2", "y1", "y2", "stroke"], pa = ["x1", "x2", "y1", "y2", "stroke"], xa = { key: 0 }, ka = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], wa = { key: 0 }, za = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], _a = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ca = { key: 0 }, La = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ma = ["x", "y", "font-size", "fill", "font-weight"], Ta = ["transform", "font-size", "fill", "font-weight"], Na = ["x", "y", "font-size", "fill", "font-weight"], Ia = { key: 0 }, Oa = ["x", "y", "font-size", "font-weight", "fill"], Pa = ["x", "y", "font-size", "fill", "font-weight"], Ra = { key: 0 }, Aa = ["x", "y", "font-size", "font-weight", "fill"], Va = ["x1", "x2", "y1", "y2", "stroke"], Da = ["x", "y", "font-size", "font-weight", "fill"], Ea = ["x1", "x2", "y1", "y2", "stroke"], Fa = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Ha = { key: 0 }, Wa = { key: 1 }, Ba = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Ua = { key: 0 }, Ya = { key: 1 }, Xa = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Ga = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Ja = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], qa = {
19
+ key: 4,
20
+ class: "vue-data-ui-watermark"
21
+ }, Za = ["onClick"], Ka = ["innerHTML"], Qa = {
22
+ __name: "vue-ui-stackbar",
23
+ props: {
24
+ config: {
25
+ type: Object,
26
+ default() {
27
+ return {};
28
+ }
29
+ },
30
+ dataset: {
31
+ type: Array,
32
+ default() {
33
+ return [];
34
+ }
35
+ }
36
+ },
37
+ emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
38
+ setup(be, { expose: ht, emit: fe }) {
39
+ const b = be, { vue_ui_stackbar: vt } = Pt(), dt = It(), G = w({
40
+ get() {
41
+ return !!b.dataset && b.dataset.length;
42
+ },
43
+ set(a) {
44
+ return a;
45
+ }
46
+ }), J = g(null), R = g(lt()), le = g(!1), we = g(null), me = g(""), L = g([]), ze = g(0), _e = g(null), Ce = g(null), Le = g(null), Se = g(null), $e = g(0), re = g(!1), K = g(null), E = g(!1), yt = g(0), gt = g(0), bt = g(0), q = g(null);
47
+ et(() => {
48
+ xe();
49
+ });
50
+ const e = w({
51
+ get: () => Ne(),
52
+ set: (a) => a
53
+ }), { userOptionsVisible: pe, setUserOptionsVisibility: Me, keepUserOptionState: Te } = oa({ config: e.value });
54
+ function Ne() {
55
+ const a = ct({
56
+ userConfig: b.config,
57
+ defaultConfig: vt
58
+ });
59
+ let l = {};
60
+ return a.theme ? l = {
61
+ ...ct({
62
+ userConfig: Rt.vue_ui_stackbar[a.theme] || b.config,
63
+ defaultConfig: a
64
+ }),
65
+ customPalette: At[a.theme] || ve
66
+ } : l = a, b.config && de(b.config, "style.chart.grid.scale.scaleMin") ? l.style.chart.grid.scale.scaleMin = b.config.style.chart.grid.scale.scaleMin : l.style.chart.grid.scale.scaleMin = null, b.config && de(b.config, "style.chart.grid.scale.scaleMax") ? l.style.chart.grid.scale.scaleMax = b.config.style.chart.grid.scale.scaleMax : l.style.chart.grid.scale.scaleMax = null, b.config && de(b.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = b.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, b.config && de(b.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = b.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, l;
67
+ }
68
+ tt(() => b.config, (a) => {
69
+ e.value = Ne(), pe.value = !e.value.showOnChartHover, xe(), yt.value += 1, gt.value += 1, bt.value += 1;
70
+ }, { deep: !0 }), tt(() => b.dataset, (a) => {
71
+ De();
72
+ }, { deep: !0 });
73
+ const C = g({
74
+ dataLabels: {
75
+ show: e.value.style.chart.bars.dataLabels.show
76
+ },
77
+ showTable: e.value.table.show,
78
+ showTooltip: e.value.style.chart.tooltip.show
79
+ }), { isPrinting: Ie, isImaging: Oe, generatePdf: Pe, generateImage: Re } = Jt({
80
+ elementId: `stackbar_${R.value}`,
81
+ fileName: e.value.style.chart.title.text || "vue-ui-stackbar"
82
+ }), oe = g({
83
+ width: e.value.style.chart.width,
84
+ height: e.value.style.chart.height,
85
+ paddingRatio: {
86
+ top: e.value.style.chart.padding.top / e.value.style.chart.height,
87
+ right: e.value.style.chart.padding.right / e.value.style.chart.width,
88
+ bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
89
+ left: e.value.style.chart.padding.left / e.value.style.chart.width
90
+ }
91
+ }), ft = w(() => Vt(e.value.customPalette)), Ae = g(null), Ve = g(null);
92
+ et(() => {
93
+ xe();
94
+ });
95
+ function xe() {
96
+ if (Dt(b.dataset) ? rt({
97
+ componentName: "VueUiStackbar",
98
+ type: "dataset"
99
+ }) : b.dataset.forEach((a, l) => {
100
+ Et({
101
+ datasetObject: a,
102
+ requiredAttributes: ["name", "series"]
103
+ }).forEach((t) => {
104
+ G.value = !1, rt({
105
+ componentName: "VueUiStackbar",
106
+ type: "datasetSerieAttribute",
107
+ property: t,
108
+ index: l
109
+ });
110
+ });
111
+ }), setTimeout(() => {
112
+ E.value = !0;
113
+ }, 10), e.value.responsive) {
114
+ const a = Xt(() => {
115
+ E.value = !1;
116
+ const { width: l, height: t } = Gt({
117
+ chart: J.value,
118
+ title: e.value.style.chart.title.text ? _e.value : null,
119
+ legend: e.value.style.chart.legend.show ? Ce.value : null,
120
+ slicer: e.value.style.chart.zoom.show && V.value > 1 ? Le.value : null,
121
+ source: Se.value
122
+ });
123
+ oe.value.width = l, oe.value.height = t, clearTimeout(Ve.value), Ve.value = setTimeout(() => {
124
+ E.value = !0;
125
+ }, 10);
126
+ });
127
+ Ae.value = new ResizeObserver(a), Ae.value.observe(J.value.parentNode);
128
+ }
129
+ Ee();
130
+ }
131
+ const i = w(() => {
132
+ const { height: a, width: l } = oe.value, { right: t } = oe.value.paddingRatio, r = e.value.style.chart.padding.top, u = l - l * t, n = a - e.value.style.chart.padding.bottom, _ = e.value.style.chart.padding.left, F = l - _ - l * t, H = a - r - e.value.style.chart.padding.bottom;
133
+ return {
134
+ chartHeight: a,
135
+ chartWidth: l,
136
+ top: r,
137
+ right: u,
138
+ bottom: n,
139
+ left: _,
140
+ width: F,
141
+ height: H < 0 ? 0 : H
142
+ };
143
+ }), A = w(() => b.dataset.map((a, l) => {
144
+ const t = Ft(a.color) || ft.value[l] || ve[l] || ve[l % ve.length];
145
+ return {
146
+ ...a,
147
+ // In distributed mode, all values are converted to positive
148
+ series: JSON.parse(JSON.stringify(a.series)).map((r) => e.value.style.chart.bars.distributed ? Math.abs(r) : r),
149
+ // Store signs to manage display of neg values in distributed mode
150
+ signedSeries: a.series.map((r) => r >= 0 ? 1 : -1),
151
+ absoluteIndex: l,
152
+ id: lt(),
153
+ color: t
154
+ };
155
+ })), V = w(() => Math.max(...A.value.filter((a) => !L.value.includes(a.id)).map((a) => a.series.length))), c = g({
156
+ start: 0,
157
+ end: Math.max(...b.dataset.map((a) => a.series.length))
158
+ });
159
+ function De() {
160
+ Ee();
161
+ }
162
+ async function Ee() {
163
+ (e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && q.value ? (e.value.style.chart.zoom.startIndex !== null && (await he(), await he(), q.value && q.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await he(), await he(), q.value && q.value.setEndValue(mt(e.value.style.chart.zoom.endIndex + 1)))) : (c.value = {
164
+ start: 0,
165
+ end: Math.max(...b.dataset.map((a) => a.series.length))
166
+ }, $e.value += 1);
167
+ }
168
+ function mt(a) {
169
+ const l = Math.max(...b.dataset.map((t) => t.series.length));
170
+ return a > l ? l : a < 0 || e.value.style.chart.zoom.startIndex !== null && a < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : a;
171
+ }
172
+ const d = w(() => {
173
+ let a;
174
+ return e.value.orientation === "vertical" ? a = i.value.width / (c.value.end - c.value.start) : a = i.value.height / (c.value.end - c.value.start), a <= 0 ? 0 : a;
175
+ }), Q = w(() => ye(A.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)), pt = w(() => ye(A.value.filter((a) => !L.value.includes(a.id)).map((a) => ({
176
+ ...a,
177
+ series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
178
+ }))).slice(c.value.start, c.value.end)), se = w(() => {
179
+ const a = A.value.filter((l) => !L.value.includes(l.id));
180
+ return {
181
+ positive: ye(a.map((l) => ({
182
+ ...l,
183
+ series: l.series.slice(c.value.start, c.value.end).map((t) => t >= 0 ? t : 0)
184
+ }))),
185
+ negative: ye(a.map((l) => ({
186
+ ...l,
187
+ series: l.series.slice(c.value.start, c.value.end).map((t) => t < 0 ? t : 0)
188
+ })))
189
+ };
190
+ }), N = w(() => {
191
+ const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...se.value.positive), l = Math.min(...se.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(l) ? 0 : l, r = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? ot(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : st(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
192
+ return r.ticks.map((u) => ({
193
+ zero: i.value.bottom - i.value.height * (Math.abs(r.min) / (r.max + Math.abs(r.min))),
194
+ y: i.value.bottom - i.value.height * ((u + Math.abs(r.min)) / (r.max + Math.abs(r.min))),
195
+ x: i.value.left - 8,
196
+ horizontal_zero: i.value.left + i.value.width * (Math.abs(r.min) / (r.max + Math.abs(r.min))),
197
+ horizontal_x: i.value.left + i.value.width * ((u + Math.abs(r.min)) / (r.max + Math.abs(r.min))),
198
+ horizontal_y: i.value.bottom - 8,
199
+ value: u
200
+ }));
201
+ }), D = w(() => {
202
+ const a = [];
203
+ for (let l = 0; l < V.value; l += 1)
204
+ a.push({
205
+ text: e.value.style.chart.grid.x.timeLabels.values[l] || String(l),
206
+ absoluteIndex: l
207
+ });
208
+ return a.slice(c.value.start, c.value.end);
209
+ }), k = w(() => {
210
+ if (!G.value) return [];
211
+ 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);
212
+ const u = Math.max(...se.value.positive) || 0, n = Math.min(...se.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(n) ? 0 : n, F = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? ot(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : u < 0 ? 0 : u, e.value.style.chart.grid.scale.ticks) : st(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : u < 0 ? 0 : u, e.value.style.chart.grid.scale.ticks), { min: H, max: j } = F, W = j + (H >= 0 ? 0 : Math.abs(H)) || 1, S = i.value.height, ce = i.value.width, Qe = N.value[0] ? N.value[0].zero : i.value.bottom, je = N.value[0] ? N.value[0].horizontal_zero : i.value.left;
213
+ return A.value.filter((ee) => !L.value.includes(ee.id)).map((ee) => {
214
+ const P = ee.series.slice(c.value.start, c.value.end), _t = ee.signedSeries.slice(c.value.start, c.value.end), Ct = P.map((f, p) => i.value.left + d.value * p + d.value * e.value.style.chart.bars.gapRatio / 4), Lt = P.map((f, p) => i.value.top + d.value * p + d.value * e.value.style.chart.bars.gapRatio / 4), St = P.map((f, p) => {
215
+ const M = e.value.style.chart.bars.distributed ? (f || 0) / Q.value[p] : (f || 0) / W;
216
+ let B, T;
217
+ return f > 0 ? (T = S * M, B = Qe - T - a[p], a[p] += T) : (T = S * M, B = Qe + t[p], t[p] += Math.abs(T)), B;
218
+ }), $t = P.map((f, p) => {
219
+ const M = e.value.style.chart.bars.distributed ? (f || 0) / Q.value[p] : (f || 0) / W;
220
+ let B, T;
221
+ return f > 0 ? (T = ce * M, B = je + l[p], l[p] += T) : (T = ce * M, B = je - Math.abs(T) - r[p], r[p] += Math.abs(T)), B;
222
+ }), Mt = P.map((f, p) => {
223
+ const M = e.value.style.chart.bars.distributed ? (f || 0) / Q.value[p] : (f || 0) / W;
224
+ return f > 0 ? S * M : S * Math.abs(M);
225
+ }), Tt = P.map((f, p) => {
226
+ const M = e.value.style.chart.bars.distributed ? (f || 0) / Q.value[p] : (f || 0) / W;
227
+ return f > 0 ? ce * M : ce * Math.abs(M);
228
+ }), Nt = P.map((f) => Math.abs(f)).reduce((f, p) => f + p, 0);
229
+ return {
230
+ ...ee,
231
+ proportions: P.map((f, p) => e.value.style.chart.bars.distributed ? (f || 0) / Q.value[p] : (f || 0) / Nt),
232
+ series: P,
233
+ signedSeries: _t,
234
+ x: Ct,
235
+ y: St,
236
+ height: Mt,
237
+ horizontal_width: Tt,
238
+ horizontal_y: Lt,
239
+ horizontal_x: $t
240
+ };
241
+ });
242
+ }), Fe = w(() => pt.value.map((a, l) => ({
243
+ value: a,
244
+ sign: a >= 0 ? 1 : -1
245
+ })));
246
+ function ie(a, l, t, r, u) {
247
+ const n = u === -1 && a >= 0 ? -a : a;
248
+ return ut(
249
+ e.value.style.chart.bars.dataLabels.formatter,
250
+ n,
251
+ X({
252
+ p: e.value.style.chart.bars.dataLabels.prefix,
253
+ v: n,
254
+ s: e.value.style.chart.bars.dataLabels.suffix,
255
+ r: e.value.style.chart.bars.dataLabels.rounding
256
+ }),
257
+ { datapoint: l, seriesIndex: t, datapointIndex: r }
258
+ );
259
+ }
260
+ function He(a, l, t, r) {
261
+ return ut(
262
+ e.value.style.chart.bars.dataLabels.formatter,
263
+ a,
264
+ X({
265
+ v: isNaN(a) ? 0 : a,
266
+ s: "%",
267
+ r: e.value.style.chart.bars.dataLabels.rounding
268
+ }),
269
+ { datapoint: l, seriesIndex: t, datapointIndex: r }
270
+ );
271
+ }
272
+ function We(a) {
273
+ const l = JSON.parse(JSON.stringify(k.value)).map((t) => ({
274
+ name: t.name,
275
+ value: t.series[a] === 0 ? 0 : t.series[a] || null,
276
+ proportion: t.proportions[a] || null,
277
+ color: t.color,
278
+ id: t.id
279
+ }));
280
+ fe("selectDatapoint", { datapoint: l, period: D.value[a] });
281
+ }
282
+ function Be(a) {
283
+ K.value = a, le.value = !0;
284
+ const l = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(k.value)).map((u) => ({
285
+ name: u.name,
286
+ absoluteIndex: u.absoluteIndex,
287
+ value: u.series[a] === 0 ? 0 : (u.signedSeries[a] === -1 && u.series[a] >= 0 ? -u.series[a] : u.series[a]) || null,
288
+ proportion: u.proportions[a] || null,
289
+ color: u.color,
290
+ id: u.id
291
+ })), r = t.map((u) => Math.abs(u.value)).reduce((u, n) => u + n, 0);
292
+ if (nt(l) && Bt(() => l({
293
+ seriesIndex: a,
294
+ datapoint: t,
295
+ series: k.value,
296
+ config: e.value
297
+ })))
298
+ me.value = l({
299
+ seriesIndex: a,
300
+ datapoint: t,
301
+ series: k.value,
302
+ config: e.value
303
+ });
304
+ else {
305
+ const {
306
+ showValue: u,
307
+ showPercentage: n,
308
+ borderColor: _,
309
+ roundingValue: F,
310
+ roundingPercentage: H
311
+ } = e.value.style.chart.tooltip;
312
+ let j = "";
313
+ D.value[a] && D.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (j += `<div style="width:100%;text-align:center;border-bottom:1px solid ${_};padding-bottom:6px;margin-bottom:3px;">${D.value[a].text}</div>`);
314
+ const W = [
315
+ u && n ? "(" : "",
316
+ u && n ? ")" : ""
317
+ ];
318
+ t.reverse().forEach((S) => {
319
+ j += `
320
+ <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
321
+ <svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${S.id})` : S.color}"/>${dt.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${R.value}_${S.absoluteIndex})"/>` : ""}</svg>
322
+ ${S.name}${u || n ? ":" : ""} ${u ? X({
323
+ p: e.value.style.chart.bars.dataLabels.prefix,
324
+ v: S.value,
325
+ s: e.value.style.chart.bars.dataLabels.suffix,
326
+ r: F
327
+ }) : ""} ${W[0]}${n ? X({
328
+ v: isNaN(S.value / r) ? 0 : Math.abs(S.value) / r * 100,
329
+ // Negs are absed to show relative proportion to absolute total. It's opinionated.
330
+ s: "%",
331
+ r: H
332
+ }) : ""}${W[1]}
333
+ </div>
334
+ `;
335
+ }), me.value = `<div>${j}</div>`;
336
+ }
337
+ }
338
+ function xt(a) {
339
+ re.value = a, ze.value += 1;
340
+ }
341
+ function Ue() {
342
+ C.value.showTable = !C.value.showTable;
343
+ }
344
+ function Ye() {
345
+ C.value.dataLabels.show = !C.value.dataLabels.show;
346
+ }
347
+ function Xe() {
348
+ C.value.showTooltip = !C.value.showTooltip;
349
+ }
350
+ function kt() {
351
+ return k.value;
352
+ }
353
+ const Ge = w(() => {
354
+ if (k.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
355
+ const a = k.value.map(({ name: t, color: r }) => ({
356
+ label: t,
357
+ color: r
358
+ })), l = [];
359
+ for (let t = c.value.start; t < c.value.end; t += 1) {
360
+ const r = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
361
+ A.value.forEach((u) => {
362
+ r.push(Number((u.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
363
+ }), l.push(r);
364
+ }
365
+ return { head: a, body: l };
366
+ });
367
+ function Je() {
368
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = ["", ...Ge.value.head.map((n) => n.label)], t = Ge.value.body, r = a.concat([l]).concat(t), u = Ut(r);
369
+ Yt({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
370
+ }
371
+ const ne = w(() => {
372
+ const a = [""].concat(k.value.map((u) => u.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>');
373
+ let l = [];
374
+ for (let u = 0; u < V.value; u += 1) {
375
+ const n = k.value.map((_) => _.series[u] ?? 0).reduce((_, F) => _ + F, 0);
376
+ l.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[u] ?? u + 1].concat(k.value.map((_) => (_.series[u] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((n ?? 0).toFixed(e.value.table.td.roundingValue)));
377
+ }
378
+ const t = {
379
+ th: {
380
+ backgroundColor: e.value.table.th.backgroundColor,
381
+ color: e.value.table.th.color,
382
+ outline: e.value.table.th.outline
383
+ },
384
+ td: {
385
+ backgroundColor: e.value.table.td.backgroundColor,
386
+ color: e.value.table.td.color,
387
+ outline: e.value.table.td.outline
388
+ },
389
+ breakpoint: e.value.table.responsiveBreakpoint
390
+ }, r = [e.value.table.columnNames.period].concat(k.value.map((u) => u.name)).concat(e.value.table.columnNames.total);
391
+ return { head: a, body: l.slice(0, c.value.end - c.value.start), config: t, colNames: r };
392
+ });
393
+ function wt(a, l) {
394
+ if (fe("selectLegend", k.value.find((t) => t.absoluteIndex === a)), L.value.includes(l.id))
395
+ L.value = L.value.filter((t) => t !== l.id);
396
+ else {
397
+ if (L.value.length === A.value.length - 1) return;
398
+ L.value.push(l.id);
399
+ }
400
+ }
401
+ const qe = w(() => A.value.map((a, l) => ({
402
+ ...a,
403
+ shape: "square"
404
+ })).map((a) => ({
405
+ ...a,
406
+ opacity: L.value.includes(a.id) ? 0.5 : 1,
407
+ segregate: () => wt(a.absoluteIndex, a),
408
+ isSegregated: L.value.includes(a.id)
409
+ }))), zt = w(() => ({
410
+ cy: "stackbar-legend",
411
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
412
+ color: e.value.style.chart.legend.color,
413
+ fontSize: e.value.style.chart.legend.fontSize,
414
+ paddingBottom: 12,
415
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
416
+ })), ue = g(!1);
417
+ function ke() {
418
+ ue.value = !ue.value;
419
+ }
420
+ function Ze(a, l) {
421
+ const t = JSON.parse(JSON.stringify(k.value)).map((r) => ({
422
+ name: r.name,
423
+ value: r.series[l] === 0 ? 0 : (r.signedSeries[l] === -1 && r.series[l] >= 0 ? -r.series[l] : r.series[l]) || null,
424
+ proportion: r.proportions[l] || null,
425
+ color: r.color,
426
+ id: r.id
427
+ }));
428
+ fe("selectTimeLabel", {
429
+ datapoint: t,
430
+ absoluteIndex: a.absoluteIndex,
431
+ label: a.text
432
+ });
433
+ }
434
+ function Ke(a, l) {
435
+ return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? l > 0 : !0 : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
436
+ }
437
+ return ht({
438
+ getData: kt,
439
+ generatePdf: Pe,
440
+ generateCsv: Je,
441
+ generateImage: Re,
442
+ toggleTable: Ue,
443
+ toggleLabels: Ye,
444
+ toggleTooltip: Xe,
445
+ toggleAnnotator: ke
446
+ }), (a, l) => (o(), s("div", {
447
+ id: `stackbar_${R.value}`,
448
+ ref_key: "stackbarChart",
449
+ ref: J,
450
+ class: te({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": re.value }),
451
+ style: U(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
452
+ onMouseenter: l[6] || (l[6] = () => m(Me)(!0)),
453
+ onMouseleave: l[7] || (l[7] = () => m(Me)(!1))
454
+ }, [
455
+ e.value.userOptions.buttons.annotator ? (o(), Z(ra, {
456
+ key: 0,
457
+ parent: J.value,
458
+ backgroundColor: e.value.style.chart.backgroundColor,
459
+ color: e.value.style.chart.color,
460
+ active: ue.value,
461
+ onClose: ke
462
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
463
+ x(a.$slots, "userConfig", {}, void 0, !0),
464
+ e.value.style.chart.title.text ? (o(), s("div", {
465
+ key: 1,
466
+ ref_key: "chartTitle",
467
+ ref: _e,
468
+ style: "width:100%;background:transparent;padding-bottom:24px"
469
+ }, [
470
+ ae(Qt, {
471
+ config: {
472
+ title: {
473
+ cy: "stackbar-title",
474
+ ...e.value.style.chart.title
475
+ },
476
+ subtitle: {
477
+ cy: "stackbar-subtitle",
478
+ ...e.value.style.chart.title.subtitle
479
+ }
480
+ }
481
+ }, null, 8, ["config"])
482
+ ], 512)) : v("", !0),
483
+ e.value.userOptions.show && G.value && (m(Te) || m(pe)) ? (o(), Z(qt, {
484
+ ref: "details",
485
+ key: `user_option_${ze.value}`,
486
+ backgroundColor: e.value.style.chart.backgroundColor,
487
+ color: e.value.style.chart.color,
488
+ isPrinting: m(Ie),
489
+ isImaging: m(Oe),
490
+ uid: R.value,
491
+ hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
492
+ hasPdf: e.value.userOptions.buttons.pdf,
493
+ hasImg: e.value.userOptions.buttons.img,
494
+ hasXls: e.value.userOptions.buttons.csv,
495
+ hasTable: e.value.userOptions.buttons.table,
496
+ hasLabel: e.value.userOptions.buttons.labels,
497
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
498
+ isFullscreen: re.value,
499
+ chartElement: J.value,
500
+ position: e.value.userOptions.position,
501
+ isTooltip: C.value.showTooltip,
502
+ titles: { ...e.value.userOptions.buttonTitles },
503
+ hasAnnotator: e.value.userOptions.buttons.annotator,
504
+ isAnnotation: ue.value,
505
+ onToggleFullscreen: xt,
506
+ onGeneratePdf: m(Pe),
507
+ onGenerateCsv: Je,
508
+ onGenerateImage: m(Re),
509
+ onToggleTable: Ue,
510
+ onToggleLabels: Ye,
511
+ onToggleTooltip: Xe,
512
+ onToggleAnnotator: ke,
513
+ style: U({
514
+ visibility: m(Te) ? m(pe) ? "visible" : "hidden" : "visible"
515
+ })
516
+ }, at({ _: 2 }, [
517
+ a.$slots.optionTooltip ? {
518
+ name: "optionTooltip",
519
+ fn: z(() => [
520
+ x(a.$slots, "optionTooltip", {}, void 0, !0)
521
+ ]),
522
+ key: "0"
523
+ } : void 0,
524
+ a.$slots.optionPdf ? {
525
+ name: "optionPdf",
526
+ fn: z(() => [
527
+ x(a.$slots, "optionPdf", {}, void 0, !0)
528
+ ]),
529
+ key: "1"
530
+ } : void 0,
531
+ a.$slots.optionCsv ? {
532
+ name: "optionCsv",
533
+ fn: z(() => [
534
+ x(a.$slots, "optionCsv", {}, void 0, !0)
535
+ ]),
536
+ key: "2"
537
+ } : void 0,
538
+ a.$slots.optionImg ? {
539
+ name: "optionImg",
540
+ fn: z(() => [
541
+ x(a.$slots, "optionImg", {}, void 0, !0)
542
+ ]),
543
+ key: "3"
544
+ } : void 0,
545
+ a.$slots.optionTable ? {
546
+ name: "optionTable",
547
+ fn: z(() => [
548
+ x(a.$slots, "optionTable", {}, void 0, !0)
549
+ ]),
550
+ key: "4"
551
+ } : void 0,
552
+ a.$slots.optionLabels ? {
553
+ name: "optionLabels",
554
+ fn: z(() => [
555
+ x(a.$slots, "optionLabels", {}, void 0, !0)
556
+ ]),
557
+ key: "5"
558
+ } : void 0,
559
+ a.$slots.optionFullscreen ? {
560
+ name: "optionFullscreen",
561
+ fn: z(({ toggleFullscreen: t, isFullscreen: r }) => [
562
+ x(a.$slots, "optionFullscreen", I(O({ toggleFullscreen: t, isFullscreen: r })), void 0, !0)
563
+ ]),
564
+ key: "6"
565
+ } : void 0,
566
+ a.$slots.optionAnnotator ? {
567
+ name: "optionAnnotator",
568
+ fn: z(({ toggleAnnotator: t, isAnnotator: r }) => [
569
+ x(a.$slots, "optionAnnotator", I(O({ toggleAnnotator: t, isAnnotator: r })), void 0, !0)
570
+ ]),
571
+ key: "7"
572
+ } : void 0
573
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
574
+ G.value ? (o(), s("svg", {
575
+ key: 3,
576
+ xmlns: m(Ht),
577
+ viewBox: `0 0 ${i.value.chartWidth <= 0 ? 10 : i.value.chartWidth} ${i.value.chartHeight <= 0 ? 10 : i.value.chartHeight}`,
578
+ style: U(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
579
+ }, [
580
+ ae(la),
581
+ a.$slots["chart-background"] ? (o(), s("foreignObject", {
582
+ key: 0,
583
+ x: i.value.left,
584
+ y: i.value.top,
585
+ width: i.value.width <= 0 ? 10 : i.value.width,
586
+ height: i.value.height <= 0 ? 10 : i.value.height,
587
+ style: {
588
+ pointerEvents: "none"
589
+ }
590
+ }, [
591
+ x(a.$slots, "chart-background", {}, void 0, !0)
592
+ ], 8, ca)) : v("", !0),
593
+ e.value.style.chart.bars.gradient.show ? (o(), s("defs", ha, [
594
+ (o(!0), s(h, null, y(k.value, (t, r) => (o(), s("linearGradient", {
595
+ id: `gradient_${t.id}`,
596
+ x1: "0%",
597
+ y1: "0%",
598
+ x2: "0%",
599
+ y2: "100%"
600
+ }, [
601
+ Y("stop", {
602
+ offset: "0%",
603
+ "stop-color": t.color
604
+ }, null, 8, da),
605
+ Y("stop", {
606
+ offset: "61.8%",
607
+ "stop-color": m(Wt)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
608
+ }, null, 8, ya),
609
+ Y("stop", {
610
+ offset: "100%",
611
+ "stop-color": t.color
612
+ }, null, 8, ga)
613
+ ], 8, va))), 256))
614
+ ])) : v("", !0),
615
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (o(!0), s(h, { key: 2 }, y(N.value, (t, r) => (o(), s("line", {
616
+ x1: i.value.left,
617
+ x2: i.value.right,
618
+ y1: t.y,
619
+ y2: t.y,
620
+ stroke: e.value.style.chart.grid.x.axisColor,
621
+ "stroke-width": 1,
622
+ "stroke-linecap": "round"
623
+ }, null, 8, ba))), 256)) : v("", !0),
624
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), s(h, { key: 3 }, y(c.value.end - c.value.start + 1, (t, r) => (o(), s("line", {
625
+ x1: i.value.left,
626
+ x2: i.value.right,
627
+ y1: i.value.top + d.value * r,
628
+ y2: i.value.top + d.value * r,
629
+ stroke: e.value.style.chart.grid.y.axisColor,
630
+ "stroke-width": 1,
631
+ "stroke-linecap": "round"
632
+ }, null, 8, fa))), 256)) : v("", !0),
633
+ e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (o(!0), s(h, { key: 4 }, y(c.value.end - c.value.start + 1, (t, r) => (o(), s("line", {
634
+ x1: i.value.left + d.value * r,
635
+ x2: i.value.left + d.value * r,
636
+ y1: i.value.top,
637
+ y2: i.value.bottom,
638
+ stroke: e.value.style.chart.grid.y.axisColor,
639
+ "stroke-width": 1,
640
+ "stroke-linecap": "round"
641
+ }, null, 8, ma))), 256)) : v("", !0),
642
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), s(h, { key: 5 }, y(N.value, (t, r) => (o(), s("line", {
643
+ x1: t.horizontal_x,
644
+ x2: t.horizontal_x,
645
+ y1: i.value.top,
646
+ y2: i.value.bottom,
647
+ stroke: e.value.style.chart.grid.x.axisColor,
648
+ "stroke-width": 1,
649
+ "stroke-linecap": "round"
650
+ }, null, 8, pa))), 256)) : v("", !0),
651
+ (o(!0), s(h, null, y(k.value, (t, r) => (o(), s("g", null, [
652
+ a.$slots.pattern ? (o(), s("defs", xa, [
653
+ x(a.$slots, "pattern", I(O({ seriesIndex: t.absoluteIndex, patternId: `pattern_${R.value}_${t.absoluteIndex}` })), void 0, !0)
654
+ ])) : v("", !0),
655
+ e.value.orientation === "vertical" ? (o(), s(h, { key: 1 }, [
656
+ (o(!0), s(h, null, y(t.x, (u, n) => (o(), s("rect", {
657
+ x: u,
658
+ y: t.y[n] < 0 ? 0 : t.y[n],
659
+ height: t.height[n] < 0 ? 1e-4 : t.height[n] || 0,
660
+ rx: e.value.style.chart.bars.borderRadius > t.height[n] / 2 ? (t.height[n] < 0 ? 0 : t.height[n]) / 2 : e.value.style.chart.bars.borderRadius,
661
+ width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
662
+ fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
663
+ stroke: e.value.style.chart.backgroundColor,
664
+ "stroke-width": e.value.style.chart.bars.strokeWidth,
665
+ "stroke-linecap": "round",
666
+ "stroke-linejoin": "round",
667
+ class: te({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": E.value })
668
+ }, null, 10, ka))), 256)),
669
+ a.$slots.pattern ? (o(), s("g", wa, [
670
+ (o(!0), s(h, null, y(t.x, (u, n) => (o(), s("rect", {
671
+ x: u,
672
+ y: t.y[n] < 0 ? 0 : t.y[n],
673
+ height: t.height[n] < 0 ? 1e-4 : t.height[n] || 0,
674
+ rx: e.value.style.chart.bars.borderRadius > t.height[n] / 2 ? (t.height[n] < 0 ? 0 : t.height[n]) / 2 : e.value.style.chart.bars.borderRadius,
675
+ width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
676
+ fill: `url(#pattern_${R.value}_${t.absoluteIndex})`,
677
+ stroke: e.value.style.chart.backgroundColor,
678
+ "stroke-width": e.value.style.chart.bars.strokeWidth,
679
+ "stroke-linecap": "round",
680
+ "stroke-linejoin": "round",
681
+ class: te({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": E.value })
682
+ }, null, 10, za))), 256))
683
+ ])) : v("", !0)
684
+ ], 64)) : (o(), s(h, { key: 2 }, [
685
+ (o(!0), s(h, null, y(t.horizontal_x, (u, n) => (o(), s("rect", {
686
+ x: m(ge)(u, i.value.left),
687
+ y: t.horizontal_y[n] < 0 ? 0 : t.horizontal_y[n],
688
+ width: m(ge)(t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n]),
689
+ rx: e.value.style.chart.bars.borderRadius > t.height[n] / 2 ? (t.height[n] < 0 ? 0 : t.height[n]) / 2 : e.value.style.chart.bars.borderRadius,
690
+ height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
691
+ fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
692
+ stroke: e.value.style.chart.backgroundColor,
693
+ "stroke-width": e.value.style.chart.bars.strokeWidth,
694
+ "stroke-linecap": "round",
695
+ "stroke-linejoin": "round",
696
+ class: te({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": E.value })
697
+ }, null, 10, _a))), 256)),
698
+ a.$slots.pattern ? (o(), s("g", Ca, [
699
+ (o(!0), s(h, null, y(t.horizontal_x, (u, n) => (o(), s("rect", {
700
+ x: m(ge)(u, i.value.left),
701
+ y: t.horizontal_y[n] < 0 ? 0 : t.horizontal_y[n],
702
+ width: m(ge)(t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n]),
703
+ rx: e.value.style.chart.bars.borderRadius > t.height[n] / 2 ? (t.height[n] < 0 ? 0 : t.height[n]) / 2 : e.value.style.chart.bars.borderRadius,
704
+ height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
705
+ fill: `url(#pattern_${R.value}_${t.absoluteIndex})`,
706
+ stroke: e.value.style.chart.backgroundColor,
707
+ "stroke-width": e.value.style.chart.bars.strokeWidth,
708
+ "stroke-linecap": "round",
709
+ "stroke-linejoin": "round",
710
+ class: te({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": E.value })
711
+ }, null, 10, La))), 256))
712
+ ])) : v("", !0)
713
+ ], 64))
714
+ ]))), 256)),
715
+ e.value.style.chart.grid.x.showAxis ? (o(), s("line", {
716
+ key: 6,
717
+ x1: i.value.left,
718
+ x2: i.value.right,
719
+ y1: i.value.bottom,
720
+ y2: i.value.bottom,
721
+ stroke: e.value.style.chart.grid.x.axisColor,
722
+ "stroke-width": e.value.style.chart.grid.x.axisThickness,
723
+ "stroke-linecap": "round",
724
+ "stroke-linejoin": "round"
725
+ }, null, 8, Sa)) : v("", !0),
726
+ e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (o(), s("line", {
727
+ key: 7,
728
+ x1: i.value.left,
729
+ x2: i.value.left,
730
+ y1: i.value.top,
731
+ y2: i.value.bottom,
732
+ stroke: e.value.style.chart.grid.y.axisColor,
733
+ "stroke-width": e.value.style.chart.grid.y.axisThickness,
734
+ "stroke-linecap": "round",
735
+ "stroke-linejoin": "round"
736
+ }, null, 8, $a)) : v("", !0),
737
+ e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (o(), s("text", {
738
+ key: 8,
739
+ x: i.value.left + i.value.width / 2,
740
+ y: i.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
741
+ "font-size": e.value.style.chart.grid.x.axisName.fontSize,
742
+ fill: e.value.style.chart.grid.x.axisName.color,
743
+ "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
744
+ "text-anchor": "middle"
745
+ }, $(e.value.style.chart.grid.x.axisName.text), 9, Ma)) : v("", !0),
746
+ e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (o(), s("text", {
747
+ key: 9,
748
+ transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${i.value.top + i.value.height / 2}) rotate(-90)`,
749
+ "font-size": e.value.style.chart.grid.y.axisName.fontSize,
750
+ fill: e.value.style.chart.grid.y.axisName.color,
751
+ "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
752
+ "text-anchor": "middle"
753
+ }, $(e.value.style.chart.grid.y.axisName.text), 9, Ta)) : v("", !0),
754
+ C.value.dataLabels.show && e.value.orientation === "vertical" ? (o(), s(h, { key: 10 }, [
755
+ (o(!0), s(h, null, y(k.value, (t, r) => (o(), s("g", null, [
756
+ (o(!0), s(h, null, y(t.x, (u, n) => (o(), s(h, null, [
757
+ Ke(t.series[n], t.proportions[n]) ? (o(), s("text", {
758
+ key: 0,
759
+ x: u + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
760
+ y: t.y[n] + t.height[n] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
761
+ "font-size": e.value.style.chart.bars.dataLabels.fontSize,
762
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? m(it)(t.color) : e.value.style.chart.bars.dataLabels.color,
763
+ "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
764
+ "text-anchor": "middle"
765
+ }, $(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? He(t.proportions[n] * 100, t, r, n) : ie(t.series[n], t, r, n, t.signedSeries[n])), 9, Na)) : v("", !0)
766
+ ], 64))), 256))
767
+ ]))), 256)),
768
+ e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (o(), s("g", Ia, [
769
+ (o(!0), s(h, null, y(Fe.value, (t, r) => (o(), s(h, null, [
770
+ !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), s("text", {
771
+ key: 0,
772
+ x: i.value.left + d.value * r + d.value / 2,
773
+ y: i.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
774
+ "text-anchor": "middle",
775
+ "font-size": e.value.style.chart.bars.totalValues.fontSize,
776
+ "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
777
+ fill: e.value.style.chart.bars.totalValues.color
778
+ }, $(ie(t.value, t, r, t.sign)), 9, Oa)) : v("", !0)
779
+ ], 64))), 256))
780
+ ])) : v("", !0)
781
+ ], 64)) : v("", !0),
782
+ C.value.dataLabels.show && e.value.orientation === "horizontal" ? (o(), s(h, { key: 11 }, [
783
+ (o(!0), s(h, null, y(k.value, (t, r) => (o(), s("g", null, [
784
+ (o(!0), s(h, null, y(t.horizontal_x, (u, n) => (o(), s(h, null, [
785
+ Ke(t.series[n], t.proportions[n]) ? (o(), s("text", {
786
+ key: 0,
787
+ x: u + (t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n]) / 2,
788
+ y: t.horizontal_y[n] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
789
+ "font-size": e.value.style.chart.bars.dataLabels.fontSize,
790
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? m(it)(t.color) : e.value.style.chart.bars.dataLabels.color,
791
+ "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
792
+ "text-anchor": "middle"
793
+ }, $(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? He(t.proportions[n] * 100, t, r, n) : ie(t.series[n], t, r, n, t.signedSeries[n])), 9, Pa)) : v("", !0)
794
+ ], 64))), 256))
795
+ ]))), 256)),
796
+ e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (o(), s("g", Ra, [
797
+ (o(!0), s(h, null, y(Fe.value, (t, r) => (o(), s(h, null, [
798
+ !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), s("text", {
799
+ key: 0,
800
+ x: i.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
801
+ y: i.value.top + d.value * r + d.value / 2,
802
+ "text-anchor": "start",
803
+ "font-size": e.value.style.chart.bars.totalValues.fontSize,
804
+ "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
805
+ fill: e.value.style.chart.bars.totalValues.color
806
+ }, $(ie(t.value, t, r, t.sign)), 9, Aa)) : v("", !0)
807
+ ], 64))), 256))
808
+ ])) : v("", !0)
809
+ ], 64)) : v("", !0),
810
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (o(), s(h, { key: 12 }, [
811
+ (o(!0), s(h, null, y(N.value, (t, r) => (o(), s("line", {
812
+ x1: i.value.left,
813
+ x2: i.value.left - 6,
814
+ y1: t.y,
815
+ y2: t.y,
816
+ stroke: e.value.style.chart.grid.x.axisColor,
817
+ "stroke-width": 1
818
+ }, null, 8, Va))), 256)),
819
+ (o(!0), s(h, null, y(N.value, (t, r) => (o(), s("text", {
820
+ x: t.x,
821
+ y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
822
+ "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
823
+ "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
824
+ fill: e.value.style.chart.grid.y.axisLabels.color,
825
+ "text-anchor": "end"
826
+ }, $(m(X)({
827
+ p: e.value.style.chart.bars.dataLabels.prefix,
828
+ v: t.value,
829
+ s: e.value.style.chart.bars.dataLabels.suffix,
830
+ r: e.value.style.chart.grid.y.axisLabels.rounding
831
+ })), 9, Da))), 256))
832
+ ], 64)) : v("", !0),
833
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (o(), s(h, { key: 13 }, [
834
+ (o(!0), s(h, null, y(N.value, (t, r) => (o(), s("line", {
835
+ x1: t.horizontal_x,
836
+ x2: t.horizontal_x,
837
+ y1: i.value.bottom,
838
+ y2: i.value.bottom + 6,
839
+ stroke: e.value.style.chart.grid.x.axisColor,
840
+ "stroke-width": 1,
841
+ "stroke-linecap": "round"
842
+ }, null, 8, Ea))), 256)),
843
+ (o(!0), s(h, null, y(N.value, (t, r) => (o(), s("text", {
844
+ "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
845
+ "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
846
+ fill: e.value.style.chart.grid.y.axisLabels.color,
847
+ "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
848
+ transform: `translate(${t.horizontal_x}, ${i.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
849
+ }, $(m(X)({
850
+ p: e.value.style.chart.bars.dataLabels.prefix,
851
+ v: t.value,
852
+ s: e.value.style.chart.bars.dataLabels.suffix,
853
+ r: e.value.style.chart.grid.y.axisLabels.rounding
854
+ })), 9, Fa))), 256))
855
+ ], 64)) : v("", !0),
856
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (o(), s(h, { key: 14 }, [
857
+ a.$slots["time-label"] ? (o(), s("g", Ha, [
858
+ (o(!0), s(h, null, y(D.value, (t, r) => (o(), s("g", null, [
859
+ x(a.$slots, "time-label", I(O({
860
+ x: i.value.left + d.value * r + d.value / 2,
861
+ y: i.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
862
+ fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
863
+ fill: e.value.style.chart.grid.x.timeLabels.color,
864
+ transform: `translate(${i.value.left + d.value * r + d.value / 2}, ${i.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
865
+ absoluteIndex: t.absoluteIndex,
866
+ content: t.text,
867
+ textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
868
+ show: !0
869
+ })), void 0, !0)
870
+ ]))), 256))
871
+ ])) : (o(), s("g", Wa, [
872
+ (o(!0), s(h, null, y(D.value, (t, r) => (o(), s("text", {
873
+ "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
874
+ "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
875
+ "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
876
+ fill: e.value.style.chart.grid.x.timeLabels.color,
877
+ transform: `translate(${i.value.left + d.value * r + d.value / 2}, ${i.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
878
+ style: {
879
+ cursor: "pointer"
880
+ },
881
+ onClick: () => Ze(t, r)
882
+ }, $(t.text), 9, Ba))), 256))
883
+ ]))
884
+ ], 64)) : v("", !0),
885
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (o(), s(h, { key: 15 }, [
886
+ a.$slots["time-label"] ? (o(), s("g", Ua, [
887
+ (o(!0), s(h, null, y(D.value, (t, r) => (o(), s("g", null, [
888
+ x(a.$slots, "time-label", I(O({
889
+ x: i.value.left - 8,
890
+ y: i.value.top + d.value * r + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
891
+ fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
892
+ fill: e.value.style.chart.grid.x.timeLabels.color,
893
+ transform: null,
894
+ absoluteIndex: t.absoluteIndex,
895
+ content: t.text,
896
+ textAnchor: "end",
897
+ show: !0
898
+ })), void 0, !0)
899
+ ]))), 256))
900
+ ])) : (o(), s("g", Ya, [
901
+ (o(!0), s(h, null, y(D.value, (t, r) => (o(), s("text", {
902
+ "text-anchor": "end",
903
+ "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
904
+ "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
905
+ fill: e.value.style.chart.grid.y.axisLabels.color,
906
+ x: i.value.left - 8,
907
+ y: i.value.top + d.value * r + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
908
+ style: {
909
+ cursor: "pointer"
910
+ },
911
+ onClick: () => Ze(t, r)
912
+ }, $(t.text), 9, Xa))), 256))
913
+ ]))
914
+ ], 64)) : v("", !0),
915
+ C.value.showTooltip && e.value.orientation === "vertical" ? (o(!0), s(h, { key: 16 }, y(c.value.end - c.value.start, (t, r) => (o(), s("rect", {
916
+ x: i.value.left + r * d.value,
917
+ y: i.value.top,
918
+ width: d.value,
919
+ height: i.value.height < 0 ? 0 : i.value.height,
920
+ onClick: (u) => We(r),
921
+ onMouseenter: (u) => Be(r),
922
+ onMouseleave: l[0] || (l[0] = (u) => {
923
+ K.value = null, le.value = !1;
924
+ }),
925
+ fill: r === K.value ? e.value.style.chart.highlighter.color : "transparent",
926
+ style: U({ opacity: e.value.style.chart.highlighter.opacity / 100 })
927
+ }, null, 44, Ga))), 256)) : v("", !0),
928
+ C.value.showTooltip && e.value.orientation === "horizontal" ? (o(!0), s(h, { key: 17 }, y(c.value.end - c.value.start, (t, r) => (o(), s("rect", {
929
+ x: i.value.left,
930
+ y: i.value.top + r * d.value,
931
+ width: i.value.width < 0 ? 0 : i.value.width,
932
+ height: d.value,
933
+ onClick: (u) => We(r),
934
+ onMouseenter: (u) => Be(r),
935
+ onMouseleave: l[1] || (l[1] = (u) => {
936
+ K.value = null, le.value = !1;
937
+ }),
938
+ fill: r === K.value ? e.value.style.chart.highlighter.color : "transparent",
939
+ style: U({ opacity: e.value.style.chart.highlighter.opacity / 100 })
940
+ }, null, 44, Ja))), 256)) : v("", !0),
941
+ x(a.$slots, "svg", I(O({ ...i.value })), void 0, !0)
942
+ ], 12, ua)) : v("", !0),
943
+ a.$slots.watermark ? (o(), s("div", qa, [
944
+ x(a.$slots, "watermark", I(O({ isPrinting: m(Ie) || m(Oe) })), void 0, !0)
945
+ ])) : v("", !0),
946
+ G.value ? v("", !0) : (o(), Z(aa, {
947
+ key: 5,
948
+ config: {
949
+ type: "bar",
950
+ style: {
951
+ backgroundColor: e.value.style.chart.backgroundColor,
952
+ bar: {
953
+ axis: {
954
+ color: "#CCCCCC"
955
+ },
956
+ color: "#CCCCCC"
957
+ }
958
+ }
959
+ }
960
+ }, null, 8, ["config"])),
961
+ Y("div", {
962
+ ref_key: "chartSlicer",
963
+ ref: Le,
964
+ style: U(`width:100%;background:${e.value.style.chart.backgroundColor}`),
965
+ "data-html2canvas-ignore": ""
966
+ }, [
967
+ e.value.style.chart.zoom.show && V.value > 1 ? (o(), Z(Zt, {
968
+ ref_key: "slicerComponent",
969
+ ref: q,
970
+ key: `slicer_${$e.value}`,
971
+ background: e.value.style.chart.zoom.color,
972
+ borderColor: e.value.style.chart.backgroundColor,
973
+ fontSize: e.value.style.chart.zoom.fontSize,
974
+ useResetSlot: e.value.style.chart.zoom.useResetSlot,
975
+ labelLeft: e.value.style.chart.grid.x.timeLabels.values[c.value.start] ? e.value.style.chart.grid.x.timeLabels.values[c.value.start] : "",
976
+ labelRight: e.value.style.chart.grid.x.timeLabels.values[c.value.end - 1] ? e.value.style.chart.grid.x.timeLabels.values[c.value.end - 1] : "",
977
+ textColor: e.value.style.chart.color,
978
+ inputColor: e.value.style.chart.zoom.color,
979
+ selectColor: e.value.style.chart.zoom.highlightColor,
980
+ max: Math.max(...be.dataset.map((t) => t.series.length)),
981
+ min: 0,
982
+ valueStart: c.value.start,
983
+ valueEnd: c.value.end,
984
+ start: c.value.start,
985
+ "onUpdate:start": l[2] || (l[2] = (t) => c.value.start = t),
986
+ end: c.value.end,
987
+ "onUpdate:end": l[3] || (l[3] = (t) => c.value.end = t),
988
+ refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
989
+ refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...be.dataset.map((t) => t.series.length)),
990
+ enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
991
+ enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
992
+ onReset: De
993
+ }, {
994
+ "reset-action": z(({ reset: t }) => [
995
+ x(a.$slots, "reset-action", I(O({ reset: t })), void 0, !0)
996
+ ]),
997
+ _: 3
998
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : v("", !0)
999
+ ], 4),
1000
+ ae(Kt, {
1001
+ show: C.value.showTooltip && le.value,
1002
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1003
+ color: e.value.style.chart.tooltip.color,
1004
+ fontSize: e.value.style.chart.tooltip.fontSize,
1005
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
1006
+ borderColor: e.value.style.chart.tooltip.borderColor,
1007
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
1008
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1009
+ position: e.value.style.chart.tooltip.position,
1010
+ offsetY: e.value.style.chart.tooltip.offsetY,
1011
+ parent: J.value,
1012
+ content: me.value,
1013
+ isFullscreen: re.value,
1014
+ isCustom: m(nt)(e.value.style.chart.tooltip.customFormat)
1015
+ }, {
1016
+ "tooltip-before": z(() => [
1017
+ x(a.$slots, "tooltip-before", I(O({ ...we.value })), void 0, !0)
1018
+ ]),
1019
+ "tooltip-after": z(() => [
1020
+ x(a.$slots, "tooltip-after", I(O({ ...we.value })), void 0, !0)
1021
+ ]),
1022
+ _: 3
1023
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
1024
+ Y("div", {
1025
+ ref_key: "chartLegend",
1026
+ ref: Ce
1027
+ }, [
1028
+ e.value.style.chart.legend.show && G.value ? (o(), Z(jt, {
1029
+ key: 0,
1030
+ legendSet: qe.value,
1031
+ config: zt.value,
1032
+ onClickMarker: l[4] || (l[4] = ({ legend: t }) => t.segregate())
1033
+ }, at({
1034
+ item: z(({ legend: t }) => [
1035
+ Y("div", {
1036
+ onClick: (r) => t.segregate(),
1037
+ style: U(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
1038
+ }, $(t.name), 13, Za)
1039
+ ]),
1040
+ _: 2
1041
+ }, [
1042
+ a.$slots.pattern ? {
1043
+ name: "legend-pattern",
1044
+ fn: z(({ legend: t, index: r }) => [
1045
+ ae(sa, {
1046
+ shape: t.shape,
1047
+ radius: 30,
1048
+ stroke: "none",
1049
+ plot: { x: 30, y: 30 },
1050
+ fill: `url(#pattern_${R.value}_${r})`
1051
+ }, null, 8, ["shape", "fill"])
1052
+ ]),
1053
+ key: "0"
1054
+ } : void 0
1055
+ ]), 1032, ["legendSet", "config"])) : x(a.$slots, "legend", {
1056
+ key: 1,
1057
+ legend: qe.value
1058
+ }, void 0, !0)
1059
+ ], 512),
1060
+ a.$slots.source ? (o(), s("div", {
1061
+ key: 6,
1062
+ ref_key: "source",
1063
+ ref: Se,
1064
+ dir: "auto"
1065
+ }, [
1066
+ x(a.$slots, "source", {}, void 0, !0)
1067
+ ], 512)) : v("", !0),
1068
+ c.value.end - c.value.start < 200 ? (o(), Z(ea, {
1069
+ key: 7,
1070
+ hideDetails: "",
1071
+ config: {
1072
+ open: C.value.showTable,
1073
+ maxHeight: 1e4,
1074
+ body: {
1075
+ backgroundColor: e.value.style.chart.backgroundColor,
1076
+ color: e.value.style.chart.color
1077
+ },
1078
+ head: {
1079
+ backgroundColor: e.value.style.chart.backgroundColor,
1080
+ color: e.value.style.chart.color
1081
+ }
1082
+ }
1083
+ }, {
1084
+ content: z(() => [
1085
+ ae(ta, {
1086
+ colNames: ne.value.colNames,
1087
+ head: ne.value.head,
1088
+ body: ne.value.body,
1089
+ config: ne.value.config,
1090
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1091
+ onClose: l[5] || (l[5] = (t) => C.value.showTable = !1)
1092
+ }, {
1093
+ th: z(({ th: t }) => [
1094
+ Y("div", { innerHTML: t }, null, 8, Ka)
1095
+ ]),
1096
+ td: z(({ td: t }) => [
1097
+ Ot($(isNaN(Number(t)) ? t : m(X)({
1098
+ p: e.value.style.chart.bars.dataLabels.prefix,
1099
+ v: t,
1100
+ s: e.value.style.chart.bars.dataLabels.suffix,
1101
+ r: e.value.table.td.roundingValue
1102
+ })), 1)
1103
+ ]),
1104
+ _: 1
1105
+ }, 8, ["colNames", "head", "body", "config", "title"])
1106
+ ]),
1107
+ _: 1
1108
+ }, 8, ["config"])) : v("", !0)
1109
+ ], 46, na));
1110
+ }
1111
+ }, bl = /* @__PURE__ */ ia(Qa, [["__scopeId", "data-v-0040c5c2"]]);
1112
+ export {
1113
+ bl as default
1114
+ };