vue-data-ui 2.4.12 → 2.4.13

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 (146) hide show
  1. package/dist/{Arrow-CGKCROwz.js → Arrow-Bj-fZHYt.js} +1 -1
  2. package/dist/{Arrow-CtkFVr5U.cjs → Arrow-D-arGVx0.cjs} +1 -1
  3. package/dist/{BaseIcon-C4ndCspW.js → BaseIcon-CJw1rm7G.js} +1 -1
  4. package/dist/{BaseIcon-CLoM8DDe.cjs → BaseIcon-bxNR7IJr.cjs} +1 -1
  5. package/dist/{DataTable-C1e5i-AQ.cjs → DataTable-DPFAxETx.cjs} +1 -1
  6. package/dist/{DataTable-CveCk6xW.js → DataTable-DSmlK27d.js} +2 -2
  7. package/dist/{Legend-DDWzCGWe.js → Legend-CjRX0KB0.js} +1 -1
  8. package/dist/{Legend-XfQwPnB6.cjs → Legend-pFwNBjPs.cjs} +1 -1
  9. package/dist/{PackageVersion-Bi8RUX5W.js → PackageVersion-6g32vfzE.js} +1 -1
  10. package/dist/{PackageVersion-BzA9shEH.cjs → PackageVersion-Bdfz6JAs.cjs} +1 -1
  11. package/dist/{PenAndPaper-DnMUcq2C.js → PenAndPaper-Bxz6JnY-.js} +2 -2
  12. package/dist/{PenAndPaper-DolOORON.cjs → PenAndPaper-qO8pMTxM.cjs} +1 -1
  13. package/dist/{Shape-BvB4qzcw.js → Shape-B9d1hhZS.js} +1 -1
  14. package/dist/{Shape-CmAme9xi.cjs → Shape-tOhcWMkG.cjs} +1 -1
  15. package/dist/{Slicer-Be_ldy79.js → Slicer-BzuIYjHU.js} +2 -2
  16. package/dist/{Slicer-BVuY0EjX.cjs → Slicer-CiHJ4t5H.cjs} +1 -1
  17. package/dist/{Title-CAfojmIe.js → Title-CFHy9-HZ.js} +1 -1
  18. package/dist/{Title-CYDoc6j3.cjs → Title-DPx1SQ60.cjs} +1 -1
  19. package/dist/{Tooltip-BABZKovD.cjs → Tooltip-BxmlUqdH.cjs} +1 -1
  20. package/dist/{Tooltip-v1xcr7vF.js → Tooltip-DLCVqP66.js} +1 -1
  21. package/dist/{index-CFa1LJja.js → index-DwLdoaoI.js} +1 -1
  22. package/dist/{index-KDxAXZXP.cjs → index-YfDOzIGL.cjs} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{useNestedProp-DtAqKb0W.js → useNestedProp-BE-9rWPi.js} +1 -1
  25. package/dist/{useNestedProp-CXjSKjKD.cjs → useNestedProp-WJ8kD00a.cjs} +1 -1
  26. package/dist/{usePrinter-l7v2Rcgc.cjs → usePrinter-BfKKkLev.cjs} +1 -1
  27. package/dist/{usePrinter-DEvTXkt_.js → usePrinter-QQ8sIBRI.js} +1 -1
  28. package/dist/{vue-data-ui-C1RPDTzl.cjs → vue-data-ui-B8pOC7vP.cjs} +1 -1
  29. package/dist/{vue-data-ui-CXYOFCkg.js → vue-data-ui-a0ppZO9B.js} +58 -58
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +1 -1
  32. package/dist/{vue-ui-3d-bar-BCaGJcxZ.cjs → vue-ui-3d-bar-BLM0gdFx.cjs} +1 -1
  33. package/dist/{vue-ui-3d-bar-BSiHb8c-.js → vue-ui-3d-bar-cP2pNaKD.js} +9 -9
  34. package/dist/{vue-ui-accordion-BjK5Zqcp.js → vue-ui-accordion-BCbBgQnM.js} +3 -3
  35. package/dist/{vue-ui-accordion-D5b-rLq8.cjs → vue-ui-accordion-BDO_Zh68.cjs} +1 -1
  36. package/dist/{vue-ui-age-pyramid-DaAUzEm9.js → vue-ui-age-pyramid-CrCircJT.js} +10 -10
  37. package/dist/{vue-ui-age-pyramid-DfYUkpdC.cjs → vue-ui-age-pyramid-D83sx902.cjs} +1 -1
  38. package/dist/{vue-ui-annotator-BdKHB-q4.js → vue-ui-annotator-Bsxswk9y.js} +1 -1
  39. package/dist/{vue-ui-annotator-Cb0lPmzD.cjs → vue-ui-annotator-CPc0zP6z.cjs} +1 -1
  40. package/dist/{vue-ui-bullet-wx_gocM4.cjs → vue-ui-bullet-0uF7uLzI.cjs} +1 -1
  41. package/dist/{vue-ui-bullet-C-nXv9dy.js → vue-ui-bullet-Y-4z-p0q.js} +8 -8
  42. package/dist/{vue-ui-candlestick-DB00WcCz.cjs → vue-ui-candlestick-DEf62bqT.cjs} +1 -1
  43. package/dist/{vue-ui-candlestick-DWO7x9nX.js → vue-ui-candlestick-DgcbuAOG.js} +11 -11
  44. package/dist/{vue-ui-carousel-table-F-DEBome.cjs → vue-ui-carousel-table-D5mhqTJP.cjs} +1 -1
  45. package/dist/{vue-ui-carousel-table-BLBPwKS8.js → vue-ui-carousel-table-JVCaW1uQ.js} +4 -4
  46. package/dist/{vue-ui-chestnut-CXlm92u0.js → vue-ui-chestnut-Bf-i3FaN.js} +8 -8
  47. package/dist/{vue-ui-chestnut-CzFwENN8.cjs → vue-ui-chestnut-BzIsyDCJ.cjs} +1 -1
  48. package/dist/{vue-ui-cursor-DJLKYGcb.cjs → vue-ui-cursor-BbkGAq5Z.cjs} +1 -1
  49. package/dist/{vue-ui-cursor-D_pO4Spk.js → vue-ui-cursor-QzjfpeEf.js} +2 -2
  50. package/dist/{vue-ui-dashboard-COKACbCL.js → vue-ui-dashboard-BRi99J78.js} +2 -2
  51. package/dist/{vue-ui-dashboard-4NILx623.cjs → vue-ui-dashboard-DCU5dw0v.cjs} +1 -1
  52. package/dist/{vue-ui-digits-BPL49_3d.js → vue-ui-digits-C2fR0QCG.js} +2 -2
  53. package/dist/{vue-ui-digits-BTTzz0k1.cjs → vue-ui-digits-RFS4E6dl.cjs} +1 -1
  54. package/dist/{vue-ui-donut-DqJKys7z.js → vue-ui-donut-BC07kmTG.js} +11 -11
  55. package/dist/{vue-ui-donut-DcEFUd-o.cjs → vue-ui-donut-C2yuDXOJ.cjs} +1 -1
  56. package/dist/{vue-ui-donut-evolution-BJhAsLVn.cjs → vue-ui-donut-evolution-D0aPzssn.cjs} +1 -1
  57. package/dist/{vue-ui-donut-evolution-CYsUMYt3.js → vue-ui-donut-evolution-DxdShz3M.js} +11 -11
  58. package/dist/{vue-ui-dumbbell-Be6aaQry.js → vue-ui-dumbbell-5moTjRU_.js} +10 -10
  59. package/dist/{vue-ui-dumbbell-By2gkcbi.cjs → vue-ui-dumbbell-DQq-pgEi.cjs} +1 -1
  60. package/dist/{vue-ui-flow-Bu2IHLu9.js → vue-ui-flow-CJVI2R0U.js} +9 -9
  61. package/dist/{vue-ui-flow-CJNjrSDE.cjs → vue-ui-flow-EMWBDlYH.cjs} +1 -1
  62. package/dist/{vue-ui-galaxy-Bl6v7ahB.cjs → vue-ui-galaxy-0PGxS1cN.cjs} +1 -1
  63. package/dist/{vue-ui-galaxy--W8nCy3k.js → vue-ui-galaxy-xrPaGHQg.js} +11 -11
  64. package/dist/{vue-ui-gauge-D9dkzTLj.cjs → vue-ui-gauge-CS3jqlat.cjs} +1 -1
  65. package/dist/{vue-ui-gauge-CAKo27_R.js → vue-ui-gauge-UDtF52j4.js} +7 -7
  66. package/dist/{vue-ui-gizmo-CGSp6322.js → vue-ui-gizmo-1NLXOp5J.js} +3 -3
  67. package/dist/{vue-ui-gizmo-BnrcwQ_f.cjs → vue-ui-gizmo-BvSR_xyA.cjs} +1 -1
  68. package/dist/{vue-ui-heatmap-CGiaD-XX.js → vue-ui-heatmap-Dm0WDiz1.js} +10 -10
  69. package/dist/{vue-ui-heatmap-5NsMNQC1.cjs → vue-ui-heatmap-DyDsLNJO.cjs} +1 -1
  70. package/dist/{vue-ui-kpi-_o8oGkDo.js → vue-ui-kpi-DJjEfWZh.js} +3 -3
  71. package/dist/{vue-ui-kpi-DcvKKcCZ.cjs → vue-ui-kpi-DX6XNFXG.cjs} +1 -1
  72. package/dist/{vue-ui-mini-loader-BnWpe-Jx.cjs → vue-ui-mini-loader-CILHcM-o.cjs} +1 -1
  73. package/dist/{vue-ui-mini-loader-BwahnZ5M.js → vue-ui-mini-loader-izD98Oto.js} +2 -2
  74. package/dist/{vue-ui-molecule-DW45rSTG.js → vue-ui-molecule-BwmpBwnD.js} +11 -11
  75. package/dist/{vue-ui-molecule-EI0QZuPn.cjs → vue-ui-molecule-D8tlnNvH.cjs} +1 -1
  76. package/dist/{vue-ui-mood-radar-Sia4EwXF.js → vue-ui-mood-radar-CorAQOLG.js} +11 -11
  77. package/dist/{vue-ui-mood-radar-Bgunn4sw.cjs → vue-ui-mood-radar-iFQR2rec.cjs} +1 -1
  78. package/dist/{vue-ui-nested-donuts-tWesxUCT.cjs → vue-ui-nested-donuts-3tDIUZ4K.cjs} +1 -1
  79. package/dist/{vue-ui-nested-donuts-Cf7hGnwG.js → vue-ui-nested-donuts-DmHkGxsD.js} +11 -11
  80. package/dist/{vue-ui-onion-C6MaVU1K.cjs → vue-ui-onion-CqdVnbs9.cjs} +1 -1
  81. package/dist/{vue-ui-onion-BaZ_wTbo.js → vue-ui-onion-vTqEZNQz.js} +11 -11
  82. package/dist/{vue-ui-parallel-coordinate-plot-BtIKgxvv.js → vue-ui-parallel-coordinate-plot-BgOxX64T.js} +12 -12
  83. package/dist/{vue-ui-parallel-coordinate-plot-DrV9F60N.cjs → vue-ui-parallel-coordinate-plot-DfMN7jaW.cjs} +1 -1
  84. package/dist/{vue-ui-quadrant-Cle11mCD.cjs → vue-ui-quadrant-BI_7I8Yj.cjs} +1 -1
  85. package/dist/{vue-ui-quadrant-L6SfZjpt.js → vue-ui-quadrant-BWQq4PHY.js} +12 -12
  86. package/dist/{vue-ui-quick-chart-DYu27_hL.js → vue-ui-quick-chart-CqHSqq5T.js} +9 -9
  87. package/dist/{vue-ui-quick-chart-CqS3PeU-.cjs → vue-ui-quick-chart-N-1EOfxf.cjs} +1 -1
  88. package/dist/{vue-ui-radar-DSrgQE0m.cjs → vue-ui-radar-B-jTKgCL.cjs} +1 -1
  89. package/dist/{vue-ui-radar-BHirHWDO.js → vue-ui-radar-DXS1Am0r.js} +12 -12
  90. package/dist/{vue-ui-rating-BJHo9SsT.cjs → vue-ui-rating-CWLJYf2s.cjs} +1 -1
  91. package/dist/{vue-ui-rating-BBRC3Fex.js → vue-ui-rating-DjuCoq0M.js} +2 -2
  92. package/dist/{vue-ui-relation-circle-CpGiH1jp.js → vue-ui-relation-circle-AK--8JLM.js} +7 -7
  93. package/dist/{vue-ui-relation-circle-DzRQKnES.cjs → vue-ui-relation-circle-Ql6ZFkYK.cjs} +1 -1
  94. package/dist/{vue-ui-rings-DT_F10Cs.cjs → vue-ui-rings-DlszOdMT.cjs} +1 -1
  95. package/dist/{vue-ui-rings-B7tPoi26.js → vue-ui-rings-lOFH_to8.js} +11 -11
  96. package/dist/{vue-ui-scatter-B5G15tC4.cjs → vue-ui-scatter-DldUTIFq.cjs} +1 -1
  97. package/dist/{vue-ui-scatter-CTk2BZ_d.js → vue-ui-scatter-l-l8Cllm.js} +12 -12
  98. package/dist/{vue-ui-screenshot-CZr_osbk.js → vue-ui-screenshot-BiVtkpB9.js} +1 -1
  99. package/dist/{vue-ui-screenshot-DRe3Coog.cjs → vue-ui-screenshot-CrvTcVxC.cjs} +1 -1
  100. package/dist/{vue-ui-skeleton-CdeslaC3.cjs → vue-ui-skeleton-BypGpnGR.cjs} +1 -1
  101. package/dist/{vue-ui-skeleton-CHLsECtI.js → vue-ui-skeleton-C7cQjNuh.js} +3 -3
  102. package/dist/{vue-ui-smiley-BcgpnSoO.cjs → vue-ui-smiley-BBUWMyj5.cjs} +1 -1
  103. package/dist/{vue-ui-smiley-esJYBMWC.js → vue-ui-smiley-C0P-U_YM.js} +2 -2
  104. package/dist/{vue-ui-spark-trend-B744D8Vm.cjs → vue-ui-spark-trend-Pohir-w4.cjs} +1 -1
  105. package/dist/{vue-ui-spark-trend-CLLnG7sn.js → vue-ui-spark-trend-jPUjOnKd.js} +5 -5
  106. package/dist/{vue-ui-sparkbar-DP4IIvXP.js → vue-ui-sparkbar-DRGrJShZ.js} +4 -4
  107. package/dist/{vue-ui-sparkbar-sM0UolJY.cjs → vue-ui-sparkbar-DSIgmn4z.cjs} +1 -1
  108. package/dist/{vue-ui-sparkgauge-CdCvjUt1.cjs → vue-ui-sparkgauge-Bb_GeFli.cjs} +1 -1
  109. package/dist/{vue-ui-sparkgauge-DxXLjj0m.js → vue-ui-sparkgauge-KMNHHr4A.js} +4 -4
  110. package/dist/{vue-ui-sparkhistogram-BKH_x2YZ.cjs → vue-ui-sparkhistogram-BqwrB7j-.cjs} +1 -1
  111. package/dist/{vue-ui-sparkhistogram-eiNFDU7_.js → vue-ui-sparkhistogram-CMvUAyiv.js} +5 -5
  112. package/dist/{vue-ui-sparkline-B2O2Ltg7.cjs → vue-ui-sparkline-BGV0iTE1.cjs} +1 -1
  113. package/dist/{vue-ui-sparkline-5JHLo5sp.js → vue-ui-sparkline-ptuGTvxy.js} +4 -4
  114. package/dist/{vue-ui-sparkstackbar-5yePKW_I.cjs → vue-ui-sparkstackbar-B0yQaDMk.cjs} +1 -1
  115. package/dist/{vue-ui-sparkstackbar-R08GxmHX.js → vue-ui-sparkstackbar-Bg-rRMOG.js} +5 -5
  116. package/dist/{vue-ui-stackbar-DLdmXSKP.js → vue-ui-stackbar-B4iWyEBr.js} +12 -12
  117. package/dist/{vue-ui-stackbar-7KA0-619.cjs → vue-ui-stackbar-BhcvcsKz.cjs} +1 -1
  118. package/dist/{vue-ui-strip-plot-5JzjqmSe.js → vue-ui-strip-plot-BEj83Tgt.js} +11 -11
  119. package/dist/{vue-ui-strip-plot-iJg6nab9.cjs → vue-ui-strip-plot-CteBC2Pl.cjs} +1 -1
  120. package/dist/{vue-ui-table-DBuVWV5Y.js → vue-ui-table-BUeJnxZj.js} +1 -1
  121. package/dist/{vue-ui-table-BwjCx5AH.cjs → vue-ui-table-CVvMDfob.cjs} +1 -1
  122. package/dist/{vue-ui-table-heatmap-DYCUCDMQ.js → vue-ui-table-heatmap-B49k29Rh.js} +4 -4
  123. package/dist/{vue-ui-table-heatmap-_bASSmfs.cjs → vue-ui-table-heatmap-CBbrj4Q-.cjs} +1 -1
  124. package/dist/{vue-ui-table-sparkline-BvozgKWZ.js → vue-ui-table-sparkline-Dvbvgw65.js} +5 -5
  125. package/dist/{vue-ui-table-sparkline-BEJ__c2i.cjs → vue-ui-table-sparkline-ycJMm1Hk.cjs} +1 -1
  126. package/dist/{vue-ui-thermometer-1HmsfwA6.js → vue-ui-thermometer-CV1MMj-E.js} +7 -7
  127. package/dist/{vue-ui-thermometer-Dc49W_uX.cjs → vue-ui-thermometer-CkRdpjaQ.cjs} +1 -1
  128. package/dist/{vue-ui-timer-ccFYaDXI.js → vue-ui-timer-BN12JB4S.js} +5 -5
  129. package/dist/{vue-ui-timer-CzsWb_ok.cjs → vue-ui-timer-DaBdNn36.cjs} +1 -1
  130. package/dist/{vue-ui-tiremarks-CMQ6uKOm.js → vue-ui-tiremarks-ClWPLlir.js} +7 -7
  131. package/dist/{vue-ui-tiremarks-CqjOSr6y.cjs → vue-ui-tiremarks-DHXn5sWw.cjs} +1 -1
  132. package/dist/{vue-ui-treemap-Dbkr_rdH.js → vue-ui-treemap-1uBqR8E7.js} +11 -11
  133. package/dist/{vue-ui-treemap-CLTdGsvf.cjs → vue-ui-treemap-DWq5_ImB.cjs} +1 -1
  134. package/dist/{vue-ui-vertical-bar-DzWoUrXd.cjs → vue-ui-vertical-bar-CTEo3CxB.cjs} +1 -1
  135. package/dist/{vue-ui-vertical-bar-BzIh5UUg.js → vue-ui-vertical-bar-DV8c2BrB.js} +11 -11
  136. package/dist/{vue-ui-waffle-GvNWX9QC.cjs → vue-ui-waffle-CuA3KaoT.cjs} +1 -1
  137. package/dist/{vue-ui-waffle-CQw6Qf9H.js → vue-ui-waffle-fXL2N03M.js} +11 -11
  138. package/dist/{vue-ui-wheel-CXmf0H03.js → vue-ui-wheel-Buw3ZXPa.js} +7 -7
  139. package/dist/{vue-ui-wheel-Cafjyq_O.cjs → vue-ui-wheel-D3l8Zj6H.cjs} +1 -1
  140. package/dist/{vue-ui-word-cloud-B-5D28w8.cjs → vue-ui-word-cloud-B8VMBqal.cjs} +1 -1
  141. package/dist/{vue-ui-word-cloud-CAJ-pqpM.js → vue-ui-word-cloud-Xqjh9Q30.js} +10 -10
  142. package/dist/{vue-ui-xy-DejNMLt_.cjs → vue-ui-xy-BSvt9roY.cjs} +2 -2
  143. package/dist/{vue-ui-xy-BNCxzo7p.js → vue-ui-xy-Cr_UmMcD.js} +16 -16
  144. package/dist/{vue-ui-xy-canvas-cnjS60Rg.js → vue-ui-xy-canvas-B82jCvbc.js} +11 -11
  145. package/dist/{vue-ui-xy-canvas-BCMw2wOS.cjs → vue-ui-xy-canvas-CBxPjJOJ.cjs} +1 -1
  146. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-KDxAXZXP.cjs"),ke=require("./Title-CYDoc6j3.cjs"),ae=require("./usePrinter-l7v2Rcgc.cjs"),G=require("./useResponsive-BJ7DTGpm.cjs"),we=require("./vue-ui-accordion-D5b-rLq8.cjs"),xe=require("./DataTable-C1e5i-AQ.cjs"),Se=require("./BaseIcon-CLoM8DDe.cjs"),re=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ne=require("./useNestedProp-CXjSKjKD.cjs"),$e=require("./PackageVersion-BzA9shEH.cjs"),Te=require("./Tooltip-BABZKovD.cjs"),Ne=require("./PenAndPaper-DolOORON.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":"middle",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-045e07b5"]]);exports.default=Ge;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-YfDOzIGL.cjs"),ke=require("./Title-DPx1SQ60.cjs"),ae=require("./usePrinter-BfKKkLev.cjs"),G=require("./useResponsive-BJ7DTGpm.cjs"),we=require("./vue-ui-accordion-BDO_Zh68.cjs"),xe=require("./DataTable-DPFAxETx.cjs"),Se=require("./BaseIcon-bxNR7IJr.cjs"),re=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ne=require("./useNestedProp-WJ8kD00a.cjs"),$e=require("./PackageVersion-Bdfz6JAs.cjs"),Te=require("./Tooltip-BxmlUqdH.cjs"),Ne=require("./PenAndPaper-qO8pMTxM.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":"middle",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-045e07b5"]]);exports.default=Ge;
