vue-data-ui 3.1.1 → 3.1.3

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 (95) hide show
  1. package/dist/{Arrow-xQM7mBzd.js → Arrow-DBaAWGvq.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B2BQC0-h.js → BaseDraggableDialog-BmN9jTP8.js} +2 -2
  3. package/dist/{BaseIcon-DLesaZpW.js → BaseIcon-BcOSijbz.js} +5 -3
  4. package/dist/{ColorPicker-BKvJvFtX.js → ColorPicker-D1yNPt76.js} +2 -2
  5. package/dist/{DataTable-BAf4Obr9.js → DataTable-Cm8Tt9PQ.js} +2 -2
  6. package/dist/Legend-5qvgVkrY.js +85 -0
  7. package/dist/{NonSvgPenAndPaper-Cq4fHmA0.js → NonSvgPenAndPaper-D3QGd7vP.js} +3 -3
  8. package/dist/{PackageVersion-Cv_ypT0N.js → PackageVersion-0XlRFsI_.js} +1 -1
  9. package/dist/{PenAndPaper-B6OvfyHH.js → PenAndPaper-CyH7Ip2i.js} +3 -3
  10. package/dist/{Shape-Cjca5zta.js → Shape-DiplSMFy.js} +1 -1
  11. package/dist/{Slicer-6w3K8gAc.js → Slicer-DG99wPTy.js} +11 -9
  12. package/dist/{SparkTooltip-BV4Z-NMp.js → SparkTooltip-VveQSwlw.js} +1 -1
  13. package/dist/Title-CqYBs02Y.js +88 -0
  14. package/dist/{Tooltip-BTGOEC7w.js → Tooltip-CP0tVHAf.js} +1 -1
  15. package/dist/{UserOptions-CsDlFB0L.js → UserOptions-ZmwlARCV.js} +125 -108
  16. package/dist/{dom-to-png-BOu5-Ohz.js → dom-to-png-DGA4a3xT.js} +1 -1
  17. package/dist/{img-gBDz7xQQ.js → img-DSrvx9J6.js} +1 -1
  18. package/dist/{index-BKQqb9lF.js → index-CaxArMHL.js} +97 -74
  19. package/dist/pdf-BG8PiGFH.js +79 -0
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +28 -3
  22. package/dist/types/vue-data-ui.d.ts +28 -3
  23. package/dist/{useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js → useAutoSizeLabelsInsideViewbox-DmtFf4bt.js} +1 -1
  24. package/dist/{useNestedProp-aBOhgs4U.js → useNestedProp-tWT02_6S.js} +1 -1
  25. package/dist/{usePrinter-BzuXiubT.js → usePrinter-BYtPmEo8.js} +13 -12
  26. package/dist/{vue-data-ui-B6eM6hF3.js → vue-data-ui-DVb8r5z7.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-DBeWmnvH.js → vue-ui-3d-bar-BLKyWpz7.js} +371 -366
  29. package/dist/{vue-ui-accordion-B5QeV3BK.js → vue-ui-accordion-DUlNpLir.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-rZFdUsgz.js → vue-ui-age-pyramid-LLqbXP1m.js} +200 -195
  31. package/dist/{vue-ui-annotator-CCCuslrT.js → vue-ui-annotator-CcYIlcKF.js} +2 -2
  32. package/dist/{vue-ui-bullet-DhJf9mvK.js → vue-ui-bullet-BKmts_u4.js} +7 -7
  33. package/dist/{vue-ui-candlestick-CGVtDKqZ.js → vue-ui-candlestick-C9l_NpXu.js} +225 -220
  34. package/dist/{vue-ui-carousel-table-DLAR3WY8.js → vue-ui-carousel-table-H7xS6aBC.js} +4 -4
  35. package/dist/{vue-ui-chestnut-BXnSxoXB.js → vue-ui-chestnut-CAW0IOdY.js} +344 -340
  36. package/dist/{vue-ui-chord-DH_MwAKX.js → vue-ui-chord-CK5YhCqM.js} +272 -266
  37. package/dist/{vue-ui-circle-pack-Cx_E1R63.js → vue-ui-circle-pack-NLyZgTGF.js} +6 -6
  38. package/dist/{vue-ui-cursor-CEvH1qDS.js → vue-ui-cursor-CyGUrKWU.js} +2 -2
  39. package/dist/vue-ui-dashboard-Cf5pvEzD.js +412 -0
  40. package/dist/{vue-ui-digits-PTozKs3l.js → vue-ui-digits-BZWwwp7c.js} +2 -2
  41. package/dist/{vue-ui-donut-evolution-DD7o-CxF.js → vue-ui-donut-evolution-CaEYMVZj.js} +310 -304
  42. package/dist/{vue-ui-donut-CsEtKJJD.js → vue-ui-donut-g1WHrj6G.js} +348 -343
  43. package/dist/{vue-ui-dumbbell-DfPYl3fu.js → vue-ui-dumbbell-BArS1nXS.js} +293 -287
  44. package/dist/{vue-ui-flow-CSTTZHwg.js → vue-ui-flow-BR0CB5qt.js} +263 -257
  45. package/dist/{vue-ui-funnel-C-NUZqIo.js → vue-ui-funnel-D2OCItvq.js} +206 -200
  46. package/dist/{vue-ui-galaxy-BwsZnU6T.js → vue-ui-galaxy-qgGF1AAf.js} +243 -238
  47. package/dist/{vue-ui-gauge-D9MUneq0.js → vue-ui-gauge-BIXmGyQL.js} +7 -7
  48. package/dist/{vue-ui-gizmo-Dnzs9wSf.js → vue-ui-gizmo-DHEoS051.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CYaQIhy8.js → vue-ui-heatmap-tRzq9BnI.js} +405 -401
  50. package/dist/{vue-ui-history-plot-DMTFzl-_.js → vue-ui-history-plot-DmwHhrDk.js} +305 -299
  51. package/dist/{vue-ui-kpi-CkPotdff.js → vue-ui-kpi-C2b2R5i1.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CCE-bDOJ.js → vue-ui-mini-loader-Bs1Mi1tD.js} +2 -2
  53. package/dist/{vue-ui-molecule-DaN5lroq.js → vue-ui-molecule-BsUvf2v7.js} +188 -183
  54. package/dist/{vue-ui-mood-radar-tM0mmZh8.js → vue-ui-mood-radar-D3JIpVvX.js} +197 -192
  55. package/dist/{vue-ui-nested-donuts-RB4r6beI.js → vue-ui-nested-donuts-dJEgQXTH.js} +326 -320
  56. package/dist/{vue-ui-onion-CxDozHg3.js → vue-ui-onion-D8dF1DdA.js} +8 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-CK9nNExU.js → vue-ui-parallel-coordinate-plot-LmFsg7UA.js} +401 -395
  58. package/dist/{vue-ui-quadrant-C7tLJYn7.js → vue-ui-quadrant-C4O8ki4N.js} +339 -334
  59. package/dist/{vue-ui-quick-chart-MUBAkrHb.js → vue-ui-quick-chart-6bEtTQBG.js} +6 -6
  60. package/dist/{vue-ui-radar-Br4K80I9.js → vue-ui-radar-CfjGWGk3.js} +248 -243
  61. package/dist/{vue-ui-rating-NtvT9r_M.js → vue-ui-rating-D3WSs2OD.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CPQjAy1g.js → vue-ui-relation-circle-DzTfi7Tf.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-C2M_Cjlh.js → vue-ui-ridgeline-NtYOJvDy.js} +267 -263
  64. package/dist/{vue-ui-rings-DEru-cWN.js → vue-ui-rings-CYQ4i71V.js} +229 -224
  65. package/dist/{vue-ui-scatter-CJKkiKle.js → vue-ui-scatter-meJEHdAD.js} +359 -354
  66. package/dist/{vue-ui-skeleton--twnjS2t.js → vue-ui-skeleton-BtILTxx-.js} +3 -3
  67. package/dist/{vue-ui-smiley-CNccdPZ7.js → vue-ui-smiley-B5bELpYD.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-9BFkkC0u.js → vue-ui-spark-trend-lixdWq_N.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-RYAThoA4.js → vue-ui-sparkbar-CaGPav-J.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DkPlmgMF.js → vue-ui-sparkgauge-BZBGYDjs.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-6EkCyYRF.js → vue-ui-sparkhistogram-Bp6KxpjH.js} +4 -4
  72. package/dist/{vue-ui-sparkline-Bl3nj8zd.js → vue-ui-sparkline-CF-EAZa6.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-B88lA7iy.js → vue-ui-sparkstackbar-Cj1LAYC8.js} +3 -3
  74. package/dist/{vue-ui-stackbar-Csj7NhT6.js → vue-ui-stackbar-BrzKhqAK.js} +310 -304
  75. package/dist/{vue-ui-strip-plot-yY9NsUUI.js → vue-ui-strip-plot-BfVVaSFn.js} +246 -240
  76. package/dist/{vue-ui-table-Dg6U31ex.js → vue-ui-table-CBzNgzVP.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-BWU7CAWP.js → vue-ui-table-heatmap-CKz5bA7N.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-DV4Y9aRL.js → vue-ui-table-sparkline-O-Z0YH6u.js} +4 -4
  79. package/dist/{vue-ui-thermometer-C3fKamV-.js → vue-ui-thermometer-DpNyTGNH.js} +7 -7
  80. package/dist/{vue-ui-timer-6VAK9XyF.js → vue-ui-timer-uvshaRMI.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BB-KAkF7.js → vue-ui-tiremarks-A8Akuz-q.js} +6 -6
  82. package/dist/{vue-ui-treemap-GrXkD_3Z.js → vue-ui-treemap-Dvmuo3tM.js} +262 -256
  83. package/dist/{vue-ui-vertical-bar-Mmz6u4aX.js → vue-ui-vertical-bar-eMgRMSKN.js} +310 -306
  84. package/dist/{vue-ui-waffle-DzPVRUOA.js → vue-ui-waffle-Cm8VfnG8.js} +257 -252
  85. package/dist/{vue-ui-wheel-idRCvS5t.js → vue-ui-wheel-Bhsklf_m.js} +6 -6
  86. package/dist/vue-ui-word-cloud-C9HGLsG4.js +817 -0
  87. package/dist/{vue-ui-world-D6s5Eph8.js → vue-ui-world-B_MrjwGJ.js} +257 -252
  88. package/dist/{vue-ui-xy-BKTGSvfU.js → vue-ui-xy-DnYJw2aS.js} +1448 -1438
  89. package/dist/{vue-ui-xy-canvas-BOQyxVRl.js → vue-ui-xy-canvas-C0Snw0Dz.js} +235 -229
  90. package/package.json +1 -1
  91. package/dist/Legend-8_V5egWW.js +0 -72
  92. package/dist/Title-Dz-j6ERs.js +0 -61
  93. package/dist/pdf-Cjsn5GEE.js +0 -61
  94. package/dist/vue-ui-dashboard-CvduVgEy.js +0 -325
  95. package/dist/vue-ui-word-cloud-B2641uNP.js +0 -811
