vue-data-ui 3.0.2 → 3.0.4

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 (91) hide show
  1. package/dist/{Arrow-uNlT54JX.js → Arrow-YUJc3FQi.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DdXLTRiK.js} +2 -2
  3. package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-CCivwZUq.js} +1 -1
  4. package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-CWed-s-E.js} +2 -2
  5. package/dist/{DataTable-osx68WLA.js → DataTable-rj9-mAwF.js} +2 -2
  6. package/dist/{Legend-CQsASoei.js → Legend-DcDSkq99.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-W2N17kLY.js} +3 -3
  8. package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-5ZjKSIei.js} +1 -1
  9. package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-BJ0hcgsa.js} +3 -3
  10. package/dist/{Shape-0sW2StrO.js → Shape-DHIaJs9G.js} +1 -1
  11. package/dist/{Slicer-52shR-Vu.js → Slicer-BarTZZDU.js} +2 -2
  12. package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-Diyt3BTN.js} +1 -1
  13. package/dist/{Title-CntvKJss.js → Title-B55R8CAZ.js} +1 -1
  14. package/dist/{Tooltip-DF8e4iB9.js → Tooltip-BMOddG-M.js} +1 -1
  15. package/dist/{UserOptions-DQyIO0ts.js → UserOptions-DVzyjG-W.js} +2 -2
  16. package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-BNHsLwF7.js} +1 -1
  17. package/dist/{img-Cv4nScI0.js → img-Ctts6JQb.js} +1 -1
  18. package/dist/{index-B9Ct1B_p.js → index-q-LPw2IT.js} +908 -871
  19. package/dist/{pdf-D0GEfQrI.js → pdf-BfwnBQtY.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +23 -0
  22. package/dist/types/vue-data-ui.d.ts +23 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-bEAG5sD1.js} +1 -1
  24. package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-04aFeUYu.js} +1 -1
  25. package/dist/{usePrinter-DcZXg1hH.js → usePrinter-DX7efa1s.js} +2 -2
  26. package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-DJTYiV9o.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-DGu87lcK.js} +6 -6
  29. package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-D46i_gkB.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-DeS1T-Bw.js} +6 -6
  31. package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-CrqM9fa9.js} +2 -2
  32. package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-0TypghaZ.js} +199 -186
  33. package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-n8koDNMv.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BeUapat0.js} +4 -4
  35. package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-HbK7CLPq.js} +5 -5
  36. package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-DdNd8wIQ.js} +377 -366
  37. package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-HrpJA3B3.js} +6 -6
  38. package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-Dl_Gep_y.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-B0clnW3D.js} +62 -62
  40. package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BapPpCcj.js} +2 -2
  41. package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-CdLAu_O5.js} +345 -334
  42. package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-DHYtqqYZ.js} +388 -377
  43. package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-SgiIfwyE.js} +354 -343
  44. package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-D7dra0Tp.js} +299 -288
  45. package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-CfhMmeX5.js} +6 -6
  46. package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BnPiyPdD.js} +252 -241
  47. package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-B6BeYUW3.js} +7 -7
  48. package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-DoTyGRKN.js} +3 -3
  49. package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-Di-qNaDB.js} +7 -7
  50. package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-D_ax0e1n.js} +283 -270
  51. package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-nZXBg4tm.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-NoQltPUC.js} +2 -2
  53. package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-kZceITfL.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-DtoNCs1x.js} +264 -253
  55. package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-BXZ2WcBF.js} +377 -366
  56. package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-DNP-X1Kr.js} +265 -254
  57. package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-BaMmD1DR.js} +276 -265
  58. package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-qQkLdaFk.js} +356 -345
  59. package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CR-rtVnh.js} +639 -628
  60. package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BMAqVZty.js} +254 -243
  61. package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-NQHqua4r.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-uYPKJzRP.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-Wesfuq0m.js} +8 -8
  64. package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-C8ofrNp2.js} +250 -239
  65. package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-l4Q3KmVI.js} +383 -372
  66. package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-DS0KyQM7.js} +3 -3
  67. package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-Dvz9CJOH.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CZEFnuFC.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-BNoRSCo7.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Dlq3vjoo.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-CfcpDn_W.js} +4 -4
  72. package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-ClRCVth4.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-XpDLFtos.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-B_2xrLjj.js} +443 -432
  75. package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot-DoRnEXsU.js} +7 -7
  76. package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-Cr8fNe8Z.js} +4 -9
  77. package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-ClCYuGAL.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-BUzu6v2P.js} +4 -4
  79. package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-BsJ_z0Nw.js} +7 -7
  80. package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-0x5nZPEp.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-qT3POAeD.js} +6 -6
  82. package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-B4ezfcLU.js} +356 -345
  83. package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-Bwpe58hH.js} +9 -9
  84. package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-CSKAC_dQ.js} +306 -295
  85. package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-CVg1L12p.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-DY88UMDD.js} +6 -6
  87. package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-UaCxKRrk.js} +343 -329
  88. package/dist/vue-ui-xy-Bsh6AmS0.js +3846 -0
  89. package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-D7VaVkKk.js} +305 -294
  90. package/package.json +1 -1
  91. package/dist/vue-ui-xy-BoT_c9bU.js +0 -3808
