vue-data-ui 3.22.8 → 3.22.10

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