vue-data-ui 2.4.1 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -44
- package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
- package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
- package/dist/BaseIcon-uALK38Ov.cjs +1 -0
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
- package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
- package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
- package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
- package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
- package/dist/index-eFox7weK.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +22 -17
- package/dist/types/vue-data-ui.d.ts +22 -17
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
- package/dist/usePrinter-CSRFnDBU.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
- package/dist/useResponsive-BY8tgM1n.js +188 -0
- package/dist/useResponsive-CodiGUOE.cjs +1 -0
- package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
- package/dist/vue-data-ui-Bduq4f2p.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
- package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
- package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
- package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
- package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
- package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
- package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
- package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
- package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
- package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
- package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
- package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
- package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
- package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
- package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
- package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
- package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
- package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
- package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
- package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
- package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
- package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
- package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
- package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
- package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
- package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
- package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
- package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
- package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
- package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
- package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
- package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
- package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
- package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
- package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
- package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
- package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
- package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
- package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
- package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
- package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
- package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
- package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
- package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
- package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
- package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
- package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
- package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
- package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
- package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
- package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
- package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
- package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
- package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
- package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
- package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
- package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
- package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
- package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
- package/package.json +1 -1
- package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
- package/dist/index-C7_6YjWN.cjs +0 -9
- package/dist/usePrinter-8EP4iaGm.cjs +0 -1
- package/dist/useResponsive-B3TrDDIG.cjs +0 -1
- package/dist/useResponsive-NZB-WLRF.js +0 -187
- package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
- package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
- package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
- package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
- package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
- package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
- package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
- package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
- package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
- package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
- package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
- package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
- package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
- package/dist/vue-ui-gauge-BXiy515T.js +0 -494
- package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
- package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
- package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
- package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
- package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
- package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
- package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
- package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
- package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
- package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
- package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
- package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
- package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
- package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
- package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
- package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
- package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
- package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
- package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
- package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
- package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
- package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
- package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
- package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
- package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
- package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
- package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
- package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
- package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
- package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
- package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
- package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
- package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
- package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
- package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
- package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
- package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
- package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
- package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
- package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-eFox7weK.cjs"),U=require("./useResponsive-CodiGUOE.cjs"),te=require("./Title-0Tp4hZ4u.cjs"),W=require("./usePrinter-CSRFnDBU.cjs"),le=require("./Tooltip-9Tp2Yrd1.cjs"),ae=require("./DataTable-DTzynbND.cjs"),oe=require("./vue-ui-skeleton-BqKzuhkB.cjs"),re=require("./vue-ui-accordion-TEMpM1hO.cjs"),H=require("./useNestedProp-BkgEhTQY.cjs"),se=require("./PackageVersion-DwI-KhXH.cjs"),ie=require("./PenAndPaper-CDFVOo7X.cjs"),ue=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ne=["id"],de=["xmlns","viewBox"],ce=["id"],ve=["stop-color"],ye=["stop-color"],he=["id"],fe=["stop-color"],pe=["stop-color"],ge=["x","y","width","height","fill","rx"],be=["x","y","width","height","fill","rx"],me=["x","y","width","height","fill","rx"],xe=["x","y","width","height","fill","rx"],ke={key:0},we=["x","y","fill","font-size","font-weight"],Ce=["x","y","fill","font-size","font-weight"],_e={key:1},Ne=["x","y","font-size","fill","font-weight"],Le={key:2},Se={key:0},Te=["x1","x2","y1","y2","stroke","stroke-width"],Be=["x1","x2","y1","y2","stroke","stroke-width"],Ae=["x1","x2","y1","y2","stroke","stroke-width"],$e=["x","y","font-size","fill","font-weight"],Ee=["x1","x2","y1","y2","stroke","stroke-width"],ze=["x","y","font-size","fill","font-weight"],Ve=["x","y","font-size","fill","font-weight"],Pe=["x","y","width","height","fill","onMouseover"],Ie={key:4,class:"vue-data-ui-watermark"},Oe={__name:"vue-ui-age-pyramid",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(S,{expose:X}){const n=S,{vue_ui_age_pyramid:j}=r.useConfig(),m=e.computed(()=>!!n.dataset&&n.dataset.length),c=e.ref(r.createUid()),Y=e.ref(null),C=e.ref(!1),_=e.ref(""),x=e.ref(null),T=e.ref(0),y=e.ref(null),B=e.ref(null),A=e.ref(null),$=e.ref(0),E=e.ref(0),t=e.computed({get:()=>z(),set:l=>l});function z(){const l=H.useNestedProp({userConfig:n.config,defaultConfig:j});return l.theme?{...H.useNestedProp({userConfig:r.themes.vue_ui_age_pyramid[l.theme]||n.config,defaultConfig:l})}:l}e.watch(()=>n.config,l=>{t.value=z(),P(),$.value+=1,E.value+=1},{deep:!0});const V=e.ref(null);e.onMounted(()=>{P()});function P(){if(r.objectIsEmpty(n.dataset)&&r.error({componentName:"VueUiAgePyramid",type:"dataset"}),t.value.responsive){const l=U.throttle(()=>{const{width:i,height:a}=U.useResponsive({chart:y.value,title:t.value.style.title.text?B.value:null,source:A.value});d.value.width=i,d.value.height=a});V.value=new ResizeObserver(l),V.value.observe(y.value.parentNode)}}const{isPrinting:I,isImaging:O,generatePdf:F,generateImage:D}=W.usePrinter({elementId:`vue-ui-age-pyramid_${c.value}`,fileName:t.value.style.title.text||"vue-ui-age-pyramid"}),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}}}),J=e.computed(()=>n.dataset.map(l=>t.value.style.layout.dataLabels.yAxis.display==="age"?l[1]:l[0])),h=e.computed(()=>{const l=K(g.value/5),i=[],a=[];for(let o=0;o<=5;o+=1){const u=l*o,G=l*(o-5);i.push({value:u,x:s.value.left+s.value.width/2+t.value.style.layout.centerSlit.width+u/g.value*s.value.leftChart.width}),a.push({value:Math.abs(G),x:s.value.left+s.value.width/2+G/g.value*s.value.leftChart.width-t.value.style.layout.centerSlit.width})}return{right:i,left:a}});function K(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(...n.dataset.flatMap(l=>l.slice(-2).map(i=>r.checkNaN(i))))),f=e.computed(()=>n.dataset.length),Q=e.computed(()=>n.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(()=>Q.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 Z(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 u=p.value[l];o+=`<div><b>${u.segment}</b></div>`,o+=`<div>${t.value.translations.age}: ${r.applyDataLabel(t.value.style.layout.dataLabels.yAxis.formatter,r.checkNaN(u.age),r.dataLabel({v:r.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>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(u.left.value),r.dataLabel({v:r.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>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(u.right.value),r.dataLabel({v:r.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>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(u.right.value)+r.checkNaN(u.left.value),r.dataLabel({v:r.checkNaN(u.right.value)+r.checkNaN(u.left.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,o+="</div>",_.value=`<div>${o}</div>`}C.value=!0}function M(){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=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=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}}),b=e.ref(!1);function ee(l){b.value=l,T.value+=1}function R(){v.value.showTable=!v.value.showTable}function q(){v.value.showTooltip=!v.value.showTooltip}const w=e.ref(!1);function L(){w.value=!w.value}return X({generatePdf:F,generateCsv:M,generateImage:D,toggleTable:R,toggleTooltip:q,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;${t.value.style.title.text?"":"padding-top:36px"};background:${t.value.style.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ie.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),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:B,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(te._sfc_main,{key:`title_${$.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(W.UserOptions,{ref_key:"details",ref:Y,key:`user_options_${T.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(O),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:ee,onGeneratePdf:e.unref(F),onGenerateCsv:M,onGenerateImage:e.unref(D),onToggleTable:R,onToggleTooltip:q,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:3,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(se._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,ve),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,ye)],8,ce),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,fe),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.bars.right.color},null,8,pe)],8,he)]),(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,ge),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,be),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,me),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,xe)]))),256)),e.createElementVNode("g",null,[t.value.style.layout.dataLabels.sideTitles.show?(e.openBlock(),e.createElementBlock("g",ke,[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,we),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,Ce)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",_e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(J.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,Ne)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",Le,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Se,[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,Te),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,Be)])):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,Ae)):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,$e)]))),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,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.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,Ve)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.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:u=>Z(o,a),onMouseleave:i[0]||(i[0]=u=>{x.value=null,C.value=!1})},null,40,Pe)]))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,de)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(I)||e.unref(O)})),void 0,!0)])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(oe.default,{key:5,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:6,ref_key:"source",ref:A,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(le._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(re.default,{key:7,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(ae.DataTable,{key:`table_${E.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,ne))}},Fe=ue._export_sfc(Oe,[["__scopeId","data-v-6bb3bace"]]);exports.default=Fe;
|
|
@@ -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-Bya_q1J-.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-eFox7weK.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}"
|
|
@@ -0,0 +1,464 @@
|
|
|
1
|
+
import { ref as d, computed as g, onMounted as ie, watch as V, onBeforeUnmount as ce, openBlock as r, createElementBlock as n, normalizeClass as q, normalizeStyle as X, createBlock as k, createCommentVNode as u, unref as v, createSlots as he, withCtx as w, renderSlot as y, normalizeProps as I, guardReactiveProps as O, createVNode as ve, Fragment as H, renderList as z, createElementVNode as x, toDisplayString as L } from "vue";
|
|
2
|
+
import { u as de, o as ge, e as Y, g as fe, c as me, l as ye, C as pe, d as be, i as $, f as B, X as ke, t as we } from "./index-Bya_q1J-.js";
|
|
3
|
+
import { u as J } from "./useNestedProp-B33hazbH.js";
|
|
4
|
+
import { _ as xe } from "./Title-C5pIfQAz.js";
|
|
5
|
+
import { L as _e } from "./Legend-DNgTCgEK.js";
|
|
6
|
+
import { u as Ce, U as Le } from "./usePrinter-CiHd1FwD.js";
|
|
7
|
+
import { _ as $e } from "./PackageVersion-VkaUzgmt.js";
|
|
8
|
+
import { P as Be } from "./PenAndPaper-DAZYA8Ew.js";
|
|
9
|
+
import Ae from "./vue-ui-skeleton-BYssP0K4.js";
|
|
10
|
+
import { _ as Pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const Fe = ["id"], Se = ["xmlns", "viewBox"], Ie = { key: 0 }, Oe = ["x", "y", "height", "width", "fill", "stroke"], He = ["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"], Ne = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Te = { key: 3 }, Ue = ["x", "y", "fill", "font-size", "font-weight"], We = { key: 4 }, Ee = ["x1", "x2", "y1", "y2", "stroke"], Re = {
|
|
12
|
+
key: 4,
|
|
13
|
+
class: "vue-data-ui-watermark"
|
|
14
|
+
}, De = {
|
|
15
|
+
class: "vue-ui-bullet-legend-item",
|
|
16
|
+
dir: "auto"
|
|
17
|
+
}, Ge = { style: { "margin-right": "2px" } }, je = {
|
|
18
|
+
key: 6,
|
|
19
|
+
ref: "source",
|
|
20
|
+
dir: "auto"
|
|
21
|
+
}, Ve = {
|
|
22
|
+
__name: "vue-ui-bullet",
|
|
23
|
+
props: {
|
|
24
|
+
config: {
|
|
25
|
+
type: Object,
|
|
26
|
+
default() {
|
|
27
|
+
return {};
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
dataset: {
|
|
31
|
+
type: Object,
|
|
32
|
+
default() {
|
|
33
|
+
return {};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
setup(K, { expose: Q }) {
|
|
38
|
+
const o = K, { vue_ui_bullet: Z } = de(), A = d(null), ee = d(null), M = d(0), te = d(null), ae = d(0), f = g({
|
|
39
|
+
get: () => o.dataset.hasOwnProperty("value"),
|
|
40
|
+
set: (t) => t
|
|
41
|
+
}), p = g(() => o.dataset.segments ? Array.isArray(o.dataset.segments) ? o.dataset.segments.length ? !0 : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
42
|
+
|
|
43
|
+
segments: [
|
|
44
|
+
{
|
|
45
|
+
name: string;
|
|
46
|
+
from: number;
|
|
47
|
+
to: number;
|
|
48
|
+
color?: string;
|
|
49
|
+
},
|
|
50
|
+
{...}
|
|
51
|
+
]
|
|
52
|
+
`), f.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments must be an array of objects with this datastructure:
|
|
53
|
+
|
|
54
|
+
segments: [
|
|
55
|
+
{
|
|
56
|
+
name: string;
|
|
57
|
+
from: number;
|
|
58
|
+
to: number;
|
|
59
|
+
color?: string;
|
|
60
|
+
},
|
|
61
|
+
{...}
|
|
62
|
+
]
|
|
63
|
+
`), f.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
64
|
+
|
|
65
|
+
segments: [
|
|
66
|
+
{
|
|
67
|
+
name: string;
|
|
68
|
+
from: number;
|
|
69
|
+
to: number;
|
|
70
|
+
color?: string;
|
|
71
|
+
},
|
|
72
|
+
{...}
|
|
73
|
+
]
|
|
74
|
+
`), f.value = !1, !1));
|
|
75
|
+
ie(N);
|
|
76
|
+
function N() {
|
|
77
|
+
ge(o.dataset) ? Y({
|
|
78
|
+
componentName: "VueUiBullet",
|
|
79
|
+
type: "dataset"
|
|
80
|
+
}) : p.value ? o.dataset.segments.forEach((t, s) => {
|
|
81
|
+
fe({
|
|
82
|
+
datasetObject: t,
|
|
83
|
+
requiredAttributes: ["name", "from", "to"]
|
|
84
|
+
}).forEach((a) => {
|
|
85
|
+
f.value = !1, Y({
|
|
86
|
+
componentName: "VueUiBullet segment",
|
|
87
|
+
type: "datasetSerieAttribute",
|
|
88
|
+
property: a,
|
|
89
|
+
index: s
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
}) : f.value = !1, e.value.style.chart.animation.show && W(o.dataset.value || 0);
|
|
93
|
+
}
|
|
94
|
+
const P = d(me());
|
|
95
|
+
function T() {
|
|
96
|
+
const t = J({
|
|
97
|
+
userConfig: o.config,
|
|
98
|
+
defaultConfig: Z
|
|
99
|
+
});
|
|
100
|
+
return t.theme ? {
|
|
101
|
+
...J({
|
|
102
|
+
userConfig: we.vue_ui_bullet[t.theme] || o.config,
|
|
103
|
+
defaultConfig: t
|
|
104
|
+
})
|
|
105
|
+
} : t;
|
|
106
|
+
}
|
|
107
|
+
const e = g({
|
|
108
|
+
get: () => T(),
|
|
109
|
+
set: (t) => t
|
|
110
|
+
});
|
|
111
|
+
V(() => o.config, (t) => {
|
|
112
|
+
e.value = T(), N(), M.value += 1;
|
|
113
|
+
}, { deep: !0 });
|
|
114
|
+
const l = g(() => {
|
|
115
|
+
const t = e.value.style.chart.height, s = e.value.style.chart.width, a = e.value.style.chart.padding.left, m = s - e.value.style.chart.padding.right, C = e.value.style.chart.padding.top, h = t - e.value.style.chart.padding.bottom;
|
|
116
|
+
return {
|
|
117
|
+
height: t,
|
|
118
|
+
width: s,
|
|
119
|
+
left: a,
|
|
120
|
+
right: m,
|
|
121
|
+
top: C,
|
|
122
|
+
bottom: h,
|
|
123
|
+
chartWidth: m - a,
|
|
124
|
+
chartHeight: h - C
|
|
125
|
+
};
|
|
126
|
+
}), le = g(() => {
|
|
127
|
+
if (!p.value) return [];
|
|
128
|
+
const t = [];
|
|
129
|
+
for (let s = 0; s < o.dataset.segments.length; s += 1)
|
|
130
|
+
t.push(ye(e.value.style.chart.segments.baseColor, s / o.dataset.segments.length));
|
|
131
|
+
return t;
|
|
132
|
+
}), F = g(() => p.value ? {
|
|
133
|
+
min: Math.min(...o.dataset.segments.map((t) => t.from)),
|
|
134
|
+
max: Math.max(...o.dataset.segments.map((t) => t.to))
|
|
135
|
+
} : { min: 0, max: 1 }), i = d(se());
|
|
136
|
+
V(() => o.dataset, (t) => {
|
|
137
|
+
e.value.style.chart.animation.show ? W(t.value || 0) : i.value = t.value || 0;
|
|
138
|
+
}, { deep: !0 });
|
|
139
|
+
function se() {
|
|
140
|
+
return e.value.style.chart.animation.show ? F.value.min : o.dataset.value || 0;
|
|
141
|
+
}
|
|
142
|
+
const U = d(null);
|
|
143
|
+
function W(t) {
|
|
144
|
+
const s = Math.abs(t - i.value) / e.value.style.chart.animation.animationFrames;
|
|
145
|
+
function a() {
|
|
146
|
+
i.value < t ? i.value = Math.min(i.value + s, t) : i.value > t && (i.value = Math.max(i.value - s, t)), i.value !== t && (U.value = requestAnimationFrame(a));
|
|
147
|
+
}
|
|
148
|
+
a();
|
|
149
|
+
}
|
|
150
|
+
ce(() => {
|
|
151
|
+
cancelAnimationFrame(U.value);
|
|
152
|
+
});
|
|
153
|
+
const c = g(() => {
|
|
154
|
+
if (!p.value)
|
|
155
|
+
return [];
|
|
156
|
+
const t = pe(F.value.min, F.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
|
|
157
|
+
x: l.value.left + (o.dataset.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
|
|
158
|
+
}, m = {
|
|
159
|
+
width: (i.value + s) / (t.max + s) * l.value.chartWidth
|
|
160
|
+
}, C = t.ticks.map((h) => ({
|
|
161
|
+
value: h,
|
|
162
|
+
y: l.value.bottom + e.value.style.chart.segments.dataLabels.fontSize + 3 + e.value.style.chart.segments.dataLabels.offsetY,
|
|
163
|
+
x: l.value.left + (h + s) / (t.max + s) * l.value.chartWidth
|
|
164
|
+
}));
|
|
165
|
+
return {
|
|
166
|
+
scale: t,
|
|
167
|
+
target: a,
|
|
168
|
+
value: m,
|
|
169
|
+
ticks: C,
|
|
170
|
+
chunks: o.dataset.segments.map((h, ue) => ({
|
|
171
|
+
...h,
|
|
172
|
+
color: h.color ? be(h.color) : le.value[ue],
|
|
173
|
+
x: l.value.left + l.value.chartWidth * ((h.from + s) / (t.max + s)),
|
|
174
|
+
y: l.value.top,
|
|
175
|
+
height: l.value.chartHeight,
|
|
176
|
+
width: l.value.chartWidth * (Math.abs(h.to - h.from) / (t.max + s))
|
|
177
|
+
}))
|
|
178
|
+
};
|
|
179
|
+
}), E = g(() => !c.value || !c.value.chunks || !c.value.chunks.length ? [] : c.value.chunks.map((t) => {
|
|
180
|
+
const s = $(
|
|
181
|
+
e.value.style.chart.segments.dataLabels.formatter,
|
|
182
|
+
t.from,
|
|
183
|
+
B({
|
|
184
|
+
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
185
|
+
v: t.from,
|
|
186
|
+
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
187
|
+
r: e.value.style.chart.segments.dataLabels.rounding
|
|
188
|
+
})
|
|
189
|
+
), a = $(
|
|
190
|
+
e.value.style.chart.segments.dataLabels.formatter,
|
|
191
|
+
t.to,
|
|
192
|
+
B({
|
|
193
|
+
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
194
|
+
v: t.to,
|
|
195
|
+
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
196
|
+
r: e.value.style.chart.segments.dataLabels.rounding
|
|
197
|
+
})
|
|
198
|
+
);
|
|
199
|
+
return {
|
|
200
|
+
...t,
|
|
201
|
+
shape: "square",
|
|
202
|
+
value: `${s} - ${a}`
|
|
203
|
+
};
|
|
204
|
+
})), re = g(() => ({
|
|
205
|
+
cy: "bullet-div-legend",
|
|
206
|
+
backgroundColor: "transparent",
|
|
207
|
+
color: e.value.style.chart.legend.color,
|
|
208
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
209
|
+
paddingBottom: 6,
|
|
210
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
211
|
+
})), { isPrinting: R, isImaging: D, generatePdf: G, generateImage: j } = Ce({
|
|
212
|
+
elementId: `bullet_${P.value}`,
|
|
213
|
+
fileName: e.value.style.chart.title.text || "vue-ui-bullet"
|
|
214
|
+
}), b = d(!1);
|
|
215
|
+
function oe(t) {
|
|
216
|
+
b.value = t, ae.value += 1;
|
|
217
|
+
}
|
|
218
|
+
function ne() {
|
|
219
|
+
return c.value;
|
|
220
|
+
}
|
|
221
|
+
const _ = d(!1);
|
|
222
|
+
function S() {
|
|
223
|
+
_.value = !_.value;
|
|
224
|
+
}
|
|
225
|
+
return Q({
|
|
226
|
+
getData: ne,
|
|
227
|
+
generatePdf: G,
|
|
228
|
+
generateImage: j,
|
|
229
|
+
toggleAnnotator: S
|
|
230
|
+
}), (t, s) => (r(), n("div", {
|
|
231
|
+
ref_key: "bulletChart",
|
|
232
|
+
ref: A,
|
|
233
|
+
class: q(`vue-ui-bullet ${b.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
234
|
+
style: X(`font-family:${e.value.style.fontFamily};width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
235
|
+
id: `bullet_${P.value}`
|
|
236
|
+
}, [
|
|
237
|
+
e.value.userOptions.buttons.annotator ? (r(), k(Be, {
|
|
238
|
+
key: 0,
|
|
239
|
+
parent: A.value,
|
|
240
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
241
|
+
color: e.value.style.chart.color,
|
|
242
|
+
active: _.value,
|
|
243
|
+
onClose: S
|
|
244
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : u("", !0),
|
|
245
|
+
e.value.style.chart.title.text ? (r(), n("div", {
|
|
246
|
+
key: 1,
|
|
247
|
+
ref_key: "chartTitle",
|
|
248
|
+
ref: ee,
|
|
249
|
+
style: "width:100%;background:transparent;"
|
|
250
|
+
}, [
|
|
251
|
+
(r(), k(xe, {
|
|
252
|
+
lineHeight: "1.3rem",
|
|
253
|
+
key: `title_${M.value}`,
|
|
254
|
+
config: {
|
|
255
|
+
title: {
|
|
256
|
+
cy: "bullet-div-title",
|
|
257
|
+
...e.value.style.chart.title
|
|
258
|
+
},
|
|
259
|
+
subtitle: {
|
|
260
|
+
cy: "bullet-div-subtitle",
|
|
261
|
+
...e.value.style.chart.title.subtitle
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}, null, 8, ["config"]))
|
|
265
|
+
], 512)) : u("", !0),
|
|
266
|
+
e.value.userOptions.show && f.value ? (r(), k(Le, {
|
|
267
|
+
key: 2,
|
|
268
|
+
ref: "details",
|
|
269
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
270
|
+
color: e.value.style.chart.color,
|
|
271
|
+
isPrinting: v(R),
|
|
272
|
+
isImaging: v(D),
|
|
273
|
+
uid: P.value,
|
|
274
|
+
hasTooltip: !1,
|
|
275
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
276
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
277
|
+
hasXls: !1,
|
|
278
|
+
hasTable: !1,
|
|
279
|
+
hasLabel: !1,
|
|
280
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
281
|
+
isFullscreen: b.value,
|
|
282
|
+
chartElement: A.value,
|
|
283
|
+
position: e.value.userOptions.position,
|
|
284
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
285
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
286
|
+
isAnnotation: _.value,
|
|
287
|
+
onToggleFullscreen: oe,
|
|
288
|
+
onGeneratePdf: v(G),
|
|
289
|
+
onGenerateImage: v(j),
|
|
290
|
+
onToggleAnnotator: S
|
|
291
|
+
}, he({ _: 2 }, [
|
|
292
|
+
t.$slots.optionPdf ? {
|
|
293
|
+
name: "optionPdf",
|
|
294
|
+
fn: w(() => [
|
|
295
|
+
y(t.$slots, "optionPdf", {}, void 0, !0)
|
|
296
|
+
]),
|
|
297
|
+
key: "0"
|
|
298
|
+
} : void 0,
|
|
299
|
+
t.$slots.optionImg ? {
|
|
300
|
+
name: "optionImg",
|
|
301
|
+
fn: w(() => [
|
|
302
|
+
y(t.$slots, "optionImg", {}, void 0, !0)
|
|
303
|
+
]),
|
|
304
|
+
key: "1"
|
|
305
|
+
} : void 0,
|
|
306
|
+
t.$slots.optionFullscreen ? {
|
|
307
|
+
name: "optionFullscreen",
|
|
308
|
+
fn: w(({ toggleFullscreen: a, isFullscreen: m }) => [
|
|
309
|
+
y(t.$slots, "optionFullscreen", I(O({ toggleFullscreen: a, isFullscreen: m })), void 0, !0)
|
|
310
|
+
]),
|
|
311
|
+
key: "2"
|
|
312
|
+
} : void 0,
|
|
313
|
+
t.$slots.optionAnnotator ? {
|
|
314
|
+
name: "optionAnnotator",
|
|
315
|
+
fn: w(({ toggleAnnotator: a, isAnnotator: m }) => [
|
|
316
|
+
y(t.$slots, "optionAnnotator", I(O({ toggleAnnotator: a, isAnnotator: m })), void 0, !0)
|
|
317
|
+
]),
|
|
318
|
+
key: "3"
|
|
319
|
+
} : void 0
|
|
320
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : u("", !0),
|
|
321
|
+
f.value ? (r(), n("svg", {
|
|
322
|
+
key: 3,
|
|
323
|
+
xmlns: v(ke),
|
|
324
|
+
class: q({ "vue-data-ui-fullscreen--on": b.value, "vue-data-ui-fulscreen--off": !b.value, "vue-ui-bullet-svg": !0 }),
|
|
325
|
+
viewBox: `0 0 ${l.value.width} ${l.value.height}`,
|
|
326
|
+
style: X(`width: 100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
327
|
+
}, [
|
|
328
|
+
ve($e),
|
|
329
|
+
p.value ? (r(), n("g", Ie, [
|
|
330
|
+
(r(!0), n(H, null, z(c.value.chunks, (a) => (r(), n("rect", {
|
|
331
|
+
x: a.x,
|
|
332
|
+
y: a.y,
|
|
333
|
+
height: a.height,
|
|
334
|
+
width: a.width,
|
|
335
|
+
fill: a.color,
|
|
336
|
+
"stroke-width": 1,
|
|
337
|
+
stroke: e.value.style.chart.backgroundColor
|
|
338
|
+
}, null, 8, Oe))), 256)),
|
|
339
|
+
e.value.style.chart.target.onTop ? u("", !0) : (r(), n("rect", {
|
|
340
|
+
key: 0,
|
|
341
|
+
x: c.value.target.x,
|
|
342
|
+
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
|
|
343
|
+
height: l.value.chartHeight * e.value.style.chart.target.heightRatio,
|
|
344
|
+
width: e.value.style.chart.target.width,
|
|
345
|
+
rx: e.value.style.chart.target.rounded ? e.value.style.chart.target.width / 2 : 0,
|
|
346
|
+
fill: e.value.style.chart.target.color,
|
|
347
|
+
stroke: e.value.style.chart.target.stroke,
|
|
348
|
+
"stroke-width": e.value.style.chart.target.strokeWidth
|
|
349
|
+
}, null, 8, He)),
|
|
350
|
+
x("rect", {
|
|
351
|
+
x: l.value.left,
|
|
352
|
+
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.valueBar.heightRatio) / 2,
|
|
353
|
+
height: l.value.chartHeight * e.value.style.chart.valueBar.heightRatio,
|
|
354
|
+
width: c.value.value.width,
|
|
355
|
+
fill: e.value.style.chart.valueBar.color,
|
|
356
|
+
stroke: e.value.style.chart.valueBar.stroke,
|
|
357
|
+
"stroke-width": e.value.style.chart.valueBar.strokeWidth
|
|
358
|
+
}, null, 8, ze),
|
|
359
|
+
e.value.style.chart.valueBar.label.show ? (r(), n("text", {
|
|
360
|
+
key: 1,
|
|
361
|
+
x: l.value.left + c.value.value.width,
|
|
362
|
+
y: l.value.top - 6 + e.value.style.chart.valueBar.label.offsetY,
|
|
363
|
+
"font-size": e.value.style.chart.valueBar.label.fontSize,
|
|
364
|
+
"font-weight": e.value.style.chart.valueBar.label.bold ? "bold" : "normal",
|
|
365
|
+
fill: e.value.style.chart.valueBar.label.color,
|
|
366
|
+
"text-anchor": "middle"
|
|
367
|
+
}, L(v($)(
|
|
368
|
+
e.value.style.chart.segments.dataLabels.formatter,
|
|
369
|
+
i.value,
|
|
370
|
+
v(B)({
|
|
371
|
+
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
372
|
+
v: i.value,
|
|
373
|
+
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
374
|
+
r: e.value.style.chart.segments.dataLabels.rounding
|
|
375
|
+
})
|
|
376
|
+
)), 9, Me)) : u("", !0),
|
|
377
|
+
e.value.style.chart.target.onTop ? (r(), n("rect", {
|
|
378
|
+
key: 2,
|
|
379
|
+
x: c.value.target.x,
|
|
380
|
+
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
|
|
381
|
+
height: l.value.chartHeight * e.value.style.chart.target.heightRatio,
|
|
382
|
+
width: e.value.style.chart.target.width,
|
|
383
|
+
rx: e.value.style.chart.target.rounded ? e.value.style.chart.target.width / 2 : 0,
|
|
384
|
+
fill: e.value.style.chart.target.color,
|
|
385
|
+
stroke: e.value.style.chart.target.stroke,
|
|
386
|
+
"stroke-width": e.value.style.chart.target.strokeWidth
|
|
387
|
+
}, null, 8, Ne)) : u("", !0),
|
|
388
|
+
e.value.style.chart.segments.dataLabels.show ? (r(), n("g", Te, [
|
|
389
|
+
(r(!0), n(H, null, z(c.value.ticks, (a) => (r(), n("text", {
|
|
390
|
+
x: a.x,
|
|
391
|
+
y: a.y,
|
|
392
|
+
"text-anchor": "middle",
|
|
393
|
+
fill: e.value.style.chart.segments.dataLabels.color,
|
|
394
|
+
"font-size": e.value.style.chart.segments.dataLabels.fontSize + "px",
|
|
395
|
+
"font-weight": e.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
|
|
396
|
+
}, L(v($)(
|
|
397
|
+
e.value.style.chart.segments.dataLabels.formatter,
|
|
398
|
+
a.value,
|
|
399
|
+
v(B)({
|
|
400
|
+
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
401
|
+
v: a.value,
|
|
402
|
+
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
403
|
+
r: e.value.style.chart.segments.dataLabels.rounding
|
|
404
|
+
})
|
|
405
|
+
)), 9, Ue))), 256))
|
|
406
|
+
])) : u("", !0),
|
|
407
|
+
e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (r(), n("g", We, [
|
|
408
|
+
(r(!0), n(H, null, z(c.value.ticks, (a) => (r(), n("line", {
|
|
409
|
+
x1: a.x,
|
|
410
|
+
x2: a.x,
|
|
411
|
+
y1: l.value.bottom,
|
|
412
|
+
y2: l.value.bottom + 3,
|
|
413
|
+
stroke: e.value.style.chart.segments.ticks.stroke,
|
|
414
|
+
"stroke-width": 1,
|
|
415
|
+
"stroke-linecap": "round"
|
|
416
|
+
}, null, 8, Ee))), 256))
|
|
417
|
+
])) : u("", !0)
|
|
418
|
+
])) : u("", !0),
|
|
419
|
+
y(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
420
|
+
], 14, Se)) : u("", !0),
|
|
421
|
+
t.$slots.watermark ? (r(), n("div", Re, [
|
|
422
|
+
y(t.$slots, "watermark", I(O({ isPrinting: v(R) || v(D) })), void 0, !0)
|
|
423
|
+
])) : u("", !0),
|
|
424
|
+
f.value ? u("", !0) : (r(), k(Ae, {
|
|
425
|
+
key: 5,
|
|
426
|
+
config: {
|
|
427
|
+
type: "bullet",
|
|
428
|
+
style: {
|
|
429
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
430
|
+
bullet: {
|
|
431
|
+
color: "#CCCCCC"
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
}, null, 8, ["config"])),
|
|
436
|
+
x("div", {
|
|
437
|
+
ref_key: "chartLegend",
|
|
438
|
+
ref: te
|
|
439
|
+
}, [
|
|
440
|
+
e.value.style.chart.legend.show ? (r(), k(_e, {
|
|
441
|
+
key: 0,
|
|
442
|
+
clickable: !1,
|
|
443
|
+
legendSet: E.value,
|
|
444
|
+
config: re.value
|
|
445
|
+
}, {
|
|
446
|
+
item: w(({ legend: a }) => [
|
|
447
|
+
x("div", De, [
|
|
448
|
+
x("span", Ge, L(a.name) + ":", 1),
|
|
449
|
+
x("span", null, L(a.value), 1)
|
|
450
|
+
])
|
|
451
|
+
]),
|
|
452
|
+
_: 1
|
|
453
|
+
}, 8, ["legendSet", "config"])) : u("", !0),
|
|
454
|
+
y(t.$slots, "legend", { legend: E.value }, void 0, !0)
|
|
455
|
+
], 512),
|
|
456
|
+
t.$slots.source ? (r(), n("div", je, [
|
|
457
|
+
y(t.$slots, "source", {}, void 0, !0)
|
|
458
|
+
], 512)) : u("", !0)
|
|
459
|
+
], 14, Fe));
|
|
460
|
+
}
|
|
461
|
+
}, lt = /* @__PURE__ */ Pe(Ve, [["__scopeId", "data-v-abcb34e3"]]);
|
|
462
|
+
export {
|
|
463
|
+
lt as default
|
|
464
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-eFox7weK.cjs"),$=require("./useNestedProp-BkgEhTQY.cjs"),R=require("./Title-0Tp4hZ4u.cjs"),j=require("./Legend-Cgw4lO2O.cjs"),V=require("./usePrinter-CSRFnDBU.cjs"),G=require("./PackageVersion-DwI-KhXH.cjs"),X=require("./PenAndPaper-CDFVOo7X.cjs"),Y=require("./vue-ui-skeleton-BqKzuhkB.cjs"),J=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),K=["id"],Q=["xmlns","viewBox"],Z={key:0},ee=["x","y","height","width","fill","stroke"],te=["x","y","height","width","rx","fill","stroke","stroke-width"],ae=["x","y","height","width","fill","stroke","stroke-width"],le=["x","y","font-size","font-weight","fill"],re=["x","y","height","width","rx","fill","stroke","stroke-width"],oe={key:3},se=["x","y","fill","font-size","font-weight"],ne={key:4},ue=["x1","x2","y1","y2","stroke"],ie={key:4,class:"vue-data-ui-watermark"},ce={class:"vue-ui-bullet-legend-item",dir:"auto"},de={style:{"margin-right":"2px"}},he={key:6,ref:"source",dir:"auto"},ve={__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:I}=s.useConfig(),y=e.ref(null),z=e.ref(null),w=e.ref(0),O=e.ref(null),H=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
|
+
|
|
3
|
+
segments: [
|
|
4
|
+
{
|
|
5
|
+
name: string;
|
|
6
|
+
from: number;
|
|
7
|
+
to: number;
|
|
8
|
+
color?: string;
|
|
9
|
+
},
|
|
10
|
+
{...}
|
|
11
|
+
]
|
|
12
|
+
`),d.value=!1,!1):(console.warn(`VueUiBullet: dataset segments must be an array of objects with this datastructure:
|
|
13
|
+
|
|
14
|
+
segments: [
|
|
15
|
+
{
|
|
16
|
+
name: string;
|
|
17
|
+
from: number;
|
|
18
|
+
to: number;
|
|
19
|
+
color?: string;
|
|
20
|
+
},
|
|
21
|
+
{...}
|
|
22
|
+
]
|
|
23
|
+
`),d.value=!1,!1):(console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
24
|
+
|
|
25
|
+
segments: [
|
|
26
|
+
{
|
|
27
|
+
name: string;
|
|
28
|
+
from: number;
|
|
29
|
+
to: number;
|
|
30
|
+
color?: string;
|
|
31
|
+
},
|
|
32
|
+
{...}
|
|
33
|
+
]
|
|
34
|
+
`),d.value=!1,!1));e.onMounted(B);function B(){s.objectIsEmpty(n.dataset)?s.error({componentName:"VueUiBullet",type:"dataset"}):v.value?n.dataset.segments.forEach((a,o)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","from","to"]}).forEach(l=>{d.value=!1,s.error({componentName:"VueUiBullet segment",type:"datasetSerieAttribute",property:l,index:o})})}):d.value=!1,t.value.style.chart.animation.show&&_(n.dataset.value||0)}const p=e.ref(s.createUid());function x(){const a=$.useNestedProp({userConfig:n.config,defaultConfig:I});return a.theme?{...$.useNestedProp({userConfig:s.themes.vue_ui_bullet[a.theme]||n.config,defaultConfig:a})}:a}const t=e.computed({get:()=>x(),set:a=>a});e.watch(()=>n.config,a=>{t.value=x(),B(),w.value+=1},{deep:!0});const r=e.computed(()=>{const a=t.value.style.chart.height,o=t.value.style.chart.width,l=t.value.style.chart.padding.left,h=o-t.value.style.chart.padding.right,f=t.value.style.chart.padding.top,c=a-t.value.style.chart.padding.bottom;return{height:a,width:o,left:l,right:h,top:f,bottom:c,chartWidth:h-l,chartHeight:c-f}}),T=e.computed(()=>{if(!v.value)return[];const a=[];for(let o=0;o<n.dataset.segments.length;o+=1)a.push(s.lightenHexColor(t.value.style.chart.segments.baseColor,o/n.dataset.segments.length));return a}),k=e.computed(()=>v.value?{min:Math.min(...n.dataset.segments.map(a=>a.from)),max:Math.max(...n.dataset.segments.map(a=>a.to))}:{min:0,max:1}),u=e.ref(q());e.watch(()=>n.dataset,a=>{t.value.style.chart.animation.show?_(a.value||0):u.value=a.value||0},{deep:!0});function q(){return t.value.style.chart.animation.show?k.value.min:n.dataset.value||0}const C=e.ref(null);function _(a){const o=Math.abs(a-u.value)/t.value.style.chart.animation.animationFrames;function l(){u.value<a?u.value=Math.min(u.value+o,a):u.value>a&&(u.value=Math.max(u.value-o,a)),u.value!==a&&(C.value=requestAnimationFrame(l))}l()}e.onBeforeUnmount(()=>{cancelAnimationFrame(C.value)});const i=e.computed(()=>{if(!v.value)return[];const a=s.calculateNiceScale(k.value.min,k.value.max,t.value.style.chart.segments.ticks.divisions),o=a.min>=0?0:Math.abs(a.min),l={x:r.value.left+(n.dataset.target+o)/(a.max+o)*r.value.chartWidth-t.value.style.chart.target.width/2},h={width:(u.value+o)/(a.max+o)*r.value.chartWidth},f=a.ticks.map(c=>({value:c,y:r.value.bottom+t.value.style.chart.segments.dataLabels.fontSize+3+t.value.style.chart.segments.dataLabels.offsetY,x:r.value.left+(c+o)/(a.max+o)*r.value.chartWidth}));return{scale:a,target:l,value:h,ticks:f,chunks:n.dataset.segments.map((c,W)=>({...c,color:c.color?s.convertColorToHex(c.color):T.value[W],x:r.value.left+r.value.chartWidth*((c.from+o)/(a.max+o)),y:r.value.top,height:r.value.chartHeight,width:r.value.chartWidth*(Math.abs(c.to-c.from)/(a.max+o))}))}}),L=e.computed(()=>!i.value||!i.value.chunks||!i.value.chunks.length?[]:i.value.chunks.map(a=>{const o=s.applyDataLabel(t.value.style.chart.segments.dataLabels.formatter,a.from,s.dataLabel({p:t.value.style.chart.segments.dataLabels.prefix,v:a.from,s:t.value.style.chart.segments.dataLabels.suffix,r:t.value.style.chart.segments.dataLabels.rounding})),l=s.applyDataLabel(t.value.style.chart.segments.dataLabels.formatter,a.to,s.dataLabel({p:t.value.style.chart.segments.dataLabels.prefix,v:a.to,s:t.value.style.chart.segments.dataLabels.suffix,r:t.value.style.chart.segments.dataLabels.rounding}));return{...a,shape:"square",value:`${o} - ${l}`}})),M=e.computed(()=>({cy:"bullet-div-legend",backgroundColor:"transparent",color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:6,fontWeight:t.value.style.chart.legend.bold?"bold":""})),{isPrinting:P,isImaging:N,generatePdf:S,generateImage:E}=V.usePrinter({elementId:`bullet_${p.value}`,fileName:t.value.style.chart.title.text||"vue-ui-bullet"}),m=e.ref(!1);function D(a){m.value=a,H.value+=1}function U(){return i.value}const g=e.ref(!1);function b(){g.value=!g.value}return F({getData:U,generatePdf:S,generateImage:E,toggleAnnotator:b}),(a,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"bulletChart",ref:y,class:e.normalizeClass(`vue-ui-bullet ${m.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%;background:${t.value.style.chart.backgroundColor}`),id:`bullet_${p.value}`},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(X.PenAndPaper,{key:0,parent:y.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:g.value,onClose:b},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:z,style:"width:100%;background:transparent;"},[(e.openBlock(),e.createBlock(R._sfc_main,{lineHeight:"1.3rem",key:`title_${w.value}`,config:{title:{cy:"bullet-div-title",...t.value.style.chart.title},subtitle:{cy:"bullet-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&d.value?(e.openBlock(),e.createBlock(V.UserOptions,{key:2,ref:"details",backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(P),isImaging:e.unref(N),uid:p.value,hasTooltip:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:!1,hasTable:!1,hasLabel:!1,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:m.value,chartElement:y.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:g.value,onToggleFullscreen:D,onGeneratePdf:e.unref(S),onGenerateImage:e.unref(E),onToggleAnnotator:b},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:h})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:h})),void 0,!0)]),key:"2"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:h})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:h})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","chartElement","position","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":m.value,"vue-data-ui-fulscreen--off":!m.value,"vue-ui-bullet-svg":!0}),viewBox:`0 0 ${r.value.width} ${r.value.height}`,style:e.normalizeStyle(`width: 100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(G._sfc_main),v.value?(e.openBlock(),e.createElementBlock("g",Z,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.chunks,l=>(e.openBlock(),e.createElementBlock("rect",{x:l.x,y:l.y,height:l.height,width:l.width,fill:l.color,"stroke-width":1,stroke:t.value.style.chart.backgroundColor},null,8,ee))),256)),t.value.style.chart.target.onTop?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("rect",{key:0,x:i.value.target.x,y:r.value.top+(r.value.chartHeight-r.value.chartHeight*t.value.style.chart.target.heightRatio)/2,height:r.value.chartHeight*t.value.style.chart.target.heightRatio,width:t.value.style.chart.target.width,rx:t.value.style.chart.target.rounded?t.value.style.chart.target.width/2:0,fill:t.value.style.chart.target.color,stroke:t.value.style.chart.target.stroke,"stroke-width":t.value.style.chart.target.strokeWidth},null,8,te)),e.createElementVNode("rect",{x:r.value.left,y:r.value.top+(r.value.chartHeight-r.value.chartHeight*t.value.style.chart.valueBar.heightRatio)/2,height:r.value.chartHeight*t.value.style.chart.valueBar.heightRatio,width:i.value.value.width,fill:t.value.style.chart.valueBar.color,stroke:t.value.style.chart.valueBar.stroke,"stroke-width":t.value.style.chart.valueBar.strokeWidth},null,8,ae),t.value.style.chart.valueBar.label.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:r.value.left+i.value.value.width,y:r.value.top-6+t.value.style.chart.valueBar.label.offsetY,"font-size":t.value.style.chart.valueBar.label.fontSize,"font-weight":t.value.style.chart.valueBar.label.bold?"bold":"normal",fill:t.value.style.chart.valueBar.label.color,"text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.segments.dataLabels.formatter,u.value,e.unref(s.dataLabel)({p:t.value.style.chart.segments.dataLabels.prefix,v:u.value,s:t.value.style.chart.segments.dataLabels.suffix,r:t.value.style.chart.segments.dataLabels.rounding}))),9,le)):e.createCommentVNode("",!0),t.value.style.chart.target.onTop?(e.openBlock(),e.createElementBlock("rect",{key:2,x:i.value.target.x,y:r.value.top+(r.value.chartHeight-r.value.chartHeight*t.value.style.chart.target.heightRatio)/2,height:r.value.chartHeight*t.value.style.chart.target.heightRatio,width:t.value.style.chart.target.width,rx:t.value.style.chart.target.rounded?t.value.style.chart.target.width/2:0,fill:t.value.style.chart.target.color,stroke:t.value.style.chart.target.stroke,"stroke-width":t.value.style.chart.target.strokeWidth},null,8,re)):e.createCommentVNode("",!0),t.value.style.chart.segments.dataLabels.show?(e.openBlock(),e.createElementBlock("g",oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.ticks,l=>(e.openBlock(),e.createElementBlock("text",{x:l.x,y:l.y,"text-anchor":"middle",fill:t.value.style.chart.segments.dataLabels.color,"font-size":t.value.style.chart.segments.dataLabels.fontSize+"px","font-weight":t.value.style.chart.segments.dataLabels.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.segments.dataLabels.formatter,l.value,e.unref(s.dataLabel)({p:t.value.style.chart.segments.dataLabels.prefix,v:l.value,s:t.value.style.chart.segments.dataLabels.suffix,r:t.value.style.chart.segments.dataLabels.rounding}))),9,se))),256))])):e.createCommentVNode("",!0),t.value.style.chart.segments.dataLabels.show&&t.value.style.chart.segments.ticks.show?(e.openBlock(),e.createElementBlock("g",ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.ticks,l=>(e.openBlock(),e.createElementBlock("line",{x1:l.x,x2:l.x,y1:r.value.bottom,y2:r.value.bottom+3,stroke:t.value.style.chart.segments.ticks.stroke,"stroke-width":1,"stroke-linecap":"round"},null,8,ue))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:r.value},void 0,!0)],14,Q)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ie,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(P)||e.unref(N)})),void 0,!0)])):e.createCommentVNode("",!0),d.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Y.default,{key:5,config:{type:"bullet",style:{backgroundColor:t.value.style.chart.backgroundColor,bullet:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:O},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(j.Legend,{key:0,clickable:!1,legendSet:L.value,config:M.value},{item:e.withCtx(({legend:l})=>[e.createElementVNode("div",ce,[e.createElementVNode("span",de,e.toDisplayString(l.name)+":",1),e.createElementVNode("span",null,e.toDisplayString(l.value),1)])]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:L.value},void 0,!0)],512),a.$slots.source?(e.openBlock(),e.createElementBlock("div",he,[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],14,K))}},me=J._export_sfc(ve,[["__scopeId","data-v-abcb34e3"]]);exports.default=me;
|