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

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 (98) hide show
  1. package/README.md +92 -66
  2. package/dist/{Arrow-CzFtSJ1v.js → Arrow-BKKETqRi.js} +1 -1
  3. package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-Duz4Bd3A.js} +2 -2
  4. package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BAHAKjob.js} +1 -1
  5. package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-oPTO1J9Q.js} +2 -2
  6. package/dist/{DataTable-BBbOgI-a.js → DataTable-vByThHdN.js} +2 -2
  7. package/dist/{Legend-Q4bOb-Nf.js → Legend-CIElSUHU.js} +11 -11
  8. package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CsY6Bf4e.js} +3 -3
  9. package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-B0wGS6pw.js} +1 -1
  10. package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-7o0xS-d4.js} +32 -32
  11. package/dist/{Shape-DbsLJ-SE.js → Shape-Blrp5ZfP.js} +1 -1
  12. package/dist/{Slicer-DZEFp2GU.js → Slicer-CcM8hzCn.js} +2 -2
  13. package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-iaouYun8.js} +1 -1
  14. package/dist/{Title-D29apS4l.js → Title-CWxjC3bE.js} +1 -1
  15. package/dist/{Tooltip-hVZUY_s5.js → Tooltip-Cq9HywcX.js} +1 -1
  16. package/dist/{UserOptions-Bdit7AWO.js → UserOptions-BEBaPSlU.js} +137 -129
  17. package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-CrAOuxmd.js} +1 -1
  18. package/dist/img-D3JvqNF8.js +33 -0
  19. package/dist/{index-DMqAxz7R.js → index-BSa4GlHG.js} +30 -8
  20. package/dist/pdf-DROWzopj.js +58 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1018 -166
  23. package/dist/types/vue-data-ui.d.ts +1018 -166
  24. package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-uR74_CFG.js} +1 -1
  25. package/dist/{usePrinter-COkTjv6C.js → usePrinter-j3g1L2nh.js} +2 -2
  26. package/dist/vue-data-ui-BzMRz9Un.js +314 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-BAOGEe-m.js} +261 -245
  29. package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DzF-SPaZ.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-BRdQ44O4.js} +233 -217
  31. package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-mjIKrhYa.js} +2 -2
  32. package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-CLYmLvSB.js} +172 -156
  33. package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-BFLmoEEN.js} +271 -254
  34. package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-V89TMa5p.js} +17 -16
  35. package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-C7eNjkFo.js} +418 -402
  36. package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-BuYDLE7K.js} +256 -240
  37. package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CCMbsOpk.js} +234 -218
  38. package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-BrKIImfp.js} +2 -2
  39. package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-WMKjx3iE.js} +62 -62
  40. package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-BoYPIuXn.js} +2 -2
  41. package/dist/vue-ui-donut-DJVqqXEb.js +1338 -0
  42. package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-DSG8NUG0.js} +370 -357
  43. package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-BMveoLd_.js} +216 -200
  44. package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-Dnsik-8f.js} +217 -201
  45. package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-CQ0nHCvy.js} +213 -197
  46. package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-D5L31IXm.js} +215 -202
  47. package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-BnuDe4Wj.js} +220 -204
  48. package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DYYw-JEs.js} +3 -3
  49. package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-9KJYiKzE.js} +244 -224
  50. package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-QOaVWh5L.js} +268 -252
  51. package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-EtTBwHGS.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CRnUCpsm.js} +2 -2
  53. package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-Bfk3Vhbi.js} +204 -188
  54. package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-BfRkWvgp.js} +206 -190
  55. package/dist/vue-ui-nested-donuts-Ck9Zm1UU.js +1177 -0
  56. package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-DF7Z21x-.js} +196 -180
  57. package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-JVogg7k5.js} +194 -178
  58. package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-DpFjMZoK.js} +321 -305
  59. package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-NfXEFkoL.js} +347 -331
  60. package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-Dg8UovnR.js} +193 -177
  61. package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-D3cpdLRt.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-BZTTPLCi.js} +188 -172
  63. package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-CtY_J3hk.js} +212 -196
  64. package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BiA-bRgU.js} +223 -210
  65. package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-C3sCChYD.js} +288 -273
  66. package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-DY48gQ96.js} +3 -3
  67. package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DopwmgcY.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-DO7P-2x8.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-mqLbTvAg.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-CdfZYUAZ.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DAy--kFA.js} +4 -4
  72. package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-KkG0FnmI.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-LDRannBB.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-Bys4yWs_.js} +497 -474
  75. package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-DUBqioS2.js} +241 -225
  76. package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-CPWgP-71.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DfrMVDEE.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-CNC7Lp0t.js} +8 -7
  79. package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-Bby5nWIi.js} +170 -154
  80. package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-ym9etXUy.js} +5 -5
  81. package/dist/vue-ui-tiremarks-C0V_XedF.js +358 -0
  82. package/dist/vue-ui-treemap-B5k0NEO3.js +965 -0
  83. package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DRmHFEMu.js} +335 -319
  84. package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-DrEQsTIO.js} +234 -221
  85. package/dist/vue-ui-wheel-BOTBLBOr.js +352 -0
  86. package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-Btay9XOs.js} +249 -233
  87. package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-zBvIXrWH.js} +239 -223
  88. package/dist/{vue-ui-xy-C_OUyzTC.js → vue-ui-xy-C7uPPKm9.js} +700 -686
  89. package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-CDjYeEkq.js} +447 -431
  90. package/package.json +1 -1
  91. package/dist/img-BeMVTwmF.js +0 -20
  92. package/dist/pdf-DPxOdzfi.js +0 -51
  93. package/dist/vue-data-ui-nceqWRts.js +0 -301
  94. package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
  95. package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
  96. package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
  97. package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
  98. package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
