vue-data-ui 2.16.5 → 2.17.0

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 (92) hide show
  1. package/README.md +85 -55
  2. package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
  17. package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/img-Y_hYz-ZC.js +27 -0
  19. package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1098 -162
  23. package/dist/types/vue-data-ui.d.ts +1098 -162
  24. package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-ButWuZVm.js → usePrinter-DDHcrl0A.js} +2 -2
  26. package/dist/vue-data-ui-CIWxgKjd.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
  29. package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
  31. package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
  33. package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
  34. package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
  35. package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
  36. package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
  37. package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
  38. package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
  42. package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
  43. package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
  44. package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
  45. package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
  46. package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
  47. package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
  48. package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
  50. package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
  51. package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
  54. package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
  55. package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
  56. package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
  57. package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
  58. package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
  59. package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
  60. package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
  61. package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
  63. package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
  64. package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
  65. package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
  66. package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
  75. package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
  76. package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
  79. package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
  80. package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
  82. package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
  83. package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
  84. package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
  85. package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
  86. package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
  87. package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
  88. package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
  89. package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
  90. package/package.json +1 -1
  91. package/dist/img-CTC5DLKL.js +0 -20
  92. package/dist/vue-data-ui-BB8Upnjm.js +0 -301
@@ -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-CZNLCg7T.js";
3
- import { t as tt, u as lt } from "./useResponsive-DfdjqQps.js";
4
- import { u as ze } from "./useNestedProp-BcPDA6Xr.js";
5
- import { u as at } from "./usePrinter-ButWuZVm.js";
6
- import { u as st } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as ot } from "./useChartAccessibility-9icAAmYg.js";
8
- import rt from "./Legend-DoxQwq_u.js";
9
- import nt from "./Title-BQLtfM0P.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 g, 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 E, normalizeClass as _e, createBlock as A, createCommentVNode as v, createElementVNode as i, createSlots as Be, withCtx as k, renderSlot as p, normalizeProps as R, guardReactiveProps as H, createVNode as je, Fragment as $, renderList as L, toDisplayString as z, 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 S, X as Le, i as q, l as Ae, h as ze, q as et, r as tt } from "./index-pPGk-uhD.js";
3
+ import { t as lt, u as at } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Se } from "./useNestedProp-DjACxgdZ.js";
5
+ import { u as st } from "./usePrinter-DDHcrl0A.js";
6
+ import { u as ot } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as rt } from "./useChartAccessibility-9icAAmYg.js";
8
+ import nt from "./Legend-Bxlv67uY.js";
9
+ import ut from "./Title-B-2bV0SW.js";
10
+ import it from "./img-Y_hYz-ZC.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"], Vt = { key: 1 }, Et = ["x", "y", "height", "width", "fill"], Rt = ["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-CO4hmfuX.js")), Te = T(() => import("./DataTable-B6MXw9cG.js")), Oe = T(() => import("./PackageVersion-DCreTQN4.js")), Pe = T(() => import("./PenAndPaper-BS60tkQN.js")), Me = T(() => import("./vue-ui-skeleton-D9B8DY_k.js")), Ie = T(() => import("./UserOptions-DMGkAAIO.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-CVnA550V.js")), Oe = O(() => import("./DataTable-D0VYDhfx.js")), Pe = O(() => import("./PackageVersion-5TR4ocqp.js")), Ie = O(() => import("./PenAndPaper-D6AqipIO.js")), Me = O(() => import("./vue-ui-skeleton-DJPjyNYn.js")), Ge = O(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_dumbbell: De } = Ye(), b = Xe, X = g({
33
34
  get() {
34
35
  return !!b.dataset && b.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), N = 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
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
+ const l = Se({
45
46
  userConfig: b.config,
46
- defaultConfig: Ge
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] || b.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(() => b.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(() => b.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(b.dataset) ? Ce({
66
67
  componentName: "VueUiDumbbell",
67
68
  type: "dataset"
68
69
  }) : b.dataset.forEach((l, u) => {
69
- Je({
70
+ Ke({
70
71
  datasetObject: l,
71
72
  requiredAttributes: ["name", "start", "end"]
72
73
  }).forEach((t) => {
73
- X.value = !1, we({
74
+ X.value = !1, Ce({
74
75
  componentName: "VueUiDumbbell",
75
76
  type: "datasetSerieAttribute",
76
77
  property: t,
@@ -78,46 +79,46 @@ 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: N.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 / b.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 = N.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 = g(() => 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 = g(() => b.dataset.map((l, u) => ({
106
107
  ...l,
107
- start: Ce(l.start),
108
- end: Ce(l.end),
109
- id: xe()
108
+ start: $e(l.start),
109
+ end: $e(l.end),
110
+ id: we()
110
111
  }))), 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);
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 = g(() => 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 = g(() => {
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 * b.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
+ width: I.value,
121
122
  height: l * b.dataset.length,
122
123
  rowHeight: l,
123
124
  absoluteHeight: t,
@@ -126,7 +127,7 @@ 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
+ return x.value.map((l, u) => {
130
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, _ = t + (a - t) / 2;
131
132
  return {
132
133
  ...l,
@@ -138,16 +139,16 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
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), Ve = g(() => 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, _) => {
150
+ const t = x.value.map((a) => a.end - a.start);
151
+ l >= Ve.value ? (cancelAnimationFrame(ve.value), f.value = G()) : (f.value = f.value.map((a, _) => {
151
152
  a.endVal += t[_] * (e.value.animationSpeed / 100);
152
153
  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;
153
154
  return {
@@ -165,7 +166,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
165
166
  const ye = g(() => [
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
+ ]), Ee = g(() => ({
169
170
  cy: "donut-div-legend",
170
171
  backgroundColor: e.value.style.chart.legend.backgroundColor,
171
172
  color: e.value.style.chart.legend.color,
@@ -198,7 +199,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
198
199
  v: C.value.body[m].end,
199
200
  s: e.value.style.chart.labels.suffix,
200
201
  r: e.value.table.td.roundingValue
201
- }), He = S({
202
+ }), We = S({
202
203
  v: 100 * (C.value.body[m].end / C.value.body[m].start - 1),
203
204
  s: "%",
204
205
  r: e.value.table.td.roundingPercentage
@@ -207,7 +208,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
207
208
  { name: _.name },
208
209
  V,
209
210
  j,
210
- He
211
+ We
211
212
  ];
212
213
  }), t = {
213
214
  th: {
@@ -235,44 +236,51 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
235
236
  };
236
237
  });
237
238
  function fe(l = null) {
238
- je(() => {
239
+ qe(() => {
239
240
  const u = C.value.head.map((_, m) => [[
240
241
  _.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" });
242
+ ], [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 = 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
250
  function Re() {
250
- return f.value;
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
+ async function He({ scale: l = 2 } = {}) {
261
+ if (!N.value) return;
262
+ const { imageUri: u, base64: t } = await it({ domElement: N.value, base64: !0, img: !0, scale: l });
263
+ return { imageUri: u, base64: t };
264
+ }
265
+ return Ne({
260
266
  getData: Re,
267
+ getImage: He,
261
268
  generatePdf: ce,
262
269
  generateCsv: fe,
263
270
  generateImage: de,
264
- toggleTable: be,
265
- toggleAnnotator: B
271
+ toggleTable: ge,
272
+ toggleAnnotator: B,
273
+ toggleFullscreen: be
266
274
  }), (l, u) => (o(), r("div", {
267
275
  ref_key: "dumbbellChart",
268
- ref: I,
269
- class: ke(`vue-ui-dumbbell ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
276
+ ref: N,
277
+ class: _e(`vue-ui-dumbbell ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
270
278
  style: E(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
271
279
  id: `dumbbell_${y.value}`,
272
280
  onMouseenter: u[1] || (u[1] = () => n(ae)(!0)),
273
281
  onMouseleave: u[2] || (u[2] = () => n(ae)(!1))
274
282
  }, [
275
- e.value.userOptions.buttons.annotator ? (o(), A(n(Pe), {
283
+ e.value.userOptions.buttons.annotator ? (o(), A(n(Ie), {
276
284
  key: 0,
277
285
  svgRef: n(oe),
278
286
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -280,7 +288,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
280
288
  active: F.value,
281
289
  onClose: B
282
290
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
283
- De.value ? (o(), r("div", {
291
+ Fe.value ? (o(), r("div", {
284
292
  key: 1,
285
293
  ref_key: "noTitle",
286
294
  ref: Q,
@@ -293,7 +301,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
293
301
  ref: Z,
294
302
  style: "width:100%;background:transparent;padding-bottom:24px"
295
303
  }, [
296
- (o(), A(nt, {
304
+ (o(), A(ut, {
297
305
  key: `title_${ee.value}`,
298
306
  config: {
299
307
  title: {
@@ -307,7 +315,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
307
315
  }
308
316
  }, null, 8, ["config"]))
309
317
  ], 512)) : v("", !0),
310
- e.value.userOptions.show && X.value && (n(se) || n(W)) ? (o(), A(n(Ie), {
318
+ e.value.userOptions.show && X.value && (n(se) || n(W)) ? (o(), A(n(Ge), {
311
319
  ref: "details",
312
320
  key: `user_option_${Y.value}`,
313
321
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -322,21 +330,22 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
322
330
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
323
331
  isFullscreen: M.value,
324
332
  titles: { ...e.value.userOptions.buttonTitles },
325
- chartElement: I.value,
333
+ chartElement: N.value,
326
334
  position: e.value.userOptions.position,
327
335
  hasAnnotator: e.value.userOptions.buttons.annotator,
328
336
  isAnnotation: F.value,
329
337
  callbacks: e.value.userOptions.callbacks,
330
- onToggleFullscreen: Ee,
338
+ printScale: e.value.userOptions.print.scale,
339
+ onToggleFullscreen: be,
331
340
  onGeneratePdf: n(ce),
332
341
  onGenerateCsv: fe,
333
342
  onGenerateImage: n(de),
334
- onToggleTable: be,
343
+ onToggleTable: ge,
335
344
  onToggleAnnotator: B,
336
345
  style: E({
337
346
  visibility: n(se) ? n(W) ? "visible" : "hidden" : "visible"
338
347
  })
339
- }, Ue({ _: 2 }, [
348
+ }, Be({ _: 2 }, [
340
349
  l.$slots.menuIcon ? {
341
350
  name: "menuIcon",
342
351
  fn: k(({ isOpen: t, color: a }) => [
@@ -386,17 +395,17 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
386
395
  ]),
387
396
  key: "6"
388
397
  } : 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),
398
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
390
399
  X.value ? (o(), r("svg", {
391
400
  key: 4,
392
401
  ref_key: "svgRef",
393
402
  ref: oe,
394
- xmlns: n($e),
395
- class: ke({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
403
+ xmlns: n(Le),
404
+ class: _e({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
396
405
  viewBox: `0 0 ${s.value.absoluteWidth <= 0 ? 10 : s.value.absoluteWidth} ${s.value.absoluteHeight <= 0 ? 10 : s.value.absoluteHeight}`,
397
406
  style: E(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
398
407
  }, [
399
- Be(n(Oe)),
408
+ je(n(Pe)),
400
409
  l.$slots["chart-background"] ? (o(), r("foreignObject", {
401
410
  key: 0,
402
411
  x: s.value.left,
@@ -408,8 +417,8 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
408
417
  }
409
418
  }, [
410
419
  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, [
420
+ ], 8, ht)) : v("", !0),
421
+ e.value.style.chart.grid.verticalGrid.show ? (o(), r("g", yt, [
413
422
  (o(!0), r($, null, L(c.value.ticks, (t, a) => (o(), r("line", {
414
423
  x1: s.value.left + a * s.value.width / (c.value.ticks.length - 1),
415
424
  x2: s.value.left + a * s.value.width / (c.value.ticks.length - 1),
@@ -418,10 +427,10 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
418
427
  stroke: e.value.style.chart.grid.verticalGrid.stroke,
419
428
  "stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
420
429
  "stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray
421
- }, null, 8, ht))), 256))
430
+ }, null, 8, ft))), 256))
422
431
  ])) : 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", {
432
+ e.value.style.chart.grid.horizontalGrid.show ? (o(), r("g", bt, [
433
+ (o(!0), r($, null, L(x.value, (t, a) => (o(), r("line", {
425
434
  x1: s.value.left,
426
435
  x2: s.value.right,
427
436
  y1: s.value.top + a * h.value,
@@ -429,7 +438,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
429
438
  stroke: e.value.style.chart.grid.horizontalGrid.stroke,
430
439
  "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
431
440
  "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
432
- }, null, 8, ft))), 256)),
441
+ }, null, 8, gt))), 256)),
433
442
  i("line", {
434
443
  x1: s.value.left,
435
444
  x2: s.value.right,
@@ -438,18 +447,18 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
438
447
  stroke: e.value.style.chart.grid.horizontalGrid.stroke,
439
448
  "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
440
449
  "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
441
- }, null, 8, bt)
450
+ }, null, 8, pt)
442
451
  ])) : 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", {
452
+ e.value.style.chart.labels.yAxisLabels.show ? (o(), r("g", mt, [
453
+ (o(!0), r($, null, L(x.value, (t, a) => (o(), r("text", {
445
454
  x: s.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
446
455
  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
456
  "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
448
457
  fill: e.value.style.chart.labels.yAxisLabels.color,
449
458
  "font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
450
459
  "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", {
460
+ }, z(t.name), 9, kt))), 256)),
461
+ e.value.style.chart.labels.yAxisLabels.showProgression ? (o(!0), r($, { key: 0 }, L(x.value, (t, a) => (o(), r("text", {
453
462
  x: s.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
454
463
  y: s.value.top + a * h.value + h.value / 1.3 + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
455
464
  "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
@@ -459,9 +468,9 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
459
468
  v: 100 * (t.end / t.start - 1),
460
469
  s: "%",
461
470
  r: e.value.style.chart.labels.yAxisLabels.rounding
462
- })), 9, mt))), 256)) : v("", !0)
471
+ })), 9, _t))), 256)) : v("", !0)
463
472
  ])) : v("", !0),
464
- e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g", kt, [
473
+ e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g", xt, [
465
474
  (o(!0), r($, null, L(c.value.ticks, (t, a) => (o(), r("text", {
466
475
  x: s.value.left + a * (s.value.width / (c.value.ticks.length - 1)),
467
476
  y: s.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize + e.value.style.chart.labels.xAxisLabels.offsetY,
@@ -479,7 +488,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
479
488
  r: e.value.style.chart.labels.xAxisLabels.rounding
480
489
  }),
481
490
  { datapoint: t, seriesIndex: a }
482
- )), 9, _t))), 256))
491
+ )), 9, wt))), 256))
483
492
  ])) : v("", !0),
484
493
  i("defs", null, [
485
494
  i("radialGradient", {
@@ -488,34 +497,34 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
488
497
  }, [
489
498
  i("stop", {
490
499
  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),
500
+ "stop-color": n(Ae)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
501
+ }, null, 8, $t),
493
502
  i("stop", {
494
503
  offset: "90%",
495
- "stop-color": n(Ae)(e.value.style.chart.plots.startColor, 0.1)
496
- }, null, 8, Ct),
504
+ "stop-color": n(ze)(e.value.style.chart.plots.startColor, 0.1)
505
+ }, null, 8, Lt),
497
506
  i("stop", {
498
507
  offset: "100%",
499
508
  "stop-color": e.value.style.chart.plots.startColor
500
- }, null, 8, $t)
501
- ], 8, xt),
509
+ }, null, 8, At)
510
+ ], 8, Ct),
502
511
  i("radialGradient", {
503
512
  id: `end_grad_${y.value}`,
504
513
  fy: "30%"
505
514
  }, [
506
515
  i("stop", {
507
516
  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),
517
+ "stop-color": n(Ae)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
518
+ }, null, 8, St),
510
519
  i("stop", {
511
520
  offset: "90%",
512
- "stop-color": n(Ae)(e.value.style.chart.plots.endColor, 0.1)
513
- }, null, 8, zt),
521
+ "stop-color": n(ze)(e.value.style.chart.plots.endColor, 0.1)
522
+ }, null, 8, Xt),
514
523
  i("stop", {
515
524
  offset: "100%",
516
525
  "stop-color": e.value.style.chart.plots.endColor
517
- }, null, 8, St)
518
- ], 8, Lt)
526
+ }, null, 8, Nt)
527
+ ], 8, zt)
519
528
  ]),
520
529
  (o(!0), r($, null, L(f.value, (t, a) => (o(), r("g", null, [
521
530
  i("defs", null, [
@@ -529,12 +538,12 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
529
538
  i("stop", {
530
539
  offset: "0%",
531
540
  "stop-color": e.value.style.chart.plots.startColor
532
- }, null, 8, Nt),
541
+ }, null, 8, Ot),
533
542
  i("stop", {
534
543
  offset: "100%",
535
544
  "stop-color": e.value.style.chart.plots.endColor
536
- }, null, 8, Tt)
537
- ], 8, Xt),
545
+ }, null, 8, Pt)
546
+ ], 8, Tt),
538
547
  i("linearGradient", {
539
548
  id: `grad_negative_${y.value}`,
540
549
  x1: "0%",
@@ -545,14 +554,14 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
545
554
  i("stop", {
546
555
  offset: "0%",
547
556
  "stop-color": e.value.style.chart.plots.endColor
548
- }, null, 8, Pt),
557
+ }, null, 8, Mt),
549
558
  i("stop", {
550
559
  offset: "100%",
551
560
  "stop-color": e.value.style.chart.plots.startColor
552
- }, null, 8, Mt)
553
- ], 8, Ot)
561
+ }, null, 8, Gt)
562
+ ], 8, It)
554
563
  ]),
555
- e.value.style.chart.plots.link.type === "curved" ? (o(), r("g", It, [
564
+ e.value.style.chart.plots.link.type === "curved" ? (o(), r("g", Dt, [
556
565
  i("path", {
557
566
  d: `M
558
567
  ${t.startX},${t.y + e.value.style.chart.plots.radius / 2}
@@ -564,15 +573,15 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
564
573
  Z
565
574
  `,
566
575
  fill: t.endX > t.startX ? `url(#grad_positive_${y.value})` : `url(#grad_negative_${y.value})`
567
- }, null, 8, Gt)
568
- ])) : (o(), r("g", Dt, [
576
+ }, null, 8, Ft)
577
+ ])) : (o(), r("g", Vt, [
569
578
  i("rect", {
570
579
  x: t.endX > t.startX ? t.startX : t.endX,
571
580
  y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
572
581
  height: e.value.style.chart.plots.link.strokeWidth,
573
582
  width: Math.abs(t.endX - t.startX),
574
583
  fill: t.endX > t.startX ? `url(#grad_positive_${y.value})` : `url(#grad_negative_${y.value})`
575
- }, null, 8, Ft)
584
+ }, null, 8, Et)
576
585
  ])),
577
586
  i("circle", {
578
587
  cx: t.startX,
@@ -581,7 +590,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
581
590
  fill: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${y.value})` : e.value.style.chart.plots.startColor,
582
591
  stroke: e.value.style.chart.plots.stroke,
583
592
  "stroke-width": e.value.style.chart.plots.strokeWidth
584
- }, null, 8, Vt),
593
+ }, null, 8, Rt),
585
594
  i("circle", {
586
595
  cx: t.endX,
587
596
  cy: t.y,
@@ -589,9 +598,9 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
589
598
  fill: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${y.value})` : e.value.style.chart.plots.endColor,
590
599
  stroke: e.value.style.chart.plots.stroke,
591
600
  "stroke-width": e.value.style.chart.plots.strokeWidth
592
- }, null, 8, Et)
601
+ }, null, 8, Ht)
593
602
  ]))), 256)),
