vue-data-ui 3.6.0 → 3.7.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 (199) hide show
  1. package/README.md +26 -26
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
  5. package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-Bq_mtsqr.js} +1 -1
  10. package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +1 -0
  90. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  91. package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
  92. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  93. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  94. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  95. package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-ByLTJx5V.js} +78 -78
  96. package/dist/vue-data-ui.js +225 -205
  97. package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
  98. package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  99. package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
  100. package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  101. package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
  102. package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
  103. package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
  104. package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
  105. package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
  106. package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
  107. package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  108. package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
  109. package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
  110. package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BLb0kj_P.js} +634 -602
  111. package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
  112. package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
  113. package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
  114. package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
  115. package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
  116. package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
  117. package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
  118. package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
  119. package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
  120. package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  121. package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  122. package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
  123. package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
  124. package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
  125. package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
  126. package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
  127. package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
  128. package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
  129. package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
  130. package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  131. package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
  132. package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
  133. package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
  134. package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
  135. package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
  136. package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  137. package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
  138. package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
  139. package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
  140. package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
  141. package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
  142. package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
  143. package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
  144. package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
  145. package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
  146. package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-DMM090pe.js} +5 -5
  147. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  148. package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
  149. package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
  150. package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-jTnS3ES5.js} +25 -25
  151. package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
  152. package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
  153. package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
  154. package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-DIALVfvc.js} +376 -347
  155. package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
  156. package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
  157. package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-CVLlgp2f.js} +57 -57
  158. package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
  159. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  160. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  161. package/package.json +5 -5
  162. package/dist/themes-DH-N_ePR.js +0 -54
  163. package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
  164. package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
  165. package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
  166. package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
  167. package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
  168. package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
  169. package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
  170. package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
  171. package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
  172. package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
  173. package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
  174. package/dist/vue-ui-molecule-CasngKZI.js +0 -753
  175. package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
  176. package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
  177. package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
  178. package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
  179. package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
  180. package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
  181. package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
  182. package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
  183. package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
  184. package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
  185. package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
  186. package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
  187. package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
  188. package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
  189. package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
  190. package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
  191. package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
  192. package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
  193. package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
  194. package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
  195. package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
  196. package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
  197. package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
  198. package/dist/vue-ui-xy-BT67faLv.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
