vue-data-ui 2.3.44 → 2.3.46
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-lVmaBZkc.cjs → Arrow-C45xNtet.cjs} +1 -1
- package/dist/{Arrow-nNje1ulZ.js → Arrow-QBHviXQB.js} +1 -1
- package/dist/{BaseIcon-CKfFgKNf.js → BaseIcon-Ct3EasCg.js} +1 -1
- package/dist/{BaseIcon-DVZfZ-bL.cjs → BaseIcon-NNgCqsH0.cjs} +1 -1
- package/dist/{DataTable-C1-LQ9kU.cjs → DataTable-BGF6x8iX.cjs} +1 -1
- package/dist/{DataTable-BRBTZQqC.js → DataTable-CkeQ7c6_.js} +2 -2
- package/dist/{Legend-Wzo5EwiV.cjs → Legend-DjuRskVd.cjs} +1 -1
- package/dist/{Legend-CBclUqQE.js → Legend-aFYc_s9T.js} +1 -1
- package/dist/{Shape-B0yFykoL.cjs → Shape-BTMZlA5Q.cjs} +1 -1
- package/dist/{Shape-COYrBpTA.js → Shape-DoAgLIYa.js} +1 -1
- package/dist/{Slicer-fdCI8qWb.cjs → Slicer-BCr6bV0X.cjs} +1 -1
- package/dist/{Slicer-DeKlCzs9.js → Slicer-I9LVm-u8.js} +1 -1
- package/dist/{Title-BNmjrAmy.js → Title-D8HoSXgM.js} +1 -1
- package/dist/{Title-ac0Tzobx.cjs → Title-NelrBSGO.cjs} +1 -1
- package/dist/{Tooltip-CUSoSjeD.cjs → Tooltip-CK94hatv.cjs} +1 -1
- package/dist/{Tooltip-kARe11oF.js → Tooltip-DTwn_FW5.js} +1 -1
- package/dist/{index-RX-sax8u.js → index-C1-FJ0sT.js} +203 -197
- package/dist/index-CEhe8nzy.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +3 -0
- package/dist/types/vue-data-ui.d.ts +3 -0
- package/dist/{useNestedProp-wLyS1qg3.js → useNestedProp-1fJhHDhT.js} +1 -1
- package/dist/{useNestedProp-ZSgzlkKZ.cjs → useNestedProp-CcMb2mLY.cjs} +1 -1
- package/dist/{usePrinter-Dz8P4PrQ.cjs → usePrinter-AfD8nrd2.cjs} +1 -1
- package/dist/{usePrinter-pEo9G4KY.js → usePrinter-B1a6uNio.js} +1 -1
- package/dist/{vue-data-ui-PIOw96xJ.cjs → vue-data-ui-DfYg-sm0.cjs} +1 -1
- package/dist/{vue-data-ui-DoqWcxpg.js → vue-data-ui-DgzO0vYA.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-D4ugNLFv.cjs → vue-ui-3d-bar-DctYjGhv.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-B4kbEKT8.js → vue-ui-3d-bar-ikMJ_M47.js} +7 -7
- package/dist/{vue-ui-accordion-SU0hvMyf.js → vue-ui-accordion-BLoKd0D-.js} +3 -3
- package/dist/{vue-ui-accordion-BQfkZ2Fd.cjs → vue-ui-accordion-CS2POBdq.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Dj3CbYws.cjs → vue-ui-age-pyramid-6GljtWMq.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-B2B2jipH.js → vue-ui-age-pyramid-C9hzFCN4.js} +8 -8
- package/dist/{vue-ui-annotator-B4WY-W96.cjs → vue-ui-annotator-BFTGfEfF.cjs} +1 -1
- package/dist/{vue-ui-annotator-B38AOspl.js → vue-ui-annotator-DgdkTVYV.js} +1 -1
- package/dist/{vue-ui-candlestick-BX28jnUA.js → vue-ui-candlestick-BW-okjzH.js} +9 -9
- package/dist/{vue-ui-candlestick-C_85JG6p.cjs → vue-ui-candlestick-C31d7Jvz.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BKPkc33T.js → vue-ui-carousel-table-Cw7Vpun2.js} +4 -4
- package/dist/{vue-ui-carousel-table-CiDmXd8Y.cjs → vue-ui-carousel-table-DlFu0byl.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CGFb3yM2.cjs → vue-ui-chestnut-B-H0j9-6.cjs} +1 -1
- package/dist/{vue-ui-chestnut-2K97h81h.js → vue-ui-chestnut-SLvSoUlS.js} +6 -6
- package/dist/{vue-ui-cursor-DN6xr3nT.js → vue-ui-cursor-BnoYo8DD.js} +2 -2
- package/dist/{vue-ui-cursor-DOIIfQfX.cjs → vue-ui-cursor-eMGHt_Cm.cjs} +1 -1
- package/dist/{vue-ui-dashboard-D_H43fxs.cjs → vue-ui-dashboard-BpwA8NTi.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CFJfMnW1.js → vue-ui-dashboard-cOx4Zbit.js} +2 -2
- package/dist/{vue-ui-digits-DoFQJ6ye.cjs → vue-ui-digits-MhR768JU.cjs} +1 -1
- package/dist/{vue-ui-digits-D1sBPU-b.js → vue-ui-digits-wo7Gctkj.js} +2 -2
- package/dist/{vue-ui-donut-DCKJRNhh.cjs → vue-ui-donut-C4bFM2ww.cjs} +1 -1
- package/dist/{vue-ui-donut-BOkeHJmg.js → vue-ui-donut-CABoxvoV.js} +9 -9
- package/dist/{vue-ui-donut-evolution-BVfgqCAa.cjs → vue-ui-donut-evolution-DzkcS9ET.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-CVChdWDx.js → vue-ui-donut-evolution-r6wIb3Tt.js} +9 -9
- package/dist/{vue-ui-dumbbell-B_nLz9mF.js → vue-ui-dumbbell-D3pvOoxP.js} +8 -8
- package/dist/{vue-ui-dumbbell-CAqglrag.cjs → vue-ui-dumbbell-DSSBvwhU.cjs} +1 -1
- package/dist/{vue-ui-flow-DAy7OWc2.js → vue-ui-flow-CCMFNXxy.js} +7 -7
- package/dist/{vue-ui-flow-AK4gWqNd.cjs → vue-ui-flow-Cp7EQLnA.cjs} +1 -1
- package/dist/{vue-ui-galaxy-dYrRlxj0.js → vue-ui-galaxy-BVu0ZEeg.js} +9 -9
- package/dist/{vue-ui-galaxy-CN1h5FZm.cjs → vue-ui-galaxy-DHXdjlQl.cjs} +1 -1
- package/dist/{vue-ui-gauge-vH_nn0vx.js → vue-ui-gauge-DRy_VLi-.js} +5 -5
- package/dist/{vue-ui-gauge-BQwOev1K.cjs → vue-ui-gauge-nnDuY2_P.cjs} +1 -1
- package/dist/{vue-ui-gizmo-eS4XXOgq.js → vue-ui-gizmo-B8rEv-J5.js} +2 -2
- package/dist/{vue-ui-gizmo-BaMtgUef.cjs → vue-ui-gizmo-Bhqq90Gt.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CfQqnd1M.js → vue-ui-heatmap-CESWvx6H.js} +8 -8
- package/dist/{vue-ui-heatmap-DOLn5piI.cjs → vue-ui-heatmap-DoEghJHO.cjs} +1 -1
- package/dist/{vue-ui-kpi-CvCoN7CE.js → vue-ui-kpi-CBH1WOLl.js} +3 -3
- package/dist/{vue-ui-kpi-l2MRy6h9.cjs → vue-ui-kpi-CHrIMR-b.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-ac_hCdZA.cjs → vue-ui-mini-loader-CP5HRcth.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CuRlbUQF.js → vue-ui-mini-loader-YjK49sOM.js} +2 -2
- package/dist/{vue-ui-molecule-Bv-v4WBT.cjs → vue-ui-molecule-BIuegM-N.cjs} +1 -1
- package/dist/{vue-ui-molecule-BgW25jqW.js → vue-ui-molecule-CZDSsnRY.js} +9 -9
- package/dist/{vue-ui-mood-radar-Dp_CgtVn.js → vue-ui-mood-radar-CcnUPS5r.js} +9 -9
- package/dist/{vue-ui-mood-radar-rk3wrRpE.cjs → vue-ui-mood-radar-DYTpiKG1.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts--JGjV59I.cjs → vue-ui-nested-donuts-CvPo6PIH.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-D41M6d-5.js → vue-ui-nested-donuts-Dk0HSrH4.js} +9 -9
- package/dist/{vue-ui-onion-BaazweOI.js → vue-ui-onion-C93R_Klx.js} +9 -9
- package/dist/{vue-ui-onion-Dzuhw8Y3.cjs → vue-ui-onion-C_Dy0awV.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BSaqSFVM.cjs → vue-ui-parallel-coordinate-plot-Do8zOqso.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-Dec8TPLy.js → vue-ui-parallel-coordinate-plot-aEJjFh7V.js} +10 -10
- package/dist/{vue-ui-quadrant-BDLc3Gxw.js → vue-ui-quadrant-7zsx3EOw.js} +10 -10
- package/dist/{vue-ui-quadrant-BqNSzKPZ.cjs → vue-ui-quadrant-CMP5gv34.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CpNYfh1z.cjs → vue-ui-quick-chart-DlKpBf-X.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CmWcXqKE.js → vue-ui-quick-chart-yGY2-cME.js} +6 -6
- package/dist/{vue-ui-radar-eOuJE8zH.js → vue-ui-radar-CBAE5b_H.js} +10 -10
- package/dist/{vue-ui-radar-CCHVebWS.cjs → vue-ui-radar-FvOQWErL.cjs} +1 -1
- package/dist/{vue-ui-rating-ChR7JmUp.cjs → vue-ui-rating-D4ytgNsW.cjs} +1 -1
- package/dist/{vue-ui-rating-Qjyodf8S.js → vue-ui-rating-DCX9Hr51.js} +2 -2
- package/dist/{vue-ui-relation-circle-BO5RERci.cjs → vue-ui-relation-circle-C0t4M_Eb.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-B3hL2PT7.js → vue-ui-relation-circle-C5uvdRCs.js} +5 -5
- package/dist/{vue-ui-rings-Cd_STL36.cjs → vue-ui-rings-CljU3aO-.cjs} +1 -1
- package/dist/{vue-ui-rings-CXfZ9XhE.js → vue-ui-rings-Cx9I0XCp.js} +9 -9
- package/dist/{vue-ui-scatter-BwN3h_43.cjs → vue-ui-scatter-BkvHY89U.cjs} +1 -1
- package/dist/{vue-ui-scatter-DjREew2O.js → vue-ui-scatter-BxrCbWPm.js} +10 -10
- package/dist/{vue-ui-screenshot-Cnc7zmf5.cjs → vue-ui-screenshot-B198lkuF.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DSczef-u.js → vue-ui-screenshot-Cf9NK_5w.js} +1 -1
- package/dist/{vue-ui-skeleton-CFx7wegx.js → vue-ui-skeleton-DogpCRv2.js} +2 -2
- package/dist/{vue-ui-skeleton-B3I4L51F.cjs → vue-ui-skeleton-DpqVx122.cjs} +1 -1
- package/dist/{vue-ui-smiley-Bpb_RAXE.cjs → vue-ui-smiley-Hv5SONWU.cjs} +1 -1
- package/dist/{vue-ui-smiley-CFPh7_gg.js → vue-ui-smiley-wnlpDBHn.js} +2 -2
- package/dist/{vue-ui-spark-trend-poSc_8OY.cjs → vue-ui-spark-trend-DBFYuxbh.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-C5Q_XOKH.js → vue-ui-spark-trend-_STSpU0x.js} +4 -4
- package/dist/{vue-ui-sparkbar-skWyToQg.js → vue-ui-sparkbar-B2C4gKQS.js} +3 -3
- package/dist/{vue-ui-sparkbar-CNy_3RJN.cjs → vue-ui-sparkbar-D1OrFmz5.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-d-LTd2S_.cjs → vue-ui-sparkgauge-CgX6ZpW7.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CZpfBAP4.js → vue-ui-sparkgauge-fsJt_SRA.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BkfhKPi2.cjs → vue-ui-sparkhistogram-CV8k8NPB.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-0htrwNwY.js → vue-ui-sparkhistogram-gue0JMvB.js} +4 -4
- package/dist/{vue-ui-sparkline-BBlg_5SH.js → vue-ui-sparkline-ClFxAQkz.js} +3 -3
- package/dist/{vue-ui-sparkline-ORHsW_3h.cjs → vue-ui-sparkline-DN7RZ5FX.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-B0hc7a5Y.js → vue-ui-sparkstackbar-3D6MkgTR.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-kWvsyt_R.cjs → vue-ui-sparkstackbar-Dxy0P3xJ.cjs} +1 -1
- package/dist/vue-ui-stackbar-BY0bcCBX.cjs +6 -0
- package/dist/vue-ui-stackbar-DAFHq-wh.js +897 -0
- package/dist/{vue-ui-strip-plot-BxpUOCtS.js → vue-ui-strip-plot-B3ItWHyf.js} +9 -9
- package/dist/{vue-ui-strip-plot-ChempVMX.cjs → vue-ui-strip-plot-lfB-YBkt.cjs} +1 -1
- package/dist/{vue-ui-table-CiJxG7DF.cjs → vue-ui-table-CiksARcd.cjs} +1 -1
- package/dist/{vue-ui-table-6LeE9-Di.js → vue-ui-table-Dxc80GV0.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BwFAqdF5.js → vue-ui-table-heatmap-AI2JeTUR.js} +4 -4
- package/dist/{vue-ui-table-heatmap-rO8vNnId.cjs → vue-ui-table-heatmap-C_Wr83fl.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CkdPJpBy.cjs → vue-ui-table-sparkline-BPYQI2Vo.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-D467Jh1F.js → vue-ui-table-sparkline-D2KWAYWO.js} +5 -5
- package/dist/{vue-ui-thermometer-BnmPU3GD.cjs → vue-ui-thermometer-BopRBXkF.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CvEudPLx.js → vue-ui-thermometer-szsOVqgO.js} +5 -5
- package/dist/{vue-ui-timer-BeBR3Quk.js → vue-ui-timer-CpuqP9iZ.js} +4 -4
- package/dist/{vue-ui-timer-CHIVe58Y.cjs → vue-ui-timer-Ctcaiaej.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CAuwXXbq.js → vue-ui-tiremarks-9P4vBFZV.js} +5 -5
- package/dist/{vue-ui-tiremarks-lOirAxZ6.cjs → vue-ui-tiremarks-Cge2TXFU.cjs} +1 -1
- package/dist/{vue-ui-treemap-DHxxbiun.cjs → vue-ui-treemap-BxdorPsS.cjs} +1 -1
- package/dist/{vue-ui-treemap-CUiOr_h_.js → vue-ui-treemap-CLOwIrHN.js} +9 -9
- package/dist/{vue-ui-vertical-bar--pPasMmy.cjs → vue-ui-vertical-bar-BREOjM7U.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-ZWnyojw_.js → vue-ui-vertical-bar-Br8Slvab.js} +9 -9
- package/dist/{vue-ui-waffle-CSfAfoYA.js → vue-ui-waffle-B62b9gwj.js} +9 -9
- package/dist/{vue-ui-waffle-o3Ma4Ps3.cjs → vue-ui-waffle-CPqrsii3.cjs} +1 -1
- package/dist/{vue-ui-wheel-BD-PZ7Oh.js → vue-ui-wheel-B3Nw-ICG.js} +5 -5
- package/dist/{vue-ui-wheel-BxEO4n2n.cjs → vue-ui-wheel-HqeFI8W9.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CeSKTtaT.cjs → vue-ui-word-cloud-B_W87vAs.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-B1AUYOjb.js → vue-ui-word-cloud-HgAIxI93.js} +7 -7
- package/dist/{vue-ui-xy-DeEUEySp.cjs → vue-ui-xy-CWQd12R4.cjs} +1 -1
- package/dist/{vue-ui-xy-DK2WkNdd.js → vue-ui-xy-DpqyiCx6.js} +12 -12
- package/dist/{vue-ui-xy-canvas-BTMotEgF.cjs → vue-ui-xy-canvas-5f_5ULEA.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-BBoqHWnZ.js → vue-ui-xy-canvas-CjGlVtb_.js} +10 -10
- package/package.json +1 -1
- package/dist/index-CWGchQHo.cjs +0 -4
- package/dist/vue-ui-stackbar-CBB0xhoF.js +0 -786
- package/dist/vue-ui-stackbar-n7e_yhY9.cjs +0 -6
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-CWGchQHo.cjs"),de=require("./useNestedProp-ZSgzlkKZ.cjs"),ve=require("./useResponsive-B3TrDDIG.cjs"),he=require("./usePrinter-Dz8P4PrQ.cjs"),Ee=require("./Slicer-fdCI8qWb.cjs"),Ve=require("./Tooltip-CUSoSjeD.cjs"),Pe=require("./Title-ac0Tzobx.cjs"),Me=require("./Legend-Wzo5EwiV.cjs"),Fe=require("./vue-ui-accordion-BQfkZ2Fd.cjs"),Re=require("./DataTable-C1-LQ9kU.cjs"),Oe=require("./vue-ui-skeleton-B3I4L51F.cjs"),De=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ie=["id"],qe=["xmlns","viewBox"],Ae={key:0},He=["id"],Ue=["stop-color"],We=["stop-color"],Ge=["stop-color"],Ye=["x1","x2","y1","y2","stroke"],Je=["x1","x2","y1","y2","stroke"],Xe=["x","y","height","rx","width","fill","stroke","stroke-width"],Ze=["x1","x2","y1","y2","stroke","stroke-width"],Ke=["x1","x2","y1","y2","stroke","stroke-width"],Qe=["x","y","font-size","fill","font-weight"],je=["transform","font-size","fill","font-weight"],et=["x","y","font-size","fill","font-weight"],tt={key:0},at=["x","y","font-size","font-weight","fill"],lt=["x1","x2","y1","y2","stroke"],ot=["x","y","font-size","font-weight","fill"],rt=["text-anchor","font-size","font-weight","fill","transform"],st=["x","y","width","height","onClick","onMouseenter","fill"],nt={key:3,class:"vue-data-ui-watermark"},it=["onClick"],ut=["innerHTML"],ct={__name:"vue-ui-stackbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint","selectLegend"],setup(U,{expose:ge,emit:W}){const f=U,{vue_ui_stackbar:me}=u.useConfig(),S=e.computed({get(){return!!f.dataset&&f.dataset.length},set(l){return l}}),L=e.ref(null),R=e.ref(u.createUid()),O=e.ref(!1),G=e.ref(null),D=e.ref(""),h=e.ref([]),Y=e.ref(0),J=e.ref(null),X=e.ref(null),Z=e.ref(null),K=e.ref(0),I=e.ref(!1),q=e.ref(null),E=e.ref(!1);e.onMounted(()=>{u.objectIsEmpty(f.dataset)?u.error({componentName:"VueUiStackbar",type:"dataset"}):f.dataset.forEach((l,o)=>{u.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","series"]}).forEach(a=>{S.value=!1,u.error({componentName:"VueUiStackbar",type:"datasetSerieAttribute",property:a,index:o})})}),setTimeout(()=>{E.value=!0},10)});const t=e.computed(()=>{const l=de.useNestedProp({userConfig:f.config,defaultConfig:me});return l.theme?{...de.useNestedProp({userConfig:u.themes.vue_ui_stackbar[l.theme]||f.config,defaultConfig:l}),customPalette:u.themePalettes[l.theme]||u.palette}:l}),p=e.ref({dataLabels:{show:t.value.style.chart.bars.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),{isPrinting:Q,isImaging:j,generatePdf:ee,generateImage:te}=he.usePrinter({elementId:`stackbar_${R.value}`,fileName:t.value.style.chart.title.text||"vue-ui-stackbar"}),V=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,paddingRatio:{top:t.value.style.chart.padding.top/t.value.style.chart.height,right:t.value.style.chart.padding.right/t.value.style.chart.width,bottom:t.value.style.chart.padding.bottom/t.value.style.chart.height,left:t.value.style.chart.padding.left/t.value.style.chart.width}}),pe=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),ae=e.ref(null),le=e.ref(null);e.onMounted(()=>{if(t.value.responsive){const l=ve.throttle(()=>{E.value=!1;const{width:o,height:a}=ve.useResponsive({chart:L.value,title:t.value.style.chart.title.text?J.value:null,legend:t.value.style.chart.legend.show?X.value:null,slicer:t.value.style.chart.zoom.show&&N.value>1?Z.value:null});V.value.width=o,V.value.height=a,clearTimeout(le.value),le.value=setTimeout(()=>{E.value=!0},10)});ae.value=new ResizeObserver(l),ae.value.observe(L.value.parentNode)}});const n=e.computed(()=>{const{height:l,width:o}=V.value,{right:a}=V.value.paddingRatio,r=t.value.style.chart.padding.top,s=o-o*a,c=l-t.value.style.chart.padding.bottom,g=t.value.style.chart.padding.left,C=o-g-o*a,w=l-r-t.value.style.chart.padding.bottom;return{chartHeight:l,chartWidth:o,top:r,right:s,bottom:c,left:g,width:C,height:w<0?0:w}}),k=e.computed(()=>f.dataset.map((l,o)=>{const a=u.convertColorToHex(l.color)||pe.value[o]||u.palette[o]||u.palette[o%u.palette.length];return{...l,series:JSON.parse(JSON.stringify(l.series)).map(r=>t.value.style.chart.bars.distributed?Math.abs(r):r),signedSeries:l.series.map(r=>r>=0?1:-1),absoluteIndex:o,id:u.createUid(),color:a}})),N=e.computed(()=>Math.max(...k.value.filter(l=>!h.value.includes(l.id)).map(l=>l.series.length))),i=e.ref({start:0,end:Math.max(...f.dataset.map(l=>l.series.length))});function ye(){i.value={start:0,end:Math.max(...f.dataset.map(l=>l.series.length))},K.value+=1}const y=e.computed(()=>{const l=n.value.width/(i.value.end-i.value.start);return l<=0?0:l}),A=e.computed(()=>u.sumSeries(k.value.filter(l=>!h.value.includes(l.id))).slice(i.value.start,i.value.end)),be=e.computed(()=>u.sumSeries(k.value.filter(l=>!h.value.includes(l.id)).map(l=>({...l,series:l.series.map((o,a)=>l.signedSeries[a]===-1&&o>=0?-o:o)}))).slice(i.value.start,i.value.end)),P=e.computed(()=>{const l=k.value.filter(o=>!h.value.includes(o.id));return{positive:u.sumSeries(l.map(o=>({...o,series:o.series.slice(i.value.start,i.value.end).map(a=>a>=0?a:0)}))),negative:u.sumSeries(l.map(o=>({...o,series:o.series.slice(i.value.start,i.value.end).map(a=>a<0?a:0)})))}}),$=e.computed(()=>{const l=Math.max(...P.value.positive),o=Math.min(...P.value.negative),a=[-1/0,1/0,NaN,void 0,null].includes(o)?0:o,r=u.calculateNiceScale(a>0?0:a,l<0?0:l,t.value.style.chart.grid.scale.ticks);return r.ticks.map(s=>({zero:n.value.bottom-n.value.height*(Math.abs(r.min)/(r.max+Math.abs(r.min))),y:n.value.bottom-n.value.height*((s+Math.abs(r.min))/(r.max+Math.abs(r.min))),x:n.value.left-8,value:s}))}),M=e.computed(()=>t.value.style.chart.grid.x.timeLabels.values.slice(i.value.start,i.value.end)),d=e.computed(()=>{if(!S.value)return[];let l=Array(N.value).fill(0),o=Array(N.value).fill(0);const a=Math.max(...P.value.positive)||0,r=Math.min(...P.value.negative),s=[-1/0,1/0,NaN,void 0,null].includes(r)?0:r,c=u.calculateNiceScale(s>0?0:s,a<0?0:a,t.value.style.chart.grid.scale.ticks),{min:g,max:C}=c,w=C+(g>=0?0:Math.abs(g))||1,x=n.value.height,T=$.value[0]?$.value[0].zero:n.value.bottom;return k.value.filter(b=>!h.value.includes(b.id)).map(b=>{const B=b.series.slice(i.value.start,i.value.end),Ne=b.signedSeries.slice(i.value.start,i.value.end),$e=B.map((v,m)=>n.value.left+y.value*m+y.value*t.value.style.chart.bars.gapRatio/4),Te=B.map((v,m)=>{const z=t.value.style.chart.bars.distributed?(v||0)/A.value[m]:(v||0)/w;let H,_;return v>0?(_=x*z,H=T-_-l[m],l[m]+=_):(_=x*z,H=T+o[m],o[m]+=Math.abs(_)),H}),ze=B.map((v,m)=>{const z=t.value.style.chart.bars.distributed?(v||0)/A.value[m]:(v||0)/w;return v>0?x*z:x*Math.abs(z)}),_e=B.map(v=>Math.abs(v)).reduce((v,m)=>v+m,0);return{...b,proportions:B.map((v,m)=>t.value.style.chart.bars.distributed?(v||0)/A.value[m]:(v||0)/_e),series:B,signedSeries:Ne,x:$e,y:Te,height:ze}})}),fe=e.computed(()=>be.value.map((l,o)=>({value:l,sign:l>=0?1:-1})));function oe(l,o,a,r,s){const c=s===-1&&l>=0?-l:l;return u.applyDataLabel(t.value.style.chart.bars.dataLabels.formatter,c,u.dataLabel({p:t.value.style.chart.bars.dataLabels.prefix,v:c,s:t.value.style.chart.bars.dataLabels.suffix,r:t.value.style.chart.bars.dataLabels.rounding}),{datapoint:o,seriesIndex:a,datapointIndex:r})}function ke(l,o,a,r){return u.applyDataLabel(t.value.style.chart.bars.dataLabels.formatter,l,u.dataLabel({v:l,s:"%",r:t.value.style.chart.bars.dataLabels.rounding}),{datapoint:o,seriesIndex:a,datapointIndex:r})}function xe(l){const o=JSON.parse(JSON.stringify(d.value)).map(a=>({name:a.name,value:a.series[l]===0?0:a.series[l]||null,proportion:a.proportions[l]||null,color:a.color,id:a.id}));W("selectDatapoint",{datapoint:o,period:M.value[l]})}function Ce(l){q.value=l,O.value=!0;const o=t.value.style.chart.tooltip.customFormat,a=JSON.parse(JSON.stringify(d.value)).map(s=>({name:s.name,value:s.series[l]===0?0:(s.signedSeries[l]===-1&&s.series[l]>=0?-s.series[l]:s.series[l])||null,proportion:s.proportions[l]||null,color:s.color,id:s.id})),r=a.map(s=>Math.abs(s.value)).reduce((s,c)=>s+c,0);if(u.isFunction(o)&&u.functionReturnsString(()=>o({seriesIndex:l,datapoint:a,series:d.value,config:t.value})))D.value=o({seriesIndex:l,datapoint:a,series:d.value,config:t.value});else{const{showValue:s,showPercentage:c,borderColor:g,roundingValue:C,roundingPercentage:w}=t.value.style.chart.tooltip;let x="";M.value[l]&&(x+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${g};padding-bottom:6px;margin-bottom:3px;">${M.value[l]}</div>`);const T=[s&&c?"(":"",s&&c?")":""];a.reverse().forEach(b=>{x+=`
|
|
2
|
-
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
3
|
-
<svg viewBox="0 0 12 12" height="14" width="14"><rect rx="1" x="0" y="0" height="12" width="12" stroke="none" fill="${t.value.style.chart.bars.gradient.show?`url(#gradient_${b.id})`:b.color}"/></svg>
|
|
4
|
-
${b.name}${s||c?":":""} ${s?u.dataLabel({p:t.value.style.chart.bars.dataLabels.prefix,v:b.value,s:t.value.style.chart.bars.dataLabels.suffix,r:C}):""} ${T[0]}${c?u.dataLabel({v:isNaN(b.value/r)?0:Math.abs(b.value)/r*100,s:"%",r:w}):""}${T[1]}
|
|
5
|
-
</div>
|
|
6
|
-
`}),D.value=`<div>${x}</div>`}}function we(l){I.value=l,Y.value+=1}function re(){p.value.showTable=!p.value.showTable}function se(){p.value.dataLabels.show=!p.value.dataLabels.show}function ne(){p.value.showTooltip=!p.value.showTooltip}function Se(){return d.value}const ie=e.computed(()=>{if(d.value.length===0)return{head:[],body:[],config:{},columnNames:[]};const l=d.value.map(({name:a,color:r})=>({label:a,color:r})),o=[];for(let a=i.value.start;a<i.value.end;a+=1){const r=[t.value.style.chart.grid.x.timeLabels.values[a]||a+1];k.value.forEach(s=>{r.push(Number((s.series[a]||0).toFixed(t.value.table.td.roundingValue)))}),o.push(r)}return{head:l,body:o}});function ue(){const l=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=["",...ie.value.head.map(c=>c.label)],a=ie.value.body,r=l.concat([o]).concat(a),s=u.createCsvContent(r);u.downloadCsv({csvContent:s,title:t.value.style.chart.title.text||"vue-ui-stackbar"})}const F=e.computed(()=>{const l=[""].concat(d.value.map(s=>s.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');let o=[];for(let s=0;s<N.value;s+=1){const c=d.value.map(g=>g.series[s]??0).reduce((g,C)=>g+C,0);o.push([t.value.style.chart.grid.x.timeLabels.values.slice(i.value.start,i.value.end)[s]??s+1].concat(d.value.map(g=>(g.series[s]??0).toFixed(t.value.table.td.roundingValue))).concat((c??0).toFixed(t.value.table.td.roundingValue)))}const a={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},r=[t.value.table.columnNames.period].concat(d.value.map(s=>s.name)).concat(t.value.table.columnNames.total);return{head:l,body:o.slice(0,i.value.end-i.value.start),config:a,colNames:r}});function Be(l,o){if(W("selectLegend",d.value.find(a=>a.absoluteIndex===l)),h.value.includes(o.id))h.value=h.value.filter(a=>a!==o.id);else{if(h.value.length===k.value.length-1)return;h.value.push(o.id)}}const ce=e.computed(()=>k.value.map((l,o)=>({...l,shape:"square"})).map(l=>({...l,opacity:h.value.includes(l.id)?.5:1,segregate:()=>Be(l.absoluteIndex,l),isSegregated:h.value.includes(l.id)}))),Le=e.computed(()=>({cy:"stackbar-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":""}));return ge({getData:Se,generatePdf:ee,generateCsv:ue,generateImage:te,toggleTable:re,toggleLabels:se,toggleTooltip:ne}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{id:`stackbar_${R.value}`,ref_key:"stackbarChart",ref:L,class:e.normalizeClass({"vue-ui-stackbar":!0,"vue-data-ui-wrapper-fullscreen":I.value}),style:e.normalizeStyle(`background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color};font-family:${t.value.style.fontFamily}; position: relative; ${t.value.responsive?"height: 100%":""}`)},[e.renderSlot(l.$slots,"userConfig",{},void 0,!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:J,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:24px`)},[e.createVNode(Pe._sfc_main,{config:{title:{cy:"stackbar-title",...t.value.style.chart.title},subtitle:{cy:"stackbar-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&S.value?(e.openBlock(),e.createBlock(he.UserOptions,{ref:"details",key:`user_option_${Y.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Q),isImaging:e.unref(j),uid:R.value,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:I.value,chartElement:L.value,isTooltip:p.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},onToggleFullscreen:we,onGeneratePdf:e.unref(ee),onGenerateCsv:ue,onGenerateImage:e.unref(te),onToggleTable:re,onToggleLabels:se,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.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:r})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasLabel","hasFullscreen","isFullscreen","chartElement","isTooltip","titles","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),S.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(u.XMLNS),viewBox:`0 0 ${n.value.chartWidth<=0?10:n.value.chartWidth} ${n.value.chartHeight<=0?10:n.value.chartHeight}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[t.value.style.chart.bars.gradient.show?(e.openBlock(),e.createElementBlock("defs",Ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`gradient_${a.id}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":a.color},null,8,Ue),e.createElementVNode("stop",{offset:"61.8%","stop-color":e.unref(u.lightenHexColor)(a.color,t.value.style.chart.bars.gradient.intensity/100)},null,8,We),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Ge)],8,He))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.x.showHorizontalLines?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList($.value,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:n.value.left,x2:n.value.right,y1:a.y,y2:a.y,stroke:t.value.style.chart.grid.x.axisColor,"stroke-width":1},null,8,Ye))),256)):e.createCommentVNode("",!0),t.value.style.chart.grid.y.showVerticalLines?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(i.value.end-i.value.start+1,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:n.value.left+y.value*r,x2:n.value.left+y.value*r,y1:n.value.top,y2:n.value.bottom,stroke:t.value.style.chart.grid.y.axisColor,"stroke-width":1},null,8,Je))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.x,(s,c)=>(e.openBlock(),e.createElementBlock("rect",{x:s,y:a.y[c]<0?0:a.y[c],height:a.height[c]<0?1e-4:a.height[c],rx:t.value.style.chart.bars.borderRadius>a.height[c]/2?(a.height[c]<0?0:a.height[c])/2:t.value.style.chart.bars.borderRadius,width:y.value*(1-t.value.style.chart.bars.gapRatio/2),fill:t.value.style.chart.bars.gradient.show?`url(#gradient_${a.id})`:a.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.bars.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass({"vue-data-ui-bar-animated":t.value.useCssAnimation,"vue-data-ui-bar-transition":E.value})},null,10,Xe))),256))]))),256)),t.value.style.chart.grid.x.showAxis?(e.openBlock(),e.createElementBlock("line",{key:3,x1:n.value.left,x2:n.value.right,y1:n.value.bottom,y2:n.value.bottom,stroke:t.value.style.chart.grid.x.axisColor,"stroke-width":t.value.style.chart.grid.x.axisThickness,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,Ze)):e.createCommentVNode("",!0),t.value.style.chart.grid.y.showAxis&&!t.value.style.chart.bars.distributed?(e.openBlock(),e.createElementBlock("line",{key:4,x1:n.value.left,x2:n.value.left,y1:n.value.top,y2:n.value.bottom,stroke:t.value.style.chart.grid.y.axisColor,"stroke-width":t.value.style.chart.grid.y.axisThickness,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,Ke)):e.createCommentVNode("",!0),t.value.style.chart.grid.x.axisName.show&&t.value.style.chart.grid.x.axisName.text?(e.openBlock(),e.createElementBlock("text",{key:5,x:n.value.left+n.value.width/2,y:n.value.chartHeight+t.value.style.chart.grid.x.axisName.offsetY,"font-size":t.value.style.chart.grid.x.axisName.fontSize,fill:t.value.style.chart.grid.x.axisName.color,"font-weight":t.value.style.chart.grid.x.axisName.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(t.value.style.chart.grid.x.axisName.text),9,Qe)):e.createCommentVNode("",!0),t.value.style.chart.grid.y.axisName.show&&t.value.style.chart.grid.y.axisName.text?(e.openBlock(),e.createElementBlock("text",{key:6,transform:`translate(${t.value.style.chart.grid.y.axisName.fontSize+t.value.style.chart.grid.y.axisName.offsetX}, ${n.value.top+n.value.height/2}) rotate(-90)`,"font-size":t.value.style.chart.grid.y.axisName.fontSize,fill:t.value.style.chart.grid.y.axisName.color,"font-weight":t.value.style.chart.grid.y.axisName.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(t.value.style.chart.grid.y.axisName.text),9,je)):e.createCommentVNode("",!0),p.value.dataLabels.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:7},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.x,(s,c)=>(e.openBlock(),e.createElementBlock("text",{x:s+y.value*(1-t.value.style.chart.bars.gapRatio/2)/2,y:a.y[c]+a.height[c]/2+t.value.style.chart.bars.dataLabels.fontSize/3,"font-size":t.value.style.chart.bars.dataLabels.fontSize,fill:t.value.style.chart.bars.dataLabels.adaptColorToBackground?e.unref(u.adaptColorToBackground)(a.color):t.value.style.chart.bars.dataLabels.color,"font-weight":t.value.style.chart.bars.dataLabels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(t.value.style.chart.bars.showDistributedPercentage&&t.value.style.chart.bars.distributed?ke(a.proportions[c]*100,a,r,c):oe(a.series[c],a,r,c,a.signedSeries[c])),9,et))),256))]))),256)),t.value.style.chart.bars.totalValues.show&&d.value.length>1?(e.openBlock(),e.createElementBlock("g",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(fe.value,(a,r)=>(e.openBlock(),e.createElementBlock("text",{x:n.value.left+y.value*r+y.value/2,y:n.value.top-t.value.style.chart.bars.totalValues.fontSize/3,"text-anchor":"middle","font-size":t.value.style.chart.bars.totalValues.fontSize,"font-weight":t.value.style.chart.bars.totalValues.bold?"bold":"normal",fill:t.value.style.chart.bars.totalValues.color},e.toDisplayString(oe(a.value,a,r,a.sign)),9,at))),256))])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.style.chart.grid.y.axisLabels.show&&!t.value.style.chart.bars.distributed?(e.openBlock(),e.createElementBlock(e.Fragment,{key:8},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:n.value.left,x2:n.value.left-6,y1:a.y,y2:a.y,stroke:t.value.style.chart.grid.x.axisColor,"stroke-width":1},null,8,lt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(a,r)=>(e.openBlock(),e.createElementBlock("text",{x:a.x,y:a.y+t.value.style.chart.grid.y.axisLabels.fontSize/3,"font-size":t.value.style.chart.grid.y.axisLabels.fontSize,"font-weight":t.value.style.chart.grid.y.axisLabels.bold?"bold":"normal",fill:t.value.style.chart.grid.y.axisLabels.color,"text-anchor":"end"},e.toDisplayString(e.unref(u.dataLabel)({p:t.value.style.chart.bars.dataLabels.prefix,v:a.value,s:t.value.style.chart.bars.dataLabels.suffix,r:t.value.style.chart.grid.y.axisLabels.rounding})),9,ot))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.grid.x.timeLabels.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:9},e.renderList(M.value,(a,r)=>(e.openBlock(),e.createElementBlock("text",{"text-anchor":t.value.style.chart.grid.x.timeLabels.rotation>0?"start":t.value.style.chart.grid.x.timeLabels.rotation<0?"end":"middle","font-size":t.value.style.chart.grid.x.timeLabels.fontSize,"font-weight":t.value.style.chart.grid.x.timeLabels.bold?"bold":"normal",fill:t.value.style.chart.grid.x.timeLabels.color,transform:`translate(${n.value.left+y.value*r+y.value/2}, ${n.value.bottom+t.value.style.chart.grid.x.timeLabels.fontSize*1.3+t.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${t.value.style.chart.grid.x.timeLabels.rotation})`},e.toDisplayString(a),9,rt))),256)):e.createCommentVNode("",!0),p.value.showTooltip?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:10},e.renderList(i.value.end-i.value.start,(a,r)=>(e.openBlock(),e.createElementBlock("rect",{x:n.value.left+r*y.value,y:n.value.top,width:y.value,height:n.value.height<0?0:n.value.height,onClick:s=>xe(r),onMouseenter:s=>Ce(r),onMouseleave:o[0]||(o[0]=s=>{q.value=null,O.value=!1}),fill:r===q.value?t.value.style.chart.highlighter.color+e.unref(u.opacity)[t.value.style.chart.highlighter.opacity]:"transparent"},null,40,st))),256)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",e.normalizeProps(e.guardReactiveProps({...n.value})),void 0,!0)],12,qe)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",nt,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Q)||e.unref(j)})),void 0,!0)])):e.createCommentVNode("",!0),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Oe.default,{key:4,config:{type:"bar",style:{backgroundColor:t.value.style.chart.backgroundColor,bar:{axis:{color:"#CCCCCC"},color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartSlicer",ref:Z,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor}`),"data-html2canvas-ignore":""},[t.value.style.chart.zoom.show&&N.value>1?(e.openBlock(),e.createBlock(Ee.Slicer,{key:`slicer_${K.value}`,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,fontSize:t.value.style.chart.zoom.fontSize,useResetSlot:t.value.style.chart.zoom.useResetSlot,labelLeft:t.value.style.chart.grid.x.timeLabels.values[i.value.start]?t.value.style.chart.grid.x.timeLabels.values[i.value.start]:"",labelRight:t.value.style.chart.grid.x.timeLabels.values[i.value.end-1]?t.value.style.chart.grid.x.timeLabels.values[i.value.end-1]:"",textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,max:Math.max(...U.dataset.map(a=>a.series.length)),min:0,valueStart:i.value.start,valueEnd:i.value.end,start:i.value.start,"onUpdate:start":o[1]||(o[1]=a=>i.value.start=a),end:i.value.end,"onUpdate:end":o[2]||(o[2]=a=>i.value.end=a),onReset:ye},{"reset-action":e.withCtx(({reset:a})=>[e.renderSlot(l.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:a})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end"])):e.createCommentVNode("",!0)],4),e.createVNode(Ve._sfc_main,{show:p.value.showTooltip&&O.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:L.value,content:D.value,isCustom:e.unref(u.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...G.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...G.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),e.createElementVNode("div",{ref_key:"chartLegend",ref:X},[t.value.style.chart.legend.show&&S.value?(e.openBlock(),e.createBlock(Me.Legend,{key:0,legendSet:ce.value,config:Le.value,onClickMarker:o[3]||(o[3]=({legend:a})=>a.segregate())},{item:e.withCtx(({legend:a})=>[e.createElementVNode("div",{onClick:r=>a.segregate(),style:e.normalizeStyle(`opacity:${h.value.includes(a.id)?.5:1}`)},e.toDisplayString(a.name),13,it)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:ce.value},void 0,!0)],512),i.value.end-i.value.start<200?(e.openBlock(),e.createBlock(Fe.default,{key:5,hideDetails:"",config:{open:p.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(Re.DataTable,{colNames:F.value.colNames,head:F.value.head,body:F.value.body,config:F.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:o[4]||(o[4]=a=>p.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a},null,8,ut)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(isNaN(Number(a))?a:e.unref(u.dataLabel)({p:t.value.style.chart.bars.dataLabels.prefix,v:a,s:t.value.style.chart.bars.dataLabels.suffix,r:t.value.table.td.roundingValue})),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Ie))}},dt=De._export_sfc(ct,[["__scopeId","data-v-b55a4b06"]]);exports.default=dt;
|