vue-data-ui 2.4.25 → 2.4.26

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 (154) hide show
  1. package/README.md +9 -4
  2. package/dist/{Arrow-ByXO10pD.cjs → Arrow-Cvajb7Pp.cjs} +1 -1
  3. package/dist/{Arrow-DaXXS-Wb.js → Arrow-D_FJ0BNg.js} +1 -1
  4. package/dist/{BaseIcon-D3twU60H.js → BaseIcon-CeiDtKER.js} +4 -3
  5. package/dist/{BaseIcon-BRuFT7-k.cjs → BaseIcon-DeKj5tiF.cjs} +1 -1
  6. package/dist/{DataTable-D8fcY_sJ.js → DataTable-BmAybhqW.js} +2 -2
  7. package/dist/{DataTable-DFdNUfRe.cjs → DataTable-D-c7laSt.cjs} +1 -1
  8. package/dist/{Legend-BorSDXCj.js → Legend-7EZhiUrH.js} +1 -1
  9. package/dist/{Legend-DZAy6K3t.cjs → Legend-D_dNnmCH.cjs} +1 -1
  10. package/dist/{PackageVersion-mSsg8dpu.js → PackageVersion-BRMtBck7.js} +1 -1
  11. package/dist/{PackageVersion-C2anu38L.cjs → PackageVersion-C2JzxDlg.cjs} +1 -1
  12. package/dist/{PenAndPaper-DKSbeuss.cjs → PenAndPaper-Bur5hR1K.cjs} +1 -1
  13. package/dist/{PenAndPaper-Dk41ZrJ0.js → PenAndPaper-u9Nkiu0T.js} +3 -3
  14. package/dist/{Shape-bmo_-9LU.cjs → Shape-DJY2D6fU.cjs} +1 -1
  15. package/dist/{Shape-DYFnvMNd.js → Shape-DoR3mblZ.js} +1 -1
  16. package/dist/{Slicer-BLQZ4Fne.js → Slicer-AM-8gKgh.js} +2 -2
  17. package/dist/{Slicer-BME5LXma.cjs → Slicer-DO6JA4zU.cjs} +1 -1
  18. package/dist/{Title-Dm2GAV04.cjs → Title-BJut0KCO.cjs} +1 -1
  19. package/dist/{Title-DyD-mBPN.js → Title-D_ljAKoY.js} +1 -1
  20. package/dist/{Tooltip-qod9o4Vz.js → Tooltip-Cy8PyEK7.js} +1 -1
  21. package/dist/{Tooltip-CcZzx8f8.cjs → Tooltip-OW2BdLyv.cjs} +1 -1
  22. package/dist/documentation/installation.md +2 -1
  23. package/dist/index-BtqOSPWK.cjs +9 -0
  24. package/dist/{index-BICsqKzz.js → index-CpjF4-PU.js} +604 -374
  25. package/dist/style.css +1 -1
  26. package/dist/types/vue-data-ui.d.cts +99 -7
  27. package/dist/types/vue-data-ui.d.ts +99 -7
  28. package/dist/{useNestedProp-bUwthiZ4.cjs → useNestedProp-C7FKZW2F.cjs} +1 -1
  29. package/dist/{useNestedProp-BxrcwmTZ.js → useNestedProp-DiDiQc6z.js} +1 -1
  30. package/dist/{usePrinter-CLcxWv-4.js → usePrinter-CZ0Ro0M3.js} +1 -1
  31. package/dist/{usePrinter-D_-LKcci.cjs → usePrinter-SEUTEAmF.cjs} +1 -1
  32. package/dist/vue-data-ui-37JLfniv.cjs +9 -0
  33. package/dist/{vue-data-ui-DF7u-eZV.js → vue-data-ui-CL2AoklI.js} +72 -70
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +44 -43
  36. package/dist/{vue-ui-3d-bar-BDVAkP4Z.js → vue-ui-3d-bar-BlEG4n0o.js} +9 -9
  37. package/dist/{vue-ui-3d-bar-BtfayTxG.cjs → vue-ui-3d-bar-C8Qb1ifR.cjs} +1 -1
  38. package/dist/{vue-ui-accordion-m8rut1bP.js → vue-ui-accordion-D6Uwxwl0.js} +3 -3
  39. package/dist/{vue-ui-accordion-BCBC5X2n.cjs → vue-ui-accordion-iiUNHeV-.cjs} +1 -1
  40. package/dist/{vue-ui-age-pyramid-DTYLss6w.js → vue-ui-age-pyramid-CNWM-Vso.js} +10 -10
  41. package/dist/{vue-ui-age-pyramid-71PgCBF6.cjs → vue-ui-age-pyramid-DjagE43x.cjs} +1 -1
  42. package/dist/{vue-ui-annotator-WjNfGCba.js → vue-ui-annotator-BZe3neqk.js} +1 -1
  43. package/dist/{vue-ui-annotator-DKveFO8S.cjs → vue-ui-annotator-CMVPAd95.cjs} +1 -1
  44. package/dist/{vue-ui-bullet-BaN07Yto.js → vue-ui-bullet-O15K1or8.js} +8 -8
  45. package/dist/{vue-ui-bullet-D-QKgdGT.cjs → vue-ui-bullet-UVtGYVKm.cjs} +1 -1
  46. package/dist/{vue-ui-candlestick-9MfQ-DXp.cjs → vue-ui-candlestick-CNmA8fQF.cjs} +1 -1
  47. package/dist/{vue-ui-candlestick-CEXWukDl.js → vue-ui-candlestick-w_RkjrEB.js} +11 -11
  48. package/dist/{vue-ui-carousel-table-DwPPz25F.js → vue-ui-carousel-table-8bz5Gw6i.js} +4 -4
  49. package/dist/{vue-ui-carousel-table-bHyWXhUR.cjs → vue-ui-carousel-table-B5MDm7_a.cjs} +1 -1
  50. package/dist/{vue-ui-chestnut-UVDUlA26.js → vue-ui-chestnut-C9kaPI5L.js} +8 -8
  51. package/dist/{vue-ui-chestnut-BgQsSFpo.cjs → vue-ui-chestnut-DHjsPGHg.cjs} +1 -1
  52. package/dist/{vue-ui-cursor-B5N8-2TC.cjs → vue-ui-cursor-Dzc6b6gE.cjs} +1 -1
  53. package/dist/{vue-ui-cursor-DwJ_3OeD.js → vue-ui-cursor-a11eeJlM.js} +2 -2
  54. package/dist/{vue-ui-dashboard-Dlnt37bU.js → vue-ui-dashboard-B3cTzTF7.js} +2 -2
  55. package/dist/{vue-ui-dashboard-DHMq8KDe.cjs → vue-ui-dashboard-CfA-FY0a.cjs} +1 -1
  56. package/dist/{vue-ui-digits-d5q7aYEB.js → vue-ui-digits-CHI-rZzx.js} +2 -2
  57. package/dist/{vue-ui-digits-CLw0UlLM.cjs → vue-ui-digits-xq4pLzXW.cjs} +1 -1
  58. package/dist/{vue-ui-donut-nuCiumWN.js → vue-ui-donut-D4w732yO.js} +11 -11
  59. package/dist/{vue-ui-donut-evolution-H2_TlrF2.js → vue-ui-donut-evolution-BcEI-XQ5.js} +11 -11
  60. package/dist/{vue-ui-donut-evolution-CfPcjjnn.cjs → vue-ui-donut-evolution-DE-b4ShC.cjs} +1 -1
  61. package/dist/{vue-ui-donut-CeNCKLSe.cjs → vue-ui-donut-zCAjAqo7.cjs} +1 -1
  62. package/dist/{vue-ui-dumbbell-hSPyK3qm.cjs → vue-ui-dumbbell-BHHVRpof.cjs} +1 -1
  63. package/dist/{vue-ui-dumbbell--qD2MDbF.js → vue-ui-dumbbell-CRB1jDkp.js} +10 -10
  64. package/dist/{vue-ui-flow-Cp154Fpn.cjs → vue-ui-flow---9a6iGC.cjs} +1 -1
  65. package/dist/{vue-ui-flow-CgcUEWmx.js → vue-ui-flow-CO_kwR_-.js} +9 -9
  66. package/dist/vue-ui-funnel-BtFW0Wex.cjs +1 -0
  67. package/dist/vue-ui-funnel-BvLLEW0u.js +574 -0
  68. package/dist/{vue-ui-galaxy-CVRruPO1.cjs → vue-ui-galaxy-BpR7EuVp.cjs} +1 -1
  69. package/dist/{vue-ui-galaxy-CNuslpHY.js → vue-ui-galaxy-CzBNCWvB.js} +11 -11
  70. package/dist/{vue-ui-gauge-BlfbiQ2E.js → vue-ui-gauge-BLCrA4Z3.js} +7 -7
  71. package/dist/{vue-ui-gauge-BdEZP0P9.cjs → vue-ui-gauge-CjOu6oqn.cjs} +1 -1
  72. package/dist/{vue-ui-gizmo-CKbSLvuP.js → vue-ui-gizmo-CbALdGSE.js} +3 -3
  73. package/dist/{vue-ui-gizmo-D7ANYpNx.cjs → vue-ui-gizmo-D550LJP_.cjs} +1 -1
  74. package/dist/{vue-ui-heatmap-DCTdqUIX.cjs → vue-ui-heatmap--SVDRyYF.cjs} +1 -1
  75. package/dist/{vue-ui-heatmap-DeV-Tkf2.js → vue-ui-heatmap-GxECNV1K.js} +10 -10
  76. package/dist/{vue-ui-kpi-BS6Q-H3p.js → vue-ui-kpi-BeI-Uc3G.js} +3 -3
  77. package/dist/{vue-ui-kpi-BQMwef0E.cjs → vue-ui-kpi-DmTDeYTk.cjs} +1 -1
  78. package/dist/{vue-ui-mini-loader-BkB2IKcd.cjs → vue-ui-mini-loader-BPCifmPi.cjs} +1 -1
  79. package/dist/{vue-ui-mini-loader-1hfptP8p.js → vue-ui-mini-loader-Cq5NzQke.js} +2 -2
  80. package/dist/{vue-ui-molecule-9nYN6FWk.js → vue-ui-molecule-BYnnHVSs.js} +11 -11
  81. package/dist/{vue-ui-molecule-BSfmIrIV.cjs → vue-ui-molecule-DDOtYnvu.cjs} +1 -1
  82. package/dist/{vue-ui-mood-radar-DmxG3SpA.cjs → vue-ui-mood-radar-CXxUmCON.cjs} +1 -1
  83. package/dist/{vue-ui-mood-radar-CdhoXPjB.js → vue-ui-mood-radar-DSph-BzR.js} +11 -11
  84. package/dist/{vue-ui-nested-donuts-DHn5JPVa.js → vue-ui-nested-donuts-D-FKanpn.js} +11 -11
  85. package/dist/{vue-ui-nested-donuts-BVDpwaOw.cjs → vue-ui-nested-donuts-DxcqrnAz.cjs} +1 -1
  86. package/dist/{vue-ui-onion-DpRHbEWN.cjs → vue-ui-onion-BTXdZW1F.cjs} +1 -1
  87. package/dist/{vue-ui-onion-Dn2beWtO.js → vue-ui-onion-DNdKU_tZ.js} +11 -11
  88. package/dist/{vue-ui-parallel-coordinate-plot-yq09af0J.js → vue-ui-parallel-coordinate-plot-C08Mm2-q.js} +12 -12
  89. package/dist/{vue-ui-parallel-coordinate-plot-CU0tOs-u.cjs → vue-ui-parallel-coordinate-plot-CGvkjk3D.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-DzwXd881.js → vue-ui-quadrant-CK8lzvET.js} +12 -12
  91. package/dist/{vue-ui-quadrant-71OHEVEh.cjs → vue-ui-quadrant-DGtHGV8w.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-BF7xqf0f.js → vue-ui-quick-chart-C7chIyP1.js} +9 -9
  93. package/dist/{vue-ui-quick-chart-Pt-8uXit.cjs → vue-ui-quick-chart-DNh8sXOc.cjs} +1 -1
  94. package/dist/{vue-ui-radar-DOmOWd_A.js → vue-ui-radar-CvklQTxx.js} +12 -12
  95. package/dist/{vue-ui-radar-Buv9DMRa.cjs → vue-ui-radar-DIX_qX_c.cjs} +1 -1
  96. package/dist/{vue-ui-rating-CQrrI3Mx.js → vue-ui-rating-DkWhtX7L.js} +2 -2
  97. package/dist/{vue-ui-rating-DiAqIvDv.cjs → vue-ui-rating-WfJhW6Yh.cjs} +1 -1
  98. package/dist/{vue-ui-relation-circle-Sb7Nyb8W.js → vue-ui-relation-circle-Bt2kayAM.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-CxOgNn5_.cjs → vue-ui-relation-circle-UkI3rSGh.cjs} +1 -1
  100. package/dist/{vue-ui-rings-Cm5q10II.cjs → vue-ui-rings-6RqShpuH.cjs} +1 -1
  101. package/dist/{vue-ui-rings-BrdbD7PJ.js → vue-ui-rings-CHIqJDps.js} +11 -11
  102. package/dist/{vue-ui-scatter-D5q2EE4b.js → vue-ui-scatter-B-L_xBjF.js} +12 -12
  103. package/dist/{vue-ui-scatter-ngmt8UB9.cjs → vue-ui-scatter-Dl0lSlc1.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-Jf_CuPtB.js → vue-ui-screenshot-BNGt_Ndj.js} +1 -1
  105. package/dist/{vue-ui-screenshot-B6zLJRHR.cjs → vue-ui-screenshot-BldyAQhp.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-Dgzcn3FL.js → vue-ui-skeleton-5qiu2vOB.js} +3 -3
  107. package/dist/{vue-ui-skeleton-CEeXInMi.cjs → vue-ui-skeleton-CCo2ROV1.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-JwYaXNnm.cjs → vue-ui-smiley-C7_S4eNS.cjs} +1 -1
  109. package/dist/{vue-ui-smiley-BAclx6KJ.js → vue-ui-smiley-iWOs5GqV.js} +2 -2
  110. package/dist/{vue-ui-spark-trend-BIGVUzmd.js → vue-ui-spark-trend-MzGiDFGX.js} +5 -5
  111. package/dist/{vue-ui-spark-trend-_QrAMYgz.cjs → vue-ui-spark-trend-sNzwu560.cjs} +1 -1
  112. package/dist/{vue-ui-sparkbar-DhfJlpfY.cjs → vue-ui-sparkbar-BVfXmqcD.cjs} +1 -1
  113. package/dist/{vue-ui-sparkbar-OZC6iwJ4.js → vue-ui-sparkbar-DpxQR2gu.js} +4 -4
  114. package/dist/{vue-ui-sparkgauge-DEPvmH2r.cjs → vue-ui-sparkgauge-CS8UDWeQ.cjs} +1 -1
  115. package/dist/{vue-ui-sparkgauge-8Tv-j1T9.js → vue-ui-sparkgauge-D4--jFQc.js} +4 -4
  116. package/dist/{vue-ui-sparkhistogram-BNILlxcX.js → vue-ui-sparkhistogram-Cxjoa6ky.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram-DAbQdCGz.cjs → vue-ui-sparkhistogram-D8IhrzY-.cjs} +1 -1
  118. package/dist/{vue-ui-sparkline-B0BJFHMi.js → vue-ui-sparkline-3Q4hEM7p.js} +4 -4
  119. package/dist/{vue-ui-sparkline-XUWsqlUN.cjs → vue-ui-sparkline-D910H286.cjs} +1 -1
  120. package/dist/{vue-ui-sparkstackbar-BB-MOwPO.js → vue-ui-sparkstackbar-B59Bw7Az.js} +5 -5
  121. package/dist/{vue-ui-sparkstackbar-DiyZJ8wv.cjs → vue-ui-sparkstackbar-CTSihv-L.cjs} +1 -1
  122. package/dist/{vue-ui-stackbar-BqX7ZucO.cjs → vue-ui-stackbar-BGrrmjco.cjs} +1 -1
  123. package/dist/{vue-ui-stackbar-DT_TRXc4.js → vue-ui-stackbar-BTegNdY4.js} +12 -12
  124. package/dist/{vue-ui-strip-plot-DiiGkNc9.cjs → vue-ui-strip-plot-BVjyrdND.cjs} +1 -1
  125. package/dist/{vue-ui-strip-plot-Bn4z9RH8.js → vue-ui-strip-plot-BgT1J5OY.js} +11 -11
  126. package/dist/{vue-ui-table-BERyvvqz.js → vue-ui-table-CgS1GU4Z.js} +1 -1
  127. package/dist/{vue-ui-table-9xjGzylw.cjs → vue-ui-table-fCHQvdbJ.cjs} +1 -1
  128. package/dist/{vue-ui-table-heatmap-CNWh58QC.cjs → vue-ui-table-heatmap-BqFJMAJ_.cjs} +1 -1
  129. package/dist/{vue-ui-table-heatmap-tduub4CZ.js → vue-ui-table-heatmap-DgvQBYXr.js} +4 -4
  130. package/dist/{vue-ui-table-sparkline-COsvxl8Z.cjs → vue-ui-table-sparkline-CXLMpv0k.cjs} +1 -1
  131. package/dist/{vue-ui-table-sparkline-DirFLTCn.js → vue-ui-table-sparkline-fBE66WCN.js} +5 -5
  132. package/dist/{vue-ui-thermometer-Bp8DH03h.cjs → vue-ui-thermometer-DulgA3i4.cjs} +1 -1
  133. package/dist/{vue-ui-thermometer-aj7L5dYo.js → vue-ui-thermometer-tGfJAwyO.js} +7 -7
  134. package/dist/{vue-ui-timer-BxdADUyO.js → vue-ui-timer-C2kPkRBe.js} +5 -5
  135. package/dist/{vue-ui-timer-CFLSCgHD.cjs → vue-ui-timer-CASCNNyP.cjs} +1 -1
  136. package/dist/{vue-ui-tiremarks-swIZAkBk.cjs → vue-ui-tiremarks-4dlAjo6S.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-CEfNdN2Z.js → vue-ui-tiremarks-CGlojo_b.js} +7 -7
  138. package/dist/{vue-ui-treemap-XADmrlur.js → vue-ui-treemap-DufeK33k.js} +11 -11
  139. package/dist/{vue-ui-treemap-TA_t2X-T.cjs → vue-ui-treemap-jhaYQkiI.cjs} +1 -1
  140. package/dist/{vue-ui-vertical-bar-DpX4MZOk.cjs → vue-ui-vertical-bar-B30icWwi.cjs} +1 -1
  141. package/dist/{vue-ui-vertical-bar-BxZxWXPp.js → vue-ui-vertical-bar-Dmo8wnx8.js} +11 -11
  142. package/dist/{vue-ui-waffle-D5fVZhj1.js → vue-ui-waffle-BZxjBRnB.js} +11 -11
  143. package/dist/{vue-ui-waffle-u71f2gDj.cjs → vue-ui-waffle-D59RaWZT.cjs} +1 -1
  144. package/dist/{vue-ui-wheel-DeJIQNQo.js → vue-ui-wheel-BeRyRbt8.js} +7 -7
  145. package/dist/{vue-ui-wheel-OcDfmU6G.cjs → vue-ui-wheel-De4-mY35.cjs} +1 -1
  146. package/dist/{vue-ui-word-cloud-C8RX9zpp.js → vue-ui-word-cloud-Bk0QzFwd.js} +10 -10
  147. package/dist/{vue-ui-word-cloud-CqMxlLQ5.cjs → vue-ui-word-cloud-aPrfbkgM.cjs} +1 -1
  148. package/dist/{vue-ui-xy-C-IsoZnw.js → vue-ui-xy-DFzFITJ1.js} +14 -14
  149. package/dist/{vue-ui-xy-canvas-DHCbEqpJ.cjs → vue-ui-xy-canvas-BDD6q_Yb.cjs} +1 -1
  150. package/dist/{vue-ui-xy-canvas-RMsnzPnE.js → vue-ui-xy-canvas-DWf89_69.js} +11 -11
  151. package/dist/{vue-ui-xy-YFzX3F_Z.cjs → vue-ui-xy-pCnGy_1K.cjs} +1 -1
  152. package/package.json +2 -1
  153. package/dist/index-CLWrZGbv.cjs +0 -9
  154. package/dist/vue-data-ui-DFh0GmXI.cjs +0 -9
