vue-data-ui 3.7.6 → 3.7.8

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 (113) hide show
  1. package/dist/{PackageVersion-DwoTV5mg.js → PackageVersion-CJF7IH9q.js} +1 -1
  2. package/dist/components/vue-ui-3d-bar.js +1 -1
  3. package/dist/components/vue-ui-age-pyramid.js +1 -1
  4. package/dist/components/vue-ui-bullet.js +1 -1
  5. package/dist/components/vue-ui-candlestick.js +1 -1
  6. package/dist/components/vue-ui-carousel-table.js +1 -1
  7. package/dist/components/vue-ui-chestnut.js +1 -1
  8. package/dist/components/vue-ui-chord.js +1 -1
  9. package/dist/components/vue-ui-circle-pack.js +1 -1
  10. package/dist/components/vue-ui-dashboard.js +1 -1
  11. package/dist/components/vue-ui-donut-evolution.js +1 -1
  12. package/dist/components/vue-ui-donut.js +1 -1
  13. package/dist/components/vue-ui-dumbbell.js +1 -1
  14. package/dist/components/vue-ui-flow.js +1 -1
  15. package/dist/components/vue-ui-funnel.js +1 -1
  16. package/dist/components/vue-ui-galaxy.js +1 -1
  17. package/dist/components/vue-ui-gauge.js +1 -1
  18. package/dist/components/vue-ui-gizmo.js +1 -1
  19. package/dist/components/vue-ui-heatmap.js +1 -1
  20. package/dist/components/vue-ui-history-plot.js +1 -1
  21. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  22. package/dist/components/vue-ui-molecule.js +1 -1
  23. package/dist/components/vue-ui-mood-radar.js +1 -1
  24. package/dist/components/vue-ui-nested-donuts.js +1 -1
  25. package/dist/components/vue-ui-onion.js +1 -1
  26. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  27. package/dist/components/vue-ui-quadrant.js +1 -1
  28. package/dist/components/vue-ui-quick-chart.js +1 -1
  29. package/dist/components/vue-ui-radar.js +1 -1
  30. package/dist/components/vue-ui-relation-circle.js +1 -1
  31. package/dist/components/vue-ui-ridgeline.js +1 -1
  32. package/dist/components/vue-ui-rings.js +1 -1
  33. package/dist/components/vue-ui-scatter.js +1 -1
  34. package/dist/components/vue-ui-skeleton.js +1 -1
  35. package/dist/components/vue-ui-spark-trend.js +1 -1
  36. package/dist/components/vue-ui-sparkbar.js +1 -1
  37. package/dist/components/vue-ui-sparkgauge.js +1 -1
  38. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  39. package/dist/components/vue-ui-sparkline.js +1 -1
  40. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  41. package/dist/components/vue-ui-stackbar.js +1 -1
  42. package/dist/components/vue-ui-stackline.js +1 -1
  43. package/dist/components/vue-ui-strip-plot.js +1 -1
  44. package/dist/components/vue-ui-table-sparkline.js +1 -1
  45. package/dist/components/vue-ui-table.js +1 -1
  46. package/dist/components/vue-ui-thermometer.js +1 -1
  47. package/dist/components/vue-ui-timer.js +1 -1
  48. package/dist/components/vue-ui-tiremarks.js +1 -1
  49. package/dist/components/vue-ui-treemap.js +1 -1
  50. package/dist/components/vue-ui-vertical-bar.js +1 -1
  51. package/dist/components/vue-ui-waffle.js +1 -1
  52. package/dist/components/vue-ui-wheel.js +1 -1
  53. package/dist/components/vue-ui-word-cloud.js +1 -1
  54. package/dist/components/vue-ui-world.js +1 -1
  55. package/dist/components/vue-ui-xy.js +1 -1
  56. package/dist/style.css +1 -1
  57. package/dist/{vue-data-ui-CxY3FoZp.js → vue-data-ui-BwZpMZXM.js} +54 -54
  58. package/dist/vue-data-ui.js +55 -55
  59. package/dist/{vue-ui-3d-bar-DIBli46b.js → vue-ui-3d-bar-CXX2mSqh.js} +1 -1
  60. package/dist/{vue-ui-age-pyramid-Cn0tX34v.js → vue-ui-age-pyramid-C-Dl2XUx.js} +1 -1
  61. package/dist/{vue-ui-bullet-ByappHl2.js → vue-ui-bullet-Ccl0kzzA.js} +1 -1
  62. package/dist/{vue-ui-candlestick-CaX9Alej.js → vue-ui-candlestick-hISKdohk.js} +1 -1
  63. package/dist/{vue-ui-carousel-table-BLKFuHz-.js → vue-ui-carousel-table-Dyc_G3Kp.js} +1 -1
  64. package/dist/{vue-ui-chestnut-Cyq0Besb.js → vue-ui-chestnut-9TxPQCHg.js} +1 -1
  65. package/dist/{vue-ui-chord-DZXmMUIh.js → vue-ui-chord-C4OFq_OR.js} +1 -1
  66. package/dist/{vue-ui-circle-pack-DSq84IsF.js → vue-ui-circle-pack-DBv9FNgA.js} +1 -1
  67. package/dist/{vue-ui-dashboard-CmtCoi02.js → vue-ui-dashboard-CwKHLF_b.js} +54 -54
  68. package/dist/{vue-ui-donut-CzusFrIw.js → vue-ui-donut-BXH0Mym3.js} +1 -1
  69. package/dist/{vue-ui-donut-evolution-CpJbR5uV.js → vue-ui-donut-evolution-spIbl1c9.js} +1 -1
  70. package/dist/{vue-ui-dumbbell-Dzqd9E7F.js → vue-ui-dumbbell-DQW2t9iM.js} +1 -1
  71. package/dist/{vue-ui-flow-Chafwpi4.js → vue-ui-flow-Bt-rW9ny.js} +1 -1
  72. package/dist/{vue-ui-funnel-Ch4ECPWw.js → vue-ui-funnel-BWp3H6sk.js} +1 -1
  73. package/dist/{vue-ui-galaxy-DuTCQcw2.js → vue-ui-galaxy-CsJSZjb4.js} +1 -1
  74. package/dist/{vue-ui-gauge-CqfweycF.js → vue-ui-gauge-BbrLA9ay.js} +1 -1
  75. package/dist/{vue-ui-gizmo-DRIZ9jqs.js → vue-ui-gizmo-D-Z8QCwH.js} +1 -1
  76. package/dist/{vue-ui-heatmap-Dpf9ESfm.js → vue-ui-heatmap-C4F0oPir.js} +1 -1
  77. package/dist/{vue-ui-history-plot-CS2mQ6gy.js → vue-ui-history-plot-ChNfFFIF.js} +1 -1
  78. package/dist/{vue-ui-horizontal-bar-C1_GyvH6.js → vue-ui-horizontal-bar-BHhflQVv.js} +1 -1
  79. package/dist/{vue-ui-molecule-C2yuLBPe.js → vue-ui-molecule-BQasD0Pc.js} +1 -1
  80. package/dist/{vue-ui-mood-radar-D6_JKZD0.js → vue-ui-mood-radar-UnfXTNY5.js} +1 -1
  81. package/dist/{vue-ui-nested-donuts-DezXbn3L.js → vue-ui-nested-donuts-CxDSJ7UU.js} +1 -1
  82. package/dist/{vue-ui-onion-B2DOSZET.js → vue-ui-onion-_J9_80mF.js} +1 -1
  83. package/dist/{vue-ui-parallel-coordinate-plot-Cm6Kic4U.js → vue-ui-parallel-coordinate-plot-CHiDNY-h.js} +1 -1
  84. package/dist/{vue-ui-quadrant-N0JObYc0.js → vue-ui-quadrant-DdwtJUik.js} +1 -1
  85. package/dist/{vue-ui-quick-chart-BqIXVDWU.js → vue-ui-quick-chart-BVtuoV8L.js} +175 -175
  86. package/dist/{vue-ui-radar-DIAlL-iA.js → vue-ui-radar-BiMDeEtu.js} +1 -1
  87. package/dist/{vue-ui-relation-circle-BfqW4U8_.js → vue-ui-relation-circle-DYAyIRP1.js} +1 -1
  88. package/dist/{vue-ui-ridgeline-dEWypag2.js → vue-ui-ridgeline-gN5fKjTd.js} +1 -1
  89. package/dist/{vue-ui-rings-CngJTPYC.js → vue-ui-rings-BMxHBIXK.js} +1 -1
  90. package/dist/{vue-ui-scatter-DrrI2Y5p.js → vue-ui-scatter-DTe8stzc.js} +1 -1
  91. package/dist/{vue-ui-skeleton-BG9YjwoO.js → vue-ui-skeleton-Rq_iY34o.js} +1 -1
  92. package/dist/{vue-ui-spark-trend-DBXVFfFJ.js → vue-ui-spark-trend-Bv_c68m9.js} +1 -1
  93. package/dist/{vue-ui-sparkbar-jWF3jfyJ.js → vue-ui-sparkbar-Bts-H5kW.js} +1 -1
  94. package/dist/{vue-ui-sparkgauge-DppgMczB.js → vue-ui-sparkgauge-qe1x-WYv.js} +1 -1
  95. package/dist/{vue-ui-sparkhistogram-CYQ_swIb.js → vue-ui-sparkhistogram-C4AsZoTv.js} +1 -1
  96. package/dist/{vue-ui-sparkline-DR_E6OY3.js → vue-ui-sparkline-4rL3cNOp.js} +1 -1
  97. package/dist/{vue-ui-sparkstackbar-IwTxoPF7.js → vue-ui-sparkstackbar-nAPWa24t.js} +1 -1
  98. package/dist/{vue-ui-stackbar-DfmZsCGm.js → vue-ui-stackbar-DIrK_6U1.js} +1 -1
  99. package/dist/{vue-ui-stackline-M5CH8so-.js → vue-ui-stackline-DrjtZnvk.js} +1 -1
  100. package/dist/{vue-ui-strip-plot-CYDM4Qol.js → vue-ui-strip-plot-BvlJJ05r.js} +1 -1
  101. package/dist/{vue-ui-table-rpcOU1TS.js → vue-ui-table-BXTdd4rQ.js} +2 -2
  102. package/dist/{vue-ui-table-sparkline-D-jJvOFm.js → vue-ui-table-sparkline-D09d-TqT.js} +1 -1
  103. package/dist/{vue-ui-thermometer-Boubn9Xp.js → vue-ui-thermometer-D-3uy1Kn.js} +1 -1
  104. package/dist/{vue-ui-timer-CQSc8aJF.js → vue-ui-timer-fLkuH8-S.js} +1 -1
  105. package/dist/{vue-ui-tiremarks-BQpq2dib.js → vue-ui-tiremarks-CtDyYpos.js} +1 -1
  106. package/dist/{vue-ui-treemap-COMNOsed.js → vue-ui-treemap-Dt-wMdMI.js} +1 -1
  107. package/dist/{vue-ui-waffle-CePh_wup.js → vue-ui-waffle-D-F3_Adz.js} +1 -1
  108. package/dist/{vue-ui-wheel-CgXbmiWd.js → vue-ui-wheel-CCCqyGtv.js} +1 -1
  109. package/dist/vue-ui-word-cloud-IG1Vv_Bs.js +1016 -0
  110. package/dist/{vue-ui-world-DSoHB44E.js → vue-ui-world-DFb4FB41.js} +1 -1
  111. package/dist/{vue-ui-xy-DZWGoVqX.js → vue-ui-xy-CWpPVQDO.js} +3 -3
  112. package/package.json +1 -1
  113. package/dist/vue-ui-word-cloud-CqsMucKT.js +0 -904
