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
@@ -1,888 +0,0 @@
1
- import { useCssVars as at, computed as b, ref as r, watch as Ae, onMounted as lt, onBeforeUnmount as ot, openBlock as u, createElementBlock as i, normalizeClass as U, normalizeStyle as d, unref as c, createBlock as M, createCommentVNode as g, createSlots as nt, withCtx as k, renderSlot as _, normalizeProps as H, guardReactiveProps as G, createElementVNode as n, toDisplayString as v, createVNode as ie, Fragment as j, renderList as W, withKeys as ut, createTextVNode as st } from "vue";
2
- import { u as rt, c as it, t as dt, a as ct, p as z, b as vt, o as Be, e as Z, v as S, d as de, i as ee, f as I, X as ht, s as ce, w as pt, x as gt, y as yt, q as ft, r as bt } from "./index-Z_vzxZTo.js";
3
- import { t as mt, u as _t } from "./useResponsive-CoxXLe23.js";
4
- import { _ as kt } from "./Title-obqvTiXP.js";
5
- import { u as $t, U as xt } from "./usePrinter-Ck0oiMlt.js";
6
- import { _ as wt } from "./Tooltip-BK-ACGDE.js";
7
- import { L as De } from "./Legend-WOejx9sp.js";
8
- import Ct from "./vue-ui-skeleton-BMRe3SzB.js";
9
- import Tt from "./BaseIcon-CrqNvGTs.js";
10
- import Lt from "./vue-ui-accordion-CV2-8b1O.js";
11
- import { u as Re } from "./useNestedProp-Buhi5uyL.js";
12
- import { _ as Nt } from "./PackageVersion-dR8EUy_P.js";
13
- import { P as Pt } from "./PenAndPaper-CrXlqi9I.js";
14
- import { u as St } from "./useUserOptionState-BIvW1Kz7.js";
15
- import { _ as Vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const Ot = ["id"], Ft = ["onClick"], Mt = ["xmlns", "viewBox"], zt = ["width", "height"], It = ["id"], At = ["stop-color"], Bt = ["stop-color"], Dt = ["x", "y", "width", "height", "fill", "rx"], Rt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Ut = ["x2", "y1", "y2", "stroke", "stroke-width"], Xt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Et = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], Ht = ["x", "y", "font-size", "fill", "font-weight"], Gt = ["x", "y", "font-size", "fill", "font-weight"], jt = ["x", "y", "font-size", "fill", "font-weight"], Wt = ["y", "width", "height", "fill", "onMouseenter"], Yt = {
17
- key: 6,
18
- class: "vue-data-ui-watermark"
19
- }, qt = ["onClick"], Kt = { style: "width:100%;padding-top: 36px;position:relative" }, Jt = { class: "vue-ui-data-table" }, Qt = { key: 0 }, Zt = { style: { width: "100%" } }, ea = ["data-cell"], ta = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, aa = ["data-cell"], la = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, oa = ["data-cell"], na = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ua = ["data-cell"], sa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ra = ["data-cell"], ia = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, da = ["data-cell"], ca = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, va = ["data-cell"], ha = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, pa = {
20
- __name: "vue-ui-vertical-bar",
21
- props: {
22
- config: {
23
- type: Object,
24
- default() {
25
- return {};
26
- }
27
- },
28
- dataset: {
29
- type: Array,
30
- default() {
31
- return [];
32
- }
33
- }
34
- },
35
- emits: ["selectLegend"],
36
- setup(Ue, { expose: Xe, emit: Ee }) {
37
- const w = Ue;
38
- at((t) => ({
39
- "3aac6a71": t.tdo
40
- }));
41
- const { vue_ui_vertical_bar: He } = rt(), Y = b(() => !!w.dataset && w.dataset.length), V = r(it()), Ge = r(null), te = r(!1), ae = r(""), q = r(0), je = r(null), ve = r(0), A = r(null), he = r(null), le = r(null), pe = r(null), ge = r(null), ye = r(0), oe = r(0), e = b({
42
- get: () => me(),
43
- set: (t) => t
44
- }), { userOptionsVisible: ne, setUserOptionsVisibility: fe, keepUserOptionState: be } = St({ config: e.value });
45
- function me() {
46
- const t = Re({
47
- userConfig: w.config,
48
- defaultConfig: He
49
- });
50
- return t.theme ? {
51
- ...Re({
52
- userConfig: dt.vue_ui_vertical_bar[t.theme] || w.config,
53
- defaultConfig: t
54
- }),
55
- customPalette: ct[t.theme] || z
56
- } : t;
57
- }
58
- Ae(() => w.config, (t) => {
59
- e.value = me(), ne.value = !e.value.showOnChartHover, Le(), ye.value += 1, oe.value += 1, h.value = e.value.style.chart.layout.bars.height, f.value = e.value.style.chart.layout.bars.gap;
60
- }, { deep: !0 }), Ae(() => w.dataset, J, { deep: !0 });
61
- const { isPrinting: _e, isImaging: ke, generatePdf: $e, generateImage: xe } = $t({
62
- elementId: `vue-ui-vertical-bar_${V.value}`,
63
- fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar"
64
- }), We = b(() => e.value.userOptions.show && !e.value.style.chart.title.text), we = b(() => vt(e.value.customPalette)), Ce = r(null), Te = r(!1), Ye = b(() => e.value.table.responsiveBreakpoint), K = r(null);
65
- lt(() => {
66
- Le();
67
- });
68
- function Le() {
69
- if (Be(w.dataset) && Z({
70
- componentName: "VueUiVerticalBar",
71
- type: "dataset"
72
- }), q.value = w.dataset.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), qe(), e.value.responsive) {
73
- const t = mt(() => {
74
- const { width: l, height: a } = _t({
75
- chart: A.value,
76
- title: e.value.style.chart.title.text ? he.value : null,
77
- legend: e.value.style.chart.legend.show ? le.value : null,
78
- source: pe.value,
79
- noTitle: ge.value
80
- });
81
- Se.value = l, h.value = a / q.value - f.value * 2;
82
- });
83
- K.value = new ResizeObserver(t), K.value.observe(A.value.parentNode);
84
- }
85
- }
86
- ot(() => {
87
- K.value && K.value.disconnect();
88
- });
89
- function qe() {
90
- new ResizeObserver((l) => {
91
- l.forEach((a) => {
92
- Te.value = a.contentRect.width < Ye.value;
93
- });
94
- }).observe(Ce.value);
95
- }
96
- const x = r({
97
- showTable: e.value.table.show,
98
- sortDesc: e.value.style.chart.layout.bars.sort === "desc",
99
- showTooltip: e.value.style.chart.tooltip.show
100
- }), Ne = b(() => x.value.sortDesc), O = b(() => (w.dataset.forEach((t, l) => {
101
- !t.value && !t.children && Z({
102
- componentName: "VueUiVerticalBar",
103
- type: "datasetAttributeEmpty",
104
- property: `value (index ${l})`
105
- }), t.children && (Be(t.children) ? Z({
106
- componentName: "VueUiVerticalBar",
107
- type: "datasetAttributeEmpty",
108
- property: `children (index ${l})`
109
- }) : t.children.forEach((a, o) => {
110
- [null, void 0].includes(a.name) && Z({
111
- componentName: "VueUiVerticalBar",
112
- type: "datasetSerieAttribute",
113
- property: "name",
114
- key: "children",
115
- index: o
116
- });
117
- }));
118
- }), w.dataset.map((t, l) => {
119
- const a = `vertical_parent_${l}_${V.value}`, o = t.children && t.children.length > 0, m = S(t.value ? t.value : o ? t.children.map(($) => $.value || 0).reduce(($, N) => $ + N, 0) : 0), y = m >= 0 ? 1 : -1;
120
- return {
121
- ...t,
122
- id: a,
123
- shape: "square",
124
- opacity: T.value.includes(a) ? 0.5 : 1,
125
- value: Math.abs(m),
126
- sign: y,
127
- hasChildren: o,
128
- isChild: !1,
129
- segregate: () => X(a),
130
- isSegregated: T.value.includes(a),
131
- color: de(t.color) || we.value[l] || z[l] || z[l % z.length],
132
- children: !t.children || !t.children.length ? [] : t.children.toSorted(($, N) => Ne.value ? N.value - $.value : $.value - N.value).map(($, N) => ({
133
- ...$,
134
- value: S(Math.abs($.value)),
135
- sign: $.value >= 0 ? 1 : -1,
136
- isChild: !0,
137
- parentId: a,
138
- parentName: t.name,
139
- parentValue: m,
140
- parentSign: y,
141
- id: `vertical_child_${l}_${N}_${V.value}`,
142
- childIndex: N,
143
- color: de($.color) || de(t.color) || we.value[l] || z[l] || z[l % z.length]
144
- })).map(($, N) => ({
145
- ...$,
146
- isFirstChild: N === 0,
147
- isLastChild: N === t.children.length - 1
148
- }))
149
- };
150
- }).toSorted((t, l) => Ne.value ? l.value - t.value : t.value - l.value))), Pe = b(() => ({
151
- cy: "vertical-bar-div-legend",
152
- backgroundColor: e.value.style.chart.legend.backgroundColor,
153
- color: e.value.style.chart.legend.color,
154
- fontSize: e.value.style.chart.legend.fontSize,
155
- paddingBottom: 12,
156
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
157
- })), h = r(e.value.style.chart.layout.bars.height), f = r(e.value.style.chart.layout.bars.gap), Ke = b(() => (h.value + f.value) * q.value), Se = r(512), p = b(() => ({
158
- width: Se.value,
159
- height: Ke.value,
160
- padding: {
161
- top: 12,
162
- left: 128 + e.value.style.chart.layout.bars.offsetX,
163
- right: 64 + e.value.style.chart.layout.bars.paddingRight,
164
- bottom: 12
165
- }
166
- })), s = b(() => ({
167
- fullHeight: p.value.padding.top + p.value.padding.bottom + p.value.height,
168
- top: p.value.padding.top,
169
- left: p.value.padding.left,
170
- right: p.value.width - p.value.padding.right,
171
- bottom: p.value.padding.top + p.value.height,
172
- width: p.value.width - (p.value.padding.left + p.value.padding.right)
173
- }));
174
- function J() {
175
- q.value = F.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0);
176
- }
177
- const T = r([]);
178
- function X(t) {
179
- T.value.includes(t) ? T.value = T.value.filter((l) => l !== t) : T.value.push(t), J(), Ee("selectLegend", F.value);
180
- }
181
- const F = b(() => O.value.filter((t) => !T.value.includes(t.id))), L = b(() => F.value.map((t) => Math.abs(t.value)).reduce((t, l) => t + l, 0));
182
- function Ve(t, l = !1, a = 0) {
183
- return l ? I({
184
- v: S(Math.abs(t) / L.value * 100),
185
- s: "%",
186
- r: a
187
- }) : Math.abs(t) / L.value;
188
- }
189
- const B = b(() => F.value.flatMap((t) => t.hasChildren ? t.children : t)), D = b(() => B.value.map((t) => t.sign).includes(-1)), Je = b(() => Math.max(...F.value.flatMap((t) => t.children && t.children.length ? Math.max(...t.children.map((l) => l.value)) : t.value)));
190
- function P(t) {
191
- const l = t / Je.value;
192
- return s.value.width / (D.value ? 2 : 1) * l;
193
- }
194
- function Qe(t) {
195
- return P(t) + s.value.left;
196
- }
197
- function E(t, l) {
198
- const a = F.value.find((y) => y.id === t.parentId), o = s.value.top + (f.value + h.value) * l, m = a.children.length * (f.value + h.value);
199
- return {
200
- y: o + m / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
201
- name: a.name,
202
- value: [void 0, NaN, null].includes(a.value) ? "" : a.sign === 1 ? a.value : -a.value,
203
- percentageToTotal: isNaN(a.value / L.value) ? "" : Ve(a.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
204
- sign: a.sign
205
- };
206
- }
207
- function Ze() {
208
- return F.value;
209
- }
210
- const ue = r(null), se = r(null);
211
- function et(t, l) {
212
- se.value = {
213
- datapoint: t,
214
- seriesIndex: l,
215
- series: O.value,
216
- config: e.value
217
- }, te.value = !0, ue.value = t.id;
218
- let a = "";
219
- const o = t.isChild ? t.parentName : t.name, m = t.isChild ? t.name : "", y = e.value.style.chart.tooltip.customFormat;
220
- gt(y) && yt(() => y({
221
- datapoint: t,
222
- series: O.value,
223
- config: e.value,
224
- seriesIndex: l
225
- })) ? ae.value = y({
226
- datapoint: t,
227
- series: O.value,
228
- config: e.value,
229
- seriesIndex: l
230
- }) : (a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
231
- <div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" rx="2" stroke="none" fill="${t.color}"/></svg> ${o}</div>
232
- ${m ? `<div>${m}</div>` : ""}
233
- </div>`, e.value.style.chart.tooltip.showValue && (a += `<div>${e.value.translations.value}: <b>${ee(
234
- e.value.style.chart.layout.bars.dataLabels.value.formatter,
235
- t.sign === 1 ? t.value : -t.value,
236
- I({
237
- p: e.value.style.chart.tooltip.prefix,
238
- v: t.sign === 1 ? t.value : -t.value,
239
- s: e.value.style.chart.tooltip.suffix,
240
- r: e.value.style.chart.tooltip.roundingValue
241
- }),
242
- { datapoint: t, seriesIndex: l }
243
- )}</b></div>`), e.value.style.chart.tooltip.showPercentage && (a += `<div>${e.value.translations.percentageToTotal} : <b>${I({
244
- v: Math.abs(t.value) / L.value * 100,
245
- s: "%",
246
- r: e.value.style.chart.tooltip.roundingPercentage
247
- })}</b></div>`, t.isChild && (a += `<div>${e.value.translations.percentageToSerie}: <b>${I({
248
- v: Math.abs(t.value) / Math.abs(t.parentValue) * 100,
249
- s: "%",
250
- r: e.value.style.chart.tooltip.roundingPercentage
251
- })}</b></div>`)), ae.value = `<div style="text-align:left">${a}</div>`);
252
- }
253
- function Oe(t, l, a, o) {
254
- if (!e.value.style.chart.layout.bars.dataLabels.value.show)
255
- return "";
256
- const m = ee(
257
- e.value.style.chart.layout.bars.dataLabels.value.formatter,
258
- S(o === -1 && t >= 0 ? -t : t),
259
- I({
260
- p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
261
- v: S(o === -1 && t >= 0 ? -t : t),
262
- s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
263
- r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
264
- }),
265
- { datapoint: l, seriesIndex: a }
266
- ), y = `(${Ve(t, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
267
- return `${m}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${y}` : ""}`;
268
- }
269
- const C = b(() => {
270
- const t = [
271
- e.value.translations.parentName,
272
- e.value.translations.value,
273
- e.value.translations.percentageToTotal,
274
- e.value.translations.childName,
275
- e.value.translations.value,
276
- e.value.translations.percentageToSerie,
277
- e.value.translations.percentageToTotal
278
- ], l = B.value.map((a) => a.isChild ? a.isFirstChild ? {
279
- color: a.color,
280
- parentName: a.parentName,
281
- parentValue: a.parentValue,
282
- percentageToTotal: a.parentValue / L.value,
283
- childName: a.name,
284
- childValue: a.sign === 1 ? a.value : -a.value,
285
- childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
286
- childPercentageToTotal: Math.abs(a.value) / L.value
287
- } : {
288
- color: "",
289
- parentName: "",
290
- parentValue: "",
291
- percentageToTotal: "",
292
- childName: a.name,
293
- childValue: a.sign === 1 ? a.value : -a.value,
294
- childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
295
- childPercentageToTotal: Math.abs(a.value) / L.value
296
- } : {
297
- color: a.color,
298
- parentName: a.name,
299
- parentValue: a.sign === 1 ? a.value : -a.value,
300
- percentageToTotal: Math.abs(a.value) / L.value,
301
- childName: "",
302
- childValue: "",
303
- childPercentageToParent: "",
304
- childPercentageToTotal: ""
305
- });
306
- return { head: t, body: l };
307
- });
308
- function Fe() {
309
- const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = C.value.head, a = C.value.body.map((y) => [
310
- y.parentName,
311
- y.parentValue,
312
- y.percentageToTotal,
313
- y.childName,
314
- y.childValue,
315
- y.childPercentageToParent,
316
- y.childPercentageToTotal
317
- ]), o = t.concat([l]).concat(a), m = ft(o);
318
- bt({ csvContent: m, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
319
- }
320
- const R = r(!1);
321
- function tt(t) {
322
- R.value = t, ve.value += 1;
323
- }
324
- function Me() {
325
- x.value.showTable = !x.value.showTable;
326
- }
327
- function ze() {
328
- x.value.sortDesc = !x.value.sortDesc, J();
329
- }
330
- function Ie() {
331
- x.value.showTooltip = !x.value.showTooltip;
332
- }
333
- const Q = r(!1);
334
- function re() {
335
- Q.value = !Q.value;
336
- }
337
- return Xe({
338
- getData: Ze,
339
- recalculateHeight: J,
340
- generatePdf: $e,
341
- generateCsv: Fe,
342
- generateImage: xe,
343
- toggleTable: Me,
344
- toggleSort: ze,
345
- toggleTooltip: Ie,
346
- toggleAnnotator: re
347
- }), (t, l) => (u(), i("div", {
348
- class: U(`vue-ui-vertical-bar ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
349
- ref_key: "verticalBarChart",
350
- ref: A,
351
- id: `vue-ui-vertical-bar_${V.value}`,
352
- style: d(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
353
- onMouseenter: l[5] || (l[5] = () => c(fe)(!0)),
354
- onMouseleave: l[6] || (l[6] = () => c(fe)(!1))
355
- }, [
356
- e.value.userOptions.buttons.annotator ? (u(), M(Pt, {
357
- key: 0,
358
- parent: A.value,
359
- backgroundColor: e.value.style.chart.backgroundColor,
360
- color: e.value.style.chart.color,
361
- active: Q.value,
362
- onClose: re
363
- }, null, 8, ["parent", "backgroundColor", "color", "active"])) : g("", !0),
364
- We.value ? (u(), i("div", {
365
- key: 1,
366
- ref_key: "noTitle",
367
- ref: ge,
368
- class: "vue-data-ui-no-title-space",
369
- style: "height:36px; width: 100%;background:transparent"
370
- }, null, 512)) : g("", !0),
371
- e.value.style.chart.title.text ? (u(), i("div", {
372
- key: 2,
373
- ref_key: "chartTitle",
374
- ref: he,
375
- style: "width:100%;background:transparent;padding-bottom:12px"
376
- }, [
377
- (u(), M(kt, {
378
- key: `title_${ye.value}`,
379
- config: {
380
- title: {
381
- cy: "vertical-bar-div-title",
382
- ...e.value.style.chart.title
383
- },
384
- subtitle: {
385
- cy: "vertical-bar-div-subtitle",
386
- ...e.value.style.chart.title.subtitle
387
- }
388
- }
389
- }, null, 8, ["config"]))
390
- ], 512)) : g("", !0),
391
- e.value.userOptions.show && Y.value && (c(be) || c(ne)) ? (u(), M(xt, {
392
- ref_key: "details",
393
- ref: Ge,
394
- key: `user_options_${ve.value}`,
395
- backgroundColor: e.value.style.chart.backgroundColor,
396
- color: e.value.style.chart.color,
397
- isImaging: c(ke),
398
- isPrinting: c(_e),
399
- uid: V.value,
400
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
401
- hasPdf: e.value.userOptions.buttons.pdf,
402
- hasImg: e.value.userOptions.buttons.img,
403
- hasXls: e.value.userOptions.buttons.csv,
404
- hasTable: e.value.userOptions.buttons.table,
405
- hasSort: e.value.userOptions.buttons.sort,
406
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
407
- isFullscreen: R.value,
408
- isTooltip: x.value.showTooltip,
409
- titles: { ...e.value.userOptions.buttonTitles },
410
- chartElement: A.value,
411
- position: e.value.userOptions.position,
412
- hasAnnotator: e.value.userOptions.buttons.annotator,
413
- isAnnotation: Q.value,
414
- onToggleFullscreen: tt,
415
- onGeneratePdf: c($e),
416
- onGenerateCsv: Fe,
417
- onGenerateImage: c(xe),
418
- onToggleTable: Me,
419
- onToggleSort: ze,
420
- onToggleTooltip: Ie,
421
- onToggleAnnotator: re,
422
- style: d({
423
- visibility: c(be) ? c(ne) ? "visible" : "hidden" : "visible"
424
- })
425
- }, nt({ _: 2 }, [
426
- t.$slots.optionTooltip ? {
427
- name: "optionTooltip",
428
- fn: k(() => [
429
- _(t.$slots, "optionTooltip", {}, void 0, !0)
430
- ]),
431
- key: "0"
432
- } : void 0,
433
- t.$slots.optionPdf ? {
434
- name: "optionPdf",
435
- fn: k(() => [
436
- _(t.$slots, "optionPdf", {}, void 0, !0)
437
- ]),
438
- key: "1"
439
- } : void 0,
440
- t.$slots.optionCsv ? {
441
- name: "optionCsv",
442
- fn: k(() => [
443
- _(t.$slots, "optionCsv", {}, void 0, !0)
444
- ]),
445
- key: "2"
446
- } : void 0,
447
- t.$slots.optionImg ? {
448
- name: "optionImg",
449
- fn: k(() => [
450
- _(t.$slots, "optionImg", {}, void 0, !0)
451
- ]),
452
- key: "3"
453
- } : void 0,
454
- t.$slots.optionTable ? {
455
- name: "optionTable",
456
- fn: k(() => [
457
- _(t.$slots, "optionTable", {}, void 0, !0)
458
- ]),
459
- key: "4"
460
- } : void 0,
461
- t.$slots.optionLabels ? {
462
- name: "optionLabels",
463
- fn: k(() => [
464
- _(t.$slots, "optionLabels", {}, void 0, !0)
465
- ]),
466
- key: "5"
467
- } : void 0,
468
- t.$slots.optionSort ? {
469
- name: "optionSort",
470
- fn: k(() => [
471
- _(t.$slots, "optionSort", {}, void 0, !0)
472
- ]),
473
- key: "6"
474
- } : void 0,
475
- t.$slots.optionFullscreen ? {
476
- name: "optionFullscreen",
477
- fn: k(({ toggleFullscreen: a, isFullscreen: o }) => [
478
- _(t.$slots, "optionFullscreen", H(G({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
479
- ]),
480
- key: "7"
481
- } : void 0,
482
- t.$slots.optionAnnotator ? {
483
- name: "optionAnnotator",
484
- fn: k(({ toggleAnnotator: a, isAnnotator: o }) => [
485
- _(t.$slots, "optionAnnotator", H(G({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
486
- ]),
487
- key: "8"
488
- } : void 0
489
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
490
- e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), i("div", {
491
- key: 4,
492
- ref_key: "chartLegend",
493
- ref: le
494
- }, [
495
- (u(), M(De, {
496
- key: `legend_top_${oe.value}`,
497
- legendSet: O.value,
498
- config: Pe.value,
499
- onClickMarker: l[0] || (l[0] = ({ legend: a }) => X(a.id))
500
- }, {
501
- item: k(({ legend: a, index: o }) => [
502
- n("div", {
503
- "data-cy-legend-item": "",
504
- onClick: (m) => X(a.id),
505
- style: d(`opacity:${T.value.includes(a.id) ? 0.5 : 1}`)
506
- }, v(a.name) + ": " + v(c(ee)(
507
- e.value.style.chart.layout.bars.dataLabels.value.formatter,
508
- a.value,
509
- c(I)({
510
- p: e.value.style.chart.legend.prefix,
511
- v: a.value,
512
- s: e.value.style.chart.legend.suffix,
513
- r: e.value.style.chart.legend.roundingValue
514
- }),
515
- { datapoint: a, seriesIndex: o }
516
- )), 13, Ft)
517
- ]),
518
- _: 1
519
- }, 8, ["legendSet", "config"]))
520
- ], 512)) : g("", !0),
521
- Y.value ? (u(), i("svg", {
522
- key: 5,
523
- xmlns: c(ht),
524
- class: U({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }),
525
- viewBox: `0 0 ${p.value.width <= 0 ? 10 : p.value.width} ${s.value.fullHeight <= 0 ? 10 : s.value.fullHeight}`,
526
- style: d(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
527
- }, [
528
- ie(Nt),
529
- t.$slots["chart-background"] ? (u(), i("foreignObject", {
530
- key: 0,
531
- x: 0,
532
- y: 0,
533
- width: p.value.width <= 0 ? 10 : p.value.width,
534
- height: s.value.fullHeight <= 0 ? 10 : s.value.fullHeight,
535
- style: {
536
- pointerEvents: "none"
537
- }
538
- }, [
539
- _(t.$slots, "chart-background", {}, void 0, !0)
540
- ], 8, zt)) : g("", !0),
541
- (u(!0), i(j, null, W(B.value, (a, o) => (u(), i("linearGradient", {
542
- x1: "0%",
543
- y1: "0%",
544
- x2: "100%",
545
- y2: "0%",
546
- id: `vertical_bar_gradient_${V.value}_${o}`
547
- }, [
548
- n("stop", {
549
- offset: "0%",
550
- "stop-color": a.color
551
- }, null, 8, At),
552
- n("stop", {
553
- offset: "100%",
554
- "stop-color": c(ce)(c(pt)(a.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
555
- }, null, 8, Bt)
556
- ], 8, It))), 256)),
557
- (u(!0), i(j, null, W(B.value, (a, o) => (u(), i("g", null, [
558
- n("rect", {
559
- x: c(S)(D.value ? s.value.left + s.value.width / 2 - (a.sign === 1 ? 0 : P(a.value) <= 0 ? 1e-4 : P(a.value)) : s.value.left),
560
- y: s.value.top + (f.value + h.value) * o,
561
- width: c(S)(P(a.value) <= 0 ? 1e-4 : P(a.value)),
562
- height: h.value <= 0 ? 1e-4 : h.value,
563
- fill: e.value.style.chart.layout.bars.underlayerColor,
564
- rx: e.value.style.chart.layout.bars.borderRadius,
565
- class: U({ animated: e.value.useCssAnimation })
566
- }, null, 10, Dt)
567
- ]))), 256)),
568
- (u(!0), i(j, null, W(B.value, (a, o) => (u(), i("g", null, [
569
- n("rect", {
570
- x: c(S)(D.value ? s.value.left + s.value.width / 2 - (a.sign === 1 ? 0 : P(a.value) <= 0 ? 1e-4 : P(a.value)) : s.value.left),
571
- y: s.value.top + (f.value + h.value) * o,
572
- width: c(S)(P(a.value) <= 0 ? 1e-4 : P(a.value)),
573
- height: h.value <= 0 ? 1e-4 : h.value,
574
- fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${V.value}_${o})` : c(ce)(a.color, e.value.style.chart.layout.bars.fillOpacity),
575
- rx: e.value.style.chart.layout.bars.borderRadius,
576
- stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
577
- "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
578
- class: U({ animated: e.value.useCssAnimation })
579
- }, null, 10, Rt),
580
- (!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !== B.value.length - 1 ? (u(), i("line", {
581
- key: 0,
582
- x1: 0,
583
- x2: s.value.left,
584
- y1: h.value + f.value / 2 + s.value.top + (f.value + h.value) * o,
585
- y2: h.value + f.value / 2 + s.value.top + (f.value + h.value) * o,
586
- stroke: e.value.style.chart.layout.separators.color,
587
- "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
588
- "stroke-linecap": "round"
589
- }, null, 8, Ut)) : g("", !0),
590
- D.value && e.value.style.chart.layout.separators.show ? (u(), i("line", {
591
- key: 1,
592
- x1: s.value.left + s.value.width / 2,
593
- x2: s.value.left + s.value.width / 2,
594
- y1: s.value.top,
595
- y2: s.value.bottom,
596
- stroke: e.value.style.chart.layout.separators.color,
597
- "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
598
- "stroke-linecap": "round"
599
- }, null, 8, Xt)) : g("", !0),
600
- n("text", {
601
- x: D.value ? s.value.left + s.value.width / 2 + (a.sign === 1 ? -12 : 12) + (a.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : Qe(a.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
602
- y: s.value.top + (f.value + h.value) * o + h.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
603
- "text-anchor": !D.value || a.sign === -1 ? "start" : "end",
604
- "font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
605
- fill: e.value.style.chart.layout.bars.dataLabels.color,
606
- "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
607
- }, v(Oe(a.value, a, o, a.sign)), 9, Et),
608
- (a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), i("text", {
609
- key: 2,
610
- "text-anchor": "end",
611
- x: s.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
612
- y: s.value.top + (f.value + h.value) * o + h.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
613
- "font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
614
- fill: e.value.style.chart.layout.bars.nameLabels.color,
615
- "font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
616
- }, v(a.name), 9, Ht)) : g("", !0),
617
- a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
618
- key: 3,
619
- x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
620
- y: E(a, o).y,
621
- "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
622
- fill: e.value.style.chart.layout.bars.parentLabels.color,
623
- "font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
624
- "text-anchor": "start"
625
- }, v(E(a, o).name), 9, Gt)) : g("", !0),
626
- a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
627
- key: 4,
628
- x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
629
- y: E(a, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
630
- "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
631
- fill: e.value.style.chart.layout.bars.parentLabels.color,
632
- "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
633
- "text-anchor": "start"
634
- }, v(Oe(E(a, o).value), E(a, o), o, a.parentSign || a.sign), 9, jt)) : g("", !0),
635
- n("rect", {
636
- "data-cy-trap": "",
637
- x: 0,
638
- y: s.value.top + (f.value + h.value) * o - f.value / 2,
639
- width: p.value.width <= 0 ? 1e-4 : p.value.width,
640
- height: h.value + f.value <= 0 ? 1e-4 : h.value + f.value,
641
- fill: ue.value === a.id ? c(ce)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
642
- onMouseenter: (m) => et(a, o),
643
- onMouseleave: l[1] || (l[1] = (m) => {
644
- je.value = null, te.value = !1, ue.value = null;
645
- })
646
- }, null, 40, Wt)
647
- ]))), 256)),
648
- _(t.$slots, "svg", { svg: p.value }, void 0, !0)
649
- ], 14, Mt)) : g("", !0),
650
- t.$slots.watermark ? (u(), i("div", Yt, [
651
- _(t.$slots, "watermark", H(G({ isPrinting: c(_e) || c(ke) })), void 0, !0)
652
- ])) : g("", !0),
653
- Y.value ? g("", !0) : (u(), M(Ct, {
654
- key: 7,
655
- config: {
656
- type: "verticalBar",
657
- style: {
658
- backgroundColor: e.value.style.chart.backgroundColor,
659
- verticalBar: {
660
- axis: {
661
- color: "#CCCCCC"
662
- },
663
- color: "#CCCCCC"
664
- }
665
- }
666
- }
667
- }, null, 8, ["config"])),
668
- e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), i("div", {
669
- key: 8,
670
- ref_key: "chartLegend",
671
- ref: le
672
- }, [
673
- (u(), M(De, {
674
- key: `legend_bottom_${oe.value}`,
675
- legendSet: O.value,
676
- config: Pe.value,
677
- onClickMarker: l[2] || (l[2] = ({ legend: a }) => X(a.id))
678
- }, {
679
- item: k(({ legend: a, index: o }) => [
680
- n("div", {
681
- onClick: (m) => X(a.id),
682
- style: d(`opacity:${T.value.includes(a.id) ? 0.5 : 1}`)
683
- }, v(a.name) + ": " + v(c(ee)(
684
- e.value.style.chart.layout.bars.dataLabels.value.formatter,
685
- a.value,
686
- c(I)({
687
- p: e.value.style.chart.legend.prefix,
688
- v: a.value,
689
- s: e.value.style.chart.legend.suffix,
690
- r: e.value.style.chart.legend.roundingValue
691
- }),
692
- { datapoint: a, seriesIndex: o }
693
- )), 13, qt)
694
- ]),
695
- _: 1
696
- }, 8, ["legendSet", "config"]))
697
- ], 512)) : g("", !0),
698
- _(t.$slots, "legend", { legend: O.value }, void 0, !0),
699
- t.$slots.source ? (u(), i("div", {
700
- key: 9,
701
- ref_key: "source",
702
- ref: pe,
703
- dir: "auto"
704
- }, [
705
- _(t.$slots, "source", {}, void 0, !0)
706
- ], 512)) : g("", !0),
707
- ie(wt, {
708
- show: x.value.showTooltip && te.value && T.value.length < w.dataset.length,
709
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
710
- color: e.value.style.chart.tooltip.color,
711
- borderRadius: e.value.style.chart.tooltip.borderRadius,
712
- borderColor: e.value.style.chart.tooltip.borderColor,
713
- borderWidth: e.value.style.chart.tooltip.borderWidth,
714
- fontSize: e.value.style.chart.tooltip.fontSize,
715
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
716
- position: e.value.style.chart.tooltip.position,
717
- offsetY: e.value.style.chart.tooltip.offsetY,
718
- parent: A.value,
719
- content: ae.value,
720
- isFullscreen: R.value,
721
- isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
722
- }, {
723
- "tooltip-before": k(() => [
724
- _(t.$slots, "tooltip-before", H(G({ ...se.value })), void 0, !0)
725
- ]),
726
- "tooltip-after": k(() => [
727
- _(t.$slots, "tooltip-after", H(G({ ...se.value })), void 0, !0)
728
- ]),
729
- _: 3
730
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
731
- Y.value ? (u(), M(Lt, {
732
- key: 10,
733
- hideDetails: "",
734
- config: {
735
- open: x.value.showTable,
736
- maxHeight: 1e4,
737
- body: {
738
- backgroundColor: e.value.style.chart.backgroundColor,
739
- color: e.value.style.chart.color
740
- },
741
- head: {
742
- backgroundColor: e.value.style.chart.backgroundColor,
743
- color: e.value.style.chart.color
744
- }
745
- }
746
- }, {
747
- content: k(() => [
748
- n("div", {
749
- ref_key: "tableContainer",
750
- ref: Ce,
751
- class: "vue-ui-vertical-bar-table"
752
- }, [
753
- n("div", Kt, [
754
- n("div", {
755
- role: "button",
756
- tabindex: "0",
757
- style: d(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
758
- onClick: l[3] || (l[3] = (a) => x.value.showTable = !1),
759
- onKeypress: l[4] || (l[4] = ut((a) => x.value.showTable = !1, ["enter"]))
760
- }, [
761
- ie(Tt, {
762
- name: "close",
763
- stroke: e.value.table.th.color,
764
- "stroke-width": 2
765
- }, null, 8, ["stroke"])
766
- ], 36),
767
- n("div", {
768
- style: { width: "100%", "container-type": "inline-size" },
769
- class: U({ "vue-ui-responsive": Te.value })
770
- }, [
771
- n("table", Jt, [
772
- n("caption", {
773
- style: d({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
774
- class: "vue-ui-data-table__caption"
775
- }, [
776
- st(v(e.value.style.chart.title.text) + " ", 1),
777
- e.value.style.chart.title.subtitle.text ? (u(), i("span", Qt, v(e.value.style.chart.title.subtitle.text), 1)) : g("", !0)
778
- ], 4),
779
- n("thead", null, [
780
- n("tr", {
781
- role: "row",
782
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
783
- }, [
784
- (u(!0), i(j, null, W(C.value.head, (a) => (u(), i("th", {
785
- style: d(`outline:${e.value.table.th.outline}`)
786
- }, [
787
- n("div", Zt, v(a), 1)
788
- ], 4))), 256))
789
- ], 4),
790
- n("tr", null, [
791
- n("th", {
792
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
793
- }, null, 4),
794
- n("th", {
795
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
796
- }, "∑ " + v(e.value.table.td.prefix) + v(isNaN(L.value) ? "" : L.value.toFixed(e.value.table.td.roundingValue)) + v(e.value.table.td.suffix), 5),
797
- n("th", {
798
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
799
- }, "100%", 4),
800
- n("th", {
801
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
802
- }, null, 4),
803
- n("th", {
804
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
805
- }, null, 4),
806
- n("th", {
807
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
808
- }, null, 4),
809
- n("th", {
810
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
811
- }, null, 4)
812
- ])
813
- ]),
814
- n("tbody", null, [
815
- (u(!0), i(j, null, W(C.value.body, (a, o) => (u(), i("tr", {
816
- class: U({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 }),
817
- style: d(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
818
- }, [
819
- n("td", {
820
- class: "vue-ui-data-table__tbody__td",
821
- style: d(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
822
- "data-cell": C.value.head[0] ?? ""
823
- }, [
824
- n("div", ta, [
825
- a.color ? (u(), i("span", {
826
- key: 0,
827
- style: d(`color:${a.color};margin-right:3px`)
828
- }, "⬤", 4)) : g("", !0),
829
- n("span", null, v(a.parentName), 1)
830
- ])
831
- ], 12, ea),
832
- n("td", {
833
- class: "vue-ui-data-table__tbody__td",
834
- style: d(`outline:${e.value.table.td.outline}`),
835
- "data-cell": C.value.head[1] ?? ""
836
- }, [
837
- n("div", la, v(e.value.table.td.prefix) + v(["", NaN, void 0].includes(a.parentValue) ? "" : a.parentValue.toFixed(e.value.table.td.roundingValue)) + v(e.value.table.td.suffix), 1)
838
- ], 12, aa),
839
- n("td", {
840
- class: "vue-ui-data-table__tbody__td",
841
- style: d(`outline:${e.value.table.td.outline}`),
842
- "data-cell": C.value.head[2] ?? ""
843
- }, [
844
- n("div", na, v(["", NaN, void 0].includes(a.percentageToTotal) ? "" : `${(a.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
845
- ], 12, oa),
846
- n("td", {
847
- class: "vue-ui-data-table__tbody__td",
848
- style: d(`outline:${e.value.table.td.outline}`),
849
- "data-cell": C.value.head[3] ?? ""
850
- }, [
851
- n("div", sa, v(a.childName), 1)
852
- ], 12, ua),
853
- n("td", {
854
- class: "vue-ui-data-table__tbody__td",
855
- style: d(`outline:${e.value.table.td.outline}`),
856
- "data-cell": C.value.head[4] ?? ""
857
- }, [
858
- n("div", ia, v(e.value.table.td.prefix) + v(["", NaN, void 0].includes(a.childValue) ? "" : a.childValue.toFixed(e.value.table.td.roundingValue)) + v(e.value.table.td.suffix), 1)
859
- ], 12, ra),
860
- n("td", {
861
- class: "vue-ui-data-table__tbody__td",
862
- style: d(`outline:${e.value.table.td.outline}`),
863
- "data-cell": C.value.head[5] ?? ""
864
- }, [
865
- n("div", ca, v(["", NaN, void 0].includes(a.childPercentageToParent) ? "" : `${(a.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
866
- ], 12, da),
867
- n("td", {
868
- class: "vue-ui-data-table__tbody__td",
869
- style: d(`outline:${e.value.table.td.outline}`),
870
- "data-cell": C.value.head[6] ?? ""
871
- }, [
872
- n("div", ha, v(["", NaN, void 0].includes(a.childPercentageToTotal) ? "" : `${(a.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
873
- ], 12, va)
874
- ], 6))), 256))
875
- ])
876
- ])
877
- ], 2)
878
- ])
879
- ], 512)
880
- ]),
881
- _: 1
882
- }, 8, ["config"])) : g("", !0)
883
- ], 46, Ot));
884
- }
885
- }, Sa = /* @__PURE__ */ Vt(pa, [["__scopeId", "data-v-0cafc13e"]]);
886
- export {
887
- Sa as default
888
- };