vue-data-ui 3.25.3 → 3.25.5

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