vue-data-ui 3.22.8 → 3.22.10

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