594
- e.value.style.chart.labels.startLabels.show ? (o(), r("g", Rt, [
603
+ e.value.style.chart.labels.startLabels.show ? (o(), r("g", Wt, [
595
604
  (o(!0), r($, null, L(f.value, (t, a) => (o(), r("text", {
596
605
  x: t.startX,
597
606
  y: s.value.top + (a + 1) * h.value - e.value.style.chart.labels.startLabels.fontSize / 3 + e.value.style.chart.labels.startLabels.offsetY,
@@ -608,9 +617,9 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
608
617
  r: e.value.style.chart.labels.startLabels.rounding
609
618
  }),
610
619
  { datapoint: t, seriesIndex: a }
611
- )), 9, Ht))), 256))
620
+ )), 9, Ut))), 256))
612
621
  ])) : v("", !0),
613
- e.value.style.chart.labels.endLabels.show ? (o(), r("g", Wt, [
622
+ e.value.style.chart.labels.endLabels.show ? (o(), r("g", Bt, [
614
623
  (o(!0), r($, null, L(f.value, (t, a) => (o(), r("text", {
615
624
  x: t.endX,
616
625
  y: s.value.top + a * h.value + e.value.style.chart.labels.endLabels.fontSize + e.value.style.chart.labels.endLabels.offsetY,
@@ -627,11 +636,11 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
627
636
  r: e.value.style.chart.labels.endLabels.rounding
628
637
  }),
629
638
  { datapoint: t, seriesIndex: a }
630
- )), 9, Ut))), 256))
639
+ )), 9, jt))), 256))
631
640
  ])) : v("", !0),
