vue-data-ui 2.3.26 → 2.3.28
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/README.md +15 -8
- package/dist/{Arrow-Bkhcj4Ua.js → Arrow-BPoxM_Tq.js} +1 -1
- package/dist/{Arrow-BRk7ox-0.cjs → Arrow-C6lQ94rK.cjs} +1 -1
- package/dist/{BaseIcon-r5Y-jYX5.cjs → BaseIcon-BK5xYOzV.cjs} +1 -1
- package/dist/{BaseIcon-Cr58pV0U.js → BaseIcon-Op8_v5x7.js} +4 -3
- package/dist/{DataTable-BM_PreHp.cjs → DataTable-B4_9ynlY.cjs} +1 -1
- package/dist/{DataTable-DFEpvyNK.js → DataTable-bEXuvNn5.js} +2 -2
- package/dist/{Legend-yNP9uHMI.cjs → Legend-BNfS77GS.cjs} +1 -1
- package/dist/{Legend-C-mWIWYw.js → Legend-DwludSgp.js} +1 -1
- package/dist/{Shape-CN-v5JU3.js → Shape-COYAxpcP.js} +1 -1
- package/dist/{Shape-DBO11ZkD.cjs → Shape-CcWWIf-s.cjs} +1 -1
- package/dist/{Slicer-DK9Yp2l3.js → Slicer-Cv-2s_-r.js} +1 -1
- package/dist/{Slicer-CTw_6ddN.cjs → Slicer-DGkm-5p-.cjs} +1 -1
- package/dist/{Title-BFBOWO3Q.js → Title-CtWGLaoz.js} +1 -1
- package/dist/{Title-R6PrAyfG.cjs → Title-DQz9dO4d.cjs} +1 -1
- package/dist/{Tooltip-DravvC2X.js → Tooltip-D6BUVHr1.js} +1 -1
- package/dist/{Tooltip-DAjRpG7b.cjs → Tooltip-DQgBkgFk.cjs} +1 -1
- package/dist/documentation/installation.md +4 -3
- package/dist/{index-Ck92ROEN.js → index-BhCM2QF1.js} +878 -537
- package/dist/index-Y23HeR26.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +170 -33
- package/dist/types/vue-data-ui.d.ts +170 -33
- package/dist/{useNestedProp-CUrnndD5.cjs → useNestedProp-C2H2jmU6.cjs} +1 -1
- package/dist/{useNestedProp-C0fDv_7c.js → useNestedProp-CH3PVhvc.js} +1 -1
- package/dist/{usePrinter-DBPRZcAN.js → usePrinter-B75HLwzw.js} +1 -1
- package/dist/{usePrinter-c6hW2FYl.cjs → usePrinter-DTF28E03.cjs} +1 -1
- package/dist/{vue-data-ui-BhnYYgwX.js → vue-data-ui-DdhV5Pth.js} +64 -62
- package/dist/vue-data-ui-cqeqQWwY.cjs +9 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +37 -36
- package/dist/{vue-ui-3d-bar-DXLZL0d1.cjs → vue-ui-3d-bar-BB6yidY7.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-B2bAI0Ok.js → vue-ui-3d-bar-gi0fEJUl.js} +7 -7
- package/dist/{vue-ui-accordion-CYyb5N_o.js → vue-ui-accordion-CSZdj7wA.js} +3 -3
- package/dist/{vue-ui-accordion-jSupvtFc.cjs → vue-ui-accordion-CVrj6roI.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DfD0KmQj.js → vue-ui-age-pyramid-CFSWDX3d.js} +8 -8
- package/dist/{vue-ui-age-pyramid-07V7HAUc.cjs → vue-ui-age-pyramid-CrTadT86.cjs} +1 -1
- package/dist/{vue-ui-annotator-DPxczJLi.js → vue-ui-annotator-DqZU11ky.js} +1 -1
- package/dist/{vue-ui-annotator-Cn3IeVBP.cjs → vue-ui-annotator-u5YbenPl.cjs} +1 -1
- package/dist/{vue-ui-candlestick-3oyL2e4C.cjs → vue-ui-candlestick-C3xswSm3.cjs} +1 -1
- package/dist/{vue-ui-candlestick-D5lyf_Oa.js → vue-ui-candlestick-Dph2PhZC.js} +9 -9
- package/dist/{vue-ui-carousel-table-BolCtd-r.cjs → vue-ui-carousel-table-0S6lSZnt.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CMm6zqzo.js → vue-ui-carousel-table-eY08SE2G.js} +4 -4
- package/dist/{vue-ui-chestnut-BaZuTrGs.js → vue-ui-chestnut-BikYCrjQ.js} +6 -6
- package/dist/{vue-ui-chestnut-7EjCEIHL.cjs → vue-ui-chestnut-C3XOHDgw.cjs} +1 -1
- package/dist/{vue-ui-cursor-D_Q1P1gt.cjs → vue-ui-cursor-DUA57VkZ.cjs} +1 -1
- package/dist/{vue-ui-cursor-BNflEMT2.js → vue-ui-cursor-OFgeAFSo.js} +2 -2
- package/dist/{vue-ui-dashboard-D2RbUnMC.cjs → vue-ui-dashboard-BTG0m9YL.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CjPmVfs3.js → vue-ui-dashboard-DA4M1Z0-.js} +2 -2
- package/dist/{vue-ui-digits-DZPhwYe-.js → vue-ui-digits-55Zmunkv.js} +2 -2
- package/dist/{vue-ui-digits-CgrkyBWm.cjs → vue-ui-digits-COxRiMVI.cjs} +1 -1
- package/dist/{vue-ui-donut-CT4WPUa9.js → vue-ui-donut-CG3VWjnG.js} +9 -9
- package/dist/{vue-ui-donut-OZoCX5cL.cjs → vue-ui-donut-JA9hlLlV.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-HBigDBJ1.js → vue-ui-donut-evolution-CA8sDbwX.js} +9 -9
- package/dist/{vue-ui-donut-evolution-B5QxzbPT.cjs → vue-ui-donut-evolution-_E0xUI9Y.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-D3bJRtj_.cjs → vue-ui-dumbbell-BSFT-Bce.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BbsbYS3D.js → vue-ui-dumbbell-BtEXt5Ox.js} +8 -8
- package/dist/{vue-ui-flow-JFuGf_sv.js → vue-ui-flow-BBoXBTkC.js} +7 -7
- package/dist/{vue-ui-flow-CfoQVPzv.cjs → vue-ui-flow-BPEGOFRZ.cjs} +1 -1
- package/dist/{vue-ui-galaxy-CvZ1nzpB.cjs → vue-ui-galaxy-DPrJum3L.cjs} +1 -1
- package/dist/{vue-ui-galaxy-e4ZjPVWn.js → vue-ui-galaxy-ZFEufIyy.js} +9 -9
- package/dist/{vue-ui-gauge-KjRrEYR0.js → vue-ui-gauge-BqZp_V5m.js} +5 -5
- package/dist/{vue-ui-gauge-B_LND1ru.cjs → vue-ui-gauge-CfZ9XJW_.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CBtza3IW.cjs → vue-ui-gizmo-CrSaW32p.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DzUxGQT6.js → vue-ui-gizmo-DitbWAJp.js} +2 -2
- package/dist/{vue-ui-heatmap-CT1YT1xR.cjs → vue-ui-heatmap-CTRjjhmd.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BYrZ7lqp.js → vue-ui-heatmap-zV0pg2Q5.js} +8 -8
- package/dist/{vue-ui-kpi-DViXiLEh.cjs → vue-ui-kpi-B2Bo26hh.cjs} +1 -1
- package/dist/{vue-ui-kpi-C5hCo3ZN.js → vue-ui-kpi-BWuzEkyY.js} +2 -2
- package/dist/{vue-ui-mini-loader-BVSeWn2P.js → vue-ui-mini-loader-BwAWiK3k.js} +2 -2
- package/dist/{vue-ui-mini-loader-DDcjfpGi.cjs → vue-ui-mini-loader-C_Nb-qVd.cjs} +1 -1
- package/dist/{vue-ui-molecule-pOHE_E-U.js → vue-ui-molecule-BD2UW2lJ.js} +9 -9
- package/dist/{vue-ui-molecule--7cCYOj1.cjs → vue-ui-molecule-CSbXNrvu.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Co6cLOze.js → vue-ui-mood-radar-CbMab8pJ.js} +9 -9
- package/dist/{vue-ui-mood-radar-DhmpKZpW.cjs → vue-ui-mood-radar-zpxdsZ4u.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BFyjhjQ_.cjs → vue-ui-nested-donuts-07UI_VlW.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-kZh0P2Zc.js → vue-ui-nested-donuts-SDaiotgC.js} +9 -9
- package/dist/{vue-ui-onion-DSGKwLbh.js → vue-ui-onion-BamHJBdP.js} +9 -9
- package/dist/{vue-ui-onion-BoKPJLJS.cjs → vue-ui-onion-DiychUul.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-B1I7MZP6.js → vue-ui-parallel-coordinate-plot-1R4CyBdQ.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-BLAKE17u.cjs → vue-ui-parallel-coordinate-plot-BaAa3t1h.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CHdlKi32.js → vue-ui-quadrant-CKCLhAS7.js} +10 -10
- package/dist/{vue-ui-quadrant-BIPClpre.cjs → vue-ui-quadrant-DxLYb8Mk.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-ChnLIxWE.js → vue-ui-quick-chart-CAXuRSdm.js} +6 -6
- package/dist/{vue-ui-quick-chart-5GZ03bOo.cjs → vue-ui-quick-chart-DgCRM6WA.cjs} +1 -1
- package/dist/{vue-ui-radar-BIogM1O1.js → vue-ui-radar-BY-y8Mal.js} +10 -10
- package/dist/{vue-ui-radar-BWPQ2p4R.cjs → vue-ui-radar-iETP_3US.cjs} +1 -1
- package/dist/{vue-ui-rating-Y3i8Ogz9.js → vue-ui-rating-Bq1SsByA.js} +2 -2
- package/dist/{vue-ui-rating-BI9eigGC.cjs → vue-ui-rating-DGEgzOaB.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-m1hqaBQ0.js → vue-ui-relation-circle-BPzLP6U6.js} +5 -5
- package/dist/{vue-ui-relation-circle-9tS5nJOC.cjs → vue-ui-relation-circle-pdZ79G9r.cjs} +1 -1
- package/dist/{vue-ui-rings-BGa6d8nO.js → vue-ui-rings-C5ce6pEf.js} +9 -9
- package/dist/{vue-ui-rings-C2f4ARZJ.cjs → vue-ui-rings-DdpKT3DJ.cjs} +1 -1
- package/dist/{vue-ui-scatter-B5aIcdg9.js → vue-ui-scatter-CMetujXJ.js} +10 -10
- package/dist/{vue-ui-scatter-CSAIrCEA.cjs → vue-ui-scatter-Dsc6RABP.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BxURLkX-.js → vue-ui-screenshot--2aeIH_x.js} +1 -1
- package/dist/{vue-ui-screenshot-CHnimNZm.cjs → vue-ui-screenshot-BqzljUT3.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DwEcR_uq.cjs → vue-ui-skeleton-B5Z4craS.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B_c8tnen.js → vue-ui-skeleton-_VMQ594N.js} +2 -2
- package/dist/{vue-ui-smiley-UfNprSwL.cjs → vue-ui-smiley-CL-bubXk.cjs} +1 -1
- package/dist/{vue-ui-smiley-CV3_wGOs.js → vue-ui-smiley-Cty3e_yE.js} +2 -2
- package/dist/{vue-ui-spark-trend-DgqT22Rz.cjs → vue-ui-spark-trend-DT1fMqf_.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-7KqTeaKP.js → vue-ui-spark-trend-pgdWTEqG.js} +4 -4
- package/dist/{vue-ui-sparkbar-ekQGLCse.js → vue-ui-sparkbar-BVQPOz2O.js} +3 -3
- package/dist/{vue-ui-sparkbar-DZoXx0tC.cjs → vue-ui-sparkbar-kfA-BPVJ.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-7hgIimV9.cjs → vue-ui-sparkgauge-DdzlyDsm.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CsU1IpLn.js → vue-ui-sparkgauge-Dx2gFX6H.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CRY_Y5eU.cjs → vue-ui-sparkhistogram-B5xstgQG.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-_S3BGzoc.js → vue-ui-sparkhistogram-Bg_fJsT5.js} +4 -4
- package/dist/{vue-ui-sparkline-DRu2dwsD.js → vue-ui-sparkline-BWl_B6LX.js} +3 -3
- package/dist/{vue-ui-sparkline-BR6TRx3i.cjs → vue-ui-sparkline-WMI-RgkW.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DbxeqSNo.js → vue-ui-sparkstackbar-MMGRG9eS.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-aI73Hnxf.cjs → vue-ui-sparkstackbar-Skcshn6g.cjs} +1 -1
- package/dist/vue-ui-stackbar-DZ0CArmk.cjs +15 -0
- package/dist/vue-ui-stackbar-NZFO3R77.js +750 -0
- package/dist/{vue-ui-strip-plot-B1C5JAka.js → vue-ui-strip-plot-CJmCgC_a.js} +9 -9
- package/dist/{vue-ui-strip-plot-CuhUA0Qj.cjs → vue-ui-strip-plot-Db_dqjd9.cjs} +1 -1
- package/dist/{vue-ui-table-vZxmfkYh.js → vue-ui-table-B-vHHlRw.js} +1 -1
- package/dist/{vue-ui-table-heatmap-B-we4-9Z.js → vue-ui-table-heatmap-BfzDb2H7.js} +4 -4
- package/dist/{vue-ui-table-heatmap-CMASM_wg.cjs → vue-ui-table-heatmap-YCyFyq8J.cjs} +1 -1
- package/dist/{vue-ui-table-BKq6uaQQ.cjs → vue-ui-table-jJ3daLHe.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CXr9vhM1.cjs → vue-ui-table-sparkline-4Qbmxxsy.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DBBEauiC.js → vue-ui-table-sparkline-DZt-bo2D.js} +5 -5
- package/dist/{vue-ui-thermometer-_KBWIP2u.js → vue-ui-thermometer-CdtG1AoI.js} +5 -5
- package/dist/{vue-ui-thermometer-8Nd55_MN.cjs → vue-ui-thermometer-HXWDU2wD.cjs} +1 -1
- package/dist/{vue-ui-timer-CgYqGFuQ.cjs → vue-ui-timer-Cb95XSdn.cjs} +1 -1
- package/dist/{vue-ui-timer-D_UhMYSm.js → vue-ui-timer-DBqMb9iX.js} +4 -4
- package/dist/{vue-ui-tiremarks-7TlDnrfz.cjs → vue-ui-tiremarks-BqXfvQ4t.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-Dy1h0ZlT.js → vue-ui-tiremarks-CHKETcHr.js} +5 -5
- package/dist/{vue-ui-treemap-feRelA00.cjs → vue-ui-treemap-CW9JmJ2d.cjs} +1 -1
- package/dist/{vue-ui-treemap-DrXs6PXS.js → vue-ui-treemap-DxKunHfW.js} +9 -9
- package/dist/{vue-ui-vertical-bar-ICikmicE.cjs → vue-ui-vertical-bar-83AMwsHD.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BcIZTywJ.js → vue-ui-vertical-bar-DRLwZjIz.js} +9 -9
- package/dist/{vue-ui-waffle-DtIGHSlB.js → vue-ui-waffle-BRuDxyDU.js} +9 -9
- package/dist/{vue-ui-waffle-CGhfSP2_.cjs → vue-ui-waffle-BwUbvdOE.cjs} +1 -1
- package/dist/{vue-ui-wheel-B6Cya6I_.js → vue-ui-wheel-4HKXl04I.js} +5 -5
- package/dist/{vue-ui-wheel-EdABo6ty.cjs → vue-ui-wheel-kMVi976p.cjs} +1 -1
- package/dist/vue-ui-word-cloud-CrC3iKGd.js +495 -0
- package/dist/vue-ui-word-cloud-WgbYJhMF.cjs +1 -0
- package/dist/{vue-ui-xy-D1yhL28g.js → vue-ui-xy-BN_H7q0X.js} +12 -12
- package/dist/{vue-ui-xy-DOWVG8x2.cjs → vue-ui-xy-BXfP5pz5.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-D2VfaNJf.js → vue-ui-xy-canvas-DAY9Ylzs.js} +10 -10
- package/dist/{vue-ui-xy-canvas-Dp8YKKTs.cjs → vue-ui-xy-canvas-NrhVgFsv.cjs} +1 -1
- package/package.json +2 -1
- package/dist/index-D2z8eN-t.cjs +0 -4
- package/dist/vue-data-ui-B1MbygY4.cjs +0 -9
- package/dist/vue-ui-word-cloud-DQV03srb.cjs +0 -1
- package/dist/vue-ui-word-cloud-narokI2y.js +0 -352
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-Y23HeR26.cjs"),ae=require("./useNestedProp-C2H2jmU6.cjs"),le=require("./useResponsive-B3TrDDIG.cjs"),oe=require("./usePrinter-DTF28E03.cjs"),pe=require("./Slicer-DGkm-5p-.cjs"),be=require("./Tooltip-DQgBkgFk.cjs"),fe=require("./Title-DQz9dO4d.cjs"),ke=require("./Legend-BNfS77GS.cjs"),xe=require("./vue-ui-accordion-CVrj6roI.cjs"),Ce=require("./DataTable-B4_9ynlY.cjs"),we=require("./vue-ui-skeleton-B5Z4craS.cjs"),Be=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=["id"],$e=["xmlns","viewBox"],Le={key:0},Ne=["id"],ze=["stop-color"],_e=["stop-color"],Te=["stop-color"],Ee=["x1","x2","y1","y2","stroke"],Ve=["x1","x2","y1","y2","stroke"],Re=["d","fill","stroke","stroke-width"],Pe=["x1","x2","y1","y2","stroke","stroke-width"],Fe=["x1","x2","y1","y2","stroke","stroke-width"],Me=["x","y","font-size","fill","font-weight"],De=["transform","font-size","fill","font-weight"],Oe=["x","y","font-size","fill","font-weight"],qe={key:0},Ae=["x","y","font-size","font-weight","fill"],He=["x1","x2","y1","y2","stroke"],Ie=["x","y","font-size","font-weight","fill"],Ue=["text-anchor","font-size","font-weight","fill","transform"],We=["x","y","width","height","onClick","onMouseenter","fill"],Ge={key:3,class:"vue-data-ui-watermark"},Ye=["onClick"],Xe=["innerHTML"],Je={__name:"vue-ui-stackbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint","selectLegend"],setup(F,{expose:re,emit:M}){const b=F,{vue_ui_stackbar:se}=i.useConfig(),C=e.computed({get(){return!!b.dataset&&b.dataset.length},set(l){return l}}),B=e.ref(null),_=e.ref(i.createUid()),T=e.ref(!1),D=e.ref(null),E=e.ref(""),p=e.ref([]),O=e.ref(0),q=e.ref(null),A=e.ref(null),H=e.ref(null),I=e.ref(0),V=e.ref(!1),R=e.ref(null);e.onMounted(()=>{i.objectIsEmpty(b.dataset)?i.error({componentName:"VueUiStackbar",type:"dataset"}):b.dataset.forEach((l,o)=>{i.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","series"]}).forEach(a=>{C.value=!1,i.error({componentName:"VueUiStackbar",type:"datasetSerieAttribute",property:a,index:o})})})});const t=e.computed(()=>{const l=ae.useNestedProp({userConfig:b.config,defaultConfig:se});return l.theme?{...ae.useNestedProp({userConfig:i.themes.vue_ui_stackbar[l.theme]||b.config,defaultConfig:l}),customPalette:i.themePalettes[l.theme]||i.palette}:l}),y=e.ref({dataLabels:{show:t.value.style.chart.bars.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),{isPrinting:U,isImaging:W,generatePdf:G,generateImage:Y}=oe.usePrinter({elementId:`stackbar_${_.value}`,fileName:t.value.style.chart.title.text||"vue-ui-stackbar"}),$=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}}),ne=e.computed(()=>i.convertCustomPalette(t.value.customPalette)),X=e.ref(null);e.onMounted(()=>{if(t.value.responsive){const l=le.throttle(()=>{const{width:o,height:a}=le.useResponsive({chart:B.value,title:t.value.style.chart.title.text?q.value:null,legend:t.value.style.chart.legend.show?A.value:null,slicer:t.value.style.chart.zoom.show&&L.value>1?H.value:null});$.value.width=o,$.value.height=a});X.value=new ResizeObserver(l),X.value.observe(B.value.parentNode)}});const n=e.computed(()=>{const{height:l,width:o}=$.value,{right:a}=$.value.paddingRatio,s=t.value.style.chart.padding.top,r=o-o*a,u=l-t.value.style.chart.padding.bottom,v=t.value.style.chart.padding.left,g=o-v-o*a,m=l-s-t.value.style.chart.padding.bottom;return{chartHeight:l,chartWidth:o,top:s,right:r,bottom:u,left:v,width:g,height:m}}),w=e.computed(()=>b.dataset.map((l,o)=>{const a=i.convertColorToHex(l.color)||ne.value[o]||i.palette[o]||i.palette[o%i.palette.length];return{...l,absoluteIndex:o,id:i.createUid(),color:a}})),L=e.computed(()=>Math.max(...w.value.filter(l=>!p.value.includes(l.id)).map(l=>l.series.length))),c=e.ref({start:0,end:Math.max(...b.dataset.map(l=>l.series.length))});function ue(){c.value={start:0,end:Math.max(...b.dataset.map(l=>l.series.length))},I.value+=1}const h=e.computed(()=>{const l=n.value.width/(c.value.end-c.value.start);return l<=0?0:l}),x=e.computed(()=>i.sumSeries(w.value.filter(l=>!p.value.includes(l.id))).slice(c.value.start,c.value.end)),P=e.computed(()=>{const l=Math.max(...x.value),o=i.calculateNiceScale(0,l,t.value.style.chart.grid.scale.ticks);return o.ticks.map(a=>({y:n.value.bottom-n.value.height*(a/o.max),x:n.value.left-8,value:a}))}),N=e.computed(()=>t.value.style.chart.grid.x.timeLabels.values.slice(c.value.start,c.value.end)),d=e.computed(()=>{if(!C.value)return[];let l=Array(L.value).fill(0);const o=n.value.height,a=Math.max(...x.value),r=i.calculateNiceScale(0,a,t.value.style.chart.grid.scale.ticks).max;return w.value.filter(u=>!p.value.includes(u.id)).map(u=>{const v=u.series.slice(c.value.start,c.value.end);return{...u,proportions:v.map((g,m)=>t.value.style.chart.bars.distributed?(g||0)/x.value[m]:(g||0)/r),series:v,x:v.map((g,m)=>n.value.left+h.value*m+h.value*t.value.style.chart.bars.gapRatio/4),y:v.map((g,m)=>{const f=t.value.style.chart.bars.distributed?(g||0)/x.value[m]:(g||0)/r,S=o*f,k=o-S-l[m];return l[m]+=S,k+n.value.top}),height:v.map((g,m)=>{const f=t.value.style.chart.bars.distributed?(g||0)/x.value[m]:(g||0)/r;return o*f<=0?0:o*f})}})}),ie=e.computed(()=>{const l=Math.max(...x.value),a=i.calculateNiceScale(0,l,t.value.style.chart.grid.scale.ticks).max;return x.value.map((s,r)=>({value:s,y:(1-s/a)*n.value.height}))});function J(l){return i.dataLabel({p:t.value.style.chart.bars.dataLabels.prefix,v:l,s:t.value.style.chart.bars.dataLabels.suffix,r:t.value.style.chart.bars.dataLabels.rounding})}function ce(l){return i.dataLabel({v:l,s:"%",r:t.value.style.chart.bars.dataLabels.rounding})}function de(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}));M("selectDatapoint",{datapoint:o,period:N.value[l]})}function ve(l){R.value=l,T.value=!0;const o=t.value.style.chart.tooltip.customFormat,a=JSON.parse(JSON.stringify(d.value)).map(r=>({name:r.name,value:r.series[l]===0?0:r.series[l]||null,proportion:r.proportions[l]||null,color:r.color,id:r.id})),s=a.map(r=>r.value).reduce((r,u)=>r+u,0);if(i.isFunction(o)&&i.functionReturnsString(()=>o({seriesIndex:l,datapoint:a,series:d.value,config:t.value})))E.value=o({seriesIndex:l,datapoint:a,series:d.value,config:t.value});else{const{showValue:r,showPercentage:u,borderColor:v,roundingValue:g,roundingPercentage:m}=t.value.style.chart.tooltip;let f="";N.value[l]&&(f+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${v};padding-bottom:6px;margin-bottom:3px;">${N.value[l]}</div>`);const S=[r&&u?"(":"",r&&u?")":""];a.reverse().forEach(k=>{f+=`
|
|
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_${k.id})`:k.color}"/></svg>
|
|
4
|
+
${k.name}${r||u?":":""} ${r?i.dataLabel({p:t.value.style.chart.bars.dataLabels.prefix,v:k.value,s:t.value.style.chart.bars.dataLabels.suffix,r:g}):""} ${S[0]}${u?i.dataLabel({v:isNaN(k.value/s)?0:k.value/s*100,s:"%",r:m}):""}${S[1]}
|
|
5
|
+
</div>
|
|
6
|
+
`}),E.value=`<div>${f}</div>`}}function he(l){V.value=l,O.value+=1}function K(){y.value.showTable=!y.value.showTable}function Q(){y.value.dataLabels.show=!y.value.dataLabels.show}function Z(){y.value.showTooltip=!y.value.showTooltip}function ge(){return d.value}const j=e.computed(()=>{if(d.value.length===0)return{head:[],body:[],config:{},columnNames:[]};const l=d.value.map(({name:a,color:s})=>({label:a,color:s})),o=[];for(let a=c.value.start;a<c.value.end;a+=1){const s=[t.value.style.chart.grid.x.timeLabels.values[a]||a+1];w.value.forEach(r=>{s.push(Number((r.series[a]||0).toFixed(t.value.table.td.roundingValue)))}),o.push(s)}return{head:l,body:o}});function ee(){const l=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=["",...j.value.head.map(u=>u.label)],a=j.value.body,s=l.concat([o]).concat(a),r=i.createCsvContent(s);i.downloadCsv({csvContent:r,title:t.value.style.chart.title.text||"vue-ui-stackbar"})}const z=e.computed(()=>{const l=[""].concat(d.value.map(r=>r.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 r=0;r<L.value;r+=1){const u=d.value.map(v=>v.series[r]??0).reduce((v,g)=>v+g,0);o.push([t.value.style.chart.grid.x.timeLabels.values.slice(c.value.start,c.value.end)[r]??r+1].concat(d.value.map(v=>(v.series[r]??0).toFixed(t.value.table.rounding))).concat((u??0).toFixed(t.value.table.rounding)))}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},s=[t.value.table.columnNames.period].concat(d.value.map(r=>r.name)).concat(t.value.table.columnNames.total);return{head:l,body:o.slice(0,c.value.end-c.value.start),config:a,colNames:s}});function me(l,o){if(M("selectLegend",d.value.find(a=>a.absoluteIndex===l)),p.value.includes(o.id))p.value=p.value.filter(a=>a!==o.id);else{if(p.value.length===w.value.length-1)return;p.value.push(o.id)}}const te=e.computed(()=>w.value.map((l,o)=>({...l,shape:"square"})).map(l=>({...l,opacity:p.value.includes(l.id)?.5:1,segregate:()=>me(l.absoluteIndex,l),isSegregated:p.value.includes(l.id)}))),ye=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 re({getData:ge,generatePdf:G,generateCsv:ee,generateImage:Y,toggleTable:K,toggleLabels:Q,toggleTooltip:Z}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{id:`stackbar_${_.value}`,ref_key:"stackbarChart",ref:B,class:e.normalizeClass({"vue-ui-stackbar":!0,"vue-data-ui-wrapper-fullscreen":V.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:q,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:24px`)},[e.createVNode(fe._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&&C.value?(e.openBlock(),e.createBlock(oe.UserOptions,{ref:"details",key:`user_option_${O.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(U),isImaging:e.unref(W),uid:_.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:V.value,chartElement:B.value,isTooltip:y.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},onToggleFullscreen:he,onGeneratePdf:e.unref(G),onGenerateCsv:ee,onGenerateImage:e.unref(Y),onToggleTable:K,onToggleLabels:Q,onToggleTooltip:Z},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:s})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:s})),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),C.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(i.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",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,s)=>(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,ze),e.createElementVNode("stop",{offset:"61.8%","stop-color":e.unref(i.lightenHexColor)(a.color,t.value.style.chart.bars.gradient.intensity/100)},null,8,_e),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Te)],8,Ne))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.x.showHorizontalLines?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(P.value,(a,s)=>(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,Ee))),256)):e.createCommentVNode("",!0),t.value.style.chart.grid.y.showVerticalLines?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(c.value.end-c.value.start+1,(a,s)=>(e.openBlock(),e.createElementBlock("line",{x1:n.value.left+h.value*s,x2:n.value.left+h.value*s,y1:n.value.top,y2:n.value.bottom,stroke:t.value.style.chart.grid.y.axisColor,"stroke-width":1},null,8,Ve))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,s)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.x,(r,u)=>(e.openBlock(),e.createElementBlock("path",{d:s===d.value.length-1&&d.value.at(-1).series[u]||!d.value.at(-1).series[u]&&s<d.value.length-1&&d.value[s].series[u]&&!d.value[s+1].series[u]?`M ${r},${a.y[u]}
|
|
7
|
+
h ${h.value*(1-t.value.style.chart.bars.gapRatio/2)-t.value.style.chart.bars.borderRadius}
|
|
8
|
+
a ${t.value.style.chart.bars.borderRadius},${t.value.style.chart.bars.borderRadius} 0 0 1 ${t.value.style.chart.bars.borderRadius},${t.value.style.chart.bars.borderRadius}
|
|
9
|
+
v ${a.height[u]-t.value.style.chart.bars.borderRadius<0?0:a.height[u]-t.value.style.chart.bars.borderRadius}
|
|
10
|
+
h -${h.value*(1-t.value.style.chart.bars.gapRatio/2)}
|
|
11
|
+
v -${a.height[u]-t.value.style.chart.bars.borderRadius<0?0:a.height[u]-t.value.style.chart.bars.borderRadius}
|
|
12
|
+
a ${t.value.style.chart.bars.borderRadius},${t.value.style.chart.bars.borderRadius} 0 0 1 ${t.value.style.chart.bars.borderRadius},-${t.value.style.chart.bars.borderRadius} z`:`M ${r},${a.y[u]}
|
|
13
|
+
h ${h.value*(1-t.value.style.chart.bars.gapRatio/2)}
|
|
14
|
+
v ${a.height[u]<0?0:a.height[u]}
|
|
15
|
+
h -${h.value*(1-t.value.style.chart.bars.gapRatio/2)} z`,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})},null,10,Re))),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,Pe)):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,Fe)):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,Me)):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,De)):e.createCommentVNode("",!0),y.value.dataLabels.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:7},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,s)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.x,(r,u)=>(e.openBlock(),e.createElementBlock("text",{x:r+h.value*(1-t.value.style.chart.bars.gapRatio/2)/2,y:a.y[u]+a.proportions[u]*n.value.height/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(i.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?ce(a.proportions[u]*100):J(a.series[u])),9,Oe))),256))]))),256)),t.value.style.chart.bars.totalValues.show&&d.value.length>1?(e.openBlock(),e.createElementBlock("g",qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ie.value,(a,s)=>(e.openBlock(),e.createElementBlock("text",{x:n.value.left+h.value*s+h.value/2,y:(t.value.style.chart.bars.distributed?n.value.top-t.value.style.chart.bars.totalValues.fontSize/3:a.y)+t.value.style.chart.bars.totalValues.offsetY,"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(J(a.value)),9,Ae))),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(P.value,(a,s)=>(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,He))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,(a,s)=>(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(i.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,Ie))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.grid.x.timeLabels.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:9},e.renderList(N.value,(a,s)=>(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+h.value*s+h.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,Ue))),256)):e.createCommentVNode("",!0),y.value.showTooltip?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:10},e.renderList(c.value.end-c.value.start,(a,s)=>(e.openBlock(),e.createElementBlock("rect",{x:n.value.left+s*h.value,y:n.value.top,width:h.value,height:n.value.height,onClick:r=>de(s),onMouseenter:r=>ve(s),onMouseleave:o[0]||(o[0]=r=>{R.value=null,T.value=!1}),fill:s===R.value?t.value.style.chart.highlighter.color+e.unref(i.opacity)[t.value.style.chart.highlighter.opacity]:"transparent"},null,40,We))),256)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",e.normalizeProps(e.guardReactiveProps({...n.value})),void 0,!0)],12,$e)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ge,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(U)||e.unref(W)})),void 0,!0)])):e.createCommentVNode("",!0),C.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(we.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:H,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor}`),"data-html2canvas-ignore":""},[t.value.style.chart.zoom.show&&L.value>1?(e.openBlock(),e.createBlock(pe.Slicer,{key:`slicer_${I.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[c.value.start]?t.value.style.chart.grid.x.timeLabels.values[c.value.start]:"",labelRight:t.value.style.chart.grid.x.timeLabels.values[c.value.end-1]?t.value.style.chart.grid.x.timeLabels.values[c.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(...F.dataset.map(a=>a.series.length)),min:0,valueStart:c.value.start,valueEnd:c.value.end,start:c.value.start,"onUpdate:start":o[1]||(o[1]=a=>c.value.start=a),end:c.value.end,"onUpdate:end":o[2]||(o[2]=a=>c.value.end=a),onReset:ue},{"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(be._sfc_main,{show:y.value.showTooltip&&T.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:B.value,content:E.value,isCustom:e.unref(i.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...D.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...D.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),e.createElementVNode("div",{ref_key:"chartLegend",ref:A},[t.value.style.chart.legend.show&&C.value?(e.openBlock(),e.createBlock(ke.Legend,{key:0,legendSet:te.value,config:ye.value,onClickMarker:o[3]||(o[3]=({legend:a})=>a.segregate())},{item:e.withCtx(({legend:a})=>[e.createElementVNode("div",{onClick:s=>a.segregate(),style:e.normalizeStyle(`opacity:${p.value.includes(a.id)?.5:1}`)},e.toDisplayString(a.name),13,Ye)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:te.value},void 0,!0)],512),c.value.end-c.value.start<200?(e.openBlock(),e.createBlock(xe.default,{key:5,hideDetails:"",config:{open:y.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(Ce.DataTable,{colNames:z.value.colNames,head:z.value.head,body:z.value.body,config:z.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=>y.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a},null,8,Xe)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Se))}},Ke=Be._export_sfc(Je,[["__scopeId","data-v-5aeb6468"]]);exports.default=Ke;
|