vue-data-ui 2.3.84 → 2.3.86
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-CQ1ubni5.js → Arrow-CJ7hmWgf.js} +1 -1
- package/dist/{Arrow-Uk_vwKtL.cjs → Arrow-CebZn6E4.cjs} +1 -1
- package/dist/{BaseIcon-B9ZZ6wkT.js → BaseIcon-B9istAKo.js} +1 -1
- package/dist/{BaseIcon-CF1HQdM0.cjs → BaseIcon-DnG75_Ol.cjs} +1 -1
- package/dist/{DataTable-CEtr89Og.cjs → DataTable-BA_BCbHC.cjs} +1 -1
- package/dist/{DataTable-C-iU_7h7.js → DataTable-tSDSY14n.js} +2 -2
- package/dist/{Legend-D2ZBCCXe.cjs → Legend-BOY57qwA.cjs} +1 -1
- package/dist/{Legend-pU_BwhaW.js → Legend-D3hovFqM.js} +1 -1
- package/dist/{Shape-BO_KyCq8.cjs → Shape-D6jrLLku.cjs} +1 -1
- package/dist/{Shape-CyM44biU.js → Shape-XiTBfhJM.js} +1 -1
- package/dist/{Slicer-CZobytqL.js → Slicer-BMvzmCKt.js} +2 -2
- package/dist/{Slicer-BAMZ4wsl.cjs → Slicer-sZ-DArc4.cjs} +1 -1
- package/dist/{Title-B1_d29Eh.cjs → Title-Ahj4TYHa.cjs} +1 -1
- package/dist/{Title-Bk3h09h9.js → Title-DJ2FNrSN.js} +1 -1
- package/dist/{Tooltip-CdB80DsD.js → Tooltip-CQpXRqRC.js} +1 -1
- package/dist/{Tooltip-BU4cSEF0.cjs → Tooltip-XhevgJmm.cjs} +1 -1
- package/dist/index-CVgBMJU6.cjs +4 -0
- package/dist/{index-DI4DaxVG.js → index-D2epy0rJ.js} +4 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +3 -0
- package/dist/types/vue-data-ui.d.ts +3 -0
- package/dist/{useNestedProp-BdsfyHWU.cjs → useNestedProp-B-NmF2LO.cjs} +1 -1
- package/dist/{useNestedProp-COsQo-tX.js → useNestedProp-C_ZrJBd9.js} +1 -1
- package/dist/usePrinter-B6qtXaHk.js +527 -0
- package/dist/usePrinter-DN-6Hoh5.cjs +1 -0
- package/dist/{vue-data-ui-kGaLyV0o.cjs → vue-data-ui-DlNasA0G.cjs} +1 -1
- package/dist/{vue-data-ui-9nofTL7J.js → vue-data-ui-vegY0BJm.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-CqRRjlUU.cjs +19 -0
- package/dist/{vue-ui-3d-bar-lKgwKkVj.js → vue-ui-3d-bar-D-0SSMOt.js} +165 -164
- package/dist/{vue-ui-accordion-C8ka_Ot0.cjs → vue-ui-accordion-BaV9R6cy.cjs} +1 -1
- package/dist/{vue-ui-accordion-DsN9lxvc.js → vue-ui-accordion-DzTB2FL0.js} +3 -3
- package/dist/vue-ui-age-pyramid-Bx4BuL3K.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-D2lSXDX6.js → vue-ui-age-pyramid-_eo2DGen.js} +68 -67
- package/dist/{vue-ui-annotator-DoLG0N5e.js → vue-ui-annotator-8j2dJ0CU.js} +1 -1
- package/dist/{vue-ui-annotator-DmfAqbqB.cjs → vue-ui-annotator-CDZtr6tp.cjs} +1 -1
- package/dist/{vue-ui-candlestick-vhHV9d6O.js → vue-ui-candlestick-CsF7OSvJ.js} +83 -82
- package/dist/vue-ui-candlestick-NypxP0Uu.cjs +2 -0
- package/dist/{vue-ui-carousel-table-BmyArloA.js → vue-ui-carousel-table-CMHd2i-6.js} +7 -7
- package/dist/{vue-ui-carousel-table-DaQV2SlJ.cjs → vue-ui-carousel-table-CV0eVeRd.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DvNW2Y0z.cjs → vue-ui-chestnut-B9miwyAN.cjs} +2 -2
- package/dist/{vue-ui-chestnut-DgbbDtL0.js → vue-ui-chestnut-CVftKftk.js} +11 -10
- package/dist/{vue-ui-cursor-zXDNHCZv.cjs → vue-ui-cursor-Bsrt107X.cjs} +1 -1
- package/dist/{vue-ui-cursor-7-jKCnOY.js → vue-ui-cursor-wujy8n_T.js} +2 -2
- package/dist/{vue-ui-dashboard-DMossMh1.cjs → vue-ui-dashboard-BCN0BhjL.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B_pnIQ5P.js → vue-ui-dashboard-Cvy0gI52.js} +2 -2
- package/dist/{vue-ui-digits-BL8Vyod-.cjs → vue-ui-digits-CnHgzHPI.cjs} +1 -1
- package/dist/{vue-ui-digits-C-lpZ-rg.js → vue-ui-digits-J-WrKKHg.js} +2 -2
- package/dist/{vue-ui-donut-e-p-l-_7.js → vue-ui-donut-BOhWcHY_.js} +91 -90
- package/dist/vue-ui-donut-CZ1iKZq6.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Ol1YS2OF.js → vue-ui-donut-evolution-CSSYuoti.js} +83 -82
- package/dist/vue-ui-donut-evolution-DuY2883r.cjs +1 -0
- package/dist/{vue-ui-dumbbell-BjTXdj83.js → vue-ui-dumbbell-Cm0Rp_6W.js} +23 -22
- package/dist/{vue-ui-dumbbell-CMFNfda1.cjs → vue-ui-dumbbell-i9QcsSVO.cjs} +2 -2
- package/dist/{vue-ui-flow-B4mdXrld.js → vue-ui-flow-0m7a1NP7.js} +54 -53
- package/dist/vue-ui-flow-DXCBGdQT.cjs +1 -0
- package/dist/vue-ui-galaxy-D6GyjAnX.cjs +1 -0
- package/dist/{vue-ui-galaxy-Eg1e5SG7.js → vue-ui-galaxy-DCHEdZAl.js} +87 -86
- package/dist/{vue-ui-gauge-BTt63SCn.js → vue-ui-gauge-HcM2JJpg.js} +78 -77
- package/dist/vue-ui-gauge-wbHQGQro.cjs +1 -0
- package/dist/{vue-ui-gizmo-bFlUFJa8.cjs → vue-ui-gizmo-B-zMyi1m.cjs} +1 -1
- package/dist/{vue-ui-gizmo-C0aF0qVF.js → vue-ui-gizmo-Bfo_nUnZ.js} +2 -2
- package/dist/{vue-ui-heatmap-kiVWYvjC.js → vue-ui-heatmap-CxIHmv0t.js} +170 -169
- package/dist/vue-ui-heatmap-Du2vI5Ae.cjs +1 -0
- package/dist/{vue-ui-kpi-qw5ofS-z.cjs → vue-ui-kpi-BOe7-M9V.cjs} +1 -1
- package/dist/{vue-ui-kpi-DdtZLwfi.js → vue-ui-kpi-DibULfkp.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8YrB3X-.cjs → vue-ui-mini-loader-Bv7l-Kx3.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DcL5v-Tv.js → vue-ui-mini-loader-qFRhERid.js} +2 -2
- package/dist/{vue-ui-molecule-BpomHzqe.js → vue-ui-molecule-4cIGPnWg.js} +282 -278
- package/dist/vue-ui-molecule-eOj3ZjvT.cjs +1 -0
- package/dist/{vue-ui-mood-radar-BV9xC9xF.js → vue-ui-mood-radar-BTe21WKk.js} +144 -143
- package/dist/vue-ui-mood-radar-tUFqqekd.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-D7D20nJu.js → vue-ui-nested-donuts-BVzabOga.js} +65 -64
- package/dist/vue-ui-nested-donuts-BigBLrFR.cjs +17 -0
- package/dist/{vue-ui-onion-4wR10l5H.js → vue-ui-onion-C3TAKqro.js} +90 -89
- package/dist/vue-ui-onion-_ZC3vbIS.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-BiXGkfj7.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DA3byJV2.js → vue-ui-parallel-coordinate-plot-CKoCQXqj.js} +40 -39
- package/dist/vue-ui-quadrant-B67wGTic.cjs +1 -0
- package/dist/{vue-ui-quadrant-D5wvd5h3.js → vue-ui-quadrant-CKnyfJoi.js} +51 -50
- package/dist/vue-ui-quick-chart-DEjdx0AB.cjs +15 -0
- package/dist/{vue-ui-quick-chart-CTSq5JJE.js → vue-ui-quick-chart-DZDYYnsI.js} +63 -62
- package/dist/vue-ui-radar-Cm_QkYGb.cjs +1 -0
- package/dist/{vue-ui-radar-OW6awckj.js → vue-ui-radar-v9yayJxu.js} +44 -43
- package/dist/{vue-ui-rating-C6gyJWJF.js → vue-ui-rating-Cc_N7qbe.js} +2 -2
- package/dist/{vue-ui-rating-3ZVG38br.cjs → vue-ui-rating-DV4cCZbB.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-Dr9-ozKG.js → vue-ui-relation-circle-Clqo4kkb.js} +74 -73
- package/dist/vue-ui-relation-circle-DcpIVbI6.cjs +1 -0
- package/dist/{vue-ui-rings-Ce6tFKrN.js → vue-ui-rings-D27xNq9q.js} +78 -77
- package/dist/vue-ui-rings-DTn3t8Ku.cjs +2 -0
- package/dist/{vue-ui-scatter-C_3WQPMf.js → vue-ui-scatter-C07Mon-6.js} +53 -52
- package/dist/vue-ui-scatter-CXbrqLFm.cjs +1 -0
- package/dist/{vue-ui-screenshot-BvE2dsvU.js → vue-ui-screenshot-CsxqbqlJ.js} +1 -1
- package/dist/{vue-ui-screenshot-D6N4GbAL.cjs → vue-ui-screenshot-D8TAvQYN.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DH4t1hrL.js → vue-ui-skeleton-BLiYyX95.js} +2 -2
- package/dist/{vue-ui-skeleton-CkSlhfsB.cjs → vue-ui-skeleton-Br1K3exH.cjs} +1 -1
- package/dist/{vue-ui-smiley-C-92SyPZ.js → vue-ui-smiley-BUHatT3Z.js} +2 -2
- package/dist/{vue-ui-smiley-CSA28QLT.cjs → vue-ui-smiley-CR_TkSYT.cjs} +1 -1
- package/dist/vue-ui-spark-trend-CnUz6s1m.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CrElvUcG.js → vue-ui-spark-trend-GY2CfYRt.js} +29 -29
- package/dist/vue-ui-sparkbar-DaFwUA6Z.cjs +1 -0
- package/dist/{vue-ui-sparkbar-DrbkUcOX.js → vue-ui-sparkbar-tdgek1gv.js} +27 -27
- package/dist/{vue-ui-sparkgauge-PSRf_u0V.js → vue-ui-sparkgauge-1zu5KmTA.js} +22 -22
- package/dist/vue-ui-sparkgauge-D8P01Hem.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-pZslBri7.js → vue-ui-sparkhistogram-b68QStxA.js} +52 -52
- package/dist/vue-ui-sparkhistogram-mg6yuwLH.cjs +1 -0
- package/dist/{vue-ui-sparkline-CqgArzCs.cjs → vue-ui-sparkline-CAqav9Gn.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BPExupWx.js → vue-ui-sparkline-CMmtp8MK.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-i02y9FzO.js → vue-ui-sparkstackbar-Cz8tOM3m.js} +6 -6
- package/dist/vue-ui-sparkstackbar-DOrquZvw.cjs +1 -0
- package/dist/vue-ui-stackbar-DUa5F_Zl.cjs +6 -0
- package/dist/{vue-ui-stackbar-DfXxN_P3.js → vue-ui-stackbar-DeQkP1dj.js} +64 -63
- package/dist/vue-ui-strip-plot-KNL9ToYG.cjs +1 -0
- package/dist/{vue-ui-strip-plot-BZ-we0b1.js → vue-ui-strip-plot-vqOCzdFV.js} +73 -72
- package/dist/{vue-ui-table-Dy26T2oy.cjs → vue-ui-table-BCdHNku5.cjs} +1 -1
- package/dist/{vue-ui-table-BqLbMTHt.js → vue-ui-table-DDdVqdHt.js} +1 -1
- package/dist/vue-ui-table-heatmap-BJDnZMZN.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-KzoqT8nX.js → vue-ui-table-heatmap-DQg_jtYq.js} +27 -26
- package/dist/{vue-ui-table-sparkline-BakiSjV4.js → vue-ui-table-sparkline-Bg-VFq7X.js} +25 -24
- package/dist/{vue-ui-table-sparkline-BBEsDDnN.cjs → vue-ui-table-sparkline-D8DJxb5J.cjs} +1 -1
- package/dist/{vue-ui-thermometer-D7cgRJoy.js → vue-ui-thermometer-CajBbbYc.js} +60 -59
- package/dist/vue-ui-thermometer-eYM8DX7u.cjs +1 -0
- package/dist/{vue-ui-timer-r4VFny9D.js → vue-ui-timer-D3VRVK-8.js} +4 -4
- package/dist/{vue-ui-timer-COLXZ1J1.cjs → vue-ui-timer-RclP4Tql.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DNQpuz8A.js → vue-ui-tiremarks-BT0k_3xi.js} +93 -92
- package/dist/vue-ui-tiremarks-Bc8bBBAw.cjs +1 -0
- package/dist/{vue-ui-treemap-CsHaQjwu.cjs → vue-ui-treemap-BjWDt2b2.cjs} +1 -1
- package/dist/{vue-ui-treemap-CD5GoXrU.js → vue-ui-treemap-DMhe3zCm.js} +14 -13
- package/dist/vue-ui-vertical-bar-DWzafNBH.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-DRH98pOw.js → vue-ui-vertical-bar-hH9R9V-K.js} +180 -179
- package/dist/vue-ui-waffle-BvYE9hAY.cjs +1 -0
- package/dist/{vue-ui-waffle-l9NGD_0B.js → vue-ui-waffle-DnNd6Iba.js} +85 -84
- package/dist/{vue-ui-wheel-BpqWo_KY.js → vue-ui-wheel-Bx9_m-7W.js} +72 -71
- package/dist/vue-ui-wheel-CVBmY6h7.cjs +1 -0
- package/dist/vue-ui-word-cloud-3R-mYkIW.cjs +1 -0
- package/dist/{vue-ui-word-cloud-DLaAm8t8.js → vue-ui-word-cloud-DUk0Xt8q.js} +109 -108
- package/dist/{vue-ui-xy-Ct-9OxiZ.js → vue-ui-xy-FtaqoNK8.js} +401 -405
- package/dist/{vue-ui-xy-canvas-BU3nj2M1.js → vue-ui-xy-canvas-Bp4PTl_E.js} +54 -53
- package/dist/{vue-ui-xy-canvas-Bub1qCm9.cjs → vue-ui-xy-canvas-Ctw_3PzN.cjs} +2 -2
- package/dist/vue-ui-xy-rX-aml0b.cjs +3 -0
- package/package.json +1 -1
- package/dist/index-Cx-40Fnz.cjs +0 -4
- package/dist/usePrinter-D9bNzUQP.js +0 -513
- package/dist/usePrinter-DbhL59iY.cjs +0 -1
- package/dist/vue-ui-3d-bar-1aTroDle.cjs +0 -19
- package/dist/vue-ui-age-pyramid-D8Tr8jvT.cjs +0 -1
- package/dist/vue-ui-candlestick-BAuWAMct.cjs +0 -2
- package/dist/vue-ui-donut-evolution-DsdzjA88.cjs +0 -1
- package/dist/vue-ui-donut-w1eqaTu0.cjs +0 -1
- package/dist/vue-ui-flow-oBnzNN4s.cjs +0 -1
- package/dist/vue-ui-galaxy-DgxKqf6u.cjs +0 -1
- package/dist/vue-ui-gauge-B64pcc54.cjs +0 -1
- package/dist/vue-ui-heatmap-cjY0mi4a.cjs +0 -1
- package/dist/vue-ui-molecule-B8cYtnHq.cjs +0 -1
- package/dist/vue-ui-mood-radar-BA2VVPO5.cjs +0 -1
- package/dist/vue-ui-nested-donuts-C3CMWjgk.cjs +0 -17
- package/dist/vue-ui-onion-CVp0g8MP.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CmaHQR6-.cjs +0 -8
- package/dist/vue-ui-quadrant-B8ffMNIS.cjs +0 -1
- package/dist/vue-ui-quick-chart-hnVT9GKL.cjs +0 -15
- package/dist/vue-ui-radar-ySl7KzoX.cjs +0 -1
- package/dist/vue-ui-relation-circle-CMW26dvv.cjs +0 -1
- package/dist/vue-ui-rings-CR1t6iss.cjs +0 -2
- package/dist/vue-ui-scatter-CKtgbptk.cjs +0 -1
- package/dist/vue-ui-spark-trend-D4d4Mr24.cjs +0 -1
- package/dist/vue-ui-sparkbar-DDqy0UBm.cjs +0 -1
- package/dist/vue-ui-sparkgauge-D6cG2rb8.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B9sVdLfh.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-BbGJ75_9.cjs +0 -1
- package/dist/vue-ui-stackbar-CRbcnnwn.cjs +0 -6
- package/dist/vue-ui-strip-plot-oZBXDxc-.cjs +0 -1
- package/dist/vue-ui-table-heatmap-BnwiB4id.cjs +0 -1
- package/dist/vue-ui-thermometer-E0mrvP4G.cjs +0 -1
- package/dist/vue-ui-tiremarks-C15sglnJ.cjs +0 -1
- package/dist/vue-ui-vertical-bar-DucujxOR.cjs +0 -4
- package/dist/vue-ui-waffle-DhroAZB3.cjs +0 -1
- package/dist/vue-ui-wheel-Bd87HcGT.cjs +0 -1
- package/dist/vue-ui-word-cloud-D5JLdr9g.cjs +0 -1
- package/dist/vue-ui-xy-BHzOpYm9.cjs +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-CVgBMJU6.cjs"),le=require("./Legend-BOY57qwA.cjs"),oe=require("./Title-Ahj4TYHa.cjs"),ae=require("./Tooltip-XhevgJmm.cjs"),re=require("./DataTable-BA_BCbHC.cjs"),W=require("./usePrinter-DN-6Hoh5.cjs"),ne=require("./vue-ui-skeleton-Br1K3exH.cjs"),se=require("./vue-ui-accordion-BaV9R6cy.cjs"),U=require("./useNestedProp-B-NmF2LO.cjs"),ue=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ie=["id"],ce={key:0,style:"width:100%;background:transparent;padding-bottom:24px"},de=["xmlns","viewBox"],ve=["id"],he=["stdDeviation"],pe=["d","stroke","stroke-width"],fe=["d","stroke","stroke-width"],ye=["filter"],ge=["d","stroke","stroke-width"],me=["d","stroke-width","onMouseenter","onClick"],be={key:3,class:"vue-data-ui-watermark"},ke=["onClick"],Ce={key:0},we={key:1},xe=["innerHTML"],$e={__name:"vue-ui-galaxy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(H,{expose:R,emit:_}){const i=H,{vue_ui_galaxy:X}=r.useConfig(),b=e.computed(()=>!!i.dataset&&i.dataset.length);e.onMounted(()=>{S()});function S(){r.objectIsEmpty(i.dataset)?r.error({componentName:"VueUiGalaxy",type:"dataset"}):i.dataset.forEach((l,a)=>{r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(o=>{r.error({componentName:"VueUiGalaxy",type:"datasetSerieAttribute",property:o,index:a})})})}const y=e.ref(r.createUid()),C=e.ref(null),j=e.ref(null),w=e.ref(!1),x=e.ref(""),c=e.ref(null),N=e.ref(0),P=e.ref(0),L=e.ref(0),E=e.ref(0),t=e.computed({get:()=>V(),set:l=>l});function V(){const l=U.useNestedProp({userConfig:i.config,defaultConfig:X});return l.theme?{...U.useNestedProp({userConfig:r.themes.vue_ui_galaxy[l.theme]||i.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>i.config,l=>{t.value=V(),S(),P.value+=1,L.value+=1,E.value+=1},{deep:!0});const{isPrinting:F,isImaging:I,generatePdf:O,generateImage:z}=W.usePrinter({elementId:`galaxy_${y.value}`,fileName:t.value.style.chart.title.text||"vue-ui-galaxy"}),Y=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}),$=e.ref({height:180,width:250}),u=e.ref([]);function B(l){u.value.includes(l.id)?u.value=u.value.filter(a=>a!==l.id):u.value.push(l.id),_("selectLegend",g.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const p=e.computed(()=>i.dataset.map((l,a)=>({name:l.name,color:r.convertColorToHex(l.color)||Y.value[a]||r.palette[a]||r.palette[a%r.palette.length],value:l.values?r.sanitizeArray(l.values).reduce((o,n)=>o+n,0):0,absoluteValues:r.sanitizeArray(l.values),id:r.createUid(),seriesIndex:a})).sort((l,a)=>a.value-l.value));function J(){return p.value.map(l=>({name:l.name,color:l.color,value:l.value}))}const d=e.computed(()=>p.value.filter(l=>!u.value.includes(l.id)).map(l=>l.value).reduce((l,a)=>l+a,0)),K=e.ref(190),D=e.computed(()=>p.value.filter(l=>!u.value.includes(l.id))),g=e.computed(()=>{const l=[];for(let a=0;a<D.value.length;a+=1){const o=D.value[a];let n=o.value/d.value*K.value;a>0&&l.length&&(n+=l[a-1].points),l.push({points:n,...o,seriesIndex:a,proportion:o.value/d.value,path:r.createSpiralPath({points:n,startX:115+t.value.style.chart.layout.arcs.offsetX,startY:90+t.value.style.chart.layout.arcs.offsetY})})}return l.filter((a,o)=>!u.value.includes(a.id)).toSorted((a,o)=>o.points-a.points)}),m=e.ref(!1);function Q(l){m.value=l,N.value+=1}const T=e.ref(null);function Z({datapoint:l,_relativeIndex:a,seriesIndex:o,show:n=!1}){T.value={datapoint:l,seriesIndex:o,series:p.value,config:t.value},w.value=n,c.value=l.id;let s="";const f=t.value.style.chart.tooltip.customFormat;r.isFunction(f)&&r.functionReturnsString(()=>f({seriesIndex:o,datapoint:l,series:p.value,config:t.value}))?x.value=f({seriesIndex:o,datapoint:l,series:p.value,config:t.value}):(s+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`,s+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`,t.value.style.chart.tooltip.showValue&&(s+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,l.value,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.tooltip.roundingValue}),{datapoint:l,seriesIndex:o})}</b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?s+=`<span>(${r.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:s+=`<b>${r.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`),x.value=`<div>${s}</div>`)}const q=e.computed(()=>p.value.map((l,a)=>({...l,proportion:(l.value||0)/i.dataset.map(o=>(o.values||[]).reduce((n,s)=>n+s,0)).reduce((o,n)=>o+n,0),opacity:u.value.includes(l.id)?.5:1,shape:l.shape||"circle",segregate:()=>B(l),isSegregated:u.value.includes(l.id)}))),ee=e.computed(()=>({cy:"galaxy-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":""})),h=e.computed(()=>{const l=g.value.map(o=>({name:o.name,color:o.color})),a=g.value.map(o=>o.value);return{head:l,body:a}});function G(){e.nextTick(()=>{const l=h.value.head.map((n,s)=>[[n.name],[h.value.body[s]],[isNaN(h.value.body[s]/d.value)?"-":h.value.body[s]/d.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=r.createCsvContent(a);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-galaxy"})})}const k=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>',r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:d.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],a=h.value.head.map((s,f)=>{const te=r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:h.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},te,isNaN(h.value.body[f]/d.value)?"-":r.dataLabel({v:h.value.body[f]/d.value*100,s:"%",r: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};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:l,body:a,config:o}});function M(){v.value.showTable=!v.value.showTable}function A(){v.value.showTooltip=!v.value.showTooltip}return R({getData:J,generatePdf:O,generateCsv:G,generateImage:z,toggleTable:M,toggleTooltip:A}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"galaxyChart",ref:C,class:e.normalizeClass(`vue-ui-galaxy ${m.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:`galaxy_${y.value}`},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",ce,[(e.openBlock(),e.createBlock(oe._sfc_main,{key:`title_${P.value}`,config:{title:{cy:"galaxy-div-title",...t.value.style.chart.title},subtitle:{cy:"galaxy-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&b.value?(e.openBlock(),e.createBlock(W.UserOptions,{ref_key:"details",ref:j,key:`user_option_${N.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(F),isImaging:e.unref(I),uid:y.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:v.value.showTooltip,isFullscreen:m.value,titles:{...t.value.userOptions.buttonTitles},chartElement:C.value,position:t.value.userOptions.position,onToggleFullscreen:Q,onGeneratePdf:e.unref(O),onGenerateCsv:G,onGenerateImage:e.unref(z),onToggleTable:M,onToggleTooltip:A},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:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":m.value,"vue-data-ui-fulscreen--off":!m.value}),viewBox:`0 0 ${$.value.width} ${$.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${y.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:100/t.value.style.chart.layout.arcs.gradient.intensity},null,8,he)],8,ve)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,o=>(e.openBlock(),e.createElementBlock("g",null,[o.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:o.path,fill:"none",stroke:t.value.style.chart.backgroundColor,"stroke-width":(t.value.style.chart.layout.arcs.strokeWidth+t.value.style.chart.layout.arcs.borderWidth)*(c.value===o.id&&t.value.style.chart.layout.arcs.hoverEffect.show?t.value.style.chart.layout.arcs.hoverEffect.multiplicator:1),"stroke-linecap":"round"},null,8,pe)):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("path",{key:1,d:o.path,fill:"none",stroke:o.color,"stroke-width":t.value.style.chart.layout.arcs.strokeWidth*(c.value===o.id&&t.value.style.chart.layout.arcs.hoverEffect.show?t.value.style.chart.layout.arcs.hoverEffect.multiplicator:1),"stroke-linecap":"round",class:e.normalizeClass(`${c.value&&c.value!==o.id&&t.value.useBlurOnHover?"vue-ui-galaxy-blur":""}`)},null,10,fe)):e.createCommentVNode("",!0),o.value&&t.value.style.chart.layout.arcs.gradient.show?(e.openBlock(),e.createElementBlock("g",{key:2,filter:`url(#blur_${y.value})`},[e.createElementVNode("path",{d:o.path,fill:"none",stroke:t.value.style.chart.layout.arcs.gradient.color,"stroke-width":t.value.style.chart.layout.arcs.strokeWidth/2*(c.value===o.id&&t.value.style.chart.layout.arcs.hoverEffect.show?t.value.style.chart.layout.arcs.hoverEffect.multiplicator:1),"stroke-linecap":"round",class:e.normalizeClass(`vue-ui-galaxy-gradient ${c.value&&c.value!==o.id&&t.value.useBlurOnHover?"vue-ui-galaxy-blur":""}`)},null,10,ge)],8,ye)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[o.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:o.path,fill:"none",stroke:"transparent","stroke-width":t.value.style.chart.layout.arcs.strokeWidth+t.value.style.chart.layout.arcs.borderWidth,"stroke-linecap":"round",onMouseenter:s=>Z({datapoint:o,relativeIndex:n,seriesIndex:o.seriesIndex,show:!0}),onMouseleave:a[0]||(a[0]=s=>{w.value=!1,c.value=null}),onClick:s=>_("selectDatapoint",o)},null,40,me)):e.createCommentVNode("",!0)]))),256)),e.renderSlot(l.$slots,"svg",{svg:$.value},void 0,!0)],14,de)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",be,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(F)||e.unref(I)})),void 0,!0)])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ne.default,{key:4,config:{type:"galaxy",style:{backgroundColor:t.value.style.chart.backgroundColor,galaxy:{color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(le.Legend,{key:`legend_${E.value}`,legendSet:q.value,config:ee.value,onClickMarker:a[1]||(a[1]=({legend:o})=>B(o))},{item:e.withCtx(({legend:o,index:n})=>[e.createElementVNode("div",{onClick:s=>B(o),style:e.normalizeStyle(`opacity:${u.value.includes(o.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,e.unref(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.legend.roundingValue}),{datapoint:o,seriesIndex:n}))+" ",1),u.value.includes(o.id)?(e.openBlock(),e.createElementBlock("span",we," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Ce," ("+e.toDisplayString(isNaN(o.value/d.value)?"-":e.unref(r.dataLabel)({v:o.value/d.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,ke)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"legend",{legend:q.value},void 0,!0),e.createVNode(ae._sfc_main,{show:v.value.showTooltip&&w.value,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:x.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...T.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...T.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),b.value?(e.openBlock(),e.createBlock(se.default,{key:6,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(re.DataTable,{key:`table_${L.value}`,colNames:k.value.colNames,head:k.value.head,body:k.value.body,config:k.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=>v.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)],14,ie))}},Be=ue._export_sfc($e,[["__scopeId","data-v-a2be7205"]]);exports.default=Be;
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import { computed as v, onMounted as $e, ref as u, watch as _e, openBlock as s, createElementBlock as n, normalizeClass as L, normalizeStyle as
|
|
2
|
-
import { u as Ne, o as Le, e as ue, g as Ie, c as ne, t as Fe, a as Oe, p as
|
|
3
|
-
import { L as We } from "./Legend-
|
|
4
|
-
import { _ as Ae } from "./Title-
|
|
5
|
-
import { _ as He } from "./Tooltip-
|
|
6
|
-
import { D as Ue } from "./DataTable-
|
|
7
|
-
import { u as Xe, U as Re } from "./usePrinter-
|
|
8
|
-
import Ye from "./vue-ui-skeleton-
|
|
9
|
-
import je from "./vue-ui-accordion-
|
|
10
|
-
import { u as de } from "./useNestedProp-
|
|
1
|
+
import { computed as v, onMounted as $e, ref as u, watch as _e, openBlock as s, createElementBlock as n, normalizeClass as L, normalizeStyle as W, createBlock as x, createCommentVNode as d, unref as h, createSlots as Te, withCtx as i, renderSlot as y, normalizeProps as I, guardReactiveProps as F, createElementVNode as $, Fragment as oe, renderList as se, createTextVNode as re, toDisplayString as O, createVNode as Pe, nextTick as Se } from "vue";
|
|
2
|
+
import { u as Ne, o as Le, e as ue, g as Ie, c as ne, t as Fe, a as Oe, p as E, b as Ee, d as De, G as ie, J as Ge, f as k, X as Ve, i as ce, x as ve, y as Be, q as Me, r as ze } from "./index-D2epy0rJ.js";
|
|
3
|
+
import { L as We } from "./Legend-D3hovFqM.js";
|
|
4
|
+
import { _ as Ae } from "./Title-DJ2FNrSN.js";
|
|
5
|
+
import { _ as He } from "./Tooltip-CQpXRqRC.js";
|
|
6
|
+
import { D as Ue } from "./DataTable-tSDSY14n.js";
|
|
7
|
+
import { u as Xe, U as Re } from "./usePrinter-B6qtXaHk.js";
|
|
8
|
+
import Ye from "./vue-ui-skeleton-BLiYyX95.js";
|
|
9
|
+
import je from "./vue-ui-accordion-DzTB2FL0.js";
|
|
10
|
+
import { u as de } from "./useNestedProp-C_ZrJBd9.js";
|
|
11
11
|
import { _ as qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const Je = ["id"], Ke =
|
|
12
|
+
const Je = ["id"], Ke = {
|
|
13
|
+
key: 0,
|
|
14
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
15
|
+
}, Qe = ["xmlns", "viewBox"], Ze = ["id"], et = ["stdDeviation"], tt = ["d", "stroke", "stroke-width"], lt = ["d", "stroke", "stroke-width"], at = ["filter"], ot = ["d", "stroke", "stroke-width"], st = ["d", "stroke-width", "onMouseenter", "onClick"], rt = {
|
|
13
16
|
key: 3,
|
|
14
17
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
18
|
+
}, ut = ["onClick"], nt = { key: 0 }, it = { key: 1 }, ct = ["innerHTML"], vt = {
|
|
16
19
|
__name: "vue-ui-galaxy",
|
|
17
20
|
props: {
|
|
18
21
|
config: {
|
|
@@ -30,15 +33,15 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
30
33
|
},
|
|
31
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
32
35
|
setup(he, { expose: ye, emit: A }) {
|
|
33
|
-
const
|
|
36
|
+
const p = he, { vue_ui_galaxy: pe } = Ne(), S = v(() => !!p.dataset && p.dataset.length);
|
|
34
37
|
$e(() => {
|
|
35
38
|
H();
|
|
36
39
|
});
|
|
37
40
|
function H() {
|
|
38
|
-
Le(
|
|
41
|
+
Le(p.dataset) ? ue({
|
|
39
42
|
componentName: "VueUiGalaxy",
|
|
40
43
|
type: "dataset"
|
|
41
|
-
}) :
|
|
44
|
+
}) : p.dataset.forEach((t, a) => {
|
|
42
45
|
Ie({
|
|
43
46
|
datasetObject: t,
|
|
44
47
|
requiredAttributes: ["name", "values"]
|
|
@@ -52,50 +55,50 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
52
55
|
});
|
|
53
56
|
});
|
|
54
57
|
}
|
|
55
|
-
const _ = u(ne()),
|
|
58
|
+
const _ = u(ne()), D = u(null), ge = u(null), G = u(!1), V = u(""), g = u(null), U = u(0), X = u(0), R = u(0), Y = u(0), e = v({
|
|
56
59
|
get: () => j(),
|
|
57
60
|
set: (t) => t
|
|
58
61
|
});
|
|
59
62
|
function j() {
|
|
60
63
|
const t = de({
|
|
61
|
-
userConfig:
|
|
62
|
-
defaultConfig:
|
|
64
|
+
userConfig: p.config,
|
|
65
|
+
defaultConfig: pe
|
|
63
66
|
});
|
|
64
67
|
return t.theme ? {
|
|
65
68
|
...de({
|
|
66
|
-
userConfig: Fe.vue_ui_galaxy[t.theme] ||
|
|
69
|
+
userConfig: Fe.vue_ui_galaxy[t.theme] || p.config,
|
|
67
70
|
defaultConfig: t
|
|
68
71
|
}),
|
|
69
|
-
customPalette: Oe[t.theme] ||
|
|
72
|
+
customPalette: Oe[t.theme] || E
|
|
70
73
|
} : t;
|
|
71
74
|
}
|
|
72
|
-
_e(() =>
|
|
75
|
+
_e(() => p.config, (t) => {
|
|
73
76
|
e.value = j(), H(), X.value += 1, R.value += 1, Y.value += 1;
|
|
74
77
|
}, { deep: !0 });
|
|
75
78
|
const { isPrinting: q, isImaging: J, generatePdf: K, generateImage: Q } = Xe({
|
|
76
79
|
elementId: `galaxy_${_.value}`,
|
|
77
80
|
fileName: e.value.style.chart.title.text || "vue-ui-galaxy"
|
|
78
|
-
}),
|
|
81
|
+
}), fe = v(() => Ee(e.value.customPalette)), b = u({
|
|
79
82
|
dataLabels: {
|
|
80
83
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
81
84
|
},
|
|
82
85
|
showTable: e.value.table.show,
|
|
83
86
|
showTooltip: e.value.style.chart.tooltip.show
|
|
84
|
-
}),
|
|
87
|
+
}), B = u({
|
|
85
88
|
height: 180,
|
|
86
89
|
// or 250 if non fibo
|
|
87
90
|
width: 250
|
|
88
91
|
}), c = u([]);
|
|
89
|
-
function
|
|
92
|
+
function M(t) {
|
|
90
93
|
c.value.includes(t.id) ? c.value = c.value.filter((a) => a !== t.id) : c.value.push(t.id), A("selectLegend", T.value.map((a) => ({
|
|
91
94
|
name: a.name,
|
|
92
95
|
color: a.color,
|
|
93
96
|
value: a.value
|
|
94
97
|
})));
|
|
95
98
|
}
|
|
96
|
-
const C = v(() =>
|
|
99
|
+
const C = v(() => p.dataset.map((t, a) => ({
|
|
97
100
|
name: t.name,
|
|
98
|
-
color: De(t.color) ||
|
|
101
|
+
color: De(t.color) || fe.value[a] || E[a] || E[a % E.length],
|
|
99
102
|
value: t.values ? ie(t.values).reduce((l, o) => l + o, 0) : 0,
|
|
100
103
|
absoluteValues: ie(t.values),
|
|
101
104
|
id: ne(),
|
|
@@ -108,16 +111,16 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
108
111
|
value: t.value
|
|
109
112
|
}));
|
|
110
113
|
}
|
|
111
|
-
const
|
|
114
|
+
const f = v(() => C.value.filter((t) => !c.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), me = u(190), Z = v(() => C.value.filter((t) => !c.value.includes(t.id))), T = v(() => {
|
|
112
115
|
const t = [];
|
|
113
116
|
for (let a = 0; a < Z.value.length; a += 1) {
|
|
114
117
|
const l = Z.value[a];
|
|
115
|
-
let o = l.value /
|
|
118
|
+
let o = l.value / f.value * me.value;
|
|
116
119
|
a > 0 && t.length && (o += t[a - 1].points), t.push({
|
|
117
120
|
points: o,
|
|
118
121
|
...l,
|
|
119
122
|
seriesIndex: a,
|
|
120
|
-
proportion: l.value /
|
|
123
|
+
proportion: l.value / f.value,
|
|
121
124
|
path: Ge({
|
|
122
125
|
points: o,
|
|
123
126
|
startX: 115 + e.value.style.chart.layout.arcs.offsetX,
|
|
@@ -130,14 +133,14 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
130
133
|
function ke(t) {
|
|
131
134
|
P.value = t, U.value += 1;
|
|
132
135
|
}
|
|
133
|
-
const
|
|
136
|
+
const z = u(null);
|
|
134
137
|
function Ce({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: o = !1 }) {
|
|
135
|
-
|
|
138
|
+
z.value = {
|
|
136
139
|
datapoint: t,
|
|
137
140
|
seriesIndex: l,
|
|
138
141
|
series: C.value,
|
|
139
142
|
config: e.value
|
|
140
|
-
},
|
|
143
|
+
}, G.value = o, g.value = t.id;
|
|
141
144
|
let r = "";
|
|
142
145
|
const w = e.value.style.chart.tooltip.customFormat;
|
|
143
146
|
ve(w) && Be(() => w({
|
|
@@ -145,7 +148,7 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
145
148
|
datapoint: t,
|
|
146
149
|
series: C.value,
|
|
147
150
|
config: e.value
|
|
148
|
-
})) ?
|
|
151
|
+
})) ? V.value = w({
|
|
149
152
|
seriesIndex: l,
|
|
150
153
|
datapoint: t,
|
|
151
154
|
series: C.value,
|
|
@@ -168,14 +171,14 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
168
171
|
v: t.proportion * 100,
|
|
169
172
|
s: "%",
|
|
170
173
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
171
|
-
})}</b></div>`),
|
|
174
|
+
})}</b></div>`), V.value = `<div>${r}</div>`);
|
|
172
175
|
}
|
|
173
176
|
const ee = v(() => C.value.map((t, a) => ({
|
|
174
177
|
...t,
|
|
175
|
-
proportion: (t.value || 0) /
|
|
178
|
+
proportion: (t.value || 0) / p.dataset.map((l) => (l.values || []).reduce((o, r) => o + r, 0)).reduce((l, o) => l + o, 0),
|
|
176
179
|
opacity: c.value.includes(t.id) ? 0.5 : 1,
|
|
177
180
|
shape: t.shape || "circle",
|
|
178
|
-
segregate: () =>
|
|
181
|
+
segregate: () => M(t),
|
|
179
182
|
isSegregated: c.value.includes(t.id)
|
|
180
183
|
}))), we = v(() => ({
|
|
181
184
|
cy: "galaxy-div-legend",
|
|
@@ -195,14 +198,14 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
195
198
|
Se(() => {
|
|
196
199
|
const t = m.value.head.map((o, r) => [[
|
|
197
200
|
o.name
|
|
198
|
-
], [m.value.body[r]], [isNaN(m.value.body[r] /
|
|
201
|
+
], [m.value.body[r]], [isNaN(m.value.body[r] / f.value) ? "-" : m.value.body[r] / f.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = Me(a);
|
|
199
202
|
ze({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
|
|
200
203
|
});
|
|
201
204
|
}
|
|
202
205
|
const N = v(() => {
|
|
203
206
|
const t = [
|
|
204
207
|
' <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>',
|
|
205
|
-
k({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v:
|
|
208
|
+
k({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: f.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
206
209
|
"100%"
|
|
207
210
|
], a = m.value.head.map((r, w) => {
|
|
208
211
|
const xe = k({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: m.value.body[w], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
@@ -212,8 +215,8 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
212
215
|
name: r.name
|
|
213
216
|
},
|
|
214
217
|
xe,
|
|
215
|
-
isNaN(m.value.body[w] /
|
|
216
|
-
v: m.value.body[w] /
|
|
218
|
+
isNaN(m.value.body[w] / f.value) ? "-" : k({
|
|
219
|
+
v: m.value.body[w] / f.value * 100,
|
|
217
220
|
s: "%",
|
|
218
221
|
r: e.value.table.td.roundingPercentage
|
|
219
222
|
})
|
|
@@ -257,15 +260,12 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
257
260
|
toggleTooltip: ae
|
|
258
261
|
}), (t, a) => (s(), n("div", {
|
|
259
262
|
ref_key: "galaxyChart",
|
|
260
|
-
ref:
|
|
263
|
+
ref: D,
|
|
261
264
|
class: L(`vue-ui-galaxy ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
262
|
-
style:
|
|
265
|
+
style: W(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
|
|
263
266
|
id: `galaxy_${_.value}`
|
|
264
267
|
}, [
|
|
265
|
-
e.value.style.chart.title.text ? (s(), n("div",
|
|
266
|
-
key: 0,
|
|
267
|
-
style: I(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
268
|
-
}, [
|
|
268
|
+
e.value.style.chart.title.text ? (s(), n("div", Ke, [
|
|
269
269
|
(s(), x(Ae, {
|
|
270
270
|
key: `title_${X.value}`,
|
|
271
271
|
config: {
|
|
@@ -279,10 +279,10 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
}, null, 8, ["config"]))
|
|
282
|
-
]
|
|
282
|
+
])) : d("", !0),
|
|
283
283
|
e.value.userOptions.show && S.value ? (s(), x(Re, {
|
|
284
284
|
ref_key: "details",
|
|
285
|
-
ref:
|
|
285
|
+
ref: ge,
|
|
286
286
|
key: `user_option_${U.value}`,
|
|
287
287
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
288
288
|
color: e.value.style.chart.color,
|
|
@@ -298,7 +298,8 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
298
298
|
isTooltip: b.value.showTooltip,
|
|
299
299
|
isFullscreen: P.value,
|
|
300
300
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
301
|
-
chartElement:
|
|
301
|
+
chartElement: D.value,
|
|
302
|
+
position: e.value.userOptions.position,
|
|
302
303
|
onToggleFullscreen: ke,
|
|
303
304
|
onGeneratePdf: h(K),
|
|
304
305
|
onGenerateCsv: te,
|
|
@@ -344,17 +345,17 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
344
345
|
t.$slots.optionFullscreen ? {
|
|
345
346
|
name: "optionFullscreen",
|
|
346
347
|
fn: i(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
347
|
-
y(t.$slots, "optionFullscreen", F(
|
|
348
|
+
y(t.$slots, "optionFullscreen", I(F({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
348
349
|
]),
|
|
349
350
|
key: "5"
|
|
350
351
|
} : void 0
|
|
351
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
|
|
352
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
|
|
352
353
|
S.value ? (s(), n("svg", {
|
|
353
354
|
key: 2,
|
|
354
355
|
xmlns: h(Ve),
|
|
355
356
|
class: L({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
|
|
356
|
-
viewBox: `0 0 ${
|
|
357
|
-
style:
|
|
357
|
+
viewBox: `0 0 ${B.value.width} ${B.value.height}`,
|
|
358
|
+
style: W(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
358
359
|
}, [
|
|
359
360
|
$("defs", null, [
|
|
360
361
|
$("filter", {
|
|
@@ -367,8 +368,8 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
367
368
|
$("feGaussianBlur", {
|
|
368
369
|
in: "SourceGraphic",
|
|
369
370
|
stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
|
|
370
|
-
}, null, 8,
|
|
371
|
-
], 8,
|
|
371
|
+
}, null, 8, et)
|
|
372
|
+
], 8, Ze)
|
|
372
373
|
]),
|
|
373
374
|
(s(!0), n(oe, null, se(T.value, (l) => (s(), n("g", null, [
|
|
374
375
|
l.value ? (s(), n("path", {
|
|
@@ -376,18 +377,18 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
376
377
|
d: l.path,
|
|
377
378
|
fill: "none",
|
|
378
379
|
stroke: e.value.style.chart.backgroundColor,
|
|
379
|
-
"stroke-width": (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * (
|
|
380
|
+
"stroke-width": (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * (g.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
|
|
380
381
|
"stroke-linecap": "round"
|
|
381
|
-
}, null, 8,
|
|
382
|
+
}, null, 8, tt)) : d("", !0),
|
|
382
383
|
l.value ? (s(), n("path", {
|
|
383
384
|
key: 1,
|
|
384
385
|
d: l.path,
|
|
385
386
|
fill: "none",
|
|
386
387
|
stroke: l.color,
|
|
387
|
-
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth * (
|
|
388
|
+
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth * (g.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
|
|
388
389
|
"stroke-linecap": "round",
|
|
389
|
-
class: L(`${
|
|
390
|
-
}, null, 10,
|
|
390
|
+
class: L(`${g.value && g.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
391
|
+
}, null, 10, lt)) : d("", !0),
|
|
391
392
|
l.value && e.value.style.chart.layout.arcs.gradient.show ? (s(), n("g", {
|
|
392
393
|
key: 2,
|
|
393
394
|
filter: `url(#blur_${_.value})`
|
|
@@ -396,11 +397,11 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
396
397
|
d: l.path,
|
|
397
398
|
fill: "none",
|
|
398
399
|
stroke: e.value.style.chart.layout.arcs.gradient.color,
|
|
399
|
-
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth / 2 * (
|
|
400
|
+
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth / 2 * (g.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
|
|
400
401
|
"stroke-linecap": "round",
|
|
401
|
-
class: L(`vue-ui-galaxy-gradient ${
|
|
402
|
-
}, null, 10,
|
|
403
|
-
], 8,
|
|
402
|
+
class: L(`vue-ui-galaxy-gradient ${g.value && g.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
403
|
+
}, null, 10, ot)
|
|
404
|
+
], 8, at)) : d("", !0)
|
|
404
405
|
]))), 256)),
|
|
405
406
|
(s(!0), n(oe, null, se(T.value, (l, o) => (s(), n("g", null, [
|
|
406
407
|
l.value ? (s(), n("path", {
|
|
@@ -417,15 +418,15 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
417
418
|
show: !0
|
|
418
419
|
}),
|
|
419
420
|
onMouseleave: a[0] || (a[0] = (r) => {
|
|
420
|
-
|
|
421
|
+
G.value = !1, g.value = null;
|
|
421
422
|
}),
|
|
422
423
|
onClick: (r) => A("selectDatapoint", l)
|
|
423
|
-
}, null, 40,
|
|
424
|
+
}, null, 40, st)) : d("", !0)
|
|
424
425
|
]))), 256)),
|
|
425
|
-
y(t.$slots, "svg", { svg:
|
|
426
|
-
], 14,
|
|
427
|
-
t.$slots.watermark ? (s(), n("div",
|
|
428
|
-
y(t.$slots, "watermark", F(
|
|
426
|
+
y(t.$slots, "svg", { svg: B.value }, void 0, !0)
|
|
427
|
+
], 14, Qe)) : d("", !0),
|
|
428
|
+
t.$slots.watermark ? (s(), n("div", rt, [
|
|
429
|
+
y(t.$slots, "watermark", I(F({ isPrinting: h(q) || h(J) })), void 0, !0)
|
|
429
430
|
])) : d("", !0),
|
|
430
431
|
S.value ? d("", !0) : (s(), x(Ye, {
|
|
431
432
|
key: 4,
|
|
@@ -443,14 +444,14 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
443
444
|
key: `legend_${Y.value}`,
|
|
444
445
|
legendSet: ee.value,
|
|
445
446
|
config: we.value,
|
|
446
|
-
onClickMarker: a[1] || (a[1] = ({ legend: l }) =>
|
|
447
|
+
onClickMarker: a[1] || (a[1] = ({ legend: l }) => M(l))
|
|
447
448
|
}, {
|
|
448
449
|
item: i(({ legend: l, index: o }) => [
|
|
449
450
|
$("div", {
|
|
450
|
-
onClick: (r) =>
|
|
451
|
-
style:
|
|
451
|
+
onClick: (r) => M(l),
|
|
452
|
+
style: W(`opacity:${c.value.includes(l.id) ? 0.5 : 1}`)
|
|
452
453
|
}, [
|
|
453
|
-
re(
|
|
454
|
+
re(O(l.name) + ": " + O(h(ce)(
|
|
454
455
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
455
456
|
l.value,
|
|
456
457
|
h(k)({
|
|
@@ -461,18 +462,18 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
461
462
|
}),
|
|
462
463
|
{ datapoint: l, seriesIndex: o }
|
|
463
464
|
)) + " ", 1),
|
|
464
|
-
c.value.includes(l.id) ? (s(), n("span",
|
|
465
|
-
v: l.value /
|
|
465
|
+
c.value.includes(l.id) ? (s(), n("span", it, " ( - % ) ")) : (s(), n("span", nt, " (" + O(isNaN(l.value / f.value) ? "-" : h(k)({
|
|
466
|
+
v: l.value / f.value * 100,
|
|
466
467
|
s: "%",
|
|
467
468
|
r: e.value.style.chart.legend.roundingPercentage
|
|
468
469
|
})) + ") ", 1))
|
|
469
|
-
], 12,
|
|
470
|
+
], 12, ut)
|
|
470
471
|
]),
|
|
471
472
|
_: 1
|
|
472
473
|
}, 8, ["legendSet", "config"])) : d("", !0),
|
|
473
474
|
y(t.$slots, "legend", { legend: ee.value }, void 0, !0),
|
|
474
475
|
Pe(He, {
|
|
475
|
-
show: b.value.showTooltip &&
|
|
476
|
+
show: b.value.showTooltip && G.value,
|
|
476
477
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
477
478
|
color: e.value.style.chart.tooltip.color,
|
|
478
479
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -482,15 +483,15 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
482
483
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
483
484
|
position: e.value.style.chart.tooltip.position,
|
|
484
485
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
485
|
-
parent:
|
|
486
|
-
content:
|
|
486
|
+
parent: D.value,
|
|
487
|
+
content: V.value,
|
|
487
488
|
isCustom: h(ve)(e.value.style.chart.tooltip.customFormat)
|
|
488
489
|
}, {
|
|
489
490
|
"tooltip-before": i(() => [
|
|
490
|
-
y(t.$slots, "tooltip-before", F(
|
|
491
|
+
y(t.$slots, "tooltip-before", I(F({ ...z.value })), void 0, !0)
|
|
491
492
|
]),
|
|
492
493
|
"tooltip-after": i(() => [
|
|
493
|
-
y(t.$slots, "tooltip-after", F(
|
|
494
|
+
y(t.$slots, "tooltip-after", I(F({ ...z.value })), void 0, !0)
|
|
494
495
|
]),
|
|
495
496
|
_: 3
|
|
496
497
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
@@ -524,10 +525,10 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
524
525
|
$("div", {
|
|
525
526
|
innerHTML: l,
|
|
526
527
|
style: { display: "flex", "align-items": "center" }
|
|
527
|
-
}, null, 8,
|
|
528
|
+
}, null, 8, ct)
|
|
528
529
|
]),
|
|
529
530
|
td: i(({ td: l }) => [
|
|
530
|
-
re(
|
|
531
|
+
re(O(l.name || l), 1)
|
|
531
532
|
]),
|
|
532
533
|
_: 1
|
|
533
534
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
@@ -536,7 +537,7 @@ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["id"], Ze = ["stdDeviation"]
|
|
|
536
537
|
}, 8, ["config"])) : d("", !0)
|
|
537
538
|
], 14, Je));
|
|
538
539
|
}
|
|
539
|
-
},
|
|
540
|
+
}, xt = /* @__PURE__ */ qe(vt, [["__scopeId", "data-v-a2be7205"]]);
|
|
540
541
|
export {
|
|
541
|
-
|
|
542
|
+
xt as default
|
|
542
543
|
};
|