vue-data-ui 3.15.12 → 3.16.1

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 (218) hide show
  1. package/README.md +132 -59
  2. package/dist/A11yDataTable-KcVAX2cP.js +54 -0
  3. package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
  5. package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
  6. package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
  7. package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
  8. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  9. package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
  10. package/dist/Legend-CS7Xo5LK.js +101 -0
  11. package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
  12. package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
  13. package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  14. package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
  15. package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
  16. package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
  17. package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
  18. package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
  19. package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
  20. package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
  21. package/dist/components/arrow.js +1 -1
  22. package/dist/components/vue-ui-3d-bar.js +1 -1
  23. package/dist/components/vue-ui-accordion.js +1 -1
  24. package/dist/components/vue-ui-age-pyramid.js +1 -1
  25. package/dist/components/vue-ui-annotator.js +1 -1
  26. package/dist/components/vue-ui-bullet.js +1 -1
  27. package/dist/components/vue-ui-bump.js +1 -1
  28. package/dist/components/vue-ui-candlestick.js +1 -1
  29. package/dist/components/vue-ui-carousel-table.js +1 -1
  30. package/dist/components/vue-ui-chestnut.js +1 -1
  31. package/dist/components/vue-ui-chord.js +1 -1
  32. package/dist/components/vue-ui-circle-pack.js +1 -1
  33. package/dist/components/vue-ui-cursor.js +1 -1
  34. package/dist/components/vue-ui-dag.js +1 -1
  35. package/dist/components/vue-ui-dashboard.js +1 -1
  36. package/dist/components/vue-ui-digits.js +1 -1
  37. package/dist/components/vue-ui-donut-evolution.js +1 -1
  38. package/dist/components/vue-ui-donut.js +1 -1
  39. package/dist/components/vue-ui-dumbbell.js +1 -1
  40. package/dist/components/vue-ui-flow.js +1 -1
  41. package/dist/components/vue-ui-funnel.js +1 -1
  42. package/dist/components/vue-ui-galaxy.js +1 -1
  43. package/dist/components/vue-ui-gauge.js +1 -1
  44. package/dist/components/vue-ui-geo.js +1 -1
  45. package/dist/components/vue-ui-gizmo.js +1 -1
  46. package/dist/components/vue-ui-heatmap.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
  91. package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
  92. package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
  93. package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
  94. package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
  95. package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/types/vue-data-ui.d.ts +59 -0
  98. package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
  99. package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
  100. package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
  101. package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
  102. package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
  103. package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
  104. package/dist/utils.js +3 -3
  105. package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
  108. package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
  109. package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
  110. package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
  111. package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
  112. package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
  113. package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
  114. package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
  115. package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
  116. package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
  117. package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
  118. package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
  119. package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
  120. package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
  121. package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
  122. package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
  123. package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
  124. package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
  125. package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
  126. package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
  127. package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
  128. package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
  129. package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
  130. package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
  131. package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
  132. package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
  133. package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
  134. package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
  135. package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
  136. package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
  137. package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
  138. package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
  139. package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
  141. package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
  142. package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
  143. package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
  144. package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
  145. package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
  146. package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
  147. package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
  148. package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
  149. package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
  150. package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
  151. package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
  152. package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
  153. package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
  154. package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
  155. package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
  156. package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
  157. package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
  158. package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
  159. package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
  160. package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
  161. package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
  162. package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
  163. package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
  164. package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
  165. package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
  166. package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
  167. package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
  168. package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
  169. package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
  170. package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
  171. package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
  172. package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
  173. package/package.json +2 -2
  174. package/dist/ColorPicker-j0ySewhI.js +0 -244
  175. package/dist/Legend-1LMMsPxL.js +0 -90
  176. package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
  177. package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
  178. package/dist/vue-ui-bump-C_fKharc.js +0 -1059
  179. package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
  180. package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
  181. package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
  182. package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
  183. package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
  184. package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
  185. package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
  186. package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
  187. package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
  188. package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
  189. package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
  190. package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
  191. package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
  192. package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
  193. package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
  194. package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
  195. package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
  196. package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
  197. package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
  198. package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
  199. package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
  200. package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
  201. package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
  202. package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
  203. package/dist/vue-ui-rings-80ZUki42.js +0 -1083
  204. package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
  205. package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
  206. package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
  207. package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
  208. package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
  209. package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
  210. package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
  211. package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
  212. package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
  213. package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
  214. package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
  215. package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
  216. package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
  217. package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
  218. package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
