vue-data-ui 3.0.0-next.9 → 3.0.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 (144) hide show
  1. package/README.md +32 -30
  2. package/dist/{Arrow-B6OlqyCG.js → Arrow-DQoWnUfD.js} +1 -1
  3. package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-DEw6oieL.js} +4 -4
  4. package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-DEl03NUZ.js} +1 -1
  5. package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-CrivFZqC.js} +2 -2
  6. package/dist/{DataTable--paavNqF.js → DataTable-ClgCsiJA.js} +2 -2
  7. package/dist/{Legend-BZ06qU55.js → Legend-CMvJ6X5j.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-B2Wvbl3p.js} +3 -3
  9. package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CD5VH_Al.js} +3 -3
  10. package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3WRn-G2.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-Adi9i_-f.js} +43 -37
  15. package/dist/Slicer-t6e1t2iM.js +602 -0
  16. package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-B8OnBSvk.js} +7 -7
  17. package/dist/{Title-B2dA6-uH.js → Title-xTWR-Vil.js} +1 -1
  18. package/dist/{Tooltip-O_hCvqgF.js → Tooltip-BH3CiANh.js} +23 -19
  19. package/dist/{UserOptions-Bk03FRqW.js → UserOptions-CKKPgDLV.js} +2 -2
  20. package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-C4hj491O.js} +1 -1
  21. package/dist/{img-C_9wps3s.js → img-Vb4QHAHI.js} +1 -1
  22. package/dist/{index-CgShIRes.js → index-Dzc2Gi60.js} +2885 -2010
  23. package/dist/{pdf-CXdbjyRJ.js → pdf-ddpqw-dt.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-CN_Jh8Hr.js +81 -0
  28. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  29. package/dist/useLoading-D7YHNtLX.js +29 -0
  30. package/dist/useNestedProp-CjnS13nF.js +13 -0
  31. package/dist/usePanZoom-BVca3eMk.js +122 -0
  32. package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DBRh8ZvS.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-B7ztqj9-.js} +105 -100
  36. package/dist/vue-data-ui.js +26 -25
  37. package/dist/vue-ui-3d-bar-DUmYPtHl.js +1323 -0
  38. package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-CPk8wAuj.js} +3 -3
  39. package/dist/vue-ui-age-pyramid-Bv5HmeXj.js +835 -0
  40. package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-KXWlIhtd.js} +12 -12
  41. package/dist/vue-ui-bullet-B4N4mBk9.js +571 -0
  42. package/dist/vue-ui-candlestick-DENvPnUO.js +1000 -0
  43. package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-vC2bHBaY.js} +29 -29
  44. package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-2nS0StrY.js} +664 -536
  45. package/dist/vue-ui-chord-CyfS6vNM.js +1038 -0
  46. package/dist/vue-ui-circle-pack-C4JR-0fx.js +709 -0
  47. package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-BgeSDtQh.js} +2 -2
  48. package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-9DWUBJ-I.js} +64 -64
  49. package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-BQO7IBFA.js} +2 -2
  50. package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-C-ZJXJ74.js} +431 -422
  51. package/dist/vue-ui-donut-evolution-B870IrQA.js +1076 -0
  52. package/dist/vue-ui-dumbbell-Cfs2Uotx.js +1120 -0
  53. package/dist/vue-ui-flow-DnaUVVAD.js +841 -0
  54. package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-B9s-H5ZG.js} +16 -16
  55. package/dist/vue-ui-galaxy-BoJOczdh.js +680 -0
  56. package/dist/vue-ui-gauge-qjm4BqZR.js +791 -0
  57. package/dist/vue-ui-gizmo-fn7ZaMTI.js +210 -0
  58. package/dist/vue-ui-heatmap-CIBDKhh8.js +1078 -0
  59. package/dist/vue-ui-history-plot-bbNxldYG.js +1074 -0
  60. package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-BX-2jhLx.js} +26 -26
  61. package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-Bn1Bb8-J.js} +2 -2
  62. package/dist/vue-ui-molecule-DQ3qFtBq.js +656 -0
  63. package/dist/vue-ui-mood-radar-Cf-ehIo1.js +785 -0
  64. package/dist/vue-ui-nested-donuts-CWg5BEi-.js +1284 -0
  65. package/dist/vue-ui-onion-sHgQTYfa.js +776 -0
  66. package/dist/vue-ui-parallel-coordinate-plot-Ki3ITp_s.js +916 -0
  67. package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-BIVqW7U7.js} +512 -459
  68. package/dist/vue-ui-quick-chart-C_hvHc1b.js +1762 -0
  69. package/dist/vue-ui-radar-RZUPyPwB.js +796 -0
  70. package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-BI8Vk7dO.js} +2 -2
  71. package/dist/vue-ui-relation-circle-TVMUEtxK.js +598 -0
  72. package/dist/vue-ui-ridgeline-DQeXHQG4.js +1157 -0
  73. package/dist/vue-ui-rings-BH81WmMS.js +728 -0
  74. package/dist/vue-ui-scatter-Cy7Tz_An.js +1178 -0
  75. package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-CF50qQxr.js} +13 -13
  76. package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-CrFXEbJs.js} +46 -46
  77. package/dist/vue-ui-spark-trend-DtHArnot.js +315 -0
  78. package/dist/vue-ui-sparkbar-CIOwFFgA.js +351 -0
  79. package/dist/vue-ui-sparkgauge-E0DdGotz.js +232 -0
  80. package/dist/vue-ui-sparkhistogram-Dm7WoyjY.js +380 -0
  81. package/dist/vue-ui-sparkline-DoW6DDKT.js +513 -0
  82. package/dist/vue-ui-sparkstackbar-BJnPUWY4.js +421 -0
  83. package/dist/vue-ui-stackbar-Du42smPs.js +1371 -0
  84. package/dist/vue-ui-strip-plot-DnenGI-d.js +916 -0
  85. package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BQOQVlHr.js} +17 -17
  86. package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-BzK4_gsP.js} +5 -5
  87. package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-B-IwcT8I.js} +19 -16
  88. package/dist/vue-ui-thermometer-06ao_Pj5.js +541 -0
  89. package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-CxQq4roK.js} +5 -5
  90. package/dist/vue-ui-tiremarks-CuTxkByj.js +406 -0
  91. package/dist/vue-ui-treemap-BgHhRpiV.js +1035 -0
  92. package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-CAcsUUCo.js} +104 -102
  93. package/dist/vue-ui-waffle-Ct3Upw3m.js +910 -0
  94. package/dist/vue-ui-wheel-oz06Kt-p.js +379 -0
  95. package/dist/vue-ui-word-cloud-BRy7fg4S.js +765 -0
  96. package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-CTV-YfFN.js} +364 -327
  97. package/dist/vue-ui-xy-DqCy9dpa.js +3808 -0
  98. package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-BZdhKUIp.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