@@ -1,16 +1,16 @@
1
1
  import { useCssVars as Be, computed as p, openBlock as r, createElementBlock as h, createVNode as oe, renderSlot as d, createElementVNode as x, normalizeStyle as ae, pushScopeId as De, popScopeId as Ve, ref as n, watch as te, onMounted as Ee, onBeforeUnmount as Ue, createBlock as z, createCommentVNode as C, unref as $, createSlots as Ge, withCtx as v, normalizeProps as A, guardReactiveProps as I, normalizeClass as ge, Fragment as Le, renderList as Xe, toDisplayString as ye, createTextVNode as je, nextTick as be } from "vue";
2
- import { u as Ye, a1 as qe, v as He, c as Ce, t as Je, a as Ke, p as X, o as Qe, e as ke, g as Ze, f as et, X as tt, q as ot, r as at, x as lt } from "./index-CFa1LJja.js";
3
- import { _ as nt } from "./Title-CAfojmIe.js";
4
- import { u as st, U as rt } from "./usePrinter-DEvTXkt_.js";
2
+ import { u as Ye, a1 as qe, v as He, c as Ce, t as Je, a as Ke, p as X, o as Qe, e as ke, g as Ze, f as et, X as tt, q as ot, r as at, x as lt } from "./index-DwLdoaoI.js";
3
+ import { _ as nt } from "./Title-CFHy9-HZ.js";
4
+ import { u as st, U as rt } from "./usePrinter-QQ8sIBRI.js";
5
5
  import { d as ut, t as it, u as ct } from "./useResponsive-CoxXLe23.js";
