vue-data-ui 3.28.9 → 3.28.10
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/{PackageVersion-D6_O7PmZ.js → PackageVersion-DKSNC-YP.js} +1 -1
- package/dist/StackChartTable-CZteRybF.js +1 -0
- package/dist/{XyAnalysisOptions-djGOJdKc.js → XyAnalysisOptions-CV22ga_a.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-graph.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/package-CXaebsLV.js +1 -0
- package/dist/{render-common-BbY81Ao2.js → render-common-Cy1X2PzP.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useConfig-By3Vb5kz.js → useConfig-C3FbHv4N.js} +1 -1
- package/dist/{useObjectBindings-0vvvimYP.js → useObjectBindings-C_70Czuj.js} +1 -1
- package/dist/{userOptionsSlots-DYuo-E5m.js → userOptionsSlots-CWtXN5Q6.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/vue-data-ui-O-w339Ac.js +1 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-CcFFARyq.js +19 -0
- package/dist/{vue-ui-accordion-DFxSW8ET.js → vue-ui-accordion-E8TJfFeK.js} +1 -1
- package/dist/vue-ui-age-pyramid-Di6fKV6f.js +1 -0
- package/dist/vue-ui-annotator-sBGtsgcb.js +331 -0
- package/dist/vue-ui-bullet-BZLa1xj7.js +34 -0
- package/dist/vue-ui-bump-BSdpAH0l.js +8 -0
- package/dist/vue-ui-candlestick-BKZASgq9.js +22 -0
- package/dist/vue-ui-carousel-table-B20E2K8A.js +1 -0
- package/dist/vue-ui-chestnut-DavvzmiQ.js +1 -0
- package/dist/vue-ui-chord-D2Hn54i7.js +21 -0
- package/dist/vue-ui-circle-pack-BKaS-zWo.js +13 -0
- package/dist/{vue-ui-cursor-D3E3f7Lc.js → vue-ui-cursor-BUOHKNmb.js} +1 -1
- package/dist/vue-ui-dag-SLYPxbGo.js +9 -0
- package/dist/vue-ui-dashboard-Bgt7VLv0.js +1 -0
- package/dist/{vue-ui-digits-p2met3a2.js → vue-ui-digits-DbxT72mM.js} +1 -1
- package/dist/{vue-ui-donut-CZbBq7bs.js → vue-ui-donut-8ZWyXEVs.js} +1 -1
- package/dist/vue-ui-donut-DBcB8Ym1.js +47 -0
- package/dist/vue-ui-donut-evolution-D3lo74Ce.js +2 -0
- package/dist/vue-ui-dumbbell-CdarkL8Z.js +9 -0
- package/dist/vue-ui-flow-B0dYxGWT.js +3 -0
- package/dist/vue-ui-funnel-C0Cl9jMd.js +1 -0
- package/dist/vue-ui-galaxy-C_UWOQn4.js +1 -0
- package/dist/vue-ui-gauge-B94ToHlW.js +1 -0
- package/dist/vue-ui-geo-V-JmJgKS.js +1 -0
- package/dist/{vue-ui-gizmo-COJHVo7O.js → vue-ui-gizmo-BvVDEnNu.js} +1 -1
- package/dist/{vue-ui-graph-BqnyGn9p.js → vue-ui-graph-9YSKwYhC.js} +1 -1
- package/dist/vue-ui-heatmap-DWtbocz5.js +1 -0
- package/dist/vue-ui-hill-BH_lYm5G.js +1 -0
- package/dist/vue-ui-history-plot-DkWvta0h.js +2 -0
- package/dist/vue-ui-horizontal-bar-DbJ1DFjG.js +4 -0
- package/dist/{vue-ui-kpi-D1Ps7D_O.js → vue-ui-kpi-BxW6DctE.js} +1 -1
- package/dist/{vue-ui-label-W0oz08pp.js → vue-ui-label-rxuzmeyD.js} +1 -1
- package/dist/{vue-ui-mini-loader-OLYDdN3T.js → vue-ui-mini-loader-DpAYrTYb.js} +1 -1
- package/dist/vue-ui-molecule-BrG8K2Tm.js +1 -0
- package/dist/vue-ui-mood-radar-DEpFpfiW.js +1 -0
- package/dist/vue-ui-nested-donuts-CZetOzaq.js +19 -0
- package/dist/vue-ui-onion-DvyAxUSj.js +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bdakcv3w.js +9 -0
- package/dist/vue-ui-quadrant-CWZeQjHE.js +2 -0
- package/dist/vue-ui-quick-chart-BULxPrPs.js +16 -0
- package/dist/vue-ui-radar-CJ_5G0QP.js +1 -0
- package/dist/{vue-ui-rating-B9HeTCLa.js → vue-ui-rating-QcJoab0i.js} +1 -1
- package/dist/vue-ui-relation-circle-Vetly6f0.js +1 -0
- package/dist/vue-ui-ridgeline-5a87TiQf.js +2 -0
- package/dist/vue-ui-rings-CKuFf5vA.js +1 -0
- package/dist/vue-ui-scatter-C2hNg3ED.js +9 -0
- package/dist/{vue-ui-skeleton-98OnGJ2N.js → vue-ui-skeleton-SlYTmirP.js} +1 -1
- package/dist/{vue-ui-smiley-Cht1imV-.js → vue-ui-smiley-DZVFOGfv.js} +1 -1
- package/dist/{vue-ui-spark-trend-C4uYyXEy.js → vue-ui-spark-trend-D155vscB.js} +1 -1
- package/dist/{vue-ui-sparkbar-BcZyqPB9.js → vue-ui-sparkbar-DFShNanl.js} +1 -1
- package/dist/{vue-ui-sparkgauge-dBZzMqn5.js → vue-ui-sparkgauge-CFj0wLj5.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-DcbAY6vr.js → vue-ui-sparkhistogram-DwDcqqEj.js} +1 -1
- package/dist/{vue-ui-sparkline-BizzsAR5.js → vue-ui-sparkline-kxl5wQGY.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-xlg048YB.js → vue-ui-sparkstackbar-CHjaAWVJ.js} +1 -1
- package/dist/vue-ui-stackbar-BrtUg-Mb.js +29 -0
- package/dist/vue-ui-stackline-CU2UkEJU.js +39 -0
- package/dist/vue-ui-strip-plot-BmEpoIoU.js +2 -0
- package/dist/vue-ui-table-Ddg209i0.js +14 -0
- package/dist/vue-ui-table-heatmap-B8AdX6Nq.js +1 -0
- package/dist/{vue-ui-table-sparkline-B6ynMUGE.js → vue-ui-table-sparkline-B62l_ODH.js} +1 -1
- package/dist/vue-ui-thermometer-CvxyfTWE.js +1 -0
- package/dist/{vue-ui-timer-B1JNZk6j.js → vue-ui-timer-BkNtid9A.js} +2 -2
- package/dist/vue-ui-tiremarks-BE0nbuHp.js +1 -0
- package/dist/vue-ui-treemap-B9wAoh5g.js +1 -0
- package/dist/vue-ui-waffle-DqeBiuY3.js +1 -0
- package/dist/vue-ui-wheel---NZaS40.js +1 -0
- package/dist/vue-ui-word-cloud-DRFGFVmf.js +4 -0
- package/dist/vue-ui-world-D5gKzypf.js +19 -0
- package/dist/{vue-ui-xy-B2lrTGG4.js → vue-ui-xy-Caj8jz6D.js} +1 -1
- package/dist/vue-ui-xy-CcVIXfL_.js +27 -0
- package/dist/vue-ui-xy-canvas-BceSG3AO.js +9 -0
- package/package.json +1 -1
- package/dist/package-BEq7yyhf.js +0 -1
- package/dist/vue-data-ui-BwiGr37w.js +0 -1
- package/dist/vue-ui-3d-bar-C2igj6OX.js +0 -19
- package/dist/vue-ui-age-pyramid-DOG_ZOgO.js +0 -1
- package/dist/vue-ui-annotator-BnR2XnsL.js +0 -331
- package/dist/vue-ui-bullet-HUKP90GR.js +0 -34
- package/dist/vue-ui-bump-BuHuxEzm.js +0 -8
- package/dist/vue-ui-candlestick-CZkyowA5.js +0 -22
- package/dist/vue-ui-carousel-table-B73USTMi.js +0 -1
- package/dist/vue-ui-chestnut-VdMHjsWk.js +0 -1
- package/dist/vue-ui-chord-DfWjMAuo.js +0 -21
- package/dist/vue-ui-circle-pack-ByV3SOkF.js +0 -13
- package/dist/vue-ui-dag-DlllVyCV.js +0 -9
- package/dist/vue-ui-dashboard-C9aGsEAi.js +0 -1
- package/dist/vue-ui-donut-BlQXnf7O.js +0 -47
- package/dist/vue-ui-donut-evolution-Csq1sqhK.js +0 -2
- package/dist/vue-ui-dumbbell-ChLfyyGq.js +0 -9
- package/dist/vue-ui-flow-DfEHi_Cq.js +0 -3
- package/dist/vue-ui-funnel-QCG-rmsx.js +0 -1
- package/dist/vue-ui-galaxy-DFTeXUse.js +0 -1
- package/dist/vue-ui-gauge-XTx--A-H.js +0 -1
- package/dist/vue-ui-geo-BXB5xFcV.js +0 -1
- package/dist/vue-ui-heatmap-CPq3bcnS.js +0 -1
- package/dist/vue-ui-hill-DKm3PjHT.js +0 -1
- package/dist/vue-ui-history-plot-B5OPsHZ1.js +0 -2
- package/dist/vue-ui-horizontal-bar-C8SymyhN.js +0 -4
- package/dist/vue-ui-molecule-f-GNAQ0p.js +0 -1
- package/dist/vue-ui-mood-radar-kp-jOb4S.js +0 -1
- package/dist/vue-ui-nested-donuts-DCCSKIGa.js +0 -19
- package/dist/vue-ui-onion-KqzGj1z_.js +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-dn_41Wv5.js +0 -9
- package/dist/vue-ui-quadrant-CP8n4v5B.js +0 -2
- package/dist/vue-ui-quick-chart-D8PbGpSw.js +0 -17
- package/dist/vue-ui-radar-ybR3N44-.js +0 -1
- package/dist/vue-ui-relation-circle-B0PwfFpT.js +0 -1
- package/dist/vue-ui-ridgeline-BnslUzA-.js +0 -2
- package/dist/vue-ui-rings-B-cOW0Dw.js +0 -1
- package/dist/vue-ui-scatter-BX5cTC01.js +0 -9
- package/dist/vue-ui-stackbar-2AX-m3Pb.js +0 -29
- package/dist/vue-ui-stackline-GKaZJh8y.js +0 -39
- package/dist/vue-ui-strip-plot-BhxIrd67.js +0 -2
- package/dist/vue-ui-table-D9FJBxrk.js +0 -14
- package/dist/vue-ui-table-heatmap-SGJGI5Wq.js +0 -1
- package/dist/vue-ui-thermometer-SE_c51TO.js +0 -1
- package/dist/vue-ui-tiremarks-Cr8EG4T5.js +0 -1
- package/dist/vue-ui-treemap-DKJVe7v7.js +0 -1
- package/dist/vue-ui-waffle-DSq3l2sE.js +0 -1
- package/dist/vue-ui-wheel-CcYOzS05.js +0 -1
- package/dist/vue-ui-word-cloud-gogYiwIU.js +0 -4
- package/dist/vue-ui-world-C2zGhq_U.js +0 -19
- package/dist/vue-ui-xy-CpS-ASnd.js +0 -27
- package/dist/vue-ui-xy-canvas-CXBsRU35.js +0 -9
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./BaseIcon-CoY0vuL3.js";import{computed as n,createBlock as r,createCommentVNode as i,createElementBlock as a,createElementVNode as o,createSlots as s,createTextVNode as c,defineAsyncComponent as l,guardReactiveProps as u,mergeProps as d,normalizeProps as f,normalizeStyle as p,onMounted as m,openBlock as h,ref as g,renderList as _,renderSlot as v,resolveDynamicComponent as y,toDisplayString as b,useAttrs as x,watch as S,withCtx as C}from"vue";var w=/* @__PURE__ */ e({default:()=>E}),T={style:{width:`36px`}},E=/*@__PURE__*/ Object.assign({inheritAttrs:!1},{__name:`vue-data-ui`,props:{component:{type:String},dataset:{type:[Object,Array,Number,String]},config:{type:Object}},setup(e,{expose:w}){let E=e,D=x(),O={VueUiGraph:l(()=>import(`./vue-ui-graph-BqnyGn9p.js`).then(e=>e.n)),VueUi3dBar:l(()=>import(`./vue-ui-3d-bar-C2igj6OX.js`).then(e=>e.n)),VueUiAgePyramid:l(()=>import(`./vue-ui-age-pyramid-DOG_ZOgO.js`).then(e=>e.n)),VueUiAnnotator:l(()=>import(`./vue-ui-annotator-BnR2XnsL.js`).then(e=>e.n)),VueUiCandlestick:l(()=>import(`./vue-ui-candlestick-CZkyowA5.js`).then(e=>e.n)),VueUiChestnut:l(()=>import(`./vue-ui-chestnut-VdMHjsWk.js`).then(e=>e.n)),VueUiDashboard:l(()=>import(`./vue-ui-dashboard-C9aGsEAi.js`).then(e=>e.n)),VueUiDigits:l(()=>import(`./vue-ui-digits-p2met3a2.js`).then(e=>e.n)),VueUiDonut:l(()=>import(`./vue-ui-donut-BlQXnf7O.js`).then(e=>e.n)),VueUiDonutEvolution:l(()=>import(`./vue-ui-donut-evolution-Csq1sqhK.js`).then(e=>e.n)),VueUiGalaxy:l(()=>import(`./vue-ui-galaxy-DFTeXUse.js`).then(e=>e.n)),VueUiGauge:l(()=>import(`./vue-ui-gauge-XTx--A-H.js`).then(e=>e.n)),VueUiHeatmap:l(()=>import(`./vue-ui-heatmap-CPq3bcnS.js`).then(e=>e.n)),VueUiKpi:l(()=>import(`./vue-ui-kpi-D1Ps7D_O.js`).then(e=>e.n)),VueUiMiniLoader:l(()=>import(`./vue-ui-mini-loader-OLYDdN3T.js`).then(e=>e.n)),VueUiMolecule:l(()=>import(`./vue-ui-molecule-f-GNAQ0p.js`).then(e=>e.n)),VueUiMoodRadar:l(()=>import(`./vue-ui-mood-radar-kp-jOb4S.js`).then(e=>e.n)),VueUiNestedDonuts:l(()=>import(`./vue-ui-nested-donuts-DCCSKIGa.js`).then(e=>e.n)),VueUiOnion:l(()=>import(`./vue-ui-onion-KqzGj1z_.js`).then(e=>e.n)),VueUiQuadrant:l(()=>import(`./vue-ui-quadrant-CP8n4v5B.js`).then(e=>e.n)),VueUiRadar:l(()=>import(`./vue-ui-radar-ybR3N44-.js`).then(e=>e.n)),VueUiRating:l(()=>import(`./vue-ui-rating-B9HeTCLa.js`).then(e=>e.n)),VueUiRelationCircle:l(()=>import(`./vue-ui-relation-circle-B0PwfFpT.js`).then(e=>e.n)),VueUiRings:l(()=>import(`./vue-ui-rings-B-cOW0Dw.js`).then(e=>e.n)),VueUiScatter:l(()=>import(`./vue-ui-scatter-BX5cTC01.js`).then(e=>e.n)),VueUiSkeleton:l(()=>import(`./vue-ui-skeleton-98OnGJ2N.js`).then(e=>e.n)),VueUiSmiley:l(()=>import(`./vue-ui-smiley-Cht1imV-.js`).then(e=>e.n)),VueUiSparkbar:l(()=>import(`./vue-ui-sparkbar-BcZyqPB9.js`).then(e=>e.n)),VueUiSparkgauge:l(()=>import(`./vue-ui-sparkgauge-dBZzMqn5.js`).then(e=>e.n)),VueUiSparkHistogram:l(()=>import(`./vue-ui-sparkhistogram-DcbAY6vr.js`).then(e=>e.n)),VueUiSparkline:l(()=>import(`./vue-ui-sparkline-BizzsAR5.js`).then(e=>e.n)),VueUiSparkStackbar:l(()=>import(`./vue-ui-sparkstackbar-xlg048YB.js`).then(e=>e.n)),VueUiTable:l(()=>import(`./vue-ui-table-D9FJBxrk.js`).then(e=>e.n)),VueUiTableSparkline:l(()=>import(`./vue-ui-table-sparkline-B6ynMUGE.js`).then(e=>e.n)),VueUiThermometer:l(()=>import(`./vue-ui-thermometer-SE_c51TO.js`).then(e=>e.n)),VueUiTiremarks:l(()=>import(`./vue-ui-tiremarks-Cr8EG4T5.js`).then(e=>e.n)),VueUiTreemap:l(()=>import(`./vue-ui-treemap-DKJVe7v7.js`).then(e=>e.n)),VueUiVerticalBar:l(()=>import(`./vue-ui-horizontal-bar-C8SymyhN.js`).then(e=>e.n)),VueUiHorizontalBar:l(()=>import(`./vue-ui-horizontal-bar-C8SymyhN.js`).then(e=>e.n)),VueUiWaffle:l(()=>import(`./vue-ui-waffle-DSq3l2sE.js`).then(e=>e.n)),VueUiWheel:l(()=>import(`./vue-ui-wheel-CcYOzS05.js`).then(e=>e.n)),VueUiXy:l(()=>import(`./vue-ui-xy-CpS-ASnd.js`).then(e=>e.n)),VueUiTableHeatmap:l(()=>import(`./vue-ui-table-heatmap-SGJGI5Wq.js`).then(e=>e.n)),VueUiAccordion:l(()=>import(`./vue-ui-accordion-DFxSW8ET.js`).then(e=>e.n)),VueUiQuickChart:l(()=>import(`./vue-ui-quick-chart-D8PbGpSw.js`).then(e=>e.n)),VueUiCursor:l(()=>import(`./vue-ui-cursor-D3E3f7Lc.js`).then(e=>e.n)),VueUiSparkTrend:l(()=>import(`./vue-ui-spark-trend-C4uYyXEy.js`).then(e=>e.n)),VueUiStripPlot:l(()=>import(`./vue-ui-strip-plot-BhxIrd67.js`).then(e=>e.n)),VueUiDumbbell:l(()=>import(`./vue-ui-dumbbell-ChLfyyGq.js`).then(e=>e.n)),VueUiWordCloud:l(()=>import(`./vue-ui-word-cloud-gogYiwIU.js`).then(e=>e.n)),VueUiXyCanvas:l(()=>import(`./vue-ui-xy-canvas-CXBsRU35.js`).then(e=>e.n)),VueUiFlow:l(()=>import(`./vue-ui-flow-DfEHi_Cq.js`).then(e=>e.n)),VueUiParallelCoordinatePlot:l(()=>import(`./vue-ui-parallel-coordinate-plot-dn_41Wv5.js`).then(e=>e.n)),VueUiTimer:l(()=>import(`./vue-ui-timer-B1JNZk6j.js`).then(e=>e.n)),VueUiCarouselTable:l(()=>import(`./vue-ui-carousel-table-B73USTMi.js`).then(e=>e.n)),VueUiGizmo:l(()=>import(`./vue-ui-gizmo-COJHVo7O.js`).then(e=>e.n)),VueUiStackbar:l(()=>import(`./vue-ui-stackbar-2AX-m3Pb.js`).then(e=>e.n)),VueUiStackline:l(()=>import(`./vue-ui-stackline-GKaZJh8y.js`).then(e=>e.n)),VueUiBullet:l(()=>import(`./vue-ui-bullet-HUKP90GR.js`).then(e=>e.n)),VueUiFunnel:l(()=>import(`./vue-ui-funnel-QCG-rmsx.js`).then(e=>e.n)),VueUiHistoryPlot:l(()=>import(`./vue-ui-history-plot-B5OPsHZ1.js`).then(e=>e.n)),VueUiCirclePack:l(()=>import(`./vue-ui-circle-pack-ByV3SOkF.js`).then(e=>e.n)),VueUiWorld:l(()=>import(`./vue-ui-world-C2zGhq_U.js`).then(e=>e.n)),VueUiRidgeline:l(()=>import(`./vue-ui-ridgeline-BnslUzA-.js`).then(e=>e.n)),VueUiChord:l(()=>import(`./vue-ui-chord-DfWjMAuo.js`).then(e=>e.n)),VueUiDag:l(()=>import(`./vue-ui-dag-DlllVyCV.js`).then(e=>e.n)),VueUiGeo:l(()=>import(`./vue-ui-geo-BXB5xFcV.js`).then(e=>e.n)),VueUiBump:l(()=>import(`./vue-ui-bump-BuHuxEzm.js`).then(e=>e.n)),VueUiHill:l(()=>import(`./vue-ui-hill-DKm3PjHT.js`).then(e=>e.n)),VueUiLabel:l(()=>import(`./vue-ui-label-W0oz08pp.js`).then(e=>e.n))},k=/* @__PURE__ */ new Set([`VueUiMiniLoader`,`VueUiSkeleton`,`VueUiAccordion`,`VueUiCursor`,`VueUiTimer`]),A=/* @__PURE__ */ `fitToView.focusNode.resetLayout.autoSize.cancel.close.copyAlt.focusLocation.generateCsv.generateImage.generatePdf.generateSvg.getItemsPositions.hideSeries.lap.pause.pauseAnimation.recalculateHeight.reset.resetZoom.restart.restoreOrder.resumeAnimation.save.selectGroup.selectNode.selectRibbon.setZoomState.shoot.showSeries.start.switchOrientation.toggleAnimation.toggleAnnotator.toggleLabels.toggleLock.toggleReadonly.toggleSort.toggleStack.toggleTable.toggleFullscreen.toggleTooltip.toggleZoom.zoomIn.zoomOut`.split(`.`),j=g(null),M=n(()=>!O[E.component]),N=n(()=>O[E.component]||null);function P(){let e={...D,config:E.config};return k.has(E.component)||(e.dataset=E.dataset),e}let F=[];function I(e,t){return new Promise((n,r)=>{F.push({method:e,args:t,resolve:n,reject:r})})}function L(e){return/* @__PURE__ */ Error(`Method "${e}" not found on ${E.component}`)}function R(e,t){let n=j.value;if(!n)return null;let r=n[e];return typeof r==`function`?r.apply(n,t):null}function z(e,t){let n=j.value;if(!n)return I(e,t);let r=n[e];return typeof r==`function`?r.apply(n,t):Promise.reject(L(e))}S(j,e=>{if(e)for(;F.length;){let{method:t,args:n,resolve:r,reject:i}=F.shift(),a=e[t];typeof a==`function`?Promise.resolve().then(()=>a.apply(e,n)).then(r).catch(i):i(L(t))}}),w({getData(...e){return z(`getData`,e)},getImage(e={}){let{scale:t=2}=e;return z(`getImage`,[{scale:t}])},...Object.fromEntries(A.map(e=>[e,(...t)=>R(e,t)]))}),m(()=>{M.value&&console.error(`\n\nVue Data UI exception:\nThe provided component "${E.component}" does not exist. Check the spelling.\n\nAvailable components:\n\n${Object.keys(O).map(e=>`. ${e}\n`).join(``)}`)});let B=n(()=>{let e=`The provided component ${E.component} does not exist.`;return[`VueUiIcon`,`VueUiPattern`,`Arrow`].includes(E.component)?(e=`${E.component} is not supported by the VueDataUi universal component. You must import it individually.`,console.warn(e),{status:`notSupported`,message:e}):(console.warn(e),{status:`unknown`,message:e})});return(e,n)=>M.value?(h(),a(`div`,{key:0,style:p({width:`100%`,display:`flex`,gap:`6px`,alignItems:`center`,color:B.value.status===`notSupported`?`#FF9000`:`#FF0000`})},[o(`div`,T,[B.value.status===`unknown`?(h(),r(t,{key:0,name:`moodFlat`,stroke:`#FF0000`})):i(``,!0),B.value.status===`notSupported`?(h(),r(t,{key:1,name:`circleExclamation`,stroke:`#FF9000`})):i(``,!0)]),c(` `+b(B.value.message),1)],4)):(h(),r(y(N.value),d({key:1,ref_key:`currentComponentRef`,ref:j},P()),s({_:2},[_(e.$slots,(t,n)=>({name:n,fn:C(t=>[v(e.$slots,n,f(u(t)))])}))]),1040))}});export{w as n,E as t};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,r as n,t as r}from"./annotationSlots-OLiW25XN.js";import{t as i}from"./useConfig-By3Vb5kz.js";import{$ as a,D as o,Ft as s,Ht as c,It as l,Jt as u,Q as d,S as f,X as p,at as m,b as h,f as g,h as ee,i as te,in as ne,nt as re,p as ie,t as ae,w as oe,yt as se,zt as ce}from"./lib-rPeBMZrn.js";import{n as le,t as ue}from"./BaseScanner-8NdoBs7B.js";import{n as de}from"./useHints-C-TwxM0Y.js";import{t as fe}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as pe}from"./resolveChartConfig-CIhClE5R.js";import{t as me}from"./img-D4RQwASc.js";import{n as he}from"./Title-BliHuXfT.js";import{t as ge}from"./useChartExport-BZts4KFb.js";import{n as _e,t as ve}from"./tableIntegration-CNoJ1CIY.js";import{n as ye,t as be}from"./userOptionsSlots-DYuo-E5m.js";import{t as xe}from"./usePrinter-DVf3YcG5.js";import{c as Se}from"./canvas-lib-22VpOI4_.js";import{t as Ce}from"./useResponsive-CENUxfEL.js";import{t as _}from"./DefGrad-DKMq1REY.js";import{t as we}from"./A11yDataTable-DWNlWXzs.js";import{t as Te}from"./useUserOptionState-CXlFnwPv.js";import{t as Ee}from"./useChartAccessibility-DOMuYJfm.js";import{t as De}from"./vue_ui_3d_bar-DmAve5Ri.js";import{Fragment as v,computed as y,createBlock as b,createCommentVNode as x,createElementBlock as S,createElementVNode as C,createSlots as Oe,createTextVNode as ke,createVNode as w,defineAsyncComponent as T,guardReactiveProps as Ae,mergeProps as je,nextTick as Me,normalizeClass as Ne,normalizeProps as Pe,normalizeStyle as E,onMounted as Fe,openBlock as D,ref as O,renderList as k,renderSlot as A,resolveDynamicComponent as Ie,toDisplayString as j,toRefs as Le,unref as M,watch as Re,withCtx as N,withKeys as ze,withModifiers as Be}from"vue";var Ve=/* @__PURE__ */ e({default:()=>cn}),He=[`id`],Ue=[`id`],We={"aria-live":`polite`,class:`sr-only`},Ge={style:{position:`relative`}},Ke=[`xmlns`,`viewBox`,`aria-describedby`],qe=[`width`,`height`],Je={key:1},Ye=[`x`,`y`,`font-size`,`font-weight`,`fill`],Xe=[`x`,`y`],Ze=[`cx`,`cy`,`stroke`,`opacity`],Qe=[`d`,`stroke`],$e=[`d`,`stroke`],et={key:4},tt={key:0},nt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],rt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],it=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],at=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],ot={key:1},st=[`d`,`stroke`,`stroke-width`,`fill`],ct=[`d`,`stroke`,`stroke-width`,`fill`],lt=[`d`,`stroke`,`stroke-width`,`fill`],ut={key:2},dt=[`aria-label`],ft=[`d`,`fill`,`onMouseenter`,`onClick`,`onMouseout`],pt=[`d`,`fill`,`onMouseenter`,`onClick`,`onMouseout`],mt=[`d`,`fill`,`onMouseenter`,`onClick`,`onMouseout`],ht=[`d`,`onMouseenter`,`onClick`,`onMouseout`],gt=[`d`],_t=[`d`,`stroke`],vt=[`onClick`],yt=[`stroke`,`d`],bt=[`cx`,`cy`,`fill`,`stroke`],xt=[`x`,`y`,`width`,`height`],St=[`x`,`y`,`width`,`height`],Ct={key:3},wt=[`d`,`stroke`],Tt=[`d`,`fill`,`stroke`],Et={key:0},Dt=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],Ot=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],kt={key:4},At=[`d`,`fill`,`stroke`],jt={key:5},Mt={key:0},Nt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],Pt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],Ft=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],It=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],Lt=[`d`,`stroke`,`stroke-width`,`fill`],Rt=[`d`,`stroke`,`stroke-width`,`fill`],zt=[`d`],Bt={key:1},Vt=[`aria-label`],Ht=[`onMouseenter`,`onClick`,`onMouseout`,`d`,`fill`],Ut=[`onMouseenter`,`onClick`,`onMouseout`,`d`],Wt=[`onMouseenter`,`onClick`,`onMouseout`,`d`,`fill`],Gt=[`onClick`],Kt=[`stroke`,`d`],qt=[`cx`,`cy`,`fill`,`stroke`],Jt=[`x`,`y`,`width`,`height`],Yt=[`x`,`y`,`width`,`height`],Xt={key:3},Zt=[`d`,`stroke`],Qt=[`d`,`fill`,`stroke`],$t={key:0},en=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],tn=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],nn={key:4},rn=[`d`,`fill`,`stroke`],an={key:4,class:`vue-data-ui-watermark`},on={key:0},sn={key:1},cn=/*#__PURE__*/ fe({__name:`vue-ui-3d-bar`,props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:[`selectDatapoint`,`copyAlt`],setup(e,{expose:fe,emit:Ve}){let cn=T(()=>import(`./BaseIcon-CoY0vuL3.js`).then(e=>e.n)),ln=T(()=>import(`./vue-ui-accordion-DFxSW8ET.js`).then(e=>e.n)),un=T(()=>import(`./DataTable-Dof6yhO7.js`)),dn=T(()=>import(`./PenAndPaper-DoNTA-SV.js`).then(e=>e.t)),fn=T(()=>import(`./UserOptions-B9EyfU9n.js`).then(e=>e.n)),pn=T(()=>import(`./PackageVersion-D6_O7PmZ.js`).then(e=>e.t)),mn=T(()=>import(`./BaseDraggableDialog-BK7dj9O6.js`).then(e=>e.n)),{vue_ui_3d_bar:hn}=i(),P=e,gn=Ve,_n=y(()=>!!P.dataset&&Object.keys(P.dataset).length),F=O(p()),I=O(null),L=O(!1),vn=O(0),yn=O(0),bn=O(null),xn=O(null),Sn=O(null),Cn=O(null),R=O(!1),wn=O(null),Tn=O(null),z=O(null),B=O(``),V=O(Pn()),En=y(()=>V.value.style),H=y(()=>V.value.style.chart),U=y(()=>V.value.userOptions);de({config:()=>V.value,dataset:()=>P.dataset,component:`VueUi3dBar`,rules:[{test:e=>e?.series&&e.series.length>8,message:[`👀 The number of series is > 8. Consider:`,``,`▶️ Grouping small values dynamically into a single "Other" series.`,``,`▶️ Using filters to let users choose a maximum number of series to display.`,``,`▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read.`]},{test:e=>e?.series&&e.series.some(e=>e?.breakdown&&e.breakdown.length>6),message:[`👀 Some donut breakdowns have > 6 data points. Consider:`,``,`▶️ Grouping small values dynamically into a single "Other" data point.`]}]});let Dn=y(()=>V.value.userOptions.useCursorPointer),On=y(()=>ne({defaultConfig:{customPalette:[`#808080`,`#ADADAD`,`#DBDBDB`],userOptions:{show:!1},table:{show:!1},style:{chart:{backgroundColor:`#99999930`,color:`#6A6A6A`,bar:{color:`#ADADAD`,stroke:`#6A6A6A`},box:{stroke:`#6A6A6A`}}}},userConfig:V.value.skeletonConfig??{}})),{loading:kn,FINAL_DATASET:W}=le({...Le(P),FINAL_CONFIG:V,prepareConfig:Pn,callback:()=>{Promise.resolve().then(async()=>{await Me(),Un()})},skeletonDataset:P.config?.skeletonDataset??{series:[{name:`_`,value:21,breakdown:[{name:`_`,value:13},{name:`_`,value:8}]},{name:`_`,value:13,breakdown:[{name:`_`,value:8},{name:`_`,value:5}]},{name:`_`,value:8,breakdown:[{name:`_`,value:5},{name:`_`,value:3}]}]},skeletonConfig:ne({defaultConfig:V.value,userConfig:On.value})}),{userOptionsVisible:An,setUserOptionsVisibility:jn,keepUserOptionState:Mn}=Te({config:V.value}),{svgRef:Nn}=Ee({config:V.value.style.chart.title});function Pn(){return pe(P.config,hn,De)}Re(()=>P.config,e=>{kn.value||(V.value=Pn()),An.value=!V.value.userOptions.showOnChartHover,Kn(),vn.value+=1,yn.value+=1,G.value.showTable=V.value.table.show},{deep:!0});let{isPrinting:Fn,isImaging:In,generatePdf:Ln,generateImage:Rn}=xe({elementId:`3d_bar_${F.value}`,fileName:H.value.title.text||`vue-ui-3d-bar`,options:V.value.userOptions.print}),zn=y(()=>oe(V.value.customPalette)),G=O({showTable:V.value.table.show});Re(V,()=>{G.value={showTable:V.value.table.show}},{immediate:!0});let K=y(()=>W.value.series&&W.value.series.length),Bn=O(H.value.box.dimensions.width*(K.value?2:1)),Vn=O(H.value.box.dimensions.height),q=y(()=>({height:Vn.value,width:Bn.value,absoluteWidth:Bn.value,top:H.value.box.dimensions.top,bottom:H.value.box.dimensions.bottom,left:H.value.box.dimensions.left,right:H.value.box.dimensions.right,perspective:H.value.box.dimensions.perspective})),J=y(()=>{if(K.value){let e=W.value.series.map(e=>e.value||0).reduce((e,t)=>e+t,0),t=W.value.series.map((t,n)=>({...t,seriesIndex:n,id:p(),proportion:(t.value||0)/e,color:f(t.color)||zn.value[n]||c[n]||c[n%c.length],breakdown:t.breakdown?t.breakdown.sort((e,t)=>t.value-e.value):null})).sort((e,t)=>t.value-e.value),n=[],r=0;for(let e=0;e<t.length;e+=1)n.push({...t[e],fill:Jn(r,t[e].proportion,t[e].breakdown,t[e].color)}),r+=t[e].proportion;return n}return null}),Y=y(()=>{let e=q.value.width/2,t=q.value;return{right:`M${e},${t.top} ${t.width-t.right}, ${t.top+t.perspective} ${t.width-t.right},${t.height-t.bottom-t.perspective} ${e},${t.height-t.bottom}`,left:`M${e},${t.top} ${t.left},${t.top+t.perspective} ${t.left},${t.height-t.bottom-t.perspective} ${e},${t.height-t.bottom}`,side:`M${e},${t.height-t.bottom} ${e},${t.top+t.perspective*2}`,topSides:`M${t.left},${t.top+t.perspective} ${e},${t.top+t.perspective*2} ${t.width-t.right},${t.top+t.perspective}`,tubeTop:`M${t.left},${t.top+t.perspective} C ${t.left},${t.top-t.perspective/3} ${t.width-t.right},${t.top-t.perspective/3} ${t.width-t.right},${t.top+t.perspective} C ${t.width-t.right},${t.top+t.perspective*2.3} ${t.left},${t.top+t.perspective*2.3} ${t.left},${t.top+t.perspective}`,tubeLeft:`M${t.left},${t.top+t.perspective} ${t.left},${t.height-t.bottom-t.perspective}`,tubeRight:`M${t.width-t.right},${t.top+t.perspective} ${t.width-t.right},${t.height-t.bottom-t.perspective}`,tubeBottom:`M${t.width-t.right},${t.height-t.bottom-t.perspective} C ${t.width-t.right},${t.height} ${t.left},${t.height} ${t.left},${t.height-t.bottom-t.perspective}`}}),Hn=O(H.value.animation.use?0:W.value.percentage);function Un(){let e=0,t=H.value.animation.speed,n=.005*H.value.animation.acceleration;function r(){Hn.value+=t+e,e+=n,Hn.value<W.value.percentage?requestAnimationFrame(r):Hn.value=W.value.percentage}H.value.animation.use&&(Hn.value=0,r())}Fe(()=>{Kn(),Un()});let Wn=y(()=>V.value.debug);function Gn(){Wn.value&&(ce(P.dataset)?m({componentName:`VueUi3dBar`,type:`dataset`,debug:Wn.value}):P.dataset.series?P.dataset.series.forEach((e,t)=>{se({datasetObject:e,requiredAttributes:[`name`,`value`]}).forEach(e=>{m({componentName:`VueUi3dBar`,type:`datasetSerieAttribute`,property:e,index:t,debug:Wn.value})}),e.breakdown&&e.breakdown.forEach((e,n)=>{se({datasetObject:e,requiredAttributes:[`name`,`value`]}).forEach(e=>{m({componentName:`VueUi3dBar`,type:`datasetSerieAttribute`,property:e,index:`${t} - ${n}`,debug:Wn.value})})})}):se({datasetObject:P.dataset,requiredAttributes:[`percentage`]}).forEach(e=>{m({componentName:`VueUi3dBar`,type:`datasetAttribute`,property:e,debug:Wn.value})}))}function Kn(){if(Gn(),V.value.responsive){let e=Se(()=>{let{width:e,height:t}=Ce({chart:I.value,title:H.value.title.text?bn.value:null,source:Cn.value});requestAnimationFrame(()=>{Vn.value=t-12,Bn.value=e})});xn.value&&(Sn.value&&xn.value.unobserve(Sn.value),xn.value.disconnect()),xn.value=new ResizeObserver(e),Sn.value=I.value.parentNode,xn.value.observe(Sn.value)}}let qn=y(()=>q.value.width/4);function Jn(e,t,n,r){let i=q.value.height-q.value.bottom-q.value.top-q.value.perspective*2,{width:a,height:o,bottom:c,right:u,left:d,perspective:f}=q.value,p=K.value?a/4:a/2,m=p*2+d,h=c+i*e,g=o-h-f-i*t/2,ee=g>q.value.height/2?`top`:`bottom`,te=o*.25,ne=!!n,re=null,ie=null;return ne&&(n=n.map((e,t)=>({...e,value:e.value||0,color:s(r,t/n.length)})),re=l({series:n},a/2+a/5,ee===`top`?g-te:g+te,a/10,a/10,1.99999,2,1,360,105.25,a/20),ie=l({series:n},a-m+a/14,o-h-f-i*t/2,a/40,a/40,1.99999,2,1,360,105.25,a/40)),{donut:re,miniDonut:ie,donutR:a/20,CENTER_X:p,sidePointer:{x:a-m,x2:a-m+a/14,xText:a-m+a/9,y:o-h-f-i*t/2,topY:o-h-f-i*t,height:i*t},apexBottom:{y:o-h,x:p},apexTop:{y:o-h-i*t,x:p},right:`M${p},${o-h} ${p},${o-h-i*t} ${a-m},${o-h-f-i*t} ${a-m},${o-h-f}Z`,left:`M${p},${o-h} ${p},${o-h-i*t} ${d}, ${o-h-f-i*t} ${d},${o-h-f}Z`,liningTop:`M${d},${o-h-f-i*t} ${p},${o-h-i*t} ${a-m},${o-h-f-i*t}`,liningTopShade:`M${d},${o-h-f-i*t-.5} ${p},${o-h-i*t-.5} ${a-m},${o-h-f-i*t-.5}`,top:`M${p},${o-h-i*t} ${d},${o-h-f-i*t} ${p},${o-h-f*2-i*t} ${a-m},${o-h-f-i*t} Z`,tubeTop:`M${d},${o-h-i*t-f} C ${d},${o-h-i*t-f*2.5} ${a-m},${o-h-i*t-f*2.5} ${a-m},${o-h-i*t-f} C ${a-m},${o-h-i*t+f/2} ${d},${o-h-i*t+f/2} ${d},${o-h-i*t-f}`,bottomTubeTop:`M ${a-m-.5},${o-h-f} C ${a-m-.5},${o-h+f/2} ${d},${o-h+f/2} ${d+.5},${o-h-f}`,tubeBody:`M
|
|
2
|
-
${d},${o-h-i*t-f}
|
|
3
|
-
C ${d},${o-h-i*t+f/2}
|
|
4
|
-
${a-m},${o-h-i*t+f/2}
|
|
5
|
-
${a-m},${o-h-i*t-f}
|
|
6
|
-
L${a-m},${o-h-f}
|
|
7
|
-
C
|
|
8
|
-
${a-m},${o-h+f/2}
|
|
9
|
-
${d},${o-h+f/2}
|
|
10
|
-
${d},${o-h-f}Z`}}let Yn=y(()=>{let e=h(Hn.value/100),t=q.value.height-q.value.bottom-q.value.top-q.value.perspective*2,{width:n,height:r,bottom:i,right:a,left:o,perspective:s}=q.value,c=K.value?n/4:n/2,l=K.value?c*2+o:a,u=i+t*0;return{right:`M${c},${r-u} ${c},${r-u-t*e} ${n-l},${r-u-s-t*e} ${n-l},${r-u-s}Z`,left:`M${c},${r-u} ${c},${r-u-t*e} ${o}, ${r-u-s-t*e} ${o},${r-u-s}Z`,top:`M${c},${r-u-t*e} ${o},${r-u-s-t*e} ${c},${r-u-s*2-t*e} ${n-l},${r-u-s-t*e} Z`,tubeTop:`M${o},${r-u-t*e-s} C ${o},${r-u-t*e-s*2.5} ${n-l},${r-u-t*e-s*2.5} ${n-l},${r-u-t*e-s} C ${n-l},${r-u-t*e+s/2} ${o},${r-u-t*e+s/2} ${o},${r-u-t*e-s}`,tubeBody:`M
|
|
11
|
-
${o},${r-u-t*e-s}
|
|
12
|
-
C ${o},${r-u-t*e+s/2}
|
|
13
|
-
${n-l},${r-u-t*e+s/2}
|
|
14
|
-
${n-l},${r-u-t*e-s}
|
|
15
|
-
L${n-l},${r-s*1.5}
|
|
16
|
-
C
|
|
17
|
-
${n-l},${r}
|
|
18
|
-
${o},${r}
|
|
19
|
-
${o},${r-u-s}Z`}}),X=O(null);function Z(e,t=!1){V.value.events.datapointEnter&&!t&&V.value.events.datapointEnter({datapoint:e,seriesIndex:e.seriesIndex}),V.value.events.datapointClick&&t&&V.value.events.datapointClick({datapoint:e,seriesIndex:e.seriesIndex}),gn(`selectDatapoint`,e);let n=J.value?.findIndex(t=>t.id===e.id)??null;n!==null&&n!==-1&&(z.value=n,B.value=_r(e)),t||(X.value=e.id),t&&L.value&&(L.value=!1),t&&!L.value&&(L.value=!0)}function Q(e){V.value.events.datapointLeave&&V.value.events.datapointLeave({datapoint:e,seriesIndex:e.seriesIndex}),!L.value&&(X.value=null,z.value=null,B.value=``)}function Xn(e,t,n=!1){let r=W.value.series.map(e=>e.value||0).reduce((e,t)=>e+t,0),i=isNaN(e.value/r)?0:e.value/r*100,a=isNaN(e.value/Zn(t))?0:e.value/Zn(t)*100;return n?a:i.toFixed(0)+`%`}function Zn(e){return[...e].map(e=>e.value).reduce((e,t)=>e+t,0)}let Qn=O(!1);function $n(e){Qn.value=e}function er(){return K.value?J.value:W.value.percentage}let tr=y(()=>K.value?{head:J.value.flatMap(e=>e.breakdown&&e.breakdown.length?[{name:e.name,color:e.color},...e.breakdown.map((t,n)=>({name:t.name,color:s(e.color,n/e.breakdown.length)}))]:{name:e.name,color:e.color}),body:J.value.flatMap(e=>e.breakdown&&e.breakdown.length?[e.value,...e.breakdown.map(e=>e.value)]:e.value)}:null);function nr(e=null){K.value?Me(()=>{let t=J.value.map(e=>e.value).reduce((e,t)=>e+t,0),n=tr.value.head.map((e,n)=>[[e.name],[tr.value.body[n]],[isNaN(tr.value.body[n]/t)?`-`:tr.value.body[n]/t*100]]),r=[[H.value.title.text],[H.value.title.subtitle.text],[[``],[`val`],[`%`]]].concat(n),i=o(r);e?e(i):re({csvContent:i,title:H.value.title.text||`vue-ui-3d-bar`})}):console.warn(`VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)`)}let $=y(()=>{if(!K.value||!Array.isArray(J.value)||!J.value.length)return{colNames:[],head:[],body:[],a11yBody:[],config:{th:{backgroundColor:V.value.table.th.backgroundColor,color:V.value.table.th.color,outline:V.value.table.th.outline},td:{backgroundColor:V.value.table.td.backgroundColor,color:V.value.table.td.color,outline:V.value.table.td.outline},breakpoint:V.value.table.responsiveBreakpoint,shape:V.value.style.shape===`tube`?`circle`:`square`}};let e=J.value.reduce((e,t)=>e+t.value,0),t=[`__SUM__`,a({p:H.value.legend.prefix,v:e,s:H.value.legend.suffix,r:V.value.table.td.roundingValue}),`100%`],n=tr.value.head.map((t,n)=>{let r=tr.value.body[n];return[{color:t.color,name:t.name},a({p:H.value.legend.prefix,v:r,s:H.value.legend.suffix,r:V.value.table.td.roundingValue}),isNaN(r/e)?`-`:a({v:r/e*100,s:`%`,r:V.value.table.td.roundingPercentage})]}),r=n.map(e=>e.map((e,t)=>t===0?e.name:e));return{colNames:[V.value.table.columnNames.series,V.value.table.columnNames.value,V.value.table.columnNames.percentage],head:t,body:n,a11yBody:r,config:{th:{backgroundColor:V.value.table.th.backgroundColor,color:V.value.table.th.color,outline:V.value.table.th.outline},td:{backgroundColor:V.value.table.td.backgroundColor,color:V.value.table.td.color,outline:V.value.table.td.outline},breakpoint:V.value.table.responsiveBreakpoint,shape:V.value.style.shape===`tube`?`circle`:`square`}}});function rr(){G.value.showTable=!G.value.showTable}let ir=O(!1);function ar(){ir.value=!ir.value}async function or({scale:e=2}={}){if(!I.value)return;let{width:t,height:n}=I.value.getBoundingClientRect(),r=t/n,{imageUri:i,base64:a}=await me({domElement:I.value,base64:!0,img:!0,scale:e});return{imageUri:i,base64:a,title:H.value.title.text,width:t,height:n,aspectRatio:r}}let sr=y(()=>ve({config:V,style:H,mutableConfig:G,dialog:mn,accordion:ln,isFullscreen:Qn,parent:I,maxWidth:800}));Re(()=>G.value.showTable,e=>_e(e,V,wn));function cr(){G.value.showTable=!1,Tn.value&&Tn.value.setTableIconState(!1)}let lr=y(()=>V.value.style.chart.backgroundColor),ur=y(()=>V.value.style.chart.title),{isCallbackImaging:dr,isCallbackSvg:fr,generateSvg:pr,onGenerateImage:mr}=ge({svg:Nn,title:ur,legend:null,legendItems:null,backgroundColor:lr,getSvgCallback:()=>V.value.userOptions.callbacks.svg,generateImage:Rn});async function hr(){gn(`copyAlt`,{config:V.value,dataset:W.value}),V.value.userOptions.callbacks.altCopy?await Promise.resolve(V.value.userOptions.callbacks.altCopy({config:V.value,dataset:W.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function gr(){z.value=null,B.value=``,L.value=!1,X.value=null}function _r(e){if(!e)return``;let t=a({p:H.value.legend.prefix,v:e.value,s:H.value.legend.suffix,r:H.value.legend.roundingValue}),n=a({v:e.proportion*100,s:`%`,r:H.value.legend.roundingPercentage});return`${e.name}: ${t}, ${n}`}function vr(e){if(!K.value||!J.value?.length)return;let t=J.value[e];t&&(z.value=e,X.value=t.id,B.value=_r(t))}function yr(){R.value=!0,K.value&&J.value?.length&&z.value===null&&vr(0)}function br(){R.value=!1,L.value||(z.value=null,X.value=null,B.value=``)}function xr(e){if(!K.value||!J.value?.length||!Nn.value||document.activeElement!==Nn.value)return;let t=[`ArrowLeft`,`ArrowDown`].includes(e.key),n=[`ArrowRight`,`ArrowUp`].includes(e.key),r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){gr();return}if(r){if(z.value===null)return;let e=J.value[z.value];if(!e)return;Z(e,!0),B.value=`${_r(e)} selected`;return}let a=z.value;a===null||a<0||a>=J.value.length?a=n?0:J.value.length-1:n?(a+=1,a>=J.value.length&&(a=0)):t&&(--a,a<0&&(a=J.value.length-1)),vr(a)}let Sr=y(()=>({headers:$.value?.colNames??[],rows:$.value?.a11yBody??[]}));return fe({getImage:or,generateCsv:nr,generatePdf:Ln,generateImage:Rn,generateSvg:pr,getData:er,toggleTable:rr,toggleAnnotator:ar,toggleFullscreen:$n,copyAlt:hr}),(e,i)=>(D(),S(`div`,{ref_key:`bar3dChart`,ref:I,class:Ne(`vue-data-ui-component vue-ui-3d-bar`),style:E(`font-family:${En.value.fontFamily};width:100%; text-align:center;background:${H.value.backgroundColor}`),id:`3d_bar_${F.value}`,onMouseenter:i[8]||=()=>M(jn)(!0),onMouseleave:i[9]||=()=>M(jn)(!1)},[C(`div`,{id:`chart-instructions-${F.value}`,class:`sr-only`},[C(`p`,null,j(V.value.a11y.translations.keyboardNavigation),1)],8,Ue),C(`div`,We,j(B.value),1),Sr.value?.rows?.length?(D(),b(we,{key:0,uid:F.value,head:Sr.value.headers,body:Sr.value.rows,notice:V.value.a11y.translations.tableAvailable,caption:V.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):x(``,!0),U.value.buttons.annotator?(D(),b(M(dn),je({key:1},M(n)(U.value.annotator),{svgRef:M(Nn),backgroundColor:H.value.backgroundColor,color:H.value.color,active:ir.value,isCursorPointer:Dn.value,palette:U.value.annotatorPalette,onClose:ar}),Oe({_:2},[k(M(r),n=>({name:n,fn:N(r=>[A(e.$slots,n,Pe(Ae(M(t)(n,r))),void 0,!0)])}))]),1040,[`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):x(``,!0),H.value.title.text?(D(),S(`div`,{key:2,ref_key:`chartTitle`,ref:bn,style:`width:100%;background:transparent`},[(D(),b(he,{key:`title_${vn.value}`,config:{title:{cy:`3dBar-div-title`,...H.value.title},subtitle:{cy:`3dBar-div-subtitle`,...H.value.title.subtitle}}},null,8,[`config`]))],512)):x(``,!0),U.value.show&&_n.value&&(M(Mn)||M(An))?(D(),b(M(fn),{key:3,ref_key:`userOptionsRef`,ref:Tn,backgroundColor:H.value.backgroundColor,color:H.value.color,isPrinting:M(Fn),isImaging:M(In),uid:F.value,hasPdf:U.value.buttons.pdf,hasTable:!!K.value&&U.value.buttons.table,hasXls:!!K.value&&U.value.buttons.csv,hasImg:U.value.buttons.img,hasSvg:U.value.buttons.svg,hasFullscreen:U.value.buttons.fullscreen,hasAltCopy:U.value.buttons.altCopy,titles:{...U.value.buttonTitles},isFullscreen:Qn.value,chartElement:I.value,position:U.value.position,hasAnnotator:U.value.buttons.annotator,isAnnotation:ir.value,callbacks:U.value.callbacks,printScale:U.value.print.scale,tableDialog:V.value.table.useDialog,isCursorPointer:Dn.value,onToggleFullscreen:$n,onGeneratePdf:M(Ln),onGenerateCsv:nr,onGenerateImage:M(mr),onGenerateSvg:M(pr),onToggleTable:rr,onToggleAnnotator:ar,onCopyAlt:hr,style:E({visibility:M(Mn)?M(An)?`visible`:`hidden`:`visible`})},Oe({_:2},[k(M(ye)(e.$slots,`menuIcon optionPdf optionCsv optionImg optionSvg optionTable optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:N(n=>[A(e.$slots,t,Pe(Ae(M(be)(t,n))),void 0,!0)])}))]),1032,/* @__PURE__ */ `backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasTable.hasXls.hasImg.hasSvg.hasFullscreen.hasAltCopy.titles.isFullscreen.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style`.split(`.`))):x(``,!0),C(`div`,Ge,[(D(),S(`svg`,{ref_key:`svgRef`,ref:Nn,xmlns:M(ae),class:Ne({"vue-data-ui-fullscreen--on":Qn.value,"vue-data-ui-fulscreen--off":!Qn.value}),viewBox:`0 0 ${q.value.absoluteWidth} ${q.value.height}`,style:E(`max-width:100%; overflow: visible; background:transparent;color:${H.value.color}`),tabindex:`0`,"aria-describedby":`chart-instructions-${F.value}`,onFocus:yr,onBlur:br,onKeydown:xr},[w(M(pn)),A(e.$slots,`svg-underlayer`,{svg:{...q.value,isPrintingImg:M(Fn)||M(In)||M(dr),isPrintingSvg:M(fr)}},void 0,!0),e.$slots[`chart-background`]?(D(),S(`foreignObject`,{key:0,x:0,y:0,width:q.value.absoluteWidth,height:q.value.height,style:{pointerEvents:`none`}},[A(e.$slots,`chart-background`,{},void 0,!0)],8,qe)):x(``,!0),C(`defs`,null,[w(_,{t:`radial`,id:`gradient_top${F.value}`,stops:[[`0%`,M(u)(H.value.backgroundColor,0),1],[`100%`,H.value.bar.color,1]]},null,8,[`id`,`stops`]),w(_,{t:`radial`,id:`gradient_tube_top${F.value}`,stops:[[`0%`,M(u)(M(s)(H.value.bar.color,.5),80),1],[`100%`,M(u)(M(d)(H.value.bar.color,.1),80),1]]},null,8,[`id`,`stops`]),w(_,{t:`radial`,id:`gradient_left${F.value}`,stops:[[`0%`,M(u)(H.value.backgroundColor,0),1],[`100%`,M(u)(H.value.bar.color,20),1]]},null,8,[`id`,`stops`]),w(_,{t:`radial`,id:`gradient_right${F.value}`,stops:[[`0%`,M(u)(H.value.backgroundColor,0),1],[`100%`,M(u)(H.value.bar.color,20),1]]},null,8,[`id`,`stops`]),w(_,{t:`linear`,id:`gradient_tube_body${F.value}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,H.value.bar.color,1],[`10%`,M(u)(M(d)(H.value.bar.color,.7),100),1],[`25%`,M(u)(M(d)(H.value.bar.color,.5),100),1],[`75%`,M(u)(H.value.bar.color,80),1],[`100%`,M(u)(M(s)(H.value.bar.color,.7),100),1]]},null,8,[`id`,`stops`])]),K.value?(D(),S(`defs`,Je,[(D(!0),S(v,null,k(J.value,e=>(D(),b(_,{t:`radial`,id:`grad_top_${e.id}`,key:`grad_top_${e.id}`,stops:[[`0%`,M(u)(M(s)(e.color,.5),80),1],[`100%`,e.color,1]]},null,8,[`id`,`stops`]))),128)),(D(!0),S(v,null,k(J.value,e=>(D(),b(_,{t:`linear`,id:`grad_left_${e.id}`,key:`grad_left_${e.id}`,stops:[[`0%`,M(u)(e.color,80),1],[`100%`,M(u)(M(d)(e.color,.5),100),1]]},null,8,[`id`,`stops`]))),128)),(D(!0),S(v,null,k(J.value,e=>(D(),b(_,{t:`linear`,id:`grad_right_${e.id}`,key:`grad_right_${e.id}`,stops:[[`2%`,M(u)(M(s)(e.color,.5),100),1],[`100%`,M(u)(e.color,80),1]]},null,8,[`id`,`stops`]))),128)),w(_,{t:`linear`,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`,id:`vertical_line_${F.value}`,stops:[[`0%`,`#FFFFFF`,1],[`100%`,`#FFFFFF33`,1]]},null,8,[`id`])])):x(``,!0),H.value.dataLabel.show&&![null,void 0].includes(M(W).percentage)&&[null,void 0].includes(M(W).series)?(D(),S(`text`,{key:2,x:q.value.width/2,y:q.value.top-H.value.dataLabel.fontSize/2,"font-size":H.value.dataLabel.fontSize,"font-weight":H.value.dataLabel.bold?`bold`:`normal`,fill:H.value.dataLabel.color,"text-anchor":`middle`},j(M(a)({v:Hn.value,s:`%`,r:H.value.dataLabel.rounding})),9,Ye)):x(``,!0),L.value?(D(),S(`g`,{key:3,role:`button`,tabindex:`0`,"aria-label":`Clear selection`,onClick:i[0]||=e=>{L.value=!1,X.value=null},onKeydown:[i[1]||=ze(Be(e=>{L.value=!1,X.value=null},[`prevent`]),[`enter`]),i[2]||=ze(Be(e=>{L.value=!1,X.value=null},[`prevent`]),[`space`])],onFocus:i[3]||=e=>R.value=!0,onBlur:i[4]||=e=>R.value=!1,onMouseenter:i[5]||=e=>R.value=!0,onMouseleave:i[6]||=e=>R.value=!1,class:`svg-btn`,"data-dom-to-png-ignore":``,style:E({cursor:Dn.value?`pointer`:`default`,outline:`none`})},[i[10]||=C(`title`,null,`Clear selection`,-1),C(`rect`,{x:qn.value-12,y:q.value.top-24,width:24,height:24,fill:`transparent`,"pointer-events":`all`},null,8,Xe),C(`circle`,{cx:qn.value,cy:q.value.top-12,r:`10`,fill:`none`,stroke:H.value.color,"stroke-width":`2`,"vector-effect":`non-scaling-stroke`,opacity:R.value?.5:0},null,8,Ze),C(`path`,{d:`M${qn.value-6},${q.value.top-18} ${qn.value+6},${q.value.top-6}`,stroke:H.value.color,"stroke-linecap":`round`,"stroke-width":`2`,"vector-effect":`non-scaling-stroke`},null,8,Qe),C(`path`,{d:`M${qn.value+6},${q.value.top-18} ${qn.value-6},${q.value.top-6}`,stroke:H.value.color,"stroke-linecap":`round`,"stroke-width":`2`,"vector-effect":`non-scaling-stroke`},null,8,$e)],36)):x(``,!0),!En.value.shape||En.value.shape===`bar`?(D(),S(`g`,et,[K.value?x(``,!0):(D(),S(`g`,tt,[C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.right,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,nt),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.left,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,rt),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.side,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,it),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.topSides,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,at)])),K.value?x(``,!0):(D(),S(`g`,ot,[C(`path`,{d:Yn.value.right,stroke:H.value.bar.stroke,"stroke-width":H.value.bar.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_right${F.value})`},null,8,st),C(`path`,{d:Yn.value.left,stroke:H.value.bar.stroke,"stroke-width":H.value.bar.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_left${F.value})`},null,8,ct),C(`path`,{d:Yn.value.top,stroke:H.value.bar.stroke,"stroke-width":H.value.bar.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_top${F.value})`},null,8,lt)])),K.value?(D(),S(`g`,ut,[(D(!0),S(v,null,k(J.value,(e,t)=>(D(),S(`g`,{style:E(`opacity:${X.value?X.value===e.id?1:.3:1}`),class:`vue-ui-3d-bar-stack`,role:`img`,"aria-label":_r(e)},[C(`path`,{d:e.fill.right,fill:`url(#grad_right_${e.id})`,onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e)},null,40,ft),C(`path`,{d:e.fill.left,fill:`url(#grad_left_${e.id})`,onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e)},null,40,pt),C(`path`,{d:e.fill.top,fill:`url(#grad_top_${e.id})`,onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e)},null,40,mt),C(`path`,{d:e.fill.liningTop,stroke:`#FFFFFF`,"stroke-width":`0.5`,"stroke-linecap":`round`,fill:`none`,onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e)},null,40,ht),C(`path`,{d:`M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,stroke:`#FFFFFF`,"stroke-width":`0.5`,"stroke-linecap":`round`},null,8,gt)],12,dt))),256)),(D(!0),S(v,null,k(J.value,(e,t)=>(D(),S(`g`,null,[t===J.value.length-1?x(``,!0):(D(),S(`path`,{key:0,d:e.fill.liningTopShade,stroke:H.value.bar.shadeColor,"stroke-width":`0.5`,"stroke-linecap":`round`,fill:`none`,style:{"pointer-events":`none`}},null,8,_t))]))),256)),(D(!0),S(v,null,k(J.value,(t,n)=>(D(),S(`g`,{style:E(`opacity:${X.value?+(X.value===t.id):+(t.proportion*100>H.value.legend.hideUnderPercentage)}`),onClick:e=>gn(`selectDatapoint`,t)},[C(`path`,{stroke:H.value.color,"stroke-dasharray":`1`,"stroke-width":`0.5`,"stroke-linecap":`round`,d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`},null,8,yt),!t.fill.miniDonut||X.value?(D(),S(`circle`,{key:0,cx:t.fill.sidePointer.x2,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:H.value.backgroundColor},null,8,bt)):x(``,!0),M(kn)?(D(),S(`rect`,{key:1,x:t.fill.sidePointer.xText,y:t.fill.sidePointer.y-H.value.legend.fontSize/2,width:q.value.width/3,height:H.value.legend.fontSize,fill:`#6A6A6A80`,rx:`3`},null,8,xt)):x(``,!0),M(kn)?x(``,!0):(D(),S(`foreignObject`,{key:2,x:t.fill.sidePointer.xText,y:t.fill.sidePointer.y-H.value.legend.fontSize,width:q.value.absoluteWidth/3,height:H.value.legend.fontSize*2,style:{overflow:`visible`,position:`relative`}},[H.value.legend.showDefault?(D(),S(`div`,{key:0,style:E(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${H.value.legend.fontSize}px; text-align:left; line-height: ${H.value.legend.fontSize}px; color:${H.value.legend.color}; font-weight:${H.value.legend.bold?`bold`:`normal`}`)},j(M(te)(H.value.dataLabel.formatter,t.value,`${t.name}: ${M(a)({v:t.proportion*100,s:`%`,r:H.value.legend.roundingPercentage})} (${M(a)({p:H.value.legend.prefix,v:t.value,s:H.value.legend.suffix,r:H.value.legend.roundingValue})})`,{datapoint:t,seriesIndex:n,type:`barDatapoint`})),5)):x(``,!0),A(e.$slots,`legend`,je({ref_for:!0},{datapoint:t,config:V.value,dataset:J.value}),void 0,!0)],8,St)),t.fill.donut&&X.value===t.id?(D(),S(`g`,Ct,[(D(!0),S(v,null,k(t.fill.donut,(e,n)=>(D(),S(`g`,null,[Xn(e,t.fill.donut,!0)>6?(D(),S(`path`,{key:0,d:M(ee)(e,{x:e.cx,y:e.cy},0,8,!1,!0,10),stroke:e.color,class:`vue-ui-donut-arc-path`,"stroke-width":`0.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},null,8,wt)):x(``,!0)]))),256)),(D(!0),S(v,null,k(t.fill.donut,(e,t)=>(D(),S(`path`,{class:`vue-ui-donut-arc-path`,d:e.arcSlice,fill:`${e.color}`,stroke:H.value.backgroundColor,"stroke-width":1},null,8,Tt))),256)),(D(!0),S(v,null,k(t.fill.donut,(e,n)=>(D(),S(`g`,null,[Xn(e,t.fill.donut,!0)>6?(D(),S(`g`,Et,[C(`text`,{"text-anchor":M(g)(e,!0,0).anchor,x:M(g)(e,!0,2).x,y:M(ie)(e,12,12),fill:H.value.legend.color,"font-size":H.value.legend.fontSize/1.5,"font-weight":H.value.legend.bold?`bold`:`normal`},j(M(te)(H.value.dataLabel.formatter,e.value,`${Xn(e,t.fill.donut)} (${M(a)({p:V.value.style.chart.legend.prefix,v:e.value,s:V.value.style.chart.legend.suffix,r:V.value.style.chart.legend.roundingValue})})`,{datapoint:e,seriesIndex:n,type:`donutDatapoint`})),9,Dt),C(`text`,{"text-anchor":M(g)(e).anchor,x:M(g)(e,!0,2).x,y:M(ie)(e,12,12)+H.value.legend.fontSize/1.5,fill:H.value.legend.color,"font-size":H.value.legend.fontSize/1.5,"font-weight":H.value.legend.bold?`bold`:`normal`},j(e.name),9,Ot)])):x(``,!0)]))),256))])):x(``,!0),t.fill.miniDonut&&!X.value?(D(),S(`g`,kt,[(D(!0),S(v,null,k(t.fill.miniDonut,(e,t)=>(D(),S(`path`,{class:`vue-ui-donut-arc-path`,d:e.arcSlice,fill:`${e.color}`,stroke:H.value.backgroundColor,"stroke-width":.5},null,8,At))),256))])):x(``,!0)],12,vt))),256))])):x(``,!0)])):x(``,!0),En.value.shape===`tube`?(D(),S(`g`,jt,[K.value?x(``,!0):(D(),S(`g`,Mt,[C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.tubeTop,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,Nt),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.tubeLeft,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,Pt),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.tubeRight,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,Ft),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.tubeBottom,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,It),C(`path`,{d:Yn.value.tubeTop,stroke:H.value.bar.stroke,"stroke-width":H.value.bar.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_tube_top${F.value})`},null,8,Lt),C(`path`,{d:Yn.value.tubeBody,stroke:H.value.bar.stroke,"stroke-width":H.value.bar.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_tube_body${F.value})`},null,8,Rt),C(`path`,{d:Yn.value.tubeTop,stroke:`#FFFFFF`,"stroke-width":.5,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,zt)])),K.value?(D(),S(`g`,Bt,[(D(!0),S(v,null,k(J.value,(e,t)=>(D(),S(`g`,{style:E(`opacity:${X.value?X.value===e.id?1:.3:1}`),class:`vue-ui-3d-bar-stack`,role:`img`,"aria-label":_r(e)},[C(`defs`,null,[w(_,{t:`radial`,id:`gradient_tube_top_${e.id}`,fx:`10%`,cy:`55%`,stops:[[`0%`,M(u)(M(s)(e.color,.5),80),1],[`100%`,M(u)(M(d)(e.color,.1),80),1]]},null,8,[`id`,`stops`]),w(_,{t:`linear`,id:`gradient_tube_body_${e.id}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,e.color,1],[`10%`,M(u)(M(d)(e.color,.7),100),1],[`25%`,M(u)(M(d)(e.color,.5),100),1],[`75%`,M(u)(e.color,80),1],[`100%`,M(u)(M(s)(e.color,.7),100),1]]},null,8,[`id`,`stops`])]),C(`path`,{onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e),d:e.fill.tubeBody,stroke:`#FFFFFF`,"stroke-width":.5,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_tube_body_${e.id})`},null,40,Ht),t>0?(D(),S(`path`,{key:0,onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e),d:e.fill.bottomTubeTop,stroke:`#000000`,"stroke-width":.5,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,40,Ut)):x(``,!0),C(`path`,{onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e),d:e.fill.tubeTop,stroke:`#FFFFFF`,"stroke-width":.5,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_tube_top_${e.id})`},null,40,Wt)],12,Vt))),256)),(D(!0),S(v,null,k(J.value,(t,n)=>(D(),S(`g`,{style:E(`opacity:${X.value?+(X.value===t.id):+(t.proportion*100>H.value.legend.hideUnderPercentage)}`),onClick:e=>gn(`selectDatapoint`,t)},[C(`path`,{stroke:H.value.color,"stroke-dasharray":`1`,"stroke-width":`0.5`,"stroke-linecap":`round`,d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`},null,8,Kt),!t.fill.miniDonut||X.value?(D(),S(`circle`,{key:0,cx:t.fill.sidePointer.x2,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:H.value.backgroundColor},null,8,qt)):x(``,!0),M(kn)?(D(),S(`rect`,{key:1,x:t.fill.sidePointer.xText,y:t.fill.sidePointer.y-H.value.legend.fontSize/2,width:q.value.width/3,height:H.value.legend.fontSize,fill:`#6A6A6A80`,rx:`3`},null,8,Jt)):x(``,!0),M(kn)?x(``,!0):(D(),S(`foreignObject`,{key:2,x:t.fill.sidePointer.xText,y:t.fill.sidePointer.y-H.value.legend.fontSize,width:q.value.absoluteWidth/3,height:H.value.legend.fontSize*2,style:{overflow:`visible`,position:`relative`}},[H.value.legend.showDefault?(D(),S(`div`,{key:0,style:E(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${H.value.legend.fontSize}px; text-align:left; line-height: ${H.value.legend.fontSize}px; color:${H.value.legend.color};font-weight:${H.value.legend.bold?`bold`:`normal`}`)},j(M(te)(H.value.dataLabel.formatter,t.value,`${t.name}: ${M(a)({v:t.proportion*100,s:`%`,r:H.value.legend.roundingPercentage})} (${M(a)({p:H.value.legend.prefix,v:t.value,s:H.value.legend.suffix,r:H.value.legend.roundingValue})})`,{datapoint:t,seriesIndex:n,type:`barDatapoint`})),5)):x(``,!0),A(e.$slots,`legend`,je({ref_for:!0},{datapoint:t,config:V.value,dataset:J.value}),void 0,!0)],8,Yt)),t.fill.donut&&X.value===t.id?(D(),S(`g`,Xt,[(D(!0),S(v,null,k(t.fill.donut,(e,n)=>(D(),S(`g`,null,[Xn(e,t.fill.donut,!0)>6?(D(),S(`path`,{key:0,d:M(ee)(e,{x:e.cx,y:e.cy},0,8,!1,!0,10),stroke:e.color,class:`vue-ui-donut-arc-path`,"stroke-width":`0.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},null,8,Zt)):x(``,!0)]))),256)),(D(!0),S(v,null,k(t.fill.donut,(e,t)=>(D(),S(`path`,{class:`vue-ui-donut-arc-path`,d:e.arcSlice,fill:`${e.color}`,stroke:H.value.backgroundColor,"stroke-width":1},null,8,Qt))),256)),(D(!0),S(v,null,k(t.fill.donut,(e,n)=>(D(),S(`g`,null,[Xn(e,t.fill.donut,!0)>6?(D(),S(`g`,$t,[C(`text`,{"text-anchor":M(g)(e,!0,0).anchor,x:M(g)(e,!0,2).x,y:M(ie)(e,12,12),fill:H.value.legend.color,"font-size":H.value.legend.fontSize/1.5,"font-weight":H.value.legend.bold?`bold`:`normal`},j(M(te)(H.value.dataLabel.formatter,e.value,`${Xn(e,t.fill.donut)} (${M(a)({p:V.value.style.chart.legend.prefix,v:e.value,s:V.value.style.chart.legend.suffix,r:V.value.style.chart.legend.roundingValue})})`,{datapoint:e,seriesIndex:n,type:`donutDatapoint`})),9,en),C(`text`,{"text-anchor":M(g)(e).anchor,x:M(g)(e,!0,2).x,y:M(ie)(e,12,12)+H.value.legend.fontSize/1.5,fill:H.value.legend.color,"font-size":H.value.legend.fontSize/1.5,"font-weight":H.value.legend.bold?`bold`:`normal`},j(e.name),9,tn)])):x(``,!0)]))),256))])):x(``,!0),t.fill.miniDonut&&!X.value?(D(),S(`g`,nn,[(D(!0),S(v,null,k(t.fill.miniDonut,(e,t)=>(D(),S(`path`,{class:`vue-ui-donut-arc-path`,d:e.arcSlice,fill:`${e.color}`,stroke:H.value.backgroundColor,"stroke-width":.5},null,8,rn))),256))])):x(``,!0)],12,Gt))),256))])):x(``,!0)])):x(``,!0),A(e.$slots,`svg`,{svg:{...q.value,isPrintingImg:M(Fn)||M(In)||M(dr),isPrintingSvg:M(fr)}},void 0,!0)],46,Ke))]),e.$slots.watermark?(D(),S(`div`,an,[A(e.$slots,`watermark`,Pe(Ae({isPrinting:M(Fn)||M(In)||M(fr)||M(dr)})),void 0,!0)])):x(``,!0),e.$slots.source?(D(),S(`div`,{key:5,ref_key:`source`,ref:Cn,dir:`auto`},[A(e.$slots,`source`,{},void 0,!0)],512)):x(``,!0),_n.value&&K.value&&U.value.buttons.table?(D(),b(Ie(sr.value.component),je({key:6},sr.value.props,{ref_key:`tableUnit`,ref:wn,onClose:cr}),Oe({content:N(()=>[(D(),b(M(un),{key:`table_${yn.value}`,colNames:$.value.colNames,head:$.value.head,body:$.value.body,config:$.value.config,title:V.value.table.useDialog?``:sr.value.title,withCloseButton:!V.value.table.useDialog,isCursorPointer:Dn.value,onClose:cr},{th:N(({th:e})=>[e===`__SUM__`?(D(),S(`div`,on,[w(M(cn),{name:`sigma`,stroke:$.value.config.th.color,size:16},null,8,[`stroke`])])):(D(),S(`div`,sn,j(e),1))]),td:N(({td:e})=>[ke(j(e.name||e),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[V.value.table.useDialog?{name:`title`,fn:N(()=>[ke(j(sr.value.title),1)]),key:`0`}:void 0,V.value.table.useDialog?{name:`actions`,fn:N(()=>[C(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:i[7]||=e=>nr(U.value.callbacks.csv)},[w(M(cn),{name:`fileCsv`,stroke:sr.value.props.color},null,8,[`stroke`])])]),key:`1`}:void 0]),1040)):x(``,!0),A(e.$slots,`skeleton`,{},()=>[M(kn)?(D(),b(ue,{key:0})):x(``,!0)],!0)],44,He))}},[[`__scopeId`,`data-v-068856ae`]]);export{Ve as n,cn as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,r as n,t as r}from"./annotationSlots-OLiW25XN.js";import{t as i}from"./useConfig-By3Vb5kz.js";import{$ as a,D as o,Dt as ee,Jt as te,X as ne,Yt as re,at as ie,b as s,et as ae,i as c,in as oe,nt as se,pt as ce,t as le,tn as ue,zt as de}from"./lib-rPeBMZrn.js";import{n as fe,t as pe}from"./BaseScanner-8NdoBs7B.js";import{n as me,t as he}from"./useHints-C-TwxM0Y.js";import{t as ge}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as _e}from"./resolveChartConfig-CIhClE5R.js";import{t as ve}from"./img-D4RQwASc.js";import{n as ye}from"./Title-BliHuXfT.js";import{t as be}from"./useChartExport-BZts4KFb.js";import{n as xe,t as Se}from"./tableIntegration-CNoJ1CIY.js";import{n as Ce,t as we}from"./userOptionsSlots-DYuo-E5m.js";import{t as Te}from"./usePrinter-DVf3YcG5.js";import{t as Ee}from"./useSvgLabelLayout-42Kats14.js";import{t as De}from"./useTimeLabelCollider-BTybMUFi.js";import{t as Oe}from"./useResponsive-CENUxfEL.js";import{t as ke}from"./DefGrad-DKMq1REY.js";import{t as Ae}from"./A11yDataTable-DWNlWXzs.js";import{t as je}from"./useUserOptionState-CXlFnwPv.js";import{t as Me}from"./useChartAccessibility-DOMuYJfm.js";import{t as Ne}from"./vue_ui_age_pyramid-CL0Ef8Ov.js";import{Fragment as l,computed as u,createBlock as d,createCommentVNode as f,createElementBlock as p,createElementVNode as m,createSlots as Pe,createTextVNode as Fe,createVNode as h,defineAsyncComponent as g,guardReactiveProps as _,mergeProps as Ie,nextTick as Le,normalizeClass as Re,normalizeProps as v,normalizeStyle as ze,onBeforeUnmount as Be,onMounted as Ve,openBlock as y,ref as b,renderList as x,renderSlot as S,resolveDynamicComponent as He,shallowRef as Ue,toDisplayString as C,toRefs as We,unref as w,watch as T,withCtx as E}from"vue";var Ge=/* @__PURE__ */ e({default:()=>bt}),Ke=[`id`],qe=[`id`],Je={style:{position:`relative`}},Ye=[`xmlns`,`viewBox`,`aria-describedby`],Xe=[`x`,`y`,`width`,`height`],Ze=[`x`,`y`,`width`,`height`,`fill`,`rx`],Qe=[`x`,`y`,`width`,`height`,`fill`,`rx`],$e=[`x`,`y`,`width`,`height`,`fill`,`rx`],et=[`x`,`y`,`width`,`height`,`fill`,`rx`],tt=[`x`,`y`,`font-size`,`font-weight`,`fill`,`stroke`],nt=[`x`,`y`,`font-size`,`font-weight`,`fill`,`stroke`],rt={key:0},it=[`x`,`y`,`fill`,`font-size`,`font-weight`],at=[`x`,`y`,`fill`,`font-size`,`font-weight`],ot={key:1},st=[`x`,`y`,`font-size`,`fill`,`font-weight`],ct={key:2},lt={key:0},ut=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],dt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],ft=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],pt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],mt=[`font-size`,`fill`,`text-anchor`,`font-weight`,`transform`],ht=[`font-size`,`fill`,`text-anchor`,`font-weight`,`transform`],gt=[`x`,`y`,`font-size`,`fill`,`font-weight`],_t=[`x`,`y`,`width`,`height`,`fill`,`onMouseover`,`onMouseleave`,`onClick`],vt={key:0,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},yt={key:5,class:`vue-data-ui-watermark`},bt=/*#__PURE__*/ ge({__name:`vue-ui-age-pyramid`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:[`copyAlt`],setup(e,{expose:ge,emit:Ge}){let bt=g(()=>import(`./Tooltip-C1q0Qoh7.js`)),xt=g(()=>import(`./BaseIcon-CoY0vuL3.js`).then(e=>e.n)),St=g(()=>import(`./vue-ui-accordion-DFxSW8ET.js`).then(e=>e.n)),Ct=g(()=>import(`./DataTable-Dof6yhO7.js`)),wt=g(()=>import(`./PenAndPaper-DoNTA-SV.js`).then(e=>e.t)),Tt=g(()=>import(`./UserOptions-B9EyfU9n.js`).then(e=>e.n)),Et=g(()=>import(`./PackageVersion-D6_O7PmZ.js`).then(e=>e.t)),Dt=g(()=>import(`./BaseDraggableDialog-BK7dj9O6.js`).then(e=>e.n)),{vue_ui_age_pyramid:Ot}=i(),D=e,kt=Ge,At=u(()=>!!D.dataset&&D.dataset.length),O=b(ne()),k=b(!1),jt=b(``),A=b(null),Mt=b(0),j=b(null),Nt=b(null),Pt=b(null),Ft=b(null),It=b(0),Lt=b(0),Rt=b(null),zt=b(null),Bt=b(null),M=b(null),Vt=b({x:0,y:0}),N=b(`pointer`),Ht=b(!1),P=b(Xt()),F=u(()=>P.value.style),I=u(()=>P.value.style.layout.dataLabels),L=u(()=>P.value.style.layout.bars),R=u(()=>P.value.style.layout.bars.labels);me({config:()=>P.value,dataset:()=>D.dataset,component:`VueUiAgePyramid`,rules:[he.emptyArray,{test:e=>e.length>130,message:[`👀 Dataset has > 130 points. Consider:`,``,`▶️ Grouping small values into aggregated categories.`,``,`▶️ Using VueUiStackline to display data in a more compact way.`]}]});let z=u(()=>P.value.userOptions.useCursorPointer),Ut=u(()=>oe({defaultConfig:{userOptions:{show:!1},table:{show:!1},translations:{male:``,female:``},style:{backgroundColor:`#99999930`,layout:{bars:{left:{color:`#CACACA`},right:{color:`#999999`}},dataLabels:{xAxis:{fontSize:0,scale:1e3,translation:``},yAxis:{show:!1}},grid:{stroke:`#6A6A6A`}}}},userConfig:P.value.skeletonConfig??{}})),{loading:Wt,FINAL_DATASET:Gt,manualLoading:Kt}=fe({...We(D),FINAL_CONFIG:P,prepareConfig:Xt,skeletonDataset:D.config?.skeletonDataset??[[`_`,9,2,2],[`_`,8,3,3],[`_`,7,5,5],[`_`,6,8,8],[`_`,5,13,13],[`_`,4,21,21],[`_`,3,34,34],[`_`,2,55,55],[`_`,1,89,89],[`_`,0,144,144]],skeletonConfig:oe({defaultConfig:P.value,userConfig:Ut.value})}),{userOptionsVisible:qt,setUserOptionsVisibility:Jt,keepUserOptionState:Yt}=je({config:P.value}),{svgRef:B}=Me({config:P.value.style.title});function Xt(){return _e(D.config,Ot,Ne)}function Zt(e){let t=ae(e);return t?.style?.chart&&delete t.style.tooltip,JSON.stringify(t)}let Qt=Zt(D.config);T(()=>D.config,(e,t)=>{let n=Zt(e),r=n!==Qt;Qt=n;let i=Xt();r?(Wt.value||(P.value=i),qt.value=!P.value.userOptions.showOnChartHover,nn(),It.value+=1,Lt.value+=1,U.value.showTable=P.value.table.show,U.value.showTooltip=P.value.style.tooltip.show):(P.value.style.tooltip=i.style.tooltip,U.value.showTooltip=P.value.style.tooltip.show)},{deep:!0}),T(()=>D.dataset,e=>{Array.isArray(e)&&e.length>0&&(Kt.value=!1)},{deep:!0});let V=Ue(null),H=Ue(null),$t=b(!1),en=0;Ve(()=>{nn()});let tn=u(()=>P.value.debug);function nn(){de(D.dataset)&&(ie({componentName:`VueUiAgePyramid`,type:`dataset`,debug:tn.value}),Kt.value=!0),de(D.dataset)||(Kt.value=P.value.loading),P.value.responsive&&(V.value&&(H.value&&V.value.unobserve(H.value),V.value.disconnect()),V.value=new ResizeObserver(()=>{let{width:e,height:t}=Oe({chart:j.value,title:F.value.title.text?Nt.value:null,source:Pt.value,noTitle:Ft.value});cancelAnimationFrame(en),en=requestAnimationFrame(()=>{W.value.width=e,W.value.height=t,$t.value=!0})}),H.value=j.value.parentNode,V.value.observe(H.value))}Be(()=>{cancelAnimationFrame(en),V.value&&(H.value&&V.value.unobserve(H.value),V.value.disconnect())});let{isPrinting:rn,isImaging:an,generatePdf:on,generateImage:sn}=Te({elementId:`vue-ui-age-pyramid_${O.value}`,fileName:F.value.title.text||`vue-ui-age-pyramid`,options:P.value.userOptions.print}),cn=u(()=>P.value.userOptions.show&&!F.value.title.text),U=b({showTable:P.value.table.show,showTooltip:F.value.tooltip.show});T(P,()=>{U.value={showTable:P.value.table.show,showTooltip:F.value.tooltip.show}},{immediate:!0});let W=b({height:F.value.height,width:F.value.width}),ln=u(()=>W.value.width),un=u(()=>W.value.height),{metrics:dn,ready:fn,settling:pn,update:mn}=Ee({svgRef:B,canMeasure:()=>!P.value.responsive||$t.value,initialMetrics:{bottom:0},measure:e=>({bottom:e(Rt.value).height})}),hn=u(()=>dn.value.bottom),G=u(()=>{let e=W.value.width-F.value.layout.padding.right-F.value.layout.padding.left,t=F.value.layout.padding.left,n=W.value.width-F.value.layout.padding.right;return{top:F.value.layout.padding.top+I.value.sideTitles.fontSize+I.value.sideTitles.offsetY+12,left:t,right:n,bottom:W.value.height-F.value.layout.padding.bottom-hn.value,width:e,height:W.value.height-F.value.layout.padding.top-F.value.layout.padding.bottom-hn.value-I.value.sideTitles.fontSize-I.value.sideTitles.offsetY-12,centerX:F.value.layout.padding.left+e/2,leftChart:{width:e/2-F.value.layout.centerSlit.width,right:t+e/2-F.value.layout.centerSlit.width},rightChart:{width:e/2-F.value.layout.centerSlit.width,left:t+e/2+F.value.layout.centerSlit.width}}}),gn=u(()=>Gt.value.map(e=>I.value.yAxis.display===`age`?e[1]:e[0])),K=u(()=>{let e=_n(q.value/5),t=[],n=[];for(let r=0;r<=5;r+=1){let i=e*r,a=e*(r-5);t.push({value:i,x:G.value.left+G.value.width/2+F.value.layout.centerSlit.width+i/q.value*G.value.leftChart.width}),n.push({value:Math.abs(a),x:G.value.left+G.value.width/2+a/q.value*G.value.leftChart.width-F.value.layout.centerSlit.width})}return{right:t,left:n}});function _n(e){if(e===0)return 0;let t=10**Math.floor(Math.log10(Math.abs(e))),n;return n=Math.round(e/t)*t,n}let q=u(()=>Math.max(...Gt.value.flatMap(e=>e.slice(-2).map(e=>s(e))))),J=u(()=>Gt.value.length),vn=u(()=>Gt.value.map(e=>({segment:e[0],age:e[1],left:{value:e[2],proportionToMax:e[2]/q.value},right:{value:e[3],proportionToMax:e[3]/q.value}}))),Y=u(()=>vn.value.map((e,t)=>{let n=G.value.top+G.value.height/J.value*t,r=G.value.height/J.value-L.value.gap;return{segment:e.segment,age:e.age,left:{...e.left,y:n,color:L.value.left.color,x:G.value.leftChart.right-e.left.proportionToMax*G.value.leftChart.width,width:s(e.left.proportionToMax*G.value.leftChart.width),height:r},right:{...e.right,y:n,color:L.value.right.color,x:G.value.rightChart.left,width:s(e.right.proportionToMax*G.value.rightChart.width),height:r}}})),yn=b(null);function bn(e){let[t,n,r,i]=e;return{segment:t,index:n,left:r,right:i}}function xn(e,t){P.value.events.datapointClick&&P.value.events.datapointClick({datapoint:bn(t),seriesIndex:e})}function Sn(e,t){P.value.events.datapointLeave&&P.value.events.datapointLeave({datapoint:bn(t),seriesIndex:e}),(N.value!==`keyboard`||M.value!==e)&&(A.value=null,k.value=!1)}function Cn(e){if(!B.value)return;let t=Y.value[e];if(!t)return;let n=ue(G.value.left+G.value.width/2,t.left.y+t.left.height/2,B.value);n&&(Vt.value=n)}function wn(e,t,n=`pointer`){P.value.events.datapointEnter&&P.value.events.datapointEnter({datapoint:bn(t),seriesIndex:e}),A.value=e,M.value=e,N.value=n,yn.value={datapoint:t,seriesIndex:e,series:Y.value,config:P.value};let r=F.value.tooltip.customFormat;if(ee(r)&&ce(()=>r({seriesIndex:e,datapoint:{segment:t[0],index:t[1],left:t[2],right:t[3]},series:Y.value,config:P.value})))jt.value=r({seriesIndex:e,datapoint:{segment:t[0],index:t[1],left:t[2],right:t[3]},series:Y.value,config:P.value});else{let n=``,r=Y.value[e];n+=`<div><b>${r.segment}</b></div>`,n+=`<div>${P.value.translations.age}: ${c(I.value.yAxis.formatter,s(r.age),a({v:s(r.age)}),{datapoint:t,seriesIndex:e})}</div>`,n+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.tooltip.borderColor}">`,n+=`<div style="display:flex; flex-direction:row;gap:12px">`,n+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.show?`url(#age_pyramid_left_${O.value})`:L.value.left.color}"/></svg><div>${P.value.translations.female}</div><div><b>${c(I.value.xAxis.formatter,s(r.left.value),a({v:s(r.left.value)}),{datapoint:t,seriesIndex:e})}</b></div></div>`,n+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.show?`url(#age_pyramid_right_${O.value})`:L.value.right.color}"/></svg><div>${P.value.translations.male}</div><div><b>${c(I.value.xAxis.formatter,s(r.right.value),a({v:s(r.right.value)}),{datapoint:t,seriesIndex:e})}</b></div></div>`,n+=`</div>`,n+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.tooltip.borderColor}"><div>${P.value.translations.total}</div><div><b>${c(I.value.xAxis.formatter,s(r.right.value)+s(r.left.value),a({v:s(r.right.value)+s(r.left.value)}),{datapoint:t,seriesIndex:e})}</b></div></div>`,n+=`</div>`,jt.value=`<div>${n}</div>`}k.value=!0,n===`keyboard`&&Le(()=>{Cn(e)})}function Tn(e=null){Le(()=>{let t=[P.value.translations.year,P.value.translations.age,P.value.translations.female,P.value.translations.male,P.value.translations.total],n=D.dataset.map(e=>[e[0],e[1],e[2],e[3],e[2]??0+e[3]??0]),r=[[F.value.title.text],[F.value.title.subtitle.text],[[``],[``],[``]],t].concat(n),i=o(r);e?e(i):se({csvContent:i,title:F.value.title.text||`vue-ui-heatmap`})})}let X=u(()=>{let e=[P.value.translations.year,P.value.translations.age,P.value.translations.female,P.value.translations.male,P.value.translations.total];return{head:e,body:D.dataset.map(e=>[e[0],e[1],e[2]==null?``:e[2].toLocaleString(),e[3]==null?``:e[3].toLocaleString(),(e[2]??0+e[3]??0).toLocaleString()]),config:{th:{backgroundColor:P.value.table.th.backgroundColor,color:P.value.table.th.color,outline:P.value.table.th.outline},td:{backgroundColor:P.value.table.td.backgroundColor,color:P.value.table.td.color,outline:P.value.table.td.outline},breakpoint:P.value.table.responsiveBreakpoint},colNames:e}}),Z=b(!1);function En(e){Z.value=e,Mt.value+=1}function Dn(){U.value.showTable=!U.value.showTable}function On(){U.value.showTooltip=!U.value.showTooltip}let Q=b(!1);function kn(){Q.value=!Q.value}async function An({scale:e=2}={}){if(!j.value)return;let{width:t,height:n}=j.value.getBoundingClientRect(),r=t/n,{imageUri:i,base64:a}=await ve({domElement:j.value,base64:!0,img:!0,scale:e});return{imageUri:i,base64:a,title:F.value.title.text,width:t,height:n,aspectRatio:r}}let jn=b([]),Mn=b({start:0,end:Y.value.length});De({timeLabelsEls:Rt,timeLabels:jn,slicer:Mn,configRef:P,rotationPath:[`style`,`layout`,`dataLabels`,`xAxis`,`rotation`],autoRotatePath:[`style`,`layout`,`dataLabels`,`xAxis`,`autoRotate`,`enable`],isAutoSize:!1,width:ln,height:un,targetClass:`.vue-ui-age-pyramid-x-axis-label`,rotation:F.value.layout.dataLabels.xAxis.autoRotate.angle});let $=u(()=>Se({config:P,style:F,mutableConfig:U,dialog:Dt,accordion:St,isFullscreen:Z,parent:j,maxWidth:800,isCursorPointer:z}));T(()=>U.value.showTable,e=>xe(e,P,zt));function Nn(){U.value.showTable=!1,Bt.value&&Bt.value.setTableIconState(!1)}let Pn=u(()=>P.value.style.backgroundColor),Fn=u(()=>P.value.style.title),{isCallbackImaging:In,isCallbackSvg:Ln,generateSvg:Rn,onGenerateImage:zn}=be({svg:B,title:Fn,legend:null,legendItems:null,backgroundColor:Pn,getSvgCallback:()=>P.value.userOptions.callbacks.svg,generateImage:sn});async function Bn(){kt(`copyAlt`,{config:P.value,dataset:Y.value}),P.value.userOptions.callbacks.altCopy?await Promise.resolve(P.value.userOptions.callbacks.altCopy({config:P.value,dataset:Y.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function Vn(){Ht.value=!0}function Hn(){A.value=null,M.value=null,N.value=`pointer`,k.value=!1,Ht.value=!1}function Un(e){if(!B.value||Q.value||document.activeElement!==B.value||!Y.value.length)return;let t=[`ArrowUp`,`ArrowLeft`].includes(e.key),n=[`ArrowDown`,`ArrowRight`].includes(e.key),r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){A.value=null,M.value=null,N.value=`pointer`,k.value=!1;return}if(r){if(M.value===null)return;let e=D.dataset[M.value];if(!e)return;xn(M.value,e);return}let a=M.value,o=A.value,ee=a!==null&&a>=0&&a<Y.value.length,te=o!==null&&o>=0&&o<Y.value.length;ee?t?a=a-1<0?Y.value.length-1:a-1:n&&(a=a+1>Y.value.length-1?0:a+1):te?(a=n?o+1:o-1,a>=Y.value.length&&(a=0),a<0&&(a=Y.value.length-1)):a=n?0:Y.value.length-1;let ne=D.dataset[a];ne&&wn(a,ne,`keyboard`)}return ge({getImage:An,generatePdf:on,generateCsv:Tn,generateImage:sn,generateSvg:Rn,toggleTable:Dn,toggleTooltip:On,toggleAnnotator:kn,toggleFullscreen:En,copyAlt:Bn}),T(()=>[W.value,I.value,Rt.value,D.dataset,$t.value,P.value.style.fontFamily],mn,{flush:`post`,deep:!0}),(i,o)=>(y(),p(`div`,{class:Re(`vue-data-ui-component vue-ui-age-pyramid ${Z.value?`vue-data-ui-wrapper-fullscreen`:``}`),ref_key:`agePyramid`,ref:j,id:`vue-ui-age-pyramid_${O.value}`,style:ze(`font-family:${F.value.fontFamily};width:100%; text-align:center;background:${F.value.backgroundColor};${P.value.responsive?`height:100%`:``}`),onMouseenter:o[1]||=()=>w(Jt)(!0),onMouseleave:o[2]||=()=>w(Jt)(!1)},[m(`div`,{id:`chart-instructions-${O.value}`,class:`sr-only`},[m(`p`,null,C(P.value.a11y.translations.keyboardNavigation),1)],8,qe),X.value?.body?.length?(y(),d(Ae,{key:0,uid:O.value,head:X.value.head,body:X.value.body,notice:P.value.a11y.translations.tableAvailable,caption:P.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):f(``,!0),P.value.userOptions.buttons.annotator?(y(),d(w(wt),Ie({key:1},w(n)(P.value.userOptions.annotator),{svgRef:w(B),backgroundColor:F.value.backgroundColor,color:F.value.color,active:Q.value,isCursorPointer:z.value,palette:P.value.userOptions.annotatorPalette,onClose:kn}),Pe({_:2},[x(w(r),e=>({name:e,fn:E(n=>[S(i.$slots,e,v(_(w(t)(e,n))),void 0,!0)])}))]),1040,[`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):f(``,!0),cn.value?(y(),p(`div`,{key:2,ref_key:`noTitle`,ref:Ft,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},null,512)):f(``,!0),F.value.title.text?(y(),p(`div`,{key:3,ref_key:`chartTitle`,ref:Nt,style:`width:100%;background:transparent`},[(y(),d(ye,{key:`title_${It.value}`,config:{title:{cy:`pyramid-div-title`,...F.value.title},subtitle:{cy:`pyramid-div-subtitle`,...F.value.title.subtitle}}},null,8,[`config`]))],512)):f(``,!0),P.value.userOptions.show&&At.value&&(w(Yt)||w(qt))?(y(),d(w(Tt),{ref_key:`userOptionsRef`,ref:Bt,key:`user_options_${Mt.value}`,backgroundColor:F.value.backgroundColor,color:F.value.color,isImaging:w(an),isPrinting:w(rn),uid:O.value,hasTooltip:P.value.userOptions.buttons.tooltip&&F.value.tooltip.show,hasPdf:P.value.userOptions.buttons.pdf,hasXls:P.value.userOptions.buttons.csv,hasImg:P.value.userOptions.buttons.img,hasSvg:P.value.userOptions.buttons.svg,hasTable:P.value.userOptions.buttons.table,hasFullscreen:P.value.userOptions.buttons.fullscreen,hasAltCopy:P.value.userOptions.buttons.altCopy,isFullscreen:Z.value,isTooltip:U.value.showTooltip,titles:{...P.value.userOptions.buttonTitles},chartElement:j.value,position:P.value.userOptions.position,hasAnnotator:P.value.userOptions.buttons.annotator,isAnnotation:Q.value,callbacks:P.value.userOptions.callbacks,printScale:P.value.userOptions.print.scale,tableDialog:P.value.table.useDialog,isCursorPointer:z.value,onToggleFullscreen:En,onGeneratePdf:w(on),onGenerateCsv:Tn,onGenerateImage:w(zn),onGenerateSvg:w(Rn),onToggleTable:Dn,onToggleTooltip:On,onToggleAnnotator:kn,onCopyAlt:Bn,style:ze({visibility:w(Yt)?w(qt)?`visible`:`hidden`:`visible`})},Pe({_:2},[x(w(Ce)(i.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionSvg optionTable optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),e=>({name:e,fn:E(t=>[S(i.$slots,e,v(_(w(we)(e,t))),void 0,!0)])}))]),1032,/* @__PURE__ */ `backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style`.split(`.`))):f(``,!0),m(`div`,Je,[(y(),p(`svg`,{ref_key:`svgRef`,ref:B,xmlns:w(le),class:Re({"vue-data-ui-fullscreen--on":Z.value,"vue-data-ui-fulscreen--off":!Z.value}),viewBox:`0 0 ${W.value.width<=0?10:W.value.width} ${W.value.height<=0?10:W.value.height}`,style:ze(`max-width:100%;overflow:visible;background:transparent;color:${F.value.color};visibility:${w(fn)?`visible`:`hidden`}`),tabindex:`0`,"aria-describedby":`chart-instructions-${O.value}`,onFocus:Vn,onBlur:Hn,onKeydown:Un},[h(w(Et)),S(i.$slots,`svg-underlayer`,{svg:{...W.value,drawingArea:G.value,isPrintingImg:w(rn)||w(an)||w(In),isPrintingSvg:w(Ln)}},void 0,!0),i.$slots[`chart-background`]?(y(),p(`foreignObject`,{key:0,x:G.value.left,y:G.value.top,width:Math.max(.1,G.value.width),height:Math.max(.1,G.value.height),style:{pointerEvents:`none`}},[S(i.$slots,`chart-background`,{},void 0,!0)],8,Xe)):f(``,!0),m(`defs`,null,[h(ke,{t:`linear`,id:`age_pyramid_left_${O.value}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,L.value.left.color,1],[`100%`,w(te)(w(re)(L.value.left.color,L.value.gradient.shiftHue),100-L.value.gradient.intensity),1]]},null,8,[`id`,`stops`]),h(ke,{t:`linear`,id:`age_pyramid_right_${O.value}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,w(te)(w(re)(L.value.right.color,L.value.gradient.shiftHue),100-L.value.gradient.intensity),1],[`100%`,L.value.right.color,1]]},null,8,[`id`,`stops`])]),(y(!0),p(l,null,x(Y.value,(e,t)=>(y(),p(`g`,null,[m(`rect`,{x:e.left.x,y:e.left.y,width:w(s)(e.left.width<=0?1e-4:e.left.width),height:e.left.height<=0?1e-4:e.left.height,fill:L.value.gradient.underlayer,rx:L.value.borderRadius},null,8,Ze),m(`rect`,{x:e.left.x,y:e.left.y,width:e.left.width<=0?1e-4:e.left.width,height:e.left.height<=0?1e-4:e.left.height,fill:L.value.gradient.show?`url(#age_pyramid_left_${O.value})`:e.left.color,rx:L.value.borderRadius},null,8,Qe),m(`rect`,{x:e.right.x,y:e.right.y,width:e.right.width<=0?1e-4:e.right.width,height:e.right.height<=0?1e-4:e.right.height,fill:L.value.gradient.underlayer,rx:L.value.borderRadius},null,8,$e),m(`rect`,{x:e.right.x,y:e.right.y,width:e.right.width<=0?1e-4:e.right.width,height:e.right.height<=0?1e-4:e.right.height,fill:L.value.gradient.show?`url(#age_pyramid_right_${O.value})`:e.right.color,rx:L.value.borderRadius},null,8,et)]))),256)),(y(!0),p(l,null,x(Y.value,(e,t)=>(y(),p(`g`,null,[R.value.show?(y(),p(l,{key:0},[!R.value.showOnHover||R.value.showOnHover&&A.value===t?(y(),p(`text`,{key:0,x:e.left.x+Math.max(1e-4,e.left.width)-R.value.offsetX-6,y:e.left.y+Math.max(1e-4,e.left.height/2)+L.value.gap/2,"text-anchor":`end`,"dominant-baseline":`middle`,"font-size":R.value.fontSize,"font-weight":R.value.bold?`bold`:`normal`,fill:R.value.color,stroke:F.value.backgroundColor,"paint-order":`stroke fill`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`3`},C(w(c)(R.value.formatter,e.left.value,w(a)({v:e.left.value}),{datapoint:e.left,seriesIndex:t})),9,tt)):f(``,!0)],64)):f(``,!0),R.value.show?(y(),p(l,{key:1},[!R.value.showOnHover||R.value.showOnHover&&A.value===t?(y(),p(`text`,{key:0,x:e.right.x+R.value.offsetX+6,y:e.right.y+Math.max(1e-4,e.right.height/2)+L.value.gap/2,"text-anchor":`start`,"dominant-baseline":`middle`,"font-size":R.value.fontSize,"font-weight":R.value.bold?`bold`:`normal`,fill:R.value.color,stroke:F.value.backgroundColor,"paint-order":`stroke fill`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`3`},C(w(c)(R.value.formatter,e.right.value,w(a)({v:e.right.value}),{datapoint:e.right,seriesIndex:t})),9,nt)):f(``,!0)],64)):f(``,!0)]))),256)),m(`g`,null,[I.value.sideTitles.show?(y(),p(`g`,rt,[m(`text`,{x:G.value.left,y:I.value.sideTitles.fontSize,fill:I.value.sideTitles.useSideColor?L.value.left.color:I.value.sideTitles.color,"font-size":I.value.sideTitles.fontSize,"text-anchor":`start`,"font-weight":I.value.sideTitles.bold?`bold`:`normal`},C(P.value.translations.female),9,it),m(`text`,{x:G.value.right,y:I.value.sideTitles.fontSize,fill:I.value.sideTitles.useSideColor?L.value.right.color:I.value.sideTitles.color,"font-size":I.value.sideTitles.fontSize,"text-anchor":`end`,"font-weight":I.value.sideTitles.bold?`bold`:`normal`},C(P.value.translations.male),9,at)])):f(``,!0),I.value.yAxis.show?(y(),p(`g`,ot,[(y(!0),p(l,null,x(gn.value,(e,t)=>(y(),p(l,null,[t%I.value.yAxis.showEvery===0&&(!R.value.show||R.value.showOnHover&&A.value===t||A.value===null)||(R.value.show||R.value.showOnHover)&&A.value===t?(y(),p(`text`,{key:0,x:G.value.centerX,y:G.value.top+G.value.height/J.value/2+G.value.height/J.value*t,"dominant-baseline":`middle`,"text-anchor":`middle`,"font-size":I.value.yAxis.fontSize,fill:I.value.yAxis.color,"font-weight":I.value.yAxis.bold?`bold`:`normal`},C(w(c)(I.value.yAxis.formatter,e,w(a)({v:e}),{datapoint:e,seriesIndex:t})),9,st)):f(``,!0)],64))),256))])):f(``,!0),I.value.xAxis.show?(y(),p(`g`,ct,[F.value.layout.grid.show?(y(),p(`g`,lt,[m(`line`,{x1:K.value.right[0].x,x2:K.value.right.at(-1).x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,ut),m(`line`,{x1:K.value.left[0].x,x2:K.value.left.at(-1).x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,dt)])):f(``,!0),(y(!0),p(l,null,x(K.value.right,(e,t)=>(y(),p(`g`,null,[F.value.layout.grid.show?(y(),p(`line`,{key:0,x1:e.x,x2:e.x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2+4,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,ft)):f(``,!0)]))),256)),(y(!0),p(l,null,x(K.value.left,(e,t)=>(y(),p(`g`,null,[F.value.layout.grid.show?(y(),p(`line`,{key:0,x1:e.x,x2:e.x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2+4,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,pt)):f(``,!0)]))),256)),m(`g`,{ref_key:`xAxisLabels`,ref:Rt},[(y(!0),p(l,null,x(K.value.right,(e,t)=>(y(),p(`text`,{class:`vue-ui-age-pyramid-x-axis-label`,"font-size":I.value.xAxis.fontSize,fill:I.value.xAxis.color,"text-anchor":I.value.xAxis.rotation>0?`start`:I.value.xAxis.rotation<0?`end`:`middle`,"font-weight":I.value.xAxis.bold?`bold`:`normal`,transform:`translate(${e.x}, ${G.value.bottom+I.value.xAxis.fontSize*2}) rotate(${I.value.xAxis.rotation})`},C(w(c)(I.value.xAxis.formatter,e.value/I.value.xAxis.scale,w(a)({v:e.value/F.value.layout.dataLabels.xAxis.scale}),{datapoint:e,seriesIndex:t})),9,mt))),256)),(y(!0),p(l,null,x(K.value.left,(e,t)=>(y(),p(`text`,{class:`vue-ui-age-pyramid-x-axis-label`,"font-size":I.value.xAxis.fontSize,fill:I.value.xAxis.color,"text-anchor":I.value.xAxis.rotation>0?`start`:I.value.xAxis.rotation<0?`end`:`middle`,"font-weight":I.value.xAxis.bold?`bold`:`normal`,transform:`translate(${e.x}, ${G.value.bottom+I.value.xAxis.fontSize*2}) rotate(${I.value.xAxis.rotation})`},C(w(c)(I.value.xAxis.formatter,e.value/I.value.xAxis.scale,w(a)({v:e.value/F.value.layout.dataLabels.xAxis.scale}),{datapoint:e,seriesIndex:t})),9,ht))),256))],512),m(`text`,{x:G.value.right,y:W.value.height,"text-anchor":`end`,"font-size":I.value.xAxis.fontSize,fill:I.value.xAxis.color,"font-weight":I.value.xAxis.bold?`bold`:`normal`},C(I.value.xAxis.translation),9,gt)])):f(``,!0)]),(y(!0),p(l,null,x(e.dataset,(e,t)=>(y(),p(`g`,null,[m(`rect`,{x:G.value.left,y:G.value.top+G.value.height/J.value*t-L.value.gap/2,width:G.value.width<=0?1e-4:G.value.width,height:G.value.height/J.value<=0?1e-4:G.value.height/J.value,fill:A.value!==null&&A.value===t?w(te)(F.value.highlighter.color,F.value.highlighter.opacity):`transparent`,onMouseover:n=>wn(t,e,`pointer`),onMouseleave:n=>Sn(t,e),onClick:n=>xn(t,e)},null,40,_t)]))),256)),S(i.$slots,`svg`,{svg:{...W.value,drawingArea:G.value,isPrintingImg:w(rn)||w(an)||w(In),isPrintingSvg:w(Ln)}},void 0,!0)],46,Ye)),i.$slots.hint?(y(),p(`div`,vt,[S(i.$slots,`hint`,v(_({hint:P.value.a11y.translations.keyboardNavigation,isVisible:Ht.value})),void 0,!0)])):f(``,!0)]),i.$slots.watermark?(y(),p(`div`,yt,[S(i.$slots,`watermark`,v(_({isPrinting:w(rn)||w(an)||w(In)||w(Ln)})),void 0,!0)])):f(``,!0),S(i.$slots,`legend`,{legend:Y.value},void 0,!0),i.$slots.source?(y(),p(`div`,{key:6,ref_key:`source`,ref:Pt,dir:`auto`},[S(i.$slots,`source`,{},void 0,!0)],512)):f(``,!0),h(w(bt),{teleportTo:F.value.tooltip.teleportTo,show:U.value.showTooltip&&k.value,backgroundColor:F.value.tooltip.backgroundColor,color:F.value.tooltip.color,borderRadius:F.value.tooltip.borderRadius,borderColor:F.value.tooltip.borderColor,borderWidth:F.value.tooltip.borderWidth,fontSize:F.value.tooltip.fontSize,backgroundOpacity:F.value.tooltip.backgroundOpacity,position:F.value.tooltip.position,offsetX:F.value.tooltip.offsetX,offsetY:F.value.tooltip.offsetY,parent:j.value,content:jt.value,isFullscreen:Z.value,isCustom:F.value.tooltip.customFormat&&typeof F.value.tooltip.customFormat==`function`,smooth:F.value.tooltip.smooth,backdropFilter:F.value.tooltip.backdropFilter,smoothForce:F.value.tooltip.smoothForce,smoothSnapThreshold:F.value.tooltip.smoothSnapThreshold,isA11yMode:N.value===`keyboard`,a11yPosition:Vt.value},{"tooltip-before":E(()=>[S(i.$slots,`tooltip-before`,v(_({...yn.value})),void 0,!0)]),tooltip:E(()=>[S(i.$slots,`tooltip`,v(_({...yn.value})),void 0,!0)]),"tooltip-after":E(()=>[S(i.$slots,`tooltip-after`,v(_({...yn.value})),void 0,!0)]),_:3},8,[`teleportTo`,`show`,`backgroundColor`,`color`,`borderRadius`,`borderColor`,`borderWidth`,`fontSize`,`backgroundOpacity`,`position`,`offsetX`,`offsetY`,`parent`,`content`,`isFullscreen`,`isCustom`,`smooth`,`backdropFilter`,`smoothForce`,`smoothSnapThreshold`,`isA11yMode`,`a11yPosition`]),At.value&&P.value.userOptions.buttons.table?(y(),d(He($.value.component),Ie({key:7},$.value.props,{ref_key:`tableUnit`,ref:zt,onClose:Nn}),Pe({content:E(()=>[(y(),d(w(Ct),{key:`table_${Lt.value}`,colNames:X.value.colNames,head:X.value.head,body:X.value.body,config:X.value.config,title:P.value.table.useDialog?``:$.value.title,withCloseButton:!P.value.table.useDialog,isCursorPointer:z.value,onClose:Nn},{th:E(({th:e})=>[Fe(C(e),1)]),td:E(({td:e})=>[Fe(C(e),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[P.value.table.useDialog?{name:`title`,fn:E(()=>[Fe(C($.value.title),1)]),key:`0`}:void 0,P.value.table.useDialog?{name:`actions`,fn:E(()=>[m(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:o[0]||=e=>Tn(P.value.userOptions.callbacks.csv),style:ze({cursor:z.value?`pointer`:`default`})},[h(w(xt),{name:`fileCsv`,stroke:$.value.props.color},null,8,[`stroke`])],4)]),key:`1`}:void 0]),1040)):f(``,!0),S(i.$slots,`skeleton`,{},()=>[w(Wt)?(y(),d(pe,{key:0})):f(``,!0)],!0)],46,Ke))}},[[`__scopeId`,`data-v-285e241f`]]);export{Ge as n,bt as t};
|