vue-data-ui 2.16.6 → 2.17.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 (94) hide show
  1. package/README.md +84 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +999 -160
  23. package/dist/types/vue-data-ui.d.ts +999 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
  26. package/dist/vue-data-ui-D7ZgRDQ_.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-ORUAjkg7.js} +246 -231
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
  81. package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
  82. package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
  85. package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
  86. package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
  93. package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
  94. package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
@@ -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 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-CobsZUkv.js";
3
+ import { t as lt, u as at } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Se } from "./useNestedProp-BwL5wmVa.js";
5
+ import { u as st } from "./usePrinter-DPh6U_Qk.js";
6
+ import { u as ot } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as rt } from "./useChartAccessibility-9icAAmYg.js";
8
+ import nt from "./Legend-3LNqqLDg.js";
9
+ import ut from "./Title-DpERl1yr.js";
10
+ import it from "./img-utitT2Gd.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-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-UewqY6OI.js")), Oe = O(() => import("./DataTable-Dt-TIOyY.js")), Pe = O(() => import("./PackageVersion-C-4Ee8BQ.js")), Ie = O(() => import("./PenAndPaper-Cde-wJ3N.js")), Me = O(() => import("./vue-ui-skeleton-8s4xts8z.js")), Ge = O(() => import("./UserOptions-DTEJ3UM_.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,82 +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
345
  printScale: e.value.userOptions.print.scale,
331
- onToggleFullscreen: Ee,
346
+ onToggleFullscreen: be,
332
347
  onGeneratePdf: n(ce),
333
348
  onGenerateCsv: fe,
334
349
  onGenerateImage: n(de),
335
- onToggleTable: be,
350
+ onToggleTable: ge,
336
351
  onToggleAnnotator: B,
337
- style: E({
352
+ style: V({
338
353
  visibility: n(se) ? n(W) ? "visible" : "hidden" : "visible"
339
354
  })
340
- }, Ue({ _: 2 }, [
355
+ }, Be({ _: 2 }, [
341
356
  l.$slots.menuIcon ? {
342
357
  name: "menuIcon",
343
- fn: k(({ isOpen: t, color: a }) => [
344
- 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)
345
360
  ]),
346
361
  key: "0"
347
362
  } : void 0,
348
363
  l.$slots.optionPdf ? {
349
364
  name: "optionPdf",
350
- fn: k(() => [
351
- p(l.$slots, "optionPdf", {}, void 0, !0)
365
+ fn: _(() => [
366
+ k(l.$slots, "optionPdf", {}, void 0, !0)
352
367
  ]),
353
368
  key: "1"
354
369
  } : void 0,
355
370
  l.$slots.optionCsv ? {
356
371
  name: "optionCsv",
357
- fn: k(() => [
358
- p(l.$slots, "optionCsv", {}, void 0, !0)
372
+ fn: _(() => [
373
+ k(l.$slots, "optionCsv", {}, void 0, !0)
359
374
  ]),
360
375
  key: "2"
361
376
  } : void 0,
362
377
  l.$slots.optionImg ? {
363
378
  name: "optionImg",
364
- fn: k(() => [
365
- p(l.$slots, "optionImg", {}, void 0, !0)
379
+ fn: _(() => [
380
+ k(l.$slots, "optionImg", {}, void 0, !0)
366
381
  ]),
367
382
  key: "3"
368
383
  } : void 0,
369
384
  l.$slots.optionTable ? {
370
385
  name: "optionTable",
371
- fn: k(() => [
372
- p(l.$slots, "optionTable", {}, void 0, !0)
386
+ fn: _(() => [
387
+ k(l.$slots, "optionTable", {}, void 0, !0)
373
388
  ]),
374
389
  key: "4"
375
390
  } : void 0,
376
391
  l.$slots.optionFullscreen ? {
377
392
  name: "optionFullscreen",
378
- fn: k(({ toggleFullscreen: t, isFullscreen: a }) => [
379
- 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)
380
395
  ]),
381
396
  key: "5"
382
397
  } : void 0,
383
398
  l.$slots.optionAnnotator ? {
384
399
  name: "optionAnnotator",
385
- fn: k(({ toggleAnnotator: t, isAnnotator: a }) => [
386
- 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)
387
402
  ]),
388
403
  key: "6"
389
404
  } : void 0
390
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),
391
- X.value ? (o(), r("svg", {
406
+ N.value ? (o(), r("svg", {
392
407
  key: 4,
393
408
  ref_key: "svgRef",
394
409
  ref: oe,
395
- xmlns: n($e),
396
- 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 }),
397
412
  viewBox: `0 0 ${s.value.absoluteWidth <= 0 ? 10 : s.value.absoluteWidth} ${s.value.absoluteHeight <= 0 ? 10 : s.value.absoluteHeight}`,
398
- 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}`)
399
414
  }, [
400
- Be(n(Oe)),
415
+ je(n(Pe)),
401
416
  l.$slots["chart-background"] ? (o(), r("foreignObject", {
402
417
  key: 0,
403
418
  x: s.value.left,
@@ -408,9 +423,9 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
408
423
  pointerEvents: "none"
409
424
  }
410
425
  }, [
411
- 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, [
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, [
414
429
  (o(!0), r($, null, L(c.value.ticks, (t, a) => (o(), r("line", {
415
430
  x1: s.value.left + a * s.value.width / (c.value.ticks.length - 1),
416
431
  x2: s.value.left + a * s.value.width / (c.value.ticks.length - 1),
@@ -419,10 +434,10 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
419
434
  stroke: e.value.style.chart.grid.verticalGrid.stroke,
420
435
  "stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
421
436
  "stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray
422
- }, null, 8, ht))), 256))
437
+ }, null, 8, ft))), 256))
423
438
  ])) : 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", {
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", {
426
441
  x1: s.value.left,
427
442
  x2: s.value.right,
428
443
  y1: s.value.top + a * h.value,
@@ -430,7 +445,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
430
445
  stroke: e.value.style.chart.grid.horizontalGrid.stroke,
431
446
  "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
432
447
  "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
433
- }, null, 8, ft))), 256)),
448
+ }, null, 8, gt))), 256)),
434
449
  i("line", {
435
450
  x1: s.value.left,
436
451
  x2: s.value.right,
@@ -439,30 +454,30 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
439
454
  stroke: e.value.style.chart.grid.horizontalGrid.stroke,
440
455
  "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
441
456
  "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
442
- }, null, 8, bt)
457
+ }, null, 8, pt)
443
458
  ])) : 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", {
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", {
446
461
  x: s.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
447
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,
448
463
  "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
449
464
  fill: e.value.style.chart.labels.yAxisLabels.color,
450
465
  "font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
451
466
  "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", {
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", {
454
469
  x: s.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
455
470
  y: s.value.top + a * h.value + h.value / 1.3 + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
456
471
  "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
457
472
  fill: e.value.style.chart.labels.yAxisLabels.color,
458
473
  "text-anchor": "end"
459
- }, z(n(S)({
474
+ }, S(n(X)({
460
475
  v: 100 * (t.end / t.start - 1),
461
476
  s: "%",
462
477
  r: e.value.style.chart.labels.yAxisLabels.rounding
463
- })), 9, mt))), 256)) : v("", !0)
478
+ })), 9, _t))), 256)) : v("", !0)
464
479
  ])) : v("", !0),
465
- e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g", kt, [
480
+ e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g", xt, [
466
481
  (o(!0), r($, null, L(c.value.ticks, (t, a) => (o(), r("text", {
467
482
  x: s.value.left + a * (s.value.width / (c.value.ticks.length - 1)),
468
483
  y: s.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize + e.value.style.chart.labels.xAxisLabels.offsetY,
@@ -470,17 +485,17 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
470
485
  fill: e.value.style.chart.labels.xAxisLabels.color,
471
486
  "font-weight": e.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
472
487
  "text-anchor": "middle"
473
- }, z(n(q)(
488
+ }, S(n(q)(
474
489
  e.value.style.chart.labels.formatter,
475
490
  t,
476
- n(S)({
491
+ n(X)({
477
492
  p: e.value.style.chart.labels.prefix,
478
493
  v: t,
479
494
  s: e.value.style.chart.labels.suffix,
480
495
  r: e.value.style.chart.labels.xAxisLabels.rounding
481
496
  }),
482
497
  { datapoint: t, seriesIndex: a }
483
- )), 9, _t))), 256))
498
+ )), 9, wt))), 256))
484
499
  ])) : v("", !0),
485
500
  i("defs", null, [
486
501
  i("radialGradient", {
@@ -489,34 +504,34 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
489
504
  }, [
490
505
  i("stop", {
491
506
  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),
507
+ "stop-color": n(Ae)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
508
+ }, null, 8, $t),
494
509
  i("stop", {
495
510
  offset: "90%",
496
- "stop-color": n(Ae)(e.value.style.chart.plots.startColor, 0.1)
497
- }, null, 8, Ct),
511
+ "stop-color": n(ze)(e.value.style.chart.plots.startColor, 0.1)
512
+ }, null, 8, Lt),
498
513
  i("stop", {
499
514
  offset: "100%",
500
515
  "stop-color": e.value.style.chart.plots.startColor
501
- }, null, 8, $t)
502
- ], 8, xt),
516
+ }, null, 8, At)
517
+ ], 8, Ct),
503
518
  i("radialGradient", {
504
519
  id: `end_grad_${y.value}`,
505
520
  fy: "30%"
506
521
  }, [
507
522
  i("stop", {
508
523
  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),
524
+ "stop-color": n(Ae)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
525
+ }, null, 8, St),
511
526
  i("stop", {
512
527
  offset: "90%",
513
- "stop-color": n(Ae)(e.value.style.chart.plots.endColor, 0.1)
514
- }, null, 8, zt),
528
+ "stop-color": n(ze)(e.value.style.chart.plots.endColor, 0.1)
529
+ }, null, 8, Xt),
515
530
  i("stop", {
516
531
  offset: "100%",
517
532
  "stop-color": e.value.style.chart.plots.endColor
518
- }, null, 8, St)
519
- ], 8, Lt)
533
+ }, null, 8, Nt)
534
+ ], 8, zt)
520
535
  ]),
521
536
  (o(!0), r($, null, L(f.value, (t, a) => (o(), r("g", null, [
522
537
  i("defs", null, [
@@ -530,12 +545,12 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
530
545
  i("stop", {
531
546
  offset: "0%",
532
547
  "stop-color": e.value.style.chart.plots.startColor
533
- }, null, 8, Nt),
548
+ }, null, 8, Ot),
534
549
  i("stop", {
535
550
  offset: "100%",
536
551
  "stop-color": e.value.style.chart.plots.endColor
537
- }, null, 8, Tt)
538
- ], 8, Xt),
552
+ }, null, 8, Pt)
553
+ ], 8, Tt),
539
554
  i("linearGradient", {
540
555
  id: `grad_negative_${y.value}`,
541
556
  x1: "0%",
@@ -546,14 +561,14 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
546
561
  i("stop", {
547
562
  offset: "0%",
548
563
  "stop-color": e.value.style.chart.plots.endColor
549
- }, null, 8, Pt),
564
+ }, null, 8, Mt),
550
565
  i("stop", {
551
566
  offset: "100%",
552
567
  "stop-color": e.value.style.chart.plots.startColor
553
- }, null, 8, Mt)
554
- ], 8, Ot)
568
+ }, null, 8, Gt)
569
+ ], 8, It)
555
570
  ]),
556
- 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, [
557
572
  i("path", {
558
573
  d: `M
559
574
  ${t.startX},${t.y + e.value.style.chart.plots.radius / 2}
@@ -565,15 +580,15 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
565
580
  Z
566
581
  `,
567
582
  fill: t.endX > t.startX ? `url(#grad_positive_${y.value})` : `url(#grad_negative_${y.value})`
568
- }, null, 8, Gt)
569
- ])) : (o(), r("g", Dt, [
583
+ }, null, 8, Ft)
584
+ ])) : (o(), r("g", Rt, [
570
585
  i("rect", {
571
586
  x: t.endX > t.startX ? t.startX : t.endX,
572
587
  y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
573
588
  height: e.value.style.chart.plots.link.strokeWidth,
574
589
  width: Math.abs(t.endX - t.startX),
575
590
  fill: t.endX > t.startX ? `url(#grad_positive_${y.value})` : `url(#grad_negative_${y.value})`
576
- }, null, 8, Ft)
591
+ }, null, 8, Vt)
577
592
  ])),
578
593
  i("circle", {
579
594
  cx: t.startX,
@@ -582,7 +597,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
582
597
  fill: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${y.value})` : e.value.style.chart.plots.startColor,
583
598
  stroke: e.value.style.chart.plots.stroke,
584
599
  "stroke-width": e.value.style.chart.plots.strokeWidth
585
- }, null, 8, Vt),
600
+ }, null, 8, Et),
586
601
  i("circle", {
587
602
  cx: t.endX,
588
603
  cy: t.y,
@@ -590,52 +605,52 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
590
605
  fill: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${y.value})` : e.value.style.chart.plots.endColor,
591
606
  stroke: e.value.style.chart.plots.stroke,
592
607
  "stroke-width": e.value.style.chart.plots.strokeWidth
593
- }, null, 8, Et)
608
+ }, null, 8, Ht)
594
609
  ]))), 256)),