@@ -0,0 +1,1473 @@
1
+ import { defineAsyncComponent as X, computed as d, ref as i, shallowRef as Ct, toRefs as Oa, onBeforeUnmount as At, watch as ie, nextTick as pe, watchEffect as wt, openBlock as n, createElementBlock as r, unref as u, normalizeStyle as _, normalizeClass as me, createElementVNode as g, toDisplayString as B, createBlock as P, createCommentVNode as h, withCtx as f, renderSlot as y, normalizeProps as S, guardReactiveProps as T, createSlots as Ee, createVNode as Xe, Fragment as m, renderList as O, mergeProps as Be, resolveDynamicComponent as La, createTextVNode as He } from "vue";
2
+ import { j as Ue, t as $t, n as Ma, s as za, p as be, at as _t, P as Da, b as Pt, c as Ia, aj as Na, X as Ra, W as Fa, Z as Ea, k as xe, l as ke, m as Xa, q as Ve, r as St, o as Ba, a0 as Ha, a1 as Ua, ac as Va } from "./lib-DBptbyyI.js";
3
+ import { t as Tt, u as Wa } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ga } from "./useConfig-DO94Aj5s.js";
5
+ import { u as ja, B as Ka } from "./BaseScanner-BhhkKVoj.js";
6
+ import { u as Ya } from "./usePrinter-CEpYU3r5.js";
7
+ import { u as qa } from "./useSvgExport-ByUukOZt.js";
8
+ import { u as We } from "./useNestedProp-Bf5XFbs8.js";
9
+ import { u as Za } from "./useTimeLabels-C-A2uZKi.js";
10
+ import { u as Ja } from "./useThemeCheck-D1ZYXUwG.js";
11
+ import { u as Qa } from "./useUserOptionState-BIvW1Kz7.js";
12
+ import { u as el } from "./useChartAccessibility-9icAAmYg.js";
13
+ import { u as tl } from "./useTimeLabelCollider-CIsgDrl9.js";
14
+ import al from "./vue_ui_ridgeline-j4rVmpEp.js";
15
+ import ll from "./Legend-CS7Xo5LK.js";
16
+ import ol from "./Title-BeMKE1cj.js";
17
+ import { _ as sl } from "./Shape-BKRUOeKk.js";
18
+ import nl from "./img-LXxMLmCg.js";
19
+ import { A as rl } from "./A11yDataTable-KcVAX2cP.js";
20
+ import { B as ul } from "./BaseLegendToggle-BQVIawmA.js";
21
+ import { _ as il } from "./_plugin-vue_export-helper-CHgC5LLL.js";
22
+ const cl = ["id"], vl = ["id"], dl = { style: { position: "relative" } }, hl = ["xmlns", "aria-describedby", "viewBox"], fl = ["id"], yl = ["stop-color"], gl = ["stop-color"], pl = ["stop-color"], ml = ["stop-color"], bl = ["id"], xl = ["stop-color"], kl = ["stop-color"], Cl = ["stop-color"], Al = ["stop-color"], wl = { key: 0 }, $l = ["fill", "d"], _l = ["stroke", "stroke-width", "d"], Pl = ["fill", "d"], Sl = ["stroke", "stroke-dasharray", "stroke-width", "d"], Tl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ol = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Ll = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], Ml = { key: 0 }, zl = ["font-size", "fill", "font-weight", "transform", "text-anchor"], Dl = ["font-size", "fill", "font-weight", "transform", "text-anchor", "innerHTML"], Il = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], Nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Rl = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Fl = ["x", "y", "text-anchor", "font-size", "fill"], El = {
23
+ key: 0,
24
+ style: { position: "absolute", top: "100%", left: "0", width: "100%" },
25
+ "data-dom-to-png-ignore": "",
26
+ "aria-hidden": "true"
27
+ }, Xl = {
28
+ key: 5,
29
+ class: "vue-data-ui-watermark"
30
+ }, Bl = ["onClick"], Hl = ["innerHTML"], Ul = {
31
+ __name: "vue-ui-ridgeline",
32
+ props: {
33
+ config: {
34
+ type: Object,
35
+ default() {
36
+ return {};
37
+ }
38
+ },
39
+ dataset: {
40
+ type: Array,
41
+ default() {
42
+ return [];
43
+ }
44
+ }
45
+ },
46
+ emits: ["selectLegend", "selectDatapoint", "selectX", "copyAlt"],
47
+ setup(Ot, { expose: Lt, emit: Mt }) {
48
+ const zt = X(() => import("./vue-ui-xy-BdzEiImZ.js")), Dt = X(() => import("./BaseIcon-Cb3zzG6s.js")), It = X(() => import("./vue-ui-accordion-nvggWcGN.js")), Nt = X(() => import("./DataTable-DT2kIdQ6.js")), Rt = X(() => import("./PenAndPaper-Ct3qJ4lA.js")), Ft = X(() => import("./UserOptions-rW2fRf3V.js")), Et = X(() => import("./PackageVersion-DPO-OOVI.js")), Ge = X(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_ridgeline: Xt } = Ga(), { isThemeValid: Bt, warnInvalidTheme: Ht } = Ja(), I = Ot, ee = d({
49
+ get() {
50
+ return Array.isArray(V.value) && V.value.length > 0;
51
+ },
52
+ set(t) {
53
+ return t;
54
+ }
55
+ }), ce = Mt, z = i(null), je = i(null), Ke = i(null), N = Ct(null), H = Ct(null), Ye = i(null), qe = i(null), Ce = i(0), Ut = i(0), Ae = i(0), C = i(Ue()), Ze = i(0), Vt = i(0), Je = i(512), c = i(null), Y = i(null), we = i(null), Qe = i(0), $e = i(null), te = i(null), _e = i(null), ve = i(!1), de = i(!1), U = i(null), Pe = i(!1);
56
+ function Se() {
57
+ const t = We({
58
+ userConfig: I.config,
59
+ defaultConfig: Xt
60
+ }), l = t.theme;
61
+ if (!l) return t;
62
+ if (!Bt.value(t))
63
+ return Ht(t), t;
64
+ const a = We({
65
+ userConfig: al[l] || I.config,
66
+ defaultConfig: t
67
+ }), s = We({
68
+ userConfig: I.config,
69
+ defaultConfig: a
70
+ });
71
+ return {
72
+ ...s,
73
+ customPalette: s.customPalette.length ? s.customPalette : Xa[l] || be
74
+ };
75
+ }
76
+ const e = i(Se()), D = d(() => e.value.userOptions.useCursorPointer), Wt = d(() => $t({
77
+ defaultConfig: {
78
+ userOptions: { show: !1 },
79
+ table: { show: !1 },
80
+ style: {
81
+ chart: {
82
+ backgroundColor: "#99999930",
83
+ areas: {
84
+ maxPoint: {
85
+ show: !1
86
+ },
87
+ opacity: 0.9,
88
+ stroke: {
89
+ useSerieColor: !0
90
+ }
91
+ },
92
+ legend: {
93
+ backgroundColor: "transparent"
94
+ },
95
+ padding: {
96
+ right: -24,
97
+ left: 0
98
+ },
99
+ xAxis: {
100
+ labels: {
101
+ values: []
102
+ }
103
+ },
104
+ yAxis: {
105
+ labels: {
106
+ fontSize: 0
107
+ }
108
+ },
109
+ zeroLine: { show: !1 }
110
+ }
111
+ }
112
+ },
113
+ userConfig: e.value.skeletonConfig ?? {}
114
+ })), { loading: q, FINAL_DATASET: V, manualLoading: Te } = ja({
115
+ ...Oa(I),
116
+ FINAL_CONFIG: e,
117
+ prepareConfig: Se,
118
+ skeletonDataset: I.config?.skeletonDataset ?? [
119
+ {
120
+ name: "_",
121
+ datapoints: [
122
+ {
123
+ name: "__",
124
+ color: "#999999",
125
+ values: [28.639, 32.04, 41.134, 44.525, 21.151, 2.436, 0.218, 0.024, 2e-3, 0, 0, 0]
126
+ },
127
+ {
128
+ name: "_",
129
+ color: "#CACACA",
130
+ values: [13.253, 15.621, 23.36, 33.698, 29.935, 10.874, 2.364, 0.561, 0.107, 0.02, 6e-3, 4e-3]
131
+ }
132
+ ]
133
+ },
134
+ {
135
+ name: "_",
136
+ datapoints: [
137
+ {
138
+ name: "_",
139
+ color: "#999999",
140
+ values: [10.851, 13.195, 21.617, 36.556, 42.292, 21.006, 3.398, 0.223, 0.013, 1e-3, 0, 0]
141
+ },
142
+ {
143
+ name: "_",
144
+ color: "#CACACA",
145
+ values: [3.171, 4.115, 8.108, 18.248, 31.641, 29.063, 12.031, 2.742, 0.504, 0.102, 0.032, 0.021]
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ name: "_",
151
+ datapoints: [
152
+ {
153
+ name: "_",
154
+ color: "#999999",
155
+ values: [1.731, 2.334, 5.125, 13.626, 29.911, 38.524, 24.168, 7.646, 1.575, 0.317, 0.097, 0.063]
156
+ },
157
+ {
158
+ name: "_",
159
+ color: "#CACACA",
160
+ values: [0.25, 0.367, 1.026, 3.944, 13.635, 28.891, 30.149, 15.419, 4.714, 1.246, 0.442, 0.299]
161
+ }
162
+ ]
163
+ },
164
+ {
165
+ name: "_",
166
+ datapoints: [
167
+ {
168
+ name: "_",
169
+ color: "#999999",
170
+ values: [0.034, 0.054, 0.194, 1.065, 5.747, 20.735, 38.306, 32.899, 15.318, 5.566, 2.422, 1.76]
171
+ },
172
+ {
173
+ name: "_",
174
+ color: "#CACACA",
175
+ values: [1e-3, 2e-3, 9e-3, 0.095, 1.124, 8.342, 27.115, 35.08, 21.449, 9.093, 4.243, 3.143]
176
+ }
177
+ ]
178
+ },
179
+ {
180
+ name: "_",
181
+ datapoints: [
182
+ {
183
+ name: "_",
184
+ color: "#999999",
185
+ values: [0, 1e-3, 4e-3, 0.051, 0.567, 3.322, 14.215, 44.783, 40.351, 20.377, 9.866, 7.378]
186
+ },
187
+ {
188
+ name: "_",
189
+ color: "#CACACA",
190
+ values: [0, 0, 0, 0, 1e-3, 0.11, 4.136, 27.498, 43.24, 29.807, 17.345, 13.678]
191
+ }
192
+ ]
193
+ },
194
+ {
195
+ name: "_",
196
+ datapoints: [
197
+ {
198
+ name: "_",
199
+ color: "#999999",
200
+ values: [0, 0, 0, 0, 0.025, 0.598, 3.886, 10.645, 54.479, 45.953, 30.814, 24.55]
201
+ },
202
+ {
203
+ name: "_",
204
+ color: "#CACACA",
205
+ values: [0, 0, 0, 0, 0, 0, 7e-3, 1.655, 26.63, 52.017, 45.192, 39.651]
206
+ }
207
+ ]
208
+ }
209
+ ],
210
+ skeletonConfig: $t({
211
+ defaultConfig: e.value,
212
+ userConfig: Wt.value
213
+ })
214
+ }), L = i(Math.min(
215
+ e.value.style.chart.areas.height,
216
+ e.value.style.chart.areas.rowHeight
217
+ )), {
218
+ userOptionsVisible: he,
219
+ setUserOptionsVisibility: et,
220
+ keepUserOptionState: tt
221
+ } = Qa({ config: e.value }), { svgRef: Z } = el({ config: e.value.style.chart.title }), Oe = d(() => !!e.value.debug);
222
+ function at() {
223
+ const t = V.value || [];
224
+ if (!Array.isArray(t) || t.length === 0) {
225
+ Ve({ componentName: "VueUiRidgeline", type: "dataset", debug: Oe.value }), Te.value = !0;
226
+ return;
227
+ }
228
+ if (t.forEach((l, a) => {
229
+ St({
230
+ datasetObject: l,
231
+ requiredAttributes: ["name", "datapoints"]
232
+ }).forEach((s) => {
233
+ ee.value = !1, Ve({
234
+ componentName: "VueUiRidgeline",
235
+ type: "datasetSerieAttribute",
236
+ property: s,
237
+ index: a,
238
+ debug: Oe.value
239
+ });
240
+ }), Array.isArray(l.datapoints) && l.datapoints.length && l.datapoints.forEach((s, o) => {
241
+ St({
242
+ datasetObject: s,
243
+ requiredAttributes: ["name", "values"]
244
+ }).forEach((v) => {
245
+ ee.value = !1, Ve({
246
+ componentName: "VueUiRidgeline",
247
+ type: "datasetSerieAttribute",
248
+ property: `datapoint.${v}`,
249
+ index: `${a}-${o}`,
250
+ debug: Oe.value
251
+ });
252
+ });
253
+ });
254
+ }), Vt.value = t.length, L.value = Math.min(
255
+ e.value.style.chart.areas.height,
256
+ e.value.style.chart.areas.rowHeight
257
+ ), Ba(I.dataset) || (Te.value = e.value.loading), e.value.responsive) {
258
+ const l = Tt(() => {
259
+ const { width: a, height: s } = Wa({
260
+ chart: z.value,
261
+ title: e.value.style.chart.title.text ? je.value : null,
262
+ legend: e.value.style.chart.legend.show ? Ke.value : null,
263
+ source: Ye.value,
264
+ noTitle: qe.value,
265
+ padding: e.value.style.chart.padding
266
+ });
267
+ requestAnimationFrame(() => {
268
+ Je.value = a, L.value = t.length ? s / t.length : 0, Qe.value = s - 12;
269
+ });
270
+ });
271
+ N.value && (H.value && N.value.unobserve(H.value), N.value.disconnect()), N.value = new ResizeObserver(l), H.value = z.value?.parentNode || null, H.value && N.value.observe(H.value);
272
+ }
273
+ }
274
+ At(() => {
275
+ N.value && (H.value && N.value.unobserve(H.value), N.value.disconnect());
276
+ });
277
+ const { isPrinting: Le, isImaging: Me, generatePdf: lt, generateImage: ot } = Ya({
278
+ elementId: `vue-ui-ridgeline_${C.value}`,
279
+ fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
280
+ options: e.value.userOptions.print
281
+ }), Gt = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), jt = d(() => Ma(e.value.customPalette)), W = i({
282
+ showTable: e.value.table.show
283
+ });
284
+ ie(
285
+ () => V.value,
286
+ async (t) => {
287
+ Array.isArray(t) && t.length && (he.value = !e.value.userOptions.showOnChartHover, await pe(), at(), Ce.value += 1, Ae.value += 1, W.value.showTable = e.value.table.show);
288
+ },
289
+ { deep: !0, immediate: !0 }
290
+ ), ie(() => I.dataset, (t) => {
291
+ Array.isArray(t) && t.length > 0 && (Te.value = !1);
292
+ }, { deep: !0 }), ie(
293
+ () => q.value,
294
+ async (t) => {
295
+ t || (await pe(), at());
296
+ },
297
+ { immediate: !0 }
298
+ ), ie(
299
+ () => I.config,
300
+ () => {
301
+ e.value = Se(V.value || null), he.value = !e.value.userOptions.showOnChartHover, L.value = Math.min(e.value.style.chart.areas.height, e.value.style.chart.areas.rowHeight), W.value.showTable = e.value.table.show, Ce.value += 1, Ae.value += 1;
302
+ },
303
+ { deep: !0 }
304
+ );
305
+ const ze = d(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
306
+ function Kt() {
307
+ x.value.length ? x.value = [] : F.value.forEach((t) => {
308
+ x.value.push(t.id);
309
+ });
310
+ }
311
+ function fe(t) {
312
+ x.value.includes(t) ? x.value = x.value.filter((l) => l !== t) : x.value.push(t), ce("selectLegend", w.value);
313
+ }
314
+ function st(t) {
315
+ if (!F.value.length)
316
+ return e.value.debug && console.warn("VueUiRidgeline - There are no series to show."), null;
317
+ const l = F.value.find((a) => a.name === t);
318
+ return l || (e.value.debug && console.warn(`VueUiRidgeline - Series name not found "${t}"`), null);
319
+ }
320
+ function Yt(t) {
321
+ const l = st(t);
322
+ l !== null && x.value.includes(l.id) && fe(l.id);
323
+ }
324
+ function qt(t) {
325
+ const l = st(t);
326
+ l !== null && (x.value.includes(l.id) || fe(l.id));
327
+ }
328
+ const R = d(() => ee.value ? (V.value || []).map((t) => ({
329
+ ...t,
330
+ labelLen: ta(t.name, e.value.style.chart.yAxis.labels.fontSize),
331
+ uid: Ue(),
332
+ datapoints: t.datapoints.map((l, a) => {
333
+ const s = l.color ? za(l.color) : jt.value[a] || be[a] || be[a % be.length], o = _t(l.name);
334
+ return { ...l, color: s, id: o };
335
+ })
336
+ })) : []), nt = d(() => e.value.style.chart.padding.top + L.value * (V.value || []).length + L.value * ze.value + e.value.style.chart.padding.bottom), p = d(() => {
337
+ const t = e.value.style.chart.padding;
338
+ return {
339
+ width: Je.value,
340
+ height: nt.value,
341
+ padding: t
342
+ };
343
+ }), Zt = d(() => p.value.width), Jt = d(() => p.value.height), De = i(0), Qt = Tt((t) => {
344
+ De.value = t;
345
+ }, 100);
346
+ wt((t) => {
347
+ const l = $e.value;
348
+ if (!l) return;
349
+ const a = new ResizeObserver((s) => {
350
+ Qt(s[0].contentRect.height);
351
+ });
352
+ a.observe(l), t(() => a.disconnect());
353
+ }), At(() => {
354
+ De.value = 0;
355
+ });
356
+ const A = d(() => ({
357
+ fullHeight: p.value.height + De.value,
358
+ top: p.value.padding.top,
359
+ left: p.value.padding.left,
360
+ right: p.value.width - p.value.padding.right,
361
+ bottom: p.value.height - e.value.style.chart.padding.bottom,
362
+ width: p.value.width - (p.value.padding.left + p.value.padding.right)
363
+ })), ae = d(() => Math.max(...R.value.flatMap((t) => t.datapoints.map((l) => l.values.length)))), J = i([]);
364
+ let rt = 0;
365
+ wt(() => {
366
+ const t = ++rt;
367
+ (async () => {
368
+ const l = await Za({
369
+ values: e.value.style.chart.xAxis.labels.values,
370
+ maxDatapoints: ae.value,
371
+ formatter: e.value.style.chart.xAxis.labels.datetimeFormatter,
372
+ start: 0,
373
+ end: e.value.style.chart.xAxis.labels.values.length
374
+ });
375
+ t === rt && (J.value = l);
376
+ })();
377
+ });
378
+ const M = d(() => {
379
+ const t = Math.max(...R.value.map((o) => o.labelLen)), l = p.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, a = (A.value.width - l) / ae.value, s = [];
380
+ for (let o = 0; o < ae.value; o += 1)
381
+ s.push({
382
+ selectorX: l + a * o,
383
+ x: l + a * o - a / 2,
384
+ y: A.value.top,
385
+ label: e.value.style.chart.xAxis.labels.values[o] ? J.value[o]?.text ?? "" : "",
386
+ index: o,
387
+ width: a,
388
+ height: nt.value
389
+ });
390
+ return s;
391
+ });
392
+ function Ie(t) {
393
+ return R.value.map((l) => l.datapoints.map((a) => ({
394
+ dp: a,
395
+ selected: a.values[t.index]
396
+ })));
397
+ }
398
+ function ut(t) {
399
+ c.value = t;
400
+ const l = Ie(t);
401
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t.index });
402
+ }
403
+ function it(t) {
404
+ c.value = null;
405
+ const l = Ie(t);
406
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: t.index });
407
+ }
408
+ function ct(t) {
409
+ const l = Ie(t);
410
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: t.index }), ce("selectX", l);
411
+ }
412
+ function ea(t, l) {
413
+ return t.length * l / 2 + l;
414
+ }
415
+ function vt(t, l, a) {
416
+ const s = ea(l, a);
417
+ return t + s > A.value.right;
418
+ }
419
+ function ta(t, l, a = "sans-serif") {
420
+ const o = document.createElement("canvas").getContext("2d"), v = typeof l == "number" ? `${l}px` : l;
421
+ return o.font = `${v} ${a}`, o.measureText(t).width;
422
+ }
423
+ const w = d(() => {
424
+ L.value;
425
+ const t = Math.max(...R.value.map((k) => k.labelLen)), l = Math.max(...R.value.flatMap((k) => k.datapoints.flatMap((b) => b.values))), a = Math.min(...R.value.flatMap((k) => k.datapoints.flatMap((b) => b.values))), s = p.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, o = (A.value.width - s) / ae.value, v = Math.abs(Math.min(a, 0)), $ = l + v;
426
+ function E(k) {
427
+ return isNaN(k / $) ? 0 : k / $;
428
+ }
429
+ return R.value.map((k, b) => {
430
+ const bt = A.value.top + L.value * b, j = A.value.top + bt + L.value * ze.value * (1 - E(v));
431
+ return {
432
+ ...k,
433
+ label: {
434
+ x: s - e.value.style.chart.yAxis.labels.fontSize,
435
+ y: j
436
+ },
437
+ datapoints: k.datapoints.map((re) => {
438
+ const K = re.values.map((ue, $a) => {
439
+ const _a = isNaN(ue) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(ue) ? 0 : ue || 0, Pa = s + o * $a, Sa = A.value.top + bt + L.value * ze.value * (1 - E(_a + v)), Ta = ue === Math.max(...re.values);
440
+ return {
441
+ x: Pa,
442
+ y: Sa,
443
+ value: ue,
444
+ isMaxPoint: Ta,
445
+ zero: j
446
+ };
447
+ }), ka = `${Da(K, j, !1, !1)}`, Ca = `M ${s},${j} ${Pt(K)} ${K.at(-1).x},${j}`, Aa = `M ${s},${j} ${K.at(-1).x},${j}`, xt = `M ${Ia(K)}`, kt = `M ${Pt(K)}`, wa = Na(
448
+ e.value.style.chart.areas.smooth ? xt : kt
449
+ );
450
+ return {
451
+ ...re,
452
+ uid: Ue(),
453
+ plots: K,
454
+ smoothPath: ka,
455
+ straightPath: Ca,
456
+ zeroPath: Aa,
457
+ pathLength: wa,
458
+ smoothPathRidge: xt,
459
+ straightPathRidge: kt
460
+ };
461
+ }).filter((re) => !x.value.includes(re.id))
462
+ };
463
+ });
464
+ }), x = i([]);
465
+ function aa(t) {
466
+ const l = /* @__PURE__ */ new Map();
467
+ return t.forEach((a) => {
468
+ a.datapoints.forEach((s, o) => {
469
+ const v = _t(s.name);
470
+ l.has(v) || l.set(v, {
471
+ id: v,
472
+ name: s.name,
473
+ color: s.color,
474
+ shape: "circle",
475
+ segregate: () => fe(v),
476
+ isSegregated: x.value.includes(v),
477
+ opacity: x.value.includes(v) ? 0.5 : 1
478
+ });
479
+ });
480
+ }), Array.from(l.values());
481
+ }
482
+ const F = d(() => aa(R.value)), la = d(() => ({
483
+ cy: "donut-div-legend",
484
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
485
+ color: e.value.style.chart.legend.color,
486
+ fontSize: e.value.style.chart.legend.fontSize,
487
+ paddingBottom: 12,
488
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
489
+ })), G = i(!1);
490
+ function dt(t) {
491
+ G.value = t, Ze.value += 1;
492
+ }
493
+ const ye = i({}), ge = i([]);
494
+ function ht(t) {
495
+ ce("selectDatapoint", t), e.value.style.chart.dialog.show && (ge.value = t.datapoints.map((l) => ({
496
+ name: l.name,
497
+ color: l.color,
498
+ type: "line",
499
+ useArea: !0,
500
+ smooth: e.value.style.chart.areas.smooth,
501
+ series: l.values
502
+ })), Y.value = t, ye.value = Va({
503
+ ...e.value.style.chart.dialog.xyChart,
504
+ responsive: !0,
505
+ // Overriding
506
+ chart: {
507
+ ...e.value.style.chart.dialog.xyChart.chart,
508
+ grid: {
509
+ ...e.value.style.chart.dialog.xyChart.chart.grid,
510
+ labels: {
511
+ ...e.value.style.chart.dialog.xyChart.chart.grid.labels,
512
+ xAxisLabels: {
513
+ ...e.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
514
+ values: e.value.style.chart.xAxis.labels.values,
515
+ // Overriding
516
+ autoRotate: {
517
+ enable: !0,
518
+ angle: e.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels.autoRotate.angle
519
+ },
520
+ // overriding
521
+ datetimeFormatter: e.value.style.chart.xAxis.labels.datetimeFormatter
522
+ // Overriding
523
+ }
524
+ }
525
+ },
526
+ tooltip: {
527
+ ...e.value.style.chart.dialog.xyChart.chart.tooltip,
528
+ showTimeLabel: e.value.style.chart.xAxis.labels.values.length > 0
529
+ // Overriding
530
+ },
531
+ userOptions: {
532
+ ...e.value.style.chart.dialog.xyChart.chart.userOptions,
533
+ buttons: {
534
+ ...e.value.style.chart.dialog.xyChart.chart.userOptions.buttons,
535
+ altCopy: e.value.userOptions.buttons.altCopy
536
+ },
537
+ callbacks: {
538
+ ...e.value.style.chart.dialog.xyChart.chart.userOptions.callbacks,
539
+ altCopy: () => {
540
+ }
541
+ },
542
+ useCursorPointer: e.value.userOptions.useCursorPointer
543
+ // Overriding
544
+ }
545
+ }
546
+ }), we.value && we.value.open());
547
+ }
548
+ const le = i(null);
549
+ function oa(t) {
550
+ le.value = t;
551
+ }
552
+ function sa() {
553
+ le.value = null;
554
+ }
555
+ const oe = i(!1);
556
+ function Ne() {
557
+ oe.value = !oe.value;
558
+ }
559
+ function ft() {
560
+ W.value.showTable = !W.value.showTable;
561
+ }
562
+ const yt = d(() => ({ body: w.value.flatMap((a) => a.datapoints.flatMap((s) => ({
563
+ ...s,
564
+ rowName: `${a.name}: ${s.name}`
565
+ }))).map((a) => [
566
+ {
567
+ name: a.rowName,
568
+ color: a.color
569
+ },
570
+ ...a.values
571
+ ]) })), Q = d(() => {
572
+ const t = [
573
+ e.value.table.columnNames.series,
574
+ ...J.value.map((s) => s.text)
575
+ ], l = {
576
+ th: {
577
+ backgroundColor: e.value.table.th.backgroundColor,
578
+ color: e.value.table.th.color,
579
+ outline: e.value.table.th.outline
580
+ },
581
+ td: {
582
+ backgroundColor: e.value.table.td.backgroundColor,
583
+ color: e.value.table.td.color,
584
+ outline: e.value.table.td.outline
585
+ },
586
+ breakpoint: e.value.table.responsiveBreakpoint
587
+ };
588
+ return {
589
+ colNames: [
590
+ e.value.table.columnNames.series,
591
+ ...J.value.map((s) => s.text)
592
+ ],
593
+ head: t,
594
+ body: yt.value.body,
595
+ config: l
596
+ };
597
+ });
598
+ function Re(t = null) {
599
+ pe(() => {
600
+ const l = [
601
+ [e.value.table.columnNames.series, ...J.map((o) => [o.text])],
602
+ ...yt.value.body.map((o, v) => [o[0].name, ...o.slice(1)])
603
+ ], a = [
604
+ [e.value.style.chart.title.text],
605
+ [e.value.style.chart.title.subtitle.text]
606
+ ].concat(l), s = Ha(a);
607
+ t ? t(s) : Ua({
608
+ csvContent: s,
609
+ title: e.value.style.chart.title.text || "vue-ui-ridgeline"
610
+ });
611
+ });
612
+ }
613
+ function na() {
614
+ return w.value;
615
+ }
616
+ async function ra({ scale: t = 2 } = {}) {
617
+ if (!z.value) return;
618
+ const { width: l, height: a } = z.value.getBoundingClientRect(), s = l / a, { imageUri: o, base64: v } = await nl({ domElement: z.value, base64: !0, img: !0, scale: t });
619
+ return {
620
+ imageUri: o,
621
+ base64: v,
622
+ title: e.value.style.chart.title.text,
623
+ width: l,
624
+ height: a,
625
+ aspectRatio: s
626
+ };
627
+ }
628
+ const ua = d(() => ({ min: 0, max: ae.value }));
629
+ tl({
630
+ timeLabelsEls: $e,
631
+ timeLabels: J,
632
+ slicer: ua,
633
+ configRef: e,
634
+ rotationPath: ["style", "chart", "xAxis", "labels", "rotation"],
635
+ autoRotatePath: ["style", "chart", "xAxis", "labels", "autoRotate", "enable"],
636
+ isAutoSize: !1,
637
+ width: Zt,
638
+ height: Jt,
639
+ targetClass: ".vue-ui-ridgeline-x-axis-label",
640
+ angle: e.value.style.chart.xAxis.labels.autoRotate.angle
641
+ });
642
+ const se = d(() => {
643
+ const t = e.value.table.useDialog && !e.value.table.show, l = W.value.showTable;
644
+ return {
645
+ component: t ? Ge : It,
646
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
647
+ props: t ? {
648
+ backgroundColor: e.value.table.th.backgroundColor,
649
+ color: e.value.table.th.color,
650
+ headerColor: e.value.table.th.color,
651
+ headerBg: e.value.table.th.backgroundColor,
652
+ isFullscreen: G.value,
653
+ fullscreenParent: z.value,
654
+ forcedWidth: Math.min(800, window.innerWidth * 0.8),
655
+ isCursorPointer: D.value
656
+ } : {
657
+ hideDetails: !0,
658
+ config: {
659
+ open: l,
660
+ maxHeight: 1e4,
661
+ body: {
662
+ backgroundColor: e.value.style.chart.backgroundColor,
663
+ color: e.value.style.chart.color
664
+ },
665
+ head: {
666
+ backgroundColor: e.value.style.chart.backgroundColor,
667
+ color: e.value.style.chart.color
668
+ }
669
+ }
670
+ }
671
+ };
672
+ });
673
+ ie(() => W.value.showTable, (t) => {
674
+ e.value.table.show || (t && e.value.table.useDialog && te.value ? te.value.open() : "close" in te.value && te.value.close());
675
+ });
676
+ function gt() {
677
+ W.value.showTable = !1, _e.value && _e.value.setTableIconState(!1);
678
+ }
679
+ const ia = d(() => e.value.style.chart.backgroundColor), ca = d(() => ({
680
+ ...e.value.style.chart.legend,
681
+ position: "bottom"
682
+ })), va = d(() => e.value.style.chart.title), { exportSvg: da, getSvg: ha } = qa({
683
+ svg: Z,
684
+ title: va,
685
+ legend: ca,
686
+ legendItems: F,
687
+ backgroundColor: ia
688
+ });
689
+ async function pt({ isCb: t }) {
690
+ de.value = !0, await pe();
691
+ try {
692
+ if (t) {
693
+ const { blob: l, url: a, text: s, dataUrl: o } = await ha();
694
+ await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: l, url: a, text: s, dataUrl: o }));
695
+ } else
696
+ await Promise.resolve(da());
697
+ } finally {
698
+ de.value = !1;
699
+ }
700
+ }
701
+ function fa(t) {
702
+ if (t?.stage === "start") {
703
+ ve.value = !0;
704
+ return;
705
+ }
706
+ if (t?.stage === "end") {
707
+ ve.value = !1;
708
+ return;
709
+ }
710
+ ot();
711
+ }
712
+ function ya(t) {
713
+ Fe("xy-zoom", t.dataset, t.config);
714
+ }
715
+ async function Fe(t = "main-chart", l = null, a = null) {
716
+ if (ce("copyAlt", {
717
+ source: t,
718
+ config: t === "main-chart" ? e.value : ye.value,
719
+ dataset: t === "main-chart" ? w.value : ge.value
720
+ }), !e.value.userOptions.callbacks.altCopy) {
721
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
722
+ return;
723
+ }
724
+ await Promise.resolve(e.value.userOptions.callbacks.altCopy({
725
+ source: t,
726
+ config: t === "main-chart" ? e.value : ye.value,
727
+ dataset: t === "main-chart" ? w.value : ge.value
728
+ }));
729
+ }
730
+ function ga() {
731
+ U.value = null, Pe.value = !0;
732
+ }
733
+ function pa() {
734
+ mt(), Pe.value = !1;
735
+ }
736
+ function ma(t) {
737
+ if (!Z.value || oe.value || document.activeElement !== Z.value || !w.value.length) return;
738
+ const l = t.key === "ArrowUp", a = t.key === "ArrowDown", s = t.key === "ArrowLeft", o = t.key === "ArrowRight", v = t.key === "Enter" || t.key === " ", $ = t.key === "Escape";
739
+ if (!l && !a && !s && !o && !v && !$) return;
740
+ if (t.preventDefault(), t.stopPropagation(), $) {
741
+ mt();
742
+ return;
743
+ }
744
+ if (v) {
745
+ if (U.value !== null) {
746
+ const b = w.value[U.value];
747
+ b && ht(b);
748
+ return;
749
+ }
750
+ c.value && ct(c.value);
751
+ return;
752
+ }
753
+ if (l || a) {
754
+ let b = U.value;
755
+ b === null ? b = a ? 0 : w.value.length - 1 : b = ba(
756
+ b + (a ? 1 : -1)
757
+ ), U.value = b, le.value = b;
758
+ return;
759
+ }
760
+ if (!M.value.length) return;
761
+ let E = c.value?.index ?? null;
762
+ E === null ? E = o ? 0 : M.value.length - 1 : E = xa(
763
+ E + (o ? 1 : -1)
764
+ );
765
+ const k = M.value[E];
766
+ k && ut(k);
767
+ }
768
+ function ba(t) {
769
+ const l = w.value.length;
770
+ return l ? (t % l + l) % l : null;
771
+ }
772
+ function xa(t) {
773
+ const l = M.value.length;
774
+ return l ? (t % l + l) % l : null;
775
+ }
776
+ function mt() {
777
+ U.value = null, le.value = null, c.value ? it(c.value) : c.value = null;
778
+ }
779
+ const ne = d(() => ({
780
+ head: Q.value.head,
781
+ body: Q.value.body.map((t) => [
782
+ t[0]?.name ?? "",
783
+ ...t.slice(1)
784
+ ]),
785
+ caption: e.value.a11y.translations.tableCaption,
786
+ notice: e.value.a11y.translations.tableAvailable
787
+ }));
788
+ return Lt({
789
+ getData: na,
790
+ getImage: ra,
791
+ generateImage: ot,
792
+ generateSvg: pt,
793
+ generatePdf: lt,
794
+ generateCsv: Re,
795
+ hideSeries: qt,
796
+ showSeries: Yt,
797
+ toggleAnnotator: Ne,
798
+ toggleTable: ft,
799
+ toggleFullscreen: dt,
800
+ copyAlt: Fe
801
+ }), (t, l) => (n(), r("div", {
802
+ ref_key: "ridgelineChart",
803
+ ref: z,
804
+ class: me(`vue-data-ui-component vue-ui-ridgeline ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
805
+ id: `vue-ui-ridgeline_${C.value}`,
806
+ style: _({
807
+ fontFamily: e.value.style.fontFamily,
808
+ width: "100%",
809
+ textAlign: "center",
810
+ background: e.value.style.chart.backgroundColor,
811
+ height: e.value.responsive ? "100%" : void 0
812
+ }),
813
+ onMouseenter: l[3] || (l[3] = () => u(et)(!0)),
814
+ onMouseleave: l[4] || (l[4] = () => u(et)(!1))
815
+ }, [
816
+ g("div", {
817
+ id: `chart-instructions-${C.value}`,
818
+ class: "sr-only"
819
+ }, [
820
+ g("p", null, B(e.value.a11y.translations.keyboardNavigation), 1)
821
+ ], 8, vl),
822
+ ne.value.body.length ? (n(), P(rl, {
823
+ key: 0,
824
+ uid: C.value,
825
+ head: ne.value.head,
826
+ body: ne.value.body,
827
+ caption: ne.value.caption,
828
+ notice: ne.value.notice
829
+ }, null, 8, ["uid", "head", "body", "caption", "notice"])) : h("", !0),
830
+ e.value.userOptions.buttons.annotator && u(Z) ? (n(), P(u(Rt), {
831
+ key: 1,
832
+ color: e.value.style.chart.color,
833
+ backgroundColor: e.value.style.chart.backgroundColor,
834
+ active: oe.value,
835
+ svgRef: u(Z),
836
+ isCursorPointer: D.value,
837
+ onClose: Ne
838
+ }, {
839
+ "annotator-action-close": f(() => [
840
+ y(t.$slots, "annotator-action-close", {}, void 0, !0)
841
+ ]),
842
+ "annotator-action-color": f(({ color: a }) => [
843
+ y(t.$slots, "annotator-action-color", S(T({ color: a })), void 0, !0)
844
+ ]),
845
+ "annotator-action-draw": f(({ mode: a }) => [
846
+ y(t.$slots, "annotator-action-draw", S(T({ mode: a })), void 0, !0)
847
+ ]),
848
+ "annotator-action-undo": f(({ disabled: a }) => [
849
+ y(t.$slots, "annotator-action-undo", S(T({ disabled: a })), void 0, !0)
850
+ ]),
851
+ "annotator-action-redo": f(({ disabled: a }) => [
852
+ y(t.$slots, "annotator-action-redo", S(T({ disabled: a })), void 0, !0)
853
+ ]),
854
+ "annotator-action-delete": f(({ disabled: a }) => [
855
+ y(t.$slots, "annotator-action-delete", S(T({ disabled: a })), void 0, !0)
856
+ ]),
857
+ _: 3
858
+ }, 8, ["color", "backgroundColor", "active", "svgRef", "isCursorPointer"])) : h("", !0),
859
+ y(t.$slots, "userConfig", {}, void 0, !0),
860
+ Gt.value ? (n(), r("div", {
861
+ key: 2,
862
+ ref_key: "noTitle",
863
+ ref: qe,
864
+ class: "vue-data-ui-no-title-space",
865
+ style: "height:36px; width: 100%;background:transparent"
866
+ }, null, 512)) : h("", !0),
867
+ e.value.style.chart.title.text ? (n(), r("div", {
868
+ key: 3,
869
+ ref_key: "chartTitle",
870
+ ref: je,
871
+ style: "width:100%;background:transparent;padding-bottom:24px"
872
+ }, [
873
+ (n(), P(ol, {
874
+ key: `title_${Ce.value}`,
875
+ config: {
876
+ title: {
877
+ cy: "ridgeline-div-title",
878
+ ...e.value.style.chart.title
879
+ },
880
+ subtitle: {
881
+ cy: "ridgeline-div-subtitle",
882
+ ...e.value.style.chart.title.subtitle
883
+ }
884
+ }
885
+ }, null, 8, ["config"]))
886
+ ], 512)) : h("", !0),
887
+ e.value.userOptions.show && ee.value && (u(tt) || u(he)) ? (n(), P(u(Ft), {
888
+ ref_key: "userOptionsRef",
889
+ ref: _e,
890
+ key: `user_option_${Ze.value}`,
891
+ backgroundColor: e.value.style.chart.backgroundColor,
892
+ color: e.value.style.chart.color,
893
+ isPrinting: u(Le),
894
+ isImaging: u(Me),
895
+ uid: C.value,
896
+ hasTooltip: !1,
897
+ callbacks: e.value.userOptions.callbacks,
898
+ hasPdf: e.value.userOptions.buttons.pdf,
899
+ hasImg: e.value.userOptions.buttons.img,
900
+ hasSvg: e.value.userOptions.buttons.svg,
901
+ hasXls: e.value.userOptions.buttons.csv,
902
+ hasTable: e.value.userOptions.buttons.table,
903
+ hasLabel: !1,
904
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
905
+ hasAltCopy: e.value.userOptions.buttons.altCopy,
906
+ isFullscreen: G.value,
907
+ printScale: e.value.userOptions.print.scale,
908
+ chartElement: z.value,
909
+ position: e.value.userOptions.position,
910
+ isTooltip: !1,
911
+ titles: { ...e.value.userOptions.buttonTitles },
912
+ hasAnnotator: e.value.userOptions.buttons.annotator,
913
+ isAnnotation: oe.value,
914
+ tableDialog: e.value.table.useDialog,
915
+ style: _({ visibility: u(tt) ? u(he) ? "visible" : "hidden" : "visible" }),
916
+ isCursorPointer: D.value,
917
+ onToggleFullscreen: dt,
918
+ onGeneratePdf: u(lt),
919
+ onGenerateCsv: Re,
920
+ onGenerateImage: fa,
921
+ onGenerateSvg: pt,
922
+ onToggleTable: ft,
923
+ onToggleAnnotator: Ne,
924
+ onCopyAlt: Fe
925
+ }, Ee({ _: 2 }, [
926
+ t.$slots.menuIcon ? {
927
+ name: "menuIcon",
928
+ fn: f(({ isOpen: a, color: s }) => [
929
+ y(t.$slots, "menuIcon", S(T({ isOpen: a, color: s })), void 0, !0)
930
+ ]),
931
+ key: "0"
932
+ } : void 0,
933
+ t.$slots.optionTooltip ? {
934
+ name: "optionTooltip",
935
+ fn: f(() => [
936
+ y(t.$slots, "optionTooltip", {}, void 0, !0)
937
+ ]),
938
+ key: "1"
939
+ } : void 0,
940
+ t.$slots.optionPdf ? {
941
+ name: "optionPdf",
942
+ fn: f(() => [
943
+ y(t.$slots, "optionPdf", {}, void 0, !0)
944
+ ]),
945
+ key: "2"
946
+ } : void 0,
947
+ t.$slots.optionCsv ? {
948
+ name: "optionCsv",
949
+ fn: f(() => [
950
+ y(t.$slots, "optionCsv", {}, void 0, !0)
951
+ ]),
952
+ key: "3"
953
+ } : void 0,
954
+ t.$slots.optionImg ? {
955
+ name: "optionImg",
956
+ fn: f(() => [
957
+ y(t.$slots, "optionImg", {}, void 0, !0)
958
+ ]),
959
+ key: "4"
960
+ } : void 0,
961
+ t.$slots.optionSvg ? {
962
+ name: "optionSvg",
963
+ fn: f(() => [
964
+ y(t.$slots, "optionSvg", {}, void 0, !0)
965
+ ]),
966
+ key: "5"
967
+ } : void 0,
968
+ t.$slots.optionTable ? {
969
+ name: "optionTable",
970
+ fn: f(() => [
971
+ y(t.$slots, "optionTable", {}, void 0, !0)
972
+ ]),
973
+ key: "6"
974
+ } : void 0,
975
+ t.$slots.optionFullscreen ? {
976
+ name: "optionFullscreen",
977
+ fn: f(({ toggleFullscreen: a, isFullscreen: s }) => [
978
+ y(t.$slots, "optionFullscreen", S(T({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
979
+ ]),
980
+ key: "7"
981
+ } : void 0,
982
+ t.$slots.optionAnnotator ? {
983
+ name: "optionAnnotator",
984
+ fn: f(({ toggleAnnotator: a, isAnnotator: s }) => [
985
+ y(t.$slots, "optionAnnotator", S(T({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
986
+ ]),
987
+ key: "8"
988
+ } : void 0,
989
+ t.$slots.optionAltCopy ? {
990
+ name: "optionAltCopy",
991
+ fn: f(({ altCopy: a }) => [
992
+ y(t.$slots, "optionAltCopy", S(T({ altCopy: a })), void 0, !0)
993
+ ]),
994
+ key: "9"
995
+ } : void 0
996
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "callbacks", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "printScale", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "tableDialog", "style", "isCursorPointer", "onGeneratePdf"])) : h("", !0),
997
+ g("div", dl, [
998
+ (n(), r("svg", {
999
+ ref_key: "svgRef",
1000
+ ref: Z,
1001
+ xmlns: u(Ra),
1002
+ "aria-describedby": `chart-instructions-${C.value}`,
1003
+ class: me({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
1004
+ viewBox: `0 0 ${p.value.width <= 0 ? 10 : p.value.width} ${A.value.fullHeight <= 0 ? 10 : A.value.fullHeight}`,
1005
+ style: _(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${Qe.value}px; width: 100%;` : ""}`),
1006
+ tabindex: "0",
1007
+ onFocus: ga,
1008
+ onBlur: pa,
1009
+ onKeydown: ma
1010
+ }, [
1011
+ Xe(u(Et)),
1012
+ g("defs", null, [
1013
+ (n(!0), r(m, null, O(F.value, (a, s) => (n(), r("linearGradient", {
1014
+ id: `gradient-${a.id}-${C.value}`,
1015
+ x1: "50%",
1016
+ y1: "0%",
1017
+ x2: "50%",
1018
+ y2: "100%"
1019
+ }, [
1020
+ g("stop", {
1021
+ offset: "0%",
1022
+ "stop-color": a.color,
1023
+ "stop-opacity": "1"
1024
+ }, null, 8, yl),
1025
+ g("stop", {
1026
+ offset: "30%",
1027
+ "stop-color": a.color,
1028
+ "stop-opacity": "0.7"
1029
+ }, null, 8, gl),
1030
+ g("stop", {
1031
+ offset: "70%",
1032
+ "stop-color": a.color,
1033
+ "stop-opacity": "0.3"
1034
+ }, null, 8, pl),
1035
+ g("stop", {
1036
+ offset: "100%",
1037
+ "stop-color": a.color,
1038
+ "stop-opacity": "0.1"
1039
+ }, null, 8, ml)
1040
+ ], 8, fl))), 256)),
1041
+ (n(!0), r(m, null, O(w.value, (a, s) => (n(), r(m, null, [
1042
+ (n(!0), r(m, null, O(a.datapoints, (o, v) => (n(), r("linearGradient", {
1043
+ key: `grad${o.id}`,
1044
+ id: `gradient-single-${C.value}-${o.uid}`,
1045
+ x1: "50%",
1046
+ y1: "0%",
1047
+ x2: "50%",
1048
+ y2: "100%"
1049
+ }, [
1050
+ g("stop", {
1051
+ offset: "0%",
1052
+ "stop-color": o.color,
1053
+ "stop-opacity": "1"
1054
+ }, null, 8, xl),
1055
+ g("stop", {
1056
+ offset: "30%",
1057
+ "stop-color": o.color,
1058
+ "stop-opacity": "0.7"
1059
+ }, null, 8, kl),
1060
+ g("stop", {
1061
+ offset: "70%",
1062
+ "stop-color": o.color,
1063
+ "stop-opacity": "0.3"
1064
+ }, null, 8, Cl),
1065
+ g("stop", {
1066
+ offset: "100%",
1067
+ "stop-color": o.color,
1068
+ "stop-opacity": "0.1"
1069
+ }, null, 8, Al)
1070
+ ], 8, bl))), 128))
1071
+ ], 64))), 256))
1072
+ ]),
1073
+ (n(!0), r(m, null, O(w.value, (a, s) => (n(), r("g", {
1074
+ key: `ds-${s}`
1075
+ }, [
1076
+ (n(!0), r(m, null, O(a.datapoints, (o, v) => (n(), r("g", {
1077
+ key: o.id
1078
+ }, [
1079
+ t.$slots.pattern ? (n(), r("g", wl, [
1080
+ g("defs", null, [
1081
+ y(t.$slots, "pattern", Be({ ref_for: !0 }, { datapointIndex: s, seriesIndex: v, patternId: `pattern_${C.value}_${o.uid}` }), void 0, !0)
1082
+ ])
1083
+ ])) : h("", !0),
1084
+ g("path", {
1085
+ fill: t.$slots.pattern ? `url(#pattern_${C.value}_${o.uid})` : e.value.style.chart.backgroundColor,
1086
+ stroke: "none",
1087
+ "stroke-linecap": "round",
1088
+ d: e.value.style.chart.areas.smooth ? o.smoothPath : o.straightPath,
1089
+ style: _({
1090
+ opacity: e.value.style.chart.areas.opacity
1091
+ })
1092
+ }, null, 12, $l),
1093
+ g("path", {
1094
+ fill: "none",
1095
+ stroke: e.value.style.chart.areas.stroke.useSerieColor ? o.color : e.value.style.chart.areas.stroke.color,
1096
+ "stroke-width": e.value.style.chart.areas.strokeWidth,
1097
+ d: e.value.style.chart.areas.smooth ? o.smoothPathRidge : o.straightPathRidge,
1098
+ "stroke-linecap": "round",
1099
+ "stroke-linejoin": "round",
1100
+ class: me({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !u(q) }),
1101
+ style: _({
1102
+ strokeDasharray: o.pathLength,
1103
+ strokeDashoffset: e.value.useCssAnimation ? o.pathLength : 0
1104
+ })
1105
+ }, null, 14, _l),
1106
+ g("path", {
1107
+ fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${o.id}-${C.value})` : `url(#gradient-single-${C.value}-${o.uid})` : o.color,
1108
+ stroke: "none",
1109
+ d: e.value.style.chart.areas.smooth ? o.smoothPath : o.straightPath,
1110
+ "stroke-linecap": "round",
1111
+ "stroke-linejoin": "round",
1112
+ class: me({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !u(q) }),
1113
+ style: _({
1114
+ strokeDasharray: o.pathLength,
1115
+ strokeDashoffset: e.value.useCssAnimation ? o.pathLength : 0
1116
+ })
1117
+ }, null, 14, Pl),
1118
+ e.value.style.chart.zeroLine.show ? (n(), r("path", {
1119
+ key: 1,
1120
+ stroke: e.value.style.chart.zeroLine.useSerieColor ? o.color : e.value.style.chart.zeroLine.stroke,
1121
+ "stroke-dasharray": e.value.style.chart.zeroLine.strokeDasharray,
1122
+ "stroke-width": e.value.style.chart.zeroLine.strokeWidth,
1123
+ d: o.zeroPath,
1124
+ "stroke-linecap": "round"
1125
+ }, null, 8, Sl)) : h("", !0),
1126
+ e.value.style.chart.areas.maxPoint.show && o.plots.length > 1 ? (n(!0), r(m, { key: 2 }, O(o.plots, ($) => (n(), r(m, null, [
1127
+ $.isMaxPoint ? (n(), r("line", {
1128
+ key: 0,
1129
+ x1: $.x,
1130
+ y1: $.y,
1131
+ x2: $.x,
1132
+ y2: $.zero,
1133
+ stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(Fa)(o.color) : e.value.style.chart.areas.maxPoint.stroke,
1134
+ "stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
1135
+ "stroke-linecap": "round",
1136
+ "stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
1137
+ }, null, 8, Tl)) : h("", !0)
1138
+ ], 64))), 256)) : h("", !0),
1139
+ o.plots.length === 1 ? (n(), r("circle", {
1140
+ key: 3,
1141
+ cx: o.plots[0].x,
1142
+ cy: o.plots[0].y,
1143
+ stroke: e.value.style.chart.selector.dot.stroke,
1144
+ "stroke-width": e.value.style.chart.selector.dot.strokeWidth,
1145
+ r: e.value.style.chart.selector.dot.radius,
1146
+ fill: e.value.style.chart.selector.dot.useDatapointColor ? o.color : e.value.style.chart.selector.dot.fill,
1147
+ style: {
1148
+ pointerEvents: "none"
1149
+ }
1150
+ }, null, 8, Ol)) : h("", !0)
1151
+ ]))), 128)),
1152
+ g("text", {
1153
+ x: a.label.x,
1154
+ y: a.label.y,
1155
+ "text-anchor": "end",
1156
+ "font-size": e.value.style.chart.yAxis.labels.fontSize,
1157
+ "font-weight": e.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
1158
+ fill: e.value.style.chart.yAxis.labels.color,
1159
+ style: _({
1160
+ cursor: e.value.style.chart.dialog.show && D.value ? "pointer" : "default"
1161
+ }),
1162
+ "text-decoration": e.value.style.chart.dialog.show && (le.value === s || Y.value && a.uid === Y.value.uid || U.value === s) ? "underline" : "",
1163
+ onMouseenter: (o) => oa(s),
1164
+ onMouseleave: sa,
1165
+ onClick: (o) => ht(a)
1166
+ }, B(a.name), 45, Ll)
1167
+ ]))), 128)),
1168
+ e.value.style.chart.xAxis.labels.values.length ? (n(), r("g", {
1169
+ key: 0,
1170
+ ref_key: "timeLabelsEls",
1171
+ ref: $e
1172
+ }, [
1173
+ (n(!0), r(m, null, O(M.value, (a, s) => y(t.$slots, "time-label", Be({ ref_for: !0 }, {
1174
+ show: a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || a && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === M.value.length - 1) || a && c.value && c.value.index === s || a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(M.value.length / e.value.style.chart.xAxis.labels.modulo) === 0,
1175
+ fontSize: e.value.style.chart.xAxis.labels.fontSize,
1176
+ content: a.label,
1177
+ textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1178
+ fill: e.value.style.chart.xAxis.labels.color,
1179
+ transform: `translate(${a.selectorX}, ${A.value.top + a.height + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
1180
+ x: a.selectorX,
1181
+ y: A.value.bottom + e.value.style.chart.xAxis.labels.offsetY
1182
+ }), () => [
1183
+ a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || a && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === M.value.length - 1) || a && c.value && c.value.index === s || a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(M.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (n(), r("g", Ml, [
1184
+ String(a.label).includes(`
1185
+ `) ? (n(), r("text", {
1186
+ key: 1,
1187
+ class: "vue-ui-ridgeline-x-axis-label",
1188
+ "font-size": e.value.style.chart.xAxis.labels.fontSize,
1189
+ fill: e.value.style.chart.xAxis.labels.color,
1190
+ "font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
1191
+ transform: `translate(${a.selectorX}, ${A.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
1192
+ "text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1193
+ style: _({
1194
+ opacity: c.value ? c.value.index === s ? 1 : 0.2 : 1
1195
+ }),
1196
+ innerHTML: u(Ea)({
1197
+ content: String(a.label),
1198
+ fontSize: e.value.style.chart.xAxis.labels.fontSize,
1199
+ fill: e.value.style.chart.xAxis.labels.color,
1200
+ x: 0,
1201
+ y: 0
1202
+ })
1203
+ }, null, 12, Dl)) : (n(), r("text", {
1204
+ key: 0,
1205
+ class: "vue-ui-ridgeline-x-axis-label",
1206
+ "font-size": e.value.style.chart.xAxis.labels.fontSize,
1207
+ fill: e.value.style.chart.xAxis.labels.color,
1208
+ "font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
1209
+ transform: `translate(${a.selectorX}, ${A.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
1210
+ "text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1211
+ style: _({
1212
+ opacity: c.value ? c.value.index === s ? 1 : 0.2 : 1
1213
+ })
1214
+ }, B(a.label), 13, zl))
1215
+ ])) : h("", !0)
1216
+ ], !0)), 256))
1217
+ ], 512)) : h("", !0),
1218
+ g("g", null, [
1219
+ (n(!0), r(m, null, O(M.value, (a, s) => (n(), r("rect", {
1220
+ x: a.x,
1221
+ y: a.y,
1222
+ width: a.width < 0 ? 0.1 : a.width,
1223
+ height: a.height < 0 ? 0.1 : a.height,
1224
+ fill: "transparent",
1225
+ onMouseenter: (o) => ut(a),
1226
+ onMouseleave: (o) => it(a),
1227
+ onClick: () => ct(a)
1228
+ }, null, 40, Il))), 256)),
1229
+ e.value.style.chart.selector.show && c.value ? (n(), r("line", {
1230
+ key: 0,
1231
+ x1: c.value.selectorX,
1232
+ x2: c.value.selectorX,
1233
+ y1: c.value.y,
1234
+ y2: c.value.y + c.value.height - L.value / 2,
1235
+ stroke: e.value.style.chart.selector.stroke,
1236
+ "stroke-width": e.value.style.chart.selector.strokeWidth,
1237
+ "stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
1238
+ "stroke-linecap": "round",
1239
+ style: { pointerEvents: "none" }
1240
+ }, null, 8, Nl)) : h("", !0),
1241
+ c.value ? (n(!0), r(m, { key: 1 }, O(w.value, (a) => (n(), r(m, null, [
1242
+ (n(!0), r(m, null, O(a.datapoints, (s) => (n(), r(m, null, [
1243
+ (n(!0), r(m, null, O(s.plots, (o, v) => (n(), r(m, null, [
1244
+ c.value && c.value.index === v ? (n(), r("circle", {
1245
+ key: 0,
1246
+ cx: o.x,
1247
+ cy: o.y,
1248
+ stroke: e.value.style.chart.selector.dot.stroke,
1249
+ "stroke-width": e.value.style.chart.selector.dot.strokeWidth,
1250
+ r: e.value.style.chart.selector.dot.radius,
1251
+ fill: e.value.style.chart.selector.dot.useDatapointColor ? s.color : e.value.style.chart.selector.dot.fill,
1252
+ style: {
1253
+ pointerEvents: "none"
1254
+ }
1255
+ }, null, 8, Rl)) : h("", !0),
1256
+ c.value && c.value.index === v ? (n(), r("text", {
1257
+ key: 1,
1258
+ x: vt(
1259
+ o.x,
1260
+ u(xe)(
1261
+ e.value.style.chart.selector.labels.formatter,
1262
+ o.value,
1263
+ u(ke)({
1264
+ p: e.value.style.chart.xAxis.labels.prefix,
1265
+ v: o.value,
1266
+ s: e.value.style.chart.xAxis.labels.suffix,
1267
+ r: e.value.style.chart.selector.labels.rounding
1268
+ })
1269
+ ),
1270
+ e.value.style.chart.selector.labels.fontSize
1271
+ ) ? o.x - e.value.style.chart.selector.labels.fontSize / 2 : o.x + e.value.style.chart.selector.labels.fontSize / 2,
1272
+ y: o.y + e.value.style.chart.selector.labels.fontSize / 3,
1273
+ "text-anchor": vt(
1274
+ o.x,
1275
+ u(xe)(
1276
+ e.value.style.chart.selector.labels.formatter,
1277
+ o.value,
1278
+ u(ke)({
1279
+ p: e.value.style.chart.xAxis.labels.prefix,
1280
+ v: o.value,
1281
+ s: e.value.style.chart.xAxis.labels.suffix,
1282
+ r: e.value.style.chart.selector.labels.rounding
1283
+ })
1284
+ ),
1285
+ e.value.style.chart.selector.labels.fontSize
1286
+ ) ? "end" : "start",
1287
+ "font-size": e.value.style.chart.selector.labels.fontSize,
1288
+ fill: e.value.style.chart.selector.labels.color,
1289
+ style: {
1290
+ pointerEvents: "none"
1291
+ }
1292
+ }, B(u(xe)(
1293
+ e.value.style.chart.selector.labels.formatter,
1294
+ o.value,
1295
+ u(ke)({
1296
+ p: e.value.style.chart.xAxis.labels.prefix,
1297
+ v: o.value,
1298
+ s: e.value.style.chart.xAxis.labels.suffix,
1299
+ r: e.value.style.chart.selector.labels.rounding
1300
+ })
1301
+ )), 9, Fl)) : h("", !0)
1302
+ ], 64))), 256))
1303
+ ], 64))), 256))
1304
+ ], 64))), 256)) : h("", !0)
1305
+ ]),
1306
+ y(t.$slots, "svg", {
1307
+ svg: {
1308
+ ...p.value,
1309
+ isPrintingImg: u(Le) | u(Me) | ve.value,
1310
+ isPrintingSvg: de.value
1311
+ }
1312
+ }, void 0, !0)
1313
+ ], 46, hl)),
1314
+ t.$slots.hint ? (n(), r("div", El, [
1315
+ y(t.$slots, "hint", S(T({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: Pe.value })), void 0, !0)
1316
+ ])) : h("", !0)
1317
+ ]),
1318
+ t.$slots.watermark ? (n(), r("div", Xl, [
1319
+ y(t.$slots, "watermark", S(T({ isPrinting: u(Le) || u(Me) || ve.value || de.value })), void 0, !0)
1320
+ ])) : h("", !0),
1321
+ g("div", {
1322
+ ref_key: "chartLegend",
1323
+ ref: Ke
1324
+ }, [
1325
+ e.value.style.chart.legend.show ? (n(), P(ll, {
1326
+ key: `legend_${Ae.value}`,
1327
+ legendSet: F.value,
1328
+ config: la.value,
1329
+ isCursorPointer: D.value,
1330
+ onClickMarker: l[0] || (l[0] = ({ legend: a }) => fe(a.id))
1331
+ }, Ee({
1332
+ item: f(({ legend: a }) => [
1333
+ u(q) ? h("", !0) : (n(), r("div", {
1334
+ key: 0,
1335
+ style: _(`opacity:${x.value.includes(a.id) ? 0.5 : 1}`),
1336
+ onClick: (s) => a.segregate()
1337
+ }, B(a.name), 13, Bl))
1338
+ ]),
1339
+ legendToggle: f(() => [
1340
+ F.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !u(q) ? (n(), P(ul, {
1341
+ key: 0,
1342
+ backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
1343
+ color: e.value.style.chart.legend.selectAllToggle.color,
1344
+ fontSize: e.value.style.chart.legend.fontSize,
1345
+ checked: x.value.length > 0,
1346
+ isCursorPointer: D.value,
1347
+ onToggle: Kt
1348
+ }, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : h("", !0)
1349
+ ]),
1350
+ _: 2
1351
+ }, [
1352
+ t.$slots.pattern ? {
1353
+ name: "legend-pattern",
1354
+ fn: f(({ legend: a, index: s }) => [
1355
+ Xe(sl, {
1356
+ shape: a.shape,
1357
+ radius: 30,
1358
+ stroke: "none",
1359
+ plot: { x: 30, y: 30 },
1360
+ fill: `url(#pattern_${C.value}_${s})`
1361
+ }, null, 8, ["shape", "fill"])
1362
+ ]),
1363
+ key: "0"
1364
+ } : void 0
1365
+ ]), 1032, ["legendSet", "config", "isCursorPointer"])) : h("", !0),
1366
+ y(t.$slots, "legend", { legend: F.value }, void 0, !0)
1367
+ ], 512),
1368
+ t.$slots.source ? (n(), r("div", {
1369
+ key: 6,
1370
+ ref_key: "source",
1371
+ ref: Ye,
1372
+ dir: "auto"
1373
+ }, [
1374
+ y(t.$slots, "source", {}, void 0, !0)
1375
+ ], 512)) : h("", !0),
1376
+ ee.value && e.value.userOptions.buttons.table ? (n(), P(La(se.value.component), Be({ key: 7 }, se.value.props, {
1377
+ ref_key: "tableUnit",
1378
+ ref: te,
1379
+ onClose: gt
1380
+ }), Ee({
1381
+ content: f(() => [
1382
+ (n(), P(u(Nt), {
1383
+ key: `table_${Ut.value}`,
1384
+ colNames: Q.value.colNames,
1385
+ head: Q.value.head,
1386
+ body: Q.value.body,
1387
+ config: Q.value.config,
1388
+ title: e.value.table.useDialog ? "" : se.value.title,
1389
+ withCloseButton: !e.value.table.useDialog,
1390
+ isCursorPointer: D.value,
1391
+ onClose: gt
1392
+ }, {
1393
+ th: f(({ th: a }) => [
1394
+ g("div", { innerHTML: a }, null, 8, Hl)
1395
+ ]),
1396
+ td: f(({ td: a }) => [
1397
+ He(B(a.name ? a.name : u(xe)(
1398
+ e.value.style.chart.selector.labels.formatter,
1399
+ a,
1400
+ u(ke)({
1401
+ p: e.value.style.chart.xAxis.labels.prefix,
1402
+ v: a,
1403
+ s: e.value.style.chart.xAxis.labels.suffix,
1404
+ r: e.value.table.td.roundingValue
1405
+ })
1406
+ )), 1)
1407
+ ]),
1408
+ _: 1
1409
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
1410
+ ]),
1411
+ _: 2
1412
+ }, [
1413
+ e.value.table.useDialog ? {
1414
+ name: "title",
1415
+ fn: f(() => [
1416
+ He(B(se.value.title), 1)
1417
+ ]),
1418
+ key: "0"
1419
+ } : void 0,
1420
+ e.value.table.useDialog ? {
1421
+ name: "actions",
1422
+ fn: f(() => [
1423
+ g("button", {
1424
+ tabindex: "0",
1425
+ class: "vue-ui-user-options-button",
1426
+ onClick: l[1] || (l[1] = (a) => Re(e.value.userOptions.callbacks.csv)),
1427
+ style: _({ cursor: D.value ? "pointer" : "default" })
1428
+ }, [
1429
+ Xe(u(Dt), {
1430
+ name: "fileCsv",
1431
+ stroke: se.value.props.color
1432
+ }, null, 8, ["stroke"])
1433
+ ], 4)
1434
+ ]),
1435
+ key: "1"
1436
+ } : void 0
1437
+ ]), 1040)) : h("", !0),
1438
+ e.value.style.chart.dialog.show ? (n(), P(u(Ge), {
1439
+ key: 8,
1440
+ ref_key: "dialog",
1441
+ ref: we,
1442
+ onClose: l[2] || (l[2] = (a) => Y.value = null),
1443
+ backgroundColor: e.value.style.chart.dialog.backgroundColor,
1444
+ color: e.value.style.chart.dialog.color,
1445
+ headerBg: e.value.style.chart.dialog.header.backgroundColor,
1446
+ headerColor: e.value.style.chart.dialog.header.color,
1447
+ isFullscreen: G.value,
1448
+ fullscreenParent: z.value,
1449
+ isCursorPointer: D.value,
1450
+ withPadding: ""
1451
+ }, {
1452
+ title: f(() => [
1453
+ He(B(Y.value.name), 1)
1454
+ ]),
1455
+ content: f(() => [
1456
+ Y.value ? (n(), P(u(zt), {
1457
+ key: 0,
1458
+ config: ye.value,
1459
+ dataset: ge.value,
1460
+ onCopyAlt: ya
1461
+ }, null, 8, ["config", "dataset"])) : h("", !0)
1462
+ ]),
1463
+ _: 1
1464
+ }, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent", "isCursorPointer"])) : h("", !0),
1465
+ y(t.$slots, "skeleton", {}, () => [
1466
+ u(q) ? (n(), P(Ka, { key: 0 })) : h("", !0)
1467
+ ], !0)
1468
+ ], 46, cl));
1469
+ }
1470
+ }, vo = /* @__PURE__ */ il(Ul, [["__scopeId", "data-v-b754f07d"]]);
1471
+ export {
1472
+ vo as default
1473
+ };