vue-data-ui 3.9.1 → 3.9.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 (151) hide show
  1. package/dist/{BaseDraggableDialog-B6wHUQPl.js → BaseDraggableDialog-n3raFtf2.js} +1 -1
  2. package/dist/{BaseIcon-CQaciFyv.js → BaseIcon-Bcm8I1fZ.js} +3 -2
  3. package/dist/{BaseZoomControls-AMmyXEyM.js → BaseZoomControls-gNf811C7.js} +45 -34
  4. package/dist/{ColorPicker-nZHFmXUV.js → ColorPicker-C4ClF-aL.js} +1 -1
  5. package/dist/{DataTable-C8cgUUyx.js → DataTable-DFcqksx2.js} +1 -1
  6. package/dist/{NonSvgPenAndPaper-CVjActC2.js → NonSvgPenAndPaper-D44f2zrW.js} +2 -2
  7. package/dist/{PackageVersion-CIhhY-aH.js → PackageVersion-Cx3U3jgV.js} +1 -1
  8. package/dist/{PenAndPaper-DtbXViIl.js → PenAndPaper-Cjiyv0O9.js} +2 -2
  9. package/dist/{Slicer-DtlEs698.js → Slicer-DFcLRKwb.js} +1 -1
  10. package/dist/{SlicerPreview-DmzwkUJ4.js → SlicerPreview-Bhjrz2jx.js} +1 -1
  11. package/dist/{Title-osQjQYc-.js → Title-Bf2WqM40.js} +1 -1
  12. package/dist/{UserOptions-DeiXBImO.js → UserOptions-DKK-Opvk.js} +1 -1
  13. package/dist/components/vue-ui-3d-bar.js +1 -1
  14. package/dist/components/vue-ui-accordion.js +1 -1
  15. package/dist/components/vue-ui-age-pyramid.js +1 -1
  16. package/dist/components/vue-ui-annotator.js +1 -1
  17. package/dist/components/vue-ui-bullet.js +1 -1
  18. package/dist/components/vue-ui-candlestick.js +1 -1
  19. package/dist/components/vue-ui-carousel-table.js +1 -1
  20. package/dist/components/vue-ui-chestnut.js +1 -1
  21. package/dist/components/vue-ui-chord.js +1 -1
  22. package/dist/components/vue-ui-circle-pack.js +1 -1
  23. package/dist/components/vue-ui-cursor.js +1 -1
  24. package/dist/components/vue-ui-dag.js +1 -1
  25. package/dist/components/vue-ui-dashboard.js +1 -1
  26. package/dist/components/vue-ui-digits.js +1 -1
  27. package/dist/components/vue-ui-donut-evolution.js +1 -1
  28. package/dist/components/vue-ui-donut.js +1 -1
  29. package/dist/components/vue-ui-dumbbell.js +1 -1
  30. package/dist/components/vue-ui-flow.js +1 -1
  31. package/dist/components/vue-ui-funnel.js +1 -1
  32. package/dist/components/vue-ui-galaxy.js +1 -1
  33. package/dist/components/vue-ui-gauge.js +1 -1
  34. package/dist/components/vue-ui-geo.js +1 -1
  35. package/dist/components/vue-ui-gizmo.js +1 -1
  36. package/dist/components/vue-ui-heatmap.js +1 -1
  37. package/dist/components/vue-ui-history-plot.js +1 -1
  38. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  39. package/dist/components/vue-ui-icon.js +1 -1
  40. package/dist/components/vue-ui-kpi.js +1 -1
  41. package/dist/components/vue-ui-mini-loader.js +1 -1
  42. package/dist/components/vue-ui-molecule.js +1 -1
  43. package/dist/components/vue-ui-mood-radar.js +1 -1
  44. package/dist/components/vue-ui-nested-donuts.js +1 -1
  45. package/dist/components/vue-ui-onion.js +1 -1
  46. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  47. package/dist/components/vue-ui-quadrant.js +1 -1
  48. package/dist/components/vue-ui-quick-chart.js +1 -1
  49. package/dist/components/vue-ui-radar.js +1 -1
  50. package/dist/components/vue-ui-rating.js +1 -1
  51. package/dist/components/vue-ui-relation-circle.js +1 -1
  52. package/dist/components/vue-ui-ridgeline.js +1 -1
  53. package/dist/components/vue-ui-rings.js +1 -1
  54. package/dist/components/vue-ui-scatter.js +1 -1
  55. package/dist/components/vue-ui-skeleton.js +1 -1
  56. package/dist/components/vue-ui-smiley.js +1 -1
  57. package/dist/components/vue-ui-spark-trend.js +1 -1
  58. package/dist/components/vue-ui-sparkbar.js +1 -1
  59. package/dist/components/vue-ui-sparkgauge.js +1 -1
  60. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  61. package/dist/components/vue-ui-sparkline.js +1 -1
  62. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  63. package/dist/components/vue-ui-stackbar.js +1 -1
  64. package/dist/components/vue-ui-stackline.js +1 -1
  65. package/dist/components/vue-ui-strip-plot.js +1 -1
  66. package/dist/components/vue-ui-table-heatmap.js +1 -1
  67. package/dist/components/vue-ui-table-sparkline.js +1 -1
  68. package/dist/components/vue-ui-table.js +1 -1
  69. package/dist/components/vue-ui-thermometer.js +1 -1
  70. package/dist/components/vue-ui-timer.js +1 -1
  71. package/dist/components/vue-ui-tiremarks.js +1 -1
  72. package/dist/components/vue-ui-treemap.js +1 -1
  73. package/dist/components/vue-ui-vertical-bar.js +1 -1
  74. package/dist/components/vue-ui-waffle.js +1 -1
  75. package/dist/components/vue-ui-wheel.js +1 -1
  76. package/dist/components/vue-ui-word-cloud.js +1 -1
  77. package/dist/components/vue-ui-world.js +1 -1
  78. package/dist/components/vue-ui-xy-canvas.js +1 -1
  79. package/dist/components/vue-ui-xy.js +1 -1
  80. package/dist/style.css +1 -1
  81. package/dist/types/vue-data-ui.d.ts +17 -23
  82. package/dist/{useNestedProp-BeKjhKny.js → useNestedProp-DjZhR3_5.js} +11 -0
  83. package/dist/{vue-data-ui-bVCjAfu8.js → vue-data-ui-B7Axn7yb.js} +67 -67
  84. package/dist/vue-data-ui.js +70 -70
  85. package/dist/{vue-ui-3d-bar-Bs1SXAWI.js → vue-ui-3d-bar-BW-lnKGl.js} +3 -3
  86. package/dist/{vue-ui-accordion-nCaoOi6x.js → vue-ui-accordion-BbkkniuF.js} +2 -2
  87. package/dist/{vue-ui-age-pyramid-D25YLhPh.js → vue-ui-age-pyramid-D3wuUYw9.js} +3 -3
  88. package/dist/{vue-ui-annotator-3wBuXKBn.js → vue-ui-annotator-BNTBBxok.js} +4 -4
  89. package/dist/{vue-ui-bullet-XX1owNiy.js → vue-ui-bullet-D6eDCcCM.js} +3 -3
  90. package/dist/{vue-ui-candlestick-CbKnRXLs.js → vue-ui-candlestick-DnDsrru6.js} +4 -4
  91. package/dist/{vue-ui-carousel-table-B95eZm5f.js → vue-ui-carousel-table-CSnQrLGZ.js} +2 -2
  92. package/dist/{vue-ui-chestnut-D6B8mFCb.js → vue-ui-chestnut-CNeF97-x.js} +2 -2
  93. package/dist/{vue-ui-chord-C-Fe5nTC.js → vue-ui-chord-IHMYgU6P.js} +3 -3
  94. package/dist/{vue-ui-circle-pack-DbGOEbwG.js → vue-ui-circle-pack-CX-PKwMX.js} +3 -3
  95. package/dist/{vue-ui-cursor-D99JZotY.js → vue-ui-cursor-DttTxd7y.js} +2 -2
  96. package/dist/{vue-ui-dag-D7R60BRH.js → vue-ui-dag-BMXgf925.js} +4 -4
  97. package/dist/{vue-ui-dashboard-Dxhaj5E6.js → vue-ui-dashboard-Diw4ce8Q.js} +66 -66
  98. package/dist/{vue-ui-digits-D2zs8kUV.js → vue-ui-digits-SXDDgXdv.js} +1 -1
  99. package/dist/{vue-ui-donut-CbHumHFw.js → vue-ui-donut-C5YmHwzL.js} +234 -234
  100. package/dist/{vue-ui-donut-evolution--rlD_bzN.js → vue-ui-donut-evolution-DDj2bBEY.js} +4 -4
  101. package/dist/{vue-ui-dumbbell-Bak094f4.js → vue-ui-dumbbell-CL2zfaa9.js} +3 -3
  102. package/dist/{vue-ui-flow-BU_3xWDD.js → vue-ui-flow-B9AhZW00.js} +3 -3
  103. package/dist/{vue-ui-funnel-aOfTIY8A.js → vue-ui-funnel-BfEAIZTb.js} +3 -3
  104. package/dist/{vue-ui-galaxy-CFnCDW6L.js → vue-ui-galaxy-YKJJZuMK.js} +3 -3
  105. package/dist/{vue-ui-gauge-Te_U6eYB.js → vue-ui-gauge-CZq9JsEo.js} +3 -3
  106. package/dist/{vue-ui-geo-qkJZph6o.js → vue-ui-geo-B6PyEQr0.js} +4 -4
  107. package/dist/{vue-ui-gizmo-BKGL0hrf.js → vue-ui-gizmo-HUo5_TOP.js} +2 -2
  108. package/dist/{vue-ui-heatmap-CxupvmxZ.js → vue-ui-heatmap-J8KhjPqj.js} +4 -4
  109. package/dist/{vue-ui-history-plot-CRNGUd--.js → vue-ui-history-plot-C5kQV6LA.js} +3 -3
  110. package/dist/{vue-ui-horizontal-bar-GXt7JlrG.js → vue-ui-horizontal-bar-B7xXn1ex.js} +8 -8
  111. package/dist/{vue-ui-kpi-C_sejZsA.js → vue-ui-kpi-P-XmbJWS.js} +2 -2
  112. package/dist/{vue-ui-mini-loader-BEBv2BjZ.js → vue-ui-mini-loader-Ba1L_dXD.js} +1 -1
  113. package/dist/{vue-ui-molecule-D5MQWvsl.js → vue-ui-molecule-CZmwGy3H.js} +2 -2
  114. package/dist/{vue-ui-mood-radar-DkwW-6_J.js → vue-ui-mood-radar-BHuAyycM.js} +3 -3
  115. package/dist/{vue-ui-nested-donuts-Cl2CtNHY.js → vue-ui-nested-donuts-nNoaEbow.js} +3 -3
  116. package/dist/{vue-ui-onion-BbTd3-9h.js → vue-ui-onion-BshL66Mw.js} +3 -3
  117. package/dist/{vue-ui-parallel-coordinate-plot-CAuAUcJe.js → vue-ui-parallel-coordinate-plot-CJ3kM13A.js} +3 -3
  118. package/dist/{vue-ui-quadrant-CiQOwv_x.js → vue-ui-quadrant-Dy1Jv-kw.js} +3 -3
  119. package/dist/{vue-ui-quick-chart-Db_p50n_.js → vue-ui-quick-chart-BbboXq-a.js} +3 -3
  120. package/dist/{vue-ui-radar-Cq0FzSuo.js → vue-ui-radar-B5hEh8N4.js} +3 -3
  121. package/dist/{vue-ui-rating-Ci09laQN.js → vue-ui-rating-Dz4fQoXn.js} +1 -1
  122. package/dist/{vue-ui-relation-circle-0TKhiI54.js → vue-ui-relation-circle-B0_y669X.js} +3 -3
  123. package/dist/{vue-ui-ridgeline-BpKSoxMw.js → vue-ui-ridgeline-BI0y8eXQ.js} +3 -3
  124. package/dist/{vue-ui-rings-vn5kZZRA.js → vue-ui-rings-DrUtCdK6.js} +3 -3
  125. package/dist/{vue-ui-scatter-CF_h6seO.js → vue-ui-scatter-RNbQn_9g.js} +3 -3
  126. package/dist/{vue-ui-skeleton-pcNjmtIm.js → vue-ui-skeleton-CC8Hpc0I.js} +2 -2
  127. package/dist/{vue-ui-smiley-BW0ksZH3.js → vue-ui-smiley-sVz4LzSA.js} +1 -1
  128. package/dist/{vue-ui-spark-trend-Gwr_mhU3.js → vue-ui-spark-trend-rmjin0iU.js} +2 -2
  129. package/dist/{vue-ui-sparkbar-Ti79zXlf.js → vue-ui-sparkbar-CLH2uuJe.js} +2 -2
  130. package/dist/{vue-ui-sparkgauge-Cw076CAR.js → vue-ui-sparkgauge-CoJpHwni.js} +2 -2
  131. package/dist/{vue-ui-sparkhistogram-DAQatxbk.js → vue-ui-sparkhistogram-Q3jR_iUb.js} +2 -2
  132. package/dist/{vue-ui-sparkline-DIFjHdAd.js → vue-ui-sparkline-cvuMrbcv.js} +2 -2
  133. package/dist/{vue-ui-sparkstackbar-CV48OIlq.js → vue-ui-sparkstackbar-DPJL9KSc.js} +2 -2
  134. package/dist/{vue-ui-stackbar-iNQuoaFJ.js → vue-ui-stackbar-CFXVCz6S.js} +4 -4
  135. package/dist/{vue-ui-stackline-Ba_T3bRL.js → vue-ui-stackline-DK7j5aaa.js} +4 -4
  136. package/dist/{vue-ui-strip-plot-DQHiecxa.js → vue-ui-strip-plot-DTpf71XO.js} +3 -3
  137. package/dist/{vue-ui-table-BNvnkqgr.js → vue-ui-table-C3f-J0L6.js} +4 -4
  138. package/dist/{vue-ui-table-heatmap-BecLm3ow.js → vue-ui-table-heatmap-7lER15Z2.js} +2 -2
  139. package/dist/{vue-ui-table-sparkline-Z9G-8VPL.js → vue-ui-table-sparkline-CLNhjUOy.js} +2 -2
  140. package/dist/{vue-ui-thermometer-NJ6mFchh.js → vue-ui-thermometer-rEu0nnWc.js} +3 -3
  141. package/dist/{vue-ui-timer-BzWAHC6N.js → vue-ui-timer-CTuT13zQ.js} +4 -4
  142. package/dist/{vue-ui-tiremarks-DUVReJRZ.js → vue-ui-tiremarks-CxfGnFGL.js} +3 -3
  143. package/dist/{vue-ui-treemap-pLbU0XEi.js → vue-ui-treemap-DU8_UnvP.js} +4 -4
  144. package/dist/{vue-ui-waffle-QkCm05fN.js → vue-ui-waffle-CCTw3K5R.js} +3 -3
  145. package/dist/{vue-ui-wheel-DaRAOHXK.js → vue-ui-wheel-DwmBHPVq.js} +3 -3
  146. package/dist/vue-ui-word-cloud-ByIMPclD.js +1433 -0
  147. package/dist/{vue-ui-world-BS0oWBVp.js → vue-ui-world-Cvrw9DCl.js} +2 -2
  148. package/dist/{vue-ui-xy-l6mUNMUu.js → vue-ui-xy-CMBkDzNs.js} +5 -5
  149. package/dist/{vue-ui-xy-canvas-CLoA6DTt.js → vue-ui-xy-canvas-C1ZHlQ3Y.js} +6 -6
  150. package/package.json +1 -1
  151. package/dist/vue-ui-word-cloud-CEIaALCH.js +0 -1419
