vue-data-ui 3.22.7 → 3.22.9

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 (206) hide show
  1. package/dist/{Arrow-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
  2. package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-Av7Uxq5V.js} +2 -2
  3. package/dist/BaseIcon-UdRAvP2h.js +483 -0
  4. package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
  5. package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
  6. package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
  7. package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
  8. package/dist/DefGrad-DVBqDjhO.js +48 -0
  9. package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
  11. package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
  12. package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
  13. package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
  14. package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
  15. package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
  16. package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
  17. package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
  18. package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
  19. package/dist/{UserOptions-BL9VlHop.js → UserOptions-trvJ26nz.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-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/{dom-to-png-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
  90. package/dist/exposedLib-VXFp3Z2c.js +19 -0
  91. package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
  92. package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
  93. package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
  94. package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
  95. package/dist/{package-DeMimPej.js → package-ByOT60IK.js} +1 -1
  96. package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
  97. package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.js} +20 -20
  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/utils.d.ts +18 -0
  103. package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
  104. package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
  105. package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
  106. package/dist/utils.js +24 -24
  107. package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-ub3fCh6P.js} +68 -68
  108. package/dist/vue-data-ui.js +77 -77
  109. package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
  110. package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
  111. package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
  112. package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
  113. package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
  114. package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
  115. package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
  116. package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
  117. package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
  118. package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
  119. package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
  120. package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
  121. package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
  122. package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
  123. package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
  124. package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
  125. package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
  126. package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
  127. package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
  128. package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
  129. package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
  130. package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
  131. package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
  132. package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
  133. package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
  134. package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
  135. package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
  136. package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
  137. package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.js} +4 -4
  138. package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
  139. package/dist/vue-ui-molecule--kK1JfnP.js +931 -0
  140. package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
  141. package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
  142. package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
  143. package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
  144. package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
  145. package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
  146. package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
  147. package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
  148. package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
  149. package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
  150. package/dist/vue-ui-rings-J990vNbX.js +1252 -0
  151. package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
  152. package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
  153. package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
  154. package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
  155. package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
  156. package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
  157. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
  158. package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
  159. package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
  160. package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
  161. package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
  162. package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
  163. package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
  164. package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
  165. package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
  166. package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
  167. package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
  168. package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
  169. package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
  170. package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
  171. package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
  172. package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
  173. package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
  174. package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
  175. package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
  176. package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
  177. package/package.json +1 -1
  178. package/dist/BaseIcon-_-BX7be3.js +0 -502
  179. package/dist/exposedLib-Be0ifkti.js +0 -19
  180. package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
  181. package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
  182. package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
  183. package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
  184. package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
  185. package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
  186. package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
  187. package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
  188. package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
  189. package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
  190. package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
  191. package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
  192. package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
  193. package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
  194. package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
  195. package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
  196. package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
  197. package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
  198. package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
  199. package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
  200. package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
  201. package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
  202. package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
  203. package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
  204. package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
  205. package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
  206. package/dist/vue-ui-world-B7npRmTa.js +0 -14264
