vue-data-ui 2.10.2-beta.1 → 2.10.2-beta.2
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-Durz-Lij.js → Arrow-B2-rOYz8.js} +1 -1
- package/dist/{Arrow-D_EAhs0m.cjs → Arrow-D6UBVyNr.cjs} +1 -1
- package/dist/{BaseIcon-BnWfrW1B.js → BaseIcon-Br5G8Cdk.js} +1 -1
- package/dist/{BaseIcon-DPT0BaqM.cjs → BaseIcon-DfoJJxST.cjs} +1 -1
- package/dist/{ColorPicker-COqCncYu.js → ColorPicker-CiQzB3a-.js} +3 -3
- package/dist/{ColorPicker-CYaUst4k.cjs → ColorPicker-Dvgprgpv.cjs} +1 -1
- package/dist/{DataTable-DSiJ_YaA.cjs → DataTable-CGucPqAQ.cjs} +1 -1
- package/dist/{DataTable-CyKnS5wp.js → DataTable-Dk-94kK2.js} +2 -2
- package/dist/{Legend-RwWQ6l8r.cjs → Legend-B9aoKeq3.cjs} +1 -1
- package/dist/{Legend-Dj_es4iV.js → Legend-Cx6NYPTA.js} +2 -2
- package/dist/{PackageVersion-vJyd5YD8.js → PackageVersion-BdNfnIm2.js} +1 -1
- package/dist/{PackageVersion-DCriWnX3.cjs → PackageVersion-C2bjLIu9.cjs} +1 -1
- package/dist/{PenAndPaper-lj1PPAzR.cjs → PenAndPaper-CJIFAI78.cjs} +1 -1
- package/dist/{PenAndPaper-BgZ0aAW2.js → PenAndPaper-wrVNMaG8.js} +3 -3
- package/dist/{Shape-BgbyzOCz.cjs → Shape-Cn2RU1NY.cjs} +1 -1
- package/dist/{Shape-0QfdCJdX.js → Shape-vIKj52KP.js} +1 -1
- package/dist/{Slicer-B-i-6x8C.cjs → Slicer-t3EfI94H.cjs} +1 -1
- package/dist/{Slicer-lB3lQUsg.js → Slicer-yki6JqTB.js} +2 -2
- package/dist/{Title-zlQvBTwR.cjs → Title-Bae0QJu7.cjs} +1 -1
- package/dist/{Title-UITSl88n.js → Title-CDYBDpu3.js} +1 -1
- package/dist/{Tooltip-QHKaXOYQ.js → Tooltip-BzsAOdBd.js} +1 -1
- package/dist/{Tooltip-DY4rXOAP.cjs → Tooltip-CfqYTd5O.cjs} +1 -1
- package/dist/{dom-to-png-BoSiNLCZ.cjs → dom-to-png-DgRl9bEH.cjs} +1 -1
- package/dist/{dom-to-png-IpAl2vt0.js → dom-to-png-IAiARGiU.js} +1 -1
- package/dist/{img-1Hu7T2L5.js → img-DaDUVggy.js} +1 -1
- package/dist/{img-DOJMU48p.cjs → img-DxEvbX77.cjs} +1 -1
- package/dist/{index-Br1RehUb.js → index-BI6O7K58.js} +1 -1
- package/dist/{index-DiJiQMBB.cjs → index-DgIVCHLv.cjs} +1 -1
- package/dist/{pdf-C6M_O5rS.js → pdf-DBVNp7s2.js} +1 -1
- package/dist/{pdf-Bg3JLNad.cjs → pdf-Dq3h9PEr.cjs} +1 -1
- package/dist/{useNestedProp-DqEOzYzu.cjs → useNestedProp-CCR03NVM.cjs} +1 -1
- package/dist/{useNestedProp-DXxFHEXa.js → useNestedProp-Cvz4MkSy.js} +1 -1
- package/dist/{usePrinter-Bkd5ycBt.cjs → usePrinter-B2xVvtiy.cjs} +1 -1
- package/dist/{usePrinter-BotFh1ji.js → usePrinter-Jr3eyr8H.js} +3 -3
- package/dist/{vue-data-ui-DmyMMva1.cjs → vue-data-ui-DhWKehHS.cjs} +1 -1
- package/dist/{vue-data-ui-ceT6Ds8c.js → vue-data-ui-bm5wfGa_.js} +62 -62
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BuLR9KPG.cjs → vue-ui-3d-bar-Bpm8dKya.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-D8gTYv2q.js → vue-ui-3d-bar-CHOAZoDV.js} +9 -9
- package/dist/{vue-ui-accordion-P5hXhzth.cjs → vue-ui-accordion-DE1isSE9.cjs} +1 -1
- package/dist/{vue-ui-accordion-BlsQ4IFe.js → vue-ui-accordion-ldF7KsjV.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DQjIgLoF.cjs → vue-ui-age-pyramid-BnHOxOPT.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-C_WRa17B.js → vue-ui-age-pyramid-BuKSta-B.js} +10 -10
- package/dist/{vue-ui-annotator-SHkR_9cj.cjs → vue-ui-annotator-B9j16TKW.cjs} +1 -1
- package/dist/{vue-ui-annotator-BI4gOYbV.js → vue-ui-annotator-BBuH-QB4.js} +2 -2
- package/dist/{vue-ui-bullet-DQnycr6Q.js → vue-ui-bullet-B0C_rPTQ.js} +8 -8
- package/dist/{vue-ui-bullet-Dv-CldQs.cjs → vue-ui-bullet-CRChR0Qe.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Bd9v_ssR.cjs → vue-ui-candlestick-Bq66GLxw.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CxPvkEtR.js → vue-ui-candlestick-By5MsCcS.js} +11 -11
- package/dist/{vue-ui-carousel-table-DuwoXFJH.js → vue-ui-carousel-table-BOtjI2Ov.js} +4 -4
- package/dist/{vue-ui-carousel-table-Dwvy8FmR.cjs → vue-ui-carousel-table-CyywZulq.cjs} +1 -1
- package/dist/{vue-ui-chestnut-1P_kvZFR.js → vue-ui-chestnut-BS2kXrPU.js} +8 -8
- package/dist/{vue-ui-chestnut-Da5lD-jy.cjs → vue-ui-chestnut-D8QPZS8n.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-_d0WvVlg.js → vue-ui-circle-pack-C8m10WZ0.js} +9 -9
- package/dist/{vue-ui-circle-pack-H7fs4aWV.cjs → vue-ui-circle-pack-iOxdB75t.cjs} +1 -1
- package/dist/{vue-ui-cursor-CcxO5N6B.js → vue-ui-cursor-Bn-CCFO0.js} +2 -2
- package/dist/{vue-ui-cursor-CeAtprXI.cjs → vue-ui-cursor-Ccym3tFb.cjs} +1 -1
- package/dist/{vue-ui-dashboard-nLTbt8rE.cjs → vue-ui-dashboard-Cw4IXhXY.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DQql8FoJ.js → vue-ui-dashboard-D-vs2N_7.js} +62 -62
- package/dist/{vue-ui-digits-CIm6jt9J.js → vue-ui-digits-BXBXg7wv.js} +2 -2
- package/dist/{vue-ui-digits-DYzQpKDk.cjs → vue-ui-digits-D66h3nUw.cjs} +1 -1
- package/dist/{vue-ui-donut-CMmo-xas.js → vue-ui-donut-BGZIwC5D.js} +12 -12
- package/dist/{vue-ui-donut-BZBTtRIT.cjs → vue-ui-donut-Bf3THSxi.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-CmVkOgHk.js → vue-ui-donut-evolution-5yOibvNM.js} +11 -11
- package/dist/{vue-ui-donut-evolution-BigkaF3K.cjs → vue-ui-donut-evolution-xxrUJzgG.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DNRxfbMB.js → vue-ui-dumbbell-C-KqKhxI.js} +10 -10
- package/dist/{vue-ui-dumbbell-COVwDZf9.cjs → vue-ui-dumbbell-CWn7cNsm.cjs} +1 -1
- package/dist/{vue-ui-flow-CWn5Xgfv.js → vue-ui-flow-D4_2VnaB.js} +9 -9
- package/dist/{vue-ui-flow-C2-V4oXf.cjs → vue-ui-flow-DFxWNRRJ.cjs} +1 -1
- package/dist/{vue-ui-funnel-Caa_fg2B.js → vue-ui-funnel-ADEjZ8yz.js} +9 -9
- package/dist/{vue-ui-funnel-CzUX32Ub.cjs → vue-ui-funnel-DIoqpwbm.cjs} +1 -1
- package/dist/{vue-ui-galaxy-Dh6mXUEh.cjs → vue-ui-galaxy-BRle40mR.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DlPI9C4p.js → vue-ui-galaxy-DLtA9Ebb.js} +11 -11
- package/dist/{vue-ui-gauge-C0-BHMRe.cjs → vue-ui-gauge-B4vEWkRk.cjs} +1 -1
- package/dist/{vue-ui-gauge-DCKwx-39.js → vue-ui-gauge-BVj-IBdi.js} +7 -7
- package/dist/{vue-ui-gizmo-Dbyg4lfp.js → vue-ui-gizmo-BTe8CPyi.js} +3 -3
- package/dist/{vue-ui-gizmo-CBEmt6wS.cjs → vue-ui-gizmo-BwBtkZ5z.cjs} +1 -1
- package/dist/{vue-ui-heatmap-B8aHMTRT.js → vue-ui-heatmap-DrXMOxbe.js} +10 -10
- package/dist/{vue-ui-heatmap-L44qq3tT.cjs → vue-ui-heatmap-VdFtflO6.cjs} +1 -1
- package/dist/{vue-ui-history-plot-cK3Eyct-.cjs → vue-ui-history-plot-B-ScOcEy.cjs} +1 -1
- package/dist/{vue-ui-history-plot-Db9VBFJo.js → vue-ui-history-plot-_DfuZIMP.js} +11 -11
- package/dist/{vue-ui-kpi-3Y6KGCu8.cjs → vue-ui-kpi-DSQV0Kf2.cjs} +1 -1
- package/dist/{vue-ui-kpi-DTVFlqqr.js → vue-ui-kpi-DfFiDtCP.js} +3 -3
- package/dist/{vue-ui-mini-loader-C0-qR0Wv.js → vue-ui-mini-loader-1JZipPcP.js} +2 -2
- package/dist/{vue-ui-mini-loader-DYQjIOkq.cjs → vue-ui-mini-loader-CDOlO_1_.cjs} +1 -1
- package/dist/{vue-ui-molecule-CZYTkXRy.js → vue-ui-molecule-Db_C7mVS.js} +11 -11
- package/dist/{vue-ui-molecule-BsbB0T8n.cjs → vue-ui-molecule-jEcRTe4V.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Dcgb3cQR.cjs → vue-ui-mood-radar-BoKSTE-Y.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-zWFTh0WG.js → vue-ui-mood-radar-m48vvkft.js} +11 -11
- package/dist/{vue-ui-nested-donuts-Ci2TbHCY.js → vue-ui-nested-donuts-DNhMOryo.js} +11 -11
- package/dist/{vue-ui-nested-donuts-CElXmrE_.cjs → vue-ui-nested-donuts-ihd00Tpn.cjs} +1 -1
- package/dist/{vue-ui-onion-DTYqd0S7.cjs → vue-ui-onion-D9AHOWa5.cjs} +1 -1
- package/dist/{vue-ui-onion-C3w_0U-6.js → vue-ui-onion-YKxsqnI7.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-DmAaG5vE.js → vue-ui-parallel-coordinate-plot-7SCwFkrU.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-DXgrYF8V.cjs → vue-ui-parallel-coordinate-plot-BmO6zenq.cjs} +1 -1
- package/dist/{vue-ui-quadrant-xIalSKQB.js → vue-ui-quadrant-Bi0by7IK.js} +12 -12
- package/dist/{vue-ui-quadrant--MXxqtPm.cjs → vue-ui-quadrant-CAJ4dTBu.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DrEeKIP-.cjs → vue-ui-quick-chart-C37lGqa1.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CSffm4a5.js → vue-ui-quick-chart-DlV0Qv_x.js} +9 -9
- package/dist/{vue-ui-radar-BkYTilrU.js → vue-ui-radar-B14zLIww.js} +12 -12
- package/dist/{vue-ui-radar-Baujx0zJ.cjs → vue-ui-radar-H08KmB3s.cjs} +1 -1
- package/dist/{vue-ui-rating-CoCspb5w.cjs → vue-ui-rating-CYarWaTf.cjs} +1 -1
- package/dist/{vue-ui-rating-D9mcamSQ.js → vue-ui-rating-CdSQUBG6.js} +2 -2
- package/dist/{vue-ui-relation-circle-BOQbjwio.cjs → vue-ui-relation-circle-A4Vw8kYl.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-D1QRMkRv.js → vue-ui-relation-circle-IzAvPPGl.js} +7 -7
- package/dist/{vue-ui-ridgeline-DAhVh2wO.js → vue-ui-ridgeline-BF5X6KQR.js} +12 -12
- package/dist/{vue-ui-ridgeline-evw3STiF.cjs → vue-ui-ridgeline-BaHgOn_p.cjs} +1 -1
- package/dist/{vue-ui-rings-BbaMc09d.js → vue-ui-rings-DUhnXy1h.js} +12 -12
- package/dist/{vue-ui-rings-BhG1riq2.cjs → vue-ui-rings-DnVeMrOw.cjs} +1 -1
- package/dist/{vue-ui-scatter-BA1innim.js → vue-ui-scatter-D7bXuxob.js} +12 -12
- package/dist/{vue-ui-scatter-D2EXkBxx.cjs → vue-ui-scatter-DoGX7iHp.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DEI0qJZY.cjs → vue-ui-skeleton-DeEGdJEn.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BksknW8F.js → vue-ui-skeleton-Dxm7rqic.js} +3 -3
- package/dist/{vue-ui-smiley-D_lDFgTX.js → vue-ui-smiley-95l4UiqT.js} +2 -2
- package/dist/{vue-ui-smiley-B4dNIhTF.cjs → vue-ui-smiley-DmAtXVht.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-JPsaMYzx.cjs → vue-ui-spark-trend-C3CO25Jy.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-YVwnvmen.js → vue-ui-spark-trend-DdH43oVm.js} +5 -5
- package/dist/{vue-ui-sparkbar-P7ab216P.cjs → vue-ui-sparkbar-C2roDWfv.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-COtSp75m.js → vue-ui-sparkbar-DTe3QrR3.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DBTs_fko.js → vue-ui-sparkgauge-BwclNj3C.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BrmBThWX.cjs → vue-ui-sparkgauge-nq6-9TjT.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Bbui1Mjp.cjs → vue-ui-sparkhistogram-BdWirDjI.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-D9ltgqDi.js → vue-ui-sparkhistogram-Brau127G.js} +5 -5
- package/dist/{vue-ui-sparkline-DkRtUZjr.cjs → vue-ui-sparkline-B2mOJzkG.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DxlyRPM_.js → vue-ui-sparkline-qqfyQyVz.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CAAfi-lB.cjs → vue-ui-sparkstackbar-BJl9lbBp.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DjrHKvP-.js → vue-ui-sparkstackbar-DLlDU0B2.js} +5 -5
- package/dist/{vue-ui-stackbar-hDFg5vfU.cjs → vue-ui-stackbar-CEvmDjq3.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BQw6lOEm.js → vue-ui-stackbar-RRGnblUm.js} +13 -13
- package/dist/{vue-ui-strip-plot-D5X65rGR.js → vue-ui-strip-plot-C9LKjSkW.js} +11 -11
- package/dist/{vue-ui-strip-plot-BuA2QRro.cjs → vue-ui-strip-plot-Dlsv-yRI.cjs} +1 -1
- package/dist/{vue-ui-table-4x1r1zJ4.js → vue-ui-table-DxdJ151X.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BuGa0tHQ.cjs → vue-ui-table-heatmap-BhxOvDDW.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-gU7N3s52.js → vue-ui-table-heatmap-CzGeU_uL.js} +4 -4
- package/dist/{vue-ui-table-DN4G0Xcv.cjs → vue-ui-table-qULtmHGA.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-B3YUUzDD.cjs → vue-ui-table-sparkline-D1hriLB0.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CrNEnGwB.js → vue-ui-table-sparkline-DSZhEDKX.js} +5 -5
- package/dist/{vue-ui-thermometer-D5NxA-Pu.cjs → vue-ui-thermometer-Cvnh4jvE.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BRTBFuLr.js → vue-ui-thermometer-Pw4X3Bun.js} +7 -7
- package/dist/{vue-ui-timer-CUdy26j8.cjs → vue-ui-timer-BlmIXPv6.cjs} +1 -1
- package/dist/{vue-ui-timer-DjpkBrmE.js → vue-ui-timer-CvvexEeN.js} +5 -5
- package/dist/{vue-ui-tiremarks-DK1Y5NS-.cjs → vue-ui-tiremarks-BAkMBz3o.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-C3oH7Ida.js → vue-ui-tiremarks-DbZQvV_2.js} +7 -7
- package/dist/{vue-ui-treemap-B9Ttncgf.js → vue-ui-treemap-CF-RjM16.js} +12 -12
- package/dist/{vue-ui-treemap-DeDaY1tK.cjs → vue-ui-treemap-a6b1vWy-.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-jQ534ONL.cjs → vue-ui-vertical-bar-Dm5zMIeE.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DbGWFmAZ.js → vue-ui-vertical-bar-ZJbSI-xR.js} +12 -12
- package/dist/{vue-ui-waffle-BEAMerlK.js → vue-ui-waffle-I9AKkwb4.js} +12 -12
- package/dist/{vue-ui-waffle-Dlq-kfVb.cjs → vue-ui-waffle-XNiw-qtb.cjs} +1 -1
- package/dist/{vue-ui-wheel-BwxXgxYN.js → vue-ui-wheel-BA7wZUZL.js} +7 -7
- package/dist/{vue-ui-wheel-BpoGeeG1.cjs → vue-ui-wheel-DJUrO6CA.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DRihn0ID.js → vue-ui-word-cloud-BVqb1Yix.js} +11 -11
- package/dist/vue-ui-word-cloud-ByjkRq1g.cjs +1 -0
- package/dist/{vue-ui-world-zCrAoO8x.cjs → vue-ui-world-9nlcZMH1.cjs} +1 -1
- package/dist/{vue-ui-world-BvwaCfKu.js → vue-ui-world-DkYRlp5s.js} +11 -11
- package/dist/{vue-ui-xy-D8ZtpWDi.js → vue-ui-xy-B1HwPMFi.js} +16 -16
- package/dist/{vue-ui-xy-DTbAGaIM.cjs → vue-ui-xy-B4sqGuw6.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-DI6-54yO.cjs → vue-ui-xy-canvas-C-rykR_6.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DQhK_N_z.js → vue-ui-xy-canvas-CGCtkn9g.js} +12 -12
- package/package.json +1 -1
- package/dist/vue-ui-word-cloud-Bwp55Vjk.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),Q=require("./pdf-Bg3JLNad.cjs"),K=require("./useNestedProp-DqEOzYzu.cjs"),S=require("./index-DiJiQMBB.cjs"),J=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Z={key:0,"data-dom-to-png-ignore":"",style:{width:"100%",display:"flex","justify-content":"end"}},ee=["disabled"],oe=["stroke"],ne={key:1},te=["id"],re=["onMousedown","onTouchstart"],ie=["onMousedown","onTouchstart"],ue=["onMousedown","onTouchstart"],se=["onMousedown","onTouchstart"],le=["onMousedown","onTouchstart"],A=1,ae={__name:"vue-ui-dashboard",props:{dataset:Array,config:Object},emits:["change"],setup(B,{expose:E,emit:z}){e.useCssVars(o=>({"3d03b7eb":R.value,"5286e662":L.value}));const N={VueDataUi:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-data-ui-DmyMMva1.cjs"))),VueUi3dBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-BuLR9KPG.cjs"))),VueUiAccordion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-P5hXhzth.cjs"))),VueUiAgePyramid:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-DQjIgLoF.cjs"))),VueUiAnnotator:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-SHkR_9cj.cjs"))),VueUiCandlestick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-Bd9v_ssR.cjs"))),VueUiChestnut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-Da5lD-jy.cjs"))),VueUiDigits:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-DYzQpKDk.cjs"))),VueUiDonut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-BZBTtRIT.cjs"))),VueUiDonutEvolution:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-BigkaF3K.cjs"))),VueUiDumbbell:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-COVwDZf9.cjs"))),VueUiFlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-C2-V4oXf.cjs"))),VueUiGalaxy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-Dh6mXUEh.cjs"))),VueUiGauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-C0-BHMRe.cjs"))),VueUiHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-L44qq3tT.cjs"))),VueUiKpi:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-3Y6KGCu8.cjs"))),VueUiMiniLoader:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-DYQjIOkq.cjs"))),VueUiMolecule:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-BsbB0T8n.cjs"))),VueUiMoodRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-Dcgb3cQR.cjs"))),VueUiNestedDonuts:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-CElXmrE_.cjs"))),VueUiOnion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-DTYqd0S7.cjs"))),VueUiParallelCoordinatePlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-DXgrYF8V.cjs"))),VueUiQuadrant:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant--MXxqtPm.cjs"))),VueUiQuickChart:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-DrEeKIP-.cjs"))),VueUiRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-Baujx0zJ.cjs"))),VueUiRating:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-CoCspb5w.cjs"))),VueUiRelationCircle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-BOQbjwio.cjs"))),VueUiRings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-BhG1riq2.cjs"))),VueUiScatter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-D2EXkBxx.cjs"))),VueUiSkeleton:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-DEI0qJZY.cjs"))),VueUiSmiley:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-B4dNIhTF.cjs"))),VueUiSparkHistogram:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-Bbui1Mjp.cjs"))),VueUiSparkStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-CAAfi-lB.cjs"))),VueUiSparkTrend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-JPsaMYzx.cjs"))),VueUiSparkbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-P7ab216P.cjs"))),VueUiSparkgauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-BrmBThWX.cjs"))),VueUiSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-DkRtUZjr.cjs"))),VueUiStripPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-BuA2QRro.cjs"))),VueUiTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-DN4G0Xcv.cjs"))),VueUiTableHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-BuGa0tHQ.cjs"))),VueUiTableSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-B3YUUzDD.cjs"))),VueUiThermometer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-D5NxA-Pu.cjs"))),VueUiTimer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-CUdy26j8.cjs"))),VueUiTiremarks:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-DK1Y5NS-.cjs"))),VueUiTreemap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-DeDaY1tK.cjs"))),VueUiVerticalBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-jQ534ONL.cjs"))),VueUiWaffle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-Dlq-kfVb.cjs"))),VueUiWheel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-BpoGeeG1.cjs"))),VueUiWordCloud:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-Bwp55Vjk.cjs"))),VueUiXy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-DTbAGaIM.cjs"))),VueUiXyCanvas:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-DI6-54yO.cjs"))),VueUiCarouselTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-carousel-table-Dwvy8FmR.cjs"))),VueUiGizmo:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gizmo-CBEmt6wS.cjs"))),VueUiStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-stackbar-hDFg5vfU.cjs"))),VueUiBullet:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-bullet-Dv-CldQs.cjs"))),VueUiFunnel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-funnel-CzUX32Ub.cjs"))),VueUiHistoryPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-history-plot-cK3Eyct-.cjs"))),VueUiCirclePack:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-circle-pack-H7fs4aWV.cjs"))),VueUiWorld:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-world-zCrAoO8x.cjs")))},{vue_ui_dashboard:x}=S.useConfig(),q=B,l=e.computed(()=>K.useNestedProp({userConfig:q.config,defaultConfig:x})),U=e.ref(S.createUid()),d=e.ref(l.value.locked);function $(){d.value=!d.value}const s=e.ref(q.dataset.map((o,n)=>({...o,index:n}))),k=e.computed(()=>s.value.map(o=>({...o,resolvedComponent:typeof o.component=="string"?N[o.component]:o.component}))),h=e.ref(null),u=e.ref(null),v=e.ref({x:0,y:0}),f=e.ref({x:0,y:0}),a=e.ref(null),c=e.ref(!1),m=e.ref(null),C=e.ref(!1),y=e.ref(!1);function w(o){const n=o.target;(n.tagName==="INPUT"&&n.type==="range"||n.classList.contains("range-handle"))&&(y.value=!0)}function T(o){const n=o.target;n.tagName==="INPUT"&&n.type==="range"&&(y.value=!1)}function M(){C.value=!0,Q.default({domElement:document.getElementById(`vue-ui-dashboard_${U.value}`),fileName:"vue-ui-dashboard"}).finally(()=>{C.value=!1})}function D(o){if(!d.value&&(c.value=!0,m.value=o,u.value===null)){h.value=o,v.value={x:event.clientX,y:event.clientY};const n=s.value[o],r=100-n.width,t=100-n.height;n.left<0&&(n.left=0),n.top<0&&(n.top=0),n.left>r&&(n.left=r),n.top>t&&(n.top=t),n.left<0&&(n.left=0),n.top<0&&(n.top=0),n.left+n.width>100&&(n.left=100-n.width),n.top+n.height>100&&(n.top=100-n.height)}}function P(o,n){c.value=!0,m.value=o,u.value={index:o,direction:n};const r=s.value[o];f.value={x:event.clientX,y:event.clientY,initialWidth:r.width,initialHeight:r.height}}function _(o,n,r){if(u.value.direction.includes("top")){const t=o.height-r/a.value.offsetHeight*100;t>=A&&(o.top+=r/a.value.offsetHeight*100,o.height=t)}if(u.value.direction.includes("bottom")){const t=o.height+r/a.value.offsetHeight*100;t>=A&&(o.height=t)}if(u.value.direction.includes("left")){const t=o.width-n/a.value.offsetWidth*100;t>=A&&(o.left+=n/a.value.offsetWidth*100,o.width=t)}if(u.value.direction.includes("right")){const t=o.width+n/a.value.offsetWidth*100;t>=A&&(o.width=t)}}function H(o){if(!(d.value||y.value)){if(c.value=!0,h.value!==null){const n=s.value[h.value],r=o.clientX-v.value.x,t=o.clientY-v.value.y,i=n.left+r/a.value.offsetWidth*100,p=n.top+t/a.value.offsetHeight*100;i>=0&&p>=0&&i+n.width<=100&&p+n.height<=100&&(n.left=i,n.top=p),v.value={x:o.clientX,y:o.clientY}}if(u.value!==null){const n=s.value[u.value.index],r=o.clientX-f.value.x,t=o.clientY-f.value.y;_(n,r,t),f.value={x:o.clientX,y:o.clientY}}}}const X=z;e.watch(s,o=>{o&&!c.value&&X("change",s.value)},{deep:!0});function I(){h.value=null,u.value=null,c.value=!1,m.value=null,s.value.forEach(o=>{o.left=Math.round(o.left/100*100),o.top=Math.round(o.top/100*100),o.width=Math.round(o.width/100*100),o.height=Math.round(o.height/100*100)})}function Y(o){d.value||y.value||(c.value=!0,m.value=o,u.value===null&&(h.value=o,v.value={x:event.touches[0].clientX,y:event.touches[0].clientY}))}function V(o,n,r){if(c.value=!0,m.value=o,u.value===null){u.value={index:o,direction:n};const t=s.value[o];f.value={x:r.touches[0].clientX,y:r.touches[0].clientY,initialWidth:t.width,initialHeight:t.height}}}function b(o){if(c.value=!0,o.preventDefault(),u.value!==null){const n=s.value[u.value.index],r=o.touches[0].clientX-f.value.x,t=o.touches[0].clientY-f.value.y;_(n,r,t),f.value={x:o.touches[0].clientX,y:o.touches[0].clientY}}}function W(o){if(!(d.value||y.value)&&(c.value=!0,o.preventDefault(),h.value!==null)){const n=s.value[h.value],r=o.touches[0].clientX-v.value.x,t=o.touches[0].clientY-v.value.y,i=n.left+r/a.value.offsetWidth*100,p=n.top+t/a.value.offsetHeight*100;i>=0&&p>=0&&i+n.width<=100&&p+n.height<=100&&(n.left=i,n.top=p),v.value={x:o.touches[0].clientX,y:o.touches[0].clientY}}}function g(){c.value=!1,m.value=null,h.value=null,u.value=null,s.value.forEach(o=>{o.left=Math.round(o.left/100*100),o.top=Math.round(o.top/100*100),o.width=Math.round(o.width/100*100),o.height=Math.round(o.height/100*100)})}const R=e.computed(()=>l.value.style.item.borderColor),L=e.computed(()=>l.value.style.resizeHandles.backgroundColor),F=e.computed(()=>l.value.style.board.aspectRatio),O=e.computed(()=>l.value.style.board.backgroundColor),G=e.computed(()=>l.value.style.board.border);function j(){return s.value}return E({generatePdf:M,getItemsPositions:j,toggleLock:$}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{onMousedown:w,onMouseup:T,onTouchstart:w,onTouchend:T},[l.value.allowPrint?(e.openBlock(),e.createElementBlock("div",Z,[e.createElementVNode("button",{class:"vue-ui-dashboard-button",onClick:M,disabled:C.value,style:e.normalizeStyle([{"margin-top":"12px"},`color:${l.value.style.board.color}`])},[C.value?(e.openBlock(),e.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:l.value.style.board.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},n[4]||(n[4]=[e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-dc9ae697></path><path d="M18 16v.01" data-v-dc9ae697></path><path d="M6 16v.01" data-v-dc9ae697></path><path d="M12 5v.01" data-v-dc9ae697></path><path d="M12 12v.01" data-v-dc9ae697></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-dc9ae697></path>',6)]),8,oe)):(e.openBlock(),e.createElementBlock("span",ne,"PDF"))],12,ee)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"vue-ui-dashboard-container",ref_key:"dashboardContainer",ref:a,id:`vue-ui-dashboard_${U.value}`,style:e.normalizeStyle(`border:${G.value}; background:${O.value}; aspect-ratio:${F.value}`)},[e.createElementVNode("div",{class:"vue-ui-dashboard-grid-container",ref:"container",onMousemove:H,onMouseup:I,onTouchmove:W,onTouchend:g,style:e.normalizeStyle(`background:${l.value.style.board.backgroundColor}`)},[n[5]||(n[5]=e.createElementVNode("div",{class:"vue-ui-dashboard-grid"},null,-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(r,t)=>(e.openBlock(),e.createElementBlock("div",{key:r.id,class:e.normalizeClass({"vue-ui-dashboard-grid-item":!0,"vue-ui-dashboard-grid-item--locked":d.value}),style:e.normalizeStyle({width:`${r.width}%`,height:`${r.height}%`,left:`${r.left}%`,top:`${r.top}%`,cursor:"move",boxShadow:m.value===t?"0 6px 12px -3px rgba(0,0,0,0.3)":"",zIndex:m.value===t?k.value.length+1:r.index,backgroundColor:l.value.style.item.backgroundColor}),onMousedown:i=>D(t),onTouchstart:i=>Y(t)},[d.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-top-left",onMousedown:i=>P(t,"top-left"),onTouchstart:i=>V(t,"top-left",i),onTouchmove:n[0]||(n[0]=i=>b(i)),onTouchend:g},null,40,ie),e.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-top-right",onMousedown:i=>P(t,"top-right"),onTouchstart:i=>V(t,"top-right",i),onTouchmove:n[1]||(n[1]=i=>b(i)),onTouchend:g},null,40,ue),e.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-left",onMousedown:i=>P(t,"bottom-left"),onTouchstart:i=>V(t,"bottom-left",i),onTouchmove:n[2]||(n[2]=i=>b(i)),onTouchend:g},null,40,se),e.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-right",onMousedown:i=>P(t,"bottom-right"),onTouchstart:i=>V(t,"bottom-right",i),onTouchmove:n[3]||(n[3]=i=>b(i)),onTouchend:g},null,40,le)],64)),r.resolvedComponent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.resolvedComponent),e.mergeProps({key:1,ref_for:!0},r.props),null,16)):e.renderSlot(o.$slots,"content",{key:2,item:r,index:t,left:r.left,top:r.top,height:r.height,width:r.width},void 0,!0)],46,re))),128))],36)],12,te)],32))}},ce=J._export_sfc(ae,[["__scopeId","data-v-dc9ae697"]]);exports.default=ce;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),Q=require("./pdf-Dq3h9PEr.cjs"),K=require("./useNestedProp-CCR03NVM.cjs"),S=require("./index-DgIVCHLv.cjs"),J=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Z={key:0,"data-dom-to-png-ignore":"",style:{width:"100%",display:"flex","justify-content":"end"}},ee=["disabled"],oe=["stroke"],ne={key:1},te=["id"],re=["onMousedown","onTouchstart"],ie=["onMousedown","onTouchstart"],ue=["onMousedown","onTouchstart"],se=["onMousedown","onTouchstart"],le=["onMousedown","onTouchstart"],A=1,ae={__name:"vue-ui-dashboard",props:{dataset:Array,config:Object},emits:["change"],setup(B,{expose:E,emit:z}){e.useCssVars(o=>({"3d03b7eb":R.value,"5286e662":L.value}));const N={VueDataUi:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-data-ui-DhWKehHS.cjs"))),VueUi3dBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-Bpm8dKya.cjs"))),VueUiAccordion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-DE1isSE9.cjs"))),VueUiAgePyramid:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-BnHOxOPT.cjs"))),VueUiAnnotator:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-B9j16TKW.cjs"))),VueUiCandlestick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-Bq66GLxw.cjs"))),VueUiChestnut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-D8QPZS8n.cjs"))),VueUiDigits:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-D66h3nUw.cjs"))),VueUiDonut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-Bf3THSxi.cjs"))),VueUiDonutEvolution:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-xxrUJzgG.cjs"))),VueUiDumbbell:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-CWn7cNsm.cjs"))),VueUiFlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-DFxWNRRJ.cjs"))),VueUiGalaxy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-BRle40mR.cjs"))),VueUiGauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-B4vEWkRk.cjs"))),VueUiHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-VdFtflO6.cjs"))),VueUiKpi:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-DSQV0Kf2.cjs"))),VueUiMiniLoader:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-CDOlO_1_.cjs"))),VueUiMolecule:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-jEcRTe4V.cjs"))),VueUiMoodRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-BoKSTE-Y.cjs"))),VueUiNestedDonuts:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-ihd00Tpn.cjs"))),VueUiOnion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-D9AHOWa5.cjs"))),VueUiParallelCoordinatePlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-BmO6zenq.cjs"))),VueUiQuadrant:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant-CAJ4dTBu.cjs"))),VueUiQuickChart:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-C37lGqa1.cjs"))),VueUiRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-H08KmB3s.cjs"))),VueUiRating:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-CYarWaTf.cjs"))),VueUiRelationCircle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-A4Vw8kYl.cjs"))),VueUiRings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-DnVeMrOw.cjs"))),VueUiScatter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-DoGX7iHp.cjs"))),VueUiSkeleton:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-DeEGdJEn.cjs"))),VueUiSmiley:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-DmAtXVht.cjs"))),VueUiSparkHistogram:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-BdWirDjI.cjs"))),VueUiSparkStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-BJl9lbBp.cjs"))),VueUiSparkTrend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-C3CO25Jy.cjs"))),VueUiSparkbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-C2roDWfv.cjs"))),VueUiSparkgauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-nq6-9TjT.cjs"))),VueUiSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-B2mOJzkG.cjs"))),VueUiStripPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-Dlsv-yRI.cjs"))),VueUiTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-qULtmHGA.cjs"))),VueUiTableHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-BhxOvDDW.cjs"))),VueUiTableSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-D1hriLB0.cjs"))),VueUiThermometer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-Cvnh4jvE.cjs"))),VueUiTimer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-BlmIXPv6.cjs"))),VueUiTiremarks:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-BAkMBz3o.cjs"))),VueUiTreemap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-a6b1vWy-.cjs"))),VueUiVerticalBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-Dm5zMIeE.cjs"))),VueUiWaffle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-XNiw-qtb.cjs"))),VueUiWheel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-DJUrO6CA.cjs"))),VueUiWordCloud:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-ByjkRq1g.cjs"))),VueUiXy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-B4sqGuw6.cjs"))),VueUiXyCanvas:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-C-rykR_6.cjs"))),VueUiCarouselTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-carousel-table-CyywZulq.cjs"))),VueUiGizmo:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gizmo-BwBtkZ5z.cjs"))),VueUiStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-stackbar-CEvmDjq3.cjs"))),VueUiBullet:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-bullet-CRChR0Qe.cjs"))),VueUiFunnel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-funnel-DIoqpwbm.cjs"))),VueUiHistoryPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-history-plot-B-ScOcEy.cjs"))),VueUiCirclePack:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-circle-pack-iOxdB75t.cjs"))),VueUiWorld:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-world-9nlcZMH1.cjs")))},{vue_ui_dashboard:x}=S.useConfig(),q=B,l=e.computed(()=>K.useNestedProp({userConfig:q.config,defaultConfig:x})),U=e.ref(S.createUid()),d=e.ref(l.value.locked);function $(){d.value=!d.value}const s=e.ref(q.dataset.map((o,n)=>({...o,index:n}))),k=e.computed(()=>s.value.map(o=>({...o,resolvedComponent:typeof o.component=="string"?N[o.component]:o.component}))),h=e.ref(null),u=e.ref(null),v=e.ref({x:0,y:0}),f=e.ref({x:0,y:0}),a=e.ref(null),c=e.ref(!1),m=e.ref(null),C=e.ref(!1),y=e.ref(!1);function w(o){const n=o.target;(n.tagName==="INPUT"&&n.type==="range"||n.classList.contains("range-handle"))&&(y.value=!0)}function T(o){const n=o.target;n.tagName==="INPUT"&&n.type==="range"&&(y.value=!1)}function M(){C.value=!0,Q.default({domElement:document.getElementById(`vue-ui-dashboard_${U.value}`),fileName:"vue-ui-dashboard"}).finally(()=>{C.value=!1})}function D(o){if(!d.value&&(c.value=!0,m.value=o,u.value===null)){h.value=o,v.value={x:event.clientX,y:event.clientY};const n=s.value[o],r=100-n.width,t=100-n.height;n.left<0&&(n.left=0),n.top<0&&(n.top=0),n.left>r&&(n.left=r),n.top>t&&(n.top=t),n.left<0&&(n.left=0),n.top<0&&(n.top=0),n.left+n.width>100&&(n.left=100-n.width),n.top+n.height>100&&(n.top=100-n.height)}}function P(o,n){c.value=!0,m.value=o,u.value={index:o,direction:n};const r=s.value[o];f.value={x:event.clientX,y:event.clientY,initialWidth:r.width,initialHeight:r.height}}function _(o,n,r){if(u.value.direction.includes("top")){const t=o.height-r/a.value.offsetHeight*100;t>=A&&(o.top+=r/a.value.offsetHeight*100,o.height=t)}if(u.value.direction.includes("bottom")){const t=o.height+r/a.value.offsetHeight*100;t>=A&&(o.height=t)}if(u.value.direction.includes("left")){const t=o.width-n/a.value.offsetWidth*100;t>=A&&(o.left+=n/a.value.offsetWidth*100,o.width=t)}if(u.value.direction.includes("right")){const t=o.width+n/a.value.offsetWidth*100;t>=A&&(o.width=t)}}function H(o){if(!(d.value||y.value)){if(c.value=!0,h.value!==null){const n=s.value[h.value],r=o.clientX-v.value.x,t=o.clientY-v.value.y,i=n.left+r/a.value.offsetWidth*100,p=n.top+t/a.value.offsetHeight*100;i>=0&&p>=0&&i+n.width<=100&&p+n.height<=100&&(n.left=i,n.top=p),v.value={x:o.clientX,y:o.clientY}}if(u.value!==null){const n=s.value[u.value.index],r=o.clientX-f.value.x,t=o.clientY-f.value.y;_(n,r,t),f.value={x:o.clientX,y:o.clientY}}}}const X=z;e.watch(s,o=>{o&&!c.value&&X("change",s.value)},{deep:!0});function I(){h.value=null,u.value=null,c.value=!1,m.value=null,s.value.forEach(o=>{o.left=Math.round(o.left/100*100),o.top=Math.round(o.top/100*100),o.width=Math.round(o.width/100*100),o.height=Math.round(o.height/100*100)})}function Y(o){d.value||y.value||(c.value=!0,m.value=o,u.value===null&&(h.value=o,v.value={x:event.touches[0].clientX,y:event.touches[0].clientY}))}function V(o,n,r){if(c.value=!0,m.value=o,u.value===null){u.value={index:o,direction:n};const t=s.value[o];f.value={x:r.touches[0].clientX,y:r.touches[0].clientY,initialWidth:t.width,initialHeight:t.height}}}function b(o){if(c.value=!0,o.preventDefault(),u.value!==null){const n=s.value[u.value.index],r=o.touches[0].clientX-f.value.x,t=o.touches[0].clientY-f.value.y;_(n,r,t),f.value={x:o.touches[0].clientX,y:o.touches[0].clientY}}}function W(o){if(!(d.value||y.value)&&(c.value=!0,o.preventDefault(),h.value!==null)){const n=s.value[h.value],r=o.touches[0].clientX-v.value.x,t=o.touches[0].clientY-v.value.y,i=n.left+r/a.value.offsetWidth*100,p=n.top+t/a.value.offsetHeight*100;i>=0&&p>=0&&i+n.width<=100&&p+n.height<=100&&(n.left=i,n.top=p),v.value={x:o.touches[0].clientX,y:o.touches[0].clientY}}}function g(){c.value=!1,m.value=null,h.value=null,u.value=null,s.value.forEach(o=>{o.left=Math.round(o.left/100*100),o.top=Math.round(o.top/100*100),o.width=Math.round(o.width/100*100),o.height=Math.round(o.height/100*100)})}const R=e.computed(()=>l.value.style.item.borderColor),L=e.computed(()=>l.value.style.resizeHandles.backgroundColor),F=e.computed(()=>l.value.style.board.aspectRatio),O=e.computed(()=>l.value.style.board.backgroundColor),G=e.computed(()=>l.value.style.board.border);function j(){return s.value}return E({generatePdf:M,getItemsPositions:j,toggleLock:$}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{onMousedown:w,onMouseup:T,onTouchstart:w,onTouchend:T},[l.value.allowPrint?(e.openBlock(),e.createElementBlock("div",Z,[e.createElementVNode("button",{class:"vue-ui-dashboard-button",onClick:M,disabled:C.value,style:e.normalizeStyle([{"margin-top":"12px"},`color:${l.value.style.board.color}`])},[C.value?(e.openBlock(),e.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:l.value.style.board.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},n[4]||(n[4]=[e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-dc9ae697></path><path d="M18 16v.01" data-v-dc9ae697></path><path d="M6 16v.01" data-v-dc9ae697></path><path d="M12 5v.01" data-v-dc9ae697></path><path d="M12 12v.01" data-v-dc9ae697></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-dc9ae697></path>',6)]),8,oe)):(e.openBlock(),e.createElementBlock("span",ne,"PDF"))],12,ee)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"vue-ui-dashboard-container",ref_key:"dashboardContainer",ref:a,id:`vue-ui-dashboard_${U.value}`,style:e.normalizeStyle(`border:${G.value}; background:${O.value}; aspect-ratio:${F.value}`)},[e.createElementVNode("div",{class:"vue-ui-dashboard-grid-container",ref:"container",onMousemove:H,onMouseup:I,onTouchmove:W,onTouchend:g,style:e.normalizeStyle(`background:${l.value.style.board.backgroundColor}`)},[n[5]||(n[5]=e.createElementVNode("div",{class:"vue-ui-dashboard-grid"},null,-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(r,t)=>(e.openBlock(),e.createElementBlock("div",{key:r.id,class:e.normalizeClass({"vue-ui-dashboard-grid-item":!0,"vue-ui-dashboard-grid-item--locked":d.value}),style:e.normalizeStyle({width:`${r.width}%`,height:`${r.height}%`,left:`${r.left}%`,top:`${r.top}%`,cursor:"move",boxShadow:m.value===t?"0 6px 12px -3px rgba(0,0,0,0.3)":"",zIndex:m.value===t?k.value.length+1:r.index,backgroundColor:l.value.style.item.backgroundColor}),onMousedown:i=>D(t),onTouchstart:i=>Y(t)},[d.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-top-left",onMousedown:i=>P(t,"top-left"),onTouchstart:i=>V(t,"top-left",i),onTouchmove:n[0]||(n[0]=i=>b(i)),onTouchend:g},null,40,ie),e.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-top-right",onMousedown:i=>P(t,"top-right"),onTouchstart:i=>V(t,"top-right",i),onTouchmove:n[1]||(n[1]=i=>b(i)),onTouchend:g},null,40,ue),e.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-left",onMousedown:i=>P(t,"bottom-left"),onTouchstart:i=>V(t,"bottom-left",i),onTouchmove:n[2]||(n[2]=i=>b(i)),onTouchend:g},null,40,se),e.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-right",onMousedown:i=>P(t,"bottom-right"),onTouchstart:i=>V(t,"bottom-right",i),onTouchmove:n[3]||(n[3]=i=>b(i)),onTouchend:g},null,40,le)],64)),r.resolvedComponent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.resolvedComponent),e.mergeProps({key:1,ref_for:!0},r.props),null,16)):e.renderSlot(o.$slots,"content",{key:2,item:r,index:t,left:r.left,top:r.top,height:r.height,width:r.width},void 0,!0)],46,re))),128))],36)],12,te)],32))}},ce=J._export_sfc(ae,[["__scopeId","data-v-dc9ae697"]]);exports.default=ce;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as ae, computed as V, defineAsyncComponent as o, ref as r, watch as ue, createElementBlock as y, openBlock as g, createCommentVNode as Y, createElementVNode as b, normalizeStyle as S, createStaticVNode as ie, Fragment as N, renderList as ne, normalizeClass as le, createBlock as re, renderSlot as se, resolveDynamicComponent as de, mergeProps as ce } from "vue";
|
|
2
|
-
import he from "./pdf-
|
|
3
|
-
import { u as ve } from "./useNestedProp-
|
|
4
|
-
import { u as pe, c as fe } from "./index-
|
|
2
|
+
import he from "./pdf-DBVNp7s2.js";
|
|
3
|
+
import { u as ve } from "./useNestedProp-Cvz4MkSy.js";
|
|
4
|
+
import { u as pe, c as fe } from "./index-BI6O7K58.js";
|
|
5
5
|
import { _ as me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const ge = {
|
|
7
7
|
key: 0,
|
|
@@ -20,65 +20,65 @@ const ge = {
|
|
|
20
20
|
"5286e662": J.value
|
|
21
21
|
}));
|
|
22
22
|
const E = {
|
|
23
|
-
VueDataUi: o(() => import("./vue-data-ui-
|
|
24
|
-
VueUi3dBar: o(() => import("./vue-ui-3d-bar-
|
|
25
|
-
VueUiAccordion: o(() => import("./vue-ui-accordion-
|
|
26
|
-
VueUiAgePyramid: o(() => import("./vue-ui-age-pyramid-
|
|
27
|
-
VueUiAnnotator: o(() => import("./vue-ui-annotator-
|
|
28
|
-
VueUiCandlestick: o(() => import("./vue-ui-candlestick-
|
|
29
|
-
VueUiChestnut: o(() => import("./vue-ui-chestnut-
|
|
30
|
-
VueUiDigits: o(() => import("./vue-ui-digits-
|
|
31
|
-
VueUiDonut: o(() => import("./vue-ui-donut-
|
|
32
|
-
VueUiDonutEvolution: o(() => import("./vue-ui-donut-evolution-
|
|
33
|
-
VueUiDumbbell: o(() => import("./vue-ui-dumbbell-
|
|
34
|
-
VueUiFlow: o(() => import("./vue-ui-flow-
|
|
35
|
-
VueUiGalaxy: o(() => import("./vue-ui-galaxy-
|
|
36
|
-
VueUiGauge: o(() => import("./vue-ui-gauge-
|
|
37
|
-
VueUiHeatmap: o(() => import("./vue-ui-heatmap-
|
|
38
|
-
VueUiKpi: o(() => import("./vue-ui-kpi-
|
|
39
|
-
VueUiMiniLoader: o(() => import("./vue-ui-mini-loader-
|
|
40
|
-
VueUiMolecule: o(() => import("./vue-ui-molecule-
|
|
41
|
-
VueUiMoodRadar: o(() => import("./vue-ui-mood-radar-
|
|
42
|
-
VueUiNestedDonuts: o(() => import("./vue-ui-nested-donuts-
|
|
43
|
-
VueUiOnion: o(() => import("./vue-ui-onion-
|
|
44
|
-
VueUiParallelCoordinatePlot: o(() => import("./vue-ui-parallel-coordinate-plot-
|
|
45
|
-
VueUiQuadrant: o(() => import("./vue-ui-quadrant-
|
|
46
|
-
VueUiQuickChart: o(() => import("./vue-ui-quick-chart-
|
|
47
|
-
VueUiRadar: o(() => import("./vue-ui-radar-
|
|
48
|
-
VueUiRating: o(() => import("./vue-ui-rating-
|
|
49
|
-
VueUiRelationCircle: o(() => import("./vue-ui-relation-circle-
|
|
50
|
-
VueUiRings: o(() => import("./vue-ui-rings-
|
|
51
|
-
VueUiScatter: o(() => import("./vue-ui-scatter-
|
|
52
|
-
VueUiSkeleton: o(() => import("./vue-ui-skeleton-
|
|
53
|
-
VueUiSmiley: o(() => import("./vue-ui-smiley-
|
|
54
|
-
VueUiSparkHistogram: o(() => import("./vue-ui-sparkhistogram-
|
|
55
|
-
VueUiSparkStackbar: o(() => import("./vue-ui-sparkstackbar-
|
|
56
|
-
VueUiSparkTrend: o(() => import("./vue-ui-spark-trend-
|
|
57
|
-
VueUiSparkbar: o(() => import("./vue-ui-sparkbar-
|
|
58
|
-
VueUiSparkgauge: o(() => import("./vue-ui-sparkgauge-
|
|
59
|
-
VueUiSparkline: o(() => import("./vue-ui-sparkline-
|
|
60
|
-
VueUiStripPlot: o(() => import("./vue-ui-strip-plot-
|
|
61
|
-
VueUiTable: o(() => import("./vue-ui-table-
|
|
62
|
-
VueUiTableHeatmap: o(() => import("./vue-ui-table-heatmap-
|
|
63
|
-
VueUiTableSparkline: o(() => import("./vue-ui-table-sparkline-
|
|
64
|
-
VueUiThermometer: o(() => import("./vue-ui-thermometer-
|
|
65
|
-
VueUiTimer: o(() => import("./vue-ui-timer-
|
|
66
|
-
VueUiTiremarks: o(() => import("./vue-ui-tiremarks-
|
|
67
|
-
VueUiTreemap: o(() => import("./vue-ui-treemap-
|
|
68
|
-
VueUiVerticalBar: o(() => import("./vue-ui-vertical-bar-
|
|
69
|
-
VueUiWaffle: o(() => import("./vue-ui-waffle-
|
|
70
|
-
VueUiWheel: o(() => import("./vue-ui-wheel-
|
|
71
|
-
VueUiWordCloud: o(() => import("./vue-ui-word-cloud-
|
|
72
|
-
VueUiXy: o(() => import("./vue-ui-xy-
|
|
73
|
-
VueUiXyCanvas: o(() => import("./vue-ui-xy-canvas-
|
|
74
|
-
VueUiCarouselTable: o(() => import("./vue-ui-carousel-table-
|
|
75
|
-
VueUiGizmo: o(() => import("./vue-ui-gizmo-
|
|
76
|
-
VueUiStackbar: o(() => import("./vue-ui-stackbar-
|
|
77
|
-
VueUiBullet: o(() => import("./vue-ui-bullet-
|
|
78
|
-
VueUiFunnel: o(() => import("./vue-ui-funnel-
|
|
79
|
-
VueUiHistoryPlot: o(() => import("./vue-ui-history-plot-
|
|
80
|
-
VueUiCirclePack: o(() => import("./vue-ui-circle-pack-
|
|
81
|
-
VueUiWorld: o(() => import("./vue-ui-world-
|
|
23
|
+
VueDataUi: o(() => import("./vue-data-ui-bm5wfGa_.js")),
|
|
24
|
+
VueUi3dBar: o(() => import("./vue-ui-3d-bar-CHOAZoDV.js")),
|
|
25
|
+
VueUiAccordion: o(() => import("./vue-ui-accordion-ldF7KsjV.js")),
|
|
26
|
+
VueUiAgePyramid: o(() => import("./vue-ui-age-pyramid-BuKSta-B.js")),
|
|
27
|
+
VueUiAnnotator: o(() => import("./vue-ui-annotator-BBuH-QB4.js")),
|
|
28
|
+
VueUiCandlestick: o(() => import("./vue-ui-candlestick-By5MsCcS.js")),
|
|
29
|
+
VueUiChestnut: o(() => import("./vue-ui-chestnut-BS2kXrPU.js")),
|
|
30
|
+
VueUiDigits: o(() => import("./vue-ui-digits-BXBXg7wv.js")),
|
|
31
|
+
VueUiDonut: o(() => import("./vue-ui-donut-BGZIwC5D.js")),
|
|
32
|
+
VueUiDonutEvolution: o(() => import("./vue-ui-donut-evolution-5yOibvNM.js")),
|
|
33
|
+
VueUiDumbbell: o(() => import("./vue-ui-dumbbell-C-KqKhxI.js")),
|
|
34
|
+
VueUiFlow: o(() => import("./vue-ui-flow-D4_2VnaB.js")),
|
|
35
|
+
VueUiGalaxy: o(() => import("./vue-ui-galaxy-DLtA9Ebb.js")),
|
|
36
|
+
VueUiGauge: o(() => import("./vue-ui-gauge-BVj-IBdi.js")),
|
|
37
|
+
VueUiHeatmap: o(() => import("./vue-ui-heatmap-DrXMOxbe.js")),
|
|
38
|
+
VueUiKpi: o(() => import("./vue-ui-kpi-DfFiDtCP.js")),
|
|
39
|
+
VueUiMiniLoader: o(() => import("./vue-ui-mini-loader-1JZipPcP.js")),
|
|
40
|
+
VueUiMolecule: o(() => import("./vue-ui-molecule-Db_C7mVS.js")),
|
|
41
|
+
VueUiMoodRadar: o(() => import("./vue-ui-mood-radar-m48vvkft.js")),
|
|
42
|
+
VueUiNestedDonuts: o(() => import("./vue-ui-nested-donuts-DNhMOryo.js")),
|
|
43
|
+
VueUiOnion: o(() => import("./vue-ui-onion-YKxsqnI7.js")),
|
|
44
|
+
VueUiParallelCoordinatePlot: o(() => import("./vue-ui-parallel-coordinate-plot-7SCwFkrU.js")),
|
|
45
|
+
VueUiQuadrant: o(() => import("./vue-ui-quadrant-Bi0by7IK.js")),
|
|
46
|
+
VueUiQuickChart: o(() => import("./vue-ui-quick-chart-DlV0Qv_x.js")),
|
|
47
|
+
VueUiRadar: o(() => import("./vue-ui-radar-B14zLIww.js")),
|
|
48
|
+
VueUiRating: o(() => import("./vue-ui-rating-CdSQUBG6.js")),
|
|
49
|
+
VueUiRelationCircle: o(() => import("./vue-ui-relation-circle-IzAvPPGl.js")),
|
|
50
|
+
VueUiRings: o(() => import("./vue-ui-rings-DUhnXy1h.js")),
|
|
51
|
+
VueUiScatter: o(() => import("./vue-ui-scatter-D7bXuxob.js")),
|
|
52
|
+
VueUiSkeleton: o(() => import("./vue-ui-skeleton-Dxm7rqic.js")),
|
|
53
|
+
VueUiSmiley: o(() => import("./vue-ui-smiley-95l4UiqT.js")),
|
|
54
|
+
VueUiSparkHistogram: o(() => import("./vue-ui-sparkhistogram-Brau127G.js")),
|
|
55
|
+
VueUiSparkStackbar: o(() => import("./vue-ui-sparkstackbar-DLlDU0B2.js")),
|
|
56
|
+
VueUiSparkTrend: o(() => import("./vue-ui-spark-trend-DdH43oVm.js")),
|
|
57
|
+
VueUiSparkbar: o(() => import("./vue-ui-sparkbar-DTe3QrR3.js")),
|
|
58
|
+
VueUiSparkgauge: o(() => import("./vue-ui-sparkgauge-BwclNj3C.js")),
|
|
59
|
+
VueUiSparkline: o(() => import("./vue-ui-sparkline-qqfyQyVz.js")),
|
|
60
|
+
VueUiStripPlot: o(() => import("./vue-ui-strip-plot-C9LKjSkW.js")),
|
|
61
|
+
VueUiTable: o(() => import("./vue-ui-table-DxdJ151X.js")),
|
|
62
|
+
VueUiTableHeatmap: o(() => import("./vue-ui-table-heatmap-CzGeU_uL.js")),
|
|
63
|
+
VueUiTableSparkline: o(() => import("./vue-ui-table-sparkline-DSZhEDKX.js")),
|
|
64
|
+
VueUiThermometer: o(() => import("./vue-ui-thermometer-Pw4X3Bun.js")),
|
|
65
|
+
VueUiTimer: o(() => import("./vue-ui-timer-CvvexEeN.js")),
|
|
66
|
+
VueUiTiremarks: o(() => import("./vue-ui-tiremarks-DbZQvV_2.js")),
|
|
67
|
+
VueUiTreemap: o(() => import("./vue-ui-treemap-CF-RjM16.js")),
|
|
68
|
+
VueUiVerticalBar: o(() => import("./vue-ui-vertical-bar-ZJbSI-xR.js")),
|
|
69
|
+
VueUiWaffle: o(() => import("./vue-ui-waffle-I9AKkwb4.js")),
|
|
70
|
+
VueUiWheel: o(() => import("./vue-ui-wheel-BA7wZUZL.js")),
|
|
71
|
+
VueUiWordCloud: o(() => import("./vue-ui-word-cloud-BVqb1Yix.js")),
|
|
72
|
+
VueUiXy: o(() => import("./vue-ui-xy-B1HwPMFi.js")),
|
|
73
|
+
VueUiXyCanvas: o(() => import("./vue-ui-xy-canvas-CGCtkn9g.js")),
|
|
74
|
+
VueUiCarouselTable: o(() => import("./vue-ui-carousel-table-BOtjI2Ov.js")),
|
|
75
|
+
VueUiGizmo: o(() => import("./vue-ui-gizmo-BTe8CPyi.js")),
|
|
76
|
+
VueUiStackbar: o(() => import("./vue-ui-stackbar-RRGnblUm.js")),
|
|
77
|
+
VueUiBullet: o(() => import("./vue-ui-bullet-B0C_rPTQ.js")),
|
|
78
|
+
VueUiFunnel: o(() => import("./vue-ui-funnel-ADEjZ8yz.js")),
|
|
79
|
+
VueUiHistoryPlot: o(() => import("./vue-ui-history-plot-_DfuZIMP.js")),
|
|
80
|
+
VueUiCirclePack: o(() => import("./vue-ui-circle-pack-C8m10WZ0.js")),
|
|
81
|
+
VueUiWorld: o(() => import("./vue-ui-world-DkYRlp5s.js"))
|
|
82
82
|
}, { vue_ui_dashboard: L } = pe(), $ = W, s = V(() => ve({
|
|
83
83
|
userConfig: $.config,
|
|
84
84
|
defaultConfig: L
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as k, computed as d, createElementBlock as i, openBlock as $, Fragment as o, createCommentVNode as m, createElementVNode as l, normalizeStyle as v, unref 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-Cvz4MkSy.js";
|
|
3
|
+
import { u as M, X as S } from "./index-BI6O7K58.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-CCR03NVM.cjs"),L=require("./index-DgIVCHLv.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 $=e,u=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($.quanta)?u.value.X:u.value[$.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{vue_ui_digits:$}=L.useConfig(),u=e,l=t.computed(()=>g.useNestedProp({userConfig:u.config,defaultConfig:$})),a=t.computed(()=>{const c=(u.dataset||0).toString().split(""),i=[],n={x:10,y:10};let d=0;for(let y=0;y<c.length;y+=1){const o=c[y];i.push({x:n.x+d,y:n.y,quanta:o}),o=="."?d+=2:d+=44}return i}),x=t.computed(()=>Math.max(...a.value.map(c=>c.x))+36);return(c,i)=>(t.openBlock(),t.createElementBlock("svg",{class:"vue-ui-digits",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,18 +1,18 @@
|
|
|
1
1
|
import { useSlots as ct, computed as w, ref as d, onMounted as dt, onBeforeUnmount as ht, watch as je, createElementBlock as u, openBlock as o, unref as n, normalizeStyle as z, normalizeClass as de, createBlock as R, createCommentVNode as i, renderSlot as g, createElementVNode as p, createVNode as he, createSlots as We, withCtx as x, normalizeProps as E, guardReactiveProps as H, Fragment as b, renderList as F, mergeProps as Ee, toDisplayString as C, createTextVNode as He, nextTick as yt } from "vue";
|
|
2
|
-
import { u as ft, o as pt, e as qe, g as gt, c as bt, b as mt, d as Je, p as U, m as wt, Y as kt, f as O, X as _t, s as Z, w as xt, j as $t, L, i as A, k as ee, n as k, t as Ct, a as Pt, q as St, r as Ft, x as Lt } from "./index-
|
|
2
|
+
import { u as ft, o as pt, e as qe, g as gt, c as bt, b as mt, d as Je, p as U, m as wt, Y as kt, f as O, X as _t, s as Z, w as xt, j as $t, L, i as A, k as ee, n as k, t as Ct, a as Pt, q as St, r as Ft, x as Lt } from "./index-BI6O7K58.js";
|
|
3
3
|
import { t as Tt, u as zt } from "./useResponsive-Cw4oZ8sQ.js";
|
|
4
|
-
import { _ as Ot } from "./Title-
|
|
5
|
-
import { u as Yt, U as At } from "./usePrinter-
|
|
6
|
-
import { D as Nt } from "./DataTable-
|
|
7
|
-
import { _ as Xt } from "./Tooltip-
|
|
8
|
-
import { L as It } from "./Legend-
|
|
9
|
-
import Dt from "./vue-ui-skeleton-
|
|
10
|
-
import Mt from "./vue-ui-accordion-
|
|
11
|
-
import { u as Ke } from "./useNestedProp-
|
|
12
|
-
import { _ as Bt } from "./PackageVersion-
|
|
13
|
-
import { _ as Vt } from "./PenAndPaper-
|
|
4
|
+
import { _ as Ot } from "./Title-CDYBDpu3.js";
|
|
5
|
+
import { u as Yt, U as At } from "./usePrinter-Jr3eyr8H.js";
|
|
6
|
+
import { D as Nt } from "./DataTable-Dk-94kK2.js";
|
|
7
|
+
import { _ as Xt } from "./Tooltip-BzsAOdBd.js";
|
|
8
|
+
import { L as It } from "./Legend-Cx6NYPTA.js";
|
|
9
|
+
import Dt from "./vue-ui-skeleton-Dxm7rqic.js";
|
|
10
|
+
import Mt from "./vue-ui-accordion-ldF7KsjV.js";
|
|
11
|
+
import { u as Ke } from "./useNestedProp-Cvz4MkSy.js";
|
|
12
|
+
import { _ as Bt } from "./PackageVersion-BdNfnIm2.js";
|
|
13
|
+
import { _ as Vt } from "./PenAndPaper-wrVNMaG8.js";
|
|
14
14
|
import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
-
import { _ as Rt } from "./Shape-
|
|
15
|
+
import { _ as Rt } from "./Shape-vIKj52KP.js";
|
|
16
16
|
import { u as Ut } from "./useChartAccessibility-BWojgys7.js";
|
|
17
17
|
import { _ as jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
18
|
const Wt = ["id"], Et = ["xmlns", "viewBox"], Ht = ["width", "height"], qt = { key: 1 }, Jt = ["id"], Kt = ["stop-color"], Qt = ["offset", "stop-color"], Zt = ["offset", "stop-color"], el = ["stop-color"], tl = { key: 2 }, ll = ["id", "cx", "cy"], al = ["stop-color", "stop-opacity"], ol = ["stop-color"], ul = ["id"], sl = ["id"], nl = ["id"], rl = ["flood-color"], il = ["id"], vl = ["flood-color"], cl = ["d", "stroke", "filter"], dl = ["x1", "y1", "x2", "y2", "stroke", "filter"], hl = ["cx", "cy", "r", "fill", "filter"], yl = { key: 6 }, fl = ["stroke", "d"], pl = { key: 0 }, gl = ["d", "fill", "stroke", "stroke-width", "filter"], bl = ["d", "fill", "stroke", "stroke-width", "filter"], ml = { key: 0 }, wl = ["stroke", "d"], kl = { key: 0 }, _l = ["d", "stroke", "stroke-width", "filter"], xl = { key: 1 }, $l = ["d", "fill", "stroke", "stroke-width", "filter"], Cl = ["d", "fill", "stroke", "stroke-width", "filter"], Pl = { key: 1 }, Sl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Fl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ll = ["cx", "cy", "r", "stroke"], Tl = ["cx", "cy", "r", "fill"], zl = { key: 0 }, Ol = ["d", "fill", "onMouseenter", "onClick"], Yl = { key: 1 }, Al = ["cx", "cy", "r", "fill"], Nl = ["x", "y", "fill", "font-size"], Xl = ["x", "y", "fill", "font-size"], Il = ["x", "y", "fill", "font-size"], Dl = ["x", "y", "fill", "font-size"], Ml = ["filter"], Bl = { key: 0 }, Vl = ["x", "y"], Gl = { key: 1 }, Rl = ["cx", "cy", "fill", "stroke", "filter", "onClick"], Ul = ["cx", "cy", "fill", "stroke", "filter", "onClick"], jl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Wl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], El = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Hl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ql = { key: 2 }, Jl = ["x", "y", "width"], Kl = ["x", "y", "width"], Ql = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DiJiQMBB.cjs"),Ce=require("./useResponsive-DQmBAoBf.cjs"),De=require("./Title-zlQvBTwR.cjs"),Be=require("./usePrinter-Bkd5ycBt.cjs"),Me=require("./DataTable-DSiJ_YaA.cjs"),Ye=require("./Tooltip-DY4rXOAP.cjs"),Ae=require("./Legend-RwWQ6l8r.cjs"),Ie=require("./vue-ui-skeleton-DEI0qJZY.cjs"),qe=require("./vue-ui-accordion-P5hXhzth.cjs"),_e=require("./useNestedProp-DqEOzYzu.cjs"),Re=require("./PackageVersion-DCriWnX3.cjs"),Ge=require("./PenAndPaper-lj1PPAzR.cjs"),Ue=require("./useUserOptionState-BgepsfED.cjs"),je=require("./Shape-BgbyzOCz.cjs"),He=require("./useChartAccessibility-Cm7nkzTG.cjs"),We=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Je=["id"],Ke=["xmlns","viewBox"],Qe=["width","height"],Ze={key:1},et=["id"],tt=["stop-color"],lt=["offset","stop-color"],ot=["offset","stop-color"],at=["stop-color"],rt={key:2},nt=["id","cx","cy"],ut=["stop-color","stop-opacity"],st=["stop-color"],it=["id"],ct=["id"],dt=["id"],vt=["flood-color"],ht=["id"],ft=["flood-color"],yt=["d","stroke","filter"],pt=["x1","y1","x2","y2","stroke","filter"],mt=["cx","cy","r","fill","filter"],gt={key:6},kt=["stroke","d"],bt={key:0},wt=["d","fill","stroke","stroke-width","filter"],Ct=["d","fill","stroke","stroke-width","filter"],Bt={key:0},_t=["stroke","d"],xt={key:0},$t=["d","stroke","stroke-width","filter"],St={key:1},Et=["d","fill","stroke","stroke-width","filter"],Nt=["d","fill","stroke","stroke-width","filter"],Pt={key:1},Vt=["cx","cy","r","fill","stroke","stroke-width"],Ft=["cx","cy","r","fill","stroke","stroke-width"],Lt=["cx","cy","r","stroke"],Ot=["cx","cy","r","fill"],zt={key:0},Tt=["d","fill","onMouseenter","onClick"],Xt={key:1},Dt=["cx","cy","r","fill"],Mt=["x","y","fill","font-size"],Yt=["x","y","fill","font-size"],At=["x","y","fill","font-size"],It=["x","y","fill","font-size"],qt=["filter"],Rt={key:0},Gt=["x","y"],Ut={key:1},jt=["cx","cy","fill","stroke","filter","onClick"],Ht=["cx","cy","fill","stroke","filter","onClick"],Wt=["text-anchor","x","y","fill","font-size","onClick"],Jt=["text-anchor","x","y","fill","font-size","onClick"],Kt=["text-anchor","x","y","fill","font-size","onClick"],Qt=["text-anchor","x","y","fill","font-size","onClick"],Zt={key:2},el=["x","y","width"],tl=["x","y","width"],ll={key:5,class:"vue-data-ui-watermark"},ol=["onClick"],al={key:0,style:{"font-variant-numeric":"tabular-nums"}},rl={key:1},nl=["innerHTML"],ul={__name:"vue-ui-donut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(xe,{expose:$e,emit:Se}){const{vue_ui_donut:Ee}=r.useConfig(),Ne=e.useSlots(),b=xe,P=e.computed({get(){return!!b.dataset&&b.dataset.length},set(o){return o}}),V=e.ref(null),G=e.ref(null),U=e.ref(null),O=e.ref(null),j=e.ref(null),H=e.ref(null),W=e.ref(0),J=e.ref(0),K=e.ref(0);e.onMounted(()=>{Q()}),e.onBeforeUnmount(()=>{O.value&&O.value.disconnect()});function Q(){if(r.objectIsEmpty(b.dataset)?r.error({componentName:"VueUiDonut",type:"dataset"}):b.dataset.forEach((o,u)=>{r.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values"]}).forEach(l=>{P.value=!1,r.error({componentName:"VueUiDonut",type:"datasetSerieAttribute",property:l,index:u})})}),t.value.responsive){const o=Ce.throttle(()=>{const{width:u,height:l}=Ce.useResponsive({chart:V.value,title:t.value.style.chart.title.text?G.value:null,legend:t.value.style.chart.legend.show?U.value:null,source:j.value,noTitle:H.value,padding:oe.value});requestAnimationFrame(()=>{n.value.width=u,n.value.height=l})});O.value=new ResizeObserver(o),O.value.observe(V.value.parentNode)}}const d=e.ref(r.createUid()),Pe=e.ref(null),z=e.ref(!1),D=e.ref(""),p=e.ref(null),Z=e.ref(0);function ee(){const o=_e.useNestedProp({userConfig:b.config,defaultConfig:Ee});return o.theme?{..._e.useNestedProp({userConfig:r.themes.vue_ui_donut[o.theme]||b.config,defaultConfig:o}),customPalette:r.themePalettes[o.theme]||r.palette}:o}const t=e.computed({get:()=>ee(),set:o=>o}),{userOptionsVisible:M,setUserOptionsVisibility:te,keepUserOptionState:le}=Ue.useUserOptionState({config:t.value}),{svgRef:Y}=He.useChartAccessibility({config:t.value.style.chart.title});e.watch(()=>b.config,o=>{t.value=ee(),M.value=!t.value.userOptions.showOnChartHover,Q(),W.value+=1,J.value+=1,K.value+=1,v.value.dataLabels.show=t.value.style.chart.layout.labels.dataLabels.show,v.value.showTable=t.value.table.show,v.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const oe=e.computed(()=>{const{top:o,right:u,bottom:l,left:a}=t.value.style.chart.padding;return{css:`padding:${o}px ${u}px ${l}px ${a}px`,top:o,right:u,bottom:l,left:a}}),{isPrinting:ae,isImaging:re,generatePdf:ne,generateImage:ue}=Be.usePrinter({elementId:`donut__${d.value}`,fileName:t.value.style.chart.title.text||"vue-ui-donut",options:t.value.userOptions.print}),Ve=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),se=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),v=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),n=e.ref({height:360,width:512}),F=e.computed(()=>{const o=t.value.style.chart.layout.donut.strokeWidth/512,u=Math.min(n.value.width,n.value.height)*o,l=u>y.value?y.value:u;return Math.max(l,3)}),ie=Se,x=e.computed(()=>b.dataset.map((o,u)=>({name:o.name,color:r.convertColorToHex(o.color)||se.value[u]||r.palette[u]||r.palette[u%r.palette.length],value:o.values.reduce((l,a)=>l+a,0),absoluteValues:o.values,comment:o.comment||"",patternIndex:u}))),g=e.ref(x.value);e.watch(()=>x.value,o=>g.value=o);function Fe(){return x.value.map(o=>({name:o.name,color:o.color,value:o.value}))}const w=e.ref([]),ce=e.ref(null),de=e.ref(null),$=e.ref(!1);function ve(o){const u=x.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(ce.value),g.value=g.value.map((f,R)=>o===R?{...f,value:s}:f),$.value=!1):($.value=!0,a+=s*.025,g.value=g.value.map((f,R)=>o===R?{...f,value:a}:f),ce.value=requestAnimationFrame(h))};w.value=w.value.filter(f=>f!==o);const s=u.value;h()}else if(w.value.length<x.value.length-1){let s=function(){a<l.value/100?(cancelAnimationFrame(de.value),w.value.push(o),g.value=g.value.map((h,f)=>o===f?{...h,value:0}:h),$.value=!1):($.value=!0,a/=1.1,g.value=g.value.map((h,f)=>o===f?{...h,value:a}:h),de.value=requestAnimationFrame(s))};s()}ie("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)))),he=e.computed(()=>b.dataset.map((o,u)=>({name:o.name,color:r.convertColorToHex(o.color)||se.value[u]||r.palette[u]||r.palette[u%r.palette.length],value:(o.values||[]).reduce((l,a)=>l+a,0),shape:"circle",patternIndex:u})).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:()=>!$.value&&ve(u),isSegregated:w.value.includes(u)}))),Le=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(n.value.width/3,n.value.height/3);return o<55?55:o}),c=e.computed(()=>r.makeDonut({series:C.value},n.value.width/2,n.value.height/2,y.value,y.value,1.99999,2,1,360,105.25,F.value)),i=e.computed(()=>{const o=Math.max(...C.value.map(l=>l.value)),u=C.value.map(l=>l.value/o);return r.createPolarAreas({series:u,center:{x:n.value.width/2,y:n.value.height/2},maxRadius:Math.min(n.value.width,n.value.height)/3})});function E(o){return o.x>n.value.width/2+6?"start":o.x<n.value.width/2-6?"end":"middle"}function Oe(o){return o.middlePoint.y>n.value.height/2?r.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:100,centerX:n.value.width/2,centerY:n.value.height/2}).y:r.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:0,centerX:n.value.width/2,centerY:n.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/ze(u);return isNaN(l)?0:r.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,l*100,r.dataLabel({v:l*100,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding}),{datapoint:o})}function ze(o){return[...o].map(u=>u.value).reduce((u,l)=>u+l,0)}const m=e.computed(()=>C.value.map(o=>o.value).reduce((o,u)=>o+u,0)),fe=e.computed(()=>m.value/C.value.length),ye=e.computed(()=>o=>$.value?o.proportion*100:o.value/m.value*100),I=e.ref(null),L=e.ref(!1);function pe({datapoint:o,relativeIndex:u,seriesIndex:l,show:a=!1}){I.value={datapoint:o,seriesIndex:l,config:t.value,series:x.value},z.value=a,p.value=u;let s="";const h=t.value.style.chart.tooltip.customFormat;if(L.value=!1,r.isFunction(h))try{const f=h({seriesIndex:l,datapoint:o,series:x.value,config:t.value});typeof f=="string"&&(D.value=f,L.value=!0)}catch{console.warn("Custom format cannot be applied."),L.value=!1}if(!L.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 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${o.color}"/>${Ne.pattern?`<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${d.value}_${l})"/>`:""}</svg>`,t.value.style.chart.tooltip.showValue&&(s+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.value.formatter,o.value,r.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 f=r.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,o.proportion*100,r.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>(${f})</span></div>`:s+=`<b>${f}</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>`),D.value=`<div>${s}</div>`}}function S(o){return t.value.useBlurOnHover&&![null,void 0].includes(p.value)&&p.value!==o?`url(#blur_${d.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]/m.value)?"-":B.value.body[s]/m.value*100]]),u=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=r.createCsvContent(u);r.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-donut"})})}const T=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>',r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:m.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],u=B.value.head.map((s,h)=>[{color:s.color,name:s.name},B.value.body[h],isNaN(B.value.body[h]/m.value)?"-":(B.value.body[h]/m.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}}),N=e.ref(!1);function Te(o){N.value=o,Z.value+=1}const ge=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent));function Xe(o){return o.toFixed(t.value.style.chart.legend.roundingPercentage).split("").map(u=>"-").join("")}function _(o,u){ie("selectDatapoint",{datapoint:o,index:u})}function ke(){v.value.showTable=!v.value.showTable}function be(){v.value.dataLabels.show=!v.value.dataLabels.show}function we(){v.value.showTooltip=!v.value.showTooltip}const X=e.ref(!1);function q(){X.value=!X.value}return $e({getData:Fe,generatePdf:ne,generateCsv:me,generateImage:ue,toggleTable:ke,toggleLabels:be,toggleTooltip:we,toggleAnnotator:q}),(o,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutChart",ref:V,class:e.normalizeClass(`vue-ui-donut ${N.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__${d.value}`,onMouseenter:u[6]||(u[6]=()=>e.unref(te)(!0)),onMouseleave:u[7]||(u[7]=()=>e.unref(te)(!1))},[t.value.userOptions.buttons.annotator&&e.unref(Y)?(e.openBlock(),e.createBlock(Ge._sfc_main,{key:0,color:t.value.style.chart.color,backgroundColor:t.value.style.chart.backgroundColor,active:X.value,svgRef:e.unref(Y),onClose:q},null,8,["color","backgroundColor","active","svgRef"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"userConfig",{},void 0,!0),Ve.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:H,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:G,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(De._sfc_main,{key:`title_${W.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&&P.value&&(e.unref(le)||e.unref(M))?(e.openBlock(),e.createBlock(Be.UserOptions,{ref_key:"details",ref:Pe,key:`user_option_${Z.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ae),isImaging:e.unref(re),uid:d.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:N.value,chartElement:V.value,position:t.value.userOptions.position,isTooltip:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:X.value,onToggleFullscreen:Te,onGeneratePdf:e.unref(ne),onGenerateCsv:me,onGenerateImage:e.unref(ue),onToggleTable:ke,onToggleLabels:be,onToggleTooltip:we,onToggleAnnotator:q,style:e.normalizeStyle({visibility:e.unref(le)?e.unref(M)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:a})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:a})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,o.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionLabels",{},void 0,!0)]),key:"6"}: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:"7"}: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:"8"}: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),P.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:Y,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":N.value,"vue-data-ui-fulscreen--off":!N.value}),viewBox:`0 0 ${n.value.width<=0?10:n.value.width} ${n.value.height<=0?10:n.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color};${oe.value.css}`)},[e.createVNode(Re._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:n.value.width<=0?10:n.value.width,height:n.value.height<=0?10:n.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,Qe)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock("defs",Ze,[t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("radialGradient",{key:0,id:`gradient_${d.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,tt),e.createElementVNode("stop",{offset:`${(1-F.value/y.value)*100}%`,"stop-color":e.unref(r.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,lt),e.createElementVNode("stop",{offset:`${(1-F.value/y.value/2)*100}%`,"stop-color":e.unref(r.setOpacity)("#FFFFFF",t.value.style.chart.gradientIntensity)},null,8,ot),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,at)],8,et)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock("defs",rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,a)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`polar_gradient_${a}_${d.value}`,cx:l.middlePoint.x/n.value.width*100+"%",cy:l.middlePoint.y/n.value.height*100+"%",r:"62%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.shiftHue)(c.value[a].color,.05),"stop-opacity":t.value.style.chart.gradientIntensity/100},null,8,ut),e.createElementVNode("stop",{offset:"100%","stop-color":c.value[a].color},null,8,st)],8,nt))),256))])):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${d.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${d.value}`},null,8,ct),u[8]||(u[8]=e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1))],8,it),e.createElementVNode("filter",{id:`shadow_${d.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,vt)],8,dt),e.createElementVNode("filter",{id:`drop_shadow_${d.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,ft)],8,ht)]),t.value.type==="classic"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(r.calcNutArrowPath)(l,{x:n.value.width/2,y:n.value.height/2},16,16,!1,!1,F.value,12,t.value.style.chart.layout.curvedMarkers),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:S(a)},null,8,yt)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:4},e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:n.value.width/2,centerY:n.value.height/2}).x,y1:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:n.value.width/2,centerY:n.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:S(a)},null,8,pt)):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:n.value.width/2,cy:n.value.height/2,r:y.value<=0?10:y.value,fill:t.value.style.chart.backgroundColor,filter:`url(#shadow_${d.value})`},null,8,mt)):e.createCommentVNode("",!0),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",gt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(o.$slots,"pattern",e.mergeProps({ref_for:!0},{...l,patternId:`pattern_${d.value}_${l.patternIndex}`}),void 0,!0)]))),256))])):e.createCommentVNode("",!0),m.value&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:7},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:l.arcSlice,fill:"#FFFFFF"},null,8,kt))),256)),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:`url(#pattern_${d.value}_${l.patternIndex})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:S(a)},null,8,wt))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:e.unref(r.setOpacity)(l.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:S(a)},null,8,Ct))),256))],64)):e.createCommentVNode("",!0),m.value&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:8},[c.value.length>1?(e.openBlock(),e.createElementBlock("g",Bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:i.value[a].path,fill:"#FFFFFF"},null,8,_t))),256)),t.value.style.chart.layout.donut.useShadow?(e.openBlock(),e.createElementBlock("g",xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.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_${d.value})`},null,8,$t))),256))])):e.createCommentVNode("",!0),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",St,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:`url(#pattern_${d.value}_${l.patternIndex})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:S(a)},null,8,Et))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.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}_${d.value})`:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:S(a)},null,8,Nt))),256))])):(e.openBlock(),e.createElementBlock("g",Pt,[o.$slots.pattern?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:n.value.width/2,cy:n.value.height/2,r:y.value,fill:`url(#pattern_${d.value}_${c.value[0].patternIndex})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth},null,8,Vt)):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:n.value.width/2,cy:n.value.height/2,r:y.value,fill:t.value.style.chart.useGradient?`url(#polar_gradient_0_${d.value})`:c.value[0].color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth},null,8,Ft)]))],64)):(e.openBlock(),e.createElementBlock("circle",{key:9,cx:n.value.width/2,cy:n.value.height/2,r:y.value<=0?10:y.value,fill:"transparent",stroke:t.value.style.chart.backgroundColor},null,8,Lt)),t.value.style.chart.useGradient&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("circle",{key:10,cx:n.value.width/2,cy:n.value.height/2,r:y.value<=0?10:y.value,fill:`url(#gradient_${d.value})`},null,8,Ot)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:11},[c.value.length>1||t.value.type==="classic"?(e.openBlock(),e.createElementBlock("g",zt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{d:t.value.type==="classic"?l.arcSlice:i.value[a].path,fill:p.value===a?"rgba(0,0,0,0.1)":"transparent",onMouseenter:s=>pe({datapoint:l,relativeIndex:a,seriesIndex:l.seriesIndex,show:!0}),onMouseleave:u[0]||(u[0]=s=>{z.value=!1,p.value=null}),onClick:s=>_(l,a)},null,40,Tt))),256))])):(e.openBlock(),e.createElementBlock("g",Xt,[e.createElementVNode("circle",{cx:n.value.width/2,cy:n.value.height/2,r:y.value,fill:p.value===o.i?"rgba(0,0,0,0.1)":"transparent",onMouseenter:u[1]||(u[1]=l=>pe({datapoint:c.value[0],relativeIndex:0,seriesIndex:c.value[0].seriesIndex,show:!0})),onMouseleave:u[2]||(u[2]=l=>{z.value=!1,p.value=null}),onClick:u[3]||(u[3]=l=>_(c.value[0],o.i))},null,40,Dt)]))],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:12},[t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:n.value.width/2,y:n.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,Mt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:n.value.width/2,y:n.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(r.applyDataLabel)(t.value.style.chart.layout.labels.hollow.total.value.formatter,m.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.hollow.total.value.prefix,v:m.value,s:t.value.style.chart.layout.labels.hollow.total.value.suffix}))),13,Yt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":"middle",x:n.value.width/2,y:n.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,At)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:3,"text-anchor":"middle",x:n.value.width/2,y:n.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($.value?"--":e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.hollow.average.value.formatter,fe.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.hollow.average.value.prefix,v:fe.value,s:t.value.style.chart.layout.labels.hollow.average.value.suffix,r:t.value.style.chart.layout.labels.hollow.average.value.rounding}))),13,It)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",{filter:S(a),class:e.normalizeClass({animated:t.value.useCssAnimation})},[t.value.style.chart.layout.labels.dataLabels.useLabelSlots?(e.openBlock(),e.createElementBlock("g",Rt,[(e.openBlock(),e.createElementBlock("foreignObject",{x:e.unref(r.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(r.calcMarkerOffsetX)(l).x-120:e.unref(r.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(r.calcMarkerOffsetX)(l).x-60:e.unref(r.calcMarkerOffsetX)(l).x,y:e.unref(r.calcMarkerOffsetY)(l)-(ge.value?20:0),width:"120",height:"60",style:{overflow:"visible"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"dataLabel",e.mergeProps({ref_for:!0},{datapoint:l,isBlur:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===a,isSafari:ge.value,isVisible:k(l)&&v.value.dataLabels.show,textAlign:e.unref(r.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(r.calcMarkerOffsetX)(l,!0,16).anchor,percentage:A(l,c.value)}),void 0,!0)])],8,Gt))])):(e.openBlock(),e.createElementBlock("g",Ut,[t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(r.calcMarkerOffsetX)(l).x,cy:e.unref(r.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(p.value)||p.value===a?"":`url(#blur_${d.value})`,onClick:s=>_(l,a)},null,8,jt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:n.value.width/2,centerY:n.value.height/2}).x,cy:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:n.value.width/2,centerY:n.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(p.value)||p.value===a?"":`url(#blur_${d.value})`,onClick:s=>_(l,a)},null,8,Ht)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":e.unref(r.calcMarkerOffsetX)(l,!0,12).anchor,x:e.unref(r.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(r.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=>_(l,a)},e.toDisplayString(A(l,c.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(r.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,Wt)):e.createCommentVNode("",!0),k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(r.calcMarkerOffsetX)(l).anchor,x:e.unref(r.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(r.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=>_(l,a)},e.toDisplayString(l.name),13,Jt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":E(i.value[a].middlePoint),x:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).x,y:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.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=>_(l,a)},e.toDisplayString(A(l,c.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(r.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,Kt)):e.createCommentVNode("",!0),k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":E(i.value[a].middlePoint),x:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).x,y:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.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=>_(l,a)},e.toDisplayString(l.name),13,Qt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),v.value.dataLabels.show&&t.value.style.chart.comments.show&&l.comment?(e.openBlock(),e.createElementBlock("g",Zt,[k(l)&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.value.style.chart.comments.offsetX+(e.unref(r.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(r.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width:e.unref(r.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(r.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width/2:e.unref(r.calcMarkerOffsetX)(l).x),y:e.unref(r.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(r.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(r.calcMarkerOffsetX)(l,!0,16).anchor}},void 0,!0)])],8,el)):e.createCommentVNode("",!0),k(l)&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:t.value.style.chart.comments.offsetX+(E(i.value[a].middlePoint)==="end"?e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).x-t.value.style.chart.comments.width:E(i.value[a].middlePoint)==="middle"?e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).x-t.value.style.chart.comments.width/2:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).x),y:Oe(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:E(i.value[a].middlePoint),flexAlign:E(i.value[a].middlePoint)}},void 0,!0)])],8,tl)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,qt))),256)),e.renderSlot(o.$slots,"svg",{svg:n.value},void 0,!0)],14,Ke)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ll,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ae)||e.unref(re)})),void 0,!0)])):e.createCommentVNode("",!0),P.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ie.default,{key:6,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC",strokeWidth:F.value*.8}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:U},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Ae.Legend,{key:`legend_${K.value}`,legendSet:he.value,config:Le.value,onClickMarker:u[4]||(u[4]=({i:l})=>ve(l))},e.createSlots({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(r.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(r.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",rl," ( "+e.toDisplayString(Xe(l.proportion*100))+" % ) ",1)):(e.openBlock(),e.createElementBlock("span",al," ("+e.toDisplayString(isNaN(l.value/m.value)?"-":e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,ye.value(l),e.unref(r.dataLabel)({v:ye.value(l),s:"%",r:t.value.style.chart.legend.roundingPercentage})))+") ",1))],12,ol)]),_:2},[o.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:l,index:a})=>[e.createVNode(je._sfc_main,{shape:l.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${d.value}_${a})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"legend",{legend:he.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:j,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Ye._sfc_main,{show:v.value.showTooltip&&z.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:V.value,content:D.value,isCustom:L.value,isFullscreen:N.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"]),P.value?(e.openBlock(),e.createBlock(qe.default,{key:8,hideDetails:"",config:{open:v.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(Me.DataTable,{key:`table_${J.value}`,colNames:T.value.colNames,head:T.value.head,body:T.value.body,config:T.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=>v.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,nl)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name?l.name:isNaN(Number(l))?l.includes("%")?l:e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,l,e.unref(r.dataLabel)({v:l,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding})):e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l,e.unref(r.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,Je))}},sl=We._export_sfc(ul,[["__scopeId","data-v-f24dec2a"]]);exports.default=sl;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DgIVCHLv.cjs"),Ce=require("./useResponsive-DQmBAoBf.cjs"),De=require("./Title-Bae0QJu7.cjs"),Be=require("./usePrinter-B2xVvtiy.cjs"),Me=require("./DataTable-CGucPqAQ.cjs"),Ye=require("./Tooltip-CfqYTd5O.cjs"),Ae=require("./Legend-B9aoKeq3.cjs"),Ie=require("./vue-ui-skeleton-DeEGdJEn.cjs"),qe=require("./vue-ui-accordion-DE1isSE9.cjs"),_e=require("./useNestedProp-CCR03NVM.cjs"),Re=require("./PackageVersion-C2bjLIu9.cjs"),Ge=require("./PenAndPaper-CJIFAI78.cjs"),Ue=require("./useUserOptionState-BgepsfED.cjs"),je=require("./Shape-Cn2RU1NY.cjs"),He=require("./useChartAccessibility-Cm7nkzTG.cjs"),We=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Je=["id"],Ke=["xmlns","viewBox"],Qe=["width","height"],Ze={key:1},et=["id"],tt=["stop-color"],lt=["offset","stop-color"],ot=["offset","stop-color"],at=["stop-color"],rt={key:2},nt=["id","cx","cy"],ut=["stop-color","stop-opacity"],st=["stop-color"],it=["id"],ct=["id"],dt=["id"],vt=["flood-color"],ht=["id"],ft=["flood-color"],yt=["d","stroke","filter"],pt=["x1","y1","x2","y2","stroke","filter"],mt=["cx","cy","r","fill","filter"],gt={key:6},kt=["stroke","d"],bt={key:0},wt=["d","fill","stroke","stroke-width","filter"],Ct=["d","fill","stroke","stroke-width","filter"],Bt={key:0},_t=["stroke","d"],xt={key:0},$t=["d","stroke","stroke-width","filter"],St={key:1},Et=["d","fill","stroke","stroke-width","filter"],Nt=["d","fill","stroke","stroke-width","filter"],Pt={key:1},Vt=["cx","cy","r","fill","stroke","stroke-width"],Ft=["cx","cy","r","fill","stroke","stroke-width"],Lt=["cx","cy","r","stroke"],Ot=["cx","cy","r","fill"],zt={key:0},Tt=["d","fill","onMouseenter","onClick"],Xt={key:1},Dt=["cx","cy","r","fill"],Mt=["x","y","fill","font-size"],Yt=["x","y","fill","font-size"],At=["x","y","fill","font-size"],It=["x","y","fill","font-size"],qt=["filter"],Rt={key:0},Gt=["x","y"],Ut={key:1},jt=["cx","cy","fill","stroke","filter","onClick"],Ht=["cx","cy","fill","stroke","filter","onClick"],Wt=["text-anchor","x","y","fill","font-size","onClick"],Jt=["text-anchor","x","y","fill","font-size","onClick"],Kt=["text-anchor","x","y","fill","font-size","onClick"],Qt=["text-anchor","x","y","fill","font-size","onClick"],Zt={key:2},el=["x","y","width"],tl=["x","y","width"],ll={key:5,class:"vue-data-ui-watermark"},ol=["onClick"],al={key:0,style:{"font-variant-numeric":"tabular-nums"}},rl={key:1},nl=["innerHTML"],ul={__name:"vue-ui-donut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(xe,{expose:$e,emit:Se}){const{vue_ui_donut:Ee}=r.useConfig(),Ne=e.useSlots(),b=xe,P=e.computed({get(){return!!b.dataset&&b.dataset.length},set(o){return o}}),V=e.ref(null),G=e.ref(null),U=e.ref(null),O=e.ref(null),j=e.ref(null),H=e.ref(null),W=e.ref(0),J=e.ref(0),K=e.ref(0);e.onMounted(()=>{Q()}),e.onBeforeUnmount(()=>{O.value&&O.value.disconnect()});function Q(){if(r.objectIsEmpty(b.dataset)?r.error({componentName:"VueUiDonut",type:"dataset"}):b.dataset.forEach((o,u)=>{r.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values"]}).forEach(l=>{P.value=!1,r.error({componentName:"VueUiDonut",type:"datasetSerieAttribute",property:l,index:u})})}),t.value.responsive){const o=Ce.throttle(()=>{const{width:u,height:l}=Ce.useResponsive({chart:V.value,title:t.value.style.chart.title.text?G.value:null,legend:t.value.style.chart.legend.show?U.value:null,source:j.value,noTitle:H.value,padding:oe.value});requestAnimationFrame(()=>{n.value.width=u,n.value.height=l})});O.value=new ResizeObserver(o),O.value.observe(V.value.parentNode)}}const d=e.ref(r.createUid()),Pe=e.ref(null),z=e.ref(!1),D=e.ref(""),p=e.ref(null),Z=e.ref(0);function ee(){const o=_e.useNestedProp({userConfig:b.config,defaultConfig:Ee});return o.theme?{..._e.useNestedProp({userConfig:r.themes.vue_ui_donut[o.theme]||b.config,defaultConfig:o}),customPalette:r.themePalettes[o.theme]||r.palette}:o}const t=e.computed({get:()=>ee(),set:o=>o}),{userOptionsVisible:M,setUserOptionsVisibility:te,keepUserOptionState:le}=Ue.useUserOptionState({config:t.value}),{svgRef:Y}=He.useChartAccessibility({config:t.value.style.chart.title});e.watch(()=>b.config,o=>{t.value=ee(),M.value=!t.value.userOptions.showOnChartHover,Q(),W.value+=1,J.value+=1,K.value+=1,v.value.dataLabels.show=t.value.style.chart.layout.labels.dataLabels.show,v.value.showTable=t.value.table.show,v.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const oe=e.computed(()=>{const{top:o,right:u,bottom:l,left:a}=t.value.style.chart.padding;return{css:`padding:${o}px ${u}px ${l}px ${a}px`,top:o,right:u,bottom:l,left:a}}),{isPrinting:ae,isImaging:re,generatePdf:ne,generateImage:ue}=Be.usePrinter({elementId:`donut__${d.value}`,fileName:t.value.style.chart.title.text||"vue-ui-donut",options:t.value.userOptions.print}),Ve=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),se=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),v=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),n=e.ref({height:360,width:512}),F=e.computed(()=>{const o=t.value.style.chart.layout.donut.strokeWidth/512,u=Math.min(n.value.width,n.value.height)*o,l=u>y.value?y.value:u;return Math.max(l,3)}),ie=Se,x=e.computed(()=>b.dataset.map((o,u)=>({name:o.name,color:r.convertColorToHex(o.color)||se.value[u]||r.palette[u]||r.palette[u%r.palette.length],value:o.values.reduce((l,a)=>l+a,0),absoluteValues:o.values,comment:o.comment||"",patternIndex:u}))),g=e.ref(x.value);e.watch(()=>x.value,o=>g.value=o);function Fe(){return x.value.map(o=>({name:o.name,color:o.color,value:o.value}))}const w=e.ref([]),ce=e.ref(null),de=e.ref(null),$=e.ref(!1);function ve(o){const u=x.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(ce.value),g.value=g.value.map((f,R)=>o===R?{...f,value:s}:f),$.value=!1):($.value=!0,a+=s*.025,g.value=g.value.map((f,R)=>o===R?{...f,value:a}:f),ce.value=requestAnimationFrame(h))};w.value=w.value.filter(f=>f!==o);const s=u.value;h()}else if(w.value.length<x.value.length-1){let s=function(){a<l.value/100?(cancelAnimationFrame(de.value),w.value.push(o),g.value=g.value.map((h,f)=>o===f?{...h,value:0}:h),$.value=!1):($.value=!0,a/=1.1,g.value=g.value.map((h,f)=>o===f?{...h,value:a}:h),de.value=requestAnimationFrame(s))};s()}ie("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)))),he=e.computed(()=>b.dataset.map((o,u)=>({name:o.name,color:r.convertColorToHex(o.color)||se.value[u]||r.palette[u]||r.palette[u%r.palette.length],value:(o.values||[]).reduce((l,a)=>l+a,0),shape:"circle",patternIndex:u})).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:()=>!$.value&&ve(u),isSegregated:w.value.includes(u)}))),Le=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(n.value.width/3,n.value.height/3);return o<55?55:o}),c=e.computed(()=>r.makeDonut({series:C.value},n.value.width/2,n.value.height/2,y.value,y.value,1.99999,2,1,360,105.25,F.value)),i=e.computed(()=>{const o=Math.max(...C.value.map(l=>l.value)),u=C.value.map(l=>l.value/o);return r.createPolarAreas({series:u,center:{x:n.value.width/2,y:n.value.height/2},maxRadius:Math.min(n.value.width,n.value.height)/3})});function E(o){return o.x>n.value.width/2+6?"start":o.x<n.value.width/2-6?"end":"middle"}function Oe(o){return o.middlePoint.y>n.value.height/2?r.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:100,centerX:n.value.width/2,centerY:n.value.height/2}).y:r.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:0,centerX:n.value.width/2,centerY:n.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/ze(u);return isNaN(l)?0:r.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,l*100,r.dataLabel({v:l*100,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding}),{datapoint:o})}function ze(o){return[...o].map(u=>u.value).reduce((u,l)=>u+l,0)}const m=e.computed(()=>C.value.map(o=>o.value).reduce((o,u)=>o+u,0)),fe=e.computed(()=>m.value/C.value.length),ye=e.computed(()=>o=>$.value?o.proportion*100:o.value/m.value*100),I=e.ref(null),L=e.ref(!1);function pe({datapoint:o,relativeIndex:u,seriesIndex:l,show:a=!1}){I.value={datapoint:o,seriesIndex:l,config:t.value,series:x.value},z.value=a,p.value=u;let s="";const h=t.value.style.chart.tooltip.customFormat;if(L.value=!1,r.isFunction(h))try{const f=h({seriesIndex:l,datapoint:o,series:x.value,config:t.value});typeof f=="string"&&(D.value=f,L.value=!0)}catch{console.warn("Custom format cannot be applied."),L.value=!1}if(!L.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 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${o.color}"/>${Ne.pattern?`<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${d.value}_${l})"/>`:""}</svg>`,t.value.style.chart.tooltip.showValue&&(s+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.value.formatter,o.value,r.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 f=r.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,o.proportion*100,r.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>(${f})</span></div>`:s+=`<b>${f}</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>`),D.value=`<div>${s}</div>`}}function S(o){return t.value.useBlurOnHover&&![null,void 0].includes(p.value)&&p.value!==o?`url(#blur_${d.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]/m.value)?"-":B.value.body[s]/m.value*100]]),u=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=r.createCsvContent(u);r.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-donut"})})}const T=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>',r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:m.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],u=B.value.head.map((s,h)=>[{color:s.color,name:s.name},B.value.body[h],isNaN(B.value.body[h]/m.value)?"-":(B.value.body[h]/m.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}}),N=e.ref(!1);function Te(o){N.value=o,Z.value+=1}const ge=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent));function Xe(o){return o.toFixed(t.value.style.chart.legend.roundingPercentage).split("").map(u=>"-").join("")}function _(o,u){ie("selectDatapoint",{datapoint:o,index:u})}function ke(){v.value.showTable=!v.value.showTable}function be(){v.value.dataLabels.show=!v.value.dataLabels.show}function we(){v.value.showTooltip=!v.value.showTooltip}const X=e.ref(!1);function q(){X.value=!X.value}return $e({getData:Fe,generatePdf:ne,generateCsv:me,generateImage:ue,toggleTable:ke,toggleLabels:be,toggleTooltip:we,toggleAnnotator:q}),(o,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutChart",ref:V,class:e.normalizeClass(`vue-ui-donut ${N.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__${d.value}`,onMouseenter:u[6]||(u[6]=()=>e.unref(te)(!0)),onMouseleave:u[7]||(u[7]=()=>e.unref(te)(!1))},[t.value.userOptions.buttons.annotator&&e.unref(Y)?(e.openBlock(),e.createBlock(Ge._sfc_main,{key:0,color:t.value.style.chart.color,backgroundColor:t.value.style.chart.backgroundColor,active:X.value,svgRef:e.unref(Y),onClose:q},null,8,["color","backgroundColor","active","svgRef"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"userConfig",{},void 0,!0),Ve.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:H,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:G,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(De._sfc_main,{key:`title_${W.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&&P.value&&(e.unref(le)||e.unref(M))?(e.openBlock(),e.createBlock(Be.UserOptions,{ref_key:"details",ref:Pe,key:`user_option_${Z.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ae),isImaging:e.unref(re),uid:d.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:N.value,chartElement:V.value,position:t.value.userOptions.position,isTooltip:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:X.value,onToggleFullscreen:Te,onGeneratePdf:e.unref(ne),onGenerateCsv:me,onGenerateImage:e.unref(ue),onToggleTable:ke,onToggleLabels:be,onToggleTooltip:we,onToggleAnnotator:q,style:e.normalizeStyle({visibility:e.unref(le)?e.unref(M)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:a})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:a})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,o.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionLabels",{},void 0,!0)]),key:"6"}: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:"7"}: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:"8"}: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),P.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:Y,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":N.value,"vue-data-ui-fulscreen--off":!N.value}),viewBox:`0 0 ${n.value.width<=0?10:n.value.width} ${n.value.height<=0?10:n.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color};${oe.value.css}`)},[e.createVNode(Re._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:n.value.width<=0?10:n.value.width,height:n.value.height<=0?10:n.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,Qe)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock("defs",Ze,[t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("radialGradient",{key:0,id:`gradient_${d.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,tt),e.createElementVNode("stop",{offset:`${(1-F.value/y.value)*100}%`,"stop-color":e.unref(r.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,lt),e.createElementVNode("stop",{offset:`${(1-F.value/y.value/2)*100}%`,"stop-color":e.unref(r.setOpacity)("#FFFFFF",t.value.style.chart.gradientIntensity)},null,8,ot),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,at)],8,et)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock("defs",rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,a)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`polar_gradient_${a}_${d.value}`,cx:l.middlePoint.x/n.value.width*100+"%",cy:l.middlePoint.y/n.value.height*100+"%",r:"62%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.shiftHue)(c.value[a].color,.05),"stop-opacity":t.value.style.chart.gradientIntensity/100},null,8,ut),e.createElementVNode("stop",{offset:"100%","stop-color":c.value[a].color},null,8,st)],8,nt))),256))])):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${d.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${d.value}`},null,8,ct),u[8]||(u[8]=e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1))],8,it),e.createElementVNode("filter",{id:`shadow_${d.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,vt)],8,dt),e.createElementVNode("filter",{id:`drop_shadow_${d.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,ft)],8,ht)]),t.value.type==="classic"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(r.calcNutArrowPath)(l,{x:n.value.width/2,y:n.value.height/2},16,16,!1,!1,F.value,12,t.value.style.chart.layout.curvedMarkers),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:S(a)},null,8,yt)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:4},e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:n.value.width/2,centerY:n.value.height/2}).x,y1:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:n.value.width/2,centerY:n.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:S(a)},null,8,pt)):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:n.value.width/2,cy:n.value.height/2,r:y.value<=0?10:y.value,fill:t.value.style.chart.backgroundColor,filter:`url(#shadow_${d.value})`},null,8,mt)):e.createCommentVNode("",!0),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",gt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(o.$slots,"pattern",e.mergeProps({ref_for:!0},{...l,patternId:`pattern_${d.value}_${l.patternIndex}`}),void 0,!0)]))),256))])):e.createCommentVNode("",!0),m.value&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:7},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:l.arcSlice,fill:"#FFFFFF"},null,8,kt))),256)),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:`url(#pattern_${d.value}_${l.patternIndex})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:S(a)},null,8,wt))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:e.unref(r.setOpacity)(l.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:S(a)},null,8,Ct))),256))],64)):e.createCommentVNode("",!0),m.value&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:8},[c.value.length>1?(e.openBlock(),e.createElementBlock("g",Bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:i.value[a].path,fill:"#FFFFFF"},null,8,_t))),256)),t.value.style.chart.layout.donut.useShadow?(e.openBlock(),e.createElementBlock("g",xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.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_${d.value})`},null,8,$t))),256))])):e.createCommentVNode("",!0),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",St,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:`url(#pattern_${d.value}_${l.patternIndex})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:S(a)},null,8,Et))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.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}_${d.value})`:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:S(a)},null,8,Nt))),256))])):(e.openBlock(),e.createElementBlock("g",Pt,[o.$slots.pattern?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:n.value.width/2,cy:n.value.height/2,r:y.value,fill:`url(#pattern_${d.value}_${c.value[0].patternIndex})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth},null,8,Vt)):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:n.value.width/2,cy:n.value.height/2,r:y.value,fill:t.value.style.chart.useGradient?`url(#polar_gradient_0_${d.value})`:c.value[0].color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth},null,8,Ft)]))],64)):(e.openBlock(),e.createElementBlock("circle",{key:9,cx:n.value.width/2,cy:n.value.height/2,r:y.value<=0?10:y.value,fill:"transparent",stroke:t.value.style.chart.backgroundColor},null,8,Lt)),t.value.style.chart.useGradient&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("circle",{key:10,cx:n.value.width/2,cy:n.value.height/2,r:y.value<=0?10:y.value,fill:`url(#gradient_${d.value})`},null,8,Ot)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:11},[c.value.length>1||t.value.type==="classic"?(e.openBlock(),e.createElementBlock("g",zt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{d:t.value.type==="classic"?l.arcSlice:i.value[a].path,fill:p.value===a?"rgba(0,0,0,0.1)":"transparent",onMouseenter:s=>pe({datapoint:l,relativeIndex:a,seriesIndex:l.seriesIndex,show:!0}),onMouseleave:u[0]||(u[0]=s=>{z.value=!1,p.value=null}),onClick:s=>_(l,a)},null,40,Tt))),256))])):(e.openBlock(),e.createElementBlock("g",Xt,[e.createElementVNode("circle",{cx:n.value.width/2,cy:n.value.height/2,r:y.value,fill:p.value===o.i?"rgba(0,0,0,0.1)":"transparent",onMouseenter:u[1]||(u[1]=l=>pe({datapoint:c.value[0],relativeIndex:0,seriesIndex:c.value[0].seriesIndex,show:!0})),onMouseleave:u[2]||(u[2]=l=>{z.value=!1,p.value=null}),onClick:u[3]||(u[3]=l=>_(c.value[0],o.i))},null,40,Dt)]))],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:12},[t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:n.value.width/2,y:n.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,Mt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:n.value.width/2,y:n.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(r.applyDataLabel)(t.value.style.chart.layout.labels.hollow.total.value.formatter,m.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.hollow.total.value.prefix,v:m.value,s:t.value.style.chart.layout.labels.hollow.total.value.suffix}))),13,Yt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":"middle",x:n.value.width/2,y:n.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,At)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:3,"text-anchor":"middle",x:n.value.width/2,y:n.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($.value?"--":e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.hollow.average.value.formatter,fe.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.hollow.average.value.prefix,v:fe.value,s:t.value.style.chart.layout.labels.hollow.average.value.suffix,r:t.value.style.chart.layout.labels.hollow.average.value.rounding}))),13,It)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",{filter:S(a),class:e.normalizeClass({animated:t.value.useCssAnimation})},[t.value.style.chart.layout.labels.dataLabels.useLabelSlots?(e.openBlock(),e.createElementBlock("g",Rt,[(e.openBlock(),e.createElementBlock("foreignObject",{x:e.unref(r.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(r.calcMarkerOffsetX)(l).x-120:e.unref(r.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(r.calcMarkerOffsetX)(l).x-60:e.unref(r.calcMarkerOffsetX)(l).x,y:e.unref(r.calcMarkerOffsetY)(l)-(ge.value?20:0),width:"120",height:"60",style:{overflow:"visible"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"dataLabel",e.mergeProps({ref_for:!0},{datapoint:l,isBlur:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===a,isSafari:ge.value,isVisible:k(l)&&v.value.dataLabels.show,textAlign:e.unref(r.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(r.calcMarkerOffsetX)(l,!0,16).anchor,percentage:A(l,c.value)}),void 0,!0)])],8,Gt))])):(e.openBlock(),e.createElementBlock("g",Ut,[t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(r.calcMarkerOffsetX)(l).x,cy:e.unref(r.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(p.value)||p.value===a?"":`url(#blur_${d.value})`,onClick:s=>_(l,a)},null,8,jt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:n.value.width/2,centerY:n.value.height/2}).x,cy:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:n.value.width/2,centerY:n.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(p.value)||p.value===a?"":`url(#blur_${d.value})`,onClick:s=>_(l,a)},null,8,Ht)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":e.unref(r.calcMarkerOffsetX)(l,!0,12).anchor,x:e.unref(r.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(r.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=>_(l,a)},e.toDisplayString(A(l,c.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(r.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,Wt)):e.createCommentVNode("",!0),k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(r.calcMarkerOffsetX)(l).anchor,x:e.unref(r.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(r.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=>_(l,a)},e.toDisplayString(l.name),13,Jt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":E(i.value[a].middlePoint),x:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).x,y:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.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=>_(l,a)},e.toDisplayString(A(l,c.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(r.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,Kt)):e.createCommentVNode("",!0),k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":E(i.value[a].middlePoint),x:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).x,y:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.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=>_(l,a)},e.toDisplayString(l.name),13,Qt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),v.value.dataLabels.show&&t.value.style.chart.comments.show&&l.comment?(e.openBlock(),e.createElementBlock("g",Zt,[k(l)&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.value.style.chart.comments.offsetX+(e.unref(r.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(r.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width:e.unref(r.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(r.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width/2:e.unref(r.calcMarkerOffsetX)(l).x),y:e.unref(r.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(r.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(r.calcMarkerOffsetX)(l,!0,16).anchor}},void 0,!0)])],8,el)):e.createCommentVNode("",!0),k(l)&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:t.value.style.chart.comments.offsetX+(E(i.value[a].middlePoint)==="end"?e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).x-t.value.style.chart.comments.width:E(i.value[a].middlePoint)==="middle"?e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).x-t.value.style.chart.comments.width/2:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).x),y:Oe(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:E(i.value[a].middlePoint),flexAlign:E(i.value[a].middlePoint)}},void 0,!0)])],8,tl)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,qt))),256)),e.renderSlot(o.$slots,"svg",{svg:n.value},void 0,!0)],14,Ke)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ll,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ae)||e.unref(re)})),void 0,!0)])):e.createCommentVNode("",!0),P.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ie.default,{key:6,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC",strokeWidth:F.value*.8}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:U},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Ae.Legend,{key:`legend_${K.value}`,legendSet:he.value,config:Le.value,onClickMarker:u[4]||(u[4]=({i:l})=>ve(l))},e.createSlots({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(r.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(r.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",rl," ( "+e.toDisplayString(Xe(l.proportion*100))+" % ) ",1)):(e.openBlock(),e.createElementBlock("span",al," ("+e.toDisplayString(isNaN(l.value/m.value)?"-":e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,ye.value(l),e.unref(r.dataLabel)({v:ye.value(l),s:"%",r:t.value.style.chart.legend.roundingPercentage})))+") ",1))],12,ol)]),_:2},[o.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:l,index:a})=>[e.createVNode(je._sfc_main,{shape:l.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${d.value}_${a})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"legend",{legend:he.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:j,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Ye._sfc_main,{show:v.value.showTooltip&&z.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:V.value,content:D.value,isCustom:L.value,isFullscreen:N.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"]),P.value?(e.openBlock(),e.createBlock(qe.default,{key:8,hideDetails:"",config:{open:v.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(Me.DataTable,{key:`table_${J.value}`,colNames:T.value.colNames,head:T.value.head,body:T.value.body,config:T.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=>v.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,nl)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name?l.name:isNaN(Number(l))?l.includes("%")?l:e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,l,e.unref(r.dataLabel)({v:l,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding})):e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l,e.unref(r.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,Je))}},sl=We._export_sfc(ul,[["__scopeId","data-v-f24dec2a"]]);exports.default=sl;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { computed as x, ref as b, onMounted as vt, watch as Ue, createElementBlock as o, openBlock as a, unref as c, normalizeStyle as J, normalizeClass as O, createBlock as D, createCommentVNode as v, renderSlot as S, createSlots as dt, withCtx as $, normalizeProps as B, guardReactiveProps as G, createVNode as ht, createElementVNode as y, Fragment as k, renderList as _, toDisplayString as m, withKeys as yt, createTextVNode as We, nextTick as j } from "vue";
|
|
2
|
-
import { u as ft, o as gt, e as Q, g as bt, c as Xe, t as mt, p as ee, a as pt, C as Be, b as xt, d as ve, H as kt, D as Ge, m as de, X as _t, s as Y, E as Ct, i as he, f as te, j as je, k as Ye, n as le, q as wt, r as zt, I as qe } from "./index-
|
|
3
|
-
import { _ as Lt } from "./Title-
|
|
4
|
-
import { u as St, U as $t } from "./usePrinter-
|
|
5
|
-
import { D as At } from "./DataTable-
|
|
6
|
-
import { L as It } from "./Legend-
|
|
7
|
-
import Nt from "./vue-ui-skeleton-
|
|
8
|
-
import { S as Ft } from "./Slicer-
|
|
9
|
-
import Ot from "./vue-ui-accordion-
|
|
10
|
-
import { u as Ke } from "./useNestedProp-
|
|
11
|
-
import { _ as Pt } from "./PackageVersion-
|
|
12
|
-
import { _ as Dt } from "./PenAndPaper-
|
|
2
|
+
import { u as ft, o as gt, e as Q, g as bt, c as Xe, t as mt, p as ee, a as pt, C as Be, b as xt, d as ve, H as kt, D as Ge, m as de, X as _t, s as Y, E as Ct, i as he, f as te, j as je, k as Ye, n as le, q as wt, r as zt, I as qe } from "./index-BI6O7K58.js";
|
|
3
|
+
import { _ as Lt } from "./Title-CDYBDpu3.js";
|
|
4
|
+
import { u as St, U as $t } from "./usePrinter-Jr3eyr8H.js";
|
|
5
|
+
import { D as At } from "./DataTable-Dk-94kK2.js";
|
|
6
|
+
import { L as It } from "./Legend-Cx6NYPTA.js";
|
|
7
|
+
import Nt from "./vue-ui-skeleton-Dxm7rqic.js";
|
|
8
|
+
import { S as Ft } from "./Slicer-yki6JqTB.js";
|
|
9
|
+
import Ot from "./vue-ui-accordion-ldF7KsjV.js";
|
|
10
|
+
import { u as Ke } from "./useNestedProp-Cvz4MkSy.js";
|
|
11
|
+
import { _ as Pt } from "./PackageVersion-BdNfnIm2.js";
|
|
12
|
+
import { _ as Dt } from "./PenAndPaper-wrVNMaG8.js";
|
|
13
13
|
import { u as Et } from "./useUserOptionState-BIvW1Kz7.js";
|
|
14
14
|
import { u as Tt } from "./useChartAccessibility-BWojgys7.js";
|
|
15
15
|
import { _ as Vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|