@@ -1,1419 +0,0 @@
1
- import { useCssVars as zt, defineAsyncComponent as oe, computed as ae, ref as M, toRefs as Rt, watch as we, shallowRef as Ge, onMounted as Yt, onBeforeUnmount as Dt, createElementBlock as G, openBlock as _, unref as S, normalizeStyle as Me, createBlock as ve, createCommentVNode as J, createVNode as Ie, withCtx as O, renderSlot as P, normalizeProps as N, guardReactiveProps as V, createSlots as Je, normalizeClass as Ke, createElementVNode as xe, Fragment as Wt, renderList as _t, toDisplayString as Ye, resolveDynamicComponent as Bt, mergeProps as Nt, createTextVNode as Qe, nextTick as et } from "vue";
2
- import { d as tt, u as Vt } from "./useResponsive-DfdjqQps.js";
3
- import { c as Zt, t as Ut, H as Lt, T as Ht, i as jt, p as Oe, o as ot, g as at, k as qt, d as Gt, X as Jt, u as Kt, q as Qt, x as eo } from "./lib-_nVZfi2t.js";
4
- import { u as to, a as De } from "./useNestedProp-BeKjhKny.js";
5
- import { u as oo, B as ao } from "./BaseScanner-BMpwQAfz.js";
6
- import { u as no } from "./usePrinter-DXIMGR61.js";
7
- import { u as lo } from "./useSvgExport-DrjCWun4.js";
8
- import { u as so } from "./useThemeCheck-DGJ31Vi5.js";
9
- import { u as io } from "./useUserOptionState-BIvW1Kz7.js";
10
- import { u as ro } from "./useChartAccessibility-9icAAmYg.js";
11
- import uo from "./img-C5q4A7ke.js";
12
- import co from "./Title-osQjQYc-.js";
13
- import { u as mo } from "./usePanZoom-CDF7rb3o.js";
14
- import { _ as vo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- function fo({
16
- word: o,
17
- fontSize: l,
18
- pad: m,
19
- canvas: c,
20
- ctx: r,
21
- svg: d
22
- }) {
23
- const a = `${d.style && d.style.bold ? "bold " : ""}${l}px Arial`;
24
- r.font = a;
25
- const p = r.measureText(o.name), v = Math.ceil(p.width) + 2 + (m ? m * 2 : 0), g = Math.ceil(l) + 2 + (m ? m * 2 : 0);
26
- c.width = v, c.height = g, r.font = a, r.textAlign = "center", r.textBaseline = "middle", r.fillStyle = "black", r.fillText(o.name, v / 2, g / 2);
27
- const b = r.getImageData(0, 0, v, g).data, f = [], u = [];
28
- let s = v, A = g, k = 0, x = 0, h = !1;
29
- for (let w = 0; w < g; w += 1) {
30
- const B = w * v * 4;
31
- let D = -1, R = !1;
32
- for (let z = 0; z < v; z += 1) {
33
- const Z = B + z * 4 + 3;
34
- b[Z] > 1 ? (f.push([z, w]), h = !0, z < s && (s = z), z > k && (k = z), w < A && (A = w), w > x && (x = w), R || (R = !0, D = z)) : R && (u.push([w, D, z - 1]), R = !1, D = -1);
35
- }
36
- R && u.push([w, D, v - 1]);
37
- }
38
- return h || (s = 0, A = 0, k = 0, x = 0), {
39
- w: v,
40
- h: g,
41
- wordMask: f,
42
- runs: u,
43
- minX: s,
44
- minY: A,
45
- maxX: k,
46
- maxY: x
47
- };
48
- }
49
- function ho(o) {
50
- const l = [];
51
- if (!o.length) return l;
52
- let m = o[0][1], c = o[0][0], r = c;
53
- for (let d = 1; d < o.length; d += 1) {
54
- const i = o[d][0], a = o[d][1];
55
- a !== m ? (l.push([m, c, r]), m = a, c = i, r = i) : (i === r + 1 || (l.push([m, c, r]), c = i), r = i);
56
- }
57
- return l.push([m, c, r]), l;
58
- }
59
- function it(o, l) {
60
- return 4294967295 >>> 32 - (l - o + 1) << o >>> 0;
61
- }
62
- function rt(o) {
63
- return 4294967295 << o >>> 0;
64
- }
65
- function ut(o) {
66
- return 4294967295 >>> 31 - o >>> 0;
67
- }
68
- function po({
69
- maskBits: o,
70
- maskRowStride: l,
71
- maskW: m,
72
- maskH: c,
73
- wx: r,
74
- wy: d,
75
- runs: i
76
- }) {
77
- for (let a = 0; a < i.length; a += 1) {
78
- const p = i[a][0], v = i[a][1], g = i[a][2], y = d + p;
79
- if (y < 0 || y >= c) return !1;
80
- const b = r + v, f = r + g;
81
- if (b < 0 || f >= m) return !1;
82
- const u = y * l, s = b >>> 5, A = f >>> 5, k = b & 31, x = f & 31;
83
- if (s === A) {
84
- const h = o[u + s], w = it(k, x);
85
- if (h & w) return !1;
86
- } else {
87
- {
88
- const h = o[u + s], w = rt(k);
89
- if (h & w) return !1;
90
- }
91
- for (let h = s + 1; h < A; h += 1)
92
- if (o[u + h]) return !1;
93
- {
94
- const h = o[u + A], w = ut(x);
95
- if (h & w) return !1;
96
- }
97
- }
98
- }
99
- return !0;
100
- }
101
- function go({
102
- maskBits: o,
103
- maskRowStride: l,
104
- maskW: m,
105
- maskH: c,
106
- wx: r,
107
- wy: d,
108
- runs: i
109
- }) {
110
- for (let a = 0; a < i.length; a += 1) {
111
- const p = i[a][0], v = i[a][1], g = i[a][2], y = d + p;
112
- if (y < 0 || y >= c) continue;
113
- const b = r + v, f = r + g;
114
- if (f < 0 || b >= m) continue;
115
- const u = y * l, s = b >>> 5, A = f >>> 5, k = b & 31, x = f & 31;
116
- if (s === A) {
117
- const h = it(k, x);
118
- o[u + s] |= h;
119
- } else {
120
- {
121
- const h = rt(k);
122
- o[u + s] |= h;
123
- }
124
- for (let h = s + 1; h < A; h += 1)
125
- o[u + h] = 4294967295;
126
- {
127
- const h = ut(x);
128
- o[u + A] |= h;
129
- }
130
- }
131
- }
132
- }
133
- function bo({ wordMask: o, w: l, h: m, dilation: c }) {
134
- const r = new Uint8Array(l * m), d = [];
135
- for (let a = 0; a < o.length; a += 1) {
136
- const p = o[a][0], g = o[a][1] * l + p;
137
- r[g] || (r[g] = 1, d.push(g));
138
- }
139
- for (let a = 0; a < d.length; a += 1) {
140
- const p = d[a], v = p / l | 0, g = p - v * l;
141
- for (let y = -c; y <= c; y += 1) {
142
- const b = v + y;
143
- if (b < 0 || b >= m) continue;
144
- const f = b * l;
145
- for (let u = -c; u <= c; u += 1) {
146
- if (u === 0 && y === 0) continue;
147
- const s = g + u;
148
- s < 0 || s >= l || (r[f + s] = 1);
149
- }
150
- }
151
- }
152
- const i = [];
153
- for (let a = 0; a < r.length; a += 1)
154
- if (r[a]) {
155
- const p = a / l | 0, v = a - p * l;
156
- i.push([v, p]);
157
- }
158
- return i;
159
- }
160
- function yo({
161
- runs: o,
162
- w: l,
163
- h: m,
164
- dilation: c
165
- }) {
166
- const r = new Uint8Array(l * m), d = [];
167
- for (let a = 0; a < o.length; a += 1) {
168
- const p = o[a], v = p[0], g = p[1], y = p[2], b = v * l;
169
- for (let f = g; f <= y; f += 1) {
170
- const u = b + f;
171
- r[u] || (r[u] = 1, d.push(u));
172
- }
173
- }
174
- for (let a = 0; a < d.length; a += 1) {
175
- const p = d[a], v = p / l | 0, g = p - v * l;
176
- for (let y = -c; y <= c; y += 1) {
177
- const b = v + y;
178
- if (b < 0 || b >= m) continue;
179
- const f = b * l;
180
- for (let u = -c; u <= c; u += 1) {
181
- if (u === 0 && y === 0) continue;
182
- const s = g + u;
183
- s < 0 || s >= l || (r[f + s] = 1);
184
- }
185
- }
186
- }
187
- const i = [];
188
- for (let a = 0; a < m; a += 1) {
189
- const p = a * l;
190
- let v = -1, g = !1;
191
- for (let y = 0; y < l; y += 1)
192
- r[p + y] ? g || (g = !0, v = y) : g && (i.push([a, v, y - 1]), g = !1, v = -1);
193
- g && i.push([a, v, l - 1]);
194
- }
195
- return i;
196
- }
197
- function Co(o, l) {
198
- const m = o.runs, c = o.w, r = o.h, d = Math.max(1, Math.round(c * l)), i = Math.max(1, Math.round(r * l)), a = new Array(i);
199
- let p = d, v = i, g = 0, y = 0, b = !1;
200
- for (let u = 0; u < m.length; u += 1) {
201
- const s = m[u], A = s[0], k = s[1], x = s[2], h = Math.round(A * l);
202
- if (h < 0 || h >= i) continue;
203
- const w = Math.round(k * l), B = Math.round((x + 1) * l) - 1;
204
- if (B < w) continue;
205
- let D = a[h];
206
- D || (D = [], a[h] = D), D.push([w, B]), b = !0, w < p && (p = w), B > g && (g = B), h < v && (v = h), h > y && (y = h);
207
- }
208
- if (!b)
209
- return {
210
- w: d,
211
- h: i,
212
- runs: [],
213
- minX: 0,
214
- minY: 0,
215
- maxX: 0,
216
- maxY: 0
217
- };
218
- const f = [];
219
- for (let u = 0; u < i; u += 1) {
220
- const s = a[u];
221
- if (!s || s.length === 0) continue;
222
- s.sort((x, h) => x[0] - h[0]);
223
- let A = s[0][0], k = s[0][1];
224
- for (let x = 1; x < s.length; x += 1) {
225
- const h = s[x][0], w = s[x][1];
226
- h <= k + 1 ? w > k && (k = w) : (f.push([u, A, k]), A = h, k = w);
227
- }
228
- f.push([u, A, k]);
229
- }
230
- return {
231
- w: d,
232
- h: i,
233
- runs: f,
234
- minX: p,
235
- minY: v,
236
- maxX: g,
237
- maxY: y
238
- };
239
- }
240
- const nt = /* @__PURE__ */ new Map(), lt = /* @__PURE__ */ new Map();
241
- function ko({ word: o, fontSize: l, pad: m, svg: c }) {
242
- const r = c.style && c.style.bold ? 1 : 0, d = m || 0;
243
- return `${o.name}::${l}::${d}::${r}`;
244
- }
245
- function wo({
246
- word: o,
247
- fontSize: l,
248
- pad: m,
249
- canvas: c,
250
- ctx: r,
251
- svg: d
252
- }) {
253
- const i = ko({ word: o, fontSize: l, pad: m, svg: d }), a = nt.get(i);
254
- if (a) return { key: i, bitmap: a };
255
- const p = fo({ word: o, fontSize: l, pad: m, canvas: c, ctx: r, svg: d });
256
- return nt.set(i, p), { key: i, bitmap: p };
257
- }
258
- function xo({
259
- bitmapKey: o,
260
- wordMask: l,
261
- w: m,
262
- h: c,
263
- dilation: r
264
- }) {
265
- const d = `${o}::d${r}`, i = lt.get(d);
266
- if (i) return i;
267
- const a = bo({ wordMask: l, w: m, h: c, dilation: r }), p = ho(a), v = { wordMask: a, runs: p };
268
- return lt.set(d, v), v;
269
- }
270
- const Fo = 6, Ao = 2, ct = Math.PI / 180, dt = [], mt = [];
271
- for (let o = 0; o < 360; o += Fo) {
272
- const l = o * ct;
273
- dt.push(Math.cos(l)), mt.push(Math.sin(l));
274
- }
275
- const vt = [], ft = [];
276
- for (let o = 0; o < 360; o += Ao) {
277
- const l = o * ct;
278
- vt.push(Math.cos(l)), ft.push(Math.sin(l));
279
- }
280
- function So(o, l, m) {
281
- if (!o.length) return;
282
- let c = 1 / 0, r = -1 / 0, d = 1 / 0, i = -1 / 0;
283
- for (let u = 0; u < o.length; u += 1) {
284
- const s = o[u], A = s.x + s.minX, k = s.x + s.maxX, x = s.y + s.minY, h = s.y + s.maxY;
285
- A < c && (c = A), k > r && (r = k), x < d && (d = x), h > i && (i = h);
286
- }
287
- if (!isFinite(c) || !isFinite(r) || !isFinite(d) || !isFinite(i)) return;
288
- const a = Math.max(
289
- Math.abs(c),
290
- Math.abs(r)
291
- ), p = Math.max(
292
- Math.abs(d),
293
- Math.abs(i)
294
- );
295
- if (a === 0 || p === 0) return;
296
- const v = 0.9, g = l * 0.5 * v / a, y = m * 0.5 * v / p;
297
- let b = Math.min(g, y);
298
- if (b <= 1) return;
299
- const f = 4;
300
- b > f && (b = f);
301
- for (let u = 0; u < o.length; u += 1) {
302
- const s = o[u];
303
- s.x *= b, s.y *= b, s.width *= b, s.height *= b, s.fontSize *= b, s.minX *= b, s.maxX *= b, s.minY *= b, s.maxY *= b;
304
- }
305
- }
306
- function $o() {
307
- return typeof performance < "u" && typeof performance.now == "function" ? () => performance.now() : () => Date.now();
308
- }
309
- function To({
310
- value: o,
311
- minimumValue: l,
312
- maximumValue: m,
313
- configuredMinimumFontSize: c,
314
- maximumFontSize: r
315
- }) {
316
- if (m === l)
317
- return r;
318
- const i = (o - l) / (m - l) * (r - c) + c;
319
- return Math.max(
320
- c,
321
- Math.min(r, i)
322
- );
323
- }
324
- function Mo({
325
- currentBitmap: o,
326
- strictPixelPadding: l,
327
- scaleFactor: m,
328
- baseBitmap: c,
329
- bitmapKey: r
330
- }) {
331
- let d = o.runs;
332
- const i = o.w, a = o.h, p = o.minX, v = o.minY, g = o.maxX, y = o.maxY;
333
- return !l || !d.length ? {
334
- runs: d,
335
- bitmapWidth: i,
336
- bitmapHeight: a,
337
- bitmapMinimumX: p,
338
- bitmapMinimumY: v,
339
- bitmapMaximumX: g,
340
- bitmapMaximumY: y
341
- } : m === 1 ? {
342
- runs: xo({
343
- bitmapKey: r,
344
- wordMask: c.wordMask,
345
- w: c.w,
346
- h: c.h,
347
- dilation: 2
348
- }).runs,
349
- bitmapWidth: i,
350
- bitmapHeight: a,
351
- bitmapMinimumX: p,
352
- bitmapMinimumY: v,
353
- bitmapMaximumX: g,
354
- bitmapMaximumY: y
355
- } : {
356
- runs: yo({
357
- runs: d,
358
- w: i,
359
- h: a,
360
- dilation: 2
361
- }),
362
- bitmapWidth: i,
363
- bitmapHeight: a,
364
- bitmapMinimumX: p,
365
- bitmapMinimumY: v,
366
- bitmapMaximumX: g,
367
- bitmapMaximumY: y
368
- };
369
- }
370
- async function st({
371
- baseBitmap: o,
372
- baseFontSize: l,
373
- minimumScaleFactor: m,
374
- maskBits: c,
375
- maskRowStride: r,
376
- maskWidth: d,
377
- maskHeight: i,
378
- centerX: a,
379
- centerY: p,
380
- maximumRadius: v,
381
- scaleStep: g,
382
- strictPixelPadding: y,
383
- bitmapKey: b,
384
- minimumFontSize: f,
385
- rawWord: u,
386
- cosineArray: s,
387
- sineArray: A,
388
- radiusStep: k,
389
- maximumAttempts: x,
390
- maybeYield: h
391
- }) {
392
- let w = 1;
393
- for (; w >= m; ) {
394
- const B = w === 1 ? o : Co(o, w), D = Mo({
395
- currentBitmap: B,
396
- strictPixelPadding: y,
397
- scaleFactor: w,
398
- baseBitmap: o,
399
- bitmapKey: b
400
- }), {
401
- runs: R,
402
- bitmapWidth: z,
403
- bitmapHeight: Z,
404
- bitmapMinimumX: ee,
405
- bitmapMinimumY: e,
406
- bitmapMaximumX: fe,
407
- bitmapMaximumY: ne
408
- } = D;
409
- let le = 0, U = 0;
410
- for (; le < v && U < x; ) {
411
- for (let W = 0; W < s.length; W += 1) {
412
- U += 1;
413
- const L = Math.round(
414
- a + le * s[W] - z / 2
415
- ), K = Math.round(
416
- p + le * A[W] - Z / 2
417
- );
418
- if (L < 0 || K < 0 || L + z > d || K + Z > i)
419
- continue;
420
- if (po({
421
- maskBits: c,
422
- maskRowStride: r,
423
- maskW: d,
424
- maskH: i,
425
- wx: L,
426
- wy: K,
427
- runs: R
428
- })) {
429
- const { __wcIndex: X, ...Y } = u, se = Math.max(
430
- f,
431
- Math.round(l * w)
432
- ), ue = {
433
- ...Y,
434
- x: L - d / 2,
435
- y: K - i / 2,
436
- fontSize: se,
437
- width: z,
438
- height: Z,
439
- angle: 0,
440
- minX: ee,
441
- minY: e,
442
- maxX: fe,
443
- maxY: ne
444
- };
445
- return go({
446
- maskBits: c,
447
- maskRowStride: r,
448
- maskW: d,
449
- maskH: i,
450
- wx: L,
451
- wy: K,
452
- runs: R
453
- }), ue;
454
- }
455
- }
456
- le += k, (U & 1023) === 0 && await h();
457
- }
458
- w *= g, await h();
459
- }
460
- return null;
461
- }
462
- async function Io({
463
- baseBitmap: o,
464
- baseFontSize: l,
465
- minimumScaleFactor: m,
466
- maskBits: c,
467
- maskRowStride: r,
468
- maskWidth: d,
469
- maskHeight: i,
470
- centerX: a,
471
- centerY: p,
472
- maximumRadius: v,
473
- scaleStep: g,
474
- strictPixelPadding: y,
475
- bitmapKey: b,
476
- minimumFontSize: f,
477
- rawWord: u,
478
- maybeYield: s,
479
- spiralRadiusStep: A,
480
- fallbackSpiralRadiusStep: k
481
- }) {
482
- const x = await st({
483
- baseBitmap: o,
484
- baseFontSize: l,
485
- minimumScaleFactor: m,
486
- maskBits: c,
487
- maskRowStride: r,
488
- maskWidth: d,
489
- maskHeight: i,
490
- centerX: a,
491
- centerY: p,
492
- maximumRadius: v,
493
- scaleStep: g,
494
- strictPixelPadding: y,
495
- bitmapKey: b,
496
- minimumFontSize: f,
497
- rawWord: u,
498
- cosineArray: dt,
499
- sineArray: mt,
500
- radiusStep: A,
501
- maximumAttempts: 1e4,
502
- maybeYield: s
503
- });
504
- return x || await st({
505
- baseBitmap: o,
506
- baseFontSize: l,
507
- minimumScaleFactor: m,
508
- maskBits: c,
509
- maskRowStride: r,
510
- maskWidth: d,
511
- maskHeight: i,
512
- centerX: a,
513
- centerY: p,
514
- maximumRadius: v,
515
- scaleStep: g,
516
- strictPixelPadding: y,
517
- bitmapKey: b,
518
- minimumFontSize: f,
519
- rawWord: u,
520
- cosineArray: vt,
521
- sineArray: ft,
522
- radiusStep: k,
523
- maximumAttempts: 25e3,
524
- maybeYield: s
525
- });
526
- }
527
- async function Oo({
528
- words: o,
529
- proximity: l = 0,
530
- svg: m,
531
- strictPixelPadding: c,
532
- onProgress: r,
533
- debugTiming: d = !1
534
- }) {
535
- const i = $o(), a = i(), p = 12;
536
- let v = a;
537
- async function g() {
538
- i() - v >= p && (await new Promise((Y) => setTimeout(Y, 0)), v = i());
539
- }
540
- const y = m.width, b = m.height, f = Math.round(y), u = Math.round(b), s = 1, A = m.minFontSize, k = Math.min(m.maxFontSize, 100), x = o.map((X) => X.value), h = Math.min(...x), w = Math.max(...x);
541
- if (f <= 0 || u <= 0) return [];
542
- const B = f + 31 >>> 5, D = new Uint32Array(B * u), R = document.createElement("canvas"), z = R.getContext("2d", { willReadFrequently: !0 });
543
- R.width = f, R.height = u;
544
- const Z = 2, ee = 1, e = Math.max(f, u), fe = Math.floor(f / 2), ne = Math.floor(u / 2), U = [...o.map((X, Y) => ({
545
- ...X,
546
- __wcIndex: Y,
547
- id: X.id != null ? X.id : `${X.name}__${Y}`
548
- }))].sort(
549
- (X, Y) => Y.value - X.value
550
- ), W = [], L = 0.9;
551
- for (let X = 0; X < U.length; X += 1) {
552
- const Y = U[X], se = W.length, pe = To({
553
- value: Y.value,
554
- minimumValue: h,
555
- maximumValue: w,
556
- configuredMinimumFontSize: A,
557
- maximumFontSize: k
558
- }), ie = wo({
559
- word: Y,
560
- fontSize: pe,
561
- pad: l,
562
- canvas: R,
563
- ctx: z,
564
- svg: m
565
- }), E = ie.key, ge = ie.bitmap, Pe = ge.w, H = ge.h;
566
- if (Pe <= 0 || H <= 0) {
567
- await g();
568
- continue;
569
- }
570
- const te = Math.max(
571
- s / pe,
572
- 0.1
573
- ), ce = await Io({
574
- baseBitmap: ge,
575
- baseFontSize: pe,
576
- minimumScaleFactor: te,
577
- maskBits: D,
578
- maskRowStride: B,
579
- maskWidth: f,
580
- maskHeight: u,
581
- centerX: fe,
582
- centerY: ne,
583
- maximumRadius: e,
584
- scaleStep: L,
585
- strictPixelPadding: c,
586
- bitmapKey: E,
587
- minimumFontSize: s,
588
- rawWord: Y,
589
- maybeYield: g,
590
- spiralRadiusStep: Z,
591
- fallbackSpiralRadiusStep: ee
592
- });
593
- if (ce && (W.push(ce), r && W.length > se)) {
594
- const Fe = W[W.length - 1];
595
- r({ word: Fe, all: W });
596
- }
597
- await g();
598
- }
599
- if (!W.length)
600
- return [];
601
- So(W, f, u);
602
- const he = i() - a;
603
- return d && typeof console < "u" && console.log && console.log(
604
- "[vue-data-ui][word-cloud] positionWordsAsync:",
605
- `${he.toFixed(2)} ms for ${o.length} words`
606
- ), W.sort((X, Y) => Y.fontSize - X.fontSize);
607
- }
608
- const ht = { 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" } } }, pt = { 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" } } }, gt = { 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" } } }, bt = { 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" } } }, yt = { 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" } } }, Ct = { 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" } } }, kt = {
609
- default: {},
610
- dark: ht,
611
- celebration: pt,
612
- celebrationNight: gt,
613
- hack: bt,
614
- zen: yt,
615
- concrete: Ct
616
- }, na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
617
- __proto__: null,
618
- celebration: pt,
619
- celebrationNight: gt,
620
- concrete: Ct,
621
- dark: ht,
622
- default: kt,
623
- hack: bt,
624
- zen: yt
625
- }, Symbol.toStringTag, { value: "Module" })), Po = ["id", "data-resizing", "data-relayout"], Xo = ["xmlns", "viewBox"], Eo = ["width", "height"], zo = ["transform"], Ro = ["transform"], Yo = ["x", "y", "width", "height", "onMouseover", "onMouseleave", "onClick"], Do = ["fill", "font-weight", "font-size", "transform", "stroke", "stroke-width"], Wo = {
626
- key: 3,
627
- class: "vue-data-ui-watermark"
628
- }, _o = {
629
- key: 4,
630
- "data-dom-to-png-ignore": "",
631
- class: "reset-wrapper"
632
- }, Bo = ["innerHTML"], No = {
633
- __name: "vue-ui-word-cloud",
634
- props: {
635
- config: {
636
- type: Object,
637
- default() {
638
- return {};
639
- }
640
- },
641
- dataset: {
642
- type: [Array, String],
643
- default() {
644
- return [];
645
- }
646
- }
647
- },
648
- setup(o, { expose: l }) {
649
- zt((t) => ({
650
- v99bcef08: t.slicerColor
651
- }));
652
- const m = oe(() => import("./Tooltip-l2pmtXwi.js")), c = oe(() => import("./BaseIcon-CQaciFyv.js")), r = oe(() => import("./vue-ui-accordion-nCaoOi6x.js")), d = oe(() => import("./DataTable-C8cgUUyx.js")), i = oe(() => import("./PenAndPaper-DtbXViIl.js")), a = oe(() => import("./UserOptions-DeiXBImO.js")), p = oe(() => import("./PackageVersion-CIhhY-aH.js")), v = oe(() => import("./BaseDraggableDialog-B6wHUQPl.js")), { vue_ui_word_cloud: g } = to(), { isThemeValid: y, warnInvalidTheme: b } = so(), f = o, u = ae({
653
- get() {
654
- return !!f.dataset && f.dataset.length;
655
- },
656
- set(t) {
657
- return t;
658
- }
659
- }), s = M(Zt()), A = M(0), k = M(null), x = M(null), h = M(null), w = M(0), B = M(0), D = M(!1), R = M(null), z = M(null), Z = M(!1), ee = M(!1), e = M(Y()), { loading: fe, FINAL_DATASET: ne, manualLoading: le } = oo({
660
- ...Rt(f),
661
- FINAL_CONFIG: e,
662
- prepareConfig: Y,
663
- callback: () => {
664
- Promise.resolve().then(() => {
665
- I.value.showTable = e.value.table.show, I.value.showTooltip = e.value.style.chart.tooltip.show, I.value.showZoom = e.value.style.chart.zoom.show;
666
- });
667
- },
668
- skeletonDataset: [
669
- { name: "Lorem", value: 6 },
670
- { name: "ipsum", value: 3 },
671
- { name: "dolor", value: 1 },
672
- { name: "sit", value: 3 },
673
- { name: "amet", value: 3 },
674
- { name: "consectetur", value: 2 },
675
- { name: "adipiscing", value: 1 },
676
- { name: "elit", value: 2 },
677
- { name: "Vivamus", value: 2 },
678
- { name: "pulvinar", value: 1 },
679
- { name: "pretium", value: 1 },
680
- { name: "venenatis", value: 2 },
681
- { name: "Donec", value: 1 },
682
- { name: "imperdiet", value: 3 },
683
- { name: "id", value: 1 },
684
- { name: "porttitor", value: 2 },
685
- { name: "tristique", value: 1 },
686
- { name: "Aenean", value: 2 },
687
- { name: "ac", value: 5 },
688
- { name: "commodo", value: 2 },
689
- { name: "justo", value: 2 },
690
- { name: "Vestibulum", value: 2 },
691
- { name: "placerat", value: 1 },
692
- { name: "molestie", value: 1 },
693
- { name: "nisl", value: 1 },
694
- { name: "lacinia", value: 2 },
695
- { name: "nulla", value: 1 },
696
- { name: "posuere", value: 2 },
697
- { name: "quis", value: 3 },
698
- { name: "ullamcorper", value: 1 },
699
- { name: "eu", value: 1 },
700
- { name: "ex", value: 1 },
701
- { name: "vitae", value: 3 },
702
- { name: "facilisis", value: 1 },
703
- { name: "Aliquam", value: 1 },
704
- { name: "erat", value: 1 },
705
- { name: "volutpat", value: 1 },
706
- { name: "Proin", value: 1 },
707
- { name: "nunc", value: 1 },
708
- { name: "felis", value: 1 },
709
- { name: "gravida", value: 3 },
710
- { name: "sed", value: 1 },
711
- { name: "orci", value: 1 },
712
- { name: "Interdum", value: 1 },
713
- { name: "et", value: 1 },
714
- { name: "malesuada", value: 1 },
715
- { name: "fames", value: 1 },
716
- { name: "ante", value: 1 }
717
- ],
718
- skeletonConfig: Ut({
719
- defaultConfig: e.value,
720
- userConfig: {
721
- userOptions: { show: !1 },
722
- table: { show: !1 },
723
- useCssAnimation: !1,
724
- animationDelayMs: 0,
725
- nodeCategories: {},
726
- nodeCategoryColors: {},
727
- style: {
728
- chart: {
729
- backgroundColor: "#99999930",
730
- words: {
731
- color: "#6A6A6A",
732
- usePalette: !1,
733
- selectedStroke: "#CCCCCC"
734
- }
735
- }
736
- }
737
- }
738
- })
739
- }), U = M(W());
740
- function W() {
741
- return typeof ne.value == "string" ? Lt(ne.value) : ne.value.map((t, C) => ({
742
- ...t,
743
- value: Ht(t.value)
744
- }));
745
- }
746
- const { userOptionsVisible: L, setUserOptionsVisibility: K, keepUserOptionState: he } = io({ config: e.value }), { svgRef: X } = ro({ config: e.value.style.chart.title });
747
- function Y() {
748
- const t = De({
749
- userConfig: f.config,
750
- defaultConfig: g
751
- }), C = t.theme;
752
- if (!C) return t;
753
- if (!y.value(t))
754
- return b(t), t;
755
- const n = De({
756
- userConfig: kt[C] || f.config,
757
- defaultConfig: t
758
- }), F = De({
759
- userConfig: f.config,
760
- defaultConfig: n
761
- });
762
- return {
763
- ...F,
764
- customPalette: F.customPalette.length ? F.customPalette : jt[C] || Oe
765
- };
766
- }
767
- const se = M({ x: 0, y: 0 });
768
- function ue() {
769
- const t = {
770
- x: 0,
771
- y: 0,
772
- width: Math.max(10, E.value.width),
773
- height: Math.max(10, E.value.height)
774
- };
775
- St(t), se.value = {
776
- x: t.x + t.width / 2,
777
- y: t.y + t.height / 2
778
- }, Te();
779
- }
780
- const pe = tt(() => {
781
- Ve();
782
- }, 100), ie = M(!1);
783
- we(() => ie.value, (t) => {
784
- t === !1 && (ee.value = !0, pe(), ue());
785
- }), we(() => f.config, (t) => {
786
- e.value = Y(), L.value = !e.value.userOptions.showOnChartHover, Fe(), w.value += 1, B.value += 1, I.value.showTable = e.value.table.show, I.value.showTooltip = e.value.style.chart.tooltip.show, I.value.showZoom = e.value.style.chart.zoom.show;
787
- }, { deep: !0 });
788
- const E = M({
789
- width: e.value.style.chart.width,
790
- height: e.value.style.chart.height,
791
- maxFontSize: e.value.style.chart.words.maxFontSize,
792
- minFontSize: e.value.style.chart.words.minFontSize,
793
- bold: e.value.style.chart.words.bold
794
- }), ge = tt(() => {
795
- const { width: t, height: C } = Vt({
796
- chart: k.value,
797
- title: e.value.style.chart.title.text ? x.value : null,
798
- source: h.value
799
- });
800
- requestAnimationFrame(async () => {
801
- E.value.width = Math.max(10, t), E.value.height = Math.max(10, C - 12), await et(), ie.value = !1;
802
- });
803
- }, 100), Pe = () => {
804
- ie.value = !0, ge();
805
- }, H = Ge(null), te = Ge(null);
806
- Yt(Fe);
807
- const ce = ae(() => !!e.value.debug);
808
- function Fe() {
809
- ot(f.dataset) ? at({
810
- componentName: "VueUiWordCloud",
811
- type: "dataset",
812
- debug: ce.value
813
- }) : U.value.forEach((t, C) => {
814
- qt({
815
- datasetObject: t,
816
- requiredAttributes: ["name", "value"]
817
- }).forEach((n) => {
818
- u.value = !1, at({
819
- componentName: "VueUiWordCloud",
820
- type: "datasetSerieAttribute",
821
- property: n,
822
- index: C,
823
- debug: ce.value
824
- });
825
- });
826
- }), ot(f.dataset) || (le.value = e.value.loading), e.value.responsive && (H.value && (te.value && H.value.unobserve(te.value), H.value.disconnect()), H.value = new ResizeObserver(Pe), te.value = k.value.parentNode, H.value.observe(te.value)), ue();
827
- }
828
- Dt(() => {
829
- H.value && (te.value && H.value.unobserve(te.value), H.value.disconnect());
830
- });
831
- const { isPrinting: We, isImaging: _e, generatePdf: Be, generateImage: Ne } = no({
832
- elementId: `wordCloud_${s.value}`,
833
- fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
834
- options: e.value.userOptions.print
835
- }), I = M({
836
- showTable: e.value.table.show,
837
- showTooltip: e.value.style.chart.tooltip.show,
838
- showZoom: e.value.style.chart.zoom.show
839
- });
840
- we(e, () => {
841
- I.value.showTable = e.value.table.show, I.value.showTooltip = e.value.style.chart.tooltip.show, I.value.showZoom = e.value.style.chart.zoom.show;
842
- }, { immediate: !0 });
843
- function wt(t, C, n = "Arial") {
844
- const $ = document.createElement("canvas").getContext("2d");
845
- return $.font = `${C}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${n}`, {
846
- width: $.measureText(t).width + e.value.style.chart.words.proximity,
847
- height: C
848
- };
849
- }
850
- const j = M([]), be = /* @__PURE__ */ new Map();
851
- function Ve() {
852
- const t = [...U.value].map(($) => $.value), C = Math.max(...t), n = Math.min(...t), F = [...U.value].map(($, T) => {
853
- let q = ($.value - n) / (C - n) * (E.value.maxFontSize - E.value.minFontSize) + E.value.minFontSize;
854
- q = isNaN(q) ? E.value.minFontSize : q;
855
- const re = wt($.name, q);
856
- return {
857
- ...$,
858
- id: $.id ?? `${$.name}__${T}`,
859
- fontSize: q,
860
- width: re.width,
861
- height: re.height,
862
- color: e.value.style.chart.words.usePalette ? e.value.customPalette[T] || e.value.customPalette[T % e.value.customPalette.length] || Oe[T] || Oe[T % Oe.length] : e.value.style.chart.words.color
863
- };
864
- });
865
- j.value.length = 0, be.clear(), Oo({
866
- debugTiming: ce.value,
867
- words: F,
868
- svg: E.value,
869
- proximity: e.value.style.chart.words.proximity,
870
- strictPixelPadding: e.value.strictPixelPadding,
871
- onProgress: ({ all: $ }) => {
872
- for (const T of $) {
873
- const q = T.id;
874
- let re = be.get(q);
875
- if (re === void 0)
876
- re = j.value.length, be.set(q, re), j.value.push({ ...T });
877
- else {
878
- const Q = j.value[re];
879
- Q.x = T.x, Q.y = T.y, Q.width = T.width, Q.height = T.height, Q.fontSize = T.fontSize, Q.minX = T.minX, Q.minY = T.minY, Q.maxX = T.maxX, Q.maxY = T.maxY;
880
- }
881
- }
882
- }
883
- }), j.value.sort(($, T) => T.fontSize - $.fontSize), be.clear(), j.value.forEach(($, T) => {
884
- be.set($.id, T);
885
- }), Z.value = !0, ee.value = !1;
886
- }
887
- const Ae = ae(() => {
888
- const t = j.value.map((n) => ({
889
- name: n.name,
890
- color: n.color
891
- })), C = j.value.map((n) => n.value);
892
- return { head: t, body: C };
893
- });
894
- function Xe(t = null) {
895
- et(() => {
896
- const C = Ae.value.head.map(($, T) => [[
897
- $.name
898
- ], [Ae.value.body[T]]]), n = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(C), F = Kt(n);
899
- t ? t(F) : Qt({ csvContent: F, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
900
- });
901
- }
902
- const Se = ae(() => {
903
- const t = [
904
- e.value.table.columnNames.series,
905
- e.value.table.columnNames.value
906
- ], C = Ae.value.head.map(($, T) => {
907
- const q = Gt({ p: e.value.table.td.prefix, v: Ae.value.body[T], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
908
- return [
909
- {
910
- color: $.color,
911
- name: $.name
912
- },
913
- q
914
- ];
915
- }), n = {
916
- th: {
917
- backgroundColor: e.value.table.th.backgroundColor,
918
- color: e.value.table.th.color,
919
- outline: e.value.table.th.outline
920
- },
921
- td: {
922
- backgroundColor: e.value.table.td.backgroundColor,
923
- color: e.value.table.td.color,
924
- outline: e.value.table.td.outline
925
- },
926
- breakpoint: e.value.table.responsiveBreakpoint
927
- };
928
- return {
929
- colNames: [
930
- e.value.table.columnNames.series,
931
- e.value.table.columnNames.value
932
- ],
933
- head: t,
934
- body: C,
935
- config: n
936
- };
937
- }), de = M(!1);
938
- function Ze(t) {
939
- de.value = t, A.value += 1;
940
- }
941
- function xt() {
942
- return j.value;
943
- }
944
- function Ue() {
945
- I.value.showTable = !I.value.showTable;
946
- }
947
- function Le() {
948
- I.value.showTooltip = !I.value.showTooltip;
949
- }
950
- const ye = M(!1);
951
- function Ee() {
952
- ye.value = !ye.value;
953
- }
954
- function He() {
955
- I.value.showZoom = !I.value.showZoom;
956
- }
957
- const Ft = ae(() => !ye.value && I.value.showZoom), { viewBox: $e, resetZoom: Te, isZoom: At, setInitialViewBox: St } = mo(X, {
958
- x: 0,
959
- y: 0,
960
- width: E.value.width <= 0 ? 10 : E.value.width,
961
- height: E.value.height <= 0 ? 10 : E.value.height
962
- }, 1, Ft);
963
- we(() => f.dataset, () => {
964
- U.value = W(), e.value.responsive || (Ve(), ue());
965
- }, { immediate: !0 });
966
- async function $t({ scale: t = 2 } = {}) {
967
- if (!k.value) return;
968
- const { width: C, height: n } = k.value.getBoundingClientRect(), F = C / n, { imageUri: $, base64: T } = await uo({ domElement: k.value, base64: !0, img: !0, scale: t });
969
- return {
970
- imageUri: $,
971
- base64: T,
972
- title: e.value.style.chart.title.text,
973
- width: C,
974
- height: n,
975
- aspectRatio: F
976
- };
977
- }
978
- const Ce = ae(() => {
979
- const t = e.value.table.useDialog && !e.value.table.show, C = I.value.showTable;
980
- return {
981
- component: t ? v : r,
982
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
983
- props: t ? {
984
- backgroundColor: e.value.table.th.backgroundColor,
985
- color: e.value.table.th.color,
986
- headerColor: e.value.table.th.color,
987
- headerBg: e.value.table.th.backgroundColor,
988
- isFullscreen: de.value,
989
- fullscreenParent: k.value,
990
- forcedWidth: Math.min(500, window.innerWidth * 0.8)
991
- } : {
992
- hideDetails: !0,
993
- config: {
994
- open: C,
995
- maxHeight: 1e4,
996
- body: {
997
- backgroundColor: e.value.style.chart.backgroundColor,
998
- color: e.value.style.chart.color
999
- },
1000
- head: {
1001
- backgroundColor: e.value.style.chart.backgroundColor,
1002
- color: e.value.style.chart.color
1003
- }
1004
- }
1005
- }
1006
- };
1007
- });
1008
- we(() => I.value.showTable, (t) => {
1009
- e.value.table.show || (t && e.value.table.useDialog && R.value ? R.value.open() : "close" in R.value && R.value.close());
1010
- });
1011
- function je() {
1012
- I.value.showTable = !1, z.value && z.value.setTableIconState(!1);
1013
- }
1014
- const Tt = ae(() => e.value.style.chart.backgroundColor), Mt = ae(() => e.value.style.chart.title), { exportSvg: It, getSvg: Ot } = lo({
1015
- svg: X,
1016
- title: Mt,
1017
- backgroundColor: Tt
1018
- });
1019
- async function qe({ isCb: t }) {
1020
- if (t) {
1021
- const { blob: C, url: n, text: F, dataUrl: $ } = await Ot();
1022
- e.value.userOptions.callbacks.svg({ blob: C, url: n, text: F, dataUrl: $ });
1023
- } else
1024
- It();
1025
- }
1026
- l({
1027
- getData: xt,
1028
- getImage: $t,
1029
- generateCsv: Xe,
1030
- generatePdf: Be,
1031
- generateImage: Ne,
1032
- generateSvg: qe,
1033
- resetZoom: Te,
1034
- toggleTable: Ue,
1035
- toggleTooltip: Le,
1036
- toggleAnnotator: Ee,
1037
- toggleFullscreen: Ze,
1038
- toggleZoom: He
1039
- });
1040
- const me = M(null), ke = M(!1), ze = M(""), Re = M(null);
1041
- function Pt(t, C) {
1042
- me.value = null, D.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: C });
1043
- }
1044
- function Xt(t, C) {
1045
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: C });
1046
- }
1047
- function Et(t, C) {
1048
- if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: C }), !I.value.showTooltip) return;
1049
- me.value = t.id, Re.value = { datapoint: t, config: e.value };
1050
- const n = e.value.style.chart.tooltip.customFormat;
1051
- if (ke.value = !1, eo(n))
1052
- try {
1053
- const F = n({
1054
- datapoint: t,
1055
- config: e.value
1056
- });
1057
- typeof F == "string" && (ze.value = F, ke.value = !0);
1058
- } catch {
1059
- console.warn("Custom format cannot be applied."), ke.value = !1;
1060
- }
1061
- if (!ke.value) {
1062
- let F = `<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>`;
1063
- ze.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${F}</div>`;
1064
- }
1065
- D.value = !0;
1066
- }
1067
- return (t, C) => (_(), G("div", {
1068
- class: "vue-data-ui-component vue-ui-word-cloud",
1069
- ref_key: "wordCloudChart",
1070
- ref: k,
1071
- id: `wordCloud_${s.value}`,
1072
- "data-resizing": ie.value,
1073
- "data-relayout": ee.value,
1074
- style: Me(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
1075
- onMouseenter: C[2] || (C[2] = () => S(K)(!0)),
1076
- onMouseleave: C[3] || (C[3] = () => S(K)(!1))
1077
- }, [
1078
- e.value.userOptions.buttons.annotator ? (_(), ve(S(i), {
1079
- key: 0,
1080
- svgRef: S(X),
1081
- backgroundColor: e.value.style.chart.backgroundColor,
1082
- color: e.value.style.chart.color,
1083
- active: ye.value,
1084
- onClose: Ee
1085
- }, {
1086
- "annotator-action-close": O(() => [
1087
- P(t.$slots, "annotator-action-close", {}, void 0, !0)
1088
- ]),
1089
- "annotator-action-color": O(({ color: n }) => [
1090
- P(t.$slots, "annotator-action-color", N(V({ color: n })), void 0, !0)
1091
- ]),
1092
- "annotator-action-draw": O(({ mode: n }) => [
1093
- P(t.$slots, "annotator-action-draw", N(V({ mode: n })), void 0, !0)
1094
- ]),
1095
- "annotator-action-undo": O(({ disabled: n }) => [
1096
- P(t.$slots, "annotator-action-undo", N(V({ disabled: n })), void 0, !0)
1097
- ]),
1098
- "annotator-action-redo": O(({ disabled: n }) => [
1099
- P(t.$slots, "annotator-action-redo", N(V({ disabled: n })), void 0, !0)
1100
- ]),
1101
- "annotator-action-delete": O(({ disabled: n }) => [
1102
- P(t.$slots, "annotator-action-delete", N(V({ disabled: n })), void 0, !0)
1103
- ]),
1104
- _: 3
1105
- }, 8, ["svgRef", "backgroundColor", "color", "active"])) : J("", !0),
1106
- e.value.style.chart.title.text ? (_(), G("div", {
1107
- key: 1,
1108
- ref_key: "chartTitle",
1109
- ref: x,
1110
- style: "width:100%;background:transparent;padding-bottom:24px"
1111
- }, [
1112
- (_(), ve(co, {
1113
- key: `title_${w.value}`,
1114
- config: {
1115
- title: {
1116
- ...e.value.style.chart.title
1117
- },
1118
- subtitle: {
1119
- ...e.value.style.chart.title.subtitle
1120
- }
1121
- }
1122
- }, null, 8, ["config"]))
1123
- ], 512)) : J("", !0),
1124
- e.value.userOptions.show && u.value && (S(he) || S(L)) ? (_(), ve(S(a), {
1125
- ref_key: "userOptionsRef",
1126
- ref: z,
1127
- key: `user_option_${A.value}`,
1128
- backgroundColor: e.value.style.chart.backgroundColor,
1129
- color: e.value.style.chart.color,
1130
- isPrinting: S(We),
1131
- isImaging: S(_e),
1132
- uid: s.value,
1133
- hasPdf: e.value.userOptions.buttons.pdf,
1134
- hasXls: e.value.userOptions.buttons.csv,
1135
- hasImg: e.value.userOptions.buttons.img,
1136
- hasSvg: e.value.userOptions.buttons.svg,
1137
- hasTable: e.value.userOptions.buttons.table,
1138
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
1139
- isFullscreen: de.value,
1140
- titles: { ...e.value.userOptions.buttonTitles },
1141
- chartElement: k.value,
1142
- position: e.value.userOptions.position,
1143
- hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
1144
- isTooltip: I.value.showTooltip,
1145
- hasAnnotator: e.value.userOptions.buttons.annotator,
1146
- isAnnotation: ye.value,
1147
- callbacks: e.value.userOptions.callbacks,
1148
- printScale: e.value.userOptions.print.scale,
1149
- tableDialog: e.value.table.useDialog,
1150
- hasZoom: e.value.userOptions.buttons.zoom,
1151
- isZoom: I.value.showZoom,
1152
- onToggleFullscreen: Ze,
1153
- onGeneratePdf: S(Be),
1154
- onGenerateCsv: Xe,
1155
- onGenerateImage: S(Ne),
1156
- onGenerateSvg: qe,
1157
- onToggleTable: Ue,
1158
- onToggleTooltip: Le,
1159
- onToggleAnnotator: Ee,
1160
- onToggleZoom: He,
1161
- style: Me({
1162
- visibility: S(he) ? S(L) ? "visible" : "hidden" : "visible"
1163
- })
1164
- }, Je({ _: 2 }, [
1165
- t.$slots.menuIcon ? {
1166
- name: "menuIcon",
1167
- fn: O(({ isOpen: n, color: F }) => [
1168
- P(t.$slots, "menuIcon", N(V({ isOpen: n, color: F })), void 0, !0)
1169
- ]),
1170
- key: "0"
1171
- } : void 0,
1172
- t.$slots.optionPdf ? {
1173
- name: "optionPdf",
1174
- fn: O(() => [
1175
- P(t.$slots, "optionPdf", {}, void 0, !0)
1176
- ]),
1177
- key: "1"
1178
- } : void 0,
1179
- t.$slots.optionCsv ? {
1180
- name: "optionCsv",
1181
- fn: O(() => [
1182
- P(t.$slots, "optionCsv", {}, void 0, !0)
1183
- ]),
1184
- key: "2"
1185
- } : void 0,
1186
- t.$slots.optionImg ? {
1187
- name: "optionImg",
1188
- fn: O(() => [
1189
- P(t.$slots, "optionImg", {}, void 0, !0)
1190
- ]),
1191
- key: "3"
1192
- } : void 0,
1193
- t.$slots.optionSvg ? {
1194
- name: "optionSvg",
1195
- fn: O(() => [
1196
- P(t.$slots, "optionSvg", {}, void 0, !0)
1197
- ]),
1198
- key: "4"
1199
- } : void 0,
1200
- t.$slots.optionTable ? {
1201
- name: "optionTable",
1202
- fn: O(() => [
1203
- P(t.$slots, "optionTable", {}, void 0, !0)
1204
- ]),
1205
- key: "5"
1206
- } : void 0,
1207
- t.$slots.optionFullscreen ? {
1208
- name: "optionFullscreen",
1209
- fn: O(({ toggleFullscreen: n, isFullscreen: F }) => [
1210
- P(t.$slots, "optionFullscreen", N(V({ toggleFullscreen: n, isFullscreen: F })), void 0, !0)
1211
- ]),
1212
- key: "6"
1213
- } : void 0,
1214
- t.$slots.optionAnnotator ? {
1215
- name: "optionAnnotator",
1216
- fn: O(({ toggleAnnotator: n, isAnnotator: F }) => [
1217
- P(t.$slots, "optionAnnotator", N(V({ toggleAnnotator: n, isAnnotator: F })), void 0, !0)
1218
- ]),
1219
- key: "7"
1220
- } : void 0,
1221
- t.$slots.optionZoom ? {
1222
- name: "optionZoom",
1223
- fn: O(({ toggleZoom: n, isZoomLocked: F }) => [
1224
- P(t.$slots, "optionZoom", N(V({ toggleZoom: n, isZoomLocked: F })), void 0, !0)
1225
- ]),
1226
- key: "8"
1227
- } : void 0
1228
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "hasZoom", "isZoom", "onGeneratePdf", "onGenerateImage", "style"])) : J("", !0),
1229
- (_(), G("svg", {
1230
- ref_key: "svgRef",
1231
- ref: X,
1232
- class: Ke({ "vue-data-ui-fullscreen--on": de.value, "vue-data-ui-fulscreen--off": !de.value }),
1233
- xmlns: S(Jt),
1234
- viewBox: `${S($e).x} ${S($e).y} ${S($e).width} ${S($e).height}`,
1235
- style: "overflow:hidden;background:transparent;"
1236
- }, [
1237
- Ie(S(p)),
1238
- t.$slots["chart-background"] ? (_(), G("foreignObject", {
1239
- key: 0,
1240
- x: 0,
1241
- y: 0,
1242
- width: E.value.width <= 0 ? 10 : E.value.width,
1243
- height: E.value.height <= 0 ? 10 : E.value.height,
1244
- style: {
1245
- pointerEvents: "none"
1246
- }
1247
- }, [
1248
- P(t.$slots, "chart-background", {}, void 0, !0)
1249
- ], 8, Eo)) : J("", !0),
1250
- xe("g", {
1251
- transform: `translate(${se.value.x}, ${se.value.y})`,
1252
- class: Ke({ "wc-finalized": Z.value })
1253
- }, [
1254
- (_(!0), G(Wt, null, _t(j.value, (n, F) => (_(), G("g", {
1255
- key: n.id,
1256
- class: "vue-ui-word-cloud-word",
1257
- transform: `translate(${n.x}, ${n.y})`
1258
- }, [
1259
- n.minX !== void 0 ? (_(), G("rect", {
1260
- key: 0,
1261
- x: n.minX,
1262
- y: n.minY * 1.25,
1263
- width: n.maxX - n.minX,
1264
- height: n.maxY - n.minY,
1265
- fill: "transparent",
1266
- "pointer-events": "visiblePainted",
1267
- onMouseover: ($) => Et(n, F),
1268
- onMouseleave: ($) => Pt(n, F),
1269
- onClick: ($) => Xt(n, F)
1270
- }, null, 40, Yo)) : J("", !0),
1271
- xe("text", {
1272
- fill: n.color,
1273
- "font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
1274
- x: 0,
1275
- y: 0,
1276
- "font-size": n.fontSize,
1277
- transform: `translate(${n.width / 2}, ${n.height / 2})`,
1278
- "text-anchor": "middle",
1279
- "dominant-baseline": "central",
1280
- "paint-order": "stroke fill",
1281
- stroke: !me.value || me.value === n.id ? e.value.style.chart.words.selectedStroke : void 0,
1282
- "stroke-width": n.height * 0.05,
1283
- "stroke-linecap": "round",
1284
- "stroke-linejoin": "round",
1285
- style: Me(`
1286
- pointer-events:none;
1287
- fill-opacity:${!me.value || me.value === n.id || !Z.value ? 1 : e.value.style.chart.words.hoverOpacity} !important;
1288
- `)
1289
- }, Ye(n.name), 13, Do)
1290
- ], 8, Ro))), 128))
1291
- ], 10, zo),
1292
- P(t.$slots, "svg", {
1293
- svg: { height: E.value.height, width: E.value.width }
1294
- }, void 0, !0)
1295
- ], 10, Xo)),
1296
- t.$slots.watermark ? (_(), G("div", Wo, [
1297
- P(t.$slots, "watermark", N(V({ isPrinting: S(We) || S(_e) })), void 0, !0)
1298
- ])) : J("", !0),
1299
- S(At) ? (_(), G("div", _o, [
1300
- P(t.$slots, "reset-action", { reset: S(Te) }, () => [
1301
- xe("button", {
1302
- "data-cy-reset": "",
1303
- tabindex: "0",
1304
- role: "button",
1305
- class: "vue-data-ui-refresh-button",
1306
- style: Me({
1307
- background: e.value.style.chart.backgroundColor
1308
- }),
1309
- onClick: C[0] || (C[0] = (n) => S(Te)(!0))
1310
- }, [
1311
- Ie(S(c), {
1312
- name: "refresh",
1313
- stroke: e.value.style.chart.color
1314
- }, null, 8, ["stroke"])
1315
- ], 4)
1316
- ], !0)
1317
- ])) : J("", !0),
1318
- Ie(S(m), {
1319
- show: I.value.showTooltip && D.value,
1320
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1321
- color: e.value.style.chart.tooltip.color,
1322
- fontSize: e.value.style.chart.tooltip.fontSize,
1323
- borderRadius: e.value.style.chart.tooltip.borderRadius,
1324
- borderColor: e.value.style.chart.tooltip.borderColor,
1325
- borderWidth: e.value.style.chart.tooltip.borderWidth,
1326
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1327
- position: e.value.style.chart.tooltip.position,
1328
- offsetY: e.value.style.chart.tooltip.offsetY,
1329
- parent: k.value,
1330
- content: ze.value,
1331
- isCustom: ke.value,
1332
- isFullscreen: de.value,
1333
- smooth: e.value.style.chart.tooltip.smooth,
1334
- backdropFilter: e.value.style.chart.tooltip.backdropFilter,
1335
- smoothForce: e.value.style.chart.tooltip.smoothForce,
1336
- smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
1337
- }, {
1338
- "tooltip-before": O(() => [
1339
- P(t.$slots, "tooltip-before", N(V({ ...Re.value })), void 0, !0)
1340
- ]),
1341
- "tooltip-after": O(() => [
1342
- P(t.$slots, "tooltip-after", N(V({ ...Re.value })), void 0, !0)
1343
- ]),
1344
- _: 3
1345
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
1346
- t.$slots.source ? (_(), G("div", {
1347
- key: 5,
1348
- ref_key: "source",
1349
- ref: h,
1350
- dir: "auto"
1351
- }, [
1352
- P(t.$slots, "source", {}, void 0, !0)
1353
- ], 512)) : J("", !0),
1354
- u.value && e.value.userOptions.buttons.table ? (_(), ve(Bt(Ce.value.component), Nt({ key: 6 }, Ce.value.props, {
1355
- ref_key: "tableUnit",
1356
- ref: R,
1357
- onClose: je
1358
- }), Je({
1359
- content: O(() => [
1360
- (_(), ve(S(d), {
1361
- key: `table_${B.value}`,
1362
- colNames: Se.value.colNames,
1363
- head: Se.value.head,
1364
- body: Se.value.body,
1365
- config: Se.value.config,
1366
- title: e.value.table.useDialog ? "" : Ce.value.title,
1367
- withCloseButton: !e.value.table.useDialog,
1368
- onClose: je
1369
- }, {
1370
- th: O(({ th: n }) => [
1371
- xe("div", {
1372
- innerHTML: n,
1373
- style: { display: "flex", "align-items": "center" }
1374
- }, null, 8, Bo)
1375
- ]),
1376
- td: O(({ td: n }) => [
1377
- Qe(Ye(n.name || n), 1)
1378
- ]),
1379
- _: 1
1380
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
1381
- ]),
1382
- _: 2
1383
- }, [
1384
- e.value.table.useDialog ? {
1385
- name: "title",
1386
- fn: O(() => [
1387
- Qe(Ye(Ce.value.title), 1)
1388
- ]),
1389
- key: "0"
1390
- } : void 0,
1391
- e.value.table.useDialog ? {
1392
- name: "actions",
1393
- fn: O(() => [
1394
- xe("button", {
1395
- tabindex: "0",
1396
- class: "vue-ui-user-options-button",
1397
- onClick: C[1] || (C[1] = (n) => Xe(e.value.userOptions.callbacks.csv))
1398
- }, [
1399
- Ie(S(c), {
1400
- name: "excel",
1401
- stroke: Ce.value.props.color
1402
- }, null, 8, ["stroke"])
1403
- ])
1404
- ]),
1405
- key: "1"
1406
- } : void 0
1407
- ]), 1040)) : J("", !0),
1408
- S(fe) ? (_(), ve(ao, { key: 7 })) : J("", !0)
1409
- ], 44, Po));
1410
- }
1411
- }, Vo = /* @__PURE__ */ vo(No, [["__scopeId", "data-v-6599bd6f"]]), la = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1412
- __proto__: null,
1413
- default: Vo
1414
- }, Symbol.toStringTag, { value: "Module" }));
1415
- export {
1416
- na as a,
1417
- la as b,
1418
- Vo as v
1419
- };