@@ -0,0 +1,817 @@
1
+ import { useCssVars as it, defineAsyncComponent as G, computed as te, ref as m, toRefs as ut, watch as ae, shallowRef as We, onMounted as rt, onBeforeUnmount as ct, createElementBlock as _, openBlock as k, unref as u, normalizeStyle as ye, createBlock as oe, createCommentVNode as W, createVNode as we, createSlots as Xe, withCtx as S, renderSlot as M, normalizeProps as le, guardReactiveProps as ne, normalizeClass as Ee, createElementVNode as ke, Fragment as vt, renderList as dt, toDisplayString as Fe, resolveDynamicComponent as mt, mergeProps as ht, createTextVNode as Ue, nextTick as Le } from "vue";
2
+ import { d as ft, t as pt, u as gt } from "./useResponsive-DfdjqQps.js";
3
+ import { u as bt, c as Ye, t as yt, an as wt, h as kt, a as Ct, p as Ce, b as xt, o as Ge, f as je, g as $t, i as Tt, X as St, v as Mt, w as Ft, y as Pt } from "./index-CaxArMHL.js";
4
+ import { u as At, B as It } from "./BaseScanner-BgWxam9d.js";
5
+ import { u as Ot } from "./usePrinter-BYtPmEo8.js";
6
+ import { u as qe } from "./useNestedProp-tWT02_6S.js";
7
+ import { u as zt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Dt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import Nt from "./img-DSrvx9J6.js";
10
+ import _t from "./Title-CqYBs02Y.js";
11
+ import { u as Bt } from "./usePanZoom-BVca3eMk.js";
12
+ import { _ as Rt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ function Vt(C, g) {
14
+ const { width: v, height: h } = C, f = g.getImageData(0, 0, v, h).data;
15
+ let l = v, o = h, s = 0, x = 0, F = !1;
16
+ for (let r = 0; r < h; r += 1)
17
+ for (let y = 0; y < v; y += 1)
18
+ f[(r * v + y) * 4 + 3] > 1 && (F = !0, y < l && (l = y), y > s && (s = y), r < o && (o = r), r > x && (x = r));
19
+ return F ? [l, o, s, x] : [0, 0, 0, 0];
20
+ }
21
+ function He({
22
+ word: C,
23
+ fontSize: g,
24
+ pad: v,
25
+ canvas: h,
26
+ ctx: d,
27
+ svg: f
28
+ }) {
29
+ d.save(), d.font = `${f.style && f.style.bold ? "bold " : ""}${g}px Arial`;
30
+ const l = d.measureText(C.name), o = Math.ceil(l.width) + 2 + (v ? v * 2 : 0), s = Math.ceil(g) + 2 + (v ? v * 2 : 0);
31
+ h.width = o, h.height = s, d.clearRect(0, 0, o, s), d.font = `${f.style && f.style.bold ? "bold " : ""}${g}px Arial`, d.textAlign = "center", d.textBaseline = "middle", d.fillStyle = "black", d.fillText(C.name, o / 2, s / 2);
32
+ const F = d.getImageData(0, 0, o, s).data, r = [];
33
+ for (let B = 0; B < s; B += 1)
34
+ for (let U = 0; U < o; U += 1)
35
+ F[(B * o + U) * 4 + 3] > 1 && r.push([U, B]);
36
+ const [y, X, E, w] = Vt(h, d);
37
+ return d.restore(), { w: o, h: s, wordMask: r, minX: y, minY: X, maxX: E, maxY: w };
38
+ }
39
+ function Ze({ mask: C, maskW: g, maskH: v, wx: h, wy: d, wordMask: f }) {
40
+ for (let l = 0; l < f.length; l += 1) {
41
+ const o = h + f[l][0], s = d + f[l][1];
42
+ if (o < 0 || s < 0 || o >= g || s >= v || C[s * g + o]) return !1;
43
+ }
44
+ return !0;
45
+ }
46
+ function Je({ mask: C, maskW: g, maskH: v, wx: h, wy: d, wordMask: f }) {
47
+ for (let l = 0; l < f.length; l += 1) {
48
+ const o = h + f[l][0], s = d + f[l][1];
49
+ o >= 0 && s >= 0 && o < g && s < v && (C[s * g + o] = 1);
50
+ }
51
+ }
52
+ function Wt({ wordMask: C, w: g, h: v, dilation: h }) {
53
+ const d = new Set(C.map(([l, o]) => `${l},${o}`)), f = new Set(d);
54
+ for (let [l, o] of C)
55
+ for (let s = -h; s <= h; s += 1)
56
+ for (let x = -h; x <= h; x += 1) {
57
+ if (s === 0 && x === 0) continue;
58
+ const F = l + s, r = o + x;
59
+ F >= 0 && F < g && r >= 0 && r < v && f.add(`${F},${r}`);
60
+ }
61
+ return Array.from(f).map((l) => l.split(",").map(Number));
62
+ }
63
+ function Xt({
64
+ words: C,
65
+ proximity: g = 0,
66
+ svg: v,
67
+ strictPixelPadding: h
68
+ }) {
69
+ const { width: d, height: f } = v, l = Math.round(d), o = Math.round(f), s = 1, x = v.minFontSize, F = Math.min(v.maxFontSize, 100), r = C.map(($) => $.value), y = Math.min(...r), X = Math.max(...r), E = new Uint8Array(l * o), w = document.createElement("canvas"), B = w.getContext("2d", { willReadFrequently: !0 });
70
+ w.width = l, w.height = o;
71
+ const U = 6, me = 2, he = 2, se = 1, Y = Math.floor(l / 2), K = Math.floor(o / 2), e = [...C].sort(($, R) => R.value - $.value), ie = [];
72
+ for (const $ of e) {
73
+ let R = x;
74
+ X !== y && (R = ($.value - y) / (X - y) * (F - x) + x), R = Math.max(x, Math.min(F, R));
75
+ let A = !1, O = R;
76
+ for (; !A && O >= s; ) {
77
+ let { w: I, h: z, wordMask: V, minX: j, minY: q, maxX: H, maxY: Z } = He({
78
+ word: $,
79
+ fontSize: O,
80
+ pad: g,
81
+ canvas: w,
82
+ ctx: B,
83
+ svg: v
84
+ });
85
+ h && (V = Wt({ wordMask: V, w: I, h: z, dilation: 1 }));
86
+ let D = 0, L = 0;
87
+ for (; D < Math.max(l, o) && !A && L < 1e4; ) {
88
+ for (let i = 0; i < 360; i += U) {
89
+ L += 1;
90
+ const P = Math.round(Y + D * Math.cos(i * Math.PI / 180) - I / 2), p = Math.round(K + D * Math.sin(i * Math.PI / 180) - z / 2);
91
+ if (!(P < 0 || p < 0 || P + I > l || p + z > o) && Ze({ mask: E, maskW: l, maskH: o, wx: P, wy: p, wordMask: V })) {
92
+ ie.push({ ...$, x: P - l / 2, y: p - o / 2, fontSize: O, width: I, height: z, angle: 0, minX: j, minY: q, maxX: H, maxY: Z }), Je({ mask: E, maskW: l, maskH: o, wx: P, wy: p, wordMask: V }), A = !0;
93
+ break;
94
+ }
95
+ }
96
+ D += me;
97
+ }
98
+ A || (O -= 1);
99
+ }
100
+ if (!A && O < s) {
101
+ O = s;
102
+ const { w: I, h: z, wordMask: V, minX: j, minY: q, maxX: H, maxY: Z } = He({
103
+ word: $,
104
+ fontSize: O,
105
+ pad: g,
106
+ canvas: w,
107
+ ctx: B,
108
+ svg: v
109
+ });
110
+ let D = 0, L = 0;
111
+ for (; D < Math.max(l, o) && !A && L < 25e3; ) {
112
+ for (let i = 0; i < 360; i += he) {
113
+ L += 1;
114
+ const P = Math.round(Y + D * Math.cos(i * Math.PI / 180) - I / 2), p = Math.round(K + D * Math.sin(i * Math.PI / 180) - z / 2);
115
+ if (!(P < 0 || p < 0 || P + I > l || p + z > o) && Ze({ mask: E, maskW: l, maskH: o, wx: P, wy: p, wordMask: V })) {
116
+ ie.push({ ...$, x: P - l / 2, y: p - o / 2, fontSize: O, width: I, height: z, angle: 0, minX: j, minY: q, maxX: H, maxY: Z }), Je({ mask: E, maskW: l, maskH: o, wx: P, wy: p, wordMask: V }), A = !0;
117
+ break;
118
+ }
119
+ }
120
+ D += se;
121
+ }
122
+ }
123
+ }
124
+ return ie.sort(($, R) => R.fontSize - $.fontSize);
125
+ }
126
+ const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["transform"], Gt = ["x", "y", "width", "height", "onMouseover", "onMouseleave", "onClick"], jt = ["fill", "font-weight", "x", "y", "font-size", "transform"], qt = {
127
+ key: 3,
128
+ class: "vue-data-ui-watermark"
129
+ }, Ht = {
130
+ key: 4,
131
+ "data-dom-to-png-ignore": "",
132
+ class: "reset-wrapper"
133
+ }, Zt = ["innerHTML"], Jt = {
134
+ __name: "vue-ui-word-cloud",
135
+ props: {
136
+ config: {
137
+ type: Object,
138
+ default() {
139
+ return {};
140
+ }
141
+ },
142
+ dataset: {
143
+ type: [Array, String],
144
+ default() {
145
+ return [];
146
+ }
147
+ }
148
+ },
149
+ setup(C, { expose: g }) {
150
+ it((t) => ({
151
+ "794f4713": t.slicerColor
152
+ }));
153
+ const v = G(() => import("./Tooltip-CP0tVHAf.js")), h = G(() => import("./BaseIcon-BcOSijbz.js")), d = G(() => import("./vue-ui-accordion-DUlNpLir.js")), f = G(() => import("./DataTable-Cm8Tt9PQ.js")), l = G(() => import("./PenAndPaper-CyH7Ip2i.js")), o = G(() => import("./UserOptions-ZmwlARCV.js")), s = G(() => import("./PackageVersion-0XlRFsI_.js")), x = G(() => import("./BaseDraggableDialog-BmN9jTP8.js")), { vue_ui_word_cloud: F } = bt(), r = C, y = te({
154
+ get() {
155
+ return !!r.dataset && r.dataset.length;
156
+ },
157
+ set(t) {
158
+ return t;
159
+ }
160
+ }), X = m(Ye()), E = m(0), w = m(null), B = m(null), U = m(null), me = m(0), he = m(0), se = m(!1), Y = m(null), K = m(null), e = m(q()), { loading: ie, FINAL_DATASET: $, manualLoading: R } = At({
161
+ ...ut(r),
162
+ FINAL_CONFIG: e,
163
+ prepareConfig: q,
164
+ skeletonDataset: [
165
+ { name: "Lorem", value: 6 },
166
+ { name: "ipsum", value: 3 },
167
+ { name: "dolor", value: 1 },
168
+ { name: "sit", value: 3 },
169
+ { name: "amet", value: 3 },
170
+ { name: "consectetur", value: 2 },
171
+ { name: "adipiscing", value: 1 },
172
+ { name: "elit", value: 2 },
173
+ { name: "Vivamus", value: 2 },
174
+ { name: "pulvinar", value: 1 },
175
+ { name: "pretium", value: 1 },
176
+ { name: "venenatis", value: 2 },
177
+ { name: "Donec", value: 1 },
178
+ { name: "imperdiet", value: 3 },
179
+ { name: "id", value: 1 },
180
+ { name: "porttitor", value: 2 },
181
+ { name: "tristique", value: 1 },
182
+ { name: "Aenean", value: 2 },
183
+ { name: "ac", value: 5 },
184
+ { name: "commodo", value: 2 },
185
+ { name: "justo", value: 2 },
186
+ { name: "Vestibulum", value: 2 },
187
+ { name: "placerat", value: 1 },
188
+ { name: "molestie", value: 1 },
189
+ { name: "nisl", value: 1 },
190
+ { name: "lacinia", value: 2 },
191
+ { name: "nulla", value: 1 },
192
+ { name: "posuere", value: 2 },
193
+ { name: "quis", value: 3 },
194
+ { name: "ullamcorper", value: 1 },
195
+ { name: "eu", value: 1 },
196
+ { name: "ex", value: 1 },
197
+ { name: "vitae", value: 3 },
198
+ { name: "facilisis", value: 1 },
199
+ { name: "Aliquam", value: 1 },
200
+ { name: "erat", value: 1 },
201
+ { name: "volutpat", value: 1 },
202
+ { name: "Proin", value: 1 },
203
+ { name: "nunc", value: 1 },
204
+ { name: "felis", value: 1 },
205
+ { name: "gravida", value: 3 },
206
+ { name: "sed", value: 1 },
207
+ { name: "orci", value: 1 },
208
+ { name: "Interdum", value: 1 },
209
+ { name: "et", value: 1 },
210
+ { name: "malesuada", value: 1 },
211
+ { name: "fames", value: 1 },
212
+ { name: "ante", value: 1 }
213
+ ],
214
+ skeletonConfig: yt({
215
+ defaultConfig: e.value,
216
+ userConfig: {
217
+ userOptions: { show: !1 },
218
+ table: { show: !1 },
219
+ useCssAnimation: !1,
220
+ animationDelayMs: 0,
221
+ nodeCategories: {},
222
+ nodeCategoryColors: {},
223
+ style: {
224
+ chart: {
225
+ backgroundColor: "#99999930",
226
+ words: {
227
+ color: "#6A6A6A",
228
+ usePalette: !1
229
+ }
230
+ }
231
+ }
232
+ }
233
+ })
234
+ }), A = m(O());
235
+ function O() {
236
+ return typeof $.value == "string" ? wt($.value) : $.value.map((t, n) => ({
237
+ ...t,
238
+ value: kt(t.value)
239
+ }));
240
+ }
241
+ ae(() => r.dataset, () => {
242
+ A.value = O(), xe(), Z();
243
+ });
244
+ const { userOptionsVisible: I, setUserOptionsVisibility: z, keepUserOptionState: V } = zt({ config: e.value }), { svgRef: j } = Dt({ config: e.value.style.chart.title });
245
+ function q() {
246
+ const t = qe({
247
+ userConfig: r.config,
248
+ defaultConfig: F
249
+ });
250
+ return t.theme ? {
251
+ ...qe({
252
+ userConfig: xt.vue_ui_word_cloud[t.theme] || r.config,
253
+ defaultConfig: t
254
+ }),
255
+ customPalette: Ct[t.theme] || Ce
256
+ } : t;
257
+ }
258
+ const H = m({ x: 0, y: 0 });
259
+ function Z() {
260
+ const t = {
261
+ x: 0,
262
+ y: 0,
263
+ width: Math.max(10, i.value.width),
264
+ height: Math.max(10, i.value.height)
265
+ };
266
+ at(t), H.value = {
267
+ x: t.x + t.width / 2,
268
+ y: t.y + t.height / 2
269
+ }, be();
270
+ }
271
+ const D = ft(() => {
272
+ xe();
273
+ }, 10), L = m(!1);
274
+ ae(() => L.value, (t) => {
275
+ t === !1 && (D(), Z());
276
+ }), ae(() => r.config, (t) => {
277
+ e.value = q(), I.value = !e.value.userOptions.showOnChartHover, Ae(), me.value += 1, he.value += 1, T.value.showTable = e.value.table.show, T.value.showTooltip = e.value.style.chart.tooltip.show;
278
+ }, { deep: !0 });
279
+ const i = m({
280
+ width: e.value.style.chart.width,
281
+ height: e.value.style.chart.height,
282
+ maxFontSize: e.value.style.chart.words.maxFontSize,
283
+ minFontSize: e.value.style.chart.words.minFontSize,
284
+ bold: e.value.style.chart.words.bold
285
+ }), P = pt(() => {
286
+ L.value = !0;
287
+ const { width: t, height: n } = gt({
288
+ chart: w.value,
289
+ title: e.value.style.chart.title.text ? B.value : null,
290
+ source: U.value
291
+ });
292
+ requestAnimationFrame(async () => {
293
+ i.value.width = Math.max(10, t), i.value.height = Math.max(10, n - 12), await Le(), L.value = !1;
294
+ });
295
+ }), p = We(null), Q = We(null);
296
+ rt(Ae);
297
+ const Pe = te(() => !!e.value.debug);
298
+ function Ae() {
299
+ Ge(r.dataset) ? je({
300
+ componentName: "VueUiWordCloud",
301
+ type: "dataset",
302
+ debug: Pe.value
303
+ }) : A.value.forEach((t, n) => {
304
+ $t({
305
+ datasetObject: t,
306
+ requiredAttributes: ["name", "value"]
307
+ }).forEach((a) => {
308
+ y.value = !1, je({
309
+ componentName: "VueUiWordCloud",
310
+ type: "datasetSerieAttribute",
311
+ property: a,
312
+ index: n,
313
+ debug: Pe.value
314
+ });
315
+ });
316
+ }), Ge(r.dataset) || (R.value = e.value.loading), e.value.responsive && (p.value && (Q.value && p.value.unobserve(Q.value), p.value.disconnect()), p.value = new ResizeObserver(P), Q.value = w.value.parentNode, p.value.observe(Q.value)), Z();
317
+ }
318
+ ct(() => {
319
+ p.value && (Q.value && p.value.unobserve(Q.value), p.value.disconnect());
320
+ });
321
+ const { isPrinting: Ie, isImaging: Oe, generatePdf: ze, generateImage: De } = Ot({
322
+ elementId: `wordCloud_${X.value}`,
323
+ fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
324
+ options: e.value.userOptions.print
325
+ }), T = m({
326
+ showTable: e.value.table.show,
327
+ showTooltip: e.value.style.chart.tooltip.show
328
+ });
329
+ ae(e, () => {
330
+ T.value = {
331
+ showTable: e.value.table.show,
332
+ showTooltip: e.value.style.chart.tooltip.show
333
+ };
334
+ }, { immediate: !0 });
335
+ function Ke(t, n, a = "Arial") {
336
+ const b = document.createElement("canvas").getContext("2d");
337
+ return b.font = `${n}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${a}`, {
338
+ width: b.measureText(t).width + e.value.style.chart.words.proximity,
339
+ height: n
340
+ };
341
+ }
342
+ const ue = m([]);
343
+ ae(() => r.dataset, xe, { immediate: !0 });
344
+ function xe() {
345
+ const t = [...A.value].map((b) => b.value), n = Math.max(...t), a = Math.min(...t), c = [...A.value].map((b, N) => {
346
+ let J = (b.value - a) / (n - a) * (i.value.maxFontSize - i.value.minFontSize) + i.value.minFontSize;
347
+ J = isNaN(J) ? i.value.minFontSize : J;
348
+ const Ve = Ke(b.name, J);
349
+ return {
350
+ ...b,
351
+ id: Ye(),
352
+ fontSize: J,
353
+ width: Ve.width,
354
+ height: Ve.height,
355
+ color: e.value.style.chart.words.usePalette ? e.value.customPalette[N] || e.value.customPalette[N % e.value.customPalette.length] || Ce[N] || Ce[N % Ce.length] : e.value.style.chart.words.color
356
+ };
357
+ });
358
+ ue.value = Xt({
359
+ words: c,
360
+ svg: i.value,
361
+ proximity: e.value.style.chart.words.proximity,
362
+ strictPixelPadding: e.value.strictPixelPadding
363
+ });
364
+ }
365
+ const fe = te(() => {
366
+ const t = ue.value.map((a) => ({
367
+ name: a.name,
368
+ color: a.color
369
+ })), n = ue.value.map((a) => a.value);
370
+ return { head: t, body: n };
371
+ });
372
+ function $e(t = null) {
373
+ Le(() => {
374
+ const n = fe.value.head.map((b, N) => [[
375
+ b.name
376
+ ], [fe.value.body[N]]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(n), c = Mt(a);
377
+ t ? t(c) : Ft({ csvContent: c, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
378
+ });
379
+ }
380
+ const pe = te(() => {
381
+ const t = [
382
+ e.value.table.columnNames.series,
383
+ e.value.table.columnNames.value
384
+ ], n = fe.value.head.map((b, N) => {
385
+ const J = Tt({ p: e.value.table.td.prefix, v: fe.value.body[N], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
386
+ return [
387
+ {
388
+ color: b.color,
389
+ name: b.name
390
+ },
391
+ J
392
+ ];
393
+ }), a = {
394
+ th: {
395
+ backgroundColor: e.value.table.th.backgroundColor,
396
+ color: e.value.table.th.color,
397
+ outline: e.value.table.th.outline
398
+ },
399
+ td: {
400
+ backgroundColor: e.value.table.td.backgroundColor,
401
+ color: e.value.table.td.color,
402
+ outline: e.value.table.td.outline
403
+ },
404
+ breakpoint: e.value.table.responsiveBreakpoint
405
+ };
406
+ return {
407
+ colNames: [
408
+ e.value.table.columnNames.series,
409
+ e.value.table.columnNames.value
410
+ ],
411
+ head: t,
412
+ body: n,
413
+ config: a
414
+ };
415
+ }), re = m(!1);
416
+ function Ne(t) {
417
+ re.value = t, E.value += 1;
418
+ }
419
+ function Qe() {
420
+ return ue.value;
421
+ }
422
+ function _e() {
423
+ T.value.showTable = !T.value.showTable;
424
+ }
425
+ function Be() {
426
+ T.value.showTooltip = !T.value.showTooltip;
427
+ }
428
+ const ce = m(!1);
429
+ function Te() {
430
+ ce.value = !ce.value;
431
+ }
432
+ const et = te(() => !ce.value && e.value.style.chart.zoom.show), { viewBox: ge, resetZoom: be, isZoom: tt, setInitialViewBox: at } = Bt(j, {
433
+ x: 0,
434
+ y: 0,
435
+ width: i.value.width <= 0 ? 10 : i.value.width,
436
+ height: i.value.height <= 0 ? 10 : i.value.height
437
+ }, 1, et);
438
+ async function ot({ scale: t = 2 } = {}) {
439
+ if (!w.value) return;
440
+ const { width: n, height: a } = w.value.getBoundingClientRect(), c = n / a, { imageUri: b, base64: N } = await Nt({ domElement: w.value, base64: !0, img: !0, scale: t });
441
+ return {
442
+ imageUri: b,
443
+ base64: N,
444
+ title: e.value.style.chart.title.text,
445
+ width: n,
446
+ height: a,
447
+ aspectRatio: c
448
+ };
449
+ }
450
+ const ve = te(() => {
451
+ const t = e.value.table.useDialog && !e.value.table.show, n = T.value.showTable;
452
+ return {
453
+ component: t ? x : d,
454
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
455
+ props: t ? {
456
+ backgroundColor: e.value.table.th.backgroundColor,
457
+ color: e.value.table.th.color,
458
+ headerColor: e.value.table.th.color,
459
+ headerBg: e.value.table.th.backgroundColor,
460
+ isFullscreen: re.value,
461
+ fullscreenParent: w.value,
462
+ forcedWidth: Math.min(500, window.innerWidth * 0.8)
463
+ } : {
464
+ hideDetails: !0,
465
+ config: {
466
+ open: n,
467
+ maxHeight: 1e4,
468
+ body: {
469
+ backgroundColor: e.value.style.chart.backgroundColor,
470
+ color: e.value.style.chart.color
471
+ },
472
+ head: {
473
+ backgroundColor: e.value.style.chart.backgroundColor,
474
+ color: e.value.style.chart.color
475
+ }
476
+ }
477
+ }
478
+ };
479
+ });
480
+ ae(() => T.value.showTable, (t) => {
481
+ e.value.table.show || (t && e.value.table.useDialog && Y.value ? Y.value.open() : "close" in Y.value && Y.value.close());
482
+ });
483
+ function Re() {
484
+ T.value.showTable = !1, K.value && K.value.setTableIconState(!1);
485
+ }
486
+ g({
487
+ getData: Qe,
488
+ getImage: ot,
489
+ generateCsv: $e,
490
+ generatePdf: ze,
491
+ generateImage: De,
492
+ resetZoom: be,
493
+ toggleTable: _e,
494
+ toggleTooltip: Be,
495
+ toggleAnnotator: Te,
496
+ toggleFullscreen: Ne
497
+ });
498
+ const ee = m(null), de = m(!1), Se = m(""), Me = m(null);
499
+ function lt(t, n) {
500
+ ee.value = null, se.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: n });
501
+ }
502
+ function nt(t, n) {
503
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: n });
504
+ }
505
+ function st(t, n) {
506
+ if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: n }), !T.value.showTooltip) return;
507
+ ee.value = t.id, Me.value = { datapoint: t, config: e.value };
508
+ const a = e.value.style.chart.tooltip.customFormat;
509
+ if (de.value = !1, Pt(a))
510
+ try {
511
+ const c = a({
512
+ datapoint: t,
513
+ config: e.value
514
+ });
515
+ typeof c == "string" && (Se.value = c, de.value = !0);
516
+ } catch {
517
+ console.warn("Custom format cannot be applied."), de.value = !1;
518
+ }
519
+ if (!de.value) {
520
+ let c = `<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>`;
521
+ Se.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${c}</div>`;
522
+ }
523
+ se.value = !0;
524
+ }
525
+ return (t, n) => (k(), _("div", {
526
+ class: "vue-ui-word-cloud",
527
+ ref_key: "wordCloudChart",
528
+ ref: w,
529
+ id: `wordCloud_${X.value}`,
530
+ style: ye(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
531
+ onMouseenter: n[2] || (n[2] = () => u(z)(!0)),
532
+ onMouseleave: n[3] || (n[3] = () => u(z)(!1))
533
+ }, [
534
+ e.value.userOptions.buttons.annotator ? (k(), oe(u(l), {
535
+ key: 0,
536
+ svgRef: u(j),
537
+ backgroundColor: e.value.style.chart.backgroundColor,
538
+ color: e.value.style.chart.color,
539
+ active: ce.value,
540
+ onClose: Te
541
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : W("", !0),
542
+ e.value.style.chart.title.text ? (k(), _("div", {
543
+ key: 1,
544
+ ref_key: "chartTitle",
545
+ ref: B,
546
+ style: "width:100%;background:transparent;padding-bottom:24px"
547
+ }, [
548
+ (k(), oe(_t, {
549
+ key: `title_${me.value}`,
550
+ config: {
551
+ title: {
552
+ ...e.value.style.chart.title
553
+ },
554
+ subtitle: {
555
+ ...e.value.style.chart.title.subtitle
556
+ }
557
+ }
558
+ }, null, 8, ["config"]))
559
+ ], 512)) : W("", !0),
560
+ e.value.userOptions.show && y.value && (u(V) || u(I)) ? (k(), oe(u(o), {
561
+ ref_key: "userOptionsRef",
562
+ ref: K,
563
+ key: `user_option_${E.value}`,
564
+ backgroundColor: e.value.style.chart.backgroundColor,
565
+ color: e.value.style.chart.color,
566
+ isPrinting: u(Ie),
567
+ isImaging: u(Oe),
568
+ uid: X.value,
569
+ hasPdf: e.value.userOptions.buttons.pdf,
570
+ hasXls: e.value.userOptions.buttons.csv,
571
+ hasImg: e.value.userOptions.buttons.img,
572
+ hasTable: e.value.userOptions.buttons.table,
573
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
574
+ isFullscreen: re.value,
575
+ titles: { ...e.value.userOptions.buttonTitles },
576
+ chartElement: w.value,
577
+ position: e.value.userOptions.position,
578
+ hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
579
+ isTooltip: T.value.showTooltip,
580
+ hasAnnotator: e.value.userOptions.buttons.annotator,
581
+ isAnnotation: ce.value,
582
+ callbacks: e.value.userOptions.callbacks,
583
+ printScale: e.value.userOptions.print.scale,
584
+ tableDialog: e.value.table.useDialog,
585
+ onToggleFullscreen: Ne,
586
+ onGeneratePdf: u(ze),
587
+ onGenerateCsv: $e,
588
+ onGenerateImage: u(De),
589
+ onToggleTable: _e,
590
+ onToggleTooltip: Be,
591
+ onToggleAnnotator: Te,
592
+ style: ye({
593
+ visibility: u(V) ? u(I) ? "visible" : "hidden" : "visible"
594
+ })
595
+ }, Xe({ _: 2 }, [
596
+ t.$slots.menuIcon ? {
597
+ name: "menuIcon",
598
+ fn: S(({ isOpen: a, color: c }) => [
599
+ M(t.$slots, "menuIcon", le(ne({ isOpen: a, color: c })), void 0, !0)
600
+ ]),
601
+ key: "0"
602
+ } : void 0,
603
+ t.$slots.optionPdf ? {
604
+ name: "optionPdf",
605
+ fn: S(() => [
606
+ M(t.$slots, "optionPdf", {}, void 0, !0)
607
+ ]),
608
+ key: "1"
609
+ } : void 0,
610
+ t.$slots.optionCsv ? {
611
+ name: "optionCsv",
612
+ fn: S(() => [
613
+ M(t.$slots, "optionCsv", {}, void 0, !0)
614
+ ]),
615
+ key: "2"
616
+ } : void 0,
617
+ t.$slots.optionImg ? {
618
+ name: "optionImg",
619
+ fn: S(() => [
620
+ M(t.$slots, "optionImg", {}, void 0, !0)
621
+ ]),
622
+ key: "3"
623
+ } : void 0,
624
+ t.$slots.optionTable ? {
625
+ name: "optionTable",
626
+ fn: S(() => [
627
+ M(t.$slots, "optionTable", {}, void 0, !0)
628
+ ]),
629
+ key: "4"
630
+ } : void 0,
631
+ t.$slots.optionFullscreen ? {
632
+ name: "optionFullscreen",
633
+ fn: S(({ toggleFullscreen: a, isFullscreen: c }) => [
634
+ M(t.$slots, "optionFullscreen", le(ne({ toggleFullscreen: a, isFullscreen: c })), void 0, !0)
635
+ ]),
636
+ key: "5"
637
+ } : void 0,
638
+ t.$slots.optionAnnotator ? {
639
+ name: "optionAnnotator",
640
+ fn: S(({ toggleAnnotator: a, isAnnotator: c }) => [
641
+ M(t.$slots, "optionAnnotator", le(ne({ toggleAnnotator: a, isAnnotator: c })), void 0, !0)
642
+ ]),
643
+ key: "6"
644
+ } : void 0
645
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : W("", !0),
646
+ (k(), _("svg", {
647
+ ref_key: "svgRef",
648
+ ref: j,
649
+ class: Ee({ "vue-data-ui-fullscreen--on": re.value, "vue-data-ui-fulscreen--off": !re.value }),
650
+ xmlns: u(St),
651
+ viewBox: `${u(ge).x} ${u(ge).y} ${u(ge).width} ${u(ge).height}`,
652
+ style: "overflow:hidden;background:transparent;"
653
+ }, [
654
+ we(u(s)),
655
+ t.$slots["chart-background"] ? (k(), _("foreignObject", {
656
+ key: 0,
657
+ x: 0,
658
+ y: 0,
659
+ width: i.value.width <= 0 ? 10 : i.value.width,
660
+ height: i.value.height <= 0 ? 10 : i.value.height,
661
+ style: {
662
+ pointerEvents: "none"
663
+ }
664
+ }, [
665
+ M(t.$slots, "chart-background", {}, void 0, !0)
666
+ ], 8, Lt)) : W("", !0),
667
+ ke("g", {
668
+ transform: `translate(${H.value.x}, ${H.value.y})`
669
+ }, [
670
+ (k(!0), _(vt, null, dt(ue.value, (a, c) => (k(), _("g", null, [
671
+ a.minX !== void 0 ? (k(), _("rect", {
672
+ key: 0,
673
+ x: a.x + a.minX,
674
+ y: a.y + a.minY * 1.25,
675
+ width: a.maxX - a.minX,
676
+ height: a.maxY - a.minY,
677
+ fill: "transparent",
678
+ "pointer-events": "visiblePainted",
679
+ onMouseover: (b) => st(a, c),
680
+ onMouseleave: (b) => lt(a, c),
681
+ onClick: (b) => nt(a, c)
682
+ }, null, 40, Gt)) : W("", !0),
683
+ (k(), _("text", {
684
+ fill: a.color,
685
+ "font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
686
+ key: c,
687
+ x: a.x,
688
+ y: a.y,
689
+ "font-size": a.fontSize,
690
+ transform: `translate(${a.width / 2}, ${a.height / 2})`,
691
+ class: Ee({ animated: e.value.useCssAnimation, "word-selected": ee.value && ee.value === a.id && T.value.showTooltip, "word-not-selected": ee.value && ee.value !== a.id && T.value.showTooltip }),
692
+ "text-anchor": "middle",
693
+ "dominant-baseline": "central",
694
+ style: ye(`animation-delay:${c * e.value.animationDelayMs}ms !important; pointer-events:none;`)
695
+ }, Fe(a.name), 15, jt))
696
+ ]))), 256))
697
+ ], 8, Yt),
698
+ M(t.$slots, "svg", {
699
+ svg: { height: i.value.height, width: i.value.width }
700
+ }, void 0, !0)
701
+ ], 10, Ut)),
702
+ t.$slots.watermark ? (k(), _("div", qt, [
703
+ M(t.$slots, "watermark", le(ne({ isPrinting: u(Ie) || u(Oe) })), void 0, !0)
704
+ ])) : W("", !0),
705
+ u(tt) ? (k(), _("div", Ht, [
706
+ M(t.$slots, "reset-action", { reset: u(be) }, () => [
707
+ ke("button", {
708
+ "data-cy-reset": "",
709
+ tabindex: "0",
710
+ role: "button",
711
+ class: "vue-data-ui-refresh-button",
712
+ style: ye({
713
+ background: e.value.style.chart.backgroundColor
714
+ }),
715
+ onClick: n[0] || (n[0] = (a) => u(be)(!0))
716
+ }, [
717
+ we(u(h), {
718
+ name: "refresh",
719
+ stroke: e.value.style.chart.color
720
+ }, null, 8, ["stroke"])
721
+ ], 4)
722
+ ], !0)
723
+ ])) : W("", !0),
724
+ we(u(v), {
725
+ show: T.value.showTooltip && se.value,
726
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
727
+ color: e.value.style.chart.tooltip.color,
728
+ fontSize: e.value.style.chart.tooltip.fontSize,
729
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
730
+ borderColor: e.value.style.chart.tooltip.borderColor,
731
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
732
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
733
+ position: e.value.style.chart.tooltip.position,
734
+ offsetY: e.value.style.chart.tooltip.offsetY,
735
+ parent: w.value,
736
+ content: Se.value,
737
+ isCustom: de.value,
738
+ smooth: e.value.style.chart.tooltip.smooth,
739
+ backdropFilter: e.value.style.chart.tooltip.backdropFilter
740
+ }, {
741
+ "tooltip-before": S(() => [
742
+ M(t.$slots, "tooltip-before", le(ne({ ...Me.value })), void 0, !0)
743
+ ]),
744
+ "tooltip-after": S(() => [
745
+ M(t.$slots, "tooltip-after", le(ne({ ...Me.value })), void 0, !0)
746
+ ]),
747
+ _: 3
748
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "smooth", "backdropFilter"]),
749
+ t.$slots.source ? (k(), _("div", {
750
+ key: 5,
751
+ ref_key: "source",
752
+ ref: U,
753
+ dir: "auto"
754
+ }, [
755
+ M(t.$slots, "source", {}, void 0, !0)
756
+ ], 512)) : W("", !0),
757
+ y.value ? (k(), oe(mt(ve.value.component), ht({ key: 6 }, ve.value.props, {
758
+ ref_key: "tableUnit",
759
+ ref: Y,
760
+ onClose: Re
761
+ }), Xe({
762
+ content: S(() => [
763
+ (k(), oe(u(f), {
764
+ key: `table_${he.value}`,
765
+ colNames: pe.value.colNames,
766
+ head: pe.value.head,
767
+ body: pe.value.body,
768
+ config: pe.value.config,
769
+ title: e.value.table.useDialog ? "" : ve.value.title,
770
+ withCloseButton: !e.value.table.useDialog,
771
+ onClose: Re
772
+ }, {
773
+ th: S(({ th: a }) => [
774
+ ke("div", {
775
+ innerHTML: a,
776
+ style: { display: "flex", "align-items": "center" }
777
+ }, null, 8, Zt)
778
+ ]),
779
+ td: S(({ td: a }) => [
780
+ Ue(Fe(a.name || a), 1)
781
+ ]),
782
+ _: 1
783
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
784
+ ]),
785
+ _: 2
786
+ }, [
787
+ e.value.table.useDialog ? {
788
+ name: "title",
789
+ fn: S(() => [
790
+ Ue(Fe(ve.value.title), 1)
791
+ ]),
792
+ key: "0"
793
+ } : void 0,
794
+ e.value.table.useDialog ? {
795
+ name: "actions",
796
+ fn: S(() => [
797
+ ke("button", {
798
+ tabindex: "0",
799
+ class: "vue-ui-user-options-button",
800
+ onClick: n[1] || (n[1] = (a) => $e(e.value.userOptions.callbacks.csv))
801
+ }, [
802
+ we(u(h), {
803
+ name: "excel",
804
+ stroke: ve.value.props.color
805
+ }, null, 8, ["stroke"])
806
+ ])
807
+ ]),
808
+ key: "1"
809
+ } : void 0
810
+ ]), 1040)) : W("", !0),
811
+ u(ie) ? (k(), oe(It, { key: 7 })) : W("", !0)
812
+ ], 44, Et));
813
+ }
814
+ }, ca = /* @__PURE__ */ Rt(Jt, [["__scopeId", "data-v-75fed1e5"]]);
815
+ export {
816
+ ca as default
817
+ };