vue-data-ui 3.22.6 → 3.22.8

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 (203) hide show
  1. package/dist/{Arrow-Ds4xmpiQ.js → Arrow-DdymhUfY.js} +1 -1
  2. package/dist/{BaseDraggableDialog-VbypEaAa.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
  3. package/dist/{BaseIcon-DcUvOfxf.js → BaseIcon-C2qlyHc7.js} +1 -1
  4. package/dist/{BaseLegendToggle-DFwIY5bE.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
  5. package/dist/{BaseZoomControls-DwolSINF.js → BaseZoomControls-C6zonwhr.js} +2 -2
  6. package/dist/{ColorPicker-UVDPcrjE.js → ColorPicker-CK2-h611.js} +2 -2
  7. package/dist/{DataTable-CXfvIulC.js → DataTable-D9NvewTT.js} +2 -2
  8. package/dist/{Legend-D-635Kag.js → Legend-ROt6ugzW.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-pR_1qp3s.js → NonSvgPenAndPaper-BHHNsVVP.js} +29 -29
  10. package/dist/{PackageVersion-Da7hl-34.js → PackageVersion-DW7zwRcm.js} +1 -1
  11. package/dist/{PenAndPaper-Bk2-E7V4.js → PenAndPaper-pcgwlYr2.js} +18 -18
  12. package/dist/{Shape-BSetplwm.js → Shape-UpH0a4Ur.js} +3 -3
  13. package/dist/{Slicer-ClIGOuoX.js → Slicer-BZ5VnOOS.js} +19 -19
  14. package/dist/{SlicerPreview-D1n9AW39.js → SlicerPreview-BQFeCw0m.js} +351 -351
  15. package/dist/{SparkTooltip-CjDAyolg.js → SparkTooltip-BTLN-Kex.js} +6 -6
  16. package/dist/{Title-C-p0ilWB.js → Title-CcNiYzEo.js} +1 -1
  17. package/dist/{Tooltip-YabpoXo1.js → Tooltip-CxOrWlFy.js} +1 -1
  18. package/dist/{UserOptions-BO4VFL8O.js → UserOptions-16uF1ayB.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-CVJfsfwL.js → dom-to-png-BbwhsRIr.js} +1 -1
  89. package/dist/exposedLib-VXFp3Z2c.js +19 -0
  90. package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
  91. package/dist/{img-B_y5qDdm.js → img-DnP3eXuv.js} +1 -1
  92. package/dist/{labelUtils-CyVwqXSh.js → labelUtils-DBEh078l.js} +1 -1
  93. package/dist/{lib-DRBJCmHW.js → lib-JqW18y5I.js} +49 -30
  94. package/dist/{package-DyQ_PQis.js → package-gp9pYCfN.js} +1 -1
  95. package/dist/{pdf-CG02qhAH.js → pdf-hj3gzrE7.js} +1 -1
  96. package/dist/{render-common-CUAlQvAQ.js → render-common-CLn1VXJ9.js} +20 -20
  97. package/dist/ssr/vue-ui-donut.js +1 -1
  98. package/dist/ssr/vue-ui-xy.js +1 -1
  99. package/dist/ssr.js +2 -2
  100. package/dist/style.css +1 -1
  101. package/dist/types/utils.d.ts +18 -0
  102. package/dist/{useAutoSizeLabelsInsideViewbox-DPMOys9n.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
  103. package/dist/{useNestedProp-BEo2N1Db.js → useNestedProp-DIuuzG1r.js} +1 -1
  104. package/dist/{usePrinter-CRp5IW3v.js → usePrinter-CqqHmnBI.js} +2 -2
  105. package/dist/utils.js +23 -23
  106. package/dist/{vue-data-ui-Bpu4kxlm.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
  107. package/dist/vue-data-ui.js +77 -77
  108. package/dist/{vue-ui-3d-bar-BAH0jNtT.js → vue-ui-3d-bar-B3HxJmDI.js} +124 -124
  109. package/dist/{vue-ui-accordion-CfMrbDoq.js → vue-ui-accordion-YyosvEPo.js} +3 -3
  110. package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
  111. package/dist/{vue-ui-annotator-CG6rhFpy.js → vue-ui-annotator-CfJXeAOE.js} +6 -6
  112. package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
  113. package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
  114. package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
  115. package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
  116. package/dist/{vue-ui-chestnut-Cx8T3NEl.js → vue-ui-chestnut-RfWMGUD-.js} +114 -114
  117. package/dist/{vue-ui-chord-B-sauvLo.js → vue-ui-chord-Db1O_diJ.js} +57 -57
  118. package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
  119. package/dist/{vue-ui-cursor-DVsEm_4l.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
  120. package/dist/{vue-ui-dag-Cfi0b9qm.js → vue-ui-dag-DL3zq0F2.js} +37 -37
  121. package/dist/{vue-ui-dashboard-F_NZ1xoQ.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
  122. package/dist/{vue-ui-digits-BfP1kbj3.js → vue-ui-digits-ThFVNO3l.js} +3 -3
  123. package/dist/{vue-ui-donut-DlVRnVr_.js → vue-ui-donut-BuTd6dt4.js} +224 -224
  124. package/dist/{vue-ui-donut-BwAyvV3-.js → vue-ui-donut-C3Rt6j-I.js} +458 -458
  125. package/dist/vue-ui-donut-evolution-DY46UPF_.js +1510 -0
  126. package/dist/vue-ui-dumbbell-wK7vUB0x.js +1530 -0
  127. package/dist/{vue-ui-flow-D_7Idmmw.js → vue-ui-flow-BTUNfWb7.js} +122 -122
  128. package/dist/vue-ui-funnel-BhoHzyHa.js +777 -0
  129. package/dist/{vue-ui-galaxy-Bjxbg5_B.js → vue-ui-galaxy-DJ2uNYcN.js} +263 -263
  130. package/dist/{vue-ui-gauge-Dt0H7DgC.js → vue-ui-gauge-Cf4NqvrO.js} +226 -226
  131. package/dist/{vue-ui-geo-89DEQb5l.js → vue-ui-geo-ovHu_Sc9.js} +21 -21
  132. package/dist/{vue-ui-gizmo-CQyLK18v.js → vue-ui-gizmo-DDxEj-qe.js} +7 -7
  133. package/dist/{vue-ui-heatmap-o6MvoxBK.js → vue-ui-heatmap-Npqnvb1r.js} +282 -282
  134. package/dist/vue-ui-history-plot-C3Kjy2tc.js +1715 -0
  135. package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
  136. package/dist/{vue-ui-kpi-4C-j92D-.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
  137. package/dist/{vue-ui-mini-loader-Bj4Wv-i8.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
  138. package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
  139. package/dist/{vue-ui-mood-radar-B5W35Fvp.js → vue-ui-mood-radar-DlVh6hwx.js} +27 -27
  140. package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
  141. package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
  142. package/dist/{vue-ui-parallel-coordinate-plot-DBpHCFxa.js → vue-ui-parallel-coordinate-plot-DSp_cwU-.js} +57 -57
  143. package/dist/vue-ui-quadrant-ByVg-NBs.js +1978 -0
  144. package/dist/{vue-ui-quick-chart-so_8PzvS.js → vue-ui-quick-chart-WMzSJxGZ.js} +188 -188
  145. package/dist/{vue-ui-radar-5fQ5AAWD.js → vue-ui-radar-DE-me6OC.js} +64 -64
  146. package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
  147. package/dist/vue-ui-relation-circle-L7-dTqet.js +924 -0
  148. package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
  149. package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
  150. package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
  151. package/dist/{vue-ui-skeleton-BkxB6Dik.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
  152. package/dist/{vue-ui-smiley-C4g0iaF7.js → vue-ui-smiley-D4NnZ1mg.js} +17 -17
  153. package/dist/{vue-ui-spark-trend-0FELlq4x.js → vue-ui-spark-trend-C38ysZ-c.js} +21 -21
  154. package/dist/{vue-ui-sparkbar-D-i_VLO6.js → vue-ui-sparkbar-B03ndcUe.js} +80 -80
  155. package/dist/{vue-ui-sparkgauge-CWw6w_ng.js → vue-ui-sparkgauge-DgPc4vPT.js} +7 -7
  156. package/dist/{vue-ui-sparkhistogram-DuGpkfma.js → vue-ui-sparkhistogram-D02ff7ZI.js} +115 -115
  157. package/dist/{vue-ui-sparkline-Bi06lHQd.js → vue-ui-sparkline-DlTfNQj8.js} +464 -464
  158. package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +662 -0
  159. package/dist/vue-ui-stackbar-BVdApDnY.js +2332 -0
  160. package/dist/vue-ui-stackline-QzQQ7lTy.js +2419 -0
  161. package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
  162. package/dist/{vue-ui-table-DBlZswRi.js → vue-ui-table-Q3brrivC.js} +68 -68
  163. package/dist/{vue-ui-table-heatmap-3xYIDKcP.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
  164. package/dist/{vue-ui-table-sparkline-BH5PzEnJ.js → vue-ui-table-sparkline-Q6BHPKUn.js} +199 -199
  165. package/dist/{vue-ui-thermometer-BxMzAqoT.js → vue-ui-thermometer-Bg0RR6m4.js} +26 -26
  166. package/dist/{vue-ui-timer-ONSitYDm.js → vue-ui-timer-BdzKpoRj.js} +29 -29
  167. package/dist/{vue-ui-tiremarks-DWXM-9nR.js → vue-ui-tiremarks-DWb69ofh.js} +17 -17
  168. package/dist/{vue-ui-treemap-B03c4RIy.js → vue-ui-treemap-uUz07Prw.js} +401 -401
  169. package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
  170. package/dist/{vue-ui-wheel-DRP7X8S2.js → vue-ui-wheel-DTfvWYA7.js} +137 -137
  171. package/dist/{vue-ui-word-cloud-AKpMO97a.js → vue-ui-word-cloud-DqfljAqH.js} +40 -40
  172. package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
  173. package/dist/{vue-ui-xy-Bmd11BxR.js → vue-ui-xy-Bvgy2do1.js} +1598 -1596
  174. package/dist/{vue-ui-xy-DJ8YKPgs.js → vue-ui-xy-D5KsuNR2.js} +259 -259
  175. package/dist/{vue-ui-xy-canvas-DO_PDGKf.js → vue-ui-xy-canvas-BfgeE3TW.js} +440 -437
  176. package/package.json +1 -1
  177. package/dist/exposedLib-CjwriUaG.js +0 -19
  178. package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +0 -1238
  179. package/dist/vue-ui-bullet-C_oBS1cr.js +0 -710
  180. package/dist/vue-ui-bump-BZB1Na8h.js +0 -1249
  181. package/dist/vue-ui-candlestick-8d_1xO8X.js +0 -1826
  182. package/dist/vue-ui-carousel-table-BfZNcwmY.js +0 -455
  183. package/dist/vue-ui-circle-pack-BLh8HnGK.js +0 -1608
  184. package/dist/vue-ui-donut-evolution-D1k4u6cA.js +0 -1510
  185. package/dist/vue-ui-dumbbell-DgmvPpK2.js +0 -1530
  186. package/dist/vue-ui-funnel-BYCFV5TD.js +0 -777
  187. package/dist/vue-ui-history-plot-B7zuCfdg.js +0 -1715
  188. package/dist/vue-ui-horizontal-bar-CwB4sc6M.js +0 -1683
  189. package/dist/vue-ui-molecule-BDrRmwmm.js +0 -925
  190. package/dist/vue-ui-nested-donuts-wfesrzle.js +0 -1487
  191. package/dist/vue-ui-onion-B8-psLbF.js +0 -1200
  192. package/dist/vue-ui-quadrant-BzyGOJR2.js +0 -1978
  193. package/dist/vue-ui-rating-CKWHDKOT.js +0 -343
  194. package/dist/vue-ui-relation-circle-Bd_ONHCz.js +0 -924
  195. package/dist/vue-ui-ridgeline-DVbYznRz.js +0 -1622
  196. package/dist/vue-ui-rings-c-yLWFHr.js +0 -1246
  197. package/dist/vue-ui-scatter-QhmE7n1H.js +0 -2413
  198. package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +0 -662
  199. package/dist/vue-ui-stackbar-DDvuDGQ_.js +0 -2329
  200. package/dist/vue-ui-stackline-C0NHBUaE.js +0 -2416
  201. package/dist/vue-ui-strip-plot-_6LL45i9.js +0 -1729
  202. package/dist/vue-ui-waffle-afa8HSxz.js +0 -1362
  203. package/dist/vue-ui-world-CqS-HhZl.js +0 -14264
@@ -1,1622 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { A as t, At as n, Dt as r, H as i, Ht as a, Q as o, R as s, Rt as c, S as ee, W as te, Wt as ne, X as re, Y as ie, b as ae, dt as oe, i as l, j as se, lt as ce, q as le, r as ue, t as de, w as fe } from "./lib-DRBJCmHW.js";
3
- import { t as pe } from "./useTimeLabels-BmBRv27Y.js";
4
- import { t as me } from "./useConfig-DYM3f6EI.js";
5
- import { t as he } from "./usePrinter-CRp5IW3v.js";
6
- import { n as ge, t as _e } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as ve } from "./useSvgExport-SVIsDot8.js";
8
- import { t as ye } from "./useNestedProp-BEo2N1Db.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-B_y5qDdm.js";
12
- import { n as Ce } from "./Title-C-p0ilWB.js";
13
- import { t as we } from "./Shape-BSetplwm.js";
14
- import { t as Te } from "./_plugin-vue_export-helper-B3ysoDQm.js";
15
- import { c as Ee } from "./canvas-lib-BOP_HS11.js";
16
- import { t as De } from "./useResponsive-BfnK0KxU.js";
17
- import { t as Oe } from "./BaseLegendToggle-DFwIY5bE.js";
18
- import { t as ke } from "./A11yDataTable-DdRsVULz.js";
19
- import { t as Ae } from "./useUserOptionState-DK-_1ddE.js";
20
- import { t as je } from "./useChartAccessibility-DYqac8yF.js";
21
- import { t as Me } from "./Legend-D-635Kag.js";
22
- import { t as Ne } 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 Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Le, nextTick as Re, normalizeClass as ze, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Be, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Ve, shallowRef as He, toDisplayString as w, toRefs as Ue, unref as T, watch as We, watchEffect as Ge, withCtx as E } from "vue";
24
- //#region src/components/vue-ui-ridgeline.vue
25
- var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye = { style: { position: "relative" } }, Xe = [
26
- "xmlns",
27
- "aria-describedby",
28
- "viewBox"
29
- ], Ze = ["id"], Qe = ["stop-color"], $e = ["stop-color"], et = ["stop-color"], tt = ["stop-color"], nt = ["id"], rt = ["stop-color"], it = ["stop-color"], at = ["stop-color"], ot = ["stop-color"], st = { key: 0 }, ct = ["fill", "d"], lt = [
30
- "stroke",
31
- "stroke-width",
32
- "d"
33
- ], ut = ["fill", "d"], dt = [
34
- "stroke",
35
- "stroke-dasharray",
36
- "stroke-width",
37
- "d"
38
- ], ft = [
39
- "x1",
40
- "y1",
41
- "x2",
42
- "y2",
43
- "stroke",
44
- "stroke-width",
45
- "stroke-dasharray"
46
- ], pt = [
47
- "cx",
48
- "cy",
49
- "stroke",
50
- "stroke-width",
51
- "r",
52
- "fill"
53
- ], mt = [
54
- "x",
55
- "y",
56
- "font-size",
57
- "font-weight",
58
- "fill",
59
- "text-decoration",
60
- "onMouseenter",
61
- "onClick"
62
- ], ht = { key: 0 }, gt = [
63
- "font-size",
64
- "fill",
65
- "font-weight",
66
- "transform",
67
- "text-anchor"
68
- ], _t = [
69
- "font-size",
70
- "fill",
71
- "font-weight",
72
- "transform",
73
- "text-anchor",
74
- "innerHTML"
75
- ], vt = [
76
- "x",
77
- "y",
78
- "width",
79
- "height",
80
- "onMouseenter",
81
- "onMouseleave",
82
- "onClick"
83
- ], yt = [
84
- "x1",
85
- "x2",
86
- "y1",
87
- "y2",
88
- "stroke",
89
- "stroke-width",
90
- "stroke-dasharray"
91
- ], bt = [
92
- "cx",
93
- "cy",
94
- "stroke",
95
- "stroke-width",
96
- "r",
97
- "fill"
98
- ], xt = [
99
- "x",
100
- "y",
101
- "text-anchor",
102
- "font-size",
103
- "fill"
104
- ], St = {
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
- }, Ct = {
115
- key: 5,
116
- class: "vue-data-ui-watermark"
117
- }, wt = ["onClick"], Tt = ["innerHTML"], Et = /*#__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: Ke }) {
140
- let Et = g(() => import("./vue-ui-xy-Bmd11BxR.js").then((e) => e.n)), Dt = g(() => import("./BaseIcon-DcUvOfxf.js").then((e) => e.n)), Ot = g(() => import("./vue-ui-accordion-CfMrbDoq.js").then((e) => e.n)), kt = g(() => import("./DataTable-CXfvIulC.js")), At = g(() => import("./PenAndPaper-Bk2-E7V4.js").then((e) => e.t)), jt = g(() => import("./UserOptions-BO4VFL8O.js").then((e) => e.n)), Mt = g(() => import("./PackageVersion-Da7hl-34.js").then((e) => e.t)), Nt = g(() => import("./BaseDraggableDialog-VbypEaAa.js").then((e) => e.n)), { vue_ui_ridgeline: Pt } = me(), { isThemeValid: Ft, warnInvalidTheme: It } = be(), D = e, Lt = d({
141
- get() {
142
- return Array.isArray(R.value) && R.value.length > 0;
143
- },
144
- set(e) {
145
- return e;
146
- }
147
- }), Rt = Ke, O = x(null), zt = x(null), Bt = x(null), k = He(null), A = He(null), Vt = x(null), Ht = x(null), Ut = x(0), Wt = x(0), Gt = x(0), j = x(te()), Kt = x(0), qt = x(0), Jt = x(512), M = x(null), N = x(null), Yt = x(null), Xt = x(0), Zt = x(null), Qt = x(null), $t = x(null), en = x(!1), tn = x(!1), P = x(null), nn = x(!1);
148
- function rn() {
149
- let e = ye({
150
- userConfig: D.config,
151
- defaultConfig: Pt
152
- }), t = e.theme;
153
- if (!t) return e;
154
- if (!Ft.value(e)) return It(e), e;
155
- let r = ye({
156
- userConfig: Ne[t] || D.config,
157
- defaultConfig: e
158
- }), i = ye({
159
- userConfig: D.config,
160
- defaultConfig: r
161
- });
162
- return {
163
- ...i,
164
- customPalette: i.customPalette.length ? i.customPalette : a[t] || n
165
- };
166
- }
167
- let F = x(rn()), I = d(() => F.value.userOptions.useCursorPointer), an = d(() => ne({
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: F.value.skeletonConfig ?? {}
189
- })), { loading: L, FINAL_DATASET: R, manualLoading: on } = ge({
190
- ...Ue(D),
191
- FINAL_CONFIG: F,
192
- prepareConfig: rn,
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: ne({
424
- defaultConfig: F.value,
425
- userConfig: an.value
426
- })
427
- }), z = x(Math.min(F.value.style.chart.areas.height, F.value.style.chart.areas.rowHeight)), { userOptionsVisible: sn, setUserOptionsVisibility: cn, keepUserOptionState: ln } = Ae({ config: F.value }), { svgRef: B } = je({ config: F.value.style.chart.title }), un = d(() => !!F.value.debug);
428
- function dn() {
429
- let e = R.value || [];
430
- if (!Array.isArray(e) || e.length === 0) {
431
- o({
432
- componentName: "VueUiRidgeline",
433
- type: "dataset",
434
- debug: un.value
435
- }), on.value = !0;
436
- return;
437
- }
438
- if (e.forEach((e, t) => {
439
- ce({
440
- datasetObject: e,
441
- requiredAttributes: ["name", "datapoints"]
442
- }).forEach((e) => {
443
- Lt.value = !1, o({
444
- componentName: "VueUiRidgeline",
445
- type: "datasetSerieAttribute",
446
- property: e,
447
- index: t,
448
- debug: un.value
449
- });
450
- }), Array.isArray(e.datapoints) && e.datapoints.length && e.datapoints.forEach((e, n) => {
451
- ce({
452
- datasetObject: e,
453
- requiredAttributes: ["name", "values"]
454
- }).forEach((e) => {
455
- Lt.value = !1, o({
456
- componentName: "VueUiRidgeline",
457
- type: "datasetSerieAttribute",
458
- property: `datapoint.${e}`,
459
- index: `${t}-${n}`,
460
- debug: un.value
461
- });
462
- });
463
- });
464
- }), qt.value = e.length, z.value = Math.min(F.value.style.chart.areas.height, F.value.style.chart.areas.rowHeight), r(D.dataset) || (on.value = F.value.loading), F.value.responsive) {
465
- let t = Ee(() => {
466
- let { width: t, height: n } = De({
467
- chart: O.value,
468
- title: F.value.style.chart.title.text ? zt.value : null,
469
- legend: F.value.style.chart.legend.show ? Bt.value : null,
470
- source: Vt.value,
471
- noTitle: Ht.value,
472
- padding: F.value.style.chart.padding
473
- });
474
- requestAnimationFrame(() => {
475
- Jt.value = t, z.value = e.length ? n / e.length : 0, Xt.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
- Be(() => {
482
- k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect());
483
- });
484
- let { isPrinting: fn, isImaging: pn, generatePdf: mn, generateImage: hn } = he({
485
- elementId: `vue-ui-ridgeline_${j.value}`,
486
- fileName: F.value.style.chart.title.text || "vue-ui-ridgeline",
487
- options: F.value.userOptions.print
488
- }), gn = d(() => F.value.userOptions.show && !F.value.style.chart.title.text), _n = d(() => ee(F.value.customPalette)), V = x({ showTable: F.value.table.show });
489
- We(() => R.value, async (e) => {
490
- Array.isArray(e) && e.length && (sn.value = !F.value.userOptions.showOnChartHover, await Re(), dn(), Ut.value += 1, Gt.value += 1, V.value.showTable = F.value.table.show);
491
- }, {
492
- deep: !0,
493
- immediate: !0
494
- }), We(() => D.dataset, (e) => {
495
- Array.isArray(e) && e.length > 0 && (on.value = !1);
496
- }, { deep: !0 }), We(() => L.value, async (e) => {
497
- e || (await Re(), dn());
498
- }, { immediate: !0 }), We(() => D.config, () => {
499
- F.value = rn(R.value || null), sn.value = !F.value.userOptions.showOnChartHover, z.value = Math.min(F.value.style.chart.areas.height, F.value.style.chart.areas.rowHeight), V.value.showTable = F.value.table.show, Ut.value += 1, Gt.value += 1;
500
- }, { deep: !0 });
501
- let vn = d(() => F.value.style.chart.areas.height / F.value.style.chart.areas.rowHeight);
502
- function yn() {
503
- J.value.length ? J.value = [] : Y.value.forEach((e) => {
504
- J.value.push(e.id);
505
- }), Rt("selectLegend", q.value);
506
- }
507
- function bn(e) {
508
- J.value.includes(e) ? J.value = J.value.filter((t) => t !== e) : J.value.push(e), Rt("selectLegend", q.value);
509
- }
510
- function xn(e) {
511
- return Y.value.length ? Y.value.find((t) => t.name === e) || (F.value.debug && console.warn(`VueUiRidgeline - Series name not found "${e}"`), null) : (F.value.debug && console.warn("VueUiRidgeline - There are no series to show."), null);
512
- }
513
- function Sn(e) {
514
- let t = xn(e);
515
- t !== null && J.value.includes(t.id) && bn(t.id);
516
- }
517
- function Cn(e) {
518
- let t = xn(e);
519
- t !== null && (J.value.includes(t.id) || bn(t.id));
520
- }
521
- let H = d(() => Lt.value ? (R.value || []).map((e) => ({
522
- ...e,
523
- labelLen: Ln(e.name, F.value.style.chart.yAxis.labels.fontSize),
524
- uid: te(),
525
- datapoints: e.datapoints.map((e, t) => {
526
- let r = e.color ? ae(e.color) : _n.value[t] || n[t] || n[t % n.length], i = c(e.name);
527
- return {
528
- ...e,
529
- color: r,
530
- id: i
531
- };
532
- })
533
- })) : []), wn = d(() => F.value.style.chart.padding.top + z.value * (R.value || []).length + z.value * vn.value + F.value.style.chart.padding.bottom), U = d(() => {
534
- let e = F.value.style.chart.padding;
535
- return {
536
- width: Jt.value,
537
- height: wn.value,
538
- padding: e
539
- };
540
- }), Tn = d(() => U.value.width), En = d(() => U.value.height), Dn = x(0), On = Ee((e) => {
541
- Dn.value = e;
542
- }, 100);
543
- Ge((e) => {
544
- let t = Zt.value;
545
- if (!t) return;
546
- let n = new ResizeObserver((e) => {
547
- On(e[0].contentRect.height);
548
- });
549
- n.observe(t), e(() => n.disconnect());
550
- }), Be(() => {
551
- Dn.value = 0;
552
- });
553
- let W = d(() => ({
554
- fullHeight: U.value.height + Dn.value,
555
- top: U.value.padding.top,
556
- left: U.value.padding.left,
557
- right: U.value.width - U.value.padding.right,
558
- bottom: U.value.height - F.value.style.chart.padding.bottom,
559
- width: U.value.width - (U.value.padding.left + U.value.padding.right)
560
- })), kn = d(() => Math.max(...H.value.flatMap((e) => e.datapoints.map((e) => e.values.length)))), G = x([]), An = 0;
561
- Ge(() => {
562
- let e = ++An;
563
- (async () => {
564
- let t = await pe({
565
- values: F.value.style.chart.xAxis.labels.values,
566
- maxDatapoints: kn.value,
567
- formatter: F.value.style.chart.xAxis.labels.datetimeFormatter,
568
- start: 0,
569
- end: F.value.style.chart.xAxis.labels.values.length
570
- });
571
- e === An && (G.value = t);
572
- })();
573
- });
574
- let K = d(() => {
575
- let e = Math.max(...H.value.map((e) => e.labelLen)), t = U.value.padding.left + e + 16 + F.value.style.chart.yAxis.labels.offsetX, n = (W.value.width - t) / kn.value, r = [];
576
- for (let e = 0; e < kn.value; e += 1) r.push({
577
- selectorX: t + n * e,
578
- x: t + n * e - n / 2,
579
- y: W.value.top,
580
- label: F.value.style.chart.xAxis.labels.values[e] ? G.value[e]?.text ?? "" : "",
581
- index: e,
582
- width: n,
583
- height: wn.value
584
- });
585
- return r;
586
- });
587
- function jn(e) {
588
- return H.value.map((t) => t.datapoints.map((t) => ({
589
- dp: t,
590
- selected: t.values[e.index]
591
- })));
592
- }
593
- function Mn(e) {
594
- M.value = e;
595
- let t = jn(e);
596
- F.value.events.datapointEnter && F.value.events.datapointEnter({
597
- datapoint: t,
598
- seriesIndex: e.index
599
- });
600
- }
601
- function Nn(e) {
602
- M.value = null;
603
- let t = jn(e);
604
- F.value.events.datapointLeave && F.value.events.datapointLeave({
605
- datapoint: t,
606
- seriesIndex: e.index
607
- });
608
- }
609
- function Pn(e) {
610
- let t = jn(e);
611
- F.value.events.datapointClick && F.value.events.datapointClick({
612
- datapoint: t,
613
- seriesIndex: e.index
614
- }), Rt("selectX", t);
615
- }
616
- function Fn(e, t) {
617
- return e.length * t / 2 + t;
618
- }
619
- function In(e, t, n) {
620
- return e + Fn(t, n) > W.value.right;
621
- }
622
- function Ln(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 q = d(() => {
627
- z.value;
628
- let e = Math.max(...H.value.map((e) => e.labelLen)), n = Math.max(...H.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), r = Math.min(...H.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), i = U.value.padding.left + e + 16 + F.value.style.chart.yAxis.labels.offsetX, a = (W.value.width - i) / kn.value, o = Math.abs(Math.min(r, 0)), c = n + o;
629
- function ee(e) {
630
- return isNaN(e / c) ? 0 : e / c;
631
- }
632
- return H.value.map((e, n) => {
633
- let r = W.value.top + z.value * n, c = W.value.top + r + z.value * vn.value * (1 - ee(o));
634
- return {
635
- ...e,
636
- label: {
637
- x: i - F.value.style.chart.yAxis.labels.fontSize,
638
- y: c
639
- },
640
- datapoints: e.datapoints.map((e) => {
641
- let n = e.values.map((t, n) => {
642
- let s = 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: W.value.top + r + z.value * vn.value * (1 - ee(s + o)),
653
- value: t,
654
- isMaxPoint: t === Math.max(...e.values),
655
- zero: c
656
- };
657
- }), ne = `${t(n, c, !1, !1)}`, re = `M ${i},${c} ${s(n)} ${n.at(-1).x},${c}`, ie = `M ${i},${c} ${n.at(-1).x},${c}`, ae = `M ${se(n)}`, l = `M ${s(n)}`, ce = oe(F.value.style.chart.areas.smooth ? ae : l);
658
- return {
659
- ...e,
660
- uid: te(),
661
- plots: n,
662
- smoothPath: ne,
663
- straightPath: re,
664
- zeroPath: ie,
665
- pathLength: ce,
666
- smoothPathRidge: ae,
667
- straightPathRidge: l
668
- };
669
- }).filter((e) => !J.value.includes(e.id))
670
- };
671
- });
672
- }), J = x([]);
673
- function Rn(e) {
674
- let t = /* @__PURE__ */ new Map();
675
- return e.forEach((e) => {
676
- e.datapoints.forEach((e, n) => {
677
- let r = c(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: () => bn(r),
684
- isSegregated: J.value.includes(r),
685
- opacity: J.value.includes(r) ? .5 : 1
686
- });
687
- });
688
- }), Array.from(t.values());
689
- }
690
- let Y = d(() => Rn(H.value)), zn = d(() => ({
691
- cy: "donut-div-legend",
692
- backgroundColor: F.value.style.chart.legend.backgroundColor,
693
- color: F.value.style.chart.legend.color,
694
- fontSize: F.value.style.chart.legend.fontSize,
695
- paddingBottom: 12,
696
- fontWeight: F.value.style.chart.legend.bold ? "bold" : ""
697
- })), X = x(!1);
698
- function Bn(e) {
699
- X.value = e, Kt.value += 1;
700
- }
701
- let Vn = x({}), Hn = x([]);
702
- function Un(e) {
703
- Rt("selectDatapoint", e), F.value.style.chart.dialog.show && (Hn.value = e.datapoints.map((e) => ({
704
- name: e.name,
705
- color: e.color,
706
- type: "line",
707
- useArea: !0,
708
- smooth: F.value.style.chart.areas.smooth,
709
- series: e.values
710
- })), N.value = e, Vn.value = ie({
711
- ...F.value.style.chart.dialog.xyChart,
712
- responsive: !0,
713
- chart: {
714
- ...F.value.style.chart.dialog.xyChart.chart,
715
- grid: {
716
- ...F.value.style.chart.dialog.xyChart.chart.grid,
717
- labels: {
718
- ...F.value.style.chart.dialog.xyChart.chart.grid.labels,
719
- xAxisLabels: {
720
- ...F.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
721
- values: F.value.style.chart.xAxis.labels.values,
722
- autoRotate: {
723
- enable: !0,
724
- angle: F.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels.autoRotate.angle
725
- },
726
- datetimeFormatter: F.value.style.chart.xAxis.labels.datetimeFormatter
727
- }
728
- }
729
- },
730
- tooltip: {
731
- ...F.value.style.chart.dialog.xyChart.chart.tooltip,
732
- showTimeLabel: F.value.style.chart.xAxis.labels.values.length > 0
733
- },
734
- userOptions: {
735
- ...F.value.style.chart.dialog.xyChart.chart.userOptions,
736
- buttons: {
737
- ...F.value.style.chart.dialog.xyChart.chart.userOptions.buttons,
738
- altCopy: F.value.userOptions.buttons.altCopy
739
- },
740
- callbacks: {
741
- ...F.value.style.chart.dialog.xyChart.chart.userOptions.callbacks,
742
- altCopy: () => {}
743
- },
744
- useCursorPointer: F.value.userOptions.useCursorPointer
745
- }
746
- }
747
- }), Yt.value && Yt.value.open());
748
- }
749
- let Wn = x(null);
750
- function Gn(e) {
751
- Wn.value = e;
752
- }
753
- function Kn() {
754
- Wn.value = null;
755
- }
756
- let qn = x(!1);
757
- function Jn() {
758
- qn.value = !qn.value;
759
- }
760
- function Yn() {
761
- V.value.showTable = !V.value.showTable;
762
- }
763
- let Xn = d(() => ({ body: q.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]) })), Z = d(() => {
770
- let e = [F.value.table.columnNames.series, ...G.value.map((e) => e.text)], t = {
771
- th: {
772
- backgroundColor: F.value.table.th.backgroundColor,
773
- color: F.value.table.th.color,
774
- outline: F.value.table.th.outline
775
- },
776
- td: {
777
- backgroundColor: F.value.table.td.backgroundColor,
778
- color: F.value.table.td.color,
779
- outline: F.value.table.td.outline
780
- },
781
- breakpoint: F.value.table.responsiveBreakpoint
782
- };
783
- return {
784
- colNames: [F.value.table.columnNames.series, ...G.value.map((e) => e.text)],
785
- head: e,
786
- body: Xn.value.body,
787
- config: t
788
- };
789
- });
790
- function Zn(e = null) {
791
- Re(() => {
792
- let t = [[F.value.table.columnNames.series, ...G.map((e) => [e.text])], ...Xn.value.body.map((e, t) => [e[0].name, ...e.slice(1)])], n = fe([[F.value.style.chart.title.text], [F.value.style.chart.title.subtitle.text]].concat(t));
793
- e ? e(n) : re({
794
- csvContent: n,
795
- title: F.value.style.chart.title.text || "vue-ui-ridgeline"
796
- });
797
- });
798
- }
799
- function Qn() {
800
- return q.value;
801
- }
802
- async function $n({ 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: F.value.style.chart.title.text,
814
- width: t,
815
- height: n,
816
- aspectRatio: r
817
- };
818
- }
819
- xe({
820
- timeLabelsEls: Zt,
821
- timeLabels: G,
822
- slicer: d(() => ({
823
- min: 0,
824
- max: kn.value
825
- })),
826
- configRef: F,
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: Tn,
844
- height: En,
845
- targetClass: ".vue-ui-ridgeline-x-axis-label",
846
- angle: F.value.style.chart.xAxis.labels.autoRotate.angle
847
- });
848
- let Q = d(() => {
849
- let e = F.value.table.useDialog && !F.value.table.show, t = V.value.showTable;
850
- return {
851
- component: e ? Nt : Ot,
852
- title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
853
- props: e ? {
854
- backgroundColor: F.value.table.th.backgroundColor,
855
- color: F.value.table.th.color,
856
- headerColor: F.value.table.th.color,
857
- headerBg: F.value.table.th.backgroundColor,
858
- isFullscreen: X.value,
859
- fullscreenParent: O.value,
860
- forcedWidth: Math.min(800, window.innerWidth * .8),
861
- isCursorPointer: I.value
862
- } : {
863
- hideDetails: !0,
864
- config: {
865
- open: t,
866
- maxHeight: 1e4,
867
- body: {
868
- backgroundColor: F.value.style.chart.backgroundColor,
869
- color: F.value.style.chart.color
870
- },
871
- head: {
872
- backgroundColor: F.value.style.chart.backgroundColor,
873
- color: F.value.style.chart.color
874
- }
875
- }
876
- }
877
- };
878
- });
879
- We(() => V.value.showTable, (e) => {
880
- F.value.table.show || (e && F.value.table.useDialog && Qt.value ? Qt.value.open() : "close" in Qt.value && Qt.value.close());
881
- });
882
- function er() {
883
- V.value.showTable = !1, $t.value && $t.value.setTableIconState(!1);
884
- }
885
- let tr = d(() => F.value.style.chart.backgroundColor), nr = d(() => ({
886
- ...F.value.style.chart.legend,
887
- position: "bottom"
888
- })), { exportSvg: rr, getSvg: ir } = ve({
889
- svg: B,
890
- title: d(() => F.value.style.chart.title),
891
- legend: nr,
892
- legendItems: Y,
893
- backgroundColor: tr
894
- });
895
- async function ar({ isCb: e }) {
896
- tn.value = !0, await Re();
897
- try {
898
- if (e) {
899
- let { blob: e, url: t, text: n, dataUrl: r } = await ir();
900
- await Promise.resolve(F.value.userOptions.callbacks.svg({
901
- blob: e,
902
- url: t,
903
- text: n,
904
- dataUrl: r
905
- }));
906
- } else await Promise.resolve(rr());
907
- } finally {
908
- tn.value = !1;
909
- }
910
- }
911
- function or(e) {
912
- if (e?.stage === "start") {
913
- en.value = !0;
914
- return;
915
- }
916
- if (e?.stage === "end") {
917
- en.value = !1;
918
- return;
919
- }
920
- hn();
921
- }
922
- function sr(e) {
923
- cr("xy-zoom", e.dataset, e.config);
924
- }
925
- async function cr(e = "main-chart", t = null, n = null) {
926
- if (Rt("copyAlt", {
927
- source: e,
928
- config: e === "main-chart" ? F.value : Vn.value,
929
- dataset: e === "main-chart" ? q.value : Hn.value
930
- }), !F.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(F.value.userOptions.callbacks.altCopy({
935
- source: e,
936
- config: e === "main-chart" ? F.value : Vn.value,
937
- dataset: e === "main-chart" ? q.value : Hn.value
938
- }));
939
- }
940
- function lr() {
941
- P.value = null, nn.value = !0;
942
- }
943
- function ur() {
944
- mr(), nn.value = !1;
945
- }
946
- function dr(e) {
947
- if (!B.value || qn.value || document.activeElement !== B.value || !q.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
- mr();
952
- return;
953
- }
954
- if (a) {
955
- if (P.value !== null) {
956
- let e = q.value[P.value];
957
- e && Un(e);
958
- return;
959
- }
960
- M.value && Pn(M.value);
961
- return;
962
- }
963
- if (t || n) {
964
- let e = P.value;
965
- e = e === null ? n ? 0 : q.value.length - 1 : fr(e + (n ? 1 : -1)), P.value = e, Wn.value = e;
966
- return;
967
- }
968
- if (!K.value.length) return;
969
- let s = M.value?.index ?? null;
970
- s = s === null ? i ? 0 : K.value.length - 1 : pr(s + (i ? 1 : -1));
971
- let c = K.value[s];
972
- c && Mn(c);
973
- }
974
- function fr(e) {
975
- let t = q.value.length;
976
- return t ? (e % t + t) % t : null;
977
- }
978
- function pr(e) {
979
- let t = K.value.length;
980
- return t ? (e % t + t) % t : null;
981
- }
982
- function mr() {
983
- P.value = null, Wn.value = null, M.value ? Nn(M.value) : M.value = null;
984
- }
985
- let $ = d(() => ({
986
- head: Z.value.head,
987
- body: Z.value.body.map((e) => [e[0]?.name ?? "", ...e.slice(1)]),
988
- caption: F.value.a11y.translations.tableCaption,
989
- notice: F.value.a11y.translations.tableAvailable
990
- }));
991
- return Te({
992
- getData: Qn,
993
- getImage: $n,
994
- generateImage: hn,
995
- generateSvg: ar,
996
- generatePdf: mn,
997
- generateCsv: Zn,
998
- hideSeries: Cn,
999
- showSeries: Sn,
1000
- toggleAnnotator: Jn,
1001
- toggleTable: Yn,
1002
- toggleFullscreen: Bn,
1003
- copyAlt: cr
1004
- }), (e, t) => (b(), m("div", {
1005
- ref_key: "ridgelineChart",
1006
- ref: O,
1007
- class: ze(`vue-data-ui-component vue-ui-ridgeline ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
1008
- id: `vue-ui-ridgeline_${j.value}`,
1009
- style: y({
1010
- fontFamily: F.value.style.fontFamily,
1011
- width: "100%",
1012
- textAlign: "center",
1013
- background: F.value.style.chart.backgroundColor,
1014
- height: F.value.responsive ? "100%" : void 0
1015
- }),
1016
- onMouseenter: t[3] ||= () => T(cn)(!0),
1017
- onMouseleave: t[4] ||= () => T(cn)(!1)
1018
- }, [
1019
- h("div", {
1020
- id: `chart-instructions-${j.value}`,
1021
- class: "sr-only"
1022
- }, [h("p", null, w(F.value.a11y.translations.keyboardNavigation), 1)], 8, Je),
1023
- $.value.body.length ? (b(), f(ke, {
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
- F.value.userOptions.buttons.annotator && T(B) ? (b(), f(T(At), {
1038
- key: 1,
1039
- color: F.value.style.chart.color,
1040
- backgroundColor: F.value.style.chart.backgroundColor,
1041
- active: qn.value,
1042
- svgRef: T(B),
1043
- isCursorPointer: I.value,
1044
- onClose: Jn
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
- gn.value ? (b(), m("div", {
1062
- key: 2,
1063
- ref_key: "noTitle",
1064
- ref: Ht,
1065
- class: "vue-data-ui-no-title-space",
1066
- style: "height:36px; width: 100%;background:transparent"
1067
- }, null, 512)) : p("", !0),
1068
- F.value.style.chart.title.text ? (b(), m("div", {
1069
- key: 3,
1070
- ref_key: "chartTitle",
1071
- ref: zt,
1072
- style: "width:100%;background:transparent;padding-bottom:24px"
1073
- }, [(b(), f(Ce, {
1074
- key: `title_${Ut.value}`,
1075
- config: {
1076
- title: {
1077
- cy: "ridgeline-div-title",
1078
- ...F.value.style.chart.title
1079
- },
1080
- subtitle: {
1081
- cy: "ridgeline-div-subtitle",
1082
- ...F.value.style.chart.title.subtitle
1083
- }
1084
- }
1085
- }, null, 8, ["config"]))], 512)) : p("", !0),
1086
- F.value.userOptions.show && Lt.value && (T(ln) || T(sn)) ? (b(), f(T(jt), {
1087
- ref_key: "userOptionsRef",
1088
- ref: $t,
1089
- key: `user_option_${Kt.value}`,
1090
- backgroundColor: F.value.style.chart.backgroundColor,
1091
- color: F.value.style.chart.color,
1092
- isPrinting: T(fn),
1093
- isImaging: T(pn),
1094
- uid: j.value,
1095
- hasTooltip: !1,
1096
- callbacks: F.value.userOptions.callbacks,
1097
- hasPdf: F.value.userOptions.buttons.pdf,
1098
- hasImg: F.value.userOptions.buttons.img,
1099
- hasSvg: F.value.userOptions.buttons.svg,
1100
- hasXls: F.value.userOptions.buttons.csv,
1101
- hasTable: F.value.userOptions.buttons.table,
1102
- hasLabel: !1,
1103
- hasFullscreen: F.value.userOptions.buttons.fullscreen,
1104
- hasAltCopy: F.value.userOptions.buttons.altCopy,
1105
- isFullscreen: X.value,
1106
- printScale: F.value.userOptions.print.scale,
1107
- chartElement: O.value,
1108
- position: F.value.userOptions.position,
1109
- isTooltip: !1,
1110
- titles: { ...F.value.userOptions.buttonTitles },
1111
- hasAnnotator: F.value.userOptions.buttons.annotator,
1112
- isAnnotation: qn.value,
1113
- tableDialog: F.value.table.useDialog,
1114
- style: y({ visibility: T(ln) ? T(sn) ? "visible" : "hidden" : "visible" }),
1115
- isCursorPointer: I.value,
1116
- onToggleFullscreen: Bn,
1117
- onGeneratePdf: T(mn),
1118
- onGenerateCsv: Zn,
1119
- onGenerateImage: or,
1120
- onGenerateSvg: ar,
1121
- onToggleTable: Yn,
1122
- onToggleAnnotator: Jn,
1123
- onCopyAlt: cr
1124
- }, Pe({ _: 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", Ye, [(b(), m("svg", {
1221
- ref_key: "svgRef",
1222
- ref: B,
1223
- xmlns: T(de),
1224
- "aria-describedby": `chart-instructions-${j.value}`,
1225
- class: ze({
1226
- "vue-data-ui-fullscreen--on": X.value,
1227
- "vue-data-ui-fulscreen--off": !X.value
1228
- }),
1229
- viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${W.value.fullHeight <= 0 ? 10 : W.value.fullHeight}`,
1230
- style: y(`max-width:100%;overflow:visible;background:transparent;color:${F.value.style.chart.color};${F.value.responsive ? `height: ${Xt.value}px; width: 100%;` : ""}`),
1231
- tabindex: "0",
1232
- onFocus: lr,
1233
- onBlur: ur,
1234
- onKeydown: dr
1235
- }, [
1236
- Ie(T(Mt)),
1237
- h("defs", null, [(b(!0), m(u, null, S(Y.value, (e, t) => (b(), m("linearGradient", {
1238
- id: `gradient-${e.id}-${j.value}`,
1239
- x1: "50%",
1240
- y1: "0%",
1241
- x2: "50%",
1242
- y2: "100%"
1243
- }, [
1244
- h("stop", {
1245
- offset: "0%",
1246
- "stop-color": e.color,
1247
- "stop-opacity": "1"
1248
- }, null, 8, Qe),
1249
- h("stop", {
1250
- offset: "30%",
1251
- "stop-color": e.color,
1252
- "stop-opacity": "0.7"
1253
- }, null, 8, $e),
1254
- h("stop", {
1255
- offset: "70%",
1256
- "stop-color": e.color,
1257
- "stop-opacity": "0.3"
1258
- }, null, 8, et),
1259
- h("stop", {
1260
- offset: "100%",
1261
- "stop-color": e.color,
1262
- "stop-opacity": "0.1"
1263
- }, null, 8, tt)
1264
- ], 8, Ze))), 256)), (b(!0), m(u, null, S(q.value, (e, t) => (b(), m(u, null, [(b(!0), m(u, null, S(e.datapoints, (e, t) => (b(), m("linearGradient", {
1265
- key: `grad${e.id}`,
1266
- id: `gradient-single-${j.value}-${e.uid}`,
1267
- x1: "50%",
1268
- y1: "0%",
1269
- x2: "50%",
1270
- y2: "100%"
1271
- }, [
1272
- h("stop", {
1273
- offset: "0%",
1274
- "stop-color": e.color,
1275
- "stop-opacity": "1"
1276
- }, null, 8, rt),
1277
- h("stop", {
1278
- offset: "30%",
1279
- "stop-color": e.color,
1280
- "stop-opacity": "0.7"
1281
- }, null, 8, it),
1282
- h("stop", {
1283
- offset: "70%",
1284
- "stop-color": e.color,
1285
- "stop-opacity": "0.3"
1286
- }, null, 8, at),
1287
- h("stop", {
1288
- offset: "100%",
1289
- "stop-color": e.color,
1290
- "stop-opacity": "0.1"
1291
- }, null, 8, ot)
1292
- ], 8, nt))), 128))], 64))), 256))]),
1293
- (b(!0), m(u, null, S(q.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 }, [
1294
- e.$slots.pattern ? (b(), m("g", st, [h("defs", null, [C(e.$slots, "pattern", Le({ ref_for: !0 }, {
1295
- datapointIndex: n,
1296
- seriesIndex: r,
1297
- patternId: `pattern_${j.value}_${t.uid}`
1298
- }), void 0, !0)])])) : p("", !0),
1299
- h("path", {
1300
- fill: e.$slots.pattern ? `url(#pattern_${j.value}_${t.uid})` : F.value.style.chart.backgroundColor,
1301
- stroke: "none",
1302
- "stroke-linecap": "round",
1303
- d: F.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
1304
- style: y({ opacity: F.value.style.chart.areas.opacity })
1305
- }, null, 12, ct),
1306
- h("path", {
1307
- fill: "none",
1308
- stroke: F.value.style.chart.areas.stroke.useSerieColor ? t.color : F.value.style.chart.areas.stroke.color,
1309
- "stroke-width": F.value.style.chart.areas.strokeWidth,
1310
- d: F.value.style.chart.areas.smooth ? t.smoothPathRidge : t.straightPathRidge,
1311
- "stroke-linecap": "round",
1312
- "stroke-linejoin": "round",
1313
- class: ze({ "vue-ui-ridgeline-animate": F.value.useCssAnimation && !T(L) }),
1314
- style: y({
1315
- strokeDasharray: t.pathLength,
1316
- strokeDashoffset: F.value.useCssAnimation ? t.pathLength : 0
1317
- })
1318
- }, null, 14, lt),
1319
- h("path", {
1320
- fill: F.value.style.chart.areas.useGradient ? F.value.style.chart.areas.useCommonColor ? `url(#gradient-${t.id}-${j.value})` : `url(#gradient-single-${j.value}-${t.uid})` : t.color,
1321
- stroke: "none",
1322
- d: F.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
1323
- "stroke-linecap": "round",
1324
- "stroke-linejoin": "round",
1325
- class: ze({ "vue-ui-ridgeline-animate": F.value.useCssAnimation && !T(L) }),
1326
- style: y({
1327
- strokeDasharray: t.pathLength,
1328
- strokeDashoffset: F.value.useCssAnimation ? t.pathLength : 0
1329
- })
1330
- }, null, 14, ut),
1331
- F.value.style.chart.zeroLine.show ? (b(), m("path", {
1332
- key: 1,
1333
- stroke: F.value.style.chart.zeroLine.useSerieColor ? t.color : F.value.style.chart.zeroLine.stroke,
1334
- "stroke-dasharray": F.value.style.chart.zeroLine.strokeDasharray,
1335
- "stroke-width": F.value.style.chart.zeroLine.strokeWidth,
1336
- d: t.zeroPath,
1337
- "stroke-linecap": "round"
1338
- }, null, 8, dt)) : p("", !0),
1339
- F.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", {
1340
- key: 0,
1341
- x1: e.x,
1342
- y1: e.y,
1343
- x2: e.x,
1344
- y2: e.zero,
1345
- stroke: F.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? T(ue)(t.color) : F.value.style.chart.areas.maxPoint.stroke,
1346
- "stroke-width": F.value.style.chart.areas.maxPoint.strokeWidth,
1347
- "stroke-linecap": "round",
1348
- "stroke-dasharray": F.value.style.chart.areas.maxPoint.strokeDasharray
1349
- }, null, 8, ft)) : p("", !0)], 64))), 256)) : p("", !0),
1350
- t.plots.length === 1 ? (b(), m("circle", {
1351
- key: 3,
1352
- cx: t.plots[0].x,
1353
- cy: t.plots[0].y,
1354
- stroke: F.value.style.chart.selector.dot.stroke,
1355
- "stroke-width": F.value.style.chart.selector.dot.strokeWidth,
1356
- r: F.value.style.chart.selector.dot.radius,
1357
- fill: F.value.style.chart.selector.dot.useDatapointColor ? t.color : F.value.style.chart.selector.dot.fill,
1358
- style: { pointerEvents: "none" }
1359
- }, null, 8, pt)) : p("", !0)
1360
- ]))), 128)), h("text", {
1361
- x: t.label.x,
1362
- y: t.label.y,
1363
- "text-anchor": "end",
1364
- "font-size": F.value.style.chart.yAxis.labels.fontSize,
1365
- "font-weight": F.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
1366
- fill: F.value.style.chart.yAxis.labels.color,
1367
- style: y({ cursor: F.value.style.chart.dialog.show && I.value ? "pointer" : "default" }),
1368
- "text-decoration": F.value.style.chart.dialog.show && (Wn.value === n || N.value && t.uid === N.value.uid || P.value === n) ? "underline" : "",
1369
- onMouseenter: (e) => Gn(n),
1370
- onMouseleave: Kn,
1371
- onClick: (e) => Un(t)
1372
- }, w(t.name), 45, mt)]))), 128)),
1373
- F.value.style.chart.xAxis.labels.values.length ? (b(), m("g", {
1374
- key: 0,
1375
- ref_key: "timeLabelsEls",
1376
- ref: Zt
1377
- }, [(b(!0), m(u, null, S(K.value, (t, n) => C(e.$slots, "time-label", Le({ ref_for: !0 }, {
1378
- show: t && !F.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !F.value.style.chart.xAxis.labels.showOnlyAtModulo || t && F.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (n === 0 || n === K.value.length - 1) || t && M.value && M.value.index === n || t && !F.value.style.chart.xAxis.labels.showOnlyFirstAndLast && F.value.style.chart.xAxis.labels.showOnlyAtModulo && n % Math.floor(K.value.length / F.value.style.chart.xAxis.labels.modulo) === 0,
1379
- fontSize: F.value.style.chart.xAxis.labels.fontSize,
1380
- content: t.label,
1381
- textAnchor: F.value.style.chart.xAxis.labels.rotation > 0 ? "start" : F.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1382
- fill: F.value.style.chart.xAxis.labels.color,
1383
- transform: `translate(${t.selectorX}, ${W.value.top + t.height + F.value.style.chart.xAxis.labels.offsetY}), rotate(${F.value.style.chart.xAxis.labels.rotation})`,
1384
- x: t.selectorX,
1385
- y: W.value.bottom + F.value.style.chart.xAxis.labels.offsetY
1386
- }), () => [t && !F.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !F.value.style.chart.xAxis.labels.showOnlyAtModulo || t && F.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (n === 0 || n === K.value.length - 1) || t && M.value && M.value.index === n || t && !F.value.style.chart.xAxis.labels.showOnlyFirstAndLast && F.value.style.chart.xAxis.labels.showOnlyAtModulo && n % Math.floor(K.value.length / F.value.style.chart.xAxis.labels.modulo) === 0 ? (b(), m("g", ht, [String(t.label).includes("\n") ? (b(), m("text", {
1387
- key: 1,
1388
- class: "vue-ui-ridgeline-x-axis-label",
1389
- "font-size": F.value.style.chart.xAxis.labels.fontSize,
1390
- fill: F.value.style.chart.xAxis.labels.color,
1391
- "font-weight": F.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
1392
- transform: `translate(${t.selectorX}, ${W.value.bottom + F.value.style.chart.xAxis.labels.offsetY}), rotate(${F.value.style.chart.xAxis.labels.rotation})`,
1393
- "text-anchor": F.value.style.chart.xAxis.labels.rotation > 0 ? "start" : F.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1394
- style: y({ opacity: M.value ? M.value.index === n ? 1 : .2 : 1 }),
1395
- innerHTML: T(i)({
1396
- content: String(t.label),
1397
- fontSize: F.value.style.chart.xAxis.labels.fontSize,
1398
- fill: F.value.style.chart.xAxis.labels.color,
1399
- x: 0,
1400
- y: 0
1401
- })
1402
- }, null, 12, _t)) : (b(), m("text", {
1403
- key: 0,
1404
- class: "vue-ui-ridgeline-x-axis-label",
1405
- "font-size": F.value.style.chart.xAxis.labels.fontSize,
1406
- fill: F.value.style.chart.xAxis.labels.color,
1407
- "font-weight": F.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
1408
- transform: `translate(${t.selectorX}, ${W.value.bottom + F.value.style.chart.xAxis.labels.offsetY}), rotate(${F.value.style.chart.xAxis.labels.rotation})`,
1409
- "text-anchor": F.value.style.chart.xAxis.labels.rotation > 0 ? "start" : F.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1410
- style: y({ opacity: M.value ? M.value.index === n ? 1 : .2 : 1 })
1411
- }, w(t.label), 13, gt))])) : p("", !0)], !0)), 256))], 512)) : p("", !0),
1412
- h("g", null, [
1413
- (b(!0), m(u, null, S(K.value, (e, t) => (b(), m("rect", {
1414
- x: e.x,
1415
- y: e.y,
1416
- width: e.width < 0 ? .1 : e.width,
1417
- height: e.height < 0 ? .1 : e.height,
1418
- fill: "transparent",
1419
- onMouseenter: (t) => Mn(e),
1420
- onMouseleave: (t) => Nn(e),
1421
- onClick: () => Pn(e)
1422
- }, null, 40, vt))), 256)),
1423
- F.value.style.chart.selector.show && M.value ? (b(), m("line", {
1424
- key: 0,
1425
- x1: M.value.selectorX,
1426
- x2: M.value.selectorX,
1427
- y1: M.value.y,
1428
- y2: M.value.y + M.value.height - z.value / 2,
1429
- stroke: F.value.style.chart.selector.stroke,
1430
- "stroke-width": F.value.style.chart.selector.strokeWidth,
1431
- "stroke-dasharray": F.value.style.chart.selector.strokeDasharray,
1432
- "stroke-linecap": "round",
1433
- style: { pointerEvents: "none" }
1434
- }, null, 8, yt)) : p("", !0),
1435
- M.value ? (b(!0), m(u, { key: 1 }, S(q.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", {
1436
- key: 0,
1437
- cx: t.x,
1438
- cy: t.y,
1439
- stroke: F.value.style.chart.selector.dot.stroke,
1440
- "stroke-width": F.value.style.chart.selector.dot.strokeWidth,
1441
- r: F.value.style.chart.selector.dot.radius,
1442
- fill: F.value.style.chart.selector.dot.useDatapointColor ? e.color : F.value.style.chart.selector.dot.fill,
1443
- style: { pointerEvents: "none" }
1444
- }, null, 8, bt)) : p("", !0), M.value && M.value.index === n ? (b(), m("text", {
1445
- key: 1,
1446
- x: In(t.x, T(l)(F.value.style.chart.selector.labels.formatter, t.value, T(le)({
1447
- p: F.value.style.chart.xAxis.labels.prefix,
1448
- v: t.value,
1449
- s: F.value.style.chart.xAxis.labels.suffix,
1450
- r: F.value.style.chart.selector.labels.rounding
1451
- })), F.value.style.chart.selector.labels.fontSize) ? t.x - F.value.style.chart.selector.labels.fontSize / 2 : t.x + F.value.style.chart.selector.labels.fontSize / 2,
1452
- y: t.y + F.value.style.chart.selector.labels.fontSize / 3,
1453
- "text-anchor": In(t.x, T(l)(F.value.style.chart.selector.labels.formatter, t.value, T(le)({
1454
- p: F.value.style.chart.xAxis.labels.prefix,
1455
- v: t.value,
1456
- s: F.value.style.chart.xAxis.labels.suffix,
1457
- r: F.value.style.chart.selector.labels.rounding
1458
- })), F.value.style.chart.selector.labels.fontSize) ? "end" : "start",
1459
- "font-size": F.value.style.chart.selector.labels.fontSize,
1460
- fill: F.value.style.chart.selector.labels.color,
1461
- style: { pointerEvents: "none" }
1462
- }, w(T(l)(F.value.style.chart.selector.labels.formatter, t.value, T(le)({
1463
- p: F.value.style.chart.xAxis.labels.prefix,
1464
- v: t.value,
1465
- s: F.value.style.chart.xAxis.labels.suffix,
1466
- r: F.value.style.chart.selector.labels.rounding
1467
- }))), 9, xt)) : p("", !0)], 64))), 256))], 64))), 256))], 64))), 256)) : p("", !0)
1468
- ]),
1469
- C(e.$slots, "svg", { svg: {
1470
- ...U.value,
1471
- drawingArea: W.value,
1472
- isPrintingImg: T(fn) || T(pn) || en.value,
1473
- isPrintingSvg: tn.value
1474
- } }, void 0, !0)
1475
- ], 46, Xe)), e.$slots.hint ? (b(), m("div", St, [C(e.$slots, "hint", v(_({
1476
- hint: F.value.a11y.translations.keyboardNavigation,
1477
- isVisible: nn.value
1478
- })), void 0, !0)])) : p("", !0)]),
1479
- e.$slots.watermark ? (b(), m("div", Ct, [C(e.$slots, "watermark", v(_({ isPrinting: T(fn) || T(pn) || en.value || tn.value })), void 0, !0)])) : p("", !0),
1480
- h("div", {
1481
- ref_key: "chartLegend",
1482
- ref: Bt
1483
- }, [C(e.$slots, "legend", { legend: Y.value }, () => [F.value.style.chart.legend.show ? (b(), f(Me, {
1484
- key: `legend_${Gt.value}`,
1485
- legendSet: Y.value,
1486
- config: zn.value,
1487
- isCursorPointer: I.value,
1488
- onClickMarker: t[0] ||= ({ legend: e }) => bn(e.id)
1489
- }, Pe({
1490
- item: E(({ legend: e }) => [T(L) ? p("", !0) : (b(), m("div", {
1491
- key: 0,
1492
- style: y(`opacity:${J.value.includes(e.id) ? .5 : 1}`),
1493
- onClick: (t) => e.segregate()
1494
- }, w(e.name), 13, wt))]),
1495
- legendToggle: E(() => [Y.value.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !T(L) ? (b(), f(Oe, {
1496
- key: 0,
1497
- backgroundColor: F.value.style.chart.legend.selectAllToggle.backgroundColor,
1498
- color: F.value.style.chart.legend.selectAllToggle.color,
1499
- fontSize: F.value.style.chart.legend.fontSize,
1500
- checked: J.value.length > 0,
1501
- isCursorPointer: I.value,
1502
- onToggle: yn
1503
- }, null, 8, [
1504
- "backgroundColor",
1505
- "color",
1506
- "fontSize",
1507
- "checked",
1508
- "isCursorPointer"
1509
- ])) : p("", !0)]),
1510
- _: 2
1511
- }, [e.$slots.pattern ? {
1512
- name: "legend-pattern",
1513
- fn: E(({ legend: e, index: t }) => [Ie(we, {
1514
- shape: e.shape,
1515
- radius: 30,
1516
- stroke: "none",
1517
- plot: {
1518
- x: 30,
1519
- y: 30
1520
- },
1521
- fill: `url(#pattern_${j.value}_${t})`
1522
- }, null, 8, ["shape", "fill"])]),
1523
- key: "0"
1524
- } : void 0]), 1032, [
1525
- "legendSet",
1526
- "config",
1527
- "isCursorPointer"
1528
- ])) : p("", !0)], !0)], 512),
1529
- e.$slots.source ? (b(), m("div", {
1530
- key: 6,
1531
- ref_key: "source",
1532
- ref: Vt,
1533
- dir: "auto"
1534
- }, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1535
- Lt.value && F.value.userOptions.buttons.table ? (b(), f(Ve(Q.value.component), Le({ key: 7 }, Q.value.props, {
1536
- ref_key: "tableUnit",
1537
- ref: Qt,
1538
- onClose: er
1539
- }), Pe({
1540
- content: E(() => [(b(), f(T(kt), {
1541
- key: `table_${Wt.value}`,
1542
- colNames: Z.value.colNames,
1543
- head: Z.value.head,
1544
- body: Z.value.body,
1545
- config: Z.value.config,
1546
- title: F.value.table.useDialog ? "" : Q.value.title,
1547
- withCloseButton: !F.value.table.useDialog,
1548
- isCursorPointer: I.value,
1549
- onClose: er
1550
- }, {
1551
- th: E(({ th: e }) => [h("div", { innerHTML: e }, null, 8, Tt)]),
1552
- td: E(({ td: e }) => [Fe(w(e.name ? e.name : T(l)(F.value.style.chart.selector.labels.formatter, e, T(le)({
1553
- p: F.value.style.chart.xAxis.labels.prefix,
1554
- v: e,
1555
- s: F.value.style.chart.xAxis.labels.suffix,
1556
- r: F.value.table.td.roundingValue
1557
- }))), 1)]),
1558
- _: 1
1559
- }, 8, [
1560
- "colNames",
1561
- "head",
1562
- "body",
1563
- "config",
1564
- "title",
1565
- "withCloseButton",
1566
- "isCursorPointer"
1567
- ]))]),
1568
- _: 2
1569
- }, [F.value.table.useDialog ? {
1570
- name: "title",
1571
- fn: E(() => [Fe(w(Q.value.title), 1)]),
1572
- key: "0"
1573
- } : void 0, F.value.table.useDialog ? {
1574
- name: "actions",
1575
- fn: E(() => [h("button", {
1576
- tabindex: "0",
1577
- class: "vue-ui-user-options-button",
1578
- onClick: t[1] ||= (e) => Zn(F.value.userOptions.callbacks.csv),
1579
- style: y({ cursor: I.value ? "pointer" : "default" })
1580
- }, [Ie(T(Dt), {
1581
- name: "fileCsv",
1582
- stroke: Q.value.props.color
1583
- }, null, 8, ["stroke"])], 4)]),
1584
- key: "1"
1585
- } : void 0]), 1040)) : p("", !0),
1586
- F.value.style.chart.dialog.show ? (b(), f(T(Nt), {
1587
- key: 8,
1588
- ref_key: "dialog",
1589
- ref: Yt,
1590
- onClose: t[2] ||= (e) => N.value = null,
1591
- backgroundColor: F.value.style.chart.dialog.backgroundColor,
1592
- color: F.value.style.chart.dialog.color,
1593
- headerBg: F.value.style.chart.dialog.header.backgroundColor,
1594
- headerColor: F.value.style.chart.dialog.header.color,
1595
- isFullscreen: X.value,
1596
- fullscreenParent: O.value,
1597
- isCursorPointer: I.value,
1598
- withPadding: ""
1599
- }, {
1600
- title: E(() => [Fe(w(N.value.name), 1)]),
1601
- content: E(() => [N.value ? (b(), f(T(Et), {
1602
- key: 0,
1603
- config: Vn.value,
1604
- dataset: Hn.value,
1605
- onCopyAlt: sr
1606
- }, null, 8, ["config", "dataset"])) : p("", !0)]),
1607
- _: 1
1608
- }, 8, [
1609
- "backgroundColor",
1610
- "color",
1611
- "headerBg",
1612
- "headerColor",
1613
- "isFullscreen",
1614
- "fullscreenParent",
1615
- "isCursorPointer"
1616
- ])) : p("", !0),
1617
- C(e.$slots, "skeleton", {}, () => [T(L) ? (b(), f(_e, { key: 0 })) : p("", !0)], !0)
1618
- ], 46, qe));
1619
- }
1620
- }, [["__scopeId", "data-v-ca7f8c0d"]]);
1621
- //#endregion
1622
- export { Ke as n, Et as t };