@@ -1,777 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { Ot as t, Q as n, Tt as r, W as i, Wt as a, X as ee, b as te, i as o, q as s, r as ne, t as re, ut as ie, w as ae } from "./lib-EAmk-PgA.js";
3
- import { t as oe } from "./useConfig-DYM3f6EI.js";
4
- import { t as se } from "./usePrinter-DnGzpp6Q.js";
5
- import { t as ce } from "./useSvgExport-SVIsDot8.js";
6
- import { t as le } from "./useNestedProp-D8XqxgOU.js";
7
- import { t as ue } from "./useThemeCheck-C43Tcqmk.js";
8
- import { t as de } from "./img-B_abIg0o.js";
9
- import { n as fe } from "./Title-PiTKr6sp.js";
10
- import { t as pe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
11
- import { c as me } from "./canvas-lib-BOP_HS11.js";
12
- import { t as he } from "./useResponsive-BfnK0KxU.js";
13
- import { t as ge } from "./useUserOptionState-DK-_1ddE.js";
14
- import { t as _e } from "./useChartAccessibility-DYqac8yF.js";
15
- import { t as ve } 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 ye, createTextVNode as be, createVNode as xe, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as g, nextTick as Se, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Ce, onMounted as we, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Te, shallowRef as Ee, toDisplayString as w, unref as T, useCssVars as De, watch as Oe, withCtx as E } from "vue";
17
- //#region src/components/vue-ui-funnel.vue
18
- var ke = /* @__PURE__ */ e({ default: () => Ke }), Ae = ["id"], je = ["xmlns", "viewBox"], Me = ["width", "height"], Ne = ["id"], Pe = ["stop-color"], Fe = ["stop-color"], Ie = ["stop-color"], Le = ["stroke", "stroke-width"], Re = ["stroke", "stroke-width"], ze = [
19
- "x",
20
- "y",
21
- "font-size",
22
- "fill",
23
- "font-weight"
24
- ], Be = ["points", "fill"], Ve = [
25
- "stroke",
26
- "stroke-width",
27
- "rx"
28
- ], He = [
29
- "x",
30
- "y",
31
- "font-size",
32
- "fill",
33
- "font-weight"
34
- ], Ue = [
35
- "x",
36
- "y",
37
- "font-size",
38
- "fill",
39
- "font-weight"
40
- ], We = {
41
- key: 5,
42
- class: "vue-data-ui-watermark"
43
- }, Ge = ["innerHTML"], Ke = /*#__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: ke }) {
61
- De((e) => ({ v5d52ff0c: Et.value }));
62
- let Ke = m(() => import("./BaseIcon-_-BX7be3.js").then((e) => e.n)), qe = m(() => import("./vue-ui-skeleton-Fmue6DAG.js").then((e) => e.n)), Je = m(() => import("./vue-ui-accordion-Dzz8XhX3.js").then((e) => e.n)), Ye = m(() => import("./DataTable-CVF7DoZn.js")), Xe = m(() => import("./UserOptions-BL9VlHop.js").then((e) => e.n)), Ze = m(() => import("./PenAndPaper-gaV1QPpP.js").then((e) => e.t)), Qe = m(() => import("./PackageVersion-Dse0n05o.js").then((e) => e.t)), $e = m(() => import("./BaseDraggableDialog-1wwwdwV2.js").then((e) => e.n)), { vue_ui_funnel: et } = oe(), { isThemeValid: tt, warnInvalidTheme: nt } = ue(), D = e, rt = ke, O = x(null), k = x(i()), it = x(0), at = x(0), ot = x(0), st = x(null), ct = x(null), lt = x(null), A = Ee(null), j = Ee(null), M = x(!1), N = x(null), P = x(null), F = x(!1), I = x(!1), L = l(() => !!D.dataset && D.dataset.length);
63
- we(ut);
64
- function ut() {
65
- if (t(D.dataset) ? n({
66
- componentName: "VueUiFunnel",
67
- type: "dataset"
68
- }) : D.dataset.forEach((e, t) => {
69
- ie({
70
- datasetObject: e,
71
- requiredAttributes: ["name", "value"]
72
- }).forEach((e) => {
73
- L.value = !1, n({
74
- componentName: "VueUiFunnel",
75
- type: "datasetSerieAttribute",
76
- property: e,
77
- index: t
78
- });
79
- });
80
- }), R.value.responsive) {
81
- let e = me(() => {
82
- let { width: e, height: t } = he({
83
- chart: O.value,
84
- title: R.value.style.chart.title.text ? lt.value : null,
85
- source: ct.value,
86
- noTitle: st.value
87
- });
88
- requestAnimationFrame(() => {
89
- H.value.height = t, H.value.width = e, W.value = xt(), R.value.responsiveProportionalSizing ? (V.value.circles = a({
90
- relator: Math.min(e, t),
91
- adjuster: 600,
92
- source: R.value.style.chart.circles.dataLabels.fontSize,
93
- threshold: 10,
94
- fallback: 10
95
- }), V.value.names = a({
96
- relator: Math.min(e, t),
97
- adjuster: 600,
98
- source: R.value.style.chart.bars.dataLabels.name.fontSize,
99
- threshold: 10,
100
- fallback: 10
101
- }), V.value.values = a({
102
- relator: Math.min(e, t),
103
- adjuster: 600,
104
- source: R.value.style.chart.bars.dataLabels.value.fontSize,
105
- threshold: 10,
106
- fallback: 10
107
- })) : (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);
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
- Ce(() => {
114
- A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect());
115
- });
116
- function dt() {
117
- let e = le({
118
- userConfig: D.config,
119
- defaultConfig: et
120
- }), t = e.theme;
121
- if (!t) return e;
122
- if (!tt.value(e)) return nt(e), e;
123
- let n = le({
124
- userConfig: ve[t] || D.config,
125
- defaultConfig: e
126
- });
127
- return le({
128
- userConfig: D.config,
129
- defaultConfig: n
130
- });
131
- }
132
- let R = l({
133
- get: () => dt(),
134
- set: (e) => e
135
- }), ft = l(() => R.value.userOptions.useCursorPointer), { userOptionsVisible: z, setUserOptionsVisibility: pt, keepUserOptionState: mt } = ge({ config: R.value }), { svgRef: ht } = _e({ config: R.value.style.chart.title });
136
- Oe(() => D.config, (e) => {
137
- R.value = dt(), z.value = !R.value.userOptions.showOnChartHover, ut(), 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;
138
- }, { deep: !0 });
139
- let { isPrinting: gt, isImaging: _t, generatePdf: vt, generateImage: yt } = se({
140
- elementId: `funnel_${k.value}`,
141
- fileName: R.value.style.chart.title.text || "vue-ui-funnel",
142
- options: R.value.userOptions.print
143
- }), bt = l(() => R.value.userOptions.show && !R.value.style.chart.title.text), B = x({ showTable: R.value.table.show }), V = x({
144
- circles: R.value.style.chart.circles.dataLabels.fontSize,
145
- names: R.value.style.chart.bars.dataLabels.name.fontSize,
146
- values: R.value.style.chart.bars.dataLabels.value.fontSize
147
- }), H = l({
148
- get: () => ({
149
- height: R.value.style.chart.height,
150
- width: R.value.style.chart.width
151
- }),
152
- set: (e) => e
153
- }), U = l(() => L.value ? D.dataset.map((e, t) => ({
154
- ...e,
155
- color: e.color ? te(e.color) : r(R.value.style.chart.bars.defaultColor, t / D.dataset.length)
156
- })) : []);
157
- setTimeout(() => {
158
- M.value = !0;
159
- }, U.value.length * 150);
160
- function xt() {
161
- let e = R.value.style.chart.padding.left, t = R.value.style.chart.padding.top;
162
- return {
163
- left: e,
164
- top: t,
165
- right: H.value.width - R.value.style.chart.padding.right,
166
- bottom: H.value.height - R.value.style.chart.padding.bottom,
167
- width: H.value.width - e - R.value.style.chart.padding.right,
168
- height: H.value.height - t - R.value.style.chart.padding.bottom
169
- };
170
- }
171
- let W = x(xt()), G = l(() => W.value.height / D.dataset.length), K = l(() => G.value * R.value.style.chart.bars.gapRatio), St = l(() => W.value.width * R.value.style.chart.barCircleSpacingRatio), q = l(() => U.value.map((e, t) => {
172
- 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 - St.value) * (e.value / U.value[0].value);
173
- return {
174
- ...e,
175
- cx: W.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: W.value.left + n + St.value,
184
- y: r
185
- };
186
- })), Ct = l(() => {
187
- let e = q.value.map((e) => `${e.x + e.width},${e.y + (G.value - K.value) / 2}`);
188
- 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}`;
189
- }), wt = l(() => ({
190
- x1: q.value[0].cx,
191
- y1: q.value[0].cy,
192
- x2: q.value.at(-1).cx,
193
- y2: q.value.at(-1).cy
194
- })), J = x(!1);
195
- function Tt(e) {
196
- J.value = e, it.value += 1;
197
- }
198
- let Et = l(() => `${U.value.length * 150}ms`), Y = x(!1);
199
- function Dt() {
200
- Y.value = !Y.value;
201
- }
202
- function Ot() {
203
- B.value.showTable = !B.value.showTable;
204
- }
205
- let X = l(() => ({
206
- head: U.value.map((e) => ({
207
- name: e.name,
208
- color: e.color
209
- })),
210
- body: U.value.map((e) => e.value)
211
- })), Z = l(() => {
212
- let e = [
213
- R.value.table.columnNames.series,
214
- R.value.table.columnNames.value,
215
- R.value.table.columnNames.percentage
216
- ], t = X.value.head.map((e, t) => {
217
- let n = o(R.value.style.chart.bars.dataLabels.value.formatter, X.value.body[t], s({
218
- p: R.value.style.chart.bars.dataLabels.value.prefix,
219
- v: X.value.body[t],
220
- s: R.value.style.chart.bars.dataLabels.value.suffix,
221
- r: R.value.table.td.roundingValue
222
- }), { datapoint: q.value[t] }), r = o(R.value.style.chart.circles.dataLabels.formatter, q.value[t].proportion * 100, s({
223
- v: q.value[t].proportion * 100,
224
- s: "%",
225
- r: R.value.table.td.roundingPercentage
226
- }), { datapoint: q.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: R.value.table.th.backgroundColor,
238
- color: R.value.table.th.color,
239
- outline: R.value.table.th.outline
240
- },
241
- td: {
242
- backgroundColor: R.value.table.td.backgroundColor,
243
- color: R.value.table.td.color,
244
- outline: R.value.table.td.outline
245
- },
246
- breakpoint: R.value.table.responsiveBreakpoint
247
- };
248
- return {
249
- colNames: [
250
- R.value.table.columnNames.series,
251
- R.value.table.columnNames.value,
252
- R.value.table.columnNames.percentage
253
- ],
254
- head: e,
255
- body: t,
256
- config: n
257
- };
258
- });
259
- function Q(e = null) {
260
- Se(() => {
261
- let t = X.value.head.map((e, t) => [
262
- [e.name],
263
- [X.value.body[t]],
264
- [q.value[t].proportion * 100]
265
- ]), n = ae([
266
- [R.value.style.chart.title.text],
267
- [R.value.style.chart.title.subtitle.text],
268
- [
269
- [R.value.table.columnNames.series],
270
- [R.value.table.columnNames.value],
271
- ["%"]
272
- ]
273
- ].concat(t));
274
- e ? e(n) : ee({
275
- csvContent: n,
276
- title: R.value.style.chart.title.text || "vue-ui-funnel"
277
- });
278
- });
279
- }
280
- function kt() {
281
- return U.value;
282
- }
283
- async function At({ 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: R.value.style.chart.title.text,
295
- width: t,
296
- height: n,
297
- aspectRatio: r
298
- };
299
- }
300
- let $ = l(() => {
301
- let e = R.value.table.useDialog && !R.value.table.show, t = B.value.showTable;
302
- return {
303
- component: e ? $e : Je,
304
- title: `${R.value.style.chart.title.text}${R.value.style.chart.title.subtitle.text ? `: ${R.value.style.chart.title.subtitle.text}` : ""}`,
305
- props: e ? {
306
- backgroundColor: R.value.table.th.backgroundColor,
307
- color: R.value.table.th.color,
308
- headerColor: R.value.table.th.color,
309
- headerBg: R.value.table.th.backgroundColor,
310
- isFullscreen: J.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: R.value.style.chart.backgroundColor,
320
- color: R.value.style.chart.color
321
- },
322
- head: {
323
- backgroundColor: R.value.style.chart.backgroundColor,
324
- color: R.value.style.chart.color
325
- }
326
- }
327
- }
328
- };
329
- });
330
- Oe(() => B.value.showTable, (e) => {
331
- R.value.table.show || (e && R.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
332
- });
333
- function jt() {
334
- B.value.showTable = !1, P.value && P.value.setTableIconState(!1);
335
- }
336
- let Mt = l(() => R.value.style.chart.backgroundColor), { exportSvg: Nt, getSvg: Pt } = ce({
337
- svg: ht,
338
- title: l(() => R.value.style.chart.title),
339
- backgroundColor: Mt
340
- });
341
- async function Ft({ isCb: e }) {
342
- I.value = !0, await Se();
343
- try {
344
- if (e) {
345
- let { blob: e, url: t, text: n, dataUrl: r } = await Pt();
346
- await Promise.resolve(R.value.userOptions.callbacks.svg({
347
- blob: e,
348
- url: t,
349
- text: n,
350
- dataUrl: r
351
- }));
352
- } else await Promise.resolve(Nt());
353
- } finally {
354
- I.value = !1;
355
- }
356
- }
357
- function It(e) {
358
- if (e?.stage === "start") {
359
- F.value = !0;
360
- return;
361
- }
362
- if (e?.stage === "end") {
363
- F.value = !1;
364
- return;
365
- }
366
- yt();
367
- }
368
- async function Lt() {
369
- if (rt("copyAlt", {
370
- config: R.value,
371
- dataset: U.value
372
- }), !R.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(R.value.userOptions.callbacks.altCopy({
377
- config: R.value,
378
- dataset: U.value
379
- }));
380
- }
381
- return pe({
382
- getData: kt,
383
- getImage: At,
384
- generatePdf: vt,
385
- generateCsv: Q,
386
- generateImage: yt,
387
- generateSvg: Ft,
388
- toggleTable: Ot,
389
- toggleAnnotator: Dt,
390
- toggleFullscreen: Tt,
391
- copyAlt: Lt
392
- }), (e, t) => (b(), f("div", {
393
- ref_key: "funnelChart",
394
- ref: O,
395
- class: _(`vue-data-ui-component vue-ui-funnel ${J.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${R.value.useCssAnimation ? "" : "vue-ui-dna"}`),
396
- style: y(`font-family:${R.value.style.fontFamily};width:100%; ${R.value.responsive ? "height:100%;" : ""} text-align:center;background:${R.value.style.chart.backgroundColor}`),
397
- id: `funnel_${k.value}`,
398
- onMouseenter: t[1] ||= () => T(pt)(!0),
399
- onMouseleave: t[2] ||= () => T(pt)(!1)
400
- }, [
401
- R.value.userOptions.buttons.annotator ? (b(), u(T(Ze), {
402
- key: 0,
403
- svgRef: T(ht),
404
- backgroundColor: R.value.style.chart.backgroundColor,
405
- color: R.value.style.chart.color,
406
- active: Y.value,
407
- isCursorPointer: ft.value,
408
- onClose: Dt
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
- bt.value ? (b(), f("div", {
425
- key: 1,
426
- ref_key: "noTitle",
427
- ref: st,
428
- class: "vue-data-ui-no-title-space",
429
- style: "height:36px; width: 100%;background:transparent"
430
- }, null, 512)) : d("", !0),
431
- R.value.style.chart.title.text ? (b(), f("div", {
432
- key: 2,
433
- ref_key: "chartTitle",
434
- ref: lt,
435
- style: "width:100%;background:transparent;padding-bottom:24px"
436
- }, [(b(), u(fe, {
437
- key: `title_${at.value}`,
438
- config: {
439
- title: {
440
- cy: "funnel-div-title",
441
- ...R.value.style.chart.title
442
- },
443
- subtitle: {
444
- cy: "funnel-div-subtitle",
445
- ...R.value.style.chart.title.subtitle
446
- }
447
- }
448
- }, null, 8, ["config"]))], 512)) : d("", !0),
449
- R.value.userOptions.show && L.value && (T(mt) || T(z)) ? (b(), u(T(Xe), {
450
- ref_key: "userOptionsRef",
451
- ref: P,
452
- key: `user_option_${it.value}`,
453
- backgroundColor: R.value.style.chart.backgroundColor,
454
- color: R.value.style.chart.color,
455
- isPrinting: T(gt),
456
- isImaging: T(_t),
457
- uid: k.value,
458
- hasTooltip: !1,
459
- hasPdf: R.value.userOptions.buttons.pdf,
460
- hasImg: R.value.userOptions.buttons.img,
461
- hasSvg: R.value.userOptions.buttons.svg,
462
- hasXls: R.value.userOptions.buttons.csv,
463
- hasTable: R.value.userOptions.buttons.table,
464
- hasLabel: !1,
465
- hasFullscreen: R.value.userOptions.buttons.fullscreen,
466
- hasAltCopy: R.value.userOptions.buttons.altCopy,
467
- isFullscreen: J.value,
468
- chartElement: O.value,
469
- position: R.value.userOptions.position,
470
- titles: { ...R.value.userOptions.buttonTitles },
471
- hasAnnotator: R.value.userOptions.buttons.annotator,
472
- isAnnotation: Y.value,
473
- callbacks: R.value.userOptions.callbacks,
474
- printScale: R.value.userOptions.print.scale,
475
- tableDialog: R.value.table.useDialog,
476
- isCursorPointer: ft.value,
477
- onToggleAnnotator: Dt,
478
- onToggleFullscreen: Tt,
479
- onGeneratePdf: T(vt),
480
- onGenerateImage: It,
481
- onGenerateSvg: Ft,
482
- onToggleTable: Ot,
483
- onGenerateCsv: Q,
484
- onCopyAlt: Lt,
485
- style: y({ visibility: T(mt) ? T(z) ? "visible" : "hidden" : "visible" })
486
- }, ye({ _: 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
- L.value ? (b(), f("svg", {
578
- key: 4,
579
- ref_key: "svgRef",
580
- ref: ht,
581
- xmlns: T(re),
582
- class: _({
583
- "vue-data-ui-fullscreen--on": J.value,
584
- "vue-data-ui-fulscreen--off": !J.value
585
- }),
586
- viewBox: `0 0 ${H.value.width <= 0 ? 10 : H.value.width} ${H.value.height <= 0 ? 10 : H.value.height}`,
587
- style: y(`max-width:100%; overflow: visible; background:transparent;color:${R.value.style.chart.color}`)
588
- }, [
589
- xe(T(Qe)),
590
- e.$slots["chart-background"] ? (b(), f("foreignObject", {
591
- key: 0,
592
- x: 0,
593
- y: 0,
594
- width: H.value.width <= 0 ? 10 : H.value.width,
595
- height: H.value.height <= 0 ? 10 : H.value.height,
596
- style: { pointerEvents: "none" }
597
- }, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Me)) : d("", !0),
598
- p("defs", null, [p("linearGradient", {
599
- id: `funnel_area_${k.value}`,
600
- x1: "0%",
601
- x2: "100%",
602
- y1: "0%",
603
- y2: "0%"
604
- }, [
605
- p("stop", {
606
- offset: "0%",
607
- "stop-color": R.value.style.chart.backgroundColor,
608
- "stop-opacity": 0
609
- }, null, 8, Pe),
610
- p("stop", {
611
- offset: "20%",
612
- "stop-color": R.value.style.chart.area.color
613
- }, null, 8, Fe),
614
- p("stop", {
615
- offset: "100%",
616
- "stop-color": R.value.style.chart.area.color
617
- }, null, 8, Ie)
618
- ], 8, Ne)]),
619
- R.value.style.chart.circleLinks.show ? (b(), f("line", g({ key: 1 }, wt.value, {
620
- stroke: R.value.style.chart.circleLinks.color,
621
- "stroke-width": 12 * R.value.style.chart.circleLinks.widthRatio,
622
- "stroke-linecap": "round",
623
- class: { animated: R.value.useCssAnimation },
624
- style: {
625
- strokeDasharray: R.value.useCssAnimation ? W.value.height : 0,
626
- strokeDashoffset: R.value.useCssAnimation ? W.value.height : 0
627
- }
628
- }), null, 16, Le)) : d("", !0),
629
- (b(!0), f(c, null, S(q.value, ({ cx: e, cy: t, r: n, fill: r }, i) => (b(), f("circle", g({ ref_for: !0 }, {
630
- cx: e,
631
- cy: t,
632
- r: n,
633
- fill: r
634
- }, {
635
- stroke: R.value.style.chart.circles.stroke,
636
- "stroke-width": R.value.style.chart.circles.strokeWidth,
637
- class: { animated: R.value.useCssAnimation && !M.value },
638
- style: { animationDelay: `${150 * i}ms` }
639
- }), null, 16, Re))), 256)),
640
- (b(!0), f(c, null, S(q.value, (e, t) => (b(), f("text", {
641
- x: e.cx,
642
- y: e.cy + V.value.circles / 3 + R.value.style.chart.circles.dataLabels.offsetY,
643
- "text-anchor": "middle",
644
- "font-size": V.value.circles,
645
- fill: R.value.style.chart.circles.dataLabels.adaptColorToBackground ? T(ne)(e.color) : R.value.style.chart.circles.dataLabels.color,
646
- "font-weight": R.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
647
- class: _({ animated: R.value.useCssAnimation && !M.value }),
648
- style: y({ animationDelay: `${150 * t}ms` })
649
- }, w(T(o)(R.value.style.chart.circles.dataLabels.formatter, e.proportion * 100, T(s)({
650
- v: e.proportion * 100,
651
- s: "%",
652
- r: R.value.style.chart.circles.dataLabels.rounding
653
- }), { datapoint: e })), 15, ze))), 256)),
654
- R.value.style.chart.area.show ? (b(), f("polygon", {
655
- key: 2,
656
- points: Ct.value,
657
- fill: `url(#funnel_area_${k.value})`,
658
- class: _({ animated: R.value.useCssAnimation && !M.value }),
659
- style: y({ transition: R.value.useCssAnimation ? `all ${150 * U.value.length}ms ease-in` : "none" })
660
- }, null, 14, Be)) : d("", !0),
661
- (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 }, {
662
- x: e,
663
- y: t,
664
- height: n,
665
- width: r,
666
- fill: i
667
- }, {
668
- stroke: R.value.style.chart.bars.stroke,
669
- "stroke-width": R.value.style.chart.bars.strokeWidth,
670
- rx: R.value.style.chart.bars.borderRadius,
671
- class: { animated: R.value.useCssAnimation && !M.value },
672
- style: { animationDelay: `${150 * a}ms` }
673
- }), null, 16, Ve))), 256)),
674
- (b(!0), f(c, null, S(q.value, (e, t) => (b(), f("g", null, [p("text", {
675
- x: e.x + e.width + R.value.style.chart.bars.dataLabels.name.offsetX + 12,
676
- y: e.cy - V.value.names / 2 + R.value.style.chart.bars.dataLabels.name.offsetY,
677
- "text-anchor": "start",
678
- "font-size": V.value.names,
679
- fill: R.value.style.chart.bars.dataLabels.name.color,
680
- "font-weight": R.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
681
- class: _({ animated: R.value.useCssAnimation && !M.value }),
682
- style: y({ animationDelay: `${150 * t}ms` })
683
- }, w(e.name), 15, He), p("text", {
684
- x: e.x + e.width + R.value.style.chart.bars.dataLabels.value.offsetX + 12,
685
- y: e.cy + V.value.values + R.value.style.chart.bars.dataLabels.value.offsetY,
686
- "text-anchor": "start",
687
- "font-size": V.value.values,
688
- fill: R.value.style.chart.bars.dataLabels.value.color,
689
- "font-weight": R.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
690
- class: _({ animated: R.value.useCssAnimation && !M.value }),
691
- style: y({ animationDelay: `${150 * t}ms` })
692
- }, w(T(o)(R.value.style.chart.bars.dataLabels.value.formatter, e.value, T(s)({
693
- p: R.value.style.chart.bars.dataLabels.value.prefix,
694
- v: e.value,
695
- s: R.value.style.chart.bars.dataLabels.value.suffix,
696
- r: R.value.style.chart.bars.dataLabels.value.rounding
697
- }), { datapoint: e })), 15, Ue)]))), 256)),
698
- C(e.$slots, "svg", { svg: {
699
- ...H.value,
700
- isPrintingImg: T(gt) || T(_t) || F.value,
701
- isPrintingSvg: I.value
702
- } }, void 0, !0)
703
- ], 14, je)) : d("", !0),
704
- e.$slots.watermark ? (b(), f("div", We, [C(e.$slots, "watermark", v(h({ isPrinting: T(gt) || T(_t) || F.value || I.value })), void 0, !0)])) : d("", !0),
705
- L.value ? d("", !0) : (b(), u(T(qe), {
706
- key: 6,
707
- config: {
708
- type: "verticalBar",
709
- style: {
710
- backgroundColor: R.value.style.chart.backgroundColor,
711
- verticalBar: {
712
- axis: { color: "#CCCCCC" },
713
- color: "#CCCCCC"
714
- }
715
- }
716
- }
717
- }, null, 8, ["config"])),
718
- e.$slots.source ? (b(), f("div", {
719
- key: 7,
720
- ref_key: "source",
721
- ref: ct,
722
- dir: "auto"
723
- }, [C(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
724
- L.value && R.value.userOptions.buttons.table ? (b(), u(Te($.value.component), g({ key: 8 }, $.value.props, {
725
- ref_key: "tableUnit",
726
- ref: N,
727
- onClose: jt
728
- }), ye({
729
- content: E(() => [(b(), u(T(Ye), {
730
- key: `table_${ot.value}`,
731
- colNames: Z.value.colNames,
732
- head: Z.value.head,
733
- body: Z.value.body,
734
- config: Z.value.config,
735
- title: R.value.table.useDialog ? "" : $.value.title,
736
- withCloseButton: !R.value.table.useDialog,
737
- onClose: jt
738
- }, {
739
- th: E(({ th: e }) => [p("div", {
740
- innerHTML: e,
741
- style: {
742
- display: "flex",
743
- "align-items": "center"
744
- }
745
- }, null, 8, Ge)]),
746
- td: E(({ td: e }) => [be(w(e.name ? e.name : e), 1)]),
747
- _: 1
748
- }, 8, [
749
- "colNames",
750
- "head",
751
- "body",
752
- "config",
753
- "title",
754
- "withCloseButton"
755
- ]))]),
756
- _: 2
757
- }, [R.value.table.useDialog ? {
758
- name: "title",
759
- fn: E(() => [be(w($.value.title), 1)]),
760
- key: "0"
761
- } : void 0, R.value.table.useDialog ? {
762
- name: "actions",
763
- fn: E(() => [p("button", {
764
- tabindex: "0",
765
- class: "vue-ui-user-options-button",
766
- onClick: t[0] ||= (e) => Q(R.value.userOptions.callbacks.csv)
767
- }, [xe(T(Ke), {
768
- name: "fileCsv",
769
- stroke: $.value.props.color
770
- }, null, 8, ["stroke"])])]),
771
- key: "1"
772
- } : void 0]), 1040)) : d("", !0)
773
- ], 46, Ae));
774
- }
775
- }, [["__scopeId", "data-v-a4ff61af"]]);
776
- //#endregion
777
- export { ke as n, Ke as t };