vue-data-ui 2.4.85 → 2.4.87

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 (170) hide show
  1. package/dist/{Arrow-Ajt3NMEa.cjs → Arrow-B6C-c2DT.cjs} +1 -1
  2. package/dist/{Arrow-Qayb_B0s.js → Arrow-C8PrFeHS.js} +1 -1
  3. package/dist/{BaseIcon-BVrsMbvi.cjs → BaseIcon-CdOKZmHr.cjs} +1 -1
  4. package/dist/{BaseIcon-B8U62FEj.js → BaseIcon-plElWres.js} +1 -1
  5. package/dist/{DataTable-1PQD-SFb.cjs → DataTable-BmKl4AAb.cjs} +1 -1
  6. package/dist/{DataTable-C0tCPQ9i.js → DataTable-CKke7C6w.js} +2 -2
  7. package/dist/{Legend-BJ2Wbqut.cjs → Legend-CY6wjCYY.cjs} +1 -1
  8. package/dist/{Legend-BTpe6qQB.js → Legend-DMeEvZOT.js} +2 -2
  9. package/dist/{PackageVersion-BjfedMsH.cjs → PackageVersion-DvDNPRrJ.cjs} +1 -1
  10. package/dist/{PackageVersion-CENy3Lm2.js → PackageVersion-Rh3rgo6A.js} +1 -1
  11. package/dist/{PenAndPaper-nqRtAh6J.cjs → PenAndPaper--xHLJRME.cjs} +1 -1
  12. package/dist/{PenAndPaper-Dr7ndoP_.js → PenAndPaper-DqVsdeLc.js} +3 -3
  13. package/dist/{Shape-zFv85Gc2.js → Shape-CL3HglYL.js} +1 -1
  14. package/dist/{Shape-Boa32JEn.cjs → Shape-DEwnzwRB.cjs} +1 -1
  15. package/dist/{Slicer-D6QLMg5N.cjs → Slicer-CnNbe-dl.cjs} +1 -1
  16. package/dist/{Slicer-BUYuk07t.js → Slicer-ZryQKOl5.js} +2 -2
  17. package/dist/{Title-CaET2xuF.js → Title-BU5Aq1_x.js} +1 -1
  18. package/dist/{Title-DJUxOiaO.cjs → Title-C10173bN.cjs} +1 -1
  19. package/dist/{Tooltip-C5QuW94e.cjs → Tooltip-CL7aSMgq.cjs} +1 -1
  20. package/dist/{Tooltip-Bkc4233T.js → Tooltip-Dm-obTbx.js} +1 -1
  21. package/dist/{index-COIn1phv.cjs → index-1HOIfTy2.cjs} +1 -1
  22. package/dist/{index-B7nCQFK0.js → index-BG5J_ybN.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{useNestedProp-CbMuGGl3.cjs → useNestedProp-BFNnjpX-.cjs} +1 -1
  25. package/dist/{useNestedProp-C9rlBRTT.js → useNestedProp-BN1ZmAKT.js} +1 -1
  26. package/dist/{usePrinter-CQMn1b4E.js → usePrinter-CWeJt84b.js} +1 -1
  27. package/dist/{usePrinter-CXXfgFFN.cjs → usePrinter-i-j4CdEi.cjs} +1 -1
  28. package/dist/{vue-data-ui-Bu_VIHgr.cjs → vue-data-ui-549nX1yu.cjs} +1 -1
  29. package/dist/{vue-data-ui-BnsKGbqb.js → vue-data-ui-B5u9V9lC.js} +60 -60
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +1 -1
  32. package/dist/{vue-ui-3d-bar-V5FBS9MA.js → vue-ui-3d-bar-DBtozgXL.js} +38 -38
  33. package/dist/{vue-ui-3d-bar-D39F2dKF.cjs → vue-ui-3d-bar-J7LkJgTZ.cjs} +11 -11
  34. package/dist/{vue-ui-accordion-CGlnNTr8.cjs → vue-ui-accordion-Cd6GaDwU.cjs} +1 -1
  35. package/dist/{vue-ui-accordion-B8ptB5BQ.js → vue-ui-accordion-JBOceVq2.js} +3 -3
  36. package/dist/{vue-ui-age-pyramid-Bjp1R8Ku.js → vue-ui-age-pyramid-BIkYjL8e.js} +29 -29
  37. package/dist/vue-ui-age-pyramid-DeryBRqg.cjs +1 -0
  38. package/dist/{vue-ui-annotator-V9m5fTGG.js → vue-ui-annotator-Bt90Iec6.js} +1 -1
  39. package/dist/{vue-ui-annotator-BoWZZRPg.cjs → vue-ui-annotator-Dw8cVACs.cjs} +1 -1
  40. package/dist/{vue-ui-bullet-DLIxlhFF.cjs → vue-ui-bullet-BMAYQESQ.cjs} +1 -1
  41. package/dist/{vue-ui-bullet-Bqvb5PV-.js → vue-ui-bullet-DzosZUYl.js} +8 -8
  42. package/dist/{vue-ui-candlestick-D4BD8LyJ.cjs → vue-ui-candlestick-BaLnAKB9.cjs} +2 -2
  43. package/dist/{vue-ui-candlestick-DHCtmsh3.js → vue-ui-candlestick-dTATEFOU.js} +48 -48
  44. package/dist/{vue-ui-carousel-table-VIuoh2QI.cjs → vue-ui-carousel-table-CWNI7Ri5.cjs} +1 -1
  45. package/dist/{vue-ui-carousel-table-Cn2RJkSb.js → vue-ui-carousel-table-rMcj65Bo.js} +4 -4
  46. package/dist/{vue-ui-chestnut-C5qUO1uK.js → vue-ui-chestnut-B_NLFSaY.js} +29 -29
  47. package/dist/{vue-ui-chestnut-ClG9HZoC.cjs → vue-ui-chestnut-DjOEVM3w.cjs} +2 -2
  48. package/dist/{vue-ui-cursor-Bo8et-dD.cjs → vue-ui-cursor-CBUwAZd1.cjs} +1 -1
  49. package/dist/{vue-ui-cursor-eJau3iyr.js → vue-ui-cursor-CTvVj3YO.js} +2 -2
  50. package/dist/{vue-ui-dashboard-DnaH9bCw.js → vue-ui-dashboard-CG9J3DLT.js} +2 -2
  51. package/dist/{vue-ui-dashboard-WJqGQ8iR.cjs → vue-ui-dashboard-DcfhPFVi.cjs} +1 -1
  52. package/dist/{vue-ui-digits-qIckO4-r.cjs → vue-ui-digits-B8lUQcKK.cjs} +1 -1
  53. package/dist/{vue-ui-digits-Cqjts2eq.js → vue-ui-digits-CF6qbsmO.js} +2 -2
  54. package/dist/{vue-ui-donut-pprcnbIw.js → vue-ui-donut-Bbkz0M-R.js} +76 -76
  55. package/dist/vue-ui-donut-CzmOCuxn.cjs +1 -0
  56. package/dist/{vue-ui-donut-evolution-EzYvP11F.js → vue-ui-donut-evolution-BkE-sAyn.js} +66 -66
  57. package/dist/vue-ui-donut-evolution-CjFUAKXU.cjs +1 -0
  58. package/dist/vue-ui-dumbbell-BiHzKPGP.cjs +9 -0
  59. package/dist/{vue-ui-dumbbell-DaxcxmnU.js → vue-ui-dumbbell-D8JuHhzi.js} +28 -28
  60. package/dist/vue-ui-flow-CR1Qo5Rt.cjs +1 -0
  61. package/dist/{vue-ui-flow-DbRgaKBu.js → vue-ui-flow-Cie8iHDK.js} +31 -31
  62. package/dist/vue-ui-funnel-B8uRuzDx.cjs +1 -0
  63. package/dist/{vue-ui-funnel-B2del8KB.js → vue-ui-funnel-tW6PGqcE.js} +32 -32
  64. package/dist/vue-ui-galaxy-BfbYEvnO.cjs +1 -0
  65. package/dist/{vue-ui-galaxy-pUYeASJf.js → vue-ui-galaxy-p4j0h3ZX.js} +81 -81
  66. package/dist/{vue-ui-gauge-DpsXpEaW.js → vue-ui-gauge-CtVmazzP.js} +7 -7
  67. package/dist/{vue-ui-gauge-BOXoAgWk.cjs → vue-ui-gauge-DnTOvr4T.cjs} +1 -1
  68. package/dist/{vue-ui-gizmo-Bq9uAmqd.cjs → vue-ui-gizmo-BdlVxVqD.cjs} +1 -1
  69. package/dist/{vue-ui-gizmo-BpYrhkon.js → vue-ui-gizmo-wjZJgWPe.js} +3 -3
  70. package/dist/{vue-ui-heatmap-Cz6_9Veh.js → vue-ui-heatmap-DJXLmzGL.js} +63 -63
  71. package/dist/vue-ui-heatmap-Gd3nkwzC.cjs +1 -0
  72. package/dist/vue-ui-history-plot-CevSrT7E.cjs +1 -0
  73. package/dist/{vue-ui-history-plot-DAotUjSF.js → vue-ui-history-plot-DJQck-9N.js} +69 -69
  74. package/dist/{vue-ui-kpi-D6mp6EQ2.cjs → vue-ui-kpi-D8NVXEfO.cjs} +1 -1
  75. package/dist/{vue-ui-kpi-Ch2p7m-i.js → vue-ui-kpi-MK6JH8yi.js} +3 -3
  76. package/dist/{vue-ui-mini-loader-E13lmwfO.js → vue-ui-mini-loader-UiC0NYsO.js} +2 -2
  77. package/dist/{vue-ui-mini-loader-CO-KGVlC.cjs → vue-ui-mini-loader-a8JZaxIy.cjs} +1 -1
  78. package/dist/vue-ui-molecule-CXgKUNCL.cjs +1 -0
  79. package/dist/{vue-ui-molecule-C69K6EPO.js → vue-ui-molecule-Cz9zZQ95.js} +155 -155
  80. package/dist/vue-ui-mood-radar-B-PSds5c.cjs +1 -0
  81. package/dist/{vue-ui-mood-radar-DDtky572.js → vue-ui-mood-radar-BMMCFkEk.js} +33 -33
  82. package/dist/{vue-ui-nested-donuts-DMCd6DqT.cjs → vue-ui-nested-donuts-Cdx6UQwF.cjs} +5 -5
  83. package/dist/{vue-ui-nested-donuts-AYPYIRrE.js → vue-ui-nested-donuts-Da9c-H0Y.js} +147 -147
  84. package/dist/{vue-ui-onion-Bsa88sKK.js → vue-ui-onion-D1wExDGP.js} +44 -44
  85. package/dist/{vue-ui-onion-BedLvfFe.cjs → vue-ui-onion-HAS4P8nS.cjs} +2 -2
  86. package/dist/{vue-ui-parallel-coordinate-plot-KCEb4iRs.js → vue-ui-parallel-coordinate-plot-BH0xKZAE.js} +79 -79
  87. package/dist/{vue-ui-parallel-coordinate-plot-CSOMIABF.cjs → vue-ui-parallel-coordinate-plot-BYeyzJnE.cjs} +3 -3
  88. package/dist/{vue-ui-quadrant-Bd_88Eht.js → vue-ui-quadrant-BDkbMaNf.js} +108 -108
  89. package/dist/vue-ui-quadrant-DbWSZWfP.cjs +1 -0
  90. package/dist/{vue-ui-quick-chart-CXAYKYHa.js → vue-ui-quick-chart-D3b2YwMY.js} +212 -212
  91. package/dist/vue-ui-quick-chart-qnbmA75J.cjs +15 -0
  92. package/dist/{vue-ui-radar-De397oTB.js → vue-ui-radar--Bt67L0i.js} +107 -107
  93. package/dist/vue-ui-radar-DSZpmaIZ.cjs +1 -0
  94. package/dist/{vue-ui-rating-wK3_ZWE5.js → vue-ui-rating-Bgr7tvIq.js} +2 -2
  95. package/dist/{vue-ui-rating-BjiMVoyX.cjs → vue-ui-rating-Z_ANkBeZ.cjs} +1 -1
  96. package/dist/{vue-ui-relation-circle-BEGyr1h-.cjs → vue-ui-relation-circle-3cgv8yC-.cjs} +1 -1
  97. package/dist/{vue-ui-relation-circle-BxlK8MVs.js → vue-ui-relation-circle-B22VP_p1.js} +7 -7
  98. package/dist/{vue-ui-rings-BcNMBXxq.cjs → vue-ui-rings-DZEwaUv5.cjs} +2 -2
  99. package/dist/{vue-ui-rings-BXrtMSML.js → vue-ui-rings-DgzfAEvJ.js} +66 -66
  100. package/dist/{vue-ui-scatter-BWZfLJ9P.js → vue-ui-scatter-BwlbShJE.js} +85 -85
  101. package/dist/vue-ui-scatter-CSI15Dgp.cjs +1 -0
  102. package/dist/{vue-ui-screenshot-BJgOwFMW.cjs → vue-ui-screenshot-DK2xyINC.cjs} +1 -1
  103. package/dist/{vue-ui-screenshot-hw4PC9Uu.js → vue-ui-screenshot-Dk0TqQpi.js} +1 -1
  104. package/dist/{vue-ui-skeleton-BIqMxXV7.cjs → vue-ui-skeleton-CLiDRcQX.cjs} +1 -1
  105. package/dist/{vue-ui-skeleton-D66ZIUln.js → vue-ui-skeleton-c211TxZ8.js} +3 -3
  106. package/dist/{vue-ui-smiley-Duy5Xo-j.cjs → vue-ui-smiley-Kr6bQ-7L.cjs} +1 -1
  107. package/dist/{vue-ui-smiley-DWPYdcDB.js → vue-ui-smiley-hIooew3m.js} +2 -2
  108. package/dist/{vue-ui-spark-trend-Ce4IaqPz.js → vue-ui-spark-trend-CgpDYM8f.js} +5 -5
  109. package/dist/{vue-ui-spark-trend-DP5foaNi.cjs → vue-ui-spark-trend-SVqMwS1X.cjs} +1 -1
  110. package/dist/{vue-ui-sparkbar-Bbns4V16.cjs → vue-ui-sparkbar-DY1J0X8K.cjs} +1 -1
  111. package/dist/{vue-ui-sparkbar-Fa-Kc9Fr.js → vue-ui-sparkbar-D_HgtfBM.js} +4 -4
  112. package/dist/{vue-ui-sparkgauge-BrLrvNLH.cjs → vue-ui-sparkgauge-C4p0nAHp.cjs} +1 -1
  113. package/dist/{vue-ui-sparkgauge-DUWcJ7cM.js → vue-ui-sparkgauge-jO5jKAyz.js} +4 -4
  114. package/dist/{vue-ui-sparkhistogram-PgC-c-5a.js → vue-ui-sparkhistogram-BpQfz14e.js} +5 -5
  115. package/dist/{vue-ui-sparkhistogram-B0rhs_UN.cjs → vue-ui-sparkhistogram-gSNvSVcP.cjs} +1 -1
  116. package/dist/{vue-ui-sparkline-BqNlrKjb.js → vue-ui-sparkline-BTgaJjMj.js} +4 -4
  117. package/dist/{vue-ui-sparkline-c5Awoj8J.cjs → vue-ui-sparkline-D53BDGCi.cjs} +1 -1
  118. package/dist/{vue-ui-sparkstackbar-DyJIUulr.js → vue-ui-sparkstackbar-COm1EqFN.js} +5 -5
  119. package/dist/{vue-ui-sparkstackbar-BmYIcpVZ.cjs → vue-ui-sparkstackbar-DcEhBuvP.cjs} +1 -1
  120. package/dist/{vue-ui-stackbar-BebRtOYL.js → vue-ui-stackbar-BHyysJyj.js} +51 -51
  121. package/dist/{vue-ui-stackbar-DJ9NH_l1.cjs → vue-ui-stackbar-D4-vrvMz.cjs} +3 -3
  122. package/dist/{vue-ui-strip-plot-BGHj1BHd.js → vue-ui-strip-plot-BOLWDlTl.js} +118 -118
  123. package/dist/vue-ui-strip-plot-iUjpocRA.cjs +1 -0
  124. package/dist/{vue-ui-table-BFdGppRF.cjs → vue-ui-table-DG3-RAEv.cjs} +1 -1
  125. package/dist/{vue-ui-table-ClPMKcMn.js → vue-ui-table-XThR7HtD.js} +1 -1
  126. package/dist/{vue-ui-table-heatmap-B7wTjM-H.cjs → vue-ui-table-heatmap-B82Dmfv2.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-DVQtPt-M.js → vue-ui-table-heatmap-DxWQ3cdf.js} +4 -4
  128. package/dist/{vue-ui-table-sparkline-DjxKXWQm.js → vue-ui-table-sparkline-BIQAc-eX.js} +5 -5
  129. package/dist/{vue-ui-table-sparkline-DaKODjfM.cjs → vue-ui-table-sparkline-C3JrSwmi.cjs} +1 -1
  130. package/dist/{vue-ui-thermometer-CV_9k37V.js → vue-ui-thermometer-Ci0OBAEN.js} +7 -7
  131. package/dist/{vue-ui-thermometer-DE9r0emf.cjs → vue-ui-thermometer-t1cul6jD.cjs} +1 -1
  132. package/dist/{vue-ui-timer-Ct-KYWSX.cjs → vue-ui-timer-BLqulQx5.cjs} +1 -1
  133. package/dist/{vue-ui-timer-2w5Ayq7G.js → vue-ui-timer-CwJoQApu.js} +5 -5
  134. package/dist/{vue-ui-tiremarks-BJnh0GBj.js → vue-ui-tiremarks-CFVl_w7d.js} +7 -7
  135. package/dist/{vue-ui-tiremarks-Cf04zARl.cjs → vue-ui-tiremarks-_d9WOe-N.cjs} +1 -1
  136. package/dist/vue-ui-treemap-BaQFfbqL.cjs +1 -0
  137. package/dist/{vue-ui-treemap-BD546LBi.js → vue-ui-treemap-BtjPxOzu.js} +108 -108
  138. package/dist/{vue-ui-vertical-bar-D3QKHHnS.cjs → vue-ui-vertical-bar-BcjM9qCI.cjs} +3 -3
  139. package/dist/{vue-ui-vertical-bar-E5CTb1Bd.js → vue-ui-vertical-bar-xnQDjCLE.js} +54 -54
  140. package/dist/{vue-ui-waffle-BAJIMbZK.js → vue-ui-waffle-BMFtG4mh.js} +99 -99
  141. package/dist/vue-ui-waffle-DGarEDP5.cjs +1 -0
  142. package/dist/{vue-ui-wheel-CPPLUSFq.js → vue-ui-wheel-DIr8JQt0.js} +7 -7
  143. package/dist/{vue-ui-wheel-Dy_B7BTG.cjs → vue-ui-wheel-DLFWUmdm.cjs} +1 -1
  144. package/dist/vue-ui-word-cloud-CDQ4rkP-.cjs +1 -0
  145. package/dist/{vue-ui-word-cloud-BVZcDY7m.js → vue-ui-word-cloud-CrSkUMkN.js} +81 -81
  146. package/dist/{vue-ui-xy-tB-6IP2y.js → vue-ui-xy-DPT3SYuU.js} +815 -818
  147. package/dist/vue-ui-xy-DfnDyl8o.cjs +3 -0
  148. package/dist/{vue-ui-xy-canvas-DFUfTZwz.js → vue-ui-xy-canvas-C3iMSkvP.js} +35 -35
  149. package/dist/{vue-ui-xy-canvas-BSZTrqci.cjs → vue-ui-xy-canvas-DEyhDtC-.cjs} +3 -3
  150. package/package.json +1 -1
  151. package/dist/vue-ui-age-pyramid-BdseHKUc.cjs +0 -1
  152. package/dist/vue-ui-donut-BP7yj2DU.cjs +0 -1
  153. package/dist/vue-ui-donut-evolution-Cz8uFJp8.cjs +0 -1
  154. package/dist/vue-ui-dumbbell-CYqHCr2S.cjs +0 -9
  155. package/dist/vue-ui-flow-HeRCplGL.cjs +0 -1
  156. package/dist/vue-ui-funnel-DxniWNkD.cjs +0 -1
  157. package/dist/vue-ui-galaxy-BDA64dud.cjs +0 -1
  158. package/dist/vue-ui-heatmap-CbKgGLtN.cjs +0 -1
  159. package/dist/vue-ui-history-plot-BoMdvItE.cjs +0 -1
  160. package/dist/vue-ui-molecule-CeoDnPXB.cjs +0 -1
  161. package/dist/vue-ui-mood-radar-BwOqQUuT.cjs +0 -1
  162. package/dist/vue-ui-quadrant-BXQVOvpY.cjs +0 -1
  163. package/dist/vue-ui-quick-chart-dLItYwM_.cjs +0 -15
  164. package/dist/vue-ui-radar-BuNtocmn.cjs +0 -1
  165. package/dist/vue-ui-scatter-DTy3yPVu.cjs +0 -1
  166. package/dist/vue-ui-strip-plot-f7vejZht.cjs +0 -1
  167. package/dist/vue-ui-treemap-D0vi4bv4.cjs +0 -1
  168. package/dist/vue-ui-waffle-BL0e3Yeq.cjs +0 -1
  169. package/dist/vue-ui-word-cloud-BPoAoeWZ.cjs +0 -1
  170. package/dist/vue-ui-xy-D4hRtHAi.cjs +0 -3
@@ -1,15 +1,15 @@
1
1
  import { computed as m, ref as v, watch as ye, onMounted as be, onBeforeUnmount as Oe, openBlock as o, createElementBlock as r, normalizeClass as fe, normalizeStyle as F, unref as u, createBlock as L, createCommentVNode as h, createSlots as Ge, withCtx as k, renderSlot as _, normalizeProps as U, guardReactiveProps as R, createVNode as Me, Fragment as C, renderList as $, createElementVNode as i, toDisplayString as A, createTextVNode as ge, nextTick as De } from "vue";
2
- import { u as Ie, c as pe, t as Fe, o as Ve, e as me, g as Ee, v as _e, D as He, f as z, X as ke, i as B, l as xe, h as we, q as We, r as Ue } from "./index-B7nCQFK0.js";
2
+ import { u as Ie, c as pe, t as Fe, o as Ve, e as me, g as Ee, v as _e, D as He, f as z, X as ke, i as B, l as xe, h as we, q as We, r as Ue } from "./index-BG5J_ybN.js";
3
3
  import { t as Re, u as Be } from "./useResponsive-CoxXLe23.js";
4
- import { _ as je } from "./Title-CaET2xuF.js";
5
- import { u as qe, U as Ye } from "./usePrinter-CQMn1b4E.js";
6
- import { D as Ze } from "./DataTable-C0tCPQ9i.js";
7
- import Je from "./vue-ui-skeleton-D66ZIUln.js";
8
- import { L as Ke } from "./Legend-BTpe6qQB.js";
9
- import Qe from "./vue-ui-accordion-B8ptB5BQ.js";
10
- import { u as Ce } from "./useNestedProp-C9rlBRTT.js";
11
- import { _ as et } from "./PackageVersion-CENy3Lm2.js";
12
- import { P as tt } from "./PenAndPaper-Dr7ndoP_.js";
4
+ import { _ as je } from "./Title-BU5Aq1_x.js";
5
+ import { u as qe, U as Ye } from "./usePrinter-CWeJt84b.js";
6
+ import { D as Ze } from "./DataTable-CKke7C6w.js";
7
+ import Je from "./vue-ui-skeleton-c211TxZ8.js";
8
+ import { L as Ke } from "./Legend-DMeEvZOT.js";
9
+ import Qe from "./vue-ui-accordion-JBOceVq2.js";
10
+ import { u as Ce } from "./useNestedProp-BN1ZmAKT.js";
11
+ import { _ as et } from "./PackageVersion-Rh3rgo6A.js";
12
+ import { P as tt } from "./PenAndPaper-DqVsdeLc.js";
13
13
  import { u as lt } from "./useUserOptionState-BIvW1Kz7.js";
14
14
  import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
15
  const st = ["id"], ot = ["xmlns", "viewBox"], rt = ["x", "y", "width", "height"], nt = { key: 1 }, ut = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], it = { key: 2 }, ct = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], vt = { key: 3 }, ht = ["x", "y", "font-size", "fill", "font-weight"], yt = ["x", "y", "font-size", "fill"], bt = { key: 4 }, ft = ["x", "y", "font-size", "fill", "font-weight"], gt = ["id"], pt = ["stop-color"], mt = ["stop-color"], _t = ["stop-color"], kt = ["id"], xt = ["stop-color"], wt = ["stop-color"], Ct = ["stop-color"], $t = ["id"], Lt = ["stop-color"], At = ["stop-color"], zt = ["id"], St = ["stop-color"], Xt = ["stop-color"], Nt = { key: 0 }, Tt = ["d", "fill"], Pt = { key: 1 }, Ot = ["x", "y", "height", "width", "fill"], Gt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Mt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Dt = { key: 2 }, It = ["x", "y", "fill", "font-size"], Ft = { key: 3 }, Vt = ["x", "y", "fill", "font-size"], Et = {
@@ -57,11 +57,11 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = ["x", "y", "width", "height"]
57
57
  } : l;
