vue-data-ui 3.22.9 → 3.22.10

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