vue-data-ui 2.6.5 → 2.6.7
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-DfGZcZu4.js → Arrow-BxUmDF04.js} +1 -1
- package/dist/{Arrow-CyeGXbbD.cjs → Arrow-PPbxds1Q.cjs} +1 -1
- package/dist/{BaseIcon-B5DvqSYe.cjs → BaseIcon-BmVwfJg2.cjs} +1 -1
- package/dist/{BaseIcon-BzuvxztF.js → BaseIcon-CDx9pxUG.js} +1 -1
- package/dist/{DataTable-zpYtivMM.cjs → DataTable-Cv_TVAas.cjs} +1 -1
- package/dist/{DataTable-BCCBpyhr.js → DataTable-TjJIVFlL.js} +2 -2
- package/dist/{Legend-CJkkmRNE.cjs → Legend-DunrYGuw.cjs} +1 -1
- package/dist/{Legend-CyJrN721.js → Legend-NKGwxkI7.js} +2 -2
- package/dist/{PackageVersion-Dv25_ZxF.cjs → PackageVersion-DJKkRuOD.cjs} +1 -1
- package/dist/{PackageVersion-PZr4BkQ5.js → PackageVersion-QRvxRYPv.js} +1 -1
- package/dist/{PenAndPaper-Cniu2YEX.js → PenAndPaper-CxC1lWGK.js} +3 -3
- package/dist/{PenAndPaper-Cx3_Liuv.cjs → PenAndPaper-MTTJ3Gd9.cjs} +1 -1
- package/dist/{Shape-BXTmpde5.js → Shape-58uyOuYc.js} +26 -23
- package/dist/Shape-D_1vUjCL.cjs +1 -0
- package/dist/{Slicer-DzKrIvL0.cjs → Slicer-BGEieXKn.cjs} +1 -1
- package/dist/{Slicer-D3tEQT9Z.js → Slicer-C7ormJRw.js} +2 -2
- package/dist/{Title-CXBc1TH6.js → Title-BI8etrRU.js} +1 -1
- package/dist/{Title-DdUtciJN.cjs → Title-Dk92HYMu.cjs} +1 -1
- package/dist/Tooltip-ClMeqejQ.cjs +1 -0
- package/dist/{Tooltip-C9lPh5bN.js → Tooltip-Cxc8c50d.js} +23 -20
- package/dist/{index-DLCyjPV0.js → index-9EeNZMz1.js} +6 -1
- package/dist/index-DEnRHTzk.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +89 -62
- package/dist/types/vue-data-ui.d.ts +89 -62
- package/dist/useChartAccessibility-BWojgys7.js +13 -0
- package/dist/useChartAccessibility-Cm7nkzTG.cjs +1 -0
- package/dist/{useNestedProp-BdTohsDJ.cjs → useNestedProp-BNT60LxO.cjs} +1 -1
- package/dist/{useNestedProp-q86V3_LA.js → useNestedProp-df_bKQEI.js} +1 -1
- package/dist/{usePrinter-CPqTP09H.cjs → usePrinter-dyVny55M.cjs} +1 -1
- package/dist/{usePrinter-CpHZjw3G.js → usePrinter-ngrh00Ym.js} +1 -1
- package/dist/{vue-data-ui-CR9Dof80.cjs → vue-data-ui-BYX-I7HQ.cjs} +1 -1
- package/dist/{vue-data-ui-CzqznXmA.js → vue-data-ui-CDD7JcMs.js} +61 -61
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DvHdA_uo.js → vue-ui-3d-bar-BArLjlrc.js} +171 -168
- package/dist/vue-ui-3d-bar-DegdXf_S.cjs +19 -0
- package/dist/{vue-ui-accordion-FM16tlk7.cjs → vue-ui-accordion-D2qxHGzp.cjs} +1 -1
- package/dist/{vue-ui-accordion-DR2qjfsa.js → vue-ui-accordion-Qo8JxnIN.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BoXxK9_W.js → vue-ui-age-pyramid-Biz02m7c.js} +85 -82
- package/dist/vue-ui-age-pyramid-kpaaJ2Gx.cjs +1 -0
- package/dist/{vue-ui-annotator-5tI8NuFh.cjs → vue-ui-annotator-By6XNYm0.cjs} +1 -1
- package/dist/{vue-ui-annotator-D4kCCpAK.js → vue-ui-annotator-MXs48Lua.js} +1 -1
- package/dist/{vue-ui-bullet-X3Xa_OZ6.js → vue-ui-bullet-CtBs_r3I.js} +92 -89
- package/dist/vue-ui-bullet-Dkz6vX0T.cjs +34 -0
- package/dist/vue-ui-candlestick-DiEUIuW8.cjs +2 -0
- package/dist/{vue-ui-candlestick-BTW5toA5.js → vue-ui-candlestick-gPztmuJE.js} +155 -152
- package/dist/{vue-ui-carousel-table-Cmnwv9Y3.cjs → vue-ui-carousel-table-CYeXP21y.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-D7s_SrJR.js → vue-ui-carousel-table-D9ckYNKZ.js} +4 -4
- package/dist/{vue-ui-chestnut-DN9EZShg.js → vue-ui-chestnut-DWjn-jcN.js} +186 -183
- package/dist/vue-ui-chestnut-oZtRERnV.cjs +6 -0
- package/dist/{vue-ui-circle-pack-ts3rurGX.js → vue-ui-circle-pack-Bz5yVvAM.js} +99 -96
- package/dist/vue-ui-circle-pack-DCJ6N00S.cjs +1 -0
- package/dist/{vue-ui-cursor-SW96fYT3.js → vue-ui-cursor-BrrVDy1u.js} +2 -2
- package/dist/{vue-ui-cursor-CpWkrHpR.cjs → vue-ui-cursor-DZhRygRy.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BZcfgajg.js → vue-ui-dashboard-DEmGN8Js.js} +2 -2
- package/dist/{vue-ui-dashboard-Buh9xBz-.cjs → vue-ui-dashboard-o8Ju_cXW.cjs} +1 -1
- package/dist/{vue-ui-digits-rB78vJRR.cjs → vue-ui-digits-CgyYdrQ5.cjs} +1 -1
- package/dist/{vue-ui-digits-C00yOT24.js → vue-ui-digits-DbOrROu7.js} +2 -2
- package/dist/vue-ui-donut-9pWaRwf3.cjs +1 -0
- package/dist/{vue-ui-donut-BkGR2Q-_.js → vue-ui-donut-CP5uWglM.js} +158 -156
- package/dist/{vue-ui-donut-evolution-B7WrjiTO.js → vue-ui-donut-evolution-BAMD1wQ5.js} +133 -131
- package/dist/vue-ui-donut-evolution-Ci_gIrkO.cjs +1 -0
- package/dist/{vue-ui-dumbbell-gQadUH53.js → vue-ui-dumbbell-CFYd-Ypn.js} +125 -122
- package/dist/vue-ui-dumbbell-DUNYoZxT.cjs +9 -0
- package/dist/{vue-ui-flow-CqSTZbgP.js → vue-ui-flow-CdvGWFzv.js} +96 -93
- package/dist/vue-ui-flow-W89ofPB-.cjs +1 -0
- package/dist/{vue-ui-funnel-Jr9TMTsq.js → vue-ui-funnel-DYutKyoz.js} +88 -85
- package/dist/vue-ui-funnel-RvdVrhFu.cjs +1 -0
- package/dist/{vue-ui-galaxy-BrQ10tPo.js → vue-ui-galaxy-BCBRlYS1.js} +123 -120
- package/dist/vue-ui-galaxy-Djdx-ca8.cjs +1 -0
- package/dist/{vue-ui-gauge-DOMio6Mv.js → vue-ui-gauge-BNAAZt4F.js} +86 -83
- package/dist/vue-ui-gauge-BVVmf09x.cjs +1 -0
- package/dist/{vue-ui-gizmo-SKS1idHb.js → vue-ui-gizmo-BFQ_KgLX.js} +3 -3
- package/dist/{vue-ui-gizmo-C3NimqVM.cjs → vue-ui-gizmo-Ceh0oFY3.cjs} +1 -1
- package/dist/vue-ui-heatmap-CiZpI-tA.cjs +1 -0
- package/dist/{vue-ui-heatmap-l4vCjb6f.js → vue-ui-heatmap-Ct3qaBv7.js} +109 -106
- package/dist/vue-ui-history-plot-Ci8Y2EFg.cjs +1 -0
- package/dist/{vue-ui-history-plot-B05tJML1.js → vue-ui-history-plot-shn74MJ6.js} +130 -127
- package/dist/{vue-ui-kpi-DF4U5E1w.js → vue-ui-kpi-B_pV-2JJ.js} +3 -3
- package/dist/{vue-ui-kpi-DQJr571M.cjs → vue-ui-kpi-DfYrbxlX.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BMARnOW4.js → vue-ui-mini-loader-BFnWQs5p.js} +2 -2
- package/dist/{vue-ui-mini-loader-BZkVKkqn.cjs → vue-ui-mini-loader-LIqf62jk.cjs} +1 -1
- package/dist/vue-ui-molecule-D8YuYTKv.cjs +1 -0
- package/dist/{vue-ui-molecule-C1ycekVJ.js → vue-ui-molecule-DNz1m8XZ.js} +147 -144
- package/dist/{vue-ui-mood-radar-_Kd-Lhpm.js → vue-ui-mood-radar-DiYB_zhM.js} +97 -94
- package/dist/vue-ui-mood-radar-uvH7qUHy.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-DIwRSn-O.js → vue-ui-nested-donuts-9hn-g4ir.js} +99 -96
- package/dist/vue-ui-nested-donuts-C7ikDjp7.cjs +17 -0
- package/dist/vue-ui-onion-5Rqvd4Fw.cjs +5 -0
- package/dist/{vue-ui-onion-Dqb0gwGl.js → vue-ui-onion-DCWfNTNu.js} +105 -102
- package/dist/{vue-ui-parallel-coordinate-plot-De-tYNNy.js → vue-ui-parallel-coordinate-plot-CaPFL9_1.js} +97 -94
- package/dist/vue-ui-parallel-coordinate-plot-tlgTbaNX.cjs +8 -0
- package/dist/vue-ui-quadrant-B0Sw5NGo.cjs +1 -0
- package/dist/{vue-ui-quadrant-BQ5maxJq.js → vue-ui-quadrant-BoQZ375K.js} +155 -153
- package/dist/vue-ui-quick-chart-D3zV1d7t.cjs +15 -0
- package/dist/{vue-ui-quick-chart-DF_510YT.js → vue-ui-quick-chart-vfMN8F1q.js} +164 -161
- package/dist/{vue-ui-radar-DDHd0AYs.js → vue-ui-radar-CAuu6wkh.js} +129 -127
- package/dist/vue-ui-radar-CNMJCAwo.cjs +1 -0
- package/dist/{vue-ui-rating-Chi3OOtp.js → vue-ui-rating-Bm0HZ3du.js} +2 -2
- package/dist/{vue-ui-rating-D9kQcY2a.cjs → vue-ui-rating-dsRDRL98.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CV1xQOok.js → vue-ui-relation-circle-5OZMN9jR.js} +127 -124
- package/dist/vue-ui-relation-circle-iD7BufNH.cjs +1 -0
- package/dist/{vue-ui-rings-D2ezwyae.js → vue-ui-rings-COefBaQT.js} +114 -112
- package/dist/vue-ui-rings-DC4WG4sK.cjs +2 -0
- package/dist/vue-ui-scatter-5ny76dmi.cjs +1 -0
- package/dist/{vue-ui-scatter-BxbUYPk1.js → vue-ui-scatter-DhO83TZZ.js} +157 -154
- package/dist/{vue-ui-screenshot-Bc7Lv1i8.cjs → vue-ui-screenshot-DABH_phE.cjs} +1 -1
- package/dist/{vue-ui-screenshot-cxDgcXJB.js → vue-ui-screenshot-brillPo5.js} +1 -1
- package/dist/{vue-ui-skeleton-D6ojufhb.js → vue-ui-skeleton-BmJiYGtE.js} +3 -3
- package/dist/{vue-ui-skeleton-DvdPnQbR.cjs → vue-ui-skeleton-_DN0U6W6.cjs} +1 -1
- package/dist/{vue-ui-smiley-DEJ6S-We.cjs → vue-ui-smiley-CW6714mb.cjs} +1 -1
- package/dist/{vue-ui-smiley-9nGRDSn7.js → vue-ui-smiley-D9NRimij.js} +2 -2
- package/dist/{vue-ui-spark-trend-DiNeAGXR.js → vue-ui-spark-trend-BKZj03CQ.js} +5 -5
- package/dist/{vue-ui-spark-trend-BosbwgVe.cjs → vue-ui-spark-trend-expbkxgR.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DNf_Majv.js → vue-ui-sparkbar-CYRORE5i.js} +4 -4
- package/dist/{vue-ui-sparkbar-DGFKrcg0.cjs → vue-ui-sparkbar-Cr9FtevP.cjs} +1 -1
- package/dist/vue-ui-sparkgauge-BHXFhvTv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-D89HjxSK.js → vue-ui-sparkgauge-JV4tYB7P.js} +56 -53
- package/dist/{vue-ui-sparkhistogram-CU1_P6AJ.js → vue-ui-sparkhistogram-DKINHX2q.js} +93 -90
- package/dist/vue-ui-sparkhistogram-T4a3DDck.cjs +1 -0
- package/dist/{vue-ui-sparkline-C2McLmh5.js → vue-ui-sparkline-CbRTHtig.js} +109 -106
- package/dist/vue-ui-sparkline-Dc6Sf3n8.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-Cu4aG9PB.js → vue-ui-sparkstackbar-6u9-2nG4.js} +59 -56
- package/dist/vue-ui-sparkstackbar-CV5SkdsP.cjs +1 -0
- package/dist/{vue-ui-stackbar-6m5CpvNM.js → vue-ui-stackbar-CUppObfj.js} +136 -133
- package/dist/vue-ui-stackbar-CXB-nd71.cjs +6 -0
- package/dist/vue-ui-strip-plot-6IXF_U6-.cjs +1 -0
- package/dist/{vue-ui-strip-plot-DlZ2Eez4.js → vue-ui-strip-plot-doaNZAW4.js} +127 -124
- package/dist/{vue-ui-table-U0_3I0fu.js → vue-ui-table-CZsNuDR5.js} +1 -1
- package/dist/{vue-ui-table-BjhcV9qB.cjs → vue-ui-table-S66UCskD.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Bfqytiv5.cjs → vue-ui-table-heatmap-BU9UU15H.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BrGkCaOG.js → vue-ui-table-heatmap-CjohHqDV.js} +4 -4
- package/dist/{vue-ui-table-sparkline-CXlnp8E3.cjs → vue-ui-table-sparkline-CHFFTD0a.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-C1wNBDqO.js → vue-ui-table-sparkline-ab2rwdKB.js} +5 -5
- package/dist/{vue-ui-thermometer-Bx2abW1B.js → vue-ui-thermometer-C72mHwUi.js} +84 -81
- package/dist/vue-ui-thermometer-Ccd6RGh8.cjs +1 -0
- package/dist/vue-ui-timer-C8Fn2B0b.cjs +64 -0
- package/dist/{vue-ui-timer-3UkgrtEj.js → vue-ui-timer-D-LNi6lz.js} +183 -180
- package/dist/{vue-ui-tiremarks-C_xuD4De.js → vue-ui-tiremarks-Bo8EWsJ8.js} +59 -56
- package/dist/vue-ui-tiremarks-SOzvMOz4.cjs +1 -0
- package/dist/vue-ui-treemap-BqTTQrVh.cjs +1 -0
- package/dist/{vue-ui-treemap-BjDSR72h.js → vue-ui-treemap-uj94elVB.js} +123 -120
- package/dist/{vue-ui-vertical-bar-DUhOoSNl.js → vue-ui-vertical-bar-BUTOw-DK.js} +108 -106
- package/dist/vue-ui-vertical-bar-C4Sxun4Q.cjs +4 -0
- package/dist/{vue-ui-waffle-Dpox5n5s.js → vue-ui-waffle-CTWA1frT.js} +107 -104
- package/dist/vue-ui-waffle-DYWGRKdT.cjs +1 -0
- package/dist/vue-ui-wheel-8K72ZKda.js +330 -0
- package/dist/vue-ui-wheel-Cz5-0klT.cjs +1 -0
- package/dist/{vue-ui-word-cloud-u5S86-Ft.js → vue-ui-word-cloud-CSwBPDB8.js} +97 -94
- package/dist/vue-ui-word-cloud-D39riLZb.cjs +1 -0
- package/dist/vue-ui-xy-BbWXjajH.cjs +3 -0
- package/dist/{vue-ui-xy-0nBQDwL2.js → vue-ui-xy-DpDKutd7.js} +65 -58
- package/dist/{vue-ui-xy-canvas-yQlThVu7.cjs → vue-ui-xy-canvas-BCj0SCqe.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-DI7LiD4U.js → vue-ui-xy-canvas-BQm9gah4.js} +82 -81
- package/package.json +1 -1
- package/dist/Shape-GAZUIBfN.cjs +0 -1
- package/dist/Tooltip-BlGVq6xj.cjs +0 -1
- package/dist/index-DSGAenF3.cjs +0 -9
- package/dist/vue-ui-3d-bar-vvpkf_bv.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CMMnrI3R.cjs +0 -1
- package/dist/vue-ui-bullet-nXPlud-q.cjs +0 -34
- package/dist/vue-ui-candlestick-B6T0LhEG.cjs +0 -2
- package/dist/vue-ui-chestnut-D8Gq_i77.cjs +0 -6
- package/dist/vue-ui-circle-pack-DCz3OWlu.cjs +0 -1
- package/dist/vue-ui-donut-BpgK-I9o.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BVJCDPQ2.cjs +0 -1
- package/dist/vue-ui-dumbbell-DRcemHVG.cjs +0 -9
- package/dist/vue-ui-flow-DdQsK5DR.cjs +0 -1
- package/dist/vue-ui-funnel-Bq4yoTfd.cjs +0 -1
- package/dist/vue-ui-galaxy-ia1UNlpc.cjs +0 -1
- package/dist/vue-ui-gauge-C3FbYOSi.cjs +0 -1
- package/dist/vue-ui-heatmap-BCau2Z3U.cjs +0 -1
- package/dist/vue-ui-history-plot-DL7VjOd0.cjs +0 -1
- package/dist/vue-ui-molecule-B5XDGmLx.cjs +0 -1
- package/dist/vue-ui-mood-radar-DyMCJKFb.cjs +0 -1
- package/dist/vue-ui-nested-donuts-B4Am-r6T.cjs +0 -17
- package/dist/vue-ui-onion-YeBdJrdx.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CoecETlm.cjs +0 -8
- package/dist/vue-ui-quadrant-Btzq3qNJ.cjs +0 -1
- package/dist/vue-ui-quick-chart-5cWjffLJ.cjs +0 -15
- package/dist/vue-ui-radar-t22bqFiQ.cjs +0 -1
- package/dist/vue-ui-relation-circle-CWgGPxDJ.cjs +0 -1
- package/dist/vue-ui-rings-CiLJkRwa.cjs +0 -2
- package/dist/vue-ui-scatter-B24gGA8q.cjs +0 -1
- package/dist/vue-ui-sparkgauge-DwK7dzdJ.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-DKoI6_TT.cjs +0 -1
- package/dist/vue-ui-sparkline-Bp7GMRrA.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-Dayxdcr7.cjs +0 -1
- package/dist/vue-ui-stackbar-C21xTVy9.cjs +0 -6
- package/dist/vue-ui-strip-plot-DAo8FMup.cjs +0 -1
- package/dist/vue-ui-thermometer-CBdAwYdC.cjs +0 -1
- package/dist/vue-ui-timer-CRDQbqJ_.cjs +0 -64
- package/dist/vue-ui-tiremarks-C78mfaBr.cjs +0 -1
- package/dist/vue-ui-treemap-CP__1pdb.cjs +0 -1
- package/dist/vue-ui-vertical-bar-DTB8r4LH.cjs +0 -4
- package/dist/vue-ui-waffle-CrVyCF7k.cjs +0 -1
- package/dist/vue-ui-wheel-DV2zgr4d.cjs +0 -1
- package/dist/vue-ui-wheel-ykD8OULJ.js +0 -319
- package/dist/vue-ui-word-cloud-DBkAo2uX.cjs +0 -1
- package/dist/vue-ui-xy-mEVVQr_U.cjs +0 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DEnRHTzk.cjs"),K=require("./useResponsive-YQYQrAZ_.cjs"),de=require("./Title-Dk92HYMu.cjs"),Q=require("./usePrinter-dyVny55M.cjs"),ve=require("./DataTable-Cv_TVAas.cjs"),he=require("./vue-ui-skeleton-_DN0U6W6.cjs"),ye=require("./Legend-DunrYGuw.cjs"),fe=require("./vue-ui-accordion-D2qxHGzp.cjs"),ee=require("./useNestedProp-BNT60LxO.cjs"),me=require("./PackageVersion-DJKkRuOD.cjs"),be=require("./PenAndPaper-MTTJ3Gd9.cjs"),pe=require("./useUserOptionState-BgepsfED.cjs"),ge=require("./useChartAccessibility-Cm7nkzTG.cjs"),ke=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_e=["id"],xe=["xmlns","viewBox"],Ce=["x","y","width","height"],we={key:1},Be=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Ne={key:2},Ee=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],$e=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Le={key:3},Se=["x","y","font-size","fill","font-weight"],Ve=["x","y","font-size","fill"],Ae={key:4},ze=["x","y","font-size","fill","font-weight"],Pe=["id"],Te=["stop-color"],Xe=["stop-color"],De=["stop-color"],Oe=["id"],Fe=["stop-color"],Me=["stop-color"],Ge=["stop-color"],Ie=["id"],qe=["stop-color"],He=["stop-color"],Re=["id"],Ue=["stop-color"],We=["stop-color"],je={key:0},Ye=["d","fill"],Ze={key:1},Je=["x","y","height","width","fill"],Ke=["cx","cy","r","fill","stroke","stroke-width"],Qe=["cx","cy","r","fill","stroke","stroke-width"],et={key:5},tt=["x","y","fill","font-size"],lt={key:6},at=["x","y","fill","font-size"],ot={key:5,class:"vue-data-ui-watermark"},rt=["xmlns","height","width"],st=["fill"],nt=["innerHTML"],ut={__name:"vue-ui-dumbbell",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(te,{expose:le,emit:ct}){const{vue_ui_dumbbell:ae}=s.useConfig(),v=te,b=e.computed({get(){return!!v.dataset&&v.dataset.length},set(a){return a}}),c=e.ref(s.createUid()),V=e.ref(0),p=e.ref(null),A=e.ref(null),z=e.ref(null),P=e.ref(null),T=e.ref(null),X=e.ref(0),D=e.ref(0),O=e.ref(0),t=e.computed({get:()=>G(),set:a=>a}),{userOptionsVisible:E,setUserOptionsVisibility:F,keepUserOptionState:M}=pe.useUserOptionState({config:t.value}),{svgRef:oe}=ge.useChartAccessibility({config:t.value.style.chart.title});function G(){const a=ee.useNestedProp({userConfig:v.config,defaultConfig:ae});return a.theme?{...ee.useNestedProp({userConfig:s.themes.vue_ui_dumbbell[a.theme]||v.config,defaultConfig:a})}:a}e.watch(()=>v.config,a=>{t.value=G(),E.value=!t.value.userOptions.showOnChartHover,I(),X.value+=1,D.value+=1,O.value+=1,i.value=t.value.style.chart.rowHeight,k.value=t.value.style.chart.width,g.value.showTable=t.value.table.show},{deep:!0}),e.watch(()=>v.dataset,a=>{j()},{deep:!0});const x=e.ref(null);e.onMounted(()=>{I()});function I(){if(s.objectIsEmpty(v.dataset)?s.error({componentName:"VueUiDumbbell",type:"dataset"}):v.dataset.forEach((a,n)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","start","end"]}).forEach(l=>{b.value=!1,s.error({componentName:"VueUiDumbbell",type:"datasetSerieAttribute",property:l,index:n})})}),t.value.responsive){const a=K.throttle(()=>{const{width:n,height:l}=K.useResponsive({chart:p.value,title:t.value.style.chart.title.text?A.value:null,legend:t.value.style.chart.legend.show?z.value:null,source:P.value,noTitle:T.value});requestAnimationFrame(()=>{k.value=n,i.value=l/v.dataset.length,d.value=C()})});x.value=new ResizeObserver(a),x.value.observe(p.value.parentNode)}}e.onBeforeUnmount(()=>{x.value&&x.value.disconnect()});const{isPrinting:q,isImaging:H,generatePdf:R,generateImage:U}=Q.usePrinter({elementId:`dumbbell_${c.value}`,fileName:t.value.style.chart.title.text||"vue-ui-dumbbell"}),re=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),g=e.ref({showTable:t.value.table.show}),y=e.computed(()=>v.dataset.map((a,n)=>({...a,start:s.checkNaN(a.start),end:s.checkNaN(a.end),id:s.createUid()}))),$=e.computed(()=>({max:Math.max(...y.value.flatMap(a=>[a.start,a.end])),min:Math.min(...y.value.flatMap(a=>[a.start,a.end]))})),u=e.computed(()=>s.calculateNiceScale($.value.min<0?$.value.min:0,$.value.max,t.value.style.chart.grid.scaleSteps)),i=e.ref(t.value.style.chart.rowHeight),k=e.ref(t.value.style.chart.width),r=e.computed(()=>{const a=i.value,n=t.value.style.chart.padding.left+t.value.style.chart.padding.right+k.value,l=t.value.style.chart.padding.top+t.value.style.chart.padding.bottom+a*v.dataset.length,o=u.value.ticks.length*(k.value/u.value.ticks.length);return{left:t.value.style.chart.padding.left,right:n-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,bottom:l-t.value.style.chart.padding.bottom,width:k.value,height:a*v.dataset.length,rowHeight:a,absoluteHeight:l,absoluteWidth:n,widthPlotReference:o}});function C(){return y.value.map((a,n)=>{const l=r.value.left+(a.start+Math.abs(u.value.min))/(u.value.max+Math.abs(u.value.min))*r.value.widthPlotReference,o=r.value.left+(a.end+Math.abs(u.value.min))/(u.value.max+Math.abs(u.value.min))*r.value.widthPlotReference,h=l+(o-l)/2;return{...a,startX:l,endX:o,centerX:h,y:r.value.top+n*i.value+i.value/2,endVal:a.start}})}const d=e.ref([]),W=e.ref(null),se=e.computed(()=>y.value.map(a=>a.end).reduce((a,n)=>a+n,0));e.onMounted(()=>{j()});function j(){d.value=C();let a=d.value.map(l=>l.start).reduce((l,o)=>l+o,0);function n(){const l=y.value.map(o=>o.end-o.start);a>=se.value?(cancelAnimationFrame(W.value),d.value=C()):(d.value=d.value.map((o,h)=>{o.endVal+=l[h]*(t.value.animationSpeed/100);const m=r.value.left+(o.start+Math.abs(u.value.min))/(u.value.max+Math.abs(u.value.min))*r.value.widthPlotReference,N=r.value.left+(o.endVal+Math.abs(u.value.min))/(u.value.max+Math.abs(u.value.min))*r.value.widthPlotReference,S=m+(N-m)/2;return{...o,startX:m,endX:N,centerX:S,y:r.value.top+h*i.value+i.value/2,endVal:o.endVal}}),a=d.value.map(o=>o.endVal).reduce((o,h)=>o+h,0),W.value=requestAnimationFrame(n))}t.value.useAnimation?n():d.value=C()}const Y=e.computed(()=>[{name:t.value.style.chart.legend.labelStart,color:t.value.style.chart.plots.gradient.show?`url(#start_grad_${c.value})`:t.value.style.chart.plots.startColor},{name:t.value.style.chart.legend.labelEnd,color:t.value.style.chart.plots.gradient.show?`url(#end_grad_${c.value})`:t.value.style.chart.plots.endColor}]),ne=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,paddingTop:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),f=e.computed(()=>{const a=d.value.map(l=>({name:l.name})),n=d.value.map(l=>({start:l.start,end:l.end}));return{head:a,body:n}}),w=e.computed(()=>{const a=[t.value.table.columnNames.series,t.value.table.columnNames.start,t.value.table.columnNames.end,t.value.table.columnNames.progression],n=f.value.head.map((h,m)=>{const N=s.dataLabel({p:t.value.style.chart.labels.prefix,v:f.value.body[m].start,s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue}),S=s.dataLabel({p:t.value.style.chart.labels.prefix,v:f.value.body[m].end,s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue}),ce=s.dataLabel({v:100*(f.value.body[m].end/f.value.body[m].start-1),s:"%",r:t.value.table.td.roundingPercentage});return[{name:h.name},N,S,ce]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.start,t.value.table.columnNames.end,t.value.table.columnNames.progression],head:a,body:n,config:l}});function Z(){e.nextTick(()=>{const a=f.value.head.map((o,h)=>[[o.name],[f.value.body[h].start],[f.value.body[h].end]]),n=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[t.value.table.columnNames.series],[t.value.table.columnNames.start],[t.value.table.columnNames.end]]].concat(a),l=s.createCsvContent(n);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-dumbbell"})})}const _=e.ref(!1);function ue(a){_.value=a,V.value+=1}function ie(){return d.value}function J(){g.value.showTable=!g.value.showTable}const B=e.ref(!1);function L(){B.value=!B.value}return le({getData:ie,generatePdf:R,generateCsv:Z,generateImage:U,toggleTable:J,toggleAnnotator:L}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dumbbellChart",ref:p,class:e.normalizeClass(`vue-ui-dumbbell ${_.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};${t.value.responsive?"height:100%":""}`),id:`dumbbell_${c.value}`,onMouseenter:n[1]||(n[1]=()=>e.unref(F)(!0)),onMouseleave:n[2]||(n[2]=()=>e.unref(F)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(be.PenAndPaper,{key:0,parent:p.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:B.value,onClose:L},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),re.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:T,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:A,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(de._sfc_main,{key:`title_${X.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&b.value&&(e.unref(M)||e.unref(E))?(e.openBlock(),e.createBlock(Q.UserOptions,{ref:"details",key:`user_option_${V.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(q),isImaging:e.unref(H),uid:c.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:p.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:ue,onGeneratePdf:e.unref(R),onGenerateCsv:Z,onGenerateImage:e.unref(U),onToggleTable:J,onToggleAnnotator:L,style:e.normalizeStyle({visibility:e.unref(M)?e.unref(E)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:o})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:o})),void 0,!0)]),key:"4"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:o})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:o})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:oe,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),viewBox:`0 0 ${r.value.absoluteWidth<=0?10:r.value.absoluteWidth} ${r.value.absoluteHeight<=0?10:r.value.absoluteHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(me._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:r.value.left,y:r.value.top,width:r.value.width,height:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,Ce)):e.createCommentVNode("",!0),t.value.style.chart.grid.verticalGrid.show?(e.openBlock(),e.createElementBlock("g",we,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value.ticks,(l,o)=>(e.openBlock(),e.createElementBlock("line",{x1:r.value.left+o*r.value.width/(u.value.ticks.length-1),x2:r.value.left+o*r.value.width/(u.value.ticks.length-1),y1:r.value.top,y2:r.value.bottom,stroke:t.value.style.chart.grid.verticalGrid.stroke,"stroke-width":t.value.style.chart.grid.verticalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.verticalGrid.strokeDasharray},null,8,Be))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.horizontalGrid.show?(e.openBlock(),e.createElementBlock("g",Ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(l,o)=>(e.openBlock(),e.createElementBlock("line",{x1:r.value.left,x2:r.value.right,y1:r.value.top+o*i.value,y2:r.value.top+o*i.value,stroke:t.value.style.chart.grid.horizontalGrid.stroke,"stroke-width":t.value.style.chart.grid.horizontalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.horizontalGrid.strokeDasharray},null,8,Ee))),256)),e.createElementVNode("line",{x1:r.value.left,x2:r.value.right,y1:r.value.bottom,y2:r.value.bottom,stroke:t.value.style.chart.grid.horizontalGrid.stroke,"stroke-width":t.value.style.chart.grid.horizontalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.horizontalGrid.strokeDasharray},null,8,$e)])):e.createCommentVNode("",!0),t.value.style.chart.labels.yAxisLabels.show?(e.openBlock(),e.createElementBlock("g",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(l,o)=>(e.openBlock(),e.createElementBlock("text",{x:r.value.left-6+t.value.style.chart.labels.yAxisLabels.offsetX,y:r.value.top+o*i.value+(t.value.style.chart.labels.yAxisLabels.showProgression?i.value/3:i.value/2)+t.value.style.chart.labels.yAxisLabels.fontSize/3,"font-size":t.value.style.chart.labels.yAxisLabels.fontSize,fill:t.value.style.chart.labels.yAxisLabels.color,"font-weight":t.value.style.chart.labels.yAxisLabels.bold?"bold":"normal","text-anchor":"end"},e.toDisplayString(l.name),9,Se))),256)),t.value.style.chart.labels.yAxisLabels.showProgression?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(y.value,(l,o)=>(e.openBlock(),e.createElementBlock("text",{x:r.value.left-6+t.value.style.chart.labels.yAxisLabels.offsetX,y:r.value.top+o*i.value+i.value/1.3+t.value.style.chart.labels.yAxisLabels.fontSize/3,"font-size":t.value.style.chart.labels.yAxisLabels.fontSize,fill:t.value.style.chart.labels.yAxisLabels.color,"text-anchor":"end"},e.toDisplayString(e.unref(s.dataLabel)({v:100*(l.end/l.start-1),s:"%",r:t.value.style.chart.labels.yAxisLabels.rounding})),9,Ve))),256)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.chart.labels.xAxisLabels.show?(e.openBlock(),e.createElementBlock("g",Ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value.ticks,(l,o)=>(e.openBlock(),e.createElementBlock("text",{x:r.value.left+o*(r.value.width/(u.value.ticks.length-1)),y:r.value.bottom+t.value.style.chart.labels.xAxisLabels.fontSize+t.value.style.chart.labels.xAxisLabels.offsetY,"font-size":t.value.style.chart.labels.xAxisLabels.fontSize,fill:t.value.style.chart.labels.xAxisLabels.color,"font-weight":t.value.style.chart.labels.xAxisLabels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.labels.formatter,l,e.unref(s.dataLabel)({p:t.value.style.chart.labels.prefix,v:l,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.xAxisLabels.rounding}),{datapoint:l,seriesIndex:o})),9,ze))),256))])):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`start_grad_${c.value}`,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.lightenHexColor)(t.value.style.chart.plots.startColor,t.value.style.chart.plots.gradient.intensity/100)},null,8,Te),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(s.darkenHexColor)(t.value.style.chart.plots.startColor,.1)},null,8,Xe),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.startColor},null,8,De)],8,Pe),e.createElementVNode("radialGradient",{id:`end_grad_${c.value}`,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.lightenHexColor)(t.value.style.chart.plots.endColor,t.value.style.chart.plots.gradient.intensity/100)},null,8,Fe),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(s.darkenHexColor)(t.value.style.chart.plots.endColor,.1)},null,8,Me),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.endColor},null,8,Ge)],8,Oe)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,o)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`grad_positive_${c.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.chart.plots.startColor},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.endColor},null,8,He)],8,Ie),e.createElementVNode("linearGradient",{id:`grad_negative_${c.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.chart.plots.endColor},null,8,Ue),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.startColor},null,8,We)],8,Re)]),t.value.style.chart.plots.link.type==="curved"?(e.openBlock(),e.createElementBlock("g",je,[e.createElementVNode("path",{d:`M
|
|
2
|
+
${l.startX},${l.y+t.value.style.chart.plots.radius/2}
|
|
3
|
+
C ${l.centerX},${l.y} ${l.centerX},${l.y}
|
|
4
|
+
${l.endX},${l.y+t.value.style.chart.plots.radius/2}
|
|
5
|
+
L ${l.endX},${l.y-t.value.style.chart.plots.radius/2}
|
|
6
|
+
C ${l.centerX},${l.y} ${l.centerX},${l.y}
|
|
7
|
+
${l.startX},${l.y-t.value.style.chart.plots.radius/2}
|
|
8
|
+
Z
|
|
9
|
+
`,fill:l.endX>l.startX?`url(#grad_positive_${c.value})`:`url(#grad_negative_${c.value})`},null,8,Ye)])):(e.openBlock(),e.createElementBlock("g",Ze,[e.createElementVNode("rect",{x:l.endX>l.startX?l.startX:l.endX,y:l.y-t.value.style.chart.plots.link.strokeWidth/2,height:t.value.style.chart.plots.link.strokeWidth,width:Math.abs(l.endX-l.startX),fill:l.endX>l.startX?`url(#grad_positive_${c.value})`:`url(#grad_negative_${c.value})`},null,8,Je)])),e.createElementVNode("circle",{cx:l.startX,cy:l.y,r:t.value.style.chart.plots.radius,fill:t.value.style.chart.plots.gradient.show?`url(#start_grad_${c.value})`:t.value.style.chart.plots.startColor,stroke:t.value.style.chart.plots.stroke,"stroke-width":t.value.style.chart.plots.strokeWidth},null,8,Ke),e.createElementVNode("circle",{cx:l.endX,cy:l.y,r:t.value.style.chart.plots.radius,fill:t.value.style.chart.plots.gradient.show?`url(#end_grad_${c.value})`:t.value.style.chart.plots.endColor,stroke:t.value.style.chart.plots.stroke,"stroke-width":t.value.style.chart.plots.strokeWidth},null,8,Qe)]))),256)),t.value.style.chart.labels.startLabels.show?(e.openBlock(),e.createElementBlock("g",et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,o)=>(e.openBlock(),e.createElementBlock("text",{x:l.startX,y:r.value.top+(o+1)*i.value-t.value.style.chart.labels.startLabels.fontSize/3+t.value.style.chart.labels.startLabels.offsetY,fill:t.value.style.chart.labels.startLabels.useStartColor?t.value.style.chart.plots.startColor:t.value.style.chart.labels.startLabels.color,"font-size":t.value.style.chart.labels.startLabels.fontSize,"text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.labels.formatter,l.start,e.unref(s.dataLabel)({p:t.value.style.chart.labels.prefix,v:l.start,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.startLabels.rounding}),{datapoint:l,seriesIndex:o})),9,tt))),256))])):e.createCommentVNode("",!0),t.value.style.chart.labels.endLabels.show?(e.openBlock(),e.createElementBlock("g",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,o)=>(e.openBlock(),e.createElementBlock("text",{x:l.endX,y:r.value.top+o*i.value+t.value.style.chart.labels.endLabels.fontSize+t.value.style.chart.labels.endLabels.offsetY,fill:t.value.style.chart.labels.endLabels.useEndColor?t.value.style.chart.plots.endColor:t.value.style.chart.labels.endLabels.color,"font-size":t.value.style.chart.labels.endLabels.fontSize,"text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.labels.formatter,l.end,e.unref(s.dataLabel)({p:t.value.style.chart.labels.prefix,v:l.end,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.endLabels.rounding}),{datapoint:l,seriesIndex:o})),9,at))),256))])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:r.value},void 0,!0)],14,xe)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ot,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(q)||e.unref(H)})),void 0,!0)])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(he.default,{key:6,config:{type:"dumbbell",style:{backgroundColor:t.value.style.chart.backgroundColor,dumbbell:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:z},[t.value.style.chart.legend.show&&b.value?(e.openBlock(),e.createBlock(ye.Legend,{key:`legend_${O.value}`,legendSet:Y.value,config:ne.value},{item:e.withCtx(({legend:l})=>[e.createElementVNode("div",{style:e.normalizeStyle(`display:flex;align-items:center;gap:4px;font-size:${t.value.style.chart.legend.fontSize}px`)},[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(s.XMLNS),viewBox:"0 0 20 20",height:t.value.style.chart.legend.fontSize,width:t.value.style.chart.legend.fontSize},[e.createElementVNode("circle",{cx:10,cy:10,r:9,fill:l.color},null,8,st)],8,rt)),e.createTextVNode(" "+e.toDisplayString(l.name),1)],4)]),_:1},8,["legendSet","config"])):e.renderSlot(a.$slots,"legend",{key:1,legend:Y.value},void 0,!0)],512),a.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:P,dir:"auto"},[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createBlock(fe.default,{key:8,hideDetails:"",config:{open:g.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(ve.DataTable,{key:`table_${D.value}`,colNames:w.value.colNames,head:w.value.head,body:w.value.body,config:w.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:n[0]||(n[0]=l=>g.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,nt)]),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,_e))}},it=ke._export_sfc(ut,[["__scopeId","data-v-922fa05c"]]);exports.default=it;
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { computed as p, onMounted as
|
|
2
|
-
import { u as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { u as
|
|
5
|
-
import { D as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { u as Ce } from "./useNestedProp-
|
|
9
|
-
import { _ as
|
|
10
|
-
import { P as
|
|
11
|
-
import { u as
|
|
12
|
-
import {
|
|
13
|
-
|
|
1
|
+
import { computed as p, onMounted as Ye, ref as b, watch as De, createElementBlock as c, openBlock as u, unref as i, normalizeStyle as x, normalizeClass as me, createBlock as F, createCommentVNode as k, createSlots as Ge, withCtx as w, renderSlot as m, normalizeProps as W, guardReactiveProps as R, createVNode as ye, createElementVNode as M, Fragment as I, renderList as A, toDisplayString as q, createTextVNode as Ue, nextTick as Ve } from "vue";
|
|
2
|
+
import { u as Be, o as je, e as Xe, c as be, t as We, p as Z, a as Re, b as qe, v as h, f as ke, X as Ze, G as we, L as Je, i as Ke, q as Qe, r as et } from "./index-9EeNZMz1.js";
|
|
3
|
+
import { _ as tt } from "./Title-BI8etrRU.js";
|
|
4
|
+
import { u as ot, U as lt } from "./usePrinter-ngrh00Ym.js";
|
|
5
|
+
import { D as at } from "./DataTable-TjJIVFlL.js";
|
|
6
|
+
import nt from "./vue-ui-accordion-Qo8JxnIN.js";
|
|
7
|
+
import st from "./vue-ui-skeleton-BmJiYGtE.js";
|
|
8
|
+
import { u as Ce } from "./useNestedProp-df_bKQEI.js";
|
|
9
|
+
import { _ as rt } from "./PackageVersion-QRvxRYPv.js";
|
|
10
|
+
import { P as ut } from "./PenAndPaper-CxC1lWGK.js";
|
|
11
|
+
import { u as it } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
|
+
import { u as ct } from "./useChartAccessibility-BWojgys7.js";
|
|
13
|
+
import { _ as dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const vt = ["id"], ht = {
|
|
14
15
|
key: 1,
|
|
15
16
|
ref: "noTitle",
|
|
16
17
|
class: "vue-data-ui-no-title-space",
|
|
17
18
|
style: "height:36px; width: 100%;background:transparent"
|
|
18
|
-
},
|
|
19
|
+
}, ft = {
|
|
19
20
|
key: 2,
|
|
20
21
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
21
|
-
},
|
|
22
|
+
}, pt = ["xmlns", "viewBox"], gt = ["width", "height"], mt = ["id"], yt = ["stop-color"], bt = ["stop-color"], kt = ["d", "fill", "stroke", "stroke-width"], wt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "onMouseenter"], Ct = ["x", "y", "font-size", "fill"], $t = ["x", "y", "font-size", "fill"], xt = {
|
|
22
23
|
key: 4,
|
|
23
24
|
class: "vue-data-ui-watermark"
|
|
24
|
-
},
|
|
25
|
+
}, _t = {
|
|
25
26
|
key: 6,
|
|
26
27
|
ref: "source",
|
|
27
28
|
dir: "auto"
|
|
28
|
-
},
|
|
29
|
+
}, Nt = ["innerHTML"], Tt = {
|
|
29
30
|
__name: "vue-ui-flow",
|
|
30
31
|
props: {
|
|
31
32
|
config: {
|
|
@@ -42,24 +43,24 @@ const ct = ["id"], dt = {
|
|
|
42
43
|
}
|
|
43
44
|
},
|
|
44
45
|
setup($e, { expose: xe }) {
|
|
45
|
-
const { vue_ui_flow: _e } =
|
|
46
|
-
|
|
46
|
+
const { vue_ui_flow: _e } = Be(), g = $e, z = p(() => !!g.dataset && g.dataset.length);
|
|
47
|
+
Ye(() => {
|
|
47
48
|
J();
|
|
48
49
|
});
|
|
49
50
|
function J() {
|
|
50
|
-
|
|
51
|
+
je(g.dataset) && Xe({
|
|
51
52
|
componentName: "VueUiFlow",
|
|
52
53
|
type: "dataset"
|
|
53
54
|
});
|
|
54
55
|
}
|
|
55
|
-
const Y =
|
|
56
|
+
const Y = b(be()), D = b(null), K = b(0), Q = b(0), T = b(!1);
|
|
56
57
|
function Ne(t) {
|
|
57
58
|
T.value = t, K.value += 1;
|
|
58
59
|
}
|
|
59
60
|
const e = p({
|
|
60
61
|
get: () => oe(),
|
|
61
62
|
set: (t) => t
|
|
62
|
-
}), { userOptionsVisible: G, setUserOptionsVisibility: ee, keepUserOptionState: te } =
|
|
63
|
+
}), { userOptionsVisible: G, setUserOptionsVisibility: ee, keepUserOptionState: te } = it({ config: e.value }), { svgRef: Te } = ct({ config: e.value.style.chart.title });
|
|
63
64
|
function oe() {
|
|
64
65
|
const t = Ce({
|
|
65
66
|
userConfig: g.config,
|
|
@@ -67,19 +68,19 @@ const ct = ["id"], dt = {
|
|
|
67
68
|
});
|
|
68
69
|
return t.theme ? {
|
|
69
70
|
...Ce({
|
|
70
|
-
userConfig:
|
|
71
|
+
userConfig: Re.vue_ui_flow[t.theme] || g.config,
|
|
71
72
|
defaultConfig: t
|
|
72
73
|
}),
|
|
73
|
-
customPalette:
|
|
74
|
+
customPalette: We[t.theme] || Z
|
|
74
75
|
} : t;
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
+
De(() => g.config, (t) => {
|
|
77
78
|
e.value = oe(), G.value = !e.value.userOptions.showOnChartHover, J(), Q.value += 1, O.value.showTable = e.value.table.show;
|
|
78
79
|
}, { deep: !0 });
|
|
79
|
-
const { isPrinting: le, isImaging: ae, generatePdf: ne, generateImage: se } =
|
|
80
|
+
const { isPrinting: le, isImaging: ae, generatePdf: ne, generateImage: se } = ot({
|
|
80
81
|
elementId: `flow_${Y.value}`,
|
|
81
82
|
fileName: e.value.style.chart.title.text || "vue-ui-flow"
|
|
82
|
-
}),
|
|
83
|
+
}), Oe = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), U = p(() => qe(e.value.customPalette)), re = p(() => e.value.style.chart.nodes.gap), _ = p(() => e.value.style.chart.nodes.width), O = b({
|
|
83
84
|
showTable: e.value.table.show
|
|
84
85
|
}), ue = p(() => e.value.style.chart.links.width), V = p(() => !g.dataset || !g.dataset.length ? [] : g.dataset.map((t) => [
|
|
85
86
|
t[0],
|
|
@@ -100,14 +101,14 @@ const ct = ["id"], dt = {
|
|
|
100
101
|
}
|
|
101
102
|
return o;
|
|
102
103
|
});
|
|
103
|
-
function
|
|
104
|
+
function Pe(t) {
|
|
104
105
|
return t / ie.value * 100 + e.value.style.chart.nodes.minHeight;
|
|
105
106
|
}
|
|
106
|
-
function
|
|
107
|
+
function Fe(t) {
|
|
107
108
|
const l = e.value.style.chart.nodes.minHeight;
|
|
108
109
|
return (t - l) / 100 * ie.value;
|
|
109
110
|
}
|
|
110
|
-
function
|
|
111
|
+
function Ie(t) {
|
|
111
112
|
const l = {}, o = {};
|
|
112
113
|
function n(s, r) {
|
|
113
114
|
l[s] || (l[s] = { height: 0, level: null, inflow: 0, outflow: 0 }), l[s].level === null && (l[s].level = r), o[r] || (o[r] = []), o[r].includes(s) || o[r].push(s);
|
|
@@ -119,7 +120,7 @@ const ct = ["id"], dt = {
|
|
|
119
120
|
l[s].color = U.value[r] || U.value[r % U.value.length] || Z[r] || Z[r % d.length];
|
|
120
121
|
});
|
|
121
122
|
for (const s in l)
|
|
122
|
-
l[s].height =
|
|
123
|
+
l[s].height = Pe(Math.max(l[s].inflow, l[s].outflow)), l[s].name = s;
|
|
123
124
|
const a = {};
|
|
124
125
|
for (const s in o) {
|
|
125
126
|
let r = 0;
|
|
@@ -132,7 +133,7 @@ const ct = ["id"], dt = {
|
|
|
132
133
|
height: $,
|
|
133
134
|
i: N,
|
|
134
135
|
color: l[f].color,
|
|
135
|
-
value:
|
|
136
|
+
value: Fe($)
|
|
136
137
|
}, r += $ + re.value;
|
|
137
138
|
});
|
|
138
139
|
}
|
|
@@ -140,8 +141,8 @@ const ct = ["id"], dt = {
|
|
|
140
141
|
for (const s in l) {
|
|
141
142
|
let r = a[s].absoluteY + e.value.style.chart.padding.top;
|
|
142
143
|
l[s].children && l[s].children.forEach(({ target: f, value: N }, $) => {
|
|
143
|
-
const E = a[f].y + e.value.style.chart.padding.top, j = a[s], X = a[f], he = h(r), fe = h(r + N / l[s].outflow * j.height), pe = h(E), ge = h(E + N / l[f].inflow * X.height),
|
|
144
|
-
id:
|
|
144
|
+
const E = a[f].y + e.value.style.chart.padding.top, j = a[s], X = a[f], he = h(r), fe = h(r + N / l[s].outflow * j.height), pe = h(E), ge = h(E + N / l[f].inflow * X.height), ze = {
|
|
145
|
+
id: be(),
|
|
145
146
|
source: s,
|
|
146
147
|
target: f,
|
|
147
148
|
path: `M ${h(j.x) + h(_.value)} ${he} L ${h(j.x) + h(_.value)} ${fe} L ${h(X.x)} ${ge} L ${h(X.x)} ${pe} Z`,
|
|
@@ -149,13 +150,13 @@ const ct = ["id"], dt = {
|
|
|
149
150
|
sourceColor: l[s].color,
|
|
150
151
|
targetColor: l[f].color
|
|
151
152
|
};
|
|
152
|
-
v.push(
|
|
153
|
+
v.push(ze), r += fe - he, a[f].y += ge - pe;
|
|
153
154
|
});
|
|
154
155
|
}
|
|
155
156
|
return { nodeCoordinates: a, links: v };
|
|
156
157
|
}
|
|
157
|
-
const
|
|
158
|
-
const t =
|
|
158
|
+
const y = p(() => {
|
|
159
|
+
const t = Ie(g.dataset);
|
|
159
160
|
return {
|
|
160
161
|
nodes: Object.keys(t.nodeCoordinates).map((l, o) => ({
|
|
161
162
|
...t.nodeCoordinates[l],
|
|
@@ -163,7 +164,7 @@ const ct = ["id"], dt = {
|
|
|
163
164
|
})),
|
|
164
165
|
links: t.links
|
|
165
166
|
};
|
|
166
|
-
}),
|
|
167
|
+
}), Ae = p(() => Le(y.value.nodes));
|
|
167
168
|
function Le(t) {
|
|
168
169
|
const l = {};
|
|
169
170
|
for (const n in t) {
|
|
@@ -175,8 +176,8 @@ const ct = ["id"], dt = {
|
|
|
175
176
|
const P = p(() => {
|
|
176
177
|
const { top: t, right: l, left: o, bottom: n } = e.value.style.chart.padding, a = V.value.length * ue.value;
|
|
177
178
|
return {
|
|
178
|
-
height:
|
|
179
|
-
width: l + Math.max(...
|
|
179
|
+
height: Ae.value + t + n,
|
|
180
|
+
width: l + Math.max(...y.value.nodes.map((v) => v.x)) + _.value,
|
|
180
181
|
left: o,
|
|
181
182
|
top: t,
|
|
182
183
|
right: a - l,
|
|
@@ -184,20 +185,20 @@ const ct = ["id"], dt = {
|
|
|
184
185
|
p_bottom: n
|
|
185
186
|
};
|
|
186
187
|
});
|
|
187
|
-
function
|
|
188
|
+
function He(t) {
|
|
188
189
|
const l = {}, o = {}, n = /* @__PURE__ */ new Set();
|
|
189
190
|
return V.value.forEach(([a, v, s]) => {
|
|
190
191
|
l[a] || (l[a] = []), o[v] || (o[v] = []), l[a].push(v), o[v].push(a);
|
|
191
192
|
}), l[t] && l[t].forEach((a) => n.add(a)), o[t] && o[t].forEach((a) => n.add(a)), Array.from(n).concat(t);
|
|
192
193
|
}
|
|
193
|
-
const C =
|
|
194
|
-
function
|
|
195
|
-
C.value =
|
|
194
|
+
const C = b(null), L = b(null);
|
|
195
|
+
function Se(t) {
|
|
196
|
+
C.value = He(t.name), L.value = t.name;
|
|
196
197
|
}
|
|
197
|
-
function
|
|
198
|
-
C.value = null,
|
|
198
|
+
function Ee() {
|
|
199
|
+
C.value = null, L.value = null;
|
|
199
200
|
}
|
|
200
|
-
const ce = p(() =>
|
|
201
|
+
const ce = p(() => y.value.links.map(({ source: t, target: l, sourceColor: o, targetColor: n, value: a }) => ({
|
|
201
202
|
source: t,
|
|
202
203
|
target: l,
|
|
203
204
|
sourceColor: o,
|
|
@@ -205,7 +206,7 @@ const ct = ["id"], dt = {
|
|
|
205
206
|
value: a
|
|
206
207
|
})));
|
|
207
208
|
function de() {
|
|
208
|
-
|
|
209
|
+
Ve(() => {
|
|
209
210
|
const t = ce.value.map((n, a) => [
|
|
210
211
|
[n.source],
|
|
211
212
|
[n.target],
|
|
@@ -218,8 +219,8 @@ const ct = ["id"], dt = {
|
|
|
218
219
|
[e.value.table.columnNames.target],
|
|
219
220
|
[e.value.table.columnNames.value]
|
|
220
221
|
]
|
|
221
|
-
].concat(t), o =
|
|
222
|
-
|
|
222
|
+
].concat(t), o = Qe(l);
|
|
223
|
+
et({
|
|
223
224
|
csvContent: o,
|
|
224
225
|
title: e.value.style.chart.title.text || "vue-ui-flow"
|
|
225
226
|
});
|
|
@@ -269,18 +270,18 @@ const ct = ["id"], dt = {
|
|
|
269
270
|
config: o
|
|
270
271
|
};
|
|
271
272
|
});
|
|
272
|
-
function
|
|
273
|
-
return
|
|
273
|
+
function Me() {
|
|
274
|
+
return y.value;
|
|
274
275
|
}
|
|
275
276
|
function ve() {
|
|
276
277
|
O.value.showTable = !O.value.showTable;
|
|
277
278
|
}
|
|
278
|
-
const S =
|
|
279
|
+
const S = b(!1);
|
|
279
280
|
function B() {
|
|
280
281
|
S.value = !S.value;
|
|
281
282
|
}
|
|
282
283
|
return xe({
|
|
283
|
-
getData:
|
|
284
|
+
getData: Me,
|
|
284
285
|
generateCsv: de,
|
|
285
286
|
generateImage: se,
|
|
286
287
|
generatePdf: ne,
|
|
@@ -295,7 +296,7 @@ const ct = ["id"], dt = {
|
|
|
295
296
|
onMouseenter: l[2] || (l[2] = () => i(ee)(!0)),
|
|
296
297
|
onMouseleave: l[3] || (l[3] = () => i(ee)(!1))
|
|
297
298
|
}, [
|
|
298
|
-
e.value.userOptions.buttons.annotator ? (u(), F(
|
|
299
|
+
e.value.userOptions.buttons.annotator ? (u(), F(ut, {
|
|
299
300
|
key: 0,
|
|
300
301
|
parent: D.value,
|
|
301
302
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -303,9 +304,9 @@ const ct = ["id"], dt = {
|
|
|
303
304
|
active: S.value,
|
|
304
305
|
onClose: B
|
|
305
306
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : k("", !0),
|
|
306
|
-
|
|
307
|
-
e.value.style.chart.title.text ? (u(), c("div",
|
|
308
|
-
(u(), F(
|
|
307
|
+
Oe.value ? (u(), c("div", ht, null, 512)) : k("", !0),
|
|
308
|
+
e.value.style.chart.title.text ? (u(), c("div", ft, [
|
|
309
|
+
(u(), F(tt, {
|
|
309
310
|
key: `title_${Q.value}`,
|
|
310
311
|
config: {
|
|
311
312
|
title: {
|
|
@@ -319,7 +320,7 @@ const ct = ["id"], dt = {
|
|
|
319
320
|
}
|
|
320
321
|
}, null, 8, ["config"]))
|
|
321
322
|
])) : k("", !0),
|
|
322
|
-
e.value.userOptions.show && z.value && (i(te) || i(G)) ? (u(), F(
|
|
323
|
+
e.value.userOptions.show && z.value && (i(te) || i(G)) ? (u(), F(lt, {
|
|
323
324
|
ref: "details",
|
|
324
325
|
key: `user_option_${K.value}`,
|
|
325
326
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -347,7 +348,7 @@ const ct = ["id"], dt = {
|
|
|
347
348
|
style: x({
|
|
348
349
|
visibility: i(te) ? i(G) ? "visible" : "hidden" : "visible"
|
|
349
350
|
})
|
|
350
|
-
},
|
|
351
|
+
}, Ge({ _: 2 }, [
|
|
351
352
|
t.$slots.optionPdf ? {
|
|
352
353
|
name: "optionPdf",
|
|
353
354
|
fn: w(() => [
|
|
@@ -379,25 +380,27 @@ const ct = ["id"], dt = {
|
|
|
379
380
|
t.$slots.optionFullscreen ? {
|
|
380
381
|
name: "optionFullscreen",
|
|
381
382
|
fn: w(({ toggleFullscreen: o, isFullscreen: n }) => [
|
|
382
|
-
m(t.$slots, "optionFullscreen", W(
|
|
383
|
+
m(t.$slots, "optionFullscreen", W(R({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
|
|
383
384
|
]),
|
|
384
385
|
key: "4"
|
|
385
386
|
} : void 0,
|
|
386
387
|
t.$slots.optionAnnotator ? {
|
|
387
388
|
name: "optionAnnotator",
|
|
388
389
|
fn: w(({ toggleAnnotator: o, isAnnotator: n }) => [
|
|
389
|
-
m(t.$slots, "optionAnnotator", W(
|
|
390
|
+
m(t.$slots, "optionAnnotator", W(R({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
|
|
390
391
|
]),
|
|
391
392
|
key: "5"
|
|
392
393
|
} : void 0
|
|
393
394
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : k("", !0),
|
|
394
395
|
(u(), c("svg", {
|
|
395
|
-
|
|
396
|
+
ref_key: "svgRef",
|
|
397
|
+
ref: Te,
|
|
398
|
+
xmlns: i(Ze),
|
|
396
399
|
viewBox: `0 0 ${P.value.width} ${P.value.height}`,
|
|
397
400
|
class: me({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
|
|
398
401
|
style: x(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
399
402
|
}, [
|
|
400
|
-
|
|
403
|
+
ye(rt),
|
|
401
404
|
t.$slots["chart-background"] ? (u(), c("foreignObject", {
|
|
402
405
|
key: 0,
|
|
403
406
|
x: 0,
|
|
@@ -409,9 +412,9 @@ const ct = ["id"], dt = {
|
|
|
409
412
|
}
|
|
410
413
|
}, [
|
|
411
414
|
m(t.$slots, "chart-background", {}, void 0, !0)
|
|
412
|
-
], 8,
|
|
415
|
+
], 8, gt)) : k("", !0),
|
|
413
416
|
M("defs", null, [
|
|
414
|
-
(u(!0), c(I, null,
|
|
417
|
+
(u(!0), c(I, null, A(y.value.links, (o, n) => (u(), c("linearGradient", {
|
|
415
418
|
id: o.id,
|
|
416
419
|
x1: "0%",
|
|
417
420
|
y1: "0%",
|
|
@@ -421,22 +424,22 @@ const ct = ["id"], dt = {
|
|
|
421
424
|
M("stop", {
|
|
422
425
|
offset: "0%",
|
|
423
426
|
"stop-color": o.sourceColor
|
|
424
|
-
}, null, 8,
|
|
427
|
+
}, null, 8, yt),
|
|
425
428
|
M("stop", {
|
|
426
429
|
offset: "100%",
|
|
427
430
|
"stop-color": o.targetColor
|
|
428
|
-
}, null, 8,
|
|
429
|
-
], 8,
|
|
431
|
+
}, null, 8, bt)
|
|
432
|
+
], 8, mt))), 256))
|
|
430
433
|
]),
|
|
431
|
-
(u(!0), c(I, null,
|
|
434
|
+
(u(!0), c(I, null, A(y.value.links, (o) => (u(), c("path", {
|
|
432
435
|
class: "vue-ui-flow-link",
|
|
433
436
|
d: o.path,
|
|
434
437
|
fill: `url(#${o.id})`,
|
|
435
438
|
stroke: e.value.style.chart.links.stroke,
|
|
436
439
|
"stroke-width": e.value.style.chart.links.strokeWidth,
|
|
437
|
-
style: x(`opacity:${
|
|
438
|
-
}, null, 12,
|
|
439
|
-
(u(!0), c(I, null,
|
|
440
|
+
style: x(`opacity:${L.value ? [o.target, o.source].includes(L.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}`)
|
|
441
|
+
}, null, 12, kt))), 256)),
|
|
442
|
+
(u(!0), c(I, null, A(y.value.nodes, (o, n) => (u(), c("rect", {
|
|
440
443
|
class: "vue-ui-flow-node",
|
|
441
444
|
x: o.x,
|
|
442
445
|
y: i(h)(o.absoluteY) + e.value.style.chart.padding.top,
|
|
@@ -445,26 +448,26 @@ const ct = ["id"], dt = {
|
|
|
445
448
|
fill: o.color,
|
|
446
449
|
stroke: e.value.style.chart.nodes.stroke,
|
|
447
450
|
"stroke-width": e.value.style.chart.nodes.strokeWidth,
|
|
448
|
-
onMouseenter: (a) =>
|
|
449
|
-
onMouseleave: l[0] || (l[0] = (a) =>
|
|
451
|
+
onMouseenter: (a) => Se(o),
|
|
452
|
+
onMouseleave: l[0] || (l[0] = (a) => Ee()),
|
|
450
453
|
style: x(`opacity:${C.value ? C.value.includes(o.name) ? 1 : 0.2 : 1}`)
|
|
451
|
-
}, null, 44,
|
|
452
|
-
(u(!0), c(I, null,
|
|
454
|
+
}, null, 44, wt))), 256)),
|
|
455
|
+
(u(!0), c(I, null, A(y.value.nodes, (o, n) => (u(), c("text", {
|
|
453
456
|
x: o.x + _.value / 2,
|
|
454
457
|
y: i(h)(o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4) + e.value.style.chart.padding.top,
|
|
455
458
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
456
459
|
fill: i(we)(o.color),
|
|
457
460
|
"text-anchor": "middle",
|
|
458
461
|
style: x(`pointer-events: none; opacity:${C.value ? C.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
459
|
-
},
|
|
460
|
-
(u(!0), c(I, null,
|
|
462
|
+
}, q(e.value.style.chart.nodes.labels.abbreviation.use ? i(Je)({ source: o.name, length: e.value.style.chart.nodes.labels.abbreviation.length }) : o.name), 13, Ct))), 256)),
|
|
463
|
+
(u(!0), c(I, null, A(y.value.nodes, (o, n) => (u(), c("text", {
|
|
461
464
|
x: o.x + _.value / 2,
|
|
462
465
|
y: i(h)(o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize) + e.value.style.chart.padding.top,
|
|
463
466
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
464
467
|
fill: i(we)(o.color),
|
|
465
468
|
"text-anchor": "middle",
|
|
466
469
|
style: x(`pointer-events: none; opacity:${C.value ? C.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
467
|
-
},
|
|
470
|
+
}, q(i(Ke)(
|
|
468
471
|
e.value.style.chart.nodes.labels.formatter,
|
|
469
472
|
o.value,
|
|
470
473
|
i(ke)({
|
|
@@ -474,13 +477,13 @@ const ct = ["id"], dt = {
|
|
|
474
477
|
r: e.value.style.chart.nodes.labels.rounding
|
|
475
478
|
}),
|
|
476
479
|
{ datapoint: o, seriesIndex: n }
|
|
477
|
-
)), 13,
|
|
480
|
+
)), 13, $t))), 256)),
|
|
478
481
|
m(t.$slots, "svg", { svg: P.value }, void 0, !0)
|
|
479
|
-
], 14,
|
|
480
|
-
t.$slots.watermark ? (u(), c("div",
|
|
481
|
-
m(t.$slots, "watermark", W(
|
|
482
|
+
], 14, pt)),
|
|
483
|
+
t.$slots.watermark ? (u(), c("div", xt, [
|
|
484
|
+
m(t.$slots, "watermark", W(R({ isPrinting: i(le) || i(ae) })), void 0, !0)
|
|
482
485
|
])) : k("", !0),
|
|
483
|
-
z.value ? k("", !0) : (u(), F(
|
|
486
|
+
z.value ? k("", !0) : (u(), F(st, {
|
|
484
487
|
key: 5,
|
|
485
488
|
config: {
|
|
486
489
|
type: "flow",
|
|
@@ -489,10 +492,10 @@ const ct = ["id"], dt = {
|
|
|
489
492
|
}
|
|
490
493
|
}
|
|
491
494
|
}, null, 8, ["config"])),
|
|
492
|
-
t.$slots.source ? (u(), c("div",
|
|
495
|
+
t.$slots.source ? (u(), c("div", _t, [
|
|
493
496
|
m(t.$slots, "source", {}, void 0, !0)
|
|
494
497
|
], 512)) : k("", !0),
|
|
495
|
-
z.value ? (u(), F(
|
|
498
|
+
z.value ? (u(), F(nt, {
|
|
496
499
|
key: 7,
|
|
497
500
|
hideDetails: "",
|
|
498
501
|
config: {
|
|
@@ -509,7 +512,7 @@ const ct = ["id"], dt = {
|
|
|
509
512
|
}
|
|
510
513
|
}, {
|
|
511
514
|
content: w(() => [
|
|
512
|
-
|
|
515
|
+
ye(at, {
|
|
513
516
|
colNames: H.value.colNames,
|
|
514
517
|
head: H.value.head,
|
|
515
518
|
body: H.value.body,
|
|
@@ -521,19 +524,19 @@ const ct = ["id"], dt = {
|
|
|
521
524
|
M("div", {
|
|
522
525
|
innerHTML: o,
|
|
523
526
|
style: { display: "flex", "align-items": "center" }
|
|
524
|
-
}, null, 8,
|
|
527
|
+
}, null, 8, Nt)
|
|
525
528
|
]),
|
|
526
529
|
td: w(({ td: o }) => [
|
|
527
|
-
|
|
530
|
+
Ue(q(o.name || o), 1)
|
|
528
531
|
]),
|
|
529
532
|
_: 1
|
|
530
533
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
531
534
|
]),
|
|
532
535
|
_: 1
|
|
533
536
|
}, 8, ["config"])) : k("", !0)
|
|
534
|
-
], 46,
|
|
537
|
+
], 46, vt));
|
|
535
538
|
}
|
|
536
|
-
},
|
|
539
|
+
}, Gt = /* @__PURE__ */ dt(Tt, [["__scopeId", "data-v-91f228f8"]]);
|
|
537
540
|
export {
|
|
538
|
-
|
|
541
|
+
Gt as default
|
|
539
542
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DEnRHTzk.cjs"),ye=require("./Title-Dk92HYMu.cjs"),te=require("./usePrinter-dyVny55M.cjs"),be=require("./DataTable-Cv_TVAas.cjs"),we=require("./vue-ui-accordion-D2qxHGzp.cjs"),Ce=require("./vue-ui-skeleton-_DN0U6W6.cjs"),oe=require("./useNestedProp-BNT60LxO.cjs"),Ne=require("./PackageVersion-DJKkRuOD.cjs"),xe=require("./PenAndPaper-MTTJ3Gd9.cjs"),Be=require("./useUserOptionState-BgepsfED.cjs"),$e=require("./useChartAccessibility-Cm7nkzTG.cjs"),_e=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=["id"],Ee={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},Pe={key:2,style:"width:100%;background:transparent;padding-bottom:24px"},Te=["xmlns","viewBox"],Oe=["width","height"],Fe=["id"],Le=["stop-color"],Ve=["stop-color"],ze=["d","fill","stroke","stroke-width"],Ae=["x","y","height","width","fill","stroke","stroke-width","onMouseenter"],Ie=["x","y","font-size","fill"],He=["x","y","font-size","fill"],Me={key:4,class:"vue-data-ui-watermark"},qe={key:6,ref:"source",dir:"auto"},De=["innerHTML"],Ue={__name:"vue-ui-flow",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(le,{expose:ne}){const{vue_ui_flow:ae}=s.useConfig(),h=le,$=e.computed(()=>!!h.dataset&&h.dataset.length);e.onMounted(()=>{V()});function V(){s.objectIsEmpty(h.dataset)&&s.error({componentName:"VueUiFlow",type:"dataset"})}const _=e.ref(s.createUid()),S=e.ref(null),z=e.ref(0),A=e.ref(0),y=e.ref(!1);function re(o){y.value=o,z.value+=1}const t=e.computed({get:()=>M(),set:o=>o}),{userOptionsVisible:E,setUserOptionsVisibility:I,keepUserOptionState:H}=Be.useUserOptionState({config:t.value}),{svgRef:se}=$e.useChartAccessibility({config:t.value.style.chart.title});function M(){const o=oe.useNestedProp({userConfig:h.config,defaultConfig:ae});return o.theme?{...oe.useNestedProp({userConfig:s.themes.vue_ui_flow[o.theme]||h.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>h.config,o=>{t.value=M(),E.value=!t.value.userOptions.showOnChartHover,V(),A.value+=1,b.value.showTable=t.value.table.show},{deep:!0});const{isPrinting:q,isImaging:D,generatePdf:U,generateImage:Y}=te.usePrinter({elementId:`flow_${_.value}`,fileName:t.value.style.chart.title.text||"vue-ui-flow"}),ue=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),P=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),G=e.computed(()=>t.value.style.chart.nodes.gap),g=e.computed(()=>t.value.style.chart.nodes.width),b=e.ref({showTable:t.value.table.show}),j=e.computed(()=>t.value.style.chart.links.width),T=e.computed(()=>!h.dataset||!h.dataset.length?[]:h.dataset.map(o=>[o[0],o[1],s.checkNaN(o[2])])),R=e.computed(()=>{const o={};function n(r){o[r]||(o[r]={inflow:0,outflow:0})}T.value.forEach(([r,a,c])=>{n(r),n(a),o[r].outflow+=c,o[a].inflow+=c});let l=0;for(const r in o){const a=Math.max(o[r].inflow,o[r].outflow);l=Math.max(l,a)}return l});function ie(o){return o/R.value*100+t.value.style.chart.nodes.minHeight}function ce(o){const n=t.value.style.chart.nodes.minHeight;return(o-n)/100*R.value}function de(o){const n={},l={};function r(u,i){n[u]||(n[u]={height:0,level:null,inflow:0,outflow:0}),n[u].level===null&&(n[u].level=i),l[i]||(l[i]=[]),l[i].includes(u)||l[i].push(u)}o.forEach(([u,i,v],k)=>{const m=n[u]?n[u].level:0,B=m+1;r(u,m),r(i,B),n[u].children||(n[u].children=[]),n[u].children.push({target:i,value:v}),n[u].outflow+=v,n[i].inflow+=v}),Object.keys(n).forEach((u,i)=>{n[u].color=P.value[i]||P.value[i%P.value.length]||s.palette[i]||s.palette[i%d.length]});for(const u in n)n[u].height=ie(Math.max(n[u].inflow,n[u].outflow)),n[u].name=u;const a={};for(const u in l){let i=0;l[u].forEach((v,k)=>{const m=n[v].height;a[v]={x:parseInt(u,10)*j.value+t.value.style.chart.padding.left,y:i,absoluteY:i,height:m,i:k,color:n[v].color,value:ce(m)},i+=m+G.value})}const c=[];for(const u in n){let i=a[u].absoluteY+t.value.style.chart.padding.top;n[u].children&&n[u].children.forEach(({target:v,value:k},m)=>{const B=a[v].y+t.value.style.chart.padding.top,F=a[u],L=a[v],J=s.checkNaN(i),K=s.checkNaN(i+k/n[u].outflow*F.height),Q=s.checkNaN(B),ee=s.checkNaN(B+k/n[v].inflow*L.height),ke={id:s.createUid(),source:u,target:v,path:`M ${s.checkNaN(F.x)+s.checkNaN(g.value)} ${J} L ${s.checkNaN(F.x)+s.checkNaN(g.value)} ${K} L ${s.checkNaN(L.x)} ${ee} L ${s.checkNaN(L.x)} ${Q} Z`,value:k,sourceColor:n[u].color,targetColor:n[v].color};c.push(ke),i+=K-J,a[v].y+=ee-Q})}return{nodeCoordinates:a,links:c}}const f=e.computed(()=>{const o=de(h.dataset);return{nodes:Object.keys(o.nodeCoordinates).map((n,l)=>({...o.nodeCoordinates[n],name:n})),links:o.links}}),ve=e.computed(()=>he(f.value.nodes));function he(o){const n={};for(const r in o){const{x:a,height:c}=o[r];n[a]||(n[a]=0),n[a]+=c+G.value}return Math.max(...Object.values(n))}const w=e.computed(()=>{const{top:o,right:n,left:l,bottom:r}=t.value.style.chart.padding,a=T.value.length*j.value;return{height:ve.value+o+r,width:n+Math.max(...f.value.nodes.map(c=>c.x))+g.value,left:l,top:o,right:a-n,p_top:o,p_bottom:r}});function fe(o){const n={},l={},r=new Set;return T.value.forEach(([a,c,u])=>{n[a]||(n[a]=[]),l[c]||(l[c]=[]),n[a].push(c),l[c].push(a)}),n[o]&&n[o].forEach(a=>r.add(a)),l[o]&&l[o].forEach(a=>r.add(a)),Array.from(r).concat(o)}const p=e.ref(null),C=e.ref(null);function pe(o){p.value=fe(o.name),C.value=o.name}function me(){p.value=null,C.value=null}const W=e.computed(()=>f.value.links.map(({source:o,target:n,sourceColor:l,targetColor:r,value:a})=>({source:o,target:n,sourceColor:l,targetColor:r,value:a})));function X(){e.nextTick(()=>{const o=W.value.map((r,a)=>[[r.source],[r.target],[r.value]]),n=[[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(n);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-flow"})})}const N=e.computed(()=>{const o=[t.value.table.columnNames.source,t.value.table.columnNames.target,t.value.table.columnNames.value],n=W.value.map((a,c)=>[{color:a.sourceColor,name:a.source},{color:a.targetColor,name:a.target},s.dataLabel({p:t.value.style.chart.nodes.labels.prefix,v:a.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:n,config:l}});function ge(){return f.value}function Z(){b.value.showTable=!b.value.showTable}const x=e.ref(!1);function O(){x.value=!x.value}return ne({getData:ge,generateCsv:X,generateImage:Y,generatePdf:U,toggleTable:Z,toggleAnnotator:O}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"flowChart",ref:S,class:e.normalizeClass(`vue-ui-flow ${y.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_${_.value}`,onMouseenter:n[2]||(n[2]=()=>e.unref(I)(!0)),onMouseleave:n[3]||(n[3]=()=>e.unref(I)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(xe.PenAndPaper,{key:0,parent:S.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:x.value,onClose:O},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ue.value?(e.openBlock(),e.createElementBlock("div",Ee,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",Pe,[(e.openBlock(),e.createBlock(ye._sfc_main,{key:`title_${A.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&&$.value&&(e.unref(H)||e.unref(E))?(e.openBlock(),e.createBlock(te.UserOptions,{ref:"details",key:`user_option_${z.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(q),isImaging:e.unref(D),uid:_.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:y.value,titles:{...t.value.userOptions.buttonTitles},chartElement:S.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:x.value,onToggleFullscreen:re,onGeneratePdf:e.unref(U),onGenerateCsv:X,onGenerateImage:e.unref(Y),onToggleTable:Z,onToggleAnnotator:O,style:e.normalizeStyle({visibility:e.unref(H)?e.unref(E)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{ref_key:"svgRef",ref:se,xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${w.value.width} ${w.value.height}`,class:e.normalizeClass({"vue-data-ui-fullscreen--on":y.value,"vue-data-ui-fulscreen--off":!y.value}),style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ne._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:w.value.width,height:w.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,Oe)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.links,(l,r)=>(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,Le),e.createElementVNode("stop",{offset:"100%","stop-color":l.targetColor},null,8,Ve)],8,Fe))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.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:${C.value?[l.target,l.source].includes(C.value)?1:.3:t.value.style.chart.links.opacity}`)},null,12,ze))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,r)=>(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:g.value,fill:l.color,stroke:t.value.style.chart.nodes.stroke,"stroke-width":t.value.style.chart.nodes.strokeWidth,onMouseenter:a=>pe(l),onMouseleave:n[0]||(n[0]=a=>me()),style:e.normalizeStyle(`opacity:${p.value?p.value.includes(l.name)?1:.2:1}`)},null,44,Ae))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:l.x+g.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:${p.value?p.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,Ie))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:l.x+g.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:${p.value?p.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:r})),13,He))),256)),e.renderSlot(o.$slots,"svg",{svg:w.value},void 0,!0)],14,Te)),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Me,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(q)||e.unref(D)})),void 0,!0)])):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ce.default,{key:5,config:{type:"flow",style:{backgroundColor:t.value.style.chart.backgroundColor}}},null,8,["config"])),o.$slots.source?(e.openBlock(),e.createElementBlock("div",qe,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createBlock(we.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:N.value.colNames,head:N.value.head,body:N.value.body,config:N.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:n[1]||(n[1]=l=>b.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,De)]),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,Se))}},Ye=_e._export_sfc(Ue,[["__scopeId","data-v-91f228f8"]]);exports.default=Ye;
|