vue-data-ui 3.6.0 → 3.7.1

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 (199) hide show
  1. package/README.md +26 -26
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
  5. package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-C82JCJOX.js} +1 -1
  10. package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +2 -0
  90. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  91. package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
  92. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  93. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  94. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  95. package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-d-OXgGG3.js} +78 -78
  96. package/dist/vue-data-ui.js +225 -205
  97. package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-BLbSbx2V.js} +546 -517
  98. package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  99. package/dist/vue-ui-age-pyramid-DQ-xc-if.js +960 -0
  100. package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  101. package/dist/vue-ui-bullet-BvMdxLkK.js +657 -0
  102. package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-DIWeygxV.js} +596 -561
  103. package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-DM2HJFMH.js} +48 -48
  104. package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DNOG6dqY.js} +534 -505
  105. package/dist/vue-ui-chord-D2wPt2JV.js +1182 -0
  106. package/dist/vue-ui-circle-pack-D_GDv7OV.js +832 -0
  107. package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  108. package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-BMby447A.js} +140 -140
  109. package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
  110. package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BqiNPW3q.js} +634 -602
  111. package/dist/vue-ui-donut-evolution-BL7HtdsP.js +1243 -0
  112. package/dist/vue-ui-dumbbell-BlTDnM8L.js +1258 -0
  113. package/dist/vue-ui-flow-BxIv20FH.js +1026 -0
  114. package/dist/vue-ui-funnel-Tnjg4srR.js +743 -0
  115. package/dist/vue-ui-galaxy-CYDVXdNj.js +837 -0
  116. package/dist/vue-ui-gauge-DAcpazK7.js +864 -0
  117. package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-Bg2TpPwm.js} +3 -3
  118. package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-BPEE_cLi.js} +501 -466
  119. package/dist/vue-ui-history-plot-BhfbLer8.js +1239 -0
  120. package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  121. package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  122. package/dist/vue-ui-molecule-DnzXYuUi.js +782 -0
  123. package/dist/vue-ui-mood-radar-CXyQEfeM.js +930 -0
  124. package/dist/vue-ui-nested-donuts-Dq8JoU5d.js +1454 -0
  125. package/dist/vue-ui-onion-D0KUHi-Z.js +944 -0
  126. package/dist/vue-ui-parallel-coordinate-plot-DNc2L4Rg.js +1080 -0
  127. package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-Cp8loNVN.js} +510 -481
  128. package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-kuTdgAKG.js} +795 -758
  129. package/dist/vue-ui-radar-x2Ry_IGa.js +1013 -0
  130. package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  131. package/dist/vue-ui-relation-circle-DbYE9UHq.js +671 -0
  132. package/dist/vue-ui-ridgeline-yaMl8iIE.js +1302 -0
  133. package/dist/vue-ui-rings-BowsO9I8.js +884 -0
  134. package/dist/vue-ui-scatter-C_nz0A4x.js +1619 -0
  135. package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-DdXq2gl1.js} +3 -3
  136. package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  137. package/dist/vue-ui-spark-trend-BLticwHl.js +364 -0
  138. package/dist/vue-ui-sparkbar-DC2sDr9_.js +381 -0
  139. package/dist/vue-ui-sparkgauge-BENUfyuR.js +260 -0
  140. package/dist/vue-ui-sparkhistogram-BY0jsNsc.js +411 -0
  141. package/dist/vue-ui-sparkline-fS36LGCB.js +549 -0
  142. package/dist/vue-ui-sparkstackbar-C59ocU83.js +470 -0
  143. package/dist/vue-ui-stackbar-BtWWtzDp.js +1867 -0
  144. package/dist/vue-ui-stackline-CsGEHOOr.js +1963 -0
  145. package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-n_rEdwkM.js} +343 -314
  146. package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-Kv2YL5OU.js} +5 -5
  147. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  148. package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-B8CCAdco.js} +292 -263
  149. package/dist/vue-ui-thermometer-C1Hr_LrY.js +613 -0
  150. package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-CmnO99_j.js} +25 -25
  151. package/dist/vue-ui-tiremarks-DbZbhw6Q.js +477 -0
  152. package/dist/vue-ui-treemap-BGMpUu5v.js +1359 -0
  153. package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-CWlGQoB3.js} +520 -485
  154. package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-BVVrMghT.js} +376 -347
  155. package/dist/vue-ui-wheel-B2pFBeKR.js +690 -0
  156. package/dist/vue-ui-word-cloud-BqKSDn2J.js +904 -0
  157. package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-glj9mQAg.js} +57 -57
  158. package/dist/vue-ui-xy-BdXV4naK.js +3455 -0
  159. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  160. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  161. package/package.json +5 -5
  162. package/dist/themes-DH-N_ePR.js +0 -54
  163. package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
  164. package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
  165. package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
  166. package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
  167. package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
  168. package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
  169. package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
  170. package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
  171. package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
  172. package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
  173. package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
  174. package/dist/vue-ui-molecule-CasngKZI.js +0 -753
  175. package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
  176. package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
  177. package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
  178. package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
  179. package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
  180. package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
  181. package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
  182. package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
  183. package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
  184. package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
  185. package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
  186. package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
  187. package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
  188. package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
  189. package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
  190. package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
  191. package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
  192. package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
  193. package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
  194. package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
  195. package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
  196. package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
  197. package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
  198. package/dist/vue-ui-xy-BT67faLv.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
