vue-data-ui 3.15.12 → 3.16.1

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 (218) hide show
  1. package/README.md +132 -59
  2. package/dist/A11yDataTable-KcVAX2cP.js +54 -0
  3. package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
  5. package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
  6. package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
  7. package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
  8. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  9. package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
  10. package/dist/Legend-CS7Xo5LK.js +101 -0
  11. package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
  12. package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
  13. package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  14. package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
  15. package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
  16. package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
  17. package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
  18. package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
  19. package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
  20. package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
  21. package/dist/components/arrow.js +1 -1
  22. package/dist/components/vue-ui-3d-bar.js +1 -1
  23. package/dist/components/vue-ui-accordion.js +1 -1
  24. package/dist/components/vue-ui-age-pyramid.js +1 -1
  25. package/dist/components/vue-ui-annotator.js +1 -1
  26. package/dist/components/vue-ui-bullet.js +1 -1
  27. package/dist/components/vue-ui-bump.js +1 -1
  28. package/dist/components/vue-ui-candlestick.js +1 -1
  29. package/dist/components/vue-ui-carousel-table.js +1 -1
  30. package/dist/components/vue-ui-chestnut.js +1 -1
  31. package/dist/components/vue-ui-chord.js +1 -1
  32. package/dist/components/vue-ui-circle-pack.js +1 -1
  33. package/dist/components/vue-ui-cursor.js +1 -1
  34. package/dist/components/vue-ui-dag.js +1 -1
  35. package/dist/components/vue-ui-dashboard.js +1 -1
  36. package/dist/components/vue-ui-digits.js +1 -1
  37. package/dist/components/vue-ui-donut-evolution.js +1 -1
  38. package/dist/components/vue-ui-donut.js +1 -1
  39. package/dist/components/vue-ui-dumbbell.js +1 -1
  40. package/dist/components/vue-ui-flow.js +1 -1
  41. package/dist/components/vue-ui-funnel.js +1 -1
  42. package/dist/components/vue-ui-galaxy.js +1 -1
  43. package/dist/components/vue-ui-gauge.js +1 -1
  44. package/dist/components/vue-ui-geo.js +1 -1
  45. package/dist/components/vue-ui-gizmo.js +1 -1
  46. package/dist/components/vue-ui-heatmap.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
  91. package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
  92. package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
  93. package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
  94. package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
  95. package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/types/vue-data-ui.d.ts +59 -0
  98. package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
  99. package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
  100. package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
  101. package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
  102. package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
  103. package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
  104. package/dist/utils.js +3 -3
  105. package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
  108. package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
  109. package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
  110. package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
  111. package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
  112. package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
  113. package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
  114. package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
  115. package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
  116. package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
  117. package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
  118. package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
  119. package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
  120. package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
  121. package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
  122. package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
  123. package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
  124. package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
  125. package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
  126. package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
  127. package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
  128. package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
  129. package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
  130. package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
  131. package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
  132. package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
  133. package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
  134. package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
  135. package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
  136. package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
  137. package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
  138. package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
  139. package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
  141. package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
  142. package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
  143. package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
  144. package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
  145. package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
  146. package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
  147. package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
  148. package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
  149. package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
  150. package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
  151. package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
  152. package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
  153. package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
  154. package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
  155. package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
  156. package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
  157. package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
  158. package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
  159. package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
  160. package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
  161. package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
  162. package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
  163. package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
  164. package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
  165. package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
  166. package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
  167. package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
  168. package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
  169. package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
  170. package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
  171. package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
  172. package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
  173. package/package.json +2 -2
  174. package/dist/ColorPicker-j0ySewhI.js +0 -244
  175. package/dist/Legend-1LMMsPxL.js +0 -90
  176. package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
  177. package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
  178. package/dist/vue-ui-bump-C_fKharc.js +0 -1059
  179. package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
  180. package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
  181. package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
  182. package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
  183. package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
  184. package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
  185. package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
  186. package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
  187. package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
  188. package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
  189. package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
  190. package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
  191. package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
  192. package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
  193. package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
  194. package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
  195. package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
  196. package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
  197. package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
  198. package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
  199. package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
  200. package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
  201. package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
  202. package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
  203. package/dist/vue-ui-rings-80ZUki42.js +0 -1083
  204. package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
  205. package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
  206. package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
  207. package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
  208. package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
  209. package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
  210. package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
  211. package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
  212. package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
  213. package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
  214. package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
  215. package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
  216. package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
  217. package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
  218. package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
