vue-data-ui 3.22.13 → 3.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
  4. package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
  5. package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
  6. package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
  7. package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
  8. package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
  9. package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
  10. package/dist/HillActions-BWhxHlrj.js +187 -0
  11. package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
  13. package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
  14. package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
  15. package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
  16. package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
  17. package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
  18. package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
  19. package/dist/Title-BODtwViI.js +87 -0
  20. package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
  21. package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
  93. package/dist/exposedLib-DWLRqRhv.js +25 -0
  94. package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
  95. package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
  96. package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
  97. package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
  98. package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
  99. package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +493 -0
  105. package/dist/types/vue-ui-hill.d.ts +90 -0
  106. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  107. package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
  108. package/dist/useHints-Dq_w2E8B.js +66 -0
  109. package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
  110. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
  111. package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
  112. package/dist/useTransitions-g_zBREk2.js +39 -0
  113. package/dist/utils.js +14 -14
  114. package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
  115. package/dist/vue-data-ui.js +77 -76
  116. package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
  117. package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
  119. package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
  120. package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
  121. package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
  122. package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
  123. package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
  124. package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
  125. package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
  126. package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
  127. package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
  128. package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
  129. package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
  130. package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
  131. package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
  132. package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
  133. package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
  134. package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
  135. package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
  136. package/dist/vue-ui-funnel-CjYosIik.js +797 -0
  137. package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
  138. package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
  139. package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
  140. package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
  141. package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
  142. package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
  143. package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
  144. package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
  145. package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
  146. package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
  147. package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
  148. package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
  149. package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
  150. package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
  151. package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
  152. package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
  153. package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
  154. package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
  155. package/dist/vue-ui-rating--K7rX2an.js +360 -0
  156. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
  157. package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
  158. package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
  159. package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
  160. package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
  161. package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
  162. package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
  163. package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
  164. package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
  165. package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
  166. package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
  167. package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
  168. package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
  169. package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
  170. package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
  171. package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
  172. package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
  173. package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
  174. package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
  175. package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
  176. package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
  177. package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
  178. package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
  179. package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
  180. package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
  181. package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
  182. package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
  183. package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
  184. package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
  185. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  186. package/package.json +2 -2
  187. package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
  188. package/dist/Title-BuPs74IB.js +0 -87
  189. package/dist/exposedLib-Ciw6TGtP.js +0 -25
  190. package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
  191. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  192. package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
  193. package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
  194. package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
  195. package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
  196. package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
  197. package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
  198. package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
  199. package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
  200. package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
  201. package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
  202. package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
  203. package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
  204. package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
  205. package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
  206. package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
  207. package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
  208. package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
  209. package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
  210. package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
  211. package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
  212. package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
  213. package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
  214. package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
  215. package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
  216. package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
  217. package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
  218. package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
  219. package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
  220. package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
  221. package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
  222. package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
  223. package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
  224. package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
