vue-data-ui 2.6.5 → 2.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/dist/{Arrow-DfGZcZu4.js → Arrow-BxUmDF04.js} +1 -1
  2. package/dist/{Arrow-CyeGXbbD.cjs → Arrow-PPbxds1Q.cjs} +1 -1
  3. package/dist/{BaseIcon-B5DvqSYe.cjs → BaseIcon-BmVwfJg2.cjs} +1 -1
  4. package/dist/{BaseIcon-BzuvxztF.js → BaseIcon-CDx9pxUG.js} +1 -1
  5. package/dist/{DataTable-zpYtivMM.cjs → DataTable-Cv_TVAas.cjs} +1 -1
  6. package/dist/{DataTable-BCCBpyhr.js → DataTable-TjJIVFlL.js} +2 -2
  7. package/dist/{Legend-CJkkmRNE.cjs → Legend-DunrYGuw.cjs} +1 -1
  8. package/dist/{Legend-CyJrN721.js → Legend-NKGwxkI7.js} +2 -2
  9. package/dist/{PackageVersion-Dv25_ZxF.cjs → PackageVersion-DJKkRuOD.cjs} +1 -1
  10. package/dist/{PackageVersion-PZr4BkQ5.js → PackageVersion-QRvxRYPv.js} +1 -1
  11. package/dist/{PenAndPaper-Cniu2YEX.js → PenAndPaper-CxC1lWGK.js} +3 -3
  12. package/dist/{PenAndPaper-Cx3_Liuv.cjs → PenAndPaper-MTTJ3Gd9.cjs} +1 -1
  13. package/dist/{Shape-BXTmpde5.js → Shape-58uyOuYc.js} +26 -23
  14. package/dist/Shape-D_1vUjCL.cjs +1 -0
  15. package/dist/{Slicer-DzKrIvL0.cjs → Slicer-BGEieXKn.cjs} +1 -1
  16. package/dist/{Slicer-D3tEQT9Z.js → Slicer-C7ormJRw.js} +2 -2
  17. package/dist/{Title-CXBc1TH6.js → Title-BI8etrRU.js} +1 -1
  18. package/dist/{Title-DdUtciJN.cjs → Title-Dk92HYMu.cjs} +1 -1
  19. package/dist/Tooltip-ClMeqejQ.cjs +1 -0
  20. package/dist/{Tooltip-C9lPh5bN.js → Tooltip-Cxc8c50d.js} +23 -20
  21. package/dist/{index-DLCyjPV0.js → index-9EeNZMz1.js} +6 -1
  22. package/dist/index-DEnRHTzk.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +89 -62
  25. package/dist/types/vue-data-ui.d.ts +89 -62
  26. package/dist/useChartAccessibility-BWojgys7.js +13 -0
  27. package/dist/useChartAccessibility-Cm7nkzTG.cjs +1 -0
  28. package/dist/{useNestedProp-BdTohsDJ.cjs → useNestedProp-BNT60LxO.cjs} +1 -1
  29. package/dist/{useNestedProp-q86V3_LA.js → useNestedProp-df_bKQEI.js} +1 -1
  30. package/dist/{usePrinter-CPqTP09H.cjs → usePrinter-dyVny55M.cjs} +1 -1
  31. package/dist/{usePrinter-CpHZjw3G.js → usePrinter-ngrh00Ym.js} +1 -1
  32. package/dist/{vue-data-ui-CR9Dof80.cjs → vue-data-ui-BYX-I7HQ.cjs} +1 -1
  33. package/dist/{vue-data-ui-CzqznXmA.js → vue-data-ui-CDD7JcMs.js} +61 -61
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +1 -1
  36. package/dist/{vue-ui-3d-bar-DvHdA_uo.js → vue-ui-3d-bar-BArLjlrc.js} +171 -168
  37. package/dist/vue-ui-3d-bar-DegdXf_S.cjs +19 -0
  38. package/dist/{vue-ui-accordion-FM16tlk7.cjs → vue-ui-accordion-D2qxHGzp.cjs} +1 -1
  39. package/dist/{vue-ui-accordion-DR2qjfsa.js → vue-ui-accordion-Qo8JxnIN.js} +3 -3
  40. package/dist/{vue-ui-age-pyramid-BoXxK9_W.js → vue-ui-age-pyramid-Biz02m7c.js} +85 -82
  41. package/dist/vue-ui-age-pyramid-kpaaJ2Gx.cjs +1 -0
  42. package/dist/{vue-ui-annotator-5tI8NuFh.cjs → vue-ui-annotator-By6XNYm0.cjs} +1 -1
  43. package/dist/{vue-ui-annotator-D4kCCpAK.js → vue-ui-annotator-MXs48Lua.js} +1 -1
  44. package/dist/{vue-ui-bullet-X3Xa_OZ6.js → vue-ui-bullet-CtBs_r3I.js} +92 -89
  45. package/dist/vue-ui-bullet-Dkz6vX0T.cjs +34 -0
  46. package/dist/vue-ui-candlestick-DiEUIuW8.cjs +2 -0
  47. package/dist/{vue-ui-candlestick-BTW5toA5.js → vue-ui-candlestick-gPztmuJE.js} +155 -152
  48. package/dist/{vue-ui-carousel-table-Cmnwv9Y3.cjs → vue-ui-carousel-table-CYeXP21y.cjs} +1 -1
  49. package/dist/{vue-ui-carousel-table-D7s_SrJR.js → vue-ui-carousel-table-D9ckYNKZ.js} +4 -4
  50. package/dist/{vue-ui-chestnut-DN9EZShg.js → vue-ui-chestnut-DWjn-jcN.js} +186 -183
  51. package/dist/vue-ui-chestnut-oZtRERnV.cjs +6 -0
  52. package/dist/{vue-ui-circle-pack-ts3rurGX.js → vue-ui-circle-pack-Bz5yVvAM.js} +99 -96
  53. package/dist/vue-ui-circle-pack-DCJ6N00S.cjs +1 -0
  54. package/dist/{vue-ui-cursor-SW96fYT3.js → vue-ui-cursor-BrrVDy1u.js} +2 -2
  55. package/dist/{vue-ui-cursor-CpWkrHpR.cjs → vue-ui-cursor-DZhRygRy.cjs} +1 -1
  56. package/dist/{vue-ui-dashboard-BZcfgajg.js → vue-ui-dashboard-DEmGN8Js.js} +2 -2
  57. package/dist/{vue-ui-dashboard-Buh9xBz-.cjs → vue-ui-dashboard-o8Ju_cXW.cjs} +1 -1
  58. package/dist/{vue-ui-digits-rB78vJRR.cjs → vue-ui-digits-CgyYdrQ5.cjs} +1 -1
  59. package/dist/{vue-ui-digits-C00yOT24.js → vue-ui-digits-DbOrROu7.js} +2 -2
  60. package/dist/vue-ui-donut-9pWaRwf3.cjs +1 -0
  61. package/dist/{vue-ui-donut-BkGR2Q-_.js → vue-ui-donut-CP5uWglM.js} +158 -156
  62. package/dist/{vue-ui-donut-evolution-B7WrjiTO.js → vue-ui-donut-evolution-BAMD1wQ5.js} +133 -131
  63. package/dist/vue-ui-donut-evolution-Ci_gIrkO.cjs +1 -0
  64. package/dist/{vue-ui-dumbbell-gQadUH53.js → vue-ui-dumbbell-CFYd-Ypn.js} +125 -122
  65. package/dist/vue-ui-dumbbell-DUNYoZxT.cjs +9 -0
  66. package/dist/{vue-ui-flow-CqSTZbgP.js → vue-ui-flow-CdvGWFzv.js} +96 -93
  67. package/dist/vue-ui-flow-W89ofPB-.cjs +1 -0
  68. package/dist/{vue-ui-funnel-Jr9TMTsq.js → vue-ui-funnel-DYutKyoz.js} +88 -85
  69. package/dist/vue-ui-funnel-RvdVrhFu.cjs +1 -0
  70. package/dist/{vue-ui-galaxy-BrQ10tPo.js → vue-ui-galaxy-BCBRlYS1.js} +123 -120
  71. package/dist/vue-ui-galaxy-Djdx-ca8.cjs +1 -0
  72. package/dist/{vue-ui-gauge-DOMio6Mv.js → vue-ui-gauge-BNAAZt4F.js} +86 -83
  73. package/dist/vue-ui-gauge-BVVmf09x.cjs +1 -0
  74. package/dist/{vue-ui-gizmo-SKS1idHb.js → vue-ui-gizmo-BFQ_KgLX.js} +3 -3
  75. package/dist/{vue-ui-gizmo-C3NimqVM.cjs → vue-ui-gizmo-Ceh0oFY3.cjs} +1 -1
  76. package/dist/vue-ui-heatmap-CiZpI-tA.cjs +1 -0
  77. package/dist/{vue-ui-heatmap-l4vCjb6f.js → vue-ui-heatmap-Ct3qaBv7.js} +109 -106
  78. package/dist/vue-ui-history-plot-Ci8Y2EFg.cjs +1 -0
  79. package/dist/{vue-ui-history-plot-B05tJML1.js → vue-ui-history-plot-shn74MJ6.js} +130 -127
  80. package/dist/{vue-ui-kpi-DF4U5E1w.js → vue-ui-kpi-B_pV-2JJ.js} +3 -3
  81. package/dist/{vue-ui-kpi-DQJr571M.cjs → vue-ui-kpi-DfYrbxlX.cjs} +1 -1
  82. package/dist/{vue-ui-mini-loader-BMARnOW4.js → vue-ui-mini-loader-BFnWQs5p.js} +2 -2
  83. package/dist/{vue-ui-mini-loader-BZkVKkqn.cjs → vue-ui-mini-loader-LIqf62jk.cjs} +1 -1
  84. package/dist/vue-ui-molecule-D8YuYTKv.cjs +1 -0
  85. package/dist/{vue-ui-molecule-C1ycekVJ.js → vue-ui-molecule-DNz1m8XZ.js} +147 -144
  86. package/dist/{vue-ui-mood-radar-_Kd-Lhpm.js → vue-ui-mood-radar-DiYB_zhM.js} +97 -94
  87. package/dist/vue-ui-mood-radar-uvH7qUHy.cjs +1 -0
  88. package/dist/{vue-ui-nested-donuts-DIwRSn-O.js → vue-ui-nested-donuts-9hn-g4ir.js} +99 -96
  89. package/dist/vue-ui-nested-donuts-C7ikDjp7.cjs +17 -0
  90. package/dist/vue-ui-onion-5Rqvd4Fw.cjs +5 -0
  91. package/dist/{vue-ui-onion-Dqb0gwGl.js → vue-ui-onion-DCWfNTNu.js} +105 -102
  92. package/dist/{vue-ui-parallel-coordinate-plot-De-tYNNy.js → vue-ui-parallel-coordinate-plot-CaPFL9_1.js} +97 -94
  93. package/dist/vue-ui-parallel-coordinate-plot-tlgTbaNX.cjs +8 -0
  94. package/dist/vue-ui-quadrant-B0Sw5NGo.cjs +1 -0
  95. package/dist/{vue-ui-quadrant-BQ5maxJq.js → vue-ui-quadrant-BoQZ375K.js} +155 -153
  96. package/dist/vue-ui-quick-chart-D3zV1d7t.cjs +15 -0
  97. package/dist/{vue-ui-quick-chart-DF_510YT.js → vue-ui-quick-chart-vfMN8F1q.js} +164 -161
  98. package/dist/{vue-ui-radar-DDHd0AYs.js → vue-ui-radar-CAuu6wkh.js} +129 -127
  99. package/dist/vue-ui-radar-CNMJCAwo.cjs +1 -0
  100. package/dist/{vue-ui-rating-Chi3OOtp.js → vue-ui-rating-Bm0HZ3du.js} +2 -2
  101. package/dist/{vue-ui-rating-D9kQcY2a.cjs → vue-ui-rating-dsRDRL98.cjs} +1 -1
  102. package/dist/{vue-ui-relation-circle-CV1xQOok.js → vue-ui-relation-circle-5OZMN9jR.js} +127 -124
  103. package/dist/vue-ui-relation-circle-iD7BufNH.cjs +1 -0
  104. package/dist/{vue-ui-rings-D2ezwyae.js → vue-ui-rings-COefBaQT.js} +114 -112
  105. package/dist/vue-ui-rings-DC4WG4sK.cjs +2 -0
  106. package/dist/vue-ui-scatter-5ny76dmi.cjs +1 -0
  107. package/dist/{vue-ui-scatter-BxbUYPk1.js → vue-ui-scatter-DhO83TZZ.js} +157 -154
  108. package/dist/{vue-ui-screenshot-Bc7Lv1i8.cjs → vue-ui-screenshot-DABH_phE.cjs} +1 -1
  109. package/dist/{vue-ui-screenshot-cxDgcXJB.js → vue-ui-screenshot-brillPo5.js} +1 -1
  110. package/dist/{vue-ui-skeleton-D6ojufhb.js → vue-ui-skeleton-BmJiYGtE.js} +3 -3
  111. package/dist/{vue-ui-skeleton-DvdPnQbR.cjs → vue-ui-skeleton-_DN0U6W6.cjs} +1 -1
  112. package/dist/{vue-ui-smiley-DEJ6S-We.cjs → vue-ui-smiley-CW6714mb.cjs} +1 -1
  113. package/dist/{vue-ui-smiley-9nGRDSn7.js → vue-ui-smiley-D9NRimij.js} +2 -2
  114. package/dist/{vue-ui-spark-trend-DiNeAGXR.js → vue-ui-spark-trend-BKZj03CQ.js} +5 -5
  115. package/dist/{vue-ui-spark-trend-BosbwgVe.cjs → vue-ui-spark-trend-expbkxgR.cjs} +1 -1
  116. package/dist/{vue-ui-sparkbar-DNf_Majv.js → vue-ui-sparkbar-CYRORE5i.js} +4 -4
  117. package/dist/{vue-ui-sparkbar-DGFKrcg0.cjs → vue-ui-sparkbar-Cr9FtevP.cjs} +1 -1
  118. package/dist/vue-ui-sparkgauge-BHXFhvTv.cjs +1 -0
  119. package/dist/{vue-ui-sparkgauge-D89HjxSK.js → vue-ui-sparkgauge-JV4tYB7P.js} +56 -53
  120. package/dist/{vue-ui-sparkhistogram-CU1_P6AJ.js → vue-ui-sparkhistogram-DKINHX2q.js} +93 -90
  121. package/dist/vue-ui-sparkhistogram-T4a3DDck.cjs +1 -0
  122. package/dist/{vue-ui-sparkline-C2McLmh5.js → vue-ui-sparkline-CbRTHtig.js} +109 -106
  123. package/dist/vue-ui-sparkline-Dc6Sf3n8.cjs +1 -0
  124. package/dist/{vue-ui-sparkstackbar-Cu4aG9PB.js → vue-ui-sparkstackbar-6u9-2nG4.js} +59 -56
  125. package/dist/vue-ui-sparkstackbar-CV5SkdsP.cjs +1 -0
  126. package/dist/{vue-ui-stackbar-6m5CpvNM.js → vue-ui-stackbar-CUppObfj.js} +136 -133
  127. package/dist/vue-ui-stackbar-CXB-nd71.cjs +6 -0
  128. package/dist/vue-ui-strip-plot-6IXF_U6-.cjs +1 -0
  129. package/dist/{vue-ui-strip-plot-DlZ2Eez4.js → vue-ui-strip-plot-doaNZAW4.js} +127 -124
  130. package/dist/{vue-ui-table-U0_3I0fu.js → vue-ui-table-CZsNuDR5.js} +1 -1
  131. package/dist/{vue-ui-table-BjhcV9qB.cjs → vue-ui-table-S66UCskD.cjs} +1 -1
  132. package/dist/{vue-ui-table-heatmap-Bfqytiv5.cjs → vue-ui-table-heatmap-BU9UU15H.cjs} +1 -1
  133. package/dist/{vue-ui-table-heatmap-BrGkCaOG.js → vue-ui-table-heatmap-CjohHqDV.js} +4 -4
  134. package/dist/{vue-ui-table-sparkline-CXlnp8E3.cjs → vue-ui-table-sparkline-CHFFTD0a.cjs} +1 -1
  135. package/dist/{vue-ui-table-sparkline-C1wNBDqO.js → vue-ui-table-sparkline-ab2rwdKB.js} +5 -5
  136. package/dist/{vue-ui-thermometer-Bx2abW1B.js → vue-ui-thermometer-C72mHwUi.js} +84 -81
  137. package/dist/vue-ui-thermometer-Ccd6RGh8.cjs +1 -0
  138. package/dist/vue-ui-timer-C8Fn2B0b.cjs +64 -0
  139. package/dist/{vue-ui-timer-3UkgrtEj.js → vue-ui-timer-D-LNi6lz.js} +183 -180
  140. package/dist/{vue-ui-tiremarks-C_xuD4De.js → vue-ui-tiremarks-Bo8EWsJ8.js} +59 -56
  141. package/dist/vue-ui-tiremarks-SOzvMOz4.cjs +1 -0
  142. package/dist/vue-ui-treemap-BqTTQrVh.cjs +1 -0
  143. package/dist/{vue-ui-treemap-BjDSR72h.js → vue-ui-treemap-uj94elVB.js} +123 -120
  144. package/dist/{vue-ui-vertical-bar-DUhOoSNl.js → vue-ui-vertical-bar-BUTOw-DK.js} +108 -106
  145. package/dist/vue-ui-vertical-bar-C4Sxun4Q.cjs +4 -0
  146. package/dist/{vue-ui-waffle-Dpox5n5s.js → vue-ui-waffle-CTWA1frT.js} +107 -104
  147. package/dist/vue-ui-waffle-DYWGRKdT.cjs +1 -0
  148. package/dist/vue-ui-wheel-8K72ZKda.js +330 -0
  149. package/dist/vue-ui-wheel-Cz5-0klT.cjs +1 -0
  150. package/dist/{vue-ui-word-cloud-u5S86-Ft.js → vue-ui-word-cloud-CSwBPDB8.js} +97 -94
  151. package/dist/vue-ui-word-cloud-D39riLZb.cjs +1 -0
  152. package/dist/vue-ui-xy-BbWXjajH.cjs +3 -0
  153. package/dist/{vue-ui-xy-0nBQDwL2.js → vue-ui-xy-DpDKutd7.js} +65 -58
  154. package/dist/{vue-ui-xy-canvas-yQlThVu7.cjs → vue-ui-xy-canvas-BCj0SCqe.cjs} +2 -2
  155. package/dist/{vue-ui-xy-canvas-DI7LiD4U.js → vue-ui-xy-canvas-BQm9gah4.js} +82 -81
  156. package/package.json +1 -1
  157. package/dist/Shape-GAZUIBfN.cjs +0 -1
  158. package/dist/Tooltip-BlGVq6xj.cjs +0 -1
  159. package/dist/index-DSGAenF3.cjs +0 -9
  160. package/dist/vue-ui-3d-bar-vvpkf_bv.cjs +0 -19
  161. package/dist/vue-ui-age-pyramid-CMMnrI3R.cjs +0 -1
  162. package/dist/vue-ui-bullet-nXPlud-q.cjs +0 -34
  163. package/dist/vue-ui-candlestick-B6T0LhEG.cjs +0 -2
  164. package/dist/vue-ui-chestnut-D8Gq_i77.cjs +0 -6
  165. package/dist/vue-ui-circle-pack-DCz3OWlu.cjs +0 -1
  166. package/dist/vue-ui-donut-BpgK-I9o.cjs +0 -1
  167. package/dist/vue-ui-donut-evolution-BVJCDPQ2.cjs +0 -1
  168. package/dist/vue-ui-dumbbell-DRcemHVG.cjs +0 -9
  169. package/dist/vue-ui-flow-DdQsK5DR.cjs +0 -1
  170. package/dist/vue-ui-funnel-Bq4yoTfd.cjs +0 -1
  171. package/dist/vue-ui-galaxy-ia1UNlpc.cjs +0 -1
  172. package/dist/vue-ui-gauge-C3FbYOSi.cjs +0 -1
  173. package/dist/vue-ui-heatmap-BCau2Z3U.cjs +0 -1
  174. package/dist/vue-ui-history-plot-DL7VjOd0.cjs +0 -1
  175. package/dist/vue-ui-molecule-B5XDGmLx.cjs +0 -1
  176. package/dist/vue-ui-mood-radar-DyMCJKFb.cjs +0 -1
  177. package/dist/vue-ui-nested-donuts-B4Am-r6T.cjs +0 -17
  178. package/dist/vue-ui-onion-YeBdJrdx.cjs +0 -5
  179. package/dist/vue-ui-parallel-coordinate-plot-CoecETlm.cjs +0 -8
  180. package/dist/vue-ui-quadrant-Btzq3qNJ.cjs +0 -1
  181. package/dist/vue-ui-quick-chart-5cWjffLJ.cjs +0 -15
  182. package/dist/vue-ui-radar-t22bqFiQ.cjs +0 -1
  183. package/dist/vue-ui-relation-circle-CWgGPxDJ.cjs +0 -1
  184. package/dist/vue-ui-rings-CiLJkRwa.cjs +0 -2
  185. package/dist/vue-ui-scatter-B24gGA8q.cjs +0 -1
  186. package/dist/vue-ui-sparkgauge-DwK7dzdJ.cjs +0 -1
  187. package/dist/vue-ui-sparkhistogram-DKoI6_TT.cjs +0 -1
  188. package/dist/vue-ui-sparkline-Bp7GMRrA.cjs +0 -1
  189. package/dist/vue-ui-sparkstackbar-Dayxdcr7.cjs +0 -1
  190. package/dist/vue-ui-stackbar-C21xTVy9.cjs +0 -6
  191. package/dist/vue-ui-strip-plot-DAo8FMup.cjs +0 -1
  192. package/dist/vue-ui-thermometer-CBdAwYdC.cjs +0 -1
  193. package/dist/vue-ui-timer-CRDQbqJ_.cjs +0 -64
  194. package/dist/vue-ui-tiremarks-C78mfaBr.cjs +0 -1
  195. package/dist/vue-ui-treemap-CP__1pdb.cjs +0 -1
  196. package/dist/vue-ui-vertical-bar-DTB8r4LH.cjs +0 -4
  197. package/dist/vue-ui-waffle-CrVyCF7k.cjs +0 -1
  198. package/dist/vue-ui-wheel-DV2zgr4d.cjs +0 -1
  199. package/dist/vue-ui-wheel-ykD8OULJ.js +0 -319
  200. package/dist/vue-ui-word-cloud-DBkAo2uX.cjs +0 -1
  201. package/dist/vue-ui-xy-mEVVQr_U.cjs +0 -3