@@ -1,15 +1,15 @@
1
1
  import { computed as m, ref as v, watch as de, onMounted as ve, onBeforeUnmount as Ne, openBlock as o, createElementBlock as r, normalizeClass as he, normalizeStyle as H, createBlock as L, createCommentVNode as y, unref as d, createSlots as Te, withCtx as _, renderSlot as k, normalizeProps as W, guardReactiveProps as R, createVNode as Pe, Fragment as w, renderList as $, createElementVNode as n, toDisplayString as A, createTextVNode as ye, nextTick as Ge } from "vue";
2
- import { u as De, c as fe, t as Ie, o as Me, e as be, g as Oe, v as ge, C as Fe, f as z, X as pe, i as B, l as me, h as _e, q as Ve, r as Ee } from "./index-BICsqKzz.js";
2
+ import { u as De, c as fe, t as Ie, o as Me, e as be, g as Oe, v as ge, C as Fe, f as z, X as pe, i as B, l as me, h as _e, q as Ve, r as Ee } from "./index-CpjF4-PU.js";
3
3
  import { t as He, u as We } from "./useResponsive-CoxXLe23.js";
4
- import { _ as Re } from "./Title-DyD-mBPN.js";
5
- import { u as Be, U as Ue } from "./usePrinter-CLcxWv-4.js";
6
- import { D as je } from "./DataTable-D8fcY_sJ.js";
7
- import qe from "./vue-ui-skeleton-Dgzcn3FL.js";
8
- import { L as Ye } from "./Legend-BorSDXCj.js";
9
- import Ze from "./vue-ui-accordion-m8rut1bP.js";
10
- import { u as ke } from "./useNestedProp-BxrcwmTZ.js";
11
- import { _ as Je } from "./PackageVersion-mSsg8dpu.js";
12
- import { P as Ke } from "./PenAndPaper-Dk41ZrJ0.js";
4
+ import { _ as Re } from "./Title-D_ljAKoY.js";
5
+ import { u as Be, U as Ue } from "./usePrinter-CZ0Ro0M3.js";
6
+ import { D as je } from "./DataTable-BmAybhqW.js";
7
+ import qe from "./vue-ui-skeleton-5qiu2vOB.js";
8
+ import { L as Ye } from "./Legend-7EZhiUrH.js";
9
+ import Ze from "./vue-ui-accordion-D6Uwxwl0.js";
10
+ import { u as ke } from "./useNestedProp-DiDiQc6z.js";
11
+ import { _ as Je } from "./PackageVersion-BRMtBck7.js";
12
+ import { P as Ke } from "./PenAndPaper-u9Nkiu0T.js";
13
13
  import { _ as Qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const et = ["id"], tt = ["xmlns", "viewBox"], lt = { key: 0 }, at = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], st = { key: 1 }, ot = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], rt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], nt = { key: 2 }, ut = ["x", "y", "font-size", "fill", "font-weight"], it = ["x", "y", "font-size", "fill"], ct = { key: 3 }, dt = ["x", "y", "font-size", "fill", "font-weight"], vt = ["id"], ht = ["stop-color"], yt = ["stop-color"], ft = ["stop-color"], bt = ["id"], gt = ["stop-color"], pt = ["stop-color"], mt = ["stop-color"], _t = ["id"], kt = ["stop-color"], xt = ["stop-color"], Ct = ["id"], wt = ["stop-color"], $t = ["stop-color"], Lt = { key: 0 }, At = ["d", "fill"], zt = { key: 1 }, Xt = ["x", "y", "height", "width", "fill"], St = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Nt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Tt = { key: 2 }, Pt = ["x", "y", "fill", "font-size"], Gt = { key: 3 }, Dt = ["x", "y", "fill", "font-size"], It = {
15
15
  key: 5,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-CLWrZGbv.cjs"),me=require("./Title-Dm2GAV04.cjs"),K=require("./usePrinter-D_-LKcci.cjs"),pe=require("./DataTable-DFdNUfRe.cjs"),ge=require("./vue-ui-accordion-BCBC5X2n.cjs"),ke=require("./vue-ui-skeleton-CEeXInMi.cjs"),Q=require("./useNestedProp-bUwthiZ4.cjs"),ye=require("./PackageVersion-C2anu38L.cjs"),be=require("./PenAndPaper-DKSbeuss.cjs"),Ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),we=["id"],Ne={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},xe={key:2,style:"width:100%;background:transparent;padding-bottom:24px"},Be=["xmlns","viewBox"],$e=["id"],_e=["stop-color"],Pe=["stop-color"],Ee=["d","fill","stroke","stroke-width"],Se=["x","y","height","width","fill","stroke","stroke-width","onMouseenter"],Te=["x","y","font-size","fill"],Fe=["x","y","font-size","fill"],Le={key:4,class:"vue-data-ui-watermark"},Oe={key:6,ref:"source",dir:"auto"},ze=["innerHTML"],Ie={__name:"vue-ui-flow",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(ee,{expose:te}){const h=ee,{vue_ui_flow:oe}=s.useConfig(),B=e.computed(()=>!!h.dataset&&h.dataset.length);e.onMounted(()=>{O()});function O(){s.objectIsEmpty(h.dataset)&&s.error({componentName:"VueUiFlow",type:"dataset"})}const $=e.ref(s.createUid()),_=e.ref(null),z=e.ref(0),I=e.ref(0),y=e.ref(!1);function le(o){y.value=o,z.value+=1}const t=e.computed({get:()=>V(),set:o=>o});function V(){const o=Q.useNestedProp({userConfig:h.config,defaultConfig:oe});return o.theme?{...Q.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=V(),O(),I.value+=1},{deep:!0});const{isPrinting:A,isImaging:H,generatePdf:M,generateImage:D}=K.usePrinter({elementId:`flow_${$.value}`,fileName:t.value.style.chart.title.text||"vue-ui-flow"}),ne=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),P=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),q=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}),Y=e.computed(()=>t.value.style.chart.links.width),E=e.computed(()=>!h.dataset||!h.dataset.length?[]:h.dataset.map(o=>[o[0],o[1],s.checkNaN(o[2])])),G=e.computed(()=>{const o={};function n(r){o[r]||(o[r]={inflow:0,outflow:0})}E.value.forEach(([r,a,c])=>{n(r),n(a),o[r].outflow+=c,o[a].inflow+=c});let l=0;for(const r in o){const a=Math.max(o[r].inflow,o[r].outflow);l=Math.max(l,a)}return l});function ae(o){return o/G.value*100+t.value.style.chart.nodes.minHeight}function re(o){const n=t.value.style.chart.nodes.minHeight;return(o-n)/100*G.value}function se(o){const n={},l={};function r(u,i){n[u]||(n[u]={height:0,level:null,inflow:0,outflow:0}),n[u].level===null&&(n[u].level=i),l[i]||(l[i]=[]),l[i].includes(u)||l[i].push(u)}o.forEach(([u,i,v],k)=>{const p=n[u]?n[u].level:0,x=p+1;r(u,p),r(i,x),n[u].children||(n[u].children=[]),n[u].children.push({target:i,value:v}),n[u].outflow+=v,n[i].inflow+=v}),Object.keys(n).forEach((u,i)=>{n[u].color=P.value[i]||P.value[i%P.value.length]||s.palette[i]||s.palette[i%d.length]});for(const u in n)n[u].height=ae(Math.max(n[u].inflow,n[u].outflow)),n[u].name=u;const a={};for(const u in l){let i=0;l[u].forEach((v,k)=>{const p=n[v].height;a[v]={x:parseInt(u,10)*Y.value+t.value.style.chart.padding.left,y:i,absoluteY:i,height:p,i:k,color:n[v].color,value:re(p)},i+=p+q.value})}const c=[];for(const u in n){let i=a[u].absoluteY;n[u].children&&n[u].children.forEach(({target:v,value:k},p)=>{const x=a[v].y,F=a[u],L=a[v],X=s.checkNaN(i),R=s.checkNaN(i+k/n[u].outflow*F.height),Z=s.checkNaN(x),J=s.checkNaN(x+k/n[v].inflow*L.height),fe={id:s.createUid(),source:u,target:v,path:`M ${s.checkNaN(F.x)+s.checkNaN(g.value)} ${X} L ${s.checkNaN(F.x)+s.checkNaN(g.value)} ${R} L ${s.checkNaN(L.x)} ${J} L ${s.checkNaN(L.x)} ${Z} Z`,value:k,sourceColor:n[u].color,targetColor:n[v].color};c.push(fe),i+=R-X,a[v].y+=J-Z})}return{nodeCoordinates:a,links:c}}const f=e.computed(()=>{const o=se(h.dataset);return{nodes:Object.keys(o.nodeCoordinates).map((n,l)=>({...o.nodeCoordinates[n],name:n})),links:o.links}}),ue=e.computed(()=>ie(f.value.nodes));function ie(o){const n={};for(const r in o){const{x:a,height:c}=o[r];n[a]||(n[a]=0),n[a]+=c+q.value}return Math.max(...Object.values(n))}const S=e.computed(()=>{const{top:o,right:n,left:l,bottom:r}=t.value.style.chart.padding,a=E.value.length*Y.value;return{height:ue.value+o+r,width:n+Math.max(...f.value.nodes.map(c=>c.x))+g.value,left:l,top:o,right:a-n,p_top:o,p_bottom:r}});function ce(o){const n={},l={},r=new Set;return E.value.forEach(([a,c,u])=>{n[a]||(n[a]=[]),l[c]||(l[c]=[]),n[a].push(c),l[c].push(a)}),n[o]&&n[o].forEach(a=>r.add(a)),l[o]&&l[o].forEach(a=>r.add(a)),Array.from(r).concat(o)}const m=e.ref(null),C=e.ref(null);function de(o){m.value=ce(o.name),C.value=o.name}function ve(){m.value=null,C.value=null}const U=e.computed(()=>f.value.links.map(({source:o,target:n,sourceColor:l,targetColor:r,value:a})=>({source:o,target:n,sourceColor:l,targetColor:r,value:a})));function j(){e.nextTick(()=>{const o=U.value.map((r,a)=>[[r.source],[r.target],[r.value]]),n=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[t.value.table.columnNames.source],[t.value.table.columnNames.target],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(n);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-flow"})})}const w=e.computed(()=>{const o=[t.value.table.columnNames.source,t.value.table.columnNames.target,t.value.table.columnNames.value],n=U.value.map((a,c)=>[{color:a.sourceColor,name:a.source},{color:a.targetColor,name:a.target},s.dataLabel({p:t.value.style.chart.nodes.labels.prefix,v:a.value,s:t.value.style.chart.nodes.labels.suffix,r:t.value.style.chart.nodes.labels.rounding})]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.source,t.value.table.columnNames.target,t.value.table.columnNames.value],head:o,body:n,config:l}});function he(){return f.value}function W(){b.value.showTable=!b.value.showTable}const N=e.ref(!1);function T(){N.value=!N.value}return te({getData:he,generateCsv:j,generateImage:D,generatePdf:M,toggleTable:W,toggleAnnotator:T}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"flowChart",ref:_,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}`},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(be.PenAndPaper,{key:0,parent:_.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:N.value,onClose:T},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ne.value?(e.openBlock(),e.createElementBlock("div",Ne,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",xe,[(e.openBlock(),e.createBlock(me._sfc_main,{key:`title_${I.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.openBlock(),e.createBlock(K.UserOptions,{ref:"details",key:`user_option_${z.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(A),isImaging:e.unref(H),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:_.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:N.value,onToggleFullscreen:le,onGeneratePdf:e.unref(M),onGenerateCsv:j,onGenerateImage:e.unref(D),onToggleTable:W,onToggleAnnotator:T},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${S.value.width} ${S.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(ye._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.links,(l,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:l.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":l.sourceColor},null,8,_e),e.createElementVNode("stop",{offset:"100%","stop-color":l.targetColor},null,8,Pe)],8,$e))),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,Ee))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,r)=>(e.openBlock(),e.createElementBlock("rect",{class:"vue-ui-flow-node",x:l.x,y:e.unref(s.checkNaN)(l.absoluteY),height:e.unref(s.checkNaN)(l.height),width:g.value,fill:l.color,stroke:t.value.style.chart.nodes.stroke,"stroke-width":t.value.style.chart.nodes.strokeWidth,onMouseenter:a=>de(l),onMouseleave:n[0]||(n[0]=a=>ve()),style:e.normalizeStyle(`opacity:${m.value?m.value.includes(l.name)?1:.2:1}`)},null,44,Se))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:l.x+g.value/2,y:e.unref(s.checkNaN)(l.absoluteY+l.height/2-t.value.style.chart.nodes.labels.fontSize/4),"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:${m.value?m.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,Te))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:l.x+g.value/2,y:e.unref(s.checkNaN)(l.absoluteY+l.height/2+t.value.style.chart.nodes.labels.fontSize),"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:${m.value?m.value.includes(l.name)?1:0:1}`)},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.nodes.labels.formatter,l.value,e.unref(s.dataLabel)({p:t.value.style.chart.nodes.labels.prefix,v:l.value,s:t.value.style.chart.nodes.labels.suffix,r:t.value.style.chart.nodes.labels.rounding}),{datapoint:l,seriesIndex:r})),13,Fe))),256)),e.renderSlot(o.$slots,"svg",{svg:S.value},void 0,!0)],14,Be)),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Le,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(A)||e.unref(H)})),void 0,!0)])):e.createCommentVNode("",!0),B.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ke.default,{key:5,config:{type:"flow",style:{backgroundColor:t.value.style.chart.backgroundColor}}},null,8,["config"])),o.$slots.source?(e.openBlock(),e.createElementBlock("div",Oe,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),B.value?(e.openBlock(),e.createBlock(ge.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(pe.DataTable,{colNames:w.value.colNames,head:w.value.head,body:w.value.body,config:w.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:n[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,ze)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,we))}},Ve=Ce._export_sfc(Ie,[["__scopeId","data-v-49421974"]]);exports.default=Ve;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BtqOSPWK.cjs"),me=require("./Title-BJut0KCO.cjs"),K=require("./usePrinter-SEUTEAmF.cjs"),pe=require("./DataTable-D-c7laSt.cjs"),ge=require("./vue-ui-accordion-iiUNHeV-.cjs"),ke=require("./vue-ui-skeleton-CCo2ROV1.cjs"),Q=require("./useNestedProp-C7FKZW2F.cjs"),ye=require("./PackageVersion-C2JzxDlg.cjs"),be=require("./PenAndPaper-Bur5hR1K.cjs"),Ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),we=["id"],Ne={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},xe={key:2,style:"width:100%;background:transparent;padding-bottom:24px"},Be=["xmlns","viewBox"],$e=["id"],_e=["stop-color"],Pe=["stop-color"],Ee=["d","fill","stroke","stroke-width"],Se=["x","y","height","width","fill","stroke","stroke-width","onMouseenter"],Te=["x","y","font-size","fill"],Fe=["x","y","font-size","fill"],Le={key:4,class:"vue-data-ui-watermark"},Oe={key:6,ref:"source",dir:"auto"},ze=["innerHTML"],Ie={__name:"vue-ui-flow",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(ee,{expose:te}){const h=ee,{vue_ui_flow:oe}=s.useConfig(),B=e.computed(()=>!!h.dataset&&h.dataset.length);e.onMounted(()=>{O()});function O(){s.objectIsEmpty(h.dataset)&&s.error({componentName:"VueUiFlow",type:"dataset"})}const $=e.ref(s.createUid()),_=e.ref(null),z=e.ref(0),I=e.ref(0),y=e.ref(!1);function le(o){y.value=o,z.value+=1}const t=e.computed({get:()=>V(),set:o=>o});function V(){const o=Q.useNestedProp({userConfig:h.config,defaultConfig:oe});return o.theme?{...Q.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=V(),O(),I.value+=1},{deep:!0});const{isPrinting:A,isImaging:H,generatePdf:M,generateImage:D}=K.usePrinter({elementId:`flow_${$.value}`,fileName:t.value.style.chart.title.text||"vue-ui-flow"}),ne=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),P=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),q=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}),Y=e.computed(()=>t.value.style.chart.links.width),E=e.computed(()=>!h.dataset||!h.dataset.length?[]:h.dataset.map(o=>[o[0],o[1],s.checkNaN(o[2])])),G=e.computed(()=>{const o={};function n(r){o[r]||(o[r]={inflow:0,outflow:0})}E.value.forEach(([r,a,c])=>{n(r),n(a),o[r].outflow+=c,o[a].inflow+=c});let l=0;for(const r in o){const a=Math.max(o[r].inflow,o[r].outflow);l=Math.max(l,a)}return l});function ae(o){return o/G.value*100+t.value.style.chart.nodes.minHeight}function re(o){const n=t.value.style.chart.nodes.minHeight;return(o-n)/100*G.value}function se(o){const n={},l={};function r(u,i){n[u]||(n[u]={height:0,level:null,inflow:0,outflow:0}),n[u].level===null&&(n[u].level=i),l[i]||(l[i]=[]),l[i].includes(u)||l[i].push(u)}o.forEach(([u,i,v],k)=>{const p=n[u]?n[u].level:0,x=p+1;r(u,p),r(i,x),n[u].children||(n[u].children=[]),n[u].children.push({target:i,value:v}),n[u].outflow+=v,n[i].inflow+=v}),Object.keys(n).forEach((u,i)=>{n[u].color=P.value[i]||P.value[i%P.value.length]||s.palette[i]||s.palette[i%d.length]});for(const u in n)n[u].height=ae(Math.max(n[u].inflow,n[u].outflow)),n[u].name=u;const a={};for(const u in l){let i=0;l[u].forEach((v,k)=>{const p=n[v].height;a[v]={x:parseInt(u,10)*Y.value+t.value.style.chart.padding.left,y:i,absoluteY:i,height:p,i:k,color:n[v].color,value:re(p)},i+=p+q.value})}const c=[];for(const u in n){let i=a[u].absoluteY;n[u].children&&n[u].children.forEach(({target:v,value:k},p)=>{const x=a[v].y,F=a[u],L=a[v],X=s.checkNaN(i),R=s.checkNaN(i+k/n[u].outflow*F.height),Z=s.checkNaN(x),J=s.checkNaN(x+k/n[v].inflow*L.height),fe={id:s.createUid(),source:u,target:v,path:`M ${s.checkNaN(F.x)+s.checkNaN(g.value)} ${X} L ${s.checkNaN(F.x)+s.checkNaN(g.value)} ${R} L ${s.checkNaN(L.x)} ${J} L ${s.checkNaN(L.x)} ${Z} Z`,value:k,sourceColor:n[u].color,targetColor:n[v].color};c.push(fe),i+=R-X,a[v].y+=J-Z})}return{nodeCoordinates:a,links:c}}const f=e.computed(()=>{const o=se(h.dataset);return{nodes:Object.keys(o.nodeCoordinates).map((n,l)=>({...o.nodeCoordinates[n],name:n})),links:o.links}}),ue=e.computed(()=>ie(f.value.nodes));function ie(o){const n={};for(const r in o){const{x:a,height:c}=o[r];n[a]||(n[a]=0),n[a]+=c+q.value}return Math.max(...Object.values(n))}const S=e.computed(()=>{const{top:o,right:n,left:l,bottom:r}=t.value.style.chart.padding,a=E.value.length*Y.value;return{height:ue.value+o+r,width:n+Math.max(...f.value.nodes.map(c=>c.x))+g.value,left:l,top:o,right:a-n,p_top:o,p_bottom:r}});function ce(o){const n={},l={},r=new Set;return E.value.forEach(([a,c,u])=>{n[a]||(n[a]=[]),l[c]||(l[c]=[]),n[a].push(c),l[c].push(a)}),n[o]&&n[o].forEach(a=>r.add(a)),l[o]&&l[o].forEach(a=>r.add(a)),Array.from(r).concat(o)}const m=e.ref(null),C=e.ref(null);function de(o){m.value=ce(o.name),C.value=o.name}function ve(){m.value=null,C.value=null}const U=e.computed(()=>f.value.links.map(({source:o,target:n,sourceColor:l,targetColor:r,value:a})=>({source:o,target:n,sourceColor:l,targetColor:r,value:a})));function j(){e.nextTick(()=>{const o=U.value.map((r,a)=>[[r.source],[r.target],[r.value]]),n=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[t.value.table.columnNames.source],[t.value.table.columnNames.target],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(n);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-flow"})})}const w=e.computed(()=>{const o=[t.value.table.columnNames.source,t.value.table.columnNames.target,t.value.table.columnNames.value],n=U.value.map((a,c)=>[{color:a.sourceColor,name:a.source},{color:a.targetColor,name:a.target},s.dataLabel({p:t.value.style.chart.nodes.labels.prefix,v:a.value,s:t.value.style.chart.nodes.labels.suffix,r:t.value.style.chart.nodes.labels.rounding})]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.source,t.value.table.columnNames.target,t.value.table.columnNames.value],head:o,body:n,config:l}});function he(){return f.value}function W(){b.value.showTable=!b.value.showTable}const N=e.ref(!1);function T(){N.value=!N.value}return te({getData:he,generateCsv:j,generateImage:D,generatePdf:M,toggleTable:W,toggleAnnotator:T}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"flowChart",ref:_,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}`},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(be.PenAndPaper,{key:0,parent:_.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:N.value,onClose:T},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ne.value?(e.openBlock(),e.createElementBlock("div",Ne,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",xe,[(e.openBlock(),e.createBlock(me._sfc_main,{key:`title_${I.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.openBlock(),e.createBlock(K.UserOptions,{ref:"details",key:`user_option_${z.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(A),isImaging:e.unref(H),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:_.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:N.value,onToggleFullscreen:le,onGeneratePdf:e.unref(M),onGenerateCsv:j,onGenerateImage:e.unref(D),onToggleTable:W,onToggleAnnotator:T},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${S.value.width} ${S.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(ye._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.links,(l,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:l.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":l.sourceColor},null,8,_e),e.createElementVNode("stop",{offset:"100%","stop-color":l.targetColor},null,8,Pe)],8,$e))),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,Ee))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,r)=>(e.openBlock(),e.createElementBlock("rect",{class:"vue-ui-flow-node",x:l.x,y:e.unref(s.checkNaN)(l.absoluteY),height:e.unref(s.checkNaN)(l.height),width:g.value,fill:l.color,stroke:t.value.style.chart.nodes.stroke,"stroke-width":t.value.style.chart.nodes.strokeWidth,onMouseenter:a=>de(l),onMouseleave:n[0]||(n[0]=a=>ve()),style:e.normalizeStyle(`opacity:${m.value?m.value.includes(l.name)?1:.2:1}`)},null,44,Se))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:l.x+g.value/2,y:e.unref(s.checkNaN)(l.absoluteY+l.height/2-t.value.style.chart.nodes.labels.fontSize/4),"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:${m.value?m.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,Te))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:l.x+g.value/2,y:e.unref(s.checkNaN)(l.absoluteY+l.height/2+t.value.style.chart.nodes.labels.fontSize),"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:${m.value?m.value.includes(l.name)?1:0:1}`)},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.nodes.labels.formatter,l.value,e.unref(s.dataLabel)({p:t.value.style.chart.nodes.labels.prefix,v:l.value,s:t.value.style.chart.nodes.labels.suffix,r:t.value.style.chart.nodes.labels.rounding}),{datapoint:l,seriesIndex:r})),13,Fe))),256)),e.renderSlot(o.$slots,"svg",{svg:S.value},void 0,!0)],14,Be)),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Le,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(A)||e.unref(H)})),void 0,!0)])):e.createCommentVNode("",!0),B.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ke.default,{key:5,config:{type:"flow",style:{backgroundColor:t.value.style.chart.backgroundColor}}},null,8,["config"])),o.$slots.source?(e.openBlock(),e.createElementBlock("div",Oe,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),B.value?(e.openBlock(),e.createBlock(ge.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(pe.DataTable,{colNames:w.value.colNames,head:w.value.head,body:w.value.body,config:w.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:n[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,ze)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,we))}},Ve=Ce._export_sfc(Ie,[["__scopeId","data-v-49421974"]]);exports.default=Ve;
@@ -1,13 +1,13 @@
1
1
  import { computed as m, onMounted as Ee, ref as b, watch as Se, openBlock as u, createElementBlock as i, normalizeClass as he, normalizeStyle as N, createBlock as P, createCommentVNode as C, unref as c, createSlots as Me, withCtx as y, renderSlot as k, normalizeProps as X, guardReactiveProps as W, createVNode as me, createElementVNode as S, Fragment as F, renderList as O, toDisplayString as q, createTextVNode as ze, nextTick as Ye } from "vue";
2
- import { u as De, o as Ge, e as Be, c as ge, t as Ue, a as Ve, p as K, b as je, v as f, f as pe, X as Xe, F as be, K as We, i as qe, q as Ke, r as Re } from "./index-BICsqKzz.js";
3
- import { _ as Ze } from "./Title-DyD-mBPN.js";
4
- import { u as Je, U as Qe } from "./usePrinter-CLcxWv-4.js";
5
- import { D as et } from "./DataTable-D8fcY_sJ.js";
6
- import tt from "./vue-ui-accordion-m8rut1bP.js";
7
- import ot from "./vue-ui-skeleton-Dgzcn3FL.js";
8
- import { u as ye } from "./useNestedProp-BxrcwmTZ.js";
9
- import { _ as lt } from "./PackageVersion-mSsg8dpu.js";
10
- import { P as at } from "./PenAndPaper-Dk41ZrJ0.js";
2
+ import { u as De, o as Ge, e as Be, c as ge, t as Ue, a as Ve, p as K, b as je, v as f, f as pe, X as Xe, F as be, K as We, i as qe, q as Ke, r as Re } from "./index-CpjF4-PU.js";
3
+ import { _ as Ze } from "./Title-D_ljAKoY.js";
4
+ import { u as Je, U as Qe } from "./usePrinter-CZ0Ro0M3.js";
5
+ import { D as et } from "./DataTable-BmAybhqW.js";
6
+ import tt from "./vue-ui-accordion-D6Uwxwl0.js";
7
+ import ot from "./vue-ui-skeleton-5qiu2vOB.js";
8
+ import { u as ye } from "./useNestedProp-DiDiQc6z.js";
9
+ import { _ as lt } from "./PackageVersion-BRMtBck7.js";
10
+ import { P as at } from "./PenAndPaper-u9Nkiu0T.js";
11
11
  import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  const st = ["id"], rt = {
13
13
  key: 1,
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-BtqOSPWK.cjs"),H=require("./useNestedProp-C7FKZW2F.cjs"),X=require("./usePrinter-SEUTEAmF.cjs"),oe=require("./Title-BJut0KCO.cjs"),re=require("./PenAndPaper-Bur5hR1K.cjs"),ne=require("./DataTable-D-c7laSt.cjs"),se=require("./vue-ui-accordion-iiUNHeV-.cjs"),Y=require("./useResponsive-BJ7DTGpm.cjs"),ue=require("./vue-ui-skeleton-CCo2ROV1.cjs"),ie=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ce=["id"],ve=["xmlns","viewBox"],de=["id"],he=["stop-color"],me=["stop-color"],fe=["stop-color"],pe=["stroke","stroke-width"],be=["stroke","stroke-width"],ye=["x","y","font-size","fill","font-weight"],ge=["points","fill"],ke=["stroke","stroke-width","rx"],Ce=["x","y","font-size","fill","font-weight"],we=["x","y","font-size","fill","font-weight"],xe={key:5,class:"vue-data-ui-watermark"},Le=["innerHTML"],Be={__name:"vue-ui-funnel",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(W,{expose:J}){const d=W;e.useCssVars(l=>({"0dcc78a9":ae.value}));const{vue_ui_funnel:K}=r.useConfig(),b=e.computed(()=>!!d.dataset&&d.dataset.length);e.onMounted(S);function S(){if(r.objectIsEmpty(d.dataset)?r.error({componentName:"VueUiFunnel",type:"dataset"}):d.dataset.forEach((l,o)=>{r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(a=>{b.value=!1,r.error({componentName:"VueUiFunnel",type:"datasetSerieAttribute",property:a,index:o})})}),t.value.responsive){const l=Y.throttle(()=>{const{width:o,height:a}=Y.useResponsive({chart:g.value,title:t.value.style.chart.title.text?V.value:null,source:E.value,noTitle:P.value});c.value.height=a,c.value.width=o,m.value=R(),u.value.circles=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.circles.dataLabels.fontSize,threshold:10,fallback:10}),u.value.names=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.bars.dataLabels.name.fontSize,threshold:10,fallback:10}),u.value.values=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.bars.dataLabels.value.fontSize,threshold:10,fallback:10})});D.value=new ResizeObserver(l),D.value.observe(g.value.parentNode)}}const g=e.ref(null),k=e.ref(r.createUid()),z=e.ref(0),T=e.ref(0),A=e.ref(0),P=e.ref(null),E=e.ref(null),V=e.ref(null),D=e.ref(null),f=e.ref(!1);function F(){const l=H.useNestedProp({userConfig:d.config,defaultConfig:K});return l.theme?{...H.useNestedProp({userConfig:r.themes.vue_ui_funnel[l.theme]||d.config,defaultConfig:l})}:l}const t=e.computed({get:()=>F(),set:l=>l});e.watch(()=>d.config,l=>{t.value=F(),S(),T.value+=1,A.value+=1,u.value.circles=t.value.style.chart.circles.dataLabels.fontSize,u.value.names=t.value.style.chart.bars.dataLabels.name.fontSize,u.value.values=t.value.style.chart.bars.dataLabels.value.fontSize},{deep:!0});const{isPrinting:O,isImaging:I,generatePdf:q,generateImage:M}=X.usePrinter({elementId:`funnel_${k.value}`,fileName:t.value.style.chart.title.text||"vue-ui-funnel"}),Q=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),L=e.ref({showTable:t.value.table.show}),u=e.ref({circles:t.value.style.chart.circles.dataLabels.fontSize,names:t.value.style.chart.bars.dataLabels.name.fontSize,values:t.value.style.chart.bars.dataLabels.value.fontSize}),c=e.computed({get:()=>({height:t.value.style.chart.height,width:t.value.style.chart.width}),set:l=>l}),h=e.computed(()=>b.value?d.dataset.map((l,o)=>({...l,color:l.color?r.convertColorToHex(l.color):r.lightenHexColor(t.value.style.chart.bars.defaultColor,o/d.dataset.length)})):[]);setTimeout(()=>{f.value=!0},h.value.length*150);function R(){const l=t.value.style.chart.padding.left,o=t.value.style.chart.padding.top;return{left:l,top:o,right:c.value.width-t.value.style.chart.padding.right,bottom:c.value.height-t.value.style.chart.padding.bottom,width:c.value.width-l-t.value.style.chart.padding.right,height:c.value.height-o-t.value.style.chart.padding.bottom}}const m=e.ref(R()),y=e.computed(()=>m.value.height/d.dataset.length),p=e.computed(()=>y.value*t.value.style.chart.bars.gapRatio),G=e.computed(()=>m.value.width*t.value.style.chart.barCircleSpacingRatio),n=e.computed(()=>h.value.map((l,o)=>{const a=y.value-p.value,s=m.value.top+p.value/2*o+(y.value-p.value/2)*o+p.value/2,v=l.value/h.value[0].value,i=(m.value.width-a-G.value)*(l.value/h.value[0].value);return{...l,cx:m.value.left+a/2,cy:s+a/2,datapointIndex:o,fill:l.color,height:Math.max(a,0),proportion:v,r:Math.max(a/2,0),width:Math.max(i,0),x:m.value.left+a+G.value,y:s}})),Z=e.computed(()=>{const l=n.value.map(o=>`${o.x+o.width},${o.y+(y.value-p.value)/2}`);return`${n.value[0].x},${n.value[0].y+(y.value-p.value)/2} ${l.toString()} ${n.value.at(-1).x},${n.value.at(-1).y+(y.value-p.value)/2}`}),ee=e.computed(()=>({x1:n.value[0].cx,y1:n.value[0].cy,x2:n.value.at(-1).cx,y2:n.value.at(-1).cy})),C=e.ref(!1);function te(l){C.value=l,z.value+=1}const ae=e.computed(()=>`${h.value.length*150}ms`),B=e.ref(!1);function $(){B.value=!B.value}function U(){L.value.showTable=!L.value.showTable}const w=e.computed(()=>{const l=h.value.map(a=>({name:a.name,color:a.color})),o=h.value.map(a=>a.value);return{head:l,body:o}}),_=e.computed(()=>{const l=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],o=w.value.head.map((v,i)=>{const x=r.applyDataLabel(t.value.style.chart.bars.dataLabels.value.formatter,w.value.body[i],r.dataLabel({p:t.value.style.chart.bars.dataLabels.value.prefix,v:w.value.body[i],s:t.value.style.chart.bars.dataLabels.value.suffix,r:t.value.table.td.roundingValue}),{datapoint:n.value[i]}),N=r.applyDataLabel(t.value.style.chart.circles.dataLabels.formatter,n.value[i].proportion*100,r.dataLabel({v:n.value[i].proportion*100,s:"%",r:t.value.table.td.roundingPercentage}),{datapoint:n.value[i]});return[{color:v.color,name:v.name},x,N]}),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:l,body:o,config:a}});function j(){e.nextTick(()=>{const l=w.value.head.map((s,v)=>[[s.name],[w.value.body[v]],[n.value[v].proportion*100]]),o=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[t.value.table.columnNames.series],[t.value.table.columnNames.value],["%"]]].concat(l),a=r.createCsvContent(o);r.downloadCsv({csvContent:a,title:t.value.style.chart.title.text||"vue-ui-funnel"})})}function le(){return h.value}return J({getData:le,generatePdf:q,generateCsv:j,generateImage:M,toggleTable:U,toggleAnnotator:$}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"funnelChart",ref:g,class:e.normalizeClass(`vue-ui-funnel ${C.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height:100%;":""} text-align:center;background:${t.value.style.chart.backgroundColor}`),id:`funnel_${k.value}`},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(re.PenAndPaper,{key:0,parent:g.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:B.value,onClose:$},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),Q.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:P,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:V,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(oe._sfc_main,{key:`title_${T.value}`,config:{title:{cy:"funnel-div-title",...t.value.style.chart.title},subtitle:{cy:"funnel-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&b.value?(e.openBlock(),e.createBlock(X.UserOptions,{ref:"details",key:`user_option_${z.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(O),isImaging:e.unref(I),uid:k.value,hasTooltip:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:!1,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:C.value,chartElement:g.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleAnnotator:$,onToggleFullscreen:te,onGeneratePdf:e.unref(q),onGenerateImage:e.unref(M),onToggleTable:U,onGenerateCsv:j},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:s})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:s})),void 0,!0)]),key:"4"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:s})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:s})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","chartElement","position","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":C.value,"vue-data-ui-fulscreen--off":!C.value}),viewBox:`0 0 ${c.value.width<=0?10:c.value.width} ${c.value.height<=0?10:c.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`funnel_area_${k.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.chart.backgroundColor,"stop-opacity":0},null,8,he),e.createElementVNode("stop",{offset:"20%","stop-color":t.value.style.chart.area.color},null,8,me),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.area.color},null,8,fe)],8,de)]),t.value.style.chart.circleLinks.show?(e.openBlock(),e.createElementBlock("line",e.mergeProps({key:0},ee.value,{stroke:t.value.style.chart.circleLinks.color,"stroke-width":12*t.value.style.chart.circleLinks.widthRatio,"stroke-linecap":"round",class:{animated:t.value.useCssAnimation},style:{strokeDasharray:t.value.useCssAnimation?m.value.height:0,strokeDashoffset:t.value.useCssAnimation?m.value.height:0}}),null,16,pe)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,({cx:a,cy:s,r:v,fill:i},x)=>(e.openBlock(),e.createElementBlock("circle",e.mergeProps({cx:a,cy:s,r:v,fill:i},{stroke:t.value.style.chart.circles.stroke,"stroke-width":t.value.style.chart.circles.strokeWidth,class:{animated:t.value.useCssAnimation&&!f.value},style:{animationDelay:`${150*x}ms`}}),null,16,be))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(a,s)=>(e.openBlock(),e.createElementBlock("text",{x:a.cx,y:a.cy+u.value.circles/3+t.value.style.chart.circles.dataLabels.offsetY,"text-anchor":"middle","font-size":u.value.circles,fill:t.value.style.chart.circles.dataLabels.adaptColorToBackground?e.unref(r.adaptColorToBackground)(a.color):t.value.style.chart.circles.dataLabels.color,"font-weight":t.value.style.chart.circles.dataLabels.bold?"bold":"normal",class:e.normalizeClass({animated:t.value.useCssAnimation&&!f.value}),style:e.normalizeStyle({animationDelay:`${150*s}ms`})},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.circles.dataLabels.formatter,a.proportion*100,e.unref(r.dataLabel)({v:a.proportion*100,s:"%",r:t.value.style.chart.circles.dataLabels.rounding}),{datapoint:a})),15,ye))),256)),t.value.style.chart.area.show?(e.openBlock(),e.createElementBlock("polygon",{key:1,points:Z.value,fill:`url(#funnel_area_${k.value})`,class:e.normalizeClass({animated:t.value.useCssAnimation&&!f.value}),style:e.normalizeStyle({transition:t.value.useCssAnimation?`all ${150*h.value.length}ms ease-in`:"none"})},null,14,ge)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,({x:a,y:s,height:v,width:i,fill:x},N)=>(e.openBlock(),e.createElementBlock("rect",e.mergeProps({x:a,y:s,height:v,width:i,fill:x},{stroke:t.value.style.chart.bars.stroke,"stroke-width":t.value.style.chart.bars.strokeWidth,rx:t.value.style.chart.bars.borderRadius,class:{animated:t.value.useCssAnimation&&!f.value},style:{animationDelay:`${150*N}ms`}}),null,16,ke))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(a,s)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("text",{x:a.x+a.width+t.value.style.chart.bars.dataLabels.name.offsetX+12,y:a.cy-u.value.names/2+t.value.style.chart.bars.dataLabels.name.offsetY,"text-anchor":"start","font-size":u.value.names,fill:t.value.style.chart.bars.dataLabels.name.color,"font-weight":t.value.style.chart.bars.dataLabels.name.bold?"bold":"normal",class:e.normalizeClass({animated:t.value.useCssAnimation&&!f.value}),style:e.normalizeStyle({animationDelay:`${150*s}ms`})},e.toDisplayString(a.name),15,Ce),e.createElementVNode("text",{x:a.x+a.width+t.value.style.chart.bars.dataLabels.value.offsetX+12,y:a.cy+u.value.values+t.value.style.chart.bars.dataLabels.value.offsetY,"text-anchor":"start","font-size":u.value.values,fill:t.value.style.chart.bars.dataLabels.value.color,"font-weight":t.value.style.chart.bars.dataLabels.value.bold?"bold":"normal",class:e.normalizeClass({animated:t.value.useCssAnimation&&!f.value}),style:e.normalizeStyle({animationDelay:`${150*s}ms`})},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.bars.dataLabels.value.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.bars.dataLabels.value.prefix,v:a.value,s:t.value.style.chart.bars.dataLabels.value.suffix,r:t.value.style.chart.bars.dataLabels.value.rounding}),{datapoint:a})),15,we)]))),256)),e.renderSlot(l.$slots,"svg",{svg:c.value},void 0,!0)],14,ve)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",xe,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(O)||e.unref(I)})),void 0,!0)])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ue.default,{key:6,config:{type:"verticalBar",style:{backgroundColor:t.value.style.chart.backgroundColor,verticalBar:{axis:{color:"#CCCCCC"},color:"#CCCCCC"}}}},null,8,["config"])),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:E,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createBlock(se.default,{key:8,hideDetails:"",config:{open:L.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ne.DataTable,{key:`table_${A.value}`,colNames:_.value.colNames,head:_.value.head,body:_.value.body,config:_.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:o[0]||(o[0]=a=>L.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a,style:{display:"flex","align-items":"center"}},null,8,Le)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a.name?a.name:a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,ce))}},_e=ie._export_sfc(Be,[["__scopeId","data-v-51a14bf0"]]);exports.default=_e;