vue-data-ui 2.4.0 → 2.4.2

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 (202) hide show
  1. package/README.md +56 -54
  2. package/dist/{Arrow-CbntjQjr.cjs → Arrow-DLTRnzcG.cjs} +1 -1
  3. package/dist/{Arrow-NcE21Ngm.js → Arrow-JuK2z9IB.js} +1 -1
  4. package/dist/BaseIcon-BGExhz6v.cjs +1 -0
  5. package/dist/{BaseIcon-BUTpMnXi.js → BaseIcon-rRli6Sfv.js} +8 -4
  6. package/dist/{DataTable-BwH-MU-S.cjs → DataTable-DJzhv96s.cjs} +1 -1
  7. package/dist/{DataTable-DAgyf9zN.js → DataTable-DTk7C4Pr.js} +2 -2
  8. package/dist/{Legend-DBhpIX2x.js → Legend-CYF2gpXG.js} +23 -17
  9. package/dist/Legend-YZ7Hz3o1.cjs +1 -0
  10. package/dist/{PackageVersion-wB6dCDZw.js → PackageVersion-CvCRsT5_.js} +1 -1
  11. package/dist/{PackageVersion-Djty0wb2.cjs → PackageVersion-DVZtsuy4.cjs} +1 -1
  12. package/dist/PenAndPaper-CyXm-yVL.cjs +1 -0
  13. package/dist/PenAndPaper-Jb0pLt3G.js +269 -0
  14. package/dist/{Shape-CQVJz33T.js → Shape-BpPn4eWR.js} +1 -1
  15. package/dist/{Shape-DQ0Hh2Gg.cjs → Shape-X2F-QV_B.cjs} +1 -1
  16. package/dist/{Slicer-CiSmaE0_.cjs → Slicer-CL0tP5a5.cjs} +1 -1
  17. package/dist/{Slicer-DXw23eOC.js → Slicer-CU7dRZR0.js} +2 -2
  18. package/dist/{Title-DlVZnHjs.js → Title-5VmBwT4i.js} +21 -17
  19. package/dist/Title-Co5jI5ed.cjs +1 -0
  20. package/dist/{Tooltip-DBzXz806.cjs → Tooltip-Bl6W8Zn7.cjs} +1 -1
  21. package/dist/{Tooltip-CveCRFgK.js → Tooltip-Cj4EF7v1.js} +1 -1
  22. package/dist/documentation/installation.md +10 -9
  23. package/dist/{index-B0CpCD8z.js → index-DnVHQ2xI.js} +1138 -907
  24. package/dist/index-FfZRtJ6A.cjs +9 -0
  25. package/dist/style.css +1 -1
  26. package/dist/types/vue-data-ui.d.cts +101 -20
  27. package/dist/types/vue-data-ui.d.ts +101 -20
  28. package/dist/{useNestedProp-DGWP4D-K.js → useNestedProp-Cox0K0Y5.js} +1 -1
  29. package/dist/{useNestedProp-iuDCMc2p.cjs → useNestedProp-q7byAAIJ.cjs} +1 -1
  30. package/dist/usePrinter-BCAFeO_J.cjs +1 -0
  31. package/dist/{usePrinter-Dr30K4cu.js → usePrinter-BEeNAqS5.js} +230 -185
  32. package/dist/vue-data-ui-CRLLZpt0.cjs +9 -0
  33. package/dist/vue-data-ui-W7nnqn0v.js +261 -0
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +52 -51
  36. package/dist/{vue-ui-3d-bar-C3hYrYTV.js → vue-ui-3d-bar-BwBrUabe.js} +414 -390
  37. package/dist/vue-ui-3d-bar-bD_n6qL_.cjs +19 -0
  38. package/dist/{vue-ui-accordion-CmENcGVW.js → vue-ui-accordion-DspS4q3f.js} +3 -3
  39. package/dist/{vue-ui-accordion-Deyo7jw7.cjs → vue-ui-accordion-xXgqfR2l.cjs} +1 -1
  40. package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +1 -0
  41. package/dist/{vue-ui-age-pyramid-C075Lvfe.js → vue-ui-age-pyramid-CxBvm3uM.js} +218 -194
  42. package/dist/{vue-ui-annotator-Bb6fUz4x.js → vue-ui-annotator-BOofWpzv.js} +1 -1
  43. package/dist/{vue-ui-annotator-DslXalSQ.cjs → vue-ui-annotator-C6T5_7ZV.cjs} +1 -1
  44. package/dist/vue-ui-bullet-ChaEgXvR.cjs +23 -0
  45. package/dist/vue-ui-bullet-DraC-oFu.js +433 -0
  46. package/dist/vue-ui-candlestick--hPCfMFH.cjs +2 -0
  47. package/dist/{vue-ui-candlestick-C4VEOmY_.js → vue-ui-candlestick-DQZ5eT1f.js} +267 -243
  48. package/dist/{vue-ui-carousel-table-Coq4gg_P.cjs → vue-ui-carousel-table-DpRQklDZ.cjs} +1 -1
  49. package/dist/{vue-ui-carousel-table-DZfMMpZ7.js → vue-ui-carousel-table-PdLjpH1p.js} +4 -4
  50. package/dist/{vue-ui-chestnut-CUnbj-Zb.js → vue-ui-chestnut-ByI_O5hB.js} +293 -269
  51. package/dist/vue-ui-chestnut-ae6x87wl.cjs +6 -0
  52. package/dist/{vue-ui-cursor-CtuPho-s.js → vue-ui-cursor-BM74l93B.js} +2 -2
  53. package/dist/{vue-ui-cursor-B9UvQwLp.cjs → vue-ui-cursor-BvadpA2m.cjs} +1 -1
  54. package/dist/{vue-ui-dashboard-8gQ1bGCn.js → vue-ui-dashboard-CoANBhAM.js} +2 -2
  55. package/dist/{vue-ui-dashboard-KMTRqXzR.cjs → vue-ui-dashboard-OP51Gs8I.cjs} +1 -1
  56. package/dist/{vue-ui-digits-DSMNN4z_.cjs → vue-ui-digits-C7jJJg9k.cjs} +1 -1
  57. package/dist/{vue-ui-digits-DuEyX8op.js → vue-ui-digits-DioaBnkB.js} +2 -2
  58. package/dist/vue-ui-donut-CplNylps.cjs +1 -0
  59. package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +1 -0
  60. package/dist/{vue-ui-donut-evolution-DbojarYN.js → vue-ui-donut-evolution-DAb1xzNd.js} +330 -306
  61. package/dist/{vue-ui-donut-0xdYBc41.js → vue-ui-donut-ldqSm_JV.js} +345 -321
  62. package/dist/{vue-ui-dumbbell-BxhWjCvR.js → vue-ui-dumbbell-Dg7PkiKJ.js} +265 -241
  63. package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +9 -0
  64. package/dist/vue-ui-flow-BPt35d5K.cjs +1 -0
  65. package/dist/vue-ui-flow-DKT7ZEnr.js +508 -0
  66. package/dist/vue-ui-galaxy-e06PkTmp.cjs +1 -0
  67. package/dist/{vue-ui-galaxy-BddgLpP-.js → vue-ui-galaxy-qAA9be3S.js} +193 -169
  68. package/dist/vue-ui-gauge-D8yVTIgP.js +518 -0
  69. package/dist/vue-ui-gauge-DiZVIU0D.cjs +1 -0
  70. package/dist/{vue-ui-gizmo-hXBWaB0c.js → vue-ui-gizmo-DC0uUwI3.js} +3 -3
  71. package/dist/{vue-ui-gizmo-DRASsqlp.cjs → vue-ui-gizmo-W6bTkg59.cjs} +1 -1
  72. package/dist/vue-ui-heatmap-CbZcv_2I.cjs +1 -0
  73. package/dist/{vue-ui-heatmap-B43q8UHu.js → vue-ui-heatmap-u1raIzBQ.js} +252 -228
  74. package/dist/{vue-ui-kpi-_GVnhxEd.js → vue-ui-kpi-C-iTxMD2.js} +3 -3
  75. package/dist/{vue-ui-kpi-BiJnqtGR.cjs → vue-ui-kpi-DY_2WF7U.cjs} +1 -1
  76. package/dist/{vue-ui-mini-loader-DVZtFcHw.cjs → vue-ui-mini-loader-Bfq2MNWu.cjs} +1 -1
  77. package/dist/{vue-ui-mini-loader-qvtu5jtI.js → vue-ui-mini-loader-C7x7S0hi.js} +2 -2
  78. package/dist/vue-ui-molecule-BFnOIxxs.js +798 -0
  79. package/dist/vue-ui-molecule-CbKMLrDT.cjs +1 -0
  80. package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +1 -0
  81. package/dist/{vue-ui-mood-radar-iZJ0B1Wf.js → vue-ui-mood-radar-CR1v5v2x.js} +263 -239
  82. package/dist/{vue-ui-nested-donuts-CovQfZ81.js → vue-ui-nested-donuts-DEiloQzq.js} +342 -318
  83. package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +17 -0
  84. package/dist/vue-ui-onion-CLvvu4Ku.cjs +5 -0
  85. package/dist/{vue-ui-onion-CJb2Pg0t.js → vue-ui-onion-LsEhBe4x.js} +226 -202
  86. package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +8 -0
  87. package/dist/{vue-ui-parallel-coordinate-plot-CUA_fFC3.js → vue-ui-parallel-coordinate-plot-CTlIjJqG.js} +243 -219
  88. package/dist/{vue-ui-quadrant-IAIp5IZq.js → vue-ui-quadrant-DKVVFufb.js} +350 -326
  89. package/dist/vue-ui-quadrant-OM5J1mG3.cjs +1 -0
  90. package/dist/{vue-ui-quick-chart-Bb2RQ6qI.js → vue-ui-quick-chart-8vJikiGH.js} +505 -481
  91. package/dist/vue-ui-quick-chart-gG5Ar8-i.cjs +15 -0
  92. package/dist/{vue-ui-radar-mIQMBRHx.js → vue-ui-radar-20QhOUer.js} +255 -231
  93. package/dist/vue-ui-radar-CAaHjDO7.cjs +1 -0
  94. package/dist/{vue-ui-rating-BGRWSTGr.cjs → vue-ui-rating-Bbzm5nUK.cjs} +1 -1
  95. package/dist/{vue-ui-rating-DcJb7_bV.js → vue-ui-rating-DRWJsve1.js} +2 -2
  96. package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +1 -0
  97. package/dist/vue-ui-relation-circle-I45_Sk5l.js +349 -0
  98. package/dist/vue-ui-rings-B9WQ7S5m.cjs +2 -0
  99. package/dist/vue-ui-rings-DG8GCi3y.js +593 -0
  100. package/dist/vue-ui-scatter-BZfg1YIN.cjs +1 -0
  101. package/dist/{vue-ui-scatter-DiQJtMz1.js → vue-ui-scatter-Hqu5-F2H.js} +369 -345
  102. package/dist/{vue-ui-screenshot-BdnW3WFN.cjs → vue-ui-screenshot-D8nxd5RV.cjs} +1 -1
  103. package/dist/{vue-ui-screenshot-QRt5bT48.js → vue-ui-screenshot-cjiqbtLK.js} +1 -1
  104. package/dist/{vue-ui-skeleton-fqwO2mHD.cjs → vue-ui-skeleton-Djv08J67.cjs} +1 -1
  105. package/dist/{vue-ui-skeleton-DEv_1TFa.js → vue-ui-skeleton-aZmkNzAe.js} +3 -3
  106. package/dist/{vue-ui-smiley-D-zRYR9g.cjs → vue-ui-smiley-B1TA19Hv.cjs} +1 -1
  107. package/dist/{vue-ui-smiley-BAr3XuJG.js → vue-ui-smiley-ChNvxygm.js} +2 -2
  108. package/dist/{vue-ui-spark-trend-Br0GTMx_.cjs → vue-ui-spark-trend-BqrPr63O.cjs} +1 -1
  109. package/dist/{vue-ui-spark-trend-CS6jl2aN.js → vue-ui-spark-trend-CQxELQcf.js} +5 -5
  110. package/dist/{vue-ui-sparkbar-tgfbnVYO.js → vue-ui-sparkbar-0ixbKZzf.js} +4 -4
  111. package/dist/{vue-ui-sparkbar-N8aFbuJv.cjs → vue-ui-sparkbar-CrTEPTU5.cjs} +1 -1
  112. package/dist/{vue-ui-sparkgauge--hgbxLQS.cjs → vue-ui-sparkgauge-BYxpe_WV.cjs} +1 -1
  113. package/dist/{vue-ui-sparkgauge-CqH25hj7.js → vue-ui-sparkgauge-pdYb7OwH.js} +4 -4
  114. package/dist/{vue-ui-sparkhistogram-vVRA6Z_l.cjs → vue-ui-sparkhistogram-D21XDUH2.cjs} +1 -1
  115. package/dist/{vue-ui-sparkhistogram-Cry2PFGH.js → vue-ui-sparkhistogram-N69h2q0U.js} +5 -5
  116. package/dist/{vue-ui-sparkline-DXwqMlzQ.js → vue-ui-sparkline-2BKYZMOb.js} +4 -4
  117. package/dist/{vue-ui-sparkline-BZir7JxD.cjs → vue-ui-sparkline-Cf4m-Fxo.cjs} +1 -1
  118. package/dist/{vue-ui-sparkstackbar-Dc6tZvej.cjs → vue-ui-sparkstackbar-dAS8XoJs.cjs} +1 -1
  119. package/dist/{vue-ui-sparkstackbar-CQjpberv.js → vue-ui-sparkstackbar-sh03cuOU.js} +4 -4
  120. package/dist/vue-ui-stackbar-B1si-1RM.js +938 -0
  121. package/dist/vue-ui-stackbar-Dy_saeSe.cjs +6 -0
  122. package/dist/{vue-ui-strip-plot-C8dme7tS.js → vue-ui-strip-plot-BYn-QrTQ.js} +274 -250
  123. package/dist/vue-ui-strip-plot-D53LABpZ.cjs +1 -0
  124. package/dist/{vue-ui-table-DGmUNjR_.cjs → vue-ui-table-Ce4waJaj.cjs} +1 -1
  125. package/dist/{vue-ui-table-BvbXppa1.js → vue-ui-table-DQORPCDJ.js} +1 -1
  126. package/dist/{vue-ui-table-heatmap-ccoLJyce.js → vue-ui-table-heatmap-Csp7Tx8N.js} +4 -4
  127. package/dist/{vue-ui-table-heatmap-Ch2UwsIw.cjs → vue-ui-table-heatmap-EqHt-O7Y.cjs} +1 -1
  128. package/dist/{vue-ui-table-sparkline-DT5a8gHs.cjs → vue-ui-table-sparkline-DONmVOMh.cjs} +1 -1
  129. package/dist/{vue-ui-table-sparkline-BZ8faxdR.js → vue-ui-table-sparkline-DdwVrfUj.js} +5 -5
  130. package/dist/vue-ui-thermometer-I6ZnlfAv.js +440 -0
  131. package/dist/vue-ui-thermometer-hQBkMa7u.cjs +1 -0
  132. package/dist/{vue-ui-timer-CNpKGbIg.cjs → vue-ui-timer-COOXcn14.cjs} +1 -1
  133. package/dist/{vue-ui-timer-DE_m5wxu.js → vue-ui-timer-pi1SazTU.js} +5 -5
  134. package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +1 -0
  135. package/dist/vue-ui-tiremarks-vdPQYiDp.js +303 -0
  136. package/dist/vue-ui-treemap-3FNUlKxL.js +816 -0
  137. package/dist/vue-ui-treemap-Cv0TSFQa.cjs +1 -0
  138. package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +4 -0
  139. package/dist/{vue-ui-vertical-bar-CVZI3v1Y.js → vue-ui-vertical-bar-DwxpB46q.js} +312 -288
  140. package/dist/vue-ui-waffle-CKM0QyJN.cjs +1 -0
  141. package/dist/vue-ui-waffle-XecHJIc-.js +782 -0
  142. package/dist/vue-ui-wheel-Bbih5sSL.js +282 -0
  143. package/dist/vue-ui-wheel-C0dJrzOJ.cjs +1 -0
  144. package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +1 -0
  145. package/dist/vue-ui-word-cloud-DnhXUn5x.js +598 -0
  146. package/dist/vue-ui-xy-BDpqVzAq.cjs +3 -0
  147. package/dist/{vue-ui-xy-D3TaTkPR.js → vue-ui-xy-CqlRuFMc.js} +775 -751
  148. package/dist/{vue-ui-xy-canvas-ClETpddw.js → vue-ui-xy-canvas-C8c2X5fk.js} +409 -385
  149. package/dist/vue-ui-xy-canvas-Cansjd3L.cjs +9 -0
  150. package/package.json +1 -1
  151. package/dist/BaseIcon-7IlvRUX2.cjs +0 -1
  152. package/dist/Legend-CHQgjBuK.cjs +0 -1
  153. package/dist/Title-BHmTg9iK.cjs +0 -1
  154. package/dist/index-Dfhvf8hT.cjs +0 -9
  155. package/dist/usePrinter-BQQasUin.cjs +0 -1
  156. package/dist/vue-data-ui-BdSFeW_X.js +0 -256
  157. package/dist/vue-data-ui-BgVPGbxq.cjs +0 -9
  158. package/dist/vue-ui-3d-bar-DhHuwXZ1.cjs +0 -19
  159. package/dist/vue-ui-age-pyramid-DaenyRp2.cjs +0 -1
  160. package/dist/vue-ui-candlestick-CnVzd826.cjs +0 -2
  161. package/dist/vue-ui-chestnut-CLnJ0jmo.cjs +0 -6
  162. package/dist/vue-ui-donut-C4ek9m3R.cjs +0 -1
  163. package/dist/vue-ui-donut-evolution-B4TkwvNq.cjs +0 -1
  164. package/dist/vue-ui-dumbbell-Cn3spRSv.cjs +0 -9
  165. package/dist/vue-ui-flow-D00VdtGU.cjs +0 -1
  166. package/dist/vue-ui-flow-DreN8go4.js +0 -484
  167. package/dist/vue-ui-galaxy-DVN-S67V.cjs +0 -1
  168. package/dist/vue-ui-gauge-DYZYFzHP.cjs +0 -1
  169. package/dist/vue-ui-gauge-DoTctAHq.js +0 -494
  170. package/dist/vue-ui-heatmap-ldCySJFf.cjs +0 -1
  171. package/dist/vue-ui-molecule-DP9jhODZ.cjs +0 -1
  172. package/dist/vue-ui-molecule-Dpu7Xmu5.js +0 -774
  173. package/dist/vue-ui-mood-radar-BR0INhYL.cjs +0 -1
  174. package/dist/vue-ui-nested-donuts-CwIsGnyH.cjs +0 -17
  175. package/dist/vue-ui-onion-DjEChSmi.cjs +0 -5
  176. package/dist/vue-ui-parallel-coordinate-plot-B8Kl6AMk.cjs +0 -8
  177. package/dist/vue-ui-quadrant-CmdbW8yZ.cjs +0 -1
  178. package/dist/vue-ui-quick-chart-DcEk6Ho7.cjs +0 -15
  179. package/dist/vue-ui-radar-TjgO9_LA.cjs +0 -1
  180. package/dist/vue-ui-relation-circle-f0fKvSSw.js +0 -325
  181. package/dist/vue-ui-relation-circle-x4sKnxbi.cjs +0 -1
  182. package/dist/vue-ui-rings-B3mUyyQ9.cjs +0 -2
  183. package/dist/vue-ui-rings-M1PUv5Wu.js +0 -569
  184. package/dist/vue-ui-scatter-DF_nobsG.cjs +0 -1
  185. package/dist/vue-ui-stackbar-BF0M1KJf.js +0 -915
  186. package/dist/vue-ui-stackbar-BGmTwxvv.cjs +0 -6
  187. package/dist/vue-ui-strip-plot-DT9Od_To.cjs +0 -1
  188. package/dist/vue-ui-thermometer-BOs1_H4X.js +0 -416
  189. package/dist/vue-ui-thermometer-Biv2CIsy.cjs +0 -1
  190. package/dist/vue-ui-tiremarks-CTMS_E0z.js +0 -279
  191. package/dist/vue-ui-tiremarks-YU4wuZl3.cjs +0 -1
  192. package/dist/vue-ui-treemap-5Dm82baA.js +0 -792
  193. package/dist/vue-ui-treemap-C0E1_DGA.cjs +0 -1
  194. package/dist/vue-ui-vertical-bar-CVZHDENz.cjs +0 -4
  195. package/dist/vue-ui-waffle-Bf4epEaH.js +0 -758
  196. package/dist/vue-ui-waffle-DD09_Fdb.cjs +0 -1
  197. package/dist/vue-ui-wheel-BybAQ0bR.cjs +0 -1
  198. package/dist/vue-ui-wheel-DMvZZCzi.js +0 -258
  199. package/dist/vue-ui-word-cloud-B8hdGDYI.js +0 -574
  200. package/dist/vue-ui-word-cloud-MQ0kgdPw.cjs +0 -1
  201. package/dist/vue-ui-xy-B4C0WR56.cjs +0 -3
  202. package/dist/vue-ui-xy-canvas-qbn0PHMN.cjs +0 -9
