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