vue-data-ui 3.22.13 → 3.23.0

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 (224) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
  4. package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
  5. package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
  6. package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
  7. package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
  8. package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
  9. package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
  10. package/dist/HillActions-BWhxHlrj.js +187 -0
  11. package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
  13. package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
  14. package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
  15. package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
  16. package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
  17. package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
  18. package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
  19. package/dist/Title-BODtwViI.js +87 -0
  20. package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
  21. package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
  93. package/dist/exposedLib-DWLRqRhv.js +25 -0
  94. package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
  95. package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
  96. package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
  97. package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
  98. package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
  99. package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +493 -0
  105. package/dist/types/vue-ui-hill.d.ts +90 -0
  106. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  107. package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
  108. package/dist/useHints-Dq_w2E8B.js +66 -0
  109. package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
  110. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
  111. package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
  112. package/dist/useTransitions-g_zBREk2.js +39 -0
  113. package/dist/utils.js +14 -14
  114. package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
  115. package/dist/vue-data-ui.js +77 -76
  116. package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
  117. package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
  119. package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
  120. package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
  121. package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
  122. package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
  123. package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
  124. package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
  125. package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
  126. package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
  127. package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
  128. package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
  129. package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
  130. package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
  131. package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
  132. package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
  133. package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
  134. package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
  135. package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
  136. package/dist/vue-ui-funnel-CjYosIik.js +797 -0
  137. package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
  138. package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
  139. package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
  140. package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
  141. package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
  142. package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
  143. package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
  144. package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
  145. package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
  146. package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
  147. package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
  148. package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
  149. package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
  150. package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
  151. package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
  152. package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
  153. package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
  154. package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
  155. package/dist/vue-ui-rating--K7rX2an.js +360 -0
  156. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
  157. package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
  158. package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
  159. package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
  160. package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
  161. package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
  162. package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
  163. package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
  164. package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
  165. package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
  166. package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
  167. package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
  168. package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
  169. package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
  170. package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
  171. package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
  172. package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
  173. package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
  174. package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
  175. package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
  176. package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
  177. package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
  178. package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
  179. package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
  180. package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
  181. package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
  182. package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
  183. package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
  184. package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
  185. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  186. package/package.json +2 -2
  187. package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
  188. package/dist/Title-BuPs74IB.js +0 -87
  189. package/dist/exposedLib-Ciw6TGtP.js +0 -25
  190. package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
  191. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  192. package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
  193. package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
  194. package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
  195. package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
  196. package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
  197. package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
  198. package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
  199. package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
  200. package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
  201. package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
  202. package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
  203. package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
  204. package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
  205. package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
  206. package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
  207. package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
  208. package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
  209. package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
  210. package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
  211. package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
  212. package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
  213. package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
  214. package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
  215. package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
  216. package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
  217. package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
  218. package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
  219. package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
  220. package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
  221. package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
  222. package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
  223. package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
  224. package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
