vue-data-ui 2.4.53 → 2.4.55
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-XbzVXHDF.js → Arrow-D9oPJhO0.js} +1 -1
- package/dist/{Arrow-BGjtcB03.cjs → Arrow-Lu-rJXGl.cjs} +1 -1
- package/dist/{BaseIcon-DGRZS55E.cjs → BaseIcon-DxRKjbz1.cjs} +1 -1
- package/dist/{BaseIcon-CiQzR1fE.js → BaseIcon-mHeKnX4-.js} +1 -1
- package/dist/{DataTable-jvL0XGWl.js → DataTable-D8MTezlM.js} +2 -2
- package/dist/{DataTable-DWQiMziO.cjs → DataTable-rMMvio1U.cjs} +1 -1
- package/dist/{Legend-BstxUr4T.cjs → Legend-Ba34oTdO.cjs} +1 -1
- package/dist/{Legend-DcIfRSNC.js → Legend-wr5XLSfL.js} +1 -1
- package/dist/{PackageVersion-CeJ2R9gK.cjs → PackageVersion-BJi2ywG9.cjs} +1 -1
- package/dist/{PackageVersion-Ve0s76sL.js → PackageVersion-xnKIqody.js} +1 -1
- package/dist/{PenAndPaper-DQPbe0G_.cjs → PenAndPaper-CX6N7FR7.cjs} +1 -1
- package/dist/{PenAndPaper-IHG7xTmx.js → PenAndPaper-iek0aH4r.js} +3 -3
- package/dist/{Shape-Bzx4qKcd.cjs → Shape-9v-w5i6N.cjs} +1 -1
- package/dist/{Shape-Rg6yW7m3.js → Shape-B_lWjwmP.js} +1 -1
- package/dist/{Slicer-CPp7_WWa.cjs → Slicer--m1nOwbO.cjs} +1 -1
- package/dist/{Slicer-CP2Z31Lc.js → Slicer-Bwg4WzZf.js} +2 -2
- package/dist/{Title-CSyDhu3S.cjs → Title-BWhYDGb-.cjs} +1 -1
- package/dist/{Title-DLo3Zo2_.js → Title-BecmraNn.js} +1 -1
- package/dist/{Tooltip-CA1QhFeE.js → Tooltip-BZYApG0d.js} +1 -1
- package/dist/{Tooltip-D88h1zvE.cjs → Tooltip-cPxZzSgr.cjs} +1 -1
- package/dist/{index-C3wsuQ2C.cjs → index-DGcOW0vL.cjs} +1 -1
- package/dist/{index-DhxnZ6ZS.js → index-Dhlyke5j.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CFwQtnNB.cjs → useNestedProp-C9KmUVBy.cjs} +1 -1
- package/dist/{useNestedProp-BcqToEU0.js → useNestedProp-D9eTQKze.js} +1 -1
- package/dist/{usePrinter-mDGfOQZA.js → usePrinter-BnBk8gnl.js} +1 -1
- package/dist/{usePrinter-Dglf1bsw.cjs → usePrinter-DpEuGyLP.cjs} +1 -1
- package/dist/{vue-data-ui-BM5qFlPf.cjs → vue-data-ui-CGGZHtx3.cjs} +1 -1
- package/dist/{vue-data-ui-C6tJVggL.js → vue-data-ui-aSR5-7gp.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BFzCyxbR.js → vue-ui-3d-bar-D9pXx9fJ.js} +9 -9
- package/dist/{vue-ui-3d-bar-DiL5x37F.cjs → vue-ui-3d-bar-Dm2wnS6e.cjs} +1 -1
- package/dist/{vue-ui-accordion-DDp8hUlk.js → vue-ui-accordion-CGpOsWNN.js} +3 -3
- package/dist/{vue-ui-accordion-kv5FuXqU.cjs → vue-ui-accordion-mtZIFAv9.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-xYMc6DPS.cjs → vue-ui-age-pyramid-BcMERmA5.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-ORFLMq65.js → vue-ui-age-pyramid-dbX4WaaY.js} +10 -10
- package/dist/{vue-ui-annotator-J_Ssv585.cjs → vue-ui-annotator-CY-rCEDB.cjs} +1 -1
- package/dist/{vue-ui-annotator-CYyuSx8D.js → vue-ui-annotator-DfRkh1D_.js} +1 -1
- package/dist/{vue-ui-bullet-D8w5qQKc.js → vue-ui-bullet-CUoiQcb5.js} +8 -8
- package/dist/{vue-ui-bullet-BbOqOHbK.cjs → vue-ui-bullet-jsXAmYsX.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BbKj6Lt5.cjs → vue-ui-candlestick-BD58hsql.cjs} +1 -1
- package/dist/{vue-ui-candlestick-B7jJlgII.js → vue-ui-candlestick-BLIICgdz.js} +11 -11
- package/dist/{vue-ui-carousel-table-Cazhvs3E.cjs → vue-ui-carousel-table-CCmB_BJ7.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-3ntrCePt.js → vue-ui-carousel-table-NUliqwxA.js} +4 -4
- package/dist/{vue-ui-chestnut-apUInPn_.js → vue-ui-chestnut-DIPBJ5D2.js} +8 -8
- package/dist/{vue-ui-chestnut-DyFTfNZi.cjs → vue-ui-chestnut-vivMozHy.cjs} +1 -1
- package/dist/{vue-ui-cursor-CsNO0-Tw.cjs → vue-ui-cursor-Cgv_2p2T.cjs} +1 -1
- package/dist/{vue-ui-cursor-CFTO66GQ.js → vue-ui-cursor-CzLtzn7N.js} +2 -2
- package/dist/{vue-ui-dashboard-DddJvm7i.cjs → vue-ui-dashboard-CtlrjFxl.cjs} +1 -1
- package/dist/{vue-ui-dashboard-C-pDSWwi.js → vue-ui-dashboard-DqZVcLlQ.js} +2 -2
- package/dist/{vue-ui-digits-DWAbSFx3.js → vue-ui-digits-CGFznMkY.js} +2 -2
- package/dist/{vue-ui-digits-DSqN9pA7.cjs → vue-ui-digits-e1HQVXb9.cjs} +1 -1
- package/dist/{vue-ui-donut-DSeDfu4H.js → vue-ui-donut-DmLq2iWK.js} +16 -16
- package/dist/{vue-ui-donut-evolution-CYtTDj7r.cjs → vue-ui-donut-evolution-4odFZbUM.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-D7h33-ti.js → vue-ui-donut-evolution-DpollzkH.js} +11 -11
- package/dist/vue-ui-donut-z2eOcEI5.cjs +1 -0
- package/dist/{vue-ui-dumbbell-LF5uy2pG.js → vue-ui-dumbbell-DLr4Lh3u.js} +10 -10
- package/dist/{vue-ui-dumbbell-DAK7iUrl.cjs → vue-ui-dumbbell-i7E-B6zN.cjs} +1 -1
- package/dist/{vue-ui-flow-u3UVnWTH.cjs → vue-ui-flow-BuYhmRed.cjs} +1 -1
- package/dist/{vue-ui-flow-ClPKB4R5.js → vue-ui-flow-CosxAYPJ.js} +9 -9
- package/dist/{vue-ui-funnel-BY7rqfpW.cjs → vue-ui-funnel-BNPISgC0.cjs} +1 -1
- package/dist/{vue-ui-funnel-BIXUXI8z.js → vue-ui-funnel-C_2YAtFj.js} +8 -8
- package/dist/{vue-ui-galaxy-CEnGrqn3.js → vue-ui-galaxy-D1cWyHG9.js} +11 -11
- package/dist/{vue-ui-galaxy-DBnbXO8c.cjs → vue-ui-galaxy-DMOx2Le7.cjs} +1 -1
- package/dist/{vue-ui-gauge-C7Qchm0R.js → vue-ui-gauge-Dnq0t_eH.js} +7 -7
- package/dist/{vue-ui-gauge-CJYWRyeq.cjs → vue-ui-gauge-Dw7QvZei.cjs} +1 -1
- package/dist/{vue-ui-gizmo-C9_Ciat_.cjs → vue-ui-gizmo-DcT9tTS-.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CKZRt29V.js → vue-ui-gizmo-vHQVGdpR.js} +3 -3
- package/dist/{vue-ui-heatmap-BlbOJnS0.js → vue-ui-heatmap-CtxQI5Mq.js} +10 -10
- package/dist/{vue-ui-heatmap-olBNo_Ui.cjs → vue-ui-heatmap-D-r7qdj0.cjs} +1 -1
- package/dist/{vue-ui-history-plot-Cyd53pxt.cjs → vue-ui-history-plot-B8pP20QN.cjs} +1 -1
- package/dist/{vue-ui-history-plot-CBpL_OyR.js → vue-ui-history-plot-BjcPvcaK.js} +11 -11
- package/dist/{vue-ui-kpi-CkcQ40VT.cjs → vue-ui-kpi-BPwU5pay.cjs} +1 -1
- package/dist/{vue-ui-kpi-C2XDua17.js → vue-ui-kpi-BjuKXuQM.js} +3 -3
- package/dist/{vue-ui-mini-loader-CpeOqmXd.cjs → vue-ui-mini-loader-DE2NXywp.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DXF2Zpi6.js → vue-ui-mini-loader-DZYw7bD6.js} +2 -2
- package/dist/{vue-ui-molecule-ekgpnwl8.js → vue-ui-molecule-A3yHt8cl.js} +11 -11
- package/dist/{vue-ui-molecule-qQjh4AkD.cjs → vue-ui-molecule-B8I4iuBQ.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-KoW8hhxL.cjs → vue-ui-mood-radar-BKtVVOZz.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CV30YU_f.js → vue-ui-mood-radar-Dh1qbcXz.js} +11 -11
- package/dist/{vue-ui-nested-donuts-AkaYvLCi.cjs → vue-ui-nested-donuts-B5ixdGsx.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-DZ_eS-bB.js → vue-ui-nested-donuts-DPuIU4IX.js} +11 -11
- package/dist/{vue-ui-onion-Bl1UUCFU.cjs → vue-ui-onion-BTMaTU2a.cjs} +1 -1
- package/dist/{vue-ui-onion-YfHn7AeD.js → vue-ui-onion-BgcJBzxI.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-Dv_UD2bi.cjs → vue-ui-parallel-coordinate-plot-Cye2V8MQ.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BEqbS5A6.js → vue-ui-parallel-coordinate-plot-Ksh3Tuvx.js} +12 -12
- package/dist/{vue-ui-quadrant-BU_pD15l.js → vue-ui-quadrant-DGBXeeOe.js} +12 -12
- package/dist/{vue-ui-quadrant-DO6afeTp.cjs → vue-ui-quadrant-DOet5Q47.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-U-1paiOI.js → vue-ui-quick-chart-DQcck_x6.js} +53 -54
- package/dist/{vue-ui-quick-chart-ByDBV3lo.cjs → vue-ui-quick-chart-DhCA-7B5.cjs} +5 -5
- package/dist/{vue-ui-radar-B5FUXS1e.js → vue-ui-radar-CI5egNer.js} +12 -12
- package/dist/{vue-ui-radar-DLsIiPBR.cjs → vue-ui-radar-qk20LKHr.cjs} +1 -1
- package/dist/{vue-ui-rating-D4-ebrWA.cjs → vue-ui-rating-CYhvKLSi.cjs} +1 -1
- package/dist/{vue-ui-rating-DcCUrP6L.js → vue-ui-rating-Ch2PSMeW.js} +2 -2
- package/dist/{vue-ui-relation-circle-2i7B4Yf-.js → vue-ui-relation-circle-G6KC4zs0.js} +7 -7
- package/dist/{vue-ui-relation-circle-jPx6gmw1.cjs → vue-ui-relation-circle-t-WDgqtA.cjs} +1 -1
- package/dist/{vue-ui-rings-6JF72UH8.cjs → vue-ui-rings-DxpkXXwJ.cjs} +1 -1
- package/dist/{vue-ui-rings-DG0DQD21.js → vue-ui-rings-NIIfGve4.js} +11 -11
- package/dist/{vue-ui-scatter-j6SU-TUb.js → vue-ui-scatter-BqxcKjb2.js} +12 -12
- package/dist/{vue-ui-scatter-CfbMuDQy.cjs → vue-ui-scatter-DynxMn7l.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BKfP266_.cjs → vue-ui-screenshot-BUP9G_uK.cjs} +1 -1
- package/dist/{vue-ui-screenshot-B6hhgFz_.js → vue-ui-screenshot-DreZMmrO.js} +1 -1
- package/dist/{vue-ui-skeleton-pdtGfiV6.js → vue-ui-skeleton-DQqwDUqP.js} +3 -3
- package/dist/{vue-ui-skeleton-99lBQ_mF.cjs → vue-ui-skeleton-D_lU-hWK.cjs} +1 -1
- package/dist/{vue-ui-smiley-8UembS7P.cjs → vue-ui-smiley-AGwF1X7u.cjs} +1 -1
- package/dist/{vue-ui-smiley-fOlIEhGS.js → vue-ui-smiley-CdmO39JE.js} +2 -2
- package/dist/{vue-ui-spark-trend-BkPSkOrh.js → vue-ui-spark-trend-BUx5YwEZ.js} +5 -5
- package/dist/{vue-ui-spark-trend-CV5Uq241.cjs → vue-ui-spark-trend-DD1s6Thz.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-qB9reaJo.js → vue-ui-sparkbar-KZd6YQwQ.js} +4 -4
- package/dist/{vue-ui-sparkbar-DUNqm_AP.cjs → vue-ui-sparkbar-mlrF_QEO.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-D0hLQuMH.cjs → vue-ui-sparkgauge-B4J8ZYzs.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Mmm3mt-c.js → vue-ui-sparkgauge-Db-d9x9r.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-9yQ-E0co.js → vue-ui-sparkhistogram-B61JDza9.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-CuB-M26R.cjs → vue-ui-sparkhistogram-DzJ5NNi9.cjs} +1 -1
- package/dist/{vue-ui-sparkline-D_QkkgS-.js → vue-ui-sparkline-P6ubVgp0.js} +4 -4
- package/dist/{vue-ui-sparkline-Du8Hm28x.cjs → vue-ui-sparkline-S6HehQ0a.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-B_I1tmuS.cjs → vue-ui-sparkstackbar-BDBqoeJQ.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BDubVDPN.js → vue-ui-sparkstackbar-DKtOqh-Y.js} +5 -5
- package/dist/{vue-ui-stackbar-DHnilreT.cjs → vue-ui-stackbar-DCCcEgQZ.cjs} +1 -1
- package/dist/{vue-ui-stackbar-rNiqr7aF.js → vue-ui-stackbar-WShCS9A1.js} +12 -12
- package/dist/{vue-ui-strip-plot-DPn3qgdB.js → vue-ui-strip-plot-Bq3u8k2l.js} +11 -11
- package/dist/{vue-ui-strip-plot-DlRej1u9.cjs → vue-ui-strip-plot-DH4LQTfB.cjs} +1 -1
- package/dist/{vue-ui-table-DLcFdjyM.cjs → vue-ui-table-aV4pHrWD.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DIkXPyqe.cjs → vue-ui-table-heatmap-CruECEYA.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DQXI2uPZ.js → vue-ui-table-heatmap-DsdyE14x.js} +4 -4
- package/dist/{vue-ui-table-BrZ__Cd2.js → vue-ui-table-sJN2rS51.js} +1 -1
- package/dist/{vue-ui-table-sparkline-BUNsAEVY.js → vue-ui-table-sparkline-BlUe2QFV.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BazGMr3R.cjs → vue-ui-table-sparkline-CcsNg6th.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DMkD9fS8.js → vue-ui-thermometer-80aa72_6.js} +7 -7
- package/dist/{vue-ui-thermometer-_gbnwB1j.cjs → vue-ui-thermometer-ButIh820.cjs} +1 -1
- package/dist/{vue-ui-timer-Dv-GSUf1.js → vue-ui-timer-CuUSpISM.js} +5 -5
- package/dist/{vue-ui-timer-BTfgxjIc.cjs → vue-ui-timer-Dk4I7cRn.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-Ct9y13Sl.cjs → vue-ui-tiremarks-BsYfeNCN.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CEMrBJPF.js → vue-ui-tiremarks-CQ98xHZ5.js} +7 -7
- package/dist/{vue-ui-treemap-D7SBHWJ2.cjs → vue-ui-treemap-CHXb8mBG.cjs} +1 -1
- package/dist/{vue-ui-treemap-D8AkLDqM.js → vue-ui-treemap-s1nZAhAS.js} +11 -11
- package/dist/{vue-ui-vertical-bar-BnhysoC9.js → vue-ui-vertical-bar-Dd306Z10.js} +11 -11
- package/dist/{vue-ui-vertical-bar-_EQI8SXm.cjs → vue-ui-vertical-bar-iZWowEik.cjs} +1 -1
- package/dist/{vue-ui-waffle-DOhi1BWD.cjs → vue-ui-waffle-BJgSuNVY.cjs} +1 -1
- package/dist/{vue-ui-waffle-DfRmWfrG.js → vue-ui-waffle-CQfOCZjf.js} +19 -19
- package/dist/{vue-ui-wheel-CU6-VBD1.js → vue-ui-wheel-DB-4Rn84.js} +7 -7
- package/dist/{vue-ui-wheel-BbDtndmW.cjs → vue-ui-wheel-s8UTbo9G.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CbuHwEkP.js → vue-ui-word-cloud-C-l2Z3Dd.js} +10 -10
- package/dist/{vue-ui-word-cloud-CRarnngT.cjs → vue-ui-word-cloud-DvfOJe4M.cjs} +1 -1
- package/dist/{vue-ui-xy-BRTegbdr.cjs → vue-ui-xy-D1Nkk2Gp.cjs} +1 -1
- package/dist/{vue-ui-xy-pSvq591u.js → vue-ui-xy-P_VLOaMg.js} +14 -14
- package/dist/{vue-ui-xy-canvas-DsTqLLWp.js → vue-ui-xy-canvas-BwNEs-cY.js} +11 -11
- package/dist/{vue-ui-xy-canvas-hn3ncIFk.cjs → vue-ui-xy-canvas-CIKl9AXf.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-donut-DrAes-Cb.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-C3wsuQ2C.cjs"),Z=require("./usePrinter-Dglf1bsw.cjs"),me=require("./vue-ui-skeleton-99lBQ_mF.cjs"),be=require("./BaseIcon-DGRZS55E.cjs"),ge=require("./vue-ui-accordion-kv5FuXqU.cjs"),ee=require("./useNestedProp-CFwQtnNB.cjs"),ke=require("./PackageVersion-CeJ2R9gK.cjs"),_e=require("./PenAndPaper-DQPbe0G_.cjs"),xe=require("./useUserOptionState-BgepsfED.cjs"),Be=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ee=["id"],Ne={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},Se=["xmlns","viewBox"],Ce={key:0},ze=["fill","font-weight","font-size","x","y"],we=["fill","font-weight","font-size","x","y"],Ve=["id"],$e=["stop-color"],Te=["stop-color"],Fe=["id"],Le=["stop-color"],De=["stop-color"],Oe=["id"],Pe=["stop-color"],Me=["stop-color"],Ie=["stop-color"],Re=["id"],Xe=["stop-color"],Ae=["stop-color"],je=["stop-color"],Ge=["id"],Ue=["stop-color"],qe=["stop-color"],Ye=["stop-color"],He={key:1},We=["x","y","font-size","font-weight","fill"],Ke=["x","y","font-size","font-weight","fill"],Je=["d","stroke"],Qe=["cx","cy","r","fill"],Ze=["cx","cy","r","fill","stroke","stroke-width","onClick"],et={key:2},tt=["x","y","font-size","fill","onClick"],lt={key:0},at=["x","y","fill","font-size","font-weight"],ot=["x","y","height","width","fill","rx","onClick"],nt=["x","y","height","width","fill","rx","stroke","stroke-width","onClick"],rt={key:3},st=["x","y","fill","font-size","onClick"],ut=["d","stroke"],ct=["fill","cx","cy","r","onClick"],it={key:4},dt=["x","y","font-size","font-weight","fill"],yt=["x1","x2","y1","y2","stroke","stroke-width"],vt=["y","height","width"],ht={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},pt={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},ft={viewBox:"0 0 20 20",height:"16",width:"16"},mt=["fill"],bt={key:6},gt=["y","height","width"],kt={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},_t={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},xt={viewBox:"0 0 20 20",height:"16",width:"16"},Bt=["fill"],Et=["cx","cy","fill"],Nt=["d","stroke"],St=["cx","cy","fill"],Ct=["d","stroke"],zt=["cx","cy","fill"],wt=["cx","cy","fill"],Vt=["x","y","fill","font-size","font-weight"],$t=["x","y","fill","font-size","font-weight"],Tt=["x","text-anchor","y","fill","font-size"],Ft=["x","text-anchor","y","fill","font-size"],Lt=["x","text-anchor","y","fill","font-size"],Dt=["x","text-anchor","y","fill","font-size"],Ot=["x","text-anchor","y","fill","font-size"],Pt=["x","y","font-size","fill"],Mt=["x","y","font-size","fill"],It=["x","y","font-size","fill"],Rt={key:4,class:"vue-data-ui-watermark"},Xt={key:6,ref:"source",dir:"auto"},At={style:{"padding-top":"36px",position:"relative"}},jt={class:"vue-ui-data-table"},Gt={key:0},Ut=["data-cell"],qt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Yt={key:0},Ht={key:1},Wt=["data-cell"],Kt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Jt={key:0},Qt={key:1},Zt=["data-cell"],el={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},tl={key:0},ll={key:1},al=["data-cell"],ol={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},nl={key:0},rl={key:1},sl=["data-cell"],ul={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},cl={key:0},il={key:1},dl=["data-cell"],yl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},vl={key:0},hl={key:1},pl=["data-cell"],fl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ml={key:0},bl={key:1},gl=["data-cell"],kl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},_l=["data-cell"],xl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Bl=["data-cell"],El={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Nl=["data-cell"],Sl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Cl=["data-cell"],zl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},wl={__name:"vue-ui-chestnut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectRoot","selectBranch","selectNut"],setup(te,{expose:le,emit:S}){const k=te;e.useCssVars(a=>({"3173d692":a.tdo}));const{vue_ui_chestnut:ae}=o.useConfig(),z=e.computed(()=>!!k.dataset&&k.dataset.length),h=e.ref(o.createUid()),T=e.ref(null),oe=e.ref(null),I=e.ref(0),t=e.computed({get:()=>A(),set:a=>a}),{userOptionsVisible:F,setUserOptionsVisibility:R,keepUserOptionState:X}=xe.useUserOptionState({config:t.value});function A(){const a=ee.useNestedProp({userConfig:k.config,defaultConfig:ae});return a.theme?{...ee.useNestedProp({userConfig:o.themes.vue_ui_chestnut[a.theme]||k.config,defaultConfig:a}),customPalette:o.themePalettes[a.theme]||o.palette}:a}e.watch(()=>k.config,a=>{t.value=A(),F.value=!t.value.showOnChartHover,K()},{deep:!0});const{isPrinting:j,isImaging:G,generatePdf:U,generateImage:q}=Z.usePrinter({elementId:`vue-ui-chestnut_${h.value}`,fileName:t.value.style.chart.layout.title.text||"vue-ui-chestnut"}),ne=e.computed(()=>t.value.userOptions.show),L=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),w=e.ref({showTable:t.value.table.show}),D=e.ref(null),Y=e.ref(!1),re=e.computed(()=>t.value.table.responsiveBreakpoint),r=e.ref({gap:6,padding:{top:102,left:12,right:12,bottom:96},width:1024,height:0,branchSize:32,branchStart:128}),f=e.computed(()=>({left:r.value.padding.left,top:r.value.padding.top,right:r.value.width-r.value.padding.right,bottom:r.value.height-r.value.padding.bottom,width:r.value.width-(r.value.padding.left+r.value.padding.right),height:r.value.height-(r.value.padding.top+r.value.padding.bottom),seedX:r.value.padding.left+64})),_=e.computed(()=>z.value?k.dataset.flatMap(a=>(a.branches||[]).map(s=>s.value||0)).reduce((a,s)=>a+s,0):0),m=e.computed(()=>(k.dataset.forEach((a,s)=>{o.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","branches"]}).forEach(l=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:l,index:s})}),a.branches&&a.branches.forEach((l,n)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(d=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:d,index:`${s} - ${n}`})}),l.breakdown&&l.breakdown.forEach((d,i)=>{o.getMissingDatasetAttributes({datasetObject:d,requiredAttributes:["name","value"]}).forEach(y=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:y,index:`${s} - ${n} - ${i}`})})})})}),k.dataset.map((a,s)=>{const l=(a.branches||[]).map(n=>n.value||0).reduce((n,d)=>n+d,0);return{...a,color:o.convertColorToHex(a.color)||L.value[s]||o.palette[s]||o.palette[s%o.palette.length],id:a.id||`root_${s}_${h.value}`,type:"root",total:l,rootIndex:s,branches:(a.branches||[]).map((n,d)=>({...n,rootName:a.name,rootIndex:s,color:o.convertColorToHex(a.color)||L.value[s]||o.palette[s]||o.palette[s%o.palette.length],value:n.value>=0?n.value:0,id:n.id||`branch_${s}_${d}_${h.value}`,proportionToRoot:n.value/l,type:"branch",breakdown:(n.breakdown||[]).map((i,y)=>({table:{rootName:a.name,rootValue:l,rootToTotal:l/_.value,branchName:n.name,branchValue:n.value,branchToTotal:n.value/_.value,branchToRoot:n.value/l,nutName:i.name,nutValue:i.value,nutToTotal:i.value/_.value,nutToRoot:i.value/l,nutToBranch:i.value/n.value},...i,type:"nut",branchName:n.name,rootName:a.name,branchTotal:n.value>=0?n.value:0,proportionToBranch:i.value/n.value,proportionToRoot:i.value/l,proportionToTree:i.value/_.value,rootIndex:s,id:i.id||`nut_${s}_${d}_${y}_${h.value}`,color:o.convertColorToHex(i.color)||L.value[y]||o.palette[y]||o.palette[y%o.palette.length],value:i.value>=0?i.value:0}))}))}})));function se(){return m.value}const ue=e.computed(()=>m.value.flatMap(a=>a.branches).length),ce=e.computed(()=>Math.max(...m.value.map(a=>a.branches.map(s=>s.value).reduce((s,l)=>s+l,0)))),ie=e.computed(()=>Math.max(...m.value.flatMap(a=>a.branches.map(s=>s.value)))),H=e.computed(()=>256+r.value.padding.left),B=e.computed(()=>m.value.sort((a,s)=>s.total-a.total).map((a,s)=>{const l=f.value.height/m.value.length/2,n=a.total/ce.value*(l>64?64:l);return{...a,x:f.value.seedX,y:f.value.top+f.value.height/m.value.length*(s+1)-(f.value.height/m.value.length/2+r.value.gap/2),r:n<r.value.branchSize/2?r.value.branchSize/2:n}})),de=e.computed(()=>t.value.style.chart.layout.branches.widthRatio<=0?.1:t.value.style.chart.layout.branches.widthRatio>1.8?1.8:t.value.style.chart.layout.branches.widthRatio),ye=e.computed(()=>B.value.flatMap(a=>a.branches)),E=e.computed(()=>ye.value.sort((a,s)=>s.value-a.value).map((a,s)=>({...a,y1:s*r.value.branchSize+f.value.top+s*r.value.gap,y2:s*r.value.branchSize+r.value.branchSize,x1:H.value,x2:384*a.value/ie.value*de.value+H.value})));function O(a){const s=B.value.find(l=>l.rootIndex===a.rootIndex);return{x:s.x,y:s.y,r:s.r}}const u=e.ref(null),x=e.ref(null),v=e.ref(null),b=e.ref(null);function p(){u.value=null,v.value=null,b.value=null}function g(a){return b.value?b.value===null?!0:a.type==="root"?a.id===b.value.id:a.rootIndex===b.value.rootIndex:u.value===null&&v.value===null?!0:a.type==="nut"?u.value.id===a.id:a.type==="branch"?v.value.id===a.id:a.type==="root"?v.value&&v.value.rootIndex===a.rootIndex||u.value&&u.value.rootIndex===a.rootIndex:!1}function ve(a){p(),e.nextTick(()=>{u.value=a,v.value=a,x.value=o.makeDonut({series:a.breakdown,base:1},a.x2+24+t.value.style.chart.layout.nuts.offsetX,a.y1+r.value.branchSize/2,80,80),S("selectNut",a.breakdown)})}function N(){u.value=null,x.value=null,S("selectNut",null)}function P(a){v.value&&v.value.id===a.id?(v.value=null,p(),S("selectBranch",null)):(p(),v.value=a,S("selectBranch",a))}function W(a){b.value&&b.value.id===a.id?(p(),S("selectRoot",null)):(p(),b.value=a,S("selectRoot",a))}function he(){return f.value.bottom-(u.value.y1+180)<0?0:f.value.bottom}function C(a){return a.proportion*100>t.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue}function pe(){const a=new ResizeObserver(s=>{s.forEach(l=>{Y.value=l.contentRect.width<re.value})});D.value&&a.observe(D.value)}e.onMounted(()=>{K()});function K(){o.objectIsEmpty(k.dataset)&&o.error({componentName:"VueUiChestnut",type:"dataset"});const a=ue.value*(r.value.branchSize+r.value.gap)+r.value.padding.top+r.value.padding.bottom;r.value.height=a,pe()}const c=e.computed(()=>{const a=[t.value.table.th.translations.rootName,t.value.table.th.translations.rootValue,t.value.table.th.translations.rootToTotal,t.value.table.th.translations.branchName,t.value.table.th.translations.branchValue,t.value.table.th.translations.branchToRoot,t.value.table.th.translations.branchToTotal,t.value.table.th.translations.nutName,t.value.table.th.translations.nutValue,t.value.table.th.translations.nutToBranch,t.value.table.th.translations.nutToRoot,t.value.table.th.translations.nutToTotal],s=m.value.flatMap((l,n)=>l.branches.flatMap((d,i)=>d.breakdown.flatMap((y,$l)=>y.table)));return{head:a,body:s}});function J(){e.nextTick(()=>{const a=[[t.value.style.chart.layout.title.text],[t.value.style.chart.layout.title.subtitle.text],[""],["Grand total",_.value],[""]],s=c.value.head,l=c.value.body.map((i,y)=>[c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootName,c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootValue,c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootToTotal,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchName,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchValue,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchToRoot,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchToTotal,i.nutName,i.nutValue,i.nutToBranch,i.nutToRoot,i.nutToTotal]),n=a.concat([s]).concat(l),d=o.createCsvContent(n);o.downloadCsv({csvContent:d,title:t.value.style.chart.layout.title.text||"vue-ui-chestnut"})})}const V=e.ref(!1);function fe(a){V.value=a,I.value+=1}function Q(){w.value.showTable=!w.value.showTable}const $=e.ref(!1);function M(){$.value=!$.value}return le({getData:se,generatePdf:U,generateCsv:J,generateImage:q,toggleTable:Q,toggleAnnotator:M}),(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-chestnut ${V.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"chestnutChart",ref:T,id:`vue-ui-chestnut_${h.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:s[2]||(s[2]=()=>e.unref(R)(!0)),onMouseleave:s[3]||(s[3]=()=>e.unref(R)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(_e.PenAndPaper,{key:0,parent:T.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:$.value,onClose:M},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ne.value?(e.openBlock(),e.createElementBlock("div",Ne,null,512)):e.createCommentVNode("",!0),t.value.userOptions.show&&z.value&&(e.unref(X)||e.unref(F))?(e.openBlock(),e.createBlock(Z.UserOptions,{ref_key:"details",ref:oe,key:`user_options_${I.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(G),isPrinting:e.unref(j),uid:h.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:T.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:$.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(U),onGenerateCsv:J,onGenerateImage:e.unref(q),onToggleTable:Q,onToggleAnnotator:M,style:e.normalizeStyle({visibility:e.unref(X)?e.unref(F)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"4"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:n})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:n})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),r.value.height>0&&z.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(o.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${r.value.width} ${r.value.height}`,style:e.normalizeStyle(`overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(ke._sfc_main),u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",Ce,[t.value.style.chart.layout.title.text?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",fill:t.value.style.chart.layout.title.color,"font-weight":t.value.style.chart.layout.title.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.fontSize,x:r.value.width/2,y:12+t.value.style.chart.layout.title.fontSize+t.value.style.chart.layout.title.offsetY,onClick:p},e.toDisplayString(t.value.style.chart.layout.title.text),9,ze)):e.createCommentVNode("",!0),t.value.style.chart.layout.title.subtitle.text?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",fill:t.value.style.chart.layout.title.subtitle.color,"font-weight":t.value.style.chart.layout.title.subtitle.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.subtitle.fontSize,x:r.value.width/2,y:48+t.value.style.chart.layout.title.subtitle.fontSize+t.value.style.chart.layout.title.subtitle.offsetY,onClick:p},e.toDisplayString(t.value.style.chart.layout.title.subtitle.text),9,we)):e.createCommentVNode("",!0)])),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`root_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(l.color,.05),100-t.value.style.chart.layout.roots.gradientIntensity)},null,8,$e),e.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,Te)],8,Ve))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,l=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`branch_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,Le),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(l.color,.02),100-t.value.style.chart.layout.branches.gradientIntensity)},null,8,De)],8,Fe))),256)),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nutpick_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Pe),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.nuts.selected.gradientIntensity)},null,8,Me),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ie)],8,Oe),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Xe),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.nuts.gradientIntensity)},null,8,Ae),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,je)],8,Re),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_underlayer_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,100)},null,8,Ue),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,60)},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0)},null,8,Ye)],8,Ge)]),t.value.style.chart.layout.grandTotal.show?(e.openBlock(),e.createElementBlock("g",He,[e.createElementVNode("text",{x:f.value.seedX,y:32+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:p},e.toDisplayString(t.value.style.chart.layout.grandTotal.text),9,We),e.createElementVNode("text",{x:f.value.seedX,y:38+t.value.style.chart.layout.grandTotal.fontSize+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:p},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.grandTotal.formatter,_.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.grandTotal.prefix,v:_.value,s:t.value.style.chart.layout.grandTotal.suffix,r:t.value.style.chart.layout.grandTotal.roundingValue}))),9,Ke)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.branchSize,(n,d)=>(e.openBlock(),e.createElementBlock("path",{d:`M
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-DGcOW0vL.cjs"),Z=require("./usePrinter-DpEuGyLP.cjs"),me=require("./vue-ui-skeleton-D_lU-hWK.cjs"),be=require("./BaseIcon-DxRKjbz1.cjs"),ge=require("./vue-ui-accordion-mtZIFAv9.cjs"),ee=require("./useNestedProp-C9KmUVBy.cjs"),ke=require("./PackageVersion-BJi2ywG9.cjs"),_e=require("./PenAndPaper-CX6N7FR7.cjs"),xe=require("./useUserOptionState-BgepsfED.cjs"),Be=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ee=["id"],Ne={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},Se=["xmlns","viewBox"],Ce={key:0},ze=["fill","font-weight","font-size","x","y"],we=["fill","font-weight","font-size","x","y"],Ve=["id"],$e=["stop-color"],Te=["stop-color"],Fe=["id"],Le=["stop-color"],De=["stop-color"],Oe=["id"],Pe=["stop-color"],Me=["stop-color"],Ie=["stop-color"],Re=["id"],Xe=["stop-color"],Ae=["stop-color"],je=["stop-color"],Ge=["id"],Ue=["stop-color"],qe=["stop-color"],Ye=["stop-color"],He={key:1},We=["x","y","font-size","font-weight","fill"],Ke=["x","y","font-size","font-weight","fill"],Je=["d","stroke"],Qe=["cx","cy","r","fill"],Ze=["cx","cy","r","fill","stroke","stroke-width","onClick"],et={key:2},tt=["x","y","font-size","fill","onClick"],lt={key:0},at=["x","y","fill","font-size","font-weight"],ot=["x","y","height","width","fill","rx","onClick"],nt=["x","y","height","width","fill","rx","stroke","stroke-width","onClick"],rt={key:3},st=["x","y","fill","font-size","onClick"],ut=["d","stroke"],ct=["fill","cx","cy","r","onClick"],it={key:4},dt=["x","y","font-size","font-weight","fill"],yt=["x1","x2","y1","y2","stroke","stroke-width"],vt=["y","height","width"],ht={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},pt={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},ft={viewBox:"0 0 20 20",height:"16",width:"16"},mt=["fill"],bt={key:6},gt=["y","height","width"],kt={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},_t={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},xt={viewBox:"0 0 20 20",height:"16",width:"16"},Bt=["fill"],Et=["cx","cy","fill"],Nt=["d","stroke"],St=["cx","cy","fill"],Ct=["d","stroke"],zt=["cx","cy","fill"],wt=["cx","cy","fill"],Vt=["x","y","fill","font-size","font-weight"],$t=["x","y","fill","font-size","font-weight"],Tt=["x","text-anchor","y","fill","font-size"],Ft=["x","text-anchor","y","fill","font-size"],Lt=["x","text-anchor","y","fill","font-size"],Dt=["x","text-anchor","y","fill","font-size"],Ot=["x","text-anchor","y","fill","font-size"],Pt=["x","y","font-size","fill"],Mt=["x","y","font-size","fill"],It=["x","y","font-size","fill"],Rt={key:4,class:"vue-data-ui-watermark"},Xt={key:6,ref:"source",dir:"auto"},At={style:{"padding-top":"36px",position:"relative"}},jt={class:"vue-ui-data-table"},Gt={key:0},Ut=["data-cell"],qt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Yt={key:0},Ht={key:1},Wt=["data-cell"],Kt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Jt={key:0},Qt={key:1},Zt=["data-cell"],el={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},tl={key:0},ll={key:1},al=["data-cell"],ol={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},nl={key:0},rl={key:1},sl=["data-cell"],ul={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},cl={key:0},il={key:1},dl=["data-cell"],yl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},vl={key:0},hl={key:1},pl=["data-cell"],fl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ml={key:0},bl={key:1},gl=["data-cell"],kl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},_l=["data-cell"],xl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Bl=["data-cell"],El={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Nl=["data-cell"],Sl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Cl=["data-cell"],zl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},wl={__name:"vue-ui-chestnut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectRoot","selectBranch","selectNut"],setup(te,{expose:le,emit:S}){const k=te;e.useCssVars(a=>({"3173d692":a.tdo}));const{vue_ui_chestnut:ae}=o.useConfig(),z=e.computed(()=>!!k.dataset&&k.dataset.length),h=e.ref(o.createUid()),T=e.ref(null),oe=e.ref(null),I=e.ref(0),t=e.computed({get:()=>A(),set:a=>a}),{userOptionsVisible:F,setUserOptionsVisibility:R,keepUserOptionState:X}=xe.useUserOptionState({config:t.value});function A(){const a=ee.useNestedProp({userConfig:k.config,defaultConfig:ae});return a.theme?{...ee.useNestedProp({userConfig:o.themes.vue_ui_chestnut[a.theme]||k.config,defaultConfig:a}),customPalette:o.themePalettes[a.theme]||o.palette}:a}e.watch(()=>k.config,a=>{t.value=A(),F.value=!t.value.showOnChartHover,K()},{deep:!0});const{isPrinting:j,isImaging:G,generatePdf:U,generateImage:q}=Z.usePrinter({elementId:`vue-ui-chestnut_${h.value}`,fileName:t.value.style.chart.layout.title.text||"vue-ui-chestnut"}),ne=e.computed(()=>t.value.userOptions.show),L=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),w=e.ref({showTable:t.value.table.show}),D=e.ref(null),Y=e.ref(!1),re=e.computed(()=>t.value.table.responsiveBreakpoint),r=e.ref({gap:6,padding:{top:102,left:12,right:12,bottom:96},width:1024,height:0,branchSize:32,branchStart:128}),f=e.computed(()=>({left:r.value.padding.left,top:r.value.padding.top,right:r.value.width-r.value.padding.right,bottom:r.value.height-r.value.padding.bottom,width:r.value.width-(r.value.padding.left+r.value.padding.right),height:r.value.height-(r.value.padding.top+r.value.padding.bottom),seedX:r.value.padding.left+64})),_=e.computed(()=>z.value?k.dataset.flatMap(a=>(a.branches||[]).map(s=>s.value||0)).reduce((a,s)=>a+s,0):0),m=e.computed(()=>(k.dataset.forEach((a,s)=>{o.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","branches"]}).forEach(l=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:l,index:s})}),a.branches&&a.branches.forEach((l,n)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(d=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:d,index:`${s} - ${n}`})}),l.breakdown&&l.breakdown.forEach((d,i)=>{o.getMissingDatasetAttributes({datasetObject:d,requiredAttributes:["name","value"]}).forEach(y=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:y,index:`${s} - ${n} - ${i}`})})})})}),k.dataset.map((a,s)=>{const l=(a.branches||[]).map(n=>n.value||0).reduce((n,d)=>n+d,0);return{...a,color:o.convertColorToHex(a.color)||L.value[s]||o.palette[s]||o.palette[s%o.palette.length],id:a.id||`root_${s}_${h.value}`,type:"root",total:l,rootIndex:s,branches:(a.branches||[]).map((n,d)=>({...n,rootName:a.name,rootIndex:s,color:o.convertColorToHex(a.color)||L.value[s]||o.palette[s]||o.palette[s%o.palette.length],value:n.value>=0?n.value:0,id:n.id||`branch_${s}_${d}_${h.value}`,proportionToRoot:n.value/l,type:"branch",breakdown:(n.breakdown||[]).map((i,y)=>({table:{rootName:a.name,rootValue:l,rootToTotal:l/_.value,branchName:n.name,branchValue:n.value,branchToTotal:n.value/_.value,branchToRoot:n.value/l,nutName:i.name,nutValue:i.value,nutToTotal:i.value/_.value,nutToRoot:i.value/l,nutToBranch:i.value/n.value},...i,type:"nut",branchName:n.name,rootName:a.name,branchTotal:n.value>=0?n.value:0,proportionToBranch:i.value/n.value,proportionToRoot:i.value/l,proportionToTree:i.value/_.value,rootIndex:s,id:i.id||`nut_${s}_${d}_${y}_${h.value}`,color:o.convertColorToHex(i.color)||L.value[y]||o.palette[y]||o.palette[y%o.palette.length],value:i.value>=0?i.value:0}))}))}})));function se(){return m.value}const ue=e.computed(()=>m.value.flatMap(a=>a.branches).length),ce=e.computed(()=>Math.max(...m.value.map(a=>a.branches.map(s=>s.value).reduce((s,l)=>s+l,0)))),ie=e.computed(()=>Math.max(...m.value.flatMap(a=>a.branches.map(s=>s.value)))),H=e.computed(()=>256+r.value.padding.left),B=e.computed(()=>m.value.sort((a,s)=>s.total-a.total).map((a,s)=>{const l=f.value.height/m.value.length/2,n=a.total/ce.value*(l>64?64:l);return{...a,x:f.value.seedX,y:f.value.top+f.value.height/m.value.length*(s+1)-(f.value.height/m.value.length/2+r.value.gap/2),r:n<r.value.branchSize/2?r.value.branchSize/2:n}})),de=e.computed(()=>t.value.style.chart.layout.branches.widthRatio<=0?.1:t.value.style.chart.layout.branches.widthRatio>1.8?1.8:t.value.style.chart.layout.branches.widthRatio),ye=e.computed(()=>B.value.flatMap(a=>a.branches)),E=e.computed(()=>ye.value.sort((a,s)=>s.value-a.value).map((a,s)=>({...a,y1:s*r.value.branchSize+f.value.top+s*r.value.gap,y2:s*r.value.branchSize+r.value.branchSize,x1:H.value,x2:384*a.value/ie.value*de.value+H.value})));function O(a){const s=B.value.find(l=>l.rootIndex===a.rootIndex);return{x:s.x,y:s.y,r:s.r}}const u=e.ref(null),x=e.ref(null),v=e.ref(null),b=e.ref(null);function p(){u.value=null,v.value=null,b.value=null}function g(a){return b.value?b.value===null?!0:a.type==="root"?a.id===b.value.id:a.rootIndex===b.value.rootIndex:u.value===null&&v.value===null?!0:a.type==="nut"?u.value.id===a.id:a.type==="branch"?v.value.id===a.id:a.type==="root"?v.value&&v.value.rootIndex===a.rootIndex||u.value&&u.value.rootIndex===a.rootIndex:!1}function ve(a){p(),e.nextTick(()=>{u.value=a,v.value=a,x.value=o.makeDonut({series:a.breakdown,base:1},a.x2+24+t.value.style.chart.layout.nuts.offsetX,a.y1+r.value.branchSize/2,80,80),S("selectNut",a.breakdown)})}function N(){u.value=null,x.value=null,S("selectNut",null)}function P(a){v.value&&v.value.id===a.id?(v.value=null,p(),S("selectBranch",null)):(p(),v.value=a,S("selectBranch",a))}function W(a){b.value&&b.value.id===a.id?(p(),S("selectRoot",null)):(p(),b.value=a,S("selectRoot",a))}function he(){return f.value.bottom-(u.value.y1+180)<0?0:f.value.bottom}function C(a){return a.proportion*100>t.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue}function pe(){const a=new ResizeObserver(s=>{s.forEach(l=>{Y.value=l.contentRect.width<re.value})});D.value&&a.observe(D.value)}e.onMounted(()=>{K()});function K(){o.objectIsEmpty(k.dataset)&&o.error({componentName:"VueUiChestnut",type:"dataset"});const a=ue.value*(r.value.branchSize+r.value.gap)+r.value.padding.top+r.value.padding.bottom;r.value.height=a,pe()}const c=e.computed(()=>{const a=[t.value.table.th.translations.rootName,t.value.table.th.translations.rootValue,t.value.table.th.translations.rootToTotal,t.value.table.th.translations.branchName,t.value.table.th.translations.branchValue,t.value.table.th.translations.branchToRoot,t.value.table.th.translations.branchToTotal,t.value.table.th.translations.nutName,t.value.table.th.translations.nutValue,t.value.table.th.translations.nutToBranch,t.value.table.th.translations.nutToRoot,t.value.table.th.translations.nutToTotal],s=m.value.flatMap((l,n)=>l.branches.flatMap((d,i)=>d.breakdown.flatMap((y,$l)=>y.table)));return{head:a,body:s}});function J(){e.nextTick(()=>{const a=[[t.value.style.chart.layout.title.text],[t.value.style.chart.layout.title.subtitle.text],[""],["Grand total",_.value],[""]],s=c.value.head,l=c.value.body.map((i,y)=>[c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootName,c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootValue,c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootToTotal,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchName,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchValue,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchToRoot,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchToTotal,i.nutName,i.nutValue,i.nutToBranch,i.nutToRoot,i.nutToTotal]),n=a.concat([s]).concat(l),d=o.createCsvContent(n);o.downloadCsv({csvContent:d,title:t.value.style.chart.layout.title.text||"vue-ui-chestnut"})})}const V=e.ref(!1);function fe(a){V.value=a,I.value+=1}function Q(){w.value.showTable=!w.value.showTable}const $=e.ref(!1);function M(){$.value=!$.value}return le({getData:se,generatePdf:U,generateCsv:J,generateImage:q,toggleTable:Q,toggleAnnotator:M}),(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-chestnut ${V.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"chestnutChart",ref:T,id:`vue-ui-chestnut_${h.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:s[2]||(s[2]=()=>e.unref(R)(!0)),onMouseleave:s[3]||(s[3]=()=>e.unref(R)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(_e.PenAndPaper,{key:0,parent:T.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:$.value,onClose:M},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ne.value?(e.openBlock(),e.createElementBlock("div",Ne,null,512)):e.createCommentVNode("",!0),t.value.userOptions.show&&z.value&&(e.unref(X)||e.unref(F))?(e.openBlock(),e.createBlock(Z.UserOptions,{ref_key:"details",ref:oe,key:`user_options_${I.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(G),isPrinting:e.unref(j),uid:h.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:T.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:$.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(U),onGenerateCsv:J,onGenerateImage:e.unref(q),onToggleTable:Q,onToggleAnnotator:M,style:e.normalizeStyle({visibility:e.unref(X)?e.unref(F)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"4"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:n})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:n})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),r.value.height>0&&z.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(o.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${r.value.width} ${r.value.height}`,style:e.normalizeStyle(`overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(ke._sfc_main),u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",Ce,[t.value.style.chart.layout.title.text?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",fill:t.value.style.chart.layout.title.color,"font-weight":t.value.style.chart.layout.title.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.fontSize,x:r.value.width/2,y:12+t.value.style.chart.layout.title.fontSize+t.value.style.chart.layout.title.offsetY,onClick:p},e.toDisplayString(t.value.style.chart.layout.title.text),9,ze)):e.createCommentVNode("",!0),t.value.style.chart.layout.title.subtitle.text?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",fill:t.value.style.chart.layout.title.subtitle.color,"font-weight":t.value.style.chart.layout.title.subtitle.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.subtitle.fontSize,x:r.value.width/2,y:48+t.value.style.chart.layout.title.subtitle.fontSize+t.value.style.chart.layout.title.subtitle.offsetY,onClick:p},e.toDisplayString(t.value.style.chart.layout.title.subtitle.text),9,we)):e.createCommentVNode("",!0)])),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`root_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(l.color,.05),100-t.value.style.chart.layout.roots.gradientIntensity)},null,8,$e),e.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,Te)],8,Ve))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,l=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`branch_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,Le),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(l.color,.02),100-t.value.style.chart.layout.branches.gradientIntensity)},null,8,De)],8,Fe))),256)),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nutpick_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Pe),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.nuts.selected.gradientIntensity)},null,8,Me),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ie)],8,Oe),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Xe),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.nuts.gradientIntensity)},null,8,Ae),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,je)],8,Re),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_underlayer_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,100)},null,8,Ue),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,60)},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0)},null,8,Ye)],8,Ge)]),t.value.style.chart.layout.grandTotal.show?(e.openBlock(),e.createElementBlock("g",He,[e.createElementVNode("text",{x:f.value.seedX,y:32+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:p},e.toDisplayString(t.value.style.chart.layout.grandTotal.text),9,We),e.createElementVNode("text",{x:f.value.seedX,y:38+t.value.style.chart.layout.grandTotal.fontSize+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:p},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.grandTotal.formatter,_.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.grandTotal.prefix,v:_.value,s:t.value.style.chart.layout.grandTotal.suffix,r:t.value.style.chart.layout.grandTotal.roundingValue}))),9,Ke)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.branchSize,(n,d)=>(e.openBlock(),e.createElementBlock("path",{d:`M
|
|
2
2
|
${l.x1},${l.y1+d}
|
|
3
3
|
C${l.x1-20},${l.y1+d}
|
|
4
4
|
${l.x1-80},${l.y1+d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),_=require("./useNestedProp-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),_=require("./useNestedProp-C9KmUVBy.cjs"),i=require("./index-DGcOW0vL.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=l=>(t.pushScopeId("data-v-6a1383ea"),l=l(),t.popScopeId(),l),p=["xmlns","height","width"],x={id:"follower",fy:"30%",fx:"30%"},E=["stop-color","stop-opacity"],N=m(()=>t.createElementVNode("stop",{offset:"95%","stop-color":"transparent"},null,-1)),g=["r","fill","stroke","stroke-width","stroke-dasharray"],V=["r","fill"],S={key:2,class:"wave"},w=["id"],B=["id"],R=m(()=>t.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),b=["filter","stroke"],F={key:3,class:"crosshair"},z=["x1","stroke","stroke-width","stroke-dasharray"],I=["x1","stroke","stroke-width","stroke-dasharray"],L=["y1","stroke","stroke-width","stroke-dasharray"],O=["y1","stroke","stroke-width","stroke-dasharray"],T=["cy","r","fill"],D=["cy","r","fill"],$=["cx","r","fill"],W=["cx","r","fill"],G={key:5,class:"coordinates"},P=["x","y","font-size","fill"],q=["transform"],A=["font-size","fill"],M={__name:"vue-ui-cursor",props:{config:{type:Object,default:{}}},setup(l){const k=l,{vue_ui_cursor:y}=i.useConfig(),c=t.ref(i.createUid()),e=t.computed(()=>_.useNestedProp({userConfig:k.config,defaultConfig:y})),o=t.ref({x:-100,y:-100});function u({clientX:r,clientY:f,...j}){o.value.x=r-e.value.centerCircleRadius,o.value.y=f-e.value.centerCircleRadius}function d(r){o.value.x=r.targetTouches[0].clientX-e.value.centerCircleRadius,o.value.y=r.targetTouches[0].clientY-e.value.centerCircleRadius}const v=t.ref(!0);function s(r){v.value=r}const a=t.ref(!1),n=t.ref(null);function h(){a.value=!1,n.value&&clearTimeout(n.value),t.nextTick(()=>{a.value=!0,n.value=setTimeout(()=>{a.value=!1},1e3)})}return t.onMounted(()=>{const r=e.value.parentId?document.getElementById(e.value.parentId):document.getElementsByTagName("div")[0];r.addEventListener("mousemove",u),r.addEventListener("touchmove",d),r.addEventListener("mouseleave",()=>s(!1)),r.addEventListener("mouseenter",()=>s(!0)),r.addEventListener("click",h)}),t.onBeforeUnmount(()=>{const r=e.value.parentId?document.getElementById(e.value.parentId):document.getElementsByTagName("div")[0];r.removeEventListener("mousemove",u),r.removeEventListener("touchmove",d),r.removeEventListener("mouseleave",()=>s(!1)),r.removeEventListener("mouseenter",()=>s(!0)),r.removeEventListener("click",h)}),t.computed(()=>e.value.centerCircleRadius/2.5),(r,f)=>v.value?(t.openBlock(),t.createElementBlock("svg",{key:0,"data-html2canvas-ignore":"",xmlns:t.unref(i.XMLNS),style:t.normalizeStyle(`z-index: 2147483647; overflow: visible; pointer-events: none;background: transparent; position:fixed; top:${o.value.y}px; left:${o.value.x}px;`),viewBox:"0 0 100 100",height:e.value.centerCircleRadius*2,width:e.value.centerCircleRadius*2},[t.createElementVNode("defs",null,[t.createElementVNode("radialGradient",x,[t.createElementVNode("stop",{offset:"10%","stop-color":e.value.bubbleEffectColor,"stop-opacity":e.value.bubbleEffectOpacity},null,8,E),N])]),e.value.showCenterCircle?(t.openBlock(),t.createElementBlock("circle",{key:0,cx:50,cy:50,r:e.value.centerCircleRadius,fill:t.unref(i.setOpacity)(e.value.centerCircleColor,e.value.centerCircleOpacity*100),stroke:e.value.centerCircleStroke,"stroke-width":e.value.centerCircleStrokeWidth,"stroke-dasharray":e.value.centerCircleDasharray},null,8,g)):t.createCommentVNode("",!0),e.value.bubbleEffect?(t.openBlock(),t.createElementBlock("circle",{key:1,cx:50,cy:50,r:e.value.centerCircleRadius,fill:"url(#follower)",stroke:"none"},null,8,V)):t.createCommentVNode("",!0),e.value.useWaveOnClick?(t.openBlock(),t.createElementBlock("g",S,[t.createElementVNode("defs",null,[t.createElementVNode("filter",{id:`blur_${c.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[t.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:4,id:`blur_std_${c.value}`},null,8,B),R],8,w)]),a.value?(t.openBlock(),t.createElementBlock("circle",{key:0,class:t.normalizeClass({"circle-wave":a.value}),cx:50,cy:50,r:50,filter:`url(#blur_${c.value})`,stroke:e.value.centerCircleStroke,fill:"none","stroke-width":"3"},null,10,b)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.value.showCrosshair?(t.openBlock(),t.createElementBlock("g",F,[t.createElementVNode("line",{x1:-e.value.centerCircleRadius+50,x2:-5e3,y1:50,y2:50,stroke:e.value.crosshairStroke,"stroke-width":e.value.crosshairStrokeWidth,"stroke-dasharray":e.value.crosshairDasharray,"stroke-linecap":"round"},null,8,z),t.createElementVNode("line",{x1:50+e.value.centerCircleRadius,x2:5e3,y1:50,y2:50,stroke:e.value.crosshairStroke,"stroke-width":e.value.crosshairStrokeWidth,"stroke-dasharray":e.value.crosshairDasharray,"stroke-linecap":"round"},null,8,I),t.createElementVNode("line",{x1:50,x2:50,y1:-e.value.centerCircleRadius+50,y2:-5e3,stroke:e.value.crosshairStroke,"stroke-width":e.value.crosshairStrokeWidth,"stroke-dasharray":e.value.crosshairDasharray,"stroke-linecap":"round"},null,8,L),t.createElementVNode("line",{x1:50,x2:50,y1:e.value.centerCircleRadius+50,y2:5e3,stroke:e.value.crosshairStroke,"stroke-width":e.value.crosshairStrokeWidth,"stroke-dasharray":e.value.crosshairDasharray,"stroke-linecap":"round"},null,8,O)])):t.createCommentVNode("",!0),e.value.showIntersectCircles?(t.openBlock(),t.createElementBlock("g",{key:4,class:t.normalizeClass({"rotating-circles":e.value.isLoading})},[t.createElementVNode("circle",{cx:50,cy:e.value.centerCircleRadius+50,r:e.value.intersectCirclesRadius,fill:e.value.intersectCirclesFill},null,8,T),t.createElementVNode("circle",{cx:50,cy:-e.value.centerCircleRadius+50,r:e.value.intersectCirclesRadius,fill:e.value.intersectCirclesFill},null,8,D),t.createElementVNode("circle",{cx:-e.value.centerCircleRadius+50,cy:50,r:e.value.intersectCirclesRadius,fill:e.value.intersectCirclesFill},null,8,$),t.createElementVNode("circle",{cx:e.value.centerCircleRadius+50,cy:50,r:e.value.intersectCirclesRadius,fill:e.value.intersectCirclesFill},null,8,W)],2)):t.createCommentVNode("",!0),e.value.showCoordinates?(t.openBlock(),t.createElementBlock("g",G,[t.createElementVNode("text",{"text-anchor":"end",x:-e.value.centerCircleRadius+50-e.value.coordinatesFontSize/2+e.value.coordinatesOffset,y:50-e.value.coordinatesFontSize/2+e.value.coordinatesOffset,"font-size":e.value.coordinatesFontSize,fill:e.value.coordinatesColor,style:{"font-variant-numeric":"tabular-nums"},"font-family":"Arial"},t.toDisplayString(o.value.x.toFixed(0)),9,P),t.createElementVNode("g",{transform:`translate(${50-e.value.coordinatesFontSize/2+e.value.coordinatesOffset}, ${-e.value.centerCircleRadius+50-e.value.coordinatesFontSize/2+e.value.coordinatesOffset})`},[t.createElementVNode("text",{"text-anchor":"start","font-size":e.value.coordinatesFontSize,fill:e.value.coordinatesColor,style:{"font-variant-numeric":"tabular-nums"},transform:"rotate(-90)","font-family":"Arial"},t.toDisplayString(o.value.y.toFixed(0)),9,A)],8,q)])):t.createCommentVNode("",!0)],12,p)):t.createCommentVNode("",!0)}},U=C._export_sfc(M,[["__scopeId","data-v-6a1383ea"]]);exports.default=U;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as n, computed as m, onMounted as R, onBeforeUnmount as E, openBlock as o, createElementBlock as l, unref as C, normalizeStyle as b, createElementVNode as r, createCommentVNode as a, normalizeClass as p, toDisplayString as x, nextTick as F, pushScopeId as I, popScopeId as L } from "vue";
|
|
2
|
-
import { u as z } from "./useNestedProp-
|
|
3
|
-
import { u as O, c as B, X as N, s as T } from "./index-
|
|
2
|
+
import { u as z } from "./useNestedProp-D9eTQKze.js";
|
|
3
|
+
import { u as O, c as B, X as N, s as T } from "./index-Dhlyke5j.js";
|
|
4
4
|
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const g = (i) => (I("data-v-6a1383ea"), i = i(), L(), i), $ = ["xmlns", "height", "width"], W = {
|
|
6
6
|
id: "follower",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),j=require("./pdf-9cRTLjY8.cjs"),U=require("./useNestedProp-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),j=require("./pdf-9cRTLjY8.cjs"),U=require("./useNestedProp-C9KmUVBy.cjs"),A=require("./index-DGcOW0vL.cjs"),G=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),J=b=>(o.pushScopeId("data-v-840292ca"),b=b(),o.popScopeId(),b),K={key:0,"data-html2canvas-ignore":"",style:{width:"100%",display:"flex","justify-content":"end"}},Q=["disabled"],Z=["stroke"],ee=o.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-840292ca></path><path d="M18 16v.01" data-v-840292ca></path><path d="M6 16v.01" data-v-840292ca></path><path d="M12 5v.01" data-v-840292ca></path><path d="M12 12v.01" data-v-840292ca></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-840292ca></path>',6),te=[ee],oe={key:1},ae=["id"],le=J(()=>o.createElementVNode("div",{class:"vue-ui-dashboard-grid"},null,-1)),ne=["onMousedown","onTouchstart"],ue=["onMousedown","onTouchstart"],se=["onMousedown","onTouchstart"],re=["onMousedown","onTouchstart"],ie=["onMousedown","onTouchstart"],T=20,ce={__name:"vue-ui-dashboard",props:{dataset:Array,config:Object},emits:["change"],setup(b,{expose:x,emit:S}){const E=b;o.useCssVars(e=>({"5bd77d8a":W.value,db3d09e0:L.value}));const{vue_ui_dashboard:I}=A.useConfig(),r=o.computed(()=>U.useNestedProp({userConfig:E.config,defaultConfig:I})),z=o.ref(`vue-ui-dashboard-${Math.random()}`),d=o.ref(r.value.locked);function X(){d.value=!d.value}const s=o.ref(E.dataset.map((e,t)=>({...e,index:t}))),h=o.ref(null),u=o.ref(null),v=o.ref({x:0,y:0}),f=o.ref({x:0,y:0}),i=o.ref(null),c=o.ref(!1),p=o.ref(null),m=o.ref(!1),w=o.ref(!1);function N(e){const t=e.target;t.tagName==="INPUT"&&t.type==="range"&&(w.value=!0)}function C(e){const t=e.target;t.tagName==="INPUT"&&t.type==="range"&&(w.value=!1)}function $(){m.value=!0,j.default({domElement:document.getElementById(`vue-ui-dashboard_${z.value}`),fileName:"vue-ui-dashboard"}).finally(()=>{m.value=!1})}function Y(e){if(!d.value&&(c.value=!0,p.value=e,u.value===null)){h.value=e,v.value={x:event.clientX,y:event.clientY};const t=s.value[e],l=100-t.width,a=100-t.height;t.left<0&&(t.left=0),t.top<0&&(t.top=0),t.left>l&&(t.left=l),t.top>a&&(t.top=a),t.left<0&&(t.left=0),t.top<0&&(t.top=0),t.left+t.width>100&&(t.left=100-t.width),t.top+t.height>100&&(t.top=100-t.height)}}function k(e,t){c.value=!0,p.value=e,u.value={index:e,direction:t};const l=s.value[e];f.value={x:event.clientX,y:event.clientY,initialWidth:l.width,initialHeight:l.height}}function B(e,t,l){if(u.value.direction.includes("top")){const a=e.height-l/i.value.offsetHeight*100;a>=T&&(e.top+=l/i.value.offsetHeight*100,e.height=a)}if(u.value.direction.includes("bottom")){const a=e.height+l/i.value.offsetHeight*100;a>=T&&(e.height=a)}if(u.value.direction.includes("left")){const a=e.width-t/i.value.offsetWidth*100;a>=T&&(e.left+=t/i.value.offsetWidth*100,e.width=a)}if(u.value.direction.includes("right")){const a=e.width+t/i.value.offsetWidth*100;a>=T&&(e.width=a)}}function V(e){if(!(d.value||w.value)){if(c.value=!0,h.value!==null){const t=s.value[h.value],l=e.clientX-v.value.x,a=e.clientY-v.value.y,n=t.left+l/i.value.offsetWidth*100,g=t.top+a/i.value.offsetHeight*100;n>=0&&g>=0&&n+t.width<=100&&g+t.height<=100&&(t.left=n,t.top=g),v.value={x:e.clientX,y:e.clientY}}if(u.value!==null){const t=s.value[u.value.index],l=e.clientX-f.value.x,a=e.clientY-f.value.y;B(t,l,a),f.value={x:e.clientX,y:e.clientY}}}}o.watch(s,e=>{e&&!c.value&&S("change",s.value)},{deep:!0});function H(){h.value=null,u.value=null,c.value=!1,p.value=null,s.value.forEach(e=>{e.left=Math.round(e.left/100*100),e.top=Math.round(e.top/100*100),e.width=Math.round(e.width/100*100),e.height=Math.round(e.height/100*100)})}function P(e){d.value||w.value||(c.value=!0,p.value=e,u.value===null&&(h.value=e,v.value={x:event.touches[0].clientX,y:event.touches[0].clientY}))}function _(e,t,l){if(c.value=!0,p.value=e,u.value===null){u.value={index:e,direction:t};const a=s.value[e];f.value={x:l.touches[0].clientX,y:l.touches[0].clientY,initialWidth:a.width,initialHeight:a.height}}}function M(e){if(c.value=!0,e.preventDefault(),u.value!==null){const t=s.value[u.value.index],l=e.touches[0].clientX-f.value.x,a=e.touches[0].clientY-f.value.y;B(t,l,a),f.value={x:e.touches[0].clientX,y:e.touches[0].clientY}}}function D(e){if(!(d.value||w.value)&&(c.value=!0,e.preventDefault(),h.value!==null)){const t=s.value[h.value],l=e.touches[0].clientX-v.value.x,a=e.touches[0].clientY-v.value.y,n=t.left+l/i.value.offsetWidth*100,g=t.top+a/i.value.offsetHeight*100;n>=0&&g>=0&&n+t.width<=100&&g+t.height<=100&&(t.left=n,t.top=g),v.value={x:e.touches[0].clientX,y:e.touches[0].clientY}}}function y(){c.value=!1,p.value=null,h.value=null,u.value=null,s.value.forEach(e=>{e.left=Math.round(e.left/100*100),e.top=Math.round(e.top/100*100),e.width=Math.round(e.width/100*100),e.height=Math.round(e.height/100*100)})}const W=o.computed(()=>r.value.style.item.borderColor),L=o.computed(()=>r.value.style.resizeHandles.backgroundColor),F=o.computed(()=>r.value.style.board.aspectRatio),R=o.computed(()=>r.value.style.board.backgroundColor),q=o.computed(()=>r.value.style.board.border);function O(){return s.value}return x({generatePdf:$,getItemsPositions:O,toggleLock:X}),(e,t)=>(o.openBlock(),o.createElementBlock("div",{onMousedown:N,onMouseup:C,onTouchstart:N,onTouchend:C},[r.value.allowPrint?(o.openBlock(),o.createElementBlock("div",K,[o.createElementVNode("button",{class:"vue-ui-dashboard-button",onClick:$,disabled:m.value,style:o.normalizeStyle([{"margin-top":"12px"},`color:${r.value.style.board.color}`])},[m.value?(o.openBlock(),o.createElementBlock("svg",{key:0,class:"vue-ui-dashboard-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:r.value.style.board.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},te,8,Z)):(o.openBlock(),o.createElementBlock("span",oe,"PDF"))],12,Q)])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"vue-ui-dashboard-container",ref_key:"dashboardContainer",ref:i,id:`vue-ui-dashboard_${z.value}`,style:o.normalizeStyle(`border:${q.value}; sbackground:${R.value}; aspect-ratio:${F.value}`)},[o.createElementVNode("div",{class:"vue-ui-dashboard-grid-container",ref:"container",onMousemove:V,onMouseup:H,onTouchmove:D,onTouchend:y,style:o.normalizeStyle(`background:${r.value.style.board.backgroundColor}`)},[le,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(l,a)=>(o.openBlock(),o.createElementBlock("div",{key:l.id,class:o.normalizeClass({"vue-ui-dashboard-grid-item":!0,"vue-ui-dashboard-grid-item--locked":d.value}),style:o.normalizeStyle({width:`${l.width}%`,height:`${l.height}%`,left:`${l.left}%`,top:`${l.top}%`,cursor:"move",boxShadow:p.value===a?"0 6px 12px -3px rgba(0,0,0,0.3)":"",zIndex:p.value===a?s.value.length+1:l.index,backgroundColor:r.value.style.item.backgroundColor}),onMousedown:n=>Y(a),onTouchstart:n=>P(a)},[d.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-top-left",onMousedown:n=>k(a,"top-left"),onTouchstart:n=>_(a,"top-left",n),onTouchmove:t[0]||(t[0]=n=>M(n)),onTouchend:y},null,40,ue),o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-top-right",onMousedown:n=>k(a,"top-right"),onTouchstart:n=>_(a,"top-right",n),onTouchmove:t[1]||(t[1]=n=>M(n)),onTouchend:y},null,40,se),o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-left",onMousedown:n=>k(a,"bottom-left"),onTouchstart:n=>_(a,"bottom-left",n),onTouchmove:t[2]||(t[2]=n=>M(n)),onTouchend:y},null,40,re),o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-right",onMousedown:n=>k(a,"bottom-right"),onTouchstart:n=>_(a,"bottom-right",n),onTouchmove:t[3]||(t[3]=n=>M(n)),onTouchend:y},null,40,ie)],64)),o.renderSlot(e.$slots,"content",{item:l,index:a,left:l.left,top:l.top,height:l.height,width:l.width},void 0,!0)],46,ne))),128))],36)],12,ae)],32))}},de=G._export_sfc(ce,[["__scopeId","data-v-840292ca"]]);exports.default=de;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as Z, computed as _, ref as s, watch as ee, openBlock as w, createElementBlock as y, createElementVNode as g, normalizeStyle as x, createCommentVNode as E, Fragment as P, renderList as te, normalizeClass as oe, renderSlot as ae, pushScopeId as ue, popScopeId as le, createStaticVNode as ne } from "vue";
|
|
2
2
|
import se from "./pdf-B7oVat64.js";
|
|
3
|
-
import { u as ie } from "./useNestedProp-
|
|
4
|
-
import { u as re } from "./index-
|
|
3
|
+
import { u as ie } from "./useNestedProp-D9eTQKze.js";
|
|
4
|
+
import { u as re } from "./index-Dhlyke5j.js";
|
|
5
5
|
import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const ce = (M) => (ue("data-v-840292ca"), M = M(), le(), M), he = {
|
|
7
7
|
key: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as k, computed as d, openBlock as $, createElementBlock as i, Fragment as o, createElementVNode as l, createCommentVNode as m, unref as v, normalizeStyle as C, renderList as b, createBlock as N } from "vue";
|
|
2
|
-
import { u as q } from "./useNestedProp-
|
|
3
|
-
import { u as M, X as S } from "./index-
|
|
2
|
+
import { u as q } from "./useNestedProp-D9eTQKze.js";
|
|
3
|
+
import { u as M, X as S } from "./index-Dhlyke5j.js";
|
|
4
4
|
const w = { key: 0 }, B = ["d", "fill"], F = ["d", "fill"], X = ["d", "fill"], E = ["d", "fill"], I = ["d", "fill"], O = ["d", "fill"], A = ["d", "fill"], D = { key: 1 }, G = ["cx", "cy", "fill"], V = {
|
|
5
5
|
__name: "Digit",
|
|
6
6
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),g=require("./useNestedProp-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),g=require("./useNestedProp-C9KmUVBy.cjs"),L=require("./index-DGcOW0vL.cjs"),f={key:0},m=["d","fill"],k=["d","fill"],h=["d","fill"],v=["d","fill"],C=["d","fill"],N=["d","fill"],b=["d","fill"],B={key:1},E=["cx","cy","fill"],q={__name:"Digit",props:{quanta:{type:String,default:null},backgroundColor:{type:String,default:"#e1e5e8"},color:{type:String,default:"#000000"},x:{type:Number,default:0},y:{type:Number,default:0}},setup(e){const u=e,$=t.ref({0:"1111110",1:"0110000",2:"1101101",3:"1111001",4:"0110011",5:"1011011",6:"1011111",7:"1110000",8:"1111111",9:"1111011","-":"0000001",X:"0000000"}),l=t.computed(()=>[void 0,null].includes(u.quanta)?$.value.X:$.value[u.quanta]);return(a,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[[void 0,null,"."].includes(e.quanta)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("g",f,[t.createElementVNode("path",{d:`M ${e.x} ${e.y} L ${e.x+2} ${e.y-2} L ${e.x+24} ${e.y-2} L ${e.x+26} ${e.y} L ${e.x+24} ${e.y+2} L ${e.x+2} ${e.y+2}Z`,fill:l.value[0]==1?e.color:e.backgroundColor,stroke:"none"},null,8,m),t.createElementVNode("path",{d:`M ${e.x+26} ${e.y+26} L ${e.x+26} ${e.y+4} L ${e.x+28} ${e.y+2} L ${e.x+30} ${e.y+4} L ${e.x+30} ${e.y+26} L ${e.x+28} ${e.y+28} L ${e.x+26} ${e.y+26}`,fill:l.value[1]==1?e.color:e.backgroundColor,stroke:"none"},null,8,k),t.createElementVNode("path",{d:`M ${e.x+26} ${e.y+56} L ${e.x+26} ${e.y+34} L ${e.x+28} ${e.y+32} L ${e.x+30} ${e.y+34} L ${e.x+30} ${e.y+56} L ${e.x+28} ${e.y+58} L ${e.x+26} ${e.y+56}`,fill:l.value[2]==1?e.color:e.backgroundColor,stroke:"none"},null,8,h),t.createElementVNode("path",{d:`M ${e.x+2} ${e.y+58} L ${e.x} ${e.y+60} L ${e.x+2} ${e.y+62} L ${e.x+24} ${e.y+62} L ${e.x+26} ${e.y+60} L ${e.x+24} ${e.y+58} L ${e.x+2} ${e.y+58}`,fill:l.value[3]==1?e.color:e.backgroundColor,stroke:"none"},null,8,v),t.createElementVNode("path",{d:`M ${e.x} ${e.y+34} L ${e.x-2} ${e.y+32} L ${e.x-4} ${e.y+34} L ${e.x-4} ${e.y+56} L ${e.x-2} ${e.y+58} L ${e.x} ${e.y+56} L ${e.x} ${e.y+34}`,fill:l.value[4]==1?e.color:e.backgroundColor,stroke:"none"},null,8,C),t.createElementVNode("path",{d:`M ${e.x-2} ${e.y+2} L ${e.x} ${e.y+4} L ${e.x} ${e.y+26} L ${e.x-2} ${e.y+28} L ${e.x-4} ${e.y+26} L ${e.x-4} ${e.y+4} L ${e.x-2} ${e.y+2}`,fill:l.value[5]==1?e.color:e.backgroundColor,stroke:"none"},null,8,N),t.createElementVNode("path",{d:`M ${e.x+2} ${e.y+28} L ${e.x} ${e.y+30} L ${e.x+2} ${e.y+32} L ${e.x+24} ${e.y+32} L ${e.x+26} ${e.y+30} L ${e.x+24} ${e.y+28} L ${e.x+2} ${e.y+28}`,fill:l.value[6]==1?e.color:e.backgroundColor,stroke:"none"},null,8,b)])),e.quanta=="."?(t.openBlock(),t.createElementBlock("g",B,[t.createElementVNode("circle",{cx:e.x-8,cy:e.y+60,r:3,fill:e.color},null,8,E)])):t.createCommentVNode("",!0)],64))}},M=["xmlns","viewBox"],V={__name:"vue-ui-digits",props:{dataset:{type:Number,default:0},config:{type:Object,default(){return{}}}},setup(e){const u=e,{vue_ui_digits:$}=L.useConfig(),l=t.computed(()=>g.useNestedProp({userConfig:u.config,defaultConfig:$})),a=t.computed(()=>{const c=(u.dataset||0).toString().split(""),d=[],n={x:10,y:10};let i=0;for(let y=0;y<c.length;y+=1){const o=c[y];d.push({x:n.x+i,y:n.y,quanta:o}),o=="."?i+=2:i+=44}return d}),x=t.computed(()=>Math.max(...a.value.map(c=>c.x))+36);return(c,d)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:t.unref(L.XMLNS),viewBox:`0 0 ${x.value} 80`,style:t.normalizeStyle(`background:${l.value.backgroundColor};${l.value.height?`height:${l.value.height};`:""}${l.value.width?`width:${l.value.width}`:""}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,n=>(t.openBlock(),t.createBlock(q,{x:n.x,y:n.y,quanta:n.quanta,color:l.value.digits.color,backgroundColor:l.value.digits.skeletonColor},null,8,["x","y","quanta","color","backgroundColor"]))),256))],12,M))}};exports.default=V;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { computed as m, ref as d, onMounted as ut, onBeforeUnmount as st, watch as Ue, openBlock as o, createElementBlock as r, normalizeClass as de, normalizeStyle as z, unref as u, createBlock as G, createCommentVNode as i, renderSlot as w, createSlots as nt, withCtx as $, normalizeProps as E, guardReactiveProps as W, createVNode as je, createElementVNode as h, Fragment as k, renderList as X, toDisplayString as x, createTextVNode as He, nextTick as rt, pushScopeId as it, popScopeId as vt } from "vue";
|
|
2
|
-
import { u as ct, o as dt, e as Re, g as ht, c as yt, b as ft, d as Ee, p as U, m as pt, H as gt, f as F, X as bt, s as ee, w as mt, j as wt, I as L, i as Y, k as b, n as te, t as kt, a as _t, x as xt, q as Ct, r as $t } from "./index-
|
|
2
|
+
import { u as ct, o as dt, e as Re, g as ht, c as yt, b as ft, d as Ee, p as U, m as pt, H as gt, f as F, X as bt, s as ee, w as mt, j as wt, I as L, i as Y, k as b, n as te, t as kt, a as _t, x as xt, q as Ct, r as $t } from "./index-Dhlyke5j.js";
|
|
3
3
|
import { t as Pt, u as St } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as Ft } from "./Title-
|
|
5
|
-
import { u as Lt, U as Tt } from "./usePrinter-
|
|
6
|
-
import { D as zt } from "./DataTable-
|
|
7
|
-
import { _ as Ot } from "./Tooltip-
|
|
8
|
-
import { L as Yt } from "./Legend-
|
|
9
|
-
import At from "./vue-ui-skeleton-
|
|
10
|
-
import Nt from "./vue-ui-accordion-
|
|
11
|
-
import { u as We } from "./useNestedProp-
|
|
12
|
-
import { _ as Xt } from "./PackageVersion-
|
|
13
|
-
import { P as It } from "./PenAndPaper-
|
|
4
|
+
import { _ as Ft } from "./Title-BecmraNn.js";
|
|
5
|
+
import { u as Lt, U as Tt } from "./usePrinter-BnBk8gnl.js";
|
|
6
|
+
import { D as zt } from "./DataTable-D8MTezlM.js";
|
|
7
|
+
import { _ as Ot } from "./Tooltip-BZYApG0d.js";
|
|
8
|
+
import { L as Yt } from "./Legend-wr5XLSfL.js";
|
|
9
|
+
import At from "./vue-ui-skeleton-DQqwDUqP.js";
|
|
10
|
+
import Nt from "./vue-ui-accordion-CGpOsWNN.js";
|
|
11
|
+
import { u as We } from "./useNestedProp-D9eTQKze.js";
|
|
12
|
+
import { _ as Xt } from "./PackageVersion-xnKIqody.js";
|
|
13
|
+
import { P as It } from "./PenAndPaper-iek0aH4r.js";
|
|
14
14
|
import { u as Dt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
15
|
import { _ as Mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const Bt = (q) => (it("data-v-
|
|
16
|
+
const Bt = (q) => (it("data-v-2be74918"), q = q(), vt(), q), Vt = ["id"], Gt = ["xmlns", "viewBox"], Ut = { key: 0 }, jt = ["id"], Ht = ["stop-color"], Rt = ["offset", "stop-color"], Et = ["offset", "stop-color"], Wt = ["stop-color"], qt = { key: 1 }, Jt = ["id", "cx", "cy"], Kt = ["stop-color", "stop-opacity"], Qt = ["stop-color"], Zt = ["id"], el = ["id"], tl = /* @__PURE__ */ Bt(() => /* @__PURE__ */ h("feColorMatrix", {
|
|
17
17
|
type: "saturate",
|
|
18
18
|
values: "0"
|
|
19
19
|
}, null, -1)), ll = ["id"], al = ["flood-color"], ol = ["id"], ul = ["flood-color"], sl = ["d", "stroke", "filter"], nl = ["x1", "y1", "x2", "y2", "stroke", "filter"], rl = ["cx", "cy", "r", "fill", "filter"], il = ["stroke", "d"], vl = ["d", "fill", "stroke", "stroke-width", "filter"], cl = { key: 0 }, dl = ["stroke", "d"], hl = { key: 0 }, yl = ["d", "stroke", "stroke-width", "filter"], fl = ["d", "fill", "stroke", "stroke-width", "filter"], pl = { key: 1 }, gl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], bl = ["cx", "cy", "r", "stroke"], ml = ["cx", "cy", "r", "fill"], wl = { key: 0 }, kl = ["d", "fill", "onMouseenter", "onClick"], _l = { key: 1 }, xl = ["cx", "cy", "r", "fill"], Cl = ["x", "y", "fill", "font-size"], $l = ["x", "y", "fill", "font-size"], Pl = ["x", "y", "fill", "font-size"], Sl = ["x", "y", "fill", "font-size"], Fl = ["filter"], Ll = { key: 0 }, Tl = ["x", "y"], zl = { key: 1 }, Ol = ["cx", "cy", "fill", "stroke", "filter", "onClick"], Yl = ["cx", "cy", "fill", "stroke", "filter", "onClick"], Al = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Nl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Xl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Il = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Dl = { key: 2 }, Ml = ["x", "y", "width"], Bl = ["x", "y", "width"], Vl = {
|
|
@@ -136,8 +136,8 @@ const Bt = (q) => (it("data-v-58aa1f52"), q = q(), vt(), q), Vt = ["id"], Gt = [
|
|
|
136
136
|
}
|
|
137
137
|
const N = d([]), ze = d(null), Oe = d(null), V = d(!1);
|
|
138
138
|
function Ye(l) {
|
|
139
|
-
const n = B.value.find((v, g) => g === l);
|
|
140
|
-
let a =
|
|
139
|
+
const n = B.value.find((v, g) => g === l), t = T.value.find((v, g) => g === l);
|
|
140
|
+
let a = t.value;
|
|
141
141
|
if (N.value.includes(l)) {
|
|
142
142
|
let g = function() {
|
|
143
143
|
a > v ? (cancelAnimationFrame(ze.value), T.value = T.value.map((p, ce) => l === ce ? {
|
|
@@ -153,7 +153,7 @@ const Bt = (q) => (it("data-v-58aa1f52"), q = q(), vt(), q), Vt = ["id"], Gt = [
|
|
|
153
153
|
g();
|
|
154
154
|
} else if (N.value.length < B.value.length - 1) {
|
|
155
155
|
let v = function() {
|
|
156
|
-
a <
|
|
156
|
+
a < t.value / 100 ? (cancelAnimationFrame(Oe.value), N.value.push(l), T.value = T.value.map((g, p) => l === p ? {
|
|
157
157
|
...g,
|
|
158
158
|
value: 0
|
|
159
159
|
} : g), V.value = !1) : (V.value = !0, a /= 1.1, T.value = T.value.map((g, p) => l === p ? {
|
|
@@ -1104,7 +1104,7 @@ const Bt = (q) => (it("data-v-58aa1f52"), q = q(), vt(), q), Vt = ["id"], Gt = [
|
|
|
1104
1104
|
}, 8, ["config"])) : i("", !0)
|
|
1105
1105
|
], 46, Vt));
|
|
1106
1106
|
}
|
|
1107
|
-
}, ra = /* @__PURE__ */ Mt(Rl, [["__scopeId", "data-v-
|
|
1107
|
+
}, ra = /* @__PURE__ */ Mt(Rl, [["__scopeId", "data-v-2be74918"]]);
|
|
1108
1108
|
export {
|
|
1109
1109
|
ra as default
|
|
1110
1110
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-C3wsuQ2C.cjs"),ze=require("./Title-CSyDhu3S.cjs"),me=require("./usePrinter-Dglf1bsw.cjs"),Ve=require("./DataTable-DWQiMziO.cjs"),Ae=require("./Legend-BstxUr4T.cjs"),$e=require("./vue-ui-skeleton-99lBQ_mF.cjs"),Fe=require("./Slicer-CPp7_WWa.cjs"),De=require("./vue-ui-accordion-kv5FuXqU.cjs"),fe=require("./useNestedProp-CFwQtnNB.cjs"),Pe=require("./PackageVersion-CeJ2R9gK.cjs"),Ie=require("./PenAndPaper-DQPbe0G_.cjs"),Oe=require("./useUserOptionState-BgepsfED.cjs"),Te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Me=["id"],He=["xmlns","viewBox"],Ue=["id"],qe=["stop-color"],Re=["stop-color"],We=["id"],Xe=["stop-color"],Ge=["stop-color"],Ye=["stop-color"],je={key:0},Ke=["x1","x2","y1","y2","stroke","stroke-width"],Je=["x1","x2","y1","y2","stroke","stroke-width"],Qe={key:0},Ze=["x1","x2","y1","y2","stroke","stroke-width"],et=["x1","x2","y1","y2","stroke","stroke-width"],tt=["x","y","font-size","fill","font-weight"],lt=["text-anchor","font-size","fill","transform"],at=["x1","y1","x2","y2","stroke","stroke-width"],ot={key:1},nt=["cx","cy","r","fill"],ut={key:0},rt={key:0},st=["d","stroke"],ct=["text-anchor","x","y","fill"],it=["cx","cy","r","fill"],dt={key:0},vt=["cx","cy","fill"],ht={key:1},yt=["d","fill","stroke"],mt={key:2},ft=["d","fill","stroke"],gt=["x","y","font-size","fill"],pt=["x","y","width","fill","onClick"],kt=["x","y","width","height","onMouseenter","onClick"],xt={key:3,"data-cy-zoom":"",class:"vue-ui-donut-evolution-dialog"},bt=["x","y","width","height","fill"],Bt=["x1","y1","x2","y2","stroke"],Ct=["x1","y2","x2","y1","stroke"],_t=["onKeypress","cx","cy","r"],Et=["d","stroke"],Nt=["cx","cy","r","fill"],wt=["d","fill","stroke"],St={class:"vue-ui-donut-evolution-focus"},Lt=["text-anchor","x","y","fill"],zt=["cx","cy","r","fill"],Vt=["cx","cy","r","fill"],At=["x","y","fill"],$t=["x","y","font-size","fill"],Ft={key:5,class:"vue-data-ui-watermark"},Dt=["onClick"],Pt={key:0},It={key:1},Ot={key:9,ref:"source",dir:"auto"},Tt={key:0},Mt={key:1},Ht={__name:"vue-ui-donut-evolution",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(ge,{expose:pe,emit:W}){const y=ge,{vue_ui_donut_evolution:ke}=u.useConfig(),A=e.computed(()=>!!y.dataset&&y.dataset.length),i=e.ref({start:0,end:Math.max(...y.dataset.map(a=>a.values.length))});function X(){G()}const N=e.ref(null);async function G(){(t.value.style.chart.zoom.startIndex!==null||t.value.style.chart.zoom.endIndex!==null)&&N.value?(t.value.style.chart.zoom.startIndex!==null&&(await e.nextTick(),await e.nextTick(),N.value&&N.value.setStartValue(t.value.style.chart.zoom.startIndex)),t.value.style.chart.zoom.endIndex!==null&&(await e.nextTick(),await e.nextTick(),N.value&&N.value.setEndValue(xe(t.value.style.chart.zoom.endIndex+1)))):(i.value={start:0,end:E.value},K.value+=1)}function xe(a){const o=E.value;return a>o?o:a<0||t.value.style.chart.zoom.startIndex!==null&&a<t.value.style.chart.zoom.startIndex?t.value.style.chart.zoom.startIndex!==null?t.value.style.chart.zoom.startIndex+1:1:a}e.onMounted(()=>{Y()});function Y(){u.objectIsEmpty(y.dataset)?u.error({componentName:"VueUiDonutEvolution",type:"dataset"}):y.dataset.length&&y.dataset.forEach((a,o)=>{u.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","values"]}).forEach(l=>{u.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:l,index:o})})}),G()}const _=e.ref(u.createUid()),m=e.ref([]),h=e.ref(null),P=e.ref(null),k=e.ref(!1),x=e.ref(null),I=e.ref(null),be=e.ref(null),j=e.ref(0),K=e.ref(0),J=e.ref(0),Q=e.ref(0),Z=e.ref(0),t=e.computed({get:()=>le(),set:a=>a}),{userOptionsVisible:O,setUserOptionsVisibility:ee,keepUserOptionState:te}=Oe.useUserOptionState({config:t.value});function le(){const a=fe.useNestedProp({userConfig:y.config,defaultConfig:ke});let o={};return a.theme?o={...fe.useNestedProp({userConfig:u.themes.vue_ui_donut_evolution[a.theme]||y.config,defaultConfig:a}),customPalette:u.themePalettes[a.theme]||u.palette}:o=a,y.config&&u.hasDeepProperty(y.config,"style.chart.zoom.startIndex")?o.style.chart.zoom.startIndex=y.config.style.chart.zoom.startIndex:o.style.chart.zoom.startIndex=null,y.config&&u.hasDeepProperty(y.config,"style.chart.zoom.endIndex")?o.style.chart.zoom.endIndex=y.config.style.chart.zoom.endIndex:o.style.chart.zoom.endIndex=null,o}e.watch(()=>y.config,a=>{t.value=le(),O.value=!t.value.showOnChartHover,Y(),J.value+=1,Q.value+=1,Z.value+=1},{deep:!0}),e.watch(()=>y.dataset,a=>{X()},{deep:!0});const{isPrinting:ae,isImaging:oe,generatePdf:ne,generateImage:ue}=me.usePrinter({elementId:_.value,fileName:t.value.style.chart.title.text||"vue-ui-donut-evolution"}),Be=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Ce=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),$=e.ref({showTable:t.value.table.show}),r=e.computed(()=>({top:t.value.style.chart.layout.padding.top,right:t.value.style.chart.layout.padding.right,bottom:t.value.style.chart.layout.padding.bottom,left:t.value.style.chart.layout.padding.left})),c=e.computed(()=>{const a=t.value.style.chart.layout.height,o=t.value.style.chart.layout.width,l=a-r.value.top-r.value.bottom,s=o-r.value.left-r.value.right;return{absoluteHeight:a,absoluteWidth:o,centerX:r.value.left+s/2,centerY:r.value.top+l/2,height:l,width:s}}),C=e.computed(()=>(y.dataset.forEach((a,o)=>{[null,void 0].includes(a.name)&&u.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"name",index:o}),[null,void 0].includes(a.values)&&u.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"values",index:o})}),y.dataset.map((a,o)=>({...a,values:u.sanitizeArray(a.values),color:u.convertColorToHex(a.color)||Ce.value[o]||u.palette[o]||u.palette[o%u.palette.length],length:(a.values||[]).length,uid:u.createUid()})))),z=e.computed(()=>C.value.filter(a=>!m.value.includes(a.uid)).map(a=>({...a,values:a.values.filter((o,l)=>l>=i.value.start&&l<=i.value.end)}))),E=e.computed(()=>Math.max(...z.value.map(a=>a.length))),g=e.computed(()=>c.value.width/(i.value.end-i.value.start)),f=e.computed(()=>{const a=[];for(let n=0;n<i.value.end-i.value.start;n+=1){const v=z.value.map(B=>B.values[n]??null),d=v.filter(B=>[void 0,null].includes(B)).length===v.length,b=v.reduce((B,p)=>B+p,0),R=v.map(B=>B/b),L=r.value.left+g.value*n+g.value/2;a.push({index:n,percentages:R,subtotal:d||b<0?null:b,values:v,x:L})}const o=0,l=Math.max(...a.map(n=>n.subtotal)),s=a.length===1?l*2:l;return a.map((n,v)=>{const d=g.value/2*.7,b=d>c.value.width/16?c.value.width/16:d,R=h.value===n.index?c.value.width/16:b,L=a.length>4?d*2:d*2>g.value/2*.7?g.value/2*.7:d*2,B=c.value.absoluteHeight-r.value.bottom-c.value.height*n.subtotal/u.calculateNiceScale(o,s,t.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;return{...n,y:B,radius:b,activeRadius:R,hoverRadius:L,donut:u.makeDonut({series:z.value.map((p,ye)=>({color:p.color,name:p.name,value:p.values[v]??0}))},n.x,B,b,b,1.99999,2,1,360,105.25,b/2),donutHover:u.makeDonut({series:z.value.map((p,ye)=>({color:p.color,name:p.name,value:p.values[v]??0}))},n.x,B,L,L,1.99999,2,1,360,105.25,L/2),donutFocus:u.makeDonut({series:z.value.map((p,ye)=>({color:p.color,name:p.name,value:p.values[v]??0}))},c.value.centerX,c.value.centerY,c.value.height/3.6,c.value.height/3.6,1.99999,2,1,360,105.25,c.value.height/6)}})});function F(a,o,l){return u.applyDataLabel(t.value.style.chart.layout.dataLabels.formatter,a,u.dataLabel({p:t.value.style.chart.layout.dataLabels.prefix,v:a,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.layout.dataLabels.rounding}),{datapoint:o,index:l})}const T=e.computed(()=>({max:Math.max(...f.value.map(a=>a.subtotal)),min:0})),w=e.computed(()=>{const a=f.value.length===1?T.value.max*2:T.value.max;return u.calculateNiceScale(T.value.min,a,t.value.style.chart.layout.grid.yAxis.dataLabels.steps)});function _e(a){return a/w.value.max}const Ee=e.computed(()=>w.value.ticks.map(a=>({y:c.value.absoluteHeight-r.value.bottom-c.value.height*_e(a),value:a})));function re(a,o){return isNaN(a.value/u.sumByAttribute(o,"value"))?0:(a.value/u.sumByAttribute(o,"value")*100).toFixed(0)+"%"}function se(){k.value||(h.value=null,P.value=null)}function Ne(a){k.value||(h.value=a.index,P.value=a)}const M=e.ref(null);function H(a,o){a.subtotal&&(P.value=null,h.value=null,k.value=!0,x.value=a,[null,void 0].includes(o)||(M.value=o))}function ce(){x.value=null,k.value=!1,M.value=null}const ie=e.computed(()=>C.value.map((a,o)=>({name:a.name,value:a.values.slice(i.value.start,i.value.end).reduce((l,s)=>l+s,0),shape:"circle",uid:a.uid,color:a.color})).sort((a,o)=>o.value-a.value).map(a=>({...a,opacity:m.value.includes(a.uid)?.5:1,segregate:()=>U(a.uid),isSegregated:m.value.includes(a.uid)}))),de=e.computed(()=>f.value.map(a=>a.subtotal).reduce((a,o)=>a+o,0)),we=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""}));function U(a){if(m.value.includes(a))m.value=m.value.filter(o=>o!==a),W("selectLegend",null);else{if(m.value.length===C.value.length-1)return;m.value.push(a),W("selectLegend",C.value.find(o=>o.uid===a))}x.value&&H(f.value.find((o,l)=>l===M.value))}const S=e.computed(()=>{const a=[""].concat(C.value.filter(n=>!m.value.includes(n.uid)).map(n=>({name:n.name,color:n.color}))).concat(["Σ"]);let o=[];for(let n=0;n<E.value;n+=1){const v=C.value.filter(d=>!m.value.includes(d.uid)).map(d=>d.values[n]??0).reduce((d,b)=>d+b,0);o.push([t.value.style.chart.layout.grid.xAxis.dataLabels.values[n]??"-"].concat(C.value.filter(d=>!m.value.includes(d.uid)).map(d=>({value:d.values[n]??0,percentage:d.values[n]?d.values[n]/v*100:0}))).concat([`${t.value.style.chart.layout.dataLabels.prefix}${Number(v.toFixed(t.value.table.td.roundingValue))}${t.value.style.chart.layout.dataLabels.suffix}`]))}const l={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},s=[t.value.table.columnNames.period].concat(C.value.filter(n=>!m.value.includes(n.uid)).map(n=>n.name)).concat(t.value.table.columnNames.total);return{head:a,body:o,config:l,colNames:s}});function Se(){return C.value}function ve(){e.nextTick(()=>{const a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=[...S.value.head.map(v=>v.name??v)],l=[...S.value.body.map(v=>v.map(d=>d.value??d))],s=a.concat([o]).concat(l),n=u.createCsvContent(s);u.downloadCsv({csvContent:n,title:t.value.style.chart.title.text||"vue-ui-donut-evolution"})})}const V=e.ref(!1);function Le(a){V.value=a,j.value+=1}function he(){$.value.showTable=!$.value.showTable}const D=e.ref(!1);function q(){D.value=!D.value}return pe({getData:Se,generatePdf:ne,generateCsv:ve,generateImage:ue,toggleTable:he,toggleAnnotator:q}),(a,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutEvolutionChart",ref:I,class:e.normalizeClass(`vue-ui-donut-evolution ${V.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),id:_.value,onMouseenter:o[4]||(o[4]=()=>e.unref(ee)(!0)),onMouseleave:o[5]||(o[5]=()=>e.unref(ee)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ie.PenAndPaper,{key:0,parent:I.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:D.value,onClose:q},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),Be.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:be,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,style:"width:100%;background:transparent;padding-bottom:24px",onMouseleave:se},[(e.openBlock(),e.createBlock(ze._sfc_main,{key:`title_${J.value}`,config:{title:{cy:"donut-evolution-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-evolution-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],32)):e.createCommentVNode("",!0),t.value.userOptions.show&&A.value&&(e.unref(te)||e.unref(O))?(e.openBlock(),e.createBlock(me.UserOptions,{ref:"details",key:`user_options_${j.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ae),isImaging:e.unref(oe),uid:_.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:I.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:D.value,onToggleFullscreen:Le,onGeneratePdf:e.unref(ne),onGenerateCsv:ve,onGenerateImage:e.unref(ue),onToggleTable:he,onToggleAnnotator:q,style:e.normalizeStyle({visibility:e.unref(te)?e.unref(O)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:s})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:s})),void 0,!0)]),key:"4"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:s})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:s})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),A.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(u.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${c.value.absoluteWidth} ${c.value.absoluteHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Pe._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`hover_${_.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(u.setOpacity)(t.value.style.chart.backgroundColor,t.value.style.chart.layout.highlighter.opacity)},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(u.setOpacity)(t.value.style.chart.layout.highlighter.color,t.value.style.chart.layout.highlighter.opacity)},null,8,Re)],8,Ue),e.createElementVNode("radialGradient",{id:`focus_${_.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(u.setOpacity)(e.unref(u.convertColorToHex)(t.value.style.chart.backgroundColor),0)},null,8,Xe),e.createElementVNode("stop",{offset:"77%","stop-color":e.unref(u.setOpacity)("#FFFFFF",30)},null,8,Ge),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(u.setOpacity)(e.unref(u.convertColorToHex)(t.value.style.chart.backgroundColor),0)},null,8,Ye)],8,We)]),t.value.style.chart.layout.grid.show?(e.openBlock(),e.createElementBlock("g",je,[e.createElementVNode("line",{x1:r.value.left,x2:r.value.left,y1:r.value.top,y2:r.value.top+c.value.height,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ke),e.createElementVNode("line",{x1:r.value.left,x2:c.value.absoluteWidth-r.value.right,y1:c.value.absoluteHeight-r.value.bottom,y2:c.value.absoluteHeight-r.value.bottom,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Je),t.value.style.chart.layout.grid.showVerticalLines?(e.openBlock(),e.createElementBlock("g",Qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.end-i.value.start,(l,s)=>(e.openBlock(),e.createElementBlock("line",{x1:r.value.left+(s+1)*g.value,x2:r.value.left+(s+1)*g.value,y1:r.value.top,y2:c.value.absoluteHeight-r.value.bottom,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ze))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.chart.layout.grid.yAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:1,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":h.value!==null||k.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ee.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l.value>=w.value.min&&l.value<=w.value.max?(e.openBlock(),e.createElementBlock("line",{key:0,x1:r.value.left,x2:r.value.left-5,y1:l.y,y2:l.y,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,et)):e.createCommentVNode("",!0),l.value>=w.value.min&&l.value<=w.value.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:r.value.left-8+t.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,y:l.y+t.value.style.chart.layout.grid.yAxis.dataLabels.fontSize/3,"font-size":t.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,"text-anchor":"end",fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-weight":t.value.style.chart.layout.grid.yAxis.dataLabels.bold?"bold":"normal"},e.toDisplayString(e.unref(u.canShowValue)(l.value)?e.unref(u.applyDataLabel)(t.value.style.chart.layout.dataLabels.formatter,l.value,e.unref(u.dataLabel)({p:t.value.style.chart.layout.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue}),{datapoint:l,seriesIndex:s}):""),9,tt)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),t.value.style.chart.layout.grid.xAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:2,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":k.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.end-i.value.start,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast&&(s===0||s===E.value-1)||!t.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":t.value.style.chart.layout.grid.xAxis.dataLabels.rotation>0?"start":t.value.style.chart.layout.grid.xAxis.dataLabels.rotation<0?"end":"middle","font-size":t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,fill:t.value.style.chart.layout.grid.xAxis.dataLabels.color,transform:`translate(${r.value.left+g.value*s+g.value/2}, ${t.value.style.chart.layout.grid.xAxis.dataLabels.offsetY+c.value.absoluteHeight-r.value.bottom+t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2}), rotate(${t.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`},e.toDisplayString(t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(s)+Number(i.value.start)]??""),9,lt)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.line.show&&s<f.value.length-1&&![l.subtotal,f.value[s+1].subtotal].includes(null)?(e.openBlock(),e.createElementBlock("line",{key:0,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":h.value!==null||k.value}),x1:l.x,y1:l.y,x2:f.value[s+1].x,y2:f.value[s+1].y,stroke:t.value.style.chart.layout.line.stroke,"stroke-width":t.value.style.chart.layout.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,10,at)):e.createCommentVNode("",!0),l.subtotal!==null?(e.openBlock(),e.createElementBlock("g",ot,[l.subtotal?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:l.activeRadius,fill:t.value.style.chart.backgroundColor},null,8,nt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||k.value})},[l.subtotal?(e.openBlock(),e.createElementBlock("g",ut,[h.value!==null&&h.value===s?(e.openBlock(),e.createElementBlock("g",rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,n=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{d:e.unref(u.calcNutArrowPath)(n,{x:n.center.endX,y:n.center.endY},12,12,{x:l.x,y:l.y},!0,20),stroke:n.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,st)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,(n,v)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("text",{"data-cy-hover-label":"","text-anchor":e.unref(u.calcMarkerOffsetX)(n,!0,0).anchor,x:e.unref(u.calcMarkerOffsetX)(n,!0,3).x,y:e.unref(u.calcMarkerOffsetY)(n),fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":8,"font-weight":"bold"},e.toDisplayString(n.name)+": "+e.toDisplayString(re(n,l.donut))+" ("+e.toDisplayString(n.value===null?"-":F(n.value,n,v))+") ",9,ct)]))),256)),e.createElementVNode("g",null,[e.createElementVNode("circle",{cx:l.x,cy:l.y,r:l.hoverRadius,fill:t.value.style.chart.backgroundColor},null,8,it)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||k.value})},[l.subtotal!==null?(e.openBlock(),e.createElementBlock("g",dt,[l.subtotal===0?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:3,fill:t.value.style.chart.color},null,8,vt)):h.value!==null&&h.value===s?(e.openBlock(),e.createElementBlock("g",ht,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,(n,v)=>(e.openBlock(),e.createElementBlock("path",{d:n.arcSlice,fill:`${n.color}`,"stroke-width":1,stroke:t.value.style.chart.backgroundColor},null,8,yt))),256))])):(e.openBlock(),e.createElementBlock("g",mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donut,(n,v)=>(e.openBlock(),e.createElementBlock("path",{d:n.arcSlice,fill:`${n.color}`,"stroke-width":.5,stroke:t.value.style.chart.backgroundColor},null,8,ft))),256))]))])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||k.value})},[l.subtotal!==null&&t.value.style.chart.layout.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:l.x,y:h.value===l.index&&l.subtotal?l.y+t.value.style.chart.layout.dataLabels.fontSize/3:l.y-l.radius-t.value.style.chart.layout.dataLabels.fontSize+t.value.style.chart.layout.dataLabels.offsetY,"font-size":t.value.style.chart.layout.dataLabels.fontSize,"font-weight":"bold",fill:t.value.style.chart.layout.dataLabels.color},e.toDisplayString(F(l.subtotal,l,s)),9,gt)):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("rect",{x:r.value.left+s*g.value,y:c.value.absoluteHeight-r.value.bottom-10,width:g.value,height:10,fill:h.value===l.index?`url(#hover_${_.value})`:"transparent",onClick:n=>H(l,s),class:e.normalizeClass({"donut-hover":h.value===l.index&&l.subtotal})},null,10,pt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("rect",{"data-cy-trap":"",x:r.value.left+s*g.value,y:r.value.top,width:g.value,height:c.value.height,fill:"transparent",onMouseenter:n=>Ne(l),onMouseleave:se,onClick:n=>H(l,s),class:e.normalizeClass({"donut-hover":h.value===l.index&&l.subtotal})},null,42,kt))),256)),k.value?(e.openBlock(),e.createElementBlock("g",xt,[e.createElementVNode("rect",{rx:4,x:r.value.left,y:r.value.top,width:c.value.width,height:c.value.height,fill:t.value.style.chart.backgroundColor,style:{filter:"drop-shadow(0 12px 12px rgba(0,0,0,0.3))"}},null,8,bt),e.createElementVNode("line",{"data-html2canvas-ignore":"",x1:c.value.absoluteWidth-r.value.right-15,y1:r.value.top+5,x2:c.value.absoluteWidth-r.value.right-4,y2:r.value.top+15.5,"stroke-linecap":"round",stroke:t.value.style.chart.color,"stroke-width":"1.5"},null,8,Bt),e.createElementVNode("line",{"data-html2canvas-ignore":"",x1:c.value.absoluteWidth-r.value.right-15,y2:r.value.top+5,x2:c.value.absoluteWidth-r.value.right-4,y1:r.value.top+15.5,"stroke-linecap":"round",stroke:t.value.style.chart.color,"stroke-width":"1.5"},null,8,Ct),e.createElementVNode("circle",{"data-cy-close":"",onClick:ce,onKeypress:e.withKeys(ce,["enter"]),cx:c.value.absoluteWidth-r.value.right-c.value.width/40,cy:r.value.top+c.value.height/30,r:c.value.height/12,fill:"transparent",style:{cursor:"pointer"},tabindex:"0"},null,40,_t),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value.donutFocus,l=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{"data-cy-zoom-donut":"",d:e.unref(u.calcNutArrowPath)(l,{x:c.value.centerX,y:c.value.centerY},12,12,!1,!1,15),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:"vue-ui-donut-evolution-focus"},null,8,Et)]))),256)),e.createElementVNode("circle",{cx:r.value.left+c.value.width/2,cy:r.value.top+c.value.height/2,r:c.value.height/7,fill:t.value.style.chart.backgroundColor},null,8,Nt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value.donutFocus,(l,s)=>(e.openBlock(),e.createElementBlock("path",{d:l.arcSlice,fill:`${l.color}`,"stroke-width":1,stroke:t.value.style.chart.backgroundColor,class:"vue-ui-donut-evolution-focus"},null,8,wt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value.donutFocus,(l,s)=>(e.openBlock(),e.createElementBlock("g",St,[e.createElementVNode("text",{"text-anchor":e.unref(u.calcMarkerOffsetX)(l,!0,20).anchor,x:e.unref(u.calcMarkerOffsetX)(l,!0,10).x,y:e.unref(u.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":10,"font-weight":"bold"},e.toDisplayString(l.name)+": "+e.toDisplayString(re(l,x.value.donutFocus))+" ("+e.toDisplayString(l.value===null?"-":F(l.value,l,s))+") ",9,Lt)]))),256)),e.createElementVNode("circle",{cx:r.value.left+c.value.width/2,cy:r.value.top+c.value.height/2,r:c.value.height/3.8,fill:`url(#focus_${_.value})`},null,8,zt),e.createElementVNode("circle",{cx:r.value.left+c.value.width/2,cy:r.value.top+c.value.height/2,r:c.value.height/7.7,fill:t.value.style.chart.backgroundColor},null,8,Vt),e.createElementVNode("text",{"text-anchor":"middle",x:r.value.left+c.value.width/2,y:r.value.top+c.value.height/2+14/3,"font-size":14,"font-weight":"bold",fill:t.value.style.chart.layout.dataLabels.color,class:"vue-ui-donut-evolution-focus"},e.toDisplayString(F(x.value.subtotal,x.value,null)),9,At),t.value.style.chart.layout.grid.xAxis.dataLabels.values[x.value.index]?(e.openBlock(),e.createElementBlock("text",{key:0,x:r.value.left+6,y:r.value.top+t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2,"font-size":t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*1.6,fill:t.value.style.chart.layout.dataLabels.color},e.toDisplayString(t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(x.value.index)+Number(i.value.start)]),9,$t)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:c.value},void 0,!0)],14,He)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ft,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ae)||e.unref(oe)})),void 0,!0)])):e.createCommentVNode("",!0),A.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($e.default,{key:6,config:{type:"donutEvolution",style:{backgroundColor:t.value.style.chart.backgroundColor,donutEvolution:{axis:{color:"#CCCCCC"},donuts:{color:"#CCCCCC"}}}}},null,8,["config"])),E.value>1&&t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(Fe.Slicer,{ref_key:"slicerComponent",ref:N,key:`slicer_${K.value}`,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,fontSize:t.value.style.chart.zoom.fontSize,useResetSlot:t.value.style.chart.zoom.useResetSlot,labelLeft:t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(i.value.start)]||"",labelRight:t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(i.value.end)-1]||"",textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,max:E.value,min:0,valueStart:i.value.start,valueEnd:i.value.end,start:i.value.start,"onUpdate:start":o[0]||(o[0]=l=>i.value.start=l),end:i.value.end,"onUpdate:end":o[1]||(o[1]=l=>i.value.end=l),refreshStartPoint:t.value.style.chart.zoom.startIndex!==null?t.value.style.chart.zoom.startIndex:0,refreshEndPoint:t.value.style.chart.zoom.endIndex!==null?t.value.style.chart.zoom.endIndex+1:E.value,onReset:X},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(a.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end","refreshStartPoint","refreshEndPoint"])):e.createCommentVNode("",!0),t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Ae.Legend,{key:`legend_${Z.value}`,legendSet:ie.value,config:we.value,onClickMarker:o[2]||(o[2]=({legend:l})=>U(l.uid))},{item:e.withCtx(({legend:l,index:s})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:n=>U(l.uid),style:e.normalizeStyle(`opacity:${m.value.includes(l.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(u.applyDataLabel)(t.value.style.chart.layout.dataLabels.formatter,l.value,e.unref(u.dataLabel)({p:t.value.style.chart.layout.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:s}))+" ",1),m.value.includes(l.uid)?(e.openBlock(),e.createElementBlock("span",It," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Pt," ("+e.toDisplayString(isNaN(l.value/de.value)?"-":e.unref(u.dataLabel)({v:l.value/de.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,Dt)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:ie.value},void 0,!0),a.$slots.source?(e.openBlock(),e.createElementBlock("div",Ot,[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),A.value?(e.openBlock(),e.createBlock(De.default,{key:10,hideDetails:"",config:{open:$.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Ve.DataTable,{key:`table_${Q.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:o[3]||(o[3]=l=>$.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l.name??l),1)]),td:e.withCtx(({td:l})=>[l.value===null?(e.openBlock(),e.createElementBlock("span",Tt,"-")):(e.openBlock(),e.createElementBlock("b",Mt,e.toDisplayString(isNaN(l.value)?"":t.value.style.chart.layout.dataLabels.prefix)+e.toDisplayString(!isNaN(l.value)&&l.value!==null?Number(l.value.toFixed(t.value.table.td.roundingValue)).toLocaleString():l)+e.toDisplayString(isNaN(l.value)?"":t.value.style.chart.layout.dataLabels.suffix),1)),e.createElementVNode("span",null,e.toDisplayString(l.percentage&&!isNaN(l.percentage)?`(${Number(l.percentage.toFixed(t.value.table.td.roundingPercentage)).toLocaleString()}%)`:""),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Me))}},Ut=Te._export_sfc(Ht,[["__scopeId","data-v-2d3649a3"]]);exports.default=Ut;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-DGcOW0vL.cjs"),ze=require("./Title-BWhYDGb-.cjs"),me=require("./usePrinter-DpEuGyLP.cjs"),Ve=require("./DataTable-rMMvio1U.cjs"),Ae=require("./Legend-Ba34oTdO.cjs"),$e=require("./vue-ui-skeleton-D_lU-hWK.cjs"),Fe=require("./Slicer--m1nOwbO.cjs"),De=require("./vue-ui-accordion-mtZIFAv9.cjs"),fe=require("./useNestedProp-C9KmUVBy.cjs"),Pe=require("./PackageVersion-BJi2ywG9.cjs"),Ie=require("./PenAndPaper-CX6N7FR7.cjs"),Oe=require("./useUserOptionState-BgepsfED.cjs"),Te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Me=["id"],He=["xmlns","viewBox"],Ue=["id"],qe=["stop-color"],Re=["stop-color"],We=["id"],Xe=["stop-color"],Ge=["stop-color"],Ye=["stop-color"],je={key:0},Ke=["x1","x2","y1","y2","stroke","stroke-width"],Je=["x1","x2","y1","y2","stroke","stroke-width"],Qe={key:0},Ze=["x1","x2","y1","y2","stroke","stroke-width"],et=["x1","x2","y1","y2","stroke","stroke-width"],tt=["x","y","font-size","fill","font-weight"],lt=["text-anchor","font-size","fill","transform"],at=["x1","y1","x2","y2","stroke","stroke-width"],ot={key:1},nt=["cx","cy","r","fill"],ut={key:0},rt={key:0},st=["d","stroke"],ct=["text-anchor","x","y","fill"],it=["cx","cy","r","fill"],dt={key:0},vt=["cx","cy","fill"],ht={key:1},yt=["d","fill","stroke"],mt={key:2},ft=["d","fill","stroke"],gt=["x","y","font-size","fill"],pt=["x","y","width","fill","onClick"],kt=["x","y","width","height","onMouseenter","onClick"],xt={key:3,"data-cy-zoom":"",class:"vue-ui-donut-evolution-dialog"},bt=["x","y","width","height","fill"],Bt=["x1","y1","x2","y2","stroke"],Ct=["x1","y2","x2","y1","stroke"],_t=["onKeypress","cx","cy","r"],Et=["d","stroke"],Nt=["cx","cy","r","fill"],wt=["d","fill","stroke"],St={class:"vue-ui-donut-evolution-focus"},Lt=["text-anchor","x","y","fill"],zt=["cx","cy","r","fill"],Vt=["cx","cy","r","fill"],At=["x","y","fill"],$t=["x","y","font-size","fill"],Ft={key:5,class:"vue-data-ui-watermark"},Dt=["onClick"],Pt={key:0},It={key:1},Ot={key:9,ref:"source",dir:"auto"},Tt={key:0},Mt={key:1},Ht={__name:"vue-ui-donut-evolution",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(ge,{expose:pe,emit:W}){const y=ge,{vue_ui_donut_evolution:ke}=u.useConfig(),A=e.computed(()=>!!y.dataset&&y.dataset.length),i=e.ref({start:0,end:Math.max(...y.dataset.map(a=>a.values.length))});function X(){G()}const N=e.ref(null);async function G(){(t.value.style.chart.zoom.startIndex!==null||t.value.style.chart.zoom.endIndex!==null)&&N.value?(t.value.style.chart.zoom.startIndex!==null&&(await e.nextTick(),await e.nextTick(),N.value&&N.value.setStartValue(t.value.style.chart.zoom.startIndex)),t.value.style.chart.zoom.endIndex!==null&&(await e.nextTick(),await e.nextTick(),N.value&&N.value.setEndValue(xe(t.value.style.chart.zoom.endIndex+1)))):(i.value={start:0,end:E.value},K.value+=1)}function xe(a){const o=E.value;return a>o?o:a<0||t.value.style.chart.zoom.startIndex!==null&&a<t.value.style.chart.zoom.startIndex?t.value.style.chart.zoom.startIndex!==null?t.value.style.chart.zoom.startIndex+1:1:a}e.onMounted(()=>{Y()});function Y(){u.objectIsEmpty(y.dataset)?u.error({componentName:"VueUiDonutEvolution",type:"dataset"}):y.dataset.length&&y.dataset.forEach((a,o)=>{u.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","values"]}).forEach(l=>{u.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:l,index:o})})}),G()}const _=e.ref(u.createUid()),m=e.ref([]),h=e.ref(null),P=e.ref(null),k=e.ref(!1),x=e.ref(null),I=e.ref(null),be=e.ref(null),j=e.ref(0),K=e.ref(0),J=e.ref(0),Q=e.ref(0),Z=e.ref(0),t=e.computed({get:()=>le(),set:a=>a}),{userOptionsVisible:O,setUserOptionsVisibility:ee,keepUserOptionState:te}=Oe.useUserOptionState({config:t.value});function le(){const a=fe.useNestedProp({userConfig:y.config,defaultConfig:ke});let o={};return a.theme?o={...fe.useNestedProp({userConfig:u.themes.vue_ui_donut_evolution[a.theme]||y.config,defaultConfig:a}),customPalette:u.themePalettes[a.theme]||u.palette}:o=a,y.config&&u.hasDeepProperty(y.config,"style.chart.zoom.startIndex")?o.style.chart.zoom.startIndex=y.config.style.chart.zoom.startIndex:o.style.chart.zoom.startIndex=null,y.config&&u.hasDeepProperty(y.config,"style.chart.zoom.endIndex")?o.style.chart.zoom.endIndex=y.config.style.chart.zoom.endIndex:o.style.chart.zoom.endIndex=null,o}e.watch(()=>y.config,a=>{t.value=le(),O.value=!t.value.showOnChartHover,Y(),J.value+=1,Q.value+=1,Z.value+=1},{deep:!0}),e.watch(()=>y.dataset,a=>{X()},{deep:!0});const{isPrinting:ae,isImaging:oe,generatePdf:ne,generateImage:ue}=me.usePrinter({elementId:_.value,fileName:t.value.style.chart.title.text||"vue-ui-donut-evolution"}),Be=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Ce=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),$=e.ref({showTable:t.value.table.show}),r=e.computed(()=>({top:t.value.style.chart.layout.padding.top,right:t.value.style.chart.layout.padding.right,bottom:t.value.style.chart.layout.padding.bottom,left:t.value.style.chart.layout.padding.left})),c=e.computed(()=>{const a=t.value.style.chart.layout.height,o=t.value.style.chart.layout.width,l=a-r.value.top-r.value.bottom,s=o-r.value.left-r.value.right;return{absoluteHeight:a,absoluteWidth:o,centerX:r.value.left+s/2,centerY:r.value.top+l/2,height:l,width:s}}),C=e.computed(()=>(y.dataset.forEach((a,o)=>{[null,void 0].includes(a.name)&&u.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"name",index:o}),[null,void 0].includes(a.values)&&u.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"values",index:o})}),y.dataset.map((a,o)=>({...a,values:u.sanitizeArray(a.values),color:u.convertColorToHex(a.color)||Ce.value[o]||u.palette[o]||u.palette[o%u.palette.length],length:(a.values||[]).length,uid:u.createUid()})))),z=e.computed(()=>C.value.filter(a=>!m.value.includes(a.uid)).map(a=>({...a,values:a.values.filter((o,l)=>l>=i.value.start&&l<=i.value.end)}))),E=e.computed(()=>Math.max(...z.value.map(a=>a.length))),g=e.computed(()=>c.value.width/(i.value.end-i.value.start)),f=e.computed(()=>{const a=[];for(let n=0;n<i.value.end-i.value.start;n+=1){const v=z.value.map(B=>B.values[n]??null),d=v.filter(B=>[void 0,null].includes(B)).length===v.length,b=v.reduce((B,p)=>B+p,0),R=v.map(B=>B/b),L=r.value.left+g.value*n+g.value/2;a.push({index:n,percentages:R,subtotal:d||b<0?null:b,values:v,x:L})}const o=0,l=Math.max(...a.map(n=>n.subtotal)),s=a.length===1?l*2:l;return a.map((n,v)=>{const d=g.value/2*.7,b=d>c.value.width/16?c.value.width/16:d,R=h.value===n.index?c.value.width/16:b,L=a.length>4?d*2:d*2>g.value/2*.7?g.value/2*.7:d*2,B=c.value.absoluteHeight-r.value.bottom-c.value.height*n.subtotal/u.calculateNiceScale(o,s,t.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;return{...n,y:B,radius:b,activeRadius:R,hoverRadius:L,donut:u.makeDonut({series:z.value.map((p,ye)=>({color:p.color,name:p.name,value:p.values[v]??0}))},n.x,B,b,b,1.99999,2,1,360,105.25,b/2),donutHover:u.makeDonut({series:z.value.map((p,ye)=>({color:p.color,name:p.name,value:p.values[v]??0}))},n.x,B,L,L,1.99999,2,1,360,105.25,L/2),donutFocus:u.makeDonut({series:z.value.map((p,ye)=>({color:p.color,name:p.name,value:p.values[v]??0}))},c.value.centerX,c.value.centerY,c.value.height/3.6,c.value.height/3.6,1.99999,2,1,360,105.25,c.value.height/6)}})});function F(a,o,l){return u.applyDataLabel(t.value.style.chart.layout.dataLabels.formatter,a,u.dataLabel({p:t.value.style.chart.layout.dataLabels.prefix,v:a,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.layout.dataLabels.rounding}),{datapoint:o,index:l})}const T=e.computed(()=>({max:Math.max(...f.value.map(a=>a.subtotal)),min:0})),w=e.computed(()=>{const a=f.value.length===1?T.value.max*2:T.value.max;return u.calculateNiceScale(T.value.min,a,t.value.style.chart.layout.grid.yAxis.dataLabels.steps)});function _e(a){return a/w.value.max}const Ee=e.computed(()=>w.value.ticks.map(a=>({y:c.value.absoluteHeight-r.value.bottom-c.value.height*_e(a),value:a})));function re(a,o){return isNaN(a.value/u.sumByAttribute(o,"value"))?0:(a.value/u.sumByAttribute(o,"value")*100).toFixed(0)+"%"}function se(){k.value||(h.value=null,P.value=null)}function Ne(a){k.value||(h.value=a.index,P.value=a)}const M=e.ref(null);function H(a,o){a.subtotal&&(P.value=null,h.value=null,k.value=!0,x.value=a,[null,void 0].includes(o)||(M.value=o))}function ce(){x.value=null,k.value=!1,M.value=null}const ie=e.computed(()=>C.value.map((a,o)=>({name:a.name,value:a.values.slice(i.value.start,i.value.end).reduce((l,s)=>l+s,0),shape:"circle",uid:a.uid,color:a.color})).sort((a,o)=>o.value-a.value).map(a=>({...a,opacity:m.value.includes(a.uid)?.5:1,segregate:()=>U(a.uid),isSegregated:m.value.includes(a.uid)}))),de=e.computed(()=>f.value.map(a=>a.subtotal).reduce((a,o)=>a+o,0)),we=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""}));function U(a){if(m.value.includes(a))m.value=m.value.filter(o=>o!==a),W("selectLegend",null);else{if(m.value.length===C.value.length-1)return;m.value.push(a),W("selectLegend",C.value.find(o=>o.uid===a))}x.value&&H(f.value.find((o,l)=>l===M.value))}const S=e.computed(()=>{const a=[""].concat(C.value.filter(n=>!m.value.includes(n.uid)).map(n=>({name:n.name,color:n.color}))).concat(["Σ"]);let o=[];for(let n=0;n<E.value;n+=1){const v=C.value.filter(d=>!m.value.includes(d.uid)).map(d=>d.values[n]??0).reduce((d,b)=>d+b,0);o.push([t.value.style.chart.layout.grid.xAxis.dataLabels.values[n]??"-"].concat(C.value.filter(d=>!m.value.includes(d.uid)).map(d=>({value:d.values[n]??0,percentage:d.values[n]?d.values[n]/v*100:0}))).concat([`${t.value.style.chart.layout.dataLabels.prefix}${Number(v.toFixed(t.value.table.td.roundingValue))}${t.value.style.chart.layout.dataLabels.suffix}`]))}const l={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},s=[t.value.table.columnNames.period].concat(C.value.filter(n=>!m.value.includes(n.uid)).map(n=>n.name)).concat(t.value.table.columnNames.total);return{head:a,body:o,config:l,colNames:s}});function Se(){return C.value}function ve(){e.nextTick(()=>{const a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=[...S.value.head.map(v=>v.name??v)],l=[...S.value.body.map(v=>v.map(d=>d.value??d))],s=a.concat([o]).concat(l),n=u.createCsvContent(s);u.downloadCsv({csvContent:n,title:t.value.style.chart.title.text||"vue-ui-donut-evolution"})})}const V=e.ref(!1);function Le(a){V.value=a,j.value+=1}function he(){$.value.showTable=!$.value.showTable}const D=e.ref(!1);function q(){D.value=!D.value}return pe({getData:Se,generatePdf:ne,generateCsv:ve,generateImage:ue,toggleTable:he,toggleAnnotator:q}),(a,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutEvolutionChart",ref:I,class:e.normalizeClass(`vue-ui-donut-evolution ${V.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),id:_.value,onMouseenter:o[4]||(o[4]=()=>e.unref(ee)(!0)),onMouseleave:o[5]||(o[5]=()=>e.unref(ee)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ie.PenAndPaper,{key:0,parent:I.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:D.value,onClose:q},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),Be.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:be,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,style:"width:100%;background:transparent;padding-bottom:24px",onMouseleave:se},[(e.openBlock(),e.createBlock(ze._sfc_main,{key:`title_${J.value}`,config:{title:{cy:"donut-evolution-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-evolution-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],32)):e.createCommentVNode("",!0),t.value.userOptions.show&&A.value&&(e.unref(te)||e.unref(O))?(e.openBlock(),e.createBlock(me.UserOptions,{ref:"details",key:`user_options_${j.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ae),isImaging:e.unref(oe),uid:_.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:I.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:D.value,onToggleFullscreen:Le,onGeneratePdf:e.unref(ne),onGenerateCsv:ve,onGenerateImage:e.unref(ue),onToggleTable:he,onToggleAnnotator:q,style:e.normalizeStyle({visibility:e.unref(te)?e.unref(O)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:s})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:s})),void 0,!0)]),key:"4"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:s})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:s})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),A.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(u.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${c.value.absoluteWidth} ${c.value.absoluteHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Pe._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`hover_${_.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(u.setOpacity)(t.value.style.chart.backgroundColor,t.value.style.chart.layout.highlighter.opacity)},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(u.setOpacity)(t.value.style.chart.layout.highlighter.color,t.value.style.chart.layout.highlighter.opacity)},null,8,Re)],8,Ue),e.createElementVNode("radialGradient",{id:`focus_${_.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(u.setOpacity)(e.unref(u.convertColorToHex)(t.value.style.chart.backgroundColor),0)},null,8,Xe),e.createElementVNode("stop",{offset:"77%","stop-color":e.unref(u.setOpacity)("#FFFFFF",30)},null,8,Ge),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(u.setOpacity)(e.unref(u.convertColorToHex)(t.value.style.chart.backgroundColor),0)},null,8,Ye)],8,We)]),t.value.style.chart.layout.grid.show?(e.openBlock(),e.createElementBlock("g",je,[e.createElementVNode("line",{x1:r.value.left,x2:r.value.left,y1:r.value.top,y2:r.value.top+c.value.height,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ke),e.createElementVNode("line",{x1:r.value.left,x2:c.value.absoluteWidth-r.value.right,y1:c.value.absoluteHeight-r.value.bottom,y2:c.value.absoluteHeight-r.value.bottom,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Je),t.value.style.chart.layout.grid.showVerticalLines?(e.openBlock(),e.createElementBlock("g",Qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.end-i.value.start,(l,s)=>(e.openBlock(),e.createElementBlock("line",{x1:r.value.left+(s+1)*g.value,x2:r.value.left+(s+1)*g.value,y1:r.value.top,y2:c.value.absoluteHeight-r.value.bottom,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ze))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.chart.layout.grid.yAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:1,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":h.value!==null||k.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ee.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l.value>=w.value.min&&l.value<=w.value.max?(e.openBlock(),e.createElementBlock("line",{key:0,x1:r.value.left,x2:r.value.left-5,y1:l.y,y2:l.y,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,et)):e.createCommentVNode("",!0),l.value>=w.value.min&&l.value<=w.value.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:r.value.left-8+t.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,y:l.y+t.value.style.chart.layout.grid.yAxis.dataLabels.fontSize/3,"font-size":t.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,"text-anchor":"end",fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-weight":t.value.style.chart.layout.grid.yAxis.dataLabels.bold?"bold":"normal"},e.toDisplayString(e.unref(u.canShowValue)(l.value)?e.unref(u.applyDataLabel)(t.value.style.chart.layout.dataLabels.formatter,l.value,e.unref(u.dataLabel)({p:t.value.style.chart.layout.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue}),{datapoint:l,seriesIndex:s}):""),9,tt)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),t.value.style.chart.layout.grid.xAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:2,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":k.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.end-i.value.start,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast&&(s===0||s===E.value-1)||!t.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":t.value.style.chart.layout.grid.xAxis.dataLabels.rotation>0?"start":t.value.style.chart.layout.grid.xAxis.dataLabels.rotation<0?"end":"middle","font-size":t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,fill:t.value.style.chart.layout.grid.xAxis.dataLabels.color,transform:`translate(${r.value.left+g.value*s+g.value/2}, ${t.value.style.chart.layout.grid.xAxis.dataLabels.offsetY+c.value.absoluteHeight-r.value.bottom+t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2}), rotate(${t.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`},e.toDisplayString(t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(s)+Number(i.value.start)]??""),9,lt)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.line.show&&s<f.value.length-1&&![l.subtotal,f.value[s+1].subtotal].includes(null)?(e.openBlock(),e.createElementBlock("line",{key:0,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":h.value!==null||k.value}),x1:l.x,y1:l.y,x2:f.value[s+1].x,y2:f.value[s+1].y,stroke:t.value.style.chart.layout.line.stroke,"stroke-width":t.value.style.chart.layout.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,10,at)):e.createCommentVNode("",!0),l.subtotal!==null?(e.openBlock(),e.createElementBlock("g",ot,[l.subtotal?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:l.activeRadius,fill:t.value.style.chart.backgroundColor},null,8,nt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||k.value})},[l.subtotal?(e.openBlock(),e.createElementBlock("g",ut,[h.value!==null&&h.value===s?(e.openBlock(),e.createElementBlock("g",rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,n=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{d:e.unref(u.calcNutArrowPath)(n,{x:n.center.endX,y:n.center.endY},12,12,{x:l.x,y:l.y},!0,20),stroke:n.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,st)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,(n,v)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("text",{"data-cy-hover-label":"","text-anchor":e.unref(u.calcMarkerOffsetX)(n,!0,0).anchor,x:e.unref(u.calcMarkerOffsetX)(n,!0,3).x,y:e.unref(u.calcMarkerOffsetY)(n),fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":8,"font-weight":"bold"},e.toDisplayString(n.name)+": "+e.toDisplayString(re(n,l.donut))+" ("+e.toDisplayString(n.value===null?"-":F(n.value,n,v))+") ",9,ct)]))),256)),e.createElementVNode("g",null,[e.createElementVNode("circle",{cx:l.x,cy:l.y,r:l.hoverRadius,fill:t.value.style.chart.backgroundColor},null,8,it)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||k.value})},[l.subtotal!==null?(e.openBlock(),e.createElementBlock("g",dt,[l.subtotal===0?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:3,fill:t.value.style.chart.color},null,8,vt)):h.value!==null&&h.value===s?(e.openBlock(),e.createElementBlock("g",ht,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,(n,v)=>(e.openBlock(),e.createElementBlock("path",{d:n.arcSlice,fill:`${n.color}`,"stroke-width":1,stroke:t.value.style.chart.backgroundColor},null,8,yt))),256))])):(e.openBlock(),e.createElementBlock("g",mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donut,(n,v)=>(e.openBlock(),e.createElementBlock("path",{d:n.arcSlice,fill:`${n.color}`,"stroke-width":.5,stroke:t.value.style.chart.backgroundColor},null,8,ft))),256))]))])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||k.value})},[l.subtotal!==null&&t.value.style.chart.layout.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:l.x,y:h.value===l.index&&l.subtotal?l.y+t.value.style.chart.layout.dataLabels.fontSize/3:l.y-l.radius-t.value.style.chart.layout.dataLabels.fontSize+t.value.style.chart.layout.dataLabels.offsetY,"font-size":t.value.style.chart.layout.dataLabels.fontSize,"font-weight":"bold",fill:t.value.style.chart.layout.dataLabels.color},e.toDisplayString(F(l.subtotal,l,s)),9,gt)):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("rect",{x:r.value.left+s*g.value,y:c.value.absoluteHeight-r.value.bottom-10,width:g.value,height:10,fill:h.value===l.index?`url(#hover_${_.value})`:"transparent",onClick:n=>H(l,s),class:e.normalizeClass({"donut-hover":h.value===l.index&&l.subtotal})},null,10,pt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("rect",{"data-cy-trap":"",x:r.value.left+s*g.value,y:r.value.top,width:g.value,height:c.value.height,fill:"transparent",onMouseenter:n=>Ne(l),onMouseleave:se,onClick:n=>H(l,s),class:e.normalizeClass({"donut-hover":h.value===l.index&&l.subtotal})},null,42,kt))),256)),k.value?(e.openBlock(),e.createElementBlock("g",xt,[e.createElementVNode("rect",{rx:4,x:r.value.left,y:r.value.top,width:c.value.width,height:c.value.height,fill:t.value.style.chart.backgroundColor,style:{filter:"drop-shadow(0 12px 12px rgba(0,0,0,0.3))"}},null,8,bt),e.createElementVNode("line",{"data-html2canvas-ignore":"",x1:c.value.absoluteWidth-r.value.right-15,y1:r.value.top+5,x2:c.value.absoluteWidth-r.value.right-4,y2:r.value.top+15.5,"stroke-linecap":"round",stroke:t.value.style.chart.color,"stroke-width":"1.5"},null,8,Bt),e.createElementVNode("line",{"data-html2canvas-ignore":"",x1:c.value.absoluteWidth-r.value.right-15,y2:r.value.top+5,x2:c.value.absoluteWidth-r.value.right-4,y1:r.value.top+15.5,"stroke-linecap":"round",stroke:t.value.style.chart.color,"stroke-width":"1.5"},null,8,Ct),e.createElementVNode("circle",{"data-cy-close":"",onClick:ce,onKeypress:e.withKeys(ce,["enter"]),cx:c.value.absoluteWidth-r.value.right-c.value.width/40,cy:r.value.top+c.value.height/30,r:c.value.height/12,fill:"transparent",style:{cursor:"pointer"},tabindex:"0"},null,40,_t),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value.donutFocus,l=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{"data-cy-zoom-donut":"",d:e.unref(u.calcNutArrowPath)(l,{x:c.value.centerX,y:c.value.centerY},12,12,!1,!1,15),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:"vue-ui-donut-evolution-focus"},null,8,Et)]))),256)),e.createElementVNode("circle",{cx:r.value.left+c.value.width/2,cy:r.value.top+c.value.height/2,r:c.value.height/7,fill:t.value.style.chart.backgroundColor},null,8,Nt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value.donutFocus,(l,s)=>(e.openBlock(),e.createElementBlock("path",{d:l.arcSlice,fill:`${l.color}`,"stroke-width":1,stroke:t.value.style.chart.backgroundColor,class:"vue-ui-donut-evolution-focus"},null,8,wt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value.donutFocus,(l,s)=>(e.openBlock(),e.createElementBlock("g",St,[e.createElementVNode("text",{"text-anchor":e.unref(u.calcMarkerOffsetX)(l,!0,20).anchor,x:e.unref(u.calcMarkerOffsetX)(l,!0,10).x,y:e.unref(u.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":10,"font-weight":"bold"},e.toDisplayString(l.name)+": "+e.toDisplayString(re(l,x.value.donutFocus))+" ("+e.toDisplayString(l.value===null?"-":F(l.value,l,s))+") ",9,Lt)]))),256)),e.createElementVNode("circle",{cx:r.value.left+c.value.width/2,cy:r.value.top+c.value.height/2,r:c.value.height/3.8,fill:`url(#focus_${_.value})`},null,8,zt),e.createElementVNode("circle",{cx:r.value.left+c.value.width/2,cy:r.value.top+c.value.height/2,r:c.value.height/7.7,fill:t.value.style.chart.backgroundColor},null,8,Vt),e.createElementVNode("text",{"text-anchor":"middle",x:r.value.left+c.value.width/2,y:r.value.top+c.value.height/2+14/3,"font-size":14,"font-weight":"bold",fill:t.value.style.chart.layout.dataLabels.color,class:"vue-ui-donut-evolution-focus"},e.toDisplayString(F(x.value.subtotal,x.value,null)),9,At),t.value.style.chart.layout.grid.xAxis.dataLabels.values[x.value.index]?(e.openBlock(),e.createElementBlock("text",{key:0,x:r.value.left+6,y:r.value.top+t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2,"font-size":t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*1.6,fill:t.value.style.chart.layout.dataLabels.color},e.toDisplayString(t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(x.value.index)+Number(i.value.start)]),9,$t)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:c.value},void 0,!0)],14,He)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ft,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ae)||e.unref(oe)})),void 0,!0)])):e.createCommentVNode("",!0),A.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($e.default,{key:6,config:{type:"donutEvolution",style:{backgroundColor:t.value.style.chart.backgroundColor,donutEvolution:{axis:{color:"#CCCCCC"},donuts:{color:"#CCCCCC"}}}}},null,8,["config"])),E.value>1&&t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(Fe.Slicer,{ref_key:"slicerComponent",ref:N,key:`slicer_${K.value}`,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,fontSize:t.value.style.chart.zoom.fontSize,useResetSlot:t.value.style.chart.zoom.useResetSlot,labelLeft:t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(i.value.start)]||"",labelRight:t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(i.value.end)-1]||"",textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,max:E.value,min:0,valueStart:i.value.start,valueEnd:i.value.end,start:i.value.start,"onUpdate:start":o[0]||(o[0]=l=>i.value.start=l),end:i.value.end,"onUpdate:end":o[1]||(o[1]=l=>i.value.end=l),refreshStartPoint:t.value.style.chart.zoom.startIndex!==null?t.value.style.chart.zoom.startIndex:0,refreshEndPoint:t.value.style.chart.zoom.endIndex!==null?t.value.style.chart.zoom.endIndex+1:E.value,onReset:X},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(a.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end","refreshStartPoint","refreshEndPoint"])):e.createCommentVNode("",!0),t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Ae.Legend,{key:`legend_${Z.value}`,legendSet:ie.value,config:we.value,onClickMarker:o[2]||(o[2]=({legend:l})=>U(l.uid))},{item:e.withCtx(({legend:l,index:s})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:n=>U(l.uid),style:e.normalizeStyle(`opacity:${m.value.includes(l.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(u.applyDataLabel)(t.value.style.chart.layout.dataLabels.formatter,l.value,e.unref(u.dataLabel)({p:t.value.style.chart.layout.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:s}))+" ",1),m.value.includes(l.uid)?(e.openBlock(),e.createElementBlock("span",It," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Pt," ("+e.toDisplayString(isNaN(l.value/de.value)?"-":e.unref(u.dataLabel)({v:l.value/de.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,Dt)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:ie.value},void 0,!0),a.$slots.source?(e.openBlock(),e.createElementBlock("div",Ot,[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),A.value?(e.openBlock(),e.createBlock(De.default,{key:10,hideDetails:"",config:{open:$.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Ve.DataTable,{key:`table_${Q.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:o[3]||(o[3]=l=>$.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l.name??l),1)]),td:e.withCtx(({td:l})=>[l.value===null?(e.openBlock(),e.createElementBlock("span",Tt,"-")):(e.openBlock(),e.createElementBlock("b",Mt,e.toDisplayString(isNaN(l.value)?"":t.value.style.chart.layout.dataLabels.prefix)+e.toDisplayString(!isNaN(l.value)&&l.value!==null?Number(l.value.toFixed(t.value.table.td.roundingValue)).toLocaleString():l)+e.toDisplayString(isNaN(l.value)?"":t.value.style.chart.layout.dataLabels.suffix),1)),e.createElementVNode("span",null,e.toDisplayString(l.percentage&&!isNaN(l.percentage)?`(${Number(l.percentage.toFixed(t.value.table.td.roundingPercentage)).toLocaleString()}%)`:""),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Me))}},Ut=Te._export_sfc(Ht,[["__scopeId","data-v-2d3649a3"]]);exports.default=Ut;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { computed as p, ref as m, onMounted as nt, watch as Me, openBlock as a, createElementBlock as u, normalizeClass as P, normalizeStyle as q, unref as c, createBlock as T, createCommentVNode as v, createSlots as rt, withCtx as I, renderSlot as F, normalizeProps as J, guardReactiveProps as Q, createVNode as it, createElementVNode as d, Fragment as k, renderList as _, toDisplayString as b, withKeys as ct, createTextVNode as He, nextTick as X } from "vue";
|
|
2
|
-
import { u as vt, o as dt, e as Z, g as ht, c as Ue, t as yt, a as ft, p as ee, C as We, b as gt, J as mt, d as de, D as Re, m as he, X as bt, s as G, E as xt, i as ye, f as te, j as Xe, k as le, n as Ge, K as je, q as pt, r as kt } from "./index-
|
|
3
|
-
import { _ as _t } from "./Title-
|
|
4
|
-
import { u as Ct, U as wt } from "./usePrinter-
|
|
5
|
-
import { D as Lt } from "./DataTable-
|
|
6
|
-
import { L as zt } from "./Legend-
|
|
7
|
-
import St from "./vue-ui-skeleton-
|
|
8
|
-
import { S as At } from "./Slicer-
|
|
9
|
-
import $t from "./vue-ui-accordion-
|
|
10
|
-
import { u as Be } from "./useNestedProp-
|
|
11
|
-
import { _ as Nt } from "./PackageVersion-
|
|
12
|
-
import { P as It } from "./PenAndPaper-
|
|
2
|
+
import { u as vt, o as dt, e as Z, g as ht, c as Ue, t as yt, a as ft, p as ee, C as We, b as gt, J as mt, d as de, D as Re, m as he, X as bt, s as G, E as xt, i as ye, f as te, j as Xe, k as le, n as Ge, K as je, q as pt, r as kt } from "./index-Dhlyke5j.js";
|
|
3
|
+
import { _ as _t } from "./Title-BecmraNn.js";
|
|
4
|
+
import { u as Ct, U as wt } from "./usePrinter-BnBk8gnl.js";
|
|
5
|
+
import { D as Lt } from "./DataTable-D8MTezlM.js";
|
|
6
|
+
import { L as zt } from "./Legend-wr5XLSfL.js";
|
|
7
|
+
import St from "./vue-ui-skeleton-DQqwDUqP.js";
|
|
8
|
+
import { S as At } from "./Slicer-Bwg4WzZf.js";
|
|
9
|
+
import $t from "./vue-ui-accordion-CGpOsWNN.js";
|
|
10
|
+
import { u as Be } from "./useNestedProp-D9eTQKze.js";
|
|
11
|
+
import { _ as Nt } from "./PackageVersion-xnKIqody.js";
|
|
12
|
+
import { P as It } from "./PenAndPaper-iek0aH4r.js";
|
|
13
13
|
import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
|
|
14
14
|
import { _ as Pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"], Vt = ["stop-color"], Mt = ["id"], Ht = ["stop-color"], Ut = ["stop-color"], Wt = ["stop-color"], Rt = { key: 0 }, Xt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = { key: 0 }, Bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kt = ["x", "y", "font-size", "fill", "font-weight"], qt = ["text-anchor", "font-size", "fill", "transform"], Jt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Qt = { key: 1 }, Zt = ["cx", "cy", "r", "fill"], el = { key: 0 }, tl = { key: 0 }, ll = ["d", "stroke"], al = ["text-anchor", "x", "y", "fill"], ol = ["cx", "cy", "r", "fill"], ul = { key: 0 }, sl = ["cx", "cy", "fill"], nl = { key: 1 }, rl = ["d", "fill", "stroke"], il = { key: 2 }, cl = ["d", "fill", "stroke"], vl = ["x", "y", "font-size", "fill"], dl = ["x", "y", "width", "fill", "onClick"], hl = ["x", "y", "width", "height", "onMouseenter", "onClick"], yl = {
|