vue-data-ui 3.22.7 → 3.22.9

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