vue-data-ui 2.3.30 → 2.3.31
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-Bh7WeO_g.js → Arrow-CiAaagmx.js} +1 -1
- package/dist/{Arrow-B8z06v67.cjs → Arrow-CiUBvBlb.cjs} +1 -1
- package/dist/{BaseIcon-BG_bJS3R.js → BaseIcon-BHjAlRHU.js} +1 -1
- package/dist/{BaseIcon-DDCJA3rm.cjs → BaseIcon-D5tyFpQV.cjs} +1 -1
- package/dist/{DataTable-Doh_4M84.cjs → DataTable-ByKKUsaO.cjs} +1 -1
- package/dist/{DataTable-CsPidn0_.js → DataTable-DqPGv4Ms.js} +2 -2
- package/dist/{Legend-CkQ_zypV.js → Legend-3WC5-bUm.js} +1 -1
- package/dist/{Legend-B20rRwGi.cjs → Legend-BfwTJ9M-.cjs} +1 -1
- package/dist/{Shape-B4gGeBLI.js → Shape-C4kR-mjQ.js} +1 -1
- package/dist/{Shape-B8O8_E6l.cjs → Shape-CAjMa3HT.cjs} +1 -1
- package/dist/{Slicer-BXveU40S.cjs → Slicer-BScyt_Vx.cjs} +1 -1
- package/dist/{Slicer-DaEfxscP.js → Slicer-CPKkdrpR.js} +1 -1
- package/dist/{Title-eBTH8iGJ.js → Title-CKSMMGjd.js} +1 -1
- package/dist/{Title-BU6E8Xld.cjs → Title-CNJKmNgA.cjs} +1 -1
- package/dist/{Tooltip-Oicp_EIo.cjs → Tooltip-BIHm4byQ.cjs} +1 -1
- package/dist/{Tooltip-B11OahTD.js → Tooltip-C9Q2lE3W.js} +1 -1
- package/dist/{index-BlXzlBwZ.js → index-BJ6NXF-z.js} +2 -1
- package/dist/index-DQvb5Vgo.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-BoNl5H_z.js → useNestedProp-AR9tJrsp.js} +1 -1
- package/dist/{useNestedProp-Cggpoz7e.cjs → useNestedProp-D1F0KM3m.cjs} +1 -1
- package/dist/{usePrinter-CZ8F5Cth.js → usePrinter-BUIam1ao.js} +1 -1
- package/dist/{usePrinter-DoYKBzst.cjs → usePrinter-C4oaA82s.cjs} +1 -1
- package/dist/{vue-data-ui-CGgiWEo3.cjs → vue-data-ui-Ch_eQQZR.cjs} +1 -1
- package/dist/{vue-data-ui-BOqzG_nZ.js → vue-data-ui-DfNedsHE.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CpntMt7p.cjs → vue-ui-3d-bar-BiF2mAOR.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-CjnVg4YI.js → vue-ui-3d-bar-cav5cdhf.js} +7 -7
- package/dist/{vue-ui-accordion-CTYvdLLH.cjs → vue-ui-accordion-D5-giD3x.cjs} +1 -1
- package/dist/{vue-ui-accordion-wHRG3nXl.js → vue-ui-accordion-GCDGaaYO.js} +3 -3
- package/dist/{vue-ui-age-pyramid-vmCwgRy9.js → vue-ui-age-pyramid-CCDfdeJE.js} +8 -8
- package/dist/{vue-ui-age-pyramid-DDiL1Zje.cjs → vue-ui-age-pyramid-DA-7y6nN.cjs} +1 -1
- package/dist/{vue-ui-annotator-DQ3wKf9n.cjs → vue-ui-annotator-BKzaeqJR.cjs} +1 -1
- package/dist/{vue-ui-annotator-9FGJdNLY.js → vue-ui-annotator-B_vPtBm9.js} +1 -1
- package/dist/{vue-ui-candlestick-DpMr2r0i.js → vue-ui-candlestick-CeZC3-9i.js} +9 -9
- package/dist/{vue-ui-candlestick-6joQ9JKQ.cjs → vue-ui-candlestick-Cgg58gem.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CgR4ADOz.js → vue-ui-carousel-table-e0zW3fCz.js} +4 -4
- package/dist/{vue-ui-carousel-table-BV0EOLqU.cjs → vue-ui-carousel-table-ySFFobPq.cjs} +1 -1
- package/dist/{vue-ui-chestnut-Ca2878kV.js → vue-ui-chestnut-ClIE26od.js} +6 -6
- package/dist/{vue-ui-chestnut-CxoCcw_B.cjs → vue-ui-chestnut-Cxw7FjDt.cjs} +1 -1
- package/dist/{vue-ui-cursor-BW8C6oUc.js → vue-ui-cursor-5ilFNncb.js} +2 -2
- package/dist/{vue-ui-cursor-DxF_gXQf.cjs → vue-ui-cursor-DyIiGBho.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DN4nErBZ.js → vue-ui-dashboard-CXrmy76c.js} +2 -2
- package/dist/{vue-ui-dashboard-BGrVyITN.cjs → vue-ui-dashboard-D-JyU495.cjs} +1 -1
- package/dist/{vue-ui-digits-CpSKBG2c.cjs → vue-ui-digits-B30HSHeA.cjs} +1 -1
- package/dist/{vue-ui-digits-CmSFSs5S.js → vue-ui-digits-BEZa60-l.js} +2 -2
- package/dist/{vue-ui-donut-C29yXH3H.cjs → vue-ui-donut-0jWL1Wzc.cjs} +1 -1
- package/dist/{vue-ui-donut-BqfRwAIM.js → vue-ui-donut-GPrnPVJq.js} +9 -9
- package/dist/{vue-ui-donut-evolution-DIR7yBUC.js → vue-ui-donut-evolution-D0LbULdi.js} +9 -9
- package/dist/{vue-ui-donut-evolution-COFG73Xl.cjs → vue-ui-donut-evolution-hoHN3gzZ.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BASuPAvI.js → vue-ui-dumbbell-67OcxNA7.js} +8 -8
- package/dist/{vue-ui-dumbbell-1NA60u3h.cjs → vue-ui-dumbbell-Cb87RX2P.cjs} +1 -1
- package/dist/{vue-ui-flow-DBK7d0DQ.cjs → vue-ui-flow-DPVIb1Kj.cjs} +1 -1
- package/dist/{vue-ui-flow-wq0aqc5r.js → vue-ui-flow-Vi3PWSP4.js} +7 -7
- package/dist/{vue-ui-galaxy-BgdVvk4N.cjs → vue-ui-galaxy-B5oGFG97.cjs} +1 -1
- package/dist/{vue-ui-galaxy-CFQ2hQAl.js → vue-ui-galaxy-BgO0ZTYY.js} +9 -9
- package/dist/{vue-ui-gauge-CIN265dN.js → vue-ui-gauge-B0w9GJOy.js} +5 -5
- package/dist/{vue-ui-gauge-C4_kEbgg.cjs → vue-ui-gauge-qe4o6Sjl.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BpT3iwC9.cjs → vue-ui-gizmo-BVoL7TEm.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DRXWEpqU.js → vue-ui-gizmo-BXN_MwN4.js} +2 -2
- package/dist/{vue-ui-heatmap-CVD7FVfk.cjs → vue-ui-heatmap-8TBiusXd.cjs} +1 -1
- package/dist/{vue-ui-heatmap-Dc0ft_Ga.js → vue-ui-heatmap-BHNaaYJl.js} +8 -8
- package/dist/{vue-ui-kpi-WDZIt76s.cjs → vue-ui-kpi-BeGFsXxC.cjs} +1 -1
- package/dist/{vue-ui-kpi-DDL1TvBP.js → vue-ui-kpi-DTu-z6sj.js} +2 -2
- package/dist/{vue-ui-mini-loader-B2C5U55l.js → vue-ui-mini-loader-BHX2lzqL.js} +2 -2
- package/dist/{vue-ui-mini-loader-BcGSpUfg.cjs → vue-ui-mini-loader-D1vhrkOt.cjs} +1 -1
- package/dist/{vue-ui-molecule-C5BmRi2R.cjs → vue-ui-molecule-Bow2JLXO.cjs} +1 -1
- package/dist/{vue-ui-molecule-CD3cPNOq.js → vue-ui-molecule-DLbPBobL.js} +9 -9
- package/dist/{vue-ui-mood-radar-D0KbeV5j.js → vue-ui-mood-radar-C0-KPgNg.js} +9 -9
- package/dist/{vue-ui-mood-radar-afS64zg-.cjs → vue-ui-mood-radar-CqosXQQX.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BGoc1RFX.js → vue-ui-nested-donuts-BFa-oFEx.js} +9 -9
- package/dist/{vue-ui-nested-donuts-D-TeyOtL.cjs → vue-ui-nested-donuts-C2NpczwE.cjs} +1 -1
- package/dist/{vue-ui-onion-B_khL0Kv.js → vue-ui-onion-BexMkS4E.js} +9 -9
- package/dist/{vue-ui-onion-CFdbWLu3.cjs → vue-ui-onion-DwdVlm0O.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CP4V0K8m.js → vue-ui-parallel-coordinate-plot-BALCmQ5Z.js} +247 -237
- package/dist/vue-ui-parallel-coordinate-plot-BKKl2c7B.cjs +8 -0
- package/dist/{vue-ui-quadrant-C6-A8Gx_.cjs → vue-ui-quadrant-BPoDyM8A.cjs} +1 -1
- package/dist/{vue-ui-quadrant-C1YbjeI7.js → vue-ui-quadrant-CTrV6HgE.js} +10 -10
- package/dist/{vue-ui-quick-chart-CtWhs_2c.js → vue-ui-quick-chart-BmMbY6SQ.js} +6 -6
- package/dist/{vue-ui-quick-chart-ConXdEsU.cjs → vue-ui-quick-chart-D4GFWcp7.cjs} +1 -1
- package/dist/{vue-ui-radar-DMJLLVWb.cjs → vue-ui-radar-7sSdEfcO.cjs} +1 -1
- package/dist/{vue-ui-radar-B2vAPYa7.js → vue-ui-radar-Clfa-6Le.js} +10 -10
- package/dist/{vue-ui-rating-xGz4av68.js → vue-ui-rating-Ce8pPHCS.js} +2 -2
- package/dist/{vue-ui-rating-DhZ0tltR.cjs → vue-ui-rating-Cs45C-53.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-hb4Q051h.cjs → vue-ui-relation-circle-CuZjr_W8.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BQK8wMQE.js → vue-ui-relation-circle-DokQNUAI.js} +5 -5
- package/dist/{vue-ui-rings-ZKjhNx5K.js → vue-ui-rings-Cd_5yc8m.js} +9 -9
- package/dist/{vue-ui-rings-D1EW3d4M.cjs → vue-ui-rings-DlcUcstZ.cjs} +1 -1
- package/dist/{vue-ui-scatter-CHONk8k0.js → vue-ui-scatter-CGUY8yGo.js} +10 -10
- package/dist/{vue-ui-scatter-CMRe2b2K.cjs → vue-ui-scatter-Diih7alT.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DcKhT745.cjs → vue-ui-screenshot-C4CVXRBT.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DmGe5ptH.js → vue-ui-screenshot-CslXMiXF.js} +1 -1
- package/dist/{vue-ui-skeleton-j-IOiy5w.cjs → vue-ui-skeleton-6fxZMdtV.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CJ2R5R6u.js → vue-ui-skeleton-DdAE1RlM.js} +2 -2
- package/dist/{vue-ui-smiley-DXVcosKR.js → vue-ui-smiley-DTY5KiDB.js} +2 -2
- package/dist/{vue-ui-smiley-D5Jn6d5f.cjs → vue-ui-smiley-enpMVkNM.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-Gg6TxR4m.js → vue-ui-spark-trend-CNqfwxj9.js} +4 -4
- package/dist/{vue-ui-spark-trend-CWH3W7h3.cjs → vue-ui-spark-trend-UUDAPzlU.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BsoKTXr2.cjs → vue-ui-sparkbar-BEwF2ZHO.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DUx1qVzQ.js → vue-ui-sparkbar-D2M_uMU8.js} +3 -3
- package/dist/{vue-ui-sparkgauge-xrvp9g87.js → vue-ui-sparkgauge-BQo2RtDp.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DPusPoRv.cjs → vue-ui-sparkgauge-DCXz-sVO.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DzYXMNj8.js → vue-ui-sparkhistogram-B83GykeL.js} +4 -4
- package/dist/{vue-ui-sparkhistogram---JRg2R1.cjs → vue-ui-sparkhistogram-DnJyQqnN.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CGWePkVI.js → vue-ui-sparkline-DDGgABlc.js} +3 -3
- package/dist/{vue-ui-sparkline-1Z6GnwoN.cjs → vue-ui-sparkline-pblHktJQ.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DCc68t8g.cjs → vue-ui-sparkstackbar-Btx1pr5F.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DFgeRAbQ.js → vue-ui-sparkstackbar-CA3xOex0.js} +3 -3
- package/dist/{vue-ui-stackbar-B0dWToaf.js → vue-ui-stackbar-BhLDK1Rx.js} +10 -10
- package/dist/{vue-ui-stackbar-Cz0mT8Mo.cjs → vue-ui-stackbar-DPsuPIje.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DZt1Wq20.cjs → vue-ui-strip-plot-BaLXVgu4.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BFqd-S7c.js → vue-ui-strip-plot-CX2aCzHG.js} +9 -9
- package/dist/{vue-ui-table-DtwEoIzI.js → vue-ui-table-ClECxS2U.js} +1 -1
- package/dist/{vue-ui-table-heatmap-3RSMOHkc.cjs → vue-ui-table-heatmap-9BG7K8wL.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-C8b3pE04.js → vue-ui-table-heatmap-BL8cy2H3.js} +4 -4
- package/dist/{vue-ui-table-CMvyMuc4.cjs → vue-ui-table-sQc-MSR_.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BrqhBv29.js → vue-ui-table-sparkline-D0CF7Nwo.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BKOaVFtt.cjs → vue-ui-table-sparkline-Dptv8kIS.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DMkLvJgE.js → vue-ui-thermometer-BIWGfZUV.js} +5 -5
- package/dist/{vue-ui-thermometer-CKgIqM5y.cjs → vue-ui-thermometer-CDI0CdOu.cjs} +1 -1
- package/dist/{vue-ui-timer-D7fvoR77.cjs → vue-ui-timer-BUj9O2DA.cjs} +1 -1
- package/dist/{vue-ui-timer-RA9yfgBk.js → vue-ui-timer-CLoIqr2Z.js} +4 -4
- package/dist/{vue-ui-tiremarks-C7y6Mbxe.cjs → vue-ui-tiremarks-BbTYG885.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-B_EncUi6.js → vue-ui-tiremarks-QCCPssnC.js} +5 -5
- package/dist/{vue-ui-treemap-BuGZgQsr.js → vue-ui-treemap-B1mD4WbM.js} +9 -9
- package/dist/{vue-ui-treemap-CfngjVUS.cjs → vue-ui-treemap-D6YxChmu.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DKbq4bX4.cjs → vue-ui-vertical-bar-CIbzBp6T.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-T4bFd3JF.js → vue-ui-vertical-bar-Cq7SX6st.js} +9 -9
- package/dist/{vue-ui-waffle-CrxmrYsV.js → vue-ui-waffle-BMYYVoRM.js} +55 -55
- package/dist/{vue-ui-waffle-BJFbhWnA.cjs → vue-ui-waffle-xeawcYID.cjs} +1 -1
- package/dist/{vue-ui-wheel-BDRvKR1Z.cjs → vue-ui-wheel-Sp4i7L2L.cjs} +1 -1
- package/dist/{vue-ui-wheel-DOyC7NgR.js → vue-ui-wheel-t6sMmDHN.js} +5 -5
- package/dist/{vue-ui-word-cloud-DBxVNlJ3.js → vue-ui-word-cloud-BURJJFyJ.js} +7 -7
- package/dist/{vue-ui-word-cloud-Dmcelg3z.cjs → vue-ui-word-cloud-ohI8RK1_.cjs} +1 -1
- package/dist/{vue-ui-xy-BIbvJSh2.js → vue-ui-xy-CruxD8qY.js} +12 -12
- package/dist/{vue-ui-xy-CVKaR90p.cjs → vue-ui-xy-DcjiVoXA.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-2AaNivzI.cjs → vue-ui-xy-canvas-B5pcGCvN.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-CXVni3kC.js → vue-ui-xy-canvas-D3KZ8rIM.js} +10 -10
- package/package.json +1 -1
- package/dist/index-hKWfT7Wa.cjs +0 -4
- package/dist/vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),E=require("./useNestedProp-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),E=require("./useNestedProp-D1F0KM3m.cjs"),v=require("./index-DQvb5Vgo.cjs"),T=require("./Title-CNJKmNgA.cjs"),O=require("./usePrinter-C4oaA82s.cjs"),j=require("./vue-ui-skeleton-6fxZMdtV.cjs"),U=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H=["id"],M=["xmlns","viewBox"],D={key:0},X=["d","stroke-width","stroke"],R={key:1},Y=["x1","y1","x2","y2","stroke-width","stroke"],J=["x","y","font-size","fill","font-weight","text-anchor"],K={key:3,class:"vue-data-ui-watermark"},Q={__name:"vue-ui-tiremarks",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(A,{expose:V}){const u=A,{vue_ui_tiremarks:q}=v.useConfig(),x=e.computed(()=>!!u.dataset&&Object.keys(u.dataset).length),$=e.ref(v.createUid()),w=e.ref(null),P=e.ref(0),t=e.computed(()=>{const a=E.useNestedProp({userConfig:u.config,defaultConfig:q});return a.theme?{...E.useNestedProp({userConfig:v.themes.vue_ui_tiremarks[a.theme]||u.config,defaultConfig:a})}:a}),{isPrinting:B,isImaging:z,generatePdf:S,generateImage:I}=O.usePrinter({elementId:$.value,fileName:t.value.style.chart.title.text||"vue-ui-tiremarks"}),i=e.ref(t.value.style.chart.animation.use?0:u.dataset.percentage);e.watch(()=>u.dataset.percentage,()=>{i.value=e.ref(t.value.style.chart.animation.use?0:u.dataset.percentage),F()}),e.onMounted(()=>{v.objectIsEmpty(u.dataset)&&v.error({componentName:"VueUiTiremarks",type:"dataset"}),F()});function F(){let a=0,s=t.value.style.chart.animation.speed,l=.005*t.value.style.chart.animation.acceleration;function r(){i.value+=s+a,a+=l,i.value<u.dataset.percentage?requestAnimationFrame(r):i.value=u.dataset.percentage}t.value.style.chart.animation.use&&(i.value=0,r())}const y=e.computed(()=>t.value.style.chart.layout.display==="vertical"),n=e.computed(()=>{const a={top:48,left:64,right:64,bottom:48};return y.value?{top:t.value.style.chart.percentage.verticalPosition==="top"?a.top:3,left:3,right:3,bottom:t.value.style.chart.percentage.verticalPosition==="bottom"?a.bottom:3}:{top:0,bottom:0,left:t.value.style.chart.percentage.horizontalPosition==="left"?a.left:3,right:t.value.style.chart.percentage.horizontalPosition==="right"?a.right:10}}),C=e.computed(()=>Object.values(n.value).reduce((a,s)=>a+s,0)),o=e.computed(()=>({height:y.value?312:56,width:y.value?56:312})),L=e.ref(100);e.computed(()=>u.dataset.percentage/L.value);const c=e.computed(()=>y.value?{mark:(o.value.height-C.value)/100*.5,space:(o.value.height-C.value)/100*.5}:{mark:(o.value.width-C.value)/100*.5,space:(o.value.width-C.value)/100*.5}),N=e.computed(()=>{const a=[];for(let l=0;l<100;l+=1){const r=t.value.style.chart.layout.ticks.gradient.show?v.shiftHue(t.value.style.chart.layout.activeColor,l/100*(t.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.layout.activeColor;if(y.value){const f=t.value.style.chart.layout.crescendo?(100-l)*(o.value.width-n.value.left-n.value.right)/100/3:0,d=n.value.left+4+f,h=o.value.width-n.value.right-4-f,m=o.value.height-n.value.bottom-l*c.value.mark-l*c.value.space-c.value.mark,g=o.value.height-n.value.bottom-l*c.value.mark-l*c.value.space-c.value.mark,k=(h-d)/t.value.style.chart.layout.curveAngleX,b=t.value.style.chart.layout.curveAngleY*((1+l)/100);a.push({x1:d,x2:h,y1:m,y2:g,curve:`M ${d} ${m} C ${d+k} ${m-b}, ${h-k} ${g-b}, ${h} ${g}`,color:r})}else{const f=t.value.style.chart.layout.crescendo?(100-l)*(o.value.height-n.value.top-n.value.bottom)/100/3:0,d=n.value.left+l*c.value.mark+l*c.value.space-c.value.mark,h=d,m=n.value.top+4+f,g=o.value.height-n.value.bottom-4-f,k=t.value.style.chart.layout.curveAngleY*((1+l)/100),b=(g-m)/t.value.style.chart.layout.curveAngleX;a.push({x1:d,x2:h,y1:m,y2:g,curve:`M ${d} ${m} C ${d+k} ${m+b}, ${h+k} ${g-b}, ${h} ${g}`,color:r})}}return a}),p=e.computed(()=>{let a,s,l;const r=t.value.style.chart.percentage.fontSize/3;return y.value?t.value.style.chart.percentage.verticalPosition==="top"?(a=o.value.width/2,s=n.value.top/2,l="middle"):t.value.style.chart.percentage.verticalPosition==="bottom"&&(a=o.value.width/2,s=o.value.height-n.value.bottom/2+r,l="middle"):t.value.style.chart.percentage.horizontalPosition==="left"?(a=4,s=o.value.height/2+r,l="start"):t.value.style.chart.percentage.horizontalPosition==="right"&&(a=o.value.width-n.value.right+8,s=o.value.height/2+r,l="start"),{x:a,y:s,textAnchor:l,bold:t.value.style.chart.percentage.bold,fontSize:t.value.style.chart.percentage.fontSize,fill:t.value.style.chart.percentage.color}}),_=e.ref(!1);function G(a){_.value=a,P.value+=1}return V({generatePdf:S,generateImage:I}),(a,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tiremarksChart",ref:w,class:e.normalizeClass(`vue-ui-tiremarks ${t.value.useCssAnimation?"":"vue-ui-dna"}`),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}`),id:$.value},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:12px`)},[e.createVNode(T._sfc_main,{config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&x.value?(e.openBlock(),e.createBlock(O.UserOptions,{ref:"details",key:`user_options_${P.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(B),isImaging:e.unref(z),uid:$.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:_.value,titles:{...t.value.userOptions.buttonTitles},chartElement:w.value,onToggleFullscreen:G,onGeneratePdf:e.unref(S),onGenerateImage:e.unref(I)},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(v.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),viewBox:`0 0 ${o.value.width} ${o.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[t.value.style.chart.layout.curved?(e.openBlock(),e.createElementBlock("g",D,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,r)=>(e.openBlock(),e.createElementBlock("path",{d:l.curve,"stroke-width":c.value.mark,stroke:i.value>=r?l.color:t.value.style.chart.layout.inactiveColor,"stroke-linecap":"round",fill:"none",class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&r<=i.value})},null,10,X))),256))])):(e.openBlock(),e.createElementBlock("g",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:l.x1,y1:l.y1,x2:l.x2,y2:l.y2,"stroke-width":c.value.mark,stroke:i.value>=r?l.color:t.value.style.chart.layout.inactiveColor,"stroke-linecap":"round"},null,8,Y))),256))])),t.value.style.chart.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:2,x:p.value.x,y:p.value.y,"font-size":p.value.fontSize,fill:t.value.style.chart.layout.ticks.gradient.show&&t.value.style.chart.percentage.useGradientColor?e.unref(v.shiftHue)(t.value.style.chart.layout.activeColor,i.value/100*(t.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.percentage.color,"font-weight":p.value.bold?"bold":"normal","text-anchor":p.value.textAnchor},e.toDisplayString(e.unref(v.applyDataLabel)(t.value.style.chart.percentage.formatter,i.value,e.unref(v.dataLabel)({v:i.value,s:"%",r:t.value.style.chart.percentage.rounding}))),9,J)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:o.value},void 0,!0)],14,M)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",K,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(B)||e.unref(z)})),void 0,!0)])):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(j.default,{key:4,config:{type:"tiremarks",style:{backgroundColor:t.value.style.chart.backgroundColor,tiremarks:{color:"#CCCCCC"}}}},null,8,["config"]))],14,H))}},W=U._export_sfc(Q,[["__scopeId","data-v-0cc3937c"]]);exports.default=W;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { computed as h, ref as p, watch as Z, onMounted as ee, openBlock as s, createElementBlock as v, normalizeClass as O, normalizeStyle as S, createVNode as te, createCommentVNode as _, createBlock as V, unref as d, createSlots as ae, withCtx as A, renderSlot as w, normalizeProps as X, guardReactiveProps as D, Fragment as M, renderList as H, toDisplayString as le } from "vue";
|
|
2
|
-
import { u as R } from "./useNestedProp-
|
|
3
|
-
import { u as re, c as oe, t as se, o as ne, e as ue, s as Y, X as ie, i as ce, f as ve } from "./index-
|
|
4
|
-
import { _ as he } from "./Title-
|
|
5
|
-
import { u as de, U as ge } from "./usePrinter-
|
|
6
|
-
import ye from "./vue-ui-skeleton-
|
|
2
|
+
import { u as R } from "./useNestedProp-AR9tJrsp.js";
|
|
3
|
+
import { u as re, c as oe, t as se, o as ne, e as ue, s as Y, X as ie, i as ce, f as ve } from "./index-BJ6NXF-z.js";
|
|
4
|
+
import { _ as he } from "./Title-CKSMMGjd.js";
|
|
5
|
+
import { u as de, U as ge } from "./usePrinter-BUIam1ao.js";
|
|
6
|
+
import ye from "./vue-ui-skeleton-DdAE1RlM.js";
|
|
7
7
|
import { _ as me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const fe = ["id"], pe = ["xmlns", "viewBox"], ke = { key: 0 }, _e = ["d", "stroke-width", "stroke"], be = { key: 1 }, Ce = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], $e = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], xe = {
|
|
9
9
|
key: 3,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { computed as C, ref as y, onMounted as Ee, onBeforeUnmount as Ue, openBlock as m, createElementBlock as k, normalizeClass as xe, normalizeStyle as M, createVNode as se, createCommentVNode as V, createBlock as te, unref as b, createSlots as Ge, withCtx as T, renderSlot as _, normalizeProps as G, guardReactiveProps as X, Fragment as $e, renderList as Te, createElementVNode as O, toDisplayString as q, createTextVNode as _e, nextTick as Xe, pushScopeId as qe, popScopeId as je } from "vue";
|
|
2
|
-
import { u as Ye, c as Oe, t as Ze, a as Je, p as x, b as Ke, o as Qe, e as et, d as le, i as oe, f as Z, X as tt, l as Se, D as Ne, w as ze, x as lt, q as ot, r as at } from "./index-
|
|
3
|
-
import { _ as nt } from "./Title-
|
|
4
|
-
import { u as st, U as rt } from "./usePrinter-
|
|
5
|
-
import { _ as ut } from "./Tooltip-
|
|
6
|
-
import { L as it } from "./Legend-
|
|
7
|
-
import ct from "./vue-ui-skeleton-
|
|
8
|
-
import { D as dt } from "./DataTable-
|
|
9
|
-
import vt from "./vue-ui-accordion-
|
|
2
|
+
import { u as Ye, c as Oe, t as Ze, a as Je, p as x, b as Ke, o as Qe, e as et, d as le, i as oe, f as Z, X as tt, l as Se, D as Ne, w as ze, x as lt, q as ot, r as at } from "./index-BJ6NXF-z.js";
|
|
3
|
+
import { _ as nt } from "./Title-CKSMMGjd.js";
|
|
4
|
+
import { u as st, U as rt } from "./usePrinter-BUIam1ao.js";
|
|
5
|
+
import { _ as ut } from "./Tooltip-C9Q2lE3W.js";
|
|
6
|
+
import { L as it } from "./Legend-3WC5-bUm.js";
|
|
7
|
+
import ct from "./vue-ui-skeleton-DdAE1RlM.js";
|
|
8
|
+
import { D as dt } from "./DataTable-DqPGv4Ms.js";
|
|
9
|
+
import vt from "./vue-ui-accordion-GCDGaaYO.js";
|
|
10
10
|
import { t as ht, u as ft } from "./useResponsive-NZB-WLRF.js";
|
|
11
|
-
import { u as Pe } from "./useNestedProp-
|
|
11
|
+
import { u as Pe } from "./useNestedProp-AR9tJrsp.js";
|
|
12
12
|
import { _ as pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
function Ie(a, i) {
|
|
14
14
|
const s = a.length;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-hKWfT7Wa.cjs"),ke=require("./Title-BU6E8Xld.cjs"),re=require("./usePrinter-DoYKBzst.cjs"),Ce=require("./Tooltip-Oicp_EIo.cjs"),we=require("./Legend-B20rRwGi.cjs"),xe=require("./vue-ui-skeleton-j-IOiy5w.cjs"),Te=require("./DataTable-Doh_4M84.cjs"),$e=require("./vue-ui-accordion-CTYvdLLH.cjs"),ue=require("./useResponsive-B3TrDDIG.cjs"),se=require("./useNestedProp-Cggpoz7e.cjs"),Se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function ie(n,d){const s=n.length;if(s===0)throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);{let u=1/0,i=-1/0,v=0;for(let f=0;f<s;f+=1){const p=n[f].normalizedValue;p<u&&(u=p),p>i&&(i=p),v+=p}return Math.max(d**2*i/v**2,v**2/(d**2*u))}}function ce(n){const{xOffset:d,yOffset:s,width:u,height:i}=n;return{x0:d,y0:s,x1:d+u,y1:s+i}}function Ne(n,d,s){if(n.length===0)return!0;{const u=n.concat(d),i=ie(n,s),v=ie(u,s);return i>=v}}function Be(n){const d=[],s=n.length;for(let u=0;u<s;u+=1){const i=n[u],v=i.length;for(let h=0;h<v;h+=1)d.push(i[h])}return d}function _e(n,d){const s={...d,children:n};return ve(s)}function ze(n){return(n.x1-n.x0)*(n.y1-n.y0)}function de(n,d){const{width:s,height:u,xOffset:i,yOffset:v}=W(d),h=n.length,f=n.map(m=>m.normalizedValue||0).reduce((m,k)=>m+k,0),p=f/u,C=f/s;let b=i,w=v;const g=[];if(s>=u){for(let m=0;m<h;m+=1){const k=n[m],x=w+k.normalizedValue/p,t={x0:b,y0:w,x1:b+p,y1:x},T=Object.assign({},k,t);w=x,g.push(T)}return g}else{for(let m=0;m<h;m+=1){const k=n[m],x=b+k.normalizedValue/C,t={x0:b,y0:w,x1:x,y1:w+C},T=Object.assign({},k,t);b=x,g.push(T)}return g}}function Pe(n){const d=W(n),s=d.width,u=d.height;return Math.min(s,u)}function Oe(n,d){const s=n.length,u=n.map(p=>p.value??0).reduce((p,C)=>p+C,0),i=d/u,v=[];let h,f;for(let p=0;p<s;p+=1)f=n[p],h=Object.assign({},f,{normalizedValue:f.value*(i||0)}),v.push(h);return v}function W(n){const{x0:d,y0:s,x1:u,y1:i}=n;return{xOffset:d,yOffset:s,width:u-d,height:i-s}}function Ve(n,d,s,u){let i=n,v=d,h=s,f=u;for(;;){const p=i.length;if(p===0){const g=de(v,h);return f.concat(g)}const C=Pe(h),b=i[0],w=i.slice(1,p);if(Ne(v,b,C)){const g=v.concat(b);i=w,v=g,h=h,f=f}else{const g=v.length;let m=0;for(let T=0;T<g;T+=1)m+=v[T].normalizedValue;const k=Ee(h,m),x=de(v,h),t=f.concat(x);i=i,v=[],h=k,f=t}}}function ve(n){if(typeof n.children>"u"||!n.children.length)return[n];{const d=Oe(n.children,ze(n)),s=Ve(d,[],n,[]),u=s.length,i=[];for(let h=0;h<u;h+=1)i.push(ve(s[h]));return Be(i)}}function Ee(n,d){const{width:s,height:u,xOffset:i,yOffset:v}=W(n);if(s>=u){const h=d/u,f=s-h,p={xOffset:i+h,yOffset:v,width:f,height:u};return ce(p)}else{const h=d/s,f=u-h,p={xOffset:i,yOffset:v+h,width:s,height:f};return ce(p)}}const Le=n=>(e.pushScopeId("data-v-7028d693"),n=n(),e.popScopeId(),n),Re=["id"],Fe=["xmlns","viewBox"],De={key:0},Ie=["id"],qe=["stop-color"],Ae=["stop-color"],He=["x","y","height","width","fill","rx","stroke","stroke-width","onClick","onMouseenter"],Me=["x","y","height","width"],We={style:{width:"100%",height:"100%"},class:"vue-ui-treemap-cell"},Ue=Le(()=>e.createElementVNode("br",null,null,-1)),Ge={key:3,class:"vue-data-ui-watermark"},je=["onClick"],Xe={key:0},Ye={key:1},Ze=["innerHTML"],Je={__name:"vue-ui-treemap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(n,{expose:d,emit:s}){const u=n,{vue_ui_treemap:i}=r.useConfig(),v=e.computed(()=>!!u.dataset&&u.dataset.length),h=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),f=e.ref(r.createUid()),p=e.ref(!1),C=e.ref(""),b=e.ref(!1),w=e.ref(0),g=e.ref([]),m=e.ref(null),k=e.ref(null),x=e.ref(null),t=e.computed(()=>{const l=se.useNestedProp({userConfig:u.config,defaultConfig:i});return l.theme?{...se.useNestedProp({userConfig:r.themes.vue_ui_treemap[l.theme]||u.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}),{isPrinting:T,isImaging:U,generatePdf:G,generateImage:j}=re.usePrinter({elementId:`treemap_${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-treemap"}),D=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),B=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),_=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width}),P=e.computed(()=>({bottom:_.value.height-t.value.style.chart.padding.bottom,height:_.value.height-t.value.style.chart.padding.top-t.value.style.chart.padding.bottom,left:t.value.style.chart.padding.left,right:_.value.width-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,vbHeight:_.value.height,vbWidth:_.value.width,width:_.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right}));function X(l){l.forEach((a,o)=>{a.id=r.createUid(),a.color=r.convertColorToHex(a.color)||D.value[o]||r.palette[o]||r.palette[o%r.palette.length],a.children&&(a.children.forEach(c=>{c.parentId=a.id,c.color=a.color}),X(a.children))})}const O=e.ref(u.dataset),I=e.ref(null);e.onMounted(()=>{if(r.objectIsEmpty(u.dataset)&&r.error({componentName:"VueUiTreemap",type:"dataset"}),X(O.value),t.value.responsive){const l=ue.throttle(()=>{const{width:a,height:o}=ue.useResponsive({chart:m.value,title:t.value.style.chart.title.text?k.value:null,legend:t.value.style.chart.legend.show?x.value:null});_.value.width=a,_.value.height=o});I.value=new ResizeObserver(l),I.value.observe(m.value.parentNode)}}),e.onBeforeUnmount(()=>{I.value&&I.value.disconnect()});const H=e.ref(O.value),R=e.computed(()=>H.value.map((l,a)=>({...l,color:r.convertColorToHex(l.color)||D.value[a]||r.palette[a]||r.palette[a%r.palette.length]})).filter(l=>!g.value.includes(l.id))),E=e.computed(()=>O.value.filter(l=>!g.value.includes(l.id)).map(l=>l.value||0).reduce((l,a)=>l+a,0)),Y=e.computed({get(){let l=[...R.value];return t.value.style.chart.layout.sorted&&(l=[...R.value].sort((a,o)=>o.value-a.value)),l.map(a=>({...a}))},set(l){return l}});function Z(l,a){return l.value/a}function he(l,a,o){const c=t.value.style.chart.layout.rects.colorRatio-Z(a,o);return r.lightenHexColor(l,c<0?0:c)}function J(l,a,o,c){return l.map((y,z)=>{const A=he(r.convertColorToHex(a)||D.value[z]||r.palette[z]||r.palette[z%r.palette.length],y,c),be=Z(y,c);return{...y,color:A,proportion:be,parentName:o,children:y.children?J(y.children,A,y.name,c):void 0}})}const F=e.computed(()=>_e(Y.value.map((l,a)=>{const o=l.children?l.children.reduce((c,y)=>c+y.value,0):l.value;return{value:l.value,id:l.id,children:l.children?J(l.children.sort((c,y)=>y.value-c.value),l.color,l.name,o):void 0,color:l.color,name:l.name}}),{x0:P.value.left*2,y0:P.value.top,x1:P.value.width,y1:P.value.height}));function K({y0:l,y1:a}){return a-l<=0?1e-4:a-l}function Q({x0:l,x1:a}){return a-l<=0?1e-4:a-l}function V(l){const a=t.value.style.chart.layout.labels.fontSize*(l.proportion*2>1?1:l.proportion*2);return a<t.value.style.chart.layout.labels.minFontSize?t.value.style.chart.layout.labels.minFontSize:a}function pe(l){b.value=l,w.value+=1}const L=e.computed(()=>({startX:0,startY:0,width:P.value.vbWidth,height:P.value.vbHeight})),$=e.ref(!1);function ee(l,a=O.value){for(const o of a){if(o.id===l)return o;if(o.children){const c=ee(l,o.children);if(c)return c}}return null}function fe(l){$.value?(s("selectDatapoint",void 0),H.value=O.value):(s("selectDatapoint",l),H.value=[ee(l.parentId)]),$.value=!$.value}const S=e.ref(null),te=e.computed(()=>O.value.map((l,a)=>({...l,color:r.convertColorToHex(l.color)||D.value[a]||r.palette[a]||r.palette[a%r.palette.length],shape:"square"})).sort((l,a)=>a.value-l.value).map((l,a)=>({...l,proportion:l.value/O.value.map(o=>o.value).reduce((o,c)=>o+c,0),opacity:g.value.includes(l.id)?.5:1}))),ge=e.computed(()=>({cy:"treemap-div-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 le(l){$.value=!1,S.value=null,g.value.includes(l.id)?g.value=g.value.filter(a=>a!==l.id):g.value.length<u.dataset.length-1&&g.value.push(l.id),s("selectLegend",Y.value)}const M=e.ref(null);function me({datapoint:l,seriesIndex:a}){S.value=l,M.value={datapoint:l,seriesIndex:a,config:t.value,series:R.value};const o=t.value.style.chart.tooltip.customFormat;if(r.isFunction(o)&&r.functionReturnsString(()=>o({seriesIndex:a,datapoint:l,series:R.value,config:t.value})))C.value=o({seriesIndex:a,datapoint:l,series:R.value,config:t.value});else{let c="";c+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`,c+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${l.color}"/></svg>`,c+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.formatter,l.value,r.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:l.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:l,seriesIndex:a})}</b>`,C.value=`<div>${c}</div>`}p.value=!0}const N=e.computed(()=>{const l=F.value.map(o=>({name:o.name,color:o.color})),a=F.value.map(o=>o.value);return{head:l,body:a}});function oe(){e.nextTick(()=>{const l=N.value.head.map((c,y)=>[[c.name],[N.value.body[y]],[isNaN(N.value.body[y]/E.value)?"-":N.value.body[y]/E.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=r.createCsvContent(a);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-treemap"})})}const q=e.computed(()=>{const l=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],a=N.value.head.map((y,z)=>{const A=r.applyDataLabel(t.value.style.chart.layout.labels.formatter,N.value.body[z],r.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:N.value.body[z],s:t.value.style.chart.layout.labels.suffix,r:t.value.table.td.roundingValue}));return[{color:y.color,name:y.name,shape:"square"},A,isNaN(N.value.body[z]/E.value)?"-":r.dataLabel({v:N.value.body[z]/E.value*100,s:"%",r: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};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:l,body:a,config:o}});function ye(){return F.value}function ae(){B.value.showTable=!B.value.showTable}function ne(){B.value.showTooltip=!B.value.showTooltip}return d({getData:ye,generateCsv:oe,generateImage:j,generatePdf:G,toggleTable:ae,toggleTooltip:ne}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"treemapChart",ref:m,class:e.normalizeClass(`vue-ui-treemap ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height: 100%;":""} text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:`treemap_${f.value}`},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:k,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)},[e.createVNode(ke._sfc_main,{config:{title:{cy:"treemap-div-title",...t.value.style.chart.title},subtitle:{cy:"treemap-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&v.value?(e.openBlock(),e.createBlock(re.UserOptions,{ref:"details",key:`user_option_${w.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(T),isImaging:e.unref(U),uid:f.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:b.value,isTooltip:B.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:m.value,onToggleFullscreen:pe,onGeneratePdf:e.unref(G),onGenerateCsv:oe,onGenerateImage:e.unref(j),onToggleTable:ae,onToggleTooltip:ne},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:c})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:c})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value,"vue-data-ui-zoom-plus":!$.value,"vue-data-ui-zoom-minus":$.value}),viewBox:`${L.value.startX} ${L.value.startY} ${L.value.width<=0?10:L.value.width} ${L.value.height<=0?10:L.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: hidden; background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(o,c)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.rects.gradient.show?(e.openBlock(),e.createElementBlock("defs",De,[e.createElementVNode("radialGradient",{id:`tgrad_${o.id}`,gradientTransform:"translate(-1, -1.000001) scale(2, 2)"},[e.createElementVNode("stop",{offset:"18%","stop-color":o.color},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.lightenHexColor)(o.color,t.value.style.chart.layout.rects.gradient.intensity/100)},null,8,Ae)],8,Ie)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(o,c)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:o.x0,y:o.y0,height:K(o),width:Q(o),fill:h.value?o.color:t.value.style.chart.layout.rects.gradient.show?`url(#tgrad_${o.id})`:o.color,rx:t.value.style.chart.layout.rects.borderRadius,stroke:S.value&&S.value.id===o.id?t.value.style.chart.layout.rects.selected.stroke:t.value.style.chart.layout.rects.stroke,"stroke-width":S.value&&S.value.id===o.id?t.value.style.chart.layout.rects.selected.strokeWidth:t.value.style.chart.layout.rects.strokeWidth,onClick:y=>fe(o),onMouseenter:()=>me({datapoint:o,seriesIndex:c}),onMouseleave:a[0]||(a[0]=y=>{S.value=null,p.value=!1}),style:e.normalizeStyle(`opacity:${S.value?S.value.id===o.id?1:t.value.style.chart.layout.rects.selected.unselectedOpacity:1}`),class:"vue-ui-treemap-rect"},null,44,He),(e.openBlock(),e.createElementBlock("foreignObject",{x:o.x0,y:o.y0,height:K(o),width:Q(o),class:"vue-ui-treemap-cell-foreignObject"},[e.createElementVNode("div",We,[t.value.style.chart.layout.labels.showDefaultLabels&&(o.proportion>t.value.style.chart.layout.labels.hideUnderProportion||$.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-treemap-cell-default",style:e.normalizeStyle(`width:calc(100% - ${V(o)/1.5}px);text-align:left;line-height:${V(o)<14?14:V(o)}px;padding:${V(o)/3}px; color:${e.unref(r.adaptColorToBackground)(o.color)}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${V(o)}px;`)},e.toDisplayString(o.name),5),Ue,e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${V(o)}px;`)},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.prefix,v:o.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.layout.labels.rounding}),{datapoint:o})),5)],4)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"rect",e.normalizeProps(e.guardReactiveProps({rect:o,shouldShow:o.proportion>t.value.style.chart.layout.labels.hideUnderProportion||$.value,fontSize:V(o),isZoom:$.value,textColor:e.unref(r.adaptColorToBackground)(o.color)})),void 0,!0)])],8,Me))]))),256)),e.renderSlot(l.$slots,"svg",e.normalizeProps(e.guardReactiveProps({svg:P.value,isZoom:$.value,rect:S.value,config:t.value})),void 0,!0)],14,Fe)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ge,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(T)||e.unref(U)})),void 0,!0)])):e.createCommentVNode("",!0),v.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(xe.default,{key:4,config:{type:"treemap",style:{backgroundColor:t.value.style.chart.backgroundColor,treemap:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:x},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(we.Legend,{key:0,legendSet:te.value,config:ge.value,id:`treemap_legend_${f.value}`,onClickMarker:a[1]||(a[1]=({legend:o})=>le(o))},{item:e.withCtx(({legend:o,index:c})=>[e.createElementVNode("div",{onClick:y=>le(o),style:e.normalizeStyle(`opacity:${g.value.includes(o.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.prefix,v:o.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:o}))+" ",1),g.value.includes(o.id)?(e.openBlock(),e.createElementBlock("span",Ye," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Xe," ("+e.toDisplayString(isNaN(o.value/E.value)?"-":(o.value/E.value*100).toFixed(t.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,je)]),_:1},8,["legendSet","config","id"])):e.renderSlot(l.$slots,"legend",{key:1,legend:te.value},void 0,!0)],512),e.createVNode(Ce._sfc_main,{show:B.value.showTooltip&&p.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:m.value,content:C.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...M.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...M.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),v.value?(e.openBlock(),e.createBlock($e.default,{key:5,hideDetails:"",config:{open:B.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(Te.DataTable,{colNames:q.value.colNames,head:q.value.head,body:q.value.body,config:q.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=o=>B.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Ze)]),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,Re))}},Ke=Se._export_sfc(Je,[["__scopeId","data-v-7028d693"]]);exports.default=Ke;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DQvb5Vgo.cjs"),ke=require("./Title-CNJKmNgA.cjs"),re=require("./usePrinter-C4oaA82s.cjs"),Ce=require("./Tooltip-BIHm4byQ.cjs"),we=require("./Legend-BfwTJ9M-.cjs"),xe=require("./vue-ui-skeleton-6fxZMdtV.cjs"),Te=require("./DataTable-ByKKUsaO.cjs"),$e=require("./vue-ui-accordion-D5-giD3x.cjs"),ue=require("./useResponsive-B3TrDDIG.cjs"),se=require("./useNestedProp-D1F0KM3m.cjs"),Se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function ie(n,d){const s=n.length;if(s===0)throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);{let u=1/0,i=-1/0,v=0;for(let f=0;f<s;f+=1){const p=n[f].normalizedValue;p<u&&(u=p),p>i&&(i=p),v+=p}return Math.max(d**2*i/v**2,v**2/(d**2*u))}}function ce(n){const{xOffset:d,yOffset:s,width:u,height:i}=n;return{x0:d,y0:s,x1:d+u,y1:s+i}}function Ne(n,d,s){if(n.length===0)return!0;{const u=n.concat(d),i=ie(n,s),v=ie(u,s);return i>=v}}function Be(n){const d=[],s=n.length;for(let u=0;u<s;u+=1){const i=n[u],v=i.length;for(let h=0;h<v;h+=1)d.push(i[h])}return d}function _e(n,d){const s={...d,children:n};return ve(s)}function ze(n){return(n.x1-n.x0)*(n.y1-n.y0)}function de(n,d){const{width:s,height:u,xOffset:i,yOffset:v}=W(d),h=n.length,f=n.map(m=>m.normalizedValue||0).reduce((m,k)=>m+k,0),p=f/u,C=f/s;let b=i,w=v;const g=[];if(s>=u){for(let m=0;m<h;m+=1){const k=n[m],x=w+k.normalizedValue/p,t={x0:b,y0:w,x1:b+p,y1:x},T=Object.assign({},k,t);w=x,g.push(T)}return g}else{for(let m=0;m<h;m+=1){const k=n[m],x=b+k.normalizedValue/C,t={x0:b,y0:w,x1:x,y1:w+C},T=Object.assign({},k,t);b=x,g.push(T)}return g}}function Pe(n){const d=W(n),s=d.width,u=d.height;return Math.min(s,u)}function Oe(n,d){const s=n.length,u=n.map(p=>p.value??0).reduce((p,C)=>p+C,0),i=d/u,v=[];let h,f;for(let p=0;p<s;p+=1)f=n[p],h=Object.assign({},f,{normalizedValue:f.value*(i||0)}),v.push(h);return v}function W(n){const{x0:d,y0:s,x1:u,y1:i}=n;return{xOffset:d,yOffset:s,width:u-d,height:i-s}}function Ve(n,d,s,u){let i=n,v=d,h=s,f=u;for(;;){const p=i.length;if(p===0){const g=de(v,h);return f.concat(g)}const C=Pe(h),b=i[0],w=i.slice(1,p);if(Ne(v,b,C)){const g=v.concat(b);i=w,v=g,h=h,f=f}else{const g=v.length;let m=0;for(let T=0;T<g;T+=1)m+=v[T].normalizedValue;const k=Ee(h,m),x=de(v,h),t=f.concat(x);i=i,v=[],h=k,f=t}}}function ve(n){if(typeof n.children>"u"||!n.children.length)return[n];{const d=Oe(n.children,ze(n)),s=Ve(d,[],n,[]),u=s.length,i=[];for(let h=0;h<u;h+=1)i.push(ve(s[h]));return Be(i)}}function Ee(n,d){const{width:s,height:u,xOffset:i,yOffset:v}=W(n);if(s>=u){const h=d/u,f=s-h,p={xOffset:i+h,yOffset:v,width:f,height:u};return ce(p)}else{const h=d/s,f=u-h,p={xOffset:i,yOffset:v+h,width:s,height:f};return ce(p)}}const Le=n=>(e.pushScopeId("data-v-7028d693"),n=n(),e.popScopeId(),n),Re=["id"],Fe=["xmlns","viewBox"],De={key:0},Ie=["id"],qe=["stop-color"],Ae=["stop-color"],He=["x","y","height","width","fill","rx","stroke","stroke-width","onClick","onMouseenter"],Me=["x","y","height","width"],We={style:{width:"100%",height:"100%"},class:"vue-ui-treemap-cell"},Ue=Le(()=>e.createElementVNode("br",null,null,-1)),Ge={key:3,class:"vue-data-ui-watermark"},je=["onClick"],Xe={key:0},Ye={key:1},Ze=["innerHTML"],Je={__name:"vue-ui-treemap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(n,{expose:d,emit:s}){const u=n,{vue_ui_treemap:i}=r.useConfig(),v=e.computed(()=>!!u.dataset&&u.dataset.length),h=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),f=e.ref(r.createUid()),p=e.ref(!1),C=e.ref(""),b=e.ref(!1),w=e.ref(0),g=e.ref([]),m=e.ref(null),k=e.ref(null),x=e.ref(null),t=e.computed(()=>{const l=se.useNestedProp({userConfig:u.config,defaultConfig:i});return l.theme?{...se.useNestedProp({userConfig:r.themes.vue_ui_treemap[l.theme]||u.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}),{isPrinting:T,isImaging:U,generatePdf:G,generateImage:j}=re.usePrinter({elementId:`treemap_${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-treemap"}),D=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),B=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),_=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width}),P=e.computed(()=>({bottom:_.value.height-t.value.style.chart.padding.bottom,height:_.value.height-t.value.style.chart.padding.top-t.value.style.chart.padding.bottom,left:t.value.style.chart.padding.left,right:_.value.width-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,vbHeight:_.value.height,vbWidth:_.value.width,width:_.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right}));function X(l){l.forEach((a,o)=>{a.id=r.createUid(),a.color=r.convertColorToHex(a.color)||D.value[o]||r.palette[o]||r.palette[o%r.palette.length],a.children&&(a.children.forEach(c=>{c.parentId=a.id,c.color=a.color}),X(a.children))})}const O=e.ref(u.dataset),I=e.ref(null);e.onMounted(()=>{if(r.objectIsEmpty(u.dataset)&&r.error({componentName:"VueUiTreemap",type:"dataset"}),X(O.value),t.value.responsive){const l=ue.throttle(()=>{const{width:a,height:o}=ue.useResponsive({chart:m.value,title:t.value.style.chart.title.text?k.value:null,legend:t.value.style.chart.legend.show?x.value:null});_.value.width=a,_.value.height=o});I.value=new ResizeObserver(l),I.value.observe(m.value.parentNode)}}),e.onBeforeUnmount(()=>{I.value&&I.value.disconnect()});const H=e.ref(O.value),R=e.computed(()=>H.value.map((l,a)=>({...l,color:r.convertColorToHex(l.color)||D.value[a]||r.palette[a]||r.palette[a%r.palette.length]})).filter(l=>!g.value.includes(l.id))),E=e.computed(()=>O.value.filter(l=>!g.value.includes(l.id)).map(l=>l.value||0).reduce((l,a)=>l+a,0)),Y=e.computed({get(){let l=[...R.value];return t.value.style.chart.layout.sorted&&(l=[...R.value].sort((a,o)=>o.value-a.value)),l.map(a=>({...a}))},set(l){return l}});function Z(l,a){return l.value/a}function he(l,a,o){const c=t.value.style.chart.layout.rects.colorRatio-Z(a,o);return r.lightenHexColor(l,c<0?0:c)}function J(l,a,o,c){return l.map((y,z)=>{const A=he(r.convertColorToHex(a)||D.value[z]||r.palette[z]||r.palette[z%r.palette.length],y,c),be=Z(y,c);return{...y,color:A,proportion:be,parentName:o,children:y.children?J(y.children,A,y.name,c):void 0}})}const F=e.computed(()=>_e(Y.value.map((l,a)=>{const o=l.children?l.children.reduce((c,y)=>c+y.value,0):l.value;return{value:l.value,id:l.id,children:l.children?J(l.children.sort((c,y)=>y.value-c.value),l.color,l.name,o):void 0,color:l.color,name:l.name}}),{x0:P.value.left*2,y0:P.value.top,x1:P.value.width,y1:P.value.height}));function K({y0:l,y1:a}){return a-l<=0?1e-4:a-l}function Q({x0:l,x1:a}){return a-l<=0?1e-4:a-l}function V(l){const a=t.value.style.chart.layout.labels.fontSize*(l.proportion*2>1?1:l.proportion*2);return a<t.value.style.chart.layout.labels.minFontSize?t.value.style.chart.layout.labels.minFontSize:a}function pe(l){b.value=l,w.value+=1}const L=e.computed(()=>({startX:0,startY:0,width:P.value.vbWidth,height:P.value.vbHeight})),$=e.ref(!1);function ee(l,a=O.value){for(const o of a){if(o.id===l)return o;if(o.children){const c=ee(l,o.children);if(c)return c}}return null}function fe(l){$.value?(s("selectDatapoint",void 0),H.value=O.value):(s("selectDatapoint",l),H.value=[ee(l.parentId)]),$.value=!$.value}const S=e.ref(null),te=e.computed(()=>O.value.map((l,a)=>({...l,color:r.convertColorToHex(l.color)||D.value[a]||r.palette[a]||r.palette[a%r.palette.length],shape:"square"})).sort((l,a)=>a.value-l.value).map((l,a)=>({...l,proportion:l.value/O.value.map(o=>o.value).reduce((o,c)=>o+c,0),opacity:g.value.includes(l.id)?.5:1}))),ge=e.computed(()=>({cy:"treemap-div-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 le(l){$.value=!1,S.value=null,g.value.includes(l.id)?g.value=g.value.filter(a=>a!==l.id):g.value.length<u.dataset.length-1&&g.value.push(l.id),s("selectLegend",Y.value)}const M=e.ref(null);function me({datapoint:l,seriesIndex:a}){S.value=l,M.value={datapoint:l,seriesIndex:a,config:t.value,series:R.value};const o=t.value.style.chart.tooltip.customFormat;if(r.isFunction(o)&&r.functionReturnsString(()=>o({seriesIndex:a,datapoint:l,series:R.value,config:t.value})))C.value=o({seriesIndex:a,datapoint:l,series:R.value,config:t.value});else{let c="";c+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`,c+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${l.color}"/></svg>`,c+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.formatter,l.value,r.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:l.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:l,seriesIndex:a})}</b>`,C.value=`<div>${c}</div>`}p.value=!0}const N=e.computed(()=>{const l=F.value.map(o=>({name:o.name,color:o.color})),a=F.value.map(o=>o.value);return{head:l,body:a}});function oe(){e.nextTick(()=>{const l=N.value.head.map((c,y)=>[[c.name],[N.value.body[y]],[isNaN(N.value.body[y]/E.value)?"-":N.value.body[y]/E.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=r.createCsvContent(a);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-treemap"})})}const q=e.computed(()=>{const l=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],a=N.value.head.map((y,z)=>{const A=r.applyDataLabel(t.value.style.chart.layout.labels.formatter,N.value.body[z],r.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:N.value.body[z],s:t.value.style.chart.layout.labels.suffix,r:t.value.table.td.roundingValue}));return[{color:y.color,name:y.name,shape:"square"},A,isNaN(N.value.body[z]/E.value)?"-":r.dataLabel({v:N.value.body[z]/E.value*100,s:"%",r: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};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:l,body:a,config:o}});function ye(){return F.value}function ae(){B.value.showTable=!B.value.showTable}function ne(){B.value.showTooltip=!B.value.showTooltip}return d({getData:ye,generateCsv:oe,generateImage:j,generatePdf:G,toggleTable:ae,toggleTooltip:ne}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"treemapChart",ref:m,class:e.normalizeClass(`vue-ui-treemap ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height: 100%;":""} text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:`treemap_${f.value}`},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:k,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)},[e.createVNode(ke._sfc_main,{config:{title:{cy:"treemap-div-title",...t.value.style.chart.title},subtitle:{cy:"treemap-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&v.value?(e.openBlock(),e.createBlock(re.UserOptions,{ref:"details",key:`user_option_${w.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(T),isImaging:e.unref(U),uid:f.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:b.value,isTooltip:B.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:m.value,onToggleFullscreen:pe,onGeneratePdf:e.unref(G),onGenerateCsv:oe,onGenerateImage:e.unref(j),onToggleTable:ae,onToggleTooltip:ne},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:c})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:c})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value,"vue-data-ui-zoom-plus":!$.value,"vue-data-ui-zoom-minus":$.value}),viewBox:`${L.value.startX} ${L.value.startY} ${L.value.width<=0?10:L.value.width} ${L.value.height<=0?10:L.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: hidden; background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(o,c)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.rects.gradient.show?(e.openBlock(),e.createElementBlock("defs",De,[e.createElementVNode("radialGradient",{id:`tgrad_${o.id}`,gradientTransform:"translate(-1, -1.000001) scale(2, 2)"},[e.createElementVNode("stop",{offset:"18%","stop-color":o.color},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.lightenHexColor)(o.color,t.value.style.chart.layout.rects.gradient.intensity/100)},null,8,Ae)],8,Ie)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(o,c)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:o.x0,y:o.y0,height:K(o),width:Q(o),fill:h.value?o.color:t.value.style.chart.layout.rects.gradient.show?`url(#tgrad_${o.id})`:o.color,rx:t.value.style.chart.layout.rects.borderRadius,stroke:S.value&&S.value.id===o.id?t.value.style.chart.layout.rects.selected.stroke:t.value.style.chart.layout.rects.stroke,"stroke-width":S.value&&S.value.id===o.id?t.value.style.chart.layout.rects.selected.strokeWidth:t.value.style.chart.layout.rects.strokeWidth,onClick:y=>fe(o),onMouseenter:()=>me({datapoint:o,seriesIndex:c}),onMouseleave:a[0]||(a[0]=y=>{S.value=null,p.value=!1}),style:e.normalizeStyle(`opacity:${S.value?S.value.id===o.id?1:t.value.style.chart.layout.rects.selected.unselectedOpacity:1}`),class:"vue-ui-treemap-rect"},null,44,He),(e.openBlock(),e.createElementBlock("foreignObject",{x:o.x0,y:o.y0,height:K(o),width:Q(o),class:"vue-ui-treemap-cell-foreignObject"},[e.createElementVNode("div",We,[t.value.style.chart.layout.labels.showDefaultLabels&&(o.proportion>t.value.style.chart.layout.labels.hideUnderProportion||$.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-treemap-cell-default",style:e.normalizeStyle(`width:calc(100% - ${V(o)/1.5}px);text-align:left;line-height:${V(o)<14?14:V(o)}px;padding:${V(o)/3}px; color:${e.unref(r.adaptColorToBackground)(o.color)}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${V(o)}px;`)},e.toDisplayString(o.name),5),Ue,e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${V(o)}px;`)},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.prefix,v:o.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.layout.labels.rounding}),{datapoint:o})),5)],4)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"rect",e.normalizeProps(e.guardReactiveProps({rect:o,shouldShow:o.proportion>t.value.style.chart.layout.labels.hideUnderProportion||$.value,fontSize:V(o),isZoom:$.value,textColor:e.unref(r.adaptColorToBackground)(o.color)})),void 0,!0)])],8,Me))]))),256)),e.renderSlot(l.$slots,"svg",e.normalizeProps(e.guardReactiveProps({svg:P.value,isZoom:$.value,rect:S.value,config:t.value})),void 0,!0)],14,Fe)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ge,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(T)||e.unref(U)})),void 0,!0)])):e.createCommentVNode("",!0),v.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(xe.default,{key:4,config:{type:"treemap",style:{backgroundColor:t.value.style.chart.backgroundColor,treemap:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:x},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(we.Legend,{key:0,legendSet:te.value,config:ge.value,id:`treemap_legend_${f.value}`,onClickMarker:a[1]||(a[1]=({legend:o})=>le(o))},{item:e.withCtx(({legend:o,index:c})=>[e.createElementVNode("div",{onClick:y=>le(o),style:e.normalizeStyle(`opacity:${g.value.includes(o.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.prefix,v:o.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:o}))+" ",1),g.value.includes(o.id)?(e.openBlock(),e.createElementBlock("span",Ye," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Xe," ("+e.toDisplayString(isNaN(o.value/E.value)?"-":(o.value/E.value*100).toFixed(t.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,je)]),_:1},8,["legendSet","config","id"])):e.renderSlot(l.$slots,"legend",{key:1,legend:te.value},void 0,!0)],512),e.createVNode(Ce._sfc_main,{show:B.value.showTooltip&&p.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:m.value,content:C.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...M.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...M.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),v.value?(e.openBlock(),e.createBlock($e.default,{key:5,hideDetails:"",config:{open:B.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(Te.DataTable,{colNames:q.value.colNames,head:q.value.head,body:q.value.body,config:q.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=o=>B.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Ze)]),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,Re))}},Ke=Se._export_sfc(Je,[["__scopeId","data-v-7028d693"]]);exports.default=Ke;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DQvb5Vgo.cjs"),ee=require("./useResponsive-B3TrDDIG.cjs"),be=require("./Title-CNJKmNgA.cjs"),te=require("./usePrinter-C4oaA82s.cjs"),me=require("./Tooltip-BIHm4byQ.cjs"),le=require("./Legend-BfwTJ9M-.cjs"),ke=require("./vue-ui-skeleton-6fxZMdtV.cjs"),Ce=require("./BaseIcon-D5tyFpQV.cjs"),xe=require("./vue-ui-accordion-D5-giD3x.cjs"),ae=require("./useNestedProp-D1F0KM3m.cjs"),_e=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$e=["id"],we=["onClick"],Ne=["xmlns","viewBox"],Se=["id"],Ve=["stop-color"],Te=["stop-color"],Ee=["x","y","width","height","fill","rx"],Be=["x","y","width","height","fill","rx","stroke","stroke-width"],Le=["x2","y1","y2","stroke","stroke-width"],ze=["x","y","font-size","fill","font-weight"],Pe=["x","y","font-size","fill","font-weight"],De=["x","y","font-size","fill","font-weight"],Fe=["x","y","font-size","fill","font-weight"],Ie=["y","width","height","fill","onMouseenter"],Oe={key:4,class:"vue-data-ui-watermark"},Re=["onClick"],Me={style:"width:100%;padding-top: 36px;position:relative"},qe={class:"vue-ui-data-table"},He={key:0},Ue={style:{width:"100%"}},Ae=["data-cell"],Ge={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Xe=["data-cell"],je={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},We=["data-cell"],Ye={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Ke=["data-cell"],Je={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Qe=["data-cell"],Ze={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},et=["data-cell"],tt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},lt=["data-cell"],at={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ot={__name:"vue-ui-vertical-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(oe,{expose:ne,emit:re}){const f=oe;e.useCssVars(l=>({"7e8202ad":l.tdo}));const{vue_ui_vertical_bar:ue}=r.useConfig(),S=e.computed(()=>!!f.dataset&&f.dataset.length),b=e.ref(r.createUid()),ie=e.ref(null),E=e.ref(!1),B=e.ref(""),V=e.ref(0),se=e.ref(null),F=e.ref(0),C=e.ref(null),I=e.ref(null),L=e.ref(null),t=e.computed(()=>{const l=ae.useNestedProp({userConfig:f.config,defaultConfig:ue});return l.theme?{...ae.useNestedProp({userConfig:r.themes.vue_ui_vertical_bar[l.theme]||f.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}),{isPrinting:O,isImaging:R,generatePdf:M,generateImage:q}=te.usePrinter({elementId:`vue-ui-vertical-bar_${b.value}`,fileName:t.value.style.chart.title.text||"vue-ui-vertical-bar"}),H=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),U=e.ref(null),A=e.ref(!1),ce=e.computed(()=>t.value.table.responsiveBreakpoint),T=e.ref(null);e.onMounted(()=>{if(r.objectIsEmpty(f.dataset)&&r.error({componentName:"VueUiVerticalBar",type:"dataset"}),V.value=f.dataset.flatMap(l=>l.children&&l.children.length>0?l.children.length:1).reduce((l,o)=>l+o,0),de(),t.value.responsive){const l=ee.throttle(()=>{const{width:o,height:a}=ee.useResponsive({chart:C.value,title:t.value.style.chart.title.text?I.value:null,legend:t.value.style.chart.legend.show?L.value:null});j.value=o,s.value=a/V.value-d.value*2});T.value=new ResizeObserver(l),T.value.observe(C.value.parentNode)}}),e.onBeforeUnmount(()=>{T.value&&T.value.disconnect()});function de(){new ResizeObserver(o=>{o.forEach(a=>{A.value=a.contentRect.width<ce.value})}).observe(U.value)}const h=e.ref({showTable:t.value.table.show,sortDesc:t.value.style.chart.layout.bars.sort==="desc",showTooltip:t.value.style.chart.tooltip.show}),G=e.computed(()=>h.value.sortDesc),m=e.computed(()=>(f.dataset.forEach((l,o)=>{l.children&&(r.objectIsEmpty(l.children)?r.error({componentName:"VueUiVerticalBar",type:"datasetAttributeEmpty",property:`children (index ${o})`}):l.children.forEach((a,n)=>{[null,void 0].includes(a.name)&&r.error({componentName:"VueUiVerticalBar",type:"datasetSerieAttribute",property:"name",key:"children",index:n})}))}),f.dataset.map((l,o)=>{const a=`vertical_parent_${o}_${b.value}`,n=!!l.children&&l.children.length>0;return![null,void 0].includes(l.value)&&l.value<0&&console.warn(`VueUiVerticalBar is not designed to graph negative values. ${l.name||"serie at index"+o} has the following value: ${l.value}`),{...l,id:a,shape:"square",opacity:y.value.includes(a)?.5:1,value:n?l.children.map(u=>u.value||0).reduce((u,i)=>u+i,0):l.value||0,hasChildren:n,isChild:!1,segregate:()=>x(a),isSegregated:y.value.includes(a),color:r.convertColorToHex(l.color)||H.value[o]||r.palette[o]||r.palette[o%r.palette.length],children:!l.children||!l.children.length?[]:l.children.toSorted((u,i)=>G.value?i.value-u.value:u.value-i.value).map((u,i)=>(![null,void 0].includes(u.value)&&u.value<0&&console.warn(`VueUiVerticalBar is not designed to graph negative values. ${u.name+" child serie"||"child serie at index"+o+", "+i} has the following value: ${u.value}`),{...u,value:u.value||0,isChild:!0,parentId:a,parentName:l.name,parentValue:l.value,id:`vertical_child_${o}_${i}_${b.value}`,childIndex:i,color:r.convertColorToHex(u.color)||r.convertColorToHex(l.color)||H.value[o]||r.palette[o]||r.palette[o%r.palette.length]})).map((u,i)=>({...u,isFirstChild:i===0,isLastChild:i===l.children.length-1}))}}).toSorted((l,o)=>G.value?o.value-l.value:l.value-o.value))),X=e.computed(()=>({cy:"vertical-bar-div-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":""})),s=e.ref(t.value.style.chart.layout.bars.height),d=e.ref(t.value.style.chart.layout.bars.gap),ve=e.computed(()=>(s.value+d.value)*V.value),j=e.ref(512),c=e.computed(()=>({width:j.value,height:ve.value,padding:{top:12,left:128+t.value.style.chart.layout.bars.offsetX,right:64+t.value.style.chart.layout.bars.paddingRight,bottom:12}})),v=e.computed(()=>({fullHeight:c.value.padding.top+c.value.padding.bottom+c.value.height,top:c.value.padding.top,left:c.value.padding.left,right:c.value.width-c.value.padding.right,bottom:c.value.padding.top+c.value.height,width:c.value.width-(c.value.padding.left+c.value.padding.right)}));function z(){V.value=k.value.flatMap(l=>l.children&&l.children.length>0?l.children.length:1).reduce((l,o)=>l+o,0)}const y=e.ref([]);function x(l){y.value.includes(l)?y.value=y.value.filter(o=>o!==l):y.value.push(l),z(),re("selectLegend",k.value)}const k=e.computed(()=>m.value.filter(l=>!y.value.includes(l.id))),g=e.computed(()=>k.value.map(l=>l.value).reduce((l,o)=>l+o));function W(l,o=!1,a=0){return o?r.dataLabel({v:l/g.value*100,s:"%",r:a}):l/g.value}const _=e.computed(()=>k.value.flatMap(l=>l.hasChildren?l.children:l)),he=e.computed(()=>Math.max(...k.value.flatMap(l=>l.children&&l.children.length?Math.max(...l.children.map(o=>o.value)):l.value)));function $(l){const o=l/he.value;return v.value.width*o}function pe(l){return $(l)+v.value.left}function w(l,o){const a=k.value.find(i=>i.id===l.parentId),n=v.value.top+(d.value+s.value)*o,u=a.children.length*(d.value+s.value);return{y:n+u/2-t.value.style.chart.layout.bars.parentLabels.fontSize,name:a.name,value:[void 0,NaN,null].includes(a.value)?"":a.value.toFixed(t.value.style.chart.layout.bars.dataLabels.value.roundingValue),percentageToTotal:isNaN(a.value/g.value)?"":W(a.value,!0,t.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)}}function ye(){return k.value}const P=e.ref(null),D=e.ref(null);function ge(l,o){D.value={datapoint:l,seriesIndex:o,series:m.value,config:t.value},E.value=!0,P.value=l.id;let a="";const n=l.isChild?l.parentName:l.name,u=l.isChild?l.name:"",i=t.value.style.chart.tooltip.customFormat;r.isFunction(i)&&r.functionReturnsString(()=>i({datapoint:l,series:m.value,config:t.value,seriesIndex:o}))?B.value=i({datapoint:l,series:m.value,config:t.value,seriesIndex:o}):(a+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
|
|
2
2
|
<div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" rx="2" stroke="none" fill="${l.color}"/></svg> ${n}</div>
|
|
3
3
|
${u?`<div>${u}</div>`:""}
|
|
4
4
|
</div>`,t.value.style.chart.tooltip.showValue&&(a+=`<div>${t.value.translations.value}: <b>${r.applyDataLabel(t.value.style.chart.layout.bars.dataLabels.value.formatter,l.value,r.dataLabel({p:t.value.style.chart.tooltip.prefix,v:l.value,s:t.value.style.chart.tooltip.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:l,seriesIndex:o})}</b></div>`),t.value.style.chart.tooltip.showPercentage&&(a+=`<div>${t.value.translations.percentageToTotal} : <b>${r.dataLabel({v:l.value/g.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`,l.isChild&&(a+=`<div>${t.value.translations.percentageToSerie}: <b>${r.dataLabel({v:l.value/l.parentValue*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`)),B.value=`<div style="text-align:left">${a}</div>`)}function Y(l,o,a){if(!t.value.style.chart.layout.bars.dataLabels.value.show)return"";const n=r.applyDataLabel(t.value.style.chart.layout.bars.dataLabels.value.formatter,l,r.dataLabel({p:t.value.style.chart.layout.bars.dataLabels.value.prefix,v:l,s:t.value.style.chart.layout.bars.dataLabels.value.suffix,r:t.value.style.chart.layout.bars.dataLabels.value.roundingValue}),{datapoint:o,seriesIndex:a}),u=`(${W(l,!0,t.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;return`${n}${t.value.style.chart.layout.bars.dataLabels.percentage.show?` ${u}`:""}`}const p=e.computed(()=>{const l=[t.value.translations.parentName,t.value.translations.value,t.value.translations.percentageToTotal,t.value.translations.childName,t.value.translations.value,t.value.translations.percentageToSerie,t.value.translations.percentageToTotal],o=_.value.map(a=>a.isChild?a.isFirstChild?{color:a.color,parentName:a.parentName,parentValue:a.parentValue,percentageToTotal:a.parentValue/g.value,childName:a.name,childValue:a.value,childPercentageToParent:a.value/a.parentValue,childPercentageToTotal:a.value/g.value}:{color:"",parentName:"",parentValue:"",percentageToTotal:"",childName:a.name,childValue:a.value,childPercentageToParent:a.value/a.parentValue,childPercentageToTotal:a.value/g.value}:{color:a.color,parentName:a.name,parentValue:a.value,percentageToTotal:a.value/g.value,childName:"",childValue:"",childPercentageToParent:"",childPercentageToTotal:""});return{head:l,body:o}});function K(){const l=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=p.value.head,a=p.value.body.map(i=>[i.parentName,i.parentValue,i.percentageToTotal,i.childName,i.childValue,i.childPercentageToParent,i.childPercentageToTotal]),n=l.concat([o]).concat(a),u=r.createCsvContent(n);r.downloadCsv({csvContent:u,title:t.value.style.chart.title.text||"vue-ui-vertical-bar"})}const N=e.ref(!1);function fe(l){N.value=l,F.value+=1}function J(){h.value.showTable=!h.value.showTable}function Q(){h.value.sortDesc=!h.value.sortDesc,z()}function Z(){h.value.showTooltip=!h.value.showTooltip}return ne({getData:ye,recalculateHeight:z,generatePdf:M,generateCsv:K,generateImage:q,toggleTable:J,toggleSort:Q,toggleTooltip:Z}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-vertical-bar ${N.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"verticalBarChart",ref:C,id:`vue-ui-vertical-bar_${b.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.responsive?"height: 100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:I,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:12px`)},[e.createVNode(be._sfc_main,{config:{title:{cy:"vertical-bar-div-title",...t.value.style.chart.title},subtitle:{cy:"vertical-bar-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&S.value?(e.openBlock(),e.createBlock(te.UserOptions,{ref_key:"details",ref:ie,key:`user_options_${F.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(R),isPrinting:e.unref(O),uid:b.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasSort:t.value.userOptions.buttons.sort,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:N.value,isTooltip:h.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:C.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(M),onGenerateCsv:K,onGenerateImage:e.unref(q),onToggleTable:J,onToggleSort:Q,onToggleTooltip:Z},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionSort?{name:"optionSort",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionSort",{},void 0,!0)]),key:"6"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:n})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasSort","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),t.value.style.chart.legend.show&&t.value.style.chart.legend.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartLegend",ref:L},[e.createVNode(le.Legend,{legendSet:m.value,config:X.value,onClickMarker:o[0]||(o[0]=({legend:a})=>x(a.id))},{item:e.withCtx(({legend:a,index:n})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:u=>x(a.id),style:e.normalizeStyle(`opacity:${y.value.includes(a.id)?.5:1}`)},e.toDisplayString(a.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.bars.dataLabels.value.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.legend.prefix,v:a.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:a,seriesIndex:n})),13,we)]),_:1},8,["legendSet","config"])],512)):e.createCommentVNode("",!0),S.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":N.value,"vue-data-ui-fulscreen--off":!N.value}),viewBox:`0 0 ${c.value.width<=0?10:c.value.width} ${v.value.fullHeight<=0?10:v.value.fullHeight}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(a,n)=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`vertical_bar_gradient_${b.value}_${n}`},[e.createElementVNode("stop",{offset:"0%","stop-color":a.color},null,8,Ve),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(r.shiftHue)(a.color,.03)}${e.unref(r.opacity)[100-t.value.style.chart.layout.bars.gradientIntensity]}`},null,8,Te)],8,Se))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(a,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:v.value.left,y:v.value.top+(d.value+s.value)*n,width:$(a.value)<=0?1e-4:$(a.value),height:s.value<=0?1e-4:s.value,fill:t.value.style.chart.layout.bars.underlayerColor,rx:t.value.style.chart.layout.bars.borderRadius,class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,Ee)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(a,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:v.value.left,y:v.value.top+(d.value+s.value)*n,width:$(a.value)<=0?1e-4:$(a.value),height:s.value<=0?1e-4:s.value,fill:t.value.style.chart.layout.bars.useGradient?`url(#vertical_bar_gradient_${b.value}_${n})`:`${a.color}${e.unref(r.opacity)[t.value.style.chart.layout.bars.fillOpacity]}`,rx:t.value.style.chart.layout.bars.borderRadius,stroke:t.value.style.chart.layout.bars.useStroke?a.color:"none","stroke-width":t.value.style.chart.layout.bars.useStroke?t.value.style.chart.layout.bars.strokeWidth:0,class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,Be),(!a.isChild||a.isLastChild)&&t.value.style.chart.layout.separators.show&&n!==_.value.length-1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:0,x2:v.value.left,y1:s.value+d.value/2+v.value.top+(d.value+s.value)*n,y2:s.value+d.value/2+v.value.top+(d.value+s.value)*n,stroke:t.value.style.chart.layout.separators.color,"stroke-width":t.value.style.chart.layout.separators.strokeWidth,"stroke-linecap":"round"},null,8,Le)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:pe(a.value)+3+t.value.style.chart.layout.bars.dataLabels.offsetX,y:v.value.top+(d.value+s.value)*n+s.value/2+t.value.style.chart.layout.bars.dataLabels.fontSize/2,"text-anchor":"start","font-size":t.value.style.chart.layout.bars.dataLabels.fontSize,fill:t.value.style.chart.layout.bars.dataLabels.color,"font-weight":t.value.style.chart.layout.bars.dataLabels.bold?"bold":"normal"},e.toDisplayString(Y(a.value,a,n)),9,ze),(a.isChild||!a.hasChildren)&&t.value.style.chart.layout.bars.nameLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"end",x:v.value.left-3+t.value.style.chart.layout.bars.nameLabels.offsetX,y:v.value.top+(d.value+s.value)*n+s.value/2+t.value.style.chart.layout.bars.nameLabels.fontSize/2,"font-size":t.value.style.chart.layout.bars.nameLabels.fontSize,fill:t.value.style.chart.layout.bars.nameLabels.color,"font-weight":t.value.style.chart.layout.bars.nameLabels.bold?"bold":"normal"},e.toDisplayString(a.name),9,Pe)):e.createCommentVNode("",!0),a.isChild&&a.childIndex===0&&t.value.style.chart.layout.bars.parentLabels.show?(e.openBlock(),e.createElementBlock("text",{key:2,x:3+t.value.style.chart.layout.bars.parentLabels.offsetX,y:w(a,n).y,"font-size":t.value.style.chart.layout.bars.parentLabels.fontSize,fill:t.value.style.chart.layout.bars.parentLabels.color,"font-weight":t.value.style.chart.layout.bars.parentLabels.bold?"bold":"normal","text-anchor":"start"},e.toDisplayString(w(a,n).name),9,De)):e.createCommentVNode("",!0),a.isChild&&a.childIndex===0&&t.value.style.chart.layout.bars.parentLabels.show?(e.openBlock(),e.createElementBlock("text",{key:3,x:3+t.value.style.chart.layout.bars.parentLabels.offsetX,y:w(a,n).y+t.value.style.chart.layout.bars.parentLabels.fontSize+6,"font-size":t.value.style.chart.layout.bars.parentLabels.fontSize,fill:t.value.style.chart.layout.bars.parentLabels.color,"font-weight":t.value.style.chart.layout.bars.dataLabels.bold?"bold":"normal","text-anchor":"start"},e.toDisplayString(Y(w(a,n).value),w(a,n),n),9,Fe)):e.createCommentVNode("",!0),e.createElementVNode("rect",{"data-cy-trap":"",x:0,y:v.value.top+(d.value+s.value)*n-d.value/2,width:c.value.width<=0?1e-4:c.value.width,height:s.value+d.value<=0?1e-4:s.value+d.value,fill:P.value===a.id?`${t.value.style.chart.layout.highlighter.color}${e.unref(r.opacity)[t.value.style.chart.layout.highlighter.opacity]}`:"transparent",onMouseenter:u=>ge(a,n),onMouseleave:o[1]||(o[1]=u=>{se.value=null,E.value=!1,P.value=null})},null,40,Ie)]))),256)),e.renderSlot(l.$slots,"svg",{svg:c.value},void 0,!0)],14,Ne)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Oe,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(O)||e.unref(R)})),void 0,!0)])):e.createCommentVNode("",!0),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ke.default,{key:5,config:{type:"verticalBar",style:{backgroundColor:t.value.style.chart.backgroundColor,verticalBar:{axis:{color:"#CCCCCC"},color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.chart.legend.show&&t.value.style.chart.legend.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"chartLegend",ref:L},[e.createVNode(le.Legend,{legendSet:m.value,config:X.value,onClickMarker:o[2]||(o[2]=({legend:a})=>x(a.id))},{item:e.withCtx(({legend:a,index:n})=>[e.createElementVNode("div",{onClick:u=>x(a.id),style:e.normalizeStyle(`opacity:${y.value.includes(a.id)?.5:1}`)},e.toDisplayString(a.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.bars.dataLabels.value.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.legend.prefix,v:a.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:a,seriesIndex:n})),13,Re)]),_:1},8,["legendSet","config"])],512)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"legend",{legend:m.value},void 0,!0),e.createVNode(me._sfc_main,{show:h.value.showTooltip&&E.value&&y.value.length<f.dataset.length,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:C.value,content:B.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...D.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...D.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),S.value?(e.openBlock(),e.createBlock(xe.default,{key:7,hideDetails:"",config:{open:h.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.createElementVNode("div",{ref_key:"tableContainer",ref:U,class:"vue-ui-vertical-bar-table"},[e.createElementVNode("div",Me,[e.createElementVNode("div",{role:"button",tabindex:"0",style:e.normalizeStyle(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${t.value.table.th.backgroundColor};`),onClick:o[3]||(o[3]=a=>h.value.showTable=!1),onKeypress:o[4]||(o[4]=e.withKeys(a=>h.value.showTable=!1,["enter"]))},[e.createVNode(Ce.default,{name:"close",stroke:t.value.table.th.color,"stroke-width":2},null,8,["stroke"])],36),e.createElementVNode("div",{style:{width:"100%","container-type":"inline-size"},class:e.normalizeClass({"vue-ui-responsive":A.value})},[e.createElementVNode("table",qe,[e.createElementVNode("caption",{style:e.normalizeStyle({backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline}),class:"vue-ui-data-table__caption"},[e.createTextVNode(e.toDisplayString(t.value.style.chart.title.text)+" ",1),t.value.style.chart.title.subtitle.text?(e.openBlock(),e.createElementBlock("span",He,e.toDisplayString(t.value.style.chart.title.subtitle.text),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value.head,a=>(e.openBlock(),e.createElementBlock("th",{style:e.normalizeStyle(`outline:${t.value.table.th.outline}`)},[e.createElementVNode("div",Ue,e.toDisplayString(a),1)],4))),256))],4),e.createElementVNode("tr",null,[e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)},"∑ "+e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(isNaN(g.value)?"":g.value.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),5),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)},"100%",4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value.body,(a,n)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":n%2===0,"vue-ui-data-table__tbody__row-odd":n%2!==0}),style:e.normalizeStyle(`background:${t.value.table.td.backgroundColor};color:${t.value.table.td.color}`)},[e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline};font-variant-numeric: tabular-nums;`),"data-cell":p.value.head[0]??""},[e.createElementVNode("div",Ge,[a.color?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`color:${a.color};margin-right:3px`)},"⬤",4)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(a.parentName),1)])],12,Ae),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":p.value.head[1]??""},[e.createElementVNode("div",je,e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(["",NaN,void 0].includes(a.parentValue)?"":a.parentValue.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),1)],12,Xe),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":p.value.head[2]??""},[e.createElementVNode("div",Ye,e.toDisplayString(["",NaN,void 0].includes(a.percentageToTotal)?"":`${(a.percentageToTotal*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,We),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":p.value.head[3]??""},[e.createElementVNode("div",Je,e.toDisplayString(a.childName),1)],12,Ke),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":p.value.head[4]??""},[e.createElementVNode("div",Ze,e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(["",NaN,void 0].includes(a.childValue)?"":a.childValue.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),1)],12,Qe),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":p.value.head[5]??""},[e.createElementVNode("div",tt,e.toDisplayString(["",NaN,void 0].includes(a.childPercentageToParent)?"":`${(a.childPercentageToParent*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,et),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":p.value.head[6]??""},[e.createElementVNode("div",at,e.toDisplayString(["",NaN,void 0].includes(a.childPercentageToTotal)?"":`${(a.childPercentageToTotal*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,lt)],6))),256))])])],2)])],512)]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,$e))}},nt=_e._export_sfc(ot,[["__scopeId","data-v-85b13f41"]]);exports.default=nt;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useCssVars as Me, computed as f, ref as h, onMounted as Ue, onBeforeUnmount as Xe, openBlock as s, createElementBlock as c, normalizeClass as F, normalizeStyle as i, createVNode as M, createCommentVNode as m, createBlock as ee, unref as b, createSlots as Ae, withCtx as _, renderSlot as $, normalizeProps as H, guardReactiveProps as W, createElementVNode as n, toDisplayString as d, Fragment as U, renderList as X, withKeys as Ee, createTextVNode as Ge } from "vue";
|
|
2
|
-
import { u as He, c as We, t as je, a as Ye, p as V, b as qe, o as xe, e as te, d as le, i as j, f as S, X as Ke, s as Je, v as ae, w as Qe, x as Ze, q as et, r as tt } from "./index-
|
|
2
|
+
import { u as He, c as We, t as je, a as Ye, p as V, b as qe, o as xe, e as te, d as le, i as j, f as S, X as Ke, s as Je, v as ae, w as Qe, x as Ze, q as et, r as tt } from "./index-BJ6NXF-z.js";
|
|
3
3
|
import { t as lt, u as at } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as ot } from "./Title-
|
|
5
|
-
import { u as nt, U as ut } from "./usePrinter-
|
|
6
|
-
import { _ as rt } from "./Tooltip-
|
|
7
|
-
import { L as ke } from "./Legend-
|
|
8
|
-
import st from "./vue-ui-skeleton-
|
|
9
|
-
import it from "./BaseIcon-
|
|
10
|
-
import dt from "./vue-ui-accordion-
|
|
11
|
-
import { u as Ce } from "./useNestedProp-
|
|
4
|
+
import { _ as ot } from "./Title-CKSMMGjd.js";
|
|
5
|
+
import { u as nt, U as ut } from "./usePrinter-BUIam1ao.js";
|
|
6
|
+
import { _ as rt } from "./Tooltip-C9Q2lE3W.js";
|
|
7
|
+
import { L as ke } from "./Legend-3WC5-bUm.js";
|
|
8
|
+
import st from "./vue-ui-skeleton-DdAE1RlM.js";
|
|
9
|
+
import it from "./BaseIcon-BHjAlRHU.js";
|
|
10
|
+
import dt from "./vue-ui-accordion-GCDGaaYO.js";
|
|
11
|
+
import { u as Ce } from "./useNestedProp-AR9tJrsp.js";
|
|
12
12
|
import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const vt = ["id"], ht = ["onClick"], pt = ["xmlns", "viewBox"], gt = ["id"], yt = ["stop-color"], ft = ["stop-color"], bt = ["x", "y", "width", "height", "fill", "rx"], mt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], _t = ["x2", "y1", "y2", "stroke", "stroke-width"], $t = ["x", "y", "font-size", "fill", "font-weight"], xt = ["x", "y", "font-size", "fill", "font-weight"], kt = ["x", "y", "font-size", "fill", "font-weight"], Ct = ["x", "y", "font-size", "fill", "font-weight"], wt = ["y", "width", "height", "fill", "onMouseenter"], Tt = {
|
|
14
14
|
key: 4,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { computed as c, ref as v, onMounted as Me, onBeforeUnmount as De, openBlock as r, createElementBlock as i, normalizeClass as xe, normalizeStyle as W, createVNode as oe, createCommentVNode as p, createBlock as Q, unref as h, createSlots as Ge, withCtx as
|
|
2
|
-
import { u as Ee, c as We, t as qe, a as He, p as B, o as Xe, e as ue, g as Ye, b as Je, d as Ke, i as M, f as x, X as Qe, s as Ze, v as et, D as tt, F as lt, w as at, x as ot, q as ut, r as st } from "./index-
|
|
1
|
+
import { computed as c, ref as v, onMounted as Me, onBeforeUnmount as De, openBlock as r, createElementBlock as i, normalizeClass as xe, normalizeStyle as W, createVNode as oe, createCommentVNode as p, createBlock as Q, unref as h, createSlots as Ge, withCtx as m, renderSlot as b, normalizeProps as q, guardReactiveProps as H, createElementVNode as w, Fragment as T, renderList as V, toDisplayString as S, createTextVNode as Ce, nextTick as Re, pushScopeId as Ue, popScopeId as je } from "vue";
|
|
2
|
+
import { u as Ee, c as We, t as qe, a as He, p as B, o as Xe, e as ue, g as Ye, b as Je, d as Ke, i as M, f as x, X as Qe, s as Ze, v as et, D as tt, F as lt, w as at, x as ot, q as ut, r as st } from "./index-BJ6NXF-z.js";
|
|
3
3
|
import { t as rt, u as nt } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as it } from "./Title-
|
|
5
|
-
import { u as ct, U as vt } from "./usePrinter-
|
|
6
|
-
import { _ as dt } from "./Tooltip-
|
|
7
|
-
import { D as ht } from "./DataTable-
|
|
8
|
-
import { L as yt } from "./Legend-
|
|
9
|
-
import ft from "./vue-ui-skeleton-
|
|
10
|
-
import pt from "./vue-ui-accordion-
|
|
11
|
-
import { u as _e } from "./useNestedProp-
|
|
4
|
+
import { _ as it } from "./Title-CKSMMGjd.js";
|
|
5
|
+
import { u as ct, U as vt } from "./usePrinter-BUIam1ao.js";
|
|
6
|
+
import { _ as dt } from "./Tooltip-C9Q2lE3W.js";
|
|
7
|
+
import { D as ht } from "./DataTable-DqPGv4Ms.js";
|
|
8
|
+
import { L as yt } from "./Legend-3WC5-bUm.js";
|
|
9
|
+
import ft from "./vue-ui-skeleton-DdAE1RlM.js";
|
|
10
|
+
import pt from "./vue-ui-accordion-GCDGaaYO.js";
|
|
11
|
+
import { u as _e } from "./useNestedProp-AR9tJrsp.js";
|
|
12
12
|
import { _ as gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const $e = (D) => (Ue("data-v-
|
|
13
|
+
const $e = (D) => (Ue("data-v-66e13c6a"), D = D(), je(), D), mt = ["id"], bt = ["xmlns", "viewBox"], wt = ["id"], kt = ["stop-color"], xt = ["stop-color"], Ct = ["id"], _t = /* @__PURE__ */ $e(() => /* @__PURE__ */ w("feGaussianBlur", {
|
|
14
14
|
in: "SourceGraphic",
|
|
15
15
|
stdDeviation: 2
|
|
16
16
|
}, null, -1)), $t = /* @__PURE__ */ $e(() => /* @__PURE__ */ w("feColorMatrix", {
|
|
@@ -187,7 +187,7 @@ const $e = (D) => (Ue("data-v-d9bad5ef"), D = D(), je(), D), bt = ["id"], mt = [
|
|
|
187
187
|
});
|
|
188
188
|
return t;
|
|
189
189
|
}), y = v([]), N = v(!1), pe = v(null), ge = v(null);
|
|
190
|
-
function
|
|
190
|
+
function me(t) {
|
|
191
191
|
if (!e.value.useAnimation) {
|
|
192
192
|
y.value.includes(t) ? y.value = y.value.filter((u) => u !== t) : y.value.length < A.value.length - 1 && A.value.length > 1 && y.value.push(t);
|
|
193
193
|
return;
|
|
@@ -236,7 +236,7 @@ const $e = (D) => (Ue("data-v-d9bad5ef"), D = D(), je(), D), bt = ["id"], mt = [
|
|
|
236
236
|
...t,
|
|
237
237
|
proportion: t.value / d.value.map((l) => (l.values || []).reduce((a, u) => a + u, 0)).reduce((l, a) => l + a, 0),
|
|
238
238
|
opacity: y.value.includes(t.uid) ? 0.5 : 1,
|
|
239
|
-
segregate: () =>
|
|
239
|
+
segregate: () => me(t.uid),
|
|
240
240
|
isSegregated: y.value.includes(t.uid)
|
|
241
241
|
}))), Oe = c(() => ({
|
|
242
242
|
cy: "waffle-div-legend",
|
|
@@ -305,7 +305,7 @@ const $e = (D) => (Ue("data-v-d9bad5ef"), D = D(), je(), D), bt = ["id"], mt = [
|
|
|
305
305
|
function le(t) {
|
|
306
306
|
return e.value.useBlurOnHover && ![null, void 0].includes(O.value) && O.value !== t ? `url(#blur_${L.value})` : "";
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function be() {
|
|
309
309
|
Re(() => {
|
|
310
310
|
const t = $.value.head.map((a, u) => [[
|
|
311
311
|
a.name
|
|
@@ -384,7 +384,7 @@ const $e = (D) => (Ue("data-v-d9bad5ef"), D = D(), je(), D), bt = ["id"], mt = [
|
|
|
384
384
|
return Ie({
|
|
385
385
|
getData: Ne,
|
|
386
386
|
generatePdf: ve,
|
|
387
|
-
generateCsv:
|
|
387
|
+
generateCsv: be,
|
|
388
388
|
generateImage: de,
|
|
389
389
|
toggleTable: we,
|
|
390
390
|
toggleTooltip: ke
|
|
@@ -435,50 +435,50 @@ const $e = (D) => (Ue("data-v-d9bad5ef"), D = D(), je(), D), bt = ["id"], mt = [
|
|
|
435
435
|
chartElement: G.value,
|
|
436
436
|
onToggleFullscreen: Ve,
|
|
437
437
|
onGeneratePdf: h(ve),
|
|
438
|
-
onGenerateCsv:
|
|
438
|
+
onGenerateCsv: be,
|
|
439
439
|
onGenerateImage: h(de),
|
|
440
440
|
onToggleTable: we,
|
|
441
441
|
onToggleTooltip: ke
|
|
442
442
|
}, Ge({ _: 2 }, [
|
|
443
443
|
t.$slots.optionTooltip ? {
|
|
444
444
|
name: "optionTooltip",
|
|
445
|
-
fn:
|
|
446
|
-
|
|
445
|
+
fn: m(() => [
|
|
446
|
+
b(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
447
447
|
]),
|
|
448
448
|
key: "0"
|
|
449
449
|
} : void 0,
|
|
450
450
|
t.$slots.optionPdf ? {
|
|
451
451
|
name: "optionPdf",
|
|
452
|
-
fn:
|
|
453
|
-
|
|
452
|
+
fn: m(() => [
|
|
453
|
+
b(t.$slots, "optionPdf", {}, void 0, !0)
|
|
454
454
|
]),
|
|
455
455
|
key: "1"
|
|
456
456
|
} : void 0,
|
|
457
457
|
t.$slots.optionCsv ? {
|
|
458
458
|
name: "optionCsv",
|
|
459
|
-
fn:
|
|
460
|
-
|
|
459
|
+
fn: m(() => [
|
|
460
|
+
b(t.$slots, "optionCsv", {}, void 0, !0)
|
|
461
461
|
]),
|
|
462
462
|
key: "2"
|
|
463
463
|
} : void 0,
|
|
464
464
|
t.$slots.optionImg ? {
|
|
465
465
|
name: "optionImg",
|
|
466
|
-
fn:
|
|
467
|
-
|
|
466
|
+
fn: m(() => [
|
|
467
|
+
b(t.$slots, "optionImg", {}, void 0, !0)
|
|
468
468
|
]),
|
|
469
469
|
key: "3"
|
|
470
470
|
} : void 0,
|
|
471
471
|
t.$slots.optionTable ? {
|
|
472
472
|
name: "optionTable",
|
|
473
|
-
fn:
|
|
474
|
-
|
|
473
|
+
fn: m(() => [
|
|
474
|
+
b(t.$slots, "optionTable", {}, void 0, !0)
|
|
475
475
|
]),
|
|
476
476
|
key: "4"
|
|
477
477
|
} : void 0,
|
|
478
478
|
t.$slots.optionFullscreen ? {
|
|
479
479
|
name: "optionFullscreen",
|
|
480
|
-
fn:
|
|
481
|
-
|
|
480
|
+
fn: m(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
481
|
+
b(t.$slots, "optionFullscreen", q(H({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
482
482
|
]),
|
|
483
483
|
key: "5"
|
|
484
484
|
} : void 0
|
|
@@ -525,9 +525,18 @@ const $e = (D) => (Ue("data-v-d9bad5ef"), D = D(), je(), D), bt = ["id"], mt = [
|
|
|
525
525
|
width: z.value <= 0 ? 1e-4 : z.value,
|
|
526
526
|
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
527
527
|
}, [
|
|
528
|
-
|
|
528
|
+
b(t.$slots, "cell", q(H({ cell: { ...l, color: s.value[a].color, ...s.value[a] }, isSelected: [null, void 0].includes(O.value) ? !0 : s.value[a].serieIndex === O.value })), void 0, !0)
|
|
529
529
|
], 8, Tt))), 256)) : p("", !0),
|
|
530
|
-
s.value.length
|
|
530
|
+
!s.value.length && !e.value.useCustomCells ? (r(), i("rect", {
|
|
531
|
+
key: 1,
|
|
532
|
+
x: 12,
|
|
533
|
+
y: 12,
|
|
534
|
+
height: C.value.height - 24,
|
|
535
|
+
width: C.value.width - 24,
|
|
536
|
+
rx: 3,
|
|
537
|
+
fill: "none",
|
|
538
|
+
stroke: "black"
|
|
539
|
+
}, null, 8, St)) : s.value.length && !e.value.useCustomCells ? (r(), i(T, { key: 2 }, [
|
|
531
540
|
(r(!0), i(T, null, V(j.value, (l, a) => (r(), i("rect", {
|
|
532
541
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
533
542
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -550,16 +559,7 @@ const $e = (D) => (Ue("data-v-d9bad5ef"), D = D(), je(), D), bt = ["id"], mt = [
|
|
|
550
559
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
551
560
|
filter: le(s.value[a].serieIndex)
|
|
552
561
|
}, null, 8, Pt))), 256))
|
|
553
|
-
], 64)) : p("", !0)
|
|
554
|
-
key: 1,
|
|
555
|
-
x: 12,
|
|
556
|
-
y: 12,
|
|
557
|
-
height: C.value.height - 24,
|
|
558
|
-
width: C.value.width - 24,
|
|
559
|
-
rx: 3,
|
|
560
|
-
fill: "none",
|
|
561
|
-
stroke: "black"
|
|
562
|
-
}, null, 8, St)),
|
|
562
|
+
], 64)) : p("", !0),
|
|
563
563
|
(r(!0), i(T, null, V(j.value, (l, a) => (r(), i(T, null, [
|
|
564
564
|
s.value.length && !N.value && !e.value.style.chart.layout.grid.vertical && e.value.style.chart.layout.labels.captions.show && (s.value[a].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || s.value[a].isAbsoluteFirst && a % e.value.style.chart.layout.grid.size === 0 && s.value[a].absoluteStartIndex) ? (r(), i("foreignObject", {
|
|
565
565
|
key: 0,
|
|
@@ -612,10 +612,10 @@ const $e = (D) => (Ue("data-v-d9bad5ef"), D = D(), je(), D), bt = ["id"], mt = [
|
|
|
612
612
|
fill: "transparent",
|
|
613
613
|
stroke: "none"
|
|
614
614
|
}, null, 40, At))), 256)),
|
|
615
|
-
|
|
616
|
-
], 14,
|
|
615
|
+
b(t.$slots, "svg", { svg: P.value }, void 0, !0)
|
|
616
|
+
], 14, bt)) : p("", !0),
|
|
617
617
|
t.$slots.watermark ? (r(), i("div", Vt, [
|
|
618
|
-
|
|
618
|
+
b(t.$slots, "watermark", q(H({ isPrinting: h(ie) || h(ce) })), void 0, !0)
|
|
619
619
|
])) : p("", !0),
|
|
620
620
|
X.value ? p("", !0) : (r(), Q(ft, {
|
|
621
621
|
key: 4,
|
|
@@ -637,9 +637,9 @@ const $e = (D) => (Ue("data-v-d9bad5ef"), D = D(), je(), D), bt = ["id"], mt = [
|
|
|
637
637
|
key: 0,
|
|
638
638
|
legendSet: A.value,
|
|
639
639
|
config: Oe.value,
|
|
640
|
-
onClickMarker: o[1] || (o[1] = ({ legend: l }) =>
|
|
640
|
+
onClickMarker: o[1] || (o[1] = ({ legend: l }) => me(l.uid))
|
|
641
641
|
}, {
|
|
642
|
-
item:
|
|
642
|
+
item: m(({ legend: l }) => [
|
|
643
643
|
w("div", {
|
|
644
644
|
onClick: (a) => l.segregate(),
|
|
645
645
|
style: W(`opacity:${y.value.includes(l.uid) ? 0.5 : 1}`)
|
|
@@ -660,7 +660,7 @@ const $e = (D) => (Ue("data-v-d9bad5ef"), D = D(), je(), D), bt = ["id"], mt = [
|
|
|
660
660
|
], 12, Mt)
|
|
661
661
|
]),
|
|
662
662
|
_: 1
|
|
663
|
-
}, 8, ["legendSet", "config"])) :
|
|
663
|
+
}, 8, ["legendSet", "config"])) : b(t.$slots, "legend", {
|
|
664
664
|
key: 1,
|
|
665
665
|
legend: A.value
|
|
666
666
|
}, void 0, !0)
|
|
@@ -680,11 +680,11 @@ const $e = (D) => (Ue("data-v-d9bad5ef"), D = D(), je(), D), bt = ["id"], mt = [
|
|
|
680
680
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
681
681
|
fontSize: e.value.style.chart.tooltip.fontSize
|
|
682
682
|
}, {
|
|
683
|
-
"tooltip-before":
|
|
684
|
-
|
|
683
|
+
"tooltip-before": m(() => [
|
|
684
|
+
b(t.$slots, "tooltip-before", q(H({ ...te.value })), void 0, !0)
|
|
685
685
|
]),
|
|
686
|
-
"tooltip-after":
|
|
687
|
-
|
|
686
|
+
"tooltip-after": m(() => [
|
|
687
|
+
b(t.$slots, "tooltip-after", q(H({ ...te.value })), void 0, !0)
|
|
688
688
|
]),
|
|
689
689
|
_: 3
|
|
690
690
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize"]),
|
|
@@ -704,7 +704,7 @@ const $e = (D) => (Ue("data-v-d9bad5ef"), D = D(), je(), D), bt = ["id"], mt = [
|
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
706
|
}, {
|
|
707
|
-
content:
|
|
707
|
+
content: m(() => [
|
|
708
708
|
oe(ht, {
|
|
709
709
|
colNames: K.value.colNames,
|
|
710
710
|
head: K.value.head,
|
|
@@ -713,13 +713,13 @@ const $e = (D) => (Ue("data-v-d9bad5ef"), D = D(), je(), D), bt = ["id"], mt = [
|
|
|
713
713
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
714
714
|
onClose: o[2] || (o[2] = (l) => I.value.showTable = !1)
|
|
715
715
|
}, {
|
|
716
|
-
th:
|
|
716
|
+
th: m(({ th: l }) => [
|
|
717
717
|
w("div", {
|
|
718
718
|
innerHTML: l,
|
|
719
719
|
style: { display: "flex", "align-items": "center" }
|
|
720
720
|
}, null, 8, Rt)
|
|
721
721
|
]),
|
|
722
|
-
td:
|
|
722
|
+
td: m(({ td: l }) => [
|
|
723
723
|
Ce(S(l.name || l), 1)
|
|
724
724
|
]),
|
|
725
725
|
_: 1
|
|
@@ -727,9 +727,9 @@ const $e = (D) => (Ue("data-v-d9bad5ef"), D = D(), je(), D), bt = ["id"], mt = [
|
|
|
727
727
|
]),
|
|
728
728
|
_: 1
|
|
729
729
|
}, 8, ["config"])) : p("", !0)
|
|
730
|
-
], 14,
|
|
730
|
+
], 14, mt));
|
|
731
731
|
}
|
|
732
|
-
}, tl = /* @__PURE__ */ gt(Ut, [["__scopeId", "data-v-
|
|
732
|
+
}, tl = /* @__PURE__ */ gt(Ut, [["__scopeId", "data-v-66e13c6a"]]);
|
|
733
733
|
export {
|
|
734
734
|
tl as default
|
|
735
735
|
};
|