vue-data-ui 3.23.0 → 3.23.1

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