vue-data-ui 2.3.2 → 2.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/dist/Arrow-B6gJebT9.js +101 -0
  2. package/dist/Arrow-C5yj6zwY.cjs +1 -0
  3. package/dist/BaseIcon-7_g11dRj.js +174 -0
  4. package/dist/BaseIcon-JtWoVorZ.cjs +1 -0
  5. package/dist/DataTable-CwaOlAsy.js +127 -0
  6. package/dist/DataTable-Rm9II-m2.cjs +1 -0
  7. package/dist/Legend-CxvJTjEm.js +62 -0
  8. package/dist/Legend-D59FIuMs.cjs +1 -0
  9. package/dist/Shape-CVItL3vh.cjs +1 -0
  10. package/dist/Shape-CjLV0scA.js +107 -0
  11. package/dist/Slicer-Bxg5niHl.js +156 -0
  12. package/dist/Slicer-Cdss5Rus.cjs +1 -0
  13. package/dist/Title-2iks1ziC.js +46 -0
  14. package/dist/Title-Bb-A5OSV.cjs +1 -0
  15. package/dist/Tooltip-C3phqKuU.js +94 -0
  16. package/dist/Tooltip-C_UE6y-E.cjs +1 -0
  17. package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
  18. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  19. package/dist/html2canvas.esm-BA_v9SIU.cjs +22 -0
  20. package/dist/html2canvas.esm-d2sM-0Wm.js +4870 -0
  21. package/dist/index-p5gfZSvB.cjs +4 -0
  22. package/dist/index-uOtklCCx.js +10268 -0
  23. package/dist/{index.es-BoVO5twe.js → index.es-YufTdp0y.js} +1 -1
  24. package/dist/{index.es-w_iDpZ-o.cjs → index.es-uyeSCnWE.cjs} +1 -1
  25. package/dist/jspdf.es.min-C660YX78.js +8038 -0
  26. package/dist/jspdf.es.min-DLYY9DTT.cjs +243 -0
  27. package/dist/pdf-97UbtKC2.js +44 -0
  28. package/dist/pdf-Cz3729tZ.cjs +1 -0
  29. package/dist/style.css +1 -1
  30. package/dist/useNestedProp-2kIU-7On.cjs +1 -0
  31. package/dist/useNestedProp-BgWkUab_.js +13 -0
  32. package/dist/usePrinter-B6xQCyL-.js +464 -0
  33. package/dist/usePrinter-fZlsJid8.cjs +1 -0
  34. package/dist/useResponsive-B3TrDDIG.cjs +1 -0
  35. package/dist/useResponsive-NZB-WLRF.js +187 -0
  36. package/dist/vue-data-ui-Be0rgmbA.cjs +9 -0
  37. package/dist/vue-data-ui-Ccy6rBZN.js +246 -0
  38. package/dist/vue-data-ui.cjs +1 -1
  39. package/dist/vue-data-ui.js +62 -61
  40. package/dist/vue-ui-3d-bar-BKMPFDi2.js +1085 -0
  41. package/dist/vue-ui-3d-bar-CKa4UXq4.cjs +19 -0
  42. package/dist/vue-ui-accordion-C_pwrAJl.cjs +1 -0
  43. package/dist/vue-ui-accordion-HJPf7My0.js +77 -0
  44. package/dist/vue-ui-age-pyramid-CE1xnA-8.cjs +1 -0
  45. package/dist/vue-ui-age-pyramid-DB_CL-gu.js +596 -0
  46. package/dist/vue-ui-annotator-BAMZcPlH.cjs +371 -0
  47. package/dist/vue-ui-annotator-DQsAL-nZ.js +2177 -0
  48. package/dist/vue-ui-candlestick-DCl8fpNu.js +657 -0
  49. package/dist/vue-ui-candlestick-Duv6oG79.cjs +2 -0
  50. package/dist/vue-ui-chestnut-BYHA6MT4.js +1051 -0
  51. package/dist/vue-ui-chestnut-mIZ4-ZEM.cjs +6 -0
  52. package/dist/vue-ui-cursor-C96IChA3.js +229 -0
  53. package/dist/vue-ui-cursor-De7dy4Mo.cjs +1 -0
  54. package/dist/vue-ui-dashboard-B2Yz41yO.js +232 -0
  55. package/dist/vue-ui-dashboard-BMGwKr0K.cjs +1 -0
  56. package/dist/vue-ui-digits-BnxLp7zQ.js +153 -0
  57. package/dist/vue-ui-digits-DSWyL-5K.cjs +1 -0
  58. package/dist/vue-ui-donut-1kei9ws5.cjs +1 -0
  59. package/dist/vue-ui-donut-B9iXisHK.js +743 -0
  60. package/dist/vue-ui-donut-evolution-B7Sun8sw.js +799 -0
  61. package/dist/vue-ui-donut-evolution-yv17DnGy.cjs +1 -0
  62. package/dist/vue-ui-dumbbell-BJEf_JEq.cjs +9 -0
  63. package/dist/vue-ui-dumbbell-DIsDnD1d.js +624 -0
  64. package/dist/vue-ui-flow-BTivYoGd.js +454 -0
  65. package/dist/vue-ui-flow-DOxJa8di.cjs +1 -0
  66. package/dist/vue-ui-galaxy-BEmywfFB.js +485 -0
  67. package/dist/vue-ui-galaxy-CHGOwCwM.cjs +1 -0
  68. package/dist/vue-ui-gauge-QAfMl-8t.cjs +1 -0
  69. package/dist/vue-ui-gauge-o4rDOqF3.js +466 -0
  70. package/dist/vue-ui-heatmap-BS4EzedX.cjs +1 -0
  71. package/dist/vue-ui-heatmap-DwqQqEsk.js +598 -0
  72. package/dist/vue-ui-kpi-F4qkJ_U-.cjs +1 -0
  73. package/dist/vue-ui-kpi-h8elYTcA.js +54 -0
  74. package/dist/vue-ui-mini-loader-C_8B2Pm6.cjs +1 -0
  75. package/dist/vue-ui-mini-loader-Cgoi9rhH.js +131 -0
  76. package/dist/vue-ui-molecule-Bmv76SWz.js +750 -0
  77. package/dist/vue-ui-molecule-C5CY_YYc.cjs +1 -0
  78. package/dist/vue-ui-mood-radar-BN0dzlfp.cjs +1 -0
  79. package/dist/vue-ui-mood-radar-DeMouUIe.js +548 -0
  80. package/dist/vue-ui-nested-donuts-ZyFoV-Zn.cjs +16 -0
  81. package/dist/vue-ui-nested-donuts-wOUkSVyZ.js +771 -0
  82. package/dist/vue-ui-onion-DCOKG2wG.js +554 -0
  83. package/dist/vue-ui-onion-VmTUo7TR.cjs +1 -0
  84. package/dist/vue-ui-parallel-coordinate-plot-BGtO2P4a.js +651 -0
  85. package/dist/vue-ui-parallel-coordinate-plot-BziXRF8E.cjs +8 -0
  86. package/dist/vue-ui-quadrant--JOTjPZh.js +1178 -0
  87. package/dist/vue-ui-quadrant-DawUUrur.cjs +1 -0
  88. package/dist/vue-ui-quick-chart-LXKfaJgS.js +1310 -0
  89. package/dist/vue-ui-quick-chart-jFlFtiNV.cjs +13 -0
  90. package/dist/vue-ui-radar-CWNIqvcA.js +614 -0
  91. package/dist/vue-ui-radar-VGH-lhaT.cjs +1 -0
  92. package/dist/vue-ui-rating-BNrIoJHN.js +271 -0
  93. package/dist/vue-ui-rating-Dtu6pwGx.cjs +1 -0
  94. package/dist/vue-ui-relation-circle-B3NKudOy.js +304 -0
  95. package/dist/vue-ui-relation-circle-Dwpx9o18.cjs +1 -0
  96. package/dist/vue-ui-rings-CsUngX_F.js +510 -0
  97. package/dist/vue-ui-rings-D9_OG--0.cjs +1 -0
  98. package/dist/vue-ui-scatter-DUsuh7bd.cjs +1 -0
  99. package/dist/vue-ui-scatter-DgxTz4Jx.js +874 -0
  100. package/dist/vue-ui-screenshot-51H_VrYY.js +160 -0
  101. package/dist/vue-ui-screenshot-C2Dz7CAe.cjs +3 -0
  102. package/dist/vue-ui-skeleton-BM9rwmxY.js +2064 -0
  103. package/dist/vue-ui-skeleton-sjfOtCZr.cjs +41 -0
  104. package/dist/vue-ui-smiley-DNnBtHht.cjs +2 -0
  105. package/dist/vue-ui-smiley-H5rSN-1B.js +763 -0
  106. package/dist/vue-ui-spark-trend-CLXZDYlk.js +246 -0
  107. package/dist/vue-ui-spark-trend-R4JJvfry.cjs +1 -0
  108. package/dist/vue-ui-sparkbar-C0k4ah-7.js +242 -0
  109. package/dist/vue-ui-sparkbar-CEUDIw0A.cjs +1 -0
  110. package/dist/vue-ui-sparkgauge-BHj00A07.js +157 -0
  111. package/dist/vue-ui-sparkgauge-CaEw6nmI.cjs +1 -0
  112. package/dist/vue-ui-sparkhistogram-B6GuavEu.cjs +1 -0
  113. package/dist/vue-ui-sparkhistogram-DbMLYKqE.js +244 -0
  114. package/dist/vue-ui-sparkline-CJydanLS.cjs +1 -0
  115. package/dist/vue-ui-sparkline-CYova9x3.js +333 -0
  116. package/dist/vue-ui-sparkstackbar-Df__yM5b.cjs +1 -0
  117. package/dist/vue-ui-sparkstackbar-N5rVBM2h.js +244 -0
  118. package/dist/vue-ui-strip-plot-DJJ1vEWz.js +618 -0
  119. package/dist/vue-ui-strip-plot-b5lhB35d.cjs +1 -0
  120. package/dist/vue-ui-table-NHhOVDbs.cjs +14 -0
  121. package/dist/vue-ui-table-heatmap-Cro2etCY.js +237 -0
  122. package/dist/vue-ui-table-heatmap-DlL2nCqz.cjs +1 -0
  123. package/dist/vue-ui-table-sparkline-Bw2Gc_ur.cjs +1 -0
  124. package/dist/vue-ui-table-sparkline-DppMitqF.js +420 -0
  125. package/dist/vue-ui-table-xSvwJIa7.js +1430 -0
  126. package/dist/vue-ui-thermometer-M2kdp1x5.js +385 -0
  127. package/dist/vue-ui-thermometer-Q_3PX2V3.cjs +1 -0
  128. package/dist/vue-ui-timer-BtSDeIRp.cjs +64 -0
  129. package/dist/vue-ui-timer-CAaQ-QD6.js +453 -0
  130. package/dist/vue-ui-tiremarks-CbGOSEvD.cjs +1 -0
  131. package/dist/vue-ui-tiremarks-JFv4JLP0.js +249 -0
  132. package/dist/vue-ui-treemap-BqDX-bPf.cjs +1 -0
  133. package/dist/vue-ui-treemap-DCnv-xYr.js +722 -0
  134. package/dist/vue-ui-vertical-bar-CEbApJZl.js +737 -0
  135. package/dist/vue-ui-vertical-bar-CJB_KXyr.cjs +4 -0
  136. package/dist/vue-ui-waffle-CTS6C7gu.js +638 -0
  137. package/dist/vue-ui-waffle-IMEbGe-b.cjs +1 -0
  138. package/dist/vue-ui-wheel-CuOmEWMQ.cjs +1 -0
  139. package/dist/vue-ui-wheel-_zyCdFiI.js +227 -0
  140. package/dist/vue-ui-word-cloud-RDlXBEAN.js +346 -0
  141. package/dist/vue-ui-word-cloud-Y7Yk7uUJ.cjs +1 -0
  142. package/dist/vue-ui-xy-BZJQBKnU.cjs +3 -0
  143. package/dist/vue-ui-xy-DsvN9EIQ.js +2064 -0
  144. package/dist/vue-ui-xy-canvas-D_dnbyFS.cjs +9 -0
  145. package/dist/vue-ui-xy-canvas-Dbcw8-9Q.js +1006 -0
  146. package/package.json +1 -1
  147. package/dist/index-C6KVJkgd.cjs +0 -843
  148. package/dist/index-bDBuMYfe.js +0 -57303
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./index-p5gfZSvB.cjs"),we=require("./Title-Bb-A5OSV.cjs"),oe=require("./usePrinter-fZlsJid8.cjs"),$e=require("./DataTable-Rm9II-m2.cjs"),Fe=require("./Tooltip-C_UE6y-E.cjs"),z=require("./BaseIcon-JtWoVorZ.cjs"),Pe=require("./vue-ui-skeleton-sjfOtCZr.cjs"),Ne=require("./vue-ui-accordion-C_pwrAJl.cjs"),le=require("./useNestedProp-2kIU-7On.cjs"),Te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ee=["cx","cy","r","fill","stroke","stroke-width","onClick","onMouseover"],Se={__name:"RecursiveCircles",props:{color:{type:String,default:"#000000"},dataset:{type:Array,default:()=>[]},hoveredUid:{type:String,default:null},linkColor:{type:String,default:"#CCCCCC"},stroke:{type:String,default:"#FFFFFF"},strokeHovered:{type:String,default:"#000000"}},emits:["zoom","hover"],setup(r,{emit:g}){const y=r;function u(a){g("zoom",a)}function c(a){g("hover",a)}return e.toRef(y,"dataset").value.forEach(a=>{a.nodes&&a.nodes.length>0&&a.nodes.forEach(i=>{i.ancestor=a})}),(a,i)=>{const b=e.resolveComponent("RecursiveCircles",!0);return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.dataset,v=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[v.polygonPath&&v.polygonPath.coordinates?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.polygonPath.coordinates,(F,P)=>(e.openBlock(),e.createElementBlock("circle",{cx:F.x,cy:F.y,r:v.circleRadius,fill:`url(#gradient_${v.color})`,stroke:r.hoveredUid&&r.hoveredUid===v.uid?r.strokeHovered:r.stroke,"stroke-width":r.hoveredUid&&r.hoveredUid===v.uid?v.circleRadius/6:v.circleRadius/12,style:{cursor:"pointer"},onClick:e.withModifiers(h=>u(v),["stop"]),onMouseover:h=>c(v),onMouseleave:i[0]||(i[0]=h=>c(null))},null,40,Ee))),256)),v.nodes&&v.nodes.length>0?(e.openBlock(),e.createBlock(b,{key:0,dataset:v.nodes,color:r.color,stroke:r.stroke,strokeHovered:r.strokeHovered,hoveredUid:r.hoveredUid,onZoom:u,onHover:c},null,8,["dataset","color","stroke","strokeHovered","hoveredUid"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),256)}}},Ve=["x1","y1","x2","y2","stroke","stroke-width"],Re=["x1","y1","x2","y2","stroke","stroke-width"],Le={__name:"RecursiveLinks",props:{dataset:{type:Array,default:()=>[]},color:{type:String,default:"#DDDDDD"},backgroundColor:{type:String,default:"#FFFFFF"}},setup(r){const g=r;return e.toRef(g,"dataset").value.forEach(u=>{u.nodes&&u.nodes.length>0&&u.nodes.forEach(c=>{c.ancestor=u})}),(u,c)=>{const B=e.resolveComponent("RecursiveLinks",!0);return e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.dataset,a=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.polygonPath&&a.polygonPath.coordinates?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.polygonPath.coordinates,(i,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.ancestor&&a.ancestor.polygonPath?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("line",{x1:i.x,y1:i.y,x2:a.ancestor.polygonPath.coordinates[0].x,y2:a.ancestor.polygonPath.coordinates[0].y,stroke:r.backgroundColor,"stroke-width":a.circleRadius/1.5},null,8,Ve),e.createElementVNode("line",{x1:i.x,y1:i.y,x2:a.ancestor.polygonPath.coordinates[0].x,y2:a.ancestor.polygonPath.coordinates[0].y,stroke:r.color,"stroke-width":a.circleRadius/2},null,8,Re)],64)):e.createCommentVNode("",!0)],64))),256)):e.createCommentVNode("",!0)],64))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.dataset,a=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.polygonPath&&a.polygonPath.coordinates?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.nodes&&a.nodes.length>0?(e.openBlock(),e.createBlock(B,{key:0,dataset:a.nodes,color:r.color,backgroundColor:r.backgroundColor},null,8,["dataset","color","backgroundColor"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),256))],64)}}},ze=["x","y","fill","font-size"],Me={__name:"RecursiveLabels",props:{color:{type:String,default:"#000000"},dataset:{type:Array,default:()=>[]},hoveredUid:{type:String,default:null}},emits:["zoom","hover"],setup(r,{emit:g}){const y=r;return e.toRef(y,"dataset").value.forEach(c=>{c.nodes&&c.nodes.length>0&&c.nodes.forEach(B=>{B.ancestor=c})}),(c,B)=>{const a=e.resolveComponent("RecursiveLabels",!0);return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.dataset,i=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[i.polygonPath&&i.polygonPath.coordinates?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.polygonPath.coordinates,b=>(e.openBlock(),e.createElementBlock("text",{x:b.x,y:b.y+i.circleRadius*2,fill:r.color,"font-size":i.circleRadius,"text-anchor":"middle",style:{opacity:"0.8","pointer-events":"none"}},e.toDisplayString(i.name),9,ze))),256)),i.nodes&&i.nodes.length>0?(e.openBlock(),e.createBlock(a,{key:0,dataset:i.nodes,color:r.color,hoveredUid:r.hoveredUid},null,8,["dataset","color","hoveredUid"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),256)}}},De={style:{position:"relative",height:"100%",width:"100%"}},Ue={__name:"BaseDirectionPad",props:{color:{type:String,default:"#FF0000"},isFullscreen:{type:Boolean,default:!1}},emits:["moveLeft","moveTop","moveRight","moveBottom","reset"],setup(r,{emit:g}){return(y,u)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`position: ${r.isFullscreen?"fixed":"absolute"};bottom:0;right:${r.isFullscreen?"12px":"0"};width:80px;height:80px`),"data-html2canvas-ignore":""},[e.createElementVNode("div",De,[e.createElementVNode("button",{onClick:u[0]||(u[0]=e.withModifiers(c=>g("moveLeft"),["stop"])),style:{position:"absolute",left:"0",top:"50%",transform:"translateY(-50%)",height:"24px",width:"24px",padding:"0",background:"transparent",border:"none",display:"flex","align-items":"center","justify-content":"center"}},[e.createVNode(z.default,{stroke:r.color,name:"arrowLeft",style:{cursor:"pointer"}},null,8,["stroke"])]),e.createElementVNode("button",{onClick:u[1]||(u[1]=e.withModifiers(c=>g("moveTop"),["stop"])),style:{position:"absolute",top:"0",left:"50%",transform:"translateX(-50%)",height:"24px",width:"24px",padding:"0",background:"transparent",border:"none",display:"flex","align-items":"center","justify-content":"center"}},[e.createVNode(z.default,{stroke:r.color,name:"arrowTop",style:{cursor:"pointer"}},null,8,["stroke"])]),e.createElementVNode("button",{onClick:u[2]||(u[2]=e.withModifiers(c=>g("moveRight"),["stop"])),style:{position:"absolute",right:"0",top:"50%",transform:"translateY(-50%)",height:"24px",width:"24px",padding:"0",background:"transparent",border:"none",display:"flex","align-items":"center","justify-content":"center"}},[e.createVNode(z.default,{stroke:r.color,name:"arrowRight",style:{cursor:"pointer"}},null,8,["stroke"])]),e.createElementVNode("button",{onClick:u[3]||(u[3]=e.withModifiers(c=>g("moveBottom"),["stop"])),style:{position:"absolute",bottom:"0",left:"50%",transform:"translateX(-50%)",height:"24px",width:"24px",padding:"0",background:"transparent",border:"none",display:"flex","align-items":"center","justify-content":"center"}},[e.createVNode(z.default,{stroke:r.color,name:"arrowBottom",style:{cursor:"pointer"}},null,8,["stroke"])]),e.createElementVNode("button",{onClick:u[4]||(u[4]=e.withModifiers(c=>g("reset"),["stop"])),style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",height:"24px",width:"24px",padding:"0",background:"transparent",border:"none",display:"flex","align-items":"center","justify-content":"center"}},[e.createVNode(z.default,{stroke:r.color,name:"close",style:{cursor:"pointer"},strokeWidth:2},null,8,["stroke"])])])],4))}},Ie=["id"],Oe=["xmlns","viewBox"],He=["id"],qe=["stop-color"],Ae=["stop-color"],je=["innerHTML"],Ge={__name:"vue-ui-molecule",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(r,{expose:g}){const y=r,{vue_ui_molecule:u}=p.useConfig(),c=e.computed(()=>!!y.dataset&&y.dataset.length);e.onMounted(()=>{p.objectIsEmpty(y.dataset)&&p.error({componentName:"VueUiMolecule",type:"dataset"})});const B=e.ref(p.createUid()),a=e.ref(null),i=e.ref(!1),b=e.ref(""),v=e.ref(null),F=e.ref(null),P=e.ref(!1),h=e.ref(null),G=e.ref(null),D=e.ref(0),o=e.computed(()=>{const t=le.useNestedProp({userConfig:y.config,defaultConfig:u});return t.theme?{...le.useNestedProp({userConfig:p.themes.vue_ui_molecule[t.theme]||y.config,defaultConfig:t}),customPalette:p.themePalettes[t.theme]||p.palette}:t}),{isPrinting:ne,isImaging:re,generatePdf:X,generateImage:W}=oe.usePrinter({elementId:`cluster_${B.value}`,fileName:o.value.style.chart.title.text||"vue-ui-molecule"}),ae=e.computed(()=>p.convertCustomPalette(o.value.customPalette)),k=e.ref({showTable:o.value.table.show,showDataLabels:!0,showTooltip:o.value.style.chart.tooltip.show});function Y(t,l=0){return Array.isArray(t)&&t.length>0&&t[0].nodes?Y(t[0].nodes,l+1):l}function se(){const t=Y(y.dataset);let l=100,n=l;for(let d=0;d<t;d+=1)l/=1,n+=l;return{height:n,width:n}}const x=e.ref(se()),U=e.ref(`0 0 ${x.value.width} ${x.value.height}`);function Z(t,l={x:-x.value.width/2.43,y:x.value.height/2},n=x.value.width/1.1,d=24,s=0,m=0,V="#BBBBBB"){if(t&&t.length>0){const A=p.createPolygonPath({plot:l,radius:n,sides:t.length,rotation:s});t.forEach((f,$)=>{const R=A.coordinates[$];let w;if(f.ancestor?f.ancestor.ancestor?w=f.ancestor.color||V:(w=ae.value[m]||p.palette[m]||V,m+=1):w=V,f.polygonPath={coordinates:[R]},f.circleRadius=d,f.color=w,f.uid=p.createUid(),f.nodes&&f.nodes.length>0){const j=!f.ancestor||!f.ancestor.ancestor?m:0;f.nodes=Z(f.nodes,R,n/2.9,d/2.2,s+Math.PI*$/f.nodes.length,j,w)}})}return t}function ie(t){const l=new Set;function n(s){s.forEach(m=>{m.color&&!l.has(m.color)&&l.add(m.color),m.nodes&&m.nodes.length>0&&n(m.nodes)})}n(t);const d={};return Array.from(l).forEach((s,m)=>{d[s]=`gradient_${m}`}),d}const ue=e.computed(()=>ie(C.value)),C=e.computed(()=>Z(y.dataset));function I(){P.value=!1,F.value=null,G.value=null,h.value=null,H({polygonPath:{coordinates:[{x:x.value.width/2,y:x.value.height/2}]},circleRadius:24})}const O=e.ref(null);function H(t){v.value.focus(),e.nextTick(()=>{O.value&&cancelAnimationFrame(O.value);const l=U.value.split(" "),n=parseFloat(l[0]),d=parseFloat(l[1]),s=parseFloat(l[2]),m=parseFloat(l[3]),{x:V,y:A}=t.polygonPath.coordinates[0],{circleRadius:f}=t,$=8.34,R=V-f*$,w=A-f*$,j=f*$*2,ye=f*$*2,ke=Math.sqrt((R-n)**2+(w-d)**2),L=Math.min(1200,Math.max(20,Math.floor(ke/10))),be=(R-n)/L,Ce=(w-d)/L,Be=(j-s)/L,xe=(ye-m)/L;let T=0;function te(){U.value=`${n+be*T} ${d+Ce*T} ${s+Be*T} ${m+xe*T}`,T+=o.value.style.chart.zoom.speed,T<=L&&(O.value=requestAnimationFrame(te))}te()})}function ce(t){F.value===t.uid?I():(F.value=t.uid,G.value=t,h.value={circleRadius:t.circleRadius,polygonPath:{coordinates:[{x:t.polygonPath.coordinates[0].x,y:t.polygonPath.coordinates[0].y}]}},H(t),P.value=t.uid!==C.value[0].uid)}function de(t){if(t.target.nodeName!=="circle")I(),P.value=!1;else return}const q=e.ref(null);function ve(t){q.value={datapoint:t,seriesIndex:-1,series:C.value,config:o.value};const l=o.value.style.chart.tooltip.customFormat;if(p.isFunction(l)&&p.functionReturnsString(()=>l({seriesIndex:-1,datapoint:t,series:C.value,config:o.value})))b.value=l({seriesIndex:-1,datapoint:t,series:C.value,config:o.value});else{let n="";n+=`<div style="display:flex;align-items:center;gap:3px"><div style="color:${t.color}">⬤</div><div>${t.name}</div></div>`,t.details&&(n+=`<div style="width:100%;border-top:1px solid ${o.value.style.chart.tooltip.borderColor};margin-top: 2px">${t.details}</div>`),b.value=`<div style="font-family:inherit">${n}</div>`}}const J=e.ref(null),E=e.ref(null);function me(t){J.value=t,t?(i.value=!0,ve(t),E.value=t.uid):(i.value=!1,b.value="",E.value=null)}function M(t){t==="right"&&(h.value.polygonPath.coordinates[0].x+=h.value.circleRadius),t==="left"&&(h.value.polygonPath.coordinates[0].x-=h.value.circleRadius),t==="top"&&(h.value.polygonPath.coordinates[0].y-=h.value.circleRadius),t==="bottom"&&(h.value.polygonPath.coordinates[0].y+=h.value.circleRadius),H(h.value)}function fe(t){const l=[];function n(d){d.forEach(s=>{const m={name:s.name,details:s.details||"-",ancestor:s.ancestor&&s.ancestor.name||"-",color:s.color||""};l.push(m),s.nodes&&s.nodes.length>0&&n(s.nodes,s.name)})}return n(t),l}const pe=e.computed(()=>fe(C.value)),N=e.computed(()=>{const t=[o.value.table.translations.nodeName,o.value.table.translations.details,o.value.table.translations.ancestor],l=pe.value.map((s,m)=>[{color:s.color,name:s.name},s.details,s.ancestor||""]),n={th:{backgroundColor:o.value.table.th.backgroundColor,color:o.value.table.th.color,outline:o.value.table.th.outline},td:{backgroundColor:o.value.table.td.backgroundColor,color:o.value.table.td.color,outline:o.value.table.td.outline},breakpoint:o.value.table.responsiveBreakpoint},d=[o.value.table.translations.nodeName,o.value.table.translations.details,o.value.table.translations.ancestor];return{head:t,body:l,config:n,colNames:d}});function K(){e.nextTick(()=>{const t=N.value.body.map((d,s)=>[[d[0].name],[d[1]],[d[2]]]),l=[[o.value.style.chart.title.text],[o.value.style.chart.title.subtitle.text],[[...N.value.head]]].concat(t),n=p.createCsvContent(l);p.downloadCsv({csvContent:n,title:o.value.style.chart.title.text||"vue-ui-molecule"})})}function he(){return C.value}const S=e.ref(!1);function ge(t){S.value=t,D.value+=1}function Q(){k.value.showTable=!k.value.showTable}function _(){k.value.showDataLabels=!k.value.showDataLabels}function ee(){k.value.showTooltip=!k.value.showTooltip}return g({getData:he,generatePdf:X,generateCsv:K,generateImage:W,toggleTable:Q,toggleLabels:_,toggleTooltip:ee}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{onMouseleave:l[7]||(l[7]=n=>{J.value=null,E.value=null}),ref_key:"moleculeChart",ref:v,class:e.normalizeClass(`vue-ui-molecule ${S.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`font-family:${o.value.style.fontFamily};width:100%; text-align:center;background:${o.value.style.chart.backgroundColor}`),id:`cluster_${B.value}`},[o.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${o.value.style.chart.backgroundColor};`)},[e.createVNode(we._sfc_main,{config:{title:{cy:"molecule-div-title",...o.value.style.chart.title},subtitle:{cy:"molecule-div-subtitle",...o.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),o.value.userOptions.show&&c.value?(e.openBlock(),e.createBlock(oe.UserOptions,{ref_key:"details",ref:a,key:`user_options_${D.value}`,backgroundColor:o.value.style.chart.backgroundColor,color:o.value.style.chart.color,isPrinting:e.unref(ne),isImaging:e.unref(re),uid:B.value,hasTooltip:o.value.userOptions.buttons.tooltip&&o.value.style.chart.tooltip.show,hasPdf:o.value.userOptions.buttons.pdf,hasXls:o.value.userOptions.buttons.csv,hasImg:o.value.userOptions.buttons.img,hasTable:o.value.userOptions.buttons.table,hasLabel:o.value.userOptions.buttons.labels,hasFullscreen:o.value.userOptions.buttons.fullscreen,isTooltip:k.value.showTooltip,titles:{...o.value.userOptions.buttonTitles},chartElement:v.value,onToggleFullscreen:ge,onGeneratePdf:e.unref(X),onGenerateCsv:K,onGenerateImage:e.unref(W),onToggleTable:Q,onToggleLabels:_,onToggleTooltip:ee},e.createSlots({_:2},[t.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,t.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,t.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,t.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,t.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,t.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,t.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:n,isFullscreen:d})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:n,isFullscreen:d})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasLabel","hasFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(p.XMLNS),viewBox:U.value,class:e.normalizeClass({"vue-data-ui-fullscreen--on":S.value,"vue-data-ui-fulscreen--off":!S.value}),style:e.normalizeStyle(`overflow: hidden; background:${o.value.style.chart.backgroundColor};color:${o.value.style.chart.color}`),onClick:l[0]||(l[0]=e.withModifiers(n=>de(n),["stop"]))},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(ue.value),n=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_${n}`,cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(p.lightenHexColor)(n,.5)},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":n},null,8,Ae)],8,He))),256))]),e.createVNode(Le,{dataset:C.value,color:o.value.style.chart.links.stroke,backgroundColor:o.value.style.chart.backgroundColor},null,8,["dataset","color","backgroundColor"]),e.createVNode(Se,{dataset:C.value,hoveredUid:E.value,stroke:o.value.style.chart.nodes.stroke,strokeHovered:o.value.style.chart.nodes.strokeHovered,onZoom:ce,onHover:me},null,8,["dataset","hoveredUid","stroke","strokeHovered"]),k.value.showDataLabels?(e.openBlock(),e.createBlock(Me,{key:0,dataset:C.value,color:o.value.style.chart.color,hoveredUid:E.value},null,8,["dataset","color","hoveredUid"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"svg",{svg:x.value},void 0,!0)],14,Oe)):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createBlock(Ue,{key:`direction_pad_${D.value}`,color:o.value.style.chart.color,isFullscreen:S.value,onMoveLeft:l[1]||(l[1]=n=>M("left")),onMoveRight:l[2]||(l[2]=n=>M("right")),onMoveTop:l[3]||(l[3]=n=>M("top")),onMoveBottom:l[4]||(l[4]=n=>M("bottom")),onReset:l[5]||(l[5]=n=>{I(),P.value=!1})},null,8,["color","isFullscreen"])):e.createCommentVNode("",!0),c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Pe.default,{key:4,config:{type:"molecule",style:{backgroundColor:o.value.style.chart.backgroundColor,molecule:{color:"#CCCCCC"}}}},null,8,["config"])),e.createVNode(Fe._sfc_main,{show:k.value.showTooltip&&i.value,backgroundColor:o.value.style.chart.tooltip.backgroundColor,color:o.value.style.chart.tooltip.color,borderRadius:o.value.style.chart.tooltip.borderRadius,borderColor:o.value.style.chart.tooltip.borderColor,borderWidth:o.value.style.chart.tooltip.borderWidth,fontSize:o.value.style.chart.tooltip.fontSize,backgroundOpacity:o.value.style.chart.tooltip.backgroundOpacity,parent:v.value,content:b.value,isCustom:o.value.style.chart.tooltip.customFormat&&typeof o.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(t.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...q.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(t.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...q.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","parent","content","isCustom"]),c.value?(e.openBlock(),e.createBlock(Ne.default,{key:5,hideDetails:"",config:{open:k.value.showTable,maxHeight:1e4,body:{backgroundColor:o.value.style.chart.backgroundColor,color:o.value.style.chart.color},head:{backgroundColor:o.value.style.chart.backgroundColor,color:o.value.style.chart.color}}},{content:e.withCtx(()=>[e.createVNode($e.DataTable,{colNames:N.value.colNames,head:N.value.head,body:N.value.body,config:N.value.config,title:`${o.value.style.chart.title.text}${o.value.style.chart.title.subtitle.text?` : ${o.value.style.chart.title.subtitle.text}`:""}`,onClose:l[6]||(l[6]=n=>k.value.showTable=!1)},{th:e.withCtx(({th:n})=>[e.createElementVNode("div",{innerHTML:n,style:{display:"flex","align-items":"center"}},null,8,je)]),td:e.withCtx(({td:n})=>[e.createTextVNode(e.toDisplayString(n.name||n),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ie))}},Xe=Te._export_sfc(Ge,[["__scopeId","data-v-a51864fb"]]);exports.default=Xe;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-p5gfZSvB.cjs"),W=require("./Title-Bb-A5OSV.cjs"),M=require("./usePrinter-fZlsJid8.cjs"),G=require("./Legend-D59FIuMs.cjs"),p=require("./BaseIcon-JtWoVorZ.cjs"),U=require("./DataTable-Rm9II-m2.cjs"),H=require("./vue-ui-skeleton-sjfOtCZr.cjs"),R=require("./vue-ui-accordion-C_pwrAJl.cjs"),B=require("./useNestedProp-2kIU-7On.cjs"),X=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),K=["id"],Y=["xmlns","viewBox"],J=["id"],Q=["stop-color"],Z=["stop-color"],ee=["x1","y1","x2","y2","stroke","stroke-width"],te=["d","stroke","stroke-width"],oe=["stroke"],le=["fill"],ae=["stroke"],re=["fill"],ne=["stroke"],se=["fill"],ue=["stroke"],ie=["fill"],ce=["stroke"],de=["fill"],ye=["d","stroke","stroke-width","fill"],ve=["x1","y1","stroke"],me=["cx","cy","fill","stroke"],he=["fill","stroke"],ke=["y","fill","font-weight"],pe=["y","fill"],fe=["onClick"],ge={style:{"font-weight":"bold"}},be=["innerHTML"],Ce={__name:"vue-ui-mood-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(P,{expose:E}){const s=P,{vue_ui_mood_radar:S}=n.useConfig(),m=e.computed(()=>!!s.dataset&&Object.keys(s.dataset).length);e.onMounted(()=>{n.objectIsEmpty(s.dataset)&&n.error({componentName:"VueUiMoodRadar",type:"dataset"})});const h=e.ref(n.createUid()),N=e.ref(null),T=e.ref(null),r=e.ref(null),t=e.computed(()=>{const l=B.useNestedProp({userConfig:s.config,defaultConfig:S});return l.theme?{...B.useNestedProp({userConfig:n.themes.vue_ui_mood_radar[l.theme]||s.config,defaultConfig:l})}:l}),{isPrinting:F,isImaging:A,generatePdf:x,generateImage:w}=M.usePrinter({elementId:h.value,fileName:t.value.style.chart.title.text||"vue-ui-mood-radar"}),f=e.ref({showTable:t.value.table.show}),d=e.computed(()=>({height:256,width:256})),C=e.computed(()=>n.createPolygonPath({plot:{x:128,y:d.value.height/2},radius:90,sides:5,rotation:11}));function L({centerX:l,centerY:a,apexX:o,apexY:i,proportion:c,key:k,value:q}){return{x:l+(o-l)*c,y:a+(i-a)*c,key:k,value:q}}const I=e.computed(()=>Math.max(...Object.values(s.dataset).map(l=>isNaN(l)?0:l))),v=e.computed(()=>Object.values(s.dataset).reduce((l,a)=>(isNaN(l)?0:l)+(isNaN(a)?0:a),0)),u=e.computed(()=>Object.keys(s.dataset).map((l,a)=>{const o=typeof s.dataset[l]!="number"||isNaN(s.dataset[l])?0:s.dataset[l];return{index:a,key:l,value:o,proportion:o/v.value,color:t.value.style.chart.layout.smileys.colors[l]}}).sort((l,a)=>a.key-l.key)),_=e.computed(()=>m.value?(["1","2","3","4","5"].forEach(l=>{[null,void 0].includes(s.dataset[l])&&n.error({componentName:"VueUiMoodRadar",type:"datasetAttribute",property:l})}),C.value.coordinates.map((l,a)=>{const o=L({centerX:d.value.width/2,centerY:d.value.height/2,apexX:l.x,apexY:l.y,proportion:u.value[a].value/I.value,key:u.value[a].key,value:u.value[a].value});return{...l,plots:o,key:u.value[a].key}})):[]),O=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 z(l){l===r.value?r.value=null:r.value=l}const y=e.computed(()=>{const l=u.value.map(o=>({name:o.key,color:o.color})),a=u.value.map(o=>isNaN(o.value)?0:o.value);return{head:l,body:a}});function V(){e.nextTick(()=>{const l=y.value.head.map((i,c)=>[[i.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(l),o=n.createCsvContent(a);n.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-mood-radar"})})}const g=e.computed(()=>{const l=[' <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,k)=>[{color:c.color,name:c.name},y.value.body[k].toFixed(t.value.table.td.roundingValue),isNaN(y.value.body[k]/v.value)?"-":(y.value.body[k]/v.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]),o={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},i=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:l,body:a,config:o,colNames:i}});function D(){return u.value}function $(){f.value.showTable=!f.value.showTable}const b=e.ref(!1);function j(l){b.value=l}return E({getData:D,generatePdf:x,generateCsv:V,generateImage:w,toggleTable:$}),(l,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:N,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(W._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(M.UserOptions,{key:1,ref_key:"details",ref:T,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(F),isImaging:e.unref(A),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:N.value,onToggleFullscreen:j,onGeneratePdf:e.unref(x),onGenerateCsv:V,onGenerateImage:e.unref(w),onToggleTable:$},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:i})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:i})),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(n.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":t.value.style.chart.layout.dataPolygon.color+e.unref(n.opacity)[t.value.style.chart.layout.dataPolygon.opacity]},null,8,Q),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(n.shiftHue)(t.value.style.chart.layout.dataPolygon.color,t.value.style.chart.layout.dataPolygon.gradient.intensity/100)}${e.unref(n.opacity)[t.value.style.chart.layout.dataPolygon.opacity]}`},null,8,Z)],8,J)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value.coordinates,o=>(e.openBlock(),e.createElementBlock("line",{x1:d.value.width/2,y1:d.value.height/2,x2:o.x,y2:o.y,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,ee))),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,te),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,oe),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[0]||(a[0]=o=>r.value=5),onMouseleave:a[1]||(a[1]=o=>r.value=null),cx:"128",cy:"25",r:"20",fill:r.value===5?t.value.style.chart.layout.smileys.colors[5]+"33":"transparent"},null,40,le),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,ae),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[2]||(a[2]=o=>r.value=4),onMouseleave:a[3]||(a[3]=o=>r.value=null),cx:"227",cy:"95.5",r:"20",fill:r.value===4?t.value.style.chart.layout.smileys.colors[4]+"33":"transparent"},null,40,re),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,ne),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[4]||(a[4]=o=>r.value=3),onMouseleave:a[5]||(a[5]=o=>r.value=null),cx:"190",cy:"213.5",r:"20",fill:r.value===3?t.value.style.chart.layout.smileys.colors[3]+"33":"transparent"},null,40,se),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,ue),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[6]||(a[6]=o=>r.value=2),onMouseleave:a[7]||(a[7]=o=>r.value=null),cx:"65",cy:"213.5",r:"20",fill:r.value===2?t.value.style.chart.layout.smileys.colors[2]+"33":"transparent"},null,40,ie),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,ce),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[8]||(a[8]=o=>r.value=1),onMouseleave:a[9]||(a[9]=o=>r.value=null),cx:"29",cy:"95.5",r:"20",fill:r.value===1?t.value.style.chart.layout.smileys.colors[1]+"33":"transparent"},null,40,de),e.createElementVNode("path",{d:e.unref(n.makePath)(_.value.map(o=>o.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})`:t.value.style.chart.layout.dataPolygon.color+e.unref(n.opacity)[t.value.style.chart.layout.dataPolygon.opacity]},null,8,ye),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value.map(o=>o.plots),(o,i)=>(e.openBlock(),e.createElementBlock("g",{class:"vue-ui-mood-radar-trap",style:e.normalizeStyle(`opacity:${r.value==o.key?"1":"0"}`)},[e.createElementVNode("line",{x1:o.x,y1:o.y,x2:128,y2:128,stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,ve),e.createElementVNode("circle",{cx:o.x,cy:o.y,fill:t.value.style.chart.layout.smileys.colors[o.key],r:"3",stroke:t.value.style.chart.backgroundColor,"stroke-width":.5},null,8,me),e.createElementVNode("circle",{cx:128,cy:128,fill:t.value.style.chart.layout.smileys.colors[o.key],r:"3",stroke:t.value.style.chart.backgroundColor,"stroke-width":.5},null,8,he),e.createElementVNode("text",{x:128,y:["5",5].includes(o.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(Number(o.value.toFixed(t.value.style.chart.layout.dataLabel.roundingValue)).toLocaleString()),9,ke),e.createElementVNode("text",{x:128,y:["5",5].includes(o.key)?163:102,fill:t.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle"}," ("+e.toDisplayString(Number((o.value/v.value*100).toFixed(t.value.style.chart.layout.dataLabel.roundingPercentage)).toLocaleString())+"%) ",9,pe)],4))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,Y)):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(H.default,{key:3,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(G.Legend,{key:4,legendSet:u.value,config:O.value,style:{display:"flex","row-gap":"6px"}},{item:e.withCtx(({legend:o,index:i})=>[e.createElementVNode("div",{onClick:()=>z(o.key),style:{display:"flex","flex-direction":"row",gap:"3px","align-items":"center",margin:"3px 0"}},[o.key==1?(e.openBlock(),e.createBlock(p.default,{key:0,strokeWidth:1,name:"moodSad",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),o.key==2?(e.openBlock(),e.createBlock(p.default,{key:1,strokeWidth:1,name:"moodFlat",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),o.key==3?(e.openBlock(),e.createBlock(p.default,{key:2,strokeWidth:1,name:"moodNeutral",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),o.key==4?(e.openBlock(),e.createBlock(p.default,{key:3,strokeWidth:1,name:"smiley",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),o.key==5?(e.openBlock(),e.createBlock(p.default,{key:4,strokeWidth:1,name:"moodHappy",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),e.createElementVNode("span",ge,e.toDisplayString(o.value),1),e.createTextVNode(" ("+e.toDisplayString((isNaN(o.proportion)?0:o.proportion*100).toFixed(t.value.style.chart.legend.roundingPercentage))+"%) ",1)],8,fe)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"legend",{legend:u.value},void 0,!0),m.value?(e.openBlock(),e.createBlock(R.default,{key:5,hideDetails:"",config:{open:f.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(U.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]=o=>f.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,be)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,K))}},Ne=X._export_sfc(Ce,[["__scopeId","data-v-81cc3908"]]);exports.default=Ne;
@@ -0,0 +1,548 @@
1
+ import { computed as u, onMounted as se, ref as C, openBlock as r, createElementBlock as p, normalizeClass as W, normalizeStyle as F, createVNode as z, createCommentVNode as i, createBlock as h, unref as d, createSlots as re, withCtx as m, renderSlot as b, normalizeProps as ne, guardReactiveProps as ue, createElementVNode as a, Fragment as D, renderList as G, toDisplayString as $, createTextVNode as E, nextTick as ie } from "vue";
2
+ import { u as de, o as ce, e as U, c as ye, t as ve, I as he, X as me, r as I, s as fe, J as ge, n as ke, q as pe } from "./index-uOtklCCx.js";
3
+ import { _ as be } from "./Title-2iks1ziC.js";
4
+ import { u as Ce, U as xe } from "./usePrinter-B6xQCyL-.js";
5
+ import { L as _e } from "./Legend-CxvJTjEm.js";
6
+ import M from "./BaseIcon-7_g11dRj.js";
7
+ import { D as we } from "./DataTable-CwaOlAsy.js";
8
+ import $e from "./vue-ui-skeleton-BM9rwmxY.js";
9
+ import Me from "./vue-ui-accordion-HJPf7My0.js";
10
+ import { u as H } from "./useNestedProp-BgWkUab_.js";
11
+ import { _ as Ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
+ const Pe = ["id"], Te = ["xmlns", "viewBox"], Fe = ["id"], Ae = ["stop-color"], Ie = ["stop-color"], Le = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Oe = ["d", "stroke", "stroke-width"], Se = ["stroke"], je = ["fill"], Ve = ["stroke"], Be = ["fill"], We = ["stroke"], ze = ["fill"], De = ["stroke"], Ge = ["fill"], Ee = ["stroke"], Ue = ["fill"], He = ["d", "stroke", "stroke-width", "fill"], Re = ["x1", "y1", "stroke"], Xe = ["cx", "cy", "fill", "stroke"], Ke = ["fill", "stroke"], qe = ["y", "fill", "font-weight"], Je = ["y", "fill"], Ye = ["onClick"], Qe = { style: { "font-weight": "bold" } }, Ze = ["innerHTML"], et = {
13
+ __name: "vue-ui-mood-radar",
14
+ props: {
15
+ config: {
16
+ type: Object,
17
+ default() {
18
+ return {};
19
+ }
20
+ },
21
+ dataset: {
22
+ type: Object,
23
+ default() {
24
+ return {};
25
+ }
26
+ }
27
+ },
28
+ setup(R, { expose: X }) {
29
+ const n = R, { vue_ui_mood_radar: K } = de(), x = u(() => !!n.dataset && Object.keys(n.dataset).length);
30
+ se(() => {
31
+ ce(n.dataset) && U({
32
+ componentName: "VueUiMoodRadar",
33
+ type: "dataset"
34
+ });
35
+ });
36
+ const _ = C(ye()), L = C(null), q = C(null), s = C(null), e = u(() => {
37
+ const o = H({
38
+ userConfig: n.config,
39
+ defaultConfig: K
40
+ });
41
+ return o.theme ? {
42
+ ...H({
43
+ userConfig: ve.vue_ui_mood_radar[o.theme] || n.config,
44
+ defaultConfig: o
45
+ })
46
+ } : o;
47
+ }), { isPrinting: J, isImaging: Y, generatePdf: O, generateImage: S } = Ce({
48
+ elementId: _.value,
49
+ fileName: e.value.style.chart.title.text || "vue-ui-mood-radar"
50
+ }), N = C({
51
+ showTable: e.value.table.show
52
+ }), f = u(() => ({
53
+ height: 256,
54
+ width: 256
55
+ })), A = u(() => he({
56
+ plot: { x: 128, y: f.value.height / 2 },
57
+ radius: 90,
58
+ sides: 5,
59
+ rotation: 11
60
+ }));
61
+ function Q({ centerX: o, centerY: l, apexX: t, apexY: y, proportion: v, key: w, value: ae }) {
62
+ return {
63
+ x: o + (t - o) * v,
64
+ y: l + (y - l) * v,
65
+ key: w,
66
+ value: ae
67
+ };
68
+ }
69
+ const Z = u(() => Math.max(...Object.values(n.dataset).map((o) => isNaN(o) ? 0 : o))), k = u(() => Object.values(n.dataset).reduce((o, l) => (isNaN(o) ? 0 : o) + (isNaN(l) ? 0 : l), 0)), c = u(() => Object.keys(n.dataset).map((o, l) => {
70
+ const t = typeof n.dataset[o] != "number" || isNaN(n.dataset[o]) ? 0 : n.dataset[o];
71
+ return {
72
+ index: l,
73
+ key: o,
74
+ value: t,
75
+ proportion: t / k.value,
76
+ color: e.value.style.chart.layout.smileys.colors[o]
77
+ };
78
+ }).sort((o, l) => l.key - o.key)), j = u(() => x.value ? (["1", "2", "3", "4", "5"].forEach((o) => {
79
+ [null, void 0].includes(n.dataset[o]) && U({
80
+ componentName: "VueUiMoodRadar",
81
+ type: "datasetAttribute",
82
+ property: o
83
+ });
84
+ }), A.value.coordinates.map((o, l) => {
85
+ const t = Q({
86
+ centerX: f.value.width / 2,
87
+ centerY: f.value.height / 2,
88
+ apexX: o.x,
89
+ apexY: o.y,
90
+ proportion: c.value[l].value / Z.value,
91
+ key: c.value[l].key,
92
+ value: c.value[l].value
93
+ });
94
+ return {
95
+ ...o,
96
+ plots: t,
97
+ key: c.value[l].key
98
+ };
99
+ })) : []), ee = u(() => ({
100
+ cy: "mood-radar-legend",
101
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
102
+ color: e.value.style.chart.legend.color,
103
+ fontSize: e.value.style.chart.legend.fontSize,
104
+ paddingBottom: 12,
105
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
106
+ }));
107
+ function te(o) {
108
+ o === s.value ? s.value = null : s.value = o;
109
+ }
110
+ const g = u(() => {
111
+ const o = c.value.map((t) => ({
112
+ name: t.key,
113
+ color: t.color
114
+ })), l = c.value.map((t) => isNaN(t.value) ? 0 : t.value);
115
+ return { head: o, body: l };
116
+ });
117
+ function V() {
118
+ ie(() => {
119
+ const o = g.value.head.map((y, v) => [[
120
+ y.name
121
+ ], [g.value.body[v]], [isNaN(g.value.body[v] / k.value) ? "-" : g.value.body[v] / k.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), t = ke(l);
122
+ pe({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-mood-radar" });
123
+ });
124
+ }
125
+ const P = u(() => {
126
+ const o = [
127
+ ' <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>',
128
+ Number(k.value.toFixed(e.value.table.td.roundingValue)).toLocaleString(),
129
+ "100%"
130
+ ], l = g.value.head.map((v, w) => [
131
+ {
132
+ color: v.color,
133
+ name: v.name
134
+ },
135
+ g.value.body[w].toFixed(e.value.table.td.roundingValue),
136
+ isNaN(g.value.body[w] / k.value) ? "-" : (g.value.body[w] / k.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
137
+ ]), t = {
138
+ th: {
139
+ backgroundColor: e.value.table.th.backgroundColor,
140
+ color: e.value.table.th.color,
141
+ outline: e.value.table.th.outline
142
+ },
143
+ td: {
144
+ backgroundColor: e.value.table.td.backgroundColor,
145
+ color: e.value.table.td.color,
146
+ outline: e.value.table.td.outline
147
+ },
148
+ breakpoint: e.value.table.responsiveBreakpoint
149
+ }, y = [
150
+ e.value.table.columnNames.series,
151
+ e.value.table.columnNames.value,
152
+ e.value.table.columnNames.percentage
153
+ ];
154
+ return {
155
+ head: o,
156
+ body: l,
157
+ config: t,
158
+ colNames: y
159
+ };
160
+ });
161
+ function oe() {
162
+ return c.value;
163
+ }
164
+ function B() {
165
+ N.value.showTable = !N.value.showTable;
166
+ }
167
+ const T = C(!1);
168
+ function le(o) {
169
+ T.value = o;
170
+ }
171
+ return X({
172
+ getData: oe,
173
+ generatePdf: O,
174
+ generateCsv: V,
175
+ generateImage: S,
176
+ toggleTable: B
177
+ }), (o, l) => (r(), p("div", {
178
+ class: W(`vue-ui-mood-radar ${T.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
179
+ ref_key: "moodRadarChart",
180
+ ref: L,
181
+ id: `${_.value}`,
182
+ style: F(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`)
183
+ }, [
184
+ e.value.style.chart.title.text ? (r(), p("div", {
185
+ key: 0,
186
+ style: F(`width:100%;background:${e.value.style.chart.backgroundColor}`)
187
+ }, [
188
+ z(be, {
189
+ config: {
190
+ title: {
191
+ cy: "mood-radar-title",
192
+ ...e.value.style.chart.title
193
+ },
194
+ subtitle: {
195
+ cy: "mood-radar-subtitle",
196
+ ...e.value.style.chart.title.subtitle
197
+ }
198
+ }
199
+ }, null, 8, ["config"])
200
+ ], 4)) : i("", !0),
201
+ e.value.userOptions.show && x.value ? (r(), h(xe, {
202
+ key: 1,
203
+ ref_key: "details",
204
+ ref: q,
205
+ backgroundColor: e.value.style.chart.backgroundColor,
206
+ color: e.value.style.chart.color,
207
+ isPrinting: d(J),
208
+ isImaging: d(Y),
209
+ uid: _.value,
210
+ hasPdf: e.value.userOptions.buttons.pdf,
211
+ hasXls: e.value.userOptions.buttons.csv,
212
+ hasImg: e.value.userOptions.buttons.img,
213
+ hasTable: e.value.userOptions.buttons.table,
214
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
215
+ titles: { ...e.value.userOptions.buttonTitles },
216
+ chartElement: L.value,
217
+ onToggleFullscreen: le,
218
+ onGeneratePdf: d(O),
219
+ onGenerateCsv: V,
220
+ onGenerateImage: d(S),
221
+ onToggleTable: B
222
+ }, re({ _: 2 }, [
223
+ o.$slots.optionPdf ? {
224
+ name: "optionPdf",
225
+ fn: m(() => [
226
+ b(o.$slots, "optionPdf", {}, void 0, !0)
227
+ ]),
228
+ key: "0"
229
+ } : void 0,
230
+ o.$slots.optionCsv ? {
231
+ name: "optionCsv",
232
+ fn: m(() => [
233
+ b(o.$slots, "optionCsv", {}, void 0, !0)
234
+ ]),
235
+ key: "1"
236
+ } : void 0,
237
+ o.$slots.optionImg ? {
238
+ name: "optionImg",
239
+ fn: m(() => [
240
+ b(o.$slots, "optionImg", {}, void 0, !0)
241
+ ]),
242
+ key: "2"
243
+ } : void 0,
244
+ o.$slots.optionTable ? {
245
+ name: "optionTable",
246
+ fn: m(() => [
247
+ b(o.$slots, "optionTable", {}, void 0, !0)
248
+ ]),
249
+ key: "3"
250
+ } : void 0,
251
+ o.$slots.optionFullscreen ? {
252
+ name: "optionFullscreen",
253
+ fn: m(({ toggleFullscreen: t, isFullscreen: y }) => [
254
+ b(o.$slots, "optionFullscreen", ne(ue({ toggleFullscreen: t, isFullscreen: y })), void 0, !0)
255
+ ]),
256
+ key: "4"
257
+ } : void 0
258
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : i("", !0),
259
+ x.value ? (r(), p("svg", {
260
+ key: 2,
261
+ xmlns: d(me),
262
+ viewBox: `0 0 ${f.value.width} ${f.value.height}`,
263
+ class: W({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
264
+ style: F(`overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
265
+ }, [
266
+ a("defs", null, [
267
+ a("radialGradient", {
268
+ cx: "50%",
269
+ cy: "50%",
270
+ r: "50%",
271
+ fx: "50%",
272
+ fy: "50%",
273
+ id: `mood_radar_gradient_${_.value}`
274
+ }, [
275
+ a("stop", {
276
+ offset: "0%",
277
+ "stop-color": e.value.style.chart.layout.dataPolygon.color + d(I)[e.value.style.chart.layout.dataPolygon.opacity]
278
+ }, null, 8, Ae),
279
+ a("stop", {
280
+ offset: "100%",
281
+ "stop-color": `${d(fe)(
282
+ e.value.style.chart.layout.dataPolygon.color,
283
+ e.value.style.chart.layout.dataPolygon.gradient.intensity / 100
284
+ )}${d(I)[e.value.style.chart.layout.dataPolygon.opacity]}`
285
+ }, null, 8, Ie)
286
+ ], 8, Fe)
287
+ ]),
288
+ (r(!0), p(D, null, G(A.value.coordinates, (t) => (r(), p("line", {
289
+ x1: f.value.width / 2,
290
+ y1: f.value.height / 2,
291
+ x2: t.x,
292
+ y2: t.y,
293
+ stroke: e.value.style.chart.layout.grid.stroke,
294
+ "stroke-width": e.value.style.chart.layout.grid.strokeWidth
295
+ }, null, 8, Le))), 256)),
296
+ a("path", {
297
+ d: A.value.path,
298
+ fill: "none",
299
+ stroke: e.value.style.chart.layout.outerPolygon.stroke,
300
+ "stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
301
+ "stroke-linejoin": "round",
302
+ "stroke-linecap": "round"
303
+ }, null, 8, Oe),
304
+ a("path", {
305
+ fill: "none",
306
+ stroke: e.value.style.chart.layout.smileys.colors[5],
307
+ "stroke-width": "1",
308
+ "stroke-linecap": "round",
309
+ 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"
310
+ }, null, 8, Se),
311
+ a("circle", {
312
+ class: "vue-ui-mood-radar-trap",
313
+ onMouseenter: l[0] || (l[0] = (t) => s.value = 5),
314
+ onMouseleave: l[1] || (l[1] = (t) => s.value = null),
315
+ cx: "128",
316
+ cy: "25",
317
+ r: "20",
318
+ fill: s.value === 5 ? e.value.style.chart.layout.smileys.colors[5] + "33" : "transparent"
319
+ }, null, 40, je),
320
+ a("path", {
321
+ fill: "none",
322
+ stroke: e.value.style.chart.layout.smileys.colors[4],
323
+ "stroke-width": "1",
324
+ "stroke-linecap": "round",
325
+ 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"
326
+ }, null, 8, Ve),
327
+ a("circle", {
328
+ class: "vue-ui-mood-radar-trap",
329
+ onMouseenter: l[2] || (l[2] = (t) => s.value = 4),
330
+ onMouseleave: l[3] || (l[3] = (t) => s.value = null),
331
+ cx: "227",
332
+ cy: "95.5",
333
+ r: "20",
334
+ fill: s.value === 4 ? e.value.style.chart.layout.smileys.colors[4] + "33" : "transparent"
335
+ }, null, 40, Be),
336
+ a("path", {
337
+ fill: "none",
338
+ stroke: e.value.style.chart.layout.smileys.colors[3],
339
+ "stroke-width": "1",
340
+ "stroke-linecap": "round",
341
+ 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"
342
+ }, null, 8, We),
343
+ a("circle", {
344
+ class: "vue-ui-mood-radar-trap",
345
+ onMouseenter: l[4] || (l[4] = (t) => s.value = 3),
346
+ onMouseleave: l[5] || (l[5] = (t) => s.value = null),
347
+ cx: "190",
348
+ cy: "213.5",
349
+ r: "20",
350
+ fill: s.value === 3 ? e.value.style.chart.layout.smileys.colors[3] + "33" : "transparent"
351
+ }, null, 40, ze),
352
+ a("path", {
353
+ fill: "none",
354
+ stroke: e.value.style.chart.layout.smileys.colors[2],
355
+ "stroke-width": "1",
356
+ "stroke-linecap": "round",
357
+ 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"
358
+ }, null, 8, De),
359
+ a("circle", {
360
+ class: "vue-ui-mood-radar-trap",
361
+ onMouseenter: l[6] || (l[6] = (t) => s.value = 2),
362
+ onMouseleave: l[7] || (l[7] = (t) => s.value = null),
363
+ cx: "65",
364
+ cy: "213.5",
365
+ r: "20",
366
+ fill: s.value === 2 ? e.value.style.chart.layout.smileys.colors[2] + "33" : "transparent"
367
+ }, null, 40, Ge),
368
+ a("path", {
369
+ fill: "none",
370
+ stroke: e.value.style.chart.layout.smileys.colors[1],
371
+ "stroke-width": "1",
372
+ "stroke-linecap": "round",
373
+ 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"
374
+ }, null, 8, Ee),
375
+ a("circle", {
376
+ class: "vue-ui-mood-radar-trap",
377
+ onMouseenter: l[8] || (l[8] = (t) => s.value = 1),
378
+ onMouseleave: l[9] || (l[9] = (t) => s.value = null),
379
+ cx: "29",
380
+ cy: "95.5",
381
+ r: "20",
382
+ fill: s.value === 1 ? e.value.style.chart.layout.smileys.colors[1] + "33" : "transparent"
383
+ }, null, 40, Ue),
384
+ a("path", {
385
+ d: d(ge)(j.value.map((t) => t.plots)),
386
+ stroke: e.value.style.chart.layout.dataPolygon.stroke,
387
+ "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
388
+ "stroke-linecap": "round",
389
+ "stroke-linejoin": "round",
390
+ fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${_.value})` : e.value.style.chart.layout.dataPolygon.color + d(I)[e.value.style.chart.layout.dataPolygon.opacity]
391
+ }, null, 8, He),
392
+ (r(!0), p(D, null, G(j.value.map((t) => t.plots), (t, y) => (r(), p("g", {
393
+ class: "vue-ui-mood-radar-trap",
394
+ style: F(`opacity:${s.value == t.key ? "1" : "0"}`)
395
+ }, [
396
+ a("line", {
397
+ x1: t.x,
398
+ y1: t.y,
399
+ x2: 128,
400
+ y2: 128,
401
+ stroke: e.value.style.chart.layout.smileys.colors[t.key]
402
+ }, null, 8, Re),
403
+ a("circle", {
404
+ cx: t.x,
405
+ cy: t.y,
406
+ fill: e.value.style.chart.layout.smileys.colors[t.key],
407
+ r: "3",
408
+ stroke: e.value.style.chart.backgroundColor,
409
+ "stroke-width": 0.5
410
+ }, null, 8, Xe),
411
+ a("circle", {
412
+ cx: 128,
413
+ cy: 128,
414
+ fill: e.value.style.chart.layout.smileys.colors[t.key],
415
+ r: "3",
416
+ stroke: e.value.style.chart.backgroundColor,
417
+ "stroke-width": 0.5
418
+ }, null, 8, Ke),
419
+ a("text", {
420
+ x: 128,
421
+ y: ["5", 5].includes(t.key) ? 145 : 120,
422
+ fill: e.value.style.chart.layout.dataLabel.color,
423
+ "font-size": "12",
424
+ "text-anchor": "middle",
425
+ "font-weight": e.value.style.chart.layout.dataLabel.bold ? "bold" : "normal"
426
+ }, $(Number(t.value.toFixed(e.value.style.chart.layout.dataLabel.roundingValue)).toLocaleString()), 9, qe),
427
+ a("text", {
428
+ x: 128,
429
+ y: ["5", 5].includes(t.key) ? 163 : 102,
430
+ fill: e.value.style.chart.layout.dataLabel.color,
431
+ "font-size": "12",
432
+ "text-anchor": "middle"
433
+ }, " (" + $(Number((t.value / k.value * 100).toFixed(e.value.style.chart.layout.dataLabel.roundingPercentage)).toLocaleString()) + "%) ", 9, Je)
434
+ ], 4))), 256)),
435
+ b(o.$slots, "svg", { svg: f.value }, void 0, !0)
436
+ ], 14, Te)) : i("", !0),
437
+ x.value ? i("", !0) : (r(), h($e, {
438
+ key: 3,
439
+ config: {
440
+ type: "radar",
441
+ style: {
442
+ backgroundColor: e.value.style.chart.backgroundColor,
443
+ radar: {
444
+ grid: {
445
+ color: "#CCCCCC"
446
+ },
447
+ shapes: {
448
+ color: "#CCCCCC"
449
+ }
450
+ }
451
+ }
452
+ }
453
+ }, null, 8, ["config"])),
454
+ e.value.style.chart.legend.show ? (r(), h(_e, {
455
+ key: 4,
456
+ legendSet: c.value,
457
+ config: ee.value,
458
+ style: { display: "flex", "row-gap": "6px" }
459
+ }, {
460
+ item: m(({ legend: t, index: y }) => [
461
+ a("div", {
462
+ onClick: () => te(t.key),
463
+ style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center", margin: "3px 0" }
464
+ }, [
465
+ t.key == 1 ? (r(), h(M, {
466
+ key: 0,
467
+ strokeWidth: 1,
468
+ name: "moodSad",
469
+ stroke: e.value.style.chart.layout.smileys.colors[t.key]
470
+ }, null, 8, ["stroke"])) : i("", !0),
471
+ t.key == 2 ? (r(), h(M, {
472
+ key: 1,
473
+ strokeWidth: 1,
474
+ name: "moodFlat",
475
+ stroke: e.value.style.chart.layout.smileys.colors[t.key]
476
+ }, null, 8, ["stroke"])) : i("", !0),
477
+ t.key == 3 ? (r(), h(M, {
478
+ key: 2,
479
+ strokeWidth: 1,
480
+ name: "moodNeutral",
481
+ stroke: e.value.style.chart.layout.smileys.colors[t.key]
482
+ }, null, 8, ["stroke"])) : i("", !0),
483
+ t.key == 4 ? (r(), h(M, {
484
+ key: 3,
485
+ strokeWidth: 1,
486
+ name: "smiley",
487
+ stroke: e.value.style.chart.layout.smileys.colors[t.key]
488
+ }, null, 8, ["stroke"])) : i("", !0),
489
+ t.key == 5 ? (r(), h(M, {
490
+ key: 4,
491
+ strokeWidth: 1,
492
+ name: "moodHappy",
493
+ stroke: e.value.style.chart.layout.smileys.colors[t.key]
494
+ }, null, 8, ["stroke"])) : i("", !0),
495
+ a("span", Qe, $(t.value), 1),
496
+ E(" (" + $((isNaN(t.proportion) ? 0 : t.proportion * 100).toFixed(
497
+ e.value.style.chart.legend.roundingPercentage
498
+ )) + "%) ", 1)
499
+ ], 8, Ye)
500
+ ]),
501
+ _: 1
502
+ }, 8, ["legendSet", "config"])) : i("", !0),
503
+ b(o.$slots, "legend", { legend: c.value }, void 0, !0),
504
+ x.value ? (r(), h(Me, {
505
+ key: 5,
506
+ hideDetails: "",
507
+ config: {
508
+ open: N.value.showTable,
509
+ maxHeight: 1e4,
510
+ body: {
511
+ backgroundColor: e.value.style.chart.backgroundColor,
512
+ color: e.value.style.chart.color
513
+ },
514
+ head: {
515
+ backgroundColor: e.value.style.chart.backgroundColor,
516
+ color: e.value.style.chart.color
517
+ }
518
+ }
519
+ }, {
520
+ content: m(() => [
521
+ z(we, {
522
+ colNames: P.value.colNames,
523
+ head: P.value.head,
524
+ body: P.value.body,
525
+ config: P.value.config,
526
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
527
+ onClose: l[10] || (l[10] = (t) => N.value.showTable = !1)
528
+ }, {
529
+ th: m(({ th: t }) => [
530
+ a("div", {
531
+ innerHTML: t,
532
+ style: { display: "flex", "align-items": "center" }
533
+ }, null, 8, Ze)
534
+ ]),
535
+ td: m(({ td: t }) => [
536
+ E($(t.name || t), 1)
537
+ ]),
538
+ _: 1
539
+ }, 8, ["colNames", "head", "body", "config", "title"])
540
+ ]),
541
+ _: 1
542
+ }, 8, ["config"])) : i("", !0)
543
+ ], 14, Pe));
544
+ }
545
+ }, yt = /* @__PURE__ */ Ne(et, [["__scopeId", "data-v-81cc3908"]]);
546
+ export {
547
+ yt as default
548
+ };