vue-data-ui 2.4.75 → 2.4.77
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-CUulTiJm.cjs → Arrow-CfSMP_pf.cjs} +1 -1
- package/dist/{Arrow-DeaYajks.js → Arrow-f_Kuk8SY.js} +1 -1
- package/dist/{BaseIcon-BBHrjKmu.cjs → BaseIcon-BnnMILPX.cjs} +1 -1
- package/dist/{BaseIcon-DKE6M24F.js → BaseIcon-QuseiwxO.js} +1 -1
- package/dist/{DataTable-CSuU04ZL.js → DataTable--ofk92Yb.js} +2 -2
- package/dist/{DataTable-C9l4dd5y.cjs → DataTable-D0qYxBVZ.cjs} +1 -1
- package/dist/{Legend-DeA8Vc9x.js → Legend-BhrGSZRp.js} +2 -2
- package/dist/{Legend-Bj4l4_U_.cjs → Legend-DV4QFlV9.cjs} +1 -1
- package/dist/{PackageVersion-DDypxdPk.js → PackageVersion-BqwuIW-T.js} +1 -1
- package/dist/{PackageVersion-d2x9D0BY.cjs → PackageVersion-sBYhtscP.cjs} +1 -1
- package/dist/{PenAndPaper-CgV76v_G.cjs → PenAndPaper-CHz_Iy5T.cjs} +1 -1
- package/dist/{PenAndPaper-BU3hYymp.js → PenAndPaper-LsFeEPDj.js} +3 -3
- package/dist/{Shape-043iD2p4.cjs → Shape-BO7Gprqr.cjs} +1 -1
- package/dist/{Shape-CNsxgvnN.js → Shape-Dorp4kyF.js} +1 -1
- package/dist/{Slicer-iP-kiVKM.cjs → Slicer-BDdf60jQ.cjs} +1 -1
- package/dist/{Slicer-NcZbYKm5.js → Slicer-CD8VkksI.js} +2 -2
- package/dist/{Title-C50xgIVN.js → Title-2MaMBji9.js} +1 -1
- package/dist/{Title-qQtFhzWa.cjs → Title-BzcIyo-x.cjs} +1 -1
- package/dist/{Tooltip-BEIYKcDi.js → Tooltip-C_eI7NfC.js} +1 -1
- package/dist/{Tooltip-BMCgXPh1.cjs → Tooltip-DWo9kakv.cjs} +1 -1
- package/dist/{index-BPAGYd6L.cjs → index-CbMyzHGj.cjs} +1 -1
- package/dist/{index-CikhqBsO.js → index-DMvK32iW.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CJDUCpgY.js → useNestedProp-3oLbIjGJ.js} +1 -1
- package/dist/{useNestedProp-DnmHyIdv.cjs → useNestedProp-DqPx8kFh.cjs} +1 -1
- package/dist/{usePrinter-CsOuigbm.js → usePrinter-7L_B-x1F.js} +1 -1
- package/dist/{usePrinter-CFdC3kqD.cjs → usePrinter-BzVsUZ9_.cjs} +1 -1
- package/dist/{vue-data-ui-DJsYnkSW.cjs → vue-data-ui-CFnKc2Ol.cjs} +1 -1
- package/dist/{vue-data-ui-D1HzLI0d.js → vue-data-ui-Cp4r0fLf.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DuNhU0a8.js → vue-ui-3d-bar-Cf1Q84nf.js} +9 -9
- package/dist/{vue-ui-3d-bar-BDhJsXoH.cjs → vue-ui-3d-bar-DTrJuAnz.cjs} +1 -1
- package/dist/{vue-ui-accordion-CfaFAtdn.js → vue-ui-accordion-D9SRsoRT.js} +3 -3
- package/dist/{vue-ui-accordion-C-09eoIa.cjs → vue-ui-accordion-Uftgxo97.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CUEhPVkB.js → vue-ui-age-pyramid-BpfajTvk.js} +10 -10
- package/dist/{vue-ui-age-pyramid-DWArC1Hh.cjs → vue-ui-age-pyramid-CFWWFo_T.cjs} +1 -1
- package/dist/{vue-ui-annotator-DbpEnt9N.js → vue-ui-annotator-BGErHIWg.js} +1 -1
- package/dist/{vue-ui-annotator-B7eh2OAQ.cjs → vue-ui-annotator-CI9JxLDD.cjs} +1 -1
- package/dist/{vue-ui-bullet-rUFvmN5I.cjs → vue-ui-bullet-CCcAE1gt.cjs} +1 -1
- package/dist/{vue-ui-bullet-Bcw3IrkU.js → vue-ui-bullet-CerH0yY6.js} +8 -8
- package/dist/{vue-ui-candlestick-BzuGA02_.cjs → vue-ui-candlestick-B0AfUFwT.cjs} +1 -1
- package/dist/{vue-ui-candlestick-kV_hRenu.js → vue-ui-candlestick-DaXMRecz.js} +11 -11
- package/dist/{vue-ui-carousel-table-CLbw5Gja.js → vue-ui-carousel-table-Ct8iLKVC.js} +4 -4
- package/dist/{vue-ui-carousel-table-8vMGLnJ9.cjs → vue-ui-carousel-table-DU1f-7PI.cjs} +1 -1
- package/dist/{vue-ui-chestnut-jYSEGAFe.js → vue-ui-chestnut-BimMImm7.js} +8 -8
- package/dist/{vue-ui-chestnut-DGujtZMV.cjs → vue-ui-chestnut-Bo6vX7Xa.cjs} +1 -1
- package/dist/{vue-ui-cursor-BxeKu1MR.js → vue-ui-cursor-BqjV3i9U.js} +2 -2
- package/dist/{vue-ui-cursor-CEuvBpBh.cjs → vue-ui-cursor-O8Y4gIKa.cjs} +1 -1
- package/dist/{vue-ui-dashboard-xzxjoO7l.js → vue-ui-dashboard-BGBnagEV.js} +2 -2
- package/dist/{vue-ui-dashboard-mvMeLUIl.cjs → vue-ui-dashboard-DNJUgWJ3.cjs} +1 -1
- package/dist/{vue-ui-digits-BrcGOEQF.cjs → vue-ui-digits-D3pzhtVy.cjs} +1 -1
- package/dist/{vue-ui-digits-D_9iQbHJ.js → vue-ui-digits-DUXLRlXF.js} +2 -2
- package/dist/vue-ui-donut-DKME6kEY.cjs +1 -0
- package/dist/{vue-ui-donut-BXCGVGn6.js → vue-ui-donut-eljChQvj.js} +111 -114
- package/dist/{vue-ui-donut-evolution-CKLu0WUm.cjs → vue-ui-donut-evolution-DGaEBhHF.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-8eE6mMvr.js → vue-ui-donut-evolution-HbunKbYi.js} +11 -11
- package/dist/{vue-ui-dumbbell-DQ4878P6.js → vue-ui-dumbbell-C7Zv4NgK.js} +10 -10
- package/dist/{vue-ui-dumbbell-DL8R6DW5.cjs → vue-ui-dumbbell-CGw-Zwk-.cjs} +1 -1
- package/dist/{vue-ui-flow-G5kHti6C.cjs → vue-ui-flow-DbWddpZi.cjs} +1 -1
- package/dist/{vue-ui-flow-4pVvW8uQ.js → vue-ui-flow-DcRyVL45.js} +9 -9
- package/dist/{vue-ui-funnel-CmCEThsY.cjs → vue-ui-funnel-ByUFSg1s.cjs} +1 -1
- package/dist/{vue-ui-funnel-Cw_nwOx7.js → vue-ui-funnel-D3G2G4P3.js} +9 -9
- package/dist/{vue-ui-galaxy-BBioQ7sZ.js → vue-ui-galaxy-CXssUv3X.js} +11 -11
- package/dist/{vue-ui-galaxy-BNAav1km.cjs → vue-ui-galaxy-ad_Bh1lr.cjs} +1 -1
- package/dist/{vue-ui-gauge-eXqLRqr5.cjs → vue-ui-gauge-Bss6mlN7.cjs} +1 -1
- package/dist/{vue-ui-gauge-ChyRQr2B.js → vue-ui-gauge-DEROTsyc.js} +7 -7
- package/dist/{vue-ui-gizmo-rGEtU_zH.js → vue-ui-gizmo--6Xw6Dh6.js} +3 -3
- package/dist/{vue-ui-gizmo-DYp8SbuP.cjs → vue-ui-gizmo-D4CEw0HZ.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CkEm1KT-.cjs → vue-ui-heatmap-DwCve3RN.cjs} +1 -1
- package/dist/{vue-ui-heatmap-WkENYnDa.js → vue-ui-heatmap-q8JmNnG2.js} +10 -10
- package/dist/{vue-ui-history-plot-CEuatCdT.cjs → vue-ui-history-plot-DaZNgu_Z.cjs} +1 -1
- package/dist/{vue-ui-history-plot-jMcJIXBe.js → vue-ui-history-plot-DnT-Ao3t.js} +11 -11
- package/dist/{vue-ui-kpi-uQV7kPXn.cjs → vue-ui-kpi-Dn49_E2W.cjs} +1 -1
- package/dist/{vue-ui-kpi-Dl2r-v2h.js → vue-ui-kpi-IXgBP9oJ.js} +3 -3
- package/dist/{vue-ui-mini-loader-DMD_i8FL.cjs → vue-ui-mini-loader-CiVFd_Pp.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-tCFLZICI.js → vue-ui-mini-loader-Cm88qObv.js} +2 -2
- package/dist/{vue-ui-molecule-CbliOTkc.js → vue-ui-molecule-C27vhrLA.js} +11 -11
- package/dist/{vue-ui-molecule-D-kk-QUF.cjs → vue-ui-molecule-Cu92ujex.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DzanIQPr.js → vue-ui-mood-radar-DIJ9q9Cc.js} +11 -11
- package/dist/{vue-ui-mood-radar-BDf66NVT.cjs → vue-ui-mood-radar-DvkK8J8b.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-Ddci2lAF.js → vue-ui-nested-donuts-CcqhlN0R.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DFZuAIrl.cjs → vue-ui-nested-donuts-DMaF0m31.cjs} +1 -1
- package/dist/{vue-ui-onion-GFd6TMM3.cjs → vue-ui-onion-D20_PGGT.cjs} +1 -1
- package/dist/{vue-ui-onion-D6KnBK0O.js → vue-ui-onion-DQOu8srN.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-CsJalsuL.cjs → vue-ui-parallel-coordinate-plot-CDDv5TXW.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-C2soWdHp.js → vue-ui-parallel-coordinate-plot-DEtBAZkv.js} +12 -12
- package/dist/{vue-ui-quadrant-qUIgYMAy.js → vue-ui-quadrant-9nixb7y0.js} +12 -12
- package/dist/{vue-ui-quadrant-HGUNsPVK.cjs → vue-ui-quadrant-CVKT0Mil.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-sSewy6n3.js → vue-ui-quick-chart-BBWe0rII.js} +9 -9
- package/dist/{vue-ui-quick-chart-Bh8u3mSK.cjs → vue-ui-quick-chart-DOqmZQuC.cjs} +1 -1
- package/dist/{vue-ui-radar-DwjzQGy5.js → vue-ui-radar-C_HKZN_s.js} +12 -12
- package/dist/{vue-ui-radar-DCT4aJyg.cjs → vue-ui-radar-crw-BUWI.cjs} +1 -1
- package/dist/{vue-ui-rating-CsQqnQS-.js → vue-ui-rating-Bb5D2NLX.js} +2 -2
- package/dist/{vue-ui-rating-DDvuimOm.cjs → vue-ui-rating-D9C-jHN_.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-D4fKIfn1.cjs → vue-ui-relation-circle-BeinsphZ.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-L9dyVKFK.js → vue-ui-relation-circle-D94QdFpd.js} +7 -7
- package/dist/{vue-ui-rings-WD6o_PRx.cjs → vue-ui-rings-8X_K59uf.cjs} +1 -1
- package/dist/{vue-ui-rings-BFilyg2K.js → vue-ui-rings-B9WghU7W.js} +12 -12
- package/dist/{vue-ui-scatter-BPaAnxNh.cjs → vue-ui-scatter-BcGcpFFg.cjs} +1 -1
- package/dist/{vue-ui-scatter-CLwp7E8I.js → vue-ui-scatter-DOOY2ZmO.js} +12 -12
- package/dist/{vue-ui-screenshot-CtMkJWyN.js → vue-ui-screenshot--dGw9WTO.js} +1 -1
- package/dist/{vue-ui-screenshot-Ck5vUvqN.cjs → vue-ui-screenshot-kqXcFrbS.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Cqwj8cKX.js → vue-ui-skeleton-Bzsl5gab.js} +3 -3
- package/dist/{vue-ui-skeleton-DrqHxSpM.cjs → vue-ui-skeleton-Dm5NZ_MQ.cjs} +1 -1
- package/dist/{vue-ui-smiley-lKlY20ky.js → vue-ui-smiley-CHDBpGz6.js} +2 -2
- package/dist/{vue-ui-smiley-YPd44FmM.cjs → vue-ui-smiley-CzUbbfNC.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-C8bml_yT.cjs → vue-ui-spark-trend-CBuzPxBw.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-q4j100sw.js → vue-ui-spark-trend-DDmtsL-M.js} +5 -5
- package/dist/{vue-ui-sparkbar-B-ThPSye.cjs → vue-ui-sparkbar-BOWdoskI.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DLnQHPoC.js → vue-ui-sparkbar-clHgL-Jf.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BN5Rlii7.cjs → vue-ui-sparkgauge-BCpab_To.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-ob8ySh7o.js → vue-ui-sparkgauge-ClpG_Qy_.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-5qXN1bpC.js → vue-ui-sparkhistogram-DtcZvaVe.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-B1qZe377.cjs → vue-ui-sparkhistogram-_-2qzDRQ.cjs} +1 -1
- package/dist/{vue-ui-sparkline-f9ikQwPq.cjs → vue-ui-sparkline-BiPWJRwq.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CHKJsdpz.js → vue-ui-sparkline-Hw74DjL2.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-B81sHzNi.js → vue-ui-sparkstackbar-BvdFMu7C.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-DCyTeS34.cjs → vue-ui-sparkstackbar-C65Dz1NY.cjs} +1 -1
- package/dist/{vue-ui-stackbar-OuOYKoKJ.cjs → vue-ui-stackbar-CUbWqpvI.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CCAGqzOz.js → vue-ui-stackbar-DHihhNbH.js} +13 -13
- package/dist/{vue-ui-strip-plot-CoAS1IeK.js → vue-ui-strip-plot-BeRtOGC8.js} +11 -11
- package/dist/{vue-ui-strip-plot-Ce-95Q5I.cjs → vue-ui-strip-plot-CuoQTnRG.cjs} +1 -1
- package/dist/{vue-ui-table-61dFub-n.js → vue-ui-table-00JpIXEn.js} +1 -1
- package/dist/{vue-ui-table-PNImj_lH.cjs → vue-ui-table-C6jU1DC3.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-66SQmvXK.cjs → vue-ui-table-heatmap-BKwt85XQ.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DwX9Kj-7.js → vue-ui-table-heatmap-iRdyUnBz.js} +4 -4
- package/dist/{vue-ui-table-sparkline-sQWKpma9.js → vue-ui-table-sparkline-B4S_DJRU.js} +5 -5
- package/dist/{vue-ui-table-sparkline-ChTLN7r7.cjs → vue-ui-table-sparkline-Z-VfjBcc.cjs} +1 -1
- package/dist/{vue-ui-thermometer-g4IAHXvx.js → vue-ui-thermometer-BVETzQ_9.js} +7 -7
- package/dist/{vue-ui-thermometer-B5wsAGSn.cjs → vue-ui-thermometer-MNfpy-bk.cjs} +1 -1
- package/dist/{vue-ui-timer-DF3EJ1aQ.js → vue-ui-timer-Dafx7lL2.js} +5 -5
- package/dist/{vue-ui-timer-BpIIGTkI.cjs → vue-ui-timer-DzzNUzOv.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CzlryxFN.js → vue-ui-tiremarks-DvIZxZFn.js} +7 -7
- package/dist/{vue-ui-tiremarks-CkWmUnx8.cjs → vue-ui-tiremarks-VmJ74REn.cjs} +1 -1
- package/dist/{vue-ui-treemap-4-MBNNs6.js → vue-ui-treemap-Bqurrxbn.js} +11 -11
- package/dist/{vue-ui-treemap-BTnaRS0x.cjs → vue-ui-treemap-jtIS1DF3.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DjwU4t1i.cjs → vue-ui-vertical-bar-B7gHw4NU.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DyOYW-Ia.js → vue-ui-vertical-bar-CAQNpuVV.js} +12 -12
- package/dist/{vue-ui-waffle-DJ3kjBDH.js → vue-ui-waffle-BW2oPwaN.js} +12 -12
- package/dist/{vue-ui-waffle-CD85ZsQ4.cjs → vue-ui-waffle-Bx-yIwH9.cjs} +1 -1
- package/dist/{vue-ui-wheel-CsQ-QlBn.cjs → vue-ui-wheel-DdBcwGLj.cjs} +1 -1
- package/dist/{vue-ui-wheel-oQlnQDEf.js → vue-ui-wheel-LE-u6_KV.js} +7 -7
- package/dist/{vue-ui-word-cloud-B2E_pGk9.cjs → vue-ui-word-cloud-C1X5oYBt.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-NV7R5Xiy.js → vue-ui-word-cloud-CjCNiXGN.js} +10 -10
- package/dist/{vue-ui-xy-DjRzp57R.cjs → vue-ui-xy-Dr_MT-o-.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-D5t8_o7S.js → vue-ui-xy-canvas-BgWkLI4n.js} +11 -11
- package/dist/{vue-ui-xy-canvas-C_iyuhnn.cjs → vue-ui-xy-canvas-CBx1LM4e.cjs} +1 -1
- package/dist/{vue-ui-xy-BxUBSn2m.js → vue-ui-xy-jjjT4XDo.js} +54 -54
- package/package.json +1 -1
- package/dist/vue-ui-donut-RklizqS0.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-CbMyzHGj.cjs"),c=require("./useResponsive-BJ7DTGpm.cjs"),ot=require("./Tooltip-DWo9kakv.cjs"),rt=require("./Legend-DV4QFlV9.cjs"),nt=require("./Title-BzcIyo-x.cjs"),ut=require("./Slicer-BDdf60jQ.cjs"),Ee=require("./usePrinter-BzVsUZ9_.cjs"),st=require("./vue-ui-accordion-Uftgxo97.cjs"),it=require("./DataTable-D0qYxBVZ.cjs"),ct=require("./vue-ui-skeleton-Dm5NZ_MQ.cjs"),Ne=require("./useNestedProp-DqPx8kFh.cjs"),vt=require("./PenAndPaper-CHz_Iy5T.cjs"),dt=require("./useUserOptionState-BgepsfED.cjs"),ht=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ft=["id"],yt=["onClick"],gt={key:2,class:"vue-data-ui-watermark"},pt=["innerHTML"],mt={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(re,{expose:Be,emit:De}){const p=re,{vue_ui_xy_canvas:Fe}=u.useConfig(),Z=l.ref(u.createUid()),N=l.ref(null),S=l.ref(null),B=l.ref(null),i=l.ref(null),g=l.ref(1),T=l.ref(1),H=l.ref(!1),f=l.ref(null),V=l.ref(""),ne=l.ref(null),C=l.ref([]),O=l.ref(1),M=l.ref(!0),z=l.ref(!0),G=l.ref(null),ue=l.ref(0),se=l.ref(0),U=l.ref(!1),ie=l.ref(null),ce=l.ref(null),ve=l.ref(null),de=l.ref(null),j=l.ref(0),J=l.ref(0),K=l.ref(0),Q=l.computed(()=>!!p.dataset&&p.dataset.length),Ae=l.useSlots();l.onMounted(()=>{Ae["chart-background"]&&console.warn("VueUiXyCanvas does not support the #chart-background slot.")});const t=l.computed({get:()=>ye(),set:e=>e}),{userOptionsVisible:ee,setUserOptionsVisibility:he,keepUserOptionState:fe}=dt.useUserOptionState({config:t.value});function ye(){const e=Ne.useNestedProp({userConfig:p.config,defaultConfig:Fe});let a={};return e.theme?a={...Ne.useNestedProp({userConfig:u.themes.vue_ui_xy_canvas[e.theme]||p.config,defaultConfig:e}),customPalette:u.themePalettes[e.theme]||u.palette}:a=e,p.config&&u.hasDeepProperty(p.config,"style.chart.scale.min")?a.style.chart.scale.min=p.config.style.chart.scale.min:a.style.chart.scale.min=null,p.config&&u.hasDeepProperty(p.config,"style.chart.scale.max")?a.style.chart.scale.max=p.config.style.chart.scale.max:a.style.chart.scale.max=null,p.config&&u.hasDeepProperty(p.config,"style.chart.zoom.startIndex")?a.style.chart.zoom.startIndex=p.config.style.chart.zoom.startIndex:a.style.chart.zoom.startIndex=null,p.config&&u.hasDeepProperty(p.config,"style.chart.zoom.endIndex")?a.style.chart.zoom.endIndex=p.config.style.chart.zoom.endIndex:a.style.chart.zoom.endIndex=null,a}l.watch(()=>p.config,e=>{t.value=ye(),ee.value=!t.value.showOnChartHover,le(),j.value+=1,J.value+=1,K.value+=1},{deep:!0}),l.watch(()=>p.dataset,()=>{le(),j.value+=1,J.value+=1,K.value+=1},{deep:!0});const ge=l.ref(t.value.style.chart.aspectRatio),{isPrinting:pe,isImaging:me,generatePdf:be,generateImage:xe}=Ee.usePrinter({elementId:`xy_canvas_${Z.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas"}),s=l.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function He(e){U.value=e,se.value+=1}const ke=l.computed(()=>u.convertCustomPalette(t.value.customPalette)),w=l.computed(()=>R.value?Math.max(...R.value.filter((e,a)=>!C.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),o=l.computed(()=>{const e=g.value-g.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:g.value,canvasHeight:T.value,left:g.value*t.value.style.chart.paddingProportions.left,top:T.value*t.value.style.chart.paddingProportions.top,right:g.value-g.value*t.value.style.chart.paddingProportions.right,bottom:T.value-T.value*t.value.style.chart.paddingProportions.bottom,width:e,height:T.value-T.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(n.value.end-n.value.start)}});function Le(e,a){return e/a}function Ve({hasAutoScale:e,series:a,min:r,max:d,scale:h,yOffset:m,individualHeight:v,stackIndex:b=null}){return a.map((L,oe)=>{const $=h.min<0?Math.abs(h.min):0,I=Le(L+$,$+h.max);let P,D;e&&(P=Math.abs(h.min),D=Le(L+P,h.max+P));let F=0;return b===null?F=o.value.bottom-o.value.height*(e?D:I):F=o.value.bottom-m-v*(e?D:I),{x:o.value.left+o.value.slot*oe+o.value.slot/2,y:F,value:L}})}const x=l.computed(()=>{const e=t.value.style.chart.scale.min!==null?t.value.style.chart.scale.min:Math.min(...R.value.filter((v,b)=>!C.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(n.value.start,n.value.end))),a=t.value.style.chart.scale.max!==null?t.value.style.chart.scale.max:Math.max(...R.value.filter((v,b)=>!C.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(n.value.start,n.value.end))),r=u.calculateNiceScale(e<0?e:0,a===e?e+1<0?0:e+1:a<0?0:a,t.value.style.chart.scale.ticks),d=r.min<0?Math.abs(r.min):0,h=o.value.bottom-o.value.height*(d/(r.max+d)),m=r.ticks.map(v=>({y:o.value.bottom-o.value.height*((v+d)/(r.max+d)),x:o.value.left-8,value:v}));return{absoluteMin:d,max:a,min:e,scale:r,yLabels:m,zero:h}}),Ue=l.computed(()=>y.value.map(e=>`
|
|
2
2
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
3
3
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
4
4
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { c as J, a as K, t as Q, z as j, p as $, V as X, O as R, f as U, L as ee, G as te, i as re, a4 as ae, a1 as le, a5 as ie, v as se, a6 as ne, d as he, B as oe, b as ce, q as de, R as ue, a7 as ge, r as fe, e as Ie, a2 as me, y as Ne, C as xe, x as be, a8 as Fe, Z as _e, o as Ae, s as ye, w as Le, F as Ce, A as Se, u as ke } from "./index-
|
|
2
|
-
import { D as we } from "./DataTable
|
|
3
|
-
import { _ as Oe } from "./Title-
|
|
4
|
-
import { _ as Ge, u as ve } from "./Tooltip-
|
|
5
|
-
import { U as ze } from "./usePrinter-
|
|
6
|
-
import { _ as
|
|
7
|
-
import
|
|
8
|
-
import Ve from "./vue-ui-table-sparkline-
|
|
9
|
-
import Te from "./vue-ui-skeleton-
|
|
10
|
-
import { S as Pe } from "./Slicer-
|
|
11
|
-
import Re from "./vue-ui-accordion-
|
|
12
|
-
import { u as Z } from "./useNestedProp-
|
|
13
|
-
import { _ as De } from "./PackageVersion-
|
|
14
|
-
import { P as He } from "./PenAndPaper-
|
|
15
|
-
import { resolveComponent as T, openBlock as l, createElementBlock as i, normalizeClass as P, normalizeStyle as L, createBlock as D, createCommentVNode as c, createSlots as Be, withCtx as
|
|
1
|
+
import { c as J, a as K, t as Q, z as j, p as $, V as X, O as R, f as U, L as ee, G as te, i as re, a4 as ae, a1 as le, a5 as ie, v as se, a6 as ne, d as he, B as oe, b as ce, q as de, R as ue, a7 as ge, r as fe, e as Ie, a2 as me, y as Ne, C as xe, x as be, a8 as Fe, Z as _e, o as Ae, s as ye, w as Le, F as Ce, A as Se, u as ke } from "./index-DMvK32iW.js";
|
|
2
|
+
import { D as we } from "./DataTable--ofk92Yb.js";
|
|
3
|
+
import { _ as Oe } from "./Title-2MaMBji9.js";
|
|
4
|
+
import { _ as Ge, u as ve } from "./Tooltip-C_eI7NfC.js";
|
|
5
|
+
import { U as ze } from "./usePrinter-7L_B-x1F.js";
|
|
6
|
+
import { _ as Me } from "./Shape-Dorp4kyF.js";
|
|
7
|
+
import pe from "./BaseIcon-QuseiwxO.js";
|
|
8
|
+
import Ve from "./vue-ui-table-sparkline-B4S_DJRU.js";
|
|
9
|
+
import Te from "./vue-ui-skeleton-Bzsl5gab.js";
|
|
10
|
+
import { S as Pe } from "./Slicer-CD8VkksI.js";
|
|
11
|
+
import Re from "./vue-ui-accordion-D9SRsoRT.js";
|
|
12
|
+
import { u as Z } from "./useNestedProp-3oLbIjGJ.js";
|
|
13
|
+
import { _ as De } from "./PackageVersion-BqwuIW-T.js";
|
|
14
|
+
import { P as He } from "./PenAndPaper-LsFeEPDj.js";
|
|
15
|
+
import { resolveComponent as T, openBlock as l, createElementBlock as i, normalizeClass as P, normalizeStyle as L, createBlock as D, createCommentVNode as c, createSlots as Be, withCtx as p, renderSlot as S, normalizeProps as H, guardReactiveProps as B, createVNode as q, createElementVNode as f, Fragment as I, renderList as m, toDisplayString as k, mergeProps as We, withDirectives as Ee, vModelCheckbox as Ye, createTextVNode as qe } from "vue";
|
|
16
16
|
import { _ as Xe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
const Ue = J(), Ze = {
|
|
18
18
|
name: "vue-ui-xy",
|
|
@@ -32,11 +32,11 @@ const Ue = J(), Ze = {
|
|
|
32
32
|
},
|
|
33
33
|
components: {
|
|
34
34
|
DataTable: we,
|
|
35
|
-
Shape:
|
|
35
|
+
Shape: Me,
|
|
36
36
|
Title: Oe,
|
|
37
37
|
Tooltip: Ge,
|
|
38
38
|
UserOptions: ze,
|
|
39
|
-
BaseIcon:
|
|
39
|
+
BaseIcon: pe,
|
|
40
40
|
TableSparkline: Ve,
|
|
41
41
|
Skeleton: Te,
|
|
42
42
|
Slicer: Pe,
|
|
@@ -344,7 +344,7 @@ const Ue = J(), Ze = {
|
|
|
344
344
|
}, x = {
|
|
345
345
|
max: r.scaleMax || Math.max(...r.absoluteValues) || 1,
|
|
346
346
|
min: r.scaleMin || Math.min(...r.absoluteValues.filter((g) => ![void 0, null].includes(g))) > 0 ? 0 : Math.min(...r.absoluteValues.filter((g) => ![null, void 0].includes(g)))
|
|
347
|
-
}, A = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, N = this.calculateNiceScaleWithExactExtremes(x.min, x.max === x.min ? x.max * w : x.max, A), b = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax === e.valueMin ? e.valueMax * w : e.valueMax, A), V = N.min >= 0 ? 0 : Math.abs(N.min), v = 0, z = N.max + V, O = b.max + Math.abs(v), _ = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - r.cumulatedStackRatio) : 0, C = this.mutableConfig.isStacked ? this.drawingArea.height * r.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height,
|
|
347
|
+
}, A = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, N = this.calculateNiceScaleWithExactExtremes(x.min, x.max === x.min ? x.max * w : x.max, A), b = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax === e.valueMin ? e.valueMax * w : e.valueMax, A), V = N.min >= 0 ? 0 : Math.abs(N.min), v = 0, z = N.max + V, O = b.max + Math.abs(v), _ = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - r.cumulatedStackRatio) : 0, C = this.mutableConfig.isStacked ? this.drawingArea.height * r.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, M = this.drawingArea.bottom - _ - C * V / z, a = this.drawingArea.bottom - _ - C * v / O, h = this.absoluteDataset.filter((g) => g.type === "bar").filter((g) => !this.segregatedSeries.includes(g.id)).length, n = r.series.map((g, F) => {
|
|
348
348
|
const E = this.mutableConfig.useIndividualScale ? (r.absoluteValues[F] + V) / z : this.ratioToMax(g), Y = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * F : this.drawingArea.left + this.slot.bar * s + this.slot.bar * F * h - this.barSlot / 2 - s * this.barPeriodGap;
|
|
349
349
|
return {
|
|
350
350
|
yOffset: this.checkNaN(_),
|
|
@@ -352,7 +352,7 @@ const Ue = J(), Ze = {
|
|
|
352
352
|
x: this.checkNaN(Y),
|
|
353
353
|
y: this.drawingArea.bottom - _ - C * E,
|
|
354
354
|
value: r.absoluteValues[F],
|
|
355
|
-
zeroPosition: this.checkNaN(
|
|
355
|
+
zeroPosition: this.checkNaN(M),
|
|
356
356
|
individualMax: this.checkNaN(z),
|
|
357
357
|
comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
358
358
|
};
|
|
@@ -364,12 +364,12 @@ const Ue = J(), Ze = {
|
|
|
364
364
|
x: this.checkNaN(E),
|
|
365
365
|
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(_) - (this.checkNaN(C) * d[F] || 0)),
|
|
366
366
|
value: r.absoluteValues[F],
|
|
367
|
-
zeroPosition: this.checkNaN(
|
|
367
|
+
zeroPosition: this.checkNaN(M),
|
|
368
368
|
individualMax: this.checkNaN(z),
|
|
369
369
|
comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
370
370
|
};
|
|
371
371
|
}), y = N.ticks.map((g) => ({
|
|
372
|
-
y: g >= 0 ?
|
|
372
|
+
y: g >= 0 ? M - C * (g / z) : M + C * Math.abs(g) / z,
|
|
373
373
|
value: g,
|
|
374
374
|
prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
375
375
|
suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
@@ -392,7 +392,7 @@ const Ue = J(), Ze = {
|
|
|
392
392
|
scaleYLabels: r.autoScaling ? G : y,
|
|
393
393
|
individualScale: r.autoScaling ? b : N,
|
|
394
394
|
individualMax: r.autoScaling ? O : z,
|
|
395
|
-
zeroPosition: r.autoScaling ? a :
|
|
395
|
+
zeroPosition: r.autoScaling ? a : M,
|
|
396
396
|
plots: r.autoScaling ? W : n
|
|
397
397
|
};
|
|
398
398
|
});
|
|
@@ -413,7 +413,7 @@ const Ue = J(), Ze = {
|
|
|
413
413
|
}, e = {
|
|
414
414
|
max: r.scaleMax || Math.max(...r.absoluteValues) || 1,
|
|
415
415
|
min: r.scaleMin || (Math.min(...r.absoluteValues) > 0 ? 0 : Math.min(...r.absoluteValues))
|
|
416
|
-
}, x = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, w = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * A : e.max, x), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * A : t.valueMax, x), b = w.min >= 0 ? 0 : Math.abs(w.min), V = 0, v = w.max + Math.abs(b), z = N.max + Math.abs(V), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - r.cumulatedStackRatio) : 0, _ = this.mutableConfig.isStacked ? this.drawingArea.height * r.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - _ * b / v,
|
|
416
|
+
}, x = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, w = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * A : e.max, x), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * A : t.valueMax, x), b = w.min >= 0 ? 0 : Math.abs(w.min), V = 0, v = w.max + Math.abs(b), z = N.max + Math.abs(V), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - r.cumulatedStackRatio) : 0, _ = this.mutableConfig.isStacked ? this.drawingArea.height * r.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - _ * b / v, M = this.drawingArea.bottom - O - _ * V / z, a = r.series.map((g, F) => {
|
|
417
417
|
const E = this.mutableConfig.useIndividualScale ? (r.absoluteValues[F] + Math.abs(b)) / v : this.ratioToMax(g);
|
|
418
418
|
return {
|
|
419
419
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * F),
|
|
@@ -440,7 +440,7 @@ const Ue = J(), Ze = {
|
|
|
440
440
|
})), G = N.ticks.map((g) => {
|
|
441
441
|
const F = (g - N.min) / (N.max - N.min);
|
|
442
442
|
return {
|
|
443
|
-
y: g >= 0 ?
|
|
443
|
+
y: g >= 0 ? M - _ * F : M + _ * F,
|
|
444
444
|
value: g,
|
|
445
445
|
prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
446
446
|
suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
@@ -455,10 +455,10 @@ const Ue = J(), Ze = {
|
|
|
455
455
|
scaleYLabels: r.autoScaling ? G : y,
|
|
456
456
|
individualScale: r.autoScaling ? N : w,
|
|
457
457
|
individualMax: r.autoScaling ? z : v,
|
|
458
|
-
zeroPosition: r.autoScaling ?
|
|
458
|
+
zeroPosition: r.autoScaling ? M : C,
|
|
459
459
|
curve: r.autoScaling ? W : d,
|
|
460
460
|
plots: r.autoScaling ? n : a,
|
|
461
|
-
area: r.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(r.autoScaling ? n : a, r.autoScaling ?
|
|
461
|
+
area: r.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(r.autoScaling ? n : a, r.autoScaling ? M : C) : this.createArea(a) : ""
|
|
462
462
|
};
|
|
463
463
|
});
|
|
464
464
|
},
|
|
@@ -472,7 +472,7 @@ const Ue = J(), Ze = {
|
|
|
472
472
|
}, e = {
|
|
473
473
|
max: r.scaleMax || Math.max(...r.absoluteValues) || 1,
|
|
474
474
|
min: r.scaleMin || Math.min(...r.absoluteValues) > 0 ? 0 : Math.min(...r.absoluteValues)
|
|
475
|
-
}, x = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, w = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * A : e.max, x), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * A : t.valueMax, x), b = w.min >= 0 ? 0 : Math.abs(w.min), V = 0, v = w.max + b, z = N.max + Math.abs(V), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - r.cumulatedStackRatio) : 0, _ = this.mutableConfig.isStacked ? this.drawingArea.height * r.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - _ * b / v,
|
|
475
|
+
}, x = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, w = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * A : e.max, x), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * A : t.valueMax, x), b = w.min >= 0 ? 0 : Math.abs(w.min), V = 0, v = w.max + b, z = N.max + Math.abs(V), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - r.cumulatedStackRatio) : 0, _ = this.mutableConfig.isStacked ? this.drawingArea.height * r.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - _ * b / v, M = this.drawingArea.bottom - O - _ * V / z, a = r.series.map((y, G) => {
|
|
476
476
|
const g = this.mutableConfig.useIndividualScale ? (r.absoluteValues[G] + Math.abs(b)) / v : this.ratioToMax(y);
|
|
477
477
|
return {
|
|
478
478
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * G),
|
|
@@ -494,7 +494,7 @@ const Ue = J(), Ze = {
|
|
|
494
494
|
})), W = N.ticks.map((y) => {
|
|
495
495
|
const G = (y - N.min) / (N.max - N.min);
|
|
496
496
|
return {
|
|
497
|
-
y: y >= 0 ?
|
|
497
|
+
y: y >= 0 ? M - _ * G : M + _ * G,
|
|
498
498
|
value: y,
|
|
499
499
|
prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
500
500
|
suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
@@ -509,7 +509,7 @@ const Ue = J(), Ze = {
|
|
|
509
509
|
scaleYLabels: r.autoScaling ? W : d,
|
|
510
510
|
individualScale: r.autoScaling ? N : w,
|
|
511
511
|
individualMax: r.autoScaling ? z : v,
|
|
512
|
-
zeroPosition: r.autoScaling ?
|
|
512
|
+
zeroPosition: r.autoScaling ? M : C,
|
|
513
513
|
plots: r.autoScaling ? n : a
|
|
514
514
|
};
|
|
515
515
|
});
|
|
@@ -1080,7 +1080,7 @@ const Ue = J(), Ze = {
|
|
|
1080
1080
|
ref: "noTitle",
|
|
1081
1081
|
class: "vue-data-ui-no-title-space",
|
|
1082
1082
|
style: "height:36px; width: 100%; background:transparent"
|
|
1083
|
-
}, Qe = ["viewBox"], je = ["x", "y", "width", "height"], $e = { key: 1 }, et = { class: "vue-ui-xy-grid" }, tt = ["stroke", "x1", "x2", "y1", "y2"], rt = ["stroke", "x1", "x2", "y1", "y2"], at = { key: 1 }, lt = ["x1", "x2", "y1", "y2", "stroke"], it = ["x1", "x2", "y1", "y2", "stroke"], st = ["x1", "x2", "y1", "y2", "stroke"], nt = { key: 3 }, ht = ["x1", "x2", "y1", "y2", "stroke"], ot = ["id"], ct = ["stop-color"], dt = ["stop-color"], ut = ["stop-color"], gt = ["id"], ft = ["stop-color"], It = ["stop-color"], mt = ["stop-color"], Nt = ["id"], xt = ["stop-color"], bt = ["stop-color"], Ft = ["id"], _t = ["stop-color"], At = ["stop-color"], yt = ["id"], Lt = ["stop-color"], Ct = ["stop-color"], St = ["x", "y", "height", "width", "fill"], kt = ["x", "y", "width"], wt = ["x", "y", "height", "width", "fill"], Ot = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Gt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], vt = ["width", "x", "y"], zt = { key: 0 },
|
|
1083
|
+
}, Qe = ["viewBox"], je = ["x", "y", "width", "height"], $e = { key: 1 }, et = { class: "vue-ui-xy-grid" }, tt = ["stroke", "x1", "x2", "y1", "y2"], rt = ["stroke", "x1", "x2", "y1", "y2"], at = { key: 1 }, lt = ["x1", "x2", "y1", "y2", "stroke"], it = ["x1", "x2", "y1", "y2", "stroke"], st = ["x1", "x2", "y1", "y2", "stroke"], nt = { key: 3 }, ht = ["x1", "x2", "y1", "y2", "stroke"], ot = ["id"], ct = ["stop-color"], dt = ["stop-color"], ut = ["stop-color"], gt = ["id"], ft = ["stop-color"], It = ["stop-color"], mt = ["stop-color"], Nt = ["id"], xt = ["stop-color"], bt = ["stop-color"], Ft = ["id"], _t = ["stop-color"], At = ["stop-color"], yt = ["id"], Lt = ["stop-color"], Ct = ["stop-color"], St = ["x", "y", "height", "width", "fill"], kt = ["x", "y", "width"], wt = ["x", "y", "height", "width", "fill"], Ot = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Gt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], vt = ["width", "x", "y"], zt = { key: 0 }, Mt = ["id"], pt = ["fill"], Vt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Tt = ["x", "y", "font-size", "fill"], Pt = ["stroke", "x1", "x2", "y1", "y2"], Rt = { key: 2 }, Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ht = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Bt = { key: 4 }, Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Et = ["fill", "font-size", "transform"], Yt = ["x1", "x2", "y1", "y2", "stroke"], qt = ["x", "y", "font-size", "fill"], Xt = ["x1", "x2", "y1", "y2", "stroke"], Ut = ["x", "y", "font-size", "fill"], Zt = ["width", "x", "y"], Jt = { style: { width: "100%" } }, Kt = { key: 0 }, Qt = ["id"], jt = ["fill"], $t = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], er = ["x", "y", "font-size", "fill"], tr = ["d", "stroke", "stroke-width", "stroke-dasharray"], rr = { key: 1 }, ar = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], lr = { key: 5 }, ir = { key: 0 }, sr = ["d", "fill"], nr = ["d", "fill"], hr = ["d", "fill"], or = ["d", "fill"], cr = ["d", "stroke", "stroke-width", "stroke-dasharray"], dr = { key: 2 }, ur = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gr = ["width", "x", "y"], fr = { style: { width: "100%" } }, Ir = { key: 3 }, mr = ["id"], Nr = ["fill"], xr = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], br = ["x", "y", "font-size", "fill"], Fr = { key: 6 }, _r = ["x", "y", "font-size", "fill"], Ar = ["x", "y", "font-size", "fill", "font-weight"], yr = { key: 7 }, Lr = ["x", "y", "font-size", "fill"], Cr = ["x", "y"], Sr = ["x", "y"], kr = { key: 8 }, wr = ["x", "y", "font-size", "fill"], Or = ["x", "y"], Gr = ["x", "y"], vr = ["x", "y", "font-size", "fill", "innerHTML"], zr = ["x", "y", "font-size", "fill", "innerHTML"], Mr = ["x", "y", "font-size", "fill", "innerHTML"], pr = ["x", "y", "font-size", "fill", "innerHTML"], Vr = ["x", "y", "width", "height", "fill", "onMouseenter"], Tr = ["font-size", "fill", "transform"], Pr = ["x", "y", "font-size", "fill"], Rr = { key: 10 }, Dr = ["text-anchor", "font-size", "fill", "transform", "onClick"], Hr = ["x", "y", "height", "width", "onMouseenter", "onClick"], Br = { key: 11 }, Wr = ["x", "y"], Er = ["cx", "cy", "r", "fill"], Yr = {
|
|
1084
1084
|
key: 5,
|
|
1085
1085
|
class: "vue-data-ui-watermark"
|
|
1086
1086
|
}, qr = ["onClick"], Xr = {
|
|
@@ -1110,7 +1110,7 @@ const Ue = J(), Ze = {
|
|
|
1110
1110
|
"data-html2canvas-ignore": ""
|
|
1111
1111
|
}, ta = ["innerHTML"];
|
|
1112
1112
|
function ra(r, s, o, u, t, e) {
|
|
1113
|
-
const x = T("PenAndPaper"), A = T("Title"), w = T("UserOptions"), N = T("PackageVersion"), b = T("Shape"), V = T("Skeleton"), v = T("Slicer"), z = T("Tooltip"), O = T("BaseIcon"), _ = T("TableSparkline"), C = T("DataTable"),
|
|
1113
|
+
const x = T("PenAndPaper"), A = T("Title"), w = T("UserOptions"), N = T("PackageVersion"), b = T("Shape"), V = T("Skeleton"), v = T("Slicer"), z = T("Tooltip"), O = T("BaseIcon"), _ = T("TableSparkline"), C = T("DataTable"), M = T("Accordion");
|
|
1114
1114
|
return l(), i("div", {
|
|
1115
1115
|
id: `vue-ui-xy_${t.uniqueId}`,
|
|
1116
1116
|
class: P(`vue-ui-xy ${t.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
@@ -1187,63 +1187,63 @@ function ra(r, s, o, u, t, e) {
|
|
|
1187
1187
|
}, Be({ _: 2 }, [
|
|
1188
1188
|
r.$slots.optionTooltip ? {
|
|
1189
1189
|
name: "optionTooltip",
|
|
1190
|
-
fn:
|
|
1190
|
+
fn: p(() => [
|
|
1191
1191
|
S(r.$slots, "optionTooltip", {}, void 0, !0)
|
|
1192
1192
|
]),
|
|
1193
1193
|
key: "0"
|
|
1194
1194
|
} : void 0,
|
|
1195
1195
|
r.$slots.optionPdf ? {
|
|
1196
1196
|
name: "optionPdf",
|
|
1197
|
-
fn:
|
|
1197
|
+
fn: p(() => [
|
|
1198
1198
|
S(r.$slots, "optionPdf", {}, void 0, !0)
|
|
1199
1199
|
]),
|
|
1200
1200
|
key: "1"
|
|
1201
1201
|
} : void 0,
|
|
1202
1202
|
r.$slots.optionCsv ? {
|
|
1203
1203
|
name: "optionCsv",
|
|
1204
|
-
fn:
|
|
1204
|
+
fn: p(() => [
|
|
1205
1205
|
S(r.$slots, "optionCsv", {}, void 0, !0)
|
|
1206
1206
|
]),
|
|
1207
1207
|
key: "2"
|
|
1208
1208
|
} : void 0,
|
|
1209
1209
|
r.$slots.optionImg ? {
|
|
1210
1210
|
name: "optionImg",
|
|
1211
|
-
fn:
|
|
1211
|
+
fn: p(() => [
|
|
1212
1212
|
S(r.$slots, "optionImg", {}, void 0, !0)
|
|
1213
1213
|
]),
|
|
1214
1214
|
key: "3"
|
|
1215
1215
|
} : void 0,
|
|
1216
1216
|
r.$slots.optionTable ? {
|
|
1217
1217
|
name: "optionTable",
|
|
1218
|
-
fn:
|
|
1218
|
+
fn: p(() => [
|
|
1219
1219
|
S(r.$slots, "optionTable", {}, void 0, !0)
|
|
1220
1220
|
]),
|
|
1221
1221
|
key: "4"
|
|
1222
1222
|
} : void 0,
|
|
1223
1223
|
r.$slots.optionLabels ? {
|
|
1224
1224
|
name: "optionLabels",
|
|
1225
|
-
fn:
|
|
1225
|
+
fn: p(() => [
|
|
1226
1226
|
S(r.$slots, "optionLabels", {}, void 0, !0)
|
|
1227
1227
|
]),
|
|
1228
1228
|
key: "5"
|
|
1229
1229
|
} : void 0,
|
|
1230
1230
|
r.$slots.optionStack ? {
|
|
1231
1231
|
name: "optionStack",
|
|
1232
|
-
fn:
|
|
1232
|
+
fn: p(() => [
|
|
1233
1233
|
S(r.$slots, "optionStack", {}, void 0, !0)
|
|
1234
1234
|
]),
|
|
1235
1235
|
key: "6"
|
|
1236
1236
|
} : void 0,
|
|
1237
1237
|
r.$slots.optionFullscreen ? {
|
|
1238
1238
|
name: "optionFullscreen",
|
|
1239
|
-
fn:
|
|
1239
|
+
fn: p(({ toggleFullscreen: a, isFullscreen: h }) => [
|
|
1240
1240
|
S(r.$slots, "optionFullscreen", H(B({ toggleFullscreen: a, isFullscreen: h })), void 0, !0)
|
|
1241
1241
|
]),
|
|
1242
1242
|
key: "7"
|
|
1243
1243
|
} : void 0,
|
|
1244
1244
|
r.$slots.optionAnnotator ? {
|
|
1245
1245
|
name: "optionAnnotator",
|
|
1246
|
-
fn:
|
|
1246
|
+
fn: p(({ toggleAnnotator: a, isAnnotator: h }) => [
|
|
1247
1247
|
S(r.$slots, "optionAnnotator", H(B({ toggleAnnotator: a, isAnnotator: h })), void 0, !0)
|
|
1248
1248
|
]),
|
|
1249
1249
|
key: "8"
|
|
@@ -1532,8 +1532,8 @@ function ra(r, s, o, u, t, e) {
|
|
|
1532
1532
|
f("polygon", {
|
|
1533
1533
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1534
1534
|
fill: a.color
|
|
1535
|
-
}, null, 8,
|
|
1536
|
-
], 8,
|
|
1535
|
+
}, null, 8, pt)
|
|
1536
|
+
], 8, Mt)
|
|
1537
1537
|
]),
|
|
1538
1538
|
a.plots.length > 1 ? (l(), i("line", {
|
|
1539
1539
|
key: 0,
|
|
@@ -1618,7 +1618,7 @@ function ra(r, s, o, u, t, e) {
|
|
|
1618
1618
|
fill: a.color,
|
|
1619
1619
|
"font-size": t.fontSizes.dataLabels,
|
|
1620
1620
|
"text-anchor": "middle",
|
|
1621
|
-
transform: `translate(${a.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5}, ${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset - a.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1621
|
+
transform: `translate(${a.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5 + e.xPadding}, ${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset - a.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1622
1622
|
}, k(a.name) + " " + k(a.scaleLabel ? `- ${a.scaleLabel}` : ""), 9, Et),
|
|
1623
1623
|
(l(!0), i(I, null, m(a.yLabels, (h, n) => (l(), i("line", {
|
|
1624
1624
|
x1: a.x - 3 + e.xPadding,
|
|
@@ -2130,7 +2130,7 @@ function ra(r, s, o, u, t, e) {
|
|
|
2130
2130
|
y: n.y,
|
|
2131
2131
|
maxWords: 2
|
|
2132
2132
|
})
|
|
2133
|
-
}, null, 8,
|
|
2133
|
+
}, null, 8, Mr)) : c("", !0),
|
|
2134
2134
|
n && d === a.plots.length - 1 && a.showSerieName && a.showSerieName === "end" ? (l(), i("text", {
|
|
2135
2135
|
key: 1,
|
|
2136
2136
|
x: n.x + t.fontSizes.plotLabels,
|
|
@@ -2146,11 +2146,11 @@ function ra(r, s, o, u, t, e) {
|
|
|
2146
2146
|
y: n.y,
|
|
2147
2147
|
maxWords: 2
|
|
2148
2148
|
})
|
|
2149
|
-
}, null, 8,
|
|
2149
|
+
}, null, 8, pr)) : c("", !0)
|
|
2150
2150
|
]))), 128))
|
|
2151
2151
|
], 6))), 128)),
|
|
2152
2152
|
t.mutableConfig.useIndividualScale && !t.mutableConfig.isStacked ? (l(!0), i(I, { key: 9 }, m(e.allScales, (a) => (l(), i("rect", {
|
|
2153
|
-
x: a.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2153
|
+
x: a.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + e.xPadding,
|
|
2154
2154
|
y: e.drawingArea.top,
|
|
2155
2155
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2156
2156
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
@@ -2304,7 +2304,7 @@ function ra(r, s, o, u, t, e) {
|
|
|
2304
2304
|
onReset: e.refreshSlicer,
|
|
2305
2305
|
onTrapMouse: e.selectMinimapIndex
|
|
2306
2306
|
}, {
|
|
2307
|
-
"reset-action":
|
|
2307
|
+
"reset-action": p(({ reset: a }) => [
|
|
2308
2308
|
S(r.$slots, "reset-action", H(B({ reset: a })), void 0, !0)
|
|
2309
2309
|
]),
|
|
2310
2310
|
_: 3
|
|
@@ -2394,15 +2394,15 @@ function ra(r, s, o, u, t, e) {
|
|
|
2394
2394
|
isFullscreen: t.isFullscreen,
|
|
2395
2395
|
isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
|
|
2396
2396
|
}, {
|
|
2397
|
-
"tooltip-before":
|
|
2397
|
+
"tooltip-before": p(() => [
|
|
2398
2398
|
S(r.$slots, "tooltip-before", H(B({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2399
2399
|
]),
|
|
2400
|
-
"tooltip-after":
|
|
2400
|
+
"tooltip-after": p(() => [
|
|
2401
2401
|
S(r.$slots, "tooltip-after", H(B({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2402
2402
|
]),
|
|
2403
2403
|
_: 3
|
|
2404
2404
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
2405
|
-
e.isDataset ? (l(), D(
|
|
2405
|
+
e.isDataset ? (l(), D(M, {
|
|
2406
2406
|
key: 11,
|
|
2407
2407
|
hideDetails: "",
|
|
2408
2408
|
config: {
|
|
@@ -2418,7 +2418,7 @@ function ra(r, s, o, u, t, e) {
|
|
|
2418
2418
|
}
|
|
2419
2419
|
}
|
|
2420
2420
|
}, {
|
|
2421
|
-
content:
|
|
2421
|
+
content: p(() => [
|
|
2422
2422
|
f("div", {
|
|
2423
2423
|
style: L(`${t.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2424
2424
|
}, [
|
|
@@ -2453,10 +2453,10 @@ function ra(r, s, o, u, t, e) {
|
|
|
2453
2453
|
title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
|
|
2454
2454
|
onClose: s[6] || (s[6] = (a) => t.mutableConfig.showTable = !1)
|
|
2455
2455
|
}, {
|
|
2456
|
-
th:
|
|
2456
|
+
th: p(({ th: a }) => [
|
|
2457
2457
|
f("div", { innerHTML: a }, null, 8, ta)
|
|
2458
2458
|
]),
|
|
2459
|
-
td:
|
|
2459
|
+
td: p(({ td: a }) => [
|
|
2460
2460
|
qe(k(isNaN(Number(a)) ? a : e.dataLabel({
|
|
2461
2461
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
2462
2462
|
v: a,
|
|
@@ -2472,7 +2472,7 @@ function ra(r, s, o, u, t, e) {
|
|
|
2472
2472
|
}, 8, ["config"])) : c("", !0)
|
|
2473
2473
|
], 46, Je);
|
|
2474
2474
|
}
|
|
2475
|
-
const ba = /* @__PURE__ */ Xe(Ze, [["render", ra], ["__scopeId", "data-v-
|
|
2475
|
+
const ba = /* @__PURE__ */ Xe(Ze, [["render", ra], ["__scopeId", "data-v-b39f6107"]]);
|
|
2476
2476
|
export {
|
|
2477
2477
|
ba as default
|
|
2478
2478
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-BPAGYd6L.cjs"),we=require("./useResponsive-BJ7DTGpm.cjs"),ze=require("./Title-qQtFhzWa.cjs"),Ce=require("./usePrinter-CFdC3kqD.cjs"),Te=require("./DataTable-C9l4dd5y.cjs"),Xe=require("./Tooltip-BMCgXPh1.cjs"),De=require("./Legend-Bj4l4_U_.cjs"),Me=require("./vue-ui-skeleton-DrqHxSpM.cjs"),Ye=require("./vue-ui-accordion-C-09eoIa.cjs"),Be=require("./useNestedProp-DnmHyIdv.cjs"),Ae=require("./PackageVersion-d2x9D0BY.cjs"),Ie=require("./PenAndPaper-CgV76v_G.cjs"),qe=require("./useUserOptionState-BgepsfED.cjs"),Re=require("./Shape-043iD2p4.cjs"),Ge=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ue=V=>(e.pushScopeId("data-v-bac48d71"),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"],Lt=["cx","cy","r","fill"],Ft={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(),L=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=>{L.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});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},{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}),F=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,f)=>f===o),l=k.value.find((s,f)=>f===o);let a=l.value;if(w.value.includes(o)){let f=function(){a>s?(cancelAnimationFrame(ie.value),k.value=k.value.map((h,R)=>o===R?{...h,value:s}:h),$.value=!1):($.value=!0,a+=s*.025,k.value=k.value.map((h,R)=>o===R?{...h,value:a}:h),ie.value=requestAnimationFrame(f))};w.value=w.value.filter(h=>h!==o);const s=u.value;f()}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((f,h)=>o===h?{...f,value:0}:f),$.value=!1):($.value=!0,a/=1.1,k.value=k.value.map((f,h)=>o===h?{...f,value:a}:f),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,F.value)),i=e.computed(()=>{const o=Math.max(...C.value.map(l=>l.value)),u=C.value.map(l=>l.value/o);return r.createPolarAreas({series:u,center:{x:n.value.width/2,y:n.value.height/2},maxRadius:Math.min(n.value.width,n.value.height)/3})});function 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/Le(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 Le(o){return[...o].map(u=>u.value).reduce((u,l)=>u+l,0)}const m=e.computed(()=>C.value.map(o=>o.value).reduce((o,u)=>o+u,0)),he=e.computed(()=>m.value/C.value.length),fe=e.computed(()=>o=>$.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 f=t.value.style.chart.tooltip.customFormat;if(O.value=!1,r.isFunction(f))try{const h=f({seriesIndex:l,datapoint:o,series:x.value,config:t.value});typeof h=="string"&&(M.value=h,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 h=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>(${h})</span></div>`:s+=`<b>${h}</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,f)=>{const h=r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:B.value.body[f],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue});return[{color:s.color,name:s.name},h,isNaN(B.value.body[f]/m.value)?"-":(B.value.body[f]/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 Fe(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&&L.value&&(e.unref(oe)||e.unref(Y))?(e.openBlock(),e.createBlock(Ce.UserOptions,{ref_key:"details",ref:Se,key:`user_option_${ee.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ae),isImaging:e.unref(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:Fe,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),L.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-F.value/y.value)*100}%`,"stop-color":e.unref(r.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,Ze),e.createElementVNode("stop",{offset:`${(1-F.value/y.value/2)*100}%`,"stop-color":e.unref(r.setOpacity)("#FFFFFF",t.value.style.chart.gradientIntensity)},null,8,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,F.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,Lt)):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",Ft,[(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),L.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:F.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"]),L.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-bac48d71"]]);exports.default=nl;
|