vue-data-ui 3.25.5 → 3.25.6

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 (210) hide show
  1. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  2. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  3. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  4. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  5. package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
  6. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  7. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  8. package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  9. package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-ur6jKRL5.js} +1 -1
  10. package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
  11. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  12. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  13. package/dist/components/vue-ui-3d-bar.js +1 -1
  14. package/dist/components/vue-ui-accordion.js +1 -1
  15. package/dist/components/vue-ui-age-pyramid.js +1 -1
  16. package/dist/components/vue-ui-annotator.js +1 -1
  17. package/dist/components/vue-ui-bullet.js +1 -1
  18. package/dist/components/vue-ui-bump.js +1 -1
  19. package/dist/components/vue-ui-candlestick.js +1 -1
  20. package/dist/components/vue-ui-carousel-table.js +1 -1
  21. package/dist/components/vue-ui-chestnut.js +1 -1
  22. package/dist/components/vue-ui-chord.js +1 -1
  23. package/dist/components/vue-ui-circle-pack.js +1 -1
  24. package/dist/components/vue-ui-cursor.js +1 -1
  25. package/dist/components/vue-ui-dag.js +1 -1
  26. package/dist/components/vue-ui-dashboard.js +1 -1
  27. package/dist/components/vue-ui-digits.js +1 -1
  28. package/dist/components/vue-ui-donut-evolution.js +1 -1
  29. package/dist/components/vue-ui-donut.js +1 -1
  30. package/dist/components/vue-ui-dumbbell.js +1 -1
  31. package/dist/components/vue-ui-flow.js +1 -1
  32. package/dist/components/vue-ui-funnel.js +1 -1
  33. package/dist/components/vue-ui-galaxy.js +1 -1
  34. package/dist/components/vue-ui-gauge.js +1 -1
  35. package/dist/components/vue-ui-geo.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-hill.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-label.js +1 -1
  44. package/dist/components/vue-ui-mini-loader.js +1 -1
  45. package/dist/components/vue-ui-molecule.js +1 -1
  46. package/dist/components/vue-ui-mood-radar.js +1 -1
  47. package/dist/components/vue-ui-nested-donuts.js +1 -1
  48. package/dist/components/vue-ui-onion.js +1 -1
  49. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  50. package/dist/components/vue-ui-quadrant.js +1 -1
  51. package/dist/components/vue-ui-quick-chart.js +1 -1
  52. package/dist/components/vue-ui-radar.js +1 -1
  53. package/dist/components/vue-ui-rating.js +1 -1
  54. package/dist/components/vue-ui-relation-circle.js +1 -1
  55. package/dist/components/vue-ui-ridgeline.js +1 -1
  56. package/dist/components/vue-ui-rings.js +1 -1
  57. package/dist/components/vue-ui-scatter.js +1 -1
  58. package/dist/components/vue-ui-skeleton.js +1 -1
  59. package/dist/components/vue-ui-smiley.js +1 -1
  60. package/dist/components/vue-ui-spark-trend.js +1 -1
  61. package/dist/components/vue-ui-sparkbar.js +1 -1
  62. package/dist/components/vue-ui-sparkgauge.js +1 -1
  63. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  64. package/dist/components/vue-ui-sparkline.js +1 -1
  65. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  66. package/dist/components/vue-ui-stackbar.js +1 -1
  67. package/dist/components/vue-ui-stackline.js +1 -1
  68. package/dist/components/vue-ui-strip-plot.js +1 -1
  69. package/dist/components/vue-ui-table-heatmap.js +1 -1
  70. package/dist/components/vue-ui-table-sparkline.js +1 -1
  71. package/dist/components/vue-ui-table.js +1 -1
  72. package/dist/components/vue-ui-thermometer.js +1 -1
  73. package/dist/components/vue-ui-timer.js +1 -1
  74. package/dist/components/vue-ui-tiremarks.js +1 -1
  75. package/dist/components/vue-ui-treemap.js +1 -1
  76. package/dist/components/vue-ui-vertical-bar.js +1 -1
  77. package/dist/components/vue-ui-waffle.js +1 -1
  78. package/dist/components/vue-ui-wheel.js +1 -1
  79. package/dist/components/vue-ui-word-cloud.js +1 -1
  80. package/dist/components/vue-ui-world.js +1 -1
  81. package/dist/components/vue-ui-xy-canvas.js +1 -1
  82. package/dist/components/vue-ui-xy.js +1 -1
  83. package/dist/{package-ta2JoIjx.js → package-Dx7M6sYy.js} +1 -1
  84. package/dist/{render-common-bvOuxfN3.js → render-common-DETHvNhl.js} +1 -1
  85. package/dist/ssr/vue-ui-donut.js +1 -1
  86. package/dist/ssr/vue-ui-xy.js +1 -1
  87. package/dist/ssr.js +2 -2
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +10 -0
  90. package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
  91. package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
  92. package/dist/utils.js +1 -1
  93. package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-Dh3_EsHb.js} +70 -70
  94. package/dist/vue-data-ui.js +71 -71
  95. package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
  96. package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  97. package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
  98. package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
  99. package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
  100. package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DhwySwgn.js} +380 -380
  101. package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
  102. package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
  103. package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
  104. package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
  105. package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
  106. package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
  107. package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-C_inEafb.js} +792 -792
  108. package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-Bs2mBur5.js} +67 -67
  109. package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-DwE4MoXI.js} +2 -2
  110. package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
  111. package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-CbOSJmRu.js} +2 -2
  112. package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
  113. package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
  114. package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
  115. package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
  116. package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
  117. package/dist/vue-ui-gauge-DLDULH26.js +934 -0
  118. package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-DXIHhp-G.js} +429 -429
  119. package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-PuURiePo.js} +2 -2
  120. package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
  121. package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-DqsVJkmO.js} +470 -470
  122. package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
  123. package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +511 -511
  124. package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
  125. package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  126. package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  127. package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
  128. package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-Dd1qfUiu.js} +376 -376
  129. package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
  130. package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
  131. package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +407 -407
  132. package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
  133. package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BZq517pL.js} +4 -4
  134. package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
  135. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  136. package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
  137. package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
  138. package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
  139. package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
  140. package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
  141. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  142. package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
  143. package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
  144. package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
  145. package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
  146. package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
  147. package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
  148. package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
  149. package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
  150. package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
  151. package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  152. package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
  153. package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
  154. package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-D0_KsB-y.js} +192 -192
  155. package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-1Z2zginj.js} +153 -153
  156. package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
  157. package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
  158. package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
  159. package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
  160. package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
  161. package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-BOBHo7-L.js} +524 -524
  162. package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
  163. package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
  164. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  165. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  166. package/package.json +1 -1
  167. package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
  168. package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
  169. package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
  170. package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
  171. package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
  172. package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
  173. package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
  174. package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
  175. package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
  176. package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
  177. package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
  178. package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
  179. package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
  180. package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
  181. package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
  182. package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
  183. package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
  184. package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
  185. package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
  186. package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
  187. package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
  188. package/dist/vue-ui-rating-CBdDXL80.js +0 -359
  189. package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
  190. package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
  191. package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
  192. package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
  193. package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
  194. package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
  195. package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
  196. package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
  197. package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
  198. package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
  199. package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
  200. package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
  201. package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
  202. package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
  203. package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
  204. package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
  205. package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
  206. package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
  207. package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
  208. package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
  209. package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
  210. package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
