vue-data-ui 3.22.9 → 3.22.10

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 (204) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
  3. package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CDTIUIKV.js} +1 -1
  4. package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
  5. package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-CkEX0292.js} +2 -2
  6. package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-C959ZIW9.js} +2 -2
  7. package/dist/{DataTable-BxpTMgfK.js → DataTable-ByZy5gt1.js} +2 -2
  8. package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
  10. package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-BoTvk0i5.js} +1 -1
  11. package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CLaZJl6K.js} +3 -3
  12. package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
  13. package/dist/{Slicer-CW_XPIKL.js → Slicer-WsWTQPKt.js} +21 -21
  14. package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-3n516NyE.js} +214 -214
  15. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
  16. package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
  17. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
  18. package/dist/{UserOptions-trvJ26nz.js → UserOptions-BUQOnoPR.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
  89. package/dist/exposedLib-CZbtc2a6.js +25 -0
  90. package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
  91. package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
  92. package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
  93. package/dist/{package-ByOT60IK.js → package-BRBLwZUc.js} +1 -1
  94. package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
  95. package/dist/{render-common-D18VrP0h.js → render-common-DJXFRGhU.js} +10 -10
  96. package/dist/ssr/vue-ui-donut.js +1 -1
  97. package/dist/ssr/vue-ui-xy.js +1 -1
  98. package/dist/ssr.js +2 -2
  99. package/dist/types/utils.d.ts +40 -0
  100. package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
  101. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
  102. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
  103. package/dist/utils.js +26 -24
  104. package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bx_8d3b_.js} +68 -68
  105. package/dist/vue-data-ui.js +77 -77
  106. package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
  107. package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
  108. package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
  109. package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
  110. package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
  111. package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
  112. package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-BUP1JoNs.js} +287 -287
  113. package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
  114. package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
  115. package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-AA-QjUQI.js} +42 -42
  116. package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CdBFGYOK.js} +37 -37
  117. package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
  118. package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-CgRph4-n.js} +32 -32
  119. package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
  120. package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-ClrukmcB.js} +3 -3
  121. package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
  122. package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-DtQCrMKL.js} +207 -207
  123. package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
  124. package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
  125. package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-PjwAW2tY.js} +71 -71
  126. package/dist/vue-ui-funnel-DojI09FV.js +782 -0
  127. package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
  128. package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-CoL0OzSd.js} +178 -178
  129. package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-yuL-_sqF.js} +20 -20
  130. package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-CbC5zV3K.js} +9 -9
  131. package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
  132. package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-CuWssH-D.js} +414 -414
  133. package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
  134. package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BdYenScF.js} +3 -3
  135. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
  136. package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
  137. package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-B_6GFlaR.js} +261 -261
  138. package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
  139. package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
  141. package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
  142. package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
  143. package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
  144. package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-CzLGCFWK.js} +101 -101
  145. package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
  146. package/dist/vue-ui-ridgeline-BArLhskj.js +1628 -0
  147. package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
  148. package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
  149. package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-KeIPGp9U.js} +99 -99
  150. package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-C1mYDh4R.js} +17 -17
  151. package/dist/vue-ui-spark-trend-EqCqmHmU.js +443 -0
  152. package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-BPh45vBP.js} +66 -66
  153. package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-CtouPcyW.js} +65 -65
  154. package/dist/vue-ui-sparkhistogram-D4sI0DHN.js +576 -0
  155. package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-BDFZ78Fz.js} +51 -51
  156. package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
  157. package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-nMXIY9x8.js} +108 -108
  158. package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
  159. package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-BCf5nthl.js} +65 -65
  160. package/dist/vue-ui-table-BAKkFXki.js +1338 -0
  161. package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
  162. package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
  163. package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
  164. package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-Bz7EnsM1.js} +5 -5
  165. package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
  166. package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-JxNNtb7v.js} +232 -232
  167. package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
  168. package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
  169. package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
  170. package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-R9o00A6c.js} +210 -210
  171. package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-CUt6sU1s.js} +766 -766
  172. package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-Do34-UbE.js} +134 -134
  173. package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
  174. package/package.json +1 -1
  175. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  176. package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
  177. package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
  178. package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
  179. package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
  180. package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
  181. package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
  182. package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
  183. package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
  184. package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
  185. package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
  186. package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
  187. package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
  188. package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
  189. package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
  190. package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
  191. package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
  192. package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
  193. package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
  194. package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
  195. package/dist/vue-ui-rings-J990vNbX.js +0 -1252
  196. package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
  197. package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
  198. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
  199. package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
  200. package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
  201. package/dist/vue-ui-table-uudidrYt.js +0 -1338
  202. package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
  203. package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
  204. package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
