vue-data-ui 2.4.86 → 2.4.88
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-DpgbndsU.js → Arrow-D79KA6Cu.js} +1 -1
- package/dist/{Arrow-Bh7Ezbzf.cjs → Arrow-DMSM0MM1.cjs} +1 -1
- package/dist/{BaseIcon-CdPe2CAc.js → BaseIcon-B9BZgZsa.js} +1 -1
- package/dist/{BaseIcon-CaKclr1e.cjs → BaseIcon-CehmAXJH.cjs} +1 -1
- package/dist/{DataTable-BfiPjHpN.js → DataTable-Cnr3w23K.js} +2 -2
- package/dist/{DataTable-DuosyZ6d.cjs → DataTable-DVKGDaCB.cjs} +1 -1
- package/dist/{Legend-DiFDWEo2.js → Legend-Di7FMl12.js} +2 -2
- package/dist/{Legend-BnKYc6ZY.cjs → Legend-Uv0t6PIz.cjs} +1 -1
- package/dist/{PackageVersion-qom4AEUr.js → PackageVersion-BAKTtSRE.js} +1 -1
- package/dist/{PackageVersion-B5rBHZEb.cjs → PackageVersion-BgKxrHv-.cjs} +1 -1
- package/dist/{PenAndPaper-C-1AU46J.js → PenAndPaper-BUzmu0vi.js} +3 -3
- package/dist/{PenAndPaper-5OV7IAca.cjs → PenAndPaper-BYVZ33fz.cjs} +1 -1
- package/dist/{Shape-CmsIulaS.cjs → Shape-CNuTafzS.cjs} +1 -1
- package/dist/{Shape-Dmv7nCLC.js → Shape-DZz__S1P.js} +1 -1
- package/dist/{Slicer-CmBt4xoj.cjs → Slicer-BSQa-Zel.cjs} +1 -1
- package/dist/{Slicer-D4ugcR39.js → Slicer-Clpv-EOL.js} +2 -2
- package/dist/{Title-D3kX1BVl.cjs → Title-DcTKT_WK.cjs} +1 -1
- package/dist/{Title-ClQ27HaB.js → Title-Dt5mC-vb.js} +1 -1
- package/dist/{Tooltip-CGYgJoPR.js → Tooltip-CmKYX0H1.js} +1 -1
- package/dist/{Tooltip-CARCyQNT.cjs → Tooltip-y6Z9yhlE.cjs} +1 -1
- package/dist/{index-CXx0JV8R.js → index-DCHLGNvJ.js} +1 -1
- package/dist/{index-DqxDpUy0.cjs → index-xEXHnOtJ.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -1
- package/dist/{useNestedProp-B-WAbP7E.js → useNestedProp-BPR7xHxr.js} +1 -1
- package/dist/{useNestedProp-DNWKDmdP.cjs → useNestedProp-LNEDZsGq.cjs} +1 -1
- package/dist/{usePrinter-Ctor1UK0.js → usePrinter-BvounINk.js} +1 -1
- package/dist/{usePrinter-BC7U4s0U.cjs → usePrinter-CjQvMB0_.cjs} +1 -1
- package/dist/{vue-data-ui-BpAZx3Va.js → vue-data-ui-BCZFdeNf.js} +60 -60
- package/dist/{vue-data-ui-DkgWwqtw.cjs → vue-data-ui-eNIOCbja.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-1A6t1biQ.js → vue-ui-3d-bar-B0ZLxzL-.js} +38 -38
- package/dist/{vue-ui-3d-bar-ngD35pLb.cjs → vue-ui-3d-bar-DEZhX6d1.cjs} +11 -11
- package/dist/{vue-ui-accordion-XAEm2rxj.cjs → vue-ui-accordion-2c1jq56U.cjs} +1 -1
- package/dist/{vue-ui-accordion-BljYKOXR.js → vue-ui-accordion-DEpeQHhr.js} +3 -3
- package/dist/vue-ui-age-pyramid-DlE41fIs.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-qfVpUr52.js → vue-ui-age-pyramid-dewoEG3y.js} +29 -29
- package/dist/{vue-ui-annotator-pFybuGix.cjs → vue-ui-annotator-CG6CV-7_.cjs} +1 -1
- package/dist/{vue-ui-annotator-CH9QWqAv.js → vue-ui-annotator-D9op3RMK.js} +1 -1
- package/dist/{vue-ui-bullet-BH7zmX0E.js → vue-ui-bullet-B6tijZFI.js} +8 -8
- package/dist/{vue-ui-bullet-C6y7Ddg-.cjs → vue-ui-bullet-Bt_2KhaH.cjs} +1 -1
- package/dist/{vue-ui-candlestick-RCtFAjEU.js → vue-ui-candlestick-B4DkRibE.js} +48 -48
- package/dist/{vue-ui-candlestick-DtCmxeo5.cjs → vue-ui-candlestick-DWDz2nFA.cjs} +2 -2
- package/dist/{vue-ui-carousel-table-BUL063mi.js → vue-ui-carousel-table-COAPDtuP.js} +4 -4
- package/dist/{vue-ui-carousel-table-BeDenKJo.cjs → vue-ui-carousel-table-DZlh-CRi.cjs} +1 -1
- package/dist/{vue-ui-chestnut-xDD_4bz2.js → vue-ui-chestnut-DCk2Zbcz.js} +29 -29
- package/dist/{vue-ui-chestnut-B6EalNLT.cjs → vue-ui-chestnut-EyoKonrW.cjs} +2 -2
- package/dist/{vue-ui-cursor-DbV0HXHB.cjs → vue-ui-cursor-DR8hHWf7.cjs} +1 -1
- package/dist/{vue-ui-cursor-D6Qndjnn.js → vue-ui-cursor-DSP_sXww.js} +2 -2
- package/dist/{vue-ui-dashboard-B_kj8L_A.cjs → vue-ui-dashboard-BJsyMU6X.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B_4ot4bz.js → vue-ui-dashboard-BizVZE7w.js} +2 -2
- package/dist/{vue-ui-digits-BLI4lCZC.js → vue-ui-digits-BvVZ7uDf.js} +2 -2
- package/dist/{vue-ui-digits-DKs2fTGz.cjs → vue-ui-digits-vspu86yU.cjs} +1 -1
- package/dist/vue-ui-donut-BHJF4z2B.cjs +1 -0
- package/dist/{vue-ui-donut-wBZoPkru.js → vue-ui-donut-aFsq1d8c.js} +76 -76
- package/dist/{vue-ui-donut-evolution-ClOGDHiK.js → vue-ui-donut-evolution-BfS2WdBU.js} +66 -66
- package/dist/vue-ui-donut-evolution-DwVP-Zjn.cjs +1 -0
- package/dist/{vue-ui-dumbbell-PR9tHMvD.js → vue-ui-dumbbell-Bb5wHbQL.js} +28 -28
- package/dist/vue-ui-dumbbell-Bi-2LGtG.cjs +9 -0
- package/dist/{vue-ui-flow-CxW8g0NW.js → vue-ui-flow-DxNNh-WO.js} +31 -31
- package/dist/vue-ui-flow-RQWHqn22.cjs +1 -0
- package/dist/vue-ui-funnel-D-892HTK.cjs +1 -0
- package/dist/{vue-ui-funnel-BJNlWIq5.js → vue-ui-funnel-IVTzcHVm.js} +32 -32
- package/dist/{vue-ui-galaxy-DuGLDGzf.js → vue-ui-galaxy-039pCZpW.js} +81 -81
- package/dist/vue-ui-galaxy-BR-8c9Hn.cjs +1 -0
- package/dist/{vue-ui-gauge-Dpcxdegh.cjs → vue-ui-gauge-B4k-bq9l.cjs} +1 -1
- package/dist/{vue-ui-gauge-CBx84KCt.js → vue-ui-gauge-ZEMVvV-t.js} +7 -7
- package/dist/{vue-ui-gizmo-Djw5T_Vr.cjs → vue-ui-gizmo--XG8-JLk.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BPIyNNkI.js → vue-ui-gizmo-DKzAWnI0.js} +3 -3
- package/dist/vue-ui-heatmap-Bia0Ekaw.cjs +1 -0
- package/dist/{vue-ui-heatmap-DI8gVwfM.js → vue-ui-heatmap-DXDpQL6T.js} +63 -63
- package/dist/vue-ui-history-plot-Cq9ZWdDn.cjs +1 -0
- package/dist/{vue-ui-history-plot-CWfWMwqw.js → vue-ui-history-plot-o1WosOjA.js} +69 -69
- package/dist/{vue-ui-kpi-CBJZp-nE.js → vue-ui-kpi-B01FpRQ0.js} +3 -3
- package/dist/{vue-ui-kpi-BjGIj-IQ.cjs → vue-ui-kpi-lWq7fZr1.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DfeNWsJk.js → vue-ui-mini-loader-DLUYnvwS.js} +2 -2
- package/dist/{vue-ui-mini-loader-Cafts_cp.cjs → vue-ui-mini-loader-jkxJpHFv.cjs} +1 -1
- package/dist/vue-ui-molecule-BBK9ofPv.cjs +1 -0
- package/dist/{vue-ui-molecule-BTO5WRuL.js → vue-ui-molecule-DyiuRZQM.js} +155 -155
- package/dist/vue-ui-mood-radar-Bx32tbYB.cjs +1 -0
- package/dist/{vue-ui-mood-radar-CKGwiCsd.js → vue-ui-mood-radar-DJI_fbFv.js} +33 -33
- package/dist/{vue-ui-nested-donuts-BvkJoiOT.cjs → vue-ui-nested-donuts-B6ZLkoIS.cjs} +5 -5
- package/dist/{vue-ui-nested-donuts-JGie_log.js → vue-ui-nested-donuts-B9gUqMTf.js} +147 -147
- package/dist/{vue-ui-onion-BWoVr0FT.cjs → vue-ui-onion-BnLW3as9.cjs} +2 -2
- package/dist/{vue-ui-onion-BXauNEVz.js → vue-ui-onion-D-OxG00N.js} +44 -44
- package/dist/{vue-ui-parallel-coordinate-plot-njogPtYo.js → vue-ui-parallel-coordinate-plot-DXc-b6rP.js} +79 -79
- package/dist/{vue-ui-parallel-coordinate-plot-BrvB0jer.cjs → vue-ui-parallel-coordinate-plot-wx4e_yuu.cjs} +3 -3
- package/dist/vue-ui-quadrant-BqaLRYQp.cjs +1 -0
- package/dist/{vue-ui-quadrant-DnaOzxMc.js → vue-ui-quadrant-bakb0497.js} +108 -108
- package/dist/vue-ui-quick-chart-BZdsiGCz.cjs +15 -0
- package/dist/{vue-ui-quick-chart-kAG9Eaxb.js → vue-ui-quick-chart-BnH7-lmq.js} +212 -212
- package/dist/vue-ui-radar-D5IDgzwd.cjs +1 -0
- package/dist/{vue-ui-radar-DRmP5yb4.js → vue-ui-radar-DadvgLtC.js} +107 -107
- package/dist/{vue-ui-rating-BtLDJSwm.cjs → vue-ui-rating-B4yxkddt.cjs} +1 -1
- package/dist/{vue-ui-rating-De5IfgHJ.js → vue-ui-rating-CGojWinU.js} +2 -2
- package/dist/{vue-ui-relation-circle-DKQl7eWX.js → vue-ui-relation-circle-COC07h_K.js} +7 -7
- package/dist/{vue-ui-relation-circle-B2l-2KnH.cjs → vue-ui-relation-circle-rmWirv-5.cjs} +1 -1
- package/dist/{vue-ui-rings-Dwyz2fEm.js → vue-ui-rings-CMk-sVvK.js} +66 -66
- package/dist/{vue-ui-rings-KQoMkv4v.cjs → vue-ui-rings-DO1cN4ly.cjs} +2 -2
- package/dist/vue-ui-scatter-C4QmHmq2.cjs +1 -0
- package/dist/{vue-ui-scatter-DeOrkD2Y.js → vue-ui-scatter-CPkly4JA.js} +85 -85
- package/dist/{vue-ui-screenshot-BLp1_Q6K.cjs → vue-ui-screenshot-BxFOMLiy.cjs} +1 -1
- package/dist/{vue-ui-screenshot-D1Ekbb27.js → vue-ui-screenshot-CzFhpFE4.js} +1 -1
- package/dist/{vue-ui-skeleton-qIxxRRaX.cjs → vue-ui-skeleton-Tse1D8cv.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Cw0-Ac_0.js → vue-ui-skeleton-nTL-u4Yd.js} +3 -3
- package/dist/{vue-ui-smiley-D3oqt6Rg.js → vue-ui-smiley-Bu3bOukI.js} +2 -2
- package/dist/{vue-ui-smiley-D3WgXFhb.cjs → vue-ui-smiley-D-sS-77y.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DyhcWMWz.js → vue-ui-spark-trend-Bh5gFFQf.js} +5 -5
- package/dist/{vue-ui-spark-trend-CVyPm6ms.cjs → vue-ui-spark-trend-CF36oite.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CRMMOv0T.cjs → vue-ui-sparkbar-CGIYeFjB.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-C0av7SAn.js → vue-ui-sparkbar-DX2xrwR9.js} +4 -4
- package/dist/{vue-ui-sparkgauge-B3K4si6u.js → vue-ui-sparkgauge-CZ837K-0.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BQnxP_8u.cjs → vue-ui-sparkgauge-D2NJVKww.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Bo3pkA-I.js → vue-ui-sparkhistogram-2NcpXt-_.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-DVAas7L7.cjs → vue-ui-sparkhistogram-DIYvXyIB.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CDqFBaPU.cjs → vue-ui-sparkline-BIj5WMUM.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DIHKGu0H.js → vue-ui-sparkline-CuBFi324.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CC-OaMTb.cjs → vue-ui-sparkstackbar-BvcGQqmi.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DG87wFd5.js → vue-ui-sparkstackbar-bqD9-qmQ.js} +5 -5
- package/dist/{vue-ui-stackbar-fZKaRitE.js → vue-ui-stackbar-BG0olJr0.js} +51 -51
- package/dist/{vue-ui-stackbar-CVHKHNom.cjs → vue-ui-stackbar-Cbk-PfOC.cjs} +3 -3
- package/dist/vue-ui-strip-plot-Dm2ctnIx.cjs +1 -0
- package/dist/{vue-ui-strip-plot-WOMaN28I.js → vue-ui-strip-plot-mNsmytzE.js} +118 -118
- package/dist/{vue-ui-table-CTtYDZPd.cjs → vue-ui-table-BwuSG-oE.cjs} +1 -1
- package/dist/{vue-ui-table-a4m3lpRq.js → vue-ui-table-C8_8TJ2H.js} +1 -1
- package/dist/{vue-ui-table-heatmap-0vDMKYpV.js → vue-ui-table-heatmap-Bakns13v.js} +4 -4
- package/dist/{vue-ui-table-heatmap-i00aBLPq.cjs → vue-ui-table-heatmap-ZfohVD71.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DW7t3xfB.cjs → vue-ui-table-sparkline-CC5hpyGe.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-D5lngzCM.js → vue-ui-table-sparkline-Du93NBKM.js} +5 -5
- package/dist/{vue-ui-thermometer-QtlVD4-S.cjs → vue-ui-thermometer-Cbe7bVeq.cjs} +1 -1
- package/dist/{vue-ui-thermometer-3aeRI-SM.js → vue-ui-thermometer-DZeTxVGM.js} +7 -7
- package/dist/{vue-ui-timer-B1nkj0WG.cjs → vue-ui-timer-B-guKc3A.cjs} +1 -1
- package/dist/{vue-ui-timer-mRaLpRHZ.js → vue-ui-timer-BwNbaMti.js} +5 -5
- package/dist/{vue-ui-tiremarks-xMuvEsN7.cjs → vue-ui-tiremarks-DNtBCjbs.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-Dv2O6FpS.js → vue-ui-tiremarks-sCXXGXiN.js} +7 -7
- package/dist/{vue-ui-treemap-D89aQanB.js → vue-ui-treemap-BQoajav9.js} +108 -108
- package/dist/vue-ui-treemap-CH_qGgmb.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-BpLIp4qR.js → vue-ui-vertical-bar-LWxKcXEf.js} +54 -54
- package/dist/{vue-ui-vertical-bar-CwHag6jq.cjs → vue-ui-vertical-bar-ytpJJBqm.cjs} +3 -3
- package/dist/vue-ui-waffle-CvHppO8v.cjs +1 -0
- package/dist/{vue-ui-waffle-sr2mWvpN.js → vue-ui-waffle-q-CgTerF.js} +99 -99
- package/dist/{vue-ui-wheel-C0KYRHGC.cjs → vue-ui-wheel-BoXkxGeh.cjs} +1 -1
- package/dist/{vue-ui-wheel-B7DOHXW8.js → vue-ui-wheel-CPHOwOzy.js} +7 -7
- package/dist/{vue-ui-word-cloud-BxMb7oCr.js → vue-ui-word-cloud-BargS03s.js} +81 -81
- package/dist/vue-ui-word-cloud-DFL3e0A2.cjs +1 -0
- package/dist/{vue-ui-xy-D5ROTNHD.cjs → vue-ui-xy-CgIp7caN.cjs} +2 -2
- package/dist/{vue-ui-xy-DlyUTKB5.js → vue-ui-xy-DC5y2PjZ.js} +24 -16
- package/dist/{vue-ui-xy-canvas-DHvkJKQH.js → vue-ui-xy-canvas-B4mqwnlS.js} +35 -35
- package/dist/{vue-ui-xy-canvas-BDMk6XVE.cjs → vue-ui-xy-canvas-D1jemBXQ.cjs} +3 -3
- package/package.json +1 -1
- package/dist/vue-ui-age-pyramid-BgsDYe37.cjs +0 -1
- package/dist/vue-ui-donut-B1Cg4vpI.cjs +0 -1
- package/dist/vue-ui-donut-evolution-CgB_aexh.cjs +0 -1
- package/dist/vue-ui-dumbbell-Cm5O6D4x.cjs +0 -9
- package/dist/vue-ui-flow-CIkXePxd.cjs +0 -1
- package/dist/vue-ui-funnel-BLXk1z5r.cjs +0 -1
- package/dist/vue-ui-galaxy-C01Apc4E.cjs +0 -1
- package/dist/vue-ui-heatmap-DYPE1Efx.cjs +0 -1
- package/dist/vue-ui-history-plot-BeYYrq5_.cjs +0 -1
- package/dist/vue-ui-molecule-Ckh2JsOJ.cjs +0 -1
- package/dist/vue-ui-mood-radar-WHFk1KC1.cjs +0 -1
- package/dist/vue-ui-quadrant-D8krEYWV.cjs +0 -1
- package/dist/vue-ui-quick-chart-DTiell5S.cjs +0 -15
- package/dist/vue-ui-radar-DKB9rVav.cjs +0 -1
- package/dist/vue-ui-scatter-CDT3zyXP.cjs +0 -1
- package/dist/vue-ui-strip-plot-C1pjZ1AT.cjs +0 -1
- package/dist/vue-ui-treemap-BupfwSFa.cjs +0 -1
- package/dist/vue-ui-waffle-DuPI0NV4.cjs +0 -1
- package/dist/vue-ui-word-cloud-BCPMmXhU.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),g=require("./useNestedProp-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),g=require("./useNestedProp-LNEDZsGq.cjs"),L=require("./index-xEXHnOtJ.cjs"),f={key:0},m=["d","fill"],k=["d","fill"],h=["d","fill"],v=["d","fill"],C=["d","fill"],N=["d","fill"],b=["d","fill"],B={key:1},E=["cx","cy","fill"],q={__name:"Digit",props:{quanta:{type:String,default:null},backgroundColor:{type:String,default:"#e1e5e8"},color:{type:String,default:"#000000"},x:{type:Number,default:0},y:{type:Number,default:0}},setup(e){const u=e,$=t.ref({0:"1111110",1:"0110000",2:"1101101",3:"1111001",4:"0110011",5:"1011011",6:"1011111",7:"1110000",8:"1111111",9:"1111011","-":"0000001",X:"0000000"}),l=t.computed(()=>[void 0,null].includes(u.quanta)?$.value.X:$.value[u.quanta]);return(a,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[[void 0,null,"."].includes(e.quanta)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("g",f,[t.createElementVNode("path",{d:`M ${e.x} ${e.y} L ${e.x+2} ${e.y-2} L ${e.x+24} ${e.y-2} L ${e.x+26} ${e.y} L ${e.x+24} ${e.y+2} L ${e.x+2} ${e.y+2}Z`,fill:l.value[0]==1?e.color:e.backgroundColor,stroke:"none"},null,8,m),t.createElementVNode("path",{d:`M ${e.x+26} ${e.y+26} L ${e.x+26} ${e.y+4} L ${e.x+28} ${e.y+2} L ${e.x+30} ${e.y+4} L ${e.x+30} ${e.y+26} L ${e.x+28} ${e.y+28} L ${e.x+26} ${e.y+26}`,fill:l.value[1]==1?e.color:e.backgroundColor,stroke:"none"},null,8,k),t.createElementVNode("path",{d:`M ${e.x+26} ${e.y+56} L ${e.x+26} ${e.y+34} L ${e.x+28} ${e.y+32} L ${e.x+30} ${e.y+34} L ${e.x+30} ${e.y+56} L ${e.x+28} ${e.y+58} L ${e.x+26} ${e.y+56}`,fill:l.value[2]==1?e.color:e.backgroundColor,stroke:"none"},null,8,h),t.createElementVNode("path",{d:`M ${e.x+2} ${e.y+58} L ${e.x} ${e.y+60} L ${e.x+2} ${e.y+62} L ${e.x+24} ${e.y+62} L ${e.x+26} ${e.y+60} L ${e.x+24} ${e.y+58} L ${e.x+2} ${e.y+58}`,fill:l.value[3]==1?e.color:e.backgroundColor,stroke:"none"},null,8,v),t.createElementVNode("path",{d:`M ${e.x} ${e.y+34} L ${e.x-2} ${e.y+32} L ${e.x-4} ${e.y+34} L ${e.x-4} ${e.y+56} L ${e.x-2} ${e.y+58} L ${e.x} ${e.y+56} L ${e.x} ${e.y+34}`,fill:l.value[4]==1?e.color:e.backgroundColor,stroke:"none"},null,8,C),t.createElementVNode("path",{d:`M ${e.x-2} ${e.y+2} L ${e.x} ${e.y+4} L ${e.x} ${e.y+26} L ${e.x-2} ${e.y+28} L ${e.x-4} ${e.y+26} L ${e.x-4} ${e.y+4} L ${e.x-2} ${e.y+2}`,fill:l.value[5]==1?e.color:e.backgroundColor,stroke:"none"},null,8,N),t.createElementVNode("path",{d:`M ${e.x+2} ${e.y+28} L ${e.x} ${e.y+30} L ${e.x+2} ${e.y+32} L ${e.x+24} ${e.y+32} L ${e.x+26} ${e.y+30} L ${e.x+24} ${e.y+28} L ${e.x+2} ${e.y+28}`,fill:l.value[6]==1?e.color:e.backgroundColor,stroke:"none"},null,8,b)])),e.quanta=="."?(t.openBlock(),t.createElementBlock("g",B,[t.createElementVNode("circle",{cx:e.x-8,cy:e.y+60,r:3,fill:e.color},null,8,E)])):t.createCommentVNode("",!0)],64))}},M=["xmlns","viewBox"],V={__name:"vue-ui-digits",props:{dataset:{type:Number,default:0},config:{type:Object,default(){return{}}}},setup(e){const u=e,{vue_ui_digits:$}=L.useConfig(),l=t.computed(()=>g.useNestedProp({userConfig:u.config,defaultConfig:$})),a=t.computed(()=>{const c=(u.dataset||0).toString().split(""),d=[],n={x:10,y:10};let i=0;for(let y=0;y<c.length;y+=1){const o=c[y];d.push({x:n.x+i,y:n.y,quanta:o}),o=="."?i+=2:i+=44}return d}),x=t.computed(()=>Math.max(...a.value.map(c=>c.x))+36);return(c,d)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:t.unref(L.XMLNS),viewBox:`0 0 ${x.value} 80`,style:t.normalizeStyle(`background:${l.value.backgroundColor};${l.value.height?`height:${l.value.height};`:""}${l.value.width?`width:${l.value.width}`:""}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,n=>(t.openBlock(),t.createBlock(q,{x:n.x,y:n.y,quanta:n.quanta,color:l.value.digits.color,backgroundColor:l.value.digits.skeletonColor},null,8,["x","y","quanta","color","backgroundColor"]))),256))],12,M))}};exports.default=V;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-xEXHnOtJ.cjs"),we=require("./useResponsive-BJ7DTGpm.cjs"),ze=require("./Title-DcTKT_WK.cjs"),Ce=require("./usePrinter-CjQvMB0_.cjs"),Te=require("./DataTable-DVKGDaCB.cjs"),Xe=require("./Tooltip-y6Z9yhlE.cjs"),De=require("./Legend-Uv0t6PIz.cjs"),Me=require("./vue-ui-skeleton-Tse1D8cv.cjs"),Ye=require("./vue-ui-accordion-2c1jq56U.cjs"),Be=require("./useNestedProp-LNEDZsGq.cjs"),Ae=require("./PackageVersion-BgKxrHv-.cjs"),Ie=require("./PenAndPaper-BYVZ33fz.cjs"),qe=require("./useUserOptionState-BgepsfED.cjs"),Re=require("./Shape-CNuTafzS.cjs"),Ge=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ue=V=>(e.pushScopeId("data-v-628c2c1b"),V=V(),e.popScopeId(),V),je=["id"],He=["xmlns","viewBox"],We=["width","height"],Je={key:1},Ke=["id"],Qe=["stop-color"],Ze=["offset","stop-color"],et=["offset","stop-color"],tt=["stop-color"],lt={key:2},ot=["id","cx","cy"],at=["stop-color","stop-opacity"],rt=["stop-color"],nt=["id"],ut=["id"],st=Ue(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),it=["id"],ct=["flood-color"],dt=["id"],vt=["flood-color"],ht=["d","stroke","filter"],ft=["x1","y1","x2","y2","stroke","filter"],yt=["cx","cy","r","fill","filter"],pt={key:6},mt=["stroke","d"],kt={key:0},gt=["d","fill","stroke","stroke-width","filter"],bt=["d","fill","stroke","stroke-width","filter"],wt={key:0},Ct=["stroke","d"],Bt={key:0},_t=["d","stroke","stroke-width","filter"],xt={key:1},$t=["d","fill","stroke","stroke-width","filter"],St=["d","fill","stroke","stroke-width","filter"],Et={key:1},Nt=["cx","cy","r","fill","stroke","stroke-width"],Pt=["cx","cy","r","fill","stroke","stroke-width"],Vt=["cx","cy","r","stroke"],Ft=["cx","cy","r","fill"],Lt={key:0},Ot=["d","fill","onMouseenter","onClick"],zt={key:1},Tt=["cx","cy","r","fill"],Xt=["x","y","fill","font-size"],Dt=["x","y","fill","font-size"],Mt=["x","y","fill","font-size"],Yt=["x","y","fill","font-size"],At=["filter"],It={key:0},qt=["x","y"],Rt={key:1},Gt=["cx","cy","fill","stroke","filter","onClick"],Ut=["cx","cy","fill","stroke","filter","onClick"],jt=["text-anchor","x","y","fill","font-size","onClick"],Ht=["text-anchor","x","y","fill","font-size","onClick"],Wt=["text-anchor","x","y","fill","font-size","onClick"],Jt=["text-anchor","x","y","fill","font-size","onClick"],Kt={key:2},Qt=["x","y","width"],Zt=["x","y","width"],el={key:5,class:"vue-data-ui-watermark"},tl=["onClick"],ll={key:0,style:{"font-variant-numeric":"tabular-nums"}},ol={key:1},al=["innerHTML"],rl={__name:"vue-ui-donut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(V,{expose:_e,emit:G}){const b=V,{vue_ui_donut:xe}=r.useConfig(),$e=e.useSlots(),F=e.computed({get(){return!!b.dataset&&b.dataset.length},set(o){return o}}),E=e.ref(null),U=e.ref(null),j=e.ref(null),z=e.ref(null),H=e.ref(null),W=e.ref(null),J=e.ref(0),K=e.ref(0),Q=e.ref(0);e.onMounted(()=>{Z()}),e.onBeforeUnmount(()=>{z.value&&z.value.disconnect()});function Z(){if(r.objectIsEmpty(b.dataset)?r.error({componentName:"VueUiDonut",type:"dataset"}):b.dataset.forEach((o,u)=>{r.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values"]}).forEach(l=>{F.value=!1,r.error({componentName:"VueUiDonut",type:"datasetSerieAttribute",property:l,index:u})})}),t.value.responsive){const o=we.throttle(()=>{const{width:u,height:l}=we.useResponsive({chart:E.value,title:t.value.style.chart.title.text?U.value:null,legend:t.value.style.chart.legend.show?j.value:null,source:H.value,noTitle:W.value});requestAnimationFrame(()=>{n.value.width=u,n.value.height=l})});z.value=new ResizeObserver(o),z.value.observe(E.value.parentNode)}}const d=e.ref(r.createUid()),Se=e.ref(null),T=e.ref(!1),M=e.ref(""),p=e.ref(null),ee=e.ref(0);function te(){const o=Be.useNestedProp({userConfig:b.config,defaultConfig:xe});return o.theme?{...Be.useNestedProp({userConfig:r.themes.vue_ui_donut[o.theme]||b.config,defaultConfig:o}),customPalette:r.themePalettes[o.theme]||r.palette}:o}const t=e.computed({get:()=>te(),set:o=>o}),{userOptionsVisible:Y,setUserOptionsVisibility:le,keepUserOptionState:oe}=qe.useUserOptionState({config:t.value});e.watch(()=>b.config,o=>{t.value=te(),Y.value=!t.value.showOnChartHover,Z(),J.value+=1,K.value+=1,Q.value+=1,v.value.dataLabels.show=t.value.style.chart.layout.labels.dataLabels.show,v.value.showTable=t.value.table.show,v.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const{isPrinting:ae,isImaging:re,generatePdf:ne,generateImage:ue}=Ce.usePrinter({elementId:`donut__${d.value}`,fileName:t.value.style.chart.title.text||"vue-ui-donut"}),Ee=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),se=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),v=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),n=e.ref({height:360,width:512}),L=e.computed(()=>{const o=t.value.style.chart.layout.donut.strokeWidth/512,u=n.value.width*o,l=u>y.value?y.value:u;return l<24?24:l}),x=e.computed(()=>b.dataset.map((o,u)=>({name:o.name,color:r.convertColorToHex(o.color)||se.value[u]||r.palette[u]||r.palette[u%r.palette.length],value:o.values.reduce((l,a)=>l+a,0),absoluteValues:o.values,comment:o.comment||"",patternIndex:u}))),k=e.ref(x.value);e.watch(()=>x.value,o=>k.value=o);function Ne(){return x.value.map(o=>({name:o.name,color:o.color,value:o.value}))}const w=e.ref([]),ie=e.ref(null),ce=e.ref(null),$=e.ref(!1);function de(o){const u=x.value.find((s,h)=>h===o),l=k.value.find((s,h)=>h===o);let a=l.value;if(w.value.includes(o)){let h=function(){a>s?(cancelAnimationFrame(ie.value),k.value=k.value.map((f,R)=>o===R?{...f,value:s}:f),$.value=!1):($.value=!0,a+=s*.025,k.value=k.value.map((f,R)=>o===R?{...f,value:a}:f),ie.value=requestAnimationFrame(h))};w.value=w.value.filter(f=>f!==o);const s=u.value;h()}else if(w.value.length<x.value.length-1){let s=function(){a<l.value/100?(cancelAnimationFrame(ce.value),w.value.push(o),k.value=k.value.map((h,f)=>o===f?{...h,value:0}:h),$.value=!1):($.value=!0,a/=1.1,k.value=k.value.map((h,f)=>o===f?{...h,value:a}:h),ce.value=requestAnimationFrame(s))};s()}G("selectLegend",C.value.map(s=>({name:s.name,color:s.color,value:s.value})))}const C=e.computed(()=>(k.value.forEach((o,u)=>{if([null,void 0].includes(o.values))return{...o,values:[]}}),k.value.map((o,u)=>({...o,seriesIndex:u})).filter((o,u)=>!w.value.includes(u)))),ve=e.computed(()=>b.dataset.map((o,u)=>({name:o.name,color:r.convertColorToHex(o.color)||se.value[u]||r.palette[u]||r.palette[u%r.palette.length],value:(o.values||[]).reduce((l,a)=>l+a,0),shape:"circle",patternIndex:u})).map((o,u)=>({...o,proportion:o.value/b.dataset.map(l=>(l.values||[]).reduce((a,s)=>a+s,0)).reduce((l,a)=>l+a,0),opacity:w.value.includes(u)?.5:1,segregate:()=>!$.value&&de(u),isSegregated:w.value.includes(u)}))),Pe=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),y=e.computed(()=>{const o=Math.min(n.value.width/3,n.value.height/3);return o<55?55:o}),c=e.computed(()=>r.makeDonut({series:C.value},n.value.width/2,n.value.height/2,y.value,y.value,1.99999,2,1,360,105.25,L.value)),i=e.computed(()=>{const o=Math.max(...C.value.map(l=>l.value)),u=C.value.map(l=>l.value/o);return r.createPolarAreas({series:u,center:{x:n.value.width/2,y:n.value.height/2},maxRadius:Math.min(n.value.width,n.value.height)/3})});function N(o){return o.x>n.value.width/2+6?"start":o.x<n.value.width/2-6?"end":"middle"}function Ve(o){return o.middlePoint.y>n.value.height/2?r.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:100,centerX:n.value.width/2,centerY:n.value.height/2}).y:r.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:0,centerX:n.value.width/2,centerY:n.value.height/2}).y-100}function g(o){return o.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function A(o,u){const l=o.value/Fe(u);return isNaN(l)?0:r.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,l*100,r.dataLabel({v:l*100,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding}),{datapoint:o})}function Fe(o){return[...o].map(u=>u.value).reduce((u,l)=>u+l,0)}const m=e.computed(()=>C.value.map(o=>o.value).reduce((o,u)=>o+u,0)),he=e.computed(()=>m.value/C.value.length),fe=e.computed(()=>o=>$.value?o.proportion*100:o.value/m.value*100),I=e.ref(null),O=e.ref(!1);function ye({datapoint:o,relativeIndex:u,seriesIndex:l,show:a=!1}){I.value={datapoint:o,seriesIndex:l,config:t.value,series:x.value},T.value=a,p.value=u;let s="";const h=t.value.style.chart.tooltip.customFormat;if(O.value=!1,r.isFunction(h))try{const f=h({seriesIndex:l,datapoint:o,series:x.value,config:t.value});typeof f=="string"&&(M.value=f,O.value=!0)}catch{console.warn("Custom format cannot be applied."),O.value=!1}if(!O.value){if(s+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,s+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${o.color}"/>${$e.pattern?`<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${d.value}_${l})"/>`:""}</svg>`,t.value.style.chart.tooltip.showValue&&(s+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.value.formatter,o.value,r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:o,relativeIndex:u,seriesIndex:l})}</b>`),t.value.style.chart.tooltip.showPercentage){const f=r.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,o.proportion*100,r.dataLabel({v:o.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage}),{datapoint:o,relativeIndex:u,seriesIndex:l});t.value.style.chart.tooltip.showValue?s+=`<span>(${f})</span></div>`:s+=`<b>${f}</b></div>`}t.value.style.chart.comments.showInTooltip&&o.comment&&(s+=`<div class="vue-data-ui-tooltip-comment" style="background:${o.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${o.color}">${o.comment}</div>`),M.value=`<div>${s}</div>`}}function S(o){return t.value.useBlurOnHover&&![null,void 0].includes(p.value)&&p.value!==o?`url(#blur_${d.value})`:""}const B=e.computed(()=>{const o=C.value.map(l=>({name:l.name,color:l.color})),u=C.value.map(l=>l.value);return{head:o,body:u}});function pe(){e.nextTick(()=>{const o=B.value.head.map((a,s)=>[[a.name],[B.value.body[s]],[isNaN(B.value.body[s]/m.value)?"-":B.value.body[s]/m.value*100]]),u=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=r.createCsvContent(u);r.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-donut"})})}const X=e.computed(()=>{const o=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:m.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],u=B.value.head.map((s,h)=>[{color:s.color,name:s.name},B.value.body[h],isNaN(B.value.body[h]/m.value)?"-":(B.value.body[h]/m.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:o,body:u,config:l}}),P=e.ref(!1);function Le(o){P.value=o,ee.value+=1}const me=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent));function Oe(o){return o.toFixed(t.value.style.chart.legend.roundingPercentage).split("").map(u=>"-").join("")}function _(o,u){G("selectDatapoint",{datapoint:o,index:u})}function ke(){v.value.showTable=!v.value.showTable}function ge(){v.value.dataLabels.show=!v.value.dataLabels.show}function be(){v.value.showTooltip=!v.value.showTooltip}const D=e.ref(!1);function q(){D.value=!D.value}return _e({getData:Ne,generatePdf:ne,generateCsv:pe,generateImage:ue,toggleTable:ke,toggleLabels:ge,toggleTooltip:be,toggleAnnotator:q}),(o,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutChart",ref:E,class:e.normalizeClass(`vue-ui-donut ${P.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height:100%;":""} text-align:center;background:${t.value.style.chart.backgroundColor}`),id:`donut__${d.value}`,onMouseenter:u[6]||(u[6]=()=>e.unref(le)(!0)),onMouseleave:u[7]||(u[7]=()=>e.unref(le)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ie.PenAndPaper,{key:0,parent:E.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:D.value,onClose:q},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"userConfig",{},void 0,!0),Ee.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:W,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:U,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ze._sfc_main,{key:`title_${J.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&F.value&&(e.unref(oe)||e.unref(Y))?(e.openBlock(),e.createBlock(Ce.UserOptions,{ref_key:"details",ref:Se,key:`user_option_${ee.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ae),isImaging:e.unref(re),uid:d.value,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:P.value,chartElement:E.value,position:t.value.userOptions.position,isTooltip:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:D.value,onToggleFullscreen:Le,onGeneratePdf:e.unref(ne),onGenerateCsv:pe,onGenerateImage:e.unref(ue),onToggleTable:ke,onToggleLabels:ge,onToggleTooltip:be,onToggleAnnotator:q,style:e.normalizeStyle({visibility:e.unref(oe)?e.unref(Y)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:a})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:a})),void 0,!0)]),key:"6"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:a})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:a})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasLabel","hasFullscreen","isFullscreen","chartElement","position","isTooltip","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),F.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":P.value,"vue-data-ui-fulscreen--off":!P.value}),viewBox:`0 0 ${n.value.width<=0?10:n.value.width} ${n.value.height<=0?10:n.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ae._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:n.value.width<=0?10:n.value.width,height:n.value.height<=0?10:n.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,We)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock("defs",Je,[t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("radialGradient",{key:0,id:`gradient_${d.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,Qe),e.createElementVNode("stop",{offset:`${(1-L.value/y.value)*100}%`,"stop-color":e.unref(r.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,Ze),e.createElementVNode("stop",{offset:`${(1-L.value/y.value/2)*100}%`,"stop-color":e.unref(r.setOpacity)("#FFFFFF",t.value.style.chart.gradientIntensity)},null,8,et),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,tt)],8,Ke)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock("defs",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,a)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`polar_gradient_${a}_${d.value}`,cx:l.middlePoint.x/n.value.width*100+"%",cy:l.middlePoint.y/n.value.height*100+"%",r:"62%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.shiftHue)(c.value[a].color,.05),"stop-opacity":t.value.style.chart.gradientIntensity/100},null,8,at),e.createElementVNode("stop",{offset:"100%","stop-color":c.value[a].color},null,8,rt)],8,ot))),256))])):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${d.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${d.value}`},null,8,ut),st],8,nt),e.createElementVNode("filter",{id:`shadow_${d.value}`,"color-interpolation-filters":"sRGB"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"10","flood-opacity":"0.5","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,ct)],8,it),e.createElementVNode("filter",{id:`drop_shadow_${d.value}`,"color-interpolation-filters":"sRGB",x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"3","flood-opacity":"1","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,vt)],8,dt)]),t.value.type==="classic"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[g(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(r.calcNutArrowPath)(l,{x:n.value.width/2,y:n.value.height/2},16,16,!1,!1,L.value),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:S(a)},null,8,ht)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:4},e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[g(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:n.value.width/2,centerY:n.value.height/2}).x,y1:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:n.value.width/2,centerY:n.value.height/2}).y,x2:i.value[a].middlePoint.x,y2:i.value[a].middlePoint.y,stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:S(a)},null,8,ft)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="classic"&&t.value.style.chart.layout.donut.useShadow?(e.openBlock(),e.createElementBlock("circle",{key:5,cx:n.value.width/2,cy:n.value.height/2,r:y.value<=0?10:y.value,fill:t.value.style.chart.backgroundColor,filter:`url(#shadow_${d.value})`},null,8,yt)):e.createCommentVNode("",!0),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",pt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(o.$slots,"pattern",e.normalizeProps(e.guardReactiveProps({...l,patternId:`pattern_${d.value}_${l.patternIndex}`})),void 0,!0)]))),256))])):e.createCommentVNode("",!0),m.value&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:7},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:l.arcSlice,fill:"#FFFFFF"},null,8,mt))),256)),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",kt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:`url(#pattern_${d.value}_${l.patternIndex})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:S(a)},null,8,gt))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:e.unref(r.setOpacity)(l.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:S(a)},null,8,bt))),256))],64)):e.createCommentVNode("",!0),m.value&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:8},[c.value.length>1?(e.openBlock(),e.createElementBlock("g",wt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:i.value[a].path,fill:"#FFFFFF"},null,8,Ct))),256)),t.value.style.chart.layout.donut.useShadow?(e.openBlock(),e.createElementBlock("g",Bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:"transparent",stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:`url(#drop_shadow_${d.value})`},null,8,_t))),256))])):e.createCommentVNode("",!0),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:`url(#pattern_${d.value}_${l.patternIndex})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:S(a)},null,8,$t))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:t.value.style.chart.useGradient?`url(#polar_gradient_${a}_${d.value})`:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:S(a)},null,8,St))),256))])):(e.openBlock(),e.createElementBlock("g",Et,[o.$slots.pattern?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:n.value.width/2,cy:n.value.height/2,r:y.value,fill:`url(#pattern_${d.value}_${c.value[0].patternIndex})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth},null,8,Nt)):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:n.value.width/2,cy:n.value.height/2,r:y.value,fill:t.value.style.chart.useGradient?`url(#polar_gradient_0_${d.value})`:c.value[0].color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth},null,8,Pt)]))],64)):(e.openBlock(),e.createElementBlock("circle",{key:9,cx:n.value.width/2,cy:n.value.height/2,r:y.value<=0?10:y.value,fill:"transparent",stroke:t.value.style.chart.backgroundColor},null,8,Vt)),t.value.style.chart.useGradient&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("circle",{key:10,cx:n.value.width/2,cy:n.value.height/2,r:y.value<=0?10:y.value,fill:`url(#gradient_${d.value})`},null,8,Ft)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:11},[c.value.length>1||t.value.type==="classic"?(e.openBlock(),e.createElementBlock("g",Lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{"data-cy-donut-trap":"",d:t.value.type==="classic"?l.arcSlice:i.value[a].path,fill:p.value===a?"rgba(0,0,0,0.1)":"transparent",onMouseenter:s=>ye({datapoint:l,relativeIndex:a,seriesIndex:l.seriesIndex,show:!0}),onMouseleave:u[0]||(u[0]=s=>{T.value=!1,p.value=null}),onClick:s=>_(l,a)},null,40,Ot))),256))])):(e.openBlock(),e.createElementBlock("g",zt,[e.createElementVNode("circle",{cx:n.value.width/2,cy:n.value.height/2,r:y.value,fill:p.value===o.i?"rgba(0,0,0,0.1)":"transparent","data-cy-donut-trap":"",onMouseenter:u[1]||(u[1]=l=>ye({datapoint:c.value[0],relativeIndex:0,seriesIndex:c.value[0].seriesIndex,show:!0})),onMouseleave:u[2]||(u[2]=l=>{T.value=!1,p.value=null}),onClick:u[3]||(u[3]=l=>_(c.value[0],o.i))},null,40,Tt)]))],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:12},[t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:n.value.width/2,y:n.value.height/2-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.color,"font-size":t.value.style.chart.layout.labels.hollow.total.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.total.text),13,Xt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:n.value.width/2,y:n.value.height/2+t.value.style.chart.layout.labels.hollow.total.fontSize-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.value.color,"font-size":t.value.style.chart.layout.labels.hollow.total.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.value.bold?"bold":""}`)},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.hollow.total.value.formatter,m.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.hollow.total.value.prefix,v:m.value,s:t.value.style.chart.layout.labels.hollow.total.value.suffix}))),13,Dt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":"middle",x:n.value.width/2,y:n.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.color,"font-size":t.value.style.chart.layout.labels.hollow.average.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.average.text),13,Mt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:3,"text-anchor":"middle",x:n.value.width/2,y:n.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.fontSize+t.value.style.chart.layout.labels.hollow.average.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.value.color,"font-size":t.value.style.chart.layout.labels.hollow.average.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.value.bold?"bold":""}`)},e.toDisplayString($.value?"--":e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.hollow.average.value.formatter,he.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.hollow.average.value.prefix,v:he.value,s:t.value.style.chart.layout.labels.hollow.average.value.suffix,r:t.value.style.chart.layout.labels.hollow.average.value.rounding}))),13,Yt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",{filter:S(a),class:e.normalizeClass({animated:t.value.useCssAnimation})},[t.value.style.chart.layout.labels.dataLabels.useLabelSlots?(e.openBlock(),e.createElementBlock("g",It,[(e.openBlock(),e.createElementBlock("foreignObject",{x:e.unref(r.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(r.calcMarkerOffsetX)(l).x-120:e.unref(r.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(r.calcMarkerOffsetX)(l).x-60:e.unref(r.calcMarkerOffsetX)(l).x,y:e.unref(r.calcMarkerOffsetY)(l)-(me.value?20:0),width:"120",height:"60",style:{overflow:"visible"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"dataLabel",e.normalizeProps(e.guardReactiveProps({datapoint:l,isBlur:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===a,isSafari:me.value,isVisible:g(l)&&v.value.dataLabels.show,textAlign:e.unref(r.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(r.calcMarkerOffsetX)(l,!0,16).anchor,percentage:A(l,c.value)})),void 0,!0)])],8,qt))])):(e.openBlock(),e.createElementBlock("g",Rt,[t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[g(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(r.calcMarkerOffsetX)(l).x,cy:e.unref(r.calcMarkerOffsetY)(l)-3.5,fill:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":1,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===a?"":`url(#blur_${d.value})`,onClick:s=>_(l,a)},null,8,Gt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[g(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:n.value.width/2,centerY:n.value.height/2}).x,cy:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:n.value.width/2,centerY:n.value.height/2}).y,fill:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":1,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===a?"":`url(#blur_${d.value})`,onClick:s=>_(l,a)},null,8,Ut)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[g(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":e.unref(r.calcMarkerOffsetX)(l,!0,12).anchor,x:e.unref(r.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(r.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.labels.percentage.color,"font-size":t.value.style.chart.layout.labels.percentage.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.percentage.bold?"bold":""}`),onClick:s=>_(l,a)},e.toDisplayString(A(l,c.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}),{datapoint:l})})`:""),13,jt)):e.createCommentVNode("",!0),g(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(r.calcMarkerOffsetX)(l).anchor,x:e.unref(r.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(r.calcMarkerOffsetY)(l)+t.value.style.chart.layout.labels.percentage.fontSize,fill:t.value.style.chart.layout.labels.name.color,"font-size":t.value.style.chart.layout.labels.name.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.name.bold?"bold":""}`),onClick:s=>_(l,a)},e.toDisplayString(l.name),13,Ht)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[g(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":N(i.value[a].middlePoint),x:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).x,y:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).y,fill:t.value.style.chart.layout.labels.percentage.color,"font-size":t.value.style.chart.layout.labels.percentage.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.percentage.bold?"bold":""}`),onClick:s=>_(l,a)},e.toDisplayString(A(l,c.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}),{datapoint:l})})`:""),13,Wt)):e.createCommentVNode("",!0),g(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":N(i.value[a].middlePoint),x:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).x,y:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).y+t.value.style.chart.layout.labels.percentage.fontSize,fill:t.value.style.chart.layout.labels.name.color,"font-size":t.value.style.chart.layout.labels.name.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.name.bold?"bold":""}`),onClick:s=>_(l,a)},e.toDisplayString(l.name),13,Jt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),v.value.dataLabels.show&&t.value.style.chart.comments.show&&l.comment?(e.openBlock(),e.createElementBlock("g",Kt,[g(l)&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.value.style.chart.comments.offsetX+(e.unref(r.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(r.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width:e.unref(r.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(r.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width/2:e.unref(r.calcMarkerOffsetX)(l).x),y:e.unref(r.calcMarkerOffsetY)(l)+24+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:{overflow:"visible","pointer-events":"none"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"plot-comment",{plot:{...l,textAlign:e.unref(r.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(r.calcMarkerOffsetX)(l,!0,16).anchor}},void 0,!0)])],8,Qt)):e.createCommentVNode("",!0),g(l)&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:t.value.style.chart.comments.offsetX+(N(i.value[a].middlePoint)==="end"?e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).x-t.value.style.chart.comments.width:N(i.value[a].middlePoint)==="middle"?e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).x-t.value.style.chart.comments.width/2:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).x),y:Ve(i.value[a])+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:{overflow:"visible","pointer-events":"none"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"plot-comment",{plot:{...l,textAlign:N(i.value[a].middlePoint),flexAlign:N(i.value[a].middlePoint)}},void 0,!0)])],8,Zt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,At))),256)),e.renderSlot(o.$slots,"svg",{svg:n.value},void 0,!0)],14,He)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",el,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ae)||e.unref(re)})),void 0,!0)])):e.createCommentVNode("",!0),F.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Me.default,{key:6,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC",strokeWidth:L.value*.8}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:j},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(De.Legend,{key:`legend_${Q.value}`,legendSet:ve.value,config:Pe.value,onClickMarker:u[4]||(u[4]=({i:l})=>de(l))},e.createSlots({item:e.withCtx(({legend:l,index:a})=>[e.createElementVNode("div",{style:e.normalizeStyle(`opacity:${w.value.includes(a)?.5:1}`),onClick:s=>l.segregate()},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,index:a}))+" ",1),w.value.includes(a)?(e.openBlock(),e.createElementBlock("span",ol," ( "+e.toDisplayString(Oe(l.proportion*100))+" % ) ",1)):(e.openBlock(),e.createElementBlock("span",ll," ("+e.toDisplayString(isNaN(l.value/m.value)?"-":e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,fe.value(l),e.unref(r.dataLabel)({v:fe.value(l),s:"%",r:t.value.style.chart.legend.roundingPercentage})))+") ",1))],12,tl)]),_:2},[o.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:l,index:a})=>[e.createVNode(Re._sfc_main,{shape:l.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${d.value}_${a})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"legend",{legend:ve.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:H,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Xe._sfc_main,{show:v.value.showTooltip&&T.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:E.value,content:M.value,isCustom:O.value,isFullscreen:P.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom","isFullscreen"]),F.value?(e.openBlock(),e.createBlock(Ye.default,{key:8,hideDetails:"",config:{open:v.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Te.DataTable,{key:`table_${K.value}`,colNames:X.value.colNames,head:X.value.head,body:X.value.body,config:X.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:u[5]||(u[5]=l=>v.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,al)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name?l.name:isNaN(Number(l))?l.includes("%")?l:e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,l,e.unref(r.dataLabel)({v:l,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding})):e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}))),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,je))}},nl=Ge._export_sfc(rl,[["__scopeId","data-v-628c2c1b"]]);exports.default=nl;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { useSlots as nt, computed as _, ref as d, onMounted as rt, onBeforeUnmount as it, watch as je, openBlock as o, createElementBlock as u, normalizeClass as de, normalizeStyle as z, unref as n, createBlock as U, createCommentVNode as i, renderSlot as b, createSlots as We, withCtx as $, normalizeProps as j, guardReactiveProps as W, createVNode as he, createElementVNode as
|
|
2
|
-
import { u as ht, o as yt, e as Ee, g as ft, c as pt, b as gt, d as Re, p as H, m as bt, H as mt, f as O, X as wt, s as ee, w as kt, j as _t, I as L, i as A, k as w, n as te, t as xt, a as $t, x as Ct, q as Pt, r as St } from "./index-
|
|
1
|
+
import { useSlots as nt, computed as _, ref as d, onMounted as rt, onBeforeUnmount as it, watch as je, openBlock as o, createElementBlock as u, normalizeClass as de, normalizeStyle as z, unref as n, createBlock as U, createCommentVNode as i, renderSlot as b, createSlots as We, withCtx as $, normalizeProps as j, guardReactiveProps as W, createVNode as he, createElementVNode as p, Fragment as g, renderList as F, toDisplayString as C, createTextVNode as He, nextTick as vt, pushScopeId as ct, popScopeId as dt } from "vue";
|
|
2
|
+
import { u as ht, o as yt, e as Ee, g as ft, c as pt, b as gt, d as Re, p as H, m as bt, H as mt, f as O, X as wt, s as ee, w as kt, j as _t, I as L, i as A, k as w, n as te, t as xt, a as $t, x as Ct, q as Pt, r as St } from "./index-DCHLGNvJ.js";
|
|
3
3
|
import { t as Ft, u as Lt } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as Tt } from "./Title-
|
|
5
|
-
import { u as zt, U as Ot } from "./usePrinter-
|
|
6
|
-
import { D as Yt } from "./DataTable-
|
|
7
|
-
import { _ as At } from "./Tooltip-
|
|
8
|
-
import { L as Nt } from "./Legend-
|
|
9
|
-
import Xt from "./vue-ui-skeleton-
|
|
10
|
-
import It from "./vue-ui-accordion-
|
|
11
|
-
import { u as qe } from "./useNestedProp-
|
|
12
|
-
import { _ as Dt } from "./PackageVersion-
|
|
13
|
-
import { P as Mt } from "./PenAndPaper-
|
|
4
|
+
import { _ as Tt } from "./Title-Dt5mC-vb.js";
|
|
5
|
+
import { u as zt, U as Ot } from "./usePrinter-BvounINk.js";
|
|
6
|
+
import { D as Yt } from "./DataTable-Cnr3w23K.js";
|
|
7
|
+
import { _ as At } from "./Tooltip-CmKYX0H1.js";
|
|
8
|
+
import { L as Nt } from "./Legend-Di7FMl12.js";
|
|
9
|
+
import Xt from "./vue-ui-skeleton-nTL-u4Yd.js";
|
|
10
|
+
import It from "./vue-ui-accordion-DEpeQHhr.js";
|
|
11
|
+
import { u as qe } from "./useNestedProp-BPR7xHxr.js";
|
|
12
|
+
import { _ as Dt } from "./PackageVersion-BAKTtSRE.js";
|
|
13
|
+
import { P as Mt } from "./PenAndPaper-BUzmu0vi.js";
|
|
14
14
|
import { u as Bt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
-
import { _ as Vt } from "./Shape-
|
|
15
|
+
import { _ as Vt } from "./Shape-DZz__S1P.js";
|
|
16
16
|
import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const Ut = (J) => (ct("data-v-
|
|
17
|
+
const Ut = (J) => (ct("data-v-628c2c1b"), J = J(), dt(), J), jt = ["id"], Wt = ["xmlns", "viewBox"], Ht = ["width", "height"], Et = { key: 1 }, Rt = ["id"], qt = ["stop-color"], Jt = ["offset", "stop-color"], Kt = ["offset", "stop-color"], Qt = ["stop-color"], Zt = { key: 2 }, el = ["id", "cx", "cy"], tl = ["stop-color", "stop-opacity"], ll = ["stop-color"], al = ["id"], ol = ["id"], ul = /* @__PURE__ */ Ut(() => /* @__PURE__ */ p("feColorMatrix", {
|
|
18
18
|
type: "saturate",
|
|
19
19
|
values: "0"
|
|
20
20
|
}, null, -1)), sl = ["id"], nl = ["flood-color"], rl = ["id"], il = ["flood-color"], vl = ["d", "stroke", "filter"], cl = ["x1", "y1", "x2", "y2", "stroke", "filter"], dl = ["cx", "cy", "r", "fill", "filter"], hl = { key: 6 }, yl = ["stroke", "d"], fl = { key: 0 }, pl = ["d", "fill", "stroke", "stroke-width", "filter"], gl = ["d", "fill", "stroke", "stroke-width", "filter"], bl = { key: 0 }, ml = ["stroke", "d"], wl = { key: 0 }, kl = ["d", "stroke", "stroke-width", "filter"], _l = { key: 1 }, xl = ["d", "fill", "stroke", "stroke-width", "filter"], $l = ["d", "fill", "stroke", "stroke-width", "filter"], Cl = { key: 1 }, Pl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Sl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Fl = ["cx", "cy", "r", "stroke"], Ll = ["cx", "cy", "r", "fill"], Tl = { key: 0 }, zl = ["d", "fill", "onMouseenter", "onClick"], Ol = { key: 1 }, Yl = ["cx", "cy", "r", "fill"], Al = ["x", "y", "fill", "font-size"], Nl = ["x", "y", "fill", "font-size"], Xl = ["x", "y", "fill", "font-size"], Il = ["x", "y", "fill", "font-size"], Dl = ["filter"], Ml = { key: 0 }, Bl = ["x", "y"], Vl = { key: 1 }, Gl = ["cx", "cy", "fill", "stroke", "filter", "onClick"], Ul = ["cx", "cy", "fill", "stroke", "filter", "onClick"], jl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Wl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Hl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], El = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Rl = { key: 2 }, ql = ["x", "y", "width"], Jl = ["x", "y", "width"], Kl = {
|
|
@@ -105,12 +105,12 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
105
105
|
set: (l) => l
|
|
106
106
|
}), { userOptionsVisible: ne, setUserOptionsVisibility: Ce, keepUserOptionState: Pe } = Bt({ config: e.value });
|
|
107
107
|
je(() => N.config, (l) => {
|
|
108
|
-
e.value = $e(), ne.value = !e.value.showOnChartHover, _e(), me.value += 1, we.value += 1, ke.value += 1;
|
|
108
|
+
e.value = $e(), ne.value = !e.value.showOnChartHover, _e(), me.value += 1, we.value += 1, ke.value += 1, f.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, f.value.showTable = e.value.table.show, f.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
109
109
|
}, { deep: !0 });
|
|
110
110
|
const { isPrinting: Se, isImaging: Fe, generatePdf: Le, generateImage: Te } = zt({
|
|
111
111
|
elementId: `donut__${y.value}`,
|
|
112
112
|
fileName: e.value.style.chart.title.text || "vue-ui-donut"
|
|
113
|
-
}), et = _(() => e.value.userOptions.show && !e.value.style.chart.title.text), ze = _(() => gt(e.value.customPalette)),
|
|
113
|
+
}), et = _(() => e.value.userOptions.show && !e.value.style.chart.title.text), ze = _(() => gt(e.value.customPalette)), f = d({
|
|
114
114
|
dataLabels: {
|
|
115
115
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
116
116
|
},
|
|
@@ -357,13 +357,13 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
357
357
|
ye("selectDatapoint", { datapoint: l, index: r });
|
|
358
358
|
}
|
|
359
359
|
function Ve() {
|
|
360
|
-
|
|
360
|
+
f.value.showTable = !f.value.showTable;
|
|
361
361
|
}
|
|
362
362
|
function Ge() {
|
|
363
|
-
|
|
363
|
+
f.value.dataLabels.show = !f.value.dataLabels.show;
|
|
364
364
|
}
|
|
365
365
|
function Ue() {
|
|
366
|
-
|
|
366
|
+
f.value.showTooltip = !f.value.showTooltip;
|
|
367
367
|
}
|
|
368
368
|
const ue = d(!1);
|
|
369
369
|
function ve() {
|
|
@@ -442,7 +442,7 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
442
442
|
isFullscreen: q.value,
|
|
443
443
|
chartElement: E.value,
|
|
444
444
|
position: e.value.userOptions.position,
|
|
445
|
-
isTooltip:
|
|
445
|
+
isTooltip: f.value.showTooltip,
|
|
446
446
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
447
447
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
448
448
|
isAnnotation: ue.value,
|
|
@@ -540,21 +540,21 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
540
540
|
key: 0,
|
|
541
541
|
id: `gradient_${y.value}`
|
|
542
542
|
}, [
|
|
543
|
-
|
|
543
|
+
p("stop", {
|
|
544
544
|
offset: "0%",
|
|
545
545
|
"stop-color": n(ee)(e.value.style.chart.backgroundColor, 0),
|
|
546
546
|
"stop-opacity": "0"
|
|
547
547
|
}, null, 8, qt),
|
|
548
|
-
|
|
548
|
+
p("stop", {
|
|
549
549
|
offset: `${(1 - Q.value / x.value) * 100}%`,
|
|
550
550
|
"stop-color": n(ee)("#FFFFFF", 0),
|
|
551
551
|
"stop-opacity": "0"
|
|
552
552
|
}, null, 8, Jt),
|
|
553
|
-
|
|
553
|
+
p("stop", {
|
|
554
554
|
offset: `${(1 - Q.value / x.value / 2) * 100}%`,
|
|
555
555
|
"stop-color": n(ee)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
556
556
|
}, null, 8, Kt),
|
|
557
|
-
|
|
557
|
+
p("stop", {
|
|
558
558
|
offset: "100%",
|
|
559
559
|
"stop-color": n(ee)(e.value.style.chart.backgroundColor, 0),
|
|
560
560
|
"stop-opacity": "0"
|
|
@@ -562,43 +562,43 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
562
562
|
], 8, Rt)) : i("", !0)
|
|
563
563
|
])) : i("", !0),
|
|
564
564
|
e.value.type === "polar" ? (o(), u("defs", Zt, [
|
|
565
|
-
(o(!0), u(
|
|
565
|
+
(o(!0), u(g, null, F(c.value, (t, a) => (o(), u("radialGradient", {
|
|
566
566
|
id: `polar_gradient_${a}_${y.value}`,
|
|
567
567
|
cx: t.middlePoint.x / s.value.width * 100 + "%",
|
|
568
568
|
cy: t.middlePoint.y / s.value.height * 100 + "%",
|
|
569
569
|
r: "62%"
|
|
570
570
|
}, [
|
|
571
|
-
|
|
571
|
+
p("stop", {
|
|
572
572
|
offset: "0%",
|
|
573
573
|
"stop-color": n(kt)(h.value[a].color, 0.05),
|
|
574
574
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
575
575
|
}, null, 8, tl),
|
|
576
|
-
|
|
576
|
+
p("stop", {
|
|
577
577
|
offset: "100%",
|
|
578
578
|
"stop-color": h.value[a].color
|
|
579
579
|
}, null, 8, ll)
|
|
580
580
|
], 8, el))), 256))
|
|
581
581
|
])) : i("", !0),
|
|
582
|
-
|
|
583
|
-
|
|
582
|
+
p("defs", null, [
|
|
583
|
+
p("filter", {
|
|
584
584
|
id: `blur_${y.value}`,
|
|
585
585
|
x: "-50%",
|
|
586
586
|
y: "-50%",
|
|
587
587
|
width: "200%",
|
|
588
588
|
height: "200%"
|
|
589
589
|
}, [
|
|
590
|
-
|
|
590
|
+
p("feGaussianBlur", {
|
|
591
591
|
in: "SourceGraphic",
|
|
592
592
|
stdDeviation: 2,
|
|
593
593
|
id: `blur_std_${y.value}`
|
|
594
594
|
}, null, 8, ol),
|
|
595
595
|
ul
|
|
596
596
|
], 8, al),
|
|
597
|
-
|
|
597
|
+
p("filter", {
|
|
598
598
|
id: `shadow_${y.value}`,
|
|
599
599
|
"color-interpolation-filters": "sRGB"
|
|
600
600
|
}, [
|
|
601
|
-
|
|
601
|
+
p("feDropShadow", {
|
|
602
602
|
dx: "0",
|
|
603
603
|
dy: "0",
|
|
604
604
|
stdDeviation: "10",
|
|
@@ -606,7 +606,7 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
606
606
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
607
607
|
}, null, 8, nl)
|
|
608
608
|
], 8, sl),
|
|
609
|
-
|
|
609
|
+
p("filter", {
|
|
610
610
|
id: `drop_shadow_${y.value}`,
|
|
611
611
|
"color-interpolation-filters": "sRGB",
|
|
612
612
|
x: "-50%",
|
|
@@ -614,7 +614,7 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
614
614
|
width: "200%",
|
|
615
615
|
height: "200%"
|
|
616
616
|
}, [
|
|
617
|
-
|
|
617
|
+
p("feDropShadow", {
|
|
618
618
|
dx: "0",
|
|
619
619
|
dy: "0",
|
|
620
620
|
stdDeviation: "3",
|
|
@@ -623,8 +623,8 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
623
623
|
}, null, 8, il)
|
|
624
624
|
], 8, rl)
|
|
625
625
|
]),
|
|
626
|
-
e.value.type === "classic" ? (o(!0), u(
|
|
627
|
-
Y(t) &&
|
|
626
|
+
e.value.type === "classic" ? (o(!0), u(g, { key: 3 }, F(h.value, (t, a) => (o(), u("g", null, [
|
|
627
|
+
Y(t) && f.value.dataLabels.show ? (o(), u("path", {
|
|
628
628
|
key: 0,
|
|
629
629
|
d: n(_t)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, Q.value),
|
|
630
630
|
stroke: t.color,
|
|
@@ -635,8 +635,8 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
635
635
|
filter: G(a)
|
|
636
636
|
}, null, 8, vl)) : i("", !0)
|
|
637
637
|
]))), 256)) : i("", !0),
|
|
638
|
-
e.value.type === "polar" ? (o(!0), u(
|
|
639
|
-
Y(t) &&
|
|
638
|
+
e.value.type === "polar" ? (o(!0), u(g, { key: 4 }, F(h.value, (t, a) => (o(), u("g", null, [
|
|
639
|
+
Y(t) && f.value.dataLabels.show ? (o(), u("line", {
|
|
640
640
|
key: 0,
|
|
641
641
|
x1: n(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
642
642
|
y1: n(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
|
|
@@ -659,18 +659,18 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
659
659
|
filter: `url(#shadow_${y.value})`
|
|
660
660
|
}, null, 8, dl)) : i("", !0),
|
|
661
661
|
l.$slots.pattern ? (o(), u("g", hl, [
|
|
662
|
-
(o(!0), u(
|
|
662
|
+
(o(!0), u(g, null, F(h.value, (t, a) => (o(), u("defs", null, [
|
|
663
663
|
b(l.$slots, "pattern", j(W({ ...t, patternId: `pattern_${y.value}_${t.patternIndex}` })), void 0, !0)
|
|
664
664
|
]))), 256))
|
|
665
665
|
])) : i("", !0),
|
|
666
|
-
S.value && e.value.type === "classic" ? (o(), u(
|
|
667
|
-
(o(!0), u(
|
|
666
|
+
S.value && e.value.type === "classic" ? (o(), u(g, { key: 7 }, [
|
|
667
|
+
(o(!0), u(g, null, F(h.value, (t, a) => (o(), u("path", {
|
|
668
668
|
stroke: e.value.style.chart.backgroundColor,
|
|
669
669
|
d: t.arcSlice,
|
|
670
670
|
fill: "#FFFFFF"
|
|
671
671
|
}, null, 8, yl))), 256)),
|
|
672
672
|
l.$slots.pattern ? (o(), u("g", fl, [
|
|
673
|
-
(o(!0), u(
|
|
673
|
+
(o(!0), u(g, null, F(h.value, (t, a) => (o(), u("path", {
|
|
674
674
|
class: "vue-ui-donut-arc-path",
|
|
675
675
|
d: t.arcSlice,
|
|
676
676
|
fill: `url(#pattern_${y.value}_${t.patternIndex})`,
|
|
@@ -679,7 +679,7 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
679
679
|
filter: G(a)
|
|
680
680
|
}, null, 8, pl))), 256))
|
|
681
681
|
])) : i("", !0),
|
|
682
|
-
(o(!0), u(
|
|
682
|
+
(o(!0), u(g, null, F(h.value, (t, a) => (o(), u("path", {
|
|
683
683
|
class: "vue-ui-donut-arc-path",
|
|
684
684
|
d: t.arcSlice,
|
|
685
685
|
fill: n(ee)(t.color, 80),
|
|
@@ -688,15 +688,15 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
688
688
|
filter: G(a)
|
|
689
689
|
}, null, 8, gl))), 256))
|
|
690
690
|
], 64)) : i("", !0),
|
|
691
|
-
S.value && e.value.type === "polar" ? (o(), u(
|
|
691
|
+
S.value && e.value.type === "polar" ? (o(), u(g, { key: 8 }, [
|
|
692
692
|
h.value.length > 1 ? (o(), u("g", bl, [
|
|
693
|
-
(o(!0), u(
|
|
693
|
+
(o(!0), u(g, null, F(h.value, (t, a) => (o(), u("path", {
|
|
694
694
|
stroke: e.value.style.chart.backgroundColor,
|
|
695
695
|
d: c.value[a].path,
|
|
696
696
|
fill: "#FFFFFF"
|
|
697
697
|
}, null, 8, ml))), 256)),
|
|
698
698
|
e.value.style.chart.layout.donut.useShadow ? (o(), u("g", wl, [
|
|
699
|
-
(o(!0), u(
|
|
699
|
+
(o(!0), u(g, null, F(h.value, (t, a) => (o(), u("path", {
|
|
700
700
|
class: "vue-ui-donut-arc-path",
|
|
701
701
|
d: c.value[a].path,
|
|
702
702
|
fill: "transparent",
|
|
@@ -706,7 +706,7 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
706
706
|
}, null, 8, kl))), 256))
|
|
707
707
|
])) : i("", !0),
|
|
708
708
|
l.$slots.pattern ? (o(), u("g", _l, [
|
|
709
|
-
(o(!0), u(
|
|
709
|
+
(o(!0), u(g, null, F(h.value, (t, a) => (o(), u("path", {
|
|
710
710
|
class: "vue-ui-donut-arc-path",
|
|
711
711
|
d: c.value[a].path,
|
|
712
712
|
fill: `url(#pattern_${y.value}_${t.patternIndex})`,
|
|
@@ -715,7 +715,7 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
715
715
|
filter: G(a)
|
|
716
716
|
}, null, 8, xl))), 256))
|
|
717
717
|
])) : i("", !0),
|
|
718
|
-
(o(!0), u(
|
|
718
|
+
(o(!0), u(g, null, F(h.value, (t, a) => (o(), u("path", {
|
|
719
719
|
class: "vue-ui-donut-arc-path",
|
|
720
720
|
d: c.value[a].path,
|
|
721
721
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${y.value})` : t.color,
|
|
@@ -733,7 +733,7 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
733
733
|
stroke: e.value.style.chart.backgroundColor,
|
|
734
734
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
735
735
|
}, null, 8, Pl)) : i("", !0),
|
|
736
|
-
|
|
736
|
+
p("circle", {
|
|
737
737
|
cx: s.value.width / 2,
|
|
738
738
|
cy: s.value.height / 2,
|
|
739
739
|
r: x.value,
|
|
@@ -760,9 +760,9 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
760
760
|
),
|
|
761
761
|
fill: `url(#gradient_${y.value})`
|
|
762
762
|
}, null, 8, Ll)) : i("", !0),
|
|
763
|
-
S.value ? (o(), u(
|
|
763
|
+
S.value ? (o(), u(g, { key: 11 }, [
|
|
764
764
|
h.value.length > 1 || e.value.type === "classic" ? (o(), u("g", Tl, [
|
|
765
|
-
(o(!0), u(
|
|
765
|
+
(o(!0), u(g, null, F(h.value, (t, a) => (o(), u("path", {
|
|
766
766
|
"data-cy-donut-trap": "",
|
|
767
767
|
d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
|
|
768
768
|
fill: P.value === a ? "rgba(0,0,0,0.1)" : "transparent",
|
|
@@ -778,7 +778,7 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
778
778
|
onClick: (v) => M(t, a)
|
|
779
779
|
}, null, 40, zl))), 256))
|
|
780
780
|
])) : (o(), u("g", Ol, [
|
|
781
|
-
|
|
781
|
+
p("circle", {
|
|
782
782
|
cx: s.value.width / 2,
|
|
783
783
|
cy: s.value.height / 2,
|
|
784
784
|
r: x.value,
|
|
@@ -797,7 +797,7 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
797
797
|
}, null, 40, Yl)
|
|
798
798
|
]))
|
|
799
799
|
], 64)) : i("", !0),
|
|
800
|
-
e.value.type === "classic" ? (o(), u(
|
|
800
|
+
e.value.type === "classic" ? (o(), u(g, { key: 12 }, [
|
|
801
801
|
e.value.style.chart.layout.labels.hollow.total.show ? (o(), u("text", {
|
|
802
802
|
key: 0,
|
|
803
803
|
"text-anchor": "middle",
|
|
@@ -852,7 +852,7 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
852
852
|
})
|
|
853
853
|
)), 13, Il)) : i("", !0)
|
|
854
854
|
], 64)) : i("", !0),
|
|
855
|
-
(o(!0), u(
|
|
855
|
+
(o(!0), u(g, null, F(h.value, (t, a) => (o(), u("g", {
|
|
856
856
|
filter: G(a),
|
|
857
857
|
class: de({ animated: e.value.useCssAnimation })
|
|
858
858
|
}, [
|
|
@@ -864,12 +864,12 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
864
864
|
height: "60",
|
|
865
865
|
style: { overflow: "visible" }
|
|
866
866
|
}, [
|
|
867
|
-
|
|
867
|
+
p("div", null, [
|
|
868
868
|
b(l.$slots, "dataLabel", j(W({
|
|
869
869
|
datapoint: t,
|
|
870
870
|
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a,
|
|
871
871
|
isSafari: Be.value,
|
|
872
|
-
isVisible: Y(t) &&
|
|
872
|
+
isVisible: Y(t) && f.value.dataLabels.show,
|
|
873
873
|
textAlign: n(w)(t, !0, 16, !0).anchor,
|
|
874
874
|
flexAlign: n(w)(t, !0, 16).anchor,
|
|
875
875
|
percentage: re(t, h.value)
|
|
@@ -877,8 +877,8 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
877
877
|
])
|
|
878
878
|
], 8, Bl))
|
|
879
879
|
])) : (o(), u("g", Vl, [
|
|
880
|
-
e.value.type === "classic" ? (o(), u(
|
|
881
|
-
Y(t) &&
|
|
880
|
+
e.value.type === "classic" ? (o(), u(g, { key: 0 }, [
|
|
881
|
+
Y(t) && f.value.dataLabels.show ? (o(), u("circle", {
|
|
882
882
|
key: 0,
|
|
883
883
|
cx: n(w)(t).x,
|
|
884
884
|
cy: n(te)(t) - 3.5,
|
|
@@ -890,8 +890,8 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
890
890
|
onClick: (v) => M(t, a)
|
|
891
891
|
}, null, 8, Gl)) : i("", !0)
|
|
892
892
|
], 64)) : i("", !0),
|
|
893
|
-
e.value.type === "polar" ? (o(), u(
|
|
894
|
-
Y(t) &&
|
|
893
|
+
e.value.type === "polar" ? (o(), u(g, { key: 1 }, [
|
|
894
|
+
Y(t) && f.value.dataLabels.show ? (o(), u("circle", {
|
|
895
895
|
key: 0,
|
|
896
896
|
cx: n(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
897
897
|
cy: n(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
|
|
@@ -903,8 +903,8 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
903
903
|
onClick: (v) => M(t, a)
|
|
904
904
|
}, null, 8, Ul)) : i("", !0)
|
|
905
905
|
], 64)) : i("", !0),
|
|
906
|
-
e.value.type === "classic" ? (o(), u(
|
|
907
|
-
Y(t) &&
|
|
906
|
+
e.value.type === "classic" ? (o(), u(g, { key: 2 }, [
|
|
907
|
+
Y(t) && f.value.dataLabels.show ? (o(), u("text", {
|
|
908
908
|
key: 0,
|
|
909
909
|
"text-anchor": n(w)(t, !0, 12).anchor,
|
|
910
910
|
x: n(w)(t, !0, 12).x,
|
|
@@ -924,7 +924,7 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
924
924
|
}),
|
|
925
925
|
{ datapoint: t }
|
|
926
926
|
)})` : ""), 13, jl)) : i("", !0),
|
|
927
|
-
Y(t) &&
|
|
927
|
+
Y(t) && f.value.dataLabels.show ? (o(), u("text", {
|
|
928
928
|
key: 1,
|
|
929
929
|
"text-anchor": n(w)(t).anchor,
|
|
930
930
|
x: n(w)(t, !0, 12).x,
|
|
@@ -935,8 +935,8 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
935
935
|
onClick: (v) => M(t, a)
|
|
936
936
|
}, C(t.name), 13, Wl)) : i("", !0)
|
|
937
937
|
], 64)) : i("", !0),
|
|
938
|
-
e.value.type === "polar" ? (o(), u(
|
|
939
|
-
Y(t) &&
|
|
938
|
+
e.value.type === "polar" ? (o(), u(g, { key: 3 }, [
|
|
939
|
+
Y(t) && f.value.dataLabels.show ? (o(), u("text", {
|
|
940
940
|
key: 0,
|
|
941
941
|
"text-anchor": R(c.value[a].middlePoint),
|
|
942
942
|
x: n(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
@@ -956,7 +956,7 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
956
956
|
}),
|
|
957
957
|
{ datapoint: t }
|
|
958
958
|
)})` : ""), 13, Hl)) : i("", !0),
|
|
959
|
-
Y(t) &&
|
|
959
|
+
Y(t) && f.value.dataLabels.show ? (o(), u("text", {
|
|
960
960
|
key: 1,
|
|
961
961
|
"text-anchor": R(c.value[a].middlePoint),
|
|
962
962
|
x: n(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
@@ -968,7 +968,7 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
968
968
|
}, C(t.name), 13, El)) : i("", !0)
|
|
969
969
|
], 64)) : i("", !0)
|
|
970
970
|
])),
|
|
971
|
-
|
|
971
|
+
f.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(), u("g", Rl, [
|
|
972
972
|
Y(t) && e.value.type === "classic" ? (o(), u("foreignObject", {
|
|
973
973
|
key: 0,
|
|
974
974
|
x: e.value.style.chart.comments.offsetX + (n(w)(t, !0).anchor === "end" ? n(w)(t).x - e.value.style.chart.comments.width : n(w)(t, !0).anchor === "middle" ? n(w)(t).x - e.value.style.chart.comments.width / 2 : n(w)(t).x),
|
|
@@ -977,7 +977,7 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
977
977
|
height: "200",
|
|
978
978
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
979
979
|
}, [
|
|
980
|
-
|
|
980
|
+
p("div", null, [
|
|
981
981
|
b(l.$slots, "plot-comment", {
|
|
982
982
|
plot: { ...t, textAlign: n(w)(t, !0, 16, !0).anchor, flexAlign: n(w)(t, !0, 16).anchor }
|
|
983
983
|
}, void 0, !0)
|
|
@@ -991,7 +991,7 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
991
991
|
height: "200",
|
|
992
992
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
993
993
|
}, [
|
|
994
|
-
|
|
994
|
+
p("div", null, [
|
|
995
995
|
b(l.$slots, "plot-comment", {
|
|
996
996
|
plot: { ...t, textAlign: R(c.value[a].middlePoint), flexAlign: R(c.value[a].middlePoint) }
|
|
997
997
|
}, void 0, !0)
|
|
@@ -1017,7 +1017,7 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
1019
|
}, null, 8, ["config"])),
|
|
1020
|
-
|
|
1020
|
+
p("div", {
|
|
1021
1021
|
ref_key: "chartLegend",
|
|
1022
1022
|
ref: pe
|
|
1023
1023
|
}, [
|
|
@@ -1028,7 +1028,7 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
1028
1028
|
onClickMarker: r[4] || (r[4] = ({ i: t }) => Ae(t))
|
|
1029
1029
|
}, We({
|
|
1030
1030
|
item: $(({ legend: t, index: a }) => [
|
|
1031
|
-
|
|
1031
|
+
p("div", {
|
|
1032
1032
|
style: z(`opacity:${X.value.includes(a) ? 0.5 : 1}`),
|
|
1033
1033
|
onClick: (v) => t.segregate()
|
|
1034
1034
|
}, [
|
|
@@ -1084,7 +1084,7 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
1084
1084
|
b(l.$slots, "source", {}, void 0, !0)
|
|
1085
1085
|
], 512)) : i("", !0),
|
|
1086
1086
|
he(At, {
|
|
1087
|
-
show:
|
|
1087
|
+
show: f.value.showTooltip && ae.value,
|
|
1088
1088
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1089
1089
|
color: e.value.style.chart.tooltip.color,
|
|
1090
1090
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1111,7 +1111,7 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
1111
1111
|
key: 8,
|
|
1112
1112
|
hideDetails: "",
|
|
1113
1113
|
config: {
|
|
1114
|
-
open:
|
|
1114
|
+
open: f.value.showTable,
|
|
1115
1115
|
maxHeight: 1e4,
|
|
1116
1116
|
body: {
|
|
1117
1117
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -1131,10 +1131,10 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
1131
1131
|
body: oe.value.body,
|
|
1132
1132
|
config: oe.value.config,
|
|
1133
1133
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1134
|
-
onClose: r[5] || (r[5] = (t) =>
|
|
1134
|
+
onClose: r[5] || (r[5] = (t) => f.value.showTable = !1)
|
|
1135
1135
|
}, {
|
|
1136
1136
|
th: $(({ th: t }) => [
|
|
1137
|
-
|
|
1137
|
+
p("div", {
|
|
1138
1138
|
innerHTML: t,
|
|
1139
1139
|
style: { display: "flex", "align-items": "center" }
|
|
1140
1140
|
}, null, 8, ta)
|
|
@@ -1166,7 +1166,7 @@ const Ut = (J) => (ct("data-v-d4293347"), J = J(), dt(), J), jt = ["id"], Wt = [
|
|
|
1166
1166
|
}, 8, ["config"])) : i("", !0)
|
|
1167
1167
|
], 46, jt));
|
|
1168
1168
|
}
|
|
1169
|
-
}, ma = /* @__PURE__ */ Gt(la, [["__scopeId", "data-v-
|
|
1169
|
+
}, ma = /* @__PURE__ */ Gt(la, [["__scopeId", "data-v-628c2c1b"]]);
|
|
1170
1170
|
export {
|
|
1171
1171
|
ma as default
|
|
1172
1172
|
};
|