vue-data-ui 2.4.75 → 2.4.77
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.
- package/dist/{Arrow-CUulTiJm.cjs → Arrow-CfSMP_pf.cjs} +1 -1
- package/dist/{Arrow-DeaYajks.js → Arrow-f_Kuk8SY.js} +1 -1
- package/dist/{BaseIcon-BBHrjKmu.cjs → BaseIcon-BnnMILPX.cjs} +1 -1
- package/dist/{BaseIcon-DKE6M24F.js → BaseIcon-QuseiwxO.js} +1 -1
- package/dist/{DataTable-CSuU04ZL.js → DataTable--ofk92Yb.js} +2 -2
- package/dist/{DataTable-C9l4dd5y.cjs → DataTable-D0qYxBVZ.cjs} +1 -1
- package/dist/{Legend-DeA8Vc9x.js → Legend-BhrGSZRp.js} +2 -2
- package/dist/{Legend-Bj4l4_U_.cjs → Legend-DV4QFlV9.cjs} +1 -1
- package/dist/{PackageVersion-DDypxdPk.js → PackageVersion-BqwuIW-T.js} +1 -1
- package/dist/{PackageVersion-d2x9D0BY.cjs → PackageVersion-sBYhtscP.cjs} +1 -1
- package/dist/{PenAndPaper-CgV76v_G.cjs → PenAndPaper-CHz_Iy5T.cjs} +1 -1
- package/dist/{PenAndPaper-BU3hYymp.js → PenAndPaper-LsFeEPDj.js} +3 -3
- package/dist/{Shape-043iD2p4.cjs → Shape-BO7Gprqr.cjs} +1 -1
- package/dist/{Shape-CNsxgvnN.js → Shape-Dorp4kyF.js} +1 -1
- package/dist/{Slicer-iP-kiVKM.cjs → Slicer-BDdf60jQ.cjs} +1 -1
- package/dist/{Slicer-NcZbYKm5.js → Slicer-CD8VkksI.js} +2 -2
- package/dist/{Title-C50xgIVN.js → Title-2MaMBji9.js} +1 -1
- package/dist/{Title-qQtFhzWa.cjs → Title-BzcIyo-x.cjs} +1 -1
- package/dist/{Tooltip-BEIYKcDi.js → Tooltip-C_eI7NfC.js} +1 -1
- package/dist/{Tooltip-BMCgXPh1.cjs → Tooltip-DWo9kakv.cjs} +1 -1
- package/dist/{index-BPAGYd6L.cjs → index-CbMyzHGj.cjs} +1 -1
- package/dist/{index-CikhqBsO.js → index-DMvK32iW.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CJDUCpgY.js → useNestedProp-3oLbIjGJ.js} +1 -1
- package/dist/{useNestedProp-DnmHyIdv.cjs → useNestedProp-DqPx8kFh.cjs} +1 -1
- package/dist/{usePrinter-CsOuigbm.js → usePrinter-7L_B-x1F.js} +1 -1
- package/dist/{usePrinter-CFdC3kqD.cjs → usePrinter-BzVsUZ9_.cjs} +1 -1
- package/dist/{vue-data-ui-DJsYnkSW.cjs → vue-data-ui-CFnKc2Ol.cjs} +1 -1
- package/dist/{vue-data-ui-D1HzLI0d.js → vue-data-ui-Cp4r0fLf.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DuNhU0a8.js → vue-ui-3d-bar-Cf1Q84nf.js} +9 -9
- package/dist/{vue-ui-3d-bar-BDhJsXoH.cjs → vue-ui-3d-bar-DTrJuAnz.cjs} +1 -1
- package/dist/{vue-ui-accordion-CfaFAtdn.js → vue-ui-accordion-D9SRsoRT.js} +3 -3
- package/dist/{vue-ui-accordion-C-09eoIa.cjs → vue-ui-accordion-Uftgxo97.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CUEhPVkB.js → vue-ui-age-pyramid-BpfajTvk.js} +10 -10
- package/dist/{vue-ui-age-pyramid-DWArC1Hh.cjs → vue-ui-age-pyramid-CFWWFo_T.cjs} +1 -1
- package/dist/{vue-ui-annotator-DbpEnt9N.js → vue-ui-annotator-BGErHIWg.js} +1 -1
- package/dist/{vue-ui-annotator-B7eh2OAQ.cjs → vue-ui-annotator-CI9JxLDD.cjs} +1 -1
- package/dist/{vue-ui-bullet-rUFvmN5I.cjs → vue-ui-bullet-CCcAE1gt.cjs} +1 -1
- package/dist/{vue-ui-bullet-Bcw3IrkU.js → vue-ui-bullet-CerH0yY6.js} +8 -8
- package/dist/{vue-ui-candlestick-BzuGA02_.cjs → vue-ui-candlestick-B0AfUFwT.cjs} +1 -1
- package/dist/{vue-ui-candlestick-kV_hRenu.js → vue-ui-candlestick-DaXMRecz.js} +11 -11
- package/dist/{vue-ui-carousel-table-CLbw5Gja.js → vue-ui-carousel-table-Ct8iLKVC.js} +4 -4
- package/dist/{vue-ui-carousel-table-8vMGLnJ9.cjs → vue-ui-carousel-table-DU1f-7PI.cjs} +1 -1
- package/dist/{vue-ui-chestnut-jYSEGAFe.js → vue-ui-chestnut-BimMImm7.js} +8 -8
- package/dist/{vue-ui-chestnut-DGujtZMV.cjs → vue-ui-chestnut-Bo6vX7Xa.cjs} +1 -1
- package/dist/{vue-ui-cursor-BxeKu1MR.js → vue-ui-cursor-BqjV3i9U.js} +2 -2
- package/dist/{vue-ui-cursor-CEuvBpBh.cjs → vue-ui-cursor-O8Y4gIKa.cjs} +1 -1
- package/dist/{vue-ui-dashboard-xzxjoO7l.js → vue-ui-dashboard-BGBnagEV.js} +2 -2
- package/dist/{vue-ui-dashboard-mvMeLUIl.cjs → vue-ui-dashboard-DNJUgWJ3.cjs} +1 -1
- package/dist/{vue-ui-digits-BrcGOEQF.cjs → vue-ui-digits-D3pzhtVy.cjs} +1 -1
- package/dist/{vue-ui-digits-D_9iQbHJ.js → vue-ui-digits-DUXLRlXF.js} +2 -2
- package/dist/vue-ui-donut-DKME6kEY.cjs +1 -0
- package/dist/{vue-ui-donut-BXCGVGn6.js → vue-ui-donut-eljChQvj.js} +111 -114
- package/dist/{vue-ui-donut-evolution-CKLu0WUm.cjs → vue-ui-donut-evolution-DGaEBhHF.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-8eE6mMvr.js → vue-ui-donut-evolution-HbunKbYi.js} +11 -11
- package/dist/{vue-ui-dumbbell-DQ4878P6.js → vue-ui-dumbbell-C7Zv4NgK.js} +10 -10
- package/dist/{vue-ui-dumbbell-DL8R6DW5.cjs → vue-ui-dumbbell-CGw-Zwk-.cjs} +1 -1
- package/dist/{vue-ui-flow-G5kHti6C.cjs → vue-ui-flow-DbWddpZi.cjs} +1 -1
- package/dist/{vue-ui-flow-4pVvW8uQ.js → vue-ui-flow-DcRyVL45.js} +9 -9
- package/dist/{vue-ui-funnel-CmCEThsY.cjs → vue-ui-funnel-ByUFSg1s.cjs} +1 -1
- package/dist/{vue-ui-funnel-Cw_nwOx7.js → vue-ui-funnel-D3G2G4P3.js} +9 -9
- package/dist/{vue-ui-galaxy-BBioQ7sZ.js → vue-ui-galaxy-CXssUv3X.js} +11 -11
- package/dist/{vue-ui-galaxy-BNAav1km.cjs → vue-ui-galaxy-ad_Bh1lr.cjs} +1 -1
- package/dist/{vue-ui-gauge-eXqLRqr5.cjs → vue-ui-gauge-Bss6mlN7.cjs} +1 -1
- package/dist/{vue-ui-gauge-ChyRQr2B.js → vue-ui-gauge-DEROTsyc.js} +7 -7
- package/dist/{vue-ui-gizmo-rGEtU_zH.js → vue-ui-gizmo--6Xw6Dh6.js} +3 -3
- package/dist/{vue-ui-gizmo-DYp8SbuP.cjs → vue-ui-gizmo-D4CEw0HZ.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CkEm1KT-.cjs → vue-ui-heatmap-DwCve3RN.cjs} +1 -1
- package/dist/{vue-ui-heatmap-WkENYnDa.js → vue-ui-heatmap-q8JmNnG2.js} +10 -10
- package/dist/{vue-ui-history-plot-CEuatCdT.cjs → vue-ui-history-plot-DaZNgu_Z.cjs} +1 -1
- package/dist/{vue-ui-history-plot-jMcJIXBe.js → vue-ui-history-plot-DnT-Ao3t.js} +11 -11
- package/dist/{vue-ui-kpi-uQV7kPXn.cjs → vue-ui-kpi-Dn49_E2W.cjs} +1 -1
- package/dist/{vue-ui-kpi-Dl2r-v2h.js → vue-ui-kpi-IXgBP9oJ.js} +3 -3
- package/dist/{vue-ui-mini-loader-DMD_i8FL.cjs → vue-ui-mini-loader-CiVFd_Pp.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-tCFLZICI.js → vue-ui-mini-loader-Cm88qObv.js} +2 -2
- package/dist/{vue-ui-molecule-CbliOTkc.js → vue-ui-molecule-C27vhrLA.js} +11 -11
- package/dist/{vue-ui-molecule-D-kk-QUF.cjs → vue-ui-molecule-Cu92ujex.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DzanIQPr.js → vue-ui-mood-radar-DIJ9q9Cc.js} +11 -11
- package/dist/{vue-ui-mood-radar-BDf66NVT.cjs → vue-ui-mood-radar-DvkK8J8b.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-Ddci2lAF.js → vue-ui-nested-donuts-CcqhlN0R.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DFZuAIrl.cjs → vue-ui-nested-donuts-DMaF0m31.cjs} +1 -1
- package/dist/{vue-ui-onion-GFd6TMM3.cjs → vue-ui-onion-D20_PGGT.cjs} +1 -1
- package/dist/{vue-ui-onion-D6KnBK0O.js → vue-ui-onion-DQOu8srN.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-CsJalsuL.cjs → vue-ui-parallel-coordinate-plot-CDDv5TXW.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-C2soWdHp.js → vue-ui-parallel-coordinate-plot-DEtBAZkv.js} +12 -12
- package/dist/{vue-ui-quadrant-qUIgYMAy.js → vue-ui-quadrant-9nixb7y0.js} +12 -12
- package/dist/{vue-ui-quadrant-HGUNsPVK.cjs → vue-ui-quadrant-CVKT0Mil.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-sSewy6n3.js → vue-ui-quick-chart-BBWe0rII.js} +9 -9
- package/dist/{vue-ui-quick-chart-Bh8u3mSK.cjs → vue-ui-quick-chart-DOqmZQuC.cjs} +1 -1
- package/dist/{vue-ui-radar-DwjzQGy5.js → vue-ui-radar-C_HKZN_s.js} +12 -12
- package/dist/{vue-ui-radar-DCT4aJyg.cjs → vue-ui-radar-crw-BUWI.cjs} +1 -1
- package/dist/{vue-ui-rating-CsQqnQS-.js → vue-ui-rating-Bb5D2NLX.js} +2 -2
- package/dist/{vue-ui-rating-DDvuimOm.cjs → vue-ui-rating-D9C-jHN_.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-D4fKIfn1.cjs → vue-ui-relation-circle-BeinsphZ.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-L9dyVKFK.js → vue-ui-relation-circle-D94QdFpd.js} +7 -7
- package/dist/{vue-ui-rings-WD6o_PRx.cjs → vue-ui-rings-8X_K59uf.cjs} +1 -1
- package/dist/{vue-ui-rings-BFilyg2K.js → vue-ui-rings-B9WghU7W.js} +12 -12
- package/dist/{vue-ui-scatter-BPaAnxNh.cjs → vue-ui-scatter-BcGcpFFg.cjs} +1 -1
- package/dist/{vue-ui-scatter-CLwp7E8I.js → vue-ui-scatter-DOOY2ZmO.js} +12 -12
- package/dist/{vue-ui-screenshot-CtMkJWyN.js → vue-ui-screenshot--dGw9WTO.js} +1 -1
- package/dist/{vue-ui-screenshot-Ck5vUvqN.cjs → vue-ui-screenshot-kqXcFrbS.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Cqwj8cKX.js → vue-ui-skeleton-Bzsl5gab.js} +3 -3
- package/dist/{vue-ui-skeleton-DrqHxSpM.cjs → vue-ui-skeleton-Dm5NZ_MQ.cjs} +1 -1
- package/dist/{vue-ui-smiley-lKlY20ky.js → vue-ui-smiley-CHDBpGz6.js} +2 -2
- package/dist/{vue-ui-smiley-YPd44FmM.cjs → vue-ui-smiley-CzUbbfNC.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-C8bml_yT.cjs → vue-ui-spark-trend-CBuzPxBw.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-q4j100sw.js → vue-ui-spark-trend-DDmtsL-M.js} +5 -5
- package/dist/{vue-ui-sparkbar-B-ThPSye.cjs → vue-ui-sparkbar-BOWdoskI.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DLnQHPoC.js → vue-ui-sparkbar-clHgL-Jf.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BN5Rlii7.cjs → vue-ui-sparkgauge-BCpab_To.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-ob8ySh7o.js → vue-ui-sparkgauge-ClpG_Qy_.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-5qXN1bpC.js → vue-ui-sparkhistogram-DtcZvaVe.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-B1qZe377.cjs → vue-ui-sparkhistogram-_-2qzDRQ.cjs} +1 -1
- package/dist/{vue-ui-sparkline-f9ikQwPq.cjs → vue-ui-sparkline-BiPWJRwq.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CHKJsdpz.js → vue-ui-sparkline-Hw74DjL2.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-B81sHzNi.js → vue-ui-sparkstackbar-BvdFMu7C.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-DCyTeS34.cjs → vue-ui-sparkstackbar-C65Dz1NY.cjs} +1 -1
- package/dist/{vue-ui-stackbar-OuOYKoKJ.cjs → vue-ui-stackbar-CUbWqpvI.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CCAGqzOz.js → vue-ui-stackbar-DHihhNbH.js} +13 -13
- package/dist/{vue-ui-strip-plot-CoAS1IeK.js → vue-ui-strip-plot-BeRtOGC8.js} +11 -11
- package/dist/{vue-ui-strip-plot-Ce-95Q5I.cjs → vue-ui-strip-plot-CuoQTnRG.cjs} +1 -1
- package/dist/{vue-ui-table-61dFub-n.js → vue-ui-table-00JpIXEn.js} +1 -1
- package/dist/{vue-ui-table-PNImj_lH.cjs → vue-ui-table-C6jU1DC3.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-66SQmvXK.cjs → vue-ui-table-heatmap-BKwt85XQ.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DwX9Kj-7.js → vue-ui-table-heatmap-iRdyUnBz.js} +4 -4
- package/dist/{vue-ui-table-sparkline-sQWKpma9.js → vue-ui-table-sparkline-B4S_DJRU.js} +5 -5
- package/dist/{vue-ui-table-sparkline-ChTLN7r7.cjs → vue-ui-table-sparkline-Z-VfjBcc.cjs} +1 -1
- package/dist/{vue-ui-thermometer-g4IAHXvx.js → vue-ui-thermometer-BVETzQ_9.js} +7 -7
- package/dist/{vue-ui-thermometer-B5wsAGSn.cjs → vue-ui-thermometer-MNfpy-bk.cjs} +1 -1
- package/dist/{vue-ui-timer-DF3EJ1aQ.js → vue-ui-timer-Dafx7lL2.js} +5 -5
- package/dist/{vue-ui-timer-BpIIGTkI.cjs → vue-ui-timer-DzzNUzOv.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CzlryxFN.js → vue-ui-tiremarks-DvIZxZFn.js} +7 -7
- package/dist/{vue-ui-tiremarks-CkWmUnx8.cjs → vue-ui-tiremarks-VmJ74REn.cjs} +1 -1
- package/dist/{vue-ui-treemap-4-MBNNs6.js → vue-ui-treemap-Bqurrxbn.js} +11 -11
- package/dist/{vue-ui-treemap-BTnaRS0x.cjs → vue-ui-treemap-jtIS1DF3.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DjwU4t1i.cjs → vue-ui-vertical-bar-B7gHw4NU.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DyOYW-Ia.js → vue-ui-vertical-bar-CAQNpuVV.js} +12 -12
- package/dist/{vue-ui-waffle-DJ3kjBDH.js → vue-ui-waffle-BW2oPwaN.js} +12 -12
- package/dist/{vue-ui-waffle-CD85ZsQ4.cjs → vue-ui-waffle-Bx-yIwH9.cjs} +1 -1
- package/dist/{vue-ui-wheel-CsQ-QlBn.cjs → vue-ui-wheel-DdBcwGLj.cjs} +1 -1
- package/dist/{vue-ui-wheel-oQlnQDEf.js → vue-ui-wheel-LE-u6_KV.js} +7 -7
- package/dist/{vue-ui-word-cloud-B2E_pGk9.cjs → vue-ui-word-cloud-C1X5oYBt.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-NV7R5Xiy.js → vue-ui-word-cloud-CjCNiXGN.js} +10 -10
- package/dist/{vue-ui-xy-DjRzp57R.cjs → vue-ui-xy-Dr_MT-o-.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-D5t8_o7S.js → vue-ui-xy-canvas-BgWkLI4n.js} +11 -11
- package/dist/{vue-ui-xy-canvas-C_iyuhnn.cjs → vue-ui-xy-canvas-CBx1LM4e.cjs} +1 -1
- package/dist/{vue-ui-xy-BxUBSn2m.js → vue-ui-xy-jjjT4XDo.js} +54 -54
- package/package.json +1 -1
- package/dist/vue-ui-donut-RklizqS0.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-BPAGYd6L.cjs"),xe=require("./Title-qQtFhzWa.cjs"),se=require("./usePrinter-CFdC3kqD.cjs"),L=require("./useResponsive-BJ7DTGpm.cjs"),$e=require("./vue-ui-accordion-C-09eoIa.cjs"),Te=require("./DataTable-C9l4dd5y.cjs"),Ne=require("./BaseIcon-BBHrjKmu.cjs"),ie=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ue=require("./useNestedProp-DnmHyIdv.cjs"),Pe=require("./PackageVersion-d2x9D0BY.cjs"),Be=require("./Tooltip-BMCgXPh1.cjs"),Fe=require("./PenAndPaper-CgV76v_G.cjs"),ze=require("./useUserOptionState-BgepsfED.cjs"),Oe=c=>(e.pushScopeId("data-v-b4e6aee9"),c=c(),e.popScopeId(),c),Ve={"data-html2canvas-ignore":""},Ae={key:0,class:"reset-wrapper"},Ee={key:1,class:"reset-wrapper"},_e={class:"mono-slicer"},Ie=Oe(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Me=["min","max","value"],Re={__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 s=c;e.useCssVars(g=>({"782b8172":E.value,"102109e6":x.value,"642212d7":f.value,"1f5369d4":c.selectColor,"22b98ab8":y.value}));const E=e.computed(()=>s.inputColor),y=e.computed(()=>s.background),f=e.computed(()=>`${s.selectColor}33`),x=e.computed(()=>s.borderColor);function $(){P("reset")}const h=e.computed(()=>{const g=s.max-s.min,p=0,b=(s.value-s.min)/g*100;return{left:`${p}%`,width:`${b-p}%`,background:s.selectColor}});return(g,p)=>(e.openBlock(),e.createElementBlock("div",Ve,[c.value!==c.source?(e.openBlock(),e.createElementBlock("div",Ae,[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(Ne.default,{name:"refresh",stroke:c.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",Ee)),e.createElementVNode("div",_e,[Ie,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,Me)])]))}},qe=ie._export_sfc(Re,[["__scopeId","data-v-b4e6aee9"]]),Ue=["id"],We=["xmlns","viewBox"],De=["width","height"],Ge=["transform"],Le=["fill","font-weight","x","y","font-size","transform","onMouseover"],je={key:4,class:"vue-data-ui-watermark"},He=["innerHTML"],Xe={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(c,{expose:P}){const s=c,{vue_ui_word_cloud:E}=u.useConfig(),y=e.computed({get(){return!!s.dataset&&s.dataset.length},set(o){return o}}),f=e.ref(typeof s.dataset=="string"?u.createWordCloudDatasetFromPlainText(s.dataset):s.dataset.map(o=>({...o,value:u.checkNaN(o.value)}))),x=e.ref(u.createUid()),$=e.ref(0),h=e.ref(null),g=e.ref(null),p=e.ref(null),b=e.ref(0),j=e.ref(0),_=e.ref(!1),t=e.computed({get:()=>Y(),set:o=>o}),{userOptionsVisible:I,setUserOptionsVisibility:H,keepUserOptionState:X}=ze.useUserOptionState({config:t.value});function Y(){const o=ue.useNestedProp({userConfig:s.config,defaultConfig:E});return o.theme?{...ue.useNestedProp({userConfig:u.themes.vue_ui_word_cloud[o.theme]||s.config,defaultConfig:o}),customPalette:u.themePalettes[o.theme]||u.palette}:o}e.watch(()=>s.config,o=>{t.value=Y(),I.value=!t.value.showOnChartHover,K(),b.value+=1,j.value+=1,M()},{deep:!0});const J=e.ref(null),k=e.ref(0),r=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}),ce=L.throttle(()=>{const{width:o,height:a}=L.useResponsive({chart:h.value,title:t.value.style.chart.title.text?g.value:null,slicer:t.value.style.chart.zoom.show&&J.value,source:p.value});r.value.width=o,r.value.height=a,e.nextTick(R)});e.watch(()=>k.value,()=>{de()});const de=L.debounce(()=>{R()},10);function M(){k.value=oe.value}const B=e.ref(null);e.onMounted(()=>{K(),M()});function K(){u.objectIsEmpty(s.dataset)?u.error({componentName:"VueUiWordCloud",type:"dataset"}):f.value.forEach((o,a)=>{u.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{y.value=!1,u.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(B.value=new ResizeObserver(ce),B.value.observe(h.value.parentNode))}e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:Q,isImaging:Z,generatePdf:ee,generateImage:te}=se.usePrinter({elementId:`wordCloud_${x.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 ve(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 he(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 pe(o,a,l){const i=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,w=0;return o.forEach(S=>{let D=!1;for(let A=0;A<Math.max(a,l)/2&&!D;A+=t.value.style.chart.words.packingWeight)for(let G=0;G<360&&!D;G+=t.value.style.chart.words.packingWeight){const re=G*Math.PI/180,be=v+A*Math.cos(re)-S.width/2,ke=w+A*Math.sin(re)-S.height/2,m={...S,x:be,y:ke},Ce=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,we=i.some(Se=>he(m,Se));Ce&&!we&&(i.push(m),D=!0)}}),i}const T=e.ref([]);e.watch(()=>s.dataset,R,{immediate:!0});const oe=e.computed(()=>Math.min(...f.value.map(o=>o.value))),me=e.computed(()=>Math.max(...f.value.map(o=>o.value)));function R(){const o=[...f.value].filter(n=>n.value>=k.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),i=[...f.value].filter(n=>n.value>=k.value).map((n,v)=>{const w=(n.value-l)/(a-l)*(r.value.maxFontSize-r.value.minFontSize)+r.value.minFontSize,S=ve(n.name,w);return{...n,id:u.createUid(),fontSize:w,width:S.width,height:S.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[v]||t.value.customPalette[v%t.value.customPalette.length]||u.palette[v]||u.palette[v%u.palette.length]:t.value.style.chart.words.color}});T.value=pe(i,r.value.width,r.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 le(){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=u.createCsvContent(a);u.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=u.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}}),O=e.ref(!1);function fe(o){O.value=o,$.value+=1}function ge(){return T.value}function ae(){d.value.showTable=!d.value.showTable}function ne(){d.value.showTooltip=!d.value.showTooltip}const V=e.ref(!1);function q(){V.value=!V.value}P({getData:ge,generateCsv:le,generatePdf:ee,generateImage:te,toggleTable:ae,toggleTooltip:ne,toggleAnnotator:q});const C=e.ref(null),N=e.ref(!1),U=e.ref(""),W=e.ref(null);function ye(o){if(!d.value.showTooltip)return;C.value=o.id,W.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(N.value=!1,u.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(U.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>`;U.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}_.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:h,id:`wordCloud_${x.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:a[3]||(a[3]=()=>e.unref(H)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(H)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Fe.PenAndPaper,{key:0,parent:h.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:V.value,onClose:q},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(xe._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.unref(X)||e.unref(I))?(e.openBlock(),e.createBlock(se.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Q),isImaging:e.unref(Z),uid:x.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:O.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:V.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(ee),onGenerateCsv:le,onGenerateImage:e.unref(te),onToggleTable:ae,onToggleTooltip:ne,onToggleAnnotator:q,style:e.normalizeStyle({visibility:e.unref(X)?e.unref(I)?"visible":"hidden":"visible"})},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","style"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,class:e.normalizeClass({"vue-data-ui-fullscreen--on":O.value,"vue-data-ui-fulscreen--off":!O.value}),xmlns:e.unref(u.XMLNS),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode(Pe._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,De)):e.createCommentVNode("",!0),e.createElementVNode("g",{transform:`translate(${(r.value.width<=0?10:r.value.width)/2}, ${(r.value.height<=0?10:r.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":C.value&&C.value===l.id&&d.value.showTooltip,"word-not-selected":C.value&&C.value!==l.id&&d.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",onMouseover:n=>ye(l),onMouseleave:a[0]||(a[0]=n=>{C.value=null,_.value=!1}),style:e.normalizeStyle(`animation-delay:${i*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,Le))]))),256))],8,Ge),e.renderSlot(o.$slots,"svg",{svg:{height:r.value.height,width:r.value.width}},void 0,!0)],10,We)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",je,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Q)||e.unref(Z)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Be._sfc_main,{show:d.value.showTooltip&&_.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:U.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:J,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(qe,{key:0,value:k.value,"onUpdate:value":a[1]||(a[1]=l=>k.value=l),min:oe.value,max:me.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:M},{"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($e.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(Te.DataTable,{key:`table_${j.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,He)]),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)],44,Ue))}},Ye=ie._export_sfc(Xe,[["__scopeId","data-v-cd6ced56"]]);exports.default=Ye;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-CbMyzHGj.cjs"),xe=require("./Title-BzcIyo-x.cjs"),se=require("./usePrinter-BzVsUZ9_.cjs"),L=require("./useResponsive-BJ7DTGpm.cjs"),$e=require("./vue-ui-accordion-Uftgxo97.cjs"),Te=require("./DataTable-D0qYxBVZ.cjs"),Ne=require("./BaseIcon-BnnMILPX.cjs"),ie=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ue=require("./useNestedProp-DqPx8kFh.cjs"),Pe=require("./PackageVersion-sBYhtscP.cjs"),Be=require("./Tooltip-DWo9kakv.cjs"),Fe=require("./PenAndPaper-CHz_Iy5T.cjs"),ze=require("./useUserOptionState-BgepsfED.cjs"),Oe=c=>(e.pushScopeId("data-v-b4e6aee9"),c=c(),e.popScopeId(),c),Ve={"data-html2canvas-ignore":""},Ae={key:0,class:"reset-wrapper"},Ee={key:1,class:"reset-wrapper"},_e={class:"mono-slicer"},Ie=Oe(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Me=["min","max","value"],Re={__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 s=c;e.useCssVars(g=>({"782b8172":E.value,"102109e6":x.value,"642212d7":f.value,"1f5369d4":c.selectColor,"22b98ab8":y.value}));const E=e.computed(()=>s.inputColor),y=e.computed(()=>s.background),f=e.computed(()=>`${s.selectColor}33`),x=e.computed(()=>s.borderColor);function $(){P("reset")}const h=e.computed(()=>{const g=s.max-s.min,p=0,b=(s.value-s.min)/g*100;return{left:`${p}%`,width:`${b-p}%`,background:s.selectColor}});return(g,p)=>(e.openBlock(),e.createElementBlock("div",Ve,[c.value!==c.source?(e.openBlock(),e.createElementBlock("div",Ae,[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(Ne.default,{name:"refresh",stroke:c.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",Ee)),e.createElementVNode("div",_e,[Ie,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,Me)])]))}},qe=ie._export_sfc(Re,[["__scopeId","data-v-b4e6aee9"]]),Ue=["id"],We=["xmlns","viewBox"],De=["width","height"],Ge=["transform"],Le=["fill","font-weight","x","y","font-size","transform","onMouseover"],je={key:4,class:"vue-data-ui-watermark"},He=["innerHTML"],Xe={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(c,{expose:P}){const s=c,{vue_ui_word_cloud:E}=u.useConfig(),y=e.computed({get(){return!!s.dataset&&s.dataset.length},set(o){return o}}),f=e.ref(typeof s.dataset=="string"?u.createWordCloudDatasetFromPlainText(s.dataset):s.dataset.map(o=>({...o,value:u.checkNaN(o.value)}))),x=e.ref(u.createUid()),$=e.ref(0),h=e.ref(null),g=e.ref(null),p=e.ref(null),b=e.ref(0),j=e.ref(0),_=e.ref(!1),t=e.computed({get:()=>Y(),set:o=>o}),{userOptionsVisible:I,setUserOptionsVisibility:H,keepUserOptionState:X}=ze.useUserOptionState({config:t.value});function Y(){const o=ue.useNestedProp({userConfig:s.config,defaultConfig:E});return o.theme?{...ue.useNestedProp({userConfig:u.themes.vue_ui_word_cloud[o.theme]||s.config,defaultConfig:o}),customPalette:u.themePalettes[o.theme]||u.palette}:o}e.watch(()=>s.config,o=>{t.value=Y(),I.value=!t.value.showOnChartHover,K(),b.value+=1,j.value+=1,M()},{deep:!0});const J=e.ref(null),k=e.ref(0),r=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}),ce=L.throttle(()=>{const{width:o,height:a}=L.useResponsive({chart:h.value,title:t.value.style.chart.title.text?g.value:null,slicer:t.value.style.chart.zoom.show&&J.value,source:p.value});r.value.width=o,r.value.height=a,e.nextTick(R)});e.watch(()=>k.value,()=>{de()});const de=L.debounce(()=>{R()},10);function M(){k.value=oe.value}const B=e.ref(null);e.onMounted(()=>{K(),M()});function K(){u.objectIsEmpty(s.dataset)?u.error({componentName:"VueUiWordCloud",type:"dataset"}):f.value.forEach((o,a)=>{u.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{y.value=!1,u.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(B.value=new ResizeObserver(ce),B.value.observe(h.value.parentNode))}e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:Q,isImaging:Z,generatePdf:ee,generateImage:te}=se.usePrinter({elementId:`wordCloud_${x.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 ve(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 he(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 pe(o,a,l){const i=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,w=0;return o.forEach(S=>{let D=!1;for(let A=0;A<Math.max(a,l)/2&&!D;A+=t.value.style.chart.words.packingWeight)for(let G=0;G<360&&!D;G+=t.value.style.chart.words.packingWeight){const re=G*Math.PI/180,be=v+A*Math.cos(re)-S.width/2,ke=w+A*Math.sin(re)-S.height/2,m={...S,x:be,y:ke},Ce=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,we=i.some(Se=>he(m,Se));Ce&&!we&&(i.push(m),D=!0)}}),i}const T=e.ref([]);e.watch(()=>s.dataset,R,{immediate:!0});const oe=e.computed(()=>Math.min(...f.value.map(o=>o.value))),me=e.computed(()=>Math.max(...f.value.map(o=>o.value)));function R(){const o=[...f.value].filter(n=>n.value>=k.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),i=[...f.value].filter(n=>n.value>=k.value).map((n,v)=>{const w=(n.value-l)/(a-l)*(r.value.maxFontSize-r.value.minFontSize)+r.value.minFontSize,S=ve(n.name,w);return{...n,id:u.createUid(),fontSize:w,width:S.width,height:S.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[v]||t.value.customPalette[v%t.value.customPalette.length]||u.palette[v]||u.palette[v%u.palette.length]:t.value.style.chart.words.color}});T.value=pe(i,r.value.width,r.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 le(){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=u.createCsvContent(a);u.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=u.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}}),O=e.ref(!1);function fe(o){O.value=o,$.value+=1}function ge(){return T.value}function ae(){d.value.showTable=!d.value.showTable}function ne(){d.value.showTooltip=!d.value.showTooltip}const V=e.ref(!1);function q(){V.value=!V.value}P({getData:ge,generateCsv:le,generatePdf:ee,generateImage:te,toggleTable:ae,toggleTooltip:ne,toggleAnnotator:q});const C=e.ref(null),N=e.ref(!1),U=e.ref(""),W=e.ref(null);function ye(o){if(!d.value.showTooltip)return;C.value=o.id,W.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(N.value=!1,u.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(U.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>`;U.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}_.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:h,id:`wordCloud_${x.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:a[3]||(a[3]=()=>e.unref(H)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(H)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Fe.PenAndPaper,{key:0,parent:h.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:V.value,onClose:q},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(xe._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.unref(X)||e.unref(I))?(e.openBlock(),e.createBlock(se.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Q),isImaging:e.unref(Z),uid:x.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:O.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:V.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(ee),onGenerateCsv:le,onGenerateImage:e.unref(te),onToggleTable:ae,onToggleTooltip:ne,onToggleAnnotator:q,style:e.normalizeStyle({visibility:e.unref(X)?e.unref(I)?"visible":"hidden":"visible"})},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","style"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,class:e.normalizeClass({"vue-data-ui-fullscreen--on":O.value,"vue-data-ui-fulscreen--off":!O.value}),xmlns:e.unref(u.XMLNS),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode(Pe._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,De)):e.createCommentVNode("",!0),e.createElementVNode("g",{transform:`translate(${(r.value.width<=0?10:r.value.width)/2}, ${(r.value.height<=0?10:r.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":C.value&&C.value===l.id&&d.value.showTooltip,"word-not-selected":C.value&&C.value!==l.id&&d.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",onMouseover:n=>ye(l),onMouseleave:a[0]||(a[0]=n=>{C.value=null,_.value=!1}),style:e.normalizeStyle(`animation-delay:${i*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,Le))]))),256))],8,Ge),e.renderSlot(o.$slots,"svg",{svg:{height:r.value.height,width:r.value.width}},void 0,!0)],10,We)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",je,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Q)||e.unref(Z)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Be._sfc_main,{show:d.value.showTooltip&&_.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:U.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:J,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(qe,{key:0,value:k.value,"onUpdate:value":a[1]||(a[1]=l=>k.value=l),min:oe.value,max:me.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:M},{"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($e.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(Te.DataTable,{key:`table_${j.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,He)]),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)],44,Ue))}},Ye=ie._export_sfc(Xe,[["__scopeId","data-v-cd6ced56"]]);exports.default=Ye;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { useCssVars as De, computed as g, openBlock as u, createElementBlock as h, createVNode as le, renderSlot as d, createElementVNode as x, normalizeStyle as j, pushScopeId as Ee, popScopeId as Ge, ref as n, watch as ae, onMounted as Le, onBeforeUnmount as Xe, unref as v, createBlock as O, createCommentVNode as y, createSlots as je, withCtx as m, normalizeProps as A, guardReactiveProps as _, normalizeClass as Ce, Fragment as He, renderList as Ye, toDisplayString as ke, createTextVNode as qe, nextTick as we } from "vue";
|
|
2
|
-
import { u as Je, a3 as Ke, v as Qe, c as $e, t as Ze, a as et, p as X, o as tt, e as xe, g as ot, f as at, X as lt, q as st, r as nt, x as rt } from "./index-
|
|
3
|
-
import { _ as ut } from "./Title-
|
|
4
|
-
import { u as it, U as ct } from "./usePrinter-
|
|
2
|
+
import { u as Je, a3 as Ke, v as Qe, c as $e, t as Ze, a as et, p as X, o as tt, e as xe, g as ot, f as at, X as lt, q as st, r as nt, x as rt } from "./index-DMvK32iW.js";
|
|
3
|
+
import { _ as ut } from "./Title-2MaMBji9.js";
|
|
4
|
+
import { u as it, U as ct } from "./usePrinter-7L_B-x1F.js";
|
|
5
5
|
import { d as dt, t as vt, u as ht } from "./useResponsive-CoxXLe23.js";
|
|
6
|
-
import mt from "./vue-ui-accordion-
|
|
7
|
-
import { D as pt } from "./DataTable
|
|
8
|
-
import ft from "./BaseIcon-
|
|
6
|
+
import mt from "./vue-ui-accordion-D9SRsoRT.js";
|
|
7
|
+
import { D as pt } from "./DataTable--ofk92Yb.js";
|
|
8
|
+
import ft from "./BaseIcon-QuseiwxO.js";
|
|
9
9
|
import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { u as Se } from "./useNestedProp-
|
|
11
|
-
import { _ as gt } from "./PackageVersion-
|
|
12
|
-
import { _ as yt } from "./Tooltip-
|
|
13
|
-
import { P as bt } from "./PenAndPaper-
|
|
10
|
+
import { u as Se } from "./useNestedProp-3oLbIjGJ.js";
|
|
11
|
+
import { _ as gt } from "./PackageVersion-BqwuIW-T.js";
|
|
12
|
+
import { _ as yt } from "./Tooltip-C_eI7NfC.js";
|
|
13
|
+
import { P as bt } from "./PenAndPaper-LsFeEPDj.js";
|
|
14
14
|
import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
15
|
const kt = (c) => (Ee("data-v-b4e6aee9"), c = c(), Ge(), c), wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
16
16
|
key: 0,
|