vue-data-ui 2.12.8-beta.2 → 2.12.8-beta.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 (90) hide show
  1. package/README.md +15 -0
  2. package/dist/{Arrow-HbfibAF0.js → Arrow-kQyQXUUg.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DGrErCX-.js → BaseDraggableDialog-DLRFrsDT.js} +2 -2
  4. package/dist/{BaseIcon-j0c6lJUs.js → BaseIcon-DaR0sIWZ.js} +1 -1
  5. package/dist/{ColorPicker-DitXXl-H.js → ColorPicker-Bj3sq9o7.js} +2 -2
  6. package/dist/{DataTable-CsoAI95B.js → DataTable-BBqbcutV.js} +2 -2
  7. package/dist/{Legend-ZW-PFcHg.js → Legend-DRqzYrP9.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DJTUaQ94.js → NonSvgPenAndPaper-CQIC2PMP.js} +3 -3
  9. package/dist/{PackageVersion-DCAZ9Z7V.js → PackageVersion-ClpqQxYT.js} +1 -1
  10. package/dist/{PenAndPaper-B9RP4oFj.js → PenAndPaper-B-T7XvxF.js} +3 -3
  11. package/dist/{Shape-BBbhObHC.js → Shape-DEWxbZ-l.js} +1 -1
  12. package/dist/{Slicer-Vh74fjdf.js → Slicer-o6jJH5bw.js} +2 -2
  13. package/dist/{SparkTooltip-CG-HMbX2.js → SparkTooltip-LPnbBoFu.js} +1 -1
  14. package/dist/{Title-Dx8ctnVy.js → Title-apr_T9tg.js} +1 -1
  15. package/dist/{Tooltip-COHlzpZI.js → Tooltip-BuHsMAfp.js} +1 -1
  16. package/dist/{UserOptions-CGn3YdRV.js → UserOptions-OVNxxnq5.js} +144 -133
  17. package/dist/{dom-to-png-BjSUS-jY.js → dom-to-png-C0Ct8ClX.js} +1 -1
  18. package/dist/{img-DWfzRJdv.js → img-P0SFFw37.js} +1 -1
  19. package/dist/{index-CbcpITE_.js → index-CH_mJIWj.js} +185 -127
  20. package/dist/{pdf-Cy09nTjn.js → pdf-Jun3ogRn.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +42 -0
  23. package/dist/types/vue-data-ui.d.ts +42 -0
  24. package/dist/{useNestedProp-y56W8I7J.js → useNestedProp-rMR-JeOJ.js} +1 -1
  25. package/dist/{usePrinter-u-gQiRNz.js → usePrinter-DJ7WfWUs.js} +2 -2
  26. package/dist/{vue-data-ui-DGmMT-Yp.js → vue-data-ui-D7AaTKU6.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Du4TkjPV.js → vue-ui-3d-bar-BfLLrwWi.js} +8 -7
  29. package/dist/{vue-ui-accordion-BkA7rtwr.js → vue-ui-accordion-Ds4zkPIx.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-bw7gLRlR.js → vue-ui-age-pyramid-C7ca5TG5.js} +41 -40
  31. package/dist/{vue-ui-annotator-C-_zXB7H.js → vue-ui-annotator-DG2z1gw8.js} +2 -2
  32. package/dist/{vue-ui-bullet-BRnz7E8e.js → vue-ui-bullet-Dh25QAEH.js} +9 -8
  33. package/dist/{vue-ui-candlestick-9cPPnO0t.js → vue-ui-candlestick-7Yo_kEV0.js} +9 -8
  34. package/dist/{vue-ui-carousel-table-BJuSGbk2.js → vue-ui-carousel-table-Det9Kwmy.js} +28 -27
  35. package/dist/{vue-ui-chestnut-D2dnrdHT.js → vue-ui-chestnut-DLlFv6Uj.js} +8 -7
  36. package/dist/{vue-ui-chord-Rvygj27H.js → vue-ui-chord-BXlv5Z2x.js} +35 -34
  37. package/dist/{vue-ui-circle-pack-BR79EDAC.js → vue-ui-circle-pack-DdRcdWmx.js} +43 -42
  38. package/dist/{vue-ui-cursor-K11x9TYc.js → vue-ui-cursor-Djtg6Ppw.js} +2 -2
  39. package/dist/{vue-ui-dashboard-BgxqXwqN.js → vue-ui-dashboard-C4MDDCl6.js} +62 -62
  40. package/dist/{vue-ui-digits-D7StMUym.js → vue-ui-digits-8Ox6q1Ov.js} +2 -2
  41. package/dist/{vue-ui-donut-CyOg8kph.js → vue-ui-donut-Hk4EaVhb.js} +10 -9
  42. package/dist/{vue-ui-donut-evolution-CVhQaMNQ.js → vue-ui-donut-evolution-DzgYokPU.js} +10 -9
  43. package/dist/{vue-ui-dumbbell-C7Wex4VO.js → vue-ui-dumbbell-CAC44_Hu.js} +52 -51
  44. package/dist/{vue-ui-flow-DFNdP-V9.js → vue-ui-flow-CYWiZjrP.js} +9 -8
  45. package/dist/{vue-ui-funnel-DqWcZVvF.js → vue-ui-funnel-C2eqxh_8.js} +20 -19
  46. package/dist/{vue-ui-galaxy-BhPbJqYr.js → vue-ui-galaxy-BBfg84E4.js} +7 -6
  47. package/dist/{vue-ui-gauge-sP6YPTJH.js → vue-ui-gauge-BJgJgef_.js} +33 -32
  48. package/dist/{vue-ui-gizmo-B4fq_bGX.js → vue-ui-gizmo-DBclpybR.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CpNjtuyD.js → vue-ui-heatmap-D65wOgqe.js} +10 -9
  50. package/dist/{vue-ui-history-plot-CtgTg4fG.js → vue-ui-history-plot-CHhDy7Da.js} +9 -8
  51. package/dist/{vue-ui-kpi-CN2AE1VF.js → vue-ui-kpi-uT6fsAaO.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CYt8LlhO.js → vue-ui-mini-loader-CKVlBiYB.js} +2 -2
  53. package/dist/{vue-ui-molecule-D3kexAu_.js → vue-ui-molecule-BwtHZtGN.js} +22 -21
  54. package/dist/{vue-ui-mood-radar-hHqR8eS7.js → vue-ui-mood-radar-Vf4_-R-m.js} +9 -8
  55. package/dist/{vue-ui-nested-donuts-DXwaOA_n.js → vue-ui-nested-donuts-BVkSns4S.js} +44 -43
  56. package/dist/{vue-ui-onion-C7R2R5tf.js → vue-ui-onion-UzMmwtvF.js} +9 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-Dh772r8W.js → vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js} +10 -9
  58. package/dist/{vue-ui-quadrant-jrOesLSU.js → vue-ui-quadrant-Ck7xALez.js} +10 -9
  59. package/dist/{vue-ui-quick-chart-CtLnhGZA.js → vue-ui-quick-chart-B62Pa0nG.js} +8 -7
  60. package/dist/{vue-ui-radar-BikYRjfw.js → vue-ui-radar-DMfv2hSb.js} +6 -6
  61. package/dist/{vue-ui-rating-DUYbT-Ve.js → vue-ui-rating-CFYHJrxj.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CjnDrflp.js → vue-ui-relation-circle-RWlfC5BI.js} +75 -74
  63. package/dist/{vue-ui-ridgeline-o7-RpeJx.js → vue-ui-ridgeline-Bh93VzcO.js} +10 -9
  64. package/dist/{vue-ui-rings-Dinj5ws1.js → vue-ui-rings-CyX30Ccv.js} +23 -22
  65. package/dist/{vue-ui-scatter-CODAsxBq.js → vue-ui-scatter-BEDnWByj.js} +10 -9
  66. package/dist/{vue-ui-skeleton-miKWlCAi.js → vue-ui-skeleton-C6PWt_m5.js} +3 -3
  67. package/dist/{vue-ui-smiley-DwqlNm1O.js → vue-ui-smiley-79itAe84.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-BjL35phT.js → vue-ui-spark-trend-AaA4KuaH.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-2o2ZLL50.js → vue-ui-sparkbar-CYBZeaor.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-CMlBpOcc.js → vue-ui-sparkgauge-ElGarXVS.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-C7Ue-aaI.js → vue-ui-sparkhistogram-C_LV99i1.js} +4 -4
  72. package/dist/{vue-ui-sparkline-w29yzdZG.js → vue-ui-sparkline-DwzCA8d6.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DbIxY7W3.js → vue-ui-sparkstackbar-CobB11uw.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CWqpeYW-.js → vue-ui-stackbar-B4SxM5Ix.js} +11 -10
  75. package/dist/{vue-ui-strip-plot-DyjQVaDX.js → vue-ui-strip-plot-9VK_Y3SC.js} +9 -8
  76. package/dist/{vue-ui-table-Bx82XIlz.js → vue-ui-table-DFTE1OH5.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-RvSyx9L6.js → vue-ui-table-heatmap-DvyJx0j7.js} +48 -47
  78. package/dist/{vue-ui-table-sparkline-DebvtEV3.js → vue-ui-table-sparkline-SGsBnQTK.js} +8 -7
  79. package/dist/{vue-ui-thermometer-yPKRIlqA.js → vue-ui-thermometer-DEMS6HXl.js} +22 -21
  80. package/dist/{vue-ui-timer-C15nOU7T.js → vue-ui-timer-CQ71yJ_N.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C2G8HtiX.js → vue-ui-tiremarks-CsN_QtUK.js} +38 -37
  82. package/dist/{vue-ui-treemap-cFhw0xSg.js → vue-ui-treemap-B0CPNusH.js} +229 -228
  83. package/dist/{vue-ui-vertical-bar-dWiOw4sV.js → vue-ui-vertical-bar-Cxv-ahMT.js} +12 -11
  84. package/dist/{vue-ui-waffle-Uldnmn6D.js → vue-ui-waffle-TgNNo9UX.js} +66 -65
  85. package/dist/{vue-ui-wheel-Cz79iDLO.js → vue-ui-wheel-Bq0ZLc-R.js} +8 -7
  86. package/dist/{vue-ui-word-cloud-BGeHV6hS.js → vue-ui-word-cloud-D28awCaT.js} +66 -65
  87. package/dist/{vue-ui-world-D1Dy-4mh.js → vue-ui-world-BhUsfhY5.js} +8 -7
  88. package/dist/{vue-ui-xy-BA7xWU7_.js → vue-ui-xy-CEFkua9H.js} +918 -811
  89. package/dist/{vue-ui-xy-canvas-B2kkKb64.js → vue-ui-xy-canvas-oHhzL0ui.js} +53 -52
  90. package/package.json +1 -1
