vue-data-ui 3.0.0-next.0 → 3.0.0-next.2

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 (102) hide show
  1. package/README.md +108 -67
  2. package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
  3. package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
  4. package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
  5. package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
  6. package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
  7. package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
  8. package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
  9. package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
  10. package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
  11. package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
  12. package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
  13. package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
  14. package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
  15. package/dist/Tooltip-NwATo4ZJ.js +157 -0
  16. package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
  17. package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
  18. package/dist/img-ku4zevVD.js +33 -0
  19. package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
  20. package/dist/pdf-CguiIsUc.js +58 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1051 -217
  23. package/dist/types/vue-data-ui.d.ts +1051 -217
  24. package/dist/useLoading-Bt5Doa8m.js +28 -0
  25. package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
  26. package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
  27. package/dist/vue-data-ui-DQef_oFO.js +314 -0
  28. package/dist/vue-data-ui.js +13 -13
  29. package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
  30. package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
  32. package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
  33. package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
  34. package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
  35. package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
  36. package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
  37. package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
  38. package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
  39. package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
  40. package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
  41. package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
  42. package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
  43. package/dist/vue-ui-donut-tECBFvud.js +1532 -0
  44. package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
  45. package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
  46. package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
  47. package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
  48. package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
  49. package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
  50. package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
  51. package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
  52. package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
  54. package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
  55. package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
  56. package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
  57. package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
  58. package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
  59. package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
  60. package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
  61. package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
  62. package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
  64. package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
  65. package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
  66. package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
  67. package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
  68. package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
  70. package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
  71. package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
  72. package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
  73. package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
  74. package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
  75. package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
  76. package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
  77. package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
  78. package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
  79. package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
  80. package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
  81. package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
  82. package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
  83. package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
  84. package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
  85. package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
  86. package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
  87. package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
  88. package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
  89. package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
  90. package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
  91. package/package.json +2 -2
  92. package/dist/Tooltip-hVZUY_s5.js +0 -149
  93. package/dist/img-BeMVTwmF.js +0 -20
  94. package/dist/pdf-DPxOdzfi.js +0 -51
  95. package/dist/useMouse-AicQS8Vf.js +0 -13
  96. package/dist/vue-data-ui-nceqWRts.js +0 -301
  97. package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
  98. package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
  99. package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
  100. package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
  101. package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
  102. package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
@@ -1,16 +1,17 @@
1
- import { useCssVars as Ie, computed as d, defineAsyncComponent as z, ref as h, shallowRef as ye, onMounted as De, onBeforeUnmount as Re, watch as Me, createElementBlock as u, openBlock as o, unref as s, normalizeStyle as L, normalizeClass as O, createBlock as S, createCommentVNode as f, createSlots as Ve, withCtx as g, renderSlot as b, normalizeProps as B, guardReactiveProps as E, createVNode as Be, createElementVNode as w, mergeProps as J, Fragment as U, renderList as G, toDisplayString as j, createTextVNode as Ee, nextTick as Ue } from "vue";
2
- import { u as Ge, c as je, o as He, e as ge, g as Xe, d as qe, l as Ye, i as H, f as X, X as We, F as Je, E as K, a as Ke, q as Qe, r as Ze } from "./index-DMqAxz7R.js";
3
- import { u as pe } from "./useNestedProp-YgN3FV_8.js";
4
- import { u as et } from "./usePrinter-COkTjv6C.js";
5
- import { t as tt, u as at } from "./useResponsive-DfdjqQps.js";
6
- import { u as lt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as st } from "./useChartAccessibility-9icAAmYg.js";
8
- import ot from "./Title-D29apS4l.js";
9
- import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["id"], vt = ["stop-color"], dt = ["stop-color"], ht = ["stop-color"], ft = ["stroke", "stroke-width"], bt = ["stroke", "stroke-width"], mt = ["x", "y", "font-size", "fill", "font-weight"], yt = ["points", "fill"], gt = ["stroke", "stroke-width", "rx"], pt = ["x", "y", "font-size", "fill", "font-weight"], kt = ["x", "y", "font-size", "fill", "font-weight"], Ct = {
1
+ import { useCssVars as De, computed as d, defineAsyncComponent as O, ref as h, shallowRef as ge, onMounted as Re, onBeforeUnmount as Me, watch as Be, createElementBlock as i, openBlock as n, unref as s, normalizeStyle as _, normalizeClass as z, createBlock as N, createCommentVNode as b, createSlots as Ee, withCtx as g, renderSlot as m, normalizeProps as E, guardReactiveProps as V, createVNode as Ve, createElementVNode as w, mergeProps as J, Fragment as U, renderList as G, toDisplayString as j, createTextVNode as Ue, nextTick as Ge } from "vue";
2
+ import { u as je, c as He, o as Xe, e as pe, g as qe, d as Ye, l as We, i as H, f as X, X as Je, F as Ke, E as K, a as Qe, q as Ze, r as et } from "./index-BzfnuLnw.js";
3
+ import { u as ke } from "./useNestedProp-DorElw91.js";
4
+ import { u as tt } from "./usePrinter-C9qkgv0r.js";
5
+ import { t as at, u as lt } from "./useResponsive-DfdjqQps.js";
6
+ import { u as st } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as ot } from "./useChartAccessibility-9icAAmYg.js";
8
+ import nt from "./Title-pVYRzQXY.js";
9
+ import rt from "./img-ku4zevVD.js";
10
+ import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const it = ["id"], ct = ["xmlns", "viewBox"], vt = ["width", "height"], dt = ["id"], ht = ["stop-color"], ft = ["stop-color"], bt = ["stop-color"], mt = ["stroke", "stroke-width"], yt = ["stroke", "stroke-width"], gt = ["x", "y", "font-size", "fill", "font-weight"], pt = ["points", "fill"], kt = ["stroke", "stroke-width", "rx"], Ct = ["x", "y", "font-size", "fill", "font-weight"], wt = ["x", "y", "font-size", "fill", "font-weight"], $t = {
11
12
  key: 5,
12
13
  class: "vue-data-ui-watermark"
13
- }, wt = ["innerHTML"], $t = {
14
+ }, xt = ["innerHTML"], Lt = {
14
15
  __name: "vue-ui-funnel",
15
16
  props: {
16
17
  config: {
@@ -26,22 +27,22 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
26
27
  }
27
28
  }
28
29
  },
