vue-data-ui 2.16.6 → 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 +83 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1096 -160
  23. package/dist/types/vue-data-ui.d.ts +1096 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.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-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
  82. package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
  85. package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
  86. package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
@@ -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-DvIXJm6t.js";
3
- import { t as tt, u as lt } from "./useResponsive-DfdjqQps.js";
4
- import { u as ze } from "./useNestedProp-DrYHm61t.js";
5
- import { u as at } from "./usePrinter-CWnXbGMb.js";
6
- import { u as st } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as ot } from "./useChartAccessibility-9icAAmYg.js";
8
- import rt from "./Legend-nBXoxXJH.js";
9
- import nt from "./Title-Gi81VwUM.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-D55kCO5G.js")), Te = T(() => import("./DataTable-CHBLjKtZ.js")), Oe = T(() => import("./PackageVersion-Bg_9KCU-.js")), Pe = T(() => import("./PenAndPaper-BPTpbnay.js")), Me = T(() => import("./vue-ui-skeleton-BAOt2neL.js")), Ie = T(() => import("./UserOptions-CBEK6_jo.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,22 +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
338
  printScale: e.value.userOptions.print.scale,
331
- onToggleFullscreen: Ee,
339
+ onToggleFullscreen: be,
332
340
  onGeneratePdf: n(ce),
333
341
  onGenerateCsv: fe,
334
342
  onGenerateImage: n(de),
335
- onToggleTable: be,
343
+ onToggleTable: ge,
336
344
  onToggleAnnotator: B,
337
345
  style: E({
338
346
  visibility: n(se) ? n(W) ? "visible" : "hidden" : "visible"
339
347
  })
340
- }, Ue({ _: 2 }, [
348
+ }, Be({ _: 2 }, [
341
349
  l.$slots.menuIcon ? {
342
350
  name: "menuIcon",
343
351
  fn: k(({ isOpen: t, color: a }) => [
@@ -392,12 +400,12 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
392
400
  key: 4,
393
401
  ref_key: "svgRef",
394
402
  ref: oe,
395
- xmlns: n($e),
396
- 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 }),
397
405
  viewBox: `0 0 ${s.value.absoluteWidth <= 0 ? 10 : s.value.absoluteWidth} ${s.value.absoluteHeight <= 0 ? 10 : s.value.absoluteHeight}`,
398
406
  style: E(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
399
407
  }, [
400
- Be(n(Oe)),
408
+ je(n(Pe)),
401
409
  l.$slots["chart-background"] ? (o(), r("foreignObject", {
402
410
  key: 0,
403
411
  x: s.value.left,
@@ -409,8 +417,8 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
409
417
  }
410
418
  }, [
411
419
  p(l.$slots, "chart-background", {}, void 0, !0)
412
- ], 8, dt)) : v("", !0),
413
- 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, [
414
422
  (o(!0), r($, null, L(c.value.ticks, (t, a) => (o(), r("line", {
415
423
  x1: s.value.left + a * s.value.width / (c.value.ticks.length - 1),
416
424
  x2: s.value.left + a * s.value.width / (c.value.ticks.length - 1),
@@ -419,10 +427,10 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
419
427
  stroke: e.value.style.chart.grid.verticalGrid.stroke,
420
428
  "stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
421
429
  "stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray
422
- }, null, 8, ht))), 256))
430
+ }, null, 8, ft))), 256))
423
431
  ])) : v("", !0),
424
- e.value.style.chart.grid.horizontalGrid.show ? (o(), r("g", yt, [
425
- (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", {
426
434
  x1: s.value.left,
427
435
  x2: s.value.right,
428
436
  y1: s.value.top + a * h.value,
@@ -430,7 +438,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
430
438
  stroke: e.value.style.chart.grid.horizontalGrid.stroke,
431
439
  "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
432
440
  "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
433
- }, null, 8, ft))), 256)),
441
+ }, null, 8, gt))), 256)),
434
442
  i("line", {
435
443
  x1: s.value.left,
436
444
  x2: s.value.right,
@@ -439,18 +447,18 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
439
447
  stroke: e.value.style.chart.grid.horizontalGrid.stroke,
440
448
  "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
441
449
  "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
442
- }, null, 8, bt)
450
+ }, null, 8, pt)
443
451
  ])) : v("", !0),
