vue-data-ui 3.22.9 → 3.22.11

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