vue-data-ui 3.1.13 → 3.1.15

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 (92) hide show
  1. package/dist/{Arrow-CVLA4XvK.js → Arrow-BwVAy_Jw.js} +1 -1
  2. package/dist/{BaseDraggableDialog-R8VpARJu.js → BaseDraggableDialog-TS2ANP8W.js} +2 -2
  3. package/dist/{BaseIcon-CBGEVS_a.js → BaseIcon-Dj9csjZa.js} +1 -1
  4. package/dist/{ColorPicker-YzV_LGZx.js → ColorPicker-BKecww2B.js} +2 -2
  5. package/dist/{DataTable-DQRJv8EE.js → DataTable-DAc2s9Wi.js} +2 -2
  6. package/dist/{Legend-CC3LegoH.js → Legend-C3Kvktr3.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-CmIOGkib.js → NonSvgPenAndPaper-yA6HCA0i.js} +3 -3
  8. package/dist/{PackageVersion-bFI66Iee.js → PackageVersion-DL0EOwRR.js} +1 -1
  9. package/dist/{PenAndPaper-CHT5QaP8.js → PenAndPaper-CcoAkH79.js} +3 -3
  10. package/dist/{Shape-BWIW_Vmn.js → Shape-CziAQ1KL.js} +1 -1
  11. package/dist/Slicer-BMgEyKMg.js +995 -0
  12. package/dist/{SparkTooltip-BP53cKq5.js → SparkTooltip-BGqC2VSH.js} +1 -1
  13. package/dist/{Title-BKsDkvCV.js → Title-DRhv9bCG.js} +1 -1
  14. package/dist/{Tooltip-BA5KTZ2e.js → Tooltip-B46L8jx5.js} +1 -1
  15. package/dist/{UserOptions-usqWO4wC.js → UserOptions-CmhyvH7T.js} +2 -2
  16. package/dist/{dom-to-png-BnO878iN.js → dom-to-png-B2G1VN03.js} +1 -1
  17. package/dist/{img-CVbbqgGH.js → img-CRdZ0dzP.js} +1 -1
  18. package/dist/{index-CdN9MkL7.js → index-BS0jZusk.js} +871 -835
  19. package/dist/{pdf-D8ryJvtA.js → pdf-Gz1SfU0n.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +4 -0
  22. package/dist/types/vue-data-ui.d.ts +4 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-CXgpnPOp.js → useAutoSizeLabelsInsideViewbox-BPbMPvCk.js} +1 -1
  24. package/dist/{useNestedProp-oNhYagej.js → useNestedProp-BMfS1Wmb.js} +1 -1
  25. package/dist/{usePrinter-CLVErK_G.js → usePrinter-CsKq2kgt.js} +2 -2
  26. package/dist/{vue-data-ui-ESVJfqTI.js → vue-data-ui-BfnOSsYj.js} +64 -64
  27. package/dist/vue-data-ui.js +9 -9
  28. package/dist/{vue-ui-3d-bar-BEColjG7.js → vue-ui-3d-bar-BR_dgJX1.js} +6 -6
  29. package/dist/{vue-ui-accordion-BoGANFKn.js → vue-ui-accordion-CEzzDwYU.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-D4hV5Mm5.js → vue-ui-age-pyramid-CqzjgMzW.js} +6 -6
  31. package/dist/{vue-ui-annotator-Bd14Ihi4.js → vue-ui-annotator-OWSjXDfI.js} +2 -2
  32. package/dist/{vue-ui-bullet-B3HG400j.js → vue-ui-bullet-BkiVGK4U.js} +7 -7
  33. package/dist/{vue-ui-candlestick-B6l4oAdh.js → vue-ui-candlestick-CE9w-lrK.js} +140 -138
  34. package/dist/{vue-ui-carousel-table-vCbymZEo.js → vue-ui-carousel-table-DzMkFu9a.js} +4 -4
  35. package/dist/{vue-ui-chestnut-BQ6iufUt.js → vue-ui-chestnut-CwW3t_5M.js} +5 -5
  36. package/dist/{vue-ui-chord-DW8T8npL.js → vue-ui-chord-C273Dy7g.js} +8 -8
  37. package/dist/{vue-ui-circle-pack-DjWtxYMQ.js → vue-ui-circle-pack-DVsgg20A.js} +6 -6
  38. package/dist/{vue-ui-cursor-CtBfAk5K.js → vue-ui-cursor-6wDMRfxj.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CWuz7g2D.js → vue-ui-dashboard-Dr3da_KZ.js} +67 -67
  40. package/dist/{vue-ui-digits-D1b_EIv1.js → vue-ui-digits-CJl9xG57.js} +2 -2
  41. package/dist/{vue-ui-donut-BwdvzYGF.js → vue-ui-donut-CKvoDpr0.js} +8 -8
  42. package/dist/{vue-ui-donut-evolution-DXbshH8-.js → vue-ui-donut-evolution-B8z5HW6k.js} +62 -60
  43. package/dist/{vue-ui-dumbbell-Bt2y7QMw.js → vue-ui-dumbbell-C-aWCVEj.js} +7 -7
  44. package/dist/{vue-ui-flow-CiG_qIh_.js → vue-ui-flow-Cg0W7WX3.js} +7 -7
  45. package/dist/{vue-ui-funnel-BGCE6fqp.js → vue-ui-funnel-CfzyjhfB.js} +6 -6
  46. package/dist/{vue-ui-galaxy-BCEyVfRW.js → vue-ui-galaxy-CzswoWLZ.js} +7 -7
  47. package/dist/{vue-ui-gauge-Cfq8G4nD.js → vue-ui-gauge-BguKCg0e.js} +7 -7
  48. package/dist/{vue-ui-gizmo-CBOoJgxB.js → vue-ui-gizmo-mhU06gyJ.js} +3 -3
  49. package/dist/{vue-ui-heatmap-BefuX3hT.js → vue-ui-heatmap-BtAAQWmE.js} +7 -7
  50. package/dist/{vue-ui-history-plot-BqLyfnJn.js → vue-ui-history-plot-Clrvd4ZQ.js} +7 -7
  51. package/dist/{vue-ui-kpi-6IbtwB7F.js → vue-ui-kpi-DGpQpP2W.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-BwbFaE7B.js → vue-ui-mini-loader-2zvIBunp.js} +2 -2
  53. package/dist/{vue-ui-molecule-BbhQfFdx.js → vue-ui-molecule-DKgiZcBp.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-B-wVmA-t.js → vue-ui-mood-radar-ka0RoCHN.js} +7 -7
  55. package/dist/{vue-ui-nested-donuts-qKtWmJsI.js → vue-ui-nested-donuts-CvROIWCn.js} +7 -7
  56. package/dist/{vue-ui-onion-BpbpizLk.js → vue-ui-onion-x5qCIJUe.js} +8 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-BFK9LT6V.js → vue-ui-parallel-coordinate-plot-BaNQTR7G.js} +8 -8
  58. package/dist/{vue-ui-quadrant-D6_0xe-_.js → vue-ui-quadrant-Bde3xKLu.js} +8 -8
  59. package/dist/{vue-ui-quick-chart-Du7852v9.js → vue-ui-quick-chart-BpHyBn7x.js} +115 -113
  60. package/dist/{vue-ui-radar-kEKg-NL7.js → vue-ui-radar-DP3ErImt.js} +8 -8
  61. package/dist/{vue-ui-rating-7yatRVbx.js → vue-ui-rating-DCL2xb9w.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-_1W7NdYE.js → vue-ui-relation-circle-COt79-GJ.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-BSAVhIDE.js → vue-ui-ridgeline-Dcrii6_n.js} +8 -8
  64. package/dist/{vue-ui-rings-jK9EjGrJ.js → vue-ui-rings-CiDYRQIj.js} +8 -8
  65. package/dist/{vue-ui-scatter-BPthb9-8.js → vue-ui-scatter-D8bk6KJw.js} +8 -8
  66. package/dist/{vue-ui-skeleton-VW0h-sRm.js → vue-ui-skeleton-DZN6Q2RW.js} +3 -3
  67. package/dist/{vue-ui-smiley-DLOiHo-v.js → vue-ui-smiley-a9aOACpQ.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-BIYEAoE_.js → vue-ui-spark-trend-D2ySMA8w.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BfTF_hnD.js → vue-ui-sparkbar-CPKbBS4x.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-chrEmdPw.js → vue-ui-sparkgauge-YgppX8cI.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-Dr0-iYVk.js → vue-ui-sparkhistogram-BT-Pb999.js} +4 -4
  72. package/dist/{vue-ui-sparkline-B-R7lTuD.js → vue-ui-sparkline-DE_nT4bC.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-CGTlNpJY.js → vue-ui-sparkstackbar-3MV7U6sR.js} +3 -3
  74. package/dist/{vue-ui-stackbar-Dl2ks6xV.js → vue-ui-stackbar-wfRiGYFu.js} +54 -52
  75. package/dist/{vue-ui-strip-plot-DyCzm2FQ.js → vue-ui-strip-plot-BYDBbI0O.js} +7 -7
  76. package/dist/{vue-ui-table-heatmap-Cy56aBvN.js → vue-ui-table-heatmap-hOIbFD6k.js} +5 -5
  77. package/dist/{vue-ui-table-sparkline-BYoEkczS.js → vue-ui-table-sparkline-DNnOTTBh.js} +4 -4
  78. package/dist/{vue-ui-table-CMxWcytp.js → vue-ui-table-xG0KcrLD.js} +4 -4
  79. package/dist/{vue-ui-thermometer-B7wec2mE.js → vue-ui-thermometer-C8kZDjnk.js} +7 -7
  80. package/dist/{vue-ui-timer-CE61Pm8_.js → vue-ui-timer-BZxcYfbP.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BKfbwgE0.js → vue-ui-tiremarks-D5mpDWUN.js} +6 -6
  82. package/dist/{vue-ui-treemap-CDgTxZQG.js → vue-ui-treemap-RPa_dvoO.js} +8 -8
  83. package/dist/{vue-ui-vertical-bar-BDU24Fw1.js → vue-ui-vertical-bar-OwkTXcnm.js} +9 -9
  84. package/dist/{vue-ui-waffle-hdT1HxNy.js → vue-ui-waffle-DveHx6kc.js} +8 -8
  85. package/dist/{vue-ui-wheel-CB5VCBnY.js → vue-ui-wheel-Cyk4SL64.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-BGmRwhgL.js → vue-ui-word-cloud-BNmS-vjj.js} +6 -6
  87. package/dist/{vue-ui-world-Dgo59nPi.js → vue-ui-world-BhB1K_eL.js} +6 -6
  88. package/dist/vue-ui-xy-CfuSMzgb.js +4510 -0
  89. package/dist/{vue-ui-xy-canvas--NNe3yOn.js → vue-ui-xy-canvas-BFgpcPZ3.js} +132 -130
  90. package/package.json +1 -1
  91. package/dist/Slicer-C7BMIgYA.js +0 -972
  92. package/dist/vue-ui-xy-C9oTa60U.js +0 -4530
