vue-data-ui 3.25.5 → 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 (210) hide show
  1. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  2. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  3. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  4. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  5. package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
  6. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  7. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  8. package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  9. package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-ur6jKRL5.js} +1 -1
  10. package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
  11. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  12. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  13. package/dist/components/vue-ui-3d-bar.js +1 -1
  14. package/dist/components/vue-ui-accordion.js +1 -1
  15. package/dist/components/vue-ui-age-pyramid.js +1 -1
  16. package/dist/components/vue-ui-annotator.js +1 -1
  17. package/dist/components/vue-ui-bullet.js +1 -1
  18. package/dist/components/vue-ui-bump.js +1 -1
  19. package/dist/components/vue-ui-candlestick.js +1 -1
  20. package/dist/components/vue-ui-carousel-table.js +1 -1
  21. package/dist/components/vue-ui-chestnut.js +1 -1
  22. package/dist/components/vue-ui-chord.js +1 -1
  23. package/dist/components/vue-ui-circle-pack.js +1 -1
  24. package/dist/components/vue-ui-cursor.js +1 -1
  25. package/dist/components/vue-ui-dag.js +1 -1
  26. package/dist/components/vue-ui-dashboard.js +1 -1
  27. package/dist/components/vue-ui-digits.js +1 -1
  28. package/dist/components/vue-ui-donut-evolution.js +1 -1
  29. package/dist/components/vue-ui-donut.js +1 -1
  30. package/dist/components/vue-ui-dumbbell.js +1 -1
  31. package/dist/components/vue-ui-flow.js +1 -1
  32. package/dist/components/vue-ui-funnel.js +1 -1
  33. package/dist/components/vue-ui-galaxy.js +1 -1
  34. package/dist/components/vue-ui-gauge.js +1 -1
  35. package/dist/components/vue-ui-geo.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-hill.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-label.js +1 -1
  44. package/dist/components/vue-ui-mini-loader.js +1 -1
  45. package/dist/components/vue-ui-molecule.js +1 -1
  46. package/dist/components/vue-ui-mood-radar.js +1 -1
  47. package/dist/components/vue-ui-nested-donuts.js +1 -1
  48. package/dist/components/vue-ui-onion.js +1 -1
  49. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  50. package/dist/components/vue-ui-quadrant.js +1 -1
  51. package/dist/components/vue-ui-quick-chart.js +1 -1
  52. package/dist/components/vue-ui-radar.js +1 -1
  53. package/dist/components/vue-ui-rating.js +1 -1
  54. package/dist/components/vue-ui-relation-circle.js +1 -1
  55. package/dist/components/vue-ui-ridgeline.js +1 -1
  56. package/dist/components/vue-ui-rings.js +1 -1
  57. package/dist/components/vue-ui-scatter.js +1 -1
  58. package/dist/components/vue-ui-skeleton.js +1 -1
  59. package/dist/components/vue-ui-smiley.js +1 -1
  60. package/dist/components/vue-ui-spark-trend.js +1 -1
  61. package/dist/components/vue-ui-sparkbar.js +1 -1
  62. package/dist/components/vue-ui-sparkgauge.js +1 -1
  63. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  64. package/dist/components/vue-ui-sparkline.js +1 -1
  65. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  66. package/dist/components/vue-ui-stackbar.js +1 -1
  67. package/dist/components/vue-ui-stackline.js +1 -1
  68. package/dist/components/vue-ui-strip-plot.js +1 -1
  69. package/dist/components/vue-ui-table-heatmap.js +1 -1
  70. package/dist/components/vue-ui-table-sparkline.js +1 -1
  71. package/dist/components/vue-ui-table.js +1 -1
  72. package/dist/components/vue-ui-thermometer.js +1 -1
  73. package/dist/components/vue-ui-timer.js +1 -1
  74. package/dist/components/vue-ui-tiremarks.js +1 -1
  75. package/dist/components/vue-ui-treemap.js +1 -1
  76. package/dist/components/vue-ui-vertical-bar.js +1 -1
  77. package/dist/components/vue-ui-waffle.js +1 -1
  78. package/dist/components/vue-ui-wheel.js +1 -1
  79. package/dist/components/vue-ui-word-cloud.js +1 -1
  80. package/dist/components/vue-ui-world.js +1 -1
  81. package/dist/components/vue-ui-xy-canvas.js +1 -1
  82. package/dist/components/vue-ui-xy.js +1 -1
  83. package/dist/{package-ta2JoIjx.js → package-Dx7M6sYy.js} +1 -1
  84. package/dist/{render-common-bvOuxfN3.js → render-common-DETHvNhl.js} +1 -1
  85. package/dist/ssr/vue-ui-donut.js +1 -1
  86. package/dist/ssr/vue-ui-xy.js +1 -1
  87. package/dist/ssr.js +2 -2
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +10 -0
  90. package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
  91. package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
  92. package/dist/utils.js +1 -1
  93. package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-Dh3_EsHb.js} +70 -70
  94. package/dist/vue-data-ui.js +71 -71
  95. package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
  96. package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  97. package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
  98. package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
  99. package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
  100. package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DhwySwgn.js} +380 -380
  101. package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
  102. package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
  103. package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
  104. package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
  105. package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
  106. package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
  107. package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-C_inEafb.js} +792 -792
  108. package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-Bs2mBur5.js} +67 -67
  109. package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-DwE4MoXI.js} +2 -2
  110. package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
  111. package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-CbOSJmRu.js} +2 -2
  112. package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
  113. package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
  114. package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
  115. package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
  116. package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
  117. package/dist/vue-ui-gauge-DLDULH26.js +934 -0
  118. package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-DXIHhp-G.js} +429 -429
  119. package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-PuURiePo.js} +2 -2
  120. package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
  121. package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-DqsVJkmO.js} +470 -470
  122. package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
  123. package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +511 -511
  124. package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
  125. package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  126. package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  127. package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
  128. package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-Dd1qfUiu.js} +376 -376
  129. package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
  130. package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
  131. package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +407 -407
  132. package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
  133. package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BZq517pL.js} +4 -4
  134. package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
  135. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  136. package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
  137. package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
  138. package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
  139. package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
  140. package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
  141. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  142. package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
  143. package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
  144. package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
  145. package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
  146. package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
  147. package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
  148. package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
  149. package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
  150. package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
  151. package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  152. package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
  153. package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
  154. package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-D0_KsB-y.js} +192 -192
  155. package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-1Z2zginj.js} +153 -153
  156. package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
  157. package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
  158. package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
  159. package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
  160. package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
  161. package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-BOBHo7-L.js} +524 -524
  162. package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
  163. package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
  164. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  165. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  166. package/package.json +1 -1
  167. package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
  168. package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
  169. package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
  170. package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
  171. package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
  172. package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
  173. package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
  174. package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
  175. package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
  176. package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
  177. package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
  178. package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
  179. package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
  180. package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
  181. package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
  182. package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
  183. package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
  184. package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
  185. package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
  186. package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
  187. package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
  188. package/dist/vue-ui-rating-CBdDXL80.js +0 -359
  189. package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
  190. package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
  191. package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
  192. package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
  193. package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
  194. package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
  195. package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
  196. package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
  197. package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
  198. package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
  199. package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
  200. package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
  201. package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
  202. package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
  203. package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
  204. package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
  205. package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
  206. package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
  207. package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
  208. package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
  209. package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
  210. package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