@@ -1,753 +0,0 @@
1
- import { defineAsyncComponent as O, computed as m, ref as d, watch as pe, shallowRef as me, onMounted as ke, onBeforeUnmount as Ue, createElementBlock as r, openBlock as o, unref as n, normalizeStyle as V, normalizeClass as _e, createBlock as z, createCommentVNode as v, createElementVNode as i, createSlots as Be, withCtx as _, renderSlot as k, normalizeProps as E, guardReactiveProps as H, createVNode as je, Fragment as $, renderList as L, toDisplayString as S, createTextVNode as xe, nextTick as qe } from "vue";
2
- import { u as Ye, c as we, a as Ze, o as Je, e as Ce, g as Ke, v as $e, D as Qe, f as X, X as Le, i as q, l as Ae, h as ze, q as et, r as tt } from "./index-CgShIRes.js";
3
- import { t as lt, u as at } from "./useResponsive-DfdjqQps.js";
4
- import { u as Se } from "./useNestedProp-BC4Ciblw.js";
5
- import { u as st } from "./usePrinter-rIrqBbbm.js";
6
- import { u as ot } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as rt } from "./useChartAccessibility-9icAAmYg.js";
8
- import nt from "./Legend-BZ06qU55.js";
9
- import ut from "./Title-B2dA6-uH.js";
10
- import it from "./img-C_9wps3s.js";
11
- import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"], yt = { key: 1 }, ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bt = { key: 2 }, gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], mt = { key: 3 }, kt = ["x", "y", "font-size", "fill", "font-weight"], _t = ["x", "y", "font-size", "fill"], xt = { key: 4 }, wt = ["x", "y", "font-size", "fill", "font-weight"], Ct = ["id"], $t = ["stop-color"], Lt = ["stop-color"], At = ["stop-color"], zt = ["id"], St = ["stop-color"], Xt = ["stop-color"], Nt = ["stop-color"], Tt = ["id"], Ot = ["stop-color"], Pt = ["stop-color"], It = ["id"], Mt = ["stop-color"], Gt = ["stop-color"], Dt = { key: 0 }, Ft = ["d", "fill"], Rt = { key: 1 }, Vt = ["x", "y", "height", "width", "fill"], Et = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ht = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Wt = { key: 5 }, Ut = ["x", "y", "fill", "font-size"], Bt = { key: 6 }, jt = ["x", "y", "fill", "font-size"], qt = {
13
- key: 5,
14
- class: "vue-data-ui-watermark"
15
- }, Yt = ["xmlns", "height", "width"], Zt = ["fill"], Jt = ["innerHTML"], Kt = {
16
- __name: "vue-ui-dumbbell",
17
- props: {
18
- config: {
19
- type: Object,
20
- default() {
21
- return {};
22
- }
23
- },
24
- dataset: {
25
- type: Array,
26
- default() {
27
- return [];
28
- }
29
- }
30
- },
31
- emits: ["selectDatapoint"],
32
- setup(Xe, { expose: Ne, emit: Qt }) {
33
- const Te = O(() => import("./vue-ui-accordion-hlzscmAS.js")), Oe = O(() => import("./DataTable--paavNqF.js")), Pe = O(() => import("./PackageVersion-2QvaZf9_.js")), Ie = O(() => import("./PenAndPaper-hGgW0EHz.js")), Me = O(() => import("./vue-ui-skeleton-BsBaCvoE.js")), Ge = O(() => import("./UserOptions-Bk03FRqW.js")), { vue_ui_dumbbell: De } = Ye(), g = Xe, N = m({
34
- get() {
35
- return !!g.dataset && g.dataset.length;
36
- },
37
- set(l) {
38
- return l;
39
- }
40
- }), y = d(we()), Y = d(0), A = d(null), Z = d(null), J = d(null), K = d(null), Q = d(null), ee = d(0), te = d(0), le = d(0), e = m({
41
- get: () => re(),
42
- set: (l) => l
43
- }), { userOptionsVisible: W, setUserOptionsVisibility: ae, keepUserOptionState: se } = ot({ config: e.value }), { svgRef: oe } = rt({ config: e.value.style.chart.title });
44
- function re() {
45
- const l = Se({
46
- userConfig: g.config,
47
- defaultConfig: De
48
- });
49
- return l.theme ? {
50
- ...Se({
51
- userConfig: Ze.vue_ui_dumbbell[l.theme] || g.config,
52
- defaultConfig: l
53
- })
54
- } : l;
55
- }
56
- pe(() => g.config, (l) => {
57
- e.value = re(), W.value = !e.value.userOptions.showOnChartHover, ne(), ee.value += 1, te.value += 1, le.value += 1, h.value = e.value.style.chart.rowHeight, I.value = e.value.style.chart.width, P.value.showTable = e.value.table.show;
58
- }, { deep: !0 }), pe(() => g.dataset, (l) => {
59
- he();
60
- }, { deep: !0 });
61
- const w = me(null), T = me(null);
62
- ke(() => {
63
- ne();
64
- });
65
- function ne() {
66
- if (Je(g.dataset) ? Ce({
67
- componentName: "VueUiDumbbell",
68
- type: "dataset"
69
- }) : g.dataset.forEach((l, u) => {
70
- Ke({
71
- datasetObject: l,
72
- requiredAttributes: ["name", "start", "end"]
73
- }).forEach((t) => {
74
- N.value = !1, Ce({
75
- componentName: "VueUiDumbbell",
76
- type: "datasetSerieAttribute",
77
- property: t,
78
- index: u
79
- });
80
- });
81
- }), e.value.responsive) {
82
- const l = lt(() => {
83
- const { width: u, height: t } = at({
84
- chart: A.value,
85
- title: e.value.style.chart.title.text ? Z.value : null,
86
- legend: e.value.style.chart.legend.show ? J.value : null,
87
- source: K.value,
88
- noTitle: Q.value
89
- });
90
- requestAnimationFrame(() => {
91
- I.value = u, h.value = t / g.dataset.length, f.value = G();
92
- });
93
- });
94
- w.value && (T.value && w.value.unobserve(T.value), w.value.disconnect()), w.value = new ResizeObserver(l), T.value = A.value.parentNode, w.value.observe(T.value);
95
- }
96
- }
97
- Ue(() => {
98
- w.value && (T.value && w.value.unobserve(T.value), w.value.disconnect());
99
- });
100
- const { isPrinting: ue, isImaging: ie, generatePdf: ce, generateImage: de } = st({
101
- elementId: `dumbbell_${y.value}`,
102
- fileName: e.value.style.chart.title.text || "vue-ui-dumbbell",
103
- options: e.value.userOptions.print
104
- }), Fe = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), P = d({
105
- showTable: e.value.table.show
106
- }), x = m(() => g.dataset.map((l, u) => ({
107
- ...l,
108
- start: $e(l.start),
109
- end: $e(l.end),
110
- id: we()
111
- }))), U = m(() => ({
112
- max: Math.max(...x.value.flatMap((l) => [l.start, l.end])),
113
- min: Math.min(...x.value.flatMap((l) => [l.start, l.end]))
114
- })), c = m(() => Qe(U.value.min < 0 ? U.value.min : 0, U.value.max, e.value.style.chart.grid.scaleSteps)), h = d(e.value.style.chart.rowHeight), I = d(e.value.style.chart.width), s = m(() => {
115
- const l = h.value, u = e.value.style.chart.padding.left + e.value.style.chart.padding.right + I.value, t = e.value.style.chart.padding.top + e.value.style.chart.padding.bottom + l * g.dataset.length, a = c.value.ticks.length * (I.value / c.value.ticks.length);
116
- return {
117
- left: e.value.style.chart.padding.left,
118
- right: u - e.value.style.chart.padding.right,
119
- top: e.value.style.chart.padding.top,
120
- bottom: t - e.value.style.chart.padding.bottom,
121
- width: I.value,
122
- height: l * g.dataset.length,
123
- rowHeight: l,
124
- absoluteHeight: t,
125
- absoluteWidth: u,
126
- widthPlotReference: a
127
- };
128
- });
129
- function G() {
130
- return x.value.map((l, u) => {
131
- const t = s.value.left + (l.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, a = s.value.left + (l.end + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, p = t + (a - t) / 2;
132
- return {
133
- ...l,
134
- startX: t,
135
- endX: a,
136
- centerX: p,
137
- y: s.value.top + u * h.value + h.value / 2,
138
- endVal: l.start
139
- };
140
- });
141
- }
142
- const f = d([]), ve = d(null), Re = m(() => x.value.map((l) => l.end).reduce((l, u) => l + u, 0));
143
- ke(() => {
144
- he();
145
- });
146
- function he() {
147
- f.value = G();
148
- let l = f.value.map((t) => t.start).reduce((t, a) => t + a, 0);
149
- function u() {
150
- const t = x.value.map((a) => a.end - a.start);
151
- l >= Re.value ? (cancelAnimationFrame(ve.value), f.value = G()) : (f.value = f.value.map((a, p) => {
152
- a.endVal += t[p] * (e.value.animationSpeed / 100);
153
- const b = s.value.left + (a.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, R = s.value.left + (a.endVal + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, j = b + (R - b) / 2;
154
- return {
155
- ...a,
156
- startX: b,
157
- endX: R,
158
- centerX: j,
159
- y: s.value.top + p * h.value + h.value / 2,
160
- endVal: a.endVal
161
- };
162
- }), l = f.value.map((a) => a.endVal).reduce((a, p) => a + p, 0), ve.value = requestAnimationFrame(u));
163
- }
164
- e.value.useAnimation ? u() : f.value = G();
165
- }
166
- const ye = m(() => [
167
- { name: e.value.style.chart.legend.labelStart, color: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${y.value})` : e.value.style.chart.plots.startColor },
168
- { name: e.value.style.chart.legend.labelEnd, color: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${y.value})` : e.value.style.chart.plots.endColor }
169
- ]), Ve = m(() => ({
170
- cy: "donut-div-legend",
171
- backgroundColor: e.value.style.chart.legend.backgroundColor,
172
- color: e.value.style.chart.legend.color,
173
- fontSize: e.value.style.chart.legend.fontSize,
174
- paddingBottom: 12,
175
- paddingTop: 12,
176
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
177
- })), C = m(() => {
178
- const l = f.value.map((t) => ({
179
- name: t.name
180
- })), u = f.value.map((t) => ({
181
- start: t.start,
182
- end: t.end
183
- }));
184
- return { head: l, body: u };
185
- }), D = m(() => {
186
- const l = [
187
- e.value.table.columnNames.series,
188
- e.value.table.columnNames.start,
189
- e.value.table.columnNames.end,
190
- e.value.table.columnNames.progression
191
- ], u = C.value.head.map((p, b) => {
192
- const R = X({
193
- p: e.value.style.chart.labels.prefix,
194
- v: C.value.body[b].start,
195
- s: e.value.style.chart.labels.suffix,
196
- r: e.value.table.td.roundingValue
197
- }), j = X({
198
- p: e.value.style.chart.labels.prefix,
199
- v: C.value.body[b].end,
200
- s: e.value.style.chart.labels.suffix,
201
- r: e.value.table.td.roundingValue
202
- }), We = X({
203
- v: 100 * (C.value.body[b].end / C.value.body[b].start - 1),
204
- s: "%",
205
- r: e.value.table.td.roundingPercentage
206
- });
207
- return [
208
- { name: p.name },
209
- R,
210
- j,
211
- We
212
- ];
213
- }), t = {
214
- th: {
215
- backgroundColor: e.value.table.th.backgroundColor,
216
- color: e.value.table.th.color,
217
- outline: e.value.table.th.outline
218
- },
219
- td: {
220
- backgroundColor: e.value.table.td.backgroundColor,
221
- color: e.value.table.td.color,
222
- outline: e.value.table.td.outline
223
- },
224
- breakpoint: e.value.table.responsiveBreakpoint
225
- };
226
- return {
227
- colNames: [
228
- e.value.table.columnNames.series,
229
- e.value.table.columnNames.start,
230
- e.value.table.columnNames.end,
231
- e.value.table.columnNames.progression
232
- ],
233
- head: l,
234
- body: u,
235
- config: t
236
- };
237
- });
238
- function fe(l = null) {
239
- qe(() => {
240
- const u = C.value.head.map((p, b) => [[
241
- p.name
242
- ], [C.value.body[b].start], [C.value.body[b].end]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(u), a = et(t);
243
- l ? l(a) : tt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
244
- });
245
- }
246
- const M = d(!1);
247
- function be(l) {
248
- M.value = l, Y.value += 1;
249
- }
250
- function Ee() {
251
- return x.value;
252
- }
253
- function ge() {
254
- P.value.showTable = !P.value.showTable;
255
- }
256
- const F = d(!1);
257
- function B() {
258
- F.value = !F.value;
259
- }
260
- async function He({ scale: l = 2 } = {}) {
261
- if (!A.value) return;
262
- const { width: u, height: t } = A.value.getBoundingClientRect(), a = u / t, { imageUri: p, base64: b } = await it({ domElement: A.value, base64: !0, img: !0, scale: l });
263
- return {
264
- imageUri: p,
265
- base64: b,
266
- title: e.value.style.chart.title.text,
267
- width: u,
268
- height: t,
269
- aspectRatio: a
270
- };
271
- }
272
- return Ne({
273
- getData: Ee,
274
- getImage: He,
275
- generatePdf: ce,
276
- generateCsv: fe,
277
- generateImage: de,
278
- toggleTable: ge,
279
- toggleAnnotator: B,
280
- toggleFullscreen: be
281
- }), (l, u) => (o(), r("div", {
282
- ref_key: "dumbbellChart",
283
- ref: A,
284
- class: _e(`vue-ui-dumbbell ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
285
- style: V(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
286
- id: `dumbbell_${y.value}`,
287
- onMouseenter: u[1] || (u[1] = () => n(ae)(!0)),
288
- onMouseleave: u[2] || (u[2] = () => n(ae)(!1))
289
- }, [
290
- e.value.userOptions.buttons.annotator ? (o(), z(n(Ie), {
291
- key: 0,
292
- svgRef: n(oe),
293
- backgroundColor: e.value.style.chart.backgroundColor,
294
- color: e.value.style.chart.color,
295
- active: F.value,
296
- onClose: B
297
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
298
- Fe.value ? (o(), r("div", {
299
- key: 1,
300
- ref_key: "noTitle",
301
- ref: Q,
302
- class: "vue-data-ui-no-title-space",
303
- style: "height:36px; width: 100%;background:transparent"
304
- }, null, 512)) : v("", !0),
305
- e.value.style.chart.title.text ? (o(), r("div", {
306
- key: 2,
307
- ref_key: "chartTitle",
308
- ref: Z,
309
- style: "width:100%;background:transparent;padding-bottom:24px"
310
- }, [
311
- (o(), z(ut, {
312
- key: `title_${ee.value}`,
313
- config: {
314
- title: {
315
- cy: "donut-div-title",
316
- ...e.value.style.chart.title
317
- },
318
- subtitle: {
319
- cy: "donut-div-subtitle",
320
- ...e.value.style.chart.title.subtitle
321
- }
322
- }
323
- }, null, 8, ["config"]))
324
- ], 512)) : v("", !0),
325
- e.value.userOptions.show && N.value && (n(se) || n(W)) ? (o(), z(n(Ge), {
326
- ref: "details",
327
- key: `user_option_${Y.value}`,
328
- backgroundColor: e.value.style.chart.backgroundColor,
329
- color: e.value.style.chart.color,
330
- isPrinting: n(ue),
331
- isImaging: n(ie),
332
- uid: y.value,
333
- hasPdf: e.value.userOptions.buttons.pdf,
334
- hasXls: e.value.userOptions.buttons.csv,
335
- hasImg: e.value.userOptions.buttons.img,
336
- hasTable: e.value.userOptions.buttons.table,
337
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
338
- isFullscreen: M.value,
339
- titles: { ...e.value.userOptions.buttonTitles },
340
- chartElement: A.value,
341
- position: e.value.userOptions.position,
342
- hasAnnotator: e.value.userOptions.buttons.annotator,
343
- isAnnotation: F.value,
344
- callbacks: e.value.userOptions.callbacks,
345
- printScale: e.value.userOptions.print.scale,
346
- onToggleFullscreen: be,
347
- onGeneratePdf: n(ce),
348
- onGenerateCsv: fe,
349
- onGenerateImage: n(de),
350
- onToggleTable: ge,
351
- onToggleAnnotator: B,
352
- style: V({
353
- visibility: n(se) ? n(W) ? "visible" : "hidden" : "visible"
354
- })
355
- }, Be({ _: 2 }, [
356
- l.$slots.menuIcon ? {
357
- name: "menuIcon",
358
- fn: _(({ isOpen: t, color: a }) => [
359
- k(l.$slots, "menuIcon", E(H({ isOpen: t, color: a })), void 0, !0)
360
- ]),
361
- key: "0"
362
- } : void 0,
363
- l.$slots.optionPdf ? {
364
- name: "optionPdf",
365
- fn: _(() => [
366
- k(l.$slots, "optionPdf", {}, void 0, !0)
367
- ]),
368
- key: "1"
369
- } : void 0,
370
- l.$slots.optionCsv ? {
371
- name: "optionCsv",
372
- fn: _(() => [
373
- k(l.$slots, "optionCsv", {}, void 0, !0)
374
- ]),
375
- key: "2"
376
- } : void 0,
377
- l.$slots.optionImg ? {
378
- name: "optionImg",
379
- fn: _(() => [
380
- k(l.$slots, "optionImg", {}, void 0, !0)
381
- ]),
382
- key: "3"
383
- } : void 0,
384
- l.$slots.optionTable ? {
385
- name: "optionTable",
386
- fn: _(() => [
387
- k(l.$slots, "optionTable", {}, void 0, !0)
388
- ]),
389
- key: "4"
390
- } : void 0,
391
- l.$slots.optionFullscreen ? {
392
- name: "optionFullscreen",
393
- fn: _(({ toggleFullscreen: t, isFullscreen: a }) => [
394
- k(l.$slots, "optionFullscreen", E(H({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
395
- ]),
396
- key: "5"
397
- } : void 0,
398
- l.$slots.optionAnnotator ? {
399
- name: "optionAnnotator",
400
- fn: _(({ toggleAnnotator: t, isAnnotator: a }) => [
401
- k(l.$slots, "optionAnnotator", E(H({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
402
- ]),
403
- key: "6"
404
- } : void 0
405
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
406
- N.value ? (o(), r("svg", {
407
- key: 4,
408
- ref_key: "svgRef",
409
- ref: oe,
410
- xmlns: n(Le),
411
- class: _e({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
412
- viewBox: `0 0 ${s.value.absoluteWidth <= 0 ? 10 : s.value.absoluteWidth} ${s.value.absoluteHeight <= 0 ? 10 : s.value.absoluteHeight}`,
413
- style: V(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
414
- }, [
415
- je(n(Pe)),
416
- l.$slots["chart-background"] ? (o(), r("foreignObject", {
417
- key: 0,
418
- x: s.value.left,
419
- y: s.value.top,
420
- width: Math.max(0.1, s.value.width),
421
- height: Math.max(0.1, s.value.height),
422
- style: {
423
- pointerEvents: "none"
424
- }
425
- }, [
426
- k(l.$slots, "chart-background", {}, void 0, !0)
427
- ], 8, ht)) : v("", !0),
428
- e.value.style.chart.grid.verticalGrid.show ? (o(), r("g", yt, [
429
- (o(!0), r($, null, L(c.value.ticks, (t, a) => (o(), r("line", {
430
- x1: s.value.left + a * s.value.width / (c.value.ticks.length - 1),
431
- x2: s.value.left + a * s.value.width / (c.value.ticks.length - 1),
432
- y1: s.value.top,
433
- y2: s.value.bottom,
434
- stroke: e.value.style.chart.grid.verticalGrid.stroke,
435
- "stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
436
- "stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray
437
- }, null, 8, ft))), 256))
438
- ])) : v("", !0),
439
- e.value.style.chart.grid.horizontalGrid.show ? (o(), r("g", bt, [
440
- (o(!0), r($, null, L(x.value, (t, a) => (o(), r("line", {
441
- x1: s.value.left,
442
- x2: s.value.right,
443
- y1: s.value.top + a * h.value,
444
- y2: s.value.top + a * h.value,
445
- stroke: e.value.style.chart.grid.horizontalGrid.stroke,
446
- "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
447
- "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
448
- }, null, 8, gt))), 256)),
449
- i("line", {
450
- x1: s.value.left,
451
- x2: s.value.right,
452
- y1: s.value.bottom,
453
- y2: s.value.bottom,
454
- stroke: e.value.style.chart.grid.horizontalGrid.stroke,
455
- "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
456
- "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
457
- }, null, 8, pt)
458
- ])) : v("", !0),
459
- e.value.style.chart.labels.yAxisLabels.show ? (o(), r("g", mt, [
460
- (o(!0), r($, null, L(x.value, (t, a) => (o(), r("text", {
461
- x: s.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
462
- y: s.value.top + a * h.value + (e.value.style.chart.labels.yAxisLabels.showProgression ? h.value / 3 : h.value / 2) + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
463
- "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
464
- fill: e.value.style.chart.labels.yAxisLabels.color,
465
- "font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
466
- "text-anchor": "end"
467
- }, S(t.name), 9, kt))), 256)),
468
- e.value.style.chart.labels.yAxisLabels.showProgression ? (o(!0), r($, { key: 0 }, L(x.value, (t, a) => (o(), r("text", {
469
- x: s.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
470
- y: s.value.top + a * h.value + h.value / 1.3 + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
471
- "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
472
- fill: e.value.style.chart.labels.yAxisLabels.color,
473
- "text-anchor": "end"
474
- }, S(n(X)({
475
- v: 100 * (t.end / t.start - 1),
476
- s: "%",
477
- r: e.value.style.chart.labels.yAxisLabels.rounding
478
- })), 9, _t))), 256)) : v("", !0)
479
- ])) : v("", !0),
480
- e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g", xt, [
481
- (o(!0), r($, null, L(c.value.ticks, (t, a) => (o(), r("text", {
482
- x: s.value.left + a * (s.value.width / (c.value.ticks.length - 1)),
483
- y: s.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize + e.value.style.chart.labels.xAxisLabels.offsetY,
484
- "font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
485
- fill: e.value.style.chart.labels.xAxisLabels.color,
486
- "font-weight": e.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
487
- "text-anchor": "middle"
488
- }, S(n(q)(
489
- e.value.style.chart.labels.formatter,
490
- t,
491
- n(X)({
492
- p: e.value.style.chart.labels.prefix,
493
- v: t,
494
- s: e.value.style.chart.labels.suffix,
495
- r: e.value.style.chart.labels.xAxisLabels.rounding
496
- }),
497
- { datapoint: t, seriesIndex: a }
498
- )), 9, wt))), 256))
499
- ])) : v("", !0),
500
- i("defs", null, [
501
- i("radialGradient", {
502
- id: `start_grad_${y.value}`,
503
- fy: "30%"
504
- }, [
505
- i("stop", {
506
- offset: "10%",
507
- "stop-color": n(Ae)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
508
- }, null, 8, $t),
509
- i("stop", {
510
- offset: "90%",
511
- "stop-color": n(ze)(e.value.style.chart.plots.startColor, 0.1)
512
- }, null, 8, Lt),
513
- i("stop", {
514
- offset: "100%",
515
- "stop-color": e.value.style.chart.plots.startColor
516
- }, null, 8, At)
517
- ], 8, Ct),
518
- i("radialGradient", {
519
- id: `end_grad_${y.value}`,
520
- fy: "30%"
521
- }, [
522
- i("stop", {
523
- offset: "10%",
524
- "stop-color": n(Ae)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
525
- }, null, 8, St),
526
- i("stop", {
527
- offset: "90%",
528
- "stop-color": n(ze)(e.value.style.chart.plots.endColor, 0.1)
529
- }, null, 8, Xt),
530
- i("stop", {
531
- offset: "100%",
532
- "stop-color": e.value.style.chart.plots.endColor
533
- }, null, 8, Nt)
534
- ], 8, zt)
535
- ]),
536
- (o(!0), r($, null, L(f.value, (t, a) => (o(), r("g", null, [
537
- i("defs", null, [
538
- i("linearGradient", {
539
- id: `grad_positive_${y.value}`,
540
- x1: "0%",
541
- x2: "100%",
542
- y1: "0%",
543
- y2: "0%"
544
- }, [
545
- i("stop", {
546
- offset: "0%",
547
- "stop-color": e.value.style.chart.plots.startColor
548
- }, null, 8, Ot),
549
- i("stop", {
550
- offset: "100%",
551
- "stop-color": e.value.style.chart.plots.endColor
552
- }, null, 8, Pt)
553
- ], 8, Tt),
554
- i("linearGradient", {
555
- id: `grad_negative_${y.value}`,
556
- x1: "0%",
557
- x2: "100%",
558
- y1: "0%",
559
- y2: "0%"
560
- }, [
561
- i("stop", {
562
- offset: "0%",
563
- "stop-color": e.value.style.chart.plots.endColor
564
- }, null, 8, Mt),
565
- i("stop", {
566
- offset: "100%",
567
- "stop-color": e.value.style.chart.plots.startColor
568
- }, null, 8, Gt)
569
- ], 8, It)
570
- ]),
571
- e.value.style.chart.plots.link.type === "curved" ? (o(), r("g", Dt, [
572
- i("path", {
573
- d: `M
574
- ${t.startX},${t.y + e.value.style.chart.plots.radius / 2}
575
- C ${t.centerX},${t.y} ${t.centerX},${t.y}
576
- ${t.endX},${t.y + e.value.style.chart.plots.radius / 2}
577
- L ${t.endX},${t.y - e.value.style.chart.plots.radius / 2}
578
- C ${t.centerX},${t.y} ${t.centerX},${t.y}
579
- ${t.startX},${t.y - e.value.style.chart.plots.radius / 2}
580
- Z
581
- `,
582
- fill: t.endX > t.startX ? `url(#grad_positive_${y.value})` : `url(#grad_negative_${y.value})`
583
- }, null, 8, Ft)
584
- ])) : (o(), r("g", Rt, [
585
- i("rect", {
586
- x: t.endX > t.startX ? t.startX : t.endX,
587
- y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
588
- height: e.value.style.chart.plots.link.strokeWidth,
589
- width: Math.abs(t.endX - t.startX),
590
- fill: t.endX > t.startX ? `url(#grad_positive_${y.value})` : `url(#grad_negative_${y.value})`
591
- }, null, 8, Vt)
592
- ])),
593
- i("circle", {
594
- cx: t.startX,
595
- cy: t.y,
596
- r: e.value.style.chart.plots.radius,
597
- fill: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${y.value})` : e.value.style.chart.plots.startColor,
598
- stroke: e.value.style.chart.plots.stroke,
599
- "stroke-width": e.value.style.chart.plots.strokeWidth
600
- }, null, 8, Et),
601
- i("circle", {
602
- cx: t.endX,
603
- cy: t.y,
604
- r: e.value.style.chart.plots.radius,
605
- fill: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${y.value})` : e.value.style.chart.plots.endColor,
606
- stroke: e.value.style.chart.plots.stroke,
607
- "stroke-width": e.value.style.chart.plots.strokeWidth
608
- }, null, 8, Ht)
609
- ]))), 256)),
610
- e.value.style.chart.labels.startLabels.show ? (o(), r("g", Wt, [
611
- (o(!0), r($, null, L(f.value, (t, a) => (o(), r("text", {
612
- x: t.startX,
613
- y: s.value.top + (a + 1) * h.value - e.value.style.chart.labels.startLabels.fontSize / 3 + e.value.style.chart.labels.startLabels.offsetY,
614
- fill: e.value.style.chart.labels.startLabels.useStartColor ? e.value.style.chart.plots.startColor : e.value.style.chart.labels.startLabels.color,
615
- "font-size": e.value.style.chart.labels.startLabels.fontSize,
616
- "text-anchor": "middle"
617
- }, S(n(q)(
618
- e.value.style.chart.labels.formatter,
619
- t.start,
620
- n(X)({
621
- p: e.value.style.chart.labels.prefix,
622
- v: t.start,
623
- s: e.value.style.chart.labels.suffix,
624
- r: e.value.style.chart.labels.startLabels.rounding
625
- }),
626
- { datapoint: t, seriesIndex: a }
627
- )), 9, Ut))), 256))
628
- ])) : v("", !0),
629
- e.value.style.chart.labels.endLabels.show ? (o(), r("g", Bt, [
630
- (o(!0), r($, null, L(f.value, (t, a) => (o(), r("text", {
631
- x: t.endX,
632
- y: s.value.top + a * h.value + e.value.style.chart.labels.endLabels.fontSize + e.value.style.chart.labels.endLabels.offsetY,
633
- fill: e.value.style.chart.labels.endLabels.useEndColor ? e.value.style.chart.plots.endColor : e.value.style.chart.labels.endLabels.color,
634
- "font-size": e.value.style.chart.labels.endLabels.fontSize,
635
- "text-anchor": "middle"
636
- }, S(n(q)(
637
- e.value.style.chart.labels.formatter,
638
- t.end,
639
- n(X)({
640
- p: e.value.style.chart.labels.prefix,
641
- v: t.end,
642
- s: e.value.style.chart.labels.suffix,
643
- r: e.value.style.chart.labels.endLabels.rounding
644
- }),
645
- { datapoint: t, seriesIndex: a }
646
- )), 9, jt))), 256))
647
- ])) : v("", !0),
648
- k(l.$slots, "svg", { svg: s.value }, void 0, !0)
649
- ], 14, vt)) : v("", !0),
650
- l.$slots.watermark ? (o(), r("div", qt, [
651
- k(l.$slots, "watermark", E(H({ isPrinting: n(ue) || n(ie) })), void 0, !0)
652
- ])) : v("", !0),
653
- N.value ? v("", !0) : (o(), z(n(Me), {
654
- key: 6,
655
- config: {
656
- type: "dumbbell",
657
- style: {
658
- backgroundColor: e.value.style.chart.backgroundColor,
659
- dumbbell: {
660
- color: "#CCCCCC"
661
- }
662
- }
663
- }
664
- }, null, 8, ["config"])),
665
- i("div", {
666
- ref_key: "chartLegend",
667
- ref: J
668
- }, [
669
- e.value.style.chart.legend.show && N.value ? (o(), z(nt, {
670
- key: `legend_${le.value}`,
671
- legendSet: ye.value,
672
- config: Ve.value
673
- }, {
674
- item: _(({ legend: t }) => [
675
- i("div", {
676
- style: V(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
677
- }, [
678
- (o(), r("svg", {
679
- xmlns: n(Le),
680
- viewBox: "0 0 20 20",
681
- height: e.value.style.chart.legend.fontSize,
682
- width: e.value.style.chart.legend.fontSize
683
- }, [
684
- i("circle", {
685
- cx: 10,
686
- cy: 10,
687
- r: 9,
688
- fill: t.color
689
- }, null, 8, Zt)
690
- ], 8, Yt)),
691
- xe(" " + S(t.name), 1)
692
- ], 4)
693
- ]),
694
- _: 1
695
- }, 8, ["legendSet", "config"])) : k(l.$slots, "legend", {
696
- key: 1,
697
- legend: ye.value
698
- }, void 0, !0)
699
- ], 512),
700
- l.$slots.source ? (o(), r("div", {
701
- key: 7,
702
- ref_key: "source",
703
- ref: K,
704
- dir: "auto"
705
- }, [
706
- k(l.$slots, "source", {}, void 0, !0)
707
- ], 512)) : v("", !0),
708
- N.value ? (o(), z(n(Te), {
709
- key: 8,
710
- hideDetails: "",
711
- config: {
712
- open: P.value.showTable,
713
- maxHeight: 1e4,
714
- body: {
715
- backgroundColor: e.value.style.chart.backgroundColor,
716
- color: e.value.style.chart.color
717
- },
718
- head: {
719
- backgroundColor: e.value.style.chart.backgroundColor,
720
- color: e.value.style.chart.color
721
- }
722
- }
723
- }, {
724
- content: _(() => [
725
- (o(), z(n(Oe), {
726
- key: `table_${te.value}`,
727
- colNames: D.value.colNames,
728
- head: D.value.head,
729
- body: D.value.body,
730
- config: D.value.config,
731
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
732
- onClose: u[0] || (u[0] = (t) => P.value.showTable = !1)
733
- }, {
734
- th: _(({ th: t }) => [
735
- i("div", {
736
- innerHTML: t,
737
- style: { display: "flex", "align-items": "center" }
738
- }, null, 8, Jt)
739
- ]),
740
- td: _(({ td: t }) => [
741
- xe(S(t.name || t), 1)
742
- ]),
743
- _: 1
744
- }, 8, ["colNames", "head", "body", "config", "title"]))
745
- ]),
746
- _: 1
747
- }, 8, ["config"])) : v("", !0)
748
- ], 46, dt));
749
- }
750
- }, dl = /* @__PURE__ */ ct(Kt, [["__scopeId", "data-v-8b6099dd"]]);
751
- export {
752
- dl as default
753
- };