444
- e.value.style.chart.labels.yAxisLabels.show ? (o(), r("g", gt, [
445
- (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", {
446
454
  x: s.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
447
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,
448
456
  "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
449
457
  fill: e.value.style.chart.labels.yAxisLabels.color,
450
458
  "font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
451
459
  "text-anchor": "end"
452
- }, z(t.name), 9, pt))), 256)),
453
- 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", {
454
462
  x: s.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
455
463
  y: s.value.top + a * h.value + h.value / 1.3 + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
456
464
  "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
@@ -460,9 +468,9 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
460
468
  v: 100 * (t.end / t.start - 1),
461
469
  s: "%",
462
470
  r: e.value.style.chart.labels.yAxisLabels.rounding
463
- })), 9, mt))), 256)) : v("", !0)
471
+ })), 9, _t))), 256)) : v("", !0)
464
472
  ])) : v("", !0),
465
- e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g", kt, [
473
+ e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g", xt, [
466
474
  (o(!0), r($, null, L(c.value.ticks, (t, a) => (o(), r("text", {
467
475
  x: s.value.left + a * (s.value.width / (c.value.ticks.length - 1)),
468
476
  y: s.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize + e.value.style.chart.labels.xAxisLabels.offsetY,
@@ -480,7 +488,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
480
488
  r: e.value.style.chart.labels.xAxisLabels.rounding
481
489
  }),
482
490
  { datapoint: t, seriesIndex: a }
483
- )), 9, _t))), 256))
491
+ )), 9, wt))), 256))
484
492
  ])) : v("", !0),
485
493
  i("defs", null, [
486
494
  i("radialGradient", {
@@ -489,34 +497,34 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
489
497
  }, [
490
498
  i("stop", {
491
499
  offset: "10%",
492
- "stop-color": n(Le)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
493
- }, 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),
494
502
  i("stop", {
495
503
  offset: "90%",
496
- "stop-color": n(Ae)(e.value.style.chart.plots.startColor, 0.1)
497
- }, null, 8, Ct),
504
+ "stop-color": n(ze)(e.value.style.chart.plots.startColor, 0.1)
505
+ }, null, 8, Lt),
498
506
  i("stop", {
499
507
  offset: "100%",
500
508
  "stop-color": e.value.style.chart.plots.startColor
501
- }, null, 8, $t)
502
- ], 8, xt),
509
+ }, null, 8, At)
510
+ ], 8, Ct),
503
511
  i("radialGradient", {
504
512
  id: `end_grad_${y.value}`,
505
513
  fy: "30%"
506
514
  }, [
507
515
  i("stop", {
508
516
  offset: "10%",
509
- "stop-color": n(Le)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
510
- }, 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),
511
519
  i("stop", {
512
520
  offset: "90%",
513
- "stop-color": n(Ae)(e.value.style.chart.plots.endColor, 0.1)
514
- }, null, 8, zt),
521
+ "stop-color": n(ze)(e.value.style.chart.plots.endColor, 0.1)
522
+ }, null, 8, Xt),
515
523
  i("stop", {
516
524
  offset: "100%",
517
525
  "stop-color": e.value.style.chart.plots.endColor
518
- }, null, 8, St)
519
- ], 8, Lt)
526
+ }, null, 8, Nt)
527
+ ], 8, zt)
520
528
  ]),
