vue-data-ui 3.5.2 → 3.7.0

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