vue-data-ui 3.25.4 → 3.25.6

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