@@ -1,1689 +0,0 @@
1
- import { B as e, F as t, Jt as n, K as r, N as i, St as a, V as o, bt as ee, r as te, t as ne, z as re } from "./lib-CFm_J26b.js";
2
- import { t as s } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { i as ie, l as c, t as ae } from "./useResponsive-ZtArZtUf.js";
4
- import { t as oe } from "./BaseIcon-CP5RWnqt.js";
5
- import { t as se } from "./DefGrad-DVBqDjhO.js";
6
- import { Fragment as l, computed as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as ce, guardReactiveProps as le, mergeProps as ue, nextTick as de, normalizeClass as fe, normalizeProps as pe, normalizeStyle as m, onBeforeUnmount as me, onMounted as he, onUpdated as ge, openBlock as h, ref as g, renderList as _, renderSlot as _e, toDisplayString as ve, unref as ye, useCssVars as be, vModelText as xe, watch as v, withDirectives as Se, withKeys as Ce, withModifiers as we } from "vue";
7
- //#region src/atoms/SlicerPreview.vue
8
- var Te = ["data-minimap"], Ee = {
9
- class: "vue-data-ui-slicer-labels",
10
- style: {
11
- position: "relative",
12
- "z-index": "1",
13
- "pointer-events": "none"
14
- }
15
- }, De = {
16
- key: 0,
17
- style: {
18
- width: "100%",
19
- position: "relative",
20
- "pointer-events": "all"
21
- }
22
- }, Oe = {
23
- key: 0,
24
- class: "minimap",
25
- style: { width: "100%" }
26
- }, ke = ["xmlns", "viewBox"], Ae = ["id"], je = [
27
- "x",
28
- "width",
29
- "height"
30
- ], Me = [
31
- "width",
32
- "height",
33
- "stroke"
34
- ], Ne = ["d", "stroke"], Pe = ["d", "fill"], Fe = [
35
- "x",
36
- "y",
37
- "width",
38
- "height",
39
- "fill"
40
- ], Ie = [
41
- "d",
42
- "stroke",
43
- "stroke-dasharray"
44
- ], Le = [
45
- "cx",
46
- "cy",
47
- "fill",
48
- "stroke"
49
- ], Re = [
50
- "cx",
51
- "cy",
52
- "fill",
53
- "stroke"
54
- ], ze = [
55
- "x",
56
- "width",
57
- "height",
58
- "fill",
59
- "rx"
60
- ], Be = [
61
- "x",
62
- "width",
63
- "height",
64
- "rx",
65
- "fill"
66
- ], Ve = [
67
- "x",
68
- "width",
69
- "height",
70
- "fill",
71
- "rx",
72
- "aria-valuemin",
73
- "aria-valuemax",
74
- "aria-valuenow",
75
- "aria-valuetext"
76
- ], He = [
77
- "x2",
78
- "y1",
79
- "y2",
80
- "stroke"
81
- ], Ue = { key: "merged-tree" }, We = ["d", "stroke"], Ge = [
82
- "cx",
83
- "cy",
84
- "stroke",
85
- "fill"
86
- ], Ke = [
87
- "cx",
88
- "cy",
89
- "stroke",
90
- "fill"
91
- ], qe = { key: "split-tree" }, Je = [
92
- "x",
93
- "y",
94
- "width",
95
- "height",
96
- "fill"
97
- ], Ye = [
98
- "d",
99
- "stroke",
100
- "stroke-dasharray"
101
- ], Xe = [
102
- "cx",
103
- "cy",
104
- "fill",
105
- "stroke"
106
- ], Ze = ["width", "height"], Qe = [
107
- "x",
108
- "width",
109
- "height",
110
- "fill",
111
- "stroke",
112
- "stroke-width"
113
- ], $e = ["transform"], et = ["width", "height"], tt = ["fill", "stroke"], nt = ["stroke"], rt = ["fill"], it = [
114
- "x",
115
- "width",
116
- "height",
117
- "fill",
118
- "stroke",
119
- "stroke-width"
120
- ], at = ["transform"], ot = ["width", "height"], st = ["fill", "stroke"], ct = ["stroke"], lt = ["fill"], ut = {
121
- key: "merged-tree",
122
- style: { "pointer-events": "none" }
123
- }, dt = [
124
- "cx",
125
- "cy",
126
- "stroke",
127
- "fill"
128
- ], ft = [
129
- "cx",
130
- "cy",
131
- "fill"
132
- ], pt = [
133
- "cx",
134
- "cy",
135
- "stroke",
136
- "fill"
137
- ], mt = [
138
- "cx",
139
- "cy",
140
- "fill"
141
- ], ht = {
142
- key: 1,
143
- style: { "pointer-events": "none" }
144
- }, gt = [
145
- "d",
146
- "stroke",
147
- "stroke-dasharray"
148
- ], _t = [
149
- "cx",
150
- "cy",
151
- "fill",
152
- "stroke"
153
- ], vt = [
154
- "cx",
155
- "cy",
156
- "stroke",
157
- "fill"
158
- ], yt = [
159
- "cx",
160
- "cy",
161
- "fill"
162
- ], bt = [
163
- "cx",
164
- "cy",
165
- "stroke",
166
- "fill"
167
- ], xt = [
168
- "cx",
169
- "cy",
170
- "fill"
171
- ], St = [
172
- "cx",
173
- "cy",
174
- "fill",
175
- "stroke"
176
- ], Ct = [
177
- "step",
178
- "min",
179
- "max",
180
- "tabindex"
181
- ], wt = [
182
- "step",
183
- "min",
184
- "max",
185
- "tabindex"
186
- ], Tt = {
187
- key: 3,
188
- class: "minimap-handle-overlay"
189
- }, Et = ["xmlns", "viewBox"], Dt = [
190
- "x",
191
- "width",
192
- "height"
193
- ], Ot = [
194
- "x",
195
- "width",
196
- "height"
197
- ], kt = 48, At = /*#__PURE__*/ s({
198
- __name: "SlicerPreview",
199
- props: {
200
- uuid: {
201
- type: String,
202
- default: ""
203
- },
204
- immediate: {
205
- type: Boolean,
206
- default: !0
207
- },
208
- background: {
209
- type: String,
210
- default: "#FFFFFF"
211
- },
212
- borderColor: {
213
- type: String,
214
- default: "#FFFFFF"
215
- },
216
- fontSize: {
217
- type: Number,
218
- default: 14
219
- },
220
- labelLeft: {
221
- type: [String, Number],
222
- default: ""
223
- },
224
- labelRight: {
225
- type: [String, Number],
226
- default: ""
227
- },
228
- textColor: {
229
- type: String,
230
- default: "#1A1A1A"
231
- },
232
- inputColor: {
233
- type: String,
234
- default: "#1A1A1A"
235
- },
236
- max: {
237
- type: Number,
238
- default: 0
239
- },
240
- min: {
241
- type: Number,
242
- default: 0
243
- },
244
- selectColor: {
245
- type: String,
246
- default: "#4A4A4A"
247
- },
248
- useResetSlot: {
249
- type: Boolean,
250
- default: !1
251
- },
252
- valueStart: {
253
- type: [Number, String],
254
- default: 0
255
- },
256
- valueEnd: {
257
- type: [Number, String],
258
- default: 0
259
- },
260
- minimap: {
261
- type: Array,
262
- default: []
263
- },
264
- smoothMinimap: {
265
- type: Boolean,
266
- default: !1
267
- },
268
- minimapSelectedColor: {
269
- type: String,
270
- default: "#1f77b4"
271
- },
272
- minimapSelectionRadius: {
273
- type: Number,
274
- default: 12
275
- },
276
- minimapLineColor: {
277
- type: String,
278
- default: "#2D353C"
279
- },
280
- minimapSelectedColorOpacity: {
281
- type: Number,
282
- default: .2
283
- },
284
- minimapSelectedIndex: {
285
- type: Number,
286
- default: null
287
- },
288
- minimapIndicatorColor: {
289
- type: String,
290
- default: "#2D353C"
291
- },
292
- refreshStartPoint: {
293
- type: Number,
294
- default: 0
295
- },
296
- refreshEndPoint: {
297
- type: Number,
298
- default: null
299
- },
300
- enableRangeHandles: {
301
- type: Boolean,
302
- default: !1
303
- },
304
- enableSelectionDrag: {
305
- type: Boolean,
306
- default: !0
307
- },
308
- verticalHandles: {
309
- type: Boolean,
310
- default: !1
311
- },
312
- timeLabels: { type: Array },
313
- isPreview: {
314
- type: Boolean,
315
- default: !1
316
- },
317
- preciseLabels: {
318
- type: Array,
319
- default() {
320
- return [];
321
- }
322
- },
323
- usePreciseLabels: {
324
- type: Boolean,
325
- default: !1
326
- },
327
- selectedSeries: { type: Object },
328
- customFormat: { type: [Function, null] },
329
- minimapCompact: {
330
- type: Boolean,
331
- default: !1
332
- },
333
- allMinimaps: {
334
- type: Array,
335
- default() {
336
- return [];
337
- }
338
- },
339
- minimapMerged: {
340
- type: Boolean,
341
- default: !1
342
- },
343
- minimapFrameColor: {
344
- type: String,
345
- default: "#e1e5e8"
346
- },
347
- cutNullValues: {
348
- type: Boolean,
349
- default: !1
350
- },
351
- focusOnDrag: {
352
- type: Boolean,
353
- default: !1
354
- },
355
- focusRangeRatio: {
356
- type: Number,
357
- default: .1
358
- },
359
- minScale: {
360
- type: Number,
361
- default: null
362
- },
363
- maxScale: {
364
- type: Number,
365
- default: null
366
- },
367
- forceZeroCenter: {
368
- type: Boolean,
369
- default: !1
370
- },
371
- maxWidth: {
372
- type: Number,
373
- default: null
374
- },
375
- isCursorPointer: {
376
- type: Boolean,
377
- default: !1
378
- },
379
- additionalMinimapHeight: {
380
- type: Number,
381
- default: 0
382
- },
383
- handleType: {
384
- type: String,
385
- default: ""
386
- },
387
- handleWidth: {
388
- type: Number,
389
- default: 20
390
- },
391
- handleBorderWidth: {
392
- type: Number,
393
- default: 1
394
- },
395
- handleIconColor: {
396
- type: String,
397
- default: null
398
- },
399
- handleBorderColor: {
400
- type: String,
401
- default: null
402
- },
403
- handleFill: {
404
- type: String,
405
- default: null
406
- },
407
- precision: {
408
- type: Number,
409
- default: 0
410
- },
411
- useValueRange: {
412
- type: Boolean,
413
- default: !1
414
- }
415
- },
416
- emits: [
417
- "futureStart",
418
- "futureEnd",
419
- "update:start",
420
- "update:end",
421
- "reset",
422
- "trapMouse",
423
- "trapMouseValue"
424
- ],
425
- setup(s, { expose: At, emit: jt }) {
426
- be((e) => ({
427
- v387ab4e8: an.value,
428
- v7bb82e00: N.value,
429
- v42303b71: sn.value,
430
- v5bed6f30: s.selectColor,
431
- v99127c84: on.value,
432
- v27b98ef0: y.additionalMinimapHeight
433
- }));
434
- let y = s;
435
- function Mt(e) {
436
- let t = Number(e) || 0;
437
- return y.precision <= 0 ? Math.round(t) : Number(t.toFixed(y.precision));
438
- }
439
- let b = g(null), x = g(y.min), S = g(y.max), C = u(() => !!y.allMinimaps.length), Nt = g(r()), w = g(!1), T = u(() => C.value && y.minimapCompact), E = g(null), Pt = g(!1), Ft = g(0), It = g(0), Lt = g(null), Rt = g(!1), zt = u(() => E.value !== null), Bt = u(() => y.useValueRange ? S.value : S.value - 1), Vt = u(() => Math.max(1, Number(y.max) - Number(y.min)));
440
- function Ht(e) {
441
- return (Number(e) - Number(y.min)) / Vt.value * 100;
442
- }
443
- function Ut(e) {
444
- return F.value.width * (Ht(e) / 100);
445
- }
446
- function Wt(e) {
447
- let t = Math.min(1, Math.max(0, e / Math.max(1, F.value.width)));
448
- return Mt(Number(y.min) + Vt.value * t);
449
- }
450
- function Gt(e) {
451
- let t = y.useValueRange ? e?.y : e;
452
- return a(t) ? Number(t) : null;
453
- }
454
- function Kt(e, t) {
455
- return y.useValueRange ? Number(e?.x) : t + Number(y.min);
456
- }
457
- function qt(e, t) {
458
- return y.useValueRange ? Ut(Kt(e, t)) : B.value * t + (y.minimapCompact ? 0 : B.value / 2);
459
- }
460
- let Jt = u(() => Math.min(40, Math.max(20, y.handleWidth))), Yt = g(0), Xt = c((e) => j("futureStart", e), 0), Zt = c((e) => j("futureEnd", e), 0), D = u(() => y.precision > 0 ? 1 / 10 ** y.precision : 1), O = u({
461
- get: () => x.value,
462
- set(e) {
463
- let t = Math.min(Number(e), Number(S.value) - D.value);
464
- t !== x.value && (x.value = t, Vn.value && (Vn.value.value = String(t)), y.immediate ? j("update:start", Number(t)) : w.value && Xt(t));
465
- }
466
- }), k = u({
467
- get: () => S.value,
468
- set(e) {
469
- let t = Math.max(Number(e), Number(x.value) + D.value);
470
- t !== S.value && (S.value = t, Hn.value && (Hn.value.value = String(t)), y.immediate ? j("update:end", Number(t)) : w.value && Zt(t));
471
- }
472
- });
473
- function A() {
474
- clearTimeout(null), y.immediate || (j("update:start", Number(x.value)), j("update:end", Number(S.value))), w.value = !1;
475
- }
476
- let Qt = u(() => y.refreshEndPoint === null ? y.max : y.refreshEndPoint), j = jt, $t = u(() => {
477
- if (y.useValueRange) return Ht(x.value);
478
- if (T.value) {
479
- let e = Math.max(1, L.value - 1);
480
- return Mn.value / e * 100;
481
- }
482
- let e = Math.max(1, y.max - y.min);
483
- return (x.value - y.min) / e * 100;
484
- }), en = u(() => {
485
- if (y.useValueRange) return Ht(S.value);
486
- if (T.value) {
487
- let e = Math.max(1, L.value - 1);
488
- return Nn.value / e * 100;
489
- }
490
- let e = Math.max(1, y.max - y.min);
491
- return (S.value - y.min) / e * 100;
492
- }), tn = u(() => ($t.value + en.value) / 2), nn = u(() => {
493
- if (!b.value) return !1;
494
- let e = Math.max(1, y.max - y.min);
495
- return b.value.getBoundingClientRect().width * ((x.value - y.min) / e) - gr.value / 2 < 0;
496
- }), rn = u(() => {
497
- if (!b.value) return !1;
498
- let e = Math.max(1, y.max - y.min), t = b.value.getBoundingClientRect().width;
499
- return t * ((S.value - y.min) / e) + _r.value / 2 > t;
500
- }), M = u(() => {
501
- let e = rn.value ? `calc(${tn.value}% - ${Cr.value.width}px)` : nn.value ? `calc(${tn.value}% - 8px)` : `calc(${tn.value}% - ${Cr.value.width / 2}px)`;
502
- return {
503
- left: `${$t.value}%`,
504
- width: `${Math.max(0, en.value - $t.value)}%`,
505
- background: y.selectColor,
506
- tooltipLeft: `calc(${$t.value}% - ${nn.value ? 9 : gr.value / 2}px)`,
507
- tooltipRight: `calc(${en.value}% - ${rn.value ? _r.value - 9 : _r.value / 2}px)`,
508
- tooltipCenter: e,
509
- arrowLeft: !nn.value,
510
- arrowRight: !rn.value
511
- };
512
- }), an = u(() => y.inputColor), on = u(() => y.background), sn = u(() => `${y.selectColor}33`), N = u(() => y.borderColor), cn = u(() => Number(y.max) > Number(y.min));
513
- function ln() {
514
- j("reset");
515
- }
516
- v(() => y.min, (e) => {
517
- Number(x.value) < Number(e) && (x.value = Number(e)), Number(S.value) < Number(e) && (S.value = Number(e));
518
- }), v(() => y.max, (e) => {
519
- Number(x.value) > Number(e) && (x.value = Number(e)), Number(S.value) > Number(e) && (S.value = Number(e));
520
- });
521
- let P = g(null), F = g({
522
- width: 1,
523
- height: 1
524
- }), I = g(null);
525
- he(() => {
526
- if (C.value) {
527
- let e = c(() => {
528
- if (!P.value) return;
529
- let { width: e, height: t } = ae({ chart: P.value }), n = Math.max(0, Math.round(e)), r = Math.max(0, Math.round(t - 47));
530
- (n !== F.value.width || r !== F.value.height) && (F.value.width = n, F.value.height = r + y.additionalMinimapHeight);
531
- }, 0);
532
- I.value = new ResizeObserver(e), I.value.observe(P.value);
533
- }
534
- }), me(() => {
535
- I.value && I.value.disconnect();
536
- });
537
- let L = u(() => Math.max(1, y.max - y.min));
538
- function un(e) {
539
- let t = Math.floor(e - y.min);
540
- return Math.min(Math.max(0, t), L.value);
541
- }
542
- function dn(e) {
543
- let t = Math.ceil(e - y.min);
544
- return Math.min(Math.max(0, t), L.value);
545
- }
546
- let R = u(() => un(x.value)), z = u(() => dn(S.value)), fn = u(() => Math.max(...y.allMinimaps.map((e) => e.series.length))), pn = u(() => C.value && y.minimapCompact ? 40 : 0), mn = u(() => pn.value / 2);
547
- u(() => Math.max(1, F.value.width - mn.value * 2));
548
- let B = u(() => {
549
- if (y.minimapCompact && !y.useValueRange) return F.value.width / Math.max(1, L.value - 1);
550
- let e = Math.max(1, fn.value - +!!y.minimapCompact);
551
- return F.value.width / e;
552
- }), hn = u(() => y.allMinimaps.length ? y.allMinimaps.filter((e) => e.type === "bar" && e.isVisible).length : 0), gn = u(() => B.value / (hn.value || 1) * .8);
553
- function _n(e, t, n) {
554
- let r = gn.value, i = Math.max(1, hn.value), a = fn.value - 1;
555
- return n === 0 ? e + r / 2 * t : n === a ? e - r / 2 * (i - t) : e - i * r / 2 + t * r;
556
- }
557
- function vn(e, t) {
558
- return [0, fn.value - 1].includes(t) ? gn.value / 2 : gn.value;
559
- }
560
- let yn = u(() => {
561
- let e = [];
562
- if (Array.isArray(y.minimap) && y.minimap.length && y.minimapMerged && e.push(...y.minimap.map(Gt).filter(Number.isFinite)), Array.isArray(y.allMinimaps) && y.allMinimaps.length) for (let t of y.allMinimaps) t?.isVisible && Array.isArray(t?.series) && e.push(...t.series.map(Gt).filter(Number.isFinite));
563
- return e.length ? {
564
- min: Math.min(...e),
565
- max: Math.max(...e)
566
- } : {
567
- min: 0,
568
- max: 1
569
- };
570
- }), bn = u(() => {
571
- if (y.minScale == null && y.forceZeroCenter) return null;
572
- let e = Number(y.minScale);
573
- return Number.isFinite(e) ? e : null;
574
- }), xn = u(() => {
575
- if (y.maxScale == null && y.forceZeroCenter) return null;
576
- let e = Number(y.maxScale);
577
- return Number.isFinite(e) ? e : null;
578
- }), Sn = u(() => bn.value !== null && xn.value !== null), Cn = u(() => {
579
- let { min: e, max: t } = yn.value, n = bn.value, r = xn.value, i, a;
580
- return n !== null && r !== null ? (i = Math.min(n, e), a = Math.max(r, t)) : (i = n === null ? e : n, a = r === null ? t : r), Number.isFinite(i) || (i = 0), Number.isFinite(a) || (a = 1), i === a ? a = i + 1 : i > a && ([i, a] = [a, i]), {
581
- min: i,
582
- max: a
583
- };
584
- }), wn = u(() => Cn.value.min), Tn = u(() => Cn.value.max), En = u(() => wn.value < 0 && Tn.value > 0 || Tn.value <= 0 ? wn.value : 0), Dn = (e) => {
585
- let t = Math.max(1, F.value.height);
586
- return kn(wn.value, Tn.value, t, Sn.value)(e);
587
- }, On = u(() => Dn(0));
588
- function kn(e, t, n, r = !1) {
589
- let i = (e, t, n) => Math.max(t, Math.min(n, e)), a = 1e-9, o = Math.max(a, t - e);
590
- if (r) return (t) => n - (t - e) / o * n;
591
- if (t <= 0) {
592
- let t = Math.max(a, 0 - e);
593
- return (r) => n - (r - e) / t * n;
594
- } else if (e >= 0) {
595
- let e = Math.max(a, t - 0);
596
- return (t) => n - (t - 0) / e * n;
597
- } else {
598
- let r = Math.max(a, Math.max(Math.abs(e), Math.abs(t)));
599
- return (e) => (1 - (i(e / r, -1, 1) + 1) / 2) * n;
600
- }
601
- }
602
- function An(n, r = !1, a = !1) {
603
- if (!n || !n.length) return {
604
- fullSet: "",
605
- points: [],
606
- selectionSet: "",
607
- sliced: [],
608
- firstPlot: null,
609
- lastPlot: null,
610
- hasFull: !1,
611
- hasSelection: !1,
612
- fullMarkers: [],
613
- selectionMarkers: [],
614
- dashed: !1
615
- };
616
- let ee = Math.max(1, F.value.height), te = kn(wn.value, Tn.value, ee, Sn.value), ne = n.length, s = Math.min(Math.max(0, R.value), Math.max(0, ne - 1)), ie = Math.min(ne, Math.max(s + 1, z.value)), c = n.map((e, t) => {
617
- let n = Gt(e), r = Number.isFinite(n), i = qt(e, t), a = Sn.value ? ((e, t, n) => Math.max(t, Math.min(n, e)))(0, wn.value, Tn.value) : 0, o = te(a);
618
- return {
619
- x: i,
620
- y: r ? te(n) : NaN,
621
- v: n,
622
- value: r ? n : null,
623
- y0: o,
624
- i: t,
625
- xValue: Kt(e, t)
626
- };
627
- }), ae = (e) => e >= 0 && e < c.length && Number.isFinite(c[e]?.value), oe = c.filter((e) => Number.isFinite(e.value) && !ae(e.i - 1) && !ae(e.i + 1)), se = y.useValueRange ? oe.filter((e) => e.xValue >= Number(x.value) && e.xValue <= Number(S.value)) : oe.filter((e) => e.i >= s && e.i < ie), l = y.useValueRange ? c.filter((e) => e.xValue >= Number(x.value) && e.xValue <= Number(S.value)) : c.slice(s, ie);
628
- return {
629
- fullSet: c.length >= 2 ? a ? re(y.cutNullValues ? c : c.filter((e) => e.value != null)) : y.smoothMinimap || r ? y.cutNullValues ? t(c) : i(c.filter((e) => e.value != null)) : y.cutNullValues ? o(c) : e(c.filter((e) => e.value != null)) : "",
630
- points: c,
631
- selectionSet: l.length >= 2 ? a ? re(y.cutNullValues ? l : l.filter((e) => e.value != null)) : y.smoothMinimap || r ? y.cutNullValues ? t(l) : i(l.filter((e) => e.value != null)) : y.cutNullValues ? o(l) : e(l.filter((e) => e.value != null)) : "",
632
- sliced: l,
633
- firstPlot: y.useValueRange ? l[0] || null : c[s] || null,
634
- lastPlot: y.useValueRange ? l[l.length - 1] || null : c[Math.max(0, ie - 1)] || null,
635
- hasFull: c.length >= 2,
636
- hasSelection: l.length >= 2,
637
- fullMarkers: oe,
638
- selectionMarkers: se
639
- };
640
- }
641
- let V = u(() => y.minimap.length ? An(y.minimap) : []), H = u(() => y.allMinimaps.length ? y.allMinimaps.map((e, t) => {
642
- let n = An(e?.series || [], !!e.smooth, !!e.useStepper), r = e?.id ?? e?.name ?? t;
643
- return {
644
- key: typeof r == "object" ? JSON.stringify(r) : String(r),
645
- color: e?.color,
646
- ...n,
647
- temperatureColors: e?.temperatureColors ?? null,
648
- isVisible: e.isVisible,
649
- type: e.type || void 0,
650
- dashed: e.dashed ?? !1,
651
- useStepper: !!e.useStepper
652
- };
653
- }) : []), U = u(() => {
654
- if (y.useValueRange) {
655
- let e = Ut(x.value), t = Ut(S.value);
656
- return {
657
- x: e,
658
- width: Math.max(0, t - e)
659
- };
660
- }
661
- let e = R.value, t = Math.max(e + 1, z.value);
662
- return {
663
- x: B.value * e + (y.minimapCompact ? 0 : B.value / 2),
664
- width: B.value * (t - e) - B.value
665
- };
666
- }), W = g(y.minimapSelectedIndex), jn = (e) => Math.round(y.min + e), Mn = u({
667
- get() {
668
- return T.value ? R.value : Number(O.value);
669
- },
670
- set(e) {
671
- if (T.value) {
672
- if (y.useValueRange) {
673
- let t = Mt(e);
674
- Gn(Math.min(Math.max(Number(y.min), t), Number(S.value) - D.value));
675
- return;
676
- }
677
- let t = Math.round(+e || 0);
678
- Gn(jn(t));
679
- } else {
680
- let t = Mt(e), n = Number(S.value) - D.value, r = Math.min(Math.max(y.min, t), n);
681
- Vn.value && (Vn.value.valueAsNumber = r), Gn(r);
682
- }
683
- }
684
- }), Nn = u({
685
- get() {
686
- return T.value ? Math.max(R.value, z.value - 1) : Number(k.value);
687
- },
688
- set(e) {
689
- if (T.value) {
690
- if (y.useValueRange) {
691
- let t = Mt(e);
692
- qn(Math.max(Number(x.value) + D.value, Math.min(t, Number(y.max))));
693
- return;
694
- }
695
- let t = Math.round(+e || 0);
696
- qn(jn(t + 1));
697
- } else {
698
- let t = Mt(e), n = Number(x.value) + D.value, r = Math.max(n, Math.min(t, y.max));
699
- Hn.value && (Hn.value.valueAsNumber = r), qn(r);
700
- }
701
- }
702
- }), Pn = 0;
703
- function Fn(e, t) {
704
- if (t === Pn) {
705
- if (y.useValueRange) {
706
- W.value = Number.isFinite(Number(e)) ? Ut(Number(e)) : null;
707
- return;
708
- }
709
- W.value = un(y.valueStart) + e;
710
- }
711
- }
712
- let In = ie(Fn, 60);
713
- v(() => y.minimapSelectedIndex, (e, t) => {
714
- if (Pn += 1, [null, void 0].includes(e)) {
715
- W.value = null;
716
- return;
717
- }
718
- e !== t && In(e, Pn);
719
- }, { immediate: !0 });
720
- function Ln(e) {
721
- if (zt.value) return;
722
- W.value = e;
723
- let t = R.value, n = z.value;
724
- e >= t && e < n && !X.value && j("trapMouse", e - t);
725
- }
726
- function Rn(e) {
727
- let t = Wt(e), n = y.allMinimaps.flatMap((e) => (e.series || []).map((e, n) => ({
728
- point: e,
729
- index: n,
730
- x: Number(e?.x),
731
- distance: Math.abs(Number(e?.x) - t)
732
- }))).filter((e) => Number.isFinite(e.x));
733
- return n.length ? n.reduce((e, t) => t.distance < e.distance ? t : e, n[0]) : null;
734
- }
735
- function zn(e) {
736
- if (!cn.value || zt.value) return;
737
- let t = zr(e.clientX);
738
- if (y.useValueRange) {
739
- let e = Rn(t);
740
- if (!e) {
741
- Bn();
742
- return;
743
- }
744
- W.value = Ut(e.x), j("trapMouse", e.index), j("trapMouseValue", e.x);
745
- return;
746
- }
747
- Ln(Br(t));
748
- }
749
- function Bn() {
750
- W.value = null, !zt.value && (j("trapMouse", null), j("trapMouseValue", null));
751
- }
752
- let Vn = g(null), Hn = g(null);
753
- function Un(e) {
754
- if (typeof e == "object" && e && "target" in e) {
755
- let t = e.target, n = "valueAsNumber" in t ? t.valueAsNumber : +t.value;
756
- return Number.isFinite(n) ? n : NaN;
757
- }
758
- let t = +e;
759
- return Number.isFinite(t) ? t : NaN;
760
- }
761
- let Wn = 0;
762
- function Gn(e) {
763
- w.value = !0;
764
- let t = Un(e);
765
- Number.isFinite(t) && (cancelAnimationFrame(Wn), Wn = requestAnimationFrame(() => {
766
- O.value = t;
767
- }));
768
- }
769
- let Kn = 0;
770
- function qn(e) {
771
- w.value = !0;
772
- let t = Un(e);
773
- Number.isFinite(t) && (cancelAnimationFrame(Kn), Kn = requestAnimationFrame(() => {
774
- k.value = t;
775
- }));
776
- }
777
- me(() => {
778
- cancelAnimationFrame(Wn), cancelAnimationFrame(Kn);
779
- });
780
- let Jn = u(() => y.valueEnd - y.valueStart), Yn = u(() => Jn.value < y.max - y.min), G = g(!1), Xn = g(null), Zn = u(() => (Yt.value - 48) / (y.max - y.min) * Jn.value), Qn = u(() => Math.max(1, Yt.value - kt - Zn.value)), $n = u(() => Math.max(1, y.max - y.min - Jn.value)), er = u(() => $n.value / Qn.value), tr = g(0), nr = g(0), rr = g(0), ir = g(0), K = null, q = null, J = null, Y = null, ar = g(y.min);
781
- function or(e) {
782
- if (!b.value) return y.min;
783
- let t = b.value.getBoundingClientRect(), n = t.left + kt / 2, r = t.right - kt / 2, i = Math.max(1, r - n), a = (Math.max(n, Math.min(e, r)) - n) / i, o = Math.max(1, y.max - y.min);
784
- return Math.round(y.min + a * o);
785
- }
786
- let sr = async (e) => {
787
- if (w.value = !0, Z.value = !0, !y.enableSelectionDrag) return;
788
- let t = e.type === "touchstart";
789
- t || e.stopPropagation();
790
- let r = t && e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null, i = t ? r ? r.target : null : e.target;
791
- if (!i || !(i instanceof Element) || i.classList?.contains("range-handle") || i.classList?.contains("vue-ui-zoom-compact-minimap-handle") || i.closest(".vue-ui-zoom-compact-minimap-handle")) return;
792
- G.value = !0;
793
- let a = t ? r ? r.clientX : 0 : e.clientX;
794
- if (Xn.value = a, tr.value = a, y.focusOnDrag && !Yn.value && b.value && !Rt.value) {
795
- Rt.value = !0;
796
- try {
797
- ar.value = or(a);
798
- let e = Math.min(.95, Math.max(.05, y.focusRangeRatio)), t = Number(y.max) - Number(y.min), r = Math.max(1, Math.round(t * e)), i = Math.floor(r / 2), o = ar.value - i;
799
- o = Math.max(Number(y.min), Math.min(o, Number(y.max) - r));
800
- let ee = Math.min(Number(y.max), o + r);
801
- O.value = o, k.value = ee, Xt(o), Zt(ee), n(b.value, "mouseup"), await de(), n(b.value, "mousedown", { clientX: a });
802
- } finally {
803
- Rt.value = !1;
804
- }
805
- return;
806
- }
807
- nr.value = x.value, rr.value = S.value, ir.value = er.value, K = t ? "touchmove" : "mousemove", q = t ? "touchend" : "mouseup", J = t ? lr : cr, Y = t ? fr : dr, window.addEventListener(K, J, { passive: !1 }), window.addEventListener(q, Y);
808
- };
809
- function cr(e) {
810
- G.value && ur(e.clientX);
811
- }
812
- function lr(e) {
813
- if (!G.value || !b.value) return;
814
- let t = e.target;
815
- if (!(t instanceof Element) || !b.value.contains(t) || t.classList && t.classList.contains("range-handle")) return;
816
- e.preventDefault();
817
- let n = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
818
- n && ur(n.clientX);
819
- }
820
- function ur(e) {
821
- if (!G.value) return;
822
- let t = or(tr.value), n = or(e) - t, r = Math.round(nr.value + n);
823
- r = Math.max(y.min, Math.min(r, y.max - Jn.value));
824
- let i = r + Jn.value;
825
- O.value = r, k.value = i, Xt(r), Zt(i);
826
- }
827
- function dr() {
828
- pr();
829
- }
830
- function fr() {
831
- pr();
832
- }
833
- function pr() {
834
- G.value = !1, K && J && window.removeEventListener(K, J), q && Y && window.removeEventListener(q, Y), K = q = null, J = Y = null, A();
835
- }
836
- let X = g(!1), mr = g(null), hr = g(null), gr = g(1), _r = g(1), Z = g(!1);
837
- function vr() {
838
- if (mr.value) {
839
- let e = Math.round(mr.value.getBoundingClientRect().width);
840
- e !== gr.value && (gr.value = e);
841
- }
842
- }
843
- function yr() {
844
- if (hr.value) {
845
- let e = Math.round(hr.value.getBoundingClientRect().width);
846
- e !== _r.value && (_r.value = e);
847
- }
848
- }
849
- ge(() => {
850
- vr(), yr();
851
- });
852
- let br = g(0);
853
- function xr(e) {
854
- br.value = +(e === "start");
855
- }
856
- let Sr = g(!1), Cr = g({
857
- width: 0,
858
- left: 0
859
- });
860
- v([x, S], async () => {
861
- if (await de(), !mr.value || !hr.value) {
862
- Sr.value = !1, Cr.value = {
863
- width: 0,
864
- left: 0
865
- };
866
- return;
867
- }
868
- let e = mr.value.getBoundingClientRect(), t = hr.value.getBoundingClientRect();
869
- Sr.value = e.x + e.width > t.x;
870
- let n = e.x + e.width / 2, r = t.x + t.width / 2, i = e.width + t.width, a = (n + r) / 2;
871
- Cr.value = {
872
- width: i,
873
- left: a - i / 2
874
- };
875
- }), ge(() => {
876
- vr(), yr();
877
- }), v(() => y.labelLeft, () => {
878
- de(vr);
879
- }, { deep: !0 }), v(() => y.labelRight, () => {
880
- de(yr);
881
- }, { deep: !0 });
882
- let Q = u(() => {
883
- let e = "", t = "", n = !1;
884
- if (ee(y.customFormat)) try {
885
- let r = y.customFormat({
886
- absoluteIndex: x.value,
887
- seriesIndex: x.value,
888
- datapoint: y.selectedSeries,
889
- timeLabel: y.preciseLabels[x.value],
890
- side: "left"
891
- }), i = y.customFormat({
892
- absoluteIndex: Bt.value,
893
- seriesIndex: -1,
894
- datapoint: y.selectedSeries,
895
- timeLabel: y.useValueRange ? null : y.preciseLabels[Bt.value],
896
- side: "right"
897
- });
898
- typeof r == "string" && typeof i == "string" && (e = r, t = i, n = !0);
899
- } catch {
900
- n = !1;
901
- }
902
- if (!n) {
903
- let n = y.useValueRange ? { text: String(Math.round(x.value * 1e3) / 1e3) } : y.usePreciseLabels ? y.preciseLabels.find((e) => e.absoluteIndex === x.value) : y.timeLabels.find((e) => e.absoluteIndex === x.value), r = y.useValueRange ? { text: String(Math.round(S.value * 1e3) / 1e3) } : y.usePreciseLabels ? y.preciseLabels.find((e) => e.absoluteIndex === Bt.value) : y.timeLabels.find((e) => e.absoluteIndex === Bt.value);
904
- e = n ? n.text : "", t = r ? r.text : "";
905
- }
906
- return {
907
- left: e,
908
- right: t
909
- };
910
- });
911
- me(() => {
912
- I.value && I.value.disconnect(), K && J && window.removeEventListener(K, J), q && Y && window.removeEventListener(q, Y), K = q = null, J = Y = null, clearTimeout(null);
913
- });
914
- let wr = u(() => {
915
- if (!cn.value || W.value === null) return null;
916
- if (y.useValueRange) {
917
- let e = W.value;
918
- return e < U.value.x || e > U.value.x + U.value.width ? null : {
919
- x1: e,
920
- x2: e,
921
- y1: 0,
922
- y2: Math.max(F.value.height, 0),
923
- stroke: y.minimapIndicatorColor,
924
- "stroke-linecap": "round",
925
- "stroke-dasharray": 2,
926
- "stroke-width": 1
927
- };
928
- }
929
- if (W.value >= R.value && W.value < z.value) {
930
- let e = W.value, t = B.value * e + (y.minimapCompact ? 0 : B.value / 2);
931
- return {
932
- x1: t,
933
- x2: t,
934
- y1: 0,
935
- y2: Math.max(F.value.height, 0),
936
- stroke: y.minimapIndicatorColor,
937
- "stroke-linecap": "round",
938
- "stroke-dasharray": 2,
939
- "stroke-width": 1
940
- };
941
- }
942
- return null;
943
- }), Tr = u(() => Number(x.value) < Number(S.value) - 1), Er = u(() => Number(x.value) > Number(y.min)), Dr = u(() => Number(S.value) < Number(y.max)), Or = u(() => Number(S.value) > Number(x.value) + 1);
944
- function kr(e) {
945
- let t = Number(x.value) + e;
946
- e > 0 && !Tr.value || e < 0 && !Er.value || (w.value = !0, O.value = t, A());
947
- }
948
- function Ar(e) {
949
- let t = Number(S.value) + e;
950
- e > 0 && !Dr.value || e < 0 && !Or.value || (w.value = !0, k.value = t, A());
951
- }
952
- let jr = {
953
- plus: () => kr(1),
954
- minus: () => kr(-1),
955
- canPlus: Tr,
956
- canMinus: Er
957
- }, Mr = {
958
- plus: () => Ar(1),
959
- minus: () => Ar(-1),
960
- canPlus: Dr,
961
- canMinus: Or
962
- };
963
- function Nr(e) {
964
- if (!e || Pr(e.target)) return;
965
- let t = e.key, n = t === "ArrowLeft" || t === "ArrowDown" || t === "-" || t === "Subtract", r = t === "ArrowRight" || t === "ArrowUp" || t === "+" || t === "Add";
966
- !n && !r || (e.preventDefault(), e.stopPropagation(), r ? (jr.plus(), Mr.plus()) : (jr.minus(), Mr.minus()));
967
- }
968
- function Pr(e) {
969
- return e instanceof HTMLElement && (e.isContentEditable || e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.tagName === "SELECT");
970
- }
971
- function Fr(e) {
972
- if (!C.value || !y.minimapCompact) return;
973
- let t = b.value;
974
- if (!t) return;
975
- let n = e === "start" ? "[data-cy=\"slicer-compact-handle-left\"]" : "[data-cy=\"slicer-compact-handle-right\"]", r = t.querySelector(n);
976
- r && r instanceof SVGElement && typeof r.focus == "function" && r.focus();
977
- }
978
- function Ir(e, t) {
979
- if (!t || Pr(t.target)) return;
980
- let n = t.key, r = n === "ArrowLeft" || n === "ArrowDown" || n === "-" || n === "Subtract", i = n === "ArrowRight" || n === "ArrowUp" || n === "+" || n === "Add";
981
- !r && !i || (t.preventDefault(), t.stopPropagation(), e === "start" ? i ? jr.plus() : jr.minus() : i ? Mr.plus() : Mr.minus(), de(() => Fr(e)));
982
- }
983
- let Lr = u(() => ({
984
- tabindex: 0,
985
- role: "slider",
986
- "aria-label": "Range start",
987
- "aria-valuemin": Number(y.min),
988
- "aria-valuemax": Math.max(Number(y.min), Number(S.value) - 1),
989
- "aria-valuenow": Number(x.value)
990
- })), Rr = u(() => ({
991
- tabindex: 0,
992
- role: "slider",
993
- "aria-label": "Range end",
994
- "aria-valuemin": Math.min(Number(y.max), Number(x.value) + 1),
995
- "aria-valuemax": Number(y.max),
996
- "aria-valuenow": Number(S.value)
997
- }));
998
- function zr(e) {
999
- if (!Lt.value) return 0;
1000
- let t = Lt.value.getBoundingClientRect();
1001
- if (!t.width) return 0;
1002
- let n = (e - t.left) / t.width;
1003
- return Math.min(1, Math.max(0, n)) * F.value.width;
1004
- }
1005
- function Br(e) {
1006
- let t = Math.max(0, L.value - 1), n = Math.max(1, F.value.width), r = Math.min(1, Math.max(0, e / n));
1007
- return Math.min(t, Math.max(0, Math.round(r * t)));
1008
- }
1009
- function Vr(e) {
1010
- let t = Math.min(Math.max(0, e), Math.max(1, F.value.width));
1011
- if (y.useValueRange) {
1012
- let e = Wt(t);
1013
- if (E.value === "start") {
1014
- let t = Math.min(e, Number(S.value) - D.value);
1015
- O.value = t, Xt(t);
1016
- return;
1017
- }
1018
- if (E.value === "end") {
1019
- let t = Math.max(Number(x.value) + D.value, e), n = Math.min(Number(y.max), t);
1020
- k.value = n, Zt(n);
1021
- return;
1022
- }
1023
- }
1024
- let n = Br(t);
1025
- if (E.value === "start") {
1026
- let e = Math.min(y.min + n, Number(S.value) - 1);
1027
- O.value = e, Xt(e);
1028
- return;
1029
- }
1030
- if (E.value === "end") {
1031
- let e = Math.max(Number(x.value) + 1, y.min + n + 1), t = Math.min(y.max, e);
1032
- k.value = t, Zt(t);
1033
- }
1034
- }
1035
- function Hr(e) {
1036
- if (!E.value || !P.value) return;
1037
- let t = e.clientX - Ft.value;
1038
- if (!Pt.value) {
1039
- if (Math.abs(t) < 4) return;
1040
- Pt.value = !0, w.value = !0, Z.value = !0;
1041
- }
1042
- let n = zr(e.clientX) - It.value;
1043
- Vr(E.value === "start" ? n + Jt.value : n);
1044
- }
1045
- function Ur() {
1046
- if (!E.value) return;
1047
- window.removeEventListener("mousemove", Hr, !0), window.removeEventListener("mouseup", Ur, !0);
1048
- let e = Pt.value;
1049
- E.value = null, Pt.value = !1, Ft.value = 0, It.value = 0, e && A();
1050
- }
1051
- function Wr(e, t) {
1052
- if (!C.value || !y.minimapCompact || !P.value) return;
1053
- t.preventDefault(), t.stopPropagation(), W.value = null;
1054
- let n = zr(t.clientX), r = e === "start" ? U.value.x - Jt.value : U.value.x + U.value.width;
1055
- E.value = e, Pt.value = !1, Ft.value = t.clientX, It.value = n - r, window.addEventListener("mousemove", Hr, !0), window.addEventListener("mouseup", Ur, !0);
1056
- }
1057
- let Gr = u(() => R.value), Kr = u(() => Math.max(R.value, z.value - 1));
1058
- u(() => {
1059
- if (!C.value || !y.minimapCompact || !y.allMinimaps.length) return [];
1060
- let e = Gr.value, t = Kr.value;
1061
- return H.value.flatMap((n) => {
1062
- if (!n?.isVisible || !["line", "plot"].includes(n.type) || !n.type) return [];
1063
- let r = [], i = n.points?.find((t) => t.i === e && t.value !== null), a = n.points?.find((e) => e.i === t && e.value !== null);
1064
- return i && r.push({
1065
- key: `${n.key}-left-${i.i}`,
1066
- x: i.x,
1067
- y: i.y,
1068
- color: n.color
1069
- }), a && t !== e && r.push({
1070
- key: `${n.key}-right-${a.i}`,
1071
- x: a.x,
1072
- y: a.y,
1073
- color: n.color
1074
- }), r;
1075
- });
1076
- });
1077
- let $ = u(() => Math.min(40, Math.max(20, y.handleWidth))), qr = u(() => U.value.x - $.value), Jr = u(() => U.value.x + U.value.width);
1078
- return At({
1079
- setStartValue: Gn,
1080
- setEndValue: qn
1081
- }), (e, t) => (h(), f("div", {
1082
- "data-minimap": C.value,
1083
- "data-dom-to-png-ignore": "",
1084
- "data-dom-to-png-ignore-layout": "",
1085
- style: m([{ padding: "0 48px" }, {
1086
- maxWidth: s.maxWidth ? s.maxWidth + "px" : void 0,
1087
- margin: s.maxWidth ? "0 auto" : void 0
1088
- }]),
1089
- class: "vue-data-ui-zoom",
1090
- ref_key: "zoomWrapper",
1091
- ref: b,
1092
- onMousedown: sr,
1093
- onTouchstart: sr
1094
- }, [p("div", Ee, [s.valueStart !== s.refreshStartPoint || s.valueEnd !== Qt.value ? (h(), f("div", De, [_e(e.$slots, "reset-action", { reset: ln }, () => [p("button", {
1095
- tabindex: "0",
1096
- role: "button",
1097
- class: "vue-data-ui-refresh-button",
1098
- style: m({
1099
- top: C.value ? "36px" : "-16px",
1100
- cursor: s.isCursorPointer ? "pointer" : "default"
1101
- }),
1102
- onClick: ln
1103
- }, [ce(oe, {
1104
- name: "refresh",
1105
- stroke: s.textColor
1106
- }, null, 8, ["stroke"])], 4)], !0)])) : d("", !0)]), p("div", {
1107
- class: "double-range-slider",
1108
- ref_key: "minimapWrapper",
1109
- ref: P,
1110
- style: m([{ "z-index": "0" }, C.value ? {
1111
- "--minimap-unit-px": B.value + "px",
1112
- "--minimap-offset-px": (s.minimapCompact ? 0 : B.value / 2) + "px"
1113
- } : void 0]),
1114
- onMouseenter: t[18] ||= (e) => Z.value = !0,
1115
- onMouseleave: t[19] ||= (e) => Z.value = !1
1116
- }, [
1117
- C.value ? (h(), f("div", Oe, [(h(), f("svg", {
1118
- ref_key: "minimapSvg",
1119
- ref: Lt,
1120
- key: `mm-${s.minimapMerged ? "merged" : "split"}-${s.minimapCompact ? "compact" : "normal"}`,
1121
- xmlns: ye(ne),
1122
- viewBox: `0 0 ${Math.max(0, F.value.width)} ${Math.max(0, F.value.height)}`,
1123
- preserveAspectRatio: "none"
1124
- }, [
1125
- p("defs", null, [ce(se, {
1126
- t: "linear",
1127
- id: Nt.value,
1128
- x1: "0%",
1129
- y1: "0%",
1130
- x2: "0%",
1131
- y2: "100%",
1132
- stops: [[
1133
- "0%",
1134
- s.minimapLineColor,
1135
- .31
1136
- ], [
1137
- "100%",
1138
- "transparent",
1139
- 0
1140
- ]]
1141
- }, null, 8, ["id", "stops"]), p("clipPath", { id: `selection_clip_${Nt.value}` }, [p("rect", {
1142
- x: U.value.x,
1143
- y: "0",
1144
- width: Math.max(0, U.value.width),
1145
- height: Math.max(F.value.height, 0)
1146
- }, null, 8, je)], 8, Ae)]),
1147
- s.minimapCompact ? (h(), f("rect", {
1148
- key: 0,
1149
- class: "vue-ui-zoom-minimap-frame",
1150
- x: 0,
1151
- y: 0,
1152
- width: F.value.width,
1153
- height: F.value.height,
1154
- fill: "none",
1155
- stroke: s.minimapFrameColor,
1156
- rx: 3
1157
- }, null, 8, Me)) : d("", !0),
1158
- e.$slots.slotMap ? d("", !0) : (h(), f(l, { key: 1 }, [s.minimapMerged ? (h(), f("path", {
1159
- key: 0,
1160
- d: `M${V.value.fullSet}`,
1161
- stroke: `${s.minimapLineColor}`,
1162
- fill: "none",
1163
- "stroke-width": "1",
1164
- "stroke-linecap": "round",
1165
- "stroke-linejoin": "round",
1166
- style: { opacity: "0.6" }
1167
- }, null, 8, Ne)) : d("", !0), s.minimapMerged && !s.minimapCompact ? (h(), f("path", {
1168
- key: 1,
1169
- d: `M${B.value / 2},${Math.max(F.value.height, 0)} ${V.value.fullSet} L${F.value.width - B.value / 2},${Math.max(F.value.height, 0)}Z`,
1170
- fill: `url(#${Nt.value})`,
1171
- stroke: "none",
1172
- style: { opacity: "0.6" }
1173
- }, null, 8, Pe)) : s.minimapMerged ? d("", !0) : (h(), f(l, { key: 2 }, [
1174
- (h(!0), f(l, null, _(H.value.filter((e) => e.type === "bar" && e.isVisible), (e, t) => (h(), f("g", null, [(h(!0), f(l, null, _(e.points, (n, r) => (h(), f(l, null, [e && !isNaN(n.y) ? (h(), f("rect", {
1175
- key: 0,
1176
- x: _n(n.x, t, r),
1177
- y: n.v >= 0 ? n.y : n.y0,
1178
- width: vn(t, r),
1179
- height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
1180
- fill: e.color,
1181
- style: { opacity: .6 }
1182
- }, null, 8, Fe)) : d("", !0)], 64))), 256))]))), 256)),
1183
- (h(!0), f(l, null, _(H.value.filter((e) => e.type === "line"), (e) => (h(), f("g", null, [e.isVisible ? (h(), f("path", {
1184
- key: 0,
1185
- d: `M ${e.fullSet}`,
1186
- fill: "none",
1187
- stroke: e.color,
1188
- style: { opacity: "0.6" },
1189
- "stroke-dasharray": e.dashed ? "2 4" : 0
1190
- }, null, 8, Ie)) : d("", !0), e.isVisible && s.cutNullValues ? (h(!0), f(l, { key: 1 }, _(e.fullMarkers, (t) => (h(), f("circle", {
1191
- key: `sel-dot-under-${e.key}-${t.i}`,
1192
- cx: t.x,
1193
- cy: t.y,
1194
- r: "2",
1195
- fill: e.color,
1196
- stroke: N.value,
1197
- "stroke-width": "0.5",
1198
- style: { opacity: "0.6" }
1199
- }, null, 8, Le))), 128)) : d("", !0)]))), 256)),
1200
- (h(!0), f(l, null, _(H.value.filter((e) => e.type === "plot"), (e) => (h(), f("g", null, [(h(!0), f(l, null, _(e.points, (t) => (h(), f("g", null, [e.isVisible && t.value !== null ? (h(), f("circle", {
1201
- key: `sel-plot-under-${e.key}-${t.i}`,
1202
- cx: t.x,
1203
- cy: t.y,
1204
- r: "2",
1205
- fill: e.color,
1206
- stroke: N.value,
1207
- "stroke-width": "0.5",
1208
- style: { opacity: "0.6" }
1209
- }, null, 8, Re)) : d("", !0)]))), 256))]))), 256))
1210
- ], 64))], 64)),
1211
- p("rect", {
1212
- x: U.value.x,
1213
- y: 0,
1214
- width: Math.max(0, U.value.width),
1215
- height: Math.max(F.value.height, 0),
1216
- fill: N.value,
1217
- rx: s.minimapSelectionRadius,
1218
- stroke: "none"
1219
- }, null, 8, ze),
1220
- p("rect", {
1221
- x: U.value.x,
1222
- y: 0,
1223
- width: U.value.width < 0 ? 0 : U.value.width,
1224
- height: Math.max(F.value.height, 0),
1225
- rx: s.minimapSelectionRadius,
1226
- fill: N.value,
1227
- style: m({ opacity: G.value || w.value ? 0 : 1 })
1228
- }, null, 12, Be),
1229
- p("rect", {
1230
- x: U.value.x,
1231
- y: 0,
1232
- width: U.value.width < 0 ? 0 : U.value.width,
1233
- height: Math.max(F.value.height, 0),
1234
- fill: s.minimapSelectedColor,
1235
- rx: s.minimapSelectionRadius,
1236
- style: m({ opacity: s.minimapSelectedColorOpacity }),
1237
- tabindex: "0",
1238
- role: "slider",
1239
- "aria-label": "Selected range",
1240
- "aria-valuemin": Number(y.min),
1241
- "aria-valuemax": Number(y.max),
1242
- "aria-valuenow": Number(x.value),
1243
- "aria-valuetext": Q.value.left && Q.value.right ? `${Q.value.left} – ${Q.value.right}` : void 0,
1244
- onKeydown: Nr
1245
- }, null, 44, Ve),
1246
- !s.minimapMerged && En.value < 0 ? (h(), f("line", {
1247
- key: 2,
1248
- class: "slicer-minimap-zero-line",
1249
- x1: 0,
1250
- x2: F.value.width,
1251
- y1: On.value,
1252
- y2: On.value,
1253
- stroke: s.minimapFrameColor,
1254
- "stroke-width": "0.5"
1255
- }, null, 8, He)) : d("", !0),
1256
- e.$slots.slotMap ? d("", !0) : (h(), f(l, { key: 3 }, [s.minimapMerged ? (h(), f("g", Ue, [
1257
- V.value && V.value.sliced && V.value.sliced.length ? (h(), f(l, { key: 0 }, [V.value.selectionSet ? (h(), f("path", {
1258
- key: 0,
1259
- d: `M ${V.value.selectionSet}`,
1260
- stroke: `${s.minimapLineColor}`,
1261
- fill: "transparent",
1262
- "stroke-width": "2",
1263
- "stroke-linecap": "round",
1264
- "stroke-linejoin": "round"
1265
- }, null, 8, We)) : d("", !0)], 64)) : d("", !0),
1266
- V.value && V.value.firstPlot ? (h(), f("circle", {
1267
- key: 1,
1268
- cx: V.value.firstPlot.x,
1269
- cy: V.value.firstPlot.y,
1270
- "stroke-width": "0.5",
1271
- stroke: N.value,
1272
- r: "3",
1273
- fill: s.minimapLineColor
1274
- }, null, 8, Ge)) : d("", !0),
1275
- V.value && V.value.lastPlot ? (h(), f("circle", {
1276
- key: 2,
1277
- cx: V.value.lastPlot.x,
1278
- cy: V.value.lastPlot.y,
1279
- "stroke-width": "0.5",
1280
- stroke: N.value,
1281
- r: "3",
1282
- fill: s.minimapLineColor
1283
- }, null, 8, Ke)) : d("", !0)
1284
- ])) : (h(), f("g", qe, [
1285
- (h(!0), f(l, null, _(H.value.filter((e) => e.type === "bar" && e.isVisible), (e, t) => (h(), f("g", null, [(h(!0), f(l, null, _(e.points, (n, r) => (h(), f(l, null, [e && !isNaN(n.y) ? (h(), f("rect", {
1286
- key: 0,
1287
- x: _n(n.x, t, r),
1288
- y: n.v >= 0 ? n.y : n.y0,
1289
- width: vn(t, r),
1290
- height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
1291
- fill: e.color,
1292
- style: m({ opacity: +(r >= O.value && r < k.value) })
1293
- }, null, 12, Je)) : d("", !0)], 64))), 256))]))), 256)),
1294
- (h(!0), f(l, null, _(H.value.filter((e) => e.type === "line"), (e, t) => (h(), f("g", { key: String(e.key) }, [e && e.hasSelection && e.selectionSet && e.isVisible ? (h(), f("path", {
1295
- key: 0,
1296
- d: `M ${e.selectionSet}`,
1297
- stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${s.uuid})` : e.color,
1298
- fill: "transparent",
1299
- "stroke-width": "2",
1300
- "stroke-linecap": "round",
1301
- "stroke-linejoin": "round",
1302
- "stroke-dasharray": e.dashed ? "2 4" : 0
1303
- }, null, 8, Ye)) : d("", !0)]))), 128)),
1304
- (h(!0), f(l, null, _(H.value.filter((e) => e.type === "plot"), (e) => (h(), f("g", { key: String(e.key) }, [(h(!0), f(l, null, _(e.sliced, (t) => (h(), f("g", null, [e.isVisible && t.value !== null ? (h(), f("circle", {
1305
- key: 0,
1306
- cx: t.x,
1307
- cy: t.y,
1308
- r: "2",
1309
- fill: e.color,
1310
- stroke: N.value,
1311
- "stroke-width": "0.5",
1312
- style: { opacity: "0.6" }
1313
- }, null, 8, Xe)) : d("", !0)]))), 256))]))), 128))
1314
- ]))], 64)),
1315
- e.$slots.slotMap ? _e(e.$slots, "slotMap", pe(le({
1316
- width: Math.max(0, F.value.width),
1317
- height: Math.max(0, F.value.height),
1318
- zeroY: On.value,
1319
- unitW: Math.max(0, B.value)
1320
- })), void 0, !0, 4) : d("", !0),
1321
- W.value !== null && !X.value ? (h(), f("line", pe(ue({ key: 5 }, wr.value)), null, 16)) : d("", !0),
1322
- p("rect", {
1323
- x: 0,
1324
- y: 0,
1325
- width: Math.max(0, F.value.width),
1326
- height: Math.max(0, F.value.height),
1327
- fill: "transparent",
1328
- style: m([{ "pointer-events": "all !important" }, { cursor: s.enableSelectionDrag ? X.value ? "grabbing" : "grab" : "default" }]),
1329
- onMousedown: t[0] ||= (e) => X.value = !0,
1330
- onMouseup: t[1] ||= (e) => X.value = !1,
1331
- onMousemove: zn,
1332
- onMouseleave: Bn
1333
- }, null, 44, Ze),
1334
- C.value && s.minimapCompact ? (h(), f(l, { key: 6 }, [
1335
- p("rect", {
1336
- class: "vue-ui-zoom-compact-minimap-handle",
1337
- x: qr.value,
1338
- y: 0,
1339
- width: $.value,
1340
- height: F.value.height,
1341
- fill: s.handleFill || N.value,
1342
- stroke: s.handleBorderColor || s.textColor,
1343
- "stroke-width": s.handleBorderWidth,
1344
- rx: 3
1345
- }, null, 8, Qe),
1346
- s.handleType && s.handleType !== "empty" ? (h(), f("g", {
1347
- key: 0,
1348
- class: "compact-handle-icon",
1349
- transform: `translate(${qr.value}, 0)`,
1350
- style: { "pointer-events": "none" }
1351
- }, [(h(), f("svg", {
1352
- width: $.value,
1353
- height: F.value.height,
1354
- viewBox: "0 0 20 20",
1355
- preserveAspectRatio: "xMidYMid meet"
1356
- }, [s.handleType === "arrow" ? (h(), f("path", {
1357
- key: 0,
1358
- d: "M 7 7 L 3 10 L 7 13 L 7 7 M 13 7 L 17 10 L 13 13 L 13 7",
1359
- fill: N.value,
1360
- stroke: s.handleIconColor || s.textColor,
1361
- "stroke-width": .618,
1362
- "stroke-linejoin": "round",
1363
- "stroke-linecap": "round"
1364
- }, null, 8, tt)) : s.handleType === "chevron" ? (h(), f("path", {
1365
- key: 1,
1366
- d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
1367
- fill: "none",
1368
- stroke: s.handleIconColor || s.textColor,
1369
- "stroke-width": .618,
1370
- "stroke-linejoin": "round",
1371
- "stroke-linecap": "round"
1372
- }, null, 8, nt)) : s.handleType === "grab" ? (h(), f("path", {
1373
- key: 2,
1374
- d: "M 8 5 A 1 1 0 0 0 8 7 A 1 1 0 0 0 8 5 M 8 9 A 1 1 0 0 0 8 11 A 1 1 0 0 0 8 9 M 8 13 A 1 1 0 0 0 8 15 A 1 1 0 0 0 8 13 M 12 5 A 1 1 0 0 0 12 7 A 1 1 0 0 0 12 5 M 12 9 A 1 1 0 0 0 12 11 A 1 1 0 0 0 12 9 M 12 13 A 1 1 0 0 0 12 15 A 1 1 0 0 0 12 13",
1375
- fill: s.handleIconColor || s.textColor,
1376
- stroke: "none",
1377
- opacity: "0.6"
1378
- }, null, 8, rt)) : d("", !0)], 8, et))], 8, $e)) : d("", !0),
1379
- p("rect", {
1380
- class: "vue-ui-zoom-compact-minimap-handle",
1381
- x: Jr.value,
1382
- y: 0,
1383
- width: $.value,
1384
- height: F.value.height,
1385
- fill: s.handleFill || N.value,
1386
- stroke: s.handleBorderColor || s.textColor,
1387
- "stroke-width": s.handleBorderWidth,
1388
- rx: 3
1389
- }, null, 8, it),
1390
- s.handleType && s.handleType !== "empty" ? (h(), f("g", {
1391
- key: 1,
1392
- class: "compact-handle-icon",
1393
- transform: `translate(${Jr.value}, 0)`,
1394
- style: { "pointer-events": "none" }
1395
- }, [(h(), f("svg", {
1396
- width: $.value,
1397
- height: F.value.height,
1398
- viewBox: "0 0 20 20",
1399
- preserveAspectRatio: "xMidYMid meet"
1400
- }, [s.handleType === "arrow" ? (h(), f("path", {
1401
- key: 0,
1402
- d: "M 7 7 L 3 10 L 7 13 L 7 7 M 13 7 L 17 10 L 13 13 L 13 7",
1403
- fill: N.value,
1404
- stroke: s.handleIconColor || s.textColor,
1405
- "stroke-width": .618,
1406
- "stroke-linejoin": "round",
1407
- "stroke-linecap": "round"
1408
- }, null, 8, st)) : s.handleType === "chevron" ? (h(), f("path", {
1409
- key: 1,
1410
- d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
1411
- fill: "none",
1412
- stroke: s.handleIconColor || s.textColor,
1413
- "stroke-width": .618,
1414
- "stroke-linejoin": "round",
1415
- "stroke-linecap": "round"
1416
- }, null, 8, ct)) : s.handleType === "grab" ? (h(), f("path", {
1417
- key: 2,
1418
- d: "M 8 5 A 1 1 0 0 0 8 7 A 1 1 0 0 0 8 5 M 8 9 A 1 1 0 0 0 8 11 A 1 1 0 0 0 8 9 M 8 13 A 1 1 0 0 0 8 15 A 1 1 0 0 0 8 13 M 12 5 A 1 1 0 0 0 12 7 A 1 1 0 0 0 12 5 M 12 9 A 1 1 0 0 0 12 11 A 1 1 0 0 0 12 9 M 12 13 A 1 1 0 0 0 12 15 A 1 1 0 0 0 12 13",
1419
- fill: s.handleIconColor || s.textColor,
1420
- stroke: "none",
1421
- opacity: "0.6"
1422
- }, null, 8, lt)) : d("", !0)], 8, ot))], 8, at)) : d("", !0)
1423
- ], 64)) : d("", !0),
1424
- e.$slots.slotMap ? d("", !0) : (h(), f(l, { key: 7 }, [s.minimapMerged ? (h(), f("g", ut, [
1425
- V.value && V.value.firstPlot && V.value.firstPlot.value !== null ? (h(), f("circle", {
1426
- key: 0,
1427
- cx: V.value.firstPlot.x,
1428
- cy: V.value.firstPlot.y,
1429
- "stroke-width": "0.5",
1430
- stroke: N.value,
1431
- r: "4",
1432
- fill: s.minimapLineColor
1433
- }, null, 8, dt)) : d("", !0),
1434
- V.value && V.value.firstPlot && V.value.firstPlot.value !== null ? (h(), f("circle", {
1435
- key: 1,
1436
- cx: V.value.firstPlot.x,
1437
- cy: V.value.firstPlot.y,
1438
- r: 2,
1439
- fill: N.value
1440
- }, null, 8, ft)) : d("", !0),
1441
- V.value && V.value.lastPlot && V.value.lastPlot.value !== null ? (h(), f("circle", {
1442
- key: 2,
1443
- cx: V.value.lastPlot.x,
1444
- cy: V.value.lastPlot.y,
1445
- "stroke-width": "0.5",
1446
- stroke: N.value,
1447
- r: "4",
1448
- fill: s.minimapLineColor
1449
- }, null, 8, pt)) : d("", !0),
1450
- V.value && V.value.lastPlot && V.value.lastPlot.value !== null ? (h(), f("circle", {
1451
- key: 3,
1452
- cx: V.value.lastPlot.x,
1453
- cy: V.value.lastPlot.y,
1454
- r: "2",
1455
- fill: N.value
1456
- }, null, 8, mt)) : d("", !0)
1457
- ])) : (h(), f("g", ht, [(h(!0), f(l, null, _(H.value.filter((e) => e.type === "line"), (e, t) => (h(), f("g", { key: String(e.key) }, [
1458
- e && e.hasSelection && e.selectionSet && e.isVisible ? (h(), f("path", {
1459
- key: 0,
1460
- d: `M ${e.selectionSet}`,
1461
- stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${s.uuid})` : e.color,
1462
- fill: "transparent",
1463
- "stroke-width": "2",
1464
- "stroke-linecap": "round",
1465
- "stroke-linejoin": "round",
1466
- "stroke-dasharray": e.dashed ? "2 4" : 0
1467
- }, null, 8, gt)) : d("", !0),
1468
- e.isVisible && s.cutNullValues ? (h(!0), f(l, { key: 1 }, _(e.selectionMarkers, (t) => (h(), f("circle", {
1469
- key: `sel-dot-${e.key}-${t.i}`,
1470
- cx: t.x,
1471
- cy: t.y,
1472
- r: "2.5",
1473
- fill: e.color,
1474
- stroke: N.value,
1475
- "stroke-width": "0.5"
1476
- }, null, 8, _t))), 128)) : d("", !0),
1477
- e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (h(), f("circle", {
1478
- key: 2,
1479
- cx: e.firstPlot.x,
1480
- cy: e.firstPlot.y,
1481
- "stroke-width": "0.5",
1482
- stroke: N.value,
1483
- r: "4",
1484
- fill: e.color
1485
- }, null, 8, vt)) : d("", !0),
1486
- e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (h(), f("circle", {
1487
- key: 3,
1488
- cx: e.firstPlot.x,
1489
- cy: e.firstPlot.y,
1490
- r: "2",
1491
- fill: N.value
1492
- }, null, 8, yt)) : d("", !0),
1493
- e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (h(), f("circle", {
1494
- key: 4,
1495
- cx: e.lastPlot.x,
1496
- cy: e.lastPlot.y,
1497
- "stroke-width": "0.5",
1498
- stroke: N.value,
1499
- r: "4",
1500
- fill: e.color
1501
- }, null, 8, bt)) : d("", !0),
1502
- e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (h(), f("circle", {
1503
- key: 5,
1504
- cx: e.lastPlot.x,
1505
- cy: e.lastPlot.y,
1506
- r: "2",
1507
- fill: N.value
1508
- }, null, 8, xt)) : d("", !0)
1509
- ]))), 128)), (h(!0), f(l, null, _(H.value.filter((e) => e.type === "plot"), (e) => (h(), f("g", { key: String(e.key) }, [(h(!0), f(l, null, _(e.points, (t) => (h(), f("g", null, [e.isVisible && s.cutNullValues && t.value !== null ? (h(), f("circle", {
1510
- key: `sel-plot-${e.key}-${t.i}`,
1511
- cx: t.x,
1512
- cy: t.y,
1513
- r: "2.5",
1514
- fill: e.color,
1515
- stroke: N.value,
1516
- "stroke-width": "0.5"
1517
- }, null, 8, St)) : d("", !0)]))), 256))]))), 128))]))], 64))
1518
- ], 8, ke))])) : d("", !0),
1519
- p("div", {
1520
- class: "slider-track",
1521
- style: m({ visibility: C.value && s.minimapCompact ? "hidden" : "visible" })
1522
- }, null, 4),
1523
- p("div", {
1524
- class: fe({
1525
- "range-highlight": !0,
1526
- move: s.enableSelectionDrag
1527
- }),
1528
- onMousedown: t[2] ||= (e) => X.value = !0,
1529
- onMouseup: t[3] ||= (e) => X.value = !1,
1530
- style: m({
1531
- ...M.value,
1532
- cursor: X.value ? "grabbing" : "grab",
1533
- visibility: C.value && s.minimapCompact ? "hidden" : "visible"
1534
- })
1535
- }, null, 38),
1536
- s.enableRangeHandles ? Se((h(), f("input", {
1537
- key: 1,
1538
- "aria-label": "range-handle-left",
1539
- ref_key: "rangeStart",
1540
- ref: Vn,
1541
- type: "range",
1542
- step: s.precision > 0 ? 1 / 10 ** s.precision : 1,
1543
- class: fe({
1544
- "range-left": !0,
1545
- "range-handle": !0,
1546
- "range-minimap": C.value && s.verticalHandles,
1547
- "range-invisible": C.value && s.minimapCompact
1548
- }),
1549
- min: s.min,
1550
- max: s.minimapCompact && C.value && !s.useValueRange ? Math.max(0, L.value - 1) : s.max,
1551
- tabindex: C.value ? -1 : 0,
1552
- "onUpdate:modelValue": t[4] ||= (e) => Mn.value = e,
1553
- onFocus: t[5] ||= (e) => C.value && e.target.blur(),
1554
- onInput: t[6] ||= (e) => Mn.value = e.target.valueAsNumber,
1555
- onChange: A,
1556
- onKeyup: Ce(A, ["enter"]),
1557
- onBlur: A,
1558
- onMouseenter: t[7] ||= (e) => xr("start"),
1559
- onPointerup: A
1560
- }, null, 42, Ct)), [[
1561
- xe,
1562
- Mn.value,
1563
- void 0,
1564
- { number: !0 }
1565
- ]]) : d("", !0),
1566
- s.enableRangeHandles ? Se((h(), f("input", {
1567
- key: 2,
1568
- "aria-label": "range-handle-right",
1569
- ref_key: "rangeEnd",
1570
- ref: Hn,
1571
- type: "range",
1572
- step: s.precision > 0 ? 1 / 10 ** s.precision : 1,
1573
- class: fe({
1574
- "range-right": !0,
1575
- "range-handle": !0,
1576
- "range-minimap": C.value && s.verticalHandles,
1577
- "range-invisible": C.value && s.minimapCompact
1578
- }),
1579
- min: s.min,
1580
- max: s.minimapCompact && C.value && !s.useValueRange ? Math.max(0, L.value - 1) : s.max,
1581
- tabindex: C.value ? -1 : 0,
1582
- onFocus: t[8] ||= (e) => C.value && e.target.blur(),
1583
- "onUpdate:modelValue": t[9] ||= (e) => Nn.value = e,
1584
- onInput: t[10] ||= (e) => Nn.value = e.target.valueAsNumber,
1585
- onChange: A,
1586
- onKeyup: Ce(A, ["enter"]),
1587
- onBlur: A,
1588
- onMouseenter: t[11] ||= (e) => xr("end"),
1589
- onPointerup: A
1590
- }, null, 42, wt)), [[
1591
- xe,
1592
- Nn.value,
1593
- void 0,
1594
- { number: !0 }
1595
- ]]) : d("", !0),
1596
- C.value && s.minimapCompact ? (h(), f("div", Tt, [(h(), f("svg", {
1597
- xmlns: ye(ne),
1598
- viewBox: `0 0 ${Math.max(0, F.value.width)} ${Math.max(0, F.value.height + 1)}`
1599
- }, [p("rect", ue({
1600
- class: "vue-ui-zoom-compact-minimap-handle",
1601
- x: qr.value,
1602
- y: 0,
1603
- width: $.value,
1604
- height: F.value.height,
1605
- fill: "transparent",
1606
- stroke: "none"
1607
- }, Lr.value, {
1608
- onKeydown: t[12] ||= (e) => Ir("start", e),
1609
- onMousedown: t[13] ||= we((e) => Wr("start", e), ["stop", "prevent"]),
1610
- onClick: t[14] ||= we(() => {}, ["stop", "prevent"])
1611
- }), null, 16, Dt), p("rect", ue({
1612
- class: "vue-ui-zoom-compact-minimap-handle",
1613
- x: Jr.value,
1614
- y: 0,
1615
- width: $.value,
1616
- height: F.value.height,
1617
- fill: "transparent",
1618
- stroke: "none",
1619
- rx: 3
1620
- }, Rr.value, {
1621
- onKeydown: t[15] ||= (e) => Ir("end", e),
1622
- onMousedown: t[16] ||= we((e) => Wr("end", e), ["stop", "prevent"]),
1623
- onClick: t[17] ||= we(() => {}, ["stop", "prevent"])
1624
- }), null, 16, Ot)], 8, Et))])) : d("", !0),
1625
- Q.value.left ? (h(), f("div", {
1626
- key: 4,
1627
- ref_key: "tooltipLeft",
1628
- ref: mr,
1629
- class: fe({
1630
- "range-tooltip": !0,
1631
- "range-tooltip-visible": Z.value,
1632
- "range-tooltip-arrow": M.value.arrowLeft && !s.verticalHandles,
1633
- "range-tooltip-arrow-left": !M.value.arrowLeft && !s.verticalHandles
1634
- }),
1635
- style: m({
1636
- left: M.value.tooltipLeft,
1637
- color: ye(te)(s.selectColor),
1638
- backgroundColor: s.selectColor,
1639
- border: `1px solid ${N.value}`,
1640
- zIndex: `${br.value + 4}`,
1641
- visibility: Sr.value || Q.value.left === Q.value.right ? "hidden" : "visible",
1642
- top: C.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
1643
- })
1644
- }, ve(Q.value.left), 7)) : d("", !0),
1645
- (Sr.value || Q.value.left === Q.value.right) && (Q.value.left || Q.value.right) ? (h(), f("div", {
1646
- key: 5,
1647
- ref: "tooltipMerge",
1648
- class: fe({
1649
- "range-tooltip": !0,
1650
- "range-tooltip-visible": Z.value,
1651
- "range-tooltip-arrow": !0,
1652
- "range-tooltip-arrow-left": !M.value.arrowLeft && !s.verticalHandles,
1653
- "range-tooltip-arrow-right": !M.value.arrowRight && !s.verticalHandles
1654
- }),
1655
- style: m({
1656
- left: M.value.tooltipCenter,
1657
- width: Cr.value.width + "px",
1658
- color: ye(te)(s.selectColor),
1659
- backgroundColor: s.selectColor,
1660
- border: `1px solid ${N.value}`,
1661
- zIndex: "4",
1662
- top: C.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
1663
- })
1664
- }, ve(Q.value.left === Q.value.right ? Q.value.left : `${Q.value.left} - ${Q.value.right}`), 7)) : d("", !0),
1665
- Q.value.right ? (h(), f("div", {
1666
- key: 6,
1667
- ref_key: "tooltipRight",
1668
- ref: hr,
1669
- class: fe({
1670
- "range-tooltip": !0,
1671
- "range-tooltip-visible": Z.value,
1672
- "range-tooltip-arrow": M.value.arrowRight && !s.verticalHandles,
1673
- "range-tooltip-arrow-right": !M.value.arrowRight && !s.verticalHandles
1674
- }),
1675
- style: m({
1676
- left: M.value.tooltipRight,
1677
- color: ye(te)(s.selectColor),
1678
- backgroundColor: s.selectColor,
1679
- border: `1px solid ${N.value}`,
1680
- zIndex: "4",
1681
- visibility: Sr.value || Q.value.left === Q.value.right ? "hidden" : "visible",
1682
- top: C.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
1683
- })
1684
- }, ve(Q.value.right), 7)) : d("", !0)
1685
- ], 36)], 44, Te));
1686
- }
1687
- }, [["__scopeId", "data-v-86199147"]]);
1688
- //#endregion
1689
- export { At as t };