@@ -0,0 +1,1663 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, D as n, G as r, Ht as i, Jt as a, Kt as o, N as s, P as ee, Pt as c, Q as te, S as ne, V as re, X as ie, ht as ae, i as l, jt as oe, pt as se, q as ce, r as le, t as ue, tt as de, w as fe } from "./lib-BuMGJ_a0.js";
3
+ import { n as pe, t as me } from "./useHints-Dq_w2E8B.js";
4
+ import { t as he } from "./useTimeLabels-B9CEuiLZ.js";
5
+ import { t as ge } from "./useConfig-BilxnBNr.js";
6
+ import { t as _e } from "./usePrinter-BFvi4jVy.js";
7
+ import { n as ve, t as ye } from "./BaseScanner-DZvpgOjM.js";
8
+ import { t as be } from "./useSvgExport-Ba9qBr9M.js";
9
+ import { t as xe } from "./useNestedProp--NSEmhOH.js";
10
+ import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
11
+ import { t as Ce } from "./useTimeLabelCollider-AEcY4Ioe.js";
12
+ import { t as we } from "./img-DIQG5q8T.js";
13
+ import { n as Te } from "./Title-BODtwViI.js";
14
+ import { t as Ee } from "./Shape-BPMV94Ij.js";
15
+ import { t as De } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
+ import { l as Oe, t as ke } from "./useResponsive-ZtArZtUf.js";
17
+ import { t as Ae } from "./DefGrad-DVBqDjhO.js";
18
+ import { t as je } from "./BaseLegendToggle-CtAPwzr2.js";
19
+ import { t as Me } from "./A11yDataTable-DdRsVULz.js";
20
+ import { t as Ne } from "./useUserOptionState-DK-_1ddE.js";
21
+ import { t as Pe } from "./useChartAccessibility-DYqac8yF.js";
22
+ import { t as Fe } from "./Legend-CQTRlzK-.js";
23
+ import { t as Ie } from "./vue_ui_ridgeline-VM8_mx4J.js";
24
+ import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Le, createTextVNode as Re, createVNode as ze, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Be, nextTick as Ve, normalizeClass as He, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Ue, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as We, shallowRef as Ge, toDisplayString as w, toRefs as Ke, unref as T, watch as qe, watchEffect as Je, withCtx as E } from "vue";
25
+ //#region src/components/vue-ui-ridgeline.vue
26
+ var Ye = /* @__PURE__ */ e({ default: () => yt }), Xe = ["id"], Ze = ["id"], Qe = { style: { position: "relative" } }, $e = [
27
+ "xmlns",
28
+ "aria-describedby",
29
+ "viewBox"
30
+ ], et = { key: 0 }, tt = ["fill", "d"], nt = [
31
+ "stroke",
32
+ "stroke-width",
33
+ "d"
34
+ ], rt = ["fill", "d"], it = [
35
+ "stroke",
36
+ "stroke-dasharray",
37
+ "stroke-width",
38
+ "d"
39
+ ], at = [
40
+ "x1",
41
+ "y1",
42
+ "x2",
43
+ "y2",
44
+ "stroke",
45
+ "stroke-width",
46
+ "stroke-dasharray"
47
+ ], ot = [
48
+ "cx",
49
+ "cy",
50
+ "stroke",
51
+ "stroke-width",
52
+ "r",
53
+ "fill"
54
+ ], st = [
55
+ "x",
56
+ "y",
57
+ "font-size",
58
+ "font-weight",
59
+ "fill",
60
+ "text-decoration",
61
+ "onMouseenter",
62
+ "onClick"
63
+ ], ct = { key: 0 }, lt = [
64
+ "font-size",
65
+ "fill",
66
+ "font-weight",
67
+ "transform",
68
+ "text-anchor"
69
+ ], ut = [
70
+ "font-size",
71
+ "fill",
72
+ "font-weight",
73
+ "transform",
74
+ "text-anchor",
75
+ "innerHTML"
76
+ ], dt = [
77
+ "x",
78
+ "y",
79
+ "width",
80
+ "height",
81
+ "onMouseenter",
82
+ "onMouseleave",
83
+ "onClick"
84
+ ], ft = [
85
+ "x1",
86
+ "x2",
87
+ "y1",
88
+ "y2",
89
+ "stroke",
90
+ "stroke-width",
91
+ "stroke-dasharray"
92
+ ], pt = [
93
+ "cx",
94
+ "cy",
95
+ "stroke",
96
+ "stroke-width",
97
+ "r",
98
+ "fill"
99
+ ], mt = [
100
+ "x",
101
+ "y",
102
+ "text-anchor",
103
+ "font-size",
104
+ "fill"
105
+ ], ht = {
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
+ }, gt = {
116
+ key: 5,
117
+ class: "vue-data-ui-watermark"
118
+ }, _t = ["onClick"], vt = ["innerHTML"], yt = /*#__PURE__*/ De({
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: De, emit: Ye }) {
141
+ let yt = g(() => import("./vue-ui-xy-DZj5DT-q.js").then((e) => e.n)), bt = g(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), xt = g(() => import("./vue-ui-accordion-61MlW-Ge.js").then((e) => e.n)), St = g(() => import("./DataTable-D4tM9s5Y.js")), Ct = g(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), wt = g(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), Tt = g(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), Et = g(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), { vue_ui_ridgeline: Dt } = ge(), { isThemeValid: Ot, warnInvalidTheme: kt } = Se(), D = e, O = d({
142
+ get() {
143
+ return Array.isArray(z.value) && z.value.length > 0;
144
+ },
145
+ set(e) {
146
+ return e;
147
+ }
148
+ }), At = Ye, k = x(null), jt = x(null), Mt = x(null), A = Ge(null), j = Ge(null), Nt = x(null), Pt = x(null), Ft = x(0), It = x(0), Lt = x(0), M = x(ce()), Rt = x(0), zt = x(0), Bt = x(512), N = x(null), P = x(null), Vt = x(null), Ht = x(0), Ut = x(null), F = x(null), Wt = x(null), Gt = x(!1), Kt = x(!1), I = x(null), qt = x(!1);
149
+ function Jt() {
150
+ let e = xe({
151
+ userConfig: D.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: Ie[t] || D.config,
158
+ defaultConfig: e
159
+ }), r = xe({
160
+ userConfig: D.config,
161
+ defaultConfig: n
162
+ });
163
+ return {
164
+ ...r,
165
+ customPalette: r.customPalette.length ? r.customPalette : o[t] || c
166
+ };
167
+ }
168
+ let L = x(Jt());
169
+ pe({
170
+ config: () => L.value,
171
+ dataset: () => D.dataset,
172
+ component: "VueUiRidgeline",
173
+ rules: [
174
+ me.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 R = d(() => L.value.userOptions.useCursorPointer), Yt = d(() => a({
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: L.value.skeletonConfig ?? {}
227
+ })), { loading: Xt, FINAL_DATASET: z, manualLoading: Zt } = ve({
228
+ ...Ke(D),
229
+ FINAL_CONFIG: L,
230
+ prepareConfig: Jt,
231
+ skeletonDataset: D.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: a({
462
+ defaultConfig: L.value,
463
+ userConfig: Yt.value
464
+ })
465
+ }), B = x(Math.min(L.value.style.chart.areas.height, L.value.style.chart.areas.rowHeight)), { userOptionsVisible: Qt, setUserOptionsVisibility: $t, keepUserOptionState: en } = Ne({ config: L.value }), { svgRef: V } = Pe({ config: L.value.style.chart.title }), tn = d(() => !!L.value.debug);
466
+ function nn() {
467
+ let e = z.value || [];
468
+ if (!Array.isArray(e) || e.length === 0) {
469
+ de({
470
+ componentName: "VueUiRidgeline",
471
+ type: "dataset",
472
+ debug: tn.value
473
+ }), Zt.value = !0;
474
+ return;
475
+ }
476
+ if (e.forEach((e, t) => {
477
+ se({
478
+ datasetObject: e,
479
+ requiredAttributes: ["name", "datapoints"]
480
+ }).forEach((e) => {
481
+ O.value = !1, de({
482
+ componentName: "VueUiRidgeline",
483
+ type: "datasetSerieAttribute",
484
+ property: e,
485
+ index: t,
486
+ debug: tn.value
487
+ });
488
+ }), Array.isArray(e.datapoints) && e.datapoints.length && e.datapoints.forEach((e, n) => {
489
+ se({
490
+ datasetObject: e,
491
+ requiredAttributes: ["name", "values"]
492
+ }).forEach((e) => {
493
+ O.value = !1, de({
494
+ componentName: "VueUiRidgeline",
495
+ type: "datasetSerieAttribute",
496
+ property: `datapoint.${e}`,
497
+ index: `${t}-${n}`,
498
+ debug: tn.value
499
+ });
500
+ });
501
+ });
502
+ }), zt.value = e.length, B.value = Math.min(L.value.style.chart.areas.height, L.value.style.chart.areas.rowHeight), oe(D.dataset) || (Zt.value = L.value.loading), L.value.responsive) {
503
+ let t = Oe(() => {
504
+ let { width: t, height: n } = ke({
505
+ chart: k.value,
506
+ title: L.value.style.chart.title.text ? jt.value : null,
507
+ legend: L.value.style.chart.legend.show ? Mt.value : null,
508
+ source: Nt.value,
509
+ noTitle: Pt.value,
510
+ padding: L.value.style.chart.padding
511
+ });
512
+ requestAnimationFrame(() => {
513
+ Bt.value = t, B.value = e.length ? n / e.length : 0, Ht.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
+ Ue(() => {
520
+ A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect());
521
+ });
522
+ let { isPrinting: rn, isImaging: an, generatePdf: on, generateImage: sn } = _e({
523
+ elementId: `vue-ui-ridgeline_${M.value}`,
524
+ fileName: L.value.style.chart.title.text || "vue-ui-ridgeline",
525
+ options: L.value.userOptions.print
526
+ }), cn = d(() => L.value.userOptions.show && !L.value.style.chart.title.text), ln = d(() => fe(L.value.customPalette)), H = x({ showTable: L.value.table.show });
527
+ qe(() => z.value, async (e) => {
528
+ Array.isArray(e) && e.length && (Qt.value = !L.value.userOptions.showOnChartHover, await Ve(), nn(), Ft.value += 1, Lt.value += 1, H.value.showTable = L.value.table.show);
529
+ }, {
530
+ deep: !0,
531
+ immediate: !0
532
+ }), qe(() => D.dataset, (e) => {
533
+ Array.isArray(e) && e.length > 0 && (Zt.value = !1);
534
+ }, { deep: !0 }), qe(() => Xt.value, async (e) => {
535
+ e || (await Ve(), nn());
536
+ }, { immediate: !0 }), qe(() => D.config, () => {
537
+ L.value = Jt(z.value || null), Qt.value = !L.value.userOptions.showOnChartHover, B.value = Math.min(L.value.style.chart.areas.height, L.value.style.chart.areas.rowHeight), H.value.showTable = L.value.table.show, Ft.value += 1, Lt.value += 1;
538
+ }, { deep: !0 });
539
+ let un = d(() => L.value.style.chart.areas.height / L.value.style.chart.areas.rowHeight);
540
+ function dn() {
541
+ X.value.length ? X.value = [] : Z.value.forEach((e) => {
542
+ X.value.push(e.id);
543
+ }), At("selectLegend", Y.value);
544
+ }
545
+ function fn(e) {
546
+ X.value.includes(e) ? X.value = X.value.filter((t) => t !== e) : X.value.push(e), At("selectLegend", Y.value);
547
+ }
548
+ function pn(e) {
549
+ return Z.value.length ? Z.value.find((t) => t.name === e) || (L.value.debug && console.warn(`VueUiRidgeline - Series name not found "${e}"`), null) : (L.value.debug && console.warn("VueUiRidgeline - There are no series to show."), null);
550
+ }
551
+ function mn(e) {
552
+ let t = pn(e);
553
+ t !== null && X.value.includes(t.id) && fn(t.id);
554
+ }
555
+ function hn(e) {
556
+ let t = pn(e);
557
+ t !== null && (X.value.includes(t.id) || fn(t.id));
558
+ }
559
+ let U = d(() => O.value ? (z.value || []).map((e) => ({
560
+ ...e,
561
+ labelLen: On(e.name, L.value.style.chart.yAxis.labels.fontSize),
562
+ uid: ce(),
563
+ datapoints: e.datapoints.map((e, t) => {
564
+ let n = e.color ? ne(e.color) : ln.value[t] || c[t] || c[t % c.length], r = i(e.name);
565
+ return {
566
+ ...e,
567
+ color: n,
568
+ id: r
569
+ };
570
+ })
571
+ })) : []), gn = d(() => L.value.style.chart.padding.top + B.value * (z.value || []).length + B.value * un.value + L.value.style.chart.padding.bottom), W = d(() => {
572
+ let e = L.value.style.chart.padding;
573
+ return {
574
+ width: Bt.value,
575
+ height: gn.value,
576
+ padding: e
577
+ };
578
+ }), _n = d(() => W.value.width), vn = d(() => W.value.height), yn = x(0), bn = Oe((e) => {
579
+ yn.value = e;
580
+ }, 100);
581
+ Je((e) => {
582
+ let t = Ut.value;
583
+ if (!t) return;
584
+ let n = new ResizeObserver((e) => {
585
+ bn(e[0].contentRect.height);
586
+ });
587
+ n.observe(t), e(() => n.disconnect());
588
+ }), Ue(() => {
589
+ yn.value = 0;
590
+ });
591
+ let G = d(() => ({
592
+ fullHeight: W.value.height + yn.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 - L.value.style.chart.padding.bottom,
597
+ width: W.value.width - (W.value.padding.left + W.value.padding.right)
598
+ })), K = d(() => Math.max(...U.value.flatMap((e) => e.datapoints.map((e) => e.values.length)))), q = x([]), xn = 0;
599
+ Je(() => {
600
+ let e = ++xn;
601
+ (async () => {
602
+ let t = await he({
603
+ values: L.value.style.chart.xAxis.labels.values,
604
+ maxDatapoints: K.value,
605
+ formatter: L.value.style.chart.xAxis.labels.datetimeFormatter,
606
+ start: 0,
607
+ end: L.value.style.chart.xAxis.labels.values.length
608
+ });
609
+ e === xn && (q.value = t);
610
+ })();
611
+ });
612
+ let J = d(() => {
613
+ let e = Math.max(...U.value.map((e) => e.labelLen)), t = W.value.padding.left + e + 16 + L.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: L.value.style.chart.xAxis.labels.values[e] ? q.value[e]?.text ?? "" : "",
619
+ index: e,
620
+ width: n,
621
+ height: gn.value
622
+ });
623
+ return r;
624
+ });
625
+ function Sn(e) {
626
+ return U.value.map((t) => t.datapoints.map((t) => ({
627
+ dp: t,
628
+ selected: t.values[e.index]
629
+ })));
630
+ }
631
+ function Cn(e) {
632
+ N.value = e;
633
+ let t = Sn(e);
634
+ L.value.events.datapointEnter && L.value.events.datapointEnter({
635
+ datapoint: t,
636
+ seriesIndex: e.index
637
+ });
638
+ }
639
+ function wn(e) {
640
+ N.value = null;
641
+ let t = Sn(e);
642
+ L.value.events.datapointLeave && L.value.events.datapointLeave({
643
+ datapoint: t,
644
+ seriesIndex: e.index
645
+ });
646
+ }
647
+ function Tn(e) {
648
+ let t = Sn(e);
649
+ L.value.events.datapointClick && L.value.events.datapointClick({
650
+ datapoint: t,
651
+ seriesIndex: e.index
652
+ }), At("selectX", t);
653
+ }
654
+ function En(e, t) {
655
+ return e.length * t / 2 + t;
656
+ }
657
+ function Dn(e, t, n) {
658
+ return e + En(t, n) > G.value.right;
659
+ }
660
+ function On(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 = d(() => {
665
+ B.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 + L.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 c(e) {
668
+ return isNaN(e / o) ? 0 : e / o;
669
+ }
670
+ return U.value.map((e, t) => {
671
+ let n = G.value.top + B.value * t, o = G.value.top + n + B.value * un.value * (1 - c(a));
672
+ return {
673
+ ...e,
674
+ label: {
675
+ x: r - L.value.style.chart.yAxis.labels.fontSize,
676
+ y: o
677
+ },
678
+ datapoints: e.datapoints.map((e) => {
679
+ let t = e.values.map((t, s) => {
680
+ let ee = 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 * s,
690
+ y: G.value.top + n + B.value * un.value * (1 - c(ee + a)),
691
+ value: t,
692
+ isMaxPoint: t === Math.max(...e.values),
693
+ zero: o
694
+ };
695
+ }), te = `${s(t, o, !1, !1)}`, ne = `M ${r},${o} ${re(t)} ${t.at(-1).x},${o}`, ie = `M ${r},${o} ${t.at(-1).x},${o}`, l = `M ${ee(t)}`, oe = `M ${re(t)}`, se = ae(L.value.style.chart.areas.smooth ? l : oe);
696
+ return {
697
+ ...e,
698
+ uid: ce(),
699
+ plots: t,
700
+ smoothPath: te,
701
+ straightPath: ne,
702
+ zeroPath: ie,
703
+ pathLength: se,
704
+ smoothPathRidge: l,
705
+ straightPathRidge: oe
706
+ };
707
+ }).filter((e) => !X.value.includes(e.id))
708
+ };
709
+ });
710
+ }), X = x([]);
711
+ function kn(e) {
712
+ let t = /* @__PURE__ */ new Map();
713
+ return e.forEach((e) => {
714
+ e.datapoints.forEach((e, n) => {
715
+ let r = i(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: () => fn(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 = d(() => kn(U.value)), An = d(() => ({
729
+ cy: "donut-div-legend",
730
+ backgroundColor: L.value.style.chart.legend.backgroundColor,
731
+ color: L.value.style.chart.legend.color,
732
+ fontSize: L.value.style.chart.legend.fontSize,
733
+ paddingBottom: 12,
734
+ fontWeight: L.value.style.chart.legend.bold ? "bold" : ""
735
+ })), Q = x(!1);
736
+ function jn(e) {
737
+ Q.value = e, Rt.value += 1;
738
+ }
739
+ let Mn = x({}), Nn = x([]);
740
+ function Pn(e) {
741
+ At("selectDatapoint", e), L.value.style.chart.dialog.show && (Nn.value = e.datapoints.map((e) => ({
742
+ name: e.name,
743
+ color: e.color,
744
+ type: "line",
745
+ useArea: !0,
746
+ smooth: L.value.style.chart.areas.smooth,
747
+ series: e.values
748
+ })), P.value = e, Mn.value = te({
749
+ ...L.value.style.chart.dialog.xyChart,
750
+ responsive: !0,
751
+ chart: {
752
+ ...L.value.style.chart.dialog.xyChart.chart,
753
+ grid: {
754
+ ...L.value.style.chart.dialog.xyChart.chart.grid,
755
+ labels: {
756
+ ...L.value.style.chart.dialog.xyChart.chart.grid.labels,
757
+ xAxisLabels: {
758
+ ...L.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
759
+ values: L.value.style.chart.xAxis.labels.values,
760
+ autoRotate: {
761
+ enable: !0,
762
+ angle: L.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels.autoRotate.angle
763
+ },
764
+ datetimeFormatter: L.value.style.chart.xAxis.labels.datetimeFormatter
765
+ }
766
+ }
767
+ },
768
+ tooltip: {
769
+ ...L.value.style.chart.dialog.xyChart.chart.tooltip,
770
+ showTimeLabel: L.value.style.chart.xAxis.labels.values.length > 0
771
+ },
772
+ userOptions: {
773
+ ...L.value.style.chart.dialog.xyChart.chart.userOptions,
774
+ buttons: {
775
+ ...L.value.style.chart.dialog.xyChart.chart.userOptions.buttons,
776
+ altCopy: L.value.userOptions.buttons.altCopy
777
+ },
778
+ callbacks: {
779
+ ...L.value.style.chart.dialog.xyChart.chart.userOptions.callbacks,
780
+ altCopy: () => {}
781
+ },
782
+ useCursorPointer: L.value.userOptions.useCursorPointer
783
+ }
784
+ }
785
+ }), Vt.value && Vt.value.open());
786
+ }
787
+ let Fn = x(null);
788
+ function In(e) {
789
+ Fn.value = e;
790
+ }
791
+ function Ln() {
792
+ Fn.value = null;
793
+ }
794
+ let Rn = x(!1);
795
+ function zn() {
796
+ Rn.value = !Rn.value;
797
+ }
798
+ function Bn() {
799
+ H.value.showTable = !H.value.showTable;
800
+ }
801
+ let Vn = d(() => ({ 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]) })), $ = d(() => {
808
+ let e = [L.value.table.columnNames.series, ...q.value.map((e) => e.text)], t = {
809
+ th: {
810
+ backgroundColor: L.value.table.th.backgroundColor,
811
+ color: L.value.table.th.color,
812
+ outline: L.value.table.th.outline
813
+ },
814
+ td: {
815
+ backgroundColor: L.value.table.td.backgroundColor,
816
+ color: L.value.table.td.color,
817
+ outline: L.value.table.td.outline
818
+ },
819
+ breakpoint: L.value.table.responsiveBreakpoint
820
+ };
821
+ return {
822
+ colNames: [L.value.table.columnNames.series, ...q.value.map((e) => e.text)],
823
+ head: e,
824
+ body: Vn.value.body,
825
+ config: t
826
+ };
827
+ });
828
+ function Hn(e = null) {
829
+ Ve(() => {
830
+ let r = [[L.value.table.columnNames.series, ...q.map((e) => [e.text])], ...Vn.value.body.map((e, t) => [e[0].name, ...e.slice(1)])], i = n([[L.value.style.chart.title.text], [L.value.style.chart.title.subtitle.text]].concat(r));
831
+ e ? e(i) : t({
832
+ csvContent: i,
833
+ title: L.value.style.chart.title.text || "vue-ui-ridgeline"
834
+ });
835
+ });
836
+ }
837
+ function Un() {
838
+ return Y.value;
839
+ }
840
+ async function Wn({ 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 we({
843
+ domElement: k.value,
844
+ base64: !0,
845
+ img: !0,
846
+ scale: e
847
+ });
848
+ return {
849
+ imageUri: i,
850
+ base64: a,
851
+ title: L.value.style.chart.title.text,
852
+ width: t,
853
+ height: n,
854
+ aspectRatio: r
855
+ };
856
+ }
857
+ Ce({
858
+ timeLabelsEls: Ut,
859
+ timeLabels: q,
860
+ slicer: d(() => ({
861
+ min: 0,
862
+ max: K.value
863
+ })),
864
+ configRef: L,
865
+ rotationPath: [
866
+ "style",
867
+ "chart",
868
+ "xAxis",
869
+ "labels",
870
+ "rotation"
871
+ ],
872
+ autoRotatePath: [
873
+ "style",
874
+ "chart",
875
+ "xAxis",
876
+ "labels",
877
+ "autoRotate",
878
+ "enable"
879
+ ],
880
+ isAutoSize: !1,
881
+ width: _n,
882
+ height: vn,
883
+ targetClass: ".vue-ui-ridgeline-x-axis-label",
884
+ angle: L.value.style.chart.xAxis.labels.autoRotate.angle
885
+ });
886
+ let Gn = d(() => {
887
+ let e = L.value.table.useDialog && !L.value.table.show, t = H.value.showTable;
888
+ return {
889
+ component: e ? Et : xt,
890
+ title: `${L.value.style.chart.title.text}${L.value.style.chart.title.subtitle.text ? `: ${L.value.style.chart.title.subtitle.text}` : ""}`,
891
+ props: e ? {
892
+ backgroundColor: L.value.table.th.backgroundColor,
893
+ color: L.value.table.th.color,
894
+ headerColor: L.value.table.th.color,
895
+ headerBg: L.value.table.th.backgroundColor,
896
+ isFullscreen: Q.value,
897
+ fullscreenParent: k.value,
898
+ forcedWidth: Math.min(800, window.innerWidth * .8),
899
+ isCursorPointer: R.value
900
+ } : {
901
+ hideDetails: !0,
902
+ config: {
903
+ open: t,
904
+ maxHeight: 1e4,
905
+ body: {
906
+ backgroundColor: L.value.style.chart.backgroundColor,
907
+ color: L.value.style.chart.color
908
+ },
909
+ head: {
910
+ backgroundColor: L.value.style.chart.backgroundColor,
911
+ color: L.value.style.chart.color
912
+ }
913
+ }
914
+ }
915
+ };
916
+ });
917
+ qe(() => H.value.showTable, (e) => {
918
+ L.value.table.show || (e && L.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
919
+ });
920
+ function Kn() {
921
+ H.value.showTable = !1, Wt.value && Wt.value.setTableIconState(!1);
922
+ }
923
+ let qn = d(() => L.value.style.chart.backgroundColor), Jn = d(() => ({
924
+ ...L.value.style.chart.legend,
925
+ position: "bottom"
926
+ })), { exportSvg: Yn, getSvg: Xn } = be({
927
+ svg: V,
928
+ title: d(() => L.value.style.chart.title),
929
+ legend: Jn,
930
+ legendItems: Z,
931
+ backgroundColor: qn
932
+ });
933
+ async function Zn({ isCb: e }) {
934
+ Kt.value = !0, await Ve();
935
+ try {
936
+ if (e) {
937
+ let { blob: e, url: t, text: n, dataUrl: r } = await Xn();
938
+ await Promise.resolve(L.value.userOptions.callbacks.svg({
939
+ blob: e,
940
+ url: t,
941
+ text: n,
942
+ dataUrl: r
943
+ }));
944
+ } else await Promise.resolve(Yn());
945
+ } finally {
946
+ Kt.value = !1;
947
+ }
948
+ }
949
+ function Qn(e) {
950
+ if (e?.stage === "start") {
951
+ Gt.value = !0;
952
+ return;
953
+ }
954
+ if (e?.stage === "end") {
955
+ Gt.value = !1;
956
+ return;
957
+ }
958
+ sn();
959
+ }
960
+ function $n(e) {
961
+ er("xy-zoom", e.dataset, e.config);
962
+ }
963
+ async function er(e = "main-chart", t = null, n = null) {
964
+ if (At("copyAlt", {
965
+ source: e,
966
+ config: e === "main-chart" ? L.value : Mn.value,
967
+ dataset: e === "main-chart" ? Y.value : Nn.value
968
+ }), !L.value.userOptions.callbacks.altCopy) {
969
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
970
+ return;
971
+ }
972
+ await Promise.resolve(L.value.userOptions.callbacks.altCopy({
973
+ source: e,
974
+ config: e === "main-chart" ? L.value : Mn.value,
975
+ dataset: e === "main-chart" ? Y.value : Nn.value
976
+ }));
977
+ }
978
+ function tr() {
979
+ I.value = null, qt.value = !0;
980
+ }
981
+ function nr() {
982
+ or(), qt.value = !1;
983
+ }
984
+ function rr(e) {
985
+ if (!V.value || Rn.value || document.activeElement !== V.value || !Y.value.length) return;
986
+ let t = e.key === "ArrowUp", n = e.key === "ArrowDown", r = e.key === "ArrowLeft", i = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
987
+ if (!t && !n && !r && !i && !a && !o) return;
988
+ if (e.preventDefault(), e.stopPropagation(), o) {
989
+ or();
990
+ return;
991
+ }
992
+ if (a) {
993
+ if (I.value !== null) {
994
+ let e = Y.value[I.value];
995
+ e && Pn(e);
996
+ return;
997
+ }
998
+ N.value && Tn(N.value);
999
+ return;
1000
+ }
1001
+ if (t || n) {
1002
+ let e = I.value;
1003
+ e = e === null ? n ? 0 : Y.value.length - 1 : ir(e + (n ? 1 : -1)), I.value = e, Fn.value = e;
1004
+ return;
1005
+ }
1006
+ if (!J.value.length) return;
1007
+ let s = N.value?.index ?? null;
1008
+ s = s === null ? i ? 0 : J.value.length - 1 : ar(s + (i ? 1 : -1));
1009
+ let ee = J.value[s];
1010
+ ee && Cn(ee);
1011
+ }
1012
+ function ir(e) {
1013
+ let t = Y.value.length;
1014
+ return t ? (e % t + t) % t : null;
1015
+ }
1016
+ function ar(e) {
1017
+ let t = J.value.length;
1018
+ return t ? (e % t + t) % t : null;
1019
+ }
1020
+ function or() {
1021
+ I.value = null, Fn.value = null, N.value ? wn(N.value) : N.value = null;
1022
+ }
1023
+ let sr = d(() => ({
1024
+ head: $.value.head,
1025
+ body: $.value.body.map((e) => [e[0]?.name ?? "", ...e.slice(1)]),
1026
+ caption: L.value.a11y.translations.tableCaption,
1027
+ notice: L.value.a11y.translations.tableAvailable
1028
+ }));
1029
+ return De({
1030
+ getData: Un,
1031
+ getImage: Wn,
1032
+ generateImage: sn,
1033
+ generateSvg: Zn,
1034
+ generatePdf: on,
1035
+ generateCsv: Hn,
1036
+ hideSeries: hn,
1037
+ showSeries: mn,
1038
+ toggleAnnotator: zn,
1039
+ toggleTable: Bn,
1040
+ toggleFullscreen: jn,
1041
+ copyAlt: er
1042
+ }), (e, t) => (b(), m("div", {
1043
+ ref_key: "ridgelineChart",
1044
+ ref: k,
1045
+ class: He(`vue-data-ui-component vue-ui-ridgeline ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
1046
+ id: `vue-ui-ridgeline_${M.value}`,
1047
+ style: y({
1048
+ fontFamily: L.value.style.fontFamily,
1049
+ width: "100%",
1050
+ textAlign: "center",
1051
+ background: L.value.style.chart.backgroundColor,
1052
+ height: L.value.responsive ? "100%" : void 0
1053
+ }),
1054
+ onMouseenter: t[3] ||= () => T($t)(!0),
1055
+ onMouseleave: t[4] ||= () => T($t)(!1)
1056
+ }, [
1057
+ h("div", {
1058
+ id: `chart-instructions-${M.value}`,
1059
+ class: "sr-only"
1060
+ }, [h("p", null, w(L.value.a11y.translations.keyboardNavigation), 1)], 8, Ze),
1061
+ sr.value.body.length ? (b(), f(Me, {
1062
+ key: 0,
1063
+ uid: M.value,
1064
+ head: sr.value.head,
1065
+ body: sr.value.body,
1066
+ caption: sr.value.caption,
1067
+ notice: sr.value.notice
1068
+ }, null, 8, [
1069
+ "uid",
1070
+ "head",
1071
+ "body",
1072
+ "caption",
1073
+ "notice"
1074
+ ])) : p("", !0),
1075
+ L.value.userOptions.buttons.annotator && T(V) ? (b(), f(T(Ct), {
1076
+ key: 1,
1077
+ color: L.value.style.chart.color,
1078
+ backgroundColor: L.value.style.chart.backgroundColor,
1079
+ active: Rn.value,
1080
+ svgRef: T(V),
1081
+ isCursorPointer: R.value,
1082
+ onClose: zn
1083
+ }, {
1084
+ "annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1085
+ "annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(_({ color: t })), void 0, !0)]),
1086
+ "annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(_({ mode: t })), void 0, !0)]),
1087
+ "annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(_({ disabled: t })), void 0, !0)]),
1088
+ "annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(_({ disabled: t })), void 0, !0)]),
1089
+ "annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(_({ disabled: t })), void 0, !0)]),
1090
+ _: 3
1091
+ }, 8, [
1092
+ "color",
1093
+ "backgroundColor",
1094
+ "active",
1095
+ "svgRef",
1096
+ "isCursorPointer"
1097
+ ])) : p("", !0),
1098
+ C(e.$slots, "userConfig", {}, void 0, !0),
1099
+ cn.value ? (b(), m("div", {
1100
+ key: 2,
1101
+ ref_key: "noTitle",
1102
+ ref: Pt,
1103
+ class: "vue-data-ui-no-title-space",
1104
+ style: "height:36px; width: 100%;background:transparent"
1105
+ }, null, 512)) : p("", !0),
1106
+ L.value.style.chart.title.text ? (b(), m("div", {
1107
+ key: 3,
1108
+ ref_key: "chartTitle",
1109
+ ref: jt,
1110
+ style: "width:100%;background:transparent;padding-bottom:24px"
1111
+ }, [(b(), f(Te, {
1112
+ key: `title_${Ft.value}`,
1113
+ config: {
1114
+ title: {
1115
+ cy: "ridgeline-div-title",
1116
+ ...L.value.style.chart.title
1117
+ },
1118
+ subtitle: {
1119
+ cy: "ridgeline-div-subtitle",
1120
+ ...L.value.style.chart.title.subtitle
1121
+ }
1122
+ }
1123
+ }, null, 8, ["config"]))], 512)) : p("", !0),
1124
+ L.value.userOptions.show && O.value && (T(en) || T(Qt)) ? (b(), f(T(wt), {
1125
+ ref_key: "userOptionsRef",
1126
+ ref: Wt,
1127
+ key: `user_option_${Rt.value}`,
1128
+ backgroundColor: L.value.style.chart.backgroundColor,
1129
+ color: L.value.style.chart.color,
1130
+ isPrinting: T(rn),
1131
+ isImaging: T(an),
1132
+ uid: M.value,
1133
+ hasTooltip: !1,
1134
+ callbacks: L.value.userOptions.callbacks,
1135
+ hasPdf: L.value.userOptions.buttons.pdf,
1136
+ hasImg: L.value.userOptions.buttons.img,
1137
+ hasSvg: L.value.userOptions.buttons.svg,
1138
+ hasXls: L.value.userOptions.buttons.csv,
1139
+ hasTable: L.value.userOptions.buttons.table,
1140
+ hasLabel: !1,
1141
+ hasFullscreen: L.value.userOptions.buttons.fullscreen,
1142
+ hasAltCopy: L.value.userOptions.buttons.altCopy,
1143
+ isFullscreen: Q.value,
1144
+ printScale: L.value.userOptions.print.scale,
1145
+ chartElement: k.value,
1146
+ position: L.value.userOptions.position,
1147
+ isTooltip: !1,
1148
+ titles: { ...L.value.userOptions.buttonTitles },
1149
+ hasAnnotator: L.value.userOptions.buttons.annotator,
1150
+ isAnnotation: Rn.value,
1151
+ tableDialog: L.value.table.useDialog,
1152
+ style: y({ visibility: T(en) ? T(Qt) ? "visible" : "hidden" : "visible" }),
1153
+ isCursorPointer: R.value,
1154
+ onToggleFullscreen: jn,
1155
+ onGeneratePdf: T(on),
1156
+ onGenerateCsv: Hn,
1157
+ onGenerateImage: Qn,
1158
+ onGenerateSvg: Zn,
1159
+ onToggleTable: Bn,
1160
+ onToggleAnnotator: zn,
1161
+ onCopyAlt: er
1162
+ }, Le({ _: 2 }, [
1163
+ e.$slots.menuIcon ? {
1164
+ name: "menuIcon",
1165
+ fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(_({
1166
+ isOpen: t,
1167
+ color: n
1168
+ })), void 0, !0)]),
1169
+ key: "0"
1170
+ } : void 0,
1171
+ e.$slots.optionTooltip ? {
1172
+ name: "optionTooltip",
1173
+ fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
1174
+ key: "1"
1175
+ } : void 0,
1176
+ e.$slots.optionPdf ? {
1177
+ name: "optionPdf",
1178
+ fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
1179
+ key: "2"
1180
+ } : void 0,
1181
+ e.$slots.optionCsv ? {
1182
+ name: "optionCsv",
1183
+ fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
1184
+ key: "3"
1185
+ } : void 0,
1186
+ e.$slots.optionImg ? {
1187
+ name: "optionImg",
1188
+ fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
1189
+ key: "4"
1190
+ } : void 0,
1191
+ e.$slots.optionSvg ? {
1192
+ name: "optionSvg",
1193
+ fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
1194
+ key: "5"
1195
+ } : void 0,
1196
+ e.$slots.optionTable ? {
1197
+ name: "optionTable",
1198
+ fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
1199
+ key: "6"
1200
+ } : void 0,
1201
+ e.$slots.optionFullscreen ? {
1202
+ name: "optionFullscreen",
1203
+ fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(_({
1204
+ toggleFullscreen: t,
1205
+ isFullscreen: n
1206
+ })), void 0, !0)]),
1207
+ key: "7"
1208
+ } : void 0,
1209
+ e.$slots.optionAnnotator ? {
1210
+ name: "optionAnnotator",
1211
+ fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(_({
1212
+ toggleAnnotator: t,
1213
+ isAnnotator: n
1214
+ })), void 0, !0)]),
1215
+ key: "8"
1216
+ } : void 0,
1217
+ e.$slots.optionAltCopy ? {
1218
+ name: "optionAltCopy",
1219
+ fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(_({ altCopy: t })), void 0, !0)]),
1220
+ key: "9"
1221
+ } : void 0,
1222
+ e.$slots["custom-menu-before"] ? {
1223
+ name: "custom-menu-before",
1224
+ fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1225
+ key: "10"
1226
+ } : void 0,
1227
+ e.$slots["custom-menu-after"] ? {
1228
+ name: "custom-menu-after",
1229
+ fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1230
+ key: "11"
1231
+ } : void 0
1232
+ ]), 1032, [
1233
+ "backgroundColor",
1234
+ "color",
1235
+ "isPrinting",
1236
+ "isImaging",
1237
+ "uid",
1238
+ "callbacks",
1239
+ "hasPdf",
1240
+ "hasImg",
1241
+ "hasSvg",
1242
+ "hasXls",
1243
+ "hasTable",
1244
+ "hasFullscreen",
1245
+ "hasAltCopy",
1246
+ "isFullscreen",
1247
+ "printScale",
1248
+ "chartElement",
1249
+ "position",
1250
+ "titles",
1251
+ "hasAnnotator",
1252
+ "isAnnotation",
1253
+ "tableDialog",
1254
+ "style",
1255
+ "isCursorPointer",
1256
+ "onGeneratePdf"
1257
+ ])) : p("", !0),
1258
+ h("div", Qe, [(b(), m("svg", {
1259
+ ref_key: "svgRef",
1260
+ ref: V,
1261
+ xmlns: T(ue),
1262
+ "aria-describedby": `chart-instructions-${M.value}`,
1263
+ class: He({
1264
+ "vue-data-ui-fullscreen--on": Q.value,
1265
+ "vue-data-ui-fulscreen--off": !Q.value
1266
+ }),
1267
+ viewBox: `0 0 ${W.value.width <= 0 ? 10 : W.value.width} ${G.value.fullHeight <= 0 ? 10 : G.value.fullHeight}`,
1268
+ style: y(`max-width:100%;overflow:visible;background:transparent;color:${L.value.style.chart.color};${L.value.responsive ? `height: ${Ht.value}px; width: 100%;` : ""}`),
1269
+ tabindex: "0",
1270
+ onFocus: tr,
1271
+ onBlur: nr,
1272
+ onKeydown: rr
1273
+ }, [
1274
+ ze(T(Tt)),
1275
+ h("defs", null, [(b(!0), m(u, null, S(Z.value, (e, t) => (b(), f(Ae, {
1276
+ t: "linear",
1277
+ id: `gradient-${e.id}-${M.value}`,
1278
+ key: `gradient-${e.id}-${M.value}`,
1279
+ x1: "50%",
1280
+ y1: "0%",
1281
+ x2: "50%",
1282
+ y2: "100%",
1283
+ stops: [
1284
+ [
1285
+ "0%",
1286
+ e.color,
1287
+ 1
1288
+ ],
1289
+ [
1290
+ "30%",
1291
+ e.color,
1292
+ .7
1293
+ ],
1294
+ [
1295
+ "70%",
1296
+ e.color,
1297
+ .3
1298
+ ],
1299
+ [
1300
+ "100%",
1301
+ e.color,
1302
+ .1
1303
+ ]
1304
+ ]
1305
+ }, null, 8, ["id", "stops"]))), 128)), (b(!0), m(u, null, S(Y.value, (e, t) => (b(), m(u, null, [(b(!0), m(u, null, S(e.datapoints, (e, t) => (b(), f(Ae, {
1306
+ t: "linear",
1307
+ key: `grad${e.id}`,
1308
+ id: `gradient-single-${M.value}-${e.uid}`,
1309
+ x1: "50%",
1310
+ y1: "0%",
1311
+ x2: "50%",
1312
+ y2: "100%",
1313
+ stops: [
1314
+ [
1315
+ "0%",
1316
+ e.color,
1317
+ 1
1318
+ ],
1319
+ [
1320
+ "30%",
1321
+ e.color,
1322
+ .7
1323
+ ],
1324
+ [
1325
+ "70%",
1326
+ e.color,
1327
+ .3
1328
+ ],
1329
+ [
1330
+ "100%",
1331
+ e.color,
1332
+ .1
1333
+ ]
1334
+ ]
1335
+ }, null, 8, ["id", "stops"]))), 128))], 64))), 256))]),
1336
+ (b(!0), m(u, null, S(Y.value, (t, n) => (b(), m("g", { key: `ds-${n}` }, [(b(!0), m(u, null, S(t.datapoints, (t, r) => (b(), m("g", { key: t.id }, [
1337
+ e.$slots.pattern ? (b(), m("g", et, [h("defs", null, [C(e.$slots, "pattern", Be({ ref_for: !0 }, {
1338
+ datapointIndex: n,
1339
+ seriesIndex: r,
1340
+ patternId: `pattern_${M.value}_${t.uid}`
1341
+ }), void 0, !0)])])) : p("", !0),
1342
+ h("path", {
1343
+ fill: e.$slots.pattern ? `url(#pattern_${M.value}_${t.uid})` : L.value.style.chart.backgroundColor,
1344
+ stroke: "none",
1345
+ "stroke-linecap": "round",
1346
+ d: L.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
1347
+ style: y({ opacity: L.value.style.chart.areas.opacity })
1348
+ }, null, 12, tt),
1349
+ h("path", {
1350
+ fill: "none",
1351
+ stroke: L.value.style.chart.areas.stroke.useSerieColor ? t.color : L.value.style.chart.areas.stroke.color,
1352
+ "stroke-width": L.value.style.chart.areas.strokeWidth,
1353
+ d: L.value.style.chart.areas.smooth ? t.smoothPathRidge : t.straightPathRidge,
1354
+ "stroke-linecap": "round",
1355
+ "stroke-linejoin": "round",
1356
+ style: y({
1357
+ strokeDasharray: t.pathLength,
1358
+ strokeDashoffset: L.value.useCssAnimation ? t.pathLength : 0
1359
+ })
1360
+ }, null, 12, nt),
1361
+ h("path", {
1362
+ fill: L.value.style.chart.areas.useGradient ? L.value.style.chart.areas.useCommonColor ? `url(#gradient-${t.id}-${M.value})` : `url(#gradient-single-${M.value}-${t.uid})` : t.color,
1363
+ stroke: "none",
1364
+ d: L.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
1365
+ "stroke-linecap": "round",
1366
+ "stroke-linejoin": "round",
1367
+ style: y({
1368
+ strokeDasharray: t.pathLength,
1369
+ strokeDashoffset: L.value.useCssAnimation ? t.pathLength : 0
1370
+ })
1371
+ }, null, 12, rt),
1372
+ L.value.style.chart.zeroLine.show ? (b(), m("path", {
1373
+ key: 1,
1374
+ stroke: L.value.style.chart.zeroLine.useSerieColor ? t.color : L.value.style.chart.zeroLine.stroke,
1375
+ "stroke-dasharray": L.value.style.chart.zeroLine.strokeDasharray,
1376
+ "stroke-width": L.value.style.chart.zeroLine.strokeWidth,
1377
+ d: t.zeroPath,
1378
+ "stroke-linecap": "round"
1379
+ }, null, 8, it)) : p("", !0),
1380
+ L.value.style.chart.areas.maxPoint.show && t.plots.length > 1 ? (b(!0), m(u, { key: 2 }, S(t.plots, (e) => (b(), m(u, null, [e.isMaxPoint ? (b(), m("line", {
1381
+ key: 0,
1382
+ x1: e.x,
1383
+ y1: e.y,
1384
+ x2: e.x,
1385
+ y2: e.zero,
1386
+ stroke: L.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? T(le)(t.color) : L.value.style.chart.areas.maxPoint.stroke,
1387
+ "stroke-width": L.value.style.chart.areas.maxPoint.strokeWidth,
1388
+ "stroke-linecap": "round",
1389
+ "stroke-dasharray": L.value.style.chart.areas.maxPoint.strokeDasharray
1390
+ }, null, 8, at)) : p("", !0)], 64))), 256)) : p("", !0),
1391
+ t.plots.length === 1 ? (b(), m("circle", {
1392
+ key: 3,
1393
+ cx: t.plots[0].x,
1394
+ cy: t.plots[0].y,
1395
+ stroke: L.value.style.chart.selector.dot.stroke,
1396
+ "stroke-width": L.value.style.chart.selector.dot.strokeWidth,
1397
+ r: L.value.style.chart.selector.dot.radius,
1398
+ fill: L.value.style.chart.selector.dot.useDatapointColor ? t.color : L.value.style.chart.selector.dot.fill,
1399
+ style: { pointerEvents: "none" }
1400
+ }, null, 8, ot)) : p("", !0)
1401
+ ]))), 128)), h("text", {
1402
+ x: t.label.x,
1403
+ y: t.label.y,
1404
+ "text-anchor": "end",
1405
+ "font-size": L.value.style.chart.yAxis.labels.fontSize,
1406
+ "font-weight": L.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
1407
+ fill: L.value.style.chart.yAxis.labels.color,
1408
+ style: y({ cursor: L.value.style.chart.dialog.show && R.value ? "pointer" : "default" }),
1409
+ "text-decoration": L.value.style.chart.dialog.show && (Fn.value === n || P.value && t.uid === P.value.uid || I.value === n) ? "underline" : "",
1410
+ onMouseenter: (e) => In(n),
1411
+ onMouseleave: Ln,
1412
+ onClick: (e) => Pn(t)
1413
+ }, w(t.name), 45, st)]))), 128)),
1414
+ L.value.style.chart.xAxis.labels.values.length ? (b(), m("g", {
1415
+ key: 0,
1416
+ ref_key: "timeLabelsEls",
1417
+ ref: Ut
1418
+ }, [(b(!0), m(u, null, S(J.value, (t, n) => C(e.$slots, "time-label", Be({ ref_for: !0 }, {
1419
+ show: t && !L.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !L.value.style.chart.xAxis.labels.showOnlyAtModulo || t && L.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (n === 0 || n === J.value.length - 1) || t && N.value && N.value.index === n || t && !L.value.style.chart.xAxis.labels.showOnlyFirstAndLast && L.value.style.chart.xAxis.labels.showOnlyAtModulo && n % Math.floor(J.value.length / L.value.style.chart.xAxis.labels.modulo) === 0,
1420
+ fontSize: L.value.style.chart.xAxis.labels.fontSize,
1421
+ content: t.label,
1422
+ textAnchor: L.value.style.chart.xAxis.labels.rotation > 0 ? "start" : L.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1423
+ fill: L.value.style.chart.xAxis.labels.color,
1424
+ transform: `translate(${t.selectorX}, ${G.value.top + t.height + L.value.style.chart.xAxis.labels.offsetY}), rotate(${L.value.style.chart.xAxis.labels.rotation})`,
1425
+ x: t.selectorX,
1426
+ y: G.value.bottom + L.value.style.chart.xAxis.labels.offsetY
1427
+ }), () => [t && !L.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !L.value.style.chart.xAxis.labels.showOnlyAtModulo || t && L.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (n === 0 || n === J.value.length - 1) || t && N.value && N.value.index === n || t && !L.value.style.chart.xAxis.labels.showOnlyFirstAndLast && L.value.style.chart.xAxis.labels.showOnlyAtModulo && n % Math.floor(J.value.length / L.value.style.chart.xAxis.labels.modulo) === 0 ? (b(), m("g", ct, [String(t.label).includes("\n") ? (b(), m("text", {
1428
+ key: 1,
1429
+ class: "vue-ui-ridgeline-x-axis-label",
1430
+ "font-size": L.value.style.chart.xAxis.labels.fontSize,
1431
+ fill: L.value.style.chart.xAxis.labels.color,
1432
+ "font-weight": L.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
1433
+ transform: `translate(${t.selectorX}, ${G.value.bottom + L.value.style.chart.xAxis.labels.offsetY}), rotate(${L.value.style.chart.xAxis.labels.rotation})`,
1434
+ "text-anchor": L.value.style.chart.xAxis.labels.rotation > 0 ? "start" : L.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1435
+ style: y({ opacity: N.value ? N.value.index === n ? 1 : .2 : 1 }),
1436
+ innerHTML: T(r)({
1437
+ content: String(t.label),
1438
+ fontSize: L.value.style.chart.xAxis.labels.fontSize,
1439
+ fill: L.value.style.chart.xAxis.labels.color,
1440
+ x: 0,
1441
+ y: 0
1442
+ })
1443
+ }, null, 12, ut)) : (b(), m("text", {
1444
+ key: 0,
1445
+ class: "vue-ui-ridgeline-x-axis-label",
1446
+ "font-size": L.value.style.chart.xAxis.labels.fontSize,
1447
+ fill: L.value.style.chart.xAxis.labels.color,
1448
+ "font-weight": L.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
1449
+ transform: `translate(${t.selectorX}, ${G.value.bottom + L.value.style.chart.xAxis.labels.offsetY}), rotate(${L.value.style.chart.xAxis.labels.rotation})`,
1450
+ "text-anchor": L.value.style.chart.xAxis.labels.rotation > 0 ? "start" : L.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1451
+ style: y({ opacity: N.value ? N.value.index === n ? 1 : .2 : 1 })
1452
+ }, w(t.label), 13, lt))])) : p("", !0)], !0)), 256))], 512)) : p("", !0),
1453
+ h("g", null, [
1454
+ (b(!0), m(u, null, S(J.value, (e, t) => (b(), m("rect", {
1455
+ x: e.x,
1456
+ y: e.y,
1457
+ width: e.width < 0 ? .1 : e.width,
1458
+ height: e.height < 0 ? .1 : e.height,
1459
+ fill: "transparent",
1460
+ onMouseenter: (t) => Cn(e),
1461
+ onMouseleave: (t) => wn(e),
1462
+ onClick: () => Tn(e)
1463
+ }, null, 40, dt))), 256)),
1464
+ L.value.style.chart.selector.show && N.value ? (b(), m("line", {
1465
+ key: 0,
1466
+ x1: N.value.selectorX,
1467
+ x2: N.value.selectorX,
1468
+ y1: N.value.y,
1469
+ y2: N.value.y + N.value.height - B.value / 2,
1470
+ stroke: L.value.style.chart.selector.stroke,
1471
+ "stroke-width": L.value.style.chart.selector.strokeWidth,
1472
+ "stroke-dasharray": L.value.style.chart.selector.strokeDasharray,
1473
+ "stroke-linecap": "round",
1474
+ style: { pointerEvents: "none" }
1475
+ }, null, 8, ft)) : p("", !0),
1476
+ N.value ? (b(!0), m(u, { key: 1 }, S(Y.value, (e) => (b(), m(u, null, [(b(!0), m(u, null, S(e.datapoints, (e) => (b(), m(u, null, [(b(!0), m(u, null, S(e.plots, (t, n) => (b(), m(u, null, [N.value && N.value.index === n ? (b(), m("circle", {
1477
+ key: 0,
1478
+ cx: t.x,
1479
+ cy: t.y,
1480
+ stroke: L.value.style.chart.selector.dot.stroke,
1481
+ "stroke-width": L.value.style.chart.selector.dot.strokeWidth,
1482
+ r: L.value.style.chart.selector.dot.radius,
1483
+ fill: L.value.style.chart.selector.dot.useDatapointColor ? e.color : L.value.style.chart.selector.dot.fill,
1484
+ style: { pointerEvents: "none" }
1485
+ }, null, 8, pt)) : p("", !0), N.value && N.value.index === n ? (b(), m("text", {
1486
+ key: 1,
1487
+ x: Dn(t.x, T(l)(L.value.style.chart.selector.labels.formatter, t.value, T(ie)({
1488
+ p: L.value.style.chart.xAxis.labels.prefix,
1489
+ v: t.value,
1490
+ s: L.value.style.chart.xAxis.labels.suffix,
1491
+ r: L.value.style.chart.selector.labels.rounding
1492
+ })), L.value.style.chart.selector.labels.fontSize) ? t.x - L.value.style.chart.selector.labels.fontSize / 2 : t.x + L.value.style.chart.selector.labels.fontSize / 2,
1493
+ y: t.y + L.value.style.chart.selector.labels.fontSize / 3,
1494
+ "text-anchor": Dn(t.x, T(l)(L.value.style.chart.selector.labels.formatter, t.value, T(ie)({
1495
+ p: L.value.style.chart.xAxis.labels.prefix,
1496
+ v: t.value,
1497
+ s: L.value.style.chart.xAxis.labels.suffix,
1498
+ r: L.value.style.chart.selector.labels.rounding
1499
+ })), L.value.style.chart.selector.labels.fontSize) ? "end" : "start",
1500
+ "font-size": L.value.style.chart.selector.labels.fontSize,
1501
+ fill: L.value.style.chart.selector.labels.color,
1502
+ style: { pointerEvents: "none" }
1503
+ }, w(T(l)(L.value.style.chart.selector.labels.formatter, t.value, T(ie)({
1504
+ p: L.value.style.chart.xAxis.labels.prefix,
1505
+ v: t.value,
1506
+ s: L.value.style.chart.xAxis.labels.suffix,
1507
+ r: L.value.style.chart.selector.labels.rounding
1508
+ }))), 9, mt)) : p("", !0)], 64))), 256))], 64))), 256))], 64))), 256)) : p("", !0)
1509
+ ]),
1510
+ C(e.$slots, "svg", { svg: {
1511
+ ...W.value,
1512
+ drawingArea: G.value,
1513
+ isPrintingImg: T(rn) || T(an) || Gt.value,
1514
+ isPrintingSvg: Kt.value
1515
+ } }, void 0, !0)
1516
+ ], 46, $e)), e.$slots.hint ? (b(), m("div", ht, [C(e.$slots, "hint", v(_({
1517
+ hint: L.value.a11y.translations.keyboardNavigation,
1518
+ isVisible: qt.value
1519
+ })), void 0, !0)])) : p("", !0)]),
1520
+ e.$slots.watermark ? (b(), m("div", gt, [C(e.$slots, "watermark", v(_({ isPrinting: T(rn) || T(an) || Gt.value || Kt.value })), void 0, !0)])) : p("", !0),
1521
+ h("div", {
1522
+ ref_key: "chartLegend",
1523
+ ref: Mt
1524
+ }, [C(e.$slots, "legend", { legend: Z.value }, () => [L.value.style.chart.legend.show ? (b(), f(Fe, {
1525
+ key: `legend_${Lt.value}`,
1526
+ legendSet: Z.value,
1527
+ config: An.value,
1528
+ isCursorPointer: R.value,
1529
+ onClickMarker: t[0] ||= ({ legend: e }) => fn(e.id)
1530
+ }, Le({
1531
+ item: E(({ legend: e }) => [T(Xt) ? p("", !0) : (b(), m("div", {
1532
+ key: 0,
1533
+ style: y(`opacity:${X.value.includes(e.id) ? .5 : 1}`),
1534
+ onClick: (t) => e.segregate()
1535
+ }, w(e.name), 13, _t))]),
1536
+ legendToggle: E(() => [Z.value.length > 2 && L.value.style.chart.legend.selectAllToggle.show && !T(Xt) ? (b(), f(je, {
1537
+ key: 0,
1538
+ backgroundColor: L.value.style.chart.legend.selectAllToggle.backgroundColor,
1539
+ color: L.value.style.chart.legend.selectAllToggle.color,
1540
+ fontSize: L.value.style.chart.legend.fontSize,
1541
+ checked: X.value.length > 0,
1542
+ isCursorPointer: R.value,
1543
+ onToggle: dn
1544
+ }, null, 8, [
1545
+ "backgroundColor",
1546
+ "color",
1547
+ "fontSize",
1548
+ "checked",
1549
+ "isCursorPointer"
1550
+ ])) : p("", !0)]),
1551
+ _: 2
1552
+ }, [e.$slots.pattern ? {
1553
+ name: "legend-pattern",
1554
+ fn: E(({ legend: e, index: t }) => [ze(Ee, {
1555
+ shape: e.shape,
1556
+ radius: 30,
1557
+ stroke: "none",
1558
+ plot: {
1559
+ x: 30,
1560
+ y: 30
1561
+ },
1562
+ fill: `url(#pattern_${M.value}_${t})`
1563
+ }, null, 8, ["shape", "fill"])]),
1564
+ key: "0"
1565
+ } : void 0]), 1032, [
1566
+ "legendSet",
1567
+ "config",
1568
+ "isCursorPointer"
1569
+ ])) : p("", !0)], !0)], 512),
1570
+ e.$slots.source ? (b(), m("div", {
1571
+ key: 6,
1572
+ ref_key: "source",
1573
+ ref: Nt,
1574
+ dir: "auto"
1575
+ }, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1576
+ O.value && L.value.userOptions.buttons.table ? (b(), f(We(Gn.value.component), Be({ key: 7 }, Gn.value.props, {
1577
+ ref_key: "tableUnit",
1578
+ ref: F,
1579
+ onClose: Kn
1580
+ }), Le({
1581
+ content: E(() => [(b(), f(T(St), {
1582
+ key: `table_${It.value}`,
1583
+ colNames: $.value.colNames,
1584
+ head: $.value.head,
1585
+ body: $.value.body,
1586
+ config: $.value.config,
1587
+ title: L.value.table.useDialog ? "" : Gn.value.title,
1588
+ withCloseButton: !L.value.table.useDialog,
1589
+ isCursorPointer: R.value,
1590
+ onClose: Kn
1591
+ }, {
1592
+ th: E(({ th: e }) => [h("div", { innerHTML: e }, null, 8, vt)]),
1593
+ td: E(({ td: e }) => [Re(w(e.name ? e.name : T(l)(L.value.style.chart.selector.labels.formatter, e, T(ie)({
1594
+ p: L.value.style.chart.xAxis.labels.prefix,
1595
+ v: e,
1596
+ s: L.value.style.chart.xAxis.labels.suffix,
1597
+ r: L.value.table.td.roundingValue
1598
+ }))), 1)]),
1599
+ _: 1
1600
+ }, 8, [
1601
+ "colNames",
1602
+ "head",
1603
+ "body",
1604
+ "config",
1605
+ "title",
1606
+ "withCloseButton",
1607
+ "isCursorPointer"
1608
+ ]))]),
1609
+ _: 2
1610
+ }, [L.value.table.useDialog ? {
1611
+ name: "title",
1612
+ fn: E(() => [Re(w(Gn.value.title), 1)]),
1613
+ key: "0"
1614
+ } : void 0, L.value.table.useDialog ? {
1615
+ name: "actions",
1616
+ fn: E(() => [h("button", {
1617
+ tabindex: "0",
1618
+ class: "vue-ui-user-options-button",
1619
+ onClick: t[1] ||= (e) => Hn(L.value.userOptions.callbacks.csv),
1620
+ style: y({ cursor: R.value ? "pointer" : "default" })
1621
+ }, [ze(T(bt), {
1622
+ name: "fileCsv",
1623
+ stroke: Gn.value.props.color
1624
+ }, null, 8, ["stroke"])], 4)]),
1625
+ key: "1"
1626
+ } : void 0]), 1040)) : p("", !0),
1627
+ L.value.style.chart.dialog.show ? (b(), f(T(Et), {
1628
+ key: 8,
1629
+ ref_key: "dialog",
1630
+ ref: Vt,
1631
+ onClose: t[2] ||= (e) => P.value = null,
1632
+ backgroundColor: L.value.style.chart.dialog.backgroundColor,
1633
+ color: L.value.style.chart.dialog.color,
1634
+ headerBg: L.value.style.chart.dialog.header.backgroundColor,
1635
+ headerColor: L.value.style.chart.dialog.header.color,
1636
+ isFullscreen: Q.value,
1637
+ fullscreenParent: k.value,
1638
+ isCursorPointer: R.value,
1639
+ withPadding: ""
1640
+ }, {
1641
+ title: E(() => [Re(w(P.value.name), 1)]),
1642
+ content: E(() => [P.value ? (b(), f(T(yt), {
1643
+ key: 0,
1644
+ config: Mn.value,
1645
+ dataset: Nn.value,
1646
+ onCopyAlt: $n
1647
+ }, null, 8, ["config", "dataset"])) : p("", !0)]),
1648
+ _: 1
1649
+ }, 8, [
1650
+ "backgroundColor",
1651
+ "color",
1652
+ "headerBg",
1653
+ "headerColor",
1654
+ "isFullscreen",
1655
+ "fullscreenParent",
1656
+ "isCursorPointer"
1657
+ ])) : p("", !0),
1658
+ C(e.$slots, "skeleton", {}, () => [T(Xt) ? (b(), f(ye, { key: 0 })) : p("", !0)], !0)
1659
+ ], 46, Xe));
1660
+ }
1661
+ }, [["__scopeId", "data-v-4c5cf631"]]);
1662
+ //#endregion
1663
+ export { Ye as n, yt as t };