vue-data-ui 3.0.0-next.9 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/README.md +32 -30
  2. package/dist/{Arrow-B6OlqyCG.js → Arrow-r2f8Bpd-.js} +1 -1
  3. package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-CGGcf8d8.js} +4 -4
  4. package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-CXtL10fo.js} +1 -1
  5. package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-H91bBsqM.js} +2 -2
  6. package/dist/{DataTable--paavNqF.js → DataTable-BSSXpM7w.js} +2 -2
  7. package/dist/{Legend-BZ06qU55.js → Legend-BUk0WvWJ.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-DQDgPoW8.js} +3 -3
  9. package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CJ6Vd7V5.js} +3 -3
  10. package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3zudcNI.js} +32 -32
  11. package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
  12. package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
  13. package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
  14. package/dist/{Shape-Mr1eIp_G.js → Shape-BRzOzubn.js} +43 -37
  15. package/dist/Slicer-MID8pgT3.js +602 -0
  16. package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-DATI1fGZ.js} +7 -7
  17. package/dist/{Title-B2dA6-uH.js → Title-BGu6gEd2.js} +1 -1
  18. package/dist/{Tooltip-O_hCvqgF.js → Tooltip-Bh2zYSoM.js} +23 -19
  19. package/dist/{UserOptions-Bk03FRqW.js → UserOptions-Ck8fz9f4.js} +2 -2
  20. package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-DhIh24Ti.js} +1 -1
  21. package/dist/{img-C_9wps3s.js → img-DrR839Ot.js} +1 -1
  22. package/dist/{index-CgShIRes.js → index-BtNwOUja.js} +2885 -2010
  23. package/dist/{pdf-CXdbjyRJ.js → pdf-DoShrdT5.js} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +753 -65
  26. package/dist/types/vue-data-ui.d.ts +753 -65
  27. package/dist/useAutoSizeLabelsInsideViewbox-FmDQyX4z.js +81 -0
  28. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  29. package/dist/useLoading-D7YHNtLX.js +29 -0
  30. package/dist/useNestedProp-f2H3m6Yj.js +13 -0
  31. package/dist/usePanZoom-BVca3eMk.js +122 -0
  32. package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DUNjpQNe.js} +2 -2
  33. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  34. package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
  35. package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-D7QVxNhO.js} +105 -100
  36. package/dist/vue-data-ui.js +26 -25
  37. package/dist/vue-ui-3d-bar-ITaF-6Kn.js +1323 -0
  38. package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-BKUrAowe.js} +3 -3
  39. package/dist/vue-ui-age-pyramid-DxsuDr6o.js +835 -0
  40. package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-B06QtxgJ.js} +12 -12
  41. package/dist/vue-ui-bullet-B7Fy45tA.js +571 -0
  42. package/dist/vue-ui-candlestick-Dw0U4uIQ.js +1000 -0
  43. package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-DGz0nw28.js} +29 -29
  44. package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-CFfKYm9i.js} +664 -536
  45. package/dist/vue-ui-chord-EhlQhMSs.js +1038 -0
  46. package/dist/vue-ui-circle-pack-BHrrEUUd.js +709 -0
  47. package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-Dd-HtWzG.js} +2 -2
  48. package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-6R8udDY3.js} +64 -64
  49. package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-zKn3uhGN.js} +2 -2
  50. package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-BtnIwS_E.js} +431 -422
  51. package/dist/vue-ui-donut-evolution-DHo1MuMM.js +1076 -0
  52. package/dist/vue-ui-dumbbell-Czi9r9Na.js +1120 -0
  53. package/dist/vue-ui-flow-jOfM0RZY.js +841 -0
  54. package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-tBvVpdhy.js} +16 -16
  55. package/dist/vue-ui-galaxy-IdoY2oqG.js +680 -0
  56. package/dist/vue-ui-gauge-DR6Xm_Hz.js +791 -0
  57. package/dist/vue-ui-gizmo-Dto73UsB.js +210 -0
  58. package/dist/vue-ui-heatmap-zmFv-0z1.js +1078 -0
  59. package/dist/vue-ui-history-plot-ILemyyYw.js +1074 -0
  60. package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-hmqSCvxr.js} +26 -26
  61. package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-CbD-E8ci.js} +2 -2
  62. package/dist/vue-ui-molecule-mTy6YIm6.js +656 -0
  63. package/dist/vue-ui-mood-radar-BEnSYV3Q.js +785 -0
  64. package/dist/vue-ui-nested-donuts-CGE9dmJK.js +1284 -0
  65. package/dist/vue-ui-onion-Dh2J9GV0.js +776 -0
  66. package/dist/vue-ui-parallel-coordinate-plot-xsgmMIJK.js +916 -0
  67. package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-DA0Kw6eq.js} +512 -459
  68. package/dist/vue-ui-quick-chart-DKbxF5Yt.js +1762 -0
  69. package/dist/vue-ui-radar-BFY9bN_h.js +796 -0
  70. package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-Bh35aujf.js} +2 -2
  71. package/dist/vue-ui-relation-circle-B-05kQ_l.js +598 -0
  72. package/dist/vue-ui-ridgeline-CuGfF83t.js +1157 -0
  73. package/dist/vue-ui-rings-DrQXXzAM.js +728 -0
  74. package/dist/vue-ui-scatter-CWn9c7e9.js +1178 -0
  75. package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-oG4Bm5nL.js} +13 -13
  76. package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-Cnwba_gV.js} +46 -46
  77. package/dist/vue-ui-spark-trend-D9iNCf4o.js +315 -0
  78. package/dist/vue-ui-sparkbar-iJkiubZC.js +351 -0
  79. package/dist/vue-ui-sparkgauge-BH3uA5rh.js +232 -0
  80. package/dist/vue-ui-sparkhistogram-B3kR62pf.js +380 -0
  81. package/dist/vue-ui-sparkline-DczR2ZAf.js +513 -0
  82. package/dist/vue-ui-sparkstackbar-Cg0ItRGH.js +421 -0
  83. package/dist/vue-ui-stackbar-d4PrzcGS.js +1371 -0
  84. package/dist/vue-ui-strip-plot-BXBpN5rl.js +916 -0
  85. package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BXOLZXuz.js} +17 -17
  86. package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-7YT7VF2H.js} +5 -5
  87. package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-BfgqajJ2.js} +19 -16
  88. package/dist/vue-ui-thermometer-C7Tg6HLz.js +541 -0
  89. package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-Ch5JP1pQ.js} +5 -5
  90. package/dist/vue-ui-tiremarks-fY-4pWAK.js +406 -0
  91. package/dist/vue-ui-treemap-DTSX6suB.js +1035 -0
  92. package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-C-i2dRnU.js} +104 -102
  93. package/dist/vue-ui-waffle-BbgLlhGH.js +910 -0
  94. package/dist/vue-ui-wheel-waZf462K.js +379 -0
  95. package/dist/vue-ui-word-cloud-DtLK91Dk.js +765 -0
  96. package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-Cx4uuwTY.js} +364 -327
  97. package/dist/vue-ui-xy-DDOT8cyx.js +3808 -0
  98. package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-CUCsC8vD.js} +265 -264
  99. package/package.json +4 -4
  100. package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
  101. package/dist/Slicer-3t0HimeE.js +0 -577
  102. package/dist/useLoading-Bt5Doa8m.js +0 -28
  103. package/dist/useNestedProp-BC4Ciblw.js +0 -13
  104. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  105. package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
  106. package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
  107. package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
  108. package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
  109. package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
  110. package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
  111. package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
  112. package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
  113. package/dist/vue-ui-flow-MvORTthN.js +0 -765
  114. package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
  115. package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
  116. package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
  117. package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
  118. package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
  119. package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
  120. package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
  121. package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
  122. package/dist/vue-ui-onion-DXLokGec.js +0 -701
  123. package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
  124. package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
  125. package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
  126. package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
  127. package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
  128. package/dist/vue-ui-rings-Duay-EmS.js +0 -685
  129. package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
  130. package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
  131. package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
  132. package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
  133. package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
  134. package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
  135. package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
  136. package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
  137. package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
  138. package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
  139. package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
  140. package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
  141. package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
  142. package/dist/vue-ui-wheel-tydUATi8.js +0 -352
  143. package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
  144. package/dist/vue-ui-xy--HToGdle.js +0 -2982