@@ -1,716 +0,0 @@
1
- import { useCssVars as Qe, computed as v, defineAsyncComponent as S, ref as h, shallowRef as $e, onMounted as Ke, onBeforeUnmount as Ze, watch as Le, createElementBlock as d, openBlock as n, unref as s, normalizeStyle as A, normalizeClass as I, createBlock as F, createCommentVNode as m, withCtx as r, renderSlot as i, normalizeProps as C, guardReactiveProps as w, createSlots as xe, createVNode as Se, createElementVNode as $, mergeProps as H, Fragment as X, renderList as W, toDisplayString as V, resolveDynamicComponent as et, createTextVNode as _e, nextTick as tt } from "vue";
2
- import { c as at, o as lt, f as Te, g as ot, h as st, S as nt, a as Y, d as q, X as rt, J as ut, R as ae, P as it, Q as ct } from "./lib-C_mNZmhD.js";
3
- import { t as vt, u as dt } from "./useResponsive-DfdjqQps.js";
4
- import { u as ht, a as Ae } from "./useNestedProp-CIoDlpHu.js";
5
- import { u as ft } from "./usePrinter-DTzqpYKF.js";
6
- import { u as bt } from "./useSvgExport-DrjCWun4.js";
7
- import { u as gt } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as mt } from "./useChartAccessibility-9icAAmYg.js";
9
- import pt from "./img-BecE5qXd.js";
10
- import yt from "./Title-Bb1VWCtR.js";
11
- import { t as kt } from "./themes-DH-N_ePR.js";
12
- import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const wt = ["id"], $t = ["xmlns", "viewBox"], Lt = ["width", "height"], xt = ["id"], St = ["stop-color"], _t = ["stop-color"], Tt = ["stop-color"], At = ["stroke", "stroke-width"], Ot = ["stroke", "stroke-width"], Dt = ["x", "y", "font-size", "fill", "font-weight"], zt = ["points", "fill"], Nt = ["stroke", "stroke-width", "rx"], Pt = ["x", "y", "font-size", "fill", "font-weight"], It = ["x", "y", "font-size", "fill", "font-weight"], Ft = {
14
- key: 5,
15
- class: "vue-data-ui-watermark"
16
- }, Rt = ["innerHTML"], Bt = {
17
- __name: "vue-ui-funnel",
18
- props: {
19
- config: {
20
- type: Object,
21
- default() {
22
- return {};
23
- }
24
- },
25
- dataset: {
26
- type: Array,
27
- default() {
28
- return [];
29
- }
30
- }
31
- },
32
- setup(Oe, { expose: De }) {
33
- Qe((t) => ({
34
- v5e393ed4: je.value
35
- }));
36
- const ze = S(() => import("./BaseIcon-DLFL0M4-.js")), Ne = S(() => import("./vue-ui-skeleton-DsrlMELy.js")), Pe = S(() => import("./vue-ui-accordion-SSLXLlNz.js")), Ie = S(() => import("./DataTable-UCyd_BQI.js")), Fe = S(() => import("./UserOptions-BqmUW9Kp.js")), Re = S(() => import("./PenAndPaper-BJSMejV9.js")), Be = S(() => import("./PackageVersion-D_4Hr4S4.js")), Me = S(() => import("./BaseDraggableDialog-DhKIof09.js")), { vue_ui_funnel: Ue } = ht(), p = Oe, L = h(null), R = h(at()), le = h(0), oe = h(0), se = h(0), ne = h(null), re = h(null), ue = h(null), x = $e(null), O = $e(null), _ = h(!1), B = h(null), J = h(null), D = v(() => !!p.dataset && p.dataset.length);
37
- Ke(ie);
38
- function ie() {
39
- if (lt(p.dataset) ? Te({
40
- componentName: "VueUiFunnel",
41
- type: "dataset"
42
- }) : p.dataset.forEach((t, l) => {
43
- ot({
44
- datasetObject: t,
45
- requiredAttributes: ["name", "value"]
46
- }).forEach((a) => {
47
- D.value = !1, Te({
48
- componentName: "VueUiFunnel",
49
- type: "datasetSerieAttribute",
50
- property: a,
51
- index: l
52
- });
53
- });
54
- }), e.value.responsive) {
55
- const t = vt(() => {
56
- const { width: l, height: a } = dt({
57
- chart: L.value,
58
- title: e.value.style.chart.title.text ? ue.value : null,
59
- source: re.value,
60
- noTitle: ne.value
61
- });
62
- requestAnimationFrame(() => {
63
- b.value.height = a, b.value.width = l, k.value = me(), e.value.responsiveProportionalSizing ? (f.value.circles = ae({
64
- relator: Math.min(l, a),
65
- adjuster: 600,
66
- source: e.value.style.chart.circles.dataLabels.fontSize,
67
- threshold: 10,
68
- fallback: 10
69
- }), f.value.names = ae({
70
- relator: Math.min(l, a),
71
- adjuster: 600,
72
- source: e.value.style.chart.bars.dataLabels.name.fontSize,
73
- threshold: 10,
74
- fallback: 10
75
- }), f.value.values = ae({
76
- relator: Math.min(l, a),
77
- adjuster: 600,
78
- source: e.value.style.chart.bars.dataLabels.value.fontSize,
79
- threshold: 10,
80
- fallback: 10
81
- })) : (f.value.circles = e.value.style.chart.circles.dataLabels.fontSize, f.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, f.value.values = e.value.style.chart.bars.dataLabels.value.fontSize);
82
- });
83
- });
84
- x.value && (O.value && x.value.unobserve(O.value), x.value.disconnect()), x.value = new ResizeObserver(t), O.value = L.value.parentNode, x.value.observe(O.value);
85
- }
86
- }
87
- Ze(() => {
88
- x.value && (O.value && x.value.unobserve(O.value), x.value.disconnect());
89
- });
90
- function ce() {
91
- const t = Ae({
92
- userConfig: p.config,
93
- defaultConfig: Ue
94
- });
95
- return t.theme ? {
96
- ...Ae({
97
- userConfig: kt.vue_ui_funnel[t.theme] || p.config,
98
- defaultConfig: t
99
- })
100
- } : t;
101
- }
102
- const e = v({
103
- get: () => ce(),
104
- set: (t) => t
105
- }), { userOptionsVisible: Q, setUserOptionsVisibility: ve, keepUserOptionState: de } = gt({ config: e.value }), { svgRef: K } = mt({ config: e.value.style.chart.title });
106
- Le(() => p.config, (t) => {
107
- e.value = ce(), Q.value = !e.value.userOptions.showOnChartHover, ie(), oe.value += 1, se.value += 1, f.value.circles = e.value.style.chart.circles.dataLabels.fontSize, f.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, f.value.values = e.value.style.chart.bars.dataLabels.value.fontSize, z.value.showTable = e.value.table.show;
108
- }, { deep: !0 });
109
- const { isPrinting: he, isImaging: fe, generatePdf: be, generateImage: ge } = ft({
110
- elementId: `funnel_${R.value}`,
111
- fileName: e.value.style.chart.title.text || "vue-ui-funnel",
112
- options: e.value.userOptions.print
113
- }), Ee = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), z = h({
114
- showTable: e.value.table.show
115
- }), f = h({
116
- circles: e.value.style.chart.circles.dataLabels.fontSize,
117
- names: e.value.style.chart.bars.dataLabels.name.fontSize,
118
- values: e.value.style.chart.bars.dataLabels.value.fontSize
119
- }), b = v({
120
- get: () => ({
121
- height: e.value.style.chart.height,
122
- width: e.value.style.chart.width
123
- }),
124
- set: (t) => t
125
- }), y = v(() => D.value ? p.dataset.map((t, l) => ({
126
- ...t,
127
- color: t.color ? st(t.color) : nt(e.value.style.chart.bars.defaultColor, l / p.dataset.length)
128
- })) : []);
129
- setTimeout(() => {
130
- _.value = !0;
131
- }, y.value.length * 150);
132
- function me() {
133
- const t = e.value.style.chart.padding.left, l = e.value.style.chart.padding.top;
134
- return {
135
- left: t,
136
- top: l,
137
- right: b.value.width - e.value.style.chart.padding.right,
138
- bottom: b.value.height - e.value.style.chart.padding.bottom,
139
- width: b.value.width - t - e.value.style.chart.padding.right,
140
- height: b.value.height - l - e.value.style.chart.padding.bottom
141
- };
142
- }
143
- const k = h(me()), N = v(() => k.value.height / p.dataset.length), T = v(() => N.value * e.value.style.chart.bars.gapRatio), pe = v(() => k.value.width * e.value.style.chart.barCircleSpacingRatio), u = v(() => y.value.map((t, l) => {
144
- const a = N.value - T.value, o = k.value.top + T.value / 2 * l + (N.value - T.value / 2) * l + T.value / 2, g = t.value / y.value[0].value, c = (k.value.width - a - pe.value) * (t.value / y.value[0].value);
145
- return {
146
- ...t,
147
- cx: k.value.left + a / 2,
148
- cy: o + a / 2,
149
- datapointIndex: l,
150
- fill: t.color,
151
- height: Math.max(a, 0),
152
- proportion: g,
153
- r: Math.max(a / 2, 0),
154
- width: Math.max(c, 0),
155
- x: k.value.left + a + pe.value,
156
- y: o
157
- };
158
- })), Ve = v(() => {
159
- const t = u.value.map((l) => `${l.x + l.width},${l.y + (N.value - T.value) / 2}`);
160
- return `${u.value[0].x},${u.value[0].y + (N.value - T.value) / 2} ${t.toString()} ${u.value.at(-1).x},${u.value.at(-1).y + (N.value - T.value) / 2}`;
161
- }), Ge = v(() => ({
162
- x1: u.value[0].cx,
163
- y1: u.value[0].cy,
164
- x2: u.value.at(-1).cx,
165
- y2: u.value.at(-1).cy
166
- })), P = h(!1);
167
- function ye(t) {
168
- P.value = t, le.value += 1;
169
- }
170
- const je = v(() => `${y.value.length * 150}ms`), G = h(!1);
171
- function Z() {
172
- G.value = !G.value;
173
- }
174
- function ke() {
175
- z.value.showTable = !z.value.showTable;
176
- }
177
- const M = v(() => {
178
- const t = y.value.map((a) => ({
179
- name: a.name,
180
- color: a.color
181
- })), l = y.value.map((a) => a.value);
182
- return { head: t, body: l };
183
- }), j = v(() => {
184
- const t = [
185
- e.value.table.columnNames.series,
186
- e.value.table.columnNames.value,
187
- e.value.table.columnNames.percentage
188
- ], l = M.value.head.map((g, c) => {
189
- const E = Y(
190
- e.value.style.chart.bars.dataLabels.value.formatter,
191
- M.value.body[c],
192
- q({
193
- p: e.value.style.chart.bars.dataLabels.value.prefix,
194
- v: M.value.body[c],
195
- s: e.value.style.chart.bars.dataLabels.value.suffix,
196
- r: e.value.table.td.roundingValue
197
- }),
198
- { datapoint: u.value[c] }
199
- ), te = Y(
200
- e.value.style.chart.circles.dataLabels.formatter,
201
- u.value[c].proportion * 100,
202
- q({
203
- v: u.value[c].proportion * 100,
204
- s: "%",
205
- r: e.value.table.td.roundingPercentage
206
- }),
207
- { datapoint: u.value[c] }
208
- );
209
- return [
210
- { color: g.color, name: g.name },
211
- E,
212
- te
213
- ];
214
- }), a = {
215
- th: {
216
- backgroundColor: e.value.table.th.backgroundColor,
217
- color: e.value.table.th.color,
218
- outline: e.value.table.th.outline
219
- },
220
- td: {
221
- backgroundColor: e.value.table.td.backgroundColor,
222
- color: e.value.table.td.color,
223
- outline: e.value.table.td.outline
224
- },
225
- breakpoint: e.value.table.responsiveBreakpoint
226
- };
227
- return {
228
- colNames: [
229
- e.value.table.columnNames.series,
230
- e.value.table.columnNames.value,
231
- e.value.table.columnNames.percentage
232
- ],
233
- head: t,
234
- body: l,
235
- config: a
236
- };
237
- });
238
- function ee(t = null) {
239
- tt(() => {
240
- const l = M.value.head.map((g, c) => [[
241
- g.name
242
- ], [M.value.body[c]], [u.value[c].proportion * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value], ["%"]]].concat(l), o = it(a);
243
- t ? t(o) : ct({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-funnel" });
244
- });
245
- }
246
- function He() {
247
- return y.value;
248
- }
249
- async function Xe({ scale: t = 2 } = {}) {
250
- if (!L.value) return;
251
- const { width: l, height: a } = L.value.getBoundingClientRect(), o = l / a, { imageUri: g, base64: c } = await pt({ domElement: L.value, base64: !0, img: !0, scale: t });
252
- return {
253
- imageUri: g,
254
- base64: c,
255
- title: e.value.style.chart.title.text,
256
- width: l,
257
- height: a,
258
- aspectRatio: o
259
- };
260
- }
261
- const U = v(() => {
262
- const t = e.value.table.useDialog && !e.value.table.show, l = z.value.showTable;
263
- return {
264
- component: t ? Me : Pe,
265
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
266
- props: t ? {
267
- backgroundColor: e.value.table.th.backgroundColor,
268
- color: e.value.table.th.color,
269
- headerColor: e.value.table.th.color,
270
- headerBg: e.value.table.th.backgroundColor,
271
- isFullscreen: P.value,
272
- fullscreenParent: L.value,
273
- forcedWidth: Math.min(800, window.innerWidth * 0.8)
274
- } : {
275
- hideDetails: !0,
276
- config: {
277
- open: l,
278
- maxHeight: 1e4,
279
- body: {
280
- backgroundColor: e.value.style.chart.backgroundColor,
281
- color: e.value.style.chart.color
282
- },
283
- head: {
284
- backgroundColor: e.value.style.chart.backgroundColor,
285
- color: e.value.style.chart.color
286
- }
287
- }
288
- }
289
- };
290
- });
291
- Le(() => z.value.showTable, (t) => {
292
- e.value.table.show || (t && e.value.table.useDialog && B.value ? B.value.open() : "close" in B.value && B.value.close());
293
- });
294
- function Ce() {
295
- z.value.showTable = !1, J.value && J.value.setTableIconState(!1);
296
- }
297
- const We = v(() => e.value.style.chart.backgroundColor), Ye = v(() => e.value.style.chart.title), { exportSvg: qe, getSvg: Je } = bt({
298
- svg: K,
299
- title: Ye,
300
- backgroundColor: We
301
- });
302
- async function we({ isCb: t }) {
303
- if (t) {
304
- const { blob: l, url: a, text: o, dataUrl: g } = await Je();
305
- e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: g });
306
- } else
307
- qe();
308
- }
309
- return De({
310
- getData: He,
311
- getImage: Xe,
312
- generatePdf: be,
313
- generateCsv: ee,
314
- generateImage: ge,
315
- generateSvg: we,
316
- toggleTable: ke,
317
- toggleAnnotator: Z,
318
- toggleFullscreen: ye
319
- }), (t, l) => (n(), d("div", {
320
- ref_key: "funnelChart",
321
- ref: L,
322
- class: I(`vue-data-ui-component vue-ui-funnel ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
323
- style: A(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
324
- id: `funnel_${R.value}`,
325
- onMouseenter: l[1] || (l[1] = () => s(ve)(!0)),
326
- onMouseleave: l[2] || (l[2] = () => s(ve)(!1))
327
- }, [
328
- e.value.userOptions.buttons.annotator ? (n(), F(s(Re), {
329
- key: 0,
330
- svgRef: s(K),
331
- backgroundColor: e.value.style.chart.backgroundColor,
332
- color: e.value.style.chart.color,
333
- active: G.value,
334
- onClose: Z
335
- }, {
336
- "annotator-action-close": r(() => [
337
- i(t.$slots, "annotator-action-close", {}, void 0, !0)
338
- ]),
339
- "annotator-action-color": r(({ color: a }) => [
340
- i(t.$slots, "annotator-action-color", C(w({ color: a })), void 0, !0)
341
- ]),
342
- "annotator-action-draw": r(({ mode: a }) => [
343
- i(t.$slots, "annotator-action-draw", C(w({ mode: a })), void 0, !0)
344
- ]),
345
- "annotator-action-undo": r(({ disabled: a }) => [
346
- i(t.$slots, "annotator-action-undo", C(w({ disabled: a })), void 0, !0)
347
- ]),
348
- "annotator-action-redo": r(({ disabled: a }) => [
349
- i(t.$slots, "annotator-action-redo", C(w({ disabled: a })), void 0, !0)
350
- ]),
351
- "annotator-action-delete": r(({ disabled: a }) => [
352
- i(t.$slots, "annotator-action-delete", C(w({ disabled: a })), void 0, !0)
353
- ]),
354
- _: 3
355
- }, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
356
- Ee.value ? (n(), d("div", {
357
- key: 1,
358
- ref_key: "noTitle",
359
- ref: ne,
360
- class: "vue-data-ui-no-title-space",
361
- style: "height:36px; width: 100%;background:transparent"
362
- }, null, 512)) : m("", !0),
363
- e.value.style.chart.title.text ? (n(), d("div", {
364
- key: 2,
365
- ref_key: "chartTitle",
366
- ref: ue,
367
- style: "width:100%;background:transparent;padding-bottom:24px"
368
- }, [
369
- (n(), F(yt, {
370
- key: `title_${oe.value}`,
371
- config: {
372
- title: {
373
- cy: "funnel-div-title",
374
- ...e.value.style.chart.title
375
- },
376
- subtitle: {
377
- cy: "funnel-div-subtitle",
378
- ...e.value.style.chart.title.subtitle
379
- }
380
- }
381
- }, null, 8, ["config"]))
382
- ], 512)) : m("", !0),
383
- e.value.userOptions.show && D.value && (s(de) || s(Q)) ? (n(), F(s(Fe), {
384
- ref_key: "userOptionsRef",
385
- ref: J,
386
- key: `user_option_${le.value}`,
387
- backgroundColor: e.value.style.chart.backgroundColor,
388
- color: e.value.style.chart.color,
389
- isPrinting: s(he),
390
- isImaging: s(fe),
391
- uid: R.value,
392
- hasTooltip: !1,
393
- hasPdf: e.value.userOptions.buttons.pdf,
394
- hasImg: e.value.userOptions.buttons.img,
395
- hasSvg: e.value.userOptions.buttons.svg,
396
- hasXls: e.value.userOptions.buttons.csv,
397
- hasTable: e.value.userOptions.buttons.table,
398
- hasLabel: !1,
399
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
400
- isFullscreen: P.value,
401
- chartElement: L.value,
402
- position: e.value.userOptions.position,
403
- titles: { ...e.value.userOptions.buttonTitles },
404
- hasAnnotator: e.value.userOptions.buttons.annotator,
405
- isAnnotation: G.value,
406
- callbacks: e.value.userOptions.callbacks,
407
- printScale: e.value.userOptions.print.scale,
408
- tableDialog: e.value.table.useDialog,
409
- onToggleAnnotator: Z,
410
- onToggleFullscreen: ye,
411
- onGeneratePdf: s(be),
412
- onGenerateImage: s(ge),
413
- onGenerateSvg: we,
414
- onToggleTable: ke,
415
- onGenerateCsv: ee,
416
- style: A({
417
- visibility: s(de) ? s(Q) ? "visible" : "hidden" : "visible"
418
- })
419
- }, xe({ _: 2 }, [
420
- t.$slots.menuIcon ? {
421
- name: "menuIcon",
422
- fn: r(({ isOpen: a, color: o }) => [
423
- i(t.$slots, "menuIcon", C(w({ isOpen: a, color: o })), void 0, !0)
424
- ]),
425
- key: "0"
426
- } : void 0,
427
- t.$slots.optionPdf ? {
428
- name: "optionPdf",
429
- fn: r(() => [
430
- i(t.$slots, "optionPdf", {}, void 0, !0)
431
- ]),
432
- key: "1"
433
- } : void 0,
434
- t.$slots.optionCsv ? {
435
- name: "optionCsv",
436
- fn: r(() => [
437
- i(t.$slots, "optionCsv", {}, void 0, !0)
438
- ]),
439
- key: "2"
440
- } : void 0,
441
- t.$slots.optionImg ? {
442
- name: "optionImg",
443
- fn: r(() => [
444
- i(t.$slots, "optionImg", {}, void 0, !0)
445
- ]),
446
- key: "3"
447
- } : void 0,
448
- t.$slots.optionSvg ? {
449
- name: "optionSvg",
450
- fn: r(() => [
451
- i(t.$slots, "optionSvg", {}, void 0, !0)
452
- ]),
453
- key: "4"
454
- } : void 0,
455
- t.$slots.optionTable ? {
456
- name: "optionTable",
457
- fn: r(() => [
458
- i(t.$slots, "optionTable", {}, void 0, !0)
459
- ]),
460
- key: "5"
461
- } : void 0,
462
- t.$slots.optionFullscreen ? {
463
- name: "optionFullscreen",
464
- fn: r(({ toggleFullscreen: a, isFullscreen: o }) => [
465
- i(t.$slots, "optionFullscreen", C(w({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
466
- ]),
467
- key: "6"
468
- } : void 0,
469
- t.$slots.optionAnnotator ? {
470
- name: "optionAnnotator",
471
- fn: r(({ toggleAnnotator: a, isAnnotator: o }) => [
472
- i(t.$slots, "optionAnnotator", C(w({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
473
- ]),
474
- key: "7"
475
- } : void 0
476
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
477
- D.value ? (n(), d("svg", {
478
- key: 4,
479
- ref_key: "svgRef",
480
- ref: K,
481
- xmlns: s(rt),
482
- class: I({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
483
- viewBox: `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`,
484
- style: A(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
485
- }, [
486
- Se(s(Be)),
487
- t.$slots["chart-background"] ? (n(), d("foreignObject", {
488
- key: 0,
489
- x: 0,
490
- y: 0,
491
- width: b.value.width <= 0 ? 10 : b.value.width,
492
- height: b.value.height <= 0 ? 10 : b.value.height,
493
- style: {
494
- pointerEvents: "none"
495
- }
496
- }, [
497
- i(t.$slots, "chart-background", {}, void 0, !0)
498
- ], 8, Lt)) : m("", !0),
499
- $("defs", null, [
500
- $("linearGradient", {
501
- id: `funnel_area_${R.value}`,
502
- x1: "0%",
503
- x2: "100%",
504
- y1: "0%",
505
- y2: "0%"
506
- }, [
507
- $("stop", {
508
- offset: "0%",
509
- "stop-color": e.value.style.chart.backgroundColor,
510
- "stop-opacity": 0
511
- }, null, 8, St),
512
- $("stop", {
513
- offset: "20%",
514
- "stop-color": e.value.style.chart.area.color
515
- }, null, 8, _t),
516
- $("stop", {
517
- offset: "100%",
518
- "stop-color": e.value.style.chart.area.color
519
- }, null, 8, Tt)
520
- ], 8, xt)
521
- ]),
522
- e.value.style.chart.circleLinks.show ? (n(), d("line", H({ key: 1 }, Ge.value, {
523
- stroke: e.value.style.chart.circleLinks.color,
524
- "stroke-width": 12 * e.value.style.chart.circleLinks.widthRatio,
525
- "stroke-linecap": "round",
526
- class: {
527
- animated: e.value.useCssAnimation
528
- },
529
- style: {
530
- strokeDasharray: e.value.useCssAnimation ? k.value.height : 0,
531
- strokeDashoffset: e.value.useCssAnimation ? k.value.height : 0
532
- }
533
- }), null, 16, At)) : m("", !0),
534
- (n(!0), d(X, null, W(u.value, ({ cx: a, cy: o, r: g, fill: c }, E) => (n(), d("circle", H({ ref_for: !0 }, { cx: a, cy: o, r: g, fill: c }, {
535
- stroke: e.value.style.chart.circles.stroke,
536
- "stroke-width": e.value.style.chart.circles.strokeWidth,
537
- class: {
538
- animated: e.value.useCssAnimation && !_.value
539
- },
540
- style: {
541
- animationDelay: `${150 * E}ms`
542
- }
543
- }), null, 16, Ot))), 256)),
544
- (n(!0), d(X, null, W(u.value, (a, o) => (n(), d("text", {
545
- x: a.cx,
546
- y: a.cy + f.value.circles / 3 + e.value.style.chart.circles.dataLabels.offsetY,
547
- "text-anchor": "middle",
548
- "font-size": f.value.circles,
549
- fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? s(ut)(a.color) : e.value.style.chart.circles.dataLabels.color,
550
- "font-weight": e.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
551
- class: I({
552
- animated: e.value.useCssAnimation && !_.value
553
- }),
554
- style: A({
555
- animationDelay: `${150 * o}ms`
556
- })
557
- }, V(s(Y)(
558
- e.value.style.chart.circles.dataLabels.formatter,
559
- a.proportion * 100,
560
- s(q)({
561
- v: a.proportion * 100,
562
- s: "%",
563
- r: e.value.style.chart.circles.dataLabels.rounding
564
- }),
565
- { datapoint: a }
566
- )), 15, Dt))), 256)),
567
- e.value.style.chart.area.show ? (n(), d("polygon", {
568
- key: 2,
569
- points: Ve.value,
570
- fill: `url(#funnel_area_${R.value})`,
571
- class: I({
572
- animated: e.value.useCssAnimation && !_.value
573
- }),
574
- style: A({
575
- transition: e.value.useCssAnimation ? `all ${150 * y.value.length}ms ease-in` : "none"
576
- })
577
- }, null, 14, zt)) : m("", !0),
578
- (n(!0), d(X, null, W(u.value, ({ x: a, y: o, height: g, width: c, fill: E }, te) => (n(), d("rect", H({ ref_for: !0 }, { x: a, y: o, height: g, width: c, fill: E }, {
579
- stroke: e.value.style.chart.bars.stroke,
580
- "stroke-width": e.value.style.chart.bars.strokeWidth,
581
- rx: e.value.style.chart.bars.borderRadius,
582
- class: {
583
- animated: e.value.useCssAnimation && !_.value
584
- },
585
- style: {
586
- animationDelay: `${150 * te}ms`
587
- }
588
- }), null, 16, Nt))), 256)),
589
- (n(!0), d(X, null, W(u.value, (a, o) => (n(), d("g", null, [
590
- $("text", {
591
- x: a.x + a.width + e.value.style.chart.bars.dataLabels.name.offsetX + 12,
592
- y: a.cy - f.value.names / 2 + e.value.style.chart.bars.dataLabels.name.offsetY,
593
- "text-anchor": "start",
594
- "font-size": f.value.names,
595
- fill: e.value.style.chart.bars.dataLabels.name.color,
596
- "font-weight": e.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
597
- class: I({
598
- animated: e.value.useCssAnimation && !_.value
599
- }),
600
- style: A({
601
- animationDelay: `${150 * o}ms`
602
- })
603
- }, V(a.name), 15, Pt),
604
- $("text", {
605
- x: a.x + a.width + e.value.style.chart.bars.dataLabels.value.offsetX + 12,
606
- y: a.cy + f.value.values + e.value.style.chart.bars.dataLabels.value.offsetY,
607
- "text-anchor": "start",
608
- "font-size": f.value.values,
609
- fill: e.value.style.chart.bars.dataLabels.value.color,
610
- "font-weight": e.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
611
- class: I({
612
- animated: e.value.useCssAnimation && !_.value
613
- }),
614
- style: A({
615
- animationDelay: `${150 * o}ms`
616
- })
617
- }, V(s(Y)(
618
- e.value.style.chart.bars.dataLabels.value.formatter,
619
- a.value,
620
- s(q)({
621
- p: e.value.style.chart.bars.dataLabels.value.prefix,
622
- v: a.value,
623
- s: e.value.style.chart.bars.dataLabels.value.suffix,
624
- r: e.value.style.chart.bars.dataLabels.value.rounding
625
- }),
626
- { datapoint: a }
627
- )), 15, It)
628
- ]))), 256)),
629
- i(t.$slots, "svg", { svg: b.value }, void 0, !0)
630
- ], 14, $t)) : m("", !0),
631
- t.$slots.watermark ? (n(), d("div", Ft, [
632
- i(t.$slots, "watermark", C(w({ isPrinting: s(he) || s(fe) })), void 0, !0)
633
- ])) : m("", !0),
634
- D.value ? m("", !0) : (n(), F(s(Ne), {
635
- key: 6,
636
- config: {
637
- type: "verticalBar",
638
- style: {
639
- backgroundColor: e.value.style.chart.backgroundColor,
640
- verticalBar: {
641
- axis: {
642
- color: "#CCCCCC"
643
- },
644
- color: "#CCCCCC"
645
- }
646
- }
647
- }
648
- }, null, 8, ["config"])),
649
- t.$slots.source ? (n(), d("div", {
650
- key: 7,
651
- ref_key: "source",
652
- ref: re,
653
- dir: "auto"
654
- }, [
655
- i(t.$slots, "source", {}, void 0, !0)
656
- ], 512)) : m("", !0),
657
- D.value && e.value.userOptions.buttons.table ? (n(), F(et(U.value.component), H({ key: 8 }, U.value.props, {
658
- ref_key: "tableUnit",
659
- ref: B,
660
- onClose: Ce
661
- }), xe({
662
- content: r(() => [
663
- (n(), F(s(Ie), {
664
- key: `table_${se.value}`,
665
- colNames: j.value.colNames,
666
- head: j.value.head,
667
- body: j.value.body,
668
- config: j.value.config,
669
- title: e.value.table.useDialog ? "" : U.value.title,
670
- withCloseButton: !e.value.table.useDialog,
671
- onClose: Ce
672
- }, {
673
- th: r(({ th: a }) => [
674
- $("div", {
675
- innerHTML: a,
676
- style: { display: "flex", "align-items": "center" }
677
- }, null, 8, Rt)
678
- ]),
679
- td: r(({ td: a }) => [
680
- _e(V(a.name ? a.name : a), 1)
681
- ]),
682
- _: 1
683
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
684
- ]),
685
- _: 2
686
- }, [
687
- e.value.table.useDialog ? {
688
- name: "title",
689
- fn: r(() => [
690
- _e(V(U.value.title), 1)
691
- ]),
692
- key: "0"
693
- } : void 0,
694
- e.value.table.useDialog ? {
695
- name: "actions",
696
- fn: r(() => [
697
- $("button", {
698
- tabindex: "0",
699
- class: "vue-ui-user-options-button",
700
- onClick: l[0] || (l[0] = (a) => ee(e.value.userOptions.callbacks.csv))
701
- }, [
702
- Se(s(ze), {
703
- name: "excel",
704
- stroke: U.value.props.color
705
- }, null, 8, ["stroke"])
706
- ])
707
- ]),
708
- key: "1"
709
- } : void 0
710
- ]), 1040)) : m("", !0)
711
- ], 46, wt));
712
- }
713
- }, Qt = /* @__PURE__ */ Ct(Bt, [["__scopeId", "data-v-43b61027"]]);
714
- export {
715
- Qt as default
716
- };