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
@@ -1,781 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { At as t, Dt as n, E as r, K as i, Kt as a, Q as ee, Y as o, et as te, ft as ne, i as s, r as re, t as ie, x as ae } from "./lib-CFm_J26b.js";
3
- import { t as oe } from "./useConfig-C0V0eG7L.js";
4
- import { t as se } from "./usePrinter-BH-xle1O.js";
5
- import { t as ce } from "./useSvgExport-Ba9qBr9M.js";
6
- import { t as le } from "./useNestedProp-BY6DNN3i.js";
7
- import { t as ue } from "./useThemeCheck-C43Tcqmk.js";
8
- import { t as de } from "./img-Bikk1dGb.js";
9
- import { n as fe } from "./Title-BuPs74IB.js";
10
- import { t as pe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
11
- import { l as me, t as he } from "./useResponsive-ZtArZtUf.js";
12
- import { t as ge } from "./DefGrad-DVBqDjhO.js";
13
- import { t as _e } from "./useUserOptionState-DK-_1ddE.js";
14
- import { t as ve } from "./useChartAccessibility-DYqac8yF.js";
15
- import { t as ye } from "./vue_ui_funnel-_Og4EEkO.js";
16
- import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as be, createTextVNode as xe, createVNode as Se, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as g, nextTick as Ce, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as we, onMounted as Te, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Ee, shallowRef as De, toDisplayString as w, unref as T, useCssVars as Oe, watch as ke, withCtx as E } from "vue";
17
- //#region src/components/vue-ui-funnel.vue
18
- var Ae = /* @__PURE__ */ e({ default: () => Ue }), je = ["id"], Me = ["xmlns", "viewBox"], Ne = ["width", "height"], Pe = ["stroke", "stroke-width"], Fe = ["stroke", "stroke-width"], Ie = [
19
- "x",
20
- "y",
21
- "font-size",
22
- "fill",
23
- "font-weight"
24
- ], Le = ["points", "fill"], Re = [
25
- "stroke",
26
- "stroke-width",
27
- "rx"
28
- ], ze = [
29
- "x",
30
- "y",
31
- "font-size",
32
- "fill",
33
- "font-weight"
34
- ], Be = [
35
- "x",
36
- "y",
37
- "font-size",
38
- "fill",
39
- "font-weight"
40
- ], Ve = {
41
- key: 5,
42
- class: "vue-data-ui-watermark"
43
- }, He = ["innerHTML"], Ue = /*#__PURE__*/ pe({
44
- __name: "vue-ui-funnel",
45
- props: {
46
- config: {
47
- type: Object,
48
- default() {
49
- return {};
50
- }
51
- },
52
- dataset: {
53
- type: Array,
54
- default() {
55
- return [];
56
- }
57
- }
58
- },
59
- emits: ["copyAlt"],
60
- setup(e, { expose: pe, emit: Ae }) {
61
- Oe((e) => ({ v7c53d9b8: St.value }));
62
- let Ue = m(() => import("./BaseIcon-CP5RWnqt.js").then((e) => e.n)), We = m(() => import("./vue-ui-skeleton-COytVrfN.js").then((e) => e.n)), Ge = m(() => import("./vue-ui-accordion-UA88lv4d.js").then((e) => e.n)), Ke = m(() => import("./DataTable-DzPEVvSo.js")), qe = m(() => import("./UserOptions-DzAFK9cY.js").then((e) => e.n)), Je = m(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), Ye = m(() => import("./PackageVersion-B6Hokxw9.js").then((e) => e.t)), Xe = m(() => import("./BaseDraggableDialog-3n8udWmh.js").then((e) => e.n)), { vue_ui_funnel: Ze } = oe(), { isThemeValid: Qe, warnInvalidTheme: $e } = ue(), D = e, et = Ae, O = x(null), k = x(i()), tt = x(0), nt = x(0), rt = x(0), it = x(null), at = x(null), ot = x(null), A = De(null), j = De(null), M = x(!1), N = x(null), st = x(null), P = x(!1), F = x(!1), I = l(() => !!D.dataset && D.dataset.length);
63
- Te(ct);
64
- function ct() {
65
- if (t(D.dataset) ? te({
66
- componentName: "VueUiFunnel",
67
- type: "dataset"
68
- }) : D.dataset.forEach((e, t) => {
69
- ne({
70
- datasetObject: e,
71
- requiredAttributes: ["name", "value"]
72
- }).forEach((e) => {
73
- I.value = !1, te({
74
- componentName: "VueUiFunnel",
75
- type: "datasetSerieAttribute",
76
- property: e,
77
- index: t
78
- });
79
- });
80
- }), L.value.responsive) {
81
- let e = me(() => {
82
- let { width: e, height: t } = he({
83
- chart: O.value,
84
- title: L.value.style.chart.title.text ? ot.value : null,
85
- source: at.value,
86
- noTitle: it.value
87
- });
88
- requestAnimationFrame(() => {
89
- U.value.height = t, U.value.width = e, G.value = _t(), L.value.responsiveProportionalSizing ? (H.value.circles = a({
90
- relator: Math.min(e, t),
91
- adjuster: 600,
92
- source: L.value.style.chart.circles.dataLabels.fontSize,
93
- threshold: 10,
94
- fallback: 10
95
- }), H.value.names = a({
96
- relator: Math.min(e, t),
97
- adjuster: 600,
98
- source: L.value.style.chart.bars.dataLabels.name.fontSize,
99
- threshold: 10,
100
- fallback: 10
101
- }), H.value.values = a({
102
- relator: Math.min(e, t),
103
- adjuster: 600,
104
- source: L.value.style.chart.bars.dataLabels.value.fontSize,
105
- threshold: 10,
106
- fallback: 10
107
- })) : (H.value.circles = L.value.style.chart.circles.dataLabels.fontSize, H.value.names = L.value.style.chart.bars.dataLabels.name.fontSize, H.value.values = L.value.style.chart.bars.dataLabels.value.fontSize);
108
- });
109
- });
110
- A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect()), A.value = new ResizeObserver(e), j.value = O.value.parentNode, A.value.observe(j.value);
111
- }
112
- }
113
- we(() => {
114
- A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect());
115
- });
116
- function lt() {
117
- let e = le({
118
- userConfig: D.config,
119
- defaultConfig: Ze
120
- }), t = e.theme;
121
- if (!t) return e;
122
- if (!Qe.value(e)) return $e(e), e;
123
- let n = le({
124
- userConfig: ye[t] || D.config,
125
- defaultConfig: e
126
- });
127
- return le({
128
- userConfig: D.config,
129
- defaultConfig: n
130
- });
131
- }
132
- let L = l({
133
- get: () => lt(),
134
- set: (e) => e
135
- }), ut = l(() => L.value.userOptions.useCursorPointer), { userOptionsVisible: dt, setUserOptionsVisibility: ft, keepUserOptionState: pt } = _e({ config: L.value }), { svgRef: R } = ve({ config: L.value.style.chart.title });
136
- ke(() => D.config, (e) => {
137
- L.value = lt(), dt.value = !L.value.userOptions.showOnChartHover, ct(), nt.value += 1, rt.value += 1, H.value.circles = L.value.style.chart.circles.dataLabels.fontSize, H.value.names = L.value.style.chart.bars.dataLabels.name.fontSize, H.value.values = L.value.style.chart.bars.dataLabels.value.fontSize, V.value.showTable = L.value.table.show;
138
- }, { deep: !0 });
139
- let { isPrinting: z, isImaging: B, generatePdf: mt, generateImage: ht } = se({
140
- elementId: `funnel_${k.value}`,
141
- fileName: L.value.style.chart.title.text || "vue-ui-funnel",
142
- options: L.value.userOptions.print
143
- }), gt = l(() => L.value.userOptions.show && !L.value.style.chart.title.text), V = x({ showTable: L.value.table.show }), H = x({
144
- circles: L.value.style.chart.circles.dataLabels.fontSize,
145
- names: L.value.style.chart.bars.dataLabels.name.fontSize,
146
- values: L.value.style.chart.bars.dataLabels.value.fontSize
147
- }), U = l({
148
- get: () => ({
149
- height: L.value.style.chart.height,
150
- width: L.value.style.chart.width
151
- }),
152
- set: (e) => e
153
- }), W = l(() => I.value ? D.dataset.map((e, t) => ({
154
- ...e,
155
- color: e.color ? ae(e.color) : n(L.value.style.chart.bars.defaultColor, t / D.dataset.length)
156
- })) : []);
157
- setTimeout(() => {
158
- M.value = !0;
159
- }, W.value.length * 150);
160
- function _t() {
161
- let e = L.value.style.chart.padding.left, t = L.value.style.chart.padding.top;
162
- return {
163
- left: e,
164
- top: t,
165
- right: U.value.width - L.value.style.chart.padding.right,
166
- bottom: U.value.height - L.value.style.chart.padding.bottom,
167
- width: U.value.width - e - L.value.style.chart.padding.right,
168
- height: U.value.height - t - L.value.style.chart.padding.bottom
169
- };
170
- }
171
- let G = x(_t()), K = l(() => G.value.height / D.dataset.length), q = l(() => K.value * L.value.style.chart.bars.gapRatio), vt = l(() => G.value.width * L.value.style.chart.barCircleSpacingRatio), J = l(() => W.value.map((e, t) => {
172
- let n = K.value - q.value, r = G.value.top + q.value / 2 * t + (K.value - q.value / 2) * t + q.value / 2, i = e.value / W.value[0].value, a = (G.value.width - n - vt.value) * (e.value / W.value[0].value);
173
- return {
174
- ...e,
175
- cx: G.value.left + n / 2,
176
- cy: r + n / 2,
177
- datapointIndex: t,
178
- fill: e.color,
179
- height: Math.max(n, 0),
180
- proportion: i,
181
- r: Math.max(n / 2, 0),
182
- width: Math.max(a, 0),
183
- x: G.value.left + n + vt.value,
184
- y: r
185
- };
186
- })), yt = l(() => {
187
- let e = J.value.map((e) => `${e.x + e.width},${e.y + (K.value - q.value) / 2}`);
188
- return `${J.value[0].x},${J.value[0].y + (K.value - q.value) / 2} ${e.toString()} ${J.value.at(-1).x},${J.value.at(-1).y + (K.value - q.value) / 2}`;
189
- }), bt = l(() => ({
190
- x1: J.value[0].cx,
191
- y1: J.value[0].cy,
192
- x2: J.value.at(-1).cx,
193
- y2: J.value.at(-1).cy
194
- })), Y = x(!1);
195
- function xt(e) {
196
- Y.value = e, tt.value += 1;
197
- }
198
- let St = l(() => `${W.value.length * 150}ms`), X = x(!1);
199
- function Ct() {
200
- X.value = !X.value;
201
- }
202
- function wt() {
203
- V.value.showTable = !V.value.showTable;
204
- }
205
- let Z = l(() => ({
206
- head: W.value.map((e) => ({
207
- name: e.name,
208
- color: e.color
209
- })),
210
- body: W.value.map((e) => e.value)
211
- })), Q = l(() => {
212
- let e = [
213
- L.value.table.columnNames.series,
214
- L.value.table.columnNames.value,
215
- L.value.table.columnNames.percentage
216
- ], t = Z.value.head.map((e, t) => {
217
- let n = s(L.value.style.chart.bars.dataLabels.value.formatter, Z.value.body[t], o({
218
- p: L.value.style.chart.bars.dataLabels.value.prefix,
219
- v: Z.value.body[t],
220
- s: L.value.style.chart.bars.dataLabels.value.suffix,
221
- r: L.value.table.td.roundingValue
222
- }), { datapoint: J.value[t] }), r = s(L.value.style.chart.circles.dataLabels.formatter, J.value[t].proportion * 100, o({
223
- v: J.value[t].proportion * 100,
224
- s: "%",
225
- r: L.value.table.td.roundingPercentage
226
- }), { datapoint: J.value[t] });
227
- return [
228
- {
229
- color: e.color,
230
- name: e.name
231
- },
232
- n,
233
- r
234
- ];
235
- }), n = {
236
- th: {
237
- backgroundColor: L.value.table.th.backgroundColor,
238
- color: L.value.table.th.color,
239
- outline: L.value.table.th.outline
240
- },
241
- td: {
242
- backgroundColor: L.value.table.td.backgroundColor,
243
- color: L.value.table.td.color,
244
- outline: L.value.table.td.outline
245
- },
246
- breakpoint: L.value.table.responsiveBreakpoint
247
- };
248
- return {
249
- colNames: [
250
- L.value.table.columnNames.series,
251
- L.value.table.columnNames.value,
252
- L.value.table.columnNames.percentage
253
- ],
254
- head: e,
255
- body: t,
256
- config: n
257
- };
258
- });
259
- function Tt(e = null) {
260
- Ce(() => {
261
- let t = Z.value.head.map((e, t) => [
262
- [e.name],
263
- [Z.value.body[t]],
264
- [J.value[t].proportion * 100]
265
- ]), n = r([
266
- [L.value.style.chart.title.text],
267
- [L.value.style.chart.title.subtitle.text],
268
- [
269
- [L.value.table.columnNames.series],
270
- [L.value.table.columnNames.value],
271
- ["%"]
272
- ]
273
- ].concat(t));
274
- e ? e(n) : ee({
275
- csvContent: n,
276
- title: L.value.style.chart.title.text || "vue-ui-funnel"
277
- });
278
- });
279
- }
280
- function Et() {
281
- return W.value;
282
- }
283
- async function Dt({ scale: e = 2 } = {}) {
284
- if (!O.value) return;
285
- let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await de({
286
- domElement: O.value,
287
- base64: !0,
288
- img: !0,
289
- scale: e
290
- });
291
- return {
292
- imageUri: i,
293
- base64: a,
294
- title: L.value.style.chart.title.text,
295
- width: t,
296
- height: n,
297
- aspectRatio: r
298
- };
299
- }
300
- let $ = l(() => {
301
- let e = L.value.table.useDialog && !L.value.table.show, t = V.value.showTable;
302
- return {
303
- component: e ? Xe : Ge,
304
- title: `${L.value.style.chart.title.text}${L.value.style.chart.title.subtitle.text ? `: ${L.value.style.chart.title.subtitle.text}` : ""}`,
305
- props: e ? {
306
- backgroundColor: L.value.table.th.backgroundColor,
307
- color: L.value.table.th.color,
308
- headerColor: L.value.table.th.color,
309
- headerBg: L.value.table.th.backgroundColor,
310
- isFullscreen: Y.value,
311
- fullscreenParent: O.value,
312
- forcedWidth: Math.min(800, window.innerWidth * .8)
313
- } : {
314
- hideDetails: !0,
315
- config: {
316
- open: t,
317
- maxHeight: 1e4,
318
- body: {
319
- backgroundColor: L.value.style.chart.backgroundColor,
320
- color: L.value.style.chart.color
321
- },
322
- head: {
323
- backgroundColor: L.value.style.chart.backgroundColor,
324
- color: L.value.style.chart.color
325
- }
326
- }
327
- }
328
- };
329
- });
330
- ke(() => V.value.showTable, (e) => {
331
- L.value.table.show || (e && L.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
332
- });
333
- function Ot() {
334
- V.value.showTable = !1, st.value && st.value.setTableIconState(!1);
335
- }
336
- let kt = l(() => L.value.style.chart.backgroundColor), { exportSvg: At, getSvg: jt } = ce({
337
- svg: R,
338
- title: l(() => L.value.style.chart.title),
339
- backgroundColor: kt
340
- });
341
- async function Mt({ isCb: e }) {
342
- F.value = !0, await Ce();
343
- try {
344
- if (e) {
345
- let { blob: e, url: t, text: n, dataUrl: r } = await jt();
346
- await Promise.resolve(L.value.userOptions.callbacks.svg({
347
- blob: e,
348
- url: t,
349
- text: n,
350
- dataUrl: r
351
- }));
352
- } else await Promise.resolve(At());
353
- } finally {
354
- F.value = !1;
355
- }
356
- }
357
- function Nt(e) {
358
- if (e?.stage === "start") {
359
- P.value = !0;
360
- return;
361
- }
362
- if (e?.stage === "end") {
363
- P.value = !1;
364
- return;
365
- }
366
- ht();
367
- }
368
- async function Pt() {
369
- if (et("copyAlt", {
370
- config: L.value,
371
- dataset: W.value
372
- }), !L.value.userOptions.callbacks.altCopy) {
373
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
374
- return;
375
- }
376
- await Promise.resolve(L.value.userOptions.callbacks.altCopy({
377
- config: L.value,
378
- dataset: W.value
379
- }));
380
- }
381
- return pe({
382
- getData: Et,
383
- getImage: Dt,
384
- generatePdf: mt,
385
- generateCsv: Tt,
386
- generateImage: ht,
387
- generateSvg: Mt,
388
- toggleTable: wt,
389
- toggleAnnotator: Ct,
390
- toggleFullscreen: xt,
391
- copyAlt: Pt
392
- }), (e, t) => (b(), f("div", {
393
- ref_key: "funnelChart",
394
- ref: O,
395
- class: _(`vue-data-ui-component vue-ui-funnel ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${L.value.useCssAnimation ? "" : "vue-ui-dna"}`),
396
- style: y(`font-family:${L.value.style.fontFamily};width:100%; ${L.value.responsive ? "height:100%;" : ""} text-align:center;background:${L.value.style.chart.backgroundColor}`),
397
- id: `funnel_${k.value}`,
398
- onMouseenter: t[1] ||= () => T(ft)(!0),
399
- onMouseleave: t[2] ||= () => T(ft)(!1)
400
- }, [
401
- L.value.userOptions.buttons.annotator ? (b(), u(T(Je), {
402
- key: 0,
403
- svgRef: T(R),
404
- backgroundColor: L.value.style.chart.backgroundColor,
405
- color: L.value.style.chart.color,
406
- active: X.value,
407
- isCursorPointer: ut.value,
408
- onClose: Ct
409
- }, {
410
- "annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
411
- "annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(h({ color: t })), void 0, !0)]),
412
- "annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(h({ mode: t })), void 0, !0)]),
413
- "annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(h({ disabled: t })), void 0, !0)]),
414
- "annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(h({ disabled: t })), void 0, !0)]),
415
- "annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(h({ disabled: t })), void 0, !0)]),
416
- _: 3
417
- }, 8, [
418
- "svgRef",
419
- "backgroundColor",
420
- "color",
421
- "active",
422
- "isCursorPointer"
423
- ])) : d("", !0),
424
- gt.value ? (b(), f("div", {
425
- key: 1,
426
- ref_key: "noTitle",
427
- ref: it,
428
- class: "vue-data-ui-no-title-space",
429
- style: "height:36px; width: 100%;background:transparent"
430
- }, null, 512)) : d("", !0),
431
- L.value.style.chart.title.text ? (b(), f("div", {
432
- key: 2,
433
- ref_key: "chartTitle",
434
- ref: ot,
435
- style: "width:100%;background:transparent;padding-bottom:24px"
436
- }, [(b(), u(fe, {
437
- key: `title_${nt.value}`,
438
- config: {
439
- title: {
440
- cy: "funnel-div-title",
441
- ...L.value.style.chart.title
442
- },
443
- subtitle: {
444
- cy: "funnel-div-subtitle",
445
- ...L.value.style.chart.title.subtitle
446
- }
447
- }
448
- }, null, 8, ["config"]))], 512)) : d("", !0),
449
- L.value.userOptions.show && I.value && (T(pt) || T(dt)) ? (b(), u(T(qe), {
450
- ref_key: "userOptionsRef",
451
- ref: st,
452
- key: `user_option_${tt.value}`,
453
- backgroundColor: L.value.style.chart.backgroundColor,
454
- color: L.value.style.chart.color,
455
- isPrinting: T(z),
456
- isImaging: T(B),
457
- uid: k.value,
458
- hasTooltip: !1,
459
- hasPdf: L.value.userOptions.buttons.pdf,
460
- hasImg: L.value.userOptions.buttons.img,
461
- hasSvg: L.value.userOptions.buttons.svg,
462
- hasXls: L.value.userOptions.buttons.csv,
463
- hasTable: L.value.userOptions.buttons.table,
464
- hasLabel: !1,
465
- hasFullscreen: L.value.userOptions.buttons.fullscreen,
466
- hasAltCopy: L.value.userOptions.buttons.altCopy,
467
- isFullscreen: Y.value,
468
- chartElement: O.value,
469
- position: L.value.userOptions.position,
470
- titles: { ...L.value.userOptions.buttonTitles },
471
- hasAnnotator: L.value.userOptions.buttons.annotator,
472
- isAnnotation: X.value,
473
- callbacks: L.value.userOptions.callbacks,
474
- printScale: L.value.userOptions.print.scale,
475
- tableDialog: L.value.table.useDialog,
476
- isCursorPointer: ut.value,
477
- onToggleAnnotator: Ct,
478
- onToggleFullscreen: xt,
479
- onGeneratePdf: T(mt),
480
- onGenerateImage: Nt,
481
- onGenerateSvg: Mt,
482
- onToggleTable: wt,
483
- onGenerateCsv: Tt,
484
- onCopyAlt: Pt,
485
- style: y({ visibility: T(pt) ? T(dt) ? "visible" : "hidden" : "visible" })
486
- }, be({ _: 2 }, [
487
- e.$slots.menuIcon ? {
488
- name: "menuIcon",
489
- fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(h({
490
- isOpen: t,
491
- color: n
492
- })), void 0, !0)]),
493
- key: "0"
494
- } : void 0,
495
- e.$slots.optionPdf ? {
496
- name: "optionPdf",
497
- fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
498
- key: "1"
499
- } : void 0,
500
- e.$slots.optionCsv ? {
501
- name: "optionCsv",
502
- fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
503
- key: "2"
504
- } : void 0,
505
- e.$slots.optionImg ? {
506
- name: "optionImg",
507
- fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
508
- key: "3"
509
- } : void 0,
510
- e.$slots.optionSvg ? {
511
- name: "optionSvg",
512
- fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
513
- key: "4"
514
- } : void 0,
515
- e.$slots.optionTable ? {
516
- name: "optionTable",
517
- fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
518
- key: "5"
519
- } : void 0,
520
- e.$slots.optionFullscreen ? {
521
- name: "optionFullscreen",
522
- fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(h({
523
- toggleFullscreen: t,
524
- isFullscreen: n
525
- })), void 0, !0)]),
526
- key: "6"
527
- } : void 0,
528
- e.$slots.optionAnnotator ? {
529
- name: "optionAnnotator",
530
- fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(h({
531
- toggleAnnotator: t,
532
- isAnnotator: n
533
- })), void 0, !0)]),
534
- key: "7"
535
- } : void 0,
536
- e.$slots.optionAltCopy ? {
537
- name: "optionAltCopy",
538
- fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(h({ altCopy: t })), void 0, !0)]),
539
- key: "8"
540
- } : void 0,
541
- e.$slots["custom-menu-before"] ? {
542
- name: "custom-menu-before",
543
- fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
544
- key: "9"
545
- } : void 0,
546
- e.$slots["custom-menu-after"] ? {
547
- name: "custom-menu-after",
548
- fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
549
- key: "10"
550
- } : void 0
551
- ]), 1032, [
552
- "backgroundColor",
553
- "color",
554
- "isPrinting",
555
- "isImaging",
556
- "uid",
557
- "hasPdf",
558
- "hasImg",
559
- "hasSvg",
560
- "hasXls",
561
- "hasTable",
562
- "hasFullscreen",
563
- "hasAltCopy",
564
- "isFullscreen",
565
- "chartElement",
566
- "position",
567
- "titles",
568
- "hasAnnotator",
569
- "isAnnotation",
570
- "callbacks",
571
- "printScale",
572
- "tableDialog",
573
- "isCursorPointer",
574
- "onGeneratePdf",
575
- "style"
576
- ])) : d("", !0),
577
- I.value ? (b(), f("svg", {
578
- key: 4,
579
- ref_key: "svgRef",
580
- ref: R,
581
- xmlns: T(ie),
582
- class: _({
583
- "vue-data-ui-fullscreen--on": Y.value,
584
- "vue-data-ui-fulscreen--off": !Y.value
585
- }),
586
- viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
587
- style: y(`max-width:100%; overflow: visible; background:transparent;color:${L.value.style.chart.color}`)
588
- }, [
589
- Se(T(Ye)),
590
- e.$slots["chart-background"] ? (b(), f("foreignObject", {
591
- key: 0,
592
- x: 0,
593
- y: 0,
594
- width: U.value.width <= 0 ? 10 : U.value.width,
595
- height: U.value.height <= 0 ? 10 : U.value.height,
596
- style: { pointerEvents: "none" }
597
- }, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Ne)) : d("", !0),
598
- p("defs", null, [Se(ge, {
599
- t: "linear",
600
- id: `funnel_area_${k.value}`,
601
- x1: "0%",
602
- x2: "100%",
603
- y1: "0%",
604
- y2: "0%",
605
- stops: [
606
- [
607
- "0%",
608
- L.value.style.chart.backgroundColor,
609
- 0
610
- ],
611
- [
612
- "20%",
613
- L.value.style.chart.area.color,
614
- 1
615
- ],
616
- [
617
- "100%",
618
- L.value.style.chart.area.color,
619
- 1
620
- ]
621
- ]
622
- }, null, 8, ["id", "stops"])]),
623
- L.value.style.chart.circleLinks.show ? (b(), f("line", g({ key: 1 }, bt.value, {
624
- stroke: L.value.style.chart.circleLinks.color,
625
- "stroke-width": 12 * L.value.style.chart.circleLinks.widthRatio,
626
- "stroke-linecap": "round",
627
- class: { animated: L.value.useCssAnimation },
628
- style: {
629
- strokeDasharray: L.value.useCssAnimation ? G.value.height : 0,
630
- strokeDashoffset: L.value.useCssAnimation ? G.value.height : 0
631
- }
632
- }), null, 16, Pe)) : d("", !0),
633
- (b(!0), f(c, null, S(J.value, ({ cx: e, cy: t, r: n, fill: r }, i) => (b(), f("circle", g({ ref_for: !0 }, {
634
- cx: e,
635
- cy: t,
636
- r: n,
637
- fill: r
638
- }, {
639
- stroke: L.value.style.chart.circles.stroke,
640
- "stroke-width": L.value.style.chart.circles.strokeWidth,
641
- class: { animated: L.value.useCssAnimation && !M.value },
642
- style: { animationDelay: `${150 * i}ms` }
643
- }), null, 16, Fe))), 256)),
644
- (b(!0), f(c, null, S(J.value, (e, t) => (b(), f("text", {
645
- x: e.cx,
646
- y: e.cy + H.value.circles / 3 + L.value.style.chart.circles.dataLabels.offsetY,
647
- "text-anchor": "middle",
648
- "font-size": H.value.circles,
649
- fill: L.value.style.chart.circles.dataLabels.adaptColorToBackground ? T(re)(e.color) : L.value.style.chart.circles.dataLabels.color,
650
- "font-weight": L.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
651
- class: _({ animated: L.value.useCssAnimation && !M.value }),
652
- style: y({ animationDelay: `${150 * t}ms` })
653
- }, w(T(s)(L.value.style.chart.circles.dataLabels.formatter, e.proportion * 100, T(o)({
654
- v: e.proportion * 100,
655
- s: "%",
656
- r: L.value.style.chart.circles.dataLabels.rounding
657
- }), { datapoint: e })), 15, Ie))), 256)),
658
- L.value.style.chart.area.show ? (b(), f("polygon", {
659
- key: 2,
660
- points: yt.value,
661
- fill: `url(#funnel_area_${k.value})`,
662
- class: _({ animated: L.value.useCssAnimation && !M.value }),
663
- style: y({ transition: L.value.useCssAnimation ? `all ${150 * W.value.length}ms ease-in` : "none" })
664
- }, null, 14, Le)) : d("", !0),
665
- (b(!0), f(c, null, S(J.value, ({ x: e, y: t, height: n, width: r, fill: i }, a) => (b(), f("rect", g({ ref_for: !0 }, {
666
- x: e,
667
- y: t,
668
- height: n,
669
- width: r,
670
- fill: i
671
- }, {
672
- stroke: L.value.style.chart.bars.stroke,
673
- "stroke-width": L.value.style.chart.bars.strokeWidth,
674
- rx: L.value.style.chart.bars.borderRadius,
675
- class: { animated: L.value.useCssAnimation && !M.value },
676
- style: { animationDelay: `${150 * a}ms` }
677
- }), null, 16, Re))), 256)),
678
- (b(!0), f(c, null, S(J.value, (e, t) => (b(), f("g", null, [p("text", {
679
- x: e.x + e.width + L.value.style.chart.bars.dataLabels.name.offsetX + 12,
680
- y: e.cy - H.value.names / 2 + L.value.style.chart.bars.dataLabels.name.offsetY,
681
- "text-anchor": "start",
682
- "font-size": H.value.names,
683
- fill: L.value.style.chart.bars.dataLabels.name.color,
684
- "font-weight": L.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
685
- class: _({ animated: L.value.useCssAnimation && !M.value }),
686
- style: y({ animationDelay: `${150 * t}ms` })
687
- }, w(e.name), 15, ze), p("text", {
688
- x: e.x + e.width + L.value.style.chart.bars.dataLabels.value.offsetX + 12,
689
- y: e.cy + H.value.values + L.value.style.chart.bars.dataLabels.value.offsetY,
690
- "text-anchor": "start",
691
- "font-size": H.value.values,
692
- fill: L.value.style.chart.bars.dataLabels.value.color,
693
- "font-weight": L.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
694
- class: _({ animated: L.value.useCssAnimation && !M.value }),
695
- style: y({ animationDelay: `${150 * t}ms` })
696
- }, w(T(s)(L.value.style.chart.bars.dataLabels.value.formatter, e.value, T(o)({
697
- p: L.value.style.chart.bars.dataLabels.value.prefix,
698
- v: e.value,
699
- s: L.value.style.chart.bars.dataLabels.value.suffix,
700
- r: L.value.style.chart.bars.dataLabels.value.rounding
701
- }), { datapoint: e })), 15, Be)]))), 256)),
702
- C(e.$slots, "svg", { svg: {
703
- ...U.value,
704
- isPrintingImg: T(z) || T(B) || P.value,
705
- isPrintingSvg: F.value
706
- } }, void 0, !0)
707
- ], 14, Me)) : d("", !0),
708
- e.$slots.watermark ? (b(), f("div", Ve, [C(e.$slots, "watermark", v(h({ isPrinting: T(z) || T(B) || P.value || F.value })), void 0, !0)])) : d("", !0),
709
- I.value ? d("", !0) : (b(), u(T(We), {
710
- key: 6,
711
- config: {
712
- type: "verticalBar",
713
- style: {
714
- backgroundColor: L.value.style.chart.backgroundColor,
715
- verticalBar: {
716
- axis: { color: "#CCCCCC" },
717
- color: "#CCCCCC"
718
- }
719
- }
720
- }
721
- }, null, 8, ["config"])),
722
- e.$slots.source ? (b(), f("div", {
723
- key: 7,
724
- ref_key: "source",
725
- ref: at,
726
- dir: "auto"
727
- }, [C(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
728
- I.value && L.value.userOptions.buttons.table ? (b(), u(Ee($.value.component), g({ key: 8 }, $.value.props, {
729
- ref_key: "tableUnit",
730
- ref: N,
731
- onClose: Ot
732
- }), be({
733
- content: E(() => [(b(), u(T(Ke), {
734
- key: `table_${rt.value}`,
735
- colNames: Q.value.colNames,
736
- head: Q.value.head,
737
- body: Q.value.body,
738
- config: Q.value.config,
739
- title: L.value.table.useDialog ? "" : $.value.title,
740
- withCloseButton: !L.value.table.useDialog,
741
- onClose: Ot
742
- }, {
743
- th: E(({ th: e }) => [p("div", {
744
- innerHTML: e,
745
- style: {
746
- display: "flex",
747
- "align-items": "center"
748
- }
749
- }, null, 8, He)]),
750
- td: E(({ td: e }) => [xe(w(e.name ? e.name : e), 1)]),
751
- _: 1
752
- }, 8, [
753
- "colNames",
754
- "head",
755
- "body",
756
- "config",
757
- "title",
758
- "withCloseButton"
759
- ]))]),
760
- _: 2
761
- }, [L.value.table.useDialog ? {
762
- name: "title",
763
- fn: E(() => [xe(w($.value.title), 1)]),
764
- key: "0"
765
- } : void 0, L.value.table.useDialog ? {
766
- name: "actions",
767
- fn: E(() => [p("button", {
768
- tabindex: "0",
769
- class: "vue-ui-user-options-button",
770
- onClick: t[0] ||= (e) => Tt(L.value.userOptions.callbacks.csv)
771
- }, [Se(T(Ue), {
772
- name: "fileCsv",
773
- stroke: $.value.props.color
774
- }, null, 8, ["stroke"])])]),
775
- key: "1"
776
- } : void 0]), 1040)) : d("", !0)
777
- ], 46, je));
778
- }
779
- }, [["__scopeId", "data-v-cc4bcc61"]]);
780
- //#endregion
781
- export { Ae as n, Ue as t };