vue-data-ui 3.22.8 → 3.22.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-Av7Uxq5V.js} +1 -1
  2. package/dist/BaseIcon-UdRAvP2h.js +483 -0
  3. package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
  4. package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-BY2KLqs6.js} +1 -1
  5. package/dist/{ColorPicker-CK2-h611.js → ColorPicker-DR_ummtM.js} +1 -1
  6. package/dist/{DataTable-D9NvewTT.js → DataTable-BxpTMgfK.js} +1 -1
  7. package/dist/DefGrad-DVBqDjhO.js +48 -0
  8. package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-B6EG_Sga.js} +2 -2
  9. package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-D__dRVRA.js} +1 -1
  10. package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-DsXi7GJ-.js} +2 -2
  11. package/dist/{Slicer-BZ5VnOOS.js → Slicer-CW_XPIKL.js} +359 -354
  12. package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-CTz41lOu.js} +471 -466
  13. package/dist/{UserOptions-16uF1ayB.js → UserOptions-trvJ26nz.js} +1 -1
  14. package/dist/components/vue-ui-3d-bar.js +1 -1
  15. package/dist/components/vue-ui-accordion.js +1 -1
  16. package/dist/components/vue-ui-age-pyramid.js +1 -1
  17. package/dist/components/vue-ui-annotator.js +1 -1
  18. package/dist/components/vue-ui-bullet.js +1 -1
  19. package/dist/components/vue-ui-bump.js +1 -1
  20. package/dist/components/vue-ui-candlestick.js +1 -1
  21. package/dist/components/vue-ui-carousel-table.js +1 -1
  22. package/dist/components/vue-ui-chestnut.js +1 -1
  23. package/dist/components/vue-ui-chord.js +1 -1
  24. package/dist/components/vue-ui-circle-pack.js +1 -1
  25. package/dist/components/vue-ui-cursor.js +1 -1
  26. package/dist/components/vue-ui-dag.js +1 -1
  27. package/dist/components/vue-ui-dashboard.js +1 -1
  28. package/dist/components/vue-ui-digits.js +1 -1
  29. package/dist/components/vue-ui-donut-evolution.js +1 -1
  30. package/dist/components/vue-ui-donut.js +1 -1
  31. package/dist/components/vue-ui-dumbbell.js +1 -1
  32. package/dist/components/vue-ui-flow.js +1 -1
  33. package/dist/components/vue-ui-funnel.js +1 -1
  34. package/dist/components/vue-ui-galaxy.js +1 -1
  35. package/dist/components/vue-ui-gauge.js +1 -1
  36. package/dist/components/vue-ui-geo.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-molecule.js +1 -1
  44. package/dist/components/vue-ui-mood-radar.js +1 -1
  45. package/dist/components/vue-ui-nested-donuts.js +1 -1
  46. package/dist/components/vue-ui-onion.js +1 -1
  47. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  48. package/dist/components/vue-ui-quadrant.js +1 -1
  49. package/dist/components/vue-ui-quick-chart.js +1 -1
  50. package/dist/components/vue-ui-radar.js +1 -1
  51. package/dist/components/vue-ui-rating.js +1 -1
  52. package/dist/components/vue-ui-relation-circle.js +1 -1
  53. package/dist/components/vue-ui-ridgeline.js +1 -1
  54. package/dist/components/vue-ui-rings.js +1 -1
  55. package/dist/components/vue-ui-scatter.js +1 -1
  56. package/dist/components/vue-ui-skeleton.js +1 -1
  57. package/dist/components/vue-ui-smiley.js +1 -1
  58. package/dist/components/vue-ui-spark-trend.js +1 -1
  59. package/dist/components/vue-ui-sparkbar.js +1 -1
  60. package/dist/components/vue-ui-sparkgauge.js +1 -1
  61. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  62. package/dist/components/vue-ui-sparkline.js +1 -1
  63. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  64. package/dist/components/vue-ui-stackbar.js +1 -1
  65. package/dist/components/vue-ui-stackline.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/{package-gp9pYCfN.js → package-ByOT60IK.js} +1 -1
  82. package/dist/{render-common-CLn1VXJ9.js → render-common-D18VrP0h.js} +1 -1
  83. package/dist/ssr/vue-ui-donut.js +1 -1
  84. package/dist/ssr/vue-ui-xy.js +1 -1
  85. package/dist/ssr.js +2 -2
  86. package/dist/style.css +1 -1
  87. package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-ub3fCh6P.js} +67 -67
  88. package/dist/vue-data-ui.js +67 -67
  89. package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
  90. package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-CjAGqEJg.js} +1 -1
  91. package/dist/{vue-ui-age-pyramid-DTAOc7fn.js → vue-ui-age-pyramid-jvQZbF8E.js} +306 -297
  92. package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BIucnT0L.js} +3 -3
  93. package/dist/{vue-ui-bullet-CCLnrOLm.js → vue-ui-bullet-CIATzlsk.js} +1 -1
  94. package/dist/{vue-ui-bump-Rq7efdoe.js → vue-ui-bump-D8MxltQE.js} +2 -2
  95. package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-DULUMU-Q.js} +513 -502
  96. package/dist/{vue-ui-carousel-table-Lx5Zk4dG.js → vue-ui-carousel-table-BSmdexG7.js} +1 -1
  97. package/dist/vue-ui-chestnut-BIh1nQ7q.js +2042 -0
  98. package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-DL1M7cgL.js} +1 -1
  99. package/dist/vue-ui-circle-pack-C1Pgq6si.js +1614 -0
  100. package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-d2uLAKTQ.js} +1 -1
  101. package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CVh9FpZr.js} +2 -2
  102. package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BH0N3ebj.js} +65 -65
  103. package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-R6wi3J-Y.js} +1 -1
  104. package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-BWDeVzLc.js} +1 -1
  105. package/dist/{vue-ui-donut-C3Rt6j-I.js → vue-ui-donut-BoZdciGh.js} +632 -623
  106. package/dist/vue-ui-donut-evolution-CpC9EMro.js +1522 -0
  107. package/dist/{vue-ui-dumbbell-wK7vUB0x.js → vue-ui-dumbbell-DGA5Bfnl.js} +528 -494
  108. package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-CNczKwTh.js} +1 -1
  109. package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
  110. package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-v3cTbUiM.js} +2 -2
  111. package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
  112. package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-BgmLkZZ2.js} +2 -2
  113. package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
  114. package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-dSTh8ah_.js} +2 -2
  115. package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-N8BqMFVU.js} +395 -384
  116. package/dist/{vue-ui-horizontal-bar-D1rCsgqt.js → vue-ui-horizontal-bar-CwiQxYzv.js} +360 -354
  117. package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BKrUk9o8.js} +1 -1
  118. package/dist/{vue-ui-molecule-CExCqZ08.js → vue-ui-molecule--kK1JfnP.js} +295 -289
  119. package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-CpBRHQo_.js} +209 -204
  120. package/dist/{vue-ui-nested-donuts-3TRV8pN-.js → vue-ui-nested-donuts-8Ehwcuns.js} +307 -301
  121. package/dist/{vue-ui-onion-DwKK9DXn.js → vue-ui-onion-Cf6JiYTH.js} +2 -2
  122. package/dist/{vue-ui-parallel-coordinate-plot-DSp_cwU-.js → vue-ui-parallel-coordinate-plot-Blnqp1DB.js} +2 -2
  123. package/dist/{vue-ui-quadrant-ByVg-NBs.js → vue-ui-quadrant-CxU0jiOm.js} +366 -360
  124. package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-BO98uEPl.js} +3 -3
  125. package/dist/{vue-ui-radar-DE-me6OC.js → vue-ui-radar-eH2Qih4_.js} +272 -266
  126. package/dist/{vue-ui-rating-CzD3EQ3G.js → vue-ui-rating-CN-ZiAES.js} +135 -126
  127. package/dist/{vue-ui-relation-circle-L7-dTqet.js → vue-ui-relation-circle-BIcP-aAt.js} +1 -1
  128. package/dist/vue-ui-ridgeline-ChXHzEJw.js +1628 -0
  129. package/dist/{vue-ui-rings-WzWiEo9W.js → vue-ui-rings-J990vNbX.js} +262 -256
  130. package/dist/{vue-ui-scatter-DwrAydha.js → vue-ui-scatter-BeJB0EKg.js} +642 -633
  131. package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-DC2bZ0nk.js} +336 -333
  132. package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-Dyyu1je3.js} +111 -98
  133. package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-CpDX85H3.js} +158 -153
  134. package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
  135. package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-D0Fo3Hts.js} +75 -70
  136. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
  137. package/dist/vue-ui-sparkline-ApivEMBP.js +1560 -0
  138. package/dist/{vue-ui-sparkstackbar-DrmiWFlw.js → vue-ui-sparkstackbar-DsKQJx_n.js} +179 -167
  139. package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-Ds4hXATH.js} +538 -531
  140. package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
  141. package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-C3ZHf4bD.js} +368 -361
  142. package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CNXNXXBU.js} +1 -1
  143. package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-B9JJ4pFF.js} +1 -1
  144. package/dist/{vue-ui-table-Q3brrivC.js → vue-ui-table-uudidrYt.js} +4 -4
  145. package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
  146. package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-5NAWw5BN.js} +91 -86
  147. package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-Caz_g1c5.js} +1 -1
  148. package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-F9upPyOI.js} +458 -453
  149. package/dist/{vue-ui-waffle-Pi9e7Ae7.js → vue-ui-waffle-Bk9AsrPp.js} +296 -290
  150. package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-DD6Q39BA.js} +1 -1
  151. package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-BZLT5svo.js} +2 -2
  152. package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-DbEJN5NA.js} +284 -273
  153. package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-BYMAITk_.js} +1294 -1268
  154. package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Cn9Q8YPr.js} +1 -1
  155. package/dist/{vue-ui-xy-canvas-BfgeE3TW.js → vue-ui-xy-canvas-Dcm2ftwm.js} +5 -5
  156. package/package.json +1 -1
  157. package/dist/BaseIcon-C2qlyHc7.js +0 -502
  158. package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
  159. package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
  160. package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
  161. package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
  162. package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
  163. package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
  164. package/dist/vue-ui-ridgeline-Cp3YP0xe.js +0 -1622
  165. package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
  166. package/dist/vue-ui-sparkhistogram-D02ff7ZI.js +0 -560
  167. package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
  168. package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
  169. package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
