vue-data-ui 3.22.9 → 3.22.10

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