@@ -0,0 +1,1016 @@
1
+ import { useCssVars as Ft, defineAsyncComponent as ee, computed as te, ref as h, toRefs as St, watch as be, shallowRef as He, onMounted as Tt, onBeforeUnmount as Mt, createElementBlock as G, openBlock as F, unref as r, normalizeStyle as Te, createBlock as ce, createCommentVNode as q, createVNode as Me, withCtx as y, renderSlot as C, normalizeProps as R, guardReactiveProps as W, createSlots as Ze, normalizeClass as Je, createElementVNode as ye, Fragment as Ot, renderList as zt, toDisplayString as Ee, resolveDynamicComponent as Pt, mergeProps as It, createTextVNode as Ke, nextTick as Qe } from "vue";
2
+ import { d as et, u as Dt } from "./useResponsive-DfdjqQps.js";
3
+ import { c as Et, t as Bt, ap as _t, M as Nt, i as Rt, p as Oe, o as tt, g as ot, k as Wt, d as Vt, X as Xt, u as Yt, q as Ut, x as Lt } from "./lib-C5BH09_g.js";
4
+ import { u as jt, a as Be } from "./useNestedProp-CRoetJdp.js";
5
+ import { u as Gt, B as qt } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as Ht } from "./usePrinter-DCJzEiS8.js";
7
+ import { u as Zt } from "./useSvgExport-DrjCWun4.js";
8
+ import { u as Jt } from "./useThemeCheck-DGJ31Vi5.js";
9
+ import { u as Kt } from "./useUserOptionState-BIvW1Kz7.js";
10
+ import { u as Qt } from "./useChartAccessibility-9icAAmYg.js";
11
+ import eo from "./img-DUzJeMlr.js";
12
+ import to from "./Title-C6xvSWXZ.js";
13
+ import { u as oo } from "./usePanZoom-BVca3eMk.js";
14
+ import { _ as ao } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ function lo(A, x) {
16
+ const { width: f, height: p } = A, g = x.getImageData(0, 0, f, p).data;
17
+ let d = f, c = p, l = 0, v = 0, S = !1;
18
+ for (let b = 0; b < p; b += 1)
19
+ for (let T = 0; T < f; T += 1)
20
+ g[(b * f + T) * 4 + 3] > 1 && (S = !0, T < d && (d = T), T > l && (l = T), b < c && (c = b), b > v && (v = b));
21
+ return S ? [d, c, l, v] : [0, 0, 0, 0];
22
+ }
23
+ function at({
24
+ word: A,
25
+ fontSize: x,
26
+ pad: f,
27
+ canvas: p,
28
+ ctx: m,
29
+ svg: g
30
+ }) {
31
+ m.save(), m.font = `${g.style && g.style.bold ? "bold " : ""}${x}px Arial`;
32
+ const d = m.measureText(A.name), c = Math.ceil(d.width) + 2 + (f ? f * 2 : 0), l = Math.ceil(x) + 2 + (f ? f * 2 : 0);
33
+ p.width = c, p.height = l, m.clearRect(0, 0, c, l), m.font = `${g.style && g.style.bold ? "bold " : ""}${x}px Arial`, m.textAlign = "center", m.textBaseline = "middle", m.fillStyle = "black", m.fillText(A.name, c / 2, l / 2);
34
+ const S = m.getImageData(0, 0, c, l).data, b = [];
35
+ for (let I = 0; I < l; I += 1)
36
+ for (let k = 0; k < c; k += 1)
37
+ S[(I * c + k) * 4 + 3] > 1 && b.push([k, I]);
38
+ const [T, $, H, J] = lo(p, m);
39
+ return m.restore(), { w: c, h: l, wordMask: b, minX: T, minY: $, maxX: H, maxY: J };
40
+ }
41
+ function lt({ mask: A, maskW: x, maskH: f, wx: p, wy: m, wordMask: g }) {
42
+ for (let d = 0; d < g.length; d += 1) {
43
+ const c = p + g[d][0], l = m + g[d][1];
44
+ if (c < 0 || l < 0 || c >= x || l >= f || A[l * x + c]) return !1;
45
+ }
46
+ return !0;
47
+ }
48
+ function nt({ mask: A, maskW: x, maskH: f, wx: p, wy: m, wordMask: g }) {
49
+ for (let d = 0; d < g.length; d += 1) {
50
+ const c = p + g[d][0], l = m + g[d][1];
51
+ c >= 0 && l >= 0 && c < x && l < f && (A[l * x + c] = 1);
52
+ }
53
+ }
54
+ function no({ wordMask: A, w: x, h: f, dilation: p }) {
55
+ const m = new Set(A.map(([d, c]) => `${d},${c}`)), g = new Set(m);
56
+ for (let [d, c] of A)
57
+ for (let l = -p; l <= p; l += 1)
58
+ for (let v = -p; v <= p; v += 1) {
59
+ if (l === 0 && v === 0) continue;
60
+ const S = d + l, b = c + v;
61
+ S >= 0 && S < x && b >= 0 && b < f && g.add(`${S},${b}`);
62
+ }
63
+ return Array.from(g).map((d) => d.split(",").map(Number));
64
+ }
65
+ async function so({
66
+ words: A,
67
+ proximity: x = 0,
68
+ svg: f,
69
+ strictPixelPadding: p,
70
+ onProgress: m
71
+ }) {
72
+ function g() {
73
+ return new Promise((w) => setTimeout(w, 0));
74
+ }
75
+ const { width: d, height: c } = f, l = Math.round(d), v = Math.round(c), S = 1, b = f.minFontSize, T = Math.min(f.maxFontSize, 100), $ = A.map((w) => w.value), H = Math.min(...$), J = Math.max(...$), I = new Uint8Array(l * v), k = document.createElement("canvas"), de = k.getContext("2d", { willReadFrequently: !0 });
76
+ k.width = l, k.height = v;
77
+ const Ce = 6, ke = 2, we = 2, ve = 1, K = Math.floor(l / 2), se = Math.floor(v / 2), he = [...A.map((w, D) => ({
78
+ ...w,
79
+ __wcIndex: D,
80
+ id: w.id != null ? w.id : `${w.name}__${D}`
81
+ }))].sort((w, D) => D.value - w.value), e = [];
82
+ for (const w of he) {
83
+ const D = e.length;
84
+ let re = b;
85
+ J !== H && (re = (w.value - H) / (J - H) * (T - b) + b), re = Math.max(
86
+ b,
87
+ Math.min(T, re)
88
+ );
89
+ let E = !1, B = re;
90
+ for (; !E && B >= S; ) {
91
+ let {
92
+ w: M,
93
+ h: _,
94
+ wordMask: V,
95
+ minX: Q,
96
+ minY: oe,
97
+ maxX: ae,
98
+ maxY: le
99
+ } = at({
100
+ word: w,
101
+ fontSize: B,
102
+ pad: x,
103
+ canvas: k,
104
+ ctx: de,
105
+ svg: f
106
+ });
107
+ p && (V = no({ wordMask: V, w: M, h: _, dilation: 2 }));
108
+ let N = 0, X = 0;
109
+ for (; N < Math.max(l, v) && !E && X < 1e4; ) {
110
+ for (let s = 0; s < 360; s += Ce) {
111
+ X += 1;
112
+ const O = Math.round(
113
+ K + N * Math.cos(s * Math.PI / 180) - M / 2
114
+ ), z = Math.round(
115
+ se + N * Math.sin(s * Math.PI / 180) - _ / 2
116
+ );
117
+ if (!(O < 0 || z < 0 || O + M > l || z + _ > v) && lt({
118
+ mask: I,
119
+ maskW: l,
120
+ maskH: v,
121
+ wx: O,
122
+ wy: z,
123
+ wordMask: V
124
+ })) {
125
+ const { __wcIndex: Y, ...U } = w;
126
+ e.push({
127
+ ...U,
128
+ x: O - l / 2,
129
+ y: z - v / 2,
130
+ fontSize: B,
131
+ width: M,
132
+ height: _,
133
+ angle: 0,
134
+ minX: Q,
135
+ minY: oe,
136
+ maxX: ae,
137
+ maxY: le
138
+ }), nt({
139
+ mask: I,
140
+ maskW: l,
141
+ maskH: v,
142
+ wx: O,
143
+ wy: z,
144
+ wordMask: V
145
+ }), E = !0;
146
+ break;
147
+ }
148
+ }
149
+ N += ke;
150
+ }
151
+ E || (B -= 1);
152
+ }
153
+ if (!E && B < S) {
154
+ B = S;
155
+ const {
156
+ w: M,
157
+ h: _,
158
+ wordMask: V,
159
+ minX: Q,
160
+ minY: oe,
161
+ maxX: ae,
162
+ maxY: le
163
+ } = at({
164
+ word: w,
165
+ fontSize: B,
166
+ pad: x,
167
+ canvas: k,
168
+ ctx: de,
169
+ svg: f
170
+ });
171
+ let N = 0, X = 0;
172
+ for (; N < Math.max(l, v) && !E && X < 25e3; ) {
173
+ for (let s = 0; s < 360; s += we) {
174
+ X += 1;
175
+ const O = Math.round(
176
+ K + N * Math.cos(s * Math.PI / 180) - M / 2
177
+ ), z = Math.round(
178
+ se + N * Math.sin(s * Math.PI / 180) - _ / 2
179
+ );
180
+ if (!(O < 0 || z < 0 || O + M > l || z + _ > v) && lt({
181
+ mask: I,
182
+ maskW: l,
183
+ maskH: v,
184
+ wx: O,
185
+ wy: z,
186
+ wordMask: V
187
+ })) {
188
+ const { __wcIndex: Y, ...U } = w;
189
+ e.push({
190
+ ...U,
191
+ x: O - l / 2,
192
+ y: z - v / 2,
193
+ fontSize: B,
194
+ width: M,
195
+ height: _,
196
+ angle: 0,
197
+ minX: Q,
198
+ minY: oe,
199
+ maxX: ae,
200
+ maxY: le
201
+ }), nt({
202
+ mask: I,
203
+ maskW: l,
204
+ maskH: v,
205
+ wx: O,
206
+ wy: z,
207
+ wordMask: V
208
+ }), E = !0;
209
+ break;
210
+ }
211
+ }
212
+ N += ve;
213
+ }
214
+ }
215
+ if (m && e.length > D) {
216
+ const M = e[e.length - 1];
217
+ m({ word: M, all: e });
218
+ }
219
+ await g();
220
+ }
221
+ return e.sort((w, D) => D.fontSize - w.fontSize);
222
+ }
223
+ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, words: { selectedStroke: "#1A1A1A" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, rt = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", title: { color: "#424242", subtitle: { color: "#757575" } }, words: { selectedStroke: "#FFF8E1" }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, it = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, words: { selectedStroke: "#1E1E1E" }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, words: { selectedStroke: "#1A1A1A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, ct = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, words: { selectedStroke: "#fbfafa" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, dt = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", title: { color: "#50606C", subtitle: { color: "#718890" } }, words: { selectedStroke: "#f6f6fb" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, vt = {
224
+ default: {},
225
+ dark: st,
226
+ celebration: rt,
227
+ celebrationNight: it,
228
+ hack: ut,
229
+ zen: ct,
230
+ concrete: dt
231
+ }, Do = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
232
+ __proto__: null,
233
+ celebration: rt,
234
+ celebrationNight: it,
235
+ concrete: dt,
236
+ dark: st,
237
+ default: vt,
238
+ hack: ut,
239
+ zen: ct
240
+ }, Symbol.toStringTag, { value: "Module" })), ro = ["id", "data-resizing", "data-relayout"], io = ["xmlns", "viewBox"], uo = ["width", "height"], co = ["transform"], vo = ["transform"], ho = ["x", "y", "width", "height", "onMouseover", "onMouseleave", "onClick"], mo = ["fill", "font-weight", "font-size", "transform", "stroke", "stroke-width"], fo = {
241
+ key: 3,
242
+ class: "vue-data-ui-watermark"
243
+ }, po = {
244
+ key: 4,
245
+ "data-dom-to-png-ignore": "",
246
+ class: "reset-wrapper"
247
+ }, go = ["innerHTML"], bo = {
248
+ __name: "vue-ui-word-cloud",
249
+ props: {
250
+ config: {
251
+ type: Object,
252
+ default() {
253
+ return {};
254
+ }
255
+ },
256
+ dataset: {
257
+ type: [Array, String],
258
+ default() {
259
+ return [];
260
+ }
261
+ }
262
+ },
263
+ setup(A, { expose: x }) {
264
+ Ft((t) => ({
265
+ v85c97b12: t.slicerColor
266
+ }));
267
+ const f = ee(() => import("./Tooltip-WD0Ros6G.js")), p = ee(() => import("./BaseIcon-CofSxalQ.js")), m = ee(() => import("./vue-ui-accordion-Bq9tXa5B.js")), g = ee(() => import("./DataTable-CHaOCmsE.js")), d = ee(() => import("./PenAndPaper-HCZQTkqi.js")), c = ee(() => import("./UserOptions-B3I-s3Lw.js")), l = ee(() => import("./PackageVersion-CJF7IH9q.js")), v = ee(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_word_cloud: S } = jt(), { isThemeValid: b, warnInvalidTheme: T } = Jt(), $ = A, H = te({
268
+ get() {
269
+ return !!$.dataset && $.dataset.length;
270
+ },
271
+ set(t) {
272
+ return t;
273
+ }
274
+ }), J = h(Et()), I = h(0), k = h(null), de = h(null), Ce = h(null), ke = h(0), we = h(0), ve = h(!1), K = h(null), se = h(null), xe = h(!1), he = h(!1), e = h(oe()), { loading: w, FINAL_DATASET: D, manualLoading: re } = Gt({
275
+ ...St($),
276
+ FINAL_CONFIG: e,
277
+ prepareConfig: oe,
278
+ skeletonDataset: [
279
+ { name: "Lorem", value: 6 },
280
+ { name: "ipsum", value: 3 },
281
+ { name: "dolor", value: 1 },
282
+ { name: "sit", value: 3 },
283
+ { name: "amet", value: 3 },
284
+ { name: "consectetur", value: 2 },
285
+ { name: "adipiscing", value: 1 },
286
+ { name: "elit", value: 2 },
287
+ { name: "Vivamus", value: 2 },
288
+ { name: "pulvinar", value: 1 },
289
+ { name: "pretium", value: 1 },
290
+ { name: "venenatis", value: 2 },
291
+ { name: "Donec", value: 1 },
292
+ { name: "imperdiet", value: 3 },
293
+ { name: "id", value: 1 },
294
+ { name: "porttitor", value: 2 },
295
+ { name: "tristique", value: 1 },
296
+ { name: "Aenean", value: 2 },
297
+ { name: "ac", value: 5 },
298
+ { name: "commodo", value: 2 },
299
+ { name: "justo", value: 2 },
300
+ { name: "Vestibulum", value: 2 },
301
+ { name: "placerat", value: 1 },
302
+ { name: "molestie", value: 1 },
303
+ { name: "nisl", value: 1 },
304
+ { name: "lacinia", value: 2 },
305
+ { name: "nulla", value: 1 },
306
+ { name: "posuere", value: 2 },
307
+ { name: "quis", value: 3 },
308
+ { name: "ullamcorper", value: 1 },
309
+ { name: "eu", value: 1 },
310
+ { name: "ex", value: 1 },
311
+ { name: "vitae", value: 3 },
312
+ { name: "facilisis", value: 1 },
313
+ { name: "Aliquam", value: 1 },
314
+ { name: "erat", value: 1 },
315
+ { name: "volutpat", value: 1 },
316
+ { name: "Proin", value: 1 },
317
+ { name: "nunc", value: 1 },
318
+ { name: "felis", value: 1 },
319
+ { name: "gravida", value: 3 },
320
+ { name: "sed", value: 1 },
321
+ { name: "orci", value: 1 },
322
+ { name: "Interdum", value: 1 },
323
+ { name: "et", value: 1 },
324
+ { name: "malesuada", value: 1 },
325
+ { name: "fames", value: 1 },
326
+ { name: "ante", value: 1 }
327
+ ],
328
+ skeletonConfig: Bt({
329
+ defaultConfig: e.value,
330
+ userConfig: {
331
+ userOptions: { show: !1 },
332
+ table: { show: !1 },
333
+ useCssAnimation: !1,
334
+ animationDelayMs: 0,
335
+ nodeCategories: {},
336
+ nodeCategoryColors: {},
337
+ style: {
338
+ chart: {
339
+ backgroundColor: "#99999930",
340
+ words: {
341
+ color: "#6A6A6A",
342
+ usePalette: !1,
343
+ selectedStroke: "#CCCCCC"
344
+ }
345
+ }
346
+ }
347
+ }
348
+ })
349
+ }), E = h(B());
350
+ function B() {
351
+ return typeof D.value == "string" ? _t(D.value) : D.value.map((t, a) => ({
352
+ ...t,
353
+ value: Nt(t.value)
354
+ }));
355
+ }
356
+ const { userOptionsVisible: M, setUserOptionsVisibility: _, keepUserOptionState: V } = Kt({ config: e.value }), { svgRef: Q } = Qt({ config: e.value.style.chart.title });
357
+ function oe() {
358
+ const t = Be({
359
+ userConfig: $.config,
360
+ defaultConfig: S
361
+ }), a = t.theme;
362
+ if (!a) return t;
363
+ if (!b.value(t))
364
+ return T(t), t;
365
+ const o = Be({
366
+ userConfig: vt[a] || $.config,
367
+ defaultConfig: t
368
+ }), n = Be({
369
+ userConfig: $.config,
370
+ defaultConfig: o
371
+ });
372
+ return {
373
+ ...n,
374
+ customPalette: n.customPalette.length ? n.customPalette : Rt[a] || Oe
375
+ };
376
+ }
377
+ const ae = h({ x: 0, y: 0 });
378
+ function le() {
379
+ const t = {
380
+ x: 0,
381
+ y: 0,
382
+ width: Math.max(10, s.value.width),
383
+ height: Math.max(10, s.value.height)
384
+ };
385
+ gt(t), ae.value = {
386
+ x: t.x + t.width / 2,
387
+ y: t.y + t.height / 2
388
+ }, Se();
389
+ }
390
+ const N = et(() => {
391
+ Ye();
392
+ }, 100), X = h(!1);
393
+ be(() => X.value, (t) => {
394
+ t === !1 && (he.value = !0, N(), le());
395
+ }), be(() => $.config, (t) => {
396
+ e.value = oe(), M.value = !e.value.userOptions.showOnChartHover, Ne(), ke.value += 1, we.value += 1, P.value.showTable = e.value.table.show, P.value.showTooltip = e.value.style.chart.tooltip.show;
397
+ }, { deep: !0 });
398
+ const s = h({
399
+ width: e.value.style.chart.width,
400
+ height: e.value.style.chart.height,
401
+ maxFontSize: e.value.style.chart.words.maxFontSize,
402
+ minFontSize: e.value.style.chart.words.minFontSize,
403
+ bold: e.value.style.chart.words.bold
404
+ }), O = et(() => {
405
+ const { width: t, height: a } = Dt({
406
+ chart: k.value,
407
+ title: e.value.style.chart.title.text ? de.value : null,
408
+ source: Ce.value
409
+ });
410
+ requestAnimationFrame(async () => {
411
+ s.value.width = Math.max(10, t), s.value.height = Math.max(10, a - 12), await Qe(), X.value = !1;
412
+ });
413
+ }, 100), z = () => {
414
+ X.value = !0, O();
415
+ }, Y = He(null), U = He(null);
416
+ Tt(Ne);
417
+ const _e = te(() => !!e.value.debug);
418
+ function Ne() {
419
+ tt($.dataset) ? ot({
420
+ componentName: "VueUiWordCloud",
421
+ type: "dataset",
422
+ debug: _e.value
423
+ }) : E.value.forEach((t, a) => {
424
+ Wt({
425
+ datasetObject: t,
426
+ requiredAttributes: ["name", "value"]
427
+ }).forEach((o) => {
428
+ H.value = !1, ot({
429
+ componentName: "VueUiWordCloud",
430
+ type: "datasetSerieAttribute",
431
+ property: o,
432
+ index: a,
433
+ debug: _e.value
434
+ });
435
+ });
436
+ }), tt($.dataset) || (re.value = e.value.loading), e.value.responsive && (Y.value && (U.value && Y.value.unobserve(U.value), Y.value.disconnect()), Y.value = new ResizeObserver(z), U.value = k.value.parentNode, Y.value.observe(U.value)), le();
437
+ }
438
+ Mt(() => {
439
+ Y.value && (U.value && Y.value.unobserve(U.value), Y.value.disconnect());
440
+ });
441
+ const { isPrinting: Re, isImaging: We, generatePdf: Ve, generateImage: Xe } = Ht({
442
+ elementId: `wordCloud_${J.value}`,
443
+ fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
444
+ options: e.value.userOptions.print
445
+ }), P = h({
446
+ showTable: e.value.table.show,
447
+ showTooltip: e.value.style.chart.tooltip.show
448
+ });
449
+ be(e, () => {
450
+ P.value = {
451
+ showTable: e.value.table.show,
452
+ showTooltip: e.value.style.chart.tooltip.show
453
+ };
454
+ }, { immediate: !0 });
455
+ function ht(t, a, o = "Arial") {
456
+ const i = document.createElement("canvas").getContext("2d");
457
+ return i.font = `${a}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${o}`, {
458
+ width: i.measureText(t).width + e.value.style.chart.words.proximity,
459
+ height: a
460
+ };
461
+ }
462
+ const L = h([]), me = /* @__PURE__ */ new Map();
463
+ function Ye() {
464
+ const t = [...E.value].map((i) => i.value), a = Math.max(...t), o = Math.min(...t), n = [...E.value].map((i, u) => {
465
+ let j = (i.value - o) / (a - o) * (s.value.maxFontSize - s.value.minFontSize) + s.value.minFontSize;
466
+ j = isNaN(j) ? s.value.minFontSize : j;
467
+ const ne = ht(i.name, j);
468
+ return {
469
+ ...i,
470
+ id: i.id ?? `${i.name}__${u}`,
471
+ fontSize: j,
472
+ width: ne.width,
473
+ height: ne.height,
474
+ color: e.value.style.chart.words.usePalette ? e.value.customPalette[u] || e.value.customPalette[u % e.value.customPalette.length] || Oe[u] || Oe[u % Oe.length] : e.value.style.chart.words.color
475
+ };
476
+ });
477
+ L.value.length = 0, me.clear(), so({
478
+ words: n,
479
+ svg: s.value,
480
+ proximity: e.value.style.chart.words.proximity,
481
+ strictPixelPadding: e.value.strictPixelPadding,
482
+ onProgress: ({ all: i }) => {
483
+ for (const u of i) {
484
+ const j = u.id;
485
+ let ne = me.get(j);
486
+ if (ne === void 0)
487
+ ne = L.value.length, me.set(j, ne), L.value.push({ ...u });
488
+ else {
489
+ const Z = L.value[ne];
490
+ Z.x = u.x, Z.y = u.y, Z.width = u.width, Z.height = u.height, Z.fontSize = u.fontSize, Z.minX = u.minX, Z.minY = u.minY, Z.maxX = u.maxX, Z.maxY = u.maxY;
491
+ }
492
+ }
493
+ }
494
+ }), L.value.sort((i, u) => u.fontSize - i.fontSize), me.clear(), L.value.forEach((i, u) => {
495
+ me.set(i.id, u);
496
+ }), xe.value = !0, he.value = !1;
497
+ }
498
+ const Ae = te(() => {
499
+ const t = L.value.map((o) => ({
500
+ name: o.name,
501
+ color: o.color
502
+ })), a = L.value.map((o) => o.value);
503
+ return { head: t, body: a };
504
+ });
505
+ function ze(t = null) {
506
+ Qe(() => {
507
+ const a = Ae.value.head.map((i, u) => [[
508
+ i.name
509
+ ], [Ae.value.body[u]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(a), n = Yt(o);
510
+ t ? t(n) : Ut({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
511
+ });
512
+ }
513
+ const $e = te(() => {
514
+ const t = [
515
+ e.value.table.columnNames.series,
516
+ e.value.table.columnNames.value
517
+ ], a = Ae.value.head.map((i, u) => {
518
+ const j = Vt({ p: e.value.table.td.prefix, v: Ae.value.body[u], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
519
+ return [
520
+ {
521
+ color: i.color,
522
+ name: i.name
523
+ },
524
+ j
525
+ ];
526
+ }), o = {
527
+ th: {
528
+ backgroundColor: e.value.table.th.backgroundColor,
529
+ color: e.value.table.th.color,
530
+ outline: e.value.table.th.outline
531
+ },
532
+ td: {
533
+ backgroundColor: e.value.table.td.backgroundColor,
534
+ color: e.value.table.td.color,
535
+ outline: e.value.table.td.outline
536
+ },
537
+ breakpoint: e.value.table.responsiveBreakpoint
538
+ };
539
+ return {
540
+ colNames: [
541
+ e.value.table.columnNames.series,
542
+ e.value.table.columnNames.value
543
+ ],
544
+ head: t,
545
+ body: a,
546
+ config: o
547
+ };
548
+ }), ie = h(!1);
549
+ function Ue(t) {
550
+ ie.value = t, I.value += 1;
551
+ }
552
+ function mt() {
553
+ return L.value;
554
+ }
555
+ function Le() {
556
+ P.value.showTable = !P.value.showTable;
557
+ }
558
+ function je() {
559
+ P.value.showTooltip = !P.value.showTooltip;
560
+ }
561
+ const fe = h(!1);
562
+ function Pe() {
563
+ fe.value = !fe.value;
564
+ }
565
+ const ft = te(() => !fe.value && e.value.style.chart.zoom.show), { viewBox: Fe, resetZoom: Se, isZoom: pt, setInitialViewBox: gt } = oo(Q, {
566
+ x: 0,
567
+ y: 0,
568
+ width: s.value.width <= 0 ? 10 : s.value.width,
569
+ height: s.value.height <= 0 ? 10 : s.value.height
570
+ }, 1, ft);
571
+ be(() => $.dataset, () => {
572
+ E.value = B(), e.value.responsive || (Ye(), le());
573
+ }, { immediate: !0 });
574
+ async function bt({ scale: t = 2 } = {}) {
575
+ if (!k.value) return;
576
+ const { width: a, height: o } = k.value.getBoundingClientRect(), n = a / o, { imageUri: i, base64: u } = await eo({ domElement: k.value, base64: !0, img: !0, scale: t });
577
+ return {
578
+ imageUri: i,
579
+ base64: u,
580
+ title: e.value.style.chart.title.text,
581
+ width: a,
582
+ height: o,
583
+ aspectRatio: n
584
+ };
585
+ }
586
+ const pe = te(() => {
587
+ const t = e.value.table.useDialog && !e.value.table.show, a = P.value.showTable;
588
+ return {
589
+ component: t ? v : m,
590
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
591
+ props: t ? {
592
+ backgroundColor: e.value.table.th.backgroundColor,
593
+ color: e.value.table.th.color,
594
+ headerColor: e.value.table.th.color,
595
+ headerBg: e.value.table.th.backgroundColor,
596
+ isFullscreen: ie.value,
597
+ fullscreenParent: k.value,
598
+ forcedWidth: Math.min(500, window.innerWidth * 0.8)
599
+ } : {
600
+ hideDetails: !0,
601
+ config: {
602
+ open: a,
603
+ maxHeight: 1e4,
604
+ body: {
605
+ backgroundColor: e.value.style.chart.backgroundColor,
606
+ color: e.value.style.chart.color
607
+ },
608
+ head: {
609
+ backgroundColor: e.value.style.chart.backgroundColor,
610
+ color: e.value.style.chart.color
611
+ }
612
+ }
613
+ }
614
+ };
615
+ });
616
+ be(() => P.value.showTable, (t) => {
617
+ e.value.table.show || (t && e.value.table.useDialog && K.value ? K.value.open() : "close" in K.value && K.value.close());
618
+ });
619
+ function Ge() {
620
+ P.value.showTable = !1, se.value && se.value.setTableIconState(!1);
621
+ }
622
+ const yt = te(() => e.value.style.chart.backgroundColor), Ct = te(() => e.value.style.chart.title), { exportSvg: kt, getSvg: wt } = Zt({
623
+ svg: Q,
624
+ title: Ct,
625
+ backgroundColor: yt
626
+ });
627
+ async function qe({ isCb: t }) {
628
+ if (t) {
629
+ const { blob: a, url: o, text: n, dataUrl: i } = await wt();
630
+ e.value.userOptions.callbacks.svg({ blob: a, url: o, text: n, dataUrl: i });
631
+ } else
632
+ kt();
633
+ }
634
+ x({
635
+ getData: mt,
636
+ getImage: bt,
637
+ generateCsv: ze,
638
+ generatePdf: Ve,
639
+ generateImage: Xe,
640
+ generateSvg: qe,
641
+ resetZoom: Se,
642
+ toggleTable: Le,
643
+ toggleTooltip: je,
644
+ toggleAnnotator: Pe,
645
+ toggleFullscreen: Ue
646
+ });
647
+ const ue = h(null), ge = h(!1), Ie = h(""), De = h(null);
648
+ function xt(t, a) {
649
+ ue.value = null, ve.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
650
+ }
651
+ function At(t, a) {
652
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
653
+ }
654
+ function $t(t, a) {
655
+ if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), !P.value.showTooltip) return;
656
+ ue.value = t.id, De.value = { datapoint: t, config: e.value };
657
+ const o = e.value.style.chart.tooltip.customFormat;
658
+ if (ge.value = !1, Lt(o))
659
+ try {
660
+ const n = o({
661
+ datapoint: t,
662
+ config: e.value
663
+ });
664
+ typeof n == "string" && (Ie.value = n, ge.value = !0);
665
+ } catch {
666
+ console.warn("Custom format cannot be applied."), ge.value = !1;
667
+ }
668
+ if (!ge.value) {
669
+ let n = `<svg viewBox="0 0 10 10" height="${e.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${t.color}"/></svg><span>${t.name}:</span><b>${(t.value || 0).toFixed(e.value.style.chart.tooltip.roundingValue)}</b>`;
670
+ Ie.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${n}</div>`;
671
+ }
672
+ ve.value = !0;
673
+ }
674
+ return (t, a) => (F(), G("div", {
675
+ class: "vue-data-ui-component vue-ui-word-cloud",
676
+ ref_key: "wordCloudChart",
677
+ ref: k,
678
+ id: `wordCloud_${J.value}`,
679
+ "data-resizing": X.value,
680
+ "data-relayout": he.value,
681
+ style: Te(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
682
+ onMouseenter: a[2] || (a[2] = () => r(_)(!0)),
683
+ onMouseleave: a[3] || (a[3] = () => r(_)(!1))
684
+ }, [
685
+ e.value.userOptions.buttons.annotator ? (F(), ce(r(d), {
686
+ key: 0,
687
+ svgRef: r(Q),
688
+ backgroundColor: e.value.style.chart.backgroundColor,
689
+ color: e.value.style.chart.color,
690
+ active: fe.value,
691
+ onClose: Pe
692
+ }, {
693
+ "annotator-action-close": y(() => [
694
+ C(t.$slots, "annotator-action-close", {}, void 0, !0)
695
+ ]),
696
+ "annotator-action-color": y(({ color: o }) => [
697
+ C(t.$slots, "annotator-action-color", R(W({ color: o })), void 0, !0)
698
+ ]),
699
+ "annotator-action-draw": y(({ mode: o }) => [
700
+ C(t.$slots, "annotator-action-draw", R(W({ mode: o })), void 0, !0)
701
+ ]),
702
+ "annotator-action-undo": y(({ disabled: o }) => [
703
+ C(t.$slots, "annotator-action-undo", R(W({ disabled: o })), void 0, !0)
704
+ ]),
705
+ "annotator-action-redo": y(({ disabled: o }) => [
706
+ C(t.$slots, "annotator-action-redo", R(W({ disabled: o })), void 0, !0)
707
+ ]),
708
+ "annotator-action-delete": y(({ disabled: o }) => [
709
+ C(t.$slots, "annotator-action-delete", R(W({ disabled: o })), void 0, !0)
710
+ ]),
711
+ _: 3
712
+ }, 8, ["svgRef", "backgroundColor", "color", "active"])) : q("", !0),
713
+ e.value.style.chart.title.text ? (F(), G("div", {
714
+ key: 1,
715
+ ref_key: "chartTitle",
716
+ ref: de,
717
+ style: "width:100%;background:transparent;padding-bottom:24px"
718
+ }, [
719
+ (F(), ce(to, {
720
+ key: `title_${ke.value}`,
721
+ config: {
722
+ title: {
723
+ ...e.value.style.chart.title
724
+ },
725
+ subtitle: {
726
+ ...e.value.style.chart.title.subtitle
727
+ }
728
+ }
729
+ }, null, 8, ["config"]))
730
+ ], 512)) : q("", !0),
731
+ e.value.userOptions.show && H.value && (r(V) || r(M)) ? (F(), ce(r(c), {
732
+ ref_key: "userOptionsRef",
733
+ ref: se,
734
+ key: `user_option_${I.value}`,
735
+ backgroundColor: e.value.style.chart.backgroundColor,
736
+ color: e.value.style.chart.color,
737
+ isPrinting: r(Re),
738
+ isImaging: r(We),
739
+ uid: J.value,
740
+ hasPdf: e.value.userOptions.buttons.pdf,
741
+ hasXls: e.value.userOptions.buttons.csv,
742
+ hasImg: e.value.userOptions.buttons.img,
743
+ hasSvg: e.value.userOptions.buttons.svg,
744
+ hasTable: e.value.userOptions.buttons.table,
745
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
746
+ isFullscreen: ie.value,
747
+ titles: { ...e.value.userOptions.buttonTitles },
748
+ chartElement: k.value,
749
+ position: e.value.userOptions.position,
750
+ hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
751
+ isTooltip: P.value.showTooltip,
752
+ hasAnnotator: e.value.userOptions.buttons.annotator,
753
+ isAnnotation: fe.value,
754
+ callbacks: e.value.userOptions.callbacks,
755
+ printScale: e.value.userOptions.print.scale,
756
+ tableDialog: e.value.table.useDialog,
757
+ onToggleFullscreen: Ue,
758
+ onGeneratePdf: r(Ve),
759
+ onGenerateCsv: ze,
760
+ onGenerateImage: r(Xe),
761
+ onGenerateSvg: qe,
762
+ onToggleTable: Le,
763
+ onToggleTooltip: je,
764
+ onToggleAnnotator: Pe,
765
+ style: Te({
766
+ visibility: r(V) ? r(M) ? "visible" : "hidden" : "visible"
767
+ })
768
+ }, Ze({ _: 2 }, [
769
+ t.$slots.menuIcon ? {
770
+ name: "menuIcon",
771
+ fn: y(({ isOpen: o, color: n }) => [
772
+ C(t.$slots, "menuIcon", R(W({ isOpen: o, color: n })), void 0, !0)
773
+ ]),
774
+ key: "0"
775
+ } : void 0,
776
+ t.$slots.optionPdf ? {
777
+ name: "optionPdf",
778
+ fn: y(() => [
779
+ C(t.$slots, "optionPdf", {}, void 0, !0)
780
+ ]),
781
+ key: "1"
782
+ } : void 0,
783
+ t.$slots.optionCsv ? {
784
+ name: "optionCsv",
785
+ fn: y(() => [
786
+ C(t.$slots, "optionCsv", {}, void 0, !0)
787
+ ]),
788
+ key: "2"
789
+ } : void 0,
790
+ t.$slots.optionImg ? {
791
+ name: "optionImg",
792
+ fn: y(() => [
793
+ C(t.$slots, "optionImg", {}, void 0, !0)
794
+ ]),
795
+ key: "3"
796
+ } : void 0,
797
+ t.$slots.optionSvg ? {
798
+ name: "optionSvg",
799
+ fn: y(() => [
800
+ C(t.$slots, "optionSvg", {}, void 0, !0)
801
+ ]),
802
+ key: "4"
803
+ } : void 0,
804
+ t.$slots.optionTable ? {
805
+ name: "optionTable",
806
+ fn: y(() => [
807
+ C(t.$slots, "optionTable", {}, void 0, !0)
808
+ ]),
809
+ key: "5"
810
+ } : void 0,
811
+ t.$slots.optionFullscreen ? {
812
+ name: "optionFullscreen",
813
+ fn: y(({ toggleFullscreen: o, isFullscreen: n }) => [
814
+ C(t.$slots, "optionFullscreen", R(W({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
815
+ ]),
816
+ key: "6"
817
+ } : void 0,
818
+ t.$slots.optionAnnotator ? {
819
+ name: "optionAnnotator",
820
+ fn: y(({ toggleAnnotator: o, isAnnotator: n }) => [
821
+ C(t.$slots, "optionAnnotator", R(W({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
822
+ ]),
823
+ key: "7"
824
+ } : void 0
825
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : q("", !0),
826
+ (F(), G("svg", {
827
+ ref_key: "svgRef",
828
+ ref: Q,
829
+ class: Je({ "vue-data-ui-fullscreen--on": ie.value, "vue-data-ui-fulscreen--off": !ie.value }),
830
+ xmlns: r(Xt),
831
+ viewBox: `${r(Fe).x} ${r(Fe).y} ${r(Fe).width} ${r(Fe).height}`,
832
+ style: "overflow:hidden;background:transparent;"
833
+ }, [
834
+ Me(r(l)),
835
+ t.$slots["chart-background"] ? (F(), G("foreignObject", {
836
+ key: 0,
837
+ x: 0,
838
+ y: 0,
839
+ width: s.value.width <= 0 ? 10 : s.value.width,
840
+ height: s.value.height <= 0 ? 10 : s.value.height,
841
+ style: {
842
+ pointerEvents: "none"
843
+ }
844
+ }, [
845
+ C(t.$slots, "chart-background", {}, void 0, !0)
846
+ ], 8, uo)) : q("", !0),
847
+ ye("g", {
848
+ transform: `translate(${ae.value.x}, ${ae.value.y})`,
849
+ class: Je({ "wc-finalized": xe.value })
850
+ }, [
851
+ (F(!0), G(Ot, null, zt(L.value, (o, n) => (F(), G("g", {
852
+ key: o.id,
853
+ class: "vue-ui-word-cloud-word",
854
+ transform: `translate(${o.x}, ${o.y})`
855
+ }, [
856
+ o.minX !== void 0 ? (F(), G("rect", {
857
+ key: 0,
858
+ x: o.minX,
859
+ y: o.minY * 1.25,
860
+ width: o.maxX - o.minX,
861
+ height: o.maxY - o.minY,
862
+ fill: "transparent",
863
+ "pointer-events": "visiblePainted",
864
+ onMouseover: (i) => $t(o, n),
865
+ onMouseleave: (i) => xt(o, n),
866
+ onClick: (i) => At(o, n)
867
+ }, null, 40, ho)) : q("", !0),
868
+ ye("text", {
869
+ fill: o.color,
870
+ "font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
871
+ x: 0,
872
+ y: 0,
873
+ "font-size": o.fontSize,
874
+ transform: `translate(${o.width / 2}, ${o.height / 2})`,
875
+ "text-anchor": "middle",
876
+ "dominant-baseline": "central",
877
+ "paint-order": "stroke fill",
878
+ stroke: !ue.value || ue.value === o.id ? e.value.style.chart.words.selectedStroke : void 0,
879
+ "stroke-width": o.height * 0.05,
880
+ "stroke-linecap": "round",
881
+ "stroke-linejoin": "round",
882
+ style: Te(`
883
+ pointer-events:none;
884
+ fill-opacity:${!ue.value || ue.value === o.id || !xe.value ? 1 : e.value.style.chart.words.hoverOpacity} !important;
885
+ `)
886
+ }, Ee(o.name), 13, mo)
887
+ ], 8, vo))), 128))
888
+ ], 10, co),
889
+ C(t.$slots, "svg", {
890
+ svg: { height: s.value.height, width: s.value.width }
891
+ }, void 0, !0)
892
+ ], 10, io)),
893
+ t.$slots.watermark ? (F(), G("div", fo, [
894
+ C(t.$slots, "watermark", R(W({ isPrinting: r(Re) || r(We) })), void 0, !0)
895
+ ])) : q("", !0),
896
+ r(pt) ? (F(), G("div", po, [
897
+ C(t.$slots, "reset-action", { reset: r(Se) }, () => [
898
+ ye("button", {
899
+ "data-cy-reset": "",
900
+ tabindex: "0",
901
+ role: "button",
902
+ class: "vue-data-ui-refresh-button",
903
+ style: Te({
904
+ background: e.value.style.chart.backgroundColor
905
+ }),
906
+ onClick: a[0] || (a[0] = (o) => r(Se)(!0))
907
+ }, [
908
+ Me(r(p), {
909
+ name: "refresh",
910
+ stroke: e.value.style.chart.color
911
+ }, null, 8, ["stroke"])
912
+ ], 4)
913
+ ], !0)
914
+ ])) : q("", !0),
915
+ Me(r(f), {
916
+ show: P.value.showTooltip && ve.value,
917
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
918
+ color: e.value.style.chart.tooltip.color,
919
+ fontSize: e.value.style.chart.tooltip.fontSize,
920
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
921
+ borderColor: e.value.style.chart.tooltip.borderColor,
922
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
923
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
924
+ position: e.value.style.chart.tooltip.position,
925
+ offsetY: e.value.style.chart.tooltip.offsetY,
926
+ parent: k.value,
927
+ content: Ie.value,
928
+ isCustom: ge.value,
929
+ isFullscreen: ie.value,
930
+ smooth: e.value.style.chart.tooltip.smooth,
931
+ backdropFilter: e.value.style.chart.tooltip.backdropFilter,
932
+ smoothForce: e.value.style.chart.tooltip.smoothForce,
933
+ smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
934
+ }, {
935
+ "tooltip-before": y(() => [
936
+ C(t.$slots, "tooltip-before", R(W({ ...De.value })), void 0, !0)
937
+ ]),
938
+ "tooltip-after": y(() => [
939
+ C(t.$slots, "tooltip-after", R(W({ ...De.value })), void 0, !0)
940
+ ]),
941
+ _: 3
942
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
943
+ t.$slots.source ? (F(), G("div", {
944
+ key: 5,
945
+ ref_key: "source",
946
+ ref: Ce,
947
+ dir: "auto"
948
+ }, [
949
+ C(t.$slots, "source", {}, void 0, !0)
950
+ ], 512)) : q("", !0),
951
+ H.value && e.value.userOptions.buttons.table ? (F(), ce(Pt(pe.value.component), It({ key: 6 }, pe.value.props, {
952
+ ref_key: "tableUnit",
953
+ ref: K,
954
+ onClose: Ge
955
+ }), Ze({
956
+ content: y(() => [
957
+ (F(), ce(r(g), {
958
+ key: `table_${we.value}`,
959
+ colNames: $e.value.colNames,
960
+ head: $e.value.head,
961
+ body: $e.value.body,
962
+ config: $e.value.config,
963
+ title: e.value.table.useDialog ? "" : pe.value.title,
964
+ withCloseButton: !e.value.table.useDialog,
965
+ onClose: Ge
966
+ }, {
967
+ th: y(({ th: o }) => [
968
+ ye("div", {
969
+ innerHTML: o,
970
+ style: { display: "flex", "align-items": "center" }
971
+ }, null, 8, go)
972
+ ]),
973
+ td: y(({ td: o }) => [
974
+ Ke(Ee(o.name || o), 1)
975
+ ]),
976
+ _: 1
977
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
978
+ ]),
979
+ _: 2
980
+ }, [
981
+ e.value.table.useDialog ? {
982
+ name: "title",
983
+ fn: y(() => [
984
+ Ke(Ee(pe.value.title), 1)
985
+ ]),
986
+ key: "0"
987
+ } : void 0,
988
+ e.value.table.useDialog ? {
989
+ name: "actions",
990
+ fn: y(() => [
991
+ ye("button", {
992
+ tabindex: "0",
993
+ class: "vue-ui-user-options-button",
994
+ onClick: a[1] || (a[1] = (o) => ze(e.value.userOptions.callbacks.csv))
995
+ }, [
996
+ Me(r(p), {
997
+ name: "excel",
998
+ stroke: pe.value.props.color
999
+ }, null, 8, ["stroke"])
1000
+ ])
1001
+ ]),
1002
+ key: "1"
1003
+ } : void 0
1004
+ ]), 1040)) : q("", !0),
1005
+ r(w) ? (F(), ce(qt, { key: 7 })) : q("", !0)
1006
+ ], 44, ro));
1007
+ }
1008
+ }, yo = /* @__PURE__ */ ao(bo, [["__scopeId", "data-v-3516630b"]]), Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1009
+ __proto__: null,
1010
+ default: yo
1011
+ }, Symbol.toStringTag, { value: "Module" }));
1012
+ export {
1013
+ Do as a,
1014
+ Eo as b,
1015
+ yo as v
1016
+ };