@@ -0,0 +1,782 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, Et as n, G as r, Gt as i, J as a, T as ee, Z as te, b as ne, dt as re, i as o, kt as ie, r as ae, t as oe } from "./lib-JqW18y5I.js";
3
+ import { t as se } from "./useConfig-DYM3f6EI.js";
4
+ import { t as ce } from "./usePrinter-CqqHmnBI.js";
5
+ import { t as le } from "./useSvgExport-SVIsDot8.js";
6
+ import { t as ue } from "./useNestedProp-DIuuzG1r.js";
7
+ import { t as de } from "./useThemeCheck-C43Tcqmk.js";
8
+ import { t as fe } from "./img-DnP3eXuv.js";
9
+ import { n as pe } from "./Title-CcNiYzEo.js";
10
+ import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
11
+ import { c as he } from "./canvas-lib-BOP_HS11.js";
12
+ import { t as ge } from "./useResponsive-BfnK0KxU.js";
13
+ import { t as _e } from "./DefGrad-DVBqDjhO.js";
14
+ import { t as ve } from "./useUserOptionState-DK-_1ddE.js";
15
+ import { t as ye } from "./useChartAccessibility-DYqac8yF.js";
16
+ import { t as be } from "./vue_ui_funnel-_Og4EEkO.js";
17
+ import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as xe, createTextVNode as Se, createVNode as Ce, defineAsyncComponent as p, guardReactiveProps as m, mergeProps as h, nextTick as we, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as Te, onMounted as Ee, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as De, shallowRef as Oe, toDisplayString as C, unref as w, useCssVars as ke, watch as Ae, withCtx as T } from "vue";
18
+ //#region src/components/vue-ui-funnel.vue
19
+ var je = /* @__PURE__ */ e({ default: () => We }), Me = ["id"], Ne = ["xmlns", "viewBox"], Pe = ["width", "height"], Fe = ["stroke", "stroke-width"], Ie = ["stroke", "stroke-width"], Le = [
20
+ "x",
21
+ "y",
22
+ "font-size",
23
+ "fill",
24
+ "font-weight"
25
+ ], Re = ["points", "fill"], ze = [
26
+ "stroke",
27
+ "stroke-width",
28
+ "rx"
29
+ ], Be = [
30
+ "x",
31
+ "y",
32
+ "font-size",
33
+ "fill",
34
+ "font-weight"
35
+ ], Ve = [
36
+ "x",
37
+ "y",
38
+ "font-size",
39
+ "fill",
40
+ "font-weight"
41
+ ], He = {
42
+ key: 5,
43
+ class: "vue-data-ui-watermark"
44
+ }, Ue = ["innerHTML"], We = /*#__PURE__*/ me({
45
+ __name: "vue-ui-funnel",
46
+ props: {
47
+ config: {
48
+ type: Object,
49
+ default() {
50
+ return {};
51
+ }
52
+ },
53
+ dataset: {
54
+ type: Array,
55
+ default() {
56
+ return [];
57
+ }
58
+ }
59
+ },
60
+ emits: ["copyAlt"],
61
+ setup(e, { expose: me, emit: je }) {
62
+ ke((e) => ({ v7c53d9b8: wt.value }));
63
+ let We = p(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), Ge = p(() => import("./vue-ui-skeleton-DC2bZ0nk.js").then((e) => e.n)), Ke = p(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), qe = p(() => import("./DataTable-BxpTMgfK.js")), Je = p(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), Ye = p(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), Xe = p(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), Ze = p(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), { vue_ui_funnel: Qe } = se(), { isThemeValid: $e, warnInvalidTheme: et } = de(), E = e, tt = je, D = b(null), O = b(r()), nt = b(0), rt = b(0), it = b(0), at = b(null), ot = b(null), st = b(null), k = Oe(null), A = Oe(null), j = b(!1), M = b(null), ct = b(null), N = b(!1), P = b(!1), F = c(() => !!E.dataset && E.dataset.length);
64
+ Ee(lt);
65
+ function lt() {
66
+ if (ie(E.dataset) ? t({
67
+ componentName: "VueUiFunnel",
68
+ type: "dataset"
69
+ }) : E.dataset.forEach((e, n) => {
70
+ re({
71
+ datasetObject: e,
72
+ requiredAttributes: ["name", "value"]
73
+ }).forEach((e) => {
74
+ F.value = !1, t({
75
+ componentName: "VueUiFunnel",
76
+ type: "datasetSerieAttribute",
77
+ property: e,
78
+ index: n
79
+ });
80
+ });
81
+ }), I.value.responsive) {
82
+ let e = he(() => {
83
+ let { width: e, height: t } = ge({
84
+ chart: D.value,
85
+ title: I.value.style.chart.title.text ? st.value : null,
86
+ source: ot.value,
87
+ noTitle: at.value
88
+ });
89
+ requestAnimationFrame(() => {
90
+ V.value.height = t, V.value.width = e, U.value = yt(), I.value.responsiveProportionalSizing ? (B.value.circles = i({
91
+ relator: Math.min(e, t),
92
+ adjuster: 600,
93
+ source: I.value.style.chart.circles.dataLabels.fontSize,
94
+ threshold: 10,
95
+ fallback: 10
96
+ }), B.value.names = i({
97
+ relator: Math.min(e, t),
98
+ adjuster: 600,
99
+ source: I.value.style.chart.bars.dataLabels.name.fontSize,
100
+ threshold: 10,
101
+ fallback: 10
102
+ }), B.value.values = i({
103
+ relator: Math.min(e, t),
104
+ adjuster: 600,
105
+ source: I.value.style.chart.bars.dataLabels.value.fontSize,
106
+ threshold: 10,
107
+ fallback: 10
108
+ })) : (B.value.circles = I.value.style.chart.circles.dataLabels.fontSize, B.value.names = I.value.style.chart.bars.dataLabels.name.fontSize, B.value.values = I.value.style.chart.bars.dataLabels.value.fontSize);
109
+ });
110
+ });
111
+ k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect()), k.value = new ResizeObserver(e), A.value = D.value.parentNode, k.value.observe(A.value);
112
+ }
113
+ }
114
+ Te(() => {
115
+ k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect());
116
+ });
117
+ function ut() {
118
+ let e = ue({
119
+ userConfig: E.config,
120
+ defaultConfig: Qe
121
+ }), t = e.theme;
122
+ if (!t) return e;
123
+ if (!$e.value(e)) return et(e), e;
124
+ let n = ue({
125
+ userConfig: be[t] || E.config,
126
+ defaultConfig: e
127
+ });
128
+ return ue({
129
+ userConfig: E.config,
130
+ defaultConfig: n
131
+ });
132
+ }
133
+ let I = c({
134
+ get: () => ut(),
135
+ set: (e) => e
136
+ }), dt = c(() => I.value.userOptions.useCursorPointer), { userOptionsVisible: L, setUserOptionsVisibility: ft, keepUserOptionState: pt } = ve({ config: I.value }), { svgRef: R } = ye({ config: I.value.style.chart.title });
137
+ Ae(() => E.config, (e) => {
138
+ I.value = ut(), L.value = !I.value.userOptions.showOnChartHover, lt(), rt.value += 1, it.value += 1, B.value.circles = I.value.style.chart.circles.dataLabels.fontSize, B.value.names = I.value.style.chart.bars.dataLabels.name.fontSize, B.value.values = I.value.style.chart.bars.dataLabels.value.fontSize, z.value.showTable = I.value.table.show;
139
+ }, { deep: !0 });
140
+ let { isPrinting: mt, isImaging: ht, generatePdf: gt, generateImage: _t } = ce({
141
+ elementId: `funnel_${O.value}`,
142
+ fileName: I.value.style.chart.title.text || "vue-ui-funnel",
143
+ options: I.value.userOptions.print
144
+ }), vt = c(() => I.value.userOptions.show && !I.value.style.chart.title.text), z = b({ showTable: I.value.table.show }), B = b({
145
+ circles: I.value.style.chart.circles.dataLabels.fontSize,
146
+ names: I.value.style.chart.bars.dataLabels.name.fontSize,
147
+ values: I.value.style.chart.bars.dataLabels.value.fontSize
148
+ }), V = c({
149
+ get: () => ({
150
+ height: I.value.style.chart.height,
151
+ width: I.value.style.chart.width
152
+ }),
153
+ set: (e) => e
154
+ }), H = c(() => F.value ? E.dataset.map((e, t) => ({
155
+ ...e,
156
+ color: e.color ? ne(e.color) : n(I.value.style.chart.bars.defaultColor, t / E.dataset.length)
157
+ })) : []);
158
+ setTimeout(() => {
159
+ j.value = !0;
160
+ }, H.value.length * 150);
161
+ function yt() {
162
+ let e = I.value.style.chart.padding.left, t = I.value.style.chart.padding.top;
163
+ return {
164
+ left: e,
165
+ top: t,
166
+ right: V.value.width - I.value.style.chart.padding.right,
167
+ bottom: V.value.height - I.value.style.chart.padding.bottom,
168
+ width: V.value.width - e - I.value.style.chart.padding.right,
169
+ height: V.value.height - t - I.value.style.chart.padding.bottom
170
+ };
171
+ }
172
+ let U = b(yt()), W = c(() => U.value.height / E.dataset.length), G = c(() => W.value * I.value.style.chart.bars.gapRatio), bt = c(() => U.value.width * I.value.style.chart.barCircleSpacingRatio), K = c(() => H.value.map((e, t) => {
173
+ let n = W.value - G.value, r = U.value.top + G.value / 2 * t + (W.value - G.value / 2) * t + G.value / 2, i = e.value / H.value[0].value, a = (U.value.width - n - bt.value) * (e.value / H.value[0].value);
174
+ return {
175
+ ...e,
176
+ cx: U.value.left + n / 2,
177
+ cy: r + n / 2,
178
+ datapointIndex: t,
179
+ fill: e.color,
180
+ height: Math.max(n, 0),
181
+ proportion: i,
182
+ r: Math.max(n / 2, 0),
183
+ width: Math.max(a, 0),
184
+ x: U.value.left + n + bt.value,
185
+ y: r
186
+ };
187
+ })), xt = c(() => {
188
+ let e = K.value.map((e) => `${e.x + e.width},${e.y + (W.value - G.value) / 2}`);
189
+ return `${K.value[0].x},${K.value[0].y + (W.value - G.value) / 2} ${e.toString()} ${K.value.at(-1).x},${K.value.at(-1).y + (W.value - G.value) / 2}`;
190
+ }), St = c(() => ({
191
+ x1: K.value[0].cx,
192
+ y1: K.value[0].cy,
193
+ x2: K.value.at(-1).cx,
194
+ y2: K.value.at(-1).cy
195
+ })), q = b(!1);
196
+ function Ct(e) {
197
+ q.value = e, nt.value += 1;
198
+ }
199
+ let wt = c(() => `${H.value.length * 150}ms`), J = b(!1);
200
+ function Y() {
201
+ J.value = !J.value;
202
+ }
203
+ function Tt() {
204
+ z.value.showTable = !z.value.showTable;
205
+ }
206
+ let X = c(() => ({
207
+ head: H.value.map((e) => ({
208
+ name: e.name,
209
+ color: e.color
210
+ })),
211
+ body: H.value.map((e) => e.value)
212
+ })), Z = c(() => {
213
+ let e = [
214
+ I.value.table.columnNames.series,
215
+ I.value.table.columnNames.value,
216
+ I.value.table.columnNames.percentage
217
+ ], t = X.value.head.map((e, t) => {
218
+ let n = o(I.value.style.chart.bars.dataLabels.value.formatter, X.value.body[t], a({
219
+ p: I.value.style.chart.bars.dataLabels.value.prefix,
220
+ v: X.value.body[t],
221
+ s: I.value.style.chart.bars.dataLabels.value.suffix,
222
+ r: I.value.table.td.roundingValue
223
+ }), { datapoint: K.value[t] }), r = o(I.value.style.chart.circles.dataLabels.formatter, K.value[t].proportion * 100, a({
224
+ v: K.value[t].proportion * 100,
225
+ s: "%",
226
+ r: I.value.table.td.roundingPercentage
227
+ }), { datapoint: K.value[t] });
228
+ return [
229
+ {
230
+ color: e.color,
231
+ name: e.name
232
+ },
233
+ n,
234
+ r
235
+ ];
236
+ }), n = {
237
+ th: {
238
+ backgroundColor: I.value.table.th.backgroundColor,
239
+ color: I.value.table.th.color,
240
+ outline: I.value.table.th.outline
241
+ },
242
+ td: {
243
+ backgroundColor: I.value.table.td.backgroundColor,
244
+ color: I.value.table.td.color,
245
+ outline: I.value.table.td.outline
246
+ },
247
+ breakpoint: I.value.table.responsiveBreakpoint
248
+ };
249
+ return {
250
+ colNames: [
251
+ I.value.table.columnNames.series,
252
+ I.value.table.columnNames.value,
253
+ I.value.table.columnNames.percentage
254
+ ],
255
+ head: e,
256
+ body: t,
257
+ config: n
258
+ };
259
+ });
260
+ function Q(e = null) {
261
+ we(() => {
262
+ let t = X.value.head.map((e, t) => [
263
+ [e.name],
264
+ [X.value.body[t]],
265
+ [K.value[t].proportion * 100]
266
+ ]), n = ee([
267
+ [I.value.style.chart.title.text],
268
+ [I.value.style.chart.title.subtitle.text],
269
+ [
270
+ [I.value.table.columnNames.series],
271
+ [I.value.table.columnNames.value],
272
+ ["%"]
273
+ ]
274
+ ].concat(t));
275
+ e ? e(n) : te({
276
+ csvContent: n,
277
+ title: I.value.style.chart.title.text || "vue-ui-funnel"
278
+ });
279
+ });
280
+ }
281
+ function Et() {
282
+ return H.value;
283
+ }
284
+ async function Dt({ scale: e = 2 } = {}) {
285
+ if (!D.value) return;
286
+ let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await fe({
287
+ domElement: D.value,
288
+ base64: !0,
289
+ img: !0,
290
+ scale: e
291
+ });
292
+ return {
293
+ imageUri: i,
294
+ base64: a,
295
+ title: I.value.style.chart.title.text,
296
+ width: t,
297
+ height: n,
298
+ aspectRatio: r
299
+ };
300
+ }
301
+ let $ = c(() => {
302
+ let e = I.value.table.useDialog && !I.value.table.show, t = z.value.showTable;
303
+ return {
304
+ component: e ? Ze : Ke,
305
+ title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
306
+ props: e ? {
307
+ backgroundColor: I.value.table.th.backgroundColor,
308
+ color: I.value.table.th.color,
309
+ headerColor: I.value.table.th.color,
310
+ headerBg: I.value.table.th.backgroundColor,
311
+ isFullscreen: q.value,
312
+ fullscreenParent: D.value,
313
+ forcedWidth: Math.min(800, window.innerWidth * .8)
314
+ } : {
315
+ hideDetails: !0,
316
+ config: {
317
+ open: t,
318
+ maxHeight: 1e4,
319
+ body: {
320
+ backgroundColor: I.value.style.chart.backgroundColor,
321
+ color: I.value.style.chart.color
322
+ },
323
+ head: {
324
+ backgroundColor: I.value.style.chart.backgroundColor,
325
+ color: I.value.style.chart.color
326
+ }
327
+ }
328
+ }
329
+ };
330
+ });
331
+ Ae(() => z.value.showTable, (e) => {
332
+ I.value.table.show || (e && I.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
333
+ });
334
+ function Ot() {
335
+ z.value.showTable = !1, ct.value && ct.value.setTableIconState(!1);
336
+ }
337
+ let kt = c(() => I.value.style.chart.backgroundColor), { exportSvg: At, getSvg: jt } = le({
338
+ svg: R,
339
+ title: c(() => I.value.style.chart.title),
340
+ backgroundColor: kt
341
+ });
342
+ async function Mt({ isCb: e }) {
343
+ P.value = !0, await we();
344
+ try {
345
+ if (e) {
346
+ let { blob: e, url: t, text: n, dataUrl: r } = await jt();
347
+ await Promise.resolve(I.value.userOptions.callbacks.svg({
348
+ blob: e,
349
+ url: t,
350
+ text: n,
351
+ dataUrl: r
352
+ }));
353
+ } else await Promise.resolve(At());
354
+ } finally {
355
+ P.value = !1;
356
+ }
357
+ }
358
+ function Nt(e) {
359
+ if (e?.stage === "start") {
360
+ N.value = !0;
361
+ return;
362
+ }
363
+ if (e?.stage === "end") {
364
+ N.value = !1;
365
+ return;
366
+ }
367
+ _t();
368
+ }
369
+ async function Pt() {
370
+ if (tt("copyAlt", {
371
+ config: I.value,
372
+ dataset: H.value
373
+ }), !I.value.userOptions.callbacks.altCopy) {
374
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
375
+ return;
376
+ }
377
+ await Promise.resolve(I.value.userOptions.callbacks.altCopy({
378
+ config: I.value,
379
+ dataset: H.value
380
+ }));
381
+ }
382
+ return me({
383
+ getData: Et,
384
+ getImage: Dt,
385
+ generatePdf: gt,
386
+ generateCsv: Q,
387
+ generateImage: _t,
388
+ generateSvg: Mt,
389
+ toggleTable: Tt,
390
+ toggleAnnotator: Y,
391
+ toggleFullscreen: Ct,
392
+ copyAlt: Pt
393
+ }), (e, t) => (y(), d("div", {
394
+ ref_key: "funnelChart",
395
+ ref: D,
396
+ class: g(`vue-data-ui-component vue-ui-funnel ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
397
+ style: v(`font-family:${I.value.style.fontFamily};width:100%; ${I.value.responsive ? "height:100%;" : ""} text-align:center;background:${I.value.style.chart.backgroundColor}`),
398
+ id: `funnel_${O.value}`,
399
+ onMouseenter: t[1] ||= () => w(ft)(!0),
400
+ onMouseleave: t[2] ||= () => w(ft)(!1)
401
+ }, [
402
+ I.value.userOptions.buttons.annotator ? (y(), l(w(Ye), {
403
+ key: 0,
404
+ svgRef: w(R),
405
+ backgroundColor: I.value.style.chart.backgroundColor,
406
+ color: I.value.style.chart.color,
407
+ active: J.value,
408
+ isCursorPointer: dt.value,
409
+ onClose: Y
410
+ }, {
411
+ "annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
412
+ "annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(m({ color: t })), void 0, !0)]),
413
+ "annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", _(m({ mode: t })), void 0, !0)]),
414
+ "annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", _(m({ disabled: t })), void 0, !0)]),
415
+ "annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", _(m({ disabled: t })), void 0, !0)]),
416
+ "annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", _(m({ disabled: t })), void 0, !0)]),
417
+ _: 3
418
+ }, 8, [
419
+ "svgRef",
420
+ "backgroundColor",
421
+ "color",
422
+ "active",
423
+ "isCursorPointer"
424
+ ])) : u("", !0),
425
+ vt.value ? (y(), d("div", {
426
+ key: 1,
427
+ ref_key: "noTitle",
428
+ ref: at,
429
+ class: "vue-data-ui-no-title-space",
430
+ style: "height:36px; width: 100%;background:transparent"
431
+ }, null, 512)) : u("", !0),
432
+ I.value.style.chart.title.text ? (y(), d("div", {
433
+ key: 2,
434
+ ref_key: "chartTitle",
435
+ ref: st,
436
+ style: "width:100%;background:transparent;padding-bottom:24px"
437
+ }, [(y(), l(pe, {
438
+ key: `title_${rt.value}`,
439
+ config: {
440
+ title: {
441
+ cy: "funnel-div-title",
442
+ ...I.value.style.chart.title
443
+ },
444
+ subtitle: {
445
+ cy: "funnel-div-subtitle",
446
+ ...I.value.style.chart.title.subtitle
447
+ }
448
+ }
449
+ }, null, 8, ["config"]))], 512)) : u("", !0),
450
+ I.value.userOptions.show && F.value && (w(pt) || w(L)) ? (y(), l(w(Je), {
451
+ ref_key: "userOptionsRef",
452
+ ref: ct,
453
+ key: `user_option_${nt.value}`,
454
+ backgroundColor: I.value.style.chart.backgroundColor,
455
+ color: I.value.style.chart.color,
456
+ isPrinting: w(mt),
457
+ isImaging: w(ht),
458
+ uid: O.value,
459
+ hasTooltip: !1,
460
+ hasPdf: I.value.userOptions.buttons.pdf,
461
+ hasImg: I.value.userOptions.buttons.img,
462
+ hasSvg: I.value.userOptions.buttons.svg,
463
+ hasXls: I.value.userOptions.buttons.csv,
464
+ hasTable: I.value.userOptions.buttons.table,
465
+ hasLabel: !1,
466
+ hasFullscreen: I.value.userOptions.buttons.fullscreen,
467
+ hasAltCopy: I.value.userOptions.buttons.altCopy,
468
+ isFullscreen: q.value,
469
+ chartElement: D.value,
470
+ position: I.value.userOptions.position,
471
+ titles: { ...I.value.userOptions.buttonTitles },
472
+ hasAnnotator: I.value.userOptions.buttons.annotator,
473
+ isAnnotation: J.value,
474
+ callbacks: I.value.userOptions.callbacks,
475
+ printScale: I.value.userOptions.print.scale,
476
+ tableDialog: I.value.table.useDialog,
477
+ isCursorPointer: dt.value,
478
+ onToggleAnnotator: Y,
479
+ onToggleFullscreen: Ct,
480
+ onGeneratePdf: w(gt),
481
+ onGenerateImage: Nt,
482
+ onGenerateSvg: Mt,
483
+ onToggleTable: Tt,
484
+ onGenerateCsv: Q,
485
+ onCopyAlt: Pt,
486
+ style: v({ visibility: w(pt) ? w(L) ? "visible" : "hidden" : "visible" })
487
+ }, xe({ _: 2 }, [
488
+ e.$slots.menuIcon ? {
489
+ name: "menuIcon",
490
+ fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", _(m({
491
+ isOpen: t,
492
+ color: n
493
+ })), void 0, !0)]),
494
+ key: "0"
495
+ } : void 0,
496
+ e.$slots.optionPdf ? {
497
+ name: "optionPdf",
498
+ fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
499
+ key: "1"
500
+ } : void 0,
501
+ e.$slots.optionCsv ? {
502
+ name: "optionCsv",
503
+ fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
504
+ key: "2"
505
+ } : void 0,
506
+ e.$slots.optionImg ? {
507
+ name: "optionImg",
508
+ fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
509
+ key: "3"
510
+ } : void 0,
511
+ e.$slots.optionSvg ? {
512
+ name: "optionSvg",
513
+ fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
514
+ key: "4"
515
+ } : void 0,
516
+ e.$slots.optionTable ? {
517
+ name: "optionTable",
518
+ fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
519
+ key: "5"
520
+ } : void 0,
521
+ e.$slots.optionFullscreen ? {
522
+ name: "optionFullscreen",
523
+ fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", _(m({
524
+ toggleFullscreen: t,
525
+ isFullscreen: n
526
+ })), void 0, !0)]),
527
+ key: "6"
528
+ } : void 0,
529
+ e.$slots.optionAnnotator ? {
530
+ name: "optionAnnotator",
531
+ fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", _(m({
532
+ toggleAnnotator: t,
533
+ isAnnotator: n
534
+ })), void 0, !0)]),
535
+ key: "7"
536
+ } : void 0,
537
+ e.$slots.optionAltCopy ? {
538
+ name: "optionAltCopy",
539
+ fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", _(m({ altCopy: t })), void 0, !0)]),
540
+ key: "8"
541
+ } : void 0,
542
+ e.$slots["custom-menu-before"] ? {
543
+ name: "custom-menu-before",
544
+ fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
545
+ key: "9"
546
+ } : void 0,
547
+ e.$slots["custom-menu-after"] ? {
548
+ name: "custom-menu-after",
549
+ fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
550
+ key: "10"
551
+ } : void 0
552
+ ]), 1032, [
553
+ "backgroundColor",
554
+ "color",
555
+ "isPrinting",
556
+ "isImaging",
557
+ "uid",
558
+ "hasPdf",
559
+ "hasImg",
560
+ "hasSvg",
561
+ "hasXls",
562
+ "hasTable",
563
+ "hasFullscreen",
564
+ "hasAltCopy",
565
+ "isFullscreen",
566
+ "chartElement",
567
+ "position",
568
+ "titles",
569
+ "hasAnnotator",
570
+ "isAnnotation",
571
+ "callbacks",
572
+ "printScale",
573
+ "tableDialog",
574
+ "isCursorPointer",
575
+ "onGeneratePdf",
576
+ "style"
577
+ ])) : u("", !0),
578
+ F.value ? (y(), d("svg", {
579
+ key: 4,
580
+ ref_key: "svgRef",
581
+ ref: R,
582
+ xmlns: w(oe),
583
+ class: g({
584
+ "vue-data-ui-fullscreen--on": q.value,
585
+ "vue-data-ui-fulscreen--off": !q.value
586
+ }),
587
+ viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
588
+ style: v(`max-width:100%; overflow: visible; background:transparent;color:${I.value.style.chart.color}`)
589
+ }, [
590
+ Ce(w(Xe)),
591
+ e.$slots["chart-background"] ? (y(), d("foreignObject", {
592
+ key: 0,
593
+ x: 0,
594
+ y: 0,
595
+ width: V.value.width <= 0 ? 10 : V.value.width,
596
+ height: V.value.height <= 0 ? 10 : V.value.height,
597
+ style: { pointerEvents: "none" }
598
+ }, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, Pe)) : u("", !0),
599
+ f("defs", null, [Ce(_e, {
600
+ t: "linear",
601
+ id: `funnel_area_${O.value}`,
602
+ x1: "0%",
603
+ x2: "100%",
604
+ y1: "0%",
605
+ y2: "0%",
606
+ stops: [
607
+ [
608
+ "0%",
609
+ I.value.style.chart.backgroundColor,
610
+ 0
611
+ ],
612
+ [
613
+ "20%",
614
+ I.value.style.chart.area.color,
615
+ 1
616
+ ],
617
+ [
618
+ "100%",
619
+ I.value.style.chart.area.color,
620
+ 1
621
+ ]
622
+ ]
623
+ }, null, 8, ["id", "stops"])]),
624
+ I.value.style.chart.circleLinks.show ? (y(), d("line", h({ key: 1 }, St.value, {
625
+ stroke: I.value.style.chart.circleLinks.color,
626
+ "stroke-width": 12 * I.value.style.chart.circleLinks.widthRatio,
627
+ "stroke-linecap": "round",
628
+ class: { animated: I.value.useCssAnimation },
629
+ style: {
630
+ strokeDasharray: I.value.useCssAnimation ? U.value.height : 0,
631
+ strokeDashoffset: I.value.useCssAnimation ? U.value.height : 0
632
+ }
633
+ }), null, 16, Fe)) : u("", !0),
634
+ (y(!0), d(s, null, x(K.value, ({ cx: e, cy: t, r: n, fill: r }, i) => (y(), d("circle", h({ ref_for: !0 }, {
635
+ cx: e,
636
+ cy: t,
637
+ r: n,
638
+ fill: r
639
+ }, {
640
+ stroke: I.value.style.chart.circles.stroke,
641
+ "stroke-width": I.value.style.chart.circles.strokeWidth,
642
+ class: { animated: I.value.useCssAnimation && !j.value },
643
+ style: { animationDelay: `${150 * i}ms` }
644
+ }), null, 16, Ie))), 256)),
645
+ (y(!0), d(s, null, x(K.value, (e, t) => (y(), d("text", {
646
+ x: e.cx,
647
+ y: e.cy + B.value.circles / 3 + I.value.style.chart.circles.dataLabels.offsetY,
648
+ "text-anchor": "middle",
649
+ "font-size": B.value.circles,
650
+ fill: I.value.style.chart.circles.dataLabels.adaptColorToBackground ? w(ae)(e.color) : I.value.style.chart.circles.dataLabels.color,
651
+ "font-weight": I.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
652
+ class: g({ animated: I.value.useCssAnimation && !j.value }),
653
+ style: v({ animationDelay: `${150 * t}ms` })
654
+ }, C(w(o)(I.value.style.chart.circles.dataLabels.formatter, e.proportion * 100, w(a)({
655
+ v: e.proportion * 100,
656
+ s: "%",
657
+ r: I.value.style.chart.circles.dataLabels.rounding
658
+ }), { datapoint: e })), 15, Le))), 256)),
659
+ I.value.style.chart.area.show ? (y(), d("polygon", {
660
+ key: 2,
661
+ points: xt.value,
662
+ fill: `url(#funnel_area_${O.value})`,
663
+ class: g({ animated: I.value.useCssAnimation && !j.value }),
664
+ style: v({ transition: I.value.useCssAnimation ? `all ${150 * H.value.length}ms ease-in` : "none" })
665
+ }, null, 14, Re)) : u("", !0),
666
+ (y(!0), d(s, null, x(K.value, ({ x: e, y: t, height: n, width: r, fill: i }, a) => (y(), d("rect", h({ ref_for: !0 }, {
667
+ x: e,
668
+ y: t,
669
+ height: n,
670
+ width: r,
671
+ fill: i
672
+ }, {
673
+ stroke: I.value.style.chart.bars.stroke,
674
+ "stroke-width": I.value.style.chart.bars.strokeWidth,
675
+ rx: I.value.style.chart.bars.borderRadius,
676
+ class: { animated: I.value.useCssAnimation && !j.value },
677
+ style: { animationDelay: `${150 * a}ms` }
678
+ }), null, 16, ze))), 256)),
679
+ (y(!0), d(s, null, x(K.value, (e, t) => (y(), d("g", null, [f("text", {
680
+ x: e.x + e.width + I.value.style.chart.bars.dataLabels.name.offsetX + 12,
681
+ y: e.cy - B.value.names / 2 + I.value.style.chart.bars.dataLabels.name.offsetY,
682
+ "text-anchor": "start",
683
+ "font-size": B.value.names,
684
+ fill: I.value.style.chart.bars.dataLabels.name.color,
685
+ "font-weight": I.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
686
+ class: g({ animated: I.value.useCssAnimation && !j.value }),
687
+ style: v({ animationDelay: `${150 * t}ms` })
688
+ }, C(e.name), 15, Be), f("text", {
689
+ x: e.x + e.width + I.value.style.chart.bars.dataLabels.value.offsetX + 12,
690
+ y: e.cy + B.value.values + I.value.style.chart.bars.dataLabels.value.offsetY,
691
+ "text-anchor": "start",
692
+ "font-size": B.value.values,
693
+ fill: I.value.style.chart.bars.dataLabels.value.color,
694
+ "font-weight": I.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
695
+ class: g({ animated: I.value.useCssAnimation && !j.value }),
696
+ style: v({ animationDelay: `${150 * t}ms` })
697
+ }, C(w(o)(I.value.style.chart.bars.dataLabels.value.formatter, e.value, w(a)({
698
+ p: I.value.style.chart.bars.dataLabels.value.prefix,
699
+ v: e.value,
700
+ s: I.value.style.chart.bars.dataLabels.value.suffix,
701
+ r: I.value.style.chart.bars.dataLabels.value.rounding
702
+ }), { datapoint: e })), 15, Ve)]))), 256)),
703
+ S(e.$slots, "svg", { svg: {
704
+ ...V.value,
705
+ isPrintingImg: w(mt) || w(ht) || N.value,
706
+ isPrintingSvg: P.value
707
+ } }, void 0, !0)
708
+ ], 14, Ne)) : u("", !0),
709
+ e.$slots.watermark ? (y(), d("div", He, [S(e.$slots, "watermark", _(m({ isPrinting: w(mt) || w(ht) || N.value || P.value })), void 0, !0)])) : u("", !0),
710
+ F.value ? u("", !0) : (y(), l(w(Ge), {
711
+ key: 6,
712
+ config: {
713
+ type: "verticalBar",
714
+ style: {
715
+ backgroundColor: I.value.style.chart.backgroundColor,
716
+ verticalBar: {
717
+ axis: { color: "#CCCCCC" },
718
+ color: "#CCCCCC"
719
+ }
720
+ }
721
+ }
722
+ }, null, 8, ["config"])),
723
+ e.$slots.source ? (y(), d("div", {
724
+ key: 7,
725
+ ref_key: "source",
726
+ ref: ot,
727
+ dir: "auto"
728
+ }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
729
+ F.value && I.value.userOptions.buttons.table ? (y(), l(De($.value.component), h({ key: 8 }, $.value.props, {
730
+ ref_key: "tableUnit",
731
+ ref: M,
732
+ onClose: Ot
733
+ }), xe({
734
+ content: T(() => [(y(), l(w(qe), {
735
+ key: `table_${it.value}`,
736
+ colNames: Z.value.colNames,
737
+ head: Z.value.head,
738
+ body: Z.value.body,
739
+ config: Z.value.config,
740
+ title: I.value.table.useDialog ? "" : $.value.title,
741
+ withCloseButton: !I.value.table.useDialog,
742
+ onClose: Ot
743
+ }, {
744
+ th: T(({ th: e }) => [f("div", {
745
+ innerHTML: e,
746
+ style: {
747
+ display: "flex",
748
+ "align-items": "center"
749
+ }
750
+ }, null, 8, Ue)]),
751
+ td: T(({ td: e }) => [Se(C(e.name ? e.name : e), 1)]),
752
+ _: 1
753
+ }, 8, [
754
+ "colNames",
755
+ "head",
756
+ "body",
757
+ "config",
758
+ "title",
759
+ "withCloseButton"
760
+ ]))]),
761
+ _: 2
762
+ }, [I.value.table.useDialog ? {
763
+ name: "title",
764
+ fn: T(() => [Se(C($.value.title), 1)]),
765
+ key: "0"
766
+ } : void 0, I.value.table.useDialog ? {
767
+ name: "actions",
768
+ fn: T(() => [f("button", {
769
+ tabindex: "0",
770
+ class: "vue-ui-user-options-button",
771
+ onClick: t[0] ||= (e) => Q(I.value.userOptions.callbacks.csv)
772
+ }, [Ce(w(We), {
773
+ name: "fileCsv",
774
+ stroke: $.value.props.color
775
+ }, null, 8, ["stroke"])])]),
776
+ key: "1"
777
+ } : void 0]), 1040)) : u("", !0)
778
+ ], 46, Me));
779
+ }
780
+ }, [["__scopeId", "data-v-cc4bcc61"]]);
781
+ //#endregion
782
+ export { je as n, We as t };