vue-data-ui 2.6.19 → 2.6.21
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/README.md +8 -0
- package/dist/{Arrow-QMACp9z-.cjs → Arrow-C1pcd-am.cjs} +1 -1
- package/dist/{Arrow-DTtLZwne.js → Arrow-DQaZQgi6.js} +1 -1
- package/dist/{BaseIcon-BpRuwiFD.cjs → BaseIcon-BQwivF_K.cjs} +1 -1
- package/dist/{BaseIcon-nz-vbP7I.js → BaseIcon-DH34CAFx.js} +1 -1
- package/dist/{DataTable-Dr-djTUz.cjs → DataTable-D5572vAU.cjs} +1 -1
- package/dist/{DataTable-pNLWbeCL.js → DataTable-DfMqgTjL.js} +2 -2
- package/dist/{Legend-BHbX2C8f.cjs → Legend-CoREnR30.cjs} +1 -1
- package/dist/{Legend-s9DRKvJo.js → Legend-PL8rU0J1.js} +2 -2
- package/dist/{PackageVersion-hltZM-fb.js → PackageVersion-1Y7SXTrk.js} +1 -1
- package/dist/{PackageVersion-DsoqDgVf.cjs → PackageVersion-JsuXjgR_.cjs} +1 -1
- package/dist/PenAndPaper-7lGhxIH8.cjs +1 -0
- package/dist/{PenAndPaper-qmkn1GhB.js → PenAndPaper-BYhUvcy4.js} +20 -16
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-z17A_S1M.js → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-AmNwJZI7.js} +3 -3
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-lH7bkq1z.cjs → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-NplvneD1.cjs} +1 -1
- package/dist/{Shape-YhMDtuHk.cjs → Shape-HtDeeGqp.cjs} +1 -1
- package/dist/{Shape-C3y6rj0O.js → Shape-Ov27sl2L.js} +1 -1
- package/dist/{Slicer-BIW17-XH.js → Slicer-6F4tHrZR.js} +3 -3
- package/dist/{Slicer-BA8XF-Ak.cjs → Slicer-COXIFuZ-.cjs} +1 -1
- package/dist/{Title-dsg3PqUg.js → Title-1PWD04Gh.js} +1 -1
- package/dist/{Title-DWqgN4Kv.cjs → Title-Pgt1Ixvo.cjs} +1 -1
- package/dist/{Tooltip-DRFQIslg.js → Tooltip-BTO5NGkn.js} +1 -1
- package/dist/{Tooltip-B6T_qzJD.cjs → Tooltip-te_h24w6.cjs} +1 -1
- package/dist/{index-3OrObUP-.cjs → index-DM-Bs-Ua.cjs} +1 -1
- package/dist/{index-DvAaY6OP.js → index-DUnEDLbc.js} +1 -1
- package/dist/index.es-DvaaoatM.cjs +18 -0
- package/dist/index.es-RWt7DWPC.js +6645 -0
- package/dist/{jspdf.es.min-C5v1xtPn.cjs → jspdf.es.min-Rw70uifz.cjs} +23 -23
- package/dist/{jspdf.es.min-DKXYalZb.js → jspdf.es.min-eTA26cmm.js} +476 -470
- package/dist/{pdf-CHXlEvWj.cjs → pdf-DSkQT5iH.cjs} +1 -1
- package/dist/{pdf-70oZh5Jp.js → pdf-DVWl3Adn.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CGzX7c5Q.js → useNestedProp-CEMeoM-f.js} +1 -1
- package/dist/{useNestedProp-B53Yi1Rk.cjs → useNestedProp-CYy5g-mh.cjs} +1 -1
- package/dist/usePrinter-DbpIk44f.cjs +1 -0
- package/dist/{usePrinter-D_2jA4x8.js → usePrinter-Undaynpo.js} +73 -71
- package/dist/useResponsive-N8jl0-aC.cjs +1 -0
- package/dist/{useResponsive-BWapHhVH.js → useResponsive-vZgZwV-S.js} +65 -64
- package/dist/{vue-data-ui-CTjgYwlW.cjs → vue-data-ui-BapofDyJ.cjs} +1 -1
- package/dist/{vue-data-ui-DMl9rAwQ.js → vue-data-ui-DnaIYz0z.js} +61 -61
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DBVRoMwv.js → vue-ui-3d-bar-DLYaW0-y.js} +105 -98
- package/dist/{vue-ui-3d-bar-OwVsZokU.cjs → vue-ui-3d-bar-DansBM76.cjs} +2 -2
- package/dist/{vue-ui-accordion-LbUarYuf.js → vue-ui-accordion-C8Couc_G.js} +3 -3
- package/dist/{vue-ui-accordion-BmScSwW2.cjs → vue-ui-accordion-ZIsT4At8.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DQ5dL4yb.cjs → vue-ui-age-pyramid-BSXnW9GF.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-rmfEfmj7.js → vue-ui-age-pyramid-BdruKMmo.js} +76 -69
- package/dist/{vue-ui-annotator-nS_RSspz.cjs → vue-ui-annotator-B7Go0M7W.cjs} +1 -1
- package/dist/{vue-ui-annotator-FlMkU7Kj.js → vue-ui-annotator-DVfdPMa7.js} +2 -2
- package/dist/{vue-ui-bullet-esfPgi-9.js → vue-ui-bullet-CkCJgmoJ.js} +145 -138
- package/dist/{vue-ui-bullet-BGTTcXBJ.cjs → vue-ui-bullet-N9ud2cQ7.cjs} +4 -4
- package/dist/{vue-ui-candlestick-RHrlnUqs.js → vue-ui-candlestick-C9B13qeU.js} +116 -109
- package/dist/{vue-ui-candlestick-BUEGFHg_.cjs → vue-ui-candlestick-DPIs9tEW.cjs} +2 -2
- package/dist/{vue-ui-carousel-table-6uP-Kk9U.js → vue-ui-carousel-table-BLo52Rqu.js} +130 -123
- package/dist/{vue-ui-carousel-table-DCcPnWRU.cjs → vue-ui-carousel-table-DgcY4j9y.cjs} +1 -1
- package/dist/{vue-ui-chestnut-B7Ep4Lho.cjs → vue-ui-chestnut-C9Zw_bey.cjs} +2 -2
- package/dist/{vue-ui-chestnut-Dh4y5s_v.js → vue-ui-chestnut-D8oXG8Tf.js} +131 -124
- package/dist/vue-ui-circle-pack-CrEdkNM7.js +648 -0
- package/dist/vue-ui-circle-pack-DYW-e2E5.cjs +1 -0
- package/dist/{vue-ui-cursor-D-IzE_jd.cjs → vue-ui-cursor-CtSijliN.cjs} +1 -1
- package/dist/{vue-ui-cursor-C21WgpGu.js → vue-ui-cursor-DkW4pJcP.js} +2 -2
- package/dist/{vue-ui-dashboard-T0LqYCqM.js → vue-ui-dashboard-5_Du0Yr2.js} +3 -3
- package/dist/{vue-ui-dashboard-DQ_wht4B.cjs → vue-ui-dashboard-Dh5vRbdI.cjs} +1 -1
- package/dist/{vue-ui-digits-CwV6mhHZ.cjs → vue-ui-digits-DEmYk7sS.cjs} +1 -1
- package/dist/{vue-ui-digits-CLFrlUIW.js → vue-ui-digits-DhA1bHdz.js} +2 -2
- package/dist/{vue-ui-donut-dVplEheX.js → vue-ui-donut-B-G7gRdV.js} +118 -111
- package/dist/{vue-ui-donut-b_UXDeKJ.cjs → vue-ui-donut-BrZxaijU.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-Bl50EWBG.js → vue-ui-donut-evolution-B4almlBq.js} +164 -157
- package/dist/{vue-ui-donut-evolution-VxNtQWGH.cjs → vue-ui-donut-evolution-CTbXi7wk.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-B-7s7x7a.cjs → vue-ui-dumbbell-CAIlnhsM.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-Bp685TTG.js → vue-ui-dumbbell-kZGa__IU.js} +75 -68
- package/dist/{vue-ui-flow-CHbfoU97.js → vue-ui-flow-Bc31ZN1W.js} +177 -170
- package/dist/{vue-ui-flow-DJqOVlD7.cjs → vue-ui-flow-D2UNbwlp.cjs} +1 -1
- package/dist/{vue-ui-funnel-B77giO54.cjs → vue-ui-funnel-DfCz1GNN.cjs} +1 -1
- package/dist/{vue-ui-funnel-Bhv0XRzJ.js → vue-ui-funnel-V7hu2Iib.js} +129 -122
- package/dist/{vue-ui-galaxy-Dt4dx9bS.cjs → vue-ui-galaxy-CNBC7IbU.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DMA8AX8h.js → vue-ui-galaxy-DLCcy7Kq.js} +77 -70
- package/dist/{vue-ui-gauge-CBlurlZk.js → vue-ui-gauge-CZMHtEcr.js} +153 -146
- package/dist/{vue-ui-gauge-Bh3iSbSd.cjs → vue-ui-gauge-D8IglqIF.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CHhJKge-.js → vue-ui-gizmo-BuAVBMBp.js} +3 -3
- package/dist/{vue-ui-gizmo-BMrnNfYR.cjs → vue-ui-gizmo-fyC414Iv.cjs} +1 -1
- package/dist/vue-ui-heatmap-CDOry_F1.cjs +1 -0
- package/dist/{vue-ui-heatmap-CB4852rp.js → vue-ui-heatmap-hUfFzGck.js} +139 -132
- package/dist/{vue-ui-history-plot-AwmdEhYL.js → vue-ui-history-plot-C79l8rPm.js} +122 -115
- package/dist/{vue-ui-history-plot-BG7r0ZF7.cjs → vue-ui-history-plot-CIXgvWpk.cjs} +1 -1
- package/dist/{vue-ui-kpi-DcxE4Vv7.js → vue-ui-kpi-C3tHthXH.js} +3 -3
- package/dist/{vue-ui-kpi-BYCMEzBt.cjs → vue-ui-kpi-yiWxNLJ-.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CdDRH8Rb.js → vue-ui-mini-loader-1p1jAKx_.js} +2 -2
- package/dist/{vue-ui-mini-loader-DOqUfxRJ.cjs → vue-ui-mini-loader-26yCYjxn.cjs} +1 -1
- package/dist/{vue-ui-molecule-C-Z0Ywq1.cjs → vue-ui-molecule-Bw0dYLfu.cjs} +1 -1
- package/dist/{vue-ui-molecule-BskBKGbQ.js → vue-ui-molecule-COQ-yrBr.js} +249 -242
- package/dist/{vue-ui-mood-radar-BAPZ1LyF.js → vue-ui-mood-radar-CwfGiQ43.js} +111 -104
- package/dist/{vue-ui-mood-radar-BIrQKfVf.cjs → vue-ui-mood-radar-Cyde9hnR.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BB2Kgb5F.js → vue-ui-nested-donuts-BVaW7w1U.js} +117 -110
- package/dist/{vue-ui-nested-donuts-7YjtP-jC.cjs → vue-ui-nested-donuts-Y07lLGRa.cjs} +2 -2
- package/dist/{vue-ui-onion-BWb18zcN.cjs → vue-ui-onion-DkXss-B_.cjs} +2 -2
- package/dist/{vue-ui-onion-BjMfXAZK.js → vue-ui-onion-h6DP9kOi.js} +143 -136
- package/dist/{vue-ui-parallel-coordinate-plot-D6Vs-5Vh.cjs → vue-ui-parallel-coordinate-plot-CkI21cq2.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-ryqdfkHL.js → vue-ui-parallel-coordinate-plot-O5cwKbzH.js} +113 -106
- package/dist/{vue-ui-quadrant-Cr4ypLzT.js → vue-ui-quadrant-CfywvXnV.js} +112 -105
- package/dist/{vue-ui-quadrant-BmsHBpKo.cjs → vue-ui-quadrant-F6w-QJE_.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-45IEXHb0.cjs → vue-ui-quick-chart-BeMHD_Kz.cjs} +3 -3
- package/dist/{vue-ui-quick-chart-C9dIHRYi.js → vue-ui-quick-chart-C1AwFGSr.js} +195 -188
- package/dist/{vue-ui-radar-Nr5JmVlk.cjs → vue-ui-radar-BejYh3DW.cjs} +1 -1
- package/dist/{vue-ui-radar-T6xdl9ic.js → vue-ui-radar-DDKXLi5o.js} +101 -94
- package/dist/{vue-ui-rating-C5AaiBqZ.js → vue-ui-rating-BrGbM0Op.js} +2 -2
- package/dist/{vue-ui-rating-CFIhZlG-.cjs → vue-ui-rating-C40ktvn7.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-Cw-DcsRY.cjs → vue-ui-relation-circle-C4qT13SI.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BktS594K.js → vue-ui-relation-circle-DrtdiTMX.js} +103 -96
- package/dist/{vue-ui-rings-_evAK3j7.js → vue-ui-rings-C4IdhEUE.js} +169 -162
- package/dist/{vue-ui-rings-2j5fsO_o.cjs → vue-ui-rings-Cd8WyeDZ.cjs} +2 -2
- package/dist/{vue-ui-scatter-C5ePnByD.js → vue-ui-scatter-BS8sgyMi.js} +85 -78
- package/dist/{vue-ui-scatter-W1_ChsfO.cjs → vue-ui-scatter-MmvIeu4D.cjs} +1 -1
- package/dist/{vue-ui-screenshot-B6ASKPJf.cjs → vue-ui-screenshot-BB51-eRL.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DM-PQM2g.js → vue-ui-screenshot-tnFPT1vi.js} +1 -1
- package/dist/{vue-ui-skeleton-WoggMoff.js → vue-ui-skeleton-DieABKlo.js} +3 -3
- package/dist/{vue-ui-skeleton-DaowWOKJ.cjs → vue-ui-skeleton-DlC-U64G.cjs} +1 -1
- package/dist/{vue-ui-smiley-gulDZ8i7.js → vue-ui-smiley-C32wVXgu.js} +2 -2
- package/dist/{vue-ui-smiley-hlaNlq2y.cjs → vue-ui-smiley-DSxKw3ud.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-LbApLsdt.js → vue-ui-spark-trend-B_x1dX38.js} +5 -5
- package/dist/{vue-ui-spark-trend-BcrMflk6.cjs → vue-ui-spark-trend-vexkCCy9.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BdfaDBkw.cjs → vue-ui-sparkbar-CsOEiHDQ.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CnL6FbaE.js → vue-ui-sparkbar-ZSbB6Llo.js} +4 -4
- package/dist/{vue-ui-sparkgauge-CHv1q1cO.cjs → vue-ui-sparkgauge-Bdh7X--h.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Du7PRJyB.js → vue-ui-sparkgauge-Cf3bDk98.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CyEyZvbD.js → vue-ui-sparkhistogram-CrZy1xf0.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-CBqKXnvX.cjs → vue-ui-sparkhistogram-fALwb3uK.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DRHE0kK8.cjs → vue-ui-sparkline-D4WDvcZR.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BMNXPHhB.js → vue-ui-sparkline-DTW_lXgp.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-D6wuDd8h.cjs → vue-ui-sparkstackbar-DBPLhUoi.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-D33lwh8d.js → vue-ui-sparkstackbar-Db2Ndf0k.js} +5 -5
- package/dist/{vue-ui-stackbar-CnxGAca-.cjs → vue-ui-stackbar-B3eaSIoO.cjs} +3 -3
- package/dist/{vue-ui-stackbar-C5yoqQAY.js → vue-ui-stackbar-DbF3ZJTD.js} +211 -204
- package/dist/{vue-ui-strip-plot-Cg1B7i3X.js → vue-ui-strip-plot-CpkH2Gfd.js} +83 -76
- package/dist/{vue-ui-strip-plot-DDTTc2jA.cjs → vue-ui-strip-plot-DiCVf5u-.cjs} +1 -1
- package/dist/{vue-ui-table-BGfZl0wF.js → vue-ui-table-D6zWwikN.js} +1 -1
- package/dist/{vue-ui-table-TV5Coa0A.cjs → vue-ui-table-K13fqkDI.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Jjx8L8St.cjs → vue-ui-table-heatmap-BgenCoVa.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-D0j2OFv0.js → vue-ui-table-heatmap-EAevgnzN.js} +63 -56
- package/dist/{vue-ui-table-sparkline-D0_FhhN5.cjs → vue-ui-table-sparkline-3JMqr89P.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-C2sUG_7S.js → vue-ui-table-sparkline-s_oWe6MG.js} +90 -83
- package/dist/{vue-ui-thermometer-Bw35Fw8v.cjs → vue-ui-thermometer--mYRly4x.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CdLZ8te2.js → vue-ui-thermometer-Bo3l_0Kf.js} +113 -106
- package/dist/{vue-ui-timer-1-kXQ5_q.js → vue-ui-timer-C9EuUurN.js} +6 -6
- package/dist/{vue-ui-timer-Deg5YPx0.cjs → vue-ui-timer-Djh-ZDNe.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-uSgVLSbo.cjs → vue-ui-tiremarks-CKv_KApZ.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BHTSw0fa.js → vue-ui-tiremarks-DgdpEDJ1.js} +76 -69
- package/dist/{vue-ui-treemap-7W_lvbV0.cjs → vue-ui-treemap-AkNJjd2c.cjs} +1 -1
- package/dist/{vue-ui-treemap-C2u5sEzh.js → vue-ui-treemap-D13sISL0.js} +144 -137
- package/dist/{vue-ui-vertical-bar-BlzOi8LC.cjs → vue-ui-vertical-bar-CQlvpdJl.cjs} +3 -3
- package/dist/{vue-ui-vertical-bar-U3LQF-NS.js → vue-ui-vertical-bar-DfegzHj4.js} +120 -113
- package/dist/{vue-ui-waffle-DUXvINoC.cjs → vue-ui-waffle-Dve1LWVt.cjs} +1 -1
- package/dist/{vue-ui-waffle-qAheWwiI.js → vue-ui-waffle-f72Lq8_D.js} +78 -71
- package/dist/{vue-ui-wheel-DIoKCgCS.cjs → vue-ui-wheel-BG1GcVvN.cjs} +1 -1
- package/dist/{vue-ui-wheel-CuLQchDK.js → vue-ui-wheel-BxefMdit.js} +105 -98
- package/dist/{vue-ui-word-cloud-B-nFH7hZ.js → vue-ui-word-cloud-BYY4K2G4.js} +123 -116
- package/dist/{vue-ui-word-cloud-BSvmRQ5n.cjs → vue-ui-word-cloud-CRRR7H7h.cjs} +1 -1
- package/dist/{vue-ui-xy-DXMoSF2C.js → vue-ui-xy-BS0_aTIH.js} +73 -66
- package/dist/{vue-ui-xy-BGsFH9wE.cjs → vue-ui-xy-DGYZFgdd.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-CTymfSH6.js → vue-ui-xy-canvas-Bl2v7Z3U.js} +200 -193
- package/dist/{vue-ui-xy-canvas-i13v43UX.cjs → vue-ui-xy-canvas-R_pPaj0X.cjs} +2 -2
- package/package.json +2 -7
- package/dist/PenAndPaper-Dbw8Fph9.cjs +0 -1
- package/dist/index-Dwoe0gcF.cjs +0 -15
- package/dist/index-Fl-W8YeZ.js +0 -3971
- package/dist/usePrinter-bPnqqKha.cjs +0 -1
- package/dist/useResponsive-YQYQrAZ_.cjs +0 -1
- package/dist/vue-ui-circle-pack-Ce1oEvgz.cjs +0 -1
- package/dist/vue-ui-circle-pack-CrgnQ_jY.js +0 -663
- package/dist/vue-ui-heatmap-DvItO4xs.cjs +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-
|
|
2
|
-
</b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?u+=`<span>(${n.dataLabel({v:o.value/f.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:u+=`<b>${n.dataLabel({v:o.value/f.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`),_.value=u}x.value=!0}const y=e.computed(()=>{const l=c.value.map(o=>({name:o.name,color:o.color})),a=c.value.map(o=>o.value);return{head:l,body:a}}),S=e.computed(()=>{const l=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:f.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],a=y.value.head.map((u,v)=>[{color:u.color,name:u.name},n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:y.value.body[v],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),isNaN(y.value.body[v]/f.value)?"-":(y.value.body[v]/f.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]),o={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},r=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:l,body:a,config:o,colNames:r}});function ee(){e.nextTick(()=>{const l=y.value.head.map((r,u)=>[[r.name],[y.value.body[u]],[isNaN(y.value.body[u]/f.value)?"-":y.value.body[u]/f.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=n.createCsvContent(a);n.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-rings"})})}const k=e.ref(!1);function be(l){k.value=l,O.value+=1}function te(){h.value.showTable=!h.value.showTable}function le(){h.value.showTooltip=!h.value.showTooltip}const B=e.ref(!1);function E(){B.value=!B.value}return se({getData:me,generatePdf:Y,generateCsv:ee,generateImage:J,toggleTable:te,toggleTooltip:le,toggleAnnotator:E}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"ringsChart",ref:C,class:e.normalizeClass(`vue-ui-rings ${k.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};text-align:center;width:100%;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),id:`rings_${g.value}`,onMouseleave:a[3]||(a[3]=o=>{m.value=null,x.value=!1,e.unref(U)(!1)}),onMouseenter:a[4]||(a[4]=()=>e.unref(U)(!0))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Be.PenAndPaper,{key:0,svgRef:e.unref(W),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:B.value,onClose:E},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),ve.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:F,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:A,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(Ce._sfc_main,{key:`title_${R.value}`,config:{title:{cy:"rings-div-title",...t.value.style.chart.title},subtitle:{cy:"rings-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&$.value&&(e.unref(D)||e.unref(P))?(e.openBlock(),e.createBlock(ae.UserOptions,{ref_key:"details",ref:de,key:`user_options_${O.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(j),isImaging:e.unref(X),uid:g.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:h.value.showTooltip,isFullscreen:k.value,titles:{...t.value.userOptions.buttonTitles},chartElement:C.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:be,onGeneratePdf:e.unref(Y),onGenerateCsv:ee,onGenerateImage:e.unref(J),onToggleTable:te,onToggleTooltip:le,onToggleAnnotator:E,style:e.normalizeStyle({visibility:e.unref(D)?e.unref(P)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:r})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:r})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:r})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:W,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.value}),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Se._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:s.value.width<=0?10:s.value.width,height:s.value.height<=0?10:s.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Ae)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,r)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${g.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(o.color,.05),100-t.value.style.chart.layout.rings.gradient.intensity)},null,8,ze),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,Fe)],8,Ie))),256))]),l.$slots.pattern?(e.openBlock(),e.createElementBlock("g",Re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,o=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(l.$slots,"pattern",e.mergeProps({ref_for:!0},{seriesIndex:o.absoluteIndex,patternId:`pattern_${g.value}_${o.absoluteIndex}`}),void 0,!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":b.value&&t.value.useCssAnimation,"vue-rings-item-onload":!b.value&&t.value.useCssAnimation,"vue-ui-rings-opacity":m.value!==null&&m.value!==r}),style:e.normalizeStyle(`animation-delay:${r*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.underlayerColor},null,14,qe),e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":b.value&&t.value.useCssAnimation,"vue-rings-item-onload":!b.value&&t.value.useCssAnimation,"vue-ui-rings-shadow":t.value.style.chart.layout.rings.useShadow,"vue-ui-rings-blur":m.value!==null&&m.value!==r}),style:e.normalizeStyle(`animation-delay:${r*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,"stroke-width":o.strokeWidth<.5?.5:o.strokeWidth,cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.show?`url(#gradient_${g.value}_${r})`:o.color},null,14,Me),l.$slots.pattern?(e.openBlock(),e.createElementBlock("circle",{key:0,class:e.normalizeClass({"vue-ui-rings-item":b.value&&t.value.useCssAnimation,"vue-rings-item-onload":!b.value&&t.value.useCssAnimation,"vue-ui-rings-shadow":t.value.style.chart.layout.rings.useShadow,"vue-ui-rings-blur":m.value!==null&&m.value!==r}),style:e.normalizeStyle(`animation-delay:${r*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,"stroke-width":o.strokeWidth<.5?.5:o.strokeWidth,cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:`url(#pattern_${g.value}_${o.absoluteIndex})`},null,14,Ue)):e.createCommentVNode("",!0),e.createElementVNode("circle",{stroke:"none",cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:"transparent",onMouseenter:u=>ye(r,o),onMouseleave:a[0]||(a[0]=u=>{m.value=null,x.value=!1})},null,40,De)]))),256)),e.renderSlot(l.$slots,"svg",{svg:s.value},void 0,!0)],14,Oe)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",We,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(j)||e.unref(X)})),void 0,!0)])):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ne.default,{key:6,config:{type:"rings",style:{backgroundColor:t.value.style.chart.backgroundColor,rings:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:I},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(xe.Legend,{key:`legend_${M.value}`,legendSet:Z.value,config:ge.value,onClickMarker:a[1]||(a[1]=({legend:o})=>V(o.uid))},e.createSlots({item:e.withCtx(({legend:o,index:r})=>[e.createElementVNode("div",{onClick:u=>V(o.uid),style:e.normalizeStyle(`opacity:${d.value.includes(o.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:r}))+" ",1),d.value.includes(o.uid)?(e.openBlock(),e.createElementBlock("span",je," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Ge," ("+e.toDisplayString(isNaN(o.value/f.value)?"-":e.unref(n.dataLabel)({v:o.value/f.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,He)]),_:2},[l.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:o,index:r})=>[e.createVNode(Pe._sfc_main,{shape:o.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${g.value}_${r})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:Z.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:z,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(we._sfc_main,{show:h.value.showTooltip&&x.value&&d.value.length<p.dataset.length,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:C.value,content:_.value,isFullscreen:k.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),$.value?(e.openBlock(),e.createBlock(Te.default,{key:8,hideDetails:"",config:{open:h.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($e.DataTable,{key:`table_${q.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=o=>h.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Xe)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ee))}},Je=Le._export_sfc(Ye,[["__scopeId","data-v-7ed0554f"]]);exports.default=Je;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-DM-Bs-Ua.cjs"),oe=require("./useResponsive-N8jl0-aC.cjs"),Ce=require("./Title-Pgt1Ixvo.cjs"),ae=require("./usePrinter-DbpIk44f.cjs"),we=require("./Tooltip-te_h24w6.cjs"),$e=require("./DataTable-D5572vAU.cjs"),Ne=require("./Legend-CoREnR30.cjs"),Te=require("./vue-ui-skeleton-DlC-U64G.cjs"),xe=require("./vue-ui-accordion-ZIsT4At8.cjs"),re=require("./useNestedProp-CYy5g-mh.cjs"),Se=require("./PackageVersion-JsuXjgR_.cjs"),Be=require("./PenAndPaper-7lGhxIH8.cjs"),_e=require("./useUserOptionState-BgepsfED.cjs"),Pe=require("./Shape-HtDeeGqp.cjs"),Ve=require("./useChartAccessibility-Cm7nkzTG.cjs"),Le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ee=["id"],Oe=["xmlns","viewBox"],Ie=["width","height"],Ae=["id"],ze=["stop-color"],Fe=["stop-color"],Re={key:1},qe=["stroke","cx","cy","r","fill"],Me=["stroke","stroke-width","cx","cy","r","fill"],Ue=["stroke","stroke-width","cx","cy","r","fill"],De=["cx","cy","r","onMouseenter"],We={key:5,class:"vue-data-ui-watermark"},He=["onClick"],Ge={key:0},je={key:1},Xe=["innerHTML"],Ye={__name:"vue-ui-rings",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(ne,{expose:se,emit:ue}){const{vue_ui_rings:ie}=n.useConfig(),ce=e.useSlots(),p=ne,b=e.ref(!1),$=e.computed(()=>!!p.dataset&&p.dataset.length),g=e.ref(n.createUid()),de=e.ref(null),N=e.ref(!1),_=e.ref(""),m=e.ref(null),O=e.ref(0),C=e.ref(null),I=e.ref(null),A=e.ref(null),z=e.ref(null),F=e.ref(null),R=e.ref(0),q=e.ref(0),M=e.ref(0),t=e.computed({get:()=>H(),set:l=>l}),{userOptionsVisible:P,setUserOptionsVisibility:U,keepUserOptionState:D}=_e.useUserOptionState({config:t.value}),{svgRef:W}=Ve.useChartAccessibility({config:t.value.style.chart.title});function H(){const l=re.useNestedProp({userConfig:p.config,defaultConfig:ie});return l.theme?{...re.useNestedProp({userConfig:n.themes.vue_ui_rings[l.theme]||p.config,defaultConfig:l}),customPalette:n.themePalettes[l.theme]||n.palette}:l}e.watch(()=>p.config,l=>{t.value=H(),P.value=!t.value.userOptions.showOnChartHover,G(),R.value+=1,q.value+=1,M.value+=1,h.value.showTable=t.value.table.show,h.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const T=e.ref(null);e.onMounted(()=>{G()});function G(){if(n.objectIsEmpty(p.dataset)?n.error({componentName:"VueUiRings",type:"dataset"}):p.dataset.forEach((l,a)=>{l.values.length||n.error({componentName:"VueUiRings",type:"dataset"}),n.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(o=>{n.error({componentName:"VueUiRings",type:"datasetSerieAttribute",property:o,index:a})})}),t.value.responsive){const l=oe.throttle(()=>{const{width:a,height:o}=oe.useResponsive({chart:C.value,title:t.value.style.chart.title.text?I.value:null,legend:t.value.style.chart.legend.show?A.value:null,source:z.value,noTitle:F.value});requestAnimationFrame(()=>{s.value.width=a,s.value.height=o})});T.value=new ResizeObserver(l),T.value.observe(C.value.parentNode)}setTimeout(()=>{b.value=!0},600)}e.onBeforeUnmount(()=>{T.value&&T.value.disconnect()});const{isPrinting:j,isImaging:X,generatePdf:Y,generateImage:J}=ae.usePrinter({elementId:`rings_${g.value}`,fileName:t.value.style.chart.title.text||"vue-ui-rings"}),ve=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),K=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),h=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),s=e.ref({height:360,width:360}),pe=e.computed(()=>Math.min(s.value.height,s.value.width)),he=ue,d=e.ref([]);function V(l){d.value.includes(l)?d.value=d.value.filter(a=>a!==l):d.value.push(l),he("selectLegend",c.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const fe=e.computed(()=>Math.max(...x.value.filter(l=>!d.value.includes(l.uid)).map(({value:l})=>l)));function Q(l){return l/fe.value}const x=e.computed(()=>p.dataset.map(({values:l,name:a,color:o=null},r)=>{const u=n.sanitizeArray(l).reduce((v,w)=>v+w,0);return{name:a,color:o||n.convertColorToHex(o)||K.value[r]||n.palette[r]||n.palette[r%n.palette.length],value:u,proportion:u/p.dataset.map(v=>(v.values||[]).reduce((w,ke)=>w+ke,0)).reduce((v,w)=>v+w,0),uid:n.createUid(),absoluteIndex:r}})),Z=e.computed(()=>x.value.map(l=>({...l,shape:"circle",opacity:d.value.includes(l.uid)?.5:1,segregate:()=>V(l.uid),isSegregated:d.value.includes(l.uid)})).toSorted((l,a)=>a.value-l.value)),ge=e.computed(()=>({cy:"rings-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":""})),f=e.computed(()=>x.value.filter(l=>!d.value.includes(l.uid)).map(({value:l})=>l).reduce((l,a)=>l+a,0)),c=e.computed(()=>x.value.filter(l=>!d.value.includes(l.uid)).map(({name:l,value:a,color:o=null,uid:r,absoluteIndex:u},v)=>({absoluteIndex:u,uid:r,name:l,color:o||n.convertColorToHex(o)||K.value[v]||n.palette[v]||n.palette[v%n.palette.length],value:a,proportion:Q(a),percentage:a/f.value*100,strokeWidth:t.value.style.chart.layout.rings.strokeWidth*Q(a)})).toSorted((l,a)=>a.value-l.value));function me(){return c.value.map(({name:l,color:a,value:o,absoluteValues:r,percentage:u})=>({name:l,color:a,value:o,absoluteValues:r,percentage:u}))}const i=e.computed(()=>pe.value-t.value.style.chart.layout.rings.strokeWidth*2),L=e.ref(null);function ye(l,a){if(d.value.length===p.dataset.length)return;L.value={datapoint:a,seriesIndex:l,series:c.value,config:t.value},m.value=l;const o=c.value[l],r=t.value.style.chart.tooltip.customFormat;if(n.isFunction(r)&&n.functionReturnsString(()=>r({seriesIndex:l,datapoint:a,series:c.value,config:t.value})))_.value=r({seriesIndex:l,datapoint:a,series:c.value,config:t.value});else{let u="";u+=`<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>`,u+=`<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}" />${ce.pattern?`<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${g.value}_${a.absoluteIndex})" />`:""}</svg>`,t.value.style.chart.tooltip.showValue&&(u+=`<b>${n.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,seriesIndex:l})}
|
|
2
|
+
</b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?u+=`<span>(${n.dataLabel({v:o.value/f.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:u+=`<b>${n.dataLabel({v:o.value/f.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`),_.value=u}N.value=!0}const y=e.computed(()=>{const l=c.value.map(o=>({name:o.name,color:o.color})),a=c.value.map(o=>o.value);return{head:l,body:a}}),S=e.computed(()=>{const l=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:f.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],a=y.value.head.map((u,v)=>[{color:u.color,name:u.name},n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:y.value.body[v],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),isNaN(y.value.body[v]/f.value)?"-":(y.value.body[v]/f.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]),o={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},r=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:l,body:a,config:o,colNames:r}});function ee(){e.nextTick(()=>{const l=y.value.head.map((r,u)=>[[r.name],[y.value.body[u]],[isNaN(y.value.body[u]/f.value)?"-":y.value.body[u]/f.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=n.createCsvContent(a);n.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-rings"})})}const k=e.ref(!1);function be(l){k.value=l,O.value+=1}function te(){h.value.showTable=!h.value.showTable}function le(){h.value.showTooltip=!h.value.showTooltip}const B=e.ref(!1);function E(){B.value=!B.value}return se({getData:me,generatePdf:Y,generateCsv:ee,generateImage:J,toggleTable:te,toggleTooltip:le,toggleAnnotator:E}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"ringsChart",ref:C,class:e.normalizeClass(`vue-ui-rings ${k.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};text-align:center;width:100%;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),id:`rings_${g.value}`,onMouseleave:a[3]||(a[3]=o=>{m.value=null,N.value=!1,e.unref(U)(!1)}),onMouseenter:a[4]||(a[4]=()=>e.unref(U)(!0))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Be.PenAndPaper,{key:0,svgRef:e.unref(W),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:B.value,onClose:E},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),ve.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:F,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:I,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(Ce._sfc_main,{key:`title_${R.value}`,config:{title:{cy:"rings-div-title",...t.value.style.chart.title},subtitle:{cy:"rings-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&$.value&&(e.unref(D)||e.unref(P))?(e.openBlock(),e.createBlock(ae.UserOptions,{ref_key:"details",ref:de,key:`user_options_${O.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(j),isImaging:e.unref(X),uid:g.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:h.value.showTooltip,isFullscreen:k.value,titles:{...t.value.userOptions.buttonTitles},chartElement:C.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:be,onGeneratePdf:e.unref(Y),onGenerateCsv:ee,onGenerateImage:e.unref(J),onToggleTable:te,onToggleTooltip:le,onToggleAnnotator:E,style:e.normalizeStyle({visibility:e.unref(D)?e.unref(P)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:o,color:r})=>[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:o,color:r})),void 0,!0)]),key:"0"}:void 0,l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:r})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:r})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:r})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:W,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.value}),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Se._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:s.value.width<=0?10:s.value.width,height:s.value.height<=0?10:s.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Ie)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,r)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${g.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(o.color,.05),100-t.value.style.chart.layout.rings.gradient.intensity)},null,8,ze),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,Fe)],8,Ae))),256))]),l.$slots.pattern?(e.openBlock(),e.createElementBlock("g",Re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,o=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(l.$slots,"pattern",e.mergeProps({ref_for:!0},{seriesIndex:o.absoluteIndex,patternId:`pattern_${g.value}_${o.absoluteIndex}`}),void 0,!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":b.value&&t.value.useCssAnimation,"vue-rings-item-onload":!b.value&&t.value.useCssAnimation,"vue-ui-rings-opacity":m.value!==null&&m.value!==r}),style:e.normalizeStyle(`animation-delay:${r*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.underlayerColor},null,14,qe),e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":b.value&&t.value.useCssAnimation,"vue-rings-item-onload":!b.value&&t.value.useCssAnimation,"vue-ui-rings-shadow":t.value.style.chart.layout.rings.useShadow,"vue-ui-rings-blur":m.value!==null&&m.value!==r}),style:e.normalizeStyle(`animation-delay:${r*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,"stroke-width":o.strokeWidth<.5?.5:o.strokeWidth,cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.show?`url(#gradient_${g.value}_${r})`:o.color},null,14,Me),l.$slots.pattern?(e.openBlock(),e.createElementBlock("circle",{key:0,class:e.normalizeClass({"vue-ui-rings-item":b.value&&t.value.useCssAnimation,"vue-rings-item-onload":!b.value&&t.value.useCssAnimation,"vue-ui-rings-shadow":t.value.style.chart.layout.rings.useShadow,"vue-ui-rings-blur":m.value!==null&&m.value!==r}),style:e.normalizeStyle(`animation-delay:${r*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,"stroke-width":o.strokeWidth<.5?.5:o.strokeWidth,cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:`url(#pattern_${g.value}_${o.absoluteIndex})`},null,14,Ue)):e.createCommentVNode("",!0),e.createElementVNode("circle",{stroke:"none",cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:"transparent",onMouseenter:u=>ye(r,o),onMouseleave:a[0]||(a[0]=u=>{m.value=null,N.value=!1})},null,40,De)]))),256)),e.renderSlot(l.$slots,"svg",{svg:s.value},void 0,!0)],14,Oe)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",We,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(j)||e.unref(X)})),void 0,!0)])):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Te.default,{key:6,config:{type:"rings",style:{backgroundColor:t.value.style.chart.backgroundColor,rings:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:A},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Ne.Legend,{key:`legend_${M.value}`,legendSet:Z.value,config:ge.value,onClickMarker:a[1]||(a[1]=({legend:o})=>V(o.uid))},e.createSlots({item:e.withCtx(({legend:o,index:r})=>[e.createElementVNode("div",{onClick:u=>V(o.uid),style:e.normalizeStyle(`opacity:${d.value.includes(o.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:r}))+" ",1),d.value.includes(o.uid)?(e.openBlock(),e.createElementBlock("span",je," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Ge," ("+e.toDisplayString(isNaN(o.value/f.value)?"-":e.unref(n.dataLabel)({v:o.value/f.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,He)]),_:2},[l.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:o,index:r})=>[e.createVNode(Pe._sfc_main,{shape:o.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${g.value}_${r})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:Z.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:z,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(we._sfc_main,{show:h.value.showTooltip&&N.value&&d.value.length<p.dataset.length,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:C.value,content:_.value,isFullscreen:k.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),$.value?(e.openBlock(),e.createBlock(xe.default,{key:8,hideDetails:"",config:{open:h.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($e.DataTable,{key:`table_${q.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=o=>h.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Xe)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ee))}},Je=Le._export_sfc(Ye,[["__scopeId","data-v-380bda50"]]);exports.default=Je;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { computed as x, ref as h, watch as at, onMounted as ot, onBeforeUnmount as st, createElementBlock as r, openBlock as o, unref as n, normalizeStyle as Y, normalizeClass as Re, createBlock as V, createCommentVNode as c, createElementVNode as d, createVNode as pe, createSlots as ut, withCtx as _, renderSlot as
|
|
2
|
-
import { u as nt, c as vt, t as yt, p as q, a as ct, o as dt, e as fe, b as ht, g as Ee, U as pt, Z as ft, S as gt, X as mt, s as ge, V as xt, i as j, v as A, f as W, q as bt, r as kt, x as wt, y as _t } from "./index-
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as Ct } from "./Title-
|
|
5
|
-
import { u as At, U as zt } from "./usePrinter-
|
|
6
|
-
import { _ as St } from "./Tooltip-
|
|
7
|
-
import { L as Tt } from "./Legend-
|
|
8
|
-
import { _ as Ue } from "./Shape-
|
|
9
|
-
import { D as Lt } from "./DataTable-
|
|
10
|
-
import Bt from "./vue-ui-skeleton-
|
|
11
|
-
import Ot from "./vue-ui-accordion-
|
|
12
|
-
import { u as Ge } from "./useNestedProp-
|
|
13
|
-
import { _ as Nt } from "./PackageVersion-
|
|
14
|
-
import { P as Pt } from "./PenAndPaper-
|
|
1
|
+
import { computed as x, ref as h, watch as at, onMounted as ot, onBeforeUnmount as st, createElementBlock as r, openBlock as o, unref as n, normalizeStyle as Y, normalizeClass as Re, createBlock as V, createCommentVNode as c, createElementVNode as d, createVNode as pe, createSlots as ut, withCtx as _, renderSlot as $, normalizeProps as J, guardReactiveProps as K, Fragment as P, renderList as X, toDisplayString as C, createTextVNode as rt, nextTick as it } from "vue";
|
|
2
|
+
import { u as nt, c as vt, t as yt, p as q, a as ct, o as dt, e as fe, b as ht, g as Ee, U as pt, Z as ft, S as gt, X as mt, s as ge, V as xt, i as j, v as A, f as W, q as bt, r as kt, x as wt, y as _t } from "./index-DUnEDLbc.js";
|
|
3
|
+
import { t as $t, u as Mt } from "./useResponsive-vZgZwV-S.js";
|
|
4
|
+
import { _ as Ct } from "./Title-1PWD04Gh.js";
|
|
5
|
+
import { u as At, U as zt } from "./usePrinter-Undaynpo.js";
|
|
6
|
+
import { _ as St } from "./Tooltip-BTO5NGkn.js";
|
|
7
|
+
import { L as Tt } from "./Legend-PL8rU0J1.js";
|
|
8
|
+
import { _ as Ue } from "./Shape-Ov27sl2L.js";
|
|
9
|
+
import { D as Lt } from "./DataTable-DfMqgTjL.js";
|
|
10
|
+
import Bt from "./vue-ui-skeleton-DieABKlo.js";
|
|
11
|
+
import Ot from "./vue-ui-accordion-C8Couc_G.js";
|
|
12
|
+
import { u as Ge } from "./useNestedProp-CEMeoM-f.js";
|
|
13
|
+
import { _ as Nt } from "./PackageVersion-1Y7SXTrk.js";
|
|
14
|
+
import { P as Pt } from "./PenAndPaper-BYhUvcy4.js";
|
|
15
15
|
import { u as Wt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
16
16
|
import { u as Ft } from "./useChartAccessibility-BWojgys7.js";
|
|
17
|
-
import { _ as
|
|
18
|
-
const
|
|
17
|
+
import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { key: 1 }, jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Rt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Et = { key: 2 }, Ut = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Gt = { key: 0 }, qt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover"], Ht = { key: 1 }, Zt = { key: 3 }, Jt = ["id"], Kt = ["stop-color"], Qt = ["stop-color"], el = ["id"], tl = ["stop-color"], ll = ["stop-color"], al = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], ol = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], sl = { key: 0 }, ul = ["d", "stroke", "stroke-width"], rl = ["d", "stroke", "stroke-width"], il = ["d", "stroke", "stroke-width"], nl = ["d", "stroke", "stroke-width"], vl = {
|
|
19
19
|
key: 4,
|
|
20
20
|
style: { "pointer-events": "none !important" }
|
|
21
|
-
}, yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], dl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], hl = ["x", "y", "font-size", "fill", "font-weight"], pl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], fl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], gl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], ml = { key: 5 }, xl = ["x", "y", "font-size", "fill"], bl = ["x", "y", "font-size", "fill"], kl = ["id", "transform", "font-size", "font-weight", "fill"], wl = { key: 6 }, _l = ["x", "y", "font-size", "fill"],
|
|
21
|
+
}, yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], dl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], hl = ["x", "y", "font-size", "fill", "font-weight"], pl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], fl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], gl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], ml = { key: 5 }, xl = ["x", "y", "font-size", "fill"], bl = ["x", "y", "font-size", "fill"], kl = ["id", "transform", "font-size", "font-weight", "fill"], wl = { key: 6 }, _l = ["x", "y", "font-size", "fill"], $l = ["x", "y", "font-size", "fill"], Ml = ["font-size", "font-weight", "fill", "x", "y"], Cl = ["id"], Al = ["x", "y", "width", "height"], zl = { key: 7 }, Sl = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], Tl = ["x", "y", "fill", "font-size", "font-weight"], Ll = {
|
|
22
22
|
key: 5,
|
|
23
23
|
class: "vue-data-ui-watermark"
|
|
24
24
|
}, Bl = ["onClick"], Ol = {
|
|
@@ -46,7 +46,7 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
setup(qe, { expose: He }) {
|
|
49
|
-
const { vue_ui_scatter: Ze } = nt(), F = qe, ee = x(() => !!F.dataset && F.dataset.length), z = h(vt()), Je = h(null), ue = h(!1), re = h(""), me = h(0),
|
|
49
|
+
const { vue_ui_scatter: Ze } = nt(), F = qe, ee = x(() => !!F.dataset && F.dataset.length), z = h(vt()), Je = h(null), ue = h(!1), re = h(""), me = h(0), Q = h(null), xe = h(null), be = h(null), ke = h(null), we = h(null), _e = h(0), $e = h(0), Me = h(0), e = x({
|
|
50
50
|
get: () => Se(),
|
|
51
51
|
set: (t) => t
|
|
52
52
|
}), { userOptionsVisible: ie, setUserOptionsVisibility: Ce, keepUserOptionState: Ae } = Wt({ config: e.value }), { svgRef: ze } = Ft({ config: e.value.style.title });
|
|
@@ -64,7 +64,7 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
64
64
|
} : t;
|
|
65
65
|
}
|
|
66
66
|
at(() => F.config, (t) => {
|
|
67
|
-
e.value = Se(), ie.value = !e.value.userOptions.showOnChartHover, Te(), _e.value += 1,
|
|
67
|
+
e.value = Se(), ie.value = !e.value.userOptions.showOnChartHover, Te(), _e.value += 1, $e.value += 1, Me.value += 1, B.value.showTable = e.value.table.show, B.value.showTooltip = e.value.style.tooltip.show;
|
|
68
68
|
}, { deep: !0 });
|
|
69
69
|
const te = h(null);
|
|
70
70
|
ot(() => {
|
|
@@ -75,9 +75,9 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
75
75
|
componentName: "VueUiScatter",
|
|
76
76
|
type: "dataset"
|
|
77
77
|
}), e.value.responsive) {
|
|
78
|
-
const t =
|
|
79
|
-
const { width: u, height: l } =
|
|
80
|
-
chart:
|
|
78
|
+
const t = $t(() => {
|
|
79
|
+
const { width: u, height: l } = Mt({
|
|
80
|
+
chart: Q.value,
|
|
81
81
|
title: e.value.style.title.text ? xe.value : null,
|
|
82
82
|
legend: e.value.style.legend.show ? be.value : null,
|
|
83
83
|
source: ke.value,
|
|
@@ -87,7 +87,7 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
87
87
|
b.value.width = u, b.value.height = l;
|
|
88
88
|
});
|
|
89
89
|
});
|
|
90
|
-
te.value = new ResizeObserver(t), te.value.observe(
|
|
90
|
+
te.value = new ResizeObserver(t), te.value.observe(Q.value.parentNode);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
st(() => {
|
|
@@ -187,16 +187,16 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
187
187
|
y1: E * i.value.left + Z,
|
|
188
188
|
y2: E * i.value.right + Z,
|
|
189
189
|
coefficient: k
|
|
190
|
-
},
|
|
191
|
-
x:
|
|
192
|
-
y:
|
|
190
|
+
}, M = (N.y2 - N.y1) / (N.x2 - N.x1), L = N.y1 - M * N.x1, I = Math.min(b.value.width - e.value.style.layout.padding.right, Math.max(e.value.style.layout.padding.left, (i.value.top - L) / M)), se = {
|
|
191
|
+
x: I,
|
|
192
|
+
y: M * I + L <= e.value.style.layout.padding.top ? i.value.top : M * I + L
|
|
193
193
|
};
|
|
194
194
|
return {
|
|
195
195
|
...t,
|
|
196
196
|
correlation: N,
|
|
197
197
|
label: se,
|
|
198
198
|
plots: t.plots.map((g) => {
|
|
199
|
-
const U = (g.x +
|
|
199
|
+
const U = (g.x + M * g.y - M * L) / (1 + Math.pow(M, 2)), ce = (M * g.x + Math.pow(M, 2) * g.y + L) / (1 + Math.pow(M, 2)), w = Math.sqrt(Math.pow(g.x - U, 2) + Math.pow(g.y - ce, 2));
|
|
200
200
|
return {
|
|
201
201
|
...g,
|
|
202
202
|
deviation: w,
|
|
@@ -221,16 +221,16 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
221
221
|
l.forEach(({ x: w, y: G }) => {
|
|
222
222
|
s = Math.min(s, w), a = Math.max(a, w), v = Math.min(v, G), k = Math.max(k, G);
|
|
223
223
|
});
|
|
224
|
-
const E = a - s, Z = k - v, N = E / u,
|
|
224
|
+
const E = a - s, Z = k - v, N = E / u, M = Z / u, L = Array(u).fill(0), I = Array(u).fill(0);
|
|
225
225
|
l.forEach(({ x: w, y: G }) => {
|
|
226
|
-
const de = Math.floor((w - s) / N), he = Math.floor((G - v) /
|
|
227
|
-
L[de] || (L[de] = 0),
|
|
226
|
+
const de = Math.floor((w - s) / N), he = Math.floor((G - v) / M);
|
|
227
|
+
L[de] || (L[de] = 0), I[he] || (I[he] = 0), L[de] += 1, I[he] += 1;
|
|
228
228
|
});
|
|
229
229
|
const se = [], g = [];
|
|
230
230
|
for (let w = 0; w < u; w += 1)
|
|
231
|
-
se.push(s + (w + 0.5) * N), g.push(v + (w + 0.5) *
|
|
232
|
-
const U = Math.max(...L), ce = Math.max(...
|
|
233
|
-
return { x: L, y:
|
|
231
|
+
se.push(s + (w + 0.5) * N), g.push(v + (w + 0.5) * M);
|
|
232
|
+
const U = Math.max(...L), ce = Math.max(...I);
|
|
233
|
+
return { x: L, y: I, avgX: se, avgY: g, maxX: U, maxY: ce };
|
|
234
234
|
}
|
|
235
235
|
const D = x(() => e.value.style.layout.marginalBars.tranches), T = x(() => Fe(ne.value, D.value)), tt = x(() => {
|
|
236
236
|
const t = i.value.top - e.value.style.layout.marginalBars.offset, u = i.value.right + e.value.style.layout.marginalBars.offset;
|
|
@@ -251,7 +251,7 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
251
251
|
};
|
|
252
252
|
});
|
|
253
253
|
}), O = h(void 0), y = h(null), ve = h(null);
|
|
254
|
-
function
|
|
254
|
+
function Ie(t, u) {
|
|
255
255
|
O.value = t.id, y.value = t;
|
|
256
256
|
let l = "";
|
|
257
257
|
ve.value = {
|
|
@@ -296,7 +296,7 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
296
296
|
r: e.value.style.layout.plots.deviation.roundingValue
|
|
297
297
|
})}</b>`, l += "</div>", re.value = `<div>${l}</div>`), ue.value = !0;
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function Xe() {
|
|
300
300
|
ue.value = !1, O.value = void 0, y.value = null;
|
|
301
301
|
}
|
|
302
302
|
const m = h([]);
|
|
@@ -371,7 +371,7 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
371
371
|
}), (t, u) => (o(), r("div", {
|
|
372
372
|
class: Re(`vue-ui-scatter ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
373
373
|
ref_key: "scatterChart",
|
|
374
|
-
ref:
|
|
374
|
+
ref: Q,
|
|
375
375
|
id: `vue-ui-scatter_${z.value}`,
|
|
376
376
|
style: Y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
377
377
|
onMouseenter: u[2] || (u[2] = () => n(Ce)(!0)),
|
|
@@ -430,7 +430,7 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
430
430
|
isTooltip: B.value.showTooltip,
|
|
431
431
|
isFullscreen: H.value,
|
|
432
432
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
433
|
-
chartElement:
|
|
433
|
+
chartElement: Q.value,
|
|
434
434
|
position: e.value.userOptions.position,
|
|
435
435
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
436
436
|
isAnnotation: oe.value,
|
|
@@ -445,54 +445,61 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
445
445
|
visibility: n(Ae) ? n(ie) ? "visible" : "hidden" : "visible"
|
|
446
446
|
})
|
|
447
447
|
}, ut({ _: 2 }, [
|
|
448
|
+
t.$slots.menuIcon ? {
|
|
449
|
+
name: "menuIcon",
|
|
450
|
+
fn: _(({ isOpen: l, color: s }) => [
|
|
451
|
+
$(t.$slots, "menuIcon", J(K({ isOpen: l, color: s })), void 0, !0)
|
|
452
|
+
]),
|
|
453
|
+
key: "0"
|
|
454
|
+
} : void 0,
|
|
448
455
|
t.$slots.optionTooltip ? {
|
|
449
456
|
name: "optionTooltip",
|
|
450
457
|
fn: _(() => [
|
|
451
|
-
|
|
458
|
+
$(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
452
459
|
]),
|
|
453
|
-
key: "
|
|
460
|
+
key: "1"
|
|
454
461
|
} : void 0,
|
|
455
462
|
t.$slots.optionPdf ? {
|
|
456
463
|
name: "optionPdf",
|
|
457
464
|
fn: _(() => [
|
|
458
|
-
|
|
465
|
+
$(t.$slots, "optionPdf", {}, void 0, !0)
|
|
459
466
|
]),
|
|
460
|
-
key: "
|
|
467
|
+
key: "2"
|
|
461
468
|
} : void 0,
|
|
462
469
|
t.$slots.optionCsv ? {
|
|
463
470
|
name: "optionCsv",
|
|
464
471
|
fn: _(() => [
|
|
465
|
-
|
|
472
|
+
$(t.$slots, "optionCsv", {}, void 0, !0)
|
|
466
473
|
]),
|
|
467
|
-
key: "
|
|
474
|
+
key: "3"
|
|
468
475
|
} : void 0,
|
|
469
476
|
t.$slots.optionImg ? {
|
|
470
477
|
name: "optionImg",
|
|
471
478
|
fn: _(() => [
|
|
472
|
-
|
|
479
|
+
$(t.$slots, "optionImg", {}, void 0, !0)
|
|
473
480
|
]),
|
|
474
|
-
key: "
|
|
481
|
+
key: "4"
|
|
475
482
|
} : void 0,
|
|
476
483
|
t.$slots.optionTable ? {
|
|
477
484
|
name: "optionTable",
|
|
478
485
|
fn: _(() => [
|
|
479
|
-
|
|
486
|
+
$(t.$slots, "optionTable", {}, void 0, !0)
|
|
480
487
|
]),
|
|
481
|
-
key: "
|
|
488
|
+
key: "5"
|
|
482
489
|
} : void 0,
|
|
483
490
|
t.$slots.optionFullscreen ? {
|
|
484
491
|
name: "optionFullscreen",
|
|
485
492
|
fn: _(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
486
|
-
|
|
493
|
+
$(t.$slots, "optionFullscreen", J(K({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
487
494
|
]),
|
|
488
|
-
key: "
|
|
495
|
+
key: "6"
|
|
489
496
|
} : void 0,
|
|
490
497
|
t.$slots.optionAnnotator ? {
|
|
491
498
|
name: "optionAnnotator",
|
|
492
499
|
fn: _(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
493
|
-
|
|
500
|
+
$(t.$slots, "optionAnnotator", J(K({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
494
501
|
]),
|
|
495
|
-
key: "
|
|
502
|
+
key: "7"
|
|
496
503
|
} : void 0
|
|
497
504
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
498
505
|
ee.value ? (o(), r("svg", {
|
|
@@ -515,7 +522,7 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
515
522
|
pointerEvents: "none"
|
|
516
523
|
}
|
|
517
524
|
}, [
|
|
518
|
-
|
|
525
|
+
$(t.$slots, "chart-background", {}, void 0, !0)
|
|
519
526
|
], 8, Yt)) : c("", !0),
|
|
520
527
|
e.value.style.layout.axis.show ? (o(), r("g", Vt, [
|
|
521
528
|
d("line", {
|
|
@@ -538,7 +545,7 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
538
545
|
}, null, 8, Rt)
|
|
539
546
|
])) : c("", !0),
|
|
540
547
|
e.value.style.layout.plots.giftWrap.show ? (o(), r("g", Et, [
|
|
541
|
-
(o(!0), r(P, null,
|
|
548
|
+
(o(!0), r(P, null, X(S.value, (l, s) => (o(), r("g", null, [
|
|
542
549
|
l.plots.length > 2 ? (o(), r("polygon", {
|
|
543
550
|
key: 0,
|
|
544
551
|
points: n(xt)({ series: l.plots }),
|
|
@@ -551,29 +558,29 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
551
558
|
}, null, 8, Ut)) : c("", !0)
|
|
552
559
|
]))), 256))
|
|
553
560
|
])) : c("", !0),
|
|
554
|
-
(o(!0), r(P, null,
|
|
561
|
+
(o(!0), r(P, null, X(S.value, (l, s) => (o(), r("g", null, [
|
|
555
562
|
!l.shape || l.shape === "circle" ? (o(), r("g", Gt, [
|
|
556
|
-
(o(!0), r(P, null,
|
|
563
|
+
(o(!0), r(P, null, X(l.plots, (a, v) => (o(), r("circle", {
|
|
557
564
|
cx: a.x,
|
|
558
565
|
cy: a.y,
|
|
559
566
|
r: O.value && O.value === a.id ? a.weight * 2 : a.weight,
|
|
560
567
|
fill: n(ge)(l.color, e.value.style.layout.plots.opacity * 100),
|
|
561
568
|
stroke: e.value.style.layout.plots.stroke,
|
|
562
569
|
"stroke-width": e.value.style.layout.plots.strokeWidth,
|
|
563
|
-
onMouseover: (k) =>
|
|
564
|
-
onMouseleave:
|
|
570
|
+
onMouseover: (k) => Ie(a, s),
|
|
571
|
+
onMouseleave: Xe,
|
|
565
572
|
style: Y(`opacity:${O.value && O.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / We.value : e.value.style.layout.plots.significance.show && Math.abs(a.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`)
|
|
566
573
|
}, null, 44, qt))), 256))
|
|
567
574
|
])) : (o(), r("g", Ht, [
|
|
568
|
-
(o(!0), r(P, null,
|
|
575
|
+
(o(!0), r(P, null, X(l.plots, (a, v) => (o(), V(Ue, {
|
|
569
576
|
plot: { x: a.x, y: a.y },
|
|
570
577
|
radius: O.value && O.value === a.id ? a.weight * 2 : a.weight,
|
|
571
578
|
shape: l.shape,
|
|
572
579
|
color: n(ge)(l.color, e.value.style.layout.plots.opacity * 100),
|
|
573
580
|
stroke: e.value.style.layout.plots.stroke,
|
|
574
581
|
strokeWidth: e.value.style.layout.plots.strokeWidth,
|
|
575
|
-
onMouseover: (k) =>
|
|
576
|
-
onMouseleave:
|
|
582
|
+
onMouseover: (k) => Ie(a, s),
|
|
583
|
+
onMouseleave: Xe,
|
|
577
584
|
style: Y(`opacity:${O.value && O.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / We.value : e.value.style.layout.plots.significance.show && Math.abs(a.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`)
|
|
578
585
|
}, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "onMouseover", "style"]))), 256))
|
|
579
586
|
]))
|
|
@@ -613,7 +620,7 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
613
620
|
}, null, 8, ll)
|
|
614
621
|
], 8, el)
|
|
615
622
|
]),
|
|
616
|
-
(o(!0), r(P, null,
|
|
623
|
+
(o(!0), r(P, null, X(T.value.x, (l, s) => (o(), r("g", null, [
|
|
617
624
|
l && T.value.avgX[s] ? (o(), r("rect", {
|
|
618
625
|
key: 0,
|
|
619
626
|
x: T.value.avgX[s] - i.value.width / D.value / 2,
|
|
@@ -627,7 +634,7 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
627
634
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
628
635
|
}, null, 12, al)) : c("", !0)
|
|
629
636
|
]))), 256)),
|
|
630
|
-
(o(!0), r(P, null,
|
|
637
|
+
(o(!0), r(P, null, X(T.value.y, (l, s) => (o(), r("g", null, [
|
|
631
638
|
l && T.value.avgY[s] ? (o(), r("rect", {
|
|
632
639
|
key: 0,
|
|
633
640
|
x: i.value.right + e.value.style.layout.marginalBars.offset,
|
|
@@ -642,7 +649,7 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
642
649
|
}, null, 12, ol)) : c("", !0)
|
|
643
650
|
]))), 256)),
|
|
644
651
|
e.value.style.layout.marginalBars.showLines ? (o(), r("g", sl, [
|
|
645
|
-
(o(!0), r(P, null,
|
|
652
|
+
(o(!0), r(P, null, X(tt.value, (l) => (o(), r(P, null, [
|
|
646
653
|
m.value.includes(l.id) ? c("", !0) : (o(), r("path", {
|
|
647
654
|
key: 0,
|
|
648
655
|
d: `M ${l.dX}`,
|
|
@@ -843,7 +850,7 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
843
850
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
844
851
|
r: e.value.style.layout.dataLabels.yAxis.rounding
|
|
845
852
|
})
|
|
846
|
-
)), 9,
|
|
853
|
+
)), 9, $l),
|
|
847
854
|
d("text", {
|
|
848
855
|
"text-anchor": "middle",
|
|
849
856
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
@@ -851,7 +858,7 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
851
858
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
852
859
|
x: i.value.left + i.value.width / 2,
|
|
853
860
|
y: i.value.bottom + 8 + e.value.style.layout.dataLabels.yAxis.fontSize * 2
|
|
854
|
-
}, C(e.value.style.layout.dataLabels.yAxis.name), 9,
|
|
861
|
+
}, C(e.value.style.layout.dataLabels.yAxis.name), 9, Ml)
|
|
855
862
|
])) : c("", !0),
|
|
856
863
|
d("clipPath", {
|
|
857
864
|
id: `clip_path_${z.value}`
|
|
@@ -864,7 +871,7 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
864
871
|
}, null, 8, Al)
|
|
865
872
|
], 8, Cl),
|
|
866
873
|
e.value.style.layout.correlation.show ? (o(), r("g", zl, [
|
|
867
|
-
(o(!0), r(P, null,
|
|
874
|
+
(o(!0), r(P, null, X(S.value, (l, s) => (o(), r("line", {
|
|
868
875
|
x1: l.correlation.x1,
|
|
869
876
|
x2: l.correlation.x2,
|
|
870
877
|
y1: l.correlation.y1,
|
|
@@ -874,7 +881,7 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
874
881
|
"stroke-width": e.value.style.layout.correlation.strokeWidth,
|
|
875
882
|
"clip-path": `url(#clip_path_${z.value})`
|
|
876
883
|
}, null, 8, Sl))), 256)),
|
|
877
|
-
(o(!0), r(P, null,
|
|
884
|
+
(o(!0), r(P, null, X(S.value, (l, s) => (o(), r("g", null, [
|
|
878
885
|
e.value.style.layout.correlation.label.show ? (o(), r("text", {
|
|
879
886
|
key: 0,
|
|
880
887
|
x: l.label.x,
|
|
@@ -888,10 +895,10 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
888
895
|
})), 9, Tl)) : c("", !0)
|
|
889
896
|
]))), 256))
|
|
890
897
|
])) : c("", !0),
|
|
891
|
-
|
|
898
|
+
$(t.$slots, "svg", { svg: b.value }, void 0, !0)
|
|
892
899
|
], 14, Dt)) : c("", !0),
|
|
893
900
|
t.$slots.watermark ? (o(), r("div", Ll, [
|
|
894
|
-
|
|
901
|
+
$(t.$slots, "watermark", J(K({ isPrinting: n(Le) || n(Be) })), void 0, !0)
|
|
895
902
|
])) : c("", !0),
|
|
896
903
|
ee.value ? c("", !0) : (o(), V(Bt, {
|
|
897
904
|
key: 6,
|
|
@@ -916,7 +923,7 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
916
923
|
ref: be
|
|
917
924
|
}, [
|
|
918
925
|
e.value.style.legend.show ? (o(), V(Tt, {
|
|
919
|
-
key: `legend_${
|
|
926
|
+
key: `legend_${Me.value}`,
|
|
920
927
|
legendSet: R.value,
|
|
921
928
|
config: Qe.value,
|
|
922
929
|
onClickMarker: u[0] || (u[0] = ({ legend: l }) => De(l.id))
|
|
@@ -928,7 +935,7 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
928
935
|
}, C(l.name), 13, Bl)
|
|
929
936
|
]),
|
|
930
937
|
_: 1
|
|
931
|
-
}, 8, ["legendSet", "config"])) :
|
|
938
|
+
}, 8, ["legendSet", "config"])) : $(t.$slots, "legend", {
|
|
932
939
|
key: 1,
|
|
933
940
|
legend: R.value
|
|
934
941
|
}, void 0, !0)
|
|
@@ -939,7 +946,7 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
939
946
|
ref: ke,
|
|
940
947
|
dir: "auto"
|
|
941
948
|
}, [
|
|
942
|
-
|
|
949
|
+
$(t.$slots, "source", {}, void 0, !0)
|
|
943
950
|
], 512)) : c("", !0),
|
|
944
951
|
pe(St, {
|
|
945
952
|
show: B.value.showTooltip && ue.value,
|
|
@@ -952,16 +959,16 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
952
959
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
953
960
|
position: e.value.style.tooltip.position,
|
|
954
961
|
offsetY: e.value.style.tooltip.offsetY,
|
|
955
|
-
parent:
|
|
962
|
+
parent: Q.value,
|
|
956
963
|
content: re.value,
|
|
957
964
|
isFullscreen: H.value,
|
|
958
965
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
959
966
|
}, {
|
|
960
967
|
"tooltip-before": _(() => [
|
|
961
|
-
|
|
968
|
+
$(t.$slots, "tooltip-before", J(K({ ...ve.value })), void 0, !0)
|
|
962
969
|
]),
|
|
963
970
|
"tooltip-after": _(() => [
|
|
964
|
-
|
|
971
|
+
$(t.$slots, "tooltip-after", J(K({ ...ve.value })), void 0, !0)
|
|
965
972
|
]),
|
|
966
973
|
default: _(() => [
|
|
967
974
|
e.value.style.tooltip.showShape ? (o(), r("div", Ol, [
|
|
@@ -995,7 +1002,7 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
995
1002
|
}, {
|
|
996
1003
|
content: _(() => [
|
|
997
1004
|
(o(), V(Lt, {
|
|
998
|
-
key: `table_${
|
|
1005
|
+
key: `table_${$e.value}`,
|
|
999
1006
|
colNames: ae.value.colNames,
|
|
1000
1007
|
head: ae.value.head,
|
|
1001
1008
|
body: ae.value.body,
|
|
@@ -1019,9 +1026,9 @@ const It = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
|
|
|
1019
1026
|
]),
|
|
1020
1027
|
_: 1
|
|
1021
1028
|
}, 8, ["config"])) : c("", !0)
|
|
1022
|
-
], 46,
|
|
1029
|
+
], 46, Xt));
|
|
1023
1030
|
}
|
|
1024
|
-
}, ta = /* @__PURE__ */
|
|
1031
|
+
}, ta = /* @__PURE__ */ It(Fl, [["__scopeId", "data-v-fef2b0c8"]]);
|
|
1025
1032
|
export {
|
|
1026
1033
|
ta as default
|
|
1027
1034
|
};
|