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