vue-data-ui 3.23.1 → 3.23.2

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 (171) hide show
  1. package/dist/{PackageVersion-D6d8SCp9.js → PackageVersion-DXU7nRr9.js} +1 -1
  2. package/dist/components/vue-ui-3d-bar.js +1 -1
  3. package/dist/components/vue-ui-accordion.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-annotator.js +1 -1
  6. package/dist/components/vue-ui-bullet.js +1 -1
  7. package/dist/components/vue-ui-bump.js +1 -1
  8. package/dist/components/vue-ui-candlestick.js +1 -1
  9. package/dist/components/vue-ui-carousel-table.js +1 -1
  10. package/dist/components/vue-ui-chestnut.js +1 -1
  11. package/dist/components/vue-ui-chord.js +1 -1
  12. package/dist/components/vue-ui-circle-pack.js +1 -1
  13. package/dist/components/vue-ui-cursor.js +1 -1
  14. package/dist/components/vue-ui-dag.js +1 -1
  15. package/dist/components/vue-ui-dashboard.js +1 -1
  16. package/dist/components/vue-ui-digits.js +1 -1
  17. package/dist/components/vue-ui-donut-evolution.js +1 -1
  18. package/dist/components/vue-ui-donut.js +1 -1
  19. package/dist/components/vue-ui-dumbbell.js +1 -1
  20. package/dist/components/vue-ui-flow.js +1 -1
  21. package/dist/components/vue-ui-funnel.js +1 -1
  22. package/dist/components/vue-ui-galaxy.js +1 -1
  23. package/dist/components/vue-ui-gauge.js +1 -1
  24. package/dist/components/vue-ui-geo.js +1 -1
  25. package/dist/components/vue-ui-gizmo.js +1 -1
  26. package/dist/components/vue-ui-heatmap.js +1 -1
  27. package/dist/components/vue-ui-hill.js +1 -1
  28. package/dist/components/vue-ui-history-plot.js +1 -1
  29. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  30. package/dist/components/vue-ui-kpi.js +1 -1
  31. package/dist/components/vue-ui-mini-loader.js +1 -1
  32. package/dist/components/vue-ui-molecule.js +1 -1
  33. package/dist/components/vue-ui-mood-radar.js +1 -1
  34. package/dist/components/vue-ui-nested-donuts.js +1 -1
  35. package/dist/components/vue-ui-onion.js +1 -1
  36. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  37. package/dist/components/vue-ui-quadrant.js +1 -1
  38. package/dist/components/vue-ui-quick-chart.js +1 -1
  39. package/dist/components/vue-ui-radar.js +1 -1
  40. package/dist/components/vue-ui-rating.js +1 -1
  41. package/dist/components/vue-ui-relation-circle.js +1 -1
  42. package/dist/components/vue-ui-ridgeline.js +1 -1
  43. package/dist/components/vue-ui-rings.js +1 -1
  44. package/dist/components/vue-ui-scatter.js +1 -1
  45. package/dist/components/vue-ui-skeleton.js +1 -1
  46. package/dist/components/vue-ui-smiley.js +1 -1
  47. package/dist/components/vue-ui-spark-trend.js +1 -1
  48. package/dist/components/vue-ui-sparkbar.js +1 -1
  49. package/dist/components/vue-ui-sparkgauge.js +1 -1
  50. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  51. package/dist/components/vue-ui-sparkline.js +1 -1
  52. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  53. package/dist/components/vue-ui-stackbar.js +1 -1
  54. package/dist/components/vue-ui-stackline.js +1 -1
  55. package/dist/components/vue-ui-strip-plot.js +1 -1
  56. package/dist/components/vue-ui-table-heatmap.js +1 -1
  57. package/dist/components/vue-ui-table-sparkline.js +1 -1
  58. package/dist/components/vue-ui-table.js +1 -1
  59. package/dist/components/vue-ui-thermometer.js +1 -1
  60. package/dist/components/vue-ui-timer.js +1 -1
  61. package/dist/components/vue-ui-tiremarks.js +1 -1
  62. package/dist/components/vue-ui-treemap.js +1 -1
  63. package/dist/components/vue-ui-vertical-bar.js +1 -1
  64. package/dist/components/vue-ui-waffle.js +1 -1
  65. package/dist/components/vue-ui-wheel.js +1 -1
  66. package/dist/components/vue-ui-word-cloud.js +1 -1
  67. package/dist/components/vue-ui-world.js +1 -1
  68. package/dist/components/vue-ui-xy-canvas.js +1 -1
  69. package/dist/components/vue-ui-xy.js +1 -1
  70. package/dist/{package-KvlL5CqE.js → package-bsfpO6y3.js} +1 -1
  71. package/dist/{render-common-oDYGTc5P.js → render-common-C0PEe9so.js} +1 -1
  72. package/dist/ssr/vue-ui-donut.js +1 -1
  73. package/dist/ssr/vue-ui-xy.js +1 -1
  74. package/dist/ssr.js +2 -2
  75. package/dist/style.css +1 -1
  76. package/dist/types/vue-data-ui.d.ts +6 -0
  77. package/dist/{useSvgExport-DH-FfcqQ.js → useChartExport-DNiwdPmb.js} +47 -1
  78. package/dist/{useConfig-D3scuR88.js → useConfig-DlNpz6P8.js} +6 -0
  79. package/dist/{useObjectBindings-Brg8mm5J.js → useObjectBindings-BeWS5v0i.js} +1 -1
  80. package/dist/utils.js +1 -1
  81. package/dist/{vue-data-ui-DGWDPCwC.js → vue-data-ui-BNxtW8pK.js} +68 -68
  82. package/dist/vue-data-ui.js +69 -69
  83. package/dist/{vue-ui-3d-bar-C_Su9fve.js → vue-ui-3d-bar-BYumVxZG.js} +164 -182
  84. package/dist/{vue-ui-accordion-BxGriZik.js → vue-ui-accordion-DegI2lzR.js} +1 -1
  85. package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
  86. package/dist/{vue-ui-annotator-CCtnM8Rv.js → vue-ui-annotator-DfG79D4r.js} +2 -2
  87. package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
  88. package/dist/{vue-ui-bump-CcdzJZ9n.js → vue-ui-bump-mKysp0KO.js} +213 -263
  89. package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
  90. package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
  91. package/dist/vue-ui-chestnut-Dpklo-VE.js +2014 -0
  92. package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
  93. package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
  94. package/dist/{vue-ui-cursor-BqHr0n1Z.js → vue-ui-cursor-DIt7vOwc.js} +2 -2
  95. package/dist/{vue-ui-dag-jMLVoQkb.js → vue-ui-dag-Cl0WdSLb.js} +492 -515
  96. package/dist/{vue-ui-dashboard-DVAUFETR.js → vue-ui-dashboard-BwxRLR4E.js} +65 -65
  97. package/dist/{vue-ui-digits-Dy4gG6qm.js → vue-ui-digits-Bp1OH_t1.js} +2 -2
  98. package/dist/{vue-ui-donut-C0cWRLbU.js → vue-ui-donut-BZUT7QYt.js} +333 -359
  99. package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
  100. package/dist/{vue-ui-donut-CYpxGBhl.js → vue-ui-donut-y6tOAVyY.js} +2 -2
  101. package/dist/{vue-ui-dumbbell-DxVbRjKR.js → vue-ui-dumbbell-BtKZcAOV.js} +378 -428
  102. package/dist/{vue-ui-flow-DWaZF4FS.js → vue-ui-flow-BF_cndsv.js} +182 -207
  103. package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
  104. package/dist/{vue-ui-galaxy-CWBP9oH9.js → vue-ui-galaxy-ClWaSOmM.js} +308 -334
  105. package/dist/vue-ui-gauge-CJstpakj.js +932 -0
  106. package/dist/{vue-ui-geo-ZA7CBy8f.js → vue-ui-geo-B1tOD3HC.js} +362 -413
  107. package/dist/{vue-ui-gizmo-SQCou0bQ.js → vue-ui-gizmo-foatosAv.js} +2 -2
  108. package/dist/{vue-ui-heatmap-CHd9gs_p.js → vue-ui-heatmap-By33A9dZ.js} +292 -315
  109. package/dist/vue-ui-hill-ewqkK9s5.js +1745 -0
  110. package/dist/{vue-ui-history-plot-BwnlC1mx.js → vue-ui-history-plot-FEIwXlsz.js} +258 -283
  111. package/dist/{vue-ui-horizontal-bar-BUar2HUH.js → vue-ui-horizontal-bar-D51sAeVu.js} +273 -298
  112. package/dist/{vue-ui-kpi-BF_9WWoo.js → vue-ui-kpi-y3EkgqJQ.js} +2 -2
  113. package/dist/{vue-ui-mini-loader-CvfukjXi.js → vue-ui-mini-loader-CtTewZJG.js} +1 -1
  114. package/dist/vue-ui-molecule-paWHp18h.js +935 -0
  115. package/dist/{vue-ui-mood-radar-_zpbmvJs.js → vue-ui-mood-radar-wBRTZI5k.js} +337 -386
  116. package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
  117. package/dist/{vue-ui-onion-CB5RYIy5.js → vue-ui-onion-B2Q2n55x.js} +257 -282
  118. package/dist/{vue-ui-parallel-coordinate-plot-BUwt-apg.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +190 -215
  119. package/dist/{vue-ui-quadrant-CoROD3er.js → vue-ui-quadrant-DOPuejDE.js} +213 -243
  120. package/dist/{vue-ui-quick-chart-BcH7eY4-.js → vue-ui-quick-chart-CgHX9njq.js} +52 -61
  121. package/dist/{vue-ui-radar-DGbaXGme.js → vue-ui-radar-BLvG-_zE.js} +343 -370
  122. package/dist/{vue-ui-rating-Bo3zD3yW.js → vue-ui-rating-BDVSVFA0.js} +8 -9
  123. package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
  124. package/dist/{vue-ui-ridgeline-BCaGcyfk.js → vue-ui-ridgeline-BbrnXvBo.js} +267 -317
  125. package/dist/{vue-ui-rings-BJUBn8_b.js → vue-ui-rings-B3cKfMWy.js} +407 -432
  126. package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
  127. package/dist/{vue-ui-skeleton-EeJcGbCo.js → vue-ui-skeleton-DwKxd7fk.js} +2 -2
  128. package/dist/{vue-ui-smiley-D0gibt5c.js → vue-ui-smiley-5iHJeTPc.js} +62 -63
  129. package/dist/{vue-ui-spark-trend-BRoQ7JpQ.js → vue-ui-spark-trend-MpvrV5Wd.js} +2 -2
  130. package/dist/{vue-ui-sparkbar-DFp2k7-7.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
  131. package/dist/{vue-ui-sparkgauge-D0Bq85Hs.js → vue-ui-sparkgauge-B-BYVv4p.js} +2 -2
  132. package/dist/{vue-ui-sparkhistogram-BPln7v63.js → vue-ui-sparkhistogram-D7D4NHdi.js} +7 -8
  133. package/dist/{vue-ui-sparkline-C6Q45Dqp.js → vue-ui-sparkline-RbeYtLWp.js} +6 -7
  134. package/dist/{vue-ui-sparkstackbar-CjK4bcQg.js → vue-ui-sparkstackbar-ohN7mtbg.js} +191 -195
  135. package/dist/{vue-ui-stackbar-Ca8EPf3e.js → vue-ui-stackbar-D2bpvQYt.js} +524 -549
  136. package/dist/{vue-ui-stackline-Pz5WWlWT.js → vue-ui-stackline-Bo1oE8yq.js} +570 -595
  137. package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
  138. package/dist/{vue-ui-table-Bjg-ujJu.js → vue-ui-table-3PPiJPV6.js} +3 -3
  139. package/dist/{vue-ui-table-heatmap-ljeYW8Wc.js → vue-ui-table-heatmap-D1bbPXKG.js} +48 -49
  140. package/dist/{vue-ui-table-sparkline-iRFmtK5S.js → vue-ui-table-sparkline-l1cUX3ny.js} +7 -9
  141. package/dist/{vue-ui-thermometer-D8uiOaeA.js → vue-ui-thermometer-DltAELO7.js} +240 -261
  142. package/dist/{vue-ui-timer-CYw983oL.js → vue-ui-timer-DWNdx47q.js} +2 -2
  143. package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
  144. package/dist/{vue-ui-treemap-h4VbnqPA.js → vue-ui-treemap-DjNlnOG5.js} +498 -524
  145. package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
  146. package/dist/{vue-ui-wheel-tLvJadk5.js → vue-ui-wheel-DrefGLos.js} +188 -209
  147. package/dist/{vue-ui-word-cloud-BjpGSsod.js → vue-ui-word-cloud-CQZ8AyOi.js} +375 -398
  148. package/dist/{vue-ui-world-B4fCS3jN.js → vue-ui-world-Y7a3VEjq.js} +428 -453
  149. package/dist/{vue-ui-xy-7ZT9IRD8.js → vue-ui-xy-CJcdttNL.js} +857 -883
  150. package/dist/{vue-ui-xy-gyNS0yH0.js → vue-ui-xy-DPxtkYGc.js} +2 -2
  151. package/dist/{vue-ui-xy-canvas-BnLEwBpi.js → vue-ui-xy-canvas-1rbwMA1m.js} +13 -12
  152. package/package.json +1 -1
  153. package/dist/Slicer-CIk57nL4.js +0 -1163
  154. package/dist/vue-ui-age-pyramid-D4k1MkAL.js +0 -1264
  155. package/dist/vue-ui-bullet-DLZr2Uk8.js +0 -724
  156. package/dist/vue-ui-candlestick-EEEt7ORC.js +0 -1866
  157. package/dist/vue-ui-carousel-table-BicIpNAD.js +0 -463
  158. package/dist/vue-ui-chestnut-BI7mC5dd.js +0 -2068
  159. package/dist/vue-ui-chord-DXaq8ZMu.js +0 -1396
  160. package/dist/vue-ui-circle-pack-XHJBMG51.js +0 -1659
  161. package/dist/vue-ui-donut-evolution-DwR47A2r.js +0 -1603
  162. package/dist/vue-ui-funnel-Bmpx5GHR.js +0 -797
  163. package/dist/vue-ui-gauge-ByE_txav.js +0 -953
  164. package/dist/vue-ui-hill-BT183G-_.js +0 -1768
  165. package/dist/vue-ui-molecule-Bi2CKHer.js +0 -958
  166. package/dist/vue-ui-nested-donuts-qHZAJ70u.js +0 -1528
  167. package/dist/vue-ui-relation-circle-DaU1eTsG.js +0 -925
  168. package/dist/vue-ui-scatter-Pcft1bUt.js +0 -2428
  169. package/dist/vue-ui-strip-plot-Dw4MGDSO.js +0 -1757
  170. package/dist/vue-ui-tiremarks-CekiW2Ru.js +0 -559
  171. package/dist/vue-ui-waffle-cu0w_s6L.js +0 -1412
@@ -1,797 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, D as n, Ot as r, S as i, X as a, i as o, jt as ee, pt as te, q as ne, qt as s, r as re, t as ie, tt as ae } from "./lib-Bttd6u5E.js";
3
- import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
4
- import { t as ce } from "./useConfig-D3scuR88.js";
5
- import { t as le } from "./usePrinter-DN5bYhTG.js";
6
- import { t as ue } from "./useSvgExport-DH-FfcqQ.js";
7
- import { t as de } from "./useNestedProp-vPNvh7rV.js";
8
- import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as pe } from "./img-Bnokohej.js";
10
- import { n as me } from "./Title-BE3qg9xl.js";
11
- import { t as he } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { l as ge, t as _e } from "./useResponsive-ZtArZtUf.js";
13
- import { t as ve } from "./DefGrad-DVBqDjhO.js";
14
- import { t as ye } from "./useUserOptionState-DK-_1ddE.js";
15
- import { t as be } from "./useChartAccessibility-DYqac8yF.js";
16
- import { t as xe } from "./usePrefersMotion-BC-CsqR1.js";
17
- import { t as Se } from "./vue_ui_funnel-_Og4EEkO.js";
18
- import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Ce, createTextVNode as we, createVNode as Te, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as g, nextTick as Ee, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as De, onMounted as Oe, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as ke, shallowRef as Ae, toDisplayString as w, unref as T, useCssVars as je, watch as Me, withCtx as E } from "vue";
19
- //#region src/components/vue-ui-funnel.vue
20
- var Ne = /* @__PURE__ */ e({ default: () => Ke }), Pe = ["id"], Fe = ["xmlns", "viewBox"], Ie = ["width", "height"], Le = ["stroke", "stroke-width"], Re = ["stroke", "stroke-width"], ze = [
21
- "x",
22
- "y",
23
- "font-size",
24
- "fill",
25
- "font-weight"
26
- ], Be = ["points", "fill"], Ve = [
27
- "stroke",
28
- "stroke-width",
29
- "rx"
30
- ], He = [
31
- "x",
32
- "y",
33
- "font-size",
34
- "fill",
35
- "font-weight"
36
- ], Ue = [
37
- "x",
38
- "y",
39
- "font-size",
40
- "fill",
41
- "font-weight"
42
- ], We = {
43
- key: 5,
44
- class: "vue-data-ui-watermark"
45
- }, Ge = ["innerHTML"], Ke = /*#__PURE__*/ he({
46
- __name: "vue-ui-funnel",
47
- props: {
48
- config: {
49
- type: Object,
50
- default() {
51
- return {};
52
- }
53
- },
54
- dataset: {
55
- type: Array,
56
- default() {
57
- return [];
58
- }
59
- }
60
- },
61
- emits: ["copyAlt"],
62
- setup(e, { expose: he, emit: Ne }) {
63
- je((e) => ({ v1979a330: Dt.value }));
64
- let Ke = m(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), qe = m(() => import("./vue-ui-skeleton-EeJcGbCo.js").then((e) => e.n)), Je = m(() => import("./vue-ui-accordion-BxGriZik.js").then((e) => e.n)), Ye = m(() => import("./DataTable-BbKgJ5UI.js")), Xe = m(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Ze = m(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Qe = m(() => import("./PackageVersion-D6d8SCp9.js").then((e) => e.t)), $e = m(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_funnel: et } = ce(), { isThemeValid: tt, warnInvalidTheme: nt } = fe(), D = xe(), O = e, rt = Ne, k = x(null), A = x(ne()), it = x(0), at = x(0), ot = x(0), st = x(null), ct = x(null), lt = x(null), j = Ae(null), M = Ae(null), N = x(!1), P = x(null), ut = x(null), F = x(!1), I = x(!1), L = l(() => !!O.dataset && O.dataset.length);
65
- Oe(dt);
66
- function dt() {
67
- if (ee(O.dataset) ? ae({
68
- componentName: "VueUiFunnel",
69
- type: "dataset"
70
- }) : O.dataset.forEach((e, t) => {
71
- te({
72
- datasetObject: e,
73
- requiredAttributes: ["name", "value"]
74
- }).forEach((e) => {
75
- L.value = !1, ae({
76
- componentName: "VueUiFunnel",
77
- type: "datasetSerieAttribute",
78
- property: e,
79
- index: t
80
- });
81
- });
82
- }), R.value.responsive) {
83
- let e = ge(() => {
84
- let { width: e, height: t } = _e({
85
- chart: k.value,
86
- title: R.value.style.chart.title.text ? lt.value : null,
87
- source: ct.value,
88
- noTitle: st.value
89
- });
90
- requestAnimationFrame(() => {
91
- H.value.height = t, H.value.width = e, W.value = St(), R.value.responsiveProportionalSizing ? (V.value.circles = s({
92
- relator: Math.min(e, t),
93
- adjuster: 600,
94
- source: R.value.style.chart.circles.dataLabels.fontSize,
95
- threshold: 10,
96
- fallback: 10
97
- }), V.value.names = s({
98
- relator: Math.min(e, t),
99
- adjuster: 600,
100
- source: R.value.style.chart.bars.dataLabels.name.fontSize,
101
- threshold: 10,
102
- fallback: 10
103
- }), V.value.values = s({
104
- relator: Math.min(e, t),
105
- adjuster: 600,
106
- source: R.value.style.chart.bars.dataLabels.value.fontSize,
107
- threshold: 10,
108
- fallback: 10
109
- })) : (V.value.circles = R.value.style.chart.circles.dataLabels.fontSize, V.value.names = R.value.style.chart.bars.dataLabels.name.fontSize, V.value.values = R.value.style.chart.bars.dataLabels.value.fontSize);
110
- });
111
- });
112
- j.value && (M.value && j.value.unobserve(M.value), j.value.disconnect()), j.value = new ResizeObserver(e), M.value = k.value.parentNode, j.value.observe(M.value);
113
- }
114
- }
115
- De(() => {
116
- j.value && (M.value && j.value.unobserve(M.value), j.value.disconnect());
117
- });
118
- function ft() {
119
- let e = de({
120
- userConfig: O.config,
121
- defaultConfig: et
122
- }), t = e.theme;
123
- if (!t) return e;
124
- if (!tt.value(e)) return nt(e), e;
125
- let n = de({
126
- userConfig: Se[t] || O.config,
127
- defaultConfig: e
128
- });
129
- return de({
130
- userConfig: O.config,
131
- defaultConfig: n
132
- });
133
- }
134
- let R = l({
135
- get: () => ft(),
136
- set: (e) => e
137
- });
138
- oe({
139
- config: () => R.value,
140
- dataset: () => O.dataset,
141
- component: "VueUiFunnel",
142
- rules: [se.emptyArray, {
143
- test: (e) => e.length > 10,
144
- message: [
145
- "👀 The dataset has a length > 10. Consider:",
146
- "",
147
- "▶️ Aggregating some datapoints into broader categories"
148
- ]
149
- }]
150
- });
151
- let pt = l(() => R.value.userOptions.useCursorPointer), { userOptionsVisible: mt, setUserOptionsVisibility: ht, keepUserOptionState: gt } = ye({ config: R.value }), { svgRef: _t } = be({ config: R.value.style.chart.title });
152
- Me(() => O.config, (e) => {
153
- R.value = ft(), mt.value = !R.value.userOptions.showOnChartHover, dt(), at.value += 1, ot.value += 1, V.value.circles = R.value.style.chart.circles.dataLabels.fontSize, V.value.names = R.value.style.chart.bars.dataLabels.name.fontSize, V.value.values = R.value.style.chart.bars.dataLabels.value.fontSize, B.value.showTable = R.value.table.show;
154
- }, { deep: !0 });
155
- let { isPrinting: z, isImaging: vt, generatePdf: yt, generateImage: bt } = le({
156
- elementId: `funnel_${A.value}`,
157
- fileName: R.value.style.chart.title.text || "vue-ui-funnel",
158
- options: R.value.userOptions.print
159
- }), xt = l(() => R.value.userOptions.show && !R.value.style.chart.title.text), B = x({ showTable: R.value.table.show }), V = x({
160
- circles: R.value.style.chart.circles.dataLabels.fontSize,
161
- names: R.value.style.chart.bars.dataLabels.name.fontSize,
162
- values: R.value.style.chart.bars.dataLabels.value.fontSize
163
- }), H = l({
164
- get: () => ({
165
- height: R.value.style.chart.height,
166
- width: R.value.style.chart.width
167
- }),
168
- set: (e) => e
169
- }), U = l(() => L.value ? O.dataset.map((e, t) => ({
170
- ...e,
171
- color: e.color ? i(e.color) : r(R.value.style.chart.bars.defaultColor, t / O.dataset.length)
172
- })) : []);
173
- setTimeout(() => {
174
- N.value = !0;
175
- }, U.value.length * 150);
176
- function St() {
177
- let e = R.value.style.chart.padding.left, t = R.value.style.chart.padding.top;
178
- return {
179
- left: e,
180
- top: t,
181
- right: H.value.width - R.value.style.chart.padding.right,
182
- bottom: H.value.height - R.value.style.chart.padding.bottom,
183
- width: H.value.width - e - R.value.style.chart.padding.right,
184
- height: H.value.height - t - R.value.style.chart.padding.bottom
185
- };
186
- }
187
- let W = x(St()), G = l(() => W.value.height / O.dataset.length), K = l(() => G.value * R.value.style.chart.bars.gapRatio), Ct = l(() => W.value.width * R.value.style.chart.barCircleSpacingRatio), q = l(() => U.value.map((e, t) => {
188
- let n = G.value - K.value, r = W.value.top + K.value / 2 * t + (G.value - K.value / 2) * t + K.value / 2, i = e.value / U.value[0].value, a = (W.value.width - n - Ct.value) * (e.value / U.value[0].value);
189
- return {
190
- ...e,
191
- cx: W.value.left + n / 2,
192
- cy: r + n / 2,
193
- datapointIndex: t,
194
- fill: e.color,
195
- height: Math.max(n, 0),
196
- proportion: i,
197
- r: Math.max(n / 2, 0),
198
- width: Math.max(a, 0),
199
- x: W.value.left + n + Ct.value,
200
- y: r
201
- };
202
- })), wt = l(() => {
203
- let e = q.value.map((e) => `${e.x + e.width},${e.y + (G.value - K.value) / 2}`);
204
- return `${q.value[0].x},${q.value[0].y + (G.value - K.value) / 2} ${e.toString()} ${q.value.at(-1).x},${q.value.at(-1).y + (G.value - K.value) / 2}`;
205
- }), Tt = l(() => ({
206
- x1: q.value[0].cx,
207
- y1: q.value[0].cy,
208
- x2: q.value.at(-1).cx,
209
- y2: q.value.at(-1).cy
210
- })), J = x(!1);
211
- function Et(e) {
212
- J.value = e, it.value += 1;
213
- }
214
- let Dt = l(() => `${U.value.length * 150}ms`), Y = x(!1);
215
- function Ot() {
216
- Y.value = !Y.value;
217
- }
218
- function kt() {
219
- B.value.showTable = !B.value.showTable;
220
- }
221
- let X = l(() => ({
222
- head: U.value.map((e) => ({
223
- name: e.name,
224
- color: e.color
225
- })),
226
- body: U.value.map((e) => e.value)
227
- })), Z = l(() => {
228
- let e = [
229
- R.value.table.columnNames.series,
230
- R.value.table.columnNames.value,
231
- R.value.table.columnNames.percentage
232
- ], t = X.value.head.map((e, t) => {
233
- let n = o(R.value.style.chart.bars.dataLabels.value.formatter, X.value.body[t], a({
234
- p: R.value.style.chart.bars.dataLabels.value.prefix,
235
- v: X.value.body[t],
236
- s: R.value.style.chart.bars.dataLabels.value.suffix,
237
- r: R.value.table.td.roundingValue
238
- }), { datapoint: q.value[t] }), r = o(R.value.style.chart.circles.dataLabels.formatter, q.value[t].proportion * 100, a({
239
- v: q.value[t].proportion * 100,
240
- s: "%",
241
- r: R.value.table.td.roundingPercentage
242
- }), { datapoint: q.value[t] });
243
- return [
244
- {
245
- color: e.color,
246
- name: e.name
247
- },
248
- n,
249
- r
250
- ];
251
- }), n = {
252
- th: {
253
- backgroundColor: R.value.table.th.backgroundColor,
254
- color: R.value.table.th.color,
255
- outline: R.value.table.th.outline
256
- },
257
- td: {
258
- backgroundColor: R.value.table.td.backgroundColor,
259
- color: R.value.table.td.color,
260
- outline: R.value.table.td.outline
261
- },
262
- breakpoint: R.value.table.responsiveBreakpoint
263
- };
264
- return {
265
- colNames: [
266
- R.value.table.columnNames.series,
267
- R.value.table.columnNames.value,
268
- R.value.table.columnNames.percentage
269
- ],
270
- head: e,
271
- body: t,
272
- config: n
273
- };
274
- });
275
- function Q(e = null) {
276
- Ee(() => {
277
- let r = X.value.head.map((e, t) => [
278
- [e.name],
279
- [X.value.body[t]],
280
- [q.value[t].proportion * 100]
281
- ]), i = [
282
- [R.value.style.chart.title.text],
283
- [R.value.style.chart.title.subtitle.text],
284
- [
285
- [R.value.table.columnNames.series],
286
- [R.value.table.columnNames.value],
287
- ["%"]
288
- ]
289
- ].concat(r), a = n(i);
290
- e ? e(a) : t({
291
- csvContent: a,
292
- title: R.value.style.chart.title.text || "vue-ui-funnel"
293
- });
294
- });
295
- }
296
- function At() {
297
- return U.value;
298
- }
299
- async function jt({ scale: e = 2 } = {}) {
300
- if (!k.value) return;
301
- let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await pe({
302
- domElement: k.value,
303
- base64: !0,
304
- img: !0,
305
- scale: e
306
- });
307
- return {
308
- imageUri: i,
309
- base64: a,
310
- title: R.value.style.chart.title.text,
311
- width: t,
312
- height: n,
313
- aspectRatio: r
314
- };
315
- }
316
- let $ = l(() => {
317
- let e = R.value.table.useDialog && !R.value.table.show, t = B.value.showTable;
318
- return {
319
- component: e ? $e : Je,
320
- title: `${R.value.style.chart.title.text}${R.value.style.chart.title.subtitle.text ? `: ${R.value.style.chart.title.subtitle.text}` : ""}`,
321
- props: e ? {
322
- backgroundColor: R.value.table.th.backgroundColor,
323
- color: R.value.table.th.color,
324
- headerColor: R.value.table.th.color,
325
- headerBg: R.value.table.th.backgroundColor,
326
- isFullscreen: J.value,
327
- fullscreenParent: k.value,
328
- forcedWidth: Math.min(800, window.innerWidth * .8)
329
- } : {
330
- hideDetails: !0,
331
- config: {
332
- open: t,
333
- maxHeight: 1e4,
334
- body: {
335
- backgroundColor: R.value.style.chart.backgroundColor,
336
- color: R.value.style.chart.color
337
- },
338
- head: {
339
- backgroundColor: R.value.style.chart.backgroundColor,
340
- color: R.value.style.chart.color
341
- }
342
- }
343
- }
344
- };
345
- });
346
- Me(() => B.value.showTable, (e) => {
347
- R.value.table.show || (e && R.value.table.useDialog && P.value ? P.value.open() : "close" in P.value && P.value.close());
348
- });
349
- function Mt() {
350
- B.value.showTable = !1, ut.value && ut.value.setTableIconState(!1);
351
- }
352
- let Nt = l(() => R.value.style.chart.backgroundColor), Pt = l(() => R.value.style.chart.title), { exportSvg: Ft, getSvg: It } = ue({
353
- svg: _t,
354
- title: Pt,
355
- backgroundColor: Nt
356
- });
357
- async function Lt({ isCb: e }) {
358
- I.value = !0, await Ee();
359
- try {
360
- if (e) {
361
- let { blob: e, url: t, text: n, dataUrl: r } = await It();
362
- await Promise.resolve(R.value.userOptions.callbacks.svg({
363
- blob: e,
364
- url: t,
365
- text: n,
366
- dataUrl: r
367
- }));
368
- } else await Promise.resolve(Ft());
369
- } finally {
370
- I.value = !1;
371
- }
372
- }
373
- function Rt(e) {
374
- if (e?.stage === "start") {
375
- F.value = !0;
376
- return;
377
- }
378
- if (e?.stage === "end") {
379
- F.value = !1;
380
- return;
381
- }
382
- bt();
383
- }
384
- async function zt() {
385
- if (rt("copyAlt", {
386
- config: R.value,
387
- dataset: U.value
388
- }), !R.value.userOptions.callbacks.altCopy) {
389
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
390
- return;
391
- }
392
- await Promise.resolve(R.value.userOptions.callbacks.altCopy({
393
- config: R.value,
394
- dataset: U.value
395
- }));
396
- }
397
- return he({
398
- getData: At,
399
- getImage: jt,
400
- generatePdf: yt,
401
- generateCsv: Q,
402
- generateImage: bt,
403
- generateSvg: Lt,
404
- toggleTable: kt,
405
- toggleAnnotator: Ot,
406
- toggleFullscreen: Et,
407
- copyAlt: zt
408
- }), (e, t) => (b(), f("div", {
409
- ref_key: "funnelChart",
410
- ref: k,
411
- class: _(`vue-data-ui-component vue-ui-funnel ${J.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${R.value.useCssAnimation ? "" : "vue-ui-dna"}`),
412
- style: y(`font-family:${R.value.style.fontFamily};width:100%; ${R.value.responsive ? "height:100%;" : ""} text-align:center;background:${R.value.style.chart.backgroundColor}`),
413
- id: `funnel_${A.value}`,
414
- onMouseenter: t[1] ||= () => T(ht)(!0),
415
- onMouseleave: t[2] ||= () => T(ht)(!1)
416
- }, [
417
- R.value.userOptions.buttons.annotator ? (b(), u(T(Ze), {
418
- key: 0,
419
- svgRef: T(_t),
420
- backgroundColor: R.value.style.chart.backgroundColor,
421
- color: R.value.style.chart.color,
422
- active: Y.value,
423
- isCursorPointer: pt.value,
424
- onClose: Ot
425
- }, {
426
- "annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
427
- "annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(h({ color: t })), void 0, !0)]),
428
- "annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(h({ mode: t })), void 0, !0)]),
429
- "annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(h({ disabled: t })), void 0, !0)]),
430
- "annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(h({ disabled: t })), void 0, !0)]),
431
- "annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(h({ disabled: t })), void 0, !0)]),
432
- _: 3
433
- }, 8, [
434
- "svgRef",
435
- "backgroundColor",
436
- "color",
437
- "active",
438
- "isCursorPointer"
439
- ])) : d("", !0),
440
- xt.value ? (b(), f("div", {
441
- key: 1,
442
- ref_key: "noTitle",
443
- ref: st,
444
- class: "vue-data-ui-no-title-space",
445
- style: "height:36px; width: 100%;background:transparent"
446
- }, null, 512)) : d("", !0),
447
- R.value.style.chart.title.text ? (b(), f("div", {
448
- key: 2,
449
- ref_key: "chartTitle",
450
- ref: lt,
451
- style: "width:100%;background:transparent;padding-bottom:24px"
452
- }, [(b(), u(me, {
453
- key: `title_${at.value}`,
454
- config: {
455
- title: {
456
- cy: "funnel-div-title",
457
- ...R.value.style.chart.title
458
- },
459
- subtitle: {
460
- cy: "funnel-div-subtitle",
461
- ...R.value.style.chart.title.subtitle
462
- }
463
- }
464
- }, null, 8, ["config"]))], 512)) : d("", !0),
465
- R.value.userOptions.show && L.value && (T(gt) || T(mt)) ? (b(), u(T(Xe), {
466
- ref_key: "userOptionsRef",
467
- ref: ut,
468
- key: `user_option_${it.value}`,
469
- backgroundColor: R.value.style.chart.backgroundColor,
470
- color: R.value.style.chart.color,
471
- isPrinting: T(z),
472
- isImaging: T(vt),
473
- uid: A.value,
474
- hasTooltip: !1,
475
- hasPdf: R.value.userOptions.buttons.pdf,
476
- hasImg: R.value.userOptions.buttons.img,
477
- hasSvg: R.value.userOptions.buttons.svg,
478
- hasXls: R.value.userOptions.buttons.csv,
479
- hasTable: R.value.userOptions.buttons.table,
480
- hasLabel: !1,
481
- hasFullscreen: R.value.userOptions.buttons.fullscreen,
482
- hasAltCopy: R.value.userOptions.buttons.altCopy,
483
- isFullscreen: J.value,
484
- chartElement: k.value,
485
- position: R.value.userOptions.position,
486
- titles: { ...R.value.userOptions.buttonTitles },
487
- hasAnnotator: R.value.userOptions.buttons.annotator,
488
- isAnnotation: Y.value,
489
- callbacks: R.value.userOptions.callbacks,
490
- printScale: R.value.userOptions.print.scale,
491
- tableDialog: R.value.table.useDialog,
492
- isCursorPointer: pt.value,
493
- onToggleAnnotator: Ot,
494
- onToggleFullscreen: Et,
495
- onGeneratePdf: T(yt),
496
- onGenerateImage: Rt,
497
- onGenerateSvg: Lt,
498
- onToggleTable: kt,
499
- onGenerateCsv: Q,
500
- onCopyAlt: zt,
501
- style: y({ visibility: T(gt) ? T(mt) ? "visible" : "hidden" : "visible" })
502
- }, Ce({ _: 2 }, [
503
- e.$slots.menuIcon ? {
504
- name: "menuIcon",
505
- fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(h({
506
- isOpen: t,
507
- color: n
508
- })), void 0, !0)]),
509
- key: "0"
510
- } : void 0,
511
- e.$slots.optionPdf ? {
512
- name: "optionPdf",
513
- fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
514
- key: "1"
515
- } : void 0,
516
- e.$slots.optionCsv ? {
517
- name: "optionCsv",
518
- fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
519
- key: "2"
520
- } : void 0,
521
- e.$slots.optionImg ? {
522
- name: "optionImg",
523
- fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
524
- key: "3"
525
- } : void 0,
526
- e.$slots.optionSvg ? {
527
- name: "optionSvg",
528
- fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
529
- key: "4"
530
- } : void 0,
531
- e.$slots.optionTable ? {
532
- name: "optionTable",
533
- fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
534
- key: "5"
535
- } : void 0,
536
- e.$slots.optionFullscreen ? {
537
- name: "optionFullscreen",
538
- fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(h({
539
- toggleFullscreen: t,
540
- isFullscreen: n
541
- })), void 0, !0)]),
542
- key: "6"
543
- } : void 0,
544
- e.$slots.optionAnnotator ? {
545
- name: "optionAnnotator",
546
- fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(h({
547
- toggleAnnotator: t,
548
- isAnnotator: n
549
- })), void 0, !0)]),
550
- key: "7"
551
- } : void 0,
552
- e.$slots.optionAltCopy ? {
553
- name: "optionAltCopy",
554
- fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(h({ altCopy: t })), void 0, !0)]),
555
- key: "8"
556
- } : void 0,
557
- e.$slots["custom-menu-before"] ? {
558
- name: "custom-menu-before",
559
- fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
560
- key: "9"
561
- } : void 0,
562
- e.$slots["custom-menu-after"] ? {
563
- name: "custom-menu-after",
564
- fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
565
- key: "10"
566
- } : void 0
567
- ]), 1032, [
568
- "backgroundColor",
569
- "color",
570
- "isPrinting",
571
- "isImaging",
572
- "uid",
573
- "hasPdf",
574
- "hasImg",
575
- "hasSvg",
576
- "hasXls",
577
- "hasTable",
578
- "hasFullscreen",
579
- "hasAltCopy",
580
- "isFullscreen",
581
- "chartElement",
582
- "position",
583
- "titles",
584
- "hasAnnotator",
585
- "isAnnotation",
586
- "callbacks",
587
- "printScale",
588
- "tableDialog",
589
- "isCursorPointer",
590
- "onGeneratePdf",
591
- "style"
592
- ])) : d("", !0),
593
- L.value ? (b(), f("svg", {
594
- key: 4,
595
- ref_key: "svgRef",
596
- ref: _t,
597
- xmlns: T(ie),
598
- class: _({
599
- "vue-data-ui-fullscreen--on": J.value,
600
- "vue-data-ui-fulscreen--off": !J.value
601
- }),
602
- viewBox: `0 0 ${H.value.width <= 0 ? 10 : H.value.width} ${H.value.height <= 0 ? 10 : H.value.height}`,
603
- style: y(`max-width:100%; overflow: visible; background:transparent;color:${R.value.style.chart.color}`)
604
- }, [
605
- Te(T(Qe)),
606
- e.$slots["chart-background"] ? (b(), f("foreignObject", {
607
- key: 0,
608
- x: 0,
609
- y: 0,
610
- width: H.value.width <= 0 ? 10 : H.value.width,
611
- height: H.value.height <= 0 ? 10 : H.value.height,
612
- style: { pointerEvents: "none" }
613
- }, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Ie)) : d("", !0),
614
- p("defs", null, [Te(ve, {
615
- t: "linear",
616
- id: `funnel_area_${A.value}`,
617
- x1: "0%",
618
- x2: "100%",
619
- y1: "0%",
620
- y2: "0%",
621
- stops: [
622
- [
623
- "0%",
624
- R.value.style.chart.backgroundColor,
625
- 0
626
- ],
627
- [
628
- "20%",
629
- R.value.style.chart.area.color,
630
- 1
631
- ],
632
- [
633
- "100%",
634
- R.value.style.chart.area.color,
635
- 1
636
- ]
637
- ]
638
- }, null, 8, ["id", "stops"])]),
639
- R.value.style.chart.circleLinks.show ? (b(), f("line", g({ key: 1 }, Tt.value, {
640
- stroke: R.value.style.chart.circleLinks.color,
641
- "stroke-width": 12 * R.value.style.chart.circleLinks.widthRatio,
642
- "stroke-linecap": "round",
643
- class: { animated: R.value.useCssAnimation && !T(D) },
644
- style: {
645
- strokeDasharray: R.value.useCssAnimation && !T(D) ? W.value.height : 0,
646
- strokeDashoffset: R.value.useCssAnimation && !T(D) ? W.value.height : 0
647
- }
648
- }), null, 16, Le)) : d("", !0),
649
- (b(!0), f(c, null, S(q.value, ({ cx: e, cy: t, r: n, fill: r }, i) => (b(), f("circle", g({ ref_for: !0 }, {
650
- cx: e,
651
- cy: t,
652
- r: n,
653
- fill: r
654
- }, {
655
- stroke: R.value.style.chart.circles.stroke,
656
- "stroke-width": R.value.style.chart.circles.strokeWidth,
657
- class: { animated: R.value.useCssAnimation && !N.value && !T(D) },
658
- style: { animationDelay: `${150 * i}ms` }
659
- }), null, 16, Re))), 256)),
660
- (b(!0), f(c, null, S(q.value, (e, t) => (b(), f("text", {
661
- x: e.cx,
662
- y: e.cy + V.value.circles / 3 + R.value.style.chart.circles.dataLabels.offsetY,
663
- "text-anchor": "middle",
664
- "font-size": V.value.circles,
665
- fill: R.value.style.chart.circles.dataLabels.adaptColorToBackground ? T(re)(e.color) : R.value.style.chart.circles.dataLabels.color,
666
- "font-weight": R.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
667
- class: _({ animated: R.value.useCssAnimation && !N.value && !T(D) }),
668
- style: y({ animationDelay: `${150 * t}ms` })
669
- }, w(T(o)(R.value.style.chart.circles.dataLabels.formatter, e.proportion * 100, T(a)({
670
- v: e.proportion * 100,
671
- s: "%",
672
- r: R.value.style.chart.circles.dataLabels.rounding
673
- }), { datapoint: e })), 15, ze))), 256)),
674
- R.value.style.chart.area.show ? (b(), f("polygon", {
675
- key: 2,
676
- points: wt.value,
677
- fill: `url(#funnel_area_${A.value})`,
678
- class: _({ animated: R.value.useCssAnimation && !N.value && !T(D) }),
679
- style: y({ transition: R.value.useCssAnimation ? `all ${150 * U.value.length}ms ease-in` : "none" })
680
- }, null, 14, Be)) : d("", !0),
681
- (b(!0), f(c, null, S(q.value, ({ x: e, y: t, height: n, width: r, fill: i }, a) => (b(), f("rect", g({ ref_for: !0 }, {
682
- x: e,
683
- y: t,
684
- height: n,
685
- width: r,
686
- fill: i
687
- }, {
688
- stroke: R.value.style.chart.bars.stroke,
689
- "stroke-width": R.value.style.chart.bars.strokeWidth,
690
- rx: R.value.style.chart.bars.borderRadius,
691
- class: { animated: R.value.useCssAnimation && !N.value && !T(D) },
692
- style: { animationDelay: `${150 * a}ms` }
693
- }), null, 16, Ve))), 256)),
694
- (b(!0), f(c, null, S(q.value, (e, t) => (b(), f("g", null, [p("text", {
695
- x: e.x + e.width + R.value.style.chart.bars.dataLabels.name.offsetX + 12,
696
- y: e.cy - V.value.names / 2 + R.value.style.chart.bars.dataLabels.name.offsetY,
697
- "text-anchor": "start",
698
- "font-size": V.value.names,
699
- fill: R.value.style.chart.bars.dataLabels.name.color,
700
- "font-weight": R.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
701
- class: _({ animated: R.value.useCssAnimation && !N.value && !T(D) }),
702
- style: y({ animationDelay: `${150 * t}ms` })
703
- }, w(e.name), 15, He), p("text", {
704
- x: e.x + e.width + R.value.style.chart.bars.dataLabels.value.offsetX + 12,
705
- y: e.cy + V.value.values + R.value.style.chart.bars.dataLabels.value.offsetY,
706
- "text-anchor": "start",
707
- "font-size": V.value.values,
708
- fill: R.value.style.chart.bars.dataLabels.value.color,
709
- "font-weight": R.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
710
- class: _({ animated: R.value.useCssAnimation && !N.value && !T(D) }),
711
- style: y({ animationDelay: `${150 * t}ms` })
712
- }, w(T(o)(R.value.style.chart.bars.dataLabels.value.formatter, e.value, T(a)({
713
- p: R.value.style.chart.bars.dataLabels.value.prefix,
714
- v: e.value,
715
- s: R.value.style.chart.bars.dataLabels.value.suffix,
716
- r: R.value.style.chart.bars.dataLabels.value.rounding
717
- }), { datapoint: e })), 15, Ue)]))), 256)),
718
- C(e.$slots, "svg", { svg: {
719
- ...H.value,
720
- isPrintingImg: T(z) || T(vt) || F.value,
721
- isPrintingSvg: I.value
722
- } }, void 0, !0)
723
- ], 14, Fe)) : d("", !0),
724
- e.$slots.watermark ? (b(), f("div", We, [C(e.$slots, "watermark", v(h({ isPrinting: T(z) || T(vt) || F.value || I.value })), void 0, !0)])) : d("", !0),
725
- L.value ? d("", !0) : (b(), u(T(qe), {
726
- key: 6,
727
- config: {
728
- type: "verticalBar",
729
- style: {
730
- backgroundColor: R.value.style.chart.backgroundColor,
731
- verticalBar: {
732
- axis: { color: "#CCCCCC" },
733
- color: "#CCCCCC"
734
- }
735
- }
736
- }
737
- }, null, 8, ["config"])),
738
- e.$slots.source ? (b(), f("div", {
739
- key: 7,
740
- ref_key: "source",
741
- ref: ct,
742
- dir: "auto"
743
- }, [C(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
744
- L.value && R.value.userOptions.buttons.table ? (b(), u(ke($.value.component), g({ key: 8 }, $.value.props, {
745
- ref_key: "tableUnit",
746
- ref: P,
747
- onClose: Mt
748
- }), Ce({
749
- content: E(() => [(b(), u(T(Ye), {
750
- key: `table_${ot.value}`,
751
- colNames: Z.value.colNames,
752
- head: Z.value.head,
753
- body: Z.value.body,
754
- config: Z.value.config,
755
- title: R.value.table.useDialog ? "" : $.value.title,
756
- withCloseButton: !R.value.table.useDialog,
757
- onClose: Mt
758
- }, {
759
- th: E(({ th: e }) => [p("div", {
760
- innerHTML: e,
761
- style: {
762
- display: "flex",
763
- "align-items": "center"
764
- }
765
- }, null, 8, Ge)]),
766
- td: E(({ td: e }) => [we(w(e.name ? e.name : e), 1)]),
767
- _: 1
768
- }, 8, [
769
- "colNames",
770
- "head",
771
- "body",
772
- "config",
773
- "title",
774
- "withCloseButton"
775
- ]))]),
776
- _: 2
777
- }, [R.value.table.useDialog ? {
778
- name: "title",
779
- fn: E(() => [we(w($.value.title), 1)]),
780
- key: "0"
781
- } : void 0, R.value.table.useDialog ? {
782
- name: "actions",
783
- fn: E(() => [p("button", {
784
- tabindex: "0",
785
- class: "vue-ui-user-options-button",
786
- onClick: t[0] ||= (e) => Q(R.value.userOptions.callbacks.csv)
787
- }, [Te(T(Ke), {
788
- name: "fileCsv",
789
- stroke: $.value.props.color
790
- }, null, 8, ["stroke"])])]),
791
- key: "1"
792
- } : void 0]), 1040)) : d("", !0)
793
- ], 46, Pe));
794
- }
795
- }, [["__scopeId", "data-v-7addf37e"]]);
796
- //#endregion
797
- export { Ne as n, Ke as t };