vue-data-ui 2.7.0 → 2.7.1
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-Tcvy-1tf.js → Arrow-BTKw6r9B.js} +1 -1
- package/dist/{Arrow-q4elsfyi.cjs → Arrow-sEenfS8R.cjs} +1 -1
- package/dist/{BaseIcon-BSkS89RT.js → BaseIcon-DnLYMp6l.js} +1 -1
- package/dist/{BaseIcon-wuetMnRj.cjs → BaseIcon-DnyvDfd_.cjs} +1 -1
- package/dist/{ColorPicker-BsF6StNh.cjs → ColorPicker-9DFhTw_f.cjs} +1 -1
- package/dist/{ColorPicker-B-UF8Xdm.js → ColorPicker-C6lNE5YG.js} +3 -3
- package/dist/{DataTable-CxPPog04.cjs → DataTable-CngiZztx.cjs} +1 -1
- package/dist/{DataTable-DRB6Rt3T.js → DataTable-CqmM6dKK.js} +2 -2
- package/dist/{Legend-DACz926s.js → Legend-2egPeIm_.js} +2 -2
- package/dist/{Legend-BiZSIl_8.cjs → Legend-CYRB328N.cjs} +1 -1
- package/dist/{PackageVersion-iM0N7imM.js → PackageVersion-CwdFBcJ8.js} +3 -3
- package/dist/PackageVersion-yffL-jfv.cjs +1 -0
- package/dist/{PenAndPaper-Cnh7VAnd.js → PenAndPaper--UiqgX9J.js} +3 -3
- package/dist/{PenAndPaper-D4YVLZC3.cjs → PenAndPaper-CN2oty-x.cjs} +1 -1
- package/dist/{Shape-BlqLhJkb.js → Shape-BpeBdbVN.js} +1 -1
- package/dist/{Shape-fiDmogTF.cjs → Shape-CUqYvf42.cjs} +1 -1
- package/dist/{Slicer-BxsQavxP.cjs → Slicer-BgcqkoSq.cjs} +1 -1
- package/dist/{Slicer-B6gtffPg.js → Slicer-D1W5yNMr.js} +2 -2
- package/dist/{Title-BnbtlZuQ.js → Title-D-MrSzZ9.js} +1 -1
- package/dist/{Title-ftVcKm8j.cjs → Title-DIthuQxK.cjs} +1 -1
- package/dist/{Tooltip-BaCjRGR8.js → Tooltip-CB3FSZI5.js} +1 -1
- package/dist/{Tooltip-Dvq8qMfG.cjs → Tooltip-D43-t32P.cjs} +1 -1
- package/dist/{dom-to-png-DkmDo75x.js → dom-to-png-5VOUqviC.js} +1 -1
- package/dist/{dom-to-png-DBqUgTmu.cjs → dom-to-png-BJwSQsyy.cjs} +1 -1
- package/dist/{img-DQpd_5yO.cjs → img-BfzPdY_5.cjs} +1 -1
- package/dist/{img-U95ptFho.js → img-DuSrtdjC.js} +1 -1
- package/dist/{index-D-HIb4Mn.js → index-A6avPZLy.js} +1 -1
- package/dist/{index-D5k9fip1.cjs → index-BkB2NdNK.cjs} +1 -1
- package/dist/{pdf-XZ9tIX1c.cjs → pdf-BgE_moLQ.cjs} +1 -1
- package/dist/{pdf-D2ouSvO-.js → pdf-DjL_T4XI.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CpW5Z_Ke.cjs → useNestedProp-BPS6WHYi.cjs} +1 -1
- package/dist/{useNestedProp-qC6DmhPQ.js → useNestedProp-CcohWUPI.js} +1 -1
- package/dist/{usePrinter-Dur-51db.js → usePrinter-B6swu4OY.js} +3 -3
- package/dist/{usePrinter-DCjcVk63.cjs → usePrinter-Bn2DXY9B.cjs} +1 -1
- package/dist/{vue-data-ui-fow8gtsn.js → vue-data-ui-B80lDfFi.js} +60 -60
- package/dist/{vue-data-ui-ozZctcYD.cjs → vue-data-ui-BsseA1is.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-C_JTgO_-.js → vue-ui-3d-bar-CcFHL1qI.js} +106 -106
- package/dist/{vue-ui-3d-bar-DTlVayO8.cjs → vue-ui-3d-bar-DcrMP_O7.cjs} +2 -2
- package/dist/{vue-ui-accordion-qmHz6V_f.js → vue-ui-accordion-B_xjSc0r.js} +3 -3
- package/dist/{vue-ui-accordion-BiVdHPDv.cjs → vue-ui-accordion-CGoz8eg6.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BtqOmeDs.js → vue-ui-age-pyramid-AXVyoK6L.js} +10 -10
- package/dist/{vue-ui-age-pyramid-DbCnCy8z.cjs → vue-ui-age-pyramid-BCNi5bGZ.cjs} +1 -1
- package/dist/{vue-ui-annotator-CsZ_WLwo.js → vue-ui-annotator-BXvnhWt_.js} +2 -2
- package/dist/{vue-ui-annotator-DX-Zq2VD.cjs → vue-ui-annotator-BtNdaDFA.cjs} +1 -1
- package/dist/{vue-ui-bullet-BqOvmlj_.cjs → vue-ui-bullet-CQxs2TaZ.cjs} +1 -1
- package/dist/{vue-ui-bullet-DtYQOm8x.js → vue-ui-bullet-DRXo5EpT.js} +8 -8
- package/dist/{vue-ui-candlestick-CY0LcjNv.cjs → vue-ui-candlestick-3nGxvy8S.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Bpd4Brzf.js → vue-ui-candlestick-BpqYCJVJ.js} +11 -11
- package/dist/{vue-ui-carousel-table-CddMetKf.cjs → vue-ui-carousel-table-BYXPK4gh.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-C8_Ps2Zt.js → vue-ui-carousel-table-YrKkEqX7.js} +4 -4
- package/dist/{vue-ui-chestnut-BpSKsoin.js → vue-ui-chestnut-C25jWRRE.js} +8 -8
- package/dist/{vue-ui-chestnut-BwXukm4F.cjs → vue-ui-chestnut-FQoFMnGd.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-BUlUJ_wP.cjs → vue-ui-circle-pack-CD8-rMNk.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-CfED_zMB.js → vue-ui-circle-pack-PLHydEfP.js} +9 -9
- package/dist/{vue-ui-cursor-B5oQgTgE.js → vue-ui-cursor-CRb53VBn.js} +2 -2
- package/dist/{vue-ui-cursor-wiDFjlo1.cjs → vue-ui-cursor-nwZ7x8lx.cjs} +1 -1
- package/dist/{vue-ui-dashboard-By0Ava-e.js → vue-ui-dashboard-5frkuD5u.js} +3 -3
- package/dist/{vue-ui-dashboard-tFgwPorT.cjs → vue-ui-dashboard-Bh3_EFPN.cjs} +1 -1
- package/dist/{vue-ui-digits-DVhsYo-l.js → vue-ui-digits-CDviNXaL.js} +2 -2
- package/dist/{vue-ui-digits-C8E4WW3j.cjs → vue-ui-digits-DoTiNrVN.cjs} +1 -1
- package/dist/{vue-ui-donut-DuJGngc8.cjs → vue-ui-donut-BcszyS6r.cjs} +1 -1
- package/dist/{vue-ui-donut-D03p4xQ2.js → vue-ui-donut-CNNRNtzQ.js} +12 -12
- package/dist/{vue-ui-donut-evolution-Ck8bjo-j.js → vue-ui-donut-evolution-CHik7Z_g.js} +11 -11
- package/dist/{vue-ui-donut-evolution-jBUX8vo1.cjs → vue-ui-donut-evolution-DfPyKT8R.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-B1jv_9OG.js → vue-ui-dumbbell-CgwlIofy.js} +10 -10
- package/dist/{vue-ui-dumbbell-DDDCgty2.cjs → vue-ui-dumbbell-D2UJtygq.cjs} +1 -1
- package/dist/{vue-ui-flow-CjlFZAXS.cjs → vue-ui-flow-D6JFBrIX.cjs} +1 -1
- package/dist/{vue-ui-flow-DW_Yxbmf.js → vue-ui-flow-rDb1-sH0.js} +9 -9
- package/dist/{vue-ui-funnel-rUNRbe1S.js → vue-ui-funnel-B6bLvPa_.js} +9 -9
- package/dist/{vue-ui-funnel-CdXskLpT.cjs → vue-ui-funnel-BY0tWmrS.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DZRdJjEL.cjs → vue-ui-galaxy-B_52sAx2.cjs} +1 -1
- package/dist/{vue-ui-galaxy-D-d6BrEQ.js → vue-ui-galaxy-DckvTL3q.js} +11 -11
- package/dist/{vue-ui-gauge-CJqfHd1V.js → vue-ui-gauge-C2LiUQBN.js} +7 -7
- package/dist/{vue-ui-gauge-utVziwmC.cjs → vue-ui-gauge-Cs7mUhqe.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BSYmNV2r.cjs → vue-ui-gizmo-BpzuY03-.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BJeFSq_h.js → vue-ui-gizmo-WAsThdrY.js} +3 -3
- package/dist/{vue-ui-heatmap-AOtOaNf0.cjs → vue-ui-heatmap-CGK5-uSo.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BYWReIi3.js → vue-ui-heatmap-DJB3RODU.js} +10 -10
- package/dist/{vue-ui-history-plot-BORIs9Ia.cjs → vue-ui-history-plot-CZCGVMtm.cjs} +1 -1
- package/dist/{vue-ui-history-plot-OJbA6a9W.js → vue-ui-history-plot-UwqNF7IY.js} +11 -11
- package/dist/{vue-ui-kpi-mzJ2Wwsd.cjs → vue-ui-kpi-COSK1X00.cjs} +1 -1
- package/dist/{vue-ui-kpi-ZRPbK9Xb.js → vue-ui-kpi-DGwMrY-1.js} +3 -3
- package/dist/{vue-ui-mini-loader-BDpn3tU3.cjs → vue-ui-mini-loader-CiDr-Ata.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BpF3Gk95.js → vue-ui-mini-loader-wC1Se-5k.js} +2 -2
- package/dist/{vue-ui-molecule-BNKBlCuv.js → vue-ui-molecule-DB8vn7Ud.js} +11 -11
- package/dist/{vue-ui-molecule-n2XcQwWm.cjs → vue-ui-molecule-R-yZGvaP.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-D7i4XkJ7.cjs → vue-ui-mood-radar-B4V2v62P.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DkDCTTGe.js → vue-ui-mood-radar-DeLXvSPU.js} +11 -11
- package/dist/{vue-ui-nested-donuts-COztgojn.cjs → vue-ui-nested-donuts-CsvNzTz6.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-B10sUIYh.js → vue-ui-nested-donuts-PgGg2Jah.js} +11 -11
- package/dist/{vue-ui-onion-DS8IMdbv.cjs → vue-ui-onion-DCHNA84o.cjs} +1 -1
- package/dist/{vue-ui-onion-Dm0gIaEo.js → vue-ui-onion-DZAkMkto.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-BARHF8if.js → vue-ui-parallel-coordinate-plot-Bxjxz4LI.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-DxyZ61ji.cjs → vue-ui-parallel-coordinate-plot-Drm4BFOT.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CwRmXD1e.cjs → vue-ui-quadrant-D5anVEqh.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DEy0EDw0.js → vue-ui-quadrant-nheekDou.js} +12 -12
- package/dist/{vue-ui-quick-chart-cQQXRntN.cjs → vue-ui-quick-chart-2-oPKc1z.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CIukip1j.js → vue-ui-quick-chart-BpQr6koy.js} +9 -9
- package/dist/{vue-ui-radar-bY3aBAJt.js → vue-ui-radar-BH3cHleE.js} +12 -12
- package/dist/{vue-ui-radar-BBW5S8Yt.cjs → vue-ui-radar-Crx4uENB.cjs} +1 -1
- package/dist/{vue-ui-rating-BrcdA_Ez.cjs → vue-ui-rating-CHbI6v-k.cjs} +1 -1
- package/dist/{vue-ui-rating-oiBRruzk.js → vue-ui-rating-lZe0UltX.js} +2 -2
- package/dist/{vue-ui-relation-circle-Cz4V-P4-.js → vue-ui-relation-circle-D3dCS2lC.js} +7 -7
- package/dist/{vue-ui-relation-circle-BIwMG6fK.cjs → vue-ui-relation-circle-DMuA1Jqp.cjs} +1 -1
- package/dist/{vue-ui-rings-D2Xkr-UM.cjs → vue-ui-rings-CCePZEmj.cjs} +1 -1
- package/dist/{vue-ui-rings-B9v-QBUD.js → vue-ui-rings-CL5eq_lr.js} +12 -12
- package/dist/{vue-ui-scatter-B8njCxdy.js → vue-ui-scatter-DhWpisoX.js} +12 -12
- package/dist/{vue-ui-scatter-Dax4tsln.cjs → vue-ui-scatter-DrWHtQ7A.cjs} +1 -1
- package/dist/{vue-ui-skeleton-WO50lQWb.js → vue-ui-skeleton-CDtUy7-2.js} +3 -3
- package/dist/{vue-ui-skeleton-Cxg_LxBB.cjs → vue-ui-skeleton-CyD0WfiB.cjs} +1 -1
- package/dist/{vue-ui-smiley-CZc9x6AH.cjs → vue-ui-smiley-CYAJ1Yz6.cjs} +1 -1
- package/dist/{vue-ui-smiley-CydE1BoA.js → vue-ui-smiley-CxC_mXgi.js} +2 -2
- package/dist/{vue-ui-spark-trend-CW8LzMy4.cjs → vue-ui-spark-trend-DqJoZswk.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-sNLwMXHr.js → vue-ui-spark-trend-W6ET0LN0.js} +5 -5
- package/dist/{vue-ui-sparkbar-CdEIQGlO.cjs → vue-ui-sparkbar-BaL4aiR2.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BIw5YHYN.js → vue-ui-sparkbar-DFk4vX4T.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BGv31zUU.cjs → vue-ui-sparkgauge-C0XL80YM.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BY1Db4u6.js → vue-ui-sparkgauge-DaCbYvsy.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-B2qXSmE6.js → vue-ui-sparkhistogram-DO4EtsIl.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-C5aVsaeV.cjs → vue-ui-sparkhistogram-yHLpPhmY.cjs} +1 -1
- package/dist/{vue-ui-sparkline-B-ROydCI.js → vue-ui-sparkline-BT2uzkRB.js} +4 -4
- package/dist/{vue-ui-sparkline-nv_hBl_Q.cjs → vue-ui-sparkline-_3p0ZMii.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-B_fyArxJ.js → vue-ui-sparkstackbar-CvPROcMS.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-Dc7akbeI.cjs → vue-ui-sparkstackbar-D87hGVto.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CR-D8XTf.js → vue-ui-stackbar-CF1ZciKz.js} +13 -13
- package/dist/{vue-ui-stackbar-DPheM1P1.cjs → vue-ui-stackbar-pZS4uclE.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BP_ZBS7j.js → vue-ui-strip-plot-DbJmyFzD.js} +11 -11
- package/dist/{vue-ui-strip-plot-Bqcuuu2h.cjs → vue-ui-strip-plot-DqPSiGXm.cjs} +1 -1
- package/dist/{vue-ui-table-C_ARRjn7.js → vue-ui-table-BvlGS9xl.js} +1 -1
- package/dist/{vue-ui-table-D6zyqYhW.cjs → vue-ui-table-_lP4IT01.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-B1wpFAy-.cjs → vue-ui-table-heatmap-DVZ4FKcO.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-5kssrpIQ.js → vue-ui-table-heatmap-I3d1FZkm.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DqiWxSfS.cjs → vue-ui-table-sparkline-DxgxuYn1.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DQb6dKDF.js → vue-ui-table-sparkline-KTwO8xf0.js} +5 -5
- package/dist/{vue-ui-thermometer-CzAL7se5.js → vue-ui-thermometer-CacmwD1Y.js} +7 -7
- package/dist/{vue-ui-thermometer-CmktvEk5.cjs → vue-ui-thermometer-DbOYeE4L.cjs} +1 -1
- package/dist/{vue-ui-timer-CoxSVJEi.cjs → vue-ui-timer-CE_E850f.cjs} +1 -1
- package/dist/{vue-ui-timer-CN4LNkYi.js → vue-ui-timer-CPDwkxN8.js} +5 -5
- package/dist/{vue-ui-tiremarks-CcHbgSJS.js → vue-ui-tiremarks-C0_iMDa_.js} +7 -7
- package/dist/{vue-ui-tiremarks-G4phSmYS.cjs → vue-ui-tiremarks-CjEVWJs3.cjs} +1 -1
- package/dist/{vue-ui-treemap-X6ai1vvz.cjs → vue-ui-treemap-Cz8zJOFx.cjs} +1 -1
- package/dist/{vue-ui-treemap-Cd0QURmy.js → vue-ui-treemap-DwXyhU2O.js} +12 -12
- package/dist/{vue-ui-vertical-bar-DkkUwBFF.cjs → vue-ui-vertical-bar-CElDAKiI.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-Bwb6qh-e.js → vue-ui-vertical-bar-RbZ1m7aH.js} +12 -12
- package/dist/{vue-ui-waffle-CuqNVHpO.cjs → vue-ui-waffle-CqnW-IzI.cjs} +1 -1
- package/dist/{vue-ui-waffle-BLFwSujO.js → vue-ui-waffle-D2Olsiof.js} +12 -12
- package/dist/{vue-ui-wheel-BF8y9DBh.cjs → vue-ui-wheel-DDllncND.cjs} +1 -1
- package/dist/{vue-ui-wheel-BMKwq-xH.js → vue-ui-wheel-DJbSOnmZ.js} +7 -7
- package/dist/{vue-ui-word-cloud-2YUfi3uy.js → vue-ui-word-cloud-BVjlvTWA.js} +10 -10
- package/dist/{vue-ui-word-cloud-B4OWtLLG.cjs → vue-ui-word-cloud-Cw03GidN.cjs} +1 -1
- package/dist/{vue-ui-xy-CC8PUupn.cjs → vue-ui-xy-CpTEJDag.cjs} +2 -2
- package/dist/{vue-ui-xy-B_rfc8IL.js → vue-ui-xy-CvM6YBcJ.js} +16 -16
- package/dist/{vue-ui-xy-canvas-CQhMzfiO.cjs → vue-ui-xy-canvas-BwtGqNbz.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-ta12fbOW.js → vue-ui-xy-canvas-CPwKMu2P.js} +12 -12
- package/package.json +1 -1
- package/dist/PackageVersion-K_dIfu_1.cjs +0 -1
|
@@ -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-BkB2NdNK.cjs"),me=require("./Title-DIthuQxK.cjs"),oe=require("./usePrinter-Bn2DXY9B.cjs"),ye=require("./vue-ui-skeleton-CyD0WfiB.cjs"),ge=require("./DataTable-CngiZztx.cjs"),$e=require("./vue-ui-accordion-CGoz8eg6.cjs"),ne=require("./useNestedProp-BPS6WHYi.cjs"),_e=require("./PackageVersion-yffL-jfv.cjs"),be=require("./PenAndPaper-CN2oty-x.cjs"),Be=require("./useUserOptionState-BgepsfED.cjs"),xe=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ee=["id"],we={key:1,style:"width:100%;background:transparent"},Ne=["xmlns","viewBox"],Ve=["width","height"],Fe=["id"],Me=["stop-color"],Se=["stop-color"],Pe=["id"],Oe=["stop-color"],Le=["stop-color"],De=["id"],Te=["stop-color"],ze=["stop-color"],je=["id"],Ae=["stop-color"],Ie=["stop-color"],We=["stop-color"],Ge={key:1},He=["id"],qe=["stop-color"],Ue=["stop-color"],Re=["id"],Xe=["stop-color"],Ze=["stop-color"],Ye=["id"],Je=["stop-color"],Ke=["stop-color"],Qe=["id"],et=["x","y","font-size","font-weight","fill"],tt=["x","y"],lt=["d","stroke"],ot=["d","stroke"],nt={key:4},rt={key:0},at=["stroke-dasharray","d","stroke","stroke-width"],st=["stroke-dasharray","d","stroke","stroke-width"],ut=["stroke-dasharray","d","stroke","stroke-width"],it=["stroke-dasharray","d","stroke","stroke-width"],ct={key:1},dt=["d","stroke","stroke-width","fill"],ht=["d","stroke","stroke-width","fill"],vt=["d","stroke","stroke-width","fill"],pt={key:2},ft=["d","fill","onMouseenter","onClick"],kt=["d","fill","onMouseenter","onClick"],mt=["d","fill","onMouseenter","onClick"],yt=["d","onMouseenter","onClick"],gt=["d"],$t=["d","stroke"],_t=["onClick"],bt=["stroke","d"],Bt=["cx","cy","fill","stroke"],xt=["x","y","width","height"],Ct={key:1},Et=["d","stroke"],wt=["d","fill","stroke"],Nt=["id"],Vt=["stop-color"],Ft=["stop-color"],Mt=["cx","cy","fill"],St=["cx","cy","fill"],Pt={key:0},Ot=["text-anchor","x","y","fill","font-size"],Lt=["text-anchor","x","y","fill","font-size"],Dt={key:2},Tt=["d","fill","stroke"],zt={key:5},jt={key:0},At=["stroke-dasharray","d","stroke","stroke-width"],It=["stroke-dasharray","d","stroke","stroke-width"],Wt=["stroke-dasharray","d","stroke","stroke-width"],Gt=["stroke-dasharray","d","stroke","stroke-width"],Ht=["d","stroke","stroke-width","fill"],qt=["d","stroke","stroke-width","fill"],Ut={key:1},Rt=["onClick"],Xt=["id"],Zt=["stop-color"],Yt=["stop-color"],Jt=["id"],Kt=["stop-color"],Qt=["stop-color"],el=["stop-color"],tl=["stop-color"],ll=["stop-color"],ol=["onMouseenter","onClick","d","fill"],nl=["onMouseenter","onClick","d"],rl=["onMouseenter","onClick","d","fill"],al=["onClick"],sl=["stroke","d"],ul=["cx","cy","fill","stroke"],il=["x","y","width","height"],cl={key:1},dl=["d","stroke"],hl=["d","fill","stroke"],vl=["id"],pl=["stop-color"],fl=["stop-color"],kl=["cx","cy","fill"],ml=["cx","cy","fill"],yl={key:0},gl=["text-anchor","x","y","fill","font-size"],$l=["text-anchor","x","y","fill","font-size"],_l={key:2},bl=["d","fill","stroke"],Bl={key:4,class:"vue-data-ui-watermark"},xl={key:6,ref:"source",dir:"auto"},Cl=["innerHTML"],El={__name:"vue-ui-3d-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectDatapoint"],setup(re,{expose:ae,emit:se}){const{vue_ui_3d_bar:ue}=s.useConfig(),f=re,F=se,M=e.computed(()=>!!f.dataset&&Object.keys(f.dataset).length),k=e.ref(s.createUid()),ie=e.ref(null),z=e.ref(null),x=e.ref(!1),j=e.ref(0),A=e.ref(0),l=e.computed({get:()=>H(),set:a=>a}),{userOptionsVisible:O,setUserOptionsVisibility:I,keepUserOptionState:W}=Be.useUserOptionState({config:l.value}),{svgRef:G}=xe.useChartAccessibility({config:l.value.style.chart.title});function H(){const a=ne.useNestedProp({userConfig:f.config,defaultConfig:ue});return a.theme?{...ne.useNestedProp({userConfig:s.themes.vue_ui_3d_bar[a.theme]||f.config,defaultConfig:a}),customPalette:s.themePalettes[a.theme]||s.palette}:a}e.watch(()=>f.config,a=>{l.value=H(),O.value=!l.value.userOptions.showOnChartHover,Z(),j.value+=1,A.value+=1,N.value.showTable=l.value.table.show},{deep:!0});const{isPrinting:q,isImaging:U,generatePdf:R,generateImage:X}=oe.usePrinter({elementId:`3d_bar_${k.value}`,fileName:l.value.style.chart.title.text||"vue-ui-3d-bar",options:l.value.userOptions.print}),ce=e.computed(()=>s.convertCustomPalette(l.value.customPalette)),N=e.ref({showTable:l.value.table.show}),$=e.computed(()=>f.dataset.series&&f.dataset.series.length),n=e.computed(()=>({height:l.value.style.chart.box.dimensions.height,width:l.value.style.chart.box.dimensions.width,absoluteWidth:l.value.style.chart.box.dimensions.width*($.value?2:1),top:l.value.style.chart.box.dimensions.top,bottom:l.value.style.chart.box.dimensions.bottom,left:l.value.style.chart.box.dimensions.left,right:l.value.style.chart.box.dimensions.right,perspective:l.value.style.chart.box.dimensions.perspective})),g=e.computed(()=>{if($.value){const a=f.dataset.series.map(o=>o.value||0).reduce((o,u)=>o+u,0),r=f.dataset.series.map((o,u)=>({...o,id:s.createUid(),proportion:(o.value||0)/a,color:s.convertColorToHex(o.color)||ce.value[u]||s.palette[u]||s.palette[u%s.palette.length],breakdown:o.breakdown?o.breakdown.sort((i,p)=>p.value-i.value):null})).sort((o,u)=>u.value-o.value),t=[];let c=0;for(let o=0;o<r.length;o+=1)t.push({...r[o],fill:de(c,r[o].proportion,r[o].breakdown,r[o].color)}),c+=r[o].proportion;return t}return null}),b=e.computed(()=>({right:`M${n.value.width/2},${n.value.top} ${n.value.width-n.value.right}, ${n.value.top+n.value.perspective} ${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective} ${n.value.width/2},${n.value.height-n.value.bottom}`,left:`M${n.value.width/2},${n.value.top} ${n.value.left},${n.value.top+n.value.perspective} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective} ${n.value.width/2},${n.value.height-n.value.bottom}`,side:`M${n.value.width/2},${n.value.height-n.value.bottom} ${n.value.width/2},${n.value.top+n.value.perspective*2}`,topSides:`M${n.value.left},${n.value.top+n.value.perspective} ${n.value.width/2},${n.value.top+n.value.perspective*2} ${n.value.width-n.value.right},${n.value.top+n.value.perspective}`,tubeTop:`M${n.value.left},${n.value.top+n.value.perspective} C ${n.value.left},${n.value.top-n.value.perspective/3} ${n.value.width-n.value.right},${n.value.top-n.value.perspective/3} ${n.value.width-n.value.right},${n.value.top+n.value.perspective} C ${n.value.width-n.value.right},${n.value.top+n.value.perspective*2.3} ${n.value.left},${n.value.top+n.value.perspective*2.3} ${n.value.left},${n.value.top+n.value.perspective}`,tubeLeft:`M${n.value.left},${n.value.top+n.value.perspective} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective}`,tubeRight:`M${n.value.width-n.value.right},${n.value.top+n.value.perspective} ${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective}`,tubeBottom:`M${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective} C ${n.value.width-n.value.right},${n.value.height} ${n.value.left},${n.value.height} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective}`})),E=e.ref(l.value.style.chart.animation.use?0:f.dataset.percentage);e.onMounted(()=>{Z();let a=0,r=l.value.style.chart.animation.speed,t=.005*l.value.style.chart.animation.acceleration;function c(){E.value+=r+a,a+=t,E.value<f.dataset.percentage?requestAnimationFrame(c):E.value=f.dataset.percentage}l.value.style.chart.animation.use&&(E.value=0,c())});function Z(){s.objectIsEmpty(f.dataset)?s.error({componentName:"VueUi3dBar",type:"dataset"}):f.dataset.series?f.dataset.series.forEach((a,r)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","value"]}).forEach(t=>{s.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:t,index:r})}),a.breakdown&&a.breakdown.forEach((t,c)=>{s.getMissingDatasetAttributes({datasetObject:t,requiredAttributes:["name","value"]}).forEach(o=>{s.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:o,index:`${r} - ${c}`})})})}):s.getMissingDatasetAttributes({datasetObject:f.dataset,requiredAttributes:["percentage"]}).forEach(a=>{s.error({componentName:"VueUi3dBar",type:"datasetAttribute",property:a})})}function de(a,r,t,c){const o=n.value.height-n.value.bottom-n.value.top-n.value.perspective*2,{width:u,height:i,bottom:p,right:y,left:h,perspective:v}=n.value,d=p+o*a,T=i-d-v-o*r/2,pe=T>n.value.height/2?"top":"bottom",Q=64,fe=!!t;let ee=null,te=null;return fe&&(t=t.map((le,ke)=>({...le,value:le.value||0,color:s.lightenHexColor(c,ke/t.length)})),ee=s.makeDonut({series:t},u+n.value.absoluteWidth/4-14,pe==="top"?T-Q:T+Q,28,28,1.99999,2,1,360,105.25,14),te=s.makeDonut({series:t},u-y+20,i-d-v-o*r/2,6,6,1.99999,2,1,360,105.25,6)),{donut:ee,miniDonut:te,sidePointer:{x:u-y,y:i-d-v-o*r/2,topY:i-d-v-o*r,height:o*r},apexBottom:{y:i-d,x:u/2},apexTop:{y:i-d-o*r,x:u/2},right:`M${u/2},${i-d} ${u/2},${i-d-o*r} ${u-y},${i-d-v-o*r} ${u-y},${i-d-v}Z`,left:`M${u/2},${i-d} ${u/2},${i-d-o*r} ${h}, ${i-d-v-o*r} ${h},${i-d-v}Z`,liningTop:`M${h},${i-d-v-o*r} ${u/2},${i-d-o*r} ${u-y},${i-d-v-o*r}`,liningTopShade:`M${h},${i-d-v-o*r-.5} ${u/2},${i-d-o*r-.5} ${u-y},${i-d-v-o*r-.5}`,top:`M${u/2},${i-d-o*r} ${h},${i-d-v-o*r} ${u/2},${i-d-v*2-o*r} ${u-y},${i-d-v-o*r} Z`,tubeTop:`M${h},${i-d-o*r-v} C ${h},${i-d-o*r-v*2.5} ${u-y},${i-d-o*r-v*2.5} ${u-y},${i-d-o*r-v} C ${u-y},${i-d-o*r+v/2} ${h},${i-d-o*r+v/2} ${h},${i-d-o*r-v}`,bottomTubeTop:`M ${u-y-.5},${i-d-v} C ${u-y-.5},${i-d+v/2} ${h},${i-d+v/2} ${h+.5},${i-d-v}`,tubeBody:`M
|
|
2
2
|
${h},${i-d-o*r-v}
|
|
3
3
|
C ${h},${i-d-o*r+v/2}
|
|
4
4
|
${u-y},${i-d-o*r+v/2}
|
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
C
|
|
17
17
|
${t-u},${c}
|
|
18
18
|
${i},${c}
|
|
19
|
-
${i},${c-h-p}Z`}}),m=e.ref(null);function _(a,r=!1){F("selectDatapoint",a),r||(m.value=a.id),r&&x.value&&(x.value=!1),r&&!x.value&&(x.value=!0)}function C(){x.value||(m.value=null)}function w(a,r,t=!1){const c=f.dataset.series.map(i=>i.value||0).reduce((i,p)=>i+p,0),o=isNaN(a.value/c)?0:a.value/c*100,u=isNaN(a.value/Y(r))?0:a.value/Y(r)*100;return t?u:o.toFixed(0)+"%"}function Y(a){return[...a].map(r=>r.value).reduce((r,t)=>r+t,0)}const L=e.ref(!1);function he(a){L.value=a}function ve(){return $.value?g.value:f.dataset.percentage}const B=e.computed(()=>{if($.value){const a=g.value.flatMap(t=>t.breakdown&&t.breakdown.length?[{name:t.name,color:t.color},...t.breakdown.map((c,o)=>({name:c.name,color:s.lightenHexColor(t.color,o/t.breakdown.length)}))]:{name:t.name,color:t.color}),r=g.value.flatMap(t=>t.breakdown&&t.breakdown.length?[t.value,...t.breakdown.map(c=>c.value)]:t.value);return{head:a,body:r}}else return null});function J(){if(!$.value){console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");return}e.nextTick(()=>{const a=g.value.map(o=>o.value).reduce((o,u)=>o+u,0),r=B.value.head.map((o,u)=>[[o.name],[B.value.body[u]],[isNaN(B.value.body[u]/a)?"-":B.value.body[u]/a*100]]),t=[[l.value.style.chart.title.text],[l.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(r),c=s.createCsvContent(t);s.downloadCsv({csvContent:c,title:l.value.style.chart.title.text||"vue-ui-3d-bar"})})}const M=e.computed(()=>{const a=g.value.map(u=>u.value).reduce((u,i)=>u+i,0),r=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',s.dataLabel({p:l.value.style.chart.legend.prefix,v:a,s:l.value.style.chart.legend.suffix,r:l.value.table.td.roundingValue}),"100%"],t=B.value.head.map((u,i)=>{const p=s.dataLabel({p:l.value.style.chart.legend.prefix,v:B.value.body[i],s:l.value.style.chart.legend.suffix,r:l.value.table.td.roundingValue});return[{color:u.color,name:u.name},p,isNaN(B.value.body[i]/a)?"-":s.dataLabel({v:B.value.body[i]/a*100,s:"%",r:l.value.table.td.roundingPercentage})]}),c={th:{backgroundColor:l.value.table.th.backgroundColor,color:l.value.table.th.color,outline:l.value.table.th.outline},td:{backgroundColor:l.value.table.td.backgroundColor,color:l.value.table.td.color,outline:l.value.table.td.outline},breakpoint:l.value.table.responsiveBreakpoint,shape:l.value.style.shape==="tube"?"circle":"square"};return{colNames:[l.value.table.columnNames.series,l.value.table.columnNames.value,l.value.table.columnNames.percentage],head:r,body:t,config:c}});function K(){N.value.showTable=!N.value.showTable}const P=e.ref(!1);function D(){P.value=!P.value}return ae({generateCsv:J,generatePdf:R,generateImage:X,getData:ve,toggleTable:K,toggleAnnotator:D}),(a,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"bar3dChart",ref:z,class:e.normalizeClass("vue-ui-3d-bar"),style:e.normalizeStyle(`font-family:${l.value.style.fontFamily};width:100%; text-align:center;background:${l.value.style.chart.backgroundColor}`),id:`3d_bar_${k.value}`,onMouseenter:r[2]||(r[2]=()=>e.unref(I)(!0)),onMouseleave:r[3]||(r[3]=()=>e.unref(I)(!1))},[l.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(be.PenAndPaper,{key:0,svgRef:e.unref(G),backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color,active:P.value,onClose:D},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),l.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",we,[(e.openBlock(),e.createBlock(me._sfc_main,{key:`title_${j.value}`,config:{title:{cy:"3dBar-div-title",...l.value.style.chart.title},subtitle:{cy:"3dBar-div-subtitle",...l.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),l.value.userOptions.show&&S.value&&(e.unref(W)||e.unref(O))?(e.openBlock(),e.createBlock(oe.UserOptions,{key:2,ref_key:"details",ref:ie,backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color,isPrinting:e.unref(q),isImaging:e.unref(U),uid:k.value,hasPdf:l.value.userOptions.buttons.pdf,hasTable:!!$.value&&l.value.userOptions.buttons.table,hasXls:!!$.value&&l.value.userOptions.buttons.csv,hasImg:l.value.userOptions.buttons.img,hasFullscreen:l.value.userOptions.buttons.fullscreen,titles:{...l.value.userOptions.buttonTitles},chartElement:z.value,position:l.value.userOptions.position,hasAnnotator:l.value.userOptions.buttons.annotator,isAnnotation:P.value,onToggleFullscreen:he,onGeneratePdf:e.unref(R),onGenerateCsv:J,onGenerateImage:e.unref(X),onToggleTable:K,onToggleAnnotator:D,style:e.normalizeStyle({visibility:e.unref(W)?e.unref(O)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:t,color:c})=>[e.renderSlot(a.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:t,color:c})),void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:t,isFullscreen:c})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:t,isFullscreen:c})),void 0,!0)]),key:"5"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:t,isAnnotator:c})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:t,isAnnotator:c})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasTable","hasXls","hasImg","hasFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),S.value?(e.openBlock(),e.createElementBlock("svg",{key:3,ref_key:"svgRef",ref:G,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":L.value,"vue-data-ui-fulscreen--off":!L.value}),viewBox:`0 0 ${n.value.absoluteWidth} ${n.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${l.value.style.chart.color}`)},[e.createVNode(_e._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:n.value.absoluteWidth,height:n.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,Ve)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_top${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Se),e.createElementVNode("stop",{offset:"100%","stop-color":l.value.style.chart.bar.color},null,8,Me)],8,Fe),e.createElementVNode("radialGradient",{id:`gradient_left${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Oe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.bar.color,20)},null,8,Le)],8,Pe),e.createElementVNode("radialGradient",{id:`gradient_right${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Te),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.bar.color,20)},null,8,ze)],8,De),e.createElementVNode("linearGradient",{id:`gradient_tube_body${k.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${l.value.style.chart.bar.color}`},null,8,Ae),e.createElementVNode("stop",{offset:"75%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Ie),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.bar.color,40)},null,8,We)],8,je)]),$.value?(e.openBlock(),e.createElementBlock("defs",Ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`grad_top_${t.id}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(e.unref(s.lightenHexColor)(t.color,.5),80)},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":t.color},null,8,Ue)],8,He))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`grad_left_${t.id}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(t.color,80)},null,8,Xe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(e.unref(s.darkenHexColor)(t.color,.5),100)},null,8,Ze)],8,Re))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`grad_right_${t.id}`},[e.createElementVNode("stop",{offset:"2%","stop-color":e.unref(s.setOpacity)(e.unref(s.lightenHexColor)(t.color,.5),100)},null,8,Je),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(t.color,80)},null,8,Ke)],8,Ye))),256)),e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"0%",y2:"100%",id:`vertical_line_${k.value}`},r[4]||(r[4]=[e.createElementVNode("stop",{offset:"0%","stop-color":"#FFFFFF"},null,-1),e.createElementVNode("stop",{offset:"100%","stop-color":"#FFFFFF33"},null,-1)]),8,Qe)])):e.createCommentVNode("",!0),l.value.style.chart.dataLabel.show&&![null,void 0].includes(f.dataset.percentage)&&[null,void 0].includes(f.dataset.series)?(e.openBlock(),e.createElementBlock("text",{key:2,x:n.value.width/2,y:n.value.top-l.value.style.chart.dataLabel.fontSize/2,"font-size":l.value.style.chart.dataLabel.fontSize,"font-weight":l.value.style.chart.dataLabel.bold?"bold":"normal",fill:l.value.style.chart.dataLabel.color,"text-anchor":"middle"},e.toDisplayString(e.unref(s.dataLabel)({v:E.value,s:"%",r:l.value.style.chart.dataLabel.rounding})),9,et)):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("g",{key:3,onClick:r[0]||(r[0]=t=>{x.value=!1,m.value=null}),"data-dom-to-png-ignore":"",style:{cursor:"pointer"}},[e.createElementVNode("rect",{x:n.value.width/2-6,y:n.value.top-20,height:12,width:12,fill:"transparent"},null,8,tt),e.createElementVNode("path",{d:`M${n.value.width/2-6},${n.value.top-20} ${n.value.width/2+6},${n.value.top-9}`,stroke:l.value.style.chart.color,"stroke-linecap":"round","stroke-width":"1"},null,8,lt),e.createElementVNode("path",{d:`M${n.value.width/2+6},${n.value.top-20} ${n.value.width/2-6},${n.value.top-9}`,stroke:l.value.style.chart.color,"stroke-linecap":"round","stroke-width":"1"},null,8,ot)])):e.createCommentVNode("",!0),!l.value.style.shape||l.value.style.shape==="bar"?(e.openBlock(),e.createElementBlock("g",nt,[$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",rt,[e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.right,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,at),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.left,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,st),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.side,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,ut),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.topSides,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,it)])),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",ct,[e.createElementVNode("path",{d:V.value.right,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_right${k.value})`},null,8,dt),e.createElementVNode("path",{d:V.value.left,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_left${k.value})`},null,8,ht),e.createElementVNode("path",{d:V.value.top,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_top${k.value})`},null,8,vt)])),$.value?(e.openBlock(),e.createElementBlock("g",pt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:.3:1}`),class:"vue-ui-3d-bar-stack"},[e.createElementVNode("path",{d:t.fill.right,fill:`url(#grad_right_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C},null,40,ft),e.createElementVNode("path",{d:t.fill.left,fill:`url(#grad_left_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C},null,40,kt),e.createElementVNode("path",{d:t.fill.top,fill:`url(#grad_top_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C},null,40,mt),e.createElementVNode("path",{d:t.fill.liningTop,stroke:"#FFFFFF","stroke-width":"0.5","stroke-linecap":"round",fill:"none",onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C},null,40,yt),e.createElementVNode("path",{d:`M ${t.fill.apexTop.x},${t.fill.apexTop.y} ${t.fill.apexBottom.x},${t.fill.apexBottom.y}`,stroke:"#FFFFFF","stroke-width":"0.5","stroke-linecap":"round"},null,8,gt)],4))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",null,[c!==g.value.length-1?(e.openBlock(),e.createElementBlock("path",{key:0,d:t.fill.liningTopShade,stroke:l.value.style.chart.bar.shadeColor,"stroke-width":"0.5","stroke-linecap":"round",fill:"none",style:{"pointer-events":"none"}},null,8,$t)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:0:t.proportion*100>l.value.style.chart.legend.hideUnderPercentage?1:0}`),onClick:o=>F("selectDatapoint",t)},[e.createElementVNode("path",{stroke:l.value.style.chart.color,"stroke-dasharray":"1","stroke-width":"0.5","stroke-linecap":"round",d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x+20},${t.fill.sidePointer.y}`},null,8,bt),!t.fill.miniDonut||m.value?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:t.fill.sidePointer.x+20,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:l.value.style.chart.backgroundColor},null,8,Bt)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("foreignObject",{x:t.fill.sidePointer.x+30,y:t.fill.sidePointer.y-l.value.style.chart.legend.fontSize,width:n.value.absoluteWidth/2-12,height:l.value.style.chart.legend.fontSize*2,style:{overflow:"visible",position:"relative"}},[l.value.style.chart.legend.showDefault?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${l.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${l.value.style.chart.legend.fontSize}px; color:${l.value.style.chart.legend.color}`)},e.toDisplayString(t.name)+": "+e.toDisplayString(e.unref(s.dataLabel)({v:t.proportion*100,s:"%",r:l.value.style.chart.legend.roundingPercentage}))+" ("+e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.dataLabel.formatter,t.value,e.unref(s.dataLabel)({p:l.value.style.chart.legend.prefix,v:t.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue}),{datapoint:t,seriesIndex:c}))+") ",5)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",e.mergeProps({ref_for:!0},{datapoint:t,config:l.value,dataset:g.value}),void 0,!0)],8,xt)),t.fill.donut&&m.value===t.id?(e.openBlock(),e.createElementBlock("g",Ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(s.calcNutArrowPath)(o,{x:o.cx,y:o.cy},0,8,!1,!0,10),stroke:o.color,class:"vue-ui-donut-arc-path","stroke-width":"0.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,Et)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":1},null,8,wt))),256)),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`hollow_gradient_${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Vt),r[5]||(r[5]=e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Ft)],8,Nt)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:28,fill:`url(#hollow_gradient_${k.value})`},null,8,St))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:14,fill:l.value.style.chart.backgroundColor},null,8,Mt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("g",Pt,[e.createElementVNode("text",{"text-anchor":e.unref(s.calcMarkerOffsetX)(o,!0,0).anchor,x:e.unref(s.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(s.calcMarkerOffsetY)(o,12,12),fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(w(o,t.fill.donut))+" ("+e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.dataLabel.formatter,o.value,e.unref(s.dataLabel)({p:l.value.style.chart.legend.prefix,v:o.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:u}))+") ",9,Ot),e.createElementVNode("text",{"text-anchor":e.unref(s.calcMarkerOffsetX)(o).anchor,x:e.unref(s.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(s.calcMarkerOffsetY)(o,12,12)+l.value.style.chart.legend.fontSize/1.5,fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(o.name),9,Lt)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),t.fill.miniDonut&&!m.value?(e.openBlock(),e.createElementBlock("g",Dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.miniDonut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":.5},null,8,Tt))),256))])):e.createCommentVNode("",!0)],12,_t))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.value.style.shape==="tube"?(e.openBlock(),e.createElementBlock("g",zt,[$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",jt,[e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.tubeTop,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,At),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.tubeLeft,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,It),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.tubeRight,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Wt),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.tubeBottom,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Gt),e.createElementVNode("path",{d:V.value.tubeTop,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_top${k.value})`},null,8,Ht),e.createElementVNode("path",{d:V.value.tubeBody,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_body${k.value})`},null,8,qt)])),$.value?(e.openBlock(),e.createElementBlock("g",Ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:.3:1}`),class:"vue-ui-3d-bar-stack",onClick:o=>F("selectDatapoint",t)},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_tube_top_${t.id}`,fx:"10%",cy:"55%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(e.unref(s.lightenHexColor)(t.color,.5),80)},null,8,Zt),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(e.unref(s.darkenHexColor)(t.color,.1),80)},null,8,Yt)],8,Xt),e.createElementVNode("linearGradient",{id:`gradient_tube_body_${t.id}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.color}`},null,8,Kt),e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.setOpacity)(e.unref(s.darkenHexColor)(t.color,.7),100)},null,8,Qt),e.createElementVNode("stop",{offset:"25%","stop-color":e.unref(s.setOpacity)(e.unref(s.darkenHexColor)(t.color,.5),100)},null,8,el),e.createElementVNode("stop",{offset:"75%","stop-color":e.unref(s.setOpacity)(t.color,80)},null,8,tl),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(e.unref(s.lightenHexColor)(t.color,.7),100)},null,8,ll)],8,Jt)]),e.createElementVNode("path",{onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C,d:t.fill.tubeBody,stroke:"#FFFFFF","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_body_${t.id})`},null,40,ol),c>0?(e.openBlock(),e.createElementBlock("path",{key:0,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C,d:t.fill.bottomTubeTop,stroke:"#000000","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,40,nl)):e.createCommentVNode("",!0),e.createElementVNode("path",{onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C,d:t.fill.tubeTop,stroke:"#FFFFFF","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_top_${t.id})`},null,40,rl)],12,Rt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:0:t.proportion*100>l.value.style.chart.legend.hideUnderPercentage?1:0}`),onClick:o=>F("selectDatapoint",t)},[e.createElementVNode("path",{stroke:l.value.style.chart.color,"stroke-dasharray":"1","stroke-width":"0.5","stroke-linecap":"round",d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x+20},${t.fill.sidePointer.y}`},null,8,sl),!t.fill.miniDonut||m.value?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:t.fill.sidePointer.x+20,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:l.value.style.chart.backgroundColor},null,8,ul)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("foreignObject",{x:t.fill.sidePointer.x+30,y:t.fill.sidePointer.y-l.value.style.chart.legend.fontSize,width:n.value.absoluteWidth/2-12,height:l.value.style.chart.legend.fontSize*2,style:{overflow:"visible",position:"relative"}},[l.value.style.chart.legend.showDefault?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${l.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${l.value.style.chart.legend.fontSize}px; color:${l.value.style.chart.legend.color}`)},e.toDisplayString(t.name)+": "+e.toDisplayString(e.unref(s.dataLabel)({v:t.proportion*100,s:"%",r:l.value.style.chart.legend.roundingPercentage}))+" ("+e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.dataLabel.formatter,t.value,e.unref(s.dataLabel)({p:l.value.style.chart.legend.prefix,v:t.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue}),{datapoint:t,seriesIndex:c}))+") ",5)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",e.mergeProps({ref_for:!0},{datapoint:t,config:l.value,dataset:g.value}),void 0,!0)],8,il)),t.fill.donut&&m.value===t.id?(e.openBlock(),e.createElementBlock("g",cl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(s.calcNutArrowPath)(o,{x:o.cx,y:o.cy},0,8,!1,!0,10),stroke:o.color,class:"vue-ui-donut-arc-path","stroke-width":"0.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,dl)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":1},null,8,hl))),256)),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`hollow_gradient_${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,pl),r[6]||(r[6]=e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,fl)],8,vl)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:28,fill:`url(#hollow_gradient_${k.value})`},null,8,kl))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:14,fill:l.value.style.chart.backgroundColor},null,8,ml))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("g",yl,[e.createElementVNode("text",{"text-anchor":e.unref(s.calcMarkerOffsetX)(o,!0,0).anchor,x:e.unref(s.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(s.calcMarkerOffsetY)(o,12,12),fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(w(o,t.fill.donut))+" ("+e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.dataLabel.formatter,o.value,e.unref(s.dataLabel)({p:l.value.style.chart.legend.prefix,v:o.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:u}))+") ",9,gl),e.createElementVNode("text",{"text-anchor":e.unref(s.calcMarkerOffsetX)(o).anchor,x:e.unref(s.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(s.calcMarkerOffsetY)(o,12,12)+l.value.style.chart.legend.fontSize/1.5,fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(o.name),9,$l)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),t.fill.miniDonut&&!m.value?(e.openBlock(),e.createElementBlock("g",_l,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.miniDonut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":.5},null,8,bl))),256))])):e.createCommentVNode("",!0)],12,al))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:n.value},void 0,!0)],14,Ne)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Bl,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(q)||e.unref(U)})),void 0,!0)])):e.createCommentVNode("",!0),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye.default,{key:5,config:{type:"bar3d",style:{backgroundColor:l.value.style.chart.backgroundColor,bar3d:{color:"#CCCCCC"}}}},null,8,["config"])),a.$slots.source?(e.openBlock(),e.createElementBlock("div",xl,[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),S.value&&$.value?(e.openBlock(),e.createBlock($e.default,{key:7,hideDetails:"",config:{open:N.value.showTable,maxHeight:1e4,body:{backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color},head:{backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ge.DataTable,{key:`table_${A.value}`,colNames:M.value.colNames,head:M.value.head,body:M.value.body,config:M.value.config,title:`${l.value.style.chart.title.text}${l.value.style.chart.title.subtitle.text?` : ${l.value.style.chart.title.subtitle.text}`:""}`,onClose:r[1]||(r[1]=t=>N.value.showTable=!1)},{th:e.withCtx(({th:t})=>[e.createElementVNode("div",{innerHTML:t,style:{display:"flex","align-items":"center"}},null,8,Cl)]),td:e.withCtx(({td:t})=>[e.createTextVNode(e.toDisplayString(t.name||t),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],44,Ee))}},wl=Ce._export_sfc(El,[["__scopeId","data-v-b7ef7d8f"]]);exports.default=wl;
|
|
19
|
+
${i},${c-h-p}Z`}}),m=e.ref(null);function _(a,r=!1){F("selectDatapoint",a),r||(m.value=a.id),r&&x.value&&(x.value=!1),r&&!x.value&&(x.value=!0)}function C(){x.value||(m.value=null)}function w(a,r,t=!1){const c=f.dataset.series.map(i=>i.value||0).reduce((i,p)=>i+p,0),o=isNaN(a.value/c)?0:a.value/c*100,u=isNaN(a.value/Y(r))?0:a.value/Y(r)*100;return t?u:o.toFixed(0)+"%"}function Y(a){return[...a].map(r=>r.value).reduce((r,t)=>r+t,0)}const L=e.ref(!1);function he(a){L.value=a}function ve(){return $.value?g.value:f.dataset.percentage}const B=e.computed(()=>{if($.value){const a=g.value.flatMap(t=>t.breakdown&&t.breakdown.length?[{name:t.name,color:t.color},...t.breakdown.map((c,o)=>({name:c.name,color:s.lightenHexColor(t.color,o/t.breakdown.length)}))]:{name:t.name,color:t.color}),r=g.value.flatMap(t=>t.breakdown&&t.breakdown.length?[t.value,...t.breakdown.map(c=>c.value)]:t.value);return{head:a,body:r}}else return null});function J(){if(!$.value){console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");return}e.nextTick(()=>{const a=g.value.map(o=>o.value).reduce((o,u)=>o+u,0),r=B.value.head.map((o,u)=>[[o.name],[B.value.body[u]],[isNaN(B.value.body[u]/a)?"-":B.value.body[u]/a*100]]),t=[[l.value.style.chart.title.text],[l.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(r),c=s.createCsvContent(t);s.downloadCsv({csvContent:c,title:l.value.style.chart.title.text||"vue-ui-3d-bar"})})}const S=e.computed(()=>{const a=g.value.map(u=>u.value).reduce((u,i)=>u+i,0),r=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',s.dataLabel({p:l.value.style.chart.legend.prefix,v:a,s:l.value.style.chart.legend.suffix,r:l.value.table.td.roundingValue}),"100%"],t=B.value.head.map((u,i)=>{const p=s.dataLabel({p:l.value.style.chart.legend.prefix,v:B.value.body[i],s:l.value.style.chart.legend.suffix,r:l.value.table.td.roundingValue});return[{color:u.color,name:u.name},p,isNaN(B.value.body[i]/a)?"-":s.dataLabel({v:B.value.body[i]/a*100,s:"%",r:l.value.table.td.roundingPercentage})]}),c={th:{backgroundColor:l.value.table.th.backgroundColor,color:l.value.table.th.color,outline:l.value.table.th.outline},td:{backgroundColor:l.value.table.td.backgroundColor,color:l.value.table.td.color,outline:l.value.table.td.outline},breakpoint:l.value.table.responsiveBreakpoint,shape:l.value.style.shape==="tube"?"circle":"square"};return{colNames:[l.value.table.columnNames.series,l.value.table.columnNames.value,l.value.table.columnNames.percentage],head:r,body:t,config:c}});function K(){N.value.showTable=!N.value.showTable}const P=e.ref(!1);function D(){P.value=!P.value}return ae({generateCsv:J,generatePdf:R,generateImage:X,getData:ve,toggleTable:K,toggleAnnotator:D}),(a,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"bar3dChart",ref:z,class:e.normalizeClass("vue-ui-3d-bar"),style:e.normalizeStyle(`font-family:${l.value.style.fontFamily};width:100%; text-align:center;background:${l.value.style.chart.backgroundColor}`),id:`3d_bar_${k.value}`,onMouseenter:r[2]||(r[2]=()=>e.unref(I)(!0)),onMouseleave:r[3]||(r[3]=()=>e.unref(I)(!1))},[l.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(be.PenAndPaper,{key:0,svgRef:e.unref(G),backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color,active:P.value,onClose:D},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),l.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",we,[(e.openBlock(),e.createBlock(me._sfc_main,{key:`title_${j.value}`,config:{title:{cy:"3dBar-div-title",...l.value.style.chart.title},subtitle:{cy:"3dBar-div-subtitle",...l.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),l.value.userOptions.show&&M.value&&(e.unref(W)||e.unref(O))?(e.openBlock(),e.createBlock(oe.UserOptions,{key:2,ref_key:"details",ref:ie,backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color,isPrinting:e.unref(q),isImaging:e.unref(U),uid:k.value,hasPdf:l.value.userOptions.buttons.pdf,hasTable:!!$.value&&l.value.userOptions.buttons.table,hasXls:!!$.value&&l.value.userOptions.buttons.csv,hasImg:l.value.userOptions.buttons.img,hasFullscreen:l.value.userOptions.buttons.fullscreen,titles:{...l.value.userOptions.buttonTitles},chartElement:z.value,position:l.value.userOptions.position,hasAnnotator:l.value.userOptions.buttons.annotator,isAnnotation:P.value,onToggleFullscreen:he,onGeneratePdf:e.unref(R),onGenerateCsv:J,onGenerateImage:e.unref(X),onToggleTable:K,onToggleAnnotator:D,style:e.normalizeStyle({visibility:e.unref(W)?e.unref(O)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:t,color:c})=>[e.renderSlot(a.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:t,color:c})),void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:t,isFullscreen:c})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:t,isFullscreen:c})),void 0,!0)]),key:"5"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:t,isAnnotator:c})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:t,isAnnotator:c})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasTable","hasXls","hasImg","hasFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),M.value?(e.openBlock(),e.createElementBlock("svg",{key:3,ref_key:"svgRef",ref:G,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":L.value,"vue-data-ui-fulscreen--off":!L.value}),viewBox:`0 0 ${n.value.absoluteWidth} ${n.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${l.value.style.chart.color}`)},[e.createVNode(_e._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:n.value.absoluteWidth,height:n.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,Ve)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_top${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Me),e.createElementVNode("stop",{offset:"100%","stop-color":l.value.style.chart.bar.color},null,8,Se)],8,Fe),e.createElementVNode("radialGradient",{id:`gradient_left${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Oe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.bar.color,20)},null,8,Le)],8,Pe),e.createElementVNode("radialGradient",{id:`gradient_right${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Te),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.bar.color,20)},null,8,ze)],8,De),e.createElementVNode("linearGradient",{id:`gradient_tube_body${k.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${l.value.style.chart.bar.color}`},null,8,Ae),e.createElementVNode("stop",{offset:"75%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Ie),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.bar.color,40)},null,8,We)],8,je)]),$.value?(e.openBlock(),e.createElementBlock("defs",Ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`grad_top_${t.id}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(e.unref(s.lightenHexColor)(t.color,.5),80)},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":t.color},null,8,Ue)],8,He))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`grad_left_${t.id}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(t.color,80)},null,8,Xe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(e.unref(s.darkenHexColor)(t.color,.5),100)},null,8,Ze)],8,Re))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`grad_right_${t.id}`},[e.createElementVNode("stop",{offset:"2%","stop-color":e.unref(s.setOpacity)(e.unref(s.lightenHexColor)(t.color,.5),100)},null,8,Je),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(t.color,80)},null,8,Ke)],8,Ye))),256)),e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"0%",y2:"100%",id:`vertical_line_${k.value}`},r[4]||(r[4]=[e.createElementVNode("stop",{offset:"0%","stop-color":"#FFFFFF"},null,-1),e.createElementVNode("stop",{offset:"100%","stop-color":"#FFFFFF33"},null,-1)]),8,Qe)])):e.createCommentVNode("",!0),l.value.style.chart.dataLabel.show&&![null,void 0].includes(f.dataset.percentage)&&[null,void 0].includes(f.dataset.series)?(e.openBlock(),e.createElementBlock("text",{key:2,x:n.value.width/2,y:n.value.top-l.value.style.chart.dataLabel.fontSize/2,"font-size":l.value.style.chart.dataLabel.fontSize,"font-weight":l.value.style.chart.dataLabel.bold?"bold":"normal",fill:l.value.style.chart.dataLabel.color,"text-anchor":"middle"},e.toDisplayString(e.unref(s.dataLabel)({v:E.value,s:"%",r:l.value.style.chart.dataLabel.rounding})),9,et)):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("g",{key:3,onClick:r[0]||(r[0]=t=>{x.value=!1,m.value=null}),"data-dom-to-png-ignore":"",style:{cursor:"pointer"}},[e.createElementVNode("rect",{x:n.value.width/2-6,y:n.value.top-20,height:12,width:12,fill:"transparent"},null,8,tt),e.createElementVNode("path",{d:`M${n.value.width/2-6},${n.value.top-20} ${n.value.width/2+6},${n.value.top-9}`,stroke:l.value.style.chart.color,"stroke-linecap":"round","stroke-width":"1"},null,8,lt),e.createElementVNode("path",{d:`M${n.value.width/2+6},${n.value.top-20} ${n.value.width/2-6},${n.value.top-9}`,stroke:l.value.style.chart.color,"stroke-linecap":"round","stroke-width":"1"},null,8,ot)])):e.createCommentVNode("",!0),!l.value.style.shape||l.value.style.shape==="bar"?(e.openBlock(),e.createElementBlock("g",nt,[$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",rt,[e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.right,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,at),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.left,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,st),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.side,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,ut),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.topSides,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,it)])),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",ct,[e.createElementVNode("path",{d:V.value.right,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_right${k.value})`},null,8,dt),e.createElementVNode("path",{d:V.value.left,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_left${k.value})`},null,8,ht),e.createElementVNode("path",{d:V.value.top,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_top${k.value})`},null,8,vt)])),$.value?(e.openBlock(),e.createElementBlock("g",pt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:.3:1}`),class:"vue-ui-3d-bar-stack"},[e.createElementVNode("path",{d:t.fill.right,fill:`url(#grad_right_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C},null,40,ft),e.createElementVNode("path",{d:t.fill.left,fill:`url(#grad_left_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C},null,40,kt),e.createElementVNode("path",{d:t.fill.top,fill:`url(#grad_top_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C},null,40,mt),e.createElementVNode("path",{d:t.fill.liningTop,stroke:"#FFFFFF","stroke-width":"0.5","stroke-linecap":"round",fill:"none",onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C},null,40,yt),e.createElementVNode("path",{d:`M ${t.fill.apexTop.x},${t.fill.apexTop.y} ${t.fill.apexBottom.x},${t.fill.apexBottom.y}`,stroke:"#FFFFFF","stroke-width":"0.5","stroke-linecap":"round"},null,8,gt)],4))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",null,[c!==g.value.length-1?(e.openBlock(),e.createElementBlock("path",{key:0,d:t.fill.liningTopShade,stroke:l.value.style.chart.bar.shadeColor,"stroke-width":"0.5","stroke-linecap":"round",fill:"none",style:{"pointer-events":"none"}},null,8,$t)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:0:t.proportion*100>l.value.style.chart.legend.hideUnderPercentage?1:0}`),onClick:o=>F("selectDatapoint",t)},[e.createElementVNode("path",{stroke:l.value.style.chart.color,"stroke-dasharray":"1","stroke-width":"0.5","stroke-linecap":"round",d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x+20},${t.fill.sidePointer.y}`},null,8,bt),!t.fill.miniDonut||m.value?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:t.fill.sidePointer.x+20,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:l.value.style.chart.backgroundColor},null,8,Bt)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("foreignObject",{x:t.fill.sidePointer.x+30,y:t.fill.sidePointer.y-l.value.style.chart.legend.fontSize,width:n.value.absoluteWidth/2-12,height:l.value.style.chart.legend.fontSize*2,style:{overflow:"visible",position:"relative"}},[l.value.style.chart.legend.showDefault?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${l.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${l.value.style.chart.legend.fontSize}px; color:${l.value.style.chart.legend.color}`)},e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.dataLabel.formatter,t.value,`${t.name}: ${e.unref(s.dataLabel)({v:t.proportion*100,s:"%",r:l.value.style.chart.legend.roundingPercentage})} (${e.unref(s.dataLabel)({p:l.value.style.chart.legend.prefix,v:t.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue})})`,{datapoint:t,seriesIndex:c,type:"barDatapoint"})),5)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",e.mergeProps({ref_for:!0},{datapoint:t,config:l.value,dataset:g.value}),void 0,!0)],8,xt)),t.fill.donut&&m.value===t.id?(e.openBlock(),e.createElementBlock("g",Ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(s.calcNutArrowPath)(o,{x:o.cx,y:o.cy},0,8,!1,!0,10),stroke:o.color,class:"vue-ui-donut-arc-path","stroke-width":"0.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,Et)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":1},null,8,wt))),256)),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`hollow_gradient_${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Vt),r[5]||(r[5]=e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Ft)],8,Nt)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:28,fill:`url(#hollow_gradient_${k.value})`},null,8,Mt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:14,fill:l.value.style.chart.backgroundColor},null,8,St))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("g",Pt,[e.createElementVNode("text",{"text-anchor":e.unref(s.calcMarkerOffsetX)(o,!0,0).anchor,x:e.unref(s.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(s.calcMarkerOffsetY)(o,12,12),fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.dataLabel.formatter,o.value,`${w(o,t.fill.donut)} (${e.unref(s.dataLabel)({p:l.value.style.chart.legend.prefix,v:o.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue})})`,{datapoint:o,seriesIndex:u,type:"donutDatapoint"})),9,Ot),e.createElementVNode("text",{"text-anchor":e.unref(s.calcMarkerOffsetX)(o).anchor,x:e.unref(s.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(s.calcMarkerOffsetY)(o,12,12)+l.value.style.chart.legend.fontSize/1.5,fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(o.name),9,Lt)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),t.fill.miniDonut&&!m.value?(e.openBlock(),e.createElementBlock("g",Dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.miniDonut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":.5},null,8,Tt))),256))])):e.createCommentVNode("",!0)],12,_t))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.value.style.shape==="tube"?(e.openBlock(),e.createElementBlock("g",zt,[$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",jt,[e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.tubeTop,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,At),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.tubeLeft,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,It),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.tubeRight,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Wt),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.tubeBottom,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Gt),e.createElementVNode("path",{d:V.value.tubeTop,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_top${k.value})`},null,8,Ht),e.createElementVNode("path",{d:V.value.tubeBody,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_body${k.value})`},null,8,qt)])),$.value?(e.openBlock(),e.createElementBlock("g",Ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:.3:1}`),class:"vue-ui-3d-bar-stack",onClick:o=>F("selectDatapoint",t)},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_tube_top_${t.id}`,fx:"10%",cy:"55%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(e.unref(s.lightenHexColor)(t.color,.5),80)},null,8,Zt),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(e.unref(s.darkenHexColor)(t.color,.1),80)},null,8,Yt)],8,Xt),e.createElementVNode("linearGradient",{id:`gradient_tube_body_${t.id}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.color}`},null,8,Kt),e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.setOpacity)(e.unref(s.darkenHexColor)(t.color,.7),100)},null,8,Qt),e.createElementVNode("stop",{offset:"25%","stop-color":e.unref(s.setOpacity)(e.unref(s.darkenHexColor)(t.color,.5),100)},null,8,el),e.createElementVNode("stop",{offset:"75%","stop-color":e.unref(s.setOpacity)(t.color,80)},null,8,tl),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(e.unref(s.lightenHexColor)(t.color,.7),100)},null,8,ll)],8,Jt)]),e.createElementVNode("path",{onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C,d:t.fill.tubeBody,stroke:"#FFFFFF","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_body_${t.id})`},null,40,ol),c>0?(e.openBlock(),e.createElementBlock("path",{key:0,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C,d:t.fill.bottomTubeTop,stroke:"#000000","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,40,nl)):e.createCommentVNode("",!0),e.createElementVNode("path",{onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C,d:t.fill.tubeTop,stroke:"#FFFFFF","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_top_${t.id})`},null,40,rl)],12,Rt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:0:t.proportion*100>l.value.style.chart.legend.hideUnderPercentage?1:0}`),onClick:o=>F("selectDatapoint",t)},[e.createElementVNode("path",{stroke:l.value.style.chart.color,"stroke-dasharray":"1","stroke-width":"0.5","stroke-linecap":"round",d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x+20},${t.fill.sidePointer.y}`},null,8,sl),!t.fill.miniDonut||m.value?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:t.fill.sidePointer.x+20,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:l.value.style.chart.backgroundColor},null,8,ul)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("foreignObject",{x:t.fill.sidePointer.x+30,y:t.fill.sidePointer.y-l.value.style.chart.legend.fontSize,width:n.value.absoluteWidth/2-12,height:l.value.style.chart.legend.fontSize*2,style:{overflow:"visible",position:"relative"}},[l.value.style.chart.legend.showDefault?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${l.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${l.value.style.chart.legend.fontSize}px; color:${l.value.style.chart.legend.color}`)},e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.dataLabel.formatter,t.value,`${t.name}: ${e.unref(s.dataLabel)({v:t.proportion*100,s:"%",r:l.value.style.chart.legend.roundingPercentage})} (${e.unref(s.dataLabel)({p:l.value.style.chart.legend.prefix,v:t.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue})})`,{datapoint:t,seriesIndex:c,type:"barDatapoint"})),5)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",e.mergeProps({ref_for:!0},{datapoint:t,config:l.value,dataset:g.value}),void 0,!0)],8,il)),t.fill.donut&&m.value===t.id?(e.openBlock(),e.createElementBlock("g",cl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(s.calcNutArrowPath)(o,{x:o.cx,y:o.cy},0,8,!1,!0,10),stroke:o.color,class:"vue-ui-donut-arc-path","stroke-width":"0.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,dl)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":1},null,8,hl))),256)),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`hollow_gradient_${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,pl),r[6]||(r[6]=e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,fl)],8,vl)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:28,fill:`url(#hollow_gradient_${k.value})`},null,8,kl))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:14,fill:l.value.style.chart.backgroundColor},null,8,ml))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("g",yl,[e.createElementVNode("text",{"text-anchor":e.unref(s.calcMarkerOffsetX)(o,!0,0).anchor,x:e.unref(s.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(s.calcMarkerOffsetY)(o,12,12),fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.dataLabel.formatter,o.value,`${w(o,t.fill.donut)} (${e.unref(s.dataLabel)({p:l.value.style.chart.legend.prefix,v:o.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue})})`,{datapoint:o,seriesIndex:u,type:"donutDatapoint"})),9,gl),e.createElementVNode("text",{"text-anchor":e.unref(s.calcMarkerOffsetX)(o).anchor,x:e.unref(s.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(s.calcMarkerOffsetY)(o,12,12)+l.value.style.chart.legend.fontSize/1.5,fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(o.name),9,$l)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),t.fill.miniDonut&&!m.value?(e.openBlock(),e.createElementBlock("g",_l,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.miniDonut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":.5},null,8,bl))),256))])):e.createCommentVNode("",!0)],12,al))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:n.value},void 0,!0)],14,Ne)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Bl,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(q)||e.unref(U)})),void 0,!0)])):e.createCommentVNode("",!0),M.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye.default,{key:5,config:{type:"bar3d",style:{backgroundColor:l.value.style.chart.backgroundColor,bar3d:{color:"#CCCCCC"}}}},null,8,["config"])),a.$slots.source?(e.openBlock(),e.createElementBlock("div",xl,[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),M.value&&$.value?(e.openBlock(),e.createBlock($e.default,{key:7,hideDetails:"",config:{open:N.value.showTable,maxHeight:1e4,body:{backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color},head:{backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ge.DataTable,{key:`table_${A.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${l.value.style.chart.title.text}${l.value.style.chart.title.subtitle.text?` : ${l.value.style.chart.title.subtitle.text}`:""}`,onClose:r[1]||(r[1]=t=>N.value.showTable=!1)},{th:e.withCtx(({th:t})=>[e.createElementVNode("div",{innerHTML:t,style:{display:"flex","align-items":"center"}},null,8,Cl)]),td:e.withCtx(({td:t})=>[e.createTextVNode(e.toDisplayString(t.name||t),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],44,Ee))}},wl=Ce._export_sfc(El,[["__scopeId","data-v-178469b1"]]);exports.default=wl;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as y, computed as s, ref as r, onMounted as b, watch as _, createElementBlock as v, openBlock as u, createElementVNode as n, normalizeClass as $, normalizeStyle as p, createCommentVNode as O, renderSlot as c, createBlock as D, normalizeProps as i, mergeProps as N, guardReactiveProps as m } from "vue";
|
|
2
|
-
import w from "./BaseIcon-
|
|
3
|
-
import { u as x } from "./useNestedProp-
|
|
4
|
-
import { u as B, c as I } from "./index-
|
|
2
|
+
import w from "./BaseIcon-DnLYMp6l.js";
|
|
3
|
+
import { u as x } from "./useNestedProp-CcohWUPI.js";
|
|
4
|
+
import { u as B, c as I } from "./index-A6avPZLy.js";
|
|
5
5
|
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const F = ["id"], P = {
|
|
7
7
|
key: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./BaseIcon-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./BaseIcon-DnyvDfd_.cjs"),g=require("./useNestedProp-BPS6WHYi.cjs"),u=require("./index-BkB2NdNK.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=["id"],h={key:0,class:"vue-ui-accordion-arrow"},k={__name:"vue-ui-accordion",props:{config:{type:Object,default(){return{}}},hideDetails:{type:Boolean,default:!1}},setup(l){e.useCssVars(r=>({"95f7c2e4":v.value}));const{vue_ui_accordion:c}=u.useConfig(),d=l,o=e.computed(()=>g.useNestedProp({userConfig:d.config,defaultConfig:c})),a=e.ref(o.value.open),i=e.ref(u.createUid()),t=e.ref(null),n=e.ref(0);e.onMounted(()=>{t.value.open=o.value.open}),e.watch(()=>o.value.open,r=>{t.value.open=r});function s(){(n.value>0||!o.value.open)&&(a.value=!a.value),n.value+=1}const v=e.computed(()=>`${o.value.maxHeight}px`);return(r,C)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("details",{id:`details_${i.value}`,ref_key:"details",ref:t,onToggle:s},[e.createElementVNode("summary",{class:e.normalizeClass({"vue-ui-accordion-headless":l.hideDetails})},[e.createElementVNode("div",{class:"vue-ui-accordion-head",style:e.normalizeStyle(`background:${o.value.head.backgroundColor};padding:${o.value.head.padding}; ${l.hideDetails?"height: 0px !important; padding: 0 !important;":""}`)},[l.hideDetails?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",h,[o.value.head.useArrowSlot?e.renderSlot(r.$slots,"arrow",e.normalizeProps(e.mergeProps({key:0},{backgroundColor:o.value.head.backgroundColor,color:o.value.head.color,iconColor:o.value.head.iconColor,isOpen:a.value})),void 0,!0):(e.openBlock(),e.createBlock(p.default,{key:1,name:"arrowRight",stroke:o.value.head.iconColor},null,8,["stroke"]))])),e.renderSlot(r.$slots,"title",e.normalizeProps(e.guardReactiveProps({color:o.value.head.color,isOpen:a.value})),void 0,!0)],4)],2)],40,m),e.createElementVNode("div",{class:"vue-ui-accordion-content",style:e.normalizeStyle(`background:${o.value.body.backgroundColor};color:${o.value.body.color}`)},[e.renderSlot(r.$slots,"content",e.normalizeProps(e.guardReactiveProps({backgroundColor:o.value.body.backgroundColor,color:o.value.body.color,isOpen:a.value})),void 0,!0)],4)]))}},y=f._export_sfc(k,[["__scopeId","data-v-28fc829c"]]);exports.default=y;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { computed as b, ref as v, watch as Ae, onMounted as Le, createElementBlock as r, openBlock as i, unref as u, normalizeStyle as W, normalizeClass as he, createBlock as L, createCommentVNode as y, renderSlot as h, createVNode as fe, createSlots as Se, withCtx as c, normalizeProps as S, guardReactiveProps as z, createElementVNode as d, Fragment as O, renderList as P, toDisplayString as w, createTextVNode as ce, nextTick as ze } from "vue";
|
|
2
|
-
import { u as Oe, c as Ie, a as Fe, o as Pe, e as Me, v as f, X as Ne, s as X, w as ge, i as k, f as _, q as Re, r as De, x as Ge, y as Ue } from "./index-
|
|
2
|
+
import { u as Oe, c as Ie, a as Fe, o as Pe, e as Me, v as f, X as Ne, s as X, w as ge, i as k, f as _, q as Re, r as De, x as Ge, y as Ue } from "./index-A6avPZLy.js";
|
|
3
3
|
import { t as Be, u as Ee } from "./useResponsive-Cw4oZ8sQ.js";
|
|
4
|
-
import { _ as Ve } from "./Title-
|
|
5
|
-
import { u as We, U as Xe } from "./usePrinter-
|
|
6
|
-
import { _ as je } from "./Tooltip-
|
|
7
|
-
import { D as He } from "./DataTable-
|
|
8
|
-
import Ye from "./vue-ui-skeleton-
|
|
9
|
-
import qe from "./vue-ui-accordion-
|
|
10
|
-
import { u as pe } from "./useNestedProp-
|
|
11
|
-
import { _ as Je } from "./PackageVersion-
|
|
12
|
-
import { P as Ke } from "./PenAndPaper
|
|
4
|
+
import { _ as Ve } from "./Title-D-MrSzZ9.js";
|
|
5
|
+
import { u as We, U as Xe } from "./usePrinter-B6swu4OY.js";
|
|
6
|
+
import { _ as je } from "./Tooltip-CB3FSZI5.js";
|
|
7
|
+
import { D as He } from "./DataTable-CqmM6dKK.js";
|
|
8
|
+
import Ye from "./vue-ui-skeleton-CDtUy7-2.js";
|
|
9
|
+
import qe from "./vue-ui-accordion-B_xjSc0r.js";
|
|
10
|
+
import { u as pe } from "./useNestedProp-CcohWUPI.js";
|
|
11
|
+
import { _ as Je } from "./PackageVersion-CwdFBcJ8.js";
|
|
12
|
+
import { P as Ke } from "./PenAndPaper--UiqgX9J.js";
|
|
13
13
|
import { u as Qe } from "./useUserOptionState-BIvW1Kz7.js";
|
|
14
14
|
import { u as Ze } from "./useChartAccessibility-BWojgys7.js";
|
|
15
15
|
import { _ as et } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-D5k9fip1.cjs"),Y=require("./useResponsive-DQmBAoBf.cjs"),ie=require("./Title-ftVcKm8j.cjs"),J=require("./usePrinter-DCjcVk63.cjs"),ne=require("./Tooltip-Dvq8qMfG.cjs"),ue=require("./DataTable-CxPPog04.cjs"),de=require("./vue-ui-skeleton-Cxg_LxBB.cjs"),ce=require("./vue-ui-accordion-BiVdHPDv.cjs"),K=require("./useNestedProp-CpW5Z_Ke.cjs"),ve=require("./PackageVersion-K_dIfu_1.cjs"),ye=require("./PenAndPaper-D4YVLZC3.cjs"),he=require("./useUserOptionState-BgepsfED.cjs"),fe=require("./useChartAccessibility-Cm7nkzTG.cjs"),pe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ge=["id"],be=["xmlns","viewBox"],me=["x","y","width","height"],xe=["id"],ke=["stop-color"],we=["stop-color"],Ce=["id"],Ne=["stop-color"],_e=["stop-color"],Se=["x","y","width","height","fill","rx"],Le=["x","y","width","height","fill","rx"],Te=["x","y","width","height","fill","rx"],Be=["x","y","width","height","fill","rx"],Ae={key:0},$e=["x","y","fill","font-size","font-weight"],Ee=["x","y","fill","font-size","font-weight"],Ve={key:1},ze=["x","y","font-size","fill","font-weight"],Pe={key:2},Oe={key:0},Ie=["x1","x2","y1","y2","stroke","stroke-width"],Fe=["x1","x2","y1","y2","stroke","stroke-width"],Re=["x1","x2","y1","y2","stroke","stroke-width"],De=["x","y","font-size","fill","font-weight"],Me=["x1","x2","y1","y2","stroke","stroke-width"],qe=["x","y","font-size","fill","font-weight"],Ue=["x","y","font-size","fill","font-weight"],Ge=["x","y","width","height","fill","onMouseover"],He={key:5,class:"vue-data-ui-watermark"},We={__name:"vue-ui-age-pyramid",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(T,{expose:Q}){const{vue_ui_age_pyramid:Z}=r.useConfig(),u=T,m=e.computed(()=>!!u.dataset&&u.dataset.length),v=e.ref(r.createUid()),ee=e.ref(null),C=e.ref(!1),N=e.ref(""),x=e.ref(null),B=e.ref(0),g=e.ref(null),A=e.ref(null),$=e.ref(null),E=e.ref(null),V=e.ref(0),z=e.ref(0),t=e.computed({get:()=>F(),set:l=>l}),{userOptionsVisible:_,setUserOptionsVisibility:P,keepUserOptionState:O}=he.useUserOptionState({config:t.value}),{svgRef:I}=fe.useChartAccessibility({config:t.value.style.title});function F(){const l=K.useNestedProp({userConfig:u.config,defaultConfig:Z});return l.theme?{...K.useNestedProp({userConfig:r.themes.vue_ui_age_pyramid[l.theme]||u.config,defaultConfig:l})}:l}e.watch(()=>u.config,l=>{t.value=F(),_.value=!t.value.userOptions.showOnChartHover,D(),V.value+=1,z.value+=1,c.value.showTable=t.value.table.show,c.value.showTooltip=t.value.style.tooltip.show},{deep:!0});const R=e.ref(null);e.onMounted(()=>{D()});function D(){if(r.objectIsEmpty(u.dataset)&&r.error({componentName:"VueUiAgePyramid",type:"dataset"}),t.value.responsive){const l=Y.throttle(()=>{const{width:i,height:o}=Y.useResponsive({chart:g.value,title:t.value.style.title.text?A.value:null,source:$.value,noTitle:E.value});requestAnimationFrame(()=>{d.value.width=i,d.value.height=o})});R.value=new ResizeObserver(l),R.value.observe(g.value.parentNode)}}const{isPrinting:M,isImaging:q,generatePdf:U,generateImage:G}=J.usePrinter({elementId:`vue-ui-age-pyramid_${v.value}`,fileName:t.value.style.title.text||"vue-ui-age-pyramid",options:t.value.userOptions.print}),te=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),c=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,o=d.value.width-t.value.style.layout.padding.right;return{top:t.value.style.layout.padding.top,left:i,right:o,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}}}),le=e.computed(()=>u.dataset.map(l=>t.value.style.layout.dataLabels.yAxis.display==="age"?l[1]:l[0])),y=e.computed(()=>{const l=oe(b.value/5),i=[],o=[];for(let a=0;a<=5;a+=1){const n=l*a,X=l*(a-5);i.push({value:n,x:s.value.left+s.value.width/2+t.value.style.layout.centerSlit.width+n/b.value*s.value.leftChart.width}),o.push({value:Math.abs(X),x:s.value.left+s.value.width/2+X/b.value*s.value.leftChart.width-t.value.style.layout.centerSlit.width})}return{right:i,left:o}});function oe(l){if(l===0)return 0;const o=10**Math.floor(Math.log10(Math.abs(l)));let a;return l<0,a=Math.round(l/o)*o,a}const b=e.computed(()=>Math.max(...u.dataset.flatMap(l=>l.slice(-2).map(i=>r.checkNaN(i))))),h=e.computed(()=>u.dataset.length),ae=e.computed(()=>u.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}}))),f=e.computed(()=>ae.value.map((l,i)=>{const o=s.value.top+s.value.height/h.value*i,a=s.value.height/h.value-t.value.style.layout.bars.gap;return{segment:l.segment,age:l.age,left:{...l.left,y:o,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:a},right:{...l.right,y:o,color:t.value.style.layout.bars.right.color,x:s.value.rightChart.left,width:r.checkNaN(l.right.proportionToMax*s.value.rightChart.width),height:a}}})),S=e.ref(null);function se(l,i){x.value=l,S.value={datapoint:i,seriesIndex:l,series:f.value,config:t.value};const o=t.value.style.tooltip.customFormat;if(r.isFunction(o)&&r.functionReturnsString(()=>o({seriesIndex:l,datapoint:{segment:i[0],index:i[1],left:i[2],right:i[3]},series:f.value,config:t.value})))N.value=o({seriesIndex:l,datapoint:{segment:i[0],index:i[1],left:i[2],right:i[3]},series:f.value,config:t.value});else{let a="";const n=f.value[l];a+=`<div><b>${n.segment}</b></div>`,a+=`<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>`,a+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,a+='<div style="display:flex; flex-direction:row;gap:12px">',a+=`<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_${v.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>`,a+=`<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_${v.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>`,a+="</div>",a+=`<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>`,a+="</div>",N.value=`<div>${a}</div>`}C.value=!0}function H(){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]]),o=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(i),a=r.createCsvContent(o);r.downloadCsv({csvContent:a,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(a=>[a[0],a[1],a[2].toLocaleString(),a[3].toLocaleString(),(a[2]+a[3]).toLocaleString()]),o={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:o,colNames:l}}),p=e.ref(!1);function re(l){p.value=l,B.value+=1}function W(){c.value.showTable=!c.value.showTable}function j(){c.value.showTooltip=!c.value.showTooltip}const w=e.ref(!1);function L(){w.value=!w.value}return Q({generatePdf:U,generateCsv:H,generateImage:G,toggleTable:W,toggleTooltip:j,toggleAnnotator:L}),(l,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-age-pyramid ${p.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"agePyramid",ref:g,id:`vue-ui-age-pyramid_${v.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%":""}`),onMouseenter:i[2]||(i[2]=()=>e.unref(P)(!0)),onMouseleave:i[3]||(i[3]=()=>e.unref(P)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ye.PenAndPaper,{key:0,svgRef:e.unref(I),backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:w.value,onClose:L},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),te.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:E,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:A,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(ie._sfc_main,{key:`title_${V.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.unref(O)||e.unref(_))?(e.openBlock(),e.createBlock(J.UserOptions,{ref_key:"details",ref:ee,key:`user_options_${B.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(q),isPrinting:e.unref(M),uid:v.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:p.value,isTooltip:c.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:re,onGeneratePdf:e.unref(U),onGenerateCsv:H,onGenerateImage:e.unref(G),onToggleTable:W,onToggleTooltip:j,onToggleAnnotator:L,style:e.normalizeStyle({visibility:e.unref(O)?e.unref(_)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:o,color:a})=>[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:o,color:a})),void 0,!0)]),key:"0"}:void 0,l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:a})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:a})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:a})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:a})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:I,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":p.value,"vue-data-ui-fulscreen--off":!p.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(ve._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:s.value.left,y:s.value.top,width:s.value.width,height:s.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,me)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`age_pyramid_left_${v.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,ke),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,we)],8,xe),e.createElementVNode("linearGradient",{id:`age_pyramid_right_${v.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,Ne),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.bars.right.color},null,8,_e)],8,Ce)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:o.left.x,y:o.left.y,width:e.unref(r.checkNaN)(o.left.width<=0?1e-4:o.left.width),height:o.left.height<=0?1e-4:o.left.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,Se),e.createElementVNode("rect",{x:o.left.x,y:o.left.y,width:o.left.width<=0?1e-4:o.left.width,height:o.left.height<=0?1e-4:o.left.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${v.value})`:o.left.color,rx:t.value.style.layout.bars.borderRadius},null,8,Le),e.createElementVNode("rect",{x:o.right.x,y:o.right.y,width:o.right.width<=0?1e-4:o.right.width,height:o.right.height<=0?1e-4:o.right.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,Te),e.createElementVNode("rect",{x:o.right.x,y:o.right.y,width:o.right.width<=0?1e-4:o.right.width,height:o.right.height<=0?1e-4:o.right.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${v.value})`:o.right.color,rx:t.value.style.layout.bars.borderRadius},null,8,Be)]))),256)),e.createElementVNode("g",null,[t.value.style.layout.dataLabels.sideTitles.show?(e.openBlock(),e.createElementBlock("g",Ae,[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,Ee)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(le.value,(o,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a%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/h.value*a+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,o,e.unref(r.dataLabel)({v:o}),{datapoint:o,seriesIndex:a})),9,ze)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",Pe,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Oe,[e.createElementVNode("line",{x1:y.value.right[0].x,x2:y.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,Ie),e.createElementVNode("line",{x1:y.value.left[0].x,x2:y.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,Fe)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.right,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.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,Re)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:o.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,o.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(r.dataLabel)({v:o.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:o,seriesIndex:a})),9,De)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.left,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.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,Me)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:o.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,o.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(r.dataLabel)({v:o.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:o,seriesIndex:a})),9,qe)]))),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,Ue)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.dataset,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:s.value.left,y:s.value.top+s.value.height/h.value*a-t.value.style.layout.bars.gap/2,width:s.value.width<=0?1e-4:s.value.width,height:s.value.height/h.value<=0?1e-4:s.value.height/h.value,fill:x.value!==null&&x.value===a?e.unref(r.setOpacity)(t.value.style.highlighter.color,t.value.style.highlighter.opacity):"transparent",onMouseover:n=>se(a,o),onMouseleave:i[0]||(i[0]=n=>{x.value=null,C.value=!1})},null,40,Ge)]))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,be)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",He,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(M)||e.unref(q)})),void 0,!0)])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(de.default,{key:6,config:{type:"pyramid",style:{backgroundColor:t.value.style.backgroundColor,pyramid:{color:"#CCCCCC"}}}},null,8,["config"])),e.renderSlot(l.$slots,"legend",{legend:f.value},void 0,!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:$,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ne._sfc_main,{show:c.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:g.value,content:N.value,isFullscreen:p.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({...S.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...S.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(ce.default,{key:8,hideDetails:"",config:{open:c.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(ue.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]=o=>c.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,ge))}},je=pe._export_sfc(We,[["__scopeId","data-v-beb1c78c"]]);exports.default=je;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-BkB2NdNK.cjs"),Y=require("./useResponsive-DQmBAoBf.cjs"),ie=require("./Title-DIthuQxK.cjs"),J=require("./usePrinter-Bn2DXY9B.cjs"),ne=require("./Tooltip-D43-t32P.cjs"),ue=require("./DataTable-CngiZztx.cjs"),de=require("./vue-ui-skeleton-CyD0WfiB.cjs"),ce=require("./vue-ui-accordion-CGoz8eg6.cjs"),K=require("./useNestedProp-BPS6WHYi.cjs"),ve=require("./PackageVersion-yffL-jfv.cjs"),ye=require("./PenAndPaper-CN2oty-x.cjs"),he=require("./useUserOptionState-BgepsfED.cjs"),fe=require("./useChartAccessibility-Cm7nkzTG.cjs"),pe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ge=["id"],be=["xmlns","viewBox"],me=["x","y","width","height"],xe=["id"],ke=["stop-color"],we=["stop-color"],Ce=["id"],Ne=["stop-color"],_e=["stop-color"],Se=["x","y","width","height","fill","rx"],Le=["x","y","width","height","fill","rx"],Te=["x","y","width","height","fill","rx"],Be=["x","y","width","height","fill","rx"],Ae={key:0},$e=["x","y","fill","font-size","font-weight"],Ee=["x","y","fill","font-size","font-weight"],Ve={key:1},ze=["x","y","font-size","fill","font-weight"],Pe={key:2},Oe={key:0},Ie=["x1","x2","y1","y2","stroke","stroke-width"],Fe=["x1","x2","y1","y2","stroke","stroke-width"],Re=["x1","x2","y1","y2","stroke","stroke-width"],De=["x","y","font-size","fill","font-weight"],Me=["x1","x2","y1","y2","stroke","stroke-width"],qe=["x","y","font-size","fill","font-weight"],Ue=["x","y","font-size","fill","font-weight"],Ge=["x","y","width","height","fill","onMouseover"],He={key:5,class:"vue-data-ui-watermark"},We={__name:"vue-ui-age-pyramid",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(T,{expose:Q}){const{vue_ui_age_pyramid:Z}=r.useConfig(),u=T,m=e.computed(()=>!!u.dataset&&u.dataset.length),v=e.ref(r.createUid()),ee=e.ref(null),C=e.ref(!1),N=e.ref(""),x=e.ref(null),B=e.ref(0),g=e.ref(null),A=e.ref(null),$=e.ref(null),E=e.ref(null),V=e.ref(0),z=e.ref(0),t=e.computed({get:()=>F(),set:l=>l}),{userOptionsVisible:_,setUserOptionsVisibility:P,keepUserOptionState:O}=he.useUserOptionState({config:t.value}),{svgRef:I}=fe.useChartAccessibility({config:t.value.style.title});function F(){const l=K.useNestedProp({userConfig:u.config,defaultConfig:Z});return l.theme?{...K.useNestedProp({userConfig:r.themes.vue_ui_age_pyramid[l.theme]||u.config,defaultConfig:l})}:l}e.watch(()=>u.config,l=>{t.value=F(),_.value=!t.value.userOptions.showOnChartHover,D(),V.value+=1,z.value+=1,c.value.showTable=t.value.table.show,c.value.showTooltip=t.value.style.tooltip.show},{deep:!0});const R=e.ref(null);e.onMounted(()=>{D()});function D(){if(r.objectIsEmpty(u.dataset)&&r.error({componentName:"VueUiAgePyramid",type:"dataset"}),t.value.responsive){const l=Y.throttle(()=>{const{width:i,height:o}=Y.useResponsive({chart:g.value,title:t.value.style.title.text?A.value:null,source:$.value,noTitle:E.value});requestAnimationFrame(()=>{d.value.width=i,d.value.height=o})});R.value=new ResizeObserver(l),R.value.observe(g.value.parentNode)}}const{isPrinting:M,isImaging:q,generatePdf:U,generateImage:G}=J.usePrinter({elementId:`vue-ui-age-pyramid_${v.value}`,fileName:t.value.style.title.text||"vue-ui-age-pyramid",options:t.value.userOptions.print}),te=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),c=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,o=d.value.width-t.value.style.layout.padding.right;return{top:t.value.style.layout.padding.top,left:i,right:o,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}}}),le=e.computed(()=>u.dataset.map(l=>t.value.style.layout.dataLabels.yAxis.display==="age"?l[1]:l[0])),y=e.computed(()=>{const l=oe(b.value/5),i=[],o=[];for(let a=0;a<=5;a+=1){const n=l*a,X=l*(a-5);i.push({value:n,x:s.value.left+s.value.width/2+t.value.style.layout.centerSlit.width+n/b.value*s.value.leftChart.width}),o.push({value:Math.abs(X),x:s.value.left+s.value.width/2+X/b.value*s.value.leftChart.width-t.value.style.layout.centerSlit.width})}return{right:i,left:o}});function oe(l){if(l===0)return 0;const o=10**Math.floor(Math.log10(Math.abs(l)));let a;return l<0,a=Math.round(l/o)*o,a}const b=e.computed(()=>Math.max(...u.dataset.flatMap(l=>l.slice(-2).map(i=>r.checkNaN(i))))),h=e.computed(()=>u.dataset.length),ae=e.computed(()=>u.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}}))),f=e.computed(()=>ae.value.map((l,i)=>{const o=s.value.top+s.value.height/h.value*i,a=s.value.height/h.value-t.value.style.layout.bars.gap;return{segment:l.segment,age:l.age,left:{...l.left,y:o,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:a},right:{...l.right,y:o,color:t.value.style.layout.bars.right.color,x:s.value.rightChart.left,width:r.checkNaN(l.right.proportionToMax*s.value.rightChart.width),height:a}}})),S=e.ref(null);function se(l,i){x.value=l,S.value={datapoint:i,seriesIndex:l,series:f.value,config:t.value};const o=t.value.style.tooltip.customFormat;if(r.isFunction(o)&&r.functionReturnsString(()=>o({seriesIndex:l,datapoint:{segment:i[0],index:i[1],left:i[2],right:i[3]},series:f.value,config:t.value})))N.value=o({seriesIndex:l,datapoint:{segment:i[0],index:i[1],left:i[2],right:i[3]},series:f.value,config:t.value});else{let a="";const n=f.value[l];a+=`<div><b>${n.segment}</b></div>`,a+=`<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>`,a+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,a+='<div style="display:flex; flex-direction:row;gap:12px">',a+=`<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_${v.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>`,a+=`<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_${v.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>`,a+="</div>",a+=`<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>`,a+="</div>",N.value=`<div>${a}</div>`}C.value=!0}function H(){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]]),o=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(i),a=r.createCsvContent(o);r.downloadCsv({csvContent:a,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(a=>[a[0],a[1],a[2].toLocaleString(),a[3].toLocaleString(),(a[2]+a[3]).toLocaleString()]),o={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:o,colNames:l}}),p=e.ref(!1);function re(l){p.value=l,B.value+=1}function W(){c.value.showTable=!c.value.showTable}function j(){c.value.showTooltip=!c.value.showTooltip}const w=e.ref(!1);function L(){w.value=!w.value}return Q({generatePdf:U,generateCsv:H,generateImage:G,toggleTable:W,toggleTooltip:j,toggleAnnotator:L}),(l,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-age-pyramid ${p.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"agePyramid",ref:g,id:`vue-ui-age-pyramid_${v.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%":""}`),onMouseenter:i[2]||(i[2]=()=>e.unref(P)(!0)),onMouseleave:i[3]||(i[3]=()=>e.unref(P)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ye.PenAndPaper,{key:0,svgRef:e.unref(I),backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:w.value,onClose:L},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),te.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:E,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:A,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(ie._sfc_main,{key:`title_${V.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.unref(O)||e.unref(_))?(e.openBlock(),e.createBlock(J.UserOptions,{ref_key:"details",ref:ee,key:`user_options_${B.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(q),isPrinting:e.unref(M),uid:v.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:p.value,isTooltip:c.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:re,onGeneratePdf:e.unref(U),onGenerateCsv:H,onGenerateImage:e.unref(G),onToggleTable:W,onToggleTooltip:j,onToggleAnnotator:L,style:e.normalizeStyle({visibility:e.unref(O)?e.unref(_)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:o,color:a})=>[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:o,color:a})),void 0,!0)]),key:"0"}:void 0,l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:a})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:a})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:a})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:a})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:I,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":p.value,"vue-data-ui-fulscreen--off":!p.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(ve._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:s.value.left,y:s.value.top,width:s.value.width,height:s.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,me)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`age_pyramid_left_${v.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,ke),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,we)],8,xe),e.createElementVNode("linearGradient",{id:`age_pyramid_right_${v.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,Ne),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.bars.right.color},null,8,_e)],8,Ce)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:o.left.x,y:o.left.y,width:e.unref(r.checkNaN)(o.left.width<=0?1e-4:o.left.width),height:o.left.height<=0?1e-4:o.left.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,Se),e.createElementVNode("rect",{x:o.left.x,y:o.left.y,width:o.left.width<=0?1e-4:o.left.width,height:o.left.height<=0?1e-4:o.left.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${v.value})`:o.left.color,rx:t.value.style.layout.bars.borderRadius},null,8,Le),e.createElementVNode("rect",{x:o.right.x,y:o.right.y,width:o.right.width<=0?1e-4:o.right.width,height:o.right.height<=0?1e-4:o.right.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,Te),e.createElementVNode("rect",{x:o.right.x,y:o.right.y,width:o.right.width<=0?1e-4:o.right.width,height:o.right.height<=0?1e-4:o.right.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${v.value})`:o.right.color,rx:t.value.style.layout.bars.borderRadius},null,8,Be)]))),256)),e.createElementVNode("g",null,[t.value.style.layout.dataLabels.sideTitles.show?(e.openBlock(),e.createElementBlock("g",Ae,[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,Ee)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(le.value,(o,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a%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/h.value*a+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,o,e.unref(r.dataLabel)({v:o}),{datapoint:o,seriesIndex:a})),9,ze)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",Pe,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Oe,[e.createElementVNode("line",{x1:y.value.right[0].x,x2:y.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,Ie),e.createElementVNode("line",{x1:y.value.left[0].x,x2:y.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,Fe)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.right,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.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,Re)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:o.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,o.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(r.dataLabel)({v:o.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:o,seriesIndex:a})),9,De)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.left,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.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,Me)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:o.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,o.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(r.dataLabel)({v:o.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:o,seriesIndex:a})),9,qe)]))),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,Ue)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.dataset,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:s.value.left,y:s.value.top+s.value.height/h.value*a-t.value.style.layout.bars.gap/2,width:s.value.width<=0?1e-4:s.value.width,height:s.value.height/h.value<=0?1e-4:s.value.height/h.value,fill:x.value!==null&&x.value===a?e.unref(r.setOpacity)(t.value.style.highlighter.color,t.value.style.highlighter.opacity):"transparent",onMouseover:n=>se(a,o),onMouseleave:i[0]||(i[0]=n=>{x.value=null,C.value=!1})},null,40,Ge)]))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,be)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",He,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(M)||e.unref(q)})),void 0,!0)])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(de.default,{key:6,config:{type:"pyramid",style:{backgroundColor:t.value.style.backgroundColor,pyramid:{color:"#CCCCCC"}}}},null,8,["config"])),e.renderSlot(l.$slots,"legend",{legend:f.value},void 0,!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:$,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ne._sfc_main,{show:c.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:g.value,content:N.value,isFullscreen:p.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({...S.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...S.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(ce.default,{key:8,hideDetails:"",config:{open:c.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(ue.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]=o=>c.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,ge))}},je=pe._export_sfc(We,[["__scopeId","data-v-beb1c78c"]]);exports.default=je;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z as k, A as p, u as v, B as w } from "./index-
|
|
2
|
-
import { d as A } from "./dom-to-png-
|
|
1
|
+
import { z as k, A as p, u as v, B as w } from "./index-A6avPZLy.js";
|
|
2
|
+
import { d as A } from "./dom-to-png-5VOUqviC.js";
|
|
3
3
|
import { E as M } from "./jspdf.es.min-t_OLULUR.js";
|
|
4
4
|
import { createElementBlock as d, openBlock as n, createElementVNode as r, normalizeStyle as c, toDisplayString as u, createCommentVNode as a, normalizeClass as y, createStaticVNode as F, withDirectives as N, vModelCheckbox as g, vModelText as C, renderSlot as O, Fragment as L, renderList as G } from "vue";
|
|
5
5
|
import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-BkB2NdNK.cjs"),N=require("./dom-to-png-BJwSQsyy.cjs"),I=require("./jspdf.es.min-C518mmma.cjs"),i=require("vue"),b=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 o=this.treeShake({defaultConfig:e,userConfig:this.config});return this.convertConfigColors(o)},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 o=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,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-BkB2NdNK.cjs"),F=require("./useNestedProp-BPS6WHYi.cjs"),J=require("./Title-DIthuQxK.cjs"),K=require("./Legend-CYRB328N.cjs"),I=require("./usePrinter-Bn2DXY9B.cjs"),Q=require("./PackageVersion-yffL-jfv.cjs"),Z=require("./PenAndPaper-CN2oty-x.cjs"),ee=require("./vue-ui-skeleton-CyD0WfiB.cjs"),te=require("./useUserOptionState-BgepsfED.cjs"),ae=require("./useChartAccessibility-Cm7nkzTG.cjs"),le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),re=["id"],oe={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},se=["xmlns","viewBox"],ne=["width","height"],ue={key:1},ie=["x","y","height","width","fill","stroke"],ce=["x","y","height","width","rx","fill","stroke","stroke-width"],de=["x","y","height","width","fill","stroke","stroke-width"],he=["x","y","font-size","font-weight","fill"],ve=["x","y","height","width","rx","fill","stroke","stroke-width"],me={key:3},ge=["x","y","fill","font-size","font-weight"],fe={key:4},ye=["x1","x2","y1","y2","stroke"],pe={key:5,class:"vue-data-ui-watermark"},ke={class:"vue-ui-bullet-legend-item",dir:"auto"},be={style:{"margin-right":"2px"}},we={key:7,ref:"source",dir:"auto"},Be={__name:"vue-ui-bullet",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(z,{expose:H}){const{vue_ui_bullet:T}=s.useConfig(),n=z,w=e.ref(null),q=e.ref(null),B=e.ref(0),M=e.ref(null),U=e.ref(0),h=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
|
{
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ref as g, computed as f, onMounted as ge, watch as K, onBeforeUnmount as fe, createElementBlock as o, openBlock as r, unref as u, normalizeStyle as H, normalizeClass as Q, createBlock as w, createCommentVNode as i, createElementVNode as x, createSlots as me, withCtx as p, renderSlot as m, normalizeProps as L, guardReactiveProps as $, createVNode as ye, Fragment as M, renderList as T, toDisplayString as O } from "vue";
|
|
2
|
-
import { u as pe, o as be, e as Z, g as ke, c as we, l as xe, D as _e, d as Ce, i as A, f as B, X as Le, a as $e } from "./index-
|
|
3
|
-
import { u as ee } from "./useNestedProp-
|
|
4
|
-
import { _ as Oe } from "./Title-
|
|
5
|
-
import { L as Ae } from "./Legend-
|
|
6
|
-
import { u as Be, U as Pe } from "./usePrinter-
|
|
7
|
-
import { _ as Fe } from "./PackageVersion-
|
|
8
|
-
import { P as Ie } from "./PenAndPaper
|
|
9
|
-
import Se from "./vue-ui-skeleton-
|
|
2
|
+
import { u as pe, o as be, e as Z, g as ke, c as we, l as xe, D as _e, d as Ce, i as A, f as B, X as Le, a as $e } from "./index-A6avPZLy.js";
|
|
3
|
+
import { u as ee } from "./useNestedProp-CcohWUPI.js";
|
|
4
|
+
import { _ as Oe } from "./Title-D-MrSzZ9.js";
|
|
5
|
+
import { L as Ae } from "./Legend-2egPeIm_.js";
|
|
6
|
+
import { u as Be, U as Pe } from "./usePrinter-B6swu4OY.js";
|
|
7
|
+
import { _ as Fe } from "./PackageVersion-CwdFBcJ8.js";
|
|
8
|
+
import { P as Ie } from "./PenAndPaper--UiqgX9J.js";
|
|
9
|
+
import Se from "./vue-ui-skeleton-CDtUy7-2.js";
|
|
10
10
|
import { u as He } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { u as Me } from "./useChartAccessibility-BWojgys7.js";
|
|
12
12
|
import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|