@@ -1,972 +0,0 @@
1
- import { useCssVars as It, computed as s, ref as m, onMounted as je, onBeforeUnmount as Se, watch as O, nextTick as Ce, onUpdated as Wt, createElementBlock as i, openBlock as u, createElementVNode as C, createCommentVNode as v, renderSlot as Ht, normalizeStyle as L, createVNode as Xt, withDirectives as _e, unref as ve, Fragment as y, renderList as N, normalizeProps as Gt, mergeProps as Ot, normalizeClass as U, vModelText as et, toDisplayString as Pe } from "vue";
2
- import { c as Ut, X as Zt, F as Ne, $ as tt, V as lt, a0 as at, U as nt } from "./index-CdN9MkL7.js";
3
- import { t as it, d as Yt, u as Jt } from "./useResponsive-DfdjqQps.js";
4
- import qt from "./BaseIcon-CBGEVS_a.js";
5
- import { _ as Kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- const Qt = {
7
- class: "vue-data-ui-slicer-labels",
8
- style: { position: "relative", "z-index": "1", "pointer-events": "none" }
9
- }, jt = {
10
- key: 0,
11
- style: { width: "100%", position: "relative" }
12
- }, _t = {
13
- key: 0,
14
- class: "minimap",
15
- style: { width: "100%" }
16
- }, el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"], al = ["width", "height", "stroke"], nl = ["d", "stroke"], il = ["x", "width", "y", "height", "fill"], ul = ["d", "stroke"], ol = ["cx", "cy", "fill", "stroke"], rl = ["x", "width", "height", "fill", "rx"], sl = ["x", "width", "height", "rx", "fill"], cl = ["x", "width", "height", "fill", "rx"], vl = ["x2", "y1", "y2", "stroke"], ml = ["d", "fill"], dl = ["d", "stroke"], hl = { key: 6 }, fl = ["x", "width", "y", "height", "fill"], gl = ["d", "stroke"], yl = ["x", "height", "fill", "stroke"], xl = ["x", "height", "fill", "stroke"], bl = ["cx", "cy", "stroke", "fill"], Ml = ["cx", "cy", "fill"], kl = ["cx", "cy", "stroke", "fill"], pl = ["cx", "cy", "fill"], wl = { key: 10 }, Sl = ["cx", "cy", "fill", "stroke"], Cl = ["cx", "cy", "stroke", "fill"], Pl = ["cx", "cy", "fill"], Nl = ["cx", "cy", "stroke", "fill"], $l = ["cx", "cy", "fill"], Ll = ["height", "x", "width", "onMouseenter"], Rl = ["min", "max"], El = ["min", "max"], Tl = 48, Vl = {
17
- __name: "Slicer",
18
- props: {
19
- background: {
20
- type: String,
21
- default: "#FFFFFF"
22
- },
23
- borderColor: {
24
- type: String,
25
- default: "#FFFFFF"
26
- },
27
- fontSize: {
28
- type: Number,
29
- default: 14
30
- },
31
- labelLeft: {
32
- type: [String, Number],
33
- default: ""
34
- },
35
- labelRight: {
36
- type: [String, Number],
37
- default: ""
38
- },
39
- textColor: {
40
- type: String,
41
- default: "#1A1A1A"
42
- },
43
- inputColor: {
44
- type: String,
45
- default: "#1A1A1A"
46
- },
47
- max: {
48
- type: Number,
49
- default: 0
50
- },
51
- min: {
52
- type: Number,
53
- default: 0
54
- },
55
- selectColor: {
56
- type: String,
57
- default: "#4A4A4A"
58
- },
59
- useResetSlot: {
60
- type: Boolean,
61
- default: !1
62
- },
63
- valueStart: {
64
- type: [Number, String],
65
- default: 0
66
- },
67
- valueEnd: {
68
- type: [Number, String],
69
- default: 0
70
- },
71
- minimap: {
72
- type: Array,
73
- default: []
74
- },
75
- smoothMinimap: {
76
- type: Boolean,
77
- default: !1
78
- },
79
- minimapSelectedColor: {
80
- type: String,
81
- default: "#1f77b4"
82
- },
83
- minimapSelectionRadius: {
84
- type: Number,
85
- default: 12
86
- },
87
- minimapLineColor: {
88
- type: String,
89
- default: "#2D353C"
90
- },
91
- minimapSelectedColorOpacity: {
92
- type: Number,
93
- default: 0.2
94
- },
95
- minimapSelectedIndex: {
96
- type: Number,
97
- default: null
98
- },
99
- minimapIndicatorColor: {
100
- type: String,
101
- default: "#2D353C"
102
- },
103
- refreshStartPoint: {
104
- type: Number,
105
- default: 0
106
- },
107
- refreshEndPoint: {
108
- type: Number,
109
- default: null
110
- },
111
- enableRangeHandles: {
112
- type: Boolean,
113
- default: !1
114
- },
115
- enableSelectionDrag: {
116
- type: Boolean,
117
- default: !0
118
- },
119
- verticalHandles: {
120
- type: Boolean,
121
- default: !1
122
- },
123
- minimapCompact: {
124
- type: Boolean,
125
- default: !1
126
- },
127
- allMinimaps: {
128
- type: Array,
129
- default() {
130
- return [];
131
- }
132
- },
133
- minimapMerged: {
134
- type: Boolean,
135
- default: !1
136
- },
137
- minimapFrameColor: {
138
- type: String,
139
- default: "#e1e5e8"
140
- },
141
- cutNullValues: {
142
- type: Boolean,
143
- default: !1
144
- }
145
- },
146
- emits: ["update:start", "update:end", "reset", "trapMouse"],
147
- setup(a, { expose: ut, emit: ot }) {
148
- It((e) => ({
149
- "0aad4c70": vt.value,
150
- dac23b88: f.value,
151
- "5c35d2ad": dt.value,
152
- "72d4236c": a.selectColor,
153
- "599e100c": mt.value
154
- }));
155
- const n = a, $ = m(null), k = m(n.min), p = m(n.max), x = s(() => !!n.minimap.length), $e = m(Ut()), R = s(() => x.value && n.minimapCompact), me = m(0);
156
- je(() => {
157
- const e = () => {
158
- $.value && (me.value = $.value.getBoundingClientRect().width);
159
- };
160
- e();
161
- const l = it(e, 50);
162
- window.addEventListener("resize", l), Se(() => {
163
- window.removeEventListener("resize", l);
164
- });
165
- });
166
- const rt = s(() => n.refreshEndPoint === null ? n.max : n.refreshEndPoint), Z = ot, Y = s(() => {
167
- if (R.value) {
168
- const l = Math.max(1, le.value - 1);
169
- return ye.value / l * 100;
170
- }
171
- const e = Math.max(1, n.max - n.min);
172
- return (k.value - n.min) / e * 100;
173
- }), ae = s(() => {
174
- if (R.value) {
175
- const l = Math.max(1, le.value - 1);
176
- return xe.value / l * 100;
177
- }
178
- const e = Math.max(1, n.max - n.min);
179
- return (p.value - n.min) / e * 100;
180
- }), de = s(() => (Y.value + ae.value) / 2), he = s(() => {
181
- if (!$.value) return !1;
182
- const e = $.value.getBoundingClientRect().width;
183
- return Y.value / 100 * e - we.value / 2 < 0;
184
- }), fe = s(() => {
185
- if (!$.value) return !1;
186
- const e = $.value.getBoundingClientRect().width;
187
- return ae.value / 100 * e + re.value / 2 > e;
188
- }), P = s(() => {
189
- const e = fe.value ? `calc(${de.value}% - ${te.value.width}px - 2px)` : he.value ? `calc(${de.value}% - 8px)` : `calc(${de.value}% - ${te.value.width / 2}px - 4px)`;
190
- return {
191
- left: `${Y.value}%`,
192
- width: `${Math.max(0, ae.value - Y.value)}%`,
193
- background: n.selectColor,
194
- tooltipLeft: `calc(${Y.value}% - ${he.value ? 9 : we.value / 2 + 3.5}px)`,
195
- tooltipRight: `calc(${ae.value}% - ${fe.value ? re.value - 9 : re.value / 2 - 3.5}px)`,
196
- tooltipCenter: e,
197
- arrowLeft: !he.value,
198
- arrowRight: !fe.value
199
- };
200
- }), J = s(() => Math.max(0, (q.value || 1) - 1)), ge = s(() => Math.max(0, (le.value || 1) - 1));
201
- function ne(e) {
202
- return ge.value === 0 ? 0 : Math.round(e / ge.value * J.value);
203
- }
204
- function Le(e) {
205
- return J.value === 0 ? 0 : Math.round(e / J.value * ge.value);
206
- }
207
- const st = (e) => Math.floor(n.min + e), ct = (e) => Math.ceil(n.min + e), ye = s({
208
- get() {
209
- return R.value ? ne(z.value) : Number(k.value);
210
- },
211
- set(e) {
212
- if (R.value) {
213
- const l = Math.round(+e || 0), t = Math.max(0, ne(Math.max(0, W.value - 1))), o = Math.min(Math.max(0, l), t), r = Le(o);
214
- ie(st(r));
215
- } else {
216
- let l = Math.round(+e || 0);
217
- const t = Number(p.value) - 1, o = Math.min(Math.max(n.min, l), t);
218
- ie(o);
219
- }
220
- }
221
- }), xe = s({
222
- get() {
223
- return R.value ? ne(Math.max(z.value, W.value - 1)) : Number(p.value);
224
- },
225
- set(e) {
226
- if (R.value) {
227
- const l = Math.round(+e || 0), t = ne(z.value), o = Math.max(l, t), r = Le(o);
228
- ue(ct(r + 1));
229
- } else {
230
- let l = Math.round(+e || 0);
231
- const t = Number(k.value) + 1, o = Math.max(t, Math.min(l, n.max));
232
- ue(o);
233
- }
234
- }
235
- }), vt = s(() => n.inputColor), mt = s(() => n.background), dt = s(() => `${n.selectColor}33`), f = s(() => n.borderColor), Re = s(() => {
236
- const e = [];
237
- for (let l = 0; l < n.max; l += 1)
238
- e.push(l);
239
- return e;
240
- });
241
- function Ee() {
242
- Z("reset");
243
- }
244
- O(
245
- () => n.min,
246
- (e) => {
247
- Number(k.value) < Number(e) && (k.value = Number(e)), Number(p.value) < Number(e) && (p.value = Number(e));
248
- }
249
- ), O(
250
- () => n.max,
251
- (e) => {
252
- Number(k.value) > Number(e) && (k.value = Number(e)), Number(p.value) > Number(e) && (p.value = Number(e));
253
- }
254
- );
255
- const be = m(null), h = m({
256
- width: 1,
257
- height: 1
258
- }), X = m(null);
259
- je(() => {
260
- if (x.value) {
261
- const e = it(() => {
262
- const { width: l, height: t } = Jt({
263
- chart: be.value
264
- });
265
- h.value.width = l, h.value.height = t - 47;
266
- });
267
- X.value = new ResizeObserver(e), X.value.observe(be.value);
268
- }
269
- }), Se(() => {
270
- X.value && X.value.disconnect();
271
- });
272
- const q = s(() => Math.max(...n.allMinimaps.map((e) => e.series.length), n.minimap.length || 0)), b = s(() => {
273
- if (!q.value) return 0;
274
- const e = Math.max(1, q.value - (n.minimapCompact ? 1 : 0));
275
- return h.value.width / e;
276
- }), Te = s(() => {
277
- const e = [];
278
- if (Array.isArray(n.minimap) && n.minimap.length && n.minimapMerged && e.push(...n.minimap.filter(Number.isFinite)), Array.isArray(n.allMinimaps) && n.allMinimaps.length)
279
- for (const l of n.allMinimaps)
280
- l?.isVisible && Array.isArray(l?.series) && e.push(...l.series.filter(Number.isFinite));
281
- return e.length ? { min: Math.min(...e), max: Math.max(...e) } : { min: 0, max: 1 };
282
- }), D = s(() => Te.value.min), G = s(() => Te.value.max), ht = s(() => D.value < 0 && G.value > 0 || G.value <= 0 ? D.value : 0), ft = s(() => Math.max(1e-9, Math.max(Math.abs(D.value), Math.abs(G.value)))), gt = s(() => D.value < 0 && G.value > 0), yt = (e) => {
283
- const l = Math.max(1, h.value.height);
284
- if (gt.value) {
285
- const t = ft.value;
286
- return (1 - (Math.max(-1, Math.min(1, e / t)) + 1) / 2) * l;
287
- } else {
288
- const t = Math.min(0, D.value), o = Math.max(0, G.value);
289
- return l - (e - t) / Math.max(1e-9, o - t) * l;
290
- }
291
- }, Ve = s(() => yt(0)), Ae = s(() => n.allMinimaps.length ? n.allMinimaps.filter((e) => e.type === "bar").length : 0), Me = s(() => b.value / (Ae.value || 1) * 0.8);
292
- function Fe(e, l, t) {
293
- const o = Me.value, r = Math.max(1, Ae.value), g = q.value - 1;
294
- return t === 0 ? e + o / 2 * l : t === g ? e - o / 2 * (r - l) : e - r * o / 2 + l * o;
295
- }
296
- function Be(e, l) {
297
- return [0, q.value - 1].includes(l) ? Me.value / 2 : Me.value;
298
- }
299
- function xt(e, l, t) {
300
- const o = (S, d, se) => Math.max(d, Math.min(se, S));
301
- if (l <= 0) {
302
- const S = Math.max(1e-9, 0 - e);
303
- return (d) => t - (d - e) / S * t;
304
- }
305
- if (e >= 0) {
306
- const S = Math.max(1e-9, l - 0);
307
- return (d) => t - (d - 0) / S * t;
308
- }
309
- const g = Math.max(1e-9, Math.max(Math.abs(e), Math.abs(l)));
310
- return (S) => (1 - (o(S / g, -1, 1) + 1) / 2) * t;
311
- }
312
- function ze(e, l = !1) {
313
- if (!e || !e.length)
314
- return {
315
- fullSet: "",
316
- points: [],
317
- selectionSet: "",
318
- sliced: [],
319
- firstPlot: null,
320
- lastPlot: null,
321
- hasFull: !1,
322
- hasSelection: !1,
323
- fullMarkers: [],
324
- selectionMarkers: []
325
- };
326
- const t = Math.max(1, h.value.height), o = xt(D.value, G.value, t), r = e.length, g = Math.min(Math.max(0, z.value), Math.max(0, r - 1)), S = Math.min(r, Math.max(g + 1, W.value)), d = e.map((M, Ke) => {
327
- const ce = n.cutNullValues ? M : M === null ? 0 : M, Qe = Number.isFinite(ce), zt = b.value * Ke + (n.minimapCompact ? 0 : b.value / 2), Dt = o(0);
328
- return {
329
- x: zt,
330
- y: Qe ? o(ce) : NaN,
331
- v: ce,
332
- value: Qe ? ce : null,
333
- y0: Dt,
334
- i: Ke
335
- };
336
- }), se = (M) => M >= 0 && M < d.length && Number.isFinite(d[M]?.value), qe = d.filter((M) => Number.isFinite(M.value) && !se(M.i - 1) && !se(M.i + 1)), At = qe.filter((M) => M.i >= g && M.i < S), H = d.slice(g, S), Ft = d.length >= 2 ? n.smoothMinimap || l ? n.cutNullValues ? tt(d) : lt(d) : n.cutNullValues ? at(d) : nt(d) : "", Bt = H.length >= 2 ? n.smoothMinimap || l ? n.cutNullValues ? tt(H) : lt(H) : n.cutNullValues ? at(H) : nt(H) : "";
337
- return {
338
- fullSet: Ft,
339
- points: d,
340
- selectionSet: Bt,
341
- sliced: H,
342
- firstPlot: d[g] || null,
343
- lastPlot: d[Math.max(0, S - 1)] || null,
344
- hasFull: d.length >= 2,
345
- hasSelection: H.length >= 2,
346
- fullMarkers: qe,
347
- selectionMarkers: At
348
- };
349
- }
350
- const c = s(() => n.minimap.length ? ze(n.minimap) : {
351
- fullSet: "",
352
- selectionSet: "",
353
- sliced: [],
354
- firstPlot: null,
355
- lastPlot: null,
356
- hasFull: !1,
357
- hasSelection: !1
358
- }), K = s(() => n.allMinimaps.length ? n.allMinimaps.map((e, l) => {
359
- const t = ze(e?.series || [], !!e.smooth), o = e?.id ?? e?.name ?? l;
360
- return {
361
- key: typeof o == "object" ? JSON.stringify(o) : String(o),
362
- color: e?.color,
363
- ...t,
364
- isVisible: e.isVisible,
365
- type: e.type || "line"
366
- };
367
- }) : []), w = s(() => {
368
- const e = z.value, l = Math.max(e + 1, W.value);
369
- return {
370
- x: b.value * e + (n.minimapCompact ? 0 : b.value / 2),
371
- width: b.value * (l - e) - b.value
372
- };
373
- }), E = m(n.minimapSelectedIndex);
374
- function bt(e) {
375
- E.value = Je(n.valueStart) + e;
376
- }
377
- const Mt = Yt(bt, 60);
378
- O(() => n.minimapSelectedIndex, (e, l) => {
379
- if ([null, void 0].includes(e)) {
380
- E.value = null;
381
- return;
382
- }
383
- e !== l && Mt(e);
384
- }, { immediate: !0 });
385
- function kt(e) {
386
- E.value = e;
387
- const l = z.value, t = W.value;
388
- e >= l && e < t && !B.value && Z("trapMouse", e - l);
389
- }
390
- const ke = m(null), pe = m(null);
391
- function ie(e) {
392
- k.value = e, ke.value && (ke.value.value = e), Z("update:start", Number(k.value));
393
- }
394
- function ue(e) {
395
- p.value = e, pe.value && (pe.value.value = e), Z("update:end", Number(p.value));
396
- }
397
- const oe = s(() => n.valueEnd - n.valueStart), Q = m(!1);
398
- let pt = m(null);
399
- const wt = s(() => (me.value - 48) / (n.max - n.min) * oe.value), St = s(() => Math.max(1, me.value - Tl - wt.value)), Ct = s(() => Math.max(1, n.max - n.min - oe.value)), Pt = s(() => Ct.value / St.value), De = m(0), Ie = m(0), Nt = m(0), We = m(0);
400
- let T = null, V = null, A = null, F = null;
401
- const He = (e) => {
402
- if (I.value = !0, !n.enableSelectionDrag) return;
403
- const l = e.type === "touchstart";
404
- l || e.stopPropagation();
405
- const t = l && e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null, o = l ? t ? t.target : null : e.target;
406
- if (!o || !(o instanceof Element) || o.classList && o.classList.contains("range-handle")) return;
407
- Q.value = !0;
408
- const r = l ? t ? t.clientX : 0 : e.clientX;
409
- pt.value = r, De.value = r, Ie.value = Number(k.value), Nt.value = Number(p.value), We.value = Pt.value, T = l ? "touchmove" : "mousemove", V = l ? "touchend" : "mouseup", A = l ? Lt : $t, F = l ? Et : Rt, window.addEventListener(T, A, { passive: !1 }), window.addEventListener(V, F);
410
- };
411
- function $t(e) {
412
- Q.value && Xe(e.clientX);
413
- }
414
- function Lt(e) {
415
- if (!Q.value || !$.value) return;
416
- const l = e.target;
417
- if (!(l instanceof Element) || !$.value.contains(l) || l.classList && l.classList.contains("range-handle")) return;
418
- e.preventDefault();
419
- const t = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
420
- t && Xe(t.clientX);
421
- }
422
- function Xe(e) {
423
- if (!Q.value) return;
424
- const t = (e - De.value) * We.value;
425
- let o = Math.round(Ie.value + t);
426
- o = Math.max(n.min, Math.min(o, n.max - oe.value));
427
- const r = o + oe.value;
428
- ie(o), ue(r);
429
- }
430
- function Rt() {
431
- Ge();
432
- }
433
- function Et() {
434
- Ge();
435
- }
436
- function Ge() {
437
- Q.value = !1, T && A && window.removeEventListener(T, A), V && F && window.removeEventListener(V, F), T = V = null, A = F = null;
438
- }
439
- const B = m(!1), j = m(null), _ = m(null), we = m(1), re = m(1), I = m(!1);
440
- function Oe() {
441
- j.value && (we.value = j.value.getBoundingClientRect().width);
442
- }
443
- function Ue() {
444
- _.value && (re.value = _.value.getBoundingClientRect().width);
445
- }
446
- const Ze = m(0);
447
- function Ye(e) {
448
- Ze.value = e === "start" ? 1 : 0;
449
- }
450
- const ee = m(!1), te = m({
451
- width: 0,
452
- left: 0
453
- });
454
- O([k, p], async () => {
455
- if (await Ce(), !j.value || !_.value) {
456
- ee.value = !1, te.value = { width: 0, left: 0 };
457
- return;
458
- }
459
- const e = j.value.getBoundingClientRect(), l = _.value.getBoundingClientRect();
460
- ee.value = e.x + e.width > l.x;
461
- const t = e.x + e.width / 2, o = l.x + l.width / 2, r = e.width + l.width, g = (t + o) / 2;
462
- te.value = {
463
- width: r,
464
- left: g - r / 2
465
- };
466
- }), Wt(() => {
467
- Oe(), Ue();
468
- }), O(
469
- () => n.labelLeft,
470
- () => {
471
- Ce(Oe);
472
- },
473
- { deep: !0 }
474
- ), O(
475
- () => n.labelRight,
476
- () => {
477
- Ce(Ue);
478
- },
479
- { deep: !0 }
480
- ), ut({
481
- setStartValue: ie,
482
- setEndValue: ue
483
- }), Se(() => {
484
- X.value && X.value.disconnect(), T && A && window.removeEventListener(T, A), V && F && window.removeEventListener(V, F), T = V = null, A = F = null;
485
- });
486
- const le = s(() => Math.max(1, n.max - n.min));
487
- function Je(e) {
488
- const l = Math.floor(e - n.min);
489
- return Math.min(Math.max(0, l), le.value);
490
- }
491
- function Tt(e) {
492
- const l = Math.ceil(e - n.min);
493
- return Math.min(Math.max(0, l), le.value);
494
- }
495
- const z = s(() => Je(k.value)), W = s(() => Tt(p.value)), Vt = s(() => {
496
- if (!Re.value.length) return null;
497
- if (E.value >= z.value && E.value < W.value) {
498
- const e = E.value;
499
- return {
500
- x1: b.value * e + (n.minimapCompact ? 0 : b.value / 2),
501
- x2: b.value * e + (n.minimapCompact ? 0 : b.value / 2),
502
- y1: 0,
503
- y2: Math.max(h.value.height, 0),
504
- stroke: n.minimapIndicatorColor,
505
- "stroke-linecap": "round",
506
- "stroke-dasharray": 2,
507
- "stroke-width": 1
508
- };
509
- } else
510
- return null;
511
- });
512
- return (e, l) => (u(), i("div", {
513
- "data-dom-to-png-ignore": "",
514
- style: { padding: "0 24px" },
515
- class: "vue-data-ui-zoom",
516
- ref_key: "zoomWrapper",
517
- ref: $,
518
- onMousedown: He,
519
- onTouchstart: He,
520
- onTouchend: l[11] || (l[11] = (t) => I.value = !1)
521
- }, [
522
- C("div", Qt, [
523
- a.valueStart !== a.refreshStartPoint || a.valueEnd !== rt.value ? (u(), i("div", jt, [
524
- a.useResetSlot ? Ht(e.$slots, "reset-action", {
525
- key: 1,
526
- reset: Ee
527
- }, void 0, !0) : (u(), i("button", {
528
- key: 0,
529
- tabindex: "0",
530
- role: "button",
531
- class: "vue-data-ui-refresh-button",
532
- style: L({
533
- top: x.value ? "36px" : "-16px",
534
- pointerEvents: "all !important"
535
- }),
536
- onClick: Ee
537
- }, [
538
- Xt(qt, {
539
- name: "refresh",
540
- stroke: a.textColor
541
- }, null, 8, ["stroke"])
542
- ], 4))
543
- ])) : v("", !0)
544
- ]),
545
- C("div", {
546
- class: "double-range-slider",
547
- ref_key: "minimapWrapper",
548
- ref: be,
549
- style: { "z-index": "0" },
550
- onMouseenter: l[9] || (l[9] = (t) => I.value = !0),
551
- onMouseleave: l[10] || (l[10] = (t) => I.value = !1)
552
- }, [
553
- x.value ? (u(), i("div", _t, [
554
- (u(), i("svg", {
555
- key: `mm-${a.minimapMerged ? "merged" : "split"}-${a.minimapCompact ? "compact" : "normal"}`,
556
- xmlns: ve(Zt),
557
- viewBox: `0 0 ${Math.max(0, h.value.width)} ${Math.max(0, h.value.height)}`
558
- }, [
559
- C("defs", null, [
560
- C("linearGradient", {
561
- id: $e.value,
562
- x1: "0%",
563
- y1: "0%",
564
- x2: "0%",
565
- y2: "100%"
566
- }, [
567
- C("stop", {
568
- offset: "0%",
569
- "stop-color": `${a.minimapLineColor}50`
570
- }, null, 8, ll),
571
- l[12] || (l[12] = C("stop", {
572
- offset: "100%",
573
- "stop-color": "transparent"
574
- }, null, -1))
575
- ], 8, tl)
576
- ]),
577
- a.minimapCompact ? (u(), i("rect", {
578
- key: 0,
579
- class: "vue-ui-zoom-minimap-frame",
580
- x: 0,
581
- y: 0,
582
- width: h.value.width,
583
- height: h.value.height,
584
- fill: "none",
585
- stroke: a.minimapFrameColor,
586
- rx: 3
587
- }, null, 8, al)) : v("", !0),
588
- a.minimapMerged ? (u(), i("path", {
589
- key: 1,
590
- d: `M${c.value.fullSet}`,
591
- stroke: `${a.minimapLineColor}`,
592
- fill: "none",
593
- "stroke-width": "1",
594
- "stroke-linecap": "round",
595
- "stroke-linejoin": "round",
596
- style: { opacity: "0.6" }
597
- }, null, 8, nl)) : (u(), i(y, { key: 2 }, [
598
- (u(!0), i(y, null, N(K.value.filter((t) => t.type === "bar"), (t, o) => (u(), i("g", null, [
599
- (u(!0), i(y, null, N(t.points, (r, g) => (u(), i(y, null, [
600
- t.isVisible && !isNaN(r.y) ? (u(), i("rect", {
601
- key: 0,
602
- x: Fe(r.x, o, g),
603
- width: Be(o, g),
604
- y: r.v >= 0 ? r.y : r.y0,
605
- height: r.v >= 0 ? r.y0 - r.y : r.y - r.y0,
606
- fill: t.color,
607
- style: { opacity: "0.6" }
608
- }, null, 8, il)) : v("", !0)
609
- ], 64))), 256))
610
- ]))), 256)),
611
- (u(!0), i(y, null, N(K.value.filter((t) => t.type === "line"), (t) => (u(), i("g", {
612
- key: String(t.key)
613
- }, [
614
- t.isVisible ? (u(), i("path", {
615
- key: 0,
616
- d: `M ${t.fullSet}`,
617
- fill: "none",
618
- stroke: t.color,
619
- style: { opacity: "0.6" }
620
- }, null, 8, ul)) : v("", !0),
621
- t.isVisible ? (u(!0), i(y, { key: 1 }, N(t.fullMarkers, (o) => (u(), i("circle", {
622
- key: `sel-dot-under-${t.key}-${o.i}`,
623
- cx: o.x,
624
- cy: o.y,
625
- r: "2",
626
- fill: t.color,
627
- stroke: f.value,
628
- "stroke-width": "0.5",
629
- style: { opacity: "0.6" }
630
- }, null, 8, ol))), 128)) : v("", !0)
631
- ]))), 128))
632
- ], 64)),
633
- C("rect", {
634
- x: w.value.x,
635
- width: w.value.width < 0 ? 0 : w.value.width,
636
- height: Math.max(h.value.height, 0),
637
- y: 0,
638
- fill: f.value,
639
- rx: a.minimapSelectionRadius,
640
- stroke: "none"
641
- }, null, 8, rl),
642
- C("rect", {
643
- x: w.value.x,
644
- width: w.value.width < 0 ? 0 : w.value.width,
645
- height: Math.max(h.value.height, 0),
646
- y: 0,
647
- rx: a.minimapSelectionRadius,
648
- fill: f.value
649
- }, null, 8, sl),
650
- C("rect", {
651
- x: w.value.x,
652
- width: w.value.width < 0 ? 0 : w.value.width,
653
- height: Math.max(h.value.height, 0),
654
- y: 0,
655
- fill: a.minimapSelectedColor,
656
- rx: a.minimapSelectionRadius,
657
- style: L({
658
- opacity: a.minimapSelectedColorOpacity
659
- })
660
- }, null, 12, cl),
661
- E.value !== null && !B.value ? (u(), i("line", Gt(Ot({ key: 3 }, Vt.value)), null, 16)) : v("", !0),
662
- !a.minimapMerged && ht.value < 0 ? (u(), i("line", {
663
- key: 4,
664
- class: "slicer-minimap-zero-line",
665
- x1: 0,
666
- x2: h.value.width,
667
- y1: Ve.value,
668
- y2: Ve.value,
669
- stroke: a.minimapFrameColor,
670
- "stroke-width": "0.5"
671
- }, null, 8, vl)) : v("", !0),
672
- a.minimapMerged ? (u(), i(y, { key: 5 }, [
673
- c.value && c.value.sliced && c.value.sliced.length ? (u(), i(y, { key: 0 }, [
674
- c.value.selectionSet ? (u(), i("path", {
675
- key: 0,
676
- d: `M${c.value.sliced[0].x},${Math.max(h.value.height, 0)} ${c.value.selectionSet} L${c.value.sliced[c.value.sliced.length - 1].x},${Math.max(h.value.height, 0)}Z`,
677
- fill: `url(#${$e.value})`,
678
- stroke: "none",
679
- style: { opacity: "1" }
680
- }, null, 8, ml)) : v("", !0),
681
- c.value.selectionSet ? (u(), i("path", {
682
- key: 1,
683
- d: `M ${c.value.selectionSet}`,
684
- stroke: `${a.minimapLineColor}`,
685
- fill: "transparent",
686
- "stroke-width": "2",
687
- "stroke-linecap": "round",
688
- "stroke-linejoin": "round"
689
- }, null, 8, dl)) : v("", !0)
690
- ], 64)) : v("", !0)
691
- ], 64)) : (u(), i("g", hl, [
692
- (u(!0), i(y, null, N(K.value.filter((t) => t.type === "bar"), (t, o) => (u(), i("g", null, [
693
- (u(!0), i(y, null, N(t.points, (r, g) => (u(), i(y, null, [
694
- t.isVisible && !isNaN(r.y) ? (u(), i("rect", {
695
- key: 0,
696
- x: Fe(r.x, o, g),
697
- width: Be(o, g),
698
- y: r.v >= 0 ? r.y : r.y0,
699
- height: r.v >= 0 ? r.y0 - r.y : r.y - r.y0,
700
- fill: t.color,
701
- style: L({
702
- opacity: g >= a.valueStart && g <= a.valueEnd - 1 ? 1 : 0
703
- })
704
- }, null, 12, fl)) : v("", !0)
705
- ], 64))), 256))
706
- ]))), 256)),
707
- (u(!0), i(y, null, N(K.value.filter((t) => t.type === "line"), (t) => (u(), i("g", {
708
- key: String(t.key)
709
- }, [
710
- t && t.hasSelection && t.selectionSet && t.isVisible ? (u(), i("path", {
711
- key: 0,
712
- d: `M ${t.selectionSet}`,
713
- stroke: t.color,
714
- fill: "transparent",
715
- "stroke-width": "2",
716
- "stroke-linecap": "round",
717
- "stroke-linejoin": "round"
718
- }, null, 8, gl)) : v("", !0)
719
- ]))), 128))
720
- ])),
721
- x.value && a.minimapCompact ? (u(), i("rect", {
722
- key: 7,
723
- class: "vue-ui-zoom-compact-minimap-handle",
724
- x: w.value.x - 8,
725
- y: 0,
726
- width: 8,
727
- height: h.value.height,
728
- fill: f.value,
729
- stroke: a.textColor,
730
- rx: 3
731
- }, null, 8, yl)) : v("", !0),
732
- x.value && a.minimapCompact ? (u(), i("rect", {
733
- key: 8,
734
- class: "vue-ui-zoom-compact-minimap-handle",
735
- x: w.value.x + w.value.width,
736
- y: 0,
737
- width: 8,
738
- height: h.value.height,
739
- fill: f.value,
740
- stroke: a.textColor,
741
- rx: 3
742
- }, null, 8, xl)) : v("", !0),
743
- a.minimapMerged ? (u(), i(y, { key: 9 }, [
744
- c.value && c.value.firstPlot && c.value.firstPlot.value !== null ? (u(), i("circle", {
745
- key: 0,
746
- cx: c.value.firstPlot.x,
747
- cy: c.value.firstPlot.y,
748
- "stroke-width": "0.5",
749
- stroke: f.value,
750
- r: "4",
751
- fill: a.minimapLineColor
752
- }, null, 8, bl)) : v("", !0),
753
- c.value && c.value.firstPlot && c.value.firstPlot.value !== null ? (u(), i("circle", {
754
- key: 1,
755
- cx: c.value.firstPlot.x,
756
- cy: c.value.firstPlot.y,
757
- r: "2",
758
- fill: f.value
759
- }, null, 8, Ml)) : v("", !0),
760
- c.value && c.value.lastPlot && c.value.lastPlot.value !== null ? (u(), i("circle", {
761
- key: 2,
762
- cx: c.value.lastPlot.x,
763
- cy: c.value.lastPlot.y,
764
- "stroke-width": "0.5",
765
- stroke: f.value,
766
- r: "4",
767
- fill: a.minimapLineColor
768
- }, null, 8, kl)) : v("", !0),
769
- c.value && c.value.lastPlot && c.value.lastPlot.value !== null ? (u(), i("circle", {
770
- key: 3,
771
- cx: c.value.lastPlot.x,
772
- cy: c.value.lastPlot.y,
773
- r: "2",
774
- fill: f.value
775
- }, null, 8, pl)) : v("", !0)
776
- ], 64)) : (u(), i("g", wl, [
777
- (u(!0), i(y, null, N(K.value.filter((t) => t.type === "line"), (t) => (u(), i("g", {
778
- key: String(t.key)
779
- }, [
780
- t.isVisible ? (u(!0), i(y, { key: 0 }, N(t.selectionMarkers, (o) => (u(), i("circle", {
781
- key: `sel-dot-${t.key}-${o.i}`,
782
- cx: o.x,
783
- cy: o.y,
784
- r: "2.5",
785
- fill: t.color,
786
- stroke: f.value,
787
- "stroke-width": "0.5"
788
- }, null, 8, Sl))), 128)) : v("", !0),
789
- t && t.firstPlot && t.isVisible && t.firstPlot.value !== null ? (u(), i("circle", {
790
- key: 1,
791
- cx: t.firstPlot.x,
792
- cy: t.firstPlot.y,
793
- "stroke-width": "0.5",
794
- stroke: f.value,
795
- r: "4",
796
- fill: t.color
797
- }, null, 8, Cl)) : v("", !0),
798
- t && t.firstPlot && t.isVisible && t.firstPlot.value !== null ? (u(), i("circle", {
799
- key: 2,
800
- cx: t.firstPlot.x,
801
- cy: t.firstPlot.y,
802
- r: "2",
803
- fill: f.value
804
- }, null, 8, Pl)) : v("", !0),
805
- t && t.lastPlot && t.isVisible && t.lastPlot.value !== null ? (u(), i("circle", {
806
- key: 3,
807
- cx: t.lastPlot.x,
808
- cy: t.lastPlot.y,
809
- "stroke-width": "0.5",
810
- stroke: f.value,
811
- r: "4",
812
- fill: t.color
813
- }, null, 8, Nl)) : v("", !0),
814
- t && t.lastPlot && t.isVisible && t.lastPlot.value !== null ? (u(), i("circle", {
815
- key: 4,
816
- cx: t.lastPlot.x,
817
- cy: t.lastPlot.y,
818
- r: "2",
819
- fill: f.value
820
- }, null, 8, $l)) : v("", !0)
821
- ]))), 128))
822
- ])),
823
- (u(!0), i(y, null, N(Re.value, (t, o) => (u(), i("rect", {
824
- y: 0,
825
- height: Math.max(h.value.height, 0),
826
- fill: "transparent",
827
- style: L([{ "pointer-events": "all !important" }, {
828
- cursor: t >= z.value && t < W.value && a.enableSelectionDrag ? B.value ? "grabbing" : "grab" : "default"
829
- }]),
830
- x: b.value * o - (a.minimapCompact ? b.value / 2 : 0),
831
- width: b.value < 0 ? 0 : b.value,
832
- onMousedown: l[0] || (l[0] = (r) => B.value = !0),
833
- onMouseup: l[1] || (l[1] = (r) => B.value = !1),
834
- onMouseenter: (r) => kt(t),
835
- onMouseleave: l[2] || (l[2] = (r) => {
836
- E.value = null, Z("trapMouse", null);
837
- })
838
- }, null, 44, Ll))), 256))
839
- ], 8, el))
840
- ])) : v("", !0),
841
- C("div", {
842
- class: "slider-track",
843
- style: L({ visibility: x.value && a.minimapCompact ? "hidden" : "visible" })
844
- }, null, 4),
845
- C("div", {
846
- class: U({
847
- "range-highlight": !0,
848
- move: a.enableSelectionDrag
849
- }),
850
- onMousedown: l[3] || (l[3] = (t) => B.value = !0),
851
- onMouseup: l[4] || (l[4] = (t) => B.value = !1),
852
- style: L({
853
- ...P.value,
854
- cursor: B.value ? "grabbing" : "grab",
855
- visibility: x.value && a.minimapCompact ? "hidden" : "visible"
856
- })
857
- }, null, 38),
858
- a.enableRangeHandles ? _e((u(), i("input", {
859
- key: 1,
860
- ref_key: "rangeStart",
861
- ref: ke,
862
- type: "range",
863
- class: U({
864
- "range-left": !0,
865
- "range-handle": !0,
866
- "range-minimap": x.value && a.verticalHandles,
867
- "range-invisible": x.value && a.minimapCompact
868
- }),
869
- min: a.min,
870
- max: R.value && a.minimapCompact ? J.value : a.max,
871
- step: 1,
872
- "onUpdate:modelValue": l[5] || (l[5] = (t) => ye.value = t),
873
- onMouseenter: l[6] || (l[6] = (t) => Ye("start"))
874
- }, null, 42, Rl)), [
875
- [
876
- et,
877
- ye.value,
878
- void 0,
879
- { number: !0 }
880
- ]
881
- ]) : v("", !0),
882
- a.enableRangeHandles ? _e((u(), i("input", {
883
- key: 2,
884
- ref_key: "rangeEnd",
885
- ref: pe,
886
- type: "range",
887
- class: U({
888
- "range-right": !0,
889
- "range-handle": !0,
890
- "range-minimap": x.value && a.verticalHandles,
891
- "range-invisible": x.value && a.minimapCompact
892
- }),
893
- min: a.min,
894
- max: R.value && a.minimapCompact ? J.value : a.max,
895
- step: 1,
896
- "onUpdate:modelValue": l[7] || (l[7] = (t) => xe.value = t),
897
- onMouseenter: l[8] || (l[8] = (t) => Ye("end"))
898
- }, null, 42, El)), [
899
- [
900
- et,
901
- xe.value,
902
- void 0,
903
- { number: !0 }
904
- ]
905
- ]) : v("", !0),
906
- a.labelLeft ? (u(), i("div", {
907
- key: 3,
908
- ref_key: "tooltipLeft",
909
- ref: j,
910
- class: U({
911
- "range-tooltip": !0,
912
- "range-tooltip-visible": I.value,
913
- "range-tooltip-arrow": P.value.arrowLeft && !a.verticalHandles,
914
- "range-tooltip-arrow-left": !P.value.arrowLeft && !a.verticalHandles
915
- }),
916
- style: L({
917
- left: P.value.tooltipLeft,
918
- color: ve(Ne)(a.selectColor),
919
- backgroundColor: a.selectColor,
920
- border: `1px solid ${f.value}`,
921
- zIndex: `${Ze.value + 4}`,
922
- visibility: ee.value || a.labelLeft === a.labelRight ? "hidden" : "visible",
923
- top: x.value && a.minimapCompact ? "calc(-100% - 18px)" : "-100%"
924
- })
925
- }, Pe(a.labelLeft), 7)) : v("", !0),
926
- (ee.value || a.labelLeft === a.labelRight) && (a.labelLeft || a.labelRight) ? (u(), i("div", {
927
- key: 4,
928
- ref: "tooltipMerge",
929
- class: U({
930
- "range-tooltip": !0,
931
- "range-tooltip-visible": I.value,
932
- "range-tooltip-arrow": !0,
933
- "range-tooltip-arrow-left": !P.value.arrowLeft && !a.verticalHandles,
934
- "range-tooltip-arrow-right": !P.value.arrowRight && !a.verticalHandles
935
- }),
936
- style: L({
937
- left: P.value.tooltipCenter,
938
- width: te.value.width + "px",
939
- color: ve(Ne)(a.selectColor),
940
- backgroundColor: a.selectColor,
941
- border: `1px solid ${f.value}`,
942
- zIndex: "4",
943
- top: x.value && a.minimapCompact ? "calc(-100% - 18px)" : "-100%"
944
- })
945
- }, Pe(a.labelLeft === a.labelRight ? a.labelLeft : `${a.labelLeft} - ${a.labelRight}`), 7)) : v("", !0),
946
- a.labelRight ? (u(), i("div", {
947
- key: 5,
948
- ref_key: "tooltipRight",
949
- ref: _,
950
- class: U({
951
- "range-tooltip": !0,
952
- "range-tooltip-visible": I.value,
953
- "range-tooltip-arrow": P.value.arrowRight && !a.verticalHandles,
954
- "range-tooltip-arrow-right": !P.value.arrowRight && !a.verticalHandles
955
- }),
956
- style: L({
957
- left: P.value.tooltipRight,
958
- color: ve(Ne)(a.selectColor),
959
- backgroundColor: a.selectColor,
960
- border: `1px solid ${f.value}`,
961
- zIndex: "4",
962
- visibility: ee.value || a.labelLeft === a.labelRight ? "hidden" : "visible",
963
- top: x.value && a.minimapCompact ? "calc(-100% - 18px)" : "-100%"
964
- })
965
- }, Pe(a.labelRight), 7)) : v("", !0)
966
- ], 544)
967
- ], 544));
968
- }
969
- }, Il = /* @__PURE__ */ Kt(Vl, [["__scopeId", "data-v-b7301f20"]]);
970
- export {
971
- Il as S
972
- };