632
641
  p(l.$slots, "svg", { svg: s.value }, void 0, !0)
633
- ], 14, ct)) : v("", !0),
634
- l.$slots.watermark ? (o(), r("div", Bt, [
642
+ ], 14, vt)) : v("", !0),
643
+ l.$slots.watermark ? (o(), r("div", qt, [
635
644
  p(l.$slots, "watermark", R(H({ isPrinting: n(ue) || n(ie) })), void 0, !0)
636
645
  ])) : v("", !0),
637
646
  X.value ? v("", !0) : (o(), A(n(Me), {
@@ -650,17 +659,17 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
650
659
  ref_key: "chartLegend",
651
660
  ref: J
652
661
  }, [
653
- e.value.style.chart.legend.show && X.value ? (o(), A(rt, {
662
+ e.value.style.chart.legend.show && X.value ? (o(), A(nt, {
654
663
  key: `legend_${le.value}`,
655
664
  legendSet: ye.value,
656
- config: Ve.value
665
+ config: Ee.value
657
666
  }, {
658
667
  item: k(({ legend: t }) => [
659
668
  i("div", {
660
669
  style: E(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
661
670
  }, [
662
671
  (o(), r("svg", {
663
- xmlns: n($e),
672
+ xmlns: n(Le),
664
673
  viewBox: "0 0 20 20",
665
674
  height: e.value.style.chart.legend.fontSize,
666
675
  width: e.value.style.chart.legend.fontSize
@@ -670,9 +679,9 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
670
679
  cy: 10,
671
680
  r: 9,
672
681
  fill: t.color
673
- }, null, 8, qt)
674
- ], 8, jt)),
675
- _e(" " + z(t.name), 1)
682
+ }, null, 8, Zt)
683
+ ], 8, Yt)),
684
+ xe(" " + z(t.name), 1)
676
685
  ], 4)
677
686
  ]),
678
687
  _: 1
@@ -689,11 +698,11 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
689
698
  }, [
690
699
  p(l.$slots, "source", {}, void 0, !0)
691
700
  ], 512)) : v("", !0),
