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