vue-data-ui 2.4.11 → 2.4.12

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-DTcpIx4P.js → Arrow-CGKCROwz.js} +1 -1
  2. package/dist/{Arrow-B2lMAc1C.cjs → Arrow-CtkFVr5U.cjs} +1 -1
  3. package/dist/{BaseIcon-CNl_wwAN.js → BaseIcon-C4ndCspW.js} +1 -1
  4. package/dist/{BaseIcon-Cci48l_M.cjs → BaseIcon-CLoM8DDe.cjs} +1 -1
  5. package/dist/{DataTable-BoMFIudG.cjs → DataTable-C1e5i-AQ.cjs} +1 -1
  6. package/dist/{DataTable-DD2NjgWr.js → DataTable-CveCk6xW.js} +2 -2
  7. package/dist/{Legend-rLopjauc.js → Legend-DDWzCGWe.js} +1 -1
  8. package/dist/{Legend-BEBhnrMH.cjs → Legend-XfQwPnB6.cjs} +1 -1
  9. package/dist/{PackageVersion-DjRRmHKg.js → PackageVersion-Bi8RUX5W.js} +1 -1
  10. package/dist/{PackageVersion-BPbxd_rU.cjs → PackageVersion-BzA9shEH.cjs} +1 -1
  11. package/dist/{PenAndPaper-BkFQN_fq.js → PenAndPaper-DnMUcq2C.js} +2 -2
  12. package/dist/{PenAndPaper-CLAyC1BP.cjs → PenAndPaper-DolOORON.cjs} +1 -1
  13. package/dist/{Shape-Bc8lWk7D.js → Shape-BvB4qzcw.js} +1 -1
  14. package/dist/{Shape-DFrKEycb.cjs → Shape-CmAme9xi.cjs} +1 -1
  15. package/dist/{Slicer-DnddhuPD.cjs → Slicer-BVuY0EjX.cjs} +1 -1
  16. package/dist/{Slicer-CfPeFpUJ.js → Slicer-Be_ldy79.js} +2 -2
  17. package/dist/{Title-NE47pLld.js → Title-CAfojmIe.js} +1 -1
  18. package/dist/{Title-BWAmAhTl.cjs → Title-CYDoc6j3.cjs} +1 -1
  19. package/dist/{Tooltip-CopGUpZs.cjs → Tooltip-BABZKovD.cjs} +1 -1
  20. package/dist/{Tooltip-1RIjj9Cf.js → Tooltip-v1xcr7vF.js} +1 -1
  21. package/dist/{index-9EusFpSb.js → index-CFa1LJja.js} +1 -1
  22. package/dist/{index-D3H-ye-i.cjs → index-KDxAXZXP.cjs} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{useNestedProp-BkL_BRGP.cjs → useNestedProp-CXjSKjKD.cjs} +1 -1
  25. package/dist/{useNestedProp-DLOArwu0.js → useNestedProp-DtAqKb0W.js} +1 -1
  26. package/dist/{usePrinter-Q5_oK30J.js → usePrinter-DEvTXkt_.js} +1 -1
  27. package/dist/{usePrinter-Bp96LusR.cjs → usePrinter-l7v2Rcgc.cjs} +1 -1
  28. package/dist/{vue-data-ui-HoFeCyRO.cjs → vue-data-ui-C1RPDTzl.cjs} +1 -1
  29. package/dist/{vue-data-ui-mDZeKnLu.js → vue-data-ui-CXYOFCkg.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-CUChTQDT.cjs → vue-ui-3d-bar-BCaGJcxZ.cjs} +1 -1
  33. package/dist/{vue-ui-3d-bar-e8ooZusZ.js → vue-ui-3d-bar-BSiHb8c-.js} +9 -9
  34. package/dist/{vue-ui-accordion-DE04OBLu.js → vue-ui-accordion-BjK5Zqcp.js} +3 -3
  35. package/dist/{vue-ui-accordion-BmZSXtWn.cjs → vue-ui-accordion-D5b-rLq8.cjs} +1 -1
  36. package/dist/{vue-ui-age-pyramid-rBF6FLI0.js → vue-ui-age-pyramid-DaAUzEm9.js} +10 -10
  37. package/dist/{vue-ui-age-pyramid-R8-ov8YO.cjs → vue-ui-age-pyramid-DfYUkpdC.cjs} +1 -1
  38. package/dist/{vue-ui-annotator-C6w7-GB3.js → vue-ui-annotator-BdKHB-q4.js} +1 -1
  39. package/dist/{vue-ui-annotator-C_ePw9hm.cjs → vue-ui-annotator-Cb0lPmzD.cjs} +1 -1
  40. package/dist/{vue-ui-bullet-CrrpYnF-.js → vue-ui-bullet-C-nXv9dy.js} +8 -8
  41. package/dist/{vue-ui-bullet-CBMK8LjV.cjs → vue-ui-bullet-wx_gocM4.cjs} +1 -1
  42. package/dist/{vue-ui-candlestick-DxzQ2_Xw.cjs → vue-ui-candlestick-DB00WcCz.cjs} +1 -1
  43. package/dist/{vue-ui-candlestick-pRGkapAM.js → vue-ui-candlestick-DWO7x9nX.js} +11 -11
  44. package/dist/{vue-ui-carousel-table-XQAJxsSd.js → vue-ui-carousel-table-BLBPwKS8.js} +4 -4
  45. package/dist/{vue-ui-carousel-table-DEyQbJoc.cjs → vue-ui-carousel-table-F-DEBome.cjs} +1 -1
  46. package/dist/{vue-ui-chestnut-CqkJL5mj.js → vue-ui-chestnut-CXlm92u0.js} +8 -8
  47. package/dist/{vue-ui-chestnut-B0SB93Um.cjs → vue-ui-chestnut-CzFwENN8.cjs} +1 -1
  48. package/dist/{vue-ui-cursor-8F-TYD5m.cjs → vue-ui-cursor-DJLKYGcb.cjs} +1 -1
  49. package/dist/{vue-ui-cursor-i9FdNF85.js → vue-ui-cursor-D_pO4Spk.js} +2 -2
  50. package/dist/{vue-ui-dashboard-B-uIDy9E.cjs → vue-ui-dashboard-4NILx623.cjs} +1 -1
  51. package/dist/{vue-ui-dashboard-BVNC1LLY.js → vue-ui-dashboard-COKACbCL.js} +2 -2
  52. package/dist/{vue-ui-digits-2kFZOssj.js → vue-ui-digits-BPL49_3d.js} +2 -2
  53. package/dist/{vue-ui-digits-DE2wuVjS.cjs → vue-ui-digits-BTTzz0k1.cjs} +1 -1
  54. package/dist/{vue-ui-donut-Dj37tKw3.cjs → vue-ui-donut-DcEFUd-o.cjs} +1 -1
  55. package/dist/{vue-ui-donut-BBPED91N.js → vue-ui-donut-DqJKys7z.js} +11 -11
  56. package/dist/{vue-ui-donut-evolution-i1mnDbEF.cjs → vue-ui-donut-evolution-BJhAsLVn.cjs} +1 -1
  57. package/dist/{vue-ui-donut-evolution-BUfkTz0e.js → vue-ui-donut-evolution-CYsUMYt3.js} +11 -11
  58. package/dist/{vue-ui-dumbbell-DhJADY6g.js → vue-ui-dumbbell-Be6aaQry.js} +10 -10
  59. package/dist/{vue-ui-dumbbell-BRUIB_6C.cjs → vue-ui-dumbbell-By2gkcbi.cjs} +1 -1
  60. package/dist/{vue-ui-flow-kshJA6fg.js → vue-ui-flow-Bu2IHLu9.js} +9 -9
  61. package/dist/{vue-ui-flow-Blm_8Qvt.cjs → vue-ui-flow-CJNjrSDE.cjs} +1 -1
  62. package/dist/{vue-ui-galaxy-CRympGmo.js → vue-ui-galaxy--W8nCy3k.js} +11 -11
  63. package/dist/{vue-ui-galaxy-BD4b4UPK.cjs → vue-ui-galaxy-Bl6v7ahB.cjs} +1 -1
  64. package/dist/{vue-ui-gauge-GhVHQWB5.js → vue-ui-gauge-CAKo27_R.js} +7 -7
  65. package/dist/{vue-ui-gauge-CctxHIyM.cjs → vue-ui-gauge-D9dkzTLj.cjs} +1 -1
  66. package/dist/{vue-ui-gizmo-DtizFyAK.cjs → vue-ui-gizmo-BnrcwQ_f.cjs} +1 -1
  67. package/dist/{vue-ui-gizmo-BmxuTH7g.js → vue-ui-gizmo-CGSp6322.js} +3 -3
  68. package/dist/{vue-ui-heatmap-C-sjrmzc.cjs → vue-ui-heatmap-5NsMNQC1.cjs} +1 -1
  69. package/dist/{vue-ui-heatmap-DxRULRVw.js → vue-ui-heatmap-CGiaD-XX.js} +10 -10
  70. package/dist/{vue-ui-kpi-ByeLCYYp.cjs → vue-ui-kpi-DcvKKcCZ.cjs} +1 -1
  71. package/dist/{vue-ui-kpi-9gsCJSlL.js → vue-ui-kpi-_o8oGkDo.js} +3 -3
  72. package/dist/{vue-ui-mini-loader--9CTs5gd.cjs → vue-ui-mini-loader-BnWpe-Jx.cjs} +1 -1
  73. package/dist/{vue-ui-mini-loader-BoUDfasO.js → vue-ui-mini-loader-BwahnZ5M.js} +2 -2
  74. package/dist/{vue-ui-molecule-kL3t5Yhh.js → vue-ui-molecule-DW45rSTG.js} +11 -11
  75. package/dist/{vue-ui-molecule-GiHkJdKW.cjs → vue-ui-molecule-EI0QZuPn.cjs} +1 -1
  76. package/dist/{vue-ui-mood-radar-hasGnJHW.cjs → vue-ui-mood-radar-Bgunn4sw.cjs} +1 -1
  77. package/dist/{vue-ui-mood-radar-Btlxem3-.js → vue-ui-mood-radar-Sia4EwXF.js} +11 -11
  78. package/dist/{vue-ui-nested-donuts-BNHhURZB.js → vue-ui-nested-donuts-Cf7hGnwG.js} +11 -11
  79. package/dist/{vue-ui-nested-donuts-A8iBv-cs.cjs → vue-ui-nested-donuts-tWesxUCT.cjs} +1 -1
  80. package/dist/{vue-ui-onion-BjT6FXBW.js → vue-ui-onion-BaZ_wTbo.js} +11 -11
  81. package/dist/{vue-ui-onion-CfvgXR20.cjs → vue-ui-onion-C6MaVU1K.cjs} +1 -1
  82. package/dist/{vue-ui-parallel-coordinate-plot-1gJHwi-G.js → vue-ui-parallel-coordinate-plot-BtIKgxvv.js} +12 -12
  83. package/dist/{vue-ui-parallel-coordinate-plot-72ULVOQs.cjs → vue-ui-parallel-coordinate-plot-DrV9F60N.cjs} +1 -1
  84. package/dist/{vue-ui-quadrant-BIReuPm7.cjs → vue-ui-quadrant-Cle11mCD.cjs} +1 -1
  85. package/dist/{vue-ui-quadrant-sfyO2CyO.js → vue-ui-quadrant-L6SfZjpt.js} +12 -12
  86. package/dist/{vue-ui-quick-chart-C-Z1DYoT.cjs → vue-ui-quick-chart-CqS3PeU-.cjs} +1 -1
  87. package/dist/{vue-ui-quick-chart-C-srQH9J.js → vue-ui-quick-chart-DYu27_hL.js} +9 -9
  88. package/dist/{vue-ui-radar-BzC0VQbN.js → vue-ui-radar-BHirHWDO.js} +12 -12
  89. package/dist/{vue-ui-radar-MiFm7SRw.cjs → vue-ui-radar-DSrgQE0m.cjs} +1 -1
  90. package/dist/{vue-ui-rating-ki_gfG3m.js → vue-ui-rating-BBRC3Fex.js} +2 -2
  91. package/dist/{vue-ui-rating-BuD7W04t.cjs → vue-ui-rating-BJHo9SsT.cjs} +1 -1
  92. package/dist/{vue-ui-relation-circle-BZMISq3F.js → vue-ui-relation-circle-CpGiH1jp.js} +7 -7
  93. package/dist/{vue-ui-relation-circle-B67IFMK8.cjs → vue-ui-relation-circle-DzRQKnES.cjs} +1 -1
  94. package/dist/{vue-ui-rings-CfpBmZkF.js → vue-ui-rings-B7tPoi26.js} +11 -11
  95. package/dist/{vue-ui-rings-BUyJgRUc.cjs → vue-ui-rings-DT_F10Cs.cjs} +1 -1
  96. package/dist/{vue-ui-scatter-DMNVRT91.cjs → vue-ui-scatter-B5G15tC4.cjs} +1 -1
  97. package/dist/{vue-ui-scatter-BFs-7dvK.js → vue-ui-scatter-CTk2BZ_d.js} +12 -12
  98. package/dist/{vue-ui-screenshot-Cauo4x1P.js → vue-ui-screenshot-CZr_osbk.js} +1 -1
  99. package/dist/{vue-ui-screenshot-BMSEKDz2.cjs → vue-ui-screenshot-DRe3Coog.cjs} +1 -1
  100. package/dist/{vue-ui-skeleton-DptJx8-6.js → vue-ui-skeleton-CHLsECtI.js} +3 -3
  101. package/dist/{vue-ui-skeleton-BWO9iit6.cjs → vue-ui-skeleton-CdeslaC3.cjs} +1 -1
  102. package/dist/{vue-ui-smiley-DEV_dsFD.cjs → vue-ui-smiley-BcgpnSoO.cjs} +1 -1
  103. package/dist/{vue-ui-smiley-Cg1vDE5p.js → vue-ui-smiley-esJYBMWC.js} +2 -2
  104. package/dist/{vue-ui-spark-trend-DFwmZlab.cjs → vue-ui-spark-trend-B744D8Vm.cjs} +1 -1
  105. package/dist/{vue-ui-spark-trend-DmponpJr.js → vue-ui-spark-trend-CLLnG7sn.js} +5 -5
  106. package/dist/{vue-ui-sparkbar-D4dlelWC.js → vue-ui-sparkbar-DP4IIvXP.js} +4 -4
  107. package/dist/{vue-ui-sparkbar-DvVvbi80.cjs → vue-ui-sparkbar-sM0UolJY.cjs} +1 -1
  108. package/dist/{vue-ui-sparkgauge-CRydFcHZ.cjs → vue-ui-sparkgauge-CdCvjUt1.cjs} +1 -1
  109. package/dist/{vue-ui-sparkgauge-C2VZgwK6.js → vue-ui-sparkgauge-DxXLjj0m.js} +4 -4
  110. package/dist/{vue-ui-sparkhistogram-C8R8LNDx.cjs → vue-ui-sparkhistogram-BKH_x2YZ.cjs} +1 -1
  111. package/dist/{vue-ui-sparkhistogram-DsMLAwhW.js → vue-ui-sparkhistogram-eiNFDU7_.js} +5 -5
  112. package/dist/{vue-ui-sparkline-D0tbUqaT.js → vue-ui-sparkline-5JHLo5sp.js} +4 -4
  113. package/dist/{vue-ui-sparkline-CjRhD9aT.cjs → vue-ui-sparkline-B2O2Ltg7.cjs} +1 -1
  114. package/dist/{vue-ui-sparkstackbar-Mcu-MB5q.cjs → vue-ui-sparkstackbar-5yePKW_I.cjs} +1 -1
  115. package/dist/{vue-ui-sparkstackbar-oXLKSeVe.js → vue-ui-sparkstackbar-R08GxmHX.js} +5 -5
  116. package/dist/{vue-ui-stackbar-CLejMfqE.cjs → vue-ui-stackbar-7KA0-619.cjs} +1 -1
  117. package/dist/{vue-ui-stackbar-JD5iEkUX.js → vue-ui-stackbar-DLdmXSKP.js} +12 -12
  118. package/dist/{vue-ui-strip-plot-ZLb1XbOJ.js → vue-ui-strip-plot-5JzjqmSe.js} +11 -11
  119. package/dist/{vue-ui-strip-plot-DT_HJhrK.cjs → vue-ui-strip-plot-iJg6nab9.cjs} +1 -1
  120. package/dist/{vue-ui-table-CATIqeAZ.cjs → vue-ui-table-BwjCx5AH.cjs} +1 -1
  121. package/dist/{vue-ui-table-i2KKmKxr.js → vue-ui-table-DBuVWV5Y.js} +1 -1
  122. package/dist/{vue-ui-table-heatmap-Bx0wx_p5.js → vue-ui-table-heatmap-DYCUCDMQ.js} +4 -4
  123. package/dist/{vue-ui-table-heatmap-2xNfY1n-.cjs → vue-ui-table-heatmap-_bASSmfs.cjs} +1 -1
  124. package/dist/{vue-ui-table-sparkline-lIhP_jpT.cjs → vue-ui-table-sparkline-BEJ__c2i.cjs} +1 -1
  125. package/dist/{vue-ui-table-sparkline-BJ1p4Emo.js → vue-ui-table-sparkline-BvozgKWZ.js} +5 -5
  126. package/dist/{vue-ui-thermometer-Cpw1HsJj.js → vue-ui-thermometer-1HmsfwA6.js} +7 -7
  127. package/dist/{vue-ui-thermometer-C5HlafWP.cjs → vue-ui-thermometer-Dc49W_uX.cjs} +1 -1
  128. package/dist/{vue-ui-timer-DJ6Z60f7.cjs → vue-ui-timer-CzsWb_ok.cjs} +1 -1
  129. package/dist/{vue-ui-timer-BqlatBRs.js → vue-ui-timer-ccFYaDXI.js} +5 -5
  130. package/dist/{vue-ui-tiremarks-D-X3Nci7.js → vue-ui-tiremarks-CMQ6uKOm.js} +7 -7
  131. package/dist/{vue-ui-tiremarks-COUOuw47.cjs → vue-ui-tiremarks-CqjOSr6y.cjs} +1 -1
  132. package/dist/{vue-ui-treemap-x7BAU-Mj.cjs → vue-ui-treemap-CLTdGsvf.cjs} +1 -1
  133. package/dist/{vue-ui-treemap-Bt24Hk6i.js → vue-ui-treemap-Dbkr_rdH.js} +11 -11
  134. package/dist/{vue-ui-vertical-bar-BwLl08U5.js → vue-ui-vertical-bar-BzIh5UUg.js} +11 -11
  135. package/dist/{vue-ui-vertical-bar-DLarr8xJ.cjs → vue-ui-vertical-bar-DzWoUrXd.cjs} +1 -1
  136. package/dist/{vue-ui-waffle-CL53rtX8.js → vue-ui-waffle-CQw6Qf9H.js} +11 -11
  137. package/dist/{vue-ui-waffle-CUgTo43L.cjs → vue-ui-waffle-GvNWX9QC.cjs} +1 -1
  138. package/dist/{vue-ui-wheel-Cnktsvs_.js → vue-ui-wheel-CXmf0H03.js} +7 -7
  139. package/dist/{vue-ui-wheel-BNcFNmnp.cjs → vue-ui-wheel-Cafjyq_O.cjs} +1 -1
  140. package/dist/{vue-ui-word-cloud-DMQf_Jlw.cjs → vue-ui-word-cloud-B-5D28w8.cjs} +1 -1
  141. package/dist/{vue-ui-word-cloud-CNq7Fs2o.js → vue-ui-word-cloud-CAJ-pqpM.js} +10 -10
  142. package/dist/{vue-ui-xy-D0CYaEFW.js → vue-ui-xy-BNCxzo7p.js} +120 -120
  143. package/dist/{vue-ui-xy-dwJ4ji_y.cjs → vue-ui-xy-DejNMLt_.cjs} +2 -2
  144. package/dist/{vue-ui-xy-canvas-CzEUFhi7.cjs → vue-ui-xy-canvas-BCMw2wOS.cjs} +1 -1
  145. package/dist/{vue-ui-xy-canvas-CBkXw173.js → vue-ui-xy-canvas-cnjS60Rg.js} +11 -11
  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-D3H-ye-i.cjs"),ke=require("./Title-BWAmAhTl.cjs"),ae=require("./usePrinter-Bp96LusR.cjs"),G=require("./useResponsive-BJ7DTGpm.cjs"),we=require("./vue-ui-accordion-BmZSXtWn.cjs"),xe=require("./DataTable-BoMFIudG.cjs"),Se=require("./BaseIcon-Cci48l_M.cjs"),re=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ne=require("./useNestedProp-BkL_BRGP.cjs"),$e=require("./PackageVersion-BPbxd_rU.cjs"),Te=require("./Tooltip-CopGUpZs.cjs"),Ne=require("./PenAndPaper-CLAyC1BP.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-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,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-9EusFpSb.js";
3
- import { _ as nt } from "./Title-NE47pLld.js";
4
- import { u as st, U as rt } from "./usePrinter-Q5_oK30J.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-CFa1LJja.js";
3
+ import { _ as nt } from "./Title-CAfojmIe.js";
4
+ import { u as st, U as rt } from "./usePrinter-DEvTXkt_.js";
5
5
  import { d as ut, t as it, u as ct } from "./useResponsive-CoxXLe23.js";
6
- import dt from "./vue-ui-accordion-DE04OBLu.js";
7
- import { D as vt } from "./DataTable-DD2NjgWr.js";
8
- import ht from "./BaseIcon-CNl_wwAN.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";
9
9
  import { _ as $e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- import { u as we } from "./useNestedProp-DLOArwu0.js";
11
- import { _ as mt } from "./PackageVersion-DjRRmHKg.js";
12
- import { _ as ft } from "./Tooltip-1RIjj9Cf.js";
13
- import { P as pt } from "./PenAndPaper-BkFQN_fq.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";
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"