vue-data-ui 3.1.1 → 3.1.3

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 (95) hide show
  1. package/dist/{Arrow-xQM7mBzd.js → Arrow-DBaAWGvq.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B2BQC0-h.js → BaseDraggableDialog-BmN9jTP8.js} +2 -2
  3. package/dist/{BaseIcon-DLesaZpW.js → BaseIcon-BcOSijbz.js} +5 -3
  4. package/dist/{ColorPicker-BKvJvFtX.js → ColorPicker-D1yNPt76.js} +2 -2
  5. package/dist/{DataTable-BAf4Obr9.js → DataTable-Cm8Tt9PQ.js} +2 -2
  6. package/dist/Legend-5qvgVkrY.js +85 -0
  7. package/dist/{NonSvgPenAndPaper-Cq4fHmA0.js → NonSvgPenAndPaper-D3QGd7vP.js} +3 -3
  8. package/dist/{PackageVersion-Cv_ypT0N.js → PackageVersion-0XlRFsI_.js} +1 -1
  9. package/dist/{PenAndPaper-B6OvfyHH.js → PenAndPaper-CyH7Ip2i.js} +3 -3
  10. package/dist/{Shape-Cjca5zta.js → Shape-DiplSMFy.js} +1 -1
  11. package/dist/{Slicer-6w3K8gAc.js → Slicer-DG99wPTy.js} +11 -9
  12. package/dist/{SparkTooltip-BV4Z-NMp.js → SparkTooltip-VveQSwlw.js} +1 -1
  13. package/dist/Title-CqYBs02Y.js +88 -0
  14. package/dist/{Tooltip-BTGOEC7w.js → Tooltip-CP0tVHAf.js} +1 -1
  15. package/dist/{UserOptions-CsDlFB0L.js → UserOptions-ZmwlARCV.js} +125 -108
  16. package/dist/{dom-to-png-BOu5-Ohz.js → dom-to-png-DGA4a3xT.js} +1 -1
  17. package/dist/{img-gBDz7xQQ.js → img-DSrvx9J6.js} +1 -1
  18. package/dist/{index-BKQqb9lF.js → index-CaxArMHL.js} +97 -74
  19. package/dist/pdf-BG8PiGFH.js +79 -0
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +28 -3
  22. package/dist/types/vue-data-ui.d.ts +28 -3
  23. package/dist/{useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js → useAutoSizeLabelsInsideViewbox-DmtFf4bt.js} +1 -1
  24. package/dist/{useNestedProp-aBOhgs4U.js → useNestedProp-tWT02_6S.js} +1 -1
  25. package/dist/{usePrinter-BzuXiubT.js → usePrinter-BYtPmEo8.js} +13 -12
  26. package/dist/{vue-data-ui-B6eM6hF3.js → vue-data-ui-DVb8r5z7.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-DBeWmnvH.js → vue-ui-3d-bar-BLKyWpz7.js} +371 -366
  29. package/dist/{vue-ui-accordion-B5QeV3BK.js → vue-ui-accordion-DUlNpLir.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-rZFdUsgz.js → vue-ui-age-pyramid-LLqbXP1m.js} +200 -195
  31. package/dist/{vue-ui-annotator-CCCuslrT.js → vue-ui-annotator-CcYIlcKF.js} +2 -2
  32. package/dist/{vue-ui-bullet-DhJf9mvK.js → vue-ui-bullet-BKmts_u4.js} +7 -7
  33. package/dist/{vue-ui-candlestick-CGVtDKqZ.js → vue-ui-candlestick-C9l_NpXu.js} +225 -220
  34. package/dist/{vue-ui-carousel-table-DLAR3WY8.js → vue-ui-carousel-table-H7xS6aBC.js} +4 -4
  35. package/dist/{vue-ui-chestnut-BXnSxoXB.js → vue-ui-chestnut-CAW0IOdY.js} +344 -340
  36. package/dist/{vue-ui-chord-DH_MwAKX.js → vue-ui-chord-CK5YhCqM.js} +272 -266
  37. package/dist/{vue-ui-circle-pack-Cx_E1R63.js → vue-ui-circle-pack-NLyZgTGF.js} +6 -6
  38. package/dist/{vue-ui-cursor-CEvH1qDS.js → vue-ui-cursor-CyGUrKWU.js} +2 -2
  39. package/dist/vue-ui-dashboard-Cf5pvEzD.js +412 -0
  40. package/dist/{vue-ui-digits-PTozKs3l.js → vue-ui-digits-BZWwwp7c.js} +2 -2
  41. package/dist/{vue-ui-donut-evolution-DD7o-CxF.js → vue-ui-donut-evolution-CaEYMVZj.js} +310 -304
  42. package/dist/{vue-ui-donut-CsEtKJJD.js → vue-ui-donut-g1WHrj6G.js} +348 -343
  43. package/dist/{vue-ui-dumbbell-DfPYl3fu.js → vue-ui-dumbbell-BArS1nXS.js} +293 -287
  44. package/dist/{vue-ui-flow-CSTTZHwg.js → vue-ui-flow-BR0CB5qt.js} +263 -257
  45. package/dist/{vue-ui-funnel-C-NUZqIo.js → vue-ui-funnel-D2OCItvq.js} +206 -200
  46. package/dist/{vue-ui-galaxy-BwsZnU6T.js → vue-ui-galaxy-qgGF1AAf.js} +243 -238
  47. package/dist/{vue-ui-gauge-D9MUneq0.js → vue-ui-gauge-BIXmGyQL.js} +7 -7
  48. package/dist/{vue-ui-gizmo-Dnzs9wSf.js → vue-ui-gizmo-DHEoS051.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CYaQIhy8.js → vue-ui-heatmap-tRzq9BnI.js} +405 -401
  50. package/dist/{vue-ui-history-plot-DMTFzl-_.js → vue-ui-history-plot-DmwHhrDk.js} +305 -299
  51. package/dist/{vue-ui-kpi-CkPotdff.js → vue-ui-kpi-C2b2R5i1.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CCE-bDOJ.js → vue-ui-mini-loader-Bs1Mi1tD.js} +2 -2
  53. package/dist/{vue-ui-molecule-DaN5lroq.js → vue-ui-molecule-BsUvf2v7.js} +188 -183
  54. package/dist/{vue-ui-mood-radar-tM0mmZh8.js → vue-ui-mood-radar-D3JIpVvX.js} +197 -192
  55. package/dist/{vue-ui-nested-donuts-RB4r6beI.js → vue-ui-nested-donuts-dJEgQXTH.js} +326 -320
  56. package/dist/{vue-ui-onion-CxDozHg3.js → vue-ui-onion-D8dF1DdA.js} +8 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-CK9nNExU.js → vue-ui-parallel-coordinate-plot-LmFsg7UA.js} +401 -395
  58. package/dist/{vue-ui-quadrant-C7tLJYn7.js → vue-ui-quadrant-C4O8ki4N.js} +339 -334
  59. package/dist/{vue-ui-quick-chart-MUBAkrHb.js → vue-ui-quick-chart-6bEtTQBG.js} +6 -6
  60. package/dist/{vue-ui-radar-Br4K80I9.js → vue-ui-radar-CfjGWGk3.js} +248 -243
  61. package/dist/{vue-ui-rating-NtvT9r_M.js → vue-ui-rating-D3WSs2OD.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CPQjAy1g.js → vue-ui-relation-circle-DzTfi7Tf.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-C2M_Cjlh.js → vue-ui-ridgeline-NtYOJvDy.js} +267 -263
  64. package/dist/{vue-ui-rings-DEru-cWN.js → vue-ui-rings-CYQ4i71V.js} +229 -224
  65. package/dist/{vue-ui-scatter-CJKkiKle.js → vue-ui-scatter-meJEHdAD.js} +359 -354
  66. package/dist/{vue-ui-skeleton--twnjS2t.js → vue-ui-skeleton-BtILTxx-.js} +3 -3
  67. package/dist/{vue-ui-smiley-CNccdPZ7.js → vue-ui-smiley-B5bELpYD.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-9BFkkC0u.js → vue-ui-spark-trend-lixdWq_N.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-RYAThoA4.js → vue-ui-sparkbar-CaGPav-J.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DkPlmgMF.js → vue-ui-sparkgauge-BZBGYDjs.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-6EkCyYRF.js → vue-ui-sparkhistogram-Bp6KxpjH.js} +4 -4
  72. package/dist/{vue-ui-sparkline-Bl3nj8zd.js → vue-ui-sparkline-CF-EAZa6.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-B88lA7iy.js → vue-ui-sparkstackbar-Cj1LAYC8.js} +3 -3
  74. package/dist/{vue-ui-stackbar-Csj7NhT6.js → vue-ui-stackbar-BrzKhqAK.js} +310 -304
  75. package/dist/{vue-ui-strip-plot-yY9NsUUI.js → vue-ui-strip-plot-BfVVaSFn.js} +246 -240
  76. package/dist/{vue-ui-table-Dg6U31ex.js → vue-ui-table-CBzNgzVP.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-BWU7CAWP.js → vue-ui-table-heatmap-CKz5bA7N.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-DV4Y9aRL.js → vue-ui-table-sparkline-O-Z0YH6u.js} +4 -4
  79. package/dist/{vue-ui-thermometer-C3fKamV-.js → vue-ui-thermometer-DpNyTGNH.js} +7 -7
  80. package/dist/{vue-ui-timer-6VAK9XyF.js → vue-ui-timer-uvshaRMI.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BB-KAkF7.js → vue-ui-tiremarks-A8Akuz-q.js} +6 -6
  82. package/dist/{vue-ui-treemap-GrXkD_3Z.js → vue-ui-treemap-Dvmuo3tM.js} +262 -256
  83. package/dist/{vue-ui-vertical-bar-Mmz6u4aX.js → vue-ui-vertical-bar-eMgRMSKN.js} +310 -306
  84. package/dist/{vue-ui-waffle-DzPVRUOA.js → vue-ui-waffle-Cm8VfnG8.js} +257 -252
  85. package/dist/{vue-ui-wheel-idRCvS5t.js → vue-ui-wheel-Bhsklf_m.js} +6 -6
  86. package/dist/vue-ui-word-cloud-C9HGLsG4.js +817 -0
  87. package/dist/{vue-ui-world-D6s5Eph8.js → vue-ui-world-B_MrjwGJ.js} +257 -252
  88. package/dist/{vue-ui-xy-BKTGSvfU.js → vue-ui-xy-DnYJw2aS.js} +1448 -1438
  89. package/dist/{vue-ui-xy-canvas-BOQyxVRl.js → vue-ui-xy-canvas-C0Snw0Dz.js} +235 -229
  90. package/package.json +1 -1
  91. package/dist/Legend-8_V5egWW.js +0 -72
  92. package/dist/Title-Dz-j6ERs.js +0 -61
  93. package/dist/pdf-Cjsn5GEE.js +0 -61
  94. package/dist/vue-ui-dashboard-CvduVgEy.js +0 -325
  95. package/dist/vue-ui-word-cloud-B2641uNP.js +0 -811
