vue-data-ui 3.22.13 → 3.23.0

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 (224) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
  4. package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
  5. package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
  6. package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
  7. package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
  8. package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
  9. package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
  10. package/dist/HillActions-BWhxHlrj.js +187 -0
  11. package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
  13. package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
  14. package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
  15. package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
  16. package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
  17. package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
  18. package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
  19. package/dist/Title-BODtwViI.js +87 -0
  20. package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
  21. package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
  93. package/dist/exposedLib-DWLRqRhv.js +25 -0
  94. package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
  95. package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
  96. package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
  97. package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
  98. package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
  99. package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +493 -0
  105. package/dist/types/vue-ui-hill.d.ts +90 -0
  106. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  107. package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
  108. package/dist/useHints-Dq_w2E8B.js +66 -0
  109. package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
  110. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
  111. package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
  112. package/dist/useTransitions-g_zBREk2.js +39 -0
  113. package/dist/utils.js +14 -14
  114. package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
  115. package/dist/vue-data-ui.js +77 -76
  116. package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
  117. package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
  119. package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
  120. package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
  121. package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
  122. package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
  123. package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
  124. package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
  125. package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
  126. package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
  127. package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
  128. package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
  129. package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
  130. package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
  131. package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
  132. package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
  133. package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
  134. package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
  135. package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
  136. package/dist/vue-ui-funnel-CjYosIik.js +797 -0
  137. package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
  138. package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
  139. package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
  140. package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
  141. package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
  142. package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
  143. package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
  144. package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
  145. package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
  146. package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
  147. package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
  148. package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
  149. package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
  150. package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
  151. package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
  152. package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
  153. package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
  154. package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
  155. package/dist/vue-ui-rating--K7rX2an.js +360 -0
  156. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
  157. package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
  158. package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
  159. package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
  160. package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
  161. package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
  162. package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
  163. package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
  164. package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
  165. package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
  166. package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
  167. package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
  168. package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
  169. package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
  170. package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
  171. package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
  172. package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
  173. package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
  174. package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
  175. package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
  176. package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
  177. package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
  178. package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
  179. package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
  180. package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
  181. package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
  182. package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
  183. package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
  184. package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
  185. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  186. package/package.json +2 -2
  187. package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
  188. package/dist/Title-BuPs74IB.js +0 -87
  189. package/dist/exposedLib-Ciw6TGtP.js +0 -25
  190. package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
  191. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  192. package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
  193. package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
  194. package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
  195. package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
  196. package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
  197. package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
  198. package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
  199. package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
  200. package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
  201. package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
  202. package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
  203. package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
  204. package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
  205. package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
  206. package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
  207. package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
  208. package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
  209. package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
  210. package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
  211. package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
  212. package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
  213. package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
  214. package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
  215. package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
  216. package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
  217. package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
  218. package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
  219. package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
  220. package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
  221. package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
  222. package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
  223. package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
  224. package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