6
- import dt from "./vue-ui-accordion-BjK5Zqcp.js";
7
- import { D as vt } from "./DataTable-CveCk6xW.js";
8
- import ht from "./BaseIcon-C4ndCspW.js";
6
+ import dt from "./vue-ui-accordion-BCbBgQnM.js";
7
+ import { D as vt } from "./DataTable-DSmlK27d.js";
8
+ import ht from "./BaseIcon-CJw1rm7G.js";
9
9
  import { _ as $e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- import { u as we } from "./useNestedProp-DtAqKb0W.js";
11
- import { _ as mt } from "./PackageVersion-Bi8RUX5W.js";
12
- import { _ as ft } from "./Tooltip-v1xcr7vF.js";
13
- import { P as pt } from "./PenAndPaper-DnMUcq2C.js";
10
+ import { u as we } from "./useNestedProp-BE-9rWPi.js";
11
+ import { _ as mt } from "./PackageVersion-6g32vfzE.js";
12
+ import { _ as ft } from "./Tooltip-DLCVqP66.js";
13
+ import { P as pt } from "./PenAndPaper-Bxz6JnY-.js";
14
14
  const gt = (c) => (De("data-v-3fd7d274"), c = c(), Ve(), c), yt = { "data-html2canvas-ignore": "" }, bt = {
15
15
  key: 0,
16
16
  class: "reset-wrapper"