vue-data-ui 3.23.0 → 3.23.2

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 (206) hide show
  1. package/dist/{Arrow-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
  2. package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
  3. package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
  4. package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
  5. package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
  6. package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
  7. package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
  8. package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
  9. package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
  11. package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
  12. package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
  13. package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
  14. package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
  15. package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
  16. package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
  17. package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
  18. package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.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-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/composables.js +1 -1
  90. package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
  91. package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
  92. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  93. package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
  94. package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
  95. package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
  96. package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
  97. package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
  98. package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
  99. package/dist/ssr/vue-ui-donut.js +1 -1
  100. package/dist/ssr/vue-ui-xy.js +1 -1
  101. package/dist/ssr.js +2 -2
  102. package/dist/style.css +1 -1
  103. package/dist/types/vue-data-ui.d.ts +9 -0
  104. package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
  105. package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
  106. package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
  107. package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
  108. package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
  109. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  110. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  111. package/dist/utils.js +3 -3
  112. package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
  113. package/dist/vue-data-ui.js +74 -74
  114. package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
  115. package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
  116. package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
  117. package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
  118. package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
  119. package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
  120. package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
  121. package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
  122. package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
  123. package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
  124. package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
  125. package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
  126. package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
  127. package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
  128. package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
  129. package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
  130. package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
  131. package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
  132. package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
  133. package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
  134. package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
  135. package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
  136. package/dist/vue-ui-gauge-CJstpakj.js +932 -0
  137. package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
  138. package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
  139. package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
  140. package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
  141. package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
  142. package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
  143. package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
  144. package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
  145. package/dist/vue-ui-molecule-paWHp18h.js +935 -0
  146. package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
  147. package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
  148. package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
  149. package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
  150. package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
  151. package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
  152. package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
  153. package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
  154. package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
  155. package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
  156. package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
  157. package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
  158. package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
  159. package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
  160. package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
  161. package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
  162. package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
  163. package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
  164. package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
  165. package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
  166. package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
  167. package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
  168. package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
  169. package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
  170. package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
  171. package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
  172. package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
  173. package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
  174. package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
  175. package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
  176. package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
  177. package/dist/vue-ui-wheel-DrefGLos.js +871 -0
  178. package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
  179. package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
  180. package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
  181. package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
  182. package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
  183. package/package.json +4 -4
  184. package/dist/Slicer-5yIrdoJv.js +0 -1149
  185. package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
  186. package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
  187. package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
  188. package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
  189. package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
  190. package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
  191. package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
  192. package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
  193. package/dist/vue-ui-funnel-CjYosIik.js +0 -797
  194. package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
  195. package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
  196. package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
  197. package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
  198. package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
  199. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
  200. package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
  201. package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
  202. package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
  203. package/dist/vue-ui-table-rFy16bp0.js +0 -1347
  204. package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
  205. package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
  206. package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
@@ -1,1149 +0,0 @@
1
- import { H as e, I as t, P as n, V as r, Yt as i, q as a, r as o, t as ee } from "./lib-BuMGJ_a0.js";
2
- import { t as s } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { i as te, l as ne, t as c } from "./useResponsive-ZtArZtUf.js";
4
- import { t as re } from "./BaseIcon-91MZoczJ.js";
5
- import { t as ie } from "./DefGrad-DVBqDjhO.js";
6
- import { Fragment as l, computed as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as ae, mergeProps as oe, nextTick as se, normalizeClass as m, normalizeProps as ce, normalizeStyle as h, onBeforeUnmount as le, onMounted as ue, onUpdated as de, openBlock as g, ref as _, renderList as v, renderSlot as fe, toDisplayString as pe, unref as me, useCssVars as he, vModelText as ge, watch as y, withDirectives as _e } from "vue";
7
- //#region src/atoms/Slicer.vue
8
- var ve = ["data-minimap"], ye = {
9
- class: "vue-data-ui-slicer-labels",
10
- style: {
11
- position: "relative",
12
- "z-index": "1",
13
- "pointer-events": "none"
14
- }
15
- }, be = {
16
- key: 0,
17
- style: {
18
- width: "100%",
19
- position: "relative",
20
- "pointer-events": "all"
21
- }
22
- }, xe = {
23
- key: 0,
24
- class: "minimap",
25
- style: { width: "100%" }
26
- }, Se = ["xmlns", "viewBox"], Ce = [
27
- "width",
28
- "height",
29
- "stroke"
30
- ], we = ["d", "stroke"], Te = [
31
- "x",
32
- "width",
33
- "y",
34
- "height",
35
- "fill"
36
- ], Ee = ["d", "stroke"], De = [
37
- "cx",
38
- "cy",
39
- "fill",
40
- "stroke"
41
- ], Oe = [
42
- "x",
43
- "width",
44
- "height",
45
- "fill",
46
- "rx"
47
- ], ke = [
48
- "x",
49
- "width",
50
- "height",
51
- "rx",
52
- "fill"
53
- ], Ae = [
54
- "x",
55
- "width",
56
- "height",
57
- "fill",
58
- "rx"
59
- ], je = [
60
- "x2",
61
- "y1",
62
- "y2",
63
- "stroke"
64
- ], Me = ["d", "fill"], Ne = ["d", "stroke"], Pe = { key: 6 }, Fe = [
65
- "x",
66
- "width",
67
- "y",
68
- "height",
69
- "fill"
70
- ], Ie = ["d", "stroke"], Le = [
71
- "x",
72
- "width",
73
- "height",
74
- "fill",
75
- "stroke",
76
- "stroke-width"
77
- ], Re = [
78
- "x",
79
- "width",
80
- "height"
81
- ], ze = ["fill", "stroke"], Be = ["stroke"], Ve = ["fill"], He = [
82
- "x",
83
- "width",
84
- "height",
85
- "fill",
86
- "stroke",
87
- "stroke-width"
88
- ], Ue = [
89
- "x",
90
- "width",
91
- "height"
92
- ], We = ["fill", "stroke"], Ge = ["stroke"], Ke = ["fill"], qe = [
93
- "cx",
94
- "cy",
95
- "stroke",
96
- "fill"
97
- ], Je = [
98
- "cx",
99
- "cy",
100
- "fill"
101
- ], Ye = [
102
- "cx",
103
- "cy",
104
- "stroke",
105
- "fill"
106
- ], Xe = [
107
- "cx",
108
- "cy",
109
- "fill"
110
- ], Ze = { key: 12 }, Qe = [
111
- "cx",
112
- "cy",
113
- "fill",
114
- "stroke"
115
- ], $e = [
116
- "cx",
117
- "cy",
118
- "stroke",
119
- "fill"
120
- ], et = [
121
- "cx",
122
- "cy",
123
- "fill"
124
- ], tt = [
125
- "cx",
126
- "cy",
127
- "stroke",
128
- "fill"
129
- ], nt = [
130
- "cx",
131
- "cy",
132
- "fill"
133
- ], rt = [
134
- "height",
135
- "x",
136
- "width",
137
- "onMouseenter"
138
- ], it = ["min", "max"], at = ["min", "max"], ot = 48, st = /*#__PURE__*/ s({
139
- __name: "Slicer",
140
- props: {
141
- background: {
142
- type: String,
143
- default: "#FFFFFF"
144
- },
145
- borderColor: {
146
- type: String,
147
- default: "#FFFFFF"
148
- },
149
- fontSize: {
150
- type: Number,
151
- default: 14
152
- },
153
- labelLeft: {
154
- type: [String, Number],
155
- default: ""
156
- },
157
- labelRight: {
158
- type: [String, Number],
159
- default: ""
160
- },
161
- textColor: {
162
- type: String,
163
- default: "#1A1A1A"
164
- },
165
- inputColor: {
166
- type: String,
167
- default: "#1A1A1A"
168
- },
169
- max: {
170
- type: Number,
171
- default: 0
172
- },
173
- min: {
174
- type: Number,
175
- default: 0
176
- },
177
- selectColor: {
178
- type: String,
179
- default: "#4A4A4A"
180
- },
181
- useResetSlot: {
182
- type: Boolean,
183
- default: !1
184
- },
185
- valueStart: {
186
- type: [Number, String],
187
- default: 0
188
- },
189
- valueEnd: {
190
- type: [Number, String],
191
- default: 0
192
- },
193
- minimap: {
194
- type: Array,
195
- default: []
196
- },
197
- smoothMinimap: {
198
- type: Boolean,
199
- default: !1
200
- },
201
- minimapSelectedColor: {
202
- type: String,
203
- default: "#1f77b4"
204
- },
205
- minimapSelectionRadius: {
206
- type: Number,
207
- default: 12
208
- },
209
- minimapLineColor: {
210
- type: String,
211
- default: "#2D353C"
212
- },
213
- minimapSelectedColorOpacity: {
214
- type: Number,
215
- default: .2
216
- },
217
- minimapSelectedIndex: {
218
- type: Number,
219
- default: null
220
- },
221
- minimapIndicatorColor: {
222
- type: String,
223
- default: "#2D353C"
224
- },
225
- refreshStartPoint: {
226
- type: Number,
227
- default: 0
228
- },
229
- refreshEndPoint: {
230
- type: Number,
231
- default: null
232
- },
233
- enableRangeHandles: {
234
- type: Boolean,
235
- default: !1
236
- },
237
- enableSelectionDrag: {
238
- type: Boolean,
239
- default: !0
240
- },
241
- verticalHandles: {
242
- type: Boolean,
243
- default: !1
244
- },
245
- minimapCompact: {
246
- type: Boolean,
247
- default: !1
248
- },
249
- allMinimaps: {
250
- type: Array,
251
- default() {
252
- return [];
253
- }
254
- },
255
- minimapMerged: {
256
- type: Boolean,
257
- default: !1
258
- },
259
- minimapFrameColor: {
260
- type: String,
261
- default: "#e1e5e8"
262
- },
263
- cutNullValues: {
264
- type: Boolean,
265
- default: !1
266
- },
267
- focusOnDrag: {
268
- type: Boolean,
269
- default: !1
270
- },
271
- focusRangeRatio: {
272
- type: Number,
273
- default: .1
274
- },
275
- maxWidth: {
276
- type: Number,
277
- default: null
278
- },
279
- isCursorPointer: {
280
- type: Boolean,
281
- default: !1
282
- },
283
- additionalMinimapHeight: {
284
- type: Number,
285
- default: 0
286
- },
287
- handleType: {
288
- type: String,
289
- default: ""
290
- },
291
- handleWidth: {
292
- type: Number,
293
- default: 20
294
- },
295
- handleBorderWidth: {
296
- type: Number,
297
- default: 1
298
- },
299
- handleIconColor: {
300
- type: String,
301
- default: null
302
- },
303
- handleBorderColor: {
304
- type: String,
305
- default: null
306
- },
307
- handleFill: {
308
- type: String,
309
- default: null
310
- }
311
- },
312
- emits: [
313
- "update:start",
314
- "update:end",
315
- "reset",
316
- "trapMouse"
317
- ],
318
- setup(s, { expose: st, emit: ct }) {
319
- he((e) => ({
320
- v78171e72: Ct.value,
321
- v5be9f93b: A.value,
322
- v3bad6e6c: Tt.value,
323
- v3c1f3a6b: s.selectColor,
324
- v430a7779: wt.value
325
- }));
326
- let b = s, x = _(null), S = _(b.min), C = _(b.max), w = u(() => !!b.allMinimaps.length), lt = _(a()), T = u(() => w.value && b.minimapCompact), ut = _(0);
327
- ue(() => {
328
- let e = () => {
329
- x.value && (ut.value = x.value.getBoundingClientRect().width);
330
- };
331
- e();
332
- let t = ne(e, 50);
333
- window.addEventListener("resize", t), le(() => {
334
- window.removeEventListener("resize", t);
335
- });
336
- });
337
- let dt = u(() => b.refreshEndPoint === null ? b.max : b.refreshEndPoint), E = ct, D = u(() => {
338
- if (T.value) {
339
- let e = Math.max(1, xn.value - 1);
340
- return xt.value / e * 100;
341
- }
342
- let e = Math.max(1, b.max - b.min);
343
- return (S.value - b.min) / e * 100;
344
- }), ft = u(() => {
345
- if (T.value) {
346
- let e = Math.max(1, xn.value - 1);
347
- return St.value / e * 100;
348
- }
349
- let e = Math.max(1, b.max - b.min);
350
- return (C.value - b.min) / e * 100;
351
- }), pt = u(() => (D.value + ft.value) / 2), mt = u(() => {
352
- if (!x.value) return !1;
353
- let e = x.value.getBoundingClientRect().width;
354
- return D.value / 100 * e - pn.value / 2 < 0;
355
- }), ht = u(() => {
356
- if (!x.value) return !1;
357
- let e = x.value.getBoundingClientRect().width;
358
- return ft.value / 100 * e + mn.value / 2 > e;
359
- }), O = u(() => {
360
- let e = ht.value ? `calc(${pt.value}% - ${bn.value.width}px)` : mt.value ? `calc(${pt.value}% - 8px)` : `calc(${pt.value}% - ${bn.value.width / 2}px)`;
361
- return {
362
- left: `${D.value}%`,
363
- width: `${Math.max(0, ft.value - D.value)}%`,
364
- background: b.selectColor,
365
- tooltipLeft: `calc(${D.value}% - ${mt.value ? 9 : pn.value / 2}px)`,
366
- tooltipRight: `calc(${ft.value}% - ${ht.value ? mn.value - 9 : mn.value / 2}px)`,
367
- tooltipCenter: e,
368
- arrowLeft: !mt.value,
369
- arrowRight: !ht.value
370
- };
371
- }), k = u(() => Math.max(0, (N.value || 1) - 1)), gt = u(() => Math.max(0, (xn.value || 1) - 1));
372
- function _t(e) {
373
- return gt.value === 0 ? 0 : Math.round(e / gt.value * k.value);
374
- }
375
- function vt(e) {
376
- return k.value === 0 ? 0 : Math.round(e / k.value * gt.value);
377
- }
378
- let yt = (e) => Math.floor(b.min + e), bt = (e) => Math.ceil(b.min + e), xt = u({
379
- get() {
380
- return T.value ? _t(Q.value) : Number(S.value);
381
- },
382
- set(e) {
383
- if (T.value) {
384
- let t = Math.round(+e || 0), n = Math.max(0, _t(Math.max(0, $.value - 1))), r = vt(Math.min(Math.max(0, t), n));
385
- V(yt(r));
386
- } else {
387
- let t = Math.round(+e || 0), n = Number(C.value) - 1;
388
- V(Math.min(Math.max(b.min, t), n));
389
- }
390
- }
391
- }), St = u({
392
- get() {
393
- return T.value ? _t(Math.max(Q.value, $.value - 1)) : Number(C.value);
394
- },
395
- set(e) {
396
- if (T.value) {
397
- let t = Math.round(+e || 0), n = _t(Q.value), r = vt(Math.max(t, n));
398
- H(bt(r + 1));
399
- } else {
400
- let t = Math.round(+e || 0), n = Number(S.value) + 1;
401
- H(Math.max(n, Math.min(t, b.max)));
402
- }
403
- }
404
- }), Ct = u(() => b.inputColor), wt = u(() => b.background), Tt = u(() => `${b.selectColor}33`), A = u(() => b.borderColor), Et = u(() => {
405
- let e = [];
406
- for (let t = 0; t < b.max; t += 1) e.push(t);
407
- return e;
408
- });
409
- function Dt() {
410
- E("reset");
411
- }
412
- y(() => b.min, (e) => {
413
- Number(S.value) < Number(e) && (S.value = Number(e)), Number(C.value) < Number(e) && (C.value = Number(e));
414
- }), y(() => b.max, (e) => {
415
- Number(S.value) > Number(e) && (S.value = Number(e)), Number(C.value) > Number(e) && (C.value = Number(e));
416
- });
417
- let Ot = _(null), j = _({
418
- width: 1,
419
- height: 1
420
- }), M = _(null);
421
- ue(() => {
422
- if (w.value) {
423
- let e = ne(() => {
424
- let { width: e, height: t } = c({ chart: Ot.value });
425
- j.value.width = e, j.value.height = t - 47;
426
- });
427
- M.value = new ResizeObserver(e), M.value.observe(Ot.value);
428
- }
429
- }), le(() => {
430
- M.value && M.value.disconnect();
431
- });
432
- let N = u(() => Math.max(...b.allMinimaps.map((e) => e.series.length), b.minimap.length || 0)), P = u(() => {
433
- if (!N.value) return 0;
434
- let e = Math.max(1, N.value - +!!b.minimapCompact);
435
- return j.value.width / e;
436
- }), kt = u(() => {
437
- let e = [];
438
- if (Array.isArray(b.minimap) && b.minimap.length && b.minimapMerged && e.push(...b.minimap.filter(Number.isFinite)), Array.isArray(b.allMinimaps) && b.allMinimaps.length) for (let t of b.allMinimaps) t?.isVisible && Array.isArray(t?.series) && e.push(...t.series.filter(Number.isFinite));
439
- return e.length ? {
440
- min: Math.min(...e),
441
- max: Math.max(...e)
442
- } : {
443
- min: 0,
444
- max: 1
445
- };
446
- }), F = u(() => kt.value.min), I = u(() => kt.value.max), At = u(() => F.value < 0 && I.value > 0 || I.value <= 0 ? F.value : 0), jt = u(() => Math.max(1e-9, Math.max(Math.abs(F.value), Math.abs(I.value)))), Mt = u(() => F.value < 0 && I.value > 0), Nt = (e) => {
447
- let t = Math.max(1, j.value.height);
448
- if (Mt.value) {
449
- let n = jt.value;
450
- return (1 - (Math.max(-1, Math.min(1, e / n)) + 1) / 2) * t;
451
- } else {
452
- let n = Math.min(0, F.value), r = Math.max(0, I.value);
453
- return t - (e - n) / Math.max(1e-9, r - n) * t;
454
- }
455
- }, Pt = u(() => Nt(0)), Ft = u(() => b.allMinimaps.length ? b.allMinimaps.filter((e) => e.type === "bar").length : 0), It = u(() => P.value / (Ft.value || 1) * .8);
456
- function Lt(e, t, n) {
457
- let r = It.value, i = Math.max(1, Ft.value), a = N.value - 1;
458
- return n === 0 ? e + r / 2 * t : n === a ? e - r / 2 * (i - t) : e - i * r / 2 + t * r;
459
- }
460
- function Rt(e, t) {
461
- return [0, N.value - 1].includes(t) ? It.value / 2 : It.value;
462
- }
463
- function zt(e, t, n) {
464
- let r = (e, t, n) => Math.max(t, Math.min(n, e)), i = 1e-9;
465
- if (t <= 0) {
466
- let t = Math.max(i, 0 - e);
467
- return (r) => n - (r - e) / t * n;
468
- }
469
- if (e >= 0) {
470
- let e = Math.max(i, t - 0);
471
- return (t) => n - (t - 0) / e * n;
472
- }
473
- let a = Math.max(i, Math.max(Math.abs(e), Math.abs(t)));
474
- return (e) => (1 - (r(e / a, -1, 1) + 1) / 2) * n;
475
- }
476
- function Bt(i, a = !1) {
477
- if (!i || !i.length) return {
478
- fullSet: "",
479
- points: [],
480
- selectionSet: "",
481
- sliced: [],
482
- firstPlot: null,
483
- lastPlot: null,
484
- hasFull: !1,
485
- hasSelection: !1,
486
- fullMarkers: [],
487
- selectionMarkers: []
488
- };
489
- let o = Math.max(1, j.value.height), ee = zt(F.value, I.value, o), s = i.length, te = Math.min(Math.max(0, Q.value), Math.max(0, s - 1)), ne = Math.min(s, Math.max(te + 1, $.value)), c = i.map((e, t) => {
490
- let n = e, r = Number.isFinite(n), i = P.value * t + (b.minimapCompact ? 0 : P.value / 2), a = ee(0);
491
- return {
492
- x: i,
493
- y: r ? ee(n) : NaN,
494
- v: n,
495
- value: n == null ? null : r ? n : null,
496
- y0: a,
497
- i: t
498
- };
499
- }), re = (e) => e >= 0 && e < c.length && Number.isFinite(c[e]?.value), ie = c.filter((e) => Number.isFinite(e.value) && !re(e.i - 1) && !re(e.i + 1)), l = ie.filter((e) => e.i >= te && e.i < ne), u = c.slice(te, ne);
500
- return {
501
- fullSet: c.length >= 2 ? b.smoothMinimap || a ? b.cutNullValues ? t(c) : n(c.filter((e) => e.value != null)) : b.cutNullValues ? e(c) : r(c.filter((e) => e.value != null)) : "",
502
- points: c,
503
- selectionSet: u.length >= 2 ? b.smoothMinimap || a ? b.cutNullValues ? t(u) : n(u.filter((e) => e.value != null)) : b.cutNullValues ? e(u) : r(u.filter((e) => e.value != null)) : "",
504
- sliced: u,
505
- firstPlot: c[te] || null,
506
- lastPlot: c[Math.max(0, ne - 1)] || null,
507
- hasFull: c.length >= 2,
508
- hasSelection: u.length >= 2,
509
- fullMarkers: ie,
510
- selectionMarkers: l
511
- };
512
- }
513
- let L = u(() => b.minimap.length ? Bt(b.minimap) : {
514
- fullSet: "",
515
- selectionSet: "",
516
- sliced: [],
517
- firstPlot: null,
518
- lastPlot: null,
519
- hasFull: !1,
520
- hasSelection: !1
521
- }), R = u(() => b.allMinimaps.length ? b.allMinimaps.map((e, t) => {
522
- let n = Bt(e?.series || [], !!e.smooth), r = e?.id ?? e?.name ?? t;
523
- return {
524
- key: typeof r == "object" ? JSON.stringify(r) : String(r),
525
- color: e?.color,
526
- ...n,
527
- isVisible: e.isVisible,
528
- type: e.type || "line"
529
- };
530
- }) : []), z = u(() => {
531
- let e = Q.value, t = Math.max(e + 1, $.value);
532
- return {
533
- x: P.value * e + (b.minimapCompact ? 0 : P.value / 2),
534
- width: P.value * (t - e) - P.value
535
- };
536
- }), B = _(b.minimapSelectedIndex);
537
- function Vt(e) {
538
- B.value = Sn(b.valueStart) + e;
539
- }
540
- let Ht = te(Vt, 60);
541
- y(() => b.minimapSelectedIndex, (e, t) => {
542
- if ([null, void 0].includes(e)) {
543
- B.value = null;
544
- return;
545
- }
546
- e !== t && Ht(e);
547
- }, { immediate: !0 });
548
- function Ut(e) {
549
- B.value = e;
550
- let t = Q.value, n = $.value;
551
- e >= t && e < n && !J.value && E("trapMouse", e - t);
552
- }
553
- let Wt = _(null), Gt = _(null);
554
- function V(e) {
555
- S.value = e, Wt.value && (Wt.value.value = e), E("update:start", Number(S.value));
556
- }
557
- function H(e) {
558
- C.value = e, Gt.value && (Gt.value.value = e), E("update:end", Number(C.value));
559
- }
560
- let Kt = u(() => b.valueEnd - b.valueStart), qt = u(() => Kt.value < b.max - b.min), U = _(!1), Jt = _(null), Yt = u(() => (ut.value - 48) / (b.max - b.min) * Kt.value), Xt = u(() => Math.max(1, ut.value - ot - Yt.value)), Zt = u(() => Math.max(1, b.max - b.min - Kt.value)), Qt = u(() => Zt.value / Xt.value), $t = _(0), en = _(0), tn = _(0), nn = _(0), W = null, G = null, K = null, q = null, rn = _(b.min);
561
- function an(e) {
562
- if (!x.value) return b.min;
563
- let t = x.value.getBoundingClientRect(), n = t.left + ot / 2, r = t.right - ot / 2, i = Math.max(1, r - n), a = (Math.max(n, Math.min(e, r)) - n) / i, o = Math.max(1, b.max - b.min);
564
- return Math.round(b.min + a * o);
565
- }
566
- let on = async (e) => {
567
- if (Z.value = !0, !b.enableSelectionDrag) return;
568
- let t = e.type === "touchstart";
569
- t || e.stopPropagation();
570
- let n = t && e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null, r = t ? n ? n.target : null : e.target;
571
- if (!r || !(r instanceof Element) || r.classList && r.classList.contains("range-handle")) return;
572
- U.value = !0;
573
- let a = t ? n ? n.clientX : 0 : e.clientX;
574
- if (Jt.value = a, $t.value = a, b.focusOnDrag && !qt.value && x.value) {
575
- rn.value = an(a);
576
- let e = Math.min(.95, Math.max(.05, b.focusRangeRatio)), t = b.max - b.min, n = Math.max(1, Math.round(t * e)), r = Math.floor(n / 2), o = rn.value - r;
577
- o = Math.max(b.min, Math.min(o, b.max - n));
578
- let ee = Math.min(b.max, o + n);
579
- V(o), H(ee), i(x.value, "mouseup"), await se(), i(x.value, "mousedown", { clientX: a });
580
- }
581
- en.value = Number(S.value), tn.value = Number(C.value), nn.value = Qt.value, W = t ? "touchmove" : "mousemove", G = t ? "touchend" : "mouseup", K = t ? cn : sn, q = t ? dn : un, window.addEventListener(W, K, { passive: !1 }), window.addEventListener(G, q);
582
- };
583
- function sn(e) {
584
- U.value && ln(e.clientX);
585
- }
586
- function cn(e) {
587
- if (!U.value || !x.value) return;
588
- let t = e.target;
589
- if (!(t instanceof Element) || !x.value.contains(t) || t.classList && t.classList.contains("range-handle")) return;
590
- e.preventDefault();
591
- let n = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
592
- n && ln(n.clientX);
593
- }
594
- function ln(e) {
595
- if (!U.value) return;
596
- let t = an($t.value), n = an(e) - t, r = Math.max(1, tn.value - en.value), i = Math.round(en.value + n), a = b.min, o = b.max - r;
597
- i < a && (i = a), i > o && (i = o);
598
- let ee = i + r;
599
- V(i), H(ee);
600
- }
601
- function un() {
602
- fn();
603
- }
604
- function dn() {
605
- fn();
606
- }
607
- function fn() {
608
- U.value = !1, W && K && window.removeEventListener(W, K), G && q && window.removeEventListener(G, q), W = G = null, K = q = null;
609
- }
610
- let J = _(!1), Y = _(null), X = _(null), pn = _(1), mn = _(1), Z = _(!1);
611
- function hn() {
612
- Y.value && (pn.value = Y.value.getBoundingClientRect().width);
613
- }
614
- function gn() {
615
- X.value && (mn.value = X.value.getBoundingClientRect().width);
616
- }
617
- let _n = _(0);
618
- function vn(e) {
619
- _n.value = +(e === "start");
620
- }
621
- let yn = _(!1), bn = _({
622
- width: 0,
623
- left: 0
624
- });
625
- y([S, C], async () => {
626
- if (await se(), !Y.value || !X.value) {
627
- yn.value = !1, bn.value = {
628
- width: 0,
629
- left: 0
630
- };
631
- return;
632
- }
633
- let e = Y.value.getBoundingClientRect(), t = X.value.getBoundingClientRect();
634
- yn.value = e.x + e.width > t.x;
635
- let n = e.x + e.width / 2, r = t.x + t.width / 2, i = e.width + t.width, a = (n + r) / 2;
636
- bn.value = {
637
- width: i,
638
- left: a - i / 2
639
- };
640
- }), de(() => {
641
- hn(), gn();
642
- }), y(() => b.labelLeft, () => {
643
- se(hn);
644
- }, { deep: !0 }), y(() => b.labelRight, () => {
645
- se(gn);
646
- }, { deep: !0 }), st({
647
- setStartValue: V,
648
- setEndValue: H
649
- }), le(() => {
650
- M.value && M.value.disconnect(), W && K && window.removeEventListener(W, K), G && q && window.removeEventListener(G, q), W = G = null, K = q = null;
651
- });
652
- let xn = u(() => Math.max(1, b.max - b.min));
653
- function Sn(e) {
654
- let t = Math.floor(e - b.min);
655
- return Math.min(Math.max(0, t), xn.value);
656
- }
657
- function Cn(e) {
658
- let t = Math.ceil(e - b.min);
659
- return Math.min(Math.max(0, t), xn.value);
660
- }
661
- let Q = u(() => Sn(S.value)), $ = u(() => Cn(C.value)), wn = u(() => {
662
- if (!Et.value.length) return null;
663
- if (B.value >= Q.value && B.value < $.value) {
664
- let e = B.value;
665
- return {
666
- x1: P.value * e + (b.minimapCompact ? 0 : P.value / 2),
667
- x2: P.value * e + (b.minimapCompact ? 0 : P.value / 2),
668
- y1: 0,
669
- y2: Math.max(j.value.height, 0),
670
- stroke: b.minimapIndicatorColor,
671
- "stroke-linecap": "round",
672
- "stroke-dasharray": 2,
673
- "stroke-width": 1
674
- };
675
- } else return null;
676
- });
677
- return (e, t) => (g(), f("div", {
678
- "data-minimap": w.value,
679
- "data-dom-to-png-ignore": "",
680
- "data-dom-to-png-ignore-layout": "",
681
- style: h([{ padding: "0 48px" }, {
682
- maxWidth: s.maxWidth ? s.maxWidth + "px" : void 0,
683
- margin: s.maxWidth ? "0 auto" : void 0
684
- }]),
685
- class: "vue-data-ui-zoom",
686
- ref_key: "zoomWrapper",
687
- ref: x,
688
- onMousedown: on,
689
- onTouchstart: on,
690
- onTouchend: t[11] ||= (e) => Z.value = !1
691
- }, [p("div", ye, [s.valueStart !== s.refreshStartPoint || s.valueEnd !== dt.value ? (g(), f("div", be, [fe(e.$slots, "reset-action", { reset: Dt }, () => [p("button", {
692
- tabindex: "0",
693
- role: "button",
694
- class: "vue-data-ui-refresh-button",
695
- style: h({
696
- top: w.value ? "36px" : "-16px",
697
- cursor: s.isCursorPointer ? "pointer" : "default"
698
- }),
699
- onClick: Dt
700
- }, [ae(re, {
701
- name: "refresh",
702
- stroke: s.textColor
703
- }, null, 8, ["stroke"])], 4)], !0)])) : d("", !0)]), p("div", {
704
- class: "double-range-slider",
705
- ref_key: "minimapWrapper",
706
- ref: Ot,
707
- style: h([{ "z-index": "0" }, w.value ? {
708
- "--minimap-unit-px": P.value + "px",
709
- "--minimap-offset-px": (s.minimapCompact ? 0 : P.value / 2) + "px"
710
- } : void 0]),
711
- onMouseenter: t[9] ||= (e) => Z.value = !0,
712
- onMouseleave: t[10] ||= (e) => Z.value = !1
713
- }, [
714
- w.value ? (g(), f("div", xe, [(g(), f("svg", {
715
- key: `mm-${s.minimapMerged ? "merged" : "split"}-${s.minimapCompact ? "compact" : "normal"}`,
716
- xmlns: me(ee),
717
- viewBox: `0 0 ${Math.max(0, j.value.width)} ${Math.max(0, j.value.height)}`
718
- }, [
719
- p("defs", null, [ae(ie, {
720
- t: "linear",
721
- id: lt.value,
722
- x1: "0%",
723
- y1: "0%",
724
- x2: "0%",
725
- y2: "100%",
726
- stops: [[
727
- "0%",
728
- s.minimapLineColor,
729
- .31
730
- ], [
731
- "100%",
732
- "transparent",
733
- 0
734
- ]]
735
- }, null, 8, ["id", "stops"])]),
736
- s.minimapCompact ? (g(), f("rect", {
737
- key: 0,
738
- class: "vue-ui-zoom-minimap-frame",
739
- x: 0,
740
- y: 0,
741
- width: j.value.width,
742
- height: j.value.height,
743
- fill: "none",
744
- stroke: s.minimapFrameColor,
745
- rx: 3
746
- }, null, 8, Ce)) : d("", !0),
747
- s.minimapMerged ? (g(), f("path", {
748
- key: 1,
749
- d: `M${L.value.fullSet}`,
750
- stroke: `${s.minimapLineColor}`,
751
- fill: "none",
752
- "stroke-width": "1",
753
- "stroke-linecap": "round",
754
- "stroke-linejoin": "round",
755
- style: { opacity: "0.6" }
756
- }, null, 8, we)) : (g(), f(l, { key: 2 }, [(g(!0), f(l, null, v(R.value.filter((e) => e.type === "bar"), (e, t) => (g(), f("g", null, [(g(!0), f(l, null, v(e.points, (n, r) => (g(), f(l, null, [e.isVisible && !isNaN(n.y) ? (g(), f("rect", {
757
- key: 0,
758
- x: Lt(n.x, t, r),
759
- width: Rt(t, r),
760
- y: n.v >= 0 ? n.y : n.y0,
761
- height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
762
- fill: e.color,
763
- style: { opacity: "0.6" }
764
- }, null, 8, Te)) : d("", !0)], 64))), 256))]))), 256)), (g(!0), f(l, null, v(R.value.filter((e) => e.type === "line"), (e) => (g(), f("g", { key: String(e.key) }, [e.isVisible ? (g(), f("path", {
765
- key: 0,
766
- d: `M ${e.fullSet}`,
767
- fill: "none",
768
- stroke: e.color,
769
- style: { opacity: "0.6" }
770
- }, null, 8, Ee)) : d("", !0), e.isVisible ? (g(!0), f(l, { key: 1 }, v(e.fullMarkers, (t) => (g(), f("circle", {
771
- key: `sel-dot-under-${e.key}-${t.i}`,
772
- cx: t.x,
773
- cy: t.y,
774
- r: "2",
775
- fill: e.color,
776
- stroke: A.value,
777
- "stroke-width": "0.5",
778
- style: { opacity: "0.6" }
779
- }, null, 8, De))), 128)) : d("", !0)]))), 128))], 64)),
780
- p("rect", {
781
- x: z.value.x,
782
- width: z.value.width < 0 ? 0 : z.value.width,
783
- height: Math.max(j.value.height, 0),
784
- y: 0,
785
- fill: A.value,
786
- rx: s.minimapSelectionRadius,
787
- stroke: "none"
788
- }, null, 8, Oe),
789
- p("rect", {
790
- x: z.value.x,
791
- width: z.value.width < 0 ? 0 : z.value.width,
792
- height: Math.max(j.value.height, 0),
793
- y: 0,
794
- rx: s.minimapSelectionRadius,
795
- fill: A.value
796
- }, null, 8, ke),
797
- p("rect", {
798
- x: z.value.x,
799
- width: z.value.width < 0 ? 0 : z.value.width,
800
- height: Math.max(j.value.height, 0),
801
- y: 0,
802
- fill: s.minimapSelectedColor,
803
- rx: s.minimapSelectionRadius,
804
- style: h({ opacity: s.minimapSelectedColorOpacity })
805
- }, null, 12, Ae),
806
- B.value !== null && !J.value ? (g(), f("line", ce(oe({ key: 3 }, wn.value)), null, 16)) : d("", !0),
807
- !s.minimapMerged && At.value < 0 ? (g(), f("line", {
808
- key: 4,
809
- class: "slicer-minimap-zero-line",
810
- x1: 0,
811
- x2: j.value.width,
812
- y1: Pt.value,
813
- y2: Pt.value,
814
- stroke: s.minimapFrameColor,
815
- "stroke-width": "0.5"
816
- }, null, 8, je)) : d("", !0),
817
- s.minimapMerged ? (g(), f(l, { key: 5 }, [L.value && L.value.sliced && L.value.sliced.length ? (g(), f(l, { key: 0 }, [L.value.selectionSet ? (g(), f("path", {
818
- key: 0,
819
- d: `M${L.value.sliced[0].x},${Math.max(j.value.height, 0)} ${L.value.selectionSet} L${L.value.sliced[L.value.sliced.length - 1].x},${Math.max(j.value.height, 0)}Z`,
820
- fill: `url(#${lt.value})`,
821
- stroke: "none",
822
- style: { opacity: "1" }
823
- }, null, 8, Me)) : d("", !0), L.value.selectionSet ? (g(), f("path", {
824
- key: 1,
825
- d: `M ${L.value.selectionSet}`,
826
- stroke: `${s.minimapLineColor}`,
827
- fill: "transparent",
828
- "stroke-width": "2",
829
- "stroke-linecap": "round",
830
- "stroke-linejoin": "round"
831
- }, null, 8, Ne)) : d("", !0)], 64)) : d("", !0)], 64)) : (g(), f("g", Pe, [(g(!0), f(l, null, v(R.value.filter((e) => e.type === "bar"), (e, t) => (g(), f("g", null, [(g(!0), f(l, null, v(e.points, (n, r) => (g(), f(l, null, [e.isVisible && !isNaN(n.y) ? (g(), f("rect", {
832
- key: 0,
833
- x: Lt(n.x, t, r),
834
- width: Rt(t, r),
835
- y: n.v >= 0 ? n.y : n.y0,
836
- height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
837
- fill: e.color,
838
- style: h({ opacity: +(r >= s.valueStart && r <= s.valueEnd - 1) })
839
- }, null, 12, Fe)) : d("", !0)], 64))), 256))]))), 256)), (g(!0), f(l, null, v(R.value.filter((e) => e.type === "line"), (e) => (g(), f("g", { key: String(e.key) }, [e && e.hasSelection && e.selectionSet && e.isVisible ? (g(), f("path", {
840
- key: 0,
841
- d: `M ${e.selectionSet}`,
842
- stroke: e.color,
843
- fill: "transparent",
844
- "stroke-width": "2",
845
- "stroke-linecap": "round",
846
- "stroke-linejoin": "round"
847
- }, null, 8, Ie)) : d("", !0)]))), 128))])),
848
- w.value && s.minimapCompact ? (g(), f("rect", {
849
- key: 7,
850
- class: "vue-ui-zoom-compact-minimap-handle",
851
- x: z.value.x - Math.min(40, Math.max(20, s.handleWidth)),
852
- y: 0,
853
- width: Math.min(40, Math.max(20, s.handleWidth)),
854
- height: j.value.height,
855
- fill: s.handleFill || A.value,
856
- stroke: s.handleBorderColor || s.textColor,
857
- "stroke-width": s.handleBorderWidth,
858
- rx: 3
859
- }, null, 8, Le)) : d("", !0),
860
- s.handleType && s.handleType !== "empty" ? (g(), f("svg", {
861
- key: 8,
862
- x: z.value.x - Math.min(40, Math.max(20, s.handleWidth)),
863
- y: 0,
864
- width: Math.min(40, Math.max(20, s.handleWidth)),
865
- height: j.value.height,
866
- viewBox: "0 0 20 20"
867
- }, [s.handleType === "arrow" ? (g(), f("path", {
868
- key: 0,
869
- 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",
870
- fill: A.value,
871
- stroke: s.handleIconColor || s.textColor,
872
- "stroke-width": .618,
873
- "stroke-linejoin": "round",
874
- "stroke-linecap": "round"
875
- }, null, 8, ze)) : s.handleType === "chevron" ? (g(), f("path", {
876
- key: 1,
877
- d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
878
- fill: "none",
879
- stroke: s.handleIconColor || s.textColor,
880
- "stroke-width": .618,
881
- "stroke-linejoin": "round",
882
- "stroke-linecap": "round"
883
- }, null, 8, Be)) : s.handleType === "grab" ? (g(), f("path", {
884
- key: 2,
885
- 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",
886
- fill: s.handleIconColor || s.textColor,
887
- stroke: "none",
888
- opacity: "0.6"
889
- }, null, 8, Ve)) : d("", !0)], 8, Re)) : d("", !0),
890
- w.value && s.minimapCompact ? (g(), f("rect", {
891
- key: 9,
892
- class: "vue-ui-zoom-compact-minimap-handle",
893
- x: z.value.x + z.value.width,
894
- y: 0,
895
- width: Math.min(40, Math.max(20, s.handleWidth)),
896
- height: j.value.height,
897
- fill: s.handleFill || A.value,
898
- stroke: s.handleBorderColor || s.textColor,
899
- "stroke-width": s.handleBorderWidth,
900
- rx: 3
901
- }, null, 8, He)) : d("", !0),
902
- s.handleType && s.handleType !== "empty" ? (g(), f("svg", {
903
- key: 10,
904
- x: z.value.x + z.value.width,
905
- y: 0,
906
- width: Math.min(40, Math.max(20, s.handleWidth)),
907
- height: j.value.height,
908
- viewBox: "0 0 20 20"
909
- }, [s.handleType === "arrow" ? (g(), f("path", {
910
- key: 0,
911
- 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",
912
- fill: A.value,
913
- stroke: s.handleIconColor || s.textColor,
914
- "stroke-width": .618,
915
- "stroke-linejoin": "round",
916
- "stroke-linecap": "round"
917
- }, null, 8, We)) : s.handleType === "chevron" ? (g(), f("path", {
918
- key: 1,
919
- d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
920
- fill: "none",
921
- stroke: s.handleIconColor || s.textColor,
922
- "stroke-width": .618,
923
- "stroke-linejoin": "round",
924
- "stroke-linecap": "round"
925
- }, null, 8, Ge)) : s.handleType === "grab" ? (g(), f("path", {
926
- key: 2,
927
- 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",
928
- fill: s.handleIconColor || s.textColor,
929
- stroke: "none",
930
- opacity: "0.6"
931
- }, null, 8, Ke)) : d("", !0)], 8, Ue)) : d("", !0),
932
- s.minimapMerged ? (g(), f(l, { key: 11 }, [
933
- L.value && L.value.firstPlot && L.value.firstPlot.value !== null ? (g(), f("circle", {
934
- key: 0,
935
- cx: L.value.firstPlot.x,
936
- cy: L.value.firstPlot.y,
937
- "stroke-width": "0.5",
938
- stroke: A.value,
939
- r: "4",
940
- fill: s.minimapLineColor
941
- }, null, 8, qe)) : d("", !0),
942
- L.value && L.value.firstPlot && L.value.firstPlot.value !== null ? (g(), f("circle", {
943
- key: 1,
944
- cx: L.value.firstPlot.x,
945
- cy: L.value.firstPlot.y,
946
- r: "2",
947
- fill: A.value
948
- }, null, 8, Je)) : d("", !0),
949
- L.value && L.value.lastPlot && L.value.lastPlot.value !== null ? (g(), f("circle", {
950
- key: 2,
951
- cx: L.value.lastPlot.x,
952
- cy: L.value.lastPlot.y,
953
- "stroke-width": "0.5",
954
- stroke: A.value,
955
- r: "4",
956
- fill: s.minimapLineColor
957
- }, null, 8, Ye)) : d("", !0),
958
- L.value && L.value.lastPlot && L.value.lastPlot.value !== null ? (g(), f("circle", {
959
- key: 3,
960
- cx: L.value.lastPlot.x,
961
- cy: L.value.lastPlot.y,
962
- r: "2",
963
- fill: A.value
964
- }, null, 8, Xe)) : d("", !0)
965
- ], 64)) : (g(), f("g", Ze, [(g(!0), f(l, null, v(R.value.filter((e) => e.type === "line"), (e) => (g(), f("g", { key: String(e.key) }, [
966
- e.isVisible ? (g(!0), f(l, { key: 0 }, v(e.selectionMarkers, (t) => (g(), f("circle", {
967
- key: `sel-dot-${e.key}-${t.i}`,
968
- cx: t.x,
969
- cy: t.y,
970
- r: "2.5",
971
- fill: e.color,
972
- stroke: A.value,
973
- "stroke-width": "0.5"
974
- }, null, 8, Qe))), 128)) : d("", !0),
975
- e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (g(), f("circle", {
976
- key: 1,
977
- cx: e.firstPlot.x,
978
- cy: e.firstPlot.y,
979
- "stroke-width": "0.5",
980
- stroke: A.value,
981
- r: "4",
982
- fill: e.color
983
- }, null, 8, $e)) : d("", !0),
984
- e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (g(), f("circle", {
985
- key: 2,
986
- cx: e.firstPlot.x,
987
- cy: e.firstPlot.y,
988
- r: "2",
989
- fill: A.value
990
- }, null, 8, et)) : d("", !0),
991
- e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (g(), f("circle", {
992
- key: 3,
993
- cx: e.lastPlot.x,
994
- cy: e.lastPlot.y,
995
- "stroke-width": "0.5",
996
- stroke: A.value,
997
- r: "4",
998
- fill: e.color
999
- }, null, 8, tt)) : d("", !0),
1000
- e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (g(), f("circle", {
1001
- key: 4,
1002
- cx: e.lastPlot.x,
1003
- cy: e.lastPlot.y,
1004
- r: "2",
1005
- fill: A.value
1006
- }, null, 8, nt)) : d("", !0)
1007
- ]))), 128))])),
1008
- (g(!0), f(l, null, v(Et.value, (e, n) => (g(), f("rect", {
1009
- key: `trap-${n}`,
1010
- y: 0,
1011
- height: Math.max(j.value.height, 0),
1012
- fill: "transparent",
1013
- style: h([{ "pointer-events": "all !important" }, { cursor: e >= Q.value && e < $.value && s.enableSelectionDrag ? J.value ? "grabbing" : "grab" : "default" }]),
1014
- x: P.value * n - (s.minimapCompact ? P.value / 2 : 0),
1015
- width: P.value < 0 ? 0 : P.value,
1016
- onMousedown: t[0] ||= (e) => J.value = !0,
1017
- onMouseup: t[1] ||= (e) => J.value = !1,
1018
- onMouseenter: (t) => Ut(e),
1019
- onMouseleave: t[2] ||= (e) => {
1020
- B.value = null, E("trapMouse", null);
1021
- }
1022
- }, null, 44, rt))), 128))
1023
- ], 8, Se))])) : d("", !0),
1024
- p("div", {
1025
- class: "slider-track",
1026
- style: h({ visibility: w.value && s.minimapCompact ? "hidden" : "visible" })
1027
- }, null, 4),
1028
- p("div", {
1029
- class: m({
1030
- "range-highlight": !0,
1031
- move: s.enableSelectionDrag
1032
- }),
1033
- onMousedown: t[3] ||= (e) => J.value = !0,
1034
- onMouseup: t[4] ||= (e) => J.value = !1,
1035
- style: h({
1036
- ...O.value,
1037
- cursor: J.value ? "grabbing" : "grab",
1038
- visibility: w.value && s.minimapCompact ? "hidden" : "visible"
1039
- })
1040
- }, null, 38),
1041
- s.enableRangeHandles ? _e((g(), f("input", {
1042
- key: 1,
1043
- ref_key: "rangeStart",
1044
- ref: Wt,
1045
- type: "range",
1046
- class: m({
1047
- "range-left": !0,
1048
- "range-handle": !0,
1049
- "range-minimap": w.value && s.verticalHandles,
1050
- "range-invisible": w.value && s.minimapCompact
1051
- }),
1052
- min: s.min,
1053
- max: T.value && s.minimapCompact ? k.value : s.max,
1054
- step: 1,
1055
- "onUpdate:modelValue": t[5] ||= (e) => xt.value = e,
1056
- onMouseenter: t[6] ||= (e) => vn("start")
1057
- }, null, 42, it)), [[
1058
- ge,
1059
- xt.value,
1060
- void 0,
1061
- { number: !0 }
1062
- ]]) : d("", !0),
1063
- s.enableRangeHandles ? _e((g(), f("input", {
1064
- key: 2,
1065
- ref_key: "rangeEnd",
1066
- ref: Gt,
1067
- type: "range",
1068
- class: m({
1069
- "range-right": !0,
1070
- "range-handle": !0,
1071
- "range-minimap": w.value && s.verticalHandles,
1072
- "range-invisible": w.value && s.minimapCompact
1073
- }),
1074
- min: s.min,
1075
- max: T.value && s.minimapCompact ? k.value : s.max,
1076
- step: 1,
1077
- "onUpdate:modelValue": t[7] ||= (e) => St.value = e,
1078
- onMouseenter: t[8] ||= (e) => vn("end")
1079
- }, null, 42, at)), [[
1080
- ge,
1081
- St.value,
1082
- void 0,
1083
- { number: !0 }
1084
- ]]) : d("", !0),
1085
- s.labelLeft ? (g(), f("div", {
1086
- key: 3,
1087
- ref_key: "tooltipLeft",
1088
- ref: Y,
1089
- class: m({
1090
- "range-tooltip": !0,
1091
- "range-tooltip-visible": Z.value,
1092
- "range-tooltip-arrow": O.value.arrowLeft && !s.verticalHandles,
1093
- "range-tooltip-arrow-left": !O.value.arrowLeft && !s.verticalHandles
1094
- }),
1095
- style: h({
1096
- left: O.value.tooltipLeft,
1097
- color: me(o)(s.selectColor),
1098
- backgroundColor: s.selectColor,
1099
- border: `1px solid ${A.value}`,
1100
- zIndex: `${_n.value + 4}`,
1101
- visibility: yn.value || s.labelLeft === s.labelRight ? "hidden" : "visible",
1102
- top: w.value && s.minimapCompact ? "calc(-100% - 18px)" : "-100%"
1103
- })
1104
- }, pe(s.labelLeft), 7)) : d("", !0),
1105
- (yn.value || s.labelLeft === s.labelRight) && (s.labelLeft || s.labelRight) ? (g(), f("div", {
1106
- key: 4,
1107
- ref: "tooltipMerge",
1108
- class: m({
1109
- "range-tooltip": !0,
1110
- "range-tooltip-visible": Z.value,
1111
- "range-tooltip-arrow": !0,
1112
- "range-tooltip-arrow-left": !O.value.arrowLeft && !s.verticalHandles,
1113
- "range-tooltip-arrow-right": !O.value.arrowRight && !s.verticalHandles
1114
- }),
1115
- style: h({
1116
- left: O.value.tooltipCenter,
1117
- width: bn.value.width + "px",
1118
- color: me(o)(s.selectColor),
1119
- backgroundColor: s.selectColor,
1120
- border: `1px solid ${A.value}`,
1121
- zIndex: "4",
1122
- top: w.value && s.minimapCompact ? "calc(-100% - 18px)" : "-100%"
1123
- })
1124
- }, pe(s.labelLeft === s.labelRight ? s.labelLeft : `${s.labelLeft} - ${s.labelRight}`), 7)) : d("", !0),
1125
- s.labelRight ? (g(), f("div", {
1126
- key: 5,
1127
- ref_key: "tooltipRight",
1128
- ref: X,
1129
- class: m({
1130
- "range-tooltip": !0,
1131
- "range-tooltip-visible": Z.value,
1132
- "range-tooltip-arrow": O.value.arrowRight && !s.verticalHandles,
1133
- "range-tooltip-arrow-right": !O.value.arrowRight && !s.verticalHandles
1134
- }),
1135
- style: h({
1136
- left: O.value.tooltipRight,
1137
- color: me(o)(s.selectColor),
1138
- backgroundColor: s.selectColor,
1139
- border: `1px solid ${A.value}`,
1140
- zIndex: "4",
1141
- visibility: yn.value || s.labelLeft === s.labelRight ? "hidden" : "visible",
1142
- top: w.value && s.minimapCompact ? "calc(-100% - 18px)" : "-100%"
1143
- })
1144
- }, pe(s.labelRight), 7)) : d("", !0)
1145
- ], 36)], 44, ve));
1146
- }
1147
- }, [["__scopeId", "data-v-902e8a0c"]]);
1148
- //#endregion
1149
- export { st as t };