521
529
  (o(!0), r($, null, L(f.value, (t, a) => (o(), r("g", null, [
522
530
  i("defs", null, [
@@ -530,12 +538,12 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
530
538
  i("stop", {
531
539
  offset: "0%",
532
540
  "stop-color": e.value.style.chart.plots.startColor
533
- }, null, 8, Nt),
541
+ }, null, 8, Ot),
534
542
  i("stop", {
535
543
  offset: "100%",
536
544
  "stop-color": e.value.style.chart.plots.endColor
537
- }, null, 8, Tt)
538
- ], 8, Xt),
545
+ }, null, 8, Pt)
546
+ ], 8, Tt),
539
547
  i("linearGradient", {
540
548
  id: `grad_negative_${y.value}`,
541
549
  x1: "0%",
@@ -546,14 +554,14 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
546
554
  i("stop", {
547
555
  offset: "0%",
548
556
  "stop-color": e.value.style.chart.plots.endColor
549
- }, null, 8, Pt),
557
+ }, null, 8, Mt),
550
558
  i("stop", {
551
559
  offset: "100%",
552
560
  "stop-color": e.value.style.chart.plots.startColor
553
- }, null, 8, Mt)
554
- ], 8, Ot)
561
+ }, null, 8, Gt)
562
+ ], 8, It)
555
563
  ]),
556
- 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, [
557
565
  i("path", {
558
566
  d: `M
559
567
  ${t.startX},${t.y + e.value.style.chart.plots.radius / 2}
@@ -565,15 +573,15 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
565
573
  Z
566
574
  `,
567
575
  fill: t.endX > t.startX ? `url(#grad_positive_${y.value})` : `url(#grad_negative_${y.value})`
568
- }, null, 8, Gt)
569
- ])) : (o(), r("g", Dt, [
576
+ }, null, 8, Ft)
577
+ ])) : (o(), r("g", Vt, [
570
578
  i("rect", {
571
579
  x: t.endX > t.startX ? t.startX : t.endX,
572
580
  y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
573
581
  height: e.value.style.chart.plots.link.strokeWidth,
574
582
  width: Math.abs(t.endX - t.startX),
575
583
  fill: t.endX > t.startX ? `url(#grad_positive_${y.value})` : `url(#grad_negative_${y.value})`
576
- }, null, 8, Ft)
584
+ }, null, 8, Et)
577
585
  ])),
578
586
  i("circle", {
579
587
  cx: t.startX,
@@ -582,7 +590,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
582
590
  fill: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${y.value})` : e.value.style.chart.plots.startColor,
583
591
  stroke: e.value.style.chart.plots.stroke,
584
592
  "stroke-width": e.value.style.chart.plots.strokeWidth
585
- }, null, 8, Vt),
593
+ }, null, 8, Rt),
586
594
  i("circle", {
587
595
  cx: t.endX,
588
596
  cy: t.y,
@@ -590,9 +598,9 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
590
598
  fill: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${y.value})` : e.value.style.chart.plots.endColor,
591
599
  stroke: e.value.style.chart.plots.stroke,
592
600
  "stroke-width": e.value.style.chart.plots.strokeWidth
593
- }, null, 8, Et)
601
+ }, null, 8, Ht)
594
602
  ]))), 256)),
595
- e.value.style.chart.labels.startLabels.show ? (o(), r("g", Rt, [
603
+ e.value.style.chart.labels.startLabels.show ? (o(), r("g", Wt, [
596
604
  (o(!0), r($, null, L(f.value, (t, a) => (o(), r("text", {
597
605
  x: t.startX,
598
606
  y: s.value.top + (a + 1) * h.value - e.value.style.chart.labels.startLabels.fontSize / 3 + e.value.style.chart.labels.startLabels.offsetY,
@@ -609,9 +617,9 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
609
617
  r: e.value.style.chart.labels.startLabels.rounding
610
618
  }),
611
619
  { datapoint: t, seriesIndex: a }
612
- )), 9, Ht))), 256))
620
+ )), 9, Ut))), 256))
613
621
  ])) : v("", !0),
614
- e.value.style.chart.labels.endLabels.show ? (o(), r("g", Wt, [
622
+ e.value.style.chart.labels.endLabels.show ? (o(), r("g", Bt, [
615
623
  (o(!0), r($, null, L(f.value, (t, a) => (o(), r("text", {
616
624
  x: t.endX,
617
625
  y: s.value.top + a * h.value + e.value.style.chart.labels.endLabels.fontSize + e.value.style.chart.labels.endLabels.offsetY,
@@ -628,11 +636,11 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
628
636
  r: e.value.style.chart.labels.endLabels.rounding
629
637
  }),
630
638
  { datapoint: t, seriesIndex: a }
631
- )), 9, Ut))), 256))
639
+ )), 9, jt))), 256))
632
640
  ])) : v("", !0),
