vue-data-ui 3.22.13 → 3.23.0

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 (224) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
  4. package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
  5. package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
  6. package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
  7. package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
  8. package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
  9. package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
  10. package/dist/HillActions-BWhxHlrj.js +187 -0
  11. package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
  13. package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
  14. package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
  15. package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
  16. package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
  17. package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
  18. package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
  19. package/dist/Title-BODtwViI.js +87 -0
  20. package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
  21. package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
  93. package/dist/exposedLib-DWLRqRhv.js +25 -0
  94. package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
  95. package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
  96. package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
  97. package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
  98. package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
  99. package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +493 -0
  105. package/dist/types/vue-ui-hill.d.ts +90 -0
  106. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  107. package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
  108. package/dist/useHints-Dq_w2E8B.js +66 -0
  109. package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
  110. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
  111. package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
  112. package/dist/useTransitions-g_zBREk2.js +39 -0
  113. package/dist/utils.js +14 -14
  114. package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
  115. package/dist/vue-data-ui.js +77 -76
  116. package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
  117. package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
  119. package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
  120. package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
  121. package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
  122. package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
  123. package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
  124. package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
  125. package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
  126. package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
  127. package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
  128. package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
  129. package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
  130. package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
  131. package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
  132. package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
  133. package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
  134. package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
  135. package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
  136. package/dist/vue-ui-funnel-CjYosIik.js +797 -0
  137. package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
  138. package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
  139. package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
  140. package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
  141. package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
  142. package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
  143. package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
  144. package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
  145. package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
  146. package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
  147. package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
  148. package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
  149. package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
  150. package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
  151. package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
  152. package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
  153. package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
  154. package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
  155. package/dist/vue-ui-rating--K7rX2an.js +360 -0
  156. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
  157. package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
  158. package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
  159. package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
  160. package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
  161. package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
  162. package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
  163. package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
  164. package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
  165. package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
  166. package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
  167. package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
  168. package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
  169. package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
  170. package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
  171. package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
  172. package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
  173. package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
  174. package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
  175. package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
  176. package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
  177. package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
  178. package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
  179. package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
  180. package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
  181. package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
  182. package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
  183. package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
  184. package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
  185. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  186. package/package.json +2 -2
  187. package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
  188. package/dist/Title-BuPs74IB.js +0 -87
  189. package/dist/exposedLib-Ciw6TGtP.js +0 -25
  190. package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
  191. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  192. package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
  193. package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
  194. package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
  195. package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
  196. package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
  197. package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
  198. package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
  199. package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
  200. package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
  201. package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
  202. package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
  203. package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
  204. package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
  205. package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
  206. package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
  207. package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
  208. package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
  209. package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
  210. package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
  211. package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
  212. package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
  213. package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
  214. package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
  215. package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
  216. package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
  217. package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
  218. package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
  219. package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
  220. package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
  221. package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
  222. package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
  223. package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
  224. package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
@@ -1,1627 +0,0 @@
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-CluEZ7lS.js").then((e) => e.n)), vt = g(() => import("./BaseIcon-CP5RWnqt.js").then((e) => e.n)), yt = g(() => import("./vue-ui-accordion-UA88lv4d.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-DzAFK9cY.js").then((e) => e.n)), Ct = g(() => import("./PackageVersion-B6Hokxw9.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 };