vue-data-ui 2.6.44-beta.0 → 2.6.44-beta.1
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-BoxEqBI9.js → Arrow-BIsMVdtn.js} +1 -1
- package/dist/{Arrow-DIUU40P5.cjs → Arrow-DGay3Mq4.cjs} +1 -1
- package/dist/{BaseIcon-BDBwHXHX.js → BaseIcon-BkG8oy7S.js} +4 -3
- package/dist/{BaseIcon-HOCzoYbs.cjs → BaseIcon-CNr0ynIA.cjs} +1 -1
- package/dist/{ColorPicker-D5xsaimt.js → ColorPicker-BolaeJP4.js} +3 -3
- package/dist/{ColorPicker-BE7dtNKz.cjs → ColorPicker-Dk1k_q80.cjs} +1 -1
- package/dist/{DataTable-DpYrmdKR.js → DataTable-CMtUsL3k.js} +2 -2
- package/dist/{DataTable-CWmGoVel.cjs → DataTable-ChXRV1c1.cjs} +1 -1
- package/dist/{Legend-Bns8n5XI.js → Legend-CNvH8CO_.js} +2 -2
- package/dist/{Legend-CAcWDl5L.cjs → Legend-DpeobB-J.cjs} +1 -1
- package/dist/PackageVersion-C9u9Pwxk.cjs +1 -0
- package/dist/{PackageVersion-C-jBIpMs.js → PackageVersion-DpTw0H2K.js} +3 -3
- package/dist/{PenAndPaper-Bhj2KfFw.cjs → PenAndPaper-B3u1FDG_.cjs} +1 -1
- package/dist/{PenAndPaper-B1x7gtt0.js → PenAndPaper-CdyjU7Bn.js} +3 -3
- package/dist/{Shape-B53a4cKQ.js → Shape--0X0ca4a.js} +1 -1
- package/dist/{Shape-BejVJkvz.cjs → Shape-gapU-fux.cjs} +1 -1
- package/dist/{Slicer-BUH3aQru.js → Slicer-CZQhXgqN.js} +2 -2
- package/dist/{Slicer-ZM-g13q7.cjs → Slicer-hryDvXmh.cjs} +1 -1
- package/dist/{Title-CuyN78xN.js → Title-CUTRN3ig.js} +1 -1
- package/dist/{Title-B5DeSNYN.cjs → Title-DRo5NxnS.cjs} +1 -1
- package/dist/{Tooltip-CoZJLSUy.js → Tooltip-BvEZcxbc.js} +1 -1
- package/dist/{Tooltip-BfRrUigu.cjs → Tooltip-Cbjcw6Jz.cjs} +1 -1
- package/dist/{index-BjeHPQB2.js → index-DQCJDAtd.js} +1 -1
- package/dist/{index-CFpKg6bb.cjs → index-hcakVXU6.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -1
- package/dist/types/vue-data-ui.d.ts +2 -1
- package/dist/{useNestedProp-D1QXXl5v.cjs → useNestedProp-DCfCPrTU.cjs} +1 -1
- package/dist/{useNestedProp-jWaei8o8.js → useNestedProp-WD6Qn-jr.js} +1 -1
- package/dist/{usePrinter-D9AdulyE.cjs → usePrinter-Dv0RMCX1.cjs} +1 -1
- package/dist/{usePrinter-BDx4dDHp.js → usePrinter-FM1PheWO.js} +1 -1
- package/dist/{vue-data-ui-DVsBaIUb.js → vue-data-ui-Byi8FBJM.js} +61 -61
- package/dist/{vue-data-ui-DHxKOYW-.cjs → vue-data-ui-CDVMMv3d.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-ConzsB93.js → vue-ui-3d-bar-CZJ6Zo23.js} +9 -9
- package/dist/{vue-ui-3d-bar-Cz46fEZ0.cjs → vue-ui-3d-bar-DJUNcjtc.cjs} +1 -1
- package/dist/{vue-ui-accordion-CrDhNoyv.js → vue-ui-accordion-BckkmphN.js} +3 -3
- package/dist/{vue-ui-accordion-BMLckzAQ.cjs → vue-ui-accordion-BfFg-sVJ.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DS4QeJhs.js → vue-ui-age-pyramid-DgGMb_Xp.js} +10 -10
- package/dist/{vue-ui-age-pyramid-CDADFGzK.cjs → vue-ui-age-pyramid-DunUSOpu.cjs} +1 -1
- package/dist/{vue-ui-annotator-RGa73O7h.cjs → vue-ui-annotator-B3G-FQLy.cjs} +1 -1
- package/dist/{vue-ui-annotator-Bfc_tJu5.js → vue-ui-annotator-B_MQz1AA.js} +1 -1
- package/dist/{vue-ui-bullet-lJ7H217l.cjs → vue-ui-bullet-8Kk3qeH_.cjs} +1 -1
- package/dist/{vue-ui-bullet-B8lNyqBU.js → vue-ui-bullet-DYpgP9uL.js} +8 -8
- package/dist/{vue-ui-candlestick-LN1alZy4.cjs → vue-ui-candlestick-BSB_x1u_.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CG3Btn-O.js → vue-ui-candlestick-DnY1Z5sA.js} +11 -11
- package/dist/{vue-ui-carousel-table-BPPE00f_.js → vue-ui-carousel-table-Cd_2r90R.js} +4 -4
- package/dist/{vue-ui-carousel-table-CPGwzLmi.cjs → vue-ui-carousel-table-DNnBKojP.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CDahTtnd.js → vue-ui-chestnut-B1NWviH6.js} +8 -8
- package/dist/{vue-ui-chestnut-Cc84Oypu.cjs → vue-ui-chestnut-WcoV2zl6.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-xNnpqKCg.js → vue-ui-circle-pack-CxxPZDLO.js} +9 -9
- package/dist/{vue-ui-circle-pack-CxueIMwV.cjs → vue-ui-circle-pack-D32Zo62g.cjs} +1 -1
- package/dist/{vue-ui-cursor-C1SnyUxK.cjs → vue-ui-cursor-BNdKosWF.cjs} +1 -1
- package/dist/{vue-ui-cursor-CglUvQEj.js → vue-ui-cursor-Df3A3tId.js} +2 -2
- package/dist/{vue-ui-dashboard-CVuQnChA.js → vue-ui-dashboard-BD3v2yB2.js} +2 -2
- package/dist/{vue-ui-dashboard-BqmoMynd.cjs → vue-ui-dashboard-SRIs3xRd.cjs} +1 -1
- package/dist/{vue-ui-digits-32Kp_eG8.js → vue-ui-digits-6ixh72pY.js} +2 -2
- package/dist/{vue-ui-digits-DCBTsq9c.cjs → vue-ui-digits-DiwdDWIi.cjs} +1 -1
- package/dist/{vue-ui-donut-CsC2XlsB.js → vue-ui-donut-BLrLvjYC.js} +12 -12
- package/dist/{vue-ui-donut-BLx9gvvp.cjs → vue-ui-donut-O_bMKpp0.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BVgSIx_N.cjs → vue-ui-donut-evolution-COqxvgDm.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-CoHKwqOx.js → vue-ui-donut-evolution-DFeCoFLD.js} +11 -11
- package/dist/{vue-ui-dumbbell-BtlUd-Uf.js → vue-ui-dumbbell-BdpORbsw.js} +10 -10
- package/dist/{vue-ui-dumbbell-BFSenYlM.cjs → vue-ui-dumbbell-CnvbgjAc.cjs} +1 -1
- package/dist/{vue-ui-flow-CQfZK1gp.js → vue-ui-flow-Bq5TNf0q.js} +9 -9
- package/dist/{vue-ui-flow-Cmy--LB8.cjs → vue-ui-flow-DZW6HtMG.cjs} +1 -1
- package/dist/{vue-ui-funnel-CuYKPXfV.cjs → vue-ui-funnel-BTs69xlm.cjs} +1 -1
- package/dist/{vue-ui-funnel-ZDkI00Ns.js → vue-ui-funnel-CdTmW2Dv.js} +9 -9
- package/dist/{vue-ui-galaxy-X7w_aTcI.cjs → vue-ui-galaxy-Bks-C0T9.cjs} +1 -1
- package/dist/{vue-ui-galaxy-Dw_3R-md.js → vue-ui-galaxy-Dc38cJm-.js} +11 -11
- package/dist/{vue-ui-gauge-e4FDUuhW.js → vue-ui-gauge-BPe-Wpxa.js} +7 -7
- package/dist/{vue-ui-gauge-1DflQ456.cjs → vue-ui-gauge-BTCMT6kZ.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DX6dnsfI.cjs → vue-ui-gizmo-CUKcPiKM.cjs} +1 -1
- package/dist/{vue-ui-gizmo-B6n0z4F6.js → vue-ui-gizmo-DBnHMb9H.js} +3 -3
- package/dist/{vue-ui-heatmap-Df4bNpxS.cjs → vue-ui-heatmap-BufOxGx7.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DBzP4OF3.js → vue-ui-heatmap-C1YhyvNx.js} +10 -10
- package/dist/{vue-ui-history-plot-XPpTXFdp.cjs → vue-ui-history-plot-DWAkb7b_.cjs} +1 -1
- package/dist/{vue-ui-history-plot-DDrPZ1aW.js → vue-ui-history-plot-oMjKnlp3.js} +11 -11
- package/dist/{vue-ui-kpi-DllQnaM_.js → vue-ui-kpi-BLHpMBxd.js} +3 -3
- package/dist/{vue-ui-kpi-DCnXbmlM.cjs → vue-ui-kpi-ufMTcMPT.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DUUOG16Y.js → vue-ui-mini-loader-BLsy0k_A.js} +2 -2
- package/dist/{vue-ui-mini-loader-CAksZ5CW.cjs → vue-ui-mini-loader-T1GcVUKb.cjs} +1 -1
- package/dist/{vue-ui-molecule-DyQHaYZM.cjs → vue-ui-molecule-B3GExfFV.cjs} +1 -1
- package/dist/{vue-ui-molecule-CNT6Iqi5.js → vue-ui-molecule-BnCvFuus.js} +10 -10
- package/dist/{vue-ui-mood-radar-j9nneyUO.cjs → vue-ui-mood-radar-Cxt_fhUy.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CprLBHpU.js → vue-ui-mood-radar-Yso-s4of.js} +11 -11
- package/dist/{vue-ui-nested-donuts-Cg1p47uP.cjs → vue-ui-nested-donuts-BBzhXq6P.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CF-jSyUa.js → vue-ui-nested-donuts-BfRWRgkw.js} +11 -11
- package/dist/{vue-ui-onion-lAop0oO0.js → vue-ui-onion-Dt4TWe6t.js} +11 -11
- package/dist/{vue-ui-onion-CGvPHton.cjs → vue-ui-onion-OEnDmiOB.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CF1Dt-34.cjs → vue-ui-parallel-coordinate-plot-BnAAzLae.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-vM7BVVi0.js → vue-ui-parallel-coordinate-plot-DGLh0ael.js} +12 -12
- package/dist/{vue-ui-quadrant-Te6mWq8u.cjs → vue-ui-quadrant-B6E6v1xG.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DlAbj_j6.js → vue-ui-quadrant-nHh7YqG6.js} +12 -12
- package/dist/{vue-ui-quick-chart-CJ69T4A5.cjs → vue-ui-quick-chart-Dr20RPOf.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CIFSsg2O.js → vue-ui-quick-chart-SGvhac9d.js} +9 -9
- package/dist/{vue-ui-radar-Bpw4Ol7S.cjs → vue-ui-radar-BRtf9Ps5.cjs} +1 -1
- package/dist/{vue-ui-radar-DJJEwaWW.js → vue-ui-radar-CcdphM-O.js} +12 -12
- package/dist/{vue-ui-rating-BWQ3gtDw.js → vue-ui-rating-DRlCBElN.js} +2 -2
- package/dist/{vue-ui-rating-CEOcHUR1.cjs → vue-ui-rating-DgwurE4x.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-EAC-_4KL.cjs → vue-ui-relation-circle-B4TErNPT.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-hTF7gfQf.js → vue-ui-relation-circle-g1JlL2f2.js} +7 -7
- package/dist/{vue-ui-rings-BHhzJO6R.js → vue-ui-rings-BM9uYCUU.js} +12 -12
- package/dist/{vue-ui-rings-nshYhfg6.cjs → vue-ui-rings-CBeL3HIa.cjs} +1 -1
- package/dist/{vue-ui-scatter-B05oU03T.js → vue-ui-scatter-DT_QBIeo.js} +12 -12
- package/dist/{vue-ui-scatter-mkaSgzbX.cjs → vue-ui-scatter-gkSm6cYR.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BkHsxMBx.cjs → vue-ui-screenshot-2leQxim8.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DcYLymGX.js → vue-ui-screenshot-DGbuK-RT.js} +1 -1
- package/dist/{vue-ui-skeleton-Db5GDVLW.js → vue-ui-skeleton-BTfzoolB.js} +3 -3
- package/dist/{vue-ui-skeleton-C_vRaZhI.cjs → vue-ui-skeleton-FXF7pMM8.cjs} +1 -1
- package/dist/{vue-ui-smiley-C5grOPd7.cjs → vue-ui-smiley-Dijs1HRf.cjs} +1 -1
- package/dist/{vue-ui-smiley-BVsPtDbp.js → vue-ui-smiley-rwgYU3A2.js} +2 -2
- package/dist/{vue-ui-spark-trend-DVMI0hHl.js → vue-ui-spark-trend-Cj0B6A_8.js} +5 -5
- package/dist/{vue-ui-spark-trend-BhJUXEbd.cjs → vue-ui-spark-trend-D62Z0XyP.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BP4Klcwq.js → vue-ui-sparkbar-B3R7uA_h.js} +4 -4
- package/dist/{vue-ui-sparkbar-CchD9Z0i.cjs → vue-ui-sparkbar-BB_OXsVx.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Bh40wvEN.js → vue-ui-sparkgauge-20iVOcBv.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Cc544Aj9.cjs → vue-ui-sparkgauge-CV3MRct2.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-2aQdqbS-.cjs → vue-ui-sparkhistogram-ASA1Izuq.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-B27-9RmD.js → vue-ui-sparkhistogram-C8WGWsjQ.js} +5 -5
- package/dist/{vue-ui-sparkline-C4z4BgdB.js → vue-ui-sparkline-C4MRWUBA.js} +4 -4
- package/dist/{vue-ui-sparkline-DcjnRMCm.cjs → vue-ui-sparkline-jX03CtPG.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BGV781nw.cjs → vue-ui-sparkstackbar-BcCB8Id3.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BfD-pJWc.js → vue-ui-sparkstackbar-C6jgtbtu.js} +5 -5
- package/dist/{vue-ui-stackbar-Dj_h3XUr.cjs → vue-ui-stackbar-CVS_1WMe.cjs} +1 -1
- package/dist/{vue-ui-stackbar-fMdRSsVo.js → vue-ui-stackbar-CkEnBXay.js} +13 -13
- package/dist/{vue-ui-strip-plot-D2geizj0.cjs → vue-ui-strip-plot-DBabY03i.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DMmf9d_H.js → vue-ui-strip-plot-ES7BwMoF.js} +11 -11
- package/dist/{vue-ui-table-CcKldUI9.js → vue-ui-table-CCwzUTnA.js} +1 -1
- package/dist/{vue-ui-table-GdqtmrDJ.cjs → vue-ui-table-Cf1g82vY.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-B1IFStem.cjs → vue-ui-table-heatmap-CyHzz9rv.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-B82viIhG.js → vue-ui-table-heatmap-DtzKVrpK.js} +4 -4
- package/dist/{vue-ui-table-sparkline-Bm_vy6Lk.js → vue-ui-table-sparkline-95pS3pBt.js} +5 -5
- package/dist/{vue-ui-table-sparkline-qY93ZgAb.cjs → vue-ui-table-sparkline-CLAybURJ.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BCV4os_6.js → vue-ui-thermometer-BQTWXeqU.js} +7 -7
- package/dist/{vue-ui-thermometer-D6YPh58k.cjs → vue-ui-thermometer-Cm_KBNVZ.cjs} +1 -1
- package/dist/{vue-ui-timer-C6tuiP54.cjs → vue-ui-timer-B0D_sZmm.cjs} +1 -1
- package/dist/{vue-ui-timer-BH4RyRGU.js → vue-ui-timer-tLNMbgLM.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dt_VsUOM.cjs → vue-ui-tiremarks-CWIZflLH.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-Dp3x0P0N.js → vue-ui-tiremarks-nIj267dw.js} +7 -7
- package/dist/vue-ui-treemap-DRDVV_Da.cjs +1 -0
- package/dist/{vue-ui-treemap-BHdWvB2b.js → vue-ui-treemap-Js5dG3BL.js} +218 -207
- package/dist/{vue-ui-vertical-bar-C52t8maW.js → vue-ui-vertical-bar-NCB7yZQF.js} +12 -12
- package/dist/{vue-ui-vertical-bar-BCt5jXfW.cjs → vue-ui-vertical-bar-fh2mIy4s.cjs} +1 -1
- package/dist/{vue-ui-waffle-CZcsqZNd.cjs → vue-ui-waffle-BTz72Vui.cjs} +1 -1
- package/dist/{vue-ui-waffle-C-KQIRg5.js → vue-ui-waffle-C70QQeU2.js} +12 -12
- package/dist/{vue-ui-wheel-CIIaCb2O.js → vue-ui-wheel-BKAEI3lz.js} +7 -7
- package/dist/{vue-ui-wheel-CQAT1WY8.cjs → vue-ui-wheel-C9DYeu9D.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-BTH_Iu4E.cjs → vue-ui-word-cloud-BgxihpLV.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CgC7nBrO.js → vue-ui-word-cloud-ChIuYeMe.js} +10 -10
- package/dist/{vue-ui-xy-BSlyU66u.cjs → vue-ui-xy-BSKwWGbp.cjs} +1 -1
- package/dist/{vue-ui-xy-XERn_sPB.js → vue-ui-xy-DHgnF-1N.js} +14 -14
- package/dist/{vue-ui-xy-canvas-DDmWzosq.cjs → vue-ui-xy-canvas-BstJgVjY.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DogYqOaq.js → vue-ui-xy-canvas-xQvriWI0.js} +12 -12
- package/package.json +1 -1
- package/dist/PackageVersion-KqTLourS.cjs +0 -1
- package/dist/vue-ui-treemap-CjFIqX2j.cjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-CFpKg6bb.cjs"),Fe=require("./Title-B5DeSNYN.cjs"),xe=require("./usePrinter-D9AdulyE.cjs"),Ie=require("./Tooltip-BfRrUigu.cjs"),De=require("./Legend-CAcWDl5L.cjs"),qe=require("./vue-ui-skeleton-C_vRaZhI.cjs"),Me=require("./DataTable-CWmGoVel.cjs"),He=require("./vue-ui-accordion-BMLckzAQ.cjs"),Te=require("./useResponsive-N8jl0-aC.cjs"),Se=require("./useNestedProp-D1QXXl5v.cjs"),Ue=require("./PackageVersion-KqTLourS.cjs"),We=require("./PenAndPaper-Bhj2KfFw.cjs"),Ge=require("./useUserOptionState-BgepsfED.cjs"),je=require("./useChartAccessibility-Cm7nkzTG.cjs"),Xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function $e(r,c){const i=r.length;if(i===0)throw new Error(`Max aspect ratio cannot be computed: ${r} is an empty array`);{let d=1/0,u=-1/0,v=0;for(let p=0;p<i;p+=1){const f=r[p].normalizedValue;f<d&&(d=f),f>u&&(u=f),v+=f}return Math.max(c**2*u/v**2,v**2/(c**2*d))}}function Be(r){const{xOffset:c,yOffset:i,width:d,height:u}=r;return{x0:c,y0:i,x1:c+d,y1:i+u}}function Ye(r,c,i){if(r.length===0)return!0;{const d=r.concat(c),u=$e(r,i),v=$e(d,i);return u>=v}}function Ze(r){const c=[],i=r.length;for(let d=0;d<i;d+=1){const u=r[d],v=u.length;for(let h=0;h<v;h+=1)c.push(u[h])}return c}function Je(r,c){const i={...c,children:r};return Oe(i)}function Ke(r){return(r.x1-r.x0)*(r.y1-r.y0)}function Ne(r,c){const{width:i,height:d,xOffset:u,yOffset:v}=J(c),h=r.length,p=r.map(y=>y.normalizedValue||0).reduce((y,g)=>y+g,0),f=p/d,x=p/i;let C=u,T=v;const b=[];if(i>=d){for(let y=0;y<h;y+=1){const g=r[y],k=T+g.normalizedValue/f,O={x0:C,y0:T,x1:C+f,y1:k},S=Object.assign({},g,O);T=k,b.push(S)}return b}else{for(let y=0;y<h;y+=1){const g=r[y],k=C+g.normalizedValue/x,O={x0:C,y0:T,x1:k,y1:T+x},S=Object.assign({},g,O);C=k,b.push(S)}return b}}function Qe(r){const c=J(r),i=c.width,d=c.height;return Math.min(i,d)}function et(r,c){const i=r.length,d=r.map(f=>f.value??0).reduce((f,x)=>f+x,0),u=c/d,v=[];let h,p;for(let f=0;f<i;f+=1)p=r[f],h=Object.assign({},p,{normalizedValue:p.value*(u||0)}),v.push(h);return v}function J(r){const{x0:c,y0:i,x1:d,y1:u}=r;return{xOffset:c,yOffset:i,width:d-c,height:u-i}}function tt(r,c,i,d){let u=r,v=c,h=i,p=d;for(;;){const f=u.length;if(f===0){const b=Ne(v,h);return p.concat(b)}const x=Qe(h),C=u[0],T=u.slice(1,f);if(Ye(v,C,x)){const b=v.concat(C);u=T,v=b,h=h,p=p}else{const b=v.length;let y=0;for(let S=0;S<b;S+=1)y+=v[S].normalizedValue;const g=ot(h,y),k=Ne(v,h),O=p.concat(k);u=u,v=[],h=g,p=O}}}function Oe(r){if(typeof r.children>"u"||!r.children.length)return[r];{const c=et(r.children,Ke(r)),i=tt(c,[],r,[]),d=i.length,u=[];for(let h=0;h<d;h+=1)u.push(Oe(i[h]));return Ze(u)}}function ot(r,c){const{width:i,height:d,xOffset:u,yOffset:v}=J(r);if(i>=d){const h=c/d,p=i-h,f={xOffset:u+h,yOffset:v,width:p,height:d};return Be(f)}else{const h=c/i,p=d-h,f={xOffset:u,yOffset:v+h,width:i,height:p};return Be(f)}}const lt=["id"],at={key:4,class:"vue-ui-treemap-breadcrumbs","data-html2canvas-ignore":""},nt=["onClick","data-last-crumb"],rt={class:"vue-ui-treemap-crumb-unit"},st={class:"vue-ui-treemap-crumb-unit-label"},ut={key:0,class:"vue-ui-treemap-crumb-unit-arrow"},it=["xmlns","viewBox"],ct={key:0},dt=["id"],vt=["stop-color"],ht=["stop-color"],pt=["x","y","height","width","fill","rx","stroke","stroke-width","onClick","onMouseenter"],ft=["x","y","height","width"],mt={style:{width:"100%",height:"100%"},class:"vue-ui-treemap-cell"},gt={key:6,class:"vue-data-ui-watermark"},yt=["onClick"],bt={key:0},kt={key:1},Ct=["innerHTML"],wt={__name:"vue-ui-treemap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(r,{expose:c,emit:i}){const{vue_ui_treemap:d}=s.useConfig(),u=r,v=i,h=e.useSlots();e.onMounted(()=>{h["chart-background"]&&console.warn("VueUiTreemap does not support the #chart-background slot.")});const p=e.computed(()=>!!u.dataset&&u.dataset.length),f=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),x=e.ref(s.createUid()),C=e.ref(!1),T=e.ref(""),b=e.ref(!1),y=e.ref(0),g=e.ref([]),k=e.ref(null),O=e.ref(null),S=e.ref(null),K=e.ref(null),Q=e.ref(null),ee=e.ref(0),te=e.ref(0),oe=e.ref(0),t=e.computed({get:()=>re(),set:o=>o}),{userOptionsVisible:X,setUserOptionsVisibility:le,keepUserOptionState:ae}=Ge.useUserOptionState({config:t.value}),{svgRef:ne}=je.useChartAccessibility({config:t.value.style.chart.title});function re(){const o=Se.useNestedProp({userConfig:u.config,defaultConfig:d});return o.theme?{...Se.useNestedProp({userConfig:s.themes.vue_ui_treemap[o.theme]||u.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>u.config,o=>{t.value=re(),X.value=!t.value.userOptions.showOnChartHover,ee.value+=1,te.value+=1,oe.value+=1,$.value.showTable=t.value.table.show,$.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const{isPrinting:se,isImaging:ue,generatePdf:ie,generateImage:ce}=xe.usePrinter({elementId:`treemap_${x.value}`,fileName:t.value.style.chart.title.text||"vue-ui-treemap",options:t.value.userOptions.print}),Pe=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),H=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),$=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),P=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width}),z=e.computed(()=>({bottom:P.value.height-t.value.style.chart.padding.bottom,height:P.value.height-t.value.style.chart.padding.top-t.value.style.chart.padding.bottom,left:t.value.style.chart.padding.left,right:P.value.width-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,vbHeight:P.value.height,vbWidth:P.value.width,width:P.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right}));function de(o){o.forEach((a,l)=>{a.id=s.createUid(),a.color=s.convertColorToHex(a.color)||H.value[l]||s.palette[l]||s.palette[l%s.palette.length],a.children&&(a.children.forEach(n=>{n.parentId=a.id,n.color=a.color}),de(a.children))})}const _=e.ref(u.dataset),U=e.ref(null);e.onMounted(()=>{_e()});function _e(){if(s.objectIsEmpty(u.dataset)&&s.error({componentName:"VueUiTreemap",type:"dataset"}),de(_.value),t.value.responsive){const o=Te.throttle(()=>{const{width:a,height:l}=Te.useResponsive({chart:k.value,title:t.value.style.chart.title.text?O.value:null,legend:t.value.style.chart.legend.show?S.value:null,source:K.value,noTitle:Q.value});requestAnimationFrame(()=>{P.value.width=a,P.value.height=l})});U.value=new ResizeObserver(o),U.value.observe(k.value.parentNode)}}e.onBeforeUnmount(()=>{U.value&&U.value.disconnect()});const A=e.ref(_.value),D=e.computed(()=>A.value.map((o,a)=>({...o,color:s.convertColorToHex(o.color)||H.value[a]||s.palette[a]||s.palette[a%s.palette.length]})).filter(o=>!g.value.includes(o.id))),L=e.computed(()=>_.value.filter(o=>!g.value.includes(o.id)).map(o=>o.value||0).reduce((o,a)=>o+a,0)),ve=e.computed({get(){let o=[...D.value];return t.value.style.chart.layout.sorted&&(o=[...D.value].sort((a,l)=>l.value-a.value)),o.map(a=>({...a}))},set(o){return o}});function he(o,a){return o.value/a}function Ve(o,a,l){const n=t.value.style.chart.layout.rects.colorRatio-he(a,l);return s.lightenHexColor(o,n<0?0:n)}function pe(o,a,l,n){return o.map((m,V)=>{const j=Ve(s.convertColorToHex(a)||H.value[V]||s.palette[V]||s.palette[V%s.palette.length],m,n),Le=he(m,n);return{...m,color:j,proportion:Le,parentName:l,children:m.children?pe(m.children,j,m.name,n):void 0}})}const q=e.computed(()=>Je(ve.value.map((o,a)=>{const l=o.children?o.children.reduce((n,m)=>n+m.value,0):o.value;return{value:o.value,id:o.id,children:o.children?pe(o.children.sort((n,m)=>m.value-n.value),o.color,o.name,l):void 0,color:o.color,name:o.name}}),{x0:z.value.left*2,y0:z.value.top,x1:z.value.width,y1:z.value.height}));function fe({y0:o,y1:a}){return a-o<=0?1e-4:a-o}function me({x0:o,x1:a}){return a-o<=0?1e-4:a-o}function E(o){const a=t.value.style.chart.layout.labels.fontSize*(o.proportion*2>1?1:o.proportion*2);return a<t.value.style.chart.layout.labels.minFontSize?t.value.style.chart.layout.labels.minFontSize:a}function ze(o){b.value=o,y.value+=1}const F=e.computed(()=>({startX:0,startY:0,width:z.value.vbWidth,height:z.value.vbHeight}));function I(o,a=_.value){for(const l of a){if(l.id===o)return l;if(l.children){const n=I(o,l.children);if(n)return n}}return null}const w=e.ref([]),R=e.computed(()=>w.value.length>0);function ge(o){var l;if(!o){A.value=_.value.slice(),v("selectDatapoint",void 0),w.value=[];return}const a=I(o.id);if(a&&((l=a.children)!=null&&l.length))w.value.push(a.id),A.value=a.children.slice(),v("selectDatapoint",o);else if(o.parentId){w.value.push(o.parentId);const n=I(o.parentId);A.value=n.children.slice(),v("selectDatapoint",o)}else if(w.value.length>0){w.value.pop();const n=w.value[w.value.length-1];if(n){const m=I(n);A.value=m.children.slice()}else A.value=_.value.slice(),w.value=[],v("selectDatapoint",void 0)}}const M=e.computed(()=>{const o=[{id:null,label:"All"}];if(w.value.length>0){let a=I(w.value[w.value.length-1]);const l=[];for(;a;)l.unshift(a),a=a.parentId?I(a.parentId):null;for(const n of l)o.push({id:n.id,label:n.name,node:n})}return o}),B=e.ref(null),ye=e.computed(()=>_.value.map((o,a)=>({...o,color:s.convertColorToHex(o.color)||H.value[a]||s.palette[a]||s.palette[a%s.palette.length],shape:"square"})).sort((o,a)=>a.value-o.value).map((o,a)=>({...o,proportion:o.value/_.value.map(l=>l.value).reduce((l,n)=>l+n,0),opacity:g.value.includes(o.id)?.5:1}))),Ee=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 be(o){R.value=!1,B.value=null,g.value.includes(o.id)?g.value=g.value.filter(a=>a!==o.id):g.value.length<u.dataset.length-1&&g.value.push(o.id),v("selectLegend",ve.value)}const Y=e.ref(null);function Re({datapoint:o,seriesIndex:a}){B.value=o,Y.value={datapoint:o,seriesIndex:a,config:t.value,series:D.value};const l=t.value.style.chart.tooltip.customFormat;if(s.isFunction(l)&&s.functionReturnsString(()=>l({seriesIndex:a,datapoint:o,series:D.value,config:t.value})))T.value=l({seriesIndex:a,datapoint:o,series:D.value,config:t.value});else{let n="";n+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,n+=`<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="${o.color}"/></svg>`,n+=`<b>${s.applyDataLabel(t.value.style.chart.layout.labels.formatter,o.value,s.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.tooltip.roundingValue}),{datapoint:o,seriesIndex:a})}</b>`,T.value=`<div>${n}</div>`}C.value=!0}const N=e.computed(()=>{const o=q.value.map(l=>({name:l.name,color:l.color})),a=q.value.map(l=>l.value);return{head:o,body:a}});function ke(){e.nextTick(()=>{const o=N.value.head.map((n,m)=>[[n.name],[N.value.body[m]],[isNaN(N.value.body[m]/L.value)?"-":N.value.body[m]/L.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=s.createCsvContent(a);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-treemap"})})}const W=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],a=N.value.head.map((m,V)=>{const j=s.applyDataLabel(t.value.style.chart.layout.labels.formatter,N.value.body[V],s.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:N.value.body[V],s:t.value.style.chart.layout.labels.suffix,r:t.value.table.td.roundingValue}));return[{color:m.color,name:m.name,shape:"square"},j,isNaN(N.value.body[V]/L.value)?"-":s.dataLabel({v:N.value.body[V]/L.value*100,s:"%",r:t.value.table.td.roundingPercentage})]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}});function Ae(){return q.value}function Ce(){$.value.showTable=!$.value.showTable}function we(){$.value.showTooltip=!$.value.showTooltip}const G=e.ref(!1);function Z(){G.value=!G.value}return c({getData:Ae,generateCsv:ke,generateImage:ce,generatePdf:ie,toggleTable:Ce,toggleTooltip:we,toggleAnnotator:Z}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"treemapChart",ref:k,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;background:${t.value.style.chart.backgroundColor}`),id:`treemap_${x.value}`,onMouseenter:a[3]||(a[3]=()=>e.unref(le)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(le)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(We.PenAndPaper,{key:0,svgRef:e.unref(ne),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:G.value,onClose:Z},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),Pe.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:Q,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:O,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)},[(e.openBlock(),e.createBlock(Fe._sfc_main,{key:`title_${ee.value}`,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&&p.value&&(e.unref(ae)||e.unref(X))?(e.openBlock(),e.createBlock(xe.UserOptions,{ref:"details",key:`user_option_${y.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(se),isImaging:e.unref(ue),uid:x.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:$.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:G.value,onToggleFullscreen:ze,onGeneratePdf:e.unref(ie),onGenerateCsv:ke,onGenerateImage:e.unref(ce),onToggleTable:Ce,onToggleTooltip:we,onToggleAnnotator:Z,style:e.normalizeStyle({visibility:e.unref(ae)?e.unref(X)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:n})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:n})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:n})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:n})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),M.value.length>1?(e.openBlock(),e.createElementBlock("nav",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(l,n)=>(e.openBlock(),e.createElementBlock("span",{key:l.id||"root",onClick:m=>n===M.value.length-1?()=>{}:ge(l.node),class:"vue-ui-treemap-crumb","data-last-crumb":n===M.value.length-1,style:e.normalizeStyle({color:t.value.style.chart.color})},[e.createElementVNode("span",rt,[e.createElementVNode("span",st,[e.renderSlot(o.$slots,"breadcrumb-label",e.mergeProps({ref_for:!0},{crumb:l}),()=>[e.createTextVNode(e.toDisplayString(l.label),1)],!0)]),n<M.value.length-1?(e.openBlock(),e.createElementBlock("span",ut,[e.renderSlot(o.$slots,"breadcrumb-arrow",{},()=>[a[5]||(a[5]=e.createTextVNode(" › "))],!0)])):e.createCommentVNode("",!0)])],12,nt))),128))])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:5,ref_key:"svgRef",ref:ne,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value,"vue-data-ui-zoom-plus":!R.value,"vue-data-ui-zoom-minus":R.value}),viewBox:`${F.value.startX} ${F.value.startY} ${F.value.width<=0?10:F.value.width} ${F.value.height<=0?10:F.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ue._sfc_main),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.rects.gradient.show?(e.openBlock(),e.createElementBlock("defs",ct,[e.createElementVNode("radialGradient",{id:`tgrad_${l.id}`,gradientTransform:"translate(-1, -1.000001) scale(2, 2)"},[e.createElementVNode("stop",{offset:"18%","stop-color":l.color},null,8,vt),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.lightenHexColor)(l.color,t.value.style.chart.layout.rects.gradient.intensity/100)},null,8,ht)],8,dt)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:l.x0,y:l.y0,height:fe(l),width:me(l),fill:f.value?l.color:t.value.style.chart.layout.rects.gradient.show?`url(#tgrad_${l.id})`:l.color,rx:t.value.style.chart.layout.rects.borderRadius,stroke:B.value&&B.value.id===l.id?t.value.style.chart.layout.rects.selected.stroke:t.value.style.chart.layout.rects.stroke,"stroke-width":B.value&&B.value.id===l.id?t.value.style.chart.layout.rects.selected.strokeWidth:t.value.style.chart.layout.rects.strokeWidth,onClick:e.withModifiers(m=>ge(l),["stop"]),onMouseenter:()=>Re({datapoint:l,seriesIndex:n}),onMouseleave:a[0]||(a[0]=m=>{B.value=null,C.value=!1}),style:e.normalizeStyle(`opacity:${B.value?B.value.id===l.id?1:t.value.style.chart.layout.rects.selected.unselectedOpacity:1}`),class:"vue-ui-treemap-rect"},null,44,pt),(e.openBlock(),e.createElementBlock("foreignObject",{x:l.x0,y:l.y0,height:fe(l),width:me(l),class:"vue-ui-treemap-cell-foreignObject"},[e.createElementVNode("div",mt,[t.value.style.chart.layout.labels.showDefaultLabels&&(l.proportion>t.value.style.chart.layout.labels.hideUnderProportion||R.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-treemap-cell-default",style:e.normalizeStyle(`width:calc(100% - ${E(l)/1.5}px);text-align:left;line-height:${E(l)<14?14:E(l)}px;padding:${E(l)/3}px; color:${e.unref(s.adaptColorToBackground)(l.color)}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${E(l)}px;`)},e.toDisplayString(l.name),5),a[6]||(a[6]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${E(l)}px;`)},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.labels.formatter,l.value,e.unref(s.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.layout.labels.rounding}),{datapoint:l})),5)],4)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"rect",e.mergeProps({ref_for:!0},{rect:l,shouldShow:l.proportion>t.value.style.chart.layout.labels.hideUnderProportion||R.value,fontSize:E(l),isZoom:R.value,textColor:e.unref(s.adaptColorToBackground)(l.color)}),void 0,!0)])],8,ft))]))),256)),e.renderSlot(o.$slots,"svg",e.normalizeProps(e.guardReactiveProps({svg:z.value,isZoom:R.value,rect:B.value,config:t.value})),void 0,!0)],14,it)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",gt,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(se)||e.unref(ue)})),void 0,!0)])):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(qe.default,{key:7,config:{type:"treemap",style:{backgroundColor:t.value.style.chart.backgroundColor,treemap:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:S},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(De.Legend,{key:`legend_${oe.value}`,legendSet:ye.value,config:Ee.value,id:`treemap_legend_${x.value}`,onClickMarker:a[1]||(a[1]=({legend:l})=>be(l))},{item:e.withCtx(({legend:l,index:n})=>[e.createElementVNode("div",{onClick:m=>be(l),style:e.normalizeStyle(`opacity:${g.value.includes(l.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.labels.formatter,l.value,e.unref(s.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.legend.roundingValue}),{datapoint:l}))+" ",1),g.value.includes(l.id)?(e.openBlock(),e.createElementBlock("span",kt," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",bt," ("+e.toDisplayString(isNaN(l.value/L.value)?"-":(l.value/L.value*100).toFixed(t.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,yt)]),_:1},8,["legendSet","config","id"])):e.renderSlot(o.$slots,"legend",{key:1,legend:ye.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:8,ref_key:"source",ref:K,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Ie._sfc_main,{show:$.value.showTooltip&&C.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:k.value,content:T.value,isFullscreen:b.value,isCustom:e.unref(s.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),p.value?(e.openBlock(),e.createBlock(He.default,{key:9,hideDetails:"",config:{open:$.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Me.DataTable,{key:`table_${te.value}`,colNames:W.value.colNames,head:W.value.head,body:W.value.body,config:W.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>$.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Ct)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,lt))}},xt=Xe._export_sfc(wt,[["__scopeId","data-v-2bcbaa56"]]);exports.default=xt;
|