vue-data-ui 2.4.40 → 2.4.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DkayNE_-.js → Arrow-DE71uBJZ.js} +1 -1
- package/dist/{Arrow-Bg4pmMHf.cjs → Arrow-DTscDttD.cjs} +1 -1
- package/dist/{BaseIcon-DpYqpYmv.js → BaseIcon-C8XxmpRq.js} +1 -1
- package/dist/{BaseIcon-zXh1vLYa.cjs → BaseIcon-COOfxsl_.cjs} +1 -1
- package/dist/{DataTable-BB87HJ5b.cjs → DataTable-DEdQvqB1.cjs} +1 -1
- package/dist/{DataTable-BuiPd6c1.js → DataTable-D_w08xos.js} +2 -2
- package/dist/{Legend-BRVDmlwW.js → Legend-BWDoQii_.js} +1 -1
- package/dist/{Legend-D2Yi-COI.cjs → Legend-C4rlR-Ge.cjs} +1 -1
- package/dist/{PackageVersion-BT4zkGPO.js → PackageVersion-CH6MCx6T.js} +1 -1
- package/dist/{PackageVersion-rf9gXZ-Q.cjs → PackageVersion-DKyD7D76.cjs} +1 -1
- package/dist/{PenAndPaper-BFq1cFfJ.js → PenAndPaper-BWTR3U2d.js} +3 -3
- package/dist/{PenAndPaper-DS7gA4X0.cjs → PenAndPaper-Dc2zn4C0.cjs} +1 -1
- package/dist/{Shape-DVggzfpA.cjs → Shape-BLS-KzBD.cjs} +1 -1
- package/dist/{Shape-Dwxh0EWa.js → Shape-xrlfL_v4.js} +1 -1
- package/dist/Slicer-8gKX0l4Q.cjs +1 -0
- package/dist/Slicer-DIYseEL1.js +423 -0
- package/dist/{Title-RB80eFiD.cjs → Title-B-xkTfi8.cjs} +1 -1
- package/dist/{Title-BFvWnqI4.js → Title-Cnl9ySNH.js} +1 -1
- package/dist/Tooltip-Brbj6DqX.cjs +1 -0
- package/dist/{Tooltip-RHI1EGzy.js → Tooltip-DEAOBZ8h.js} +33 -25
- package/dist/index-B68kzBN9.cjs +9 -0
- package/dist/{index-DY8hDTi7.js → index-DnukYspq.js} +56 -43
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +13 -0
- package/dist/types/vue-data-ui.d.ts +13 -0
- package/dist/{useNestedProp-lhL30X68.js → useNestedProp-CVOQGx-X.js} +1 -1
- package/dist/{useNestedProp-DLJc0s53.cjs → useNestedProp-es9bVqY_.cjs} +1 -1
- package/dist/{usePrinter-BfuqGrO4.cjs → usePrinter-C9yUesCc.cjs} +1 -1
- package/dist/{usePrinter-DjAQofRy.js → usePrinter-DVIALk5e.js} +1 -1
- package/dist/{vue-data-ui-BjixO_L4.js → vue-data-ui-BmmjmNbb.js} +60 -60
- package/dist/{vue-data-ui-DYb5l8_5.cjs → vue-data-ui-LA94HAVo.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +3 -3
- package/dist/{vue-ui-3d-bar-CkYhOmXF.js → vue-ui-3d-bar-CnVJAgFO.js} +9 -9
- package/dist/{vue-ui-3d-bar-BEjtuA39.cjs → vue-ui-3d-bar-DYswbvC_.cjs} +1 -1
- package/dist/{vue-ui-accordion-ClQObElI.cjs → vue-ui-accordion-D_K9gNUR.cjs} +1 -1
- package/dist/{vue-ui-accordion-xK9e3wkz.js → vue-ui-accordion-f9NTID9e.js} +3 -3
- package/dist/{vue-ui-age-pyramid-x5CjkABf.cjs → vue-ui-age-pyramid-Bj9K08ws.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DtQAo1-2.js → vue-ui-age-pyramid-CL0RB7mU.js} +42 -41
- package/dist/{vue-ui-annotator-Yt34insl.js → vue-ui-annotator-C82vEb7R.js} +1 -1
- package/dist/{vue-ui-annotator-DqDELeOR.cjs → vue-ui-annotator-DhwUZ4WB.cjs} +1 -1
- package/dist/{vue-ui-bullet-CCvwPwji.js → vue-ui-bullet-BxYYiFnu.js} +15 -15
- package/dist/{vue-ui-bullet-DSPQ5yWt.cjs → vue-ui-bullet-D6KC5yoe.cjs} +1 -1
- package/dist/vue-ui-candlestick-Duf3yfwR.js +740 -0
- package/dist/vue-ui-candlestick-lunuQ9Ka.cjs +2 -0
- package/dist/{vue-ui-carousel-table-CkJngi1u.cjs → vue-ui-carousel-table-4z9ZACSk.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-IqZRrbo_.js → vue-ui-carousel-table-DQymYeK0.js} +4 -4
- package/dist/{vue-ui-chestnut-Dt3GLx3U.js → vue-ui-chestnut-DDNLUSav.js} +8 -8
- package/dist/{vue-ui-chestnut-ojvaZyue.cjs → vue-ui-chestnut-iRODkXaw.cjs} +1 -1
- package/dist/{vue-ui-cursor-D24bAdi0.js → vue-ui-cursor-Bdud_Fxg.js} +2 -2
- package/dist/{vue-ui-cursor-Cbi7OUiE.cjs → vue-ui-cursor-Bt_SieMc.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DVf1sULB.cjs → vue-ui-dashboard-BzRR9Ra7.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CB_W7yvi.js → vue-ui-dashboard-CeVkJPeG.js} +2 -2
- package/dist/{vue-ui-digits-CVAyG4kM.cjs → vue-ui-digits-DF3oLaaR.cjs} +1 -1
- package/dist/{vue-ui-digits-Qn4l0R5o.js → vue-ui-digits-DtNvb8lM.js} +2 -2
- package/dist/{vue-ui-donut-t688YqqL.js → vue-ui-donut-C028OlzU.js} +99 -98
- package/dist/vue-ui-donut-evolution-2vQPsBFq.cjs +1 -0
- package/dist/vue-ui-donut-evolution-CprYApXF.js +908 -0
- package/dist/{vue-ui-donut-Cgvksx9U.cjs → vue-ui-donut-o09QqVJO.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CS5kvI8A.js → vue-ui-dumbbell-BV2LN5qt.js} +10 -10
- package/dist/{vue-ui-dumbbell-DxMZm_Xi.cjs → vue-ui-dumbbell-CS8pY-mj.cjs} +1 -1
- package/dist/{vue-ui-flow-4sSoYnJt.js → vue-ui-flow-QRimZUXT.js} +46 -46
- package/dist/{vue-ui-flow-In-tHpYL.cjs → vue-ui-flow-iNWWhp7U.cjs} +1 -1
- package/dist/{vue-ui-funnel-MXYMVu1G.cjs → vue-ui-funnel-BL8vtmsw.cjs} +1 -1
- package/dist/{vue-ui-funnel-MD4lrv0t.js → vue-ui-funnel-CBymVSdd.js} +19 -19
- package/dist/{vue-ui-galaxy-B9KiEfI4.cjs → vue-ui-galaxy-DSJrMBzj.cjs} +1 -1
- package/dist/{vue-ui-galaxy-K09M9SgI.js → vue-ui-galaxy-KP3A9HVX.js} +53 -52
- package/dist/{vue-ui-gauge-Bg2V5WNl.js → vue-ui-gauge-BuU0DDG0.js} +7 -7
- package/dist/{vue-ui-gauge-DaR_viLn.cjs → vue-ui-gauge-H9j8Dq5h.cjs} +1 -1
- package/dist/{vue-ui-gizmo-7Hv-0fsh.cjs → vue-ui-gizmo-Bl9JoMk1.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CdLxfJUw.js → vue-ui-gizmo-M7RalwJ6.js} +3 -3
- package/dist/{vue-ui-heatmap-DhgJ3LO9.cjs → vue-ui-heatmap-BXWWh4iN.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CNPjaHGJ.js → vue-ui-heatmap-DSkfyl8j.js} +60 -59
- package/dist/{vue-ui-history-plot-DZOYwPTh.cjs → vue-ui-history-plot-BUoUHKx6.cjs} +1 -1
- package/dist/{vue-ui-history-plot-DRwX7quj.js → vue-ui-history-plot-CYSDr-GH.js} +60 -59
- package/dist/{vue-ui-kpi-Cnrfv2vn.cjs → vue-ui-kpi-BXe7HQIh.cjs} +1 -1
- package/dist/{vue-ui-kpi-C-5_TwY8.js → vue-ui-kpi-BvUaC7JA.js} +3 -3
- package/dist/{vue-ui-mini-loader-fZawewEF.js → vue-ui-mini-loader-DM8ShcKo.js} +2 -2
- package/dist/{vue-ui-mini-loader-uBFny7gt.cjs → vue-ui-mini-loader-zbjxzJTp.cjs} +1 -1
- package/dist/{vue-ui-molecule-BOClRlY3.cjs → vue-ui-molecule-BdIRpOM9.cjs} +1 -1
- package/dist/{vue-ui-molecule-pO5l42Vf.js → vue-ui-molecule-CZi84tUl.js} +26 -25
- package/dist/{vue-ui-mood-radar-jbYjFZID.js → vue-ui-mood-radar-DDnbuNdv.js} +11 -11
- package/dist/{vue-ui-mood-radar-CiMiQJuS.cjs → vue-ui-mood-radar-DipV_UPN.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-Bb5otIw_.js → vue-ui-nested-donuts-Chuuvtu-.js} +78 -77
- package/dist/{vue-ui-nested-donuts-IArnFfHY.cjs → vue-ui-nested-donuts-DuxVLzDH.cjs} +2 -2
- package/dist/{vue-ui-onion-BvQLUPjh.js → vue-ui-onion-CIRGvycb.js} +49 -48
- package/dist/{vue-ui-onion-SKVqk7rN.cjs → vue-ui-onion-CvlwZgpu.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-CeqeyIHj.cjs → vue-ui-parallel-coordinate-plot-eJMnJ_u2.cjs} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-_LH1iK_w.js → vue-ui-parallel-coordinate-plot-jv7L5_x8.js} +70 -69
- package/dist/{vue-ui-quadrant-BiWyF1fA.js → vue-ui-quadrant-CjjXU43-.js} +55 -54
- package/dist/{vue-ui-quadrant-7jB46g4Z.cjs → vue-ui-quadrant-ks_4yK85.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-C1398EYu.js → vue-ui-quick-chart-BAVQ2SJ2.js} +637 -622
- package/dist/vue-ui-quick-chart-Br2gTOPk.cjs +15 -0
- package/dist/{vue-ui-radar-BvWCcL2b.js → vue-ui-radar-CXXAYowO.js} +38 -37
- package/dist/{vue-ui-radar-BYk3bLkt.cjs → vue-ui-radar-kjh9y4cm.cjs} +1 -1
- package/dist/{vue-ui-rating-CyGmfYEU.js → vue-ui-rating-DOqMciYJ.js} +2 -2
- package/dist/{vue-ui-rating-jKjMQHRN.cjs → vue-ui-rating-EEIqiBgY.cjs} +1 -1
- package/dist/vue-ui-relation-circle-BEv568py.cjs +1 -0
- package/dist/vue-ui-relation-circle-CR3iWQV_.js +492 -0
- package/dist/{vue-ui-rings-DEwuDHW2.js → vue-ui-rings-B--CFaNX.js} +49 -48
- package/dist/vue-ui-rings-CgvWaw5N.cjs +2 -0
- package/dist/{vue-ui-scatter-BYL4iitb.js → vue-ui-scatter-C-RD4h73.js} +26 -25
- package/dist/{vue-ui-scatter-BfI6xftp.cjs → vue-ui-scatter-ChWlgb1L.cjs} +1 -1
- package/dist/{vue-ui-screenshot-D4aNIcHd.js → vue-ui-screenshot-C6-MOj7h.js} +1 -1
- package/dist/{vue-ui-screenshot-Cf8g-RjG.cjs → vue-ui-screenshot-CtjCOun0.cjs} +1 -1
- package/dist/{vue-ui-skeleton-FCpm0_eE.js → vue-ui-skeleton-CXdyOF4T.js} +3 -3
- package/dist/{vue-ui-skeleton-BGfzzQdU.cjs → vue-ui-skeleton-DGCkWrND.cjs} +1 -1
- package/dist/{vue-ui-smiley-mjxS_13E.cjs → vue-ui-smiley-AYBZK1EE.cjs} +1 -1
- package/dist/{vue-ui-smiley-BFXulKpd.js → vue-ui-smiley-CHXnJeLu.js} +2 -2
- package/dist/{vue-ui-spark-trend-B2SOk378.cjs → vue-ui-spark-trend-D2wIBOvT.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-D-13-kV6.js → vue-ui-spark-trend-DO5rDGRm.js} +5 -5
- package/dist/{vue-ui-sparkbar-BlA1rgRo.cjs → vue-ui-sparkbar-COUcdDjn.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-C8cjDKBy.js → vue-ui-sparkbar-CU3UNgHm.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DRBVe3tu.js → vue-ui-sparkgauge-0810df6b.js} +4 -4
- package/dist/{vue-ui-sparkgauge-C4sFc7nb.cjs → vue-ui-sparkgauge-DrJzwEAh.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-iMRsSDvC.js → vue-ui-sparkhistogram-CENPsEeO.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-CkqzLBYq.cjs → vue-ui-sparkhistogram-j7MGEYYJ.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DIkUaObR.js → vue-ui-sparkline-BOYreaxT.js} +4 -4
- package/dist/{vue-ui-sparkline-C0JZ7Xq1.cjs → vue-ui-sparkline-CXMea9Ki.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DJbWCqs3.cjs → vue-ui-sparkstackbar-BJIo5y1n.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DJW1lBGU.js → vue-ui-sparkstackbar-JvKmnoEy.js} +5 -5
- package/dist/vue-ui-stackbar-BOAmp-no.cjs +6 -0
- package/dist/{vue-ui-stackbar-BGUXEdZi.js → vue-ui-stackbar-C3-hx7VM.js} +390 -377
- package/dist/{vue-ui-strip-plot-hn1U9cvT.js → vue-ui-strip-plot-8MxOeTM_.js} +71 -70
- package/dist/{vue-ui-strip-plot-DJTQ8r5H.cjs → vue-ui-strip-plot-CmIS1Osx.cjs} +1 -1
- package/dist/{vue-ui-table-7A1eCPQd.js → vue-ui-table-CS-NSZjj.js} +1 -1
- package/dist/{vue-ui-table-DFvOQzJu.cjs → vue-ui-table-hVmeT8wY.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DqZsXcsO.js → vue-ui-table-heatmap-CGHYZFJy.js} +9 -9
- package/dist/{vue-ui-table-heatmap-ZnkAoAkQ.cjs → vue-ui-table-heatmap-k9e_RrhC.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CV8o-yV6.js → vue-ui-table-sparkline-CRnJVQmO.js} +5 -5
- package/dist/{vue-ui-table-sparkline-5mX0B27t.cjs → vue-ui-table-sparkline-DiMZ_mh6.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BwLTfi7y.cjs → vue-ui-thermometer-43jmlgFC.cjs} +1 -1
- package/dist/{vue-ui-thermometer-M6QwKOld.js → vue-ui-thermometer-D2BUcsvF.js} +7 -7
- package/dist/{vue-ui-timer-QypGImgW.cjs → vue-ui-timer-BO9Ipy0W.cjs} +1 -1
- package/dist/{vue-ui-timer-CoYF7LEU.js → vue-ui-timer-Dc6zOjxq.js} +9 -9
- package/dist/{vue-ui-tiremarks-DAFNYvB1.cjs → vue-ui-tiremarks-CMUTe1vY.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CzLOyhXF.js → vue-ui-tiremarks-ejt0fqPg.js} +7 -7
- package/dist/{vue-ui-treemap-DF5BIKs-.js → vue-ui-treemap-DD8tFk9R.js} +98 -97
- package/dist/{vue-ui-treemap-CutiBRIN.cjs → vue-ui-treemap-DqSHqaJK.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-bDcCcUy8.js → vue-ui-vertical-bar-CxydSPHF.js} +58 -57
- package/dist/{vue-ui-vertical-bar-D-ZZAU0r.cjs → vue-ui-vertical-bar-D4dYglan.cjs} +2 -2
- package/dist/{vue-ui-waffle-CCO3ZHyo.cjs → vue-ui-waffle-CHWAepdl.cjs} +1 -1
- package/dist/{vue-ui-waffle-BR_HwmLy.js → vue-ui-waffle-DYdcFM17.js} +79 -78
- package/dist/{vue-ui-wheel-DuO0nc0d.js → vue-ui-wheel-CxtgGGpt.js} +7 -7
- package/dist/{vue-ui-wheel-Cvcfc6o1.cjs → vue-ui-wheel-_ynSyF3l.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-Cv5bXF2B.js → vue-ui-word-cloud-B0AhPT0k.js} +10 -10
- package/dist/{vue-ui-word-cloud-BknJQRiM.cjs → vue-ui-word-cloud-Ct16Xxaw.cjs} +1 -1
- package/dist/{vue-ui-xy-Clf_sTRI.js → vue-ui-xy-B3346TfB.js} +195 -185
- package/dist/vue-ui-xy-DHYbKvBg.cjs +3 -0
- package/dist/vue-ui-xy-canvas-DtPqmu7B.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-BOJGw4H7.js → vue-ui-xy-canvas-W7YGqG7f.js} +378 -365
- package/package.json +1 -1
- package/dist/Slicer-BXHFpzP5.cjs +0 -1
- package/dist/Slicer-D7x1gyjP.js +0 -400
- package/dist/Tooltip-BC1YZMi2.cjs +0 -1
- package/dist/index--lHmCKjC.cjs +0 -9
- package/dist/vue-ui-candlestick-CVJB9WMH.js +0 -725
- package/dist/vue-ui-candlestick-Cb7CgmeV.cjs +0 -2
- package/dist/vue-ui-donut-evolution-DWdf8MKP.cjs +0 -1
- package/dist/vue-ui-donut-evolution-KdVsB3m_.js +0 -895
- package/dist/vue-ui-quick-chart-79l8Uv8o.cjs +0 -15
- package/dist/vue-ui-relation-circle-B3Df8yCi.js +0 -366
- package/dist/vue-ui-relation-circle-CZomraV2.cjs +0 -1
- package/dist/vue-ui-rings-L8pGRQbs.cjs +0 -2
- package/dist/vue-ui-stackbar-BtOrW2Ml.cjs +0 -6
- package/dist/vue-ui-xy-Cqb73yZ3.cjs +0 -3
- package/dist/vue-ui-xy-canvas-7OwcP1-L.cjs +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index--lHmCKjC.cjs"),W=require("./useResponsive-BJ7DTGpm.cjs"),ae=require("./Title-RB80eFiD.cjs"),H=require("./usePrinter-BfuqGrO4.cjs"),oe=require("./Tooltip-BC1YZMi2.cjs"),re=require("./DataTable-BB87HJ5b.cjs"),se=require("./vue-ui-skeleton-BGfzzQdU.cjs"),ie=require("./vue-ui-accordion-ClQObElI.cjs"),X=require("./useNestedProp-DLJc0s53.cjs"),ne=require("./PackageVersion-rf9gXZ-Q.cjs"),ue=require("./PenAndPaper-DS7gA4X0.cjs"),de=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ce=["id"],ve=["xmlns","viewBox"],ye=["id"],he=["stop-color"],fe=["stop-color"],pe=["id"],ge=["stop-color"],be=["stop-color"],me=["x","y","width","height","fill","rx"],xe=["x","y","width","height","fill","rx"],ke=["x","y","width","height","fill","rx"],we=["x","y","width","height","fill","rx"],Ce={key:0},_e=["x","y","fill","font-size","font-weight"],Ne=["x","y","fill","font-size","font-weight"],Le={key:1},Te=["x","y","font-size","fill","font-weight"],Se={key:2},Be={key:0},Ae=["x1","x2","y1","y2","stroke","stroke-width"],$e=["x1","x2","y1","y2","stroke","stroke-width"],Ee=["x1","x2","y1","y2","stroke","stroke-width"],ze=["x","y","font-size","fill","font-weight"],Ve=["x1","x2","y1","y2","stroke","stroke-width"],Pe=["x","y","font-size","fill","font-weight"],Oe=["x","y","font-size","fill","font-weight"],Ie=["x","y","width","height","fill","onMouseover"],Fe={key:5,class:"vue-data-ui-watermark"},De={__name:"vue-ui-age-pyramid",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(T,{expose:j}){const u=T,{vue_ui_age_pyramid:Y}=r.useConfig(),m=e.computed(()=>!!u.dataset&&u.dataset.length),c=e.ref(r.createUid()),J=e.ref(null),C=e.ref(!1),_=e.ref(""),x=e.ref(null),S=e.ref(0),y=e.ref(null),B=e.ref(null),A=e.ref(null),$=e.ref(null),E=e.ref(0),z=e.ref(0),t=e.computed({get:()=>V(),set:l=>l});function V(){const l=X.useNestedProp({userConfig:u.config,defaultConfig:Y});return l.theme?{...X.useNestedProp({userConfig:r.themes.vue_ui_age_pyramid[l.theme]||u.config,defaultConfig:l})}:l}e.watch(()=>u.config,l=>{t.value=V(),O(),E.value+=1,z.value+=1},{deep:!0});const P=e.ref(null);e.onMounted(()=>{O()});function O(){if(r.objectIsEmpty(u.dataset)&&r.error({componentName:"VueUiAgePyramid",type:"dataset"}),t.value.responsive){const l=W.throttle(()=>{const{width:i,height:a}=W.useResponsive({chart:y.value,title:t.value.style.title.text?B.value:null,source:A.value,noTitle:$.value});d.value.width=i,d.value.height=a});P.value=new ResizeObserver(l),P.value.observe(y.value.parentNode)}}const{isPrinting:I,isImaging:F,generatePdf:D,generateImage:M}=H.usePrinter({elementId:`vue-ui-age-pyramid_${c.value}`,fileName:t.value.style.title.text||"vue-ui-age-pyramid"}),K=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),v=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),d=e.ref({height:t.value.style.height,width:t.value.style.width}),s=e.computed(()=>{const l=d.value.width-t.value.style.layout.padding.right-t.value.style.layout.padding.left,i=t.value.style.layout.padding.left,a=d.value.width-t.value.style.layout.padding.right;return{top:t.value.style.layout.padding.top,left:i,right:a,bottom:d.value.height-t.value.style.layout.padding.bottom,width:l,height:d.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom,centerX:t.value.style.layout.padding.left+l/2,leftChart:{width:l/2-t.value.style.layout.centerSlit.width,right:i+l/2-t.value.style.layout.centerSlit.width},rightChart:{width:l/2-t.value.style.layout.centerSlit.width,left:i+l/2+t.value.style.layout.centerSlit.width}}}),Q=e.computed(()=>u.dataset.map(l=>t.value.style.layout.dataLabels.yAxis.display==="age"?l[1]:l[0])),h=e.computed(()=>{const l=Z(g.value/5),i=[],a=[];for(let o=0;o<=5;o+=1){const n=l*o,U=l*(o-5);i.push({value:n,x:s.value.left+s.value.width/2+t.value.style.layout.centerSlit.width+n/g.value*s.value.leftChart.width}),a.push({value:Math.abs(U),x:s.value.left+s.value.width/2+U/g.value*s.value.leftChart.width-t.value.style.layout.centerSlit.width})}return{right:i,left:a}});function Z(l){if(l===0)return 0;const a=10**Math.floor(Math.log10(Math.abs(l)));let o;return l<0,o=Math.round(l/a)*a,o}const g=e.computed(()=>Math.max(...u.dataset.flatMap(l=>l.slice(-2).map(i=>r.checkNaN(i))))),f=e.computed(()=>u.dataset.length),ee=e.computed(()=>u.dataset.map(l=>({segment:l[0],age:l[1],left:{value:l[2],proportionToMax:l[2]/g.value},right:{value:l[3],proportionToMax:l[3]/g.value}}))),p=e.computed(()=>ee.value.map((l,i)=>{const a=s.value.top+s.value.height/f.value*i,o=s.value.height/f.value-t.value.style.layout.bars.gap;return{segment:l.segment,age:l.age,left:{...l.left,y:a,color:t.value.style.layout.bars.left.color,x:s.value.leftChart.right-l.left.proportionToMax*s.value.leftChart.width,width:r.checkNaN(l.left.proportionToMax*s.value.leftChart.width),height:o},right:{...l.right,y:a,color:t.value.style.layout.bars.right.color,x:s.value.rightChart.left,width:r.checkNaN(l.right.proportionToMax*s.value.rightChart.width),height:o}}})),N=e.ref(null);function te(l,i){x.value=l,N.value={datapoint:i,seriesIndex:l,series:p.value,config:t.value};const a=t.value.style.tooltip.customFormat;if(r.isFunction(a)&&r.functionReturnsString(()=>a({seriesIndex:l,datapoint:{segment:i[0],index:i[1],left:i[2],right:i[3]},series:p.value,config:t.value})))_.value=a({seriesIndex:l,datapoint:{segment:i[0],index:i[1],left:i[2],right:i[3]},series:p.value,config:t.value});else{let o="";const n=p.value[l];o+=`<div><b>${n.segment}</b></div>`,o+=`<div>${t.value.translations.age}: ${r.applyDataLabel(t.value.style.layout.dataLabels.yAxis.formatter,r.checkNaN(n.age),r.dataLabel({v:r.checkNaN(n.age)}),{datapoint:i,seriesIndex:l})}</div>`,o+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,o+='<div style="display:flex; flex-direction:row;gap:12px">',o+=`<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="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${c.value})`:t.value.style.layout.bars.left.color}"/></svg><div>${t.value.translations.female}</div><div><b>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(n.left.value),r.dataLabel({v:r.checkNaN(n.left.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,o+=`<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="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${c.value})`:t.value.style.layout.bars.right.color}"/></svg><div>${t.value.translations.male}</div><div><b>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(n.right.value),r.dataLabel({v:r.checkNaN(n.right.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,o+="</div>",o+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}"><div>${t.value.translations.total}</div><div><b>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(n.right.value)+r.checkNaN(n.left.value),r.dataLabel({v:r.checkNaN(n.right.value)+r.checkNaN(n.left.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,o+="</div>",_.value=`<div>${o}</div>`}C.value=!0}function R(){e.nextTick(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],i=u.dataset.map(n=>[n[0],n[1],n[2],n[3],n[2]+n[3]]),a=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(i),o=r.createCsvContent(a);r.downloadCsv({csvContent:o,title:t.value.style.title.text||"vue-ui-heatmap"})})}const k=e.computed(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],i=u.dataset.map(o=>[o[0],o[1],o[2].toLocaleString(),o[3].toLocaleString(),(o[2]+o[3]).toLocaleString()]),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:l,body:i,config:a,colNames:l}}),b=e.ref(!1);function le(l){b.value=l,S.value+=1}function q(){v.value.showTable=!v.value.showTable}function G(){v.value.showTooltip=!v.value.showTooltip}const w=e.ref(!1);function L(){w.value=!w.value}return j({generatePdf:D,generateCsv:R,generateImage:M,toggleTable:q,toggleTooltip:G,toggleAnnotator:L}),(l,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-age-pyramid ${b.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"agePyramid",ref:y,id:`vue-ui-age-pyramid_${c.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ue.PenAndPaper,{key:0,parent:y.value,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:w.value,onClose:L},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),K.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:$,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:B,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(ae._sfc_main,{key:`title_${E.value}`,config:{title:{cy:"pyramid-div-title",...t.value.style.title},subtitle:{cy:"pyramid-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&m.value?(e.openBlock(),e.createBlock(H.UserOptions,{ref_key:"details",ref:J,key:`user_options_${S.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(F),isPrinting:e.unref(I),uid:c.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:b.value,isTooltip:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:y.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:le,onGeneratePdf:e.unref(D),onGenerateCsv:R,onGenerateImage:e.unref(M),onToggleTable:q,onToggleTooltip:G,onToggleAnnotator:L},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:o})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:o})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:o})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:o})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value}),viewBox:`0 0 ${d.value.width<=0?10:d.value.width} ${d.value.height<=0?10:d.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(ne._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`age_pyramid_left_${c.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.bars.left.color},null,8,he),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.shiftHue)(t.value.style.layout.bars.left.color,t.value.style.layout.bars.gradient.shiftHue),100-t.value.style.layout.bars.gradient.intensity)},null,8,fe)],8,ye),e.createElementVNode("linearGradient",{id:`age_pyramid_right_${c.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.shiftHue)(t.value.style.layout.bars.right.color,t.value.style.layout.bars.gradient.shiftHue),100-t.value.style.layout.bars.gradient.intensity)},null,8,ge),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.bars.right.color},null,8,be)],8,pe)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(a,o)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:a.left.x,y:a.left.y,width:e.unref(r.checkNaN)(a.left.width<=0?1e-4:a.left.width),height:a.left.height<=0?1e-4:a.left.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,me),e.createElementVNode("rect",{x:a.left.x,y:a.left.y,width:a.left.width<=0?1e-4:a.left.width,height:a.left.height<=0?1e-4:a.left.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${c.value})`:a.left.color,rx:t.value.style.layout.bars.borderRadius},null,8,xe),e.createElementVNode("rect",{x:a.right.x,y:a.right.y,width:a.right.width<=0?1e-4:a.right.width,height:a.right.height<=0?1e-4:a.right.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,ke),e.createElementVNode("rect",{x:a.right.x,y:a.right.y,width:a.right.width<=0?1e-4:a.right.width,height:a.right.height<=0?1e-4:a.right.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${c.value})`:a.right.color,rx:t.value.style.layout.bars.borderRadius},null,8,we)]))),256)),e.createElementVNode("g",null,[t.value.style.layout.dataLabels.sideTitles.show?(e.openBlock(),e.createElementBlock("g",Ce,[e.createElementVNode("text",{x:s.value.left,y:s.value.top+t.value.style.layout.dataLabels.sideTitles.offsetY,fill:t.value.style.layout.dataLabels.sideTitles.useSideColor?t.value.style.layout.bars.left.color:t.value.style.layout.dataLabels.sideTitles.color,"font-size":t.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"start","font-weight":t.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},e.toDisplayString(t.value.translations.female),9,_e),e.createElementVNode("text",{x:s.value.right,y:s.value.top+t.value.style.layout.dataLabels.sideTitles.offsetY,fill:t.value.style.layout.dataLabels.sideTitles.useSideColor?t.value.style.layout.bars.right.color:t.value.style.layout.dataLabels.sideTitles.color,"font-size":t.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"end","font-weight":t.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},e.toDisplayString(t.value.translations.male),9,Ne)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q.value,(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o%t.value.style.layout.dataLabels.yAxis.showEvery===0?(e.openBlock(),e.createElementBlock("text",{key:0,x:s.value.centerX,y:s.value.top+s.value.height/f.value*o+t.value.style.layout.dataLabels.yAxis.fontSize/3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.dataLabels.yAxis.formatter,a,e.unref(r.dataLabel)({v:a}),{datapoint:a,seriesIndex:o})),9,Te)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",Se,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Be,[e.createElementVNode("line",{x1:h.value.right[0].x,x2:h.value.right.at(-1).x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ae),e.createElementVNode("line",{x1:h.value.left[0].x,x2:h.value.left.at(-1).x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,$e)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.right,(a,o)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:a.x,x2:a.x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ee)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:a.x,y:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,a.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(r.dataLabel)({v:a.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:a,seriesIndex:o})),9,ze)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.left,(a,o)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:a.x,x2:a.x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ve)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:a.x,y:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,a.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(r.dataLabel)({v:a.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:a,seriesIndex:o})),9,Pe)]))),256)),e.createElementVNode("text",{x:s.value.right,y:d.value.height,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.translation),9,Oe)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.dataset,(a,o)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:s.value.left,y:s.value.top+s.value.height/f.value*o-t.value.style.layout.bars.gap/2,width:s.value.width<=0?1e-4:s.value.width,height:s.value.height/f.value<=0?1e-4:s.value.height/f.value,fill:x.value!==null&&x.value===o?e.unref(r.setOpacity)(t.value.style.highlighter.color,t.value.style.highlighter.opacity):"transparent",onMouseover:n=>te(o,a),onMouseleave:i[0]||(i[0]=n=>{x.value=null,C.value=!1})},null,40,Ie)]))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,ve)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Fe,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(I)||e.unref(F)})),void 0,!0)])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(se.default,{key:6,config:{type:"pyramid",style:{backgroundColor:t.value.style.backgroundColor,pyramid:{color:"#CCCCCC"}}}},null,8,["config"])),e.renderSlot(l.$slots,"legend",{legend:p.value},void 0,!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:A,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(oe._sfc_main,{show:v.value.showTooltip&&C.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:y.value,content:_.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...N.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...N.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),m.value?(e.openBlock(),e.createBlock(ie.default,{key:8,hideDetails:"",config:{open:v.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(re.DataTable,{key:`table_${z.value}`,colNames:k.value.colNames,head:k.value.head,body:k.value.body,config:k.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:i[1]||(i[1]=a=>v.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,ce))}},Me=de._export_sfc(De,[["__scopeId","data-v-c061125a"]]);exports.default=Me;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-B68kzBN9.cjs"),W=require("./useResponsive-BJ7DTGpm.cjs"),ae=require("./Title-B-xkTfi8.cjs"),H=require("./usePrinter-C9yUesCc.cjs"),oe=require("./Tooltip-Brbj6DqX.cjs"),se=require("./DataTable-DEdQvqB1.cjs"),re=require("./vue-ui-skeleton-DGCkWrND.cjs"),ie=require("./vue-ui-accordion-D_K9gNUR.cjs"),X=require("./useNestedProp-es9bVqY_.cjs"),ue=require("./PackageVersion-DKyD7D76.cjs"),ne=require("./PenAndPaper-Dc2zn4C0.cjs"),de=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ce=["id"],ve=["xmlns","viewBox"],ye=["id"],he=["stop-color"],fe=["stop-color"],pe=["id"],ge=["stop-color"],be=["stop-color"],me=["x","y","width","height","fill","rx"],xe=["x","y","width","height","fill","rx"],ke=["x","y","width","height","fill","rx"],we=["x","y","width","height","fill","rx"],Ce={key:0},_e=["x","y","fill","font-size","font-weight"],Ne=["x","y","fill","font-size","font-weight"],Le={key:1},Te=["x","y","font-size","fill","font-weight"],Se={key:2},Be={key:0},Ae=["x1","x2","y1","y2","stroke","stroke-width"],$e=["x1","x2","y1","y2","stroke","stroke-width"],Ee=["x1","x2","y1","y2","stroke","stroke-width"],ze=["x","y","font-size","fill","font-weight"],Ve=["x1","x2","y1","y2","stroke","stroke-width"],Pe=["x","y","font-size","fill","font-weight"],Oe=["x","y","font-size","fill","font-weight"],Fe=["x","y","width","height","fill","onMouseover"],Ie={key:5,class:"vue-data-ui-watermark"},De={__name:"vue-ui-age-pyramid",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(T,{expose:j}){const n=T,{vue_ui_age_pyramid:Y}=s.useConfig(),m=e.computed(()=>!!n.dataset&&n.dataset.length),c=e.ref(s.createUid()),J=e.ref(null),C=e.ref(!1),_=e.ref(""),x=e.ref(null),S=e.ref(0),y=e.ref(null),B=e.ref(null),A=e.ref(null),$=e.ref(null),E=e.ref(0),z=e.ref(0),t=e.computed({get:()=>V(),set:l=>l});function V(){const l=X.useNestedProp({userConfig:n.config,defaultConfig:Y});return l.theme?{...X.useNestedProp({userConfig:s.themes.vue_ui_age_pyramid[l.theme]||n.config,defaultConfig:l})}:l}e.watch(()=>n.config,l=>{t.value=V(),O(),E.value+=1,z.value+=1},{deep:!0});const P=e.ref(null);e.onMounted(()=>{O()});function O(){if(s.objectIsEmpty(n.dataset)&&s.error({componentName:"VueUiAgePyramid",type:"dataset"}),t.value.responsive){const l=W.throttle(()=>{const{width:i,height:a}=W.useResponsive({chart:y.value,title:t.value.style.title.text?B.value:null,source:A.value,noTitle:$.value});d.value.width=i,d.value.height=a});P.value=new ResizeObserver(l),P.value.observe(y.value.parentNode)}}const{isPrinting:F,isImaging:I,generatePdf:D,generateImage:M}=H.usePrinter({elementId:`vue-ui-age-pyramid_${c.value}`,fileName:t.value.style.title.text||"vue-ui-age-pyramid"}),K=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),v=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),d=e.ref({height:t.value.style.height,width:t.value.style.width}),r=e.computed(()=>{const l=d.value.width-t.value.style.layout.padding.right-t.value.style.layout.padding.left,i=t.value.style.layout.padding.left,a=d.value.width-t.value.style.layout.padding.right;return{top:t.value.style.layout.padding.top,left:i,right:a,bottom:d.value.height-t.value.style.layout.padding.bottom,width:l,height:d.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom,centerX:t.value.style.layout.padding.left+l/2,leftChart:{width:l/2-t.value.style.layout.centerSlit.width,right:i+l/2-t.value.style.layout.centerSlit.width},rightChart:{width:l/2-t.value.style.layout.centerSlit.width,left:i+l/2+t.value.style.layout.centerSlit.width}}}),Q=e.computed(()=>n.dataset.map(l=>t.value.style.layout.dataLabels.yAxis.display==="age"?l[1]:l[0])),h=e.computed(()=>{const l=Z(b.value/5),i=[],a=[];for(let o=0;o<=5;o+=1){const u=l*o,U=l*(o-5);i.push({value:u,x:r.value.left+r.value.width/2+t.value.style.layout.centerSlit.width+u/b.value*r.value.leftChart.width}),a.push({value:Math.abs(U),x:r.value.left+r.value.width/2+U/b.value*r.value.leftChart.width-t.value.style.layout.centerSlit.width})}return{right:i,left:a}});function Z(l){if(l===0)return 0;const a=10**Math.floor(Math.log10(Math.abs(l)));let o;return l<0,o=Math.round(l/a)*a,o}const b=e.computed(()=>Math.max(...n.dataset.flatMap(l=>l.slice(-2).map(i=>s.checkNaN(i))))),f=e.computed(()=>n.dataset.length),ee=e.computed(()=>n.dataset.map(l=>({segment:l[0],age:l[1],left:{value:l[2],proportionToMax:l[2]/b.value},right:{value:l[3],proportionToMax:l[3]/b.value}}))),p=e.computed(()=>ee.value.map((l,i)=>{const a=r.value.top+r.value.height/f.value*i,o=r.value.height/f.value-t.value.style.layout.bars.gap;return{segment:l.segment,age:l.age,left:{...l.left,y:a,color:t.value.style.layout.bars.left.color,x:r.value.leftChart.right-l.left.proportionToMax*r.value.leftChart.width,width:s.checkNaN(l.left.proportionToMax*r.value.leftChart.width),height:o},right:{...l.right,y:a,color:t.value.style.layout.bars.right.color,x:r.value.rightChart.left,width:s.checkNaN(l.right.proportionToMax*r.value.rightChart.width),height:o}}})),N=e.ref(null);function te(l,i){x.value=l,N.value={datapoint:i,seriesIndex:l,series:p.value,config:t.value};const a=t.value.style.tooltip.customFormat;if(s.isFunction(a)&&s.functionReturnsString(()=>a({seriesIndex:l,datapoint:{segment:i[0],index:i[1],left:i[2],right:i[3]},series:p.value,config:t.value})))_.value=a({seriesIndex:l,datapoint:{segment:i[0],index:i[1],left:i[2],right:i[3]},series:p.value,config:t.value});else{let o="";const u=p.value[l];o+=`<div><b>${u.segment}</b></div>`,o+=`<div>${t.value.translations.age}: ${s.applyDataLabel(t.value.style.layout.dataLabels.yAxis.formatter,s.checkNaN(u.age),s.dataLabel({v:s.checkNaN(u.age)}),{datapoint:i,seriesIndex:l})}</div>`,o+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,o+='<div style="display:flex; flex-direction:row;gap:12px">',o+=`<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="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${c.value})`:t.value.style.layout.bars.left.color}"/></svg><div>${t.value.translations.female}</div><div><b>${s.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(u.left.value),s.dataLabel({v:s.checkNaN(u.left.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,o+=`<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="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${c.value})`:t.value.style.layout.bars.right.color}"/></svg><div>${t.value.translations.male}</div><div><b>${s.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(u.right.value),s.dataLabel({v:s.checkNaN(u.right.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,o+="</div>",o+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}"><div>${t.value.translations.total}</div><div><b>${s.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(u.right.value)+s.checkNaN(u.left.value),s.dataLabel({v:s.checkNaN(u.right.value)+s.checkNaN(u.left.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,o+="</div>",_.value=`<div>${o}</div>`}C.value=!0}function R(){e.nextTick(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],i=n.dataset.map(u=>[u[0],u[1],u[2],u[3],u[2]+u[3]]),a=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(i),o=s.createCsvContent(a);s.downloadCsv({csvContent:o,title:t.value.style.title.text||"vue-ui-heatmap"})})}const k=e.computed(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],i=n.dataset.map(o=>[o[0],o[1],o[2].toLocaleString(),o[3].toLocaleString(),(o[2]+o[3]).toLocaleString()]),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:l,body:i,config:a,colNames:l}}),g=e.ref(!1);function le(l){g.value=l,S.value+=1}function q(){v.value.showTable=!v.value.showTable}function G(){v.value.showTooltip=!v.value.showTooltip}const w=e.ref(!1);function L(){w.value=!w.value}return j({generatePdf:D,generateCsv:R,generateImage:M,toggleTable:q,toggleTooltip:G,toggleAnnotator:L}),(l,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-age-pyramid ${g.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"agePyramid",ref:y,id:`vue-ui-age-pyramid_${c.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ne.PenAndPaper,{key:0,parent:y.value,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:w.value,onClose:L},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),K.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:$,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:B,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(ae._sfc_main,{key:`title_${E.value}`,config:{title:{cy:"pyramid-div-title",...t.value.style.title},subtitle:{cy:"pyramid-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&m.value?(e.openBlock(),e.createBlock(H.UserOptions,{ref_key:"details",ref:J,key:`user_options_${S.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(I),isPrinting:e.unref(F),uid:c.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:g.value,isTooltip:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:y.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:le,onGeneratePdf:e.unref(D),onGenerateCsv:R,onGenerateImage:e.unref(M),onToggleTable:q,onToggleTooltip:G,onToggleAnnotator:L},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:o})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:o})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:o})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:o})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":g.value,"vue-data-ui-fulscreen--off":!g.value}),viewBox:`0 0 ${d.value.width<=0?10:d.value.width} ${d.value.height<=0?10:d.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(ue._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`age_pyramid_left_${c.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.bars.left.color},null,8,he),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(e.unref(s.shiftHue)(t.value.style.layout.bars.left.color,t.value.style.layout.bars.gradient.shiftHue),100-t.value.style.layout.bars.gradient.intensity)},null,8,fe)],8,ye),e.createElementVNode("linearGradient",{id:`age_pyramid_right_${c.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(e.unref(s.shiftHue)(t.value.style.layout.bars.right.color,t.value.style.layout.bars.gradient.shiftHue),100-t.value.style.layout.bars.gradient.intensity)},null,8,ge),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.bars.right.color},null,8,be)],8,pe)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(a,o)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:a.left.x,y:a.left.y,width:e.unref(s.checkNaN)(a.left.width<=0?1e-4:a.left.width),height:a.left.height<=0?1e-4:a.left.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,me),e.createElementVNode("rect",{x:a.left.x,y:a.left.y,width:a.left.width<=0?1e-4:a.left.width,height:a.left.height<=0?1e-4:a.left.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${c.value})`:a.left.color,rx:t.value.style.layout.bars.borderRadius},null,8,xe),e.createElementVNode("rect",{x:a.right.x,y:a.right.y,width:a.right.width<=0?1e-4:a.right.width,height:a.right.height<=0?1e-4:a.right.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,ke),e.createElementVNode("rect",{x:a.right.x,y:a.right.y,width:a.right.width<=0?1e-4:a.right.width,height:a.right.height<=0?1e-4:a.right.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${c.value})`:a.right.color,rx:t.value.style.layout.bars.borderRadius},null,8,we)]))),256)),e.createElementVNode("g",null,[t.value.style.layout.dataLabels.sideTitles.show?(e.openBlock(),e.createElementBlock("g",Ce,[e.createElementVNode("text",{x:r.value.left,y:r.value.top+t.value.style.layout.dataLabels.sideTitles.offsetY,fill:t.value.style.layout.dataLabels.sideTitles.useSideColor?t.value.style.layout.bars.left.color:t.value.style.layout.dataLabels.sideTitles.color,"font-size":t.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"start","font-weight":t.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},e.toDisplayString(t.value.translations.female),9,_e),e.createElementVNode("text",{x:r.value.right,y:r.value.top+t.value.style.layout.dataLabels.sideTitles.offsetY,fill:t.value.style.layout.dataLabels.sideTitles.useSideColor?t.value.style.layout.bars.right.color:t.value.style.layout.dataLabels.sideTitles.color,"font-size":t.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"end","font-weight":t.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},e.toDisplayString(t.value.translations.male),9,Ne)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q.value,(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o%t.value.style.layout.dataLabels.yAxis.showEvery===0?(e.openBlock(),e.createElementBlock("text",{key:0,x:r.value.centerX,y:r.value.top+r.value.height/f.value*o+t.value.style.layout.dataLabels.yAxis.fontSize/3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.dataLabels.yAxis.formatter,a,e.unref(s.dataLabel)({v:a}),{datapoint:a,seriesIndex:o})),9,Te)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",Se,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Be,[e.createElementVNode("line",{x1:h.value.right[0].x,x2:h.value.right.at(-1).x,y1:r.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:r.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ae),e.createElementVNode("line",{x1:h.value.left[0].x,x2:h.value.left.at(-1).x,y1:r.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:r.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,$e)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.right,(a,o)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:a.x,x2:a.x,y1:r.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:r.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ee)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:a.x,y:r.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,a.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(s.dataLabel)({v:a.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:a,seriesIndex:o})),9,ze)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.left,(a,o)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:a.x,x2:a.x,y1:r.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:r.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ve)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:a.x,y:r.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,a.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(s.dataLabel)({v:a.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:a,seriesIndex:o})),9,Pe)]))),256)),e.createElementVNode("text",{x:r.value.right,y:d.value.height,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.translation),9,Oe)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.dataset,(a,o)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:r.value.left,y:r.value.top+r.value.height/f.value*o-t.value.style.layout.bars.gap/2,width:r.value.width<=0?1e-4:r.value.width,height:r.value.height/f.value<=0?1e-4:r.value.height/f.value,fill:x.value!==null&&x.value===o?e.unref(s.setOpacity)(t.value.style.highlighter.color,t.value.style.highlighter.opacity):"transparent",onMouseover:u=>te(o,a),onMouseleave:i[0]||(i[0]=u=>{x.value=null,C.value=!1})},null,40,Fe)]))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,ve)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(F)||e.unref(I)})),void 0,!0)])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(re.default,{key:6,config:{type:"pyramid",style:{backgroundColor:t.value.style.backgroundColor,pyramid:{color:"#CCCCCC"}}}},null,8,["config"])),e.renderSlot(l.$slots,"legend",{legend:p.value},void 0,!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:A,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(oe._sfc_main,{show:v.value.showTooltip&&C.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:y.value,content:_.value,isFullscreen:g.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...N.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...N.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),m.value?(e.openBlock(),e.createBlock(ie.default,{key:8,hideDetails:"",config:{open:v.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(se.DataTable,{key:`table_${z.value}`,colNames:k.value.colNames,head:k.value.head,body:k.value.body,config:k.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:i[1]||(i[1]=a=>v.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,ce))}},Me=de._export_sfc(De,[["__scopeId","data-v-49080726"]]);exports.default=Me;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { computed as b, ref as v, watch as _e, onMounted as Ce, openBlock as i, createElementBlock as r, normalizeClass as re, normalizeStyle as ne, createBlock as
|
|
2
|
-
import { u as Ae, c as Le, t as Se, o as ze, e as Ie, v as h, X as Oe, s as X, w as ye, i as k, f as _, x as
|
|
1
|
+
import { computed as b, ref as v, watch as _e, onMounted as Ce, openBlock as i, createElementBlock as r, normalizeClass as re, normalizeStyle as ne, createBlock as S, createCommentVNode as y, unref as d, createSlots as $e, withCtx as p, renderSlot as f, normalizeProps as O, guardReactiveProps as F, createVNode as de, createElementVNode as n, Fragment as z, renderList as P, toDisplayString as w, createTextVNode as ve, nextTick as Te } from "vue";
|
|
2
|
+
import { u as Ae, c as Le, t as Se, o as ze, e as Ie, v as h, X as Oe, s as X, w as ye, i as k, f as _, x as Fe, y as Pe, q as Me, r as Ne } from "./index-DnukYspq.js";
|
|
3
3
|
import { t as Re, u as De } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as Ge } from "./Title-
|
|
5
|
-
import { u as Be, U as Ee } from "./usePrinter-
|
|
6
|
-
import { _ as We } from "./Tooltip-
|
|
7
|
-
import { D as Xe } from "./DataTable-
|
|
8
|
-
import Ue from "./vue-ui-skeleton-
|
|
9
|
-
import Ve from "./vue-ui-accordion-
|
|
10
|
-
import { u as he } from "./useNestedProp-
|
|
11
|
-
import { _ as Ye } from "./PackageVersion-
|
|
12
|
-
import { P as je } from "./PenAndPaper-
|
|
4
|
+
import { _ as Ge } from "./Title-Cnl9ySNH.js";
|
|
5
|
+
import { u as Be, U as Ee } from "./usePrinter-DVIALk5e.js";
|
|
6
|
+
import { _ as We } from "./Tooltip-DEAOBZ8h.js";
|
|
7
|
+
import { D as Xe } from "./DataTable-D_w08xos.js";
|
|
8
|
+
import Ue from "./vue-ui-skeleton-CXdyOF4T.js";
|
|
9
|
+
import Ve from "./vue-ui-accordion-f9NTID9e.js";
|
|
10
|
+
import { u as he } from "./useNestedProp-CVOQGx-X.js";
|
|
11
|
+
import { _ as Ye } from "./PackageVersion-CH6MCx6T.js";
|
|
12
|
+
import { P as je } from "./PenAndPaper-BWTR3U2d.js";
|
|
13
13
|
import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"], Ze = ["stop-color"], et = ["id"], tt = ["stop-color"], lt = ["stop-color"], at = ["x", "y", "width", "height", "fill", "rx"], ot = ["x", "y", "width", "height", "fill", "rx"], st = ["x", "y", "width", "height", "fill", "rx"], it = ["x", "y", "width", "height", "fill", "rx"], ut = { key: 0 }, rt = ["x", "y", "fill", "font-size", "font-weight"], nt = ["x", "y", "fill", "font-size", "font-weight"], dt = { key: 1 }, vt = ["x", "y", "font-size", "fill", "font-weight"], yt = { key: 2 }, ht = { key: 0 }, ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ct = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pt = ["x", "y", "font-size", "fill", "font-weight"], bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xt = ["x", "y", "font-size", "fill", "font-weight"], mt = ["x", "y", "font-size", "fill", "font-weight"], wt = ["x", "y", "width", "height", "fill", "onMouseover"], kt = {
|
|
15
15
|
key: 5,
|
|
@@ -100,15 +100,15 @@ const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"],
|
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
}), be = b(() => c.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), $ = b(() => {
|
|
103
|
-
const t = xe(
|
|
103
|
+
const t = xe(I.value / 5), s = [], l = [];
|
|
104
104
|
for (let a = 0; a <= 5; a += 1) {
|
|
105
105
|
const u = t * a, ue = t * (a - 5);
|
|
106
106
|
s.push({
|
|
107
107
|
value: u,
|
|
108
|
-
x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + u /
|
|
108
|
+
x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + u / I.value * o.value.leftChart.width
|
|
109
109
|
}), l.push({
|
|
110
110
|
value: Math.abs(ue),
|
|
111
|
-
x: o.value.left + o.value.width / 2 + ue /
|
|
111
|
+
x: o.value.left + o.value.width / 2 + ue / I.value * o.value.leftChart.width - e.value.style.layout.centerSlit.width
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
return {
|
|
@@ -122,16 +122,16 @@ const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"],
|
|
|
122
122
|
let a;
|
|
123
123
|
return t < 0, a = Math.round(t / l) * l, a;
|
|
124
124
|
}
|
|
125
|
-
const
|
|
125
|
+
const I = b(() => Math.max(...c.dataset.flatMap((t) => t.slice(-2).map((s) => h(s))))), T = b(() => c.dataset.length), me = b(() => c.dataset.map((t) => ({
|
|
126
126
|
segment: t[0],
|
|
127
127
|
age: t[1],
|
|
128
128
|
left: {
|
|
129
129
|
value: t[2],
|
|
130
|
-
proportionToMax: t[2] /
|
|
130
|
+
proportionToMax: t[2] / I.value
|
|
131
131
|
},
|
|
132
132
|
right: {
|
|
133
133
|
value: t[3],
|
|
134
|
-
proportionToMax: t[3] /
|
|
134
|
+
proportionToMax: t[3] / I.value
|
|
135
135
|
}
|
|
136
136
|
}))), A = b(() => me.value.map((t, s) => {
|
|
137
137
|
const l = o.value.top + o.value.height / T.value * s, a = o.value.height / T.value - e.value.style.layout.bars.gap;
|
|
@@ -164,7 +164,7 @@ const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"],
|
|
|
164
164
|
config: e.value
|
|
165
165
|
};
|
|
166
166
|
const l = e.value.style.tooltip.customFormat;
|
|
167
|
-
if (
|
|
167
|
+
if (Fe(l) && Pe(() => l({
|
|
168
168
|
seriesIndex: t,
|
|
169
169
|
datapoint: {
|
|
170
170
|
segment: s[0],
|
|
@@ -252,9 +252,9 @@ const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"],
|
|
|
252
252
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
253
253
|
};
|
|
254
254
|
return { head: t, body: s, config: l, colNames: t };
|
|
255
|
-
}),
|
|
255
|
+
}), L = v(!1);
|
|
256
256
|
function ke(t) {
|
|
257
|
-
|
|
257
|
+
L.value = t, V.value += 1;
|
|
258
258
|
}
|
|
259
259
|
function se() {
|
|
260
260
|
m.value.showTable = !m.value.showTable;
|
|
@@ -274,13 +274,13 @@ const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"],
|
|
|
274
274
|
toggleTooltip: ie,
|
|
275
275
|
toggleAnnotator: W
|
|
276
276
|
}), (t, s) => (i(), r("div", {
|
|
277
|
-
class: re(`vue-ui-age-pyramid ${
|
|
277
|
+
class: re(`vue-ui-age-pyramid ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
278
278
|
ref_key: "agePyramid",
|
|
279
279
|
ref: C,
|
|
280
280
|
id: `vue-ui-age-pyramid_${x.value}`,
|
|
281
281
|
style: ne(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`)
|
|
282
282
|
}, [
|
|
283
|
-
e.value.userOptions.buttons.annotator ? (i(),
|
|
283
|
+
e.value.userOptions.buttons.annotator ? (i(), S(je, {
|
|
284
284
|
key: 0,
|
|
285
285
|
parent: C.value,
|
|
286
286
|
backgroundColor: e.value.style.backgroundColor,
|
|
@@ -301,7 +301,7 @@ const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"],
|
|
|
301
301
|
ref: Y,
|
|
302
302
|
style: "width:100%;background:transparent"
|
|
303
303
|
}, [
|
|
304
|
-
(i(),
|
|
304
|
+
(i(), S(Ge, {
|
|
305
305
|
key: `title_${q.value}`,
|
|
306
306
|
config: {
|
|
307
307
|
title: {
|
|
@@ -315,7 +315,7 @@ const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"],
|
|
|
315
315
|
}
|
|
316
316
|
}, null, 8, ["config"]))
|
|
317
317
|
], 512)) : y("", !0),
|
|
318
|
-
e.value.userOptions.show && M.value ? (i(),
|
|
318
|
+
e.value.userOptions.show && M.value ? (i(), S(Ee, {
|
|
319
319
|
ref_key: "details",
|
|
320
320
|
ref: ge,
|
|
321
321
|
key: `user_options_${V.value}`,
|
|
@@ -330,7 +330,7 @@ const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"],
|
|
|
330
330
|
hasImg: e.value.userOptions.buttons.img,
|
|
331
331
|
hasTable: e.value.userOptions.buttons.table,
|
|
332
332
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
333
|
-
isFullscreen:
|
|
333
|
+
isFullscreen: L.value,
|
|
334
334
|
isTooltip: m.value.showTooltip,
|
|
335
335
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
336
336
|
chartElement: C.value,
|
|
@@ -383,14 +383,14 @@ const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"],
|
|
|
383
383
|
t.$slots.optionFullscreen ? {
|
|
384
384
|
name: "optionFullscreen",
|
|
385
385
|
fn: p(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
386
|
-
f(t.$slots, "optionFullscreen", O(
|
|
386
|
+
f(t.$slots, "optionFullscreen", O(F({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
387
387
|
]),
|
|
388
388
|
key: "5"
|
|
389
389
|
} : void 0,
|
|
390
390
|
t.$slots.optionAnnotator ? {
|
|
391
391
|
name: "optionAnnotator",
|
|
392
392
|
fn: p(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
393
|
-
f(t.$slots, "optionAnnotator", O(
|
|
393
|
+
f(t.$slots, "optionAnnotator", O(F({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
394
394
|
]),
|
|
395
395
|
key: "6"
|
|
396
396
|
} : void 0
|
|
@@ -398,7 +398,7 @@ const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"],
|
|
|
398
398
|
M.value ? (i(), r("svg", {
|
|
399
399
|
key: 4,
|
|
400
400
|
xmlns: d(Oe),
|
|
401
|
-
class: re({ "vue-data-ui-fullscreen--on":
|
|
401
|
+
class: re({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
|
|
402
402
|
viewBox: `0 0 ${g.value.width <= 0 ? 10 : g.value.width} ${g.value.height <= 0 ? 10 : g.value.height}`,
|
|
403
403
|
style: ne(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
404
404
|
}, [
|
|
@@ -437,7 +437,7 @@ const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"],
|
|
|
437
437
|
}, null, 8, lt)
|
|
438
438
|
], 8, et)
|
|
439
439
|
]),
|
|
440
|
-
(i(!0), r(
|
|
440
|
+
(i(!0), r(z, null, P(A.value, (l, a) => (i(), r("g", null, [
|
|
441
441
|
n("rect", {
|
|
442
442
|
x: l.left.x,
|
|
443
443
|
y: l.left.y,
|
|
@@ -491,7 +491,7 @@ const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"],
|
|
|
491
491
|
}, w(e.value.translations.male), 9, nt)
|
|
492
492
|
])) : y("", !0),
|
|
493
493
|
e.value.style.layout.dataLabels.yAxis.show ? (i(), r("g", dt, [
|
|
494
|
-
(i(!0), r(
|
|
494
|
+
(i(!0), r(z, null, P(be.value, (l, a) => (i(), r(z, null, [
|
|
495
495
|
a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (i(), r("text", {
|
|
496
496
|
key: 0,
|
|
497
497
|
x: o.value.centerX,
|
|
@@ -529,7 +529,7 @@ const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"],
|
|
|
529
529
|
"stroke-linecap": "round"
|
|
530
530
|
}, null, 8, ct)
|
|
531
531
|
])) : y("", !0),
|
|
532
|
-
(i(!0), r(
|
|
532
|
+
(i(!0), r(z, null, P($.value.right, (l, a) => (i(), r("g", null, [
|
|
533
533
|
e.value.style.layout.grid.show ? (i(), r("line", {
|
|
534
534
|
key: 0,
|
|
535
535
|
x1: l.x,
|
|
@@ -556,7 +556,7 @@ const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"],
|
|
|
556
556
|
{ datapoint: l, seriesIndex: a }
|
|
557
557
|
)), 9, pt)
|
|
558
558
|
]))), 256)),
|
|
559
|
-
(i(!0), r(
|
|
559
|
+
(i(!0), r(z, null, P($.value.left, (l, a) => (i(), r("g", null, [
|
|
560
560
|
e.value.style.layout.grid.show ? (i(), r("line", {
|
|
561
561
|
key: 0,
|
|
562
562
|
x1: l.x,
|
|
@@ -593,7 +593,7 @@ const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"],
|
|
|
593
593
|
}, w(e.value.style.layout.dataLabels.xAxis.translation), 9, mt)
|
|
594
594
|
])) : y("", !0)
|
|
595
595
|
]),
|
|
596
|
-
(i(!0), r(
|
|
596
|
+
(i(!0), r(z, null, P(U.dataset, (l, a) => (i(), r("g", null, [
|
|
597
597
|
n("rect", {
|
|
598
598
|
x: o.value.left,
|
|
599
599
|
y: o.value.top + o.value.height / T.value * a - e.value.style.layout.bars.gap / 2,
|
|
@@ -609,9 +609,9 @@ const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"],
|
|
|
609
609
|
f(t.$slots, "svg", { svg: g.value }, void 0, !0)
|
|
610
610
|
], 14, Je)) : y("", !0),
|
|
611
611
|
t.$slots.watermark ? (i(), r("div", kt, [
|
|
612
|
-
f(t.$slots, "watermark", O(
|
|
612
|
+
f(t.$slots, "watermark", O(F({ isPrinting: d(ee) || d(te) })), void 0, !0)
|
|
613
613
|
])) : y("", !0),
|
|
614
|
-
M.value ? y("", !0) : (i(),
|
|
614
|
+
M.value ? y("", !0) : (i(), S(Ue, {
|
|
615
615
|
key: 6,
|
|
616
616
|
config: {
|
|
617
617
|
type: "pyramid",
|
|
@@ -645,17 +645,18 @@ const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"],
|
|
|
645
645
|
offsetY: e.value.style.tooltip.offsetY,
|
|
646
646
|
parent: C.value,
|
|
647
647
|
content: B.value,
|
|
648
|
+
isFullscreen: L.value,
|
|
648
649
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
649
650
|
}, {
|
|
650
651
|
"tooltip-before": p(() => [
|
|
651
|
-
f(t.$slots, "tooltip-before", O(
|
|
652
|
+
f(t.$slots, "tooltip-before", O(F({ ...E.value })), void 0, !0)
|
|
652
653
|
]),
|
|
653
654
|
"tooltip-after": p(() => [
|
|
654
|
-
f(t.$slots, "tooltip-after", O(
|
|
655
|
+
f(t.$slots, "tooltip-after", O(F({ ...E.value })), void 0, !0)
|
|
655
656
|
]),
|
|
656
657
|
_: 3
|
|
657
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
658
|
-
M.value ? (i(),
|
|
658
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
659
|
+
M.value ? (i(), S(Ve, {
|
|
659
660
|
key: 8,
|
|
660
661
|
hideDetails: "",
|
|
661
662
|
config: {
|
|
@@ -672,7 +673,7 @@ const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"],
|
|
|
672
673
|
}
|
|
673
674
|
}, {
|
|
674
675
|
content: p(() => [
|
|
675
|
-
(i(),
|
|
676
|
+
(i(), S(Xe, {
|
|
676
677
|
key: `table_${J.value}`,
|
|
677
678
|
colNames: R.value.colNames,
|
|
678
679
|
head: R.value.head,
|
|
@@ -694,7 +695,7 @@ const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"],
|
|
|
694
695
|
}, 8, ["config"])) : y("", !0)
|
|
695
696
|
], 14, qe));
|
|
696
697
|
}
|
|
697
|
-
}, Rt = /* @__PURE__ */ He(_t, [["__scopeId", "data-v-
|
|
698
|
+
}, Rt = /* @__PURE__ */ He(_t, [["__scopeId", "data-v-49080726"]]);
|
|
698
699
|
export {
|
|
699
700
|
Rt as default
|
|
700
701
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import p from "./html2canvas.esm-d2sM-0Wm.js";
|
|
2
2
|
import { E as _ } from "./jspdf.es.min-C660YX78.js";
|
|
3
|
-
import { z as v, u as w, A, B as M } from "./index-
|
|
3
|
+
import { z as v, u as w, A, B as M } from "./index-DnukYspq.js";
|
|
4
4
|
import { openBlock as d, createElementBlock as n, createElementVNode as r, normalizeStyle as c, toDisplayString as u, normalizeClass as y, createCommentVNode as a, withDirectives as f, vModelCheckbox as g, vModelText as C, renderSlot as O, Fragment as L, renderList as G, createStaticVNode as N, pushScopeId as m, popScopeId as T } from "vue";
|
|
5
5
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const D = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./html2canvas.esm-BA_v9SIU.cjs"),I=require("./jspdf.es.min-DLYY9DTT.cjs"),u=require("./index
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./html2canvas.esm-BA_v9SIU.cjs"),I=require("./jspdf.es.min-DLYY9DTT.cjs"),u=require("./index-B68kzBN9.cjs"),o=require("vue"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{shapes:[],lastSelectedShape:void 0}}}},data(){return{activeShape:void 0,strokeSize:1,currentPointer:{start:{x:0,y:0},end:{x:0,end:0}},currentTarget:void 0,hoveredShapeId:void 0,isBold:!1,isBulletTextMode:!1,isDash:!1,isDeleteMode:!1,isDrawing:!1,isDrawingNewShape:!0,isDrawMode:!1,isItalic:!1,isMouseDown:!1,isMoveMode:!1,isPrinting:!1,isResizeMode:!1,isSelectMode:!1,isSummaryOpen:!1,isTextMode:!1,isUnderline:!1,isWriting:!1,lastSelectedShape:this.dataset.lastSelectedShape,pointerDownId:-1,pointerPosition:{x:0,y:0},preventEdit:!0,selectedGroup:[],shapes:this.dataset.shapes?this.dataset.shapes:[],shapesOrder:[],step:Math.round(Math.random())*1e5,svgHeight:1e3,svgWidth:1e3,options:{arrow:{color:"grey",filled:!0},circle:{color:"grey",filled:!1,radius:3,strokeWidth:2},rect:{color:"grey",filled:!1,strokeWidth:2,height:12,width:12}},selectedColor:"#000000",showCaret:!1,sizeRatio:1,slottedSvg:void 0,sourceWidth:1,sourceHeight:1,textAlign:"start",textFont:20,transparency:100,transparencyCodes:u.opacity}},watch:{shapes:{handler(e){e.length===0&&(this.lastSelectedShape=void 0)}}},computed:{FINAL_CONFIG(){const e=u.useConfig().vue_ui_annotator;if(!Object.keys(this.config||{}).length)return e;const l=this.treeShake({defaultConfig:e,userConfig:this.config});return this.convertConfigColors(l)},canSelect(){return this.shapes.filter(e=>!["line","group"].includes(e.type)).length>1},colorTransparency(){return this.transparencyCodes[this.transparency>98?98:this.transparency]},cursorClass(){switch(!0){case this.isDeleteMode:return"default";case this.isMoveMode:return"move";case this.isTextMode:return"text";case this.isResizeMode:return"se-resize";default:return""}},records(){return this.shapes},userShapes(){return this.records.map(e=>{switch(!0){case(e&&e.type==="arrow"):const l=e.strokeWidth>3?5:10,s=e.strokeWidth>3?2.5:5;return`
|
|
2
2
|
<defs>
|
|
3
3
|
<marker
|
|
4
4
|
id="${e.id}"
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ref as d, computed as g, onMounted as ce, watch as V, onBeforeUnmount as he, openBlock as r, createElementBlock as n, normalizeClass as q, normalizeStyle as X, createBlock as k, createCommentVNode as u, unref as v, createSlots as ve, withCtx as w, renderSlot as y, normalizeProps as I, guardReactiveProps as O, createVNode as de, Fragment as H, renderList as T, createElementVNode as x, toDisplayString as L } from "vue";
|
|
2
|
-
import { u as ge, o as fe, e as Y, g as me, c as ye, l as pe,
|
|
3
|
-
import { u as J } from "./useNestedProp-
|
|
4
|
-
import { _ as _e } from "./Title-
|
|
5
|
-
import { L as Ce } from "./Legend-
|
|
6
|
-
import { u as Le, U as $e } from "./usePrinter-
|
|
7
|
-
import { _ as Be } from "./PackageVersion-
|
|
8
|
-
import { P as Ae } from "./PenAndPaper-
|
|
9
|
-
import Pe from "./vue-ui-skeleton-
|
|
2
|
+
import { u as ge, o as fe, e as Y, g as me, c as ye, l as pe, D as be, d as ke, i as $, f as B, X as we, t as xe } from "./index-DnukYspq.js";
|
|
3
|
+
import { u as J } from "./useNestedProp-CVOQGx-X.js";
|
|
4
|
+
import { _ as _e } from "./Title-Cnl9ySNH.js";
|
|
5
|
+
import { L as Ce } from "./Legend-BWDoQii_.js";
|
|
6
|
+
import { u as Le, U as $e } from "./usePrinter-DVIALk5e.js";
|
|
7
|
+
import { _ as Be } from "./PackageVersion-CH6MCx6T.js";
|
|
8
|
+
import { P as Ae } from "./PenAndPaper-BWTR3U2d.js";
|
|
9
|
+
import Pe from "./vue-ui-skeleton-CXdyOF4T.js";
|
|
10
10
|
import { _ as Fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
const Se = ["id"], Ie = {
|
|
12
12
|
key: 1,
|
|
13
13
|
ref: "noTitle",
|
|
14
14
|
class: "vue-data-ui-no-title-space",
|
|
15
15
|
style: "height:36px; width: 100%;background:transparent"
|
|
16
|
-
}, Oe = ["xmlns", "viewBox"], He = { key: 0 }, Te = ["x", "y", "height", "width", "fill", "stroke"], Ne = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ze = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Me = ["x", "y", "font-size", "font-weight", "fill"], Ue = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], We = { key: 3 }, Ee = ["x", "y", "fill", "font-size", "font-weight"],
|
|
16
|
+
}, Oe = ["xmlns", "viewBox"], He = { key: 0 }, Te = ["x", "y", "height", "width", "fill", "stroke"], Ne = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ze = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Me = ["x", "y", "font-size", "font-weight", "fill"], Ue = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], We = { key: 3 }, Ee = ["x", "y", "fill", "font-size", "font-weight"], De = { key: 4 }, Re = ["x1", "x2", "y1", "y2", "stroke"], Ge = {
|
|
17
17
|
key: 5,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
19
|
}, je = {
|
|
@@ -213,7 +213,7 @@ segments: [
|
|
|
213
213
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
214
214
|
paddingBottom: 6,
|
|
215
215
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
216
|
-
})), { isPrinting:
|
|
216
|
+
})), { isPrinting: D, isImaging: R, generatePdf: G, generateImage: j } = Le({
|
|
217
217
|
elementId: `bullet_${P.value}`,
|
|
218
218
|
fileName: e.value.style.chart.title.text || "vue-ui-bullet"
|
|
219
219
|
}), oe = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), b = d(!1);
|
|
@@ -274,8 +274,8 @@ segments: [
|
|
|
274
274
|
ref: "details",
|
|
275
275
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
276
276
|
color: e.value.style.chart.color,
|
|
277
|
-
isPrinting: v(
|
|
278
|
-
isImaging: v(
|
|
277
|
+
isPrinting: v(D),
|
|
278
|
+
isImaging: v(R),
|
|
279
279
|
uid: P.value,
|
|
280
280
|
hasTooltip: !1,
|
|
281
281
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -410,7 +410,7 @@ segments: [
|
|
|
410
410
|
})
|
|
411
411
|
)), 9, Ee))), 256))
|
|
412
412
|
])) : u("", !0),
|
|
413
|
-
e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (r(), n("g",
|
|
413
|
+
e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (r(), n("g", De, [
|
|
414
414
|
(r(!0), n(H, null, T(c.value.ticks, (a) => (r(), n("line", {
|
|
415
415
|
x1: a.x,
|
|
416
416
|
x2: a.x,
|
|
@@ -419,13 +419,13 @@ segments: [
|
|
|
419
419
|
stroke: e.value.style.chart.segments.ticks.stroke,
|
|
420
420
|
"stroke-width": 1,
|
|
421
421
|
"stroke-linecap": "round"
|
|
422
|
-
}, null, 8,
|
|
422
|
+
}, null, 8, Re))), 256))
|
|
423
423
|
])) : u("", !0)
|
|
424
424
|
])) : u("", !0),
|
|
425
425
|
y(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
426
426
|
], 14, Oe)) : u("", !0),
|
|
427
427
|
t.$slots.watermark ? (r(), n("div", Ge, [
|
|
428
|
-
y(t.$slots, "watermark", I(O({ isPrinting: v(
|
|
428
|
+
y(t.$slots, "watermark", I(O({ isPrinting: v(D) || v(R) })), void 0, !0)
|
|
429
429
|
])) : u("", !0),
|
|
430
430
|
f.value ? u("", !0) : (r(), k(Pe, {
|
|
431
431
|
key: 6,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-B68kzBN9.cjs"),V=require("./useNestedProp-es9bVqY_.cjs"),j=require("./Title-B-xkTfi8.cjs"),G=require("./Legend-C4rlR-Ge.cjs"),$=require("./usePrinter-C9yUesCc.cjs"),X=require("./PackageVersion-DKyD7D76.cjs"),Y=require("./PenAndPaper-Dc2zn4C0.cjs"),J=require("./vue-ui-skeleton-DGCkWrND.cjs"),K=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Q=["id"],Z={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},ee=["xmlns","viewBox"],te={key:0},ae=["x","y","height","width","fill","stroke"],le=["x","y","height","width","rx","fill","stroke","stroke-width"],re=["x","y","height","width","fill","stroke","stroke-width"],oe=["x","y","font-size","font-weight","fill"],se=["x","y","height","width","rx","fill","stroke","stroke-width"],ne={key:3},ue=["x","y","fill","font-size","font-weight"],ie={key:4},ce=["x1","x2","y1","y2","stroke"],de={key:5,class:"vue-data-ui-watermark"},he={class:"vue-ui-bullet-legend-item",dir:"auto"},ve={style:{"margin-right":"2px"}},me={key:7,ref:"source",dir:"auto"},ge={__name:"vue-ui-bullet",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(A,{expose:F}){const n=A,{vue_ui_bullet:O}=s.useConfig(),y=e.ref(null),I=e.ref(null),w=e.ref(0),z=e.ref(null),T=e.ref(0),d=e.computed({get:()=>n.dataset.hasOwnProperty("value"),set:a=>a}),v=e.computed(()=>n.dataset.segments?Array.isArray(n.dataset.segments)?n.dataset.segments.length?!0:(console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
2
2
|
|
|
3
3
|
segments: [
|
|
4
4
|
{
|