58
58
  }
59
59
  ye(() => p.config, (l) => {
60
- e.value = ae(), V.value = !e.value.showOnChartHover, se(), K.value += 1, Q.value += 1, ee.value += 1, y.value = e.value.style.chart.rowHeight, N.value = e.value.style.chart.width;
60
+ e.value = ae(), V.value = !e.value.showOnChartHover, se(), K.value += 1, Q.value += 1, ee.value += 1, y.value = e.value.style.chart.rowHeight, T.value = e.value.style.chart.width, N.value.showTable = e.value.table.show;
61
61
  }, { deep: !0 }), ye(() => p.dataset, (l) => {
62
62
  ce();
63
63
  }, { deep: !0 });
64
- const P = v(null);
64
+ const O = v(null);
65
65
  be(() => {
66
66
  se();
67
67
  });
@@ -91,19 +91,19 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = ["x", "y", "width", "height"]
91
91
  noTitle: J.value
92
92
  });
93
93
  requestAnimationFrame(() => {
94
- N.value = n, y.value = t / p.dataset.length, f.value = G();
94
+ T.value = n, y.value = t / p.dataset.length, f.value = G();
95
95
  });
96
96
  });
97
- P.value = new ResizeObserver(l), P.value.observe(X.value.parentNode);
97
+ O.value = new ResizeObserver(l), O.value.observe(X.value.parentNode);
98
98
  }
