vue-data-ui 2.10.7 → 2.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/{Arrow-CZUwKF2D.js → Arrow-DCEAiiSq.js} +1 -1
- package/dist/{Arrow-CB6EKr1I.cjs → Arrow-kcA0IBBo.cjs} +1 -1
- package/dist/{BaseIcon-BkA9Q34x.cjs → BaseIcon-CmdFxgkp.cjs} +1 -1
- package/dist/{BaseIcon-Bzv6qbPZ.js → BaseIcon-DPO_4Adb.js} +1 -1
- package/dist/{ColorPicker-C_UcScy-.js → ColorPicker-D0FMoBTo.js} +3 -3
- package/dist/{ColorPicker-CSWIZQFG.cjs → ColorPicker-DJn8_rVA.cjs} +1 -1
- package/dist/{DataTable-BhwIv7c6.js → DataTable-BaAjwD5U.js} +2 -2
- package/dist/{DataTable-BmSWykCq.cjs → DataTable-OM4js4qI.cjs} +1 -1
- package/dist/{Legend-CubpFiQC.js → Legend-DqxOfhbM.js} +2 -2
- package/dist/{Legend-CMib9jhR.cjs → Legend-qwuGpvF8.cjs} +1 -1
- package/dist/{PackageVersion-9kqlnk5q.cjs → PackageVersion-Di-ZyR0_.cjs} +1 -1
- package/dist/{PackageVersion-DmKsiZge.js → PackageVersion-gI4tUgWr.js} +1 -1
- package/dist/{PenAndPaper-CfWPwfS1.cjs → PenAndPaper-CtYhqkG5.cjs} +1 -1
- package/dist/{PenAndPaper-Dgf1a1MW.js → PenAndPaper-Di3hcmp3.js} +3 -3
- package/dist/{Shape-DVn1gKjR.cjs → Shape-CHiMFkEQ.cjs} +1 -1
- package/dist/{Shape-BUW7OeOM.js → Shape-DJcgH2ks.js} +1 -1
- package/dist/{Slicer-ud5drJRz.cjs → Slicer-BrBOWXeJ.cjs} +1 -1
- package/dist/{Slicer-jB5tCct6.js → Slicer-DWZhB9e4.js} +2 -2
- package/dist/{Title-BDdzEGgo.js → Title-B55VMGbm.js} +1 -1
- package/dist/{Title-EjA2nkhd.cjs → Title-BiyGREAz.cjs} +1 -1
- package/dist/{Tooltip-Dr2CQpGZ.cjs → Tooltip-C-Kq18lz.cjs} +1 -1
- package/dist/{Tooltip-Cdkz2ese.js → Tooltip-CMiCE06y.js} +1 -1
- package/dist/documentation/installation.md +1 -1
- package/dist/{dom-to-png-0ag5uZSL.js → dom-to-png-C6TvW1Fi.js} +1 -1
- package/dist/{dom-to-png-DfWDULgW.cjs → dom-to-png-vuA7iQ84.cjs} +1 -1
- package/dist/{img-BFXiOvkr.cjs → img-DHHWE-ji.cjs} +1 -1
- package/dist/{img-DB4eqtiV.js → img-z4AasNO4.js} +1 -1
- package/dist/index-DlALYfRS.cjs +9 -0
- package/dist/{index-Co_0CzhC.js → index-bVqxfptX.js} +9 -2
- package/dist/{pdf-DUrwlnsH.js → pdf-Ch5KSecz.js} +1 -1
- package/dist/{pdf-D_ScD9oB.cjs → pdf-D2qvws06.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +5 -0
- package/dist/types/vue-data-ui.d.ts +5 -0
- package/dist/{useNestedProp-DjOgO33z.cjs → useNestedProp-BZX7zlGv.cjs} +1 -1
- package/dist/{useNestedProp-DqI_VUcm.js → useNestedProp-DU-vsdTb.js} +1 -1
- package/dist/{usePrinter-BV6TePSm.js → usePrinter-BbeIGqpA.js} +3 -3
- package/dist/{usePrinter-CynLTaVl.cjs → usePrinter-n1HzfoSm.cjs} +1 -1
- package/dist/{vue-data-ui-D0yLIHBU.js → vue-data-ui-BI_bQ5jM.js} +62 -62
- package/dist/{vue-data-ui-BTfYQKf1.cjs → vue-data-ui-DRqEhGYC.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-cz81vDyE.cjs → vue-ui-3d-bar-BBKU0pAV.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-c10gAuCo.js → vue-ui-3d-bar-MSs9iIHL.js} +9 -9
- package/dist/{vue-ui-accordion-BrbibtJK.cjs → vue-ui-accordion-CByAeInD.cjs} +1 -1
- package/dist/{vue-ui-accordion-DMCnTtx0.js → vue-ui-accordion-DQKCLM2T.js} +3 -3
- package/dist/{vue-ui-age-pyramid-VrC5Ul6m.cjs → vue-ui-age-pyramid-D05rUuJG.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-qvsOA8yi.js → vue-ui-age-pyramid-pX29qF4-.js} +10 -10
- package/dist/{vue-ui-annotator-Difg_FB4.js → vue-ui-annotator-BuG8aus2.js} +2 -2
- package/dist/{vue-ui-annotator-DYHa8k6K.cjs → vue-ui-annotator-CvcBBO7e.cjs} +1 -1
- package/dist/{vue-ui-bullet-D9jQThZ5.js → vue-ui-bullet-B9Xg6ifm.js} +8 -8
- package/dist/{vue-ui-bullet-Ck8VFaeu.cjs → vue-ui-bullet-BdvVX5da.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CkGKxPxw.js → vue-ui-candlestick-B_iC_QzE.js} +11 -11
- package/dist/{vue-ui-candlestick-Dsd_ba5D.cjs → vue-ui-candlestick-DPEZe5JP.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CR-iVMMe.js → vue-ui-carousel-table-DGEoBYe-.js} +4 -4
- package/dist/{vue-ui-carousel-table-46CpWaYv.cjs → vue-ui-carousel-table-DOB6NiBx.cjs} +1 -1
- package/dist/{vue-ui-chestnut-C9hkjAMP.js → vue-ui-chestnut-CiWVelvx.js} +8 -8
- package/dist/{vue-ui-chestnut-DpZW075x.cjs → vue-ui-chestnut-DxF_6jB2.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-DCiIAJrq.js → vue-ui-circle-pack-CJN2ybvx.js} +9 -9
- package/dist/{vue-ui-circle-pack-5_vQ6vaC.cjs → vue-ui-circle-pack-XEEX0oEn.cjs} +1 -1
- package/dist/{vue-ui-cursor-DkNjb-zj.cjs → vue-ui-cursor-7loRJMGF.cjs} +1 -1
- package/dist/{vue-ui-cursor-Cts6qtAH.js → vue-ui-cursor-CqAjc9W_.js} +2 -2
- package/dist/{vue-ui-dashboard-DHHIcBg0.cjs → vue-ui-dashboard-CQn61jnh.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Db-_ElsA.js → vue-ui-dashboard-CdpzgIs_.js} +62 -62
- package/dist/{vue-ui-digits--pkv7eKf.js → vue-ui-digits-7ACjmgPM.js} +2 -2
- package/dist/{vue-ui-digits-BV--b8cv.cjs → vue-ui-digits-CuxGcV9M.cjs} +1 -1
- package/dist/{vue-ui-donut-D1OlfgtH.cjs → vue-ui-donut-BtvQmKji.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-2mbVNu_w.js → vue-ui-donut-evolution-BpEJNoJM.js} +11 -11
- package/dist/{vue-ui-donut-evolution-BetPU8WD.cjs → vue-ui-donut-evolution-fOc16UtY.cjs} +1 -1
- package/dist/{vue-ui-donut-BxbbhGmV.js → vue-ui-donut-m7KcUt0k.js} +12 -12
- package/dist/{vue-ui-dumbbell-B4tWeLVq.cjs → vue-ui-dumbbell-BTvPq02T.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-Brfkbz4H.js → vue-ui-dumbbell-Sy7rxejU.js} +10 -10
- package/dist/vue-ui-flow-BccWxEzt.cjs +3 -0
- package/dist/vue-ui-flow-CbszU2ms.js +755 -0
- package/dist/{vue-ui-funnel-Bga3R3li.js → vue-ui-funnel-D3b6l6X6.js} +9 -9
- package/dist/{vue-ui-funnel-DJIRpxX0.cjs → vue-ui-funnel-D87BZsNK.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DjpT9A4L.cjs → vue-ui-galaxy-CDGqzTCy.cjs} +1 -1
- package/dist/{vue-ui-galaxy-CtUY6byr.js → vue-ui-galaxy-CUuzThWx.js} +11 -11
- package/dist/{vue-ui-gauge-Bob29zui.js → vue-ui-gauge-24FEcSzr.js} +7 -7
- package/dist/{vue-ui-gauge-ByLQRCM5.cjs → vue-ui-gauge-B6RkYKug.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DBCKjWN0.cjs → vue-ui-gizmo-BAsoCXMw.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Dj1TLLb1.js → vue-ui-gizmo-DeYTfhQU.js} +3 -3
- package/dist/{vue-ui-heatmap-BYH3bosu.js → vue-ui-heatmap-DpmJyXn-.js} +10 -10
- package/dist/{vue-ui-heatmap-CAUnlp-o.cjs → vue-ui-heatmap-QCkbTog8.cjs} +1 -1
- package/dist/{vue-ui-history-plot-CbTOgmxa.cjs → vue-ui-history-plot-BAW3WchG.cjs} +1 -1
- package/dist/{vue-ui-history-plot-C1kOJElL.js → vue-ui-history-plot-CBeiEcTE.js} +11 -11
- package/dist/{vue-ui-kpi-BUoc8QIz.js → vue-ui-kpi-3gKMDrTH.js} +3 -3
- package/dist/{vue-ui-kpi-DTWa9I78.cjs → vue-ui-kpi-Pki59wPC.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C1awnIuZ.cjs → vue-ui-mini-loader-BdSgh6y-.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CSmFWNXS.js → vue-ui-mini-loader-Bo-F8i3n.js} +2 -2
- package/dist/{vue-ui-molecule-CgSPoJxN.cjs → vue-ui-molecule-Bbs_Vy-A.cjs} +1 -1
- package/dist/{vue-ui-molecule-D9kSZQHB.js → vue-ui-molecule-DkVkHwM_.js} +11 -11
- package/dist/{vue-ui-mood-radar-qd5CCM58.js → vue-ui-mood-radar-7qs15-ye.js} +11 -11
- package/dist/{vue-ui-mood-radar-DpQ8EBTg.cjs → vue-ui-mood-radar-DcyKE-45.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-OqJPZW8l.js → vue-ui-nested-donuts-BYwluLLM.js} +11 -11
- package/dist/{vue-ui-nested-donuts-BP9gsX6T.cjs → vue-ui-nested-donuts-iifvTxeT.cjs} +1 -1
- package/dist/{vue-ui-onion-rNOeD9u1.js → vue-ui-onion-B7Asvx4M.js} +11 -11
- package/dist/{vue-ui-onion-DYIgsIYr.cjs → vue-ui-onion-DsS8vdCr.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CDwhmDGl.cjs → vue-ui-parallel-coordinate-plot-CWyjLwOL.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DQd14cew.js → vue-ui-parallel-coordinate-plot-CayH9RQe.js} +12 -12
- package/dist/{vue-ui-quadrant-RRM343kT.cjs → vue-ui-quadrant--6zm3Tkv.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CH856J9A.js → vue-ui-quadrant-BSjpS3JD.js} +12 -12
- package/dist/{vue-ui-quick-chart-BLq8C-m8.js → vue-ui-quick-chart-DbfWPULd.js} +9 -9
- package/dist/{vue-ui-quick-chart-BXYgI65b.cjs → vue-ui-quick-chart-DkUGMBfD.cjs} +1 -1
- package/dist/{vue-ui-radar-38OxxA3O.cjs → vue-ui-radar-BrA-apr-.cjs} +1 -1
- package/dist/{vue-ui-radar-BuCYH3tO.js → vue-ui-radar-CvK5Nz5U.js} +12 -12
- package/dist/{vue-ui-rating-D6OL6Aml.js → vue-ui-rating-C5qFRKy9.js} +2 -2
- package/dist/{vue-ui-rating-CiqatGZ_.cjs → vue-ui-rating-ctOiwHRD.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DDYGMgUl.cjs → vue-ui-relation-circle-35rE0_C0.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-ByhUL4R6.js → vue-ui-relation-circle-ChUKc3S5.js} +7 -7
- package/dist/{vue-ui-ridgeline-C550XNkk.cjs → vue-ui-ridgeline-C_LoyQPY.cjs} +1 -1
- package/dist/{vue-ui-ridgeline-B5126LSF.js → vue-ui-ridgeline-DDrBrbxq.js} +12 -12
- package/dist/{vue-ui-rings-DPXct3je.js → vue-ui-rings-DGhi_Jcb.js} +12 -12
- package/dist/{vue-ui-rings-Dxp4dmO2.cjs → vue-ui-rings-IM473vOr.cjs} +1 -1
- package/dist/{vue-ui-scatter-BWmY2_ij.cjs → vue-ui-scatter-B7h_hWj7.cjs} +1 -1
- package/dist/{vue-ui-scatter-_DhEpcsw.js → vue-ui-scatter-DS9rUuE5.js} +12 -12
- package/dist/{vue-ui-skeleton-Dzehgcp3.js → vue-ui-skeleton-BARmXI9_.js} +3 -3
- package/dist/{vue-ui-skeleton-DvJP74jb.cjs → vue-ui-skeleton-C-I7hIHS.cjs} +1 -1
- package/dist/{vue-ui-smiley-BHd1V1Dv.js → vue-ui-smiley-Ce4Rju1r.js} +2 -2
- package/dist/{vue-ui-smiley-CtDCCsfg.cjs → vue-ui-smiley-DwI6j0i8.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DDf1hJwg.cjs → vue-ui-spark-trend-BfcDH-Gp.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DDX-fjR-.js → vue-ui-spark-trend-CE1USqg6.js} +5 -5
- package/dist/{vue-ui-sparkbar-BWeY-FcV.js → vue-ui-sparkbar-B3NBNGl8.js} +4 -4
- package/dist/{vue-ui-sparkbar-BT5NEz93.cjs → vue-ui-sparkbar-CdDBwkff.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-IYvYlZ57.cjs → vue-ui-sparkgauge-CPq_DRcO.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BQMHbq8E.js → vue-ui-sparkgauge-Kgl_vvc7.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-cjsCsNyf.cjs → vue-ui-sparkhistogram-B9Mf4nA9.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-C5EdWvQP.js → vue-ui-sparkhistogram-DNvaByAm.js} +5 -5
- package/dist/{vue-ui-sparkline-CbKIpwVC.js → vue-ui-sparkline-6fUsXxoo.js} +4 -4
- package/dist/{vue-ui-sparkline-BwZJpAAf.cjs → vue-ui-sparkline-DPFtUR9k.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-COxIfFgm.js → vue-ui-sparkstackbar-B_O87Udb.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BVJU36Jz.cjs → vue-ui-sparkstackbar-D8gErBiD.cjs} +1 -1
- package/dist/{vue-ui-stackbar-Dr5hRx6G.js → vue-ui-stackbar-SQkqb5uZ.js} +13 -13
- package/dist/{vue-ui-stackbar-CQ56hps8.cjs → vue-ui-stackbar-a7bzDCRQ.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-B_nfC_fx.cjs → vue-ui-strip-plot-BbCMpSG9.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Mct4OE0A.js → vue-ui-strip-plot-Czg_UcLg.js} +11 -11
- package/dist/{vue-ui-table-B6LG28n8.js → vue-ui-table-B0ANgSAH.js} +3 -3
- package/dist/{vue-ui-table-DE3wOTyH.cjs → vue-ui-table-DTys0wh5.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DDOoKybT.js → vue-ui-table-heatmap---afBYht.js} +4 -4
- package/dist/{vue-ui-table-heatmap-DuMRCIbx.cjs → vue-ui-table-heatmap-B46ApT8a.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-gZWWmkQe.cjs → vue-ui-table-sparkline-CSi_2E82.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-D578FuNQ.js → vue-ui-table-sparkline-cuO4BEcb.js} +5 -5
- package/dist/{vue-ui-thermometer-BWHsyYj8.cjs → vue-ui-thermometer-Bco6ThIk.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DFbYODrU.js → vue-ui-thermometer-Cu3N2aZN.js} +7 -7
- package/dist/{vue-ui-timer-Bi6Q0m_J.js → vue-ui-timer-DnQAvYVy.js} +5 -5
- package/dist/{vue-ui-timer-s73pZhYM.cjs → vue-ui-timer-GkxVjTEC.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BcFJOrF8.cjs → vue-ui-tiremarks-CNW6BXVF.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-C68rB2kd.js → vue-ui-tiremarks-PX1AQ6u9.js} +7 -7
- package/dist/{vue-ui-treemap-b5rZtLKn.js → vue-ui-treemap-Drg5MEcW.js} +12 -12
- package/dist/{vue-ui-treemap-B7_kcMng.cjs → vue-ui-treemap-dm6Ion7A.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DyZ-gfQi.js → vue-ui-vertical-bar-BtkKFF7C.js} +12 -12
- package/dist/{vue-ui-vertical-bar-Bw42kw9a.cjs → vue-ui-vertical-bar-eA-iYb9s.cjs} +1 -1
- package/dist/{vue-ui-waffle-CG05FL_H.js → vue-ui-waffle-BAFVYzdi.js} +12 -12
- package/dist/{vue-ui-waffle-tk3zMyjq.cjs → vue-ui-waffle-Bn77Yd88.cjs} +1 -1
- package/dist/{vue-ui-wheel-RzXEZFfN.cjs → vue-ui-wheel-D4VdCS3n.cjs} +1 -1
- package/dist/{vue-ui-wheel-BTbteaZS.js → vue-ui-wheel-fMANwaEy.js} +7 -7
- package/dist/{vue-ui-word-cloud-BKubtYCS.js → vue-ui-word-cloud-Du0UUBsh.js} +10 -10
- package/dist/{vue-ui-word-cloud-CUZ1Mm3Q.cjs → vue-ui-word-cloud-bX4J2Y8V.cjs} +1 -1
- package/dist/{vue-ui-world-BF0wSEJb.js → vue-ui-world-B-Guo08O.js} +11 -11
- package/dist/{vue-ui-world-BPcoReDh.cjs → vue-ui-world-BHNBu5o5.cjs} +1 -1
- package/dist/{vue-ui-xy-AgcMweTZ.js → vue-ui-xy-BN9Lh6Ic.js} +16 -16
- package/dist/{vue-ui-xy-C8ZEeV9g.cjs → vue-ui-xy-BkQt8l_A.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-CYaJZj3B.js → vue-ui-xy-canvas-D9avmh08.js} +12 -12
- package/dist/{vue-ui-xy-canvas-CJl9RPzv.cjs → vue-ui-xy-canvas-cfQsHd-5.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-BX4v5fiN.cjs +0 -9
- package/dist/vue-ui-flow-BSptjAOo.cjs +0 -1
- package/dist/vue-ui-flow-BtfK7Ixu.js +0 -655
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BX4v5fiN.cjs"),Te=require("./Title-EjA2nkhd.cjs"),ie=require("./usePrinter-CynLTaVl.cjs"),Be=require("./DataTable-BmSWykCq.cjs"),Se=require("./vue-ui-accordion-BrbibtJK.cjs"),_e=require("./vue-ui-skeleton-DvJP74jb.cjs"),ce=require("./useNestedProp-DjOgO33z.cjs"),Pe=require("./PackageVersion-9kqlnk5q.cjs"),Ee=require("./PenAndPaper-CfWPwfS1.cjs"),Oe=require("./useUserOptionState-BgepsfED.cjs"),Fe=require("./useChartAccessibility-Cm7nkzTG.cjs"),ze=require("./Tooltip-Dr2CQpGZ.cjs"),Le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ve=["id"],Ie={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},Ae={key:2,style:"width:100%;background:transparent;padding-bottom:24px"},He=["xmlns","viewBox"],Me=["width","height"],De=["id"],qe=["stop-color"],Re=["stop-color"],Ye=["d","fill","stroke","stroke-width"],Ue=["x","y","height","width","fill","stroke","stroke-width","onMouseenter"],Ge=["x","y","font-size","fill"],je=["x","y","font-size","fill"],We={key:4,class:"vue-data-ui-watermark"},Xe={key:6,ref:"source",dir:"auto"},Ze=["innerHTML"],Je={__name:"vue-ui-flow",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(de,{expose:ve}){const{vue_ui_flow:fe}=s.useConfig(),g=de,V=e.computed(()=>!!g.dataset&&g.dataset.length);e.onMounted(()=>{U()});function U(){s.objectIsEmpty(g.dataset)&&s.error({componentName:"VueUiFlow",type:"dataset"})}const I=e.ref(s.createUid()),A=e.ref(null),G=e.ref(0),j=e.ref(0),H=e.ref(!1),M=e.ref(""),$=e.ref(!1);function he(o){$.value=o,G.value+=1}const t=e.computed({get:()=>J(),set:o=>o}),{userOptionsVisible:D,setUserOptionsVisibility:W,keepUserOptionState:X}=Oe.useUserOptionState({config:t.value}),{svgRef:Z}=Fe.useChartAccessibility({config:t.value.style.chart.title});function J(){const o=ce.useNestedProp({userConfig:g.config,defaultConfig:fe});return o.theme?{...ce.useNestedProp({userConfig:s.themes.vue_ui_flow[o.theme]||g.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>g.config,o=>{t.value=J(),D.value=!t.value.userOptions.showOnChartHover,U(),j.value+=1,b.value.showTable=t.value.table.show},{deep:!0});const{isPrinting:K,isImaging:Q,generatePdf:ee,generateImage:te}=ie.usePrinter({elementId:`flow_${I.value}`,fileName:t.value.style.chart.title.text||"vue-ui-flow",options:t.value.userOptions.print}),pe=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),q=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),oe=e.computed(()=>t.value.style.chart.nodes.gap),x=e.computed(()=>t.value.style.chart.nodes.width),b=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),le=e.computed(()=>t.value.style.chart.links.width),E=e.computed(()=>!g.dataset||!g.dataset.length?[]:g.dataset.map(o=>[o[0],o[1],s.checkNaN(o[2])])),ae=e.computed(()=>{const o={};function a(n){o[n]||(o[n]={inflow:0,outflow:0})}E.value.forEach(([n,r,v])=>{a(n),a(r),o[n].outflow+=v,o[r].inflow+=v});let l=0;for(const n in o){const r=Math.max(o[n].inflow,o[n].outflow);l=Math.max(l,r)}return l});function me(o){return o/ae.value*100+t.value.style.chart.nodes.minHeight}function ge(o){const a=t.value.style.chart.nodes.minHeight;return(o-a)/100*ae.value}function ye(o){const a={},l={};function n(u,c){a[u]||(a[u]={height:0,level:null,inflow:0,outflow:0,uid:s.createUid()}),a[u].level===null&&(a[u].level=c),l[c]||(l[c]=[]),l[c].includes(u)||l[c].push(u)}o.forEach(([u,c,f],N)=>{const y=a[u]?a[u].level:0,k=y+1;n(u,y),n(c,k),a[u].children||(a[u].children=[]),a[u].children.push({target:c,value:f}),a[u].outflow+=f,a[c].inflow+=f}),Object.keys(a).forEach((u,c)=>{a[u].color=q.value[c]||q.value[c%q.value.length]||s.palette[c]||s.palette[c%d.length]});for(const u in a)a[u].height=me(Math.max(a[u].inflow,a[u].outflow)),a[u].name=u;const r={};for(const u in l){let c=0;l[u].forEach((f,N)=>{const y=a[f].height;r[f]={x:parseInt(u,10)*le.value+t.value.style.chart.padding.left,y:c,absoluteY:c,height:y,i:N,color:a[f].color,value:ge(y)},c+=y+oe.value})}const v=[];for(const u in a){let c=r[u].absoluteY+t.value.style.chart.padding.top;a[u].children&&a[u].children.forEach(({target:f,value:N},y)=>{const k=r[f].y+t.value.style.chart.padding.top,B=r[u],S=r[f],p=s.checkNaN(c),w=s.checkNaN(c+N/a[u].outflow*B.height),_=s.checkNaN(k),i=s.checkNaN(k+N/a[f].inflow*S.height),h={id:s.createUid(),source:u,target:f,path:`M ${s.checkNaN(B.x)+s.checkNaN(x.value)} ${p} L ${s.checkNaN(B.x)+s.checkNaN(x.value)} ${w} L ${s.checkNaN(S.x)} ${i} L ${s.checkNaN(S.x)} ${_} Z`,value:N,sourceColor:a[u].color,targetColor:a[f].color};v.push(h),c+=w-p,r[f].y+=i-_})}return{nodeCoordinates:r,links:v}}const m=e.computed(()=>{const o=ye(g.dataset);return{nodes:Object.keys(o.nodeCoordinates).map((a,l)=>({...o.nodeCoordinates[a],name:a})),links:o.links}}),be=e.computed(()=>ke(m.value.nodes));function ke(o){const a={};for(const n in o){const{x:r,height:v}=o[n];a[r]||(a[r]=0),a[r]+=v+oe.value}return Math.max(...Object.values(a))}const T=e.computed(()=>{const{top:o,right:a,left:l,bottom:n}=t.value.style.chart.padding,r=E.value.length*le.value;return{height:be.value+o+n,width:a+Math.max(...m.value.nodes.map(v=>v.x))+x.value,left:l,top:o,right:r-a,p_top:o,p_bottom:n}});function we(o){const a={},l={},n=new Set;return E.value.forEach(([r,v,u])=>{a[r]||(a[r]=[]),l[v]||(l[v]=[]),a[r].push(v),l[v].push(r)}),a[o]&&a[o].forEach(r=>n.add(r)),l[o]&&l[o].forEach(r=>n.add(r)),Array.from(n).concat(o)}const C=e.ref(null),O=e.ref(null),R=e.ref(null),F=e.ref(!1);function Ce(o){C.value=we(o.name),O.value=o.name;const a=o.name,l=E.value;let n=0,r=0,v=[],u=[];const c=new Set(l.map(([i])=>i)),f=new Set(l.map(([,i])=>i)),N=Array.from(c).filter(i=>!f.has(i)),y=l.filter(([i])=>N.includes(i)).reduce((i,[h,P,xe])=>i+xe,0),k={};m.value.nodes.forEach(i=>{k[i.name]=i.color}),l.forEach(([i,h,P])=>{h===a&&(n+=P,v.push({source:i,value:P,color:k[i]})),i===a&&(r+=P,u.push({target:h,value:P,color:k[h]}))});const B=Math.max(n,r),S=y>0?B/y*100:0,p={name:a,inflow:n,outflow:r,from:v,to:u,percentOfTotal:S,color:k[a]||"#000000"};R.value={datapoint:p},H.value=!0;let w="";const _=t.value.style.chart.tooltip.customFormat;if(F.value=!1,s.isFunction(_))try{const i=_({datapoint:p,series:m.value,config:t.value});typeof i=="string"&&(M.value=i,F.value=!0)}catch{console.warn("Custom format cannot be applied.")}if(!F.value){const i=t.value.style.chart.tooltip.showPercentage?`<div>${s.dataLabel({p:t.value.style.chart.tooltip.translations.percentOfTotal,v:p.percentOfTotal,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</div>`:"";w+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;"><span style="margin-right:4px; color:${p.color}">⏹</span>${p.name}${i}</div>`,p.from.length&&(w+=`<div>${t.value.style.chart.tooltip.translations.from}</div>`,p.from.forEach(h=>{w+=`<div><span style="color:${h.color}">⏹←</span> ${h.source}: ${s.applyDataLabel(t.value.style.chart.nodes.labels.formatter,h.value,s.dataLabel({p:t.value.style.chart.nodes.labels.prefix,v:h.value,s:t.value.style.chart.nodes.labels.suffix,r:t.value.style.chart.nodes.labels.rounding}))}</div>`})),p.to.length&&(w+=`<div style="margin-top:6px;">${t.value.style.chart.tooltip.translations.to}</div>`,p.to.forEach(h=>{w+=`<div><span style="color:${h.color}">⏹→</span> ${h.target}: ${s.applyDataLabel(t.value.style.chart.nodes.labels.formatter,h.value,s.dataLabel({p:t.value.style.chart.nodes.labels.prefix,v:h.value,s:t.value.style.chart.nodes.labels.suffix,r:t.value.style.chart.nodes.labels.rounding}))}</div>`})),M.value=w}}function Ne(){C.value=null,O.value=null,H.value=!1}const ne=e.computed(()=>m.value.links.map(({source:o,target:a,sourceColor:l,targetColor:n,value:r})=>({source:o,target:a,sourceColor:l,targetColor:n,value:r})));function re(){e.nextTick(()=>{const o=ne.value.map((n,r)=>[[n.source],[n.target],[n.value]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[t.value.table.columnNames.source],[t.value.table.columnNames.target],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(a);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-flow"})})}const z=e.computed(()=>{const o=[t.value.table.columnNames.source,t.value.table.columnNames.target,t.value.table.columnNames.value],a=ne.value.map((r,v)=>[{color:r.sourceColor,name:r.source},{color:r.targetColor,name:r.target},s.dataLabel({p:t.value.style.chart.nodes.labels.prefix,v:r.value,s:t.value.style.chart.nodes.labels.suffix,r:t.value.style.chart.nodes.labels.rounding})]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.source,t.value.table.columnNames.target,t.value.table.columnNames.value],head:o,body:a,config:l}});function $e(){return m.value}function se(){b.value.showTable=!b.value.showTable}const L=e.ref(!1);function Y(){L.value=!L.value}function ue(){b.value.showTooltip=!b.value.showTooltip}return ve({getData:$e,generateCsv:re,generateImage:te,generatePdf:ee,toggleTable:se,toggleAnnotator:Y,toggleTooltip:ue}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"flowChart",ref:A,class:e.normalizeClass(`vue-ui-flow ${$.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),id:`flow_${I.value}`,onMouseenter:a[2]||(a[2]=()=>e.unref(W)(!0)),onMouseleave:a[3]||(a[3]=()=>e.unref(W)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ee._sfc_main,{key:0,svgRef:e.unref(Z),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:L.value,onClose:Y},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),pe.value?(e.openBlock(),e.createElementBlock("div",Ie,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",Ae,[(e.openBlock(),e.createBlock(Te._sfc_main,{key:`title_${j.value}`,config:{title:{cy:"flow-title",...t.value.style.chart.title},subtitle:{cy:"flow-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&V.value&&(e.unref(X)||e.unref(D))?(e.openBlock(),e.createBlock(ie.UserOptions,{ref:"details",key:`user_option_${G.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(K),isImaging:e.unref(Q),uid:I.value,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,isFullscreen:$.value,titles:{...t.value.userOptions.buttonTitles},chartElement:A.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:L.value,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:b.value.showTooltip,onToggleTooltip:ue,onToggleFullscreen:he,onGeneratePdf:e.unref(ee),onGenerateCsv:re,onGenerateImage:e.unref(te),onToggleTable:se,onToggleAnnotator:Y,style:e.normalizeStyle({visibility:e.unref(X)?e.unref(D)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:n})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:n})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:n})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:n})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","hasTooltip","isTooltip","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{ref_key:"svgRef",ref:Z,xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${T.value.width} ${T.value.height}`,class:e.normalizeClass({"vue-data-ui-fullscreen--on":$.value,"vue-data-ui-fulscreen--off":!$.value}),style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Pe._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:T.value.width,height:T.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,Me)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value.links,(l,n)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:l.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":l.sourceColor},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":l.targetColor},null,8,Re)],8,De))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value.links,l=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-flow-link",d:l.path,fill:`url(#${l.id})`,stroke:t.value.style.chart.links.stroke,"stroke-width":t.value.style.chart.links.strokeWidth,style:e.normalizeStyle(`opacity:${O.value?[l.target,l.source].includes(O.value)?1:.3:t.value.style.chart.links.opacity}`)},null,12,Ye))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value.nodes,(l,n)=>(e.openBlock(),e.createElementBlock("rect",{class:"vue-ui-flow-node",x:l.x,y:e.unref(s.checkNaN)(l.absoluteY)+t.value.style.chart.padding.top,height:e.unref(s.checkNaN)(l.height),width:x.value,fill:l.color,stroke:t.value.style.chart.nodes.stroke,"stroke-width":t.value.style.chart.nodes.strokeWidth,onMouseenter:r=>Ce(l),onMouseleave:a[0]||(a[0]=r=>Ne()),style:e.normalizeStyle(`opacity:${C.value?C.value.includes(l.name)?1:.2:1}`)},null,44,Ue))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value.nodes,(l,n)=>(e.openBlock(),e.createElementBlock("text",{x:l.x+x.value/2,y:e.unref(s.checkNaN)(l.absoluteY+l.height/2-t.value.style.chart.nodes.labels.fontSize/4)+t.value.style.chart.padding.top,"font-size":t.value.style.chart.nodes.labels.fontSize,fill:e.unref(s.adaptColorToBackground)(l.color),"text-anchor":"middle",style:e.normalizeStyle(`pointer-events: none; opacity:${C.value?C.value.includes(l.name)?1:0:1}`)},e.toDisplayString(t.value.style.chart.nodes.labels.abbreviation.use?e.unref(s.abbreviate)({source:l.name,length:t.value.style.chart.nodes.labels.abbreviation.length}):l.name),13,Ge))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value.nodes,(l,n)=>(e.openBlock(),e.createElementBlock("text",{x:l.x+x.value/2,y:e.unref(s.checkNaN)(l.absoluteY+l.height/2+t.value.style.chart.nodes.labels.fontSize)+t.value.style.chart.padding.top,"font-size":t.value.style.chart.nodes.labels.fontSize,fill:e.unref(s.adaptColorToBackground)(l.color),"text-anchor":"middle",style:e.normalizeStyle(`pointer-events: none; opacity:${C.value?C.value.includes(l.name)?1:0:1}`)},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.nodes.labels.formatter,l.value,e.unref(s.dataLabel)({p:t.value.style.chart.nodes.labels.prefix,v:l.value,s:t.value.style.chart.nodes.labels.suffix,r:t.value.style.chart.nodes.labels.rounding}),{datapoint:l,seriesIndex:n})),13,je))),256)),e.renderSlot(o.$slots,"svg",{svg:T.value},void 0,!0)],14,He)),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",We,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(K)||e.unref(Q)})),void 0,!0)])):e.createCommentVNode("",!0),V.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(_e.default,{key:5,config:{type:"flow",style:{backgroundColor:t.value.style.chart.backgroundColor}}},null,8,["config"])),o.$slots.source?(e.openBlock(),e.createElementBlock("div",Xe,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ze._sfc_main,{show:b.value.showTooltip&&H.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:A.value,content:M.value,isCustom:F.value,isFullscreen:$.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...R.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...R.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom","isFullscreen"]),V.value?(e.openBlock(),e.createBlock(Se.default,{key:7,hideDetails:"",config:{open:b.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.createVNode(Be.DataTable,{colNames:z.value.colNames,head:z.value.head,body:z.value.body,config:z.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[1]||(a[1]=l=>b.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Ze)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ve))}},Ke=Le._export_sfc(Je,[["__scopeId","data-v-17e83e4a"]]);exports.default=Ke;
|