@@ -1,17 +1,18 @@
1
- import { defineAsyncComponent as T, computed as g, ref as d, watch as ge, shallowRef as pe, onMounted as me, onBeforeUnmount as We, createElementBlock as r, openBlock as o, unref as n, normalizeStyle as E, normalizeClass as ke, createBlock as A, createCommentVNode as v, createElementVNode as i, createSlots as Ue, withCtx as k, renderSlot as p, normalizeProps as R, guardReactiveProps as H, createVNode as Be, Fragment as $, renderList as L, toDisplayString as z, createTextVNode as _e, nextTick as je } from "vue";
2
- import { u as qe, c as xe, a as Ye, o as Ze, e as we, g as Je, v as Ce, D as Ke, f as S, X as $e, i as q, l as Le, h as Ae, q as Qe, r as et } from "./index-DMqAxz7R.js";
3
- import { t as tt, u as lt } from "./useResponsive-DfdjqQps.js";
4
- import { u as ze } from "./useNestedProp-YgN3FV_8.js";
5
- import { u as at } from "./usePrinter-COkTjv6C.js";
6
- import { u as st } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as ot } from "./useChartAccessibility-9icAAmYg.js";
8
- import rt from "./Legend-Q4bOb-Nf.js";
9
- import nt from "./Title-D29apS4l.js";
10
- import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"], vt = { key: 1 }, ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], yt = { key: 2 }, ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gt = { key: 3 }, pt = ["x", "y", "font-size", "fill", "font-weight"], mt = ["x", "y", "font-size", "fill"], kt = { key: 4 }, _t = ["x", "y", "font-size", "fill", "font-weight"], xt = ["id"], wt = ["stop-color"], Ct = ["stop-color"], $t = ["stop-color"], Lt = ["id"], At = ["stop-color"], zt = ["stop-color"], St = ["stop-color"], Xt = ["id"], Nt = ["stop-color"], Tt = ["stop-color"], Ot = ["id"], Pt = ["stop-color"], Mt = ["stop-color"], It = { key: 0 }, Gt = ["d", "fill"], Dt = { key: 1 }, Ft = ["x", "y", "height", "width", "fill"], Vt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Et = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Rt = { key: 5 }, Ht = ["x", "y", "fill", "font-size"], Wt = { key: 6 }, Ut = ["x", "y", "fill", "font-size"], Bt = {
1
+ import { defineAsyncComponent as O, computed as m, ref as d, watch as pe, shallowRef as me, onMounted as ke, onBeforeUnmount as Ue, createElementBlock as r, openBlock as o, unref as n, normalizeStyle as V, normalizeClass as _e, createBlock as z, createCommentVNode as v, createElementVNode as i, createSlots as Be, withCtx as _, renderSlot as k, normalizeProps as E, guardReactiveProps as H, createVNode as je, Fragment as $, renderList as L, toDisplayString as S, createTextVNode as xe, nextTick as qe } from "vue";
2
+ import { u as Ye, c as we, a as Ze, o as Je, e as Ce, g as Ke, v as $e, D as Qe, f as X, X as Le, i as q, l as Ae, h as ze, q as et, r as tt } from "./index-BSa4GlHG.js";
3
+ import { t as lt, u as at } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Se } from "./useNestedProp-uR74_CFG.js";
5
+ import { u as st } from "./usePrinter-j3g1L2nh.js";
6
+ import { u as ot } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as rt } from "./useChartAccessibility-9icAAmYg.js";
8
+ import nt from "./Legend-CIElSUHU.js";
9
+ import ut from "./Title-CWxjC3bE.js";
10
+ import it from "./img-D3JvqNF8.js";
11
+ import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
+ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"], yt = { key: 1 }, ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bt = { key: 2 }, gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], mt = { key: 3 }, kt = ["x", "y", "font-size", "fill", "font-weight"], _t = ["x", "y", "font-size", "fill"], xt = { key: 4 }, wt = ["x", "y", "font-size", "fill", "font-weight"], Ct = ["id"], $t = ["stop-color"], Lt = ["stop-color"], At = ["stop-color"], zt = ["id"], St = ["stop-color"], Xt = ["stop-color"], Nt = ["stop-color"], Tt = ["id"], Ot = ["stop-color"], Pt = ["stop-color"], It = ["id"], Mt = ["stop-color"], Gt = ["stop-color"], Dt = { key: 0 }, Ft = ["d", "fill"], Rt = { key: 1 }, Vt = ["x", "y", "height", "width", "fill"], Et = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ht = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Wt = { key: 5 }, Ut = ["x", "y", "fill", "font-size"], Bt = { key: 6 }, jt = ["x", "y", "fill", "font-size"], qt = {
12
13
  key: 5,
13
14
  class: "vue-data-ui-watermark"
