vue-data-ui 3.20.10 → 3.21.0

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