vue-data-ui 2.4.54 → 2.4.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DeKmbj7B.js → Arrow-D9oPJhO0.js} +1 -1
- package/dist/{Arrow-B10uy-UU.cjs → Arrow-Lu-rJXGl.cjs} +1 -1
- package/dist/{BaseIcon-DtUsvREa.cjs → BaseIcon-DxRKjbz1.cjs} +1 -1
- package/dist/{BaseIcon-Ca67-Cyv.js → BaseIcon-mHeKnX4-.js} +1 -1
- package/dist/{DataTable-BgiV2CfC.js → DataTable-D8MTezlM.js} +2 -2
- package/dist/{DataTable-CwiudM8v.cjs → DataTable-rMMvio1U.cjs} +1 -1
- package/dist/{Legend-TTzHdVeD.cjs → Legend-Ba34oTdO.cjs} +1 -1
- package/dist/{Legend-C1rLFGjN.js → Legend-wr5XLSfL.js} +1 -1
- package/dist/{PackageVersion-B_ULr99C.cjs → PackageVersion-BJi2ywG9.cjs} +1 -1
- package/dist/{PackageVersion-Bp3Bq9Jn.js → PackageVersion-xnKIqody.js} +1 -1
- package/dist/{PenAndPaper-DFNDy1y9.cjs → PenAndPaper-CX6N7FR7.cjs} +1 -1
- package/dist/{PenAndPaper-Cu0Ae0MN.js → PenAndPaper-iek0aH4r.js} +3 -3
- package/dist/{Shape-GWT6Hhcc.cjs → Shape-9v-w5i6N.cjs} +1 -1
- package/dist/{Shape-B_GK3n6y.js → Shape-B_lWjwmP.js} +1 -1
- package/dist/{Slicer-DyNqrpR4.cjs → Slicer--m1nOwbO.cjs} +1 -1
- package/dist/{Slicer-Bi4zZd-A.js → Slicer-Bwg4WzZf.js} +2 -2
- package/dist/{Title-Z93_y2gr.cjs → Title-BWhYDGb-.cjs} +1 -1
- package/dist/{Title-DPlURQtx.js → Title-BecmraNn.js} +1 -1
- package/dist/{Tooltip-C7wb_p0L.js → Tooltip-BZYApG0d.js} +1 -1
- package/dist/{Tooltip-DVfgJ6mM.cjs → Tooltip-cPxZzSgr.cjs} +1 -1
- package/dist/{index-BdlNqn9B.cjs → index-DGcOW0vL.cjs} +1 -1
- package/dist/{index-DH1CMY7m.js → index-Dhlyke5j.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-DDvMHRIf.cjs → useNestedProp-C9KmUVBy.cjs} +1 -1
- package/dist/{useNestedProp-DBnFzAfW.js → useNestedProp-D9eTQKze.js} +1 -1
- package/dist/{usePrinter-C0N1CiBZ.js → usePrinter-BnBk8gnl.js} +1 -1
- package/dist/{usePrinter-DtSijS1B.cjs → usePrinter-DpEuGyLP.cjs} +1 -1
- package/dist/{vue-data-ui-ByVHf_kl.cjs → vue-data-ui-CGGZHtx3.cjs} +1 -1
- package/dist/{vue-data-ui-CXxSOk_7.js → vue-data-ui-aSR5-7gp.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CVe5jYPi.js → vue-ui-3d-bar-D9pXx9fJ.js} +9 -9
- package/dist/{vue-ui-3d-bar-B7WLQ4Xw.cjs → vue-ui-3d-bar-Dm2wnS6e.cjs} +1 -1
- package/dist/{vue-ui-accordion-azKgDbn4.js → vue-ui-accordion-CGpOsWNN.js} +3 -3
- package/dist/{vue-ui-accordion-Dm8myRhk.cjs → vue-ui-accordion-mtZIFAv9.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BLq5EYnh.cjs → vue-ui-age-pyramid-BcMERmA5.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BW4_XPjw.js → vue-ui-age-pyramid-dbX4WaaY.js} +10 -10
- package/dist/{vue-ui-annotator-BIiP8tfh.cjs → vue-ui-annotator-CY-rCEDB.cjs} +1 -1
- package/dist/{vue-ui-annotator-BXNCscLc.js → vue-ui-annotator-DfRkh1D_.js} +1 -1
- package/dist/{vue-ui-bullet-zqDSLDqP.js → vue-ui-bullet-CUoiQcb5.js} +8 -8
- package/dist/{vue-ui-bullet-oszrU2rQ.cjs → vue-ui-bullet-jsXAmYsX.cjs} +1 -1
- package/dist/{vue-ui-candlestick-EY9e1UXf.cjs → vue-ui-candlestick-BD58hsql.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DlhrXggi.js → vue-ui-candlestick-BLIICgdz.js} +11 -11
- package/dist/{vue-ui-carousel-table-DpN88ZNk.cjs → vue-ui-carousel-table-CCmB_BJ7.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-7w6OlJGJ.js → vue-ui-carousel-table-NUliqwxA.js} +4 -4
- package/dist/{vue-ui-chestnut-jHgtDbmU.js → vue-ui-chestnut-DIPBJ5D2.js} +8 -8
- package/dist/{vue-ui-chestnut-DUceRFNk.cjs → vue-ui-chestnut-vivMozHy.cjs} +1 -1
- package/dist/{vue-ui-cursor-Cq1HIpIa.cjs → vue-ui-cursor-Cgv_2p2T.cjs} +1 -1
- package/dist/{vue-ui-cursor-Dkndm06c.js → vue-ui-cursor-CzLtzn7N.js} +2 -2
- package/dist/{vue-ui-dashboard-NZKZnvIp.cjs → vue-ui-dashboard-CtlrjFxl.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B6_Xkd1u.js → vue-ui-dashboard-DqZVcLlQ.js} +2 -2
- package/dist/{vue-ui-digits-ZFMtrfsc.js → vue-ui-digits-CGFznMkY.js} +2 -2
- package/dist/{vue-ui-digits-DHGYQ4mk.cjs → vue-ui-digits-e1HQVXb9.cjs} +1 -1
- package/dist/{vue-ui-donut-D3Yw-xVC.js → vue-ui-donut-DmLq2iWK.js} +16 -16
- package/dist/{vue-ui-donut-evolution-CzQo7feu.cjs → vue-ui-donut-evolution-4odFZbUM.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-kzFgoErC.js → vue-ui-donut-evolution-DpollzkH.js} +11 -11
- package/dist/vue-ui-donut-z2eOcEI5.cjs +1 -0
- package/dist/{vue-ui-dumbbell-LcWHXAvv.js → vue-ui-dumbbell-DLr4Lh3u.js} +10 -10
- package/dist/{vue-ui-dumbbell-qBYKyZL0.cjs → vue-ui-dumbbell-i7E-B6zN.cjs} +1 -1
- package/dist/{vue-ui-flow-RQrUlBZx.cjs → vue-ui-flow-BuYhmRed.cjs} +1 -1
- package/dist/{vue-ui-flow-CM2CzG9l.js → vue-ui-flow-CosxAYPJ.js} +9 -9
- package/dist/{vue-ui-funnel-CBZO8HbM.cjs → vue-ui-funnel-BNPISgC0.cjs} +1 -1
- package/dist/{vue-ui-funnel-oJgYKMnU.js → vue-ui-funnel-C_2YAtFj.js} +8 -8
- package/dist/{vue-ui-galaxy-C2Y_DDJB.js → vue-ui-galaxy-D1cWyHG9.js} +11 -11
- package/dist/{vue-ui-galaxy-BCVy8Fif.cjs → vue-ui-galaxy-DMOx2Le7.cjs} +1 -1
- package/dist/{vue-ui-gauge--Y59kiK4.js → vue-ui-gauge-Dnq0t_eH.js} +7 -7
- package/dist/{vue-ui-gauge-DdCG-E2p.cjs → vue-ui-gauge-Dw7QvZei.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Rb4ZXTmW.cjs → vue-ui-gizmo-DcT9tTS-.cjs} +1 -1
- package/dist/{vue-ui-gizmo-g2JoyNcP.js → vue-ui-gizmo-vHQVGdpR.js} +3 -3
- package/dist/{vue-ui-heatmap-CSW7Sckl.js → vue-ui-heatmap-CtxQI5Mq.js} +10 -10
- package/dist/{vue-ui-heatmap-CuhK1-fD.cjs → vue-ui-heatmap-D-r7qdj0.cjs} +1 -1
- package/dist/{vue-ui-history-plot-3I1ZczPE.cjs → vue-ui-history-plot-B8pP20QN.cjs} +1 -1
- package/dist/{vue-ui-history-plot-BUh8mFcS.js → vue-ui-history-plot-BjcPvcaK.js} +11 -11
- package/dist/{vue-ui-kpi-BokZ78tj.cjs → vue-ui-kpi-BPwU5pay.cjs} +1 -1
- package/dist/{vue-ui-kpi-DqkHOwnT.js → vue-ui-kpi-BjuKXuQM.js} +3 -3
- package/dist/{vue-ui-mini-loader-DgRUssIh.cjs → vue-ui-mini-loader-DE2NXywp.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-OgezY5bJ.js → vue-ui-mini-loader-DZYw7bD6.js} +2 -2
- package/dist/{vue-ui-molecule-DPme2DL7.js → vue-ui-molecule-A3yHt8cl.js} +11 -11
- package/dist/{vue-ui-molecule-BjZEWe-M.cjs → vue-ui-molecule-B8I4iuBQ.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-qn-DhbDt.cjs → vue-ui-mood-radar-BKtVVOZz.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-C3dVMbCW.js → vue-ui-mood-radar-Dh1qbcXz.js} +11 -11
- package/dist/{vue-ui-nested-donuts-Cz04Q0zc.cjs → vue-ui-nested-donuts-B5ixdGsx.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-B96zg3ew.js → vue-ui-nested-donuts-DPuIU4IX.js} +11 -11
- package/dist/{vue-ui-onion-CVXrJUcF.cjs → vue-ui-onion-BTMaTU2a.cjs} +1 -1
- package/dist/{vue-ui-onion-DqtSzdyq.js → vue-ui-onion-BgcJBzxI.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-BSrrIy_u.cjs → vue-ui-parallel-coordinate-plot-Cye2V8MQ.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-uPB5LMUG.js → vue-ui-parallel-coordinate-plot-Ksh3Tuvx.js} +12 -12
- package/dist/{vue-ui-quadrant-B4Xp90go.js → vue-ui-quadrant-DGBXeeOe.js} +12 -12
- package/dist/{vue-ui-quadrant-DZu-EjEj.cjs → vue-ui-quadrant-DOet5Q47.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CmdJuhrV.js → vue-ui-quick-chart-DQcck_x6.js} +53 -54
- package/dist/{vue-ui-quick-chart-BbmneGkd.cjs → vue-ui-quick-chart-DhCA-7B5.cjs} +5 -5
- package/dist/{vue-ui-radar-C0fJVGMX.js → vue-ui-radar-CI5egNer.js} +12 -12
- package/dist/{vue-ui-radar-Uw9jHF-A.cjs → vue-ui-radar-qk20LKHr.cjs} +1 -1
- package/dist/{vue-ui-rating--WDHkylh.cjs → vue-ui-rating-CYhvKLSi.cjs} +1 -1
- package/dist/{vue-ui-rating-m1AvXMFo.js → vue-ui-rating-Ch2PSMeW.js} +2 -2
- package/dist/{vue-ui-relation-circle-BnGSpsh3.js → vue-ui-relation-circle-G6KC4zs0.js} +7 -7
- package/dist/{vue-ui-relation-circle-46aZfLDY.cjs → vue-ui-relation-circle-t-WDgqtA.cjs} +1 -1
- package/dist/{vue-ui-rings-C5uc13Mz.cjs → vue-ui-rings-DxpkXXwJ.cjs} +1 -1
- package/dist/{vue-ui-rings-BvwB9Pgy.js → vue-ui-rings-NIIfGve4.js} +11 -11
- package/dist/{vue-ui-scatter-CoW5nT_m.js → vue-ui-scatter-BqxcKjb2.js} +12 -12
- package/dist/{vue-ui-scatter-BAxQgdPf.cjs → vue-ui-scatter-DynxMn7l.cjs} +1 -1
- package/dist/{vue-ui-screenshot-CoBL8VvU.cjs → vue-ui-screenshot-BUP9G_uK.cjs} +1 -1
- package/dist/{vue-ui-screenshot-C_s7_D5X.js → vue-ui-screenshot-DreZMmrO.js} +1 -1
- package/dist/{vue-ui-skeleton-DBo32QSA.js → vue-ui-skeleton-DQqwDUqP.js} +3 -3
- package/dist/{vue-ui-skeleton-Czl8iTZQ.cjs → vue-ui-skeleton-D_lU-hWK.cjs} +1 -1
- package/dist/{vue-ui-smiley-D-FU6RGS.cjs → vue-ui-smiley-AGwF1X7u.cjs} +1 -1
- package/dist/{vue-ui-smiley-BQisdetv.js → vue-ui-smiley-CdmO39JE.js} +2 -2
- package/dist/{vue-ui-spark-trend-DMwCqGul.js → vue-ui-spark-trend-BUx5YwEZ.js} +5 -5
- package/dist/{vue-ui-spark-trend-C6d6P8_s.cjs → vue-ui-spark-trend-DD1s6Thz.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DHpoNSzN.js → vue-ui-sparkbar-KZd6YQwQ.js} +4 -4
- package/dist/{vue-ui-sparkbar-CR3IzauM.cjs → vue-ui-sparkbar-mlrF_QEO.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CeXq_PnB.cjs → vue-ui-sparkgauge-B4J8ZYzs.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CC1Eglzs.js → vue-ui-sparkgauge-Db-d9x9r.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-xIK7lFrl.js → vue-ui-sparkhistogram-B61JDza9.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-X9_zqOZb.cjs → vue-ui-sparkhistogram-DzJ5NNi9.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DgEXD0bt.js → vue-ui-sparkline-P6ubVgp0.js} +4 -4
- package/dist/{vue-ui-sparkline-z8F4XzTG.cjs → vue-ui-sparkline-S6HehQ0a.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-wjQ7KHJm.cjs → vue-ui-sparkstackbar-BDBqoeJQ.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Co449w2-.js → vue-ui-sparkstackbar-DKtOqh-Y.js} +5 -5
- package/dist/{vue-ui-stackbar-C9Q0eM4s.cjs → vue-ui-stackbar-DCCcEgQZ.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BCjjWZUq.js → vue-ui-stackbar-WShCS9A1.js} +12 -12
- package/dist/{vue-ui-strip-plot-D9nUWA5a.js → vue-ui-strip-plot-Bq3u8k2l.js} +11 -11
- package/dist/{vue-ui-strip-plot-SbdQQDJD.cjs → vue-ui-strip-plot-DH4LQTfB.cjs} +1 -1
- package/dist/{vue-ui-table-4Zx9e6xR.cjs → vue-ui-table-aV4pHrWD.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CQAwn6-B.cjs → vue-ui-table-heatmap-CruECEYA.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Dojf1B9-.js → vue-ui-table-heatmap-DsdyE14x.js} +4 -4
- package/dist/{vue-ui-table-Df6cgK1g.js → vue-ui-table-sJN2rS51.js} +1 -1
- package/dist/{vue-ui-table-sparkline-WSmyQwR2.js → vue-ui-table-sparkline-BlUe2QFV.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DLd74n0T.cjs → vue-ui-table-sparkline-CcsNg6th.cjs} +1 -1
- package/dist/{vue-ui-thermometer-El0SBOq3.js → vue-ui-thermometer-80aa72_6.js} +7 -7
- package/dist/{vue-ui-thermometer-9gklDJUj.cjs → vue-ui-thermometer-ButIh820.cjs} +1 -1
- package/dist/{vue-ui-timer-DDuXYQZM.js → vue-ui-timer-CuUSpISM.js} +5 -5
- package/dist/{vue-ui-timer-BBg7_SOY.cjs → vue-ui-timer-Dk4I7cRn.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BIyXvipR.cjs → vue-ui-tiremarks-BsYfeNCN.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BfIV-QDF.js → vue-ui-tiremarks-CQ98xHZ5.js} +7 -7
- package/dist/{vue-ui-treemap-DpshmJwJ.cjs → vue-ui-treemap-CHXb8mBG.cjs} +1 -1
- package/dist/{vue-ui-treemap-BXGSdZ7D.js → vue-ui-treemap-s1nZAhAS.js} +11 -11
- package/dist/{vue-ui-vertical-bar-CWCfyMLl.js → vue-ui-vertical-bar-Dd306Z10.js} +11 -11
- package/dist/{vue-ui-vertical-bar-CKwjHdCp.cjs → vue-ui-vertical-bar-iZWowEik.cjs} +1 -1
- package/dist/{vue-ui-waffle-IvkVZcab.cjs → vue-ui-waffle-BJgSuNVY.cjs} +1 -1
- package/dist/{vue-ui-waffle-qrwD0df7.js → vue-ui-waffle-CQfOCZjf.js} +19 -19
- package/dist/{vue-ui-wheel-BVzCac3i.js → vue-ui-wheel-DB-4Rn84.js} +7 -7
- package/dist/{vue-ui-wheel-DhwjPquK.cjs → vue-ui-wheel-s8UTbo9G.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CMibfjKu.js → vue-ui-word-cloud-C-l2Z3Dd.js} +10 -10
- package/dist/{vue-ui-word-cloud-DNXgz7Aj.cjs → vue-ui-word-cloud-DvfOJe4M.cjs} +1 -1
- package/dist/{vue-ui-xy-DPybwkIx.cjs → vue-ui-xy-D1Nkk2Gp.cjs} +1 -1
- package/dist/{vue-ui-xy-DRPrnIDh.js → vue-ui-xy-P_VLOaMg.js} +14 -14
- package/dist/{vue-ui-xy-canvas-DmhWHa44.js → vue-ui-xy-canvas-BwNEs-cY.js} +11 -11
- package/dist/{vue-ui-xy-canvas-prkO7IV3.cjs → vue-ui-xy-canvas-CIKl9AXf.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-donut-DFS8YDvi.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-DGcOW0vL.cjs"),c=require("./useResponsive-BJ7DTGpm.cjs"),at=require("./Tooltip-cPxZzSgr.cjs"),ot=require("./Legend-Ba34oTdO.cjs"),rt=require("./Title-BWhYDGb-.cjs"),nt=require("./Slicer--m1nOwbO.cjs"),Ee=require("./usePrinter-DpEuGyLP.cjs"),ut=require("./vue-ui-accordion-mtZIFAv9.cjs"),st=require("./DataTable-rMMvio1U.cjs"),it=require("./vue-ui-skeleton-D_lU-hWK.cjs"),Ne=require("./useNestedProp-C9KmUVBy.cjs"),ct=require("./PenAndPaper-CX6N7FR7.cjs"),vt=require("./useUserOptionState-BgepsfED.cjs"),dt=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ht=["id"],ft=["onClick"],yt={key:2,class:"vue-data-ui-watermark"},gt=["innerHTML"],pt={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(re,{expose:Be,emit:Fe}){const p=re,{vue_ui_xy_canvas:De}=u.useConfig(),Z=l.ref(u.createUid()),N=l.ref(null),S=l.ref(null),B=l.ref(null),i=l.ref(null),g=l.ref(1),T=l.ref(1),H=l.ref(!1),f=l.ref(null),V=l.ref(""),ne=l.ref(null),C=l.ref([]),O=l.ref(1),M=l.ref(!0),z=l.ref(!0),G=l.ref(null),ue=l.ref(0),se=l.ref(0),_=l.ref(!1),ie=l.ref(null),ce=l.ref(null),ve=l.ref(null),de=l.ref(null),j=l.ref(0),J=l.ref(0),K=l.ref(0),Q=l.computed(()=>!!p.dataset&&p.dataset.length),t=l.computed({get:()=>ye(),set:e=>e}),{userOptionsVisible:ee,setUserOptionsVisibility:he,keepUserOptionState:fe}=vt.useUserOptionState({config:t.value});function ye(){const e=Ne.useNestedProp({userConfig:p.config,defaultConfig:De});let a={};return e.theme?a={...Ne.useNestedProp({userConfig:u.themes.vue_ui_xy_canvas[e.theme]||p.config,defaultConfig:e}),customPalette:u.themePalettes[e.theme]||u.palette}:a=e,p.config&&u.hasDeepProperty(p.config,"style.chart.scale.min")?a.style.chart.scale.min=p.config.style.chart.scale.min:a.style.chart.scale.min=null,p.config&&u.hasDeepProperty(p.config,"style.chart.scale.max")?a.style.chart.scale.max=p.config.style.chart.scale.max:a.style.chart.scale.max=null,p.config&&u.hasDeepProperty(p.config,"style.chart.zoom.startIndex")?a.style.chart.zoom.startIndex=p.config.style.chart.zoom.startIndex:a.style.chart.zoom.startIndex=null,p.config&&u.hasDeepProperty(p.config,"style.chart.zoom.endIndex")?a.style.chart.zoom.endIndex=p.config.style.chart.zoom.endIndex:a.style.chart.zoom.endIndex=null,a}l.watch(()=>p.config,e=>{t.value=ye(),ee.value=!t.value.showOnChartHover,le(),j.value+=1,J.value+=1,K.value+=1},{deep:!0}),l.watch(()=>p.dataset,()=>{le(),j.value+=1,J.value+=1,K.value+=1},{deep:!0});const ge=l.ref(t.value.style.chart.aspectRatio),{isPrinting:pe,isImaging:me,generatePdf:be,generateImage:xe}=Ee.usePrinter({elementId:`xy_canvas_${Z.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas"}),s=l.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function Ae(e){_.value=e,se.value+=1}const ke=l.computed(()=>u.convertCustomPalette(t.value.customPalette)),w=l.computed(()=>R.value?Math.max(...R.value.filter((e,a)=>!C.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),o=l.computed(()=>{const e=g.value-g.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:g.value,canvasHeight:T.value,left:g.value*t.value.style.chart.paddingProportions.left,top:T.value*t.value.style.chart.paddingProportions.top,right:g.value-g.value*t.value.style.chart.paddingProportions.right,bottom:T.value-T.value*t.value.style.chart.paddingProportions.bottom,width:e,height:T.value-T.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(n.value.end-n.value.start)}});function Le(e,a){return e/a}function He({hasAutoScale:e,series:a,min:r,max:d,scale:h,yOffset:m,individualHeight:v,stackIndex:b=null}){return a.map((L,oe)=>{const $=h.min<0?Math.abs(h.min):0,I=Le(L+$,$+h.max);let P,F;e&&(P=Math.abs(h.min),F=Le(L+P,h.max+P));let D=0;return b===null?D=o.value.bottom-o.value.height*(e?F:I):D=o.value.bottom-m-v*(e?F:I),{x:o.value.left+o.value.slot*oe+o.value.slot/2,y:D,value:L}})}const x=l.computed(()=>{const e=t.value.style.chart.scale.min!==null?t.value.style.chart.scale.min:Math.min(...R.value.filter((v,b)=>!C.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(n.value.start,n.value.end))),a=t.value.style.chart.scale.max!==null?t.value.style.chart.scale.max:Math.max(...R.value.filter((v,b)=>!C.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(n.value.start,n.value.end))),r=u.calculateNiceScale(e<0?e:0,a===e?e+1<0?0:e+1:a<0?0:a,t.value.style.chart.scale.ticks),d=r.min<0?Math.abs(r.min):0,h=o.value.bottom-o.value.height*(d/(r.max+d)),m=r.ticks.map(v=>({y:o.value.bottom-o.value.height*((v+d)/(r.max+d)),x:o.value.left-8,value:v}));return{absoluteMin:d,max:a,min:e,scale:r,yLabels:m,zero:h}}),Ve=l.computed(()=>y.value.map(e=>`
|
|
2
2
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
3
3
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
4
4
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-BdlNqn9B.cjs"),we=require("./useResponsive-BJ7DTGpm.cjs"),Oe=require("./Title-Z93_y2gr.cjs"),Ce=require("./usePrinter-DtSijS1B.cjs"),ze=require("./DataTable-CwiudM8v.cjs"),Te=require("./Tooltip-DVfgJ6mM.cjs"),Xe=require("./Legend-TTzHdVeD.cjs"),De=require("./vue-ui-skeleton-Czl8iTZQ.cjs"),Me=require("./vue-ui-accordion-Dm8myRhk.cjs"),Be=require("./useNestedProp-DDvMHRIf.cjs"),Ye=require("./PackageVersion-B_ULr99C.cjs"),Ae=require("./PenAndPaper-DFNDy1y9.cjs"),Ie=require("./useUserOptionState-BgepsfED.cjs"),qe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ge=E=>(e.pushScopeId("data-v-58aa1f52"),E=E(),e.popScopeId(),E),Re=["id"],Ue=["xmlns","viewBox"],He={key:0},je=["id"],We=["stop-color"],Je=["offset","stop-color"],Ke=["offset","stop-color"],Qe=["stop-color"],Ze={key:1},et=["id","cx","cy"],tt=["stop-color","stop-opacity"],lt=["stop-color"],ot=["id"],at=["id"],nt=Ge(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),rt=["id"],ut=["flood-color"],st=["id"],it=["flood-color"],ct=["d","stroke","filter"],dt=["x1","y1","x2","y2","stroke","filter"],vt=["cx","cy","r","fill","filter"],ht=["stroke","d"],ft=["d","fill","stroke","stroke-width","filter"],yt={key:0},pt=["stroke","d"],mt={key:0},gt=["d","stroke","stroke-width","filter"],kt=["d","fill","stroke","stroke-width","filter"],bt={key:1},wt=["cx","cy","r","fill","stroke","stroke-width"],Ct=["cx","cy","r","stroke"],Bt=["cx","cy","r","fill"],xt={key:0},_t=["d","fill","onMouseenter","onClick"],St={key:1},Pt=["cx","cy","r","fill"],Nt=["x","y","fill","font-size"],$t=["x","y","fill","font-size"],Et=["x","y","fill","font-size"],Lt=["x","y","fill","font-size"],Ft=["filter"],Vt={key:0},Ot=["x","y"],zt={key:1},Tt=["cx","cy","fill","stroke","filter","onClick"],Xt=["cx","cy","fill","stroke","filter","onClick"],Dt=["text-anchor","x","y","fill","font-size","onClick"],Mt=["text-anchor","x","y","fill","font-size","onClick"],Yt=["text-anchor","x","y","fill","font-size","onClick"],At=["text-anchor","x","y","fill","font-size","onClick"],It={key:2},qt=["x","y","width"],Gt=["x","y","width"],Rt={key:5,class:"vue-data-ui-watermark"},Ut=["onClick"],Ht={key:0,style:{"font-variant-numeric":"tabular-nums"}},jt={key:1},Wt=["innerHTML"],Jt={__name:"vue-ui-donut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(E,{expose:xe,emit:R}){const b=E,{vue_ui_donut:_e}=n.useConfig(),L=e.computed({get(){return!!b.dataset&&b.dataset.length},set(o){return o}}),P=e.ref(null),U=e.ref(null),H=e.ref(null),z=e.ref(null),j=e.ref(null),W=e.ref(null),J=e.ref(0),K=e.ref(0),Q=e.ref(0);e.onMounted(()=>{Z()}),e.onBeforeUnmount(()=>{z.value&&z.value.disconnect()});function Z(){if(n.objectIsEmpty(b.dataset)?n.error({componentName:"VueUiDonut",type:"dataset"}):b.dataset.forEach((o,u)=>{n.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values"]}).forEach(l=>{L.value=!1,n.error({componentName:"VueUiDonut",type:"datasetSerieAttribute",property:l,index:u})})}),t.value.responsive){const o=we.throttle(()=>{const{width:u,height:l}=we.useResponsive({chart:P.value,title:t.value.style.chart.title.text?U.value:null,legend:t.value.style.chart.legend.show?H.value:null,source:j.value,noTitle:W.value});r.value.width=u,r.value.height=l});z.value=new ResizeObserver(o),z.value.observe(P.value.parentNode)}}const f=e.ref(n.createUid()),Se=e.ref(null),T=e.ref(!1),M=e.ref(""),p=e.ref(null),ee=e.ref(0);function te(){const o=Be.useNestedProp({userConfig:b.config,defaultConfig:_e});return o.theme?{...Be.useNestedProp({userConfig:n.themes.vue_ui_donut[o.theme]||b.config,defaultConfig:o}),customPalette:n.themePalettes[o.theme]||n.palette}:o}const t=e.computed({get:()=>te(),set:o=>o}),{userOptionsVisible:Y,setUserOptionsVisibility:le,keepUserOptionState:oe}=Ie.useUserOptionState({config:t.value});e.watch(()=>b.config,o=>{t.value=te(),Y.value=!t.value.showOnChartHover,Z(),J.value+=1,K.value+=1,Q.value+=1},{deep:!0});const{isPrinting:ae,isImaging:ne,generatePdf:re,generateImage:ue}=Ce.usePrinter({elementId:`donut__${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-donut"}),Pe=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),se=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),c=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),r=e.ref({height:360,width:512}),F=e.computed(()=>{const o=t.value.style.chart.layout.donut.strokeWidth/512,u=r.value.width*o,l=u>y.value?y.value:u;return l<24?24:l}),_=e.computed(()=>b.dataset.map((o,u)=>({name:o.name,color:n.convertColorToHex(o.color)||se.value[u]||n.palette[u]||n.palette[u%n.palette.length],value:o.values.reduce((l,a)=>l+a,0),absoluteValues:o.values,comment:o.comment||""}))),g=e.ref(_.value);e.watch(()=>_.value,o=>g.value=o);function Ne(){return _.value.map(o=>({name:o.name,color:o.color,value:o.value}))}const w=e.ref([]),ie=e.ref(null),ce=e.ref(null),S=e.ref(!1);function de(o){const u=_.value.find((s,h)=>h===o);let a=g.value.find((s,h)=>h===o).value;if(w.value.includes(o)){let h=function(){a>s?(cancelAnimationFrame(ie.value),g.value=g.value.map((v,G)=>o===G?{...v,value:s}:v),S.value=!1):(S.value=!0,a+=s*.025,g.value=g.value.map((v,G)=>o===G?{...v,value:a}:v),ie.value=requestAnimationFrame(h))};w.value=w.value.filter(v=>v!==o);const s=u.value;h()}else if(w.value.length<_.value.length-1){let s=function(){a<.1?(cancelAnimationFrame(ce.value),w.value.push(o),g.value=g.value.map((h,v)=>o===v?{...h,value:0}:h),S.value=!1):(S.value=!0,a/=1.1,g.value=g.value.map((h,v)=>o===v?{...h,value:a}:h),ce.value=requestAnimationFrame(s))};s()}R("selectLegend",C.value.map(s=>({name:s.name,color:s.color,value:s.value})))}const C=e.computed(()=>(g.value.forEach((o,u)=>{if([null,void 0].includes(o.values))return{...o,values:[]}}),g.value.map((o,u)=>({...o,seriesIndex:u})).filter((o,u)=>!w.value.includes(u)))),ve=e.computed(()=>b.dataset.map((o,u)=>({name:o.name,color:n.convertColorToHex(o.color)||se.value[u]||n.palette[u]||n.palette[u%n.palette.length],value:(o.values||[]).reduce((l,a)=>l+a,0),shape:"circle"})).map((o,u)=>({...o,proportion:o.value/b.dataset.map(l=>(l.values||[]).reduce((a,s)=>a+s,0)).reduce((l,a)=>l+a,0),opacity:w.value.includes(u)?.5:1,segregate:()=>!S.value&&de(u),isSegregated:w.value.includes(u)}))),$e=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),y=e.computed(()=>{const o=Math.min(r.value.width/3,r.value.height/3);return o<55?55:o}),d=e.computed(()=>n.makeDonut({series:C.value},r.value.width/2,r.value.height/2,y.value,y.value,1.99999,2,1,360,105.25,F.value)),i=e.computed(()=>{const o=Math.max(...C.value.map(l=>l.value)),u=C.value.map(l=>l.value/o);return n.createPolarAreas({series:u,center:{x:r.value.width/2,y:r.value.height/2},maxRadius:Math.min(r.value.width,r.value.height)/3})});function N(o){return o.x>r.value.width/2+6?"start":o.x<r.value.width/2-6?"end":"middle"}function Ee(o){return o.middlePoint.y>r.value.height/2?n.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:100,centerX:r.value.width/2,centerY:r.value.height/2}).y:n.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:0,centerX:r.value.width/2,centerY:r.value.height/2}).y-100}function k(o){return o.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function A(o,u){const l=o.value/Le(u);return isNaN(l)?0:n.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,l*100,n.dataLabel({v:l*100,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding}),{datapoint:o})}function Le(o){return[...o].map(u=>u.value).reduce((u,l)=>u+l,0)}const m=e.computed(()=>C.value.map(o=>o.value).reduce((o,u)=>o+u,0)),he=e.computed(()=>m.value/C.value.length),fe=e.computed(()=>o=>S.value?o.proportion*100:o.value/m.value*100),I=e.ref(null),V=e.ref(!1);function ye({datapoint:o,relativeIndex:u,seriesIndex:l,show:a=!1}){I.value={datapoint:o,seriesIndex:l,config:t.value,series:_.value},T.value=a,p.value=u;let s="";const h=t.value.style.chart.tooltip.customFormat;if(V.value=!1,n.isFunction(h))try{const v=h({seriesIndex:l,datapoint:o,series:_.value,config:t.value});typeof v=="string"&&(M.value=v,V.value=!0)}catch{console.warn("Custom format cannot be applied."),V.value=!1}if(!V.value){if(s+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,s+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${o.color}"/></svg>`,t.value.style.chart.tooltip.showValue&&(s+=`<b>${n.applyDataLabel(t.value.style.chart.layout.labels.value.formatter,o.value,n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:o,relativeIndex:u,seriesIndex:l})}</b>`),t.value.style.chart.tooltip.showPercentage){const v=n.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,o.proportion*100,n.dataLabel({v:o.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage}),{datapoint:o,relativeIndex:u,seriesIndex:l});t.value.style.chart.tooltip.showValue?s+=`<span>(${v})</span></div>`:s+=`<b>${v}</b></div>`}t.value.style.chart.comments.showInTooltip&&o.comment&&(s+=`<div class="vue-data-ui-tooltip-comment" style="background:${o.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${o.color}">${o.comment}</div>`),M.value=`<div>${s}</div>`}}function O(o){return t.value.useBlurOnHover&&![null,void 0].includes(p.value)&&p.value!==o?`url(#blur_${f.value})`:""}const B=e.computed(()=>{const o=C.value.map(l=>({name:l.name,color:l.color})),u=C.value.map(l=>l.value);return{head:o,body:u}});function pe(){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=n.createCsvContent(u);n.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-donut"})})}const X=e.computed(()=>{const o=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v: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)=>{const v=n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:B.value.body[h],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue});return[{color:s.color,name:s.name},v,isNaN(B.value.body[h]/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}}),$=e.ref(!1);function Fe(o){$.value=o,ee.value+=1}const me=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent));function Ve(o){return o.toFixed(t.value.style.chart.legend.roundingPercentage).split("").map(u=>"-").join("")}function x(o,u){R("selectDatapoint",{datapoint:o,index:u})}function ge(){c.value.showTable=!c.value.showTable}function ke(){c.value.dataLabels.show=!c.value.dataLabels.show}function be(){c.value.showTooltip=!c.value.showTooltip}const D=e.ref(!1);function q(){D.value=!D.value}return xe({getData:Ne,generatePdf:re,generateCsv:pe,generateImage:ue,toggleTable:ge,toggleLabels:ke,toggleTooltip:be,toggleAnnotator:q}),(o,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutChart",ref:P,class:e.normalizeClass(`vue-ui-donut ${$.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height:100%;":""} text-align:center;background:${t.value.style.chart.backgroundColor}`),id:`donut__${f.value}`,onMouseenter:u[6]||(u[6]=()=>e.unref(le)(!0)),onMouseleave:u[7]||(u[7]=()=>e.unref(le)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ae.PenAndPaper,{key:0,parent:P.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:D.value,onClose:q},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"userConfig",{},void 0,!0),Pe.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:W,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:U,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(Oe._sfc_main,{key:`title_${J.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&L.value&&(e.unref(oe)||e.unref(Y))?(e.openBlock(),e.createBlock(Ce.UserOptions,{ref_key:"details",ref:Se,key:`user_option_${ee.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ae),isImaging:e.unref(ne),uid:f.value,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:$.value,chartElement:P.value,position:t.value.userOptions.position,isTooltip:c.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:D.value,onToggleFullscreen:Fe,onGeneratePdf:e.unref(re),onGenerateCsv:pe,onGenerateImage:e.unref(ue),onToggleTable:ge,onToggleLabels:ke,onToggleTooltip:be,onToggleAnnotator:q,style:e.normalizeStyle({visibility:e.unref(oe)?e.unref(Y)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:a})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:a})),void 0,!0)]),key:"6"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:a})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:a})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasLabel","hasFullscreen","isFullscreen","chartElement","position","isTooltip","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),L.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":$.value,"vue-data-ui-fulscreen--off":!$.value}),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ye._sfc_main),t.value.type==="classic"?(e.openBlock(),e.createElementBlock("defs",He,[t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("radialGradient",{key:0,id:`gradient_${f.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,We),e.createElementVNode("stop",{offset:`${(1-F.value/y.value)*100}%`,"stop-color":e.unref(n.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,Je),e.createElementVNode("stop",{offset:`${(1-F.value/y.value/2)*100}%`,"stop-color":e.unref(n.setOpacity)("#FFFFFF",t.value.style.chart.gradientIntensity)},null,8,Ke),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,Qe)],8,je)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock("defs",Ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,a)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`polar_gradient_${a}_${f.value}`,cx:l.middlePoint.x/r.value.width*100+"%",cy:l.middlePoint.y/r.value.height*100+"%",r:"62%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.shiftHue)(d.value[a].color,.05),"stop-opacity":t.value.style.chart.gradientIntensity/100},null,8,tt),e.createElementVNode("stop",{offset:"100%","stop-color":d.value[a].color},null,8,lt)],8,et))),256))])):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${f.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${f.value}`},null,8,at),nt],8,ot),e.createElementVNode("filter",{id:`shadow_${f.value}`,"color-interpolation-filters":"sRGB"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"10","flood-opacity":"0.5","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,ut)],8,rt),e.createElementVNode("filter",{id:`drop_shadow_${f.value}`,"color-interpolation-filters":"sRGB",x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"3","flood-opacity":"1","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,it)],8,st)]),t.value.type==="classic"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(n.calcNutArrowPath)(l,{x:r.value.width/2,y:r.value.height/2},16,16,!1,!1,F.value),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:O(a)},null,8,ct)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:r.value.width/2,centerY:r.value.height/2}).x,y1:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:r.value.width/2,centerY:r.value.height/2}).y,x2:i.value[a].middlePoint.x,y2:i.value[a].middlePoint.y,stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:O(a)},null,8,dt)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock("circle",{key:4,cx:r.value.width/2,cy:r.value.height/2,r:y.value<=0?10:y.value,fill:t.value.style.chart.backgroundColor,filter:t.value.style.chart.layout.donut.useShadow?`url(#shadow_${f.value})`:""},null,8,vt)):e.createCommentVNode("",!0),m.value&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:l.arcSlice,fill:"#FFFFFF"},null,8,ht))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:e.unref(n.setOpacity)(l.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:O(a)},null,8,ft))),256))],64)):e.createCommentVNode("",!0),m.value&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:6},[d.value.length>1?(e.openBlock(),e.createElementBlock("g",yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:i.value[a].path,fill:"#FFFFFF"},null,8,pt))),256)),t.value.style.chart.layout.donut.useShadow?(e.openBlock(),e.createElementBlock("g",mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:"transparent",stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:`url(#drop_shadow_${f.value})`},null,8,gt))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:t.value.style.chart.useGradient?`url(#polar_gradient_${a}_${f.value})`:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:O(a)},null,8,kt))),256))])):(e.openBlock(),e.createElementBlock("g",bt,[e.createElementVNode("circle",{cx:r.value.width/2,cy:r.value.height/2,r:y.value,fill:t.value.style.chart.useGradient?`url(#polar_gradient_0_${f.value})`:d.value[0].color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth},null,8,wt)]))],64)):(e.openBlock(),e.createElementBlock("circle",{key:7,cx:r.value.width/2,cy:r.value.height/2,r:y.value<=0?10:y.value,fill:"transparent",stroke:t.value.style.chart.backgroundColor},null,8,Ct)),t.value.style.chart.useGradient&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("circle",{key:8,cx:r.value.width/2,cy:r.value.height/2,r:y.value<=0?10:y.value,fill:`url(#gradient_${f.value})`},null,8,Bt)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:9},[d.value.length>1||t.value.type==="classic"?(e.openBlock(),e.createElementBlock("g",xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{"data-cy-donut-trap":"",d:t.value.type==="classic"?l.arcSlice:i.value[a].path,fill:p.value===a?"rgba(0,0,0,0.1)":"transparent",onMouseenter:s=>ye({datapoint:l,relativeIndex:a,seriesIndex:l.seriesIndex,show:!0}),onMouseleave:u[0]||(u[0]=s=>{T.value=!1,p.value=null}),onClick:s=>x(l,a)},null,40,_t))),256))])):(e.openBlock(),e.createElementBlock("g",St,[e.createElementVNode("circle",{cx:r.value.width/2,cy:r.value.height/2,r:y.value,fill:p.value===o.i?"rgba(0,0,0,0.1)":"transparent","data-cy-donut-trap":"",onMouseenter:u[1]||(u[1]=l=>ye({datapoint:d.value[0],relativeIndex:0,seriesIndex:d.value[0].seriesIndex,show:!0})),onMouseleave:u[2]||(u[2]=l=>{T.value=!1,p.value=null}),onClick:u[3]||(u[3]=l=>x(d.value[0],o.i))},null,40,Pt)]))],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:10},[t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:r.value.width/2,y:r.value.height/2-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.color,"font-size":t.value.style.chart.layout.labels.hollow.total.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.total.text),13,Nt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:r.value.width/2,y:r.value.height/2+t.value.style.chart.layout.labels.hollow.total.fontSize-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.value.color,"font-size":t.value.style.chart.layout.labels.hollow.total.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.value.bold?"bold":""}`)},e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.hollow.total.value.formatter,m.value,e.unref(n.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,$t)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":"middle",x:r.value.width/2,y:r.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.color,"font-size":t.value.style.chart.layout.labels.hollow.average.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.average.text),13,Et)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:3,"text-anchor":"middle",x:r.value.width/2,y:r.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.fontSize+t.value.style.chart.layout.labels.hollow.average.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.value.color,"font-size":t.value.style.chart.layout.labels.hollow.average.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.value.bold?"bold":""}`)},e.toDisplayString(S.value?"--":e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.hollow.average.value.formatter,he.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.hollow.average.value.prefix,v:he.value,s:t.value.style.chart.layout.labels.hollow.average.value.suffix,r:t.value.style.chart.layout.labels.hollow.average.value.rounding}))),13,Lt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",{filter:O(a),class:e.normalizeClass({animated:t.value.useCssAnimation})},[t.value.style.chart.layout.labels.dataLabels.useLabelSlots?(e.openBlock(),e.createElementBlock("g",Vt,[(e.openBlock(),e.createElementBlock("foreignObject",{x:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(n.calcMarkerOffsetX)(l).x-120:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(n.calcMarkerOffsetX)(l).x-60:e.unref(n.calcMarkerOffsetX)(l).x,y:e.unref(n.calcMarkerOffsetY)(l)-(me.value?20:0),width:"120",height:"60",style:{overflow:"visible"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"dataLabel",e.normalizeProps(e.guardReactiveProps({datapoint:l,isBlur:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===a,isSafari:me.value,isVisible:k(l)&&c.value.dataLabels.show,textAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16).anchor,percentage:A(l,d.value)})),void 0,!0)])],8,Ot))])):(e.openBlock(),e.createElementBlock("g",zt,[t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(n.calcMarkerOffsetX)(l).x,cy:e.unref(n.calcMarkerOffsetY)(l)-3.5,fill:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":1,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===a?"":`url(#blur_${f.value})`,onClick:s=>x(l,a)},null,8,Tt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:r.value.width/2,centerY:r.value.height/2}).x,cy:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:r.value.width/2,centerY:r.value.height/2}).y,fill:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":1,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===a?"":`url(#blur_${f.value})`,onClick:s=>x(l,a)},null,8,Xt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":e.unref(n.calcMarkerOffsetX)(l,!0,12).anchor,x:e.unref(n.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(n.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.labels.percentage.color,"font-size":t.value.style.chart.layout.labels.percentage.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.percentage.bold?"bold":""}`),onClick:s=>x(l,a)},e.toDisplayString(A(l,d.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}),{datapoint:l})})`:""),13,Dt)):e.createCommentVNode("",!0),k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(n.calcMarkerOffsetX)(l).anchor,x:e.unref(n.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(n.calcMarkerOffsetY)(l)+t.value.style.chart.layout.labels.percentage.fontSize,fill:t.value.style.chart.layout.labels.name.color,"font-size":t.value.style.chart.layout.labels.name.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.name.bold?"bold":""}`),onClick:s=>x(l,a)},e.toDisplayString(l.name),13,Mt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":N(i.value[a].middlePoint),x:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x,y:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).y,fill:t.value.style.chart.layout.labels.percentage.color,"font-size":t.value.style.chart.layout.labels.percentage.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.percentage.bold?"bold":""}`),onClick:s=>x(l,a)},e.toDisplayString(A(l,d.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}),{datapoint:l})})`:""),13,Yt)):e.createCommentVNode("",!0),k(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":N(i.value[a].middlePoint),x:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x,y:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).y+t.value.style.chart.layout.labels.percentage.fontSize,fill:t.value.style.chart.layout.labels.name.color,"font-size":t.value.style.chart.layout.labels.name.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.name.bold?"bold":""}`),onClick:s=>x(l,a)},e.toDisplayString(l.name),13,At)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),c.value.dataLabels.show&&t.value.style.chart.comments.show&&l.comment?(e.openBlock(),e.createElementBlock("g",It,[k(l)&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.value.style.chart.comments.offsetX+(e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(n.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(n.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width/2:e.unref(n.calcMarkerOffsetX)(l).x),y:e.unref(n.calcMarkerOffsetY)(l)+24+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:{overflow:"visible","pointer-events":"none"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"plot-comment",{plot:{...l,textAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16).anchor}},void 0,!0)])],8,qt)):e.createCommentVNode("",!0),k(l)&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:t.value.style.chart.comments.offsetX+(N(i.value[a].middlePoint)==="end"?e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x-t.value.style.chart.comments.width:N(i.value[a].middlePoint)==="middle"?e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x-t.value.style.chart.comments.width/2:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x),y:Ee(i.value[a])+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:{overflow:"visible","pointer-events":"none"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"plot-comment",{plot:{...l,textAlign:N(i.value[a].middlePoint),flexAlign:N(i.value[a].middlePoint)}},void 0,!0)])],8,Gt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,Ft))),256)),e.renderSlot(o.$slots,"svg",{svg:r.value},void 0,!0)],14,Ue)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Rt,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ae)||e.unref(ne)})),void 0,!0)])):e.createCommentVNode("",!0),L.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(De.default,{key:6,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC",strokeWidth:F.value*.8}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:H},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Xe.Legend,{key:`legend_${Q.value}`,legendSet:ve.value,config:$e.value,onClickMarker:u[4]||(u[4]=({i:l})=>de(l))},{item:e.withCtx(({legend:l,index:a})=>[e.createElementVNode("div",{style:e.normalizeStyle(`opacity:${w.value.includes(a)?.5:1}`),onClick:s=>l.segregate()},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,index:a}))+" ",1),w.value.includes(a)?(e.openBlock(),e.createElementBlock("span",jt," ( "+e.toDisplayString(Ve(l.proportion*100))+" % ) ",1)):(e.openBlock(),e.createElementBlock("span",Ht," ("+e.toDisplayString(isNaN(l.value/m.value)?"-":e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,fe.value(l),e.unref(n.dataLabel)({v:fe.value(l),s:"%",r:t.value.style.chart.legend.roundingPercentage})))+") ",1))],12,Ut)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"legend",{legend:ve.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:j,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Te._sfc_main,{show:c.value.showTooltip&&T.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:P.value,content:M.value,isCustom:V.value,isFullscreen:$.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom","isFullscreen"]),L.value?(e.openBlock(),e.createBlock(Me.default,{key:8,hideDetails:"",config:{open:c.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ze.DataTable,{key:`table_${K.value}`,colNames:X.value.colNames,head:X.value.head,body:X.value.body,config:X.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:u[5]||(u[5]=l=>c.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Wt)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name?l.name:isNaN(Number(l))?l.includes("%")?l:e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,l,e.unref(n.dataLabel)({v:l,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding})):e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}))),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Re))}},Kt=qe._export_sfc(Jt,[["__scopeId","data-v-58aa1f52"]]);exports.default=Kt;
|