vue-data-ui 3.1.6 → 3.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/README.md +37 -37
  2. package/dist/{Arrow-DtlAIKPQ.js → Arrow-BgpCSKiw.js} +1 -1
  3. package/dist/{BaseDraggableDialog-BVZPPMT9.js → BaseDraggableDialog-4cNvzMfi.js} +2 -2
  4. package/dist/{BaseIcon-D_BjQBAR.js → BaseIcon-BxgIVnCu.js} +1 -1
  5. package/dist/{ColorPicker-BeJGNqJl.js → ColorPicker-VOFdB4GY.js} +2 -2
  6. package/dist/{DataTable-IycMkaTU.js → DataTable-Mt5_INYw.js} +2 -2
  7. package/dist/{Legend-D7l8BJ7z.js → Legend-3CKwL5Wo.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-BK5M9Lt9.js → NonSvgPenAndPaper-BG5Mp8-S.js} +3 -3
  9. package/dist/{PackageVersion-BtfT0hV9.js → PackageVersion-9HA7ZN6u.js} +1 -1
  10. package/dist/{PenAndPaper-BdzDJYnr.js → PenAndPaper-CK3pXon8.js} +3 -3
  11. package/dist/{Shape-DD3SLpa4.js → Shape-DC3qeycD.js} +1 -1
  12. package/dist/Slicer-CRtDozJ_.js +931 -0
  13. package/dist/{SparkTooltip-DAfofSes.js → SparkTooltip-BIrLMERo.js} +1 -1
  14. package/dist/{Title-DbQthJAs.js → Title-Bjd-1xjp.js} +1 -1
  15. package/dist/{Tooltip-DvtYLrX2.js → Tooltip-DBkwWUMF.js} +1 -1
  16. package/dist/{UserOptions-Dd5XOrwq.js → UserOptions-DOc0dPiT.js} +2 -2
  17. package/dist/{dom-to-png-j6qE-sAL.js → dom-to-png-ib1QEVbF.js} +1 -1
  18. package/dist/{img-DLgjML7h.js → img-Dot7cGKX.js} +1 -1
  19. package/dist/{index-C0wrF8hm.js → index-D0aGpITF.js} +105 -100
  20. package/dist/{pdf-Csglybwj.js → pdf-plTy35oc.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +6 -0
  23. package/dist/types/vue-data-ui.d.ts +6 -0
  24. package/dist/{useAutoSizeLabelsInsideViewbox-Bj3DhGbZ.js → useAutoSizeLabelsInsideViewbox-ZbX5_z1t.js} +1 -1
  25. package/dist/{useNestedProp-Bg2FlIgI.js → useNestedProp-24j5ySor.js} +1 -1
  26. package/dist/{usePrinter-C2jvouU0.js → usePrinter-83vS002b.js} +2 -2
  27. package/dist/{vue-data-ui-DaOijb0V.js → vue-data-ui--_tNs3PB.js} +64 -64
  28. package/dist/vue-data-ui.js +1 -1
  29. package/dist/{vue-ui-3d-bar-BbW6NaRc.js → vue-ui-3d-bar-BCXe_TlX.js} +6 -6
  30. package/dist/{vue-ui-accordion-3JuSLBjV.js → vue-ui-accordion-eylX-9G4.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-D94C1TOK.js → vue-ui-age-pyramid-C4qft5Bj.js} +6 -6
  32. package/dist/{vue-ui-annotator-Jq_yw0h7.js → vue-ui-annotator-1lcGoxDB.js} +2 -2
  33. package/dist/{vue-ui-bullet-ajwy7d-R.js → vue-ui-bullet-BHxaOyMm.js} +7 -7
  34. package/dist/{vue-ui-candlestick-vMGbmNWA.js → vue-ui-candlestick-VEUw3NHh.js} +7 -7
  35. package/dist/{vue-ui-carousel-table-DydTCm2Z.js → vue-ui-carousel-table-DNv0j-uW.js} +4 -4
  36. package/dist/{vue-ui-chestnut-D6AP76wU.js → vue-ui-chestnut-CVyfTZa1.js} +5 -5
  37. package/dist/{vue-ui-chord-Du8GJXPN.js → vue-ui-chord-Bf-WZRrB.js} +8 -8
  38. package/dist/{vue-ui-circle-pack-C-C3OGW_.js → vue-ui-circle-pack-BTcgUb9a.js} +6 -6
  39. package/dist/{vue-ui-cursor-B70FlDqP.js → vue-ui-cursor-CnNB_YkF.js} +2 -2
  40. package/dist/{vue-ui-dashboard-DrFCH7LP.js → vue-ui-dashboard-BZr26TJ1.js} +67 -67
  41. package/dist/{vue-ui-digits-CQy-vOC2.js → vue-ui-digits-Dru4BNMH.js} +2 -2
  42. package/dist/{vue-ui-donut-D0RdN18d.js → vue-ui-donut-BCn7ozHp.js} +8 -8
  43. package/dist/{vue-ui-donut-evolution-naYIvk-b.js → vue-ui-donut-evolution-B-SUaQKu.js} +8 -8
  44. package/dist/{vue-ui-dumbbell-D6b7WMTy.js → vue-ui-dumbbell-BgQX8R_K.js} +7 -7
  45. package/dist/{vue-ui-flow-Dh8_ii-s.js → vue-ui-flow-Dm9fGyZA.js} +7 -7
  46. package/dist/{vue-ui-funnel-Ct4e9chO.js → vue-ui-funnel-TxggX88y.js} +6 -6
  47. package/dist/{vue-ui-galaxy-Dqklv14X.js → vue-ui-galaxy-CsipGa1z.js} +7 -7
  48. package/dist/{vue-ui-gauge-D-vHj5J1.js → vue-ui-gauge-BosHacW2.js} +7 -7
  49. package/dist/{vue-ui-gizmo-Cn0d1lVH.js → vue-ui-gizmo-DFa49sEK.js} +3 -3
  50. package/dist/{vue-ui-heatmap-BpcoDwpi.js → vue-ui-heatmap-C9SS6Gba.js} +7 -7
  51. package/dist/{vue-ui-history-plot-D8tmNUHo.js → vue-ui-history-plot-BP98x8s2.js} +7 -7
  52. package/dist/{vue-ui-kpi-88Bguk6S.js → vue-ui-kpi-D5OUgxps.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-VDpWxyls.js → vue-ui-mini-loader-BP3gflCh.js} +2 -2
  54. package/dist/{vue-ui-molecule-Cn8yeJLZ.js → vue-ui-molecule-DRHBBs-F.js} +5 -5
  55. package/dist/{vue-ui-mood-radar-DidC77_K.js → vue-ui-mood-radar-Ch7z83Uf.js} +7 -7
  56. package/dist/{vue-ui-nested-donuts-D1EZ91Wm.js → vue-ui-nested-donuts-CfUFWEjl.js} +9 -10
  57. package/dist/{vue-ui-onion-B_mir5Ax.js → vue-ui-onion-Bl8WwzrC.js} +8 -8
  58. package/dist/{vue-ui-parallel-coordinate-plot-DRbJyqiQ.js → vue-ui-parallel-coordinate-plot-BurwAXfR.js} +8 -8
  59. package/dist/{vue-ui-quadrant-D7ihdCkd.js → vue-ui-quadrant-CIyW030A.js} +8 -8
  60. package/dist/{vue-ui-quick-chart-Dwc1xJtX.js → vue-ui-quick-chart-BARjlbvR.js} +606 -582
  61. package/dist/{vue-ui-radar-DhsgkGwF.js → vue-ui-radar-Bmr9hUIc.js} +8 -8
  62. package/dist/{vue-ui-rating-D_sWv7fR.js → vue-ui-rating-Bw1x-cFB.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-CAvYwKpm.js → vue-ui-relation-circle-CapvonjX.js} +7 -7
  64. package/dist/{vue-ui-ridgeline-DuWQX2OI.js → vue-ui-ridgeline-Bp48HFv-.js} +8 -8
  65. package/dist/{vue-ui-rings-BrBkOGZk.js → vue-ui-rings-i5VyqvGC.js} +8 -8
  66. package/dist/{vue-ui-scatter--kNBhPeG.js → vue-ui-scatter-uRK6iD0_.js} +8 -8
  67. package/dist/{vue-ui-skeleton-B6Y0yxOn.js → vue-ui-skeleton-C3SJsXcS.js} +3 -3
  68. package/dist/{vue-ui-smiley-B7tZsNRS.js → vue-ui-smiley-kXO2t82E.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-Dy5C9uny.js → vue-ui-spark-trend-JFgrbzdV.js} +3 -3
  70. package/dist/{vue-ui-sparkbar-9NN07DOT.js → vue-ui-sparkbar-CcDvHOC5.js} +3 -3
  71. package/dist/{vue-ui-sparkgauge-iV-u83Ie.js → vue-ui-sparkgauge--udog0U1.js} +3 -3
  72. package/dist/{vue-ui-sparkhistogram-X47TDKC2.js → vue-ui-sparkhistogram-e0iWjcGB.js} +4 -4
  73. package/dist/{vue-ui-sparkline-C67Y3c7l.js → vue-ui-sparkline-DRqsYKXj.js} +3 -3
  74. package/dist/{vue-ui-sparkstackbar-Bzmq9peq.js → vue-ui-sparkstackbar-BtnxBp0b.js} +3 -3
  75. package/dist/{vue-ui-stackbar-C0cn-5Sz.js → vue-ui-stackbar-Da8gi0va.js} +9 -9
  76. package/dist/{vue-ui-strip-plot-D3StIxYT.js → vue-ui-strip-plot-C6pCJzC2.js} +7 -7
  77. package/dist/{vue-ui-table-B-wP544v.js → vue-ui-table-Cvka-9t8.js} +554 -520
  78. package/dist/{vue-ui-table-heatmap-_qJwOiYG.js → vue-ui-table-heatmap-B76q7OUm.js} +5 -5
  79. package/dist/{vue-ui-table-sparkline-C6MoeyKm.js → vue-ui-table-sparkline-BkIHosOJ.js} +4 -4
  80. package/dist/{vue-ui-thermometer-BmYZiNK4.js → vue-ui-thermometer-CGiCADFh.js} +7 -7
  81. package/dist/{vue-ui-timer-XeLnI_ia.js → vue-ui-timer-BMXfoR5s.js} +5 -5
  82. package/dist/{vue-ui-tiremarks-CnCSAQiH.js → vue-ui-tiremarks-Brmi2HYv.js} +6 -6
  83. package/dist/{vue-ui-treemap-Nd27H4H5.js → vue-ui-treemap-COkHHmNa.js} +8 -8
  84. package/dist/{vue-ui-vertical-bar-Dd1XUvnp.js → vue-ui-vertical-bar-Dw5MLw1I.js} +9 -9
  85. package/dist/{vue-ui-waffle-Czg-z9KF.js → vue-ui-waffle-DlHJ-vf3.js} +8 -8
  86. package/dist/{vue-ui-wheel-DfPu-QQM.js → vue-ui-wheel-Cs-mcVTV.js} +6 -6
  87. package/dist/{vue-ui-word-cloud-CB9_bPjO.js → vue-ui-word-cloud-BotvFbwv.js} +6 -6
  88. package/dist/{vue-ui-world-Bo_NzzhJ.js → vue-ui-world-CABqnS6s.js} +6 -6
  89. package/dist/vue-ui-xy-BBYf_jl_.js +4456 -0
  90. package/dist/{vue-ui-xy-canvas-D1Do33ar.js → vue-ui-xy-canvas-Cg3smgrp.js} +10 -10
  91. package/package.json +1 -1
  92. package/dist/Slicer-DoGlWyq_.js +0 -596
  93. package/dist/vue-ui-xy-Dc-o6Q3R.js +0 -4132
@@ -0,0 +1,931 @@
1
+ import { useCssVars as $t, computed as s, ref as m, onMounted as qe, onBeforeUnmount as we, watch as H, nextTick as Se, onUpdated as Nt, createElementBlock as i, openBlock as o, createElementVNode as k, createCommentVNode as c, renderSlot as Et, normalizeStyle as P, createVNode as Tt, withDirectives as Ke, unref as ce, Fragment as y, renderList as R, normalizeClass as X, vModelText as Qe, toDisplayString as Ce } from "vue";
2
+ import { c as At, X as Ft, F as Le, V as je, U as _e } from "./index-D0aGpITF.js";
3
+ import { t as et, u as Bt } from "./useResponsive-DfdjqQps.js";
4
+ import Vt from "./BaseIcon-BxgIVnCu.js";
5
+ import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const Dt = {
7
+ class: "vue-data-ui-slicer-labels",
8
+ style: { position: "relative", "z-index": "1", "pointer-events": "none" }
9
+ }, It = {
10
+ key: 0,
11
+ style: { width: "100%", position: "relative" }
12
+ }, Wt = {
13
+ key: 0,
14
+ class: "minimap",
15
+ style: { width: "100%" }
16
+ }, Ht = ["xmlns", "viewBox"], Xt = ["id"], Gt = ["stop-color"], Ot = ["width", "height", "stroke"], Ut = ["d", "stroke"], Zt = ["x", "width", "y", "height", "fill"], Yt = ["d", "stroke"], Jt = ["x", "width", "height", "fill", "rx"], qt = ["x", "width", "height", "rx", "fill"], Kt = ["x", "width", "height", "fill", "rx"], Qt = ["x1", "x2", "y2", "stroke"], jt = ["x2", "y1", "y2", "stroke"], _t = ["d", "fill"], el = ["d", "stroke"], tl = { key: 6 }, ll = ["x", "width", "y", "height", "fill"], al = ["d", "stroke"], nl = ["x", "height", "fill", "stroke"], il = ["x", "height", "fill", "stroke"], ol = ["cx", "cy", "stroke", "fill"], ul = ["cx", "cy", "fill"], rl = ["cx", "cy", "stroke", "fill"], sl = ["cx", "cy", "fill"], cl = { key: 10 }, vl = ["cx", "cy", "stroke", "fill"], ml = ["cx", "cy", "fill"], dl = ["cx", "cy", "stroke", "fill"], hl = ["cx", "cy", "fill"], fl = ["height", "x", "width", "onMouseenter"], gl = ["min", "max"], xl = ["min", "max"], yl = 48, bl = {
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
+ },
142
+ emits: ["update:start", "update:end", "reset", "trapMouse"],
143
+ setup(a, { expose: tt, emit: lt }) {
144
+ $t((e) => ({
145
+ "74db0030": ot.value,
146
+ "0cd088a4": f.value,
147
+ "759b0b15": rt.value,
148
+ "25f46c58": a.selectColor,
149
+ "144dab3c": ut.value
150
+ }));
151
+ const n = a, L = m(null), b = m(n.min), M = m(n.max), g = s(() => !!n.minimap.length), Pe = m(At()), $ = s(() => g.value && n.minimapCompact), ve = m(0);
152
+ qe(() => {
153
+ const e = () => {
154
+ L.value && (ve.value = L.value.getBoundingClientRect().width);
155
+ };
156
+ e();
157
+ const l = et(e, 50);
158
+ window.addEventListener("resize", l), we(() => {
159
+ window.removeEventListener("resize", l);
160
+ });
161
+ });
162
+ const at = s(() => n.refreshEndPoint === null ? n.max : n.refreshEndPoint), G = lt, O = s(() => {
163
+ if ($.value) {
164
+ const l = Math.max(1, te.value - 1);
165
+ return ge.value / l * 100;
166
+ }
167
+ const e = Math.max(1, n.max - n.min);
168
+ return (b.value - n.min) / e * 100;
169
+ }), ae = s(() => {
170
+ if ($.value) {
171
+ const l = Math.max(1, te.value - 1);
172
+ return xe.value / l * 100;
173
+ }
174
+ const e = Math.max(1, n.max - n.min);
175
+ return (M.value - n.min) / e * 100;
176
+ }), me = s(() => (O.value + ae.value) / 2), de = s(() => {
177
+ if (!L.value) return !1;
178
+ const e = L.value.getBoundingClientRect().width;
179
+ return O.value / 100 * e - ke.value / 2 < 0;
180
+ }), he = s(() => {
181
+ if (!L.value) return !1;
182
+ const e = L.value.getBoundingClientRect().width;
183
+ return ae.value / 100 * e + re.value / 2 > e;
184
+ }), w = s(() => {
185
+ const e = he.value ? `calc(${me.value}% - ${ee.value.width}px - 2px)` : de.value ? `calc(${me.value}% - 8px)` : `calc(${me.value}% - ${ee.value.width / 2}px - 4px)`;
186
+ return {
187
+ left: `${O.value}%`,
188
+ width: `${Math.max(0, ae.value - O.value)}%`,
189
+ background: n.selectColor,
190
+ tooltipLeft: `calc(${O.value}% - ${de.value ? 9 : ke.value / 2 + 3.5}px)`,
191
+ tooltipRight: `calc(${ae.value}% - ${he.value ? re.value - 9 : re.value / 2 - 3.5}px)`,
192
+ tooltipCenter: e,
193
+ arrowLeft: !de.value,
194
+ arrowRight: !he.value
195
+ };
196
+ }), U = s(() => Math.max(0, (Z.value || 1) - 1)), fe = s(() => Math.max(0, (te.value || 1) - 1));
197
+ function ne(e) {
198
+ return fe.value === 0 ? 0 : Math.round(e / fe.value * U.value);
199
+ }
200
+ function Re(e) {
201
+ return U.value === 0 ? 0 : Math.round(e / U.value * fe.value);
202
+ }
203
+ const nt = (e) => Math.floor(n.min + e), it = (e) => Math.ceil(n.min + e), ge = s({
204
+ get() {
205
+ return $.value ? ne(F.value) : Number(b.value);
206
+ },
207
+ set(e) {
208
+ if ($.value) {
209
+ const l = Math.round(+e || 0), t = Math.max(0, ne(Math.max(0, z.value - 1))), u = Math.min(Math.max(0, l), t), r = Re(u);
210
+ ie(nt(r));
211
+ } else {
212
+ let l = Math.round(+e || 0);
213
+ const t = Number(M.value) - 1, u = Math.min(Math.max(n.min, l), t);
214
+ ie(u);
215
+ }
216
+ }
217
+ }), xe = s({
218
+ get() {
219
+ return $.value ? ne(Math.max(F.value, z.value - 1)) : Number(M.value);
220
+ },
221
+ set(e) {
222
+ if ($.value) {
223
+ const l = Math.round(+e || 0), t = ne(F.value), u = Math.max(l, t), r = Re(u);
224
+ oe(it(r + 1));
225
+ } else {
226
+ let l = Math.round(+e || 0);
227
+ const t = Number(b.value) + 1, u = Math.max(t, Math.min(l, n.max));
228
+ oe(u);
229
+ }
230
+ }
231
+ }), ot = s(() => n.inputColor), ut = s(() => n.background), rt = s(() => `${n.selectColor}33`), f = s(() => n.borderColor), $e = s(() => {
232
+ const e = [];
233
+ for (let l = 0; l < n.max; l += 1)
234
+ e.push(l);
235
+ return e;
236
+ });
237
+ function Ne() {
238
+ G("reset");
239
+ }
240
+ H(
241
+ () => n.min,
242
+ (e) => {
243
+ Number(b.value) < Number(e) && (b.value = Number(e)), Number(M.value) < Number(e) && (M.value = Number(e));
244
+ }
245
+ ), H(
246
+ () => n.max,
247
+ (e) => {
248
+ Number(b.value) > Number(e) && (b.value = Number(e)), Number(M.value) > Number(e) && (M.value = Number(e));
249
+ }
250
+ );
251
+ const ye = m(null), d = m({
252
+ width: 1,
253
+ height: 1
254
+ }), D = m(null);
255
+ qe(() => {
256
+ if (g.value) {
257
+ const e = et(() => {
258
+ const { width: l, height: t } = Bt({
259
+ chart: ye.value
260
+ });
261
+ d.value.width = l, d.value.height = t - 47;
262
+ });
263
+ D.value = new ResizeObserver(e), D.value.observe(ye.value);
264
+ }
265
+ }), we(() => {
266
+ D.value && D.value.disconnect();
267
+ });
268
+ const Z = s(() => Math.max(...n.allMinimaps.map((e) => e.series.length), n.minimap.length || 0)), x = s(() => {
269
+ if (!Z.value) return 0;
270
+ const e = Math.max(1, Z.value - (n.minimapCompact ? 1 : 0));
271
+ return d.value.width / e;
272
+ }), Ee = s(() => {
273
+ const e = [];
274
+ if (Array.isArray(n.minimap) && n.minimap.length && e.push(...n.minimap.filter(Number.isFinite)), Array.isArray(n.allMinimaps) && n.allMinimaps.length)
275
+ for (const l of n.allMinimaps)
276
+ l?.isVisible && Array.isArray(l?.series) && e.push(...l.series.filter(Number.isFinite));
277
+ return e.length ? { min: Math.min(...e), max: Math.max(...e) } : { min: 0, max: 1 };
278
+ }), I = s(() => Ee.value.min), Y = s(() => Ee.value.max), st = s(() => I.value < 0 && Y.value > 0 || Y.value <= 0 ? I.value : 0), ct = s(() => Math.max(1e-9, Math.max(Math.abs(I.value), Math.abs(Y.value)))), vt = s(() => I.value < 0 && Y.value > 0), mt = (e) => {
279
+ const l = Math.max(1, d.value.height);
280
+ if (vt.value) {
281
+ const t = ct.value;
282
+ return (1 - (Math.max(-1, Math.min(1, e / t)) + 1) / 2) * l;
283
+ } else {
284
+ const t = Math.min(0, I.value), u = Math.max(0, Y.value);
285
+ return l - (e - t) / Math.max(1e-9, u - t) * l;
286
+ }
287
+ }, Te = s(() => mt(0)), Ae = s(() => n.allMinimaps.length ? n.allMinimaps.filter((e) => e.type === "bar").length : 0), be = s(() => x.value / (Ae.value || 1) * 0.8);
288
+ function Fe(e, l, t) {
289
+ const u = be.value, r = Math.max(1, Ae.value), h = Z.value - 1;
290
+ return t === 0 ? e + u / 2 * l : t === h ? e - u / 2 * (r - l) : e - r * u / 2 + l * u;
291
+ }
292
+ function Be(e, l) {
293
+ return [0, Z.value - 1].includes(l) ? be.value / 2 : be.value;
294
+ }
295
+ function dt(e, l, t) {
296
+ const u = (S, C, se) => Math.max(C, Math.min(se, S));
297
+ if (l <= 0) {
298
+ const S = Math.max(1e-9, 0 - e);
299
+ return (C) => t - (C - e) / S * t;
300
+ }
301
+ if (e >= 0) {
302
+ const S = Math.max(1e-9, l - 0);
303
+ return (C) => t - (C - 0) / S * t;
304
+ }
305
+ const h = Math.max(1e-9, Math.max(Math.abs(e), Math.abs(l)));
306
+ return (S) => (1 - (u(S / h, -1, 1) + 1) / 2) * t;
307
+ }
308
+ function Ve(e) {
309
+ if (!e || !e.length)
310
+ return {
311
+ fullSet: "",
312
+ selectionSet: "",
313
+ sliced: [],
314
+ firstPlot: null,
315
+ lastPlot: null,
316
+ hasFull: !1,
317
+ hasSelection: !1
318
+ };
319
+ const l = Math.max(1, d.value.height), t = e.filter(Number.isFinite), u = Math.min(...t), r = Math.max(...t), h = dt(u, r, l), S = e.length, C = Math.min(Math.max(0, F.value), Math.max(0, S - 1)), se = Math.min(S, Math.max(C + 1, z.value)), B = e.map((Je, Rt) => ({
320
+ x: x.value * Rt + (n.minimapCompact ? 0 : x.value / 2),
321
+ y: h(Je),
322
+ v: Je,
323
+ y0: (u < 0 && r > 0, h(0))
324
+ })), le = B.slice(C, se), Lt = B.length >= 2 ? n.smoothMinimap ? je(B) : _e(B) : "", Pt = le.length >= 2 ? n.smoothMinimap ? je(le) : _e(le) : "";
325
+ return {
326
+ fullSet: Lt,
327
+ selectionSet: Pt,
328
+ sliced: le,
329
+ points: B,
330
+ firstPlot: B[C] || null,
331
+ lastPlot: B[Math.max(0, se - 1)] || null,
332
+ hasFull: B.length >= 2,
333
+ hasSelection: le.length >= 2
334
+ };
335
+ }
336
+ const v = s(() => n.minimap.length ? Ve(n.minimap) : {
337
+ fullSet: "",
338
+ selectionSet: "",
339
+ sliced: [],
340
+ firstPlot: null,
341
+ lastPlot: null,
342
+ hasFull: !1,
343
+ hasSelection: !1
344
+ }), J = s(() => n.allMinimaps.length ? n.allMinimaps.map((e, l) => {
345
+ const t = Ve(e?.series || []), u = e?.id ?? e?.name ?? l;
346
+ return {
347
+ key: typeof u == "object" ? JSON.stringify(u) : String(u),
348
+ color: e?.color,
349
+ ...t,
350
+ isVisible: e.isVisible,
351
+ type: e.type || "line"
352
+ };
353
+ }) : []), p = s(() => {
354
+ const e = F.value, l = Math.max(e + 1, z.value);
355
+ return {
356
+ x: x.value * e + (n.minimapCompact ? 0 : x.value / 2),
357
+ width: x.value * (l - e) - x.value
358
+ };
359
+ }), q = m(n.minimapSelectedIndex);
360
+ H(
361
+ () => n.minimapSelectedIndex,
362
+ (e) => {
363
+ q.value = e == null ? null : Ye(n.valueStart) + e;
364
+ },
365
+ { immediate: !0 }
366
+ );
367
+ function ht(e) {
368
+ q.value = e;
369
+ const l = F.value, t = z.value;
370
+ e >= l && e < t && G("trapMouse", e - l);
371
+ }
372
+ const Me = m(null), pe = m(null);
373
+ function ie(e) {
374
+ b.value = e, Me.value && (Me.value.value = e), G("update:start", Number(b.value));
375
+ }
376
+ function oe(e) {
377
+ M.value = e, pe.value && (pe.value.value = e), G("update:end", Number(M.value));
378
+ }
379
+ const ue = s(() => n.valueEnd - n.valueStart), K = m(!1);
380
+ let ft = m(null);
381
+ const gt = s(() => (ve.value - 48) / (n.max - n.min) * ue.value), xt = s(() => Math.max(1, ve.value - yl - gt.value)), yt = s(() => Math.max(1, n.max - n.min - ue.value)), bt = s(() => yt.value / xt.value), ze = m(0), De = m(0), Mt = m(0), Ie = m(0);
382
+ let N = null, E = null, T = null, A = null;
383
+ const We = (e) => {
384
+ if (V.value = !0, !n.enableSelectionDrag) return;
385
+ const l = e.type === "touchstart";
386
+ l || e.stopPropagation();
387
+ const t = l && e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null, u = l ? t ? t.target : null : e.target;
388
+ if (!u || !(u instanceof Element) || u.classList && u.classList.contains("range-handle")) return;
389
+ K.value = !0;
390
+ const r = l ? t ? t.clientX : 0 : e.clientX;
391
+ ft.value = r, ze.value = r, De.value = Number(b.value), Mt.value = Number(M.value), Ie.value = bt.value, N = l ? "touchmove" : "mousemove", E = l ? "touchend" : "mouseup", T = l ? kt : pt, A = l ? St : wt, window.addEventListener(N, T, { passive: !1 }), window.addEventListener(E, A);
392
+ };
393
+ function pt(e) {
394
+ K.value && He(e.clientX);
395
+ }
396
+ function kt(e) {
397
+ if (!K.value || !L.value) return;
398
+ const l = e.target;
399
+ if (!(l instanceof Element) || !L.value.contains(l) || l.classList && l.classList.contains("range-handle")) return;
400
+ e.preventDefault();
401
+ const t = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
402
+ t && He(t.clientX);
403
+ }
404
+ function He(e) {
405
+ if (!K.value) return;
406
+ const t = (e - ze.value) * Ie.value;
407
+ let u = Math.round(De.value + t);
408
+ u = Math.max(n.min, Math.min(u, n.max - ue.value));
409
+ const r = u + ue.value;
410
+ ie(u), oe(r);
411
+ }
412
+ function wt() {
413
+ Xe();
414
+ }
415
+ function St() {
416
+ Xe();
417
+ }
418
+ function Xe() {
419
+ K.value = !1, N && T && window.removeEventListener(N, T), E && A && window.removeEventListener(E, A), N = E = null, T = A = null;
420
+ }
421
+ const W = m(!1), Q = m(null), j = m(null), ke = m(1), re = m(1), V = m(!1);
422
+ function Ge() {
423
+ Q.value && (ke.value = Q.value.getBoundingClientRect().width);
424
+ }
425
+ function Oe() {
426
+ j.value && (re.value = j.value.getBoundingClientRect().width);
427
+ }
428
+ const Ue = m(0);
429
+ function Ze(e) {
430
+ Ue.value = e === "start" ? 1 : 0;
431
+ }
432
+ const _ = m(!1), ee = m({
433
+ width: 0,
434
+ left: 0
435
+ });
436
+ H([b, M], async () => {
437
+ if (await Se(), !Q.value || !j.value) {
438
+ _.value = !1, ee.value = { width: 0, left: 0 };
439
+ return;
440
+ }
441
+ const e = Q.value.getBoundingClientRect(), l = j.value.getBoundingClientRect();
442
+ _.value = e.x + e.width > l.x;
443
+ const t = e.x + e.width / 2, u = l.x + l.width / 2, r = e.width + l.width, h = (t + u) / 2;
444
+ ee.value = {
445
+ width: r,
446
+ left: h - r / 2
447
+ };
448
+ }), Nt(() => {
449
+ Ge(), Oe();
450
+ }), H(
451
+ () => n.labelLeft,
452
+ () => {
453
+ Se(Ge);
454
+ },
455
+ { deep: !0 }
456
+ ), H(
457
+ () => n.labelRight,
458
+ () => {
459
+ Se(Oe);
460
+ },
461
+ { deep: !0 }
462
+ ), tt({
463
+ setStartValue: ie,
464
+ setEndValue: oe
465
+ }), we(() => {
466
+ D.value && D.value.disconnect(), N && T && window.removeEventListener(N, T), E && A && window.removeEventListener(E, A), N = E = null, T = A = null;
467
+ });
468
+ const te = s(() => Math.max(1, n.max - n.min));
469
+ function Ye(e) {
470
+ const l = Math.floor(e - n.min);
471
+ return Math.min(Math.max(0, l), te.value);
472
+ }
473
+ function Ct(e) {
474
+ const l = Math.ceil(e - n.min);
475
+ return Math.min(Math.max(0, l), te.value);
476
+ }
477
+ const F = s(() => Ye(b.value)), z = s(() => Ct(M.value));
478
+ return (e, l) => (o(), i("div", {
479
+ "data-dom-to-png-ignore": "",
480
+ style: { padding: "0 24px" },
481
+ class: "vue-data-ui-zoom",
482
+ ref_key: "zoomWrapper",
483
+ ref: L,
484
+ onMousedown: We,
485
+ onTouchstart: We,
486
+ onTouchend: l[11] || (l[11] = (t) => V.value = !1)
487
+ }, [
488
+ k("div", Dt, [
489
+ a.valueStart !== a.refreshStartPoint || a.valueEnd !== at.value ? (o(), i("div", It, [
490
+ a.useResetSlot ? Et(e.$slots, "reset-action", {
491
+ key: 1,
492
+ reset: Ne
493
+ }, void 0, !0) : (o(), i("button", {
494
+ key: 0,
495
+ tabindex: "0",
496
+ role: "button",
497
+ class: "vue-data-ui-refresh-button",
498
+ style: P({
499
+ top: g.value ? "36px" : "-16px",
500
+ pointerEvents: "all !important"
501
+ }),
502
+ onClick: Ne
503
+ }, [
504
+ Tt(Vt, {
505
+ name: "refresh",
506
+ stroke: a.textColor
507
+ }, null, 8, ["stroke"])
508
+ ], 4))
509
+ ])) : c("", !0)
510
+ ]),
511
+ k("div", {
512
+ class: "double-range-slider",
513
+ ref_key: "minimapWrapper",
514
+ ref: ye,
515
+ style: { "z-index": "0" },
516
+ onMouseenter: l[9] || (l[9] = (t) => V.value = !0),
517
+ onMouseleave: l[10] || (l[10] = (t) => V.value = !1)
518
+ }, [
519
+ g.value ? (o(), i("div", Wt, [
520
+ (o(), i("svg", {
521
+ key: `mm-${a.minimapMerged ? "merged" : "split"}-${a.minimapCompact ? "compact" : "normal"}`,
522
+ xmlns: ce(Ft),
523
+ viewBox: `0 0 ${Math.max(0, d.value.width)} ${Math.max(0, d.value.height)}`
524
+ }, [
525
+ k("defs", null, [
526
+ k("linearGradient", {
527
+ id: Pe.value,
528
+ x1: "0%",
529
+ y1: "0%",
530
+ x2: "0%",
531
+ y2: "100%"
532
+ }, [
533
+ k("stop", {
534
+ offset: "0%",
535
+ "stop-color": `${a.minimapLineColor}50`
536
+ }, null, 8, Gt),
537
+ l[12] || (l[12] = k("stop", {
538
+ offset: "100%",
539
+ "stop-color": "transparent"
540
+ }, null, -1))
541
+ ], 8, Xt)
542
+ ]),
543
+ a.minimapCompact ? (o(), i("rect", {
544
+ key: 0,
545
+ class: "vue-ui-zoom-minimap-frame",
546
+ x: 0,
547
+ y: 0,
548
+ width: d.value.width,
549
+ height: d.value.height,
550
+ fill: "none",
551
+ stroke: a.minimapFrameColor,
552
+ rx: 3
553
+ }, null, 8, Ot)) : c("", !0),
554
+ a.minimapMerged ? (o(), i("path", {
555
+ key: 1,
556
+ d: `M${v.value.fullSet}`,
557
+ stroke: `${a.minimapLineColor}`,
558
+ fill: "none",
559
+ "stroke-width": "1",
560
+ "stroke-linecap": "round",
561
+ "stroke-linejoin": "round",
562
+ style: { opacity: "0.6" }
563
+ }, null, 8, Ut)) : (o(), i(y, { key: 2 }, [
564
+ (o(!0), i(y, null, R(J.value.filter((t) => t.type === "bar"), (t, u) => (o(), i("g", null, [
565
+ (o(!0), i(y, null, R(t.points, (r, h) => (o(), i(y, null, [
566
+ t.isVisible ? (o(), i("rect", {
567
+ key: 0,
568
+ x: Fe(r.x, u, h),
569
+ width: Be(u, h),
570
+ y: r.v >= 0 ? r.y : r.y0,
571
+ height: r.v >= 0 ? r.y0 - r.y : r.y - r.y0,
572
+ fill: t.color,
573
+ style: { opacity: "0.6" }
574
+ }, null, 8, Zt)) : c("", !0)
575
+ ], 64))), 256))
576
+ ]))), 256)),
577
+ (o(!0), i(y, null, R(J.value.filter((t) => t.type === "line"), (t) => (o(), i("g", {
578
+ key: String(t.key)
579
+ }, [
580
+ t.isVisible ? (o(), i("path", {
581
+ key: 0,
582
+ d: `M ${t.fullSet}`,
583
+ fill: "none",
584
+ stroke: t.color,
585
+ style: { opacity: "0.6" }
586
+ }, null, 8, Yt)) : c("", !0)
587
+ ]))), 128))
588
+ ], 64)),
589
+ k("rect", {
590
+ x: p.value.x,
591
+ width: p.value.width < 0 ? 0 : p.value.width,
592
+ height: Math.max(d.value.height, 0),
593
+ y: 0,
594
+ fill: f.value,
595
+ rx: a.minimapSelectionRadius,
596
+ stroke: "none"
597
+ }, null, 8, Jt),
598
+ k("rect", {
599
+ x: p.value.x,
600
+ width: p.value.width < 0 ? 0 : p.value.width,
601
+ height: Math.max(d.value.height, 0),
602
+ y: 0,
603
+ rx: a.minimapSelectionRadius,
604
+ fill: f.value
605
+ }, null, 8, qt),
606
+ k("rect", {
607
+ x: p.value.x,
608
+ width: p.value.width < 0 ? 0 : p.value.width,
609
+ height: Math.max(d.value.height, 0),
610
+ y: 0,
611
+ fill: a.minimapSelectedColor,
612
+ rx: a.minimapSelectionRadius,
613
+ style: P({
614
+ opacity: a.minimapSelectedColorOpacity
615
+ })
616
+ }, null, 12, Kt),
617
+ q.value !== null ? (o(!0), i(y, { key: 3 }, R($e.value, (t, u) => (o(), i("g", null, [
618
+ q.value === t && t >= F.value && t < z.value ? (o(), i("line", {
619
+ key: 0,
620
+ x1: x.value * u + (a.minimapCompact ? 0 : x.value / 2),
621
+ x2: x.value * u + (a.minimapCompact ? 0 : x.value / 2),
622
+ y1: 0,
623
+ y2: Math.max(d.value.height, 0),
624
+ stroke: a.minimapIndicatorColor,
625
+ "stroke-linecap": "round",
626
+ "stroke-dasharray": "2",
627
+ "stroke-width": "1"
628
+ }, null, 8, Qt)) : c("", !0)
629
+ ]))), 256)) : c("", !0),
630
+ !a.minimapMerged && st.value < 0 ? (o(), i("line", {
631
+ key: 4,
632
+ class: "slicer-minimap-zero-line",
633
+ x1: 0,
634
+ x2: d.value.width,
635
+ y1: Te.value,
636
+ y2: Te.value,
637
+ stroke: a.minimapFrameColor,
638
+ "stroke-width": "0.5"
639
+ }, null, 8, jt)) : c("", !0),
640
+ a.minimapMerged ? (o(), i(y, { key: 5 }, [
641
+ v.value && v.value.sliced && v.value.sliced.length ? (o(), i(y, { key: 0 }, [
642
+ v.value.selectionSet ? (o(), i("path", {
643
+ key: 0,
644
+ d: `M${v.value.sliced[0].x},${Math.max(d.value.height, 0)} ${v.value.selectionSet} L${v.value.sliced[v.value.sliced.length - 1].x},${Math.max(d.value.height, 0)}Z`,
645
+ fill: `url(#${Pe.value})`,
646
+ stroke: "none",
647
+ style: { opacity: "1" }
648
+ }, null, 8, _t)) : c("", !0),
649
+ v.value.selectionSet ? (o(), i("path", {
650
+ key: 1,
651
+ d: `M ${v.value.selectionSet}`,
652
+ stroke: `${a.minimapLineColor}`,
653
+ fill: "transparent",
654
+ "stroke-width": "2",
655
+ "stroke-linecap": "round",
656
+ "stroke-linejoin": "round"
657
+ }, null, 8, el)) : c("", !0)
658
+ ], 64)) : c("", !0)
659
+ ], 64)) : (o(), i("g", tl, [
660
+ (o(!0), i(y, null, R(J.value.filter((t) => t.type === "bar"), (t, u) => (o(), i("g", null, [
661
+ (o(!0), i(y, null, R(t.points, (r, h) => (o(), i(y, null, [
662
+ t.isVisible ? (o(), i("rect", {
663
+ key: 0,
664
+ x: Fe(r.x, u, h),
665
+ width: Be(u, h),
666
+ y: r.v >= 0 ? r.y : r.y0,
667
+ height: r.v >= 0 ? r.y0 - r.y : r.y - r.y0,
668
+ fill: t.color,
669
+ style: P({
670
+ opacity: h >= a.valueStart && h <= a.valueEnd - 1 ? 1 : 0
671
+ })
672
+ }, null, 12, ll)) : c("", !0)
673
+ ], 64))), 256))
674
+ ]))), 256)),
675
+ (o(!0), i(y, null, R(J.value.filter((t) => t.type === "line"), (t) => (o(), i("g", {
676
+ key: String(t.key)
677
+ }, [
678
+ t && t.hasSelection && t.selectionSet && t.isVisible ? (o(), i("path", {
679
+ key: 0,
680
+ d: `M ${t.selectionSet}`,
681
+ stroke: t.color,
682
+ fill: "transparent",
683
+ "stroke-width": "2",
684
+ "stroke-linecap": "round",
685
+ "stroke-linejoin": "round"
686
+ }, null, 8, al)) : c("", !0)
687
+ ]))), 128))
688
+ ])),
689
+ g.value && a.minimapCompact ? (o(), i("rect", {
690
+ key: 7,
691
+ class: "vue-ui-zoom-compact-minimap-handle",
692
+ x: p.value.x - 8,
693
+ y: 0,
694
+ width: 8,
695
+ height: d.value.height,
696
+ fill: f.value,
697
+ stroke: a.textColor,
698
+ rx: 3
699
+ }, null, 8, nl)) : c("", !0),
700
+ g.value && a.minimapCompact ? (o(), i("rect", {
701
+ key: 8,
702
+ class: "vue-ui-zoom-compact-minimap-handle",
703
+ x: p.value.x + p.value.width,
704
+ y: 0,
705
+ width: 8,
706
+ height: d.value.height,
707
+ fill: f.value,
708
+ stroke: a.textColor,
709
+ rx: 3
710
+ }, null, 8, il)) : c("", !0),
711
+ a.minimapMerged ? (o(), i(y, { key: 9 }, [
712
+ v.value && v.value.firstPlot ? (o(), i("circle", {
713
+ key: 0,
714
+ cx: v.value.firstPlot.x,
715
+ cy: v.value.firstPlot.y,
716
+ "stroke-width": "0.5",
717
+ stroke: f.value,
718
+ r: "4",
719
+ fill: a.minimapLineColor
720
+ }, null, 8, ol)) : c("", !0),
721
+ v.value && v.value.firstPlot ? (o(), i("circle", {
722
+ key: 1,
723
+ cx: v.value.firstPlot.x,
724
+ cy: v.value.firstPlot.y,
725
+ r: "2",
726
+ fill: f.value
727
+ }, null, 8, ul)) : c("", !0),
728
+ v.value && v.value.lastPlot ? (o(), i("circle", {
729
+ key: 2,
730
+ cx: v.value.lastPlot.x,
731
+ cy: v.value.lastPlot.y,
732
+ "stroke-width": "0.5",
733
+ stroke: f.value,
734
+ r: "4",
735
+ fill: a.minimapLineColor
736
+ }, null, 8, rl)) : c("", !0),
737
+ v.value && v.value.lastPlot ? (o(), i("circle", {
738
+ key: 3,
739
+ cx: v.value.lastPlot.x,
740
+ cy: v.value.lastPlot.y,
741
+ r: "2",
742
+ fill: f.value
743
+ }, null, 8, sl)) : c("", !0)
744
+ ], 64)) : (o(), i("g", cl, [
745
+ (o(!0), i(y, null, R(J.value.filter((t) => t.type === "line"), (t) => (o(), i("g", {
746
+ key: String(t.key)
747
+ }, [
748
+ t && t.firstPlot && t.isVisible ? (o(), i("circle", {
749
+ key: 0,
750
+ cx: t.firstPlot.x,
751
+ cy: t.firstPlot.y,
752
+ "stroke-width": "0.5",
753
+ stroke: f.value,
754
+ r: "4",
755
+ fill: t.color
756
+ }, null, 8, vl)) : c("", !0),
757
+ t && t.firstPlot && t.isVisible ? (o(), i("circle", {
758
+ key: 1,
759
+ cx: t.firstPlot.x,
760
+ cy: t.firstPlot.y,
761
+ r: "2",
762
+ fill: f.value
763
+ }, null, 8, ml)) : c("", !0),
764
+ t && t.lastPlot && t.isVisible ? (o(), i("circle", {
765
+ key: 2,
766
+ cx: t.lastPlot.x,
767
+ cy: t.lastPlot.y,
768
+ "stroke-width": "0.5",
769
+ stroke: f.value,
770
+ r: "4",
771
+ fill: t.color
772
+ }, null, 8, dl)) : c("", !0),
773
+ t && t.lastPlot && t.isVisible ? (o(), i("circle", {
774
+ key: 3,
775
+ cx: t.lastPlot.x,
776
+ cy: t.lastPlot.y,
777
+ r: "2",
778
+ fill: f.value
779
+ }, null, 8, hl)) : c("", !0)
780
+ ]))), 128))
781
+ ])),
782
+ (o(!0), i(y, null, R($e.value, (t, u) => (o(), i("rect", {
783
+ y: 0,
784
+ height: Math.max(d.value.height, 0),
785
+ fill: "transparent",
786
+ style: P([{ "pointer-events": "all !important" }, {
787
+ cursor: t >= F.value && t < z.value && a.enableSelectionDrag ? W.value ? "grabbing" : "grab" : "default"
788
+ }]),
789
+ x: x.value * u - (a.minimapCompact ? x.value / 2 : 0),
790
+ width: x.value < 0 ? 0 : x.value,
791
+ onMousedown: l[0] || (l[0] = (r) => W.value = !0),
792
+ onMouseup: l[1] || (l[1] = (r) => W.value = !1),
793
+ onMouseenter: (r) => ht(t),
794
+ onMouseleave: l[2] || (l[2] = (r) => {
795
+ q.value = null, G("trapMouse", null);
796
+ })
797
+ }, null, 44, fl))), 256))
798
+ ], 8, Ht))
799
+ ])) : c("", !0),
800
+ k("div", {
801
+ class: "slider-track",
802
+ style: P({ visibility: g.value && a.minimapCompact ? "hidden" : "visible" })
803
+ }, null, 4),
804
+ k("div", {
805
+ class: X({
806
+ "range-highlight": !0,
807
+ move: a.enableSelectionDrag
808
+ }),
809
+ onMousedown: l[3] || (l[3] = (t) => W.value = !0),
810
+ onMouseup: l[4] || (l[4] = (t) => W.value = !1),
811
+ style: P({
812
+ ...w.value,
813
+ cursor: W.value ? "grabbing" : "grab",
814
+ visibility: g.value && a.minimapCompact ? "hidden" : "visible"
815
+ })
816
+ }, null, 38),
817
+ a.enableRangeHandles ? Ke((o(), i("input", {
818
+ key: 1,
819
+ ref_key: "rangeStart",
820
+ ref: Me,
821
+ type: "range",
822
+ class: X({
823
+ "range-left": !0,
824
+ "range-handle": !0,
825
+ "range-minimap": g.value && a.verticalHandles,
826
+ "range-invisible": g.value && a.minimapCompact
827
+ }),
828
+ min: a.min,
829
+ max: $.value && a.minimapCompact ? U.value : a.max,
830
+ step: 1,
831
+ "onUpdate:modelValue": l[5] || (l[5] = (t) => ge.value = t),
832
+ onMouseenter: l[6] || (l[6] = (t) => Ze("start"))
833
+ }, null, 42, gl)), [
834
+ [
835
+ Qe,
836
+ ge.value,
837
+ void 0,
838
+ { number: !0 }
839
+ ]
840
+ ]) : c("", !0),
841
+ a.enableRangeHandles ? Ke((o(), i("input", {
842
+ key: 2,
843
+ ref_key: "rangeEnd",
844
+ ref: pe,
845
+ type: "range",
846
+ class: X({
847
+ "range-right": !0,
848
+ "range-handle": !0,
849
+ "range-minimap": g.value && a.verticalHandles,
850
+ "range-invisible": g.value && a.minimapCompact
851
+ }),
852
+ min: a.min,
853
+ max: $.value && a.minimapCompact ? U.value : a.max,
854
+ step: 1,
855
+ "onUpdate:modelValue": l[7] || (l[7] = (t) => xe.value = t),
856
+ onMouseenter: l[8] || (l[8] = (t) => Ze("end"))
857
+ }, null, 42, xl)), [
858
+ [
859
+ Qe,
860
+ xe.value,
861
+ void 0,
862
+ { number: !0 }
863
+ ]
864
+ ]) : c("", !0),
865
+ a.labelLeft ? (o(), i("div", {
866
+ key: 3,
867
+ ref_key: "tooltipLeft",
868
+ ref: Q,
869
+ class: X({
870
+ "range-tooltip": !0,
871
+ "range-tooltip-visible": V.value,
872
+ "range-tooltip-arrow": w.value.arrowLeft && !a.verticalHandles,
873
+ "range-tooltip-arrow-left": !w.value.arrowLeft && !a.verticalHandles
874
+ }),
875
+ style: P({
876
+ left: w.value.tooltipLeft,
877
+ color: ce(Le)(a.selectColor),
878
+ backgroundColor: a.selectColor,
879
+ border: `1px solid ${f.value}`,
880
+ zIndex: `${Ue.value + 4}`,
881
+ visibility: _.value || a.labelLeft === a.labelRight ? "hidden" : "visible",
882
+ top: g.value && a.minimapCompact ? "calc(-100% - 18px)" : "-100%"
883
+ })
884
+ }, Ce(a.labelLeft), 7)) : c("", !0),
885
+ (_.value || a.labelLeft === a.labelRight) && (a.labelLeft || a.labelRight) ? (o(), i("div", {
886
+ key: 4,
887
+ ref: "tooltipMerge",
888
+ class: X({
889
+ "range-tooltip": !0,
890
+ "range-tooltip-visible": V.value,
891
+ "range-tooltip-arrow": !0,
892
+ "range-tooltip-arrow-left": !w.value.arrowLeft && !a.verticalHandles,
893
+ "range-tooltip-arrow-right": !w.value.arrowRight && !a.verticalHandles
894
+ }),
895
+ style: P({
896
+ left: w.value.tooltipCenter,
897
+ width: ee.value.width + "px",
898
+ color: ce(Le)(a.selectColor),
899
+ backgroundColor: a.selectColor,
900
+ border: `1px solid ${f.value}`,
901
+ zIndex: "4",
902
+ top: g.value && a.minimapCompact ? "calc(-100% - 18px)" : "-100%"
903
+ })
904
+ }, Ce(a.labelLeft === a.labelRight ? a.labelLeft : `${a.labelLeft} - ${a.labelRight}`), 7)) : c("", !0),
905
+ a.labelRight ? (o(), i("div", {
906
+ key: 5,
907
+ ref_key: "tooltipRight",
908
+ ref: j,
909
+ class: X({
910
+ "range-tooltip": !0,
911
+ "range-tooltip-visible": V.value,
912
+ "range-tooltip-arrow": w.value.arrowRight && !a.verticalHandles,
913
+ "range-tooltip-arrow-right": !w.value.arrowRight && !a.verticalHandles
914
+ }),
915
+ style: P({
916
+ left: w.value.tooltipRight,
917
+ color: ce(Le)(a.selectColor),
918
+ backgroundColor: a.selectColor,
919
+ border: `1px solid ${f.value}`,
920
+ zIndex: "4",
921
+ visibility: _.value || a.labelLeft === a.labelRight ? "hidden" : "visible",
922
+ top: g.value && a.minimapCompact ? "calc(-100% - 18px)" : "-100%"
923
+ })
924
+ }, Ce(a.labelRight), 7)) : c("", !0)
925
+ ], 544)
926
+ ], 544));
927
+ }
928
+ }, Cl = /* @__PURE__ */ zt(bl, [["__scopeId", "data-v-fac1a940"]]);
929
+ export {
930
+ Cl as S
931
+ };