vue-data-ui 3.23.10 → 3.23.12

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