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