vue-data-ui 3.15.12 → 3.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +132 -59
  2. package/dist/A11yDataTable-KcVAX2cP.js +54 -0
  3. package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
  5. package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
  6. package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
  7. package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
  8. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  9. package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
  10. package/dist/Legend-CS7Xo5LK.js +101 -0
  11. package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
  12. package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
  13. package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  14. package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
  15. package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
  16. package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
  17. package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
  18. package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
  19. package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
  20. package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
  21. package/dist/components/arrow.js +1 -1
  22. package/dist/components/vue-ui-3d-bar.js +1 -1
  23. package/dist/components/vue-ui-accordion.js +1 -1
  24. package/dist/components/vue-ui-age-pyramid.js +1 -1
  25. package/dist/components/vue-ui-annotator.js +1 -1
  26. package/dist/components/vue-ui-bullet.js +1 -1
  27. package/dist/components/vue-ui-bump.js +1 -1
  28. package/dist/components/vue-ui-candlestick.js +1 -1
  29. package/dist/components/vue-ui-carousel-table.js +1 -1
  30. package/dist/components/vue-ui-chestnut.js +1 -1
  31. package/dist/components/vue-ui-chord.js +1 -1
  32. package/dist/components/vue-ui-circle-pack.js +1 -1
  33. package/dist/components/vue-ui-cursor.js +1 -1
  34. package/dist/components/vue-ui-dag.js +1 -1
  35. package/dist/components/vue-ui-dashboard.js +1 -1
  36. package/dist/components/vue-ui-digits.js +1 -1
  37. package/dist/components/vue-ui-donut-evolution.js +1 -1
  38. package/dist/components/vue-ui-donut.js +1 -1
  39. package/dist/components/vue-ui-dumbbell.js +1 -1
  40. package/dist/components/vue-ui-flow.js +1 -1
  41. package/dist/components/vue-ui-funnel.js +1 -1
  42. package/dist/components/vue-ui-galaxy.js +1 -1
  43. package/dist/components/vue-ui-gauge.js +1 -1
  44. package/dist/components/vue-ui-geo.js +1 -1
  45. package/dist/components/vue-ui-gizmo.js +1 -1
  46. package/dist/components/vue-ui-heatmap.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
  91. package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
  92. package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
  93. package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
  94. package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
  95. package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/types/vue-data-ui.d.ts +59 -0
  98. package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
  99. package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
  100. package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
  101. package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
  102. package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
  103. package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
  104. package/dist/utils.js +3 -3
  105. package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
  108. package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
  109. package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
  110. package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
  111. package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
  112. package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
  113. package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
  114. package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
  115. package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
  116. package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
  117. package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
  118. package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
  119. package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
  120. package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
  121. package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
  122. package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
  123. package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
  124. package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
  125. package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
  126. package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
  127. package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
  128. package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
  129. package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
  130. package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
  131. package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
  132. package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
  133. package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
  134. package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
  135. package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
  136. package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
  137. package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
  138. package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
  139. package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
  141. package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
  142. package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
  143. package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
  144. package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
  145. package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
  146. package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
  147. package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
  148. package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
  149. package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
  150. package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
  151. package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
  152. package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
  153. package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
  154. package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
  155. package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
  156. package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
  157. package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
  158. package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
  159. package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
  160. package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
  161. package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
  162. package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
  163. package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
  164. package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
  165. package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
  166. package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
  167. package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
  168. package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
  169. package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
  170. package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
  171. package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
  172. package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
  173. package/package.json +2 -2
  174. package/dist/ColorPicker-j0ySewhI.js +0 -244
  175. package/dist/Legend-1LMMsPxL.js +0 -90
  176. package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
  177. package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
  178. package/dist/vue-ui-bump-C_fKharc.js +0 -1059
  179. package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
  180. package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
  181. package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
  182. package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
  183. package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
  184. package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
  185. package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
  186. package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
  187. package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
  188. package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
  189. package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
  190. package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
  191. package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
  192. package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
  193. package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
  194. package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
  195. package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
  196. package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
  197. package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
  198. package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
  199. package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
  200. package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
  201. package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
  202. package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
  203. package/dist/vue-ui-rings-80ZUki42.js +0 -1083
  204. package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
  205. package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
  206. package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
  207. package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
  208. package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
  209. package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
  210. package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
  211. package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
  212. package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
  213. package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
  214. package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
  215. package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
  216. package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
  217. package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
  218. package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
