vue-data-ui 2.10.6 → 2.10.8
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-Cl3tB80E.cjs → Arrow-NnfTvwbg.cjs} +1 -1
- package/dist/{Arrow-rRiIHng2.js → Arrow-aCcBx0NS.js} +1 -1
- package/dist/{BaseIcon-COlnFbOq.js → BaseIcon-DTt4YbQE.js} +1 -1
- package/dist/{BaseIcon-CiINppo2.cjs → BaseIcon-DmfPEj6j.cjs} +1 -1
- package/dist/{ColorPicker-UNzkvlGG.js → ColorPicker-DrovFYIL.js} +3 -3
- package/dist/{ColorPicker-9QCAgrqp.cjs → ColorPicker-DsEujcIN.cjs} +1 -1
- package/dist/{DataTable-CXbN2mJi.js → DataTable-CX-Ynkp4.js} +2 -2
- package/dist/{DataTable-DOiZOQ3J.cjs → DataTable-zSU-0X__.cjs} +1 -1
- package/dist/{Legend-BU9C5fBQ.js → Legend-BTvPguV6.js} +2 -2
- package/dist/{Legend-CFqKBI0j.cjs → Legend-DFQ4iWI3.cjs} +1 -1
- package/dist/{PackageVersion-0Lu6RIig.js → PackageVersion-CkUbRQrt.js} +1 -1
- package/dist/{PackageVersion-BMNt7NsQ.cjs → PackageVersion-DxR-fKLM.cjs} +1 -1
- package/dist/{PenAndPaper-D4Uu-GqW.js → PenAndPaper-Br3OdauM.js} +3 -3
- package/dist/{PenAndPaper-BUwLP3Wx.cjs → PenAndPaper-CG9o3ymS.cjs} +1 -1
- package/dist/{Shape-2NRWULE_.cjs → Shape-D9l3WJGO.cjs} +1 -1
- package/dist/{Shape-BavMx2aa.js → Shape-Y1FgLdPz.js} +1 -1
- package/dist/{Slicer-Ct8BAk8F.cjs → Slicer-B7FJCuCB.cjs} +1 -1
- package/dist/{Slicer-B_qJHvNR.js → Slicer-C2GR76As.js} +2 -2
- package/dist/{Title-BkfQdTEX.cjs → Title-CEZO2hzQ.cjs} +1 -1
- package/dist/{Title-DrVDm1wy.js → Title-tlFeM12I.js} +1 -1
- package/dist/{Tooltip-BFT6mZ5a.js → Tooltip-BCtHh3BT.js} +1 -1
- package/dist/{Tooltip-BK88meti.cjs → Tooltip-BZa-QzER.cjs} +1 -1
- package/dist/documentation/installation.md +1 -1
- package/dist/{dom-to-png-0WSGIcUV.js → dom-to-png-CjxHTZgX.js} +1 -1
- package/dist/{dom-to-png-CyVwBzNm.cjs → dom-to-png-fAhFmKHV.cjs} +1 -1
- package/dist/{img-DqK-SXIP.cjs → img-Ds_hWTTu.cjs} +1 -1
- package/dist/{img-BT-UmGcu.js → img-w_iFTYRY.js} +1 -1
- package/dist/{index-hMo72hAq.js → index-Co5UfCMK.js} +275 -257
- package/dist/index-Dy2-pNb6.cjs +9 -0
- package/dist/{pdf-G7o-GM_m.js → pdf-BfkOvZWw.js} +1 -1
- package/dist/{pdf-DY3kwqSx.cjs → pdf-CCdcXY_7.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +54 -0
- package/dist/types/vue-data-ui.d.ts +54 -0
- package/dist/{useNestedProp-DhEaBTgF.js → useNestedProp-C22WP03t.js} +1 -1
- package/dist/{useNestedProp-DcWhlk8h.cjs → useNestedProp-DQ8Jt3-Y.cjs} +1 -1
- package/dist/{usePrinter-B4ojFS2B.cjs → usePrinter-BQEYwy4a.cjs} +1 -1
- package/dist/{usePrinter-D2z-bUtX.js → usePrinter-D_wgo-7k.js} +3 -3
- package/dist/{vue-data-ui-BTkU5knB.js → vue-data-ui-C18HDIa2.js} +62 -62
- package/dist/{vue-data-ui-BR4hs3ky.cjs → vue-data-ui-zmg06AF1.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-Cx2zND3j.cjs → vue-ui-3d-bar-C_gJuhTV.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-DD3_LLbq.js → vue-ui-3d-bar-SB6p5amV.js} +9 -9
- package/dist/{vue-ui-accordion-CHMdpjnX.js → vue-ui-accordion-CfB_jW1X.js} +3 -3
- package/dist/{vue-ui-accordion-DUGBjyB1.cjs → vue-ui-accordion-dVGUWjXH.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-WpMKbqUM.cjs → vue-ui-age-pyramid-DZ_ajGY_.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CUS2cIAl.js → vue-ui-age-pyramid-G8ggvkGU.js} +10 -10
- package/dist/{vue-ui-annotator-B5VYzARK.cjs → vue-ui-annotator-BkZat_7T.cjs} +1 -1
- package/dist/{vue-ui-annotator-Ckyjvy1h.js → vue-ui-annotator-DeoWv4A3.js} +2 -2
- package/dist/{vue-ui-bullet-i97qMAx7.js → vue-ui-bullet-CvjS0_Pz.js} +8 -8
- package/dist/{vue-ui-bullet-Clccjys0.cjs → vue-ui-bullet-D9jaszdm.cjs} +1 -1
- package/dist/{vue-ui-candlestick-B35fn-Jo.cjs → vue-ui-candlestick-gnsNiFI3.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Dmu21ktX.js → vue-ui-candlestick-xBYW3oOn.js} +11 -11
- package/dist/{vue-ui-carousel-table-cvW3wpY7.js → vue-ui-carousel-table-BKQIWhzt.js} +4 -4
- package/dist/{vue-ui-carousel-table-23ggTo5D.cjs → vue-ui-carousel-table-DNW8HJNv.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CZpShJyS.js → vue-ui-chestnut-C5RprHfl.js} +8 -8
- package/dist/{vue-ui-chestnut-CkuDV8dp.cjs → vue-ui-chestnut-D9UKh8la.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-B6d9PjE2.js → vue-ui-circle-pack-Cx4gGG1K.js} +9 -9
- package/dist/{vue-ui-circle-pack-C2IQV5_6.cjs → vue-ui-circle-pack-OTXbeD89.cjs} +1 -1
- package/dist/{vue-ui-cursor-CZBmEqOC.cjs → vue-ui-cursor-BuEDX1kV.cjs} +1 -1
- package/dist/{vue-ui-cursor-CG4bTWjj.js → vue-ui-cursor-Cdvi-0lD.js} +2 -2
- package/dist/{vue-ui-dashboard-D-95GOHa.cjs → vue-ui-dashboard-BAPaHtqr.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DqM_deY-.js → vue-ui-dashboard-BLHl6FJI.js} +62 -62
- package/dist/{vue-ui-digits-CKpey7p1.js → vue-ui-digits-CCAt8_aJ.js} +2 -2
- package/dist/{vue-ui-digits-Cdauuy8X.cjs → vue-ui-digits-YV4qxb86.cjs} +1 -1
- package/dist/{vue-ui-donut-j519aqqU.cjs → vue-ui-donut-BvjPFjpd.cjs} +1 -1
- package/dist/{vue-ui-donut-Dp2Yy4fh.js → vue-ui-donut-CNZIha3Z.js} +12 -12
- package/dist/{vue-ui-donut-evolution-ClL_5jhm.js → vue-ui-donut-evolution-DNhwy9qU.js} +11 -11
- package/dist/{vue-ui-donut-evolution-Cg1VnagT.cjs → vue-ui-donut-evolution-Dxx5Psl4.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-C8tOQUbs.js → vue-ui-dumbbell-BmRkAtBK.js} +10 -10
- package/dist/{vue-ui-dumbbell-CNJ9en-A.cjs → vue-ui-dumbbell-MGMSs7vG.cjs} +1 -1
- package/dist/vue-ui-flow-B3t_sNr4.cjs +3 -0
- package/dist/vue-ui-flow-CxhJwDZa.js +767 -0
- package/dist/{vue-ui-funnel-CfxmaNEA.js → vue-ui-funnel-CJHKcUDg.js} +9 -9
- package/dist/{vue-ui-funnel-DbVCaDxm.cjs → vue-ui-funnel-twMmn36_.cjs} +1 -1
- package/dist/{vue-ui-galaxy-zBDItFVz.cjs → vue-ui-galaxy-BjBTNZ6j.cjs} +1 -1
- package/dist/{vue-ui-galaxy-dm_p5xAR.js → vue-ui-galaxy-CDonLoXv.js} +11 -11
- package/dist/{vue-ui-gauge-DwwvbGca.js → vue-ui-gauge-C7L0uVvx.js} +7 -7
- package/dist/{vue-ui-gauge-Dr-7ojj9.cjs → vue-ui-gauge-DXadxMZn.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Cq0SpTfm.js → vue-ui-gizmo-C9JuTLL-.js} +3 -3
- package/dist/{vue-ui-gizmo-CB5NfNit.cjs → vue-ui-gizmo-u7ypeW6n.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DtRSx7DO.cjs → vue-ui-heatmap-Cjckqsrg.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DNSOppoO.js → vue-ui-heatmap-DaAgigHH.js} +10 -10
- package/dist/{vue-ui-history-plot-r9eLYJCe.js → vue-ui-history-plot-KoGpnC64.js} +11 -11
- package/dist/{vue-ui-history-plot-BvC3L9g3.cjs → vue-ui-history-plot-YLMX8PqM.cjs} +1 -1
- package/dist/{vue-ui-kpi-BBpxo07S.js → vue-ui-kpi-DNUDGlWM.js} +3 -3
- package/dist/{vue-ui-kpi-raHWFHjI.cjs → vue-ui-kpi-GZlFX5zg.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CGtQXPzk.js → vue-ui-mini-loader-9YvdM0_A.js} +2 -2
- package/dist/{vue-ui-mini-loader-STx0NSvX.cjs → vue-ui-mini-loader-D1HhmCbC.cjs} +1 -1
- package/dist/{vue-ui-molecule-EYSvyl-h.js → vue-ui-molecule-B71fJREj.js} +11 -11
- package/dist/{vue-ui-molecule-B4WJo2V5.cjs → vue-ui-molecule-DDsKb9re.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CfHUyyMY.cjs → vue-ui-mood-radar-BO4yaBxo.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Crk-XB3O.js → vue-ui-mood-radar-DH4RYmdT.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DRJZT5Bv.cjs → vue-ui-nested-donuts-BlxuqLPb.cjs} +2 -2
- package/dist/{vue-ui-nested-donuts-Rm4P3uEP.js → vue-ui-nested-donuts-bOXvQ01U.js} +12 -12
- package/dist/{vue-ui-onion-Bgvs96ms.cjs → vue-ui-onion-BugH4ThJ.cjs} +1 -1
- package/dist/{vue-ui-onion-Dzl_kjlE.js → vue-ui-onion-D7VhEicc.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-98c0XRsu.js → vue-ui-parallel-coordinate-plot-Bc5Yr0Yr.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-YuLiWTox.cjs → vue-ui-parallel-coordinate-plot-DjTMM1Zt.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CiqJKJu1.cjs → vue-ui-quadrant-Dni5Lkhg.cjs} +1 -1
- package/dist/{vue-ui-quadrant-Dd1ryxBx.js → vue-ui-quadrant-PrjG5beo.js} +12 -12
- package/dist/{vue-ui-quick-chart-CTsvK-CY.js → vue-ui-quick-chart-C46V8Ffa.js} +9 -9
- package/dist/{vue-ui-quick-chart-DMceIo39.cjs → vue-ui-quick-chart-LuGKbIvU.cjs} +1 -1
- package/dist/{vue-ui-radar-CHYpedpk.js → vue-ui-radar-05pd47HM.js} +12 -12
- package/dist/{vue-ui-radar-Dp8-SmYd.cjs → vue-ui-radar-j2Vgot8p.cjs} +1 -1
- package/dist/{vue-ui-rating-DSsm92zG.js → vue-ui-rating-Bl_q3TYs.js} +2 -2
- package/dist/{vue-ui-rating-uVphq_sK.cjs → vue-ui-rating-ClxiMhPq.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BPVBRieo.js → vue-ui-relation-circle-Bu5eYbEg.js} +7 -7
- package/dist/{vue-ui-relation-circle-46wKUZTv.cjs → vue-ui-relation-circle-BuoQTWw_.cjs} +1 -1
- package/dist/{vue-ui-ridgeline-B6GA2tXb.js → vue-ui-ridgeline-D4ot7MF8.js} +12 -12
- package/dist/{vue-ui-ridgeline-OULIMr6I.cjs → vue-ui-ridgeline-ESRn_Q1y.cjs} +1 -1
- package/dist/{vue-ui-rings-HVHIYYrh.cjs → vue-ui-rings-D7o_vleu.cjs} +1 -1
- package/dist/{vue-ui-rings-Cl-607b8.js → vue-ui-rings-Dyl5VV9I.js} +12 -12
- package/dist/{vue-ui-scatter-BZ4DPyoL.cjs → vue-ui-scatter-B31kZz0w.cjs} +1 -1
- package/dist/{vue-ui-scatter-ClYbim5F.js → vue-ui-scatter-njuULIsD.js} +12 -12
- package/dist/{vue-ui-skeleton-C3t9bL6f.js → vue-ui-skeleton-BSlYUHZA.js} +3 -3
- package/dist/{vue-ui-skeleton-C954hFY-.cjs → vue-ui-skeleton-Db7PiDqL.cjs} +1 -1
- package/dist/{vue-ui-smiley-DsKnKBFv.js → vue-ui-smiley-BmNRkSub.js} +2 -2
- package/dist/{vue-ui-smiley-BBGCa2S0.cjs → vue-ui-smiley-CfdbRWq6.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-Da-HE7x2.js → vue-ui-spark-trend-B0Xvu1YP.js} +5 -5
- package/dist/{vue-ui-spark-trend-CBa0FhIy.cjs → vue-ui-spark-trend-CwtYlUEX.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CUul3e3U.cjs → vue-ui-sparkbar-Xy7idkhv.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DgQxbUeJ.js → vue-ui-sparkbar-e2-8wHQH.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BKA5GnGO.js → vue-ui-sparkgauge-_cMBBl3V.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DYPVqz6I.cjs → vue-ui-sparkgauge-vjcDqzGe.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CNN9tXh1.cjs → vue-ui-sparkhistogram-BpD6XxfA.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CdZy4SfH.js → vue-ui-sparkhistogram-DUyGQgqZ.js} +5 -5
- package/dist/{vue-ui-sparkline-DCNNoruu.js → vue-ui-sparkline-D1wfG3Yw.js} +4 -4
- package/dist/{vue-ui-sparkline-BCP4gyTp.cjs → vue-ui-sparkline-cPPxz94c.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BAXGFcPk.js → vue-ui-sparkstackbar-BCTx016Z.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-sgehFSit.cjs → vue-ui-sparkstackbar-iRVpx_xT.cjs} +1 -1
- package/dist/{vue-ui-stackbar-Cto9A9WG.js → vue-ui-stackbar--QKW68d6.js} +13 -13
- package/dist/{vue-ui-stackbar-87l909wS.cjs → vue-ui-stackbar-DCotybpB.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-C0F8_S_g.js → vue-ui-strip-plot-BhLBOV7s.js} +11 -11
- package/dist/{vue-ui-strip-plot-Deegqmms.cjs → vue-ui-strip-plot-CdceC4jP.cjs} +1 -1
- package/dist/{vue-ui-table-BUxFdYM7.cjs → vue-ui-table-Cd9UeZXy.cjs} +1 -1
- package/dist/{vue-ui-table-1vUkkwSp.js → vue-ui-table-DjDENKmJ.js} +3 -3
- package/dist/{vue-ui-table-heatmap-PPGfjMxh.js → vue-ui-table-heatmap-CZdiE-l3.js} +4 -4
- package/dist/{vue-ui-table-heatmap-uDH3owRO.cjs → vue-ui-table-heatmap-gbdWhEG_.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CPSlJVB1.cjs → vue-ui-table-sparkline-BFQ4DQRu.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-D9LEgrxj.js → vue-ui-table-sparkline-zGotm14D.js} +5 -5
- package/dist/{vue-ui-thermometer-D8P88pea.cjs → vue-ui-thermometer-CRhrvWm0.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BxngpuEZ.js → vue-ui-thermometer-DA3KgSw1.js} +7 -7
- package/dist/{vue-ui-timer-B_dh6otW.cjs → vue-ui-timer-DnXYrfrB.cjs} +1 -1
- package/dist/{vue-ui-timer-C3dxY--Q.js → vue-ui-timer-ult9htF3.js} +5 -5
- package/dist/{vue-ui-tiremarks-_oZ6wL6K.js → vue-ui-tiremarks-CRXtVmEM.js} +7 -7
- package/dist/{vue-ui-tiremarks-mISKtpmD.cjs → vue-ui-tiremarks-Dht-uT9E.cjs} +1 -1
- package/dist/{vue-ui-treemap-D5Dcd84h.js → vue-ui-treemap-Ck5tHVnE.js} +12 -12
- package/dist/{vue-ui-treemap-CZZXcX0f.cjs → vue-ui-treemap-pbhS4FfC.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-C-KAVKXj.cjs → vue-ui-vertical-bar-BZjsolLB.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CtWXk6co.js → vue-ui-vertical-bar-egz76l34.js} +12 -12
- package/dist/{vue-ui-waffle-C9qyTIzz.cjs → vue-ui-waffle-C7za7d0u.cjs} +1 -1
- package/dist/{vue-ui-waffle-BD2GnRkO.js → vue-ui-waffle-CrMkCjJJ.js} +12 -12
- package/dist/{vue-ui-wheel-CKfr_7kH.cjs → vue-ui-wheel-DIgPyNrB.cjs} +1 -1
- package/dist/{vue-ui-wheel-HydW49fo.js → vue-ui-wheel-DzMpr4xY.js} +7 -7
- package/dist/{vue-ui-word-cloud-C4ISeFpy.cjs → vue-ui-word-cloud-CNqAz548.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-C9Pbi6ey.js → vue-ui-word-cloud-TS3az-LK.js} +10 -10
- package/dist/{vue-ui-world-D-AsGwlW.js → vue-ui-world-D3X01xYB.js} +11 -11
- package/dist/{vue-ui-world-BlAD3UPb.cjs → vue-ui-world-DMdqTY5G.cjs} +1 -1
- package/dist/{vue-ui-xy-CS-xjZVI.cjs → vue-ui-xy-CF87Afh2.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-Dd7IFwSK.cjs → vue-ui-xy-canvas-2IL8lPL4.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DtKI-IQA.js → vue-ui-xy-canvas-BHeV-3t9.js} +12 -12
- package/dist/{vue-ui-xy-CMw6P4C0.js → vue-ui-xy-tIBPr8r8.js} +16 -16
- package/package.json +1 -1
- package/dist/index-Cai0fWP7.cjs +0 -9
- package/dist/vue-ui-flow-BYypzs-j.cjs +0 -1
- package/dist/vue-ui-flow-Ouw_lvpb.js +0 -550
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-Cai0fWP7.cjs"),Q=require("./useResponsive-DQmBAoBf.cjs"),de=require("./Title-BkfQdTEX.cjs"),ee=require("./usePrinter-B4ojFS2B.cjs"),ve=require("./DataTable-DOiZOQ3J.cjs"),he=require("./vue-ui-skeleton-C954hFY-.cjs"),ye=require("./Legend-CFqKBI0j.cjs"),fe=require("./vue-ui-accordion-DUGBjyB1.cjs"),te=require("./useNestedProp-DcWhlk8h.cjs"),me=require("./PackageVersion-BMNt7NsQ.cjs"),be=require("./PenAndPaper-BUwLP3Wx.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"],ze={key:4},Ae=["x","y","font-size","fill","font-weight"],Pe=["id"],Te=["stop-color"],Xe=["stop-color"],Oe=["stop-color"],De=["id"],Fe=["stop-color"],Me=["stop-color"],Ie=["stop-color"],Ge=["id"],qe=["stop-color"],Re=["stop-color"],He=["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(le,{expose:ae,emit:ct}){const{vue_ui_dumbbell:oe}=s.useConfig(),v=le,b=e.computed({get(){return!!v.dataset&&v.dataset.length},set(a){return a}}),c=e.ref(s.createUid()),V=e.ref(0),_=e.ref(null),z=e.ref(null),A=e.ref(null),P=e.ref(null),T=e.ref(null),X=e.ref(0),O=e.ref(0),D=e.ref(0),t=e.computed({get:()=>G(),set:a=>a}),{userOptionsVisible:E,setUserOptionsVisibility:F,keepUserOptionState:M}=pe.useUserOptionState({config:t.value}),{svgRef:I}=ge.useChartAccessibility({config:t.value.style.chart.title});function G(){const a=te.useNestedProp({userConfig:v.config,defaultConfig:oe});return a.theme?{...te.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,q(),X.value+=1,O.value+=1,D.value+=1,i.value=t.value.style.chart.rowHeight,g.value=t.value.style.chart.width,p.value.showTable=t.value.table.show},{deep:!0}),e.watch(()=>v.dataset,a=>{Y()},{deep:!0});const x=e.ref(null);e.onMounted(()=>{q()});function q(){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=Q.throttle(()=>{const{width:n,height:l}=Q.useResponsive({chart:_.value,title:t.value.style.chart.title.text?z.value:null,legend:t.value.style.chart.legend.show?A.value:null,source:P.value,noTitle:T.value});requestAnimationFrame(()=>{g.value=n,i.value=l/v.dataset.length,d.value=C()})});x.value=new ResizeObserver(a),x.value.observe(_.value.parentNode)}}e.onBeforeUnmount(()=>{x.value&&x.value.disconnect()});const{isPrinting:R,isImaging:H,generatePdf:U,generateImage:W}=ee.usePrinter({elementId:`dumbbell_${c.value}`,fileName:t.value.style.chart.title.text||"vue-ui-dumbbell",options:t.value.userOptions.print}),re=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),p=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),g=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+g.value,l=t.value.style.chart.padding.top+t.value.style.chart.padding.bottom+a*v.dataset.length,o=u.value.ticks.length*(g.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:g.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([]),j=e.ref(null),se=e.computed(()=>y.value.map(a=>a.end).reduce((a,n)=>a+n,0));e.onMounted(()=>{Y()});function Y(){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(j.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),j.value=requestAnimationFrame(n))}t.value.useAnimation?n():d.value=C()}const Z=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 J(){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 k=e.ref(!1);function ue(a){k.value=a,V.value+=1}function ie(){return d.value}function K(){p.value.showTable=!p.value.showTable}const B=e.ref(!1);function L(){B.value=!B.value}return ae({getData:ie,generatePdf:U,generateCsv:J,generateImage:W,toggleTable:K,toggleAnnotator:L}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dumbbellChart",ref:_,class:e.normalizeClass(`vue-ui-dumbbell ${k.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._sfc_main,{key:0,svgRef:e.unref(I),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:B.value,onClose:L},null,8,["svgRef","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:z,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(ee.UserOptions,{ref:"details",key:`user_option_${V.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(R),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:k.value,titles:{...t.value.userOptions.buttonTitles},chartElement:_.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:ue,onGeneratePdf:e.unref(U),onGenerateCsv:J,onGenerateImage:e.unref(W),onToggleTable:K,onToggleAnnotator:L,style:e.normalizeStyle({visibility:e.unref(M)?e.unref(E)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:o})=>[e.renderSlot(a.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:o})),void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}: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:"5"}: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:"6"}: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:I,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.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",ze,[(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,Ae))),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,Oe)],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,Ie)],8,De)]),(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,Re)],8,Ge),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,He)]),t.value.style.chart.plots.link.type==="curved"?(e.openBlock(),e.createElementBlock("g",je,[e.createElementVNode("path",{d:`M
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-Dy2-pNb6.cjs"),Q=require("./useResponsive-DQmBAoBf.cjs"),de=require("./Title-CEZO2hzQ.cjs"),ee=require("./usePrinter-BQEYwy4a.cjs"),ve=require("./DataTable-zSU-0X__.cjs"),he=require("./vue-ui-skeleton-Db7PiDqL.cjs"),ye=require("./Legend-DFQ4iWI3.cjs"),fe=require("./vue-ui-accordion-dVGUWjXH.cjs"),te=require("./useNestedProp-DQ8Jt3-Y.cjs"),me=require("./PackageVersion-DxR-fKLM.cjs"),be=require("./PenAndPaper-CG9o3ymS.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"],ze={key:4},Ae=["x","y","font-size","fill","font-weight"],Pe=["id"],Te=["stop-color"],Xe=["stop-color"],Oe=["stop-color"],De=["id"],Fe=["stop-color"],Me=["stop-color"],Ie=["stop-color"],Ge=["id"],qe=["stop-color"],Re=["stop-color"],He=["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(le,{expose:ae,emit:ct}){const{vue_ui_dumbbell:oe}=s.useConfig(),v=le,b=e.computed({get(){return!!v.dataset&&v.dataset.length},set(a){return a}}),c=e.ref(s.createUid()),V=e.ref(0),_=e.ref(null),z=e.ref(null),A=e.ref(null),P=e.ref(null),T=e.ref(null),X=e.ref(0),O=e.ref(0),D=e.ref(0),t=e.computed({get:()=>G(),set:a=>a}),{userOptionsVisible:E,setUserOptionsVisibility:F,keepUserOptionState:M}=pe.useUserOptionState({config:t.value}),{svgRef:I}=ge.useChartAccessibility({config:t.value.style.chart.title});function G(){const a=te.useNestedProp({userConfig:v.config,defaultConfig:oe});return a.theme?{...te.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,q(),X.value+=1,O.value+=1,D.value+=1,i.value=t.value.style.chart.rowHeight,g.value=t.value.style.chart.width,p.value.showTable=t.value.table.show},{deep:!0}),e.watch(()=>v.dataset,a=>{Y()},{deep:!0});const x=e.ref(null);e.onMounted(()=>{q()});function q(){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=Q.throttle(()=>{const{width:n,height:l}=Q.useResponsive({chart:_.value,title:t.value.style.chart.title.text?z.value:null,legend:t.value.style.chart.legend.show?A.value:null,source:P.value,noTitle:T.value});requestAnimationFrame(()=>{g.value=n,i.value=l/v.dataset.length,d.value=C()})});x.value=new ResizeObserver(a),x.value.observe(_.value.parentNode)}}e.onBeforeUnmount(()=>{x.value&&x.value.disconnect()});const{isPrinting:R,isImaging:H,generatePdf:U,generateImage:W}=ee.usePrinter({elementId:`dumbbell_${c.value}`,fileName:t.value.style.chart.title.text||"vue-ui-dumbbell",options:t.value.userOptions.print}),re=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),p=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),g=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+g.value,l=t.value.style.chart.padding.top+t.value.style.chart.padding.bottom+a*v.dataset.length,o=u.value.ticks.length*(g.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:g.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([]),j=e.ref(null),se=e.computed(()=>y.value.map(a=>a.end).reduce((a,n)=>a+n,0));e.onMounted(()=>{Y()});function Y(){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(j.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),j.value=requestAnimationFrame(n))}t.value.useAnimation?n():d.value=C()}const Z=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 J(){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 k=e.ref(!1);function ue(a){k.value=a,V.value+=1}function ie(){return d.value}function K(){p.value.showTable=!p.value.showTable}const B=e.ref(!1);function L(){B.value=!B.value}return ae({getData:ie,generatePdf:U,generateCsv:J,generateImage:W,toggleTable:K,toggleAnnotator:L}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dumbbellChart",ref:_,class:e.normalizeClass(`vue-ui-dumbbell ${k.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._sfc_main,{key:0,svgRef:e.unref(I),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:B.value,onClose:L},null,8,["svgRef","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:z,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(ee.UserOptions,{ref:"details",key:`user_option_${V.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(R),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:k.value,titles:{...t.value.userOptions.buttonTitles},chartElement:_.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:ue,onGeneratePdf:e.unref(U),onGenerateCsv:J,onGenerateImage:e.unref(W),onToggleTable:K,onToggleAnnotator:L,style:e.normalizeStyle({visibility:e.unref(M)?e.unref(E)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:o})=>[e.renderSlot(a.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:o})),void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}: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:"5"}: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:"6"}: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:I,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.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",ze,[(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,Ae))),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,Oe)],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,Ie)],8,De)]),(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,Re)],8,Ge),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,He)]),t.value.style.chart.plots.link.type==="curved"?(e.openBlock(),e.createElementBlock("g",je,[e.createElementVNode("path",{d:`M
|
|
2
2
|
${l.startX},${l.y+t.value.style.chart.plots.radius/2}
|
|
3
3
|
C ${l.centerX},${l.y} ${l.centerX},${l.y}
|
|
4
4
|
${l.endX},${l.y+t.value.style.chart.plots.radius/2}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-Dy2-pNb6.cjs"),Le=require("./Title-CEZO2hzQ.cjs"),ye=require("./usePrinter-BQEYwy4a.cjs"),Ve=require("./DataTable-zSU-0X__.cjs"),Ae=require("./vue-ui-accordion-dVGUWjXH.cjs"),Ie=require("./vue-ui-skeleton-Db7PiDqL.cjs"),be=require("./useNestedProp-DQ8Jt3-Y.cjs"),Me=require("./PackageVersion-DxR-fKLM.cjs"),He=require("./PenAndPaper-CG9o3ymS.cjs"),De=require("./useUserOptionState-BgepsfED.cjs"),qe=require("./useChartAccessibility-Cm7nkzTG.cjs"),Re=require("./Tooltip-BZa-QzER.cjs"),Ue=require("./Legend-DFQ4iWI3.cjs"),Ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),je=["id"],Ge={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},We={key:2,style:"width:100%;background:transparent;padding-bottom:24px"},Xe=["xmlns","viewBox"],Ze=["width","height"],Je=["id"],Ke=["stop-color"],Qe=["stop-color"],et=["d","fill","stroke","stroke-width"],tt=["x","y","height","width","fill","stroke","stroke-width","onMouseenter"],ot=["x","y","font-size","fill"],lt=["x","y","font-size","fill"],nt={key:4,class:"vue-data-ui-watermark"},at=["onClick"],rt={key:6,ref:"source",dir:"auto"},st=["innerHTML"],ut={__name:"vue-ui-flow",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(ke,{expose:Ce}){const{vue_ui_flow:we}=r.useConfig(),b=ke,I=e.computed(()=>!!b.dataset&&b.dataset.length);e.onMounted(()=>{W()});function W(){r.objectIsEmpty(b.dataset)&&r.error({componentName:"VueUiFlow",type:"dataset"})}const M=e.ref(r.createUid()),H=e.ref(null),X=e.ref(0),Z=e.ref(0),D=e.ref(!1),q=e.ref(""),Ne=e.ref(null),x=e.ref(!1);function $e(o){x.value=o,X.value+=1}const t=e.computed({get:()=>ee(),set:o=>o}),{userOptionsVisible:R,setUserOptionsVisibility:J,keepUserOptionState:K}=De.useUserOptionState({config:t.value}),{svgRef:Q}=qe.useChartAccessibility({config:t.value.style.chart.title});function ee(){const o=be.useNestedProp({userConfig:b.config,defaultConfig:we});let n=o;return o.theme?n={...be.useNestedProp({userConfig:r.themes.vue_ui_flow[o.theme]||b.config,defaultConfig:o}),customPalette:r.themePalettes[o.theme]||r.palette}:n=o,n.nodeCategories=b.config.nodeCategories||{},n.nodeCategoryColors=b.config.nodeCategoryColors||{},n}e.watch(()=>b.config,o=>{t.value=ee(),R.value=!t.value.userOptions.showOnChartHover,W(),Z.value+=1,k.value.showTable=t.value.table.show},{deep:!0});const{isPrinting:te,isImaging:oe,generatePdf:le,generateImage:ne}=ye.usePrinter({elementId:`flow_${M.value}`,fileName:t.value.style.chart.title.text||"vue-ui-flow",options:t.value.userOptions.print}),xe=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),P=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),ae=e.computed(()=>t.value.style.chart.nodes.gap),S=e.computed(()=>t.value.style.chart.nodes.width),k=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),re=e.computed(()=>t.value.style.chart.links.width),O=e.computed(()=>!b.dataset||!b.dataset.length?[]:b.dataset.map((o,n)=>[o[0],o[1],r.checkNaN(o[2]),o[3]?r.convertColorToHex(o[3]):P.value[n]||P.value[n%P.value.length]||r.palette[n]||r.palette[n%d.length]])),se=e.computed(()=>{const o={};function n(a){o[a]||(o[a]={inflow:0,outflow:0})}O.value.forEach(([a,u,p])=>{n(a),n(u),o[a].outflow+=p,o[u].inflow+=p});let l=0;for(const a in o){const u=Math.max(o[a].inflow,o[a].outflow);l=Math.max(l,u)}return l});function Se(o){return o/se.value*100+t.value.style.chart.nodes.minHeight}function Te(o){const n=t.value.style.chart.nodes.minHeight;return(o-n)/100*se.value}function _e(o){const n={},l={};function a(s,c){n[s]||(n[s]={height:0,level:null,inflow:0,outflow:0,uid:r.createUid()}),n[s].level===null&&(n[s].level=c),l[c]||(l[c]=[]),l[c].includes(s)||l[c].push(s)}o.forEach(([s,c,v])=>{var i;const f=((i=n[s])==null?void 0:i.level)??0,g=f+1;a(s,f),a(c,g),n[s].children||(n[s].children=[]),n[s].children.push({target:c,value:v}),n[s].outflow+=v,n[c].inflow+=v});const u=new Set(o.map(([s])=>s)),p=new Set(o.map(([,s])=>s)),_=Array.from(u).filter(s=>!p.has(s)),V={};_.forEach((s,c)=>{V[s]=P.value[c]||r.palette[c%r.palette.length]});const E={};o.forEach(([s,c,v,f])=>{f&&(E[s]=f,E[c]=f)}),Object.keys(n).forEach((s,c)=>{var g,i;const v=(g=t.value.nodeCategories)==null?void 0:g[s],f=v?(i=t.value.nodeCategoryColors)==null?void 0:i[v]:null;n[s].color=E[s]||f||(_.includes(s)?V[s]:null)||r.palette[c%r.palette.length]});for(const s in n)n[s].height=Se(Math.max(n[s].inflow,n[s].outflow)),n[s].name=s;const C={};for(const s in l){let c=0;l[s].forEach((v,f)=>{const g=n[v];C[v]={x:parseInt(s,10)*re.value+t.value.style.chart.padding.left,y:c,absoluteY:c,height:g.height,i:f,color:g.color,value:Te(g.height)},c+=g.height+ae.value})}const $=[];for(const s of Object.keys(n)){let c=C[s].absoluteY+t.value.style.chart.padding.top;const v=n[s],f=C[s];v.children&&v.children.forEach(({target:g,value:i})=>{const h=C[g],w=n[g],A=r.checkNaN(c),ge=r.checkNaN(c+i/v.outflow*f.height),G=r.checkNaN(h.y+t.value.style.chart.padding.top),me=r.checkNaN(G+i/w.inflow*h.height);$.push({id:r.createUid(),source:s,target:g,path:`M ${r.checkNaN(f.x+S.value)} ${A} L ${r.checkNaN(f.x+S.value)} ${ge} L ${r.checkNaN(h.x)} ${me} L ${r.checkNaN(h.x)} ${G} Z`,value:i,sourceColor:v.color,targetColor:w.color}),c+=ge-A,C[g].y+=me-G})}return{nodeCoordinates:C,links:$}}const m=e.computed(()=>{const o=_e(b.dataset);return{nodes:Object.keys(o.nodeCoordinates).map((n,l)=>({...o.nodeCoordinates[n],name:n})),links:o.links}}),Be=e.computed(()=>Ee(m.value.nodes));function Ee(o){const n={};for(const a in o){const{x:u,height:p}=o[a];n[u]||(n[u]=0),n[u]+=p+ae.value}return Math.max(...Object.values(n))}const B=e.computed(()=>{const{top:o,right:n,left:l,bottom:a}=t.value.style.chart.padding,u=O.value.length*re.value;return{height:Be.value+o+a,width:n+Math.max(...m.value.nodes.map(p=>p.x))+S.value,left:l,top:o,right:u-n,p_top:o,p_bottom:a}});function Pe(o){const n={},l={},a=new Set;return O.value.forEach(([u,p,_])=>{n[u]||(n[u]=[]),l[p]||(l[p]=[]),n[u].push(p),l[p].push(u)}),n[o]&&n[o].forEach(u=>a.add(u)),l[o]&&l[o].forEach(u=>a.add(u)),Array.from(a).concat(o)}const y=e.ref(null),T=e.ref(null),U=e.ref(null),z=e.ref(!1);function Oe(o){N.value=[],y.value=Pe(o.name),T.value=o.name;const n=o.name,l=O.value;let a=0,u=0,p=[],_=[];const V=new Set(l.map(([i])=>i)),E=new Set(l.map(([,i])=>i)),pe=Array.from(V).filter(i=>!E.has(i)),C=l.filter(([i])=>pe.includes(i)).reduce((i,[h,w,A])=>i+A,0),$={};m.value.nodes.forEach(i=>{$[i.name]=i.color}),l.forEach(([i,h,w])=>{h===n&&(a+=w,p.push({source:i,value:w,color:$[i]})),i===n&&(u+=w,_.push({target:h,value:w,color:$[h]}))});const s=Math.max(a,u),c=C>0?s/C*100:0,v={name:n,inflow:a,outflow:u,from:p,to:_,percentOfTotal:c,color:$[n]||"#000000"};U.value={datapoint:v},D.value=!0;let f="";const g=t.value.style.chart.tooltip.customFormat;if(z.value=!1,r.isFunction(g))try{const i=g({datapoint:v,series:m.value,config:t.value});typeof i=="string"&&(q.value=i,z.value=!0)}catch{console.warn("Custom format cannot be applied.")}if(!z.value){const i=t.value.style.chart.tooltip.showPercentage?`<div>${r.dataLabel({p:t.value.style.chart.tooltip.translations.percentOfTotal,v:v.percentOfTotal,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</div>`:"";f+=`<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:${v.color}">⏹</span>${v.name}${i}</div>`,v.from.length&&(f+=`<div>${t.value.style.chart.tooltip.translations.from}</div>`,v.from.forEach(h=>{f+=`<div><span style="color:${h.color}">⏹←</span> ${h.source}: ${r.applyDataLabel(t.value.style.chart.nodes.labels.formatter,h.value,r.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>`})),v.to.length&&(f+=`<div style="margin-top:6px;">${t.value.style.chart.tooltip.translations.to}</div>`,v.to.forEach(h=>{f+=`<div><span style="color:${h.color}">⏹→</span> ${h.target}: ${r.applyDataLabel(t.value.style.chart.nodes.labels.formatter,h.value,r.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>`})),q.value=f}}function ue(){y.value=null,T.value=null,D.value=!1}const ie=e.computed(()=>m.value.links.map(({source:o,target:n,sourceColor:l,targetColor:a,value:u})=>({source:o,target:n,sourceColor:l,targetColor:a,value:u})));function ce(){e.nextTick(()=>{const o=ie.value.map((a,u)=>[[a.source],[a.target],[a.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=r.createCsvContent(n);r.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-flow"})})}const F=e.computed(()=>{const o=[t.value.table.columnNames.source,t.value.table.columnNames.target,t.value.table.columnNames.value],n=ie.value.map((u,p)=>[{color:u.sourceColor,name:u.source},{color:u.targetColor,name:u.target},r.dataLabel({p:t.value.style.chart.nodes.labels.prefix,v:u.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 ze(){return m.value}function de(){k.value.showTable=!k.value.showTable}const L=e.ref(!1);function Y(){L.value=!L.value}function ve(){k.value.showTooltip=!k.value.showTooltip}const fe=e.computed(()=>{const o=new Set(m.value.nodes.map(n=>t.value.nodeCategories[n.name]||"__uncategorized__"));return Array.from(o).map(n=>({name:n,color:t.value.nodeCategoryColors[n]||r.palette[0],shape:"square",count:m.value.nodes.filter(l=>(t.value.nodeCategories[l.name]||"__uncategorized__")===n).length})).map((n,l)=>({...n,segregate:()=>j({legend:n,i:l}),opacity:N.value.length?N.value.includes(l)?1:.5:1}))}),he=e.computed(()=>fe.value.filter(o=>o.name!=="__uncategorized__")),N=e.ref([]);function j({legend:o,i:n}){var a;const l=o.name;if((a=y.value)!=null&&a.every(u=>t.value.nodeCategories[u]===l)){y.value=null,T.value=null,N.value=[];return}N.value=[n],y.value=m.value.nodes.filter(u=>t.value.nodeCategories[u.name]===l).map(u=>u.name),T.value=null}const Fe=e.computed(()=>({cy:"flow-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:t.value.style.chart.legend.paddingBottom,fontWeight:t.value.style.chart.legend.bold?"bold":"normal"}));return Ce({getData:ze,generateCsv:ce,generateImage:ne,generatePdf:le,toggleTable:de,toggleAnnotator:Y,toggleTooltip:ve,drillCategory:j,unselectNode:ue}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"flowChart",ref:H,class:e.normalizeClass(`vue-ui-flow ${x.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_${M.value}`,onMouseenter:n[3]||(n[3]=()=>e.unref(J)(!0)),onMouseleave:n[4]||(n[4]=()=>e.unref(J)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(He._sfc_main,{key:0,svgRef:e.unref(Q),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),xe.value?(e.openBlock(),e.createElementBlock("div",Ge,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",We,[(e.openBlock(),e.createBlock(Le._sfc_main,{key:`title_${Z.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&&I.value&&(e.unref(K)||e.unref(R))?(e.openBlock(),e.createBlock(ye.UserOptions,{ref:"details",key:`user_option_${X.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(te),isImaging:e.unref(oe),uid:M.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:x.value,titles:{...t.value.userOptions.buttonTitles},chartElement:H.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:k.value.showTooltip,onToggleTooltip:ve,onToggleFullscreen:$e,onGeneratePdf:e.unref(le),onGenerateCsv:ce,onGenerateImage:e.unref(ne),onToggleTable:de,onToggleAnnotator:Y,style:e.normalizeStyle({visibility:e.unref(K)?e.unref(R)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:a})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:a})),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:a})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:a})),void 0,!0)]),key:"6"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:a})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:a})),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:Q,xmlns:e.unref(r.XMLNS),viewBox:`0 0 ${B.value.width} ${B.value.height}`,class:e.normalizeClass({"vue-data-ui-fullscreen--on":x.value,"vue-data-ui-fulscreen--off":!x.value}),style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Me._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:B.value.width,height:B.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,Ze)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value.links,(l,a)=>(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,Ke),e.createElementVNode("stop",{offset:"100%","stop-color":l.targetColor},null,8,Qe)],8,Je))),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(`
|
|
2
|
+
opacity:${y.value?y.value.includes(l.source)&&y.value.includes(l.target)?1:.3:T.value?[l.target,l.source].includes(T.value)?1:.3:t.value.style.chart.links.opacity}
|
|
3
|
+
`)},null,12,et))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value.nodes,(l,a)=>(e.openBlock(),e.createElementBlock("rect",{class:"vue-ui-flow-node",x:l.x,y:e.unref(r.checkNaN)(l.absoluteY)+t.value.style.chart.padding.top,height:e.unref(r.checkNaN)(l.height),width:S.value,fill:l.color,stroke:t.value.style.chart.nodes.stroke,"stroke-width":t.value.style.chart.nodes.strokeWidth,onMouseenter:u=>Oe(l),onMouseleave:n[0]||(n[0]=u=>ue()),style:e.normalizeStyle(`opacity:${y.value?y.value.includes(l.name)?1:.3:1}`)},null,44,tt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value.nodes,(l,a)=>(e.openBlock(),e.createElementBlock("text",{x:l.x+S.value/2,y:e.unref(r.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(r.adaptColorToBackground)(l.color),"text-anchor":"middle",style:e.normalizeStyle(`pointer-events: none; opacity:${y.value?y.value.includes(l.name)?1:0:1}`)},e.toDisplayString(t.value.style.chart.nodes.labels.abbreviation.use?e.unref(r.abbreviate)({source:l.name,length:t.value.style.chart.nodes.labels.abbreviation.length}):l.name),13,ot))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value.nodes,(l,a)=>(e.openBlock(),e.createElementBlock("text",{x:l.x+S.value/2,y:e.unref(r.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(r.adaptColorToBackground)(l.color),"text-anchor":"middle",style:e.normalizeStyle(`pointer-events: none; opacity:${y.value?y.value.includes(l.name)?1:0:1}`)},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.nodes.labels.formatter,l.value,e.unref(r.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:a})),13,lt))),256)),e.renderSlot(o.$slots,"svg",{svg:B.value},void 0,!0)],14,Xe)),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",nt,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(te)||e.unref(oe)})),void 0,!0)])):e.createCommentVNode("",!0),I.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ie.default,{key:5,config:{type:"flow",style:{backgroundColor:t.value.style.chart.backgroundColor}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:Ne},[t.value.style.chart.legend.show&&he.value.length?(e.openBlock(),e.createBlock(Ue.Legend,{key:0,legendSet:he.value,config:Fe.value,onClickMarker:n[1]||(n[1]=l=>j(l))},{item:e.withCtx(({legend:l,index:a})=>[e.createElementVNode("div",{onClick:u=>l.segregate(),style:e.normalizeStyle(`opacity:${N.value.length?N.value.includes(a)?1:.5:1}`)},e.toDisplayString(l.name)+" ("+e.toDisplayString(l.count)+") ",13,at)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"legend",{legend:fe.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",rt,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Re._sfc_main,{show:k.value.showTooltip&&D.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:H.value,content:q.value,isCustom:z.value,isFullscreen:x.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...U.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...U.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom","isFullscreen"]),I.value?(e.openBlock(),e.createBlock(Ae.default,{key:7,hideDetails:"",config:{open:k.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(Ve.DataTable,{colNames:F.value.colNames,head:F.value.head,body:F.value.body,config:F.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[2]||(n[2]=l=>k.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,st)]),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,je))}},it=Ye._export_sfc(ut,[["__scopeId","data-v-e6473b78"]]);exports.default=it;
|