@@ -1,1564 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, Et as n, G as r, J as i, Kt as a, Rt as o, T as s, Z as ee, dt as te, h as ne, i as c, kt as re, q as l, t as ie, v as ae } from "./lib-JqW18y5I.js";
3
- import { t as oe } from "./useConfig-DYM3f6EI.js";
4
- import { t as se } from "./usePrinter-CqqHmnBI.js";
5
- import { n as ce, t as le } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as ue } from "./useSvgExport-SVIsDot8.js";
7
- import { t as de } from "./useNestedProp-DIuuzG1r.js";
8
- import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as pe } from "./useTimeLabelCollider-AEcY4Ioe.js";
10
- import { t as me } from "./img-DnP3eXuv.js";
11
- import { n as he } from "./Title-CcNiYzEo.js";
12
- import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { c as _e } from "./canvas-lib-BOP_HS11.js";
14
- import { t as ve } from "./useResponsive-BfnK0KxU.js";
15
- import { t as u } from "./DefGrad-DVBqDjhO.js";
16
- import { t as ye } from "./A11yDataTable-DdRsVULz.js";
17
- import { t as be } from "./useUserOptionState-DK-_1ddE.js";
18
- import { t as xe } from "./useChartAccessibility-DYqac8yF.js";
19
- import { t as Se } from "./Legend-ROt6ugzW.js";
20
- import { t as Ce } from "./vue_ui_dumbbell-Bfe_jFyi.js";
21
- import { Fragment as d, Teleport as we, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Te, createTextVNode as Ee, createVNode as _, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as De, nextTick as Oe, normalizeClass as ke, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Ae, onMounted as je, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Me, shallowRef as Ne, toDisplayString as E, toRefs as Pe, unref as D, vShow as Fe, watch as Ie, watchEffect as Le, withCtx as O, withDirectives as Re } from "vue";
22
- //#region src/components/vue-ui-dumbbell.vue
23
- var ze = /* @__PURE__ */ e({ default: () => wt }), Be = ["id"], Ve = ["id"], He = ["id"], Ue = { style: { position: "relative" } }, We = [
24
- "xmlns",
25
- "viewBox",
26
- "aria-describedby"
27
- ], Ge = [
28
- "x",
29
- "y",
30
- "width",
31
- "height"
32
- ], Ke = { key: 1 }, qe = [
33
- "x1",
34
- "x2",
35
- "y1",
36
- "y2",
37
- "stroke",
38
- "stroke-width",
39
- "stroke-dasharray"
40
- ], Je = { key: 2 }, Ye = [
41
- "x1",
42
- "x2",
43
- "y1",
44
- "y2",
45
- "stroke",
46
- "stroke-width",
47
- "stroke-dasharray"
48
- ], Xe = [
49
- "x1",
50
- "x2",
51
- "y1",
52
- "y2",
53
- "stroke",
54
- "stroke-width",
55
- "stroke-dasharray"
56
- ], Ze = [
57
- "transform",
58
- "font-size",
59
- "fill"
60
- ], Qe = [
61
- "x",
62
- "y",
63
- "font-size",
64
- "fill",
65
- "font-weight",
66
- "onMouseenter",
67
- "onMouseleave",
68
- "onClick"
69
- ], $e = [
70
- "x",
71
- "y",
72
- "font-size",
73
- "fill",
74
- "onMouseenter",
75
- "onMouseleave",
76
- "onClick"
77
- ], et = [
78
- "x",
79
- "y",
80
- "font-size",
81
- "fill"
82
- ], tt = [
83
- "transform",
84
- "font-size",
85
- "fill",
86
- "font-weight",
87
- "text-anchor"
88
- ], nt = [
89
- "d",
90
- "stroke",
91
- "stroke-width",
92
- "stroke-dasharray"
93
- ], rt = [
94
- "d",
95
- "stroke",
96
- "stroke-width",
97
- "stroke-dasharray"
98
- ], it = [
99
- "x",
100
- "y",
101
- "height",
102
- "width",
103
- "fill"
104
- ], at = [
105
- "transform",
106
- "fill",
107
- "font-size"
108
- ], ot = { key: 0 }, st = { key: 0 }, ct = ["d", "fill"], lt = { key: 1 }, ut = [
109
- "x",
110
- "y",
111
- "height",
112
- "width",
113
- "fill"
114
- ], dt = [
115
- "cx",
116
- "cy",
117
- "r",
118
- "fill",
119
- "stroke",
120
- "stroke-width"
121
- ], ft = [
122
- "cx",
123
- "cy",
124
- "r",
125
- "fill",
126
- "stroke",
127
- "stroke-width"
128
- ], pt = { key: 7 }, mt = [
129
- "x",
130
- "y",
131
- "fill",
132
- "font-size"
133
- ], ht = { key: 8 }, gt = [
134
- "x",
135
- "y",
136
- "fill",
137
- "font-size"
138
- ], _t = [
139
- "x",
140
- "y",
141
- "width",
142
- "height",
143
- "fill",
144
- "onMouseenter",
145
- "onMouseleave",
146
- "onClick"
147
- ], vt = {
148
- key: 0,
149
- style: {
150
- position: "absolute",
151
- top: "100%",
152
- left: "0",
153
- width: "100%"
154
- },
155
- "data-dom-to-png-ignore": "",
156
- "aria-hidden": "true"
157
- }, yt = {
158
- key: 5,
159
- class: "vue-data-ui-watermark"
160
- }, bt = ["id"], xt = [
161
- "xmlns",
162
- "height",
163
- "width"
164
- ], St = ["fill"], Ct = ["innerHTML"], wt = /*#__PURE__*/ ge({
165
- __name: "vue-ui-dumbbell",
166
- props: {
167
- config: {
168
- type: Object,
169
- default() {
170
- return {};
171
- }
172
- },
173
- dataset: {
174
- type: Array,
175
- default() {
176
- return [];
177
- }
178
- }
179
- },
180
- emits: ["selectDatapoint", "copyAlt"],
181
- setup(e, { expose: ge, emit: ze }) {
182
- let wt = v(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), Tt = v(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), Et = v(() => import("./DataTable-BxpTMgfK.js")), Dt = v(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), Ot = v(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), kt = v(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), At = v(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), { vue_ui_dumbbell: jt } = oe(), { isThemeValid: Mt, warnInvalidTheme: Nt } = fe(), k = e, Pt = ze, Ft = f({
183
- get() {
184
- return !!k.dataset && k.dataset.length;
185
- },
186
- set(e) {
187
- return e;
188
- }
189
- }), A = C(r()), It = C(0), j = C(null), Lt = C(null), Rt = C(null), zt = C(null), Bt = C(null), Vt = C(0), Ht = C(0), Ut = C(0), Wt = C(!1), Gt = C(null), Kt = C(null), qt = C(!1), Jt = C(!1), Yt = C(null), Xt = C(null), Zt = C(null), Qt = C(null), M = C(null), N = C(null), P = C(null), $t = C(!1), F = C(!1), I = C(cn()), L = f(() => I.value.userOptions.useCursorPointer), en = f(() => a({
190
- defaultConfig: {
191
- userOptions: { show: !1 },
192
- table: { show: !1 },
193
- useAnimation: !1,
194
- style: { chart: {
195
- backgroundColor: "#99999930",
196
- padding: {
197
- top: 12,
198
- right: 12,
199
- bottom: 12,
200
- left: 12
201
- },
202
- grid: {
203
- horizontalGrid: { stroke: "#6A6A6A" },
204
- verticalGrid: { stroke: "#6A6A6A" }
205
- },
206
- labels: {
207
- axis: {
208
- yLabel: "",
209
- xLabel: ""
210
- },
211
- xAxisLabels: { show: !1 },
212
- yAxisLabels: { show: !1 },
213
- endLabels: { show: !1 },
214
- startLabels: { show: !1 }
215
- },
216
- legend: { backgroundColor: "transparent" },
217
- plots: {
218
- endColor: "#969696",
219
- startColor: "#DBDBDB",
220
- stroke: "#6A6A6A",
221
- evaluationColors: { enable: !1 }
222
- }
223
- } }
224
- },
225
- userConfig: I.value.skeletonConfig ?? {}
226
- })), { loading: tn, FINAL_DATASET: nn, manualLoading: rn } = ce({
227
- ...Pe(k),
228
- FINAL_CONFIG: I,
229
- prepareConfig: cn,
230
- skeletonDataset: k.config?.skeletonDataset ?? [
231
- {
232
- name: "_",
233
- start: 21,
234
- end: 34
235
- },
236
- {
237
- name: "_",
238
- start: 13,
239
- end: 21
240
- },
241
- {
242
- name: "_",
243
- start: 8,
244
- end: 13
245
- },
246
- {
247
- name: "_",
248
- start: 5,
249
- end: 8
250
- },
251
- {
252
- name: "_",
253
- start: 3,
254
- end: 5
255
- }
256
- ],
257
- skeletonConfig: a({
258
- defaultConfig: I.value,
259
- userConfig: en.value
260
- })
261
- }), { userOptionsVisible: an, setUserOptionsVisibility: on, keepUserOptionState: sn } = be({ config: I.value }), { svgRef: R } = xe({ config: I.value.style.chart.title });
262
- function cn() {
263
- let e = de({
264
- userConfig: k.config,
265
- defaultConfig: jt
266
- }), t = e.theme;
267
- if (!t) return e;
268
- if (!Mt.value(e)) return Nt(e), e;
269
- let n = de({
270
- userConfig: Ce[t] || k.config,
271
- defaultConfig: e
272
- });
273
- return de({
274
- userConfig: k.config,
275
- defaultConfig: n
276
- });
277
- }
278
- Ie(() => k.config, (e) => {
279
- tn.value || (I.value = cn()), an.value = !I.value.userOptions.showOnChartHover, un(), Vt.value += 1, Ht.value += 1, Ut.value += 1, W.value = I.value.style.chart.rowHeight, G.value = I.value.style.chart.width, V.value.showTable = I.value.table.show;
280
- }, { deep: !0 }), Ie(() => nn.value, (e) => {
281
- Array.isArray(e) && e.length > 0 && (rn.value = !1), wn(), Tn();
282
- }, { deep: !0 });
283
- let z = Ne(null), B = Ne(null);
284
- je(() => {
285
- Wt.value = !0, un();
286
- });
287
- let ln = f(() => !!I.value.debug);
288
- function un() {
289
- if (re(k.dataset) ? t({
290
- componentName: "VueUiDumbbell",
291
- type: "dataset",
292
- debug: ln.value
293
- }) : k.dataset.forEach((e, n) => {
294
- te({
295
- datasetObject: e,
296
- requiredAttributes: [
297
- "name",
298
- "start",
299
- "end"
300
- ]
301
- }).forEach((e) => {
302
- Ft.value = !1, t({
303
- componentName: "VueUiDumbbell",
304
- type: "datasetSerieAttribute",
305
- property: e,
306
- index: n,
307
- debug: ln.value
308
- });
309
- });
310
- }), I.value.responsive) {
311
- let e = _e(() => {
312
- let { width: e, height: t } = ve({
313
- chart: j.value,
314
- title: I.value.style.chart.title.text ? Lt.value : null,
315
- legend: I.value.style.chart.legend.show ? Rt.value : null,
316
- source: zt.value,
317
- noTitle: Bt.value
318
- }), n = I.value.style.chart.title.text ? 24 : 0, r = I.value.style.chart.legend.show ? 24 : 0;
319
- requestAnimationFrame(async () => {
320
- G.value = Math.max(.1, e), W.value = Math.max(.1, (Math.max(.1, t) - (n + r)) / nn.value.length), Rn();
321
- });
322
- });
323
- z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value = j.value.parentNode, z.value.observe(B.value);
324
- }
325
- Rn();
326
- }
327
- Ae(() => {
328
- Y.value != null && (cancelAnimationFrame(Y.value), Y.value = null), z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect());
329
- });
330
- let { isPrinting: dn, isImaging: fn, generatePdf: pn, generateImage: mn } = se({
331
- elementId: `dumbbell_${A.value}`,
332
- fileName: I.value.style.chart.title.text || "vue-ui-dumbbell",
333
- options: I.value.userOptions.print
334
- }), hn = f(() => I.value.userOptions.show && !I.value.style.chart.title.text), V = C({ showTable: I.value.table.show });
335
- Ie(I, () => {
336
- V.value = { showTable: I.value.table.show };
337
- }, { immediate: !0 });
338
- let H = f(() => nn.value.map((e, t) => ({
339
- ...e,
340
- start: ae(e.start),
341
- end: ae(e.end),
342
- id: e.id ?? `${String(e.name)}__${String(e.start)}__${String(e.end)}__${r()}`
343
- }))), gn = f(() => {
344
- let e = I.value.style.chart.grid, t = H.value.flatMap((e) => [e.start, e.end]).map((e) => Number(e)).filter((e) => Number.isFinite(e)), n = t.length ? Math.min(...t) : 0, r = t.length ? Math.max(...t) : 0;
345
- return {
346
- min: e.scaleMin ?? Math.min(n, 0),
347
- max: e.scaleMax ?? r
348
- };
349
- }), U = f(() => ne(gn.value.min, gn.value.max, I.value.style.chart.grid.scaleSteps)), W = C(I.value.style.chart.rowHeight), G = C(I.value.style.chart.width);
350
- function _n() {
351
- let e = 0;
352
- Xt.value && (e = Array.from(Xt.value.querySelectorAll("text")).reduce((e, t) => {
353
- let n = t.getComputedTextLength();
354
- return n > e ? n : e;
355
- }, 0));
356
- let t = Yt.value ? Yt.value.getBoundingClientRect().width : 0;
357
- return e + t + (t ? 24 + I.value.style.chart.labels.axis.yLabelOffsetX : 0);
358
- }
359
- let vn = C(0), yn = _e((e) => {
360
- vn.value = e;
361
- }, 100);
362
- Le((e) => {
363
- let t = Zt.value;
364
- if (!t) return;
365
- let n = new ResizeObserver((e) => {
366
- yn(e[0].contentRect.height);
367
- });
368
- n.observe(t), e(() => n.disconnect());
369
- }), Ae(() => {
370
- vn.value = 0;
371
- });
372
- let bn = f(() => {
373
- F.value;
374
- let e = 0;
375
- Qt.value && (e = Qt.value.getBBox().height);
376
- let t = 0;
377
- return Zt.value && (t = vn.value), e + t;
378
- }), xn = f(() => H.value.length);
379
- function Sn(e, t, n) {
380
- let r = Number(e), i = Number(t.min), a = Number(t.max), o = Number(n.width);
381
- if (!Number.isFinite(r) || !Number.isFinite(i) || !Number.isFinite(a) || !Number.isFinite(o)) return n.left;
382
- let s = a - i;
383
- return s <= 0 ? n.left : n.left + (r - i) / s * o;
384
- }
385
- let K = f(() => {
386
- F.value;
387
- let e = _n(), t = I.value.style.chart.padding, n = I.value.style.chart.labels.axis.xLabel ? I.value.style.chart.labels.axis.xLabelOffsetY : 0, r = W.value * xn.value - bn.value - t.top - t.bottom - n, i = r / xn.value, a = W.value * xn.value, o = G.value - e - t.left - t.right, s = U.value.ticks.length * (o / U.value.ticks.length);
388
- return {
389
- left: I.value.style.chart.padding.left + e,
390
- right: G.value - I.value.style.chart.padding.right,
391
- top: I.value.style.chart.padding.top,
392
- bottom: a - I.value.style.chart.padding.bottom - bn.value - n,
393
- width: o,
394
- height: r,
395
- rowHeight: i,
396
- absoluteHeight: a,
397
- widthPlotReference: s
398
- };
399
- }), q = f(() => Math.min(W.value / 2 * .7, I.value.style.chart.plots.radius)), Cn = C([]), J = f({
400
- get() {
401
- let e = K.value, t = U.value;
402
- return Cn.value.map((n, r) => {
403
- let i = Sn(n.start, t, e), a = Sn(n.endVal, t, e), o = i + (a - i) / 2, s = ![null, void 0].includes(n.start) && ![null, void 0].includes(n.end) && n.end > n.start, ee = ![null, void 0].includes(n.start) && ![null, void 0].includes(n.end) && n.end < n.start, te = ![null, void 0].includes(n.start) && ![null, void 0].includes(n.end) && n.end === n.start || [null, void 0].includes(n.start) || [null, void 0].includes(n.end), ne = s ? I.value.style.chart.plots.evaluationColors.positive : ee ? I.value.style.chart.plots.evaluationColors.negative : I.value.style.chart.plots.evaluationColors.neutral;
404
- return {
405
- ...n,
406
- isPositive: s,
407
- isNegative: ee,
408
- isNeutral: te,
409
- evaluationColor: ne,
410
- evaluationGrad: `url(#${s ? "positive" : ee ? "negative" : "neutral"}_grad_${A.value})`,
411
- startX: i,
412
- endX: a,
413
- centerX: o,
414
- y: e.top + r * e.rowHeight + e.rowHeight / 2
415
- };
416
- });
417
- },
418
- set(e) {
419
- Cn.value = e;
420
- }
421
- });
422
- function wn() {
423
- Cn.value = H.value.map((e) => {
424
- let t = Number(e.start);
425
- return {
426
- ...e,
427
- endVal: Number.isFinite(t) ? t : 0
428
- };
429
- });
430
- }
431
- let Y = C(null);
432
- je(() => {
433
- Tn();
434
- });
435
- function Tn() {
436
- if (Y.value != null && (cancelAnimationFrame(Y.value), Y.value = null), wn(), !I.value.useAnimation) {
437
- J.value = Cn.value.map((e) => {
438
- let t = Number(e.end);
439
- return {
440
- ...e,
441
- endVal: Number.isFinite(t) ? t : e.endVal
442
- };
443
- });
444
- return;
445
- }
446
- let e = Math.max(1, Math.min(100, I.value.animationSpeed || 100)) / 100, t = H.value.map((e) => {
447
- let t = Number(e.start), n = Number(e.end), r = Number.isFinite(t) ? t : 0;
448
- return (Number.isFinite(n) ? n : r) - r;
449
- }), n = () => {
450
- let r = !0;
451
- J.value = Cn.value.map((n, i) => {
452
- let a = Number.isFinite(Number(n.end)) ? Number(n.end) : n.endVal, o = n.endVal + t[i] * e, s = t[i] >= 0 ? Math.min(o, a) : Math.max(o, a);
453
- return s !== a && (r = !1), {
454
- ...n,
455
- endVal: s
456
- };
457
- }), r ? Y.value = null : Y.value = requestAnimationFrame(n);
458
- };
459
- Y.value = requestAnimationFrame(n);
460
- }
461
- let En = f(() => I.value.style.chart.plots.evaluationColors.enable ? [
462
- {
463
- name: I.value.style.chart.legend.labelNegative,
464
- color: I.value.style.chart.plots.gradient.show ? `url(#negative_grad_${A.value})` : I.value.style.chart.plots.evaluationColors.negative
465
- },
466
- {
467
- name: I.value.style.chart.legend.labelNeutral,
468
- color: I.value.style.chart.plots.gradient.show ? `url(#neutral_grad_${A.value})` : I.value.style.chart.plots.evaluationColors.neutral
469
- },
470
- {
471
- name: I.value.style.chart.legend.labelPositive,
472
- color: I.value.style.chart.plots.gradient.show ? `url(#positive_grad_${A.value})` : I.value.style.chart.plots.evaluationColors.positive
473
- }
474
- ] : [{
475
- name: I.value.style.chart.legend.labelStart,
476
- color: I.value.style.chart.plots.gradient.show ? `url(#start_grad_${A.value})` : I.value.style.chart.plots.startColor
477
- }, {
478
- name: I.value.style.chart.legend.labelEnd,
479
- color: I.value.style.chart.plots.gradient.show ? `url(#end_grad_${A.value})` : I.value.style.chart.plots.endColor
480
- }]), Dn = f(() => ({
481
- cy: "donut-div-legend",
482
- backgroundColor: I.value.style.chart.legend.backgroundColor,
483
- color: I.value.style.chart.legend.color,
484
- fontSize: I.value.style.chart.legend.fontSize,
485
- paddingBottom: 12,
486
- paddingTop: 12,
487
- fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
488
- })), X = f(() => ({
489
- head: J.value.map((e) => ({ name: e.name })),
490
- body: J.value.map((e) => ({
491
- start: e.start,
492
- end: e.end
493
- }))
494
- })), Z = f(() => {
495
- let e = [
496
- I.value.table.columnNames.series,
497
- I.value.table.columnNames.start,
498
- I.value.table.columnNames.end,
499
- I.value.table.columnNames.progression
500
- ], t = X.value.head.map((e, t) => {
501
- let n = i({
502
- p: I.value.style.chart.labels.prefix,
503
- v: X.value.body[t].start,
504
- s: I.value.style.chart.labels.suffix,
505
- r: I.value.table.td.roundingValue
506
- }), r = i({
507
- p: I.value.style.chart.labels.prefix,
508
- v: X.value.body[t].end,
509
- s: I.value.style.chart.labels.suffix,
510
- r: I.value.table.td.roundingValue
511
- }), a = i({
512
- v: 100 * (X.value.body[t].end / X.value.body[t].start - 1),
513
- s: "%",
514
- r: I.value.table.td.roundingPercentage
515
- });
516
- return [
517
- { name: e.name },
518
- n,
519
- r,
520
- a
521
- ];
522
- }), n = {
523
- th: {
524
- backgroundColor: I.value.table.th.backgroundColor,
525
- color: I.value.table.th.color,
526
- outline: I.value.table.th.outline
527
- },
528
- td: {
529
- backgroundColor: I.value.table.td.backgroundColor,
530
- color: I.value.table.td.color,
531
- outline: I.value.table.td.outline
532
- },
533
- breakpoint: I.value.table.responsiveBreakpoint
534
- };
535
- return {
536
- colNames: [
537
- I.value.table.columnNames.series,
538
- I.value.table.columnNames.start,
539
- I.value.table.columnNames.end,
540
- I.value.table.columnNames.progression
541
- ],
542
- head: e,
543
- body: t,
544
- config: n
545
- };
546
- });
547
- function On(e = null) {
548
- Oe(() => {
549
- let t = X.value.head.map((e, t) => [
550
- [e.name],
551
- [X.value.body[t].start],
552
- [X.value.body[t].end]
553
- ]), n = s([
554
- [I.value.style.chart.title.text],
555
- [I.value.style.chart.title.subtitle.text],
556
- [
557
- [I.value.table.columnNames.series],
558
- [I.value.table.columnNames.start],
559
- [I.value.table.columnNames.end]
560
- ]
561
- ].concat(t));
562
- e ? e(n) : ee({
563
- csvContent: n,
564
- title: I.value.style.chart.title.text || "vue-ui-dumbbell"
565
- });
566
- });
567
- }
568
- let Q = C(!1);
569
- function kn(e) {
570
- Q.value = e, It.value += 1;
571
- }
572
- function An() {
573
- return H.value;
574
- }
575
- function jn() {
576
- V.value.showTable = !V.value.showTable;
577
- }
578
- let Mn = C(!1);
579
- function Nn() {
580
- Mn.value = !Mn.value;
581
- }
582
- async function Pn({ scale: e = 2 } = {}) {
583
- if (!j.value) return;
584
- let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
585
- domElement: j.value,
586
- base64: !0,
587
- img: !0,
588
- scale: e
589
- });
590
- return {
591
- imageUri: i,
592
- base64: a,
593
- title: I.value.style.chart.title.text,
594
- width: t,
595
- height: n,
596
- aspectRatio: r
597
- };
598
- }
599
- let Fn = f(() => U.value.ticks);
600
- pe({
601
- timeLabelsEls: Zt,
602
- timeLabels: Fn,
603
- slicer: f(() => ({
604
- start: 0,
605
- end: Fn.value.length
606
- })),
607
- configRef: I,
608
- rotationPath: [
609
- "style",
610
- "chart",
611
- "labels",
612
- "xAxisLabels",
613
- "rotation"
614
- ],
615
- autoRotatePath: [
616
- "style",
617
- "chart",
618
- "labels",
619
- "xAxisLabels",
620
- "autoRotate",
621
- "enable"
622
- ],
623
- isAutoSize: !1,
624
- width: G,
625
- height: W,
626
- targetClass: ".vue-ui-dumbbell-scale-label",
627
- rotation: I.value.style.chart.labels.xAxisLabels.autoRotate.angle
628
- });
629
- function In({ rowHeight: e, fontSize: t, showProgression: n }) {
630
- if (!n) return !1;
631
- let r = e / 3, i = e / 1.3;
632
- return Math.abs(i - r) < t * 1.2;
633
- }
634
- let Ln = (() => {
635
- let e = null, t = 0;
636
- return (n) => {
637
- if (n === F.value) {
638
- e = null, t = 0;
639
- return;
640
- }
641
- e === null || e !== n ? (e = n, t = 1) : (t += 1, t >= 1 && (F.value = n, e = null, t = 0));
642
- };
643
- })(), Rn = _e(() => {
644
- requestAnimationFrame(() => {
645
- requestAnimationFrame(() => {
646
- Ln(In({
647
- rowHeight: K.value.rowHeight,
648
- fontSize: I.value.style.chart.labels.yAxisLabels.fontSize,
649
- showProgression: I.value.style.chart.labels.yAxisLabels.showProgression
650
- }));
651
- });
652
- });
653
- }, 100);
654
- function zn({ datapoint: e, seriesIndex: t }) {
655
- M.value = t, N.value = e, I.value.events.datapointEnter && I.value.events.datapointEnter({
656
- datapoint: e,
657
- seriesIndex: t
658
- });
659
- }
660
- function Bn({ datapoint: e, seriesIndex: t }) {
661
- M.value = null, N.value = null, I.value.events.datapointLeave && I.value.events.datapointLeave({
662
- datapoint: e,
663
- seriesIndex: t
664
- });
665
- }
666
- function Vn({ datapoint: e, seriesIndex: t }) {
667
- I.value.events.datapointClick && I.value.events.datapointClick({
668
- datapoint: e,
669
- seriesIndex: t
670
- }), Pt("selectDatapoint", {
671
- ...e,
672
- seriesIndex: t
673
- });
674
- }
675
- let Hn = f(() => {
676
- if (N.value === null) return 0;
677
- let e = ![null, void 0].includes(N.value.start), t = ![null, void 0].includes(N.value.end);
678
- return e && t ? Math.min(N.value.startX, N.value.endX) + Math.abs(N.value.startX - N.value.endX) / 2 : e && !t ? N.value.startX : t && !e ? N.value.endX : null;
679
- }), Un = f(() => {
680
- if (N.value === null) return "";
681
- let e = ![null, void 0].includes(N.value.start), t = ![null, void 0].includes(N.value.end), n = "", r = "";
682
- return e && (n = c(I.value.style.chart.labels.formatter, N.value.start, i({
683
- p: I.value.style.chart.labels.prefix,
684
- v: N.value.start,
685
- s: I.value.style.chart.labels.suffix,
686
- r: I.value.style.chart.labels.startLabels.rounding
687
- }), {
688
- datapoint: N.value,
689
- seriesIndex: M.value
690
- })), t && (r = c(I.value.style.chart.labels.formatter, N.value.end, i({
691
- p: I.value.style.chart.labels.prefix,
692
- v: N.value.end,
693
- s: I.value.style.chart.labels.suffix,
694
- r: I.value.style.chart.labels.startLabels.rounding
695
- }), {
696
- datapoint: N.value,
697
- seriesIndex: M.value
698
- })), e && t ? `${n} → ${r}` : e && !t ? n : t && !e ? r : "";
699
- }), Wn = f(() => {
700
- let e = I.value.table.useDialog && !I.value.table.show, t = V.value.showTable;
701
- return {
702
- component: e ? At : Tt,
703
- title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
704
- props: e ? {
705
- backgroundColor: I.value.table.th.backgroundColor,
706
- color: I.value.table.th.color,
707
- headerColor: I.value.table.th.color,
708
- headerBg: I.value.table.th.backgroundColor,
709
- isFullscreen: Q.value,
710
- fullscreenParent: j.value,
711
- forcedWidth: Math.min(800, window.innerWidth * .8),
712
- isCursorPointer: L.value
713
- } : {
714
- hideDetails: !0,
715
- config: {
716
- open: t,
717
- maxHeight: 1e4,
718
- body: {
719
- backgroundColor: I.value.style.chart.backgroundColor,
720
- color: I.value.style.chart.color
721
- },
722
- head: {
723
- backgroundColor: I.value.style.chart.backgroundColor,
724
- color: I.value.style.chart.color
725
- }
726
- }
727
- }
728
- };
729
- });
730
- Ie(() => V.value.showTable, (e) => {
731
- I.value.table.show || (e && I.value.table.useDialog && Gt.value ? Gt.value.open() : "close" in Gt.value && Gt.value.close());
732
- });
733
- function Gn() {
734
- V.value.showTable = !1, Kt.value && Kt.value.setTableIconState(!1);
735
- }
736
- let Kn = f(() => En.value.map((e) => ({
737
- ...e,
738
- shape: "circle"
739
- }))), qn = f(() => I.value.style.chart.backgroundColor), Jn = f(() => I.value.style.chart.legend), { exportSvg: Yn, getSvg: Xn } = ue({
740
- svg: R,
741
- title: f(() => I.value.style.chart.title),
742
- legend: Jn,
743
- legendItems: Kn,
744
- backgroundColor: qn
745
- });
746
- async function Zn({ isCb: e }) {
747
- Jt.value = !0, await Oe();
748
- try {
749
- if (e) {
750
- let { blob: e, url: t, text: n, dataUrl: r } = await Xn();
751
- await Promise.resolve(I.value.userOptions.callbacks.svg({
752
- blob: e,
753
- url: t,
754
- text: n,
755
- dataUrl: r
756
- }));
757
- } else await Promise.resolve(Yn());
758
- } finally {
759
- Jt.value = !1;
760
- }
761
- }
762
- function Qn(e) {
763
- if (e?.stage === "start") {
764
- qt.value = !0;
765
- return;
766
- }
767
- if (e?.stage === "end") {
768
- qt.value = !1;
769
- return;
770
- }
771
- mn();
772
- }
773
- async function $n() {
774
- if (Pt("copyAlt", {
775
- config: I.value,
776
- dataset: J.value
777
- }), !I.value.userOptions.callbacks.altCopy) {
778
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
779
- return;
780
- }
781
- await Promise.resolve(I.value.userOptions.callbacks.altCopy({
782
- config: I.value,
783
- dataset: J.value
784
- }));
785
- }
786
- function er(e) {
787
- let t = J.value.length;
788
- return t ? (e % t + t) % t : null;
789
- }
790
- function tr() {
791
- if (P.value !== null) {
792
- let e = J.value[P.value];
793
- e && Bn({
794
- datapoint: e,
795
- seriesIndex: P.value
796
- });
797
- }
798
- P.value = null, M.value = null, N.value = null;
799
- }
800
- function nr() {
801
- P.value = null, $t.value = !0;
802
- }
803
- function rr() {
804
- tr(), $t.value = !1;
805
- }
806
- function ir(e) {
807
- if (!R.value || Mn.value || document.activeElement !== R.value || !J.value.length) return;
808
- let t = ["ArrowUp", "ArrowLeft"].includes(e.key), n = ["ArrowDown", "ArrowRight"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
809
- if (!t && !n && !r && !i) return;
810
- if (e.preventDefault(), e.stopPropagation(), i) {
811
- tr();
812
- return;
813
- }
814
- if (r) {
815
- if (P.value === null) return;
816
- let e = J.value[P.value];
817
- if (!e) return;
818
- Vn({
819
- datapoint: e,
820
- seriesIndex: P.value
821
- });
822
- return;
823
- }
824
- let a = P.value;
825
- a = a === null ? n ? 0 : J.value.length - 1 : er(a + (n ? 1 : -1));
826
- let o = J.value[a];
827
- o && (P.value = a, zn({
828
- datapoint: o,
829
- seriesIndex: a
830
- }));
831
- }
832
- let $ = f(() => ({
833
- head: Z.value.head,
834
- body: Z.value.body.map((e) => [
835
- e[0]?.name ?? "",
836
- e[1],
837
- e[2],
838
- e[3]
839
- ]),
840
- caption: I.value.a11y.translations.tableCaption,
841
- notice: I.value.a11y.translations.tableAvailable
842
- }));
843
- return ge({
844
- getData: An,
845
- getImage: Pn,
846
- generatePdf: pn,
847
- generateCsv: On,
848
- generateImage: mn,
849
- generateSvg: Zn,
850
- toggleTable: jn,
851
- toggleAnnotator: Nn,
852
- toggleFullscreen: kn,
853
- copyAlt: $n
854
- }), (e, t) => (S(), h("div", {
855
- ref_key: "dumbbellChart",
856
- ref: j,
857
- class: ke(`vue-data-ui-component vue-ui-dumbbell ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
858
- style: x(`font-family:${I.value.style.fontFamily};width:100%; text-align:center;background:${I.value.style.chart.backgroundColor};${I.value.responsive ? "height:100%" : ""}`),
859
- id: `dumbbell_${A.value}`,
860
- onMouseenter: t[1] ||= () => D(on)(!0),
861
- onMouseleave: t[2] ||= () => D(on)(!1)
862
- }, [
863
- g("div", {
864
- id: `chart-instructions-${A.value}`,
865
- class: "sr-only"
866
- }, [g("p", null, E(I.value.a11y.translations.keyboardNavigation), 1)], 8, Ve),
867
- $.value.body.length ? (S(), p(ye, {
868
- key: 0,
869
- uid: A.value,
870
- head: $.value.head,
871
- body: $.value.body,
872
- caption: $.value.caption,
873
- notice: $.value.notice
874
- }, null, 8, [
875
- "uid",
876
- "head",
877
- "body",
878
- "caption",
879
- "notice"
880
- ])) : m("", !0),
881
- I.value.userOptions.buttons.annotator ? (S(), p(D(Dt), {
882
- key: 1,
883
- svgRef: D(R),
884
- backgroundColor: I.value.style.chart.backgroundColor,
885
- color: I.value.style.chart.color,
886
- active: Mn.value,
887
- isCursorPointer: L.value,
888
- onClose: Nn
889
- }, {
890
- "annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
891
- "annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", b(y({ color: t })), void 0, !0)]),
892
- "annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", b(y({ mode: t })), void 0, !0)]),
893
- "annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", b(y({ disabled: t })), void 0, !0)]),
894
- "annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", b(y({ disabled: t })), void 0, !0)]),
895
- "annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", b(y({ disabled: t })), void 0, !0)]),
896
- _: 3
897
- }, 8, [
898
- "svgRef",
899
- "backgroundColor",
900
- "color",
901
- "active",
902
- "isCursorPointer"
903
- ])) : m("", !0),
904
- hn.value ? (S(), h("div", {
905
- key: 2,
906
- ref_key: "noTitle",
907
- ref: Bt,
908
- class: "vue-data-ui-no-title-space",
909
- style: "height:36px; width: 100%;background:transparent"
910
- }, null, 512)) : m("", !0),
911
- I.value.style.chart.title.text ? (S(), h("div", {
912
- key: 3,
913
- ref_key: "chartTitle",
914
- ref: Lt,
915
- style: "width:100%;background:transparent;padding-bottom:24px"
916
- }, [(S(), p(he, {
917
- key: `title_${Vt.value}`,
918
- config: {
919
- title: {
920
- cy: "donut-div-title",
921
- ...I.value.style.chart.title
922
- },
923
- subtitle: {
924
- cy: "donut-div-subtitle",
925
- ...I.value.style.chart.title.subtitle
926
- }
927
- }
928
- }, null, 8, ["config"]))], 512)) : m("", !0),
929
- g("div", { id: `legend-top-${A.value}` }, null, 8, He),
930
- I.value.userOptions.show && Ft.value && (D(sn) || D(an)) ? (S(), p(D(Ot), {
931
- ref_key: "userOptionsRef",
932
- ref: Kt,
933
- key: `user_option_${It.value}`,
934
- backgroundColor: I.value.style.chart.backgroundColor,
935
- color: I.value.style.chart.color,
936
- isPrinting: D(dn),
937
- isImaging: D(fn),
938
- uid: A.value,
939
- hasPdf: I.value.userOptions.buttons.pdf,
940
- hasXls: I.value.userOptions.buttons.csv,
941
- hasImg: I.value.userOptions.buttons.img,
942
- hasSvg: I.value.userOptions.buttons.svg,
943
- hasTable: I.value.userOptions.buttons.table,
944
- hasFullscreen: I.value.userOptions.buttons.fullscreen,
945
- hasAltCopy: I.value.userOptions.buttons.altCopy,
946
- isFullscreen: Q.value,
947
- titles: { ...I.value.userOptions.buttonTitles },
948
- chartElement: j.value,
949
- position: I.value.userOptions.position,
950
- hasAnnotator: I.value.userOptions.buttons.annotator,
951
- isAnnotation: Mn.value,
952
- callbacks: I.value.userOptions.callbacks,
953
- printScale: I.value.userOptions.print.scale,
954
- tableDialog: I.value.table.useDialog,
955
- isCursorPointer: L.value,
956
- onToggleFullscreen: kn,
957
- onGeneratePdf: D(pn),
958
- onGenerateCsv: On,
959
- onGenerateImage: Qn,
960
- onGenerateSvg: Zn,
961
- onToggleTable: jn,
962
- onToggleAnnotator: Nn,
963
- onCopyAlt: $n,
964
- style: x({ visibility: D(sn) ? D(an) ? "visible" : "hidden" : "visible" })
965
- }, Te({ _: 2 }, [
966
- e.$slots.menuIcon ? {
967
- name: "menuIcon",
968
- fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", b(y({
969
- isOpen: t,
970
- color: n
971
- })), void 0, !0)]),
972
- key: "0"
973
- } : void 0,
974
- e.$slots.optionPdf ? {
975
- name: "optionPdf",
976
- fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
977
- key: "1"
978
- } : void 0,
979
- e.$slots.optionCsv ? {
980
- name: "optionCsv",
981
- fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
982
- key: "2"
983
- } : void 0,
984
- e.$slots.optionImg ? {
985
- name: "optionImg",
986
- fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
987
- key: "3"
988
- } : void 0,
989
- e.$slots.optionSvg ? {
990
- name: "optionSvg",
991
- fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
992
- key: "4"
993
- } : void 0,
994
- e.$slots.optionTable ? {
995
- name: "optionTable",
996
- fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
997
- key: "5"
998
- } : void 0,
999
- e.$slots.optionFullscreen ? {
1000
- name: "optionFullscreen",
1001
- fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", b(y({
1002
- toggleFullscreen: t,
1003
- isFullscreen: n
1004
- })), void 0, !0)]),
1005
- key: "6"
1006
- } : void 0,
1007
- e.$slots.optionAnnotator ? {
1008
- name: "optionAnnotator",
1009
- fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", b(y({
1010
- toggleAnnotator: t,
1011
- isAnnotator: n
1012
- })), void 0, !0)]),
1013
- key: "7"
1014
- } : void 0,
1015
- e.$slots.optionAltCopy ? {
1016
- name: "optionAltCopy",
1017
- fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", b(y({ altCopy: t })), void 0, !0)]),
1018
- key: "8"
1019
- } : void 0,
1020
- e.$slots["custom-menu-before"] ? {
1021
- name: "custom-menu-before",
1022
- fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1023
- key: "9"
1024
- } : void 0,
1025
- e.$slots["custom-menu-after"] ? {
1026
- name: "custom-menu-after",
1027
- fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1028
- key: "10"
1029
- } : void 0
1030
- ]), 1032, [
1031
- "backgroundColor",
1032
- "color",
1033
- "isPrinting",
1034
- "isImaging",
1035
- "uid",
1036
- "hasPdf",
1037
- "hasXls",
1038
- "hasImg",
1039
- "hasSvg",
1040
- "hasTable",
1041
- "hasFullscreen",
1042
- "hasAltCopy",
1043
- "isFullscreen",
1044
- "titles",
1045
- "chartElement",
1046
- "position",
1047
- "hasAnnotator",
1048
- "isAnnotation",
1049
- "callbacks",
1050
- "printScale",
1051
- "tableDialog",
1052
- "isCursorPointer",
1053
- "onGeneratePdf",
1054
- "style"
1055
- ])) : m("", !0),
1056
- g("div", Ue, [(S(), h("svg", {
1057
- ref_key: "svgRef",
1058
- ref: R,
1059
- xmlns: D(ie),
1060
- class: ke({
1061
- "vue-data-ui-fullscreen--on": Q.value,
1062
- "vue-data-ui-fulscreen--off": !Q.value
1063
- }),
1064
- viewBox: `0 0 ${G.value} ${K.value.absoluteHeight <= 0 ? 10 : K.value.absoluteHeight}`,
1065
- style: x(`max-width:100%; overflow: visible; background:transparent;color:${I.value.style.chart.color}`),
1066
- "aria-describedby": `chart-instructions-${A.value}`,
1067
- tabindex: "0",
1068
- onFocus: nr,
1069
- onBlur: rr,
1070
- onKeydown: ir
1071
- }, [
1072
- _(D(kt)),
1073
- e.$slots["chart-background"] ? (S(), h("foreignObject", {
1074
- key: 0,
1075
- x: K.value.left,
1076
- y: K.value.top,
1077
- width: Math.max(.1, K.value.width),
1078
- height: Math.max(.1, K.value.height),
1079
- style: { pointerEvents: "none" }
1080
- }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Ge)) : m("", !0),
1081
- I.value.style.chart.grid.verticalGrid.show ? (S(), h("g", Ke, [(S(!0), h(d, null, w(U.value.ticks, (e, t) => (S(), h("line", {
1082
- x1: K.value.left + t * K.value.width / (U.value.ticks.length - 1),
1083
- x2: K.value.left + t * K.value.width / (U.value.ticks.length - 1),
1084
- y1: K.value.top,
1085
- y2: K.value.bottom,
1086
- stroke: I.value.style.chart.grid.verticalGrid.stroke,
1087
- "stroke-width": I.value.style.chart.grid.verticalGrid.strokeWidth,
1088
- "stroke-dasharray": I.value.style.chart.grid.verticalGrid.strokeDasharray
1089
- }, null, 8, qe))), 256))])) : m("", !0),
1090
- I.value.style.chart.grid.horizontalGrid.show ? (S(), h("g", Je, [(S(!0), h(d, null, w(H.value, (e, t) => (S(), h("line", {
1091
- x1: K.value.left,
1092
- x2: K.value.right,
1093
- y1: K.value.top + t * K.value.rowHeight,
1094
- y2: K.value.top + t * K.value.rowHeight,
1095
- stroke: I.value.style.chart.grid.horizontalGrid.stroke,
1096
- "stroke-width": I.value.style.chart.grid.horizontalGrid.strokeWidth,
1097
- "stroke-dasharray": I.value.style.chart.grid.horizontalGrid.strokeDasharray
1098
- }, null, 8, Ye))), 256)), g("line", {
1099
- x1: K.value.left,
1100
- x2: K.value.right,
1101
- y1: K.value.bottom,
1102
- y2: K.value.bottom,
1103
- stroke: I.value.style.chart.grid.horizontalGrid.stroke,
1104
- "stroke-width": I.value.style.chart.grid.horizontalGrid.strokeWidth,
1105
- "stroke-dasharray": I.value.style.chart.grid.horizontalGrid.strokeDasharray
1106
- }, null, 8, Xe)])) : m("", !0),
1107
- I.value.style.chart.labels.axis.yLabel ? (S(), h("text", {
1108
- key: 3,
1109
- ref_key: "yAxisLabel",
1110
- ref: Yt,
1111
- transform: `translate(${I.value.style.chart.labels.axis.fontSize}, ${K.value.absoluteHeight / 2}), rotate(-90)`,
1112
- "font-size": I.value.style.chart.labels.axis.fontSize,
1113
- fill: I.value.style.chart.labels.axis.color,
1114
- "text-anchor": "middle"
1115
- }, E(I.value.style.chart.labels.axis.yLabel), 9, Ze)) : m("", !0),
1116
- I.value.style.chart.labels.yAxisLabels.show ? (S(), h("g", {
1117
- key: 4,
1118
- ref_key: "serieLabels",
1119
- ref: Xt
1120
- }, [(S(!0), h(d, null, w(J.value, (e, t) => (S(), h("text", {
1121
- class: "vue-ui-dumbbell-serie-name",
1122
- key: `serieLabel_${e.id}_${t}`,
1123
- x: K.value.left - 6 + I.value.style.chart.labels.yAxisLabels.offsetX,
1124
- y: K.value.top + t * K.value.rowHeight + (!I.value.style.chart.labels.yAxisLabels.showProgression || F.value ? K.value.rowHeight / 2 : K.value.rowHeight / 3) + I.value.style.chart.labels.yAxisLabels.fontSize / 3,
1125
- "font-size": I.value.style.chart.labels.yAxisLabels.fontSize,
1126
- fill: I.value.style.chart.labels.yAxisLabels.color,
1127
- "font-weight": I.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
1128
- "text-anchor": "end",
1129
- onMouseenter: (n) => zn({
1130
- datapoint: e,
1131
- seriesIndex: t
1132
- }),
1133
- onMouseleave: (n) => Bn({
1134
- datapoint: e,
1135
- seriesIndex: t
1136
- }),
1137
- onClick: (n) => Vn({
1138
- datapoint: e,
1139
- seriesIndex: t
1140
- })
1141
- }, E(e.name) + " " + E(F.value && I.value.style.chart.labels.yAxisLabels.showProgression ? [null, void 0].includes(e.start) || [null, void 0].includes(e.end) ? "" : `(${D(c)(I.value.style.chart.labels.yAxisLabels.formatter, 100 * (e.end / e.start - 1), D(i)({
1142
- v: 100 * (e.end / e.start - 1),
1143
- s: "%",
1144
- r: I.value.style.chart.labels.yAxisLabels.rounding
1145
- }), { datapoint: e })})` : ""), 41, Qe))), 128)), I.value.style.chart.labels.yAxisLabels.showProgression && !F.value ? (S(!0), h(d, { key: 0 }, w(J.value, (e, t) => (S(), h("text", {
1146
- class: "vue-ui-dumbbell-serie-value",
1147
- x: K.value.left - 6 + I.value.style.chart.labels.yAxisLabels.offsetX,
1148
- y: K.value.top + t * K.value.rowHeight + K.value.rowHeight / 1.3 + I.value.style.chart.labels.yAxisLabels.fontSize / 3,
1149
- "font-size": I.value.style.chart.labels.yAxisLabels.fontSize,
1150
- fill: I.value.style.chart.labels.yAxisLabels.color,
1151
- "text-anchor": "end",
1152
- onMouseenter: (n) => zn({
1153
- datapoint: e,
1154
- seriesIndex: t
1155
- }),
1156
- onMouseleave: (n) => Bn({
1157
- datapoint: e,
1158
- seriesIndex: t
1159
- }),
1160
- onClick: (n) => Vn({
1161
- datapoint: e,
1162
- seriesIndex: t
1163
- })
1164
- }, E([null, void 0].includes(e.start) || [null, void 0].includes(e.end) ? "" : D(c)(I.value.style.chart.labels.yAxisLabels.formatter, 100 * (e.end / e.start - 1), D(i)({
1165
- v: 100 * (e.end / e.start - 1),
1166
- s: "%",
1167
- r: I.value.style.chart.labels.yAxisLabels.rounding
1168
- }), { datapoint: e })), 41, $e))), 256)) : m("", !0)], 512)) : m("", !0),
1169
- I.value.style.chart.labels.axis.xLabel ? (S(), h("text", {
1170
- key: 5,
1171
- ref_key: "xAxisLabel",
1172
- ref: Qt,
1173
- x: K.value.left + K.value.width / 2,
1174
- y: K.value.absoluteHeight - I.value.style.chart.labels.axis.fontSize / 3,
1175
- "font-size": I.value.style.chart.labels.axis.fontSize,
1176
- fill: I.value.style.chart.labels.axis.color,
1177
- "text-anchor": "middle"
1178
- }, E(I.value.style.chart.labels.axis.xLabel), 9, et)) : m("", !0),
1179
- I.value.style.chart.labels.xAxisLabels.show ? (S(), h("g", {
1180
- key: 6,
1181
- ref_key: "scaleLabels",
1182
- ref: Zt
1183
- }, [(S(!0), h(d, null, w(U.value.ticks, (e, t) => (S(), h("text", {
1184
- class: "vue-ui-dumbbell-scale-label",
1185
- key: `tick_${t}`,
1186
- transform: `translate(${K.value.left + t * (K.value.width / (U.value.ticks.length - 1))}, ${K.value.bottom + I.value.style.chart.labels.xAxisLabels.fontSize + I.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${I.value.style.chart.labels.xAxisLabels.rotation})`,
1187
- "font-size": I.value.style.chart.labels.xAxisLabels.fontSize,
1188
- fill: I.value.style.chart.labels.xAxisLabels.color,
1189
- "font-weight": I.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
1190
- "text-anchor": I.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : I.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
1191
- }, E(D(c)(I.value.style.chart.labels.formatter, e, D(i)({
1192
- p: I.value.style.chart.labels.prefix,
1193
- v: e,
1194
- s: I.value.style.chart.labels.suffix,
1195
- r: I.value.style.chart.labels.xAxisLabels.rounding
1196
- }), {
1197
- datapoint: e,
1198
- seriesIndex: t
1199
- })), 9, tt))), 128))], 512)) : m("", !0),
1200
- Re(g("g", null, [
1201
- Re(g("path", {
1202
- d: `M ${N.value ? N.value.startX : K.value.left},${K.value.top} ${N.value ? N.value.startX : K.value.left},${K.value.bottom}`,
1203
- stroke: N.value ? I.value.style.chart.plots.evaluationColors.enable ? N.value.evaluationColor : I.value.style.chart.plots.startColor : "transparent",
1204
- "stroke-width": I.value.style.chart.comparisonLines.strokeWidth,
1205
- "stroke-dasharray": I.value.style.chart.comparisonLines.strokeDasharray,
1206
- style: { transition: "all 0.3s ease-in-out" }
1207
- }, null, 8, nt), [[Fe, N.value !== null && ![null, void 0].includes(N.value.start)]]),
1208
- Re(g("path", {
1209
- d: `M ${N.value ? N.value.endX : K.value.left},${K.value.top} ${N.value ? N.value.endX : K.value.left},${K.value.bottom}`,
1210
- stroke: N.value ? I.value.style.chart.plots.evaluationColors.enable ? N.value.evaluationColor : I.value.style.chart.plots.endColor : "transparent",
1211
- "stroke-width": I.value.style.chart.comparisonLines.strokeWidth,
1212
- "stroke-dasharray": I.value.style.chart.comparisonLines.strokeDasharray,
1213
- style: { transition: "all 0.3s ease-in-out" }
1214
- }, null, 8, rt), [[Fe, N.value !== null && ![null, void 0].includes(N.value.end)]]),
1215
- Re(g("rect", {
1216
- x: N.value ? Math.min(N.value.startX, N.value.endX) : K.value.left,
1217
- y: K.value.top,
1218
- height: Math.max(.1, K.value.height),
1219
- width: N.value ? Math.max(.1, Math.abs(N.value.endX - N.value.startX)) : 0,
1220
- fill: N.value ? D(o)(I.value.style.chart.comparisonLines.rectColor, I.value.style.chart.comparisonLines.rectOpacity) : "transparent",
1221
- style: { transition: "all 0.3s ease-in-out" }
1222
- }, null, 8, it), [[Fe, I.value.style.chart.comparisonLines.showRect && N.value !== null && ![null, void 0].includes(N.value.start) && ![null, void 0].includes(N.value.end)]]),
1223
- Re(g("text", {
1224
- transform: `translate(${Hn.value == null ? 0 : Hn.value}, ${K.value.top - 6})`,
1225
- fill: I.value.style.chart.comparisonLines.labelColor,
1226
- "font-size": I.value.style.chart.comparisonLines.labelFontSize,
1227
- "text-anchor": "middle",
1228
- style: { transition: "all 0.3s ease-in-out" }
1229
- }, E(Un.value), 9, at), [[Fe, N.value !== null && Hn.value !== null && I.value.style.chart.comparisonLines.showLabel]])
1230
- ], 512), [[Fe, I.value.style.chart.comparisonLines.show && M.value !== null]]),
1231
- g("defs", null, [
1232
- _(u, {
1233
- t: "radial",
1234
- id: `start_grad_${A.value}`,
1235
- fy: "30%",
1236
- stops: [
1237
- [
1238
- "10%",
1239
- D(n)(I.value.style.chart.plots.startColor, I.value.style.chart.plots.gradient.intensity / 100),
1240
- 1
1241
- ],
1242
- [
1243
- "90%",
1244
- D(l)(I.value.style.chart.plots.startColor, .1),
1245
- 1
1246
- ],
1247
- [
1248
- "100%",
1249
- I.value.style.chart.plots.startColor,
1250
- 1
1251
- ]
1252
- ]
1253
- }, null, 8, ["id", "stops"]),
1254
- _(u, {
1255
- t: "radial",
1256
- id: `end_grad_${A.value}`,
1257
- fy: "30%",
1258
- stops: [
1259
- [
1260
- "10%",
1261
- D(n)(I.value.style.chart.plots.endColor, I.value.style.chart.plots.gradient.intensity / 100),
1262
- 1
1263
- ],
1264
- [
1265
- "90%",
1266
- D(l)(I.value.style.chart.plots.endColor, .1),
1267
- 1
1268
- ],
1269
- [
1270
- "100%",
1271
- I.value.style.chart.plots.endColor,
1272
- 1
1273
- ]
1274
- ]
1275
- }, null, 8, ["id", "stops"]),
1276
- _(u, {
1277
- t: "radial",
1278
- id: `positive_grad_${A.value}`,
1279
- fy: "30%",
1280
- stops: [
1281
- [
1282
- "10%",
1283
- D(n)(I.value.style.chart.plots.evaluationColors.positive, I.value.style.chart.plots.gradient.intensity / 100),
1284
- 1
1285
- ],
1286
- [
1287
- "90%",
1288
- D(l)(I.value.style.chart.plots.evaluationColors.positive, .1),
1289
- 1
1290
- ],
1291
- [
1292
- "100%",
1293
- I.value.style.chart.plots.evaluationColors.positive,
1294
- 1
1295
- ]
1296
- ]
1297
- }, null, 8, ["id", "stops"]),
1298
- _(u, {
1299
- t: "radial",
1300
- id: `negative_grad_${A.value}`,
1301
- fy: "30%",
1302
- stops: [
1303
- [
1304
- "10%",
1305
- D(n)(I.value.style.chart.plots.evaluationColors.negative, I.value.style.chart.plots.gradient.intensity / 100),
1306
- 1
1307
- ],
1308
- [
1309
- "90%",
1310
- D(l)(I.value.style.chart.plots.evaluationColors.negative, .1),
1311
- 1
1312
- ],
1313
- [
1314
- "100%",
1315
- I.value.style.chart.plots.evaluationColors.negative,
1316
- 1
1317
- ]
1318
- ]
1319
- }, null, 8, ["id", "stops"]),
1320
- _(u, {
1321
- t: "radial",
1322
- id: `neutral_grad_${A.value}`,
1323
- fy: "30%",
1324
- stops: [
1325
- [
1326
- "10%",
1327
- D(n)(I.value.style.chart.plots.evaluationColors.neutral, I.value.style.chart.plots.gradient.intensity / 100),
1328
- 1
1329
- ],
1330
- [
1331
- "90%",
1332
- D(l)(I.value.style.chart.plots.evaluationColors.neutral, .1),
1333
- 1
1334
- ],
1335
- [
1336
- "100%",
1337
- I.value.style.chart.plots.evaluationColors.neutral,
1338
- 1
1339
- ]
1340
- ]
1341
- }, null, 8, ["id", "stops"])
1342
- ]),
1343
- (S(!0), h(d, null, w(J.value, (e, t) => (S(), h("g", { key: `plot_${t}_${e.id}` }, [
1344
- g("defs", null, [_(u, {
1345
- t: "linear",
1346
- id: `grad_pos_${A.value}`,
1347
- x1: "0%",
1348
- x2: "100%",
1349
- y1: "0%",
1350
- y2: "0%",
1351
- stops: [[
1352
- "0%",
1353
- I.value.style.chart.plots.startColor,
1354
- 1
1355
- ], [
1356
- "100%",
1357
- I.value.style.chart.plots.endColor,
1358
- 1
1359
- ]]
1360
- }, null, 8, ["id", "stops"]), _(u, {
1361
- t: "linear",
1362
- id: `grad_neg_${A.value}`,
1363
- x1: "0%",
1364
- x2: "100%",
1365
- y1: "0%",
1366
- y2: "0%",
1367
- stops: [[
1368
- "0%",
1369
- I.value.style.chart.plots.endColor,
1370
- 1
1371
- ], [
1372
- "100%",
1373
- I.value.style.chart.plots.startColor,
1374
- 1
1375
- ]]
1376
- }, null, 8, ["id", "stops"])]),
1377
- ![void 0, null].includes(e.end) && ![void 0, null].includes(e.start) ? (S(), h("g", ot, [I.value.style.chart.plots.link.type === "curved" ? (S(), h("g", st, [g("path", {
1378
- d: `M
1379
- ${e.startX},${e.y + q.value / 2}
1380
- C ${e.centerX},${e.y} ${e.centerX},${e.y}
1381
- ${e.endX},${e.y + q.value / 2}
1382
- L ${e.endX},${e.y - q.value / 2}
1383
- C ${e.centerX},${e.y} ${e.centerX},${e.y}
1384
- ${e.startX},${e.y - q.value / 2}
1385
- Z
1386
- `,
1387
- fill: I.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : e.endX > e.startX ? `url(#grad_pos_${A.value})` : `url(#grad_neg_${A.value})`
1388
- }, null, 8, ct)])) : (S(), h("g", lt, [g("rect", {
1389
- x: e.endX > e.startX ? e.startX : e.endX,
1390
- y: e.y - I.value.style.chart.plots.link.strokeWidth / 2,
1391
- height: Math.max(.01, I.value.style.chart.plots.link.strokeWidth),
1392
- width: Math.max(.01, Math.abs(e.endX - e.startX)),
1393
- fill: I.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : e.endX > e.startX ? `url(#grad_pos_${A.value})` : `url(#grad_neg_${A.value})`
1394
- }, null, 8, ut)]))])) : m("", !0),
1395
- [null, void 0].includes(e.start) ? m("", !0) : (S(), h("circle", {
1396
- key: 1,
1397
- cx: e.startX,
1398
- cy: e.y,
1399
- r: q.value,
1400
- fill: I.value.style.chart.plots.gradient.show ? I.value.style.chart.plots.evaluationColors.enable ? e.evaluationGrad : `url(#start_grad_${A.value})` : I.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : I.value.style.chart.plots.startColor,
1401
- stroke: I.value.style.chart.plots.stroke,
1402
- "stroke-width": I.value.style.chart.plots.strokeWidth
1403
- }, null, 8, dt)),
1404
- [null, void 0].includes(e.end) ? m("", !0) : (S(), h("circle", {
1405
- key: 2,
1406
- cx: e.endX,
1407
- cy: e.y,
1408
- r: q.value,
1409
- fill: I.value.style.chart.plots.gradient.show ? I.value.style.chart.plots.evaluationColors.enable ? e.evaluationGrad : `url(#end_grad_${A.value})` : I.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : I.value.style.chart.plots.endColor,
1410
- stroke: I.value.style.chart.plots.stroke,
1411
- "stroke-width": I.value.style.chart.plots.strokeWidth
1412
- }, null, 8, ft))
1413
- ]))), 128)),
1414
- I.value.style.chart.labels.startLabels.show ? (S(), h("g", pt, [(S(!0), h(d, null, w(J.value, (e, t) => (S(), h("g", { key: `start_label_${t}_${e.id}` }, [[null, void 0].includes(e.start) ? m("", !0) : (S(), h("text", {
1415
- key: 0,
1416
- x: e.startX,
1417
- y: e.y + q.value * 2 + I.value.style.chart.labels.startLabels.fontSize / 2,
1418
- fill: I.value.style.chart.plots.evaluationColors.enable && I.value.style.chart.labels.startLabels.useEvaluationColor ? e.evaluationColor : I.value.style.chart.labels.startLabels.useStartColor ? I.value.style.chart.plots.startColor : I.value.style.chart.labels.startLabels.color,
1419
- "font-size": I.value.style.chart.labels.startLabels.fontSize,
1420
- "text-anchor": "middle"
1421
- }, E(D(c)(I.value.style.chart.labels.formatter, e.start, D(i)({
1422
- p: I.value.style.chart.labels.prefix,
1423
- v: e.start,
1424
- s: I.value.style.chart.labels.suffix,
1425
- r: I.value.style.chart.labels.startLabels.rounding
1426
- }), {
1427
- datapoint: e,
1428
- seriesIndex: t
1429
- })), 9, mt))]))), 128))])) : m("", !0),
1430
- I.value.style.chart.labels.endLabels.show ? (S(), h("g", ht, [(S(!0), h(d, null, w(J.value, (e, t) => (S(), h("g", { key: `end_label_${t}_${e.id}` }, [[null, void 0].includes(e.end) ? m("", !0) : (S(), h("text", {
1431
- key: 0,
1432
- x: e.endX,
1433
- y: e.y - (q.value * 2 - I.value.style.chart.labels.startLabels.fontSize / 3),
1434
- fill: I.value.style.chart.plots.evaluationColors.enable && I.value.style.chart.labels.endLabels.useEvaluationColor ? e.evaluationColor : I.value.style.chart.labels.endLabels.useEndColor ? I.value.style.chart.plots.endColor : I.value.style.chart.labels.endLabels.color,
1435
- "font-size": I.value.style.chart.labels.endLabels.fontSize,
1436
- "text-anchor": "middle"
1437
- }, E(D(c)(I.value.style.chart.labels.formatter, e.end, D(i)({
1438
- p: I.value.style.chart.labels.prefix,
1439
- v: e.end,
1440
- s: I.value.style.chart.labels.suffix,
1441
- r: I.value.style.chart.labels.endLabels.rounding
1442
- }), {
1443
- datapoint: e,
1444
- seriesIndex: t
1445
- })), 9, gt))]))), 128))])) : m("", !0),
1446
- g("g", null, [(S(!0), h(d, null, w(J.value, (e, t) => (S(), h("rect", {
1447
- x: K.value.left,
1448
- y: K.value.top + t * Math.max(.1, K.value.rowHeight),
1449
- width: Math.max(.1, K.value.width),
1450
- height: Math.max(.1, K.value.rowHeight),
1451
- fill: M.value === null ? "transparent" : M.value === t ? D(o)(I.value.style.chart.highlighter.color, I.value.style.chart.highlighter.opacity) : "transparent",
1452
- onMouseenter: (n) => zn({
1453
- datapoint: e,
1454
- seriesIndex: t
1455
- }),
1456
- onMouseleave: (n) => Bn({
1457
- datapoint: e,
1458
- seriesIndex: t
1459
- }),
1460
- onClick: (n) => Vn({
1461
- datapoint: e,
1462
- seriesIndex: t
1463
- })
1464
- }, null, 40, _t))), 256))]),
1465
- T(e.$slots, "svg", { svg: {
1466
- ...K.value,
1467
- isPrintingImg: D(dn) || D(fn) || qt.value,
1468
- isPrintingSvg: Jt.value
1469
- } }, void 0, !0)
1470
- ], 46, We)), e.$slots.hint ? (S(), h("div", vt, [T(e.$slots, "hint", b(y({
1471
- hint: I.value.a11y.translations.keyboardNavigation,
1472
- isVisible: $t.value
1473
- })), void 0, !0)])) : m("", !0)]),
1474
- e.$slots.watermark ? (S(), h("div", yt, [T(e.$slots, "watermark", b(y({ isPrinting: D(dn) || D(fn) || qt.value || Jt.value })), void 0, !0)])) : m("", !0),
1475
- g("div", { id: `legend-bottom-${A.value}` }, null, 8, bt),
1476
- Wt.value && (I.value.style.chart.legend.show || e.$slots.legend) ? (S(), p(we, {
1477
- key: 6,
1478
- to: I.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
1479
- }, [g("div", {
1480
- ref_key: "chartLegend",
1481
- ref: Rt
1482
- }, [T(e.$slots, "legend", { legend: En.value }, () => [I.value.style.chart.legend.show && Ft.value ? (S(), p(Se, {
1483
- key: `legend_${Ut.value}`,
1484
- legendSet: En.value,
1485
- config: Dn.value,
1486
- clickable: !1
1487
- }, {
1488
- item: O(({ legend: e }) => [g("div", { style: x(`display:flex;align-items:center;gap:4px;font-size:${I.value.style.chart.legend.fontSize}px`) }, [(S(), h("svg", {
1489
- xmlns: D(ie),
1490
- viewBox: "0 0 20 20",
1491
- height: I.value.style.chart.legend.fontSize,
1492
- width: I.value.style.chart.legend.fontSize
1493
- }, [g("circle", {
1494
- cx: 10,
1495
- cy: 10,
1496
- r: 9,
1497
- fill: e.color
1498
- }, null, 8, St)], 8, xt)), D(tn) ? m("", !0) : (S(), h(d, { key: 0 }, [Ee(E(e.name), 1)], 64))], 4)]),
1499
- _: 1
1500
- }, 8, ["legendSet", "config"])) : m("", !0)], !0)], 512)], 8, ["to"])) : m("", !0),
1501
- e.$slots.source ? (S(), h("div", {
1502
- key: 7,
1503
- ref_key: "source",
1504
- ref: zt,
1505
- dir: "auto"
1506
- }, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
1507
- Ft.value && I.value.userOptions.buttons.table ? (S(), p(Me(Wn.value.component), De({ key: 8 }, Wn.value.props, {
1508
- ref_key: "tableUnit",
1509
- ref: Gt,
1510
- onClose: Gn
1511
- }), Te({
1512
- content: O(() => [(S(), p(D(Et), {
1513
- key: `table_${Ht.value}`,
1514
- colNames: Z.value.colNames,
1515
- head: Z.value.head,
1516
- body: Z.value.body,
1517
- config: Z.value.config,
1518
- title: I.value.table.useDialog ? "" : Wn.value.title,
1519
- withCloseButton: !I.value.table.useDialog,
1520
- isCursorPointer: L.value,
1521
- onClose: Gn
1522
- }, {
1523
- th: O(({ th: e }) => [g("div", {
1524
- innerHTML: e,
1525
- style: {
1526
- display: "flex",
1527
- "align-items": "center"
1528
- }
1529
- }, null, 8, Ct)]),
1530
- td: O(({ td: e }) => [Ee(E(e.name || e), 1)]),
1531
- _: 1
1532
- }, 8, [
1533
- "colNames",
1534
- "head",
1535
- "body",
1536
- "config",
1537
- "title",
1538
- "withCloseButton",
1539
- "isCursorPointer"
1540
- ]))]),
1541
- _: 2
1542
- }, [I.value.table.useDialog ? {
1543
- name: "title",
1544
- fn: O(() => [Ee(E(Wn.value.title), 1)]),
1545
- key: "0"
1546
- } : void 0, I.value.table.useDialog ? {
1547
- name: "actions",
1548
- fn: O(() => [g("button", {
1549
- tabindex: "0",
1550
- class: "vue-ui-user-options-button",
1551
- onClick: t[0] ||= (e) => On(I.value.userOptions.callbacks.csv),
1552
- style: x({ cursor: L.value ? "pointer" : "default" })
1553
- }, [_(D(wt), {
1554
- name: "fileCsv",
1555
- stroke: Wn.value.props.color
1556
- }, null, 8, ["stroke"])], 4)]),
1557
- key: "1"
1558
- } : void 0]), 1040)) : m("", !0),
1559
- T(e.$slots, "skeleton", {}, () => [D(tn) ? (S(), p(le, { key: 0 })) : m("", !0)], !0)
1560
- ], 46, Be));
1561
- }
1562
- }, [["__scopeId", "data-v-b7471d7e"]]);
1563
- //#endregion
1564
- export { ze as n, wt as t };