692
- X.value ? (o(), A(n(Ne), {
701
+ X.value ? (o(), A(n(Te), {
693
702
  key: 8,
694
703
  hideDetails: "",
695
704
  config: {
696
- open: O.value.showTable,
705
+ open: P.value.showTable,
697
706
  maxHeight: 1e4,
698
707
  body: {
699
708
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -706,32 +715,32 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
706
715
  }
707
716
  }, {
708
717
  content: k(() => [
709
- (o(), A(n(Te), {
718
+ (o(), A(n(Oe), {
710
719
  key: `table_${te.value}`,
711
720
  colNames: D.value.colNames,
712
721
  head: D.value.head,
713
722
  body: D.value.body,
714
723
  config: D.value.config,
715
724
  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)
725
+ onClose: u[0] || (u[0] = (t) => P.value.showTable = !1)
717
726
  }, {
718
727
  th: k(({ th: t }) => [
719
728
  i("div", {
720
729
  innerHTML: t,
721
730
  style: { display: "flex", "align-items": "center" }
722
- }, null, 8, Yt)
731
+ }, null, 8, Jt)
723
732
  ]),
724
733
  td: k(({ td: t }) => [
725
- _e(z(t.name || t), 1)
734
+ xe(z(t.name || t), 1)
726
735
  ]),
727
736
  _: 1
728
737
  }, 8, ["colNames", "head", "body", "config", "title"]))
729
738
  ]),
730
739
  _: 1
731
740
  }, 8, ["config"])) : v("", !0)
732
- ], 46, it));
741
+ ], 46, dt));
733
742
  }
734
- }, ul = /* @__PURE__ */ ut(Zt, [["__scopeId", "data-v-0167dbe6"]]);
743
+ }, dl = /* @__PURE__ */ ct(Kt, [["__scopeId", "data-v-2f42699f"]]);
735
744
  export {
736
- ul as default
745
+ dl as default
737
746
  };