@@ -1,20 +1,21 @@
1
- import { useCssVars as xe, computed as v, onMounted as Le, ref as c, watch as Te, createElementBlock as u, openBlock as s, unref as n, normalizeStyle as _, normalizeClass as T, 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, F as Y, a as Ue, q as Ee, r as Ge } from "./index-DLCyjPV0.js";
3
- import { u as be } from "./useNestedProp-q86V3_LA.js";
4
- import { u as Re, U as je } from "./usePrinter-CpHZjw3G.js";
5
- import { _ as He } from "./Title-CXBc1TH6.js";
6
- import { P as Xe } from "./PenAndPaper-Cniu2YEX.js";
7
- import { D as qe } from "./DataTable-BCCBpyhr.js";
8
- import Ye from "./vue-ui-accordion-DR2qjfsa.js";
9
- import { t as We, u as Je } from "./useResponsive-BWapHhVH.js";
10
- import Ke from "./vue-ui-skeleton-D6ojufhb.js";
11
- import { u as Qe } from "./useUserOptionState-BIvW1Kz7.js";
12
- import { _ as Ze } from "./PackageVersion-PZr4BkQ5.js";
13
- import { _ as et } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["id"], ot = ["stop-color"], rt = ["stop-color"], nt = ["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 = {
1
+ import { useCssVars as Le, computed as v, onMounted as Te, ref as c, watch as Ae, createElementBlock as u, openBlock as s, unref as n, normalizeStyle as _, normalizeClass as T, createBlock as A, createCommentVNode as f, createSlots as Ne, withCtx as k, renderSlot as y, normalizeProps as H, guardReactiveProps as X, createVNode as Oe, createElementVNode as C, mergeProps as q, Fragment as M, renderList as R, toDisplayString as V, createTextVNode as ze, nextTick as Se } from "vue";
2
+ import { u as Pe, o as Fe, e as fe, g as De, c as Ie, d as Me, l as Re, i as B, f as U, X as Ve, G as Be, F as Y, a as Ue, q as Ee, r as Ge } from "./index-9EeNZMz1.js";
3
+ import { u as be } from "./useNestedProp-df_bKQEI.js";
4
+ import { u as je, U as He } from "./usePrinter-ngrh00Ym.js";
5
+ import { _ as Xe } from "./Title-BI8etrRU.js";
6
+ import { P as qe } from "./PenAndPaper-CxC1lWGK.js";
7
+ import { D as Ye } from "./DataTable-TjJIVFlL.js";
8
+ import We from "./vue-ui-accordion-Qo8JxnIN.js";
9
+ import { t as Je, u as Ke } from "./useResponsive-BWapHhVH.js";
10
+ import Qe from "./vue-ui-skeleton-BmJiYGtE.js";
11
+ import { u as Ze } from "./useUserOptionState-BIvW1Kz7.js";
12
+ import { _ as et } from "./PackageVersion-QRvxRYPv.js";
13
+ import { u as tt } from "./useChartAccessibility-BWojgys7.js";
14
+ import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], rt = ["id"], nt = ["stop-color"], ut = ["stop-color"], it = ["stop-color"], ct = ["stroke", "stroke-width"], vt = ["stroke", "stroke-width"], dt = ["x", "y", "font-size", "fill", "font-weight"], ht = ["points", "fill"], ft = ["stroke", "stroke-width", "rx"], bt = ["x", "y", "font-size", "fill", "font-weight"], mt = ["x", "y", "font-size", "fill", "font-weight"], yt = {
15
16
  key: 5,
16
17
  class: "vue-data-ui-watermark"
17
- }, mt = ["innerHTML"], yt = {
18
+ }, gt = ["innerHTML"], pt = {
18
19
  __name: "vue-ui-funnel",
19
20
  props: {
20
21
  config: {
@@ -31,17 +32,17 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
31
32
  }
32
33
  },
33
34
  setup(me, { expose: ye }) {
34
- xe((t) => ({
35
- "1de04001": $e.value
35
+ Le((t) => ({
36
+ "3ce0aba8": _e.value
36
37
  }));
37
- const { vue_ui_funnel: ge } = Se(), m = me, x = v(() => !!m.dataset && m.dataset.length);
38
- Le(W);
38
+ const { vue_ui_funnel: ge } = Pe(), m = me, x = v(() => !!m.dataset && m.dataset.length);
39
+ Te(W);
39
40
  function W() {
40
- if (Pe(m.dataset) ? fe({
41
+ if (Fe(m.dataset) ? fe({
41
42
  componentName: "VueUiFunnel",
42
43
  type: "dataset"
43
44
  }) : m.dataset.forEach((t, l) => {
44
- Fe({
45
+ De({
45
46
  datasetObject: t,
46
47
  requiredAttributes: ["name", "value"]
47
48
  }).forEach((a) => {
@@ -53,8 +54,8 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
53
54
  });
54
55
  });
55
56
  }), e.value.responsive) {
56
- const t = We(() => {
57
- const { width: l, height: a } = Je({
57
+ const t = Je(() => {
58
+ const { width: l, height: a } = Ke({
58
59
  chart: N.value,
59
60
  title: e.value.style.chart.title.text ? te.value : null,
60
61
  source: ee.value,
@@ -85,7 +86,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
85
86
  ae.value = new ResizeObserver(t), ae.value.observe(N.value.parentNode);
86
87
  }
87
88
  }
88
- const N = c(null), O = c(De()), J = c(0), K = c(0), Q = c(0), Z = c(null), ee = c(null), te = c(null), ae = c(null), w = c(!1);
89
+ const N = c(null), O = c(Ie()), J = c(0), K = c(0), Q = c(0), Z = c(null), ee = c(null), te = c(null), ae = c(null), w = c(!1);
89
90
  function le() {
90
91
  const t = be({
91
92
  userConfig: m.config,
@@ -101,14 +102,14 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
101
102
  const e = v({
102
103
  get: () => le(),
103
104
  set: (t) => t
104
- }), { userOptionsVisible: G, setUserOptionsVisibility: se, keepUserOptionState: oe } = Qe({ config: e.value });
105
- Te(() => m.config, (t) => {
106
- e.value = le(), G.value = !e.value.userOptions.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;
105
+ }), { userOptionsVisible: E, setUserOptionsVisibility: se, keepUserOptionState: oe } = Ze({ config: e.value }), { svgRef: pe } = tt({ config: e.value.style.chart.title });
106
+ Ae(() => m.config, (t) => {
107
+ e.value = le(), E.value = !e.value.userOptions.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;
107
108
  }, { deep: !0 });
108
- const { isPrinting: re, isImaging: ne, generatePdf: ue, generateImage: ie } = Re({
109
+ const { isPrinting: re, isImaging: ne, generatePdf: ue, generateImage: ie } = je({
109
110
  elementId: `funnel_${O.value}`,
110
111
  fileName: e.value.style.chart.title.text || "vue-ui-funnel"
111
- }), pe = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), z = c({
112
+ }), ke = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), z = c({
112
113
  showTable: e.value.table.show
113
114
  }), d = c({
114
115
  circles: e.value.style.chart.circles.dataLabels.fontSize,
@@ -122,7 +123,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
122
123
  set: (t) => t
123
124
  }), g = v(() => x.value ? m.dataset.map((t, l) => ({
124
125
  ...t,
125
- color: t.color ? Ie(t.color) : Me(e.value.style.chart.bars.defaultColor, l / m.dataset.length)
126
+ color: t.color ? Me(t.color) : Re(e.value.style.chart.bars.defaultColor, l / m.dataset.length)
126
127
  })) : []);
127
128
  setTimeout(() => {
128
129
  w.value = !0;
@@ -153,20 +154,20 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
153
154
  x: p.value.left + a + ve.value,
154
155
  y: r
155
156
  };
156
- })), ke = v(() => {
157
+ })), Ce = v(() => {
157
158
  const t = o.value.map((l) => `${l.x + l.width},${l.y + (L.value - $.value) / 2}`);
158
159
  return `${o.value[0].x},${o.value[0].y + (L.value - $.value) / 2} ${t.toString()} ${o.value.at(-1).x},${o.value.at(-1).y + (L.value - $.value) / 2}`;
159
- }), Ce = v(() => ({
160
+ }), we = v(() => ({
160
161
  x1: o.value[0].cx,
161
162
  y1: o.value[0].cy,
162
163
  x2: o.value.at(-1).cx,
163
164
  y2: o.value.at(-1).cy
164
165
  })), S = c(!1);
165
- function we(t) {
166
+ function $e(t) {
166
167
  S.value = t, J.value += 1;
167
168
  }
168
- const $e = v(() => `${g.value.length * 150}ms`), D = c(!1);
169
- function R() {
169
+ const _e = v(() => `${g.value.length * 150}ms`), D = c(!1);
170
+ function G() {
170
171
  D.value = !D.value;
171
172
  }
172
173
  function de() {
@@ -184,20 +185,20 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
184
185
  e.value.table.columnNames.value,
185
186
  e.value.table.columnNames.percentage
186
187
  ], l = P.value.head.map((b, h) => {
187
- const F = U(
188
+ const F = B(
188
189
  e.value.style.chart.bars.dataLabels.value.formatter,
189
190
  P.value.body[h],
190
- E({
191
+ U({
191
192
  p: e.value.style.chart.bars.dataLabels.value.prefix,
192
193
  v: P.value.body[h],
193
194
  s: e.value.style.chart.bars.dataLabels.value.suffix,
194
195
  r: e.value.table.td.roundingValue
195
196
  }),
196
197
  { datapoint: o.value[h] }
197
- ), j = U(
198
+ ), j = B(
198
199
  e.value.style.chart.circles.dataLabels.formatter,
199
200
  o.value[h].proportion * 100,
200
- E({
201
+ U({
201
202
  v: o.value[h].proportion * 100,
202
203
  s: "%",
203
204
  r: e.value.table.td.roundingPercentage
@@ -234,23 +235,23 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
234
235
  };
235
236
  });
236
237
  function he() {
237
- ze(() => {
238
+ Se(() => {
238
239
  const t = P.value.head.map((r, b) => [[
239
240
  r.name
240
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);
241
242
  Ge({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-funnel" });
242
243
  });
243
244
  }
244
- function _e() {
245
+ function xe() {
245
246
  return g.value;
246
247
  }
247
248
  return ye({
248
- getData: _e,
249
+ getData: xe,
249
250
  generatePdf: ue,
250
251
  generateCsv: he,
251
252
  generateImage: ie,
252
253
  toggleTable: de,
253
- toggleAnnotator: R
254
+ toggleAnnotator: G
254
255
  }), (t, l) => (s(), u("div", {
255
256
  ref_key: "funnelChart",
256
257
  ref: N,
@@ -260,15 +261,15 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
260
261
  onMouseenter: l[1] || (l[1] = () => n(se)(!0)),
261
262
  onMouseleave: l[2] || (l[2] = () => n(se)(!1))
262
263
  }, [
263
- e.value.userOptions.buttons.annotator ? (s(), A(Xe, {
264
+ e.value.userOptions.buttons.annotator ? (s(), A(qe, {
264
265
  key: 0,
265
266
  parent: N.value,
266
267
  backgroundColor: e.value.style.chart.backgroundColor,
267
268
  color: e.value.style.chart.color,
268
269
  active: D.value,
269
- onClose: R
270
+ onClose: G
270
271
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : f("", !0),
271
- pe.value ? (s(), u("div", {
272
+ ke.value ? (s(), u("div", {
272
273
  key: 1,
273
274
  ref_key: "noTitle",
274
275
  ref: Z,
@@ -281,7 +282,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
281
282
  ref: te,
282
283
  style: "width:100%;background:transparent;padding-bottom:24px"
283
284
  }, [
284
- (s(), A(He, {
285
+ (s(), A(Xe, {
285
286
  key: `title_${K.value}`,
286
287
  config: {
287
288
  title: {
@@ -295,7 +296,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
295
296
  }
296
297
  }, null, 8, ["config"]))
297
298
  ], 512)) : f("", !0),
298
- e.value.userOptions.show && x.value && (n(oe) || n(G)) ? (s(), A(je, {
299
+ e.value.userOptions.show && x.value && (n(oe) || n(E)) ? (s(), A(He, {
299
300
  ref: "details",
300
301
  key: `user_option_${J.value}`,
301
302
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -316,16 +317,16 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
316
317
  titles: { ...e.value.userOptions.buttonTitles },
317
318
  hasAnnotator: e.value.userOptions.buttons.annotator,
318
319
  isAnnotation: D.value,
319
- onToggleAnnotator: R,
320
- onToggleFullscreen: we,
320
+ onToggleAnnotator: G,
321
+ onToggleFullscreen: $e,
321
322
  onGeneratePdf: n(ue),
322
323
  onGenerateImage: n(ie),
323
324
  onToggleTable: de,
324
325
  onGenerateCsv: he,
325
326
  style: _({
326
- visibility: n(oe) ? n(G) ? "visible" : "hidden" : "visible"
327
+ visibility: n(oe) ? n(E) ? "visible" : "hidden" : "visible"
327
328
  })
328
- }, Ae({ _: 2 }, [
329
+ }, Ne({ _: 2 }, [
329
330
  t.$slots.optionPdf ? {
330
331
  name: "optionPdf",
331
332
  fn: k(() => [
@@ -371,12 +372,14 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
371
372
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
372
373
  x.value ? (s(), u("svg", {
373
374
  key: 4,
375
+ ref_key: "svgRef",
376
+ ref: pe,
374
377
  xmlns: n(Ve),
375
378
  class: T({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
376
379
  viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
377
380
  style: _(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
378
381
  }, [
379
- Ne(Ze),
382
+ Oe(et),
380
383
  t.$slots["chart-background"] ? (s(), u("foreignObject", {
381
384
  key: 0,
382
385
  x: 0,
@@ -388,7 +391,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
388
391
  }
389
392
  }, [
390
393
  y(t.$slots, "chart-background", {}, void 0, !0)
391
- ], 8, lt)) : f("", !0),
394
+ ], 8, ot)) : f("", !0),
392
395
  C("defs", null, [
393
396
  C("linearGradient", {
394
397
  id: `funnel_area_${O.value}`,
@@ -401,18 +404,18 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
401
404
  offset: "0%",
402
405
  "stop-color": e.value.style.chart.backgroundColor,
403
406
  "stop-opacity": 0
404
- }, null, 8, ot),
407
+ }, null, 8, nt),
405
408
  C("stop", {
406
409
  offset: "20%",
407
410
  "stop-color": e.value.style.chart.area.color
408
- }, null, 8, rt),
411
+ }, null, 8, ut),
409
412
  C("stop", {
410
413
  offset: "100%",
411
414
  "stop-color": e.value.style.chart.area.color
412
- }, null, 8, nt)
413
- ], 8, st)
415
+ }, null, 8, it)
416
+ ], 8, rt)
414
417
  ]),
415
- e.value.style.chart.circleLinks.show ? (s(), u("line", q({ key: 1 }, Ce.value, {
418
+ e.value.style.chart.circleLinks.show ? (s(), u("line", q({ key: 1 }, we.value, {
416
419
  stroke: e.value.style.chart.circleLinks.color,
417
420
  "stroke-width": 12 * e.value.style.chart.circleLinks.widthRatio,
418
421
  "stroke-linecap": "round",
@@ -423,8 +426,8 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
423
426
  strokeDasharray: e.value.useCssAnimation ? p.value.height : 0,
424
427
  strokeDashoffset: e.value.useCssAnimation ? p.value.height : 0
425
428
  }
426
- }), null, 16, ut)) : f("", !0),
427
- (s(!0), u(M, null, V(o.value, ({ cx: a, cy: r, r: b, fill: h }, F) => (s(), u("circle", q({ ref_for: !0 }, { cx: a, cy: r, r: b, fill: h }, {
429
+ }), null, 16, ct)) : f("", !0),
430
+ (s(!0), u(M, null, R(o.value, ({ cx: a, cy: r, r: b, fill: h }, F) => (s(), u("circle", q({ ref_for: !0 }, { cx: a, cy: r, r: b, fill: h }, {
428
431
  stroke: e.value.style.chart.circles.stroke,
429
432
  "stroke-width": e.value.style.chart.circles.strokeWidth,
430
433
  class: {
@@ -433,8 +436,8 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
433
436
  style: {
434
437
  animationDelay: `${150 * F}ms`
435
438
  }
436
- }), null, 16, it))), 256)),
437
- (s(!0), u(M, null, V(o.value, (a, r) => (s(), u("text", {
439
+ }), null, 16, vt))), 256)),
440
+ (s(!0), u(M, null, R(o.value, (a, r) => (s(), u("text", {
438
441
  x: a.cx,
439
442
  y: a.cy + d.value.circles / 3 + e.value.style.chart.circles.dataLabels.offsetY,
440
443
  "text-anchor": "middle",
@@ -447,19 +450,19 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
447
450
  style: _({
448
451
  animationDelay: `${150 * r}ms`
449
452
  })
450
- }, B(n(U)(
453
+ }, V(n(B)(
451
454
  e.value.style.chart.circles.dataLabels.formatter,
452
455
  a.proportion * 100,
453
- n(E)({
456
+ n(U)({
454
457
  v: a.proportion * 100,
455
458
  s: "%",
456
459
  r: e.value.style.chart.circles.dataLabels.rounding
457
460
  }),
458
461
  { datapoint: a }
459
- )), 15, ct))), 256)),
462
+ )), 15, dt))), 256)),
460
463
  e.value.style.chart.area.show ? (s(), u("polygon", {
461
464
  key: 2,
462
- points: ke.value,
465
+ points: Ce.value,
463
466
  fill: `url(#funnel_area_${O.value})`,
464
467
  class: T({
465
468
  animated: e.value.useCssAnimation && !w.value
@@ -467,8 +470,8 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
467
470
  style: _({
468
471
  transition: e.value.useCssAnimation ? `all ${150 * g.value.length}ms ease-in` : "none"
469
472
  })
470
- }, null, 14, vt)) : f("", !0),
471
- (s(!0), u(M, null, V(o.value, ({ x: a, y: r, height: b, width: h, fill: F }, j) => (s(), u("rect", q({ ref_for: !0 }, { x: a, y: r, height: b, width: h, fill: F }, {
473
+ }, null, 14, ht)) : f("", !0),
474
+ (s(!0), u(M, null, R(o.value, ({ x: a, y: r, height: b, width: h, fill: F }, j) => (s(), u("rect", q({ ref_for: !0 }, { x: a, y: r, height: b, width: h, fill: F }, {
472
475
  stroke: e.value.style.chart.bars.stroke,
473
476
  "stroke-width": e.value.style.chart.bars.strokeWidth,
474
477
  rx: e.value.style.chart.bars.borderRadius,
@@ -478,8 +481,8 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
478
481
  style: {
479
482
  animationDelay: `${150 * j}ms`
480
483
  }
481
- }), null, 16, dt))), 256)),
482
- (s(!0), u(M, null, V(o.value, (a, r) => (s(), u("g", null, [
484
+ }), null, 16, ft))), 256)),
485
+ (s(!0), u(M, null, R(o.value, (a, r) => (s(), u("g", null, [
483
486
  C("text", {
484
487
  x: a.x + a.width + e.value.style.chart.bars.dataLabels.name.offsetX + 12,
485
488
  y: a.cy - d.value.names / 2 + e.value.style.chart.bars.dataLabels.name.offsetY,
@@ -493,7 +496,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
493
496
  style: _({
494
497
  animationDelay: `${150 * r}ms`
495
498
  })
496
- }, B(a.name), 15, ht),
499
+ }, V(a.name), 15, bt),
497
500
  C("text", {
498
501
  x: a.x + a.width + e.value.style.chart.bars.dataLabels.value.offsetX + 12,
499
502
  y: a.cy + d.value.values + e.value.style.chart.bars.dataLabels.value.offsetY,
@@ -507,24 +510,24 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
507
510
  style: _({
508
511
  animationDelay: `${150 * r}ms`
509
512
  })
510
- }, B(n(U)(
513
+ }, V(n(B)(
511
514
  e.value.style.chart.bars.dataLabels.value.formatter,
512
515
  a.value,
513
- n(E)({
516
+ n(U)({
514
517
  p: e.value.style.chart.bars.dataLabels.value.prefix,
515
518
  v: a.value,
516
519
  s: e.value.style.chart.bars.dataLabels.value.suffix,
517
520
  r: e.value.style.chart.bars.dataLabels.value.rounding
518
521
  }),
519
522
  { datapoint: a }
520
- )), 15, ft)
523
+ )), 15, mt)
521
524
  ]))), 256)),
522
525
  y(t.$slots, "svg", { svg: i.value }, void 0, !0)
523
- ], 14, at)) : f("", !0),
524
- t.$slots.watermark ? (s(), u("div", bt, [
526
+ ], 14, st)) : f("", !0),
527
+ t.$slots.watermark ? (s(), u("div", yt, [
525
528
  y(t.$slots, "watermark", H(X({ isPrinting: n(re) || n(ne) })), void 0, !0)
526
529
  ])) : f("", !0),
527
- x.value ? f("", !0) : (s(), A(Ke, {
530
+ x.value ? f("", !0) : (s(), A(Qe, {
528
531
  key: 6,
529
532
  config: {
530
533
  type: "verticalBar",
@@ -547,7 +550,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
547
550
  }, [
548
551
  y(t.$slots, "source", {}, void 0, !0)
549
552
  ], 512)) : f("", !0),
550
- x.value ? (s(), A(Ye, {
553
+ x.value ? (s(), A(We, {
551
554
  key: 8,
552
555
  hideDetails: "",
553
556
  config: {
@@ -564,7 +567,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
564
567
  }
565
568
  }, {
566
569
  content: k(() => [
567
- (s(), A(qe, {
570
+ (s(), A(Ye, {
568
571
  key: `table_${Q.value}`,
569
572
  colNames: I.value.colNames,
570
573
  head: I.value.head,
@@ -577,19 +580,19 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["width", "height"], st = ["i
577
580
  C("div", {
578
581
  innerHTML: a,
579
582
  style: { display: "flex", "align-items": "center" }
580
- }, null, 8, mt)
583
+ }, null, 8, gt)
581
584
  ]),
582
585
  td: k(({ td: a }) => [
583
- Oe(B(a.name ? a.name : a), 1)
586
+ ze(V(a.name ? a.name : a), 1)
584
587
  ]),
585
588
  _: 1
586
589
  }, 8, ["colNames", "head", "body", "config", "title"]))
587
590
  ]),
588
591
  _: 1
589
592
  }, 8, ["config"])) : f("", !0)
590
- ], 46, tt));
593
+ ], 46, lt));
591
594
  }
592
- }, zt = /* @__PURE__ */ et(yt, [["__scopeId", "data-v-6313f861"]]);
595
+ }, Ft = /* @__PURE__ */ at(pt, [["__scopeId", "data-v-f0e3fa4f"]]);
593
596
  export {
594
- zt as default
597
+ Ft as default
595
598
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DEnRHTzk.cjs"),W=require("./useNestedProp-BNT60LxO.cjs"),J=require("./usePrinter-dyVny55M.cjs"),ue=require("./Title-Dk92HYMu.cjs"),ie=require("./PenAndPaper-MTTJ3Gd9.cjs"),ce=require("./DataTable-Cv_TVAas.cjs"),ve=require("./vue-ui-accordion-D2qxHGzp.cjs"),K=require("./useResponsive-YQYQrAZ_.cjs"),de=require("./vue-ui-skeleton-_DN0U6W6.cjs"),he=require("./useUserOptionState-BgepsfED.cjs"),fe=require("./PackageVersion-DJKkRuOD.cjs"),me=require("./useChartAccessibility-Cm7nkzTG.cjs"),pe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),be=["id"],ye=["xmlns","viewBox"],ge=["width","height"],ke=["id"],Ce=["stop-color"],we=["stop-color"],xe=["stop-color"],Le=["stroke","stroke-width"],Be=["stroke","stroke-width"],$e=["x","y","font-size","fill","font-weight"],_e=["points","fill"],Ne=["stroke","stroke-width","rx"],Se=["x","y","font-size","fill","font-weight"],ze=["x","y","font-size","fill","font-weight"],Te={key:5,class:"vue-data-ui-watermark"},Ae=["innerHTML"],Pe={__name:"vue-ui-funnel",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(Q,{expose:Z}){e.useCssVars(a=>({"3ce0aba8":ne.value}));const{vue_ui_funnel:ee}=r.useConfig(),d=Q,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,f.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),m=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}=he.useUserOptionState({config:t.value}),{svgRef:te}=me.useChartAccessibility({config:t.value.style.chart.title});e.watch(()=>d.config,a=>{t.value=F(),_.value=!t.value.userOptions.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"}),ae=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(()=>{m.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 f=e.ref(G()),y=e.computed(()=>f.value.height/d.dataset.length),p=e.computed(()=>y.value*t.value.style.chart.bars.gapRatio),H=e.computed(()=>f.value.width*t.value.style.chart.barCircleSpacingRatio),n=e.computed(()=>h.value.map((a,o)=>{const l=y.value-p.value,s=f.value.top+p.value/2*o+(y.value-p.value/2)*o+p.value/2,v=a.value/h.value[0].value,c=(f.value.width-l-H.value)*(a.value/h.value[0].value);return{...a,cx:f.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:f.value.left+l+H.value,y:s}})),le=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}`}),oe=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 re(a){w.value=a,T.value+=1}const ne=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 se(){return h.value}return Z({getData:se,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(ie.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),ae.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(ue._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:re,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,ref_key:"svgRef",ref:te,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(fe._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,ge)):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,Ce),e.createElementVNode("stop",{offset:"20%","stop-color":t.value.style.chart.area.color},null,8,we),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.area.color},null,8,xe)],8,ke)]),t.value.style.chart.circleLinks.show?(e.openBlock(),e.createElementBlock("line",e.mergeProps({key:1},oe.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?f.value.height:0,strokeDashoffset:t.value.useCssAnimation?f.value.height:0}}),null,16,Le)):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({ref_for:!0},{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&&!m.value},style:{animationDelay:`${150*L}ms`}}),null,16,Be))),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&&!m.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,$e))),256)),t.value.style.chart.area.show?(e.openBlock(),e.createElementBlock("polygon",{key:2,points:le.value,fill:`url(#funnel_area_${k.value})`,class:e.normalizeClass({animated:t.value.useCssAnimation&&!m.value}),style:e.normalizeStyle({transition:t.value.useCssAnimation?`all ${150*h.value.length}ms ease-in`:"none"})},null,14,_e)):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({ref_for:!0},{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&&!m.value},style:{animationDelay:`${150*S}ms`}}),null,16,Ne))),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&&!m.value}),style:e.normalizeStyle({animationDelay:`${150*s}ms`})},e.toDisplayString(l.name),15,Se),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&&!m.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,ze)]))),256)),e.renderSlot(a.$slots,"svg",{svg:u.value},void 0,!0)],14,ye)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Te,[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(de.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(ve.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(ce.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,Ae)]),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,be))}},Ee=pe._export_sfc(Pe,[["__scopeId","data-v-f0e3fa4f"]]);exports.default=Ee;