@@ -1,749 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, D as n, Pt as r, S as i, X as a, Xt as ee, ht as te, i as o, jt as ne, nt as re, q as ie, r as ae, t as oe } from "./lib-Dql7cqyA.js";
3
- import { n as se, t as ce } from "./useHints-Dq_w2E8B.js";
4
- import { t as le } from "./useConfig-C_mX5pOZ.js";
5
- import { t as ue } from "./usePrinter-DISD7q5m.js";
6
- import { t as s } from "./useNestedProp-Chvyfpl-.js";
7
- import { t as de } from "./useThemeCheck-C43Tcqmk.js";
8
- import { t as fe } from "./useChartExport-iwOqiIWX.js";
9
- import { t as pe } from "./img-DhGApYG0.js";
10
- import { n as me } from "./Title-CPHi-evi.js";
11
- import { t as he } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { l as ge, t as _e } from "./useResponsive-ZtArZtUf.js";
13
- import { t as ve } from "./DefGrad-DVBqDjhO.js";
14
- import { t as ye } from "./useUserOptionState-DK-_1ddE.js";
15
- import { t as be } from "./useChartAccessibility-DYqac8yF.js";
16
- import { t as xe } from "./usePrefersMotion-BC-CsqR1.js";
17
- import { t as Se } from "./vue_ui_funnel-_Og4EEkO.js";
18
- import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Ce, createTextVNode as we, createVNode as m, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as _, nextTick as Te, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Ee, onMounted as De, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Oe, shallowRef as ke, toDisplayString as T, unref as E, useCssVars as Ae, watch as je, withCtx as D } from "vue";
19
- //#region src/components/vue-ui-funnel.vue
20
- var Me = /* @__PURE__ */ e({ default: () => O }), Ne = ["id"], Pe = ["xmlns", "viewBox"], Fe = ["width", "height"], Ie = ["stroke", "stroke-width"], Le = ["stroke", "stroke-width"], Re = [
21
- "x",
22
- "y",
23
- "font-size",
24
- "fill",
25
- "font-weight"
26
- ], ze = ["points", "fill"], Be = [
27
- "stroke",
28
- "stroke-width",
29
- "rx"
30
- ], Ve = [
31
- "x",
32
- "y",
33
- "font-size",
34
- "fill",
35
- "font-weight"
36
- ], He = [
37
- "x",
38
- "y",
39
- "font-size",
40
- "fill",
41
- "font-weight"
42
- ], Ue = {
43
- key: 5,
44
- class: "vue-data-ui-watermark"
45
- }, We = { style: {
46
- display: "flex",
47
- "align-items": "center"
48
- } }, O = /*#__PURE__*/ he({
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: he, emit: Me }) {
66
- Ae((e) => ({ v79b94902: Tt.value }));
67
- let O = h(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), Ge = h(() => import("./vue-ui-skeleton-D_u8EWeW.js").then((e) => e.n)), Ke = h(() => import("./vue-ui-accordion-DRf3NQyH.js").then((e) => e.n)), qe = h(() => import("./DataTable-COIO9gi4.js")), Je = h(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Ye = h(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), Xe = h(() => import("./PackageVersion-M2Ws-VwJ.js").then((e) => e.t)), Ze = h(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_funnel: Qe } = le(), { isThemeValid: $e, warnInvalidTheme: et } = de(), k = xe(), A = e, tt = Me, j = S(null), M = S(ie()), nt = S(0), rt = S(0), it = S(0), at = S(null), ot = S(null), st = S(null), N = ke(null), P = ke(null), F = S(!1), I = S(null), L = S(null), R = l(() => !!A.dataset && A.dataset.length);
68
- De(ut), Ee(() => {
69
- N.value && (P.value && N.value.unobserve(P.value), N.value.disconnect());
70
- });
71
- function ct() {
72
- let e = s({
73
- userConfig: A.config,
74
- defaultConfig: Qe
75
- }), t = e.theme;
76
- if (!t) return e;
77
- if (!$e.value(e)) return et(e), e;
78
- let n = s({
79
- userConfig: Se[t] || A.config,
80
- defaultConfig: e
81
- });
82
- return s({
83
- userConfig: A.config,
84
- defaultConfig: n
85
- });
86
- }
87
- let z = l({
88
- get: () => ct(),
89
- set: (e) => e
90
- }), lt = l(() => z.value.debug);
91
- function ut() {
92
- if (r(A.dataset) ? re({
93
- componentName: "VueUiFunnel",
94
- type: "dataset",
95
- debug: lt.value
96
- }) : A.dataset.forEach((e, t) => {
97
- te({
98
- datasetObject: e,
99
- requiredAttributes: ["name", "value"]
100
- }).forEach((e) => {
101
- R.value = !1, re({
102
- componentName: "VueUiFunnel",
103
- type: "datasetSerieAttribute",
104
- property: e,
105
- index: t,
106
- debug: lt.value
107
- });
108
- });
109
- }), z.value.responsive) {
110
- let e = ge(() => {
111
- let { width: e, height: t } = _e({
112
- chart: j.value,
113
- title: z.value.style.chart.title.text ? st.value : null,
114
- source: ot.value,
115
- noTitle: at.value
116
- });
117
- requestAnimationFrame(() => {
118
- U.value.height = t, U.value.width = e, G.value = bt(), z.value.responsiveProportionalSizing ? (H.value.circles = ee({
119
- relator: Math.min(e, t),
120
- adjuster: 600,
121
- source: z.value.style.chart.circles.dataLabels.fontSize,
122
- threshold: 10,
123
- fallback: 10
124
- }), H.value.names = ee({
125
- relator: Math.min(e, t),
126
- adjuster: 600,
127
- source: z.value.style.chart.bars.dataLabels.name.fontSize,
128
- threshold: 10,
129
- fallback: 10
130
- }), H.value.values = ee({
131
- relator: Math.min(e, t),
132
- adjuster: 600,
133
- source: z.value.style.chart.bars.dataLabels.value.fontSize,
134
- threshold: 10,
135
- fallback: 10
136
- })) : (H.value.circles = z.value.style.chart.circles.dataLabels.fontSize, H.value.names = z.value.style.chart.bars.dataLabels.name.fontSize, H.value.values = z.value.style.chart.bars.dataLabels.value.fontSize);
137
- });
138
- });
139
- N.value && (P.value && N.value.unobserve(P.value), N.value.disconnect()), N.value = new ResizeObserver(e), P.value = j.value.parentNode, N.value.observe(P.value);
140
- }
141
- }
142
- se({
143
- config: () => z.value,
144
- dataset: () => A.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 dt = l(() => z.value.userOptions.useCursorPointer), { userOptionsVisible: B, setUserOptionsVisibility: ft, keepUserOptionState: pt } = ye({ config: z.value }), { svgRef: mt } = be({ config: z.value.style.chart.title });
156
- je(() => A.config, (e) => {
157
- z.value = ct(), B.value = !z.value.userOptions.showOnChartHover, ut(), rt.value += 1, it.value += 1, H.value.circles = z.value.style.chart.circles.dataLabels.fontSize, H.value.names = z.value.style.chart.bars.dataLabels.name.fontSize, H.value.values = z.value.style.chart.bars.dataLabels.value.fontSize, V.value.showTable = z.value.table.show;
158
- }, { deep: !0 });
159
- let { isPrinting: ht, isImaging: gt, generatePdf: _t, generateImage: vt } = ue({
160
- elementId: `funnel_${M.value}`,
161
- fileName: z.value.style.chart.title.text || "vue-ui-funnel",
162
- options: z.value.userOptions.print
163
- }), yt = l(() => z.value.userOptions.show && !z.value.style.chart.title.text), V = S({ showTable: z.value.table.show }), H = S({
164
- circles: z.value.style.chart.circles.dataLabels.fontSize,
165
- names: z.value.style.chart.bars.dataLabels.name.fontSize,
166
- values: z.value.style.chart.bars.dataLabels.value.fontSize
167
- }), U = l({
168
- get: () => ({
169
- height: z.value.style.chart.height,
170
- width: z.value.style.chart.width
171
- }),
172
- set: (e) => e
173
- }), W = l(() => R.value ? A.dataset.map((e, t) => ({
174
- ...e,
175
- color: e.color ? i(e.color) : ne(z.value.style.chart.bars.defaultColor, t / A.dataset.length)
176
- })) : []);
177
- setTimeout(() => {
178
- F.value = !0;
179
- }, W.value.length * 150);
180
- function bt() {
181
- let e = z.value.style.chart.padding.left, t = z.value.style.chart.padding.top;
182
- return {
183
- left: e,
184
- top: t,
185
- right: U.value.width - z.value.style.chart.padding.right,
186
- bottom: U.value.height - z.value.style.chart.padding.bottom,
187
- width: U.value.width - e - z.value.style.chart.padding.right,
188
- height: U.value.height - t - z.value.style.chart.padding.bottom
189
- };
190
- }
191
- let G = S(bt()), K = l(() => G.value.height / A.dataset.length), q = l(() => K.value * z.value.style.chart.bars.gapRatio), xt = l(() => G.value.width * z.value.style.chart.barCircleSpacingRatio), J = l(() => 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 = l(() => {
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 = l(() => ({
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 = S(!1);
215
- function wt(e) {
216
- Y.value = e, nt.value += 1;
217
- }
218
- let Tt = l(() => `${W.value.length * 150}ms`), X = S(!1);
219
- function Et() {
220
- X.value = !X.value;
221
- }
222
- function Dt() {
223
- V.value.showTable = !V.value.showTable;
224
- }
225
- let Z = l(() => ({
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 = l(() => {
232
- let e = [
233
- z.value.table.columnNames.series,
234
- z.value.table.columnNames.value,
235
- z.value.table.columnNames.percentage
236
- ], t = Z.value.head.map((e, t) => {
237
- let n = o(z.value.style.chart.bars.dataLabels.value.formatter, Z.value.body[t], a({
238
- p: z.value.style.chart.bars.dataLabels.value.prefix,
239
- v: Z.value.body[t],
240
- s: z.value.style.chart.bars.dataLabels.value.suffix,
241
- r: z.value.table.td.roundingValue
242
- }), { datapoint: J.value[t] }), r = o(z.value.style.chart.circles.dataLabels.formatter, J.value[t].proportion * 100, a({
243
- v: J.value[t].proportion * 100,
244
- s: "%",
245
- r: z.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: z.value.table.th.backgroundColor,
258
- color: z.value.table.th.color,
259
- outline: z.value.table.th.outline
260
- },
261
- td: {
262
- backgroundColor: z.value.table.td.backgroundColor,
263
- color: z.value.table.td.color,
264
- outline: z.value.table.td.outline
265
- },
266
- breakpoint: z.value.table.responsiveBreakpoint
267
- };
268
- return {
269
- colNames: [
270
- z.value.table.columnNames.series,
271
- z.value.table.columnNames.value,
272
- z.value.table.columnNames.percentage
273
- ],
274
- head: e,
275
- body: t,
276
- config: n
277
- };
278
- });
279
- function Ot(e = null) {
280
- Te(() => {
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
- [z.value.style.chart.title.text],
287
- [z.value.style.chart.title.subtitle.text],
288
- [
289
- [z.value.table.columnNames.series],
290
- [z.value.table.columnNames.value],
291
- ["%"]
292
- ]
293
- ].concat(r), a = n(i);
294
- e ? e(a) : t({
295
- csvContent: a,
296
- title: z.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 (!j.value) return;
305
- let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await pe({
306
- domElement: j.value,
307
- base64: !0,
308
- img: !0,
309
- scale: e
310
- });
311
- return {
312
- imageUri: i,
313
- base64: a,
314
- title: z.value.style.chart.title.text,
315
- width: t,
316
- height: n,
317
- aspectRatio: r
318
- };
319
- }
320
- let $ = l(() => {
321
- let e = z.value.table.useDialog && !z.value.table.show, t = V.value.showTable;
322
- return {
323
- component: e ? Ze : Ke,
324
- title: `${z.value.style.chart.title.text}${z.value.style.chart.title.subtitle.text ? `: ${z.value.style.chart.title.subtitle.text}` : ""}`,
325
- props: e ? {
326
- backgroundColor: z.value.table.th.backgroundColor,
327
- color: z.value.table.th.color,
328
- headerColor: z.value.table.th.color,
329
- headerBg: z.value.table.th.backgroundColor,
330
- isFullscreen: Y.value,
331
- fullscreenParent: j.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: z.value.style.chart.backgroundColor,
340
- color: z.value.style.chart.color
341
- },
342
- head: {
343
- backgroundColor: z.value.style.chart.backgroundColor,
344
- color: z.value.style.chart.color
345
- }
346
- }
347
- }
348
- };
349
- });
350
- je(() => V.value.showTable, (e) => {
351
- z.value.table.show || (e && z.value.table.useDialog && I.value ? I.value.open() : "close" in I.value && I.value.close());
352
- });
353
- function jt() {
354
- V.value.showTable = !1, L.value && L.value.setTableIconState(!1);
355
- }
356
- let Mt = l(() => z.value.style.chart.backgroundColor), Nt = l(() => z.value.style.chart.title), { isCallbackImaging: Pt, isCallbackSvg: Ft, generateSvg: It, onGenerateImage: Lt } = fe({
357
- svg: mt,
358
- title: Nt,
359
- legend: null,
360
- legendItems: null,
361
- backgroundColor: Mt,
362
- getSvgCallback: () => z.value.userOptions.callbacks.svg,
363
- generateImage: vt
364
- });
365
- async function Rt() {
366
- if (tt("copyAlt", {
367
- config: z.value,
368
- dataset: W.value
369
- }), !z.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(z.value.userOptions.callbacks.altCopy({
374
- config: z.value,
375
- dataset: W.value
376
- }));
377
- }
378
- return he({
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) => (x(), f("div", {
390
- ref_key: "funnelChart",
391
- ref: j,
392
- class: v(`vue-data-ui-component vue-ui-funnel ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${z.value.useCssAnimation ? "" : "vue-ui-dna"}`),
393
- style: b(`font-family:${z.value.style.fontFamily};width:100%; ${z.value.responsive ? "height:100%;" : ""} text-align:center;background:${z.value.style.chart.backgroundColor}`),
394
- id: `funnel_${M.value}`,
395
- onMouseenter: t[1] ||= () => E(ft)(!0),
396
- onMouseleave: t[2] ||= () => E(ft)(!1)
397
- }, [
398
- z.value.userOptions.buttons.annotator ? (x(), u(E(Ye), {
399
- key: 0,
400
- svgRef: E(mt),
401
- backgroundColor: z.value.style.chart.backgroundColor,
402
- color: z.value.style.chart.color,
403
- active: X.value,
404
- isCursorPointer: dt.value,
405
- palette: z.value.userOptions.annotatorPalette,
406
- onClose: Et
407
- }, {
408
- "annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
409
- "annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(g({ color: t })), void 0, !0)]),
410
- "annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(g({ mode: t })), void 0, !0)]),
411
- "annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(g({ disabled: t })), void 0, !0)]),
412
- "annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(g({ disabled: t })), void 0, !0)]),
413
- "annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(g({ disabled: t })), void 0, !0)]),
414
- _: 3
415
- }, 8, [
416
- "svgRef",
417
- "backgroundColor",
418
- "color",
419
- "active",
420
- "isCursorPointer",
421
- "palette"
422
- ])) : d("", !0),
423
- yt.value ? (x(), f("div", {
424
- key: 1,
425
- ref_key: "noTitle",
426
- ref: at,
427
- class: "vue-data-ui-no-title-space",
428
- style: "height:36px; width: 100%;background:transparent"
429
- }, null, 512)) : d("", !0),
430
- z.value.style.chart.title.text ? (x(), f("div", {
431
- key: 2,
432
- ref_key: "chartTitle",
433
- ref: st,
434
- style: "width:100%;background:transparent;padding-bottom:24px"
435
- }, [(x(), u(me, {
436
- key: `title_${rt.value}`,
437
- config: {
438
- title: {
439
- cy: "funnel-div-title",
440
- ...z.value.style.chart.title
441
- },
442
- subtitle: {
443
- cy: "funnel-div-subtitle",
444
- ...z.value.style.chart.title.subtitle
445
- }
446
- }
447
- }, null, 8, ["config"]))], 512)) : d("", !0),
448
- z.value.userOptions.show && R.value && (E(pt) || E(B)) ? (x(), u(E(Je), {
449
- ref_key: "userOptionsRef",
450
- ref: L,
451
- key: `user_option_${nt.value}`,
452
- backgroundColor: z.value.style.chart.backgroundColor,
453
- color: z.value.style.chart.color,
454
- isPrinting: E(ht),
455
- isImaging: E(gt),
456
- uid: M.value,
457
- hasTooltip: !1,
458
- hasPdf: z.value.userOptions.buttons.pdf,
459
- hasImg: z.value.userOptions.buttons.img,
460
- hasSvg: z.value.userOptions.buttons.svg,
461
- hasXls: z.value.userOptions.buttons.csv,
462
- hasTable: z.value.userOptions.buttons.table,
463
- hasLabel: !1,
464
- hasFullscreen: z.value.userOptions.buttons.fullscreen,
465
- hasAltCopy: z.value.userOptions.buttons.altCopy,
466
- isFullscreen: Y.value,
467
- chartElement: j.value,
468
- position: z.value.userOptions.position,
469
- titles: { ...z.value.userOptions.buttonTitles },
470
- hasAnnotator: z.value.userOptions.buttons.annotator,
471
- isAnnotation: X.value,
472
- callbacks: z.value.userOptions.callbacks,
473
- printScale: z.value.userOptions.print.scale,
474
- tableDialog: z.value.table.useDialog,
475
- isCursorPointer: dt.value,
476
- onToggleAnnotator: Et,
477
- onToggleFullscreen: wt,
478
- onGeneratePdf: E(_t),
479
- onGenerateImage: E(Lt),
480
- onGenerateSvg: E(It),
481
- onToggleTable: Dt,
482
- onGenerateCsv: Ot,
483
- onCopyAlt: Rt,
484
- style: b({ visibility: E(pt) ? E(B) ? "visible" : "hidden" : "visible" })
485
- }, Ce({ _: 2 }, [
486
- e.$slots.menuIcon ? {
487
- name: "menuIcon",
488
- fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(g({
489
- isOpen: t,
490
- color: n
491
- })), void 0, !0)]),
492
- key: "0"
493
- } : void 0,
494
- e.$slots.optionPdf ? {
495
- name: "optionPdf",
496
- fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
497
- key: "1"
498
- } : void 0,
499
- e.$slots.optionCsv ? {
500
- name: "optionCsv",
501
- fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
502
- key: "2"
503
- } : void 0,
504
- e.$slots.optionImg ? {
505
- name: "optionImg",
506
- fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
507
- key: "3"
508
- } : void 0,
509
- e.$slots.optionSvg ? {
510
- name: "optionSvg",
511
- fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
512
- key: "4"
513
- } : void 0,
514
- e.$slots.optionTable ? {
515
- name: "optionTable",
516
- fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
517
- key: "5"
518
- } : void 0,
519
- e.$slots.optionFullscreen ? {
520
- name: "optionFullscreen",
521
- fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(g({
522
- toggleFullscreen: t,
523
- isFullscreen: n
524
- })), void 0, !0)]),
525
- key: "6"
526
- } : void 0,
527
- e.$slots.optionAnnotator ? {
528
- name: "optionAnnotator",
529
- fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(g({
530
- toggleAnnotator: t,
531
- isAnnotator: n
532
- })), void 0, !0)]),
533
- key: "7"
534
- } : void 0,
535
- e.$slots.optionAltCopy ? {
536
- name: "optionAltCopy",
537
- fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(g({ altCopy: t })), void 0, !0)]),
538
- key: "8"
539
- } : void 0,
540
- e.$slots["custom-menu-before"] ? {
541
- name: "custom-menu-before",
542
- fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
543
- key: "9"
544
- } : void 0,
545
- e.$slots["custom-menu-after"] ? {
546
- name: "custom-menu-after",
547
- fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
548
- key: "10"
549
- } : void 0
550
- ]), 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("."))) : d("", !0),
551
- R.value ? (x(), f("svg", {
552
- key: 4,
553
- ref_key: "svgRef",
554
- ref: mt,
555
- xmlns: E(oe),
556
- class: v({
557
- "vue-data-ui-fullscreen--on": Y.value,
558
- "vue-data-ui-fulscreen--off": !Y.value
559
- }),
560
- viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
561
- style: b(`max-width:100%; overflow: visible; background:transparent;color:${z.value.style.chart.color}`)
562
- }, [
563
- m(E(Xe)),
564
- e.$slots["chart-background"] ? (x(), f("foreignObject", {
565
- key: 0,
566
- x: 0,
567
- y: 0,
568
- width: U.value.width <= 0 ? 10 : U.value.width,
569
- height: U.value.height <= 0 ? 10 : U.value.height,
570
- style: { pointerEvents: "none" }
571
- }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Fe)) : d("", !0),
572
- p("defs", null, [m(ve, {
573
- t: "linear",
574
- id: `funnel_area_${M.value}`,
575
- x1: "0%",
576
- x2: "100%",
577
- y1: "0%",
578
- y2: "0%",
579
- stops: [
580
- [
581
- "0%",
582
- z.value.style.chart.backgroundColor,
583
- 0
584
- ],
585
- [
586
- "20%",
587
- z.value.style.chart.area.color,
588
- 1
589
- ],
590
- [
591
- "100%",
592
- z.value.style.chart.area.color,
593
- 1
594
- ]
595
- ]
596
- }, null, 8, ["id", "stops"])]),
597
- z.value.style.chart.circleLinks.show ? (x(), f("line", _({ key: 1 }, Ct.value, {
598
- stroke: z.value.style.chart.circleLinks.color,
599
- "stroke-width": 12 * z.value.style.chart.circleLinks.widthRatio,
600
- "stroke-linecap": "round",
601
- class: { animated: z.value.useCssAnimation && !E(k) },
602
- style: {
603
- strokeDasharray: z.value.useCssAnimation && !E(k) ? G.value.height : 0,
604
- strokeDashoffset: z.value.useCssAnimation && !E(k) ? G.value.height : 0
605
- }
606
- }), null, 16, Ie)) : d("", !0),
607
- (x(!0), f(c, null, C(J.value, ({ cx: e, cy: t, r: n, fill: r }, i) => (x(), f("circle", _({ ref_for: !0 }, {
608
- cx: e,
609
- cy: t,
610
- r: n,
611
- fill: r
612
- }, {
613
- stroke: z.value.style.chart.circles.stroke,
614
- "stroke-width": z.value.style.chart.circles.strokeWidth,
615
- class: { animated: z.value.useCssAnimation && !F.value && !E(k) },
616
- style: { animationDelay: `${150 * i}ms` }
617
- }), null, 16, Le))), 256)),
618
- (x(!0), f(c, null, C(J.value, (e, t) => (x(), f("text", {
619
- x: e.cx,
620
- y: e.cy + H.value.circles / 3 + z.value.style.chart.circles.dataLabels.offsetY,
621
- "text-anchor": "middle",
622
- "font-size": H.value.circles,
623
- fill: z.value.style.chart.circles.dataLabels.adaptColorToBackground ? E(ae)(e.color) : z.value.style.chart.circles.dataLabels.color,
624
- "font-weight": z.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
625
- class: v({ animated: z.value.useCssAnimation && !F.value && !E(k) }),
626
- style: b({ animationDelay: `${150 * t}ms` })
627
- }, T(E(o)(z.value.style.chart.circles.dataLabels.formatter, e.proportion * 100, E(a)({
628
- v: e.proportion * 100,
629
- s: "%",
630
- r: z.value.style.chart.circles.dataLabels.rounding
631
- }), { datapoint: e })), 15, Re))), 256)),
632
- z.value.style.chart.area.show ? (x(), f("polygon", {
633
- key: 2,
634
- points: St.value,
635
- fill: `url(#funnel_area_${M.value})`,
636
- class: v({ animated: z.value.useCssAnimation && !F.value && !E(k) }),
637
- style: b({ transition: z.value.useCssAnimation ? `all ${150 * W.value.length}ms ease-in` : "none" })
638
- }, null, 14, ze)) : d("", !0),
639
- (x(!0), f(c, null, C(J.value, ({ x: e, y: t, height: n, width: r, fill: i }, a) => (x(), f("rect", _({ ref_for: !0 }, {
640
- x: e,
641
- y: t,
642
- height: n,
643
- width: r,
644
- fill: i
645
- }, {
646
- stroke: z.value.style.chart.bars.stroke,
647
- "stroke-width": z.value.style.chart.bars.strokeWidth,
648
- rx: z.value.style.chart.bars.borderRadius,
649
- class: { animated: z.value.useCssAnimation && !F.value && !E(k) },
650
- style: { animationDelay: `${150 * a}ms` }
651
- }), null, 16, Be))), 256)),
652
- (x(!0), f(c, null, C(J.value, (e, t) => (x(), f("g", null, [p("text", {
653
- x: e.x + e.width + z.value.style.chart.bars.dataLabels.name.offsetX + 12,
654
- y: e.cy - H.value.names / 2 + z.value.style.chart.bars.dataLabels.name.offsetY,
655
- "text-anchor": "start",
656
- "font-size": H.value.names,
657
- fill: z.value.style.chart.bars.dataLabels.name.color,
658
- "font-weight": z.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
659
- class: v({ animated: z.value.useCssAnimation && !F.value && !E(k) }),
660
- style: b({ animationDelay: `${150 * t}ms` })
661
- }, T(e.name), 15, Ve), p("text", {
662
- x: e.x + e.width + z.value.style.chart.bars.dataLabels.value.offsetX + 12,
663
- y: e.cy + H.value.values + z.value.style.chart.bars.dataLabels.value.offsetY,
664
- "text-anchor": "start",
665
- "font-size": H.value.values,
666
- fill: z.value.style.chart.bars.dataLabels.value.color,
667
- "font-weight": z.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
668
- class: v({ animated: z.value.useCssAnimation && !F.value && !E(k) }),
669
- style: b({ animationDelay: `${150 * t}ms` })
670
- }, T(E(o)(z.value.style.chart.bars.dataLabels.value.formatter, e.value, E(a)({
671
- p: z.value.style.chart.bars.dataLabels.value.prefix,
672
- v: e.value,
673
- s: z.value.style.chart.bars.dataLabels.value.suffix,
674
- r: z.value.style.chart.bars.dataLabels.value.rounding
675
- }), { datapoint: e })), 15, He)]))), 256)),
676
- w(e.$slots, "svg", { svg: {
677
- ...U.value,
678
- isPrintingImg: E(ht) || E(gt) || E(Pt),
679
- isPrintingSvg: E(Ft)
680
- } }, void 0, !0)
681
- ], 14, Pe)) : d("", !0),
682
- e.$slots.watermark ? (x(), f("div", Ue, [w(e.$slots, "watermark", y(g({ isPrinting: E(ht) || E(gt) || E(Pt) || E(Ft) })), void 0, !0)])) : d("", !0),
683
- R.value ? d("", !0) : (x(), u(E(Ge), {
684
- key: 6,
685
- config: {
686
- type: "verticalBar",
687
- style: {
688
- backgroundColor: z.value.style.chart.backgroundColor,
689
- verticalBar: {
690
- axis: { color: "#CCCCCC" },
691
- color: "#CCCCCC"
692
- }
693
- }
694
- }
695
- }, null, 8, ["config"])),
696
- e.$slots.source ? (x(), f("div", {
697
- key: 7,
698
- ref_key: "source",
699
- ref: ot,
700
- dir: "auto"
701
- }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
702
- R.value && z.value.userOptions.buttons.table ? (x(), u(Oe($.value.component), _({ key: 8 }, $.value.props, {
703
- ref_key: "tableUnit",
704
- ref: I,
705
- onClose: jt
706
- }), Ce({
707
- content: D(() => [(x(), u(E(qe), {
708
- key: `table_${it.value}`,
709
- colNames: Q.value.colNames,
710
- head: Q.value.head,
711
- body: Q.value.body,
712
- config: Q.value.config,
713
- title: z.value.table.useDialog ? "" : $.value.title,
714
- withCloseButton: !z.value.table.useDialog,
715
- onClose: jt
716
- }, {
717
- th: D(({ th: e }) => [p("div", We, T(e), 1)]),
718
- td: D(({ td: e }) => [we(T(e.name ? e.name : e), 1)]),
719
- _: 1
720
- }, 8, [
721
- "colNames",
722
- "head",
723
- "body",
724
- "config",
725
- "title",
726
- "withCloseButton"
727
- ]))]),
728
- _: 2
729
- }, [z.value.table.useDialog ? {
730
- name: "title",
731
- fn: D(() => [we(T($.value.title), 1)]),
732
- key: "0"
733
- } : void 0, z.value.table.useDialog ? {
734
- name: "actions",
735
- fn: D(() => [p("button", {
736
- tabindex: "0",
737
- class: "vue-ui-user-options-button",
738
- onClick: t[0] ||= (e) => Ot(z.value.userOptions.callbacks.csv)
739
- }, [m(E(O), {
740
- name: "fileCsv",
741
- stroke: $.value.props.color
742
- }, null, 8, ["stroke"])])]),
743
- key: "1"
744
- } : void 0]), 1040)) : d("", !0)
745
- ], 46, Ne));
746
- }
747
- }, [["__scopeId", "data-v-9835402c"]]);
748
- //#endregion
749
- export { Me as n, O as t };