vue-data-ui 2.4.72 → 2.4.73
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-CLfb17bE.js → Arrow-BFzy8iU0.js} +1 -1
- package/dist/{Arrow-CN50TVU9.cjs → Arrow-DB-kDYKr.cjs} +1 -1
- package/dist/{BaseIcon-B7a1z2Up.js → BaseIcon-CgOl0yXt.js} +1 -1
- package/dist/{BaseIcon-DlQD7QSN.cjs → BaseIcon-Drlv7iCA.cjs} +1 -1
- package/dist/{DataTable-BruSoxOi.cjs → DataTable-C010-IaF.cjs} +1 -1
- package/dist/{DataTable-C9e1WMpM.js → DataTable-DtvVWOjy.js} +2 -2
- package/dist/{Legend-Bjael7Lf.js → Legend-CUhyETYn.js} +2 -2
- package/dist/{Legend-D-SELuZe.cjs → Legend-DzWbU4w8.cjs} +1 -1
- package/dist/{PackageVersion-BeXS6McZ.js → PackageVersion-CBKqLhAX.js} +1 -1
- package/dist/{PackageVersion-DAkhxj-f.cjs → PackageVersion-CDIO8v3f.cjs} +1 -1
- package/dist/{PenAndPaper-DNhQakvY.js → PenAndPaper-DtLD2Sq6.js} +3 -3
- package/dist/{PenAndPaper-BowPL2Il.cjs → PenAndPaper-bCXNnqQx.cjs} +1 -1
- package/dist/{Shape-h3DsSp_-.cjs → Shape-BWqOjk22.cjs} +1 -1
- package/dist/{Shape-OgMTjCi1.js → Shape-DmSvDf5d.js} +1 -1
- package/dist/{Slicer-PaGIz5KP.js → Slicer-D6mP0vjU.js} +134 -131
- package/dist/Slicer-DGe_w6Mr.cjs +1 -0
- package/dist/{Title-DnqzgFhZ.cjs → Title-BlC0Lcua.cjs} +1 -1
- package/dist/{Title-BsgAEzEH.js → Title-C7EOYmwp.js} +1 -1
- package/dist/{Tooltip-CJ2dmh5N.js → Tooltip-Bip4kr-u.js} +1 -1
- package/dist/{Tooltip-DVhz-MoB.cjs → Tooltip-DLISx9B0.cjs} +1 -1
- package/dist/{index-D_FF1L8g.cjs → index-DwCsX1sv.cjs} +1 -1
- package/dist/{index-8qh5-V_s.js → index-MWHrTFPq.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BssRwiSn.cjs → useNestedProp-B618ZN94.cjs} +1 -1
- package/dist/{useNestedProp-DCcM4sb2.js → useNestedProp-CTDeT4KA.js} +1 -1
- package/dist/{usePrinter-BPx95i_o.js → usePrinter-CEEgHfhF.js} +1 -1
- package/dist/{usePrinter-DWgia2OZ.cjs → usePrinter-DTDziYU0.cjs} +1 -1
- package/dist/{vue-data-ui-2pEKgcSo.js → vue-data-ui-CpZXDp-R.js} +60 -60
- package/dist/{vue-data-ui-EK6QFOgP.cjs → vue-data-ui-Dpm9x-2I.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-ELIobAIt.cjs → vue-ui-3d-bar-Ccb9qG2p.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-C5eY-yfY.js → vue-ui-3d-bar-vIP3nCRG.js} +9 -9
- package/dist/{vue-ui-accordion-_HWYGVCz.js → vue-ui-accordion-BnV2tlGp.js} +3 -3
- package/dist/{vue-ui-accordion-_aV8poyq.cjs → vue-ui-accordion-IzKVFSed.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DU5DuW3M.js → vue-ui-age-pyramid-C15VX7G1.js} +10 -10
- package/dist/{vue-ui-age-pyramid-DTC_7OXI.cjs → vue-ui-age-pyramid-CDTgy9zN.cjs} +1 -1
- package/dist/{vue-ui-annotator-BOrXbxzC.cjs → vue-ui-annotator-BhENVGnQ.cjs} +1 -1
- package/dist/{vue-ui-annotator-Biq5p11w.js → vue-ui-annotator-BhtsSaDR.js} +1 -1
- package/dist/{vue-ui-bullet-Bfm6YWaH.cjs → vue-ui-bullet-CGlE3ghb.cjs} +1 -1
- package/dist/{vue-ui-bullet-DXWHl13x.js → vue-ui-bullet-dHDkKetX.js} +8 -8
- package/dist/{vue-ui-candlestick-dBM9-MG_.js → vue-ui-candlestick-BLWsnTPr.js} +11 -11
- package/dist/{vue-ui-candlestick-D_DOar6U.cjs → vue-ui-candlestick-DzHbNn0a.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CuyiwZns.cjs → vue-ui-carousel-table-CUmFG7Yv.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CbBhVPoR.js → vue-ui-carousel-table-xhtSLVVG.js} +4 -4
- package/dist/{vue-ui-chestnut-CIESkynq.cjs → vue-ui-chestnut-DY60WQ-p.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DEd_N15d.js → vue-ui-chestnut-DZPVlG7z.js} +8 -8
- package/dist/{vue-ui-cursor-CrCQZPxP.js → vue-ui-cursor-DCiuO-e6.js} +2 -2
- package/dist/{vue-ui-cursor-DvCYGDKC.cjs → vue-ui-cursor-DYsuRM6Y.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B9B22sPx.js → vue-ui-dashboard-BJBOz0tQ.js} +2 -2
- package/dist/{vue-ui-dashboard-DhABN3dM.cjs → vue-ui-dashboard-DnvPLTBU.cjs} +1 -1
- package/dist/{vue-ui-digits-B0HLa5LO.cjs → vue-ui-digits-BmDSHirU.cjs} +1 -1
- package/dist/{vue-ui-digits-4LIGxajX.js → vue-ui-digits-a0Wd0sll.js} +2 -2
- package/dist/{vue-ui-donut-CofvsU-e.js → vue-ui-donut-Cm1k9I1a.js} +12 -12
- package/dist/{vue-ui-donut-DOG6sGjX.cjs → vue-ui-donut-De9h9Izs.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-WkMSWUWE.cjs → vue-ui-donut-evolution-BwDfL-fW.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DC-HGEmA.js → vue-ui-donut-evolution-khk-S3e6.js} +11 -11
- package/dist/{vue-ui-dumbbell-BzbyueJb.cjs → vue-ui-dumbbell-DNHkmkDa.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DGXjoYmQ.js → vue-ui-dumbbell-dKD-xCij.js} +10 -10
- package/dist/{vue-ui-flow-3ZH7Qi92.js → vue-ui-flow-D5ZIyvku.js} +9 -9
- package/dist/{vue-ui-flow-Db3zM3mK.cjs → vue-ui-flow-QYq8rVS6.cjs} +1 -1
- package/dist/{vue-ui-funnel-LbVf9BeW.js → vue-ui-funnel-CjcbxEZl.js} +9 -9
- package/dist/{vue-ui-funnel-CuMpEmn0.cjs → vue-ui-funnel-xNDHpOxd.cjs} +1 -1
- package/dist/{vue-ui-galaxy-C8WmSWb9.cjs → vue-ui-galaxy-Bq1szxYu.cjs} +1 -1
- package/dist/{vue-ui-galaxy-1Yz6cQAG.js → vue-ui-galaxy-L_b8up-c.js} +11 -11
- package/dist/{vue-ui-gauge-DqihPV_P.cjs → vue-ui-gauge-BZ_Gnmhv.cjs} +1 -1
- package/dist/{vue-ui-gauge-BUX-Y0ns.js → vue-ui-gauge-i1loUdwb.js} +7 -7
- package/dist/{vue-ui-gizmo-DkltihUP.js → vue-ui-gizmo-BhADCvS5.js} +3 -3
- package/dist/{vue-ui-gizmo-dsVyX-Gy.cjs → vue-ui-gizmo-rUiya6Wf.cjs} +1 -1
- package/dist/{vue-ui-heatmap-dmD4XOHI.js → vue-ui-heatmap-BMCUahJg.js} +10 -10
- package/dist/{vue-ui-heatmap-BnjjNJZZ.cjs → vue-ui-heatmap-Bt3AkFuu.cjs} +1 -1
- package/dist/{vue-ui-history-plot-mhIwlnwK.js → vue-ui-history-plot-Bh1B6SDn.js} +11 -11
- package/dist/{vue-ui-history-plot-w3RP7fwd.cjs → vue-ui-history-plot-DhHpEPgC.cjs} +1 -1
- package/dist/{vue-ui-kpi-BcbbV0hc.cjs → vue-ui-kpi-CVwaWBQ4.cjs} +1 -1
- package/dist/{vue-ui-kpi-D7mGEnB3.js → vue-ui-kpi-DG85na3Z.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bohv3cSj.cjs → vue-ui-mini-loader-CW5uljhA.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CGv90P9i.js → vue-ui-mini-loader-g-wfME0o.js} +2 -2
- package/dist/{vue-ui-molecule-BG9cfkrz.js → vue-ui-molecule-C22D7jDQ.js} +11 -11
- package/dist/{vue-ui-molecule-D5k0HYa2.cjs → vue-ui-molecule-xNKSRUYy.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Ba_14roQ.cjs → vue-ui-mood-radar-DB083W53.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DSpUyreg.js → vue-ui-mood-radar-DHqkzff5.js} +11 -11
- package/dist/{vue-ui-nested-donuts-BdqiGh-R.cjs → vue-ui-nested-donuts-A9V5sFjm.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-rO3UMZAL.js → vue-ui-nested-donuts-CfvBkvqM.js} +11 -11
- package/dist/{vue-ui-onion-C5X37vPh.js → vue-ui-onion-BFtuRugn.js} +11 -11
- package/dist/{vue-ui-onion-B6_nJefU.cjs → vue-ui-onion-BR3FYwgu.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CDui2aQ-.js → vue-ui-parallel-coordinate-plot-BhbIRdY8.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-BHrMtcte.cjs → vue-ui-parallel-coordinate-plot-CPjbY0gB.cjs} +1 -1
- package/dist/{vue-ui-quadrant-C0dptvDp.js → vue-ui-quadrant-Cd2G90CO.js} +12 -12
- package/dist/{vue-ui-quadrant-DkICM7L1.cjs → vue-ui-quadrant-CtCmnyOq.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-B3NgquT-.js → vue-ui-quick-chart-DjbkyEAn.js} +9 -9
- package/dist/{vue-ui-quick-chart-epzO65Qe.cjs → vue-ui-quick-chart-acDBigv4.cjs} +1 -1
- package/dist/{vue-ui-radar-BDu1Lb92.js → vue-ui-radar-CtHDktMI.js} +12 -12
- package/dist/{vue-ui-radar-BlDP2ltg.cjs → vue-ui-radar-GyNGG4F_.cjs} +1 -1
- package/dist/{vue-ui-rating-DPA1N19S.cjs → vue-ui-rating-CWItdxSk.cjs} +1 -1
- package/dist/{vue-ui-rating-YUe4-z9g.js → vue-ui-rating-CYgVuBjo.js} +2 -2
- package/dist/{vue-ui-relation-circle-B9DclSPa.cjs → vue-ui-relation-circle-KJn9wBGu.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-B4oOiacR.js → vue-ui-relation-circle-ejvqhT4b.js} +7 -7
- package/dist/{vue-ui-rings-pv1lN0yF.cjs → vue-ui-rings-DiH0bBai.cjs} +1 -1
- package/dist/{vue-ui-rings-yQ1wud9d.js → vue-ui-rings-KD_QCsYE.js} +12 -12
- package/dist/{vue-ui-scatter-Z12Hc8PS.cjs → vue-ui-scatter-CvElUANS.cjs} +1 -1
- package/dist/{vue-ui-scatter-BIb8D47q.js → vue-ui-scatter-DOH1HPw3.js} +12 -12
- package/dist/{vue-ui-screenshot-BzvtPXu-.js → vue-ui-screenshot-BITjkBS9.js} +1 -1
- package/dist/{vue-ui-screenshot-Bh5Uij8S.cjs → vue-ui-screenshot-C7ol12m8.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CHNO77KR.js → vue-ui-skeleton-Bo8ydREb.js} +3 -3
- package/dist/{vue-ui-skeleton-DTQiIe0D.cjs → vue-ui-skeleton-DZILAxJl.cjs} +1 -1
- package/dist/{vue-ui-smiley-C1_yv17I.js → vue-ui-smiley-BqHQ_97X.js} +2 -2
- package/dist/{vue-ui-smiley-Bngy0Su8.cjs → vue-ui-smiley-DZlSDUEh.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-B04pgYYY.js → vue-ui-spark-trend-BRK61Rnt.js} +5 -5
- package/dist/{vue-ui-spark-trend-DvhbKNiP.cjs → vue-ui-spark-trend-iuKFcv_t.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DYEXaLEX.cjs → vue-ui-sparkbar-CNDwvl9M.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BfQWl0Ph.js → vue-ui-sparkbar-DV71hamO.js} +4 -4
- package/dist/{vue-ui-sparkgauge-CgdyWZ9L.cjs → vue-ui-sparkgauge-Bw6Q3ftn.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BaRac2ps.js → vue-ui-sparkgauge-DJxWC0FB.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CQvvoMha.cjs → vue-ui-sparkhistogram-C0VkDLpC.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DrNOCXoY.js → vue-ui-sparkhistogram-C_oCdruX.js} +5 -5
- package/dist/{vue-ui-sparkline-Drp8vh5E.cjs → vue-ui-sparkline-D6q5IZbj.cjs} +1 -1
- package/dist/{vue-ui-sparkline-KLlw2yZC.js → vue-ui-sparkline-famAF3Kt.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-8_tyDIjs.cjs → vue-ui-sparkstackbar-BGSXz3Ot.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BFLhP1m7.js → vue-ui-sparkstackbar-BLq5OGLn.js} +5 -5
- package/dist/{vue-ui-stackbar-DFqiZTj4.js → vue-ui-stackbar-CI6DowT7.js} +13 -13
- package/dist/{vue-ui-stackbar-CaAjHzYZ.cjs → vue-ui-stackbar-DUsNMktN.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-CUxgNiM9.cjs → vue-ui-strip-plot-9sHPtfR9.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-t3MggtPk.js → vue-ui-strip-plot-DsZccTxg.js} +11 -11
- package/dist/{vue-ui-table-BzDzzH1k.js → vue-ui-table-0jjDpR0j.js} +1 -1
- package/dist/{vue-ui-table-BYORjrPD.cjs → vue-ui-table-DA9O6gMs.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DtGUwkL-.cjs → vue-ui-table-heatmap-BXciKv8R.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-H118AqSZ.js → vue-ui-table-heatmap-d9ATqjZ8.js} +4 -4
- package/dist/{vue-ui-table-sparkline-BX60snbo.js → vue-ui-table-sparkline-BJ6dbbuD.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CaA75I-R.cjs → vue-ui-table-sparkline-DiQT9k1I.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BcaIl0GS.js → vue-ui-thermometer-f0uNNHZ1.js} +7 -7
- package/dist/{vue-ui-thermometer-Dwh676v_.cjs → vue-ui-thermometer-vMezVlT_.cjs} +1 -1
- package/dist/{vue-ui-timer-CT9K3Nai.cjs → vue-ui-timer-Ba2N3EeH.cjs} +1 -1
- package/dist/{vue-ui-timer-DA5w0YEY.js → vue-ui-timer-CJm3cvYi.js} +5 -5
- package/dist/{vue-ui-tiremarks-BbIRKCea.cjs → vue-ui-tiremarks-CDGyg1_d.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DD72vSFB.js → vue-ui-tiremarks-CqeZ7inu.js} +7 -7
- package/dist/{vue-ui-treemap-B0fuS8JS.cjs → vue-ui-treemap-BgTZ1GXz.cjs} +1 -1
- package/dist/{vue-ui-treemap-JNb7kuj7.js → vue-ui-treemap-DZPMwhAL.js} +11 -11
- package/dist/{vue-ui-vertical-bar-D-BO81vC.cjs → vue-ui-vertical-bar-BSgyIuF3.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CubDThHO.js → vue-ui-vertical-bar-BuoDiJN8.js} +12 -12
- package/dist/{vue-ui-waffle-CMaPYbJy.cjs → vue-ui-waffle-C3s0ofJ8.cjs} +1 -1
- package/dist/{vue-ui-waffle-BmjT5hQH.js → vue-ui-waffle-DhZwKoIz.js} +12 -12
- package/dist/{vue-ui-wheel-DKAx7TxT.js → vue-ui-wheel-HzkUuTdN.js} +7 -7
- package/dist/{vue-ui-wheel-6-koPEGF.cjs → vue-ui-wheel-rayY_1d1.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-xH2sGgSd.cjs → vue-ui-word-cloud-BEQkmaGf.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CSHPDLUC.js → vue-ui-word-cloud-C3W2SptW.js} +10 -10
- package/dist/{vue-ui-xy-DakKzEAh.js → vue-ui-xy-Br-7q7r_.js} +25 -25
- package/dist/{vue-ui-xy-canvas-vKNc5ac2.js → vue-ui-xy-canvas-BpjQGfiF.js} +11 -11
- package/dist/{vue-ui-xy-canvas-DWIZCBES.cjs → vue-ui-xy-canvas-BqLqQpxG.cjs} +1 -1
- package/dist/{vue-ui-xy-DSCtfSeX.cjs → vue-ui-xy-u_mB2PaU.cjs} +2 -2
- package/package.json +1 -1
- package/dist/Slicer-BfoWfns5.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-D_FF1L8g.cjs"),xe=require("./Title-DnqzgFhZ.cjs"),se=require("./usePrinter-DWgia2OZ.cjs"),L=require("./useResponsive-BJ7DTGpm.cjs"),$e=require("./vue-ui-accordion-_aV8poyq.cjs"),Te=require("./DataTable-BruSoxOi.cjs"),Ne=require("./BaseIcon-DlQD7QSN.cjs"),ie=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ue=require("./useNestedProp-BssRwiSn.cjs"),Pe=require("./PackageVersion-DAkhxj-f.cjs"),Be=require("./Tooltip-DVhz-MoB.cjs"),Fe=require("./PenAndPaper-BowPL2Il.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-DwCsX1sv.cjs"),xe=require("./Title-BlC0Lcua.cjs"),se=require("./usePrinter-DTDziYU0.cjs"),L=require("./useResponsive-BJ7DTGpm.cjs"),$e=require("./vue-ui-accordion-IzKVFSed.cjs"),Te=require("./DataTable-C010-IaF.cjs"),Ne=require("./BaseIcon-Drlv7iCA.cjs"),ie=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ue=require("./useNestedProp-B618ZN94.cjs"),Pe=require("./PackageVersion-CDIO8v3f.cjs"),Be=require("./Tooltip-DLISx9B0.cjs"),Fe=require("./PenAndPaper-bCXNnqQx.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-MWHrTFPq.js";
|
|
3
|
+
import { _ as ut } from "./Title-C7EOYmwp.js";
|
|
4
|
+
import { u as it, U as ct } from "./usePrinter-CEEgHfhF.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-BnV2tlGp.js";
|
|
7
|
+
import { D as pt } from "./DataTable-DtvVWOjy.js";
|
|
8
|
+
import ft from "./BaseIcon-CgOl0yXt.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-CTDeT4KA.js";
|
|
11
|
+
import { _ as gt } from "./PackageVersion-CBKqLhAX.js";
|
|
12
|
+
import { _ as yt } from "./Tooltip-Bip4kr-u.js";
|
|
13
|
+
import { P as bt } from "./PenAndPaper-DtLD2Sq6.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,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { c as J, a as K, t as Q, z as j, p as $, V as X, O as R, f as U, L as ee, G as te, i as re, a4 as ae, a1 as le, a5 as ie, v as se, a6 as ne, d as he, B as oe, b as ce, q as de, R as ue, a7 as ge, r as fe, e as Ie, a2 as me, y as Ne, C as xe, x as be, a8 as Fe, Z as _e, o as Ae, s as ye, w as Le, F as Ce, A as Se, u as ke } from "./index-
|
|
2
|
-
import { D as we } from "./DataTable-
|
|
3
|
-
import { _ as Oe } from "./Title-
|
|
4
|
-
import { _ as Ge, u as ve } from "./Tooltip-
|
|
5
|
-
import { U as ze } from "./usePrinter-
|
|
6
|
-
import { _ as pe } from "./Shape-
|
|
7
|
-
import Me from "./BaseIcon-
|
|
8
|
-
import Ve from "./vue-ui-table-sparkline-
|
|
9
|
-
import Te from "./vue-ui-skeleton-
|
|
10
|
-
import { S as Pe } from "./Slicer-
|
|
11
|
-
import Re from "./vue-ui-accordion-
|
|
12
|
-
import { u as Z } from "./useNestedProp-
|
|
13
|
-
import { _ as De } from "./PackageVersion-
|
|
14
|
-
import { P as He } from "./PenAndPaper-
|
|
1
|
+
import { c as J, a as K, t as Q, z as j, p as $, V as X, O as R, f as U, L as ee, G as te, i as re, a4 as ae, a1 as le, a5 as ie, v as se, a6 as ne, d as he, B as oe, b as ce, q as de, R as ue, a7 as ge, r as fe, e as Ie, a2 as me, y as Ne, C as xe, x as be, a8 as Fe, Z as _e, o as Ae, s as ye, w as Le, F as Ce, A as Se, u as ke } from "./index-MWHrTFPq.js";
|
|
2
|
+
import { D as we } from "./DataTable-DtvVWOjy.js";
|
|
3
|
+
import { _ as Oe } from "./Title-C7EOYmwp.js";
|
|
4
|
+
import { _ as Ge, u as ve } from "./Tooltip-Bip4kr-u.js";
|
|
5
|
+
import { U as ze } from "./usePrinter-CEEgHfhF.js";
|
|
6
|
+
import { _ as pe } from "./Shape-DmSvDf5d.js";
|
|
7
|
+
import Me from "./BaseIcon-CgOl0yXt.js";
|
|
8
|
+
import Ve from "./vue-ui-table-sparkline-BJ6dbbuD.js";
|
|
9
|
+
import Te from "./vue-ui-skeleton-Bo8ydREb.js";
|
|
10
|
+
import { S as Pe } from "./Slicer-D6mP0vjU.js";
|
|
11
|
+
import Re from "./vue-ui-accordion-BnV2tlGp.js";
|
|
12
|
+
import { u as Z } from "./useNestedProp-CTDeT4KA.js";
|
|
13
|
+
import { _ as De } from "./PackageVersion-CBKqLhAX.js";
|
|
14
|
+
import { P as He } from "./PenAndPaper-DtLD2Sq6.js";
|
|
15
15
|
import { resolveComponent as T, openBlock as l, createElementBlock as i, normalizeClass as P, normalizeStyle as L, createBlock as D, createCommentVNode as c, createSlots as Be, withCtx as M, renderSlot as S, normalizeProps as H, guardReactiveProps as B, createVNode as q, createElementVNode as f, Fragment as I, renderList as m, toDisplayString as k, mergeProps as We, withDirectives as Ee, vModelCheckbox as Ye, createTextVNode as qe } from "vue";
|
|
16
16
|
import { _ as Xe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
const Ue = J(), Ze = {
|
|
@@ -1795,25 +1795,25 @@ function ra(r, s, o, u, t, e) {
|
|
|
1795
1795
|
}, [
|
|
1796
1796
|
a.useArea && a.plots.length > 1 ? (l(), i("g", ir, [
|
|
1797
1797
|
a.smooth ? (l(), i(I, { key: 0 }, [
|
|
1798
|
+
f("path", {
|
|
1799
|
+
d: `M ${a.plots[0] ? a.plots[0].x : Math.min(...a.plots.filter((n) => !!n).map((n) => n.x))},${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} ${a.curve} L ${a.plots.at(-1) ? a.plots.at(-1).x : e.drawingArea.left + e.slot.line * h + e.slot.line / 2},${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} Z`,
|
|
1800
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1801
|
+
}, null, 8, sr),
|
|
1798
1802
|
r.$slots.pattern ? (l(), i("path", {
|
|
1799
1803
|
key: 0,
|
|
1800
1804
|
d: `M ${a.plots[0] ? a.plots[0].x : Math.min(...a.plots.filter((n) => !!n).map((n) => n.x))},${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} ${a.curve} L ${a.plots.at(-1) ? a.plots.at(-1).x : e.drawingArea.left + e.slot.line * h + e.slot.line / 2},${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} Z`,
|
|
1801
1805
|
fill: `url(#pattern_${t.uniqueId}_${a.slotAbsoluteIndex})`
|
|
1802
|
-
}, null, 8,
|
|
1803
|
-
key: 1,
|
|
1804
|
-
d: `M ${a.plots[0] ? a.plots[0].x : Math.min(...a.plots.filter((n) => !!n).map((n) => n.x))},${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} ${a.curve} L ${a.plots.at(-1) ? a.plots.at(-1).x : e.drawingArea.left + e.slot.line * h + e.slot.line / 2},${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} Z`,
|
|
1805
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1806
|
-
}, null, 8, nr))
|
|
1806
|
+
}, null, 8, nr)) : c("", !0)
|
|
1807
1807
|
], 64)) : (l(), i(I, { key: 1 }, [
|
|
1808
|
+
f("path", {
|
|
1809
|
+
d: `M${a.area}Z`,
|
|
1810
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1811
|
+
}, null, 8, hr),
|
|
1808
1812
|
r.$slots.pattern ? (l(), i("path", {
|
|
1809
1813
|
key: 0,
|
|
1810
1814
|
d: `M${a.area}Z`,
|
|
1811
1815
|
fill: `url(#pattern_${t.uniqueId}_${a.slotAbsoluteIndex})`
|
|
1812
|
-
}, null, 8,
|
|
1813
|
-
key: 1,
|
|
1814
|
-
d: `M${a.area}Z`,
|
|
1815
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1816
|
-
}, null, 8, or))
|
|
1816
|
+
}, null, 8, or)) : c("", !0)
|
|
1817
1817
|
], 64))
|
|
1818
1818
|
])) : c("", !0),
|
|
1819
1819
|
a.smooth && a.plots.length > 1 ? (l(), i("path", {
|
|
@@ -2472,7 +2472,7 @@ function ra(r, s, o, u, t, e) {
|
|
|
2472
2472
|
}, 8, ["config"])) : c("", !0)
|
|
2473
2473
|
], 46, Je);
|
|
2474
2474
|
}
|
|
2475
|
-
const ba = /* @__PURE__ */ Xe(Ze, [["render", ra], ["__scopeId", "data-v-
|
|
2475
|
+
const ba = /* @__PURE__ */ Xe(Ze, [["render", ra], ["__scopeId", "data-v-e67e9b01"]]);
|
|
2476
2476
|
export {
|
|
2477
2477
|
ba as default
|
|
2478
2478
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ref as i, computed as x, useSlots as Ta, onMounted as aa, watch as A, nextTick as ce, onBeforeUnmount as Oa, openBlock as z, createElementBlock as K, normalizeStyle as B, normalizeClass as Ra, unref as S, createBlock as E, createCommentVNode as H, createSlots as Pa, withCtx as b, renderSlot as L, normalizeProps as Y, guardReactiveProps as V, createElementVNode as Q, createVNode as Fa, toDisplayString as la, createTextVNode as Ea } from "vue";
|
|
2
|
-
import { u as Da, c as Na, t as Aa, a as Ha, p as _, C as de, b as _a, D as we, i as ee, f as ae, Z as Ua, J as Wa, d as ta, a4 as Xa, o as Ba, e as Ya, x as oa, y as Va, q as Za, r as Ga, s as le, l as ja } from "./index-
|
|
2
|
+
import { u as Da, c as Na, t as Aa, a as Ha, p as _, C as de, b as _a, D as we, i as ee, f as ae, Z as Ua, J as Wa, d as ta, a4 as Xa, o as Ba, e as Ya, x as oa, y as Va, q as Za, r as Ga, s as le, l as ja } from "./index-MWHrTFPq.js";
|
|
3
3
|
import { d as qa, c as Ja, a as ra, t as Ka, l as k, r as ze, b as D, p as ua, u as Qa } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as el } from "./Tooltip-
|
|
5
|
-
import { L as al } from "./Legend-
|
|
6
|
-
import { _ as ll } from "./Title-
|
|
7
|
-
import { S as tl } from "./Slicer-
|
|
8
|
-
import { u as ol, U as rl } from "./usePrinter-
|
|
9
|
-
import ul from "./vue-ui-accordion-
|
|
10
|
-
import { D as sl } from "./DataTable-
|
|
11
|
-
import nl from "./vue-ui-skeleton-
|
|
12
|
-
import { u as sa } from "./useNestedProp-
|
|
13
|
-
import { P as il } from "./PenAndPaper-
|
|
4
|
+
import { _ as el } from "./Tooltip-Bip4kr-u.js";
|
|
5
|
+
import { L as al } from "./Legend-CUhyETYn.js";
|
|
6
|
+
import { _ as ll } from "./Title-C7EOYmwp.js";
|
|
7
|
+
import { S as tl } from "./Slicer-D6mP0vjU.js";
|
|
8
|
+
import { u as ol, U as rl } from "./usePrinter-CEEgHfhF.js";
|
|
9
|
+
import ul from "./vue-ui-accordion-BnV2tlGp.js";
|
|
10
|
+
import { D as sl } from "./DataTable-DtvVWOjy.js";
|
|
11
|
+
import nl from "./vue-ui-skeleton-Bo8ydREb.js";
|
|
12
|
+
import { u as sa } from "./useNestedProp-CTDeT4KA.js";
|
|
13
|
+
import { P as il } from "./PenAndPaper-DtLD2Sq6.js";
|
|
14
14
|
import { u as vl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
15
|
import { _ as cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
const dl = ["id"], hl = ["onClick"], yl = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-DwCsX1sv.cjs"),c=require("./useResponsive-BJ7DTGpm.cjs"),ot=require("./Tooltip-DLISx9B0.cjs"),rt=require("./Legend-DzWbU4w8.cjs"),nt=require("./Title-BlC0Lcua.cjs"),ut=require("./Slicer-DGe_w6Mr.cjs"),Ee=require("./usePrinter-DTDziYU0.cjs"),st=require("./vue-ui-accordion-IzKVFSed.cjs"),it=require("./DataTable-C010-IaF.cjs"),ct=require("./vue-ui-skeleton-DZILAxJl.cjs"),Ne=require("./useNestedProp-B618ZN94.cjs"),vt=require("./PenAndPaper-bCXNnqQx.cjs"),dt=require("./useUserOptionState-BgepsfED.cjs"),ht=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ft=["id"],yt=["onClick"],gt={key:2,class:"vue-data-ui-watermark"},pt=["innerHTML"],mt={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(re,{expose:Be,emit:De}){const p=re,{vue_ui_xy_canvas:Fe}=u.useConfig(),Z=l.ref(u.createUid()),N=l.ref(null),S=l.ref(null),B=l.ref(null),i=l.ref(null),g=l.ref(1),T=l.ref(1),H=l.ref(!1),f=l.ref(null),V=l.ref(""),ne=l.ref(null),C=l.ref([]),O=l.ref(1),M=l.ref(!0),z=l.ref(!0),G=l.ref(null),ue=l.ref(0),se=l.ref(0),U=l.ref(!1),ie=l.ref(null),ce=l.ref(null),ve=l.ref(null),de=l.ref(null),j=l.ref(0),J=l.ref(0),K=l.ref(0),Q=l.computed(()=>!!p.dataset&&p.dataset.length),Ae=l.useSlots();l.onMounted(()=>{Ae["chart-background"]&&console.warn("VueUiXyCanvas does not support the #chart-background slot.")});const t=l.computed({get:()=>ye(),set:e=>e}),{userOptionsVisible:ee,setUserOptionsVisibility:he,keepUserOptionState:fe}=dt.useUserOptionState({config:t.value});function ye(){const e=Ne.useNestedProp({userConfig:p.config,defaultConfig:Fe});let a={};return e.theme?a={...Ne.useNestedProp({userConfig:u.themes.vue_ui_xy_canvas[e.theme]||p.config,defaultConfig:e}),customPalette:u.themePalettes[e.theme]||u.palette}:a=e,p.config&&u.hasDeepProperty(p.config,"style.chart.scale.min")?a.style.chart.scale.min=p.config.style.chart.scale.min:a.style.chart.scale.min=null,p.config&&u.hasDeepProperty(p.config,"style.chart.scale.max")?a.style.chart.scale.max=p.config.style.chart.scale.max:a.style.chart.scale.max=null,p.config&&u.hasDeepProperty(p.config,"style.chart.zoom.startIndex")?a.style.chart.zoom.startIndex=p.config.style.chart.zoom.startIndex:a.style.chart.zoom.startIndex=null,p.config&&u.hasDeepProperty(p.config,"style.chart.zoom.endIndex")?a.style.chart.zoom.endIndex=p.config.style.chart.zoom.endIndex:a.style.chart.zoom.endIndex=null,a}l.watch(()=>p.config,e=>{t.value=ye(),ee.value=!t.value.showOnChartHover,le(),j.value+=1,J.value+=1,K.value+=1},{deep:!0}),l.watch(()=>p.dataset,()=>{le(),j.value+=1,J.value+=1,K.value+=1},{deep:!0});const ge=l.ref(t.value.style.chart.aspectRatio),{isPrinting:pe,isImaging:me,generatePdf:be,generateImage:xe}=Ee.usePrinter({elementId:`xy_canvas_${Z.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas"}),s=l.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function He(e){U.value=e,se.value+=1}const ke=l.computed(()=>u.convertCustomPalette(t.value.customPalette)),w=l.computed(()=>R.value?Math.max(...R.value.filter((e,a)=>!C.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),o=l.computed(()=>{const e=g.value-g.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:g.value,canvasHeight:T.value,left:g.value*t.value.style.chart.paddingProportions.left,top:T.value*t.value.style.chart.paddingProportions.top,right:g.value-g.value*t.value.style.chart.paddingProportions.right,bottom:T.value-T.value*t.value.style.chart.paddingProportions.bottom,width:e,height:T.value-T.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(n.value.end-n.value.start)}});function Le(e,a){return e/a}function Ve({hasAutoScale:e,series:a,min:r,max:d,scale:h,yOffset:m,individualHeight:v,stackIndex:b=null}){return a.map((L,oe)=>{const $=h.min<0?Math.abs(h.min):0,I=Le(L+$,$+h.max);let P,D;e&&(P=Math.abs(h.min),D=Le(L+P,h.max+P));let F=0;return b===null?F=o.value.bottom-o.value.height*(e?D:I):F=o.value.bottom-m-v*(e?D:I),{x:o.value.left+o.value.slot*oe+o.value.slot/2,y:F,value:L}})}const x=l.computed(()=>{const e=t.value.style.chart.scale.min!==null?t.value.style.chart.scale.min:Math.min(...R.value.filter((v,b)=>!C.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(n.value.start,n.value.end))),a=t.value.style.chart.scale.max!==null?t.value.style.chart.scale.max:Math.max(...R.value.filter((v,b)=>!C.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(n.value.start,n.value.end))),r=u.calculateNiceScale(e<0?e:0,a===e?e+1<0?0:e+1:a<0?0:a,t.value.style.chart.scale.ticks),d=r.min<0?Math.abs(r.min):0,h=o.value.bottom-o.value.height*(d/(r.max+d)),m=r.ticks.map(v=>({y:o.value.bottom-o.value.height*((v+d)/(r.max+d)),x:o.value.left-8,value:v}));return{absoluteMin:d,max:a,min:e,scale:r,yLabels:m,zero:h}}),Ue=l.computed(()=>y.value.map(e=>`
|
|
2
2
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
3
3
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
4
4
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|