@@ -1,20 +1,20 @@
1
- import { useCssVars as De, defineAsyncComponent as j, computed as se, ref as g, watch as be, shallowRef as Fe, onMounted as Ee, onBeforeUnmount as Ue, createElementBlock as N, openBlock as x, unref as r, normalizeStyle as he, createBlock as ie, createCommentVNode as B, createVNode as we, createSlots as Ge, withCtx as O, renderSlot as F, normalizeProps as Q, guardReactiveProps as ee, normalizeClass as Me, createElementVNode as Ce, Fragment as Le, renderList as je, toDisplayString as Pe, createTextVNode as He, nextTick as ze } from "vue";
2
- import { u as qe, c as Ae, aj as Ze, v as Je, t as Ke, p as me, a as Qe, o as et, e as Oe, g as tt, f as ot, X as at, q as lt, r as nt, x as st } from "./index-CbcpITE_.js";
1
+ import { useCssVars as De, defineAsyncComponent as j, computed as se, ref as g, watch as be, shallowRef as Fe, onMounted as Ee, onBeforeUnmount as Ue, createElementBlock as N, openBlock as x, unref as r, normalizeStyle as he, createBlock as ie, createCommentVNode as B, createVNode as we, createSlots as Ge, withCtx as A, renderSlot as F, normalizeProps as Q, guardReactiveProps as ee, normalizeClass as Me, createElementVNode as ke, Fragment as Le, renderList as je, toDisplayString as Pe, createTextVNode as He, nextTick as ze } from "vue";
2
+ import { u as qe, c as Oe, aj as Ze, v as Je, t as Ke, p as me, a as Qe, o as et, e as Ae, g as tt, f as ot, X as at, q as lt, r as nt, x as st } from "./index-CH_mJIWj.js";
3
3
  import { t as it, u as rt, d as ut } from "./useResponsive-JZ9xq-JV.js";