@@ -0,0 +1,1630 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, D as n, G as r, Gt as i, Lt as a, N as ee, P as te, Pt as o, Q as ne, S as s, V as re, X as ie, Yt as ae, Zt as oe, _t as se, ht as ce, i as le, nt as ue, q as de, r as fe, t as pe, w as me } from "./lib-Dql7cqyA.js";
3
+ import { n as he, t as ge } from "./useHints-Dq_w2E8B.js";
4
+ import { t as _e } from "./useTimeLabels-d2f-W1L4.js";
5
+ import { t as ve } from "./useConfig-CIQZ6_r7.js";
6
+ import { t as ye } from "./usePrinter-DISD7q5m.js";
7
+ import { n as be, t as xe } from "./BaseScanner-DZvpgOjM.js";
8
+ import { t as Se } from "./useNestedProp-Chvyfpl-.js";
9
+ import { t as Ce } from "./useThemeCheck-C43Tcqmk.js";
10
+ import { t as we } from "./useChartExport-iwOqiIWX.js";
11
+ import { t as Te } from "./useTimeLabelCollider-AEcY4Ioe.js";
12
+ import { t as Ee } from "./img-DhGApYG0.js";
13
+ import { n as De } from "./Title-CPHi-evi.js";
14
+ import { t as Oe } from "./Shape-CIqU-p2F.js";
15
+ import { t as ke } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
+ import { l as Ae, t as je } from "./useResponsive-ZtArZtUf.js";
17
+ import { t as Me } from "./DefGrad-DVBqDjhO.js";
18
+ import { t as Ne } from "./BaseLegendToggle-CXQrLjd-.js";
19
+ import { t as Pe } from "./A11yDataTable-DdRsVULz.js";
20
+ import { t as Fe } from "./useUserOptionState-DK-_1ddE.js";
21
+ import { t as Ie } from "./useChartAccessibility-DYqac8yF.js";
22
+ import { t as Le } from "./Legend-X4kF4PvW.js";
23
+ import { t as Re } from "./vue_ui_ridgeline-VM8_mx4J.js";
24
+ import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as ze, createTextVNode as Be, createVNode as Ve, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as He, nextTick as Ue, normalizeClass as We, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as Ge, openBlock as v, ref as y, renderList as b, renderSlot as x, resolveDynamicComponent as Ke, shallowRef as qe, toDisplayString as S, toRefs as Je, unref as C, watch as Ye, watchEffect as Xe, withCtx as w } from "vue";
25
+ //#region src/components/vue-ui-ridgeline.vue
26
+ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et = { style: { position: "relative" } }, tt = [
27
+ "xmlns",
28
+ "aria-describedby",
29
+ "viewBox"
30
+ ], nt = { key: 0 }, rt = ["fill", "d"], it = [
31
+ "stroke",
32
+ "stroke-width",
33
+ "d"
34
+ ], at = ["fill", "d"], ot = [
35
+ "stroke",
36
+ "stroke-dasharray",
37
+ "stroke-width",
38
+ "d"
39
+ ], st = [
40
+ "x1",
41
+ "y1",
42
+ "x2",
43
+ "y2",
44
+ "stroke",
45
+ "stroke-width",
46
+ "stroke-dasharray"
47
+ ], ct = [
48
+ "cx",
49
+ "cy",
50
+ "stroke",
51
+ "stroke-width",
52
+ "r",
53
+ "fill"
54
+ ], lt = [
55
+ "x",
56
+ "y",
57
+ "font-size",
58
+ "font-weight",
59
+ "fill",
60
+ "text-decoration",
61
+ "onMouseenter",
62
+ "onClick"
63
+ ], ut = { key: 0 }, dt = [
64
+ "font-size",
65
+ "fill",
66
+ "stroke",
67
+ "font-weight",
68
+ "transform",
69
+ "text-anchor"
70
+ ], ft = [
71
+ "font-size",
72
+ "fill",
73
+ "font-weight",
74
+ "transform",
75
+ "text-anchor",
76
+ "innerHTML"
77
+ ], pt = [
78
+ "x",
79
+ "y",
80
+ "width",
81
+ "height",
82
+ "onMouseenter",
83
+ "onMouseleave",
84
+ "onClick"
85
+ ], mt = [
86
+ "x1",
87
+ "x2",
88
+ "y1",
89
+ "y2",
90
+ "stroke",
91
+ "stroke-width",
92
+ "stroke-dasharray"
93
+ ], ht = [
94
+ "cx",
95
+ "cy",
96
+ "stroke",
97
+ "stroke-width",
98
+ "r",
99
+ "fill"
100
+ ], gt = [
101
+ "x",
102
+ "y",
103
+ "stroke",
104
+ "text-anchor",
105
+ "font-size",
106
+ "fill"
107
+ ], _t = {
108
+ key: 0,
109
+ style: {
110
+ position: "absolute",
111
+ top: "100%",
112
+ left: "0",
113
+ width: "100%"
114
+ },
115
+ "data-dom-to-png-ignore": "",
116
+ "aria-hidden": "true"
117
+ }, vt = {
118
+ key: 5,
119
+ class: "vue-data-ui-watermark"
120
+ }, yt = ["onClick"], bt = /*#__PURE__*/ ke({
121
+ __name: "vue-ui-ridgeline",
122
+ props: {
123
+ config: {
124
+ type: Object,
125
+ default() {
126
+ return {};
127
+ }
128
+ },
129
+ dataset: {
130
+ type: Array,
131
+ default() {
132
+ return [];
133
+ }
134
+ }
135
+ },
136
+ emits: [
137
+ "selectLegend",
138
+ "selectDatapoint",
139
+ "selectX",
140
+ "copyAlt"
141
+ ],
142
+ setup(e, { expose: ke, emit: Ze }) {
143
+ let bt = m(() => import("./vue-ui-xy-CSTJzRkk.js").then((e) => e.n)), xt = m(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), St = m(() => import("./vue-ui-accordion-BSmBUjwZ.js").then((e) => e.n)), Ct = m(() => import("./DataTable-oiM9uWrQ.js")), wt = m(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), Tt = m(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), Et = m(() => import("./PackageVersion-ur6jKRL5.js").then((e) => e.t)), Dt = m(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_ridgeline: Ot } = ve(), { isThemeValid: kt, warnInvalidTheme: At } = Ce(), T = e, jt = l({
144
+ get() {
145
+ return Array.isArray(V.value) && V.value.length > 0;
146
+ },
147
+ set(e) {
148
+ return e;
149
+ }
150
+ }), Mt = Ze, E = y(null), Nt = y(null), Pt = y(null), D = qe(null), O = qe(null), Ft = y(null), It = y(null), Lt = y(0), Rt = y(0), zt = y(0), k = y(de()), Bt = y(0), Vt = y(0), Ht = y(512), A = y(null), j = y(null), Ut = y(null), Wt = y(0), Gt = y(null), Kt = y(null), qt = y(null), M = y(null), Jt = y(!1);
151
+ function Yt() {
152
+ let e = Se({
153
+ userConfig: T.config,
154
+ defaultConfig: Ot
155
+ }), t = e.theme;
156
+ if (!t) return e;
157
+ if (!kt.value(e)) return At(e), e;
158
+ let n = Se({
159
+ userConfig: Re[t] || T.config,
160
+ defaultConfig: e
161
+ }), r = Se({
162
+ userConfig: T.config,
163
+ defaultConfig: n
164
+ });
165
+ return {
166
+ ...r,
167
+ customPalette: r.customPalette.length ? r.customPalette : ae[t] || a
168
+ };
169
+ }
170
+ let N = y(Yt()), P = l(() => N.value.userOptions), F = l(() => N.value.style.chart.areas), I = l(() => N.value.style.chart.selector), L = l(() => N.value.style.chart.xAxis.labels), R = l(() => N.value.style.chart.yAxis.labels), z = l(() => N.value.style.chart);
171
+ he({
172
+ config: () => N.value,
173
+ dataset: () => T.dataset,
174
+ component: "VueUiRidgeline",
175
+ rules: [
176
+ ge.emptyArray,
177
+ {
178
+ test: (e) => e.length > 31,
179
+ message: [
180
+ "👀 The number of series > 31. Consider:",
181
+ "",
182
+ "▶️ Using filters to let users choose a maximum number of series to display",
183
+ "",
184
+ "▶️ Use several instances of the component to show related series"
185
+ ]
186
+ },
187
+ {
188
+ test: (e) => e.some((e) => e.datapoints.some((e) => e.values.length > 200)),
189
+ message: [
190
+ "👀 Some series contain > 200 data points, which can affect performance. Consider if you really need this level of detail.",
191
+ "",
192
+ "▶️ Use larger time scales, or aggregated values.",
193
+ "",
194
+ "▶️ Filter the time range by adding date inputs in your UI."
195
+ ]
196
+ },
197
+ {
198
+ test: (e) => e.length < 6 && e.length > 0,
199
+ message: [
200
+ "👀 The number of series < 6. Consider:",
201
+ "",
202
+ "▶️ Using VueUiXy instead"
203
+ ]
204
+ }
205
+ ]
206
+ });
207
+ let B = l(() => N.value.userOptions.useCursorPointer), Xt = l(() => oe({
208
+ defaultConfig: {
209
+ userOptions: { show: !1 },
210
+ table: { show: !1 },
211
+ style: { chart: {
212
+ backgroundColor: "#99999930",
213
+ areas: {
214
+ maxPoint: { show: !1 },
215
+ opacity: .9,
216
+ stroke: { useSerieColor: !0 }
217
+ },
218
+ legend: { backgroundColor: "transparent" },
219
+ padding: {
220
+ right: -24,
221
+ left: 0
222
+ },
223
+ xAxis: { labels: { values: [] } },
224
+ yAxis: { labels: { fontSize: 0 } },
225
+ zeroLine: { show: !1 }
226
+ } }
227
+ },
228
+ userConfig: N.value.skeletonConfig ?? {}
229
+ })), { loading: Zt, FINAL_DATASET: V, manualLoading: Qt } = be({
230
+ ...Je(T),
231
+ FINAL_CONFIG: N,
232
+ prepareConfig: Yt,
233
+ skeletonDataset: T.config?.skeletonDataset ?? [
234
+ {
235
+ name: "_",
236
+ datapoints: [{
237
+ name: "__",
238
+ color: "#999999",
239
+ values: [
240
+ 28.639,
241
+ 32.04,
242
+ 41.134,
243
+ 44.525,
244
+ 21.151,
245
+ 2.436,
246
+ .218,
247
+ .024,
248
+ .002,
249
+ 0,
250
+ 0,
251
+ 0
252
+ ]
253
+ }, {
254
+ name: "_",
255
+ color: "#CACACA",
256
+ values: [
257
+ 13.253,
258
+ 15.621,
259
+ 23.36,
260
+ 33.698,
261
+ 29.935,
262
+ 10.874,
263
+ 2.364,
264
+ .561,
265
+ .107,
266
+ .02,
267
+ .006,
268
+ .004
269
+ ]
270
+ }]
271
+ },
272
+ {
273
+ name: "_",
274
+ datapoints: [{
275
+ name: "_",
276
+ color: "#999999",
277
+ values: [
278
+ 10.851,
279
+ 13.195,
280
+ 21.617,
281
+ 36.556,
282
+ 42.292,
283
+ 21.006,
284
+ 3.398,
285
+ .223,
286
+ .013,
287
+ .001,
288
+ 0,
289
+ 0
290
+ ]
291
+ }, {
292
+ name: "_",
293
+ color: "#CACACA",
294
+ values: [
295
+ 3.171,
296
+ 4.115,
297
+ 8.108,
298
+ 18.248,
299
+ 31.641,
300
+ 29.063,
301
+ 12.031,
302
+ 2.742,
303
+ .504,
304
+ .102,
305
+ .032,
306
+ .021
307
+ ]
308
+ }]
309
+ },
310
+ {
311
+ name: "_",
312
+ datapoints: [{
313
+ name: "_",
314
+ color: "#999999",
315
+ values: [
316
+ 1.731,
317
+ 2.334,
318
+ 5.125,
319
+ 13.626,
320
+ 29.911,
321
+ 38.524,
322
+ 24.168,
323
+ 7.646,
324
+ 1.575,
325
+ .317,
326
+ .097,
327
+ .063
328
+ ]
329
+ }, {
330
+ name: "_",
331
+ color: "#CACACA",
332
+ values: [
333
+ .25,
334
+ .367,
335
+ 1.026,
336
+ 3.944,
337
+ 13.635,
338
+ 28.891,
339
+ 30.149,
340
+ 15.419,
341
+ 4.714,
342
+ 1.246,
343
+ .442,
344
+ .299
345
+ ]
346
+ }]
347
+ },
348
+ {
349
+ name: "_",
350
+ datapoints: [{
351
+ name: "_",
352
+ color: "#999999",
353
+ values: [
354
+ .034,
355
+ .054,
356
+ .194,
357
+ 1.065,
358
+ 5.747,
359
+ 20.735,
360
+ 38.306,
361
+ 32.899,
362
+ 15.318,
363
+ 5.566,
364
+ 2.422,
365
+ 1.76
366
+ ]
367
+ }, {
368
+ name: "_",
369
+ color: "#CACACA",
370
+ values: [
371
+ .001,
372
+ .002,
373
+ .009,
374
+ .095,
375
+ 1.124,
376
+ 8.342,
377
+ 27.115,
378
+ 35.08,
379
+ 21.449,
380
+ 9.093,
381
+ 4.243,
382
+ 3.143
383
+ ]
384
+ }]
385
+ },
386
+ {
387
+ name: "_",
388
+ datapoints: [{
389
+ name: "_",
390
+ color: "#999999",
391
+ values: [
392
+ 0,
393
+ .001,
394
+ .004,
395
+ .051,
396
+ .567,
397
+ 3.322,
398
+ 14.215,
399
+ 44.783,
400
+ 40.351,
401
+ 20.377,
402
+ 9.866,
403
+ 7.378
404
+ ]
405
+ }, {
406
+ name: "_",
407
+ color: "#CACACA",
408
+ values: [
409
+ 0,
410
+ 0,
411
+ 0,
412
+ 0,
413
+ .001,
414
+ .11,
415
+ 4.136,
416
+ 27.498,
417
+ 43.24,
418
+ 29.807,
419
+ 17.345,
420
+ 13.678
421
+ ]
422
+ }]
423
+ },
424
+ {
425
+ name: "_",
426
+ datapoints: [{
427
+ name: "_",
428
+ color: "#999999",
429
+ values: [
430
+ 0,
431
+ 0,
432
+ 0,
433
+ 0,
434
+ .025,
435
+ .598,
436
+ 3.886,
437
+ 10.645,
438
+ 54.479,
439
+ 45.953,
440
+ 30.814,
441
+ 24.55
442
+ ]
443
+ }, {
444
+ name: "_",
445
+ color: "#CACACA",
446
+ values: [
447
+ 0,
448
+ 0,
449
+ 0,
450
+ 0,
451
+ 0,
452
+ 0,
453
+ .007,
454
+ 1.655,
455
+ 26.63,
456
+ 52.017,
457
+ 45.192,
458
+ 39.651
459
+ ]
460
+ }]
461
+ }
462
+ ],
463
+ skeletonConfig: oe({
464
+ defaultConfig: N.value,
465
+ userConfig: Xt.value
466
+ })
467
+ }), H = y(Math.min(F.value.height, F.value.rowHeight)), { userOptionsVisible: $t, setUserOptionsVisibility: en, keepUserOptionState: tn } = Fe({ config: N.value }), { svgRef: U } = Ie({ config: z.value.title }), nn = l(() => N.value.debug);
468
+ function rn() {
469
+ let e = V.value || [];
470
+ if (!Array.isArray(e) || e.length === 0) {
471
+ ue({
472
+ componentName: "VueUiRidgeline",
473
+ type: "dataset",
474
+ debug: nn.value
475
+ }), Qt.value = !0;
476
+ return;
477
+ }
478
+ if (e.forEach((e, t) => {
479
+ ce({
480
+ datasetObject: e,
481
+ requiredAttributes: ["name", "datapoints"]
482
+ }).forEach((e) => {
483
+ jt.value = !1, ue({
484
+ componentName: "VueUiRidgeline",
485
+ type: "datasetSerieAttribute",
486
+ property: e,
487
+ index: t,
488
+ debug: nn.value
489
+ });
490
+ }), Array.isArray(e.datapoints) && e.datapoints.length && e.datapoints.forEach((e, n) => {
491
+ ce({
492
+ datasetObject: e,
493
+ requiredAttributes: ["name", "values"]
494
+ }).forEach((e) => {
495
+ jt.value = !1, ue({
496
+ componentName: "VueUiRidgeline",
497
+ type: "datasetSerieAttribute",
498
+ property: `datapoint.${e}`,
499
+ index: `${t}-${n}`,
500
+ debug: nn.value
501
+ });
502
+ });
503
+ });
504
+ }), Vt.value = e.length, H.value = Math.min(F.value.height, F.value.rowHeight), o(T.dataset) || (Qt.value = N.value.loading), N.value.responsive) {
505
+ let t = Ae(() => {
506
+ let { width: t, height: n } = je({
507
+ chart: E.value,
508
+ title: z.value.title.text ? Nt.value : null,
509
+ legend: z.value.legend.show ? Pt.value : null,
510
+ source: Ft.value,
511
+ noTitle: It.value,
512
+ padding: z.value.padding
513
+ });
514
+ requestAnimationFrame(() => {
515
+ Ht.value = t, H.value = e.length ? n / e.length : 0, Wt.value = n - 12;
516
+ });
517
+ });
518
+ D.value && (O.value && D.value.unobserve(O.value), D.value.disconnect()), D.value = new ResizeObserver(t), O.value = E.value?.parentNode || null, O.value && D.value.observe(O.value);
519
+ }
520
+ }
521
+ Ge(() => {
522
+ D.value && (O.value && D.value.unobserve(O.value), D.value.disconnect());
523
+ });
524
+ let { isPrinting: an, isImaging: on, generatePdf: sn, generateImage: cn } = ye({
525
+ elementId: `vue-ui-ridgeline_${k.value}`,
526
+ fileName: z.value.title.text || "vue-ui-ridgeline",
527
+ options: N.value.userOptions.print
528
+ }), ln = l(() => N.value.userOptions.show && !z.value.title.text), un = l(() => me(N.value.customPalette)), W = y({ showTable: N.value.table.show });
529
+ Ye(() => V.value, async (e) => {
530
+ Array.isArray(e) && e.length && ($t.value = !N.value.userOptions.showOnChartHover, await Ue(), rn(), Lt.value += 1, zt.value += 1, W.value.showTable = N.value.table.show);
531
+ }, {
532
+ deep: !0,
533
+ immediate: !0
534
+ }), Ye(() => T.dataset, (e) => {
535
+ Array.isArray(e) && e.length > 0 && (Qt.value = !1);
536
+ }, { deep: !0 }), Ye(() => Zt.value, async (e) => {
537
+ e || (await Ue(), rn());
538
+ }, { immediate: !0 }), Ye(() => T.config, () => {
539
+ N.value = Yt(V.value || null), $t.value = !N.value.userOptions.showOnChartHover, H.value = Math.min(F.value.height, F.value.rowHeight), W.value.showTable = N.value.table.show, Lt.value += 1, zt.value += 1;
540
+ }, { deep: !0 });
541
+ let dn = l(() => F.value.height / F.value.rowHeight);
542
+ function fn() {
543
+ Z.value.length ? Z.value = [] : Q.value.forEach((e) => {
544
+ Z.value.push(e.id);
545
+ }), Mt("selectLegend", X.value);
546
+ }
547
+ function pn(e) {
548
+ Z.value.includes(e) ? Z.value = Z.value.filter((t) => t !== e) : Z.value.push(e), Mt("selectLegend", X.value);
549
+ }
550
+ function mn(e) {
551
+ return Q.value.length ? Q.value.find((t) => t.name === e) || (nn.value && console.warn(`VueUiRidgeline - Series name not found "${e}"`), null) : (nn.value && console.warn("VueUiRidgeline - There are no series to show."), null);
552
+ }
553
+ function hn(e) {
554
+ let t = mn(e);
555
+ t !== null && Z.value.includes(t.id) && pn(t.id);
556
+ }
557
+ function gn(e) {
558
+ let t = mn(e);
559
+ t !== null && (Z.value.includes(t.id) || pn(t.id));
560
+ }
561
+ let G = l(() => jt.value ? (V.value || []).map((e) => ({
562
+ ...e,
563
+ labelLen: An(e.name, R.value.fontSize),
564
+ uid: de(),
565
+ datapoints: e.datapoints.map((e, t) => {
566
+ let n = e.color ? s(e.color) : un.value[t] || a[t] || a[t % a.length], r = i(e.name);
567
+ return {
568
+ ...e,
569
+ color: n,
570
+ id: r
571
+ };
572
+ })
573
+ })) : []), _n = l(() => z.value.padding.top + H.value * (V.value || []).length + H.value * dn.value + z.value.padding.bottom), K = l(() => {
574
+ let e = z.value.padding;
575
+ return {
576
+ width: Ht.value,
577
+ height: _n.value,
578
+ padding: e
579
+ };
580
+ }), vn = l(() => K.value.width), yn = l(() => K.value.height), bn = y(0), xn = Ae((e) => {
581
+ bn.value = e;
582
+ }, 100);
583
+ Xe((e) => {
584
+ let t = Gt.value;
585
+ if (!t) return;
586
+ let n = new ResizeObserver((e) => {
587
+ xn(e[0].contentRect.height);
588
+ });
589
+ n.observe(t), e(() => n.disconnect());
590
+ }), Ge(() => {
591
+ bn.value = 0;
592
+ });
593
+ let q = l(() => ({
594
+ fullHeight: K.value.height + bn.value,
595
+ top: K.value.padding.top,
596
+ left: K.value.padding.left,
597
+ right: K.value.width - K.value.padding.right,
598
+ bottom: K.value.height - z.value.padding.bottom,
599
+ width: K.value.width - (K.value.padding.left + K.value.padding.right)
600
+ })), Sn = l(() => Math.max(...G.value.flatMap((e) => e.datapoints.map((e) => e.values.length)))), J = y([]), Cn = 0;
601
+ Xe(() => {
602
+ let e = ++Cn;
603
+ (async () => {
604
+ let t = await _e({
605
+ values: L.value.values,
606
+ maxDatapoints: Sn.value,
607
+ formatter: L.value.datetimeFormatter,
608
+ start: 0,
609
+ end: L.value.values.length
610
+ });
611
+ e === Cn && (J.value = t);
612
+ })();
613
+ });
614
+ let Y = l(() => {
615
+ let e = Math.max(...G.value.map((e) => e.labelLen)), t = K.value.padding.left + e + 16 + R.value.offsetX, n = (q.value.width - t) / Sn.value, r = [];
616
+ for (let e = 0; e < Sn.value; e += 1) r.push({
617
+ selectorX: t + n * e,
618
+ x: t + n * e - n / 2,
619
+ y: q.value.top,
620
+ label: L.value.values[e] ? J.value[e]?.text ?? "" : "",
621
+ index: e,
622
+ width: n,
623
+ height: _n.value
624
+ });
625
+ return r;
626
+ });
627
+ function wn(e) {
628
+ return G.value.map((t) => t.datapoints.map((t) => ({
629
+ dp: t,
630
+ selected: t.values[e.index]
631
+ })));
632
+ }
633
+ function Tn(e) {
634
+ A.value = e;
635
+ let t = wn(e);
636
+ N.value.events.datapointEnter && N.value.events.datapointEnter({
637
+ datapoint: t,
638
+ seriesIndex: e.index
639
+ });
640
+ }
641
+ function En(e) {
642
+ A.value = null;
643
+ let t = wn(e);
644
+ N.value.events.datapointLeave && N.value.events.datapointLeave({
645
+ datapoint: t,
646
+ seriesIndex: e.index
647
+ });
648
+ }
649
+ function Dn(e) {
650
+ let t = wn(e);
651
+ N.value.events.datapointClick && N.value.events.datapointClick({
652
+ datapoint: t,
653
+ seriesIndex: e.index
654
+ }), Mt("selectX", t);
655
+ }
656
+ function On(e, t) {
657
+ return e.length * t / 2 + t;
658
+ }
659
+ function kn(e, t, n) {
660
+ return e + On(t, n) > q.value.right;
661
+ }
662
+ function An(e, t, n = "sans-serif") {
663
+ let r = document.createElement("canvas").getContext("2d");
664
+ return r.font = `${typeof t == "number" ? `${t}px` : t} ${n}`, r.measureText(e).width;
665
+ }
666
+ let X = l(() => {
667
+ H.value;
668
+ let e = Math.max(...G.value.map((e) => e.labelLen)), t = Math.max(...G.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), n = Math.min(...G.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), r = K.value.padding.left + e + 16 + R.value.offsetX, i = (q.value.width - r) / Sn.value, a = Math.abs(Math.min(n, 0)), o = t + a;
669
+ function ne(e) {
670
+ return isNaN(e / o) ? 0 : e / o;
671
+ }
672
+ return G.value.map((e, t) => {
673
+ let n = H.value * dn.value * (1 - ne(a)), o = q.value.top + H.value * t, s = q.value.top + o + n;
674
+ return {
675
+ ...e,
676
+ label: {
677
+ x: r - R.value.fontSize,
678
+ y: (R.value.centered ? s - n / 2 : s) + R.value.offsetY
679
+ },
680
+ datapoints: e.datapoints.map((e) => {
681
+ let t = e.values.map((t, n) => {
682
+ let ee = isNaN(t) || [
683
+ void 0,
684
+ null,
685
+ "NaN",
686
+ NaN,
687
+ Infinity,
688
+ -Infinity
689
+ ].includes(t) ? 0 : t || 0;
690
+ return {
691
+ x: r + i * n,
692
+ y: q.value.top + o + H.value * dn.value * (1 - ne(ee + a)),
693
+ value: t,
694
+ isMaxPoint: t === Math.max(...e.values),
695
+ zero: s
696
+ };
697
+ }), n = `${ee(t, s, !1, !1)}`, ie = `M ${r},${s} ${re(t)} ${t.at(-1).x},${s}`, ae = `M ${r},${s} ${t.at(-1).x},${s}`, oe = `M ${te(t)}`, ce = `M ${re(t)}`, le = se(F.value.smooth ? oe : ce);
698
+ return {
699
+ ...e,
700
+ uid: de(),
701
+ plots: t,
702
+ smoothPath: n,
703
+ straightPath: ie,
704
+ zeroPath: ae,
705
+ pathLength: le,
706
+ smoothPathRidge: oe,
707
+ straightPathRidge: ce
708
+ };
709
+ }).filter((e) => !Z.value.includes(e.id))
710
+ };
711
+ });
712
+ }), Z = y([]);
713
+ function jn(e) {
714
+ let t = /* @__PURE__ */ new Map();
715
+ return e.forEach((e) => {
716
+ e.datapoints.forEach((e, n) => {
717
+ let r = i(e.name);
718
+ t.has(r) || t.set(r, {
719
+ id: r,
720
+ name: e.name,
721
+ color: e.color,
722
+ shape: "circle",
723
+ segregate: () => pn(r),
724
+ isSegregated: Z.value.includes(r),
725
+ opacity: Z.value.includes(r) ? .5 : 1
726
+ });
727
+ });
728
+ }), Array.from(t.values());
729
+ }
730
+ let Q = l(() => jn(G.value)), Mn = l(() => ({
731
+ cy: "donut-div-legend",
732
+ backgroundColor: z.value.legend.backgroundColor,
733
+ color: z.value.legend.color,
734
+ fontSize: z.value.legend.fontSize,
735
+ paddingBottom: 12,
736
+ fontWeight: z.value.legend.bold ? "bold" : ""
737
+ })), $ = y(!1);
738
+ function Nn(e) {
739
+ $.value = e, Bt.value += 1;
740
+ }
741
+ let Pn = y({}), Fn = y([]);
742
+ function In(e) {
743
+ Mt("selectDatapoint", e), z.value.dialog.show && (Fn.value = e.datapoints.map((e) => ({
744
+ name: e.name,
745
+ color: e.color,
746
+ type: "line",
747
+ useArea: !0,
748
+ smooth: F.value.smooth,
749
+ series: e.values
750
+ })), j.value = e, Pn.value = ne({
751
+ ...z.value.dialog.xyChart,
752
+ responsive: !0,
753
+ chart: {
754
+ ...z.value.dialog.xyChart.chart,
755
+ grid: {
756
+ ...z.value.dialog.xyChart.chart.grid,
757
+ labels: {
758
+ ...z.value.dialog.xyChart.chart.grid.labels,
759
+ xAxisLabels: {
760
+ ...z.value.dialog.xyChart.chart.grid.labels.xAxisLabels,
761
+ values: L.value.values,
762
+ autoRotate: {
763
+ enable: !0,
764
+ angle: z.value.dialog.xyChart.chart.grid.labels.xAxisLabels.autoRotate.angle
765
+ },
766
+ datetimeFormatter: L.value.datetimeFormatter
767
+ }
768
+ }
769
+ },
770
+ tooltip: {
771
+ ...z.value.dialog.xyChart.chart.tooltip,
772
+ showTimeLabel: L.value.values.length > 0
773
+ },
774
+ userOptions: {
775
+ ...z.value.dialog.xyChart.chart.userOptions,
776
+ buttons: {
777
+ ...z.value.dialog.xyChart.chart.userOptions.buttons,
778
+ altCopy: N.value.userOptions.buttons.altCopy
779
+ },
780
+ callbacks: {
781
+ ...z.value.dialog.xyChart.chart.userOptions.callbacks,
782
+ altCopy: () => {}
783
+ },
784
+ useCursorPointer: N.value.userOptions.useCursorPointer
785
+ }
786
+ }
787
+ }), Ut.value && Ut.value.open());
788
+ }
789
+ let Ln = y(null);
790
+ function Rn(e) {
791
+ Ln.value = e;
792
+ }
793
+ function zn() {
794
+ Ln.value = null;
795
+ }
796
+ let Bn = y(!1);
797
+ function Vn() {
798
+ Bn.value = !Bn.value;
799
+ }
800
+ function Hn() {
801
+ W.value.showTable = !W.value.showTable;
802
+ }
803
+ let Un = l(() => ({ body: X.value.flatMap((e) => e.datapoints.flatMap((t) => ({
804
+ ...t,
805
+ rowName: `${e.name}: ${t.name}`
806
+ }))).map((e) => [{
807
+ name: e.rowName,
808
+ color: e.color
809
+ }, ...e.values]) })), Wn = l(() => {
810
+ let e = [N.value.table.columnNames.series, ...J.value.map((e) => e.text)], t = {
811
+ th: {
812
+ backgroundColor: N.value.table.th.backgroundColor,
813
+ color: N.value.table.th.color,
814
+ outline: N.value.table.th.outline
815
+ },
816
+ td: {
817
+ backgroundColor: N.value.table.td.backgroundColor,
818
+ color: N.value.table.td.color,
819
+ outline: N.value.table.td.outline
820
+ },
821
+ breakpoint: N.value.table.responsiveBreakpoint
822
+ };
823
+ return {
824
+ colNames: [N.value.table.columnNames.series, ...J.value.map((e) => e.text)],
825
+ head: e,
826
+ body: Un.value.body,
827
+ config: t
828
+ };
829
+ });
830
+ function Gn(e = null) {
831
+ Ue(() => {
832
+ let r = [[N.value.table.columnNames.series, ...J.map((e) => [e.text])], ...Un.value.body.map((e, t) => [e[0].name, ...e.slice(1)])], i = [[z.value.title.text], [z.value.title.subtitle.text]].concat(r), a = n(i);
833
+ e ? e(a) : t({
834
+ csvContent: a,
835
+ title: z.value.title.text || "vue-ui-ridgeline"
836
+ });
837
+ });
838
+ }
839
+ function Kn() {
840
+ return X.value;
841
+ }
842
+ async function qn({ scale: e = 2 } = {}) {
843
+ if (!E.value) return;
844
+ let { width: t, height: n } = E.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ee({
845
+ domElement: E.value,
846
+ base64: !0,
847
+ img: !0,
848
+ scale: e
849
+ });
850
+ return {
851
+ imageUri: i,
852
+ base64: a,
853
+ title: z.value.title.text,
854
+ width: t,
855
+ height: n,
856
+ aspectRatio: r
857
+ };
858
+ }
859
+ let Jn = l(() => ({
860
+ min: 0,
861
+ max: Sn.value
862
+ }));
863
+ Te({
864
+ timeLabelsEls: Gt,
865
+ timeLabels: J,
866
+ slicer: Jn,
867
+ configRef: N,
868
+ rotationPath: [
869
+ "style",
870
+ "chart",
871
+ "xAxis",
872
+ "labels",
873
+ "rotation"
874
+ ],
875
+ autoRotatePath: [
876
+ "style",
877
+ "chart",
878
+ "xAxis",
879
+ "labels",
880
+ "autoRotate",
881
+ "enable"
882
+ ],
883
+ isAutoSize: !1,
884
+ width: vn,
885
+ height: yn,
886
+ targetClass: ".vue-ui-ridgeline-x-axis-label",
887
+ angle: L.value.autoRotate.angle
888
+ });
889
+ let Yn = l(() => {
890
+ let e = N.value.table.useDialog && !N.value.table.show, t = W.value.showTable;
891
+ return {
892
+ component: e ? Dt : St,
893
+ title: `${z.value.title.text}${z.value.title.subtitle.text ? `: ${z.value.title.subtitle.text}` : ""}`,
894
+ props: e ? {
895
+ backgroundColor: N.value.table.th.backgroundColor,
896
+ color: N.value.table.th.color,
897
+ headerColor: N.value.table.th.color,
898
+ headerBg: N.value.table.th.backgroundColor,
899
+ isFullscreen: $.value,
900
+ fullscreenParent: E.value,
901
+ forcedWidth: Math.min(800, window.innerWidth * .8),
902
+ isCursorPointer: B.value
903
+ } : {
904
+ hideDetails: !0,
905
+ config: {
906
+ open: t,
907
+ maxHeight: 1e4,
908
+ body: {
909
+ backgroundColor: z.value.backgroundColor,
910
+ color: z.value.color
911
+ },
912
+ head: {
913
+ backgroundColor: z.value.backgroundColor,
914
+ color: z.value.color
915
+ }
916
+ }
917
+ }
918
+ };
919
+ });
920
+ Ye(() => W.value.showTable, (e) => {
921
+ N.value.table.show || (e && N.value.table.useDialog && Kt.value ? Kt.value.open() : "close" in Kt.value && Kt.value.close());
922
+ });
923
+ function Xn() {
924
+ W.value.showTable = !1, qt.value && qt.value.setTableIconState(!1);
925
+ }
926
+ let Zn = l(() => z.value.backgroundColor), Qn = l(() => ({
927
+ ...z.value.legend,
928
+ position: "bottom"
929
+ })), $n = l(() => z.value.title), { isCallbackImaging: er, isCallbackSvg: tr, generateSvg: nr, onGenerateImage: rr } = we({
930
+ svg: U,
931
+ title: $n,
932
+ legend: Qn,
933
+ legendItems: Q,
934
+ backgroundColor: Zn,
935
+ getSvgCallback: () => N.value.userOptions.callbacks.svg,
936
+ generateImage: cn
937
+ });
938
+ function ir(e) {
939
+ ar("xy-zoom", e.dataset, e.config);
940
+ }
941
+ async function ar(e = "main-chart", t = null, n = null) {
942
+ if (Mt("copyAlt", {
943
+ source: e,
944
+ config: e === "main-chart" ? N.value : Pn.value,
945
+ dataset: e === "main-chart" ? X.value : Fn.value
946
+ }), !N.value.userOptions.callbacks.altCopy) {
947
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
948
+ return;
949
+ }
950
+ await Promise.resolve(N.value.userOptions.callbacks.altCopy({
951
+ source: e,
952
+ config: e === "main-chart" ? N.value : Pn.value,
953
+ dataset: e === "main-chart" ? X.value : Fn.value
954
+ }));
955
+ }
956
+ function or() {
957
+ M.value = null, Jt.value = !0;
958
+ }
959
+ function sr() {
960
+ dr(), Jt.value = !1;
961
+ }
962
+ function cr(e) {
963
+ if (!U.value || Bn.value || document.activeElement !== U.value || !X.value.length) return;
964
+ let t = e.key === "ArrowUp", n = e.key === "ArrowDown", r = e.key === "ArrowLeft", i = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", ee = e.key === "Escape";
965
+ if (!t && !n && !r && !i && !a && !ee) return;
966
+ if (e.preventDefault(), e.stopPropagation(), ee) {
967
+ dr();
968
+ return;
969
+ }
970
+ if (a) {
971
+ if (M.value !== null) {
972
+ let e = X.value[M.value];
973
+ e && In(e);
974
+ return;
975
+ }
976
+ A.value && Dn(A.value);
977
+ return;
978
+ }
979
+ if (t || n) {
980
+ let e = M.value;
981
+ e = e === null ? n ? 0 : X.value.length - 1 : lr(e + (n ? 1 : -1)), M.value = e, Ln.value = e;
982
+ return;
983
+ }
984
+ if (!Y.value.length) return;
985
+ let te = A.value?.index ?? null;
986
+ te = te === null ? i ? 0 : Y.value.length - 1 : ur(te + (i ? 1 : -1));
987
+ let o = Y.value[te];
988
+ o && Tn(o);
989
+ }
990
+ function lr(e) {
991
+ let t = X.value.length;
992
+ return t ? (e % t + t) % t : null;
993
+ }
994
+ function ur(e) {
995
+ let t = Y.value.length;
996
+ return t ? (e % t + t) % t : null;
997
+ }
998
+ function dr() {
999
+ M.value = null, Ln.value = null, A.value ? En(A.value) : A.value = null;
1000
+ }
1001
+ let fr = l(() => ({
1002
+ head: Wn.value.head,
1003
+ body: Wn.value.body.map((e) => [e[0]?.name ?? "", ...e.slice(1)]),
1004
+ caption: N.value.a11y.translations.tableCaption,
1005
+ notice: N.value.a11y.translations.tableAvailable
1006
+ }));
1007
+ return ke({
1008
+ getData: Kn,
1009
+ getImage: qn,
1010
+ generateImage: cn,
1011
+ generateSvg: nr,
1012
+ generatePdf: sn,
1013
+ generateCsv: Gn,
1014
+ hideSeries: gn,
1015
+ showSeries: hn,
1016
+ toggleAnnotator: Vn,
1017
+ toggleTable: Hn,
1018
+ toggleFullscreen: Nn,
1019
+ copyAlt: ar
1020
+ }), (e, t) => (v(), f("div", {
1021
+ ref_key: "ridgelineChart",
1022
+ ref: E,
1023
+ class: We(`vue-data-ui-component vue-ui-ridgeline ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
1024
+ id: `vue-ui-ridgeline_${k.value}`,
1025
+ style: _({
1026
+ fontFamily: N.value.style.fontFamily,
1027
+ width: "100%",
1028
+ textAlign: "center",
1029
+ background: z.value.backgroundColor,
1030
+ height: N.value.responsive ? "100%" : void 0
1031
+ }),
1032
+ onMouseenter: t[3] ||= () => C(en)(!0),
1033
+ onMouseleave: t[4] ||= () => C(en)(!1)
1034
+ }, [
1035
+ p("div", {
1036
+ id: `chart-instructions-${k.value}`,
1037
+ class: "sr-only"
1038
+ }, [p("p", null, S(N.value.a11y.translations.keyboardNavigation), 1)], 8, $e),
1039
+ fr.value.body.length ? (v(), u(Pe, {
1040
+ key: 0,
1041
+ uid: k.value,
1042
+ head: fr.value.head,
1043
+ body: fr.value.body,
1044
+ caption: fr.value.caption,
1045
+ notice: fr.value.notice
1046
+ }, null, 8, [
1047
+ "uid",
1048
+ "head",
1049
+ "body",
1050
+ "caption",
1051
+ "notice"
1052
+ ])) : d("", !0),
1053
+ P.value.buttons.annotator && C(U) ? (v(), u(C(wt), {
1054
+ key: 1,
1055
+ color: z.value.color,
1056
+ backgroundColor: z.value.backgroundColor,
1057
+ active: Bn.value,
1058
+ svgRef: C(U),
1059
+ isCursorPointer: B.value,
1060
+ onClose: Vn
1061
+ }, {
1062
+ "annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1063
+ "annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", g(h({ color: t })), void 0, !0)]),
1064
+ "annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", g(h({ mode: t })), void 0, !0)]),
1065
+ "annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", g(h({ disabled: t })), void 0, !0)]),
1066
+ "annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", g(h({ disabled: t })), void 0, !0)]),
1067
+ "annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", g(h({ disabled: t })), void 0, !0)]),
1068
+ _: 3
1069
+ }, 8, [
1070
+ "color",
1071
+ "backgroundColor",
1072
+ "active",
1073
+ "svgRef",
1074
+ "isCursorPointer"
1075
+ ])) : d("", !0),
1076
+ x(e.$slots, "userConfig", {}, void 0, !0),
1077
+ ln.value ? (v(), f("div", {
1078
+ key: 2,
1079
+ ref_key: "noTitle",
1080
+ ref: It,
1081
+ class: "vue-data-ui-no-title-space",
1082
+ style: "height:36px; width: 100%;background:transparent"
1083
+ }, null, 512)) : d("", !0),
1084
+ z.value.title.text ? (v(), f("div", {
1085
+ key: 3,
1086
+ ref_key: "chartTitle",
1087
+ ref: Nt,
1088
+ style: "width:100%;background:transparent;padding-bottom:24px"
1089
+ }, [(v(), u(De, {
1090
+ key: `title_${Lt.value}`,
1091
+ config: {
1092
+ title: {
1093
+ cy: "ridgeline-div-title",
1094
+ ...z.value.title
1095
+ },
1096
+ subtitle: {
1097
+ cy: "ridgeline-div-subtitle",
1098
+ ...z.value.title.subtitle
1099
+ }
1100
+ }
1101
+ }, null, 8, ["config"]))], 512)) : d("", !0),
1102
+ P.value.show && jt.value && (C(tn) || C($t)) ? (v(), u(C(Tt), {
1103
+ ref_key: "userOptionsRef",
1104
+ ref: qt,
1105
+ key: `user_option_${Bt.value}`,
1106
+ backgroundColor: z.value.backgroundColor,
1107
+ color: z.value.color,
1108
+ isPrinting: C(an),
1109
+ isImaging: C(on),
1110
+ uid: k.value,
1111
+ hasTooltip: !1,
1112
+ callbacks: P.value.callbacks,
1113
+ hasPdf: P.value.buttons.pdf,
1114
+ hasImg: P.value.buttons.img,
1115
+ hasSvg: P.value.buttons.svg,
1116
+ hasXls: P.value.buttons.csv,
1117
+ hasTable: P.value.buttons.table,
1118
+ hasLabel: !1,
1119
+ hasFullscreen: P.value.buttons.fullscreen,
1120
+ hasAltCopy: P.value.buttons.altCopy,
1121
+ isFullscreen: $.value,
1122
+ printScale: P.value.print.scale,
1123
+ chartElement: E.value,
1124
+ position: P.value.position,
1125
+ isTooltip: !1,
1126
+ titles: { ...P.value.buttonTitles },
1127
+ hasAnnotator: P.value.buttons.annotator,
1128
+ isAnnotation: Bn.value,
1129
+ tableDialog: N.value.table.useDialog,
1130
+ style: _({ visibility: C(tn) ? C($t) ? "visible" : "hidden" : "visible" }),
1131
+ isCursorPointer: B.value,
1132
+ onToggleFullscreen: Nn,
1133
+ onGeneratePdf: C(sn),
1134
+ onGenerateCsv: Gn,
1135
+ onGenerateImage: C(rr),
1136
+ onGenerateSvg: C(nr),
1137
+ onToggleTable: Hn,
1138
+ onToggleAnnotator: Vn,
1139
+ onCopyAlt: ar
1140
+ }, ze({ _: 2 }, [
1141
+ e.$slots.menuIcon ? {
1142
+ name: "menuIcon",
1143
+ fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", g(h({
1144
+ isOpen: t,
1145
+ color: n
1146
+ })), void 0, !0)]),
1147
+ key: "0"
1148
+ } : void 0,
1149
+ e.$slots.optionTooltip ? {
1150
+ name: "optionTooltip",
1151
+ fn: w(() => [x(e.$slots, "optionTooltip", {}, void 0, !0)]),
1152
+ key: "1"
1153
+ } : void 0,
1154
+ e.$slots.optionPdf ? {
1155
+ name: "optionPdf",
1156
+ fn: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
1157
+ key: "2"
1158
+ } : void 0,
1159
+ e.$slots.optionCsv ? {
1160
+ name: "optionCsv",
1161
+ fn: w(() => [x(e.$slots, "optionCsv", {}, void 0, !0)]),
1162
+ key: "3"
1163
+ } : void 0,
1164
+ e.$slots.optionImg ? {
1165
+ name: "optionImg",
1166
+ fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
1167
+ key: "4"
1168
+ } : void 0,
1169
+ e.$slots.optionSvg ? {
1170
+ name: "optionSvg",
1171
+ fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
1172
+ key: "5"
1173
+ } : void 0,
1174
+ e.$slots.optionTable ? {
1175
+ name: "optionTable",
1176
+ fn: w(() => [x(e.$slots, "optionTable", {}, void 0, !0)]),
1177
+ key: "6"
1178
+ } : void 0,
1179
+ e.$slots.optionFullscreen ? {
1180
+ name: "optionFullscreen",
1181
+ fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", g(h({
1182
+ toggleFullscreen: t,
1183
+ isFullscreen: n
1184
+ })), void 0, !0)]),
1185
+ key: "7"
1186
+ } : void 0,
1187
+ e.$slots.optionAnnotator ? {
1188
+ name: "optionAnnotator",
1189
+ fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", g(h({
1190
+ toggleAnnotator: t,
1191
+ isAnnotator: n
1192
+ })), void 0, !0)]),
1193
+ key: "8"
1194
+ } : void 0,
1195
+ e.$slots.optionAltCopy ? {
1196
+ name: "optionAltCopy",
1197
+ fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", g(h({ altCopy: t })), void 0, !0)]),
1198
+ key: "9"
1199
+ } : void 0,
1200
+ e.$slots["custom-menu-before"] ? {
1201
+ name: "custom-menu-before",
1202
+ fn: w(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1203
+ key: "10"
1204
+ } : void 0,
1205
+ e.$slots["custom-menu-after"] ? {
1206
+ name: "custom-menu-after",
1207
+ fn: w(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1208
+ key: "11"
1209
+ } : void 0
1210
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.callbacks.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.printScale.chartElement.position.titles.hasAnnotator.isAnnotation.tableDialog.style.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg".split("."))) : d("", !0),
1211
+ p("div", et, [(v(), f("svg", {
1212
+ ref_key: "svgRef",
1213
+ ref: U,
1214
+ xmlns: C(pe),
1215
+ "aria-describedby": `chart-instructions-${k.value}`,
1216
+ class: We({
1217
+ "vue-data-ui-fullscreen--on": $.value,
1218
+ "vue-data-ui-fulscreen--off": !$.value
1219
+ }),
1220
+ viewBox: `0 0 ${K.value.width <= 0 ? 10 : K.value.width} ${q.value.fullHeight <= 0 ? 10 : q.value.fullHeight}`,
1221
+ style: _(`max-width:100%;overflow:visible;background:transparent;color:${z.value.color};${N.value.responsive ? `height: ${Wt.value}px; width: 100%;` : ""}`),
1222
+ tabindex: "0",
1223
+ onFocus: or,
1224
+ onBlur: sr,
1225
+ onKeydown: cr
1226
+ }, [
1227
+ Ve(C(Et)),
1228
+ p("defs", null, [(v(!0), f(c, null, b(Q.value, (e, t) => (v(), u(Me, {
1229
+ t: "linear",
1230
+ id: `gradient-${e.id}-${k.value}`,
1231
+ key: `gradient-${e.id}-${k.value}`,
1232
+ x1: "50%",
1233
+ y1: "0%",
1234
+ x2: "50%",
1235
+ y2: "100%",
1236
+ stops: [
1237
+ [
1238
+ "0%",
1239
+ e.color,
1240
+ 1
1241
+ ],
1242
+ [
1243
+ "30%",
1244
+ e.color,
1245
+ .7
1246
+ ],
1247
+ [
1248
+ "70%",
1249
+ e.color,
1250
+ .3
1251
+ ],
1252
+ [
1253
+ "100%",
1254
+ e.color,
1255
+ .1
1256
+ ]
1257
+ ]
1258
+ }, null, 8, ["id", "stops"]))), 128)), (v(!0), f(c, null, b(X.value, (e, t) => (v(), f(c, null, [(v(!0), f(c, null, b(e.datapoints, (e, t) => (v(), u(Me, {
1259
+ t: "linear",
1260
+ key: `grad${e.id}`,
1261
+ id: `gradient-single-${k.value}-${e.uid}`,
1262
+ x1: "50%",
1263
+ y1: "0%",
1264
+ x2: "50%",
1265
+ y2: "100%",
1266
+ stops: [
1267
+ [
1268
+ "0%",
1269
+ e.color,
1270
+ 1
1271
+ ],
1272
+ [
1273
+ "30%",
1274
+ e.color,
1275
+ .7
1276
+ ],
1277
+ [
1278
+ "70%",
1279
+ e.color,
1280
+ .3
1281
+ ],
1282
+ [
1283
+ "100%",
1284
+ e.color,
1285
+ .1
1286
+ ]
1287
+ ]
1288
+ }, null, 8, ["id", "stops"]))), 128))], 64))), 256))]),
1289
+ (v(!0), f(c, null, b(X.value, (t, n) => (v(), f("g", { key: `ds-${n}` }, [(v(!0), f(c, null, b(t.datapoints, (t, r) => (v(), f("g", { key: t.id }, [
1290
+ e.$slots.pattern ? (v(), f("g", nt, [p("defs", null, [x(e.$slots, "pattern", He({ ref_for: !0 }, {
1291
+ datapointIndex: n,
1292
+ seriesIndex: r,
1293
+ patternId: `pattern_${k.value}_${t.uid}`
1294
+ }), void 0, !0)])])) : d("", !0),
1295
+ p("path", {
1296
+ fill: e.$slots.pattern ? `url(#pattern_${k.value}_${t.uid})` : z.value.backgroundColor,
1297
+ stroke: "none",
1298
+ "stroke-linecap": "round",
1299
+ d: F.value.smooth ? t.smoothPath : t.straightPath,
1300
+ style: _({ opacity: F.value.opacity })
1301
+ }, null, 12, rt),
1302
+ p("path", {
1303
+ fill: "none",
1304
+ stroke: F.value.stroke.useSerieColor ? t.color : F.value.stroke.color,
1305
+ "stroke-width": F.value.strokeWidth,
1306
+ d: F.value.smooth ? t.smoothPathRidge : t.straightPathRidge,
1307
+ "stroke-linecap": "round",
1308
+ "stroke-linejoin": "round",
1309
+ style: _({
1310
+ strokeDasharray: t.pathLength,
1311
+ strokeDashoffset: N.value.useCssAnimation ? t.pathLength : 0
1312
+ })
1313
+ }, null, 12, it),
1314
+ p("path", {
1315
+ fill: F.value.useGradient ? F.value.useCommonColor ? `url(#gradient-${t.id}-${k.value})` : `url(#gradient-single-${k.value}-${t.uid})` : t.color,
1316
+ stroke: "none",
1317
+ d: F.value.smooth ? t.smoothPath : t.straightPath,
1318
+ "stroke-linecap": "round",
1319
+ "stroke-linejoin": "round",
1320
+ style: _({
1321
+ strokeDasharray: t.pathLength,
1322
+ strokeDashoffset: N.value.useCssAnimation ? t.pathLength : 0
1323
+ })
1324
+ }, null, 12, at),
1325
+ z.value.zeroLine.show ? (v(), f("path", {
1326
+ key: 1,
1327
+ stroke: z.value.zeroLine.useSerieColor ? t.color : z.value.zeroLine.stroke,
1328
+ "stroke-dasharray": z.value.zeroLine.strokeDasharray,
1329
+ "stroke-width": z.value.zeroLine.strokeWidth,
1330
+ d: t.zeroPath,
1331
+ "stroke-linecap": "round"
1332
+ }, null, 8, ot)) : d("", !0),
1333
+ F.value.maxPoint.show && t.plots.length > 1 ? (v(!0), f(c, { key: 2 }, b(t.plots, (e) => (v(), f(c, null, [e.isMaxPoint ? (v(), f("line", {
1334
+ key: 0,
1335
+ x1: e.x,
1336
+ y1: e.y,
1337
+ x2: e.x,
1338
+ y2: e.zero,
1339
+ stroke: F.value.maxPoint.adaptStrokeToBackground ? C(fe)(t.color) : F.value.maxPoint.stroke,
1340
+ "stroke-width": F.value.maxPoint.strokeWidth,
1341
+ "stroke-linecap": "round",
1342
+ "stroke-dasharray": F.value.maxPoint.strokeDasharray
1343
+ }, null, 8, st)) : d("", !0)], 64))), 256)) : d("", !0),
1344
+ t.plots.length === 1 ? (v(), f("circle", {
1345
+ key: 3,
1346
+ cx: t.plots[0].x,
1347
+ cy: t.plots[0].y,
1348
+ stroke: I.value.dot.stroke,
1349
+ "stroke-width": I.value.dot.strokeWidth,
1350
+ r: I.value.dot.radius,
1351
+ fill: I.value.dot.useDatapointColor ? t.color : I.value.dot.fill,
1352
+ style: { pointerEvents: "none" }
1353
+ }, null, 8, ct)) : d("", !0)
1354
+ ]))), 128)), p("text", {
1355
+ x: t.label.x,
1356
+ y: t.label.y,
1357
+ "text-anchor": "end",
1358
+ "font-size": R.value.fontSize,
1359
+ "font-weight": R.value.bold ? "bold" : "normal",
1360
+ fill: R.value.color,
1361
+ style: _({ cursor: z.value.dialog.show && B.value ? "pointer" : "default" }),
1362
+ "text-decoration": z.value.dialog.show && (Ln.value === n || j.value && t.uid === j.value.uid || M.value === n) ? "underline" : "",
1363
+ "dominant-baseline": "middle",
1364
+ onMouseenter: (e) => Rn(n),
1365
+ onMouseleave: zn,
1366
+ onClick: (e) => In(t)
1367
+ }, S(t.name), 45, lt)]))), 128)),
1368
+ L.value.values.length ? (v(), f("g", {
1369
+ key: 0,
1370
+ ref_key: "timeLabelsEls",
1371
+ ref: Gt
1372
+ }, [(v(!0), f(c, null, b(Y.value, (t, n) => x(e.$slots, "time-label", He({ ref_for: !0 }, {
1373
+ show: t && !L.value.showOnlyFirstAndLast && !L.value.showOnlyAtModulo || t && L.value.showOnlyFirstAndLast && (n === 0 || n === Y.value.length - 1) || t && A.value && A.value.index === n || t && !L.value.showOnlyFirstAndLast && L.value.showOnlyAtModulo && n % Math.max(1, Math.floor(Number(z.value.xAxis.labels.modulo) || 1)) === 0,
1374
+ fontSize: L.value.fontSize,
1375
+ content: t.label,
1376
+ textAnchor: L.value.rotation > 0 ? "start" : L.value.rotation < 0 ? "end" : "middle",
1377
+ fill: L.value.color,
1378
+ transform: `translate(${t.selectorX}, ${q.value.top + t.height + L.value.offsetY}), rotate(${L.value.rotation})`,
1379
+ x: t.selectorX,
1380
+ y: q.value.bottom + L.value.offsetY
1381
+ }), () => [t && !L.value.showOnlyFirstAndLast && !L.value.showOnlyAtModulo || t && L.value.showOnlyFirstAndLast && (n === 0 || n === Y.value.length - 1) || t && A.value && A.value.index === n || t && !L.value.showOnlyFirstAndLast && L.value.showOnlyAtModulo && n % Math.max(1, Math.floor(Number(z.value.xAxis.labels.modulo) || 1)) === 0 ? (v(), f("g", ut, [String(t.label).includes("\n") ? (v(), f("text", {
1382
+ key: 1,
1383
+ class: "vue-ui-ridgeline-x-axis-label",
1384
+ "font-size": L.value.fontSize,
1385
+ fill: L.value.color,
1386
+ "font-weight": L.value.bold ? "bold" : "normal",
1387
+ transform: `translate(${t.selectorX}, ${q.value.bottom + L.value.offsetY}), rotate(${L.value.rotation})`,
1388
+ "text-anchor": L.value.rotation > 0 ? "start" : z.value.xAxis.labels.rotation < 0 ? "end" : "middle",
1389
+ style: _({ opacity: A.value ? A.value.index === n ? 1 : .2 : 1 }),
1390
+ innerHTML: C(r)({
1391
+ content: String(t.label),
1392
+ fontSize: z.value.xAxis.labels.fontSize,
1393
+ fill: z.value.xAxis.labels.color,
1394
+ stroke: z.value.backgroundColor,
1395
+ x: 0,
1396
+ y: 0
1397
+ })
1398
+ }, null, 12, ft)) : (v(), f("text", {
1399
+ key: 0,
1400
+ class: "vue-ui-ridgeline-x-axis-label",
1401
+ "font-size": L.value.fontSize,
1402
+ fill: L.value.color,
1403
+ stroke: z.value.backgroundColor,
1404
+ "stroke-width": "3",
1405
+ "stroke-linecap": "round",
1406
+ "stroke-linejoin": "round",
1407
+ "paint-order": "stroke fill",
1408
+ "font-weight": L.value.bold ? "bold" : "normal",
1409
+ transform: `translate(${t.selectorX}, ${q.value.bottom + L.value.offsetY}), rotate(${L.value.rotation})`,
1410
+ "text-anchor": L.value.rotation > 0 ? "start" : z.value.xAxis.labels.rotation < 0 ? "end" : "middle",
1411
+ style: _({ opacity: A.value ? A.value.index === n ? 1 : .2 : 1 })
1412
+ }, S(t.label), 13, dt))])) : d("", !0)], !0)), 256))], 512)) : d("", !0),
1413
+ p("g", null, [
1414
+ (v(!0), f(c, null, b(Y.value, (e, t) => (v(), f("rect", {
1415
+ x: e.x,
1416
+ y: e.y,
1417
+ width: e.width < 0 ? .1 : e.width,
1418
+ height: e.height < 0 ? .1 : e.height,
1419
+ fill: "transparent",
1420
+ onMouseenter: (t) => Tn(e),
1421
+ onMouseleave: (t) => En(e),
1422
+ onClick: () => Dn(e)
1423
+ }, null, 40, pt))), 256)),
1424
+ I.value.show && A.value ? (v(), f("line", {
1425
+ key: 0,
1426
+ x1: A.value.selectorX,
1427
+ x2: A.value.selectorX,
1428
+ y1: A.value.y,
1429
+ y2: A.value.y + A.value.height - H.value / 2,
1430
+ stroke: I.value.stroke,
1431
+ "stroke-width": I.value.strokeWidth,
1432
+ "stroke-dasharray": I.value.strokeDasharray,
1433
+ "stroke-linecap": "round",
1434
+ style: { pointerEvents: "none" }
1435
+ }, null, 8, mt)) : d("", !0),
1436
+ A.value || I.value.labels.showLast ? (v(!0), f(c, { key: 1 }, b(X.value, (e) => (v(), f(c, null, [(v(!0), f(c, null, b(e.datapoints, (e) => (v(), f(c, null, [(v(!0), f(c, null, b(e.plots, (t, n) => (v(), f(c, null, [A.value && A.value.index === n || !A.value && n === e.plots.length - 1 && z.value.selector.labels.showLast ? (v(), f("circle", {
1437
+ key: 0,
1438
+ cx: t.x,
1439
+ cy: t.y,
1440
+ stroke: I.value.dot.stroke,
1441
+ "stroke-width": I.value.dot.strokeWidth,
1442
+ r: I.value.dot.radius,
1443
+ fill: I.value.dot.useDatapointColor ? e.color : z.value.selector.dot.fill,
1444
+ style: { pointerEvents: "none" }
1445
+ }, null, 8, ht)) : d("", !0), A.value && A.value.index === n || !A.value && n === e.plots.length - 1 && z.value.selector.labels.showLast ? (v(), f("text", {
1446
+ key: 1,
1447
+ x: kn(t.x, C(le)(z.value.selector.labels.formatter, t.value, C(ie)({
1448
+ p: N.value.style.chart.xAxis.labels.prefix,
1449
+ v: t.value,
1450
+ s: N.value.style.chart.xAxis.labels.suffix,
1451
+ r: N.value.style.chart.selector.labels.rounding
1452
+ })), z.value.selector.labels.fontSize) ? t.x - z.value.selector.labels.fontSize / 2 : t.x + z.value.selector.labels.fontSize / 2,
1453
+ y: t.y,
1454
+ "dominant-baseline": "middle",
1455
+ stroke: z.value.backgroundColor,
1456
+ "stroke-linecap": "round",
1457
+ "stroke-linejoin": "round",
1458
+ "stroke-width": "3",
1459
+ "paint-order": "stroke fill",
1460
+ "text-anchor": kn(t.x, C(le)(z.value.selector.labels.formatter, t.value, C(ie)({
1461
+ p: N.value.style.chart.xAxis.labels.prefix,
1462
+ v: t.value,
1463
+ s: N.value.style.chart.xAxis.labels.suffix,
1464
+ r: N.value.style.chart.selector.labels.rounding
1465
+ })), z.value.selector.labels.fontSize) ? "end" : "start",
1466
+ "font-size": I.value.labels.fontSize,
1467
+ fill: I.value.labels.color,
1468
+ style: { pointerEvents: "none" }
1469
+ }, S(C(le)(z.value.selector.labels.formatter, t.value, C(ie)({
1470
+ p: z.value.xAxis.labels.prefix,
1471
+ v: t.value,
1472
+ s: z.value.xAxis.labels.suffix,
1473
+ r: z.value.selector.labels.rounding
1474
+ }))), 9, gt)) : d("", !0)], 64))), 256))], 64))), 256))], 64))), 256)) : d("", !0)
1475
+ ]),
1476
+ x(e.$slots, "svg", { svg: {
1477
+ ...K.value,
1478
+ drawingArea: q.value,
1479
+ isPrintingImg: C(an) || C(on) || C(er),
1480
+ isPrintingSvg: C(tr),
1481
+ data: X.value
1482
+ } }, void 0, !0)
1483
+ ], 46, tt)), e.$slots.hint ? (v(), f("div", _t, [x(e.$slots, "hint", g(h({
1484
+ hint: N.value.a11y.translations.keyboardNavigation,
1485
+ isVisible: Jt.value
1486
+ })), void 0, !0)])) : d("", !0)]),
1487
+ e.$slots.watermark ? (v(), f("div", vt, [x(e.$slots, "watermark", g(h({ isPrinting: C(an) || C(on) || C(er) || C(tr) })), void 0, !0)])) : d("", !0),
1488
+ p("div", {
1489
+ ref_key: "chartLegend",
1490
+ ref: Pt
1491
+ }, [x(e.$slots, "legend", { legend: Q.value }, () => [z.value.legend.show ? (v(), u(Le, {
1492
+ key: `legend_${zt.value}`,
1493
+ legendSet: Q.value,
1494
+ config: Mn.value,
1495
+ isCursorPointer: B.value,
1496
+ onClickMarker: t[0] ||= ({ legend: e }) => pn(e.id)
1497
+ }, ze({
1498
+ item: w(({ legend: e }) => [C(Zt) ? d("", !0) : (v(), f("div", {
1499
+ key: 0,
1500
+ style: _(`opacity:${Z.value.includes(e.id) ? .5 : 1}`),
1501
+ onClick: (t) => e.segregate()
1502
+ }, S(e.name), 13, yt))]),
1503
+ legendToggle: w(() => [Q.value.length > 2 && z.value.legend.selectAllToggle.show && !C(Zt) ? (v(), u(Ne, {
1504
+ key: 0,
1505
+ backgroundColor: z.value.legend.selectAllToggle.backgroundColor,
1506
+ color: z.value.legend.selectAllToggle.color,
1507
+ fontSize: z.value.legend.fontSize,
1508
+ checked: Z.value.length > 0,
1509
+ isCursorPointer: B.value,
1510
+ onToggle: fn
1511
+ }, null, 8, [
1512
+ "backgroundColor",
1513
+ "color",
1514
+ "fontSize",
1515
+ "checked",
1516
+ "isCursorPointer"
1517
+ ])) : d("", !0)]),
1518
+ _: 2
1519
+ }, [e.$slots.pattern ? {
1520
+ name: "legend-pattern",
1521
+ fn: w(({ legend: e, index: t }) => [Ve(Oe, {
1522
+ shape: e.shape,
1523
+ radius: 30,
1524
+ stroke: "none",
1525
+ plot: {
1526
+ x: 30,
1527
+ y: 30
1528
+ },
1529
+ fill: `url(#pattern_${k.value}_${t})`
1530
+ }, null, 8, ["shape", "fill"])]),
1531
+ key: "0"
1532
+ } : void 0]), 1032, [
1533
+ "legendSet",
1534
+ "config",
1535
+ "isCursorPointer"
1536
+ ])) : d("", !0)], !0)], 512),
1537
+ e.$slots.source ? (v(), f("div", {
1538
+ key: 6,
1539
+ ref_key: "source",
1540
+ ref: Ft,
1541
+ dir: "auto"
1542
+ }, [x(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
1543
+ jt.value && P.value.buttons.table ? (v(), u(Ke(Yn.value.component), He({ key: 7 }, Yn.value.props, {
1544
+ ref_key: "tableUnit",
1545
+ ref: Kt,
1546
+ onClose: Xn
1547
+ }), ze({
1548
+ content: w(() => [(v(), u(C(Ct), {
1549
+ key: `table_${Rt.value}`,
1550
+ colNames: Wn.value.colNames,
1551
+ head: Wn.value.head,
1552
+ body: Wn.value.body,
1553
+ config: Wn.value.config,
1554
+ title: N.value.table.useDialog ? "" : Yn.value.title,
1555
+ withCloseButton: !N.value.table.useDialog,
1556
+ isCursorPointer: B.value,
1557
+ onClose: Xn
1558
+ }, {
1559
+ th: w(({ th: e }) => [p("div", null, S(e), 1)]),
1560
+ td: w(({ td: e }) => [Be(S(e.name ? e.name : C(le)(I.value.labels.formatter, e, C(ie)({
1561
+ p: z.value.xAxis.labels.prefix,
1562
+ v: e,
1563
+ s: z.value.xAxis.labels.suffix,
1564
+ r: N.value.table.td.roundingValue
1565
+ }))), 1)]),
1566
+ _: 1
1567
+ }, 8, [
1568
+ "colNames",
1569
+ "head",
1570
+ "body",
1571
+ "config",
1572
+ "title",
1573
+ "withCloseButton",
1574
+ "isCursorPointer"
1575
+ ]))]),
1576
+ _: 2
1577
+ }, [N.value.table.useDialog ? {
1578
+ name: "title",
1579
+ fn: w(() => [Be(S(Yn.value.title), 1)]),
1580
+ key: "0"
1581
+ } : void 0, N.value.table.useDialog ? {
1582
+ name: "actions",
1583
+ fn: w(() => [p("button", {
1584
+ tabindex: "0",
1585
+ class: "vue-ui-user-options-button",
1586
+ onClick: t[1] ||= (e) => Gn(P.value.callbacks.csv),
1587
+ style: _({ cursor: B.value ? "pointer" : "default" })
1588
+ }, [Ve(C(xt), {
1589
+ name: "fileCsv",
1590
+ stroke: Yn.value.props.color
1591
+ }, null, 8, ["stroke"])], 4)]),
1592
+ key: "1"
1593
+ } : void 0]), 1040)) : d("", !0),
1594
+ z.value.dialog.show ? (v(), u(C(Dt), {
1595
+ key: 8,
1596
+ ref_key: "dialog",
1597
+ ref: Ut,
1598
+ onClose: t[2] ||= (e) => j.value = null,
1599
+ backgroundColor: z.value.dialog.backgroundColor,
1600
+ color: z.value.dialog.color,
1601
+ headerBg: z.value.dialog.header.backgroundColor,
1602
+ headerColor: z.value.dialog.header.color,
1603
+ isFullscreen: $.value,
1604
+ fullscreenParent: E.value,
1605
+ isCursorPointer: B.value,
1606
+ withPadding: ""
1607
+ }, {
1608
+ title: w(() => [Be(S(j.value.name), 1)]),
1609
+ content: w(() => [j.value ? (v(), u(C(bt), {
1610
+ key: 0,
1611
+ config: Pn.value,
1612
+ dataset: Fn.value,
1613
+ onCopyAlt: ir
1614
+ }, null, 8, ["config", "dataset"])) : d("", !0)]),
1615
+ _: 1
1616
+ }, 8, [
1617
+ "backgroundColor",
1618
+ "color",
1619
+ "headerBg",
1620
+ "headerColor",
1621
+ "isFullscreen",
1622
+ "fullscreenParent",
1623
+ "isCursorPointer"
1624
+ ])) : d("", !0),
1625
+ x(e.$slots, "skeleton", {}, () => [C(Zt) ? (v(), u(xe, { key: 0 })) : d("", !0)], !0)
1626
+ ], 46, Qe));
1627
+ }
1628
+ }, [["__scopeId", "data-v-69c297f7"]]);
1629
+ //#endregion
1630
+ export { Ze as n, bt as t };