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