@@ -1,1385 +0,0 @@
1
- import { defineAsyncComponent as N, computed as v, ref as i, shallowRef as ft, toRefs as ka, onBeforeUnmount as gt, watch as ae, nextTick as he, watchEffect as yt, openBlock as n, createElementBlock as r, unref as u, normalizeStyle as C, normalizeClass as fe, createBlock as _, withCtx as c, renderSlot as d, normalizeProps as P, guardReactiveProps as S, createCommentVNode as h, createSlots as Ie, createVNode as Re, createElementVNode as y, Fragment as m, renderList as A, mergeProps as Ne, toDisplayString as V, resolveDynamicComponent as Ca, createTextVNode as Fe } from "vue";
2
- import { j as Ee, t as pt, n as Aa, s as wa, p as ge, as as mt, P as $a, b as bt, c as _a, ai as Pa, X as Sa, W as Ta, Z as Oa, k as ye, l as pe, m as La, q as Be, r as xt, o as Ma, a0 as za, a1 as Da, ab as Ia } from "./lib-GwPnJSrY.js";
3
- import { t as kt, u as Ra } from "./useResponsive-DfdjqQps.js";
4
- import { u as Na } from "./useConfig-CIgyKZ6R.js";
5
- import { u as Fa, B as Ea } from "./BaseScanner-BhhkKVoj.js";
6
- import { u as Ba } from "./usePrinter-DiK5R6k-.js";
7
- import { u as Xa } from "./useSvgExport-ByUukOZt.js";
8
- import { u as Xe } from "./useNestedProp-BBT0mbHh.js";
9
- import { u as Ha } from "./useTimeLabels-C-A2uZKi.js";
10
- import { u as Ua } from "./useThemeCheck-D1ZYXUwG.js";
11
- import { u as Va } from "./useUserOptionState-BIvW1Kz7.js";
12
- import { u as Wa } from "./useChartAccessibility-9icAAmYg.js";
13
- import { u as Ga } from "./useTimeLabelCollider-CIsgDrl9.js";
14
- import ja from "./vue_ui_ridgeline-j4rVmpEp.js";
15
- import Ya from "./Legend-1LMMsPxL.js";
16
- import qa from "./Title-BfyrP-jp.js";
17
- import { _ as Za } from "./Shape-CSyWYgXc.js";
18
- import Ja from "./img-BYYzY_QU.js";
19
- import { B as Ka } from "./BaseLegendToggle-Y61xahI4.js";
20
- import { _ as Qa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
21
- const el = ["id"], tl = ["xmlns", "viewBox"], al = ["id"], ll = ["stop-color"], ol = ["stop-color"], sl = ["stop-color"], nl = ["stop-color"], rl = ["id"], ul = ["stop-color"], il = ["stop-color"], cl = ["stop-color"], vl = ["stop-color"], dl = { key: 0 }, hl = ["fill", "d"], fl = ["stroke", "stroke-width", "d"], gl = ["fill", "d"], yl = ["stroke", "stroke-dasharray", "stroke-width", "d"], pl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], ml = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], bl = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], xl = { key: 0 }, kl = ["font-size", "fill", "font-weight", "transform", "text-anchor"], Cl = ["font-size", "fill", "font-weight", "transform", "text-anchor", "innerHTML"], Al = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], wl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], $l = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], _l = ["x", "y", "text-anchor", "font-size", "fill"], Pl = {
22
- key: 4,
23
- class: "vue-data-ui-watermark"
24
- }, Sl = ["onClick"], Tl = ["innerHTML"], Ol = {
25
- __name: "vue-ui-ridgeline",
26
- props: {
27
- config: {
28
- type: Object,
29
- default() {
30
- return {};
31
- }
32
- },
33
- dataset: {
34
- type: Array,
35
- default() {
36
- return [];
37
- }
38
- }
39
- },
40
- emits: ["selectLegend", "selectDatapoint", "selectX", "copyAlt"],
41
- setup(Ct, { expose: At, emit: wt }) {
42
- const $t = N(() => import("./vue-ui-xy-f67V1xjd.js")), _t = N(() => import("./BaseIcon-CNx8Tzl5.js")), Pt = N(() => import("./vue-ui-accordion-BGHTqIBt.js")), St = N(() => import("./DataTable-Bo1pmAqG.js")), Tt = N(() => import("./PenAndPaper-DWV1FMIi.js")), Ot = N(() => import("./UserOptions-CrLqEimB.js")), Lt = N(() => import("./PackageVersion-DN9d0ME5.js")), He = N(() => import("./BaseDraggableDialog-DSpKTn3R.js")), { vue_ui_ridgeline: Mt } = Na(), { isThemeValid: zt, warnInvalidTheme: Dt } = Ua(), M = Ct, q = v({
43
- get() {
44
- return Array.isArray(E.value) && E.value.length > 0;
45
- },
46
- set(t) {
47
- return t;
48
- }
49
- }), le = wt, T = i(null), Ue = i(null), Ve = i(null), z = ft(null), F = ft(null), We = i(null), Ge = i(null), me = i(0), It = i(0), be = i(0), w = i(Ee()), je = i(0), Rt = i(0), Ye = i(512), g = i(null), W = i(null), xe = i(null), qe = i(0), ke = i(null), Z = i(null), Ce = i(null), oe = i(!1), se = i(!1);
50
- function Ae() {
51
- const t = Xe({
52
- userConfig: M.config,
53
- defaultConfig: Mt
54
- }), l = t.theme;
55
- if (!l) return t;
56
- if (!zt.value(t))
57
- return Dt(t), t;
58
- const a = Xe({
59
- userConfig: ja[l] || M.config,
60
- defaultConfig: t
61
- }), s = Xe({
62
- userConfig: M.config,
63
- defaultConfig: a
64
- });
65
- return {
66
- ...s,
67
- customPalette: s.customPalette.length ? s.customPalette : La[l] || ge
68
- };
69
- }
70
- const e = i(Ae()), O = v(() => e.value.userOptions.useCursorPointer), Nt = v(() => pt({
71
- defaultConfig: {
72
- userOptions: { show: !1 },
73
- table: { show: !1 },
74
- style: {
75
- chart: {
76
- backgroundColor: "#99999930",
77
- areas: {
78
- maxPoint: {
79
- show: !1
80
- },
81
- opacity: 0.9,
82
- stroke: {
83
- useSerieColor: !0
84
- }
85
- },
86
- legend: {
87
- backgroundColor: "transparent"
88
- },
89
- padding: {
90
- right: -24,
91
- left: 0
92
- },
93
- xAxis: {
94
- labels: {
95
- values: []
96
- }
97
- },
98
- yAxis: {
99
- labels: {
100
- fontSize: 0
101
- }
102
- },
103
- zeroLine: { show: !1 }
104
- }
105
- }
106
- },
107
- userConfig: e.value.skeletonConfig ?? {}
108
- })), { loading: G, FINAL_DATASET: E, manualLoading: we } = Fa({
109
- ...ka(M),
110
- FINAL_CONFIG: e,
111
- prepareConfig: Ae,
112
- skeletonDataset: M.config?.skeletonDataset ?? [
113
- {
114
- name: "_",
115
- datapoints: [
116
- {
117
- name: "__",
118
- color: "#999999",
119
- values: [28.639, 32.04, 41.134, 44.525, 21.151, 2.436, 0.218, 0.024, 2e-3, 0, 0, 0]
120
- },
121
- {
122
- name: "_",
123
- color: "#CACACA",
124
- values: [13.253, 15.621, 23.36, 33.698, 29.935, 10.874, 2.364, 0.561, 0.107, 0.02, 6e-3, 4e-3]
125
- }
126
- ]
127
- },
128
- {
129
- name: "_",
130
- datapoints: [
131
- {
132
- name: "_",
133
- color: "#999999",
134
- values: [10.851, 13.195, 21.617, 36.556, 42.292, 21.006, 3.398, 0.223, 0.013, 1e-3, 0, 0]
135
- },
136
- {
137
- name: "_",
138
- color: "#CACACA",
139
- values: [3.171, 4.115, 8.108, 18.248, 31.641, 29.063, 12.031, 2.742, 0.504, 0.102, 0.032, 0.021]
140
- }
141
- ]
142
- },
143
- {
144
- name: "_",
145
- datapoints: [
146
- {
147
- name: "_",
148
- color: "#999999",
149
- values: [1.731, 2.334, 5.125, 13.626, 29.911, 38.524, 24.168, 7.646, 1.575, 0.317, 0.097, 0.063]
150
- },
151
- {
152
- name: "_",
153
- color: "#CACACA",
154
- values: [0.25, 0.367, 1.026, 3.944, 13.635, 28.891, 30.149, 15.419, 4.714, 1.246, 0.442, 0.299]
155
- }
156
- ]
157
- },
158
- {
159
- name: "_",
160
- datapoints: [
161
- {
162
- name: "_",
163
- color: "#999999",
164
- values: [0.034, 0.054, 0.194, 1.065, 5.747, 20.735, 38.306, 32.899, 15.318, 5.566, 2.422, 1.76]
165
- },
166
- {
167
- name: "_",
168
- color: "#CACACA",
169
- values: [1e-3, 2e-3, 9e-3, 0.095, 1.124, 8.342, 27.115, 35.08, 21.449, 9.093, 4.243, 3.143]
170
- }
171
- ]
172
- },
173
- {
174
- name: "_",
175
- datapoints: [
176
- {
177
- name: "_",
178
- color: "#999999",
179
- values: [0, 1e-3, 4e-3, 0.051, 0.567, 3.322, 14.215, 44.783, 40.351, 20.377, 9.866, 7.378]
180
- },
181
- {
182
- name: "_",
183
- color: "#CACACA",
184
- values: [0, 0, 0, 0, 1e-3, 0.11, 4.136, 27.498, 43.24, 29.807, 17.345, 13.678]
185
- }
186
- ]
187
- },
188
- {
189
- name: "_",
190
- datapoints: [
191
- {
192
- name: "_",
193
- color: "#999999",
194
- values: [0, 0, 0, 0, 0.025, 0.598, 3.886, 10.645, 54.479, 45.953, 30.814, 24.55]
195
- },
196
- {
197
- name: "_",
198
- color: "#CACACA",
199
- values: [0, 0, 0, 0, 0, 0, 7e-3, 1.655, 26.63, 52.017, 45.192, 39.651]
200
- }
201
- ]
202
- }
203
- ],
204
- skeletonConfig: pt({
205
- defaultConfig: e.value,
206
- userConfig: Nt.value
207
- })
208
- }), $ = i(Math.min(
209
- e.value.style.chart.areas.height,
210
- e.value.style.chart.areas.rowHeight
211
- )), {
212
- userOptionsVisible: ne,
213
- setUserOptionsVisibility: Ze,
214
- keepUserOptionState: Je
215
- } = Va({ config: e.value }), { svgRef: re } = Wa({ config: e.value.style.chart.title }), $e = v(() => !!e.value.debug);
216
- function Ke() {
217
- const t = E.value || [];
218
- if (!Array.isArray(t) || t.length === 0) {
219
- Be({ componentName: "VueUiRidgeline", type: "dataset", debug: $e.value }), we.value = !0;
220
- return;
221
- }
222
- if (t.forEach((l, a) => {
223
- xt({
224
- datasetObject: l,
225
- requiredAttributes: ["name", "datapoints"]
226
- }).forEach((s) => {
227
- q.value = !1, Be({
228
- componentName: "VueUiRidgeline",
229
- type: "datasetSerieAttribute",
230
- property: s,
231
- index: a,
232
- debug: $e.value
233
- });
234
- }), Array.isArray(l.datapoints) && l.datapoints.length && l.datapoints.forEach((s, o) => {
235
- xt({
236
- datasetObject: s,
237
- requiredAttributes: ["name", "values"]
238
- }).forEach((f) => {
239
- q.value = !1, Be({
240
- componentName: "VueUiRidgeline",
241
- type: "datasetSerieAttribute",
242
- property: `datapoint.${f}`,
243
- index: `${a}-${o}`,
244
- debug: $e.value
245
- });
246
- });
247
- });
248
- }), Rt.value = t.length, $.value = Math.min(
249
- e.value.style.chart.areas.height,
250
- e.value.style.chart.areas.rowHeight
251
- ), Ma(M.dataset) || (we.value = e.value.loading), e.value.responsive) {
252
- const l = kt(() => {
253
- const { width: a, height: s } = Ra({
254
- chart: T.value,
255
- title: e.value.style.chart.title.text ? Ue.value : null,
256
- legend: e.value.style.chart.legend.show ? Ve.value : null,
257
- source: We.value,
258
- noTitle: Ge.value,
259
- padding: e.value.style.chart.padding
260
- });
261
- requestAnimationFrame(() => {
262
- Ye.value = a, $.value = t.length ? s / t.length : 0, qe.value = s - 12;
263
- });
264
- });
265
- z.value && (F.value && z.value.unobserve(F.value), z.value.disconnect()), z.value = new ResizeObserver(l), F.value = T.value?.parentNode || null, F.value && z.value.observe(F.value);
266
- }
267
- }
268
- gt(() => {
269
- z.value && (F.value && z.value.unobserve(F.value), z.value.disconnect());
270
- });
271
- const { isPrinting: _e, isImaging: Pe, generatePdf: Qe, generateImage: et } = Ba({
272
- elementId: `vue-ui-ridgeline_${w.value}`,
273
- fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
274
- options: e.value.userOptions.print
275
- }), Ft = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), Et = v(() => Aa(e.value.customPalette)), B = i({
276
- showTable: e.value.table.show
277
- });
278
- ae(
279
- () => E.value,
280
- async (t) => {
281
- Array.isArray(t) && t.length && (ne.value = !e.value.userOptions.showOnChartHover, await he(), Ke(), me.value += 1, be.value += 1, B.value.showTable = e.value.table.show);
282
- },
283
- { deep: !0, immediate: !0 }
284
- ), ae(() => M.dataset, (t) => {
285
- Array.isArray(t) && t.length > 0 && (we.value = !1);
286
- }, { deep: !0 }), ae(
287
- () => G.value,
288
- async (t) => {
289
- t || (await he(), Ke());
290
- },
291
- { immediate: !0 }
292
- ), ae(
293
- () => M.config,
294
- () => {
295
- e.value = Ae(E.value || null), ne.value = !e.value.userOptions.showOnChartHover, $.value = Math.min(e.value.style.chart.areas.height, e.value.style.chart.areas.rowHeight), B.value.showTable = e.value.table.show, me.value += 1, be.value += 1;
296
- },
297
- { deep: !0 }
298
- );
299
- const Se = v(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
300
- function Bt() {
301
- b.value.length ? b.value = [] : R.value.forEach((t) => {
302
- b.value.push(t.id);
303
- });
304
- }
305
- function ue(t) {
306
- b.value.includes(t) ? b.value = b.value.filter((l) => l !== t) : b.value.push(t), le("selectLegend", I.value);
307
- }
308
- function tt(t) {
309
- if (!R.value.length)
310
- return e.value.debug && console.warn("VueUiRidgeline - There are no series to show."), null;
311
- const l = R.value.find((a) => a.name === t);
312
- return l || (e.value.debug && console.warn(`VueUiRidgeline - Series name not found "${t}"`), null);
313
- }
314
- function Xt(t) {
315
- const l = tt(t);
316
- l !== null && b.value.includes(l.id) && ue(l.id);
317
- }
318
- function Ht(t) {
319
- const l = tt(t);
320
- l !== null && (b.value.includes(l.id) || ue(l.id));
321
- }
322
- const D = v(() => q.value ? (E.value || []).map((t) => ({
323
- ...t,
324
- labelLen: Zt(t.name, e.value.style.chart.yAxis.labels.fontSize),
325
- uid: Ee(),
326
- datapoints: t.datapoints.map((l, a) => {
327
- const s = l.color ? wa(l.color) : Et.value[a] || ge[a] || ge[a % ge.length], o = mt(l.name);
328
- return { ...l, color: s, id: o };
329
- })
330
- })) : []), at = v(() => e.value.style.chart.padding.top + $.value * (E.value || []).length + $.value * Se.value + e.value.style.chart.padding.bottom), p = v(() => {
331
- const t = e.value.style.chart.padding;
332
- return {
333
- width: Ye.value,
334
- height: at.value,
335
- padding: t
336
- };
337
- }), Ut = v(() => p.value.width), Vt = v(() => p.value.height), Te = i(0), Wt = kt((t) => {
338
- Te.value = t;
339
- }, 100);
340
- yt((t) => {
341
- const l = ke.value;
342
- if (!l) return;
343
- const a = new ResizeObserver((s) => {
344
- Wt(s[0].contentRect.height);
345
- });
346
- a.observe(l), t(() => a.disconnect());
347
- }), gt(() => {
348
- Te.value = 0;
349
- });
350
- const x = v(() => ({
351
- fullHeight: p.value.height + Te.value,
352
- top: p.value.padding.top,
353
- left: p.value.padding.left,
354
- right: p.value.width - p.value.padding.right,
355
- bottom: p.value.height - e.value.style.chart.padding.bottom,
356
- width: p.value.width - (p.value.padding.left + p.value.padding.right)
357
- })), J = v(() => Math.max(...D.value.flatMap((t) => t.datapoints.map((l) => l.values.length)))), j = i([]);
358
- let lt = 0;
359
- yt(() => {
360
- const t = ++lt;
361
- (async () => {
362
- const l = await Ha({
363
- values: e.value.style.chart.xAxis.labels.values,
364
- maxDatapoints: J.value,
365
- formatter: e.value.style.chart.xAxis.labels.datetimeFormatter,
366
- start: 0,
367
- end: e.value.style.chart.xAxis.labels.values.length
368
- });
369
- t === lt && (j.value = l);
370
- })();
371
- });
372
- const Y = v(() => {
373
- const t = Math.max(...D.value.map((o) => o.labelLen)), l = p.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, a = (x.value.width - l) / J.value, s = [];
374
- for (let o = 0; o < J.value; o += 1)
375
- s.push({
376
- selectorX: l + a * o,
377
- x: l + a * o - a / 2,
378
- y: x.value.top,
379
- label: e.value.style.chart.xAxis.labels.values[o] ? j.value[o]?.text ?? "" : "",
380
- index: o,
381
- width: a,
382
- height: at.value
383
- });
384
- return s;
385
- });
386
- function Oe(t) {
387
- return D.value.map((l) => l.datapoints.map((a) => ({
388
- dp: a,
389
- selected: a.values[t.index]
390
- })));
391
- }
392
- function Gt(t) {
393
- g.value = t;
394
- const l = Oe(t);
395
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t.index });
396
- }
397
- function jt(t) {
398
- g.value = null;
399
- const l = Oe(t);
400
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: t.index });
401
- }
402
- function Yt(t) {
403
- const l = Oe(t);
404
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: t.index }), le("selectX", l);
405
- }
406
- function qt(t, l) {
407
- return t.length * l / 2 + l;
408
- }
409
- function ot(t, l, a) {
410
- const s = qt(l, a);
411
- return t + s > x.value.right;
412
- }
413
- function Zt(t, l, a = "sans-serif") {
414
- const o = document.createElement("canvas").getContext("2d"), f = typeof l == "number" ? `${l}px` : l;
415
- return o.font = `${f} ${a}`, o.measureText(t).width;
416
- }
417
- const I = v(() => {
418
- $.value;
419
- const t = Math.max(...D.value.map((k) => k.labelLen)), l = Math.max(...D.value.flatMap((k) => k.datapoints.flatMap((Q) => Q.values))), a = Math.min(...D.value.flatMap((k) => k.datapoints.flatMap((Q) => Q.values))), s = p.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, o = (x.value.width - s) / J.value, f = Math.abs(Math.min(a, 0)), L = l + f;
420
- function ct(k) {
421
- return isNaN(k / L) ? 0 : k / L;
422
- }
423
- return D.value.map((k, Q) => {
424
- const vt = x.value.top + $.value * Q, H = x.value.top + vt + $.value * Se.value * (1 - ct(f));
425
- return {
426
- ...k,
427
- label: {
428
- x: s - e.value.style.chart.yAxis.labels.fontSize,
429
- y: H
430
- },
431
- datapoints: k.datapoints.map((ee) => {
432
- const U = ee.values.map((te, ya) => {
433
- const pa = isNaN(te) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(te) ? 0 : te || 0, ma = s + o * ya, ba = x.value.top + vt + $.value * Se.value * (1 - ct(pa + f)), xa = te === Math.max(...ee.values);
434
- return {
435
- x: ma,
436
- y: ba,
437
- value: te,
438
- isMaxPoint: xa,
439
- zero: H
440
- };
441
- }), da = `${$a(U, H, !1, !1)}`, ha = `M ${s},${H} ${bt(U)} ${U.at(-1).x},${H}`, fa = `M ${s},${H} ${U.at(-1).x},${H}`, dt = `M ${_a(U)}`, ht = `M ${bt(U)}`, ga = Pa(
442
- e.value.style.chart.areas.smooth ? dt : ht
443
- );
444
- return {
445
- ...ee,
446
- uid: Ee(),
447
- plots: U,
448
- smoothPath: da,
449
- straightPath: ha,
450
- zeroPath: fa,
451
- pathLength: ga,
452
- smoothPathRidge: dt,
453
- straightPathRidge: ht
454
- };
455
- }).filter((ee) => !b.value.includes(ee.id))
456
- };
457
- });
458
- }), b = i([]);
459
- function Jt(t) {
460
- const l = /* @__PURE__ */ new Map();
461
- return t.forEach((a) => {
462
- a.datapoints.forEach((s, o) => {
463
- const f = mt(s.name);
464
- l.has(f) || l.set(f, {
465
- id: f,
466
- name: s.name,
467
- color: s.color,
468
- shape: "circle",
469
- segregate: () => ue(f),
470
- isSegregated: b.value.includes(f),
471
- opacity: b.value.includes(f) ? 0.5 : 1
472
- });
473
- });
474
- }), Array.from(l.values());
475
- }
476
- const R = v(() => Jt(D.value)), Kt = v(() => ({
477
- cy: "donut-div-legend",
478
- backgroundColor: e.value.style.chart.legend.backgroundColor,
479
- color: e.value.style.chart.legend.color,
480
- fontSize: e.value.style.chart.legend.fontSize,
481
- paddingBottom: 12,
482
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
483
- })), X = i(!1);
484
- function st(t) {
485
- X.value = t, je.value += 1;
486
- }
487
- const ie = i({}), ce = i([]);
488
- function Qt(t) {
489
- le("selectDatapoint", t), e.value.style.chart.dialog.show && (ce.value = t.datapoints.map((l) => ({
490
- name: l.name,
491
- color: l.color,
492
- type: "line",
493
- useArea: !0,
494
- smooth: e.value.style.chart.areas.smooth,
495
- series: l.values
496
- })), W.value = t, ie.value = Ia({
497
- ...e.value.style.chart.dialog.xyChart,
498
- responsive: !0,
499
- // Overriding
500
- chart: {
501
- ...e.value.style.chart.dialog.xyChart.chart,
502
- grid: {
503
- ...e.value.style.chart.dialog.xyChart.chart.grid,
504
- labels: {
505
- ...e.value.style.chart.dialog.xyChart.chart.grid.labels,
506
- xAxisLabels: {
507
- ...e.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
508
- values: e.value.style.chart.xAxis.labels.values,
509
- // Overriding
510
- autoRotate: {
511
- enable: !0,
512
- angle: e.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels.autoRotate.angle
513
- },
514
- // overriding
515
- datetimeFormatter: e.value.style.chart.xAxis.labels.datetimeFormatter
516
- // Overriding
517
- }
518
- }
519
- },
520
- tooltip: {
521
- ...e.value.style.chart.dialog.xyChart.chart.tooltip,
522
- showTimeLabel: e.value.style.chart.xAxis.labels.values.length > 0
523
- // Overriding
524
- },
525
- userOptions: {
526
- ...e.value.style.chart.dialog.xyChart.chart.userOptions,
527
- buttons: {
528
- ...e.value.style.chart.dialog.xyChart.chart.userOptions.buttons,
529
- altCopy: e.value.userOptions.buttons.altCopy
530
- },
531
- callbacks: {
532
- ...e.value.style.chart.dialog.xyChart.chart.userOptions.callbacks,
533
- altCopy: () => {
534
- }
535
- },
536
- useCursorPointer: e.value.userOptions.useCursorPointer
537
- // Overriding
538
- }
539
- }
540
- }), xe.value && xe.value.open());
541
- }
542
- const Le = i(null);
543
- function ea(t) {
544
- Le.value = t;
545
- }
546
- function ta() {
547
- Le.value = null;
548
- }
549
- const ve = i(!1);
550
- function Me() {
551
- ve.value = !ve.value;
552
- }
553
- function nt() {
554
- B.value.showTable = !B.value.showTable;
555
- }
556
- const rt = v(() => ({ body: I.value.flatMap((a) => a.datapoints.flatMap((s) => ({
557
- ...s,
558
- rowName: `${a.name}: ${s.name}`
559
- }))).map((a) => [
560
- {
561
- name: a.rowName,
562
- color: a.color
563
- },
564
- ...a.values
565
- ]) })), de = v(() => {
566
- const t = [
567
- e.value.table.columnNames.series,
568
- ...j.value.map((s) => s.text)
569
- ], l = {
570
- th: {
571
- backgroundColor: e.value.table.th.backgroundColor,
572
- color: e.value.table.th.color,
573
- outline: e.value.table.th.outline
574
- },
575
- td: {
576
- backgroundColor: e.value.table.td.backgroundColor,
577
- color: e.value.table.td.color,
578
- outline: e.value.table.td.outline
579
- },
580
- breakpoint: e.value.table.responsiveBreakpoint
581
- };
582
- return {
583
- colNames: [
584
- e.value.table.columnNames.series,
585
- ...j.value.map((s) => s.text)
586
- ],
587
- head: t,
588
- body: rt.value.body,
589
- config: l
590
- };
591
- });
592
- function ze(t = null) {
593
- he(() => {
594
- const l = [
595
- [e.value.table.columnNames.series, ...j.map((o) => [o.text])],
596
- ...rt.value.body.map((o, f) => [o[0].name, ...o.slice(1)])
597
- ], a = [
598
- [e.value.style.chart.title.text],
599
- [e.value.style.chart.title.subtitle.text]
600
- ].concat(l), s = za(a);
601
- t ? t(s) : Da({
602
- csvContent: s,
603
- title: e.value.style.chart.title.text || "vue-ui-ridgeline"
604
- });
605
- });
606
- }
607
- function aa() {
608
- return I.value;
609
- }
610
- async function la({ scale: t = 2 } = {}) {
611
- if (!T.value) return;
612
- const { width: l, height: a } = T.value.getBoundingClientRect(), s = l / a, { imageUri: o, base64: f } = await Ja({ domElement: T.value, base64: !0, img: !0, scale: t });
613
- return {
614
- imageUri: o,
615
- base64: f,
616
- title: e.value.style.chart.title.text,
617
- width: l,
618
- height: a,
619
- aspectRatio: s
620
- };
621
- }
622
- const oa = v(() => ({ min: 0, max: J.value }));
623
- Ga({
624
- timeLabelsEls: ke,
625
- timeLabels: j,
626
- slicer: oa,
627
- configRef: e,
628
- rotationPath: ["style", "chart", "xAxis", "labels", "rotation"],
629
- autoRotatePath: ["style", "chart", "xAxis", "labels", "autoRotate", "enable"],
630
- isAutoSize: !1,
631
- width: Ut,
632
- height: Vt,
633
- targetClass: ".vue-ui-ridgeline-x-axis-label",
634
- angle: e.value.style.chart.xAxis.labels.autoRotate.angle
635
- });
636
- const K = v(() => {
637
- const t = e.value.table.useDialog && !e.value.table.show, l = B.value.showTable;
638
- return {
639
- component: t ? He : Pt,
640
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
641
- props: t ? {
642
- backgroundColor: e.value.table.th.backgroundColor,
643
- color: e.value.table.th.color,
644
- headerColor: e.value.table.th.color,
645
- headerBg: e.value.table.th.backgroundColor,
646
- isFullscreen: X.value,
647
- fullscreenParent: T.value,
648
- forcedWidth: Math.min(800, window.innerWidth * 0.8),
649
- isCursorPointer: O.value
650
- } : {
651
- hideDetails: !0,
652
- config: {
653
- open: l,
654
- maxHeight: 1e4,
655
- body: {
656
- backgroundColor: e.value.style.chart.backgroundColor,
657
- color: e.value.style.chart.color
658
- },
659
- head: {
660
- backgroundColor: e.value.style.chart.backgroundColor,
661
- color: e.value.style.chart.color
662
- }
663
- }
664
- }
665
- };
666
- });
667
- ae(() => B.value.showTable, (t) => {
668
- e.value.table.show || (t && e.value.table.useDialog && Z.value ? Z.value.open() : "close" in Z.value && Z.value.close());
669
- });
670
- function ut() {
671
- B.value.showTable = !1, Ce.value && Ce.value.setTableIconState(!1);
672
- }
673
- const sa = v(() => e.value.style.chart.backgroundColor), na = v(() => ({
674
- ...e.value.style.chart.legend,
675
- position: "bottom"
676
- })), ra = v(() => e.value.style.chart.title), { exportSvg: ua, getSvg: ia } = Xa({
677
- svg: re,
678
- title: ra,
679
- legend: na,
680
- legendItems: R,
681
- backgroundColor: sa
682
- });
683
- async function it({ isCb: t }) {
684
- se.value = !0, await he();
685
- try {
686
- if (t) {
687
- const { blob: l, url: a, text: s, dataUrl: o } = await ia();
688
- await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: l, url: a, text: s, dataUrl: o }));
689
- } else
690
- await Promise.resolve(ua());
691
- } finally {
692
- se.value = !1;
693
- }
694
- }
695
- function ca(t) {
696
- if (t?.stage === "start") {
697
- oe.value = !0;
698
- return;
699
- }
700
- if (t?.stage === "end") {
701
- oe.value = !1;
702
- return;
703
- }
704
- et();
705
- }
706
- function va(t) {
707
- De("xy-zoom", t.dataset, t.config);
708
- }
709
- async function De(t = "main-chart", l = null, a = null) {
710
- if (le("copyAlt", {
711
- source: t,
712
- config: t === "main-chart" ? e.value : ie.value,
713
- dataset: t === "main-chart" ? I.value : ce.value
714
- }), !e.value.userOptions.callbacks.altCopy) {
715
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
716
- return;
717
- }
718
- await Promise.resolve(e.value.userOptions.callbacks.altCopy({
719
- source: t,
720
- config: t === "main-chart" ? e.value : ie.value,
721
- dataset: t === "main-chart" ? I.value : ce.value
722
- }));
723
- }
724
- return At({
725
- getData: aa,
726
- getImage: la,
727
- generateImage: et,
728
- generateSvg: it,
729
- generatePdf: Qe,
730
- generateCsv: ze,
731
- hideSeries: Ht,
732
- showSeries: Xt,
733
- toggleAnnotator: Me,
734
- toggleTable: nt,
735
- toggleFullscreen: st,
736
- copyAlt: De
737
- }), (t, l) => (n(), r("div", {
738
- ref_key: "ridgelineChart",
739
- ref: T,
740
- class: fe(`vue-data-ui-component vue-ui-ridgeline ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
741
- id: `vue-ui-ridgeline_${w.value}`,
742
- style: C({
743
- fontFamily: e.value.style.fontFamily,
744
- width: "100%",
745
- textAlign: "center",
746
- background: e.value.style.chart.backgroundColor,
747
- height: e.value.responsive ? "100%" : void 0
748
- }),
749
- onMouseenter: l[3] || (l[3] = () => u(Ze)(!0)),
750
- onMouseleave: l[4] || (l[4] = () => u(Ze)(!1))
751
- }, [
752
- e.value.userOptions.buttons.annotator && u(re) ? (n(), _(u(Tt), {
753
- key: 0,
754
- color: e.value.style.chart.color,
755
- backgroundColor: e.value.style.chart.backgroundColor,
756
- active: ve.value,
757
- svgRef: u(re),
758
- isCursorPointer: O.value,
759
- onClose: Me
760
- }, {
761
- "annotator-action-close": c(() => [
762
- d(t.$slots, "annotator-action-close", {}, void 0, !0)
763
- ]),
764
- "annotator-action-color": c(({ color: a }) => [
765
- d(t.$slots, "annotator-action-color", P(S({ color: a })), void 0, !0)
766
- ]),
767
- "annotator-action-draw": c(({ mode: a }) => [
768
- d(t.$slots, "annotator-action-draw", P(S({ mode: a })), void 0, !0)
769
- ]),
770
- "annotator-action-undo": c(({ disabled: a }) => [
771
- d(t.$slots, "annotator-action-undo", P(S({ disabled: a })), void 0, !0)
772
- ]),
773
- "annotator-action-redo": c(({ disabled: a }) => [
774
- d(t.$slots, "annotator-action-redo", P(S({ disabled: a })), void 0, !0)
775
- ]),
776
- "annotator-action-delete": c(({ disabled: a }) => [
777
- d(t.$slots, "annotator-action-delete", P(S({ disabled: a })), void 0, !0)
778
- ]),
779
- _: 3
780
- }, 8, ["color", "backgroundColor", "active", "svgRef", "isCursorPointer"])) : h("", !0),
781
- d(t.$slots, "userConfig", {}, void 0, !0),
782
- Ft.value ? (n(), r("div", {
783
- key: 1,
784
- ref_key: "noTitle",
785
- ref: Ge,
786
- class: "vue-data-ui-no-title-space",
787
- style: "height:36px; width: 100%;background:transparent"
788
- }, null, 512)) : h("", !0),
789
- e.value.style.chart.title.text ? (n(), r("div", {
790
- key: 2,
791
- ref_key: "chartTitle",
792
- ref: Ue,
793
- style: "width:100%;background:transparent;padding-bottom:24px"
794
- }, [
795
- (n(), _(qa, {
796
- key: `title_${me.value}`,
797
- config: {
798
- title: {
799
- cy: "ridgeline-div-title",
800
- ...e.value.style.chart.title
801
- },
802
- subtitle: {
803
- cy: "ridgeline-div-subtitle",
804
- ...e.value.style.chart.title.subtitle
805
- }
806
- }
807
- }, null, 8, ["config"]))
808
- ], 512)) : h("", !0),
809
- e.value.userOptions.show && q.value && (u(Je) || u(ne)) ? (n(), _(u(Ot), {
810
- ref_key: "userOptionsRef",
811
- ref: Ce,
812
- key: `user_option_${je.value}`,
813
- backgroundColor: e.value.style.chart.backgroundColor,
814
- color: e.value.style.chart.color,
815
- isPrinting: u(_e),
816
- isImaging: u(Pe),
817
- uid: w.value,
818
- hasTooltip: !1,
819
- callbacks: e.value.userOptions.callbacks,
820
- hasPdf: e.value.userOptions.buttons.pdf,
821
- hasImg: e.value.userOptions.buttons.img,
822
- hasSvg: e.value.userOptions.buttons.svg,
823
- hasXls: e.value.userOptions.buttons.csv,
824
- hasTable: e.value.userOptions.buttons.table,
825
- hasLabel: !1,
826
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
827
- hasAltCopy: e.value.userOptions.buttons.altCopy,
828
- isFullscreen: X.value,
829
- printScale: e.value.userOptions.print.scale,
830
- chartElement: T.value,
831
- position: e.value.userOptions.position,
832
- isTooltip: !1,
833
- titles: { ...e.value.userOptions.buttonTitles },
834
- hasAnnotator: e.value.userOptions.buttons.annotator,
835
- isAnnotation: ve.value,
836
- tableDialog: e.value.table.useDialog,
837
- style: C({ visibility: u(Je) ? u(ne) ? "visible" : "hidden" : "visible" }),
838
- isCursorPointer: O.value,
839
- onToggleFullscreen: st,
840
- onGeneratePdf: u(Qe),
841
- onGenerateCsv: ze,
842
- onGenerateImage: ca,
843
- onGenerateSvg: it,
844
- onToggleTable: nt,
845
- onToggleAnnotator: Me,
846
- onCopyAlt: De
847
- }, Ie({ _: 2 }, [
848
- t.$slots.menuIcon ? {
849
- name: "menuIcon",
850
- fn: c(({ isOpen: a, color: s }) => [
851
- d(t.$slots, "menuIcon", P(S({ isOpen: a, color: s })), void 0, !0)
852
- ]),
853
- key: "0"
854
- } : void 0,
855
- t.$slots.optionTooltip ? {
856
- name: "optionTooltip",
857
- fn: c(() => [
858
- d(t.$slots, "optionTooltip", {}, void 0, !0)
859
- ]),
860
- key: "1"
861
- } : void 0,
862
- t.$slots.optionPdf ? {
863
- name: "optionPdf",
864
- fn: c(() => [
865
- d(t.$slots, "optionPdf", {}, void 0, !0)
866
- ]),
867
- key: "2"
868
- } : void 0,
869
- t.$slots.optionCsv ? {
870
- name: "optionCsv",
871
- fn: c(() => [
872
- d(t.$slots, "optionCsv", {}, void 0, !0)
873
- ]),
874
- key: "3"
875
- } : void 0,
876
- t.$slots.optionImg ? {
877
- name: "optionImg",
878
- fn: c(() => [
879
- d(t.$slots, "optionImg", {}, void 0, !0)
880
- ]),
881
- key: "4"
882
- } : void 0,
883
- t.$slots.optionSvg ? {
884
- name: "optionSvg",
885
- fn: c(() => [
886
- d(t.$slots, "optionSvg", {}, void 0, !0)
887
- ]),
888
- key: "5"
889
- } : void 0,
890
- t.$slots.optionTable ? {
891
- name: "optionTable",
892
- fn: c(() => [
893
- d(t.$slots, "optionTable", {}, void 0, !0)
894
- ]),
895
- key: "6"
896
- } : void 0,
897
- t.$slots.optionFullscreen ? {
898
- name: "optionFullscreen",
899
- fn: c(({ toggleFullscreen: a, isFullscreen: s }) => [
900
- d(t.$slots, "optionFullscreen", P(S({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
901
- ]),
902
- key: "7"
903
- } : void 0,
904
- t.$slots.optionAnnotator ? {
905
- name: "optionAnnotator",
906
- fn: c(({ toggleAnnotator: a, isAnnotator: s }) => [
907
- d(t.$slots, "optionAnnotator", P(S({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
908
- ]),
909
- key: "8"
910
- } : void 0,
911
- t.$slots.optionAltCopy ? {
912
- name: "optionAltCopy",
913
- fn: c(({ altCopy: a }) => [
914
- d(t.$slots, "optionAltCopy", P(S({ altCopy: a })), void 0, !0)
915
- ]),
916
- key: "9"
917
- } : void 0
918
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "callbacks", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "printScale", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "tableDialog", "style", "isCursorPointer", "onGeneratePdf"])) : h("", !0),
919
- (n(), r("svg", {
920
- ref_key: "svgRef",
921
- ref: re,
922
- xmlns: u(Sa),
923
- class: fe({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
924
- viewBox: `0 0 ${p.value.width <= 0 ? 10 : p.value.width} ${x.value.fullHeight <= 0 ? 10 : x.value.fullHeight}`,
925
- style: C(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${qe.value}px; width: 100%;` : ""}`)
926
- }, [
927
- Re(u(Lt)),
928
- y("defs", null, [
929
- (n(!0), r(m, null, A(R.value, (a, s) => (n(), r("linearGradient", {
930
- id: `gradient-${a.id}-${w.value}`,
931
- x1: "50%",
932
- y1: "0%",
933
- x2: "50%",
934
- y2: "100%"
935
- }, [
936
- y("stop", {
937
- offset: "0%",
938
- "stop-color": a.color,
939
- "stop-opacity": "1"
940
- }, null, 8, ll),
941
- y("stop", {
942
- offset: "30%",
943
- "stop-color": a.color,
944
- "stop-opacity": "0.7"
945
- }, null, 8, ol),
946
- y("stop", {
947
- offset: "70%",
948
- "stop-color": a.color,
949
- "stop-opacity": "0.3"
950
- }, null, 8, sl),
951
- y("stop", {
952
- offset: "100%",
953
- "stop-color": a.color,
954
- "stop-opacity": "0.1"
955
- }, null, 8, nl)
956
- ], 8, al))), 256)),
957
- (n(!0), r(m, null, A(I.value, (a, s) => (n(), r(m, null, [
958
- (n(!0), r(m, null, A(a.datapoints, (o, f) => (n(), r("linearGradient", {
959
- key: `grad${o.id}`,
960
- id: `gradient-single-${w.value}-${o.uid}`,
961
- x1: "50%",
962
- y1: "0%",
963
- x2: "50%",
964
- y2: "100%"
965
- }, [
966
- y("stop", {
967
- offset: "0%",
968
- "stop-color": o.color,
969
- "stop-opacity": "1"
970
- }, null, 8, ul),
971
- y("stop", {
972
- offset: "30%",
973
- "stop-color": o.color,
974
- "stop-opacity": "0.7"
975
- }, null, 8, il),
976
- y("stop", {
977
- offset: "70%",
978
- "stop-color": o.color,
979
- "stop-opacity": "0.3"
980
- }, null, 8, cl),
981
- y("stop", {
982
- offset: "100%",
983
- "stop-color": o.color,
984
- "stop-opacity": "0.1"
985
- }, null, 8, vl)
986
- ], 8, rl))), 128))
987
- ], 64))), 256))
988
- ]),
989
- (n(!0), r(m, null, A(I.value, (a, s) => (n(), r("g", {
990
- key: `ds-${s}`
991
- }, [
992
- (n(!0), r(m, null, A(a.datapoints, (o, f) => (n(), r("g", {
993
- key: o.id
994
- }, [
995
- t.$slots.pattern ? (n(), r("g", dl, [
996
- y("defs", null, [
997
- d(t.$slots, "pattern", Ne({ ref_for: !0 }, { datapointIndex: s, seriesIndex: f, patternId: `pattern_${w.value}_${o.uid}` }), void 0, !0)
998
- ])
999
- ])) : h("", !0),
1000
- y("path", {
1001
- fill: t.$slots.pattern ? `url(#pattern_${w.value}_${o.uid})` : e.value.style.chart.backgroundColor,
1002
- stroke: "none",
1003
- "stroke-linecap": "round",
1004
- d: e.value.style.chart.areas.smooth ? o.smoothPath : o.straightPath,
1005
- style: C({
1006
- opacity: e.value.style.chart.areas.opacity
1007
- })
1008
- }, null, 12, hl),
1009
- y("path", {
1010
- fill: "none",
1011
- stroke: e.value.style.chart.areas.stroke.useSerieColor ? o.color : e.value.style.chart.areas.stroke.color,
1012
- "stroke-width": e.value.style.chart.areas.strokeWidth,
1013
- d: e.value.style.chart.areas.smooth ? o.smoothPathRidge : o.straightPathRidge,
1014
- "stroke-linecap": "round",
1015
- "stroke-linejoin": "round",
1016
- class: fe({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !u(G) }),
1017
- style: C({
1018
- strokeDasharray: o.pathLength,
1019
- strokeDashoffset: e.value.useCssAnimation ? o.pathLength : 0
1020
- })
1021
- }, null, 14, fl),
1022
- y("path", {
1023
- fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${o.id}-${w.value})` : `url(#gradient-single-${w.value}-${o.uid})` : o.color,
1024
- stroke: "none",
1025
- d: e.value.style.chart.areas.smooth ? o.smoothPath : o.straightPath,
1026
- "stroke-linecap": "round",
1027
- "stroke-linejoin": "round",
1028
- class: fe({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !u(G) }),
1029
- style: C({
1030
- strokeDasharray: o.pathLength,
1031
- strokeDashoffset: e.value.useCssAnimation ? o.pathLength : 0
1032
- })
1033
- }, null, 14, gl),
1034
- e.value.style.chart.zeroLine.show ? (n(), r("path", {
1035
- key: 1,
1036
- stroke: e.value.style.chart.zeroLine.useSerieColor ? o.color : e.value.style.chart.zeroLine.stroke,
1037
- "stroke-dasharray": e.value.style.chart.zeroLine.strokeDasharray,
1038
- "stroke-width": e.value.style.chart.zeroLine.strokeWidth,
1039
- d: o.zeroPath,
1040
- "stroke-linecap": "round"
1041
- }, null, 8, yl)) : h("", !0),
1042
- e.value.style.chart.areas.maxPoint.show && o.plots.length > 1 ? (n(!0), r(m, { key: 2 }, A(o.plots, (L) => (n(), r(m, null, [
1043
- L.isMaxPoint ? (n(), r("line", {
1044
- key: 0,
1045
- x1: L.x,
1046
- y1: L.y,
1047
- x2: L.x,
1048
- y2: L.zero,
1049
- stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(Ta)(o.color) : e.value.style.chart.areas.maxPoint.stroke,
1050
- "stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
1051
- "stroke-linecap": "round",
1052
- "stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
1053
- }, null, 8, pl)) : h("", !0)
1054
- ], 64))), 256)) : h("", !0),
1055
- o.plots.length === 1 ? (n(), r("circle", {
1056
- key: 3,
1057
- cx: o.plots[0].x,
1058
- cy: o.plots[0].y,
1059
- stroke: e.value.style.chart.selector.dot.stroke,
1060
- "stroke-width": e.value.style.chart.selector.dot.strokeWidth,
1061
- r: e.value.style.chart.selector.dot.radius,
1062
- fill: e.value.style.chart.selector.dot.useDatapointColor ? o.color : e.value.style.chart.selector.dot.fill,
1063
- style: {
1064
- pointerEvents: "none"
1065
- }
1066
- }, null, 8, ml)) : h("", !0)
1067
- ]))), 128)),
1068
- y("text", {
1069
- x: a.label.x,
1070
- y: a.label.y,
1071
- "text-anchor": "end",
1072
- "font-size": e.value.style.chart.yAxis.labels.fontSize,
1073
- "font-weight": e.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
1074
- fill: e.value.style.chart.yAxis.labels.color,
1075
- style: C({
1076
- cursor: e.value.style.chart.dialog.show && O.value ? "pointer" : "default"
1077
- }),
1078
- "text-decoration": e.value.style.chart.dialog.show && (Le.value === s || W.value && a.uid === W.value.uid) ? "underline" : "",
1079
- onMouseenter: (o) => ea(s),
1080
- onMouseleave: ta,
1081
- onClick: (o) => Qt(a)
1082
- }, V(a.name), 45, bl)
1083
- ]))), 128)),
1084
- e.value.style.chart.xAxis.labels.values.length ? (n(), r("g", {
1085
- key: 0,
1086
- ref_key: "timeLabelsEls",
1087
- ref: ke
1088
- }, [
1089
- (n(!0), r(m, null, A(Y.value, (a, s) => d(t.$slots, "time-label", Ne({ ref_for: !0 }, {
1090
- show: a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || a && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === Y.value.length - 1) || a && g.value && g.value.index === s || a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(Y.value.length / e.value.style.chart.xAxis.labels.modulo) === 0,
1091
- fontSize: e.value.style.chart.xAxis.labels.fontSize,
1092
- content: a.label,
1093
- textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1094
- fill: e.value.style.chart.xAxis.labels.color,
1095
- transform: `translate(${a.selectorX}, ${x.value.top + a.height + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
1096
- x: a.selectorX,
1097
- y: x.value.bottom + e.value.style.chart.xAxis.labels.offsetY
1098
- }), () => [
1099
- a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || a && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === Y.value.length - 1) || a && g.value && g.value.index === s || a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(Y.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (n(), r("g", xl, [
1100
- String(a.label).includes(`
1101
- `) ? (n(), r("text", {
1102
- key: 1,
1103
- class: "vue-ui-ridgeline-x-axis-label",
1104
- "font-size": e.value.style.chart.xAxis.labels.fontSize,
1105
- fill: e.value.style.chart.xAxis.labels.color,
1106
- "font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
1107
- transform: `translate(${a.selectorX}, ${x.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
1108
- "text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1109
- style: C({
1110
- opacity: g.value ? g.value.index === s ? 1 : 0.2 : 1
1111
- }),
1112
- innerHTML: u(Oa)({
1113
- content: String(a.label),
1114
- fontSize: e.value.style.chart.xAxis.labels.fontSize,
1115
- fill: e.value.style.chart.xAxis.labels.color,
1116
- x: 0,
1117
- y: 0
1118
- })
1119
- }, null, 12, Cl)) : (n(), r("text", {
1120
- key: 0,
1121
- class: "vue-ui-ridgeline-x-axis-label",
1122
- "font-size": e.value.style.chart.xAxis.labels.fontSize,
1123
- fill: e.value.style.chart.xAxis.labels.color,
1124
- "font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
1125
- transform: `translate(${a.selectorX}, ${x.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
1126
- "text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1127
- style: C({
1128
- opacity: g.value ? g.value.index === s ? 1 : 0.2 : 1
1129
- })
1130
- }, V(a.label), 13, kl))
1131
- ])) : h("", !0)
1132
- ], !0)), 256))
1133
- ], 512)) : h("", !0),
1134
- y("g", null, [
1135
- (n(!0), r(m, null, A(Y.value, (a, s) => (n(), r("rect", {
1136
- x: a.x,
1137
- y: a.y,
1138
- width: a.width < 0 ? 0.1 : a.width,
1139
- height: a.height < 0 ? 0.1 : a.height,
1140
- fill: "transparent",
1141
- onMouseenter: (o) => Gt(a),
1142
- onMouseleave: (o) => jt(a),
1143
- onClick: () => Yt(a)
1144
- }, null, 40, Al))), 256)),
1145
- e.value.style.chart.selector.show && g.value ? (n(), r("line", {
1146
- key: 0,
1147
- x1: g.value.selectorX,
1148
- x2: g.value.selectorX,
1149
- y1: g.value.y,
1150
- y2: g.value.y + g.value.height - $.value / 2,
1151
- stroke: e.value.style.chart.selector.stroke,
1152
- "stroke-width": e.value.style.chart.selector.strokeWidth,
1153
- "stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
1154
- "stroke-linecap": "round",
1155
- style: { pointerEvents: "none" }
1156
- }, null, 8, wl)) : h("", !0),
1157
- g.value ? (n(!0), r(m, { key: 1 }, A(I.value, (a) => (n(), r(m, null, [
1158
- (n(!0), r(m, null, A(a.datapoints, (s) => (n(), r(m, null, [
1159
- (n(!0), r(m, null, A(s.plots, (o, f) => (n(), r(m, null, [
1160
- g.value && g.value.index === f ? (n(), r("circle", {
1161
- key: 0,
1162
- cx: o.x,
1163
- cy: o.y,
1164
- stroke: e.value.style.chart.selector.dot.stroke,
1165
- "stroke-width": e.value.style.chart.selector.dot.strokeWidth,
1166
- r: e.value.style.chart.selector.dot.radius,
1167
- fill: e.value.style.chart.selector.dot.useDatapointColor ? s.color : e.value.style.chart.selector.dot.fill,
1168
- style: {
1169
- pointerEvents: "none"
1170
- }
1171
- }, null, 8, $l)) : h("", !0),
1172
- g.value && g.value.index === f ? (n(), r("text", {
1173
- key: 1,
1174
- x: ot(
1175
- o.x,
1176
- u(ye)(
1177
- e.value.style.chart.selector.labels.formatter,
1178
- o.value,
1179
- u(pe)({
1180
- p: e.value.style.chart.xAxis.labels.prefix,
1181
- v: o.value,
1182
- s: e.value.style.chart.xAxis.labels.suffix,
1183
- r: e.value.style.chart.selector.labels.rounding
1184
- })
1185
- ),
1186
- e.value.style.chart.selector.labels.fontSize
1187
- ) ? o.x - e.value.style.chart.selector.labels.fontSize / 2 : o.x + e.value.style.chart.selector.labels.fontSize / 2,
1188
- y: o.y + e.value.style.chart.selector.labels.fontSize / 3,
1189
- "text-anchor": ot(
1190
- o.x,
1191
- u(ye)(
1192
- e.value.style.chart.selector.labels.formatter,
1193
- o.value,
1194
- u(pe)({
1195
- p: e.value.style.chart.xAxis.labels.prefix,
1196
- v: o.value,
1197
- s: e.value.style.chart.xAxis.labels.suffix,
1198
- r: e.value.style.chart.selector.labels.rounding
1199
- })
1200
- ),
1201
- e.value.style.chart.selector.labels.fontSize
1202
- ) ? "end" : "start",
1203
- "font-size": e.value.style.chart.selector.labels.fontSize,
1204
- fill: e.value.style.chart.selector.labels.color,
1205
- style: {
1206
- pointerEvents: "none"
1207
- }
1208
- }, V(u(ye)(
1209
- e.value.style.chart.selector.labels.formatter,
1210
- o.value,
1211
- u(pe)({
1212
- p: e.value.style.chart.xAxis.labels.prefix,
1213
- v: o.value,
1214
- s: e.value.style.chart.xAxis.labels.suffix,
1215
- r: e.value.style.chart.selector.labels.rounding
1216
- })
1217
- )), 9, _l)) : h("", !0)
1218
- ], 64))), 256))
1219
- ], 64))), 256))
1220
- ], 64))), 256)) : h("", !0)
1221
- ]),
1222
- d(t.$slots, "svg", {
1223
- svg: {
1224
- ...p.value,
1225
- isPrintingImg: u(_e) | u(Pe) | oe.value,
1226
- isPrintingSvg: se.value
1227
- }
1228
- }, void 0, !0)
1229
- ], 14, tl)),
1230
- t.$slots.watermark ? (n(), r("div", Pl, [
1231
- d(t.$slots, "watermark", P(S({ isPrinting: u(_e) || u(Pe) || oe.value || se.value })), void 0, !0)
1232
- ])) : h("", !0),
1233
- y("div", {
1234
- ref_key: "chartLegend",
1235
- ref: Ve
1236
- }, [
1237
- e.value.style.chart.legend.show ? (n(), _(Ya, {
1238
- key: `legend_${be.value}`,
1239
- legendSet: R.value,
1240
- config: Kt.value,
1241
- isCursorPointer: O.value,
1242
- onClickMarker: l[0] || (l[0] = ({ legend: a }) => ue(a.id))
1243
- }, Ie({
1244
- item: c(({ legend: a }) => [
1245
- u(G) ? h("", !0) : (n(), r("div", {
1246
- key: 0,
1247
- style: C(`opacity:${b.value.includes(a.id) ? 0.5 : 1}`),
1248
- onClick: (s) => a.segregate()
1249
- }, V(a.name), 13, Sl))
1250
- ]),
1251
- legendToggle: c(() => [
1252
- R.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !u(G) ? (n(), _(Ka, {
1253
- key: 0,
1254
- backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
1255
- color: e.value.style.chart.legend.selectAllToggle.color,
1256
- fontSize: e.value.style.chart.legend.fontSize,
1257
- checked: b.value.length > 0,
1258
- isCursorPointer: O.value,
1259
- onToggle: Bt
1260
- }, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : h("", !0)
1261
- ]),
1262
- _: 2
1263
- }, [
1264
- t.$slots.pattern ? {
1265
- name: "legend-pattern",
1266
- fn: c(({ legend: a, index: s }) => [
1267
- Re(Za, {
1268
- shape: a.shape,
1269
- radius: 30,
1270
- stroke: "none",
1271
- plot: { x: 30, y: 30 },
1272
- fill: `url(#pattern_${w.value}_${s})`
1273
- }, null, 8, ["shape", "fill"])
1274
- ]),
1275
- key: "0"
1276
- } : void 0
1277
- ]), 1032, ["legendSet", "config", "isCursorPointer"])) : h("", !0),
1278
- d(t.$slots, "legend", { legend: R.value }, void 0, !0)
1279
- ], 512),
1280
- t.$slots.source ? (n(), r("div", {
1281
- key: 5,
1282
- ref_key: "source",
1283
- ref: We,
1284
- dir: "auto"
1285
- }, [
1286
- d(t.$slots, "source", {}, void 0, !0)
1287
- ], 512)) : h("", !0),
1288
- q.value && e.value.userOptions.buttons.table ? (n(), _(Ca(K.value.component), Ne({ key: 6 }, K.value.props, {
1289
- ref_key: "tableUnit",
1290
- ref: Z,
1291
- onClose: ut
1292
- }), Ie({
1293
- content: c(() => [
1294
- (n(), _(u(St), {
1295
- key: `table_${It.value}`,
1296
- colNames: de.value.colNames,
1297
- head: de.value.head,
1298
- body: de.value.body,
1299
- config: de.value.config,
1300
- title: e.value.table.useDialog ? "" : K.value.title,
1301
- withCloseButton: !e.value.table.useDialog,
1302
- isCursorPointer: O.value,
1303
- onClose: ut
1304
- }, {
1305
- th: c(({ th: a }) => [
1306
- y("div", { innerHTML: a }, null, 8, Tl)
1307
- ]),
1308
- td: c(({ td: a }) => [
1309
- Fe(V(a.name ? a.name : u(ye)(
1310
- e.value.style.chart.selector.labels.formatter,
1311
- a,
1312
- u(pe)({
1313
- p: e.value.style.chart.xAxis.labels.prefix,
1314
- v: a,
1315
- s: e.value.style.chart.xAxis.labels.suffix,
1316
- r: e.value.table.td.roundingValue
1317
- })
1318
- )), 1)
1319
- ]),
1320
- _: 1
1321
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
1322
- ]),
1323
- _: 2
1324
- }, [
1325
- e.value.table.useDialog ? {
1326
- name: "title",
1327
- fn: c(() => [
1328
- Fe(V(K.value.title), 1)
1329
- ]),
1330
- key: "0"
1331
- } : void 0,
1332
- e.value.table.useDialog ? {
1333
- name: "actions",
1334
- fn: c(() => [
1335
- y("button", {
1336
- tabindex: "0",
1337
- class: "vue-ui-user-options-button",
1338
- onClick: l[1] || (l[1] = (a) => ze(e.value.userOptions.callbacks.csv)),
1339
- style: C({ cursor: O.value ? "pointer" : "default" })
1340
- }, [
1341
- Re(u(_t), {
1342
- name: "fileCsv",
1343
- stroke: K.value.props.color
1344
- }, null, 8, ["stroke"])
1345
- ], 4)
1346
- ]),
1347
- key: "1"
1348
- } : void 0
1349
- ]), 1040)) : h("", !0),
1350
- e.value.style.chart.dialog.show ? (n(), _(u(He), {
1351
- key: 7,
1352
- ref_key: "dialog",
1353
- ref: xe,
1354
- onClose: l[2] || (l[2] = (a) => W.value = null),
1355
- backgroundColor: e.value.style.chart.dialog.backgroundColor,
1356
- color: e.value.style.chart.dialog.color,
1357
- headerBg: e.value.style.chart.dialog.header.backgroundColor,
1358
- headerColor: e.value.style.chart.dialog.header.color,
1359
- isFullscreen: X.value,
1360
- fullscreenParent: T.value,
1361
- isCursorPointer: O.value,
1362
- withPadding: ""
1363
- }, {
1364
- title: c(() => [
1365
- Fe(V(W.value.name), 1)
1366
- ]),
1367
- content: c(() => [
1368
- W.value ? (n(), _(u($t), {
1369
- key: 0,
1370
- config: ie.value,
1371
- dataset: ce.value,
1372
- onCopyAlt: va
1373
- }, null, 8, ["config", "dataset"])) : h("", !0)
1374
- ]),
1375
- _: 1
1376
- }, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent", "isCursorPointer"])) : h("", !0),
1377
- d(t.$slots, "skeleton", {}, () => [
1378
- u(G) ? (n(), _(Ea, { key: 0 })) : h("", !0)
1379
- ], !0)
1380
- ], 46, el));
1381
- }
1382
- }, Jl = /* @__PURE__ */ Qa(Ol, [["__scopeId", "data-v-84fd5425"]]);
1383
- export {
1384
- Jl as default
1385
- };