@@ -0,0 +1,1637 @@
1
+ import { useCssVars as Na, defineAsyncComponent as se, useSlots as Ia, computed as h, ref as v, toRefs as Va, watch as re, onBeforeUnmount as Oa, onMounted as Ye, openBlock as n, createElementBlock as r, unref as i, normalizeStyle as b, normalizeClass as te, createElementVNode as s, toDisplayString as k, createBlock as H, createCommentVNode as p, withCtx as f, renderSlot as y, normalizeProps as O, guardReactiveProps as F, createSlots as Te, createVNode as ie, Fragment as B, renderList as D, mergeProps as Ot, resolveDynamicComponent as Fa, withKeys as Ma, createTextVNode as Ft, nextTick as Le } from "vue";
2
+ import { j as Ba, t as Mt, m as Da, p as ae, $ as qe, n as Ea, q as ye, o as Ze, K as N, s as Je, k as ge, l as M, X as Ra, u as Qe, v as Xa, Z as et, aq as Ha, a0 as Ua, a1 as Wa, T as Ga, U as Ka, a3 as ja } from "./lib-DBptbyyI.js";
3
+ import { t as Ya, u as qa } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Za } from "./useConfig-DO94Aj5s.js";
5
+ import { u as Ja, B as Qa } from "./BaseScanner-BhhkKVoj.js";
6
+ import { u as el } from "./usePrinter-CEpYU3r5.js";
7
+ import { u as tl } from "./useSvgExport-ByUukOZt.js";
8
+ import { u as tt } from "./useNestedProp-Bf5XFbs8.js";
9
+ import { u as al } from "./useThemeCheck-D1ZYXUwG.js";
10
+ import { u as ll } from "./useTableResponsive-Cbx-ACcP.js";
11
+ import { u as ol } from "./useUserOptionState-BIvW1Kz7.js";
12
+ import { u as nl } from "./useChartAccessibility-9icAAmYg.js";
13
+ import ul from "./img-LXxMLmCg.js";
14
+ import { _ as Bt } from "./Shape-BKRUOeKk.js";
15
+ import sl from "./Title-BeMKE1cj.js";
16
+ import rl from "./vue_ui_horizontal_bar-BEagrV0T.js";
17
+ import Dt from "./Legend-CS7Xo5LK.js";
18
+ import il from "./vue-ui-accordion-nvggWcGN.js";
19
+ import { B as Et } from "./BaseLegendToggle-BQVIawmA.js";
20
+ import { A as vl } from "./A11yDataTable-KcVAX2cP.js";
21
+ import { _ as cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
22
+ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "relative" } }, yl = ["xmlns", "viewBox", "aria-describedby"], gl = ["width", "height"], bl = ["id"], ml = ["stop-color"], kl = ["stop-color"], Cl = { key: 1 }, xl = ["y", "width", "height", "fill", "rx"], wl = ["x", "y", "width", "height", "fill", "rx"], _l = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], $l = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Sl = { class: "vue-ui-horizontal-bar-parent-label" }, Pl = ["y", "height", "width", "fill"], Al = ["y", "font-size", "fill", "x", "font-weight", "innerHTML"], zl = ["y", "font-size", "fill", "x", "font-weight"], Nl = { class: "vue-ui-horizontal-bar-child-label" }, Il = ["x", "y", "font-size", "font-weight", "innerHTML"], Vl = { class: "vue-ui-horizontal-bar-child-label" }, Ol = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], Fl = { class: "vue-ui-horizontal-bar-child-label" }, Ml = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], Bl = ["y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], Dl = {
23
+ key: 0,
24
+ style: { position: "absolute", top: "100%", left: "0", width: "100%" },
25
+ "data-dom-to-png-ignore": "",
26
+ "aria-hidden": "true"
27
+ }, El = {
28
+ key: 6,
29
+ class: "vue-data-ui-watermark"
30
+ }, Rl = ["onClick"], Xl = { style: "width:100%;padding-top: 36px;position:relative" }, Hl = { class: "vue-ui-data-table" }, Ul = { key: 0 }, Wl = { style: { width: "100%" } }, Gl = ["data-cell"], Kl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, jl = ["data-cell"], Yl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ql = ["data-cell"], Zl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Jl = ["data-cell"], Ql = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, eo = ["data-cell"], to = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ao = ["data-cell"], lo = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, oo = ["data-cell"], no = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, uo = {
31
+ __name: "vue-ui-horizontal-bar",
32
+ props: {
33
+ config: {
34
+ type: Object,
35
+ default() {
36
+ return {};
37
+ }
38
+ },
39
+ dataset: {
40
+ type: Array,
41
+ default() {
42
+ return [];
43
+ }
44
+ }
45
+ },
46
+ emits: ["selectLegend", "copyAlt"],
47
+ setup(Rt, { expose: Xt, emit: Ht }) {
48
+ Na((t) => ({
49
+ v6c1e4e56: t.tdo
50
+ }));
51
+ const Ut = se(() => import("./Tooltip-Bf-kM3_A.js")), at = se(() => import("./BaseIcon-Cb3zzG6s.js")), Wt = se(() => import("./PenAndPaper-Ct3qJ4lA.js")), Gt = se(() => import("./UserOptions-rW2fRf3V.js")), Kt = se(() => import("./PackageVersion-DPO-OOVI.js")), jt = se(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_vertical_bar: Yt } = Za(), { isThemeValid: qt, warnInvalidTheme: Zt } = al(), Jt = Ia(), C = Rt, Se = h({
52
+ get() {
53
+ return !!C.dataset && C.dataset.length;
54
+ },
55
+ set(t) {
56
+ return t;
57
+ }
58
+ }), S = v(Ba()), be = v(!1), Pe = v(""), me = v(null), lt = v(0), R = v(null), ot = v(null), Ae = v(null), nt = v(null), ut = v(null), st = v(0), ze = v(0), Qt = v(null), ve = v(null), Ne = v(null), ea = v(null), Ie = v(null), _ = v([]), ta = v({ none: 0, asc: 1, desc: 2 }), G = v(0), ke = v(!1), ce = v(0), le = v(0), Ve = v(null), Ce = v(!1), xe = v(!1), z = v(null), rt = v({ x: 0, y: 0 }), Oe = v("pointer"), it = Ht, e = v(Be()), Y = h(() => e.value.userOptions.useCursorPointer), aa = h(() => {
59
+ const t = [
60
+ { name: "", value: 6, color: "#d9d9d9" },
61
+ { name: "", value: 5, color: "#d9d9d9" },
62
+ { name: "", value: 4, color: "#d9d9d9" },
63
+ { name: "", value: 3, color: "#d9d9d9" },
64
+ { name: "", value: 2, color: "#d9d9d9" },
65
+ { name: "", value: 1, color: "#d9d9d9" }
66
+ ];
67
+ return C.config?.skeletonDataset ?? t;
68
+ }), la = h(() => Mt({
69
+ defaultConfig: {
70
+ useCssAnimation: !1,
71
+ userOptions: { show: !1 },
72
+ table: { show: !1 },
73
+ style: {
74
+ chart: {
75
+ backgroundColor: "#99999930",
76
+ layout: {
77
+ bars: {
78
+ offsetX: 110,
79
+ dataLabels: {
80
+ color: "transparent",
81
+ value: { prefix: "", suffix: "", formatter: null }
82
+ },
83
+ nameLabels: { color: "transparent" }
84
+ },
85
+ separators: { color: "#7A7A7A" }
86
+ },
87
+ legend: {
88
+ show: !0,
89
+ backgroundColor: "transparent",
90
+ color: "transparent",
91
+ prefix: "",
92
+ suffix: "",
93
+ formatter: null
94
+ },
95
+ title: { color: "#1A1A1A", subtitle: { color: "#5A5A5A" } }
96
+ }
97
+ }
98
+ },
99
+ userConfig: e.value.skeletonConfig ?? {}
100
+ })), { loading: we, FINAL_DATASET: vt, manualLoading: Fe } = Ja({
101
+ ...Va(C),
102
+ FINAL_CONFIG: e,
103
+ prepareConfig: Be,
104
+ callback: () => {
105
+ Promise.resolve().then(async () => {
106
+ T.value.showTable = e.value.table.show, sa();
107
+ });
108
+ },
109
+ skeletonDataset: aa.value,
110
+ skeletonConfig: Mt({
111
+ defaultConfig: e.value,
112
+ userConfig: la.value
113
+ })
114
+ }), { userOptionsVisible: Me, setUserOptionsVisibility: ct, keepUserOptionState: dt } = ol({ config: e.value }), { svgRef: oe } = nl({
115
+ config: e.value.style.chart.title
116
+ });
117
+ function Be() {
118
+ const t = tt({
119
+ userConfig: C.config,
120
+ defaultConfig: Yt
121
+ });
122
+ let l = {};
123
+ const a = t.theme;
124
+ if (a)
125
+ if (!qt.value(t))
126
+ Zt(t), l = t;
127
+ else {
128
+ const o = tt({
129
+ userConfig: rl[a] || C.config,
130
+ defaultConfig: t
131
+ });
132
+ l = {
133
+ ...tt({ userConfig: C.config, defaultConfig: o }),
134
+ customPalette: t.customPalette.length ? t.customPalette : Da[a] || ae
135
+ };
136
+ }
137
+ else
138
+ l = t;
139
+ return C.config && qe(C.config, "events.datapointEnter") ? l.events.datapointEnter = C.config.events.datapointEnter : l.events.datapointEnter = null, C.config && qe(C.config, "events.datapointLeave") ? l.events.datapointLeave = C.config.events.datapointLeave : l.events.datapointLeave = null, C.config && qe(C.config, "events.datapointClick") ? l.events.datapointClick = C.config.events.datapointClick : l.events.datapointClick = null, l;
140
+ }
141
+ const E = v(e.value.style.chart.width), K = v(e.value.style.chart.height), x = v(e.value.style.chart.layout.bars.gap);
142
+ re(
143
+ () => C.config,
144
+ (t) => {
145
+ we.value || (e.value = Be()), Me.value = !e.value.userOptions.showOnChartHover, st.value += 1, ze.value += 1, T.value.showTable = e.value.table.show, T.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", T.value.showTooltip = e.value.style.chart.tooltip.show, E.value = e.value.style.chart.width, K.value = e.value.style.chart.height, x.value = e.value.style.chart.layout.bars.gap;
146
+ },
147
+ { deep: !0 }
148
+ ), re(
149
+ () => C.dataset,
150
+ (t) => {
151
+ Array.isArray(t) && t.length > 0 && (Fe.value = !1);
152
+ },
153
+ { deep: !0 }
154
+ );
155
+ const { isPrinting: De, isImaging: Ee, generatePdf: ht, generateImage: pt } = el({
156
+ elementId: `vue-ui-vertical-bar_${S.value}`,
157
+ fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
158
+ options: e.value.userOptions.print
159
+ }), oa = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), ft = h(() => Ea(e.value.customPalette)), yt = v(null), na = h(() => e.value.table.responsiveBreakpoint), _e = h(() => !!e.value.debug), ua = v(0), j = v(null), q = v(null);
160
+ function sa() {
161
+ if (R.value && (Ze(C.dataset) && (ye({
162
+ componentName: "VueUiVerticalBar",
163
+ type: "dataset",
164
+ debug: _e.value
165
+ }), Se.value = !1, Fe.value = !0), Ze(C.dataset) || (Fe.value = e.value.loading), e.value.responsive)) {
166
+ const t = Ya(() => {
167
+ const { width: l, height: a } = qa({
168
+ chart: R.value,
169
+ title: e.value.style.chart.title.text ? ot.value : null,
170
+ legend: e.value.style.chart.legend.show ? Ae.value : null,
171
+ source: nt.value,
172
+ noTitle: ut.value
173
+ });
174
+ ua.value = a / 3, requestAnimationFrame(async () => {
175
+ K.value = a, E.value = l;
176
+ });
177
+ });
178
+ j.value && (q.value && j.value.unobserve(q.value), j.value.disconnect()), j.value = new ResizeObserver(t), Le(() => {
179
+ q.value = R.value?.parentNode, q.value && j.value.observe(q.value);
180
+ });
181
+ }
182
+ }
183
+ Oa(() => {
184
+ j.value && (q.value && j.value.unobserve(q.value), j.value.disconnect());
185
+ });
186
+ const T = v({
187
+ showTable: e.value.table.show,
188
+ sortDesc: e.value.style.chart.layout.bars.sort === "desc",
189
+ showTooltip: e.value.style.chart.tooltip.show
190
+ }), gt = h(() => T.value.sortDesc), P = h(() => (vt.value.forEach((t, l) => {
191
+ !t.value && !t.children && ye({
192
+ componentName: "VueUiVerticalBar",
193
+ type: "datasetAttributeEmpty",
194
+ property: `value (index ${l})`,
195
+ debug: _e.value
196
+ }), t.children && (Ze(t.children) ? ye({
197
+ componentName: "VueUiVerticalBar",
198
+ type: "datasetAttributeEmpty",
199
+ property: `children (index ${l})`,
200
+ debug: _e.value
201
+ }) : t.children.forEach((a, o) => {
202
+ [null, void 0].includes(a.name) && ye({
203
+ componentName: "VueUiVerticalBar",
204
+ type: "datasetSerieAttribute",
205
+ property: "name",
206
+ key: "children",
207
+ index: o,
208
+ debug: _e.value
209
+ });
210
+ }));
211
+ }), vt.value.map((t, l) => {
212
+ const a = `vertical_parent_${l}_${S.value}`, o = t.children && t.children.length > 0, g = N(
213
+ t.value ? t.value : o ? t.children.map((u) => u.value || 0).reduce((u, $) => u + $, 0) : 0
214
+ ), m = g >= 0 ? 1 : -1;
215
+ return {
216
+ ...t,
217
+ id: a,
218
+ absoluteIndex: l,
219
+ shape: "square",
220
+ opacity: _.value.includes(a) ? 0.5 : 1,
221
+ value: Math.abs(g),
222
+ sign: m,
223
+ hasChildren: o,
224
+ isChild: !1,
225
+ segregate: () => Z(a),
226
+ isSegregated: _.value.includes(a),
227
+ color: Je(t.color) || ft.value[l] || ae[l] || ae[l % ae.length],
228
+ children: !t.children || !t.children.length ? [] : t.children.toSorted(
229
+ ke.value ? () => 0 : (u, $) => gt.value ? $.value - u.value : u.value - $.value
230
+ ).map((u, $) => ({
231
+ ...u,
232
+ value: N(Math.abs(u.value)),
233
+ absoluteIndex: l,
234
+ sign: u.value >= 0 ? 1 : -1,
235
+ isChild: !0,
236
+ parentId: a,
237
+ parentName: t.name,
238
+ parentValue: g,
239
+ parentSign: m,
240
+ id: `vertical_child_${l}_${$}_${S.value}`,
241
+ childIndex: $,
242
+ color: Je(u.color) || Je(t.color) || ft.value[l] || ae[l] || ae[l % ae.length]
243
+ })).map((u, $) => ({
244
+ ...u,
245
+ isFirstChild: $ === 0,
246
+ isLastChild: $ === t.children.length - 1
247
+ }))
248
+ };
249
+ }).toSorted(
250
+ ke.value ? () => 0 : (t, l) => gt.value ? l.value - t.value : t.value - l.value
251
+ ))), U = h(() => P.value.filter(
252
+ (t) => !_.value.includes(t.id)
253
+ )), w = h(() => U.value.flatMap((t) => t.hasChildren ? t.children : t)), ra = h(() => P.value.flatMap((t) => t.hasChildren ? t.children : t)), bt = h(() => U.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0)), mt = h(() => ({
254
+ cy: "vertical-bar-div-legend",
255
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
256
+ color: e.value.style.chart.legend.color,
257
+ fontSize: e.value.style.chart.legend.fontSize,
258
+ paddingBottom: 12,
259
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
260
+ })), L = h(() => e.value.style.chart.layout.bars.parentLabels.show ? e.value.style.chart.layout.bars.parentLabels.fontSize * 3 + e.value.style.chart.layout.bars.parentLabels.paddingBottom : 0), A = h(() => {
261
+ const t = [];
262
+ let l = 0;
263
+ return w.value.forEach((a, o) => {
264
+ a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show && (l += 1), t[o] = l;
265
+ }), t;
266
+ }), d = h(() => {
267
+ const l = Math.max(0, ...A.value) * L.value;
268
+ return (K.value - 24 - (bt.value - 1) * x.value - l) / bt.value;
269
+ }), W = h(() => ({
270
+ width: E.value,
271
+ height: K.value,
272
+ padding: {
273
+ top: 12,
274
+ left: 128 + e.value.style.chart.layout.bars.offsetX,
275
+ right: 64 + e.value.style.chart.layout.bars.paddingRight,
276
+ bottom: 12
277
+ }
278
+ })), Re = v(0);
279
+ function kt() {
280
+ Le(() => {
281
+ if (!Ie.value) {
282
+ Re.value = 0;
283
+ return;
284
+ }
285
+ const l = Array.from(Ie.value.querySelectorAll("text")).reduce((a, o) => {
286
+ const g = o.getBBox?.().width ?? o.getComputedTextLength();
287
+ return g > a ? g : a;
288
+ }, 0);
289
+ Re.value = l + 12;
290
+ });
291
+ }
292
+ re(
293
+ () => [
294
+ w.value,
295
+ E.value,
296
+ K.value,
297
+ e.value.style.chart.layout.bars.nameLabels,
298
+ e.value.style.chart.layout.bars.offsetX
299
+ ],
300
+ () => kt(),
301
+ { deep: !0 }
302
+ ), Ye(() => {
303
+ kt();
304
+ });
305
+ function de() {
306
+ Le(() => {
307
+ ce.value = 0, le.value = 0, requestAnimationFrame(() => {
308
+ if (!Ve.value) {
309
+ ce.value = 0, le.value = 0;
310
+ return;
311
+ }
312
+ const t = Array.from(
313
+ Ve.value.querySelectorAll("text")
314
+ );
315
+ if (!t.length) {
316
+ ce.value = 0, le.value = 0;
317
+ return;
318
+ }
319
+ let l = 1 / 0, a = 0;
320
+ t.forEach((je) => {
321
+ const fe = je.getBBox(), ue = fe.x, ee = fe.x + fe.width;
322
+ ue < l && (l = ue), ee > a && (a = ee);
323
+ });
324
+ const o = 0, g = E.value, m = 24, u = Math.max(0, o - l + m), $ = Math.max(0, a - g + m);
325
+ le.value = u, ce.value = $;
326
+ });
327
+ });
328
+ }
329
+ re(_, () => de(), { deep: !0 }), re(
330
+ () => [w.value, E.value, K.value],
331
+ () => de(),
332
+ { deep: !0 }
333
+ ), Ye(() => de());
334
+ const c = h(() => {
335
+ const t = Re.value + Math.abs(e.value.style.chart.layout.bars.nameLabels.offsetX) + le.value + e.value.style.chart.layout.bars.offsetX, l = W.value.width - W.value.padding.right, a = Math.max(0, l - t - ce.value - le.value - e.value.style.chart.layout.bars.offsetX);
336
+ return {
337
+ top: W.value.padding.top,
338
+ bottom: W.value.padding.top + W.value.height,
339
+ left: t,
340
+ right: l,
341
+ width: a,
342
+ fullHeight: W.value.padding.top + W.value.padding.bottom + W.value.height
343
+ };
344
+ });
345
+ function Ct() {
346
+ _.value.length ? _.value = [] : P.value.forEach((t) => {
347
+ _.value.push(t.id);
348
+ }), de();
349
+ }
350
+ async function Z(t) {
351
+ if (_.value.includes(t))
352
+ _.value = _.value.filter((l) => l !== t);
353
+ else {
354
+ if (_.value.length === P.value.length - 1) return;
355
+ _.value.push(t);
356
+ }
357
+ it("selectLegend", U.value), de();
358
+ }
359
+ function xt(t) {
360
+ if (!P.value.length)
361
+ return e.value.debug && console.warn("VueUiHorizontalBar - There are no series to show."), null;
362
+ const l = P.value.find((a) => a.name === t);
363
+ return l || (e.value.debug && console.warn(`VueUiHorizontalBar - Series name not found "${t}"`), null);
364
+ }
365
+ function ia(t) {
366
+ const l = xt(t);
367
+ l !== null && _.value.includes(l.id) && Z(l.id);
368
+ }
369
+ function va(t) {
370
+ const l = xt(t);
371
+ l !== null && (_.value.includes(l.id) || Z(l.id));
372
+ }
373
+ const X = h(() => U.value.map((t) => Math.abs(t.value)).reduce((t, l) => t + l, 0));
374
+ function wt(t, l = !1, a = 0) {
375
+ return l ? M({
376
+ v: N(Math.abs(t) / X.value * 100),
377
+ s: "%",
378
+ r: a
379
+ }) : Math.abs(t) / X.value;
380
+ }
381
+ const J = h(() => w.value.map((t) => t.sign).includes(-1)), ca = h(() => Math.max(
382
+ ...U.value.flatMap((t) => t.children && t.children.length ? Math.max(...t.children.map((l) => l.value)) : t.value)
383
+ ));
384
+ function I(t) {
385
+ const l = t / ca.value;
386
+ return N(c.value.width / (J.value ? 2 : 1) * l);
387
+ }
388
+ function da(t) {
389
+ return I(t) + c.value.left;
390
+ }
391
+ function ne(t, l) {
392
+ const a = U.value.find((u) => u.id === t.parentId);
393
+ return {
394
+ y: c.value.top + (x.value + d.value) * l + A.value[l] * L.value - L.value + e.value.style.chart.layout.bars.parentLabels.fontSize,
395
+ name: a.name,
396
+ value: [void 0, NaN, null].includes(a.value) ? "" : a.sign === 1 ? a.value : -a.value,
397
+ percentageToTotal: isNaN(a.value / X.value) ? "" : wt(
398
+ a.value,
399
+ !0,
400
+ e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage
401
+ ),
402
+ sign: a.sign
403
+ };
404
+ }
405
+ function ha() {
406
+ return U.value;
407
+ }
408
+ function _t(t, l) {
409
+ return ne(t, l).name;
410
+ }
411
+ function pa(t, l) {
412
+ const a = ne(t, l);
413
+ return St(a.value, a, l, t.parentSign || t.sign);
414
+ }
415
+ const Xe = v(null), He = v(null);
416
+ function $t({ datapoint: t, seriesIndex: l }) {
417
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
418
+ }
419
+ function Tt({ datapoint: t, seriesIndex: l }) {
420
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), me.value = null, be.value = !1, Xe.value = null, z.value === l && (z.value = null);
421
+ }
422
+ function Lt(t, l, a = "pointer") {
423
+ Oe.value = a, e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }), z.value = l, me.value = t, He.value = {
424
+ datapoint: t,
425
+ seriesIndex: l,
426
+ series: P.value,
427
+ config: e.value
428
+ }, be.value = !0, Xe.value = t.id;
429
+ let o = "";
430
+ const g = t.isChild ? t.parentName : t.name, m = t.isChild ? t.name : "", u = e.value.style.chart.tooltip.customFormat;
431
+ Ga(u) && Ka(
432
+ () => u({
433
+ datapoint: t,
434
+ series: P.value,
435
+ config: e.value,
436
+ seriesIndex: l
437
+ })
438
+ ) ? Pe.value = u({
439
+ datapoint: t,
440
+ series: P.value,
441
+ config: e.value,
442
+ seriesIndex: l
443
+ }) : (o += `<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;">
444
+ <div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${t.color}"/>${Jt.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${S.value}_${t.absoluteIndex})"/>` : ""}</svg> ${g}</div>
445
+ ${m ? `<div>${m}</div>` : ""}
446
+ </div>`, e.value.style.chart.tooltip.showValue && (o += `<div>${e.value.translations.value}: <b>${ge(
447
+ e.value.style.chart.layout.bars.dataLabels.value.formatter,
448
+ t.sign === 1 ? t.value : -t.value,
449
+ M({
450
+ p: e.value.style.chart.tooltip.prefix,
451
+ v: t.sign === 1 ? t.value : -t.value,
452
+ s: e.value.style.chart.tooltip.suffix,
453
+ r: e.value.style.chart.tooltip.roundingValue
454
+ }),
455
+ { datapoint: t, seriesIndex: l }
456
+ )}</b></div>`), e.value.style.chart.tooltip.showPercentage && (o += `<div>${e.value.translations.percentageToTotal} : <b>${M({
457
+ v: Math.abs(t.value) / X.value * 100,
458
+ s: "%",
459
+ r: e.value.style.chart.tooltip.roundingPercentage
460
+ })}</b></div>`, t.isChild && (o += `<div>${e.value.translations.percentageToSerie}: <b>${M({
461
+ v: Math.abs(t.value) / Math.abs(t.parentValue) * 100,
462
+ s: "%",
463
+ r: e.value.style.chart.tooltip.roundingPercentage
464
+ })}</b></div>`)), Pe.value = `<div style="text-align:left">${o}</div>`);
465
+ }
466
+ function St(t, l, a, o) {
467
+ if (!e.value.style.chart.layout.bars.dataLabels.value.show)
468
+ return "";
469
+ const g = ge(
470
+ e.value.style.chart.layout.bars.dataLabels.value.formatter,
471
+ N(o === -1 && t >= 0 ? -t : t),
472
+ M({
473
+ p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
474
+ v: N(o === -1 && t >= 0 ? -t : t),
475
+ s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
476
+ r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
477
+ }),
478
+ { datapoint: l, seriesIndex: a }
479
+ ), m = `(${wt(
480
+ t,
481
+ !0,
482
+ e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage
483
+ )})`;
484
+ return `${g}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${m}` : ""}`;
485
+ }
486
+ const V = h(() => {
487
+ const t = [
488
+ e.value.translations.parentName,
489
+ e.value.translations.value,
490
+ e.value.translations.percentageToTotal,
491
+ e.value.translations.childName,
492
+ e.value.translations.value,
493
+ e.value.translations.percentageToSerie,
494
+ e.value.translations.percentageToTotal
495
+ ], l = w.value.map((a) => a.isChild ? a.isFirstChild ? {
496
+ color: a.color,
497
+ parentName: a.parentName,
498
+ parentValue: a.parentValue,
499
+ percentageToTotal: a.parentValue / X.value,
500
+ childName: a.name,
501
+ childValue: a.sign === 1 ? a.value : -a.value,
502
+ childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
503
+ childPercentageToTotal: Math.abs(a.value) / X.value
504
+ } : {
505
+ color: "",
506
+ parentName: "",
507
+ parentValue: "",
508
+ percentageToTotal: "",
509
+ childName: a.name,
510
+ childValue: a.sign === 1 ? a.value : -a.value,
511
+ childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
512
+ childPercentageToTotal: Math.abs(a.value) / X.value
513
+ } : {
514
+ color: a.color,
515
+ parentName: a.name,
516
+ parentValue: a.sign === 1 ? a.value : -a.value,
517
+ percentageToTotal: Math.abs(a.value) / X.value,
518
+ childName: "",
519
+ childValue: "",
520
+ childPercentageToParent: "",
521
+ childPercentageToTotal: ""
522
+ });
523
+ return { head: t, body: l };
524
+ });
525
+ function Ue(t = null) {
526
+ const l = [
527
+ [e.value.style.chart.title.text],
528
+ [e.value.style.chart.title.subtitle.text],
529
+ [""]
530
+ ], a = V.value.head, o = V.value.body.map((u) => [
531
+ u.parentName,
532
+ u.parentValue,
533
+ u.percentageToTotal,
534
+ u.childName,
535
+ u.childValue,
536
+ u.childPercentageToParent,
537
+ u.childPercentageToTotal
538
+ ]), g = l.concat([a]).concat(o), m = Ua(g);
539
+ t ? t(m) : Wa({
540
+ csvContent: m,
541
+ title: e.value.style.chart.title.text || "vue-ui-vertical-bar"
542
+ });
543
+ }
544
+ const Q = v(!1);
545
+ function Pt(t) {
546
+ Q.value = t, lt.value += 1;
547
+ }
548
+ function At() {
549
+ T.value.showTable = !T.value.showTable;
550
+ }
551
+ Ye(() => {
552
+ ["none", "asc", "desc"].includes(
553
+ e.value.style.chart.layout.bars.sort
554
+ ) || ye({
555
+ componentName: "VueUiVerticalBar",
556
+ type: "attributeWrongValue",
557
+ property: "style.chart.layout.bars.sort",
558
+ key: e.value.style.chart.layout.bars.sort
559
+ }), G.value = ta.value[e.value.style.chart.layout.bars.sort], T.value.sortDesc = G.value === 2, ke.value = G.value === 0;
560
+ });
561
+ function fa() {
562
+ G.value += 1, G.value > 2 && (G.value = 0);
563
+ }
564
+ function zt() {
565
+ fa(), T.value.sortDesc = G.value === 2, ke.value = G.value === 0;
566
+ }
567
+ function Nt() {
568
+ T.value.showTooltip = !T.value.showTooltip;
569
+ }
570
+ const he = v(!1);
571
+ function We() {
572
+ he.value = !he.value;
573
+ }
574
+ async function ya({ scale: t = 2 } = {}) {
575
+ if (!R.value) return;
576
+ const { width: l, height: a } = R.value.getBoundingClientRect(), o = l / a, { imageUri: g, base64: m } = await ul({
577
+ domElement: R.value,
578
+ base64: !0,
579
+ img: !0,
580
+ scale: t
581
+ });
582
+ return {
583
+ imageUri: g,
584
+ base64: m,
585
+ title: e.value.style.chart.title.text,
586
+ width: l,
587
+ height: a,
588
+ aspectRatio: o
589
+ };
590
+ }
591
+ const $e = h(() => {
592
+ const t = e.value.table.useDialog && !e.value.table.show, l = T.value.showTable;
593
+ return {
594
+ component: t ? jt : il,
595
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
596
+ props: t ? {
597
+ backgroundColor: e.value.table.th.backgroundColor,
598
+ color: e.value.table.th.color,
599
+ headerColor: e.value.table.th.color,
600
+ headerBg: e.value.table.th.backgroundColor,
601
+ isFullscreen: Q.value,
602
+ fullscreenParent: R.value,
603
+ forcedWidth: Math.min(800, window.innerWidth * 0.8),
604
+ isCursorPointer: Y.value
605
+ } : {
606
+ hideDetails: !0,
607
+ config: {
608
+ open: l,
609
+ maxHeight: 1e4,
610
+ body: {
611
+ backgroundColor: e.value.style.chart.backgroundColor,
612
+ color: e.value.style.chart.color
613
+ },
614
+ head: {
615
+ backgroundColor: e.value.style.chart.backgroundColor,
616
+ color: e.value.style.chart.color
617
+ }
618
+ }
619
+ }
620
+ };
621
+ });
622
+ re(
623
+ () => T.value.showTable,
624
+ (t) => {
625
+ e.value.table.show || (t && e.value.table.useDialog && ve.value ? ve.value.open() : "close" in ve.value && ve.value.close());
626
+ }
627
+ );
628
+ const { isResponsive: ga } = ll(yt, na);
629
+ function Ge() {
630
+ T.value.showTable = !1, Ne.value && Ne.value.setTableIconState(!1);
631
+ }
632
+ const ba = h(() => P.value.map((t, l) => ({
633
+ ...t,
634
+ shape: "square",
635
+ display: `${t.name}: ${ge(
636
+ e.value.style.chart.layout.bars.dataLabels.value.formatter,
637
+ t.value,
638
+ M({
639
+ p: e.value.style.chart.legend.prefix,
640
+ v: t.value,
641
+ s: e.value.style.chart.legend.suffix,
642
+ r: e.value.style.chart.legend.roundingValue
643
+ }),
644
+ { datapoint: t, seriesIndex: l }
645
+ )}`
646
+ }))), ma = h(() => e.value.style.chart.backgroundColor), ka = h(() => e.value.style.chart.legend), Ca = h(() => e.value.style.chart.title), xa = h(() => ba.value.map((t) => ({
647
+ ...t,
648
+ name: t.display
649
+ }))), { exportSvg: wa, getSvg: _a } = tl({
650
+ svg: oe,
651
+ title: Ca,
652
+ legend: ka,
653
+ legendItems: xa,
654
+ backgroundColor: ma
655
+ });
656
+ async function It({ isCb: t }) {
657
+ xe.value = !0, await Le();
658
+ try {
659
+ if (t) {
660
+ const { blob: l, url: a, text: o, dataUrl: g } = await _a();
661
+ await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: g }));
662
+ } else
663
+ await Promise.resolve(wa());
664
+ } finally {
665
+ xe.value = !1;
666
+ }
667
+ }
668
+ function $a(t) {
669
+ if (t?.stage === "start") {
670
+ Ce.value = !0;
671
+ return;
672
+ }
673
+ if (t?.stage === "end") {
674
+ Ce.value = !1;
675
+ return;
676
+ }
677
+ pt();
678
+ }
679
+ function Ta() {
680
+ console.warn("[autoSize]: this legacy method can be safely removed as it has no impact.");
681
+ }
682
+ async function Vt() {
683
+ if (it("copyAlt", {
684
+ config: e.value,
685
+ dataset: U.value
686
+ }), !e.value.userOptions.callbacks.altCopy) {
687
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
688
+ return;
689
+ }
690
+ await Promise.resolve(e.value.userOptions.callbacks.altCopy({
691
+ config: e.value,
692
+ dataset: U.value
693
+ }));
694
+ }
695
+ const Ke = v(!1);
696
+ function La() {
697
+ z.value = null, Ke.value = !0;
698
+ }
699
+ function Sa() {
700
+ z.value = null, be.value = !1, Ke.value = !1;
701
+ }
702
+ function Pa() {
703
+ if (z.value === null) return;
704
+ const t = w.value[z.value];
705
+ t && Tt({
706
+ datapoint: t,
707
+ seriesIndex: z.value
708
+ }), z.value = null, Oe.value = "pointer";
709
+ }
710
+ function Aa(t) {
711
+ if (!oe.value || he.value || document.activeElement !== oe.value) return;
712
+ const l = t.key === "ArrowRight" || t.key === "ArrowDown", a = t.key === "ArrowLeft" || t.key === "ArrowUp", o = t.key === "Enter" || t.key === " ", g = t.key === "Escape";
713
+ if (!l && !a && !o && !g) return;
714
+ const m = w.value.length;
715
+ if (!m) return;
716
+ if (t.preventDefault(), t.stopPropagation(), g) {
717
+ Pa();
718
+ return;
719
+ }
720
+ if (o) {
721
+ if (z.value === null) return;
722
+ const ee = w.value[z.value];
723
+ if (!ee) return;
724
+ $t({
725
+ datapoint: ee,
726
+ seriesIndex: z.value
727
+ });
728
+ return;
729
+ }
730
+ let u = z.value;
731
+ const $ = me.value ? w.value.findIndex((ee) => ee.id === me.value.id) : null, je = u !== null && u >= 0 && u < m, fe = $ !== null && $ >= 0 && $ < m;
732
+ je ? l ? (u += 1, u >= m && (u = 0)) : a && (u -= 1, u < 0 && (u = m - 1)) : fe ? (u = l ? $ + 1 : $ - 1, u >= m && (u = 0), u < 0 && (u = m - 1)) : l ? u = 0 : u = m - 1;
733
+ const ue = w.value[u];
734
+ ue && (z.value = u, za(ue), Lt(ue, u, "keyboard"));
735
+ }
736
+ function za(t) {
737
+ if (!t) return;
738
+ let l = c.value.right, a = c.value.top + (x.value + d.value) * t.absoluteIndex + A.value[t.absoluteIndex] * L.value;
739
+ if (!Number.isFinite(l) || !Number.isFinite(a))
740
+ return;
741
+ const o = ja(l, a, oe.value);
742
+ o && (rt.value = o);
743
+ }
744
+ const pe = h(() => ({
745
+ head: V.value.head,
746
+ body: V.value.body.map((t) => [
747
+ t.parentName,
748
+ t.parentValue === "" ? "" : M({
749
+ v: t.parentValue,
750
+ r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue,
751
+ p: e.value.style.chart.layout.bars.dataLabels.prefix,
752
+ s: e.value.style.chart.layout.bars.dataLabels.suffix
753
+ }),
754
+ t.percentageToTotal === "" ? "" : M({
755
+ v: t.percentageToTotal * 100,
756
+ r: e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage,
757
+ s: "%"
758
+ }),
759
+ t.childName,
760
+ t.childValue === "" ? "" : M({
761
+ v: t.childValue,
762
+ r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue,
763
+ p: e.value.style.chart.layout.bars.dataLabels.prefix,
764
+ s: e.value.style.chart.layout.bars.dataLabels.suffix
765
+ }),
766
+ t.childPercentageToParent === "" ? "" : M({
767
+ v: t.childPercentageToParent * 100,
768
+ r: e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage,
769
+ s: "%"
770
+ }),
771
+ t.childPercentageToTotal === "" ? "" : M({
772
+ v: t.childPercentageToTotal * 100,
773
+ r: e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage,
774
+ s: "%"
775
+ })
776
+ ]),
777
+ caption: e.value.a11y.translations.tableCaption,
778
+ notice: e.value.a11y.translations.tableAvailable
779
+ }));
780
+ return Xt({
781
+ autoSize: Ta,
782
+ getData: ha,
783
+ getImage: ya,
784
+ generatePdf: ht,
785
+ generateCsv: Ue,
786
+ generateImage: pt,
787
+ generateSvg: It,
788
+ hideSeries: va,
789
+ showSeries: ia,
790
+ toggleTable: At,
791
+ toggleSort: zt,
792
+ toggleTooltip: Nt,
793
+ toggleAnnotator: We,
794
+ toggleFullscreen: Pt,
795
+ copyAlt: Vt
796
+ }), (t, l) => (n(), r("div", {
797
+ class: te(`vue-data-ui-component vue-ui-vertical-bar ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${e.value.responsive ? "vue-ui-vertical-bar-autosize" : ""}`),
798
+ ref_key: "verticalBarChart",
799
+ ref: R,
800
+ id: `vue-ui-vertical-bar_${S.value}`,
801
+ style: b(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};height:100%`),
802
+ onMouseenter: l[3] || (l[3] = () => i(ct)(!0)),
803
+ onMouseleave: l[4] || (l[4] = () => i(ct)(!1))
804
+ }, [
805
+ s("p", {
806
+ id: `chart-instructions-${S.value}`,
807
+ class: "sr-only"
808
+ }, k(e.value.a11y.translations.keyboardNavigation), 9, hl),
809
+ pe.value.body.length ? (n(), H(vl, {
810
+ key: 0,
811
+ uid: S.value,
812
+ head: pe.value.head,
813
+ body: pe.value.body,
814
+ caption: pe.value.caption,
815
+ notice: pe.value.notice
816
+ }, null, 8, ["uid", "head", "body", "caption", "notice"])) : p("", !0),
817
+ e.value.userOptions.buttons.annotator ? (n(), H(i(Wt), {
818
+ key: 1,
819
+ svgRef: i(oe),
820
+ backgroundColor: e.value.style.chart.backgroundColor,
821
+ color: e.value.style.chart.color,
822
+ active: he.value,
823
+ isCursorPointer: Y.value,
824
+ onClose: We
825
+ }, {
826
+ "annotator-action-close": f(() => [
827
+ y(t.$slots, "annotator-action-close", {}, void 0, !0)
828
+ ]),
829
+ "annotator-action-color": f(({ color: a }) => [
830
+ y(t.$slots, "annotator-action-color", O(F({ color: a })), void 0, !0)
831
+ ]),
832
+ "annotator-action-draw": f(({ mode: a }) => [
833
+ y(t.$slots, "annotator-action-draw", O(F({ mode: a })), void 0, !0)
834
+ ]),
835
+ "annotator-action-undo": f(({ disabled: a }) => [
836
+ y(t.$slots, "annotator-action-undo", O(F({ disabled: a })), void 0, !0)
837
+ ]),
838
+ "annotator-action-redo": f(({ disabled: a }) => [
839
+ y(t.$slots, "annotator-action-redo", O(F({ disabled: a })), void 0, !0)
840
+ ]),
841
+ "annotator-action-delete": f(({ disabled: a }) => [
842
+ y(t.$slots, "annotator-action-delete", O(F({ disabled: a })), void 0, !0)
843
+ ]),
844
+ _: 3
845
+ }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : p("", !0),
846
+ oa.value ? (n(), r("div", {
847
+ key: 2,
848
+ ref_key: "noTitle",
849
+ ref: ut,
850
+ class: "vue-data-ui-no-title-space",
851
+ style: "height:36px; width: 100%;background:transparent"
852
+ }, null, 512)) : p("", !0),
853
+ e.value.style.chart.title.text ? (n(), r("div", {
854
+ key: 3,
855
+ ref_key: "chartTitle",
856
+ ref: ot,
857
+ style: "width:100%;background:transparent;padding-bottom:12px"
858
+ }, [
859
+ (n(), H(sl, {
860
+ key: `title_${st.value}`,
861
+ config: {
862
+ title: {
863
+ cy: "vertical-bar-div-title",
864
+ ...e.value.style.chart.title
865
+ },
866
+ subtitle: {
867
+ cy: "vertical-bar-div-subtitle",
868
+ ...e.value.style.chart.title.subtitle
869
+ }
870
+ }
871
+ }, null, 8, ["config"]))
872
+ ], 512)) : p("", !0),
873
+ e.value.userOptions.show && Se.value && (i(dt) || i(Me)) ? (n(), H(i(Gt), {
874
+ ref_key: "userOptionsRef",
875
+ ref: Ne,
876
+ backgroundColor: e.value.style.chart.backgroundColor,
877
+ color: e.value.style.chart.color,
878
+ key: `user_options_${lt.value}`,
879
+ isImaging: i(Ee),
880
+ isPrinting: i(De),
881
+ uid: S.value,
882
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
883
+ hasPdf: e.value.userOptions.buttons.pdf,
884
+ hasImg: e.value.userOptions.buttons.img,
885
+ hasSvg: e.value.userOptions.buttons.svg,
886
+ hasXls: e.value.userOptions.buttons.csv,
887
+ hasTable: e.value.userOptions.buttons.table,
888
+ hasSort: e.value.userOptions.buttons.sort,
889
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
890
+ hasAltCopy: e.value.userOptions.buttons.altCopy,
891
+ isFullscreen: Q.value,
892
+ isTooltip: T.value.showTooltip,
893
+ titles: { ...e.value.userOptions.buttonTitles },
894
+ chartElement: R.value,
895
+ position: e.value.userOptions.position,
896
+ hasAnnotator: e.value.userOptions.buttons.annotator,
897
+ isAnnotation: he.value,
898
+ callbacks: e.value.userOptions.callbacks,
899
+ printScale: e.value.userOptions.print.scale,
900
+ tableDialog: e.value.table.useDialog,
901
+ isCursorPointer: Y.value,
902
+ onToggleFullscreen: Pt,
903
+ onGeneratePdf: i(ht),
904
+ onGenerateCsv: Ue,
905
+ onGenerateImage: $a,
906
+ onGenerateSvg: It,
907
+ onToggleTable: At,
908
+ onToggleSort: zt,
909
+ onToggleTooltip: Nt,
910
+ onToggleAnnotator: We,
911
+ onCopyAlt: Vt,
912
+ style: b({
913
+ visibility: i(dt) ? i(Me) ? "visible" : "hidden" : "visible"
914
+ })
915
+ }, Te({ _: 2 }, [
916
+ t.$slots.menuIcon ? {
917
+ name: "menuIcon",
918
+ fn: f(({ isOpen: a, color: o }) => [
919
+ y(t.$slots, "menuIcon", O(F({ isOpen: a, color: o })), void 0, !0)
920
+ ]),
921
+ key: "0"
922
+ } : void 0,
923
+ t.$slots.optionTooltip ? {
924
+ name: "optionTooltip",
925
+ fn: f(() => [
926
+ y(t.$slots, "optionTooltip", {}, void 0, !0)
927
+ ]),
928
+ key: "1"
929
+ } : void 0,
930
+ t.$slots.optionPdf ? {
931
+ name: "optionPdf",
932
+ fn: f(() => [
933
+ y(t.$slots, "optionPdf", {}, void 0, !0)
934
+ ]),
935
+ key: "2"
936
+ } : void 0,
937
+ t.$slots.optionCsv ? {
938
+ name: "optionCsv",
939
+ fn: f(() => [
940
+ y(t.$slots, "optionCsv", {}, void 0, !0)
941
+ ]),
942
+ key: "3"
943
+ } : void 0,
944
+ t.$slots.optionImg ? {
945
+ name: "optionImg",
946
+ fn: f(() => [
947
+ y(t.$slots, "optionImg", {}, void 0, !0)
948
+ ]),
949
+ key: "4"
950
+ } : void 0,
951
+ t.$slots.optionSvg ? {
952
+ name: "optionSvg",
953
+ fn: f(() => [
954
+ y(t.$slots, "optionSvg", {}, void 0, !0)
955
+ ]),
956
+ key: "5"
957
+ } : void 0,
958
+ t.$slots.optionTable ? {
959
+ name: "optionTable",
960
+ fn: f(() => [
961
+ y(t.$slots, "optionTable", {}, void 0, !0)
962
+ ]),
963
+ key: "6"
964
+ } : void 0,
965
+ t.$slots.optionLabels ? {
966
+ name: "optionLabels",
967
+ fn: f(() => [
968
+ y(t.$slots, "optionLabels", {}, void 0, !0)
969
+ ]),
970
+ key: "7"
971
+ } : void 0,
972
+ t.$slots.optionSort ? {
973
+ name: "optionSort",
974
+ fn: f(() => [
975
+ y(t.$slots, "optionSort", {}, void 0, !0)
976
+ ]),
977
+ key: "8"
978
+ } : void 0,
979
+ t.$slots.optionFullscreen ? {
980
+ name: "optionFullscreen",
981
+ fn: f(({ toggleFullscreen: a, isFullscreen: o }) => [
982
+ y(t.$slots, "optionFullscreen", O(F({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
983
+ ]),
984
+ key: "9"
985
+ } : void 0,
986
+ t.$slots.optionAnnotator ? {
987
+ name: "optionAnnotator",
988
+ fn: f(({ toggleAnnotator: a, isAnnotator: o }) => [
989
+ y(t.$slots, "optionAnnotator", O(F({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
990
+ ]),
991
+ key: "10"
992
+ } : void 0,
993
+ t.$slots.optionAltCopy ? {
994
+ name: "optionAltCopy",
995
+ fn: f(({ altCopy: a }) => [
996
+ y(t.$slots, "optionAltCopy", O(F({ altCopy: a })), void 0, !0)
997
+ ]),
998
+ key: "11"
999
+ } : void 0
1000
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : p("", !0),
1001
+ e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (n(), r("div", {
1002
+ key: 5,
1003
+ ref_key: "chartLegend",
1004
+ ref: Ae
1005
+ }, [
1006
+ (n(), H(Dt, {
1007
+ key: `legend_top_${ze.value}`,
1008
+ legendSet: P.value,
1009
+ config: mt.value,
1010
+ onClickMarker: l[0] || (l[0] = ({ legend: a }) => Z(a.id))
1011
+ }, Te({
1012
+ item: f(({ legend: a, index: o }) => [
1013
+ s("div", {
1014
+ onClick: (g) => Z(a.id),
1015
+ style: b(`opacity:${_.value.includes(a.id) ? 0.5 : 1}`)
1016
+ }, k(a.name) + ": " + k(i(ge)(
1017
+ e.value.style.chart.layout.bars.dataLabels.value.formatter,
1018
+ a.value,
1019
+ i(M)({
1020
+ p: e.value.style.chart.legend.prefix,
1021
+ v: a.value,
1022
+ s: e.value.style.chart.legend.suffix,
1023
+ r: e.value.style.chart.legend.roundingValue
1024
+ }),
1025
+ { datapoint: a, seriesIndex: o }
1026
+ )), 13, pl)
1027
+ ]),
1028
+ legendToggle: f(() => [
1029
+ P.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !i(we) ? (n(), H(Et, {
1030
+ key: 0,
1031
+ backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
1032
+ color: e.value.style.chart.legend.selectAllToggle.color,
1033
+ fontSize: e.value.style.chart.legend.fontSize,
1034
+ checked: _.value.length > 0,
1035
+ onToggle: Ct
1036
+ }, null, 8, ["backgroundColor", "color", "fontSize", "checked"])) : p("", !0)
1037
+ ]),
1038
+ _: 2
1039
+ }, [
1040
+ t.$slots.pattern ? {
1041
+ name: "legend-pattern",
1042
+ fn: f(({ legend: a, index: o }) => [
1043
+ ie(Bt, {
1044
+ shape: a.shape,
1045
+ radius: 30,
1046
+ stroke: "none",
1047
+ plot: { x: 30, y: 30 },
1048
+ fill: `url(#pattern_${S.value}_${o})`
1049
+ }, null, 8, ["shape", "fill"])
1050
+ ]),
1051
+ key: "0"
1052
+ } : void 0
1053
+ ]), 1032, ["legendSet", "config"]))
1054
+ ], 512)) : p("", !0),
1055
+ s("div", fl, [
1056
+ (n(), r("svg", {
1057
+ ref_key: "svgRef",
1058
+ ref: oe,
1059
+ xmlns: i(Ra),
1060
+ class: te({
1061
+ "vue-data-ui-fullscreen--on": Q.value,
1062
+ "vue-data-ui-fulscreen--off": !Q.value
1063
+ }),
1064
+ viewBox: `0 0 ${E.value} ${K.value}`,
1065
+ style: b(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`),
1066
+ tabindex: "0",
1067
+ "aria-describedby": `chart-instructions-${S.value}`,
1068
+ onFocus: La,
1069
+ onBlur: Sa,
1070
+ onKeydown: Aa
1071
+ }, [
1072
+ s("g", {
1073
+ ref_key: "G",
1074
+ ref: Qt,
1075
+ class: "vue-data-ui-g"
1076
+ }, [
1077
+ ie(i(Kt)),
1078
+ t.$slots["chart-background"] ? (n(), r("foreignObject", {
1079
+ key: 0,
1080
+ x: 0,
1081
+ y: 0,
1082
+ width: E.value,
1083
+ height: K.value,
1084
+ style: {
1085
+ pointerEvents: "none"
1086
+ }
1087
+ }, [
1088
+ y(t.$slots, "chart-background", {}, void 0, !0)
1089
+ ], 8, gl)) : p("", !0),
1090
+ (n(!0), r(B, null, D(w.value, (a, o) => (n(), r("linearGradient", {
1091
+ x1: "0%",
1092
+ y1: "0%",
1093
+ x2: "100%",
1094
+ y2: "0%",
1095
+ id: `vertical_bar_gradient_${S.value}_${o}`
1096
+ }, [
1097
+ s("stop", {
1098
+ offset: "0%",
1099
+ "stop-color": a.color
1100
+ }, null, 8, ml),
1101
+ s("stop", {
1102
+ offset: "100%",
1103
+ "stop-color": i(Qe)(
1104
+ i(Xa)(a.color, 0.03),
1105
+ 100 - e.value.style.chart.layout.bars.gradientIntensity
1106
+ )
1107
+ }, null, 8, kl)
1108
+ ], 8, bl))), 256)),
1109
+ t.$slots.pattern ? (n(), r("g", Cl, [
1110
+ (n(!0), r(B, null, D(w.value, (a) => (n(), r("defs", null, [
1111
+ y(t.$slots, "pattern", Ot({ ref_for: !0 }, {
1112
+ seriesIndex: a.absoluteIndex,
1113
+ patternId: `pattern_${S.value}_${a.absoluteIndex}`
1114
+ }), void 0, !0)
1115
+ ]))), 256))
1116
+ ])) : p("", !0),
1117
+ e.value.style.chart.layout.bars.rowColor ? (n(!0), r(B, { key: 2 }, D(w.value, (a, o) => (n(), r("g", null, [
1118
+ s("rect", {
1119
+ x: 0,
1120
+ y: c.value.top + (x.value + d.value) * o + A.value[o] * L.value,
1121
+ width: E.value,
1122
+ height: d.value <= 0 ? 1e-4 : d.value,
1123
+ fill: e.value.style.chart.layout.bars.rowColor,
1124
+ rx: e.value.style.chart.layout.bars.rowRadius,
1125
+ style: { pointerEvents: "none" }
1126
+ }, null, 8, xl)
1127
+ ]))), 256)) : p("", !0),
1128
+ (n(!0), r(B, null, D(w.value, (a, o) => (n(), r("g", null, [
1129
+ s("rect", {
1130
+ x: i(N)(
1131
+ J.value ? c.value.left + c.value.width / 2 - (a.sign === 1 ? 0 : I(a.value) <= 0 ? 1e-4 : I(a.value)) : c.value.left
1132
+ ),
1133
+ y: c.value.top + (x.value + d.value) * o + A.value[o] * L.value,
1134
+ width: i(N)(
1135
+ I(a.value) <= 0 ? 1e-4 : I(a.value)
1136
+ ),
1137
+ height: d.value <= 0 ? 1e-4 : d.value,
1138
+ fill: e.value.style.chart.layout.bars.underlayerColor,
1139
+ rx: e.value.style.chart.layout.bars.borderRadius,
1140
+ class: te({ animated: e.value.useCssAnimation })
1141
+ }, null, 10, wl)
1142
+ ]))), 256)),
1143
+ (n(!0), r(B, null, D(w.value, (a, o) => (n(), r("g", null, [
1144
+ s("rect", {
1145
+ x: i(N)(
1146
+ J.value ? c.value.left + c.value.width / 2 - (a.sign === 1 ? 0 : I(a.value) <= 0 ? 1e-4 : I(a.value)) : c.value.left
1147
+ ),
1148
+ y: c.value.top + (x.value + d.value) * o + A.value[o] * L.value,
1149
+ width: i(N)(
1150
+ I(a.value) <= 0 ? 1e-4 : I(a.value)
1151
+ ),
1152
+ height: d.value <= 0 ? 1e-4 : d.value,
1153
+ fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${S.value}_${o})` : i(Qe)(
1154
+ a.color,
1155
+ e.value.style.chart.layout.bars.fillOpacity
1156
+ ),
1157
+ rx: e.value.style.chart.layout.bars.borderRadius,
1158
+ stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
1159
+ "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
1160
+ class: te({ animated: e.value.useCssAnimation })
1161
+ }, null, 10, _l),
1162
+ t.$slots.pattern ? (n(), r("rect", {
1163
+ key: 0,
1164
+ x: i(N)(
1165
+ J.value ? c.value.left + c.value.width / 2 - (a.sign === 1 ? 0 : I(a.value) <= 0 ? 1e-4 : I(a.value)) : c.value.left
1166
+ ),
1167
+ y: c.value.top + (x.value + d.value) * o + A.value[o] * L.value,
1168
+ width: i(N)(
1169
+ I(a.value) <= 0 ? 1e-4 : I(a.value)
1170
+ ),
1171
+ height: d.value <= 0 ? 1e-4 : d.value,
1172
+ fill: `url(#pattern_${S.value}_${a.absoluteIndex})`,
1173
+ rx: e.value.style.chart.layout.bars.borderRadius,
1174
+ stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
1175
+ "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
1176
+ class: te({ animated: e.value.useCssAnimation })
1177
+ }, null, 10, $l)) : p("", !0),
1178
+ (!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !== w.value.length - 1 ? (n(), r("line", {
1179
+ key: 1,
1180
+ x1: E.value,
1181
+ x2: e.value.style.chart.layout.separators.fullWidth ? 0 : c.value.left,
1182
+ y1: d.value + x.value / 2 + c.value.top + (x.value + d.value) * o + A.value[o] * L.value,
1183
+ y2: d.value + x.value / 2 + c.value.top + (x.value + d.value) * o + A.value[o] * L.value,
1184
+ stroke: e.value.style.chart.layout.separators.color,
1185
+ "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
1186
+ "stroke-linecap": "round",
1187
+ style: {
1188
+ transition: "none !important",
1189
+ animation: "none !important"
1190
+ }
1191
+ }, null, 8, Tl)) : p("", !0),
1192
+ J.value && e.value.style.chart.layout.separators.show ? (n(), r("line", {
1193
+ key: 2,
1194
+ x1: c.value.left + c.value.width / 2,
1195
+ x2: c.value.left + c.value.width / 2,
1196
+ y1: c.value.top,
1197
+ y2: c.value.bottom,
1198
+ stroke: e.value.style.chart.layout.separators.color,
1199
+ "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
1200
+ "stroke-linecap": "round"
1201
+ }, null, 8, Ll)) : p("", !0)
1202
+ ]))), 256)),
1203
+ s("g", {
1204
+ ref_key: "parentLabels",
1205
+ ref: ea
1206
+ }, [
1207
+ (n(!0), r(B, null, D(w.value, (a, o) => (n(), r("g", Sl, [
1208
+ a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(), r("rect", {
1209
+ key: 0,
1210
+ class: "vue-ui-horizontal-bar-parent-marker",
1211
+ x: 2,
1212
+ y: ne(a, o).y - e.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
1213
+ height: e.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
1214
+ width: e.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
1215
+ rx: 1,
1216
+ fill: a.color,
1217
+ style: { animation: "none !important", transition: "none !important" }
1218
+ }, null, 8, Pl)) : p("", !0),
1219
+ a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(), r("text", {
1220
+ key: 1,
1221
+ y: ne(a, o).y,
1222
+ "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
1223
+ fill: e.value.style.chart.layout.bars.parentLabels.color,
1224
+ x: e.value.style.chart.layout.bars.parentLabels.offsetX + e.value.style.chart.layout.bars.parentLabels.fontSize,
1225
+ "font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
1226
+ "text-anchor": "start",
1227
+ innerHTML: i(et)({
1228
+ content: `${_t(a, o)}`,
1229
+ fontSize: e.value.style.chart.layout.bars.parentLabels.fontSize,
1230
+ fill: e.value.style.chart.layout.bars.parentLabels.color,
1231
+ x: e.value.style.chart.layout.bars.parentLabels.offsetX + e.value.style.chart.layout.bars.parentLabels.fontSize,
1232
+ y: ne(a, o).y,
1233
+ translateY: !1
1234
+ })
1235
+ }, null, 8, Al)) : p("", !0),
1236
+ a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(), r("text", {
1237
+ key: 2,
1238
+ y: ne(a, o).y + i(Ha)(_t(a, o)) * e.value.style.chart.layout.bars.parentLabels.fontSize * 1.1,
1239
+ "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
1240
+ fill: e.value.style.chart.layout.bars.parentLabels.color,
1241
+ x: e.value.style.chart.layout.bars.parentLabels.offsetX + e.value.style.chart.layout.bars.parentLabels.fontSize,
1242
+ "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
1243
+ "text-anchor": "start"
1244
+ }, k(pa(a, o)), 9, zl)) : p("", !0)
1245
+ ]))), 256))
1246
+ ], 512),
1247
+ s("g", {
1248
+ ref_key: "childLabels",
1249
+ ref: Ie
1250
+ }, [
1251
+ (n(!0), r(B, null, D(ra.value, (a, o) => (n(), r("g", Nl, [
1252
+ (a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (n(), r("text", {
1253
+ key: 0,
1254
+ "text-anchor": "start",
1255
+ x: Math.abs(e.value.style.chart.layout.bars.nameLabels.offsetX),
1256
+ y: i(N)(c.value.top + (x.value + d.value) * o + d.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2 + A.value[o] * L.value),
1257
+ "font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
1258
+ fill: "transparent",
1259
+ "font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
1260
+ style: { "user-select": "none" },
1261
+ innerHTML: i(et)({
1262
+ content: a.name,
1263
+ fontSize: e.value.style.chart.layout.bars.nameLabels.fontSize,
1264
+ fill: "transparent",
1265
+ x: Math.abs(e.value.style.chart.layout.bars.nameLabels.offsetX),
1266
+ y: i(N)(c.value.top + (x.value + d.value) * o + d.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2 + A.value[o] * L.value),
1267
+ translateY: !0
1268
+ })
1269
+ }, null, 8, Il)) : p("", !0)
1270
+ ]))), 256))
1271
+ ], 512),
1272
+ s("g", null, [
1273
+ (n(!0), r(B, null, D(w.value, (a, o) => (n(), r("g", Vl, [
1274
+ (a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (n(), r("text", {
1275
+ key: 0,
1276
+ "text-anchor": "end",
1277
+ x: c.value.left + e.value.style.chart.layout.bars.nameLabels.offsetX - 6,
1278
+ y: c.value.top + (x.value + d.value) * o + d.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 3 + A.value[o] * L.value,
1279
+ "font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
1280
+ fill: e.value.style.chart.layout.bars.nameLabels.color,
1281
+ "font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
1282
+ innerHTML: i(et)({
1283
+ content: a.name,
1284
+ fontSize: e.value.style.chart.layout.bars.nameLabels.fontSize,
1285
+ fill: e.value.style.chart.layout.bars.nameLabels.color,
1286
+ x: c.value.left + e.value.style.chart.layout.bars.nameLabels.offsetX - 6,
1287
+ y: c.value.top + (x.value + d.value) * o + d.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 3 + A.value[o] * L.value,
1288
+ translateY: !0
1289
+ })
1290
+ }, null, 8, Ol)) : p("", !0)
1291
+ ]))), 256))
1292
+ ]),
1293
+ s("g", {
1294
+ ref_key: "dataLabels",
1295
+ ref: Ve
1296
+ }, [
1297
+ (n(!0), r(B, null, D(w.value, (a, o) => (n(), r("g", Fl, [
1298
+ s("text", {
1299
+ x: J.value ? c.value.left + c.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) : Math.min(
1300
+ da(a.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
1301
+ c.value.right - 2
1302
+ ),
1303
+ y: c.value.top + (x.value + d.value) * o + d.value / 2 + A.value[o] * L.value + e.value.style.chart.layout.bars.dataLabels.fontSize / 3,
1304
+ "text-anchor": !J.value || a.sign === -1 ? "start" : "end",
1305
+ "font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
1306
+ fill: e.value.style.chart.layout.bars.dataLabels.color,
1307
+ "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
1308
+ }, k(St(a.value, a, o, a.sign)), 9, Ml)
1309
+ ]))), 256))
1310
+ ], 512),
1311
+ (n(!0), r(B, null, D(w.value, (a, o) => (n(), r("g", null, [
1312
+ s("rect", {
1313
+ x: 0,
1314
+ y: c.value.top + (x.value + d.value) * o - x.value / 2 + A.value[o] * L.value,
1315
+ width: E.value,
1316
+ height: d.value + x.value <= 0 ? 1e-4 : d.value + x.value,
1317
+ fill: Xe.value === a.id ? i(Qe)(
1318
+ e.value.style.chart.layout.highlighter.color,
1319
+ e.value.style.chart.layout.highlighter.opacity
1320
+ ) : "transparent",
1321
+ onMouseenter: (g) => Lt(a, o, "pointer"),
1322
+ onMouseleave: (g) => Tt({ datapoint: a, seriesIndex: o }),
1323
+ onClick: (g) => $t({ datapoint: a, seriesIndex: o })
1324
+ }, null, 40, Bl)
1325
+ ]))), 256)),
1326
+ y(t.$slots, "svg", {
1327
+ svg: {
1328
+ ...W.value,
1329
+ isPrintingImg: i(De) | i(Ee) | Ce.value,
1330
+ isPrintingSvg: xe.value
1331
+ }
1332
+ }, void 0, !0)
1333
+ ], 512)
1334
+ ], 46, yl)),
1335
+ t.$slots.hint ? (n(), r("div", Dl, [
1336
+ y(t.$slots, "hint", O(F({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: Ke.value })), void 0, !0)
1337
+ ])) : p("", !0)
1338
+ ]),
1339
+ t.$slots.watermark ? (n(), r("div", El, [
1340
+ y(t.$slots, "watermark", O(F({ isPrinting: i(De) || i(Ee) || Ce.value || xe.value })), void 0, !0)
1341
+ ])) : p("", !0),
1342
+ e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (n(), r("div", {
1343
+ key: 7,
1344
+ ref_key: "chartLegend",
1345
+ ref: Ae
1346
+ }, [
1347
+ (n(), H(Dt, {
1348
+ key: `legend_bottom_${ze.value}`,
1349
+ legendSet: P.value,
1350
+ config: mt.value,
1351
+ isCursorPointer: Y.value,
1352
+ onClickMarker: l[1] || (l[1] = ({ legend: a }) => Z(a.id))
1353
+ }, Te({
1354
+ item: f(({ legend: a, index: o }) => [
1355
+ s("div", {
1356
+ onClick: (g) => Z(a.id),
1357
+ style: b(`opacity:${_.value.includes(a.id) ? 0.5 : 1}`)
1358
+ }, k(a.name) + ": " + k(i(ge)(
1359
+ e.value.style.chart.layout.bars.dataLabels.value.formatter,
1360
+ a.value,
1361
+ i(M)({
1362
+ p: e.value.style.chart.legend.prefix,
1363
+ v: a.value,
1364
+ s: e.value.style.chart.legend.suffix,
1365
+ r: e.value.style.chart.legend.roundingValue
1366
+ }),
1367
+ { datapoint: a, seriesIndex: o }
1368
+ )), 13, Rl)
1369
+ ]),
1370
+ legendToggle: f(() => [
1371
+ P.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !i(we) ? (n(), H(Et, {
1372
+ key: 0,
1373
+ backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
1374
+ color: e.value.style.chart.legend.selectAllToggle.color,
1375
+ fontSize: e.value.style.chart.legend.fontSize,
1376
+ checked: _.value.length > 0,
1377
+ isCursorPointer: Y.value,
1378
+ onToggle: Ct
1379
+ }, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : p("", !0)
1380
+ ]),
1381
+ _: 2
1382
+ }, [
1383
+ t.$slots.pattern ? {
1384
+ name: "legend-pattern",
1385
+ fn: f(({ legend: a, index: o }) => [
1386
+ ie(Bt, {
1387
+ shape: a.shape,
1388
+ radius: 30,
1389
+ stroke: "none",
1390
+ plot: { x: 30, y: 30 },
1391
+ fill: `url(#pattern_${S.value}_${o})`
1392
+ }, null, 8, ["shape", "fill"])
1393
+ ]),
1394
+ key: "0"
1395
+ } : void 0
1396
+ ]), 1032, ["legendSet", "config", "isCursorPointer"]))
1397
+ ], 512)) : p("", !0),
1398
+ y(t.$slots, "legend", { legend: P.value }, void 0, !0),
1399
+ t.$slots.source ? (n(), r("div", {
1400
+ key: 8,
1401
+ ref_key: "source",
1402
+ ref: nt,
1403
+ dir: "auto"
1404
+ }, [
1405
+ y(t.$slots, "source", {}, void 0, !0)
1406
+ ], 512)) : p("", !0),
1407
+ ie(i(Ut), {
1408
+ teleportTo: e.value.style.chart.tooltip.teleportTo,
1409
+ show: T.value.showTooltip && be.value && _.value.length < C.dataset.length,
1410
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1411
+ color: e.value.style.chart.tooltip.color,
1412
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
1413
+ borderColor: e.value.style.chart.tooltip.borderColor,
1414
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
1415
+ fontSize: e.value.style.chart.tooltip.fontSize,
1416
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1417
+ position: e.value.style.chart.tooltip.position,
1418
+ offsetY: e.value.style.chart.tooltip.offsetY,
1419
+ parent: R.value,
1420
+ content: Pe.value,
1421
+ isFullscreen: Q.value,
1422
+ isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
1423
+ smooth: e.value.style.chart.tooltip.smooth,
1424
+ backdropFilter: e.value.style.chart.tooltip.backdropFilter,
1425
+ smoothForce: e.value.style.chart.tooltip.smoothForce,
1426
+ smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold,
1427
+ isA11yMode: Oe.value === "keyboard",
1428
+ a11yPosition: rt.value
1429
+ }, {
1430
+ "tooltip-before": f(() => [
1431
+ y(t.$slots, "tooltip-before", O(F({ ...He.value })), void 0, !0)
1432
+ ]),
1433
+ "tooltip-after": f(() => [
1434
+ y(t.$slots, "tooltip-after", O(F({ ...He.value })), void 0, !0)
1435
+ ]),
1436
+ _: 3
1437
+ }, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
1438
+ Se.value && e.value.userOptions.buttons.table ? (n(), H(Fa($e.value.component), Ot({ key: 9 }, $e.value.props, {
1439
+ ref_key: "tableUnit",
1440
+ ref: ve,
1441
+ onClose: Ge
1442
+ }), Te({
1443
+ content: f(() => [
1444
+ s("div", {
1445
+ ref_key: "tableContainer",
1446
+ ref: yt,
1447
+ class: "vue-ui-vertical-bar-table atom-data-table",
1448
+ style: b(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
1449
+ }, [
1450
+ s("div", Xl, [
1451
+ e.value.table.useDialog ? p("", !0) : (n(), r("div", {
1452
+ key: 0,
1453
+ role: "button",
1454
+ tabindex: "0",
1455
+ style: b(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:${Y.value ? "pointer" : "default"}; background:${e.value.table.th.backgroundColor};`),
1456
+ onClick: Ge,
1457
+ onKeypress: Ma(Ge, ["enter"])
1458
+ }, [
1459
+ ie(i(at), {
1460
+ name: "close",
1461
+ stroke: e.value.table.th.color,
1462
+ "stroke-width": 2
1463
+ }, null, 8, ["stroke"])
1464
+ ], 36)),
1465
+ s("div", {
1466
+ style: { width: "100%", "container-type": "inline-size" },
1467
+ class: te({ "vue-ui-responsive": i(ga) })
1468
+ }, [
1469
+ s("table", Hl, [
1470
+ e.value.table.useDialog ? p("", !0) : (n(), r("caption", {
1471
+ key: 0,
1472
+ style: b({
1473
+ backgroundColor: e.value.table.th.backgroundColor,
1474
+ color: e.value.table.th.color,
1475
+ outline: e.value.table.th.outline
1476
+ }),
1477
+ class: "vue-ui-data-table__caption"
1478
+ }, [
1479
+ Ft(k(e.value.style.chart.title.text) + " ", 1),
1480
+ e.value.style.chart.title.subtitle.text ? (n(), r("span", Ul, k(e.value.style.chart.title.subtitle.text), 1)) : p("", !0)
1481
+ ], 4)),
1482
+ s("thead", null, [
1483
+ s("tr", {
1484
+ role: "row",
1485
+ style: b(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
1486
+ }, [
1487
+ (n(!0), r(B, null, D(V.value.head, (a) => (n(), r("th", {
1488
+ style: b(`outline:${e.value.table.th.outline}`)
1489
+ }, [
1490
+ s("div", Wl, k(a), 1)
1491
+ ], 4))), 256))
1492
+ ], 4),
1493
+ s("tr", null, [
1494
+ s("th", {
1495
+ style: b(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1496
+ }, null, 4),
1497
+ s("th", {
1498
+ style: b(`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`)
1499
+ }, " ∑ " + k(e.value.table.td.prefix) + k(isNaN(X.value) ? "" : X.value.toFixed(e.value.table.td.roundingValue)) + k(e.value.table.td.suffix), 5),
1500
+ s("th", {
1501
+ style: b(`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`)
1502
+ }, " 100% ", 4),
1503
+ s("th", {
1504
+ style: b(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1505
+ }, null, 4),
1506
+ s("th", {
1507
+ style: b(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1508
+ }, null, 4),
1509
+ s("th", {
1510
+ style: b(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1511
+ }, null, 4),
1512
+ s("th", {
1513
+ style: b(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1514
+ }, null, 4)
1515
+ ])
1516
+ ]),
1517
+ s("tbody", null, [
1518
+ (n(!0), r(B, null, D(V.value.body, (a, o) => (n(), r("tr", {
1519
+ class: te({
1520
+ "vue-ui-data-table__tbody__row": !0,
1521
+ "vue-ui-data-table__tbody__row-even": o % 2 === 0,
1522
+ "vue-ui-data-table__tbody__row-odd": o % 2 !== 0
1523
+ }),
1524
+ style: b(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
1525
+ }, [
1526
+ s("td", {
1527
+ class: "vue-ui-data-table__tbody__td",
1528
+ style: b(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
1529
+ "data-cell": V.value.head[0] ?? ""
1530
+ }, [
1531
+ s("div", Kl, [
1532
+ a.color ? (n(), r("span", {
1533
+ key: 0,
1534
+ style: b(`color:${a.color};margin-right:3px`)
1535
+ }, "⬤", 4)) : p("", !0),
1536
+ s("span", null, k(a.parentName), 1)
1537
+ ])
1538
+ ], 12, Gl),
1539
+ s("td", {
1540
+ class: "vue-ui-data-table__tbody__td",
1541
+ style: b(`outline:${e.value.table.td.outline}`),
1542
+ "data-cell": V.value.head[1] ?? ""
1543
+ }, [
1544
+ s("div", Yl, k(e.value.table.td.prefix) + k(["", NaN, void 0].includes(a.parentValue) ? "" : a.parentValue.toFixed(
1545
+ e.value.table.td.roundingValue
1546
+ )) + k(e.value.table.td.suffix), 1)
1547
+ ], 12, jl),
1548
+ s("td", {
1549
+ class: "vue-ui-data-table__tbody__td",
1550
+ style: b(`outline:${e.value.table.td.outline}`),
1551
+ "data-cell": V.value.head[2] ?? ""
1552
+ }, [
1553
+ s("div", Zl, k(["", NaN, void 0].includes(a.percentageToTotal) ? "" : `${(a.percentageToTotal * 100).toFixed(
1554
+ e.value.table.td.roundingPercentage
1555
+ )}%`), 1)
1556
+ ], 12, ql),
1557
+ s("td", {
1558
+ class: "vue-ui-data-table__tbody__td",
1559
+ style: b(`outline:${e.value.table.td.outline}`),
1560
+ "data-cell": V.value.head[3] ?? ""
1561
+ }, [
1562
+ s("div", Ql, k(a.childName), 1)
1563
+ ], 12, Jl),
1564
+ s("td", {
1565
+ class: "vue-ui-data-table__tbody__td",
1566
+ style: b(`outline:${e.value.table.td.outline}`),
1567
+ "data-cell": V.value.head[4] ?? ""
1568
+ }, [
1569
+ s("div", to, k(e.value.table.td.prefix) + k(["", NaN, void 0].includes(a.childValue) ? "" : a.childValue.toFixed(
1570
+ e.value.table.td.roundingValue
1571
+ )) + k(e.value.table.td.suffix), 1)
1572
+ ], 12, eo),
1573
+ s("td", {
1574
+ class: "vue-ui-data-table__tbody__td",
1575
+ style: b(`outline:${e.value.table.td.outline}`),
1576
+ "data-cell": V.value.head[5] ?? ""
1577
+ }, [
1578
+ s("div", lo, k(["", NaN, void 0].includes(
1579
+ a.childPercentageToParent
1580
+ ) ? "" : `${(a.childPercentageToParent * 100).toFixed(
1581
+ e.value.table.td.roundingPercentage
1582
+ )}%`), 1)
1583
+ ], 12, ao),
1584
+ s("td", {
1585
+ class: "vue-ui-data-table__tbody__td",
1586
+ style: b(`outline:${e.value.table.td.outline}`),
1587
+ "data-cell": V.value.head[6] ?? ""
1588
+ }, [
1589
+ s("div", no, k(["", NaN, void 0].includes(
1590
+ a.childPercentageToTotal
1591
+ ) ? "" : `${(a.childPercentageToTotal * 100).toFixed(
1592
+ e.value.table.td.roundingPercentage
1593
+ )}%`), 1)
1594
+ ], 12, oo)
1595
+ ], 6))), 256))
1596
+ ])
1597
+ ])
1598
+ ], 2)
1599
+ ])
1600
+ ], 4)
1601
+ ]),
1602
+ _: 2
1603
+ }, [
1604
+ e.value.table.useDialog ? {
1605
+ name: "title",
1606
+ fn: f(() => [
1607
+ Ft(k($e.value.title), 1)
1608
+ ]),
1609
+ key: "0"
1610
+ } : void 0,
1611
+ e.value.table.useDialog ? {
1612
+ name: "actions",
1613
+ fn: f(() => [
1614
+ s("button", {
1615
+ tabindex: "0",
1616
+ class: "vue-ui-user-options-button",
1617
+ onClick: l[2] || (l[2] = (a) => Ue(e.value.userOptions.callbacks.csv)),
1618
+ style: b({ cursor: Y.value ? "pointer" : "default" })
1619
+ }, [
1620
+ ie(i(at), {
1621
+ name: "fileCsv",
1622
+ stroke: $e.value.props.color
1623
+ }, null, 8, ["stroke"])
1624
+ ], 4)
1625
+ ]),
1626
+ key: "1"
1627
+ } : void 0
1628
+ ]), 1040)) : p("", !0),
1629
+ y(t.$slots, "skeleton", {}, () => [
1630
+ i(we) ? (n(), H(Qa, { key: 0 })) : p("", !0)
1631
+ ], !0)
1632
+ ], 46, dl));
1633
+ }
1634
+ }, Po = /* @__PURE__ */ cl(uo, [["__scopeId", "data-v-927cf203"]]);
1635
+ export {
1636
+ Po as default
1637
+ };