@@ -1,1231 +0,0 @@
1
- import { defineAsyncComponent as G, computed as g, ref as h, toRefs as Et, watch as se, shallowRef as tt, onMounted as lt, onBeforeUnmount as at, watchEffect as Rt, createElementBlock as v, openBlock as n, unref as i, normalizeStyle as oe, normalizeClass as st, createBlock as I, createCommentVNode as y, createElementVNode as c, withCtx as m, renderSlot as p, normalizeProps as A, guardReactiveProps as S, createSlots as ot, createVNode as nt, withDirectives as Q, Fragment as C, renderList as N, toDisplayString as _, vShow as Z, Teleport as Bt, createTextVNode as we, resolveDynamicComponent as Vt, mergeProps as Ut, nextTick as Wt } from "vue";
2
- import { c as rt, t as qt, o as Yt, f as ut, g as jt, x as it, m as Qt, d as w, a as E, X as ct, s as vt, S as J, U as K, P as Zt, Q as Jt } from "./lib-C_mNZmhD.js";
3
- import { t as $e, u as Kt } from "./useResponsive-DfdjqQps.js";
4
- import { u as el, a as dt } from "./useNestedProp-CIoDlpHu.js";
5
- import { u as tl } from "./usePrinter-DTzqpYKF.js";
6
- import { u as ll, B as al } from "./BaseScanner-BgWxam9d.js";
7
- import { u as sl } from "./useSvgExport-DrjCWun4.js";
8
- import { u as ol } from "./useUserOptionState-BIvW1Kz7.js";
9
- import { u as nl } from "./useChartAccessibility-9icAAmYg.js";
10
- import { u as rl } from "./useTimeLabelCollider-CIsgDrl9.js";
11
- import ul from "./img-BecE5qXd.js";
12
- import il from "./Title-Bb1VWCtR.js";
13
- import { t as cl } from "./themes-DH-N_ePR.js";
14
- import vl from "./Legend-D9ZTJKjh.js";
15
- import { _ as dl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "width", "height"], gl = { key: 1 }, ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], pl = { key: 2 }, xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], _l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], kl = ["transform", "font-size", "fill"], Cl = ["x", "y", "font-size", "fill", "font-weight", "onMouseenter", "onMouseleave", "onClick"], wl = ["x", "y", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], $l = ["x", "y", "font-size", "fill"], Ll = ["transform", "font-size", "fill", "font-weight", "text-anchor"], Al = ["d", "stroke", "stroke-width", "stroke-dasharray"], Sl = ["d", "stroke", "stroke-width", "stroke-dasharray"], Nl = ["x", "y", "height", "width", "fill"], Ml = ["transform", "fill", "font-size"], Xl = ["id"], zl = ["stop-color"], Tl = ["stop-color"], Ol = ["stop-color"], Dl = ["id"], Il = ["stop-color"], Fl = ["stop-color"], Pl = ["stop-color"], Hl = ["id"], Gl = ["stop-color"], El = ["stop-color"], Rl = ["stop-color"], Bl = ["id"], Vl = ["stop-color"], Ul = ["stop-color"], Wl = ["stop-color"], ql = ["id"], Yl = ["stop-color"], jl = ["stop-color"], Ql = ["stop-color"], Zl = ["id"], Jl = ["stop-color"], Kl = ["stop-color"], ea = ["id"], ta = ["stop-color"], la = ["stop-color"], aa = { key: 0 }, sa = { key: 0 }, oa = ["d", "fill"], na = { key: 1 }, ra = ["x", "y", "height", "width", "fill"], ua = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ia = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ca = { key: 7 }, va = ["x", "y", "fill", "font-size"], da = { key: 8 }, ha = ["x", "y", "fill", "font-size"], fa = ["x", "y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], ba = {
17
- key: 4,
18
- class: "vue-data-ui-watermark"
19
- }, ya = ["id"], ga = ["xmlns", "height", "width"], ma = ["fill"], pa = ["innerHTML"], xa = {
20
- __name: "vue-ui-dumbbell",
21
- props: {
22
- config: {
23
- type: Object,
24
- default() {
25
- return {};
26
- }
27
- },
28
- dataset: {
29
- type: Array,
30
- default() {
31
- return [];
32
- }
33
- }
34
- },
35
- emits: ["selectDatapoint"],
36
- setup(ht, { expose: ft, emit: _a }) {
37
- const bt = G(() => import("./BaseIcon-DLFL0M4-.js")), yt = G(() => import("./vue-ui-accordion-SSLXLlNz.js")), gt = G(() => import("./DataTable-UCyd_BQI.js")), mt = G(() => import("./PenAndPaper-BJSMejV9.js")), pt = G(() => import("./UserOptions-BqmUW9Kp.js")), xt = G(() => import("./PackageVersion-D_4Hr4S4.js")), _t = G(() => import("./BaseDraggableDialog-DhKIof09.js")), { vue_ui_dumbbell: kt } = el(), M = ht, ee = g({
38
- get() {
39
- return !!M.dataset && M.dataset.length;
40
- },
41
- set(l) {
42
- return l;
43
- }
44
- }), f = h(rt()), Le = h(0), X = h(null), Ae = h(null), Se = h(null), Ne = h(null), Me = h(null), Xe = h(0), ze = h(0), Te = h(0), Oe = h(!1), q = h(null), ne = h(null), re = h(null), ue = h(null), te = h(null), ie = h(null), F = h(null), r = h(null), P = h(!1), e = h(fe()), { loading: ce, FINAL_DATASET: ve, manualLoading: Ct } = ll({
45
- ...Et(M),
46
- FINAL_CONFIG: e,
47
- prepareConfig: fe,
48
- skeletonDataset: [
49
- { name: "_", start: 21, end: 34 },
50
- { name: "_", start: 13, end: 21 },
51
- { name: "_", start: 8, end: 13 },
52
- { name: "_", start: 5, end: 8 },
53
- { name: "_", start: 3, end: 5 }
54
- ],
55
- skeletonConfig: qt({
56
- defaultConfig: e.value,
57
- userConfig: {
58
- userOptions: { show: !1 },
59
- table: { show: !1 },
60
- useAnimation: !1,
61
- style: {
62
- chart: {
63
- backgroundColor: "#99999930",
64
- padding: {
65
- top: 12,
66
- right: 12,
67
- bottom: 12,
68
- left: 12
69
- },
70
- grid: {
71
- horizontalGrid: { stroke: "#6A6A6A" },
72
- verticalGrid: { stroke: "#6A6A6A" }
73
- },
74
- labels: {
75
- axis: {
76
- yLabel: "",
77
- xLabel: ""
78
- },
79
- xAxisLabels: { show: !1 },
80
- yAxisLabels: { show: !1 },
81
- endLabels: { show: !1 },
82
- startLabels: { show: !1 }
83
- },
84
- legend: {
85
- backgroundColor: "transparent"
86
- },
87
- plots: {
88
- endColor: "#969696",
89
- startColor: "#DBDBDB",
90
- stroke: "#6A6A6A",
91
- evaluationColors: { enable: !1 }
92
- }
93
- }
94
- }
95
- }
96
- })
97
- }), { userOptionsVisible: de, setUserOptionsVisibility: De, keepUserOptionState: Ie } = ol({ config: e.value }), { svgRef: he } = nl({ config: e.value.style.chart.title });
98
- function fe() {
99
- const l = dt({
100
- userConfig: M.config,
101
- defaultConfig: kt
102
- });
103
- return l.theme ? {
104
- ...dt({
105
- userConfig: cl.vue_ui_dumbbell[l.theme] || M.config,
106
- defaultConfig: l
107
- })
108
- } : l;
109
- }
110
- se(() => M.config, (l) => {
111
- ce.value || (e.value = fe()), de.value = !e.value.userOptions.showOnChartHover, Pe(), Xe.value += 1, ze.value += 1, Te.value += 1, V.value = e.value.style.chart.rowHeight, U.value = e.value.style.chart.width, H.value.showTable = e.value.table.show;
112
- }, { deep: !0 }), se(() => ve.value, (l) => {
113
- Array.isArray(l) && l.length > 0 && (Ct.value = !1), We(), qe();
114
- }, { deep: !0 });
115
- const z = tt(null), R = tt(null);
116
- lt(() => {
117
- Oe.value = !0, Pe();
118
- });
119
- const Fe = g(() => !!e.value.debug);
120
- function Pe() {
121
- if (Yt(M.dataset) ? ut({
122
- componentName: "VueUiDumbbell",
123
- type: "dataset",
124
- debug: Fe.value
125
- }) : M.dataset.forEach((l, s) => {
126
- jt({
127
- datasetObject: l,
128
- requiredAttributes: ["name", "start", "end"]
129
- }).forEach((t) => {
130
- ee.value = !1, ut({
131
- componentName: "VueUiDumbbell",
132
- type: "datasetSerieAttribute",
133
- property: t,
134
- index: s,
135
- debug: Fe.value
136
- });
137
- });
138
- }), e.value.responsive) {
139
- const l = $e(() => {
140
- const { width: s, height: t } = Kt({
141
- chart: X.value,
142
- title: e.value.style.chart.title.text ? Ae.value : null,
143
- legend: e.value.style.chart.legend.show ? Se.value : null,
144
- source: Ne.value,
145
- noTitle: Me.value
146
- }), a = e.value.style.chart.title.text ? 24 : 0, u = e.value.style.chart.legend.show ? 24 : 0;
147
- requestAnimationFrame(async () => {
148
- U.value = Math.max(0.1, s), V.value = Math.max(0.1, (Math.max(0.1, t) - (a + u)) / ve.value.length), Ze();
149
- });
150
- });
151
- z.value && (R.value && z.value.unobserve(R.value), z.value.disconnect()), z.value = new ResizeObserver(l), R.value = X.value.parentNode, z.value.observe(R.value);
152
- }
153
- Ze();
154
- }
155
- at(() => {
156
- L.value != null && (cancelAnimationFrame(L.value), L.value = null), z.value && (R.value && z.value.unobserve(R.value), z.value.disconnect());
157
- });
158
- const { isPrinting: He, isImaging: Ge, generatePdf: Ee, generateImage: Re } = tl({
159
- elementId: `dumbbell_${f.value}`,
160
- fileName: e.value.style.chart.title.text || "vue-ui-dumbbell",
161
- options: e.value.userOptions.print
162
- }), wt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), H = h({
163
- showTable: e.value.table.show
164
- });
165
- se(e, () => {
166
- H.value = {
167
- showTable: e.value.table.show
168
- };
169
- }, { immediate: !0 });
170
- const B = g(() => ve.value.map((l, s) => ({
171
- ...l,
172
- start: it(l.start),
173
- end: it(l.end),
174
- id: l.id ?? `${String(l.name)}__${String(l.start)}__${String(l.end)}__${rt()}`
175
- }))), Be = g(() => {
176
- const l = e.value.style.chart.grid, s = B.value.flatMap((b) => [b.start, b.end]).map((b) => Number(b)).filter((b) => Number.isFinite(b)), 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;
177
- return { min: u, max: d };
178
- }), $ = g(() => Qt(Be.value.min, Be.value.max, e.value.style.chart.grid.scaleSteps)), V = h(e.value.style.chart.rowHeight), U = h(e.value.style.chart.width);
179
- function $t() {
180
- let l = 0;
181
- ue.value && (l = Array.from(ue.value.querySelectorAll("text")).reduce((a, u) => {
182
- const d = u.getComputedTextLength();
183
- return d > a ? d : a;
184
- }, 0));
185
- const s = re.value ? re.value.getBoundingClientRect().width : 0;
186
- return l + s + (s ? 24 + e.value.style.chart.labels.axis.yLabelOffsetX : 0);
187
- }
188
- const be = h(0), Lt = $e((l) => {
189
- be.value = l;
190
- }, 100);
191
- Rt((l) => {
192
- const s = te.value;
193
- if (!s) return;
194
- const t = new ResizeObserver((a) => {
195
- Lt(a[0].contentRect.height);
196
- });
197
- t.observe(s), l(() => t.disconnect());
198
- }), at(() => {
199
- be.value = 0;
200
- });
201
- const Ve = g(() => {
202
- P.value;
203
- let l = 0;
204
- ie.value && (l = ie.value.getBBox().height);
205
- let s = 0;
206
- return te.value && (s = be.value), l + s;
207
- }), ye = g(() => B.value.length);
208
- function Ue(l, s, t) {
209
- const a = Number(l), u = Number(s.min), d = Number(s.max), b = Number(t.width);
210
- if (!Number.isFinite(a) || !Number.isFinite(u) || !Number.isFinite(d) || !Number.isFinite(b))
211
- return t.left;
212
- const x = d - u;
213
- return x <= 0 ? t.left : t.left + (a - u) / x * b;
214
- }
215
- const o = g(() => {
216
- P.value;
217
- const l = $t(), s = e.value.style.chart.padding, t = e.value.style.chart.labels.axis.xLabel ? e.value.style.chart.labels.axis.xLabelOffsetY : 0, a = V.value * ye.value - Ve.value - s.top - s.bottom - t, u = a / ye.value, d = V.value * ye.value, b = U.value - l - s.left - s.right, x = $.value.ticks.length * (b / $.value.ticks.length);
218
- return {
219
- left: e.value.style.chart.padding.left + l,
220
- right: U.value - e.value.style.chart.padding.right,
221
- top: e.value.style.chart.padding.top,
222
- bottom: d - e.value.style.chart.padding.bottom - Ve.value - t,
223
- width: b,
224
- height: a,
225
- rowHeight: u,
226
- absoluteHeight: d,
227
- widthPlotReference: x
228
- };
229
- }), T = g(() => Math.min(V.value / 2 * 0.7, e.value.style.chart.plots.radius)), Y = h([]), k = g({
230
- get() {
231
- const l = o.value, s = $.value;
232
- return Y.value.map((t, a) => {
233
- const u = Ue(t.start, s, l), d = Ue(t.endVal, s, l), b = u + (d - u) / 2, x = ![null, void 0].includes(t.start) && ![null, void 0].includes(t.end) && t.end > t.start, D = ![null, void 0].includes(t.start) && ![null, void 0].includes(t.end) && t.end < t.start, et = ![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), Gt = x ? e.value.style.chart.plots.evaluationColors.positive : D ? e.value.style.chart.plots.evaluationColors.negative : e.value.style.chart.plots.evaluationColors.neutral;
234
- return {
235
- ...t,
236
- isPositive: x,
237
- isNegative: D,
238
- isNeutral: et,
239
- evaluationColor: Gt,
240
- evaluationGrad: `url(#${x ? "positive" : D ? "negative" : "neutral"}_grad_${f.value})`,
241
- startX: u,
242
- endX: d,
243
- centerX: b,
244
- y: l.top + a * l.rowHeight + l.rowHeight / 2
245
- };
246
- });
247
- },
248
- set(l) {
249
- Y.value = l;
250
- }
251
- });
252
- function We() {
253
- Y.value = B.value.map((l) => {
254
- const s = Number(l.start);
255
- return {
256
- ...l,
257
- endVal: Number.isFinite(s) ? s : 0
258
- };
259
- });
260
- }
261
- const L = h(null);
262
- lt(() => {
263
- qe();
264
- });
265
- function qe() {
266
- if (L.value != null && (cancelAnimationFrame(L.value), L.value = null), We(), !e.value.useAnimation) {
267
- k.value = Y.value.map((a) => {
268
- const u = Number(a.end);
269
- return { ...a, endVal: Number.isFinite(u) ? u : a.endVal };
270
- });
271
- return;
272
- }
273
- const l = Math.max(1, Math.min(100, e.value.animationSpeed || 100)) / 100, s = B.value.map((a) => {
274
- const u = Number(a.start), d = Number(a.end), b = Number.isFinite(u) ? u : 0;
275
- return (Number.isFinite(d) ? d : b) - b;
276
- }), t = () => {
277
- let a = !0;
278
- k.value = Y.value.map((u, d) => {
279
- const b = Number.isFinite(Number(u.end)) ? Number(u.end) : u.endVal, x = u.endVal + s[d] * l, D = s[d] >= 0 ? Math.min(x, b) : Math.max(x, b);
280
- return D !== b && (a = !1), { ...u, endVal: D };
281
- }), a ? L.value = null : L.value = requestAnimationFrame(t);
282
- };
283
- L.value = requestAnimationFrame(t);
284
- }
285
- const ge = g(() => e.value.style.chart.plots.evaluationColors.enable ? [
286
- { name: e.value.style.chart.legend.labelNegative, color: e.value.style.chart.plots.gradient.show ? `url(#negative_grad_${f.value})` : e.value.style.chart.plots.evaluationColors.negative },
287
- { name: e.value.style.chart.legend.labelNeutral, color: e.value.style.chart.plots.gradient.show ? `url(#neutral_grad_${f.value})` : e.value.style.chart.plots.evaluationColors.neutral },
288
- { name: e.value.style.chart.legend.labelPositive, color: e.value.style.chart.plots.gradient.show ? `url(#positive_grad_${f.value})` : e.value.style.chart.plots.evaluationColors.positive }
289
- ] : [
290
- { name: e.value.style.chart.legend.labelStart, color: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${f.value})` : e.value.style.chart.plots.startColor },
291
- { name: e.value.style.chart.legend.labelEnd, color: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${f.value})` : e.value.style.chart.plots.endColor }
292
- ]), At = g(() => ({
293
- cy: "donut-div-legend",
294
- backgroundColor: e.value.style.chart.legend.backgroundColor,
295
- color: e.value.style.chart.legend.color,
296
- fontSize: e.value.style.chart.legend.fontSize,
297
- paddingBottom: 12,
298
- paddingTop: 12,
299
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
300
- })), O = g(() => {
301
- const l = k.value.map((t) => ({
302
- name: t.name
303
- })), s = k.value.map((t) => ({
304
- start: t.start,
305
- end: t.end
306
- }));
307
- return { head: l, body: s };
308
- }), le = g(() => {
309
- const l = [
310
- e.value.table.columnNames.series,
311
- e.value.table.columnNames.start,
312
- e.value.table.columnNames.end,
313
- e.value.table.columnNames.progression
314
- ], s = O.value.head.map((u, d) => {
315
- const b = w({
316
- p: e.value.style.chart.labels.prefix,
317
- v: O.value.body[d].start,
318
- s: e.value.style.chart.labels.suffix,
319
- r: e.value.table.td.roundingValue
320
- }), x = w({
321
- p: e.value.style.chart.labels.prefix,
322
- v: O.value.body[d].end,
323
- s: e.value.style.chart.labels.suffix,
324
- r: e.value.table.td.roundingValue
325
- }), D = w({
326
- v: 100 * (O.value.body[d].end / O.value.body[d].start - 1),
327
- s: "%",
328
- r: e.value.table.td.roundingPercentage
329
- });
330
- return [
331
- { name: u.name },
332
- b,
333
- x,
334
- D
335
- ];
336
- }), t = {
337
- th: {
338
- backgroundColor: e.value.table.th.backgroundColor,
339
- color: e.value.table.th.color,
340
- outline: e.value.table.th.outline
341
- },
342
- td: {
343
- backgroundColor: e.value.table.td.backgroundColor,
344
- color: e.value.table.td.color,
345
- outline: e.value.table.td.outline
346
- },
347
- breakpoint: e.value.table.responsiveBreakpoint
348
- };
349
- return {
350
- colNames: [
351
- e.value.table.columnNames.series,
352
- e.value.table.columnNames.start,
353
- e.value.table.columnNames.end,
354
- e.value.table.columnNames.progression
355
- ],
356
- head: l,
357
- body: s,
358
- config: t
359
- };
360
- });
361
- function me(l = null) {
362
- Wt(() => {
363
- const s = O.value.head.map((u, d) => [[
364
- u.name
365
- ], [O.value.body[d].start], [O.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 = Zt(t);
366
- l ? l(a) : Jt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
367
- });
368
- }
369
- const W = h(!1);
370
- function Ye(l) {
371
- W.value = l, Le.value += 1;
372
- }
373
- function St() {
374
- return B.value;
375
- }
376
- function je() {
377
- H.value.showTable = !H.value.showTable;
378
- }
379
- const ae = h(!1);
380
- function pe() {
381
- ae.value = !ae.value;
382
- }
383
- async function Nt({ scale: l = 2 } = {}) {
384
- if (!X.value) return;
385
- const { width: s, height: t } = X.value.getBoundingClientRect(), a = s / t, { imageUri: u, base64: d } = await ul({ domElement: X.value, base64: !0, img: !0, scale: l });
386
- return {
387
- imageUri: u,
388
- base64: d,
389
- title: e.value.style.chart.title.text,
390
- width: s,
391
- height: t,
392
- aspectRatio: a
393
- };
394
- }
395
- const Qe = g(() => $.value.ticks), Mt = g(() => ({ start: 0, end: Qe.value.length }));
396
- rl({
397
- timeLabelsEls: te,
398
- timeLabels: Qe,
399
- slicer: Mt,
400
- configRef: e,
401
- rotationPath: ["style", "chart", "labels", "xAxisLabels", "rotation"],
402
- autoRotatePath: ["style", "chart", "labels", "xAxisLabels", "autoRotate", "enable"],
403
- isAutoSize: !1,
404
- width: U,
405
- height: V,
406
- targetClass: ".vue-ui-dumbbell-scale-label",
407
- rotation: e.value.style.chart.labels.xAxisLabels.autoRotate.angle
408
- });
409
- function Xt({
410
- rowHeight: l,
411
- fontSize: s,
412
- showProgression: t
413
- }) {
414
- if (!t) return !1;
415
- const a = l / 3, u = l / 1.3, d = Math.abs(u - a), b = s * 1.2;
416
- return d < b;
417
- }
418
- const zt = /* @__PURE__ */ (() => {
419
- let l = null, s = 0;
420
- const t = 1;
421
- return (a) => {
422
- if (a === P.value) {
423
- l = null, s = 0;
424
- return;
425
- }
426
- l === null || l !== a ? (l = a, s = 1) : (s += 1, s >= t && (P.value = a, l = null, s = 0));
427
- };
428
- })(), Ze = $e(() => {
429
- requestAnimationFrame(() => {
430
- requestAnimationFrame(() => {
431
- const l = Xt({
432
- rowHeight: o.value.rowHeight,
433
- fontSize: e.value.style.chart.labels.yAxisLabels.fontSize,
434
- showProgression: e.value.style.chart.labels.yAxisLabels.showProgression
435
- });
436
- zt(l);
437
- });
438
- });
439
- }, 100);
440
- function xe({ datapoint: l, seriesIndex: s }) {
441
- F.value = s, r.value = l, e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: s });
442
- }
443
- function _e({ datapoint: l, seriesIndex: s }) {
444
- F.value = null, r.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s });
445
- }
446
- function ke({ datapoint: l, seriesIndex: s }) {
447
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: s });
448
- }
449
- const Ce = g(() => {
450
- if (r.value === null) return 0;
451
- const l = ![null, void 0].includes(r.value.start), s = ![null, void 0].includes(r.value.end);
452
- 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;
453
- }), Tt = g(() => {
454
- if (r.value === null) return "";
455
- const l = ![null, void 0].includes(r.value.start), s = ![null, void 0].includes(r.value.end);
456
- let t = "", a = "";
457
- return l && (t = E(
458
- e.value.style.chart.labels.formatter,
459
- r.value.start,
460
- w({
461
- p: e.value.style.chart.labels.prefix,
462
- v: r.value.start,
463
- s: e.value.style.chart.labels.suffix,
464
- r: e.value.style.chart.labels.startLabels.rounding
465
- }),
466
- { datapoint: r.value, seriesIndex: F.value }
467
- )), s && (a = E(
468
- e.value.style.chart.labels.formatter,
469
- r.value.end,
470
- w({
471
- p: e.value.style.chart.labels.prefix,
472
- v: r.value.end,
473
- s: e.value.style.chart.labels.suffix,
474
- r: e.value.style.chart.labels.startLabels.rounding
475
- }),
476
- { datapoint: r.value, seriesIndex: F.value }
477
- )), l && s ? `${t} → ${a}` : l && !s ? t : s && !l ? a : "";
478
- }), j = g(() => {
479
- const l = e.value.table.useDialog && !e.value.table.show, s = H.value.showTable;
480
- return {
481
- component: l ? _t : yt,
482
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
483
- props: l ? {
484
- backgroundColor: e.value.table.th.backgroundColor,
485
- color: e.value.table.th.color,
486
- headerColor: e.value.table.th.color,
487
- headerBg: e.value.table.th.backgroundColor,
488
- isFullscreen: W.value,
489
- fullscreenParent: X.value,
490
- forcedWidth: Math.min(800, window.innerWidth * 0.8)
491
- } : {
492
- hideDetails: !0,
493
- config: {
494
- open: s,
495
- maxHeight: 1e4,
496
- body: {
497
- backgroundColor: e.value.style.chart.backgroundColor,
498
- color: e.value.style.chart.color
499
- },
500
- head: {
501
- backgroundColor: e.value.style.chart.backgroundColor,
502
- color: e.value.style.chart.color
503
- }
504
- }
505
- }
506
- };
507
- });
508
- se(() => H.value.showTable, (l) => {
509
- e.value.table.show || (l && e.value.table.useDialog && q.value ? q.value.open() : "close" in q.value && q.value.close());
510
- });
511
- function Je() {
512
- H.value.showTable = !1, ne.value && ne.value.setTableIconState(!1);
513
- }
514
- const Ot = g(() => ge.value.map((l) => ({
515
- ...l,
516
- shape: "circle"
517
- }))), Dt = g(() => e.value.style.chart.backgroundColor), It = g(() => e.value.style.chart.legend), Ft = g(() => e.value.style.chart.title), { exportSvg: Pt, getSvg: Ht } = sl({
518
- svg: he,
519
- title: Ft,
520
- legend: It,
521
- legendItems: Ot,
522
- backgroundColor: Dt
523
- });
524
- async function Ke({ isCb: l }) {
525
- if (l) {
526
- const { blob: s, url: t, text: a, dataUrl: u } = await Ht();
527
- e.value.userOptions.callbacks.svg({ blob: s, url: t, text: a, dataUrl: u });
528
- } else
529
- Pt();
530
- }
531
- return ft({
532
- getData: St,
533
- getImage: Nt,
534
- generatePdf: Ee,
535
- generateCsv: me,
536
- generateImage: Re,
537
- generateSvg: Ke,
538
- toggleTable: je,
539
- toggleAnnotator: pe,
540
- toggleFullscreen: Ye
541
- }), (l, s) => (n(), v("div", {
542
- ref_key: "dumbbellChart",
543
- ref: X,
544
- class: st(`vue-data-ui-component vue-ui-dumbbell ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
545
- style: oe(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
546
- id: `dumbbell_${f.value}`,
547
- onMouseenter: s[1] || (s[1] = () => i(De)(!0)),
548
- onMouseleave: s[2] || (s[2] = () => i(De)(!1))
549
- }, [
550
- e.value.userOptions.buttons.annotator ? (n(), I(i(mt), {
551
- key: 0,
552
- svgRef: i(he),
553
- backgroundColor: e.value.style.chart.backgroundColor,
554
- color: e.value.style.chart.color,
555
- active: ae.value,
556
- onClose: pe
557
- }, {
558
- "annotator-action-close": m(() => [
559
- p(l.$slots, "annotator-action-close", {}, void 0, !0)
560
- ]),
561
- "annotator-action-color": m(({ color: t }) => [
562
- p(l.$slots, "annotator-action-color", A(S({ color: t })), void 0, !0)
563
- ]),
564
- "annotator-action-draw": m(({ mode: t }) => [
565
- p(l.$slots, "annotator-action-draw", A(S({ mode: t })), void 0, !0)
566
- ]),
567
- "annotator-action-undo": m(({ disabled: t }) => [
568
- p(l.$slots, "annotator-action-undo", A(S({ disabled: t })), void 0, !0)
569
- ]),
570
- "annotator-action-redo": m(({ disabled: t }) => [
571
- p(l.$slots, "annotator-action-redo", A(S({ disabled: t })), void 0, !0)
572
- ]),
573
- "annotator-action-delete": m(({ disabled: t }) => [
574
- p(l.$slots, "annotator-action-delete", A(S({ disabled: t })), void 0, !0)
575
- ]),
576
- _: 3
577
- }, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
578
- wt.value ? (n(), v("div", {
579
- key: 1,
580
- ref_key: "noTitle",
581
- ref: Me,
582
- class: "vue-data-ui-no-title-space",
583
- style: "height:36px; width: 100%;background:transparent"
584
- }, null, 512)) : y("", !0),
585
- e.value.style.chart.title.text ? (n(), v("div", {
586
- key: 2,
587
- ref_key: "chartTitle",
588
- ref: Ae,
589
- style: "width:100%;background:transparent;padding-bottom:24px"
590
- }, [
591
- (n(), I(il, {
592
- key: `title_${Xe.value}`,
593
- config: {
594
- title: {
595
- cy: "donut-div-title",
596
- ...e.value.style.chart.title
597
- },
598
- subtitle: {
599
- cy: "donut-div-subtitle",
600
- ...e.value.style.chart.title.subtitle
601
- }
602
- }
603
- }, null, 8, ["config"]))
604
- ], 512)) : y("", !0),
605
- c("div", {
606
- id: `legend-top-${f.value}`
607
- }, null, 8, fl),
608
- e.value.userOptions.show && ee.value && (i(Ie) || i(de)) ? (n(), I(i(pt), {
609
- ref_key: "userOptionsRef",
610
- ref: ne,
611
- key: `user_option_${Le.value}`,
612
- backgroundColor: e.value.style.chart.backgroundColor,
613
- color: e.value.style.chart.color,
614
- isPrinting: i(He),
615
- isImaging: i(Ge),
616
- uid: f.value,
617
- hasPdf: e.value.userOptions.buttons.pdf,
618
- hasXls: e.value.userOptions.buttons.csv,
619
- hasImg: e.value.userOptions.buttons.img,
620
- hasSvg: e.value.userOptions.buttons.svg,
621
- hasTable: e.value.userOptions.buttons.table,
622
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
623
- isFullscreen: W.value,
624
- titles: { ...e.value.userOptions.buttonTitles },
625
- chartElement: X.value,
626
- position: e.value.userOptions.position,
627
- hasAnnotator: e.value.userOptions.buttons.annotator,
628
- isAnnotation: ae.value,
629
- callbacks: e.value.userOptions.callbacks,
630
- printScale: e.value.userOptions.print.scale,
631
- tableDialog: e.value.table.useDialog,
632
- onToggleFullscreen: Ye,
633
- onGeneratePdf: i(Ee),
634
- onGenerateCsv: me,
635
- onGenerateImage: i(Re),
636
- onGenerateSvg: Ke,
637
- onToggleTable: je,
638
- onToggleAnnotator: pe,
639
- style: oe({
640
- visibility: i(Ie) ? i(de) ? "visible" : "hidden" : "visible"
641
- })
642
- }, ot({ _: 2 }, [
643
- l.$slots.menuIcon ? {
644
- name: "menuIcon",
645
- fn: m(({ isOpen: t, color: a }) => [
646
- p(l.$slots, "menuIcon", A(S({ isOpen: t, color: a })), void 0, !0)
647
- ]),
648
- key: "0"
649
- } : void 0,
650
- l.$slots.optionPdf ? {
651
- name: "optionPdf",
652
- fn: m(() => [
653
- p(l.$slots, "optionPdf", {}, void 0, !0)
654
- ]),
655
- key: "1"
656
- } : void 0,
657
- l.$slots.optionCsv ? {
658
- name: "optionCsv",
659
- fn: m(() => [
660
- p(l.$slots, "optionCsv", {}, void 0, !0)
661
- ]),
662
- key: "2"
663
- } : void 0,
664
- l.$slots.optionImg ? {
665
- name: "optionImg",
666
- fn: m(() => [
667
- p(l.$slots, "optionImg", {}, void 0, !0)
668
- ]),
669
- key: "3"
670
- } : void 0,
671
- l.$slots.optionSvg ? {
672
- name: "optionSvg",
673
- fn: m(() => [
674
- p(l.$slots, "optionSvg", {}, void 0, !0)
675
- ]),
676
- key: "4"
677
- } : void 0,
678
- l.$slots.optionTable ? {
679
- name: "optionTable",
680
- fn: m(() => [
681
- p(l.$slots, "optionTable", {}, void 0, !0)
682
- ]),
683
- key: "5"
684
- } : void 0,
685
- l.$slots.optionFullscreen ? {
686
- name: "optionFullscreen",
687
- fn: m(({ toggleFullscreen: t, isFullscreen: a }) => [
688
- p(l.$slots, "optionFullscreen", A(S({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
689
- ]),
690
- key: "6"
691
- } : void 0,
692
- l.$slots.optionAnnotator ? {
693
- name: "optionAnnotator",
694
- fn: m(({ toggleAnnotator: t, isAnnotator: a }) => [
695
- p(l.$slots, "optionAnnotator", A(S({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
696
- ]),
697
- key: "7"
698
- } : void 0
699
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
700
- (n(), v("svg", {
701
- ref_key: "svgRef",
702
- ref: he,
703
- xmlns: i(ct),
704
- class: st({ "vue-data-ui-fullscreen--on": W.value, "vue-data-ui-fulscreen--off": !W.value }),
705
- viewBox: `0 0 ${U.value} ${o.value.absoluteHeight <= 0 ? 10 : o.value.absoluteHeight}`,
706
- style: oe(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
707
- }, [
708
- nt(i(xt)),
709
- l.$slots["chart-background"] ? (n(), v("foreignObject", {
710
- key: 0,
711
- x: o.value.left,
712
- y: o.value.top,
713
- width: Math.max(0.1, o.value.width),
714
- height: Math.max(0.1, o.value.height),
715
- style: {
716
- pointerEvents: "none"
717
- }
718
- }, [
719
- p(l.$slots, "chart-background", {}, void 0, !0)
720
- ], 8, yl)) : y("", !0),
721
- e.value.style.chart.grid.verticalGrid.show ? (n(), v("g", gl, [
722
- (n(!0), v(C, null, N($.value.ticks, (t, a) => (n(), v("line", {
723
- x1: o.value.left + a * o.value.width / ($.value.ticks.length - 1),
724
- x2: o.value.left + a * o.value.width / ($.value.ticks.length - 1),
725
- y1: o.value.top,
726
- y2: o.value.bottom,
727
- stroke: e.value.style.chart.grid.verticalGrid.stroke,
728
- "stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
729
- "stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray
730
- }, null, 8, ml))), 256))
731
- ])) : y("", !0),
732
- e.value.style.chart.grid.horizontalGrid.show ? (n(), v("g", pl, [
733
- (n(!0), v(C, null, N(B.value, (t, a) => (n(), v("line", {
734
- x1: o.value.left,
735
- x2: o.value.right,
736
- y1: o.value.top + a * o.value.rowHeight,
737
- y2: o.value.top + a * o.value.rowHeight,
738
- stroke: e.value.style.chart.grid.horizontalGrid.stroke,
739
- "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
740
- "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
741
- }, null, 8, xl))), 256)),
742
- c("line", {
743
- x1: o.value.left,
744
- x2: o.value.right,
745
- y1: o.value.bottom,
746
- y2: o.value.bottom,
747
- stroke: e.value.style.chart.grid.horizontalGrid.stroke,
748
- "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
749
- "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
750
- }, null, 8, _l)
751
- ])) : y("", !0),
752
- e.value.style.chart.labels.axis.yLabel ? (n(), v("text", {
753
- key: 3,
754
- ref_key: "yAxisLabel",
755
- ref: re,
756
- transform: `translate(${e.value.style.chart.labels.axis.fontSize}, ${o.value.absoluteHeight / 2}), rotate(-90)`,
757
- "font-size": e.value.style.chart.labels.axis.fontSize,
758
- fill: e.value.style.chart.labels.axis.color,
759
- "text-anchor": "middle"
760
- }, _(e.value.style.chart.labels.axis.yLabel), 9, kl)) : y("", !0),
761
- e.value.style.chart.labels.yAxisLabels.show ? (n(), v("g", {
762
- key: 4,
763
- ref_key: "serieLabels",
764
- ref: ue
765
- }, [
766
- (n(!0), v(C, null, N(k.value, (t, a) => (n(), v("text", {
767
- class: "vue-ui-dumbbell-serie-name",
768
- key: `serieLabel_${t.id}_${a}`,
769
- x: o.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
770
- y: o.value.top + a * o.value.rowHeight + (!e.value.style.chart.labels.yAxisLabels.showProgression || P.value ? o.value.rowHeight / 2 : o.value.rowHeight / 3) + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
771
- "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
772
- fill: e.value.style.chart.labels.yAxisLabels.color,
773
- "font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
774
- "text-anchor": "end",
775
- onMouseenter: (u) => xe({ datapoint: t, seriesIndex: a }),
776
- onMouseleave: (u) => _e({ datapoint: t, seriesIndex: a }),
777
- onClick: (u) => ke({ datapoint: t, seriesIndex: a })
778
- }, _(t.name) + " " + _(P.value && e.value.style.chart.labels.yAxisLabels.showProgression ? [null, void 0].includes(t.start) || [null, void 0].includes(t.end) ? "" : `(${i(E)(
779
- e.value.style.chart.labels.yAxisLabels.formatter,
780
- 100 * (t.end / t.start - 1),
781
- i(w)({
782
- v: 100 * (t.end / t.start - 1),
783
- s: "%",
784
- r: e.value.style.chart.labels.yAxisLabels.rounding
785
- }),
786
- { datapoint: t }
787
- )})` : ""), 41, Cl))), 128)),
788
- e.value.style.chart.labels.yAxisLabels.showProgression && !P.value ? (n(!0), v(C, { key: 0 }, N(k.value, (t, a) => (n(), v("text", {
789
- class: "vue-ui-dumbbell-serie-value",
790
- x: o.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
791
- y: o.value.top + a * o.value.rowHeight + o.value.rowHeight / 1.3 + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
792
- "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
793
- fill: e.value.style.chart.labels.yAxisLabels.color,
794
- "text-anchor": "end",
795
- onMouseenter: (u) => xe({ datapoint: t, seriesIndex: a }),
796
- onMouseleave: (u) => _e({ datapoint: t, seriesIndex: a }),
797
- onClick: (u) => ke({ datapoint: t, seriesIndex: a })
798
- }, _([null, void 0].includes(t.start) || [null, void 0].includes(t.end) ? "" : i(E)(
799
- e.value.style.chart.labels.yAxisLabels.formatter,
800
- 100 * (t.end / t.start - 1),
801
- i(w)({
802
- v: 100 * (t.end / t.start - 1),
803
- s: "%",
804
- r: e.value.style.chart.labels.yAxisLabels.rounding
805
- }),
806
- { datapoint: t }
807
- )), 41, wl))), 256)) : y("", !0)
808
- ], 512)) : y("", !0),
809
- e.value.style.chart.labels.axis.xLabel ? (n(), v("text", {
810
- key: 5,
811
- ref_key: "xAxisLabel",
812
- ref: ie,
813
- x: o.value.left + o.value.width / 2,
814
- y: o.value.absoluteHeight - e.value.style.chart.labels.axis.fontSize / 3,
815
- "font-size": e.value.style.chart.labels.axis.fontSize,
816
- fill: e.value.style.chart.labels.axis.color,
817
- "text-anchor": "middle"
818
- }, _(e.value.style.chart.labels.axis.xLabel), 9, $l)) : y("", !0),
819
- e.value.style.chart.labels.xAxisLabels.show ? (n(), v("g", {
820
- key: 6,
821
- ref_key: "scaleLabels",
822
- ref: te
823
- }, [
824
- (n(!0), v(C, null, N($.value.ticks, (t, a) => (n(), v("text", {
825
- class: "vue-ui-dumbbell-scale-label",
826
- key: `tick_${a}`,
827
- 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})`,
828
- "font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
829
- fill: e.value.style.chart.labels.xAxisLabels.color,
830
- "font-weight": e.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
831
- "text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
832
- }, _(i(E)(
833
- e.value.style.chart.labels.formatter,
834
- t,
835
- i(w)({
836
- p: e.value.style.chart.labels.prefix,
837
- v: t,
838
- s: e.value.style.chart.labels.suffix,
839
- r: e.value.style.chart.labels.xAxisLabels.rounding
840
- }),
841
- { datapoint: t, seriesIndex: a }
842
- )), 9, Ll))), 128))
843
- ], 512)) : y("", !0),
844
- Q(c("g", null, [
845
- Q(c("path", {
846
- d: `M ${r.value ? r.value.startX : o.value.left},${o.value.top} ${r.value ? r.value.startX : o.value.left},${o.value.bottom}`,
847
- stroke: r.value ? e.value.style.chart.plots.evaluationColors.enable ? r.value.evaluationColor : e.value.style.chart.plots.startColor : "transparent",
848
- "stroke-width": e.value.style.chart.comparisonLines.strokeWidth,
849
- "stroke-dasharray": e.value.style.chart.comparisonLines.strokeDasharray,
850
- style: { transition: "all 0.3s ease-in-out" }
851
- }, null, 8, Al), [
852
- [Z, r.value !== null && ![null, void 0].includes(r.value.start)]
853
- ]),
854
- Q(c("path", {
855
- d: `M ${r.value ? r.value.endX : o.value.left},${o.value.top} ${r.value ? r.value.endX : o.value.left},${o.value.bottom}`,
856
- stroke: r.value ? e.value.style.chart.plots.evaluationColors.enable ? r.value.evaluationColor : e.value.style.chart.plots.endColor : "transparent",
857
- "stroke-width": e.value.style.chart.comparisonLines.strokeWidth,
858
- "stroke-dasharray": e.value.style.chart.comparisonLines.strokeDasharray,
859
- style: { transition: "all 0.3s ease-in-out" }
860
- }, null, 8, Sl), [
861
- [Z, r.value !== null && ![null, void 0].includes(r.value.end)]
862
- ]),
863
- Q(c("rect", {
864
- x: r.value ? Math.min(r.value.startX, r.value.endX) : o.value.left,
865
- y: o.value.top,
866
- height: Math.max(0.1, o.value.height),
867
- width: r.value ? Math.max(0.1, Math.abs(r.value.endX - r.value.startX)) : 0,
868
- fill: r.value ? i(vt)(e.value.style.chart.comparisonLines.rectColor, e.value.style.chart.comparisonLines.rectOpacity) : "transparent",
869
- style: { transition: "all 0.3s ease-in-out" }
870
- }, null, 8, Nl), [
871
- [Z, e.value.style.chart.comparisonLines.showRect && r.value !== null && ![null, void 0].includes(r.value.start) && ![null, void 0].includes(r.value.end)]
872
- ]),
873
- Q(c("text", {
874
- transform: `translate(${Ce.value == null ? 0 : Ce.value}, ${o.value.top - 6})`,
875
- fill: e.value.style.chart.comparisonLines.labelColor,
876
- "font-size": e.value.style.chart.comparisonLines.labelFontSize,
877
- "text-anchor": "middle",
878
- style: { transition: "all 0.3s ease-in-out" }
879
- }, _(Tt.value), 9, Ml), [
880
- [Z, r.value !== null && Ce.value !== null && e.value.style.chart.comparisonLines.showLabel]
881
- ])
882
- ], 512), [
883
- [Z, e.value.style.chart.comparisonLines.show && F.value !== null]
884
- ]),
885
- c("defs", null, [
886
- c("radialGradient", {
887
- id: `start_grad_${f.value}`,
888
- fy: "30%"
889
- }, [
890
- c("stop", {
891
- offset: "10%",
892
- "stop-color": i(J)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
893
- }, null, 8, zl),
894
- c("stop", {
895
- offset: "90%",
896
- "stop-color": i(K)(e.value.style.chart.plots.startColor, 0.1)
897
- }, null, 8, Tl),
898
- c("stop", {
899
- offset: "100%",
900
- "stop-color": e.value.style.chart.plots.startColor
901
- }, null, 8, Ol)
902
- ], 8, Xl),
903
- c("radialGradient", {
904
- id: `end_grad_${f.value}`,
905
- fy: "30%"
906
- }, [
907
- c("stop", {
908
- offset: "10%",
909
- "stop-color": i(J)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
910
- }, null, 8, Il),
911
- c("stop", {
912
- offset: "90%",
913
- "stop-color": i(K)(e.value.style.chart.plots.endColor, 0.1)
914
- }, null, 8, Fl),
915
- c("stop", {
916
- offset: "100%",
917
- "stop-color": e.value.style.chart.plots.endColor
918
- }, null, 8, Pl)
919
- ], 8, Dl),
920
- c("radialGradient", {
921
- id: `positive_grad_${f.value}`,
922
- fy: "30%"
923
- }, [
924
- c("stop", {
925
- offset: "10%",
926
- "stop-color": i(J)(e.value.style.chart.plots.evaluationColors.positive, e.value.style.chart.plots.gradient.intensity / 100)
927
- }, null, 8, Gl),
928
- c("stop", {
929
- offset: "90%",
930
- "stop-color": i(K)(e.value.style.chart.plots.evaluationColors.positive, 0.1)
931
- }, null, 8, El),
932
- c("stop", {
933
- offset: "100%",
934
- "stop-color": e.value.style.chart.plots.evaluationColors.positive
935
- }, null, 8, Rl)
936
- ], 8, Hl),
937
- c("radialGradient", {
938
- id: `negative_grad_${f.value}`,
939
- fy: "30%"
940
- }, [
941
- c("stop", {
942
- offset: "10%",
943
- "stop-color": i(J)(e.value.style.chart.plots.evaluationColors.negative, e.value.style.chart.plots.gradient.intensity / 100)
944
- }, null, 8, Vl),
945
- c("stop", {
946
- offset: "90%",
947
- "stop-color": i(K)(e.value.style.chart.plots.evaluationColors.negative, 0.1)
948
- }, null, 8, Ul),
949
- c("stop", {
950
- offset: "100%",
951
- "stop-color": e.value.style.chart.plots.evaluationColors.negative
952
- }, null, 8, Wl)
953
- ], 8, Bl),
954
- c("radialGradient", {
955
- id: `neutral_grad_${f.value}`,
956
- fy: "30%"
957
- }, [
958
- c("stop", {
959
- offset: "10%",
960
- "stop-color": i(J)(e.value.style.chart.plots.evaluationColors.neutral, e.value.style.chart.plots.gradient.intensity / 100)
961
- }, null, 8, Yl),
962
- c("stop", {
963
- offset: "90%",
964
- "stop-color": i(K)(e.value.style.chart.plots.evaluationColors.neutral, 0.1)
965
- }, null, 8, jl),
966
- c("stop", {
967
- offset: "100%",
968
- "stop-color": e.value.style.chart.plots.evaluationColors.neutral
969
- }, null, 8, Ql)
970
- ], 8, ql)
971
- ]),
972
- (n(!0), v(C, null, N(k.value, (t, a) => (n(), v("g", {
973
- key: `plot_${a}_${t.id}`
974
- }, [
975
- c("defs", null, [
976
- c("linearGradient", {
977
- id: `grad_pos_${f.value}`,
978
- x1: "0%",
979
- x2: "100%",
980
- y1: "0%",
981
- y2: "0%"
982
- }, [
983
- c("stop", {
984
- offset: "0%",
985
- "stop-color": e.value.style.chart.plots.startColor
986
- }, null, 8, Jl),
987
- c("stop", {
988
- offset: "100%",
989
- "stop-color": e.value.style.chart.plots.endColor
990
- }, null, 8, Kl)
991
- ], 8, Zl),
992
- c("linearGradient", {
993
- id: `grad_neg_${f.value}`,
994
- x1: "0%",
995
- x2: "100%",
996
- y1: "0%",
997
- y2: "0%"
998
- }, [
999
- c("stop", {
1000
- offset: "0%",
1001
- "stop-color": e.value.style.chart.plots.endColor
1002
- }, null, 8, ta),
1003
- c("stop", {
1004
- offset: "100%",
1005
- "stop-color": e.value.style.chart.plots.startColor
1006
- }, null, 8, la)
1007
- ], 8, ea)
1008
- ]),
1009
- ![void 0, null].includes(t.end) && ![void 0, null].includes(t.start) ? (n(), v("g", aa, [
1010
- e.value.style.chart.plots.link.type === "curved" ? (n(), v("g", sa, [
1011
- c("path", {
1012
- d: `M
1013
- ${t.startX},${t.y + T.value / 2}
1014
- C ${t.centerX},${t.y} ${t.centerX},${t.y}
1015
- ${t.endX},${t.y + T.value / 2}
1016
- L ${t.endX},${t.y - T.value / 2}
1017
- C ${t.centerX},${t.y} ${t.centerX},${t.y}
1018
- ${t.startX},${t.y - T.value / 2}
1019
- Z
1020
- `,
1021
- fill: e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : t.endX > t.startX ? `url(#grad_pos_${f.value})` : `url(#grad_neg_${f.value})`
1022
- }, null, 8, oa)
1023
- ])) : (n(), v("g", na, [
1024
- c("rect", {
1025
- x: t.endX > t.startX ? t.startX : t.endX,
1026
- y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
1027
- height: Math.max(0.01, e.value.style.chart.plots.link.strokeWidth),
1028
- width: Math.max(0.01, Math.abs(t.endX - t.startX)),
1029
- fill: e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : t.endX > t.startX ? `url(#grad_pos_${f.value})` : `url(#grad_neg_${f.value})`
1030
- }, null, 8, ra)
1031
- ]))
1032
- ])) : y("", !0),
1033
- [null, void 0].includes(t.start) ? y("", !0) : (n(), v("circle", {
1034
- key: 1,
1035
- cx: t.startX,
1036
- cy: t.y,
1037
- r: T.value,
1038
- fill: e.value.style.chart.plots.gradient.show ? e.value.style.chart.plots.evaluationColors.enable ? t.evaluationGrad : `url(#start_grad_${f.value})` : e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : e.value.style.chart.plots.startColor,
1039
- stroke: e.value.style.chart.plots.stroke,
1040
- "stroke-width": e.value.style.chart.plots.strokeWidth
1041
- }, null, 8, ua)),
1042
- [null, void 0].includes(t.end) ? y("", !0) : (n(), v("circle", {
1043
- key: 2,
1044
- cx: t.endX,
1045
- cy: t.y,
1046
- r: T.value,
1047
- fill: e.value.style.chart.plots.gradient.show ? e.value.style.chart.plots.evaluationColors.enable ? t.evaluationGrad : `url(#end_grad_${f.value})` : e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : e.value.style.chart.plots.endColor,
1048
- stroke: e.value.style.chart.plots.stroke,
1049
- "stroke-width": e.value.style.chart.plots.strokeWidth
1050
- }, null, 8, ia))
1051
- ]))), 128)),
1052
- e.value.style.chart.labels.startLabels.show ? (n(), v("g", ca, [
1053
- (n(!0), v(C, null, N(k.value, (t, a) => (n(), v("g", {
1054
- key: `start_label_${a}_${t.id}`
1055
- }, [
1056
- [null, void 0].includes(t.start) ? y("", !0) : (n(), v("text", {
1057
- key: 0,
1058
- x: t.startX,
1059
- y: t.y + T.value * 2 + e.value.style.chart.labels.startLabels.fontSize / 2,
1060
- 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,
1061
- "font-size": e.value.style.chart.labels.startLabels.fontSize,
1062
- "text-anchor": "middle"
1063
- }, _(i(E)(
1064
- e.value.style.chart.labels.formatter,
1065
- t.start,
1066
- i(w)({
1067
- p: e.value.style.chart.labels.prefix,
1068
- v: t.start,
1069
- s: e.value.style.chart.labels.suffix,
1070
- r: e.value.style.chart.labels.startLabels.rounding
1071
- }),
1072
- { datapoint: t, seriesIndex: a }
1073
- )), 9, va))
1074
- ]))), 128))
1075
- ])) : y("", !0),
1076
- e.value.style.chart.labels.endLabels.show ? (n(), v("g", da, [
1077
- (n(!0), v(C, null, N(k.value, (t, a) => (n(), v("g", {
1078
- key: `end_label_${a}_${t.id}`
1079
- }, [
1080
- [null, void 0].includes(t.end) ? y("", !0) : (n(), v("text", {
1081
- key: 0,
1082
- x: t.endX,
1083
- y: t.y - (T.value * 2 - e.value.style.chart.labels.startLabels.fontSize / 3),
1084
- 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,
1085
- "font-size": e.value.style.chart.labels.endLabels.fontSize,
1086
- "text-anchor": "middle"
1087
- }, _(i(E)(
1088
- e.value.style.chart.labels.formatter,
1089
- t.end,
1090
- i(w)({
1091
- p: e.value.style.chart.labels.prefix,
1092
- v: t.end,
1093
- s: e.value.style.chart.labels.suffix,
1094
- r: e.value.style.chart.labels.endLabels.rounding
1095
- }),
1096
- { datapoint: t, seriesIndex: a }
1097
- )), 9, ha))
1098
- ]))), 128))
1099
- ])) : y("", !0),
1100
- c("g", null, [
1101
- (n(!0), v(C, null, N(k.value, (t, a) => (n(), v("rect", {
1102
- x: o.value.left,
1103
- y: o.value.top + a * Math.max(0.1, o.value.rowHeight),
1104
- width: Math.max(0.1, o.value.width),
1105
- height: Math.max(0.1, o.value.rowHeight),
1106
- fill: F.value !== null && F.value === a ? i(vt)(e.value.style.chart.highlighter.color, e.value.style.chart.highlighter.opacity) : "transparent",
1107
- onMouseenter: (u) => xe({ datapoint: t, seriesIndex: a }),
1108
- onMouseleave: (u) => _e({ datapoint: t, seriesIndex: a }),
1109
- onClick: (u) => ke({ datapoint: t, seriesIndex: a })
1110
- }, null, 40, fa))), 256))
1111
- ]),
1112
- p(l.$slots, "svg", { svg: o.value }, void 0, !0)
1113
- ], 14, bl)),
1114
- l.$slots.watermark ? (n(), v("div", ba, [
1115
- p(l.$slots, "watermark", A(S({ isPrinting: i(He) || i(Ge) })), void 0, !0)
1116
- ])) : y("", !0),
1117
- c("div", {
1118
- id: `legend-bottom-${f.value}`
1119
- }, null, 8, ya),
1120
- Oe.value ? (n(), I(Bt, {
1121
- key: 5,
1122
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
1123
- }, [
1124
- c("div", {
1125
- ref_key: "chartLegend",
1126
- ref: Se
1127
- }, [
1128
- e.value.style.chart.legend.show && ee.value ? (n(), I(vl, {
1129
- key: `legend_${Te.value}`,
1130
- legendSet: ge.value,
1131
- config: At.value,
1132
- clickable: !1
1133
- }, {
1134
- item: m(({ legend: t }) => [
1135
- c("div", {
1136
- style: oe(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
1137
- }, [
1138
- (n(), v("svg", {
1139
- xmlns: i(ct),
1140
- viewBox: "0 0 20 20",
1141
- height: e.value.style.chart.legend.fontSize,
1142
- width: e.value.style.chart.legend.fontSize
1143
- }, [
1144
- c("circle", {
1145
- cx: 10,
1146
- cy: 10,
1147
- r: 9,
1148
- fill: t.color
1149
- }, null, 8, ma)
1150
- ], 8, ga)),
1151
- i(ce) ? y("", !0) : (n(), v(C, { key: 0 }, [
1152
- we(_(t.name), 1)
1153
- ], 64))
1154
- ], 4)
1155
- ]),
1156
- _: 1
1157
- }, 8, ["legendSet", "config"])) : p(l.$slots, "legend", {
1158
- key: 1,
1159
- legend: ge.value
1160
- }, void 0, !0)
1161
- ], 512)
1162
- ], 8, ["to"])) : y("", !0),
1163
- l.$slots.source ? (n(), v("div", {
1164
- key: 6,
1165
- ref_key: "source",
1166
- ref: Ne,
1167
- dir: "auto"
1168
- }, [
1169
- p(l.$slots, "source", {}, void 0, !0)
1170
- ], 512)) : y("", !0),
1171
- ee.value && e.value.userOptions.buttons.table ? (n(), I(Vt(j.value.component), Ut({ key: 7 }, j.value.props, {
1172
- ref_key: "tableUnit",
1173
- ref: q,
1174
- onClose: Je
1175
- }), ot({
1176
- content: m(() => [
1177
- (n(), I(i(gt), {
1178
- key: `table_${ze.value}`,
1179
- colNames: le.value.colNames,
1180
- head: le.value.head,
1181
- body: le.value.body,
1182
- config: le.value.config,
1183
- title: e.value.table.useDialog ? "" : j.value.title,
1184
- withCloseButton: !e.value.table.useDialog,
1185
- onClose: Je
1186
- }, {
1187
- th: m(({ th: t }) => [
1188
- c("div", {
1189
- innerHTML: t,
1190
- style: { display: "flex", "align-items": "center" }
1191
- }, null, 8, pa)
1192
- ]),
1193
- td: m(({ td: t }) => [
1194
- we(_(t.name || t), 1)
1195
- ]),
1196
- _: 1
1197
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
1198
- ]),
1199
- _: 2
1200
- }, [
1201
- e.value.table.useDialog ? {
1202
- name: "title",
1203
- fn: m(() => [
1204
- we(_(j.value.title), 1)
1205
- ]),
1206
- key: "0"
1207
- } : void 0,
1208
- e.value.table.useDialog ? {
1209
- name: "actions",
1210
- fn: m(() => [
1211
- c("button", {
1212
- tabindex: "0",
1213
- class: "vue-ui-user-options-button",
1214
- onClick: s[0] || (s[0] = (t) => me(e.value.userOptions.callbacks.csv))
1215
- }, [
1216
- nt(i(bt), {
1217
- name: "excel",
1218
- stroke: j.value.props.color
1219
- }, null, 8, ["stroke"])
1220
- ])
1221
- ]),
1222
- key: "1"
1223
- } : void 0
1224
- ]), 1040)) : y("", !0),
1225
- i(ce) ? (n(), I(al, { key: 8 })) : y("", !0)
1226
- ], 46, hl));
1227
- }
1228
- }, Fa = /* @__PURE__ */ dl(xa, [["__scopeId", "data-v-172d4caf"]]);
1229
- export {
1230
- Fa as default
1231
- };