vue-data-ui 2.3.79 → 2.3.81
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-7KSHNtE9.cjs → Arrow--frEqkM1.cjs} +1 -1
- package/dist/{Arrow-CMz9sUNE.js → Arrow-DgbDnIay.js} +1 -1
- package/dist/{BaseIcon-Dk7dYD2V.cjs → BaseIcon-BFrPffQf.cjs} +1 -1
- package/dist/{BaseIcon--epRsx3h.js → BaseIcon-DAj2M2og.js} +1 -1
- package/dist/{DataTable-BtdSUfo8.cjs → DataTable-CqE9xPi-.cjs} +1 -1
- package/dist/{DataTable-CegPJkZh.js → DataTable-DlM-ptF5.js} +2 -2
- package/dist/{Legend-kh9PzvjQ.cjs → Legend-WjtdD7uU.cjs} +1 -1
- package/dist/{Legend-DHn7PpRX.js → Legend-ktvN6I85.js} +1 -1
- package/dist/{Shape-BYzJgXyX.js → Shape-C7TsCqxL.js} +1 -1
- package/dist/{Shape-C_bea-fx.cjs → Shape-Va4q9CxI.cjs} +1 -1
- package/dist/{Slicer-BCPRbaD9.js → Slicer-BxK7bk1k.js} +2 -2
- package/dist/{Slicer-BY2HfvXm.cjs → Slicer-Cvzscldo.cjs} +1 -1
- package/dist/{Title-CWjHjkKS.cjs → Title-BHQhfv4i.cjs} +1 -1
- package/dist/{Title-CZGFVTAL.js → Title-qba88G9l.js} +1 -1
- package/dist/{Tooltip-C1sNTQ1g.cjs → Tooltip-CF0rqlmz.cjs} +1 -1
- package/dist/{Tooltip-BHnf4YJR.js → Tooltip-_eXFITh9.js} +1 -1
- package/dist/{index-Dzi9DWc6.js → index-BbO9Hp9f.js} +1 -1
- package/dist/{index-CPFtA_2a.cjs → index-CYXApZ53.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BSY0Tspx.js → useNestedProp-BCRH6JNl.js} +1 -1
- package/dist/{useNestedProp-BUMZMzjx.cjs → useNestedProp-pdsq6jGj.cjs} +1 -1
- package/dist/{usePrinter-DGeHPbZW.js → usePrinter-CGrHmZQx.js} +1 -1
- package/dist/{usePrinter-Ctl6AURH.cjs → usePrinter-O35vhanM.cjs} +1 -1
- package/dist/{vue-data-ui-CBAHwmL6.js → vue-data-ui-FgMXDmix.js} +57 -57
- package/dist/{vue-data-ui-BrskASaU.cjs → vue-data-ui-krdo7JvN.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-aPQlBNHD.js → vue-ui-3d-bar-BuvelMgc.js} +7 -7
- package/dist/{vue-ui-3d-bar-G_O_Ncrd.cjs → vue-ui-3d-bar-CkGQe1oU.cjs} +1 -1
- package/dist/{vue-ui-accordion-C4FB0Uy9.js → vue-ui-accordion-BfeRdBUF.js} +3 -3
- package/dist/{vue-ui-accordion-DfUmD2e0.cjs → vue-ui-accordion-CxzLg6-4.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-tXH9_6Cl.js → vue-ui-age-pyramid-BPgLK1Pw.js} +8 -8
- package/dist/{vue-ui-age-pyramid-0bU5epKz.cjs → vue-ui-age-pyramid-Buj7DCF5.cjs} +1 -1
- package/dist/{vue-ui-annotator-CHv_oFC5.cjs → vue-ui-annotator-4OwxG-z_.cjs} +1 -1
- package/dist/{vue-ui-annotator-DoqAR1AJ.js → vue-ui-annotator-tQFLr9CC.js} +1 -1
- package/dist/{vue-ui-candlestick-Bow8ysHR.js → vue-ui-candlestick-BCLakLnY.js} +9 -9
- package/dist/{vue-ui-candlestick-C9hmAjO4.cjs → vue-ui-candlestick-Bc6cPc8C.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DIpy9OcA.cjs → vue-ui-carousel-table-CWyAWzTx.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CFyHgs2G.js → vue-ui-carousel-table-Zj3PLCOz.js} +4 -4
- package/dist/{vue-ui-chestnut-yUQIrA49.js → vue-ui-chestnut-B80QSqfE.js} +6 -6
- package/dist/{vue-ui-chestnut-Bhorci6g.cjs → vue-ui-chestnut-CdKcI1dI.cjs} +1 -1
- package/dist/{vue-ui-cursor-C_XibJ7N.cjs → vue-ui-cursor-CiLp4DOF.cjs} +1 -1
- package/dist/{vue-ui-cursor-lOvrBueD.js → vue-ui-cursor-Cvhe_IiC.js} +2 -2
- package/dist/{vue-ui-dashboard-C83saYpB.js → vue-ui-dashboard-DU5d7SrJ.js} +2 -2
- package/dist/{vue-ui-dashboard-sd5Y5-e-.cjs → vue-ui-dashboard-DicEyUI2.cjs} +1 -1
- package/dist/{vue-ui-digits-BlYPdDPr.js → vue-ui-digits-BbyLlgvc.js} +2 -2
- package/dist/{vue-ui-digits-BebeS9K1.cjs → vue-ui-digits-DX0JesGi.cjs} +1 -1
- package/dist/vue-ui-donut-DobwZrg_.cjs +1 -0
- package/dist/{vue-ui-donut-cu0lTO-k.js → vue-ui-donut-acHeW-dS.js} +240 -240
- package/dist/{vue-ui-donut-evolution-DBtR0KB1.cjs → vue-ui-donut-evolution-BEZoIlGp.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BtLFqMTk.js → vue-ui-donut-evolution-Pv5TB3fm.js} +9 -9
- package/dist/{vue-ui-dumbbell-CD7Q04B4.cjs → vue-ui-dumbbell-BZqseiXM.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-C_tCEHzH.js → vue-ui-dumbbell-C_2a3KLt.js} +8 -8
- package/dist/{vue-ui-flow-Cv8PLTaj.js → vue-ui-flow-BjU1ZRIF.js} +7 -7
- package/dist/{vue-ui-flow-CFAqxg-s.cjs → vue-ui-flow-Cqj8kVlG.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DWX8Ncj4.cjs → vue-ui-galaxy-Cyh8CDMJ.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BZYKkgAb.js → vue-ui-galaxy-D37VApbk.js} +9 -9
- package/dist/{vue-ui-gauge-CKGYpTFB.cjs → vue-ui-gauge-C-Na1a9e.cjs} +1 -1
- package/dist/{vue-ui-gauge-BhOvSbGz.js → vue-ui-gauge-Dwy5BdwO.js} +5 -5
- package/dist/{vue-ui-gizmo-37rGvXCR.js → vue-ui-gizmo-BrB9IIpm.js} +2 -2
- package/dist/{vue-ui-gizmo-07TDXIaB.cjs → vue-ui-gizmo-DJXhscPd.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CTob1F6o.cjs → vue-ui-heatmap-1CtfFCVD.cjs} +1 -1
- package/dist/{vue-ui-heatmap-Dm-MMJ4o.js → vue-ui-heatmap-BMiSPaPZ.js} +8 -8
- package/dist/{vue-ui-kpi-CHkOikkJ.cjs → vue-ui-kpi-9gsy5Gwx.cjs} +1 -1
- package/dist/{vue-ui-kpi-oh0aHGO-.js → vue-ui-kpi-Cixa6Nvr.js} +3 -3
- package/dist/{vue-ui-mini-loader-CnXWvlLw.cjs → vue-ui-mini-loader-Bpf_zbIE.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BxtLbcPD.js → vue-ui-mini-loader-CC05giKH.js} +2 -2
- package/dist/{vue-ui-molecule-xiiQZhzI.cjs → vue-ui-molecule-2As5Qssu.cjs} +1 -1
- package/dist/{vue-ui-molecule-fywn7YiK.js → vue-ui-molecule-C5BxWUFU.js} +9 -9
- package/dist/{vue-ui-mood-radar-_H-MKxxl.cjs → vue-ui-mood-radar-CRZvzLQh.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-D2ZSuRkr.js → vue-ui-mood-radar-Ch03P8jj.js} +9 -9
- package/dist/{vue-ui-nested-donuts-BH3Acqfp.js → vue-ui-nested-donuts-B_Imyk8W.js} +302 -308
- package/dist/vue-ui-nested-donuts-WCjZ0APB.cjs +17 -0
- package/dist/{vue-ui-onion-CLZRFpAv.cjs → vue-ui-onion-Bfx7SSGm.cjs} +1 -1
- package/dist/{vue-ui-onion-DTsCMyrd.js → vue-ui-onion-Bm-v_KEf.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-Pg0ZZqcp.js → vue-ui-parallel-coordinate-plot-B1KhGJ4Z.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-DQ8C3HyY.cjs → vue-ui-parallel-coordinate-plot-CiQmgTT8.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BPC_3kPL.js → vue-ui-quadrant-DiSpZTqI.js} +10 -10
- package/dist/{vue-ui-quadrant-BElvdrp_.cjs → vue-ui-quadrant-JlJ2I28X.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BAkaZJ4p.js → vue-ui-quick-chart-Bd0A7Dhu.js} +334 -334
- package/dist/vue-ui-quick-chart-uyBGnl-w.cjs +15 -0
- package/dist/{vue-ui-radar-CvTIj-lO.cjs → vue-ui-radar-Bsgqps0B.cjs} +1 -1
- package/dist/{vue-ui-radar-CgqDVKuK.js → vue-ui-radar-CZhyNboy.js} +10 -10
- package/dist/{vue-ui-rating-BZLIXnyB.js → vue-ui-rating-CI7sVX06.js} +2 -2
- package/dist/{vue-ui-rating-DpCRpJ4m.cjs → vue-ui-rating-b9XgUFUg.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CSAABiZY.js → vue-ui-relation-circle-CQCXmGgD.js} +5 -5
- package/dist/{vue-ui-relation-circle-DkXrdiiR.cjs → vue-ui-relation-circle-DXesw1L0.cjs} +1 -1
- package/dist/{vue-ui-rings-CJtNdYeX.cjs → vue-ui-rings-BK5EcN7r.cjs} +1 -1
- package/dist/{vue-ui-rings-Dw1BJGXu.js → vue-ui-rings-D2mt8OaW.js} +9 -9
- package/dist/{vue-ui-scatter-kefea2pe.js → vue-ui-scatter-CKNinzEX.js} +10 -10
- package/dist/{vue-ui-scatter-Cn4qQBmG.cjs → vue-ui-scatter-CoP2aqlr.cjs} +1 -1
- package/dist/{vue-ui-screenshot-5LvueVyD.js → vue-ui-screenshot-BhNeQgGO.js} +1 -1
- package/dist/{vue-ui-screenshot-DzrSUfRb.cjs → vue-ui-screenshot-amfsU2ae.cjs} +1 -1
- package/dist/{vue-ui-skeleton-C9gsw9XJ.cjs → vue-ui-skeleton-BALbq0Pw.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BRcmM6et.js → vue-ui-skeleton-BvkcP6ga.js} +2 -2
- package/dist/{vue-ui-smiley-BEaQ1ebG.js → vue-ui-smiley-BphTt9Aw.js} +2 -2
- package/dist/{vue-ui-smiley-BZ9sEYKl.cjs → vue-ui-smiley-CrK0uFbX.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DWbduAlI.js → vue-ui-spark-trend-CWy42Ddd.js} +4 -4
- package/dist/{vue-ui-spark-trend-WGCL6qRe.cjs → vue-ui-spark-trend-DjQYG7RI.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BwXBIgap.js → vue-ui-sparkbar-CO2eRf_u.js} +3 -3
- package/dist/{vue-ui-sparkbar-C19NQbzy.cjs → vue-ui-sparkbar-DJ5taUwN.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CJzICBM7.js → vue-ui-sparkgauge-7CHJCq2b.js} +3 -3
- package/dist/{vue-ui-sparkgauge-F5uNohHA.cjs → vue-ui-sparkgauge-BLDwV2Jz.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Brxx3lPt.js → vue-ui-sparkhistogram-BH-mOFoW.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CEhbAYJu.cjs → vue-ui-sparkhistogram-D8o3f6O-.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BnMFB2Ei.cjs → vue-ui-sparkline-Bt-V5Mey.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BWpO00g3.js → vue-ui-sparkline-Bxj_gOB3.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CDDrOr-n.js → vue-ui-sparkstackbar-BB7RR_hL.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BO9q_oMm.cjs → vue-ui-sparkstackbar-D_-eEiAD.cjs} +1 -1
- package/dist/{vue-ui-stackbar-Bwrbh9it.js → vue-ui-stackbar-7RK8OC3X.js} +10 -10
- package/dist/{vue-ui-stackbar-DfZJRngt.cjs → vue-ui-stackbar-DKew20g-.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Bp-S1Wf9.js → vue-ui-strip-plot-DDGlur5A.js} +9 -9
- package/dist/{vue-ui-strip-plot-BpDR-dkQ.cjs → vue-ui-strip-plot-mC0emksT.cjs} +1 -1
- package/dist/{vue-ui-table-CJDKUKOS.js → vue-ui-table-Ch4nika7.js} +1 -1
- package/dist/{vue-ui-table-Cw6e5yDj.cjs → vue-ui-table-TBwHXWxL.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-_tuoaziA.cjs → vue-ui-table-heatmap-BqeHcw_y.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-C0xoBGEZ.js → vue-ui-table-heatmap-CQo_C0s9.js} +4 -4
- package/dist/{vue-ui-table-sparkline-BMVMoE-m.cjs → vue-ui-table-sparkline-CGugekmj.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CKfBnRuq.js → vue-ui-table-sparkline-PyyzmS9i.js} +5 -5
- package/dist/{vue-ui-thermometer-mIYyVxtH.cjs → vue-ui-thermometer-BpJ4VJ93.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DJnGfyb3.js → vue-ui-thermometer-DtYkgBC7.js} +5 -5
- package/dist/{vue-ui-timer-CPImsfNt.cjs → vue-ui-timer-DGkjRJxG.cjs} +1 -1
- package/dist/{vue-ui-timer-D3-ehmrd.js → vue-ui-timer-DZojZEA4.js} +4 -4
- package/dist/{vue-ui-tiremarks-Dyt3JsZe.js → vue-ui-tiremarks-B7t5DKy3.js} +5 -5
- package/dist/{vue-ui-tiremarks-CCw-ctjv.cjs → vue-ui-tiremarks-XeVsRMnt.cjs} +1 -1
- package/dist/{vue-ui-treemap-Q4DN6aY7.js → vue-ui-treemap-Cfgh1jVs.js} +9 -9
- package/dist/{vue-ui-treemap-DbyZr-O6.cjs → vue-ui-treemap-DWkeAVQQ.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CZoUU9_l.cjs → vue-ui-vertical-bar-DLLMJ-aT.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BPkh53kA.js → vue-ui-vertical-bar-KPXSGlhx.js} +9 -9
- package/dist/{vue-ui-waffle-BmQnqY4H.cjs → vue-ui-waffle-B8KBJE1m.cjs} +1 -1
- package/dist/{vue-ui-waffle-BwmVk6Po.js → vue-ui-waffle-CNcqwFpw.js} +9 -9
- package/dist/{vue-ui-wheel-BKXwCIGg.js → vue-ui-wheel-CCCegmg2.js} +5 -5
- package/dist/{vue-ui-wheel-IXkBhBLM.cjs → vue-ui-wheel-CMByFaO_.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-Y2uokguh.cjs → vue-ui-word-cloud-DJO1i3Nm.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CqOVJLJt.js → vue-ui-word-cloud-zeoovcoY.js} +7 -7
- package/dist/{vue-ui-xy-DcjUmm61.js → vue-ui-xy-C0Wcn143.js} +12 -12
- package/dist/{vue-ui-xy-canvas-CCDRUUy-.js → vue-ui-xy-canvas-DGldcqqz.js} +10 -10
- package/dist/{vue-ui-xy-canvas-DCm4MdGE.cjs → vue-ui-xy-canvas-hXPjrh1z.cjs} +1 -1
- package/dist/{vue-ui-xy-DaQ4muCU.cjs → vue-ui-xy-iYHxF8Yf.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-donut-b6ltmnHo.cjs +0 -1
- package/dist/vue-ui-nested-donuts-C4-O_KFr.cjs +0 -17
- package/dist/vue-ui-quick-chart-bIEVTS1U.cjs +0 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-CPFtA_2a.cjs"),X=require("./Title-CWjHjkKS.cjs"),L=require("./usePrinter-Ctl6AURH.cjs"),K=require("./Legend-kh9PzvjQ.cjs"),p=require("./BaseIcon-Dk7dYD2V.cjs"),Y=require("./DataTable-BtdSUfo8.cjs"),J=require("./vue-ui-skeleton-C9gsw9XJ.cjs"),Q=require("./vue-ui-accordion-DfUmD2e0.cjs"),T=require("./useNestedProp-BUMZMzjx.cjs"),Z=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ee=["id"],te=["xmlns","viewBox"],le=["id"],oe=["stop-color"],ae=["stop-color"],re=["x1","y1","x2","y2","stroke","stroke-width"],ne=["d","stroke","stroke-width"],se=["stroke"],ue=["fill"],ie=["stroke"],ce=["fill"],de=["stroke"],ye=["fill"],ve=["stroke"],me=["fill"],he=["stroke"],fe=["fill"],pe=["d","stroke","stroke-width","fill"],ke=["x1","y1","stroke"],ge=["cx","cy","fill","stroke"],be=["fill","stroke"],Ce=["y","fill","font-weight"],Ne=["y","fill"],xe={key:3,class:"vue-data-ui-watermark"},we=["onClick"],_e={style:{"font-weight":"bold"}},Ve=["innerHTML"],$e={__name:"vue-ui-mood-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(O,{expose:A}){const s=O,{vue_ui_mood_radar:I}=r.useConfig(),m=e.computed(()=>!!s.dataset&&Object.keys(s.dataset).length);e.onMounted(()=>{N()});function N(){r.objectIsEmpty(s.dataset)&&r.error({componentName:"VueUiMoodRadar",type:"dataset"})}const h=e.ref(r.createUid()),x=e.ref(null),F=e.ref(null),n=e.ref(null),D=e.ref(0),z=e.ref(0),w=e.ref(0),t=e.computed({get:()=>_(),set:o=>o});function _(){const o=T.useNestedProp({userConfig:s.config,defaultConfig:I});return o.theme?{...T.useNestedProp({userConfig:r.themes.vue_ui_mood_radar[o.theme]||s.config,defaultConfig:o})}:o}e.watch(()=>s.config,o=>{t.value=_(),N(),D.value+=1,z.value+=1,w.value+=1},{deep:!0});const{isPrinting:V,isImaging:$,generatePdf:M,generateImage:P}=L.usePrinter({elementId:h.value,fileName:t.value.style.chart.title.text||"vue-ui-mood-radar"}),k=e.ref({showTable:t.value.table.show}),d=e.computed(()=>({height:256,width:256})),C=e.computed(()=>r.createPolygonPath({plot:{x:128,y:d.value.height/2},radius:90,sides:5,rotation:11}));function j({centerX:o,centerY:a,apexX:l,apexY:u,proportion:c,key:f,value:R}){return{x:o+(l-o)*c,y:a+(u-a)*c,key:f,value:R}}const q=e.computed(()=>Math.max(...Object.values(s.dataset).map(o=>isNaN(o)?0:o))),v=e.computed(()=>Object.values(s.dataset).reduce((o,a)=>(isNaN(o)?0:o)+(isNaN(a)?0:a),0)),i=e.computed(()=>Object.keys(s.dataset).map((o,a)=>{const l=typeof s.dataset[o]!="number"||isNaN(s.dataset[o])?0:s.dataset[o];return{index:a,key:o,value:l,proportion:l/v.value,color:t.value.style.chart.layout.smileys.colors[o]}}).sort((o,a)=>a.key-o.key)),B=e.computed(()=>m.value?(["1","2","3","4","5"].forEach(o=>{[null,void 0].includes(s.dataset[o])&&r.error({componentName:"VueUiMoodRadar",type:"datasetAttribute",property:o})}),C.value.coordinates.map((o,a)=>{const l=j({centerX:d.value.width/2,centerY:d.value.height/2,apexX:o.x,apexY:o.y,proportion:i.value[a].value/q.value,key:i.value[a].key,value:i.value[a].value});return{...o,plots:l,key:i.value[a].key}})):[]),W=e.computed(()=>({cy:"mood-radar-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""}));function G(o){o===n.value?n.value=null:n.value=o}const y=e.computed(()=>{const o=i.value.map(l=>({name:l.key,color:l.color})),a=i.value.map(l=>isNaN(l.value)?0:l.value);return{head:o,body:a}});function E(){e.nextTick(()=>{const o=y.value.head.map((u,c)=>[[u.name],[y.value.body[c]],[isNaN(y.value.body[c]/v.value)?"-":y.value.body[c]/v.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=r.createCsvContent(a);r.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-mood-radar"})})}const g=e.computed(()=>{const o=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',Number(v.value.toFixed(t.value.table.td.roundingValue)).toLocaleString(),"100%"],a=y.value.head.map((c,f)=>[{color:c.color,name:c.name},y.value.body[f].toFixed(t.value.table.td.roundingValue),isNaN(y.value.body[f]/v.value)?"-":(y.value.body[f]/v.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]),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},u=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:o,body:a,config:l,colNames:u}});function U(){return i.value}function S(){k.value.showTable=!k.value.showTable}const b=e.ref(!1);function H(o){b.value=o}return A({getData:U,generatePdf:M,generateCsv:E,generateImage:P,toggleTable:S}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-mood-radar ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"moodRadarChart",ref:x,id:`${h.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor}`)},[e.createVNode(X._sfc_main,{config:{title:{cy:"mood-radar-title",...t.value.style.chart.title},subtitle:{cy:"mood-radar-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&m.value?(e.openBlock(),e.createBlock(L.UserOptions,{key:1,ref_key:"details",ref:F,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(V),isImaging:e.unref($),uid:h.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,titles:{...t.value.userOptions.buttonTitles},chartElement:x.value,onToggleFullscreen:H,onGeneratePdf:e.unref(M),onGenerateCsv:E,onGenerateImage:e.unref(P),onToggleTable:S},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:u})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:u})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),viewBox:`0 0 ${d.value.width} ${d.value.height}`,class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value}),style:e.normalizeStyle(`overflow:visible;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`mood_radar_gradient_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.layout.dataPolygon.color,t.value.style.chart.layout.dataPolygon.opacity)},null,8,oe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.shiftHue)(t.value.style.chart.layout.dataPolygon.color,t.value.style.chart.layout.dataPolygon.gradient.intensity/100),t.value.style.chart.layout.dataPolygon.opacity)},null,8,ae)],8,le)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value.coordinates,l=>(e.openBlock(),e.createElementBlock("line",{x1:d.value.width/2,y1:d.value.height/2,x2:l.x,y2:l.y,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,re))),256)),e.createElementVNode("path",{d:C.value.path,fill:"none",stroke:t.value.style.chart.layout.outerPolygon.stroke,"stroke-width":t.value.style.chart.layout.outerPolygon.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,ne),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[5],"stroke-width":"1","stroke-linecap":"round",d:"M119 25A1 1 0 00137 25 1 1 0 00119 25M123 26C124 33 132 33 133 26L123 26M123 22A1 1 0 00126 22 1 1 0 00123 22M130 22A1 1 0 00133 22 1 1 0 00130 22"},null,8,se),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[0]||(a[0]=l=>n.value=5),onMouseleave:a[1]||(a[1]=l=>n.value=null),cx:"128",cy:"25",r:"20",fill:n.value===5?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[5],20):"transparent"},null,40,ue),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[4],"stroke-width":"1","stroke-linecap":"round",d:"M218 95A1 1 0 00236 95 1 1 0 00218 95M222 97C225 99 229 99 232 97M222 92A1 1 0 00225 92 1 1 0 00222 92M229 92A1 1 0 00232 92 1 1 0 00229 92"},null,8,ie),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[2]||(a[2]=l=>n.value=4),onMouseleave:a[3]||(a[3]=l=>n.value=null),cx:"227",cy:"95.5",r:"20",fill:n.value===4?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[4],20):"transparent"},null,40,ce),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[3],"stroke-width":"1","stroke-linecap":"round",d:"M181 213A1 1 0 00199 213 1 1 0 00181 213M185 210A1 1 0 00188 210 1 1 0 00185 210M192 210A1 1 0 00195 210 1 1 0 00192 210M185 215 195 215"},null,8,de),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[4]||(a[4]=l=>n.value=3),onMouseleave:a[5]||(a[5]=l=>n.value=null),cx:"190",cy:"213.5",r:"20",fill:n.value===3?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[3],20):"transparent"},null,40,ye),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[2],"stroke-width":"1","stroke-linecap":"round",d:"M56 213A1 1 0 0074 213 1 1 0 0056 213M60 216C63 214 67 214 70 216M60 210A1 1 0 0063 210 1 1 0 0060 210M67 210A1 1 0 0070 210 1 1 0 0067 210"},null,8,ve),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[6]||(a[6]=l=>n.value=2),onMouseleave:a[7]||(a[7]=l=>n.value=null),cx:"65",cy:"213.5",r:"20",fill:n.value===2?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[2],20):"transparent"},null,40,me),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[1],"stroke-width":"1","stroke-linecap":"round",d:"M20 96A1 1 0 0038 96 1 1 0 0020 96M24 100C25 95 33 95 34 100L24 100M24 93A1 1 0 0027 93 1 1 0 0024 93M31 93A1 1 0 0034 93 1 1 0 0031 93"},null,8,he),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[8]||(a[8]=l=>n.value=1),onMouseleave:a[9]||(a[9]=l=>n.value=null),cx:"29",cy:"95.5",r:"20",fill:n.value===1?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[1],20):"transparent"},null,40,fe),e.createElementVNode("path",{d:e.unref(r.makePath)(B.value.map(l=>l.plots)),stroke:t.value.style.chart.layout.dataPolygon.stroke,"stroke-width":t.value.style.chart.layout.dataPolygon.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:t.value.style.chart.layout.dataPolygon.gradient.show?`url(#mood_radar_gradient_${h.value})`:e.unref(r.setOpacity)(t.value.style.chart.layout.dataPolygon.color,t.value.style.chart.layout.dataPolygon.opacity)},null,8,pe),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value.map(l=>l.plots),(l,u)=>(e.openBlock(),e.createElementBlock("g",{class:"vue-ui-mood-radar-trap",style:e.normalizeStyle(`opacity:${n.value==l.key?"1":"0"}`)},[e.createElementVNode("line",{x1:l.x,y1:l.y,x2:128,y2:128,stroke:t.value.style.chart.layout.smileys.colors[l.key]},null,8,ke),e.createElementVNode("circle",{cx:l.x,cy:l.y,fill:t.value.style.chart.layout.smileys.colors[l.key],r:"3",stroke:t.value.style.chart.backgroundColor,"stroke-width":.5},null,8,ge),e.createElementVNode("circle",{cx:128,cy:128,fill:t.value.style.chart.layout.smileys.colors[l.key],r:"3",stroke:t.value.style.chart.backgroundColor,"stroke-width":.5},null,8,be),e.createElementVNode("text",{x:128,y:["5",5].includes(l.key)?145:120,fill:t.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle","font-weight":t.value.style.chart.layout.dataLabel.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.dataLabel.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.dataLabel.prefix,v:l.value,s:t.value.style.chart.layout.dataLabel.suffix,r:t.value.style.chart.layout.dataLabel.roundingValue}),{datapoint:l,seriesIndex:u})),9,Ce),e.createElementVNode("text",{x:128,y:["5",5].includes(l.key)?163:102,fill:t.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle"}," ("+e.toDisplayString(e.unref(r.dataLabel)({v:l.value/v.value*100,s:"%",r:t.value.style.chart.layout.dataLabel.roundingPercentage}))+") ",9,Ne)],4))),256)),e.renderSlot(o.$slots,"svg",{svg:d.value},void 0,!0)],14,te)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",xe,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(V)||e.unref($)})),void 0,!0)])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(J.default,{key:4,config:{type:"radar",style:{backgroundColor:t.value.style.chart.backgroundColor,radar:{grid:{color:"#CCCCCC"},shapes:{color:"#CCCCCC"}}}}},null,8,["config"])),t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(K.Legend,{legendSet:i.value,config:W.value,key:`legend_${w.value}`,style:{display:"flex","row-gap":"6px"}},{item:e.withCtx(({legend:l,index:u})=>[e.createElementVNode("div",{onClick:()=>G(l.key),style:{display:"flex","flex-direction":"row",gap:"3px","align-items":"center",margin:"3px 0"}},[l.key==1?(e.openBlock(),e.createBlock(p.default,{key:0,strokeWidth:1,name:"moodSad",stroke:t.value.style.chart.layout.smileys.colors[l.key]},null,8,["stroke"])):e.createCommentVNode("",!0),l.key==2?(e.openBlock(),e.createBlock(p.default,{key:1,strokeWidth:1,name:"moodFlat",stroke:t.value.style.chart.layout.smileys.colors[l.key]},null,8,["stroke"])):e.createCommentVNode("",!0),l.key==3?(e.openBlock(),e.createBlock(p.default,{key:2,strokeWidth:1,name:"moodNeutral",stroke:t.value.style.chart.layout.smileys.colors[l.key]},null,8,["stroke"])):e.createCommentVNode("",!0),l.key==4?(e.openBlock(),e.createBlock(p.default,{key:3,strokeWidth:1,name:"smiley",stroke:t.value.style.chart.layout.smileys.colors[l.key]},null,8,["stroke"])):e.createCommentVNode("",!0),l.key==5?(e.openBlock(),e.createBlock(p.default,{key:4,strokeWidth:1,name:"moodHappy",stroke:t.value.style.chart.layout.smileys.colors[l.key]},null,8,["stroke"])):e.createCommentVNode("",!0),e.createElementVNode("span",_e,e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.dataLabel.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.dataLabel.prefix,v:l.value,s:t.value.style.chart.layout.dataLabel.suffix,r:t.value.style.chart.layout.dataLabel.roundingValue}),{datapoint:l,seriesIndex:u})),1),e.createTextVNode(" ("+e.toDisplayString(e.unref(r.dataLabel)({v:l.proportion*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1)],8,we)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"legend",{legend:i.value},void 0,!0),m.value?(e.openBlock(),e.createBlock(Q.default,{key:6,hideDetails:"",config:{open:k.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.createVNode(Y.DataTable,{colNames:g.value.colNames,head:g.value.head,body:g.value.body,config:g.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[10]||(a[10]=l=>k.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Ve)]),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)],14,ee))}},Me=Z._export_sfc($e,[["__scopeId","data-v-32423072"]]);exports.default=Me;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-CYXApZ53.cjs"),X=require("./Title-BHQhfv4i.cjs"),L=require("./usePrinter-O35vhanM.cjs"),K=require("./Legend-WjtdD7uU.cjs"),p=require("./BaseIcon-BFrPffQf.cjs"),Y=require("./DataTable-CqE9xPi-.cjs"),J=require("./vue-ui-skeleton-BALbq0Pw.cjs"),Q=require("./vue-ui-accordion-CxzLg6-4.cjs"),T=require("./useNestedProp-pdsq6jGj.cjs"),Z=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ee=["id"],te=["xmlns","viewBox"],le=["id"],oe=["stop-color"],ae=["stop-color"],re=["x1","y1","x2","y2","stroke","stroke-width"],ne=["d","stroke","stroke-width"],se=["stroke"],ue=["fill"],ie=["stroke"],ce=["fill"],de=["stroke"],ye=["fill"],ve=["stroke"],me=["fill"],he=["stroke"],fe=["fill"],pe=["d","stroke","stroke-width","fill"],ke=["x1","y1","stroke"],ge=["cx","cy","fill","stroke"],be=["fill","stroke"],Ce=["y","fill","font-weight"],Ne=["y","fill"],xe={key:3,class:"vue-data-ui-watermark"},we=["onClick"],_e={style:{"font-weight":"bold"}},Ve=["innerHTML"],$e={__name:"vue-ui-mood-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(O,{expose:A}){const s=O,{vue_ui_mood_radar:I}=r.useConfig(),m=e.computed(()=>!!s.dataset&&Object.keys(s.dataset).length);e.onMounted(()=>{N()});function N(){r.objectIsEmpty(s.dataset)&&r.error({componentName:"VueUiMoodRadar",type:"dataset"})}const h=e.ref(r.createUid()),x=e.ref(null),F=e.ref(null),n=e.ref(null),D=e.ref(0),z=e.ref(0),w=e.ref(0),t=e.computed({get:()=>_(),set:o=>o});function _(){const o=T.useNestedProp({userConfig:s.config,defaultConfig:I});return o.theme?{...T.useNestedProp({userConfig:r.themes.vue_ui_mood_radar[o.theme]||s.config,defaultConfig:o})}:o}e.watch(()=>s.config,o=>{t.value=_(),N(),D.value+=1,z.value+=1,w.value+=1},{deep:!0});const{isPrinting:V,isImaging:$,generatePdf:M,generateImage:P}=L.usePrinter({elementId:h.value,fileName:t.value.style.chart.title.text||"vue-ui-mood-radar"}),k=e.ref({showTable:t.value.table.show}),d=e.computed(()=>({height:256,width:256})),C=e.computed(()=>r.createPolygonPath({plot:{x:128,y:d.value.height/2},radius:90,sides:5,rotation:11}));function j({centerX:o,centerY:a,apexX:l,apexY:u,proportion:c,key:f,value:R}){return{x:o+(l-o)*c,y:a+(u-a)*c,key:f,value:R}}const q=e.computed(()=>Math.max(...Object.values(s.dataset).map(o=>isNaN(o)?0:o))),v=e.computed(()=>Object.values(s.dataset).reduce((o,a)=>(isNaN(o)?0:o)+(isNaN(a)?0:a),0)),i=e.computed(()=>Object.keys(s.dataset).map((o,a)=>{const l=typeof s.dataset[o]!="number"||isNaN(s.dataset[o])?0:s.dataset[o];return{index:a,key:o,value:l,proportion:l/v.value,color:t.value.style.chart.layout.smileys.colors[o]}}).sort((o,a)=>a.key-o.key)),B=e.computed(()=>m.value?(["1","2","3","4","5"].forEach(o=>{[null,void 0].includes(s.dataset[o])&&r.error({componentName:"VueUiMoodRadar",type:"datasetAttribute",property:o})}),C.value.coordinates.map((o,a)=>{const l=j({centerX:d.value.width/2,centerY:d.value.height/2,apexX:o.x,apexY:o.y,proportion:i.value[a].value/q.value,key:i.value[a].key,value:i.value[a].value});return{...o,plots:l,key:i.value[a].key}})):[]),W=e.computed(()=>({cy:"mood-radar-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""}));function G(o){o===n.value?n.value=null:n.value=o}const y=e.computed(()=>{const o=i.value.map(l=>({name:l.key,color:l.color})),a=i.value.map(l=>isNaN(l.value)?0:l.value);return{head:o,body:a}});function E(){e.nextTick(()=>{const o=y.value.head.map((u,c)=>[[u.name],[y.value.body[c]],[isNaN(y.value.body[c]/v.value)?"-":y.value.body[c]/v.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=r.createCsvContent(a);r.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-mood-radar"})})}const g=e.computed(()=>{const o=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',Number(v.value.toFixed(t.value.table.td.roundingValue)).toLocaleString(),"100%"],a=y.value.head.map((c,f)=>[{color:c.color,name:c.name},y.value.body[f].toFixed(t.value.table.td.roundingValue),isNaN(y.value.body[f]/v.value)?"-":(y.value.body[f]/v.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]),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},u=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:o,body:a,config:l,colNames:u}});function U(){return i.value}function S(){k.value.showTable=!k.value.showTable}const b=e.ref(!1);function H(o){b.value=o}return A({getData:U,generatePdf:M,generateCsv:E,generateImage:P,toggleTable:S}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-mood-radar ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"moodRadarChart",ref:x,id:`${h.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor}`)},[e.createVNode(X._sfc_main,{config:{title:{cy:"mood-radar-title",...t.value.style.chart.title},subtitle:{cy:"mood-radar-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&m.value?(e.openBlock(),e.createBlock(L.UserOptions,{key:1,ref_key:"details",ref:F,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(V),isImaging:e.unref($),uid:h.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,titles:{...t.value.userOptions.buttonTitles},chartElement:x.value,onToggleFullscreen:H,onGeneratePdf:e.unref(M),onGenerateCsv:E,onGenerateImage:e.unref(P),onToggleTable:S},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:u})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:u})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),viewBox:`0 0 ${d.value.width} ${d.value.height}`,class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value}),style:e.normalizeStyle(`overflow:visible;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`mood_radar_gradient_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.layout.dataPolygon.color,t.value.style.chart.layout.dataPolygon.opacity)},null,8,oe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.shiftHue)(t.value.style.chart.layout.dataPolygon.color,t.value.style.chart.layout.dataPolygon.gradient.intensity/100),t.value.style.chart.layout.dataPolygon.opacity)},null,8,ae)],8,le)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value.coordinates,l=>(e.openBlock(),e.createElementBlock("line",{x1:d.value.width/2,y1:d.value.height/2,x2:l.x,y2:l.y,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,re))),256)),e.createElementVNode("path",{d:C.value.path,fill:"none",stroke:t.value.style.chart.layout.outerPolygon.stroke,"stroke-width":t.value.style.chart.layout.outerPolygon.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,ne),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[5],"stroke-width":"1","stroke-linecap":"round",d:"M119 25A1 1 0 00137 25 1 1 0 00119 25M123 26C124 33 132 33 133 26L123 26M123 22A1 1 0 00126 22 1 1 0 00123 22M130 22A1 1 0 00133 22 1 1 0 00130 22"},null,8,se),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[0]||(a[0]=l=>n.value=5),onMouseleave:a[1]||(a[1]=l=>n.value=null),cx:"128",cy:"25",r:"20",fill:n.value===5?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[5],20):"transparent"},null,40,ue),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[4],"stroke-width":"1","stroke-linecap":"round",d:"M218 95A1 1 0 00236 95 1 1 0 00218 95M222 97C225 99 229 99 232 97M222 92A1 1 0 00225 92 1 1 0 00222 92M229 92A1 1 0 00232 92 1 1 0 00229 92"},null,8,ie),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[2]||(a[2]=l=>n.value=4),onMouseleave:a[3]||(a[3]=l=>n.value=null),cx:"227",cy:"95.5",r:"20",fill:n.value===4?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[4],20):"transparent"},null,40,ce),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[3],"stroke-width":"1","stroke-linecap":"round",d:"M181 213A1 1 0 00199 213 1 1 0 00181 213M185 210A1 1 0 00188 210 1 1 0 00185 210M192 210A1 1 0 00195 210 1 1 0 00192 210M185 215 195 215"},null,8,de),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[4]||(a[4]=l=>n.value=3),onMouseleave:a[5]||(a[5]=l=>n.value=null),cx:"190",cy:"213.5",r:"20",fill:n.value===3?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[3],20):"transparent"},null,40,ye),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[2],"stroke-width":"1","stroke-linecap":"round",d:"M56 213A1 1 0 0074 213 1 1 0 0056 213M60 216C63 214 67 214 70 216M60 210A1 1 0 0063 210 1 1 0 0060 210M67 210A1 1 0 0070 210 1 1 0 0067 210"},null,8,ve),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[6]||(a[6]=l=>n.value=2),onMouseleave:a[7]||(a[7]=l=>n.value=null),cx:"65",cy:"213.5",r:"20",fill:n.value===2?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[2],20):"transparent"},null,40,me),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[1],"stroke-width":"1","stroke-linecap":"round",d:"M20 96A1 1 0 0038 96 1 1 0 0020 96M24 100C25 95 33 95 34 100L24 100M24 93A1 1 0 0027 93 1 1 0 0024 93M31 93A1 1 0 0034 93 1 1 0 0031 93"},null,8,he),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[8]||(a[8]=l=>n.value=1),onMouseleave:a[9]||(a[9]=l=>n.value=null),cx:"29",cy:"95.5",r:"20",fill:n.value===1?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[1],20):"transparent"},null,40,fe),e.createElementVNode("path",{d:e.unref(r.makePath)(B.value.map(l=>l.plots)),stroke:t.value.style.chart.layout.dataPolygon.stroke,"stroke-width":t.value.style.chart.layout.dataPolygon.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:t.value.style.chart.layout.dataPolygon.gradient.show?`url(#mood_radar_gradient_${h.value})`:e.unref(r.setOpacity)(t.value.style.chart.layout.dataPolygon.color,t.value.style.chart.layout.dataPolygon.opacity)},null,8,pe),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value.map(l=>l.plots),(l,u)=>(e.openBlock(),e.createElementBlock("g",{class:"vue-ui-mood-radar-trap",style:e.normalizeStyle(`opacity:${n.value==l.key?"1":"0"}`)},[e.createElementVNode("line",{x1:l.x,y1:l.y,x2:128,y2:128,stroke:t.value.style.chart.layout.smileys.colors[l.key]},null,8,ke),e.createElementVNode("circle",{cx:l.x,cy:l.y,fill:t.value.style.chart.layout.smileys.colors[l.key],r:"3",stroke:t.value.style.chart.backgroundColor,"stroke-width":.5},null,8,ge),e.createElementVNode("circle",{cx:128,cy:128,fill:t.value.style.chart.layout.smileys.colors[l.key],r:"3",stroke:t.value.style.chart.backgroundColor,"stroke-width":.5},null,8,be),e.createElementVNode("text",{x:128,y:["5",5].includes(l.key)?145:120,fill:t.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle","font-weight":t.value.style.chart.layout.dataLabel.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.dataLabel.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.dataLabel.prefix,v:l.value,s:t.value.style.chart.layout.dataLabel.suffix,r:t.value.style.chart.layout.dataLabel.roundingValue}),{datapoint:l,seriesIndex:u})),9,Ce),e.createElementVNode("text",{x:128,y:["5",5].includes(l.key)?163:102,fill:t.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle"}," ("+e.toDisplayString(e.unref(r.dataLabel)({v:l.value/v.value*100,s:"%",r:t.value.style.chart.layout.dataLabel.roundingPercentage}))+") ",9,Ne)],4))),256)),e.renderSlot(o.$slots,"svg",{svg:d.value},void 0,!0)],14,te)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",xe,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(V)||e.unref($)})),void 0,!0)])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(J.default,{key:4,config:{type:"radar",style:{backgroundColor:t.value.style.chart.backgroundColor,radar:{grid:{color:"#CCCCCC"},shapes:{color:"#CCCCCC"}}}}},null,8,["config"])),t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(K.Legend,{legendSet:i.value,config:W.value,key:`legend_${w.value}`,style:{display:"flex","row-gap":"6px"}},{item:e.withCtx(({legend:l,index:u})=>[e.createElementVNode("div",{onClick:()=>G(l.key),style:{display:"flex","flex-direction":"row",gap:"3px","align-items":"center",margin:"3px 0"}},[l.key==1?(e.openBlock(),e.createBlock(p.default,{key:0,strokeWidth:1,name:"moodSad",stroke:t.value.style.chart.layout.smileys.colors[l.key]},null,8,["stroke"])):e.createCommentVNode("",!0),l.key==2?(e.openBlock(),e.createBlock(p.default,{key:1,strokeWidth:1,name:"moodFlat",stroke:t.value.style.chart.layout.smileys.colors[l.key]},null,8,["stroke"])):e.createCommentVNode("",!0),l.key==3?(e.openBlock(),e.createBlock(p.default,{key:2,strokeWidth:1,name:"moodNeutral",stroke:t.value.style.chart.layout.smileys.colors[l.key]},null,8,["stroke"])):e.createCommentVNode("",!0),l.key==4?(e.openBlock(),e.createBlock(p.default,{key:3,strokeWidth:1,name:"smiley",stroke:t.value.style.chart.layout.smileys.colors[l.key]},null,8,["stroke"])):e.createCommentVNode("",!0),l.key==5?(e.openBlock(),e.createBlock(p.default,{key:4,strokeWidth:1,name:"moodHappy",stroke:t.value.style.chart.layout.smileys.colors[l.key]},null,8,["stroke"])):e.createCommentVNode("",!0),e.createElementVNode("span",_e,e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.dataLabel.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.dataLabel.prefix,v:l.value,s:t.value.style.chart.layout.dataLabel.suffix,r:t.value.style.chart.layout.dataLabel.roundingValue}),{datapoint:l,seriesIndex:u})),1),e.createTextVNode(" ("+e.toDisplayString(e.unref(r.dataLabel)({v:l.proportion*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1)],8,we)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"legend",{legend:i.value},void 0,!0),m.value?(e.openBlock(),e.createBlock(Q.default,{key:6,hideDetails:"",config:{open:k.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.createVNode(Y.DataTable,{colNames:g.value.colNames,head:g.value.head,body:g.value.body,config:g.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[10]||(a[10]=l=>k.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Ve)]),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)],14,ee))}},Me=Z._export_sfc($e,[["__scopeId","data-v-32423072"]]);exports.default=Me;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { computed as c, onMounted as he, ref as h, watch as fe, openBlock as n, createElementBlock as k, normalizeClass as H, normalizeStyle as A, createVNode as R, createCommentVNode as i, createBlock as f, unref as r, createSlots as me, withCtx as m, renderSlot as b, normalizeProps as X, guardReactiveProps as K, createElementVNode as o, Fragment as q, renderList as Y, toDisplayString as M, createTextVNode as J, nextTick as ge } from "vue";
|
|
2
|
-
import { u as pe, o as ke, e as Q, c as be, t as Ce, N as xe, X as _e, s as C, w as we, O as $e, i as Z, f as I, q as Me, r as Ne } from "./index-
|
|
3
|
-
import { _ as Pe } from "./Title-
|
|
4
|
-
import { u as Le, U as Te } from "./usePrinter-
|
|
5
|
-
import { L as Ae } from "./Legend-
|
|
6
|
-
import N from "./BaseIcon
|
|
7
|
-
import { D as Ie } from "./DataTable-
|
|
8
|
-
import Fe from "./vue-ui-skeleton-
|
|
9
|
-
import Oe from "./vue-ui-accordion-
|
|
10
|
-
import { u as ee } from "./useNestedProp-
|
|
2
|
+
import { u as pe, o as ke, e as Q, c as be, t as Ce, N as xe, X as _e, s as C, w as we, O as $e, i as Z, f as I, q as Me, r as Ne } from "./index-BbO9Hp9f.js";
|
|
3
|
+
import { _ as Pe } from "./Title-qba88G9l.js";
|
|
4
|
+
import { u as Le, U as Te } from "./usePrinter-CGrHmZQx.js";
|
|
5
|
+
import { L as Ae } from "./Legend-ktvN6I85.js";
|
|
6
|
+
import N from "./BaseIcon-DAj2M2og.js";
|
|
7
|
+
import { D as Ie } from "./DataTable-DlM-ptF5.js";
|
|
8
|
+
import Fe from "./vue-ui-skeleton-BvkcP6ga.js";
|
|
9
|
+
import Oe from "./vue-ui-accordion-BfeRdBUF.js";
|
|
10
|
+
import { u as ee } from "./useNestedProp-BCRH6JNl.js";
|
|
11
11
|
import { _ as Se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"], We = ["stop-color"], ze = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ge = ["d", "stroke", "stroke-width"], Ee = ["stroke"], Ue = ["fill"], He = ["stroke"], Re = ["fill"], Xe = ["stroke"], Ke = ["fill"], qe = ["stroke"], Ye = ["fill"], Je = ["stroke"], Qe = ["fill"], Ze = ["d", "stroke", "stroke-width", "fill"], et = ["x1", "y1", "stroke"], tt = ["cx", "cy", "fill", "stroke"], lt = ["fill", "stroke"], at = ["y", "fill", "font-weight"], ot = ["y", "fill"], rt = {
|
|
13
13
|
key: 3,
|