vue-data-ui 3.26.4 → 3.27.0

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