@@ -1,574 +0,0 @@
1
- import { useCssVars as Ae, computed as p, openBlock as u, createElementBlock as f, createVNode as ee, renderSlot as m, createElementVNode as $, normalizeStyle as te, pushScopeId as We, popScopeId as Re, ref as n, watch as Z, onMounted as Be, onBeforeUnmount as De, createBlock as A, createCommentVNode as z, unref as k, 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, _ as Xe, v as je, c as ge, t as Ye, 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-B0CpCD8z.js";
3
- import { _ as ot } from "./Title-DlVZnHjs.js";
4
- import { u as at, U as lt } from "./usePrinter-Dr30K4cu.js";
5
- import { d as st, t as nt, u as rt } from "./useResponsive-NZB-WLRF.js";
6
- import ut from "./vue-ui-accordion-CmENcGVW.js";
7
- import { D as it } from "./DataTable-DAgyf9zN.js";
8
- import ct from "./BaseIcon-BUTpMnXi.js";
9
- import { _ as Ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- import { u as be } from "./useNestedProp-DGWP4D-K.js";
11
- import { _ as dt } from "./PackageVersion-wB6dCDZw.js";
12
- import { _ as vt } from "./Tooltip-CveCRFgK.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__ */ $("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": x.value
72
- }));
73
- const X = p(() => s.inputColor), x = 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, S = (s.value - s.min) / w * 100;
79
- return {
80
- left: `${g}%`,
81
- width: `${S - 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
- ee(ct, {
99
- name: "refresh",
100
- stroke: i.textColor
101
- }, null, 8, ["stroke"])
102
- ]))
103
- ])) : (u(), f("div", pt)),
104
- $("div", gt, [
105
- yt,
106
- $("div", {
107
- class: "range-highlight",
108
- style: te(C.value)
109
- }, null, 4),
110
- $("input", {
111
- type: "range",
112
- min: i.min,
113
- max: i.max,
114
- value: Number(i.value),
115
- onInput: g[0] || (g[0] = (S) => B("update:value", Number(S.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(), x = 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: je(t.value)
150
- }))), P = n(ge()), I = n(0), C = n(null), w = n(null), g = n(0), S = n(0), j = n(!1), e = p({
151
- get: () => oe(),
152
- set: (t) => t
153
- });
154
- function oe() {
155
- const t = be({
156
- userConfig: s.config,
157
- defaultConfig: X
158
- });
159
- return t.theme ? {
160
- ...be({
161
- userConfig: Ye.vue_ui_word_cloud[t.theme] || s.config,
162
- defaultConfig: t
163
- }),
164
- customPalette: qe[t.theme] || L
165
- } : t;
166
- }
167
- Z(() => s.config, (t) => {
168
- e.value = oe(), le(), g.value += 1, S.value += 1, Y();
169
- }, { deep: !0 });
170
- const ae = n(null), T = 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 && ae.value
180
- });
181
- r.value.width = t, r.value.height = a, pe(q);
182
- });
183
- Z(() => T.value, () => {
184
- ke();
185
- });
186
- const ke = st(() => {
187
- q();
188
- }, 10);
189
- function Y() {
190
- T.value = ie.value;
191
- }
192
- const D = n(null);
193
- Be(() => {
194
- le(), Y();
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
- x.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 K = !1;
238
- for (let G = 0; G < Math.max(a, o) / 2 && !K; G += e.value.style.chart.words.packingWeight)
239
- for (let Q = 0; Q < 360 && !K; Q += e.value.style.chart.words.packingWeight) {
240
- const he = Q * 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), K = !0);
242
- }
243
- }), c;
244
- }
245
- const O = n([]);
246
- Z(() => s.dataset, q, { 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 q() {
249
- const t = [...b.value].filter((l) => l.value >= T.value).map((l) => l.value), a = Math.max(...t), o = Math.min(...t), c = [...b.value].filter((l) => l.value >= T.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), H = n(""), J = n(null);
334
- function Ne(t) {
335
- if (!d.value.showTooltip) return;
336
- F.value = t.id, J.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" && (H.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
- H.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${o}</div>`;
351
- }
352
- j.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: te(`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 && x.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: k(se),
385
- isImaging: k(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: k(re),
400
- onGenerateCsv: ce,
401
- onGenerateImage: k(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
- x.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: k(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
- ee(dt),
449
- $("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, j.value = !1;
467
- }),
468
- style: te(`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: k(se) || k(ne) })), void 0, !0)
478
- ])) : z("", !0),
479
- ee(vt, {
480
- show: d.value.showTooltip && j.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: H.value,
492
- isCustom: M.value
493
- }, {
494
- "tooltip-before": h(() => [
495
- m(t.$slots, "tooltip-before", W(R({ ...J.value })), void 0, !0)
496
- ]),
497
- "tooltip-after": h(() => [
498
- m(t.$slots, "tooltip-after", W(R({ ...J.value })), void 0, !0)
499
- ]),
500
- _: 3
501
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
502
- $("div", {
503
- ref_key: "chartSlicer",
504
- ref: ae,
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: T.value,
511
- "onUpdate:value": a[1] || (a[1] = (o) => T.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: Y
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
- x.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_${S.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
- $("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-7f4cd511"]]);
572
- export {
573
- Et as default
574
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-Dfhvf8hT.cjs"),ye=require("./Title-BHmTg9iK.cjs"),te=require("./usePrinter-BQQasUin.cjs"),D=require("./useResponsive-B3TrDDIG.cjs"),be=require("./vue-ui-accordion-Deyo7jw7.cjs"),Ce=require("./DataTable-BwH-MU-S.cjs"),ke=require("./BaseIcon-7IlvRUX2.cjs"),le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),oe=require("./useNestedProp-iuDCMc2p.cjs"),we=require("./PackageVersion-Djty0wb2.cjs"),xe=require("./Tooltip-DBzXz806.cjs"),Se=i=>(e.pushScopeId("data-v-3fd7d274"),i=i(),e.popScopeId(),i),$e={"data-html2canvas-ignore":""},Te={key:0,class:"reset-wrapper"},Ne={key:1,class:"reset-wrapper"},Fe={class:"mono-slicer"},Pe=Se(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Be=["min","max","value"],ze={__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(i,{emit:F}){const r=i;e.useCssVars(g=>({"90ad3208":V.value,"4f9eef70":S.value,"6e07ae3e":p.value,"2fd430a0":i.selectColor,"6b8169a4":y.value}));const V=e.computed(()=>r.inputColor),y=e.computed(()=>r.background),p=e.computed(()=>`${r.selectColor}33`),S=e.computed(()=>r.borderColor);function $(){F("reset")}const f=e.computed(()=>{const g=r.max-r.min,h=0,b=(r.value-r.min)/g*100;return{left:`${h}%`,width:`${b-h}%`,background:r.selectColor}});return(g,h)=>(e.openBlock(),e.createElementBlock("div",$e,[i.value!==i.source?(e.openBlock(),e.createElementBlock("div",Te,[i.useResetSlot?e.renderSlot(g.$slots,"reset-action",{key:1,reset:$},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:$},[e.createVNode(ke.default,{name:"refresh",stroke:i.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",Ne)),e.createElementVNode("div",Fe,[Pe,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(f.value)},null,4),e.createElementVNode("input",{type:"range",min:i.min,max:i.max,value:Number(i.value),onInput:h[0]||(h[0]=b=>F("update:value",Number(b.target.value)))},null,40,Be)])]))}},_e=le._export_sfc(ze,[["__scopeId","data-v-3fd7d274"]]),Ee=["id"],Ve=["xmlns","viewBox"],Ie=["transform"],Oe=["fill","font-weight","x","y","font-size","transform","onMouseover"],Me={key:3,class:"vue-data-ui-watermark"},Ae=["innerHTML"],Re={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(i,{expose:F}){const r=i,{vue_ui_word_cloud:V}=s.useConfig(),y=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),p=e.ref(typeof r.dataset=="string"?s.createWordCloudDatasetFromPlainText(r.dataset):r.dataset.map(o=>({...o,value:s.checkNaN(o.value)}))),S=e.ref(s.createUid()),$=e.ref(0),f=e.ref(null),g=e.ref(null),h=e.ref(0),b=e.ref(0),I=e.ref(!1),t=e.computed({get:()=>U(),set:o=>o});function U(){const o=oe.useNestedProp({userConfig:r.config,defaultConfig:V});return o.theme?{...oe.useNestedProp({userConfig:s.themes.vue_ui_word_cloud[o.theme]||r.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>r.config,o=>{t.value=U(),L(),h.value+=1,b.value+=1,O()},{deep:!0});const G=e.ref(null),C=e.ref(0),u=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}),ae=D.throttle(()=>{const{width:o,height:a}=D.useResponsive({chart:f.value,title:t.value.style.chart.title.text?g.value:null,slicer:t.value.style.chart.zoom.show&&G.value});u.value.width=o,u.value.height=a,e.nextTick(M)});e.watch(()=>C.value,()=>{ne()});const ne=D.debounce(()=>{M()},10);function O(){C.value=J.value}const P=e.ref(null);e.onMounted(()=>{L(),O()});function L(){s.objectIsEmpty(r.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):p.value.forEach((o,a)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{y.value=!1,s.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(P.value=new ResizeObserver(ae),P.value.observe(f.value.parentNode))}e.onBeforeUnmount(()=>{P.value&&P.value.disconnect()});const{isPrinting:j,isImaging:X,generatePdf:H,generateImage:Y}=te.usePrinter({elementId:`wordCloud_${S.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),d=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function re(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 se(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 ue(o,a,l){const c=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,w=0;return o.forEach(x=>{let W=!1;for(let E=0;E<Math.max(a,l)/2&&!W;E+=t.value.style.chart.words.packingWeight)for(let q=0;q<360&&!W;q+=t.value.style.chart.words.packingWeight){const ee=q*Math.PI/180,he=v+E*Math.cos(ee)-x.width/2,me=w+E*Math.sin(ee)-x.height/2,m={...x,x:he,y:me},pe=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,fe=c.some(ge=>se(m,ge));pe&&!fe&&(c.push(m),W=!0)}}),c}const T=e.ref([]);e.watch(()=>r.dataset,M,{immediate:!0});const J=e.computed(()=>Math.min(...p.value.map(o=>o.value))),ie=e.computed(()=>Math.max(...p.value.map(o=>o.value)));function M(){const o=[...p.value].filter(n=>n.value>=C.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),c=[...p.value].filter(n=>n.value>=C.value).map((n,v)=>{const w=(n.value-l)/(a-l)*(u.value.maxFontSize-u.value.minFontSize)+u.value.minFontSize,x=re(n.name,w);return{...n,id:s.createUid(),fontSize:w,width:x.width,height:x.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[v]||t.value.customPalette[v%t.value.customPalette.length]||s.palette[v]||s.palette[v%s.palette.length]:t.value.style.chart.words.color}});T.value=ue(c,u.value.width,u.value.height).sort((n,v)=>v.fontSize-n.fontSize)}const B=e.computed(()=>{const o=T.value.map(l=>({name:l.name,color:l.color})),a=T.value.map(l=>l.value);return{head:o,body:a}});function K(){e.nextTick(()=>{const o=B.value.head.map((c,n)=>[[c.name],[B.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 z=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=B.value.head.map((n,v)=>{const w=s.dataLabel({p:t.value.table.td.prefix,v:B.value.body[v],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},w]}),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.ref(!1);function ce(o){_.value=o,$.value+=1}function de(){return T.value}function Q(){d.value.showTable=!d.value.showTable}function Z(){d.value.showTooltip=!d.value.showTooltip}F({getData:de,generateCsv:K,generatePdf:H,generateImage:Y,toggleTable:Q,toggleTooltip:Z});const k=e.ref(null),N=e.ref(!1),A=e.ref(""),R=e.ref(null);function ve(o){if(!d.value.showTooltip)return;k.value=o.id,R.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(N.value=!1,s.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(A.value=l,N.value=!0)}catch{console.warn("Custom format cannot be applied."),N.value=!1}if(!N.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>`;A.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}I.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:f,id:`wordCloud_${S.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:g,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ye._sfc_main,{key:`title_${h.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&&y.value?(e.openBlock(),e.createBlock(te.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(j),isImaging:e.unref(X),uid:S.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:_.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:d.value.showTooltip,onToggleFullscreen:ce,onGeneratePdf:e.unref(H),onGenerateCsv:K,onGenerateImage:e.unref(Y),onToggleTable:Q,onToggleTooltip:Z},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:c})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:c})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:2,class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${u.value.width<=0?10:u.value.width} ${u.value.height<=0?10:u.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode(we._sfc_main),e.createElementVNode("g",{transform:`translate(${(u.value.width<=0?10:u.value.width)/2}, ${(u.value.height<=0?10:u.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(l,c)=>(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:c,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":k.value&&k.value===l.id&&d.value.showTooltip,"word-not-selected":k.value&&k.value!==l.id&&d.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"middle",onMouseover:n=>ve(l),onMouseleave:a[0]||(a[0]=n=>{k.value=null,I.value=!1}),style:e.normalizeStyle(`animation-delay:${c*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,Oe))]))),256))],8,Ie),e.renderSlot(o.$slots,"svg",{svg:{height:u.value.height,width:u.value.width}},void 0,!0)],10,Ve)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Me,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(j)||e.unref(X)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(xe._sfc_main,{show:d.value.showTooltip&&I.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:A.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...R.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...R.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:G,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(_e,{key:0,value:C.value,"onUpdate:value":a[1]||(a[1]=l=>C.value=l),min:J.value,max:ie.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:O},{"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),y.value?(e.openBlock(),e.createBlock(be.default,{key:4,hideDetails:"",config:{open:d.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(Ce.DataTable,{key:`table_${b.value}`,colNames:z.value.colNames,head:z.value.head,body:z.value.body,config:z.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=>d.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Ae)]),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)],12,Ee))}},We=le._export_sfc(Re,[["__scopeId","data-v-7f4cd511"]]);exports.default=We;