vue-data-ui 2.3.92 → 2.3.94
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-CdJD01md.cjs → Arrow-Dqk-HgBj.cjs} +1 -1
- package/dist/{Arrow-16rQhq4i.js → Arrow-FQNwuQt_.js} +1 -1
- package/dist/{BaseIcon-CAmYNoaf.js → BaseIcon-CcOdzI48.js} +1 -1
- package/dist/{BaseIcon-dYWMubrH.cjs → BaseIcon-DhAyJ2rW.cjs} +1 -1
- package/dist/{DataTable-BXnbua0J.js → DataTable-D1vDu_2B.js} +2 -2
- package/dist/{DataTable-oa0Srfuc.cjs → DataTable-kOScyzFF.cjs} +1 -1
- package/dist/{Legend-Dhm9_peB.cjs → Legend-BJdr5n-o.cjs} +1 -1
- package/dist/{Legend-Cr1hulgT.js → Legend-CZk6McMv.js} +1 -1
- package/dist/{PackageVersion-BVZfgDqm.js → PackageVersion-DDKechCD.js} +1 -1
- package/dist/{PackageVersion-BkgJVmj1.cjs → PackageVersion-Tm6EPIDH.cjs} +1 -1
- package/dist/{Shape-hGbEoQOv.cjs → Shape-CHWOgbhq.cjs} +1 -1
- package/dist/{Shape-D75m5xWM.js → Shape-CY3Tsyaq.js} +1 -1
- package/dist/{Slicer-B7ya0m2Q.cjs → Slicer-C0R4JA2q.cjs} +1 -1
- package/dist/{Slicer-Bx8AozB8.js → Slicer-DBVND1TR.js} +15 -15
- package/dist/{Title-1Sw6EmHy.js → Title-B6kWQmNb.js} +1 -1
- package/dist/{Title-Bjrh7khe.cjs → Title-DAEaaXFr.cjs} +1 -1
- package/dist/{Tooltip-CPATjuur.cjs → Tooltip-Cb9jWppv.cjs} +1 -1
- package/dist/{Tooltip-EJf3VBPR.js → Tooltip-Cwp4dS4t.js} +1 -1
- package/dist/{index-DhJby8wL.js → index-Bu852AzK.js} +725 -705
- package/dist/index-jAZxyteD.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-CrHvyupb.js → useNestedProp-1sCLAHuR.js} +1 -1
- package/dist/{useNestedProp-Bwd7mK1Z.cjs → useNestedProp-DksYpyh6.cjs} +1 -1
- package/dist/{usePrinter-Bwm8J3RQ.js → usePrinter-CaNEdNUc.js} +1 -1
- package/dist/{usePrinter-DdsPm5a4.cjs → usePrinter-Cx-xmAjb.cjs} +1 -1
- package/dist/{vue-data-ui-CLxne31S.js → vue-data-ui-DRT0INR_.js} +57 -57
- package/dist/{vue-data-ui-ZitCqVgG.cjs → vue-data-ui-DVWQuwQb.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +5 -5
- package/dist/{vue-ui-3d-bar-Dg87_AAm.js → vue-ui-3d-bar-CwTmIafL.js} +8 -8
- package/dist/{vue-ui-3d-bar-DAv5cYGJ.cjs → vue-ui-3d-bar-fPokAY4t.cjs} +1 -1
- package/dist/{vue-ui-accordion-Cn5Jbplg.js → vue-ui-accordion-CBwmD_zS.js} +3 -3
- package/dist/{vue-ui-accordion-BAHX7KzB.cjs → vue-ui-accordion-WXKee19V.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-PlamQWqC.js → vue-ui-age-pyramid-BuJ384HP.js} +9 -9
- package/dist/{vue-ui-age-pyramid-GzHwQzsH.cjs → vue-ui-age-pyramid-CSlbHHIq.cjs} +1 -1
- package/dist/{vue-ui-annotator-Dd5KF_cy.js → vue-ui-annotator-CQQfgcyq.js} +1 -1
- package/dist/{vue-ui-annotator-DGgQwl-K.cjs → vue-ui-annotator-DqCVD1IT.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BIEB2J1w.cjs → vue-ui-candlestick-2uxcI-Xb.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DTzwPhV5.js → vue-ui-candlestick-O0pBnymd.js} +10 -10
- package/dist/{vue-ui-carousel-table-YEfvPESA.js → vue-ui-carousel-table-CpaHwBTF.js} +4 -4
- package/dist/{vue-ui-carousel-table-HNTf5AYY.cjs → vue-ui-carousel-table-DJelccvO.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DzjdAYsT.cjs → vue-ui-chestnut-DoS0ZkSz.cjs} +1 -1
- package/dist/{vue-ui-chestnut-PzMOM7mp.js → vue-ui-chestnut-bP29gPF2.js} +7 -7
- package/dist/{vue-ui-cursor-DWea2yXV.js → vue-ui-cursor-BXsEO1jQ.js} +2 -2
- package/dist/{vue-ui-cursor-C5rsiCdn.cjs → vue-ui-cursor-DvrLmTy2.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BqXhoS8m.cjs → vue-ui-dashboard-CtAtCuEu.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CVespiTo.js → vue-ui-dashboard-VQiRxgUe.js} +2 -2
- package/dist/{vue-ui-digits-gNKgZqYU.js → vue-ui-digits-2h-uYg5M.js} +2 -2
- package/dist/{vue-ui-digits-wmDN7Vkf.cjs → vue-ui-digits-DxwUUK2a.cjs} +1 -1
- package/dist/vue-ui-donut-CVkNiaR7.js +999 -0
- package/dist/vue-ui-donut-ClCDBTXq.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DhDxLZ1J.cjs → vue-ui-donut-evolution-CVy-DhHk.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-Ch6HH0ja.js → vue-ui-donut-evolution-D0HDE6fN.js} +53 -53
- package/dist/{vue-ui-dumbbell-B9Z_pjnG.cjs → vue-ui-dumbbell-CblIThyd.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-lFlZX8Yi.js → vue-ui-dumbbell-DIVxIXgO.js} +9 -9
- package/dist/{vue-ui-flow-CSIOC-JR.js → vue-ui-flow-Cy5HKKbs.js} +20 -20
- package/dist/{vue-ui-flow-BaFpUJg-.cjs → vue-ui-flow-Dbw0yzSb.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DL2mnel_.js → vue-ui-galaxy-CBR86BVE.js} +23 -23
- package/dist/{vue-ui-galaxy-BIR5GxIc.cjs → vue-ui-galaxy-Z5-e5hHG.cjs} +1 -1
- package/dist/{vue-ui-gauge-BMq7KT3t.js → vue-ui-gauge-BwC9HPyF.js} +19 -19
- package/dist/{vue-ui-gauge-r_qvpwE7.cjs → vue-ui-gauge-DAgx6nds.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DBas_Sw_.cjs → vue-ui-gizmo-5FygVg05.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Dj7zvNI1.js → vue-ui-gizmo-D6U5riWt.js} +3 -3
- package/dist/{vue-ui-heatmap-pqBYIrxm.js → vue-ui-heatmap-PVlvCw_B.js} +9 -9
- package/dist/{vue-ui-heatmap-qPgEhAzc.cjs → vue-ui-heatmap-XVVbgtw6.cjs} +1 -1
- package/dist/{vue-ui-kpi-Cmo9J7wp.cjs → vue-ui-kpi-2eoTT0Hv.cjs} +1 -1
- package/dist/{vue-ui-kpi-ZPBinMiF.js → vue-ui-kpi-DiG34MXd.js} +3 -3
- package/dist/{vue-ui-mini-loader-DOTWhLi9.js → vue-ui-mini-loader-CVOfsZ-d.js} +2 -2
- package/dist/{vue-ui-mini-loader-Ce-jbgMT.cjs → vue-ui-mini-loader-DpoTiQhx.cjs} +1 -1
- package/dist/{vue-ui-molecule-RDpgNrHQ.js → vue-ui-molecule-85QzZoSm.js} +29 -29
- package/dist/{vue-ui-molecule-D429iwPP.cjs → vue-ui-molecule-Mt0YXGcP.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CdLJxrkT.cjs → vue-ui-mood-radar-B3xF0_xt.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CD5L8WCU.js → vue-ui-mood-radar-Ds21V6oP.js} +21 -21
- package/dist/{vue-ui-nested-donuts-A-tid5cQ.js → vue-ui-nested-donuts-BrMouz8T.js} +46 -46
- package/dist/{vue-ui-nested-donuts-DyM3uc7x.cjs → vue-ui-nested-donuts-DFrY4v-O.cjs} +1 -1
- package/dist/{vue-ui-onion-BKql8oal.cjs → vue-ui-onion-CQu0-ZlV.cjs} +1 -1
- package/dist/{vue-ui-onion-Cap01Ehu.js → vue-ui-onion-ZWa0bPAG.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-B0zMgtnq.cjs → vue-ui-parallel-coordinate-plot-Cet-vJ3E.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CcDKe4L0.js → vue-ui-parallel-coordinate-plot-SpCkXomG.js} +11 -11
- package/dist/{vue-ui-quadrant-CZzdpeQ2.cjs → vue-ui-quadrant-B1fnSqPf.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BDEfAeyJ.js → vue-ui-quadrant-DwxUTnpH.js} +11 -11
- package/dist/{vue-ui-quick-chart-DlAUYg5u.js → vue-ui-quick-chart-DDSDdZMZ.js} +8 -8
- package/dist/{vue-ui-quick-chart-DpGYUyhq.cjs → vue-ui-quick-chart-DSOONkrO.cjs} +1 -1
- package/dist/{vue-ui-radar-oBeaHlpT.cjs → vue-ui-radar-CQJzxB9Y.cjs} +1 -1
- package/dist/{vue-ui-radar-CbTln7gs.js → vue-ui-radar-Cc4hxNkF.js} +11 -11
- package/dist/{vue-ui-rating-BkDncqow.js → vue-ui-rating-CRs01ao2.js} +7 -7
- package/dist/{vue-ui-rating-BU7-F3_e.cjs → vue-ui-rating-DRLfSg4n.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-IWiJWgcB.cjs → vue-ui-relation-circle-BZcoHhTb.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-C5B6UNGd.js → vue-ui-relation-circle-mlXpg86O.js} +6 -6
- package/dist/{vue-ui-rings-BujVUJ90.js → vue-ui-rings-DHlbwWrt.js} +37 -37
- package/dist/{vue-ui-rings-Df2cRgD8.cjs → vue-ui-rings-OeMdVo_s.cjs} +1 -1
- package/dist/{vue-ui-scatter-jFTeM2hW.cjs → vue-ui-scatter-D65sxQAb.cjs} +1 -1
- package/dist/{vue-ui-scatter-D6yqZJ7s.js → vue-ui-scatter-DtX5NOb_.js} +34 -34
- package/dist/{vue-ui-screenshot-CVu8IM33.cjs → vue-ui-screenshot-B1pv3wKU.cjs} +1 -1
- package/dist/{vue-ui-screenshot-CHAySwpv.js → vue-ui-screenshot-BwgdW92q.js} +1 -1
- package/dist/{vue-ui-skeleton-ASX40MGk.js → vue-ui-skeleton-B-obKEDg.js} +49 -49
- package/dist/{vue-ui-skeleton-CAlTn_Cg.cjs → vue-ui-skeleton-C14g9G-o.cjs} +1 -1
- package/dist/{vue-ui-smiley-dwCqhB0r.cjs → vue-ui-smiley-CHY-BKbe.cjs} +1 -1
- package/dist/{vue-ui-smiley-DGVzhza2.js → vue-ui-smiley-i8xqKjND.js} +2 -2
- package/dist/{vue-ui-spark-trend-B7XhDvTj.js → vue-ui-spark-trend-DzZsfML2.js} +20 -20
- package/dist/{vue-ui-spark-trend-A1EHFK_r.cjs → vue-ui-spark-trend-i3VmY_gx.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BuNcvi66.js → vue-ui-sparkbar-7rOXvOgH.js} +4 -4
- package/dist/{vue-ui-sparkbar-CwNjHOjD.cjs → vue-ui-sparkbar-BnYKNJWQ.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-ISu154lS.cjs → vue-ui-sparkgauge-BuOMrzYW.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-JY2kB9WX.js → vue-ui-sparkgauge-DnphjNVE.js} +11 -11
- package/dist/{vue-ui-sparkhistogram-C8zyC-ii.cjs → vue-ui-sparkhistogram-DZaNR3tu.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DyEPWxkP.js → vue-ui-sparkhistogram-DvLl4E_s.js} +5 -5
- package/dist/{vue-ui-sparkline-DL3Thtc4.cjs → vue-ui-sparkline-BpmqNCQy.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DYC3sdvQ.js → vue-ui-sparkline-CPjnG7wg.js} +21 -21
- package/dist/{vue-ui-sparkstackbar-7TmtP3WR.js → vue-ui-sparkstackbar-BGgNBuJz.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-ChIM9bn2.cjs → vue-ui-sparkstackbar-CJ17fiW5.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DrtiSaNc.cjs → vue-ui-stackbar-CFoe4XwZ.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CP5C6Gb_.js → vue-ui-stackbar-SFKe9f6_.js} +11 -11
- package/dist/{vue-ui-strip-plot-BMYMIHGu.cjs → vue-ui-strip-plot-B8utOfmZ.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DJQCq_KE.js → vue-ui-strip-plot-CGgheJ1-.js} +10 -10
- package/dist/{vue-ui-table-D6hvgMif.cjs → vue-ui-table-BpSsgihB.cjs} +1 -1
- package/dist/{vue-ui-table-IJi0xaVg.js → vue-ui-table-JOi6x-Kt.js} +10 -10
- package/dist/{vue-ui-table-heatmap-Ls8_xq0D.js → vue-ui-table-heatmap-EeR8_0fs.js} +23 -23
- package/dist/{vue-ui-table-heatmap-BZNKXZNs.cjs → vue-ui-table-heatmap-fNf5Hgfn.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BeuvdssX.js → vue-ui-table-sparkline-of9ZervK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-BQFK30H1.cjs → vue-ui-table-sparkline-yjChfsNj.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DKm8SXlE.cjs → vue-ui-thermometer-Ct59Zrkd.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DPWIvG92.js → vue-ui-thermometer-Hb5jQa3y.js} +6 -6
- package/dist/{vue-ui-timer-CEzDvZf7.js → vue-ui-timer-Duo6PjNq.js} +5 -5
- package/dist/{vue-ui-timer-n6lv7oTx.cjs → vue-ui-timer-nIKem40S.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-B33mHXZN.cjs → vue-ui-tiremarks-D5vYyYcq.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BUGoY22W.js → vue-ui-tiremarks-rxEA2WzL.js} +6 -6
- package/dist/{vue-ui-treemap-DPxBZUUr.cjs → vue-ui-treemap-DK5klTWq.cjs} +1 -1
- package/dist/{vue-ui-treemap-DmOYjJ_F.js → vue-ui-treemap-DWDrLYPR.js} +10 -10
- package/dist/{vue-ui-vertical-bar-BpVKdSY5.js → vue-ui-vertical-bar-3TzyIQBn.js} +10 -10
- package/dist/{vue-ui-vertical-bar-BJMYX8t4.cjs → vue-ui-vertical-bar-CCOjOr9t.cjs} +1 -1
- package/dist/{vue-ui-waffle-ULg6SwPx.js → vue-ui-waffle-CUiQJf4B.js} +23 -23
- package/dist/{vue-ui-waffle-DGcueccy.cjs → vue-ui-waffle-CzbWP2YI.cjs} +1 -1
- package/dist/{vue-ui-wheel-CWKq-CFW.cjs → vue-ui-wheel-BgLqSlSe.cjs} +1 -1
- package/dist/{vue-ui-wheel-DlmgZd-_.js → vue-ui-wheel-DJe1aYWh.js} +6 -6
- package/dist/vue-ui-word-cloud-CS4EPwJc.cjs +1 -0
- package/dist/{vue-ui-word-cloud-DWyboczt.js → vue-ui-word-cloud-ouNY0ixo.js} +75 -75
- package/dist/{vue-ui-xy-Cz81fw_E.cjs → vue-ui-xy-DkHIDMtO.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-B9cRe5gT.js → vue-ui-xy-canvas-CGG7Levw.js} +34 -34
- package/dist/{vue-ui-xy-canvas-GiuHOyj5.cjs → vue-ui-xy-canvas-iMF1sItL.cjs} +1 -1
- package/dist/{vue-ui-xy-V13Ns1gv.js → vue-ui-xy-iQJGfaFk.js} +28 -28
- package/package.json +1 -1
- package/dist/index-D09qCApg.cjs +0 -4
- package/dist/vue-ui-donut-n37BZPxr.cjs +0 -1
- package/dist/vue-ui-donut-sQunZI1L.js +0 -871
- package/dist/vue-ui-word-cloud-BhHWdmqP.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-jAZxyteD.cjs"),ve=require("./useResponsive-B3TrDDIG.cjs"),_e=require("./Title-DAEaaXFr.cjs"),he=require("./usePrinter-Cx-xmAjb.cjs"),Se=require("./DataTable-kOScyzFF.cjs"),Pe=require("./Tooltip-Cb9jWppv.cjs"),Ne=require("./Legend-BJdr5n-o.cjs"),$e=require("./vue-ui-skeleton-C14g9G-o.cjs"),Le=require("./vue-ui-accordion-WXKee19V.cjs"),fe=require("./useNestedProp-DksYpyh6.cjs"),Ee=require("./PackageVersion-Tm6EPIDH.cjs"),Fe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ve=N=>(e.pushScopeId("data-v-2ebaf5df"),N=N(),e.popScopeId(),N),ze=["id"],Oe=["xmlns","viewBox"],Te={key:0},Xe=["id"],De=["stop-color"],Ye=["offset","stop-color"],Me=["offset","stop-color"],Ae=["stop-color"],Ie={key:1},qe=["id","cx","cy"],Ge=["stop-color","stop-opacity"],Re=["stop-color"],je=["id"],He=["id"],Ue=Ve(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),We=["id"],Je=["flood-color"],Ke=["d","stroke","filter"],Qe=["x1","y1","x2","y2","stroke","filter"],Ze=["cx","cy","r","fill","filter"],et=["stroke","d"],tt=["d","fill","stroke","stroke-width","filter"],lt=["stroke","d"],at=["d","fill","stroke","stroke-width","filter"],ot=["cx","cy","r","stroke"],nt=["cx","cy","r","fill"],rt=["d","fill","onMouseenter","onClick"],ut=["x","y","fill","font-size"],st=["x","y","fill","font-size"],it=["x","y","fill","font-size"],ct=["x","y","fill","font-size"],dt=["filter"],vt={key:0},ht=["x","y"],ft={key:1},yt=["cx","cy","fill","filter","onClick"],mt=["cx","cy","fill","filter","onClick"],pt=["text-anchor","x","y","fill","font-size","onClick"],gt=["text-anchor","x","y","fill","font-size","onClick"],bt=["text-anchor","x","y","fill","font-size","onClick"],kt=["text-anchor","x","y","fill","font-size","onClick"],wt={key:2},Ct=["x","y","width"],xt=["x","y","width"],Bt={key:3,class:"vue-data-ui-watermark"},_t=["onClick"],St={key:0,style:{"font-variant-numeric":"tabular-nums"}},Pt={key:1},Nt=["innerHTML"],$t={__name:"vue-ui-donut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(N,{expose:ye,emit:I}){const k=N,{vue_ui_donut:me}=o.useConfig(),$=e.computed({get(){return!!k.dataset&&k.dataset.length},set(a){return a}}),L=e.ref(null),q=e.ref(null),G=e.ref(null),O=e.ref(null),R=e.ref(0),j=e.ref(0),H=e.ref(0);e.onMounted(()=>{U()}),e.onBeforeUnmount(()=>{O.value&&O.value.disconnect()});function U(){if(o.objectIsEmpty(k.dataset)?o.error({componentName:"VueUiDonut",type:"dataset"}):k.dataset.forEach((a,u)=>{o.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","values"]}).forEach(l=>{$.value=!1,o.error({componentName:"VueUiDonut",type:"datasetSerieAttribute",property:l,index:u})})}),t.value.responsive){const a=ve.throttle(()=>{const{width:u,height:l}=ve.useResponsive({chart:L.value,title:t.value.style.chart.title.text?q.value:null,legend:t.value.style.chart.legend.show?G.value:null});r.value.width=u,r.value.height=l});O.value=new ResizeObserver(a),O.value.observe(L.value.parentNode)}}const h=e.ref(o.createUid()),pe=e.ref(null),X=e.ref(!1),D=e.ref(""),g=e.ref(null),W=e.ref(0);function J(){const a=fe.useNestedProp({userConfig:k.config,defaultConfig:me});return a.theme?{...fe.useNestedProp({userConfig:o.themes.vue_ui_donut[a.theme]||k.config,defaultConfig:a}),customPalette:o.themePalettes[a.theme]||o.palette}:a}const t=e.computed({get:()=>J(),set:a=>a});e.watch(()=>k.config,a=>{t.value=J(),U(),R.value+=1,j.value+=1,H.value+=1},{deep:!0});const{isPrinting:K,isImaging:Q,generatePdf:Z,generateImage:ee}=he.usePrinter({elementId:`donut__${h.value}`,fileName:t.value.style.chart.title.text||"vue-ui-donut"}),te=e.computed(()=>o.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}),E=e.computed(()=>{const a=t.value.style.chart.layout.donut.strokeWidth/512,u=r.value.width*a,l=u>p.value?p.value:u;return l<24?24:l}),B=e.computed(()=>k.dataset.map((a,u)=>({name:a.name,color:o.convertColorToHex(a.color)||te.value[u]||o.palette[u]||o.palette[u%o.palette.length],value:a.values.reduce((l,n)=>l+n,0),absoluteValues:a.values,comment:a.comment||""}))),m=e.ref(B.value);e.watch(()=>B.value,a=>m.value=a);function ge(){return B.value.map(a=>({name:a.name,color:a.color,value:a.value}))}const w=e.ref([]),le=e.ref(null),ae=e.ref(null),_=e.ref(!1);function oe(a){const u=B.value.find((s,v)=>v===a);let n=m.value.find((s,v)=>v===a).value;if(w.value.includes(a)){let v=function(){n>s?(cancelAnimationFrame(le.value),m.value=m.value.map((d,A)=>a===A?{...d,value:s}:d),_.value=!1):(_.value=!0,n+=s*.025,m.value=m.value.map((d,A)=>a===A?{...d,value:n}:d),le.value=requestAnimationFrame(v))};w.value=w.value.filter(d=>d!==a);const s=u.value;v()}else if(w.value.length<B.value.length-1){let s=function(){n<.1?(cancelAnimationFrame(ae.value),w.value.push(a),m.value=m.value.map((v,d)=>a===d?{...v,value:0}:v),_.value=!1):(_.value=!0,n/=1.1,m.value=m.value.map((v,d)=>a===d?{...v,value:n}:v),ae.value=requestAnimationFrame(s))};s()}I("selectLegend",C.value.map(s=>({name:s.name,color:s.color,value:s.value})))}const C=e.computed(()=>(m.value.forEach((a,u)=>{if([null,void 0].includes(a.values))return{...a,values:[]}}),m.value.map((a,u)=>({...a,seriesIndex:u})).filter((a,u)=>!w.value.includes(u)))),ne=e.computed(()=>k.dataset.map((a,u)=>({name:a.name,color:o.convertColorToHex(a.color)||te.value[u]||o.palette[u]||o.palette[u%o.palette.length],value:(a.values||[]).reduce((l,n)=>l+n,0),shape:"circle"})).map((a,u)=>({...a,proportion:a.value/k.dataset.map(l=>(l.values||[]).reduce((n,s)=>n+s,0)).reduce((l,n)=>l+n,0),opacity:w.value.includes(u)?.5:1,segregate:()=>oe(u),isSegregated:w.value.includes(u)}))),be=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":""})),p=e.computed(()=>{const a=Math.min(r.value.width/3,r.value.height/3);return a<55?55:a}),y=e.computed(()=>o.makeDonut({series:C.value},r.value.width/2,r.value.height/2,p.value,p.value,1.99999,2,1,360,105.25,E.value)),i=e.computed(()=>{const a=Math.max(...C.value.map(l=>l.value)),u=C.value.map(l=>l.value/a);return o.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 P(a){return a.x>r.value.width/2+6?"start":a.x<r.value.width/2-6?"end":"middle"}function ke(a){return a.middlePoint.y>r.value.height/2?o.offsetFromCenterPoint({initX:a.middlePoint.x,initY:a.middlePoint.y,offset:100,centerX:r.value.width/2,centerY:r.value.height/2}).y:o.offsetFromCenterPoint({initX:a.middlePoint.x,initY:a.middlePoint.y,offset:0,centerX:r.value.width/2,centerY:r.value.height/2}).y-100}function b(a){return a.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function Y(a,u){const l=a.value/we(u);return isNaN(l)?0:o.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,l*100,o.dataLabel({v:l*100,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding}),{datapoint:a})}function we(a){return[...a].map(u=>u.value).reduce((u,l)=>u+l,0)}const f=e.computed(()=>C.value.map(a=>a.value).reduce((a,u)=>a+u,0)),re=e.computed(()=>f.value/C.value.length),M=e.ref(null),F=e.ref(!1);function Ce({datapoint:a,relativeIndex:u,seriesIndex:l,show:n=!1}){M.value={datapoint:a,seriesIndex:l,config:t.value,series:B.value},X.value=n,g.value=u;let s="";const v=t.value.style.chart.tooltip.customFormat;if(F.value=!1,o.isFunction(v))try{const d=v({seriesIndex:l,datapoint:a,series:B.value,config:t.value});typeof d=="string"&&(D.value=d,F.value=!0)}catch{console.warn("Custom format cannot be applied."),F.value=!1}if(!F.value){if(s+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${a.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="${a.color}"/></svg>`,t.value.style.chart.tooltip.showValue&&(s+=`<b>${o.applyDataLabel(t.value.style.chart.layout.labels.value.formatter,a.value,o.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,relativeIndex:u,seriesIndex:l})}</b>`),t.value.style.chart.tooltip.showPercentage){const d=o.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,a.proportion*100,o.dataLabel({v:a.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage}),{datapoint:a,relativeIndex:u,seriesIndex:l});t.value.style.chart.tooltip.showValue?s+=`<span>(${d})</span></div>`:s+=`<b>${d}</b></div>`}t.value.style.chart.comments.showInTooltip&&a.comment&&(s+=`<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${a.color}">${a.comment}</div>`),D.value=`<div>${s}</div>`}}function V(a){return t.value.useBlurOnHover&&![null,void 0].includes(g.value)&&g.value!==a?`url(#blur_${h.value})`:""}const x=e.computed(()=>{const a=C.value.map(l=>({name:l.name,color:l.color})),u=C.value.map(l=>l.value);return{head:a,body:u}});function ue(){e.nextTick(()=>{const a=x.value.head.map((n,s)=>[[n.name],[x.value.body[s]],[isNaN(x.value.body[s]/f.value)?"-":x.value.body[s]/f.value*100]]),u=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(a),l=o.createCsvContent(u);o.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-donut"})})}const T=e.computed(()=>{const a=[' <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>',o.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:f.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],u=x.value.head.map((s,v)=>{const d=o.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:x.value.body[v],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue});return[{color:s.color,name:s.name},d,isNaN(x.value.body[v]/f.value)?"-":(x.value.body[v]/f.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:a,body:u,config:l}}),z=e.ref(!1);function xe(a){z.value=a,W.value+=1}const se=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent));function Be(a){return a.toFixed(t.value.style.chart.legend.roundingPercentage).split("").map(u=>"-").join("")}function S(a,u){I("selectDatapoint",{datapoint:a,index:u})}function ie(){c.value.showTable=!c.value.showTable}function ce(){c.value.dataLabels.show=!c.value.dataLabels.show}function de(){c.value.showTooltip=!c.value.showTooltip}return ye({getData:ge,generatePdf:Z,generateCsv:ue,generateImage:ee,toggleTable:ie,toggleLabels:ce,toggleTooltip:de}),(a,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutChart",ref:L,class:e.normalizeClass(`vue-ui-donut ${z.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;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:`donut__${h.value}`},[e.renderSlot(a.$slots,"userConfig",{},void 0,!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:q,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(_e._sfc_main,{key:`title_${R.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&&$.value?(e.openBlock(),e.createBlock(he.UserOptions,{ref_key:"details",ref:pe,key:`user_option_${W.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(K),isImaging:e.unref(Q),uid:h.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:z.value,chartElement:L.value,position:t.value.userOptions.position,isTooltip:c.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},onToggleFullscreen:xe,onGeneratePdf:e.unref(Z),onGenerateCsv:ue,onGenerateImage:e.unref(ee),onToggleTable:ie,onToggleLabels:ce,onToggleTooltip:de},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasLabel","hasFullscreen","isFullscreen","chartElement","position","isTooltip","titles","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":z.value,"vue-data-ui-fulscreen--off":!z.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(Ee._sfc_main),t.value.type==="classic"?(e.openBlock(),e.createElementBlock("defs",Te,[t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("radialGradient",{key:0,id:`gradient_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,De),e.createElementVNode("stop",{offset:`${(1-E.value/p.value)*100}%`,"stop-color":e.unref(o.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,Ye),e.createElementVNode("stop",{offset:`${(1-E.value/p.value/2)*100}%`,"stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.gradientIntensity)},null,8,Me),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,Ae)],8,Xe)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock("defs",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`polar_gradient_${n}_${h.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(o.shiftHue)(y.value[n].color,.05),"stop-opacity":t.value.style.chart.gradientIntensity/100},null,8,Ge),e.createElementVNode("stop",{offset:"100%","stop-color":y.value[n].color},null,8,Re)],8,qe))),256))])):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${h.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${h.value}`},null,8,He),Ue],8,je),e.createElementVNode("filter",{id:`shadow_${h.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,Je)],8,We)]),t.value.type==="classic"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(y.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[b(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(o.calcNutArrowPath)(l,{x:r.value.width/2,y:r.value.height/2},16,16,!1,!1,E.value),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:V(n)},null,8,Ke)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(y.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[b(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].middlePoint.y,offset:24,centerX:r.value.width/2,centerY:r.value.height/2}).x,y1:e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].middlePoint.y,offset:24,centerX:r.value.width/2,centerY:r.value.height/2}).y,x2:i.value[n].middlePoint.x,y2:i.value[n].middlePoint.y,stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:V(n)},null,8,Qe)):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:p.value<=0?10:p.value,fill:t.value.style.chart.backgroundColor,filter:t.value.style.chart.layout.donut.useShadow?`url(#shadow_${h.value})`:""},null,8,Ze)):e.createCommentVNode("",!0),f.value&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(l,n)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:l.arcSlice,fill:"#FFFFFF"},null,8,et))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(l,n)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:e.unref(o.setOpacity)(l.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:V(n)},null,8,tt))),256))],64)):e.createCommentVNode("",!0),f.value&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:6},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(l,n)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:i.value[n].path,fill:"#FFFFFF"},null,8,lt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(l,n)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[n].path,fill:t.value.style.chart.useGradient?`url(#polar_gradient_${n}_${h.value})`:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:V(n)},null,8,at))),256))],64)):(e.openBlock(),e.createElementBlock("circle",{key:7,cx:r.value.width/2,cy:r.value.height/2,r:p.value<=0?10:p.value,fill:"transparent",stroke:t.value.style.chart.backgroundColor},null,8,ot)),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:p.value<=0?10:p.value,fill:`url(#gradient_${h.value})`},null,8,nt)):e.createCommentVNode("",!0),f.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:9},e.renderList(y.value,(l,n)=>(e.openBlock(),e.createElementBlock("path",{"data-cy-donut-trap":"",d:t.value.type==="classic"?l.arcSlice:i.value[n].path,fill:g.value===n?"rgba(0,0,0,0.1)":"transparent",onMouseenter:s=>Ce({datapoint:l,relativeIndex:n,seriesIndex:l.seriesIndex,show:!0}),onMouseleave:u[0]||(u[0]=s=>{X.value=!1,g.value=null}),onClick:s=>S(l,n)},null,40,rt))),256)):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,ut)):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(o.applyDataLabel)(t.value.style.chart.layout.labels.hollow.total.value.formatter,f.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.hollow.total.value.prefix,v:f.value,s:t.value.style.chart.layout.labels.hollow.total.value.suffix}))),13,st)):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,it)):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(_.value?"--":e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.hollow.average.value.formatter,re.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.hollow.average.value.prefix,v:re.value,s:t.value.style.chart.layout.labels.hollow.average.value.suffix,r:t.value.style.chart.layout.labels.hollow.average.value.rounding}))),13,ct)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",{filter:V(n),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(o.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(o.calcMarkerOffsetX)(l).x-120:e.unref(o.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(o.calcMarkerOffsetX)(l).x-60:e.unref(o.calcMarkerOffsetX)(l).x,y:e.unref(o.calcMarkerOffsetY)(l)-(se.value?20:0),width:"120",height:"60",style:{overflow:"visible"}},[e.createElementVNode("div",null,[e.renderSlot(a.$slots,"dataLabel",e.normalizeProps(e.guardReactiveProps({datapoint:l,isBlur:!t.value.useBlurOnHover||[null,void 0].includes(g.value)||g.value===n,isSafari:se.value,isVisible:b(l)&&c.value.dataLabels.show,textAlign:e.unref(o.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(o.calcMarkerOffsetX)(l,!0,16).anchor,percentage:Y(l,y.value)})),void 0,!0)])],8,ht))])):(e.openBlock(),e.createElementBlock("g",ft,[t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[b(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(o.calcMarkerOffsetX)(l).x,cy:e.unref(o.calcMarkerOffsetY)(l)-3.5,fill:l.color,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(g.value)||g.value===n?"":`url(#blur_${h.value})`,onClick:s=>S(l,n)},null,8,yt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[b(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].middlePoint.y,offset:24,centerX:r.value.width/2,centerY:r.value.height/2}).x,cy:e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].middlePoint.y,offset:24,centerX:r.value.width/2,centerY:r.value.height/2}).y,fill:l.color,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(g.value)||g.value===n?"":`url(#blur_${h.value})`,onClick:s=>S(l,n)},null,8,mt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[b(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":e.unref(o.calcMarkerOffsetX)(l,!0,12).anchor,x:e.unref(o.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(o.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=>S(l,n)},e.toDisplayString(Y(l,y.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(o.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,pt)):e.createCommentVNode("",!0),b(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,x:e.unref(o.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(o.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=>S(l,n)},e.toDisplayString(l.name),13,gt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[b(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":P(i.value[n].middlePoint),x:e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x,y:e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].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=>S(l,n)},e.toDisplayString(Y(l,y.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(o.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,bt)):e.createCommentVNode("",!0),b(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":P(i.value[n].middlePoint),x:e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x,y:e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].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=>S(l,n)},e.toDisplayString(l.name),13,kt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),c.value.dataLabels.show&&t.value.style.chart.comments.show&&l.comment?(e.openBlock(),e.createElementBlock("g",wt,[b(l)&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.value.style.chart.comments.offsetX+(e.unref(o.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(o.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width:e.unref(o.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(o.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width/2:e.unref(o.calcMarkerOffsetX)(l).x),y:e.unref(o.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(a.$slots,"plot-comment",{plot:{...l,textAlign:e.unref(o.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(o.calcMarkerOffsetX)(l,!0,16).anchor}},void 0,!0)])],8,Ct)):e.createCommentVNode("",!0),b(l)&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:t.value.style.chart.comments.offsetX+(P(i.value[n].middlePoint)==="end"?e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x-t.value.style.chart.comments.width:P(i.value[n].middlePoint)==="middle"?e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x-t.value.style.chart.comments.width/2:e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x),y:ke(i.value[n])+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(a.$slots,"plot-comment",{plot:{...l,textAlign:P(i.value[n].middlePoint),flexAlign:P(i.value[n].middlePoint)}},void 0,!0)])],8,xt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,dt))),256)),e.renderSlot(a.$slots,"svg",{svg:r.value},void 0,!0)],14,Oe)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Bt,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(K)||e.unref(Q)})),void 0,!0)])):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($e.default,{key:4,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC",strokeWidth:E.value*.8}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:G},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Ne.Legend,{key:`legend_${H.value}`,legendSet:ne.value,config:be.value,onClickMarker:u[1]||(u[1]=({i:l})=>oe(l))},{item:e.withCtx(({legend:l,index:n})=>[e.createElementVNode("div",{onClick:s=>l.segregate(),style:e.normalizeStyle(`opacity:${w.value.includes(n)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(o.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:n}))+" ",1),w.value.includes(n)?(e.openBlock(),e.createElementBlock("span",Pt," ( "+e.toDisplayString(Be(l.proportion*100))+" % ) ",1)):(e.openBlock(),e.createElementBlock("span",St," ("+e.toDisplayString(isNaN(l.value/f.value)?"-":e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,_.value?l.proportion*100:l.value/f.value*100,e.unref(o.dataLabel)({v:_.value?l.proportion*100:l.value/f.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage})))+") ",1))],12,_t)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:ne.value},void 0,!0)],512),e.createVNode(Pe._sfc_main,{show:c.value.showTooltip&&X.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:L.value,content:D.value,isCustom:F.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...M.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...M.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),$.value?(e.openBlock(),e.createBlock(Le.default,{key:5,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(Se.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[2]||(u[2]=l=>c.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Nt)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name?l.name:isNaN(Number(l))?l.includes("%")?l:e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,l,e.unref(o.dataLabel)({v:l,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding})):e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l,e.unref(o.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)],14,ze))}},Lt=Fe._export_sfc($t,[["__scopeId","data-v-2ebaf5df"]]);exports.default=Lt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-D09qCApg.cjs"),be=require("./Title-Bjrh7khe.cjs"),se=require("./usePrinter-DdsPm5a4.cjs"),xe=require("./DataTable-oa0Srfuc.cjs"),Be=require("./Legend-Dhm9_peB.cjs"),Ce=require("./vue-ui-skeleton-CAlTn_Cg.cjs"),_e=require("./Slicer-B7ya0m2Q.cjs"),Ee=require("./vue-ui-accordion-BAHX7KzB.cjs"),ce=require("./useNestedProp-Bwd7mK1Z.cjs"),Ne=require("./PackageVersion-BkgJVmj1.cjs"),we=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=["id"],Le=["xmlns","viewBox"],Ve=["id"],ze=["stop-color"],$e=["stop-color"],Fe=["id"],Ae=["stop-color"],De=["stop-color"],Pe=["stop-color"],Te={key:0},Oe=["x1","x2","y1","y2","stroke","stroke-width"],Ie=["x1","x2","y1","y2","stroke","stroke-width"],Me={key:0},He=["x1","x2","y1","y2","stroke","stroke-width"],Re=["x1","x2","y1","y2","stroke","stroke-width"],We=["x","y","font-size","fill","font-weight"],qe=["text-anchor","font-size","fill","transform"],Ue=["x1","y1","x2","y2","stroke","stroke-width"],Xe={key:1},Ge=["cx","cy","r","fill"],Ye={key:0},je={key:0},Ke=["d","stroke"],Je=["text-anchor","x","y","fill"],Qe=["cx","cy","r","fill"],Ze={key:0},et=["cx","cy","fill"],tt={key:1},lt=["d","fill","stroke"],at={key:2},ot=["d","fill","stroke"],ut=["x","y","font-size","fill"],rt=["x","y","width","fill","onClick"],nt=["x","y","width","height","onMouseenter","onClick"],st={key:3,"data-cy-zoom":"",class:"vue-ui-donut-evolution-dialog"},ct=["x","y","width","height","fill"],it=["x1","y1","x2","y2","stroke"],dt=["x1","y2","x2","y1","stroke"],vt=["onKeypress","cx","cy","r"],ht=["d","stroke"],yt=["cx","cy","r","fill"],mt=["d","fill","stroke"],ft={class:"vue-ui-donut-evolution-focus"},gt=["text-anchor","x","y","fill"],pt=["cx","cy","r","fill"],kt=["cx","cy","r","fill"],bt=["x","y","fill"],xt=["x","y","font-size","fill"],Bt={key:3,class:"vue-data-ui-watermark"},Ct=["onClick"],_t={key:0},Et={key:1},Nt={key:0},wt={key:1},St={__name:"vue-ui-donut-evolution",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(ie,{expose:de,emit:M}){const p=ie,{vue_ui_donut_evolution:ve}=r.useConfig(),z=e.computed(()=>!!p.dataset&&p.dataset.length),i=e.ref({start:0,end:Math.max(...p.dataset.map(a=>a.values.length))});function H(){i.value={start:0,end:L.value},U.value+=1}e.onMounted(()=>{R()});function R(){r.objectIsEmpty(p.dataset)?r.error({componentName:"VueUiDonutEvolution",type:"dataset"}):p.dataset.length&&p.dataset.forEach((a,c)=>{r.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","values"]}).forEach(l=>{r.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:l,index:c})})})}const _=e.ref(r.createUid()),y=e.ref([]),h=e.ref(null),A=e.ref(null),k=e.ref(!1),b=e.ref(null),W=e.ref(null),q=e.ref(0),U=e.ref(0),X=e.ref(0),G=e.ref(0),Y=e.ref(0),t=e.computed({get:()=>j(),set:a=>a});function j(){const a=ce.useNestedProp({userConfig:p.config,defaultConfig:ve});return a.theme?{...ce.useNestedProp({userConfig:r.themes.vue_ui_donut_evolution[a.theme]||p.config,defaultConfig:a}),customPalette:r.themePalettes[a.theme]||r.palette}:a}e.watch(()=>p.config,a=>{t.value=j(),R(),X.value+=1,G.value+=1,Y.value+=1},{deep:!0}),e.watch(()=>p.dataset,a=>{H()},{deep:!0});const{isPrinting:K,isImaging:J,generatePdf:Q,generateImage:Z}=se.usePrinter({elementId:_.value,fileName:t.value.style.chart.title.text||"vue-ui-donut-evolution"}),he=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),$=e.ref({showTable:t.value.table.show}),u=e.computed(()=>({top:t.value.style.chart.layout.padding.top,right:t.value.style.chart.layout.padding.right,bottom:t.value.style.chart.layout.padding.bottom,left:t.value.style.chart.layout.padding.left})),n=e.computed(()=>{const a=t.value.style.chart.layout.height,c=t.value.style.chart.layout.width,l=a-u.value.top-u.value.bottom,s=c-u.value.left-u.value.right;return{absoluteHeight:a,absoluteWidth:c,centerX:u.value.left+s/2,centerY:u.value.top+l/2,height:l,width:s}}),C=e.computed(()=>(p.dataset.forEach((a,c)=>{[null,void 0].includes(a.name)&&r.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"name",index:c}),[null,void 0].includes(a.values)&&r.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"values",index:c})}),p.dataset.map((a,c)=>({...a,values:r.sanitizeArray(a.values),color:r.convertColorToHex(a.color)||he.value[c]||r.palette[c]||r.palette[c%r.palette.length],length:(a.values||[]).length,uid:r.createUid()})))),S=e.computed(()=>C.value.filter(a=>!y.value.includes(a.uid)).map(a=>({...a,values:a.values.filter((c,l)=>l>=i.value.start&&l<=i.value.end)}))),L=e.computed(()=>Math.max(...S.value.map(a=>a.length))),f=e.computed(()=>n.value.width/(i.value.end-i.value.start)),m=e.computed(()=>{const a=[];for(let o=0;o<i.value.end-i.value.start;o+=1){const v=S.value.map(B=>B.values[o]??null),d=v.filter(B=>[void 0,null].includes(B)).length===v.length,x=v.reduce((B,g)=>B+g,0),I=v.map(B=>B/x),w=u.value.left+f.value*o+f.value/2;a.push({index:o,percentages:I,subtotal:d||x<0?null:x,values:v,x:w})}const c=0,l=Math.max(...a.map(o=>o.subtotal)),s=a.length===1?l*2:l;return a.map((o,v)=>{const d=f.value/2*.7,x=d>n.value.width/16?n.value.width/16:d,I=h.value===o.index?n.value.width/16:x,w=a.length>4?d*2:d*2>f.value/2*.7?f.value/2*.7:d*2,B=n.value.absoluteHeight-u.value.bottom-n.value.height*o.subtotal/r.calculateNiceScale(c,s,t.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;return{...o,y:B,radius:x,activeRadius:I,hoverRadius:w,donut:r.makeDonut({series:S.value.map((g,ne)=>({color:g.color,name:g.name,value:g.values[v]??0}))},o.x,B,x,x,1.99999,2,1,360,105.25,x/2),donutHover:r.makeDonut({series:S.value.map((g,ne)=>({color:g.color,name:g.name,value:g.values[v]??0}))},o.x,B,w,w,1.99999,2,1,360,105.25,w/2),donutFocus:r.makeDonut({series:S.value.map((g,ne)=>({color:g.color,name:g.name,value:g.values[v]??0}))},n.value.centerX,n.value.centerY,n.value.height/3.6,n.value.height/3.6,1.99999,2,1,360,105.25,n.value.height/6)}})});function F(a,c,l){return r.applyDataLabel(t.value.style.chart.layout.dataLabels.formatter,a,r.dataLabel({p:t.value.style.chart.layout.dataLabels.prefix,v:a,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.layout.dataLabels.rounding}),{datapoint:c,index:l})}const D=e.computed(()=>({max:Math.max(...m.value.map(a=>a.subtotal)),min:0})),E=e.computed(()=>{const a=m.value.length===1?D.value.max*2:D.value.max;return r.calculateNiceScale(D.value.min,a,t.value.style.chart.layout.grid.yAxis.dataLabels.steps)});function ye(a){return a/E.value.max}const me=e.computed(()=>E.value.ticks.map(a=>({y:n.value.absoluteHeight-u.value.bottom-n.value.height*ye(a),value:a})));function ee(a,c){return isNaN(a.value/r.sumByAttribute(c,"value"))?0:(a.value/r.sumByAttribute(c,"value")*100).toFixed(0)+"%"}function te(){k.value||(h.value=null,A.value=null)}function fe(a){k.value||(h.value=a.index,A.value=a)}const P=e.ref(null);function T(a,c){a.subtotal&&(A.value=null,h.value=null,k.value=!0,b.value=a,[null,void 0].includes(c)||(P.value=c))}function le(){b.value=null,k.value=!1,P.value=null}const ae=e.computed(()=>C.value.map((a,c)=>({name:a.name,value:a.values.slice(i.value.start,i.value.end).reduce((l,s)=>l+s,0),shape:"circle",uid:a.uid,color:a.color})).sort((a,c)=>c.value-a.value).map(a=>({...a,opacity:y.value.includes(a.uid)?.5:1,segregate:()=>O(a.uid),isSegregated:y.value.includes(a.uid)}))),oe=e.computed(()=>m.value.map(a=>a.subtotal).reduce((a,c)=>a+c,0)),ge=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""}));function O(a){if(y.value.includes(a))y.value=y.value.filter(c=>c!==a),M("selectLegend",null);else{if(y.value.length===C.value.length-1)return;y.value.push(a),M("selectLegend",C.value.find(c=>c.uid===a))}b.value&&T(m.value.find((c,l)=>l===P.value))}const N=e.computed(()=>{const a=[""].concat(C.value.filter(o=>!y.value.includes(o.uid)).map(o=>({name:o.name,color:o.color}))).concat(["Σ"]);let c=[];for(let o=0;o<L.value;o+=1){const v=C.value.filter(d=>!y.value.includes(d.uid)).map(d=>d.values[o]??0).reduce((d,x)=>d+x,0);c.push([t.value.style.chart.layout.grid.xAxis.dataLabels.values[o]??"-"].concat(C.value.filter(d=>!y.value.includes(d.uid)).map(d=>({value:d.values[o]??0,percentage:d.values[o]?d.values[o]/v*100:0}))).concat([`${t.value.style.chart.layout.dataLabels.prefix}${Number(v.toFixed(t.value.table.td.roundingValue))}${t.value.style.chart.layout.dataLabels.suffix}`]))}const l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint},s=[t.value.table.columnNames.period].concat(C.value.filter(o=>!y.value.includes(o.uid)).map(o=>o.name)).concat(t.value.table.columnNames.total);return{head:a,body:c,config:l,colNames:s}});function pe(){return C.value}function ue(){e.nextTick(()=>{const a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],c=[...N.value.head.map(v=>v.name??v)],l=[...N.value.body.map(v=>v.map(d=>d.value??d))],s=a.concat([c]).concat(l),o=r.createCsvContent(s);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-donut-evolution"})})}const V=e.ref(!1);function ke(a){V.value=a,q.value+=1}function re(){$.value.showTable=!$.value.showTable}return de({getData:pe,generatePdf:Q,generateCsv:ue,generateImage:Z,toggleTable:re}),(a,c)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutEvolutionChart",ref:W,class:e.normalizeClass(`vue-ui-donut-evolution ${V.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:_.value},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:"width:100%;background:transparent;padding-bottom:24px",onMouseleave:te},[(e.openBlock(),e.createBlock(be._sfc_main,{key:`title_${X.value}`,config:{title:{cy:"donut-evolution-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-evolution-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],32)):e.createCommentVNode("",!0),t.value.userOptions.show&&z.value?(e.openBlock(),e.createBlock(se.UserOptions,{ref:"details",key:`user_options_${q.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(K),isImaging:e.unref(J),uid:_.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:W.value,position:t.value.userOptions.position,onToggleFullscreen:ke,onGeneratePdf:e.unref(Q),onGenerateCsv:ue,onGenerateImage:e.unref(Z),onToggleTable:re},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:s})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:s})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),z.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${n.value.absoluteWidth} ${n.value.absoluteHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ne._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`hover_${_.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.backgroundColor,t.value.style.chart.layout.highlighter.opacity)},null,8,ze),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.layout.highlighter.color,t.value.style.chart.layout.highlighter.opacity)},null,8,$e)],8,Ve),e.createElementVNode("radialGradient",{id:`focus_${_.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.convertColorToHex)(t.value.style.chart.backgroundColor),0)},null,8,Ae),e.createElementVNode("stop",{offset:"77%","stop-color":e.unref(r.setOpacity)("#FFFFFF",30)},null,8,De),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.convertColorToHex)(t.value.style.chart.backgroundColor),0)},null,8,Pe)],8,Fe)]),t.value.style.chart.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Te,[e.createElementVNode("line",{x1:u.value.left,x2:u.value.left,y1:u.value.top,y2:u.value.top+n.value.height,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Oe),e.createElementVNode("line",{x1:u.value.left,x2:n.value.absoluteWidth-u.value.right,y1:n.value.absoluteHeight-u.value.bottom,y2:n.value.absoluteHeight-u.value.bottom,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ie),t.value.style.chart.layout.grid.showVerticalLines?(e.openBlock(),e.createElementBlock("g",Me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.end-i.value.start,(l,s)=>(e.openBlock(),e.createElementBlock("line",{x1:u.value.left+(s+1)*f.value,x2:u.value.left+(s+1)*f.value,y1:u.value.top,y2:n.value.absoluteHeight-u.value.bottom,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,He))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.chart.layout.grid.yAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:1,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":h.value!==null||k.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(me.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l.value>=E.value.min&&l.value<=E.value.max?(e.openBlock(),e.createElementBlock("line",{key:0,x1:u.value.left,x2:u.value.left-5,y1:l.y,y2:l.y,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,Re)):e.createCommentVNode("",!0),l.value>=E.value.min&&l.value<=E.value.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:u.value.left-8+t.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,y:l.y+t.value.style.chart.layout.grid.yAxis.dataLabels.fontSize/3,"font-size":t.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,"text-anchor":"end",fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-weight":t.value.style.chart.layout.grid.yAxis.dataLabels.bold?"bold":"normal"},e.toDisplayString(e.unref(r.canShowValue)(l.value)?e.unref(r.applyDataLabel)(t.value.style.chart.layout.dataLabels.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue}),{datapoint:l,seriesIndex:s}):""),9,We)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),t.value.style.chart.layout.grid.xAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:2,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":k.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.end-i.value.start,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast&&(s===0||s===L.value-1)||!t.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":t.value.style.chart.layout.grid.xAxis.dataLabels.rotation>0?"start":t.value.style.chart.layout.grid.xAxis.dataLabels.rotation<0?"end":"middle","font-size":t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,fill:t.value.style.chart.layout.grid.xAxis.dataLabels.color,transform:`translate(${u.value.left+f.value*s+f.value/2}, ${t.value.style.chart.layout.grid.xAxis.dataLabels.offsetY+n.value.absoluteHeight-u.value.bottom+t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2}), rotate(${t.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`},e.toDisplayString(t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(s)+Number(i.value.start)]??""),9,qe)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.line.show&&s<m.value.length-1&&![l.subtotal,m.value[s+1].subtotal].includes(null)?(e.openBlock(),e.createElementBlock("line",{key:0,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":h.value!==null||k.value}),x1:l.x,y1:l.y,x2:m.value[s+1].x,y2:m.value[s+1].y,stroke:t.value.style.chart.layout.line.stroke,"stroke-width":t.value.style.chart.layout.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,10,Ue)):e.createCommentVNode("",!0),l.subtotal!==null?(e.openBlock(),e.createElementBlock("g",Xe,[l.subtotal?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:l.activeRadius,fill:t.value.style.chart.backgroundColor},null,8,Ge)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||k.value})},[l.subtotal?(e.openBlock(),e.createElementBlock("g",Ye,[h.value!==null&&h.value===s?(e.openBlock(),e.createElementBlock("g",je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,o=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{d:e.unref(r.calcNutArrowPath)(o,{x:o.center.endX,y:o.center.endY},12,12,{x:l.x,y:l.y},!0,20),stroke:o.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,Ke)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,(o,v)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("text",{"data-cy-hover-label":"","text-anchor":e.unref(r.calcMarkerOffsetX)(o,!0,0).anchor,x:e.unref(r.calcMarkerOffsetX)(o,!0,3).x,y:e.unref(r.calcMarkerOffsetY)(o),fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":8,"font-weight":"bold"},e.toDisplayString(o.name)+": "+e.toDisplayString(ee(o,l.donut))+" ("+e.toDisplayString(o.value===null?"-":F(o.value,o,v))+") ",9,Je)]))),256)),e.createElementVNode("g",null,[e.createElementVNode("circle",{cx:l.x,cy:l.y,r:l.hoverRadius,fill:t.value.style.chart.backgroundColor},null,8,Qe)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||k.value})},[l.subtotal!==null?(e.openBlock(),e.createElementBlock("g",Ze,[l.subtotal===0?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:3,fill:t.value.style.chart.color},null,8,et)):h.value!==null&&h.value===s?(e.openBlock(),e.createElementBlock("g",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,(o,v)=>(e.openBlock(),e.createElementBlock("path",{d:o.arcSlice,fill:`${o.color}`,"stroke-width":1,stroke:t.value.style.chart.backgroundColor},null,8,lt))),256))])):(e.openBlock(),e.createElementBlock("g",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donut,(o,v)=>(e.openBlock(),e.createElementBlock("path",{d:o.arcSlice,fill:`${o.color}`,"stroke-width":.5,stroke:t.value.style.chart.backgroundColor},null,8,ot))),256))]))])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||k.value})},[l.subtotal!==null&&t.value.style.chart.layout.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:l.x,y:h.value===l.index&&l.subtotal?l.y+t.value.style.chart.layout.dataLabels.fontSize/3:l.y-l.radius-t.value.style.chart.layout.dataLabels.fontSize+t.value.style.chart.layout.dataLabels.offsetY,"font-size":t.value.style.chart.layout.dataLabels.fontSize,"font-weight":"bold",fill:t.value.style.chart.layout.dataLabels.color},e.toDisplayString(F(l.subtotal,l,s)),9,ut)):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,s)=>(e.openBlock(),e.createElementBlock("rect",{x:u.value.left+s*f.value,y:n.value.absoluteHeight-u.value.bottom-10,width:f.value,height:10,fill:h.value===l.index?`url(#hover_${_.value})`:"transparent",onClick:o=>T(l,s),class:e.normalizeClass({"donut-hover":h.value===l.index&&l.subtotal})},null,10,rt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,s)=>(e.openBlock(),e.createElementBlock("rect",{"data-cy-trap":"",x:u.value.left+s*f.value,y:u.value.top,width:f.value,height:n.value.height,fill:"transparent",onMouseenter:o=>fe(l),onMouseleave:te,onClick:o=>T(l,s),class:e.normalizeClass({"donut-hover":h.value===l.index&&l.subtotal})},null,42,nt))),256)),k.value?(e.openBlock(),e.createElementBlock("g",st,[e.createElementVNode("rect",{rx:4,x:u.value.left,y:u.value.top,width:n.value.width,height:n.value.height,fill:t.value.style.chart.backgroundColor,style:{filter:"drop-shadow(0 12px 12px rgba(0,0,0,0.3))"}},null,8,ct),e.createElementVNode("line",{"data-html2canvas-ignore":"",x1:n.value.absoluteWidth-u.value.right-15,y1:u.value.top+5,x2:n.value.absoluteWidth-u.value.right-4,y2:u.value.top+15.5,"stroke-linecap":"round",stroke:t.value.style.chart.color,"stroke-width":"1.5"},null,8,it),e.createElementVNode("line",{"data-html2canvas-ignore":"",x1:n.value.absoluteWidth-u.value.right-15,y2:u.value.top+5,x2:n.value.absoluteWidth-u.value.right-4,y1:u.value.top+15.5,"stroke-linecap":"round",stroke:t.value.style.chart.color,"stroke-width":"1.5"},null,8,dt),e.createElementVNode("circle",{"data-cy-close":"",onClick:le,onKeypress:e.withKeys(le,["enter"]),cx:n.value.absoluteWidth-u.value.right-n.value.width/40,cy:u.value.top+n.value.height/30,r:n.value.height/12,fill:"transparent",style:{cursor:"pointer"},tabindex:"0"},null,40,vt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.donutFocus,l=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{"data-cy-zoom-donut":"",d:e.unref(r.calcNutArrowPath)(l,{x:n.value.centerX,y:n.value.centerY},12,12,!1,!1,15),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:"vue-ui-donut-evolution-focus"},null,8,ht)]))),256)),e.createElementVNode("circle",{cx:u.value.left+n.value.width/2,cy:u.value.top+n.value.height/2,r:n.value.height/7,fill:t.value.style.chart.backgroundColor},null,8,yt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.donutFocus,(l,s)=>(e.openBlock(),e.createElementBlock("path",{d:l.arcSlice,fill:`${l.color}`,"stroke-width":1,stroke:t.value.style.chart.backgroundColor,class:"vue-ui-donut-evolution-focus"},null,8,mt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.donutFocus,(l,s)=>(e.openBlock(),e.createElementBlock("g",ft,[e.createElementVNode("text",{"text-anchor":e.unref(r.calcMarkerOffsetX)(l,!0,20).anchor,x:e.unref(r.calcMarkerOffsetX)(l,!0,10).x,y:e.unref(r.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":10,"font-weight":"bold"},e.toDisplayString(l.name)+": "+e.toDisplayString(ee(l,b.value.donutFocus))+" ("+e.toDisplayString(l.value===null?"-":F(l.value,l,s))+") ",9,gt)]))),256)),e.createElementVNode("circle",{cx:u.value.left+n.value.width/2,cy:u.value.top+n.value.height/2,r:n.value.height/3.8,fill:`url(#focus_${_.value})`},null,8,pt),e.createElementVNode("circle",{cx:u.value.left+n.value.width/2,cy:u.value.top+n.value.height/2,r:n.value.height/7.7,fill:t.value.style.chart.backgroundColor},null,8,kt),e.createElementVNode("text",{"text-anchor":"middle",x:u.value.left+n.value.width/2,y:u.value.top+n.value.height/2+14/3,"font-size":14,"font-weight":"bold",fill:t.value.style.chart.layout.dataLabels.color,class:"vue-ui-donut-evolution-focus"},e.toDisplayString(F(b.value.subtotal,b.value,null)),9,bt),t.value.style.chart.layout.grid.xAxis.dataLabels.values[b.value.index]?(e.openBlock(),e.createElementBlock("text",{key:0,x:u.value.left+6,y:u.value.top+t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2,"font-size":t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*1.6,fill:t.value.style.chart.layout.dataLabels.color},e.toDisplayString(t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(b.value.index)+Number(i.value.start)]),9,xt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:n.value},void 0,!0)],14,Le)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Bt,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(K)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),z.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ce.default,{key:4,config:{type:"donutEvolution",style:{backgroundColor:t.value.style.chart.backgroundColor,donutEvolution:{axis:{color:"#CCCCCC"},donuts:{color:"#CCCCCC"}}}}},null,8,["config"])),L.value>1&&t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(_e.Slicer,{key:`slicer_${U.value}`,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,fontSize:t.value.style.chart.zoom.fontSize,useResetSlot:t.value.style.chart.zoom.useResetSlot,labelLeft:t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(i.value.start)]||"",labelRight:t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(i.value.end)-1]||"",textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,max:L.value,min:0,valueStart:i.value.start,valueEnd:i.value.end,start:i.value.start,"onUpdate:start":c[0]||(c[0]=l=>i.value.start=l),end:i.value.end,"onUpdate:end":c[1]||(c[1]=l=>i.value.end=l),onReset:H},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(a.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end"])):e.createCommentVNode("",!0),t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Be.Legend,{key:`legend_${Y.value}`,legendSet:ae.value,config:ge.value,onClickMarker:c[2]||(c[2]=({legend:l})=>O(l.uid))},{item:e.withCtx(({legend:l,index:s})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:o=>O(l.uid),style:e.normalizeStyle(`opacity:${y.value.includes(l.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.dataLabels.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:s}))+" ",1),y.value.includes(l.uid)?(e.openBlock(),e.createElementBlock("span",Et," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",_t," ("+e.toDisplayString(isNaN(l.value/oe.value)?"-":e.unref(r.dataLabel)({v:l.value/oe.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,Ct)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:ae.value},void 0,!0),z.value?(e.openBlock(),e.createBlock(Ee.default,{key:7,hideDetails:"",config:{open:$.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(xe.DataTable,{key:`table_${G.value}`,colNames:N.value.colNames,head:N.value.head,body:N.value.body,config:N.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:c[3]||(c[3]=l=>$.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l.name??l),1)]),td:e.withCtx(({td:l})=>[l.value===null?(e.openBlock(),e.createElementBlock("span",Nt,"-")):(e.openBlock(),e.createElementBlock("b",wt,e.toDisplayString(isNaN(l.value)?"":t.value.style.chart.layout.dataLabels.prefix)+e.toDisplayString(!isNaN(l.value)&&l.value!==null?Number(l.value.toFixed(t.value.table.td.roundingValue)).toLocaleString():l)+e.toDisplayString(isNaN(l.value)?"":t.value.style.chart.layout.dataLabels.suffix),1)),e.createElementVNode("span",null,e.toDisplayString(l.percentage&&!isNaN(l.percentage)?`(${Number(l.percentage.toFixed(t.value.table.td.roundingPercentage)).toLocaleString()}%)`:""),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Se))}},Lt=we._export_sfc(St,[["__scopeId","data-v-715ec8d1"]]);exports.default=Lt;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-jAZxyteD.cjs"),be=require("./Title-DAEaaXFr.cjs"),se=require("./usePrinter-Cx-xmAjb.cjs"),xe=require("./DataTable-kOScyzFF.cjs"),Be=require("./Legend-BJdr5n-o.cjs"),Ce=require("./vue-ui-skeleton-C14g9G-o.cjs"),_e=require("./Slicer-C0R4JA2q.cjs"),Ee=require("./vue-ui-accordion-WXKee19V.cjs"),ce=require("./useNestedProp-DksYpyh6.cjs"),Ne=require("./PackageVersion-Tm6EPIDH.cjs"),we=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=["id"],Le=["xmlns","viewBox"],Ve=["id"],ze=["stop-color"],$e=["stop-color"],Fe=["id"],Ae=["stop-color"],De=["stop-color"],Pe=["stop-color"],Te={key:0},Oe=["x1","x2","y1","y2","stroke","stroke-width"],Ie=["x1","x2","y1","y2","stroke","stroke-width"],Me={key:0},He=["x1","x2","y1","y2","stroke","stroke-width"],Re=["x1","x2","y1","y2","stroke","stroke-width"],We=["x","y","font-size","fill","font-weight"],qe=["text-anchor","font-size","fill","transform"],Ue=["x1","y1","x2","y2","stroke","stroke-width"],Xe={key:1},Ge=["cx","cy","r","fill"],Ye={key:0},je={key:0},Ke=["d","stroke"],Je=["text-anchor","x","y","fill"],Qe=["cx","cy","r","fill"],Ze={key:0},et=["cx","cy","fill"],tt={key:1},lt=["d","fill","stroke"],at={key:2},ot=["d","fill","stroke"],ut=["x","y","font-size","fill"],rt=["x","y","width","fill","onClick"],nt=["x","y","width","height","onMouseenter","onClick"],st={key:3,"data-cy-zoom":"",class:"vue-ui-donut-evolution-dialog"},ct=["x","y","width","height","fill"],it=["x1","y1","x2","y2","stroke"],dt=["x1","y2","x2","y1","stroke"],vt=["onKeypress","cx","cy","r"],ht=["d","stroke"],yt=["cx","cy","r","fill"],mt=["d","fill","stroke"],ft={class:"vue-ui-donut-evolution-focus"},gt=["text-anchor","x","y","fill"],pt=["cx","cy","r","fill"],kt=["cx","cy","r","fill"],bt=["x","y","fill"],xt=["x","y","font-size","fill"],Bt={key:3,class:"vue-data-ui-watermark"},Ct=["onClick"],_t={key:0},Et={key:1},Nt={key:0},wt={key:1},St={__name:"vue-ui-donut-evolution",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(ie,{expose:de,emit:M}){const p=ie,{vue_ui_donut_evolution:ve}=r.useConfig(),z=e.computed(()=>!!p.dataset&&p.dataset.length),i=e.ref({start:0,end:Math.max(...p.dataset.map(a=>a.values.length))});function H(){i.value={start:0,end:L.value},U.value+=1}e.onMounted(()=>{R()});function R(){r.objectIsEmpty(p.dataset)?r.error({componentName:"VueUiDonutEvolution",type:"dataset"}):p.dataset.length&&p.dataset.forEach((a,c)=>{r.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","values"]}).forEach(l=>{r.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:l,index:c})})})}const _=e.ref(r.createUid()),y=e.ref([]),h=e.ref(null),A=e.ref(null),k=e.ref(!1),b=e.ref(null),W=e.ref(null),q=e.ref(0),U=e.ref(0),X=e.ref(0),G=e.ref(0),Y=e.ref(0),t=e.computed({get:()=>j(),set:a=>a});function j(){const a=ce.useNestedProp({userConfig:p.config,defaultConfig:ve});return a.theme?{...ce.useNestedProp({userConfig:r.themes.vue_ui_donut_evolution[a.theme]||p.config,defaultConfig:a}),customPalette:r.themePalettes[a.theme]||r.palette}:a}e.watch(()=>p.config,a=>{t.value=j(),R(),X.value+=1,G.value+=1,Y.value+=1},{deep:!0}),e.watch(()=>p.dataset,a=>{H()},{deep:!0});const{isPrinting:K,isImaging:J,generatePdf:Q,generateImage:Z}=se.usePrinter({elementId:_.value,fileName:t.value.style.chart.title.text||"vue-ui-donut-evolution"}),he=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),$=e.ref({showTable:t.value.table.show}),u=e.computed(()=>({top:t.value.style.chart.layout.padding.top,right:t.value.style.chart.layout.padding.right,bottom:t.value.style.chart.layout.padding.bottom,left:t.value.style.chart.layout.padding.left})),n=e.computed(()=>{const a=t.value.style.chart.layout.height,c=t.value.style.chart.layout.width,l=a-u.value.top-u.value.bottom,s=c-u.value.left-u.value.right;return{absoluteHeight:a,absoluteWidth:c,centerX:u.value.left+s/2,centerY:u.value.top+l/2,height:l,width:s}}),C=e.computed(()=>(p.dataset.forEach((a,c)=>{[null,void 0].includes(a.name)&&r.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"name",index:c}),[null,void 0].includes(a.values)&&r.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"values",index:c})}),p.dataset.map((a,c)=>({...a,values:r.sanitizeArray(a.values),color:r.convertColorToHex(a.color)||he.value[c]||r.palette[c]||r.palette[c%r.palette.length],length:(a.values||[]).length,uid:r.createUid()})))),S=e.computed(()=>C.value.filter(a=>!y.value.includes(a.uid)).map(a=>({...a,values:a.values.filter((c,l)=>l>=i.value.start&&l<=i.value.end)}))),L=e.computed(()=>Math.max(...S.value.map(a=>a.length))),f=e.computed(()=>n.value.width/(i.value.end-i.value.start)),m=e.computed(()=>{const a=[];for(let o=0;o<i.value.end-i.value.start;o+=1){const v=S.value.map(B=>B.values[o]??null),d=v.filter(B=>[void 0,null].includes(B)).length===v.length,x=v.reduce((B,g)=>B+g,0),I=v.map(B=>B/x),w=u.value.left+f.value*o+f.value/2;a.push({index:o,percentages:I,subtotal:d||x<0?null:x,values:v,x:w})}const c=0,l=Math.max(...a.map(o=>o.subtotal)),s=a.length===1?l*2:l;return a.map((o,v)=>{const d=f.value/2*.7,x=d>n.value.width/16?n.value.width/16:d,I=h.value===o.index?n.value.width/16:x,w=a.length>4?d*2:d*2>f.value/2*.7?f.value/2*.7:d*2,B=n.value.absoluteHeight-u.value.bottom-n.value.height*o.subtotal/r.calculateNiceScale(c,s,t.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;return{...o,y:B,radius:x,activeRadius:I,hoverRadius:w,donut:r.makeDonut({series:S.value.map((g,ne)=>({color:g.color,name:g.name,value:g.values[v]??0}))},o.x,B,x,x,1.99999,2,1,360,105.25,x/2),donutHover:r.makeDonut({series:S.value.map((g,ne)=>({color:g.color,name:g.name,value:g.values[v]??0}))},o.x,B,w,w,1.99999,2,1,360,105.25,w/2),donutFocus:r.makeDonut({series:S.value.map((g,ne)=>({color:g.color,name:g.name,value:g.values[v]??0}))},n.value.centerX,n.value.centerY,n.value.height/3.6,n.value.height/3.6,1.99999,2,1,360,105.25,n.value.height/6)}})});function F(a,c,l){return r.applyDataLabel(t.value.style.chart.layout.dataLabels.formatter,a,r.dataLabel({p:t.value.style.chart.layout.dataLabels.prefix,v:a,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.layout.dataLabels.rounding}),{datapoint:c,index:l})}const D=e.computed(()=>({max:Math.max(...m.value.map(a=>a.subtotal)),min:0})),E=e.computed(()=>{const a=m.value.length===1?D.value.max*2:D.value.max;return r.calculateNiceScale(D.value.min,a,t.value.style.chart.layout.grid.yAxis.dataLabels.steps)});function ye(a){return a/E.value.max}const me=e.computed(()=>E.value.ticks.map(a=>({y:n.value.absoluteHeight-u.value.bottom-n.value.height*ye(a),value:a})));function ee(a,c){return isNaN(a.value/r.sumByAttribute(c,"value"))?0:(a.value/r.sumByAttribute(c,"value")*100).toFixed(0)+"%"}function te(){k.value||(h.value=null,A.value=null)}function fe(a){k.value||(h.value=a.index,A.value=a)}const P=e.ref(null);function T(a,c){a.subtotal&&(A.value=null,h.value=null,k.value=!0,b.value=a,[null,void 0].includes(c)||(P.value=c))}function le(){b.value=null,k.value=!1,P.value=null}const ae=e.computed(()=>C.value.map((a,c)=>({name:a.name,value:a.values.slice(i.value.start,i.value.end).reduce((l,s)=>l+s,0),shape:"circle",uid:a.uid,color:a.color})).sort((a,c)=>c.value-a.value).map(a=>({...a,opacity:y.value.includes(a.uid)?.5:1,segregate:()=>O(a.uid),isSegregated:y.value.includes(a.uid)}))),oe=e.computed(()=>m.value.map(a=>a.subtotal).reduce((a,c)=>a+c,0)),ge=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""}));function O(a){if(y.value.includes(a))y.value=y.value.filter(c=>c!==a),M("selectLegend",null);else{if(y.value.length===C.value.length-1)return;y.value.push(a),M("selectLegend",C.value.find(c=>c.uid===a))}b.value&&T(m.value.find((c,l)=>l===P.value))}const N=e.computed(()=>{const a=[""].concat(C.value.filter(o=>!y.value.includes(o.uid)).map(o=>({name:o.name,color:o.color}))).concat(["Σ"]);let c=[];for(let o=0;o<L.value;o+=1){const v=C.value.filter(d=>!y.value.includes(d.uid)).map(d=>d.values[o]??0).reduce((d,x)=>d+x,0);c.push([t.value.style.chart.layout.grid.xAxis.dataLabels.values[o]??"-"].concat(C.value.filter(d=>!y.value.includes(d.uid)).map(d=>({value:d.values[o]??0,percentage:d.values[o]?d.values[o]/v*100:0}))).concat([`${t.value.style.chart.layout.dataLabels.prefix}${Number(v.toFixed(t.value.table.td.roundingValue))}${t.value.style.chart.layout.dataLabels.suffix}`]))}const l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint},s=[t.value.table.columnNames.period].concat(C.value.filter(o=>!y.value.includes(o.uid)).map(o=>o.name)).concat(t.value.table.columnNames.total);return{head:a,body:c,config:l,colNames:s}});function pe(){return C.value}function ue(){e.nextTick(()=>{const a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],c=[...N.value.head.map(v=>v.name??v)],l=[...N.value.body.map(v=>v.map(d=>d.value??d))],s=a.concat([c]).concat(l),o=r.createCsvContent(s);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-donut-evolution"})})}const V=e.ref(!1);function ke(a){V.value=a,q.value+=1}function re(){$.value.showTable=!$.value.showTable}return de({getData:pe,generatePdf:Q,generateCsv:ue,generateImage:Z,toggleTable:re}),(a,c)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutEvolutionChart",ref:W,class:e.normalizeClass(`vue-ui-donut-evolution ${V.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:_.value},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:"width:100%;background:transparent;padding-bottom:24px",onMouseleave:te},[(e.openBlock(),e.createBlock(be._sfc_main,{key:`title_${X.value}`,config:{title:{cy:"donut-evolution-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-evolution-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],32)):e.createCommentVNode("",!0),t.value.userOptions.show&&z.value?(e.openBlock(),e.createBlock(se.UserOptions,{ref:"details",key:`user_options_${q.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(K),isImaging:e.unref(J),uid:_.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:W.value,position:t.value.userOptions.position,onToggleFullscreen:ke,onGeneratePdf:e.unref(Q),onGenerateCsv:ue,onGenerateImage:e.unref(Z),onToggleTable:re},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:s})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:s})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),z.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${n.value.absoluteWidth} ${n.value.absoluteHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ne._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`hover_${_.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.backgroundColor,t.value.style.chart.layout.highlighter.opacity)},null,8,ze),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.layout.highlighter.color,t.value.style.chart.layout.highlighter.opacity)},null,8,$e)],8,Ve),e.createElementVNode("radialGradient",{id:`focus_${_.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.convertColorToHex)(t.value.style.chart.backgroundColor),0)},null,8,Ae),e.createElementVNode("stop",{offset:"77%","stop-color":e.unref(r.setOpacity)("#FFFFFF",30)},null,8,De),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.convertColorToHex)(t.value.style.chart.backgroundColor),0)},null,8,Pe)],8,Fe)]),t.value.style.chart.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Te,[e.createElementVNode("line",{x1:u.value.left,x2:u.value.left,y1:u.value.top,y2:u.value.top+n.value.height,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Oe),e.createElementVNode("line",{x1:u.value.left,x2:n.value.absoluteWidth-u.value.right,y1:n.value.absoluteHeight-u.value.bottom,y2:n.value.absoluteHeight-u.value.bottom,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ie),t.value.style.chart.layout.grid.showVerticalLines?(e.openBlock(),e.createElementBlock("g",Me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.end-i.value.start,(l,s)=>(e.openBlock(),e.createElementBlock("line",{x1:u.value.left+(s+1)*f.value,x2:u.value.left+(s+1)*f.value,y1:u.value.top,y2:n.value.absoluteHeight-u.value.bottom,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,He))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.chart.layout.grid.yAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:1,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":h.value!==null||k.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(me.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l.value>=E.value.min&&l.value<=E.value.max?(e.openBlock(),e.createElementBlock("line",{key:0,x1:u.value.left,x2:u.value.left-5,y1:l.y,y2:l.y,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,Re)):e.createCommentVNode("",!0),l.value>=E.value.min&&l.value<=E.value.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:u.value.left-8+t.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,y:l.y+t.value.style.chart.layout.grid.yAxis.dataLabels.fontSize/3,"font-size":t.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,"text-anchor":"end",fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-weight":t.value.style.chart.layout.grid.yAxis.dataLabels.bold?"bold":"normal"},e.toDisplayString(e.unref(r.canShowValue)(l.value)?e.unref(r.applyDataLabel)(t.value.style.chart.layout.dataLabels.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue}),{datapoint:l,seriesIndex:s}):""),9,We)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),t.value.style.chart.layout.grid.xAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:2,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":k.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.end-i.value.start,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast&&(s===0||s===L.value-1)||!t.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":t.value.style.chart.layout.grid.xAxis.dataLabels.rotation>0?"start":t.value.style.chart.layout.grid.xAxis.dataLabels.rotation<0?"end":"middle","font-size":t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,fill:t.value.style.chart.layout.grid.xAxis.dataLabels.color,transform:`translate(${u.value.left+f.value*s+f.value/2}, ${t.value.style.chart.layout.grid.xAxis.dataLabels.offsetY+n.value.absoluteHeight-u.value.bottom+t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2}), rotate(${t.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`},e.toDisplayString(t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(s)+Number(i.value.start)]??""),9,qe)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.line.show&&s<m.value.length-1&&![l.subtotal,m.value[s+1].subtotal].includes(null)?(e.openBlock(),e.createElementBlock("line",{key:0,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":h.value!==null||k.value}),x1:l.x,y1:l.y,x2:m.value[s+1].x,y2:m.value[s+1].y,stroke:t.value.style.chart.layout.line.stroke,"stroke-width":t.value.style.chart.layout.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,10,Ue)):e.createCommentVNode("",!0),l.subtotal!==null?(e.openBlock(),e.createElementBlock("g",Xe,[l.subtotal?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:l.activeRadius,fill:t.value.style.chart.backgroundColor},null,8,Ge)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||k.value})},[l.subtotal?(e.openBlock(),e.createElementBlock("g",Ye,[h.value!==null&&h.value===s?(e.openBlock(),e.createElementBlock("g",je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,o=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{d:e.unref(r.calcNutArrowPath)(o,{x:o.center.endX,y:o.center.endY},12,12,{x:l.x,y:l.y},!0,20),stroke:o.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,Ke)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,(o,v)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("text",{"data-cy-hover-label":"","text-anchor":e.unref(r.calcMarkerOffsetX)(o,!0,0).anchor,x:e.unref(r.calcMarkerOffsetX)(o,!0,3).x,y:e.unref(r.calcMarkerOffsetY)(o),fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":8,"font-weight":"bold"},e.toDisplayString(o.name)+": "+e.toDisplayString(ee(o,l.donut))+" ("+e.toDisplayString(o.value===null?"-":F(o.value,o,v))+") ",9,Je)]))),256)),e.createElementVNode("g",null,[e.createElementVNode("circle",{cx:l.x,cy:l.y,r:l.hoverRadius,fill:t.value.style.chart.backgroundColor},null,8,Qe)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||k.value})},[l.subtotal!==null?(e.openBlock(),e.createElementBlock("g",Ze,[l.subtotal===0?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:3,fill:t.value.style.chart.color},null,8,et)):h.value!==null&&h.value===s?(e.openBlock(),e.createElementBlock("g",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,(o,v)=>(e.openBlock(),e.createElementBlock("path",{d:o.arcSlice,fill:`${o.color}`,"stroke-width":1,stroke:t.value.style.chart.backgroundColor},null,8,lt))),256))])):(e.openBlock(),e.createElementBlock("g",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donut,(o,v)=>(e.openBlock(),e.createElementBlock("path",{d:o.arcSlice,fill:`${o.color}`,"stroke-width":.5,stroke:t.value.style.chart.backgroundColor},null,8,ot))),256))]))])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||k.value})},[l.subtotal!==null&&t.value.style.chart.layout.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:l.x,y:h.value===l.index&&l.subtotal?l.y+t.value.style.chart.layout.dataLabels.fontSize/3:l.y-l.radius-t.value.style.chart.layout.dataLabels.fontSize+t.value.style.chart.layout.dataLabels.offsetY,"font-size":t.value.style.chart.layout.dataLabels.fontSize,"font-weight":"bold",fill:t.value.style.chart.layout.dataLabels.color},e.toDisplayString(F(l.subtotal,l,s)),9,ut)):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,s)=>(e.openBlock(),e.createElementBlock("rect",{x:u.value.left+s*f.value,y:n.value.absoluteHeight-u.value.bottom-10,width:f.value,height:10,fill:h.value===l.index?`url(#hover_${_.value})`:"transparent",onClick:o=>T(l,s),class:e.normalizeClass({"donut-hover":h.value===l.index&&l.subtotal})},null,10,rt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,s)=>(e.openBlock(),e.createElementBlock("rect",{"data-cy-trap":"",x:u.value.left+s*f.value,y:u.value.top,width:f.value,height:n.value.height,fill:"transparent",onMouseenter:o=>fe(l),onMouseleave:te,onClick:o=>T(l,s),class:e.normalizeClass({"donut-hover":h.value===l.index&&l.subtotal})},null,42,nt))),256)),k.value?(e.openBlock(),e.createElementBlock("g",st,[e.createElementVNode("rect",{rx:4,x:u.value.left,y:u.value.top,width:n.value.width,height:n.value.height,fill:t.value.style.chart.backgroundColor,style:{filter:"drop-shadow(0 12px 12px rgba(0,0,0,0.3))"}},null,8,ct),e.createElementVNode("line",{"data-html2canvas-ignore":"",x1:n.value.absoluteWidth-u.value.right-15,y1:u.value.top+5,x2:n.value.absoluteWidth-u.value.right-4,y2:u.value.top+15.5,"stroke-linecap":"round",stroke:t.value.style.chart.color,"stroke-width":"1.5"},null,8,it),e.createElementVNode("line",{"data-html2canvas-ignore":"",x1:n.value.absoluteWidth-u.value.right-15,y2:u.value.top+5,x2:n.value.absoluteWidth-u.value.right-4,y1:u.value.top+15.5,"stroke-linecap":"round",stroke:t.value.style.chart.color,"stroke-width":"1.5"},null,8,dt),e.createElementVNode("circle",{"data-cy-close":"",onClick:le,onKeypress:e.withKeys(le,["enter"]),cx:n.value.absoluteWidth-u.value.right-n.value.width/40,cy:u.value.top+n.value.height/30,r:n.value.height/12,fill:"transparent",style:{cursor:"pointer"},tabindex:"0"},null,40,vt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.donutFocus,l=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{"data-cy-zoom-donut":"",d:e.unref(r.calcNutArrowPath)(l,{x:n.value.centerX,y:n.value.centerY},12,12,!1,!1,15),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:"vue-ui-donut-evolution-focus"},null,8,ht)]))),256)),e.createElementVNode("circle",{cx:u.value.left+n.value.width/2,cy:u.value.top+n.value.height/2,r:n.value.height/7,fill:t.value.style.chart.backgroundColor},null,8,yt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.donutFocus,(l,s)=>(e.openBlock(),e.createElementBlock("path",{d:l.arcSlice,fill:`${l.color}`,"stroke-width":1,stroke:t.value.style.chart.backgroundColor,class:"vue-ui-donut-evolution-focus"},null,8,mt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.donutFocus,(l,s)=>(e.openBlock(),e.createElementBlock("g",ft,[e.createElementVNode("text",{"text-anchor":e.unref(r.calcMarkerOffsetX)(l,!0,20).anchor,x:e.unref(r.calcMarkerOffsetX)(l,!0,10).x,y:e.unref(r.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":10,"font-weight":"bold"},e.toDisplayString(l.name)+": "+e.toDisplayString(ee(l,b.value.donutFocus))+" ("+e.toDisplayString(l.value===null?"-":F(l.value,l,s))+") ",9,gt)]))),256)),e.createElementVNode("circle",{cx:u.value.left+n.value.width/2,cy:u.value.top+n.value.height/2,r:n.value.height/3.8,fill:`url(#focus_${_.value})`},null,8,pt),e.createElementVNode("circle",{cx:u.value.left+n.value.width/2,cy:u.value.top+n.value.height/2,r:n.value.height/7.7,fill:t.value.style.chart.backgroundColor},null,8,kt),e.createElementVNode("text",{"text-anchor":"middle",x:u.value.left+n.value.width/2,y:u.value.top+n.value.height/2+14/3,"font-size":14,"font-weight":"bold",fill:t.value.style.chart.layout.dataLabels.color,class:"vue-ui-donut-evolution-focus"},e.toDisplayString(F(b.value.subtotal,b.value,null)),9,bt),t.value.style.chart.layout.grid.xAxis.dataLabels.values[b.value.index]?(e.openBlock(),e.createElementBlock("text",{key:0,x:u.value.left+6,y:u.value.top+t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2,"font-size":t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*1.6,fill:t.value.style.chart.layout.dataLabels.color},e.toDisplayString(t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(b.value.index)+Number(i.value.start)]),9,xt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:n.value},void 0,!0)],14,Le)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Bt,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(K)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),z.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ce.default,{key:4,config:{type:"donutEvolution",style:{backgroundColor:t.value.style.chart.backgroundColor,donutEvolution:{axis:{color:"#CCCCCC"},donuts:{color:"#CCCCCC"}}}}},null,8,["config"])),L.value>1&&t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(_e.Slicer,{key:`slicer_${U.value}`,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,fontSize:t.value.style.chart.zoom.fontSize,useResetSlot:t.value.style.chart.zoom.useResetSlot,labelLeft:t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(i.value.start)]||"",labelRight:t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(i.value.end)-1]||"",textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,max:L.value,min:0,valueStart:i.value.start,valueEnd:i.value.end,start:i.value.start,"onUpdate:start":c[0]||(c[0]=l=>i.value.start=l),end:i.value.end,"onUpdate:end":c[1]||(c[1]=l=>i.value.end=l),onReset:H},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(a.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end"])):e.createCommentVNode("",!0),t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Be.Legend,{key:`legend_${Y.value}`,legendSet:ae.value,config:ge.value,onClickMarker:c[2]||(c[2]=({legend:l})=>O(l.uid))},{item:e.withCtx(({legend:l,index:s})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:o=>O(l.uid),style:e.normalizeStyle(`opacity:${y.value.includes(l.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.dataLabels.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:s}))+" ",1),y.value.includes(l.uid)?(e.openBlock(),e.createElementBlock("span",Et," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",_t," ("+e.toDisplayString(isNaN(l.value/oe.value)?"-":e.unref(r.dataLabel)({v:l.value/oe.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,Ct)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:ae.value},void 0,!0),z.value?(e.openBlock(),e.createBlock(Ee.default,{key:7,hideDetails:"",config:{open:$.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(xe.DataTable,{key:`table_${G.value}`,colNames:N.value.colNames,head:N.value.head,body:N.value.body,config:N.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:c[3]||(c[3]=l=>$.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l.name??l),1)]),td:e.withCtx(({td:l})=>[l.value===null?(e.openBlock(),e.createElementBlock("span",Nt,"-")):(e.openBlock(),e.createElementBlock("b",wt,e.toDisplayString(isNaN(l.value)?"":t.value.style.chart.layout.dataLabels.prefix)+e.toDisplayString(!isNaN(l.value)&&l.value!==null?Number(l.value.toFixed(t.value.table.td.roundingValue)).toLocaleString():l)+e.toDisplayString(isNaN(l.value)?"":t.value.style.chart.layout.dataLabels.suffix),1)),e.createElementVNode("span",null,e.toDisplayString(l.percentage&&!isNaN(l.percentage)?`(${Number(l.percentage.toFixed(t.value.table.td.roundingPercentage)).toLocaleString()}%)`:""),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Se))}},Lt=we._export_sfc(St,[["__scopeId","data-v-715ec8d1"]]);exports.default=Lt;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { computed as x, ref as m, onMounted as Ke, watch as Fe, openBlock as a, createElementBlock as u, normalizeClass as F, normalizeStyle as ae, createBlock as E, createCommentVNode as d, unref as c, createSlots as qe, withCtx as P, renderSlot as
|
|
2
|
-
import { u as et, o as tt, e as B, g as lt, c as De, t as at, a as ut, p as Y, b as ot,
|
|
3
|
-
import { _ as vt } from "./Title-
|
|
4
|
-
import { u as dt, U as ht } from "./usePrinter-
|
|
5
|
-
import { D as yt } from "./DataTable-
|
|
6
|
-
import { L as ft } from "./Legend-
|
|
7
|
-
import gt from "./vue-ui-skeleton-
|
|
8
|
-
import { S as bt } from "./Slicer-
|
|
9
|
-
import xt from "./vue-ui-accordion-
|
|
10
|
-
import { u as
|
|
11
|
-
import { _ as mt } from "./PackageVersion-
|
|
1
|
+
import { computed as x, ref as m, onMounted as Ke, watch as Fe, openBlock as a, createElementBlock as u, normalizeClass as F, normalizeStyle as ae, createBlock as E, createCommentVNode as d, unref as c, createSlots as qe, withCtx as P, renderSlot as I, normalizeProps as ue, guardReactiveProps as oe, createVNode as Je, createElementVNode as v, Fragment as p, renderList as k, toDisplayString as b, withKeys as Qe, createTextVNode as Pe, nextTick as Ze } from "vue";
|
|
2
|
+
import { u as et, o as tt, e as B, g as lt, c as De, t as at, a as ut, p as Y, b as ot, I as st, d as se, C as Ie, m as re, X as rt, s as U, D as nt, i as ne, f as K, j as Te, k as q, n as Ee, J as Oe, q as it, r as ct } from "./index-Bu852AzK.js";
|
|
3
|
+
import { _ as vt } from "./Title-B6kWQmNb.js";
|
|
4
|
+
import { u as dt, U as ht } from "./usePrinter-CaNEdNUc.js";
|
|
5
|
+
import { D as yt } from "./DataTable-D1vDu_2B.js";
|
|
6
|
+
import { L as ft } from "./Legend-CZk6McMv.js";
|
|
7
|
+
import gt from "./vue-ui-skeleton-B-obKEDg.js";
|
|
8
|
+
import { S as bt } from "./Slicer-DBVND1TR.js";
|
|
9
|
+
import xt from "./vue-ui-accordion-CBwmD_zS.js";
|
|
10
|
+
import { u as Ve } from "./useNestedProp-1sCLAHuR.js";
|
|
11
|
+
import { _ as mt } from "./PackageVersion-DDKechCD.js";
|
|
12
12
|
import { _ as pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"], Lt = ["stop-color"], $t = ["id"], St = ["stop-color"], At = ["stop-color"], Nt = ["stop-color"], zt = { key: 0 }, Ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = { key: 0 },
|
|
13
|
+
const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"], Lt = ["stop-color"], $t = ["id"], St = ["stop-color"], At = ["stop-color"], Nt = ["stop-color"], zt = { key: 0 }, Ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = { key: 0 }, It = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Et = ["x", "y", "font-size", "fill", "font-weight"], Ot = ["text-anchor", "font-size", "fill", "transform"], Vt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ht = { key: 1 }, Mt = ["cx", "cy", "r", "fill"], Wt = { key: 0 }, Rt = { key: 0 }, Ut = ["d", "stroke"], Xt = ["text-anchor", "x", "y", "fill"], Gt = ["cx", "cy", "r", "fill"], jt = { key: 0 }, Bt = ["cx", "cy", "fill"], Yt = { key: 1 }, Kt = ["d", "fill", "stroke"], qt = { key: 2 }, Jt = ["d", "fill", "stroke"], Qt = ["x", "y", "font-size", "fill"], Zt = ["x", "y", "width", "fill", "onClick"], el = ["x", "y", "width", "height", "onMouseenter", "onClick"], tl = {
|
|
14
14
|
key: 3,
|
|
15
15
|
"data-cy-zoom": "",
|
|
16
16
|
class: "vue-ui-donut-evolution-dialog"
|
|
@@ -34,8 +34,8 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectLegend"],
|
|
37
|
-
setup(
|
|
38
|
-
const $ =
|
|
37
|
+
setup(He, { expose: Me, emit: ie }) {
|
|
38
|
+
const $ = He, { vue_ui_donut_evolution: We } = et(), X = x(() => !!$.dataset && $.dataset.length), h = m({
|
|
39
39
|
start: 0,
|
|
40
40
|
end: Math.max(...$.dataset.map((l) => l.values.length))
|
|
41
41
|
});
|
|
@@ -66,17 +66,17 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
const
|
|
69
|
+
const T = m(De()), _ = m([]), g = m(null), J = m(null), S = m(!1), A = m(null), de = m(null), he = m(0), ye = m(0), fe = m(0), ge = m(0), be = m(0), e = x({
|
|
70
70
|
get: () => xe(),
|
|
71
71
|
set: (l) => l
|
|
72
72
|
});
|
|
73
73
|
function xe() {
|
|
74
|
-
const l =
|
|
74
|
+
const l = Ve({
|
|
75
75
|
userConfig: $.config,
|
|
76
76
|
defaultConfig: We
|
|
77
77
|
});
|
|
78
78
|
return l.theme ? {
|
|
79
|
-
...
|
|
79
|
+
...Ve({
|
|
80
80
|
userConfig: at.vue_ui_donut_evolution[l.theme] || $.config,
|
|
81
81
|
defaultConfig: l
|
|
82
82
|
}),
|
|
@@ -89,7 +89,7 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
89
89
|
ce();
|
|
90
90
|
}, { deep: !0 });
|
|
91
91
|
const { isPrinting: me, isImaging: pe, generatePdf: ke, generateImage: _e } = dt({
|
|
92
|
-
elementId:
|
|
92
|
+
elementId: T.value,
|
|
93
93
|
fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution"
|
|
94
94
|
}), Re = x(() => ot(e.value.customPalette)), G = m({
|
|
95
95
|
showTable: e.value.table.show
|
|
@@ -132,24 +132,24 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
132
132
|
}))), W = x(() => Math.max(...M.value.map((l) => l.length))), w = x(() => r.value.width / (h.value.end - h.value.start)), C = x(() => {
|
|
133
133
|
const l = [];
|
|
134
134
|
for (let o = 0; o < h.value.end - h.value.start; o += 1) {
|
|
135
|
-
const f = M.value.map((z) => z.values[o] ?? null), y = f.filter((z) => [void 0, null].includes(z)).length === f.length, N = f.reduce((z, L) => z + L, 0), le = f.map((z) => z / N),
|
|
135
|
+
const f = M.value.map((z) => z.values[o] ?? null), y = f.filter((z) => [void 0, null].includes(z)).length === f.length, N = f.reduce((z, L) => z + L, 0), le = f.map((z) => z / N), H = s.value.left + w.value * o + w.value / 2;
|
|
136
136
|
l.push({
|
|
137
137
|
index: o,
|
|
138
138
|
percentages: le,
|
|
139
139
|
subtotal: y || N < 0 ? null : N,
|
|
140
140
|
values: f,
|
|
141
|
-
x:
|
|
141
|
+
x: H
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
const i = 0, t = Math.max(...l.map((o) => o.subtotal)), n = l.length === 1 ? t * 2 : t;
|
|
145
145
|
return l.map((o, f) => {
|
|
146
|
-
const y = w.value / 2 * 0.7, N = y > r.value.width / 16 ? r.value.width / 16 : y, le = g.value === o.index ? r.value.width / 16 : N,
|
|
146
|
+
const y = w.value / 2 * 0.7, N = y > r.value.width / 16 ? r.value.width / 16 : y, le = g.value === o.index ? r.value.width / 16 : N, H = l.length > 4 ? y * 2 : y * 2 > w.value / 2 * 0.7 ? w.value / 2 * 0.7 : y * 2, z = r.value.absoluteHeight - s.value.bottom - r.value.height * o.subtotal / Ie(i, n, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
|
|
147
147
|
return {
|
|
148
148
|
...o,
|
|
149
149
|
y: z,
|
|
150
150
|
radius: N,
|
|
151
151
|
activeRadius: le,
|
|
152
|
-
hoverRadius:
|
|
152
|
+
hoverRadius: H,
|
|
153
153
|
donut: re({
|
|
154
154
|
series: M.value.map((L, ze) => ({
|
|
155
155
|
color: L.color,
|
|
@@ -163,7 +163,7 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
163
163
|
name: L.name,
|
|
164
164
|
value: L.values[f] ?? 0
|
|
165
165
|
}))
|
|
166
|
-
}, o.x, z,
|
|
166
|
+
}, o.x, z, H, H, 1.99999, 2, 1, 360, 105.25, H / 2),
|
|
167
167
|
donutFocus: re({
|
|
168
168
|
series: M.value.map((L, ze) => ({
|
|
169
169
|
color: L.color,
|
|
@@ -192,7 +192,7 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
192
192
|
min: 0
|
|
193
193
|
})), O = x(() => {
|
|
194
194
|
const l = C.value.length === 1 ? Q.value.max * 2 : Q.value.max;
|
|
195
|
-
return
|
|
195
|
+
return Ie(Q.value.min, l, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
196
196
|
});
|
|
197
197
|
function Ue(l) {
|
|
198
198
|
return l / O.value.max;
|
|
@@ -245,7 +245,7 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
245
245
|
}
|
|
246
246
|
A.value && ee(C.value.find((i, t) => t === Z.value));
|
|
247
247
|
}
|
|
248
|
-
const
|
|
248
|
+
const V = x(() => {
|
|
249
249
|
const l = [""].concat(D.value.filter((o) => !_.value.includes(o.uid)).map((o) => ({
|
|
250
250
|
name: o.name,
|
|
251
251
|
color: o.color
|
|
@@ -280,7 +280,7 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
280
280
|
}
|
|
281
281
|
function Ae() {
|
|
282
282
|
Ze(() => {
|
|
283
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], i = [...
|
|
283
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], i = [...V.value.head.map((f) => f.name ?? f)], t = [...V.value.body.map((f) => f.map((y) => y.value ?? y))], n = l.concat([i]).concat(t), o = it(n);
|
|
284
284
|
ct({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
|
|
285
285
|
});
|
|
286
286
|
}
|
|
@@ -302,7 +302,7 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
302
302
|
ref: de,
|
|
303
303
|
class: F(`vue-ui-donut-evolution ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
304
304
|
style: ae(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
|
|
305
|
-
id:
|
|
305
|
+
id: T.value
|
|
306
306
|
}, [
|
|
307
307
|
e.value.style.chart.title.text ? (a(), u("div", {
|
|
308
308
|
key: 0,
|
|
@@ -330,7 +330,7 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
330
330
|
color: e.value.style.chart.color,
|
|
331
331
|
isPrinting: c(me),
|
|
332
332
|
isImaging: c(pe),
|
|
333
|
-
uid:
|
|
333
|
+
uid: T.value,
|
|
334
334
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
335
335
|
hasImg: e.value.userOptions.buttons.img,
|
|
336
336
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -349,35 +349,35 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
349
349
|
l.$slots.optionPdf ? {
|
|
350
350
|
name: "optionPdf",
|
|
351
351
|
fn: P(() => [
|
|
352
|
-
|
|
352
|
+
I(l.$slots, "optionPdf", {}, void 0, !0)
|
|
353
353
|
]),
|
|
354
354
|
key: "0"
|
|
355
355
|
} : void 0,
|
|
356
356
|
l.$slots.optionCsv ? {
|
|
357
357
|
name: "optionCsv",
|
|
358
358
|
fn: P(() => [
|
|
359
|
-
|
|
359
|
+
I(l.$slots, "optionCsv", {}, void 0, !0)
|
|
360
360
|
]),
|
|
361
361
|
key: "1"
|
|
362
362
|
} : void 0,
|
|
363
363
|
l.$slots.optionImg ? {
|
|
364
364
|
name: "optionImg",
|
|
365
365
|
fn: P(() => [
|
|
366
|
-
|
|
366
|
+
I(l.$slots, "optionImg", {}, void 0, !0)
|
|
367
367
|
]),
|
|
368
368
|
key: "2"
|
|
369
369
|
} : void 0,
|
|
370
370
|
l.$slots.optionTable ? {
|
|
371
371
|
name: "optionTable",
|
|
372
372
|
fn: P(() => [
|
|
373
|
-
|
|
373
|
+
I(l.$slots, "optionTable", {}, void 0, !0)
|
|
374
374
|
]),
|
|
375
375
|
key: "3"
|
|
376
376
|
} : void 0,
|
|
377
377
|
l.$slots.optionFullscreen ? {
|
|
378
378
|
name: "optionFullscreen",
|
|
379
379
|
fn: P(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
380
|
-
|
|
380
|
+
I(l.$slots, "optionFullscreen", ue(oe({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
|
|
381
381
|
]),
|
|
382
382
|
key: "4"
|
|
383
383
|
} : void 0
|
|
@@ -392,7 +392,7 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
392
392
|
Je(mt),
|
|
393
393
|
v("defs", null, [
|
|
394
394
|
v("linearGradient", {
|
|
395
|
-
id: `hover_${
|
|
395
|
+
id: `hover_${T.value}`,
|
|
396
396
|
x1: "0%",
|
|
397
397
|
y1: "0%",
|
|
398
398
|
x2: "0%",
|
|
@@ -408,7 +408,7 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
408
408
|
}, null, 8, Lt)
|
|
409
409
|
], 8, Ct),
|
|
410
410
|
v("radialGradient", {
|
|
411
|
-
id: `focus_${
|
|
411
|
+
id: `focus_${T.value}`
|
|
412
412
|
}, [
|
|
413
413
|
v("stop", {
|
|
414
414
|
offset: "0%",
|
|
@@ -452,7 +452,7 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
452
452
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
453
453
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
454
454
|
"stroke-linecap": "round"
|
|
455
|
-
}, null, 8,
|
|
455
|
+
}, null, 8, It))), 256))
|
|
456
456
|
])) : d("", !0)
|
|
457
457
|
])) : d("", !0),
|
|
458
458
|
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (a(), u("g", {
|
|
@@ -468,7 +468,7 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
468
468
|
y2: t.y,
|
|
469
469
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
470
470
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
471
|
-
}, null, 8,
|
|
471
|
+
}, null, 8, Tt)) : d("", !0),
|
|
472
472
|
t.value >= O.value.min && t.value <= O.value.max ? (a(), u("text", {
|
|
473
473
|
key: 1,
|
|
474
474
|
x: s.value.left - 8 + e.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,
|
|
@@ -516,8 +516,8 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
516
516
|
"stroke-width": e.value.style.chart.layout.line.strokeWidth,
|
|
517
517
|
"stroke-linecap": "round",
|
|
518
518
|
"stroke-linejoin": "round"
|
|
519
|
-
}, null, 10,
|
|
520
|
-
t.subtotal !== null ? (a(), u("g",
|
|
519
|
+
}, null, 10, Vt)) : d("", !0),
|
|
520
|
+
t.subtotal !== null ? (a(), u("g", Ht, [
|
|
521
521
|
t.subtotal ? (a(), u("circle", {
|
|
522
522
|
key: 0,
|
|
523
523
|
cx: t.x,
|
|
@@ -534,7 +534,7 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
534
534
|
g.value !== null && g.value === n ? (a(), u("g", Rt, [
|
|
535
535
|
(a(!0), u(p, null, k(t.donutHover, (o) => (a(), u("g", null, [
|
|
536
536
|
v("path", {
|
|
537
|
-
d: c(
|
|
537
|
+
d: c(Te)(o, { x: o.center.endX, y: o.center.endY }, 12, 12, { x: t.x, y: t.y }, !0, 20),
|
|
538
538
|
stroke: o.color,
|
|
539
539
|
"stroke-width": "1",
|
|
540
540
|
"stroke-linecap": "round",
|
|
@@ -609,7 +609,7 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
609
609
|
y: r.value.absoluteHeight - s.value.bottom - 10,
|
|
610
610
|
width: w.value,
|
|
611
611
|
height: 10,
|
|
612
|
-
fill: g.value === t.index ? `url(#hover_${
|
|
612
|
+
fill: g.value === t.index ? `url(#hover_${T.value})` : "transparent",
|
|
613
613
|
onClick: (o) => ee(t, n),
|
|
614
614
|
class: F({ "donut-hover": g.value === t.index && t.subtotal })
|
|
615
615
|
}, null, 10, Zt))), 256)),
|
|
@@ -669,7 +669,7 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
669
669
|
(a(!0), u(p, null, k(A.value.donutFocus, (t) => (a(), u("g", null, [
|
|
670
670
|
v("path", {
|
|
671
671
|
"data-cy-zoom-donut": "",
|
|
672
|
-
d: c(
|
|
672
|
+
d: c(Te)(t, { x: r.value.centerX, y: r.value.centerY }, 12, 12, !1, !1, 15),
|
|
673
673
|
stroke: t.color,
|
|
674
674
|
"stroke-width": "1",
|
|
675
675
|
"stroke-linecap": "round",
|
|
@@ -705,7 +705,7 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
705
705
|
cx: s.value.left + r.value.width / 2,
|
|
706
706
|
cy: s.value.top + r.value.height / 2,
|
|
707
707
|
r: r.value.height / 3.8,
|
|
708
|
-
fill: `url(#focus_${
|
|
708
|
+
fill: `url(#focus_${T.value})`
|
|
709
709
|
}, null, 8, vl),
|
|
710
710
|
v("circle", {
|
|
711
711
|
cx: s.value.left + r.value.width / 2,
|
|
@@ -730,10 +730,10 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
730
730
|
fill: e.value.style.chart.layout.dataLabels.color
|
|
731
731
|
}, b(e.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(A.value.index) + Number(h.value.start)]), 9, yl)) : d("", !0)
|
|
732
732
|
])) : d("", !0),
|
|
733
|
-
|
|
733
|
+
I(l.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
734
734
|
], 14, _t)) : d("", !0),
|
|
735
735
|
l.$slots.watermark ? (a(), u("div", fl, [
|
|
736
|
-
|
|
736
|
+
I(l.$slots, "watermark", ue(oe({ isPrinting: c(me) || c(pe) })), void 0, !0)
|
|
737
737
|
])) : d("", !0),
|
|
738
738
|
X.value ? d("", !0) : (a(), E(gt, {
|
|
739
739
|
key: 4,
|
|
@@ -774,7 +774,7 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
774
774
|
onReset: ce
|
|
775
775
|
}, {
|
|
776
776
|
"reset-action": P(({ reset: t }) => [
|
|
777
|
-
|
|
777
|
+
I(l.$slots, "reset-action", ue(oe({ reset: t })), void 0, !0)
|
|
778
778
|
]),
|
|
779
779
|
_: 3
|
|
780
780
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : d("", !0),
|
|
@@ -810,7 +810,7 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
810
810
|
]),
|
|
811
811
|
_: 1
|
|
812
812
|
}, 8, ["legendSet", "config"])) : d("", !0),
|
|
813
|
-
|
|
813
|
+
I(l.$slots, "legend", { legend: $e.value }, void 0, !0),
|
|
814
814
|
X.value ? (a(), E(xt, {
|
|
815
815
|
key: 7,
|
|
816
816
|
hideDetails: "",
|
|
@@ -830,10 +830,10 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
830
830
|
content: P(() => [
|
|
831
831
|
(a(), E(yt, {
|
|
832
832
|
key: `table_${ge.value}`,
|
|
833
|
-
colNames:
|
|
834
|
-
head:
|
|
835
|
-
body:
|
|
836
|
-
config:
|
|
833
|
+
colNames: V.value.colNames,
|
|
834
|
+
head: V.value.head,
|
|
835
|
+
body: V.value.body,
|
|
836
|
+
config: V.value.config,
|
|
837
837
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
838
838
|
onClose: i[3] || (i[3] = (t) => G.value.showTable = !1)
|
|
839
839
|
}, {
|
|
@@ -851,7 +851,7 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
851
851
|
}, 8, ["config"])) : d("", !0)
|
|
852
852
|
], 14, kt));
|
|
853
853
|
}
|
|
854
|
-
},
|
|
854
|
+
}, Il = /* @__PURE__ */ pt(kl, [["__scopeId", "data-v-715ec8d1"]]);
|
|
855
855
|
export {
|
|
856
|
-
|
|
856
|
+
Il as default
|
|
857
857
|
};
|