595
- e.value.style.chart.labels.startLabels.show ? (o(), r("g", Rt, [
610
+ e.value.style.chart.labels.startLabels.show ? (o(), r("g", Wt, [
596
611
  (o(!0), r($, null, L(f.value, (t, a) => (o(), r("text", {
597
612
  x: t.startX,
598
613
  y: s.value.top + (a + 1) * h.value - e.value.style.chart.labels.startLabels.fontSize / 3 + e.value.style.chart.labels.startLabels.offsetY,
599
614
  fill: e.value.style.chart.labels.startLabels.useStartColor ? e.value.style.chart.plots.startColor : e.value.style.chart.labels.startLabels.color,
600
615
  "font-size": e.value.style.chart.labels.startLabels.fontSize,
601
616
  "text-anchor": "middle"
602
- }, z(n(q)(
617
+ }, S(n(q)(
603
618
  e.value.style.chart.labels.formatter,
604
619
  t.start,
605
- n(S)({
620
+ n(X)({
606
621
  p: e.value.style.chart.labels.prefix,
607
622
  v: t.start,
608
623
  s: e.value.style.chart.labels.suffix,
609
624
  r: e.value.style.chart.labels.startLabels.rounding
610
625
  }),
611
626
  { datapoint: t, seriesIndex: a }
612
- )), 9, Ht))), 256))
627
+ )), 9, Ut))), 256))
613
628
  ])) : v("", !0),
