vue-data-ui 3.0.23 → 3.1.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 (108) hide show
  1. package/dist/{Arrow-B1Op9F3x.js → Arrow-xQM7mBzd.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-B2BQC0-h.js} +72 -59
  3. package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DLesaZpW.js} +1 -1
  4. package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
  5. package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-BKvJvFtX.js} +2 -2
  6. package/dist/DataTable-BAf4Obr9.js +140 -0
  7. package/dist/{Legend-CyYXMSsW.js → Legend-8_V5egWW.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-Cq4fHmA0.js} +3 -3
  9. package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-Cv_ypT0N.js} +1 -1
  10. package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B6OvfyHH.js} +3 -3
  11. package/dist/{Shape-CYVs2kYz.js → Shape-Cjca5zta.js} +1 -1
  12. package/dist/{Slicer-BTIFUO4x.js → Slicer-6w3K8gAc.js} +2 -2
  13. package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-BV4Z-NMp.js} +1 -1
  14. package/dist/{Title-D_e0SFWS.js → Title-Dz-j6ERs.js} +1 -1
  15. package/dist/{Tooltip-DjVoFYj1.js → Tooltip-BTGOEC7w.js} +1 -1
  16. package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-CsDlFB0L.js} +2 -2
  17. package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BOu5-Ohz.js} +1 -1
  18. package/dist/{img-z5p1gGfY.js → img-gBDz7xQQ.js} +1 -1
  19. package/dist/{index-BEuUtONc.js → index-BKQqb9lF.js} +37 -2
  20. package/dist/{pdf-BmUjVBni.js → pdf-Cjsn5GEE.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +35 -0
  23. package/dist/types/vue-data-ui.d.ts +35 -0
  24. package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js} +1 -1
  25. package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-aBOhgs4U.js} +1 -1
  26. package/dist/{usePrinter-DiB0_UNt.js → usePrinter-BzuXiubT.js} +2 -2
  27. package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
  28. package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-B6eM6hF3.js} +64 -64
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/vue-ui-3d-bar-DBeWmnvH.js +1369 -0
  31. package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-B5QeV3BK.js} +3 -3
  32. package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-rZFdUsgz.js} +333 -286
  33. package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-CCCuslrT.js} +2 -2
  34. package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DhJf9mvK.js} +8 -8
  35. package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-CGVtDKqZ.js} +453 -406
  36. package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-DLAR3WY8.js} +4 -4
  37. package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BXnSxoXB.js} +563 -520
  38. package/dist/vue-ui-chord-DH_MwAKX.js +1100 -0
  39. package/dist/vue-ui-circle-pack-Cx_E1R63.js +755 -0
  40. package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-CEvH1qDS.js} +2 -2
  41. package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-CvduVgEy.js} +62 -62
  42. package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-PTozKs3l.js} +2 -2
  43. package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-CsEtKJJD.js} +477 -431
  44. package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-DD7o-CxF.js} +482 -435
  45. package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-DfPYl3fu.js} +443 -398
  46. package/dist/vue-ui-flow-CSTTZHwg.js +900 -0
  47. package/dist/vue-ui-funnel-C-NUZqIo.js +666 -0
  48. package/dist/vue-ui-galaxy-BwsZnU6T.js +744 -0
  49. package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-D9MUneq0.js} +8 -8
  50. package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-Dnzs9wSf.js} +4 -4
  51. package/dist/{vue-ui-heatmap-BHq6hBaL.js → vue-ui-heatmap-CYaQIhy8.js} +501 -461
  52. package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-DMTFzl-_.js} +408 -361
  53. package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CkPotdff.js} +3 -3
  54. package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-CCE-bDOJ.js} +2 -2
  55. package/dist/vue-ui-molecule-DaN5lroq.js +702 -0
  56. package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-tM0mmZh8.js} +342 -291
  57. package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-RB4r6beI.js} +548 -502
  58. package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-CxDozHg3.js} +363 -317
  59. package/dist/vue-ui-parallel-coordinate-plot-CK9nNExU.js +979 -0
  60. package/dist/vue-ui-quadrant-C7tLJYn7.js +1483 -0
  61. package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-MUBAkrHb.js} +7 -7
  62. package/dist/vue-ui-radar-Br4K80I9.js +858 -0
  63. package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-NtvT9r_M.js} +2 -2
  64. package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-CPQjAy1g.js} +8 -8
  65. package/dist/vue-ui-ridgeline-C2M_Cjlh.js +1204 -0
  66. package/dist/vue-ui-rings-DEru-cWN.js +785 -0
  67. package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CJKkiKle.js} +594 -548
  68. package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton--twnjS2t.js} +3 -3
  69. package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-CNccdPZ7.js} +2 -2
  70. package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-9BFkkC0u.js} +4 -4
  71. package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-RYAThoA4.js} +4 -4
  72. package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DkPlmgMF.js} +4 -4
  73. package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-6EkCyYRF.js} +5 -5
  74. package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Bl3nj8zd.js} +4 -4
  75. package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B88lA7iy.js} +4 -4
  76. package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-Csj7NhT6.js} +525 -479
  77. package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-yY9NsUUI.js} +390 -343
  78. package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dg6U31ex.js} +3 -3
  79. package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-BWU7CAWP.js} +5 -5
  80. package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-DV4Y9aRL.js} +4 -4
  81. package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-C3fKamV-.js} +8 -8
  82. package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-6VAK9XyF.js} +5 -5
  83. package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-BB-KAkF7.js} +7 -7
  84. package/dist/vue-ui-treemap-GrXkD_3Z.js +1092 -0
  85. package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-Mmz6u4aX.js} +504 -461
  86. package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-DzPVRUOA.js} +416 -370
  87. package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-idRCvS5t.js} +7 -7
  88. package/dist/vue-ui-word-cloud-B2641uNP.js +811 -0
  89. package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-D6s5Eph8.js} +512 -466
  90. package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-BKTGSvfU.js} +1551 -1500
  91. package/dist/vue-ui-xy-canvas-BOQyxVRl.js +1291 -0
  92. package/package.json +1 -1
  93. package/dist/DataTable-nO6ydJO2.js +0 -133
  94. package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
  95. package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
  96. package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
  97. package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
  98. package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
  99. package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
  100. package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
  101. package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
  102. package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
  103. package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
  104. package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
  105. package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
  106. package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
  107. package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
  108. package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
