vue-data-ui 3.23.10 → 3.23.12

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 (200) hide show
  1. package/README.md +40 -40
  2. package/dist/{Arrow-bwmME0jw.js → Arrow-DrF4NNJO.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DBVHlhQZ.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
  4. package/dist/{BaseIcon-B4n7br_R.js → BaseIcon-BbElSC8_.js} +1 -1
  5. package/dist/{BaseLegendToggle-wRhcG_-q.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
  6. package/dist/{BaseZoomControls-BZjzzyQo.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
  7. package/dist/{ColorPicker-B9kUMLSz.js → ColorPicker-ChOgAmCi.js} +2 -2
  8. package/dist/{DataTable-DMsScfkx.js → DataTable-CmyEubtT.js} +2 -2
  9. package/dist/{HillActions-IWPfuceW.js → HillActions-3HneGJhS.js} +1 -1
  10. package/dist/{Legend-DWEFXq9E.js → Legend-BJtY2RA9.js} +2 -2
  11. package/dist/{NonSvgPenAndPaper-Crs4-xWz.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
  12. package/dist/{PackageVersion-DNTJUKh1.js → PackageVersion-CT8FfP7h.js} +1 -1
  13. package/dist/{PenAndPaper-DJ607Hx6.js → PenAndPaper-CIa1F5Jq.js} +3 -3
  14. package/dist/{Shape-BAhF1ToV.js → Shape-BAL5bQmA.js} +1 -1
  15. package/dist/{SlicerPreview-sXtk2ZZ2.js → SlicerPreview-BRRyc1p7.js} +426 -426
  16. package/dist/{SparkTooltip-BE50SZQH.js → SparkTooltip-Bou05CV_.js} +1 -1
  17. package/dist/{Title-BGLPsoA9.js → Title-CaVA8EIw.js} +1 -1
  18. package/dist/{Tooltip-DO4-MVhc.js → Tooltip-CVxJe3UW.js} +1 -1
  19. package/dist/{UserOptions-HQyukyl2.js → UserOptions-WH7-49V0.js} +2 -2
  20. package/dist/components/arrow.js +1 -1
  21. package/dist/components/vue-ui-3d-bar.js +1 -1
  22. package/dist/components/vue-ui-accordion.js +1 -1
  23. package/dist/components/vue-ui-age-pyramid.js +1 -1
  24. package/dist/components/vue-ui-annotator.js +1 -1
  25. package/dist/components/vue-ui-bullet.js +1 -1
  26. package/dist/components/vue-ui-bump.js +1 -1
  27. package/dist/components/vue-ui-candlestick.js +1 -1
  28. package/dist/components/vue-ui-carousel-table.js +1 -1
  29. package/dist/components/vue-ui-chestnut.js +1 -1
  30. package/dist/components/vue-ui-chord.js +1 -1
  31. package/dist/components/vue-ui-circle-pack.js +1 -1
  32. package/dist/components/vue-ui-cursor.js +1 -1
  33. package/dist/components/vue-ui-dag.js +1 -1
  34. package/dist/components/vue-ui-dashboard.js +1 -1
  35. package/dist/components/vue-ui-digits.js +1 -1
  36. package/dist/components/vue-ui-donut-evolution.js +1 -1
  37. package/dist/components/vue-ui-donut.js +1 -1
  38. package/dist/components/vue-ui-dumbbell.js +1 -1
  39. package/dist/components/vue-ui-flow.js +1 -1
  40. package/dist/components/vue-ui-funnel.js +1 -1
  41. package/dist/components/vue-ui-galaxy.js +1 -1
  42. package/dist/components/vue-ui-gauge.js +1 -1
  43. package/dist/components/vue-ui-geo.js +1 -1
  44. package/dist/components/vue-ui-gizmo.js +1 -1
  45. package/dist/components/vue-ui-heatmap.js +1 -1
  46. package/dist/components/vue-ui-hill.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-Cg_3vpOo.js → dom-to-png-COvyU2SG.js} +1 -1
  91. package/dist/exposedLib-DrUEXSyf.js +28 -0
  92. package/dist/{img-tU9mMt9W.js → img-Bkzj3lDD.js} +1 -1
  93. package/dist/{labelUtils-C_lMnQRs.js → labelUtils-iX76cA2-.js} +1 -1
  94. package/dist/{lib-AT2PUyyh.js → lib-Dqr_-I6Y.js} +165 -162
  95. package/dist/{package-enC-Nivt.js → package-CXgp_UWC.js} +1 -1
  96. package/dist/{pdf-ColHHJFH.js → pdf-Bk_9lTdQ.js} +1 -1
  97. package/dist/{render-common-CqcoYfCA.js → render-common-D9TESN6N.js} +12 -12
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/vue-data-ui.d.ts +13 -2
  103. package/dist/types/vue-ui-dag.d.ts +2 -0
  104. package/dist/{useNestedProp-CW0vJS1B.js → useNestedProp-CulPqtou.js} +1 -1
  105. package/dist/{usePrinter-BFS7d6eb.js → usePrinter-CEiH1b6R.js} +2 -2
  106. package/dist/utils.js +9 -9
  107. package/dist/{vue-data-ui-DD7J3yor.js → vue-data-ui-BTHfxD0A.js} +69 -69
  108. package/dist/vue-data-ui.js +73 -73
  109. package/dist/vue-ui-3d-bar-qYgLQzCk.js +1829 -0
  110. package/dist/{vue-ui-accordion-DJNjilyy.js → vue-ui-accordion-C6L7glHU.js} +3 -3
  111. package/dist/{vue-ui-age-pyramid-DI8b5E2H.js → vue-ui-age-pyramid-DlDqWHMv.js} +27 -27
  112. package/dist/{vue-ui-annotator-7ZVfFskI.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
  113. package/dist/vue-ui-bullet-KPROgHpN.js +700 -0
  114. package/dist/{vue-ui-bump-DzB3WQnq.js → vue-ui-bump-_ccDjRda.js} +237 -237
  115. package/dist/{vue-ui-candlestick--YWEtek_.js → vue-ui-candlestick-C_21KIXE.js} +245 -245
  116. package/dist/{vue-ui-carousel-table-Dn3RZU0p.js → vue-ui-carousel-table--JukD8gC.js} +108 -108
  117. package/dist/{vue-ui-chestnut-BIsXeXiU.js → vue-ui-chestnut-BWvgfxnY.js} +86 -86
  118. package/dist/vue-ui-chord-CGkWt2XK.js +1345 -0
  119. package/dist/vue-ui-circle-pack-BWaN2mEB.js +1633 -0
  120. package/dist/{vue-ui-cursor-C-P2D5i6.js → vue-ui-cursor-YbxnsOd1.js} +3 -3
  121. package/dist/{vue-ui-dag-CThnMMWA.js → vue-ui-dag-B-X2eE3W.js} +923 -885
  122. package/dist/{vue-ui-dashboard-D0NNTRO3.js → vue-ui-dashboard-DgayqETw.js} +69 -69
  123. package/dist/{vue-ui-digits-9tGjGzZh.js → vue-ui-digits-1ULOKtDh.js} +3 -3
  124. package/dist/{vue-ui-donut-EZu8p7HF.js → vue-ui-donut-Bz2ZI_vO.js} +85 -85
  125. package/dist/{vue-ui-donut-DLN9uPOi.js → vue-ui-donut-Ci2MsJLu.js} +64 -64
  126. package/dist/{vue-ui-donut-evolution-mu-iGTIn.js → vue-ui-donut-evolution-Bo54mlFQ.js} +347 -347
  127. package/dist/{vue-ui-dumbbell-Dvldi3Oo.js → vue-ui-dumbbell-D2bJ_P7K.js} +229 -229
  128. package/dist/vue-ui-flow-D9m-k3tM.js +1214 -0
  129. package/dist/vue-ui-funnel-DyETq2KE.js +747 -0
  130. package/dist/{vue-ui-galaxy-D6eYN8Ut.js → vue-ui-galaxy-pjGKZLrq.js} +64 -64
  131. package/dist/vue-ui-gauge-BO5lLCyJ.js +932 -0
  132. package/dist/{vue-ui-geo-CQqNemR6.js → vue-ui-geo-DpyLvk_B.js} +34 -34
  133. package/dist/{vue-ui-gizmo-ClunTUxX.js → vue-ui-gizmo-CUl8dgmV.js} +10 -10
  134. package/dist/{vue-ui-heatmap-B_pSQNzO.js → vue-ui-heatmap-CiV3kCrx.js} +472 -472
  135. package/dist/{vue-ui-hill-Byp0Tnny.js → vue-ui-hill-CkMtYGo2.js} +10 -10
  136. package/dist/vue-ui-history-plot-X2gQI4TY.js +1695 -0
  137. package/dist/vue-ui-horizontal-bar-DVT1wthh.js +1708 -0
  138. package/dist/{vue-ui-kpi-BKw5t-rX.js → vue-ui-kpi-CWPmkLKR.js} +3 -3
  139. package/dist/{vue-ui-mini-loader-BNm0MQDw.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
  140. package/dist/{vue-ui-molecule-DRwQV5hN.js → vue-ui-molecule-DnW5HYZP.js} +176 -176
  141. package/dist/{vue-ui-mood-radar-Bj3KTWYj.js → vue-ui-mood-radar-FovwTDLw.js} +20 -20
  142. package/dist/{vue-ui-nested-donuts-83Wh2w6z.js → vue-ui-nested-donuts-DHCOlxTO.js} +104 -104
  143. package/dist/vue-ui-onion-CzAEqZ0B.js +1233 -0
  144. package/dist/vue-ui-parallel-coordinate-plot-BZN75P6u.js +1430 -0
  145. package/dist/{vue-ui-quadrant-_J-Qr7-K.js → vue-ui-quadrant-CNeP5WEC.js} +32 -32
  146. package/dist/{vue-ui-quick-chart-DcOUq4ym.js → vue-ui-quick-chart-Bnj8oh82.js} +153 -153
  147. package/dist/{vue-ui-radar-FlRlsoAd.js → vue-ui-radar-DMyMAtx7.js} +41 -41
  148. package/dist/{vue-ui-rating-eCxEZD8C.js → vue-ui-rating-dBCk6ECe.js} +26 -26
  149. package/dist/vue-ui-relation-circle-DFj5V39I.js +903 -0
  150. package/dist/vue-ui-ridgeline-BaplQZZK.js +1614 -0
  151. package/dist/vue-ui-rings-B9QJ1Rnb.js +1250 -0
  152. package/dist/vue-ui-scatter-UH0wqUO5.js +2403 -0
  153. package/dist/{vue-ui-skeleton-CNOam3kC.js → vue-ui-skeleton-DkoEclfa.js} +3 -3
  154. package/dist/{vue-ui-smiley-YdyidjBH.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
  155. package/dist/{vue-ui-spark-trend-CS5GLtYL.js → vue-ui-spark-trend-BW8WYOva.js} +23 -23
  156. package/dist/{vue-ui-sparkbar-DDHwgP4k.js → vue-ui-sparkbar-ADRsH-GZ.js} +24 -24
  157. package/dist/{vue-ui-sparkgauge-BcQu9V3h.js → vue-ui-sparkgauge-BYs1L6I7.js} +61 -61
  158. package/dist/{vue-ui-sparkhistogram-CPsA5P6c.js → vue-ui-sparkhistogram-D1Paq9X0.js} +15 -15
  159. package/dist/vue-ui-sparkline-D2Hf_NP-.js +1584 -0
  160. package/dist/{vue-ui-sparkstackbar-4tsTxMe2.js → vue-ui-sparkstackbar-Uy6Q0X15.js} +207 -207
  161. package/dist/vue-ui-stackbar-Vt9AjazE.js +2332 -0
  162. package/dist/{vue-ui-stackline-BNCWO_jG.js → vue-ui-stackline-CBIGhWpn.js} +605 -605
  163. package/dist/{vue-ui-strip-plot-2Y1c02Ek.js → vue-ui-strip-plot-DhZV1Sl6.js} +57 -57
  164. package/dist/vue-ui-table-DqMxdgj4.js +1352 -0
  165. package/dist/{vue-ui-table-heatmap-BacaEjQy.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
  166. package/dist/{vue-ui-table-sparkline-B8oAU5yr.js → vue-ui-table-sparkline-2KZ2UoEA.js} +11 -11
  167. package/dist/vue-ui-thermometer-mVP2GqO7.js +756 -0
  168. package/dist/{vue-ui-timer-CWZgSpP8.js → vue-ui-timer-CGrqG8H3.js} +12 -12
  169. package/dist/{vue-ui-tiremarks-LLVCPyg9.js → vue-ui-tiremarks-DyFUPB5s.js} +12 -12
  170. package/dist/{vue-ui-treemap-ehBl9JMC.js → vue-ui-treemap-BVFHSTfq.js} +44 -44
  171. package/dist/vue-ui-waffle-DNZsc5x0.js +1619 -0
  172. package/dist/{vue-ui-wheel-C4OHPrtC.js → vue-ui-wheel-Cg4oNFmH.js} +28 -28
  173. package/dist/{vue-ui-word-cloud-CDHn3Kwa.js → vue-ui-word-cloud-CUf1h_L1.js} +32 -32
  174. package/dist/{vue-ui-world-ao1xf04I.js → vue-ui-world-CIcrI3zP.js} +116 -116
  175. package/dist/{vue-ui-xy-DmJDCl3c.js → vue-ui-xy-8V-CU7No.js} +99 -99
  176. package/dist/{vue-ui-xy-_U3wmtCf.js → vue-ui-xy-CJ5ZixIL.js} +304 -304
  177. package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
  178. package/package.json +1 -1
  179. package/dist/exposedLib-vfRiIvq_.js +0 -28
  180. package/dist/vue-ui-3d-bar-DgrcdAgz.js +0 -1829
  181. package/dist/vue-ui-bullet-Dyd5F1Wa.js +0 -700
  182. package/dist/vue-ui-chord-BimXqVsF.js +0 -1345
  183. package/dist/vue-ui-circle-pack-DKQEhL-L.js +0 -1633
  184. package/dist/vue-ui-flow-DYZBT5Cb.js +0 -1214
  185. package/dist/vue-ui-funnel--NaxO0cZ.js +0 -747
  186. package/dist/vue-ui-gauge-DTIEl2Xb.js +0 -932
  187. package/dist/vue-ui-history-plot-CMu8ST1E.js +0 -1695
  188. package/dist/vue-ui-horizontal-bar-BQn7WxQ-.js +0 -1708
  189. package/dist/vue-ui-onion-C27GpneA.js +0 -1233
  190. package/dist/vue-ui-parallel-coordinate-plot-BklOszr1.js +0 -1430
  191. package/dist/vue-ui-relation-circle-DnsxHv7t.js +0 -903
  192. package/dist/vue-ui-ridgeline-TopTLyaE.js +0 -1614
  193. package/dist/vue-ui-rings-obVfb09j.js +0 -1250
  194. package/dist/vue-ui-scatter-BHSuA506.js +0 -2403
  195. package/dist/vue-ui-sparkline-CnbO-GkM.js +0 -1584
  196. package/dist/vue-ui-stackbar-2_SrMFNT.js +0 -2332
  197. package/dist/vue-ui-table-DJZxHo5N.js +0 -1352
  198. package/dist/vue-ui-thermometer-BGtxNU9T.js +0 -756
  199. package/dist/vue-ui-waffle-DpBAXbhh.js +0 -1610
  200. package/dist/vue-ui-xy-canvas-Bx-9y53V.js +0 -1823
@@ -1,747 +0,0 @@
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 re, r as ie, t as ae, tt as oe } from "./lib-AT2PUyyh.js";
3
- import { n as se, t as ce } from "./useHints-Dq_w2E8B.js";
4
- import { t as le } from "./useConfig-DwdGsXTx.js";
5
- import { t as ue } from "./usePrinter-BFS7d6eb.js";
6
- import { t as de } from "./useNestedProp-CW0vJS1B.js";
7
- import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
8
- import { t as pe } from "./useChartExport-DNiwdPmb.js";
9
- import { t as me } from "./img-tU9mMt9W.js";
10
- import { n as he } from "./Title-BGLPsoA9.js";
11
- import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { l as _e, t as ve } from "./useResponsive-ZtArZtUf.js";
13
- import { t as ye } from "./DefGrad-DVBqDjhO.js";
14
- import { t as be } from "./useUserOptionState-DK-_1ddE.js";
15
- import { t as xe } from "./useChartAccessibility-DYqac8yF.js";
16
- import { t as Se } from "./usePrefersMotion-BC-CsqR1.js";
17
- import { t as Ce } from "./vue_ui_funnel-_Og4EEkO.js";
18
- import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as we, createTextVNode as Te, createVNode as Ee, defineAsyncComponent as p, guardReactiveProps as m, mergeProps as h, nextTick as De, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as Oe, onMounted as ke, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as Ae, shallowRef as je, toDisplayString as C, unref as w, useCssVars as Me, watch as Ne, withCtx as T } from "vue";
19
- //#region src/components/vue-ui-funnel.vue
20
- var Pe = /* @__PURE__ */ e({ default: () => qe }), Fe = ["id"], Ie = ["xmlns", "viewBox"], Le = ["width", "height"], Re = ["stroke", "stroke-width"], ze = ["stroke", "stroke-width"], Be = [
21
- "x",
22
- "y",
23
- "font-size",
24
- "fill",
25
- "font-weight"
26
- ], Ve = ["points", "fill"], He = [
27
- "stroke",
28
- "stroke-width",
29
- "rx"
30
- ], Ue = [
31
- "x",
32
- "y",
33
- "font-size",
34
- "fill",
35
- "font-weight"
36
- ], We = [
37
- "x",
38
- "y",
39
- "font-size",
40
- "fill",
41
- "font-weight"
42
- ], Ge = {
43
- key: 5,
44
- class: "vue-data-ui-watermark"
45
- }, Ke = { style: {
46
- display: "flex",
47
- "align-items": "center"
48
- } }, qe = /*#__PURE__*/ ge({
49
- __name: "vue-ui-funnel",
50
- props: {
51
- config: {
52
- type: Object,
53
- default() {
54
- return {};
55
- }
56
- },
57
- dataset: {
58
- type: Array,
59
- default() {
60
- return [];
61
- }
62
- }
63
- },
64
- emits: ["copyAlt"],
65
- setup(e, { expose: ge, emit: Pe }) {
66
- Me((e) => ({ v369c26dc: Tt.value }));
67
- let qe = p(() => import("./BaseIcon-B4n7br_R.js").then((e) => e.n)), Je = p(() => import("./vue-ui-skeleton-CNOam3kC.js").then((e) => e.n)), Ye = p(() => import("./vue-ui-accordion-DJNjilyy.js").then((e) => e.n)), Xe = p(() => import("./DataTable-DMsScfkx.js")), Ze = p(() => import("./UserOptions-HQyukyl2.js").then((e) => e.n)), Qe = p(() => import("./PenAndPaper-DJ607Hx6.js").then((e) => e.t)), $e = p(() => import("./PackageVersion-DNTJUKh1.js").then((e) => e.t)), et = p(() => import("./BaseDraggableDialog-DBVHlhQZ.js").then((e) => e.n)), { vue_ui_funnel: tt } = le(), { isThemeValid: nt, warnInvalidTheme: rt } = fe(), E = Se(), D = e, it = Pe, O = b(null), k = b(ne()), at = b(0), ot = b(0), st = b(0), ct = b(null), lt = b(null), ut = b(null), A = je(null), j = je(null), M = b(!1), N = b(null), P = b(null), F = c(() => !!D.dataset && D.dataset.length);
68
- ke(pt), Oe(() => {
69
- A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect());
70
- });
71
- function dt() {
72
- let e = de({
73
- userConfig: D.config,
74
- defaultConfig: tt
75
- }), t = e.theme;
76
- if (!t) return e;
77
- if (!nt.value(e)) return rt(e), e;
78
- let n = de({
79
- userConfig: Ce[t] || D.config,
80
- defaultConfig: e
81
- });
82
- return de({
83
- userConfig: D.config,
84
- defaultConfig: n
85
- });
86
- }
87
- let I = c({
88
- get: () => dt(),
89
- set: (e) => e
90
- }), ft = c(() => I.value.debug);
91
- function pt() {
92
- if (ee(D.dataset) ? oe({
93
- componentName: "VueUiFunnel",
94
- type: "dataset",
95
- debug: ft.value
96
- }) : D.dataset.forEach((e, t) => {
97
- te({
98
- datasetObject: e,
99
- requiredAttributes: ["name", "value"]
100
- }).forEach((e) => {
101
- F.value = !1, oe({
102
- componentName: "VueUiFunnel",
103
- type: "datasetSerieAttribute",
104
- property: e,
105
- index: t,
106
- debug: ft.value
107
- });
108
- });
109
- }), I.value.responsive) {
110
- let e = _e(() => {
111
- let { width: e, height: t } = ve({
112
- chart: O.value,
113
- title: I.value.style.chart.title.text ? ut.value : null,
114
- source: lt.value,
115
- noTitle: ct.value
116
- });
117
- requestAnimationFrame(() => {
118
- U.value.height = t, U.value.width = e, G.value = bt(), I.value.responsiveProportionalSizing ? (H.value.circles = re({
119
- relator: Math.min(e, t),
120
- adjuster: 600,
121
- source: I.value.style.chart.circles.dataLabels.fontSize,
122
- threshold: 10,
123
- fallback: 10
124
- }), H.value.names = re({
125
- relator: Math.min(e, t),
126
- adjuster: 600,
127
- source: I.value.style.chart.bars.dataLabels.name.fontSize,
128
- threshold: 10,
129
- fallback: 10
130
- }), H.value.values = re({
131
- relator: Math.min(e, t),
132
- adjuster: 600,
133
- source: I.value.style.chart.bars.dataLabels.value.fontSize,
134
- threshold: 10,
135
- fallback: 10
136
- })) : (H.value.circles = I.value.style.chart.circles.dataLabels.fontSize, H.value.names = I.value.style.chart.bars.dataLabels.name.fontSize, H.value.values = I.value.style.chart.bars.dataLabels.value.fontSize);
137
- });
138
- });
139
- 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);
140
- }
141
- }
142
- se({
143
- config: () => I.value,
144
- dataset: () => D.dataset,
145
- component: "VueUiFunnel",
146
- rules: [ce.emptyArray, {
147
- test: (e) => e.length > 10,
148
- message: [
149
- "👀 The dataset has a length > 10. Consider:",
150
- "",
151
- "▶️ Aggregating some datapoints into broader categories"
152
- ]
153
- }]
154
- });
155
- let mt = c(() => I.value.userOptions.useCursorPointer), { userOptionsVisible: L, setUserOptionsVisibility: ht, keepUserOptionState: gt } = be({ config: I.value }), { svgRef: R } = xe({ config: I.value.style.chart.title });
156
- Ne(() => D.config, (e) => {
157
- I.value = dt(), L.value = !I.value.userOptions.showOnChartHover, pt(), ot.value += 1, st.value += 1, H.value.circles = I.value.style.chart.circles.dataLabels.fontSize, H.value.names = I.value.style.chart.bars.dataLabels.name.fontSize, H.value.values = I.value.style.chart.bars.dataLabels.value.fontSize, V.value.showTable = I.value.table.show;
158
- }, { deep: !0 });
159
- let { isPrinting: z, isImaging: B, generatePdf: _t, generateImage: vt } = ue({
160
- elementId: `funnel_${k.value}`,
161
- fileName: I.value.style.chart.title.text || "vue-ui-funnel",
162
- options: I.value.userOptions.print
163
- }), yt = c(() => I.value.userOptions.show && !I.value.style.chart.title.text), V = b({ showTable: I.value.table.show }), H = b({
164
- circles: I.value.style.chart.circles.dataLabels.fontSize,
165
- names: I.value.style.chart.bars.dataLabels.name.fontSize,
166
- values: I.value.style.chart.bars.dataLabels.value.fontSize
167
- }), U = c({
168
- get: () => ({
169
- height: I.value.style.chart.height,
170
- width: I.value.style.chart.width
171
- }),
172
- set: (e) => e
173
- }), W = c(() => F.value ? D.dataset.map((e, t) => ({
174
- ...e,
175
- color: e.color ? i(e.color) : r(I.value.style.chart.bars.defaultColor, t / D.dataset.length)
176
- })) : []);
177
- setTimeout(() => {
178
- M.value = !0;
179
- }, W.value.length * 150);
180
- function bt() {
181
- let e = I.value.style.chart.padding.left, t = I.value.style.chart.padding.top;
182
- return {
183
- left: e,
184
- top: t,
185
- right: U.value.width - I.value.style.chart.padding.right,
186
- bottom: U.value.height - I.value.style.chart.padding.bottom,
187
- width: U.value.width - e - I.value.style.chart.padding.right,
188
- height: U.value.height - t - I.value.style.chart.padding.bottom
189
- };
190
- }
191
- let G = b(bt()), K = c(() => G.value.height / D.dataset.length), q = c(() => K.value * I.value.style.chart.bars.gapRatio), xt = c(() => G.value.width * I.value.style.chart.barCircleSpacingRatio), J = c(() => W.value.map((e, t) => {
192
- 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 - xt.value) * (e.value / W.value[0].value);
193
- return {
194
- ...e,
195
- cx: G.value.left + n / 2,
196
- cy: r + n / 2,
197
- datapointIndex: t,
198
- fill: e.color,
199
- height: Math.max(n, 0),
200
- proportion: i,
201
- r: Math.max(n / 2, 0),
202
- width: Math.max(a, 0),
203
- x: G.value.left + n + xt.value,
204
- y: r
205
- };
206
- })), St = c(() => {
207
- let e = J.value.map((e) => `${e.x + e.width},${e.y + (K.value - q.value) / 2}`);
208
- 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}`;
209
- }), Ct = c(() => ({
210
- x1: J.value[0].cx,
211
- y1: J.value[0].cy,
212
- x2: J.value.at(-1).cx,
213
- y2: J.value.at(-1).cy
214
- })), Y = b(!1);
215
- function wt(e) {
216
- Y.value = e, at.value += 1;
217
- }
218
- let Tt = c(() => `${W.value.length * 150}ms`), X = b(!1);
219
- function Et() {
220
- X.value = !X.value;
221
- }
222
- function Dt() {
223
- V.value.showTable = !V.value.showTable;
224
- }
225
- let Z = c(() => ({
226
- head: W.value.map((e) => ({
227
- name: e.name,
228
- color: e.color
229
- })),
230
- body: W.value.map((e) => e.value)
231
- })), Q = c(() => {
232
- let e = [
233
- I.value.table.columnNames.series,
234
- I.value.table.columnNames.value,
235
- I.value.table.columnNames.percentage
236
- ], t = Z.value.head.map((e, t) => {
237
- let n = o(I.value.style.chart.bars.dataLabels.value.formatter, Z.value.body[t], a({
238
- p: I.value.style.chart.bars.dataLabels.value.prefix,
239
- v: Z.value.body[t],
240
- s: I.value.style.chart.bars.dataLabels.value.suffix,
241
- r: I.value.table.td.roundingValue
242
- }), { datapoint: J.value[t] }), r = o(I.value.style.chart.circles.dataLabels.formatter, J.value[t].proportion * 100, a({
243
- v: J.value[t].proportion * 100,
244
- s: "%",
245
- r: I.value.table.td.roundingPercentage
246
- }), { datapoint: J.value[t] });
247
- return [
248
- {
249
- color: e.color,
250
- name: e.name
251
- },
252
- n,
253
- r
254
- ];
255
- }), n = {
256
- th: {
257
- backgroundColor: I.value.table.th.backgroundColor,
258
- color: I.value.table.th.color,
259
- outline: I.value.table.th.outline
260
- },
261
- td: {
262
- backgroundColor: I.value.table.td.backgroundColor,
263
- color: I.value.table.td.color,
264
- outline: I.value.table.td.outline
265
- },
266
- breakpoint: I.value.table.responsiveBreakpoint
267
- };
268
- return {
269
- colNames: [
270
- I.value.table.columnNames.series,
271
- I.value.table.columnNames.value,
272
- I.value.table.columnNames.percentage
273
- ],
274
- head: e,
275
- body: t,
276
- config: n
277
- };
278
- });
279
- function Ot(e = null) {
280
- De(() => {
281
- let r = Z.value.head.map((e, t) => [
282
- [e.name],
283
- [Z.value.body[t]],
284
- [J.value[t].proportion * 100]
285
- ]), i = [
286
- [I.value.style.chart.title.text],
287
- [I.value.style.chart.title.subtitle.text],
288
- [
289
- [I.value.table.columnNames.series],
290
- [I.value.table.columnNames.value],
291
- ["%"]
292
- ]
293
- ].concat(r), a = n(i);
294
- e ? e(a) : t({
295
- csvContent: a,
296
- title: I.value.style.chart.title.text || "vue-ui-funnel"
297
- });
298
- });
299
- }
300
- function kt() {
301
- return W.value;
302
- }
303
- async function At({ scale: e = 2 } = {}) {
304
- if (!O.value) return;
305
- let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
306
- domElement: O.value,
307
- base64: !0,
308
- img: !0,
309
- scale: e
310
- });
311
- return {
312
- imageUri: i,
313
- base64: a,
314
- title: I.value.style.chart.title.text,
315
- width: t,
316
- height: n,
317
- aspectRatio: r
318
- };
319
- }
320
- let $ = c(() => {
321
- let e = I.value.table.useDialog && !I.value.table.show, t = V.value.showTable;
322
- return {
323
- component: e ? et : Ye,
324
- title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
325
- props: e ? {
326
- backgroundColor: I.value.table.th.backgroundColor,
327
- color: I.value.table.th.color,
328
- headerColor: I.value.table.th.color,
329
- headerBg: I.value.table.th.backgroundColor,
330
- isFullscreen: Y.value,
331
- fullscreenParent: O.value,
332
- forcedWidth: Math.min(800, window.innerWidth * .8)
333
- } : {
334
- hideDetails: !0,
335
- config: {
336
- open: t,
337
- maxHeight: 1e4,
338
- body: {
339
- backgroundColor: I.value.style.chart.backgroundColor,
340
- color: I.value.style.chart.color
341
- },
342
- head: {
343
- backgroundColor: I.value.style.chart.backgroundColor,
344
- color: I.value.style.chart.color
345
- }
346
- }
347
- }
348
- };
349
- });
350
- Ne(() => V.value.showTable, (e) => {
351
- I.value.table.show || (e && I.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
352
- });
353
- function jt() {
354
- V.value.showTable = !1, P.value && P.value.setTableIconState(!1);
355
- }
356
- let Mt = c(() => I.value.style.chart.backgroundColor), Nt = c(() => I.value.style.chart.title), { isCallbackImaging: Pt, isCallbackSvg: Ft, generateSvg: It, onGenerateImage: Lt } = pe({
357
- svg: R,
358
- title: Nt,
359
- legend: null,
360
- legendItems: null,
361
- backgroundColor: Mt,
362
- getSvgCallback: () => I.value.userOptions.callbacks.svg,
363
- generateImage: vt
364
- });
365
- async function Rt() {
366
- if (it("copyAlt", {
367
- config: I.value,
368
- dataset: W.value
369
- }), !I.value.userOptions.callbacks.altCopy) {
370
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
371
- return;
372
- }
373
- await Promise.resolve(I.value.userOptions.callbacks.altCopy({
374
- config: I.value,
375
- dataset: W.value
376
- }));
377
- }
378
- return ge({
379
- getData: kt,
380
- getImage: At,
381
- generatePdf: _t,
382
- generateCsv: Ot,
383
- generateImage: vt,
384
- generateSvg: It,
385
- toggleTable: Dt,
386
- toggleAnnotator: Et,
387
- toggleFullscreen: wt,
388
- copyAlt: Rt
389
- }), (e, t) => (y(), d("div", {
390
- ref_key: "funnelChart",
391
- ref: O,
392
- class: g(`vue-data-ui-component vue-ui-funnel ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
393
- style: v(`font-family:${I.value.style.fontFamily};width:100%; ${I.value.responsive ? "height:100%;" : ""} text-align:center;background:${I.value.style.chart.backgroundColor}`),
394
- id: `funnel_${k.value}`,
395
- onMouseenter: t[1] ||= () => w(ht)(!0),
396
- onMouseleave: t[2] ||= () => w(ht)(!1)
397
- }, [
398
- I.value.userOptions.buttons.annotator ? (y(), l(w(Qe), {
399
- key: 0,
400
- svgRef: w(R),
401
- backgroundColor: I.value.style.chart.backgroundColor,
402
- color: I.value.style.chart.color,
403
- active: X.value,
404
- isCursorPointer: mt.value,
405
- onClose: Et
406
- }, {
407
- "annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
408
- "annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(m({ color: t })), void 0, !0)]),
409
- "annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", _(m({ mode: t })), void 0, !0)]),
410
- "annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", _(m({ disabled: t })), void 0, !0)]),
411
- "annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", _(m({ disabled: t })), void 0, !0)]),
412
- "annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", _(m({ disabled: t })), void 0, !0)]),
413
- _: 3
414
- }, 8, [
415
- "svgRef",
416
- "backgroundColor",
417
- "color",
418
- "active",
419
- "isCursorPointer"
420
- ])) : u("", !0),
421
- yt.value ? (y(), d("div", {
422
- key: 1,
423
- ref_key: "noTitle",
424
- ref: ct,
425
- class: "vue-data-ui-no-title-space",
426
- style: "height:36px; width: 100%;background:transparent"
427
- }, null, 512)) : u("", !0),
428
- I.value.style.chart.title.text ? (y(), d("div", {
429
- key: 2,
430
- ref_key: "chartTitle",
431
- ref: ut,
432
- style: "width:100%;background:transparent;padding-bottom:24px"
433
- }, [(y(), l(he, {
434
- key: `title_${ot.value}`,
435
- config: {
436
- title: {
437
- cy: "funnel-div-title",
438
- ...I.value.style.chart.title
439
- },
440
- subtitle: {
441
- cy: "funnel-div-subtitle",
442
- ...I.value.style.chart.title.subtitle
443
- }
444
- }
445
- }, null, 8, ["config"]))], 512)) : u("", !0),
446
- I.value.userOptions.show && F.value && (w(gt) || w(L)) ? (y(), l(w(Ze), {
447
- ref_key: "userOptionsRef",
448
- ref: P,
449
- key: `user_option_${at.value}`,
450
- backgroundColor: I.value.style.chart.backgroundColor,
451
- color: I.value.style.chart.color,
452
- isPrinting: w(z),
453
- isImaging: w(B),
454
- uid: k.value,
455
- hasTooltip: !1,
456
- hasPdf: I.value.userOptions.buttons.pdf,
457
- hasImg: I.value.userOptions.buttons.img,
458
- hasSvg: I.value.userOptions.buttons.svg,
459
- hasXls: I.value.userOptions.buttons.csv,
460
- hasTable: I.value.userOptions.buttons.table,
461
- hasLabel: !1,
462
- hasFullscreen: I.value.userOptions.buttons.fullscreen,
463
- hasAltCopy: I.value.userOptions.buttons.altCopy,
464
- isFullscreen: Y.value,
465
- chartElement: O.value,
466
- position: I.value.userOptions.position,
467
- titles: { ...I.value.userOptions.buttonTitles },
468
- hasAnnotator: I.value.userOptions.buttons.annotator,
469
- isAnnotation: X.value,
470
- callbacks: I.value.userOptions.callbacks,
471
- printScale: I.value.userOptions.print.scale,
472
- tableDialog: I.value.table.useDialog,
473
- isCursorPointer: mt.value,
474
- onToggleAnnotator: Et,
475
- onToggleFullscreen: wt,
476
- onGeneratePdf: w(_t),
477
- onGenerateImage: w(Lt),
478
- onGenerateSvg: w(It),
479
- onToggleTable: Dt,
480
- onGenerateCsv: Ot,
481
- onCopyAlt: Rt,
482
- style: v({ visibility: w(gt) ? w(L) ? "visible" : "hidden" : "visible" })
483
- }, we({ _: 2 }, [
484
- e.$slots.menuIcon ? {
485
- name: "menuIcon",
486
- fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", _(m({
487
- isOpen: t,
488
- color: n
489
- })), void 0, !0)]),
490
- key: "0"
491
- } : void 0,
492
- e.$slots.optionPdf ? {
493
- name: "optionPdf",
494
- fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
495
- key: "1"
496
- } : void 0,
497
- e.$slots.optionCsv ? {
498
- name: "optionCsv",
499
- fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
500
- key: "2"
501
- } : void 0,
502
- e.$slots.optionImg ? {
503
- name: "optionImg",
504
- fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
505
- key: "3"
506
- } : void 0,
507
- e.$slots.optionSvg ? {
508
- name: "optionSvg",
509
- fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
510
- key: "4"
511
- } : void 0,
512
- e.$slots.optionTable ? {
513
- name: "optionTable",
514
- fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
515
- key: "5"
516
- } : void 0,
517
- e.$slots.optionFullscreen ? {
518
- name: "optionFullscreen",
519
- fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", _(m({
520
- toggleFullscreen: t,
521
- isFullscreen: n
522
- })), void 0, !0)]),
523
- key: "6"
524
- } : void 0,
525
- e.$slots.optionAnnotator ? {
526
- name: "optionAnnotator",
527
- fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", _(m({
528
- toggleAnnotator: t,
529
- isAnnotator: n
530
- })), void 0, !0)]),
531
- key: "7"
532
- } : void 0,
533
- e.$slots.optionAltCopy ? {
534
- name: "optionAltCopy",
535
- fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", _(m({ altCopy: t })), void 0, !0)]),
536
- key: "8"
537
- } : void 0,
538
- e.$slots["custom-menu-before"] ? {
539
- name: "custom-menu-before",
540
- fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
541
- key: "9"
542
- } : void 0,
543
- e.$slots["custom-menu-after"] ? {
544
- name: "custom-menu-after",
545
- fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
546
- key: "10"
547
- } : void 0
548
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : u("", !0),
549
- F.value ? (y(), d("svg", {
550
- key: 4,
551
- ref_key: "svgRef",
552
- ref: R,
553
- xmlns: w(ae),
554
- class: g({
555
- "vue-data-ui-fullscreen--on": Y.value,
556
- "vue-data-ui-fulscreen--off": !Y.value
557
- }),
558
- viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
559
- style: v(`max-width:100%; overflow: visible; background:transparent;color:${I.value.style.chart.color}`)
560
- }, [
561
- Ee(w($e)),
562
- e.$slots["chart-background"] ? (y(), d("foreignObject", {
563
- key: 0,
564
- x: 0,
565
- y: 0,
566
- width: U.value.width <= 0 ? 10 : U.value.width,
567
- height: U.value.height <= 0 ? 10 : U.value.height,
568
- style: { pointerEvents: "none" }
569
- }, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, Le)) : u("", !0),
570
- f("defs", null, [Ee(ye, {
571
- t: "linear",
572
- id: `funnel_area_${k.value}`,
573
- x1: "0%",
574
- x2: "100%",
575
- y1: "0%",
576
- y2: "0%",
577
- stops: [
578
- [
579
- "0%",
580
- I.value.style.chart.backgroundColor,
581
- 0
582
- ],
583
- [
584
- "20%",
585
- I.value.style.chart.area.color,
586
- 1
587
- ],
588
- [
589
- "100%",
590
- I.value.style.chart.area.color,
591
- 1
592
- ]
593
- ]
594
- }, null, 8, ["id", "stops"])]),
595
- I.value.style.chart.circleLinks.show ? (y(), d("line", h({ key: 1 }, Ct.value, {
596
- stroke: I.value.style.chart.circleLinks.color,
597
- "stroke-width": 12 * I.value.style.chart.circleLinks.widthRatio,
598
- "stroke-linecap": "round",
599
- class: { animated: I.value.useCssAnimation && !w(E) },
600
- style: {
601
- strokeDasharray: I.value.useCssAnimation && !w(E) ? G.value.height : 0,
602
- strokeDashoffset: I.value.useCssAnimation && !w(E) ? G.value.height : 0
603
- }
604
- }), null, 16, Re)) : u("", !0),
605
- (y(!0), d(s, null, x(J.value, ({ cx: e, cy: t, r: n, fill: r }, i) => (y(), d("circle", h({ ref_for: !0 }, {
606
- cx: e,
607
- cy: t,
608
- r: n,
609
- fill: r
610
- }, {
611
- stroke: I.value.style.chart.circles.stroke,
612
- "stroke-width": I.value.style.chart.circles.strokeWidth,
613
- class: { animated: I.value.useCssAnimation && !M.value && !w(E) },
614
- style: { animationDelay: `${150 * i}ms` }
615
- }), null, 16, ze))), 256)),
616
- (y(!0), d(s, null, x(J.value, (e, t) => (y(), d("text", {
617
- x: e.cx,
618
- y: e.cy + H.value.circles / 3 + I.value.style.chart.circles.dataLabels.offsetY,
619
- "text-anchor": "middle",
620
- "font-size": H.value.circles,
621
- fill: I.value.style.chart.circles.dataLabels.adaptColorToBackground ? w(ie)(e.color) : I.value.style.chart.circles.dataLabels.color,
622
- "font-weight": I.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
623
- class: g({ animated: I.value.useCssAnimation && !M.value && !w(E) }),
624
- style: v({ animationDelay: `${150 * t}ms` })
625
- }, C(w(o)(I.value.style.chart.circles.dataLabels.formatter, e.proportion * 100, w(a)({
626
- v: e.proportion * 100,
627
- s: "%",
628
- r: I.value.style.chart.circles.dataLabels.rounding
629
- }), { datapoint: e })), 15, Be))), 256)),
630
- I.value.style.chart.area.show ? (y(), d("polygon", {
631
- key: 2,
632
- points: St.value,
633
- fill: `url(#funnel_area_${k.value})`,
634
- class: g({ animated: I.value.useCssAnimation && !M.value && !w(E) }),
635
- style: v({ transition: I.value.useCssAnimation ? `all ${150 * W.value.length}ms ease-in` : "none" })
636
- }, null, 14, Ve)) : u("", !0),
637
- (y(!0), d(s, null, x(J.value, ({ x: e, y: t, height: n, width: r, fill: i }, a) => (y(), d("rect", h({ ref_for: !0 }, {
638
- x: e,
639
- y: t,
640
- height: n,
641
- width: r,
642
- fill: i
643
- }, {
644
- stroke: I.value.style.chart.bars.stroke,
645
- "stroke-width": I.value.style.chart.bars.strokeWidth,
646
- rx: I.value.style.chart.bars.borderRadius,
647
- class: { animated: I.value.useCssAnimation && !M.value && !w(E) },
648
- style: { animationDelay: `${150 * a}ms` }
649
- }), null, 16, He))), 256)),
650
- (y(!0), d(s, null, x(J.value, (e, t) => (y(), d("g", null, [f("text", {
651
- x: e.x + e.width + I.value.style.chart.bars.dataLabels.name.offsetX + 12,
652
- y: e.cy - H.value.names / 2 + I.value.style.chart.bars.dataLabels.name.offsetY,
653
- "text-anchor": "start",
654
- "font-size": H.value.names,
655
- fill: I.value.style.chart.bars.dataLabels.name.color,
656
- "font-weight": I.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
657
- class: g({ animated: I.value.useCssAnimation && !M.value && !w(E) }),
658
- style: v({ animationDelay: `${150 * t}ms` })
659
- }, C(e.name), 15, Ue), f("text", {
660
- x: e.x + e.width + I.value.style.chart.bars.dataLabels.value.offsetX + 12,
661
- y: e.cy + H.value.values + I.value.style.chart.bars.dataLabels.value.offsetY,
662
- "text-anchor": "start",
663
- "font-size": H.value.values,
664
- fill: I.value.style.chart.bars.dataLabels.value.color,
665
- "font-weight": I.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
666
- class: g({ animated: I.value.useCssAnimation && !M.value && !w(E) }),
667
- style: v({ animationDelay: `${150 * t}ms` })
668
- }, C(w(o)(I.value.style.chart.bars.dataLabels.value.formatter, e.value, w(a)({
669
- p: I.value.style.chart.bars.dataLabels.value.prefix,
670
- v: e.value,
671
- s: I.value.style.chart.bars.dataLabels.value.suffix,
672
- r: I.value.style.chart.bars.dataLabels.value.rounding
673
- }), { datapoint: e })), 15, We)]))), 256)),
674
- S(e.$slots, "svg", { svg: {
675
- ...U.value,
676
- isPrintingImg: w(z) || w(B) || w(Pt),
677
- isPrintingSvg: w(Ft)
678
- } }, void 0, !0)
679
- ], 14, Ie)) : u("", !0),
680
- e.$slots.watermark ? (y(), d("div", Ge, [S(e.$slots, "watermark", _(m({ isPrinting: w(z) || w(B) || w(Pt) || w(Ft) })), void 0, !0)])) : u("", !0),
681
- F.value ? u("", !0) : (y(), l(w(Je), {
682
- key: 6,
683
- config: {
684
- type: "verticalBar",
685
- style: {
686
- backgroundColor: I.value.style.chart.backgroundColor,
687
- verticalBar: {
688
- axis: { color: "#CCCCCC" },
689
- color: "#CCCCCC"
690
- }
691
- }
692
- }
693
- }, null, 8, ["config"])),
694
- e.$slots.source ? (y(), d("div", {
695
- key: 7,
696
- ref_key: "source",
697
- ref: lt,
698
- dir: "auto"
699
- }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
700
- F.value && I.value.userOptions.buttons.table ? (y(), l(Ae($.value.component), h({ key: 8 }, $.value.props, {
701
- ref_key: "tableUnit",
702
- ref: N,
703
- onClose: jt
704
- }), we({
705
- content: T(() => [(y(), l(w(Xe), {
706
- key: `table_${st.value}`,
707
- colNames: Q.value.colNames,
708
- head: Q.value.head,
709
- body: Q.value.body,
710
- config: Q.value.config,
711
- title: I.value.table.useDialog ? "" : $.value.title,
712
- withCloseButton: !I.value.table.useDialog,
713
- onClose: jt
714
- }, {
715
- th: T(({ th: e }) => [f("div", Ke, C(e), 1)]),
716
- td: T(({ td: e }) => [Te(C(e.name ? e.name : e), 1)]),
717
- _: 1
718
- }, 8, [
719
- "colNames",
720
- "head",
721
- "body",
722
- "config",
723
- "title",
724
- "withCloseButton"
725
- ]))]),
726
- _: 2
727
- }, [I.value.table.useDialog ? {
728
- name: "title",
729
- fn: T(() => [Te(C($.value.title), 1)]),
730
- key: "0"
731
- } : void 0, I.value.table.useDialog ? {
732
- name: "actions",
733
- fn: T(() => [f("button", {
734
- tabindex: "0",
735
- class: "vue-ui-user-options-button",
736
- onClick: t[0] ||= (e) => Ot(I.value.userOptions.callbacks.csv)
737
- }, [Ee(w(qe), {
738
- name: "fileCsv",
739
- stroke: $.value.props.color
740
- }, null, 8, ["stroke"])])]),
741
- key: "1"
742
- } : void 0]), 1040)) : u("", !0)
743
- ], 46, Fe));
744
- }
745
- }, [["__scopeId", "data-v-bbf1fbe9"]]);
746
- //#endregion
747
- export { Pe as n, qe as t };