633
641
  p(l.$slots, "svg", { svg: s.value }, void 0, !0)
634
- ], 14, ct)) : v("", !0),
635
- l.$slots.watermark ? (o(), r("div", Bt, [
642
+ ], 14, vt)) : v("", !0),
643
+ l.$slots.watermark ? (o(), r("div", qt, [
636
644
  p(l.$slots, "watermark", R(H({ isPrinting: n(ue) || n(ie) })), void 0, !0)
637
645
  ])) : v("", !0),
638
646
  X.value ? v("", !0) : (o(), A(n(Me), {
@@ -651,17 +659,17 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
651
659
  ref_key: "chartLegend",
652
660
  ref: J
653
661
  }, [
654
- e.value.style.chart.legend.show && X.value ? (o(), A(rt, {
662
+ e.value.style.chart.legend.show && X.value ? (o(), A(nt, {
655
663
  key: `legend_${le.value}`,
656
664
  legendSet: ye.value,
657
- config: Ve.value
665
+ config: Ee.value
658
666
  }, {
659
667
  item: k(({ legend: t }) => [
660
668
  i("div", {
661
669
  style: E(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
662
670
  }, [
663
671
  (o(), r("svg", {
664
- xmlns: n($e),
672
+ xmlns: n(Le),
665
673
  viewBox: "0 0 20 20",
666
674
  height: e.value.style.chart.legend.fontSize,
667
675
  width: e.value.style.chart.legend.fontSize
@@ -671,9 +679,9 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
671
679
  cy: 10,
672
680
  r: 9,
673
681
  fill: t.color
674
- }, null, 8, qt)
675
- ], 8, jt)),
676
- _e(" " + z(t.name), 1)
682
+ }, null, 8, Zt)
683
+ ], 8, Yt)),
684
+ xe(" " + z(t.name), 1)
677
685
  ], 4)
678
686
  ]),
679
687
  _: 1
@@ -690,11 +698,11 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
690
698
  }, [
691
699
  p(l.$slots, "source", {}, void 0, !0)
692
700
  ], 512)) : v("", !0),
693
- X.value ? (o(), A(n(Ne), {
701
+ X.value ? (o(), A(n(Te), {
694
702
  key: 8,
695
703
  hideDetails: "",
696
704
  config: {
697
- open: O.value.showTable,
705
+ open: P.value.showTable,
698
706
  maxHeight: 1e4,
699
707
  body: {
700
708
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -707,32 +715,32 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
707
715
  }
708
716
  }, {
709
717
  content: k(() => [
710
- (o(), A(n(Te), {
718
+ (o(), A(n(Oe), {
711
719
  key: `table_${te.value}`,
712
720
  colNames: D.value.colNames,
713
721
  head: D.value.head,
714
722
  body: D.value.body,
715
723
  config: D.value.config,
716
724
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
717
- onClose: u[0] || (u[0] = (t) => O.value.showTable = !1)
725
+ onClose: u[0] || (u[0] = (t) => P.value.showTable = !1)
718
726
  }, {
719
727
  th: k(({ th: t }) => [
720
728
  i("div", {
721
729
  innerHTML: t,
722
730
  style: { display: "flex", "align-items": "center" }
723
- }, null, 8, Yt)
731
+ }, null, 8, Jt)
724
732
  ]),
725
733
  td: k(({ td: t }) => [
726
- _e(z(t.name || t), 1)
734
+ xe(z(t.name || t), 1)
727
735
  ]),
728
736
  _: 1
729
737
  }, 8, ["colNames", "head", "body", "config", "title"]))
730
738
  ]),
731
739
  _: 1
732
740
  }, 8, ["config"])) : v("", !0)
733
- ], 46, it));
741
+ ], 46, dt));
734
742
  }
735
- }, ul = /* @__PURE__ */ ut(Zt, [["__scopeId", "data-v-73291f9b"]]);
743
+ }, dl = /* @__PURE__ */ ct(Kt, [["__scopeId", "data-v-2f42699f"]]);
736
744
  export {
737
- ul as default
745
+ dl as default
738
746
  };