@@ -1,17 +1,17 @@
1
- import { useCssVars as je, computed as d, defineAsyncComponent as x, ref as h, shallowRef as ke, onMounted as He, onBeforeUnmount as Xe, watch as Ce, createElementBlock as i, openBlock as n, unref as s, normalizeStyle as A, normalizeClass as N, createBlock as P, createCommentVNode as b, createSlots as we, withCtx as m, renderSlot as g, normalizeProps as G, guardReactiveProps as j, createVNode as $e, createElementVNode as C, mergeProps as H, Fragment as X, renderList as W, toDisplayString as U, resolveDynamicComponent as We, createTextVNode as xe, nextTick as Ye } from "vue";
2
- import { u as qe, c as Je, o as Ke, f as Le, g as Qe, e as Ze, l as et, k as Y, i as q, X as tt, F as at, E as ee, b as lt, v as st, w as ot } from "./index-BKQqb9lF.js";
3
- import { t as nt, u as rt } from "./useResponsive-DfdjqQps.js";
4
- import { u as ut } from "./usePrinter-BzuXiubT.js";
5
- import { u as _e } from "./useNestedProp-aBOhgs4U.js";
6
- import { u as it } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as ct } from "./useChartAccessibility-9icAAmYg.js";
8
- import vt from "./img-gBDz7xQQ.js";
9
- import dt from "./Title-Dz-j6ERs.js";
10
- import { _ as ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["id"], yt = ["stop-color"], pt = ["stop-color"], kt = ["stop-color"], Ct = ["stroke", "stroke-width"], wt = ["stroke", "stroke-width"], $t = ["x", "y", "font-size", "fill", "font-weight"], xt = ["points", "fill"], Lt = ["stroke", "stroke-width", "rx"], _t = ["x", "y", "font-size", "fill", "font-weight"], Tt = ["x", "y", "font-size", "fill", "font-weight"], At = {
1
+ import { useCssVars as Xe, computed as h, defineAsyncComponent as x, ref as c, shallowRef as we, onMounted as We, onBeforeUnmount as Ye, watch as $e, createElementBlock as i, openBlock as n, unref as s, normalizeStyle as T, normalizeClass as N, createBlock as I, createCommentVNode as b, createSlots as xe, withCtx as m, renderSlot as g, normalizeProps as G, guardReactiveProps as j, createVNode as Le, createElementVNode as C, mergeProps as H, Fragment as X, renderList as W, toDisplayString as U, resolveDynamicComponent as qe, createTextVNode as _e, nextTick as Je } from "vue";
2
+ import { u as Ke, c as Qe, o as Ze, f as Te, g as et, e as tt, l as at, k as Y, i as q, X as lt, F as st, E as te, b as ot, v as nt, w as ut } from "./index-CaxArMHL.js";
3
+ import { t as rt, u as it } from "./useResponsive-DfdjqQps.js";
4
+ import { u as ct } from "./usePrinter-BYtPmEo8.js";
5
+ import { u as Ae } from "./useNestedProp-tWT02_6S.js";
6
+ import { u as vt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as dt } from "./useChartAccessibility-9icAAmYg.js";
8
+ import ht from "./img-DSrvx9J6.js";
9
+ import ft from "./Title-CqYBs02Y.js";
10
+ import { _ as bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const mt = ["id"], gt = ["xmlns", "viewBox"], yt = ["width", "height"], pt = ["id"], kt = ["stop-color"], Ct = ["stop-color"], wt = ["stop-color"], $t = ["stroke", "stroke-width"], xt = ["stroke", "stroke-width"], Lt = ["x", "y", "font-size", "fill", "font-weight"], _t = ["points", "fill"], Tt = ["stroke", "stroke-width", "rx"], At = ["x", "y", "font-size", "fill", "font-weight"], Ot = ["x", "y", "font-size", "fill", "font-weight"], St = {
12
12
  key: 5,
13
13
  class: "vue-data-ui-watermark"
14
- }, Ot = ["innerHTML"], St = {
14
+ }, Dt = ["innerHTML"], zt = {
15
15
  __name: "vue-ui-funnel",
16
16
  props: {
17
17
  config: {
@@ -27,22 +27,22 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
27
27
  }
28
28
  }
29
29
  },
30
- setup(Te, { expose: Ae }) {
31
- je((t) => ({
32
- "37f515f8": Ee.value
30
+ setup(Oe, { expose: Se }) {
31
+ Xe((t) => ({
32
+ "1f851877": Ge.value
33
33
  }));
34
- const Oe = x(() => import("./BaseIcon-DLesaZpW.js")), Se = x(() => import("./vue-ui-skeleton--twnjS2t.js")), ze = x(() => import("./vue-ui-accordion-B5QeV3BK.js")), De = x(() => import("./DataTable-BAf4Obr9.js")), Ne = x(() => import("./UserOptions-CsDlFB0L.js")), Pe = x(() => import("./PenAndPaper-B6OvfyHH.js")), Ie = x(() => import("./PackageVersion-Cv_ypT0N.js")), Fe = x(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_funnel: Be } = qe(), y = Te, w = h(null), I = h(Je()), te = h(0), ae = h(0), le = h(0), se = h(null), oe = h(null), ne = h(null), $ = ke(null), O = ke(null), L = h(!1), F = h(null), S = d(() => !!y.dataset && y.dataset.length);
35
- He(re);
34
+ const De = x(() => import("./BaseIcon-BcOSijbz.js")), ze = x(() => import("./vue-ui-skeleton-BtILTxx-.js")), Ne = x(() => import("./vue-ui-accordion-DUlNpLir.js")), Ie = x(() => import("./DataTable-Cm8Tt9PQ.js")), Pe = x(() => import("./UserOptions-ZmwlARCV.js")), Fe = x(() => import("./PenAndPaper-CyH7Ip2i.js")), Re = x(() => import("./PackageVersion-0XlRFsI_.js")), Be = x(() => import("./BaseDraggableDialog-BmN9jTP8.js")), { vue_ui_funnel: Me } = Ke(), y = Oe, w = c(null), P = c(Qe()), ae = c(0), le = c(0), se = c(0), oe = c(null), ne = c(null), ue = c(null), $ = we(null), A = we(null), L = c(!1), F = c(null), J = c(null), O = h(() => !!y.dataset && y.dataset.length);
35
+ We(re);
36
36
  function re() {
37
- if (Ke(y.dataset) ? Le({
37
+ if (Ze(y.dataset) ? Te({
38
38
  componentName: "VueUiFunnel",
39
39
  type: "dataset"
40
40
  }) : y.dataset.forEach((t, l) => {
41
- Qe({
41
+ et({
42
42
  datasetObject: t,
43
43
  requiredAttributes: ["name", "value"]
44
44
  }).forEach((a) => {
45
- S.value = !1, Le({
45
+ O.value = !1, Te({
46
46
  componentName: "VueUiFunnel",
47
47
  type: "datasetSerieAttribute",
48
48
  property: a,
@@ -50,96 +50,96 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
50
50
  });
51
51
  });
52
52
  }), e.value.responsive) {
53
- const t = nt(() => {
54
- const { width: l, height: a } = rt({
53
+ const t = rt(() => {
54
+ const { width: l, height: a } = it({
55
55
  chart: w.value,
56
- title: e.value.style.chart.title.text ? ne.value : null,
57
- source: oe.value,
58
- noTitle: se.value
56
+ title: e.value.style.chart.title.text ? ue.value : null,
57
+ source: ne.value,
58
+ noTitle: oe.value
59
59
  });
60
60
  requestAnimationFrame(() => {
61
- v.value.height = a, v.value.width = l, k.value = me(), e.value.responsiveProportionalSizing ? (c.value.circles = ee({
61
+ d.value.height = a, d.value.width = l, k.value = ge(), e.value.responsiveProportionalSizing ? (v.value.circles = te({
62
62
  relator: Math.min(l, a),
63
63
  adjuster: 600,
64
64
  source: e.value.style.chart.circles.dataLabels.fontSize,
65
65
  threshold: 10,
66
66
  fallback: 10
67
- }), c.value.names = ee({
67
+ }), v.value.names = te({
68
68
  relator: Math.min(l, a),
69
69
  adjuster: 600,
70
70
  source: e.value.style.chart.bars.dataLabels.name.fontSize,
71
71
  threshold: 10,
72
72
  fallback: 10
73
- }), c.value.values = ee({
73
+ }), v.value.values = te({
74
74
  relator: Math.min(l, a),
75
75
  adjuster: 600,
76
76
  source: e.value.style.chart.bars.dataLabels.value.fontSize,
77
77
  threshold: 10,
78
78
  fallback: 10
79
- })) : (c.value.circles = e.value.style.chart.circles.dataLabels.fontSize, c.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, c.value.values = e.value.style.chart.bars.dataLabels.value.fontSize);
79
+ })) : (v.value.circles = e.value.style.chart.circles.dataLabels.fontSize, v.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, v.value.values = e.value.style.chart.bars.dataLabels.value.fontSize);
80
80
  });
81
81
  });
82
- $.value && (O.value && $.value.unobserve(O.value), $.value.disconnect()), $.value = new ResizeObserver(t), O.value = w.value.parentNode, $.value.observe(O.value);
82
+ $.value && (A.value && $.value.unobserve(A.value), $.value.disconnect()), $.value = new ResizeObserver(t), A.value = w.value.parentNode, $.value.observe(A.value);
83
83
  }
84
84
  }
85
- Xe(() => {
86
- $.value && (O.value && $.value.unobserve(O.value), $.value.disconnect());
85
+ Ye(() => {
86
+ $.value && (A.value && $.value.unobserve(A.value), $.value.disconnect());
87
87
  });
88
- function ue() {
89
- const t = _e({
88
+ function ie() {
89
+ const t = Ae({
90
90
  userConfig: y.config,
91
- defaultConfig: Be
91
+ defaultConfig: Me
92
92
  });
93
93
  return t.theme ? {
94
- ..._e({
95
- userConfig: lt.vue_ui_funnel[t.theme] || y.config,
94
+ ...Ae({
95
+ userConfig: ot.vue_ui_funnel[t.theme] || y.config,
96
96
  defaultConfig: t
97
97
  })
98
98
  } : t;
99
99
  }
100
- const e = d({
101
- get: () => ue(),
100
+ const e = h({
101
+ get: () => ie(),
102
102
  set: (t) => t
103
- }), { userOptionsVisible: J, setUserOptionsVisibility: ie, keepUserOptionState: ce } = it({ config: e.value }), { svgRef: ve } = ct({ config: e.value.style.chart.title });
104
- Ce(() => y.config, (t) => {
105
- e.value = ue(), J.value = !e.value.userOptions.showOnChartHover, re(), ae.value += 1, le.value += 1, c.value.circles = e.value.style.chart.circles.dataLabels.fontSize, c.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, c.value.values = e.value.style.chart.bars.dataLabels.value.fontSize, _.value.showTable = e.value.table.show;
103
+ }), { userOptionsVisible: K, setUserOptionsVisibility: ce, keepUserOptionState: ve } = vt({ config: e.value }), { svgRef: de } = dt({ config: e.value.style.chart.title });
104
+ $e(() => y.config, (t) => {
105
+ e.value = ie(), K.value = !e.value.userOptions.showOnChartHover, re(), le.value += 1, se.value += 1, v.value.circles = e.value.style.chart.circles.dataLabels.fontSize, v.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, v.value.values = e.value.style.chart.bars.dataLabels.value.fontSize, S.value.showTable = e.value.table.show;
106
106
  }, { deep: !0 });
107
- const { isPrinting: de, isImaging: he, generatePdf: fe, generateImage: be } = ut({
108
- elementId: `funnel_${I.value}`,
107
+ const { isPrinting: he, isImaging: fe, generatePdf: be, generateImage: me } = ct({
108
+ elementId: `funnel_${P.value}`,
109
109
  fileName: e.value.style.chart.title.text || "vue-ui-funnel",
110
110
  options: e.value.userOptions.print
111
- }), Re = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), _ = h({
111
+ }), Ue = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), S = c({
112
112
  showTable: e.value.table.show
113
- }), c = h({
113
+ }), v = c({
114
114
  circles: e.value.style.chart.circles.dataLabels.fontSize,
115
115
  names: e.value.style.chart.bars.dataLabels.name.fontSize,
116
116
  values: e.value.style.chart.bars.dataLabels.value.fontSize
117
- }), v = d({
117
+ }), d = h({
118
118
  get: () => ({
119
119
  height: e.value.style.chart.height,
120
120
  width: e.value.style.chart.width
121
121
  }),
122
122
  set: (t) => t
123
- }), p = d(() => S.value ? y.dataset.map((t, l) => ({
123
+ }), p = h(() => O.value ? y.dataset.map((t, l) => ({
124
124
  ...t,
125
- color: t.color ? Ze(t.color) : et(e.value.style.chart.bars.defaultColor, l / y.dataset.length)
125
+ color: t.color ? tt(t.color) : at(e.value.style.chart.bars.defaultColor, l / y.dataset.length)
126
126
  })) : []);
127
127
  setTimeout(() => {
128
128
  L.value = !0;
129
129
  }, p.value.length * 150);
130
- function me() {
130
+ function ge() {
131
131
  const t = e.value.style.chart.padding.left, l = e.value.style.chart.padding.top;
132
132
  return {
133
133
  left: t,
134
134
  top: l,
135
- right: v.value.width - e.value.style.chart.padding.right,
136
- bottom: v.value.height - e.value.style.chart.padding.bottom,
137
- width: v.value.width - t - e.value.style.chart.padding.right,
138
- height: v.value.height - l - e.value.style.chart.padding.bottom
135
+ right: d.value.width - e.value.style.chart.padding.right,
136
+ bottom: d.value.height - e.value.style.chart.padding.bottom,
137
+ width: d.value.width - t - e.value.style.chart.padding.right,
138
+ height: d.value.height - l - e.value.style.chart.padding.bottom
139
139
  };
140
140
  }
141
- const k = h(me()), z = d(() => k.value.height / y.dataset.length), T = d(() => z.value * e.value.style.chart.bars.gapRatio), ge = d(() => k.value.width * e.value.style.chart.barCircleSpacingRatio), r = d(() => p.value.map((t, l) => {
142
- const a = z.value - T.value, o = k.value.top + T.value / 2 * l + (z.value - T.value / 2) * l + T.value / 2, f = t.value / p.value[0].value, u = (k.value.width - a - ge.value) * (t.value / p.value[0].value);
141
+ const k = c(ge()), D = h(() => k.value.height / y.dataset.length), _ = h(() => D.value * e.value.style.chart.bars.gapRatio), ye = h(() => k.value.width * e.value.style.chart.barCircleSpacingRatio), u = h(() => p.value.map((t, l) => {
142
+ const a = D.value - _.value, o = k.value.top + _.value / 2 * l + (D.value - _.value / 2) * l + _.value / 2, f = t.value / p.value[0].value, r = (k.value.width - a - ye.value) * (t.value / p.value[0].value);
143
143
  return {
144
144
  ...t,
145
145
  cx: k.value.left + a / 2,
@@ -149,65 +149,65 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
149
149
  height: Math.max(a, 0),
150
150
  proportion: f,
151
151
  r: Math.max(a / 2, 0),
152
- width: Math.max(u, 0),
153
- x: k.value.left + a + ge.value,
152
+ width: Math.max(r, 0),
153
+ x: k.value.left + a + ye.value,
154
154
  y: o
155
155
  };
156
- })), Me = d(() => {
157
- const t = r.value.map((l) => `${l.x + l.width},${l.y + (z.value - T.value) / 2}`);
158
- return `${r.value[0].x},${r.value[0].y + (z.value - T.value) / 2} ${t.toString()} ${r.value.at(-1).x},${r.value.at(-1).y + (z.value - T.value) / 2}`;
159
- }), Ue = d(() => ({
160
- x1: r.value[0].cx,
161
- y1: r.value[0].cy,
162
- x2: r.value.at(-1).cx,
163
- y2: r.value.at(-1).cy
164
- })), D = h(!1);
165
- function ye(t) {
166
- D.value = t, te.value += 1;
156
+ })), Ee = h(() => {
157
+ const t = u.value.map((l) => `${l.x + l.width},${l.y + (D.value - _.value) / 2}`);
158
+ return `${u.value[0].x},${u.value[0].y + (D.value - _.value) / 2} ${t.toString()} ${u.value.at(-1).x},${u.value.at(-1).y + (D.value - _.value) / 2}`;
159
+ }), Ve = h(() => ({
160
+ x1: u.value[0].cx,
161
+ y1: u.value[0].cy,
162
+ x2: u.value.at(-1).cx,
163
+ y2: u.value.at(-1).cy
164
+ })), z = c(!1);
165
+ function pe(t) {
166
+ z.value = t, ae.value += 1;
167
167
  }
168
- const Ee = d(() => `${p.value.length * 150}ms`), E = h(!1);
169
- function K() {
168
+ const Ge = h(() => `${p.value.length * 150}ms`), E = c(!1);
169
+ function Q() {
170
170
  E.value = !E.value;
171
171
  }
172
- function pe() {
173
- _.value.showTable = !_.value.showTable;
172
+ function ke() {
173
+ S.value.showTable = !S.value.showTable;
174
174
  }
175
- const B = d(() => {
175
+ const R = h(() => {
176
176
  const t = p.value.map((a) => ({
177
177
  name: a.name,
178
178
  color: a.color
179
179
  })), l = p.value.map((a) => a.value);
180
180
  return { head: t, body: l };
181
- }), V = d(() => {
181
+ }), V = h(() => {
182
182
  const t = [
183
183
  e.value.table.columnNames.series,
184
184
  e.value.table.columnNames.value,
185
185
  e.value.table.columnNames.percentage
186
- ], l = B.value.head.map((f, u) => {
186
+ ], l = R.value.head.map((f, r) => {
187
187
  const M = Y(
188
188
  e.value.style.chart.bars.dataLabels.value.formatter,
189
- B.value.body[u],
189
+ R.value.body[r],
190
190
  q({
191
191
  p: e.value.style.chart.bars.dataLabels.value.prefix,
192
- v: B.value.body[u],
192
+ v: R.value.body[r],
193
193
  s: e.value.style.chart.bars.dataLabels.value.suffix,
194
194
  r: e.value.table.td.roundingValue
195
195
  }),
196
- { datapoint: r.value[u] }
197
- ), Z = Y(
196
+ { datapoint: u.value[r] }
197
+ ), ee = Y(
198
198
  e.value.style.chart.circles.dataLabels.formatter,
199
- r.value[u].proportion * 100,
199
+ u.value[r].proportion * 100,
200
200
  q({
201
- v: r.value[u].proportion * 100,
201
+ v: u.value[r].proportion * 100,
202
202
  s: "%",
203
203
  r: e.value.table.td.roundingPercentage
204
204
  }),
205
- { datapoint: r.value[u] }
205
+ { datapoint: u.value[r] }
206
206
  );
207
207
  return [
208
208
  { color: f.color, name: f.name },
209
209
  M,
210
- Z
210
+ ee
211
211
  ];
212
212
  }), a = {
213
213
  th: {
@@ -233,40 +233,40 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
233
233
  config: a
234
234
  };
235
235
  });
236
- function Q(t = null) {
237
- Ye(() => {
238
- const l = B.value.head.map((f, u) => [[
236
+ function Z(t = null) {
237
+ Je(() => {
238
+ const l = R.value.head.map((f, r) => [[
239
239
  f.name
240
- ], [B.value.body[u]], [r.value[u].proportion * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value], ["%"]]].concat(l), o = st(a);
241
- t ? t(o) : ot({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-funnel" });
240
+ ], [R.value.body[r]], [u.value[r].proportion * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value], ["%"]]].concat(l), o = nt(a);
241
+ t ? t(o) : ut({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-funnel" });
242
242
  });
243
243
  }
244
- function Ve() {
244
+ function je() {
245
245
  return p.value;
246
246
  }
247
- async function Ge({ scale: t = 2 } = {}) {
247
+ async function He({ scale: t = 2 } = {}) {
248
248
  if (!w.value) return;
249
- const { width: l, height: a } = w.value.getBoundingClientRect(), o = l / a, { imageUri: f, base64: u } = await vt({ domElement: w.value, base64: !0, img: !0, scale: t });
249
+ const { width: l, height: a } = w.value.getBoundingClientRect(), o = l / a, { imageUri: f, base64: r } = await ht({ domElement: w.value, base64: !0, img: !0, scale: t });
250
250
  return {
251
251
  imageUri: f,
252
- base64: u,
252
+ base64: r,
253
253
  title: e.value.style.chart.title.text,
254
254
  width: l,
255
255
  height: a,
256
256
  aspectRatio: o
257
257
  };
258
258
  }
259
- const R = d(() => {
260
- const t = e.value.table.useDialog && !e.value.table.show, l = _.value.showTable;
259
+ const B = h(() => {
260
+ const t = e.value.table.useDialog && !e.value.table.show, l = S.value.showTable;
261
261
  return {
262
- component: t ? Fe : ze,
262
+ component: t ? Be : Ne,
263
263
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
264
264
  props: t ? {
265
265
  backgroundColor: e.value.table.th.backgroundColor,
266
266
  color: e.value.table.th.color,
267
267
  headerColor: e.value.table.th.color,
268
268
  headerBg: e.value.table.th.backgroundColor,
269
- isFullscreen: D.value,
269
+ isFullscreen: z.value,
270
270
  fullscreenParent: w.value,
271
271
  forcedWidth: Math.min(800, window.innerWidth * 0.8)
272
272
  } : {
@@ -286,49 +286,53 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
286
286
  }
287
287
  };
288
288
  });
289
- return Ce(() => _.value.showTable, (t) => {
289
+ $e(() => S.value.showTable, (t) => {
290
290
  e.value.table.show || (t && e.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
291
- }), Ae({
292
- getData: Ve,
293
- getImage: Ge,
294
- generatePdf: fe,
295
- generateCsv: Q,
296
- generateImage: be,
297
- toggleTable: pe,
298
- toggleAnnotator: K,
299
- toggleFullscreen: ye
291
+ });
292
+ function Ce() {
293
+ S.value.showTable = !1, J.value && J.value.setTableIconState(!1);
294
+ }
295
+ return Se({
296
+ getData: je,
297
+ getImage: He,
298
+ generatePdf: be,
299
+ generateCsv: Z,
300
+ generateImage: me,
301
+ toggleTable: ke,
302
+ toggleAnnotator: Q,
303
+ toggleFullscreen: pe
300
304
  }), (t, l) => (n(), i("div", {
301
305
  ref_key: "funnelChart",
302
306
  ref: w,
303
- class: N(`vue-ui-funnel ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
304
- style: A(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
305
- id: `funnel_${I.value}`,
306
- onMouseenter: l[3] || (l[3] = () => s(ie)(!0)),
307
- onMouseleave: l[4] || (l[4] = () => s(ie)(!1))
307
+ class: N(`vue-ui-funnel ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
308
+ style: T(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
309
+ id: `funnel_${P.value}`,
310
+ onMouseenter: l[1] || (l[1] = () => s(ce)(!0)),
311
+ onMouseleave: l[2] || (l[2] = () => s(ce)(!1))
308
312
  }, [
309
- e.value.userOptions.buttons.annotator ? (n(), P(s(Pe), {
313
+ e.value.userOptions.buttons.annotator ? (n(), I(s(Fe), {
310
314
  key: 0,
311
- svgRef: s(ve),
315
+ svgRef: s(de),
312
316
  backgroundColor: e.value.style.chart.backgroundColor,
313
317
  color: e.value.style.chart.color,
314
318
  active: E.value,
315
- onClose: K
319
+ onClose: Q
316
320
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
317
- Re.value ? (n(), i("div", {
321
+ Ue.value ? (n(), i("div", {
318
322
  key: 1,
319
323
  ref_key: "noTitle",
320
- ref: se,
324
+ ref: oe,
321
325
  class: "vue-data-ui-no-title-space",
322
326
  style: "height:36px; width: 100%;background:transparent"
323
327
  }, null, 512)) : b("", !0),
324
328
  e.value.style.chart.title.text ? (n(), i("div", {
325
329
  key: 2,
326
330
  ref_key: "chartTitle",
327
- ref: ne,
331
+ ref: ue,
328
332
  style: "width:100%;background:transparent;padding-bottom:24px"
329
333
  }, [
330
- (n(), P(dt, {
331
- key: `title_${ae.value}`,
334
+ (n(), I(ft, {
335
+ key: `title_${le.value}`,
332
336
  config: {
333
337
  title: {
334
338
  cy: "funnel-div-title",
@@ -341,14 +345,15 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
341
345
  }
342
346
  }, null, 8, ["config"]))
343
347
  ], 512)) : b("", !0),
344
- e.value.userOptions.show && S.value && (s(ce) || s(J)) ? (n(), P(s(Ne), {
345
- ref: "details",
346
- key: `user_option_${te.value}`,
348
+ e.value.userOptions.show && O.value && (s(ve) || s(K)) ? (n(), I(s(Pe), {
349
+ ref_key: "userOptionsRef",
350
+ ref: J,
351
+ key: `user_option_${ae.value}`,
347
352
  backgroundColor: e.value.style.chart.backgroundColor,
348
353
  color: e.value.style.chart.color,
349
- isPrinting: s(de),
350
- isImaging: s(he),
351
- uid: I.value,
354
+ isPrinting: s(he),
355
+ isImaging: s(fe),
356
+ uid: P.value,
352
357
  hasTooltip: !1,
353
358
  hasPdf: e.value.userOptions.buttons.pdf,
354
359
  hasImg: e.value.userOptions.buttons.img,
@@ -356,7 +361,7 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
356
361
  hasTable: e.value.userOptions.buttons.table,
357
362
  hasLabel: !1,
358
363
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
359
- isFullscreen: D.value,
364
+ isFullscreen: z.value,
360
365
  chartElement: w.value,
361
366
  position: e.value.userOptions.position,
362
367
  titles: { ...e.value.userOptions.buttonTitles },
@@ -364,16 +369,17 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
364
369
  isAnnotation: E.value,
365
370
  callbacks: e.value.userOptions.callbacks,
366
371
  printScale: e.value.userOptions.print.scale,
367
- onToggleAnnotator: K,
368
- onToggleFullscreen: ye,
369
- onGeneratePdf: s(fe),
370
- onGenerateImage: s(be),
371
- onToggleTable: pe,
372
- onGenerateCsv: Q,
373
- style: A({
374
- visibility: s(ce) ? s(J) ? "visible" : "hidden" : "visible"
372
+ tableDialog: e.value.table.useDialog,
373
+ onToggleAnnotator: Q,
374
+ onToggleFullscreen: pe,
375
+ onGeneratePdf: s(be),
376
+ onGenerateImage: s(me),
377
+ onToggleTable: ke,
378
+ onGenerateCsv: Z,
379
+ style: T({
380
+ visibility: s(ve) ? s(K) ? "visible" : "hidden" : "visible"
375
381
  })
376
- }, we({ _: 2 }, [
382
+ }, xe({ _: 2 }, [
377
383
  t.$slots.menuIcon ? {
378
384
  name: "menuIcon",
379
385
  fn: m(({ isOpen: a, color: o }) => [
@@ -423,32 +429,32 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
423
429
  ]),
424
430
  key: "6"
425
431
  } : void 0
426
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
427
- S.value ? (n(), i("svg", {
432
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
433
+ O.value ? (n(), i("svg", {
428
434
  key: 4,
429
435
  ref_key: "svgRef",
430
- ref: ve,
431
- xmlns: s(tt),
432
- class: N({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
433
- viewBox: `0 0 ${v.value.width <= 0 ? 10 : v.value.width} ${v.value.height <= 0 ? 10 : v.value.height}`,
434
- style: A(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
436
+ ref: de,
437
+ xmlns: s(lt),
438
+ class: N({ "vue-data-ui-fullscreen--on": z.value, "vue-data-ui-fulscreen--off": !z.value }),
439
+ viewBox: `0 0 ${d.value.width <= 0 ? 10 : d.value.width} ${d.value.height <= 0 ? 10 : d.value.height}`,
440
+ style: T(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
435
441
  }, [
436
- $e(s(Ie)),
442
+ Le(s(Re)),
437
443
  t.$slots["chart-background"] ? (n(), i("foreignObject", {
438
444
  key: 0,
439
445
  x: 0,
440
446
  y: 0,
441
- width: v.value.width <= 0 ? 10 : v.value.width,
442
- height: v.value.height <= 0 ? 10 : v.value.height,
447
+ width: d.value.width <= 0 ? 10 : d.value.width,
448
+ height: d.value.height <= 0 ? 10 : d.value.height,
443
449
  style: {
444
450
  pointerEvents: "none"
445
451
  }
446
452
  }, [
447
453
  g(t.$slots, "chart-background", {}, void 0, !0)
448
- ], 8, mt)) : b("", !0),
454
+ ], 8, yt)) : b("", !0),
449
455
  C("defs", null, [
450
456
  C("linearGradient", {
451
- id: `funnel_area_${I.value}`,
457
+ id: `funnel_area_${P.value}`,
452
458
  x1: "0%",
453
459
  x2: "100%",
454
460
  y1: "0%",
@@ -458,18 +464,18 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
458
464
  offset: "0%",
459
465
  "stop-color": e.value.style.chart.backgroundColor,
460
466
  "stop-opacity": 0
461
- }, null, 8, yt),
467
+ }, null, 8, kt),
462
468
  C("stop", {
463
469
  offset: "20%",
464
470
  "stop-color": e.value.style.chart.area.color
465
- }, null, 8, pt),
471
+ }, null, 8, Ct),
466
472
  C("stop", {
467
473
  offset: "100%",
468
474
  "stop-color": e.value.style.chart.area.color
469
- }, null, 8, kt)
470
- ], 8, gt)
475
+ }, null, 8, wt)
476
+ ], 8, pt)
471
477
  ]),
472
- e.value.style.chart.circleLinks.show ? (n(), i("line", H({ key: 1 }, Ue.value, {
478
+ e.value.style.chart.circleLinks.show ? (n(), i("line", H({ key: 1 }, Ve.value, {
473
479
  stroke: e.value.style.chart.circleLinks.color,
474
480
  "stroke-width": 12 * e.value.style.chart.circleLinks.widthRatio,
475
481
  "stroke-linecap": "round",
@@ -480,8 +486,8 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
480
486
  strokeDasharray: e.value.useCssAnimation ? k.value.height : 0,
481
487
  strokeDashoffset: e.value.useCssAnimation ? k.value.height : 0
482
488
  }
483
- }), null, 16, Ct)) : b("", !0),
484
- (n(!0), i(X, null, W(r.value, ({ cx: a, cy: o, r: f, fill: u }, M) => (n(), i("circle", H({ ref_for: !0 }, { cx: a, cy: o, r: f, fill: u }, {
489
+ }), null, 16, $t)) : b("", !0),
490
+ (n(!0), i(X, null, W(u.value, ({ cx: a, cy: o, r: f, fill: r }, M) => (n(), i("circle", H({ ref_for: !0 }, { cx: a, cy: o, r: f, fill: r }, {
485
491
  stroke: e.value.style.chart.circles.stroke,
486
492
  "stroke-width": e.value.style.chart.circles.strokeWidth,
487
493
  class: {
@@ -490,18 +496,18 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
490
496
  style: {
491
497
  animationDelay: `${150 * M}ms`
492
498
  }
493
- }), null, 16, wt))), 256)),
494
- (n(!0), i(X, null, W(r.value, (a, o) => (n(), i("text", {
499
+ }), null, 16, xt))), 256)),
500
+ (n(!0), i(X, null, W(u.value, (a, o) => (n(), i("text", {
495
501
  x: a.cx,
496
- y: a.cy + c.value.circles / 3 + e.value.style.chart.circles.dataLabels.offsetY,
502
+ y: a.cy + v.value.circles / 3 + e.value.style.chart.circles.dataLabels.offsetY,
497
503
  "text-anchor": "middle",
498
- "font-size": c.value.circles,
499
- fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? s(at)(a.color) : e.value.style.chart.circles.dataLabels.color,
504
+ "font-size": v.value.circles,
505
+ fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? s(st)(a.color) : e.value.style.chart.circles.dataLabels.color,
500
506
  "font-weight": e.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
501
507
  class: N({
502
508
  animated: e.value.useCssAnimation && !L.value
503
509
  }),
504
- style: A({
510
+ style: T({
505
511
  animationDelay: `${150 * o}ms`
506
512
  })
507
513
  }, U(s(Y)(
@@ -513,19 +519,19 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
513
519
  r: e.value.style.chart.circles.dataLabels.rounding
514
520
  }),
515
521
  { datapoint: a }
516
- )), 15, $t))), 256)),
522
+ )), 15, Lt))), 256)),
517
523
  e.value.style.chart.area.show ? (n(), i("polygon", {
518
524
  key: 2,
519
- points: Me.value,
520
- fill: `url(#funnel_area_${I.value})`,
525
+ points: Ee.value,
526
+ fill: `url(#funnel_area_${P.value})`,
521
527
  class: N({
522
528
  animated: e.value.useCssAnimation && !L.value
523
529
  }),
524
- style: A({
530
+ style: T({
525
531
  transition: e.value.useCssAnimation ? `all ${150 * p.value.length}ms ease-in` : "none"
526
532
  })
527
- }, null, 14, xt)) : b("", !0),
528
- (n(!0), i(X, null, W(r.value, ({ x: a, y: o, height: f, width: u, fill: M }, Z) => (n(), i("rect", H({ ref_for: !0 }, { x: a, y: o, height: f, width: u, fill: M }, {
533
+ }, null, 14, _t)) : b("", !0),
534
+ (n(!0), i(X, null, W(u.value, ({ x: a, y: o, height: f, width: r, fill: M }, ee) => (n(), i("rect", H({ ref_for: !0 }, { x: a, y: o, height: f, width: r, fill: M }, {
529
535
  stroke: e.value.style.chart.bars.stroke,
530
536
  "stroke-width": e.value.style.chart.bars.strokeWidth,
531
537
  rx: e.value.style.chart.bars.borderRadius,
@@ -533,35 +539,35 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
533
539
  animated: e.value.useCssAnimation && !L.value
534
540
  },
535
541
  style: {
536
- animationDelay: `${150 * Z}ms`
542
+ animationDelay: `${150 * ee}ms`
537
543
  }
538
- }), null, 16, Lt))), 256)),
539
- (n(!0), i(X, null, W(r.value, (a, o) => (n(), i("g", null, [
544
+ }), null, 16, Tt))), 256)),
545
+ (n(!0), i(X, null, W(u.value, (a, o) => (n(), i("g", null, [
540
546
  C("text", {
541
547
  x: a.x + a.width + e.value.style.chart.bars.dataLabels.name.offsetX + 12,
542
- y: a.cy - c.value.names / 2 + e.value.style.chart.bars.dataLabels.name.offsetY,
548
+ y: a.cy - v.value.names / 2 + e.value.style.chart.bars.dataLabels.name.offsetY,
543
549
  "text-anchor": "start",
544
- "font-size": c.value.names,
550
+ "font-size": v.value.names,
545
551
  fill: e.value.style.chart.bars.dataLabels.name.color,
546
552
  "font-weight": e.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
547
553
  class: N({
548
554
  animated: e.value.useCssAnimation && !L.value
549
555
  }),
550
- style: A({
556
+ style: T({
551
557
  animationDelay: `${150 * o}ms`
552
558
  })
553
- }, U(a.name), 15, _t),
559
+ }, U(a.name), 15, At),
554
560
  C("text", {
555
561
  x: a.x + a.width + e.value.style.chart.bars.dataLabels.value.offsetX + 12,
556
- y: a.cy + c.value.values + e.value.style.chart.bars.dataLabels.value.offsetY,
562
+ y: a.cy + v.value.values + e.value.style.chart.bars.dataLabels.value.offsetY,
557
563
  "text-anchor": "start",
558
- "font-size": c.value.values,
564
+ "font-size": v.value.values,
559
565
  fill: e.value.style.chart.bars.dataLabels.value.color,
560
566
  "font-weight": e.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
561
567
  class: N({
562
568
  animated: e.value.useCssAnimation && !L.value
563
569
  }),
564
- style: A({
570
+ style: T({
565
571
  animationDelay: `${150 * o}ms`
566
572
  })
567
573
  }, U(s(Y)(
@@ -574,14 +580,14 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
574
580
  r: e.value.style.chart.bars.dataLabels.value.rounding
575
581
  }),
576
582
  { datapoint: a }
577
- )), 15, Tt)
583
+ )), 15, Ot)
578
584
  ]))), 256)),
579
- g(t.$slots, "svg", { svg: v.value }, void 0, !0)
580
- ], 14, bt)) : b("", !0),
581
- t.$slots.watermark ? (n(), i("div", At, [
582
- g(t.$slots, "watermark", G(j({ isPrinting: s(de) || s(he) })), void 0, !0)
585
+ g(t.$slots, "svg", { svg: d.value }, void 0, !0)
586
+ ], 14, gt)) : b("", !0),
587
+ t.$slots.watermark ? (n(), i("div", St, [
588
+ g(t.$slots, "watermark", G(j({ isPrinting: s(he) || s(fe) })), void 0, !0)
583
589
  ])) : b("", !0),
584
- S.value ? b("", !0) : (n(), P(s(Se), {
590
+ O.value ? b("", !0) : (n(), I(s(ze), {
585
591
  key: 6,
586
592
  config: {
587
593
  type: "verticalBar",
@@ -599,35 +605,35 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
599
605
  t.$slots.source ? (n(), i("div", {
600
606
  key: 7,
601
607
  ref_key: "source",
602
- ref: oe,
608
+ ref: ne,
603
609
  dir: "auto"
604
610
  }, [
605
611
  g(t.$slots, "source", {}, void 0, !0)
606
612
  ], 512)) : b("", !0),
607
- S.value ? (n(), P(We(R.value.component), H({ key: 8 }, R.value.props, {
613
+ O.value ? (n(), I(qe(B.value.component), H({ key: 8 }, B.value.props, {
608
614
  ref_key: "tableUnit",
609
615
  ref: F,
610
- onClose: l[2] || (l[2] = (a) => _.value.showTable = !1)
611
- }), we({
616
+ onClose: Ce
617
+ }), xe({
612
618
  content: m(() => [
613
- (n(), P(s(De), {
614
- key: `table_${le.value}`,
619
+ (n(), I(s(Ie), {
620
+ key: `table_${se.value}`,
615
621
  colNames: V.value.colNames,
616
622
  head: V.value.head,
617
623
  body: V.value.body,
618
624
  config: V.value.config,
619
- title: e.value.table.useDialog ? "" : R.value.title,
625
+ title: e.value.table.useDialog ? "" : B.value.title,
620
626
  withCloseButton: !e.value.table.useDialog,
621
- onClose: l[1] || (l[1] = (a) => _.value.showTable = !1)
627
+ onClose: Ce
622
628
  }, {
623
629
  th: m(({ th: a }) => [
624
630
  C("div", {
625
631
  innerHTML: a,
626
632
  style: { display: "flex", "align-items": "center" }
627
- }, null, 8, Ot)
633
+ }, null, 8, Dt)
628
634
  ]),
629
635
  td: m(({ td: a }) => [
630
- xe(U(a.name ? a.name : a), 1)
636
+ _e(U(a.name ? a.name : a), 1)
631
637
  ]),
632
638
  _: 1
633
639
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -637,7 +643,7 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
637
643
  e.value.table.useDialog ? {
638
644
  name: "title",
639
645
  fn: m(() => [
640
- xe(U(R.value.title), 1)
646
+ _e(U(B.value.title), 1)
641
647
  ]),
642
648
  key: "0"
643
649
  } : void 0,
@@ -647,20 +653,20 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
647
653
  C("button", {
648
654
  tabindex: "0",
649
655
  class: "vue-ui-user-options-button",
650
- onClick: l[0] || (l[0] = (a) => Q(e.value.userOptions.callbacks.csv))
656
+ onClick: l[0] || (l[0] = (a) => Z(e.value.userOptions.callbacks.csv))
651
657
  }, [
652
- $e(s(Oe), {
658
+ Le(s(De), {
653
659
  name: "excel",
654
- stroke: R.value.props.color
660
+ stroke: B.value.props.color
655
661
  }, null, 8, ["stroke"])
656
662
  ])
657
663
  ]),
658
664
  key: "1"
659
665
  } : void 0
660
666
  ]), 1040)) : b("", !0)
661
- ], 46, ft));
667
+ ], 46, mt));
662
668
  }
663
- }, Et = /* @__PURE__ */ ht(St, [["__scopeId", "data-v-9bbf1be0"]]);
669
+ }, Gt = /* @__PURE__ */ bt(zt, [["__scopeId", "data-v-2f7f46c4"]]);
664
670
  export {
665
- Et as default
671
+ Gt as default
666
672
  };