14
- }, jt = ["xmlns", "height", "width"], qt = ["fill"], Yt = ["innerHTML"], Zt = {
15
+ }, Yt = ["xmlns", "height", "width"], Zt = ["fill"], Jt = ["innerHTML"], Kt = {
15
16
  __name: "vue-ui-dumbbell",
16
17
  props: {
17
18
  config: {
@@ -28,49 +29,49 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
28
29
  }
29
30
  },
30
31
  emits: ["selectDatapoint"],
31
- setup(Se, { expose: Xe, emit: Jt }) {
32
- const Ne = T(() => import("./vue-ui-accordion-P6eFHGQp.js")), Te = T(() => import("./DataTable-BBbOgI-a.js")), Oe = T(() => import("./PackageVersion-D0VPY8-5.js")), Pe = T(() => import("./PenAndPaper-DhBJsnob.js")), Me = T(() => import("./vue-ui-skeleton-CjN2ZdgT.js")), Ie = T(() => import("./UserOptions-Bdit7AWO.js")), { vue_ui_dumbbell: Ge } = qe(), b = Se, X = g({
32
+ setup(Xe, { expose: Ne, emit: Qt }) {
33
+ const Te = O(() => import("./vue-ui-accordion-DzF-SPaZ.js")), Oe = O(() => import("./DataTable-vByThHdN.js")), Pe = O(() => import("./PackageVersion-B0wGS6pw.js")), Ie = O(() => import("./PenAndPaper-7o0xS-d4.js")), Me = O(() => import("./vue-ui-skeleton-DY48gQ96.js")), Ge = O(() => import("./UserOptions-BEBaPSlU.js")), { vue_ui_dumbbell: De } = Ye(), g = Xe, N = m({
33
34
  get() {
34
- return !!b.dataset && b.dataset.length;
35
+ return !!g.dataset && g.dataset.length;
35
36
  },
36
37
  set(l) {
37
38
  return l;
38
39
  }
39
- }), y = d(xe()), Y = d(0), I = d(null), Z = d(null), J = d(null), K = d(null), Q = d(null), ee = d(0), te = d(0), le = d(0), e = g({
40
+ }), y = d(we()), Y = d(0), A = d(null), Z = d(null), J = d(null), K = d(null), Q = d(null), ee = d(0), te = d(0), le = d(0), e = m({
40
41
  get: () => re(),
41
42
  set: (l) => l
42
- }), { userOptionsVisible: W, setUserOptionsVisibility: ae, keepUserOptionState: se } = st({ config: e.value }), { svgRef: oe } = ot({ config: e.value.style.chart.title });
43
+ }), { userOptionsVisible: W, setUserOptionsVisibility: ae, keepUserOptionState: se } = ot({ config: e.value }), { svgRef: oe } = rt({ config: e.value.style.chart.title });
43
44
  function re() {
44
- const l = ze({
45
- userConfig: b.config,
46
- defaultConfig: Ge
45
+ const l = Se({
46
+ userConfig: g.config,
47
+ defaultConfig: De
47
48
  });
48
49
  return l.theme ? {
49
- ...ze({
50
- userConfig: Ye.vue_ui_dumbbell[l.theme] || b.config,
50
+ ...Se({
51
+ userConfig: Ze.vue_ui_dumbbell[l.theme] || g.config,
51
52
  defaultConfig: l
52
53
  })
53
54
  } : l;
54
55
  }
55
- ge(() => b.config, (l) => {
56
- e.value = re(), W.value = !e.value.userOptions.showOnChartHover, ne(), ee.value += 1, te.value += 1, le.value += 1, h.value = e.value.style.chart.rowHeight, P.value = e.value.style.chart.width, O.value.showTable = e.value.table.show;
57
- }, { deep: !0 }), ge(() => b.dataset, (l) => {
56
+ pe(() => g.config, (l) => {
57
+ e.value = re(), W.value = !e.value.userOptions.showOnChartHover, ne(), ee.value += 1, te.value += 1, le.value += 1, h.value = e.value.style.chart.rowHeight, I.value = e.value.style.chart.width, P.value.showTable = e.value.table.show;
58
+ }, { deep: !0 }), pe(() => g.dataset, (l) => {
58
59
  he();
59
60
  }, { deep: !0 });
60
- const x = pe(null), N = pe(null);
61
- me(() => {
61
+ const w = me(null), T = me(null);
62
+ ke(() => {
62
63
  ne();
63
64
  });
64
65
  function ne() {
65
- if (Ze(b.dataset) ? we({
66
+ if (Je(g.dataset) ? Ce({
66
67
  componentName: "VueUiDumbbell",
67
68
  type: "dataset"
68
- }) : b.dataset.forEach((l, u) => {
69
- Je({
69
+ }) : g.dataset.forEach((l, u) => {
70
+ Ke({
70
71
  datasetObject: l,
71
72
  requiredAttributes: ["name", "start", "end"]
72
73
  }).forEach((t) => {
73
- X.value = !1, we({
74
+ N.value = !1, Ce({
74
75
  componentName: "VueUiDumbbell",
75
76
  type: "datasetSerieAttribute",
76
77
  property: t,
@@ -78,47 +79,47 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
78
79
  });
79
80
  });
80
81
  }), e.value.responsive) {
81
- const l = tt(() => {
82
- const { width: u, height: t } = lt({
83
- chart: I.value,
82
+ const l = lt(() => {
83
+ const { width: u, height: t } = at({
84
+ chart: A.value,
84
85
  title: e.value.style.chart.title.text ? Z.value : null,
85
86
  legend: e.value.style.chart.legend.show ? J.value : null,
86
87
  source: K.value,
87
88
  noTitle: Q.value
88
89
  });
89
90
  requestAnimationFrame(() => {
90
- P.value = u, h.value = t / b.dataset.length, f.value = G();
91
+ I.value = u, h.value = t / g.dataset.length, f.value = G();
91
92
  });
92
93
  });
93
- x.value && (N.value && x.value.unobserve(N.value), x.value.disconnect()), x.value = new ResizeObserver(l), N.value = I.value.parentNode, x.value.observe(N.value);
94
+ w.value && (T.value && w.value.unobserve(T.value), w.value.disconnect()), w.value = new ResizeObserver(l), T.value = A.value.parentNode, w.value.observe(T.value);
94
95
  }
95
96
  }
96
- We(() => {
97
- x.value && (N.value && x.value.unobserve(N.value), x.value.disconnect());
97
+ Ue(() => {
98
+ w.value && (T.value && w.value.unobserve(T.value), w.value.disconnect());
98
99
  });
99
- const { isPrinting: ue, isImaging: ie, generatePdf: ce, generateImage: de } = at({
100
+ const { isPrinting: ue, isImaging: ie, generatePdf: ce, generateImage: de } = st({
100
101
  elementId: `dumbbell_${y.value}`,
101
102
  fileName: e.value.style.chart.title.text || "vue-ui-dumbbell",
102
103
  options: e.value.userOptions.print
103
- }), De = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), O = d({
104
+ }), Fe = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), P = d({
104
105
  showTable: e.value.table.show
105
- }), w = g(() => b.dataset.map((l, u) => ({
106
+ }), x = m(() => g.dataset.map((l, u) => ({
106
107
  ...l,
107
- start: Ce(l.start),
108
- end: Ce(l.end),
109
- id: xe()
110
- }))), U = g(() => ({
111
- max: Math.max(...w.value.flatMap((l) => [l.start, l.end])),
112
- min: Math.min(...w.value.flatMap((l) => [l.start, l.end]))
113
- })), c = g(() => Ke(U.value.min < 0 ? U.value.min : 0, U.value.max, e.value.style.chart.grid.scaleSteps)), h = d(e.value.style.chart.rowHeight), P = d(e.value.style.chart.width), s = g(() => {
114
- const l = h.value, u = e.value.style.chart.padding.left + e.value.style.chart.padding.right + P.value, t = e.value.style.chart.padding.top + e.value.style.chart.padding.bottom + l * b.dataset.length, a = c.value.ticks.length * (P.value / c.value.ticks.length);
108
+ start: $e(l.start),
109
+ end: $e(l.end),
110
+ id: we()
111
+ }))), U = m(() => ({
112
+ max: Math.max(...x.value.flatMap((l) => [l.start, l.end])),
113
+ min: Math.min(...x.value.flatMap((l) => [l.start, l.end]))
114
+ })), c = m(() => Qe(U.value.min < 0 ? U.value.min : 0, U.value.max, e.value.style.chart.grid.scaleSteps)), h = d(e.value.style.chart.rowHeight), I = d(e.value.style.chart.width), s = m(() => {
115
+ const l = h.value, u = e.value.style.chart.padding.left + e.value.style.chart.padding.right + I.value, t = e.value.style.chart.padding.top + e.value.style.chart.padding.bottom + l * g.dataset.length, a = c.value.ticks.length * (I.value / c.value.ticks.length);
115
116
  return {
116
117
  left: e.value.style.chart.padding.left,
117
118
  right: u - e.value.style.chart.padding.right,
118
119
  top: e.value.style.chart.padding.top,
119
120
  bottom: t - e.value.style.chart.padding.bottom,
120
- width: P.value,
121
- height: l * b.dataset.length,
121
+ width: I.value,
122
+ height: l * g.dataset.length,
122
123
  rowHeight: l,
123
124
  absoluteHeight: t,
124
125
  absoluteWidth: u,
@@ -126,46 +127,46 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
126
127
  };
127
128
  });
128
129
  function G() {
129
- return w.value.map((l, u) => {
130
- const t = s.value.left + (l.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, a = s.value.left + (l.end + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, _ = t + (a - t) / 2;
130
+ return x.value.map((l, u) => {
131
+ const t = s.value.left + (l.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, a = s.value.left + (l.end + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, p = t + (a - t) / 2;
131
132
  return {
132
133
  ...l,
133
134
  startX: t,
134
135
  endX: a,
135
- centerX: _,
136
+ centerX: p,
136
137
  y: s.value.top + u * h.value + h.value / 2,
137
138
  endVal: l.start
138
139
  };
139
140
  });
140
141
  }
141
- const f = d([]), ve = d(null), Fe = g(() => w.value.map((l) => l.end).reduce((l, u) => l + u, 0));
142
- me(() => {
142
+ const f = d([]), ve = d(null), Re = m(() => x.value.map((l) => l.end).reduce((l, u) => l + u, 0));
143
+ ke(() => {
143
144
  he();
144
145
  });
145
146
  function he() {
146
147
  f.value = G();
147
148
  let l = f.value.map((t) => t.start).reduce((t, a) => t + a, 0);
148
149
  function u() {
149
- const t = w.value.map((a) => a.end - a.start);
150
- l >= Fe.value ? (cancelAnimationFrame(ve.value), f.value = G()) : (f.value = f.value.map((a, _) => {
151
- a.endVal += t[_] * (e.value.animationSpeed / 100);
152
- const m = s.value.left + (a.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, V = s.value.left + (a.endVal + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, j = m + (V - m) / 2;
150
+ const t = x.value.map((a) => a.end - a.start);
151
+ l >= Re.value ? (cancelAnimationFrame(ve.value), f.value = G()) : (f.value = f.value.map((a, p) => {
152
+ a.endVal += t[p] * (e.value.animationSpeed / 100);
153
+ const b = s.value.left + (a.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, R = s.value.left + (a.endVal + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, j = b + (R - b) / 2;
153
154
  return {
154
155
  ...a,
155
- startX: m,
156
- endX: V,
156
+ startX: b,
157
+ endX: R,
157
158
  centerX: j,
158
- y: s.value.top + _ * h.value + h.value / 2,
159
+ y: s.value.top + p * h.value + h.value / 2,
159
160
  endVal: a.endVal
160
161
  };
161
- }), l = f.value.map((a) => a.endVal).reduce((a, _) => a + _, 0), ve.value = requestAnimationFrame(u));
162
+ }), l = f.value.map((a) => a.endVal).reduce((a, p) => a + p, 0), ve.value = requestAnimationFrame(u));
162
163
  }
163
164
  e.value.useAnimation ? u() : f.value = G();
164
165
  }
165
- const ye = g(() => [
166
+ const ye = m(() => [
166
167
  { name: e.value.style.chart.legend.labelStart, color: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${y.value})` : e.value.style.chart.plots.startColor },
167
168
  { name: e.value.style.chart.legend.labelEnd, color: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${y.value})` : e.value.style.chart.plots.endColor }
168
- ]), Ve = g(() => ({
169
+ ]), Ve = m(() => ({
169
170
  cy: "donut-div-legend",
170
171
  backgroundColor: e.value.style.chart.legend.backgroundColor,
171
172
  color: e.value.style.chart.legend.color,
@@ -173,7 +174,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
173
174
  paddingBottom: 12,
174
175
  paddingTop: 12,
175
176
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
176
- })), C = g(() => {
177
+ })), C = m(() => {
177
178
  const l = f.value.map((t) => ({
178
179
  name: t.name
179
180
  })), u = f.value.map((t) => ({
@@ -181,33 +182,33 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
181
182
  end: t.end
182
183
  }));
183
184
  return { head: l, body: u };
184
- }), D = g(() => {
185
+ }), D = m(() => {
185
186
  const l = [
186
187
  e.value.table.columnNames.series,
187
188
  e.value.table.columnNames.start,
188
189
  e.value.table.columnNames.end,
189
190
  e.value.table.columnNames.progression
190
- ], u = C.value.head.map((_, m) => {
191
- const V = S({
191
+ ], u = C.value.head.map((p, b) => {
192
+ const R = X({
192
193
  p: e.value.style.chart.labels.prefix,
193
- v: C.value.body[m].start,
194
+ v: C.value.body[b].start,
194
195
  s: e.value.style.chart.labels.suffix,
195
196
  r: e.value.table.td.roundingValue
196
- }), j = S({
197
+ }), j = X({
197
198
  p: e.value.style.chart.labels.prefix,
198
- v: C.value.body[m].end,
199
+ v: C.value.body[b].end,
199
200
  s: e.value.style.chart.labels.suffix,
200
201
  r: e.value.table.td.roundingValue
201
- }), He = S({
202
- v: 100 * (C.value.body[m].end / C.value.body[m].start - 1),
202
+ }), We = X({
203
+ v: 100 * (C.value.body[b].end / C.value.body[b].start - 1),
203
204
  s: "%",
204
205
  r: e.value.table.td.roundingPercentage
205
206
  });
206
207
  return [
207
- { name: _.name },
208
- V,
208
+ { name: p.name },
209
+ R,
209
210
  j,
210
- He
211
+ We
211
212
  ];
212
213
  }), t = {
213
214
  th: {
@@ -235,44 +236,58 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
235
236
  };
236
237
  });
237
238
  function fe(l = null) {
238
- je(() => {
239
- const u = C.value.head.map((_, m) => [[
240
- _.name
241
- ], [C.value.body[m].start], [C.value.body[m].end]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(u), a = Qe(t);
242
- l ? l(a) : et({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
239
+ qe(() => {
240
+ const u = C.value.head.map((p, b) => [[
241
+ p.name
242
+ ], [C.value.body[b].start], [C.value.body[b].end]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(u), a = et(t);
243
+ l ? l(a) : tt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
243
244
  });
244
245
  }
245
246
  const M = d(!1);
246
- function Ee(l) {
247
+ function be(l) {
247
248
  M.value = l, Y.value += 1;
248
249
  }
249
- function Re() {
250
- return f.value;
250
+ function Ee() {
251
+ return x.value;
251
252
  }
252
- function be() {
253
- O.value.showTable = !O.value.showTable;
253
+ function ge() {
254
+ P.value.showTable = !P.value.showTable;
254
255
  }
255
256
  const F = d(!1);
256
257
  function B() {
257
258
  F.value = !F.value;
258
259
  }
259
- return Xe({
260
- getData: Re,
260
+ async function He({ scale: l = 2 } = {}) {
261
+ if (!A.value) return;
262
+ const { width: u, height: t } = A.value.getBoundingClientRect(), a = u / t, { imageUri: p, base64: b } = await it({ domElement: A.value, base64: !0, img: !0, scale: l });
263
+ return {
264
+ imageUri: p,
265
+ base64: b,
266
+ title: e.value.style.chart.title.text,
267
+ width: u,
268
+ height: t,
269
+ aspectRatio: a
270
+ };
271
+ }
272
+ return Ne({
273
+ getData: Ee,
274
+ getImage: He,
261
275
  generatePdf: ce,
262
276
  generateCsv: fe,
263
277
  generateImage: de,
264
- toggleTable: be,
265
- toggleAnnotator: B
278
+ toggleTable: ge,
279
+ toggleAnnotator: B,
280
+ toggleFullscreen: be
266
281
  }), (l, u) => (o(), r("div", {
267
282
  ref_key: "dumbbellChart",
268
- ref: I,
269
- class: ke(`vue-ui-dumbbell ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
270
- style: E(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
283
+ ref: A,
284
+ class: _e(`vue-ui-dumbbell ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
285
+ style: V(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
271
286
  id: `dumbbell_${y.value}`,
272
287
  onMouseenter: u[1] || (u[1] = () => n(ae)(!0)),
273
288
  onMouseleave: u[2] || (u[2] = () => n(ae)(!1))
274
289
  }, [
275
- e.value.userOptions.buttons.annotator ? (o(), A(n(Pe), {
290
+ e.value.userOptions.buttons.annotator ? (o(), z(n(Ie), {
276
291
  key: 0,
277
292
  svgRef: n(oe),
278
293
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -280,7 +295,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
280
295
  active: F.value,
281
296
  onClose: B
282
297
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
283
- De.value ? (o(), r("div", {
298
+ Fe.value ? (o(), r("div", {
284
299
  key: 1,
285
300
  ref_key: "noTitle",
286
301
  ref: Q,
@@ -293,7 +308,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
293
308
  ref: Z,
294
309
  style: "width:100%;background:transparent;padding-bottom:24px"
295
310
  }, [
296
- (o(), A(nt, {
311
+ (o(), z(ut, {
297
312
  key: `title_${ee.value}`,
298
313
  config: {
299
314
  title: {
@@ -307,7 +322,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
307
322
  }
308
323
  }, null, 8, ["config"]))
309
324
  ], 512)) : v("", !0),
310
- e.value.userOptions.show && X.value && (n(se) || n(W)) ? (o(), A(n(Ie), {
325
+ e.value.userOptions.show && N.value && (n(se) || n(W)) ? (o(), z(n(Ge), {
311
326
  ref: "details",
312
327
  key: `user_option_${Y.value}`,
313
328
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -322,81 +337,82 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
322
337
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
323
338
  isFullscreen: M.value,
324
339
  titles: { ...e.value.userOptions.buttonTitles },
325
- chartElement: I.value,
340
+ chartElement: A.value,
326
341
  position: e.value.userOptions.position,
327
342
  hasAnnotator: e.value.userOptions.buttons.annotator,
328
343
  isAnnotation: F.value,
329
344
  callbacks: e.value.userOptions.callbacks,
330
- onToggleFullscreen: Ee,
345
+ printScale: e.value.userOptions.print.scale,
346
+ onToggleFullscreen: be,
331
347
  onGeneratePdf: n(ce),
332
348
  onGenerateCsv: fe,
333
349
  onGenerateImage: n(de),
334
- onToggleTable: be,
350
+ onToggleTable: ge,
335
351
  onToggleAnnotator: B,
336
- style: E({
352
+ style: V({
337
353
  visibility: n(se) ? n(W) ? "visible" : "hidden" : "visible"
338
354
  })
339
- }, Ue({ _: 2 }, [
355
+ }, Be({ _: 2 }, [
340
356
  l.$slots.menuIcon ? {
341
357
  name: "menuIcon",
342
- fn: k(({ isOpen: t, color: a }) => [
343
- p(l.$slots, "menuIcon", R(H({ isOpen: t, color: a })), void 0, !0)
358
+ fn: _(({ isOpen: t, color: a }) => [
359
+ k(l.$slots, "menuIcon", E(H({ isOpen: t, color: a })), void 0, !0)
344
360
  ]),
345
361
  key: "0"
346
362
  } : void 0,
347
363
  l.$slots.optionPdf ? {
348
364
  name: "optionPdf",
349
- fn: k(() => [
350
- p(l.$slots, "optionPdf", {}, void 0, !0)
365
+ fn: _(() => [
366
+ k(l.$slots, "optionPdf", {}, void 0, !0)
351
367
  ]),
352
368
  key: "1"
353
369
  } : void 0,
354
370
  l.$slots.optionCsv ? {
355
371
  name: "optionCsv",
356
- fn: k(() => [
357
- p(l.$slots, "optionCsv", {}, void 0, !0)
372
+ fn: _(() => [
373
+ k(l.$slots, "optionCsv", {}, void 0, !0)
358
374
  ]),
359
375
  key: "2"
360
376
  } : void 0,
361
377
  l.$slots.optionImg ? {
362
378
  name: "optionImg",
363
- fn: k(() => [
364
- p(l.$slots, "optionImg", {}, void 0, !0)
379
+ fn: _(() => [
380
+ k(l.$slots, "optionImg", {}, void 0, !0)
365
381
  ]),
366
382
  key: "3"
367
383
  } : void 0,
368
384
  l.$slots.optionTable ? {
369
385
  name: "optionTable",
370
- fn: k(() => [
371
- p(l.$slots, "optionTable", {}, void 0, !0)
386
+ fn: _(() => [
387
+ k(l.$slots, "optionTable", {}, void 0, !0)
372
388
  ]),
373
389
  key: "4"
374
390
  } : void 0,
375
391
  l.$slots.optionFullscreen ? {
376
392
  name: "optionFullscreen",
377
- fn: k(({ toggleFullscreen: t, isFullscreen: a }) => [
378
- p(l.$slots, "optionFullscreen", R(H({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
393
+ fn: _(({ toggleFullscreen: t, isFullscreen: a }) => [
394
+ k(l.$slots, "optionFullscreen", E(H({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
379
395
  ]),
380
396
  key: "5"
381
397
  } : void 0,
382
398
  l.$slots.optionAnnotator ? {
383
399
  name: "optionAnnotator",
384
- fn: k(({ toggleAnnotator: t, isAnnotator: a }) => [
385
- p(l.$slots, "optionAnnotator", R(H({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
400
+ fn: _(({ toggleAnnotator: t, isAnnotator: a }) => [
401
+ k(l.$slots, "optionAnnotator", E(H({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
386
402
  ]),
387
403
  key: "6"
388
404
  } : void 0
389
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
390
- X.value ? (o(), r("svg", {
405
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
406
+ N.value ? (o(), r("svg", {
391
407
  key: 4,
392
408
  ref_key: "svgRef",
393
409
  ref: oe,
394
- xmlns: n($e),
395
- class: ke({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
410
+ xmlns: n(Le),
411
+ class: _e({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
396
412
  viewBox: `0 0 ${s.value.absoluteWidth <= 0 ? 10 : s.value.absoluteWidth} ${s.value.absoluteHeight <= 0 ? 10 : s.value.absoluteHeight}`,
397
- style: E(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
413
+ style: V(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
398
414
  }, [
399
- Be(n(Oe)),
415
+ je(n(Pe)),
400
416
  l.$slots["chart-background"] ? (o(), r("foreignObject", {
401
417
  key: 0,
402
418
  x: s.value.left,
@@ -407,9 +423,9 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
407
423
  pointerEvents: "none"
408
424
  }
409
425
  }, [
410
- p(l.$slots, "chart-background", {}, void 0, !0)
411
- ], 8, dt)) : v("", !0),
412
- e.value.style.chart.grid.verticalGrid.show ? (o(), r("g", vt, [
426
+ k(l.$slots, "chart-background", {}, void 0, !0)
427
+ ], 8, ht)) : v("", !0),
428
+ e.value.style.chart.grid.verticalGrid.show ? (o(), r("g", yt, [
413
429
  (o(!0), r($, null, L(c.value.ticks, (t, a) => (o(), r("line", {
414
430
  x1: s.value.left + a * s.value.width / (c.value.ticks.length - 1),
415
431
  x2: s.value.left + a * s.value.width / (c.value.ticks.length - 1),
@@ -418,10 +434,10 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
418
434
  stroke: e.value.style.chart.grid.verticalGrid.stroke,
419
435
  "stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
420
436
  "stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray
421
- }, null, 8, ht))), 256))
437
+ }, null, 8, ft))), 256))
422
438
  ])) : v("", !0),
423
- e.value.style.chart.grid.horizontalGrid.show ? (o(), r("g", yt, [
424
- (o(!0), r($, null, L(w.value, (t, a) => (o(), r("line", {
439
+ e.value.style.chart.grid.horizontalGrid.show ? (o(), r("g", bt, [
440
+ (o(!0), r($, null, L(x.value, (t, a) => (o(), r("line", {
425
441
  x1: s.value.left,
426
442
  x2: s.value.right,
427
443
  y1: s.value.top + a * h.value,
@@ -429,7 +445,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
429
445
  stroke: e.value.style.chart.grid.horizontalGrid.stroke,
430
446
  "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
431
447
  "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
432
- }, null, 8, ft))), 256)),
448
+ }, null, 8, gt))), 256)),
433
449
  i("line", {
434
450
  x1: s.value.left,
435
451
  x2: s.value.right,
@@ -438,30 +454,30 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
438
454
  stroke: e.value.style.chart.grid.horizontalGrid.stroke,
439
455
  "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
440
456
  "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
441
- }, null, 8, bt)
457
+ }, null, 8, pt)
442
458
  ])) : v("", !0),
443
- e.value.style.chart.labels.yAxisLabels.show ? (o(), r("g", gt, [
444
- (o(!0), r($, null, L(w.value, (t, a) => (o(), r("text", {
459
+ e.value.style.chart.labels.yAxisLabels.show ? (o(), r("g", mt, [
460
+ (o(!0), r($, null, L(x.value, (t, a) => (o(), r("text", {
445
461
  x: s.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
446
462
  y: s.value.top + a * h.value + (e.value.style.chart.labels.yAxisLabels.showProgression ? h.value / 3 : h.value / 2) + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
447
463
  "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
448
464
  fill: e.value.style.chart.labels.yAxisLabels.color,
449
465
  "font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
450
466
  "text-anchor": "end"
451
- }, z(t.name), 9, pt))), 256)),
452
- e.value.style.chart.labels.yAxisLabels.showProgression ? (o(!0), r($, { key: 0 }, L(w.value, (t, a) => (o(), r("text", {
467
+ }, S(t.name), 9, kt))), 256)),
468
+ e.value.style.chart.labels.yAxisLabels.showProgression ? (o(!0), r($, { key: 0 }, L(x.value, (t, a) => (o(), r("text", {
453
469
  x: s.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
454
470
  y: s.value.top + a * h.value + h.value / 1.3 + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
455
471
  "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
456
472
  fill: e.value.style.chart.labels.yAxisLabels.color,
457
473
  "text-anchor": "end"
458
- }, z(n(S)({
474
+ }, S(n(X)({
459
475
  v: 100 * (t.end / t.start - 1),
460
476
  s: "%",
461
477
  r: e.value.style.chart.labels.yAxisLabels.rounding
462
- })), 9, mt))), 256)) : v("", !0)
478
+ })), 9, _t))), 256)) : v("", !0)
463
479
  ])) : v("", !0),
464
- e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g", kt, [
480
+ e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g", xt, [
465
481
  (o(!0), r($, null, L(c.value.ticks, (t, a) => (o(), r("text", {
466
482
  x: s.value.left + a * (s.value.width / (c.value.ticks.length - 1)),
467
483
  y: s.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize + e.value.style.chart.labels.xAxisLabels.offsetY,
@@ -469,17 +485,17 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
469
485
  fill: e.value.style.chart.labels.xAxisLabels.color,
470
486
  "font-weight": e.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
471
487
  "text-anchor": "middle"
472
- }, z(n(q)(
488
+ }, S(n(q)(
473
489
  e.value.style.chart.labels.formatter,
474
490
  t,
475
- n(S)({
491
+ n(X)({
476
492
  p: e.value.style.chart.labels.prefix,
477
493
  v: t,
478
494
  s: e.value.style.chart.labels.suffix,
479
495
  r: e.value.style.chart.labels.xAxisLabels.rounding
480
496
  }),
481
497
  { datapoint: t, seriesIndex: a }
482
- )), 9, _t))), 256))
498
+ )), 9, wt))), 256))
483
499
  ])) : v("", !0),
484
500
  i("defs", null, [
485
501
  i("radialGradient", {
@@ -488,34 +504,34 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
488
504
  }, [
489
505
  i("stop", {
490
506
  offset: "10%",
491
- "stop-color": n(Le)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
492
- }, null, 8, wt),
507
+ "stop-color": n(Ae)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
508
+ }, null, 8, $t),
493
509
  i("stop", {
494
510
  offset: "90%",
495
- "stop-color": n(Ae)(e.value.style.chart.plots.startColor, 0.1)
496
- }, null, 8, Ct),
511
+ "stop-color": n(ze)(e.value.style.chart.plots.startColor, 0.1)
512
+ }, null, 8, Lt),
497
513
  i("stop", {
498
514
  offset: "100%",
499
515
  "stop-color": e.value.style.chart.plots.startColor
500
- }, null, 8, $t)
501
- ], 8, xt),
516
+ }, null, 8, At)
517
+ ], 8, Ct),
502
518
  i("radialGradient", {
503
519
  id: `end_grad_${y.value}`,
504
520
  fy: "30%"
505
521
  }, [
506
522
  i("stop", {
507
523
  offset: "10%",
508
- "stop-color": n(Le)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
509
- }, null, 8, At),
524
+ "stop-color": n(Ae)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
525
+ }, null, 8, St),
510
526
  i("stop", {
511
527
  offset: "90%",
512
- "stop-color": n(Ae)(e.value.style.chart.plots.endColor, 0.1)
513
- }, null, 8, zt),
528
+ "stop-color": n(ze)(e.value.style.chart.plots.endColor, 0.1)
529
+ }, null, 8, Xt),
514
530
  i("stop", {
515
531
  offset: "100%",
516
532
  "stop-color": e.value.style.chart.plots.endColor
517
- }, null, 8, St)
518
- ], 8, Lt)
533
+ }, null, 8, Nt)
534
+ ], 8, zt)
519
535
  ]),
520
536
  (o(!0), r($, null, L(f.value, (t, a) => (o(), r("g", null, [
521
537
  i("defs", null, [
@@ -529,12 +545,12 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
529
545
  i("stop", {
530
546
  offset: "0%",
531
547
  "stop-color": e.value.style.chart.plots.startColor
532
- }, null, 8, Nt),
548
+ }, null, 8, Ot),
533
549
  i("stop", {
534
550
  offset: "100%",
535
551
  "stop-color": e.value.style.chart.plots.endColor
536
- }, null, 8, Tt)
537
- ], 8, Xt),
552
+ }, null, 8, Pt)
553
+ ], 8, Tt),
538
554
  i("linearGradient", {
539
555
  id: `grad_negative_${y.value}`,
540
556
  x1: "0%",
@@ -545,14 +561,14 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
545
561
  i("stop", {
546
562
  offset: "0%",
547
563
  "stop-color": e.value.style.chart.plots.endColor
548
- }, null, 8, Pt),
564
+ }, null, 8, Mt),
549
565
  i("stop", {
550
566
  offset: "100%",
551
567
  "stop-color": e.value.style.chart.plots.startColor
552
- }, null, 8, Mt)
553
- ], 8, Ot)
568
+ }, null, 8, Gt)
569
+ ], 8, It)
554
570
  ]),
555
- e.value.style.chart.plots.link.type === "curved" ? (o(), r("g", It, [
571
+ e.value.style.chart.plots.link.type === "curved" ? (o(), r("g", Dt, [
556
572
  i("path", {
557
573
  d: `M
558
574
  ${t.startX},${t.y + e.value.style.chart.plots.radius / 2}
@@ -564,15 +580,15 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
564
580
  Z
565
581
  `,
566
582
  fill: t.endX > t.startX ? `url(#grad_positive_${y.value})` : `url(#grad_negative_${y.value})`
567
- }, null, 8, Gt)
568
- ])) : (o(), r("g", Dt, [
583
+ }, null, 8, Ft)
584
+ ])) : (o(), r("g", Rt, [
569
585
  i("rect", {
570
586
  x: t.endX > t.startX ? t.startX : t.endX,
571
587
  y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
572
588
  height: e.value.style.chart.plots.link.strokeWidth,
573
589
  width: Math.abs(t.endX - t.startX),
574
590
  fill: t.endX > t.startX ? `url(#grad_positive_${y.value})` : `url(#grad_negative_${y.value})`
575
- }, null, 8, Ft)
591
+ }, null, 8, Vt)
576
592
  ])),
577
593
  i("circle", {
578
594
  cx: t.startX,
@@ -581,7 +597,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
581
597
  fill: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${y.value})` : e.value.style.chart.plots.startColor,
582
598
  stroke: e.value.style.chart.plots.stroke,
583
599
  "stroke-width": e.value.style.chart.plots.strokeWidth
584
- }, null, 8, Vt),
600
+ }, null, 8, Et),
585
601
  i("circle", {
586
602
  cx: t.endX,
587
603
  cy: t.y,
@@ -589,52 +605,52 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
589
605
  fill: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${y.value})` : e.value.style.chart.plots.endColor,
590
606
  stroke: e.value.style.chart.plots.stroke,
591
607
  "stroke-width": e.value.style.chart.plots.strokeWidth
592
- }, null, 8, Et)
608
+ }, null, 8, Ht)
593
609
  ]))), 256)),
594
- e.value.style.chart.labels.startLabels.show ? (o(), r("g", Rt, [
610
+ e.value.style.chart.labels.startLabels.show ? (o(), r("g", Wt, [
595
611
  (o(!0), r($, null, L(f.value, (t, a) => (o(), r("text", {
596
612
  x: t.startX,
597
613
  y: s.value.top + (a + 1) * h.value - e.value.style.chart.labels.startLabels.fontSize / 3 + e.value.style.chart.labels.startLabels.offsetY,
598
614
  fill: e.value.style.chart.labels.startLabels.useStartColor ? e.value.style.chart.plots.startColor : e.value.style.chart.labels.startLabels.color,
599
615
  "font-size": e.value.style.chart.labels.startLabels.fontSize,
600
616
  "text-anchor": "middle"
601
- }, z(n(q)(
617
+ }, S(n(q)(
602
618
  e.value.style.chart.labels.formatter,
603
619
  t.start,
604
- n(S)({
620
+ n(X)({
605
621
  p: e.value.style.chart.labels.prefix,
606
622
  v: t.start,
607
623
  s: e.value.style.chart.labels.suffix,
608
624
  r: e.value.style.chart.labels.startLabels.rounding
609
625
  }),
610
626
  { datapoint: t, seriesIndex: a }
611
- )), 9, Ht))), 256))
627
+ )), 9, Ut))), 256))
612
628
  ])) : v("", !0),
613
- e.value.style.chart.labels.endLabels.show ? (o(), r("g", Wt, [
629
+ e.value.style.chart.labels.endLabels.show ? (o(), r("g", Bt, [
614
630
  (o(!0), r($, null, L(f.value, (t, a) => (o(), r("text", {
615
631
  x: t.endX,
616
632
  y: s.value.top + a * h.value + e.value.style.chart.labels.endLabels.fontSize + e.value.style.chart.labels.endLabels.offsetY,
617
633
  fill: e.value.style.chart.labels.endLabels.useEndColor ? e.value.style.chart.plots.endColor : e.value.style.chart.labels.endLabels.color,
618
634
  "font-size": e.value.style.chart.labels.endLabels.fontSize,
619
635
  "text-anchor": "middle"
620
- }, z(n(q)(
636
+ }, S(n(q)(
621
637
  e.value.style.chart.labels.formatter,
622
638
  t.end,
623
- n(S)({
639
+ n(X)({
624
640
  p: e.value.style.chart.labels.prefix,
625
641
  v: t.end,
626
642
  s: e.value.style.chart.labels.suffix,
627
643
  r: e.value.style.chart.labels.endLabels.rounding
628
644
  }),
629
645
  { datapoint: t, seriesIndex: a }
630
- )), 9, Ut))), 256))
646
+ )), 9, jt))), 256))
631
647
  ])) : v("", !0),
632
- p(l.$slots, "svg", { svg: s.value }, void 0, !0)
633
- ], 14, ct)) : v("", !0),
634
- l.$slots.watermark ? (o(), r("div", Bt, [
635
- p(l.$slots, "watermark", R(H({ isPrinting: n(ue) || n(ie) })), void 0, !0)
648
+ k(l.$slots, "svg", { svg: s.value }, void 0, !0)
649
+ ], 14, vt)) : v("", !0),
650
+ l.$slots.watermark ? (o(), r("div", qt, [
651
+ k(l.$slots, "watermark", E(H({ isPrinting: n(ue) || n(ie) })), void 0, !0)
636
652
  ])) : v("", !0),
637
- X.value ? v("", !0) : (o(), A(n(Me), {
653
+ N.value ? v("", !0) : (o(), z(n(Me), {
638
654
  key: 6,
639
655
  config: {
640
656
  type: "dumbbell",
@@ -650,17 +666,17 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
650
666
  ref_key: "chartLegend",
651
667
  ref: J
652
668
  }, [
653
- e.value.style.chart.legend.show && X.value ? (o(), A(rt, {
669
+ e.value.style.chart.legend.show && N.value ? (o(), z(nt, {
654
670
  key: `legend_${le.value}`,
655
671
  legendSet: ye.value,
656
672
  config: Ve.value
657
673
  }, {
658
- item: k(({ legend: t }) => [
674
+ item: _(({ legend: t }) => [
659
675
  i("div", {
660
- style: E(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
676
+ style: V(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
661
677
  }, [
662
678
  (o(), r("svg", {
663
- xmlns: n($e),
679
+ xmlns: n(Le),
664
680
  viewBox: "0 0 20 20",
665
681
  height: e.value.style.chart.legend.fontSize,
666
682
  width: e.value.style.chart.legend.fontSize
@@ -670,13 +686,13 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
670
686
  cy: 10,
671
687
  r: 9,
672
688
  fill: t.color
673
- }, null, 8, qt)
674
- ], 8, jt)),
675
- _e(" " + z(t.name), 1)
689
+ }, null, 8, Zt)
690
+ ], 8, Yt)),
691
+ xe(" " + S(t.name), 1)
676
692
  ], 4)
677
693
  ]),
678
694
  _: 1
679
- }, 8, ["legendSet", "config"])) : p(l.$slots, "legend", {
695
+ }, 8, ["legendSet", "config"])) : k(l.$slots, "legend", {
680
696
  key: 1,
681
697
  legend: ye.value
682
698
  }, void 0, !0)
@@ -687,13 +703,13 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
687
703
  ref: K,
688
704
  dir: "auto"
689
705
  }, [
690
- p(l.$slots, "source", {}, void 0, !0)
706
+ k(l.$slots, "source", {}, void 0, !0)
691
707
  ], 512)) : v("", !0),
692
- X.value ? (o(), A(n(Ne), {
708
+ N.value ? (o(), z(n(Te), {
693
709
  key: 8,
694
710
  hideDetails: "",
695
711
  config: {
696
- open: O.value.showTable,
712
+ open: P.value.showTable,
697
713
  maxHeight: 1e4,
698
714
  body: {
699
715
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -705,33 +721,33 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
705
721
  }
706
722
  }
707
723
  }, {
708
- content: k(() => [
709
- (o(), A(n(Te), {
724
+ content: _(() => [
725
+ (o(), z(n(Oe), {
710
726
  key: `table_${te.value}`,
711
727
  colNames: D.value.colNames,
712
728
  head: D.value.head,
713
729
  body: D.value.body,
714
730
  config: D.value.config,
715
731
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
716
- onClose: u[0] || (u[0] = (t) => O.value.showTable = !1)
732
+ onClose: u[0] || (u[0] = (t) => P.value.showTable = !1)
717
733
  }, {
718
- th: k(({ th: t }) => [
734
+ th: _(({ th: t }) => [
719
735
  i("div", {
720
736
  innerHTML: t,
721
737
  style: { display: "flex", "align-items": "center" }
722
- }, null, 8, Yt)
738
+ }, null, 8, Jt)
723
739
  ]),
724
- td: k(({ td: t }) => [
725
- _e(z(t.name || t), 1)
740
+ td: _(({ td: t }) => [
741
+ xe(S(t.name || t), 1)
726
742
  ]),
727
743
  _: 1
728
744
  }, 8, ["colNames", "head", "body", "config", "title"]))
729
745
  ]),
730
746
  _: 1
731
747
  }, 8, ["config"])) : v("", !0)
732
- ], 46, it));
748
+ ], 46, dt));
733
749
  }
734
- }, ul = /* @__PURE__ */ ut(Zt, [["__scopeId", "data-v-0167dbe6"]]);
750
+ }, dl = /* @__PURE__ */ ct(Kt, [["__scopeId", "data-v-8b6099dd"]]);
735
751
  export {
736
- ul as default
752
+ dl as default
737
753
  };