vue-data-ui 3.25.11 → 3.25.13

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