vue-data-ui 3.25.5 → 3.25.7

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 (210) hide show
  1. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  2. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  3. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  4. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  5. package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
  6. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  7. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  8. package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  9. package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-UfoQuPMf.js} +1 -1
  10. package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
  11. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  12. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  13. package/dist/components/vue-ui-3d-bar.js +1 -1
  14. package/dist/components/vue-ui-accordion.js +1 -1
  15. package/dist/components/vue-ui-age-pyramid.js +1 -1
  16. package/dist/components/vue-ui-annotator.js +1 -1
  17. package/dist/components/vue-ui-bullet.js +1 -1
  18. package/dist/components/vue-ui-bump.js +1 -1
  19. package/dist/components/vue-ui-candlestick.js +1 -1
  20. package/dist/components/vue-ui-carousel-table.js +1 -1
  21. package/dist/components/vue-ui-chestnut.js +1 -1
  22. package/dist/components/vue-ui-chord.js +1 -1
  23. package/dist/components/vue-ui-circle-pack.js +1 -1
  24. package/dist/components/vue-ui-cursor.js +1 -1
  25. package/dist/components/vue-ui-dag.js +1 -1
  26. package/dist/components/vue-ui-dashboard.js +1 -1
  27. package/dist/components/vue-ui-digits.js +1 -1
  28. package/dist/components/vue-ui-donut-evolution.js +1 -1
  29. package/dist/components/vue-ui-donut.js +1 -1
  30. package/dist/components/vue-ui-dumbbell.js +1 -1
  31. package/dist/components/vue-ui-flow.js +1 -1
  32. package/dist/components/vue-ui-funnel.js +1 -1
  33. package/dist/components/vue-ui-galaxy.js +1 -1
  34. package/dist/components/vue-ui-gauge.js +1 -1
  35. package/dist/components/vue-ui-geo.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-hill.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-label.js +1 -1
  44. package/dist/components/vue-ui-mini-loader.js +1 -1
  45. package/dist/components/vue-ui-molecule.js +1 -1
  46. package/dist/components/vue-ui-mood-radar.js +1 -1
  47. package/dist/components/vue-ui-nested-donuts.js +1 -1
  48. package/dist/components/vue-ui-onion.js +1 -1
  49. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  50. package/dist/components/vue-ui-quadrant.js +1 -1
  51. package/dist/components/vue-ui-quick-chart.js +1 -1
  52. package/dist/components/vue-ui-radar.js +1 -1
  53. package/dist/components/vue-ui-rating.js +1 -1
  54. package/dist/components/vue-ui-relation-circle.js +1 -1
  55. package/dist/components/vue-ui-ridgeline.js +1 -1
  56. package/dist/components/vue-ui-rings.js +1 -1
  57. package/dist/components/vue-ui-scatter.js +1 -1
  58. package/dist/components/vue-ui-skeleton.js +1 -1
  59. package/dist/components/vue-ui-smiley.js +1 -1
  60. package/dist/components/vue-ui-spark-trend.js +1 -1
  61. package/dist/components/vue-ui-sparkbar.js +1 -1
  62. package/dist/components/vue-ui-sparkgauge.js +1 -1
  63. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  64. package/dist/components/vue-ui-sparkline.js +1 -1
  65. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  66. package/dist/components/vue-ui-stackbar.js +1 -1
  67. package/dist/components/vue-ui-stackline.js +1 -1
  68. package/dist/components/vue-ui-strip-plot.js +1 -1
  69. package/dist/components/vue-ui-table-heatmap.js +1 -1
  70. package/dist/components/vue-ui-table-sparkline.js +1 -1
  71. package/dist/components/vue-ui-table.js +1 -1
  72. package/dist/components/vue-ui-thermometer.js +1 -1
  73. package/dist/components/vue-ui-timer.js +1 -1
  74. package/dist/components/vue-ui-tiremarks.js +1 -1
  75. package/dist/components/vue-ui-treemap.js +1 -1
  76. package/dist/components/vue-ui-vertical-bar.js +1 -1
  77. package/dist/components/vue-ui-waffle.js +1 -1
  78. package/dist/components/vue-ui-wheel.js +1 -1
  79. package/dist/components/vue-ui-word-cloud.js +1 -1
  80. package/dist/components/vue-ui-world.js +1 -1
  81. package/dist/components/vue-ui-xy-canvas.js +1 -1
  82. package/dist/components/vue-ui-xy.js +1 -1
  83. package/dist/{package-ta2JoIjx.js → package-B-3S5q00.js} +1 -1
  84. package/dist/{render-common-bvOuxfN3.js → render-common-CAXK7ycr.js} +1 -1
  85. package/dist/ssr/vue-ui-donut.js +1 -1
  86. package/dist/ssr/vue-ui-xy.js +1 -1
  87. package/dist/ssr.js +2 -2
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +10 -0
  90. package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
  91. package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
  92. package/dist/utils.js +1 -1
  93. package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-DlWT702n.js} +70 -70
  94. package/dist/vue-data-ui.js +71 -71
  95. package/dist/vue-ui-3d-bar-DbOk2kpM.js +1831 -0
  96. package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  97. package/dist/vue-ui-age-pyramid-C7_mGIRk.js +1293 -0
  98. package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
  99. package/dist/vue-ui-bullet-CDy_dkYz.js +702 -0
  100. package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DP24leiD.js} +380 -380
  101. package/dist/vue-ui-candlestick-kJLmYaR7.js +1859 -0
  102. package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-BQzAQDw6.js} +2 -2
  103. package/dist/vue-ui-chestnut-DnnRp3Kl.js +2016 -0
  104. package/dist/vue-ui-chord-DO15ZDCS.js +1347 -0
  105. package/dist/vue-ui-circle-pack-DYTllMPV.js +1635 -0
  106. package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CtViSjNp.js} +2 -2
  107. package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-NXtGYzqg.js} +792 -792
  108. package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-D3_4QohV.js} +67 -67
  109. package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-CB09pLQx.js} +2 -2
  110. package/dist/vue-ui-donut-evolution-DhrtxvAd.js +1552 -0
  111. package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-eysaEyTy.js} +2 -2
  112. package/dist/vue-ui-donut-yTE6D8yV.js +2415 -0
  113. package/dist/vue-ui-dumbbell-CmGIeULQ.js +1533 -0
  114. package/dist/vue-ui-flow-qYAq3Rmn.js +1217 -0
  115. package/dist/vue-ui-funnel-CLAii4wi.js +749 -0
  116. package/dist/vue-ui-galaxy-BVX-o2f-.js +1085 -0
  117. package/dist/vue-ui-gauge-D76-4Z_0.js +934 -0
  118. package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-BQ7-UnuG.js} +429 -429
  119. package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-C47zjcs-.js} +2 -2
  120. package/dist/vue-ui-heatmap-XJef60IZ.js +1558 -0
  121. package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-D5BYGPXB.js} +470 -470
  122. package/dist/vue-ui-history-plot-D-d-1ZiM.js +1698 -0
  123. package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-BgFHi6_7.js} +511 -511
  124. package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-Cb8QJeaj.js} +2 -2
  125. package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  126. package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  127. package/dist/vue-ui-molecule-BzwMl-in.js +929 -0
  128. package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-BUR_YCcr.js} +376 -376
  129. package/dist/vue-ui-nested-donuts-BEB4nfsD.js +1503 -0
  130. package/dist/vue-ui-onion-CG6myK7a.js +1235 -0
  131. package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-CSO4johj.js} +407 -407
  132. package/dist/vue-ui-quadrant-CKav0I6g.js +1967 -0
  133. package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BAQNS9_2.js} +4 -4
  134. package/dist/vue-ui-radar-ClPAgf5I.js +1374 -0
  135. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  136. package/dist/vue-ui-relation-circle-Da2MhrVe.js +905 -0
  137. package/dist/vue-ui-ridgeline-D7gFs8yR.js +1630 -0
  138. package/dist/vue-ui-rings-DkDJ0k5b.js +1252 -0
  139. package/dist/vue-ui-scatter-yv4JzJID.js +2405 -0
  140. package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-oFnh5zWs.js} +698 -698
  141. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  142. package/dist/vue-ui-spark-trend-IqZWPvSB.js +457 -0
  143. package/dist/vue-ui-sparkbar-_FW47iYj.js +401 -0
  144. package/dist/vue-ui-sparkgauge--2vk2Y23.js +268 -0
  145. package/dist/vue-ui-sparkhistogram-CFEIPa5n.js +589 -0
  146. package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-Cs9CJR6W.js} +511 -511
  147. package/dist/vue-ui-sparkstackbar-Cvbue77A.js +738 -0
  148. package/dist/vue-ui-stackbar-C5ANS2hd.js +2355 -0
  149. package/dist/vue-ui-stackline-7yajJFW4.js +2469 -0
  150. package/dist/vue-ui-strip-plot-BT6Eqhup.js +1740 -0
  151. package/dist/vue-ui-table-CiccGbRB.js +1352 -0
  152. package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  153. package/dist/vue-ui-table-sparkline-Bp7RiZh4.js +738 -0
  154. package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-CawumQKP.js} +192 -192
  155. package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-CXinMW7q.js} +153 -153
  156. package/dist/vue-ui-tiremarks-BnI2uhki.js +540 -0
  157. package/dist/vue-ui-treemap-DTlFbfD6.js +1733 -0
  158. package/dist/vue-ui-waffle-CjgRkQAp.js +1621 -0
  159. package/dist/vue-ui-wheel-B02tiG0p.js +873 -0
  160. package/dist/vue-ui-word-cloud-BZnCOMHx.js +1710 -0
  161. package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-DO2VZ-T-.js} +524 -524
  162. package/dist/vue-ui-xy-BC9GVdWE.js +5283 -0
  163. package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-CD6BiP_g.js} +2 -2
  164. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  165. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  166. package/package.json +1 -1
  167. package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
  168. package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
  169. package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
  170. package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
  171. package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
  172. package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
  173. package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
  174. package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
  175. package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
  176. package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
  177. package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
  178. package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
  179. package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
  180. package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
  181. package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
  182. package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
  183. package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
  184. package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
  185. package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
  186. package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
  187. package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
  188. package/dist/vue-ui-rating-CBdDXL80.js +0 -359
  189. package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
  190. package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
  191. package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
  192. package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
  193. package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
  194. package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
  195. package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
  196. package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
  197. package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
  198. package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
  199. package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
  200. package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
  201. package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
  202. package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
  203. package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
  204. package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
  205. package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
  206. package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
  207. package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
  208. package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
  209. package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
  210. package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