614
- e.value.style.chart.labels.endLabels.show ? (o(), r("g", Wt, [
629
+ e.value.style.chart.labels.endLabels.show ? (o(), r("g", Bt, [
615
630
  (o(!0), r($, null, L(f.value, (t, a) => (o(), r("text", {
616
631
  x: t.endX,
617
632
  y: s.value.top + a * h.value + e.value.style.chart.labels.endLabels.fontSize + e.value.style.chart.labels.endLabels.offsetY,
618
633
  fill: e.value.style.chart.labels.endLabels.useEndColor ? e.value.style.chart.plots.endColor : e.value.style.chart.labels.endLabels.color,
619
634
  "font-size": e.value.style.chart.labels.endLabels.fontSize,
620
635
  "text-anchor": "middle"
621
- }, z(n(q)(
636
+ }, S(n(q)(
622
637
  e.value.style.chart.labels.formatter,
623
638
  t.end,
624
- n(S)({
639
+ n(X)({
625
640
  p: e.value.style.chart.labels.prefix,
626
641
  v: t.end,
627
642
  s: e.value.style.chart.labels.suffix,
628
643
  r: e.value.style.chart.labels.endLabels.rounding
629
644
  }),
630
645
  { datapoint: t, seriesIndex: a }
631
- )), 9, Ut))), 256))
646
+ )), 9, jt))), 256))
632
647
  ])) : v("", !0),
