vue-data-ui 2.4.56 → 2.4.58
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-CjIZFibK.cjs → Arrow-DyvFEpcu.cjs} +1 -1
- package/dist/{Arrow-jPjUEWgL.js → Arrow-gAjHZoeI.js} +1 -1
- package/dist/{BaseIcon-0DNmIdCs.js → BaseIcon-B0g_Fksl.js} +1 -1
- package/dist/{BaseIcon-DF2Lg0Ky.cjs → BaseIcon-DKQOeA_7.cjs} +1 -1
- package/dist/{DataTable-osuWgmyP.cjs → DataTable-Bju6hUOX.cjs} +1 -1
- package/dist/{DataTable-CZSz7b1u.js → DataTable-BloVsNyj.js} +2 -2
- package/dist/{Legend-DecSHp0h.cjs → Legend-BsPIe_nG.cjs} +1 -1
- package/dist/{Legend-CvXmxVoD.js → Legend-CdpH9pz7.js} +1 -1
- package/dist/{PackageVersion-eTcMI7M3.cjs → PackageVersion-Bmujq1-q.cjs} +1 -1
- package/dist/{PackageVersion-CEkiDR72.js → PackageVersion-W3d_oNMs.js} +1 -1
- package/dist/{PenAndPaper-BqcQLMi2.cjs → PenAndPaper-Be8tn5wI.cjs} +1 -1
- package/dist/{PenAndPaper-GjypzQvI.js → PenAndPaper-xuFs3BqZ.js} +3 -3
- package/dist/{Shape-BejfTDlL.js → Shape-CXTDY_Vo.js} +1 -1
- package/dist/{Shape-Diaok0Bu.cjs → Shape-Cx89w9Ul.cjs} +1 -1
- package/dist/{Slicer-9_ewSBRs.js → Slicer-ENfxtrty.js} +2 -2
- package/dist/{Slicer-DFT7ePZ_.cjs → Slicer-HGyFRIya.cjs} +1 -1
- package/dist/{Title-BI9lg56g.js → Title-1u-GspsX.js} +1 -1
- package/dist/{Title-Bw-FXFej.cjs → Title-CNO85jNx.cjs} +1 -1
- package/dist/{Tooltip-sBMzQa_B.js → Tooltip-B-1Q-Tts.js} +1 -1
- package/dist/{Tooltip-98ospYeV.cjs → Tooltip-DQOeAhx3.cjs} +1 -1
- package/dist/{index-ByVaKddw.js → index-BSzkwF5n.js} +3 -1
- package/dist/index-DHwfzZfj.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -0
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useNestedProp-GRBJXe5O.js → useNestedProp-BWC_DPZ5.js} +1 -1
- package/dist/{useNestedProp-CSIVZXvp.cjs → useNestedProp-CSKuqs0C.cjs} +1 -1
- package/dist/{usePrinter-BwruEydS.cjs → usePrinter-D-iwyLyE.cjs} +1 -1
- package/dist/{usePrinter-BsXVX7vh.js → usePrinter-DtwWejoO.js} +1 -1
- package/dist/{vue-data-ui-BqSfqfi4.cjs → vue-data-ui-Com866XF.cjs} +1 -1
- package/dist/{vue-data-ui-B7Y18Xdv.js → vue-data-ui-jb1K_VTO.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-SA6SyIoT.js → vue-ui-3d-bar-Cqc5gqnb.js} +9 -9
- package/dist/{vue-ui-3d-bar-CXv6h_8o.cjs → vue-ui-3d-bar-Dif8_wHk.cjs} +1 -1
- package/dist/{vue-ui-accordion-Dcf8tHzr.js → vue-ui-accordion-CJdfn7N-.js} +3 -3
- package/dist/{vue-ui-accordion-DfqTc4ro.cjs → vue-ui-accordion-lCjQo2kd.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BetdioWW.js → vue-ui-age-pyramid-D89kDZnF.js} +10 -10
- package/dist/{vue-ui-age-pyramid-CG7IY2gE.cjs → vue-ui-age-pyramid-DHxsu2a1.cjs} +1 -1
- package/dist/{vue-ui-annotator-Qf_gPjWZ.js → vue-ui-annotator-Cf-zFFmT.js} +1 -1
- package/dist/{vue-ui-annotator-Bcg6d-GE.cjs → vue-ui-annotator-muK3_F6c.cjs} +1 -1
- package/dist/{vue-ui-bullet-CPHavcOd.cjs → vue-ui-bullet-CKbrouCq.cjs} +1 -1
- package/dist/{vue-ui-bullet-CLRHVfB8.js → vue-ui-bullet-CT5Gkoot.js} +8 -8
- package/dist/{vue-ui-candlestick-exLvYnf4.cjs → vue-ui-candlestick-C3YNgFyO.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DBnrOltA.js → vue-ui-candlestick-DmsHITZF.js} +11 -11
- package/dist/{vue-ui-carousel-table-CHlCmI-_.cjs → vue-ui-carousel-table-BU1bmZWZ.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Bz2XZAC4.js → vue-ui-carousel-table-N7QL7jRR.js} +4 -4
- package/dist/{vue-ui-chestnut-BBhIDuhr.cjs → vue-ui-chestnut-BEALHSS3.cjs} +1 -1
- package/dist/{vue-ui-chestnut-BE6RQkXd.js → vue-ui-chestnut-C7b1puxs.js} +8 -8
- package/dist/{vue-ui-cursor-CpIr7R3C.cjs → vue-ui-cursor-BOS7Yvio.cjs} +1 -1
- package/dist/{vue-ui-cursor-DLQVTUyz.js → vue-ui-cursor-CAnOat4M.js} +2 -2
- package/dist/{vue-ui-dashboard-YWLsOufT.cjs → vue-ui-dashboard-DI22fn9M.cjs} +1 -1
- package/dist/{vue-ui-dashboard-rKdg3soO.js → vue-ui-dashboard-OzgTaY3n.js} +2 -2
- package/dist/{vue-ui-digits-XkrLdWX_.js → vue-ui-digits-DCm2stj-.js} +2 -2
- package/dist/{vue-ui-digits-DFNXL2VX.cjs → vue-ui-digits-DGP4EmpQ.cjs} +1 -1
- package/dist/{vue-ui-donut-CDVHpIvX.js → vue-ui-donut-BilWHtZy.js} +11 -11
- package/dist/{vue-ui-donut-8rW9LlEF.cjs → vue-ui-donut-Jjz58SJJ.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-B1ahKhHv.cjs → vue-ui-donut-evolution-BtfRmlIq.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-By2AYSZT.js → vue-ui-donut-evolution-DKmnEHH_.js} +11 -11
- package/dist/{vue-ui-dumbbell-DIHb9Grh.cjs → vue-ui-dumbbell-C2LYuBRx.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-D1Htb6-R.js → vue-ui-dumbbell-KwkTK5_q.js} +10 -10
- package/dist/{vue-ui-flow-41QVXQeK.cjs → vue-ui-flow-3vjkptJR.cjs} +1 -1
- package/dist/{vue-ui-flow-CCYyDy6C.js → vue-ui-flow-BShJPhpa.js} +9 -9
- package/dist/{vue-ui-funnel-BJ43m1vH.js → vue-ui-funnel-D4xk_DsA.js} +8 -8
- package/dist/{vue-ui-funnel-qPzrqllN.cjs → vue-ui-funnel-DyJdIi_i.cjs} +1 -1
- package/dist/{vue-ui-galaxy-D6dtMQ2A.cjs → vue-ui-galaxy-BmGIzIeD.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DMUq4sez.js → vue-ui-galaxy-Ch3QRiP6.js} +11 -11
- package/dist/{vue-ui-gauge-KGflfPYM.js → vue-ui-gauge-DZUv5beK.js} +127 -125
- package/dist/vue-ui-gauge-LeMSJBEk.cjs +1 -0
- package/dist/{vue-ui-gizmo-CFRsYHo7.js → vue-ui-gizmo-B39J58Zm.js} +3 -3
- package/dist/{vue-ui-gizmo-lKGGpbCe.cjs → vue-ui-gizmo-B7Kum6eT.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DKxnmh08.cjs → vue-ui-heatmap-CqPuEjJ1.cjs} +1 -1
- package/dist/{vue-ui-heatmap-Dj0A6LjZ.js → vue-ui-heatmap-z8KMf1yo.js} +10 -10
- package/dist/{vue-ui-history-plot-ClNqlBER.js → vue-ui-history-plot--Lw1-910.js} +11 -11
- package/dist/{vue-ui-history-plot-IWjqZb4c.cjs → vue-ui-history-plot-bjMvk_4h.cjs} +1 -1
- package/dist/{vue-ui-kpi-BXRYqm31.js → vue-ui-kpi-BgNONvkD.js} +3 -3
- package/dist/{vue-ui-kpi-BRVPBhAp.cjs → vue-ui-kpi-DIuPP4R7.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-Bm_4G8gx.js → vue-ui-mini-loader-BrCuKpE6.js} +2 -2
- package/dist/{vue-ui-mini-loader-NicMq9t0.cjs → vue-ui-mini-loader-DjEyKAQe.cjs} +1 -1
- package/dist/{vue-ui-molecule-Bi9RT7M4.cjs → vue-ui-molecule-C3wtpoCr.cjs} +1 -1
- package/dist/{vue-ui-molecule-BDFarbim.js → vue-ui-molecule-C_eF6tga.js} +11 -11
- package/dist/{vue-ui-mood-radar-DlXCkePO.cjs → vue-ui-mood-radar-BomqP0zI.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DJnPeXpr.js → vue-ui-mood-radar-Ch_Qkx9d.js} +11 -11
- package/dist/{vue-ui-nested-donuts-CYNh2xAI.cjs → vue-ui-nested-donuts-KRq3Fcqy.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-DLcFEPDy.js → vue-ui-nested-donuts-uqfXLRGX.js} +11 -11
- package/dist/{vue-ui-onion-jzYk1NeW.js → vue-ui-onion-CbYOkmrF.js} +11 -11
- package/dist/{vue-ui-onion-UDlJJjud.cjs → vue-ui-onion-G4p7rA61.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BboIA_-E.cjs → vue-ui-parallel-coordinate-plot-B2OIBraO.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BLLYkQEr.js → vue-ui-parallel-coordinate-plot-aLNOckoo.js} +12 -12
- package/dist/{vue-ui-quadrant-C94HXwr8.js → vue-ui-quadrant-CuPCDHgS.js} +12 -12
- package/dist/{vue-ui-quadrant-BSNtsyJ5.cjs → vue-ui-quadrant-DoWeGQSC.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-6fxJ8oH3.js → vue-ui-quick-chart-DBCH5qM1.js} +9 -9
- package/dist/{vue-ui-quick-chart-B9Xbkibp.cjs → vue-ui-quick-chart-DR1qF9kr.cjs} +1 -1
- package/dist/{vue-ui-radar-Q6izz-u2.cjs → vue-ui-radar-B6M2ZChR.cjs} +1 -1
- package/dist/{vue-ui-radar-CQrWi1aN.js → vue-ui-radar-BamYIcPL.js} +12 -12
- package/dist/{vue-ui-rating-Ciyd3dSC.js → vue-ui-rating-DxaSXiPx.js} +2 -2
- package/dist/{vue-ui-rating-DgsUBjAC.cjs → vue-ui-rating-HSL7IrbQ.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BVgfKoJY.js → vue-ui-relation-circle-C9_8YW0u.js} +7 -7
- package/dist/{vue-ui-relation-circle-CAC4jUA7.cjs → vue-ui-relation-circle-CM_QkigI.cjs} +1 -1
- package/dist/{vue-ui-rings-VNKEeLJq.cjs → vue-ui-rings-CmD8g04s.cjs} +1 -1
- package/dist/{vue-ui-rings-DuQmTRbW.js → vue-ui-rings-DFzPi4m9.js} +11 -11
- package/dist/{vue-ui-scatter-CWTRMe0w.cjs → vue-ui-scatter-D_WxNGoY.cjs} +1 -1
- package/dist/{vue-ui-scatter-BlLPdbYP.js → vue-ui-scatter-n_jHEngt.js} +12 -12
- package/dist/{vue-ui-screenshot-Cf9IZKQy.js → vue-ui-screenshot-1_OHWjZv.js} +1 -1
- package/dist/{vue-ui-screenshot-C3nAs5FY.cjs → vue-ui-screenshot-BzY_uB1R.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CcWKK9pd.cjs → vue-ui-skeleton-DKtNfORj.cjs} +1 -1
- package/dist/{vue-ui-skeleton--uwo2sCb.js → vue-ui-skeleton-Ojz7f2oH.js} +3 -3
- package/dist/{vue-ui-smiley-Bc53TV0r.js → vue-ui-smiley-CXvJ3sXA.js} +2 -2
- package/dist/{vue-ui-smiley-BI7CkEhi.cjs → vue-ui-smiley-sKWpgakD.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CKgcM09-.cjs → vue-ui-spark-trend-ByxJmVE5.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-Byey6P0P.js → vue-ui-spark-trend-uyDT9RJC.js} +5 -5
- package/dist/{vue-ui-sparkbar-C2Y0Foie.js → vue-ui-sparkbar-CxW1vMP2.js} +4 -4
- package/dist/{vue-ui-sparkbar-FBEE4RyI.cjs → vue-ui-sparkbar-DYHuBv3f.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DIQjrKUR.cjs → vue-ui-sparkgauge-CCvUn2R2.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Czf3xG6u.js → vue-ui-sparkgauge-NmLBla47.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-MEdLzmyE.js → vue-ui-sparkhistogram-B8SukBWt.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-CNQrhEr4.cjs → vue-ui-sparkhistogram-FU-uE07T.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DNeX0Cst.cjs → vue-ui-sparkline-9LU8yp1t.cjs} +1 -1
- package/dist/{vue-ui-sparkline-Cr2okEps.js → vue-ui-sparkline-CokyAm9w.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CyvjXdi9.cjs → vue-ui-sparkstackbar-9k6C-g_r.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Db83U8wn.js → vue-ui-sparkstackbar-QgZq1O55.js} +5 -5
- package/dist/{vue-ui-stackbar-CQT1OJCn.js → vue-ui-stackbar-CTvPYXjb.js} +306 -291
- package/dist/vue-ui-stackbar-Drqz1of9.cjs +6 -0
- package/dist/{vue-ui-strip-plot-DOzB5USx.js → vue-ui-strip-plot-DXPoWvNA.js} +11 -11
- package/dist/{vue-ui-strip-plot-T8_5JEzy.cjs → vue-ui-strip-plot-UYP2fk1H.cjs} +1 -1
- package/dist/{vue-ui-table-C3O3go3K.cjs → vue-ui-table-8M1ctuqL.cjs} +1 -1
- package/dist/{vue-ui-table-ro63oB6Q.js → vue-ui-table-Bb3BBVjm.js} +1 -1
- package/dist/{vue-ui-table-heatmap-iho4COZg.cjs → vue-ui-table-heatmap-BqQpJ_Ou.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-lftME_w3.js → vue-ui-table-heatmap-Bv0EfTut.js} +4 -4
- package/dist/{vue-ui-table-sparkline-P9DzADZw.js → vue-ui-table-sparkline-Bs72Df0-.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Ce0sOUWt.cjs → vue-ui-table-sparkline-D5xemE-q.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DI4pKvnk.js → vue-ui-thermometer-DRGjTOIy.js} +7 -7
- package/dist/{vue-ui-thermometer-BRYN1bHx.cjs → vue-ui-thermometer-DzynFkq0.cjs} +1 -1
- package/dist/{vue-ui-timer-DTsTsm_i.js → vue-ui-timer-DCA2Dkfi.js} +5 -5
- package/dist/{vue-ui-timer-CsV8Cuty.cjs → vue-ui-timer-W5dIiOew.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-od0aPD4a.cjs → vue-ui-tiremarks-BbAzwE5q.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CjY3b9ph.js → vue-ui-tiremarks-CTqweMbJ.js} +7 -7
- package/dist/{vue-ui-treemap-B69tqCDo.cjs → vue-ui-treemap-CEVP7-S2.cjs} +1 -1
- package/dist/{vue-ui-treemap-B36BRS00.js → vue-ui-treemap-tz9AdMu0.js} +11 -11
- package/dist/{vue-ui-vertical-bar-CK1dtsFn.js → vue-ui-vertical-bar-BEkWSr_A.js} +11 -11
- package/dist/{vue-ui-vertical-bar-8QN9YXK-.cjs → vue-ui-vertical-bar-D_2WzLxJ.cjs} +1 -1
- package/dist/{vue-ui-waffle-CpcyWKuc.cjs → vue-ui-waffle-BAvqVwhK.cjs} +1 -1
- package/dist/{vue-ui-waffle-CaJbFYrA.js → vue-ui-waffle-DQPO5aOU.js} +11 -11
- package/dist/{vue-ui-wheel-WoHPA2Fp.js → vue-ui-wheel-B0u6LKiw.js} +7 -7
- package/dist/{vue-ui-wheel-DJQeNqbc.cjs → vue-ui-wheel-Cjnheeql.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-D3h-mtSd.js → vue-ui-word-cloud-CEns9_NI.js} +10 -10
- package/dist/{vue-ui-word-cloud-BfqeiAU8.cjs → vue-ui-word-cloud-bxF8a7TI.cjs} +1 -1
- package/dist/{vue-ui-xy-iL-McDRN.cjs → vue-ui-xy-BBvVOSPm.cjs} +1 -1
- package/dist/{vue-ui-xy-BTW5rwfL.js → vue-ui-xy-DxpIt6dh.js} +14 -14
- package/dist/{vue-ui-xy-canvas-DtnXa5hf.cjs → vue-ui-xy-canvas--zS_4x6O.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DTySv5nX.js → vue-ui-xy-canvas-D_Qiy2N1.js} +11 -11
- package/package.json +1 -1
- package/dist/index-Cvx5SntE.cjs +0 -9
- package/dist/vue-ui-gauge-BdycQV3W.cjs +0 -1
- package/dist/vue-ui-stackbar-CfmbbZzJ.cjs +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-Cvx5SntE.cjs"),ue=require("./Legend-DecSHp0h.cjs"),ie=require("./Title-Bw-FXFej.cjs"),ce=require("./Tooltip-98ospYeV.cjs"),de=require("./DataTable-osuWgmyP.cjs"),j=require("./usePrinter-BwruEydS.cjs"),ve=require("./vue-ui-skeleton-CcWKK9pd.cjs"),pe=require("./vue-ui-accordion-DfqTc4ro.cjs"),Y=require("./useNestedProp-CSIVZXvp.cjs"),he=require("./PackageVersion-eTcMI7M3.cjs"),fe=require("./PenAndPaper-BqcQLMi2.cjs"),ye=require("./useUserOptionState-BgepsfED.cjs"),ge=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),me=["id"],be={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},ke={key:2,style:"width:100%;background:transparent;padding-bottom:24px"},Ce=["xmlns","viewBox"],we=["id"],xe=["stdDeviation"],$e=["d","stroke","stroke-width"],Be=["d","stroke","stroke-width"],Se=["filter"],Ne=["d","stroke","stroke-width"],Te=["d","stroke-width","onMouseenter","onClick"],Pe={key:5,class:"vue-data-ui-watermark"},_e=["onClick"],Ve={key:0},Ee={key:1},Le={key:8,ref:"source",dir:"auto"},Oe=["innerHTML"],Fe={__name:"vue-ui-galaxy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(J,{expose:K,emit:_}){const i=J,{vue_ui_galaxy:Q}=r.useConfig(),b=e.computed(()=>!!i.dataset&&i.dataset.length);e.onMounted(()=>{V()});function V(){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 g=e.ref(r.createUid()),k=e.ref(null),Z=e.ref(null),x=e.ref(!1),$=e.ref(""),c=e.ref(null),E=e.ref(0),L=e.ref(0),O=e.ref(0),F=e.ref(0),t=e.computed({get:()=>I(),set:l=>l}),{userOptionsVisible:B,setUserOptionsVisibility:A,keepUserOptionState:z}=ye.useUserOptionState({config:t.value});function I(){const l=Y.useNestedProp({userConfig:i.config,defaultConfig:Q});return l.theme?{...Y.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=I(),B.value=!t.value.showOnChartHover,V(),L.value+=1,O.value+=1,F.value+=1},{deep:!0});const{isPrinting:D,isImaging:q,generatePdf:M,generateImage:U}=j.usePrinter({elementId:`galaxy_${g.value}`,fileName:t.value.style.chart.title.text||"vue-ui-galaxy"}),ee=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),te=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}),S=e.ref({height:180,width:250}),u=e.ref([]);function N(l){u.value.includes(l.id)?u.value=u.value.filter(a=>a!==l.id):u.value.push(l.id),_("selectLegend",m.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const h=e.computed(()=>i.dataset.map((l,a)=>({name:l.name,color:r.convertColorToHex(l.color)||te.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 le(){return h.value.map(l=>({name:l.name,color:l.color,value:l.value}))}const d=e.computed(()=>h.value.filter(l=>!u.value.includes(l.id)).map(l=>l.value).reduce((l,a)=>l+a,0)),oe=e.ref(190),G=e.computed(()=>h.value.filter(l=>!u.value.includes(l.id))),m=e.computed(()=>{const l=[];for(let a=0;a<G.value.length;a+=1){const o=G.value[a];let n=o.value/d.value*oe.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)}),y=e.ref(!1);function ae(l){y.value=l,E.value+=1}const T=e.ref(null);function re({datapoint:l,_relativeIndex:a,seriesIndex:o,show:n=!1}){T.value={datapoint:l,seriesIndex:o,series:h.value,config:t.value},x.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:h.value,config:t.value}))?$.value=f({seriesIndex:o,datapoint:l,series:h.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>`),$.value=`<div>${s}</div>`)}const W=e.computed(()=>h.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:()=>N(l),isSegregated:u.value.includes(l.id)}))),ne=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":""})),p=e.computed(()=>{const l=m.value.map(o=>({name:o.name,color:o.color})),a=m.value.map(o=>o.value);return{head:l,body:a}});function H(){e.nextTick(()=>{const l=p.value.head.map((n,s)=>[[n.name],[p.value.body[s]],[isNaN(p.value.body[s]/d.value)?"-":p.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 C=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=p.value.head.map((s,f)=>{const se=r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:p.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},se,isNaN(p.value.body[f]/d.value)?"-":r.dataLabel({v:p.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 R(){v.value.showTable=!v.value.showTable}function X(){v.value.showTooltip=!v.value.showTooltip}const w=e.ref(!1);function P(){w.value=!w.value}return K({getData:le,generatePdf:M,generateCsv:H,generateImage:U,toggleTable:R,toggleTooltip:X,toggleAnnotator:P}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"galaxyChart",ref:k,class:e.normalizeClass(`vue-ui-galaxy ${y.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_${g.value}`,onMouseenter:a[3]||(a[3]=()=>e.unref(A)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(A)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(fe.PenAndPaper,{key:0,parent:k.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:w.value,onClose:P},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ee.value?(e.openBlock(),e.createElementBlock("div",be,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",ke,[(e.openBlock(),e.createBlock(ie._sfc_main,{key:`title_${L.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.unref(z)||e.unref(B))?(e.openBlock(),e.createBlock(j.UserOptions,{ref_key:"details",ref:Z,key:`user_option_${E.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(D),isImaging:e.unref(q),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:v.value.showTooltip,isFullscreen:y.value,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:ae,onGeneratePdf:e.unref(M),onGenerateCsv:H,onGenerateImage:e.unref(U),onToggleTable:R,onToggleTooltip:X,onToggleAnnotator:P,style:e.normalizeStyle({visibility:e.unref(z)?e.unref(B)?"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:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:n})),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),b.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":y.value,"vue-data-ui-fulscreen--off":!y.value}),viewBox:`0 0 ${S.value.width} ${S.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(he._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${g.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,xe)],8,we)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.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,$e)):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,Be)):e.createCommentVNode("",!0),o.value&&t.value.style.chart.layout.arcs.gradient.show?(e.openBlock(),e.createElementBlock("g",{key:2,filter:`url(#blur_${g.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,Ne)],8,Se)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.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=>re({datapoint:o,relativeIndex:n,seriesIndex:o.seriesIndex,show:!0}),onMouseleave:a[0]||(a[0]=s=>{x.value=!1,c.value=null}),onClick:s=>_("selectDatapoint",o)},null,40,Te)):e.createCommentVNode("",!0)]))),256)),e.renderSlot(l.$slots,"svg",{svg:S.value},void 0,!0)],14,Ce)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Pe,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(D)||e.unref(q)})),void 0,!0)])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ve.default,{key:6,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(ue.Legend,{key:`legend_${F.value}`,legendSet:W.value,config:ne.value,onClickMarker:a[1]||(a[1]=({legend:o})=>N(o))},{item:e.withCtx(({legend:o,index:n})=>[e.createElementVNode("div",{onClick:s=>N(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",Ee," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Ve," ("+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,_e)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"legend",{legend:W.value},void 0,!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",Le,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ce._sfc_main,{show:v.value.showTooltip&&x.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:k.value,content:$.value,isFullscreen:y.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","isFullscreen","isCustom"]),b.value?(e.openBlock(),e.createBlock(pe.default,{key:9,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(de.DataTable,{key:`table_${O.value}`,colNames:C.value.colNames,head:C.value.head,body:C.value.body,config:C.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,Oe)]),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,me))}},Ae=ge._export_sfc(Fe,[["__scopeId","data-v-00c62e74"]]);exports.default=Ae;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DHwfzZfj.cjs"),ue=require("./Legend-BsPIe_nG.cjs"),ie=require("./Title-CNO85jNx.cjs"),ce=require("./Tooltip-DQOeAhx3.cjs"),de=require("./DataTable-Bju6hUOX.cjs"),j=require("./usePrinter-D-iwyLyE.cjs"),ve=require("./vue-ui-skeleton-DKtNfORj.cjs"),pe=require("./vue-ui-accordion-lCjQo2kd.cjs"),Y=require("./useNestedProp-CSKuqs0C.cjs"),he=require("./PackageVersion-Bmujq1-q.cjs"),fe=require("./PenAndPaper-Be8tn5wI.cjs"),ye=require("./useUserOptionState-BgepsfED.cjs"),ge=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),me=["id"],be={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},ke={key:2,style:"width:100%;background:transparent;padding-bottom:24px"},Ce=["xmlns","viewBox"],we=["id"],xe=["stdDeviation"],$e=["d","stroke","stroke-width"],Be=["d","stroke","stroke-width"],Se=["filter"],Ne=["d","stroke","stroke-width"],Te=["d","stroke-width","onMouseenter","onClick"],Pe={key:5,class:"vue-data-ui-watermark"},_e=["onClick"],Ve={key:0},Ee={key:1},Le={key:8,ref:"source",dir:"auto"},Oe=["innerHTML"],Fe={__name:"vue-ui-galaxy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(J,{expose:K,emit:_}){const i=J,{vue_ui_galaxy:Q}=r.useConfig(),b=e.computed(()=>!!i.dataset&&i.dataset.length);e.onMounted(()=>{V()});function V(){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 g=e.ref(r.createUid()),k=e.ref(null),Z=e.ref(null),x=e.ref(!1),$=e.ref(""),c=e.ref(null),E=e.ref(0),L=e.ref(0),O=e.ref(0),F=e.ref(0),t=e.computed({get:()=>I(),set:l=>l}),{userOptionsVisible:B,setUserOptionsVisibility:A,keepUserOptionState:z}=ye.useUserOptionState({config:t.value});function I(){const l=Y.useNestedProp({userConfig:i.config,defaultConfig:Q});return l.theme?{...Y.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=I(),B.value=!t.value.showOnChartHover,V(),L.value+=1,O.value+=1,F.value+=1},{deep:!0});const{isPrinting:D,isImaging:q,generatePdf:M,generateImage:U}=j.usePrinter({elementId:`galaxy_${g.value}`,fileName:t.value.style.chart.title.text||"vue-ui-galaxy"}),ee=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),te=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}),S=e.ref({height:180,width:250}),u=e.ref([]);function N(l){u.value.includes(l.id)?u.value=u.value.filter(a=>a!==l.id):u.value.push(l.id),_("selectLegend",m.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const h=e.computed(()=>i.dataset.map((l,a)=>({name:l.name,color:r.convertColorToHex(l.color)||te.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 le(){return h.value.map(l=>({name:l.name,color:l.color,value:l.value}))}const d=e.computed(()=>h.value.filter(l=>!u.value.includes(l.id)).map(l=>l.value).reduce((l,a)=>l+a,0)),oe=e.ref(190),G=e.computed(()=>h.value.filter(l=>!u.value.includes(l.id))),m=e.computed(()=>{const l=[];for(let a=0;a<G.value.length;a+=1){const o=G.value[a];let n=o.value/d.value*oe.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)}),y=e.ref(!1);function ae(l){y.value=l,E.value+=1}const T=e.ref(null);function re({datapoint:l,_relativeIndex:a,seriesIndex:o,show:n=!1}){T.value={datapoint:l,seriesIndex:o,series:h.value,config:t.value},x.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:h.value,config:t.value}))?$.value=f({seriesIndex:o,datapoint:l,series:h.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>`),$.value=`<div>${s}</div>`)}const W=e.computed(()=>h.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:()=>N(l),isSegregated:u.value.includes(l.id)}))),ne=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":""})),p=e.computed(()=>{const l=m.value.map(o=>({name:o.name,color:o.color})),a=m.value.map(o=>o.value);return{head:l,body:a}});function H(){e.nextTick(()=>{const l=p.value.head.map((n,s)=>[[n.name],[p.value.body[s]],[isNaN(p.value.body[s]/d.value)?"-":p.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 C=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=p.value.head.map((s,f)=>{const se=r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:p.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},se,isNaN(p.value.body[f]/d.value)?"-":r.dataLabel({v:p.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 R(){v.value.showTable=!v.value.showTable}function X(){v.value.showTooltip=!v.value.showTooltip}const w=e.ref(!1);function P(){w.value=!w.value}return K({getData:le,generatePdf:M,generateCsv:H,generateImage:U,toggleTable:R,toggleTooltip:X,toggleAnnotator:P}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"galaxyChart",ref:k,class:e.normalizeClass(`vue-ui-galaxy ${y.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_${g.value}`,onMouseenter:a[3]||(a[3]=()=>e.unref(A)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(A)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(fe.PenAndPaper,{key:0,parent:k.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:w.value,onClose:P},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ee.value?(e.openBlock(),e.createElementBlock("div",be,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",ke,[(e.openBlock(),e.createBlock(ie._sfc_main,{key:`title_${L.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.unref(z)||e.unref(B))?(e.openBlock(),e.createBlock(j.UserOptions,{ref_key:"details",ref:Z,key:`user_option_${E.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(D),isImaging:e.unref(q),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:v.value.showTooltip,isFullscreen:y.value,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:ae,onGeneratePdf:e.unref(M),onGenerateCsv:H,onGenerateImage:e.unref(U),onToggleTable:R,onToggleTooltip:X,onToggleAnnotator:P,style:e.normalizeStyle({visibility:e.unref(z)?e.unref(B)?"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:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:n})),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),b.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":y.value,"vue-data-ui-fulscreen--off":!y.value}),viewBox:`0 0 ${S.value.width} ${S.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(he._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${g.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,xe)],8,we)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.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,$e)):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,Be)):e.createCommentVNode("",!0),o.value&&t.value.style.chart.layout.arcs.gradient.show?(e.openBlock(),e.createElementBlock("g",{key:2,filter:`url(#blur_${g.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,Ne)],8,Se)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.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=>re({datapoint:o,relativeIndex:n,seriesIndex:o.seriesIndex,show:!0}),onMouseleave:a[0]||(a[0]=s=>{x.value=!1,c.value=null}),onClick:s=>_("selectDatapoint",o)},null,40,Te)):e.createCommentVNode("",!0)]))),256)),e.renderSlot(l.$slots,"svg",{svg:S.value},void 0,!0)],14,Ce)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Pe,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(D)||e.unref(q)})),void 0,!0)])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ve.default,{key:6,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(ue.Legend,{key:`legend_${F.value}`,legendSet:W.value,config:ne.value,onClickMarker:a[1]||(a[1]=({legend:o})=>N(o))},{item:e.withCtx(({legend:o,index:n})=>[e.createElementVNode("div",{onClick:s=>N(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",Ee," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Ve," ("+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,_e)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"legend",{legend:W.value},void 0,!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",Le,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ce._sfc_main,{show:v.value.showTooltip&&x.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:k.value,content:$.value,isFullscreen:y.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","isFullscreen","isCustom"]),b.value?(e.openBlock(),e.createBlock(pe.default,{key:9,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(de.DataTable,{key:`table_${O.value}`,colNames:C.value.colNames,head:C.value.head,body:C.value.body,config:C.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,Oe)]),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,me))}},Ae=ge._export_sfc(Fe,[["__scopeId","data-v-00c62e74"]]);exports.default=Ae;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { computed as h, onMounted as Le, ref as u, watch as Fe, openBlock as o, createElementBlock as i, normalizeClass as A, normalizeStyle as V, unref as n, createBlock as $, createCommentVNode as c, createSlots as Ie, withCtx as v, renderSlot as d, normalizeProps as S, guardReactiveProps as O, createVNode as ie, createElementVNode as _, Fragment as ce, renderList as ve, createTextVNode as de, toDisplayString as E, nextTick as Ae } from "vue";
|
|
2
|
-
import { u as Ve, o as Ee, e as he, g as Me, c as pe, t as De, a as Be, p as M, b as Ge, d as ze, J as ye, M as Ue, f as k, X as We, i as fe, x as ge, y as He, q as Xe, r as Re } from "./index-
|
|
3
|
-
import { L as Ye } from "./Legend-
|
|
4
|
-
import { _ as je } from "./Title-
|
|
5
|
-
import { _ as qe } from "./Tooltip-
|
|
6
|
-
import { D as Je } from "./DataTable-
|
|
7
|
-
import { u as Ke, U as Qe } from "./usePrinter-
|
|
8
|
-
import Ze from "./vue-ui-skeleton
|
|
9
|
-
import et from "./vue-ui-accordion-
|
|
10
|
-
import { u as be } from "./useNestedProp-
|
|
11
|
-
import { _ as tt } from "./PackageVersion-
|
|
12
|
-
import { P as lt } from "./PenAndPaper-
|
|
2
|
+
import { u as Ve, o as Ee, e as he, g as Me, c as pe, t as De, a as Be, p as M, b as Ge, d as ze, J as ye, M as Ue, f as k, X as We, i as fe, x as ge, y as He, q as Xe, r as Re } from "./index-BSzkwF5n.js";
|
|
3
|
+
import { L as Ye } from "./Legend-CdpH9pz7.js";
|
|
4
|
+
import { _ as je } from "./Title-1u-GspsX.js";
|
|
5
|
+
import { _ as qe } from "./Tooltip-B-1Q-Tts.js";
|
|
6
|
+
import { D as Je } from "./DataTable-BloVsNyj.js";
|
|
7
|
+
import { u as Ke, U as Qe } from "./usePrinter-DtwWejoO.js";
|
|
8
|
+
import Ze from "./vue-ui-skeleton-Ojz7f2oH.js";
|
|
9
|
+
import et from "./vue-ui-accordion-CJdfn7N-.js";
|
|
10
|
+
import { u as be } from "./useNestedProp-BWC_DPZ5.js";
|
|
11
|
+
import { _ as tt } from "./PackageVersion-W3d_oNMs.js";
|
|
12
|
+
import { P as lt } from "./PenAndPaper-xuFs3BqZ.js";
|
|
13
13
|
import { u as at } from "./useUserOptionState-BIvW1Kz7.js";
|
|
14
14
|
import { _ as ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const st = ["id"], rt = {
|