@@ -1,20 +1,20 @@
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-BEuUtONc.js";
3
- import { t as me, u as Gt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Et } from "./usePrinter-DiB0_UNt.js";
5
- import { u as Rt, B as Bt } from "./useLoading-D7YHNtLX.js";
6
- import { u as ot } from "./useNestedProp-DhLFhguL.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-z5p1gGfY.js";
11
- import jt from "./Title-D_e0SFWS.js";
12
- import Yt from "./Legend-CyYXMSsW.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 = {
1
+ import { defineAsyncComponent as H, computed as g, ref as h, toRefs as zt, watch as le, shallowRef as Ke, onMounted as Qe, onBeforeUnmount as et, watchEffect as Tt, createElementBlock as v, openBlock as n, unref as i, normalizeStyle as ae, normalizeClass as tt, createBlock as I, createCommentVNode as b, createElementVNode as c, createSlots as lt, withCtx as p, renderSlot as x, normalizeProps as se, guardReactiveProps as oe, createVNode as at, withDirectives as j, Fragment as C, renderList as A, toDisplayString as _, vShow as Y, Teleport as Dt, createTextVNode as _e, resolveDynamicComponent as It, mergeProps as Ot, nextTick as Ft } from "vue";
2
+ import { u as Ht, c as st, t as Pt, b as Gt, o as Et, f as ot, g as Bt, h as nt, D as Rt, i as w, k as P, X as rt, s as ut, l as Z, j as J, v as Vt, w as Ut } from "./index-BKQqb9lF.js";
3
+ import { t as ke, u as Wt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as qt } from "./usePrinter-BzuXiubT.js";
5
+ import { u as jt, B as Yt } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as it } from "./useNestedProp-aBOhgs4U.js";
7
+ import { u as Zt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Jt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import { u as Kt } from "./useTimeLabelCollider-CIsgDrl9.js";
10
+ import Qt from "./img-gBDz7xQQ.js";
11
+ import el from "./Title-Dz-j6ERs.js";
12
+ import tl from "./Legend-8_V5egWW.js";
13
+ import { _ as ll } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const al = ["id"], sl = ["id"], ol = ["xmlns", "viewBox"], nl = ["x", "y", "width", "height"], rl = { key: 1 }, ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], il = { key: 2 }, cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], dl = ["transform", "font-size", "fill"], hl = ["x", "y", "font-size", "fill", "font-weight", "onMouseenter", "onMouseleave", "onClick"], fl = ["x", "y", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], yl = ["x", "y", "font-size", "fill"], bl = ["transform", "font-size", "fill", "font-weight", "text-anchor"], gl = ["d", "stroke", "stroke-width", "stroke-dasharray"], ml = ["d", "stroke", "stroke-width", "stroke-dasharray"], pl = ["x", "y", "height", "width", "fill"], xl = ["transform", "fill", "font-size"], _l = ["id"], kl = ["stop-color"], Cl = ["stop-color"], wl = ["stop-color"], $l = ["id"], Ll = ["stop-color"], Al = ["stop-color"], Nl = ["stop-color"], Sl = ["id"], Ml = ["stop-color"], Xl = ["stop-color"], zl = ["stop-color"], Tl = ["id"], Dl = ["stop-color"], Il = ["stop-color"], Ol = ["stop-color"], Fl = ["id"], Hl = ["stop-color"], Pl = ["stop-color"], Gl = ["stop-color"], El = ["id"], Bl = ["stop-color"], Rl = ["stop-color"], Vl = ["id"], Ul = ["stop-color"], Wl = ["stop-color"], ql = { key: 0 }, jl = { key: 0 }, Yl = ["d", "fill"], Zl = { key: 1 }, Jl = ["x", "y", "height", "width", "fill"], Kl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ql = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ea = { key: 7 }, ta = ["x", "y", "fill", "font-size"], la = { key: 8 }, aa = ["x", "y", "fill", "font-size"], sa = ["x", "y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], oa = {
15
15
  key: 4,
16
16
  class: "vue-data-ui-watermark"
17
- }, ea = ["id"], ta = ["xmlns", "height", "width"], la = ["fill"], aa = ["innerHTML"], sa = {
17
+ }, na = ["id"], ra = ["xmlns", "height", "width"], ua = ["fill"], ia = ["innerHTML"], ca = {
18
18
  __name: "vue-ui-dumbbell",
19
19
  props: {
20
20
  config: {
@@ -31,18 +31,18 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
31
31
  }
32
32
  },
33
33
  emits: ["selectDatapoint"],
34
- setup(nt, { expose: rt, emit: oa }) {
35
- const ut = U(() => import("./vue-ui-accordion-B4YfUjZ5.js")), it = U(() => import("./DataTable-nO6ydJO2.js")), ct = U(() => import("./PenAndPaper-zym5uEeN.js")), vt = U(() => import("./UserOptions-z0NWZ7aQ.js")), dt = U(() => import("./PackageVersion-B6M-3jRt.js")), { vue_ui_dumbbell: ht } = zt(), N = nt, Z = g({
34
+ setup(ct, { expose: vt, emit: va }) {
35
+ const dt = H(() => import("./BaseIcon-DLesaZpW.js")), ht = H(() => import("./vue-ui-accordion-B5QeV3BK.js")), ft = H(() => import("./DataTable-BAf4Obr9.js")), yt = H(() => import("./PenAndPaper-B6OvfyHH.js")), bt = H(() => import("./UserOptions-CsDlFB0L.js")), gt = H(() => import("./PackageVersion-Cv_ypT0N.js")), mt = H(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_dumbbell: pt } = Ht(), N = ct, K = 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
- }), 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),
42
+ }), f = h(st()), Ce = h(0), S = h(null), we = h(null), $e = h(null), Le = h(null), Ae = h(null), Ne = h(0), Se = h(0), Me = h(0), Xe = h(!1), U = h(null), ne = h(null), re = h(null), Q = h(null), ue = h(null), O = h(null), r = h(null), F = h(!1), e = h(de()), { loading: ie, FINAL_DATASET: ce, manualLoading: xt } = jt({
43
+ ...zt(N),
44
44
  FINAL_CONFIG: e,
45
- prepareConfig: ie,
45
+ prepareConfig: de,
46
46
  skeletonDataset: [
47
47
  { name: "_", start: 21, end: 34 },
48
48
  { name: "_", start: 13, end: 21 },
@@ -50,7 +50,7 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
50
50
  { name: "_", start: 5, end: 8 },
51
51
  { name: "_", start: 3, end: 5 }
52
52
  ],
53
- skeletonConfig: Tt({
53
+ skeletonConfig: Pt({
54
54
  defaultConfig: e.value,
55
55
  userConfig: {
56
56
  userOptions: { show: !1 },
@@ -92,163 +92,163 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
92
92
  }
93
93
  }
94
94
  })
95
- }), { userOptionsVisible: ue, setUserOptionsVisibility: Ne, keepUserOptionState: Se } = Vt({ config: e.value }), { svgRef: Me } = Ut({ config: e.value.style.chart.title });
96
- function ie() {
97
- const l = ot({
95
+ }), { userOptionsVisible: ve, setUserOptionsVisibility: ze, keepUserOptionState: Te } = Zt({ config: e.value }), { svgRef: De } = Jt({ config: e.value.style.chart.title });
96
+ function de() {
97
+ const l = it({
98
98
  userConfig: N.config,
99
- defaultConfig: ht
99
+ defaultConfig: pt
100
100
  });
101
101
  return l.theme ? {
102
- ...ot({
103
- userConfig: It.vue_ui_dumbbell[l.theme] || N.config,
102
+ ...it({
103
+ userConfig: Gt.vue_ui_dumbbell[l.theme] || N.config,
104
104
  defaultConfig: l
105
105
  })
106
106
  } : l;
107
107
  }
108
- ge(() => N.config, (l) => {
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
- }, { deep: !0 }), ge(() => re.value, (l) => {
111
- Array.isArray(l) && l.length > 0 && (yt.value = !1), Ge(), Ee();
108
+ le(() => N.config, (l) => {
109
+ ie.value || (e.value = de()), ve.value = !e.value.userOptions.showOnChartHover, Oe(), Ne.value += 1, Se.value += 1, Me.value += 1, B.value = e.value.style.chart.rowHeight, R.value = e.value.style.chart.width, X.value.showTable = e.value.table.show;
110
+ }, { deep: !0 }), le(() => ce.value, (l) => {
111
+ Array.isArray(l) && l.length > 0 && (xt.value = !1), Ve(), Ue();
112
112
  }, { deep: !0 });
113
- const S = Ye(null), P = Ye(null);
114
- Ze(() => {
115
- Ae.value = !0, ze();
113
+ const M = Ke(null), G = Ke(null);
114
+ Qe(() => {
115
+ Xe.value = !0, Oe();
116
116
  });
117
- const Xe = g(() => !!e.value.debug);
118
- function ze() {
119
- if (Ot(N.dataset) ? tt({
117
+ const Ie = g(() => !!e.value.debug);
118
+ function Oe() {
119
+ if (Et(N.dataset) ? ot({
120
120
  componentName: "VueUiDumbbell",
121
121
  type: "dataset",
122
- debug: Xe.value
122
+ debug: Ie.value
123
123
  }) : N.dataset.forEach((l, s) => {
124
- Ft({
124
+ Bt({
125
125
  datasetObject: l,
126
126
  requiredAttributes: ["name", "start", "end"]
127
127
  }).forEach((t) => {
128
- Z.value = !1, tt({
128
+ K.value = !1, ot({
129
129
  componentName: "VueUiDumbbell",
130
130
  type: "datasetSerieAttribute",
131
131
  property: t,
132
132
  index: s,
133
- debug: Xe.value
133
+ debug: Ie.value
134
134
  });
135
135
  });
136
136
  }), e.value.responsive) {
137
- const l = me(() => {
138
- const { width: s, height: t } = Gt({
139
- chart: I.value,
140
- title: e.value.style.chart.title.text ? xe.value : null,
141
- legend: e.value.style.chart.legend.show ? _e.value : null,
142
- source: ke.value,
143
- noTitle: Ce.value
137
+ const l = ke(() => {
138
+ const { width: s, height: t } = Wt({
139
+ chart: S.value,
140
+ title: e.value.style.chart.title.text ? we.value : null,
141
+ legend: e.value.style.chart.legend.show ? $e.value : null,
142
+ source: Le.value,
143
+ noTitle: Ae.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), qe();
146
+ R.value = Math.max(0.1, s), B.value = Math.max(0.1, (Math.max(0.1, t) - (a + u)) / ce.value.length), Ze();
147
147
  });
148
148
  });
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);
149
+ M.value && (G.value && M.value.unobserve(G.value), M.value.disconnect()), M.value = new ResizeObserver(l), G.value = S.value.parentNode, M.value.observe(G.value);
150
150
  }
151
- qe();
151
+ Ze();
152
152
  }
153
- Je(() => {
154
- L.value != null && (cancelAnimationFrame(L.value), L.value = null), S.value && (P.value && S.value.unobserve(P.value), S.value.disconnect());
153
+ et(() => {
154
+ L.value != null && (cancelAnimationFrame(L.value), L.value = null), M.value && (G.value && M.value.unobserve(G.value), M.value.disconnect());
155
155
  });
156
- const { isPrinting: Te, isImaging: Ie, generatePdf: Oe, generateImage: Fe } = Et({
157
- elementId: `dumbbell_${y.value}`,
156
+ const { isPrinting: Fe, isImaging: He, generatePdf: Pe, generateImage: Ge } = qt({
157
+ elementId: `dumbbell_${f.value}`,
158
158
  fileName: e.value.style.chart.title.text || "vue-ui-dumbbell",
159
159
  options: e.value.userOptions.print
160
- }), ft = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), D = h({
160
+ }), _t = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), X = h({
161
161
  showTable: e.value.table.show
162
162
  });
163
- ge(e, () => {
164
- D.value = {
163
+ le(e, () => {
164
+ X.value = {
165
165
  showTable: e.value.table.show
166
166
  };
167
167
  }, { immediate: !0 });
168
- const G = g(() => re.value.map((l, s) => ({
168
+ const E = g(() => ce.value.map((l, s) => ({
169
169
  ...l,
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;
170
+ start: nt(l.start),
171
+ end: nt(l.end),
172
+ id: l.id ?? `${String(l.name)}__${String(l.start)}__${String(l.end)}__${st()}`
173
+ }))), Ee = g(() => {
174
+ const l = e.value.style.chart.grid, s = E.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;
175
175
  return { min: u, max: d };
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() {
176
+ }), $ = g(() => Rt(Ee.value.min, Ee.value.max, e.value.style.chart.grid.scaleSteps)), B = h(e.value.style.chart.rowHeight), R = h(e.value.style.chart.width);
177
+ function kt() {
178
178
  let l = 0;
179
- se.value && (l = Array.from(se.value.querySelectorAll("text")).reduce((a, u) => {
179
+ re.value && (l = Array.from(re.value.querySelectorAll("text")).reduce((a, u) => {
180
180
  const d = u.getComputedTextLength();
181
181
  return d > a ? d : a;
182
182
  }, 0));
183
- const s = ae.value ? ae.value.getBoundingClientRect().width : 0;
183
+ const s = ne.value ? ne.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), gt = me((l) => {
187
- ce.value = l;
186
+ const he = h(0), Ct = ke((l) => {
187
+ he.value = l;
188
188
  }, 100);
189
- At((l) => {
190
- const s = J.value;
189
+ Tt((l) => {
190
+ const s = Q.value;
191
191
  if (!s) return;
192
192
  const t = new ResizeObserver((a) => {
193
- gt(a[0].contentRect.height);
193
+ Ct(a[0].contentRect.height);
194
194
  });
195
195
  t.observe(s), l(() => t.disconnect());
196
- }), Je(() => {
197
- ce.value = 0;
196
+ }), et(() => {
197
+ he.value = 0;
198
198
  });
199
- const Pe = g(() => {
199
+ const Be = g(() => {
200
200
  F.value;
201
201
  let l = 0;
202
- oe.value && (l = oe.value.getBBox().height);
202
+ ue.value && (l = ue.value.getBBox().height);
203
203
  let s = 0;
204
- return J.value && (s = ce.value), l + s;
205
- }), ve = g(() => G.value.length);
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))
204
+ return Q.value && (s = he.value), l + s;
205
+ }), fe = g(() => E.value.length);
206
+ function Re(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))
209
209
  return t.left;
210
210
  const m = d - u;
211
- return m <= 0 ? t.left : t.left + (a - u) / m * f;
211
+ return m <= 0 ? t.left : t.left + (a - u) / m * y;
212
212
  }
213
213
  const o = g(() => {
214
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);
215
+ const l = kt(), s = e.value.style.chart.padding, t = e.value.style.chart.labels.axis.xLabel ? e.value.style.chart.labels.axis.xLabelOffsetY : 0, a = B.value * fe.value - Be.value - s.top - s.bottom - t, u = a / fe.value, d = B.value * fe.value, y = R.value - l - s.left - s.right, m = $.value.ticks.length * (y / $.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 - Pe.value - t,
221
- width: f,
220
+ bottom: d - e.value.style.chart.padding.bottom - Be.value - t,
221
+ width: y,
222
222
  height: a,
223
223
  rowHeight: u,
224
224
  absoluteHeight: d,
225
225
  widthPlotReference: m
226
226
  };
227
- }), M = g(() => Math.min(E.value / 2 * 0.7, e.value.style.chart.plots.radius)), B = h([]), k = g({
227
+ }), z = g(() => Math.min(B.value / 2 * 0.7, e.value.style.chart.plots.radius)), W = h([]), k = g({
228
228
  get() {
229
229
  const l = o.value, s = $.value;
230
- return B.value.map((t, a) => {
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;
230
+ return W.value.map((t, a) => {
231
+ const u = Re(t.start, s, l), d = Re(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, D = ![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), Xt = m ? e.value.style.chart.plots.evaluationColors.positive : D ? 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
- isNegative: z,
236
- isNeutral: je,
237
- evaluationColor: $t,
238
- evaluationGrad: `url(#${m ? "positive" : z ? "negative" : "neutral"}_grad_${y.value})`,
235
+ isNegative: D,
236
+ isNeutral: Je,
237
+ evaluationColor: Xt,
238
+ evaluationGrad: `url(#${m ? "positive" : D ? "negative" : "neutral"}_grad_${f.value})`,
239
239
  startX: u,
240
240
  endX: d,
241
- centerX: f,
241
+ centerX: y,
242
242
  y: l.top + a * l.rowHeight + l.rowHeight / 2
243
243
  };
244
244
  });
245
245
  },
246
246
  set(l) {
247
- B.value = l;
247
+ W.value = l;
248
248
  }
249
249
  });
250
- function Ge() {
251
- B.value = G.value.map((l) => {
250
+ function Ve() {
251
+ W.value = E.value.map((l) => {
252
252
  const s = Number(l.start);
253
253
  return {
254
254
  ...l,
@@ -257,37 +257,37 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
257
257
  });
258
258
  }
259
259
  const L = h(null);
260
- Ze(() => {
261
- Ee();
260
+ Qe(() => {
261
+ Ue();
262
262
  });
263
- function Ee() {
264
- if (L.value != null && (cancelAnimationFrame(L.value), L.value = null), Ge(), !e.value.useAnimation) {
265
- k.value = B.value.map((a) => {
263
+ function Ue() {
264
+ if (L.value != null && (cancelAnimationFrame(L.value), L.value = null), Ve(), !e.value.useAnimation) {
265
+ k.value = W.value.map((a) => {
266
266
  const u = Number(a.end);
267
267
  return { ...a, endVal: Number.isFinite(u) ? u : a.endVal };
268
268
  });
269
269
  return;
270
270
  }
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), f = Number.isFinite(u) ? u : 0;
273
- return (Number.isFinite(d) ? d : f) - f;
271
+ const l = Math.max(1, Math.min(100, e.value.animationSpeed || 100)) / 100, s = E.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;
274
274
  }), t = () => {
275
275
  let a = !0;
276
- k.value = B.value.map((u, d) => {
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 };
276
+ k.value = W.value.map((u, d) => {
277
+ const y = Number.isFinite(Number(u.end)) ? Number(u.end) : u.endVal, m = u.endVal + s[d] * l, D = s[d] >= 0 ? Math.min(m, y) : Math.max(m, y);
278
+ return D !== y && (a = !1), { ...u, endVal: D };
279
279
  }), a ? L.value = null : L.value = requestAnimationFrame(t);
280
280
  };
281
281
  L.value = requestAnimationFrame(t);
282
282
  }
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 }
283
+ const We = 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_${f.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_${f.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_${f.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_${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(() => ({
288
+ { name: e.value.style.chart.legend.labelStart, color: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${f.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_${f.value})` : e.value.style.chart.plots.endColor }
290
+ ]), wt = 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,
@@ -295,7 +295,7 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
295
295
  paddingBottom: 12,
296
296
  paddingTop: 12,
297
297
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
298
- })), X = g(() => {
298
+ })), T = g(() => {
299
299
  const l = k.value.map((t) => ({
300
300
  name: t.name
301
301
  })), s = k.value.map((t) => ({
@@ -303,33 +303,33 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
303
303
  end: t.end
304
304
  }));
305
305
  return { head: l, body: s };
306
- }), K = g(() => {
306
+ }), ee = g(() => {
307
307
  const l = [
308
308
  e.value.table.columnNames.series,
309
309
  e.value.table.columnNames.start,
310
310
  e.value.table.columnNames.end,
311
311
  e.value.table.columnNames.progression
312
- ], s = X.value.head.map((u, d) => {
313
- const f = w({
312
+ ], s = T.value.head.map((u, d) => {
313
+ const y = w({
314
314
  p: e.value.style.chart.labels.prefix,
315
- v: X.value.body[d].start,
315
+ v: T.value.body[d].start,
316
316
  s: e.value.style.chart.labels.suffix,
317
317
  r: e.value.table.td.roundingValue
318
318
  }), m = w({
319
319
  p: e.value.style.chart.labels.prefix,
320
- v: X.value.body[d].end,
320
+ v: T.value.body[d].end,
321
321
  s: e.value.style.chart.labels.suffix,
322
322
  r: e.value.table.td.roundingValue
323
- }), z = w({
324
- v: 100 * (X.value.body[d].end / X.value.body[d].start - 1),
323
+ }), D = w({
324
+ v: 100 * (T.value.body[d].end / T.value.body[d].start - 1),
325
325
  s: "%",
326
326
  r: e.value.table.td.roundingPercentage
327
327
  });
328
328
  return [
329
329
  { name: u.name },
330
- f,
330
+ y,
331
331
  m,
332
- z
332
+ D
333
333
  ];
334
334
  }), t = {
335
335
  th: {
@@ -356,31 +356,31 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
356
356
  config: t
357
357
  };
358
358
  });
359
- function Be(l = null) {
360
- Xt(() => {
361
- const s = X.value.head.map((u, d) => [[
359
+ function ye(l = null) {
360
+ Ft(() => {
361
+ const s = T.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 = Pt(t);
364
- l ? l(a) : Dt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
363
+ ], [T.value.body[d].start], [T.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 = Vt(t);
364
+ l ? l(a) : Ut({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
365
365
  });
366
366
  }
367
367
  const V = h(!1);
368
- function Ve(l) {
369
- V.value = l, pe.value += 1;
368
+ function qe(l) {
369
+ V.value = l, Ce.value += 1;
370
370
  }
371
- function pt() {
372
- return G.value;
371
+ function $t() {
372
+ return E.value;
373
373
  }
374
- function Ue() {
375
- D.value.showTable = !D.value.showTable;
374
+ function je() {
375
+ X.value.showTable = !X.value.showTable;
376
376
  }
377
- const Q = h(!1);
378
- function de() {
379
- Q.value = !Q.value;
377
+ const te = h(!1);
378
+ function be() {
379
+ te.value = !te.value;
380
380
  }
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 });
381
+ async function Lt({ scale: l = 2 } = {}) {
382
+ if (!S.value) return;
383
+ const { width: s, height: t } = S.value.getBoundingClientRect(), a = s / t, { imageUri: u, base64: d } = await Qt({ domElement: S.value, base64: !0, img: !0, scale: l });
384
384
  return {
385
385
  imageUri: u,
386
386
  base64: d,
@@ -390,30 +390,30 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
390
390
  aspectRatio: a
391
391
  };
392
392
  }
393
- const We = g(() => $.value.ticks), _t = g(() => ({ start: 0, end: We.value.length }));
394
- Wt({
395
- timeLabelsEls: J,
396
- timeLabels: We,
397
- slicer: _t,
393
+ const Ye = g(() => $.value.ticks), At = g(() => ({ start: 0, end: Ye.value.length }));
394
+ Kt({
395
+ timeLabelsEls: Q,
396
+ timeLabels: Ye,
397
+ slicer: At,
398
398
  configRef: e,
399
399
  rotationPath: ["style", "chart", "labels", "xAxisLabels", "rotation"],
400
400
  autoRotatePath: ["style", "chart", "labels", "xAxisLabels", "autoRotate", "enable"],
401
401
  isAutoSize: !1,
402
402
  width: R,
403
- height: E,
403
+ height: B,
404
404
  targetClass: ".vue-ui-dumbbell-scale-label",
405
405
  rotation: e.value.style.chart.labels.xAxisLabels.autoRotate.angle
406
406
  });
407
- function kt({
407
+ function Nt({
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), f = s * 1.2;
414
- return d < f;
413
+ const a = l / 3, u = l / 1.3, d = Math.abs(u - a), y = s * 1.2;
414
+ return d < y;
415
415
  }
416
- const Ct = /* @__PURE__ */ (() => {
416
+ const St = /* @__PURE__ */ (() => {
417
417
  let l = null, s = 0;
418
418
  const t = 1;
419
419
  return (a) => {
@@ -423,36 +423,36 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
423
423
  }
424
424
  l === null || l !== a ? (l = a, s = 1) : (s += 1, s >= t && (F.value = a, l = null, s = 0));
425
425
  };
426
- })(), qe = me(() => {
426
+ })(), Ze = ke(() => {
427
427
  requestAnimationFrame(() => {
428
428
  requestAnimationFrame(() => {
429
- const l = kt({
429
+ const l = Nt({
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
- Ct(l);
434
+ St(l);
435
435
  });
436
436
  });
437
437
  }, 100);
438
- function he({ datapoint: l, seriesIndex: s }) {
438
+ function ge({ datapoint: l, seriesIndex: s }) {
439
439
  O.value = s, r.value = l, e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: s });
440
440
  }
441
- function ye({ datapoint: l, seriesIndex: s }) {
441
+ function me({ datapoint: l, seriesIndex: s }) {
442
442
  O.value = null, r.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s });
443
443
  }
444
- function fe({ datapoint: l, seriesIndex: s }) {
444
+ function pe({ datapoint: l, seriesIndex: s }) {
445
445
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: s });
446
446
  }
447
- const be = g(() => {
447
+ const xe = g(() => {
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
- }), wt = g(() => {
451
+ }), Mt = 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 = "";
455
- return l && (t = H(
455
+ return l && (t = P(
456
456
  e.value.style.chart.labels.formatter,
457
457
  r.value.start,
458
458
  w({
@@ -462,7 +462,7 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
462
462
  r: e.value.style.chart.labels.startLabels.rounding
463
463
  }),
464
464
  { datapoint: r.value, seriesIndex: O.value }
465
- )), s && (a = H(
465
+ )), s && (a = P(
466
466
  e.value.style.chart.labels.formatter,
467
467
  r.value.end,
468
468
  w({
@@ -473,48 +473,79 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
473
473
  }),
474
474
  { datapoint: r.value, seriesIndex: O.value }
475
475
  )), l && s ? `${t} → ${a}` : l && !s ? t : s && !l ? a : "";
476
+ }), q = g(() => {
477
+ const l = e.value.table.useDialog && !e.value.table.show, s = X.value.showTable;
478
+ return {
479
+ component: l ? mt : ht,
480
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
481
+ props: l ? {
482
+ backgroundColor: e.value.table.th.backgroundColor,
483
+ color: e.value.table.th.color,
484
+ headerColor: e.value.table.th.color,
485
+ headerBg: e.value.table.th.backgroundColor,
486
+ isFullscreen: V.value,
487
+ fullscreenParent: S.value,
488
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
489
+ } : {
490
+ hideDetails: !0,
491
+ config: {
492
+ open: s,
493
+ maxHeight: 1e4,
494
+ body: {
495
+ backgroundColor: e.value.style.chart.backgroundColor,
496
+ color: e.value.style.chart.color
497
+ },
498
+ head: {
499
+ backgroundColor: e.value.style.chart.backgroundColor,
500
+ color: e.value.style.chart.color
501
+ }
502
+ }
503
+ }
504
+ };
476
505
  });
477
- return rt({
478
- getData: pt,
479
- getImage: xt,
480
- generatePdf: Oe,
481
- generateCsv: Be,
482
- generateImage: Fe,
483
- toggleTable: Ue,
484
- toggleAnnotator: de,
485
- toggleFullscreen: Ve
506
+ return le(() => X.value.showTable, (l) => {
507
+ e.value.table.show || (l && e.value.table.useDialog && U.value ? U.value.open() : "close" in U.value && U.value.close());
508
+ }), vt({
509
+ getData: $t,
510
+ getImage: Lt,
511
+ generatePdf: Pe,
512
+ generateCsv: ye,
513
+ generateImage: Ge,
514
+ toggleTable: je,
515
+ toggleAnnotator: be,
516
+ toggleFullscreen: qe
486
517
  }), (l, s) => (n(), v("div", {
487
518
  ref_key: "dumbbellChart",
488
- ref: I,
489
- class: Ke(`vue-ui-dumbbell ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
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_${y.value}`,
492
- onMouseenter: s[1] || (s[1] = () => i(Ne)(!0)),
493
- onMouseleave: s[2] || (s[2] = () => i(Ne)(!1))
519
+ ref: S,
520
+ class: tt(`vue-ui-dumbbell ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
521
+ style: ae(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
522
+ id: `dumbbell_${f.value}`,
523
+ onMouseenter: s[3] || (s[3] = () => i(ze)(!0)),
524
+ onMouseleave: s[4] || (s[4] = () => i(ze)(!1))
494
525
  }, [
495
- e.value.userOptions.buttons.annotator ? (n(), T(i(ct), {
526
+ e.value.userOptions.buttons.annotator ? (n(), I(i(yt), {
496
527
  key: 0,
497
- svgRef: i(Me),
528
+ svgRef: i(De),
498
529
  backgroundColor: e.value.style.chart.backgroundColor,
499
530
  color: e.value.style.chart.color,
500
- active: Q.value,
501
- onClose: de
531
+ active: te.value,
532
+ onClose: be
502
533
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
503
- ft.value ? (n(), v("div", {
534
+ _t.value ? (n(), v("div", {
504
535
  key: 1,
505
536
  ref_key: "noTitle",
506
- ref: Ce,
537
+ ref: Ae,
507
538
  class: "vue-data-ui-no-title-space",
508
539
  style: "height:36px; width: 100%;background:transparent"
509
540
  }, null, 512)) : b("", !0),
510
541
  e.value.style.chart.title.text ? (n(), v("div", {
511
542
  key: 2,
512
543
  ref_key: "chartTitle",
513
- ref: xe,
544
+ ref: we,
514
545
  style: "width:100%;background:transparent;padding-bottom:24px"
515
546
  }, [
516
- (n(), T(jt, {
517
- key: `title_${we.value}`,
547
+ (n(), I(el, {
548
+ key: `title_${Ne.value}`,
518
549
  config: {
519
550
  title: {
520
551
  cy: "donut-div-title",
@@ -528,16 +559,16 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
528
559
  }, null, 8, ["config"]))
529
560
  ], 512)) : b("", !0),
530
561
  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), {
562
+ id: `legend-top-${f.value}`
563
+ }, null, 8, sl),
564
+ e.value.userOptions.show && K.value && (i(Te) || i(ve)) ? (n(), I(i(bt), {
534
565
  ref: "details",
535
- key: `user_option_${pe.value}`,
566
+ key: `user_option_${Ce.value}`,
536
567
  backgroundColor: e.value.style.chart.backgroundColor,
537
568
  color: e.value.style.chart.color,
538
- isPrinting: i(Te),
539
- isImaging: i(Ie),
540
- uid: y.value,
569
+ isPrinting: i(Fe),
570
+ isImaging: i(He),
571
+ uid: f.value,
541
572
  hasPdf: e.value.userOptions.buttons.pdf,
542
573
  hasXls: e.value.userOptions.buttons.csv,
543
574
  hasImg: e.value.userOptions.buttons.img,
@@ -545,81 +576,81 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
545
576
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
546
577
  isFullscreen: V.value,
547
578
  titles: { ...e.value.userOptions.buttonTitles },
548
- chartElement: I.value,
579
+ chartElement: S.value,
549
580
  position: e.value.userOptions.position,
550
581
  hasAnnotator: e.value.userOptions.buttons.annotator,
551
- isAnnotation: Q.value,
582
+ isAnnotation: te.value,
552
583
  callbacks: e.value.userOptions.callbacks,
553
584
  printScale: e.value.userOptions.print.scale,
554
- onToggleFullscreen: Ve,
555
- onGeneratePdf: i(Oe),
556
- onGenerateCsv: Be,
557
- onGenerateImage: i(Fe),
558
- onToggleTable: Ue,
559
- onToggleAnnotator: de,
560
- style: ee({
561
- visibility: i(Se) ? i(ue) ? "visible" : "hidden" : "visible"
585
+ onToggleFullscreen: qe,
586
+ onGeneratePdf: i(Pe),
587
+ onGenerateCsv: ye,
588
+ onGenerateImage: i(Ge),
589
+ onToggleTable: je,
590
+ onToggleAnnotator: be,
591
+ style: ae({
592
+ visibility: i(Te) ? i(ve) ? "visible" : "hidden" : "visible"
562
593
  })
563
- }, Nt({ _: 2 }, [
594
+ }, lt({ _: 2 }, [
564
595
  l.$slots.menuIcon ? {
565
596
  name: "menuIcon",
566
- fn: x(({ isOpen: t, color: a }) => [
567
- p(l.$slots, "menuIcon", te(le({ isOpen: t, color: a })), void 0, !0)
597
+ fn: p(({ isOpen: t, color: a }) => [
598
+ x(l.$slots, "menuIcon", se(oe({ isOpen: t, color: a })), void 0, !0)
568
599
  ]),
569
600
  key: "0"
570
601
  } : void 0,
571
602
  l.$slots.optionPdf ? {
572
603
  name: "optionPdf",
573
- fn: x(() => [
574
- p(l.$slots, "optionPdf", {}, void 0, !0)
604
+ fn: p(() => [
605
+ x(l.$slots, "optionPdf", {}, void 0, !0)
575
606
  ]),
576
607
  key: "1"
577
608
  } : void 0,
578
609
  l.$slots.optionCsv ? {
579
610
  name: "optionCsv",
580
- fn: x(() => [
581
- p(l.$slots, "optionCsv", {}, void 0, !0)
611
+ fn: p(() => [
612
+ x(l.$slots, "optionCsv", {}, void 0, !0)
582
613
  ]),
583
614
  key: "2"
584
615
  } : void 0,
585
616
  l.$slots.optionImg ? {
586
617
  name: "optionImg",
587
- fn: x(() => [
588
- p(l.$slots, "optionImg", {}, void 0, !0)
618
+ fn: p(() => [
619
+ x(l.$slots, "optionImg", {}, void 0, !0)
589
620
  ]),
590
621
  key: "3"
591
622
  } : void 0,
592
623
  l.$slots.optionTable ? {
593
624
  name: "optionTable",
594
- fn: x(() => [
595
- p(l.$slots, "optionTable", {}, void 0, !0)
625
+ fn: p(() => [
626
+ x(l.$slots, "optionTable", {}, void 0, !0)
596
627
  ]),
597
628
  key: "4"
598
629
  } : void 0,
599
630
  l.$slots.optionFullscreen ? {
600
631
  name: "optionFullscreen",
601
- fn: x(({ toggleFullscreen: t, isFullscreen: a }) => [
602
- p(l.$slots, "optionFullscreen", te(le({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
632
+ fn: p(({ toggleFullscreen: t, isFullscreen: a }) => [
633
+ x(l.$slots, "optionFullscreen", se(oe({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
603
634
  ]),
604
635
  key: "5"
605
636
  } : void 0,
606
637
  l.$slots.optionAnnotator ? {
607
638
  name: "optionAnnotator",
608
- fn: x(({ toggleAnnotator: t, isAnnotator: a }) => [
609
- p(l.$slots, "optionAnnotator", te(le({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
639
+ fn: p(({ toggleAnnotator: t, isAnnotator: a }) => [
640
+ x(l.$slots, "optionAnnotator", se(oe({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
610
641
  ]),
611
642
  key: "6"
612
643
  } : void 0
613
644
  ]), 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
645
  (n(), v("svg", {
615
646
  ref_key: "svgRef",
616
- ref: Me,
617
- xmlns: i(at),
618
- class: Ke({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
647
+ ref: De,
648
+ xmlns: i(rt),
649
+ class: tt({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
619
650
  viewBox: `0 0 ${R.value} ${o.value.absoluteHeight <= 0 ? 10 : o.value.absoluteHeight}`,
620
- style: ee(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
651
+ style: ae(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
621
652
  }, [
622
- St(i(dt)),
653
+ at(i(gt)),
623
654
  l.$slots["chart-background"] ? (n(), v("foreignObject", {
624
655
  key: 0,
625
656
  x: o.value.left,
@@ -630,9 +661,9 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
630
661
  pointerEvents: "none"
631
662
  }
632
663
  }, [
633
- p(l.$slots, "chart-background", {}, void 0, !0)
634
- ], 8, el)) : b("", !0),
635
- e.value.style.chart.grid.verticalGrid.show ? (n(), v("g", tl, [
664
+ x(l.$slots, "chart-background", {}, void 0, !0)
665
+ ], 8, nl)) : b("", !0),
666
+ e.value.style.chart.grid.verticalGrid.show ? (n(), v("g", rl, [
636
667
  (n(!0), v(C, null, A($.value.ticks, (t, a) => (n(), v("line", {
637
668
  x1: o.value.left + a * o.value.width / ($.value.ticks.length - 1),
638
669
  x2: o.value.left + a * o.value.width / ($.value.ticks.length - 1),
@@ -641,10 +672,10 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
641
672
  stroke: e.value.style.chart.grid.verticalGrid.stroke,
642
673
  "stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
643
674
  "stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray
644
- }, null, 8, ll))), 256))
675
+ }, null, 8, ul))), 256))
645
676
  ])) : 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", {
677
+ e.value.style.chart.grid.horizontalGrid.show ? (n(), v("g", il, [
678
+ (n(!0), v(C, null, A(E.value, (t, a) => (n(), v("line", {
648
679
  x1: o.value.left,
649
680
  x2: o.value.right,
650
681
  y1: o.value.top + a * o.value.rowHeight,
@@ -652,7 +683,7 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
652
683
  stroke: e.value.style.chart.grid.horizontalGrid.stroke,
653
684
  "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
654
685
  "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
655
- }, null, 8, sl))), 256)),
686
+ }, null, 8, cl))), 256)),
656
687
  c("line", {
657
688
  x1: o.value.left,
658
689
  x2: o.value.right,
@@ -661,21 +692,21 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
661
692
  stroke: e.value.style.chart.grid.horizontalGrid.stroke,
662
693
  "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
663
694
  "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
664
- }, null, 8, ol)
695
+ }, null, 8, vl)
665
696
  ])) : b("", !0),
666
697
  e.value.style.chart.labels.axis.yLabel ? (n(), v("text", {
667
698
  key: 3,
668
699
  ref_key: "yAxisLabel",
669
- ref: ae,
700
+ ref: ne,
670
701
  transform: `translate(${e.value.style.chart.labels.axis.fontSize}, ${o.value.absoluteHeight / 2}), rotate(-90)`,
671
702
  "font-size": e.value.style.chart.labels.axis.fontSize,
672
703
  fill: e.value.style.chart.labels.axis.color,
673
704
  "text-anchor": "middle"
674
- }, _(e.value.style.chart.labels.axis.yLabel), 9, nl)) : b("", !0),
705
+ }, _(e.value.style.chart.labels.axis.yLabel), 9, dl)) : b("", !0),
675
706
  e.value.style.chart.labels.yAxisLabels.show ? (n(), v("g", {
676
707
  key: 4,
677
708
  ref_key: "serieLabels",
678
- ref: se
709
+ ref: re
679
710
  }, [
680
711
  (n(!0), v(C, null, A(k.value, (t, a) => (n(), v("text", {
681
712
  class: "vue-ui-dumbbell-serie-name",
@@ -686,10 +717,10 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
686
717
  fill: e.value.style.chart.labels.yAxisLabels.color,
687
718
  "font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
688
719
  "text-anchor": "end",
689
- onMouseenter: (u) => he({ datapoint: t, seriesIndex: a }),
690
- onMouseleave: (u) => ye({ datapoint: t, seriesIndex: a }),
691
- onClick: (u) => fe({ datapoint: t, seriesIndex: a })
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)(
720
+ onMouseenter: (u) => ge({ datapoint: t, seriesIndex: a }),
721
+ onMouseleave: (u) => me({ datapoint: t, seriesIndex: a }),
722
+ onClick: (u) => pe({ datapoint: t, seriesIndex: a })
723
+ }, _(t.name) + " " + _(F.value && e.value.style.chart.labels.yAxisLabels.showProgression ? [null, void 0].includes(t.start) || [null, void 0].includes(t.end) ? "" : `(${i(P)(
693
724
  e.value.style.chart.labels.yAxisLabels.formatter,
694
725
  100 * (t.end / t.start - 1),
695
726
  i(w)({
@@ -698,7 +729,7 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
698
729
  r: e.value.style.chart.labels.yAxisLabels.rounding
699
730
  }),
700
731
  { datapoint: t }
701
- )})` : ""), 41, rl))), 128)),
732
+ )})` : ""), 41, hl))), 128)),
702
733
  e.value.style.chart.labels.yAxisLabels.showProgression && !F.value ? (n(!0), v(C, { key: 0 }, A(k.value, (t, a) => (n(), v("text", {
703
734
  class: "vue-ui-dumbbell-serie-value",
704
735
  x: o.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
@@ -706,10 +737,10 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
706
737
  "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
707
738
  fill: e.value.style.chart.labels.yAxisLabels.color,
708
739
  "text-anchor": "end",
709
- onMouseenter: (u) => he({ datapoint: t, seriesIndex: a }),
710
- onMouseleave: (u) => ye({ datapoint: t, seriesIndex: a }),
711
- onClick: (u) => fe({ datapoint: t, seriesIndex: a })
712
- }, _([null, void 0].includes(t.start) || [null, void 0].includes(t.end) ? "" : i(H)(
740
+ onMouseenter: (u) => ge({ datapoint: t, seriesIndex: a }),
741
+ onMouseleave: (u) => me({ datapoint: t, seriesIndex: a }),
742
+ onClick: (u) => pe({ datapoint: t, seriesIndex: a })
743
+ }, _([null, void 0].includes(t.start) || [null, void 0].includes(t.end) ? "" : i(P)(
713
744
  e.value.style.chart.labels.yAxisLabels.formatter,
714
745
  100 * (t.end / t.start - 1),
715
746
  i(w)({
@@ -718,22 +749,22 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
718
749
  r: e.value.style.chart.labels.yAxisLabels.rounding
719
750
  }),
720
751
  { datapoint: t }
721
- )), 41, ul))), 256)) : b("", !0)
752
+ )), 41, fl))), 256)) : b("", !0)
722
753
  ], 512)) : b("", !0),
723
754
  e.value.style.chart.labels.axis.xLabel ? (n(), v("text", {
724
755
  key: 5,
725
756
  ref_key: "xAxisLabel",
726
- ref: oe,
757
+ ref: ue,
727
758
  x: o.value.left + o.value.width / 2,
728
759
  y: o.value.absoluteHeight - e.value.style.chart.labels.axis.fontSize / 3,
729
760
  "font-size": e.value.style.chart.labels.axis.fontSize,
730
761
  fill: e.value.style.chart.labels.axis.color,
731
762
  "text-anchor": "middle"
732
- }, _(e.value.style.chart.labels.axis.xLabel), 9, il)) : b("", !0),
763
+ }, _(e.value.style.chart.labels.axis.xLabel), 9, yl)) : b("", !0),
733
764
  e.value.style.chart.labels.xAxisLabels.show ? (n(), v("g", {
734
765
  key: 6,
735
766
  ref_key: "scaleLabels",
736
- ref: J
767
+ ref: Q
737
768
  }, [
738
769
  (n(!0), v(C, null, A($.value.ticks, (t, a) => (n(), v("text", {
739
770
  class: "vue-ui-dumbbell-scale-label",
@@ -743,7 +774,7 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
743
774
  fill: e.value.style.chart.labels.xAxisLabels.color,
744
775
  "font-weight": e.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
745
776
  "text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
746
- }, _(i(H)(
777
+ }, _(i(P)(
747
778
  e.value.style.chart.labels.formatter,
748
779
  t,
749
780
  i(w)({
@@ -753,142 +784,142 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
753
784
  r: e.value.style.chart.labels.xAxisLabels.rounding
754
785
  }),
755
786
  { datapoint: t, seriesIndex: a }
756
- )), 9, cl))), 128))
787
+ )), 9, bl))), 128))
757
788
  ], 512)) : b("", !0),
758
- W(c("g", null, [
759
- W(c("path", {
789
+ j(c("g", null, [
790
+ j(c("path", {
760
791
  d: `M ${r.value ? r.value.startX : o.value.left},${o.value.top} ${r.value ? r.value.startX : o.value.left},${o.value.bottom}`,
761
792
  stroke: r.value ? e.value.style.chart.plots.evaluationColors.enable ? r.value.evaluationColor : e.value.style.chart.plots.startColor : "transparent",
762
793
  "stroke-width": e.value.style.chart.comparisonLines.strokeWidth,
763
794
  "stroke-dasharray": e.value.style.chart.comparisonLines.strokeDasharray,
764
795
  style: { transition: "all 0.3s ease-in-out" }
765
- }, null, 8, vl), [
766
- [q, r.value !== null && ![null, void 0].includes(r.value.start)]
796
+ }, null, 8, gl), [
797
+ [Y, r.value !== null && ![null, void 0].includes(r.value.start)]
767
798
  ]),
768
- W(c("path", {
799
+ j(c("path", {
769
800
  d: `M ${r.value ? r.value.endX : o.value.left},${o.value.top} ${r.value ? r.value.endX : o.value.left},${o.value.bottom}`,
770
801
  stroke: r.value ? e.value.style.chart.plots.evaluationColors.enable ? r.value.evaluationColor : e.value.style.chart.plots.endColor : "transparent",
771
802
  "stroke-width": e.value.style.chart.comparisonLines.strokeWidth,
772
803
  "stroke-dasharray": e.value.style.chart.comparisonLines.strokeDasharray,
773
804
  style: { transition: "all 0.3s ease-in-out" }
774
- }, null, 8, dl), [
775
- [q, r.value !== null && ![null, void 0].includes(r.value.end)]
805
+ }, null, 8, ml), [
806
+ [Y, r.value !== null && ![null, void 0].includes(r.value.end)]
776
807
  ]),
777
- W(c("rect", {
808
+ j(c("rect", {
778
809
  x: r.value ? Math.min(r.value.startX, r.value.endX) : o.value.left,
779
810
  y: o.value.top,
780
811
  height: Math.max(0.1, o.value.height),
781
812
  width: r.value ? Math.max(0.1, Math.abs(r.value.endX - r.value.startX)) : 0,
782
- fill: r.value ? i(st)(e.value.style.chart.comparisonLines.rectColor, e.value.style.chart.comparisonLines.rectOpacity) : "transparent",
813
+ fill: r.value ? i(ut)(e.value.style.chart.comparisonLines.rectColor, e.value.style.chart.comparisonLines.rectOpacity) : "transparent",
783
814
  style: { transition: "all 0.3s ease-in-out" }
784
- }, null, 8, hl), [
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)]
815
+ }, null, 8, pl), [
816
+ [Y, e.value.style.chart.comparisonLines.showRect && r.value !== null && ![null, void 0].includes(r.value.start) && ![null, void 0].includes(r.value.end)]
786
817
  ]),
787
- W(c("text", {
788
- transform: `translate(${be.value == null ? 0 : be.value}, ${o.value.top - 6})`,
818
+ j(c("text", {
819
+ transform: `translate(${xe.value == null ? 0 : xe.value}, ${o.value.top - 6})`,
789
820
  fill: e.value.style.chart.comparisonLines.labelColor,
790
821
  "font-size": e.value.style.chart.comparisonLines.labelFontSize,
791
822
  "text-anchor": "middle",
792
823
  style: { transition: "all 0.3s ease-in-out" }
793
- }, _(wt.value), 9, yl), [
794
- [q, r.value !== null && be.value !== null && e.value.style.chart.comparisonLines.showLabel]
824
+ }, _(Mt.value), 9, xl), [
825
+ [Y, r.value !== null && xe.value !== null && e.value.style.chart.comparisonLines.showLabel]
795
826
  ])
796
827
  ], 512), [
797
- [q, e.value.style.chart.comparisonLines.show && O.value !== null]
828
+ [Y, e.value.style.chart.comparisonLines.show && O.value !== null]
798
829
  ]),
799
830
  c("defs", null, [
800
831
  c("radialGradient", {
801
- id: `start_grad_${y.value}`,
832
+ id: `start_grad_${f.value}`,
802
833
  fy: "30%"
803
834
  }, [
804
835
  c("stop", {
805
836
  offset: "10%",
806
- "stop-color": i(j)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
807
- }, null, 8, bl),
837
+ "stop-color": i(Z)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
838
+ }, null, 8, kl),
808
839
  c("stop", {
809
840
  offset: "90%",
810
- "stop-color": i(Y)(e.value.style.chart.plots.startColor, 0.1)
811
- }, null, 8, gl),
841
+ "stop-color": i(J)(e.value.style.chart.plots.startColor, 0.1)
842
+ }, null, 8, Cl),
812
843
  c("stop", {
813
844
  offset: "100%",
814
845
  "stop-color": e.value.style.chart.plots.startColor
815
- }, null, 8, ml)
816
- ], 8, fl),
846
+ }, null, 8, wl)
847
+ ], 8, _l),
817
848
  c("radialGradient", {
818
- id: `end_grad_${y.value}`,
849
+ id: `end_grad_${f.value}`,
819
850
  fy: "30%"
820
851
  }, [
821
852
  c("stop", {
822
853
  offset: "10%",
823
- "stop-color": i(j)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
824
- }, null, 8, xl),
854
+ "stop-color": i(Z)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
855
+ }, null, 8, Ll),
825
856
  c("stop", {
826
857
  offset: "90%",
827
- "stop-color": i(Y)(e.value.style.chart.plots.endColor, 0.1)
828
- }, null, 8, _l),
858
+ "stop-color": i(J)(e.value.style.chart.plots.endColor, 0.1)
859
+ }, null, 8, Al),
829
860
  c("stop", {
830
861
  offset: "100%",
831
862
  "stop-color": e.value.style.chart.plots.endColor
832
- }, null, 8, kl)
833
- ], 8, pl),
863
+ }, null, 8, Nl)
864
+ ], 8, $l),
834
865
  c("radialGradient", {
835
- id: `positive_grad_${y.value}`,
866
+ id: `positive_grad_${f.value}`,
836
867
  fy: "30%"
837
868
  }, [
838
869
  c("stop", {
839
870
  offset: "10%",
840
- "stop-color": i(j)(e.value.style.chart.plots.evaluationColors.positive, e.value.style.chart.plots.gradient.intensity / 100)
841
- }, null, 8, wl),
871
+ "stop-color": i(Z)(e.value.style.chart.plots.evaluationColors.positive, e.value.style.chart.plots.gradient.intensity / 100)
872
+ }, null, 8, Ml),
842
873
  c("stop", {
843
874
  offset: "90%",
844
- "stop-color": i(Y)(e.value.style.chart.plots.evaluationColors.positive, 0.1)
845
- }, null, 8, $l),
875
+ "stop-color": i(J)(e.value.style.chart.plots.evaluationColors.positive, 0.1)
876
+ }, null, 8, Xl),
846
877
  c("stop", {
847
878
  offset: "100%",
848
879
  "stop-color": e.value.style.chart.plots.evaluationColors.positive
849
- }, null, 8, Ll)
850
- ], 8, Cl),
880
+ }, null, 8, zl)
881
+ ], 8, Sl),
851
882
  c("radialGradient", {
852
- id: `negative_grad_${y.value}`,
883
+ id: `negative_grad_${f.value}`,
853
884
  fy: "30%"
854
885
  }, [
855
886
  c("stop", {
856
887
  offset: "10%",
857
- "stop-color": i(j)(e.value.style.chart.plots.evaluationColors.negative, e.value.style.chart.plots.gradient.intensity / 100)
858
- }, null, 8, Nl),
888
+ "stop-color": i(Z)(e.value.style.chart.plots.evaluationColors.negative, e.value.style.chart.plots.gradient.intensity / 100)
889
+ }, null, 8, Dl),
859
890
  c("stop", {
860
891
  offset: "90%",
861
- "stop-color": i(Y)(e.value.style.chart.plots.evaluationColors.negative, 0.1)
862
- }, null, 8, Sl),
892
+ "stop-color": i(J)(e.value.style.chart.plots.evaluationColors.negative, 0.1)
893
+ }, null, 8, Il),
863
894
  c("stop", {
864
895
  offset: "100%",
865
896
  "stop-color": e.value.style.chart.plots.evaluationColors.negative
866
- }, null, 8, Ml)
867
- ], 8, Al),
897
+ }, null, 8, Ol)
898
+ ], 8, Tl),
868
899
  c("radialGradient", {
869
- id: `neutral_grad_${y.value}`,
900
+ id: `neutral_grad_${f.value}`,
870
901
  fy: "30%"
871
902
  }, [
872
903
  c("stop", {
873
904
  offset: "10%",
874
- "stop-color": i(j)(e.value.style.chart.plots.evaluationColors.neutral, e.value.style.chart.plots.gradient.intensity / 100)
875
- }, null, 8, zl),
905
+ "stop-color": i(Z)(e.value.style.chart.plots.evaluationColors.neutral, e.value.style.chart.plots.gradient.intensity / 100)
906
+ }, null, 8, Hl),
876
907
  c("stop", {
877
908
  offset: "90%",
878
- "stop-color": i(Y)(e.value.style.chart.plots.evaluationColors.neutral, 0.1)
879
- }, null, 8, Tl),
909
+ "stop-color": i(J)(e.value.style.chart.plots.evaluationColors.neutral, 0.1)
910
+ }, null, 8, Pl),
880
911
  c("stop", {
881
912
  offset: "100%",
882
913
  "stop-color": e.value.style.chart.plots.evaluationColors.neutral
883
- }, null, 8, Il)
884
- ], 8, Xl)
914
+ }, null, 8, Gl)
915
+ ], 8, Fl)
885
916
  ]),
886
917
  (n(!0), v(C, null, A(k.value, (t, a) => (n(), v("g", {
887
918
  key: `plot_${a}_${t.id}`
888
919
  }, [
889
920
  c("defs", null, [
890
921
  c("linearGradient", {
891
- id: `grad_pos_${y.value}`,
922
+ id: `grad_pos_${f.value}`,
892
923
  x1: "0%",
893
924
  x2: "100%",
894
925
  y1: "0%",
@@ -897,14 +928,14 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
897
928
  c("stop", {
898
929
  offset: "0%",
899
930
  "stop-color": e.value.style.chart.plots.startColor
900
- }, null, 8, Fl),
931
+ }, null, 8, Bl),
901
932
  c("stop", {
902
933
  offset: "100%",
903
934
  "stop-color": e.value.style.chart.plots.endColor
904
- }, null, 8, Hl)
905
- ], 8, Ol),
935
+ }, null, 8, Rl)
936
+ ], 8, El),
906
937
  c("linearGradient", {
907
- id: `grad_neg_${y.value}`,
938
+ id: `grad_neg_${f.value}`,
908
939
  x1: "0%",
909
940
  x2: "100%",
910
941
  y1: "0%",
@@ -913,68 +944,68 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
913
944
  c("stop", {
914
945
  offset: "0%",
915
946
  "stop-color": e.value.style.chart.plots.endColor
916
- }, null, 8, Dl),
947
+ }, null, 8, Ul),
917
948
  c("stop", {
918
949
  offset: "100%",
919
950
  "stop-color": e.value.style.chart.plots.startColor
920
- }, null, 8, Gl)
921
- ], 8, Pl)
951
+ }, null, 8, Wl)
952
+ ], 8, Vl)
922
953
  ]),
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, [
954
+ ![void 0, null].includes(t.end) && ![void 0, null].includes(t.start) ? (n(), v("g", ql, [
955
+ e.value.style.chart.plots.link.type === "curved" ? (n(), v("g", jl, [
925
956
  c("path", {
926
957
  d: `M
927
- ${t.startX},${t.y + M.value / 2}
958
+ ${t.startX},${t.y + z.value / 2}
928
959
  C ${t.centerX},${t.y} ${t.centerX},${t.y}
929
- ${t.endX},${t.y + M.value / 2}
930
- L ${t.endX},${t.y - M.value / 2}
960
+ ${t.endX},${t.y + z.value / 2}
961
+ L ${t.endX},${t.y - z.value / 2}
931
962
  C ${t.centerX},${t.y} ${t.centerX},${t.y}
932
- ${t.startX},${t.y - M.value / 2}
963
+ ${t.startX},${t.y - z.value / 2}
933
964
  Z
934
965
  `,
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, [
966
+ fill: e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : t.endX > t.startX ? `url(#grad_pos_${f.value})` : `url(#grad_neg_${f.value})`
967
+ }, null, 8, Yl)
968
+ ])) : (n(), v("g", Zl, [
938
969
  c("rect", {
939
970
  x: t.endX > t.startX ? t.startX : t.endX,
940
971
  y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
941
972
  height: Math.max(0.01, e.value.style.chart.plots.link.strokeWidth),
942
973
  width: Math.max(0.01, Math.abs(t.endX - t.startX)),
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)
974
+ fill: e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : t.endX > t.startX ? `url(#grad_pos_${f.value})` : `url(#grad_neg_${f.value})`
975
+ }, null, 8, Jl)
945
976
  ]))
946
977
  ])) : b("", !0),
947
978
  [null, void 0].includes(t.start) ? b("", !0) : (n(), v("circle", {
948
979
  key: 1,
949
980
  cx: t.startX,
950
981
  cy: t.y,
951
- r: M.value,
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,
982
+ r: z.value,
983
+ fill: e.value.style.chart.plots.gradient.show ? e.value.style.chart.plots.evaluationColors.enable ? t.evaluationGrad : `url(#start_grad_${f.value})` : e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : e.value.style.chart.plots.startColor,
953
984
  stroke: e.value.style.chart.plots.stroke,
954
985
  "stroke-width": e.value.style.chart.plots.strokeWidth
955
- }, null, 8, Wl)),
986
+ }, null, 8, Kl)),
956
987
  [null, void 0].includes(t.end) ? b("", !0) : (n(), v("circle", {
957
988
  key: 2,
958
989
  cx: t.endX,
959
990
  cy: t.y,
960
- r: M.value,
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,
991
+ r: z.value,
992
+ fill: e.value.style.chart.plots.gradient.show ? e.value.style.chart.plots.evaluationColors.enable ? t.evaluationGrad : `url(#end_grad_${f.value})` : e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : e.value.style.chart.plots.endColor,
962
993
  stroke: e.value.style.chart.plots.stroke,
963
994
  "stroke-width": e.value.style.chart.plots.strokeWidth
964
- }, null, 8, ql))
995
+ }, null, 8, Ql))
965
996
  ]))), 128)),
966
- e.value.style.chart.labels.startLabels.show ? (n(), v("g", jl, [
997
+ e.value.style.chart.labels.startLabels.show ? (n(), v("g", ea, [
967
998
  (n(!0), v(C, null, A(k.value, (t, a) => (n(), v("g", {
968
999
  key: `start_label_${a}_${t.id}`
969
1000
  }, [
970
1001
  [null, void 0].includes(t.start) ? b("", !0) : (n(), v("text", {
971
1002
  key: 0,
972
1003
  x: t.startX,
973
- y: t.y + M.value * 2 + e.value.style.chart.labels.startLabels.fontSize / 2,
1004
+ y: t.y + z.value * 2 + e.value.style.chart.labels.startLabels.fontSize / 2,
974
1005
  fill: e.value.style.chart.plots.evaluationColors.enable && e.value.style.chart.labels.startLabels.useEvaluationColor ? t.evaluationColor : e.value.style.chart.labels.startLabels.useStartColor ? e.value.style.chart.plots.startColor : e.value.style.chart.labels.startLabels.color,
975
1006
  "font-size": e.value.style.chart.labels.startLabels.fontSize,
976
1007
  "text-anchor": "middle"
977
- }, _(i(H)(
1008
+ }, _(i(P)(
978
1009
  e.value.style.chart.labels.formatter,
979
1010
  t.start,
980
1011
  i(w)({
@@ -984,21 +1015,21 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
984
1015
  r: e.value.style.chart.labels.startLabels.rounding
985
1016
  }),
986
1017
  { datapoint: t, seriesIndex: a }
987
- )), 9, Yl))
1018
+ )), 9, ta))
988
1019
  ]))), 128))
989
1020
  ])) : b("", !0),
990
- e.value.style.chart.labels.endLabels.show ? (n(), v("g", Zl, [
1021
+ e.value.style.chart.labels.endLabels.show ? (n(), v("g", la, [
991
1022
  (n(!0), v(C, null, A(k.value, (t, a) => (n(), v("g", {
992
1023
  key: `end_label_${a}_${t.id}`
993
1024
  }, [
994
1025
  [null, void 0].includes(t.end) ? b("", !0) : (n(), v("text", {
995
1026
  key: 0,
996
1027
  x: t.endX,
997
- y: t.y - (M.value * 2 - e.value.style.chart.labels.startLabels.fontSize / 3),
1028
+ y: t.y - (z.value * 2 - e.value.style.chart.labels.startLabels.fontSize / 3),
998
1029
  fill: e.value.style.chart.plots.evaluationColors.enable && e.value.style.chart.labels.endLabels.useEvaluationColor ? t.evaluationColor : e.value.style.chart.labels.endLabels.useEndColor ? e.value.style.chart.plots.endColor : e.value.style.chart.labels.endLabels.color,
999
1030
  "font-size": e.value.style.chart.labels.endLabels.fontSize,
1000
1031
  "text-anchor": "middle"
1001
- }, _(i(H)(
1032
+ }, _(i(P)(
1002
1033
  e.value.style.chart.labels.formatter,
1003
1034
  t.end,
1004
1035
  i(w)({
@@ -1008,7 +1039,7 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
1008
1039
  r: e.value.style.chart.labels.endLabels.rounding
1009
1040
  }),
1010
1041
  { datapoint: t, seriesIndex: a }
1011
- )), 9, Jl))
1042
+ )), 9, aa))
1012
1043
  ]))), 128))
1013
1044
  ])) : b("", !0),
1014
1045
  c("g", null, [
@@ -1017,40 +1048,40 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
1017
1048
  y: o.value.top + a * Math.max(0.1, o.value.rowHeight),
1018
1049
  width: Math.max(0.1, o.value.width),
1019
1050
  height: Math.max(0.1, o.value.rowHeight),
1020
- fill: O.value !== null && O.value === a ? i(st)(e.value.style.chart.highlighter.color, e.value.style.chart.highlighter.opacity) : "transparent",
1021
- onMouseenter: (u) => he({ datapoint: t, seriesIndex: a }),
1022
- onMouseleave: (u) => ye({ datapoint: t, seriesIndex: a }),
1023
- onClick: (u) => fe({ datapoint: t, seriesIndex: a })
1024
- }, null, 40, Kl))), 256))
1051
+ fill: O.value !== null && O.value === a ? i(ut)(e.value.style.chart.highlighter.color, e.value.style.chart.highlighter.opacity) : "transparent",
1052
+ onMouseenter: (u) => ge({ datapoint: t, seriesIndex: a }),
1053
+ onMouseleave: (u) => me({ datapoint: t, seriesIndex: a }),
1054
+ onClick: (u) => pe({ datapoint: t, seriesIndex: a })
1055
+ }, null, 40, sa))), 256))
1025
1056
  ]),
1026
- p(l.$slots, "svg", { svg: o.value }, void 0, !0)
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)
1057
+ x(l.$slots, "svg", { svg: o.value }, void 0, !0)
1058
+ ], 14, ol)),
1059
+ l.$slots.watermark ? (n(), v("div", oa, [
1060
+ x(l.$slots, "watermark", se(oe({ isPrinting: i(Fe) || i(He) })), void 0, !0)
1030
1061
  ])) : b("", !0),
1031
1062
  c("div", {
1032
- id: `legend-bottom-${y.value}`
1033
- }, null, 8, ea),
1034
- Ae.value ? (n(), T(Mt, {
1063
+ id: `legend-bottom-${f.value}`
1064
+ }, null, 8, na),
1065
+ Xe.value ? (n(), I(Dt, {
1035
1066
  key: 5,
1036
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
1067
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
1037
1068
  }, [
1038
1069
  c("div", {
1039
1070
  ref_key: "chartLegend",
1040
- ref: _e
1071
+ ref: $e
1041
1072
  }, [
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,
1073
+ e.value.style.chart.legend.show && K.value ? (n(), I(tl, {
1074
+ key: `legend_${Me.value}`,
1075
+ legendSet: We.value,
1076
+ config: wt.value,
1046
1077
  clickable: !1
1047
1078
  }, {
1048
- item: x(({ legend: t }) => [
1079
+ item: p(({ legend: t }) => [
1049
1080
  c("div", {
1050
- style: ee(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
1081
+ style: ae(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
1051
1082
  }, [
1052
1083
  (n(), v("svg", {
1053
- xmlns: i(at),
1084
+ xmlns: i(rt),
1054
1085
  viewBox: "0 0 20 20",
1055
1086
  height: e.value.style.chart.legend.fontSize,
1056
1087
  width: e.value.style.chart.legend.fontSize
@@ -1060,72 +1091,86 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
1060
1091
  cy: 10,
1061
1092
  r: 9,
1062
1093
  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)
1094
+ }, null, 8, ua)
1095
+ ], 8, ra)),
1096
+ i(ie) ? b("", !0) : (n(), v(C, { key: 0 }, [
1097
+ _e(_(t.name), 1)
1067
1098
  ], 64))
1068
1099
  ], 4)
1069
1100
  ]),
1070
1101
  _: 1
1071
- }, 8, ["legendSet", "config"])) : p(l.$slots, "legend", {
1102
+ }, 8, ["legendSet", "config"])) : x(l.$slots, "legend", {
1072
1103
  key: 1,
1073
- legend: Re.value
1104
+ legend: We.value
1074
1105
  }, void 0, !0)
1075
1106
  ], 512)
1076
1107
  ], 8, ["to"])) : b("", !0),
1077
1108
  l.$slots.source ? (n(), v("div", {
1078
1109
  key: 6,
1079
1110
  ref_key: "source",
1080
- ref: ke,
1111
+ ref: Le,
1081
1112
  dir: "auto"
1082
1113
  }, [
1083
- p(l.$slots, "source", {}, void 0, !0)
1114
+ x(l.$slots, "source", {}, void 0, !0)
1084
1115
  ], 512)) : b("", !0),
1085
- Z.value ? (n(), T(i(ut), {
1086
- key: 7,
1087
- hideDetails: "",
1088
- config: {
1089
- open: D.value.showTable,
1090
- maxHeight: 1e4,
1091
- body: {
1092
- backgroundColor: e.value.style.chart.backgroundColor,
1093
- color: e.value.style.chart.color
1094
- },
1095
- head: {
1096
- backgroundColor: e.value.style.chart.backgroundColor,
1097
- color: e.value.style.chart.color
1098
- }
1099
- }
1100
- }, {
1101
- content: x(() => [
1102
- (n(), T(i(it), {
1103
- key: `table_${$e.value}`,
1104
- colNames: K.value.colNames,
1105
- head: K.value.head,
1106
- body: K.value.body,
1107
- config: K.value.config,
1108
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1109
- onClose: s[0] || (s[0] = (t) => D.value.showTable = !1)
1116
+ K.value ? (n(), I(It(q.value.component), Ot({ key: 7 }, q.value.props, {
1117
+ ref_key: "tableUnit",
1118
+ ref: U,
1119
+ onClose: s[2] || (s[2] = (t) => X.value.showTable = !1)
1120
+ }), lt({
1121
+ content: p(() => [
1122
+ (n(), I(i(ft), {
1123
+ key: `table_${Se.value}`,
1124
+ colNames: ee.value.colNames,
1125
+ head: ee.value.head,
1126
+ body: ee.value.body,
1127
+ config: ee.value.config,
1128
+ title: e.value.table.useDialog ? "" : q.value.title,
1129
+ withCloseButton: !e.value.table.useDialog,
1130
+ onClose: s[1] || (s[1] = (t) => X.value.showTable = !1)
1110
1131
  }, {
1111
- th: x(({ th: t }) => [
1132
+ th: p(({ th: t }) => [
1112
1133
  c("div", {
1113
1134
  innerHTML: t,
1114
1135
  style: { display: "flex", "align-items": "center" }
1115
- }, null, 8, aa)
1136
+ }, null, 8, ia)
1116
1137
  ]),
1117
- td: x(({ td: t }) => [
1118
- Qe(_(t.name || t), 1)
1138
+ td: p(({ td: t }) => [
1139
+ _e(_(t.name || t), 1)
1119
1140
  ]),
1120
1141
  _: 1
1121
- }, 8, ["colNames", "head", "body", "config", "title"]))
1142
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
1122
1143
  ]),
1123
- _: 1
1124
- }, 8, ["config"])) : b("", !0),
1125
- i(ne) ? (n(), T(Bt, { key: 8 })) : b("", !0)
1126
- ], 46, Jt));
1144
+ _: 2
1145
+ }, [
1146
+ e.value.table.useDialog ? {
1147
+ name: "title",
1148
+ fn: p(() => [
1149
+ _e(_(q.value.title), 1)
1150
+ ]),
1151
+ key: "0"
1152
+ } : void 0,
1153
+ e.value.table.useDialog ? {
1154
+ name: "actions",
1155
+ fn: p(() => [
1156
+ c("button", {
1157
+ tabindex: "0",
1158
+ class: "vue-ui-user-options-button",
1159
+ onClick: s[0] || (s[0] = (t) => ye(e.value.userOptions.callbacks.csv))
1160
+ }, [
1161
+ at(i(dt), {
1162
+ name: "excel",
1163
+ stroke: q.value.props.color
1164
+ }, null, 8, ["stroke"])
1165
+ ])
1166
+ ]),
1167
+ key: "1"
1168
+ } : void 0
1169
+ ]), 1040)) : b("", !0),
1170
+ i(ie) ? (n(), I(Yt, { key: 8 })) : b("", !0)
1171
+ ], 46, al));
1127
1172
  }
1128
- }, pa = /* @__PURE__ */ Zt(sa, [["__scopeId", "data-v-3328933a"]]);
1173
+ }, $a = /* @__PURE__ */ ll(ca, [["__scopeId", "data-v-0a9a1b98"]]);
1129
1174
  export {
1130
- pa as default
1175
+ $a as default
1131
1176
  };