vue-data-ui 2.4.42 → 2.4.44

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 (159) hide show
  1. package/README.md +34 -34
  2. package/dist/{Arrow-DTscDttD.cjs → Arrow-D7FfpPjv.cjs} +1 -1
  3. package/dist/{Arrow-DE71uBJZ.js → Arrow-DabU4Tq7.js} +1 -1
  4. package/dist/{BaseIcon-C8XxmpRq.js → BaseIcon-DgOZGFA6.js} +1 -1
  5. package/dist/{BaseIcon-COOfxsl_.cjs → BaseIcon-vmPfwVXS.cjs} +1 -1
  6. package/dist/{DataTable-D_w08xos.js → DataTable-ByILXTgq.js} +2 -2
  7. package/dist/{DataTable-DEdQvqB1.cjs → DataTable-WzoXT7XP.cjs} +1 -1
  8. package/dist/{Legend-BWDoQii_.js → Legend-CJAbBncx.js} +1 -1
  9. package/dist/{Legend-C4rlR-Ge.cjs → Legend-eRHr8IFu.cjs} +1 -1
  10. package/dist/{PackageVersion-CH6MCx6T.js → PackageVersion-2fR7Awu1.js} +1 -1
  11. package/dist/{PackageVersion-DKyD7D76.cjs → PackageVersion-DylCZJMA.cjs} +1 -1
  12. package/dist/{PenAndPaper-Dc2zn4C0.cjs → PenAndPaper-2aIJsXNH.cjs} +1 -1
  13. package/dist/{PenAndPaper-BWTR3U2d.js → PenAndPaper-wVL9QD9U.js} +3 -3
  14. package/dist/{Shape-xrlfL_v4.js → Shape-JMJZs7By.js} +1 -1
  15. package/dist/{Shape-BLS-KzBD.cjs → Shape-nGoGILeB.cjs} +1 -1
  16. package/dist/{Slicer-8gKX0l4Q.cjs → Slicer-BLuFaL8r.cjs} +1 -1
  17. package/dist/{Slicer-DIYseEL1.js → Slicer-Ce0VzdTY.js} +2 -2
  18. package/dist/{Title-B-xkTfi8.cjs → Title-CtfsoH8U.cjs} +1 -1
  19. package/dist/{Title-Cnl9ySNH.js → Title-Dj5wajqV.js} +1 -1
  20. package/dist/{Tooltip-Brbj6DqX.cjs → Tooltip-6D9aABEX.cjs} +1 -1
  21. package/dist/{Tooltip-DEAOBZ8h.js → Tooltip-Zrcwpy3T.js} +6 -6
  22. package/dist/documentation/installation.md +34 -34
  23. package/dist/{index-DnukYspq.js → index-D3_dyp9t.js} +4 -2
  24. package/dist/index-ZAR4YEAn.cjs +9 -0
  25. package/dist/style.css +1 -1
  26. package/dist/types/vue-data-ui.d.cts +2 -0
  27. package/dist/types/vue-data-ui.d.ts +2 -0
  28. package/dist/{useNestedProp-es9bVqY_.cjs → useNestedProp-C8Y0yWDq.cjs} +1 -1
  29. package/dist/{useNestedProp-CVOQGx-X.js → useNestedProp-qwG6HgrL.js} +1 -1
  30. package/dist/{usePrinter-DVIALk5e.js → usePrinter-41NUZdgl.js} +1 -1
  31. package/dist/{usePrinter-C9yUesCc.cjs → usePrinter-Cw4E_LYe.cjs} +1 -1
  32. package/dist/{vue-data-ui-BmmjmNbb.js → vue-data-ui-CKlgRX2w.js} +60 -60
  33. package/dist/{vue-data-ui-LA94HAVo.cjs → vue-data-ui-DPujYnT2.cjs} +1 -1
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +1 -1
  36. package/dist/{vue-ui-3d-bar-DYswbvC_.cjs → vue-ui-3d-bar-CURLeBAg.cjs} +1 -1
  37. package/dist/{vue-ui-3d-bar-CnVJAgFO.js → vue-ui-3d-bar-DFqYSjKF.js} +9 -9
  38. package/dist/{vue-ui-accordion-f9NTID9e.js → vue-ui-accordion-DbKFz7vP.js} +3 -3
  39. package/dist/{vue-ui-accordion-D_K9gNUR.cjs → vue-ui-accordion-zOz2K8wY.cjs} +1 -1
  40. package/dist/{vue-ui-age-pyramid-Bj9K08ws.cjs → vue-ui-age-pyramid-BzwQxubx.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-CL0RB7mU.js → vue-ui-age-pyramid-DVjZHG-c.js} +10 -10
  42. package/dist/{vue-ui-annotator-DhwUZ4WB.cjs → vue-ui-annotator-CU8bDkP0.cjs} +1 -1
  43. package/dist/{vue-ui-annotator-C82vEb7R.js → vue-ui-annotator-ZDqHg-kV.js} +1 -1
  44. package/dist/{vue-ui-bullet-BxYYiFnu.js → vue-ui-bullet-BaQJ3acV.js} +8 -8
  45. package/dist/{vue-ui-bullet-D6KC5yoe.cjs → vue-ui-bullet-Dt0Ki37L.cjs} +1 -1
  46. package/dist/{vue-ui-candlestick-Duf3yfwR.js → vue-ui-candlestick-C5Pzu7U1.js} +11 -11
  47. package/dist/{vue-ui-candlestick-lunuQ9Ka.cjs → vue-ui-candlestick-CMubhqre.cjs} +1 -1
  48. package/dist/{vue-ui-carousel-table-4z9ZACSk.cjs → vue-ui-carousel-table-CL6njZH4.cjs} +1 -1
  49. package/dist/{vue-ui-carousel-table-DQymYeK0.js → vue-ui-carousel-table-CPE1nggj.js} +4 -4
  50. package/dist/{vue-ui-chestnut-DDNLUSav.js → vue-ui-chestnut-B7zSDFfA.js} +8 -8
  51. package/dist/{vue-ui-chestnut-iRODkXaw.cjs → vue-ui-chestnut-DHF2jlte.cjs} +1 -1
  52. package/dist/{vue-ui-cursor-Bdud_Fxg.js → vue-ui-cursor-GKguDqwJ.js} +2 -2
  53. package/dist/{vue-ui-cursor-Bt_SieMc.cjs → vue-ui-cursor-PG2njvGA.cjs} +1 -1
  54. package/dist/{vue-ui-dashboard-BzRR9Ra7.cjs → vue-ui-dashboard-D2w_aK31.cjs} +1 -1
  55. package/dist/{vue-ui-dashboard-CeVkJPeG.js → vue-ui-dashboard-u_haUFHY.js} +2 -2
  56. package/dist/{vue-ui-digits-DF3oLaaR.cjs → vue-ui-digits-DQetGFnZ.cjs} +1 -1
  57. package/dist/{vue-ui-digits-DtNvb8lM.js → vue-ui-digits-DjMZxTuZ.js} +2 -2
  58. package/dist/{vue-ui-donut-C028OlzU.js → vue-ui-donut-CmRH-JB2.js} +243 -243
  59. package/dist/vue-ui-donut-DQcISN6U.cjs +1 -0
  60. package/dist/{vue-ui-donut-evolution-2vQPsBFq.cjs → vue-ui-donut-evolution-XrPuyr-U.cjs} +1 -1
  61. package/dist/{vue-ui-donut-evolution-CprYApXF.js → vue-ui-donut-evolution-YntzBUIL.js} +11 -11
  62. package/dist/{vue-ui-dumbbell-CS8pY-mj.cjs → vue-ui-dumbbell-CCwYiUwP.cjs} +1 -1
  63. package/dist/{vue-ui-dumbbell-BV2LN5qt.js → vue-ui-dumbbell-DmgUkc9m.js} +10 -10
  64. package/dist/{vue-ui-flow-QRimZUXT.js → vue-ui-flow-CZkXzt4D.js} +9 -9
  65. package/dist/{vue-ui-flow-iNWWhp7U.cjs → vue-ui-flow-Ca2cA45D.cjs} +1 -1
  66. package/dist/{vue-ui-funnel-BL8vtmsw.cjs → vue-ui-funnel-CJAT8_1R.cjs} +1 -1
  67. package/dist/{vue-ui-funnel-CBymVSdd.js → vue-ui-funnel-z2OgL3Q1.js} +8 -8
  68. package/dist/{vue-ui-galaxy-KP3A9HVX.js → vue-ui-galaxy-CGhDJ3tA.js} +11 -11
  69. package/dist/{vue-ui-galaxy-DSJrMBzj.cjs → vue-ui-galaxy-bgA3s7VZ.cjs} +1 -1
  70. package/dist/{vue-ui-gauge-H9j8Dq5h.cjs → vue-ui-gauge-F-bvIFfG.cjs} +1 -1
  71. package/dist/{vue-ui-gauge-BuU0DDG0.js → vue-ui-gauge-NtnSEvX5.js} +7 -7
  72. package/dist/{vue-ui-gizmo-M7RalwJ6.js → vue-ui-gizmo-Bq56LDKo.js} +3 -3
  73. package/dist/{vue-ui-gizmo-Bl9JoMk1.cjs → vue-ui-gizmo-DBIefin8.cjs} +1 -1
  74. package/dist/{vue-ui-heatmap-BXWWh4iN.cjs → vue-ui-heatmap-C0NUwPN7.cjs} +1 -1
  75. package/dist/{vue-ui-heatmap-DSkfyl8j.js → vue-ui-heatmap-Dbrlismo.js} +10 -10
  76. package/dist/{vue-ui-history-plot-CYSDr-GH.js → vue-ui-history-plot-CMAu0w0K.js} +11 -11
  77. package/dist/{vue-ui-history-plot-BUoUHKx6.cjs → vue-ui-history-plot-Cd0Qgkox.cjs} +1 -1
  78. package/dist/{vue-ui-kpi-BXe7HQIh.cjs → vue-ui-kpi-C1a3ONse.cjs} +1 -1
  79. package/dist/{vue-ui-kpi-BvUaC7JA.js → vue-ui-kpi-CkRUVNcg.js} +3 -3
  80. package/dist/{vue-ui-mini-loader-DM8ShcKo.js → vue-ui-mini-loader-BVvBbruK.js} +2 -2
  81. package/dist/{vue-ui-mini-loader-zbjxzJTp.cjs → vue-ui-mini-loader-DZ1q-GO6.cjs} +1 -1
  82. package/dist/{vue-ui-molecule-BdIRpOM9.cjs → vue-ui-molecule-C-tmrnHA.cjs} +1 -1
  83. package/dist/{vue-ui-molecule-CZi84tUl.js → vue-ui-molecule-DlXNe42L.js} +11 -11
  84. package/dist/{vue-ui-mood-radar-DipV_UPN.cjs → vue-ui-mood-radar-DYXE1dDD.cjs} +1 -1
  85. package/dist/{vue-ui-mood-radar-DDnbuNdv.js → vue-ui-mood-radar-DzHvFqno.js} +11 -11
  86. package/dist/{vue-ui-nested-donuts-DuxVLzDH.cjs → vue-ui-nested-donuts-BpcKwKFO.cjs} +1 -1
  87. package/dist/{vue-ui-nested-donuts-Chuuvtu-.js → vue-ui-nested-donuts-DDpYr89I.js} +11 -11
  88. package/dist/{vue-ui-onion-CIRGvycb.js → vue-ui-onion-B9CAGc1E.js} +11 -11
  89. package/dist/{vue-ui-onion-CvlwZgpu.cjs → vue-ui-onion-_WXwSygI.cjs} +1 -1
  90. package/dist/{vue-ui-parallel-coordinate-plot-jv7L5_x8.js → vue-ui-parallel-coordinate-plot-CdvYxx2S.js} +12 -12
  91. package/dist/{vue-ui-parallel-coordinate-plot-eJMnJ_u2.cjs → vue-ui-parallel-coordinate-plot-DL5vZwuT.cjs} +1 -1
  92. package/dist/{vue-ui-quadrant-CjjXU43-.js → vue-ui-quadrant-CILC-e-o.js} +12 -12
  93. package/dist/{vue-ui-quadrant-ks_4yK85.cjs → vue-ui-quadrant-ivKVYVXn.cjs} +1 -1
  94. package/dist/{vue-ui-quick-chart-Br2gTOPk.cjs → vue-ui-quick-chart-DW3XlvkG.cjs} +1 -1
  95. package/dist/{vue-ui-quick-chart-BAVQ2SJ2.js → vue-ui-quick-chart-NIE0zUjt.js} +9 -9
  96. package/dist/{vue-ui-radar-CXXAYowO.js → vue-ui-radar-BonXp2ML.js} +12 -12
  97. package/dist/{vue-ui-radar-kjh9y4cm.cjs → vue-ui-radar-D9WtkmKW.cjs} +1 -1
  98. package/dist/{vue-ui-rating-EEIqiBgY.cjs → vue-ui-rating-3akEkZ0G.cjs} +1 -1
  99. package/dist/{vue-ui-rating-DOqMciYJ.js → vue-ui-rating-DblWs0Ay.js} +2 -2
  100. package/dist/{vue-ui-relation-circle-CR3iWQV_.js → vue-ui-relation-circle-BaPqJcbF.js} +7 -7
  101. package/dist/{vue-ui-relation-circle-BEv568py.cjs → vue-ui-relation-circle-Bv5QA1FA.cjs} +1 -1
  102. package/dist/{vue-ui-rings-B--CFaNX.js → vue-ui-rings-DHa-dc3s.js} +11 -11
  103. package/dist/{vue-ui-rings-CgvWaw5N.cjs → vue-ui-rings-KRi0yCa1.cjs} +1 -1
  104. package/dist/{vue-ui-scatter-ChWlgb1L.cjs → vue-ui-scatter-C-0G6tO_.cjs} +1 -1
  105. package/dist/{vue-ui-scatter-C-RD4h73.js → vue-ui-scatter-CKnKyeDJ.js} +12 -12
  106. package/dist/{vue-ui-screenshot-CtjCOun0.cjs → vue-ui-screenshot-BIvS3Dva.cjs} +1 -1
  107. package/dist/{vue-ui-screenshot-C6-MOj7h.js → vue-ui-screenshot-BnQlv1n0.js} +1 -1
  108. package/dist/{vue-ui-skeleton-CXdyOF4T.js → vue-ui-skeleton-CaV7JuCg.js} +3 -3
  109. package/dist/{vue-ui-skeleton-DGCkWrND.cjs → vue-ui-skeleton-urNi7er0.cjs} +1 -1
  110. package/dist/{vue-ui-smiley-AYBZK1EE.cjs → vue-ui-smiley-BDJWFNUb.cjs} +1 -1
  111. package/dist/{vue-ui-smiley-CHXnJeLu.js → vue-ui-smiley-BkKHZRcE.js} +2 -2
  112. package/dist/{vue-ui-spark-trend-DO5rDGRm.js → vue-ui-spark-trend-C6B6URVX.js} +5 -5
  113. package/dist/{vue-ui-spark-trend-D2wIBOvT.cjs → vue-ui-spark-trend-Jrg-tgH_.cjs} +1 -1
  114. package/dist/{vue-ui-sparkbar-COUcdDjn.cjs → vue-ui-sparkbar-CcPXRX01.cjs} +1 -1
  115. package/dist/{vue-ui-sparkbar-CU3UNgHm.js → vue-ui-sparkbar-D7A9EKVi.js} +4 -4
  116. package/dist/{vue-ui-sparkgauge-0810df6b.js → vue-ui-sparkgauge-C1kcwrm9.js} +4 -4
  117. package/dist/{vue-ui-sparkgauge-DrJzwEAh.cjs → vue-ui-sparkgauge-ZQOdaaF1.cjs} +1 -1
  118. package/dist/{vue-ui-sparkhistogram-j7MGEYYJ.cjs → vue-ui-sparkhistogram-CZQzNQHQ.cjs} +1 -1
  119. package/dist/{vue-ui-sparkhistogram-CENPsEeO.js → vue-ui-sparkhistogram-DkMaK9FC.js} +5 -5
  120. package/dist/{vue-ui-sparkline-CXMea9Ki.cjs → vue-ui-sparkline-DuJlR_56.cjs} +1 -1
  121. package/dist/{vue-ui-sparkline-BOYreaxT.js → vue-ui-sparkline-JNv27Q7M.js} +4 -4
  122. package/dist/{vue-ui-sparkstackbar-JvKmnoEy.js → vue-ui-sparkstackbar-4YKk6S2y.js} +5 -5
  123. package/dist/{vue-ui-sparkstackbar-BJIo5y1n.cjs → vue-ui-sparkstackbar-BStYMSiJ.cjs} +1 -1
  124. package/dist/vue-ui-stackbar-BKhScZJ4.cjs +6 -0
  125. package/dist/vue-ui-stackbar-BrBToOgd.js +1026 -0
  126. package/dist/{vue-ui-strip-plot-8MxOeTM_.js → vue-ui-strip-plot-BB9AjuXc.js} +11 -11
  127. package/dist/{vue-ui-strip-plot-CmIS1Osx.cjs → vue-ui-strip-plot-BSbIVJLB.cjs} +1 -1
  128. package/dist/{vue-ui-table-CS-NSZjj.js → vue-ui-table-BkfBNufP.js} +1 -1
  129. package/dist/{vue-ui-table-hVmeT8wY.cjs → vue-ui-table-CTwEo09l.cjs} +1 -1
  130. package/dist/{vue-ui-table-heatmap-k9e_RrhC.cjs → vue-ui-table-heatmap-BRa-idSR.cjs} +1 -1
  131. package/dist/{vue-ui-table-heatmap-CGHYZFJy.js → vue-ui-table-heatmap-t6NXIulS.js} +4 -4
  132. package/dist/{vue-ui-table-sparkline-CRnJVQmO.js → vue-ui-table-sparkline-CtVdHOeS.js} +5 -5
  133. package/dist/{vue-ui-table-sparkline-DiMZ_mh6.cjs → vue-ui-table-sparkline-LRvAe8DG.cjs} +1 -1
  134. package/dist/{vue-ui-thermometer-43jmlgFC.cjs → vue-ui-thermometer-Bkj9olK0.cjs} +1 -1
  135. package/dist/{vue-ui-thermometer-D2BUcsvF.js → vue-ui-thermometer-Dqy_A9Ka.js} +7 -7
  136. package/dist/{vue-ui-timer-Dc6zOjxq.js → vue-ui-timer-BkWR-FS3.js} +5 -5
  137. package/dist/{vue-ui-timer-BO9Ipy0W.cjs → vue-ui-timer-C2WYUfS1.cjs} +1 -1
  138. package/dist/{vue-ui-tiremarks-CMUTe1vY.cjs → vue-ui-tiremarks-BXumbUyZ.cjs} +1 -1
  139. package/dist/{vue-ui-tiremarks-ejt0fqPg.js → vue-ui-tiremarks-Dl881FpL.js} +7 -7
  140. package/dist/{vue-ui-treemap-DqSHqaJK.cjs → vue-ui-treemap-CvNWsOoE.cjs} +1 -1
  141. package/dist/{vue-ui-treemap-DD8tFk9R.js → vue-ui-treemap-Vl47y-4n.js} +11 -11
  142. package/dist/{vue-ui-vertical-bar-CxydSPHF.js → vue-ui-vertical-bar-BzkqxE45.js} +11 -11
  143. package/dist/{vue-ui-vertical-bar-D4dYglan.cjs → vue-ui-vertical-bar-D1EoKlII.cjs} +1 -1
  144. package/dist/{vue-ui-waffle-DYdcFM17.js → vue-ui-waffle-Bd4Wn4LE.js} +11 -11
  145. package/dist/{vue-ui-waffle-CHWAepdl.cjs → vue-ui-waffle-C6cN0uw8.cjs} +1 -1
  146. package/dist/{vue-ui-wheel-CxtgGGpt.js → vue-ui-wheel-D1SsLAru.js} +7 -7
  147. package/dist/{vue-ui-wheel-_ynSyF3l.cjs → vue-ui-wheel-OGoTipOg.cjs} +1 -1
  148. package/dist/{vue-ui-word-cloud-B0AhPT0k.js → vue-ui-word-cloud-C6vq-XKZ.js} +10 -10
  149. package/dist/{vue-ui-word-cloud-Ct16Xxaw.cjs → vue-ui-word-cloud-Da4dHp_U.cjs} +1 -1
  150. package/dist/{vue-ui-xy-B3346TfB.js → vue-ui-xy-Bbih4XkZ.js} +847 -805
  151. package/dist/vue-ui-xy-DXLSyett.cjs +3 -0
  152. package/dist/{vue-ui-xy-canvas-W7YGqG7f.js → vue-ui-xy-canvas-Dtv9a_jF.js} +11 -11
  153. package/dist/{vue-ui-xy-canvas-DtPqmu7B.cjs → vue-ui-xy-canvas-GffgFKCU.cjs} +1 -1
  154. package/package.json +1 -1
  155. package/dist/index-B68kzBN9.cjs +0 -9
  156. package/dist/vue-ui-donut-o09QqVJO.cjs +0 -1
  157. package/dist/vue-ui-stackbar-BOAmp-no.cjs +0 -6
  158. package/dist/vue-ui-stackbar-C3-hx7VM.js +0 -960
  159. package/dist/vue-ui-xy-DHYbKvBg.cjs +0 -3
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-B68kzBN9.cjs"),ke=require("./Title-B-xkTfi8.cjs"),ae=require("./usePrinter-C9yUesCc.cjs"),G=require("./useResponsive-BJ7DTGpm.cjs"),we=require("./vue-ui-accordion-D_K9gNUR.cjs"),xe=require("./DataTable-DEdQvqB1.cjs"),Se=require("./BaseIcon-COOfxsl_.cjs"),re=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ne=require("./useNestedProp-es9bVqY_.cjs"),$e=require("./PackageVersion-DKyD7D76.cjs"),Te=require("./Tooltip-Brbj6DqX.cjs"),Ne=require("./PenAndPaper-Dc2zn4C0.cjs"),Pe=c=>(e.pushScopeId("data-v-3fd7d274"),c=c(),e.popScopeId(),c),Be={"data-html2canvas-ignore":""},Fe={key:0,class:"reset-wrapper"},ze={key:1,class:"reset-wrapper"},_e={class:"mono-slicer"},Ae=Pe(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Ve=["min","max","value"],Ee={__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(c,{emit:P}){const r=c;e.useCssVars(g=>({"90ad3208":E.value,"4f9eef70":S.value,"6e07ae3e":f.value,"2fd430a0":c.selectColor,"6b8169a4":y.value}));const E=e.computed(()=>r.inputColor),y=e.computed(()=>r.background),f=e.computed(()=>`${r.selectColor}33`),S=e.computed(()=>r.borderColor);function $(){P("reset")}const h=e.computed(()=>{const g=r.max-r.min,p=0,b=(r.value-r.min)/g*100;return{left:`${p}%`,width:`${b-p}%`,background:r.selectColor}});return(g,p)=>(e.openBlock(),e.createElementBlock("div",Be,[c.value!==c.source?(e.openBlock(),e.createElementBlock("div",Fe,[c.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(Se.default,{name:"refresh",stroke:c.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",ze)),e.createElementVNode("div",_e,[Ae,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(h.value)},null,4),e.createElementVNode("input",{type:"range",min:c.min,max:c.max,value:Number(c.value),onInput:p[0]||(p[0]=b=>P("update:value",Number(b.target.value)))},null,40,Ve)])]))}},Ie=re._export_sfc(Ee,[["__scopeId","data-v-3fd7d274"]]),Oe=["id"],Me=["xmlns","viewBox"],Re=["transform"],qe=["fill","font-weight","x","y","font-size","transform","onMouseover"],We={key:4,class:"vue-data-ui-watermark"},De=["innerHTML"],Ue={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(c,{expose:P}){const r=c,{vue_ui_word_cloud:E}=s.useConfig(),y=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),f=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),h=e.ref(null),g=e.ref(null),p=e.ref(null),b=e.ref(0),L=e.ref(0),I=e.ref(!1),t=e.computed({get:()=>j(),set:o=>o});function j(){const o=ne.useNestedProp({userConfig:r.config,defaultConfig:E});return o.theme?{...ne.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=j(),H(),b.value+=1,L.value+=1,O()},{deep:!0});const X=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}),se=G.throttle(()=>{const{width:o,height:a}=G.useResponsive({chart:h.value,title:t.value.style.chart.title.text?g.value:null,slicer:t.value.style.chart.zoom.show&&X.value,source:p.value});u.value.width=o,u.value.height=a,e.nextTick(M)});e.watch(()=>C.value,()=>{ue()});const ue=G.debounce(()=>{M()},10);function O(){C.value=Z.value}const B=e.ref(null);e.onMounted(()=>{H(),O()});function H(){s.objectIsEmpty(r.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):f.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&&(B.value=new ResizeObserver(se),B.value.observe(h.value.parentNode))}e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:Y,isImaging:J,generatePdf:K,generateImage:Q}=ae.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 ie(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 ce(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 de(o,a,l){const i=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,w=0;return o.forEach(x=>{let D=!1;for(let V=0;V<Math.max(a,l)/2&&!D;V+=t.value.style.chart.words.packingWeight)for(let U=0;U<360&&!D;U+=t.value.style.chart.words.packingWeight){const le=U*Math.PI/180,fe=v+V*Math.cos(le)-x.width/2,ge=w+V*Math.sin(le)-x.height/2,m={...x,x:fe,y:ge},ye=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,be=i.some(Ce=>ce(m,Ce));ye&&!be&&(i.push(m),D=!0)}}),i}const T=e.ref([]);e.watch(()=>r.dataset,M,{immediate:!0});const Z=e.computed(()=>Math.min(...f.value.map(o=>o.value))),ve=e.computed(()=>Math.max(...f.value.map(o=>o.value)));function M(){const o=[...f.value].filter(n=>n.value>=C.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),i=[...f.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=ie(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=de(i,u.value.width,u.value.height).sort((n,v)=>v.fontSize-n.fontSize)}const F=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 ee(){e.nextTick(()=>{const o=F.value.head.map((i,n)=>[[i.name],[F.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=F.value.head.map((n,v)=>{const w=s.dataLabel({p:t.value.table.td.prefix,v:F.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 he(o){_.value=o,$.value+=1}function pe(){return T.value}function te(){d.value.showTable=!d.value.showTable}function oe(){d.value.showTooltip=!d.value.showTooltip}const A=e.ref(!1);function R(){A.value=!A.value}P({getData:pe,generateCsv:ee,generatePdf:K,generateImage:Q,toggleTable:te,toggleTooltip:oe,toggleAnnotator:R});const k=e.ref(null),N=e.ref(!1),q=e.ref(""),W=e.ref(null);function me(o){if(!d.value.showTooltip)return;k.value=o.id,W.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"&&(q.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>`;q.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:h,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.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ne.PenAndPaper,{key:0,parent:h.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:A.value,onClose:R},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:g,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ke._sfc_main,{key:`title_${b.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(ae.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Y),isImaging:e.unref(J),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:h.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:d.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:A.value,onToggleFullscreen:he,onGeneratePdf:e.unref(K),onGenerateCsv:ee,onGenerateImage:e.unref(Q),onToggleTable:te,onToggleTooltip:oe,onToggleAnnotator:R},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:i})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:i})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:i})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:i})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,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($e._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,i)=>(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:i,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":"central",onMouseover:n=>me(l),onMouseleave:a[0]||(a[0]=n=>{k.value=null,I.value=!1}),style:e.normalizeStyle(`animation-delay:${i*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,qe))]))),256))],8,Re),e.renderSlot(o.$slots,"svg",{svg:{height:u.value.height,width:u.value.width}},void 0,!0)],10,Me)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",We,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Y)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Te._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:h.value,content:q.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...W.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:X,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(Ie,{key:0,value:C.value,"onUpdate:value":a[1]||(a[1]=l=>C.value=l),min:Z.value,max:ve.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),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"source",ref:p,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createBlock(we.default,{key:6,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(xe.DataTable,{key:`table_${L.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,De)]),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,Oe))}},Ge=re._export_sfc(Ue,[["__scopeId","data-v-13d267e2"]]);exports.default=Ge;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-ZAR4YEAn.cjs"),ke=require("./Title-CtfsoH8U.cjs"),ae=require("./usePrinter-Cw4E_LYe.cjs"),G=require("./useResponsive-BJ7DTGpm.cjs"),we=require("./vue-ui-accordion-zOz2K8wY.cjs"),xe=require("./DataTable-WzoXT7XP.cjs"),Se=require("./BaseIcon-vmPfwVXS.cjs"),re=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ne=require("./useNestedProp-C8Y0yWDq.cjs"),$e=require("./PackageVersion-DylCZJMA.cjs"),Te=require("./Tooltip-6D9aABEX.cjs"),Ne=require("./PenAndPaper-2aIJsXNH.cjs"),Pe=c=>(e.pushScopeId("data-v-3fd7d274"),c=c(),e.popScopeId(),c),Be={"data-html2canvas-ignore":""},Fe={key:0,class:"reset-wrapper"},ze={key:1,class:"reset-wrapper"},_e={class:"mono-slicer"},Ae=Pe(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Ve=["min","max","value"],Ee={__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(c,{emit:P}){const r=c;e.useCssVars(g=>({"90ad3208":E.value,"4f9eef70":S.value,"6e07ae3e":f.value,"2fd430a0":c.selectColor,"6b8169a4":y.value}));const E=e.computed(()=>r.inputColor),y=e.computed(()=>r.background),f=e.computed(()=>`${r.selectColor}33`),S=e.computed(()=>r.borderColor);function $(){P("reset")}const h=e.computed(()=>{const g=r.max-r.min,p=0,b=(r.value-r.min)/g*100;return{left:`${p}%`,width:`${b-p}%`,background:r.selectColor}});return(g,p)=>(e.openBlock(),e.createElementBlock("div",Be,[c.value!==c.source?(e.openBlock(),e.createElementBlock("div",Fe,[c.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(Se.default,{name:"refresh",stroke:c.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",ze)),e.createElementVNode("div",_e,[Ae,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(h.value)},null,4),e.createElementVNode("input",{type:"range",min:c.min,max:c.max,value:Number(c.value),onInput:p[0]||(p[0]=b=>P("update:value",Number(b.target.value)))},null,40,Ve)])]))}},Ie=re._export_sfc(Ee,[["__scopeId","data-v-3fd7d274"]]),Oe=["id"],Me=["xmlns","viewBox"],Re=["transform"],qe=["fill","font-weight","x","y","font-size","transform","onMouseover"],We={key:4,class:"vue-data-ui-watermark"},De=["innerHTML"],Ue={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(c,{expose:P}){const r=c,{vue_ui_word_cloud:E}=s.useConfig(),y=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),f=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),h=e.ref(null),g=e.ref(null),p=e.ref(null),b=e.ref(0),L=e.ref(0),I=e.ref(!1),t=e.computed({get:()=>j(),set:o=>o});function j(){const o=ne.useNestedProp({userConfig:r.config,defaultConfig:E});return o.theme?{...ne.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=j(),H(),b.value+=1,L.value+=1,O()},{deep:!0});const X=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}),se=G.throttle(()=>{const{width:o,height:a}=G.useResponsive({chart:h.value,title:t.value.style.chart.title.text?g.value:null,slicer:t.value.style.chart.zoom.show&&X.value,source:p.value});u.value.width=o,u.value.height=a,e.nextTick(M)});e.watch(()=>C.value,()=>{ue()});const ue=G.debounce(()=>{M()},10);function O(){C.value=Z.value}const B=e.ref(null);e.onMounted(()=>{H(),O()});function H(){s.objectIsEmpty(r.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):f.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&&(B.value=new ResizeObserver(se),B.value.observe(h.value.parentNode))}e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:Y,isImaging:J,generatePdf:K,generateImage:Q}=ae.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 ie(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 ce(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 de(o,a,l){const i=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,w=0;return o.forEach(x=>{let D=!1;for(let V=0;V<Math.max(a,l)/2&&!D;V+=t.value.style.chart.words.packingWeight)for(let U=0;U<360&&!D;U+=t.value.style.chart.words.packingWeight){const le=U*Math.PI/180,fe=v+V*Math.cos(le)-x.width/2,ge=w+V*Math.sin(le)-x.height/2,m={...x,x:fe,y:ge},ye=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,be=i.some(Ce=>ce(m,Ce));ye&&!be&&(i.push(m),D=!0)}}),i}const T=e.ref([]);e.watch(()=>r.dataset,M,{immediate:!0});const Z=e.computed(()=>Math.min(...f.value.map(o=>o.value))),ve=e.computed(()=>Math.max(...f.value.map(o=>o.value)));function M(){const o=[...f.value].filter(n=>n.value>=C.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),i=[...f.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=ie(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=de(i,u.value.width,u.value.height).sort((n,v)=>v.fontSize-n.fontSize)}const F=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 ee(){e.nextTick(()=>{const o=F.value.head.map((i,n)=>[[i.name],[F.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=F.value.head.map((n,v)=>{const w=s.dataLabel({p:t.value.table.td.prefix,v:F.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 he(o){_.value=o,$.value+=1}function pe(){return T.value}function te(){d.value.showTable=!d.value.showTable}function oe(){d.value.showTooltip=!d.value.showTooltip}const A=e.ref(!1);function R(){A.value=!A.value}P({getData:pe,generateCsv:ee,generatePdf:K,generateImage:Q,toggleTable:te,toggleTooltip:oe,toggleAnnotator:R});const k=e.ref(null),N=e.ref(!1),q=e.ref(""),W=e.ref(null);function me(o){if(!d.value.showTooltip)return;k.value=o.id,W.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"&&(q.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>`;q.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:h,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.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ne.PenAndPaper,{key:0,parent:h.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:A.value,onClose:R},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:g,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ke._sfc_main,{key:`title_${b.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(ae.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Y),isImaging:e.unref(J),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:h.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:d.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:A.value,onToggleFullscreen:he,onGeneratePdf:e.unref(K),onGenerateCsv:ee,onGenerateImage:e.unref(Q),onToggleTable:te,onToggleTooltip:oe,onToggleAnnotator:R},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:i})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:i})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:i})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:i})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,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($e._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,i)=>(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:i,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":"central",onMouseover:n=>me(l),onMouseleave:a[0]||(a[0]=n=>{k.value=null,I.value=!1}),style:e.normalizeStyle(`animation-delay:${i*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,qe))]))),256))],8,Re),e.renderSlot(o.$slots,"svg",{svg:{height:u.value.height,width:u.value.width}},void 0,!0)],10,Me)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",We,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Y)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Te._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:h.value,content:q.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...W.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:X,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(Ie,{key:0,value:C.value,"onUpdate:value":a[1]||(a[1]=l=>C.value=l),min:Z.value,max:ve.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),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"source",ref:p,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createBlock(we.default,{key:6,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(xe.DataTable,{key:`table_${L.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,De)]),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,Oe))}},Ge=re._export_sfc(Ue,[["__scopeId","data-v-13d267e2"]]);exports.default=Ge;