vue-data-ui 2.6.47 → 2.6.49-beta.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 (162) hide show
  1. package/dist/{Arrow-Dvz6Z2gU.js → Arrow-Dv70pgNR.js} +1 -1
  2. package/dist/{Arrow-CRrMt_zT.cjs → Arrow-shhEXYsq.cjs} +1 -1
  3. package/dist/{BaseIcon-DoqpR480.cjs → BaseIcon-D6QkKJpU.cjs} +1 -1
  4. package/dist/{BaseIcon-CEgQPz8O.js → BaseIcon-ZZc7VY8d.js} +8 -3
  5. package/dist/{ColorPicker-Bp_7FV2c.cjs → ColorPicker-CGbS8gKN.cjs} +1 -1
  6. package/dist/{ColorPicker-DwezDvSV.js → ColorPicker-CUJpXuSS.js} +3 -3
  7. package/dist/{DataTable-D_Guh5Hf.cjs → DataTable-CRuMrwb8.cjs} +1 -1
  8. package/dist/{DataTable-751-cN2c.js → DataTable-CmnlvDKM.js} +2 -2
  9. package/dist/{Legend-BG9fLat9.js → Legend-B3rCxiju.js} +2 -2
  10. package/dist/{Legend-CepYsC9r.cjs → Legend-KLm00z8t.cjs} +1 -1
  11. package/dist/{PackageVersion-SrpgZayt.js → PackageVersion-DavVl5j6.js} +1 -1
  12. package/dist/{PackageVersion-D8T0gm3t.cjs → PackageVersion-DwKk69DU.cjs} +1 -1
  13. package/dist/{PenAndPaper-jnD991LP.js → PenAndPaper-CGAd_cD9.js} +3 -3
  14. package/dist/{PenAndPaper-BJ6gGBM2.cjs → PenAndPaper-hlX2Djxv.cjs} +1 -1
  15. package/dist/{Shape-og7-ULyN.cjs → Shape-BGYZa31d.cjs} +1 -1
  16. package/dist/{Shape-BaijOBYT.js → Shape-CWFBkvfP.js} +1 -1
  17. package/dist/{Slicer-COHzItjq.js → Slicer-BEOWbyKm.js} +2 -2
  18. package/dist/{Slicer-B4ZDkwnQ.cjs → Slicer-CAyYbVK-.cjs} +1 -1
  19. package/dist/{Title-DMhhB9yN.js → Title-Ch602IT9.js} +1 -1
  20. package/dist/{Title-BUnn57ZR.cjs → Title-Iy2d-Bd1.cjs} +1 -1
  21. package/dist/{Tooltip-BaPecnnV.js → Tooltip-0IaPNa9t.js} +1 -1
  22. package/dist/{Tooltip-DJtOxx2P.cjs → Tooltip-DhV-T1A4.cjs} +1 -1
  23. package/dist/{index-DEbhC0cM.cjs → index-C4TeRZvT.cjs} +2 -2
  24. package/dist/{index-KdQpiTkm.js → index-C7spnOfS.js} +5 -2
  25. package/dist/style.css +1 -1
  26. package/dist/types/vue-data-ui.d.cts +38 -1
  27. package/dist/types/vue-data-ui.d.ts +38 -1
  28. package/dist/{useNestedProp-COYn8tA0.cjs → useNestedProp-BS-4R8zR.cjs} +1 -1
  29. package/dist/{useNestedProp-CO8Pe266.js → useNestedProp-BXHzK3EV.js} +1 -1
  30. package/dist/usePanZoom-CWL8SzZN.js +79 -0
  31. package/dist/usePanZoom-CppTL3G-.cjs +1 -0
  32. package/dist/{usePrinter-BuiF8wZK.js → usePrinter-BDUIRBP4.js} +1 -1
  33. package/dist/{usePrinter-DRmOwFc2.cjs → usePrinter-bFMowLOh.cjs} +1 -1
  34. package/dist/{vue-data-ui-3jkYjNO_.js → vue-data-ui-Be5Tgffi.js} +61 -61
  35. package/dist/{vue-data-ui-BbpJaKj_.cjs → vue-data-ui-CAyq9OfR.cjs} +1 -1
  36. package/dist/vue-data-ui.cjs +1 -1
  37. package/dist/vue-data-ui.js +22 -20
  38. package/dist/{vue-ui-3d-bar-Bda7eCM_.js → vue-ui-3d-bar-CtOPLOD3.js} +9 -9
  39. package/dist/{vue-ui-3d-bar-D7_7INdZ.cjs → vue-ui-3d-bar-M3DFCjSK.cjs} +1 -1
  40. package/dist/{vue-ui-accordion-ChxVn9CH.cjs → vue-ui-accordion-BIbie2vw.cjs} +1 -1
  41. package/dist/{vue-ui-accordion-CDTJiQu0.js → vue-ui-accordion-Bk2aYAD-.js} +3 -3
  42. package/dist/{vue-ui-age-pyramid-C-5yJnWs.cjs → vue-ui-age-pyramid-CR9x-PgJ.cjs} +1 -1
  43. package/dist/{vue-ui-age-pyramid-C4FUVgL1.js → vue-ui-age-pyramid-hyVqCFgO.js} +10 -10
  44. package/dist/{vue-ui-annotator-yLvZcOQb.cjs → vue-ui-annotator-BXHTI64K.cjs} +1 -1
  45. package/dist/{vue-ui-annotator-pYtolxGn.js → vue-ui-annotator-Qn0uc5GZ.js} +1 -1
  46. package/dist/{vue-ui-bullet-oEZK6DxU.js → vue-ui-bullet-CrWBMd4n.js} +8 -8
  47. package/dist/{vue-ui-bullet-BVmbUAYh.cjs → vue-ui-bullet-DM6lx30F.cjs} +1 -1
  48. package/dist/{vue-ui-candlestick-Cm0ipv0t.js → vue-ui-candlestick-B2jTfGz7.js} +11 -11
  49. package/dist/{vue-ui-candlestick-CVM-Yvvm.cjs → vue-ui-candlestick-DUZlc7tm.cjs} +1 -1
  50. package/dist/{vue-ui-carousel-table-BGPWwg3x.cjs → vue-ui-carousel-table-3QViQ5Bi.cjs} +1 -1
  51. package/dist/{vue-ui-carousel-table-PcE7YCyE.js → vue-ui-carousel-table-Cy39XJq8.js} +4 -4
  52. package/dist/{vue-ui-chestnut-CeYVXtyW.cjs → vue-ui-chestnut-CAEZuh12.cjs} +1 -1
  53. package/dist/{vue-ui-chestnut-Ob9Rt-3r.js → vue-ui-chestnut-Dr3sUQIO.js} +8 -8
  54. package/dist/{vue-ui-circle-pack-BF0PBuDU.js → vue-ui-circle-pack-C8lFd9HI.js} +9 -9
  55. package/dist/{vue-ui-circle-pack-pbnF0Jb7.cjs → vue-ui-circle-pack-DNSLbFV_.cjs} +1 -1
  56. package/dist/{vue-ui-cursor-DE4hlTca.cjs → vue-ui-cursor-B4KSNGDd.cjs} +1 -1
  57. package/dist/{vue-ui-cursor-Drnazkqg.js → vue-ui-cursor-Bim9FO5p.js} +2 -2
  58. package/dist/{vue-ui-dashboard-D3-z2poA.cjs → vue-ui-dashboard-BlMkdmJG.cjs} +1 -1
  59. package/dist/{vue-ui-dashboard-j5IuBHiv.js → vue-ui-dashboard-q2N-lR5R.js} +2 -2
  60. package/dist/{vue-ui-digits-CD5-WopZ.cjs → vue-ui-digits-BxsLTjn3.cjs} +1 -1
  61. package/dist/{vue-ui-digits-BRMuUzSA.js → vue-ui-digits-Cs5S9-t4.js} +2 -2
  62. package/dist/{vue-ui-donut-Dq1F2vBg.cjs → vue-ui-donut-CHAu83aL.cjs} +1 -1
  63. package/dist/{vue-ui-donut-CdVSree_.js → vue-ui-donut-CsK4bhU9.js} +12 -12
  64. package/dist/{vue-ui-donut-evolution-BQ7-rOnh.cjs → vue-ui-donut-evolution-DIgg0r1H.cjs} +1 -1
  65. package/dist/{vue-ui-donut-evolution-DzrJwccW.js → vue-ui-donut-evolution-DRIjATMj.js} +11 -11
  66. package/dist/{vue-ui-dumbbell-DSdwbWLI.cjs → vue-ui-dumbbell-Dnd5xBoE.cjs} +1 -1
  67. package/dist/{vue-ui-dumbbell-DuCdZc41.js → vue-ui-dumbbell-RqWpXNMb.js} +10 -10
  68. package/dist/{vue-ui-flow-D_UgsB9t.cjs → vue-ui-flow-DLkZ_RPK.cjs} +1 -1
  69. package/dist/{vue-ui-flow-CYpiRQ_u.js → vue-ui-flow-Wl9BdRET.js} +9 -9
  70. package/dist/{vue-ui-funnel-6q79enxr.js → vue-ui-funnel-BtEiPtWV.js} +9 -9
  71. package/dist/{vue-ui-funnel-Dr4ssgIM.cjs → vue-ui-funnel-C9kqSvdp.cjs} +1 -1
  72. package/dist/{vue-ui-galaxy-BGxIGzn8.cjs → vue-ui-galaxy-DuHBx10N.cjs} +1 -1
  73. package/dist/{vue-ui-galaxy-Bg-3xnWe.js → vue-ui-galaxy-Dy0szrMW.js} +11 -11
  74. package/dist/{vue-ui-gauge-DGt25KK7.cjs → vue-ui-gauge-BHTXAsP3.cjs} +1 -1
  75. package/dist/{vue-ui-gauge-Cwhlraja.js → vue-ui-gauge-Bl5tGVHq.js} +7 -7
  76. package/dist/{vue-ui-gizmo-C0024J7B.cjs → vue-ui-gizmo-C4BrHDh4.cjs} +1 -1
  77. package/dist/{vue-ui-gizmo-VRONxCxp.js → vue-ui-gizmo-DMyPBBMU.js} +3 -3
  78. package/dist/{vue-ui-heatmap-ay3NAawN.js → vue-ui-heatmap-TlpTNG5t.js} +10 -10
  79. package/dist/{vue-ui-heatmap-CTwazjkR.cjs → vue-ui-heatmap-sFIr2K5p.cjs} +1 -1
  80. package/dist/{vue-ui-history-plot-B_IHuJff.cjs → vue-ui-history-plot-DAjdzGlR.cjs} +1 -1
  81. package/dist/{vue-ui-history-plot-BQ_2NZVm.js → vue-ui-history-plot-Dy1j0BxQ.js} +11 -11
  82. package/dist/{vue-ui-kpi-BGSgE7Ck.js → vue-ui-kpi-BcmSRMqx.js} +3 -3
  83. package/dist/{vue-ui-kpi-BtHmGmj6.cjs → vue-ui-kpi-ujEXx77P.cjs} +1 -1
  84. package/dist/{vue-ui-mini-loader-DyRqUv0j.js → vue-ui-mini-loader-CjnStv_v.js} +2 -2
  85. package/dist/{vue-ui-mini-loader-Bwe3_hqy.cjs → vue-ui-mini-loader-DAPA-14x.cjs} +1 -1
  86. package/dist/vue-ui-molecule-DR0XoKl0.cjs +1 -0
  87. package/dist/vue-ui-molecule-JFJY9rsO.js +755 -0
  88. package/dist/{vue-ui-mood-radar-BxFd74g3.cjs → vue-ui-mood-radar-BaysMegc.cjs} +1 -1
  89. package/dist/{vue-ui-mood-radar-DAYJLwXw.js → vue-ui-mood-radar-COoBSKNH.js} +11 -11
  90. package/dist/{vue-ui-nested-donuts-r67jsUHC.js → vue-ui-nested-donuts-CtFedcCD.js} +11 -11
  91. package/dist/{vue-ui-nested-donuts-DP_cQ0OI.cjs → vue-ui-nested-donuts-DYBuISa1.cjs} +1 -1
  92. package/dist/{vue-ui-onion-C-d1e3w2.js → vue-ui-onion-CEUV1mny.js} +11 -11
  93. package/dist/{vue-ui-onion-CR4UoiPQ.cjs → vue-ui-onion-D6ZwBWQg.cjs} +1 -1
  94. package/dist/{vue-ui-parallel-coordinate-plot-DVltec37.cjs → vue-ui-parallel-coordinate-plot-BxNT4su_.cjs} +1 -1
  95. package/dist/{vue-ui-parallel-coordinate-plot-FRhJ4mby.js → vue-ui-parallel-coordinate-plot-DYTDHl62.js} +12 -12
  96. package/dist/{vue-ui-quadrant-BKWD8HER.js → vue-ui-quadrant-Bgw63sh8.js} +12 -12
  97. package/dist/{vue-ui-quadrant-D-vSAn7m.cjs → vue-ui-quadrant-j31KXFQl.cjs} +1 -1
  98. package/dist/{vue-ui-quick-chart-Cy3FCnd-.js → vue-ui-quick-chart-DQQj-yff.js} +9 -9
  99. package/dist/{vue-ui-quick-chart-Bbcex3jc.cjs → vue-ui-quick-chart-oEQhbqjr.cjs} +1 -1
  100. package/dist/{vue-ui-radar-BHCghGVU.cjs → vue-ui-radar-C5pUYB_x.cjs} +1 -1
  101. package/dist/{vue-ui-radar-BX_7Ngn_.js → vue-ui-radar-D8z1eA3O.js} +12 -12
  102. package/dist/{vue-ui-rating-CM6YiPW3.js → vue-ui-rating-CEIibBYU.js} +2 -2
  103. package/dist/{vue-ui-rating-JhzvmHjC.cjs → vue-ui-rating-CGh8TQ5M.cjs} +1 -1
  104. package/dist/{vue-ui-relation-circle-BPhcc_fN.cjs → vue-ui-relation-circle-Bf6kjYWL.cjs} +1 -1
  105. package/dist/{vue-ui-relation-circle-JTWFex69.js → vue-ui-relation-circle-BrIe8bZU.js} +7 -7
  106. package/dist/{vue-ui-rings-NBAca-G8.js → vue-ui-rings-6l5DQ0_9.js} +12 -12
  107. package/dist/{vue-ui-rings-CzXIKikH.cjs → vue-ui-rings-BmSQzToz.cjs} +1 -1
  108. package/dist/{vue-ui-scatter-5SJ4F605.js → vue-ui-scatter-0geSLTUp.js} +12 -12
  109. package/dist/{vue-ui-scatter-DCunyG-E.cjs → vue-ui-scatter-g67ClUSv.cjs} +1 -1
  110. package/dist/{vue-ui-screenshot-DPm6Bpiq.js → vue-ui-screenshot-CshpwrmO.js} +1 -1
  111. package/dist/{vue-ui-screenshot-q3DSJ00h.cjs → vue-ui-screenshot-r5tJCW0O.cjs} +1 -1
  112. package/dist/{vue-ui-skeleton-BhHXiz99.js → vue-ui-skeleton-Bn49rVXa.js} +3 -3
  113. package/dist/{vue-ui-skeleton-D7S6OsSN.cjs → vue-ui-skeleton-D7ijXB6x.cjs} +1 -1
  114. package/dist/{vue-ui-smiley-Cb8d713r.js → vue-ui-smiley-CzAtJD1G.js} +2 -2
  115. package/dist/{vue-ui-smiley-CQE1dvvV.cjs → vue-ui-smiley-HofydNoz.cjs} +1 -1
  116. package/dist/{vue-ui-spark-trend-BVNEGhp9.js → vue-ui-spark-trend-B70DhKVg.js} +5 -5
  117. package/dist/{vue-ui-spark-trend-7Bo9O1fQ.cjs → vue-ui-spark-trend-CdTdbj6x.cjs} +1 -1
  118. package/dist/{vue-ui-sparkbar-BbOu_w63.js → vue-ui-sparkbar-CZ8Nw4fl.js} +4 -4
  119. package/dist/{vue-ui-sparkbar-qAaHy4or.cjs → vue-ui-sparkbar-cJ7Wu051.cjs} +1 -1
  120. package/dist/{vue-ui-sparkgauge-ddRVuzSQ.cjs → vue-ui-sparkgauge-BWNkoMqk.cjs} +1 -1
  121. package/dist/{vue-ui-sparkgauge-BwNM15jl.js → vue-ui-sparkgauge-D-VwonfZ.js} +4 -4
  122. package/dist/{vue-ui-sparkhistogram-DhJ72P8O.js → vue-ui-sparkhistogram-BK58LMOs.js} +5 -5
  123. package/dist/{vue-ui-sparkhistogram-C8E73uuw.cjs → vue-ui-sparkhistogram-hBwVKdOS.cjs} +1 -1
  124. package/dist/{vue-ui-sparkline-C6wkmXa0.cjs → vue-ui-sparkline-BD4gkpj_.cjs} +1 -1
  125. package/dist/{vue-ui-sparkline-m3nNPKwo.js → vue-ui-sparkline-DORXFea9.js} +4 -4
  126. package/dist/{vue-ui-sparkstackbar-B71Vue4E.js → vue-ui-sparkstackbar-CNu5TNGE.js} +5 -5
  127. package/dist/{vue-ui-sparkstackbar-CJyCwn7x.cjs → vue-ui-sparkstackbar-ClcY4WWe.cjs} +1 -1
  128. package/dist/{vue-ui-stackbar-CL7KXBrn.js → vue-ui-stackbar--aCaS5x2.js} +13 -13
  129. package/dist/{vue-ui-stackbar-6W0SjyLd.cjs → vue-ui-stackbar-CkMwpXvU.cjs} +1 -1
  130. package/dist/{vue-ui-strip-plot-D10qNzJu.cjs → vue-ui-strip-plot-BiFHgg1S.cjs} +1 -1
  131. package/dist/{vue-ui-strip-plot-T99zioSX.js → vue-ui-strip-plot-CFVbMS6X.js} +11 -11
  132. package/dist/{vue-ui-table-CCrE_Qnd.js → vue-ui-table-B_3Ilpbe.js} +1 -1
  133. package/dist/{vue-ui-table-Cva4CGRJ.cjs → vue-ui-table-DR255TsX.cjs} +1 -1
  134. package/dist/{vue-ui-table-heatmap-CQbPKFW_.js → vue-ui-table-heatmap-BNxAz0s0.js} +4 -4
  135. package/dist/{vue-ui-table-heatmap-GOsIhgPo.cjs → vue-ui-table-heatmap-GUBFCD5M.cjs} +1 -1
  136. package/dist/{vue-ui-table-sparkline-AIunqOTn.cjs → vue-ui-table-sparkline-B4tLXnLP.cjs} +1 -1
  137. package/dist/{vue-ui-table-sparkline-CHtZhhn6.js → vue-ui-table-sparkline-DSOduMZf.js} +5 -5
  138. package/dist/{vue-ui-thermometer-CGAA0bAU.cjs → vue-ui-thermometer-D4xuEt1d.cjs} +1 -1
  139. package/dist/{vue-ui-thermometer-CCVPdXye.js → vue-ui-thermometer-DmM-HnTb.js} +7 -7
  140. package/dist/{vue-ui-timer-C3detaHT.cjs → vue-ui-timer-CRvBgkAk.cjs} +1 -1
  141. package/dist/{vue-ui-timer-Djxb8XuU.js → vue-ui-timer-Cv3Nx66b.js} +5 -5
  142. package/dist/{vue-ui-tiremarks-DExuaGwV.js → vue-ui-tiremarks-ASWxcVYt.js} +7 -7
  143. package/dist/{vue-ui-tiremarks-D-xQKhur.cjs → vue-ui-tiremarks-BCm4J3AS.cjs} +1 -1
  144. package/dist/{vue-ui-treemap-Dnn29Qdu.js → vue-ui-treemap-DkTT9Fpa.js} +12 -12
  145. package/dist/{vue-ui-treemap-BXWbdL3o.cjs → vue-ui-treemap-K-I2E3e-.cjs} +1 -1
  146. package/dist/{vue-ui-vertical-bar-B9-cwCz2.js → vue-ui-vertical-bar-CKAyFHu9.js} +12 -12
  147. package/dist/{vue-ui-vertical-bar-3V-J4-Qp.cjs → vue-ui-vertical-bar-CYsYkq04.cjs} +1 -1
  148. package/dist/{vue-ui-waffle-BH4NkBmK.js → vue-ui-waffle-DA1_yNZ7.js} +12 -12
  149. package/dist/{vue-ui-waffle-by6o3KnD.cjs → vue-ui-waffle-WHpYY_yA.cjs} +1 -1
  150. package/dist/{vue-ui-wheel-DWNHihoO.cjs → vue-ui-wheel-CWY3hkRC.cjs} +1 -1
  151. package/dist/{vue-ui-wheel-D2BqDvNB.js → vue-ui-wheel-vebQiYtM.js} +7 -7
  152. package/dist/vue-ui-word-cloud-CABqCfl5.js +571 -0
  153. package/dist/vue-ui-word-cloud-H7016Zdi.cjs +1 -0
  154. package/dist/{vue-ui-xy-CuLfvdAU.js → vue-ui-xy-C2OQ78CJ.js} +14 -14
  155. package/dist/{vue-ui-xy-luOYkYWO.cjs → vue-ui-xy-CrCJrk6u.cjs} +1 -1
  156. package/dist/{vue-ui-xy-canvas-bysKB96p.cjs → vue-ui-xy-canvas-D5iPJqoe.cjs} +1 -1
  157. package/dist/{vue-ui-xy-canvas-BK3C3PqR.js → vue-ui-xy-canvas-DvZgi7HV.js} +12 -12
  158. package/package.json +2 -2
  159. package/dist/vue-ui-molecule-Cy_P0hK2.cjs +0 -1
  160. package/dist/vue-ui-molecule-gJVbPM60.js +0 -830
  161. package/dist/vue-ui-word-cloud-Bpyn_t-K.js +0 -646
  162. package/dist/vue-ui-word-cloud-DvXgJCIv.cjs +0 -1
