vue-data-ui 2.10.11 → 2.11.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 (174) hide show
  1. package/README.md +7 -1
  2. package/dist/{Arrow-B0YRTzCj.js → Arrow-BSsIs5Aj.js} +1 -1
  3. package/dist/{Arrow-C6ETniRR.cjs → Arrow-BfdnOsct.cjs} +1 -1
  4. package/dist/{BaseIcon-V0HD2AAD.js → BaseIcon-BPehVcsN.js} +4 -3
  5. package/dist/{BaseIcon-CObkWSlF.cjs → BaseIcon-dtfVrHa7.cjs} +1 -1
  6. package/dist/{ColorPicker-BMSFl1XZ.js → ColorPicker-ByaQGf5i.js} +3 -3
  7. package/dist/{ColorPicker-Czm9Mx_k.cjs → ColorPicker-C-nhrZ-J.cjs} +1 -1
  8. package/dist/{DataTable-CVSajw4G.js → DataTable-BdekL1Hc.js} +55 -53
  9. package/dist/DataTable-pT39kn0W.cjs +1 -0
  10. package/dist/{Legend-DUZ-tBhF.cjs → Legend-C8PTNFsH.cjs} +1 -1
  11. package/dist/{Legend-B61dtd8W.js → Legend-HckkoJBL.js} +2 -2
  12. package/dist/PackageVersion-B6nxekEz.cjs +1 -0
  13. package/dist/{PackageVersion-DqsC6J9R.js → PackageVersion-BPCzY_N5.js} +1 -1
  14. package/dist/{PenAndPaper-Bqjmruhh.js → PenAndPaper-B3KDT2of.js} +3 -3
  15. package/dist/{PenAndPaper-CU0ABvzv.cjs → PenAndPaper-BC1d2zL5.cjs} +1 -1
  16. package/dist/{Shape-CWSam3QO.js → Shape-B0OqBXWl.js} +1 -1
  17. package/dist/{Shape-x9QWqySR.cjs → Shape-Cr-Qt6IO.cjs} +1 -1
  18. package/dist/{Slicer-VF0Mi4Gp.cjs → Slicer-BWr1nt8v.cjs} +1 -1
  19. package/dist/{Slicer-BbMNT2AI.js → Slicer-BXBqgQau.js} +3 -3
  20. package/dist/{Title-CxubvuEh.js → Title-Cq5kGGhS.js} +1 -1
  21. package/dist/{Title-LLvOAGEi.cjs → Title-GpO-QNhg.cjs} +1 -1
  22. package/dist/{Tooltip-C0W6IWVK.js → Tooltip-CxzDtoXn.js} +1 -1
  23. package/dist/{Tooltip-B1xW8AQT.cjs → Tooltip-eL97y6Ym.cjs} +1 -1
  24. package/dist/documentation/installation.md +1 -0
  25. package/dist/{dom-to-png-CNF-s1oi.cjs → dom-to-png-BeN7LHfC.cjs} +1 -1
  26. package/dist/{dom-to-png-D2P_vWEM.js → dom-to-png-G_nLlvER.js} +1 -1
  27. package/dist/{img-BDamDFQb.cjs → img-08K-Su3g.cjs} +1 -1
  28. package/dist/{img-DacIcr83.js → img-BzMFujbd.js} +1 -1
  29. package/dist/{index-CO-5OgQA.js → index-BMcwUsiG.js} +541 -457
  30. package/dist/{index-B7zOq_yO.cjs → index-CG-euAJp.cjs} +5 -5
  31. package/dist/{pdf-DflC6mtT.js → pdf-BJNBeUWV.js} +1 -1
  32. package/dist/{pdf-D6wHFpvv.cjs → pdf-achyloML.cjs} +1 -1
  33. package/dist/style.css +1 -1
  34. package/dist/types/vue-data-ui.d.cts +92 -5
  35. package/dist/types/vue-data-ui.d.ts +92 -5
  36. package/dist/{useNestedProp-DUH233CH.cjs → useNestedProp-DYDoE86w.cjs} +1 -1
  37. package/dist/{useNestedProp-D8sa_wYF.js → useNestedProp-DwQWwt5e.js} +1 -1
  38. package/dist/{usePrinter-u4erwqXt.cjs → usePrinter-BBqldIVF.cjs} +1 -1
  39. package/dist/{usePrinter-DldU0tBx.js → usePrinter-BpCNa5RW.js} +3 -3
  40. package/dist/{useResponsive-DQmBAoBf.cjs → useResponsive-BBkmXXaa.cjs} +1 -1
  41. package/dist/{useResponsive-Cw4oZ8sQ.js → useResponsive-JZ9xq-JV.js} +4 -1
  42. package/dist/vue-data-ui-BTz28Upr.cjs +9 -0
  43. package/dist/{vue-data-ui-DaG_fJyV.js → vue-data-ui-DXciuF6V.js} +115 -107
  44. package/dist/vue-data-ui.cjs +1 -1
  45. package/dist/vue-data-ui.js +60 -59
  46. package/dist/{vue-ui-3d-bar-1L_FJakQ.cjs → vue-ui-3d-bar-Cv0XQSLU.cjs} +1 -1
  47. package/dist/{vue-ui-3d-bar-CKaPvMis.js → vue-ui-3d-bar-D-x0k_IG.js} +9 -9
  48. package/dist/{vue-ui-accordion-RRHvINsj.js → vue-ui-accordion-DKw3ZQgh.js} +3 -3
  49. package/dist/{vue-ui-accordion-DkOSgEPp.cjs → vue-ui-accordion-dJGHfrMl.cjs} +1 -1
  50. package/dist/{vue-ui-age-pyramid-BsfpBP5o.js → vue-ui-age-pyramid-BKOh2L3c.js} +11 -11
  51. package/dist/{vue-ui-age-pyramid-BX5nAmcR.cjs → vue-ui-age-pyramid-DzQ9EYPB.cjs} +1 -1
  52. package/dist/{vue-ui-annotator-CSSRY4KB.js → vue-ui-annotator-BSGf2Uh1.js} +2 -2
  53. package/dist/{vue-ui-annotator-BCfRHpTL.cjs → vue-ui-annotator-DJDY5xOf.cjs} +1 -1
  54. package/dist/{vue-ui-bullet-BuoFM_Qt.cjs → vue-ui-bullet-BHaeMobd.cjs} +1 -1
  55. package/dist/{vue-ui-bullet-wcXiBQsu.js → vue-ui-bullet-CJLZA5Lf.js} +8 -8
  56. package/dist/{vue-ui-candlestick-DLPBk-z0.js → vue-ui-candlestick-BLqrtK2S.js} +12 -12
  57. package/dist/{vue-ui-candlestick-D_UWn-gv.cjs → vue-ui-candlestick-D5aSctEq.cjs} +1 -1
  58. package/dist/{vue-ui-carousel-table-B-FxYow7.js → vue-ui-carousel-table-CvDic9rq.js} +4 -4
  59. package/dist/{vue-ui-carousel-table-DZWUAetO.cjs → vue-ui-carousel-table-DoQSiBlh.cjs} +1 -1
  60. package/dist/{vue-ui-chestnut-Ds2IXobn.cjs → vue-ui-chestnut-BW9_1uRo.cjs} +1 -1
  61. package/dist/{vue-ui-chestnut-D_GtQRUL.js → vue-ui-chestnut-Co3ZtHYQ.js} +8 -8
  62. package/dist/vue-ui-chord-CUREQYhU.cjs +16 -0
  63. package/dist/vue-ui-chord-XU2pSfEx.js +924 -0
  64. package/dist/{vue-ui-circle-pack-DZjwCJfn.cjs → vue-ui-circle-pack-Bdtr6z4Z.cjs} +1 -1
  65. package/dist/{vue-ui-circle-pack-IFKy_EXs.js → vue-ui-circle-pack-DpbWAZFC.js} +10 -10
  66. package/dist/{vue-ui-cursor-CFcWzQ_a.cjs → vue-ui-cursor-BAMt5dcz.cjs} +1 -1
  67. package/dist/{vue-ui-cursor-CpXWkh96.js → vue-ui-cursor-CuvyoiLa.js} +2 -2
  68. package/dist/{vue-ui-dashboard-BMVLKe5Z.cjs → vue-ui-dashboard-Bvrpw4EQ.cjs} +1 -1
  69. package/dist/{vue-ui-dashboard-CLULzCgo.js → vue-ui-dashboard-_LJuvqRE.js} +62 -62
  70. package/dist/{vue-ui-digits-VMbRXMfP.cjs → vue-ui-digits-CGzSArOS.cjs} +1 -1
  71. package/dist/{vue-ui-digits-B3J16TA3.js → vue-ui-digits-CeLZoNoA.js} +2 -2
  72. package/dist/{vue-ui-donut-BjGbzLsC.cjs → vue-ui-donut-BV_QLVp2.cjs} +1 -1
  73. package/dist/{vue-ui-donut-DUAbkhZV.js → vue-ui-donut-BegwljuG.js} +13 -13
  74. package/dist/{vue-ui-donut-evolution-BlMjAI3c.js → vue-ui-donut-evolution-CQ-1_Xak.js} +11 -11
  75. package/dist/{vue-ui-donut-evolution-B2MMB7lY.cjs → vue-ui-donut-evolution-euIDGiH3.cjs} +1 -1
  76. package/dist/{vue-ui-dumbbell-DgizrVYM.cjs → vue-ui-dumbbell-BO0h5wGp.cjs} +1 -1
  77. package/dist/{vue-ui-dumbbell-B_88Pzkq.js → vue-ui-dumbbell-CPylAaR8.js} +11 -11
  78. package/dist/{vue-ui-flow-CGYd2Iko.js → vue-ui-flow-B8fyDK8A.js} +11 -11
  79. package/dist/{vue-ui-flow-v5zjc5i3.cjs → vue-ui-flow-DWiA9yFS.cjs} +1 -1
  80. package/dist/{vue-ui-funnel-D8Ql3Fu9.js → vue-ui-funnel-BAa1OwMy.js} +10 -10
  81. package/dist/{vue-ui-funnel-AOnxjmTY.cjs → vue-ui-funnel-yRS_OJcF.cjs} +1 -1
  82. package/dist/{vue-ui-galaxy-C5XKP863.js → vue-ui-galaxy-DEZ-rfXE.js} +11 -11
  83. package/dist/{vue-ui-galaxy-qIl1Sp2I.cjs → vue-ui-galaxy-DF41DbY7.cjs} +1 -1
  84. package/dist/{vue-ui-gauge-BzmlwkZO.cjs → vue-ui-gauge-CCGMpnvM.cjs} +1 -1
  85. package/dist/{vue-ui-gauge-CnS0ZVac.js → vue-ui-gauge-k3ejBVZj.js} +8 -8
  86. package/dist/{vue-ui-gizmo-oMF4Uxgv.cjs → vue-ui-gizmo-DGRDcoNW.cjs} +1 -1
  87. package/dist/{vue-ui-gizmo-w7f-RuqD.js → vue-ui-gizmo-uSaL0tgk.js} +3 -3
  88. package/dist/{vue-ui-heatmap-DdbtuK1j.js → vue-ui-heatmap-WgeuA6rb.js} +10 -10
  89. package/dist/{vue-ui-heatmap-CjUYm6Y8.cjs → vue-ui-heatmap-dKn60iwF.cjs} +1 -1
  90. package/dist/{vue-ui-history-plot-CPEbWJv-.cjs → vue-ui-history-plot-Dnb4txKX.cjs} +1 -1
  91. package/dist/{vue-ui-history-plot-DJ5eSSra.js → vue-ui-history-plot-jBlXPR4I.js} +12 -12
  92. package/dist/{vue-ui-kpi-BBpWvss7.cjs → vue-ui-kpi-C13Zgi4k.cjs} +1 -1
  93. package/dist/{vue-ui-kpi-T-hxtGRX.js → vue-ui-kpi-N3ugHMNs.js} +3 -3
  94. package/dist/{vue-ui-mini-loader-CnEXcdzr.cjs → vue-ui-mini-loader-BnblpH8s.cjs} +1 -1
  95. package/dist/{vue-ui-mini-loader-BUdcns7l.js → vue-ui-mini-loader-BukHpIuC.js} +2 -2
  96. package/dist/{vue-ui-molecule-9zI34I22.js → vue-ui-molecule-DQADG59C.js} +11 -11
  97. package/dist/{vue-ui-molecule-CXda1TRy.cjs → vue-ui-molecule-zkjb68lX.cjs} +1 -1
  98. package/dist/{vue-ui-mood-radar-3FsJtJ1q.js → vue-ui-mood-radar-BdpZWnM1.js} +11 -11
  99. package/dist/{vue-ui-mood-radar-DCz7WxHl.cjs → vue-ui-mood-radar-oO1NjJsj.cjs} +1 -1
  100. package/dist/{vue-ui-nested-donuts-D5-RAGOC.js → vue-ui-nested-donuts-6EYydl-l.js} +12 -12
  101. package/dist/{vue-ui-nested-donuts-CQHTFClA.cjs → vue-ui-nested-donuts-8PBCRUKI.cjs} +1 -1
  102. package/dist/{vue-ui-onion-C3tsgeYq.cjs → vue-ui-onion-D0Y-pJox.cjs} +1 -1
  103. package/dist/{vue-ui-onion-DyNY3aLe.js → vue-ui-onion-Dqfii-y3.js} +12 -12
  104. package/dist/{vue-ui-parallel-coordinate-plot-tnKZr6bC.cjs → vue-ui-parallel-coordinate-plot-cETB0SSp.cjs} +1 -1
  105. package/dist/{vue-ui-parallel-coordinate-plot-D3C5xDkx.js → vue-ui-parallel-coordinate-plot-yUVuNHbG.js} +13 -13
  106. package/dist/{vue-ui-quadrant-Oyf18Bj4.js → vue-ui-quadrant-Bk24QzXW.js} +13 -13
  107. package/dist/{vue-ui-quadrant-CF7YSzrp.cjs → vue-ui-quadrant-C2Z9igq-.cjs} +1 -1
  108. package/dist/{vue-ui-quick-chart-Y8-adLxE.cjs → vue-ui-quick-chart-BNYO7nMz.cjs} +1 -1
  109. package/dist/{vue-ui-quick-chart-TbLTi-d3.js → vue-ui-quick-chart-BTBzFVVt.js} +10 -10
  110. package/dist/{vue-ui-radar-BvNWx4a8.cjs → vue-ui-radar-DpJ6BjWE.cjs} +1 -1
  111. package/dist/{vue-ui-radar-BfHQxjpG.js → vue-ui-radar-d5WGxBWb.js} +13 -13
  112. package/dist/{vue-ui-rating-BDM0NHP6.js → vue-ui-rating-DHP9cn7v.js} +2 -2
  113. package/dist/{vue-ui-rating-DitReQ9n.cjs → vue-ui-rating-DlpuX8_4.cjs} +1 -1
  114. package/dist/{vue-ui-relation-circle-DcZyVpqG.cjs → vue-ui-relation-circle-C9r2L_By.cjs} +1 -1
  115. package/dist/{vue-ui-relation-circle-DpwaksSx.js → vue-ui-relation-circle-DFFnj0G-.js} +8 -8
  116. package/dist/{vue-ui-ridgeline-BXEg60Vj.js → vue-ui-ridgeline-B6SmiN8e.js} +13 -13
  117. package/dist/{vue-ui-ridgeline-DgzMstgJ.cjs → vue-ui-ridgeline-CWcW0CKH.cjs} +1 -1
  118. package/dist/{vue-ui-rings-Bsvdt8jo.js → vue-ui-rings-07YzKS3V.js} +13 -13
  119. package/dist/{vue-ui-rings-DqF707hp.cjs → vue-ui-rings-BZ6huPcE.cjs} +1 -1
  120. package/dist/{vue-ui-scatter-D9sIS4Dp.cjs → vue-ui-scatter-DYRw6p9i.cjs} +1 -1
  121. package/dist/{vue-ui-scatter-qQ-795VY.js → vue-ui-scatter-DZZtUBuf.js} +13 -13
  122. package/dist/{vue-ui-skeleton-BeEBd4CC.js → vue-ui-skeleton-BoZyBfQF.js} +503 -467
  123. package/dist/vue-ui-skeleton-LYOlEoA_.cjs +41 -0
  124. package/dist/{vue-ui-smiley-B3JFedE5.cjs → vue-ui-smiley-C9Au0iXl.cjs} +1 -1
  125. package/dist/{vue-ui-smiley-Bba04Gln.js → vue-ui-smiley-D3A8OqM8.js} +2 -2
  126. package/dist/{vue-ui-spark-trend-DB2vKJ0m.js → vue-ui-spark-trend-BfR_RtZy.js} +5 -5
  127. package/dist/{vue-ui-spark-trend-DiZvQzSb.cjs → vue-ui-spark-trend-DnoxMeF3.cjs} +1 -1
  128. package/dist/{vue-ui-sparkbar-B1pBe2b4.cjs → vue-ui-sparkbar-CAHDM61K.cjs} +1 -1
  129. package/dist/{vue-ui-sparkbar-DjsNBWGs.js → vue-ui-sparkbar-CJUkmhnj.js} +4 -4
  130. package/dist/{vue-ui-sparkgauge-BJ0vTnKL.js → vue-ui-sparkgauge-CXt_UXa0.js} +4 -4
  131. package/dist/{vue-ui-sparkgauge-ByMA0D5w.cjs → vue-ui-sparkgauge-DngkG6ub.cjs} +1 -1
  132. package/dist/{vue-ui-sparkhistogram-WxGpd0TA.cjs → vue-ui-sparkhistogram-BGSXZdYJ.cjs} +1 -1
  133. package/dist/{vue-ui-sparkhistogram-Cv-hyUbF.js → vue-ui-sparkhistogram-e1KLP3lx.js} +5 -5
  134. package/dist/{vue-ui-sparkline-DPlkEVV6.cjs → vue-ui-sparkline-4HHF_g27.cjs} +1 -1
  135. package/dist/{vue-ui-sparkline-tnMT43CD.js → vue-ui-sparkline-C1c0gnoE.js} +5 -5
  136. package/dist/{vue-ui-sparkstackbar-BFkweUWm.cjs → vue-ui-sparkstackbar-CYI8Q-A7.cjs} +1 -1
  137. package/dist/{vue-ui-sparkstackbar-8WSy0M8S.js → vue-ui-sparkstackbar-WWHBMDoc.js} +5 -5
  138. package/dist/{vue-ui-stackbar-BfkOVox7.js → vue-ui-stackbar-Dswh_YhD.js} +14 -14
  139. package/dist/{vue-ui-stackbar-BFgWt2oG.cjs → vue-ui-stackbar-LROMB081.cjs} +1 -1
  140. package/dist/{vue-ui-strip-plot-BKsixkUU.cjs → vue-ui-strip-plot-BHLCEMtE.cjs} +1 -1
  141. package/dist/{vue-ui-strip-plot-CN06Oh8m.js → vue-ui-strip-plot-CkTMHioN.js} +12 -12
  142. package/dist/{vue-ui-table-B-sy0kOZ.js → vue-ui-table-BQLFbWJu.js} +3 -3
  143. package/dist/{vue-ui-table-o_zUZsUz.cjs → vue-ui-table-ClPvrWk1.cjs} +1 -1
  144. package/dist/{vue-ui-table-heatmap-Dur8rhk6.js → vue-ui-table-heatmap-Cq0Ayqw9.js} +4 -4
  145. package/dist/{vue-ui-table-heatmap-BidbeObz.cjs → vue-ui-table-heatmap-CzXQ_Jyj.cjs} +1 -1
  146. package/dist/{vue-ui-table-sparkline-BeWSYBle.cjs → vue-ui-table-sparkline-CrWRDJhv.cjs} +1 -1
  147. package/dist/{vue-ui-table-sparkline-Ccw_ekS8.js → vue-ui-table-sparkline-kApN7-VK.js} +5 -5
  148. package/dist/{vue-ui-thermometer-BOw4FvGD.js → vue-ui-thermometer-BqtB3WF_.js} +7 -7
  149. package/dist/{vue-ui-thermometer-Ds9lWEE_.cjs → vue-ui-thermometer-DYo8ZTAM.cjs} +1 -1
  150. package/dist/{vue-ui-timer-B2gMYwCj.js → vue-ui-timer-DcHNiJK0.js} +6 -6
  151. package/dist/{vue-ui-timer-OAHpNcTb.cjs → vue-ui-timer-DprIzsAY.cjs} +1 -1
  152. package/dist/{vue-ui-tiremarks-B8dltsA4.cjs → vue-ui-tiremarks-Dpn0SavO.cjs} +1 -1
  153. package/dist/{vue-ui-tiremarks-BlfDeAAZ.js → vue-ui-tiremarks-fEn67LmT.js} +7 -7
  154. package/dist/{vue-ui-treemap-BjWTRcbW.cjs → vue-ui-treemap-C8uX5Ilw.cjs} +1 -1
  155. package/dist/{vue-ui-treemap-meoOt_AQ.js → vue-ui-treemap-Cq5QKrAX.js} +13 -13
  156. package/dist/{vue-ui-vertical-bar-8EaYa2I2.js → vue-ui-vertical-bar-BctpxL75.js} +13 -13
  157. package/dist/{vue-ui-vertical-bar-kRBUbvs6.cjs → vue-ui-vertical-bar-Bj-tNmvd.cjs} +1 -1
  158. package/dist/{vue-ui-waffle-XM92kEwZ.cjs → vue-ui-waffle-B3XGM76l.cjs} +1 -1
  159. package/dist/{vue-ui-waffle-ThNptuVQ.js → vue-ui-waffle-inmP6xJa.js} +13 -13
  160. package/dist/{vue-ui-wheel-B_DSO7Ko.js → vue-ui-wheel-BExyiteC.js} +8 -8
  161. package/dist/{vue-ui-wheel-DMiRno4r.cjs → vue-ui-wheel-D4quM69U.cjs} +1 -1
  162. package/dist/{vue-ui-word-cloud-tsIW_o0M.js → vue-ui-word-cloud-CO6OX7uL.js} +11 -11
  163. package/dist/{vue-ui-word-cloud-8-CU7ACz.cjs → vue-ui-word-cloud-D3O3LDR0.cjs} +1 -1
  164. package/dist/{vue-ui-world-C-TO7n_r.cjs → vue-ui-world-BWv7KvDY.cjs} +1 -1
  165. package/dist/{vue-ui-world-DizUMTdP.js → vue-ui-world-j_aAVyB8.js} +11 -11
  166. package/dist/{vue-ui-xy-CKNq6i3B.js → vue-ui-xy-BLnXnpd-.js} +16 -16
  167. package/dist/{vue-ui-xy-CHcCU9pB.cjs → vue-ui-xy-CnLejNy1.cjs} +2 -2
  168. package/dist/{vue-ui-xy-canvas-DgLV6VWJ.js → vue-ui-xy-canvas-2hhjtxZN.js} +13 -13
  169. package/dist/{vue-ui-xy-canvas-Cmax9zNa.cjs → vue-ui-xy-canvas-t3XI0Z_d.cjs} +1 -1
  170. package/package.json +1 -1
  171. package/dist/DataTable-DypMcnH2.cjs +0 -1
  172. package/dist/PackageVersion-BS7Jybcw.cjs +0 -1
  173. package/dist/vue-data-ui-C3o_PUJM.cjs +0 -9
  174. package/dist/vue-ui-skeleton-Br6xw2QW.cjs +0 -41
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("./index-B7zOq_yO.cjs"),me=require("./Title-LLvOAGEi.cjs"),se=require("./usePrinter-u4erwqXt.cjs"),ae=require("./useResponsive-DQmBAoBf.cjs"),pe=require("./vue-ui-accordion-DkOSgEPp.cjs"),ge=require("./DataTable-DypMcnH2.cjs"),ie=require("./useNestedProp-DUH233CH.cjs"),ye=require("./PackageVersion-BS7Jybcw.cjs"),be=require("./Tooltip-B1xW8AQT.cjs"),ke=require("./PenAndPaper-CU0ABvzv.cjs"),we=require("./useUserOptionState-BgepsfED.cjs"),Ce=require("./useChartAccessibility-Cm7nkzTG.cjs"),xe=require("./usePanZoom-PXRi2Rwx.cjs"),$e=require("./BaseIcon-CObkWSlF.cjs"),Se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function Te(b,p){const{width:d,height:r}=b,v=p.getImageData(0,0,d,r).data;let n=d,l=r,s=0,g=0,w=!1;for(let f=0;f<r;f+=1)for(let y=0;y<d;y+=1)v[(f*d+y)*4+3]>1&&(w=!0,y<n&&(n=y),y>s&&(s=y),f<l&&(l=f),f>g&&(g=f));return w?[n,l,s,g]:[0,0,0,0]}function ue({word:b,fontSize:p,pad:d,canvas:r,ctx:u,svg:v}){u.save(),u.font=`${v.style&&v.style.bold?"bold ":""}${p}px Arial`;const n=u.measureText(b.name),l=Math.ceil(n.width)+2+(d?d*2:0),s=Math.ceil(p)+2+(d?d*2:0);r.width=l,r.height=s,u.clearRect(0,0,l,s),u.font=`${v.style&&v.style.bold?"bold ":""}${p}px Arial`,u.textAlign="center",u.textBaseline="middle",u.fillStyle="black",u.fillText(b.name,l/2,s/2);const w=u.getImageData(0,0,l,s).data,f=[];for(let B=0;B<s;B+=1)for(let I=0;I<l;I+=1)w[(B*l+I)*4+3]>1&&f.push([I,B]);const[y,t,P,O]=Te(r,u);return u.restore(),{w:l,h:s,wordMask:f,minX:y,minY:t,maxX:P,maxY:O}}function ce({mask:b,maskW:p,maskH:d,wx:r,wy:u,wordMask:v}){for(let n=0;n<v.length;n+=1){const l=r+v[n][0],s=u+v[n][1];if(l<0||s<0||l>=p||s>=d||b[s*p+l])return!1}return!0}function de({mask:b,maskW:p,maskH:d,wx:r,wy:u,wordMask:v}){for(let n=0;n<v.length;n+=1){const l=r+v[n][0],s=u+v[n][1];l>=0&&s>=0&&l<p&&s<d&&(b[s*p+l]=1)}}function Pe({wordMask:b,w:p,h:d,dilation:r}){const u=new Set(b.map(([n,l])=>`${n},${l}`)),v=new Set(u);for(let[n,l]of b)for(let s=-r;s<=r;s+=1)for(let g=-r;g<=r;g+=1){if(s===0&&g===0)continue;const w=n+s,f=l+g;w>=0&&w<p&&f>=0&&f<d&&v.add(`${w},${f}`)}return Array.from(v).map(n=>n.split(",").map(Number))}function Be({words:b,proximity:p=0,svg:d,strictPixelPadding:r}){const{width:u,height:v}=d,n=Math.round(u),l=Math.round(v),s=1,g=d.minFontSize,w=Math.min(d.maxFontSize,100),f=b.map(C=>C.value),y=Math.min(...f),t=Math.max(...f),P=new Uint8Array(n*l),O=document.createElement("canvas"),B=O.getContext("2d",{willReadFrequently:!0});O.width=n,O.height=l;const I=6,j=2,G=2,Z=1,c=Math.floor(n/2),J=Math.floor(l/2),Q=[...b].sort((C,N)=>N.value-C.value),R=[];for(const C of Q){let N=g;t!==y&&(N=(C.value-y)/(t-y)*(w-g)+g),N=Math.max(g,Math.min(w,N));let V=!1,z=N;for(;!V&&z>=s;){let{w:M,h,wordMask:_,minX:E,minY:W,maxX:q,maxY:D}=ue({word:C,fontSize:z,pad:p,canvas:O,ctx:B,svg:d});r&&(_=Pe({wordMask:_,w:M,h,dilation:1}));let x=0,A=0;for(;x<Math.max(n,l)&&!V&&A<1e4;){for(let F=0;F<360;F+=I){A+=1;const T=Math.round(c+x*Math.cos(F*Math.PI/180)-M/2),$=Math.round(J+x*Math.sin(F*Math.PI/180)-h/2);if(!(T<0||$<0||T+M>n||$+h>l)&&ce({mask:P,maskW:n,maskH:l,wx:T,wy:$,wordMask:_})){R.push({...C,x:T-n/2,y:$-l/2,fontSize:z,width:M,height:h,angle:0,minX:E,minY:W,maxX:q,maxY:D}),de({mask:P,maskW:n,maskH:l,wx:T,wy:$,wordMask:_}),V=!0;break}}x+=j}V||(z-=1)}if(!V&&z<s){z=s;const{w:M,h,wordMask:_,minX:E,minY:W,maxX:q,maxY:D}=ue({word:C,fontSize:z,pad:p,canvas:O,ctx:B,svg:d});let x=0,A=0;for(;x<Math.max(n,l)&&!V&&A<25e3;){for(let F=0;F<360;F+=G){A+=1;const T=Math.round(c+x*Math.cos(F*Math.PI/180)-M/2),$=Math.round(J+x*Math.sin(F*Math.PI/180)-h/2);if(!(T<0||$<0||T+M>n||$+h>l)&&ce({mask:P,maskW:n,maskH:l,wx:T,wy:$,wordMask:_})){R.push({...C,x:T-n/2,y:$-l/2,fontSize:z,width:M,height:h,angle:0,minX:E,minY:W,maxX:q,maxY:D}),de({mask:P,maskW:n,maskH:l,wx:T,wy:$,wordMask:_}),V=!0;break}}x+=Z}}}return R.sort((C,N)=>N.fontSize-C.fontSize)}const Ne=["id"],ze=["xmlns","viewBox"],Me=["width","height"],Fe=["transform"],Oe=["x","y","width","height","onMouseover"],Ve=["fill","font-weight","x","y","font-size","transform"],Ae={key:4,class:"vue-data-ui-watermark"},Ie={key:5,"data-dom-to-png-ignore":"",class:"reset-wrapper"},_e=["innerHTML"],Ee={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(b,{expose:p}){e.useCssVars(o=>({"7200478e":o.slicerColor}));const{vue_ui_word_cloud:d}=m.useConfig(),r=b,u=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),v=e.ref(m.createUid()),n=e.ref(0),l=e.ref(null),s=e.ref(null),g=e.ref(null),w=e.ref(0),f=e.ref(0),y=e.ref(!1),t=e.computed({get:()=>Z(),set:o=>o}),P=e.ref(O());function O(){return typeof r.dataset=="string"?m.createWordCloudDatasetFromPlainText(r.dataset):r.dataset.map((o,i)=>({...o,value:m.checkNaN(o.value)}))}e.watch(()=>r.dataset,()=>{P.value=O(),W()});const{userOptionsVisible:B,setUserOptionsVisibility:I,keepUserOptionState:j}=we.useUserOptionState({config:t.value}),{svgRef:G}=Ce.useChartAccessibility({config:t.value.style.chart.title});function Z(){const o=ie.useNestedProp({userConfig:r.config,defaultConfig:d});return o.theme?{...ie.useNestedProp({userConfig:m.themes.vue_ui_word_cloud[o.theme]||r.config,defaultConfig:o}),customPalette:m.themePalettes[o.theme]||m.palette}:o}e.watch(()=>r.config,o=>{t.value=Z(),B.value=!t.value.userOptions.showOnChartHover,C(),w.value+=1,f.value+=1,h.value.showTable=t.value.table.show,h.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const c=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,bold:t.value.style.chart.words.bold}),J=ae.debounce(()=>{W()},10),Q=ae.throttle(()=>{const{width:o,height:i}=ae.useResponsive({chart:l.value,title:t.value.style.chart.title.text?s.value:null,source:g.value});requestAnimationFrame(()=>{c.value.width=o,c.value.height=i,e.nextTick(J)})}),R=e.ref(null);e.onMounted(C);function C(){m.objectIsEmpty(r.dataset)?m.error({componentName:"VueUiWordCloud",type:"dataset"}):P.value.forEach((o,i)=>{m.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(a=>{u.value=!1,m.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:a,index:i})})}),t.value.responsive&&(R.value=new ResizeObserver(Q),R.value.observe(l.value.parentNode))}e.onBeforeUnmount(()=>{R.value&&R.value.disconnect()});const{isPrinting:N,isImaging:V,generatePdf:z,generateImage:M}=se.usePrinter({elementId:`wordCloud_${v.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud",options:t.value.userOptions.print}),h=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function _(o,i,a="Arial"){const k=document.createElement("canvas").getContext("2d");return k.font=`${i}px ${t.value.style.chart.words.bold?"bold":"normal"} ${a}`,{width:k.measureText(o).width+t.value.style.chart.words.proximity,height:i}}const E=e.ref([]);e.watch(()=>r.dataset,W,{immediate:!0});function W(){const o=[...P.value].map(k=>k.value),i=Math.max(...o),a=Math.min(...o),S=[...P.value].map((k,X)=>{let U=(k.value-a)/(i-a)*(c.value.maxFontSize-c.value.minFontSize)+c.value.minFontSize;U=isNaN(U)?c.value.minFontSize:U;const re=_(k.name,U);return{...k,id:m.createUid(),fontSize:U,width:re.width,height:re.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[X]||t.value.customPalette[X%t.value.customPalette.length]||m.palette[X]||m.palette[X%m.palette.length]:t.value.style.chart.words.color}});E.value=Be({words:S,svg:c.value,proximity:t.value.style.chart.words.proximity,strictPixelPadding:t.value.strictPixelPadding})}const q=e.computed(()=>{const o=E.value.map(a=>({name:a.name,color:a.color})),i=E.value.map(a=>a.value);return{head:o,body:i}});function D(){e.nextTick(()=>{const o=q.value.head.map((S,k)=>[[S.name],[q.value.body[k]]]),i=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),a=m.createCsvContent(i);m.downloadCsv({csvContent:a,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const x=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],i=q.value.head.map((k,X)=>{const U=m.dataLabel({p:t.value.table.td.prefix,v:q.value.body[X],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:k.color,name:k.name},U]}),a={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:i,config:a}}),A=e.ref(!1);function F(o){A.value=o,n.value+=1}function T(){return E.value}function $(){h.value.showTable=!h.value.showTable}function le(){h.value.showTooltip=!h.value.showTooltip}const H=e.ref(!1);function ee(){H.value=!H.value}const ve=e.computed(()=>!H.value&&t.value.style.chart.zoom.show),{viewBox:K,resetZoom:ne,isZoom:he}=xe.usePanZoom(G,{x:0,y:0,width:c.value.width<=0?10:c.value.width,height:c.value.height<=0?10:c.value.height},1,ve);p({getData:T,generateCsv:D,generatePdf:z,generateImage:M,toggleTable:$,toggleTooltip:le,toggleAnnotator:ee});const Y=e.ref(null),L=e.ref(!1),te=e.ref(""),oe=e.ref(null);function fe(o){if(!h.value.showTooltip)return;Y.value=o.id,oe.value={datapoint:o,config:t.value};const i=t.value.style.chart.tooltip.customFormat;if(L.value=!1,m.isFunction(i))try{const a=i({datapoint:o,config:t.value});typeof a=="string"&&(te.value=a,L.value=!0)}catch{console.warn("Custom format cannot be applied."),L.value=!1}if(!L.value){let a=`<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>`;te.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${a}</div>`}y.value=!0}return(o,i)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:l,id:`wordCloud_${v.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:i[3]||(i[3]=()=>e.unref(I)(!0)),onMouseleave:i[4]||(i[4]=()=>e.unref(I)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ke._sfc_main,{key:0,svgRef:e.unref(G),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:H.value,onClose:ee},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:s,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(me._sfc_main,{key:`title_${w.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&&u.value&&(e.unref(j)||e.unref(B))?(e.openBlock(),e.createBlock(se.UserOptions,{ref:"details",key:`user_option_${n.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(N),isImaging:e.unref(V),uid:v.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:A.value,titles:{...t.value.userOptions.buttonTitles},chartElement:l.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:h.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:H.value,onToggleFullscreen:F,onGeneratePdf:e.unref(z),onGenerateCsv:D,onGenerateImage:e.unref(M),onToggleTable:$,onToggleTooltip:le,onToggleAnnotator:ee,style:e.normalizeStyle({visibility:e.unref(j)?e.unref(B)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:a,color:S})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:a,color:S})),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:a,isFullscreen:S})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:S})),void 0,!0)]),key:"5"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:S})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:S})),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),u.value?(e.openBlock(),e.createElementBlock("svg",{key:3,ref_key:"svgRef",ref:G,class:e.normalizeClass({"vue-data-ui-fullscreen--on":A.value,"vue-data-ui-fulscreen--off":!A.value}),xmlns:e.unref(m.XMLNS),viewBox:`${e.unref(K).x} ${e.unref(K).y} ${e.unref(K).width} ${e.unref(K).height}`,style:"overflow:hidden;background:transparent;"},[e.createVNode(ye._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:c.value.width<=0?10:c.value.width,height:c.value.height<=0?10:c.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,Me)):e.createCommentVNode("",!0),e.createElementVNode("g",{transform:`translate(${(c.value.width<=0?10:c.value.width)/2}, ${(c.value.height<=0?10:c.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(a,S)=>(e.openBlock(),e.createElementBlock("g",null,[a.minX!==void 0?(e.openBlock(),e.createElementBlock("rect",{key:0,x:a.x+a.minX,y:a.y+a.minY*1.25,width:a.maxX-a.minX,height:a.maxY-a.minY,fill:"transparent","pointer-events":"visiblePainted",onMouseover:k=>fe(a),onMouseleave:i[0]||(i[0]=k=>{Y.value=null,y.value=!1})},null,40,Oe)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("text",{fill:a.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:S,x:a.x,y:a.y,"font-size":a.fontSize,transform:`translate(${a.width/2}, ${a.height/2})`,class:e.normalizeClass({animated:t.value.useCssAnimation,"word-selected":Y.value&&Y.value===a.id&&h.value.showTooltip,"word-not-selected":Y.value&&Y.value!==a.id&&h.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",style:e.normalizeStyle(`animation-delay:${S*t.value.animationDelayMs}ms !important; pointer-events:none;`)},e.toDisplayString(a.name),15,Ve))]))),256))],8,Fe),e.renderSlot(o.$slots,"svg",{svg:{height:c.value.height,width:c.value.width}},void 0,!0)],10,ze)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ae,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(N)||e.unref(V)})),void 0,!0)])):e.createCommentVNode("",!0),e.unref(he)?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(o.$slots,"reset-action",{reset:e.unref(ne)},()=>[e.createElementVNode("button",{"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",style:e.normalizeStyle({background:t.value.style.chart.backgroundColor}),onClick:i[1]||(i[1]=a=>e.unref(ne)(!0))},[e.createVNode($e.default,{name:"refresh",stroke:t.value.style.chart.color},null,8,["stroke"])],4)],!0)])):e.createCommentVNode("",!0),e.createVNode(be._sfc_main,{show:h.value.showTooltip&&y.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:l.value,content:te.value,isCustom:L.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...oe.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...oe.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:g,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createBlock(pe.default,{key:7,hideDetails:"",config:{open:h.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(ge.DataTable,{key:`table_${f.value}`,colNames:x.value.colNames,head:x.value.head,body:x.value.body,config:x.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:i[2]||(i[2]=a=>h.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a,style:{display:"flex","align-items":"center"}},null,8,_e)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a.name||a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],44,Ne))}},Re=Se._export_sfc(Ee,[["__scopeId","data-v-cda211d1"]]);exports.default=Re;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("./index-CG-euAJp.cjs"),me=require("./Title-GpO-QNhg.cjs"),se=require("./usePrinter-BBqldIVF.cjs"),ae=require("./useResponsive-BBkmXXaa.cjs"),pe=require("./vue-ui-accordion-dJGHfrMl.cjs"),ge=require("./DataTable-pT39kn0W.cjs"),ie=require("./useNestedProp-DYDoE86w.cjs"),ye=require("./PackageVersion-B6nxekEz.cjs"),be=require("./Tooltip-eL97y6Ym.cjs"),ke=require("./PenAndPaper-BC1d2zL5.cjs"),we=require("./useUserOptionState-BgepsfED.cjs"),Ce=require("./useChartAccessibility-Cm7nkzTG.cjs"),xe=require("./usePanZoom-PXRi2Rwx.cjs"),$e=require("./BaseIcon-dtfVrHa7.cjs"),Se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function Te(b,p){const{width:d,height:r}=b,v=p.getImageData(0,0,d,r).data;let n=d,l=r,s=0,g=0,w=!1;for(let f=0;f<r;f+=1)for(let y=0;y<d;y+=1)v[(f*d+y)*4+3]>1&&(w=!0,y<n&&(n=y),y>s&&(s=y),f<l&&(l=f),f>g&&(g=f));return w?[n,l,s,g]:[0,0,0,0]}function ue({word:b,fontSize:p,pad:d,canvas:r,ctx:u,svg:v}){u.save(),u.font=`${v.style&&v.style.bold?"bold ":""}${p}px Arial`;const n=u.measureText(b.name),l=Math.ceil(n.width)+2+(d?d*2:0),s=Math.ceil(p)+2+(d?d*2:0);r.width=l,r.height=s,u.clearRect(0,0,l,s),u.font=`${v.style&&v.style.bold?"bold ":""}${p}px Arial`,u.textAlign="center",u.textBaseline="middle",u.fillStyle="black",u.fillText(b.name,l/2,s/2);const w=u.getImageData(0,0,l,s).data,f=[];for(let B=0;B<s;B+=1)for(let I=0;I<l;I+=1)w[(B*l+I)*4+3]>1&&f.push([I,B]);const[y,t,P,O]=Te(r,u);return u.restore(),{w:l,h:s,wordMask:f,minX:y,minY:t,maxX:P,maxY:O}}function ce({mask:b,maskW:p,maskH:d,wx:r,wy:u,wordMask:v}){for(let n=0;n<v.length;n+=1){const l=r+v[n][0],s=u+v[n][1];if(l<0||s<0||l>=p||s>=d||b[s*p+l])return!1}return!0}function de({mask:b,maskW:p,maskH:d,wx:r,wy:u,wordMask:v}){for(let n=0;n<v.length;n+=1){const l=r+v[n][0],s=u+v[n][1];l>=0&&s>=0&&l<p&&s<d&&(b[s*p+l]=1)}}function Pe({wordMask:b,w:p,h:d,dilation:r}){const u=new Set(b.map(([n,l])=>`${n},${l}`)),v=new Set(u);for(let[n,l]of b)for(let s=-r;s<=r;s+=1)for(let g=-r;g<=r;g+=1){if(s===0&&g===0)continue;const w=n+s,f=l+g;w>=0&&w<p&&f>=0&&f<d&&v.add(`${w},${f}`)}return Array.from(v).map(n=>n.split(",").map(Number))}function Be({words:b,proximity:p=0,svg:d,strictPixelPadding:r}){const{width:u,height:v}=d,n=Math.round(u),l=Math.round(v),s=1,g=d.minFontSize,w=Math.min(d.maxFontSize,100),f=b.map(C=>C.value),y=Math.min(...f),t=Math.max(...f),P=new Uint8Array(n*l),O=document.createElement("canvas"),B=O.getContext("2d",{willReadFrequently:!0});O.width=n,O.height=l;const I=6,j=2,G=2,Z=1,c=Math.floor(n/2),J=Math.floor(l/2),Q=[...b].sort((C,N)=>N.value-C.value),R=[];for(const C of Q){let N=g;t!==y&&(N=(C.value-y)/(t-y)*(w-g)+g),N=Math.max(g,Math.min(w,N));let V=!1,z=N;for(;!V&&z>=s;){let{w:M,h,wordMask:_,minX:E,minY:W,maxX:q,maxY:D}=ue({word:C,fontSize:z,pad:p,canvas:O,ctx:B,svg:d});r&&(_=Pe({wordMask:_,w:M,h,dilation:1}));let x=0,A=0;for(;x<Math.max(n,l)&&!V&&A<1e4;){for(let F=0;F<360;F+=I){A+=1;const T=Math.round(c+x*Math.cos(F*Math.PI/180)-M/2),$=Math.round(J+x*Math.sin(F*Math.PI/180)-h/2);if(!(T<0||$<0||T+M>n||$+h>l)&&ce({mask:P,maskW:n,maskH:l,wx:T,wy:$,wordMask:_})){R.push({...C,x:T-n/2,y:$-l/2,fontSize:z,width:M,height:h,angle:0,minX:E,minY:W,maxX:q,maxY:D}),de({mask:P,maskW:n,maskH:l,wx:T,wy:$,wordMask:_}),V=!0;break}}x+=j}V||(z-=1)}if(!V&&z<s){z=s;const{w:M,h,wordMask:_,minX:E,minY:W,maxX:q,maxY:D}=ue({word:C,fontSize:z,pad:p,canvas:O,ctx:B,svg:d});let x=0,A=0;for(;x<Math.max(n,l)&&!V&&A<25e3;){for(let F=0;F<360;F+=G){A+=1;const T=Math.round(c+x*Math.cos(F*Math.PI/180)-M/2),$=Math.round(J+x*Math.sin(F*Math.PI/180)-h/2);if(!(T<0||$<0||T+M>n||$+h>l)&&ce({mask:P,maskW:n,maskH:l,wx:T,wy:$,wordMask:_})){R.push({...C,x:T-n/2,y:$-l/2,fontSize:z,width:M,height:h,angle:0,minX:E,minY:W,maxX:q,maxY:D}),de({mask:P,maskW:n,maskH:l,wx:T,wy:$,wordMask:_}),V=!0;break}}x+=Z}}}return R.sort((C,N)=>N.fontSize-C.fontSize)}const Ne=["id"],ze=["xmlns","viewBox"],Me=["width","height"],Fe=["transform"],Oe=["x","y","width","height","onMouseover"],Ve=["fill","font-weight","x","y","font-size","transform"],Ae={key:4,class:"vue-data-ui-watermark"},Ie={key:5,"data-dom-to-png-ignore":"",class:"reset-wrapper"},_e=["innerHTML"],Ee={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(b,{expose:p}){e.useCssVars(o=>({"7200478e":o.slicerColor}));const{vue_ui_word_cloud:d}=m.useConfig(),r=b,u=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),v=e.ref(m.createUid()),n=e.ref(0),l=e.ref(null),s=e.ref(null),g=e.ref(null),w=e.ref(0),f=e.ref(0),y=e.ref(!1),t=e.computed({get:()=>Z(),set:o=>o}),P=e.ref(O());function O(){return typeof r.dataset=="string"?m.createWordCloudDatasetFromPlainText(r.dataset):r.dataset.map((o,i)=>({...o,value:m.checkNaN(o.value)}))}e.watch(()=>r.dataset,()=>{P.value=O(),W()});const{userOptionsVisible:B,setUserOptionsVisibility:I,keepUserOptionState:j}=we.useUserOptionState({config:t.value}),{svgRef:G}=Ce.useChartAccessibility({config:t.value.style.chart.title});function Z(){const o=ie.useNestedProp({userConfig:r.config,defaultConfig:d});return o.theme?{...ie.useNestedProp({userConfig:m.themes.vue_ui_word_cloud[o.theme]||r.config,defaultConfig:o}),customPalette:m.themePalettes[o.theme]||m.palette}:o}e.watch(()=>r.config,o=>{t.value=Z(),B.value=!t.value.userOptions.showOnChartHover,C(),w.value+=1,f.value+=1,h.value.showTable=t.value.table.show,h.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const c=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,bold:t.value.style.chart.words.bold}),J=ae.debounce(()=>{W()},10),Q=ae.throttle(()=>{const{width:o,height:i}=ae.useResponsive({chart:l.value,title:t.value.style.chart.title.text?s.value:null,source:g.value});requestAnimationFrame(()=>{c.value.width=o,c.value.height=i,e.nextTick(J)})}),R=e.ref(null);e.onMounted(C);function C(){m.objectIsEmpty(r.dataset)?m.error({componentName:"VueUiWordCloud",type:"dataset"}):P.value.forEach((o,i)=>{m.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(a=>{u.value=!1,m.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:a,index:i})})}),t.value.responsive&&(R.value=new ResizeObserver(Q),R.value.observe(l.value.parentNode))}e.onBeforeUnmount(()=>{R.value&&R.value.disconnect()});const{isPrinting:N,isImaging:V,generatePdf:z,generateImage:M}=se.usePrinter({elementId:`wordCloud_${v.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud",options:t.value.userOptions.print}),h=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function _(o,i,a="Arial"){const k=document.createElement("canvas").getContext("2d");return k.font=`${i}px ${t.value.style.chart.words.bold?"bold":"normal"} ${a}`,{width:k.measureText(o).width+t.value.style.chart.words.proximity,height:i}}const E=e.ref([]);e.watch(()=>r.dataset,W,{immediate:!0});function W(){const o=[...P.value].map(k=>k.value),i=Math.max(...o),a=Math.min(...o),S=[...P.value].map((k,X)=>{let U=(k.value-a)/(i-a)*(c.value.maxFontSize-c.value.minFontSize)+c.value.minFontSize;U=isNaN(U)?c.value.minFontSize:U;const re=_(k.name,U);return{...k,id:m.createUid(),fontSize:U,width:re.width,height:re.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[X]||t.value.customPalette[X%t.value.customPalette.length]||m.palette[X]||m.palette[X%m.palette.length]:t.value.style.chart.words.color}});E.value=Be({words:S,svg:c.value,proximity:t.value.style.chart.words.proximity,strictPixelPadding:t.value.strictPixelPadding})}const q=e.computed(()=>{const o=E.value.map(a=>({name:a.name,color:a.color})),i=E.value.map(a=>a.value);return{head:o,body:i}});function D(){e.nextTick(()=>{const o=q.value.head.map((S,k)=>[[S.name],[q.value.body[k]]]),i=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),a=m.createCsvContent(i);m.downloadCsv({csvContent:a,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const x=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],i=q.value.head.map((k,X)=>{const U=m.dataLabel({p:t.value.table.td.prefix,v:q.value.body[X],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:k.color,name:k.name},U]}),a={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:i,config:a}}),A=e.ref(!1);function F(o){A.value=o,n.value+=1}function T(){return E.value}function $(){h.value.showTable=!h.value.showTable}function le(){h.value.showTooltip=!h.value.showTooltip}const H=e.ref(!1);function ee(){H.value=!H.value}const ve=e.computed(()=>!H.value&&t.value.style.chart.zoom.show),{viewBox:K,resetZoom:ne,isZoom:he}=xe.usePanZoom(G,{x:0,y:0,width:c.value.width<=0?10:c.value.width,height:c.value.height<=0?10:c.value.height},1,ve);p({getData:T,generateCsv:D,generatePdf:z,generateImage:M,toggleTable:$,toggleTooltip:le,toggleAnnotator:ee});const Y=e.ref(null),L=e.ref(!1),te=e.ref(""),oe=e.ref(null);function fe(o){if(!h.value.showTooltip)return;Y.value=o.id,oe.value={datapoint:o,config:t.value};const i=t.value.style.chart.tooltip.customFormat;if(L.value=!1,m.isFunction(i))try{const a=i({datapoint:o,config:t.value});typeof a=="string"&&(te.value=a,L.value=!0)}catch{console.warn("Custom format cannot be applied."),L.value=!1}if(!L.value){let a=`<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>`;te.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${a}</div>`}y.value=!0}return(o,i)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:l,id:`wordCloud_${v.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:i[3]||(i[3]=()=>e.unref(I)(!0)),onMouseleave:i[4]||(i[4]=()=>e.unref(I)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ke._sfc_main,{key:0,svgRef:e.unref(G),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:H.value,onClose:ee},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:s,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(me._sfc_main,{key:`title_${w.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&&u.value&&(e.unref(j)||e.unref(B))?(e.openBlock(),e.createBlock(se.UserOptions,{ref:"details",key:`user_option_${n.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(N),isImaging:e.unref(V),uid:v.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:A.value,titles:{...t.value.userOptions.buttonTitles},chartElement:l.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:h.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:H.value,onToggleFullscreen:F,onGeneratePdf:e.unref(z),onGenerateCsv:D,onGenerateImage:e.unref(M),onToggleTable:$,onToggleTooltip:le,onToggleAnnotator:ee,style:e.normalizeStyle({visibility:e.unref(j)?e.unref(B)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:a,color:S})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:a,color:S})),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:a,isFullscreen:S})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:S})),void 0,!0)]),key:"5"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:S})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:S})),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),u.value?(e.openBlock(),e.createElementBlock("svg",{key:3,ref_key:"svgRef",ref:G,class:e.normalizeClass({"vue-data-ui-fullscreen--on":A.value,"vue-data-ui-fulscreen--off":!A.value}),xmlns:e.unref(m.XMLNS),viewBox:`${e.unref(K).x} ${e.unref(K).y} ${e.unref(K).width} ${e.unref(K).height}`,style:"overflow:hidden;background:transparent;"},[e.createVNode(ye._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:c.value.width<=0?10:c.value.width,height:c.value.height<=0?10:c.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,Me)):e.createCommentVNode("",!0),e.createElementVNode("g",{transform:`translate(${(c.value.width<=0?10:c.value.width)/2}, ${(c.value.height<=0?10:c.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(a,S)=>(e.openBlock(),e.createElementBlock("g",null,[a.minX!==void 0?(e.openBlock(),e.createElementBlock("rect",{key:0,x:a.x+a.minX,y:a.y+a.minY*1.25,width:a.maxX-a.minX,height:a.maxY-a.minY,fill:"transparent","pointer-events":"visiblePainted",onMouseover:k=>fe(a),onMouseleave:i[0]||(i[0]=k=>{Y.value=null,y.value=!1})},null,40,Oe)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("text",{fill:a.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:S,x:a.x,y:a.y,"font-size":a.fontSize,transform:`translate(${a.width/2}, ${a.height/2})`,class:e.normalizeClass({animated:t.value.useCssAnimation,"word-selected":Y.value&&Y.value===a.id&&h.value.showTooltip,"word-not-selected":Y.value&&Y.value!==a.id&&h.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",style:e.normalizeStyle(`animation-delay:${S*t.value.animationDelayMs}ms !important; pointer-events:none;`)},e.toDisplayString(a.name),15,Ve))]))),256))],8,Fe),e.renderSlot(o.$slots,"svg",{svg:{height:c.value.height,width:c.value.width}},void 0,!0)],10,ze)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ae,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(N)||e.unref(V)})),void 0,!0)])):e.createCommentVNode("",!0),e.unref(he)?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(o.$slots,"reset-action",{reset:e.unref(ne)},()=>[e.createElementVNode("button",{"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",style:e.normalizeStyle({background:t.value.style.chart.backgroundColor}),onClick:i[1]||(i[1]=a=>e.unref(ne)(!0))},[e.createVNode($e.default,{name:"refresh",stroke:t.value.style.chart.color},null,8,["stroke"])],4)],!0)])):e.createCommentVNode("",!0),e.createVNode(be._sfc_main,{show:h.value.showTooltip&&y.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:l.value,content:te.value,isCustom:L.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...oe.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...oe.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:g,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createBlock(pe.default,{key:7,hideDetails:"",config:{open:h.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(ge.DataTable,{key:`table_${f.value}`,colNames:x.value.colNames,head:x.value.head,body:x.value.body,config:x.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:i[2]||(i[2]=a=>h.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a,style:{display:"flex","align-items":"center"}},null,8,_e)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a.name||a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],44,Ne))}},Re=Se._export_sfc(Ee,[["__scopeId","data-v-cda211d1"]]);exports.default=Re;