99
99
  }
100
100
  Oe(() => {
101
- P.value && P.value.disconnect();
101
+ O.value && O.value.disconnect();
102
102
  });
103
103
  const { isPrinting: oe, isImaging: re, generatePdf: ne, generateImage: ue } = qe({
104
104
  elementId: `dumbbell_${b.value}`,
105
105
  fileName: e.value.style.chart.title.text || "vue-ui-dumbbell"
106
- }), ze = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), O = v({
106
+ }), ze = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), N = v({
107
107
  showTable: e.value.table.show
108
108
  }), x = m(() => p.dataset.map((l, n) => ({
109
109
  ...l,
@@ -113,14 +113,14 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = ["x", "y", "width", "height"]
113
113
  }))), E = m(() => ({
114
114
  max: Math.max(...x.value.flatMap((l) => [l.start, l.end])),
115
115
  min: Math.min(...x.value.flatMap((l) => [l.start, l.end]))
116
- })), d = m(() => He(E.value.min < 0 ? E.value.min : 0, E.value.max, e.value.style.chart.grid.scaleSteps)), y = v(e.value.style.chart.rowHeight), N = v(e.value.style.chart.width), a = m(() => {
117
- const l = y.value, n = e.value.style.chart.padding.left + e.value.style.chart.padding.right + N.value, t = e.value.style.chart.padding.top + e.value.style.chart.padding.bottom + l * p.dataset.length, s = d.value.ticks.length * (N.value / d.value.ticks.length);
116
+ })), d = m(() => He(E.value.min < 0 ? E.value.min : 0, E.value.max, e.value.style.chart.grid.scaleSteps)), y = v(e.value.style.chart.rowHeight), T = v(e.value.style.chart.width), a = m(() => {
117
+ const l = y.value, n = e.value.style.chart.padding.left + e.value.style.chart.padding.right + T.value, t = e.value.style.chart.padding.top + e.value.style.chart.padding.bottom + l * p.dataset.length, s = d.value.ticks.length * (T.value / d.value.ticks.length);
118
118
  return {
119
119
  left: e.value.style.chart.padding.left,
120
120
  right: n - e.value.style.chart.padding.right,
121
121
  top: e.value.style.chart.padding.top,
122
122
  bottom: t - e.value.style.chart.padding.bottom,
123
- width: N.value,
123
+ width: T.value,
124
124
  height: l * p.dataset.length,
125
125
  rowHeight: l,
126
126
  absoluteHeight: t,
@@ -245,15 +245,15 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = ["x", "y", "width", "height"]
245
245
  Ue({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
246
246
  });
247
247
  }
248
- const T = v(!1);
248
+ const P = v(!1);
249
249
  function Ne(l) {
250
- T.value = l, j.value += 1;
250
+ P.value = l, j.value += 1;
251
251
  }
252
252
  function Te() {
253
253
  return f.value;
254
254
  }
255
255
  function he() {
256
- O.value.showTable = !O.value.showTable;
256
+ N.value.showTable = !N.value.showTable;
257
257
  }
258
258
  const D = v(!1);
259
259
  function H() {
@@ -269,7 +269,7 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = ["x", "y", "width", "height"]
269
269
  }), (l, n) => (o(), r("div", {
270
270
  ref_key: "dumbbellChart",
271
271
  ref: X,
272
- class: fe(`vue-ui-dumbbell ${T.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
272
+ class: fe(`vue-ui-dumbbell ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
273
273
  style: F(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
274
274
  id: `dumbbell_${b.value}`,
275
275
  onMouseenter: n[1] || (n[1] = () => u(te)(!0)),
@@ -323,7 +323,7 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = ["x", "y", "width", "height"]
323
323
  hasImg: e.value.userOptions.buttons.img,
324
324
  hasTable: e.value.userOptions.buttons.table,
325
325
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
326
- isFullscreen: T.value,
326
+ isFullscreen: P.value,
327
327
  titles: { ...e.value.userOptions.buttonTitles },
328
328
  chartElement: X.value,
329
329
  position: e.value.userOptions.position,
@@ -385,7 +385,7 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = ["x", "y", "width", "height"]
385
385
  S.value ? (o(), r("svg", {
386
386
  key: 4,
387
387
  xmlns: u(ke),
388
- class: fe({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
388
+ class: fe({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
389
389
  viewBox: `0 0 ${a.value.absoluteWidth <= 0 ? 10 : a.value.absoluteWidth} ${a.value.absoluteHeight <= 0 ? 10 : a.value.absoluteHeight}`,
390
390
  style: F(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
391
391
  }, [
@@ -686,7 +686,7 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = ["x", "y", "width", "height"]
686
686
  key: 8,
687
687
  hideDetails: "",
688
688
  config: {
689
- open: O.value.showTable,
689
+ open: N.value.showTable,
690
690
  maxHeight: 1e4,
691
691
  body: {
692
692
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -706,7 +706,7 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = ["x", "y", "width", "height"]
706
706
  body: M.value.body,
707
707
  config: M.value.config,
708
708
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
709
- onClose: n[0] || (n[0] = (t) => O.value.showTable = !1)
709
+ onClose: n[0] || (n[0] = (t) => N.value.showTable = !1)
710
710
  }, {
711
711
  th: k(({ th: t }) => [
712
712
  i("div", {
@@ -724,7 +724,7 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = ["x", "y", "width", "height"]
724
724
  }, 8, ["config"])) : h("", !0)
725
725
  ], 46, st));
726
726
  }
727
- }, nl = /* @__PURE__ */ at(Rt, [["__scopeId", "data-v-9ee799af"]]);
727
+ }, nl = /* @__PURE__ */ at(Rt, [["__scopeId", "data-v-4502f891"]]);
728
728
  export {
729
729
  nl as default
730
730
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-1HOIfTy2.cjs"),ke=require("./Title-C10173bN.cjs"),te=require("./usePrinter-i-j4CdEi.cjs"),ye=require("./DataTable-BmKl4AAb.cjs"),be=require("./vue-ui-accordion-Cd6GaDwU.cjs"),we=require("./vue-ui-skeleton-CLiDRcQX.cjs"),oe=require("./useNestedProp-BFNnjpX-.cjs"),Ce=require("./PackageVersion-DvDNPRrJ.cjs"),Ne=require("./PenAndPaper--xHLJRME.cjs"),xe=require("./useUserOptionState-BgepsfED.cjs"),Be=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$e=["id"],_e={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},Se={key:2,style:"width:100%;background:transparent;padding-bottom:24px"},Ee=["xmlns","viewBox"],Pe=["width","height"],Te=["id"],Oe=["stop-color"],Fe=["stop-color"],Le=["d","fill","stroke","stroke-width"],Ve=["x","y","height","width","fill","stroke","stroke-width","onMouseenter"],ze=["x","y","font-size","fill"],Ie=["x","y","font-size","fill"],Ae={key:4,class:"vue-data-ui-watermark"},He={key:6,ref:"source",dir:"auto"},Me=["innerHTML"],qe={__name:"vue-ui-flow",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(le,{expose:ne}){const h=le,{vue_ui_flow:ae}=s.useConfig(),$=e.computed(()=>!!h.dataset&&h.dataset.length);e.onMounted(()=>{V()});function V(){s.objectIsEmpty(h.dataset)&&s.error({componentName:"VueUiFlow",type:"dataset"})}const _=e.ref(s.createUid()),S=e.ref(null),z=e.ref(0),I=e.ref(0),y=e.ref(!1);function re(o){y.value=o,z.value+=1}const t=e.computed({get:()=>M(),set:o=>o}),{userOptionsVisible:E,setUserOptionsVisibility:A,keepUserOptionState:H}=xe.useUserOptionState({config:t.value});function M(){const o=oe.useNestedProp({userConfig:h.config,defaultConfig:ae});return o.theme?{...oe.useNestedProp({userConfig:s.themes.vue_ui_flow[o.theme]||h.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>h.config,o=>{t.value=M(),E.value=!t.value.showOnChartHover,V(),I.value+=1,b.value.showTable=t.value.table.show},{deep:!0});const{isPrinting:q,isImaging:D,generatePdf:U,generateImage:Y}=te.usePrinter({elementId:`flow_${_.value}`,fileName:t.value.style.chart.title.text||"vue-ui-flow"}),se=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),P=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),G=e.computed(()=>t.value.style.chart.nodes.gap),g=e.computed(()=>t.value.style.chart.nodes.width),b=e.ref({showTable:t.value.table.show}),j=e.computed(()=>t.value.style.chart.links.width),T=e.computed(()=>!h.dataset||!h.dataset.length?[]:h.dataset.map(o=>[o[0],o[1],s.checkNaN(o[2])])),W=e.computed(()=>{const o={};function n(r){o[r]||(o[r]={inflow:0,outflow:0})}T.value.forEach(([r,a,c])=>{n(r),n(a),o[r].outflow+=c,o[a].inflow+=c});let l=0;for(const r in o){const a=Math.max(o[r].inflow,o[r].outflow);l=Math.max(l,a)}return l});function ue(o){return o/W.value*100+t.value.style.chart.nodes.minHeight}function ie(o){const n=t.value.style.chart.nodes.minHeight;return(o-n)/100*W.value}function ce(o){const n={},l={};function r(u,i){n[u]||(n[u]={height:0,level:null,inflow:0,outflow:0}),n[u].level===null&&(n[u].level=i),l[i]||(l[i]=[]),l[i].includes(u)||l[i].push(u)}o.forEach(([u,i,v],k)=>{const m=n[u]?n[u].level:0,B=m+1;r(u,m),r(i,B),n[u].children||(n[u].children=[]),n[u].children.push({target:i,value:v}),n[u].outflow+=v,n[i].inflow+=v}),Object.keys(n).forEach((u,i)=>{n[u].color=P.value[i]||P.value[i%P.value.length]||s.palette[i]||s.palette[i%d.length]});for(const u in n)n[u].height=ue(Math.max(n[u].inflow,n[u].outflow)),n[u].name=u;const a={};for(const u in l){let i=0;l[u].forEach((v,k)=>{const m=n[v].height;a[v]={x:parseInt(u,10)*j.value+t.value.style.chart.padding.left,y:i,absoluteY:i,height:m,i:k,color:n[v].color,value:ie(m)},i+=m+G.value})}const c=[];for(const u in n){let i=a[u].absoluteY+t.value.style.chart.padding.top;n[u].children&&n[u].children.forEach(({target:v,value:k},m)=>{const B=a[v].y+t.value.style.chart.padding.top,F=a[u],L=a[v],J=s.checkNaN(i),K=s.checkNaN(i+k/n[u].outflow*F.height),Q=s.checkNaN(B),ee=s.checkNaN(B+k/n[v].inflow*L.height),ge={id:s.createUid(),source:u,target:v,path:`M ${s.checkNaN(F.x)+s.checkNaN(g.value)} ${J} L ${s.checkNaN(F.x)+s.checkNaN(g.value)} ${K} L ${s.checkNaN(L.x)} ${ee} L ${s.checkNaN(L.x)} ${Q} Z`,value:k,sourceColor:n[u].color,targetColor:n[v].color};c.push(ge),i+=K-J,a[v].y+=ee-Q})}return{nodeCoordinates:a,links:c}}const f=e.computed(()=>{const o=ce(h.dataset);return{nodes:Object.keys(o.nodeCoordinates).map((n,l)=>({...o.nodeCoordinates[n],name:n})),links:o.links}}),de=e.computed(()=>ve(f.value.nodes));function ve(o){const n={};for(const r in o){const{x:a,height:c}=o[r];n[a]||(n[a]=0),n[a]+=c+G.value}return Math.max(...Object.values(n))}const w=e.computed(()=>{const{top:o,right:n,left:l,bottom:r}=t.value.style.chart.padding,a=T.value.length*j.value;return{height:de.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 he(o){const n={},l={},r=new Set;return T.value.forEach(([a,c,u])=>{n[a]||(n[a]=[]),l[c]||(l[c]=[]),n[a].push(c),l[c].push(a)}),n[o]&&n[o].forEach(a=>r.add(a)),l[o]&&l[o].forEach(a=>r.add(a)),Array.from(r).concat(o)}const p=e.ref(null),C=e.ref(null);function fe(o){p.value=he(o.name),C.value=o.name}function pe(){p.value=null,C.value=null}const X=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 R(){e.nextTick(()=>{const o=X.value.map((r,a)=>[[r.source],[r.target],[r.value]]),n=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[t.value.table.columnNames.source],[t.value.table.columnNames.target],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(n);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-flow"})})}const N=e.computed(()=>{const o=[t.value.table.columnNames.source,t.value.table.columnNames.target,t.value.table.columnNames.value],n=X.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 me(){return f.value}function Z(){b.value.showTable=!b.value.showTable}const x=e.ref(!1);function O(){x.value=!x.value}return ne({getData:me,generateCsv:R,generateImage:Y,generatePdf:U,toggleTable:Z,toggleAnnotator:O}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"flowChart",ref:S,class:e.normalizeClass(`vue-ui-flow ${y.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),id:`flow_${_.value}`,onMouseenter:n[2]||(n[2]=()=>e.unref(A)(!0)),onMouseleave:n[3]||(n[3]=()=>e.unref(A)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ne.PenAndPaper,{key:0,parent:S.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:x.value,onClose:O},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),se.value?(e.openBlock(),e.createElementBlock("div",_e,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",Se,[(e.openBlock(),e.createBlock(ke._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&&$.value&&(e.unref(H)||e.unref(E))?(e.openBlock(),e.createBlock(te.UserOptions,{ref:"details",key:`user_option_${z.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(q),isImaging:e.unref(D),uid:_.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:y.value,titles:{...t.value.userOptions.buttonTitles},chartElement:S.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:x.value,onToggleFullscreen:re,onGeneratePdf:e.unref(U),onGenerateCsv:R,onGenerateImage:e.unref(Y),onToggleTable:Z,onToggleAnnotator:O,style:e.normalizeStyle({visibility:e.unref(H)?e.unref(E)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{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(Ce._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,Pe)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.links,(l,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:l.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":l.sourceColor},null,8,Oe),e.createElementVNode("stop",{offset:"100%","stop-color":l.targetColor},null,8,Fe)],8,Te))),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,r)=>(e.openBlock(),e.createElementBlock("rect",{class:"vue-ui-flow-node",x:l.x,y:e.unref(s.checkNaN)(l.absoluteY)+t.value.style.chart.padding.top,height:e.unref(s.checkNaN)(l.height),width:g.value,fill:l.color,stroke:t.value.style.chart.nodes.stroke,"stroke-width":t.value.style.chart.nodes.strokeWidth,onMouseenter:a=>fe(l),onMouseleave:n[0]||(n[0]=a=>pe()),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,r)=>(e.openBlock(),e.createElementBlock("text",{x:l.x+g.value/2,y:e.unref(s.checkNaN)(l.absoluteY+l.height/2-t.value.style.chart.nodes.labels.fontSize/4)+t.value.style.chart.padding.top,"font-size":t.value.style.chart.nodes.labels.fontSize,fill:e.unref(s.adaptColorToBackground)(l.color),"text-anchor":"middle",style:e.normalizeStyle(`pointer-events: none; opacity:${p.value?p.value.includes(l.name)?1:0:1}`)},e.toDisplayString(t.value.style.chart.nodes.labels.abbreviation.use?e.unref(s.abbreviate)({source:l.name,length:t.value.style.chart.nodes.labels.abbreviation.length}):l.name),13,ze))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:l.x+g.value/2,y:e.unref(s.checkNaN)(l.absoluteY+l.height/2+t.value.style.chart.nodes.labels.fontSize)+t.value.style.chart.padding.top,"font-size":t.value.style.chart.nodes.labels.fontSize,fill:e.unref(s.adaptColorToBackground)(l.color),"text-anchor":"middle",style:e.normalizeStyle(`pointer-events: none; opacity:${p.value?p.value.includes(l.name)?1:0:1}`)},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.nodes.labels.formatter,l.value,e.unref(s.dataLabel)({p:t.value.style.chart.nodes.labels.prefix,v:l.value,s:t.value.style.chart.nodes.labels.suffix,r:t.value.style.chart.nodes.labels.rounding}),{datapoint:l,seriesIndex:r})),13,Ie))),256)),e.renderSlot(o.$slots,"svg",{svg:w.value},void 0,!0)],14,Ee)),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ae,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(q)||e.unref(D)})),void 0,!0)])):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(we.default,{key:5,config:{type:"flow",style:{backgroundColor:t.value.style.chart.backgroundColor}}},null,8,["config"])),o.$slots.source?(e.openBlock(),e.createElementBlock("div",He,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createBlock(be.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(ye.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,Me)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,$e))}},De=Be._export_sfc(qe,[["__scopeId","data-v-91f201e2"]]);exports.default=De;
@@ -1,13 +1,13 @@
1
- import { computed as p, onMounted as ze, ref as b, watch as Ye, openBlock as u, createElementBlock as c, normalizeClass as me, normalizeStyle as x, unref as i, createBlock as P, createCommentVNode as k, createSlots as De, withCtx as w, renderSlot as m, normalizeProps as W, guardReactiveProps as q, createVNode as ye, createElementVNode as M, Fragment as F, renderList as I, toDisplayString as R, createTextVNode as Ge, nextTick as Ue } from "vue";
2
- import { u as Ve, o as Be, e as je, c as be, t as Xe, a as We, p as Z, b as qe, v as h, f as ke, X as Re, G as we, L as Ze, i as Je, q as Ke, r as Qe } from "./index-B7nCQFK0.js";
3
- import { _ as et } from "./Title-CaET2xuF.js";
4
- import { u as tt, U as ot } from "./usePrinter-CQMn1b4E.js";
5
- import { D as lt } from "./DataTable-C0tCPQ9i.js";
6
- import at from "./vue-ui-accordion-B8ptB5BQ.js";
7
- import nt from "./vue-ui-skeleton-D66ZIUln.js";
8
- import { u as Ce } from "./useNestedProp-C9rlBRTT.js";
9
- import { _ as st } from "./PackageVersion-CENy3Lm2.js";
10
- import { P as rt } from "./PenAndPaper-Dr7ndoP_.js";
1
+ import { computed as p, onMounted as ze, ref as b, watch as Ye, openBlock as u, createElementBlock as c, normalizeClass as me, normalizeStyle as x, unref as i, createBlock as F, createCommentVNode as k, createSlots as De, withCtx as w, renderSlot as m, normalizeProps as W, guardReactiveProps as q, createVNode as ye, createElementVNode as M, Fragment as I, renderList as L, toDisplayString as R, createTextVNode as Ge, nextTick as Ue } from "vue";
2
+ import { u as Ve, o as Be, e as je, c as be, t as Xe, a as We, p as Z, b as qe, v as h, f as ke, X as Re, G as we, L as Ze, i as Je, q as Ke, r as Qe } from "./index-BG5J_ybN.js";
3
+ import { _ as et } from "./Title-BU5Aq1_x.js";
4
+ import { u as tt, U as ot } from "./usePrinter-CWeJt84b.js";
5
+ import { D as lt } from "./DataTable-CKke7C6w.js";
6
+ import at from "./vue-ui-accordion-JBOceVq2.js";
7
+ import nt from "./vue-ui-skeleton-c211TxZ8.js";
8
+ import { u as Ce } from "./useNestedProp-BN1ZmAKT.js";
9
+ import { _ as st } from "./PackageVersion-Rh3rgo6A.js";
10
+ import { P as rt } from "./PenAndPaper-DqVsdeLc.js";
11
11
  import { u as ut } from "./useUserOptionState-BIvW1Kz7.js";
12
12
  import { _ as it } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  const ct = ["id"], dt = {
@@ -74,12 +74,12 @@ const ct = ["id"], dt = {
74
74
  } : t;
75
75
  }
76
76
  Ye(() => g.config, (t) => {
77
- e.value = oe(), G.value = !e.value.showOnChartHover, J(), Q.value += 1;
77
+ e.value = oe(), G.value = !e.value.showOnChartHover, J(), Q.value += 1, O.value.showTable = e.value.table.show;
78
78
  }, { deep: !0 });
79
79
  const { isPrinting: le, isImaging: ae, generatePdf: ne, generateImage: se } = tt({
80
80
  elementId: `flow_${Y.value}`,
81
81
  fileName: e.value.style.chart.title.text || "vue-ui-flow"
82
- }), Te = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), U = p(() => qe(e.value.customPalette)), re = p(() => e.value.style.chart.nodes.gap), _ = p(() => e.value.style.chart.nodes.width), L = b({
82
+ }), Te = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), U = p(() => qe(e.value.customPalette)), re = p(() => e.value.style.chart.nodes.gap), _ = p(() => e.value.style.chart.nodes.width), O = b({
83
83
  showTable: e.value.table.show
84
84
  }), ue = p(() => e.value.style.chart.links.width), V = p(() => !g.dataset || !g.dataset.length ? [] : g.dataset.map((t) => [
85
85
  t[0],
@@ -172,7 +172,7 @@ const ct = ["id"], dt = {
172
172
  }
173
173
  return Math.max(...Object.values(l));
174
174
  }
175
- const O = p(() => {
175
+ const P = p(() => {
176
176
  const { top: t, right: l, left: o, bottom: n } = e.value.style.chart.padding, a = V.value.length * ue.value;
177
177
  return {
178
178
  height: Ie.value + t + n,
@@ -273,7 +273,7 @@ const ct = ["id"], dt = {
273
273
  return y.value;
274
274
  }
275
275
  function ve() {
276
- L.value.showTable = !L.value.showTable;
276
+ O.value.showTable = !O.value.showTable;
277
277
  }
278
278
  const S = b(!1);
279
279
  function B() {
@@ -295,7 +295,7 @@ const ct = ["id"], dt = {
295
295
  onMouseenter: l[2] || (l[2] = () => i(ee)(!0)),
296
296
  onMouseleave: l[3] || (l[3] = () => i(ee)(!1))
297
297
  }, [
298
- e.value.userOptions.buttons.annotator ? (u(), P(rt, {
298
+ e.value.userOptions.buttons.annotator ? (u(), F(rt, {
299
299
  key: 0,
300
300
  parent: D.value,
301
301
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -305,7 +305,7 @@ const ct = ["id"], dt = {
305
305
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : k("", !0),
306
306
  Te.value ? (u(), c("div", dt, null, 512)) : k("", !0),
307
307
  e.value.style.chart.title.text ? (u(), c("div", vt, [
308
- (u(), P(et, {
308
+ (u(), F(et, {
309
309
  key: `title_${Q.value}`,
310
310
  config: {
311
311
  title: {
@@ -319,7 +319,7 @@ const ct = ["id"], dt = {
319
319
  }
320
320
  }, null, 8, ["config"]))
321
321
  ])) : k("", !0),
322
- e.value.userOptions.show && z.value && (i(te) || i(G)) ? (u(), P(ot, {
322
+ e.value.userOptions.show && z.value && (i(te) || i(G)) ? (u(), F(ot, {
323
323
  ref: "details",
324
324
  key: `user_option_${K.value}`,
325
325
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -393,7 +393,7 @@ const ct = ["id"], dt = {
393
393
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : k("", !0),
394
394
  (u(), c("svg", {
395
395
  xmlns: i(Re),
396
- viewBox: `0 0 ${O.value.width} ${O.value.height}`,
396
+ viewBox: `0 0 ${P.value.width} ${P.value.height}`,
397
397
  class: me({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
398
398
  style: x(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
399
399
  }, [
@@ -402,8 +402,8 @@ const ct = ["id"], dt = {
402
402
  key: 0,
403
403
  x: 0,
404
404
  y: 0,
405
- width: O.value.width,
406
- height: O.value.height,
405
+ width: P.value.width,
406
+ height: P.value.height,
407
407
  style: {
408
408
  pointerEvents: "none"
409
409
  }
@@ -411,7 +411,7 @@ const ct = ["id"], dt = {
411
411
  m(t.$slots, "chart-background", {}, void 0, !0)
412
412
  ], 8, ft)) : k("", !0),
413
413
  M("defs", null, [
414
- (u(!0), c(F, null, I(y.value.links, (o, n) => (u(), c("linearGradient", {
414
+ (u(!0), c(I, null, L(y.value.links, (o, n) => (u(), c("linearGradient", {
415
415
  id: o.id,
416
416
  x1: "0%",
417
417
  y1: "0%",
@@ -428,7 +428,7 @@ const ct = ["id"], dt = {
428
428
  }, null, 8, mt)
429
429
  ], 8, pt))), 256))
430
430
  ]),
431
- (u(!0), c(F, null, I(y.value.links, (o) => (u(), c("path", {
431
+ (u(!0), c(I, null, L(y.value.links, (o) => (u(), c("path", {
432
432
  class: "vue-ui-flow-link",
433
433
  d: o.path,
434
434
  fill: `url(#${o.id})`,
@@ -436,7 +436,7 @@ const ct = ["id"], dt = {
436
436
  "stroke-width": e.value.style.chart.links.strokeWidth,
437
437
  style: x(`opacity:${A.value ? [o.target, o.source].includes(A.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}`)
438
438
  }, null, 12, yt))), 256)),
439
- (u(!0), c(F, null, I(y.value.nodes, (o, n) => (u(), c("rect", {
439
+ (u(!0), c(I, null, L(y.value.nodes, (o, n) => (u(), c("rect", {
440
440
  class: "vue-ui-flow-node",
441
441
  x: o.x,
442
442
  y: i(h)(o.absoluteY) + e.value.style.chart.padding.top,
@@ -449,7 +449,7 @@ const ct = ["id"], dt = {
449
449
  onMouseleave: l[0] || (l[0] = (a) => Se()),
450
450
  style: x(`opacity:${C.value ? C.value.includes(o.name) ? 1 : 0.2 : 1}`)
451
451
  }, null, 44, bt))), 256)),
452
- (u(!0), c(F, null, I(y.value.nodes, (o, n) => (u(), c("text", {
452
+ (u(!0), c(I, null, L(y.value.nodes, (o, n) => (u(), c("text", {
453
453
  x: o.x + _.value / 2,
454
454
  y: i(h)(o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4) + e.value.style.chart.padding.top,
455
455
  "font-size": e.value.style.chart.nodes.labels.fontSize,
@@ -457,7 +457,7 @@ const ct = ["id"], dt = {
457
457
  "text-anchor": "middle",
458
458
  style: x(`pointer-events: none; opacity:${C.value ? C.value.includes(o.name) ? 1 : 0 : 1}`)
459
459
  }, R(e.value.style.chart.nodes.labels.abbreviation.use ? i(Ze)({ source: o.name, length: e.value.style.chart.nodes.labels.abbreviation.length }) : o.name), 13, kt))), 256)),
460
- (u(!0), c(F, null, I(y.value.nodes, (o, n) => (u(), c("text", {
460
+ (u(!0), c(I, null, L(y.value.nodes, (o, n) => (u(), c("text", {
461
461
  x: o.x + _.value / 2,
462
462
  y: i(h)(o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize) + e.value.style.chart.padding.top,
463
463
  "font-size": e.value.style.chart.nodes.labels.fontSize,
@@ -475,12 +475,12 @@ const ct = ["id"], dt = {
475
475
  }),
476
476
  { datapoint: o, seriesIndex: n }
477
477
  )), 13, wt))), 256)),
478
- m(t.$slots, "svg", { svg: O.value }, void 0, !0)
478
+ m(t.$slots, "svg", { svg: P.value }, void 0, !0)
479
479
  ], 14, ht)),
480
480
  t.$slots.watermark ? (u(), c("div", Ct, [
481
481
  m(t.$slots, "watermark", W(q({ isPrinting: i(le) || i(ae) })), void 0, !0)
482
482
  ])) : k("", !0),
483
- z.value ? k("", !0) : (u(), P(nt, {
483
+ z.value ? k("", !0) : (u(), F(nt, {
484
484
  key: 5,
485
485
  config: {
486
486
  type: "flow",
@@ -492,11 +492,11 @@ const ct = ["id"], dt = {
492
492
  t.$slots.source ? (u(), c("div", $t, [
493
493
  m(t.$slots, "source", {}, void 0, !0)
494
494
  ], 512)) : k("", !0),
495
- z.value ? (u(), P(at, {
495
+ z.value ? (u(), F(at, {
496
496
  key: 7,
497
497
  hideDetails: "",
498
498
  config: {
499
- open: L.value.showTable,
499
+ open: O.value.showTable,
500
500
  maxHeight: 1e4,
501
501
  body: {
502
502
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -515,7 +515,7 @@ const ct = ["id"], dt = {
515
515
  body: H.value.body,
516
516
  config: H.value.config,
517
517
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
518
- onClose: l[1] || (l[1] = (o) => L.value.showTable = !1)
518
+ onClose: l[1] || (l[1] = (o) => O.value.showTable = !1)
519
519
  }, {
520
520
  th: w(({ th: o }) => [
521
521
  M("div", {
@@ -533,7 +533,7 @@ const ct = ["id"], dt = {
533
533
  }, 8, ["config"])) : k("", !0)
534
534
  ], 46, ct));
535
535
  }
536
- }, zt = /* @__PURE__ */ it(_t, [["__scopeId", "data-v-02e90f12"]]);
536
+ }, zt = /* @__PURE__ */ it(_t, [["__scopeId", "data-v-91f201e2"]]);
537
537
  export {
538
538
  zt as default
539
539
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-1HOIfTy2.cjs"),W=require("./useNestedProp-BFNnjpX-.cjs"),J=require("./usePrinter-i-j4CdEi.cjs"),se=require("./Title-C10173bN.cjs"),ue=require("./PenAndPaper--xHLJRME.cjs"),ie=require("./DataTable-BmKl4AAb.cjs"),ce=require("./vue-ui-accordion-Cd6GaDwU.cjs"),K=require("./useResponsive-BJ7DTGpm.cjs"),ve=require("./vue-ui-skeleton-CLiDRcQX.cjs"),de=require("./useUserOptionState-BgepsfED.cjs"),he=require("./PackageVersion-DvDNPRrJ.cjs"),me=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),fe=["id"],pe=["xmlns","viewBox"],be=["width","height"],ye=["id"],ge=["stop-color"],ke=["stop-color"],Ce=["stop-color"],we=["stroke","stroke-width"],xe=["stroke","stroke-width"],Le=["x","y","font-size","fill","font-weight"],Be=["points","fill"],$e=["stroke","stroke-width","rx"],_e=["x","y","font-size","fill","font-weight"],Ne=["x","y","font-size","fill","font-weight"],Se={key:5,class:"vue-data-ui-watermark"},ze=["innerHTML"],Te={__name:"vue-ui-funnel",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(Q,{expose:Z}){const d=Q;e.useCssVars(a=>({"74a8ef65":re.value}));const{vue_ui_funnel:ee}=r.useConfig(),b=e.computed(()=>!!d.dataset&&d.dataset.length);e.onMounted(z);function z(){if(r.objectIsEmpty(d.dataset)?r.error({componentName:"VueUiFunnel",type:"dataset"}):d.dataset.forEach((a,o)=>{r.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","value"]}).forEach(l=>{b.value=!1,r.error({componentName:"VueUiFunnel",type:"datasetSerieAttribute",property:l,index:o})})}),t.value.responsive){const a=K.throttle(()=>{const{width:o,height:l}=K.useResponsive({chart:g.value,title:t.value.style.chart.title.text?O.value:null,source:V.value,noTitle:E.value});requestAnimationFrame(()=>{u.value.height=l,u.value.width=o,m.value=G(),i.value.circles=r.translateSize({relator:Math.min(o,l),adjuster:600,source:t.value.style.chart.circles.dataLabels.fontSize,threshold:10,fallback:10}),i.value.names=r.translateSize({relator:Math.min(o,l),adjuster:600,source:t.value.style.chart.bars.dataLabels.name.fontSize,threshold:10,fallback:10}),i.value.values=r.translateSize({relator:Math.min(o,l),adjuster:600,source:t.value.style.chart.bars.dataLabels.value.fontSize,threshold:10,fallback:10})})});D.value=new ResizeObserver(a),D.value.observe(g.value.parentNode)}}const g=e.ref(null),k=e.ref(r.createUid()),T=e.ref(0),A=e.ref(0),P=e.ref(0),E=e.ref(null),V=e.ref(null),O=e.ref(null),D=e.ref(null),f=e.ref(!1);function F(){const a=W.useNestedProp({userConfig:d.config,defaultConfig:ee});return a.theme?{...W.useNestedProp({userConfig:r.themes.vue_ui_funnel[a.theme]||d.config,defaultConfig:a})}:a}const t=e.computed({get:()=>F(),set:a=>a}),{userOptionsVisible:_,setUserOptionsVisibility:I,keepUserOptionState:q}=de.useUserOptionState({config:t.value});e.watch(()=>d.config,a=>{t.value=F(),_.value=!t.value.showOnChartHover,z(),A.value+=1,P.value+=1,i.value.circles=t.value.style.chart.circles.dataLabels.fontSize,i.value.names=t.value.style.chart.bars.dataLabels.name.fontSize,i.value.values=t.value.style.chart.bars.dataLabels.value.fontSize,C.value.showTable=t.value.table.show},{deep:!0});const{isPrinting:M,isImaging:R,generatePdf:U,generateImage:j}=J.usePrinter({elementId:`funnel_${k.value}`,fileName:t.value.style.chart.title.text||"vue-ui-funnel"}),te=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),C=e.ref({showTable:t.value.table.show}),i=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}),u=e.computed({get:()=>({height:t.value.style.chart.height,width:t.value.style.chart.width}),set:a=>a}),h=e.computed(()=>b.value?d.dataset.map((a,o)=>({...a,color:a.color?r.convertColorToHex(a.color):r.lightenHexColor(t.value.style.chart.bars.defaultColor,o/d.dataset.length)})):[]);setTimeout(()=>{f.value=!0},h.value.length*150);function G(){const a=t.value.style.chart.padding.left,o=t.value.style.chart.padding.top;return{left:a,top:o,right:u.value.width-t.value.style.chart.padding.right,bottom:u.value.height-t.value.style.chart.padding.bottom,width:u.value.width-a-t.value.style.chart.padding.right,height:u.value.height-o-t.value.style.chart.padding.bottom}}const m=e.ref(G()),y=e.computed(()=>m.value.height/d.dataset.length),p=e.computed(()=>y.value*t.value.style.chart.bars.gapRatio),H=e.computed(()=>m.value.width*t.value.style.chart.barCircleSpacingRatio),n=e.computed(()=>h.value.map((a,o)=>{const l=y.value-p.value,s=m.value.top+p.value/2*o+(y.value-p.value/2)*o+p.value/2,v=a.value/h.value[0].value,c=(m.value.width-l-H.value)*(a.value/h.value[0].value);return{...a,cx:m.value.left+l/2,cy:s+l/2,datapointIndex:o,fill:a.color,height:Math.max(l,0),proportion:v,r:Math.max(l/2,0),width:Math.max(c,0),x:m.value.left+l+H.value,y:s}})),ae=e.computed(()=>{const a=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} ${a.toString()} ${n.value.at(-1).x},${n.value.at(-1).y+(y.value-p.value)/2}`}),le=e.computed(()=>({x1:n.value[0].cx,y1:n.value[0].cy,x2:n.value.at(-1).cx,y2:n.value.at(-1).cy})),w=e.ref(!1);function oe(a){w.value=a,T.value+=1}const re=e.computed(()=>`${h.value.length*150}ms`),B=e.ref(!1);function N(){B.value=!B.value}function X(){C.value.showTable=!C.value.showTable}const x=e.computed(()=>{const a=h.value.map(l=>({name:l.name,color:l.color})),o=h.value.map(l=>l.value);return{head:a,body:o}}),$=e.computed(()=>{const a=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],o=x.value.head.map((v,c)=>{const L=r.applyDataLabel(t.value.style.chart.bars.dataLabels.value.formatter,x.value.body[c],r.dataLabel({p:t.value.style.chart.bars.dataLabels.value.prefix,v:x.value.body[c],s:t.value.style.chart.bars.dataLabels.value.suffix,r:t.value.table.td.roundingValue}),{datapoint:n.value[c]}),S=r.applyDataLabel(t.value.style.chart.circles.dataLabels.formatter,n.value[c].proportion*100,r.dataLabel({v:n.value[c].proportion*100,s:"%",r:t.value.table.td.roundingPercentage}),{datapoint:n.value[c]});return[{color:v.color,name:v.name},L,S]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:a,body:o,config:l}});function Y(){e.nextTick(()=>{const a=x.value.head.map((s,v)=>[[s.name],[x.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(a),l=r.createCsvContent(o);r.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-funnel"})})}function ne(){return h.value}return Z({getData:ne,generatePdf:U,generateCsv:Y,generateImage:j,toggleTable:X,toggleAnnotator:N}),(a,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"funnelChart",ref:g,class:e.normalizeClass(`vue-ui-funnel ${w.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}`,onMouseenter:o[1]||(o[1]=()=>e.unref(I)(!0)),onMouseleave:o[2]||(o[2]=()=>e.unref(I)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ue.PenAndPaper,{key:0,parent:g.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:B.value,onClose:N},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),te.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:E,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:O,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(se._sfc_main,{key:`title_${A.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.unref(q)||e.unref(_))?(e.openBlock(),e.createBlock(J.UserOptions,{ref:"details",key:`user_option_${T.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(M),isImaging:e.unref(R),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:w.value,chartElement:g.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleAnnotator:N,onToggleFullscreen:oe,onGeneratePdf:e.unref(U),onGenerateImage:e.unref(j),onToggleTable:X,onGenerateCsv:Y,style:e.normalizeStyle({visibility:e.unref(q)?e.unref(_)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:s})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:s})),void 0,!0)]),key:"4"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:s})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,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","style"])):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":w.value,"vue-data-ui-fulscreen--off":!w.value}),viewBox:`0 0 ${u.value.width<=0?10:u.value.width} ${u.value.height<=0?10:u.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(he._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:u.value.width<=0?10:u.value.width,height:u.value.height<=0?10:u.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,be)):e.createCommentVNode("",!0),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,ge),e.createElementVNode("stop",{offset:"20%","stop-color":t.value.style.chart.area.color},null,8,ke),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.area.color},null,8,Ce)],8,ye)]),t.value.style.chart.circleLinks.show?(e.openBlock(),e.createElementBlock("line",e.mergeProps({key:1},le.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,we)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,({cx:l,cy:s,r:v,fill:c},L)=>(e.openBlock(),e.createElementBlock("circle",e.mergeProps({cx:l,cy:s,r:v,fill:c},{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*L}ms`}}),null,16,xe))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(l,s)=>(e.openBlock(),e.createElementBlock("text",{x:l.cx,y:l.cy+i.value.circles/3+t.value.style.chart.circles.dataLabels.offsetY,"text-anchor":"middle","font-size":i.value.circles,fill:t.value.style.chart.circles.dataLabels.adaptColorToBackground?e.unref(r.adaptColorToBackground)(l.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,l.proportion*100,e.unref(r.dataLabel)({v:l.proportion*100,s:"%",r:t.value.style.chart.circles.dataLabels.rounding}),{datapoint:l})),15,Le))),256)),t.value.style.chart.area.show?(e.openBlock(),e.createElementBlock("polygon",{key:2,points:ae.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,Be)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,({x:l,y:s,height:v,width:c,fill:L},S)=>(e.openBlock(),e.createElementBlock("rect",e.mergeProps({x:l,y:s,height:v,width:c,fill:L},{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*S}ms`}}),null,16,$e))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("text",{x:l.x+l.width+t.value.style.chart.bars.dataLabels.name.offsetX+12,y:l.cy-i.value.names/2+t.value.style.chart.bars.dataLabels.name.offsetY,"text-anchor":"start","font-size":i.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(l.name),15,_e),e.createElementVNode("text",{x:l.x+l.width+t.value.style.chart.bars.dataLabels.value.offsetX+12,y:l.cy+i.value.values+t.value.style.chart.bars.dataLabels.value.offsetY,"text-anchor":"start","font-size":i.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,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.bars.dataLabels.value.prefix,v:l.value,s:t.value.style.chart.bars.dataLabels.value.suffix,r:t.value.style.chart.bars.dataLabels.value.rounding}),{datapoint:l})),15,Ne)]))),256)),e.renderSlot(a.$slots,"svg",{svg:u.value},void 0,!0)],14,pe)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Se,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(M)||e.unref(R)})),void 0,!0)])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ve.default,{key:6,config:{type:"verticalBar",style:{backgroundColor:t.value.style.chart.backgroundColor,verticalBar:{axis:{color:"#CCCCCC"},color:"#CCCCCC"}}}},null,8,["config"])),a.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:V,dir:"auto"},[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createBlock(ce.default,{key:8,hideDetails:"",config:{open:C.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(ie.DataTable,{key:`table_${P.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]=l=>C.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.name:l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,fe))}},Ae=me._export_sfc(Te,[["__scopeId","data-v-da7323e3"]]);exports.default=Ae;
@@ -1,15 +1,15 @@
1
1
  import { useCssVars as _e, computed as v, onMounted as Le, ref as c, watch as Te, openBlock as s, createElementBlock as u, normalizeClass as T, normalizeStyle as x, unref as r, createBlock as A, createCommentVNode as f, createSlots as Ae, withCtx as k, renderSlot as y, normalizeProps as H, guardReactiveProps as X, createVNode as Ne, createElementVNode as C, mergeProps as q, Fragment as M, renderList as V, toDisplayString as B, createTextVNode as Oe, nextTick as ze } from "vue";
2
- import { u as Se, o as Pe, e as fe, g as Fe, c as De, d as Ie, l as Me, i as U, f as E, X as Ve, G as Be, t as Ue, q as Ee, r as Ge, F as Y } from "./index-B7nCQFK0.js";
3
- import { u as be } from "./useNestedProp-C9rlBRTT.js";
4
- import { u as Re, U as je } from "./usePrinter-CQMn1b4E.js";
5
- import { _ as He } from "./Title-CaET2xuF.js";
6
- import { P as Xe } from "./PenAndPaper-Dr7ndoP_.js";
7
- import { D as qe } from "./DataTable-C0tCPQ9i.js";
8
- import Ye from "./vue-ui-accordion-B8ptB5BQ.js";
2
+ import { u as Se, o as Pe, e as fe, g as Fe, c as De, d as Ie, l as Me, i as U, f as E, X as Ve, G as Be, t as Ue, q as Ee, r as Ge, F as Y } from "./index-BG5J_ybN.js";
3
+ import { u as be } from "./useNestedProp-BN1ZmAKT.js";
4
+ import { u as Re, U as je } from "./usePrinter-CWeJt84b.js";
5
+ import { _ as He } from "./Title-BU5Aq1_x.js";
6
+ import { P as Xe } from "./PenAndPaper-DqVsdeLc.js";
7
+ import { D as qe } from "./DataTable-CKke7C6w.js";
8
+ import Ye from "./vue-ui-accordion-JBOceVq2.js";
9
9
  import { t as We, u as Je } from "./useResponsive-CoxXLe23.js";
10
- import Ke from "./vue-ui-skeleton-D66ZIUln.js";
10
+ import Ke from "./vue-ui-skeleton-c211TxZ8.js";
11
11
  import { u as Qe } from "./useUserOptionState-BIvW1Kz7.js";
12
- import { _ as Ze } from "./PackageVersion-CENy3Lm2.js";
12
+ import { _ as Ze } from "./PackageVersion-Rh3rgo6A.js";
13
13
  import { _ as et } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["id"], ot = ["stop-color"], nt = ["stop-color"], rt = ["stop-color"], ut = ["stroke", "stroke-width"], it = ["stroke", "stroke-width"], ct = ["x", "y", "font-size", "fill", "font-weight"], vt = ["points", "fill"], dt = ["stroke", "stroke-width", "rx"], ht = ["x", "y", "font-size", "fill", "font-weight"], ft = ["x", "y", "font-size", "fill", "font-weight"], bt = {
15
15
  key: 5,
@@ -33,7 +33,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
33
33
  setup(me, { expose: ye }) {
34
34
  const m = me;
35
35
  _e((t) => ({
36
- "0145e42b": $e.value
36
+ "74a8ef65": $e.value
37
37
  }));
38
38
  const { vue_ui_funnel: ge } = Se(), _ = v(() => !!m.dataset && m.dataset.length);
39
39
  Le(W);
@@ -104,12 +104,12 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
104
104
  set: (t) => t
105
105
  }), { userOptionsVisible: G, setUserOptionsVisibility: se, keepUserOptionState: oe } = Qe({ config: e.value });
106
106
  Te(() => m.config, (t) => {
107
- e.value = le(), G.value = !e.value.showOnChartHover, W(), K.value += 1, Q.value += 1, d.value.circles = e.value.style.chart.circles.dataLabels.fontSize, d.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, d.value.values = e.value.style.chart.bars.dataLabels.value.fontSize;
107
+ e.value = le(), G.value = !e.value.showOnChartHover, W(), K.value += 1, Q.value += 1, d.value.circles = e.value.style.chart.circles.dataLabels.fontSize, d.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, d.value.values = e.value.style.chart.bars.dataLabels.value.fontSize, z.value.showTable = e.value.table.show;
108
108
  }, { deep: !0 });
109
109
  const { isPrinting: ne, isImaging: re, generatePdf: ue, generateImage: ie } = Re({
110
110
  elementId: `funnel_${O.value}`,
111
111
  fileName: e.value.style.chart.title.text || "vue-ui-funnel"
112
- }), pe = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), F = c({
112
+ }), pe = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), z = c({
113
113
  showTable: e.value.table.show
114
114
  }), d = c({
115
115
  circles: e.value.style.chart.circles.dataLabels.fontSize,
@@ -162,18 +162,18 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
162
162
  y1: o.value[0].cy,
163
163
  x2: o.value.at(-1).cx,
164
164
  y2: o.value.at(-1).cy
165
- })), z = c(!1);
165
+ })), S = c(!1);
166
166
  function we(t) {
167
- z.value = t, J.value += 1;
167
+ S.value = t, J.value += 1;
168
168
  }
169
169
  const $e = v(() => `${g.value.length * 150}ms`), D = c(!1);
170
170
  function R() {
171
171
  D.value = !D.value;
172
172
  }
173
173
  function de() {
174
- F.value.showTable = !F.value.showTable;
174
+ z.value.showTable = !z.value.showTable;
175
175
  }
176
- const S = v(() => {
176
+ const P = v(() => {
177
177
  const t = g.value.map((a) => ({
178
178
  name: a.name,
179
179
  color: a.color
@@ -184,13 +184,13 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
184
184
  e.value.table.columnNames.series,
185
185
  e.value.table.columnNames.value,
186
186
  e.value.table.columnNames.percentage
187
- ], l = S.value.head.map((b, h) => {
188
- const P = U(
187
+ ], l = P.value.head.map((b, h) => {
188
+ const F = U(
189
189
  e.value.style.chart.bars.dataLabels.value.formatter,
190
- S.value.body[h],
190
+ P.value.body[h],
191
191
  E({
192
192
  p: e.value.style.chart.bars.dataLabels.value.prefix,
193
- v: S.value.body[h],
193
+ v: P.value.body[h],
194
194
  s: e.value.style.chart.bars.dataLabels.value.suffix,
195
195
  r: e.value.table.td.roundingValue
196
196
  }),
@@ -207,7 +207,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
207
207
  );
208
208
  return [
209
209
  { color: b.color, name: b.name },
210
- P,
210
+ F,
211
211
  j
212
212
  ];
213
213
  }), a = {
@@ -236,9 +236,9 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
236
236
  });
237
237
  function he() {
238
238
  ze(() => {
239
- const t = S.value.head.map((n, b) => [[
239
+ const t = P.value.head.map((n, b) => [[
240
240
  n.name
241
- ], [S.value.body[b]], [o.value[b].proportion * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value], ["%"]]].concat(t), a = Ee(l);
241
+ ], [P.value.body[b]], [o.value[b].proportion * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value], ["%"]]].concat(t), a = Ee(l);
242
242
  Ge({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-funnel" });
243
243
  });
244
244
  }
@@ -255,7 +255,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
255
255
  }), (t, l) => (s(), u("div", {
256
256
  ref_key: "funnelChart",
257
257
  ref: N,
258
- class: T(`vue-ui-funnel ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
258
+ class: T(`vue-ui-funnel ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
259
259
  style: x(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
260
260
  id: `funnel_${O.value}`,
261
261
  onMouseenter: l[1] || (l[1] = () => r(se)(!0)),
@@ -311,7 +311,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
311
311
  hasTable: e.value.userOptions.buttons.table,
312
312
  hasLabel: !1,
313
313
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
314
- isFullscreen: z.value,
314
+ isFullscreen: S.value,
315
315
  chartElement: N.value,
316
316
  position: e.value.userOptions.position,
317
317
  titles: { ...e.value.userOptions.buttonTitles },
@@ -373,7 +373,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
373
373
  _.value ? (s(), u("svg", {
374
374
  key: 4,
375
375
  xmlns: r(Ve),
376
- class: T({ "vue-data-ui-fullscreen--on": z.value, "vue-data-ui-fulscreen--off": !z.value }),
376
+ class: T({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
377
377
  viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
378
378
  style: x(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
379
379
  }, [
@@ -425,14 +425,14 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
425
425
  strokeDashoffset: e.value.useCssAnimation ? p.value.height : 0
426
426
  }
427
427
  }), null, 16, ut)) : f("", !0),
428
- (s(!0), u(M, null, V(o.value, ({ cx: a, cy: n, r: b, fill: h }, P) => (s(), u("circle", q({ cx: a, cy: n, r: b, fill: h }, {
428
+ (s(!0), u(M, null, V(o.value, ({ cx: a, cy: n, r: b, fill: h }, F) => (s(), u("circle", q({ cx: a, cy: n, r: b, fill: h }, {
429
429
  stroke: e.value.style.chart.circles.stroke,
430
430
  "stroke-width": e.value.style.chart.circles.strokeWidth,
431
431
  class: {
432
432
  animated: e.value.useCssAnimation && !w.value
433
433
  },
434
434
  style: {
435
- animationDelay: `${150 * P}ms`
435
+ animationDelay: `${150 * F}ms`
436
436
  }
437
437
  }), null, 16, it))), 256)),
438
438
  (s(!0), u(M, null, V(o.value, (a, n) => (s(), u("text", {
@@ -469,7 +469,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
469
469
  transition: e.value.useCssAnimation ? `all ${150 * g.value.length}ms ease-in` : "none"
470
470
  })
471
471
  }, null, 14, vt)) : f("", !0),
472
- (s(!0), u(M, null, V(o.value, ({ x: a, y: n, height: b, width: h, fill: P }, j) => (s(), u("rect", q({ x: a, y: n, height: b, width: h, fill: P }, {
472
+ (s(!0), u(M, null, V(o.value, ({ x: a, y: n, height: b, width: h, fill: F }, j) => (s(), u("rect", q({ x: a, y: n, height: b, width: h, fill: F }, {
473
473
  stroke: e.value.style.chart.bars.stroke,
474
474
  "stroke-width": e.value.style.chart.bars.strokeWidth,
475
475
  rx: e.value.style.chart.bars.borderRadius,
@@ -552,7 +552,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
552
552
  key: 8,
553
553
  hideDetails: "",
554
554
  config: {
555
- open: F.value.showTable,
555
+ open: z.value.showTable,
556
556
  maxHeight: 1e4,
557
557
  body: {
558
558
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -572,7 +572,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
572
572
  body: I.value.body,
573
573
  config: I.value.config,
574
574
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
575
- onClose: l[0] || (l[0] = (a) => F.value.showTable = !1)
575
+ onClose: l[0] || (l[0] = (a) => z.value.showTable = !1)
576
576
  }, {
577
577
  th: k(({ th: a }) => [
578
578
  C("div", {
@@ -590,7 +590,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
590
590
  }, 8, ["config"])) : f("", !0)
591
591
  ], 46, tt));
592
592
  }
593
- }, zt = /* @__PURE__ */ et(yt, [["__scopeId", "data-v-e5224b15"]]);
593
+ }, zt = /* @__PURE__ */ et(yt, [["__scopeId", "data-v-da7323e3"]]);
594
594
  export {
595
595
  zt as default
596
596
  };