@@ -1,20 +1,20 @@
1
- import { defineAsyncComponent as U, computed as g, ref as h, toRefs as $t, watch as ge, shallowRef as je, onMounted as Ye, onBeforeUnmount as Ze, watchEffect as Lt, createElementBlock as c, openBlock as n, unref as i, normalizeStyle as ee, normalizeClass as Je, createBlock as F, createCommentVNode as f, createElementVNode as v, createSlots as At, withCtx as x, renderSlot as p, normalizeProps as te, guardReactiveProps as le, createVNode as Nt, withDirectives as W, Fragment as C, renderList as A, toDisplayString as _, vShow as q, createTextVNode as Ke, nextTick as St } from "vue";
2
- import { u as Mt, c as Qe, t as Xt, b as zt, o as Tt, f as et, g as It, h as tt, D as Ot, i as w, k as H, X as lt, s as at, l as j, j as Y, v as Ft, w as Ht } from "./index-B9Ct1B_p.js";
3
- import { t as me, u as Pt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Dt } from "./usePrinter-DcZXg1hH.js";
5
- import { u as Gt, B as Et } from "./useLoading-D7YHNtLX.js";
6
- import { u as st } from "./useNestedProp-C0gKxLur.js";
7
- import { u as Rt } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as Bt } from "./useChartAccessibility-9icAAmYg.js";
9
- import { u as Vt } from "./useTimeLabelCollider-CIsgDrl9.js";
10
- import Ut from "./img-Cv4nScI0.js";
11
- import Wt from "./Title-CntvKJss.js";
12
- import qt from "./Legend-CQsASoei.js";
13
- import { _ as jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"], Kt = { key: 1 }, Qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], el = { key: 2 }, tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], al = ["transform", "font-size", "fill"], sl = ["x", "y", "font-size", "fill", "font-weight", "onMouseenter", "onMouseleave", "onClick"], ol = ["x", "y", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], nl = ["x", "y", "font-size", "fill"], rl = ["transform", "font-size", "fill", "font-weight", "text-anchor"], ul = ["d", "stroke", "stroke-width", "stroke-dasharray"], il = ["d", "stroke", "stroke-width", "stroke-dasharray"], cl = ["x", "y", "height", "width", "fill"], vl = ["transform", "fill", "font-size"], dl = ["id"], hl = ["stop-color"], yl = ["stop-color"], fl = ["stop-color"], bl = ["id"], gl = ["stop-color"], ml = ["stop-color"], pl = ["stop-color"], xl = ["id"], _l = ["stop-color"], kl = ["stop-color"], Cl = ["stop-color"], wl = ["id"], $l = ["stop-color"], Ll = ["stop-color"], Al = ["stop-color"], Nl = ["id"], Sl = ["stop-color"], Ml = ["stop-color"], Xl = ["stop-color"], zl = ["id"], Tl = ["stop-color"], Il = ["stop-color"], Ol = ["id"], Fl = ["stop-color"], Hl = ["stop-color"], Pl = { key: 0 }, Dl = { key: 0 }, Gl = ["d", "fill"], El = { key: 1 }, Rl = ["x", "y", "height", "width", "fill"], Bl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Vl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ul = { key: 7 }, Wl = ["x", "y", "fill", "font-size"], ql = { key: 8 }, jl = ["x", "y", "fill", "font-size"], Yl = ["x", "y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], Zl = {
1
+ import { defineAsyncComponent as U, computed as g, ref as h, toRefs as Lt, watch as ge, shallowRef as Ye, onMounted as Ze, onBeforeUnmount as Je, watchEffect as At, createElementBlock as v, openBlock as n, unref as i, normalizeStyle as ee, normalizeClass as Ke, createBlock as T, createCommentVNode as b, createElementVNode as c, createSlots as Nt, withCtx as x, renderSlot as p, normalizeProps as te, guardReactiveProps as le, createVNode as St, withDirectives as W, Fragment as C, renderList as A, toDisplayString as _, vShow as q, Teleport as Mt, createTextVNode as Qe, nextTick as Xt } from "vue";
2
+ import { u as zt, c as et, t as Tt, b as It, o as Ot, f as tt, g as Ft, h as lt, D as Ht, i as w, k as H, X as at, s as st, l as j, j as Y, v as Pt, w as Dt } from "./index-q-LPw2IT.js";
3
+ import { t as me, u as Gt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Et } from "./usePrinter-DX7efa1s.js";
5
+ import { u as Rt, B as Bt } from "./useLoading-D7YHNtLX.js";
6
+ import { u as ot } from "./useNestedProp-04aFeUYu.js";
7
+ import { u as Vt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
9
+ import { u as Wt } from "./useTimeLabelCollider-CIsgDrl9.js";
10
+ import qt from "./img-Ctts6JQb.js";
11
+ import jt from "./Title-B55R8CAZ.js";
12
+ import Yt from "./Legend-DcDSkq99.js";
13
+ import { _ as Zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"], tl = { key: 1 }, ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], al = { key: 2 }, sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], nl = ["transform", "font-size", "fill"], rl = ["x", "y", "font-size", "fill", "font-weight", "onMouseenter", "onMouseleave", "onClick"], ul = ["x", "y", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], il = ["x", "y", "font-size", "fill"], cl = ["transform", "font-size", "fill", "font-weight", "text-anchor"], vl = ["d", "stroke", "stroke-width", "stroke-dasharray"], dl = ["d", "stroke", "stroke-width", "stroke-dasharray"], hl = ["x", "y", "height", "width", "fill"], yl = ["transform", "fill", "font-size"], fl = ["id"], bl = ["stop-color"], gl = ["stop-color"], ml = ["stop-color"], pl = ["id"], xl = ["stop-color"], _l = ["stop-color"], kl = ["stop-color"], Cl = ["id"], wl = ["stop-color"], $l = ["stop-color"], Ll = ["stop-color"], Al = ["id"], Nl = ["stop-color"], Sl = ["stop-color"], Ml = ["stop-color"], Xl = ["id"], zl = ["stop-color"], Tl = ["stop-color"], Il = ["stop-color"], Ol = ["id"], Fl = ["stop-color"], Hl = ["stop-color"], Pl = ["id"], Dl = ["stop-color"], Gl = ["stop-color"], El = { key: 0 }, Rl = { key: 0 }, Bl = ["d", "fill"], Vl = { key: 1 }, Ul = ["x", "y", "height", "width", "fill"], Wl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ql = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], jl = { key: 7 }, Yl = ["x", "y", "fill", "font-size"], Zl = { key: 8 }, Jl = ["x", "y", "fill", "font-size"], Kl = ["x", "y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], Ql = {
15
15
  key: 4,
16
16
  class: "vue-data-ui-watermark"
17
- }, Jl = ["xmlns", "height", "width"], Kl = ["fill"], Ql = ["innerHTML"], ea = {
17
+ }, ea = ["id"], ta = ["xmlns", "height", "width"], la = ["fill"], aa = ["innerHTML"], sa = {
18
18
  __name: "vue-ui-dumbbell",
19
19
  props: {
20
20
  config: {
@@ -31,16 +31,16 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
31
31
  }
32
32
  },
33
33
  emits: ["selectDatapoint"],
34
- setup(ot, { expose: nt, emit: ta }) {
35
- const rt = U(() => import("./vue-ui-accordion-B31QK9Hj.js")), ut = U(() => import("./DataTable-osx68WLA.js")), it = U(() => import("./PenAndPaper-CdXspg5R.js")), ct = U(() => import("./UserOptions-DQyIO0ts.js")), vt = U(() => import("./PackageVersion-DZGrOKw5.js")), { vue_ui_dumbbell: dt } = Mt(), N = ot, Z = g({
34
+ setup(nt, { expose: rt, emit: oa }) {
35
+ const ut = U(() => import("./vue-ui-accordion-D46i_gkB.js")), it = U(() => import("./DataTable-rj9-mAwF.js")), ct = U(() => import("./PenAndPaper-BJ0hcgsa.js")), vt = U(() => import("./UserOptions-DVzyjG-W.js")), dt = U(() => import("./PackageVersion-5ZjKSIei.js")), { vue_ui_dumbbell: ht } = zt(), N = nt, Z = g({
36
36
  get() {
37
37
  return !!N.dataset && N.dataset.length;
38
38
  },
39
39
  set(l) {
40
40
  return l;
41
41
  }
42
- }), b = h(Qe()), pe = h(0), T = h(null), xe = h(null), _e = h(null), ke = h(null), Ce = h(null), we = h(0), $e = h(0), Le = h(0), ae = h(null), se = h(null), J = h(null), oe = h(null), I = h(null), r = h(null), O = h(!1), e = h(ie()), { loading: ne, FINAL_DATASET: re, manualLoading: ht } = Gt({
43
- ...$t(N),
42
+ }), y = h(et()), pe = h(0), I = h(null), xe = h(null), _e = h(null), ke = h(null), Ce = h(null), we = h(0), $e = h(0), Le = h(0), Ae = h(!1), ae = h(null), se = h(null), J = h(null), oe = h(null), O = h(null), r = h(null), F = h(!1), e = h(ie()), { loading: ne, FINAL_DATASET: re, manualLoading: yt } = Rt({
43
+ ...Lt(N),
44
44
  FINAL_CONFIG: e,
45
45
  prepareConfig: ie,
46
46
  skeletonDataset: [
@@ -50,7 +50,7 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
50
50
  { name: "_", start: 5, end: 8 },
51
51
  { name: "_", start: 3, end: 5 }
52
52
  ],
53
- skeletonConfig: Xt({
53
+ skeletonConfig: Tt({
54
54
  defaultConfig: e.value,
55
55
  userConfig: {
56
56
  userOptions: { show: !1 },
@@ -92,72 +92,72 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
92
92
  }
93
93
  }
94
94
  })
95
- }), { userOptionsVisible: ue, setUserOptionsVisibility: Ae, keepUserOptionState: Ne } = Rt({ config: e.value }), { svgRef: Se } = Bt({ config: e.value.style.chart.title });
95
+ }), { userOptionsVisible: ue, setUserOptionsVisibility: Ne, keepUserOptionState: Se } = Vt({ config: e.value }), { svgRef: Me } = Ut({ config: e.value.style.chart.title });
96
96
  function ie() {
97
- const l = st({
97
+ const l = ot({
98
98
  userConfig: N.config,
99
- defaultConfig: dt
99
+ defaultConfig: ht
100
100
  });
101
101
  return l.theme ? {
102
- ...st({
103
- userConfig: zt.vue_ui_dumbbell[l.theme] || N.config,
102
+ ...ot({
103
+ userConfig: It.vue_ui_dumbbell[l.theme] || N.config,
104
104
  defaultConfig: l
105
105
  })
106
106
  } : l;
107
107
  }
108
108
  ge(() => N.config, (l) => {
109
- ne.value || (e.value = ie()), ue.value = !e.value.userOptions.showOnChartHover, Xe(), we.value += 1, $e.value += 1, Le.value += 1, E.value = e.value.style.chart.rowHeight, R.value = e.value.style.chart.width, D.value.showTable = e.value.table.show;
109
+ ne.value || (e.value = ie()), ue.value = !e.value.userOptions.showOnChartHover, ze(), we.value += 1, $e.value += 1, Le.value += 1, E.value = e.value.style.chart.rowHeight, R.value = e.value.style.chart.width, D.value.showTable = e.value.table.show;
110
110
  }, { deep: !0 }), ge(() => re.value, (l) => {
111
- Array.isArray(l) && l.length > 0 && (ht.value = !1), De(), Ge();
111
+ Array.isArray(l) && l.length > 0 && (yt.value = !1), Ge(), Ee();
112
112
  }, { deep: !0 });
113
- const S = je(null), P = je(null);
114
- Ye(() => {
115
- Xe();
113
+ const S = Ye(null), P = Ye(null);
114
+ Ze(() => {
115
+ Ae.value = !0, ze();
116
116
  });
117
- const Me = g(() => !!e.value.debug);
118
- function Xe() {
119
- if (Tt(N.dataset) ? et({
117
+ const Xe = g(() => !!e.value.debug);
118
+ function ze() {
119
+ if (Ot(N.dataset) ? tt({
120
120
  componentName: "VueUiDumbbell",
121
121
  type: "dataset",
122
- debug: Me.value
122
+ debug: Xe.value
123
123
  }) : N.dataset.forEach((l, s) => {
124
- It({
124
+ Ft({
125
125
  datasetObject: l,
126
126
  requiredAttributes: ["name", "start", "end"]
127
127
  }).forEach((t) => {
128
- Z.value = !1, et({
128
+ Z.value = !1, tt({
129
129
  componentName: "VueUiDumbbell",
130
130
  type: "datasetSerieAttribute",
131
131
  property: t,
132
132
  index: s,
133
- debug: Me.value
133
+ debug: Xe.value
134
134
  });
135
135
  });
136
136
  }), e.value.responsive) {
137
137
  const l = me(() => {
138
- const { width: s, height: t } = Pt({
139
- chart: T.value,
138
+ const { width: s, height: t } = Gt({
139
+ chart: I.value,
140
140
  title: e.value.style.chart.title.text ? xe.value : null,
141
141
  legend: e.value.style.chart.legend.show ? _e.value : null,
142
142
  source: ke.value,
143
143
  noTitle: Ce.value
144
144
  }), a = e.value.style.chart.title.text ? 24 : 0, u = e.value.style.chart.legend.show ? 24 : 0;
145
145
  requestAnimationFrame(async () => {
146
- R.value = Math.max(0.1, s), E.value = Math.max(0.1, (Math.max(0.1, t) - (a + u)) / re.value.length), We();
146
+ R.value = Math.max(0.1, s), E.value = Math.max(0.1, (Math.max(0.1, t) - (a + u)) / re.value.length), qe();
147
147
  });
148
148
  });
149
- S.value && (P.value && S.value.unobserve(P.value), S.value.disconnect()), S.value = new ResizeObserver(l), P.value = T.value.parentNode, S.value.observe(P.value);
149
+ S.value && (P.value && S.value.unobserve(P.value), S.value.disconnect()), S.value = new ResizeObserver(l), P.value = I.value.parentNode, S.value.observe(P.value);
150
150
  }
151
- We();
151
+ qe();
152
152
  }
153
- Ze(() => {
153
+ Je(() => {
154
154
  L.value != null && (cancelAnimationFrame(L.value), L.value = null), S.value && (P.value && S.value.unobserve(P.value), S.value.disconnect());
155
155
  });
156
- const { isPrinting: ze, isImaging: Te, generatePdf: Ie, generateImage: Oe } = Dt({
157
- elementId: `dumbbell_${b.value}`,
156
+ const { isPrinting: Te, isImaging: Ie, generatePdf: Oe, generateImage: Fe } = Et({
157
+ elementId: `dumbbell_${y.value}`,
158
158
  fileName: e.value.style.chart.title.text || "vue-ui-dumbbell",
159
159
  options: e.value.userOptions.print
160
- }), yt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), D = h({
160
+ }), ft = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), D = h({
161
161
  showTable: e.value.table.show
162
162
  });
163
163
  ge(e, () => {
@@ -167,14 +167,14 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
167
167
  }, { immediate: !0 });
168
168
  const G = g(() => re.value.map((l, s) => ({
169
169
  ...l,
170
- start: tt(l.start),
171
- end: tt(l.end),
172
- id: l.id ?? `${String(l.name)}__${String(l.start)}__${String(l.end)}__${Qe()}`
173
- }))), Fe = g(() => {
174
- const l = e.value.style.chart.grid, s = G.value.flatMap((y) => [y.start, y.end]).map((y) => Number(y)).filter((y) => Number.isFinite(y)), t = s.length ? Math.min(...s) : 0, a = s.length ? Math.max(...s) : 0, u = l.scaleMin ?? Math.min(t, 0), d = l.scaleMax ?? a;
170
+ start: lt(l.start),
171
+ end: lt(l.end),
172
+ id: l.id ?? `${String(l.name)}__${String(l.start)}__${String(l.end)}__${et()}`
173
+ }))), He = g(() => {
174
+ const l = e.value.style.chart.grid, s = G.value.flatMap((f) => [f.start, f.end]).map((f) => Number(f)).filter((f) => Number.isFinite(f)), t = s.length ? Math.min(...s) : 0, a = s.length ? Math.max(...s) : 0, u = l.scaleMin ?? Math.min(t, 0), d = l.scaleMax ?? a;
175
175
  return { min: u, max: d };
176
- }), $ = g(() => Ot(Fe.value.min, Fe.value.max, e.value.style.chart.grid.scaleSteps)), E = h(e.value.style.chart.rowHeight), R = h(e.value.style.chart.width);
177
- function ft() {
176
+ }), $ = g(() => Ht(He.value.min, He.value.max, e.value.style.chart.grid.scaleSteps)), E = h(e.value.style.chart.rowHeight), R = h(e.value.style.chart.width);
177
+ function bt() {
178
178
  let l = 0;
179
179
  se.value && (l = Array.from(se.value.querySelectorAll("text")).reduce((a, u) => {
180
180
  const d = u.getComputedTextLength();
@@ -183,42 +183,42 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
183
183
  const s = ae.value ? ae.value.getBoundingClientRect().width : 0;
184
184
  return l + s + (s ? 24 + e.value.style.chart.labels.axis.yLabelOffsetX : 0);
185
185
  }
186
- const ce = h(0), bt = me((l) => {
186
+ const ce = h(0), gt = me((l) => {
187
187
  ce.value = l;
188
188
  }, 100);
189
- Lt((l) => {
189
+ At((l) => {
190
190
  const s = J.value;
191
191
  if (!s) return;
192
192
  const t = new ResizeObserver((a) => {
193
- bt(a[0].contentRect.height);
193
+ gt(a[0].contentRect.height);
194
194
  });
195
195
  t.observe(s), l(() => t.disconnect());
196
- }), Ze(() => {
196
+ }), Je(() => {
197
197
  ce.value = 0;
198
198
  });
199
- const He = g(() => {
200
- O.value;
199
+ const Pe = g(() => {
200
+ F.value;
201
201
  let l = 0;
202
202
  oe.value && (l = oe.value.getBBox().height);
203
203
  let s = 0;
204
204
  return J.value && (s = ce.value), l + s;
205
205
  }), ve = g(() => G.value.length);
206
- function Pe(l, s, t) {
207
- const a = Number(l), u = Number(s.min), d = Number(s.max), y = Number(t.width);
208
- if (!Number.isFinite(a) || !Number.isFinite(u) || !Number.isFinite(d) || !Number.isFinite(y))
206
+ function De(l, s, t) {
207
+ const a = Number(l), u = Number(s.min), d = Number(s.max), f = Number(t.width);
208
+ if (!Number.isFinite(a) || !Number.isFinite(u) || !Number.isFinite(d) || !Number.isFinite(f))
209
209
  return t.left;
210
210
  const m = d - u;
211
- return m <= 0 ? t.left : t.left + (a - u) / m * y;
211
+ return m <= 0 ? t.left : t.left + (a - u) / m * f;
212
212
  }
213
213
  const o = g(() => {
214
- O.value;
215
- const l = ft(), s = e.value.style.chart.padding, t = e.value.style.chart.labels.axis.xLabel ? e.value.style.chart.labels.axis.xLabelOffsetY : 0, a = E.value * ve.value - He.value - s.top - s.bottom - t, u = a / ve.value, d = E.value * ve.value, y = R.value - l - s.left - s.right, m = $.value.ticks.length * (y / $.value.ticks.length);
214
+ F.value;
215
+ const l = bt(), s = e.value.style.chart.padding, t = e.value.style.chart.labels.axis.xLabel ? e.value.style.chart.labels.axis.xLabelOffsetY : 0, a = E.value * ve.value - Pe.value - s.top - s.bottom - t, u = a / ve.value, d = E.value * ve.value, f = R.value - l - s.left - s.right, m = $.value.ticks.length * (f / $.value.ticks.length);
216
216
  return {
217
217
  left: e.value.style.chart.padding.left + l,
218
218
  right: R.value - e.value.style.chart.padding.right,
219
219
  top: e.value.style.chart.padding.top,
220
- bottom: d - e.value.style.chart.padding.bottom - He.value - t,
221
- width: y,
220
+ bottom: d - e.value.style.chart.padding.bottom - Pe.value - t,
221
+ width: f,
222
222
  height: a,
223
223
  rowHeight: u,
224
224
  absoluteHeight: d,
@@ -228,17 +228,17 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
228
228
  get() {
229
229
  const l = o.value, s = $.value;
230
230
  return B.value.map((t, a) => {
231
- const u = Pe(t.start, s, l), d = Pe(t.endVal, s, l), y = u + (d - u) / 2, m = ![null, void 0].includes(t.start) && ![null, void 0].includes(t.end) && t.end > t.start, z = ![null, void 0].includes(t.start) && ![null, void 0].includes(t.end) && t.end < t.start, qe = ![null, void 0].includes(t.start) && ![null, void 0].includes(t.end) && t.end === t.start || [null, void 0].includes(t.start) || [null, void 0].includes(t.end), wt = m ? e.value.style.chart.plots.evaluationColors.positive : z ? e.value.style.chart.plots.evaluationColors.negative : e.value.style.chart.plots.evaluationColors.neutral;
231
+ const u = De(t.start, s, l), d = De(t.endVal, s, l), f = u + (d - u) / 2, m = ![null, void 0].includes(t.start) && ![null, void 0].includes(t.end) && t.end > t.start, z = ![null, void 0].includes(t.start) && ![null, void 0].includes(t.end) && t.end < t.start, je = ![null, void 0].includes(t.start) && ![null, void 0].includes(t.end) && t.end === t.start || [null, void 0].includes(t.start) || [null, void 0].includes(t.end), $t = m ? e.value.style.chart.plots.evaluationColors.positive : z ? e.value.style.chart.plots.evaluationColors.negative : e.value.style.chart.plots.evaluationColors.neutral;
232
232
  return {
233
233
  ...t,
234
234
  isPositive: m,
235
235
  isNegative: z,
236
- isNeutral: qe,
237
- evaluationColor: wt,
238
- evaluationGrad: `url(#${m ? "positive" : z ? "negative" : "neutral"}_grad_${b.value})`,
236
+ isNeutral: je,
237
+ evaluationColor: $t,
238
+ evaluationGrad: `url(#${m ? "positive" : z ? "negative" : "neutral"}_grad_${y.value})`,
239
239
  startX: u,
240
240
  endX: d,
241
- centerX: y,
241
+ centerX: f,
242
242
  y: l.top + a * l.rowHeight + l.rowHeight / 2
243
243
  };
244
244
  });
@@ -247,7 +247,7 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
247
247
  B.value = l;
248
248
  }
249
249
  });
250
- function De() {
250
+ function Ge() {
251
251
  B.value = G.value.map((l) => {
252
252
  const s = Number(l.start);
253
253
  return {
@@ -257,11 +257,11 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
257
257
  });
258
258
  }
259
259
  const L = h(null);
260
- Ye(() => {
261
- Ge();
260
+ Ze(() => {
261
+ Ee();
262
262
  });
263
- function Ge() {
264
- if (L.value != null && (cancelAnimationFrame(L.value), L.value = null), De(), !e.value.useAnimation) {
263
+ function Ee() {
264
+ if (L.value != null && (cancelAnimationFrame(L.value), L.value = null), Ge(), !e.value.useAnimation) {
265
265
  k.value = B.value.map((a) => {
266
266
  const u = Number(a.end);
267
267
  return { ...a, endVal: Number.isFinite(u) ? u : a.endVal };
@@ -269,25 +269,25 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
269
269
  return;
270
270
  }
271
271
  const l = Math.max(1, Math.min(100, e.value.animationSpeed || 100)) / 100, s = G.value.map((a) => {
272
- const u = Number(a.start), d = Number(a.end), y = Number.isFinite(u) ? u : 0;
273
- return (Number.isFinite(d) ? d : y) - y;
272
+ const u = Number(a.start), d = Number(a.end), f = Number.isFinite(u) ? u : 0;
273
+ return (Number.isFinite(d) ? d : f) - f;
274
274
  }), t = () => {
275
275
  let a = !0;
276
276
  k.value = B.value.map((u, d) => {
277
- const y = Number.isFinite(Number(u.end)) ? Number(u.end) : u.endVal, m = u.endVal + s[d] * l, z = s[d] >= 0 ? Math.min(m, y) : Math.max(m, y);
278
- return z !== y && (a = !1), { ...u, endVal: z };
277
+ const f = Number.isFinite(Number(u.end)) ? Number(u.end) : u.endVal, m = u.endVal + s[d] * l, z = s[d] >= 0 ? Math.min(m, f) : Math.max(m, f);
278
+ return z !== f && (a = !1), { ...u, endVal: z };
279
279
  }), a ? L.value = null : L.value = requestAnimationFrame(t);
280
280
  };
281
281
  L.value = requestAnimationFrame(t);
282
282
  }
283
- const Ee = g(() => e.value.style.chart.plots.evaluationColors.enable ? [
284
- { name: e.value.style.chart.legend.labelNegative, color: e.value.style.chart.plots.gradient.show ? `url(#negative_grad_${b.value})` : e.value.style.chart.plots.evaluationColors.negative },
285
- { name: e.value.style.chart.legend.labelNeutral, color: e.value.style.chart.plots.gradient.show ? `url(#neutral_grad_${b.value})` : e.value.style.chart.plots.evaluationColors.neutral },
286
- { name: e.value.style.chart.legend.labelPositive, color: e.value.style.chart.plots.gradient.show ? `url(#positive_grad_${b.value})` : e.value.style.chart.plots.evaluationColors.positive }
283
+ const Re = g(() => e.value.style.chart.plots.evaluationColors.enable ? [
284
+ { name: e.value.style.chart.legend.labelNegative, color: e.value.style.chart.plots.gradient.show ? `url(#negative_grad_${y.value})` : e.value.style.chart.plots.evaluationColors.negative },
285
+ { name: e.value.style.chart.legend.labelNeutral, color: e.value.style.chart.plots.gradient.show ? `url(#neutral_grad_${y.value})` : e.value.style.chart.plots.evaluationColors.neutral },
286
+ { name: e.value.style.chart.legend.labelPositive, color: e.value.style.chart.plots.gradient.show ? `url(#positive_grad_${y.value})` : e.value.style.chart.plots.evaluationColors.positive }
287
287
  ] : [
288
- { name: e.value.style.chart.legend.labelStart, color: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${b.value})` : e.value.style.chart.plots.startColor },
289
- { name: e.value.style.chart.legend.labelEnd, color: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${b.value})` : e.value.style.chart.plots.endColor }
290
- ]), gt = g(() => ({
288
+ { 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 },
289
+ { 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 }
290
+ ]), mt = g(() => ({
291
291
  cy: "donut-div-legend",
292
292
  backgroundColor: e.value.style.chart.legend.backgroundColor,
293
293
  color: e.value.style.chart.legend.color,
@@ -310,7 +310,7 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
310
310
  e.value.table.columnNames.end,
311
311
  e.value.table.columnNames.progression
312
312
  ], s = X.value.head.map((u, d) => {
313
- const y = w({
313
+ const f = w({
314
314
  p: e.value.style.chart.labels.prefix,
315
315
  v: X.value.body[d].start,
316
316
  s: e.value.style.chart.labels.suffix,
@@ -327,7 +327,7 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
327
327
  });
328
328
  return [
329
329
  { name: u.name },
330
- y,
330
+ f,
331
331
  m,
332
332
  z
333
333
  ];
@@ -356,31 +356,31 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
356
356
  config: t
357
357
  };
358
358
  });
359
- function Re(l = null) {
360
- St(() => {
359
+ function Be(l = null) {
360
+ Xt(() => {
361
361
  const s = X.value.head.map((u, d) => [[
362
362
  u.name
363
- ], [X.value.body[d].start], [X.value.body[d].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(s), a = Ft(t);
364
- l ? l(a) : Ht({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
363
+ ], [X.value.body[d].start], [X.value.body[d].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(s), a = Pt(t);
364
+ l ? l(a) : Dt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
365
365
  });
366
366
  }
367
367
  const V = h(!1);
368
- function Be(l) {
368
+ function Ve(l) {
369
369
  V.value = l, pe.value += 1;
370
370
  }
371
- function mt() {
371
+ function pt() {
372
372
  return G.value;
373
373
  }
374
- function Ve() {
374
+ function Ue() {
375
375
  D.value.showTable = !D.value.showTable;
376
376
  }
377
377
  const Q = h(!1);
378
378
  function de() {
379
379
  Q.value = !Q.value;
380
380
  }
381
- async function pt({ scale: l = 2 } = {}) {
382
- if (!T.value) return;
383
- const { width: s, height: t } = T.value.getBoundingClientRect(), a = s / t, { imageUri: u, base64: d } = await Ut({ domElement: T.value, base64: !0, img: !0, scale: l });
381
+ async function xt({ scale: l = 2 } = {}) {
382
+ if (!I.value) return;
383
+ const { width: s, height: t } = I.value.getBoundingClientRect(), a = s / t, { imageUri: u, base64: d } = await qt({ domElement: I.value, base64: !0, img: !0, scale: l });
384
384
  return {
385
385
  imageUri: u,
386
386
  base64: d,
@@ -390,11 +390,11 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
390
390
  aspectRatio: a
391
391
  };
392
392
  }
393
- const Ue = g(() => $.value.ticks), xt = g(() => ({ start: 0, end: Ue.value.length }));
394
- Vt({
393
+ const We = g(() => $.value.ticks), _t = g(() => ({ start: 0, end: We.value.length }));
394
+ Wt({
395
395
  timeLabelsEls: J,
396
- timeLabels: Ue,
397
- slicer: xt,
396
+ timeLabels: We,
397
+ slicer: _t,
398
398
  configRef: e,
399
399
  rotationPath: ["style", "chart", "labels", "xAxisLabels", "rotation"],
400
400
  autoRotatePath: ["style", "chart", "labels", "xAxisLabels", "autoRotate", "enable"],
@@ -404,42 +404,42 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
404
404
  targetClass: ".vue-ui-dumbbell-scale-label",
405
405
  rotation: e.value.style.chart.labels.xAxisLabels.autoRotate.angle
406
406
  });
407
- function _t({
407
+ function kt({
408
408
  rowHeight: l,
409
409
  fontSize: s,
410
410
  showProgression: t
411
411
  }) {
412
412
  if (!t) return !1;
413
- const a = l / 3, u = l / 1.3, d = Math.abs(u - a), y = s * 1.2;
414
- return d < y;
413
+ const a = l / 3, u = l / 1.3, d = Math.abs(u - a), f = s * 1.2;
414
+ return d < f;
415
415
  }
416
- const kt = /* @__PURE__ */ (() => {
416
+ const Ct = /* @__PURE__ */ (() => {
417
417
  let l = null, s = 0;
418
418
  const t = 1;
419
419
  return (a) => {
420
- if (a === O.value) {
420
+ if (a === F.value) {
421
421
  l = null, s = 0;
422
422
  return;
423
423
  }
424
- l === null || l !== a ? (l = a, s = 1) : (s += 1, s >= t && (O.value = a, l = null, s = 0));
424
+ l === null || l !== a ? (l = a, s = 1) : (s += 1, s >= t && (F.value = a, l = null, s = 0));
425
425
  };
426
- })(), We = me(() => {
426
+ })(), qe = me(() => {
427
427
  requestAnimationFrame(() => {
428
428
  requestAnimationFrame(() => {
429
- const l = _t({
429
+ const l = kt({
430
430
  rowHeight: o.value.rowHeight,
431
431
  fontSize: e.value.style.chart.labels.yAxisLabels.fontSize,
432
432
  showProgression: e.value.style.chart.labels.yAxisLabels.showProgression
433
433
  });
434
- kt(l);
434
+ Ct(l);
435
435
  });
436
436
  });
437
437
  }, 100);
438
438
  function he({ datapoint: l, seriesIndex: s }) {
439
- I.value = s, r.value = l, e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: s });
439
+ O.value = s, r.value = l, e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: s });
440
440
  }
441
441
  function ye({ datapoint: l, seriesIndex: s }) {
442
- I.value = null, r.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s });
442
+ O.value = null, r.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s });
443
443
  }
444
444
  function fe({ datapoint: l, seriesIndex: s }) {
445
445
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: s });
@@ -448,7 +448,7 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
448
448
  if (r.value === null) return 0;
449
449
  const l = ![null, void 0].includes(r.value.start), s = ![null, void 0].includes(r.value.end);
450
450
  return l && s ? Math.min(r.value.startX, r.value.endX) + Math.abs(r.value.startX - r.value.endX) / 2 : l && !s ? r.value.startX : s && !l ? r.value.endX : null;
451
- }), Ct = g(() => {
451
+ }), wt = g(() => {
452
452
  if (r.value === null) return "";
453
453
  const l = ![null, void 0].includes(r.value.start), s = ![null, void 0].includes(r.value.end);
454
454
  let t = "", a = "";
@@ -461,7 +461,7 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
461
461
  s: e.value.style.chart.labels.suffix,
462
462
  r: e.value.style.chart.labels.startLabels.rounding
463
463
  }),
464
- { datapoint: r.value, seriesIndex: I.value }
464
+ { datapoint: r.value, seriesIndex: O.value }
465
465
  )), s && (a = H(
466
466
  e.value.style.chart.labels.formatter,
467
467
  r.value.end,
@@ -471,49 +471,49 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
471
471
  s: e.value.style.chart.labels.suffix,
472
472
  r: e.value.style.chart.labels.startLabels.rounding
473
473
  }),
474
- { datapoint: r.value, seriesIndex: I.value }
474
+ { datapoint: r.value, seriesIndex: O.value }
475
475
  )), l && s ? `${t} → ${a}` : l && !s ? t : s && !l ? a : "";
476
476
  });
477
- return nt({
478
- getData: mt,
479
- getImage: pt,
480
- generatePdf: Ie,
481
- generateCsv: Re,
482
- generateImage: Oe,
483
- toggleTable: Ve,
477
+ return rt({
478
+ getData: pt,
479
+ getImage: xt,
480
+ generatePdf: Oe,
481
+ generateCsv: Be,
482
+ generateImage: Fe,
483
+ toggleTable: Ue,
484
484
  toggleAnnotator: de,
485
- toggleFullscreen: Be
486
- }), (l, s) => (n(), c("div", {
485
+ toggleFullscreen: Ve
486
+ }), (l, s) => (n(), v("div", {
487
487
  ref_key: "dumbbellChart",
488
- ref: T,
489
- class: Je(`vue-ui-dumbbell ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
488
+ ref: I,
489
+ class: Ke(`vue-ui-dumbbell ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
490
490
  style: ee(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
491
- id: `dumbbell_${b.value}`,
492
- onMouseenter: s[1] || (s[1] = () => i(Ae)(!0)),
493
- onMouseleave: s[2] || (s[2] = () => i(Ae)(!1))
491
+ id: `dumbbell_${y.value}`,
492
+ onMouseenter: s[1] || (s[1] = () => i(Ne)(!0)),
493
+ onMouseleave: s[2] || (s[2] = () => i(Ne)(!1))
494
494
  }, [
495
- e.value.userOptions.buttons.annotator ? (n(), F(i(it), {
495
+ e.value.userOptions.buttons.annotator ? (n(), T(i(ct), {
496
496
  key: 0,
497
- svgRef: i(Se),
497
+ svgRef: i(Me),
498
498
  backgroundColor: e.value.style.chart.backgroundColor,
499
499
  color: e.value.style.chart.color,
500
500
  active: Q.value,
501
501
  onClose: de
502
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
503
- yt.value ? (n(), c("div", {
502
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
503
+ ft.value ? (n(), v("div", {
504
504
  key: 1,
505
505
  ref_key: "noTitle",
506
506
  ref: Ce,
507
507
  class: "vue-data-ui-no-title-space",
508
508
  style: "height:36px; width: 100%;background:transparent"
509
- }, null, 512)) : f("", !0),
510
- e.value.style.chart.title.text ? (n(), c("div", {
509
+ }, null, 512)) : b("", !0),
510
+ e.value.style.chart.title.text ? (n(), v("div", {
511
511
  key: 2,
512
512
  ref_key: "chartTitle",
513
513
  ref: xe,
514
514
  style: "width:100%;background:transparent;padding-bottom:24px"
515
515
  }, [
516
- (n(), F(Wt, {
516
+ (n(), T(jt, {
517
517
  key: `title_${we.value}`,
518
518
  config: {
519
519
  title: {
@@ -526,15 +526,18 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
526
526
  }
527
527
  }
528
528
  }, null, 8, ["config"]))
529
- ], 512)) : f("", !0),
530
- e.value.userOptions.show && Z.value && (i(Ne) || i(ue)) ? (n(), F(i(ct), {
529
+ ], 512)) : b("", !0),
530
+ c("div", {
531
+ id: `legend-top-${y.value}`
532
+ }, null, 8, Kt),
533
+ e.value.userOptions.show && Z.value && (i(Se) || i(ue)) ? (n(), T(i(vt), {
531
534
  ref: "details",
532
535
  key: `user_option_${pe.value}`,
533
536
  backgroundColor: e.value.style.chart.backgroundColor,
534
537
  color: e.value.style.chart.color,
535
- isPrinting: i(ze),
536
- isImaging: i(Te),
537
- uid: b.value,
538
+ isPrinting: i(Te),
539
+ isImaging: i(Ie),
540
+ uid: y.value,
538
541
  hasPdf: e.value.userOptions.buttons.pdf,
539
542
  hasXls: e.value.userOptions.buttons.csv,
540
543
  hasImg: e.value.userOptions.buttons.img,
@@ -542,22 +545,22 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
542
545
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
543
546
  isFullscreen: V.value,
544
547
  titles: { ...e.value.userOptions.buttonTitles },
545
- chartElement: T.value,
548
+ chartElement: I.value,
546
549
  position: e.value.userOptions.position,
547
550
  hasAnnotator: e.value.userOptions.buttons.annotator,
548
551
  isAnnotation: Q.value,
549
552
  callbacks: e.value.userOptions.callbacks,
550
553
  printScale: e.value.userOptions.print.scale,
551
- onToggleFullscreen: Be,
552
- onGeneratePdf: i(Ie),
553
- onGenerateCsv: Re,
554
- onGenerateImage: i(Oe),
555
- onToggleTable: Ve,
554
+ onToggleFullscreen: Ve,
555
+ onGeneratePdf: i(Oe),
556
+ onGenerateCsv: Be,
557
+ onGenerateImage: i(Fe),
558
+ onToggleTable: Ue,
556
559
  onToggleAnnotator: de,
557
560
  style: ee({
558
- visibility: i(Ne) ? i(ue) ? "visible" : "hidden" : "visible"
561
+ visibility: i(Se) ? i(ue) ? "visible" : "hidden" : "visible"
559
562
  })
560
- }, At({ _: 2 }, [
563
+ }, Nt({ _: 2 }, [
561
564
  l.$slots.menuIcon ? {
562
565
  name: "menuIcon",
563
566
  fn: x(({ isOpen: t, color: a }) => [
@@ -607,17 +610,17 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
607
610
  ]),
608
611
  key: "6"
609
612
  } : void 0
610
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
611
- (n(), c("svg", {
613
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
614
+ (n(), v("svg", {
612
615
  ref_key: "svgRef",
613
- ref: Se,
614
- xmlns: i(lt),
615
- class: Je({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
616
+ ref: Me,
617
+ xmlns: i(at),
618
+ class: Ke({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
616
619
  viewBox: `0 0 ${R.value} ${o.value.absoluteHeight <= 0 ? 10 : o.value.absoluteHeight}`,
617
620
  style: ee(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
618
621
  }, [
619
- Nt(i(vt)),
620
- l.$slots["chart-background"] ? (n(), c("foreignObject", {
622
+ St(i(dt)),
623
+ l.$slots["chart-background"] ? (n(), v("foreignObject", {
621
624
  key: 0,
622
625
  x: o.value.left,
623
626
  y: o.value.top,
@@ -628,9 +631,9 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
628
631
  }
629
632
  }, [
630
633
  p(l.$slots, "chart-background", {}, void 0, !0)
631
- ], 8, Jt)) : f("", !0),
632
- e.value.style.chart.grid.verticalGrid.show ? (n(), c("g", Kt, [
633
- (n(!0), c(C, null, A($.value.ticks, (t, a) => (n(), c("line", {
634
+ ], 8, el)) : b("", !0),
635
+ e.value.style.chart.grid.verticalGrid.show ? (n(), v("g", tl, [
636
+ (n(!0), v(C, null, A($.value.ticks, (t, a) => (n(), v("line", {
634
637
  x1: o.value.left + a * o.value.width / ($.value.ticks.length - 1),
635
638
  x2: o.value.left + a * o.value.width / ($.value.ticks.length - 1),
636
639
  y1: o.value.top,
@@ -638,10 +641,10 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
638
641
  stroke: e.value.style.chart.grid.verticalGrid.stroke,
639
642
  "stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
640
643
  "stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray
641
- }, null, 8, Qt))), 256))
642
- ])) : f("", !0),
643
- e.value.style.chart.grid.horizontalGrid.show ? (n(), c("g", el, [
644
- (n(!0), c(C, null, A(G.value, (t, a) => (n(), c("line", {
644
+ }, null, 8, ll))), 256))
645
+ ])) : b("", !0),
646
+ e.value.style.chart.grid.horizontalGrid.show ? (n(), v("g", al, [
647
+ (n(!0), v(C, null, A(G.value, (t, a) => (n(), v("line", {
645
648
  x1: o.value.left,
646
649
  x2: o.value.right,
647
650
  y1: o.value.top + a * o.value.rowHeight,
@@ -649,8 +652,8 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
649
652
  stroke: e.value.style.chart.grid.horizontalGrid.stroke,
650
653
  "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
651
654
  "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
652
- }, null, 8, tl))), 256)),
653
- v("line", {
655
+ }, null, 8, sl))), 256)),
656
+ c("line", {
654
657
  x1: o.value.left,
655
658
  x2: o.value.right,
656
659
  y1: o.value.bottom,
@@ -658,9 +661,9 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
658
661
  stroke: e.value.style.chart.grid.horizontalGrid.stroke,
659
662
  "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
660
663
  "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
661
- }, null, 8, ll)
662
- ])) : f("", !0),
663
- e.value.style.chart.labels.axis.yLabel ? (n(), c("text", {
664
+ }, null, 8, ol)
665
+ ])) : b("", !0),
666
+ e.value.style.chart.labels.axis.yLabel ? (n(), v("text", {
664
667
  key: 3,
665
668
  ref_key: "yAxisLabel",
666
669
  ref: ae,
@@ -668,17 +671,17 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
668
671
  "font-size": e.value.style.chart.labels.axis.fontSize,
669
672
  fill: e.value.style.chart.labels.axis.color,
670
673
  "text-anchor": "middle"
671
- }, _(e.value.style.chart.labels.axis.yLabel), 9, al)) : f("", !0),
672
- e.value.style.chart.labels.yAxisLabels.show ? (n(), c("g", {
674
+ }, _(e.value.style.chart.labels.axis.yLabel), 9, nl)) : b("", !0),
675
+ e.value.style.chart.labels.yAxisLabels.show ? (n(), v("g", {
673
676
  key: 4,
674
677
  ref_key: "serieLabels",
675
678
  ref: se
676
679
  }, [
677
- (n(!0), c(C, null, A(k.value, (t, a) => (n(), c("text", {
680
+ (n(!0), v(C, null, A(k.value, (t, a) => (n(), v("text", {
678
681
  class: "vue-ui-dumbbell-serie-name",
679
682
  key: `serieLabel_${t.id}_${a}`,
680
683
  x: o.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
681
- y: o.value.top + a * o.value.rowHeight + (!e.value.style.chart.labels.yAxisLabels.showProgression || O.value ? o.value.rowHeight / 2 : o.value.rowHeight / 3) + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
684
+ y: o.value.top + a * o.value.rowHeight + (!e.value.style.chart.labels.yAxisLabels.showProgression || F.value ? o.value.rowHeight / 2 : o.value.rowHeight / 3) + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
682
685
  "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
683
686
  fill: e.value.style.chart.labels.yAxisLabels.color,
684
687
  "font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
@@ -686,7 +689,7 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
686
689
  onMouseenter: (u) => he({ datapoint: t, seriesIndex: a }),
687
690
  onMouseleave: (u) => ye({ datapoint: t, seriesIndex: a }),
688
691
  onClick: (u) => fe({ datapoint: t, seriesIndex: a })
689
- }, _(t.name) + " " + _(O.value && e.value.style.chart.labels.yAxisLabels.showProgression ? [null, void 0].includes(t.start) || [null, void 0].includes(t.end) ? "" : `(${i(H)(
692
+ }, _(t.name) + " " + _(F.value && e.value.style.chart.labels.yAxisLabels.showProgression ? [null, void 0].includes(t.start) || [null, void 0].includes(t.end) ? "" : `(${i(H)(
690
693
  e.value.style.chart.labels.yAxisLabels.formatter,
691
694
  100 * (t.end / t.start - 1),
692
695
  i(w)({
@@ -695,8 +698,8 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
695
698
  r: e.value.style.chart.labels.yAxisLabels.rounding
696
699
  }),
697
700
  { datapoint: t }
698
- )})` : ""), 41, sl))), 128)),
699
- e.value.style.chart.labels.yAxisLabels.showProgression && !O.value ? (n(!0), c(C, { key: 0 }, A(k.value, (t, a) => (n(), c("text", {
701
+ )})` : ""), 41, rl))), 128)),
702
+ e.value.style.chart.labels.yAxisLabels.showProgression && !F.value ? (n(!0), v(C, { key: 0 }, A(k.value, (t, a) => (n(), v("text", {
700
703
  class: "vue-ui-dumbbell-serie-value",
701
704
  x: o.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
702
705
  y: o.value.top + a * o.value.rowHeight + o.value.rowHeight / 1.3 + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
@@ -715,9 +718,9 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
715
718
  r: e.value.style.chart.labels.yAxisLabels.rounding
716
719
  }),
717
720
  { datapoint: t }
718
- )), 41, ol))), 256)) : f("", !0)
719
- ], 512)) : f("", !0),
720
- e.value.style.chart.labels.axis.xLabel ? (n(), c("text", {
721
+ )), 41, ul))), 256)) : b("", !0)
722
+ ], 512)) : b("", !0),
723
+ e.value.style.chart.labels.axis.xLabel ? (n(), v("text", {
721
724
  key: 5,
722
725
  ref_key: "xAxisLabel",
723
726
  ref: oe,
@@ -726,13 +729,13 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
726
729
  "font-size": e.value.style.chart.labels.axis.fontSize,
727
730
  fill: e.value.style.chart.labels.axis.color,
728
731
  "text-anchor": "middle"
729
- }, _(e.value.style.chart.labels.axis.xLabel), 9, nl)) : f("", !0),
730
- e.value.style.chart.labels.xAxisLabels.show ? (n(), c("g", {
732
+ }, _(e.value.style.chart.labels.axis.xLabel), 9, il)) : b("", !0),
733
+ e.value.style.chart.labels.xAxisLabels.show ? (n(), v("g", {
731
734
  key: 6,
732
735
  ref_key: "scaleLabels",
733
736
  ref: J
734
737
  }, [
735
- (n(!0), c(C, null, A($.value.ticks, (t, a) => (n(), c("text", {
738
+ (n(!0), v(C, null, A($.value.ticks, (t, a) => (n(), v("text", {
736
739
  class: "vue-ui-dumbbell-scale-label",
737
740
  key: `tick_${a}`,
738
741
  transform: `translate(${o.value.left + a * (o.value.width / ($.value.ticks.length - 1))}, ${o.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize + e.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${e.value.style.chart.labels.xAxisLabels.rotation})`,
@@ -750,176 +753,176 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
750
753
  r: e.value.style.chart.labels.xAxisLabels.rounding
751
754
  }),
752
755
  { datapoint: t, seriesIndex: a }
753
- )), 9, rl))), 128))
754
- ], 512)) : f("", !0),
755
- W(v("g", null, [
756
- W(v("path", {
756
+ )), 9, cl))), 128))
757
+ ], 512)) : b("", !0),
758
+ W(c("g", null, [
759
+ W(c("path", {
757
760
  d: `M ${r.value ? r.value.startX : o.value.left},${o.value.top} ${r.value ? r.value.startX : o.value.left},${o.value.bottom}`,
758
761
  stroke: r.value ? e.value.style.chart.plots.evaluationColors.enable ? r.value.evaluationColor : e.value.style.chart.plots.startColor : "transparent",
759
762
  "stroke-width": e.value.style.chart.comparisonLines.strokeWidth,
760
763
  "stroke-dasharray": e.value.style.chart.comparisonLines.strokeDasharray,
761
764
  style: { transition: "all 0.3s ease-in-out" }
762
- }, null, 8, ul), [
765
+ }, null, 8, vl), [
763
766
  [q, r.value !== null && ![null, void 0].includes(r.value.start)]
764
767
  ]),
765
- W(v("path", {
768
+ W(c("path", {
766
769
  d: `M ${r.value ? r.value.endX : o.value.left},${o.value.top} ${r.value ? r.value.endX : o.value.left},${o.value.bottom}`,
767
770
  stroke: r.value ? e.value.style.chart.plots.evaluationColors.enable ? r.value.evaluationColor : e.value.style.chart.plots.endColor : "transparent",
768
771
  "stroke-width": e.value.style.chart.comparisonLines.strokeWidth,
769
772
  "stroke-dasharray": e.value.style.chart.comparisonLines.strokeDasharray,
770
773
  style: { transition: "all 0.3s ease-in-out" }
771
- }, null, 8, il), [
774
+ }, null, 8, dl), [
772
775
  [q, r.value !== null && ![null, void 0].includes(r.value.end)]
773
776
  ]),
774
- W(v("rect", {
777
+ W(c("rect", {
775
778
  x: r.value ? Math.min(r.value.startX, r.value.endX) : o.value.left,
776
779
  y: o.value.top,
777
780
  height: Math.max(0.1, o.value.height),
778
781
  width: r.value ? Math.max(0.1, Math.abs(r.value.endX - r.value.startX)) : 0,
779
- fill: r.value ? i(at)(e.value.style.chart.comparisonLines.rectColor, e.value.style.chart.comparisonLines.rectOpacity) : "transparent",
782
+ fill: r.value ? i(st)(e.value.style.chart.comparisonLines.rectColor, e.value.style.chart.comparisonLines.rectOpacity) : "transparent",
780
783
  style: { transition: "all 0.3s ease-in-out" }
781
- }, null, 8, cl), [
784
+ }, null, 8, hl), [
782
785
  [q, e.value.style.chart.comparisonLines.showRect && r.value !== null && ![null, void 0].includes(r.value.start) && ![null, void 0].includes(r.value.end)]
783
786
  ]),
784
- W(v("text", {
787
+ W(c("text", {
785
788
  transform: `translate(${be.value == null ? 0 : be.value}, ${o.value.top - 6})`,
786
789
  fill: e.value.style.chart.comparisonLines.labelColor,
787
790
  "font-size": e.value.style.chart.comparisonLines.labelFontSize,
788
791
  "text-anchor": "middle",
789
792
  style: { transition: "all 0.3s ease-in-out" }
790
- }, _(Ct.value), 9, vl), [
793
+ }, _(wt.value), 9, yl), [
791
794
  [q, r.value !== null && be.value !== null && e.value.style.chart.comparisonLines.showLabel]
792
795
  ])
793
796
  ], 512), [
794
- [q, e.value.style.chart.comparisonLines.show && I.value !== null]
797
+ [q, e.value.style.chart.comparisonLines.show && O.value !== null]
795
798
  ]),
796
- v("defs", null, [
797
- v("radialGradient", {
798
- id: `start_grad_${b.value}`,
799
+ c("defs", null, [
800
+ c("radialGradient", {
801
+ id: `start_grad_${y.value}`,
799
802
  fy: "30%"
800
803
  }, [
801
- v("stop", {
804
+ c("stop", {
802
805
  offset: "10%",
803
806
  "stop-color": i(j)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
804
- }, null, 8, hl),
805
- v("stop", {
807
+ }, null, 8, bl),
808
+ c("stop", {
806
809
  offset: "90%",
807
810
  "stop-color": i(Y)(e.value.style.chart.plots.startColor, 0.1)
808
- }, null, 8, yl),
809
- v("stop", {
811
+ }, null, 8, gl),
812
+ c("stop", {
810
813
  offset: "100%",
811
814
  "stop-color": e.value.style.chart.plots.startColor
812
- }, null, 8, fl)
813
- ], 8, dl),
814
- v("radialGradient", {
815
- id: `end_grad_${b.value}`,
815
+ }, null, 8, ml)
816
+ ], 8, fl),
817
+ c("radialGradient", {
818
+ id: `end_grad_${y.value}`,
816
819
  fy: "30%"
817
820
  }, [
818
- v("stop", {
821
+ c("stop", {
819
822
  offset: "10%",
820
823
  "stop-color": i(j)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
821
- }, null, 8, gl),
822
- v("stop", {
824
+ }, null, 8, xl),
825
+ c("stop", {
823
826
  offset: "90%",
824
827
  "stop-color": i(Y)(e.value.style.chart.plots.endColor, 0.1)
825
- }, null, 8, ml),
826
- v("stop", {
828
+ }, null, 8, _l),
829
+ c("stop", {
827
830
  offset: "100%",
828
831
  "stop-color": e.value.style.chart.plots.endColor
829
- }, null, 8, pl)
830
- ], 8, bl),
831
- v("radialGradient", {
832
- id: `positive_grad_${b.value}`,
832
+ }, null, 8, kl)
833
+ ], 8, pl),
834
+ c("radialGradient", {
835
+ id: `positive_grad_${y.value}`,
833
836
  fy: "30%"
834
837
  }, [
835
- v("stop", {
838
+ c("stop", {
836
839
  offset: "10%",
837
840
  "stop-color": i(j)(e.value.style.chart.plots.evaluationColors.positive, e.value.style.chart.plots.gradient.intensity / 100)
838
- }, null, 8, _l),
839
- v("stop", {
841
+ }, null, 8, wl),
842
+ c("stop", {
840
843
  offset: "90%",
841
844
  "stop-color": i(Y)(e.value.style.chart.plots.evaluationColors.positive, 0.1)
842
- }, null, 8, kl),
843
- v("stop", {
845
+ }, null, 8, $l),
846
+ c("stop", {
844
847
  offset: "100%",
845
848
  "stop-color": e.value.style.chart.plots.evaluationColors.positive
846
- }, null, 8, Cl)
847
- ], 8, xl),
848
- v("radialGradient", {
849
- id: `negative_grad_${b.value}`,
849
+ }, null, 8, Ll)
850
+ ], 8, Cl),
851
+ c("radialGradient", {
852
+ id: `negative_grad_${y.value}`,
850
853
  fy: "30%"
851
854
  }, [
852
- v("stop", {
855
+ c("stop", {
853
856
  offset: "10%",
854
857
  "stop-color": i(j)(e.value.style.chart.plots.evaluationColors.negative, e.value.style.chart.plots.gradient.intensity / 100)
855
- }, null, 8, $l),
856
- v("stop", {
858
+ }, null, 8, Nl),
859
+ c("stop", {
857
860
  offset: "90%",
858
861
  "stop-color": i(Y)(e.value.style.chart.plots.evaluationColors.negative, 0.1)
859
- }, null, 8, Ll),
860
- v("stop", {
862
+ }, null, 8, Sl),
863
+ c("stop", {
861
864
  offset: "100%",
862
865
  "stop-color": e.value.style.chart.plots.evaluationColors.negative
863
- }, null, 8, Al)
864
- ], 8, wl),
865
- v("radialGradient", {
866
- id: `neutral_grad_${b.value}`,
866
+ }, null, 8, Ml)
867
+ ], 8, Al),
868
+ c("radialGradient", {
869
+ id: `neutral_grad_${y.value}`,
867
870
  fy: "30%"
868
871
  }, [
869
- v("stop", {
872
+ c("stop", {
870
873
  offset: "10%",
871
874
  "stop-color": i(j)(e.value.style.chart.plots.evaluationColors.neutral, e.value.style.chart.plots.gradient.intensity / 100)
872
- }, null, 8, Sl),
873
- v("stop", {
875
+ }, null, 8, zl),
876
+ c("stop", {
874
877
  offset: "90%",
875
878
  "stop-color": i(Y)(e.value.style.chart.plots.evaluationColors.neutral, 0.1)
876
- }, null, 8, Ml),
877
- v("stop", {
879
+ }, null, 8, Tl),
880
+ c("stop", {
878
881
  offset: "100%",
879
882
  "stop-color": e.value.style.chart.plots.evaluationColors.neutral
880
- }, null, 8, Xl)
881
- ], 8, Nl)
883
+ }, null, 8, Il)
884
+ ], 8, Xl)
882
885
  ]),
883
- (n(!0), c(C, null, A(k.value, (t, a) => (n(), c("g", {
886
+ (n(!0), v(C, null, A(k.value, (t, a) => (n(), v("g", {
884
887
  key: `plot_${a}_${t.id}`
885
888
  }, [
886
- v("defs", null, [
887
- v("linearGradient", {
888
- id: `grad_pos_${b.value}`,
889
+ c("defs", null, [
890
+ c("linearGradient", {
891
+ id: `grad_pos_${y.value}`,
889
892
  x1: "0%",
890
893
  x2: "100%",
891
894
  y1: "0%",
892
895
  y2: "0%"
893
896
  }, [
894
- v("stop", {
897
+ c("stop", {
895
898
  offset: "0%",
896
899
  "stop-color": e.value.style.chart.plots.startColor
897
- }, null, 8, Tl),
898
- v("stop", {
900
+ }, null, 8, Fl),
901
+ c("stop", {
899
902
  offset: "100%",
900
903
  "stop-color": e.value.style.chart.plots.endColor
901
- }, null, 8, Il)
902
- ], 8, zl),
903
- v("linearGradient", {
904
- id: `grad_neg_${b.value}`,
904
+ }, null, 8, Hl)
905
+ ], 8, Ol),
906
+ c("linearGradient", {
907
+ id: `grad_neg_${y.value}`,
905
908
  x1: "0%",
906
909
  x2: "100%",
907
910
  y1: "0%",
908
911
  y2: "0%"
909
912
  }, [
910
- v("stop", {
913
+ c("stop", {
911
914
  offset: "0%",
912
915
  "stop-color": e.value.style.chart.plots.endColor
913
- }, null, 8, Fl),
914
- v("stop", {
916
+ }, null, 8, Dl),
917
+ c("stop", {
915
918
  offset: "100%",
916
919
  "stop-color": e.value.style.chart.plots.startColor
917
- }, null, 8, Hl)
918
- ], 8, Ol)
920
+ }, null, 8, Gl)
921
+ ], 8, Pl)
919
922
  ]),
920
- ![void 0, null].includes(t.end) && ![void 0, null].includes(t.start) ? (n(), c("g", Pl, [
921
- e.value.style.chart.plots.link.type === "curved" ? (n(), c("g", Dl, [
922
- v("path", {
923
+ ![void 0, null].includes(t.end) && ![void 0, null].includes(t.start) ? (n(), v("g", El, [
924
+ e.value.style.chart.plots.link.type === "curved" ? (n(), v("g", Rl, [
925
+ c("path", {
923
926
  d: `M
924
927
  ${t.startX},${t.y + M.value / 2}
925
928
  C ${t.centerX},${t.y} ${t.centerX},${t.y}
@@ -929,42 +932,42 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
929
932
  ${t.startX},${t.y - M.value / 2}
930
933
  Z
931
934
  `,
932
- fill: e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : t.endX > t.startX ? `url(#grad_pos_${b.value})` : `url(#grad_neg_${b.value})`
933
- }, null, 8, Gl)
934
- ])) : (n(), c("g", El, [
935
- v("rect", {
935
+ fill: e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : t.endX > t.startX ? `url(#grad_pos_${y.value})` : `url(#grad_neg_${y.value})`
936
+ }, null, 8, Bl)
937
+ ])) : (n(), v("g", Vl, [
938
+ c("rect", {
936
939
  x: t.endX > t.startX ? t.startX : t.endX,
937
940
  y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
938
941
  height: Math.max(0.01, e.value.style.chart.plots.link.strokeWidth),
939
942
  width: Math.max(0.01, Math.abs(t.endX - t.startX)),
940
- fill: e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : t.endX > t.startX ? `url(#grad_pos_${b.value})` : `url(#grad_neg_${b.value})`
941
- }, null, 8, Rl)
943
+ fill: e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : t.endX > t.startX ? `url(#grad_pos_${y.value})` : `url(#grad_neg_${y.value})`
944
+ }, null, 8, Ul)
942
945
  ]))
943
- ])) : f("", !0),
944
- [null, void 0].includes(t.start) ? f("", !0) : (n(), c("circle", {
946
+ ])) : b("", !0),
947
+ [null, void 0].includes(t.start) ? b("", !0) : (n(), v("circle", {
945
948
  key: 1,
946
949
  cx: t.startX,
947
950
  cy: t.y,
948
951
  r: M.value,
949
- fill: e.value.style.chart.plots.gradient.show ? e.value.style.chart.plots.evaluationColors.enable ? t.evaluationGrad : `url(#start_grad_${b.value})` : e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : e.value.style.chart.plots.startColor,
952
+ fill: e.value.style.chart.plots.gradient.show ? e.value.style.chart.plots.evaluationColors.enable ? t.evaluationGrad : `url(#start_grad_${y.value})` : e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : e.value.style.chart.plots.startColor,
950
953
  stroke: e.value.style.chart.plots.stroke,
951
954
  "stroke-width": e.value.style.chart.plots.strokeWidth
952
- }, null, 8, Bl)),
953
- [null, void 0].includes(t.end) ? f("", !0) : (n(), c("circle", {
955
+ }, null, 8, Wl)),
956
+ [null, void 0].includes(t.end) ? b("", !0) : (n(), v("circle", {
954
957
  key: 2,
955
958
  cx: t.endX,
956
959
  cy: t.y,
957
960
  r: M.value,
958
- fill: e.value.style.chart.plots.gradient.show ? e.value.style.chart.plots.evaluationColors.enable ? t.evaluationGrad : `url(#end_grad_${b.value})` : e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : e.value.style.chart.plots.endColor,
961
+ fill: e.value.style.chart.plots.gradient.show ? e.value.style.chart.plots.evaluationColors.enable ? t.evaluationGrad : `url(#end_grad_${y.value})` : e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : e.value.style.chart.plots.endColor,
959
962
  stroke: e.value.style.chart.plots.stroke,
960
963
  "stroke-width": e.value.style.chart.plots.strokeWidth
961
- }, null, 8, Vl))
964
+ }, null, 8, ql))
962
965
  ]))), 128)),
963
- e.value.style.chart.labels.startLabels.show ? (n(), c("g", Ul, [
964
- (n(!0), c(C, null, A(k.value, (t, a) => (n(), c("g", {
966
+ e.value.style.chart.labels.startLabels.show ? (n(), v("g", jl, [
967
+ (n(!0), v(C, null, A(k.value, (t, a) => (n(), v("g", {
965
968
  key: `start_label_${a}_${t.id}`
966
969
  }, [
967
- [null, void 0].includes(t.start) ? f("", !0) : (n(), c("text", {
970
+ [null, void 0].includes(t.start) ? b("", !0) : (n(), v("text", {
968
971
  key: 0,
969
972
  x: t.startX,
970
973
  y: t.y + M.value * 2 + e.value.style.chart.labels.startLabels.fontSize / 2,
@@ -981,14 +984,14 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
981
984
  r: e.value.style.chart.labels.startLabels.rounding
982
985
  }),
983
986
  { datapoint: t, seriesIndex: a }
984
- )), 9, Wl))
987
+ )), 9, Yl))
985
988
  ]))), 128))
986
- ])) : f("", !0),
987
- e.value.style.chart.labels.endLabels.show ? (n(), c("g", ql, [
988
- (n(!0), c(C, null, A(k.value, (t, a) => (n(), c("g", {
989
+ ])) : b("", !0),
990
+ e.value.style.chart.labels.endLabels.show ? (n(), v("g", Zl, [
991
+ (n(!0), v(C, null, A(k.value, (t, a) => (n(), v("g", {
989
992
  key: `end_label_${a}_${t.id}`
990
993
  }, [
991
- [null, void 0].includes(t.end) ? f("", !0) : (n(), c("text", {
994
+ [null, void 0].includes(t.end) ? b("", !0) : (n(), v("text", {
992
995
  key: 0,
993
996
  x: t.endX,
994
997
  y: t.y - (M.value * 2 - e.value.style.chart.labels.startLabels.fontSize / 3),
@@ -1005,74 +1008,82 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
1005
1008
  r: e.value.style.chart.labels.endLabels.rounding
1006
1009
  }),
1007
1010
  { datapoint: t, seriesIndex: a }
1008
- )), 9, jl))
1011
+ )), 9, Jl))
1009
1012
  ]))), 128))
1010
- ])) : f("", !0),
1011
- v("g", null, [
1012
- (n(!0), c(C, null, A(k.value, (t, a) => (n(), c("rect", {
1013
+ ])) : b("", !0),
1014
+ c("g", null, [
1015
+ (n(!0), v(C, null, A(k.value, (t, a) => (n(), v("rect", {
1013
1016
  x: o.value.left,
1014
1017
  y: o.value.top + a * Math.max(0.1, o.value.rowHeight),
1015
1018
  width: Math.max(0.1, o.value.width),
1016
1019
  height: Math.max(0.1, o.value.rowHeight),
1017
- fill: I.value !== null && I.value === a ? i(at)(e.value.style.chart.highlighter.color, e.value.style.chart.highlighter.opacity) : "transparent",
1020
+ fill: O.value !== null && O.value === a ? i(st)(e.value.style.chart.highlighter.color, e.value.style.chart.highlighter.opacity) : "transparent",
1018
1021
  onMouseenter: (u) => he({ datapoint: t, seriesIndex: a }),
1019
1022
  onMouseleave: (u) => ye({ datapoint: t, seriesIndex: a }),
1020
1023
  onClick: (u) => fe({ datapoint: t, seriesIndex: a })
1021
- }, null, 40, Yl))), 256))
1024
+ }, null, 40, Kl))), 256))
1022
1025
  ]),
1023
1026
  p(l.$slots, "svg", { svg: o.value }, void 0, !0)
1024
- ], 14, Zt)),
1025
- l.$slots.watermark ? (n(), c("div", Zl, [
1026
- p(l.$slots, "watermark", te(le({ isPrinting: i(ze) || i(Te) })), void 0, !0)
1027
- ])) : f("", !0),
1028
- v("div", {
1029
- ref_key: "chartLegend",
1030
- ref: _e
1027
+ ], 14, Qt)),
1028
+ l.$slots.watermark ? (n(), v("div", Ql, [
1029
+ p(l.$slots, "watermark", te(le({ isPrinting: i(Te) || i(Ie) })), void 0, !0)
1030
+ ])) : b("", !0),
1031
+ c("div", {
1032
+ id: `legend-bottom-${y.value}`
1033
+ }, null, 8, ea),
1034
+ Ae.value ? (n(), T(Mt, {
1035
+ key: 5,
1036
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
1031
1037
  }, [
1032
- e.value.style.chart.legend.show && Z.value ? (n(), F(qt, {
1033
- key: `legend_${Le.value}`,
1034
- legendSet: Ee.value,
1035
- config: gt.value,
1036
- clickable: !1
1037
- }, {
1038
- item: x(({ legend: t }) => [
1039
- v("div", {
1040
- style: ee(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
1041
- }, [
1042
- (n(), c("svg", {
1043
- xmlns: i(lt),
1044
- viewBox: "0 0 20 20",
1045
- height: e.value.style.chart.legend.fontSize,
1046
- width: e.value.style.chart.legend.fontSize
1038
+ c("div", {
1039
+ ref_key: "chartLegend",
1040
+ ref: _e
1041
+ }, [
1042
+ e.value.style.chart.legend.show && Z.value ? (n(), T(Yt, {
1043
+ key: `legend_${Le.value}`,
1044
+ legendSet: Re.value,
1045
+ config: mt.value,
1046
+ clickable: !1
1047
+ }, {
1048
+ item: x(({ legend: t }) => [
1049
+ c("div", {
1050
+ style: ee(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
1047
1051
  }, [
1048
- v("circle", {
1049
- cx: 10,
1050
- cy: 10,
1051
- r: 9,
1052
- fill: t.color
1053
- }, null, 8, Kl)
1054
- ], 8, Jl)),
1055
- i(ne) ? f("", !0) : (n(), c(C, { key: 0 }, [
1056
- Ke(_(t.name), 1)
1057
- ], 64))
1058
- ], 4)
1059
- ]),
1060
- _: 1
1061
- }, 8, ["legendSet", "config"])) : p(l.$slots, "legend", {
1062
- key: 1,
1063
- legend: Ee.value
1064
- }, void 0, !0)
1065
- ], 512),
1066
- l.$slots.source ? (n(), c("div", {
1067
- key: 5,
1052
+ (n(), v("svg", {
1053
+ xmlns: i(at),
1054
+ viewBox: "0 0 20 20",
1055
+ height: e.value.style.chart.legend.fontSize,
1056
+ width: e.value.style.chart.legend.fontSize
1057
+ }, [
1058
+ c("circle", {
1059
+ cx: 10,
1060
+ cy: 10,
1061
+ r: 9,
1062
+ fill: t.color
1063
+ }, null, 8, la)
1064
+ ], 8, ta)),
1065
+ i(ne) ? b("", !0) : (n(), v(C, { key: 0 }, [
1066
+ Qe(_(t.name), 1)
1067
+ ], 64))
1068
+ ], 4)
1069
+ ]),
1070
+ _: 1
1071
+ }, 8, ["legendSet", "config"])) : p(l.$slots, "legend", {
1072
+ key: 1,
1073
+ legend: Re.value
1074
+ }, void 0, !0)
1075
+ ], 512)
1076
+ ], 8, ["to"])) : b("", !0),
1077
+ l.$slots.source ? (n(), v("div", {
1078
+ key: 6,
1068
1079
  ref_key: "source",
1069
1080
  ref: ke,
1070
1081
  dir: "auto"
1071
1082
  }, [
1072
1083
  p(l.$slots, "source", {}, void 0, !0)
1073
- ], 512)) : f("", !0),
1074
- Z.value ? (n(), F(i(rt), {
1075
- key: 6,
1084
+ ], 512)) : b("", !0),
1085
+ Z.value ? (n(), T(i(ut), {
1086
+ key: 7,
1076
1087
  hideDetails: "",
1077
1088
  config: {
1078
1089
  open: D.value.showTable,
@@ -1088,7 +1099,7 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
1088
1099
  }
1089
1100
  }, {
1090
1101
  content: x(() => [
1091
- (n(), F(i(ut), {
1102
+ (n(), T(i(it), {
1092
1103
  key: `table_${$e.value}`,
1093
1104
  colNames: K.value.colNames,
1094
1105
  head: K.value.head,
@@ -1098,23 +1109,23 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
1098
1109
  onClose: s[0] || (s[0] = (t) => D.value.showTable = !1)
1099
1110
  }, {
1100
1111
  th: x(({ th: t }) => [
1101
- v("div", {
1112
+ c("div", {
1102
1113
  innerHTML: t,
1103
1114
  style: { display: "flex", "align-items": "center" }
1104
- }, null, 8, Ql)
1115
+ }, null, 8, aa)
1105
1116
  ]),
1106
1117
  td: x(({ td: t }) => [
1107
- Ke(_(t.name || t), 1)
1118
+ Qe(_(t.name || t), 1)
1108
1119
  ]),
1109
1120
  _: 1
1110
1121
  }, 8, ["colNames", "head", "body", "config", "title"]))
1111
1122
  ]),
1112
1123
  _: 1
1113
- }, 8, ["config"])) : f("", !0),
1114
- i(ne) ? (n(), F(Et, { key: 7 })) : f("", !0)
1115
- ], 46, Yt));
1124
+ }, 8, ["config"])) : b("", !0),
1125
+ i(ne) ? (n(), T(Bt, { key: 8 })) : b("", !0)
1126
+ ], 46, Jt));
1116
1127
  }
1117
- }, fa = /* @__PURE__ */ jt(ea, [["__scopeId", "data-v-3777c0fc"]]);
1128
+ }, pa = /* @__PURE__ */ Zt(sa, [["__scopeId", "data-v-3328933a"]]);
1118
1129
  export {
1119
- fa as default
1130
+ pa as default
1120
1131
  };