vue-data-ui 3.25.4 → 3.25.6

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