@@ -1,1630 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, D as n, G as r, Gt as i, Lt as a, N as ee, P as te, Pt as o, Q as ne, S as s, V as re, X as c, Yt as ie, Zt as ae, _t as oe, ht as se, i as ce, nt as le, q as ue, r as de, t as fe, w as pe } from "./lib-Dql7cqyA.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-C_mX5pOZ.js";
6
- import { t as ve } from "./usePrinter-DISD7q5m.js";
7
- import { n as ye, t as be } from "./BaseScanner-DZvpgOjM.js";
8
- import { t as xe } from "./useNestedProp-Chvyfpl-.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-DhGApYG0.js";
13
- import { n as Ee } from "./Title-CPHi-evi.js";
14
- import { t as De } from "./Shape-CIqU-p2F.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-__JnV08B.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-X4kF4PvW.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-B3DQ6t46.js").then((e) => e.n)), bt = h(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), xt = h(() => import("./vue-ui-accordion-DRf3NQyH.js").then((e) => e.n)), St = h(() => import("./DataTable-COIO9gi4.js")), Ct = h(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), wt = h(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Tt = h(() => import("./PackageVersion-M2Ws-VwJ.js").then((e) => e.t)), Et = h(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_ridgeline: Dt } = _e(), { isThemeValid: Ot, warnInvalidTheme: kt } = Se(), E = e, D = u({
144
- get() {
145
- return Array.isArray(z.value) && z.value.length > 0;
146
- },
147
- set(e) {
148
- return e;
149
- }
150
- }), O = Xe, k = b(null), At = b(null), jt = b(null), A = Ke(null), j = Ke(null), Mt = b(null), Nt = b(null), Pt = b(0), Ft = b(0), It = b(0), M = b(ue()), Lt = b(0), Rt = b(0), zt = b(512), N = b(null), P = b(null), Bt = b(null), Vt = b(0), Ht = b(null), F = b(null), Ut = b(null), I = b(null), Wt = b(!1);
151
- function Gt() {
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 n = xe({
159
- userConfig: Le[t] || E.config,
160
- defaultConfig: e
161
- }), r = xe({
162
- userConfig: E.config,
163
- defaultConfig: n
164
- });
165
- return {
166
- ...r,
167
- customPalette: r.customPalette.length ? r.customPalette : ie[t] || a
168
- };
169
- }
170
- let L = b(Gt());
171
- me({
172
- config: () => L.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 R = u(() => L.value.userOptions.useCursorPointer), Kt = u(() => ae({
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: L.value.skeletonConfig ?? {}
229
- })), { loading: qt, FINAL_DATASET: z, manualLoading: Jt } = ye({
230
- ...qe(E),
231
- FINAL_CONFIG: L,
232
- prepareConfig: Gt,
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: ae({
464
- defaultConfig: L.value,
465
- userConfig: Kt.value
466
- })
467
- }), B = b(Math.min(L.value.style.chart.areas.height, L.value.style.chart.areas.rowHeight)), { userOptionsVisible: Yt, setUserOptionsVisibility: Xt, keepUserOptionState: Zt } = Pe({ config: L.value }), { svgRef: V } = Fe({ config: L.value.style.chart.title }), H = u(() => L.value.debug);
468
- function Qt() {
469
- let e = z.value || [];
470
- if (!Array.isArray(e) || e.length === 0) {
471
- le({
472
- componentName: "VueUiRidgeline",
473
- type: "dataset",
474
- debug: H.value
475
- }), Jt.value = !0;
476
- return;
477
- }
478
- if (e.forEach((e, t) => {
479
- se({
480
- datasetObject: e,
481
- requiredAttributes: ["name", "datapoints"]
482
- }).forEach((e) => {
483
- D.value = !1, le({
484
- componentName: "VueUiRidgeline",
485
- type: "datasetSerieAttribute",
486
- property: e,
487
- index: t,
488
- debug: H.value
489
- });
490
- }), Array.isArray(e.datapoints) && e.datapoints.length && e.datapoints.forEach((e, n) => {
491
- se({
492
- datasetObject: e,
493
- requiredAttributes: ["name", "values"]
494
- }).forEach((e) => {
495
- D.value = !1, le({
496
- componentName: "VueUiRidgeline",
497
- type: "datasetSerieAttribute",
498
- property: `datapoint.${e}`,
499
- index: `${t}-${n}`,
500
- debug: H.value
501
- });
502
- });
503
- });
504
- }), Rt.value = e.length, B.value = Math.min(L.value.style.chart.areas.height, L.value.style.chart.areas.rowHeight), o(E.dataset) || (Jt.value = L.value.loading), L.value.responsive) {
505
- let t = ke(() => {
506
- let { width: t, height: n } = Ae({
507
- chart: k.value,
508
- title: L.value.style.chart.title.text ? At.value : null,
509
- legend: L.value.style.chart.legend.show ? jt.value : null,
510
- source: Mt.value,
511
- noTitle: Nt.value,
512
- padding: L.value.style.chart.padding
513
- });
514
- requestAnimationFrame(() => {
515
- zt.value = t, B.value = e.length ? n / e.length : 0, Vt.value = n - 12;
516
- });
517
- });
518
- 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);
519
- }
520
- }
521
- We(() => {
522
- A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect());
523
- });
524
- let { isPrinting: $t, isImaging: en, generatePdf: tn, generateImage: nn } = ve({
525
- elementId: `vue-ui-ridgeline_${M.value}`,
526
- fileName: L.value.style.chart.title.text || "vue-ui-ridgeline",
527
- options: L.value.userOptions.print
528
- }), rn = u(() => L.value.userOptions.show && !L.value.style.chart.title.text), an = u(() => pe(L.value.customPalette)), U = b({ showTable: L.value.table.show });
529
- Je(() => z.value, async (e) => {
530
- Array.isArray(e) && e.length && (Yt.value = !L.value.userOptions.showOnChartHover, await He(), Qt(), Pt.value += 1, It.value += 1, U.value.showTable = L.value.table.show);
531
- }, {
532
- deep: !0,
533
- immediate: !0
534
- }), Je(() => E.dataset, (e) => {
535
- Array.isArray(e) && e.length > 0 && (Jt.value = !1);
536
- }, { deep: !0 }), Je(() => qt.value, async (e) => {
537
- e || (await He(), Qt());
538
- }, { immediate: !0 }), Je(() => E.config, () => {
539
- L.value = Gt(z.value || null), Yt.value = !L.value.userOptions.showOnChartHover, B.value = Math.min(L.value.style.chart.areas.height, L.value.style.chart.areas.rowHeight), U.value.showTable = L.value.table.show, Pt.value += 1, It.value += 1;
540
- }, { deep: !0 });
541
- let on = u(() => L.value.style.chart.areas.height / L.value.style.chart.areas.rowHeight);
542
- function sn() {
543
- X.value.length ? X.value = [] : Z.value.forEach((e) => {
544
- X.value.push(e.id);
545
- }), O("selectLegend", Y.value);
546
- }
547
- function cn(e) {
548
- X.value.includes(e) ? X.value = X.value.filter((t) => t !== e) : X.value.push(e), O("selectLegend", Y.value);
549
- }
550
- function ln(e) {
551
- return Z.value.length ? Z.value.find((t) => t.name === e) || (H.value && console.warn(`VueUiRidgeline - Series name not found "${e}"`), null) : (H.value && console.warn("VueUiRidgeline - There are no series to show."), null);
552
- }
553
- function un(e) {
554
- let t = ln(e);
555
- t !== null && X.value.includes(t.id) && cn(t.id);
556
- }
557
- function dn(e) {
558
- let t = ln(e);
559
- t !== null && (X.value.includes(t.id) || cn(t.id));
560
- }
561
- let W = u(() => D.value ? (z.value || []).map((e) => ({
562
- ...e,
563
- labelLen: Tn(e.name, L.value.style.chart.yAxis.labels.fontSize),
564
- uid: ue(),
565
- datapoints: e.datapoints.map((e, t) => {
566
- let n = e.color ? s(e.color) : an.value[t] || a[t] || a[t % a.length], r = i(e.name);
567
- return {
568
- ...e,
569
- color: n,
570
- id: r
571
- };
572
- })
573
- })) : []), fn = u(() => L.value.style.chart.padding.top + B.value * (z.value || []).length + B.value * on.value + L.value.style.chart.padding.bottom), G = u(() => {
574
- let e = L.value.style.chart.padding;
575
- return {
576
- width: zt.value,
577
- height: fn.value,
578
- padding: e
579
- };
580
- }), pn = u(() => G.value.width), mn = u(() => G.value.height), hn = b(0), gn = ke((e) => {
581
- hn.value = e;
582
- }, 100);
583
- Ye((e) => {
584
- let t = Ht.value;
585
- if (!t) return;
586
- let n = new ResizeObserver((e) => {
587
- gn(e[0].contentRect.height);
588
- });
589
- n.observe(t), e(() => n.disconnect());
590
- }), We(() => {
591
- hn.value = 0;
592
- });
593
- let K = u(() => ({
594
- fullHeight: G.value.height + hn.value,
595
- top: G.value.padding.top,
596
- left: G.value.padding.left,
597
- right: G.value.width - G.value.padding.right,
598
- bottom: G.value.height - L.value.style.chart.padding.bottom,
599
- width: G.value.width - (G.value.padding.left + G.value.padding.right)
600
- })), _n = u(() => Math.max(...W.value.flatMap((e) => e.datapoints.map((e) => e.values.length)))), q = b([]), vn = 0;
601
- Ye(() => {
602
- let e = ++vn;
603
- (async () => {
604
- let t = await ge({
605
- values: L.value.style.chart.xAxis.labels.values,
606
- maxDatapoints: _n.value,
607
- formatter: L.value.style.chart.xAxis.labels.datetimeFormatter,
608
- start: 0,
609
- end: L.value.style.chart.xAxis.labels.values.length
610
- });
611
- e === vn && (q.value = t);
612
- })();
613
- });
614
- let J = u(() => {
615
- let e = Math.max(...W.value.map((e) => e.labelLen)), t = G.value.padding.left + e + 16 + L.value.style.chart.yAxis.labels.offsetX, n = (K.value.width - t) / _n.value, r = [];
616
- for (let e = 0; e < _n.value; e += 1) r.push({
617
- selectorX: t + n * e,
618
- x: t + n * e - n / 2,
619
- y: K.value.top,
620
- label: L.value.style.chart.xAxis.labels.values[e] ? q.value[e]?.text ?? "" : "",
621
- index: e,
622
- width: n,
623
- height: fn.value
624
- });
625
- return r;
626
- });
627
- function yn(e) {
628
- return W.value.map((t) => t.datapoints.map((t) => ({
629
- dp: t,
630
- selected: t.values[e.index]
631
- })));
632
- }
633
- function bn(e) {
634
- N.value = e;
635
- let t = yn(e);
636
- L.value.events.datapointEnter && L.value.events.datapointEnter({
637
- datapoint: t,
638
- seriesIndex: e.index
639
- });
640
- }
641
- function xn(e) {
642
- N.value = null;
643
- let t = yn(e);
644
- L.value.events.datapointLeave && L.value.events.datapointLeave({
645
- datapoint: t,
646
- seriesIndex: e.index
647
- });
648
- }
649
- function Sn(e) {
650
- let t = yn(e);
651
- L.value.events.datapointClick && L.value.events.datapointClick({
652
- datapoint: t,
653
- seriesIndex: e.index
654
- }), O("selectX", t);
655
- }
656
- function Cn(e, t) {
657
- return e.length * t / 2 + t;
658
- }
659
- function wn(e, t, n) {
660
- return e + Cn(t, n) > K.value.right;
661
- }
662
- function Tn(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 Y = u(() => {
667
- B.value;
668
- let e = Math.max(...W.value.map((e) => e.labelLen)), t = Math.max(...W.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), n = Math.min(...W.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), r = G.value.padding.left + e + 16 + L.value.style.chart.yAxis.labels.offsetX, i = (K.value.width - r) / _n.value, a = Math.abs(Math.min(n, 0)), o = t + a;
669
- function ne(e) {
670
- return isNaN(e / o) ? 0 : e / o;
671
- }
672
- return W.value.map((e, t) => {
673
- let n = B.value * on.value * (1 - ne(a)), o = K.value.top + B.value * t, s = K.value.top + o + n;
674
- return {
675
- ...e,
676
- label: {
677
- x: r - L.value.style.chart.yAxis.labels.fontSize,
678
- y: (L.value.style.chart.yAxis.labels.centered ? s - n / 2 : s) + L.value.style.chart.yAxis.labels.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: K.value.top + o + B.value * on.value * (1 - ne(ee + a)),
693
- value: t,
694
- isMaxPoint: t === Math.max(...e.values),
695
- zero: s
696
- };
697
- }), n = `${ee(t, s, !1, !1)}`, c = `M ${r},${s} ${re(t)} ${t.at(-1).x},${s}`, ie = `M ${r},${s} ${t.at(-1).x},${s}`, ae = `M ${te(t)}`, se = `M ${re(t)}`, ce = oe(L.value.style.chart.areas.smooth ? ae : se);
698
- return {
699
- ...e,
700
- uid: ue(),
701
- plots: t,
702
- smoothPath: n,
703
- straightPath: c,
704
- zeroPath: ie,
705
- pathLength: ce,
706
- smoothPathRidge: ae,
707
- straightPathRidge: se
708
- };
709
- }).filter((e) => !X.value.includes(e.id))
710
- };
711
- });
712
- }), X = b([]);
713
- function En(e) {
714
- let t = /* @__PURE__ */ new Map();
715
- return e.forEach((e) => {
716
- e.datapoints.forEach((e, n) => {
717
- let r = i(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: () => cn(r),
724
- isSegregated: X.value.includes(r),
725
- opacity: X.value.includes(r) ? .5 : 1
726
- });
727
- });
728
- }), Array.from(t.values());
729
- }
730
- let Z = u(() => En(W.value)), Dn = u(() => ({
731
- cy: "donut-div-legend",
732
- backgroundColor: L.value.style.chart.legend.backgroundColor,
733
- color: L.value.style.chart.legend.color,
734
- fontSize: L.value.style.chart.legend.fontSize,
735
- paddingBottom: 12,
736
- fontWeight: L.value.style.chart.legend.bold ? "bold" : ""
737
- })), Q = b(!1);
738
- function On(e) {
739
- Q.value = e, Lt.value += 1;
740
- }
741
- let kn = b({}), An = b([]);
742
- function jn(e) {
743
- O("selectDatapoint", e), L.value.style.chart.dialog.show && (An.value = e.datapoints.map((e) => ({
744
- name: e.name,
745
- color: e.color,
746
- type: "line",
747
- useArea: !0,
748
- smooth: L.value.style.chart.areas.smooth,
749
- series: e.values
750
- })), P.value = e, kn.value = ne({
751
- ...L.value.style.chart.dialog.xyChart,
752
- responsive: !0,
753
- chart: {
754
- ...L.value.style.chart.dialog.xyChart.chart,
755
- grid: {
756
- ...L.value.style.chart.dialog.xyChart.chart.grid,
757
- labels: {
758
- ...L.value.style.chart.dialog.xyChart.chart.grid.labels,
759
- xAxisLabels: {
760
- ...L.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
761
- values: L.value.style.chart.xAxis.labels.values,
762
- autoRotate: {
763
- enable: !0,
764
- angle: L.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels.autoRotate.angle
765
- },
766
- datetimeFormatter: L.value.style.chart.xAxis.labels.datetimeFormatter
767
- }
768
- }
769
- },
770
- tooltip: {
771
- ...L.value.style.chart.dialog.xyChart.chart.tooltip,
772
- showTimeLabel: L.value.style.chart.xAxis.labels.values.length > 0
773
- },
774
- userOptions: {
775
- ...L.value.style.chart.dialog.xyChart.chart.userOptions,
776
- buttons: {
777
- ...L.value.style.chart.dialog.xyChart.chart.userOptions.buttons,
778
- altCopy: L.value.userOptions.buttons.altCopy
779
- },
780
- callbacks: {
781
- ...L.value.style.chart.dialog.xyChart.chart.userOptions.callbacks,
782
- altCopy: () => {}
783
- },
784
- useCursorPointer: L.value.userOptions.useCursorPointer
785
- }
786
- }
787
- }), Bt.value && Bt.value.open());
788
- }
789
- let Mn = b(null);
790
- function Nn(e) {
791
- Mn.value = e;
792
- }
793
- function Pn() {
794
- Mn.value = null;
795
- }
796
- let Fn = b(!1);
797
- function In() {
798
- Fn.value = !Fn.value;
799
- }
800
- function Ln() {
801
- U.value.showTable = !U.value.showTable;
802
- }
803
- let Rn = u(() => ({ body: Y.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]) })), $ = u(() => {
810
- let e = [L.value.table.columnNames.series, ...q.value.map((e) => e.text)], t = {
811
- th: {
812
- backgroundColor: L.value.table.th.backgroundColor,
813
- color: L.value.table.th.color,
814
- outline: L.value.table.th.outline
815
- },
816
- td: {
817
- backgroundColor: L.value.table.td.backgroundColor,
818
- color: L.value.table.td.color,
819
- outline: L.value.table.td.outline
820
- },
821
- breakpoint: L.value.table.responsiveBreakpoint
822
- };
823
- return {
824
- colNames: [L.value.table.columnNames.series, ...q.value.map((e) => e.text)],
825
- head: e,
826
- body: Rn.value.body,
827
- config: t
828
- };
829
- });
830
- function zn(e = null) {
831
- He(() => {
832
- let r = [[L.value.table.columnNames.series, ...q.map((e) => [e.text])], ...Rn.value.body.map((e, t) => [e[0].name, ...e.slice(1)])], i = [[L.value.style.chart.title.text], [L.value.style.chart.title.subtitle.text]].concat(r), a = n(i);
833
- e ? e(a) : t({
834
- csvContent: a,
835
- title: L.value.style.chart.title.text || "vue-ui-ridgeline"
836
- });
837
- });
838
- }
839
- function Bn() {
840
- return Y.value;
841
- }
842
- async function Vn({ scale: e = 2 } = {}) {
843
- if (!k.value) return;
844
- let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Te({
845
- domElement: k.value,
846
- base64: !0,
847
- img: !0,
848
- scale: e
849
- });
850
- return {
851
- imageUri: i,
852
- base64: a,
853
- title: L.value.style.chart.title.text,
854
- width: t,
855
- height: n,
856
- aspectRatio: r
857
- };
858
- }
859
- let Hn = u(() => ({
860
- min: 0,
861
- max: _n.value
862
- }));
863
- we({
864
- timeLabelsEls: Ht,
865
- timeLabels: q,
866
- slicer: Hn,
867
- configRef: L,
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: pn,
885
- height: mn,
886
- targetClass: ".vue-ui-ridgeline-x-axis-label",
887
- angle: L.value.style.chart.xAxis.labels.autoRotate.angle
888
- });
889
- let Un = u(() => {
890
- let e = L.value.table.useDialog && !L.value.table.show, t = U.value.showTable;
891
- return {
892
- component: e ? Et : xt,
893
- title: `${L.value.style.chart.title.text}${L.value.style.chart.title.subtitle.text ? `: ${L.value.style.chart.title.subtitle.text}` : ""}`,
894
- props: e ? {
895
- backgroundColor: L.value.table.th.backgroundColor,
896
- color: L.value.table.th.color,
897
- headerColor: L.value.table.th.color,
898
- headerBg: L.value.table.th.backgroundColor,
899
- isFullscreen: Q.value,
900
- fullscreenParent: k.value,
901
- forcedWidth: Math.min(800, window.innerWidth * .8),
902
- isCursorPointer: R.value
903
- } : {
904
- hideDetails: !0,
905
- config: {
906
- open: t,
907
- maxHeight: 1e4,
908
- body: {
909
- backgroundColor: L.value.style.chart.backgroundColor,
910
- color: L.value.style.chart.color
911
- },
912
- head: {
913
- backgroundColor: L.value.style.chart.backgroundColor,
914
- color: L.value.style.chart.color
915
- }
916
- }
917
- }
918
- };
919
- });
920
- Je(() => U.value.showTable, (e) => {
921
- L.value.table.show || (e && L.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
922
- });
923
- function Wn() {
924
- U.value.showTable = !1, Ut.value && Ut.value.setTableIconState(!1);
925
- }
926
- let Gn = u(() => L.value.style.chart.backgroundColor), Kn = u(() => ({
927
- ...L.value.style.chart.legend,
928
- position: "bottom"
929
- })), qn = u(() => L.value.style.chart.title), { isCallbackImaging: Jn, isCallbackSvg: Yn, generateSvg: Xn, onGenerateImage: Zn } = Ce({
930
- svg: V,
931
- title: qn,
932
- legend: Kn,
933
- legendItems: Z,
934
- backgroundColor: Gn,
935
- getSvgCallback: () => L.value.userOptions.callbacks.svg,
936
- generateImage: nn
937
- });
938
- function Qn(e) {
939
- $n("xy-zoom", e.dataset, e.config);
940
- }
941
- async function $n(e = "main-chart", t = null, n = null) {
942
- if (O("copyAlt", {
943
- source: e,
944
- config: e === "main-chart" ? L.value : kn.value,
945
- dataset: e === "main-chart" ? Y.value : An.value
946
- }), !L.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(L.value.userOptions.callbacks.altCopy({
951
- source: e,
952
- config: e === "main-chart" ? L.value : kn.value,
953
- dataset: e === "main-chart" ? Y.value : An.value
954
- }));
955
- }
956
- function er() {
957
- I.value = null, Wt.value = !0;
958
- }
959
- function tr() {
960
- ar(), Wt.value = !1;
961
- }
962
- function nr(e) {
963
- if (!V.value || Fn.value || document.activeElement !== V.value || !Y.value.length) return;
964
- let t = e.key === "ArrowUp", n = e.key === "ArrowDown", r = e.key === "ArrowLeft", i = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", ee = e.key === "Escape";
965
- if (!t && !n && !r && !i && !a && !ee) return;
966
- if (e.preventDefault(), e.stopPropagation(), ee) {
967
- ar();
968
- return;
969
- }
970
- if (a) {
971
- if (I.value !== null) {
972
- let e = Y.value[I.value];
973
- e && jn(e);
974
- return;
975
- }
976
- N.value && Sn(N.value);
977
- return;
978
- }
979
- if (t || n) {
980
- let e = I.value;
981
- e = e === null ? n ? 0 : Y.value.length - 1 : rr(e + (n ? 1 : -1)), I.value = e, Mn.value = e;
982
- return;
983
- }
984
- if (!J.value.length) return;
985
- let te = N.value?.index ?? null;
986
- te = te === null ? i ? 0 : J.value.length - 1 : ir(te + (i ? 1 : -1));
987
- let o = J.value[te];
988
- o && bn(o);
989
- }
990
- function rr(e) {
991
- let t = Y.value.length;
992
- return t ? (e % t + t) % t : null;
993
- }
994
- function ir(e) {
995
- let t = J.value.length;
996
- return t ? (e % t + t) % t : null;
997
- }
998
- function ar() {
999
- I.value = null, Mn.value = null, N.value ? xn(N.value) : N.value = null;
1000
- }
1001
- let or = u(() => ({
1002
- head: $.value.head,
1003
- body: $.value.body.map((e) => [e[0]?.name ?? "", ...e.slice(1)]),
1004
- caption: L.value.a11y.translations.tableCaption,
1005
- notice: L.value.a11y.translations.tableAvailable
1006
- }));
1007
- return Oe({
1008
- getData: Bn,
1009
- getImage: Vn,
1010
- generateImage: nn,
1011
- generateSvg: Xn,
1012
- generatePdf: tn,
1013
- generateCsv: zn,
1014
- hideSeries: dn,
1015
- showSeries: un,
1016
- toggleAnnotator: In,
1017
- toggleTable: Ln,
1018
- toggleFullscreen: On,
1019
- copyAlt: $n
1020
- }), (e, t) => (y(), p("div", {
1021
- ref_key: "ridgelineChart",
1022
- ref: k,
1023
- class: Ue(`vue-data-ui-component vue-ui-ridgeline ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
1024
- id: `vue-ui-ridgeline_${M.value}`,
1025
- style: v({
1026
- fontFamily: L.value.style.fontFamily,
1027
- width: "100%",
1028
- textAlign: "center",
1029
- background: L.value.style.chart.backgroundColor,
1030
- height: L.value.responsive ? "100%" : void 0
1031
- }),
1032
- onMouseenter: t[3] ||= () => w(Xt)(!0),
1033
- onMouseleave: t[4] ||= () => w(Xt)(!1)
1034
- }, [
1035
- m("div", {
1036
- id: `chart-instructions-${M.value}`,
1037
- class: "sr-only"
1038
- }, [m("p", null, C(L.value.a11y.translations.keyboardNavigation), 1)], 8, Qe),
1039
- or.value.body.length ? (y(), d(Ne, {
1040
- key: 0,
1041
- uid: M.value,
1042
- head: or.value.head,
1043
- body: or.value.body,
1044
- caption: or.value.caption,
1045
- notice: or.value.notice
1046
- }, null, 8, [
1047
- "uid",
1048
- "head",
1049
- "body",
1050
- "caption",
1051
- "notice"
1052
- ])) : f("", !0),
1053
- L.value.userOptions.buttons.annotator && w(V) ? (y(), d(w(Ct), {
1054
- key: 1,
1055
- color: L.value.style.chart.color,
1056
- backgroundColor: L.value.style.chart.backgroundColor,
1057
- active: Fn.value,
1058
- svgRef: w(V),
1059
- isCursorPointer: R.value,
1060
- onClose: In
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
- rn.value ? (y(), p("div", {
1078
- key: 2,
1079
- ref_key: "noTitle",
1080
- ref: Nt,
1081
- class: "vue-data-ui-no-title-space",
1082
- style: "height:36px; width: 100%;background:transparent"
1083
- }, null, 512)) : f("", !0),
1084
- L.value.style.chart.title.text ? (y(), p("div", {
1085
- key: 3,
1086
- ref_key: "chartTitle",
1087
- ref: At,
1088
- style: "width:100%;background:transparent;padding-bottom:24px"
1089
- }, [(y(), d(Ee, {
1090
- key: `title_${Pt.value}`,
1091
- config: {
1092
- title: {
1093
- cy: "ridgeline-div-title",
1094
- ...L.value.style.chart.title
1095
- },
1096
- subtitle: {
1097
- cy: "ridgeline-div-subtitle",
1098
- ...L.value.style.chart.title.subtitle
1099
- }
1100
- }
1101
- }, null, 8, ["config"]))], 512)) : f("", !0),
1102
- L.value.userOptions.show && D.value && (w(Zt) || w(Yt)) ? (y(), d(w(wt), {
1103
- ref_key: "userOptionsRef",
1104
- ref: Ut,
1105
- key: `user_option_${Lt.value}`,
1106
- backgroundColor: L.value.style.chart.backgroundColor,
1107
- color: L.value.style.chart.color,
1108
- isPrinting: w($t),
1109
- isImaging: w(en),
1110
- uid: M.value,
1111
- hasTooltip: !1,
1112
- callbacks: L.value.userOptions.callbacks,
1113
- hasPdf: L.value.userOptions.buttons.pdf,
1114
- hasImg: L.value.userOptions.buttons.img,
1115
- hasSvg: L.value.userOptions.buttons.svg,
1116
- hasXls: L.value.userOptions.buttons.csv,
1117
- hasTable: L.value.userOptions.buttons.table,
1118
- hasLabel: !1,
1119
- hasFullscreen: L.value.userOptions.buttons.fullscreen,
1120
- hasAltCopy: L.value.userOptions.buttons.altCopy,
1121
- isFullscreen: Q.value,
1122
- printScale: L.value.userOptions.print.scale,
1123
- chartElement: k.value,
1124
- position: L.value.userOptions.position,
1125
- isTooltip: !1,
1126
- titles: { ...L.value.userOptions.buttonTitles },
1127
- hasAnnotator: L.value.userOptions.buttons.annotator,
1128
- isAnnotation: Fn.value,
1129
- tableDialog: L.value.table.useDialog,
1130
- style: v({ visibility: w(Zt) ? w(Yt) ? "visible" : "hidden" : "visible" }),
1131
- isCursorPointer: R.value,
1132
- onToggleFullscreen: On,
1133
- onGeneratePdf: w(tn),
1134
- onGenerateCsv: zn,
1135
- onGenerateImage: w(Zn),
1136
- onGenerateSvg: w(Xn),
1137
- onToggleTable: Ln,
1138
- onToggleAnnotator: In,
1139
- onCopyAlt: $n
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: V,
1214
- xmlns: w(fe),
1215
- "aria-describedby": `chart-instructions-${M.value}`,
1216
- class: Ue({
1217
- "vue-data-ui-fullscreen--on": Q.value,
1218
- "vue-data-ui-fulscreen--off": !Q.value
1219
- }),
1220
- viewBox: `0 0 ${G.value.width <= 0 ? 10 : G.value.width} ${K.value.fullHeight <= 0 ? 10 : K.value.fullHeight}`,
1221
- style: v(`max-width:100%;overflow:visible;background:transparent;color:${L.value.style.chart.color};${L.value.responsive ? `height: ${Vt.value}px; width: 100%;` : ""}`),
1222
- tabindex: "0",
1223
- onFocus: er,
1224
- onBlur: tr,
1225
- onKeydown: nr
1226
- }, [
1227
- Be(w(Tt)),
1228
- m("defs", null, [(y(!0), p(l, null, x(Z.value, (e, t) => (y(), d(je, {
1229
- t: "linear",
1230
- id: `gradient-${e.id}-${M.value}`,
1231
- key: `gradient-${e.id}-${M.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(Y.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-${M.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(Y.value, (t, n) => (y(), p("g", { key: `ds-${n}` }, [(y(!0), p(l, null, x(t.datapoints, (t, r) => (y(), p("g", { key: t.id }, [
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_${M.value}_${t.uid}`
1294
- }), void 0, !0)])])) : f("", !0),
1295
- m("path", {
1296
- fill: e.$slots.pattern ? `url(#pattern_${M.value}_${t.uid})` : L.value.style.chart.backgroundColor,
1297
- stroke: "none",
1298
- "stroke-linecap": "round",
1299
- d: L.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
1300
- style: v({ opacity: L.value.style.chart.areas.opacity })
1301
- }, null, 12, nt),
1302
- m("path", {
1303
- fill: "none",
1304
- stroke: L.value.style.chart.areas.stroke.useSerieColor ? t.color : L.value.style.chart.areas.stroke.color,
1305
- "stroke-width": L.value.style.chart.areas.strokeWidth,
1306
- d: L.value.style.chart.areas.smooth ? t.smoothPathRidge : t.straightPathRidge,
1307
- "stroke-linecap": "round",
1308
- "stroke-linejoin": "round",
1309
- style: v({
1310
- strokeDasharray: t.pathLength,
1311
- strokeDashoffset: L.value.useCssAnimation ? t.pathLength : 0
1312
- })
1313
- }, null, 12, rt),
1314
- m("path", {
1315
- 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,
1316
- stroke: "none",
1317
- d: L.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
1318
- "stroke-linecap": "round",
1319
- "stroke-linejoin": "round",
1320
- style: v({
1321
- strokeDasharray: t.pathLength,
1322
- strokeDashoffset: L.value.useCssAnimation ? t.pathLength : 0
1323
- })
1324
- }, null, 12, it),
1325
- L.value.style.chart.zeroLine.show ? (y(), p("path", {
1326
- key: 1,
1327
- stroke: L.value.style.chart.zeroLine.useSerieColor ? t.color : L.value.style.chart.zeroLine.stroke,
1328
- "stroke-dasharray": L.value.style.chart.zeroLine.strokeDasharray,
1329
- "stroke-width": L.value.style.chart.zeroLine.strokeWidth,
1330
- d: t.zeroPath,
1331
- "stroke-linecap": "round"
1332
- }, null, 8, at)) : f("", !0),
1333
- L.value.style.chart.areas.maxPoint.show && t.plots.length > 1 ? (y(!0), p(l, { key: 2 }, x(t.plots, (e) => (y(), p(l, null, [e.isMaxPoint ? (y(), p("line", {
1334
- key: 0,
1335
- x1: e.x,
1336
- y1: e.y,
1337
- x2: e.x,
1338
- y2: e.zero,
1339
- stroke: L.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? w(de)(t.color) : L.value.style.chart.areas.maxPoint.stroke,
1340
- "stroke-width": L.value.style.chart.areas.maxPoint.strokeWidth,
1341
- "stroke-linecap": "round",
1342
- "stroke-dasharray": L.value.style.chart.areas.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.style.chart.selector.dot.stroke,
1349
- "stroke-width": L.value.style.chart.selector.dot.strokeWidth,
1350
- r: L.value.style.chart.selector.dot.radius,
1351
- fill: L.value.style.chart.selector.dot.useDatapointColor ? t.color : L.value.style.chart.selector.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": L.value.style.chart.yAxis.labels.fontSize,
1359
- "font-weight": L.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
1360
- fill: L.value.style.chart.yAxis.labels.color,
1361
- style: v({ cursor: L.value.style.chart.dialog.show && R.value ? "pointer" : "default" }),
1362
- "text-decoration": L.value.style.chart.dialog.show && (Mn.value === n || P.value && t.uid === P.value.uid || I.value === n) ? "underline" : "",
1363
- "dominant-baseline": "middle",
1364
- onMouseenter: (e) => Nn(n),
1365
- onMouseleave: Pn,
1366
- onClick: (e) => jn(t)
1367
- }, C(t.name), 45, ct)]))), 128)),
1368
- L.value.style.chart.xAxis.labels.values.length ? (y(), p("g", {
1369
- key: 0,
1370
- ref_key: "timeLabelsEls",
1371
- ref: Ht
1372
- }, [(y(!0), p(l, null, x(J.value, (t, n) => S(e.$slots, "time-label", Ve({ ref_for: !0 }, {
1373
- 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.max(1, Math.floor(Number(L.value.style.chart.xAxis.labels.modulo) || 1)) === 0,
1374
- fontSize: L.value.style.chart.xAxis.labels.fontSize,
1375
- content: t.label,
1376
- textAnchor: L.value.style.chart.xAxis.labels.rotation > 0 ? "start" : L.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1377
- fill: L.value.style.chart.xAxis.labels.color,
1378
- transform: `translate(${t.selectorX}, ${K.value.top + t.height + L.value.style.chart.xAxis.labels.offsetY}), rotate(${L.value.style.chart.xAxis.labels.rotation})`,
1379
- x: t.selectorX,
1380
- y: K.value.bottom + L.value.style.chart.xAxis.labels.offsetY
1381
- }), () => [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.max(1, Math.floor(Number(L.value.style.chart.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": L.value.style.chart.xAxis.labels.fontSize,
1385
- fill: L.value.style.chart.xAxis.labels.color,
1386
- "font-weight": L.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
1387
- transform: `translate(${t.selectorX}, ${K.value.bottom + L.value.style.chart.xAxis.labels.offsetY}), rotate(${L.value.style.chart.xAxis.labels.rotation})`,
1388
- "text-anchor": L.value.style.chart.xAxis.labels.rotation > 0 ? "start" : L.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1389
- style: v({ opacity: N.value ? N.value.index === n ? 1 : .2 : 1 }),
1390
- innerHTML: w(r)({
1391
- content: String(t.label),
1392
- fontSize: L.value.style.chart.xAxis.labels.fontSize,
1393
- fill: L.value.style.chart.xAxis.labels.color,
1394
- stroke: L.value.style.chart.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": L.value.style.chart.xAxis.labels.fontSize,
1402
- fill: L.value.style.chart.xAxis.labels.color,
1403
- stroke: L.value.style.chart.backgroundColor,
1404
- "stroke-width": "3",
1405
- "stroke-linecap": "round",
1406
- "stroke-linejoin": "round",
1407
- "paint-order": "stroke fill",
1408
- "font-weight": L.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
1409
- transform: `translate(${t.selectorX}, ${K.value.bottom + L.value.style.chart.xAxis.labels.offsetY}), rotate(${L.value.style.chart.xAxis.labels.rotation})`,
1410
- "text-anchor": L.value.style.chart.xAxis.labels.rotation > 0 ? "start" : L.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1411
- style: v({ opacity: N.value ? N.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(J.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) => bn(e),
1421
- onMouseleave: (t) => xn(e),
1422
- onClick: () => Sn(e)
1423
- }, null, 40, ft))), 256)),
1424
- L.value.style.chart.selector.show && N.value ? (y(), p("line", {
1425
- key: 0,
1426
- x1: N.value.selectorX,
1427
- x2: N.value.selectorX,
1428
- y1: N.value.y,
1429
- y2: N.value.y + N.value.height - B.value / 2,
1430
- stroke: L.value.style.chart.selector.stroke,
1431
- "stroke-width": L.value.style.chart.selector.strokeWidth,
1432
- "stroke-dasharray": L.value.style.chart.selector.strokeDasharray,
1433
- "stroke-linecap": "round",
1434
- style: { pointerEvents: "none" }
1435
- }, null, 8, pt)) : f("", !0),
1436
- N.value ? (y(!0), p(l, { key: 1 }, x(Y.value, (e) => (y(), p(l, null, [(y(!0), p(l, null, x(e.datapoints, (e) => (y(), p(l, null, [(y(!0), p(l, null, x(e.plots, (t, n) => (y(), p(l, null, [N.value && N.value.index === n ? (y(), p("circle", {
1437
- key: 0,
1438
- cx: t.x,
1439
- cy: t.y,
1440
- stroke: L.value.style.chart.selector.dot.stroke,
1441
- "stroke-width": L.value.style.chart.selector.dot.strokeWidth,
1442
- r: L.value.style.chart.selector.dot.radius,
1443
- fill: L.value.style.chart.selector.dot.useDatapointColor ? e.color : L.value.style.chart.selector.dot.fill,
1444
- style: { pointerEvents: "none" }
1445
- }, null, 8, mt)) : f("", !0), N.value && N.value.index === n ? (y(), p("text", {
1446
- key: 1,
1447
- x: wn(t.x, w(ce)(L.value.style.chart.selector.labels.formatter, t.value, w(c)({
1448
- p: L.value.style.chart.xAxis.labels.prefix,
1449
- v: t.value,
1450
- s: L.value.style.chart.xAxis.labels.suffix,
1451
- r: L.value.style.chart.selector.labels.rounding
1452
- })), 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,
1453
- y: t.y,
1454
- "dominant-baseline": "middle",
1455
- stroke: L.value.style.chart.backgroundColor,
1456
- "stroke-linecap": "round",
1457
- "stroke-linejoin": "round",
1458
- "stroke-width": "3",
1459
- "paint-order": "stroke fill",
1460
- "text-anchor": wn(t.x, w(ce)(L.value.style.chart.selector.labels.formatter, t.value, w(c)({
1461
- p: L.value.style.chart.xAxis.labels.prefix,
1462
- v: t.value,
1463
- s: L.value.style.chart.xAxis.labels.suffix,
1464
- r: L.value.style.chart.selector.labels.rounding
1465
- })), L.value.style.chart.selector.labels.fontSize) ? "end" : "start",
1466
- "font-size": L.value.style.chart.selector.labels.fontSize,
1467
- fill: L.value.style.chart.selector.labels.color,
1468
- style: { pointerEvents: "none" }
1469
- }, C(w(ce)(L.value.style.chart.selector.labels.formatter, t.value, w(c)({
1470
- p: L.value.style.chart.xAxis.labels.prefix,
1471
- v: t.value,
1472
- s: L.value.style.chart.xAxis.labels.suffix,
1473
- r: L.value.style.chart.selector.labels.rounding
1474
- }))), 9, ht)) : f("", !0)], 64))), 256))], 64))), 256))], 64))), 256)) : f("", !0)
1475
- ]),
1476
- S(e.$slots, "svg", { svg: {
1477
- ...G.value,
1478
- drawingArea: K.value,
1479
- isPrintingImg: w($t) || w(en) || w(Jn),
1480
- isPrintingSvg: w(Yn),
1481
- data: Y.value
1482
- } }, void 0, !0)
1483
- ], 46, et)), e.$slots.hint ? (y(), p("div", gt, [S(e.$slots, "hint", _(g({
1484
- hint: L.value.a11y.translations.keyboardNavigation,
1485
- isVisible: Wt.value
1486
- })), void 0, !0)])) : f("", !0)]),
1487
- e.$slots.watermark ? (y(), p("div", _t, [S(e.$slots, "watermark", _(g({ isPrinting: w($t) || w(en) || w(Jn) || w(Yn) })), void 0, !0)])) : f("", !0),
1488
- m("div", {
1489
- ref_key: "chartLegend",
1490
- ref: jt
1491
- }, [S(e.$slots, "legend", { legend: Z.value }, () => [L.value.style.chart.legend.show ? (y(), d(Ie, {
1492
- key: `legend_${It.value}`,
1493
- legendSet: Z.value,
1494
- config: Dn.value,
1495
- isCursorPointer: R.value,
1496
- onClickMarker: t[0] ||= ({ legend: e }) => cn(e.id)
1497
- }, Re({
1498
- item: T(({ legend: e }) => [w(qt) ? f("", !0) : (y(), p("div", {
1499
- key: 0,
1500
- style: v(`opacity:${X.value.includes(e.id) ? .5 : 1}`),
1501
- onClick: (t) => e.segregate()
1502
- }, C(e.name), 13, vt))]),
1503
- legendToggle: T(() => [Z.value.length > 2 && L.value.style.chart.legend.selectAllToggle.show && !w(qt) ? (y(), d(Me, {
1504
- key: 0,
1505
- backgroundColor: L.value.style.chart.legend.selectAllToggle.backgroundColor,
1506
- color: L.value.style.chart.legend.selectAllToggle.color,
1507
- fontSize: L.value.style.chart.legend.fontSize,
1508
- checked: X.value.length > 0,
1509
- isCursorPointer: R.value,
1510
- onToggle: sn
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_${M.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: Mt,
1541
- dir: "auto"
1542
- }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
1543
- D.value && L.value.userOptions.buttons.table ? (y(), d(Ge(Un.value.component), Ve({ key: 7 }, Un.value.props, {
1544
- ref_key: "tableUnit",
1545
- ref: F,
1546
- onClose: Wn
1547
- }), Re({
1548
- content: T(() => [(y(), d(w(St), {
1549
- key: `table_${Ft.value}`,
1550
- colNames: $.value.colNames,
1551
- head: $.value.head,
1552
- body: $.value.body,
1553
- config: $.value.config,
1554
- title: L.value.table.useDialog ? "" : Un.value.title,
1555
- withCloseButton: !L.value.table.useDialog,
1556
- isCursorPointer: R.value,
1557
- onClose: Wn
1558
- }, {
1559
- th: T(({ th: e }) => [m("div", null, C(e), 1)]),
1560
- td: T(({ td: e }) => [ze(C(e.name ? e.name : w(ce)(L.value.style.chart.selector.labels.formatter, e, w(c)({
1561
- p: L.value.style.chart.xAxis.labels.prefix,
1562
- v: e,
1563
- s: L.value.style.chart.xAxis.labels.suffix,
1564
- r: L.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
- }, [L.value.table.useDialog ? {
1578
- name: "title",
1579
- fn: T(() => [ze(C(Un.value.title), 1)]),
1580
- key: "0"
1581
- } : void 0, L.value.table.useDialog ? {
1582
- name: "actions",
1583
- fn: T(() => [m("button", {
1584
- tabindex: "0",
1585
- class: "vue-ui-user-options-button",
1586
- onClick: t[1] ||= (e) => zn(L.value.userOptions.callbacks.csv),
1587
- style: v({ cursor: R.value ? "pointer" : "default" })
1588
- }, [Be(w(bt), {
1589
- name: "fileCsv",
1590
- stroke: Un.value.props.color
1591
- }, null, 8, ["stroke"])], 4)]),
1592
- key: "1"
1593
- } : void 0]), 1040)) : f("", !0),
1594
- L.value.style.chart.dialog.show ? (y(), d(w(Et), {
1595
- key: 8,
1596
- ref_key: "dialog",
1597
- ref: Bt,
1598
- onClose: t[2] ||= (e) => P.value = null,
1599
- backgroundColor: L.value.style.chart.dialog.backgroundColor,
1600
- color: L.value.style.chart.dialog.color,
1601
- headerBg: L.value.style.chart.dialog.header.backgroundColor,
1602
- headerColor: L.value.style.chart.dialog.header.color,
1603
- isFullscreen: Q.value,
1604
- fullscreenParent: k.value,
1605
- isCursorPointer: R.value,
1606
- withPadding: ""
1607
- }, {
1608
- title: T(() => [ze(C(P.value.name), 1)]),
1609
- content: T(() => [P.value ? (y(), d(w(yt), {
1610
- key: 0,
1611
- config: kn.value,
1612
- dataset: An.value,
1613
- onCopyAlt: Qn
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(qt) ? (y(), d(be, { key: 0 })) : f("", !0)], !0)
1626
- ], 46, Ze));
1627
- }
1628
- }, [["__scopeId", "data-v-0841144b"]]);
1629
- //#endregion
1630
- export { Xe as n, yt as t };