@@ -1,646 +0,0 @@
1
- import { useCssVars as Ge, computed as y, createElementBlock as m, openBlock as r, createElementVNode as N, renderSlot as i, createVNode as ne, normalizeStyle as J, ref as n, watch as H, onMounted as Le, onBeforeUnmount as Xe, unref as c, createBlock as M, createCommentVNode as k, createSlots as je, withCtx as h, normalizeProps as S, guardReactiveProps as F, normalizeClass as $e, Fragment as qe, renderList as He, toDisplayString as xe, createTextVNode as Ye, nextTick as Te } from "vue";
2
- import { u as Je, c as Se, a6 as Ke, v as Qe, t as Ze, p as Y, a as et, o as tt, e as Fe, g as ot, f as at, X as lt, q as st, r as nt, x as rt } from "./index-KdQpiTkm.js";
3
- import { _ as ut } from "./Title-DMhhB9yN.js";
4
- import { u as it, U as ct } from "./usePrinter-BuiF8wZK.js";
5
- import { d as dt, t as vt, u as ht } from "./useResponsive-Cw4oZ8sQ.js";
6
- import mt from "./vue-ui-accordion-CDTJiQu0.js";
7
- import { D as ft } from "./DataTable-751-cN2c.js";
8
- import pt from "./BaseIcon-CEgQPz8O.js";
9
- import { _ as Oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- import { u as Ne } from "./useNestedProp-CO8Pe266.js";
11
- import { _ as gt } from "./PackageVersion-SrpgZayt.js";
12
- import { _ as yt } from "./Tooltip-BaPecnnV.js";
13
- import { P as bt } from "./PenAndPaper-jnD991LP.js";
14
- import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
15
- import { u as kt } from "./useChartAccessibility-BWojgys7.js";
16
- const wt = { "data-html2canvas-ignore": "" }, $t = {
17
- key: 0,
18
- class: "reset-wrapper"
19
- }, xt = {
20
- key: 1,
21
- class: "reset-wrapper"
22
- }, Tt = { class: "mono-slicer" }, St = ["min", "max", "value"], Ft = {
23
- __name: "MonoSlicer",
24
- props: {
25
- min: {
26
- type: Number,
27
- default: 0
28
- },
29
- max: {
30
- type: Number,
31
- default: 0
32
- },
33
- inputColor: {
34
- type: String,
35
- default: "#1A1A1A"
36
- },
37
- background: {
38
- type: String,
39
- default: "#FFFFFF"
40
- },
41
- borderColor: {
42
- type: String,
43
- default: "#FFFFFF"
44
- },
45
- selectColor: {
46
- type: String,
47
- default: "#4A4A4A"
48
- },
49
- textColor: {
50
- type: String,
51
- default: "#1A1A1A"
52
- },
53
- useResetSlot: {
54
- type: Boolean,
55
- default: !1
56
- },
57
- value: {
58
- type: Number,
59
- default: 0
60
- },
61
- source: {
62
- type: Number,
63
- default: 0
64
- }
65
- },
66
- emits: ["update:value", "reset"],
67
- setup(f, { emit: K }) {
68
- Ge((x) => ({
69
- "782b8172": d.value,
70
- "102109e6": V.value,
71
- "642212d7": _.value,
72
- "1f5369d4": f.selectColor,
73
- "22b98ab8": O.value
74
- }));
75
- const p = f, d = y(() => p.inputColor), O = y(() => p.background), _ = y(() => `${p.selectColor}33`), V = y(() => p.borderColor), w = K;
76
- function R() {
77
- w("reset");
78
- }
79
- const B = y(() => {
80
- const x = p.max - p.min, b = 0, T = (p.value - p.min) / x * 100;
81
- return {
82
- left: `${b}%`,
83
- width: `${T - b}%`,
84
- background: p.selectColor
85
- };
86
- });
87
- return (x, b) => (r(), m("div", wt, [
88
- f.value !== f.source ? (r(), m("div", $t, [
89
- f.useResetSlot ? i(x.$slots, "reset-action", {
90
- key: 1,
91
- reset: R
92
- }, void 0, !0) : (r(), m("button", {
93
- key: 0,
94
- "data-cy-reset": "",
95
- tabindex: "0",
96
- role: "button",
97
- class: "vue-data-ui-refresh-button",
98
- onClick: R
99
- }, [
100
- ne(pt, {
101
- name: "refresh",
102
- stroke: f.textColor
103
- }, null, 8, ["stroke"])
104
- ]))
105
- ])) : (r(), m("div", xt)),
106
- N("div", Tt, [
107
- b[1] || (b[1] = N("div", { class: "slider-track" }, null, -1)),
108
- N("div", {
109
- class: "range-highlight",
110
- style: J(B.value)
111
- }, null, 4),
112
- N("input", {
113
- type: "range",
114
- min: f.min,
115
- max: f.max,
116
- value: Number(f.value),
117
- onInput: b[0] || (b[0] = (T) => w("update:value", Number(T.target.value)))
118
- }, null, 40, St)
119
- ])
120
- ]));
121
- }
122
- }, Nt = /* @__PURE__ */ Oe(Ft, [["__scopeId", "data-v-b4e6aee9"]]), Ot = ["id"], zt = ["xmlns", "viewBox"], At = ["width", "height"], Pt = ["transform"], It = ["fill", "font-weight", "x", "y", "font-size", "transform", "onMouseover"], Mt = {
123
- key: 4,
124
- class: "vue-data-ui-watermark"
125
- }, _t = ["innerHTML"], Rt = {
126
- __name: "vue-ui-word-cloud",
127
- props: {
128
- config: {
129
- type: Object,
130
- default() {
131
- return {};
132
- }
133
- },
134
- dataset: {
135
- type: [Array, String],
136
- default() {
137
- return [];
138
- }
139
- }
140
- },
141
- setup(f, { expose: K }) {
142
- const { vue_ui_word_cloud: p } = Je(), d = f, O = y({
143
- get() {
144
- return !!d.dataset && d.dataset.length;
145
- },
146
- set(t) {
147
- return t;
148
- }
149
- }), _ = n(Se()), V = n(0), w = n(null), R = n(null), B = n(null), x = n(0), b = n(0), T = n(!1), e = y({
150
- get: () => de(),
151
- set: (t) => t
152
- }), z = n(re());
153
- function re() {
154
- return typeof d.dataset == "string" ? Ke(d.dataset) : d.dataset.map((t, a) => ({
155
- ...t,
156
- value: Qe(t.value)
157
- }));
158
- }
159
- H(() => d.dataset, () => {
160
- z.value = re(), E();
161
- });
162
- const { userOptionsVisible: Q, setUserOptionsVisibility: ue, keepUserOptionState: ie } = Ct({ config: e.value }), { svgRef: ce } = kt({ config: e.value.style.chart.title });
163
- function de() {
164
- const t = Ne({
165
- userConfig: d.config,
166
- defaultConfig: p
167
- });
168
- return t.theme ? {
169
- ...Ne({
170
- userConfig: et.vue_ui_word_cloud[t.theme] || d.config,
171
- defaultConfig: t
172
- }),
173
- customPalette: Ze[t.theme] || Y
174
- } : t;
175
- }
176
- H(() => d.config, (t) => {
177
- e.value = de(), Q.value = !e.value.userOptions.showOnChartHover, he(), x.value += 1, b.value += 1, Z(), v.value.showTable = e.value.table.show, v.value.showTooltip = e.value.style.chart.tooltip.show;
178
- }, { deep: !0 });
179
- const ve = n(null), A = n(0), s = n({
180
- width: e.value.style.chart.width,
181
- height: e.value.style.chart.height,
182
- maxFontSize: e.value.style.chart.words.maxFontSize,
183
- minFontSize: e.value.style.chart.words.minFontSize
184
- }), ze = vt(() => {
185
- const { width: t, height: a } = ht({
186
- chart: w.value,
187
- title: e.value.style.chart.title.text ? R.value : null,
188
- slicer: e.value.style.chart.zoom.show && ve.value,
189
- source: B.value
190
- });
191
- requestAnimationFrame(() => {
192
- s.value.width = t, s.value.height = a, Te(E);
193
- });
194
- });
195
- H(() => A.value, () => {
196
- Ae();
197
- });
198
- const Ae = dt(() => {
199
- E();
200
- }, 10);
201
- function Z() {
202
- A.value = ee.value;
203
- }
204
- const D = n(null);
205
- Le(() => {
206
- he(), Z();
207
- });
208
- function he() {
209
- tt(d.dataset) ? Fe({
210
- componentName: "VueUiWordCloud",
211
- type: "dataset"
212
- }) : z.value.forEach((t, a) => {
213
- ot({
214
- datasetObject: t,
215
- requiredAttributes: ["name", "value"]
216
- }).forEach((o) => {
217
- O.value = !1, Fe({
218
- componentName: "VueUiWordCloud",
219
- type: "datasetSerieAttribute",
220
- property: o,
221
- index: a
222
- });
223
- });
224
- }), e.value.responsive && (D.value = new ResizeObserver(ze), D.value.observe(w.value.parentNode));
225
- }
226
- Xe(() => {
227
- D.value && D.value.disconnect();
228
- });
229
- const { isPrinting: me, isImaging: fe, generatePdf: pe, generateImage: ge } = it({
230
- elementId: `wordCloud_${_.value}`,
231
- fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
232
- options: e.value.userOptions.print
233
- }), v = n({
234
- showTable: e.value.table.show,
235
- showTooltip: e.value.style.chart.tooltip.show
236
- });
237
- function Pe(t, a, o = "Arial") {
238
- const l = document.createElement("canvas").getContext("2d");
239
- return l.font = `${a}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${o}`, {
240
- width: l.measureText(t).width + e.value.style.chart.words.proximity,
241
- height: a
242
- };
243
- }
244
- function Ie(t, a) {
245
- 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;
246
- }
247
- function Me(t, a, o) {
248
- const u = [], l = { x: -a / 2, y: -o / 2, width: a, height: o }, g = 0, C = 0;
249
- return t.forEach((I) => {
250
- let le = !1;
251
- for (let q = 0; q < Math.max(a, o) / 2 && !le; q += e.value.style.chart.words.packingWeight)
252
- for (let se = 0; se < 360 && !le; se += e.value.style.chart.words.packingWeight) {
253
- const we = se * Math.PI / 180, Ue = g + q * Math.cos(we) - I.width / 2, Ve = C + q * Math.sin(we) - I.height / 2, $ = { ...I, x: Ue, y: Ve }, Be = $.x >= l.x && $.y >= l.y && $.x + $.width <= l.x + l.width && $.y + $.height <= l.y + l.height, De = u.some((Ee) => Ie($, Ee));
254
- Be && !De && (u.push($), le = !0);
255
- }
256
- }), u;
257
- }
258
- const W = n([]);
259
- H(() => d.dataset, E, { immediate: !0 });
260
- const ee = y(() => Math.round(Math.min(...z.value.map((t) => t.value)))), ye = y(() => Math.round(Math.max(...z.value.map((t) => t.value))));
261
- function E() {
262
- const t = [...z.value].filter((l) => l.value >= A.value).map((l) => l.value), a = Math.max(...t), o = Math.min(...t), u = [...z.value].filter((l) => l.value >= A.value).map((l, g) => {
263
- let C = (l.value - o) / (a - o) * (s.value.maxFontSize - s.value.minFontSize) + s.value.minFontSize;
264
- C = isNaN(C) ? s.value.minFontSize : C;
265
- const I = Pe(l.name, C);
266
- return {
267
- ...l,
268
- id: Se(),
269
- fontSize: C,
270
- width: I.width,
271
- height: I.height,
272
- color: e.value.style.chart.words.usePalette ? e.value.customPalette[g] || e.value.customPalette[g % e.value.customPalette.length] || Y[g] || Y[g % Y.length] : e.value.style.chart.words.color
273
- };
274
- });
275
- W.value = Me(u, s.value.width, s.value.height).sort((l, g) => g.fontSize - l.fontSize);
276
- }
277
- const G = y(() => {
278
- const t = W.value.map((o) => ({
279
- name: o.name,
280
- color: o.color
281
- })), a = W.value.map((o) => o.value);
282
- return { head: t, body: a };
283
- });
284
- function be() {
285
- Te(() => {
286
- const t = G.value.head.map((u, l) => [[
287
- u.name
288
- ], [G.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 = st(a);
289
- nt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
290
- });
291
- }
292
- const L = y(() => {
293
- const t = [
294
- e.value.table.columnNames.series,
295
- e.value.table.columnNames.value
296
- ], a = G.value.head.map((l, g) => {
297
- const C = at({ p: e.value.table.td.prefix, v: G.value.body[g], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
298
- return [
299
- {
300
- color: l.color,
301
- name: l.name
302
- },
303
- C
304
- ];
305
- }), o = {
306
- th: {
307
- backgroundColor: e.value.table.th.backgroundColor,
308
- color: e.value.table.th.color,
309
- outline: e.value.table.th.outline
310
- },
311
- td: {
312
- backgroundColor: e.value.table.td.backgroundColor,
313
- color: e.value.table.td.color,
314
- outline: e.value.table.td.outline
315
- },
316
- breakpoint: e.value.table.responsiveBreakpoint
317
- };
318
- return {
319
- colNames: [
320
- e.value.table.columnNames.series,
321
- e.value.table.columnNames.value
322
- ],
323
- head: t,
324
- body: a,
325
- config: o
326
- };
327
- }), X = n(!1);
328
- function _e(t) {
329
- X.value = t, V.value += 1;
330
- }
331
- function Re() {
332
- return W.value;
333
- }
334
- function Ce() {
335
- v.value.showTable = !v.value.showTable;
336
- }
337
- function ke() {
338
- v.value.showTooltip = !v.value.showTooltip;
339
- }
340
- const j = n(!1);
341
- function te() {
342
- j.value = !j.value;
343
- }
344
- K({
345
- getData: Re,
346
- generateCsv: be,
347
- generatePdf: pe,
348
- generateImage: ge,
349
- toggleTable: Ce,
350
- toggleTooltip: ke,
351
- toggleAnnotator: te
352
- });
353
- const P = n(null), U = n(!1), oe = n(""), ae = n(null);
354
- function We(t) {
355
- if (!v.value.showTooltip) return;
356
- P.value = t.id, ae.value = { datapoint: t, config: e.value };
357
- const a = e.value.style.chart.tooltip.customFormat;
358
- if (U.value = !1, rt(a))
359
- try {
360
- const o = a({
361
- datapoint: t,
362
- config: e.value
363
- });
364
- typeof o == "string" && (oe.value = o, U.value = !0);
365
- } catch {
366
- console.warn("Custom format cannot be applied."), U.value = !1;
367
- }
368
- if (!U.value) {
369
- 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>`;
370
- oe.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${o}</div>`;
371
- }
372
- T.value = !0;
373
- }
374
- return (t, a) => (r(), m("div", {
375
- class: "vue-ui-word-cloud",
376
- ref_key: "wordCloudChart",
377
- ref: w,
378
- id: `wordCloud_${_.value}`,
379
- style: J(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
380
- onMouseenter: a[3] || (a[3] = () => c(ue)(!0)),
381
- onMouseleave: a[4] || (a[4] = () => c(ue)(!1))
382
- }, [
383
- e.value.userOptions.buttons.annotator ? (r(), M(bt, {
384
- key: 0,
385
- svgRef: c(ce),
386
- backgroundColor: e.value.style.chart.backgroundColor,
387
- color: e.value.style.chart.color,
388
- active: j.value,
389
- onClose: te
390
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : k("", !0),
391
- e.value.style.chart.title.text ? (r(), m("div", {
392
- key: 1,
393
- ref_key: "chartTitle",
394
- ref: R,
395
- style: "width:100%;background:transparent;padding-bottom:24px"
396
- }, [
397
- (r(), M(ut, {
398
- key: `title_${x.value}`,
399
- config: {
400
- title: {
401
- ...e.value.style.chart.title
402
- },
403
- subtitle: {
404
- ...e.value.style.chart.title.subtitle
405
- }
406
- }
407
- }, null, 8, ["config"]))
408
- ], 512)) : k("", !0),
409
- e.value.userOptions.show && O.value && (c(ie) || c(Q)) ? (r(), M(ct, {
410
- ref: "details",
411
- key: `user_option_${V.value}`,
412
- backgroundColor: e.value.style.chart.backgroundColor,
413
- color: e.value.style.chart.color,
414
- isPrinting: c(me),
415
- isImaging: c(fe),
416
- uid: _.value,
417
- hasPdf: e.value.userOptions.buttons.pdf,
418
- hasXls: e.value.userOptions.buttons.csv,
419
- hasImg: e.value.userOptions.buttons.img,
420
- hasTable: e.value.userOptions.buttons.table,
421
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
422
- isFullscreen: X.value,
423
- titles: { ...e.value.userOptions.buttonTitles },
424
- chartElement: w.value,
425
- position: e.value.userOptions.position,
426
- hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
427
- isTooltip: v.value.showTooltip,
428
- hasAnnotator: e.value.userOptions.buttons.annotator,
429
- isAnnotation: j.value,
430
- onToggleFullscreen: _e,
431
- onGeneratePdf: c(pe),
432
- onGenerateCsv: be,
433
- onGenerateImage: c(ge),
434
- onToggleTable: Ce,
435
- onToggleTooltip: ke,
436
- onToggleAnnotator: te,
437
- style: J({
438
- visibility: c(ie) ? c(Q) ? "visible" : "hidden" : "visible"
439
- })
440
- }, je({ _: 2 }, [
441
- t.$slots.menuIcon ? {
442
- name: "menuIcon",
443
- fn: h(({ isOpen: o, color: u }) => [
444
- i(t.$slots, "menuIcon", S(F({ isOpen: o, color: u })), void 0, !0)
445
- ]),
446
- key: "0"
447
- } : void 0,
448
- t.$slots.optionPdf ? {
449
- name: "optionPdf",
450
- fn: h(() => [
451
- i(t.$slots, "optionPdf", {}, void 0, !0)
452
- ]),
453
- key: "1"
454
- } : void 0,
455
- t.$slots.optionCsv ? {
456
- name: "optionCsv",
457
- fn: h(() => [
458
- i(t.$slots, "optionCsv", {}, void 0, !0)
459
- ]),
460
- key: "2"
461
- } : void 0,
462
- t.$slots.optionImg ? {
463
- name: "optionImg",
464
- fn: h(() => [
465
- i(t.$slots, "optionImg", {}, void 0, !0)
466
- ]),
467
- key: "3"
468
- } : void 0,
469
- t.$slots.optionTable ? {
470
- name: "optionTable",
471
- fn: h(() => [
472
- i(t.$slots, "optionTable", {}, void 0, !0)
473
- ]),
474
- key: "4"
475
- } : void 0,
476
- t.$slots.optionFullscreen ? {
477
- name: "optionFullscreen",
478
- fn: h(({ toggleFullscreen: o, isFullscreen: u }) => [
479
- i(t.$slots, "optionFullscreen", S(F({ toggleFullscreen: o, isFullscreen: u })), void 0, !0)
480
- ]),
481
- key: "5"
482
- } : void 0,
483
- t.$slots.optionAnnotator ? {
484
- name: "optionAnnotator",
485
- fn: h(({ toggleAnnotator: o, isAnnotator: u }) => [
486
- i(t.$slots, "optionAnnotator", S(F({ toggleAnnotator: o, isAnnotator: u })), void 0, !0)
487
- ]),
488
- key: "6"
489
- } : void 0
490
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : k("", !0),
491
- O.value ? (r(), m("svg", {
492
- key: 3,
493
- ref_key: "svgRef",
494
- ref: ce,
495
- class: $e({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
496
- xmlns: c(lt),
497
- viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
498
- style: "overflow:visible;background:transparent;"
499
- }, [
500
- ne(gt),
501
- t.$slots["chart-background"] ? (r(), m("foreignObject", {
502
- key: 0,
503
- x: 0,
504
- y: 0,
505
- width: s.value.width <= 0 ? 10 : s.value.width,
506
- height: s.value.height <= 0 ? 10 : s.value.height,
507
- style: {
508
- pointerEvents: "none"
509
- }
510
- }, [
511
- i(t.$slots, "chart-background", {}, void 0, !0)
512
- ], 8, At)) : k("", !0),
513
- N("g", {
514
- transform: `translate(${(s.value.width <= 0 ? 10 : s.value.width) / 2}, ${(s.value.height <= 0 ? 10 : s.value.height) / 2})`
515
- }, [
516
- (r(!0), m(qe, null, He(W.value, (o, u) => (r(), m("g", null, [
517
- (r(), m("text", {
518
- fill: o.color,
519
- "font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
520
- key: u,
521
- x: o.x,
522
- y: o.y,
523
- "font-size": o.fontSize,
524
- transform: `translate(${o.width / 2}, ${o.height / 2})`,
525
- class: $e({ animated: e.value.useCssAnimation, "word-selected": P.value && P.value === o.id && v.value.showTooltip, "word-not-selected": P.value && P.value !== o.id && v.value.showTooltip }),
526
- "text-anchor": "middle",
527
- "dominant-baseline": "central",
528
- onMouseover: (l) => We(o),
529
- onMouseleave: a[0] || (a[0] = (l) => {
530
- P.value = null, T.value = !1;
531
- }),
532
- style: J(`animation-delay:${u * e.value.animationDelayMs}ms !important;`)
533
- }, xe(o.name), 47, It))
534
- ]))), 256))
535
- ], 8, Pt),
536
- i(t.$slots, "svg", {
537
- svg: { height: s.value.height, width: s.value.width }
538
- }, void 0, !0)
539
- ], 10, zt)) : k("", !0),
540
- t.$slots.watermark ? (r(), m("div", Mt, [
541
- i(t.$slots, "watermark", S(F({ isPrinting: c(me) || c(fe) })), void 0, !0)
542
- ])) : k("", !0),
543
- ne(yt, {
544
- show: v.value.showTooltip && T.value,
545
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
546
- color: e.value.style.chart.tooltip.color,
547
- fontSize: e.value.style.chart.tooltip.fontSize,
548
- borderRadius: e.value.style.chart.tooltip.borderRadius,
549
- borderColor: e.value.style.chart.tooltip.borderColor,
550
- borderWidth: e.value.style.chart.tooltip.borderWidth,
551
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
552
- position: e.value.style.chart.tooltip.position,
553
- offsetY: e.value.style.chart.tooltip.offsetY,
554
- parent: w.value,
555
- content: oe.value,
556
- isCustom: U.value
557
- }, {
558
- "tooltip-before": h(() => [
559
- i(t.$slots, "tooltip-before", S(F({ ...ae.value })), void 0, !0)
560
- ]),
561
- "tooltip-after": h(() => [
562
- i(t.$slots, "tooltip-after", S(F({ ...ae.value })), void 0, !0)
563
- ]),
564
- _: 3
565
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
566
- N("div", {
567
- ref_key: "chartSlicer",
568
- ref: ve,
569
- style: "width:100%;background:transparent",
570
- "data-html2canvas-ignore": ""
571
- }, [
572
- e.value.style.chart.zoom.show && ee.value < ye.value ? (r(), M(Nt, {
573
- key: 0,
574
- value: A.value,
575
- "onUpdate:value": a[1] || (a[1] = (o) => A.value = o),
576
- min: ee.value,
577
- max: ye.value,
578
- textColor: e.value.style.chart.color,
579
- inputColor: e.value.style.chart.zoom.color,
580
- selectColor: e.value.style.chart.zoom.highlightColor,
581
- useResetSlot: e.value.style.chart.zoom.useResetSlot,
582
- background: e.value.style.chart.zoom.color,
583
- borderColor: e.value.style.chart.backgroundColor,
584
- source: e.value.style.chart.width,
585
- onReset: Z
586
- }, {
587
- "reset-action": h(({ reset: o }) => [
588
- i(t.$slots, "reset-action", S(F({ reset: o })), void 0, !0)
589
- ]),
590
- _: 3
591
- }, 8, ["value", "min", "max", "textColor", "inputColor", "selectColor", "useResetSlot", "background", "borderColor", "source"])) : k("", !0)
592
- ], 512),
593
- t.$slots.source ? (r(), m("div", {
594
- key: 5,
595
- ref_key: "source",
596
- ref: B,
597
- dir: "auto"
598
- }, [
599
- i(t.$slots, "source", {}, void 0, !0)
600
- ], 512)) : k("", !0),
601
- O.value ? (r(), M(mt, {
602
- key: 6,
603
- hideDetails: "",
604
- config: {
605
- open: v.value.showTable,
606
- maxHeight: 1e4,
607
- body: {
608
- backgroundColor: e.value.style.chart.backgroundColor,
609
- color: e.value.style.chart.color
610
- },
611
- head: {
612
- backgroundColor: e.value.style.chart.backgroundColor,
613
- color: e.value.style.chart.color
614
- }
615
- }
616
- }, {
617
- content: h(() => [
618
- (r(), M(ft, {
619
- key: `table_${b.value}`,
620
- colNames: L.value.colNames,
621
- head: L.value.head,
622
- body: L.value.body,
623
- config: L.value.config,
624
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
625
- onClose: a[2] || (a[2] = (o) => v.value.showTable = !1)
626
- }, {
627
- th: h(({ th: o }) => [
628
- N("div", {
629
- innerHTML: o,
630
- style: { display: "flex", "align-items": "center" }
631
- }, null, 8, _t)
632
- ]),
633
- td: h(({ td: o }) => [
634
- Ye(xe(o.name || o), 1)
635
- ]),
636
- _: 1
637
- }, 8, ["colNames", "head", "body", "config", "title"]))
638
- ]),
639
- _: 1
640
- }, 8, ["config"])) : k("", !0)
641
- ], 44, Ot));
642
- }
643
- }, Qt = /* @__PURE__ */ Oe(Rt, [["__scopeId", "data-v-117f5e65"]]);
644
- export {
645
- Qt as default
646
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DEbhC0cM.cjs"),Te=require("./Title-BUnn57ZR.cjs"),ce=require("./usePrinter-DRmOwFc2.cjs"),H=require("./useResponsive-DQmBAoBf.cjs"),Ne=require("./vue-ui-accordion-ChxVn9CH.cjs"),Pe=require("./DataTable-D_Guh5Hf.cjs"),Be=require("./BaseIcon-DoqpR480.cjs"),ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),de=require("./useNestedProp-COYn8tA0.cjs"),Fe=require("./PackageVersion-D8T0gm3t.cjs"),ze=require("./Tooltip-DJtOxx2P.cjs"),Oe=require("./PenAndPaper-BJ6gGBM2.cjs"),Ae=require("./useUserOptionState-BgepsfED.cjs"),Ve=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ee={"data-html2canvas-ignore":""},Me={key:0,class:"reset-wrapper"},Ie={key:1,class:"reset-wrapper"},Re={class:"mono-slicer"},_e=["min","max","value"],qe={__name:"MonoSlicer",props:{min:{type:Number,default:0},max:{type:Number,default:0},inputColor:{type:String,default:"#1A1A1A"},background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},selectColor:{type:String,default:"#4A4A4A"},textColor:{type:String,default:"#1A1A1A"},useResetSlot:{type:Boolean,default:!1},value:{type:Number,default:0},source:{type:Number,default:0}},emits:["update:value","reset"],setup(d,{emit:R}){e.useCssVars(y=>({"782b8172":i.value,"102109e6":B.value,"642212d7":$.value,"1f5369d4":d.selectColor,"22b98ab8":C.value}));const v=d,i=e.computed(()=>v.inputColor),C=e.computed(()=>v.background),$=e.computed(()=>`${v.selectColor}33`),B=e.computed(()=>v.borderColor),f=R;function T(){f("reset")}const F=e.computed(()=>{const y=v.max-v.min,m=0,b=(v.value-v.min)/y*100;return{left:`${m}%`,width:`${b-m}%`,background:v.selectColor}});return(y,m)=>(e.openBlock(),e.createElementBlock("div",Ee,[d.value!==d.source?(e.openBlock(),e.createElementBlock("div",Me,[d.useResetSlot?e.renderSlot(y.$slots,"reset-action",{key:1,reset:T},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:T},[e.createVNode(Be.default,{name:"refresh",stroke:d.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",Ie)),e.createElementVNode("div",Re,[m[1]||(m[1]=e.createElementVNode("div",{class:"slider-track"},null,-1)),e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(F.value)},null,4),e.createElementVNode("input",{type:"range",min:d.min,max:d.max,value:Number(d.value),onInput:m[0]||(m[0]=b=>f("update:value",Number(b.target.value)))},null,40,_e)])]))}},We=ve._export_sfc(qe,[["__scopeId","data-v-b4e6aee9"]]),Ue=["id"],De=["xmlns","viewBox"],Ge=["width","height"],Le=["transform"],je=["fill","font-weight","x","y","font-size","transform","onMouseover"],He={key:4,class:"vue-data-ui-watermark"},Xe=["innerHTML"],Ye={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(d,{expose:R}){const{vue_ui_word_cloud:v}=s.useConfig(),i=d,C=e.computed({get(){return!!i.dataset&&i.dataset.length},set(o){return o}}),$=e.ref(s.createUid()),B=e.ref(0),f=e.ref(null),T=e.ref(null),F=e.ref(null),y=e.ref(0),m=e.ref(0),b=e.ref(!1),t=e.computed({get:()=>Q(),set:o=>o}),k=e.ref(X());function X(){return typeof i.dataset=="string"?s.createWordCloudDatasetFromPlainText(i.dataset):i.dataset.map((o,a)=>({...o,value:s.checkNaN(o.value)}))}e.watch(()=>i.dataset,()=>{k.value=X(),O()});const{userOptionsVisible:_,setUserOptionsVisibility:Y,keepUserOptionState:J}=Ae.useUserOptionState({config:t.value}),{svgRef:K}=Ve.useChartAccessibility({config:t.value.style.chart.title});function Q(){const o=de.useNestedProp({userConfig:i.config,defaultConfig:v});return o.theme?{...de.useNestedProp({userConfig:s.themes.vue_ui_word_cloud[o.theme]||i.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>i.config,o=>{t.value=Q(),_.value=!t.value.userOptions.showOnChartHover,ee(),y.value+=1,m.value+=1,q(),c.value.showTable=t.value.table.show,c.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const Z=e.ref(null),w=e.ref(0),r=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),he=H.throttle(()=>{const{width:o,height:a}=H.useResponsive({chart:f.value,title:t.value.style.chart.title.text?T.value:null,slicer:t.value.style.chart.zoom.show&&Z.value,source:F.value});requestAnimationFrame(()=>{r.value.width=o,r.value.height=a,e.nextTick(O)})});e.watch(()=>w.value,()=>{me()});const me=H.debounce(()=>{O()},10);function q(){w.value=W.value}const z=e.ref(null);e.onMounted(()=>{ee(),q()});function ee(){s.objectIsEmpty(i.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):k.value.forEach((o,a)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{C.value=!1,s.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(z.value=new ResizeObserver(he),z.value.observe(f.value.parentNode))}e.onBeforeUnmount(()=>{z.value&&z.value.disconnect()});const{isPrinting:te,isImaging:oe,generatePdf:le,generateImage:ae}=ce.usePrinter({elementId:`wordCloud_${$.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud",options:t.value.userOptions.print}),c=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function pe(o,a,l="Arial"){const n=document.createElement("canvas").getContext("2d");return n.font=`${a}px ${t.value.style.chart.words.bold?"bold":"normal"} ${l}`,{width:n.measureText(o).width+t.value.style.chart.words.proximity,height:a}}function fe(o,a){return o.x<a.x+a.width&&o.x+o.width>a.x&&o.y<a.y+a.height&&o.y+o.height>a.y}function ge(o,a,l){const u=[],n={x:-a/2,y:-l/2,width:a,height:l},h=0,p=0;return o.forEach(x=>{let L=!1;for(let I=0;I<Math.max(a,l)/2&&!L;I+=t.value.style.chart.words.packingWeight)for(let j=0;j<360&&!L;j+=t.value.style.chart.words.packingWeight){const ie=j*Math.PI/180,ke=h+I*Math.cos(ie)-x.width/2,we=p+I*Math.sin(ie)-x.height/2,g={...x,x:ke,y:we},Se=g.x>=n.x&&g.y>=n.y&&g.x+g.width<=n.x+n.width&&g.y+g.height<=n.y+n.height,xe=u.some($e=>fe(g,$e));Se&&!xe&&(u.push(g),L=!0)}}),u}const N=e.ref([]);e.watch(()=>i.dataset,O,{immediate:!0});const W=e.computed(()=>Math.round(Math.min(...k.value.map(o=>o.value)))),ne=e.computed(()=>Math.round(Math.max(...k.value.map(o=>o.value))));function O(){const o=[...k.value].filter(n=>n.value>=w.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),u=[...k.value].filter(n=>n.value>=w.value).map((n,h)=>{let p=(n.value-l)/(a-l)*(r.value.maxFontSize-r.value.minFontSize)+r.value.minFontSize;p=isNaN(p)?r.value.minFontSize:p;const x=pe(n.name,p);return{...n,id:s.createUid(),fontSize:p,width:x.width,height:x.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[h]||t.value.customPalette[h%t.value.customPalette.length]||s.palette[h]||s.palette[h%s.palette.length]:t.value.style.chart.words.color}});N.value=ge(u,r.value.width,r.value.height).sort((n,h)=>h.fontSize-n.fontSize)}const A=e.computed(()=>{const o=N.value.map(l=>({name:l.name,color:l.color})),a=N.value.map(l=>l.value);return{head:o,body:a}});function re(){e.nextTick(()=>{const o=A.value.head.map((u,n)=>[[u.name],[A.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(a);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const V=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=A.value.head.map((n,h)=>{const p=s.dataLabel({p:t.value.table.td.prefix,v:A.value.body[h],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},p]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}}),E=e.ref(!1);function ye(o){E.value=o,B.value+=1}function be(){return N.value}function se(){c.value.showTable=!c.value.showTable}function ue(){c.value.showTooltip=!c.value.showTooltip}const M=e.ref(!1);function U(){M.value=!M.value}R({getData:be,generateCsv:re,generatePdf:le,generateImage:ae,toggleTable:se,toggleTooltip:ue,toggleAnnotator:U});const S=e.ref(null),P=e.ref(!1),D=e.ref(""),G=e.ref(null);function Ce(o){if(!c.value.showTooltip)return;S.value=o.id,G.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(P.value=!1,s.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(D.value=l,P.value=!0)}catch{console.warn("Custom format cannot be applied."),P.value=!1}if(!P.value){let l=`<svg viewBox="0 0 10 10" height="${t.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${o.color}"/></svg><span>${o.name}:</span><b>${(o.value||0).toFixed(t.value.style.chart.tooltip.roundingValue)}</b>`;D.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}b.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:f,id:`wordCloud_${$.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:a[3]||(a[3]=()=>e.unref(Y)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(Y)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Oe.PenAndPaper,{key:0,svgRef:e.unref(K),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:M.value,onClose:U},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:T,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(Te._sfc_main,{key:`title_${y.value}`,config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&C.value&&(e.unref(J)||e.unref(_))?(e.openBlock(),e.createBlock(ce.UserOptions,{ref:"details",key:`user_option_${B.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(te),isImaging:e.unref(oe),uid:$.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:E.value,titles:{...t.value.userOptions.buttonTitles},chartElement:f.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:c.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:M.value,onToggleFullscreen:ye,onGeneratePdf:e.unref(le),onGenerateCsv:re,onGenerateImage:e.unref(ae),onToggleTable:se,onToggleTooltip:ue,onToggleAnnotator:U,style:e.normalizeStyle({visibility:e.unref(J)?e.unref(_)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:u})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:u})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:u})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:u})),void 0,!0)]),key:"5"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:u})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:u})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createElementBlock("svg",{key:3,ref_key:"svgRef",ref:K,class:e.normalizeClass({"vue-data-ui-fullscreen--on":E.value,"vue-data-ui-fulscreen--off":!E.value}),xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode(Fe._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,Ge)):e.createCommentVNode("",!0),e.createElementVNode("g",{transform:`translate(${(r.value.width<=0?10:r.value.width)/2}, ${(r.value.height<=0?10:r.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,u)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:u,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,class:e.normalizeClass({animated:t.value.useCssAnimation,"word-selected":S.value&&S.value===l.id&&c.value.showTooltip,"word-not-selected":S.value&&S.value!==l.id&&c.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",onMouseover:n=>Ce(l),onMouseleave:a[0]||(a[0]=n=>{S.value=null,b.value=!1}),style:e.normalizeStyle(`animation-delay:${u*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,je))]))),256))],8,Le),e.renderSlot(o.$slots,"svg",{svg:{height:r.value.height,width:r.value.width}},void 0,!0)],10,De)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",He,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(te)||e.unref(oe)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(ze._sfc_main,{show:c.value.showTooltip&&b.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:f.value,content:D.value,isCustom:P.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...G.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...G.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),e.createElementVNode("div",{ref_key:"chartSlicer",ref:Z,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show&&W.value<ne.value?(e.openBlock(),e.createBlock(We,{key:0,value:w.value,"onUpdate:value":a[1]||(a[1]=l=>w.value=l),min:W.value,max:ne.value,textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,useResetSlot:t.value.style.chart.zoom.useResetSlot,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,source:t.value.style.chart.width,onReset:q},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","min","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"source",ref:F,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createBlock(Ne.default,{key:6,hideDetails:"",config:{open:c.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Pe.DataTable,{key:`table_${m.value}`,colNames:V.value.colNames,head:V.value.head,body:V.value.body,config:V.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>c.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Xe)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],44,Ue))}},Je=ve._export_sfc(Ye,[["__scopeId","data-v-117f5e65"]]);exports.default=Je;