29
- setup(ke, { expose: Ce }) {
30
- Ie((t) => ({
31
- "8863048c": Pe.value
30
+ setup(Ce, { expose: we }) {
31
+ De((t) => ({
32
+ 83613044: Pe.value
32
33
  }));
33
- const we = z(() => import("./vue-ui-accordion-P6eFHGQp.js")), $e = z(() => import("./DataTable-BBbOgI-a.js")), xe = z(() => import("./PackageVersion-D0VPY8-5.js")), Le = z(() => import("./PenAndPaper-DhBJsnob.js")), _e = z(() => import("./vue-ui-skeleton-CjN2ZdgT.js")), Ae = z(() => import("./UserOptions-Bdit7AWO.js")), { vue_ui_funnel: Te } = Ge(), m = ke, R = h(null), N = h(je()), Q = h(0), Z = h(0), ee = h(0), te = h(null), ae = h(null), le = h(null), C = ye(null), _ = ye(null), $ = h(!1), A = d(() => !!m.dataset && m.dataset.length);
34
- De(se);
34
+ const $e = O(() => import("./vue-ui-accordion-DgZK-qDz.js")), xe = O(() => import("./DataTable-CgL0Rz0x.js")), Le = O(() => import("./PackageVersion-CAkNkiIG.js")), _e = O(() => import("./PenAndPaper-Cx1-5zdD.js")), Ae = O(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), Te = O(() => import("./UserOptions-DAsRxxrf.js")), { vue_ui_funnel: Se } = je(), y = Ce, $ = h(null), P = h(He()), Q = h(0), Z = h(0), ee = h(0), te = h(null), ae = h(null), le = h(null), C = ge(null), A = ge(null), x = h(!1), T = d(() => !!y.dataset && y.dataset.length);
35
+ Re(se);
35
36
  function se() {
36
- if (He(m.dataset) ? ge({
37
+ if (Xe(y.dataset) ? pe({
37
38
  componentName: "VueUiFunnel",
38
39
  type: "dataset"
39
- }) : m.dataset.forEach((t, l) => {
40
- Xe({
40
+ }) : y.dataset.forEach((t, l) => {
41
+ qe({
41
42
  datasetObject: t,
42
43
  requiredAttributes: ["name", "value"]
43
44
  }).forEach((a) => {
44
- A.value = !1, ge({
45
+ T.value = !1, pe({
45
46
  componentName: "VueUiFunnel",
46
47
  type: "datasetSerieAttribute",
47
48
  property: a,
@@ -49,49 +50,49 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
49
50
  });
50
51
  });
51
52
  }), e.value.responsive) {
52
- const t = tt(() => {
53
- const { width: l, height: a } = at({
54
- chart: R.value,
53
+ const t = at(() => {
54
+ const { width: l, height: a } = lt({
55
+ chart: $.value,
55
56
  title: e.value.style.chart.title.text ? le.value : null,
56
57
  source: ae.value,
57
58
  noTitle: te.value
58
59
  });
59
60
  requestAnimationFrame(() => {
60
- c.value.height = a, c.value.width = l, k.value = he(), e.value.responsiveProportionalSizing ? (i.value.circles = K({
61
+ v.value.height = a, v.value.width = l, k.value = he(), e.value.responsiveProportionalSizing ? (c.value.circles = K({
61
62
  relator: Math.min(l, a),
62
63
  adjuster: 600,
63
64
  source: e.value.style.chart.circles.dataLabels.fontSize,
64
65
  threshold: 10,
65
66
  fallback: 10
66
- }), i.value.names = K({
67
+ }), c.value.names = K({
67
68
  relator: Math.min(l, a),
68
69
  adjuster: 600,
69
70
  source: e.value.style.chart.bars.dataLabels.name.fontSize,
70
71
  threshold: 10,
71
72
  fallback: 10
72
- }), i.value.values = K({
73
+ }), c.value.values = K({
73
74
  relator: Math.min(l, a),
74
75
  adjuster: 600,
75
76
  source: e.value.style.chart.bars.dataLabels.value.fontSize,
76
77
  threshold: 10,
77
78
  fallback: 10
78
- })) : (i.value.circles = e.value.style.chart.circles.dataLabels.fontSize, i.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, i.value.values = e.value.style.chart.bars.dataLabels.value.fontSize);
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
80
  });
80
81
  });
81
- C.value && (_.value && C.value.unobserve(_.value), C.value.disconnect()), C.value = new ResizeObserver(t), _.value = R.value.parentNode, C.value.observe(_.value);
82
+ C.value && (A.value && C.value.unobserve(A.value), C.value.disconnect()), C.value = new ResizeObserver(t), A.value = $.value.parentNode, C.value.observe(A.value);
82
83
  }
83
84
  }
84
- Re(() => {
85
- C.value && (_.value && C.value.unobserve(_.value), C.value.disconnect());
85
+ Me(() => {
86
+ C.value && (A.value && C.value.unobserve(A.value), C.value.disconnect());
86
87
  });
87
88
  function oe() {
88
- const t = pe({
89
- userConfig: m.config,
90
- defaultConfig: Te
89
+ const t = ke({
90
+ userConfig: y.config,
91
+ defaultConfig: Se
91
92
  });
92
93
  return t.theme ? {
93
- ...pe({
94
- userConfig: Ke.vue_ui_funnel[t.theme] || m.config,
94
+ ...ke({
95
+ userConfig: Qe.vue_ui_funnel[t.theme] || y.config,
95
96
  defaultConfig: t
96
97
  })
97
98
  } : t;
@@ -99,113 +100,113 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
99
100
  const e = d({
100
101
  get: () => oe(),
101
102
  set: (t) => t
102
- }), { userOptionsVisible: q, setUserOptionsVisibility: ne, keepUserOptionState: re } = lt({ config: e.value }), { svgRef: ue } = st({ config: e.value.style.chart.title });
103
- Me(() => m.config, (t) => {
104
- e.value = oe(), q.value = !e.value.userOptions.showOnChartHover, se(), Z.value += 1, ee.value += 1, i.value.circles = e.value.style.chart.circles.dataLabels.fontSize, i.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, i.value.values = e.value.style.chart.bars.dataLabels.value.fontSize, P.value.showTable = e.value.table.show;
103
+ }), { userOptionsVisible: q, setUserOptionsVisibility: ne, keepUserOptionState: re } = st({ config: e.value }), { svgRef: ue } = ot({ config: e.value.style.chart.title });
104
+ Be(() => y.config, (t) => {
105
+ e.value = oe(), q.value = !e.value.userOptions.showOnChartHover, se(), Z.value += 1, ee.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, I.value.showTable = e.value.table.show;
105
106
  }, { deep: !0 });
106
- const { isPrinting: ie, isImaging: ce, generatePdf: ve, generateImage: de } = et({
107
- elementId: `funnel_${N.value}`,
107
+ const { isPrinting: ie, isImaging: ce, generatePdf: ve, generateImage: de } = tt({
108
+ elementId: `funnel_${P.value}`,
108
109
  fileName: e.value.style.chart.title.text || "vue-ui-funnel",
109
110
  options: e.value.userOptions.print
110
- }), ze = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), P = h({
111
+ }), Oe = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), I = h({
111
112
  showTable: e.value.table.show
112
- }), i = h({
113
+ }), c = h({
113
114
  circles: e.value.style.chart.circles.dataLabels.fontSize,
114
115
  names: e.value.style.chart.bars.dataLabels.name.fontSize,
115
116
  values: e.value.style.chart.bars.dataLabels.value.fontSize
116
- }), c = d({
117
+ }), v = d({
117
118
  get: () => ({
118
119
  height: e.value.style.chart.height,
119
120
  width: e.value.style.chart.width
120
121
  }),
121
122
  set: (t) => t
122
- }), p = d(() => A.value ? m.dataset.map((t, l) => ({
123
+ }), p = d(() => T.value ? y.dataset.map((t, l) => ({
123
124
  ...t,
124
- color: t.color ? qe(t.color) : Ye(e.value.style.chart.bars.defaultColor, l / m.dataset.length)
125
+ color: t.color ? Ye(t.color) : We(e.value.style.chart.bars.defaultColor, l / y.dataset.length)
125
126
  })) : []);
126
127
  setTimeout(() => {
127
- $.value = !0;
128
+ x.value = !0;
128
129
  }, p.value.length * 150);
129
130
  function he() {
130
131
  const t = e.value.style.chart.padding.left, l = e.value.style.chart.padding.top;
131
132
  return {
132
133
  left: t,
133
134
  top: l,
134
- right: c.value.width - e.value.style.chart.padding.right,
135
- bottom: c.value.height - e.value.style.chart.padding.bottom,
136
- width: c.value.width - t - e.value.style.chart.padding.right,
137
- height: c.value.height - l - e.value.style.chart.padding.bottom
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
138
139
  };
139
140
  }
140
- const k = h(he()), T = d(() => k.value.height / m.dataset.length), x = d(() => T.value * e.value.style.chart.bars.gapRatio), fe = d(() => k.value.width * e.value.style.chart.barCircleSpacingRatio), r = d(() => p.value.map((t, l) => {
141
- const a = T.value - x.value, n = k.value.top + x.value / 2 * l + (T.value - x.value / 2) * l + x.value / 2, y = t.value / p.value[0].value, v = (k.value.width - a - fe.value) * (t.value / p.value[0].value);
141
+ const k = h(he()), S = d(() => k.value.height / y.dataset.length), L = d(() => S.value * e.value.style.chart.bars.gapRatio), fe = d(() => k.value.width * e.value.style.chart.barCircleSpacingRatio), r = d(() => p.value.map((t, l) => {
142
+ const a = S.value - L.value, o = k.value.top + L.value / 2 * l + (S.value - L.value / 2) * l + L.value / 2, f = t.value / p.value[0].value, u = (k.value.width - a - fe.value) * (t.value / p.value[0].value);
142
143
  return {
143
144
  ...t,
144
145
  cx: k.value.left + a / 2,
145
- cy: n + a / 2,
146
+ cy: o + a / 2,
146
147
  datapointIndex: l,
147
148
  fill: t.color,
148
149
  height: Math.max(a, 0),
149
- proportion: y,
150
+ proportion: f,
150
151
  r: Math.max(a / 2, 0),
151
- width: Math.max(v, 0),
152
+ width: Math.max(u, 0),
152
153
  x: k.value.left + a + fe.value,
153
- y: n
154
+ y: o
154
155
  };
155
- })), Oe = d(() => {
156
- const t = r.value.map((l) => `${l.x + l.width},${l.y + (T.value - x.value) / 2}`);
157
- return `${r.value[0].x},${r.value[0].y + (T.value - x.value) / 2} ${t.toString()} ${r.value.at(-1).x},${r.value.at(-1).y + (T.value - x.value) / 2}`;
158
- }), Se = d(() => ({
156
+ })), ze = d(() => {
157
+ const t = r.value.map((l) => `${l.x + l.width},${l.y + (S.value - L.value) / 2}`);
158
+ return `${r.value[0].x},${r.value[0].y + (S.value - L.value) / 2} ${t.toString()} ${r.value.at(-1).x},${r.value.at(-1).y + (S.value - L.value) / 2}`;
159
+ }), Ne = d(() => ({
159
160
  x1: r.value[0].cx,
160
161
  y1: r.value[0].cy,
161
162
  x2: r.value.at(-1).cx,
162
163
  y2: r.value.at(-1).cy
163
164
  })), F = h(!1);
164
- function Ne(t) {
165
+ function be(t) {
165
166
  F.value = t, Q.value += 1;
166
167
  }
167
168
  const Pe = d(() => `${p.value.length * 150}ms`), M = h(!1);
168
169
  function Y() {
169
170
  M.value = !M.value;
170
171
  }
171
- function be() {
172
- P.value.showTable = !P.value.showTable;
172
+ function me() {
173
+ I.value.showTable = !I.value.showTable;
173
174
  }
174
- const I = d(() => {
175
+ const D = d(() => {
175
176
  const t = p.value.map((a) => ({
176
177
  name: a.name,
177
178
  color: a.color
178
179
  })), l = p.value.map((a) => a.value);
179
180
  return { head: t, body: l };
180
- }), V = d(() => {
181
+ }), B = d(() => {
181
182
  const t = [
182
183
  e.value.table.columnNames.series,
183
184
  e.value.table.columnNames.value,
184
185
  e.value.table.columnNames.percentage
185
- ], l = I.value.head.map((y, v) => {
186
- const D = H(
186
+ ], l = D.value.head.map((f, u) => {
187
+ const R = H(
187
188
  e.value.style.chart.bars.dataLabels.value.formatter,
188
- I.value.body[v],
189
+ D.value.body[u],
189
190
  X({
190
191
  p: e.value.style.chart.bars.dataLabels.value.prefix,
191
- v: I.value.body[v],
192
+ v: D.value.body[u],
192
193
  s: e.value.style.chart.bars.dataLabels.value.suffix,
193
194
  r: e.value.table.td.roundingValue
194
195
  }),
195
- { datapoint: r.value[v] }
196
+ { datapoint: r.value[u] }
196
197
  ), W = H(
197
198
  e.value.style.chart.circles.dataLabels.formatter,
198
- r.value[v].proportion * 100,
199
+ r.value[u].proportion * 100,
199
200
  X({
200
- v: r.value[v].proportion * 100,
201
+ v: r.value[u].proportion * 100,
201
202
  s: "%",
202
203
  r: e.value.table.td.roundingPercentage
203
204
  }),
204
- { datapoint: r.value[v] }
205
+ { datapoint: r.value[u] }
205
206
  );
206
207
  return [
207
- { color: y.color, name: y.name },
208
- D,
208
+ { color: f.color, name: f.name },
209
+ R,
209
210
  W
210
211
  ];
211
212
  }), a = {
@@ -232,55 +233,69 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
232
233
  config: a
233
234
  };
234
235
  });
235
- function me(t = null) {
236
- Ue(() => {
237
- const l = I.value.head.map((y, v) => [[
238
- y.name
239
- ], [I.value.body[v]], [r.value[v].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), n = Qe(a);
240
- t ? t(n) : Ze({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-funnel" });
236
+ function ye(t = null) {
237
+ Ge(() => {
238
+ const l = D.value.head.map((f, u) => [[
239
+ f.name
240
+ ], [D.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 = Ze(a);
241
+ t ? t(o) : et({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-funnel" });
241
242
  });
242
243
  }
243
- function Fe() {
244
+ function Ie() {
244
245
  return p.value;
245
246
  }
246
- return Ce({
247
- getData: Fe,
247
+ async function Fe({ scale: t = 2 } = {}) {
248
+ if (!$.value) return;
249
+ const { width: l, height: a } = $.value.getBoundingClientRect(), o = l / a, { imageUri: f, base64: u } = await rt({ domElement: $.value, base64: !0, img: !0, scale: t });
250
+ return {
251
+ imageUri: f,
252
+ base64: u,
253
+ title: e.value.style.chart.title.text,
254
+ width: l,
255
+ height: a,
256
+ aspectRatio: o
257
+ };
258
+ }
259
+ return we({
260
+ getData: Ie,
261
+ getImage: Fe,
248
262
  generatePdf: ve,
249
- generateCsv: me,
263
+ generateCsv: ye,
250
264
  generateImage: de,
251
- toggleTable: be,
252
- toggleAnnotator: Y
253
- }), (t, l) => (o(), u("div", {
265
+ toggleTable: me,
266
+ toggleAnnotator: Y,
267
+ toggleFullscreen: be
268
+ }), (t, l) => (n(), i("div", {
254
269
  ref_key: "funnelChart",
255
- ref: R,
256
- class: O(`vue-ui-funnel ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
257
- style: L(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
258
- id: `funnel_${N.value}`,
270
+ ref: $,
271
+ class: z(`vue-ui-funnel ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
272
+ style: _(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
273
+ id: `funnel_${P.value}`,
259
274
  onMouseenter: l[1] || (l[1] = () => s(ne)(!0)),
260
275
  onMouseleave: l[2] || (l[2] = () => s(ne)(!1))
261
276
  }, [
262
- e.value.userOptions.buttons.annotator ? (o(), S(s(Le), {
277
+ e.value.userOptions.buttons.annotator ? (n(), N(s(_e), {
263
278
  key: 0,
264
279
  svgRef: s(ue),
265
280
  backgroundColor: e.value.style.chart.backgroundColor,
266
281
  color: e.value.style.chart.color,
267
282
  active: M.value,
268
283
  onClose: Y
269
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
270
- ze.value ? (o(), u("div", {
284
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
285
+ Oe.value ? (n(), i("div", {
271
286
  key: 1,
272
287
  ref_key: "noTitle",
273
288
  ref: te,
274
289
  class: "vue-data-ui-no-title-space",
275
290
  style: "height:36px; width: 100%;background:transparent"
276
- }, null, 512)) : f("", !0),
277
- e.value.style.chart.title.text ? (o(), u("div", {
291
+ }, null, 512)) : b("", !0),
292
+ e.value.style.chart.title.text ? (n(), i("div", {
278
293
  key: 2,
279
294
  ref_key: "chartTitle",
280
295
  ref: le,
281
296
  style: "width:100%;background:transparent;padding-bottom:24px"
282
297
  }, [
283
- (o(), S(ot, {
298
+ (n(), N(nt, {
284
299
  key: `title_${Z.value}`,
285
300
  config: {
286
301
  title: {
@@ -293,15 +308,15 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
293
308
  }
294
309
  }
295
310
  }, null, 8, ["config"]))
296
- ], 512)) : f("", !0),
297
- e.value.userOptions.show && A.value && (s(re) || s(q)) ? (o(), S(s(Ae), {
311
+ ], 512)) : b("", !0),
312
+ e.value.userOptions.show && T.value && (s(re) || s(q)) ? (n(), N(s(Te), {
298
313
  ref: "details",
299
314
  key: `user_option_${Q.value}`,
300
315
  backgroundColor: e.value.style.chart.backgroundColor,
301
316
  color: e.value.style.chart.color,
302
317
  isPrinting: s(ie),
303
318
  isImaging: s(ce),
304
- uid: N.value,
319
+ uid: P.value,
305
320
  hasTooltip: !1,
306
321
  hasPdf: e.value.userOptions.buttons.pdf,
307
322
  hasImg: e.value.userOptions.buttons.img,
@@ -310,97 +325,98 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
310
325
  hasLabel: !1,
311
326
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
312
327
  isFullscreen: F.value,
313
- chartElement: R.value,
328
+ chartElement: $.value,
314
329
  position: e.value.userOptions.position,
315
330
  titles: { ...e.value.userOptions.buttonTitles },
316
331
  hasAnnotator: e.value.userOptions.buttons.annotator,
317
332
  isAnnotation: M.value,
318
333
  callbacks: e.value.userOptions.callbacks,
334
+ printScale: e.value.userOptions.print.scale,
319
335
  onToggleAnnotator: Y,
320
- onToggleFullscreen: Ne,
336
+ onToggleFullscreen: be,
321
337
  onGeneratePdf: s(ve),
322
338
  onGenerateImage: s(de),
323
- onToggleTable: be,
324
- onGenerateCsv: me,
325
- style: L({
339
+ onToggleTable: me,
340
+ onGenerateCsv: ye,
341
+ style: _({
326
342
  visibility: s(re) ? s(q) ? "visible" : "hidden" : "visible"
327
343
  })
328
- }, Ve({ _: 2 }, [
344
+ }, Ee({ _: 2 }, [
329
345
  t.$slots.menuIcon ? {
330
346
  name: "menuIcon",
331
- fn: g(({ isOpen: a, color: n }) => [
332
- b(t.$slots, "menuIcon", B(E({ isOpen: a, color: n })), void 0, !0)
347
+ fn: g(({ isOpen: a, color: o }) => [
348
+ m(t.$slots, "menuIcon", E(V({ isOpen: a, color: o })), void 0, !0)
333
349
  ]),
334
350
  key: "0"
335
351
  } : void 0,
336
352
  t.$slots.optionPdf ? {
337
353
  name: "optionPdf",
338
354
  fn: g(() => [
339
- b(t.$slots, "optionPdf", {}, void 0, !0)
355
+ m(t.$slots, "optionPdf", {}, void 0, !0)
340
356
  ]),
341
357
  key: "1"
342
358
  } : void 0,
343
359
  t.$slots.optionCsv ? {
344
360
  name: "optionCsv",
345
361
  fn: g(() => [
346
- b(t.$slots, "optionCsv", {}, void 0, !0)
362
+ m(t.$slots, "optionCsv", {}, void 0, !0)
347
363
  ]),
348
364
  key: "2"
349
365
  } : void 0,
350
366
  t.$slots.optionImg ? {
351
367
  name: "optionImg",
352
368
  fn: g(() => [
353
- b(t.$slots, "optionImg", {}, void 0, !0)
369
+ m(t.$slots, "optionImg", {}, void 0, !0)
354
370
  ]),
355
371
  key: "3"
356
372
  } : void 0,
357
373
  t.$slots.optionTable ? {
358
374
  name: "optionTable",
359
375
  fn: g(() => [
360
- b(t.$slots, "optionTable", {}, void 0, !0)
376
+ m(t.$slots, "optionTable", {}, void 0, !0)
361
377
  ]),
362
378
  key: "4"
363
379
  } : void 0,
364
380
  t.$slots.optionFullscreen ? {
365
381
  name: "optionFullscreen",
366
- fn: g(({ toggleFullscreen: a, isFullscreen: n }) => [
367
- b(t.$slots, "optionFullscreen", B(E({ toggleFullscreen: a, isFullscreen: n })), void 0, !0)
382
+ fn: g(({ toggleFullscreen: a, isFullscreen: o }) => [
383
+ m(t.$slots, "optionFullscreen", E(V({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
368
384
  ]),
369
385
  key: "5"
370
386
  } : void 0,
371
387
  t.$slots.optionAnnotator ? {
372
388
  name: "optionAnnotator",
373
- fn: g(({ toggleAnnotator: a, isAnnotator: n }) => [
374
- b(t.$slots, "optionAnnotator", B(E({ toggleAnnotator: a, isAnnotator: n })), void 0, !0)
389
+ fn: g(({ toggleAnnotator: a, isAnnotator: o }) => [
390
+ m(t.$slots, "optionAnnotator", E(V({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
375
391
  ]),
376
392
  key: "6"
377
393
  } : void 0
378
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
379
- A.value ? (o(), u("svg", {
394
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
395
+ T.value ? (n(), i("svg", {
380
396
  key: 4,
381
397
  ref_key: "svgRef",
382
398
  ref: ue,
383
- xmlns: s(We),
384
- class: O({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
385
- viewBox: `0 0 ${c.value.width <= 0 ? 10 : c.value.width} ${c.value.height <= 0 ? 10 : c.value.height}`,
386
- style: L(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
399
+ xmlns: s(Je),
400
+ class: z({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
401
+ viewBox: `0 0 ${v.value.width <= 0 ? 10 : v.value.width} ${v.value.height <= 0 ? 10 : v.value.height}`,
402
+ style: _(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
387
403
  }, [
388
- Be(s(xe)),
389
- t.$slots["chart-background"] ? (o(), u("foreignObject", {
404
+ Ve(s(Le)),
405
+ t.$slots["chart-background"] ? (n(), i("foreignObject", {
390
406
  key: 0,
391
407
  x: 0,
392
408
  y: 0,
393
- width: c.value.width <= 0 ? 10 : c.value.width,
394
- height: c.value.height <= 0 ? 10 : c.value.height,
409
+ width: v.value.width <= 0 ? 10 : v.value.width,
410
+ height: v.value.height <= 0 ? 10 : v.value.height,
395
411
  style: {
396
412
  pointerEvents: "none"
397
413
  }
398
414
  }, [
399
- b(t.$slots, "chart-background", {}, void 0, !0)
400
- ], 8, it)) : f("", !0),
415
+ m(t.$slots, "chart-background", {}, void 0, !0)
416
+ ], 8, vt)) : b("", !0),
401
417
  w("defs", null, [
402
418
  w("linearGradient", {
403
- id: `funnel_area_${N.value}`,
419
+ id: `funnel_area_${P.value}`,
404
420
  x1: "0%",
405
421
  x2: "100%",
406
422
  y1: "0%",
@@ -410,18 +426,18 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
410
426
  offset: "0%",
411
427
  "stop-color": e.value.style.chart.backgroundColor,
412
428
  "stop-opacity": 0
413
- }, null, 8, vt),
429
+ }, null, 8, ht),
414
430
  w("stop", {
415
431
  offset: "20%",
416
432
  "stop-color": e.value.style.chart.area.color
417
- }, null, 8, dt),
433
+ }, null, 8, ft),
418
434
  w("stop", {
419
435
  offset: "100%",
420
436
  "stop-color": e.value.style.chart.area.color
421
- }, null, 8, ht)
422
- ], 8, ct)
437
+ }, null, 8, bt)
438
+ ], 8, dt)
423
439
  ]),
424
- e.value.style.chart.circleLinks.show ? (o(), u("line", J({ key: 1 }, Se.value, {
440
+ e.value.style.chart.circleLinks.show ? (n(), i("line", J({ key: 1 }, Ne.value, {
425
441
  stroke: e.value.style.chart.circleLinks.color,
426
442
  "stroke-width": 12 * e.value.style.chart.circleLinks.widthRatio,
427
443
  "stroke-linecap": "round",
@@ -432,29 +448,29 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
432
448
  strokeDasharray: e.value.useCssAnimation ? k.value.height : 0,
433
449
  strokeDashoffset: e.value.useCssAnimation ? k.value.height : 0
434
450
  }
435
- }), null, 16, ft)) : f("", !0),
436
- (o(!0), u(U, null, G(r.value, ({ cx: a, cy: n, r: y, fill: v }, D) => (o(), u("circle", J({ ref_for: !0 }, { cx: a, cy: n, r: y, fill: v }, {
451
+ }), null, 16, mt)) : b("", !0),
452
+ (n(!0), i(U, null, G(r.value, ({ cx: a, cy: o, r: f, fill: u }, R) => (n(), i("circle", J({ ref_for: !0 }, { cx: a, cy: o, r: f, fill: u }, {
437
453
  stroke: e.value.style.chart.circles.stroke,
438
454
  "stroke-width": e.value.style.chart.circles.strokeWidth,
439
455
  class: {
440
- animated: e.value.useCssAnimation && !$.value
456
+ animated: e.value.useCssAnimation && !x.value
441
457
  },
442
458
  style: {
443
- animationDelay: `${150 * D}ms`
459
+ animationDelay: `${150 * R}ms`
444
460
  }
445
- }), null, 16, bt))), 256)),
446
- (o(!0), u(U, null, G(r.value, (a, n) => (o(), u("text", {
461
+ }), null, 16, yt))), 256)),
462
+ (n(!0), i(U, null, G(r.value, (a, o) => (n(), i("text", {
447
463
  x: a.cx,
448
- y: a.cy + i.value.circles / 3 + e.value.style.chart.circles.dataLabels.offsetY,
464
+ y: a.cy + c.value.circles / 3 + e.value.style.chart.circles.dataLabels.offsetY,
449
465
  "text-anchor": "middle",
450
- "font-size": i.value.circles,
451
- fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? s(Je)(a.color) : e.value.style.chart.circles.dataLabels.color,
466
+ "font-size": c.value.circles,
467
+ fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? s(Ke)(a.color) : e.value.style.chart.circles.dataLabels.color,
452
468
  "font-weight": e.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
453
- class: O({
454
- animated: e.value.useCssAnimation && !$.value
469
+ class: z({
470
+ animated: e.value.useCssAnimation && !x.value
455
471
  }),
456
- style: L({
457
- animationDelay: `${150 * n}ms`
472
+ style: _({
473
+ animationDelay: `${150 * o}ms`
458
474
  })
459
475
  }, j(s(H)(
460
476
  e.value.style.chart.circles.dataLabels.formatter,
@@ -465,56 +481,56 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
465
481
  r: e.value.style.chart.circles.dataLabels.rounding
466
482
  }),
467
483
  { datapoint: a }
468
- )), 15, mt))), 256)),
469
- e.value.style.chart.area.show ? (o(), u("polygon", {
484
+ )), 15, gt))), 256)),
485
+ e.value.style.chart.area.show ? (n(), i("polygon", {
470
486
  key: 2,
471
- points: Oe.value,
472
- fill: `url(#funnel_area_${N.value})`,
473
- class: O({
474
- animated: e.value.useCssAnimation && !$.value
487
+ points: ze.value,
488
+ fill: `url(#funnel_area_${P.value})`,
489
+ class: z({
490
+ animated: e.value.useCssAnimation && !x.value
475
491
  }),
476
- style: L({
492
+ style: _({
477
493
  transition: e.value.useCssAnimation ? `all ${150 * p.value.length}ms ease-in` : "none"
478
494
  })
479
- }, null, 14, yt)) : f("", !0),
480
- (o(!0), u(U, null, G(r.value, ({ x: a, y: n, height: y, width: v, fill: D }, W) => (o(), u("rect", J({ ref_for: !0 }, { x: a, y: n, height: y, width: v, fill: D }, {
495
+ }, null, 14, pt)) : b("", !0),
496
+ (n(!0), i(U, null, G(r.value, ({ x: a, y: o, height: f, width: u, fill: R }, W) => (n(), i("rect", J({ ref_for: !0 }, { x: a, y: o, height: f, width: u, fill: R }, {
481
497
  stroke: e.value.style.chart.bars.stroke,
482
498
  "stroke-width": e.value.style.chart.bars.strokeWidth,
483
499
  rx: e.value.style.chart.bars.borderRadius,
484
500
  class: {
485
- animated: e.value.useCssAnimation && !$.value
501
+ animated: e.value.useCssAnimation && !x.value
486
502
  },
487
503
  style: {
488
504
  animationDelay: `${150 * W}ms`
489
505
  }
490
- }), null, 16, gt))), 256)),
491
- (o(!0), u(U, null, G(r.value, (a, n) => (o(), u("g", null, [
506
+ }), null, 16, kt))), 256)),
507
+ (n(!0), i(U, null, G(r.value, (a, o) => (n(), i("g", null, [
492
508
  w("text", {
493
509
  x: a.x + a.width + e.value.style.chart.bars.dataLabels.name.offsetX + 12,
494
- y: a.cy - i.value.names / 2 + e.value.style.chart.bars.dataLabels.name.offsetY,
510
+ y: a.cy - c.value.names / 2 + e.value.style.chart.bars.dataLabels.name.offsetY,
495
511
  "text-anchor": "start",
496
- "font-size": i.value.names,
512
+ "font-size": c.value.names,
497
513
  fill: e.value.style.chart.bars.dataLabels.name.color,
498
514
  "font-weight": e.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
499
- class: O({
500
- animated: e.value.useCssAnimation && !$.value
515
+ class: z({
516
+ animated: e.value.useCssAnimation && !x.value
501
517
  }),
502
- style: L({
503
- animationDelay: `${150 * n}ms`
518
+ style: _({
519
+ animationDelay: `${150 * o}ms`
504
520
  })
505
- }, j(a.name), 15, pt),
521
+ }, j(a.name), 15, Ct),
506
522
  w("text", {
507
523
  x: a.x + a.width + e.value.style.chart.bars.dataLabels.value.offsetX + 12,
508
- y: a.cy + i.value.values + e.value.style.chart.bars.dataLabels.value.offsetY,
524
+ y: a.cy + c.value.values + e.value.style.chart.bars.dataLabels.value.offsetY,
509
525
  "text-anchor": "start",
510
- "font-size": i.value.values,
526
+ "font-size": c.value.values,
511
527
  fill: e.value.style.chart.bars.dataLabels.value.color,
512
528
  "font-weight": e.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
513
- class: O({
514
- animated: e.value.useCssAnimation && !$.value
529
+ class: z({
530
+ animated: e.value.useCssAnimation && !x.value
515
531
  }),
516
- style: L({
517
- animationDelay: `${150 * n}ms`
532
+ style: _({
533
+ animationDelay: `${150 * o}ms`
518
534
  })
519
535
  }, j(s(H)(
520
536
  e.value.style.chart.bars.dataLabels.value.formatter,
@@ -526,14 +542,14 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
526
542
  r: e.value.style.chart.bars.dataLabels.value.rounding
527
543
  }),
528
544
  { datapoint: a }
529
- )), 15, kt)
545
+ )), 15, wt)
530
546
  ]))), 256)),
531
- b(t.$slots, "svg", { svg: c.value }, void 0, !0)
532
- ], 14, ut)) : f("", !0),
533
- t.$slots.watermark ? (o(), u("div", Ct, [
534
- b(t.$slots, "watermark", B(E({ isPrinting: s(ie) || s(ce) })), void 0, !0)
535
- ])) : f("", !0),
536
- A.value ? f("", !0) : (o(), S(s(_e), {
547
+ m(t.$slots, "svg", { svg: v.value }, void 0, !0)
548
+ ], 14, ct)) : b("", !0),
549
+ t.$slots.watermark ? (n(), i("div", $t, [
550
+ m(t.$slots, "watermark", E(V({ isPrinting: s(ie) || s(ce) })), void 0, !0)
551
+ ])) : b("", !0),
552
+ T.value ? b("", !0) : (n(), N(s(Ae), {
537
553
  key: 6,
538
554
  config: {
539
555
  type: "verticalBar",
@@ -548,19 +564,19 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
548
564
  }
549
565
  }
550
566
  }, null, 8, ["config"])),
551
- t.$slots.source ? (o(), u("div", {
567
+ t.$slots.source ? (n(), i("div", {
552
568
  key: 7,
553
569
  ref_key: "source",
554
570
  ref: ae,
555
571
  dir: "auto"
556
572
  }, [
557
- b(t.$slots, "source", {}, void 0, !0)
558
- ], 512)) : f("", !0),
559
- A.value ? (o(), S(s(we), {
573
+ m(t.$slots, "source", {}, void 0, !0)
574
+ ], 512)) : b("", !0),
575
+ T.value ? (n(), N(s($e), {
560
576
  key: 8,
561
577
  hideDetails: "",
562
578
  config: {
563
- open: P.value.showTable,
579
+ open: I.value.showTable,
564
580
  maxHeight: 1e4,
565
581
  body: {
566
582
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -573,32 +589,32 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
573
589
  }
574
590
  }, {
575
591
  content: g(() => [
576
- (o(), S(s($e), {
592
+ (n(), N(s(xe), {
577
593
  key: `table_${ee.value}`,
578
- colNames: V.value.colNames,
579
- head: V.value.head,
580
- body: V.value.body,
581
- config: V.value.config,
594
+ colNames: B.value.colNames,
595
+ head: B.value.head,
596
+ body: B.value.body,
597
+ config: B.value.config,
582
598
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
583
- onClose: l[0] || (l[0] = (a) => P.value.showTable = !1)
599
+ onClose: l[0] || (l[0] = (a) => I.value.showTable = !1)
584
600
  }, {
585
601
  th: g(({ th: a }) => [
586
602
  w("div", {
587
603
  innerHTML: a,
588
604
  style: { display: "flex", "align-items": "center" }
589
- }, null, 8, wt)
605
+ }, null, 8, xt)
590
606
  ]),
591
607
  td: g(({ td: a }) => [
592
- Ee(j(a.name ? a.name : a), 1)
608
+ Ue(j(a.name ? a.name : a), 1)
593
609
  ]),
594
610
  _: 1
595
611
  }, 8, ["colNames", "head", "body", "config", "title"]))
596
612
  ]),
597
613
  _: 1
598
- }, 8, ["config"])) : f("", !0)
599
- ], 46, rt));
614
+ }, 8, ["config"])) : b("", !0)
615
+ ], 46, it));
600
616
  }
601
- }, Pt = /* @__PURE__ */ nt($t, [["__scopeId", "data-v-05387b75"]]);
617
+ }, Dt = /* @__PURE__ */ ut(Lt, [["__scopeId", "data-v-08e58142"]]);
602
618
  export {
603
- Pt as default
619
+ Dt as default
604
620
  };