vue-data-ui 3.23.10 → 3.23.11

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