vue-data-ui 3.23.10 → 3.23.12

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 (200) hide show
  1. package/README.md +40 -40
  2. package/dist/{Arrow-bwmME0jw.js → Arrow-DrF4NNJO.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DBVHlhQZ.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
  4. package/dist/{BaseIcon-B4n7br_R.js → BaseIcon-BbElSC8_.js} +1 -1
  5. package/dist/{BaseLegendToggle-wRhcG_-q.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
  6. package/dist/{BaseZoomControls-BZjzzyQo.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
  7. package/dist/{ColorPicker-B9kUMLSz.js → ColorPicker-ChOgAmCi.js} +2 -2
  8. package/dist/{DataTable-DMsScfkx.js → DataTable-CmyEubtT.js} +2 -2
  9. package/dist/{HillActions-IWPfuceW.js → HillActions-3HneGJhS.js} +1 -1
  10. package/dist/{Legend-DWEFXq9E.js → Legend-BJtY2RA9.js} +2 -2
  11. package/dist/{NonSvgPenAndPaper-Crs4-xWz.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
  12. package/dist/{PackageVersion-DNTJUKh1.js → PackageVersion-CT8FfP7h.js} +1 -1
  13. package/dist/{PenAndPaper-DJ607Hx6.js → PenAndPaper-CIa1F5Jq.js} +3 -3
  14. package/dist/{Shape-BAhF1ToV.js → Shape-BAL5bQmA.js} +1 -1
  15. package/dist/{SlicerPreview-sXtk2ZZ2.js → SlicerPreview-BRRyc1p7.js} +426 -426
  16. package/dist/{SparkTooltip-BE50SZQH.js → SparkTooltip-Bou05CV_.js} +1 -1
  17. package/dist/{Title-BGLPsoA9.js → Title-CaVA8EIw.js} +1 -1
  18. package/dist/{Tooltip-DO4-MVhc.js → Tooltip-CVxJe3UW.js} +1 -1
  19. package/dist/{UserOptions-HQyukyl2.js → UserOptions-WH7-49V0.js} +2 -2
  20. package/dist/components/arrow.js +1 -1
  21. package/dist/components/vue-ui-3d-bar.js +1 -1
  22. package/dist/components/vue-ui-accordion.js +1 -1
  23. package/dist/components/vue-ui-age-pyramid.js +1 -1
  24. package/dist/components/vue-ui-annotator.js +1 -1
  25. package/dist/components/vue-ui-bullet.js +1 -1
  26. package/dist/components/vue-ui-bump.js +1 -1
  27. package/dist/components/vue-ui-candlestick.js +1 -1
  28. package/dist/components/vue-ui-carousel-table.js +1 -1
  29. package/dist/components/vue-ui-chestnut.js +1 -1
  30. package/dist/components/vue-ui-chord.js +1 -1
  31. package/dist/components/vue-ui-circle-pack.js +1 -1
  32. package/dist/components/vue-ui-cursor.js +1 -1
  33. package/dist/components/vue-ui-dag.js +1 -1
  34. package/dist/components/vue-ui-dashboard.js +1 -1
  35. package/dist/components/vue-ui-digits.js +1 -1
  36. package/dist/components/vue-ui-donut-evolution.js +1 -1
  37. package/dist/components/vue-ui-donut.js +1 -1
  38. package/dist/components/vue-ui-dumbbell.js +1 -1
  39. package/dist/components/vue-ui-flow.js +1 -1
  40. package/dist/components/vue-ui-funnel.js +1 -1
  41. package/dist/components/vue-ui-galaxy.js +1 -1
  42. package/dist/components/vue-ui-gauge.js +1 -1
  43. package/dist/components/vue-ui-geo.js +1 -1
  44. package/dist/components/vue-ui-gizmo.js +1 -1
  45. package/dist/components/vue-ui-heatmap.js +1 -1
  46. package/dist/components/vue-ui-hill.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-Cg_3vpOo.js → dom-to-png-COvyU2SG.js} +1 -1
  91. package/dist/exposedLib-DrUEXSyf.js +28 -0
  92. package/dist/{img-tU9mMt9W.js → img-Bkzj3lDD.js} +1 -1
  93. package/dist/{labelUtils-C_lMnQRs.js → labelUtils-iX76cA2-.js} +1 -1
  94. package/dist/{lib-AT2PUyyh.js → lib-Dqr_-I6Y.js} +165 -162
  95. package/dist/{package-enC-Nivt.js → package-CXgp_UWC.js} +1 -1
  96. package/dist/{pdf-ColHHJFH.js → pdf-Bk_9lTdQ.js} +1 -1
  97. package/dist/{render-common-CqcoYfCA.js → render-common-D9TESN6N.js} +12 -12
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/vue-data-ui.d.ts +13 -2
  103. package/dist/types/vue-ui-dag.d.ts +2 -0
  104. package/dist/{useNestedProp-CW0vJS1B.js → useNestedProp-CulPqtou.js} +1 -1
  105. package/dist/{usePrinter-BFS7d6eb.js → usePrinter-CEiH1b6R.js} +2 -2
  106. package/dist/utils.js +9 -9
  107. package/dist/{vue-data-ui-DD7J3yor.js → vue-data-ui-BTHfxD0A.js} +69 -69
  108. package/dist/vue-data-ui.js +73 -73
  109. package/dist/vue-ui-3d-bar-qYgLQzCk.js +1829 -0
  110. package/dist/{vue-ui-accordion-DJNjilyy.js → vue-ui-accordion-C6L7glHU.js} +3 -3
  111. package/dist/{vue-ui-age-pyramid-DI8b5E2H.js → vue-ui-age-pyramid-DlDqWHMv.js} +27 -27
  112. package/dist/{vue-ui-annotator-7ZVfFskI.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
  113. package/dist/vue-ui-bullet-KPROgHpN.js +700 -0
  114. package/dist/{vue-ui-bump-DzB3WQnq.js → vue-ui-bump-_ccDjRda.js} +237 -237
  115. package/dist/{vue-ui-candlestick--YWEtek_.js → vue-ui-candlestick-C_21KIXE.js} +245 -245
  116. package/dist/{vue-ui-carousel-table-Dn3RZU0p.js → vue-ui-carousel-table--JukD8gC.js} +108 -108
  117. package/dist/{vue-ui-chestnut-BIsXeXiU.js → vue-ui-chestnut-BWvgfxnY.js} +86 -86
  118. package/dist/vue-ui-chord-CGkWt2XK.js +1345 -0
  119. package/dist/vue-ui-circle-pack-BWaN2mEB.js +1633 -0
  120. package/dist/{vue-ui-cursor-C-P2D5i6.js → vue-ui-cursor-YbxnsOd1.js} +3 -3
  121. package/dist/{vue-ui-dag-CThnMMWA.js → vue-ui-dag-B-X2eE3W.js} +923 -885
  122. package/dist/{vue-ui-dashboard-D0NNTRO3.js → vue-ui-dashboard-DgayqETw.js} +69 -69
  123. package/dist/{vue-ui-digits-9tGjGzZh.js → vue-ui-digits-1ULOKtDh.js} +3 -3
  124. package/dist/{vue-ui-donut-EZu8p7HF.js → vue-ui-donut-Bz2ZI_vO.js} +85 -85
  125. package/dist/{vue-ui-donut-DLN9uPOi.js → vue-ui-donut-Ci2MsJLu.js} +64 -64
  126. package/dist/{vue-ui-donut-evolution-mu-iGTIn.js → vue-ui-donut-evolution-Bo54mlFQ.js} +347 -347
  127. package/dist/{vue-ui-dumbbell-Dvldi3Oo.js → vue-ui-dumbbell-D2bJ_P7K.js} +229 -229
  128. package/dist/vue-ui-flow-D9m-k3tM.js +1214 -0
  129. package/dist/vue-ui-funnel-DyETq2KE.js +747 -0
  130. package/dist/{vue-ui-galaxy-D6eYN8Ut.js → vue-ui-galaxy-pjGKZLrq.js} +64 -64
  131. package/dist/vue-ui-gauge-BO5lLCyJ.js +932 -0
  132. package/dist/{vue-ui-geo-CQqNemR6.js → vue-ui-geo-DpyLvk_B.js} +34 -34
  133. package/dist/{vue-ui-gizmo-ClunTUxX.js → vue-ui-gizmo-CUl8dgmV.js} +10 -10
  134. package/dist/{vue-ui-heatmap-B_pSQNzO.js → vue-ui-heatmap-CiV3kCrx.js} +472 -472
  135. package/dist/{vue-ui-hill-Byp0Tnny.js → vue-ui-hill-CkMtYGo2.js} +10 -10
  136. package/dist/vue-ui-history-plot-X2gQI4TY.js +1695 -0
  137. package/dist/vue-ui-horizontal-bar-DVT1wthh.js +1708 -0
  138. package/dist/{vue-ui-kpi-BKw5t-rX.js → vue-ui-kpi-CWPmkLKR.js} +3 -3
  139. package/dist/{vue-ui-mini-loader-BNm0MQDw.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
  140. package/dist/{vue-ui-molecule-DRwQV5hN.js → vue-ui-molecule-DnW5HYZP.js} +176 -176
  141. package/dist/{vue-ui-mood-radar-Bj3KTWYj.js → vue-ui-mood-radar-FovwTDLw.js} +20 -20
  142. package/dist/{vue-ui-nested-donuts-83Wh2w6z.js → vue-ui-nested-donuts-DHCOlxTO.js} +104 -104
  143. package/dist/vue-ui-onion-CzAEqZ0B.js +1233 -0
  144. package/dist/vue-ui-parallel-coordinate-plot-BZN75P6u.js +1430 -0
  145. package/dist/{vue-ui-quadrant-_J-Qr7-K.js → vue-ui-quadrant-CNeP5WEC.js} +32 -32
  146. package/dist/{vue-ui-quick-chart-DcOUq4ym.js → vue-ui-quick-chart-Bnj8oh82.js} +153 -153
  147. package/dist/{vue-ui-radar-FlRlsoAd.js → vue-ui-radar-DMyMAtx7.js} +41 -41
  148. package/dist/{vue-ui-rating-eCxEZD8C.js → vue-ui-rating-dBCk6ECe.js} +26 -26
  149. package/dist/vue-ui-relation-circle-DFj5V39I.js +903 -0
  150. package/dist/vue-ui-ridgeline-BaplQZZK.js +1614 -0
  151. package/dist/vue-ui-rings-B9QJ1Rnb.js +1250 -0
  152. package/dist/vue-ui-scatter-UH0wqUO5.js +2403 -0
  153. package/dist/{vue-ui-skeleton-CNOam3kC.js → vue-ui-skeleton-DkoEclfa.js} +3 -3
  154. package/dist/{vue-ui-smiley-YdyidjBH.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
  155. package/dist/{vue-ui-spark-trend-CS5GLtYL.js → vue-ui-spark-trend-BW8WYOva.js} +23 -23
  156. package/dist/{vue-ui-sparkbar-DDHwgP4k.js → vue-ui-sparkbar-ADRsH-GZ.js} +24 -24
  157. package/dist/{vue-ui-sparkgauge-BcQu9V3h.js → vue-ui-sparkgauge-BYs1L6I7.js} +61 -61
  158. package/dist/{vue-ui-sparkhistogram-CPsA5P6c.js → vue-ui-sparkhistogram-D1Paq9X0.js} +15 -15
  159. package/dist/vue-ui-sparkline-D2Hf_NP-.js +1584 -0
  160. package/dist/{vue-ui-sparkstackbar-4tsTxMe2.js → vue-ui-sparkstackbar-Uy6Q0X15.js} +207 -207
  161. package/dist/vue-ui-stackbar-Vt9AjazE.js +2332 -0
  162. package/dist/{vue-ui-stackline-BNCWO_jG.js → vue-ui-stackline-CBIGhWpn.js} +605 -605
  163. package/dist/{vue-ui-strip-plot-2Y1c02Ek.js → vue-ui-strip-plot-DhZV1Sl6.js} +57 -57
  164. package/dist/vue-ui-table-DqMxdgj4.js +1352 -0
  165. package/dist/{vue-ui-table-heatmap-BacaEjQy.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
  166. package/dist/{vue-ui-table-sparkline-B8oAU5yr.js → vue-ui-table-sparkline-2KZ2UoEA.js} +11 -11
  167. package/dist/vue-ui-thermometer-mVP2GqO7.js +756 -0
  168. package/dist/{vue-ui-timer-CWZgSpP8.js → vue-ui-timer-CGrqG8H3.js} +12 -12
  169. package/dist/{vue-ui-tiremarks-LLVCPyg9.js → vue-ui-tiremarks-DyFUPB5s.js} +12 -12
  170. package/dist/{vue-ui-treemap-ehBl9JMC.js → vue-ui-treemap-BVFHSTfq.js} +44 -44
  171. package/dist/vue-ui-waffle-DNZsc5x0.js +1619 -0
  172. package/dist/{vue-ui-wheel-C4OHPrtC.js → vue-ui-wheel-Cg4oNFmH.js} +28 -28
  173. package/dist/{vue-ui-word-cloud-CDHn3Kwa.js → vue-ui-word-cloud-CUf1h_L1.js} +32 -32
  174. package/dist/{vue-ui-world-ao1xf04I.js → vue-ui-world-CIcrI3zP.js} +116 -116
  175. package/dist/{vue-ui-xy-DmJDCl3c.js → vue-ui-xy-8V-CU7No.js} +99 -99
  176. package/dist/{vue-ui-xy-_U3wmtCf.js → vue-ui-xy-CJ5ZixIL.js} +304 -304
  177. package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
  178. package/package.json +1 -1
  179. package/dist/exposedLib-vfRiIvq_.js +0 -28
  180. package/dist/vue-ui-3d-bar-DgrcdAgz.js +0 -1829
  181. package/dist/vue-ui-bullet-Dyd5F1Wa.js +0 -700
  182. package/dist/vue-ui-chord-BimXqVsF.js +0 -1345
  183. package/dist/vue-ui-circle-pack-DKQEhL-L.js +0 -1633
  184. package/dist/vue-ui-flow-DYZBT5Cb.js +0 -1214
  185. package/dist/vue-ui-funnel--NaxO0cZ.js +0 -747
  186. package/dist/vue-ui-gauge-DTIEl2Xb.js +0 -932
  187. package/dist/vue-ui-history-plot-CMu8ST1E.js +0 -1695
  188. package/dist/vue-ui-horizontal-bar-BQn7WxQ-.js +0 -1708
  189. package/dist/vue-ui-onion-C27GpneA.js +0 -1233
  190. package/dist/vue-ui-parallel-coordinate-plot-BklOszr1.js +0 -1430
  191. package/dist/vue-ui-relation-circle-DnsxHv7t.js +0 -903
  192. package/dist/vue-ui-ridgeline-TopTLyaE.js +0 -1614
  193. package/dist/vue-ui-rings-obVfb09j.js +0 -1250
  194. package/dist/vue-ui-scatter-BHSuA506.js +0 -2403
  195. package/dist/vue-ui-sparkline-CnbO-GkM.js +0 -1584
  196. package/dist/vue-ui-stackbar-2_SrMFNT.js +0 -2332
  197. package/dist/vue-ui-table-DJZxHo5N.js +0 -1352
  198. package/dist/vue-ui-thermometer-BGtxNU9T.js +0 -756
  199. package/dist/vue-ui-waffle-DpBAXbhh.js +0 -1610
  200. package/dist/vue-ui-xy-canvas-Bx-9y53V.js +0 -1823
@@ -0,0 +1,1708 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, D as n, G as r, Ht as i, It as a, Jt as o, Nt as s, S as c, St as ee, Ut as te, X as l, Xt as ne, b as u, i as re, lt as ie, nt as ae, pt as oe, q as se, qt as ce, t as le, w as ue, yt as de } from "./lib-Dqr_-I6Y.js";
3
+ import { n as fe, t as pe } from "./useHints-Dq_w2E8B.js";
4
+ import { t as me } from "./useConfig-DwdGsXTx.js";
5
+ import { t as he } from "./usePrinter-CEiH1b6R.js";
6
+ import { n as ge, t as _e } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as ve } from "./useNestedProp-CulPqtou.js";
8
+ import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as be } from "./useChartExport-DNiwdPmb.js";
10
+ import { t as xe } from "./useTransitions-g_zBREk2.js";
11
+ import { t as Se } from "./img-Bkzj3lDD.js";
12
+ import { n as Ce } from "./Title-CaVA8EIw.js";
13
+ import { t as we } from "./Shape-BAL5bQmA.js";
14
+ import { t as Te } from "./_plugin-vue_export-helper-B3ysoDQm.js";
15
+ import { l as Ee, t as De } from "./useResponsive-ZtArZtUf.js";
16
+ import { t as Oe } from "./DefGrad-DVBqDjhO.js";
17
+ import { t as ke } from "./vue-ui-accordion-C6L7glHU.js";
18
+ import { t as Ae } from "./BaseLegendToggle-CtEdLr4R.js";
19
+ import { t as je } from "./A11yDataTable-DdRsVULz.js";
20
+ import { t as Me } from "./useUserOptionState-DK-_1ddE.js";
21
+ import { t as Ne } from "./useChartAccessibility-DYqac8yF.js";
22
+ import { t as Pe } from "./useTableResponsive-BAqJPR68.js";
23
+ import { t as Fe } from "./Legend-BJtY2RA9.js";
24
+ import { t as Ie } from "./vue_ui_horizontal_bar-C4J4QzXf.js";
25
+ import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Le, createTextVNode as Re, createVNode as ze, defineAsyncComponent as Be, guardReactiveProps as _, mergeProps as Ve, nextTick as He, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Ue, onMounted as We, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Ge, toDisplayString as T, toRefs as Ke, unref as E, useCssVars as qe, useSlots as Je, watch as Ye, withCtx as D, withKeys as Xe } from "vue";
26
+ //#region src/components/vue-ui-horizontal-bar.vue
27
+ var Ze = /* @__PURE__ */ e({ default: () => zt }), Qe = ["id"], $e = ["id"], et = ["onClick"], tt = { style: { position: "relative" } }, nt = [
28
+ "xmlns",
29
+ "viewBox",
30
+ "aria-describedby"
31
+ ], rt = ["width", "height"], it = { key: 1 }, at = [
32
+ "y",
33
+ "width",
34
+ "height",
35
+ "fill",
36
+ "rx"
37
+ ], ot = [
38
+ "x",
39
+ "y",
40
+ "width",
41
+ "height",
42
+ "fill",
43
+ "rx"
44
+ ], st = [
45
+ "x",
46
+ "y",
47
+ "width",
48
+ "height",
49
+ "fill",
50
+ "rx",
51
+ "stroke",
52
+ "stroke-width"
53
+ ], ct = [
54
+ "x",
55
+ "y",
56
+ "width",
57
+ "height",
58
+ "fill",
59
+ "rx",
60
+ "stroke",
61
+ "stroke-width"
62
+ ], lt = [
63
+ "stroke",
64
+ "stroke-width",
65
+ "d"
66
+ ], ut = [
67
+ "stroke",
68
+ "stroke-width",
69
+ "d"
70
+ ], dt = [
71
+ "y",
72
+ "height",
73
+ "width",
74
+ "fill"
75
+ ], ft = [
76
+ "transform",
77
+ "font-size",
78
+ "fill",
79
+ "font-weight",
80
+ "innerHTML"
81
+ ], pt = [
82
+ "transform",
83
+ "font-size",
84
+ "fill",
85
+ "font-weight"
86
+ ], mt = [
87
+ "transform",
88
+ "font-size",
89
+ "font-weight",
90
+ "innerHTML"
91
+ ], ht = [
92
+ "transform",
93
+ "font-size",
94
+ "fill",
95
+ "font-weight",
96
+ "innerHTML"
97
+ ], gt = [
98
+ "transform",
99
+ "text-anchor",
100
+ "font-size",
101
+ "fill",
102
+ "font-weight"
103
+ ], _t = [
104
+ "y",
105
+ "width",
106
+ "height",
107
+ "fill",
108
+ "onMouseenter",
109
+ "onMouseleave",
110
+ "onClick"
111
+ ], vt = {
112
+ key: 0,
113
+ style: {
114
+ position: "absolute",
115
+ top: "100%",
116
+ left: "0",
117
+ width: "100%"
118
+ },
119
+ "data-dom-to-png-ignore": "",
120
+ "aria-hidden": "true"
121
+ }, yt = {
122
+ key: 6,
123
+ class: "vue-data-ui-watermark"
124
+ }, bt = ["onClick"], xt = { style: "width:100%;padding-top: 36px;position:relative" }, St = { class: "vue-ui-data-table" }, Ct = { key: 0 }, wt = { style: { width: "100%" } }, Tt = ["data-cell"], Et = { style: {
125
+ display: "flex",
126
+ "align-items": "center",
127
+ gap: "5px",
128
+ "justify-content": "flex-end",
129
+ width: "100%",
130
+ "padding-right": "3px"
131
+ } }, Dt = ["data-cell"], Ot = { style: {
132
+ display: "flex",
133
+ "align-items": "center",
134
+ gap: "5px",
135
+ "justify-content": "flex-end",
136
+ width: "100%",
137
+ "padding-right": "3px"
138
+ } }, kt = ["data-cell"], At = { style: {
139
+ display: "flex",
140
+ "align-items": "center",
141
+ gap: "5px",
142
+ "justify-content": "flex-end",
143
+ width: "100%",
144
+ "padding-right": "3px"
145
+ } }, jt = ["data-cell"], Mt = { style: {
146
+ display: "flex",
147
+ "align-items": "center",
148
+ gap: "5px",
149
+ "justify-content": "flex-end",
150
+ width: "100%",
151
+ "padding-right": "3px"
152
+ } }, Nt = ["data-cell"], Pt = { style: {
153
+ display: "flex",
154
+ "align-items": "center",
155
+ gap: "5px",
156
+ "justify-content": "flex-end",
157
+ width: "100%",
158
+ "padding-right": "3px"
159
+ } }, Ft = ["data-cell"], It = { style: {
160
+ display: "flex",
161
+ "align-items": "center",
162
+ gap: "5px",
163
+ "justify-content": "flex-end",
164
+ width: "100%",
165
+ "padding-right": "3px"
166
+ } }, Lt = ["data-cell"], Rt = { style: {
167
+ display: "flex",
168
+ "align-items": "center",
169
+ gap: "5px",
170
+ "justify-content": "flex-end",
171
+ width: "100%",
172
+ "padding-right": "3px"
173
+ } }, zt = /*#__PURE__*/ Te({
174
+ __name: "vue-ui-horizontal-bar",
175
+ props: {
176
+ config: {
177
+ type: Object,
178
+ default() {
179
+ return {};
180
+ }
181
+ },
182
+ dataset: {
183
+ type: Array,
184
+ default() {
185
+ return [];
186
+ }
187
+ }
188
+ },
189
+ emits: [
190
+ "selectLegend",
191
+ "copyAlt",
192
+ "selectDatapoint"
193
+ ],
194
+ setup(e, { expose: Te, emit: Ze }) {
195
+ qe((e) => ({ v36eb389c: e.tdo }));
196
+ let zt = Be(() => import("./Tooltip-CVxJe3UW.js")), Bt = Be(() => import("./BaseIcon-BbElSC8_.js").then((e) => e.n)), Vt = Be(() => import("./PenAndPaper-CIa1F5Jq.js").then((e) => e.t)), Ht = Be(() => import("./UserOptions-WH7-49V0.js").then((e) => e.n)), Ut = Be(() => import("./PackageVersion-CT8FfP7h.js").then((e) => e.t)), Wt = Be(() => import("./BaseDraggableDialog-Dr_Q6Yt5.js").then((e) => e.n)), { vue_ui_vertical_bar: Gt } = me(), { isThemeValid: Kt, warnInvalidTheme: qt } = ye(), Jt = Je(), O = e, Yt = f({
197
+ get() {
198
+ return !!O.dataset && O.dataset.length;
199
+ },
200
+ set(e) {
201
+ return e;
202
+ }
203
+ }), k = S(se()), Xt = S(!1), Zt = S(""), Qt = S(null), $t = S(0), A = S(null), en = S(null), tn = S(null), nn = S(null), rn = S(null), an = S(0), on = S(0), sn = S(null), cn = S(null), ln = S(null), un = S(null), dn = S(null), j = S([]), fn = S({
204
+ none: 0,
205
+ asc: 1,
206
+ desc: 2
207
+ }), M = S(0), pn = S(!1), mn = S(0), hn = null, gn = null, N = S(null), _n = S({
208
+ x: 0,
209
+ y: 0
210
+ }), vn = S("pointer"), yn = Ze, P = S(kn());
211
+ fe({
212
+ config: () => P.value,
213
+ dataset: () => O.dataset,
214
+ component: "VueUiHorizontalBar",
215
+ rules: [pe.emptyArray, {
216
+ test: (e) => e.length > 50 || e.some((e) => e.children && e.children.length > 50),
217
+ message: [
218
+ "👀 There are > 50 series / bars, which will probably force users to scroll. Consider:",
219
+ "",
220
+ "▶️ Grouping small values into an \"Other\" category.",
221
+ "",
222
+ "▶️ Using filters, or several instances of the component with subsets of related series."
223
+ ]
224
+ }]
225
+ });
226
+ let { transitionEnabled: F } = xe({
227
+ config: () => P.value.transitions,
228
+ dataset: () => O.dataset
229
+ }), I = f(() => P.value.userOptions.useCursorPointer), bn = f(() => O.config?.skeletonDataset ?? [
230
+ {
231
+ name: "",
232
+ value: 6,
233
+ color: "#d9d9d9"
234
+ },
235
+ {
236
+ name: "",
237
+ value: 5,
238
+ color: "#d9d9d9"
239
+ },
240
+ {
241
+ name: "",
242
+ value: 4,
243
+ color: "#d9d9d9"
244
+ },
245
+ {
246
+ name: "",
247
+ value: 3,
248
+ color: "#d9d9d9"
249
+ },
250
+ {
251
+ name: "",
252
+ value: 2,
253
+ color: "#d9d9d9"
254
+ },
255
+ {
256
+ name: "",
257
+ value: 1,
258
+ color: "#d9d9d9"
259
+ }
260
+ ]), xn = f(() => ne({
261
+ defaultConfig: {
262
+ useCssAnimation: !1,
263
+ userOptions: { show: !1 },
264
+ table: { show: !1 },
265
+ style: { chart: {
266
+ backgroundColor: "#99999930",
267
+ layout: {
268
+ bars: {
269
+ offsetX: 110,
270
+ dataLabels: {
271
+ color: "transparent",
272
+ value: {
273
+ prefix: "",
274
+ suffix: "",
275
+ formatter: null
276
+ }
277
+ },
278
+ nameLabels: { color: "transparent" }
279
+ },
280
+ separators: { color: "#7A7A7A" }
281
+ },
282
+ legend: {
283
+ show: !0,
284
+ backgroundColor: "transparent",
285
+ color: "transparent",
286
+ prefix: "",
287
+ suffix: "",
288
+ formatter: null
289
+ },
290
+ title: {
291
+ color: "#1A1A1A",
292
+ subtitle: { color: "#5A5A5A" }
293
+ }
294
+ } }
295
+ },
296
+ userConfig: P.value.skeletonConfig ?? {}
297
+ })), { loading: Sn, FINAL_DATASET: Cn, manualLoading: wn } = ge({
298
+ ...Ke(O),
299
+ FINAL_CONFIG: P,
300
+ prepareConfig: kn,
301
+ callback: () => {
302
+ Promise.resolve().then(async () => {
303
+ H.value.showTable = P.value.table.show, Bn();
304
+ });
305
+ },
306
+ skeletonDataset: bn.value,
307
+ skeletonConfig: ne({
308
+ defaultConfig: P.value,
309
+ userConfig: xn.value
310
+ })
311
+ }), { userOptionsVisible: Tn, setUserOptionsVisibility: En, keepUserOptionState: Dn } = Me({ config: P.value }), { svgRef: On } = Ne({ config: P.value.style.chart.title });
312
+ function kn() {
313
+ let e = ve({
314
+ userConfig: O.config,
315
+ defaultConfig: Gt
316
+ }), t = {}, n = e.theme;
317
+ if (n) if (!Kt.value(e)) qt(e), t = e;
318
+ else {
319
+ let r = ve({
320
+ userConfig: Ie[n] || O.config,
321
+ defaultConfig: e
322
+ });
323
+ t = {
324
+ ...ve({
325
+ userConfig: O.config,
326
+ defaultConfig: r
327
+ }),
328
+ customPalette: e.customPalette.length ? e.customPalette : o[n] || a
329
+ };
330
+ }
331
+ else t = e;
332
+ return O.config && de(O.config, "events.datapointEnter") ? t.events.datapointEnter = O.config.events.datapointEnter : t.events.datapointEnter = null, O.config && de(O.config, "events.datapointLeave") ? t.events.datapointLeave = O.config.events.datapointLeave : t.events.datapointLeave = null, O.config && de(O.config, "events.datapointClick") ? t.events.datapointClick = O.config.events.datapointClick : t.events.datapointClick = null, t;
333
+ }
334
+ let L = S(P.value.style.chart.width), R = S(P.value.style.chart.height), z = S(P.value.style.chart.layout.bars.gap);
335
+ Ye(() => O.config, (e) => {
336
+ Sn.value || (P.value = kn()), Tn.value = !P.value.userOptions.showOnChartHover, an.value += 1, on.value += 1, H.value.showTable = P.value.table.show, H.value.sortDesc = P.value.style.chart.layout.bars.sort === "desc", H.value.showTooltip = P.value.style.chart.tooltip.show, L.value = P.value.style.chart.width, R.value = P.value.style.chart.height, z.value = P.value.style.chart.layout.bars.gap;
337
+ }, { deep: !0 }), Ye(() => O.dataset, (e) => {
338
+ Array.isArray(e) && e.length > 0 && (wn.value = !1);
339
+ }, { deep: !0 });
340
+ let { isPrinting: An, isImaging: jn, generatePdf: Mn, generateImage: Nn } = he({
341
+ elementId: `vue-ui-vertical-bar_${k.value}`,
342
+ fileName: P.value.style.chart.title.text || "vue-ui-vertical-bar",
343
+ options: P.value.userOptions.print
344
+ }), Pn = f(() => P.value.userOptions.show && !P.value.style.chart.title.text), Fn = f(() => ue(P.value.customPalette)), In = S(null), Ln = f(() => P.value.table.responsiveBreakpoint), Rn = f(() => P.value.debug), zn = S(0), B = S(null), V = S(null);
345
+ function Bn() {
346
+ if (A.value && (s(O.dataset) && (ae({
347
+ componentName: "VueUiVerticalBar",
348
+ type: "dataset",
349
+ debug: Rn.value
350
+ }), Yt.value = !1, wn.value = !0), s(O.dataset) || (wn.value = P.value.loading), P.value.responsive)) {
351
+ let e = Ee(() => {
352
+ let { width: e, height: t } = De({
353
+ chart: A.value,
354
+ title: P.value.style.chart.title.text ? en.value : null,
355
+ legend: P.value.style.chart.legend.show ? tn.value : null,
356
+ source: nn.value,
357
+ noTitle: rn.value
358
+ });
359
+ zn.value = t / 3, requestAnimationFrame(async () => {
360
+ R.value = t, L.value = e;
361
+ });
362
+ });
363
+ B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect()), B.value = new ResizeObserver(e), He(() => {
364
+ V.value = A.value?.parentNode, V.value && B.value.observe(V.value);
365
+ });
366
+ }
367
+ }
368
+ Ue(() => {
369
+ B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect());
370
+ });
371
+ let H = S({
372
+ showTable: P.value.table.show,
373
+ sortDesc: P.value.style.chart.layout.bars.sort === "desc",
374
+ showTooltip: P.value.style.chart.tooltip.show
375
+ }), Vn = f(() => H.value.sortDesc), U = f(() => (Cn.value.forEach((e, t) => {
376
+ !e.value && !e.children && ae({
377
+ componentName: "VueUiVerticalBar",
378
+ type: "datasetAttributeEmpty",
379
+ property: `value (index ${t})`,
380
+ debug: Rn.value
381
+ }), e.children && (s(e.children) ? ae({
382
+ componentName: "VueUiVerticalBar",
383
+ type: "datasetAttributeEmpty",
384
+ property: `children (index ${t})`,
385
+ debug: Rn.value
386
+ }) : e.children.forEach((e, t) => {
387
+ [null, void 0].includes(e.name) && ae({
388
+ componentName: "VueUiVerticalBar",
389
+ type: "datasetSerieAttribute",
390
+ property: "name",
391
+ key: "children",
392
+ index: t,
393
+ debug: Rn.value
394
+ });
395
+ }));
396
+ }), Cn.value.map((e, t) => {
397
+ let n = `vertical_parent_${t}_${k.value}`, r = e.children && e.children.length > 0, i = u(e.value ? e.value : r ? e.children.map((e) => e.value || 0).reduce((e, t) => e + t, 0) : 0), o = i >= 0 ? 1 : -1;
398
+ return {
399
+ ...e,
400
+ id: n,
401
+ absoluteIndex: t,
402
+ shape: "square",
403
+ opacity: j.value.includes(n) ? .5 : 1,
404
+ value: Math.abs(i),
405
+ sign: o,
406
+ hasChildren: r,
407
+ isChild: !1,
408
+ segregate: () => tr(n),
409
+ isSegregated: j.value.includes(n),
410
+ color: c(e.color) || Fn.value[t] || a[t] || a[t % a.length],
411
+ children: !e.children || !e.children.length ? [] : e.children.toSorted(pn.value ? () => 0 : (e, t) => Vn.value ? t.value - e.value : e.value - t.value).map((r, s) => ({
412
+ ...r,
413
+ value: u(Math.abs(r.value)),
414
+ absoluteIndex: t,
415
+ sign: r.value >= 0 ? 1 : -1,
416
+ isChild: !0,
417
+ parentId: n,
418
+ parentName: e.name,
419
+ parentValue: i,
420
+ parentSign: o,
421
+ id: `vertical_child_${t}_${s}_${k.value}`,
422
+ childIndex: s,
423
+ color: c(r.color) || c(e.color) || Fn.value[t] || a[t] || a[t % a.length]
424
+ })).map((t, n) => ({
425
+ ...t,
426
+ isFirstChild: n === 0,
427
+ isLastChild: n === e.children.length - 1
428
+ }))
429
+ };
430
+ }).toSorted(pn.value ? () => 0 : (e, t) => Vn.value ? t.value - e.value : e.value - t.value))), W = f(() => U.value.filter((e) => !j.value.includes(e.id))), G = f(() => W.value.flatMap((e) => e.hasChildren ? e.children : e)), Hn = f(() => U.value.flatMap((e) => e.hasChildren ? e.children : e)), Un = f(() => W.value.flatMap((e) => e.children && e.children.length > 0 ? e.children.length : 1).reduce((e, t) => e + t, 0)), Wn = f(() => ({
431
+ cy: "vertical-bar-div-legend",
432
+ backgroundColor: P.value.style.chart.legend.backgroundColor,
433
+ color: P.value.style.chart.legend.color,
434
+ fontSize: P.value.style.chart.legend.fontSize,
435
+ paddingBottom: 12,
436
+ fontWeight: P.value.style.chart.legend.bold ? "bold" : ""
437
+ })), K = f(() => P.value.style.chart.layout.bars.parentLabels.show ? P.value.style.chart.layout.bars.parentLabels.fontSize * 3 + P.value.style.chart.layout.bars.parentLabels.paddingBottom : 0), q = f(() => {
438
+ let e = [], t = 0;
439
+ return G.value.forEach((n, r) => {
440
+ n.isChild && n.childIndex === 0 && P.value.style.chart.layout.bars.parentLabels.show && (t += 1), e[r] = t;
441
+ }), e;
442
+ }), J = f(() => {
443
+ let e = Math.max(0, ...q.value) * K.value;
444
+ return (R.value - 24 - (Un.value - 1) * z.value - e) / Un.value;
445
+ }), Y = f(() => ({
446
+ width: L.value,
447
+ height: R.value,
448
+ padding: {
449
+ top: 12,
450
+ left: 128 + P.value.style.chart.layout.bars.offsetX,
451
+ right: 64 + P.value.style.chart.layout.bars.paddingRight,
452
+ bottom: 12
453
+ }
454
+ })), Gn = S(0);
455
+ function Kn() {
456
+ He(() => {
457
+ if (!dn.value) {
458
+ Gn.value = 0;
459
+ return;
460
+ }
461
+ let e = Array.from(dn.value.querySelectorAll("text")).reduce((e, t) => {
462
+ let n = t.getBBox?.().width ?? t.getComputedTextLength();
463
+ return n > e ? n : e;
464
+ }, 0);
465
+ Gn.value = e + 12;
466
+ });
467
+ }
468
+ Ye(() => [
469
+ G.value,
470
+ L.value,
471
+ R.value,
472
+ P.value.style.chart.layout.bars.nameLabels,
473
+ P.value.style.chart.layout.bars.offsetX
474
+ ], () => Kn(), { deep: !0 }), We(() => {
475
+ Kn();
476
+ });
477
+ function qn() {
478
+ return typeof document > "u" ? null : (hn || (hn = document.createElement("canvas"), gn = hn.getContext("2d")), gn);
479
+ }
480
+ function Jn(e) {
481
+ let t = String(e ?? ""), n = P.value.style.chart.layout.bars, r = n.dataLabels.fontSize, i = n.dataLabels.bold ? 700 : 400, a = P.value.style.fontFamily, o = qn();
482
+ return o ? (o.font = `${i} ${r}px ${a}`, o.measureText(t).width) : t.length * r * .6;
483
+ }
484
+ function Yn() {
485
+ let e = W.value.flatMap((e) => e.children && e.children.length ? e.children.map((e) => Math.abs(e.value)) : Math.abs(e.value));
486
+ return e.length ? Math.max(...e) : 0;
487
+ }
488
+ let Xn = f(() => {
489
+ mn.value;
490
+ let e = P.value.style.chart.layout.bars, t = Gn.value + Math.abs(e.nameLabels.offsetX) + e.offsetX, n = Y.value.width - Y.value.padding.right, r = Math.max(0, n - t - e.offsetX), i = Y.value.width - 40, a = Yn(), o = G.value.map((e, t) => ({
491
+ serie: e,
492
+ textWidth: Jn(yr(e.value, e, t, e.sign))
493
+ }));
494
+ if (!o.length || r <= 0) return {
495
+ left: 0,
496
+ right: 0
497
+ };
498
+ if (!o.some(({ serie: e }) => e.sign === -1)) {
499
+ let n = o.reduce((n, { serie: o, textWidth: s }) => {
500
+ let c = a ? Math.abs(o.value) / a : 0;
501
+ if (c <= 0 || s <= 0) return n;
502
+ let ee = (t + r * c + 3 + e.dataLabels.offsetX + s - i) / c;
503
+ return Math.max(n, ee);
504
+ }, 0);
505
+ return {
506
+ left: 0,
507
+ right: Math.ceil(Math.min(r, Math.max(0, n)))
508
+ };
509
+ }
510
+ let s = t + r / 2, c = -Infinity, ee = Infinity;
511
+ o.forEach(({ serie: t, textWidth: n }) => {
512
+ if (t.sign === -1) {
513
+ let t = s + 12 + e.dataLabels.offsetX + n;
514
+ ee = Math.min(ee, i - t);
515
+ return;
516
+ }
517
+ let r = s - 12 - e.dataLabels.offsetX - n;
518
+ c = Math.max(c, 40 - r);
519
+ });
520
+ let te = 0;
521
+ te = c > ee ? (c + ee) / 2 : Math.min(ee, Math.max(c, 0));
522
+ let l = te * 2;
523
+ return l >= 0 ? {
524
+ left: Math.ceil(Math.min(r, l)),
525
+ right: 0
526
+ } : {
527
+ left: 0,
528
+ right: Math.ceil(Math.min(r, -l))
529
+ };
530
+ }), Zn = f(() => Xn.value.right), Qn = f(() => Xn.value.left);
531
+ function $n() {
532
+ mn.value += 1;
533
+ }
534
+ We(() => {
535
+ typeof document > "u" || !document.fonts || (document.fonts.ready.then($n), document.fonts.addEventListener?.("loadingdone", $n));
536
+ }), Ue(() => {
537
+ typeof document < "u" && document.fonts && document.fonts.removeEventListener?.("loadingdone", $n), hn = null, gn = null;
538
+ });
539
+ let X = f(() => {
540
+ let e = Gn.value + Math.abs(P.value.style.chart.layout.bars.nameLabels.offsetX) + Qn.value + P.value.style.chart.layout.bars.offsetX, t = Y.value.width - Y.value.padding.right, n = Math.max(0, t - e - Zn.value - P.value.style.chart.layout.bars.offsetX);
541
+ return {
542
+ top: Y.value.padding.top,
543
+ bottom: Y.value.padding.top + Y.value.height,
544
+ left: e,
545
+ right: t,
546
+ width: n,
547
+ fullHeight: Y.value.padding.top + Y.value.padding.bottom + Y.value.height
548
+ };
549
+ });
550
+ function er() {
551
+ j.value.length ? j.value = [] : U.value.forEach((e) => {
552
+ j.value.push(e.id);
553
+ }), yn("selectLegend", W.value);
554
+ }
555
+ async function tr(e) {
556
+ if (j.value.includes(e)) j.value = j.value.filter((t) => t !== e);
557
+ else {
558
+ if (j.value.length === U.value.length - 1) return;
559
+ j.value.push(e);
560
+ }
561
+ yn("selectLegend", W.value);
562
+ }
563
+ function nr(e) {
564
+ return U.value.length ? U.value.find((t) => t.name === e) || (Rn.value && console.warn(`VueUiHorizontalBar - Series name not found "${e}"`), null) : (Rn.value && console.warn("VueUiHorizontalBar - There are no series to show."), null);
565
+ }
566
+ function rr(e) {
567
+ let t = nr(e);
568
+ t !== null && j.value.includes(t.id) && tr(t.id);
569
+ }
570
+ function ir(e) {
571
+ let t = nr(e);
572
+ t !== null && (j.value.includes(t.id) || tr(t.id));
573
+ }
574
+ let Z = f(() => W.value.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0));
575
+ function ar(e, t = !1, n = 0) {
576
+ return t ? l({
577
+ v: u(Math.abs(e) / Z.value * 100),
578
+ s: "%",
579
+ r: n
580
+ }) : Math.abs(e) / Z.value;
581
+ }
582
+ let or = f(() => G.value.map((e) => e.sign).includes(-1)), sr = f(() => Math.max(...W.value.flatMap((e) => e.children && e.children.length ? Math.max(...e.children.map((e) => e.value)) : e.value)));
583
+ function Q(e) {
584
+ let t = e / sr.value;
585
+ return u(X.value.width / (or.value ? 2 : 1) * t);
586
+ }
587
+ function cr(e) {
588
+ return Q(e) + X.value.left;
589
+ }
590
+ function lr(e, t) {
591
+ let n = W.value.find((t) => t.id === e.parentId);
592
+ return {
593
+ y: X.value.top + (z.value + J.value) * t + q.value[t] * K.value - K.value + P.value.style.chart.layout.bars.parentLabels.fontSize,
594
+ name: n.name,
595
+ value: [
596
+ void 0,
597
+ NaN,
598
+ null
599
+ ].includes(n.value) ? "" : n.sign === 1 ? n.value : -n.value,
600
+ percentageToTotal: isNaN(n.value / Z.value) ? "" : ar(n.value, !0, P.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
601
+ sign: n.sign
602
+ };
603
+ }
604
+ function ur() {
605
+ return W.value;
606
+ }
607
+ function dr(e, t) {
608
+ return lr(e, t).name;
609
+ }
610
+ function fr(e, t) {
611
+ let n = lr(e, t);
612
+ return yr(n.value, n, t, e.parentSign || e.sign);
613
+ }
614
+ let pr = S(null), mr = S(null);
615
+ function hr({ datapoint: e, seriesIndex: t }) {
616
+ yn("selectDatapoint", e), P.value.events.datapointClick && P.value.events.datapointClick({
617
+ datapoint: e,
618
+ seriesIndex: t
619
+ });
620
+ }
621
+ function gr({ datapoint: e, seriesIndex: t }) {
622
+ P.value.events.datapointLeave && P.value.events.datapointLeave({
623
+ datapoint: e,
624
+ seriesIndex: t
625
+ }), Qt.value = null, Xt.value = !1, pr.value = null, N.value === t && (N.value = null);
626
+ }
627
+ function _r(e, t, n = "pointer") {
628
+ vn.value = n, P.value.events.datapointEnter && P.value.events.datapointEnter({
629
+ datpoint: e,
630
+ seriesIndex: t
631
+ }), N.value = t, Qt.value = e, mr.value = {
632
+ datapoint: e,
633
+ seriesIndex: t,
634
+ series: U.value,
635
+ config: P.value
636
+ }, Xt.value = !0, pr.value = e.id;
637
+ let r = "", i = e.isChild ? e.parentName : e.name, a = e.isChild ? e.name : "", o = P.value.style.chart.tooltip.customFormat;
638
+ ee(o) && ie(() => o({
639
+ datapoint: e,
640
+ series: U.value,
641
+ config: P.value,
642
+ seriesIndex: t
643
+ })) ? Zt.value = o({
644
+ datapoint: e,
645
+ series: U.value,
646
+ config: P.value,
647
+ seriesIndex: t
648
+ }) : (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${P.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
649
+ <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="${e.color}"/>${Jt.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${k.value}_${e.absoluteIndex})"/>` : ""}</svg> ${i}</div>
650
+ ${a ? `<div>${a}</div>` : ""}
651
+ </div>`, P.value.style.chart.tooltip.showValue && (r += `<div>${P.value.translations.value}: <b>${re(P.value.style.chart.layout.bars.dataLabels.value.formatter, e.sign === 1 ? e.value : -e.value, l({
652
+ p: P.value.style.chart.tooltip.prefix,
653
+ v: e.sign === 1 ? e.value : -e.value,
654
+ s: P.value.style.chart.tooltip.suffix,
655
+ r: P.value.style.chart.tooltip.roundingValue
656
+ }), {
657
+ datapoint: e,
658
+ seriesIndex: t
659
+ })}</b></div>`), P.value.style.chart.tooltip.showPercentage && (r += `<div>${P.value.translations.percentageToTotal} : <b>${l({
660
+ v: Math.abs(e.value) / Z.value * 100,
661
+ s: "%",
662
+ r: P.value.style.chart.tooltip.roundingPercentage
663
+ })}</b></div>`, e.isChild && (r += `<div>${P.value.translations.percentageToSerie}: <b>${l({
664
+ v: Math.abs(e.value) / Math.abs(e.parentValue) * 100,
665
+ s: "%",
666
+ r: P.value.style.chart.tooltip.roundingPercentage
667
+ })}</b></div>`)), Zt.value = `<div style="text-align:left">${r}</div>`);
668
+ }
669
+ function vr({ legend: e, index: t }) {
670
+ let n = P.value.style.chart.legend;
671
+ return n.showValue ? `${e.name}: ${re(P.value.style.chart.layout.bars.dataLabels.value.formatter, e.value, l({
672
+ p: n.prefix,
673
+ v: e.value,
674
+ s: n.suffix,
675
+ r: n.roundingValue
676
+ }), {
677
+ datapoint: e,
678
+ seriesIndex: t
679
+ })}` : e.name;
680
+ }
681
+ function yr(e, t, n, r) {
682
+ if (!P.value.style.chart.layout.bars.dataLabels.value.show) return "";
683
+ let i = re(P.value.style.chart.layout.bars.dataLabels.value.formatter, u(r === -1 && e >= 0 ? -e : e), l({
684
+ p: P.value.style.chart.layout.bars.dataLabels.value.prefix,
685
+ v: u(r === -1 && e >= 0 ? -e : e),
686
+ s: P.value.style.chart.layout.bars.dataLabels.value.suffix,
687
+ r: P.value.style.chart.layout.bars.dataLabels.value.roundingValue
688
+ }), {
689
+ datapoint: t,
690
+ seriesIndex: n
691
+ }), a = `(${ar(e, !0, P.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
692
+ return `${i}${P.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${a}` : ""}`;
693
+ }
694
+ let $ = f(() => ({
695
+ head: [
696
+ P.value.translations.parentName,
697
+ P.value.translations.value,
698
+ P.value.translations.percentageToTotal,
699
+ P.value.translations.childName,
700
+ P.value.translations.value,
701
+ P.value.translations.percentageToSerie,
702
+ P.value.translations.percentageToTotal
703
+ ],
704
+ body: G.value.map((e) => e.isChild ? e.isFirstChild ? {
705
+ color: e.color,
706
+ parentName: e.parentName,
707
+ parentValue: e.parentValue,
708
+ percentageToTotal: e.parentValue / Z.value,
709
+ childName: e.name,
710
+ childValue: e.sign === 1 ? e.value : -e.value,
711
+ childPercentageToParent: Math.abs(e.value) / Math.abs(e.parentValue),
712
+ childPercentageToTotal: Math.abs(e.value) / Z.value
713
+ } : {
714
+ color: "",
715
+ parentName: "",
716
+ parentValue: "",
717
+ percentageToTotal: "",
718
+ childName: e.name,
719
+ childValue: e.sign === 1 ? e.value : -e.value,
720
+ childPercentageToParent: Math.abs(e.value) / Math.abs(e.parentValue),
721
+ childPercentageToTotal: Math.abs(e.value) / Z.value
722
+ } : {
723
+ color: e.color,
724
+ parentName: e.name,
725
+ parentValue: e.sign === 1 ? e.value : -e.value,
726
+ percentageToTotal: Math.abs(e.value) / Z.value,
727
+ childName: "",
728
+ childValue: "",
729
+ childPercentageToParent: "",
730
+ childPercentageToTotal: ""
731
+ })
732
+ }));
733
+ function br(e = null) {
734
+ let r = [
735
+ [P.value.style.chart.title.text],
736
+ [P.value.style.chart.title.subtitle.text],
737
+ [""]
738
+ ], i = $.value.head, a = $.value.body.map((e) => [
739
+ e.parentName,
740
+ e.parentValue,
741
+ e.percentageToTotal,
742
+ e.childName,
743
+ e.childValue,
744
+ e.childPercentageToParent,
745
+ e.childPercentageToTotal
746
+ ]), o = r.concat([i]).concat(a), s = n(o);
747
+ e ? e(s) : t({
748
+ csvContent: s,
749
+ title: P.value.style.chart.title.text || "vue-ui-vertical-bar"
750
+ });
751
+ }
752
+ let xr = S(!1);
753
+ function Sr(e) {
754
+ xr.value = e, $t.value += 1;
755
+ }
756
+ function Cr() {
757
+ H.value.showTable = !H.value.showTable;
758
+ }
759
+ We(() => {
760
+ [
761
+ "none",
762
+ "asc",
763
+ "desc"
764
+ ].includes(P.value.style.chart.layout.bars.sort) || ae({
765
+ componentName: "VueUiVerticalBar",
766
+ type: "attributeWrongValue",
767
+ property: "style.chart.layout.bars.sort",
768
+ key: P.value.style.chart.layout.bars.sort
769
+ }), M.value = fn.value[P.value.style.chart.layout.bars.sort], H.value.sortDesc = M.value === 2, pn.value = M.value === 0;
770
+ });
771
+ function wr() {
772
+ M.value += 1, M.value > 2 && (M.value = 0);
773
+ }
774
+ function Tr() {
775
+ wr(), H.value.sortDesc = M.value === 2, pn.value = M.value === 0;
776
+ }
777
+ function Er() {
778
+ H.value.showTooltip = !H.value.showTooltip;
779
+ }
780
+ let Dr = S(!1);
781
+ function Or() {
782
+ Dr.value = !Dr.value;
783
+ }
784
+ async function kr({ scale: e = 2 } = {}) {
785
+ if (!A.value) return;
786
+ let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Se({
787
+ domElement: A.value,
788
+ base64: !0,
789
+ img: !0,
790
+ scale: e
791
+ });
792
+ return {
793
+ imageUri: i,
794
+ base64: a,
795
+ title: P.value.style.chart.title.text,
796
+ width: t,
797
+ height: n,
798
+ aspectRatio: r
799
+ };
800
+ }
801
+ let Ar = f(() => {
802
+ let e = P.value.table.useDialog && !P.value.table.show, t = H.value.showTable;
803
+ return {
804
+ component: e ? Wt : ke,
805
+ title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
806
+ props: e ? {
807
+ backgroundColor: P.value.table.th.backgroundColor,
808
+ color: P.value.table.th.color,
809
+ headerColor: P.value.table.th.color,
810
+ headerBg: P.value.table.th.backgroundColor,
811
+ isFullscreen: xr.value,
812
+ fullscreenParent: A.value,
813
+ forcedWidth: Math.min(800, window.innerWidth * .8),
814
+ isCursorPointer: I.value
815
+ } : {
816
+ hideDetails: !0,
817
+ config: {
818
+ open: t,
819
+ maxHeight: 1e4,
820
+ body: {
821
+ backgroundColor: P.value.style.chart.backgroundColor,
822
+ color: P.value.style.chart.color
823
+ },
824
+ head: {
825
+ backgroundColor: P.value.style.chart.backgroundColor,
826
+ color: P.value.style.chart.color
827
+ }
828
+ }
829
+ }
830
+ };
831
+ });
832
+ Ye(() => H.value.showTable, (e) => {
833
+ P.value.table.show || (e && P.value.table.useDialog && cn.value ? cn.value.open() : "close" in cn.value && cn.value.close());
834
+ });
835
+ let { isResponsive: jr } = Pe(In, Ln);
836
+ function Mr() {
837
+ H.value.showTable = !1, ln.value && ln.value.setTableIconState(!1);
838
+ }
839
+ let Nr = f(() => U.value.map((e, t) => ({
840
+ ...e,
841
+ shape: "square",
842
+ display: `${e.name}: ${re(P.value.style.chart.layout.bars.dataLabels.value.formatter, e.value, l({
843
+ p: P.value.style.chart.legend.prefix,
844
+ v: e.value,
845
+ s: P.value.style.chart.legend.suffix,
846
+ r: P.value.style.chart.legend.roundingValue
847
+ }), {
848
+ datapoint: e,
849
+ seriesIndex: t
850
+ })}`
851
+ }))), Pr = f(() => P.value.style.chart.backgroundColor), Fr = f(() => P.value.style.chart.legend), Ir = f(() => P.value.style.chart.title), Lr = f(() => Nr.value.map((e) => ({
852
+ ...e,
853
+ name: e.display
854
+ }))), { isCallbackImaging: Rr, isCallbackSvg: zr, generateSvg: Br, onGenerateImage: Vr } = be({
855
+ svg: On,
856
+ title: Ir,
857
+ legend: Fr,
858
+ legendItems: Lr,
859
+ backgroundColor: Pr,
860
+ getSvgCallback: () => P.value.userOptions.callbacks.svg,
861
+ generateImage: Nn
862
+ });
863
+ function Hr() {
864
+ console.warn("[autoSize]: this legacy method can be safely removed as it has no impact.");
865
+ }
866
+ async function Ur() {
867
+ if (yn("copyAlt", {
868
+ config: P.value,
869
+ dataset: W.value
870
+ }), !P.value.userOptions.callbacks.altCopy) {
871
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
872
+ return;
873
+ }
874
+ await Promise.resolve(P.value.userOptions.callbacks.altCopy({
875
+ config: P.value,
876
+ dataset: W.value
877
+ }));
878
+ }
879
+ let Wr = S(!1);
880
+ function Gr() {
881
+ N.value = null, Wr.value = !0;
882
+ }
883
+ function Kr() {
884
+ N.value = null, Xt.value = !1, Wr.value = !1;
885
+ }
886
+ function qr() {
887
+ if (N.value === null) return;
888
+ let e = G.value[N.value];
889
+ e && gr({
890
+ datapoint: e,
891
+ seriesIndex: N.value
892
+ }), N.value = null, vn.value = "pointer";
893
+ }
894
+ function Jr(e) {
895
+ if (!On.value || Dr.value || document.activeElement !== On.value) return;
896
+ let t = e.key === "ArrowRight" || e.key === "ArrowDown", n = e.key === "ArrowLeft" || e.key === "ArrowUp", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
897
+ if (!t && !n && !r && !i) return;
898
+ let a = G.value.length;
899
+ if (!a) return;
900
+ if (e.preventDefault(), e.stopPropagation(), i) {
901
+ qr();
902
+ return;
903
+ }
904
+ if (r) {
905
+ if (N.value === null) return;
906
+ let e = G.value[N.value];
907
+ if (!e) return;
908
+ hr({
909
+ datapoint: e,
910
+ seriesIndex: N.value
911
+ });
912
+ return;
913
+ }
914
+ let o = N.value, s = Qt.value ? G.value.findIndex((e) => e.id === Qt.value.id) : null;
915
+ o !== null && o >= 0 && o < a ? t ? (o += 1, o >= a && (o = 0)) : n && (--o, o < 0 && (o = a - 1)) : s !== null && s >= 0 && s < a ? (o = t ? s + 1 : s - 1, o >= a && (o = 0), o < 0 && (o = a - 1)) : o = t ? 0 : a - 1;
916
+ let c = G.value[o];
917
+ c && (N.value = o, Yr(c), _r(c, o, "keyboard"));
918
+ }
919
+ function Yr(e) {
920
+ if (!e) return;
921
+ let t = X.value.right, n = X.value.top + (z.value + J.value) * e.absoluteIndex + q.value[e.absoluteIndex] * K.value;
922
+ if (!Number.isFinite(t) || !Number.isFinite(n)) return;
923
+ let r = ce(t, n, On.value);
924
+ r && (_n.value = r);
925
+ }
926
+ let Xr = f(() => ({
927
+ head: $.value.head,
928
+ body: $.value.body.map((e) => [
929
+ e.parentName,
930
+ e.parentValue === "" ? "" : l({
931
+ v: e.parentValue,
932
+ r: P.value.style.chart.layout.bars.dataLabels.value.roundingValue,
933
+ p: P.value.style.chart.layout.bars.dataLabels.prefix,
934
+ s: P.value.style.chart.layout.bars.dataLabels.suffix
935
+ }),
936
+ e.percentageToTotal === "" ? "" : l({
937
+ v: e.percentageToTotal * 100,
938
+ r: P.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage,
939
+ s: "%"
940
+ }),
941
+ e.childName,
942
+ e.childValue === "" ? "" : l({
943
+ v: e.childValue,
944
+ r: P.value.style.chart.layout.bars.dataLabels.value.roundingValue,
945
+ p: P.value.style.chart.layout.bars.dataLabels.prefix,
946
+ s: P.value.style.chart.layout.bars.dataLabels.suffix
947
+ }),
948
+ e.childPercentageToParent === "" ? "" : l({
949
+ v: e.childPercentageToParent * 100,
950
+ r: P.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage,
951
+ s: "%"
952
+ }),
953
+ e.childPercentageToTotal === "" ? "" : l({
954
+ v: e.childPercentageToTotal * 100,
955
+ r: P.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage,
956
+ s: "%"
957
+ })
958
+ ]),
959
+ caption: P.value.a11y.translations.tableCaption,
960
+ notice: P.value.a11y.translations.tableAvailable
961
+ }));
962
+ return Te({
963
+ autoSize: Hr,
964
+ getData: ur,
965
+ getImage: kr,
966
+ generatePdf: Mn,
967
+ generateCsv: br,
968
+ generateImage: Nn,
969
+ generateSvg: Br,
970
+ hideSeries: ir,
971
+ showSeries: rr,
972
+ toggleTable: Cr,
973
+ toggleSort: Tr,
974
+ toggleTooltip: Er,
975
+ toggleAnnotator: Or,
976
+ toggleFullscreen: Sr,
977
+ copyAlt: Ur
978
+ }), (e, t) => (x(), h("div", {
979
+ class: v(`vue-data-ui-component vue-ui-vertical-bar ${xr.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"} ${P.value.responsive ? "vue-ui-vertical-bar-autosize" : ""}`),
980
+ ref_key: "verticalBarChart",
981
+ ref: A,
982
+ id: `vue-ui-vertical-bar_${k.value}`,
983
+ style: b(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${P.value.style.chart.backgroundColor};height:100%`),
984
+ onMouseenter: t[3] ||= () => E(En)(!0),
985
+ onMouseleave: t[4] ||= () => E(En)(!1)
986
+ }, [
987
+ g("p", {
988
+ id: `chart-instructions-${k.value}`,
989
+ class: "sr-only"
990
+ }, T(P.value.a11y.translations.keyboardNavigation), 9, $e),
991
+ Xr.value.body.length ? (x(), p(je, {
992
+ key: 0,
993
+ uid: k.value,
994
+ head: Xr.value.head,
995
+ body: Xr.value.body,
996
+ caption: Xr.value.caption,
997
+ notice: Xr.value.notice
998
+ }, null, 8, [
999
+ "uid",
1000
+ "head",
1001
+ "body",
1002
+ "caption",
1003
+ "notice"
1004
+ ])) : m("", !0),
1005
+ P.value.userOptions.buttons.annotator ? (x(), p(E(Vt), {
1006
+ key: 1,
1007
+ svgRef: E(On),
1008
+ backgroundColor: P.value.style.chart.backgroundColor,
1009
+ color: P.value.style.chart.color,
1010
+ active: Dr.value,
1011
+ isCursorPointer: I.value,
1012
+ onClose: Or
1013
+ }, {
1014
+ "annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1015
+ "annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
1016
+ "annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
1017
+ "annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
1018
+ "annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
1019
+ "annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
1020
+ _: 3
1021
+ }, 8, [
1022
+ "svgRef",
1023
+ "backgroundColor",
1024
+ "color",
1025
+ "active",
1026
+ "isCursorPointer"
1027
+ ])) : m("", !0),
1028
+ Pn.value ? (x(), h("div", {
1029
+ key: 2,
1030
+ ref_key: "noTitle",
1031
+ ref: rn,
1032
+ class: "vue-data-ui-no-title-space",
1033
+ style: "height:36px; width: 100%;background:transparent"
1034
+ }, null, 512)) : m("", !0),
1035
+ P.value.style.chart.title.text ? (x(), h("div", {
1036
+ key: 3,
1037
+ ref_key: "chartTitle",
1038
+ ref: en,
1039
+ style: "width:100%;background:transparent;padding-bottom:12px"
1040
+ }, [(x(), p(Ce, {
1041
+ key: `title_${an.value}`,
1042
+ config: {
1043
+ title: {
1044
+ cy: "vertical-bar-div-title",
1045
+ ...P.value.style.chart.title
1046
+ },
1047
+ subtitle: {
1048
+ cy: "vertical-bar-div-subtitle",
1049
+ ...P.value.style.chart.title.subtitle
1050
+ }
1051
+ }
1052
+ }, null, 8, ["config"]))], 512)) : m("", !0),
1053
+ P.value.userOptions.show && Yt.value && (E(Dn) || E(Tn)) ? (x(), p(E(Ht), {
1054
+ ref_key: "userOptionsRef",
1055
+ ref: ln,
1056
+ backgroundColor: P.value.style.chart.backgroundColor,
1057
+ color: P.value.style.chart.color,
1058
+ key: `user_options_${$t.value}`,
1059
+ isImaging: E(jn),
1060
+ isPrinting: E(An),
1061
+ uid: k.value,
1062
+ hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.chart.tooltip.show,
1063
+ hasPdf: P.value.userOptions.buttons.pdf,
1064
+ hasImg: P.value.userOptions.buttons.img,
1065
+ hasSvg: P.value.userOptions.buttons.svg,
1066
+ hasXls: P.value.userOptions.buttons.csv,
1067
+ hasTable: P.value.userOptions.buttons.table,
1068
+ hasSort: P.value.userOptions.buttons.sort,
1069
+ hasFullscreen: P.value.userOptions.buttons.fullscreen,
1070
+ hasAltCopy: P.value.userOptions.buttons.altCopy,
1071
+ isFullscreen: xr.value,
1072
+ isTooltip: H.value.showTooltip,
1073
+ titles: { ...P.value.userOptions.buttonTitles },
1074
+ chartElement: A.value,
1075
+ position: P.value.userOptions.position,
1076
+ hasAnnotator: P.value.userOptions.buttons.annotator,
1077
+ isAnnotation: Dr.value,
1078
+ callbacks: P.value.userOptions.callbacks,
1079
+ printScale: P.value.userOptions.print.scale,
1080
+ tableDialog: P.value.table.useDialog,
1081
+ isCursorPointer: I.value,
1082
+ onToggleFullscreen: Sr,
1083
+ onGeneratePdf: E(Mn),
1084
+ onGenerateCsv: br,
1085
+ onGenerateImage: E(Vr),
1086
+ onGenerateSvg: E(Br),
1087
+ onToggleTable: Cr,
1088
+ onToggleSort: Tr,
1089
+ onToggleTooltip: Er,
1090
+ onToggleAnnotator: Or,
1091
+ onCopyAlt: Ur,
1092
+ style: b({ visibility: E(Dn) ? E(Tn) ? "visible" : "hidden" : "visible" })
1093
+ }, Le({ _: 2 }, [
1094
+ e.$slots.menuIcon ? {
1095
+ name: "menuIcon",
1096
+ fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
1097
+ isOpen: t,
1098
+ color: n
1099
+ })), void 0, !0)]),
1100
+ key: "0"
1101
+ } : void 0,
1102
+ e.$slots.optionTooltip ? {
1103
+ name: "optionTooltip",
1104
+ fn: D(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
1105
+ key: "1"
1106
+ } : void 0,
1107
+ e.$slots.optionPdf ? {
1108
+ name: "optionPdf",
1109
+ fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
1110
+ key: "2"
1111
+ } : void 0,
1112
+ e.$slots.optionCsv ? {
1113
+ name: "optionCsv",
1114
+ fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
1115
+ key: "3"
1116
+ } : void 0,
1117
+ e.$slots.optionImg ? {
1118
+ name: "optionImg",
1119
+ fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
1120
+ key: "4"
1121
+ } : void 0,
1122
+ e.$slots.optionSvg ? {
1123
+ name: "optionSvg",
1124
+ fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
1125
+ key: "5"
1126
+ } : void 0,
1127
+ e.$slots.optionTable ? {
1128
+ name: "optionTable",
1129
+ fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
1130
+ key: "6"
1131
+ } : void 0,
1132
+ e.$slots.optionLabels ? {
1133
+ name: "optionLabels",
1134
+ fn: D(() => [w(e.$slots, "optionLabels", {}, void 0, !0)]),
1135
+ key: "7"
1136
+ } : void 0,
1137
+ e.$slots.optionSort ? {
1138
+ name: "optionSort",
1139
+ fn: D(() => [w(e.$slots, "optionSort", {}, void 0, !0)]),
1140
+ key: "8"
1141
+ } : void 0,
1142
+ e.$slots.optionFullscreen ? {
1143
+ name: "optionFullscreen",
1144
+ fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(_({
1145
+ toggleFullscreen: t,
1146
+ isFullscreen: n
1147
+ })), void 0, !0)]),
1148
+ key: "9"
1149
+ } : void 0,
1150
+ e.$slots.optionAnnotator ? {
1151
+ name: "optionAnnotator",
1152
+ fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(_({
1153
+ toggleAnnotator: t,
1154
+ isAnnotator: n
1155
+ })), void 0, !0)]),
1156
+ key: "10"
1157
+ } : void 0,
1158
+ e.$slots.optionAltCopy ? {
1159
+ name: "optionAltCopy",
1160
+ fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
1161
+ key: "11"
1162
+ } : void 0,
1163
+ e.$slots["custom-menu-before"] ? {
1164
+ name: "custom-menu-before",
1165
+ fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1166
+ key: "12"
1167
+ } : void 0,
1168
+ e.$slots["custom-menu-after"] ? {
1169
+ name: "custom-menu-after",
1170
+ fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1171
+ key: "13"
1172
+ } : void 0
1173
+ ]), 1032, /* @__PURE__ */ "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.onGenerateImage.onGenerateSvg.style".split("."))) : m("", !0),
1174
+ P.value.style.chart.legend.show && P.value.style.chart.legend.position === "top" ? (x(), h("div", {
1175
+ key: 5,
1176
+ ref_key: "chartLegend",
1177
+ ref: tn
1178
+ }, [(x(), p(Fe, {
1179
+ key: `legend_top_${on.value}`,
1180
+ legendSet: U.value,
1181
+ config: Wn.value,
1182
+ onClickMarker: t[0] ||= ({ legend: e }) => tr(e.id)
1183
+ }, Le({
1184
+ item: D(({ legend: e, index: t }) => [g("div", {
1185
+ onClick: (t) => tr(e.id),
1186
+ style: b(`opacity:${j.value.includes(e.id) ? .5 : 1}`)
1187
+ }, T(vr({
1188
+ legend: e,
1189
+ index: t
1190
+ })), 13, et)]),
1191
+ legendToggle: D(() => [U.value.length > 2 && P.value.style.chart.legend.selectAllToggle.show && !E(Sn) ? (x(), p(Ae, {
1192
+ key: 0,
1193
+ backgroundColor: P.value.style.chart.legend.selectAllToggle.backgroundColor,
1194
+ color: P.value.style.chart.legend.selectAllToggle.color,
1195
+ fontSize: P.value.style.chart.legend.fontSize,
1196
+ checked: j.value.length > 0,
1197
+ onToggle: er
1198
+ }, null, 8, [
1199
+ "backgroundColor",
1200
+ "color",
1201
+ "fontSize",
1202
+ "checked"
1203
+ ])) : m("", !0)]),
1204
+ _: 2
1205
+ }, [e.$slots.pattern ? {
1206
+ name: "legend-pattern",
1207
+ fn: D(({ legend: e, index: t }) => [ze(we, {
1208
+ shape: e.shape,
1209
+ radius: 30,
1210
+ stroke: "none",
1211
+ plot: {
1212
+ x: 30,
1213
+ y: 30
1214
+ },
1215
+ fill: `url(#pattern_${k.value}_${t})`
1216
+ }, null, 8, ["shape", "fill"])]),
1217
+ key: "0"
1218
+ } : void 0]), 1032, ["legendSet", "config"]))], 512)) : m("", !0),
1219
+ g("div", tt, [(x(), h("svg", {
1220
+ ref_key: "svgRef",
1221
+ ref: On,
1222
+ xmlns: E(le),
1223
+ class: v({
1224
+ "vue-data-ui-fullscreen--on": xr.value,
1225
+ "vue-data-ui-fulscreen--off": !xr.value,
1226
+ "vue-data-ui-no-transition": !E(F)
1227
+ }),
1228
+ viewBox: `0 0 ${L.value} ${R.value}`,
1229
+ style: b(`max-width:100%;overflow:visible;background:transparent;color:${P.value.style.chart.color}`),
1230
+ tabindex: "0",
1231
+ "aria-describedby": `chart-instructions-${k.value}`,
1232
+ onFocus: Gr,
1233
+ onBlur: Kr,
1234
+ onKeydown: Jr
1235
+ }, [g("g", {
1236
+ ref_key: "G",
1237
+ ref: sn,
1238
+ class: "vue-data-ui-g"
1239
+ }, [
1240
+ ze(E(Ut)),
1241
+ e.$slots["chart-background"] ? (x(), h("foreignObject", {
1242
+ key: 0,
1243
+ x: 0,
1244
+ y: 0,
1245
+ width: L.value,
1246
+ height: R.value,
1247
+ style: { pointerEvents: "none" }
1248
+ }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, rt)) : m("", !0),
1249
+ g("defs", null, [(x(!0), h(d, null, C(G.value, (e, t) => (x(), p(Oe, {
1250
+ t: "linear",
1251
+ x1: "0%",
1252
+ y1: "0%",
1253
+ x2: "100%",
1254
+ y2: "0%",
1255
+ id: `vertical_bar_gradient_${k.value}_${t}`,
1256
+ key: `vertical_bar_gradient_${k.value}_${t}`,
1257
+ stops: [[
1258
+ "0%",
1259
+ e.color,
1260
+ 1
1261
+ ], [
1262
+ "100%",
1263
+ E(i)(E(te)(e.color, .03), 100 - P.value.style.chart.layout.bars.gradientIntensity),
1264
+ 1
1265
+ ]]
1266
+ }, null, 8, ["id", "stops"]))), 128))]),
1267
+ e.$slots.pattern ? (x(), h("g", it, [(x(!0), h(d, null, C(G.value, (t) => (x(), h("defs", null, [w(e.$slots, "pattern", Ve({ ref_for: !0 }, {
1268
+ seriesIndex: t.absoluteIndex,
1269
+ patternId: `pattern_${k.value}_${t.absoluteIndex}`
1270
+ }), void 0, !0)]))), 256))])) : m("", !0),
1271
+ P.value.style.chart.layout.bars.rowColor ? (x(!0), h(d, { key: 2 }, C(G.value, (e, t) => (x(), h("g", { key: `row_${e.id}` }, [g("rect", {
1272
+ x: 0,
1273
+ y: X.value.top + (z.value + J.value) * t + q.value[t] * K.value,
1274
+ width: L.value,
1275
+ height: J.value <= 0 ? 1e-4 : J.value,
1276
+ fill: P.value.style.chart.layout.bars.rowColor,
1277
+ rx: P.value.style.chart.layout.bars.rowRadius,
1278
+ style: { pointerEvents: "none" },
1279
+ class: v({ "vue-data-ui-transition": E(F) })
1280
+ }, null, 10, at)]))), 128)) : m("", !0),
1281
+ (x(!0), h(d, null, C(G.value, (e, t) => (x(), h("g", { key: `underlayer_${e.id}` }, [g("rect", {
1282
+ x: E(u)(or.value ? X.value.left + X.value.width / 2 - (e.sign === 1 ? 0 : Q(e.value) <= 0 ? 1e-4 : Q(e.value)) : X.value.left),
1283
+ y: X.value.top + (z.value + J.value) * t + q.value[t] * K.value,
1284
+ width: E(u)(Q(e.value) <= 0 ? 1e-4 : Q(e.value)),
1285
+ height: J.value <= 0 ? 1e-4 : J.value,
1286
+ fill: P.value.style.chart.layout.bars.underlayerColor,
1287
+ rx: P.value.style.chart.layout.bars.borderRadius,
1288
+ class: v({ "vue-data-ui-transition": E(F) })
1289
+ }, null, 10, ot)]))), 128)),
1290
+ (x(!0), h(d, null, C(G.value, (t, n) => (x(), h("g", { key: `barloop_${t.id}` }, [
1291
+ g("rect", {
1292
+ x: E(u)(or.value ? X.value.left + X.value.width / 2 - (t.sign === 1 ? 0 : Q(t.value) <= 0 ? 1e-4 : Q(t.value)) : X.value.left),
1293
+ y: X.value.top + (z.value + J.value) * n + q.value[n] * K.value,
1294
+ width: E(u)(Q(t.value) <= 0 ? 1e-4 : Q(t.value)),
1295
+ height: J.value <= 0 ? 1e-4 : J.value,
1296
+ fill: P.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${k.value}_${n})` : E(i)(t.color, P.value.style.chart.layout.bars.fillOpacity),
1297
+ rx: P.value.style.chart.layout.bars.borderRadius,
1298
+ stroke: P.value.style.chart.layout.bars.useStroke ? t.color : "none",
1299
+ "stroke-width": P.value.style.chart.layout.bars.useStroke ? P.value.style.chart.layout.bars.strokeWidth : 0,
1300
+ class: v({ "vue-data-ui-transition": E(F) })
1301
+ }, null, 10, st),
1302
+ e.$slots.pattern ? (x(), h("rect", {
1303
+ key: 0,
1304
+ x: E(u)(or.value ? X.value.left + X.value.width / 2 - (t.sign === 1 ? 0 : Q(t.value) <= 0 ? 1e-4 : Q(t.value)) : X.value.left),
1305
+ y: X.value.top + (z.value + J.value) * n + q.value[n] * K.value,
1306
+ width: E(u)(Q(t.value) <= 0 ? 1e-4 : Q(t.value)),
1307
+ height: J.value <= 0 ? 1e-4 : J.value,
1308
+ fill: `url(#pattern_${k.value}_${t.absoluteIndex})`,
1309
+ rx: P.value.style.chart.layout.bars.borderRadius,
1310
+ stroke: P.value.style.chart.layout.bars.useStroke ? t.color : "none",
1311
+ "stroke-width": P.value.style.chart.layout.bars.useStroke ? P.value.style.chart.layout.bars.strokeWidth : 0,
1312
+ class: v({ "vue-data-ui-transition": E(F) })
1313
+ }, null, 10, ct)) : m("", !0),
1314
+ (!t.isChild || t.isLastChild) && P.value.style.chart.layout.separators.show && n !== G.value.length - 1 ? (x(), h("path", {
1315
+ key: 1,
1316
+ stroke: P.value.style.chart.layout.separators.color,
1317
+ "stroke-width": P.value.style.chart.layout.separators.strokeWidth,
1318
+ "stroke-linecap": "round",
1319
+ class: v({ "vue-data-ui-transition": E(F) }),
1320
+ d: `M${L.value}, ${J.value + z.value / 2 + X.value.top + (z.value + J.value) * n + q.value[n] * K.value} ${P.value.style.chart.layout.separators.fullWidth ? 0 : X.value.left}, ${J.value + z.value / 2 + X.value.top + (z.value + J.value) * n + q.value[n] * K.value}`
1321
+ }, null, 10, lt)) : m("", !0),
1322
+ or.value && P.value.style.chart.layout.separators.show ? (x(), h("path", {
1323
+ key: 2,
1324
+ stroke: P.value.style.chart.layout.separators.color,
1325
+ "stroke-width": P.value.style.chart.layout.separators.strokeWidth,
1326
+ "stroke-linecap": "round",
1327
+ class: v({ "vue-data-ui-transition": E(F) }),
1328
+ d: `M${X.value.left + X.value.width / 2}, ${X.value.top} ${X.value.left + X.value.width / 2}, ${X.value.bottom}`
1329
+ }, null, 10, ut)) : m("", !0)
1330
+ ]))), 128)),
1331
+ g("g", {
1332
+ ref_key: "parentLabels",
1333
+ ref: un
1334
+ }, [(x(!0), h(d, null, C(G.value, (e, t) => (x(), h("g", {
1335
+ key: `pn_${e.id}`,
1336
+ class: "vue-ui-horizontal-bar-parent-label"
1337
+ }, [
1338
+ e.isChild && e.childIndex === 0 && P.value.style.chart.layout.bars.parentLabels.show ? (x(), h("rect", {
1339
+ key: 0,
1340
+ class: v(["vue-ui-horizontal-bar-parent-marker", { "vue-data-ui-transition": E(F) }]),
1341
+ x: 2,
1342
+ y: lr(e, t).y - P.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
1343
+ height: P.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
1344
+ width: P.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
1345
+ rx: 1,
1346
+ fill: e.color
1347
+ }, null, 10, dt)) : m("", !0),
1348
+ e.isChild && e.childIndex === 0 && P.value.style.chart.layout.bars.parentLabels.show ? (x(), h("text", {
1349
+ key: 1,
1350
+ class: v({ "vue-data-ui-transition": E(F) }),
1351
+ transform: `translate(${P.value.style.chart.layout.bars.parentLabels.offsetX + P.value.style.chart.layout.bars.parentLabels.fontSize}, ${lr(e, t).y})`,
1352
+ "font-size": P.value.style.chart.layout.bars.parentLabels.fontSize,
1353
+ fill: P.value.style.chart.layout.bars.parentLabels.color,
1354
+ "font-weight": P.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
1355
+ "text-anchor": "start",
1356
+ innerHTML: E(r)({
1357
+ content: `${dr(e, t)}`,
1358
+ fontSize: P.value.style.chart.layout.bars.parentLabels.fontSize,
1359
+ fill: P.value.style.chart.layout.bars.parentLabels.color,
1360
+ x: 0,
1361
+ y: 0,
1362
+ translateY: !1
1363
+ })
1364
+ }, null, 10, ft)) : m("", !0),
1365
+ e.isChild && e.childIndex === 0 && P.value.style.chart.layout.bars.parentLabels.show ? (x(), h("text", {
1366
+ key: 2,
1367
+ class: v({ "vue-data-ui-transition": E(F) }),
1368
+ transform: `translate(${P.value.style.chart.layout.bars.parentLabels.offsetX + P.value.style.chart.layout.bars.parentLabels.fontSize}, ${lr(e, t).y + E(oe)(dr(e, t)) * P.value.style.chart.layout.bars.parentLabels.fontSize * 1.1})`,
1369
+ "font-size": P.value.style.chart.layout.bars.parentLabels.fontSize,
1370
+ fill: P.value.style.chart.layout.bars.parentLabels.color,
1371
+ "font-weight": P.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
1372
+ "text-anchor": "start"
1373
+ }, T(fr(e, t)), 11, pt)) : m("", !0)
1374
+ ]))), 128))], 512),
1375
+ g("g", {
1376
+ ref_key: "childLabels",
1377
+ ref: dn
1378
+ }, [(x(!0), h(d, null, C(Hn.value, (e, t) => (x(), h("g", {
1379
+ key: `cl_${e.id}`,
1380
+ class: "vue-ui-horizontal-bar-child-label"
1381
+ }, [(e.isChild || !e.hasChildren) && P.value.style.chart.layout.bars.nameLabels.show ? (x(), h("text", {
1382
+ key: 0,
1383
+ "text-anchor": "start",
1384
+ class: v({ "vue-data-ui-transition": E(F) }),
1385
+ transform: `translate(${Math.abs(P.value.style.chart.layout.bars.nameLabels.offsetX)}, ${E(u)(X.value.top + (z.value + J.value) * t + J.value / 2 + P.value.style.chart.layout.bars.nameLabels.fontSize / 2 + q.value[t] * K.value)})`,
1386
+ "font-size": P.value.style.chart.layout.bars.nameLabels.fontSize,
1387
+ fill: "transparent",
1388
+ "font-weight": P.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
1389
+ style: { "user-select": "none" },
1390
+ innerHTML: E(r)({
1391
+ content: e.name,
1392
+ fontSize: P.value.style.chart.layout.bars.nameLabels.fontSize,
1393
+ fill: "transparent",
1394
+ x: 0,
1395
+ y: 0,
1396
+ translateY: !0
1397
+ })
1398
+ }, null, 10, mt)) : m("", !0)]))), 128))], 512),
1399
+ g("g", null, [(x(!0), h(d, null, C(G.value, (e, t) => (x(), h("g", {
1400
+ key: `vislab_${e.id}`,
1401
+ class: "vue-ui-horizontal-bar-child-label"
1402
+ }, [(e.isChild || !e.hasChildren) && P.value.style.chart.layout.bars.nameLabels.show ? (x(), h("text", {
1403
+ key: 0,
1404
+ class: v({ "vue-data-ui-transition": E(F) }),
1405
+ "text-anchor": "end",
1406
+ transform: `translate(${X.value.left + P.value.style.chart.layout.bars.nameLabels.offsetX - 6}, ${X.value.top + (z.value + J.value) * t + J.value / 2 + P.value.style.chart.layout.bars.nameLabels.fontSize / 3 + q.value[t] * K.value})`,
1407
+ "font-size": P.value.style.chart.layout.bars.nameLabels.fontSize,
1408
+ fill: P.value.style.chart.layout.bars.nameLabels.color,
1409
+ "font-weight": P.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
1410
+ innerHTML: E(r)({
1411
+ content: e.name,
1412
+ fontSize: P.value.style.chart.layout.bars.nameLabels.fontSize,
1413
+ fill: P.value.style.chart.layout.bars.nameLabels.color,
1414
+ x: 0,
1415
+ y: 0,
1416
+ translateY: !0
1417
+ })
1418
+ }, null, 10, ht)) : m("", !0)]))), 128))]),
1419
+ g("g", null, [(x(!0), h(d, null, C(G.value, (e, t) => (x(), h("g", {
1420
+ key: `sdl_${e.id}`,
1421
+ class: "vue-ui-horizontal-bar-child-label"
1422
+ }, [g("text", {
1423
+ class: v({ "vue-data-ui-transition": E(F) }),
1424
+ transform: `translate(${or.value ? X.value.left + X.value.width / 2 + (e.sign === 1 ? -12 : 12) + (e.sign === 1 ? -P.value.style.chart.layout.bars.dataLabels.offsetX : P.value.style.chart.layout.bars.dataLabels.offsetX) : Math.min(cr(e.value) + 3 + P.value.style.chart.layout.bars.dataLabels.offsetX, X.value.right - 2)},${X.value.top + (z.value + J.value) * t + J.value / 2 + q.value[t] * K.value + P.value.style.chart.layout.bars.dataLabels.fontSize / 3})`,
1425
+ "text-anchor": !or.value || e.sign === -1 ? "start" : "end",
1426
+ "font-size": P.value.style.chart.layout.bars.dataLabels.fontSize,
1427
+ fill: P.value.style.chart.layout.bars.dataLabels.color,
1428
+ "font-weight": P.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
1429
+ }, T(yr(e.value, e, t, e.sign)), 11, gt)]))), 128))]),
1430
+ (x(!0), h(d, null, C(G.value, (e, t) => (x(), h("g", null, [g("rect", {
1431
+ x: 0,
1432
+ y: X.value.top + (z.value + J.value) * t - z.value / 2 + q.value[t] * K.value,
1433
+ width: L.value,
1434
+ height: J.value + z.value <= 0 ? 1e-4 : J.value + z.value,
1435
+ fill: pr.value === e.id ? E(i)(P.value.style.chart.layout.highlighter.color, P.value.style.chart.layout.highlighter.opacity) : "transparent",
1436
+ onMouseenter: (n) => _r(e, t, "pointer"),
1437
+ onMouseleave: (n) => gr({
1438
+ datapoint: e,
1439
+ seriesIndex: t
1440
+ }),
1441
+ onClick: (n) => hr({
1442
+ datapoint: e,
1443
+ seriesIndex: t
1444
+ })
1445
+ }, null, 40, _t)]))), 256)),
1446
+ w(e.$slots, "svg", { svg: {
1447
+ ...Y.value,
1448
+ drawingArea: X.value,
1449
+ isPrintingImg: E(An) || E(jn) || E(Rr),
1450
+ isPrintingSvg: E(zr)
1451
+ } }, void 0, !0)
1452
+ ], 512)], 46, nt)), e.$slots.hint ? (x(), h("div", vt, [w(e.$slots, "hint", y(_({
1453
+ hint: P.value.a11y.translations.keyboardNavigation,
1454
+ isVisible: Wr.value
1455
+ })), void 0, !0)])) : m("", !0)]),
1456
+ e.$slots.watermark ? (x(), h("div", yt, [w(e.$slots, "watermark", y(_({ isPrinting: E(An) || E(jn) || E(Rr) || E(zr) })), void 0, !0)])) : m("", !0),
1457
+ P.value.style.chart.legend.show && P.value.style.chart.legend.position === "bottom" ? (x(), h("div", {
1458
+ key: 7,
1459
+ ref_key: "chartLegend",
1460
+ ref: tn
1461
+ }, [(x(), p(Fe, {
1462
+ key: `legend_bottom_${on.value}`,
1463
+ legendSet: U.value,
1464
+ config: Wn.value,
1465
+ isCursorPointer: I.value,
1466
+ onClickMarker: t[1] ||= ({ legend: e }) => tr(e.id)
1467
+ }, Le({
1468
+ item: D(({ legend: e, index: t }) => [g("div", {
1469
+ onClick: (t) => tr(e.id),
1470
+ style: b(`opacity:${j.value.includes(e.id) ? .5 : 1}`)
1471
+ }, T(vr({
1472
+ legend: e,
1473
+ index: t
1474
+ })), 13, bt)]),
1475
+ legendToggle: D(() => [U.value.length > 2 && P.value.style.chart.legend.selectAllToggle.show && !E(Sn) ? (x(), p(Ae, {
1476
+ key: 0,
1477
+ backgroundColor: P.value.style.chart.legend.selectAllToggle.backgroundColor,
1478
+ color: P.value.style.chart.legend.selectAllToggle.color,
1479
+ fontSize: P.value.style.chart.legend.fontSize,
1480
+ checked: j.value.length > 0,
1481
+ isCursorPointer: I.value,
1482
+ onToggle: er
1483
+ }, null, 8, [
1484
+ "backgroundColor",
1485
+ "color",
1486
+ "fontSize",
1487
+ "checked",
1488
+ "isCursorPointer"
1489
+ ])) : m("", !0)]),
1490
+ _: 2
1491
+ }, [e.$slots.pattern ? {
1492
+ name: "legend-pattern",
1493
+ fn: D(({ legend: e, index: t }) => [ze(we, {
1494
+ shape: e.shape,
1495
+ radius: 30,
1496
+ stroke: "none",
1497
+ plot: {
1498
+ x: 30,
1499
+ y: 30
1500
+ },
1501
+ fill: `url(#pattern_${k.value}_${t})`
1502
+ }, null, 8, ["shape", "fill"])]),
1503
+ key: "0"
1504
+ } : void 0]), 1032, [
1505
+ "legendSet",
1506
+ "config",
1507
+ "isCursorPointer"
1508
+ ]))], 512)) : m("", !0),
1509
+ w(e.$slots, "legend", { legend: U.value }, void 0, !0),
1510
+ e.$slots.source ? (x(), h("div", {
1511
+ key: 8,
1512
+ ref_key: "source",
1513
+ ref: nn,
1514
+ dir: "auto"
1515
+ }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
1516
+ ze(E(zt), {
1517
+ teleportTo: P.value.style.chart.tooltip.teleportTo,
1518
+ show: H.value.showTooltip && Xt.value && j.value.length < O.dataset.length,
1519
+ backgroundColor: P.value.style.chart.tooltip.backgroundColor,
1520
+ color: P.value.style.chart.tooltip.color,
1521
+ borderRadius: P.value.style.chart.tooltip.borderRadius,
1522
+ borderColor: P.value.style.chart.tooltip.borderColor,
1523
+ borderWidth: P.value.style.chart.tooltip.borderWidth,
1524
+ fontSize: P.value.style.chart.tooltip.fontSize,
1525
+ backgroundOpacity: P.value.style.chart.tooltip.backgroundOpacity,
1526
+ position: P.value.style.chart.tooltip.position,
1527
+ offsetX: P.value.style.chart.tooltip.offsetX,
1528
+ offsetY: P.value.style.chart.tooltip.offsetY,
1529
+ parent: A.value,
1530
+ content: Zt.value,
1531
+ isFullscreen: xr.value,
1532
+ isCustom: P.value.style.chart.tooltip.customFormat && typeof P.value.style.chart.tooltip.customFormat == "function",
1533
+ smooth: P.value.style.chart.tooltip.smooth,
1534
+ backdropFilter: P.value.style.chart.tooltip.backdropFilter,
1535
+ smoothForce: P.value.style.chart.tooltip.smoothForce,
1536
+ smoothSnapThreshold: P.value.style.chart.tooltip.smoothSnapThreshold,
1537
+ isA11yMode: vn.value === "keyboard",
1538
+ a11yPosition: _n.value
1539
+ }, {
1540
+ "tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(_({ ...mr.value })), void 0, !0)]),
1541
+ tooltip: D(() => [w(e.$slots, "tooltip", y(_({ ...mr.value })), void 0, !0)]),
1542
+ "tooltip-after": D(() => [w(e.$slots, "tooltip-after", y(_({ ...mr.value })), void 0, !0)]),
1543
+ _: 3
1544
+ }, 8, [
1545
+ "teleportTo",
1546
+ "show",
1547
+ "backgroundColor",
1548
+ "color",
1549
+ "borderRadius",
1550
+ "borderColor",
1551
+ "borderWidth",
1552
+ "fontSize",
1553
+ "backgroundOpacity",
1554
+ "position",
1555
+ "offsetX",
1556
+ "offsetY",
1557
+ "parent",
1558
+ "content",
1559
+ "isFullscreen",
1560
+ "isCustom",
1561
+ "smooth",
1562
+ "backdropFilter",
1563
+ "smoothForce",
1564
+ "smoothSnapThreshold",
1565
+ "isA11yMode",
1566
+ "a11yPosition"
1567
+ ]),
1568
+ Yt.value && P.value.userOptions.buttons.table ? (x(), p(Ge(Ar.value.component), Ve({ key: 9 }, Ar.value.props, {
1569
+ ref_key: "tableUnit",
1570
+ ref: cn,
1571
+ onClose: Mr
1572
+ }), Le({
1573
+ content: D(() => [g("div", {
1574
+ ref_key: "tableContainer",
1575
+ ref: In,
1576
+ class: "vue-ui-vertical-bar-table atom-data-table",
1577
+ style: b(`${P.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
1578
+ }, [g("div", xt, [P.value.table.useDialog ? m("", !0) : (x(), h("div", {
1579
+ key: 0,
1580
+ role: "button",
1581
+ tabindex: "0",
1582
+ 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:${I.value ? "pointer" : "default"}; background:${P.value.table.th.backgroundColor};`),
1583
+ onClick: Mr,
1584
+ onKeypress: Xe(Mr, ["enter"])
1585
+ }, [ze(E(Bt), {
1586
+ name: "close",
1587
+ stroke: P.value.table.th.color,
1588
+ "stroke-width": 2
1589
+ }, null, 8, ["stroke"])], 36)), g("div", {
1590
+ style: {
1591
+ width: "100%",
1592
+ "container-type": "inline-size"
1593
+ },
1594
+ class: v({ "vue-ui-responsive": E(jr) })
1595
+ }, [g("table", St, [
1596
+ P.value.table.useDialog ? m("", !0) : (x(), h("caption", {
1597
+ key: 0,
1598
+ style: b({
1599
+ backgroundColor: P.value.table.th.backgroundColor,
1600
+ color: P.value.table.th.color,
1601
+ outline: P.value.table.th.outline
1602
+ }),
1603
+ class: "vue-ui-data-table__caption"
1604
+ }, [Re(T(P.value.style.chart.title.text) + " ", 1), P.value.style.chart.title.subtitle.text ? (x(), h("span", Ct, T(P.value.style.chart.title.subtitle.text), 1)) : m("", !0)], 4)),
1605
+ g("thead", null, [g("tr", {
1606
+ role: "row",
1607
+ style: b(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color}`)
1608
+ }, [(x(!0), h(d, null, C($.value.head, (e) => (x(), h("th", { style: b(`outline:${P.value.table.th.outline}`) }, [g("div", wt, T(e), 1)], 4))), 256))], 4), g("tr", null, [
1609
+ g("th", { style: b(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline}`) }, null, 4),
1610
+ g("th", { style: b(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`) }, " ∑ " + T(P.value.table.td.prefix) + T(isNaN(Z.value) ? "" : Z.value.toFixed(P.value.table.td.roundingValue)) + T(P.value.table.td.suffix), 5),
1611
+ g("th", { style: b(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`) }, " 100% ", 4),
1612
+ g("th", { style: b(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline}`) }, null, 4),
1613
+ g("th", { style: b(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline}`) }, null, 4),
1614
+ g("th", { style: b(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline}`) }, null, 4),
1615
+ g("th", { style: b(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline}`) }, null, 4)
1616
+ ])]),
1617
+ g("tbody", null, [(x(!0), h(d, null, C($.value.body, (e, t) => (x(), h("tr", {
1618
+ class: v({
1619
+ "vue-ui-data-table__tbody__row": !0,
1620
+ "vue-ui-data-table__tbody__row-even": t % 2 == 0,
1621
+ "vue-ui-data-table__tbody__row-odd": t % 2 != 0
1622
+ }),
1623
+ style: b(`background:${P.value.table.td.backgroundColor};color:${P.value.table.td.color}`)
1624
+ }, [
1625
+ g("td", {
1626
+ class: "vue-ui-data-table__tbody__td",
1627
+ style: b(`outline:${P.value.table.td.outline};font-variant-numeric: tabular-nums;`),
1628
+ "data-cell": $.value.head[0] ?? ""
1629
+ }, [g("div", Et, [e.color ? (x(), h("span", {
1630
+ key: 0,
1631
+ style: b(`color:${e.color};margin-right:3px`)
1632
+ }, "⬤", 4)) : m("", !0), g("span", null, T(e.parentName), 1)])], 12, Tt),
1633
+ g("td", {
1634
+ class: "vue-ui-data-table__tbody__td",
1635
+ style: b(`outline:${P.value.table.td.outline}`),
1636
+ "data-cell": $.value.head[1] ?? ""
1637
+ }, [g("div", Ot, T(P.value.table.td.prefix) + T([
1638
+ "",
1639
+ NaN,
1640
+ void 0
1641
+ ].includes(e.parentValue) ? "" : e.parentValue.toFixed(P.value.table.td.roundingValue)) + T(P.value.table.td.suffix), 1)], 12, Dt),
1642
+ g("td", {
1643
+ class: "vue-ui-data-table__tbody__td",
1644
+ style: b(`outline:${P.value.table.td.outline}`),
1645
+ "data-cell": $.value.head[2] ?? ""
1646
+ }, [g("div", At, T([
1647
+ "",
1648
+ NaN,
1649
+ void 0
1650
+ ].includes(e.percentageToTotal) ? "" : `${(e.percentageToTotal * 100).toFixed(P.value.table.td.roundingPercentage)}%`), 1)], 12, kt),
1651
+ g("td", {
1652
+ class: "vue-ui-data-table__tbody__td",
1653
+ style: b(`outline:${P.value.table.td.outline}`),
1654
+ "data-cell": $.value.head[3] ?? ""
1655
+ }, [g("div", Mt, T(e.childName), 1)], 12, jt),
1656
+ g("td", {
1657
+ class: "vue-ui-data-table__tbody__td",
1658
+ style: b(`outline:${P.value.table.td.outline}`),
1659
+ "data-cell": $.value.head[4] ?? ""
1660
+ }, [g("div", Pt, T(P.value.table.td.prefix) + T([
1661
+ "",
1662
+ NaN,
1663
+ void 0
1664
+ ].includes(e.childValue) ? "" : e.childValue.toFixed(P.value.table.td.roundingValue)) + T(P.value.table.td.suffix), 1)], 12, Nt),
1665
+ g("td", {
1666
+ class: "vue-ui-data-table__tbody__td",
1667
+ style: b(`outline:${P.value.table.td.outline}`),
1668
+ "data-cell": $.value.head[5] ?? ""
1669
+ }, [g("div", It, T([
1670
+ "",
1671
+ NaN,
1672
+ void 0
1673
+ ].includes(e.childPercentageToParent) ? "" : `${(e.childPercentageToParent * 100).toFixed(P.value.table.td.roundingPercentage)}%`), 1)], 12, Ft),
1674
+ g("td", {
1675
+ class: "vue-ui-data-table__tbody__td",
1676
+ style: b(`outline:${P.value.table.td.outline}`),
1677
+ "data-cell": $.value.head[6] ?? ""
1678
+ }, [g("div", Rt, T([
1679
+ "",
1680
+ NaN,
1681
+ void 0
1682
+ ].includes(e.childPercentageToTotal) ? "" : `${(e.childPercentageToTotal * 100).toFixed(P.value.table.td.roundingPercentage)}%`), 1)], 12, Lt)
1683
+ ], 6))), 256))])
1684
+ ])], 2)])], 4)]),
1685
+ _: 2
1686
+ }, [P.value.table.useDialog ? {
1687
+ name: "title",
1688
+ fn: D(() => [Re(T(Ar.value.title), 1)]),
1689
+ key: "0"
1690
+ } : void 0, P.value.table.useDialog ? {
1691
+ name: "actions",
1692
+ fn: D(() => [g("button", {
1693
+ tabindex: "0",
1694
+ class: "vue-ui-user-options-button",
1695
+ onClick: t[2] ||= (e) => br(P.value.userOptions.callbacks.csv),
1696
+ style: b({ cursor: I.value ? "pointer" : "default" })
1697
+ }, [ze(E(Bt), {
1698
+ name: "fileCsv",
1699
+ stroke: Ar.value.props.color
1700
+ }, null, 8, ["stroke"])], 4)]),
1701
+ key: "1"
1702
+ } : void 0]), 1040)) : m("", !0),
1703
+ w(e.$slots, "skeleton", {}, () => [E(Sn) ? (x(), p(_e, { key: 0 })) : m("", !0)], !0)
1704
+ ], 46, Qe));
1705
+ }
1706
+ }, [["__scopeId", "data-v-fa0a2454"]]);
1707
+ //#endregion
1708
+ export { Ze as n, zt as t };