vue-data-ui 2.4.66 → 2.4.68
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 +51 -3
- package/dist/{Arrow-DnHGHQq6.js → Arrow-D5Ik6Rl_.js} +1 -1
- package/dist/{Arrow-CinoagyA.cjs → Arrow-DTyx6yXe.cjs} +1 -1
- package/dist/{BaseIcon-DDhFGhji.cjs → BaseIcon-At97xJaA.cjs} +1 -1
- package/dist/{BaseIcon-BL0i0eFe.js → BaseIcon-D7H3G8-f.js} +1 -1
- package/dist/{DataTable-CrQ-j4UZ.js → DataTable-CNH8bChE.js} +2 -2
- package/dist/{DataTable-CrU6NsnZ.cjs → DataTable-Dng-zRfh.cjs} +1 -1
- package/dist/{Legend-B05Ec_1l.js → Legend-kF7sC1KK.js} +2 -2
- package/dist/{Legend-CpC2khOT.cjs → Legend-kMbr5DZt.cjs} +1 -1
- package/dist/{PackageVersion-BTEZS-AO.cjs → PackageVersion-CHUMvFGr.cjs} +1 -1
- package/dist/{PackageVersion-yUQtXKwp.js → PackageVersion-m6HC0skh.js} +1 -1
- package/dist/{PenAndPaper-BaKbiNrh.cjs → PenAndPaper-DmMAK04m.cjs} +1 -1
- package/dist/{PenAndPaper-CYyJrFfM.js → PenAndPaper-FOhKSug_.js} +3 -3
- package/dist/{Shape-CDFEALe-.cjs → Shape-Ajzs1V3O.cjs} +1 -1
- package/dist/{Shape-BpLTlC_C.js → Shape-CfcWXI5g.js} +1 -1
- package/dist/{Slicer-C4sOxE_0.js → Slicer-Bq3BajcJ.js} +2 -2
- package/dist/{Slicer-8RJ40s0G.cjs → Slicer-Cgyw5vYE.cjs} +1 -1
- package/dist/{Title-BAqipUCK.cjs → Title-C7y-iI1m.cjs} +1 -1
- package/dist/{Title-DzwQyxHK.js → Title-L52l_KMR.js} +1 -1
- package/dist/{Tooltip-zI1jiDe6.js → Tooltip-FYp9ljnj.js} +1 -1
- package/dist/{Tooltip-Bg6dUJYI.cjs → Tooltip-Y622sV6l.cjs} +1 -1
- package/dist/{index-CTPLFZB1.js → index-3_ulDZ6w.js} +8 -7
- package/dist/{index-D34VnlKo.cjs → index-CPtAxuTc.cjs} +3 -3
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +11 -0
- package/dist/types/vue-data-ui.d.ts +11 -0
- package/dist/{useNestedProp-CYQCqGyq.js → useNestedProp-Bs6ltq3I.js} +1 -1
- package/dist/{useNestedProp-DQqkm_M2.cjs → useNestedProp-BtCZVKOm.cjs} +1 -1
- package/dist/{usePrinter-VZV9i0vE.cjs → usePrinter-BmNhTUGE.cjs} +1 -1
- package/dist/{usePrinter-BOhLGHKi.js → usePrinter-NdwnpHUu.js} +1 -1
- package/dist/vue-data-ui-C4MFJb3X.cjs +9 -0
- package/dist/vue-data-ui-qqS_JEAb.js +288 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +41 -40
- package/dist/{vue-ui-3d-bar-Bia0XepA.js → vue-ui-3d-bar-B-DPM6sB.js} +9 -9
- package/dist/{vue-ui-3d-bar-DMJ8_prS.cjs → vue-ui-3d-bar-D1Q5GpB8.cjs} +1 -1
- package/dist/{vue-ui-accordion-DLo-MS7a.js → vue-ui-accordion-DXlXtAML.js} +3 -3
- package/dist/{vue-ui-accordion-CB-ii53-.cjs → vue-ui-accordion-Dd0mfQys.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-SRYqnWde.js → vue-ui-age-pyramid-CEw1j90S.js} +10 -10
- package/dist/{vue-ui-age-pyramid-BsCRCTkU.cjs → vue-ui-age-pyramid-Dn8sTUD1.cjs} +1 -1
- package/dist/{vue-ui-annotator-CRyAG0LO.cjs → vue-ui-annotator-DLwKn7nJ.cjs} +1 -1
- package/dist/{vue-ui-annotator-CMEi2CeL.js → vue-ui-annotator-I7b5208U.js} +1 -1
- package/dist/{vue-ui-bullet-DMqGu5l7.cjs → vue-ui-bullet-B_toFHM0.cjs} +1 -1
- package/dist/{vue-ui-bullet-gH7JdVPs.js → vue-ui-bullet-CUpzxv8b.js} +8 -8
- package/dist/{vue-ui-candlestick-DvXyfStN.js → vue-ui-candlestick-D4poOC-A.js} +11 -11
- package/dist/{vue-ui-candlestick-DdRk6RyV.cjs → vue-ui-candlestick-DUjJP9IX.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-D8qRz5dB.cjs → vue-ui-carousel-table-BRdt1LUl.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DV4mDEda.js → vue-ui-carousel-table-CMP41H6W.js} +4 -4
- package/dist/{vue-ui-chestnut-BgIxc4rY.cjs → vue-ui-chestnut-BGpagpDQ.cjs} +1 -1
- package/dist/{vue-ui-chestnut--47-80Bn.js → vue-ui-chestnut-BzCjWlbs.js} +8 -8
- package/dist/{vue-ui-cursor-ktnsEEbG.js → vue-ui-cursor-CdhhPJ2w.js} +2 -2
- package/dist/{vue-ui-cursor-BkwiaFRC.cjs → vue-ui-cursor-Ike72xN1.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CLfGxnbt.js → vue-ui-dashboard-CDUpQHzg.js} +2 -2
- package/dist/{vue-ui-dashboard-DwXOmsTy.cjs → vue-ui-dashboard-CFF1xhGw.cjs} +1 -1
- package/dist/{vue-ui-digits-BZ1j5jy-.js → vue-ui-digits-Cje8oZYA.js} +2 -2
- package/dist/{vue-ui-digits-2fdBtEvo.cjs → vue-ui-digits-Cu3AtNFJ.cjs} +1 -1
- package/dist/{vue-ui-donut-CXumbWa-.cjs → vue-ui-donut-BNmui7ee.cjs} +1 -1
- package/dist/{vue-ui-donut-CbLrJw6j.js → vue-ui-donut-DyEbJv8M.js} +12 -12
- package/dist/{vue-ui-donut-evolution-C6E6ex_P.js → vue-ui-donut-evolution-B_kVMwY5.js} +11 -11
- package/dist/{vue-ui-donut-evolution-D9b_8fvQ.cjs → vue-ui-donut-evolution-BxElmgKr.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-yo3qeSim.cjs → vue-ui-dumbbell-Bb4_UIZL.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-Bw22lnUz.js → vue-ui-dumbbell-XSwVUKkI.js} +10 -10
- package/dist/{vue-ui-flow-DWasFCLd.cjs → vue-ui-flow-BxSDPsTX.cjs} +1 -1
- package/dist/{vue-ui-flow-4QNqMDZQ.js → vue-ui-flow-CT9Ikm2q.js} +9 -9
- package/dist/{vue-ui-funnel-yhpp5IjE.cjs → vue-ui-funnel-4Xz5KcCC.cjs} +1 -1
- package/dist/{vue-ui-funnel-DkTmYwFz.js → vue-ui-funnel-xE-KSwUY.js} +9 -9
- package/dist/{vue-ui-galaxy-LZr-E91c.cjs → vue-ui-galaxy-BKyxc95s.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DmWcHtQs.js → vue-ui-galaxy-CQu_2tM7.js} +11 -11
- package/dist/{vue-ui-gauge-DFDkLgtH.js → vue-ui-gauge-BML0PHj7.js} +7 -7
- package/dist/{vue-ui-gauge-ClNvXC3Q.cjs → vue-ui-gauge-BY-_g8oh.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Dp6JyPHC.js → vue-ui-gizmo-CZdz1ws4.js} +3 -3
- package/dist/{vue-ui-gizmo-D-96qCuO.cjs → vue-ui-gizmo-DCDez8vm.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BdT2qDhu.cjs → vue-ui-heatmap-B6TqJ0rT.cjs} +1 -1
- package/dist/{vue-ui-heatmap-C28SIiux.js → vue-ui-heatmap-BBhBotdK.js} +10 -10
- package/dist/{vue-ui-history-plot-BXolBuor.js → vue-ui-history-plot-CEGzb0go.js} +11 -11
- package/dist/{vue-ui-history-plot-CiIq7L89.cjs → vue-ui-history-plot-ICiiX_iG.cjs} +1 -1
- package/dist/{vue-ui-kpi-nnH0NlWt.js → vue-ui-kpi-CcY9SiQU.js} +3 -3
- package/dist/{vue-ui-kpi-Cp52wvwz.cjs → vue-ui-kpi-b1KYFaD5.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-Bxpax8Nj.js → vue-ui-mini-loader-ChYeDs8b.js} +2 -2
- package/dist/{vue-ui-mini-loader-Cl9GjcDo.cjs → vue-ui-mini-loader-DRDOwWX4.cjs} +1 -1
- package/dist/{vue-ui-molecule-DfD1wEDy.cjs → vue-ui-molecule-BC9pfKLe.cjs} +1 -1
- package/dist/{vue-ui-molecule-CnCjuJu1.js → vue-ui-molecule-C7RlUrep.js} +11 -11
- package/dist/{vue-ui-mood-radar-RPgRutQv.cjs → vue-ui-mood-radar-DuyOelxm.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CDOq4EXn.js → vue-ui-mood-radar-MwQGdQBk.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DOkP-Qof.js → vue-ui-nested-donuts-CTjWqxm1.js} +11 -11
- package/dist/{vue-ui-nested-donuts-BAKBPN7A.cjs → vue-ui-nested-donuts-DV_fUt8X.cjs} +1 -1
- package/dist/{vue-ui-onion-DTzZcLj-.cjs → vue-ui-onion-CMJQd4hJ.cjs} +1 -1
- package/dist/{vue-ui-onion-BDLsK5Yj.js → vue-ui-onion-DQU2quzY.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-onQ2LC2e.js → vue-ui-parallel-coordinate-plot-el0qRCNH.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-CxQ4dMOc.cjs → vue-ui-parallel-coordinate-plot-mr_VL-5e.cjs} +1 -1
- package/dist/vue-ui-pattern-COZLnLYz.js +146 -0
- package/dist/vue-ui-pattern-CT3p_iOg.cjs +1 -0
- package/dist/{vue-ui-quadrant-BnpSQgPI.js → vue-ui-quadrant-D4JbzGnx.js} +12 -12
- package/dist/{vue-ui-quadrant-DKFp_Xl5.cjs → vue-ui-quadrant-p1PqQgE8.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-C7yT4KRZ.js → vue-ui-quick-chart-C7dbfJas.js} +9 -9
- package/dist/{vue-ui-quick-chart-CfHuPSlh.cjs → vue-ui-quick-chart-CpVCnKQR.cjs} +1 -1
- package/dist/{vue-ui-radar-tWBSOOQ7.cjs → vue-ui-radar-B8w_jmnj.cjs} +1 -1
- package/dist/{vue-ui-radar-2yAwkUX-.js → vue-ui-radar-DwcDudGq.js} +12 -12
- package/dist/{vue-ui-rating-B6jY2NFV.cjs → vue-ui-rating-CF611kMg.cjs} +1 -1
- package/dist/{vue-ui-rating-Bn0chVr_.js → vue-ui-rating-CVWVcuH4.js} +2 -2
- package/dist/{vue-ui-relation-circle-Cq2wrLZb.js → vue-ui-relation-circle-DOqHTAlr.js} +7 -7
- package/dist/{vue-ui-relation-circle-CNQau7y6.cjs → vue-ui-relation-circle-i-IWbtjG.cjs} +1 -1
- package/dist/{vue-ui-rings-Z61TsIO0.js → vue-ui-rings-CYtiwLoa.js} +12 -12
- package/dist/{vue-ui-rings-BMSkgetK.cjs → vue-ui-rings-HITb7jlj.cjs} +1 -1
- package/dist/{vue-ui-scatter-Cd9d2gvB.js → vue-ui-scatter-Cz4FEjWs.js} +12 -12
- package/dist/{vue-ui-scatter-CZTHchb5.cjs → vue-ui-scatter-OHMJOdMx.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Dzex21Ck.js → vue-ui-screenshot-BdztwxL8.js} +1 -1
- package/dist/{vue-ui-screenshot--BsSpFoM.cjs → vue-ui-screenshot-PgLhVqsE.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CN5Eejtd.cjs → vue-ui-skeleton-DkZB7ae3.cjs} +1 -1
- package/dist/{vue-ui-skeleton-D2SlwBer.js → vue-ui-skeleton-uAX1ZH1F.js} +3 -3
- package/dist/{vue-ui-smiley-CqEd1qeu.js → vue-ui-smiley-B8AEl3OB.js} +2 -2
- package/dist/{vue-ui-smiley-BwXqK-x4.cjs → vue-ui-smiley-CdtUIpXZ.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-C37XHHpt.cjs → vue-ui-spark-trend-BvYBFEgW.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-BrEWsDTR.js → vue-ui-spark-trend-C4TeGkYj.js} +5 -5
- package/dist/{vue-ui-sparkbar-Dkn9l6Iv.js → vue-ui-sparkbar-CTjfAkYo.js} +4 -4
- package/dist/{vue-ui-sparkbar-pOZ6cirK.cjs → vue-ui-sparkbar-DB7UzjAD.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-FqKAu1Qk.js → vue-ui-sparkgauge-BlPTNi74.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BUFLskBw.cjs → vue-ui-sparkgauge-Bn2BPZoT.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CDna0c0K.cjs → vue-ui-sparkhistogram-B1mF8U0R.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-C1Rg7R7q.js → vue-ui-sparkhistogram-BKRqTMvf.js} +5 -5
- package/dist/{vue-ui-sparkline-BoQGdcb-.js → vue-ui-sparkline-Bg-TapoG.js} +4 -4
- package/dist/{vue-ui-sparkline-C4Y11Y9_.cjs → vue-ui-sparkline-Dj0hFEo0.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-CttAiR_w.js → vue-ui-sparkstackbar-D8KqTPqH.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-DBudhYEs.cjs → vue-ui-sparkstackbar-DzI-MFl3.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BOtbKiIU.js → vue-ui-stackbar-6vF4VXMO.js} +13 -13
- package/dist/{vue-ui-stackbar-DRcXZyiM.cjs → vue-ui-stackbar-e1b5UPvn.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-B_jvu-0j.cjs → vue-ui-strip-plot-GsQbr3zj.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DlHIASsp.js → vue-ui-strip-plot-sWs8kbbo.js} +11 -11
- package/dist/{vue-ui-table-CaoW2jvO.cjs → vue-ui-table-CJVmhYep.cjs} +1 -1
- package/dist/{vue-ui-table-fubeSxgu.js → vue-ui-table-SRSARac3.js} +1 -1
- package/dist/{vue-ui-table-heatmap-Cua4Oc1y.js → vue-ui-table-heatmap-CKiO41aZ.js} +4 -4
- package/dist/{vue-ui-table-heatmap-BJkfwCpI.cjs → vue-ui-table-heatmap-D1xntRRZ.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DolwHxoq.cjs → vue-ui-table-sparkline-BZJqRwhf.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-UimVaB_H.js → vue-ui-table-sparkline-hyCYl7SR.js} +5 -5
- package/dist/{vue-ui-thermometer-DJaHNf4v.cjs → vue-ui-thermometer-0bxewTlH.cjs} +1 -1
- package/dist/{vue-ui-thermometer-C__SODnz.js → vue-ui-thermometer-uYO2Cbv6.js} +7 -7
- package/dist/{vue-ui-timer-CkQvP03G.js → vue-ui-timer-DO2sPtaA.js} +5 -5
- package/dist/{vue-ui-timer-DZZmMPv3.cjs → vue-ui-timer-hehskDGP.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-z5y9Zy-r.cjs → vue-ui-tiremarks-C3Y478uT.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-8liLSEKo.js → vue-ui-tiremarks-DQjOkAad.js} +7 -7
- package/dist/{vue-ui-treemap-CeMceJLe.js → vue-ui-treemap-Bv36Ha7O.js} +11 -11
- package/dist/{vue-ui-treemap-DG7Wnka3.cjs → vue-ui-treemap-_4nb3nS1.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-D6xUSkRV.js → vue-ui-vertical-bar-DeP6cUWy.js} +12 -12
- package/dist/{vue-ui-vertical-bar-oP2y79gc.cjs → vue-ui-vertical-bar-LquYjKVD.cjs} +1 -1
- package/dist/{vue-ui-waffle-BZqIeeRs.js → vue-ui-waffle-BfzfWmf5.js} +304 -276
- package/dist/vue-ui-waffle-Hlsl5QtL.cjs +1 -0
- package/dist/{vue-ui-wheel-KMHJl6y4.cjs → vue-ui-wheel--e6UBwL4.cjs} +1 -1
- package/dist/{vue-ui-wheel-B01XDoES.js → vue-ui-wheel-DJC5YCbw.js} +7 -7
- package/dist/{vue-ui-word-cloud-BR-0V6pW.cjs → vue-ui-word-cloud-AGcxc9Jb.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DEUmMqMx.js → vue-ui-word-cloud-CVsld1uE.js} +10 -10
- package/dist/{vue-ui-xy-DvPWUcZ3.cjs → vue-ui-xy-DiZVwKYl.cjs} +1 -1
- package/dist/{vue-ui-xy-B6CWNQY7.js → vue-ui-xy-DwwIMZEo.js} +14 -14
- package/dist/{vue-ui-xy-canvas-BvBsQaxo.js → vue-ui-xy-canvas-ChBRm7Zw.js} +11 -11
- package/dist/{vue-ui-xy-canvas-CCk1oOD_.cjs → vue-ui-xy-canvas-D1kEOzE6.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-data-ui--K40HoWH.cjs +0 -9
- package/dist/vue-data-ui-C2oB3zqB.js +0 -265
- package/dist/vue-ui-waffle-DZOSpIFQ.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-CPtAxuTc.cjs"),pe=require("./useResponsive-BJ7DTGpm.cjs"),De=require("./Title-C7y-iI1m.cjs"),ye=require("./usePrinter-BmNhTUGE.cjs"),Fe=require("./Tooltip-Y622sV6l.cjs"),ge=require("./Legend-kMbr5DZt.cjs"),Oe=require("./vue-ui-skeleton-DkZB7ae3.cjs"),Ie=require("./BaseIcon-At97xJaA.cjs"),Me=require("./vue-ui-accordion-Dd0mfQys.cjs"),fe=require("./useNestedProp-BtCZVKOm.cjs"),Ae=require("./PackageVersion-CHUMvFGr.cjs"),Re=require("./PenAndPaper-DmMAK04m.cjs"),qe=require("./useUserOptionState-BgepsfED.cjs"),me=require("./Shape-Ajzs1V3O.cjs"),He=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ue=["id"],Xe=["onClick"],je=["xmlns","viewBox"],Ge=["width","height"],We=["id"],Ye=["stop-color"],Ke=["stop-color"],Je={key:1},Qe=["x","y","width","height","fill","rx"],Ze=["x","y","width","height","fill","rx","stroke","stroke-width"],et=["x","y","width","height","fill","rx","stroke","stroke-width"],tt=["x2","y1","y2","stroke","stroke-width"],lt=["x1","x2","y1","y2","stroke","stroke-width"],at=["x","y","text-anchor","font-size","fill","font-weight"],ot=["x","y","font-size","fill","font-weight"],nt=["x","y","font-size","fill","font-weight"],rt=["x","y","font-size","fill","font-weight"],ut=["y","width","height","fill","onMouseenter"],st={key:6,class:"vue-data-ui-watermark"},it=["onClick"],ct={style:"width:100%;padding-top: 36px;position:relative"},dt={class:"vue-ui-data-table"},vt={key:0},ht={style:{width:"100%"}},pt=["data-cell"],yt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},gt=["data-cell"],ft={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},mt=["data-cell"],bt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},kt=["data-cell"],Ct={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},_t=["data-cell"],xt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Nt=["data-cell"],wt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},$t=["data-cell"],St={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Vt={__name:"vue-ui-vertical-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(be,{expose:ke,emit:Ce}){const f=be;e.useCssVars(a=>({"646b6c72":a.tdo}));const{vue_ui_vertical_bar:_e}=n.useConfig(),xe=e.useSlots(),T=e.computed(()=>!!f.dataset&&f.dataset.length),y=e.ref(n.createUid()),Ne=e.ref(null),D=e.ref(!1),F=e.ref(""),E=e.ref(0),we=e.ref(null),H=e.ref(0),$=e.ref(null),U=e.ref(null),O=e.ref(null),X=e.ref(null),j=e.ref(null),G=e.ref(0),I=e.ref(0),t=e.computed({get:()=>K(),set:a=>a}),{userOptionsVisible:M,setUserOptionsVisibility:W,keepUserOptionState:Y}=qe.useUserOptionState({config:t.value});function K(){const a=fe.useNestedProp({userConfig:f.config,defaultConfig:_e});return a.theme?{...fe.useNestedProp({userConfig:n.themes.vue_ui_vertical_bar[a.theme]||f.config,defaultConfig:a}),customPalette:n.themePalettes[a.theme]||n.palette}:a}e.watch(()=>f.config,a=>{t.value=K(),M.value=!t.value.showOnChartHover,oe(),G.value+=1,I.value+=1,s.value=t.value.style.chart.layout.bars.height,c.value=t.value.style.chart.layout.bars.gap},{deep:!0}),e.watch(()=>f.dataset,P,{deep:!0});const{isPrinting:J,isImaging:Q,generatePdf:Z,generateImage:ee}=ye.usePrinter({elementId:`vue-ui-vertical-bar_${y.value}`,fileName:t.value.style.chart.title.text||"vue-ui-vertical-bar"}),$e=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),te=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),le=e.ref(null),ae=e.ref(!1),Se=e.computed(()=>t.value.table.responsiveBreakpoint),L=e.ref(null);e.onMounted(()=>{oe()});function oe(){if(n.objectIsEmpty(f.dataset)&&n.error({componentName:"VueUiVerticalBar",type:"dataset"}),E.value=f.dataset.flatMap(a=>a.children&&a.children.length>0?a.children.length:1).reduce((a,o)=>a+o,0),Ve(),t.value.responsive){const a=pe.throttle(()=>{const{width:o,height:l}=pe.useResponsive({chart:$.value,title:t.value.style.chart.title.text?U.value:null,legend:t.value.style.chart.legend.show?O.value:null,source:X.value,noTitle:j.value});ue.value=o,s.value=l/E.value-c.value*2});L.value=new ResizeObserver(a),L.value.observe($.value.parentNode)}}e.onBeforeUnmount(()=>{L.value&&L.value.disconnect()});function Ve(){new ResizeObserver(o=>{o.forEach(l=>{ae.value=l.contentRect.width<Se.value})}).observe(le.value)}const g=e.ref({showTable:t.value.table.show,sortDesc:t.value.style.chart.layout.bars.sort==="desc",showTooltip:t.value.style.chart.tooltip.show}),ne=e.computed(()=>g.value.sortDesc),_=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}_${y.value}`,r=a.children&&a.children.length>0,v=n.checkNaN(a.value?a.value:r?a.children.map(p=>p.value||0).reduce((p,C)=>p+C,0):0),d=v>=0?1:-1;return{...a,id:l,absoluteIndex:o,shape:"square",opacity:b.value.includes(l)?.5:1,value:Math.abs(v),sign:d,hasChildren:r,isChild:!1,segregate:()=>V(l),isSegregated:b.value.includes(l),color:n.convertColorToHex(a.color)||te.value[o]||n.palette[o]||n.palette[o%n.palette.length],children:!a.children||!a.children.length?[]:a.children.toSorted((p,C)=>ne.value?C.value-p.value:p.value-C.value).map((p,C)=>({...p,value:n.checkNaN(Math.abs(p.value)),absoluteIndex:o,sign:p.value>=0?1:-1,isChild:!0,parentId:l,parentName:a.name,parentValue:v,parentSign:d,id:`vertical_child_${o}_${C}_${y.value}`,childIndex:C,color:n.convertColorToHex(p.color)||n.convertColorToHex(a.color)||te.value[o]||n.palette[o]||n.palette[o%n.palette.length]})).map((p,C)=>({...p,isFirstChild:C===0,isLastChild:C===a.children.length-1}))}}).toSorted((a,o)=>ne.value?o.value-a.value:a.value-o.value))),re=e.computed(()=>({cy:"vertical-bar-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),s=e.ref(t.value.style.chart.layout.bars.height),c=e.ref(t.value.style.chart.layout.bars.gap),Be=e.computed(()=>(s.value+c.value)*E.value),ue=e.ref(512),i=e.computed(()=>({width:ue.value,height:Be.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:i.value.padding.top+i.value.padding.bottom+i.value.height,top:i.value.padding.top,left:i.value.padding.left,right:i.value.width-i.value.padding.right,bottom:i.value.padding.top+i.value.height,width:i.value.width-(i.value.padding.left+i.value.padding.right)}));function P(){E.value=x.value.flatMap(a=>a.children&&a.children.length>0?a.children.length:1).reduce((a,o)=>a+o,0)}const b=e.ref([]);function V(a){b.value.includes(a)?b.value=b.value.filter(o=>o!==a):b.value.push(a),P(),Ce("selectLegend",x.value)}const x=e.computed(()=>_.value.filter(a=>!b.value.includes(a.id))),k=e.computed(()=>x.value.map(a=>Math.abs(a.value)).reduce((a,o)=>a+o,0));function se(a,o=!1,l=0){return o?n.dataLabel({v:n.checkNaN(Math.abs(a)/k.value*100),s:"%",r:l}):Math.abs(a)/k.value}const N=e.computed(()=>x.value.flatMap(a=>a.hasChildren?a.children:a)),w=e.computed(()=>N.value.map(a=>a.sign).includes(-1)),Te=e.computed(()=>Math.max(...x.value.flatMap(a=>a.children&&a.children.length?Math.max(...a.children.map(o=>o.value)):a.value)));function h(a){const o=a/Te.value;return u.value.width/(w.value?2:1)*o}function Ee(a){return h(a)+u.value.left}function B(a,o){const l=x.value.find(d=>d.id===a.parentId),r=u.value.top+(c.value+s.value)*o,v=l.children.length*(c.value+s.value);return{y:r+v/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/k.value)?"":se(l.value,!0,t.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),sign:l.sign}}function Le(){return x.value}const A=e.ref(null),R=e.ref(null);function Pe(a,o){R.value={datapoint:a,seriesIndex:o,series:_.value,config:t.value},D.value=!0,A.value=a.id;let l="";const r=a.isChild?a.parentName:a.name,v=a.isChild?a.name:"",d=t.value.style.chart.tooltip.customFormat;n.isFunction(d)&&n.functionReturnsString(()=>d({datapoint:a,series:_.value,config:t.value,seriesIndex:o}))?F.value=d({datapoint:a,series:_.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
2
|
<div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${a.color}"/>${xe.pattern?`<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${y.value}_${a.absoluteIndex})"/>`:""}</svg> ${r}</div>
|
|
3
3
|
${v?`<div>${v}</div>`:""}
|
|
4
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)/k.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>`)),F.value=`<div style="text-align:left">${l}</div>`)}function ie(a,o,l,r){if(!t.value.style.chart.layout.bars.dataLabels.value.show)return"";const v=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}),d=`(${se(a,!0,t.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;return`${v}${t.value.style.chart.layout.bars.dataLabels.percentage.show?` ${d}`:""}`}const m=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=N.value.map(l=>l.isChild?l.isFirstChild?{color:l.color,parentName:l.parentName,parentValue:l.parentValue,percentageToTotal:l.parentValue/k.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)/k.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)/k.value}:{color:l.color,parentName:l.name,parentValue:l.sign===1?l.value:-l.value,percentageToTotal:Math.abs(l.value)/k.value,childName:"",childValue:"",childPercentageToParent:"",childPercentageToTotal:""});return{head:a,body:o}});function ce(){const a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=m.value.head,l=m.value.body.map(d=>[d.parentName,d.parentValue,d.percentageToTotal,d.childName,d.childValue,d.childPercentageToParent,d.childPercentageToTotal]),r=a.concat([o]).concat(l),v=n.createCsvContent(r);n.downloadCsv({csvContent:v,title:t.value.style.chart.title.text||"vue-ui-vertical-bar"})}const S=e.ref(!1);function ze(a){S.value=a,H.value+=1}function de(){g.value.showTable=!g.value.showTable}function ve(){g.value.sortDesc=!g.value.sortDesc,P()}function he(){g.value.showTooltip=!g.value.showTooltip}const z=e.ref(!1);function q(){z.value=!z.value}return ke({getData:Le,recalculateHeight:P,generatePdf:Z,generateCsv:ce,generateImage:ee,toggleTable:de,toggleSort:ve,toggleTooltip:he,toggleAnnotator:q}),(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:$,id:`vue-ui-vertical-bar_${y.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:o[5]||(o[5]=()=>e.unref(W)(!0)),onMouseleave:o[6]||(o[6]=()=>e.unref(W)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Re.PenAndPaper,{key:0,parent:$.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:z.value,onClose:q},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),$e.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:j,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:U,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(De._sfc_main,{key:`title_${G.value}`,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"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&T.value&&(e.unref(Y)||e.unref(M))?(e.openBlock(),e.createBlock(ye.UserOptions,{ref_key:"details",ref:Ne,key:`user_options_${H.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(Q),isPrinting:e.unref(J),uid:y.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:g.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:$.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:z.value,onToggleFullscreen:ze,onGeneratePdf:e.unref(Z),onGenerateCsv:ce,onGenerateImage:e.unref(ee),onToggleTable:de,onToggleSort:ve,onToggleTooltip:he,onToggleAnnotator:q,style:e.normalizeStyle({visibility:e.unref(Y)?e.unref(M)?"visible":"hidden":"visible"})},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,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),void 0,!0)]),key:"8"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasSort","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),t.value.style.chart.legend.show&&t.value.style.chart.legend.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:4,ref_key:"chartLegend",ref:O},[(e.openBlock(),e.createBlock(ge.Legend,{key:`legend_top_${I.value}`,legendSet:_.value,config:re.value,onClickMarker:o[0]||(o[0]=({legend:l})=>V(l.id))},e.createSlots({item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:v=>V(l.id),style:e.normalizeStyle(`opacity:${b.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)]),_:2},[a.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:l,index:r})=>[e.createVNode(me._sfc_main,{shape:l.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${y.value}_${r})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"]))],512)):e.createCommentVNode("",!0),T.value?(e.openBlock(),e.createElementBlock("svg",{key:5,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 ${i.value.width<=0?10:i.value.width} ${u.value.fullHeight<=0?10:u.value.fullHeight}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ae._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:i.value.width<=0?10:i.value.width,height:u.value.fullHeight<=0?10:u.value.fullHeight,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,Ge)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`vertical_bar_gradient_${y.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,Ye),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(l.color,.03),100-t.value.style.chart.layout.bars.gradientIntensity)},null,8,Ke)],8,We))),256)),a.$slots.pattern?(e.openBlock(),e.createElementBlock("g",Je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,l=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(a.$slots,"pattern",e.normalizeProps(e.guardReactiveProps({seriesIndex:l.absoluteIndex,patternId:`pattern_${y.value}_${l.absoluteIndex}`})),void 0,!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:e.unref(n.checkNaN)(w.value?u.value.left+u.value.width/2-(l.sign===1?0:h(l.value)<=0?1e-4:h(l.value)):u.value.left),y:u.value.top+(c.value+s.value)*r,width:e.unref(n.checkNaN)(h(l.value)<=0?1e-4:h(l.value)),height:s.value<=0?1e-4:s.value,fill:t.value.style.chart.layout.bars.underlayerColor,rx:t.value.style.chart.layout.bars.borderRadius,class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,Qe)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:e.unref(n.checkNaN)(w.value?u.value.left+u.value.width/2-(l.sign===1?0:h(l.value)<=0?1e-4:h(l.value)):u.value.left),y:u.value.top+(c.value+s.value)*r,width:e.unref(n.checkNaN)(h(l.value)<=0?1e-4:h(l.value)),height:s.value<=0?1e-4:s.value,fill:t.value.style.chart.layout.bars.useGradient?`url(#vertical_bar_gradient_${y.value}_${r})`:e.unref(n.setOpacity)(l.color,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,Ze),a.$slots.pattern?(e.openBlock(),e.createElementBlock("rect",{key:0,x:e.unref(n.checkNaN)(w.value?u.value.left+u.value.width/2-(l.sign===1?0:h(l.value)<=0?1e-4:h(l.value)):u.value.left),y:u.value.top+(c.value+s.value)*r,width:e.unref(n.checkNaN)(h(l.value)<=0?1e-4:h(l.value)),height:s.value<=0?1e-4:s.value,fill:`url(#pattern_${y.value}_${l.absoluteIndex})`,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,et)):e.createCommentVNode("",!0),(!l.isChild||l.isLastChild)&&t.value.style.chart.layout.separators.show&&r!==N.value.length-1?(e.openBlock(),e.createElementBlock("line",{key:1,x1:0,x2:u.value.left,y1:s.value+c.value/2+u.value.top+(c.value+s.value)*r,y2:s.value+c.value/2+u.value.top+(c.value+s.value)*r,stroke:t.value.style.chart.layout.separators.color,"stroke-width":t.value.style.chart.layout.separators.strokeWidth,"stroke-linecap":"round"},null,8,tt)):e.createCommentVNode("",!0),w.value&&t.value.style.chart.layout.separators.show?(e.openBlock(),e.createElementBlock("line",{key:2,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,lt)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:w.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):Ee(l.value)+3+t.value.style.chart.layout.bars.dataLabels.offsetX,y:u.value.top+(c.value+s.value)*r+s.value/2+t.value.style.chart.layout.bars.dataLabels.fontSize/2,"text-anchor":!w.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(ie(l.value,l,r,l.sign)),9,at),(l.isChild||!l.hasChildren)&&t.value.style.chart.layout.bars.nameLabels.show?(e.openBlock(),e.createElementBlock("text",{key:3,"text-anchor":"end",x:u.value.left-3+t.value.style.chart.layout.bars.nameLabels.offsetX,y:u.value.top+(c.value+s.value)*r+s.value/2+t.value.style.chart.layout.bars.nameLabels.fontSize/2,"font-size":t.value.style.chart.layout.bars.nameLabels.fontSize,fill:t.value.style.chart.layout.bars.nameLabels.color,"font-weight":t.value.style.chart.layout.bars.nameLabels.bold?"bold":"normal"},e.toDisplayString(l.name),9,ot)):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:B(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(B(l,r).name),9,nt)):e.createCommentVNode("",!0),l.isChild&&l.childIndex===0&&t.value.style.chart.layout.bars.parentLabels.show?(e.openBlock(),e.createElementBlock("text",{key:5,x:3+t.value.style.chart.layout.bars.parentLabels.offsetX,y:B(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(ie(B(l,r).value),B(l,r),r,l.parentSign||l.sign),9,rt)):e.createCommentVNode("",!0),e.createElementVNode("rect",{"data-cy-trap":"",x:0,y:u.value.top+(c.value+s.value)*r-c.value/2,width:i.value.width<=0?1e-4:i.value.width,height:s.value+c.value<=0?1e-4:s.value+c.value,fill:A.value===l.id?e.unref(n.setOpacity)(t.value.style.chart.layout.highlighter.color,t.value.style.chart.layout.highlighter.opacity):"transparent",onMouseenter:v=>Pe(l,r),onMouseleave:o[1]||(o[1]=v=>{we.value=null,D.value=!1,A.value=null})},null,40,ut)]))),256)),e.renderSlot(a.$slots,"svg",{svg:i.value},void 0,!0)],14,je)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",st,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(J)||e.unref(Q)})),void 0,!0)])):e.createCommentVNode("",!0),T.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Oe.default,{key:7,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:8,ref_key:"chartLegend",ref:O},[(e.openBlock(),e.createBlock(ge.Legend,{key:`legend_bottom_${I.value}`,legendSet:_.value,config:re.value,onClickMarker:o[2]||(o[2]=({legend:l})=>V(l.id))},e.createSlots({item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{onClick:v=>V(l.id),style:e.normalizeStyle(`opacity:${b.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,it)]),_:2},[a.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:l,index:r})=>[e.createVNode(me._sfc_main,{shape:l.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${y.value}_${r})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"]))],512)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:_.value},void 0,!0),a.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:9,ref_key:"source",ref:X,dir:"auto"},[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Fe._sfc_main,{show:g.value.showTooltip&&D.value&&b.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:$.value,content:F.value,isFullscreen:S.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({...R.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...R.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),T.value?(e.openBlock(),e.createBlock(Me.default,{key:10,hideDetails:"",config:{open:g.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:le,class:"vue-ui-vertical-bar-table"},[e.createElementVNode("div",ct,[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=>g.value.showTable=!1),onKeypress:o[4]||(o[4]=e.withKeys(l=>g.value.showTable=!1,["enter"]))},[e.createVNode(Ie.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":ae.value})},[e.createElementVNode("table",dt,[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",vt,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(m.value.head,l=>(e.openBlock(),e.createElementBlock("th",{style:e.normalizeStyle(`outline:${t.value.table.th.outline}`)},[e.createElementVNode("div",ht,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(k.value)?"":k.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(m.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":m.value.head[0]??""},[e.createElementVNode("div",yt,[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,pt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":m.value.head[1]??""},[e.createElementVNode("div",ft,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,gt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":m.value.head[2]??""},[e.createElementVNode("div",bt,e.toDisplayString(["",NaN,void 0].includes(l.percentageToTotal)?"":`${(l.percentageToTotal*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,mt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":m.value.head[3]??""},[e.createElementVNode("div",Ct,e.toDisplayString(l.childName),1)],12,kt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":m.value.head[4]??""},[e.createElementVNode("div",xt,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,_t),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":m.value.head[5]??""},[e.createElementVNode("div",wt,e.toDisplayString(["",NaN,void 0].includes(l.childPercentageToParent)?"":`${(l.childPercentageToParent*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,Nt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":m.value.head[6]??""},[e.createElementVNode("div",St,e.toDisplayString(["",NaN,void 0].includes(l.childPercentageToTotal)?"":`${(l.childPercentageToTotal*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,$t)],6))),256))])])],2)])],512)]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ue))}},Bt=He._export_sfc(Vt,[["__scopeId","data-v-b7b6fe7f"]]);exports.default=Bt;
|