@@ -0,0 +1,1120 @@
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-BtNwOUja.js";
3
+ import { t as me, u as Pt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Dt } from "./usePrinter-DUNjpQNe.js";
5
+ import { u as Gt, B as Et } from "./useLoading-D7YHNtLX.js";
6
+ import { u as st } from "./useNestedProp-f2H3m6Yj.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-DrR839Ot.js";
11
+ import Wt from "./Title-BGu6gEd2.js";
12
+ import qt from "./Legend-BUk0WvWJ.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 = {
15
+ key: 4,
16
+ class: "vue-data-ui-watermark"
17
+ }, Jl = ["xmlns", "height", "width"], Kl = ["fill"], Ql = ["innerHTML"], ea = {
18
+ __name: "vue-ui-dumbbell",
19
+ props: {
20
+ config: {
21
+ type: Object,
22
+ default() {
23
+ return {};
24
+ }
25
+ },
26
+ dataset: {
27
+ type: Array,
28
+ default() {
29
+ return [];
30
+ }
31
+ }
32
+ },
33
+ emits: ["selectDatapoint"],
34
+ setup(ot, { expose: nt, emit: ta }) {
35
+ const rt = U(() => import("./vue-ui-accordion-BKUrAowe.js")), ut = U(() => import("./DataTable-BSSXpM7w.js")), it = U(() => import("./PenAndPaper-D3zudcNI.js")), ct = U(() => import("./UserOptions-Ck8fz9f4.js")), vt = U(() => import("./PackageVersion-CJ6Vd7V5.js")), { vue_ui_dumbbell: dt } = Mt(), N = ot, Z = g({
36
+ get() {
37
+ return !!N.dataset && N.dataset.length;
38
+ },
39
+ set(l) {
40
+ return l;
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),
44
+ FINAL_CONFIG: e,
45
+ prepareConfig: ie,
46
+ skeletonDataset: [
47
+ { name: "_", start: 21, end: 34 },
48
+ { name: "_", start: 13, end: 21 },
49
+ { name: "_", start: 8, end: 13 },
50
+ { name: "_", start: 5, end: 8 },
51
+ { name: "_", start: 3, end: 5 }
52
+ ],
53
+ skeletonConfig: Xt({
54
+ defaultConfig: e.value,
55
+ userConfig: {
56
+ userOptions: { show: !1 },
57
+ table: { show: !1 },
58
+ useAnimation: !1,
59
+ style: {
60
+ chart: {
61
+ backgroundColor: "#99999930",
62
+ padding: {
63
+ top: 12,
64
+ right: 12,
65
+ bottom: 12,
66
+ left: 12
67
+ },
68
+ grid: {
69
+ horizontalGrid: { stroke: "#6A6A6A" },
70
+ verticalGrid: { stroke: "#6A6A6A" }
71
+ },
72
+ labels: {
73
+ axis: {
74
+ yLabel: "",
75
+ xLabel: ""
76
+ },
77
+ xAxisLabels: { show: !1 },
78
+ yAxisLabels: { show: !1 },
79
+ endLabels: { show: !1 },
80
+ startLabels: { show: !1 }
81
+ },
82
+ legend: {
83
+ backgroundColor: "transparent"
84
+ },
85
+ plots: {
86
+ endColor: "#969696",
87
+ startColor: "#DBDBDB",
88
+ stroke: "#6A6A6A",
89
+ evaluationColors: { enable: !1 }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ })
95
+ }), { userOptionsVisible: ue, setUserOptionsVisibility: Ae, keepUserOptionState: Ne } = Rt({ config: e.value }), { svgRef: Se } = Bt({ config: e.value.style.chart.title });
96
+ function ie() {
97
+ const l = st({
98
+ userConfig: N.config,
99
+ defaultConfig: dt
100
+ });
101
+ return l.theme ? {
102
+ ...st({
103
+ userConfig: zt.vue_ui_dumbbell[l.theme] || N.config,
104
+ defaultConfig: l
105
+ })
106
+ } : l;
107
+ }
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;
110
+ }, { deep: !0 }), ge(() => re.value, (l) => {
111
+ Array.isArray(l) && l.length > 0 && (ht.value = !1), De(), Ge();
112
+ }, { deep: !0 });
113
+ const S = je(null), P = je(null);
114
+ Ye(() => {
115
+ Xe();
116
+ });
117
+ const Me = g(() => !!e.value.debug);
118
+ function Xe() {
119
+ if (Tt(N.dataset) ? et({
120
+ componentName: "VueUiDumbbell",
121
+ type: "dataset",
122
+ debug: Me.value
123
+ }) : N.dataset.forEach((l, s) => {
124
+ It({
125
+ datasetObject: l,
126
+ requiredAttributes: ["name", "start", "end"]
127
+ }).forEach((t) => {
128
+ Z.value = !1, et({
129
+ componentName: "VueUiDumbbell",
130
+ type: "datasetSerieAttribute",
131
+ property: t,
132
+ index: s,
133
+ debug: Me.value
134
+ });
135
+ });
136
+ }), e.value.responsive) {
137
+ const l = me(() => {
138
+ const { width: s, height: t } = Pt({
139
+ chart: T.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
144
+ }), a = e.value.style.chart.title.text ? 24 : 0, u = e.value.style.chart.legend.show ? 24 : 0;
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();
147
+ });
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);
150
+ }
151
+ We();
152
+ }
153
+ Ze(() => {
154
+ L.value != null && (cancelAnimationFrame(L.value), L.value = null), S.value && (P.value && S.value.unobserve(P.value), S.value.disconnect());
155
+ });
156
+ const { isPrinting: ze, isImaging: Te, generatePdf: Ie, generateImage: Oe } = Dt({
157
+ elementId: `dumbbell_${b.value}`,
158
+ fileName: e.value.style.chart.title.text || "vue-ui-dumbbell",
159
+ options: e.value.userOptions.print
160
+ }), yt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), D = h({
161
+ showTable: e.value.table.show
162
+ });
163
+ ge(e, () => {
164
+ D.value = {
165
+ showTable: e.value.table.show
166
+ };
167
+ }, { immediate: !0 });
168
+ const G = g(() => re.value.map((l, s) => ({
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;
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() {
178
+ let l = 0;
179
+ se.value && (l = Array.from(se.value.querySelectorAll("text")).reduce((a, u) => {
180
+ const d = u.getComputedTextLength();
181
+ return d > a ? d : a;
182
+ }, 0));
183
+ const s = ae.value ? ae.value.getBoundingClientRect().width : 0;
184
+ return l + s + (s ? 24 + e.value.style.chart.labels.axis.yLabelOffsetX : 0);
185
+ }
186
+ const ce = h(0), bt = me((l) => {
187
+ ce.value = l;
188
+ }, 100);
189
+ Lt((l) => {
190
+ const s = J.value;
191
+ if (!s) return;
192
+ const t = new ResizeObserver((a) => {
193
+ bt(a[0].contentRect.height);
194
+ });
195
+ t.observe(s), l(() => t.disconnect());
196
+ }), Ze(() => {
197
+ ce.value = 0;
198
+ });
199
+ const He = g(() => {
200
+ O.value;
201
+ let l = 0;
202
+ oe.value && (l = oe.value.getBBox().height);
203
+ let s = 0;
204
+ return J.value && (s = ce.value), l + s;
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))
209
+ return t.left;
210
+ const m = d - u;
211
+ return m <= 0 ? t.left : t.left + (a - u) / m * y;
212
+ }
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);
216
+ return {
217
+ left: e.value.style.chart.padding.left + l,
218
+ right: R.value - e.value.style.chart.padding.right,
219
+ top: e.value.style.chart.padding.top,
220
+ bottom: d - e.value.style.chart.padding.bottom - He.value - t,
221
+ width: y,
222
+ height: a,
223
+ rowHeight: u,
224
+ absoluteHeight: d,
225
+ widthPlotReference: m
226
+ };
227
+ }), M = g(() => Math.min(E.value / 2 * 0.7, e.value.style.chart.plots.radius)), B = h([]), k = g({
228
+ get() {
229
+ const l = o.value, s = $.value;
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;
232
+ return {
233
+ ...t,
234
+ isPositive: m,
235
+ isNegative: z,
236
+ isNeutral: qe,
237
+ evaluationColor: wt,
238
+ evaluationGrad: `url(#${m ? "positive" : z ? "negative" : "neutral"}_grad_${b.value})`,
239
+ startX: u,
240
+ endX: d,
241
+ centerX: y,
242
+ y: l.top + a * l.rowHeight + l.rowHeight / 2
243
+ };
244
+ });
245
+ },
246
+ set(l) {
247
+ B.value = l;
248
+ }
249
+ });
250
+ function De() {
251
+ B.value = G.value.map((l) => {
252
+ const s = Number(l.start);
253
+ return {
254
+ ...l,
255
+ endVal: Number.isFinite(s) ? s : 0
256
+ };
257
+ });
258
+ }
259
+ const L = h(null);
260
+ Ye(() => {
261
+ Ge();
262
+ });
263
+ function Ge() {
264
+ if (L.value != null && (cancelAnimationFrame(L.value), L.value = null), De(), !e.value.useAnimation) {
265
+ k.value = B.value.map((a) => {
266
+ const u = Number(a.end);
267
+ return { ...a, endVal: Number.isFinite(u) ? u : a.endVal };
268
+ });
269
+ return;
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), y = Number.isFinite(u) ? u : 0;
273
+ return (Number.isFinite(d) ? d : y) - y;
274
+ }), t = () => {
275
+ let a = !0;
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 };
279
+ }), a ? L.value = null : L.value = requestAnimationFrame(t);
280
+ };
281
+ L.value = requestAnimationFrame(t);
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 }
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(() => ({
291
+ cy: "donut-div-legend",
292
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
293
+ color: e.value.style.chart.legend.color,
294
+ fontSize: e.value.style.chart.legend.fontSize,
295
+ paddingBottom: 12,
296
+ paddingTop: 12,
297
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
298
+ })), X = g(() => {
299
+ const l = k.value.map((t) => ({
300
+ name: t.name
301
+ })), s = k.value.map((t) => ({
302
+ start: t.start,
303
+ end: t.end
304
+ }));
305
+ return { head: l, body: s };
306
+ }), K = g(() => {
307
+ const l = [
308
+ e.value.table.columnNames.series,
309
+ e.value.table.columnNames.start,
310
+ e.value.table.columnNames.end,
311
+ e.value.table.columnNames.progression
312
+ ], s = X.value.head.map((u, d) => {
313
+ const y = w({
314
+ p: e.value.style.chart.labels.prefix,
315
+ v: X.value.body[d].start,
316
+ s: e.value.style.chart.labels.suffix,
317
+ r: e.value.table.td.roundingValue
318
+ }), m = w({
319
+ p: e.value.style.chart.labels.prefix,
320
+ v: X.value.body[d].end,
321
+ s: e.value.style.chart.labels.suffix,
322
+ r: e.value.table.td.roundingValue
323
+ }), z = w({
324
+ v: 100 * (X.value.body[d].end / X.value.body[d].start - 1),
325
+ s: "%",
326
+ r: e.value.table.td.roundingPercentage
327
+ });
328
+ return [
329
+ { name: u.name },
330
+ y,
331
+ m,
332
+ z
333
+ ];
334
+ }), t = {
335
+ th: {
336
+ backgroundColor: e.value.table.th.backgroundColor,
337
+ color: e.value.table.th.color,
338
+ outline: e.value.table.th.outline
339
+ },
340
+ td: {
341
+ backgroundColor: e.value.table.td.backgroundColor,
342
+ color: e.value.table.td.color,
343
+ outline: e.value.table.td.outline
344
+ },
345
+ breakpoint: e.value.table.responsiveBreakpoint
346
+ };
347
+ return {
348
+ colNames: [
349
+ e.value.table.columnNames.series,
350
+ e.value.table.columnNames.start,
351
+ e.value.table.columnNames.end,
352
+ e.value.table.columnNames.progression
353
+ ],
354
+ head: l,
355
+ body: s,
356
+ config: t
357
+ };
358
+ });
359
+ function Re(l = null) {
360
+ St(() => {
361
+ const s = X.value.head.map((u, d) => [[
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" });
365
+ });
366
+ }
367
+ const V = h(!1);
368
+ function Be(l) {
369
+ V.value = l, pe.value += 1;
370
+ }
371
+ function mt() {
372
+ return G.value;
373
+ }
374
+ function Ve() {
375
+ D.value.showTable = !D.value.showTable;
376
+ }
377
+ const Q = h(!1);
378
+ function de() {
379
+ Q.value = !Q.value;
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 });
384
+ return {
385
+ imageUri: u,
386
+ base64: d,
387
+ title: e.value.style.chart.title.text,
388
+ width: s,
389
+ height: t,
390
+ aspectRatio: a
391
+ };
392
+ }
393
+ const Ue = g(() => $.value.ticks), xt = g(() => ({ start: 0, end: Ue.value.length }));
394
+ Vt({
395
+ timeLabelsEls: J,
396
+ timeLabels: Ue,
397
+ slicer: xt,
398
+ configRef: e,
399
+ rotationPath: ["style", "chart", "labels", "xAxisLabels", "rotation"],
400
+ autoRotatePath: ["style", "chart", "labels", "xAxisLabels", "autoRotate", "enable"],
401
+ isAutoSize: !1,
402
+ width: R,
403
+ height: E,
404
+ targetClass: ".vue-ui-dumbbell-scale-label",
405
+ rotation: e.value.style.chart.labels.xAxisLabels.autoRotate.angle
406
+ });
407
+ function _t({
408
+ rowHeight: l,
409
+ fontSize: s,
410
+ showProgression: t
411
+ }) {
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;
415
+ }
416
+ const kt = /* @__PURE__ */ (() => {
417
+ let l = null, s = 0;
418
+ const t = 1;
419
+ return (a) => {
420
+ if (a === O.value) {
421
+ l = null, s = 0;
422
+ return;
423
+ }
424
+ l === null || l !== a ? (l = a, s = 1) : (s += 1, s >= t && (O.value = a, l = null, s = 0));
425
+ };
426
+ })(), We = me(() => {
427
+ requestAnimationFrame(() => {
428
+ requestAnimationFrame(() => {
429
+ const l = _t({
430
+ rowHeight: o.value.rowHeight,
431
+ fontSize: e.value.style.chart.labels.yAxisLabels.fontSize,
432
+ showProgression: e.value.style.chart.labels.yAxisLabels.showProgression
433
+ });
434
+ kt(l);
435
+ });
436
+ });
437
+ }, 100);
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 });
440
+ }
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 });
443
+ }
444
+ function fe({ datapoint: l, seriesIndex: s }) {
445
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: s });
446
+ }
447
+ const be = g(() => {
448
+ if (r.value === null) return 0;
449
+ const l = ![null, void 0].includes(r.value.start), s = ![null, void 0].includes(r.value.end);
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(() => {
452
+ if (r.value === null) return "";
453
+ const l = ![null, void 0].includes(r.value.start), s = ![null, void 0].includes(r.value.end);
454
+ let t = "", a = "";
455
+ return l && (t = H(
456
+ e.value.style.chart.labels.formatter,
457
+ r.value.start,
458
+ w({
459
+ p: e.value.style.chart.labels.prefix,
460
+ v: r.value.start,
461
+ s: e.value.style.chart.labels.suffix,
462
+ r: e.value.style.chart.labels.startLabels.rounding
463
+ }),
464
+ { datapoint: r.value, seriesIndex: I.value }
465
+ )), s && (a = H(
466
+ e.value.style.chart.labels.formatter,
467
+ r.value.end,
468
+ w({
469
+ p: e.value.style.chart.labels.prefix,
470
+ v: r.value.end,
471
+ s: e.value.style.chart.labels.suffix,
472
+ r: e.value.style.chart.labels.startLabels.rounding
473
+ }),
474
+ { datapoint: r.value, seriesIndex: I.value }
475
+ )), l && s ? `${t} → ${a}` : l && !s ? t : s && !l ? a : "";
476
+ });
477
+ return nt({
478
+ getData: mt,
479
+ getImage: pt,
480
+ generatePdf: Ie,
481
+ generateCsv: Re,
482
+ generateImage: Oe,
483
+ toggleTable: Ve,
484
+ toggleAnnotator: de,
485
+ toggleFullscreen: Be
486
+ }), (l, s) => (n(), c("div", {
487
+ ref_key: "dumbbellChart",
488
+ ref: T,
489
+ class: Je(`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_${b.value}`,
492
+ onMouseenter: s[1] || (s[1] = () => i(Ae)(!0)),
493
+ onMouseleave: s[2] || (s[2] = () => i(Ae)(!1))
494
+ }, [
495
+ e.value.userOptions.buttons.annotator ? (n(), F(i(it), {
496
+ key: 0,
497
+ svgRef: i(Se),
498
+ backgroundColor: e.value.style.chart.backgroundColor,
499
+ color: e.value.style.chart.color,
500
+ active: Q.value,
501
+ onClose: de
502
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
503
+ yt.value ? (n(), c("div", {
504
+ key: 1,
505
+ ref_key: "noTitle",
506
+ ref: Ce,
507
+ class: "vue-data-ui-no-title-space",
508
+ style: "height:36px; width: 100%;background:transparent"
509
+ }, null, 512)) : f("", !0),
510
+ e.value.style.chart.title.text ? (n(), c("div", {
511
+ key: 2,
512
+ ref_key: "chartTitle",
513
+ ref: xe,
514
+ style: "width:100%;background:transparent;padding-bottom:24px"
515
+ }, [
516
+ (n(), F(Wt, {
517
+ key: `title_${we.value}`,
518
+ config: {
519
+ title: {
520
+ cy: "donut-div-title",
521
+ ...e.value.style.chart.title
522
+ },
523
+ subtitle: {
524
+ cy: "donut-div-subtitle",
525
+ ...e.value.style.chart.title.subtitle
526
+ }
527
+ }
528
+ }, null, 8, ["config"]))
529
+ ], 512)) : f("", !0),
530
+ e.value.userOptions.show && Z.value && (i(Ne) || i(ue)) ? (n(), F(i(ct), {
531
+ ref: "details",
532
+ key: `user_option_${pe.value}`,
533
+ backgroundColor: e.value.style.chart.backgroundColor,
534
+ color: e.value.style.chart.color,
535
+ isPrinting: i(ze),
536
+ isImaging: i(Te),
537
+ uid: b.value,
538
+ hasPdf: e.value.userOptions.buttons.pdf,
539
+ hasXls: e.value.userOptions.buttons.csv,
540
+ hasImg: e.value.userOptions.buttons.img,
541
+ hasTable: e.value.userOptions.buttons.table,
542
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
543
+ isFullscreen: V.value,
544
+ titles: { ...e.value.userOptions.buttonTitles },
545
+ chartElement: T.value,
546
+ position: e.value.userOptions.position,
547
+ hasAnnotator: e.value.userOptions.buttons.annotator,
548
+ isAnnotation: Q.value,
549
+ callbacks: e.value.userOptions.callbacks,
550
+ printScale: e.value.userOptions.print.scale,
551
+ onToggleFullscreen: Be,
552
+ onGeneratePdf: i(Ie),
553
+ onGenerateCsv: Re,
554
+ onGenerateImage: i(Oe),
555
+ onToggleTable: Ve,
556
+ onToggleAnnotator: de,
557
+ style: ee({
558
+ visibility: i(Ne) ? i(ue) ? "visible" : "hidden" : "visible"
559
+ })
560
+ }, At({ _: 2 }, [
561
+ l.$slots.menuIcon ? {
562
+ name: "menuIcon",
563
+ fn: x(({ isOpen: t, color: a }) => [
564
+ p(l.$slots, "menuIcon", te(le({ isOpen: t, color: a })), void 0, !0)
565
+ ]),
566
+ key: "0"
567
+ } : void 0,
568
+ l.$slots.optionPdf ? {
569
+ name: "optionPdf",
570
+ fn: x(() => [
571
+ p(l.$slots, "optionPdf", {}, void 0, !0)
572
+ ]),
573
+ key: "1"
574
+ } : void 0,
575
+ l.$slots.optionCsv ? {
576
+ name: "optionCsv",
577
+ fn: x(() => [
578
+ p(l.$slots, "optionCsv", {}, void 0, !0)
579
+ ]),
580
+ key: "2"
581
+ } : void 0,
582
+ l.$slots.optionImg ? {
583
+ name: "optionImg",
584
+ fn: x(() => [
585
+ p(l.$slots, "optionImg", {}, void 0, !0)
586
+ ]),
587
+ key: "3"
588
+ } : void 0,
589
+ l.$slots.optionTable ? {
590
+ name: "optionTable",
591
+ fn: x(() => [
592
+ p(l.$slots, "optionTable", {}, void 0, !0)
593
+ ]),
594
+ key: "4"
595
+ } : void 0,
596
+ l.$slots.optionFullscreen ? {
597
+ name: "optionFullscreen",
598
+ fn: x(({ toggleFullscreen: t, isFullscreen: a }) => [
599
+ p(l.$slots, "optionFullscreen", te(le({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
600
+ ]),
601
+ key: "5"
602
+ } : void 0,
603
+ l.$slots.optionAnnotator ? {
604
+ name: "optionAnnotator",
605
+ fn: x(({ toggleAnnotator: t, isAnnotator: a }) => [
606
+ p(l.$slots, "optionAnnotator", te(le({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
607
+ ]),
608
+ key: "6"
609
+ } : 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", {
612
+ 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
+ viewBox: `0 0 ${R.value} ${o.value.absoluteHeight <= 0 ? 10 : o.value.absoluteHeight}`,
617
+ style: ee(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
618
+ }, [
619
+ Nt(i(vt)),
620
+ l.$slots["chart-background"] ? (n(), c("foreignObject", {
621
+ key: 0,
622
+ x: o.value.left,
623
+ y: o.value.top,
624
+ width: Math.max(0.1, o.value.width),
625
+ height: Math.max(0.1, o.value.height),
626
+ style: {
627
+ pointerEvents: "none"
628
+ }
629
+ }, [
630
+ 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
+ x1: o.value.left + a * o.value.width / ($.value.ticks.length - 1),
635
+ x2: o.value.left + a * o.value.width / ($.value.ticks.length - 1),
636
+ y1: o.value.top,
637
+ y2: o.value.bottom,
638
+ stroke: e.value.style.chart.grid.verticalGrid.stroke,
639
+ "stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
640
+ "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", {
645
+ x1: o.value.left,
646
+ x2: o.value.right,
647
+ y1: o.value.top + a * o.value.rowHeight,
648
+ y2: o.value.top + a * o.value.rowHeight,
649
+ stroke: e.value.style.chart.grid.horizontalGrid.stroke,
650
+ "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
651
+ "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
652
+ }, null, 8, tl))), 256)),
653
+ v("line", {
654
+ x1: o.value.left,
655
+ x2: o.value.right,
656
+ y1: o.value.bottom,
657
+ y2: o.value.bottom,
658
+ stroke: e.value.style.chart.grid.horizontalGrid.stroke,
659
+ "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
660
+ "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
+ key: 3,
665
+ ref_key: "yAxisLabel",
666
+ ref: ae,
667
+ transform: `translate(${e.value.style.chart.labels.axis.fontSize}, ${o.value.absoluteHeight / 2}), rotate(-90)`,
668
+ "font-size": e.value.style.chart.labels.axis.fontSize,
669
+ fill: e.value.style.chart.labels.axis.color,
670
+ "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", {
673
+ key: 4,
674
+ ref_key: "serieLabels",
675
+ ref: se
676
+ }, [
677
+ (n(!0), c(C, null, A(k.value, (t, a) => (n(), c("text", {
678
+ class: "vue-ui-dumbbell-serie-name",
679
+ key: `serieLabel_${t.id}_${a}`,
680
+ 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,
682
+ "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
683
+ fill: e.value.style.chart.labels.yAxisLabels.color,
684
+ "font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
685
+ "text-anchor": "end",
686
+ onMouseenter: (u) => he({ datapoint: t, seriesIndex: a }),
687
+ onMouseleave: (u) => ye({ datapoint: t, seriesIndex: a }),
688
+ 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)(
690
+ e.value.style.chart.labels.yAxisLabels.formatter,
691
+ 100 * (t.end / t.start - 1),
692
+ i(w)({
693
+ v: 100 * (t.end / t.start - 1),
694
+ s: "%",
695
+ r: e.value.style.chart.labels.yAxisLabels.rounding
696
+ }),
697
+ { 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", {
700
+ class: "vue-ui-dumbbell-serie-value",
701
+ x: o.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
702
+ y: o.value.top + a * o.value.rowHeight + o.value.rowHeight / 1.3 + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
703
+ "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
704
+ fill: e.value.style.chart.labels.yAxisLabels.color,
705
+ "text-anchor": "end",
706
+ onMouseenter: (u) => he({ datapoint: t, seriesIndex: a }),
707
+ onMouseleave: (u) => ye({ datapoint: t, seriesIndex: a }),
708
+ onClick: (u) => fe({ datapoint: t, seriesIndex: a })
709
+ }, _([null, void 0].includes(t.start) || [null, void 0].includes(t.end) ? "" : i(H)(
710
+ e.value.style.chart.labels.yAxisLabels.formatter,
711
+ 100 * (t.end / t.start - 1),
712
+ i(w)({
713
+ v: 100 * (t.end / t.start - 1),
714
+ s: "%",
715
+ r: e.value.style.chart.labels.yAxisLabels.rounding
716
+ }),
717
+ { datapoint: t }
718
+ )), 41, ol))), 256)) : f("", !0)
719
+ ], 512)) : f("", !0),
720
+ e.value.style.chart.labels.axis.xLabel ? (n(), c("text", {
721
+ key: 5,
722
+ ref_key: "xAxisLabel",
723
+ ref: oe,
724
+ x: o.value.left + o.value.width / 2,
725
+ y: o.value.absoluteHeight - e.value.style.chart.labels.axis.fontSize / 3,
726
+ "font-size": e.value.style.chart.labels.axis.fontSize,
727
+ fill: e.value.style.chart.labels.axis.color,
728
+ "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", {
731
+ key: 6,
732
+ ref_key: "scaleLabels",
733
+ ref: J
734
+ }, [
735
+ (n(!0), c(C, null, A($.value.ticks, (t, a) => (n(), c("text", {
736
+ class: "vue-ui-dumbbell-scale-label",
737
+ key: `tick_${a}`,
738
+ 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})`,
739
+ "font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
740
+ fill: e.value.style.chart.labels.xAxisLabels.color,
741
+ "font-weight": e.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
742
+ "text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
743
+ }, _(i(H)(
744
+ e.value.style.chart.labels.formatter,
745
+ t,
746
+ i(w)({
747
+ p: e.value.style.chart.labels.prefix,
748
+ v: t,
749
+ s: e.value.style.chart.labels.suffix,
750
+ r: e.value.style.chart.labels.xAxisLabels.rounding
751
+ }),
752
+ { datapoint: t, seriesIndex: a }
753
+ )), 9, rl))), 128))
754
+ ], 512)) : f("", !0),
755
+ W(v("g", null, [
756
+ W(v("path", {
757
+ 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
+ stroke: r.value ? e.value.style.chart.plots.evaluationColors.enable ? r.value.evaluationColor : e.value.style.chart.plots.startColor : "transparent",
759
+ "stroke-width": e.value.style.chart.comparisonLines.strokeWidth,
760
+ "stroke-dasharray": e.value.style.chart.comparisonLines.strokeDasharray,
761
+ style: { transition: "all 0.3s ease-in-out" }
762
+ }, null, 8, ul), [
763
+ [q, r.value !== null && ![null, void 0].includes(r.value.start)]
764
+ ]),
765
+ W(v("path", {
766
+ 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
+ stroke: r.value ? e.value.style.chart.plots.evaluationColors.enable ? r.value.evaluationColor : e.value.style.chart.plots.endColor : "transparent",
768
+ "stroke-width": e.value.style.chart.comparisonLines.strokeWidth,
769
+ "stroke-dasharray": e.value.style.chart.comparisonLines.strokeDasharray,
770
+ style: { transition: "all 0.3s ease-in-out" }
771
+ }, null, 8, il), [
772
+ [q, r.value !== null && ![null, void 0].includes(r.value.end)]
773
+ ]),
774
+ W(v("rect", {
775
+ x: r.value ? Math.min(r.value.startX, r.value.endX) : o.value.left,
776
+ y: o.value.top,
777
+ height: Math.max(0.1, o.value.height),
778
+ 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",
780
+ style: { transition: "all 0.3s ease-in-out" }
781
+ }, null, 8, cl), [
782
+ [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
+ ]),
784
+ W(v("text", {
785
+ transform: `translate(${be.value == null ? 0 : be.value}, ${o.value.top - 6})`,
786
+ fill: e.value.style.chart.comparisonLines.labelColor,
787
+ "font-size": e.value.style.chart.comparisonLines.labelFontSize,
788
+ "text-anchor": "middle",
789
+ style: { transition: "all 0.3s ease-in-out" }
790
+ }, _(Ct.value), 9, vl), [
791
+ [q, r.value !== null && be.value !== null && e.value.style.chart.comparisonLines.showLabel]
792
+ ])
793
+ ], 512), [
794
+ [q, e.value.style.chart.comparisonLines.show && I.value !== null]
795
+ ]),
796
+ v("defs", null, [
797
+ v("radialGradient", {
798
+ id: `start_grad_${b.value}`,
799
+ fy: "30%"
800
+ }, [
801
+ v("stop", {
802
+ offset: "10%",
803
+ "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", {
806
+ offset: "90%",
807
+ "stop-color": i(Y)(e.value.style.chart.plots.startColor, 0.1)
808
+ }, null, 8, yl),
809
+ v("stop", {
810
+ offset: "100%",
811
+ "stop-color": e.value.style.chart.plots.startColor
812
+ }, null, 8, fl)
813
+ ], 8, dl),
814
+ v("radialGradient", {
815
+ id: `end_grad_${b.value}`,
816
+ fy: "30%"
817
+ }, [
818
+ v("stop", {
819
+ offset: "10%",
820
+ "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", {
823
+ offset: "90%",
824
+ "stop-color": i(Y)(e.value.style.chart.plots.endColor, 0.1)
825
+ }, null, 8, ml),
826
+ v("stop", {
827
+ offset: "100%",
828
+ "stop-color": e.value.style.chart.plots.endColor
829
+ }, null, 8, pl)
830
+ ], 8, bl),
831
+ v("radialGradient", {
832
+ id: `positive_grad_${b.value}`,
833
+ fy: "30%"
834
+ }, [
835
+ v("stop", {
836
+ offset: "10%",
837
+ "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", {
840
+ offset: "90%",
841
+ "stop-color": i(Y)(e.value.style.chart.plots.evaluationColors.positive, 0.1)
842
+ }, null, 8, kl),
843
+ v("stop", {
844
+ offset: "100%",
845
+ "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}`,
850
+ fy: "30%"
851
+ }, [
852
+ v("stop", {
853
+ offset: "10%",
854
+ "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", {
857
+ offset: "90%",
858
+ "stop-color": i(Y)(e.value.style.chart.plots.evaluationColors.negative, 0.1)
859
+ }, null, 8, Ll),
860
+ v("stop", {
861
+ offset: "100%",
862
+ "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}`,
867
+ fy: "30%"
868
+ }, [
869
+ v("stop", {
870
+ offset: "10%",
871
+ "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", {
874
+ offset: "90%",
875
+ "stop-color": i(Y)(e.value.style.chart.plots.evaluationColors.neutral, 0.1)
876
+ }, null, 8, Ml),
877
+ v("stop", {
878
+ offset: "100%",
879
+ "stop-color": e.value.style.chart.plots.evaluationColors.neutral
880
+ }, null, 8, Xl)
881
+ ], 8, Nl)
882
+ ]),
883
+ (n(!0), c(C, null, A(k.value, (t, a) => (n(), c("g", {
884
+ key: `plot_${a}_${t.id}`
885
+ }, [
886
+ v("defs", null, [
887
+ v("linearGradient", {
888
+ id: `grad_pos_${b.value}`,
889
+ x1: "0%",
890
+ x2: "100%",
891
+ y1: "0%",
892
+ y2: "0%"
893
+ }, [
894
+ v("stop", {
895
+ offset: "0%",
896
+ "stop-color": e.value.style.chart.plots.startColor
897
+ }, null, 8, Tl),
898
+ v("stop", {
899
+ offset: "100%",
900
+ "stop-color": e.value.style.chart.plots.endColor
901
+ }, null, 8, Il)
902
+ ], 8, zl),
903
+ v("linearGradient", {
904
+ id: `grad_neg_${b.value}`,
905
+ x1: "0%",
906
+ x2: "100%",
907
+ y1: "0%",
908
+ y2: "0%"
909
+ }, [
910
+ v("stop", {
911
+ offset: "0%",
912
+ "stop-color": e.value.style.chart.plots.endColor
913
+ }, null, 8, Fl),
914
+ v("stop", {
915
+ offset: "100%",
916
+ "stop-color": e.value.style.chart.plots.startColor
917
+ }, null, 8, Hl)
918
+ ], 8, Ol)
919
+ ]),
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
+ d: `M
924
+ ${t.startX},${t.y + M.value / 2}
925
+ C ${t.centerX},${t.y} ${t.centerX},${t.y}
926
+ ${t.endX},${t.y + M.value / 2}
927
+ L ${t.endX},${t.y - M.value / 2}
928
+ C ${t.centerX},${t.y} ${t.centerX},${t.y}
929
+ ${t.startX},${t.y - M.value / 2}
930
+ Z
931
+ `,
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", {
936
+ x: t.endX > t.startX ? t.startX : t.endX,
937
+ y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
938
+ height: Math.max(0.01, e.value.style.chart.plots.link.strokeWidth),
939
+ 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)
942
+ ]))
943
+ ])) : f("", !0),
944
+ [null, void 0].includes(t.start) ? f("", !0) : (n(), c("circle", {
945
+ key: 1,
946
+ cx: t.startX,
947
+ cy: t.y,
948
+ 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,
950
+ stroke: e.value.style.chart.plots.stroke,
951
+ "stroke-width": e.value.style.chart.plots.strokeWidth
952
+ }, null, 8, Bl)),
953
+ [null, void 0].includes(t.end) ? f("", !0) : (n(), c("circle", {
954
+ key: 2,
955
+ cx: t.endX,
956
+ cy: t.y,
957
+ 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,
959
+ stroke: e.value.style.chart.plots.stroke,
960
+ "stroke-width": e.value.style.chart.plots.strokeWidth
961
+ }, null, 8, Vl))
962
+ ]))), 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", {
965
+ key: `start_label_${a}_${t.id}`
966
+ }, [
967
+ [null, void 0].includes(t.start) ? f("", !0) : (n(), c("text", {
968
+ key: 0,
969
+ x: t.startX,
970
+ y: t.y + M.value * 2 + e.value.style.chart.labels.startLabels.fontSize / 2,
971
+ 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,
972
+ "font-size": e.value.style.chart.labels.startLabels.fontSize,
973
+ "text-anchor": "middle"
974
+ }, _(i(H)(
975
+ e.value.style.chart.labels.formatter,
976
+ t.start,
977
+ i(w)({
978
+ p: e.value.style.chart.labels.prefix,
979
+ v: t.start,
980
+ s: e.value.style.chart.labels.suffix,
981
+ r: e.value.style.chart.labels.startLabels.rounding
982
+ }),
983
+ { datapoint: t, seriesIndex: a }
984
+ )), 9, Wl))
985
+ ]))), 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
+ key: `end_label_${a}_${t.id}`
990
+ }, [
991
+ [null, void 0].includes(t.end) ? f("", !0) : (n(), c("text", {
992
+ key: 0,
993
+ x: t.endX,
994
+ y: t.y - (M.value * 2 - e.value.style.chart.labels.startLabels.fontSize / 3),
995
+ 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,
996
+ "font-size": e.value.style.chart.labels.endLabels.fontSize,
997
+ "text-anchor": "middle"
998
+ }, _(i(H)(
999
+ e.value.style.chart.labels.formatter,
1000
+ t.end,
1001
+ i(w)({
1002
+ p: e.value.style.chart.labels.prefix,
1003
+ v: t.end,
1004
+ s: e.value.style.chart.labels.suffix,
1005
+ r: e.value.style.chart.labels.endLabels.rounding
1006
+ }),
1007
+ { datapoint: t, seriesIndex: a }
1008
+ )), 9, jl))
1009
+ ]))), 128))
1010
+ ])) : f("", !0),
1011
+ v("g", null, [
1012
+ (n(!0), c(C, null, A(k.value, (t, a) => (n(), c("rect", {
1013
+ x: o.value.left,
1014
+ y: o.value.top + a * Math.max(0.1, o.value.rowHeight),
1015
+ width: Math.max(0.1, o.value.width),
1016
+ 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",
1018
+ onMouseenter: (u) => he({ datapoint: t, seriesIndex: a }),
1019
+ onMouseleave: (u) => ye({ datapoint: t, seriesIndex: a }),
1020
+ onClick: (u) => fe({ datapoint: t, seriesIndex: a })
1021
+ }, null, 40, Yl))), 256))
1022
+ ]),
1023
+ 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
1031
+ }, [
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
1047
+ }, [
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,
1068
+ ref_key: "source",
1069
+ ref: ke,
1070
+ dir: "auto"
1071
+ }, [
1072
+ p(l.$slots, "source", {}, void 0, !0)
1073
+ ], 512)) : f("", !0),
1074
+ Z.value ? (n(), F(i(rt), {
1075
+ key: 6,
1076
+ hideDetails: "",
1077
+ config: {
1078
+ open: D.value.showTable,
1079
+ maxHeight: 1e4,
1080
+ body: {
1081
+ backgroundColor: e.value.style.chart.backgroundColor,
1082
+ color: e.value.style.chart.color
1083
+ },
1084
+ head: {
1085
+ backgroundColor: e.value.style.chart.backgroundColor,
1086
+ color: e.value.style.chart.color
1087
+ }
1088
+ }
1089
+ }, {
1090
+ content: x(() => [
1091
+ (n(), F(i(ut), {
1092
+ key: `table_${$e.value}`,
1093
+ colNames: K.value.colNames,
1094
+ head: K.value.head,
1095
+ body: K.value.body,
1096
+ config: K.value.config,
1097
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1098
+ onClose: s[0] || (s[0] = (t) => D.value.showTable = !1)
1099
+ }, {
1100
+ th: x(({ th: t }) => [
1101
+ v("div", {
1102
+ innerHTML: t,
1103
+ style: { display: "flex", "align-items": "center" }
1104
+ }, null, 8, Ql)
1105
+ ]),
1106
+ td: x(({ td: t }) => [
1107
+ Ke(_(t.name || t), 1)
1108
+ ]),
1109
+ _: 1
1110
+ }, 8, ["colNames", "head", "body", "config", "title"]))
1111
+ ]),
1112
+ _: 1
1113
+ }, 8, ["config"])) : f("", !0),
1114
+ i(ne) ? (n(), F(Et, { key: 7 })) : f("", !0)
1115
+ ], 46, Yt));
1116
+ }
1117
+ }, fa = /* @__PURE__ */ jt(ea, [["__scopeId", "data-v-3777c0fc"]]);
1118
+ export {
1119
+ fa as default
1120
+ };