vue-data-ui 2.3.91 → 2.3.92

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 (149) hide show
  1. package/README.md +3 -2
  2. package/dist/{Arrow-CHTslrAF.js → Arrow-16rQhq4i.js} +1 -1
  3. package/dist/{Arrow-DpuaFuue.cjs → Arrow-CdJD01md.cjs} +1 -1
  4. package/dist/{BaseIcon-DfaCNBgc.js → BaseIcon-CAmYNoaf.js} +1 -1
  5. package/dist/{BaseIcon-JWGtHqTA.cjs → BaseIcon-dYWMubrH.cjs} +1 -1
  6. package/dist/{DataTable-BKc3r3k3.js → DataTable-BXnbua0J.js} +2 -2
  7. package/dist/{DataTable-CnkdsvIo.cjs → DataTable-oa0Srfuc.cjs} +1 -1
  8. package/dist/{Legend-WNL92WSx.js → Legend-Cr1hulgT.js} +1 -1
  9. package/dist/{Legend-BQJV6Xk4.cjs → Legend-Dhm9_peB.cjs} +1 -1
  10. package/dist/{PackageVersion-D9PU8glB.js → PackageVersion-BVZfgDqm.js} +1 -1
  11. package/dist/{PackageVersion-LdLhc8hQ.cjs → PackageVersion-BkgJVmj1.cjs} +1 -1
  12. package/dist/{Shape-DPvoEBm9.js → Shape-D75m5xWM.js} +1 -1
  13. package/dist/{Shape-CgW0V2Og.cjs → Shape-hGbEoQOv.cjs} +1 -1
  14. package/dist/{Slicer-Dma3nlzi.cjs → Slicer-B7ya0m2Q.cjs} +1 -1
  15. package/dist/{Slicer-DE9nFM_c.js → Slicer-Bx8AozB8.js} +2 -2
  16. package/dist/{Title-CECK1w9L.js → Title-1Sw6EmHy.js} +1 -1
  17. package/dist/{Title-Bg_BK11V.cjs → Title-Bjrh7khe.cjs} +1 -1
  18. package/dist/{Tooltip-lM1Jzkza.cjs → Tooltip-CPATjuur.cjs} +1 -1
  19. package/dist/{Tooltip-Ci3AprCm.js → Tooltip-EJf3VBPR.js} +1 -1
  20. package/dist/documentation/installation.md +1 -1
  21. package/dist/index-D09qCApg.cjs +4 -0
  22. package/dist/{index-mBy4elhB.js → index-DhJby8wL.js} +8 -3
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +16 -0
  25. package/dist/types/vue-data-ui.d.ts +16 -0
  26. package/dist/{useNestedProp-m8IH8hWW.cjs → useNestedProp-Bwd7mK1Z.cjs} +1 -1
  27. package/dist/{useNestedProp-BrIRtQj1.js → useNestedProp-CrHvyupb.js} +1 -1
  28. package/dist/{usePrinter-Ck-yukK2.js → usePrinter-Bwm8J3RQ.js} +1 -1
  29. package/dist/{usePrinter-B8jr_V3b.cjs → usePrinter-DdsPm5a4.cjs} +1 -1
  30. package/dist/{vue-data-ui-BuL-2aYA.js → vue-data-ui-CLxne31S.js} +57 -57
  31. package/dist/{vue-data-ui-BgaY7Noy.cjs → vue-data-ui-ZitCqVgG.cjs} +1 -1
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-C9a-AsIX.cjs → vue-ui-3d-bar-DAv5cYGJ.cjs} +1 -1
  35. package/dist/{vue-ui-3d-bar-Cv-56A3m.js → vue-ui-3d-bar-Dg87_AAm.js} +8 -8
  36. package/dist/{vue-ui-accordion-Bzq1iTL2.cjs → vue-ui-accordion-BAHX7KzB.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-dyF20BlD.js → vue-ui-accordion-Cn5Jbplg.js} +3 -3
  38. package/dist/{vue-ui-age-pyramid-DDPU8QV8.cjs → vue-ui-age-pyramid-GzHwQzsH.cjs} +1 -1
  39. package/dist/{vue-ui-age-pyramid-BqsDR6uw.js → vue-ui-age-pyramid-PlamQWqC.js} +9 -9
  40. package/dist/{vue-ui-annotator-B9HxrEVE.cjs → vue-ui-annotator-DGgQwl-K.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-CkJsRR0r.js → vue-ui-annotator-Dd5KF_cy.js} +1 -1
  42. package/dist/{vue-ui-candlestick-DbbbJa-d.cjs → vue-ui-candlestick-BIEB2J1w.cjs} +1 -1
  43. package/dist/{vue-ui-candlestick-B8eYA2g0.js → vue-ui-candlestick-DTzwPhV5.js} +10 -10
  44. package/dist/{vue-ui-carousel-table-CCWGcKb7.cjs → vue-ui-carousel-table-HNTf5AYY.cjs} +1 -1
  45. package/dist/{vue-ui-carousel-table-BCiTg3Ok.js → vue-ui-carousel-table-YEfvPESA.js} +4 -4
  46. package/dist/{vue-ui-chestnut-rsWP_sXY.cjs → vue-ui-chestnut-DzjdAYsT.cjs} +1 -1
  47. package/dist/{vue-ui-chestnut-DI-N69Ad.js → vue-ui-chestnut-PzMOM7mp.js} +7 -7
  48. package/dist/{vue-ui-cursor-wY14Z-Vd.cjs → vue-ui-cursor-C5rsiCdn.cjs} +1 -1
  49. package/dist/{vue-ui-cursor-BUzJk1oC.js → vue-ui-cursor-DWea2yXV.js} +2 -2
  50. package/dist/{vue-ui-dashboard-Cf8TYbAr.cjs → vue-ui-dashboard-BqXhoS8m.cjs} +1 -1
  51. package/dist/{vue-ui-dashboard-CiG3kXLl.js → vue-ui-dashboard-CVespiTo.js} +2 -2
  52. package/dist/{vue-ui-digits-DZJI0YuX.js → vue-ui-digits-gNKgZqYU.js} +2 -2
  53. package/dist/{vue-ui-digits-BBho1-xO.cjs → vue-ui-digits-wmDN7Vkf.cjs} +1 -1
  54. package/dist/{vue-ui-donut-evolution-BtTiBfLb.js → vue-ui-donut-evolution-Ch6HH0ja.js} +10 -10
  55. package/dist/{vue-ui-donut-evolution-BVnSrr-b.cjs → vue-ui-donut-evolution-DhDxLZ1J.cjs} +1 -1
  56. package/dist/{vue-ui-donut-D4WpeX9W.cjs → vue-ui-donut-n37BZPxr.cjs} +1 -1
  57. package/dist/{vue-ui-donut-CBG9ECp8.js → vue-ui-donut-sQunZI1L.js} +10 -10
  58. package/dist/{vue-ui-dumbbell-BQKiB9yH.cjs → vue-ui-dumbbell-B9Z_pjnG.cjs} +1 -1
  59. package/dist/{vue-ui-dumbbell-DlEN2c_X.js → vue-ui-dumbbell-lFlZX8Yi.js} +9 -9
  60. package/dist/{vue-ui-flow-DfMNmttZ.cjs → vue-ui-flow-BaFpUJg-.cjs} +1 -1
  61. package/dist/{vue-ui-flow-CXqGztWj.js → vue-ui-flow-CSIOC-JR.js} +8 -8
  62. package/dist/{vue-ui-galaxy-CGn5nkD5.cjs → vue-ui-galaxy-BIR5GxIc.cjs} +1 -1
  63. package/dist/{vue-ui-galaxy-xI38Kf-S.js → vue-ui-galaxy-DL2mnel_.js} +10 -10
  64. package/dist/{vue-ui-gauge-BEludqYn.js → vue-ui-gauge-BMq7KT3t.js} +6 -6
  65. package/dist/{vue-ui-gauge-Bz-OSNOJ.cjs → vue-ui-gauge-r_qvpwE7.cjs} +1 -1
  66. package/dist/{vue-ui-gizmo-CZZB7YgY.cjs → vue-ui-gizmo-DBas_Sw_.cjs} +1 -1
  67. package/dist/{vue-ui-gizmo-BB28OTr1.js → vue-ui-gizmo-Dj7zvNI1.js} +3 -3
  68. package/dist/{vue-ui-heatmap-mywZXUV8.js → vue-ui-heatmap-pqBYIrxm.js} +9 -9
  69. package/dist/{vue-ui-heatmap-BtUvE7rK.cjs → vue-ui-heatmap-qPgEhAzc.cjs} +1 -1
  70. package/dist/{vue-ui-kpi-CEAGjnkj.cjs → vue-ui-kpi-Cmo9J7wp.cjs} +1 -1
  71. package/dist/{vue-ui-kpi-zr721ux9.js → vue-ui-kpi-ZPBinMiF.js} +3 -3
  72. package/dist/{vue-ui-mini-loader-DBFAzGb2.cjs → vue-ui-mini-loader-Ce-jbgMT.cjs} +1 -1
  73. package/dist/{vue-ui-mini-loader-9zyuKIpT.js → vue-ui-mini-loader-DOTWhLi9.js} +2 -2
  74. package/dist/{vue-ui-molecule-DltNL0kV.cjs → vue-ui-molecule-D429iwPP.cjs} +1 -1
  75. package/dist/{vue-ui-molecule-Bv_ppQig.js → vue-ui-molecule-RDpgNrHQ.js} +10 -10
  76. package/dist/{vue-ui-mood-radar-CIK2Xohn.js → vue-ui-mood-radar-CD5L8WCU.js} +10 -10
  77. package/dist/{vue-ui-mood-radar-CQkF2Rp1.cjs → vue-ui-mood-radar-CdLJxrkT.cjs} +1 -1
  78. package/dist/{vue-ui-nested-donuts-f-cMx3iQ.js → vue-ui-nested-donuts-A-tid5cQ.js} +10 -10
  79. package/dist/{vue-ui-nested-donuts-vHr23QlH.cjs → vue-ui-nested-donuts-DyM3uc7x.cjs} +1 -1
  80. package/dist/{vue-ui-onion-B6ZrryDW.cjs → vue-ui-onion-BKql8oal.cjs} +1 -1
  81. package/dist/{vue-ui-onion-CmUXelhy.js → vue-ui-onion-Cap01Ehu.js} +10 -10
  82. package/dist/{vue-ui-parallel-coordinate-plot-BU0yoxD9.cjs → vue-ui-parallel-coordinate-plot-B0zMgtnq.cjs} +1 -1
  83. package/dist/{vue-ui-parallel-coordinate-plot-h9dS2u_k.js → vue-ui-parallel-coordinate-plot-CcDKe4L0.js} +11 -11
  84. package/dist/{vue-ui-quadrant-DNT_0fTL.js → vue-ui-quadrant-BDEfAeyJ.js} +11 -11
  85. package/dist/{vue-ui-quadrant-DPPXilUd.cjs → vue-ui-quadrant-CZzdpeQ2.cjs} +1 -1
  86. package/dist/{vue-ui-quick-chart-T6C0BTyw.js → vue-ui-quick-chart-DlAUYg5u.js} +8 -8
  87. package/dist/{vue-ui-quick-chart-1gG267X0.cjs → vue-ui-quick-chart-DpGYUyhq.cjs} +1 -1
  88. package/dist/{vue-ui-radar-CfCHXIYJ.js → vue-ui-radar-CbTln7gs.js} +11 -11
  89. package/dist/{vue-ui-radar-DpzjMFZD.cjs → vue-ui-radar-oBeaHlpT.cjs} +1 -1
  90. package/dist/{vue-ui-rating-DYcT_LS-.cjs → vue-ui-rating-BU7-F3_e.cjs} +1 -1
  91. package/dist/{vue-ui-rating-DuRLpMwk.js → vue-ui-rating-BkDncqow.js} +2 -2
  92. package/dist/{vue-ui-relation-circle-WmZMKqHL.js → vue-ui-relation-circle-C5B6UNGd.js} +6 -6
  93. package/dist/{vue-ui-relation-circle-BMrPtD2n.cjs → vue-ui-relation-circle-IWiJWgcB.cjs} +1 -1
  94. package/dist/{vue-ui-rings-Ce0Z_osd.js → vue-ui-rings-BujVUJ90.js} +10 -10
  95. package/dist/{vue-ui-rings-CkYl3uce.cjs → vue-ui-rings-Df2cRgD8.cjs} +1 -1
  96. package/dist/{vue-ui-scatter-DY9EpoGP.js → vue-ui-scatter-D6yqZJ7s.js} +11 -11
  97. package/dist/{vue-ui-scatter-Cjie2D-t.cjs → vue-ui-scatter-jFTeM2hW.cjs} +1 -1
  98. package/dist/{vue-ui-screenshot-lQLJHBQ2.js → vue-ui-screenshot-CHAySwpv.js} +1 -1
  99. package/dist/{vue-ui-screenshot-BCFym6go.cjs → vue-ui-screenshot-CVu8IM33.cjs} +1 -1
  100. package/dist/{vue-ui-skeleton-DDhwPZd_.js → vue-ui-skeleton-ASX40MGk.js} +3 -3
  101. package/dist/{vue-ui-skeleton-Cf89QIhl.cjs → vue-ui-skeleton-CAlTn_Cg.cjs} +1 -1
  102. package/dist/{vue-ui-smiley-xxMwBT9c.js → vue-ui-smiley-DGVzhza2.js} +2 -2
  103. package/dist/{vue-ui-smiley-DMA6fgGr.cjs → vue-ui-smiley-dwCqhB0r.cjs} +1 -1
  104. package/dist/{vue-ui-spark-trend-Btj_H6fa.cjs → vue-ui-spark-trend-A1EHFK_r.cjs} +1 -1
  105. package/dist/{vue-ui-spark-trend-CLHTqp94.js → vue-ui-spark-trend-B7XhDvTj.js} +5 -5
  106. package/dist/{vue-ui-sparkbar-Btk6snt4.js → vue-ui-sparkbar-BuNcvi66.js} +4 -4
  107. package/dist/{vue-ui-sparkbar-CKrbBVKQ.cjs → vue-ui-sparkbar-CwNjHOjD.cjs} +1 -1
  108. package/dist/{vue-ui-sparkgauge-DfWLtFYS.cjs → vue-ui-sparkgauge-ISu154lS.cjs} +1 -1
  109. package/dist/{vue-ui-sparkgauge-DKJtFTSv.js → vue-ui-sparkgauge-JY2kB9WX.js} +4 -4
  110. package/dist/{vue-ui-sparkhistogram-wHJ-8zVV.cjs → vue-ui-sparkhistogram-C8zyC-ii.cjs} +1 -1
  111. package/dist/{vue-ui-sparkhistogram-JRLlw9EX.js → vue-ui-sparkhistogram-DyEPWxkP.js} +5 -5
  112. package/dist/{vue-ui-sparkline-DElVaalm.cjs → vue-ui-sparkline-DL3Thtc4.cjs} +1 -1
  113. package/dist/{vue-ui-sparkline-tBF9iaNm.js → vue-ui-sparkline-DYC3sdvQ.js} +4 -4
  114. package/dist/{vue-ui-sparkstackbar-BS9I8en7.js → vue-ui-sparkstackbar-7TmtP3WR.js} +4 -4
  115. package/dist/{vue-ui-sparkstackbar-tZa2IYHP.cjs → vue-ui-sparkstackbar-ChIM9bn2.cjs} +1 -1
  116. package/dist/{vue-ui-stackbar-UiX8q4yL.js → vue-ui-stackbar-CP5C6Gb_.js} +11 -11
  117. package/dist/{vue-ui-stackbar-rOa0atA9.cjs → vue-ui-stackbar-DrtiSaNc.cjs} +1 -1
  118. package/dist/{vue-ui-strip-plot-hRy6QRHK.cjs → vue-ui-strip-plot-BMYMIHGu.cjs} +1 -1
  119. package/dist/{vue-ui-strip-plot-BOkfg5vB.js → vue-ui-strip-plot-DJQCq_KE.js} +10 -10
  120. package/dist/{vue-ui-table-B9dc0l0k.cjs → vue-ui-table-D6hvgMif.cjs} +1 -1
  121. package/dist/{vue-ui-table-Dtfv71zG.js → vue-ui-table-IJi0xaVg.js} +1 -1
  122. package/dist/{vue-ui-table-heatmap-DUQEHohs.cjs → vue-ui-table-heatmap-BZNKXZNs.cjs} +1 -1
  123. package/dist/{vue-ui-table-heatmap-BMl-sP5Q.js → vue-ui-table-heatmap-Ls8_xq0D.js} +4 -4
  124. package/dist/{vue-ui-table-sparkline-BVnGb-lu.cjs → vue-ui-table-sparkline-BQFK30H1.cjs} +1 -1
  125. package/dist/{vue-ui-table-sparkline-BeunspIj.js → vue-ui-table-sparkline-BeuvdssX.js} +5 -5
  126. package/dist/{vue-ui-thermometer-A3Xxn5Ly.cjs → vue-ui-thermometer-DKm8SXlE.cjs} +1 -1
  127. package/dist/{vue-ui-thermometer-Cb9ALBj_.js → vue-ui-thermometer-DPWIvG92.js} +6 -6
  128. package/dist/{vue-ui-timer-2PRDq1w6.js → vue-ui-timer-CEzDvZf7.js} +5 -5
  129. package/dist/{vue-ui-timer-DltmIdrq.cjs → vue-ui-timer-n6lv7oTx.cjs} +1 -1
  130. package/dist/{vue-ui-tiremarks-BTlJcW4v.cjs → vue-ui-tiremarks-B33mHXZN.cjs} +1 -1
  131. package/dist/{vue-ui-tiremarks-Bse3PMGV.js → vue-ui-tiremarks-BUGoY22W.js} +6 -6
  132. package/dist/{vue-ui-treemap-Cv_mHK8H.cjs → vue-ui-treemap-DPxBZUUr.cjs} +1 -1
  133. package/dist/{vue-ui-treemap-D8fjVYq0.js → vue-ui-treemap-DmOYjJ_F.js} +10 -10
  134. package/dist/{vue-ui-vertical-bar-ZgJq3_CI.cjs → vue-ui-vertical-bar-BJMYX8t4.cjs} +1 -1
  135. package/dist/{vue-ui-vertical-bar-BVldPT8k.js → vue-ui-vertical-bar-BpVKdSY5.js} +10 -10
  136. package/dist/{vue-ui-waffle-BpeGEjCl.cjs → vue-ui-waffle-DGcueccy.cjs} +1 -1
  137. package/dist/{vue-ui-waffle-wikAjwZY.js → vue-ui-waffle-ULg6SwPx.js} +10 -10
  138. package/dist/{vue-ui-wheel-BlgfdULS.cjs → vue-ui-wheel-CWKq-CFW.cjs} +1 -1
  139. package/dist/{vue-ui-wheel-D5qyBs0Y.js → vue-ui-wheel-DlmgZd-_.js} +6 -6
  140. package/dist/vue-ui-word-cloud-BhHWdmqP.cjs +1 -0
  141. package/dist/vue-ui-word-cloud-DWyboczt.js +574 -0
  142. package/dist/{vue-ui-xy-FHLTc7xG.cjs → vue-ui-xy-Cz81fw_E.cjs} +1 -1
  143. package/dist/{vue-ui-xy-CUjllUSv.js → vue-ui-xy-V13Ns1gv.js} +13 -13
  144. package/dist/{vue-ui-xy-canvas-BkOlPU8e.js → vue-ui-xy-canvas-B9cRe5gT.js} +10 -10
  145. package/dist/{vue-ui-xy-canvas-BJUnRVuf.cjs → vue-ui-xy-canvas-GiuHOyj5.cjs} +1 -1
  146. package/package.json +1 -1
  147. package/dist/index-BhH89oF0.cjs +0 -4
  148. package/dist/vue-ui-word-cloud-Bcdl2iE-.js +0 -515
  149. package/dist/vue-ui-word-cloud-sNzfl_Tq.cjs +0 -1
