vue-data-ui 2.3.72 → 2.3.74
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-CC7jRg59.js → Arrow-CYCrAySW.js} +1 -1
- package/dist/{Arrow-ZIElM1Qw.cjs → Arrow-DK6F5Fq3.cjs} +1 -1
- package/dist/{BaseIcon-CBTIJ_i3.cjs → BaseIcon-DBHVtm3A.cjs} +1 -1
- package/dist/{BaseIcon-CPk98Gv1.js → BaseIcon-kBIAYqUO.js} +1 -1
- package/dist/{DataTable-03mHwPdu.cjs → DataTable-BNFSPjhv.cjs} +1 -1
- package/dist/{DataTable-B9bLH4Tw.js → DataTable-CKdV-L0e.js} +2 -2
- package/dist/{Legend-VJiB_MLq.js → Legend-Cj7T-DqJ.js} +1 -1
- package/dist/{Legend-rxEBmJRW.cjs → Legend-Do2kcWFT.cjs} +1 -1
- package/dist/{Shape-D95l9PFa.js → Shape-Bo8ZjViG.js} +1 -1
- package/dist/{Shape-DGhwVgQc.cjs → Shape-DRDUAe_o.cjs} +1 -1
- package/dist/{Slicer-DBgvUVRS.js → Slicer-4nGKvUYF.js} +2 -2
- package/dist/{Slicer-DUMKJ_f0.cjs → Slicer-D8jHSP7U.cjs} +1 -1
- package/dist/{Title-Du743m6e.cjs → Title-D5cATWsL.cjs} +1 -1
- package/dist/{Title-B_AI8tEZ.js → Title-DZjnxQdN.js} +1 -1
- package/dist/{Tooltip-CPewpyRa.js → Tooltip--kgFEVZs.js} +1 -1
- package/dist/{Tooltip-B_WP5J9X.cjs → Tooltip-B8yLaegk.cjs} +1 -1
- package/dist/{index-BYuu8ZDR.js → index-C8SH0f2u.js} +1 -1
- package/dist/{index-Cuc8JBQE.cjs → index-D_32ZGWd.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-DZwVoxS3.cjs → useNestedProp-BvvH633N.cjs} +1 -1
- package/dist/{useNestedProp-DdJ6Grxg.js → useNestedProp-lS_T5lM3.js} +1 -1
- package/dist/{usePrinter-BaExNQdD.cjs → usePrinter-BouFNHWR.cjs} +1 -1
- package/dist/{usePrinter-DqIk1aRq.js → usePrinter-Dj50NAxo.js} +1 -1
- package/dist/{vue-data-ui-C-epWCMP.js → vue-data-ui-DoXqU7xC.js} +57 -57
- package/dist/{vue-data-ui-CUctczUX.cjs → vue-data-ui-v_BbbLtJ.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-BWgmK5sr.js → vue-ui-3d-bar-CnoPOJHm.js} +7 -7
- package/dist/{vue-ui-3d-bar-xEpa156l.cjs → vue-ui-3d-bar-CwCEoPX-.cjs} +1 -1
- package/dist/{vue-ui-accordion-CX_qmhfk.cjs → vue-ui-accordion-Cka6b_Up.cjs} +1 -1
- package/dist/{vue-ui-accordion-CW9p_36e.js → vue-ui-accordion-YHleIgkV.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C2anlrIJ.js → vue-ui-age-pyramid-CENg8fDg.js} +8 -8
- package/dist/{vue-ui-age-pyramid-DgdE2kzJ.cjs → vue-ui-age-pyramid-GqCNpd_h.cjs} +1 -1
- package/dist/{vue-ui-annotator-DBsLmFva.cjs → vue-ui-annotator-ByYg6QMs.cjs} +1 -1
- package/dist/{vue-ui-annotator-BsFyYQmg.js → vue-ui-annotator-VJOLUkqJ.js} +1 -1
- package/dist/{vue-ui-candlestick-BvObxrrO.js → vue-ui-candlestick-CHsGD3bx.js} +9 -9
- package/dist/{vue-ui-candlestick-CuAxLf7q.cjs → vue-ui-candlestick-TdNVq_FX.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-D7VggXPa.js → vue-ui-carousel-table-RAtX3VBu.js} +4 -4
- package/dist/{vue-ui-carousel-table-B8uXpuho.cjs → vue-ui-carousel-table-yXUSFk2u.cjs} +1 -1
- package/dist/{vue-ui-chestnut-WVNJAAhE.js → vue-ui-chestnut-B5GQX0J_.js} +6 -6
- package/dist/{vue-ui-chestnut-DsDFUMa1.cjs → vue-ui-chestnut-EJj-dQSY.cjs} +1 -1
- package/dist/{vue-ui-cursor-BHDKuzwQ.js → vue-ui-cursor-CMm7XSSG.js} +2 -2
- package/dist/{vue-ui-cursor-Dv2x-leV.cjs → vue-ui-cursor-DnZqLj21.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B7UJ5m3e.js → vue-ui-dashboard-Ck_5L3eu.js} +2 -2
- package/dist/{vue-ui-dashboard-CW2crD7k.cjs → vue-ui-dashboard-DgEQJnLr.cjs} +1 -1
- package/dist/{vue-ui-digits-S4d-vjPw.js → vue-ui-digits--ULH35um.js} +2 -2
- package/dist/{vue-ui-digits-DgAV9vHK.cjs → vue-ui-digits-UvwUdi6U.cjs} +1 -1
- package/dist/{vue-ui-donut-CXrbo2vS.cjs → vue-ui-donut-BqUBysA_.cjs} +1 -1
- package/dist/{vue-ui-donut-D-Obra62.js → vue-ui-donut-QQ1fWWvc.js} +9 -9
- package/dist/{vue-ui-donut-evolution-DMN5gqox.cjs → vue-ui-donut-evolution-BXtEnop4.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-CPp91gGc.js → vue-ui-donut-evolution-Cx8kBB_7.js} +9 -9
- package/dist/{vue-ui-dumbbell-B6VqQ1kW.js → vue-ui-dumbbell-BYvwHpU8.js} +8 -8
- package/dist/{vue-ui-dumbbell-C5QNKImY.cjs → vue-ui-dumbbell-CjIh7KTm.cjs} +1 -1
- package/dist/{vue-ui-flow-DxDFmEMo.js → vue-ui-flow-hp0Hpuhn.js} +7 -7
- package/dist/{vue-ui-flow-C265HMf-.cjs → vue-ui-flow-u29zqSQj.cjs} +1 -1
- package/dist/{vue-ui-galaxy-3W5_FamU.js → vue-ui-galaxy-B0L57aec.js} +9 -9
- package/dist/{vue-ui-galaxy-CE6eSTiR.cjs → vue-ui-galaxy-DE1HbBi-.cjs} +1 -1
- package/dist/{vue-ui-gauge-Ct9Pm6Rr.cjs → vue-ui-gauge-B_IZrsfj.cjs} +1 -1
- package/dist/{vue-ui-gauge-i_mEreL4.js → vue-ui-gauge-CPyyn7cL.js} +5 -5
- package/dist/{vue-ui-gizmo-DjKx8zQ3.js → vue-ui-gizmo-D2RfM55X.js} +2 -2
- package/dist/{vue-ui-gizmo-fpcEpQC_.cjs → vue-ui-gizmo-DR4gacOL.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BHVAAWge.js → vue-ui-heatmap-DKM0DH41.js} +8 -8
- package/dist/{vue-ui-heatmap-BJ5WgKkA.cjs → vue-ui-heatmap-DMB_eUpA.cjs} +1 -1
- package/dist/{vue-ui-kpi-3vwX1pb-.js → vue-ui-kpi-BAxAY13T.js} +3 -3
- package/dist/{vue-ui-kpi-BJO4Si4A.cjs → vue-ui-kpi-BD21xshi.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-Bkz8xXIn.cjs → vue-ui-mini-loader-CLP19Txv.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BGNVjrVa.js → vue-ui-mini-loader-MywnWlYI.js} +2 -2
- package/dist/{vue-ui-molecule-Be2hKLP4.cjs → vue-ui-molecule-BNsWckH-.cjs} +1 -1
- package/dist/{vue-ui-molecule-DmcAp7Nw.js → vue-ui-molecule-CLI9iTRE.js} +9 -9
- package/dist/{vue-ui-mood-radar-DkhEq8kd.cjs → vue-ui-mood-radar-BsWE1f8R.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-mzy-m7VP.js → vue-ui-mood-radar-O30wZo9a.js} +9 -9
- package/dist/{vue-ui-nested-donuts-BiCvS_99.cjs → vue-ui-nested-donuts-CYyUtXs2.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CrZglRrG.js → vue-ui-nested-donuts-D8o4TqTt.js} +9 -9
- package/dist/{vue-ui-onion-Cvm8iYyA.cjs → vue-ui-onion-D7TXJu5w.cjs} +1 -1
- package/dist/{vue-ui-onion-BiM0osaA.js → vue-ui-onion-Hmcke6xB.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-CSKNUGrK.cjs → vue-ui-parallel-coordinate-plot-BqZB7xKn.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-B2F5TA1E.js → vue-ui-parallel-coordinate-plot-CyChE3NP.js} +10 -10
- package/dist/{vue-ui-quadrant-BMxBMaop.cjs → vue-ui-quadrant-BPDTvxlT.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DPqbsYX0.js → vue-ui-quadrant-DimTQdAj.js} +10 -10
- package/dist/{vue-ui-quick-chart-CUFDSDf1.cjs → vue-ui-quick-chart-C_-ut0if.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BsF68NGZ.js → vue-ui-quick-chart-DxJvENid.js} +7 -7
- package/dist/{vue-ui-radar-D85U18Fh.cjs → vue-ui-radar-C5Kq19hg.cjs} +1 -1
- package/dist/{vue-ui-radar-CP99GsF6.js → vue-ui-radar-D_FieunT.js} +10 -10
- package/dist/{vue-ui-rating-fCVonNIH.cjs → vue-ui-rating-BHW2Onru.cjs} +1 -1
- package/dist/{vue-ui-rating-D2_B2CmO.js → vue-ui-rating-DF1BpH4E.js} +2 -2
- package/dist/{vue-ui-relation-circle-CCw0p9C1.js → vue-ui-relation-circle-4kIYttRI.js} +5 -5
- package/dist/{vue-ui-relation-circle-BwhjRfE-.cjs → vue-ui-relation-circle-DHMHHsqY.cjs} +1 -1
- package/dist/{vue-ui-rings-Cyb2-Fz9.cjs → vue-ui-rings-BqPS8NKl.cjs} +1 -1
- package/dist/{vue-ui-rings-CP9xh0Jf.js → vue-ui-rings-BqS-iece.js} +9 -9
- package/dist/{vue-ui-scatter-C_7m-HWT.cjs → vue-ui-scatter-BLVcdf3d.cjs} +1 -1
- package/dist/{vue-ui-scatter-DahRqX0n.js → vue-ui-scatter-Dns49Nht.js} +10 -10
- package/dist/{vue-ui-screenshot-kjxK6cGN.cjs → vue-ui-screenshot---q062Kd.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Bz8ypntU.js → vue-ui-screenshot-5Gsnd0Wr.js} +1 -1
- package/dist/{vue-ui-skeleton-DY6dv9ms.js → vue-ui-skeleton-B4eWLjH3.js} +2 -2
- package/dist/{vue-ui-skeleton-DBlDHYe3.cjs → vue-ui-skeleton-fVPw-oIR.cjs} +1 -1
- package/dist/{vue-ui-smiley-QjSvhCpm.js → vue-ui-smiley-B8Tyunn3.js} +2 -2
- package/dist/{vue-ui-smiley-D4LI_UP4.cjs → vue-ui-smiley-YfHmv0rQ.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-D2lgLtNe.cjs → vue-ui-spark-trend-Dpv6am0Z.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-sS5omLKN.js → vue-ui-spark-trend-Em9OqYyG.js} +4 -4
- package/dist/{vue-ui-sparkbar-D477mrPt.js → vue-ui-sparkbar-9DBvdYn7.js} +3 -3
- package/dist/{vue-ui-sparkbar-BSa3E1PW.cjs → vue-ui-sparkbar-BuSuwQYl.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge--a3JMX4H.js → vue-ui-sparkgauge-BN5feBzp.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CBdtHXSj.cjs → vue-ui-sparkgauge-DKtUZMv1.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-B7vG6DfM.js → vue-ui-sparkhistogram-BBUVmco4.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-GY3NORZf.cjs → vue-ui-sparkhistogram-BmuusW02.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DGM2gvJO.cjs → vue-ui-sparkline-Blzv-tIQ.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DQv6RoBk.js → vue-ui-sparkline-CeqNV6Re.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CgCC9OyA.js → vue-ui-sparkstackbar-C3GMC1eW.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CwSD66G_.cjs → vue-ui-sparkstackbar-D__WDEMv.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DE06kEdr.cjs → vue-ui-stackbar-DFqJ5K_q.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CYlI2qNa.js → vue-ui-stackbar-DyGPrFxi.js} +10 -10
- package/dist/{vue-ui-strip-plot-cLATedZC.js → vue-ui-strip-plot-y1AnVJmq.js} +9 -9
- package/dist/{vue-ui-strip-plot-CTPE5LwY.cjs → vue-ui-strip-plot-z9fjJ6Dj.cjs} +1 -1
- package/dist/{vue-ui-table-isDxWkmA.js → vue-ui-table-B4kfykAO.js} +1 -1
- package/dist/{vue-ui-table-heatmap-tqdvfQH_.cjs → vue-ui-table-heatmap-CGKecjtm.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DdEcsnYm.js → vue-ui-table-heatmap-YZRSzwRM.js} +4 -4
- package/dist/{vue-ui-table-sparkline-By0R0tDV.js → vue-ui-table-sparkline-C0v2r4Kf.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D2Eyb3oO.cjs → vue-ui-table-sparkline-CHFZG3Tg.cjs} +1 -1
- package/dist/{vue-ui-table-CYfUUquW.cjs → vue-ui-table-xWvAQS-s.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CewCkrgl.js → vue-ui-thermometer-D5qurIy7.js} +5 -5
- package/dist/{vue-ui-thermometer-DT_17Yji.cjs → vue-ui-thermometer-DoOxxVW1.cjs} +1 -1
- package/dist/{vue-ui-timer-aFikwHk0.cjs → vue-ui-timer-D63zHe-I.cjs} +1 -1
- package/dist/{vue-ui-timer-VmBMBL_O.js → vue-ui-timer-VWjovnKL.js} +4 -4
- package/dist/{vue-ui-tiremarks-CyvUhC9g.cjs → vue-ui-tiremarks-Cp8YEmXh.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-8YMG58Ot.js → vue-ui-tiremarks-jH6cdQOJ.js} +5 -5
- package/dist/{vue-ui-treemap-DlU_2b5A.js → vue-ui-treemap-BCc5sQLB.js} +9 -9
- package/dist/{vue-ui-treemap-83V4TBu2.cjs → vue-ui-treemap-DJrdEFW5.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-D8KpbB9m.js → vue-ui-vertical-bar-2In_g5iC.js} +364 -363
- package/dist/vue-ui-vertical-bar-BfJJqN_z.cjs +4 -0
- package/dist/{vue-ui-waffle-Dn1tci28.cjs → vue-ui-waffle-A2gmRbq0.cjs} +1 -1
- package/dist/{vue-ui-waffle-D5nczTQz.js → vue-ui-waffle-OzU830VX.js} +9 -9
- package/dist/{vue-ui-wheel-D0B43FnX.js → vue-ui-wheel-C9QXzWu1.js} +5 -5
- package/dist/{vue-ui-wheel-DWqZIkI0.cjs → vue-ui-wheel-DGSh9VKq.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DXEW7oYX.js → vue-ui-word-cloud-C2ZaVlfO.js} +7 -7
- package/dist/{vue-ui-word-cloud-BEebLRtX.cjs → vue-ui-word-cloud-DPFB1MYk.cjs} +1 -1
- package/dist/{vue-ui-xy-8508ou3J.cjs → vue-ui-xy-C-2-aijE.cjs} +2 -2
- package/dist/{vue-ui-xy-O3zBtp22.js → vue-ui-xy-DuJtYXKl.js} +16 -16
- package/dist/{vue-ui-xy-canvas-AMNGVzal.js → vue-ui-xy-canvas-CKibMJHh.js} +10 -10
- package/dist/{vue-ui-xy-canvas-CssfbLPK.cjs → vue-ui-xy-canvas-D7wf3xab.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-vertical-bar-DFlujd2F.cjs +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),n=require("./index-D_32ZGWd.cjs"),c=require("./useResponsive-B3TrDDIG.cjs"),qe=require("./Tooltip-B8yLaegk.cjs"),Ye=require("./Legend-Do2kcWFT.cjs"),Ue=require("./Title-D5cATWsL.cjs"),Xe=require("./Slicer-D8jHSP7U.cjs"),xe=require("./usePrinter-BouFNHWR.cjs"),Ae=require("./vue-ui-accordion-Cka6b_Up.cjs"),Ze=require("./DataTable-BNFSPjhv.cjs"),Ge=require("./vue-ui-skeleton-fVPw-oIR.cjs"),Le=require("./useNestedProp-BvvH633N.cjs"),je=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Je=["id"],Ke=["onClick"],Qe={key:2,class:"vue-data-ui-watermark"},et=["innerHTML"],tt={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(J,{expose:ke,emit:Ce}){const R=J,{vue_ui_xy_canvas:we}=n.useConfig(),U=a.ref(n.createUid()),D=a.ref(null),C=a.ref(null),I=a.ref(null),i=a.ref(null),g=a.ref(1),z=a.ref(1),_=a.ref(!1),f=a.ref(null),H=a.ref(""),K=a.ref(null),k=a.ref([]),N=a.ref(1),M=a.ref(!0),w=a.ref(!0),X=a.ref(null),Q=a.ref(0),ee=a.ref(0),A=a.ref(!1),te=a.ref(null),ae=a.ref(null),le=a.ref(null),Z=a.computed(()=>!!R.dataset&&R.dataset.length),t=a.computed(()=>{const e=Le.useNestedProp({userConfig:R.config,defaultConfig:we});return e.theme?{...Le.useNestedProp({userConfig:n.themes.vue_ui_xy_canvas[e.theme]||R.config,defaultConfig:e}),customPalette:n.themePalettes[e.theme]||n.palette}:e}),oe=a.ref(t.value.style.chart.aspectRatio),{isPrinting:re,isImaging:ue,generatePdf:ne,generateImage:se}=xe.usePrinter({elementId:`xy_canvas_${U.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas"}),s=a.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function Se(e){A.value=e,ee.value+=1}const ie=a.computed(()=>n.convertCustomPalette(t.value.customPalette)),P=a.computed(()=>Math.max(...E.value.filter((e,o)=>!k.value.includes(e.absoluteIndex)).map(e=>e.series.length))),l=a.computed(()=>{const e=g.value-g.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:g.value,canvasHeight:z.value,left:g.value*t.value.style.chart.paddingProportions.left,top:z.value*t.value.style.chart.paddingProportions.top,right:g.value-g.value*t.value.style.chart.paddingProportions.right,bottom:z.value-z.value*t.value.style.chart.paddingProportions.bottom,width:e,height:z.value-z.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(u.value.end-u.value.start)}});function ve(e,o){return e/o}function ze({hasAutoScale:e,series:o,min:r,max:d,scale:h,yOffset:p,individualHeight:v,stackIndex:m=null}){return o.map((L,j)=>{const S=h.min<0?Math.abs(h.min):0,$=ve(L+S,S+h.max);let T,O;e&&(T=Math.abs(h.min),O=ve(L+T,h.max+T));let F=0;return m===null?F=l.value.bottom-l.value.height*(e?O:$):F=l.value.bottom-p-v*(e?O:$),{x:l.value.left+l.value.slot*j+l.value.slot/2,y:F,value:L}})}const b=a.computed(()=>{const e=Math.min(...E.value.filter((v,m)=>!k.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(u.value.start,u.value.end))),o=Math.max(...E.value.filter((v,m)=>!k.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(u.value.start,u.value.end))),r=n.calculateNiceScale(e<0?e:0,o===e?e+1<0?0:e+1:o<0?0:o,t.value.style.chart.scale.ticks),d=r.min<0?Math.abs(r.min):0,h=l.value.bottom-l.value.height*(d/(r.max+d)),p=r.ticks.map(v=>({y:l.value.bottom-l.value.height*((v+d)/(r.max+d)),x:l.value.left-8,value:v}));return{absoluteMin:d,max:o,min:e,scale:r,yLabels:p,zero:h}}),$e=a.computed(()=>y.value.map(e=>`
|
|
2
2
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
3
3
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
4
4
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-Cuc8JBQE.cjs"),le=require("./useResponsive-B3TrDDIG.cjs"),Ce=require("./Title-Du743m6e.cjs"),ae=require("./usePrinter-BaExNQdD.cjs"),xe=require("./Tooltip-B_WP5J9X.cjs"),oe=require("./Legend-rxEBmJRW.cjs"),_e=require("./vue-ui-skeleton-DBlDHYe3.cjs"),Ne=require("./BaseIcon-CBTIJ_i3.cjs"),we=require("./vue-ui-accordion-CX_qmhfk.cjs"),ne=require("./useNestedProp-DZwVoxS3.cjs"),$e=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=["id"],Ve=["onClick"],Te=["xmlns","viewBox"],Ee=["id"],Be=["stop-color"],Le=["stop-color"],ze=["x","y","width","height","fill","rx"],Pe=["x","y","width","height","fill","rx","stroke","stroke-width"],De=["x2","y1","y2","stroke","stroke-width"],Fe=["x1","x2","y1","y2","stroke","stroke-width"],Me=["x","y","text-anchor","font-size","fill","font-weight"],Ie=["x","y","font-size","fill","font-weight"],Oe=["x","y","font-size","fill","font-weight"],Re=["x","y","font-size","fill","font-weight"],qe=["y","width","height","fill","onMouseenter"],He={key:4,class:"vue-data-ui-watermark"},Xe=["onClick"],Ae={style:"width:100%;padding-top: 36px;position:relative"},Ue={class:"vue-ui-data-table"},je={key:0},Ge={style:{width:"100%"}},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=["data-cell"],nt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},rt=["data-cell"],ut={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},it={__name:"vue-ui-vertical-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(re,{expose:ue,emit:ie}){const f=re;e.useCssVars(a=>({"7bc84c58":a.tdo}));const{vue_ui_vertical_bar:se}=n.useConfig(),V=e.computed(()=>!!f.dataset&&f.dataset.length),m=e.ref(n.createUid()),ce=e.ref(null),B=e.ref(!1),L=e.ref(""),T=e.ref(0),de=e.ref(null),I=e.ref(0),w=e.ref(null),O=e.ref(null),z=e.ref(null),t=e.computed(()=>{const a=ne.useNestedProp({userConfig:f.config,defaultConfig:se});return a.theme?{...ne.useNestedProp({userConfig:n.themes.vue_ui_vertical_bar[a.theme]||f.config,defaultConfig:a}),customPalette:n.themePalettes[a.theme]||n.palette}:a}),{isPrinting:R,isImaging:q,generatePdf:H,generateImage:X}=ae.usePrinter({elementId:`vue-ui-vertical-bar_${m.value}`,fileName:t.value.style.chart.title.text||"vue-ui-vertical-bar"}),A=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),U=e.ref(null),j=e.ref(!1),ve=e.computed(()=>t.value.table.responsiveBreakpoint),E=e.ref(null);e.onMounted(()=>{if(n.objectIsEmpty(f.dataset)&&n.error({componentName:"VueUiVerticalBar",type:"dataset"}),T.value=f.dataset.flatMap(a=>a.children&&a.children.length>0?a.children.length:1).reduce((a,o)=>a+o,0),he(),t.value.responsive){const a=le.throttle(()=>{const{width:o,height:l}=le.useResponsive({chart:w.value,title:t.value.style.chart.title.text?O.value:null,legend:t.value.style.chart.legend.show?z.value:null});Y.value=o,c.value=l/T.value-v.value*2});E.value=new ResizeObserver(a),E.value.observe(w.value.parentNode)}}),e.onBeforeUnmount(()=>{E.value&&E.value.disconnect()});function he(){new ResizeObserver(o=>{o.forEach(l=>{j.value=l.contentRect.width<ve.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),k=e.computed(()=>(f.dataset.forEach((a,o)=>{!a.value&&!a.children&&n.error({componentName:"VueUiVerticalBar",type:"datasetAttributeEmpty",property:`value (index ${o})`}),a.children&&(n.objectIsEmpty(a.children)?n.error({componentName:"VueUiVerticalBar",type:"datasetAttributeEmpty",property:`children (index ${o})`}):a.children.forEach((l,r)=>{[null,void 0].includes(l.name)&&n.error({componentName:"VueUiVerticalBar",type:"datasetSerieAttribute",property:"name",key:"children",index:r})}))}),f.dataset.map((a,o)=>{const l=`vertical_parent_${o}_${m.value}`,r=!!a.children&&a.children.length>0;return{...a,id:l,shape:"square",opacity:y.value.includes(l)?.5:1,value:n.checkNaN(r?a.children.map(i=>i.value||0).reduce((i,s)=>i+s,0):Math.abs(a.value)||0),sign:a.value>=0?1:-1,hasChildren:r,isChild:!1,segregate:()=>$(l),isSegregated:y.value.includes(l),color:n.convertColorToHex(a.color)||A.value[o]||n.palette[o]||n.palette[o%n.palette.length],children:!a.children||!a.children.length?[]:a.children.toSorted((i,s)=>G.value?s.value-i.value:i.value-s.value).map((i,s)=>({...i,value:n.checkNaN(Math.abs(i.value)),sign:i.value>=0?1:-1,isChild:!0,parentId:l,parentName:a.name,parentValue:n.checkNaN(a.value||r?a.children.map(M=>M.value||0).reduce((M,ke)=>M+ke,0):0),id:`vertical_child_${o}_${s}_${m.value}`,childIndex:s,color:n.convertColorToHex(i.color)||n.convertColorToHex(a.color)||A.value[o]||n.palette[o]||n.palette[o%n.palette.length]})).map((i,s)=>({...i,isFirstChild:s===0,isLastChild:s===a.children.length-1}))}}).toSorted((a,o)=>G.value?o.value-a.value:a.value-o.value))),W=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":""})),c=e.ref(t.value.style.chart.layout.bars.height),v=e.ref(t.value.style.chart.layout.bars.gap),pe=e.computed(()=>(c.value+v.value)*T.value),Y=e.ref(512),d=e.computed(()=>({width:Y.value,height:pe.value,padding:{top:12,left:128+t.value.style.chart.layout.bars.offsetX,right:64+t.value.style.chart.layout.bars.paddingRight,bottom:12}})),u=e.computed(()=>({fullHeight:d.value.padding.top+d.value.padding.bottom+d.value.height,top:d.value.padding.top,left:d.value.padding.left,right:d.value.width-d.value.padding.right,bottom:d.value.padding.top+d.value.height,width:d.value.width-(d.value.padding.left+d.value.padding.right)}));function P(){T.value=C.value.flatMap(a=>a.children&&a.children.length>0?a.children.length:1).reduce((a,o)=>a+o,0)}const y=e.ref([]);function $(a){y.value.includes(a)?y.value=y.value.filter(o=>o!==a):y.value.push(a),P(),ie("selectLegend",C.value)}const C=e.computed(()=>k.value.filter(a=>!y.value.includes(a.id))),g=e.computed(()=>C.value.map(a=>Math.abs(a.value)).reduce((a,o)=>a+o,0));function K(a,o=!1,l=0){return o?n.dataLabel({v:n.checkNaN(Math.abs(a)/g.value*100),s:"%",r:l}):Math.abs(a)/g.value}const x=e.computed(()=>C.value.flatMap(a=>a.hasChildren?a.children:a)),_=e.computed(()=>x.value.map(a=>a.sign).includes(-1)),ye=e.computed(()=>Math.max(...C.value.flatMap(a=>a.children&&a.children.length?Math.max(...a.children.map(o=>o.value)):a.value)));function b(a){const o=a/ye.value;return u.value.width/(_.value?2:1)*o}function ge(a){return b(a)+u.value.left}function N(a,o){const l=C.value.find(s=>s.id===a.parentId),r=u.value.top+(v.value+c.value)*o,i=l.children.length*(v.value+c.value);return{y:r+i/2-t.value.style.chart.layout.bars.parentLabels.fontSize,name:l.name,value:[void 0,NaN,null].includes(l.value)?"":l.sign===1?l.value:-l.value,percentageToTotal:isNaN(l.value/g.value)?"":K(l.value,!0,t.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),sign:l.sign}}function fe(){return C.value}const D=e.ref(null),F=e.ref(null);function be(a,o){F.value={datapoint:a,seriesIndex:o,series:k.value,config:t.value},B.value=!0,D.value=a.id;let l="";const r=a.isChild?a.parentName:a.name,i=a.isChild?a.name:"",s=t.value.style.chart.tooltip.customFormat;n.isFunction(s)&&n.functionReturnsString(()=>s({datapoint:a,series:k.value,config:t.value,seriesIndex:o}))?L.value=s({datapoint:a,series:k.value,config:t.value,seriesIndex:o}):(l+=`<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
|
-
<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="${a.color}"/></svg> ${r}</div>
|
|
3
|
-
${i?`<div>${i}</div>`:""}
|
|
4
|
-
</div>`,t.value.style.chart.tooltip.showValue&&(l+=`<div>${t.value.translations.value}: <b>${n.applyDataLabel(t.value.style.chart.layout.bars.dataLabels.value.formatter,a.sign===1?a.value:-a.value,n.dataLabel({p:t.value.style.chart.tooltip.prefix,v:a.sign===1?a.value:-a.value,s:t.value.style.chart.tooltip.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,seriesIndex:o})}</b></div>`),t.value.style.chart.tooltip.showPercentage&&(l+=`<div>${t.value.translations.percentageToTotal} : <b>${n.dataLabel({v:Math.abs(a.value)/g.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`,a.isChild&&(l+=`<div>${t.value.translations.percentageToSerie}: <b>${n.dataLabel({v:Math.abs(a.value)/Math.abs(a.parentValue)*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`)),L.value=`<div style="text-align:left">${l}</div>`)}function J(a,o,l,r){if(!t.value.style.chart.layout.bars.dataLabels.value.show)return"";const i=n.applyDataLabel(t.value.style.chart.layout.bars.dataLabels.value.formatter,n.checkNaN(r===-1&&a>=0?-a:a),n.dataLabel({p:t.value.style.chart.layout.bars.dataLabels.value.prefix,v:n.checkNaN(r===-1&&a>=0?-a:a),s:t.value.style.chart.layout.bars.dataLabels.value.suffix,r:t.value.style.chart.layout.bars.dataLabels.value.roundingValue}),{datapoint:o,seriesIndex:l}),s=`(${K(a,!0,t.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;return`${i}${t.value.style.chart.layout.bars.dataLabels.percentage.show?` ${s}`:""}`}const p=e.computed(()=>{const a=[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=x.value.map(l=>l.isChild?l.isFirstChild?{color:l.color,parentName:l.parentName,parentValue:l.parentValue,percentageToTotal:l.parentValue/g.value,childName:l.name,childValue:l.sign===1?l.value:-l.value,childPercentageToParent:Math.abs(l.value)/Math.abs(l.parentValue),childPercentageToTotal:Math.abs(l.value)/g.value}:{color:"",parentName:"",parentValue:"",percentageToTotal:"",childName:l.name,childValue:l.sign===1?l.value:-l.value,childPercentageToParent:Math.abs(l.value)/Math.abs(l.parentValue),childPercentageToTotal:Math.abs(l.value)/g.value}:{color:l.color,parentName:l.name,parentValue:l.sign===1?l.value:-l.value,percentageToTotal:Math.abs(l.value)/g.value,childName:"",childValue:"",childPercentageToParent:"",childPercentageToTotal:""});return{head:a,body:o}});function Q(){const a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=p.value.head,l=p.value.body.map(s=>[s.parentName,s.parentValue,s.percentageToTotal,s.childName,s.childValue,s.childPercentageToParent,s.childPercentageToTotal]),r=a.concat([o]).concat(l),i=n.createCsvContent(r);n.downloadCsv({csvContent:i,title:t.value.style.chart.title.text||"vue-ui-vertical-bar"})}const S=e.ref(!1);function me(a){S.value=a,I.value+=1}function Z(){h.value.showTable=!h.value.showTable}function ee(){h.value.sortDesc=!h.value.sortDesc,P()}function te(){h.value.showTooltip=!h.value.showTooltip}return ue({getData:fe,recalculateHeight:P,generatePdf:H,generateCsv:Q,generateImage:X,toggleTable:Z,toggleSort:ee,toggleTooltip:te}),(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-vertical-bar ${S.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"verticalBarChart",ref:w,id:`vue-ui-vertical-bar_${m.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:O,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:12px`)},[e.createVNode(Ce._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&&V.value?(e.openBlock(),e.createBlock(ae.UserOptions,{ref_key:"details",ref:ce,key:`user_options_${I.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(q),isPrinting:e.unref(R),uid:m.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:S.value,isTooltip:h.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:w.value,onToggleFullscreen:me,onGeneratePdf:e.unref(H),onGenerateCsv:Q,onGenerateImage:e.unref(X),onToggleTable:Z,onToggleSort:ee,onToggleTooltip:te},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,a.$slots.optionSort?{name:"optionSort",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionSort",{},void 0,!0)]),key:"6"}: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:"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:z},[e.createVNode(oe.Legend,{legendSet:k.value,config:W.value,onClickMarker:o[0]||(o[0]=({legend:l})=>$(l.id))},{item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:i=>$(l.id),style:e.normalizeStyle(`opacity:${y.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.bars.dataLabels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.legend.prefix,v:l.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:r})),13,Ve)]),_:1},8,["legendSet","config"])],512)):e.createCommentVNode("",!0),V.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":S.value,"vue-data-ui-fulscreen--off":!S.value}),viewBox:`0 0 ${d.value.width<=0?10:d.value.width} ${u.value.fullHeight<=0?10:u.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(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`vertical_bar_gradient_${m.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,Be),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(n.shiftHue)(l.color,.03)}${e.unref(n.opacity)[100-t.value.style.chart.layout.bars.gradientIntensity]}`},null,8,Le)],8,Ee))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:e.unref(n.checkNaN)(_.value?u.value.left+u.value.width/2-(l.sign===1?0:b(l.value)<=0?1e-4:b(l.value)):u.value.left),y:u.value.top+(v.value+c.value)*r,width:e.unref(n.checkNaN)(b(l.value)<=0?1e-4:b(l.value)),height:c.value<=0?1e-4:c.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,ze)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:e.unref(n.checkNaN)(_.value?u.value.left+u.value.width/2-(l.sign===1?0:b(l.value)<=0?1e-4:b(l.value)):u.value.left),y:u.value.top+(v.value+c.value)*r,width:e.unref(n.checkNaN)(b(l.value)<=0?1e-4:b(l.value)),height:c.value<=0?1e-4:c.value,fill:t.value.style.chart.layout.bars.useGradient?`url(#vertical_bar_gradient_${m.value}_${r})`:`${l.color}${e.unref(n.opacity)[t.value.style.chart.layout.bars.fillOpacity]}`,rx:t.value.style.chart.layout.bars.borderRadius,stroke:t.value.style.chart.layout.bars.useStroke?l.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,Pe),(!l.isChild||l.isLastChild)&&t.value.style.chart.layout.separators.show&&r!==x.value.length-1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:0,x2:u.value.left,y1:c.value+v.value/2+u.value.top+(v.value+c.value)*r,y2:c.value+v.value/2+u.value.top+(v.value+c.value)*r,stroke:t.value.style.chart.layout.separators.color,"stroke-width":t.value.style.chart.layout.separators.strokeWidth,"stroke-linecap":"round"},null,8,De)):e.createCommentVNode("",!0),_.value&&t.value.style.chart.layout.separators.show?(e.openBlock(),e.createElementBlock("line",{key:1,x1:u.value.left+u.value.width/2,x2:u.value.left+u.value.width/2,y1:u.value.top,y2:u.value.bottom,stroke:t.value.style.chart.layout.separators.color,"stroke-width":t.value.style.chart.layout.separators.strokeWidth,"stroke-linecap":"round"},null,8,Fe)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:_.value?u.value.left+u.value.width/2+(l.sign===1?-12:12)+(l.sign===1?-t.value.style.chart.layout.bars.dataLabels.offsetX:t.value.style.chart.layout.bars.dataLabels.offsetX):ge(l.value)+3+t.value.style.chart.layout.bars.dataLabels.offsetX,y:u.value.top+(v.value+c.value)*r+c.value/2+t.value.style.chart.layout.bars.dataLabels.fontSize/2,"text-anchor":!_.value||l.sign===-1?"start":"end","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(J(l.value,l,r,l.sign)),9,Me),(l.isChild||!l.hasChildren)&&t.value.style.chart.layout.bars.nameLabels.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":"end",x:u.value.left-3+t.value.style.chart.layout.bars.nameLabels.offsetX,y:u.value.top+(v.value+c.value)*r+c.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(l.name),9,Ie)):e.createCommentVNode("",!0),l.isChild&&l.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:N(l,r).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(N(l,r).name),9,Oe)):e.createCommentVNode("",!0),l.isChild&&l.childIndex===0&&t.value.style.chart.layout.bars.parentLabels.show?(e.openBlock(),e.createElementBlock("text",{key:4,x:3+t.value.style.chart.layout.bars.parentLabels.offsetX,y:N(l,r).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(J(N(l,r).value),N(l,r),r,N(l,r).sign),9,Re)):e.createCommentVNode("",!0),e.createElementVNode("rect",{"data-cy-trap":"",x:0,y:u.value.top+(v.value+c.value)*r-v.value/2,width:d.value.width<=0?1e-4:d.value.width,height:c.value+v.value<=0?1e-4:c.value+v.value,fill:D.value===l.id?`${t.value.style.chart.layout.highlighter.color}${e.unref(n.opacity)[t.value.style.chart.layout.highlighter.opacity]}`:"transparent",onMouseenter:i=>be(l,r),onMouseleave:o[1]||(o[1]=i=>{de.value=null,B.value=!1,D.value=null})},null,40,qe)]))),256)),e.renderSlot(a.$slots,"svg",{svg:d.value},void 0,!0)],14,Te)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",He,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(R)||e.unref(q)})),void 0,!0)])):e.createCommentVNode("",!0),V.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(_e.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:z},[e.createVNode(oe.Legend,{legendSet:k.value,config:W.value,onClickMarker:o[2]||(o[2]=({legend:l})=>$(l.id))},{item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{onClick:i=>$(l.id),style:e.normalizeStyle(`opacity:${y.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.bars.dataLabels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.legend.prefix,v:l.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:r})),13,Xe)]),_:1},8,["legendSet","config"])],512)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:k.value},void 0,!0),e.createVNode(xe._sfc_main,{show:h.value.showTooltip&&B.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:w.value,content:L.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...F.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...F.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),V.value?(e.openBlock(),e.createBlock(we.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",Ae,[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]=l=>h.value.showTable=!1),onKeypress:o[4]||(o[4]=e.withKeys(l=>h.value.showTable=!1,["enter"]))},[e.createVNode(Ne.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":j.value})},[e.createElementVNode("table",Ue,[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",je,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,l=>(e.openBlock(),e.createElementBlock("th",{style:e.normalizeStyle(`outline:${t.value.table.th.outline}`)},[e.createElementVNode("div",Ge,e.toDisplayString(l),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,(l,r)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":r%2===0,"vue-ui-data-table__tbody__row-odd":r%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",Ye,[l.color?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`color:${l.color};margin-right:3px`)},"⬤",4)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(l.parentName),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[1]??""},[e.createElementVNode("div",Je,e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(["",NaN,void 0].includes(l.parentValue)?"":l.parentValue.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),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[2]??""},[e.createElementVNode("div",Ze,e.toDisplayString(["",NaN,void 0].includes(l.percentageToTotal)?"":`${(l.percentageToTotal*100).toFixed(t.value.table.td.roundingPercentage)}%`),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[3]??""},[e.createElementVNode("div",tt,e.toDisplayString(l.childName),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[4]??""},[e.createElementVNode("div",at,e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(["",NaN,void 0].includes(l.childValue)?"":l.childValue.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),1)],12,lt),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",nt,e.toDisplayString(["",NaN,void 0].includes(l.childPercentageToParent)?"":`${(l.childPercentageToParent*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,ot),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",ut,e.toDisplayString(["",NaN,void 0].includes(l.childPercentageToTotal)?"":`${(l.childPercentageToTotal*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,rt)],6))),256))])])],2)])],512)]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Se))}},st=$e._export_sfc(it,[["__scopeId","data-v-1dd68cde"]]);exports.default=st;
|