633
- p(l.$slots, "svg", { svg: s.value }, void 0, !0)
634
- ], 14, ct)) : v("", !0),
635
- l.$slots.watermark ? (o(), r("div", Bt, [
636
- 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)
637
652
  ])) : v("", !0),
638
- X.value ? v("", !0) : (o(), A(n(Me), {
653
+ N.value ? v("", !0) : (o(), z(n(Me), {
639
654
  key: 6,
640
655
  config: {
641
656
  type: "dumbbell",
@@ -651,17 +666,17 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
651
666
  ref_key: "chartLegend",
652
667
  ref: J
653
668
  }, [
654
- e.value.style.chart.legend.show && X.value ? (o(), A(rt, {
669
+ e.value.style.chart.legend.show && N.value ? (o(), z(nt, {
655
670
  key: `legend_${le.value}`,
656
671
  legendSet: ye.value,
657
672
  config: Ve.value
658
673
  }, {
659
- item: k(({ legend: t }) => [
674
+ item: _(({ legend: t }) => [
660
675
  i("div", {
661
- 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`)
662
677
  }, [
663
678
  (o(), r("svg", {
664
- xmlns: n($e),
679
+ xmlns: n(Le),
665
680
  viewBox: "0 0 20 20",
666
681
  height: e.value.style.chart.legend.fontSize,
667
682
  width: e.value.style.chart.legend.fontSize
@@ -671,13 +686,13 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
671
686
  cy: 10,
672
687
  r: 9,
673
688
  fill: t.color
674
- }, null, 8, qt)
675
- ], 8, jt)),
676
- _e(" " + z(t.name), 1)
689
+ }, null, 8, Zt)
690
+ ], 8, Yt)),
691
+ xe(" " + S(t.name), 1)
677
692
  ], 4)
678
693
  ]),
679
694
  _: 1
680
- }, 8, ["legendSet", "config"])) : p(l.$slots, "legend", {
695
+ }, 8, ["legendSet", "config"])) : k(l.$slots, "legend", {
681
696
  key: 1,
682
697
  legend: ye.value
683
698
  }, void 0, !0)
@@ -688,13 +703,13 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
688
703
  ref: K,
689
704
  dir: "auto"
690
705
  }, [
691
- p(l.$slots, "source", {}, void 0, !0)
706
+ k(l.$slots, "source", {}, void 0, !0)
692
707
  ], 512)) : v("", !0),
693
- X.value ? (o(), A(n(Ne), {
708
+ N.value ? (o(), z(n(Te), {
694
709
  key: 8,
695
710
  hideDetails: "",
696
711
  config: {
697
- open: O.value.showTable,
712
+ open: P.value.showTable,
698
713
  maxHeight: 1e4,
699
714
  body: {
700
715
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -706,33 +721,33 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
706
721
  }
707
722
  }
708
723
  }, {
709
- content: k(() => [
710
- (o(), A(n(Te), {
724
+ content: _(() => [
725
+ (o(), z(n(Oe), {
711
726
  key: `table_${te.value}`,
712
727
  colNames: D.value.colNames,
713
728
  head: D.value.head,
714
729
  body: D.value.body,
715
730
  config: D.value.config,
716
731
  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)
732
+ onClose: u[0] || (u[0] = (t) => P.value.showTable = !1)
718
733
  }, {
719
- th: k(({ th: t }) => [
734
+ th: _(({ th: t }) => [
720
735
  i("div", {
721
736
  innerHTML: t,
722
737
  style: { display: "flex", "align-items": "center" }
723
- }, null, 8, Yt)
738
+ }, null, 8, Jt)
724
739
  ]),
725
- td: k(({ td: t }) => [
726
- _e(z(t.name || t), 1)
740
+ td: _(({ td: t }) => [
741
+ xe(S(t.name || t), 1)
727
742
  ]),
728
743
  _: 1
729
744
  }, 8, ["colNames", "head", "body", "config", "title"]))
730
745
  ]),
731
746
  _: 1
732
747
  }, 8, ["config"])) : v("", !0)
733
- ], 46, it));
748
+ ], 46, dt));
734
749
  }
735
- }, ul = /* @__PURE__ */ ut(Zt, [["__scopeId", "data-v-73291f9b"]]);
750
+ }, dl = /* @__PURE__ */ ct(Kt, [["__scopeId", "data-v-0d68d11a"]]);
736
751
  export {
737
- ul as default
752
+ dl as default
738
753
  };