vue-data-ui 2.4.64 → 2.4.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -34
- package/dist/{Arrow-DSkIkWAr.cjs → Arrow-BKPURRQ6.cjs} +1 -1
- package/dist/{Arrow-CRM8J83L.js → Arrow-C7ihyW4O.js} +1 -1
- package/dist/{BaseIcon-D13bKBUN.cjs → BaseIcon-CyTdOpDr.cjs} +1 -1
- package/dist/{BaseIcon-Axko0XAg.js → BaseIcon-DpaRUsHC.js} +1 -1
- package/dist/{DataTable-DnrSae6c.cjs → DataTable-CwzQ-L0W.cjs} +1 -1
- package/dist/{DataTable-B2hVpPSW.js → DataTable-DX_jYNWG.js} +2 -2
- package/dist/Legend-BMTBtkoQ.cjs +1 -0
- package/dist/Legend-DGUxLqhs.js +70 -0
- package/dist/{PackageVersion-B684aQUP.js → PackageVersion-B9_Ed72C.js} +1 -1
- package/dist/{PackageVersion-FzHnQSp-.cjs → PackageVersion-D_9QTWVm.cjs} +1 -1
- package/dist/{PenAndPaper-C6I0ckZw.cjs → PenAndPaper-CfGYucSm.cjs} +1 -1
- package/dist/{PenAndPaper-mC0kh-S8.js → PenAndPaper-CzjoEhsO.js} +3 -3
- package/dist/{Shape-eJUVLesM.cjs → Shape-CZB2KQ0L.cjs} +1 -1
- package/dist/{Shape-DbnYh6z4.js → Shape-aXd72O71.js} +1 -1
- package/dist/{Slicer-C9bF7-B-.cjs → Slicer-ChxjRhai.cjs} +1 -1
- package/dist/{Slicer-BBolqweG.js → Slicer-CopZgIzh.js} +2 -2
- package/dist/{Title-DuMgnso9.cjs → Title-BnRtxxP4.cjs} +1 -1
- package/dist/{Title-DqZErnpZ.js → Title-DyUTj8GI.js} +1 -1
- package/dist/{Tooltip-DddRc8qD.js → Tooltip-B-0uEV3l.js} +1 -1
- package/dist/{Tooltip-Cz3eQmMV.cjs → Tooltip-CUoQNXZK.cjs} +1 -1
- package/dist/documentation/installation.md +34 -34
- package/dist/{index-DjTPIx3R.js → index-BVNcFEqn.js} +398 -393
- package/dist/{index-D-xYtUSL.cjs → index-CKgv8c-A.cjs} +5 -5
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BN-VfUfj.cjs → useNestedProp-0Mn5Z6Ae.cjs} +1 -1
- package/dist/{useNestedProp-BNmCbG1v.js → useNestedProp-D79dWdel.js} +1 -1
- package/dist/{usePrinter-BFF1xn1s.js → usePrinter-Bcfs_I6G.js} +1 -1
- package/dist/{usePrinter-pT-a_sFr.cjs → usePrinter-Gkda9yEJ.cjs} +1 -1
- package/dist/{vue-data-ui-CPMtS74M.js → vue-data-ui-CXxR_hXg.js} +60 -60
- package/dist/{vue-data-ui-rWaUsffe.cjs → vue-data-ui-DAwVdbN1.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +9 -9
- package/dist/{vue-ui-3d-bar-CxcO1rW_.cjs → vue-ui-3d-bar-baVCskbW.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-Cpx0rTUr.js → vue-ui-3d-bar-mxTzin_H.js} +9 -9
- package/dist/{vue-ui-accordion-CDTXGeL0.js → vue-ui-accordion-GNblUy42.js} +3 -3
- package/dist/{vue-ui-accordion-B1MkyNta.cjs → vue-ui-accordion-xV0it5je.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CSwlc2bd.js → vue-ui-age-pyramid-DFBuvQgd.js} +10 -10
- package/dist/{vue-ui-age-pyramid-CEvYSZnY.cjs → vue-ui-age-pyramid-ULh6qSJs.cjs} +1 -1
- package/dist/{vue-ui-annotator-BUoz1Y87.cjs → vue-ui-annotator-C89rtAuX.cjs} +1 -1
- package/dist/{vue-ui-annotator-D5dS0BTP.js → vue-ui-annotator-XbCqxBQ0.js} +1 -1
- package/dist/{vue-ui-bullet-RDyK79l0.js → vue-ui-bullet-D_CS85II.js} +8 -8
- package/dist/{vue-ui-bullet-Bcx-V2GQ.cjs → vue-ui-bullet-DxRqDaiw.cjs} +1 -1
- package/dist/{vue-ui-candlestick-s-Z42Lns.js → vue-ui-candlestick-C8mUQTPF.js} +11 -11
- package/dist/{vue-ui-candlestick-CkjNRVDz.cjs → vue-ui-candlestick-CZxpFMKR.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DJNIAgAU.js → vue-ui-carousel-table-D5iLQe38.js} +4 -4
- package/dist/{vue-ui-carousel-table-CoLBbF34.cjs → vue-ui-carousel-table-DKcc-jNW.cjs} +1 -1
- package/dist/{vue-ui-chestnut-P1hAffNt.cjs → vue-ui-chestnut-BFV6pTfc.cjs} +1 -1
- package/dist/{vue-ui-chestnut-_90914ye.js → vue-ui-chestnut-BqGCLMiu.js} +8 -8
- package/dist/{vue-ui-cursor-BoGnTfem.cjs → vue-ui-cursor-BJjzKpLm.cjs} +1 -1
- package/dist/{vue-ui-cursor-Doo6HM0B.js → vue-ui-cursor-BysQ-bDH.js} +2 -2
- package/dist/{vue-ui-dashboard-mC_BLuIN.cjs → vue-ui-dashboard-C0L_0gyc.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BZKKb8cZ.js → vue-ui-dashboard-zrJGrAmc.js} +2 -2
- package/dist/{vue-ui-digits-Z8AprQhX.js → vue-ui-digits-B5P9UheE.js} +2 -2
- package/dist/{vue-ui-digits-DFwg7Et3.cjs → vue-ui-digits-BG_xts2G.cjs} +1 -1
- package/dist/vue-ui-donut-7tNjrx1E.js +1173 -0
- package/dist/vue-ui-donut-B9M9CW9D.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-CK_0JI6T.js → vue-ui-donut-evolution-C7FpJ59u.js} +11 -11
- package/dist/{vue-ui-donut-evolution-D-6gM9JV.cjs → vue-ui-donut-evolution-CEvGFdxK.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-C4y9e7Gz.js → vue-ui-dumbbell-CdxHbLz6.js} +10 -10
- package/dist/{vue-ui-dumbbell-DS_3Z5cT.cjs → vue-ui-dumbbell-DP27C8NG.cjs} +1 -1
- package/dist/{vue-ui-flow-XrJvcKqr.js → vue-ui-flow-cKQSDKfP.js} +9 -9
- package/dist/{vue-ui-flow-C2sVVaok.cjs → vue-ui-flow-yW5Pa_MJ.cjs} +1 -1
- package/dist/{vue-ui-funnel-DxhsOEbU.cjs → vue-ui-funnel-73aPtRj5.cjs} +1 -1
- package/dist/{vue-ui-funnel-CHhVPjnM.js → vue-ui-funnel-qPYVhQpD.js} +9 -9
- package/dist/{vue-ui-galaxy-Bd8p21nC.js → vue-ui-galaxy-2SRA_RYP.js} +11 -11
- package/dist/{vue-ui-galaxy-CRsan4r5.cjs → vue-ui-galaxy-9E5GUtBD.cjs} +1 -1
- package/dist/vue-ui-gauge-CBbvp9DU.cjs +1 -0
- package/dist/{vue-ui-gauge-B-nOtSwD.js → vue-ui-gauge-Cpvg4BBS.js} +236 -224
- package/dist/{vue-ui-gizmo-tQNlhr2p.js → vue-ui-gizmo-B5v0g_Ly.js} +3 -3
- package/dist/{vue-ui-gizmo-C3GRBcSW.cjs → vue-ui-gizmo-BkNuHnnf.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DwalrFVm.cjs → vue-ui-heatmap-CcUuOqGT.cjs} +1 -1
- package/dist/{vue-ui-heatmap-6MpvCBmt.js → vue-ui-heatmap-dNeKqLC0.js} +10 -10
- package/dist/{vue-ui-history-plot-Hk-UrZtS.js → vue-ui-history-plot-COtfhHw8.js} +11 -11
- package/dist/{vue-ui-history-plot-FgapeA0e.cjs → vue-ui-history-plot-p18wqHFY.cjs} +1 -1
- package/dist/{vue-ui-kpi-CKZQsJnV.cjs → vue-ui-kpi-DCn50wZ8.cjs} +1 -1
- package/dist/{vue-ui-kpi-DrCH9EuP.js → vue-ui-kpi-HyZOfh63.js} +3 -3
- package/dist/{vue-ui-mini-loader-BSKXq7CA.cjs → vue-ui-mini-loader-DaPxFP7e.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BLvcc-fM.js → vue-ui-mini-loader-Dp7zc34Q.js} +2 -2
- package/dist/{vue-ui-molecule-Ch4_SJxL.js → vue-ui-molecule-Oim4-hUn.js} +11 -11
- package/dist/{vue-ui-molecule-D0IHSilQ.cjs → vue-ui-molecule-zkdP7FYM.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DNPseOpJ.cjs → vue-ui-mood-radar-CKdM8iDY.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Gv0k1T46.js → vue-ui-mood-radar-DsSO6gfa.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DY8Hig_-.js → vue-ui-nested-donuts-B5NPJfg6.js} +11 -11
- package/dist/{vue-ui-nested-donuts-QOvJJc30.cjs → vue-ui-nested-donuts-DbTXLan2.cjs} +1 -1
- package/dist/{vue-ui-onion-Ca0Tcbu3.cjs → vue-ui-onion-0Od2Vodu.cjs} +1 -1
- package/dist/{vue-ui-onion-Ct_1j1fA.js → vue-ui-onion-CID0DNSa.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-DkYcNRQk.js → vue-ui-parallel-coordinate-plot-DAfBgYbI.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-C_opo0qJ.cjs → vue-ui-parallel-coordinate-plot-WtcXCTd-.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DwAKm2Yj.js → vue-ui-quadrant-063Cq0di.js} +12 -12
- package/dist/{vue-ui-quadrant-BJuoZ_lv.cjs → vue-ui-quadrant-B6WNmecC.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-5ga8waQS.cjs → vue-ui-quick-chart-CwNFF0R4.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-D5V73GXO.js → vue-ui-quick-chart-DCPwhpbx.js} +9 -9
- package/dist/{vue-ui-radar-CmE4wCWD.js → vue-ui-radar-BmY47r3J.js} +12 -12
- package/dist/{vue-ui-radar-C3kzmi1G.cjs → vue-ui-radar-DcnVyGrM.cjs} +1 -1
- package/dist/{vue-ui-rating-CE7LGiFS.cjs → vue-ui-rating-D_9Fqvd_.cjs} +1 -1
- package/dist/{vue-ui-rating-SAph_BKh.js → vue-ui-rating-b2SThMJw.js} +2 -2
- package/dist/{vue-ui-relation-circle-D1JdWshk.js → vue-ui-relation-circle-B0Q2FdDW.js} +7 -7
- package/dist/{vue-ui-relation-circle-dQQw_mgd.cjs → vue-ui-relation-circle-Cg3QL_aP.cjs} +1 -1
- package/dist/vue-ui-rings-BQdgj7bV.cjs +2 -0
- package/dist/vue-ui-rings-DlsKpDkQ.js +666 -0
- package/dist/{vue-ui-scatter-BrOg2xiN.cjs → vue-ui-scatter-D6Yb6VpP.cjs} +1 -1
- package/dist/{vue-ui-scatter-DE4X0DQI.js → vue-ui-scatter-E_WveJ4p.js} +36 -36
- package/dist/{vue-ui-screenshot-CyWEEkg_.js → vue-ui-screenshot-CbLsOjZv.js} +1 -1
- package/dist/{vue-ui-screenshot-BXq82cfA.cjs → vue-ui-screenshot-DhvqiF7S.cjs} +1 -1
- package/dist/{vue-ui-skeleton-D3zg7qd2.cjs → vue-ui-skeleton-73YO0ovP.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Dt9cA-wa.js → vue-ui-skeleton-Bgf16k10.js} +3 -3
- package/dist/{vue-ui-smiley-FUNmIUpN.cjs → vue-ui-smiley-D-QDQ3Re.cjs} +1 -1
- package/dist/{vue-ui-smiley-uRlPgN-A.js → vue-ui-smiley-ne5pBMum.js} +2 -2
- package/dist/{vue-ui-spark-trend-5KFnHsjs.js → vue-ui-spark-trend-BkiRBoVD.js} +13 -13
- package/dist/{vue-ui-spark-trend-DYXJMJLz.cjs → vue-ui-spark-trend-Dq1hox65.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-D-Yk9z4E.js → vue-ui-sparkbar--Q2alJoW.js} +4 -4
- package/dist/{vue-ui-sparkbar-BUg0DhGI.cjs → vue-ui-sparkbar-DV5CtFQY.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DVLZofTg.js → vue-ui-sparkgauge-BOcEbdij.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DvDPPyau.cjs → vue-ui-sparkgauge-BVNkRW_m.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Dqgl_5RN.js → vue-ui-sparkhistogram-CIJmWjb4.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-GMZxK2oC.cjs → vue-ui-sparkhistogram-CUiNT8vT.cjs} +1 -1
- package/dist/{vue-ui-sparkline-C96IUWwW.cjs → vue-ui-sparkline-BFlRfhM6.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CPEHgvq0.js → vue-ui-sparkline-lY0wS6kU.js} +92 -92
- package/dist/{vue-ui-sparkstackbar-BroOR6B-.cjs → vue-ui-sparkstackbar-CGeg_k0k.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DCceVnjJ.js → vue-ui-sparkstackbar-GHM4EY7-.js} +5 -5
- package/dist/vue-ui-stackbar-CQur8zP0.cjs +6 -0
- package/dist/vue-ui-stackbar-uR3T6rG4.js +1114 -0
- package/dist/{vue-ui-strip-plot-BYO72loZ.cjs → vue-ui-strip-plot-CBYrZEIt.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-CJxPAY9n.js → vue-ui-strip-plot-CNFrYVZ6.js} +11 -11
- package/dist/{vue-ui-table-BTuCiJb7.cjs → vue-ui-table-BbTwHDCo.cjs} +1 -1
- package/dist/{vue-ui-table-DKoRX7gX.js → vue-ui-table-DZV-uDG2.js} +1 -1
- package/dist/{vue-ui-table-heatmap-4RZ4Bo12.js → vue-ui-table-heatmap-DQBm_9Z3.js} +14 -14
- package/dist/{vue-ui-table-heatmap-L3Pg7wC0.cjs → vue-ui-table-heatmap-DSgQpgxG.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-GaHw2cTh.cjs → vue-ui-table-sparkline-AFK2LNsw.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CVWPCRfz.js → vue-ui-table-sparkline-wWAVQ0es.js} +5 -5
- package/dist/{vue-ui-thermometer-VC967j2q.cjs → vue-ui-thermometer-CGFQfRUy.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BFqURwxY.js → vue-ui-thermometer-DRZWIAFj.js} +7 -7
- package/dist/{vue-ui-timer-Bou1Zg22.cjs → vue-ui-timer-C-RRrh5f.cjs} +1 -1
- package/dist/{vue-ui-timer-mPQTAvi1.js → vue-ui-timer-D2_1bbpl.js} +5 -5
- package/dist/{vue-ui-tiremarks-ClzgPlHg.cjs → vue-ui-tiremarks-CIeid_A2.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DyEXFKpK.js → vue-ui-tiremarks-CdX2b-Fq.js} +7 -7
- package/dist/{vue-ui-treemap-pCrT4KlF.js → vue-ui-treemap-CgzgE20q.js} +11 -11
- package/dist/{vue-ui-treemap-DEUSAGw0.cjs → vue-ui-treemap-r8xOrE8F.cjs} +1 -1
- package/dist/vue-ui-vertical-bar-BcxAjcoh.cjs +4 -0
- package/dist/vue-ui-vertical-bar-v9LvL35a.js +936 -0
- package/dist/{vue-ui-waffle-DkHP1plA.js → vue-ui-waffle-0mHE8fud.js} +11 -11
- package/dist/{vue-ui-waffle-DjcwBxNh.cjs → vue-ui-waffle-5h_9tS3C.cjs} +1 -1
- package/dist/{vue-ui-wheel-L8vxpKcv.js → vue-ui-wheel-BWL-td7-.js} +7 -7
- package/dist/{vue-ui-wheel-Y2Sny-6a.cjs → vue-ui-wheel-rL5Shua2.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-B9UJmesc.cjs → vue-ui-word-cloud-2E23n-B8.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DIBB7HIj.js → vue-ui-word-cloud-OkAF9hSC.js} +10 -10
- package/dist/{vue-ui-xy-QmsiPNcv.js → vue-ui-xy-C8E2WzGt.js} +866 -819
- package/dist/vue-ui-xy-DbJNxL5O.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-CeKH8VIR.js → vue-ui-xy-canvas-C_0c8FlA.js} +31 -31
- package/dist/{vue-ui-xy-canvas-2aqG9yv5.cjs → vue-ui-xy-canvas-I7rw1uDf.cjs} +1 -1
- package/package.json +1 -1
- package/dist/Legend-CzY3Yhr8.js +0 -68
- package/dist/Legend-DIfEhYtz.cjs +0 -1
- package/dist/vue-ui-donut-C6i_KVvc.js +0 -1122
- package/dist/vue-ui-donut-uH8SS5Ms.cjs +0 -1
- package/dist/vue-ui-gauge-D0Mk9_aI.cjs +0 -1
- package/dist/vue-ui-rings-C-7vrgjN.js +0 -628
- package/dist/vue-ui-rings-kFhuaBvY.cjs +0 -2
- package/dist/vue-ui-stackbar-Bv7RiRae.cjs +0 -6
- package/dist/vue-ui-stackbar-KznnSCkj.js +0 -1061
- package/dist/vue-ui-vertical-bar-DxkQK0tN.cjs +0 -4
- package/dist/vue-ui-vertical-bar-QF9epdei.js +0 -888
- package/dist/vue-ui-xy-DwidR-Vl.cjs +0 -3
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-D-xYtUSL.cjs"),we=require("./useResponsive-BJ7DTGpm.cjs"),Oe=require("./Title-DuMgnso9.cjs"),Ce=require("./usePrinter-pT-a_sFr.cjs"),ze=require("./DataTable-DnrSae6c.cjs"),Te=require("./Tooltip-Cz3eQmMV.cjs"),Xe=require("./Legend-DIfEhYtz.cjs"),De=require("./vue-ui-skeleton-D3zg7qd2.cjs"),Me=require("./vue-ui-accordion-B1MkyNta.cjs"),Be=require("./useNestedProp-BN-VfUfj.cjs"),Ye=require("./PackageVersion-FzHnQSp-.cjs"),Ae=require("./PenAndPaper-C6I0ckZw.cjs"),Ie=require("./useUserOptionState-BgepsfED.cjs"),qe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ge=E=>(e.pushScopeId("data-v-7c3807c4"),E=E(),e.popScopeId(),E),Re=["id"],Ue=["xmlns","viewBox"],je=["width","height"],He={key:1},We=["id"],Je=["stop-color"],Ke=["offset","stop-color"],Qe=["offset","stop-color"],Ze=["stop-color"],et={key:2},tt=["id","cx","cy"],lt=["stop-color","stop-opacity"],ot=["stop-color"],at=["id"],nt=["id"],rt=Ge(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),ut=["id"],st=["flood-color"],it=["id"],ct=["flood-color"],dt=["d","stroke","filter"],vt=["x1","y1","x2","y2","stroke","filter"],ht=["cx","cy","r","fill","filter"],ft=["stroke","d"],yt=["d","fill","stroke","stroke-width","filter"],mt={key:0},pt=["stroke","d"],gt={key:0},kt=["d","stroke","stroke-width","filter"],bt=["d","fill","stroke","stroke-width","filter"],wt={key:1},Ct=["cx","cy","r","fill","stroke","stroke-width"],Bt=["cx","cy","r","stroke"],xt=["cx","cy","r","fill"],_t={key:0},St=["d","fill","onMouseenter","onClick"],Pt={key:1},Nt=["cx","cy","r","fill"],$t=["x","y","fill","font-size"],Et=["x","y","fill","font-size"],Lt=["x","y","fill","font-size"],Vt=["x","y","fill","font-size"],Ft=["filter"],Ot={key:0},zt=["x","y"],Tt={key:1},Xt=["cx","cy","fill","stroke","filter","onClick"],Dt=["cx","cy","fill","stroke","filter","onClick"],Mt=["text-anchor","x","y","fill","font-size","onClick"],Yt=["text-anchor","x","y","fill","font-size","onClick"],At=["text-anchor","x","y","fill","font-size","onClick"],It=["text-anchor","x","y","fill","font-size","onClick"],qt={key:2},Gt=["x","y","width"],Rt=["x","y","width"],Ut={key:5,class:"vue-data-ui-watermark"},jt=["onClick"],Ht={key:0,style:{"font-variant-numeric":"tabular-nums"}},Wt={key:1},Jt=["innerHTML"],Kt={__name:"vue-ui-donut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(E,{expose:xe,emit:R}){const b=E,{vue_ui_donut:_e}=n.useConfig(),L=e.computed({get(){return!!b.dataset&&b.dataset.length},set(o){return o}}),P=e.ref(null),U=e.ref(null),j=e.ref(null),z=e.ref(null),H=e.ref(null),W=e.ref(null),J=e.ref(0),K=e.ref(0),Q=e.ref(0);e.onMounted(()=>{Z()}),e.onBeforeUnmount(()=>{z.value&&z.value.disconnect()});function Z(){if(n.objectIsEmpty(b.dataset)?n.error({componentName:"VueUiDonut",type:"dataset"}):b.dataset.forEach((o,u)=>{n.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values"]}).forEach(l=>{L.value=!1,n.error({componentName:"VueUiDonut",type:"datasetSerieAttribute",property:l,index:u})})}),t.value.responsive){const o=we.throttle(()=>{const{width:u,height:l}=we.useResponsive({chart:P.value,title:t.value.style.chart.title.text?U.value:null,legend:t.value.style.chart.legend.show?j.value:null,source:H.value,noTitle:W.value});r.value.width=u,r.value.height=l});z.value=new ResizeObserver(o),z.value.observe(P.value.parentNode)}}const f=e.ref(n.createUid()),Se=e.ref(null),T=e.ref(!1),M=e.ref(""),m=e.ref(null),ee=e.ref(0);function te(){const o=Be.useNestedProp({userConfig:b.config,defaultConfig:_e});return o.theme?{...Be.useNestedProp({userConfig:n.themes.vue_ui_donut[o.theme]||b.config,defaultConfig:o}),customPalette:n.themePalettes[o.theme]||n.palette}:o}const t=e.computed({get:()=>te(),set:o=>o}),{userOptionsVisible:Y,setUserOptionsVisibility:le,keepUserOptionState:oe}=Ie.useUserOptionState({config:t.value});e.watch(()=>b.config,o=>{t.value=te(),Y.value=!t.value.showOnChartHover,Z(),J.value+=1,K.value+=1,Q.value+=1},{deep:!0});const{isPrinting:ae,isImaging:ne,generatePdf:re,generateImage:ue}=Ce.usePrinter({elementId:`donut__${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-donut"}),Pe=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),se=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),c=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),r=e.ref({height:360,width:512}),V=e.computed(()=>{const o=t.value.style.chart.layout.donut.strokeWidth/512,u=r.value.width*o,l=u>y.value?y.value:u;return l<24?24:l}),_=e.computed(()=>b.dataset.map((o,u)=>({name:o.name,color:n.convertColorToHex(o.color)||se.value[u]||n.palette[u]||n.palette[u%n.palette.length],value:o.values.reduce((l,a)=>l+a,0),absoluteValues:o.values,comment:o.comment||""}))),g=e.ref(_.value);e.watch(()=>_.value,o=>g.value=o);function Ne(){return _.value.map(o=>({name:o.name,color:o.color,value:o.value}))}const w=e.ref([]),ie=e.ref(null),ce=e.ref(null),S=e.ref(!1);function de(o){const u=_.value.find((s,h)=>h===o),l=g.value.find((s,h)=>h===o);let a=l.value;if(w.value.includes(o)){let h=function(){a>s?(cancelAnimationFrame(ie.value),g.value=g.value.map((v,G)=>o===G?{...v,value:s}:v),S.value=!1):(S.value=!0,a+=s*.025,g.value=g.value.map((v,G)=>o===G?{...v,value:a}:v),ie.value=requestAnimationFrame(h))};w.value=w.value.filter(v=>v!==o);const s=u.value;h()}else if(w.value.length<_.value.length-1){let s=function(){a<l.value/100?(cancelAnimationFrame(ce.value),w.value.push(o),g.value=g.value.map((h,v)=>o===v?{...h,value:0}:h),S.value=!1):(S.value=!0,a/=1.1,g.value=g.value.map((h,v)=>o===v?{...h,value:a}:h),ce.value=requestAnimationFrame(s))};s()}R("selectLegend",C.value.map(s=>({name:s.name,color:s.color,value:s.value})))}const C=e.computed(()=>(g.value.forEach((o,u)=>{if([null,void 0].includes(o.values))return{...o,values:[]}}),g.value.map((o,u)=>({...o,seriesIndex:u})).filter((o,u)=>!w.value.includes(u)))),ve=e.computed(()=>b.dataset.map((o,u)=>({name:o.name,color:n.convertColorToHex(o.color)||se.value[u]||n.palette[u]||n.palette[u%n.palette.length],value:(o.values||[]).reduce((l,a)=>l+a,0),shape:"circle"})).map((o,u)=>({...o,proportion:o.value/b.dataset.map(l=>(l.values||[]).reduce((a,s)=>a+s,0)).reduce((l,a)=>l+a,0),opacity:w.value.includes(u)?.5:1,segregate:()=>!S.value&&de(u),isSegregated:w.value.includes(u)}))),$e=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":""})),y=e.computed(()=>{const o=Math.min(r.value.width/3,r.value.height/3);return o<55?55:o}),d=e.computed(()=>n.makeDonut({series:C.value},r.value.width/2,r.value.height/2,y.value,y.value,1.99999,2,1,360,105.25,V.value)),i=e.computed(()=>{const o=Math.max(...C.value.map(l=>l.value)),u=C.value.map(l=>l.value/o);return n.createPolarAreas({series:u,center:{x:r.value.width/2,y:r.value.height/2},maxRadius:Math.min(r.value.width,r.value.height)/3})});function N(o){return o.x>r.value.width/2+6?"start":o.x<r.value.width/2-6?"end":"middle"}function Ee(o){return o.middlePoint.y>r.value.height/2?n.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:100,centerX:r.value.width/2,centerY:r.value.height/2}).y:n.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:0,centerX:r.value.width/2,centerY:r.value.height/2}).y-100}function k(o){return o.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function A(o,u){const l=o.value/Le(u);return isNaN(l)?0:n.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,l*100,n.dataLabel({v:l*100,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding}),{datapoint:o})}function Le(o){return[...o].map(u=>u.value).reduce((u,l)=>u+l,0)}const p=e.computed(()=>C.value.map(o=>o.value).reduce((o,u)=>o+u,0)),he=e.computed(()=>p.value/C.value.length),fe=e.computed(()=>o=>S.value?o.proportion*100:o.value/p.value*100),I=e.ref(null),F=e.ref(!1);function ye({datapoint:o,relativeIndex:u,seriesIndex:l,show:a=!1}){I.value={datapoint:o,seriesIndex:l,config:t.value,series:_.value},T.value=a,m.value=u;let s="";const h=t.value.style.chart.tooltip.customFormat;if(F.value=!1,n.isFunction(h))try{const v=h({seriesIndex:l,datapoint:o,series:_.value,config:t.value});typeof v=="string"&&(M.value=v,F.value=!0)}catch{console.warn("Custom format cannot be applied."),F.value=!1}if(!F.value){if(s+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,s+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${o.color}"/></svg>`,t.value.style.chart.tooltip.showValue&&(s+=`<b>${n.applyDataLabel(t.value.style.chart.layout.labels.value.formatter,o.value,n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:o,relativeIndex:u,seriesIndex:l})}</b>`),t.value.style.chart.tooltip.showPercentage){const v=n.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,o.proportion*100,n.dataLabel({v:o.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage}),{datapoint:o,relativeIndex:u,seriesIndex:l});t.value.style.chart.tooltip.showValue?s+=`<span>(${v})</span></div>`:s+=`<b>${v}</b></div>`}t.value.style.chart.comments.showInTooltip&&o.comment&&(s+=`<div class="vue-data-ui-tooltip-comment" style="background:${o.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${o.color}">${o.comment}</div>`),M.value=`<div>${s}</div>`}}function O(o){return t.value.useBlurOnHover&&![null,void 0].includes(m.value)&&m.value!==o?`url(#blur_${f.value})`:""}const B=e.computed(()=>{const o=C.value.map(l=>({name:l.name,color:l.color})),u=C.value.map(l=>l.value);return{head:o,body:u}});function me(){e.nextTick(()=>{const o=B.value.head.map((a,s)=>[[a.name],[B.value.body[s]],[isNaN(B.value.body[s]/p.value)?"-":B.value.body[s]/p.value*100]]),u=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=n.createCsvContent(u);n.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-donut"})})}const X=e.computed(()=>{const o=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:p.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],u=B.value.head.map((s,h)=>{const v=n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:B.value.body[h],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue});return[{color:s.color,name:s.name},v,isNaN(B.value.body[h]/p.value)?"-":(B.value.body[h]/p.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]}),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};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:o,body:u,config:l}}),$=e.ref(!1);function Ve(o){$.value=o,ee.value+=1}const pe=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent));function Fe(o){return o.toFixed(t.value.style.chart.legend.roundingPercentage).split("").map(u=>"-").join("")}function x(o,u){R("selectDatapoint",{datapoint:o,index:u})}function ge(){c.value.showTable=!c.value.showTable}function ke(){c.value.dataLabels.show=!c.value.dataLabels.show}function be(){c.value.showTooltip=!c.value.showTooltip}const D=e.ref(!1);function q(){D.value=!D.value}return xe({getData:Ne,generatePdf:re,generateCsv:me,generateImage:ue,toggleTable:ge,toggleLabels:ke,toggleTooltip:be,toggleAnnotator:q}),(o,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutChart",ref:P,class:e.normalizeClass(`vue-ui-donut ${$.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height:100%;":""} text-align:center;background:${t.value.style.chart.backgroundColor}`),id:`donut__${f.value}`,onMouseenter:u[6]||(u[6]=()=>e.unref(le)(!0)),onMouseleave:u[7]||(u[7]=()=>e.unref(le)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ae.PenAndPaper,{key:0,parent:P.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),e.renderSlot(o.$slots,"userConfig",{},void 0,!0),Pe.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:W,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,ref_key:"chartTitle",ref:U,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(Oe._sfc_main,{key:`title_${J.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&L.value&&(e.unref(oe)||e.unref(Y))?(e.openBlock(),e.createBlock(Ce.UserOptions,{ref_key:"details",ref:Se,key:`user_option_${ee.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ae),isImaging:e.unref(ne),uid:f.value,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:$.value,chartElement:P.value,position:t.value.userOptions.position,isTooltip:c.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:D.value,onToggleFullscreen:Ve,onGeneratePdf:e.unref(re),onGenerateCsv:me,onGenerateImage:e.unref(ue),onToggleTable:ge,onToggleLabels:ke,onToggleTooltip:be,onToggleAnnotator:q,style:e.normalizeStyle({visibility:e.unref(oe)?e.unref(Y)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:a})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:a})),void 0,!0)]),key:"6"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:a})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:a})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasLabel","hasFullscreen","isFullscreen","chartElement","position","isTooltip","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),L.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":$.value,"vue-data-ui-fulscreen--off":!$.value}),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ye._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,je)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock("defs",He,[t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("radialGradient",{key:0,id:`gradient_${f.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,Je),e.createElementVNode("stop",{offset:`${(1-V.value/y.value)*100}%`,"stop-color":e.unref(n.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,Ke),e.createElementVNode("stop",{offset:`${(1-V.value/y.value/2)*100}%`,"stop-color":e.unref(n.setOpacity)("#FFFFFF",t.value.style.chart.gradientIntensity)},null,8,Qe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,Ze)],8,We)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock("defs",et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,a)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`polar_gradient_${a}_${f.value}`,cx:l.middlePoint.x/r.value.width*100+"%",cy:l.middlePoint.y/r.value.height*100+"%",r:"62%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.shiftHue)(d.value[a].color,.05),"stop-opacity":t.value.style.chart.gradientIntensity/100},null,8,lt),e.createElementVNode("stop",{offset:"100%","stop-color":d.value[a].color},null,8,ot)],8,tt))),256))])):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${f.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${f.value}`},null,8,nt),rt],8,at),e.createElementVNode("filter",{id:`shadow_${f.value}`,"color-interpolation-filters":"sRGB"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"10","flood-opacity":"0.5","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,st)],8,ut),e.createElementVNode("filter",{id:`drop_shadow_${f.value}`,"color-interpolation-filters":"sRGB",x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"3","flood-opacity":"1","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,ct)],8,it)]),t.value.type==="classic"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(n.calcNutArrowPath)(l,{x:r.value.width/2,y:r.value.height/2},16,16,!1,!1,V.value),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:O(a)},null,8,dt)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:4},e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:r.value.width/2,centerY:r.value.height/2}).x,y1:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:r.value.width/2,centerY:r.value.height/2}).y,x2:i.value[a].middlePoint.x,y2:i.value[a].middlePoint.y,stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:O(a)},null,8,vt)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="classic"&&t.value.style.chart.layout.donut.useShadow?(e.openBlock(),e.createElementBlock("circle",{key:5,cx:r.value.width/2,cy:r.value.height/2,r:y.value<=0?10:y.value,fill:t.value.style.chart.backgroundColor,filter:`url(#shadow_${f.value})`},null,8,ht)):e.createCommentVNode("",!0),p.value&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:6},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:l.arcSlice,fill:"#FFFFFF"},null,8,ft))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:e.unref(n.setOpacity)(l.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:O(a)},null,8,yt))),256))],64)):e.createCommentVNode("",!0),p.value&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:7},[d.value.length>1?(e.openBlock(),e.createElementBlock("g",mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:i.value[a].path,fill:"#FFFFFF"},null,8,pt))),256)),t.value.style.chart.layout.donut.useShadow?(e.openBlock(),e.createElementBlock("g",gt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:"transparent",stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:`url(#drop_shadow_${f.value})`},null,8,kt))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:t.value.style.chart.useGradient?`url(#polar_gradient_${a}_${f.value})`:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:O(a)},null,8,bt))),256))])):(e.openBlock(),e.createElementBlock("g",wt,[e.createElementVNode("circle",{cx:r.value.width/2,cy:r.value.height/2,r:y.value,fill:t.value.style.chart.useGradient?`url(#polar_gradient_0_${f.value})`:d.value[0].color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth},null,8,Ct)]))],64)):(e.openBlock(),e.createElementBlock("circle",{key:8,cx:r.value.width/2,cy:r.value.height/2,r:y.value<=0?10:y.value,fill:"transparent",stroke:t.value.style.chart.backgroundColor},null,8,Bt)),t.value.style.chart.useGradient&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("circle",{key:9,cx:r.value.width/2,cy:r.value.height/2,r:y.value<=0?10:y.value,fill:`url(#gradient_${f.value})`},null,8,xt)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:10},[d.value.length>1||t.value.type==="classic"?(e.openBlock(),e.createElementBlock("g",_t,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{"data-cy-donut-trap":"",d:t.value.type==="classic"?l.arcSlice:i.value[a].path,fill:m.value===a?"rgba(0,0,0,0.1)":"transparent",onMouseenter:s=>ye({datapoint:l,relativeIndex:a,seriesIndex:l.seriesIndex,show:!0}),onMouseleave:u[0]||(u[0]=s=>{T.value=!1,m.value=null}),onClick:s=>x(l,a)},null,40,St))),256))])):(e.openBlock(),e.createElementBlock("g",Pt,[e.createElementVNode("circle",{cx:r.value.width/2,cy:r.value.height/2,r:y.value,fill:m.value===o.i?"rgba(0,0,0,0.1)":"transparent","data-cy-donut-trap":"",onMouseenter:u[1]||(u[1]=l=>ye({datapoint:d.value[0],relativeIndex:0,seriesIndex:d.value[0].seriesIndex,show:!0})),onMouseleave:u[2]||(u[2]=l=>{T.value=!1,m.value=null}),onClick:u[3]||(u[3]=l=>x(d.value[0],o.i))},null,40,Nt)]))],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:11},[t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:r.value.width/2,y:r.value.height/2-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.color,"font-size":t.value.style.chart.layout.labels.hollow.total.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.total.text),13,$t)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:r.value.width/2,y:r.value.height/2+t.value.style.chart.layout.labels.hollow.total.fontSize-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.value.color,"font-size":t.value.style.chart.layout.labels.hollow.total.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.value.bold?"bold":""}`)},e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.hollow.total.value.formatter,p.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.hollow.total.value.prefix,v:p.value,s:t.value.style.chart.layout.labels.hollow.total.value.suffix}))),13,Et)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":"middle",x:r.value.width/2,y:r.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.color,"font-size":t.value.style.chart.layout.labels.hollow.average.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.average.text),13,Lt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:3,"text-anchor":"middle",x:r.value.width/2,y:r.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.fontSize+t.value.style.chart.layout.labels.hollow.average.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.value.color,"font-size":t.value.style.chart.layout.labels.hollow.average.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.value.bold?"bold":""}`)},e.toDisplayString(S.value?"--":e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.hollow.average.value.formatter,he.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.hollow.average.value.prefix,v:he.value,s:t.value.style.chart.layout.labels.hollow.average.value.suffix,r:t.value.style.chart.layout.labels.hollow.average.value.rounding}))),13,Vt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",{filter:O(a),class:e.normalizeClass({animated:t.value.useCssAnimation})},[t.value.style.chart.layout.labels.dataLabels.useLabelSlots?(e.openBlock(),e.createElementBlock("g",Ot,[(e.openBlock(),e.createElementBlock("foreignObject",{x:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(n.calcMarkerOffsetX)(l).x-120:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(n.calcMarkerOffsetX)(l).x-60:e.unref(n.calcMarkerOffsetX)(l).x,y:e.unref(n.calcMarkerOffsetY)(l)-(pe.value?20:0),width:"120",height:"60",style:{overflow:"visible"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"dataLabel",e.normalizeProps(e.guardReactiveProps({datapoint:l,isBlur:!t.value.useBlurOnHover||[null,void 0].includes(m.value)||m.value===a,isSafari:pe.value,isVisible:k(l)&&c.value.dataLabels.show,textAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16).anchor,percentage:A(l,d.value)})),void 0,!0)])],8,zt))])):(e.openBlock(),e.createElementBlock("g",Tt,[t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(n.calcMarkerOffsetX)(l).x,cy:e.unref(n.calcMarkerOffsetY)(l)-3.5,fill:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":1,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(m.value)||m.value===a?"":`url(#blur_${f.value})`,onClick:s=>x(l,a)},null,8,Xt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:r.value.width/2,centerY:r.value.height/2}).x,cy:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:r.value.width/2,centerY:r.value.height/2}).y,fill:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":1,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(m.value)||m.value===a?"":`url(#blur_${f.value})`,onClick:s=>x(l,a)},null,8,Dt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":e.unref(n.calcMarkerOffsetX)(l,!0,12).anchor,x:e.unref(n.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(n.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.labels.percentage.color,"font-size":t.value.style.chart.layout.labels.percentage.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.percentage.bold?"bold":""}`),onClick:s=>x(l,a)},e.toDisplayString(A(l,d.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}),{datapoint:l})})`:""),13,Mt)):e.createCommentVNode("",!0),k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(n.calcMarkerOffsetX)(l).anchor,x:e.unref(n.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(n.calcMarkerOffsetY)(l)+t.value.style.chart.layout.labels.percentage.fontSize,fill:t.value.style.chart.layout.labels.name.color,"font-size":t.value.style.chart.layout.labels.name.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.name.bold?"bold":""}`),onClick:s=>x(l,a)},e.toDisplayString(l.name),13,Yt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":N(i.value[a].middlePoint),x:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x,y:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).y,fill:t.value.style.chart.layout.labels.percentage.color,"font-size":t.value.style.chart.layout.labels.percentage.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.percentage.bold?"bold":""}`),onClick:s=>x(l,a)},e.toDisplayString(A(l,d.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}),{datapoint:l})})`:""),13,At)):e.createCommentVNode("",!0),k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":N(i.value[a].middlePoint),x:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x,y:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).y+t.value.style.chart.layout.labels.percentage.fontSize,fill:t.value.style.chart.layout.labels.name.color,"font-size":t.value.style.chart.layout.labels.name.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.name.bold?"bold":""}`),onClick:s=>x(l,a)},e.toDisplayString(l.name),13,It)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),c.value.dataLabels.show&&t.value.style.chart.comments.show&&l.comment?(e.openBlock(),e.createElementBlock("g",qt,[k(l)&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.value.style.chart.comments.offsetX+(e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(n.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(n.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width/2:e.unref(n.calcMarkerOffsetX)(l).x),y:e.unref(n.calcMarkerOffsetY)(l)+24+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:{overflow:"visible","pointer-events":"none"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"plot-comment",{plot:{...l,textAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16).anchor}},void 0,!0)])],8,Gt)):e.createCommentVNode("",!0),k(l)&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:t.value.style.chart.comments.offsetX+(N(i.value[a].middlePoint)==="end"?e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x-t.value.style.chart.comments.width:N(i.value[a].middlePoint)==="middle"?e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x-t.value.style.chart.comments.width/2:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x),y:Ee(i.value[a])+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:{overflow:"visible","pointer-events":"none"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"plot-comment",{plot:{...l,textAlign:N(i.value[a].middlePoint),flexAlign:N(i.value[a].middlePoint)}},void 0,!0)])],8,Rt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,Ft))),256)),e.renderSlot(o.$slots,"svg",{svg:r.value},void 0,!0)],14,Ue)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ut,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ae)||e.unref(ne)})),void 0,!0)])):e.createCommentVNode("",!0),L.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(De.default,{key:6,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC",strokeWidth:V.value*.8}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:j},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Xe.Legend,{key:`legend_${Q.value}`,legendSet:ve.value,config:$e.value,onClickMarker:u[4]||(u[4]=({i:l})=>de(l))},{item:e.withCtx(({legend:l,index:a})=>[e.createElementVNode("div",{style:e.normalizeStyle(`opacity:${w.value.includes(a)?.5:1}`),onClick:s=>l.segregate()},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,index:a}))+" ",1),w.value.includes(a)?(e.openBlock(),e.createElementBlock("span",Wt," ( "+e.toDisplayString(Fe(l.proportion*100))+" % ) ",1)):(e.openBlock(),e.createElementBlock("span",Ht," ("+e.toDisplayString(isNaN(l.value/p.value)?"-":e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,fe.value(l),e.unref(n.dataLabel)({v:fe.value(l),s:"%",r:t.value.style.chart.legend.roundingPercentage})))+") ",1))],12,jt)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"legend",{legend:ve.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:H,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Te._sfc_main,{show:c.value.showTooltip&&T.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:P.value,content:M.value,isCustom:F.value,isFullscreen:$.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom","isFullscreen"]),L.value?(e.openBlock(),e.createBlock(Me.default,{key:8,hideDetails:"",config:{open:c.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(ze.DataTable,{key:`table_${K.value}`,colNames:X.value.colNames,head:X.value.head,body:X.value.body,config:X.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:u[5]||(u[5]=l=>c.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Jt)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name?l.name:isNaN(Number(l))?l.includes("%")?l:e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,l,e.unref(n.dataLabel)({v:l,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding})):e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}))),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Re))}},Qt=qe._export_sfc(Kt,[["__scopeId","data-v-7c3807c4"]]);exports.default=Qt;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-D-xYtUSL.cjs"),W=require("./useResponsive-BJ7DTGpm.cjs"),H=require("./usePrinter-pT-a_sFr.cjs"),ve=require("./vue-ui-skeleton-D3zg7qd2.cjs"),de=require("./Title-DuMgnso9.cjs"),Z=require("./useNestedProp-BN-VfUfj.cjs"),he=require("./PackageVersion-FzHnQSp-.cjs"),me=require("./PenAndPaper-C6I0ckZw.cjs"),fe=require("./useUserOptionState-BgepsfED.cjs"),ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),pe=["id"],ke={key:0},ge=["xmlns","viewBox"],be=["width","height"],Se=["id"],xe=["stop-color"],_e=["stop-color"],we=["stop-color"],Be=["id"],Ce=["stdDeviation"],Ne=["d","fill","stroke"],Fe=["id","d"],ze=["fill","font-size","font-weight"],Ee=["href","startOffset"],Pe=["x","y","text-anchor","fill","font-size","font-weight"],$e=["d","filter"],Oe=["stroke","stroke-width"],Me=["stroke","stroke-width"],Ve=["stroke","stroke-width"],Xe=["stroke","stroke-width"],Ye={key:5},Ie=["x","y","text-anchor","font-size","font-weight","fill"],Ae=["x","y","font-size","font-weight","fill"],Re={key:7},Le=["x1","y1","x2","y2","stroke","stroke-width"],De=["x1","y1","x2","y2","stroke","stroke-width"],Ge=["x1","y1","x2","y2","stroke-width","filter"],je={key:8},qe=["d","fill","stroke","stroke-width"],Te=["cx","cy","fill","r","stroke-width","stroke"],Ue=["x","y","font-size","fill"],We={key:5,class:"vue-data-ui-watermark"},He={__name:"vue-ui-gauge",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(C,{expose:J}){const c=C,{vue_ui_gauge:K}=n.useConfig(),_=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length>0&&c.dataset.series&&c.dataset.series.length),y=e.ref(n.createUid()),Q=e.ref(null),E=e.ref(0),g=e.ref(null),P=e.ref(null),$=e.ref(null),O=e.ref(null),M=e.ref(null),V=e.ref(0),t=e.computed({get:()=>I(),set:a=>a}),{userOptionsVisible:N,setUserOptionsVisibility:X,keepUserOptionState:Y}=fe.useUserOptionState({config:t.value});e.watch(()=>c.config,a=>{t.value=I(),N.value=!t.value.showOnChartHover,j(),V.value+=1},{deep:!0});function I(){const a=Z.useNestedProp({userConfig:c.config,defaultConfig:K});return a.theme?{...Z.useNestedProp({userConfig:n.themes.vue_ui_gauge[a.theme]||c.config,defaultConfig:a}),customPalette:n.themePalettes[a.theme]||n.palette}:a}const{isPrinting:A,isImaging:R,generatePdf:L,generateImage:D}=H.usePrinter({elementId:`vue-ui-gauge_${y.value}`,fileName:t.value.style.chart.title.text||"vue-ui-gauge"}),ee=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),te=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),p=e.computed(()=>{if(!_.value||n.objectIsEmpty(c.dataset.series||{}))return{value:0,series:[{from:0,to:0}]};const a=[];(c.dataset.series||[]).forEach(o=>{a.push(o.from||1e-7),a.push(o.to||1e-7)});const r=Math.max(...a);return{...c.dataset,series:(c.dataset.series||[]).map((o,s)=>({...o,color:n.convertColorToHex(o.color)||te.value[s]||n.palette[s],value:((o.to||0)-(o.from||0))/r*100}))}}),h=e.ref(512),l=e.ref({height:358.4,width:h.value,top:0,bottom:358.4,centerX:179.2,centerY:h.value/2,labelFontSize:18,legendFontSize:t.value.style.chart.legend.fontSize,pointerRadius:t.value.style.chart.layout.pointer.circle.radius,trackSize:t.value.style.chart.layout.track.size,pointerSize:t.value.style.chart.layout.pointer.size,pointerStrokeWidth:t.value.style.chart.layout.pointer.strokeWidth,markerOffset:t.value.style.chart.layout.markers.offsetY+3,segmentFontSize:t.value.style.chart.layout.segmentNames.fontSize}),b=e.ref(0),S=e.ref(0),v=e.ref(t.value.style.chart.animation.use?Math.min(...c.dataset.series.map(a=>a.from)):c.dataset.value);e.watch(()=>c.dataset.value,()=>{q(c.dataset.value)});const u=e.computed(()=>{const a=l.value.width/2,r=i.value.base,o=Math.PI*((v.value+0-S.value)/(b.value-S.value))+Math.PI;return{x1:a,y1:r,x2:a+i.value.pointerSize*l.value.pointerSize*.9*Math.cos(o),y2:r+i.value.pointerSize*l.value.pointerSize*.9*Math.sin(o)}}),G=e.computed(()=>{const a=l.value.width/2,r=i.value.base,o=Math.PI*((v.value+0-S.value)/(b.value-S.value))+Math.PI,s=a+i.value.pointerSize*l.value.pointerSize*.9*Math.cos(o),m=r+i.value.pointerSize*l.value.pointerSize*.9*Math.sin(o),f=l.value.pointerRadius,se=a+f*Math.cos(o+Math.PI/2),ue=r+f*Math.sin(o+Math.PI/2),ie=a+f*Math.cos(o-Math.PI/2),ce=r+f*Math.sin(o-Math.PI/2);return isNaN(s)?null:`M ${s},${m} ${se},${ue} ${ie},${ce} Z`}),F=e.computed(()=>{for(let a=0;a<p.value.series.length;a+=1){const{color:r,from:o,to:s}=p.value.series[a];if(v.value>=o&&v.value<=s)return r}return"#2D353C"}),w=e.ref(null);function j(){if(n.objectIsEmpty(c.dataset)?n.error({componentName:"VueUiGauge",type:"dataset"}):(n.getMissingDatasetAttributes({datasetObject:c.dataset,requiredAttributes:["value","series"]}).forEach(a=>{n.error({componentName:"VueUiGauge",type:"datasetAttribute",property:a})}),Object.hasOwn(c.dataset,"series")&&(c.dataset.series.length?c.dataset.series.forEach((a,r)=>{n.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["from","to"]}).forEach(o=>{n.error({componentName:"VueUiGauge",type:"datasetSerieAttribute",property:o,index:r})})}):n.error({componentName:"VueUiGauge",type:"datasetAttributeEmpty",property:"series"}))),q(c.dataset.value||0),t.value.responsive){const a=W.throttle(()=>{const{width:r,height:o}=W.useResponsive({chart:g.value,title:t.value.style.chart.title.text?P.value:null,legend:$.value,source:O.value,noTitle:M.value});l.value.width=r,l.value.height=o,l.value.centerX=r/2,l.value.centerY=h.value/2/358.4*o,l.value.bottom=o,l.value.labelFontSize=18/h.value*Math.min(o,r)<10?10:18/h.value*Math.min(o,r),l.value.legendFontSize=t.value.style.chart.legend.fontSize/h.value*Math.min(o,r)<14?14:t.value.style.chart.legend.fontSize/h.value*Math.min(o,r),l.value.pointerRadius=t.value.style.chart.layout.pointer.circle.radius/h.value*Math.min(o,r),l.value.trackSize=t.value.style.chart.layout.track.size/h.value*Math.min(o,r),l.value.pointerStrokeWidth=n.translateSize({relator:Math.min(r,o),adjuster:h.value,source:t.value.style.chart.layout.pointer.strokeWidth,threshold:2,fallback:2}),l.value.markerOffset=n.translateSize({relator:Math.max(r,o),adjuster:h.value,source:t.value.style.chart.layout.markers.offsetY+3,threshold:2,fallback:2}),l.value.segmentFontSize=n.translateSize({relator:Math.min(r,o),adjuster:h.value,source:t.value.style.chart.layout.segmentNames.fontSize,threshold:8,fallback:8})});w.value=new ResizeObserver(a),w.value.observe(g.value.parentNode)}}e.onMounted(()=>{j()}),e.onBeforeUnmount(()=>{w.value&&w.value.disconnect()});function q(a){const r=[];(p.value.series||[]).forEach(f=>{r.push(f.from||0),r.push(f.to||0)}),b.value=Math.max(...r),S.value=Math.min(...r);let o=t.value.style.chart.animation.speed;const s=Math.abs(a-v.value)/(o*60);function m(){v.value<a?v.value=Math.min(v.value+s,a):v.value>a&&(v.value=Math.max(v.value-s,a)),v.value!==a&&requestAnimationFrame(m)}m()}const i=e.computed(()=>{const a=t.value.responsive?Math.min(l.value.width,l.value.height):l.value.width,r=2.5/t.value.style.chart.layout.radiusRatio;return{arcs:a/r,gradients:a/(r*1.1),base:t.value.responsive?l.value.height/2:l.value.height*.7,ratingBase:t.value.responsive?l.value.height/2+l.value.height/4:l.value.height*.9,pointerSize:t.value.responsive?Math.min(l.value.width,l.value.height)/3:l.value.width/3.2}}),d=e.computed(()=>n.makeDonut({series:p.value.series},l.value.width/2,i.value.base,i.value.arcs,i.value.arcs,1,1,1,180,109.9495,40*l.value.trackSize)),ae=e.computed(()=>n.makeDonut({series:p.value.series},l.value.width/2,i.value.base,i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,1,1,1,180,109.9495,40*l.value.trackSize)),k=e.computed(()=>d.value.map(a=>i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio*(a.nameOffsetRatio||1))),T=e.computed(()=>{const{x:a,y:r}=n.offsetFromCenterPoint({initX:d.value[0].firstSeparator.x,initY:d.value[0].firstSeparator.y,centerX:u.value.x1,centerY:u.value.y1,offset:-t.value.style.chart.layout.segmentSeparators.offsetIn}),{x:o,y:s}=n.offsetFromCenterPoint({initX:d.value[0].startX,initY:d.value[0].startY,centerX:u.value.x1,centerY:u.value.y1,offset:t.value.style.chart.layout.segmentSeparators.offsetOut});return{x1:a,y1:r,x2:o,y2:s}}),U=e.computed(()=>d.value.map(a=>{const{x:r,y:o}=n.offsetFromCenterPoint({initX:a.separator.x,initY:a.separator.y,centerX:u.value.x1,centerY:u.value.y1,offset:-t.value.style.chart.layout.segmentSeparators.offsetIn}),{x:s,y:m}=n.offsetFromCenterPoint({initX:a.endX,initY:a.endY,centerX:u.value.x1,centerY:u.value.y1,offset:t.value.style.chart.layout.segmentSeparators.offsetOut});return{x1:r,y1:o,x2:s,y2:m}}));function oe(a){if(a.reduce((m,f)=>m+f,0)>100)throw new Error("Total % must not exceed 100");const o=50;let s=0;return a.map(m=>(s+=m,`${s/100*o-m/4}%`))}const le=e.computed(()=>oe(d.value.map(a=>a.proportion*100))),re=e.computed(()=>n.makeDonut({series:p.value.series},l.value.width/2,i.value.base,i.value.gradients,i.value.gradients,.95,1,1,180,110.02,2*l.value.trackSize)),x=e.ref(!1);function ne(a){x.value=a,E.value+=1}const B=e.ref(!1);function z(){B.value=!B.value}return J({generatePdf:L,generateImage:D,toggleAnnotator:z}),(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-gauge ${x.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"gaugeChart",ref:g,id:`vue-ui-gauge_${y.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:r[0]||(r[0]=()=>e.unref(X)(!0)),onMouseleave:r[1]||(r[1]=()=>e.unref(X)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(me.PenAndPaper,{key:0,parent:g.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:B.value,onClose:z},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ee.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:M,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,ref_key:"chartTitle",ref:P,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(de._sfc_main,{key:`title_${V.value}`,config:{title:{cy:"gauge-div-title",...t.value.style.chart.title},subtitle:{cy:"gauge-div-subtitle",...t.value.style.chart.title.subtitle}}},{default:e.withCtx(()=>[t.value.translations.base&&C.dataset.base?(e.openBlock(),e.createElementBlock("span",ke,e.toDisplayString(t.value.translations.base)+": "+e.toDisplayString(C.dataset.base),1)):e.createCommentVNode("",!0)]),_:1},8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&_.value&&(e.unref(Y)||e.unref(N))?(e.openBlock(),e.createBlock(H.UserOptions,{ref_key:"details",ref:Q,key:`user_options_${E.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(R),isPrinting:e.unref(A),uid:y.value,hasXls:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:x.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:ne,onGeneratePdf:e.unref(L),onGenerateImage:e.unref(D),onToggleAnnotator:z,style:e.normalizeStyle({visibility:e.unref(Y)?e.unref(N)?"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.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:s})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:s})),void 0,!0)]),key:"2"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:s})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:s})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),_.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":x.value,"vue-data-ui-fulscreen--off":!x.value}),viewBox:`0 0 ${l.value.width<=0?10:l.value.width} ${l.value.height<=0?10:l.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:hidden !important;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(he._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:l.value.width<=0?10:l.value.width,height:l.value.height<=0?10:l.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,be)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_${y.value}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)("#FFFFFF",1)},null,8,xe),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(n.setOpacity)("#FFFFFF",t.value.style.chart.layout.track.gradientIntensity)},null,8,_e),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)("#FFFFFF",1)},null,8,we)],8,Se)]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${y.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:100/t.value.style.chart.layout.track.gradientIntensity},null,8,Ce)],8,Be)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(o,s)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${s}`,d:o.arcSlice,fill:o.color,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,Ne))),128)),t.value.style.chart.layout.segmentNames.show&&t.value.style.chart.layout.segmentNames.curved?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(o,s)=>(e.openBlock(),e.createElementBlock("path",{id:`curve_${y.value}_${s}`,d:`M ${u.value.x1},${u.value.y1} m -${k.value[s]},0 a ${k.value[s]},${k.value[s]} 0 1,1 ${2*k.value[s]},0 a ${k.value[s]},${k.value[s]} 0 1,1 -${2*k.value[s]},0`,fill:"transparent"},null,8,Fe))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(o,s)=>(e.openBlock(),e.createElementBlock("text",{fill:t.value.style.chart.layout.segmentNames.useSerieColor?o.color:t.value.style.chart.layout.segmentNames.color,"font-size":l.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal","text-anchor":"middle"},[e.createElementVNode("textPath",{href:`#curve_${y.value}_${s}`,startOffset:le.value[s]},e.toDisplayString(o.name||""),9,Ee)],8,ze))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentNames.show&&!t.value.style.chart.layout.segmentNames.curved?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(ae.value,(o,s)=>(e.openBlock(),e.createElementBlock("text",{x:o.center.endX,y:o.center.endY,"text-anchor":e.unref(n.calcMarkerOffsetX)(o,!1,12).anchor,fill:t.value.style.chart.layout.segmentNames.useSerieColor?o.color:t.value.style.chart.layout.segmentNames.color,"font-size":l.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal"},e.toDisplayString(o.name||""),9,Pe))),256)):e.createCommentVNode("",!0),t.value.style.chart.layout.track.useGradient?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(re.value,(o,s)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${s}`,d:o.arcSlice,fill:"#FFFFFF",stroke:"none","stroke-linecap":"round",filter:`url(#blur_${y.value})`},null,8,$e))),128)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentSeparators.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createElementVNode("line",e.mergeProps(T.value,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,Oe),e.createElementVNode("line",e.mergeProps(T.value,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,Me),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,o=>(e.openBlock(),e.createElementBlock("line",e.mergeProps(o,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,Ve))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,o=>(e.openBlock(),e.createElementBlock("line",e.mergeProps(o,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,Xe))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("g",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(o,s)=>(e.openBlock(),e.createElementBlock("text",{x:e.unref(n.offsetFromCenterPoint)({centerX:u.value.x1,centerY:i.value.base,initX:o.center.startX,initY:o.center.startY,offset:l.value.markerOffset}).x,y:e.unref(n.offsetFromCenterPoint)({centerX:u.value.x1,centerY:i.value.base,initX:o.center.startX,initY:o.center.startY,offset:l.value.markerOffset}).y,"text-anchor":o.center.startX<u.value.x1-5?"end":o.center.startX>u.value.x1+5?"start":"middle","font-size":l.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.markers.formatter,o.from,e.unref(n.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:o.from,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,Ie))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("text",{key:6,x:e.unref(n.offsetFromCenterPoint)({centerX:l.value.width/2,centerY:i.value.base,initX:d.value.at(-1).endX,initY:d.value.at(-1).endY,offset:l.value.markerOffset}).x,y:e.unref(n.offsetFromCenterPoint)({centerX:l.value.width/2,centerY:i.value.base,initX:d.value.at(-1).endX,initY:d.value.at(-1).endY,offset:l.value.markerOffset}).y,"text-anchor":"start","font-size":l.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.markers.formatter,b.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:b.value,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,Ae)):e.createCommentVNode("",!0),t.value.style.chart.layout.pointer.type==="rounded"?(e.openBlock(),e.createElementBlock("g",Re,[isNaN(u.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:0,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":l.value.pointerStrokeWidth,"stroke-linecap":"round"},null,8,Le)),isNaN(u.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:1,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:t.value.style.chart.layout.pointer.useRatingColor?F.value:t.value.style.chart.layout.pointer.color,"stroke-linecap":"round","stroke-width":l.value.pointerStrokeWidth*.7},null,8,De)),!isNaN(u.value.x2)&&t.value.style.chart.layout.track.useGradient?(e.openBlock(),e.createElementBlock("line",{key:2,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:"white","stroke-linecap":"round","stroke-width":l.value.pointerStrokeWidth*.3,filter:`url(#blur_${y.value})`},null,8,Ge)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("g",je,[G.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:G.value,fill:t.value.style.chart.layout.pointer.useRatingColor?F.value:t.value.style.chart.layout.pointer.color,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,"stroke-linejoin":"round"},null,8,qe)):e.createCommentVNode("",!0)])),e.createElementVNode("circle",{cx:l.value.width/2,cy:i.value.base,fill:t.value.style.chart.layout.pointer.circle.color,r:l.value.pointerRadius<=0?1e-4:l.value.pointerRadius,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,stroke:t.value.style.chart.layout.pointer.circle.stroke},null,8,Te),t.value.style.chart.legend.show?(e.openBlock(),e.createElementBlock("text",{key:9,x:l.value.width/2,y:i.value.ratingBase,"text-anchor":"middle","font-size":l.value.legendFontSize,"font-weight":"bold",fill:t.value.style.chart.legend.useRatingColor?F.value:t.value.style.chart.legend.color},e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.legend.formatter,v.value,e.unref(n.dataLabel)({p:t.value.style.chart.legend.prefix+(t.value.style.chart.legend.showPlusSymbol&&v.value>0?"+":""),v:v.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}))),9,Ue)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:l.value},void 0,!0)],14,ge)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",We,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(A)||e.unref(R)})),void 0,!0)])):e.createCommentVNode("",!0),_.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ve.default,{key:6,config:{type:"gauge",style:{backgroundColor:t.value.style.chart.backgroundColor,gauge:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:$},[e.renderSlot(a.$slots,"legend",{legend:p.value},void 0,!0)],512),a.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:O,dir:"auto"},[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],46,pe))}},Ze=ye._export_sfc(He,[["__scopeId","data-v-2c21fd75"]]);exports.default=Ze;
|