@@ -0,0 +1,797 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, D as n, Ot as r, S as i, X as a, i as o, jt as ee, pt as te, q as ne, qt as s, r as re, t as ie, tt as ae } from "./lib-BuMGJ_a0.js";
3
+ import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
4
+ import { t as ce } from "./useConfig-BilxnBNr.js";
5
+ import { t as le } from "./usePrinter-BFvi4jVy.js";
6
+ import { t as ue } from "./useSvgExport-Ba9qBr9M.js";
7
+ import { t as de } from "./useNestedProp--NSEmhOH.js";
8
+ import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as pe } from "./img-DIQG5q8T.js";
10
+ import { n as me } from "./Title-BODtwViI.js";
11
+ import { t as he } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
+ import { l as ge, t as _e } from "./useResponsive-ZtArZtUf.js";
13
+ import { t as ve } from "./DefGrad-DVBqDjhO.js";
14
+ import { t as ye } from "./useUserOptionState-DK-_1ddE.js";
15
+ import { t as be } from "./useChartAccessibility-DYqac8yF.js";
16
+ import { t as xe } from "./usePrefersMotion-BC-CsqR1.js";
17
+ import { t as Se } from "./vue_ui_funnel-_Og4EEkO.js";
18
+ import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Ce, createTextVNode as we, createVNode as Te, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as g, nextTick as Ee, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as De, onMounted as Oe, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as ke, shallowRef as Ae, toDisplayString as w, unref as T, useCssVars as je, watch as Me, withCtx as E } from "vue";
19
+ //#region src/components/vue-ui-funnel.vue
20
+ var Ne = /* @__PURE__ */ e({ default: () => Ke }), Pe = ["id"], Fe = ["xmlns", "viewBox"], Ie = ["width", "height"], Le = ["stroke", "stroke-width"], Re = ["stroke", "stroke-width"], ze = [
21
+ "x",
22
+ "y",
23
+ "font-size",
24
+ "fill",
25
+ "font-weight"
26
+ ], Be = ["points", "fill"], Ve = [
27
+ "stroke",
28
+ "stroke-width",
29
+ "rx"
30
+ ], He = [
31
+ "x",
32
+ "y",
33
+ "font-size",
34
+ "fill",
35
+ "font-weight"
36
+ ], Ue = [
37
+ "x",
38
+ "y",
39
+ "font-size",
40
+ "fill",
41
+ "font-weight"
42
+ ], We = {
43
+ key: 5,
44
+ class: "vue-data-ui-watermark"
45
+ }, Ge = ["innerHTML"], Ke = /*#__PURE__*/ he({
46
+ __name: "vue-ui-funnel",
47
+ props: {
48
+ config: {
49
+ type: Object,
50
+ default() {
51
+ return {};
52
+ }
53
+ },
54
+ dataset: {
55
+ type: Array,
56
+ default() {
57
+ return [];
58
+ }
59
+ }
60
+ },
61
+ emits: ["copyAlt"],
62
+ setup(e, { expose: he, emit: Ne }) {
63
+ je((e) => ({ v1979a330: Dt.value }));
64
+ let Ke = m(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), qe = m(() => import("./vue-ui-skeleton-B9ZP1w-i.js").then((e) => e.n)), Je = m(() => import("./vue-ui-accordion-61MlW-Ge.js").then((e) => e.n)), Ye = m(() => import("./DataTable-D4tM9s5Y.js")), Xe = m(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), Ze = m(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), Qe = m(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), $e = m(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), { vue_ui_funnel: et } = ce(), { isThemeValid: tt, warnInvalidTheme: nt } = fe(), D = xe(), O = e, rt = Ne, k = x(null), A = x(ne()), it = x(0), at = x(0), ot = x(0), st = x(null), ct = x(null), lt = x(null), j = Ae(null), M = Ae(null), N = x(!1), P = x(null), ut = x(null), F = x(!1), I = x(!1), L = l(() => !!O.dataset && O.dataset.length);
65
+ Oe(dt);
66
+ function dt() {
67
+ if (ee(O.dataset) ? ae({
68
+ componentName: "VueUiFunnel",
69
+ type: "dataset"
70
+ }) : O.dataset.forEach((e, t) => {
71
+ te({
72
+ datasetObject: e,
73
+ requiredAttributes: ["name", "value"]
74
+ }).forEach((e) => {
75
+ L.value = !1, ae({
76
+ componentName: "VueUiFunnel",
77
+ type: "datasetSerieAttribute",
78
+ property: e,
79
+ index: t
80
+ });
81
+ });
82
+ }), R.value.responsive) {
83
+ let e = ge(() => {
84
+ let { width: e, height: t } = _e({
85
+ chart: k.value,
86
+ title: R.value.style.chart.title.text ? lt.value : null,
87
+ source: ct.value,
88
+ noTitle: st.value
89
+ });
90
+ requestAnimationFrame(() => {
91
+ H.value.height = t, H.value.width = e, W.value = St(), R.value.responsiveProportionalSizing ? (V.value.circles = s({
92
+ relator: Math.min(e, t),
93
+ adjuster: 600,
94
+ source: R.value.style.chart.circles.dataLabels.fontSize,
95
+ threshold: 10,
96
+ fallback: 10
97
+ }), V.value.names = s({
98
+ relator: Math.min(e, t),
99
+ adjuster: 600,
100
+ source: R.value.style.chart.bars.dataLabels.name.fontSize,
101
+ threshold: 10,
102
+ fallback: 10
103
+ }), V.value.values = s({
104
+ relator: Math.min(e, t),
105
+ adjuster: 600,
106
+ source: R.value.style.chart.bars.dataLabels.value.fontSize,
107
+ threshold: 10,
108
+ fallback: 10
109
+ })) : (V.value.circles = R.value.style.chart.circles.dataLabels.fontSize, V.value.names = R.value.style.chart.bars.dataLabels.name.fontSize, V.value.values = R.value.style.chart.bars.dataLabels.value.fontSize);
110
+ });
111
+ });
112
+ j.value && (M.value && j.value.unobserve(M.value), j.value.disconnect()), j.value = new ResizeObserver(e), M.value = k.value.parentNode, j.value.observe(M.value);
113
+ }
114
+ }
115
+ De(() => {
116
+ j.value && (M.value && j.value.unobserve(M.value), j.value.disconnect());
117
+ });
118
+ function ft() {
119
+ let e = de({
120
+ userConfig: O.config,
121
+ defaultConfig: et
122
+ }), t = e.theme;
123
+ if (!t) return e;
124
+ if (!tt.value(e)) return nt(e), e;
125
+ let n = de({
126
+ userConfig: Se[t] || O.config,
127
+ defaultConfig: e
128
+ });
129
+ return de({
130
+ userConfig: O.config,
131
+ defaultConfig: n
132
+ });
133
+ }
134
+ let R = l({
135
+ get: () => ft(),
136
+ set: (e) => e
137
+ });
138
+ oe({
139
+ config: () => R.value,
140
+ dataset: () => O.dataset,
141
+ component: "VueUiFunnel",
142
+ rules: [se.emptyArray, {
143
+ test: (e) => e.length > 10,
144
+ message: [
145
+ "👀 The dataset has a length > 10. Consider:",
146
+ "",
147
+ "▶️ Aggregating some datapoints into broader categories"
148
+ ]
149
+ }]
150
+ });
151
+ let pt = l(() => R.value.userOptions.useCursorPointer), { userOptionsVisible: mt, setUserOptionsVisibility: ht, keepUserOptionState: gt } = ye({ config: R.value }), { svgRef: _t } = be({ config: R.value.style.chart.title });
152
+ Me(() => O.config, (e) => {
153
+ R.value = ft(), mt.value = !R.value.userOptions.showOnChartHover, dt(), at.value += 1, ot.value += 1, V.value.circles = R.value.style.chart.circles.dataLabels.fontSize, V.value.names = R.value.style.chart.bars.dataLabels.name.fontSize, V.value.values = R.value.style.chart.bars.dataLabels.value.fontSize, B.value.showTable = R.value.table.show;
154
+ }, { deep: !0 });
155
+ let { isPrinting: z, isImaging: vt, generatePdf: yt, generateImage: bt } = le({
156
+ elementId: `funnel_${A.value}`,
157
+ fileName: R.value.style.chart.title.text || "vue-ui-funnel",
158
+ options: R.value.userOptions.print
159
+ }), xt = l(() => R.value.userOptions.show && !R.value.style.chart.title.text), B = x({ showTable: R.value.table.show }), V = x({
160
+ circles: R.value.style.chart.circles.dataLabels.fontSize,
161
+ names: R.value.style.chart.bars.dataLabels.name.fontSize,
162
+ values: R.value.style.chart.bars.dataLabels.value.fontSize
163
+ }), H = l({
164
+ get: () => ({
165
+ height: R.value.style.chart.height,
166
+ width: R.value.style.chart.width
167
+ }),
168
+ set: (e) => e
169
+ }), U = l(() => L.value ? O.dataset.map((e, t) => ({
170
+ ...e,
171
+ color: e.color ? i(e.color) : r(R.value.style.chart.bars.defaultColor, t / O.dataset.length)
172
+ })) : []);
173
+ setTimeout(() => {
174
+ N.value = !0;
175
+ }, U.value.length * 150);
176
+ function St() {
177
+ let e = R.value.style.chart.padding.left, t = R.value.style.chart.padding.top;
178
+ return {
179
+ left: e,
180
+ top: t,
181
+ right: H.value.width - R.value.style.chart.padding.right,
182
+ bottom: H.value.height - R.value.style.chart.padding.bottom,
183
+ width: H.value.width - e - R.value.style.chart.padding.right,
184
+ height: H.value.height - t - R.value.style.chart.padding.bottom
185
+ };
186
+ }
187
+ let W = x(St()), G = l(() => W.value.height / O.dataset.length), K = l(() => G.value * R.value.style.chart.bars.gapRatio), Ct = l(() => W.value.width * R.value.style.chart.barCircleSpacingRatio), q = l(() => U.value.map((e, t) => {
188
+ let n = G.value - K.value, r = W.value.top + K.value / 2 * t + (G.value - K.value / 2) * t + K.value / 2, i = e.value / U.value[0].value, a = (W.value.width - n - Ct.value) * (e.value / U.value[0].value);
189
+ return {
190
+ ...e,
191
+ cx: W.value.left + n / 2,
192
+ cy: r + n / 2,
193
+ datapointIndex: t,
194
+ fill: e.color,
195
+ height: Math.max(n, 0),
196
+ proportion: i,
197
+ r: Math.max(n / 2, 0),
198
+ width: Math.max(a, 0),
199
+ x: W.value.left + n + Ct.value,
200
+ y: r
201
+ };
202
+ })), wt = l(() => {
203
+ let e = q.value.map((e) => `${e.x + e.width},${e.y + (G.value - K.value) / 2}`);
204
+ return `${q.value[0].x},${q.value[0].y + (G.value - K.value) / 2} ${e.toString()} ${q.value.at(-1).x},${q.value.at(-1).y + (G.value - K.value) / 2}`;
205
+ }), Tt = l(() => ({
206
+ x1: q.value[0].cx,
207
+ y1: q.value[0].cy,
208
+ x2: q.value.at(-1).cx,
209
+ y2: q.value.at(-1).cy
210
+ })), J = x(!1);
211
+ function Et(e) {
212
+ J.value = e, it.value += 1;
213
+ }
214
+ let Dt = l(() => `${U.value.length * 150}ms`), Y = x(!1);
215
+ function Ot() {
216
+ Y.value = !Y.value;
217
+ }
218
+ function kt() {
219
+ B.value.showTable = !B.value.showTable;
220
+ }
221
+ let X = l(() => ({
222
+ head: U.value.map((e) => ({
223
+ name: e.name,
224
+ color: e.color
225
+ })),
226
+ body: U.value.map((e) => e.value)
227
+ })), Z = l(() => {
228
+ let e = [
229
+ R.value.table.columnNames.series,
230
+ R.value.table.columnNames.value,
231
+ R.value.table.columnNames.percentage
232
+ ], t = X.value.head.map((e, t) => {
233
+ let n = o(R.value.style.chart.bars.dataLabels.value.formatter, X.value.body[t], a({
234
+ p: R.value.style.chart.bars.dataLabels.value.prefix,
235
+ v: X.value.body[t],
236
+ s: R.value.style.chart.bars.dataLabels.value.suffix,
237
+ r: R.value.table.td.roundingValue
238
+ }), { datapoint: q.value[t] }), r = o(R.value.style.chart.circles.dataLabels.formatter, q.value[t].proportion * 100, a({
239
+ v: q.value[t].proportion * 100,
240
+ s: "%",
241
+ r: R.value.table.td.roundingPercentage
242
+ }), { datapoint: q.value[t] });
243
+ return [
244
+ {
245
+ color: e.color,
246
+ name: e.name
247
+ },
248
+ n,
249
+ r
250
+ ];
251
+ }), n = {
252
+ th: {
253
+ backgroundColor: R.value.table.th.backgroundColor,
254
+ color: R.value.table.th.color,
255
+ outline: R.value.table.th.outline
256
+ },
257
+ td: {
258
+ backgroundColor: R.value.table.td.backgroundColor,
259
+ color: R.value.table.td.color,
260
+ outline: R.value.table.td.outline
261
+ },
262
+ breakpoint: R.value.table.responsiveBreakpoint
263
+ };
264
+ return {
265
+ colNames: [
266
+ R.value.table.columnNames.series,
267
+ R.value.table.columnNames.value,
268
+ R.value.table.columnNames.percentage
269
+ ],
270
+ head: e,
271
+ body: t,
272
+ config: n
273
+ };
274
+ });
275
+ function Q(e = null) {
276
+ Ee(() => {
277
+ let r = X.value.head.map((e, t) => [
278
+ [e.name],
279
+ [X.value.body[t]],
280
+ [q.value[t].proportion * 100]
281
+ ]), i = n([
282
+ [R.value.style.chart.title.text],
283
+ [R.value.style.chart.title.subtitle.text],
284
+ [
285
+ [R.value.table.columnNames.series],
286
+ [R.value.table.columnNames.value],
287
+ ["%"]
288
+ ]
289
+ ].concat(r));
290
+ e ? e(i) : t({
291
+ csvContent: i,
292
+ title: R.value.style.chart.title.text || "vue-ui-funnel"
293
+ });
294
+ });
295
+ }
296
+ function At() {
297
+ return U.value;
298
+ }
299
+ async function jt({ scale: e = 2 } = {}) {
300
+ if (!k.value) return;
301
+ let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await pe({
302
+ domElement: k.value,
303
+ base64: !0,
304
+ img: !0,
305
+ scale: e
306
+ });
307
+ return {
308
+ imageUri: i,
309
+ base64: a,
310
+ title: R.value.style.chart.title.text,
311
+ width: t,
312
+ height: n,
313
+ aspectRatio: r
314
+ };
315
+ }
316
+ let $ = l(() => {
317
+ let e = R.value.table.useDialog && !R.value.table.show, t = B.value.showTable;
318
+ return {
319
+ component: e ? $e : Je,
320
+ title: `${R.value.style.chart.title.text}${R.value.style.chart.title.subtitle.text ? `: ${R.value.style.chart.title.subtitle.text}` : ""}`,
321
+ props: e ? {
322
+ backgroundColor: R.value.table.th.backgroundColor,
323
+ color: R.value.table.th.color,
324
+ headerColor: R.value.table.th.color,
325
+ headerBg: R.value.table.th.backgroundColor,
326
+ isFullscreen: J.value,
327
+ fullscreenParent: k.value,
328
+ forcedWidth: Math.min(800, window.innerWidth * .8)
329
+ } : {
330
+ hideDetails: !0,
331
+ config: {
332
+ open: t,
333
+ maxHeight: 1e4,
334
+ body: {
335
+ backgroundColor: R.value.style.chart.backgroundColor,
336
+ color: R.value.style.chart.color
337
+ },
338
+ head: {
339
+ backgroundColor: R.value.style.chart.backgroundColor,
340
+ color: R.value.style.chart.color
341
+ }
342
+ }
343
+ }
344
+ };
345
+ });
346
+ Me(() => B.value.showTable, (e) => {
347
+ R.value.table.show || (e && R.value.table.useDialog && P.value ? P.value.open() : "close" in P.value && P.value.close());
348
+ });
349
+ function Mt() {
350
+ B.value.showTable = !1, ut.value && ut.value.setTableIconState(!1);
351
+ }
352
+ let Nt = l(() => R.value.style.chart.backgroundColor), { exportSvg: Pt, getSvg: Ft } = ue({
353
+ svg: _t,
354
+ title: l(() => R.value.style.chart.title),
355
+ backgroundColor: Nt
356
+ });
357
+ async function It({ isCb: e }) {
358
+ I.value = !0, await Ee();
359
+ try {
360
+ if (e) {
361
+ let { blob: e, url: t, text: n, dataUrl: r } = await Ft();
362
+ await Promise.resolve(R.value.userOptions.callbacks.svg({
363
+ blob: e,
364
+ url: t,
365
+ text: n,
366
+ dataUrl: r
367
+ }));
368
+ } else await Promise.resolve(Pt());
369
+ } finally {
370
+ I.value = !1;
371
+ }
372
+ }
373
+ function Lt(e) {
374
+ if (e?.stage === "start") {
375
+ F.value = !0;
376
+ return;
377
+ }
378
+ if (e?.stage === "end") {
379
+ F.value = !1;
380
+ return;
381
+ }
382
+ bt();
383
+ }
384
+ async function Rt() {
385
+ if (rt("copyAlt", {
386
+ config: R.value,
387
+ dataset: U.value
388
+ }), !R.value.userOptions.callbacks.altCopy) {
389
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
390
+ return;
391
+ }
392
+ await Promise.resolve(R.value.userOptions.callbacks.altCopy({
393
+ config: R.value,
394
+ dataset: U.value
395
+ }));
396
+ }
397
+ return he({
398
+ getData: At,
399
+ getImage: jt,
400
+ generatePdf: yt,
401
+ generateCsv: Q,
402
+ generateImage: bt,
403
+ generateSvg: It,
404
+ toggleTable: kt,
405
+ toggleAnnotator: Ot,
406
+ toggleFullscreen: Et,
407
+ copyAlt: Rt
408
+ }), (e, t) => (b(), f("div", {
409
+ ref_key: "funnelChart",
410
+ ref: k,
411
+ class: _(`vue-data-ui-component vue-ui-funnel ${J.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${R.value.useCssAnimation ? "" : "vue-ui-dna"}`),
412
+ style: y(`font-family:${R.value.style.fontFamily};width:100%; ${R.value.responsive ? "height:100%;" : ""} text-align:center;background:${R.value.style.chart.backgroundColor}`),
413
+ id: `funnel_${A.value}`,
414
+ onMouseenter: t[1] ||= () => T(ht)(!0),
415
+ onMouseleave: t[2] ||= () => T(ht)(!1)
416
+ }, [
417
+ R.value.userOptions.buttons.annotator ? (b(), u(T(Ze), {
418
+ key: 0,
419
+ svgRef: T(_t),
420
+ backgroundColor: R.value.style.chart.backgroundColor,
421
+ color: R.value.style.chart.color,
422
+ active: Y.value,
423
+ isCursorPointer: pt.value,
424
+ onClose: Ot
425
+ }, {
426
+ "annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
427
+ "annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(h({ color: t })), void 0, !0)]),
428
+ "annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(h({ mode: t })), void 0, !0)]),
429
+ "annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(h({ disabled: t })), void 0, !0)]),
430
+ "annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(h({ disabled: t })), void 0, !0)]),
431
+ "annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(h({ disabled: t })), void 0, !0)]),
432
+ _: 3
433
+ }, 8, [
434
+ "svgRef",
435
+ "backgroundColor",
436
+ "color",
437
+ "active",
438
+ "isCursorPointer"
439
+ ])) : d("", !0),
440
+ xt.value ? (b(), f("div", {
441
+ key: 1,
442
+ ref_key: "noTitle",
443
+ ref: st,
444
+ class: "vue-data-ui-no-title-space",
445
+ style: "height:36px; width: 100%;background:transparent"
446
+ }, null, 512)) : d("", !0),
447
+ R.value.style.chart.title.text ? (b(), f("div", {
448
+ key: 2,
449
+ ref_key: "chartTitle",
450
+ ref: lt,
451
+ style: "width:100%;background:transparent;padding-bottom:24px"
452
+ }, [(b(), u(me, {
453
+ key: `title_${at.value}`,
454
+ config: {
455
+ title: {
456
+ cy: "funnel-div-title",
457
+ ...R.value.style.chart.title
458
+ },
459
+ subtitle: {
460
+ cy: "funnel-div-subtitle",
461
+ ...R.value.style.chart.title.subtitle
462
+ }
463
+ }
464
+ }, null, 8, ["config"]))], 512)) : d("", !0),
465
+ R.value.userOptions.show && L.value && (T(gt) || T(mt)) ? (b(), u(T(Xe), {
466
+ ref_key: "userOptionsRef",
467
+ ref: ut,
468
+ key: `user_option_${it.value}`,
469
+ backgroundColor: R.value.style.chart.backgroundColor,
470
+ color: R.value.style.chart.color,
471
+ isPrinting: T(z),
472
+ isImaging: T(vt),
473
+ uid: A.value,
474
+ hasTooltip: !1,
475
+ hasPdf: R.value.userOptions.buttons.pdf,
476
+ hasImg: R.value.userOptions.buttons.img,
477
+ hasSvg: R.value.userOptions.buttons.svg,
478
+ hasXls: R.value.userOptions.buttons.csv,
479
+ hasTable: R.value.userOptions.buttons.table,
480
+ hasLabel: !1,
481
+ hasFullscreen: R.value.userOptions.buttons.fullscreen,
482
+ hasAltCopy: R.value.userOptions.buttons.altCopy,
483
+ isFullscreen: J.value,
484
+ chartElement: k.value,
485
+ position: R.value.userOptions.position,
486
+ titles: { ...R.value.userOptions.buttonTitles },
487
+ hasAnnotator: R.value.userOptions.buttons.annotator,
488
+ isAnnotation: Y.value,
489
+ callbacks: R.value.userOptions.callbacks,
490
+ printScale: R.value.userOptions.print.scale,
491
+ tableDialog: R.value.table.useDialog,
492
+ isCursorPointer: pt.value,
493
+ onToggleAnnotator: Ot,
494
+ onToggleFullscreen: Et,
495
+ onGeneratePdf: T(yt),
496
+ onGenerateImage: Lt,
497
+ onGenerateSvg: It,
498
+ onToggleTable: kt,
499
+ onGenerateCsv: Q,
500
+ onCopyAlt: Rt,
501
+ style: y({ visibility: T(gt) ? T(mt) ? "visible" : "hidden" : "visible" })
502
+ }, Ce({ _: 2 }, [
503
+ e.$slots.menuIcon ? {
504
+ name: "menuIcon",
505
+ fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(h({
506
+ isOpen: t,
507
+ color: n
508
+ })), void 0, !0)]),
509
+ key: "0"
510
+ } : void 0,
511
+ e.$slots.optionPdf ? {
512
+ name: "optionPdf",
513
+ fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
514
+ key: "1"
515
+ } : void 0,
516
+ e.$slots.optionCsv ? {
517
+ name: "optionCsv",
518
+ fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
519
+ key: "2"
520
+ } : void 0,
521
+ e.$slots.optionImg ? {
522
+ name: "optionImg",
523
+ fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
524
+ key: "3"
525
+ } : void 0,
526
+ e.$slots.optionSvg ? {
527
+ name: "optionSvg",
528
+ fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
529
+ key: "4"
530
+ } : void 0,
531
+ e.$slots.optionTable ? {
532
+ name: "optionTable",
533
+ fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
534
+ key: "5"
535
+ } : void 0,
536
+ e.$slots.optionFullscreen ? {
537
+ name: "optionFullscreen",
538
+ fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(h({
539
+ toggleFullscreen: t,
540
+ isFullscreen: n
541
+ })), void 0, !0)]),
542
+ key: "6"
543
+ } : void 0,
544
+ e.$slots.optionAnnotator ? {
545
+ name: "optionAnnotator",
546
+ fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(h({
547
+ toggleAnnotator: t,
548
+ isAnnotator: n
549
+ })), void 0, !0)]),
550
+ key: "7"
551
+ } : void 0,
552
+ e.$slots.optionAltCopy ? {
553
+ name: "optionAltCopy",
554
+ fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(h({ altCopy: t })), void 0, !0)]),
555
+ key: "8"
556
+ } : void 0,
557
+ e.$slots["custom-menu-before"] ? {
558
+ name: "custom-menu-before",
559
+ fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
560
+ key: "9"
561
+ } : void 0,
562
+ e.$slots["custom-menu-after"] ? {
563
+ name: "custom-menu-after",
564
+ fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
565
+ key: "10"
566
+ } : void 0
567
+ ]), 1032, [
568
+ "backgroundColor",
569
+ "color",
570
+ "isPrinting",
571
+ "isImaging",
572
+ "uid",
573
+ "hasPdf",
574
+ "hasImg",
575
+ "hasSvg",
576
+ "hasXls",
577
+ "hasTable",
578
+ "hasFullscreen",
579
+ "hasAltCopy",
580
+ "isFullscreen",
581
+ "chartElement",
582
+ "position",
583
+ "titles",
584
+ "hasAnnotator",
585
+ "isAnnotation",
586
+ "callbacks",
587
+ "printScale",
588
+ "tableDialog",
589
+ "isCursorPointer",
590
+ "onGeneratePdf",
591
+ "style"
592
+ ])) : d("", !0),
593
+ L.value ? (b(), f("svg", {
594
+ key: 4,
595
+ ref_key: "svgRef",
596
+ ref: _t,
597
+ xmlns: T(ie),
598
+ class: _({
599
+ "vue-data-ui-fullscreen--on": J.value,
600
+ "vue-data-ui-fulscreen--off": !J.value
601
+ }),
602
+ viewBox: `0 0 ${H.value.width <= 0 ? 10 : H.value.width} ${H.value.height <= 0 ? 10 : H.value.height}`,
603
+ style: y(`max-width:100%; overflow: visible; background:transparent;color:${R.value.style.chart.color}`)
604
+ }, [
605
+ Te(T(Qe)),
606
+ e.$slots["chart-background"] ? (b(), f("foreignObject", {
607
+ key: 0,
608
+ x: 0,
609
+ y: 0,
610
+ width: H.value.width <= 0 ? 10 : H.value.width,
611
+ height: H.value.height <= 0 ? 10 : H.value.height,
612
+ style: { pointerEvents: "none" }
613
+ }, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Ie)) : d("", !0),
614
+ p("defs", null, [Te(ve, {
615
+ t: "linear",
616
+ id: `funnel_area_${A.value}`,
617
+ x1: "0%",
618
+ x2: "100%",
619
+ y1: "0%",
620
+ y2: "0%",
621
+ stops: [
622
+ [
623
+ "0%",
624
+ R.value.style.chart.backgroundColor,
625
+ 0
626
+ ],
627
+ [
628
+ "20%",
629
+ R.value.style.chart.area.color,
630
+ 1
631
+ ],
632
+ [
633
+ "100%",
634
+ R.value.style.chart.area.color,
635
+ 1
636
+ ]
637
+ ]
638
+ }, null, 8, ["id", "stops"])]),
639
+ R.value.style.chart.circleLinks.show ? (b(), f("line", g({ key: 1 }, Tt.value, {
640
+ stroke: R.value.style.chart.circleLinks.color,
641
+ "stroke-width": 12 * R.value.style.chart.circleLinks.widthRatio,
642
+ "stroke-linecap": "round",
643
+ class: { animated: R.value.useCssAnimation && !T(D) },
644
+ style: {
645
+ strokeDasharray: R.value.useCssAnimation && !T(D) ? W.value.height : 0,
646
+ strokeDashoffset: R.value.useCssAnimation && !T(D) ? W.value.height : 0
647
+ }
648
+ }), null, 16, Le)) : d("", !0),
649
+ (b(!0), f(c, null, S(q.value, ({ cx: e, cy: t, r: n, fill: r }, i) => (b(), f("circle", g({ ref_for: !0 }, {
650
+ cx: e,
651
+ cy: t,
652
+ r: n,
653
+ fill: r
654
+ }, {
655
+ stroke: R.value.style.chart.circles.stroke,
656
+ "stroke-width": R.value.style.chart.circles.strokeWidth,
657
+ class: { animated: R.value.useCssAnimation && !N.value && !T(D) },
658
+ style: { animationDelay: `${150 * i}ms` }
659
+ }), null, 16, Re))), 256)),
660
+ (b(!0), f(c, null, S(q.value, (e, t) => (b(), f("text", {
661
+ x: e.cx,
662
+ y: e.cy + V.value.circles / 3 + R.value.style.chart.circles.dataLabels.offsetY,
663
+ "text-anchor": "middle",
664
+ "font-size": V.value.circles,
665
+ fill: R.value.style.chart.circles.dataLabels.adaptColorToBackground ? T(re)(e.color) : R.value.style.chart.circles.dataLabels.color,
666
+ "font-weight": R.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
667
+ class: _({ animated: R.value.useCssAnimation && !N.value && !T(D) }),
668
+ style: y({ animationDelay: `${150 * t}ms` })
669
+ }, w(T(o)(R.value.style.chart.circles.dataLabels.formatter, e.proportion * 100, T(a)({
670
+ v: e.proportion * 100,
671
+ s: "%",
672
+ r: R.value.style.chart.circles.dataLabels.rounding
673
+ }), { datapoint: e })), 15, ze))), 256)),
674
+ R.value.style.chart.area.show ? (b(), f("polygon", {
675
+ key: 2,
676
+ points: wt.value,
677
+ fill: `url(#funnel_area_${A.value})`,
678
+ class: _({ animated: R.value.useCssAnimation && !N.value && !T(D) }),
679
+ style: y({ transition: R.value.useCssAnimation ? `all ${150 * U.value.length}ms ease-in` : "none" })
680
+ }, null, 14, Be)) : d("", !0),
681
+ (b(!0), f(c, null, S(q.value, ({ x: e, y: t, height: n, width: r, fill: i }, a) => (b(), f("rect", g({ ref_for: !0 }, {
682
+ x: e,
683
+ y: t,
684
+ height: n,
685
+ width: r,
686
+ fill: i
687
+ }, {
688
+ stroke: R.value.style.chart.bars.stroke,
689
+ "stroke-width": R.value.style.chart.bars.strokeWidth,
690
+ rx: R.value.style.chart.bars.borderRadius,
691
+ class: { animated: R.value.useCssAnimation && !N.value && !T(D) },
692
+ style: { animationDelay: `${150 * a}ms` }
693
+ }), null, 16, Ve))), 256)),
694
+ (b(!0), f(c, null, S(q.value, (e, t) => (b(), f("g", null, [p("text", {
695
+ x: e.x + e.width + R.value.style.chart.bars.dataLabels.name.offsetX + 12,
696
+ y: e.cy - V.value.names / 2 + R.value.style.chart.bars.dataLabels.name.offsetY,
697
+ "text-anchor": "start",
698
+ "font-size": V.value.names,
699
+ fill: R.value.style.chart.bars.dataLabels.name.color,
700
+ "font-weight": R.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
701
+ class: _({ animated: R.value.useCssAnimation && !N.value && !T(D) }),
702
+ style: y({ animationDelay: `${150 * t}ms` })
703
+ }, w(e.name), 15, He), p("text", {
704
+ x: e.x + e.width + R.value.style.chart.bars.dataLabels.value.offsetX + 12,
705
+ y: e.cy + V.value.values + R.value.style.chart.bars.dataLabels.value.offsetY,
706
+ "text-anchor": "start",
707
+ "font-size": V.value.values,
708
+ fill: R.value.style.chart.bars.dataLabels.value.color,
709
+ "font-weight": R.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
710
+ class: _({ animated: R.value.useCssAnimation && !N.value && !T(D) }),
711
+ style: y({ animationDelay: `${150 * t}ms` })
712
+ }, w(T(o)(R.value.style.chart.bars.dataLabels.value.formatter, e.value, T(a)({
713
+ p: R.value.style.chart.bars.dataLabels.value.prefix,
714
+ v: e.value,
715
+ s: R.value.style.chart.bars.dataLabels.value.suffix,
716
+ r: R.value.style.chart.bars.dataLabels.value.rounding
717
+ }), { datapoint: e })), 15, Ue)]))), 256)),
718
+ C(e.$slots, "svg", { svg: {
719
+ ...H.value,
720
+ isPrintingImg: T(z) || T(vt) || F.value,
721
+ isPrintingSvg: I.value
722
+ } }, void 0, !0)
723
+ ], 14, Fe)) : d("", !0),
724
+ e.$slots.watermark ? (b(), f("div", We, [C(e.$slots, "watermark", v(h({ isPrinting: T(z) || T(vt) || F.value || I.value })), void 0, !0)])) : d("", !0),
725
+ L.value ? d("", !0) : (b(), u(T(qe), {
726
+ key: 6,
727
+ config: {
728
+ type: "verticalBar",
729
+ style: {
730
+ backgroundColor: R.value.style.chart.backgroundColor,
731
+ verticalBar: {
732
+ axis: { color: "#CCCCCC" },
733
+ color: "#CCCCCC"
734
+ }
735
+ }
736
+ }
737
+ }, null, 8, ["config"])),
738
+ e.$slots.source ? (b(), f("div", {
739
+ key: 7,
740
+ ref_key: "source",
741
+ ref: ct,
742
+ dir: "auto"
743
+ }, [C(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
744
+ L.value && R.value.userOptions.buttons.table ? (b(), u(ke($.value.component), g({ key: 8 }, $.value.props, {
745
+ ref_key: "tableUnit",
746
+ ref: P,
747
+ onClose: Mt
748
+ }), Ce({
749
+ content: E(() => [(b(), u(T(Ye), {
750
+ key: `table_${ot.value}`,
751
+ colNames: Z.value.colNames,
752
+ head: Z.value.head,
753
+ body: Z.value.body,
754
+ config: Z.value.config,
755
+ title: R.value.table.useDialog ? "" : $.value.title,
756
+ withCloseButton: !R.value.table.useDialog,
757
+ onClose: Mt
758
+ }, {
759
+ th: E(({ th: e }) => [p("div", {
760
+ innerHTML: e,
761
+ style: {
762
+ display: "flex",
763
+ "align-items": "center"
764
+ }
765
+ }, null, 8, Ge)]),
766
+ td: E(({ td: e }) => [we(w(e.name ? e.name : e), 1)]),
767
+ _: 1
768
+ }, 8, [
769
+ "colNames",
770
+ "head",
771
+ "body",
772
+ "config",
773
+ "title",
774
+ "withCloseButton"
775
+ ]))]),
776
+ _: 2
777
+ }, [R.value.table.useDialog ? {
778
+ name: "title",
779
+ fn: E(() => [we(w($.value.title), 1)]),
780
+ key: "0"
781
+ } : void 0, R.value.table.useDialog ? {
782
+ name: "actions",
783
+ fn: E(() => [p("button", {
784
+ tabindex: "0",
785
+ class: "vue-ui-user-options-button",
786
+ onClick: t[0] ||= (e) => Q(R.value.userOptions.callbacks.csv)
787
+ }, [Te(T(Ke), {
788
+ name: "fileCsv",
789
+ stroke: $.value.props.color
790
+ }, null, 8, ["stroke"])])]),
791
+ key: "1"
792
+ } : void 0]), 1040)) : d("", !0)
793
+ ], 46, Pe));
794
+ }
795
+ }, [["__scopeId", "data-v-7addf37e"]]);
796
+ //#endregion
797
+ export { Ne as n, Ke as t };