@@ -0,0 +1,574 @@
1
+ import { useCssVars as Ae, computed as p, openBlock as u, createElementBlock as f, createVNode as Z, renderSlot as m, createElementVNode as x, normalizeStyle as ee, pushScopeId as We, popScopeId as Re, ref as n, watch as Q, onMounted as Be, onBeforeUnmount as De, createBlock as A, createCommentVNode as z, unref as $, createSlots as Ve, withCtx as h, normalizeProps as W, guardReactiveProps as R, normalizeClass as me, Fragment as Ee, renderList as Ue, toDisplayString as fe, createTextVNode as Ge, nextTick as pe } from "vue";
2
+ import { u as Le, Y as Xe, v as Ye, c as ge, t as je, a as qe, p as L, o as He, e as ye, g as Je, f as Ke, X as Qe, q as Ze, r as et, x as tt } from "./index-DhJby8wL.js";
3
+ import { _ as ot } from "./Title-1Sw6EmHy.js";
4
+ import { u as at, U as lt } from "./usePrinter-Bwm8J3RQ.js";
5
+ import { d as st, t as nt, u as rt } from "./useResponsive-NZB-WLRF.js";
6
+ import ut from "./vue-ui-accordion-Cn5Jbplg.js";
7
+ import { D as it } from "./DataTable-BXnbua0J.js";
8
+ import ct from "./BaseIcon-CAmYNoaf.js";
9
+ import { _ as Ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ import { u as be } from "./useNestedProp-CrHvyupb.js";
11
+ import { _ as dt } from "./PackageVersion-BVZfgDqm.js";
12
+ import { _ as vt } from "./Tooltip-EJf3VBPR.js";
13
+ const ht = (i) => (We("data-v-3fd7d274"), i = i(), Re(), i), mt = { "data-html2canvas-ignore": "" }, ft = {
14
+ key: 0,
15
+ class: "reset-wrapper"
16
+ }, pt = {
17
+ key: 1,
18
+ class: "reset-wrapper"
19
+ }, gt = { class: "mono-slicer" }, yt = /* @__PURE__ */ ht(() => /* @__PURE__ */ x("div", { class: "slider-track" }, null, -1)), bt = ["min", "max", "value"], Ct = {
20
+ __name: "MonoSlicer",
21
+ props: {
22
+ min: {
23
+ type: Number,
24
+ default: 0
25
+ },
26
+ max: {
27
+ type: Number,
28
+ default: 0
29
+ },
30
+ inputColor: {
31
+ type: String,
32
+ default: "#1A1A1A"
33
+ },
34
+ background: {
35
+ type: String,
36
+ default: "#FFFFFF"
37
+ },
38
+ borderColor: {
39
+ type: String,
40
+ default: "#FFFFFF"
41
+ },
42
+ selectColor: {
43
+ type: String,
44
+ default: "#4A4A4A"
45
+ },
46
+ textColor: {
47
+ type: String,
48
+ default: "#1A1A1A"
49
+ },
50
+ useResetSlot: {
51
+ type: Boolean,
52
+ default: !1
53
+ },
54
+ value: {
55
+ type: Number,
56
+ default: 0
57
+ },
58
+ source: {
59
+ type: Number,
60
+ default: 0
61
+ }
62
+ },
63
+ emits: ["update:value", "reset"],
64
+ setup(i, { emit: B }) {
65
+ const s = i;
66
+ Ae((w) => ({
67
+ "90ad3208": X.value,
68
+ "4f9eef70": P.value,
69
+ "6e07ae3e": b.value,
70
+ "2fd430a0": i.selectColor,
71
+ "6b8169a4": S.value
72
+ }));
73
+ const X = p(() => s.inputColor), S = p(() => s.background), b = p(() => `${s.selectColor}33`), P = p(() => s.borderColor);
74
+ function I() {
75
+ B("reset");
76
+ }
77
+ const C = p(() => {
78
+ const w = s.max - s.min, g = 0, T = (s.value - s.min) / w * 100;
79
+ return {
80
+ left: `${g}%`,
81
+ width: `${T - g}%`,
82
+ background: s.selectColor
83
+ };
84
+ });
85
+ return (w, g) => (u(), f("div", mt, [
86
+ i.value !== i.source ? (u(), f("div", ft, [
87
+ i.useResetSlot ? m(w.$slots, "reset-action", {
88
+ key: 1,
89
+ reset: I
90
+ }, void 0, !0) : (u(), f("button", {
91
+ key: 0,
92
+ "data-cy-reset": "",
93
+ tabindex: "0",
94
+ role: "button",
95
+ class: "vue-data-ui-refresh-button",
96
+ onClick: I
97
+ }, [
98
+ Z(ct, {
99
+ name: "refresh",
100
+ stroke: i.textColor
101
+ }, null, 8, ["stroke"])
102
+ ]))
103
+ ])) : (u(), f("div", pt)),
104
+ x("div", gt, [
105
+ yt,
106
+ x("div", {
107
+ class: "range-highlight",
108
+ style: ee(C.value)
109
+ }, null, 4),
110
+ x("input", {
111
+ type: "range",
112
+ min: i.min,
113
+ max: i.max,
114
+ value: Number(i.value),
115
+ onInput: g[0] || (g[0] = (T) => B("update:value", Number(T.target.value)))
116
+ }, null, 40, bt)
117
+ ])
118
+ ]));
119
+ }
120
+ }, wt = /* @__PURE__ */ Ce(Ct, [["__scopeId", "data-v-3fd7d274"]]), kt = ["id"], $t = ["xmlns", "viewBox"], xt = ["transform"], St = ["fill", "font-weight", "x", "y", "font-size", "transform", "onMouseover"], Tt = {
121
+ key: 3,
122
+ class: "vue-data-ui-watermark"
123
+ }, Ft = ["innerHTML"], _t = {
124
+ __name: "vue-ui-word-cloud",
125
+ props: {
126
+ config: {
127
+ type: Object,
128
+ default() {
129
+ return {};
130
+ }
131
+ },
132
+ dataset: {
133
+ type: [Array, String],
134
+ default() {
135
+ return [];
136
+ }
137
+ }
138
+ },
139
+ setup(i, { expose: B }) {
140
+ const s = i, { vue_ui_word_cloud: X } = Le(), S = p({
141
+ get() {
142
+ return !!s.dataset && s.dataset.length;
143
+ },
144
+ set(t) {
145
+ return t;
146
+ }
147
+ }), b = n(typeof s.dataset == "string" ? Xe(s.dataset) : s.dataset.map((t) => ({
148
+ ...t,
149
+ value: Ye(t.value)
150
+ }))), P = n(ge()), I = n(0), C = n(null), w = n(null), g = n(0), T = n(0), Y = n(!1), e = p({
151
+ get: () => te(),
152
+ set: (t) => t
153
+ });
154
+ function te() {
155
+ const t = be({
156
+ userConfig: s.config,
157
+ defaultConfig: X
158
+ });
159
+ return t.theme ? {
160
+ ...be({
161
+ userConfig: je.vue_ui_word_cloud[t.theme] || s.config,
162
+ defaultConfig: t
163
+ }),
164
+ customPalette: qe[t.theme] || L
165
+ } : t;
166
+ }
167
+ Q(() => s.config, (t) => {
168
+ e.value = te(), le(), g.value += 1, T.value += 1, k.value = e.value.style.chart.width;
169
+ }, { deep: !0 });
170
+ const oe = n(null), k = n(0), r = n({
171
+ width: e.value.style.chart.width,
172
+ height: e.value.style.chart.height,
173
+ maxFontSize: e.value.style.chart.words.maxFontSize,
174
+ minFontSize: e.value.style.chart.words.minFontSize
175
+ }), we = nt(() => {
176
+ const { width: t, height: a } = rt({
177
+ chart: C.value,
178
+ title: e.value.style.chart.title.text ? w.value : null,
179
+ slicer: e.value.style.chart.zoom.show && oe.value
180
+ });
181
+ r.value.width = t, r.value.height = a, pe(j);
182
+ });
183
+ Q(() => k.value, () => {
184
+ ke();
185
+ });
186
+ const ke = st(() => {
187
+ j();
188
+ }, 10);
189
+ function ae() {
190
+ k.value = ie.value;
191
+ }
192
+ const D = n(null);
193
+ Be(() => {
194
+ le(), ae();
195
+ });
196
+ function le() {
197
+ He(s.dataset) ? ye({
198
+ componentName: "VueUiWordCloud",
199
+ type: "dataset"
200
+ }) : b.value.forEach((t, a) => {
201
+ Je({
202
+ datasetObject: t,
203
+ requiredAttributes: ["name", "value"]
204
+ }).forEach((o) => {
205
+ S.value = !1, ye({
206
+ componentName: "VueUiWordCloud",
207
+ type: "datasetSerieAttribute",
208
+ property: o,
209
+ index: a
210
+ });
211
+ });
212
+ }), e.value.responsive && (D.value = new ResizeObserver(we), D.value.observe(C.value.parentNode));
213
+ }
214
+ De(() => {
215
+ D.value && D.value.disconnect();
216
+ });
217
+ const { isPrinting: se, isImaging: ne, generatePdf: re, generateImage: ue } = at({
218
+ elementId: `wordCloud_${P.value}`,
219
+ fileName: e.value.style.chart.title.text || "vue-ui-word-cloud"
220
+ }), d = n({
221
+ showTable: e.value.table.show,
222
+ showTooltip: e.value.style.chart.tooltip.show
223
+ });
224
+ function $e(t, a, o = "Arial") {
225
+ const l = document.createElement("canvas").getContext("2d");
226
+ return l.font = `${a}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${o}`, {
227
+ width: l.measureText(t).width + e.value.style.chart.words.proximity,
228
+ height: a
229
+ };
230
+ }
231
+ function xe(t, a) {
232
+ return t.x < a.x + a.width && t.x + t.width > a.x && t.y < a.y + a.height && t.y + t.height > a.y;
233
+ }
234
+ function Se(t, a, o) {
235
+ const c = [], l = { x: -a / 2, y: -o / 2, width: a, height: o }, v = 0, _ = 0;
236
+ return t.forEach((N) => {
237
+ let J = !1;
238
+ for (let G = 0; G < Math.max(a, o) / 2 && !J; G += e.value.style.chart.words.packingWeight)
239
+ for (let K = 0; K < 360 && !J; K += e.value.style.chart.words.packingWeight) {
240
+ const he = K * Math.PI / 180, ze = v + G * Math.cos(he) - N.width / 2, Pe = _ + G * Math.sin(he) - N.height / 2, y = { ...N, x: ze, y: Pe }, Ie = y.x >= l.x && y.y >= l.y && y.x + y.width <= l.x + l.width && y.y + y.height <= l.y + l.height, Oe = c.some((Me) => xe(y, Me));
241
+ Ie && !Oe && (c.push(y), J = !0);
242
+ }
243
+ }), c;
244
+ }
245
+ const O = n([]);
246
+ Q(() => s.dataset, j, { immediate: !0 });
247
+ const ie = p(() => Math.min(...b.value.map((t) => t.value))), Te = p(() => Math.max(...b.value.map((t) => t.value)));
248
+ function j() {
249
+ const t = [...b.value].filter((l) => l.value >= k.value).map((l) => l.value), a = Math.max(...t), o = Math.min(...t), c = [...b.value].filter((l) => l.value >= k.value).map((l, v) => {
250
+ const _ = (l.value - o) / (a - o) * (r.value.maxFontSize - r.value.minFontSize) + r.value.minFontSize, N = $e(l.name, _);
251
+ return {
252
+ ...l,
253
+ id: ge(),
254
+ fontSize: _,
255
+ width: N.width,
256
+ height: N.height,
257
+ color: e.value.style.chart.words.usePalette ? e.value.customPalette[v] || e.value.customPalette[v % e.value.customPalette.length] || L[v] || L[v % L.length] : e.value.style.chart.words.color
258
+ };
259
+ });
260
+ O.value = Se(c, r.value.width, r.value.height).sort((l, v) => v.fontSize - l.fontSize);
261
+ }
262
+ const V = p(() => {
263
+ const t = O.value.map((o) => ({
264
+ name: o.name,
265
+ color: o.color
266
+ })), a = O.value.map((o) => o.value);
267
+ return { head: t, body: a };
268
+ });
269
+ function ce() {
270
+ pe(() => {
271
+ const t = V.value.head.map((c, l) => [[
272
+ c.name
273
+ ], [V.value.body[l]]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(t), o = Ze(a);
274
+ et({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
275
+ });
276
+ }
277
+ const E = p(() => {
278
+ const t = [
279
+ e.value.table.columnNames.series,
280
+ e.value.table.columnNames.value
281
+ ], a = V.value.head.map((l, v) => {
282
+ const _ = Ke({ p: e.value.table.td.prefix, v: V.value.body[v], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
283
+ return [
284
+ {
285
+ color: l.color,
286
+ name: l.name
287
+ },
288
+ _
289
+ ];
290
+ }), o = {
291
+ th: {
292
+ backgroundColor: e.value.table.th.backgroundColor,
293
+ color: e.value.table.th.color,
294
+ outline: e.value.table.th.outline
295
+ },
296
+ td: {
297
+ backgroundColor: e.value.table.td.backgroundColor,
298
+ color: e.value.table.td.color,
299
+ outline: e.value.table.td.outline
300
+ },
301
+ breakpoint: e.value.table.responsiveBreakpoint
302
+ };
303
+ return {
304
+ colNames: [
305
+ e.value.table.columnNames.series,
306
+ e.value.table.columnNames.value
307
+ ],
308
+ head: t,
309
+ body: a,
310
+ config: o
311
+ };
312
+ }), U = n(!1);
313
+ function Fe(t) {
314
+ U.value = t, I.value += 1;
315
+ }
316
+ function _e() {
317
+ return O.value;
318
+ }
319
+ function de() {
320
+ d.value.showTable = !d.value.showTable;
321
+ }
322
+ function ve() {
323
+ d.value.showTooltip = !d.value.showTooltip;
324
+ }
325
+ B({
326
+ getData: _e,
327
+ generateCsv: ce,
328
+ generatePdf: re,
329
+ generateImage: ue,
330
+ toggleTable: de,
331
+ toggleTooltip: ve
332
+ });
333
+ const F = n(null), M = n(!1), q = n(""), H = n(null);
334
+ function Ne(t) {
335
+ if (!d.value.showTooltip) return;
336
+ F.value = t.id, H.value = { datapoint: t, config: e.value };
337
+ const a = e.value.style.chart.tooltip.customFormat;
338
+ if (M.value = !1, tt(a))
339
+ try {
340
+ const o = a({
341
+ datapoint: t,
342
+ config: e.value
343
+ });
344
+ typeof o == "string" && (q.value = o, M.value = !0);
345
+ } catch {
346
+ console.warn("Custom format cannot be applied."), M.value = !1;
347
+ }
348
+ if (!M.value) {
349
+ let o = `<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>`;
350
+ q.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${o}</div>`;
351
+ }
352
+ Y.value = !0;
353
+ }
354
+ return (t, a) => (u(), f("div", {
355
+ class: "vue-ui-word-cloud",
356
+ ref_key: "wordCloudChart",
357
+ ref: C,
358
+ id: `wordCloud_${P.value}`,
359
+ style: ee(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`)
360
+ }, [
361
+ e.value.style.chart.title.text ? (u(), f("div", {
362
+ key: 0,
363
+ ref_key: "chartTitle",
364
+ ref: w,
365
+ style: "width:100%;background:transparent;padding-bottom:24px"
366
+ }, [
367
+ (u(), A(ot, {
368
+ key: `title_${g.value}`,
369
+ config: {
370
+ title: {
371
+ ...e.value.style.chart.title
372
+ },
373
+ subtitle: {
374
+ ...e.value.style.chart.title.subtitle
375
+ }
376
+ }
377
+ }, null, 8, ["config"]))
378
+ ], 512)) : z("", !0),
379
+ e.value.userOptions.show && S.value ? (u(), A(lt, {
380
+ ref: "details",
381
+ key: `user_option_${I.value}`,
382
+ backgroundColor: e.value.style.chart.backgroundColor,
383
+ color: e.value.style.chart.color,
384
+ isPrinting: $(se),
385
+ isImaging: $(ne),
386
+ uid: P.value,
387
+ hasPdf: e.value.userOptions.buttons.pdf,
388
+ hasXls: e.value.userOptions.buttons.csv,
389
+ hasImg: e.value.userOptions.buttons.img,
390
+ hasTable: e.value.userOptions.buttons.table,
391
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
392
+ isFullscreen: U.value,
393
+ titles: { ...e.value.userOptions.buttonTitles },
394
+ chartElement: C.value,
395
+ position: e.value.userOptions.position,
396
+ hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
397
+ isTooltip: d.value.showTooltip,
398
+ onToggleFullscreen: Fe,
399
+ onGeneratePdf: $(re),
400
+ onGenerateCsv: ce,
401
+ onGenerateImage: $(ue),
402
+ onToggleTable: de,
403
+ onToggleTooltip: ve
404
+ }, Ve({ _: 2 }, [
405
+ t.$slots.optionPdf ? {
406
+ name: "optionPdf",
407
+ fn: h(() => [
408
+ m(t.$slots, "optionPdf", {}, void 0, !0)
409
+ ]),
410
+ key: "0"
411
+ } : void 0,
412
+ t.$slots.optionCsv ? {
413
+ name: "optionCsv",
414
+ fn: h(() => [
415
+ m(t.$slots, "optionCsv", {}, void 0, !0)
416
+ ]),
417
+ key: "1"
418
+ } : void 0,
419
+ t.$slots.optionImg ? {
420
+ name: "optionImg",
421
+ fn: h(() => [
422
+ m(t.$slots, "optionImg", {}, void 0, !0)
423
+ ]),
424
+ key: "2"
425
+ } : void 0,
426
+ t.$slots.optionTable ? {
427
+ name: "optionTable",
428
+ fn: h(() => [
429
+ m(t.$slots, "optionTable", {}, void 0, !0)
430
+ ]),
431
+ key: "3"
432
+ } : void 0,
433
+ t.$slots.optionFullscreen ? {
434
+ name: "optionFullscreen",
435
+ fn: h(({ toggleFullscreen: o, isFullscreen: c }) => [
436
+ m(t.$slots, "optionFullscreen", W(R({ toggleFullscreen: o, isFullscreen: c })), void 0, !0)
437
+ ]),
438
+ key: "4"
439
+ } : void 0
440
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "onGeneratePdf", "onGenerateImage"])) : z("", !0),
441
+ S.value ? (u(), f("svg", {
442
+ key: 2,
443
+ class: me({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
444
+ xmlns: $(Qe),
445
+ viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
446
+ style: "overflow:visible;background:transparent;"
447
+ }, [
448
+ Z(dt),
449
+ x("g", {
450
+ transform: `translate(${(r.value.width <= 0 ? 10 : r.value.width) / 2}, ${(r.value.height <= 0 ? 10 : r.value.height) / 2})`
451
+ }, [
452
+ (u(!0), f(Ee, null, Ue(O.value, (o, c) => (u(), f("g", null, [
453
+ (u(), f("text", {
454
+ fill: o.color,
455
+ "font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
456
+ key: c,
457
+ x: o.x,
458
+ y: o.y,
459
+ "font-size": o.fontSize,
460
+ transform: `translate(${o.width / 2}, ${o.height / 2})`,
461
+ class: me({ animated: e.value.useCssAnimation, "word-selected": F.value && F.value === o.id && d.value.showTooltip, "word-not-selected": F.value && F.value !== o.id && d.value.showTooltip }),
462
+ "text-anchor": "middle",
463
+ "dominant-baseline": "middle",
464
+ onMouseover: (l) => Ne(o),
465
+ onMouseleave: a[0] || (a[0] = (l) => {
466
+ F.value = null, Y.value = !1;
467
+ }),
468
+ style: ee(`animation-delay:${c * e.value.animationDelayMs}ms !important;`)
469
+ }, fe(o.name), 47, St))
470
+ ]))), 256))
471
+ ], 8, xt),
472
+ m(t.$slots, "svg", {
473
+ svg: { height: r.value.height, width: r.value.width }
474
+ }, void 0, !0)
475
+ ], 10, $t)) : z("", !0),
476
+ t.$slots.watermark ? (u(), f("div", Tt, [
477
+ m(t.$slots, "watermark", W(R({ isPrinting: $(se) || $(ne) })), void 0, !0)
478
+ ])) : z("", !0),
479
+ Z(vt, {
480
+ show: d.value.showTooltip && Y.value,
481
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
482
+ color: e.value.style.chart.tooltip.color,
483
+ fontSize: e.value.style.chart.tooltip.fontSize,
484
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
485
+ borderColor: e.value.style.chart.tooltip.borderColor,
486
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
487
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
488
+ position: e.value.style.chart.tooltip.position,
489
+ offsetY: e.value.style.chart.tooltip.offsetY,
490
+ parent: C.value,
491
+ content: q.value,
492
+ isCustom: M.value
493
+ }, {
494
+ "tooltip-before": h(() => [
495
+ m(t.$slots, "tooltip-before", W(R({ ...H.value })), void 0, !0)
496
+ ]),
497
+ "tooltip-after": h(() => [
498
+ m(t.$slots, "tooltip-after", W(R({ ...H.value })), void 0, !0)
499
+ ]),
500
+ _: 3
501
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
502
+ x("div", {
503
+ ref_key: "chartSlicer",
504
+ ref: oe,
505
+ style: "width:100%;background:transparent",
506
+ "data-html2canvas-ignore": ""
507
+ }, [
508
+ e.value.style.chart.zoom.show ? (u(), A(wt, {
509
+ key: 0,
510
+ value: k.value,
511
+ "onUpdate:value": a[1] || (a[1] = (o) => k.value = o),
512
+ min: ie.value,
513
+ max: Te.value,
514
+ textColor: e.value.style.chart.color,
515
+ inputColor: e.value.style.chart.zoom.color,
516
+ selectColor: e.value.style.chart.zoom.highlightColor,
517
+ useResetSlot: e.value.style.chart.zoom.useResetSlot,
518
+ background: e.value.style.chart.zoom.color,
519
+ borderColor: e.value.style.chart.backgroundColor,
520
+ source: e.value.style.chart.width,
521
+ onReset: ae
522
+ }, {
523
+ "reset-action": h(({ reset: o }) => [
524
+ m(t.$slots, "reset-action", W(R({ reset: o })), void 0, !0)
525
+ ]),
526
+ _: 3
527
+ }, 8, ["value", "min", "max", "textColor", "inputColor", "selectColor", "useResetSlot", "background", "borderColor", "source"])) : z("", !0)
528
+ ], 512),
529
+ S.value ? (u(), A(ut, {
530
+ key: 4,
531
+ hideDetails: "",
532
+ config: {
533
+ open: d.value.showTable,
534
+ maxHeight: 1e4,
535
+ body: {
536
+ backgroundColor: e.value.style.chart.backgroundColor,
537
+ color: e.value.style.chart.color
538
+ },
539
+ head: {
540
+ backgroundColor: e.value.style.chart.backgroundColor,
541
+ color: e.value.style.chart.color
542
+ }
543
+ }
544
+ }, {
545
+ content: h(() => [
546
+ (u(), A(it, {
547
+ key: `table_${T.value}`,
548
+ colNames: E.value.colNames,
549
+ head: E.value.head,
550
+ body: E.value.body,
551
+ config: E.value.config,
552
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
553
+ onClose: a[2] || (a[2] = (o) => d.value.showTable = !1)
554
+ }, {
555
+ th: h(({ th: o }) => [
556
+ x("div", {
557
+ innerHTML: o,
558
+ style: { display: "flex", "align-items": "center" }
559
+ }, null, 8, Ft)
560
+ ]),
561
+ td: h(({ td: o }) => [
562
+ Ge(fe(o.name || o), 1)
563
+ ]),
564
+ _: 1
565
+ }, 8, ["colNames", "head", "body", "config", "title"]))
566
+ ]),
567
+ _: 1
568
+ }, 8, ["config"])) : z("", !0)
569
+ ], 12, kt));
570
+ }
571
+ }, Et = /* @__PURE__ */ Ce(_t, [["__scopeId", "data-v-d7a4b90d"]]);
572
+ export {
573
+ Et as default
574
+ };