4
- import { u as Ne } from "./useNestedProp-y56W8I7J.js";
5
- import { u as ct } from "./usePrinter-u-gQiRNz.js";
4
+ import { u as Ne } from "./useNestedProp-rMR-JeOJ.js";
5
+ import { u as ct } from "./usePrinter-DJ7WfWUs.js";
6
6
  import { u as dt } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as vt } from "./useChartAccessibility-9icAAmYg.js";
8
8
  import { u as ht } from "./usePanZoom-BQMvRXEQ.js";
9
- import mt from "./Title-Dx8ctnVy.js";
9
+ import mt from "./Title-apr_T9tg.js";
10
10
  import { _ as ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  function pt(w, p) {
12
12
  const { width: u, height: f } = w, m = p.getImageData(0, 0, u, f).data;
13
- let l = u, a = f, s = 0, C = 0, d = !1;
13
+ let l = u, a = f, s = 0, k = 0, d = !1;
14
14
  for (let h = 0; h < f; h += 1)
15
15
  for (let y = 0; y < u; y += 1)
16
- m[(h * u + y) * 4 + 3] > 1 && (d = !0, y < l && (l = y), y > s && (s = y), h < a && (a = h), h > C && (C = h));
17
- return d ? [l, a, s, C] : [0, 0, 0, 0];
16
+ m[(h * u + y) * 4 + 3] > 1 && (d = !0, y < l && (l = y), y > s && (s = y), h < a && (a = h), h > k && (k = h));
17
+ return d ? [l, a, s, k] : [0, 0, 0, 0];
18
18
  }
19
19
  function Ie({
20
20
  word: w,
@@ -51,9 +51,9 @@ function gt({ wordMask: w, w: p, h: u, dilation: f }) {
51
51
  const c = new Set(w.map(([l, a]) => `${l},${a}`)), m = new Set(c);
52
52
  for (let [l, a] of w)
53
53
  for (let s = -f; s <= f; s += 1)
54
- for (let C = -f; C <= f; C += 1) {
55
- if (s === 0 && C === 0) continue;
56
- const d = l + s, h = a + C;
54
+ for (let k = -f; k <= f; k += 1) {
55
+ if (s === 0 && k === 0) continue;
56
+ const d = l + s, h = a + k;
57
57
  d >= 0 && d < p && h >= 0 && h < u && m.add(`${d},${h}`);
58
58
  }
59
59
  return Array.from(m).map((l) => l.split(",").map(Number));
@@ -64,15 +64,15 @@ function yt({
64
64
  svg: u,
65
65
  strictPixelPadding: f
66
66
  }) {
67
- const { width: c, height: m } = u, l = Math.round(c), a = Math.round(m), s = 1, C = u.minFontSize, d = Math.min(u.maxFontSize, 100), h = w.map((T) => T.value), y = Math.min(...h), D = Math.max(...h), P = new Uint8Array(l * a), I = document.createElement("canvas"), _ = I.getContext("2d", { willReadFrequently: !0 });
67
+ const { width: c, height: m } = u, l = Math.round(c), a = Math.round(m), s = 1, k = u.minFontSize, d = Math.min(u.maxFontSize, 100), h = w.map((T) => T.value), y = Math.min(...h), D = Math.max(...h), P = new Uint8Array(l * a), I = document.createElement("canvas"), _ = I.getContext("2d", { willReadFrequently: !0 });
68
68
  I.width = l, I.height = a;
69
69
  const Y = 6, re = 2, te = 2, e = 1, U = Math.floor(l / 2), oe = Math.floor(a / 2), ae = [...w].sort((T, z) => z.value - T.value), H = [];
70
70
  for (const T of ae) {
71
- let z = C;
72
- D !== y && (z = (T.value - y) / (D - y) * (d - C) + C), z = Math.max(C, Math.min(d, z));
71
+ let z = k;
72
+ D !== y && (z = (T.value - y) / (D - y) * (d - k) + k), z = Math.max(k, Math.min(d, z));
73
73
  let R = !1, n = z;
74
74
  for (; !R && n >= s; ) {
75
- let { w: X, h: V, wordMask: k, minX: W, minY: q, maxX: Z, maxY: J } = Ie({
75
+ let { w: X, h: V, wordMask: C, minX: W, minY: q, maxX: Z, maxY: J } = Ie({
76
76
  word: T,
77
77
  fontSize: n,
78
78
  pad: p,
@@ -80,24 +80,24 @@ function yt({
80
80
  ctx: _,
81
81
  svg: u
82
82
  });
83
- f && (k = gt({ wordMask: k, w: X, h: V, dilation: 1 }));
84
- let A = 0, E = 0;
85
- for (; A < Math.max(l, a) && !R && E < 1e4; ) {
83
+ f && (C = gt({ wordMask: C, w: X, h: V, dilation: 1 }));
84
+ let O = 0, E = 0;
85
+ for (; O < Math.max(l, a) && !R && E < 1e4; ) {
86
86
  for (let v = 0; v < 360; v += Y) {
87
87
  E += 1;
88
- const M = Math.round(U + A * Math.cos(v * Math.PI / 180) - X / 2), b = Math.round(oe + A * Math.sin(v * Math.PI / 180) - V / 2);
89
- if (!(M < 0 || b < 0 || M + X > l || b + V > a) && _e({ mask: P, maskW: l, maskH: a, wx: M, wy: b, wordMask: k })) {
90
- H.push({ ...T, x: M - l / 2, y: b - a / 2, fontSize: n, width: X, height: V, angle: 0, minX: W, minY: q, maxX: Z, maxY: J }), Re({ mask: P, maskW: l, maskH: a, wx: M, wy: b, wordMask: k }), R = !0;
88
+ const M = Math.round(U + O * Math.cos(v * Math.PI / 180) - X / 2), b = Math.round(oe + O * Math.sin(v * Math.PI / 180) - V / 2);
89
+ if (!(M < 0 || b < 0 || M + X > l || b + V > a) && _e({ mask: P, maskW: l, maskH: a, wx: M, wy: b, wordMask: C })) {
90
+ H.push({ ...T, x: M - l / 2, y: b - a / 2, fontSize: n, width: X, height: V, angle: 0, minX: W, minY: q, maxX: Z, maxY: J }), Re({ mask: P, maskW: l, maskH: a, wx: M, wy: b, wordMask: C }), R = !0;
91
91
  break;
92
92
  }
93
93
  }
94
- A += re;
94
+ O += re;
95
95
  }
96
96
  R || (n -= 1);
97
97
  }
98
98
  if (!R && n < s) {
99
99
  n = s;
100
- const { w: X, h: V, wordMask: k, minX: W, minY: q, maxX: Z, maxY: J } = Ie({
100
+ const { w: X, h: V, wordMask: C, minX: W, minY: q, maxX: Z, maxY: J } = Ie({
101
101
  word: T,
102
102
  fontSize: n,
103
103
  pad: p,
@@ -105,23 +105,23 @@ function yt({
105
105
  ctx: _,
106
106
  svg: u
107
107
  });
108
- let A = 0, E = 0;
109
- for (; A < Math.max(l, a) && !R && E < 25e3; ) {
108
+ let O = 0, E = 0;
109
+ for (; O < Math.max(l, a) && !R && E < 25e3; ) {
110
110
  for (let v = 0; v < 360; v += te) {
111
111
  E += 1;
112
- const M = Math.round(U + A * Math.cos(v * Math.PI / 180) - X / 2), b = Math.round(oe + A * Math.sin(v * Math.PI / 180) - V / 2);
113
- if (!(M < 0 || b < 0 || M + X > l || b + V > a) && _e({ mask: P, maskW: l, maskH: a, wx: M, wy: b, wordMask: k })) {
114
- H.push({ ...T, x: M - l / 2, y: b - a / 2, fontSize: n, width: X, height: V, angle: 0, minX: W, minY: q, maxX: Z, maxY: J }), Re({ mask: P, maskW: l, maskH: a, wx: M, wy: b, wordMask: k }), R = !0;
112
+ const M = Math.round(U + O * Math.cos(v * Math.PI / 180) - X / 2), b = Math.round(oe + O * Math.sin(v * Math.PI / 180) - V / 2);
113
+ if (!(M < 0 || b < 0 || M + X > l || b + V > a) && _e({ mask: P, maskW: l, maskH: a, wx: M, wy: b, wordMask: C })) {
114
+ H.push({ ...T, x: M - l / 2, y: b - a / 2, fontSize: n, width: X, height: V, angle: 0, minX: W, minY: q, maxX: Z, maxY: J }), Re({ mask: P, maskW: l, maskH: a, wx: M, wy: b, wordMask: C }), R = !0;
115
115
  break;
116
116
  }
117
117
  }
118
- A += e;
118
+ O += e;
119
119
  }
120
120
  }
121
121
  }
122
122
  return H.sort((T, z) => z.fontSize - T.fontSize);
123
123
  }
124
- const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["transform"], xt = ["x", "y", "width", "height", "onMouseover"], $t = ["fill", "font-weight", "x", "y", "font-size", "transform"], Tt = {
124
+ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["transform"], xt = ["x", "y", "width", "height", "onMouseover"], $t = ["fill", "font-weight", "x", "y", "font-size", "transform"], Tt = {
125
125
  key: 4,
126
126
  class: "vue-data-ui-watermark"
127
127
  }, St = {
@@ -146,16 +146,16 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
146
146
  },
147
147
  setup(w, { expose: p }) {
148
148
  De((t) => ({
149
- c9496d9a: t.slicerColor
149
+ ef7c6c52: t.slicerColor
150
150
  }));
151
- const u = j(() => import("./vue-ui-accordion-BkA7rtwr.js")), f = j(() => import("./BaseIcon-j0c6lJUs.js")), c = j(() => import("./DataTable-CsoAI95B.js")), m = j(() => import("./PackageVersion-DCAZ9Z7V.js")), l = j(() => import("./PenAndPaper-B9RP4oFj.js")), a = j(() => import("./Tooltip-COHlzpZI.js")), s = j(() => import("./UserOptions-CGn3YdRV.js")), { vue_ui_word_cloud: C } = qe(), d = w, h = se({
151
+ const u = j(() => import("./vue-ui-accordion-Ds4zkPIx.js")), f = j(() => import("./BaseIcon-DaR0sIWZ.js")), c = j(() => import("./DataTable-BBqbcutV.js")), m = j(() => import("./PackageVersion-ClpqQxYT.js")), l = j(() => import("./PenAndPaper-B-T7XvxF.js")), a = j(() => import("./Tooltip-BuHsMAfp.js")), s = j(() => import("./UserOptions-OVNxxnq5.js")), { vue_ui_word_cloud: k } = qe(), d = w, h = se({
152
152
  get() {
153
153
  return !!d.dataset && d.dataset.length;
154
154
  },
155
155
  set(t) {
156
156
  return t;
157
157
  }
158
- }), y = g(Ae()), D = g(0), P = g(null), I = g(null), _ = g(null), Y = g(0), re = g(0), te = g(!1), e = se({
158
+ }), y = g(Oe()), D = g(0), P = g(null), I = g(null), _ = g(null), Y = g(0), re = g(0), te = g(!1), e = se({
159
159
  get: () => R(),
160
160
  set: (t) => t
161
161
  }), U = g(oe());
@@ -172,7 +172,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
172
172
  function R() {
173
173
  const t = Ne({
174
174
  userConfig: d.config,
175
- defaultConfig: C
175
+ defaultConfig: k
176
176
  });
177
177
  return t.theme ? {
178
178
  ...Ne({
@@ -202,10 +202,10 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
202
202
  requestAnimationFrame(() => {
203
203
  n.value.width = t, n.value.height = i, ze(X);
204
204
  });
205
- }), k = Fe(null), W = Fe(null);
205
+ }), C = Fe(null), W = Fe(null);
206
206
  Ee(q);
207
207
  function q() {
208
- et(d.dataset) ? Oe({
208
+ et(d.dataset) ? Ae({
209
209
  componentName: "VueUiWordCloud",
210
210
  type: "dataset"
211
211
  }) : U.value.forEach((t, i) => {
@@ -213,19 +213,19 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
213
213
  datasetObject: t,
214
214
  requiredAttributes: ["name", "value"]
215
215
  }).forEach((o) => {
216
- h.value = !1, Oe({
216
+ h.value = !1, Ae({
217
217
  componentName: "VueUiWordCloud",
218
218
  type: "datasetSerieAttribute",
219
219
  property: o,
220
220
  index: i
221
221
  });
222
222
  });
223
- }), e.value.responsive && (k.value && (W.value && k.value.unobserve(W.value), k.value.disconnect()), k.value = new ResizeObserver(V), W.value = P.value.parentNode, k.value.observe(W.value));
223
+ }), e.value.responsive && (C.value && (W.value && C.value.unobserve(W.value), C.value.disconnect()), C.value = new ResizeObserver(V), W.value = P.value.parentNode, C.value.observe(W.value));
224
224
  }
225
225
  Ue(() => {
226
- k.value && (W.value && k.value.unobserve(W.value), k.value.disconnect());
226
+ C.value && (W.value && C.value.unobserve(W.value), C.value.disconnect());
227
227
  });
228
- const { isPrinting: Z, isImaging: J, generatePdf: A, generateImage: E } = ct({
228
+ const { isPrinting: Z, isImaging: J, generatePdf: O, generateImage: E } = ct({
229
229
  elementId: `wordCloud_${y.value}`,
230
230
  fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
231
231
  options: e.value.userOptions.print
@@ -249,7 +249,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
249
249
  const Se = M($.name, L);
250
250
  return {
251
251
  ...$,
252
- id: Ae(),
252
+ id: Oe(),
253
253
  fontSize: L,
254
254
  width: Se.width,
255
255
  height: Se.height,
@@ -270,7 +270,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
270
270
  })), i = b.value.map((o) => o.value);
271
271
  return { head: t, body: i };
272
272
  });
273
- function ke() {
273
+ function Ce() {
274
274
  ze(() => {
275
275
  const t = ue.value.head.map((S, $) => [[
276
276
  S.name
@@ -338,8 +338,8 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
338
338
  }, 1, We);
339
339
  p({
340
340
  getData: Ve,
341
- generateCsv: ke,
342
- generatePdf: A,
341
+ generateCsv: Ce,
342
+ generatePdf: O,
343
343
  generateImage: E,
344
344
  toggleTable: xe,
345
345
  toggleTooltip: $e,
@@ -422,9 +422,10 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
422
422
  isTooltip: v.value.showTooltip,
423
423
  hasAnnotator: e.value.userOptions.buttons.annotator,
424
424
  isAnnotation: le.value,
425
+ callbacks: e.value.userOptions.callbacks,
425
426
  onToggleFullscreen: Xe,
426
- onGeneratePdf: r(A),
427
- onGenerateCsv: ke,
427
+ onGeneratePdf: r(O),
428
+ onGenerateCsv: Ce,
428
429
  onGenerateImage: r(E),
429
430
  onToggleTable: xe,
430
431
  onToggleTooltip: $e,
@@ -435,54 +436,54 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
435
436
  }, Ge({ _: 2 }, [
436
437
  t.$slots.menuIcon ? {
437
438
  name: "menuIcon",
438
- fn: O(({ isOpen: o, color: S }) => [
439
+ fn: A(({ isOpen: o, color: S }) => [
439
440
  F(t.$slots, "menuIcon", Q(ee({ isOpen: o, color: S })), void 0, !0)
440
441
  ]),
441
442
  key: "0"
442
443
  } : void 0,
443
444
  t.$slots.optionPdf ? {
444
445
  name: "optionPdf",
445
- fn: O(() => [
446
+ fn: A(() => [
446
447
  F(t.$slots, "optionPdf", {}, void 0, !0)
447
448
  ]),
448
449
  key: "1"
449
450
  } : void 0,
450
451
  t.$slots.optionCsv ? {
451
452
  name: "optionCsv",
452
- fn: O(() => [
453
+ fn: A(() => [
453
454
  F(t.$slots, "optionCsv", {}, void 0, !0)
454
455
  ]),
455
456
  key: "2"
456
457
  } : void 0,
457
458
  t.$slots.optionImg ? {
458
459
  name: "optionImg",
459
- fn: O(() => [
460
+ fn: A(() => [
460
461
  F(t.$slots, "optionImg", {}, void 0, !0)
461
462
  ]),
462
463
  key: "3"
463
464
  } : void 0,
464
465
  t.$slots.optionTable ? {
465
466
  name: "optionTable",
466
- fn: O(() => [
467
+ fn: A(() => [
467
468
  F(t.$slots, "optionTable", {}, void 0, !0)
468
469
  ]),
469
470
  key: "4"
470
471
  } : void 0,
471
472
  t.$slots.optionFullscreen ? {
472
473
  name: "optionFullscreen",
473
- fn: O(({ toggleFullscreen: o, isFullscreen: S }) => [
474
+ fn: A(({ toggleFullscreen: o, isFullscreen: S }) => [
474
475
  F(t.$slots, "optionFullscreen", Q(ee({ toggleFullscreen: o, isFullscreen: S })), void 0, !0)
475
476
  ]),
476
477
  key: "5"
477
478
  } : void 0,
478
479
  t.$slots.optionAnnotator ? {
479
480
  name: "optionAnnotator",
480
- fn: O(({ toggleAnnotator: o, isAnnotator: S }) => [
481
+ fn: A(({ toggleAnnotator: o, isAnnotator: S }) => [
481
482
  F(t.$slots, "optionAnnotator", Q(ee({ toggleAnnotator: o, isAnnotator: S })), void 0, !0)
482
483
  ]),
483
484
  key: "6"
484
485
  } : void 0
485
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : B("", !0),
486
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : B("", !0),
486
487
  h.value ? (x(), N("svg", {
487
488
  key: 3,
488
489
  ref_key: "svgRef",
@@ -504,8 +505,8 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
504
505
  }
505
506
  }, [
506
507
  F(t.$slots, "chart-background", {}, void 0, !0)
507
- ], 8, Ct)) : B("", !0),
508
- Ce("g", {
508
+ ], 8, kt)) : B("", !0),
509
+ ke("g", {
509
510
  transform: `translate(${(n.value.width <= 0 ? 10 : n.value.width) / 2}, ${(n.value.height <= 0 ? 10 : n.value.height) / 2})`
510
511
  }, [
511
512
  (x(!0), N(Le, null, je(b.value, (o, S) => (x(), N("g", null, [
@@ -536,7 +537,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
536
537
  style: he(`animation-delay:${S * e.value.animationDelayMs}ms !important; pointer-events:none;`)
537
538
  }, Pe(o.name), 15, $t))
538
539
  ]))), 256))
539
- ], 8, kt),
540
+ ], 8, Ct),
540
541
  F(t.$slots, "svg", {
541
542
  svg: { height: n.value.height, width: n.value.width }
542
543
  }, void 0, !0)
@@ -546,7 +547,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
546
547
  ])) : B("", !0),
547
548
  r(Be) ? (x(), N("div", St, [
548
549
  F(t.$slots, "reset-action", { reset: r(Te) }, () => [
549
- Ce("button", {
550
+ ke("button", {
550
551
  "data-cy-reset": "",
551
552
  tabindex: "0",
552
553
  role: "button",
@@ -578,10 +579,10 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
578
579
  content: ge.value,
579
580
  isCustom: ne.value
580
581
  }, {
581
- "tooltip-before": O(() => [
582
+ "tooltip-before": A(() => [
582
583
  F(t.$slots, "tooltip-before", Q(ee({ ...ye.value })), void 0, !0)
583
584
  ]),
584
- "tooltip-after": O(() => [
585
+ "tooltip-after": A(() => [
585
586
  F(t.$slots, "tooltip-after", Q(ee({ ...ye.value })), void 0, !0)
586
587
  ]),
587
588
  _: 3
@@ -610,7 +611,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
610
611
  }
611
612
  }
612
613
  }, {
613
- content: O(() => [
614
+ content: A(() => [
614
615
  (x(), ie(r(c), {
615
616
  key: `table_${re.value}`,
616
617
  colNames: ce.value.colNames,
@@ -620,13 +621,13 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
620
621
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
621
622
  onClose: i[2] || (i[2] = (o) => v.value.showTable = !1)
622
623
  }, {
623
- th: O(({ th: o }) => [
624
- Ce("div", {
624
+ th: A(({ th: o }) => [
625
+ ke("div", {
625
626
  innerHTML: o,
626
627
  style: { display: "flex", "align-items": "center" }
627
628
  }, null, 8, Ft)
628
629
  ]),
629
- td: O(({ td: o }) => [
630
+ td: A(({ td: o }) => [
630
631
  He(Pe(o.name || o), 1)
631
632
  ]),
632
633
  _: 1
@@ -636,7 +637,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], Ct = ["width", "height"], kt = ["t
636
637
  }, 8, ["config"])) : B("", !0)
637
638
  ], 44, bt));
638
639
  }
639
- }, Wt = /* @__PURE__ */ ft(Mt, [["__scopeId", "data-v-2f9957bf"]]);
640
+ }, Wt = /* @__PURE__ */ ft(Mt, [["__scopeId", "data-v-f12089f2"]]);
640
641
  export {
641
642
  Wt as default
642
643
  };