vue-data-ui 2.10.6 → 2.10.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.
Files changed (169) hide show
  1. package/README.md +1 -1
  2. package/dist/{Arrow-Cl3tB80E.cjs → Arrow-CB6EKr1I.cjs} +1 -1
  3. package/dist/{Arrow-rRiIHng2.js → Arrow-CZUwKF2D.js} +1 -1
  4. package/dist/{BaseIcon-CiINppo2.cjs → BaseIcon-BkA9Q34x.cjs} +1 -1
  5. package/dist/{BaseIcon-COlnFbOq.js → BaseIcon-Bzv6qbPZ.js} +1 -1
  6. package/dist/{ColorPicker-9QCAgrqp.cjs → ColorPicker-CSWIZQFG.cjs} +1 -1
  7. package/dist/{ColorPicker-UNzkvlGG.js → ColorPicker-C_UcScy-.js} +3 -3
  8. package/dist/{DataTable-CXbN2mJi.js → DataTable-BhwIv7c6.js} +2 -2
  9. package/dist/{DataTable-DOiZOQ3J.cjs → DataTable-BmSWykCq.cjs} +1 -1
  10. package/dist/{Legend-CFqKBI0j.cjs → Legend-CMib9jhR.cjs} +1 -1
  11. package/dist/{Legend-BU9C5fBQ.js → Legend-CubpFiQC.js} +2 -2
  12. package/dist/{PackageVersion-BMNt7NsQ.cjs → PackageVersion-9kqlnk5q.cjs} +1 -1
  13. package/dist/{PackageVersion-0Lu6RIig.js → PackageVersion-DmKsiZge.js} +1 -1
  14. package/dist/{PenAndPaper-BUwLP3Wx.cjs → PenAndPaper-CfWPwfS1.cjs} +1 -1
  15. package/dist/{PenAndPaper-D4Uu-GqW.js → PenAndPaper-Dgf1a1MW.js} +3 -3
  16. package/dist/{Shape-BavMx2aa.js → Shape-BUW7OeOM.js} +1 -1
  17. package/dist/{Shape-2NRWULE_.cjs → Shape-DVn1gKjR.cjs} +1 -1
  18. package/dist/{Slicer-B_qJHvNR.js → Slicer-jB5tCct6.js} +2 -2
  19. package/dist/{Slicer-Ct8BAk8F.cjs → Slicer-ud5drJRz.cjs} +1 -1
  20. package/dist/{Title-DrVDm1wy.js → Title-BDdzEGgo.js} +1 -1
  21. package/dist/{Title-BkfQdTEX.cjs → Title-EjA2nkhd.cjs} +1 -1
  22. package/dist/{Tooltip-BFT6mZ5a.js → Tooltip-Cdkz2ese.js} +1 -1
  23. package/dist/{Tooltip-BK88meti.cjs → Tooltip-Dr2CQpGZ.cjs} +1 -1
  24. package/dist/documentation/installation.md +1 -1
  25. package/dist/{dom-to-png-0WSGIcUV.js → dom-to-png-0ag5uZSL.js} +1 -1
  26. package/dist/{dom-to-png-CyVwBzNm.cjs → dom-to-png-DfWDULgW.cjs} +1 -1
  27. package/dist/{img-DqK-SXIP.cjs → img-BFXiOvkr.cjs} +1 -1
  28. package/dist/{img-BT-UmGcu.js → img-DB4eqtiV.js} +1 -1
  29. package/dist/index-BX4v5fiN.cjs +9 -0
  30. package/dist/{index-hMo72hAq.js → index-Co_0CzhC.js} +268 -257
  31. package/dist/{pdf-G7o-GM_m.js → pdf-DUrwlnsH.js} +1 -1
  32. package/dist/{pdf-DY3kwqSx.cjs → pdf-D_ScD9oB.cjs} +1 -1
  33. package/dist/style.css +1 -1
  34. package/dist/types/vue-data-ui.d.cts +49 -0
  35. package/dist/types/vue-data-ui.d.ts +49 -0
  36. package/dist/{useNestedProp-DcWhlk8h.cjs → useNestedProp-DjOgO33z.cjs} +1 -1
  37. package/dist/{useNestedProp-DhEaBTgF.js → useNestedProp-DqI_VUcm.js} +1 -1
  38. package/dist/{usePrinter-D2z-bUtX.js → usePrinter-BV6TePSm.js} +3 -3
  39. package/dist/{usePrinter-B4ojFS2B.cjs → usePrinter-CynLTaVl.cjs} +1 -1
  40. package/dist/{vue-data-ui-BR4hs3ky.cjs → vue-data-ui-BTfYQKf1.cjs} +1 -1
  41. package/dist/{vue-data-ui-BTkU5knB.js → vue-data-ui-D0yLIHBU.js} +62 -62
  42. package/dist/vue-data-ui.cjs +1 -1
  43. package/dist/vue-data-ui.js +1 -1
  44. package/dist/{vue-ui-3d-bar-DD3_LLbq.js → vue-ui-3d-bar-c10gAuCo.js} +9 -9
  45. package/dist/{vue-ui-3d-bar-Cx2zND3j.cjs → vue-ui-3d-bar-cz81vDyE.cjs} +1 -1
  46. package/dist/{vue-ui-accordion-DUGBjyB1.cjs → vue-ui-accordion-BrbibtJK.cjs} +1 -1
  47. package/dist/{vue-ui-accordion-CHMdpjnX.js → vue-ui-accordion-DMCnTtx0.js} +3 -3
  48. package/dist/{vue-ui-age-pyramid-WpMKbqUM.cjs → vue-ui-age-pyramid-VrC5Ul6m.cjs} +1 -1
  49. package/dist/{vue-ui-age-pyramid-CUS2cIAl.js → vue-ui-age-pyramid-qvsOA8yi.js} +10 -10
  50. package/dist/{vue-ui-annotator-B5VYzARK.cjs → vue-ui-annotator-DYHa8k6K.cjs} +1 -1
  51. package/dist/{vue-ui-annotator-Ckyjvy1h.js → vue-ui-annotator-Difg_FB4.js} +2 -2
  52. package/dist/{vue-ui-bullet-Clccjys0.cjs → vue-ui-bullet-Ck8VFaeu.cjs} +1 -1
  53. package/dist/{vue-ui-bullet-i97qMAx7.js → vue-ui-bullet-D9jQThZ5.js} +8 -8
  54. package/dist/{vue-ui-candlestick-Dmu21ktX.js → vue-ui-candlestick-CkGKxPxw.js} +11 -11
  55. package/dist/{vue-ui-candlestick-B35fn-Jo.cjs → vue-ui-candlestick-Dsd_ba5D.cjs} +1 -1
  56. package/dist/{vue-ui-carousel-table-23ggTo5D.cjs → vue-ui-carousel-table-46CpWaYv.cjs} +1 -1
  57. package/dist/{vue-ui-carousel-table-cvW3wpY7.js → vue-ui-carousel-table-CR-iVMMe.js} +4 -4
  58. package/dist/{vue-ui-chestnut-CZpShJyS.js → vue-ui-chestnut-C9hkjAMP.js} +8 -8
  59. package/dist/{vue-ui-chestnut-CkuDV8dp.cjs → vue-ui-chestnut-DpZW075x.cjs} +1 -1
  60. package/dist/{vue-ui-circle-pack-C2IQV5_6.cjs → vue-ui-circle-pack-5_vQ6vaC.cjs} +1 -1
  61. package/dist/{vue-ui-circle-pack-B6d9PjE2.js → vue-ui-circle-pack-DCiIAJrq.js} +9 -9
  62. package/dist/{vue-ui-cursor-CG4bTWjj.js → vue-ui-cursor-Cts6qtAH.js} +2 -2
  63. package/dist/{vue-ui-cursor-CZBmEqOC.cjs → vue-ui-cursor-DkNjb-zj.cjs} +1 -1
  64. package/dist/{vue-ui-dashboard-D-95GOHa.cjs → vue-ui-dashboard-DHHIcBg0.cjs} +1 -1
  65. package/dist/{vue-ui-dashboard-DqM_deY-.js → vue-ui-dashboard-Db-_ElsA.js} +62 -62
  66. package/dist/{vue-ui-digits-CKpey7p1.js → vue-ui-digits--pkv7eKf.js} +2 -2
  67. package/dist/{vue-ui-digits-Cdauuy8X.cjs → vue-ui-digits-BV--b8cv.cjs} +1 -1
  68. package/dist/{vue-ui-donut-Dp2Yy4fh.js → vue-ui-donut-BxbbhGmV.js} +12 -12
  69. package/dist/{vue-ui-donut-j519aqqU.cjs → vue-ui-donut-D1OlfgtH.cjs} +1 -1
  70. package/dist/{vue-ui-donut-evolution-ClL_5jhm.js → vue-ui-donut-evolution-2mbVNu_w.js} +11 -11
  71. package/dist/{vue-ui-donut-evolution-Cg1VnagT.cjs → vue-ui-donut-evolution-BetPU8WD.cjs} +1 -1
  72. package/dist/{vue-ui-dumbbell-CNJ9en-A.cjs → vue-ui-dumbbell-B4tWeLVq.cjs} +1 -1
  73. package/dist/{vue-ui-dumbbell-C8tOQUbs.js → vue-ui-dumbbell-Brfkbz4H.js} +10 -10
  74. package/dist/vue-ui-flow-BSptjAOo.cjs +1 -0
  75. package/dist/vue-ui-flow-BtfK7Ixu.js +655 -0
  76. package/dist/{vue-ui-funnel-CfxmaNEA.js → vue-ui-funnel-Bga3R3li.js} +9 -9
  77. package/dist/{vue-ui-funnel-DbVCaDxm.cjs → vue-ui-funnel-DJIRpxX0.cjs} +1 -1
  78. package/dist/{vue-ui-galaxy-dm_p5xAR.js → vue-ui-galaxy-CtUY6byr.js} +11 -11
  79. package/dist/{vue-ui-galaxy-zBDItFVz.cjs → vue-ui-galaxy-DjpT9A4L.cjs} +1 -1
  80. package/dist/{vue-ui-gauge-DwwvbGca.js → vue-ui-gauge-Bob29zui.js} +7 -7
  81. package/dist/{vue-ui-gauge-Dr-7ojj9.cjs → vue-ui-gauge-ByLQRCM5.cjs} +1 -1
  82. package/dist/{vue-ui-gizmo-CB5NfNit.cjs → vue-ui-gizmo-DBCKjWN0.cjs} +1 -1
  83. package/dist/{vue-ui-gizmo-Cq0SpTfm.js → vue-ui-gizmo-Dj1TLLb1.js} +3 -3
  84. package/dist/{vue-ui-heatmap-DNSOppoO.js → vue-ui-heatmap-BYH3bosu.js} +10 -10
  85. package/dist/{vue-ui-heatmap-DtRSx7DO.cjs → vue-ui-heatmap-CAUnlp-o.cjs} +1 -1
  86. package/dist/{vue-ui-history-plot-r9eLYJCe.js → vue-ui-history-plot-C1kOJElL.js} +11 -11
  87. package/dist/{vue-ui-history-plot-BvC3L9g3.cjs → vue-ui-history-plot-CbTOgmxa.cjs} +1 -1
  88. package/dist/{vue-ui-kpi-BBpxo07S.js → vue-ui-kpi-BUoc8QIz.js} +3 -3
  89. package/dist/{vue-ui-kpi-raHWFHjI.cjs → vue-ui-kpi-DTWa9I78.cjs} +1 -1
  90. package/dist/{vue-ui-mini-loader-STx0NSvX.cjs → vue-ui-mini-loader-C1awnIuZ.cjs} +1 -1
  91. package/dist/{vue-ui-mini-loader-CGtQXPzk.js → vue-ui-mini-loader-CSmFWNXS.js} +2 -2
  92. package/dist/{vue-ui-molecule-B4WJo2V5.cjs → vue-ui-molecule-CgSPoJxN.cjs} +1 -1
  93. package/dist/{vue-ui-molecule-EYSvyl-h.js → vue-ui-molecule-D9kSZQHB.js} +11 -11
  94. package/dist/{vue-ui-mood-radar-CfHUyyMY.cjs → vue-ui-mood-radar-DpQ8EBTg.cjs} +1 -1
  95. package/dist/{vue-ui-mood-radar-Crk-XB3O.js → vue-ui-mood-radar-qd5CCM58.js} +11 -11
  96. package/dist/{vue-ui-nested-donuts-DRJZT5Bv.cjs → vue-ui-nested-donuts-BP9gsX6T.cjs} +2 -2
  97. package/dist/{vue-ui-nested-donuts-Rm4P3uEP.js → vue-ui-nested-donuts-OqJPZW8l.js} +12 -12
  98. package/dist/{vue-ui-onion-Bgvs96ms.cjs → vue-ui-onion-DYIgsIYr.cjs} +1 -1
  99. package/dist/{vue-ui-onion-Dzl_kjlE.js → vue-ui-onion-rNOeD9u1.js} +11 -11
  100. package/dist/{vue-ui-parallel-coordinate-plot-YuLiWTox.cjs → vue-ui-parallel-coordinate-plot-CDwhmDGl.cjs} +1 -1
  101. package/dist/{vue-ui-parallel-coordinate-plot-98c0XRsu.js → vue-ui-parallel-coordinate-plot-DQd14cew.js} +12 -12
  102. package/dist/{vue-ui-quadrant-Dd1ryxBx.js → vue-ui-quadrant-CH856J9A.js} +12 -12
  103. package/dist/{vue-ui-quadrant-CiqJKJu1.cjs → vue-ui-quadrant-RRM343kT.cjs} +1 -1
  104. package/dist/{vue-ui-quick-chart-CTsvK-CY.js → vue-ui-quick-chart-BLq8C-m8.js} +9 -9
  105. package/dist/{vue-ui-quick-chart-DMceIo39.cjs → vue-ui-quick-chart-BXYgI65b.cjs} +1 -1
  106. package/dist/{vue-ui-radar-Dp8-SmYd.cjs → vue-ui-radar-38OxxA3O.cjs} +1 -1
  107. package/dist/{vue-ui-radar-CHYpedpk.js → vue-ui-radar-BuCYH3tO.js} +12 -12
  108. package/dist/{vue-ui-rating-uVphq_sK.cjs → vue-ui-rating-CiqatGZ_.cjs} +1 -1
  109. package/dist/{vue-ui-rating-DSsm92zG.js → vue-ui-rating-D6OL6Aml.js} +2 -2
  110. package/dist/{vue-ui-relation-circle-BPVBRieo.js → vue-ui-relation-circle-ByhUL4R6.js} +7 -7
  111. package/dist/{vue-ui-relation-circle-46wKUZTv.cjs → vue-ui-relation-circle-DDYGMgUl.cjs} +1 -1
  112. package/dist/{vue-ui-ridgeline-B6GA2tXb.js → vue-ui-ridgeline-B5126LSF.js} +12 -12
  113. package/dist/{vue-ui-ridgeline-OULIMr6I.cjs → vue-ui-ridgeline-C550XNkk.cjs} +1 -1
  114. package/dist/{vue-ui-rings-Cl-607b8.js → vue-ui-rings-DPXct3je.js} +12 -12
  115. package/dist/{vue-ui-rings-HVHIYYrh.cjs → vue-ui-rings-Dxp4dmO2.cjs} +1 -1
  116. package/dist/{vue-ui-scatter-BZ4DPyoL.cjs → vue-ui-scatter-BWmY2_ij.cjs} +1 -1
  117. package/dist/{vue-ui-scatter-ClYbim5F.js → vue-ui-scatter-_DhEpcsw.js} +12 -12
  118. package/dist/{vue-ui-skeleton-C954hFY-.cjs → vue-ui-skeleton-DvJP74jb.cjs} +1 -1
  119. package/dist/{vue-ui-skeleton-C3t9bL6f.js → vue-ui-skeleton-Dzehgcp3.js} +3 -3
  120. package/dist/{vue-ui-smiley-DsKnKBFv.js → vue-ui-smiley-BHd1V1Dv.js} +2 -2
  121. package/dist/{vue-ui-smiley-BBGCa2S0.cjs → vue-ui-smiley-CtDCCsfg.cjs} +1 -1
  122. package/dist/{vue-ui-spark-trend-Da-HE7x2.js → vue-ui-spark-trend-DDX-fjR-.js} +5 -5
  123. package/dist/{vue-ui-spark-trend-CBa0FhIy.cjs → vue-ui-spark-trend-DDf1hJwg.cjs} +1 -1
  124. package/dist/{vue-ui-sparkbar-CUul3e3U.cjs → vue-ui-sparkbar-BT5NEz93.cjs} +1 -1
  125. package/dist/{vue-ui-sparkbar-DgQxbUeJ.js → vue-ui-sparkbar-BWeY-FcV.js} +4 -4
  126. package/dist/{vue-ui-sparkgauge-BKA5GnGO.js → vue-ui-sparkgauge-BQMHbq8E.js} +4 -4
  127. package/dist/{vue-ui-sparkgauge-DYPVqz6I.cjs → vue-ui-sparkgauge-IYvYlZ57.cjs} +1 -1
  128. package/dist/{vue-ui-sparkhistogram-CdZy4SfH.js → vue-ui-sparkhistogram-C5EdWvQP.js} +5 -5
  129. package/dist/{vue-ui-sparkhistogram-CNN9tXh1.cjs → vue-ui-sparkhistogram-cjsCsNyf.cjs} +1 -1
  130. package/dist/{vue-ui-sparkline-BCP4gyTp.cjs → vue-ui-sparkline-BwZJpAAf.cjs} +1 -1
  131. package/dist/{vue-ui-sparkline-DCNNoruu.js → vue-ui-sparkline-CbKIpwVC.js} +4 -4
  132. package/dist/{vue-ui-sparkstackbar-sgehFSit.cjs → vue-ui-sparkstackbar-BVJU36Jz.cjs} +1 -1
  133. package/dist/{vue-ui-sparkstackbar-BAXGFcPk.js → vue-ui-sparkstackbar-COxIfFgm.js} +5 -5
  134. package/dist/{vue-ui-stackbar-87l909wS.cjs → vue-ui-stackbar-CQ56hps8.cjs} +1 -1
  135. package/dist/{vue-ui-stackbar-Cto9A9WG.js → vue-ui-stackbar-Dr5hRx6G.js} +13 -13
  136. package/dist/{vue-ui-strip-plot-Deegqmms.cjs → vue-ui-strip-plot-B_nfC_fx.cjs} +1 -1
  137. package/dist/{vue-ui-strip-plot-C0F8_S_g.js → vue-ui-strip-plot-Mct4OE0A.js} +11 -11
  138. package/dist/{vue-ui-table-1vUkkwSp.js → vue-ui-table-B6LG28n8.js} +3 -3
  139. package/dist/{vue-ui-table-BUxFdYM7.cjs → vue-ui-table-DE3wOTyH.cjs} +1 -1
  140. package/dist/{vue-ui-table-heatmap-PPGfjMxh.js → vue-ui-table-heatmap-DDOoKybT.js} +4 -4
  141. package/dist/{vue-ui-table-heatmap-uDH3owRO.cjs → vue-ui-table-heatmap-DuMRCIbx.cjs} +1 -1
  142. package/dist/{vue-ui-table-sparkline-D9LEgrxj.js → vue-ui-table-sparkline-D578FuNQ.js} +5 -5
  143. package/dist/{vue-ui-table-sparkline-CPSlJVB1.cjs → vue-ui-table-sparkline-gZWWmkQe.cjs} +1 -1
  144. package/dist/{vue-ui-thermometer-D8P88pea.cjs → vue-ui-thermometer-BWHsyYj8.cjs} +1 -1
  145. package/dist/{vue-ui-thermometer-BxngpuEZ.js → vue-ui-thermometer-DFbYODrU.js} +7 -7
  146. package/dist/{vue-ui-timer-C3dxY--Q.js → vue-ui-timer-Bi6Q0m_J.js} +5 -5
  147. package/dist/{vue-ui-timer-B_dh6otW.cjs → vue-ui-timer-s73pZhYM.cjs} +1 -1
  148. package/dist/{vue-ui-tiremarks-mISKtpmD.cjs → vue-ui-tiremarks-BcFJOrF8.cjs} +1 -1
  149. package/dist/{vue-ui-tiremarks-_oZ6wL6K.js → vue-ui-tiremarks-C68rB2kd.js} +7 -7
  150. package/dist/{vue-ui-treemap-CZZXcX0f.cjs → vue-ui-treemap-B7_kcMng.cjs} +1 -1
  151. package/dist/{vue-ui-treemap-D5Dcd84h.js → vue-ui-treemap-b5rZtLKn.js} +12 -12
  152. package/dist/{vue-ui-vertical-bar-C-KAVKXj.cjs → vue-ui-vertical-bar-Bw42kw9a.cjs} +1 -1
  153. package/dist/{vue-ui-vertical-bar-CtWXk6co.js → vue-ui-vertical-bar-DyZ-gfQi.js} +12 -12
  154. package/dist/{vue-ui-waffle-BD2GnRkO.js → vue-ui-waffle-CG05FL_H.js} +12 -12
  155. package/dist/{vue-ui-waffle-C9qyTIzz.cjs → vue-ui-waffle-tk3zMyjq.cjs} +1 -1
  156. package/dist/{vue-ui-wheel-HydW49fo.js → vue-ui-wheel-BTbteaZS.js} +7 -7
  157. package/dist/{vue-ui-wheel-CKfr_7kH.cjs → vue-ui-wheel-RzXEZFfN.cjs} +1 -1
  158. package/dist/{vue-ui-word-cloud-C9Pbi6ey.js → vue-ui-word-cloud-BKubtYCS.js} +10 -10
  159. package/dist/{vue-ui-word-cloud-C4ISeFpy.cjs → vue-ui-word-cloud-CUZ1Mm3Q.cjs} +1 -1
  160. package/dist/{vue-ui-world-D-AsGwlW.js → vue-ui-world-BF0wSEJb.js} +11 -11
  161. package/dist/{vue-ui-world-BlAD3UPb.cjs → vue-ui-world-BPcoReDh.cjs} +1 -1
  162. package/dist/{vue-ui-xy-CMw6P4C0.js → vue-ui-xy-AgcMweTZ.js} +16 -16
  163. package/dist/{vue-ui-xy-CS-xjZVI.cjs → vue-ui-xy-C8ZEeV9g.cjs} +2 -2
  164. package/dist/{vue-ui-xy-canvas-Dd7IFwSK.cjs → vue-ui-xy-canvas-CJl9RPzv.cjs} +1 -1
  165. package/dist/{vue-ui-xy-canvas-DtKI-IQA.js → vue-ui-xy-canvas-CYaJZj3B.js} +12 -12
  166. package/package.json +1 -1
  167. package/dist/index-Cai0fWP7.cjs +0 -9
  168. package/dist/vue-ui-flow-BYypzs-j.cjs +0 -1
  169. package/dist/vue-ui-flow-Ouw_lvpb.js +0 -550
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-Cai0fWP7.cjs"),ye=require("./Title-BkfQdTEX.cjs"),oe=require("./usePrinter-B4ojFS2B.cjs"),be=require("./DataTable-DOiZOQ3J.cjs"),we=require("./vue-ui-accordion-DUGBjyB1.cjs"),Ce=require("./vue-ui-skeleton-C954hFY-.cjs"),le=require("./useNestedProp-DcWhlk8h.cjs"),Ne=require("./PackageVersion-BMNt7NsQ.cjs"),xe=require("./PenAndPaper-BUwLP3Wx.cjs"),$e=require("./useUserOptionState-BgepsfED.cjs"),Be=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"],ze=["stop-color"],Ie=["stop-color"],Le=["d","fill","stroke","stroke-width"],Ve=["x","y","height","width","fill","stroke","stroke-width","onMouseenter"],Ae=["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(ne,{expose:ae}){const{vue_ui_flow:re}=s.useConfig(),h=ne,B=e.computed(()=>!!h.dataset&&h.dataset.length);e.onMounted(()=>{z()});function z(){s.objectIsEmpty(h.dataset)&&s.error({componentName:"VueUiFlow",type:"dataset"})}const _=e.ref(s.createUid()),I=e.ref(null),L=e.ref(0),V=e.ref(0),y=e.ref(!1);function se(o){y.value=o,L.value+=1}const t=e.computed({get:()=>q(),set:o=>o}),{userOptionsVisible:S,setUserOptionsVisibility:A,keepUserOptionState:H}=$e.useUserOptionState({config:t.value}),{svgRef:M}=Be.useChartAccessibility({config:t.value.style.chart.title});function q(){const o=le.useNestedProp({userConfig:h.config,defaultConfig:re});return o.theme?{...le.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=q(),S.value=!t.value.userOptions.showOnChartHover,z(),V.value+=1,b.value.showTable=t.value.table.show},{deep:!0});const{isPrinting:D,isImaging:U,generatePdf:Y,generateImage:G}=oe.usePrinter({elementId:`flow_${_.value}`,fileName:t.value.style.chart.title.text||"vue-ui-flow",options:t.value.userOptions.print}),ue=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),E=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),R=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),P=e.computed(()=>!h.dataset||!h.dataset.length?[]:h.dataset.map(o=>[o[0],o[1],s.checkNaN(o[2])])),W=e.computed(()=>{const o={};function n(a){o[a]||(o[a]={inflow:0,outflow:0})}P.value.forEach(([a,r,c])=>{n(a),n(r),o[a].outflow+=c,o[r].inflow+=c});let l=0;for(const a in o){const r=Math.max(o[a].inflow,o[a].outflow);l=Math.max(l,r)}return l});function ie(o){return o/W.value*100+t.value.style.chart.nodes.minHeight}function ce(o){const n=t.value.style.chart.nodes.minHeight;return(o-n)/100*W.value}function de(o){const n={},l={};function a(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,$=m+1;a(u,m),a(i,$),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=E.value[i]||E.value[i%E.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 r={};for(const u in l){let i=0;l[u].forEach((v,k)=>{const m=n[v].height;r[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+R.value})}const c=[];for(const u in n){let i=r[u].absoluteY+t.value.style.chart.padding.top;n[u].children&&n[u].children.forEach(({target:v,value:k},m)=>{const $=r[v].y+t.value.style.chart.padding.top,O=r[u],F=r[v],K=s.checkNaN(i),Q=s.checkNaN(i+k/n[u].outflow*O.height),ee=s.checkNaN($),te=s.checkNaN($+k/n[v].inflow*F.height),ke={id:s.createUid(),source:u,target:v,path:`M ${s.checkNaN(O.x)+s.checkNaN(g.value)} ${K} L ${s.checkNaN(O.x)+s.checkNaN(g.value)} ${Q} L ${s.checkNaN(F.x)} ${te} L ${s.checkNaN(F.x)} ${ee} Z`,value:k,sourceColor:n[u].color,targetColor:n[v].color};c.push(ke),i+=Q-K,r[v].y+=te-ee})}return{nodeCoordinates:r,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 a in o){const{x:r,height:c}=o[a];n[r]||(n[r]=0),n[r]+=c+R.value}return Math.max(...Object.values(n))}const w=e.computed(()=>{const{top:o,right:n,left:l,bottom:a}=t.value.style.chart.padding,r=P.value.length*j.value;return{height:ve.value+o+a,width:n+Math.max(...f.value.nodes.map(c=>c.x))+g.value,left:l,top:o,right:r-n,p_top:o,p_bottom:a}});function fe(o){const n={},l={},a=new Set;return P.value.forEach(([r,c,u])=>{n[r]||(n[r]=[]),l[c]||(l[c]=[]),n[r].push(c),l[c].push(r)}),n[o]&&n[o].forEach(r=>a.add(r)),l[o]&&l[o].forEach(r=>a.add(r)),Array.from(a).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 X=e.computed(()=>f.value.links.map(({source:o,target:n,sourceColor:l,targetColor:a,value:r})=>({source:o,target:n,sourceColor:l,targetColor:a,value:r})));function Z(){e.nextTick(()=>{const o=X.value.map((a,r)=>[[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=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=X.value.map((r,c)=>[{color:r.sourceColor,name:r.source},{color:r.targetColor,name:r.target},s.dataLabel({p:t.value.style.chart.nodes.labels.prefix,v:r.value,s:t.value.style.chart.nodes.labels.suffix,r:t.value.style.chart.nodes.labels.rounding})]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.source,t.value.table.columnNames.target,t.value.table.columnNames.value],head:o,body:n,config:l}});function ge(){return f.value}function J(){b.value.showTable=!b.value.showTable}const x=e.ref(!1);function T(){x.value=!x.value}return ae({getData:ge,generateCsv:Z,generateImage:G,generatePdf:Y,toggleTable:J,toggleAnnotator:T}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"flowChart",ref:I,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(A)(!0)),onMouseleave:n[3]||(n[3]=()=>e.unref(A)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(xe._sfc_main,{key:0,svgRef:e.unref(M),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:x.value,onClose:T},null,8,["svgRef","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_${V.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&&B.value&&(e.unref(H)||e.unref(S))?(e.openBlock(),e.createBlock(oe.UserOptions,{ref:"details",key:`user_option_${L.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(D),isImaging:e.unref(U),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:I.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:x.value,onToggleFullscreen:se,onGeneratePdf:e.unref(Y),onGenerateCsv:Z,onGenerateImage:e.unref(G),onToggleTable:J,onToggleAnnotator:T,style:e.normalizeStyle({visibility:e.unref(H)?e.unref(S)?"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.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}: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:"5"}: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:"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),(e.openBlock(),e.createElementBlock("svg",{ref_key:"svgRef",ref:M,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,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,ze),e.createElementVNode("stop",{offset:"100%","stop-color":l.targetColor},null,8,Ie)],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,Le))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,a)=>(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:r=>pe(l),onMouseleave:n[0]||(n[0]=r=>me()),style:e.normalizeStyle(`opacity:${p.value?p.value.includes(l.name)?1:.2:1}`)},null,44,Ve))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,a)=>(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,Ae))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,a)=>(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:a})),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(D)||e.unref(U)})),void 0,!0)])):e.createCommentVNode("",!0),B.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),B.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-34c6a87d"]]);exports.default=Ye;
@@ -1,550 +0,0 @@
1
- import { computed as g, onMounted as Ye, ref as k, watch as De, createElementBlock as c, openBlock as i, unref as u, normalizeStyle as _, normalizeClass as ye, createBlock as P, createCommentVNode as w, createSlots as Ge, withCtx as y, renderSlot as p, normalizeProps as M, guardReactiveProps as z, createVNode as be, createElementVNode as Y, Fragment as F, renderList as A, toDisplayString as W, createTextVNode as Ue, nextTick as Ve } from "vue";
2
- import { u as Be, o as je, e as Re, c as ke, t as Xe, p as q, a as We, b as qe, v as f, f as we, X as Je, G as Ce, J as Ze, i as Ke, q as Qe, r as et } from "./index-hMo72hAq.js";
3
- import { _ as tt } from "./Title-DrVDm1wy.js";
4
- import { u as ot, U as lt } from "./usePrinter-D2z-bUtX.js";
5
- import { D as at } from "./DataTable-CXbN2mJi.js";
6
- import nt from "./vue-ui-accordion-CHMdpjnX.js";
7
- import st from "./vue-ui-skeleton-C3t9bL6f.js";
8
- import { u as $e } from "./useNestedProp-DhEaBTgF.js";
9
- import { _ as ut } from "./PackageVersion-0Lu6RIig.js";
10
- import { _ as rt } from "./PenAndPaper-D4Uu-GqW.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"], ft = {
15
- key: 1,
16
- ref: "noTitle",
17
- class: "vue-data-ui-no-title-space",
18
- style: "height:36px; width: 100%;background:transparent"
19
- }, ht = {
20
- key: 2,
21
- style: "width:100%;background:transparent;padding-bottom:24px"
22
- }, gt = ["xmlns", "viewBox"], pt = ["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"], _t = {
23
- key: 4,
24
- class: "vue-data-ui-watermark"
25
- }, xt = {
26
- key: 6,
27
- ref: "source",
28
- dir: "auto"
29
- }, Nt = ["innerHTML"], Ot = {
30
- __name: "vue-ui-flow",
31
- props: {
32
- config: {
33
- type: Object,
34
- default() {
35
- return {};
36
- }
37
- },
38
- dataset: {
39
- type: Array,
40
- default() {
41
- return [];
42
- }
43
- }
44
- },
45
- setup(_e, { expose: xe }) {
46
- const { vue_ui_flow: Ne } = Be(), m = _e, D = g(() => !!m.dataset && m.dataset.length);
47
- Ye(() => {
48
- J();
49
- });
50
- function J() {
51
- je(m.dataset) && Re({
52
- componentName: "VueUiFlow",
53
- type: "dataset"
54
- });
55
- }
56
- const G = k(ke()), Z = k(null), K = k(0), Q = k(0), O = k(!1);
57
- function Oe(t) {
58
- O.value = t, K.value += 1;
59
- }
60
- const e = g({
61
- get: () => le(),
62
- set: (t) => t
63
- }), { userOptionsVisible: U, setUserOptionsVisibility: ee, keepUserOptionState: te } = it({ config: e.value }), { svgRef: oe } = ct({ config: e.value.style.chart.title });
64
- function le() {
65
- const t = $e({
66
- userConfig: m.config,
67
- defaultConfig: Ne
68
- });
69
- return t.theme ? {
70
- ...$e({
71
- userConfig: We.vue_ui_flow[t.theme] || m.config,
72
- defaultConfig: t
73
- }),
74
- customPalette: Xe[t.theme] || q
75
- } : t;
76
- }
77
- De(() => m.config, (t) => {
78
- e.value = le(), U.value = !e.value.userOptions.showOnChartHover, J(), Q.value += 1, T.value.showTable = e.value.table.show;
79
- }, { deep: !0 });
80
- const { isPrinting: ae, isImaging: ne, generatePdf: se, generateImage: ue } = ot({
81
- elementId: `flow_${G.value}`,
82
- fileName: e.value.style.chart.title.text || "vue-ui-flow",
83
- options: e.value.userOptions.print
84
- }), Te = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), V = g(() => qe(e.value.customPalette)), re = g(() => e.value.style.chart.nodes.gap), x = g(() => e.value.style.chart.nodes.width), T = k({
85
- showTable: e.value.table.show
86
- }), ie = g(() => e.value.style.chart.links.width), B = g(() => !m.dataset || !m.dataset.length ? [] : m.dataset.map((t) => [
87
- t[0],
88
- t[1],
89
- f(t[2])
90
- ])), ce = g(() => {
91
- const t = {};
92
- function l(a) {
93
- t[a] || (t[a] = { inflow: 0, outflow: 0 });
94
- }
95
- B.value.forEach(([a, n, v]) => {
96
- l(a), l(n), t[a].outflow += v, t[n].inflow += v;
97
- });
98
- let o = 0;
99
- for (const a in t) {
100
- const n = Math.max(t[a].inflow, t[a].outflow);
101
- o = Math.max(o, n);
102
- }
103
- return o;
104
- });
105
- function Ie(t) {
106
- return t / ce.value * 100 + e.value.style.chart.nodes.minHeight;
107
- }
108
- function Pe(t) {
109
- const l = e.value.style.chart.nodes.minHeight;
110
- return (t - l) / 100 * ce.value;
111
- }
112
- function Fe(t) {
113
- const l = {}, o = {};
114
- function a(s, r) {
115
- 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);
116
- }
117
- t.forEach(([s, r, h], N) => {
118
- const $ = l[s] ? l[s].level : 0, E = $ + 1;
119
- a(s, $), a(r, E), l[s].children || (l[s].children = []), l[s].children.push({ target: r, value: h }), l[s].outflow += h, l[r].inflow += h;
120
- }), Object.keys(l).forEach((s, r) => {
121
- l[s].color = V.value[r] || V.value[r % V.value.length] || q[r] || q[r % d.length];
122
- });
123
- for (const s in l)
124
- l[s].height = Ie(Math.max(l[s].inflow, l[s].outflow)), l[s].name = s;
125
- const n = {};
126
- for (const s in o) {
127
- let r = 0;
128
- o[s].forEach((h, N) => {
129
- const $ = l[h].height;
130
- n[h] = {
131
- x: parseInt(s, 10) * ie.value + e.value.style.chart.padding.left,
132
- y: r,
133
- absoluteY: r,
134
- height: $,
135
- i: N,
136
- color: l[h].color,
137
- value: Pe($)
138
- }, r += $ + re.value;
139
- });
140
- }
141
- const v = [];
142
- for (const s in l) {
143
- let r = n[s].absoluteY + e.value.style.chart.padding.top;
144
- l[s].children && l[s].children.forEach(({ target: h, value: N }, $) => {
145
- const E = n[h].y + e.value.style.chart.padding.top, R = n[s], X = n[h], he = f(r), ge = f(r + N / l[s].outflow * R.height), pe = f(E), me = f(E + N / l[h].inflow * X.height), ze = {
146
- id: ke(),
147
- source: s,
148
- target: h,
149
- path: `M ${f(R.x) + f(x.value)} ${he} L ${f(R.x) + f(x.value)} ${ge} L ${f(X.x)} ${me} L ${f(X.x)} ${pe} Z`,
150
- value: N,
151
- sourceColor: l[s].color,
152
- targetColor: l[h].color
153
- };
154
- v.push(ze), r += ge - he, n[h].y += me - pe;
155
- });
156
- }
157
- return { nodeCoordinates: n, links: v };
158
- }
159
- const b = g(() => {
160
- const t = Fe(m.dataset);
161
- return {
162
- nodes: Object.keys(t.nodeCoordinates).map((l, o) => ({
163
- ...t.nodeCoordinates[l],
164
- name: l
165
- })),
166
- links: t.links
167
- };
168
- }), Ae = g(() => He(b.value.nodes));
169
- function He(t) {
170
- const l = {};
171
- for (const a in t) {
172
- const { x: n, height: v } = t[a];
173
- l[n] || (l[n] = 0), l[n] += v + re.value;
174
- }
175
- return Math.max(...Object.values(l));
176
- }
177
- const I = g(() => {
178
- const { top: t, right: l, left: o, bottom: a } = e.value.style.chart.padding, n = B.value.length * ie.value;
179
- return {
180
- height: Ae.value + t + a,
181
- width: l + Math.max(...b.value.nodes.map((v) => v.x)) + x.value,
182
- left: o,
183
- top: t,
184
- right: n - l,
185
- p_top: t,
186
- p_bottom: a
187
- };
188
- });
189
- function Le(t) {
190
- const l = {}, o = {}, a = /* @__PURE__ */ new Set();
191
- return B.value.forEach(([n, v, s]) => {
192
- l[n] || (l[n] = []), o[v] || (o[v] = []), l[n].push(v), o[v].push(n);
193
- }), l[t] && l[t].forEach((n) => a.add(n)), o[t] && o[t].forEach((n) => a.add(n)), Array.from(a).concat(t);
194
- }
195
- const C = k(null), H = k(null);
196
- function Se(t) {
197
- C.value = Le(t.name), H.value = t.name;
198
- }
199
- function Ee() {
200
- C.value = null, H.value = null;
201
- }
202
- const de = g(() => b.value.links.map(({ source: t, target: l, sourceColor: o, targetColor: a, value: n }) => ({
203
- source: t,
204
- target: l,
205
- sourceColor: o,
206
- targetColor: a,
207
- value: n
208
- })));
209
- function ve() {
210
- Ve(() => {
211
- const t = de.value.map((a, n) => [
212
- [a.source],
213
- [a.target],
214
- [a.value]
215
- ]), l = [
216
- [e.value.style.chart.title.text],
217
- [e.value.style.chart.title.subtitle.text],
218
- [
219
- [e.value.table.columnNames.source],
220
- [e.value.table.columnNames.target],
221
- [e.value.table.columnNames.value]
222
- ]
223
- ].concat(t), o = Qe(l);
224
- et({
225
- csvContent: o,
226
- title: e.value.style.chart.title.text || "vue-ui-flow"
227
- });
228
- });
229
- }
230
- const L = g(() => {
231
- const t = [
232
- e.value.table.columnNames.source,
233
- e.value.table.columnNames.target,
234
- e.value.table.columnNames.value
235
- ], l = de.value.map((n, v) => [
236
- {
237
- color: n.sourceColor,
238
- name: n.source
239
- },
240
- {
241
- color: n.targetColor,
242
- name: n.target
243
- },
244
- we({
245
- p: e.value.style.chart.nodes.labels.prefix,
246
- v: n.value,
247
- s: e.value.style.chart.nodes.labels.suffix,
248
- r: e.value.style.chart.nodes.labels.rounding
249
- })
250
- ]), o = {
251
- th: {
252
- backgroundColor: e.value.table.th.backgroundColor,
253
- color: e.value.table.th.color,
254
- outline: e.value.table.th.outline
255
- },
256
- td: {
257
- backgroundColor: e.value.table.td.backgroundColor,
258
- color: e.value.table.td.color,
259
- outline: e.value.table.td.outline
260
- },
261
- breakpoint: e.value.table.responsiveBreakpoint
262
- };
263
- return {
264
- colNames: [
265
- e.value.table.columnNames.source,
266
- e.value.table.columnNames.target,
267
- e.value.table.columnNames.value
268
- ],
269
- head: t,
270
- body: l,
271
- config: o
272
- };
273
- });
274
- function Me() {
275
- return b.value;
276
- }
277
- function fe() {
278
- T.value.showTable = !T.value.showTable;
279
- }
280
- const S = k(!1);
281
- function j() {
282
- S.value = !S.value;
283
- }
284
- return xe({
285
- getData: Me,
286
- generateCsv: ve,
287
- generateImage: ue,
288
- generatePdf: se,
289
- toggleTable: fe,
290
- toggleAnnotator: j
291
- }), (t, l) => (i(), c("div", {
292
- ref_key: "flowChart",
293
- ref: Z,
294
- class: ye(`vue-ui-flow ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
295
- style: _(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
296
- id: `flow_${G.value}`,
297
- onMouseenter: l[2] || (l[2] = () => u(ee)(!0)),
298
- onMouseleave: l[3] || (l[3] = () => u(ee)(!1))
299
- }, [
300
- e.value.userOptions.buttons.annotator ? (i(), P(rt, {
301
- key: 0,
302
- svgRef: u(oe),
303
- backgroundColor: e.value.style.chart.backgroundColor,
304
- color: e.value.style.chart.color,
305
- active: S.value,
306
- onClose: j
307
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : w("", !0),
308
- Te.value ? (i(), c("div", ft, null, 512)) : w("", !0),
309
- e.value.style.chart.title.text ? (i(), c("div", ht, [
310
- (i(), P(tt, {
311
- key: `title_${Q.value}`,
312
- config: {
313
- title: {
314
- cy: "flow-title",
315
- ...e.value.style.chart.title
316
- },
317
- subtitle: {
318
- cy: "flow-subtitle",
319
- ...e.value.style.chart.title.subtitle
320
- }
321
- }
322
- }, null, 8, ["config"]))
323
- ])) : w("", !0),
324
- e.value.userOptions.show && D.value && (u(te) || u(U)) ? (i(), P(lt, {
325
- ref: "details",
326
- key: `user_option_${K.value}`,
327
- backgroundColor: e.value.style.chart.backgroundColor,
328
- color: e.value.style.chart.color,
329
- isPrinting: u(ae),
330
- isImaging: u(ne),
331
- uid: G.value,
332
- hasPdf: e.value.userOptions.buttons.pdf,
333
- hasXls: e.value.userOptions.buttons.csv,
334
- hasImg: e.value.userOptions.buttons.img,
335
- hasTable: e.value.userOptions.buttons.table,
336
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
337
- isFullscreen: O.value,
338
- titles: { ...e.value.userOptions.buttonTitles },
339
- chartElement: Z.value,
340
- position: e.value.userOptions.position,
341
- hasAnnotator: e.value.userOptions.buttons.annotator,
342
- isAnnotation: S.value,
343
- onToggleFullscreen: Oe,
344
- onGeneratePdf: u(se),
345
- onGenerateCsv: ve,
346
- onGenerateImage: u(ue),
347
- onToggleTable: fe,
348
- onToggleAnnotator: j,
349
- style: _({
350
- visibility: u(te) ? u(U) ? "visible" : "hidden" : "visible"
351
- })
352
- }, Ge({ _: 2 }, [
353
- t.$slots.menuIcon ? {
354
- name: "menuIcon",
355
- fn: y(({ isOpen: o, color: a }) => [
356
- p(t.$slots, "menuIcon", M(z({ isOpen: o, color: a })), void 0, !0)
357
- ]),
358
- key: "0"
359
- } : void 0,
360
- t.$slots.optionPdf ? {
361
- name: "optionPdf",
362
- fn: y(() => [
363
- p(t.$slots, "optionPdf", {}, void 0, !0)
364
- ]),
365
- key: "1"
366
- } : void 0,
367
- t.$slots.optionCsv ? {
368
- name: "optionCsv",
369
- fn: y(() => [
370
- p(t.$slots, "optionCsv", {}, void 0, !0)
371
- ]),
372
- key: "2"
373
- } : void 0,
374
- t.$slots.optionImg ? {
375
- name: "optionImg",
376
- fn: y(() => [
377
- p(t.$slots, "optionImg", {}, void 0, !0)
378
- ]),
379
- key: "3"
380
- } : void 0,
381
- t.$slots.optionTable ? {
382
- name: "optionTable",
383
- fn: y(() => [
384
- p(t.$slots, "optionTable", {}, void 0, !0)
385
- ]),
386
- key: "4"
387
- } : void 0,
388
- t.$slots.optionFullscreen ? {
389
- name: "optionFullscreen",
390
- fn: y(({ toggleFullscreen: o, isFullscreen: a }) => [
391
- p(t.$slots, "optionFullscreen", M(z({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
392
- ]),
393
- key: "5"
394
- } : void 0,
395
- t.$slots.optionAnnotator ? {
396
- name: "optionAnnotator",
397
- fn: y(({ toggleAnnotator: o, isAnnotator: a }) => [
398
- p(t.$slots, "optionAnnotator", M(z({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
399
- ]),
400
- key: "6"
401
- } : void 0
402
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : w("", !0),
403
- (i(), c("svg", {
404
- ref_key: "svgRef",
405
- ref: oe,
406
- xmlns: u(Je),
407
- viewBox: `0 0 ${I.value.width} ${I.value.height}`,
408
- class: ye({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
409
- style: _(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
410
- }, [
411
- be(ut),
412
- t.$slots["chart-background"] ? (i(), c("foreignObject", {
413
- key: 0,
414
- x: 0,
415
- y: 0,
416
- width: I.value.width,
417
- height: I.value.height,
418
- style: {
419
- pointerEvents: "none"
420
- }
421
- }, [
422
- p(t.$slots, "chart-background", {}, void 0, !0)
423
- ], 8, pt)) : w("", !0),
424
- Y("defs", null, [
425
- (i(!0), c(F, null, A(b.value.links, (o, a) => (i(), c("linearGradient", {
426
- id: o.id,
427
- x1: "0%",
428
- y1: "0%",
429
- x2: "100%",
430
- y2: "0%"
431
- }, [
432
- Y("stop", {
433
- offset: "0%",
434
- "stop-color": o.sourceColor
435
- }, null, 8, yt),
436
- Y("stop", {
437
- offset: "100%",
438
- "stop-color": o.targetColor
439
- }, null, 8, bt)
440
- ], 8, mt))), 256))
441
- ]),
442
- (i(!0), c(F, null, A(b.value.links, (o) => (i(), c("path", {
443
- class: "vue-ui-flow-link",
444
- d: o.path,
445
- fill: `url(#${o.id})`,
446
- stroke: e.value.style.chart.links.stroke,
447
- "stroke-width": e.value.style.chart.links.strokeWidth,
448
- style: _(`opacity:${H.value ? [o.target, o.source].includes(H.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}`)
449
- }, null, 12, kt))), 256)),
450
- (i(!0), c(F, null, A(b.value.nodes, (o, a) => (i(), c("rect", {
451
- class: "vue-ui-flow-node",
452
- x: o.x,
453
- y: u(f)(o.absoluteY) + e.value.style.chart.padding.top,
454
- height: u(f)(o.height),
455
- width: x.value,
456
- fill: o.color,
457
- stroke: e.value.style.chart.nodes.stroke,
458
- "stroke-width": e.value.style.chart.nodes.strokeWidth,
459
- onMouseenter: (n) => Se(o),
460
- onMouseleave: l[0] || (l[0] = (n) => Ee()),
461
- style: _(`opacity:${C.value ? C.value.includes(o.name) ? 1 : 0.2 : 1}`)
462
- }, null, 44, wt))), 256)),
463
- (i(!0), c(F, null, A(b.value.nodes, (o, a) => (i(), c("text", {
464
- x: o.x + x.value / 2,
465
- y: u(f)(o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4) + e.value.style.chart.padding.top,
466
- "font-size": e.value.style.chart.nodes.labels.fontSize,
467
- fill: u(Ce)(o.color),
468
- "text-anchor": "middle",
469
- style: _(`pointer-events: none; opacity:${C.value ? C.value.includes(o.name) ? 1 : 0 : 1}`)
470
- }, W(e.value.style.chart.nodes.labels.abbreviation.use ? u(Ze)({ source: o.name, length: e.value.style.chart.nodes.labels.abbreviation.length }) : o.name), 13, Ct))), 256)),
471
- (i(!0), c(F, null, A(b.value.nodes, (o, a) => (i(), c("text", {
472
- x: o.x + x.value / 2,
473
- y: u(f)(o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize) + e.value.style.chart.padding.top,
474
- "font-size": e.value.style.chart.nodes.labels.fontSize,
475
- fill: u(Ce)(o.color),
476
- "text-anchor": "middle",
477
- style: _(`pointer-events: none; opacity:${C.value ? C.value.includes(o.name) ? 1 : 0 : 1}`)
478
- }, W(u(Ke)(
479
- e.value.style.chart.nodes.labels.formatter,
480
- o.value,
481
- u(we)({
482
- p: e.value.style.chart.nodes.labels.prefix,
483
- v: o.value,
484
- s: e.value.style.chart.nodes.labels.suffix,
485
- r: e.value.style.chart.nodes.labels.rounding
486
- }),
487
- { datapoint: o, seriesIndex: a }
488
- )), 13, $t))), 256)),
489
- p(t.$slots, "svg", { svg: I.value }, void 0, !0)
490
- ], 14, gt)),
491
- t.$slots.watermark ? (i(), c("div", _t, [
492
- p(t.$slots, "watermark", M(z({ isPrinting: u(ae) || u(ne) })), void 0, !0)
493
- ])) : w("", !0),
494
- D.value ? w("", !0) : (i(), P(st, {
495
- key: 5,
496
- config: {
497
- type: "flow",
498
- style: {
499
- backgroundColor: e.value.style.chart.backgroundColor
500
- }
501
- }
502
- }, null, 8, ["config"])),
503
- t.$slots.source ? (i(), c("div", xt, [
504
- p(t.$slots, "source", {}, void 0, !0)
505
- ], 512)) : w("", !0),
506
- D.value ? (i(), P(nt, {
507
- key: 7,
508
- hideDetails: "",
509
- config: {
510
- open: T.value.showTable,
511
- maxHeight: 1e4,
512
- body: {
513
- backgroundColor: e.value.style.chart.backgroundColor,
514
- color: e.value.style.chart.color
515
- },
516
- head: {
517
- backgroundColor: e.value.style.chart.backgroundColor,
518
- color: e.value.style.chart.color
519
- }
520
- }
521
- }, {
522
- content: y(() => [
523
- be(at, {
524
- colNames: L.value.colNames,
525
- head: L.value.head,
526
- body: L.value.body,
527
- config: L.value.config,
528
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
529
- onClose: l[1] || (l[1] = (o) => T.value.showTable = !1)
530
- }, {
531
- th: y(({ th: o }) => [
532
- Y("div", {
533
- innerHTML: o,
534
- style: { display: "flex", "align-items": "center" }
535
- }, null, 8, Nt)
536
- ]),
537
- td: y(({ td: o }) => [
538
- Ue(W(o.name || o), 1)
539
- ]),
540
- _: 1
541
- }, 8, ["colNames", "head", "body", "config", "title"])
542
- ]),
543
- _: 1
544
- }, 8, ["config"])) : w("", !0)
545
- ], 46, vt));
546
- }
547
- }, Gt = /* @__PURE__ */ dt(Ot, [["__scopeId", "data-v-34c6a87d"]]);
548
- export {
549
- Gt as default
550
- };