vue-data-ui 3.18.1 → 3.18.3
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.
- package/dist/{PackageVersion-DhDKg-ez.js → PackageVersion-JKSxFXYH.js} +1 -1
- package/dist/{SlicerPreview-BPS8mYO2.js → SlicerPreview-7pKvVSTr.js} +298 -266
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{vue-data-ui-DIh8ayZc.js → vue-data-ui-DzKsRvlx.js} +61 -61
- package/dist/vue-data-ui.js +61 -61
- package/dist/{vue-ui-3d-bar-BZ8_6ylo.js → vue-ui-3d-bar-D9LYXQYA.js} +1 -1
- package/dist/{vue-ui-age-pyramid-BR3i-CgS.js → vue-ui-age-pyramid-tBkN13YF.js} +1 -1
- package/dist/{vue-ui-bullet-ByJdNLVf.js → vue-ui-bullet-Cn8Llr1F.js} +1 -1
- package/dist/{vue-ui-bump-Ps1gkA-F.js → vue-ui-bump-BIWr0tap.js} +1 -1
- package/dist/{vue-ui-candlestick-0C1QFoV4.js → vue-ui-candlestick-BIUIoePh.js} +2 -2
- package/dist/{vue-ui-carousel-table-1P28pCRK.js → vue-ui-carousel-table-CXDoCex4.js} +1 -1
- package/dist/{vue-ui-chestnut-CJOCGWwX.js → vue-ui-chestnut-BpTIBlpz.js} +1 -1
- package/dist/{vue-ui-chord-BpiVJCCm.js → vue-ui-chord-CSVW0JW_.js} +1 -1
- package/dist/{vue-ui-circle-pack-C3wvXz1f.js → vue-ui-circle-pack-CoDPNDE2.js} +1 -1
- package/dist/{vue-ui-cursor-CNn_3b24.js → vue-ui-cursor-ChkVrvf3.js} +1 -1
- package/dist/{vue-ui-dag-DRVXVCJV.js → vue-ui-dag-BtwtX2Fi.js} +1 -1
- package/dist/{vue-ui-dashboard-gOXyms0o.js → vue-ui-dashboard-D4zUixGJ.js} +58 -58
- package/dist/{vue-ui-digits-DIKyN3z6.js → vue-ui-digits-BGMccYmx.js} +1 -1
- package/dist/{vue-ui-donut-RogzKj0G.js → vue-ui-donut-CJUMy86f.js} +1 -1
- package/dist/{vue-ui-donut-evolution-Bxz06Qqf.js → vue-ui-donut-evolution-Cf9ohIyx.js} +1 -1
- package/dist/{vue-ui-dumbbell-D10T4gmB.js → vue-ui-dumbbell-BlvPXFFb.js} +1 -1
- package/dist/{vue-ui-flow-OK563Z46.js → vue-ui-flow-USVRlziU.js} +1 -1
- package/dist/{vue-ui-funnel-nWmbiJu5.js → vue-ui-funnel-CCWbAcHt.js} +1 -1
- package/dist/{vue-ui-galaxy-CtaTlHWZ.js → vue-ui-galaxy-CoZyQmVY.js} +1 -1
- package/dist/{vue-ui-gauge-DWTEHJqX.js → vue-ui-gauge-BC7ly4Na.js} +1 -1
- package/dist/{vue-ui-geo-DUpWvv5m.js → vue-ui-geo-C3Eow8Em.js} +1 -1
- package/dist/{vue-ui-gizmo-vddzP4dM.js → vue-ui-gizmo-Bn-vJ-Fx.js} +1 -1
- package/dist/{vue-ui-heatmap-CUE_zJQa.js → vue-ui-heatmap-CZ-9Sl1C.js} +1 -1
- package/dist/{vue-ui-history-plot-CcRg_NgJ.js → vue-ui-history-plot-BK_NzH11.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-DX5aZOEn.js → vue-ui-horizontal-bar-DTf-34_T.js} +1 -1
- package/dist/{vue-ui-kpi-B74v84Hu.js → vue-ui-kpi-DsglnM8o.js} +1 -1
- package/dist/{vue-ui-molecule-CVdB8rxf.js → vue-ui-molecule-BcyHDynA.js} +1 -1
- package/dist/{vue-ui-mood-radar-CWDVBOck.js → vue-ui-mood-radar-BFaVUl-J.js} +1 -1
- package/dist/{vue-ui-nested-donuts-Be8b5d81.js → vue-ui-nested-donuts-C1BvqC__.js} +1 -1
- package/dist/{vue-ui-onion-Cs90yQQZ.js → vue-ui-onion-D283exqG.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-D-mZdTop.js → vue-ui-parallel-coordinate-plot-DKt_zJUf.js} +1 -1
- package/dist/{vue-ui-quadrant-DLD_ZR9M.js → vue-ui-quadrant-B2qYddY2.js} +1 -1
- package/dist/{vue-ui-quick-chart-UWjZdmzt.js → vue-ui-quick-chart-Cyb40e0z.js} +1 -1
- package/dist/{vue-ui-radar-Bxu07MOG.js → vue-ui-radar-B3Hndp3R.js} +1 -1
- package/dist/{vue-ui-relation-circle-O5s1UJtt.js → vue-ui-relation-circle-WHH-LUI7.js} +1 -1
- package/dist/{vue-ui-ridgeline-C3siN0d_.js → vue-ui-ridgeline-CBOJva6x.js} +1 -1
- package/dist/{vue-ui-rings-DVVDtwhB.js → vue-ui-rings-BMhEVZjd.js} +1 -1
- package/dist/{vue-ui-scatter-Cfvh06OC.js → vue-ui-scatter-Dz1nCbwk.js} +488 -467
- package/dist/{vue-ui-skeleton-CxTmGCQp.js → vue-ui-skeleton-7UkhXYFe.js} +1 -1
- package/dist/{vue-ui-spark-trend--39vutfQ.js → vue-ui-spark-trend-Cu9sm4hx.js} +1 -1
- package/dist/{vue-ui-sparkbar-DhCRNOu4.js → vue-ui-sparkbar-kbKOfDoC.js} +1 -1
- package/dist/{vue-ui-sparkgauge-6Igkqlqs.js → vue-ui-sparkgauge-BmJwEpT7.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-BLEzZSZi.js → vue-ui-sparkhistogram-C3QI82WU.js} +1 -1
- package/dist/{vue-ui-sparkline-ppwKM4aO.js → vue-ui-sparkline-D8WLb79z.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-uIzSq9Wh.js → vue-ui-sparkstackbar-Brj7BhAd.js} +1 -1
- package/dist/{vue-ui-stackbar-CdOkMCbI.js → vue-ui-stackbar-kjSw0T8F.js} +2 -2
- package/dist/{vue-ui-stackline-DifD9OXC.js → vue-ui-stackline-CrqwQ36B.js} +2 -2
- package/dist/{vue-ui-strip-plot-D1LjIVqK.js → vue-ui-strip-plot-_4c_67kv.js} +1 -1
- package/dist/{vue-ui-table-WDkEyyQ0.js → vue-ui-table-BciCGbmw.js} +2 -2
- package/dist/{vue-ui-table-sparkline-BEWWP4Rq.js → vue-ui-table-sparkline-BMLytim1.js} +1 -1
- package/dist/{vue-ui-thermometer-CFWOAB8K.js → vue-ui-thermometer-F2UAOuyi.js} +1 -1
- package/dist/{vue-ui-timer-D1DQyf9i.js → vue-ui-timer-Cp5worjZ.js} +1 -1
- package/dist/{vue-ui-tiremarks-IeM3BlPW.js → vue-ui-tiremarks-B82wo09u.js} +1 -1
- package/dist/{vue-ui-treemap-BGZM7ibv.js → vue-ui-treemap-C1jyeafE.js} +1 -1
- package/dist/{vue-ui-waffle-a3dFVBk4.js → vue-ui-waffle-Cc261FVZ.js} +1 -1
- package/dist/{vue-ui-wheel-OnIRQJ8a.js → vue-ui-wheel-CSRn0Xrh.js} +1 -1
- package/dist/{vue-ui-word-cloud-C9SkyutR.js → vue-ui-word-cloud-Bdqfb9BC.js} +1 -1
- package/dist/{vue-ui-world-CEevuFbk.js → vue-ui-world-CtW4GPlU.js} +1 -1
- package/dist/{vue-ui-xy-1hee-IEM.js → vue-ui-xy-BnpMEtr8.js} +2 -2
- package/dist/{vue-ui-xy-canvas-D2f0d45c.js → vue-ui-xy-canvas-DF3izGyG.js} +1 -1
- package/package.json +1 -1
|
@@ -177,7 +177,18 @@ var be = ["data-minimap"], xe = {
|
|
|
177
177
|
"min",
|
|
178
178
|
"max",
|
|
179
179
|
"tabindex"
|
|
180
|
-
], xt =
|
|
180
|
+
], xt = {
|
|
181
|
+
key: 3,
|
|
182
|
+
class: "minimap-handle-overlay"
|
|
183
|
+
}, St = ["xmlns", "viewBox"], Ct = [
|
|
184
|
+
"x",
|
|
185
|
+
"width",
|
|
186
|
+
"height"
|
|
187
|
+
], wt = [
|
|
188
|
+
"x",
|
|
189
|
+
"width",
|
|
190
|
+
"height"
|
|
191
|
+
], Tt = 48, Et = /* @__PURE__ */ s({
|
|
181
192
|
__name: "SlicerPreview",
|
|
182
193
|
props: {
|
|
183
194
|
uuid: {
|
|
@@ -396,67 +407,67 @@ var be = ["data-minimap"], xe = {
|
|
|
396
407
|
"reset",
|
|
397
408
|
"trapMouse"
|
|
398
409
|
],
|
|
399
|
-
setup(s, { expose:
|
|
410
|
+
setup(s, { expose: Et, emit: Dt }) {
|
|
400
411
|
he((e) => ({
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
412
|
+
v5eb47e06: Ut.value,
|
|
413
|
+
v12abf30c: P.value,
|
|
414
|
+
v7c18506b: Gt.value,
|
|
415
|
+
v524170ac: s.selectColor,
|
|
416
|
+
v3873cd38: Wt.value,
|
|
417
|
+
v23d0062c: x.additionalMinimapHeight
|
|
407
418
|
}));
|
|
408
|
-
let x = s, S = v(null), C = v(x.min), w = v(x.max), T = d(() => !!x.allMinimaps.length),
|
|
419
|
+
let x = s, S = v(null), C = v(x.min), w = v(x.max), T = d(() => !!x.allMinimaps.length), Ot = v(n()), E = v(!1), D = d(() => T.value && x.minimapCompact), O = v(null), kt = v(!1), At = v(0), jt = v(0), Mt = v(null), Nt = d(() => Math.min(40, Math.max(20, x.handleWidth))), Pt = v(0), Ft = c((e) => M("futureStart", e), 0), It = c((e) => M("futureEnd", e), 0), k = d({
|
|
409
420
|
get: () => C.value,
|
|
410
421
|
set(e) {
|
|
411
422
|
let t = Math.min(e, w.value - 1);
|
|
412
|
-
t !== C.value && (C.value = t,
|
|
423
|
+
t !== C.value && (C.value = t, wn.value && (wn.value.value = String(t)), x.immediate ? M("update:start", Number(t)) : E.value && Ft(t));
|
|
413
424
|
}
|
|
414
425
|
}), A = d({
|
|
415
426
|
get: () => w.value,
|
|
416
427
|
set(e) {
|
|
417
428
|
let t = Math.max(e, C.value + 1);
|
|
418
|
-
t !== w.value && (w.value = t,
|
|
429
|
+
t !== w.value && (w.value = t, Tn.value && (Tn.value.value = String(t)), x.immediate ? M("update:end", Number(t)) : E.value && It(t));
|
|
419
430
|
}
|
|
420
431
|
});
|
|
421
432
|
function j() {
|
|
422
433
|
clearTimeout(null), x.immediate || (M("update:start", Number(C.value)), M("update:end", Number(w.value))), E.value = !1;
|
|
423
434
|
}
|
|
424
|
-
let
|
|
435
|
+
let Lt = d(() => x.refreshEndPoint === null ? x.max : x.refreshEndPoint), M = Dt, Rt = d(() => {
|
|
425
436
|
if (D.value) {
|
|
426
437
|
let e = Math.max(1, R.value - 1);
|
|
427
|
-
return
|
|
438
|
+
return _n.value / e * 100;
|
|
428
439
|
}
|
|
429
440
|
let e = Math.max(1, x.max - x.min);
|
|
430
441
|
return (C.value - x.min) / e * 100;
|
|
431
|
-
}),
|
|
442
|
+
}), zt = d(() => {
|
|
432
443
|
if (D.value) {
|
|
433
444
|
let e = Math.max(1, R.value - 1);
|
|
434
|
-
return
|
|
445
|
+
return vn.value / e * 100;
|
|
435
446
|
}
|
|
436
447
|
let e = Math.max(1, x.max - x.min);
|
|
437
448
|
return (w.value - x.min) / e * 100;
|
|
438
|
-
}),
|
|
449
|
+
}), Bt = d(() => (Rt.value + zt.value) / 2), Vt = d(() => {
|
|
439
450
|
if (!S.value) return !1;
|
|
440
451
|
let e = Math.max(1, x.max - x.min);
|
|
441
|
-
return S.value.getBoundingClientRect().width * ((C.value - x.min) / e) -
|
|
442
|
-
}),
|
|
452
|
+
return S.value.getBoundingClientRect().width * ((C.value - x.min) / e) - er.value / 2 < 0;
|
|
453
|
+
}), Ht = d(() => {
|
|
443
454
|
if (!S.value) return !1;
|
|
444
455
|
let e = Math.max(1, x.max - x.min), t = S.value.getBoundingClientRect().width;
|
|
445
|
-
return t * ((w.value - x.min) / e) +
|
|
456
|
+
return t * ((w.value - x.min) / e) + tr.value / 2 > t;
|
|
446
457
|
}), N = d(() => {
|
|
447
|
-
let e =
|
|
458
|
+
let e = Ht.value ? `calc(${Bt.value}% - ${sr.value.width}px)` : Vt.value ? `calc(${Bt.value}% - 8px)` : `calc(${Bt.value}% - ${sr.value.width / 2}px)`;
|
|
448
459
|
return {
|
|
449
|
-
left: `${
|
|
450
|
-
width: `${Math.max(0,
|
|
460
|
+
left: `${Rt.value}%`,
|
|
461
|
+
width: `${Math.max(0, zt.value - Rt.value)}%`,
|
|
451
462
|
background: x.selectColor,
|
|
452
|
-
tooltipLeft: `calc(${
|
|
453
|
-
tooltipRight: `calc(${
|
|
463
|
+
tooltipLeft: `calc(${Rt.value}% - ${Vt.value ? 9 : er.value / 2}px)`,
|
|
464
|
+
tooltipRight: `calc(${zt.value}% - ${Ht.value ? tr.value - 9 : tr.value / 2}px)`,
|
|
454
465
|
tooltipCenter: e,
|
|
455
|
-
arrowLeft: !
|
|
456
|
-
arrowRight: !
|
|
466
|
+
arrowLeft: !Vt.value,
|
|
467
|
+
arrowRight: !Ht.value
|
|
457
468
|
};
|
|
458
|
-
}),
|
|
459
|
-
function
|
|
469
|
+
}), Ut = d(() => x.inputColor), Wt = d(() => x.background), Gt = d(() => `${x.selectColor}33`), P = d(() => x.borderColor), Kt = d(() => Number(x.max) > Number(x.min));
|
|
470
|
+
function qt() {
|
|
460
471
|
M("reset");
|
|
461
472
|
}
|
|
462
473
|
b(() => x.min, (e) => {
|
|
@@ -481,28 +492,28 @@ var be = ["data-minimap"], xe = {
|
|
|
481
492
|
L.value && L.value.disconnect();
|
|
482
493
|
});
|
|
483
494
|
let R = d(() => Math.max(1, x.max - x.min));
|
|
484
|
-
function
|
|
495
|
+
function Jt(e) {
|
|
485
496
|
let t = Math.floor(e - x.min);
|
|
486
497
|
return Math.min(Math.max(0, t), R.value);
|
|
487
498
|
}
|
|
488
|
-
function
|
|
499
|
+
function Yt(e) {
|
|
489
500
|
let t = Math.ceil(e - x.min);
|
|
490
501
|
return Math.min(Math.max(0, t), R.value);
|
|
491
502
|
}
|
|
492
|
-
let z = d(() =>
|
|
493
|
-
d(() => Math.max(1, I.value.width -
|
|
503
|
+
let z = d(() => Jt(C.value)), B = d(() => Yt(w.value)), Xt = d(() => Math.max(...x.allMinimaps.map((e) => e.series.length))), Zt = d(() => T.value && x.minimapCompact ? 40 : 0), Qt = d(() => Zt.value / 2);
|
|
504
|
+
d(() => Math.max(1, I.value.width - Qt.value * 2));
|
|
494
505
|
let V = d(() => {
|
|
495
|
-
let e = Math.max(1,
|
|
506
|
+
let e = Math.max(1, Xt.value - +!!x.minimapCompact);
|
|
496
507
|
return I.value.width / e;
|
|
497
|
-
}),
|
|
498
|
-
function
|
|
499
|
-
let r =
|
|
508
|
+
}), $t = d(() => x.allMinimaps.length ? x.allMinimaps.filter((e) => e.type === "bar" && e.isVisible).length : 0), en = d(() => V.value / ($t.value || 1) * .8);
|
|
509
|
+
function tn(e, t, n) {
|
|
510
|
+
let r = en.value, i = Math.max(1, $t.value), a = Xt.value - 1;
|
|
500
511
|
return n === 0 ? e + r / 2 * t : n === a ? e - r / 2 * (i - t) : e - i * r / 2 + t * r;
|
|
501
512
|
}
|
|
502
|
-
function
|
|
503
|
-
return [0,
|
|
513
|
+
function nn(e, t) {
|
|
514
|
+
return [0, Xt.value - 1].includes(t) ? en.value / 2 : en.value;
|
|
504
515
|
}
|
|
505
|
-
let
|
|
516
|
+
let rn = d(() => {
|
|
506
517
|
let e = [];
|
|
507
518
|
if (Array.isArray(x.minimap) && x.minimap.length && x.minimapMerged && e.push(...x.minimap.filter(Number.isFinite)), Array.isArray(x.allMinimaps) && x.allMinimaps.length) for (let t of x.allMinimaps) t?.isVisible && Array.isArray(t?.series) && e.push(...t.series.filter(Number.isFinite));
|
|
508
519
|
return e.length ? {
|
|
@@ -512,25 +523,25 @@ var be = ["data-minimap"], xe = {
|
|
|
512
523
|
min: 0,
|
|
513
524
|
max: 1
|
|
514
525
|
};
|
|
515
|
-
}),
|
|
526
|
+
}), an = d(() => {
|
|
516
527
|
if (x.minScale == null && x.forceZeroCenter) return null;
|
|
517
528
|
let e = Number(x.minScale);
|
|
518
529
|
return Number.isFinite(e) ? e : null;
|
|
519
|
-
}),
|
|
530
|
+
}), on = d(() => {
|
|
520
531
|
if (x.maxScale == null && x.forceZeroCenter) return null;
|
|
521
532
|
let e = Number(x.maxScale);
|
|
522
533
|
return Number.isFinite(e) ? e : null;
|
|
523
|
-
}),
|
|
524
|
-
let { min: e, max: t } =
|
|
534
|
+
}), sn = d(() => an.value !== null && on.value !== null), cn = d(() => {
|
|
535
|
+
let { min: e, max: t } = rn.value, n = an.value, r = on.value, i, a;
|
|
525
536
|
return n !== null && r !== null ? (i = Math.min(n, e), a = Math.max(r, t)) : (i = n === null ? e : n, a = r === null ? t : r), Number.isFinite(i) || (i = 0), Number.isFinite(a) || (a = 1), i === a ? a = i + 1 : i > a && ([i, a] = [a, i]), {
|
|
526
537
|
min: i,
|
|
527
538
|
max: a
|
|
528
539
|
};
|
|
529
|
-
}),
|
|
540
|
+
}), ln = d(() => cn.value.min), un = d(() => cn.value.max), dn = d(() => ln.value < 0 && un.value > 0 || un.value <= 0 ? ln.value : 0), fn = (e) => {
|
|
530
541
|
let t = Math.max(1, I.value.height);
|
|
531
|
-
return
|
|
532
|
-
},
|
|
533
|
-
function
|
|
542
|
+
return mn(ln.value, un.value, t, sn.value)(e);
|
|
543
|
+
}, pn = d(() => fn(0));
|
|
544
|
+
function mn(e, t, n, r = !1) {
|
|
534
545
|
let i = (e, t, n) => Math.max(t, Math.min(n, e)), a = 1e-9, o = Math.max(a, t - e);
|
|
535
546
|
if (r) return (t) => n - (t - e) / o * n;
|
|
536
547
|
if (t <= 0) {
|
|
@@ -544,7 +555,7 @@ var be = ["data-minimap"], xe = {
|
|
|
544
555
|
return (e) => (1 - (i(e / r, -1, 1) + 1) / 2) * n;
|
|
545
556
|
}
|
|
546
557
|
}
|
|
547
|
-
function
|
|
558
|
+
function hn(e, n = !1, ee = !1) {
|
|
548
559
|
if (!e || !e.length) return {
|
|
549
560
|
fullSet: "",
|
|
550
561
|
points: [],
|
|
@@ -558,8 +569,8 @@ var be = ["data-minimap"], xe = {
|
|
|
558
569
|
selectionMarkers: [],
|
|
559
570
|
dashed: !1
|
|
560
571
|
};
|
|
561
|
-
let te = Math.max(1, I.value.height), ne =
|
|
562
|
-
let n = e, r = Number.isFinite(n), i = V.value * t + (x.minimapCompact ? 0 : V.value / 2), a = ne(
|
|
572
|
+
let te = Math.max(1, I.value.height), ne = mn(ln.value, un.value, te, sn.value), s = e.length, c = Math.min(Math.max(0, z.value), Math.max(0, s - 1)), re = Math.min(s, Math.max(c + 1, B.value)), l = e.map((e, t) => {
|
|
573
|
+
let n = e, r = Number.isFinite(n), i = V.value * t + (x.minimapCompact ? 0 : V.value / 2), a = ne(sn.value ? ((e, t, n) => Math.max(t, Math.min(n, e)))(0, ln.value, un.value) : 0);
|
|
563
574
|
return {
|
|
564
575
|
x: i,
|
|
565
576
|
y: r ? ne(n) : NaN,
|
|
@@ -582,8 +593,8 @@ var be = ["data-minimap"], xe = {
|
|
|
582
593
|
selectionMarkers: d
|
|
583
594
|
};
|
|
584
595
|
}
|
|
585
|
-
let H = d(() => x.minimap.length ?
|
|
586
|
-
let n =
|
|
596
|
+
let H = d(() => x.minimap.length ? hn(x.minimap) : []), U = d(() => x.allMinimaps.length ? x.allMinimaps.map((e, t) => {
|
|
597
|
+
let n = hn(e?.series || [], !!e.smooth, !!e.useStepper), r = e?.id ?? e?.name ?? t;
|
|
587
598
|
return {
|
|
588
599
|
key: typeof r == "object" ? JSON.stringify(r) : String(r),
|
|
589
600
|
color: e?.color,
|
|
@@ -600,53 +611,53 @@ var be = ["data-minimap"], xe = {
|
|
|
600
611
|
x: V.value * e + (x.minimapCompact ? 0 : V.value / 2),
|
|
601
612
|
width: V.value * (t - e) - V.value
|
|
602
613
|
};
|
|
603
|
-
}), G = v(x.minimapSelectedIndex),
|
|
614
|
+
}), G = v(x.minimapSelectedIndex), gn = (e) => Math.round(x.min + e), _n = d({
|
|
604
615
|
get() {
|
|
605
616
|
return D.value ? z.value : Number(k.value);
|
|
606
617
|
},
|
|
607
618
|
set(e) {
|
|
608
|
-
if (D.value)
|
|
619
|
+
if (D.value) On(gn(Math.round(+e || 0)));
|
|
609
620
|
else {
|
|
610
621
|
let t = Math.round(+e || 0), n = Number(w.value) - 1, r = Math.min(Math.max(x.min, t), n);
|
|
611
|
-
|
|
622
|
+
wn.value && (wn.value.valueAsNumber = r), On(r);
|
|
612
623
|
}
|
|
613
624
|
}
|
|
614
|
-
}),
|
|
625
|
+
}), vn = d({
|
|
615
626
|
get() {
|
|
616
627
|
return D.value ? Math.max(z.value, B.value - 1) : Number(A.value);
|
|
617
628
|
},
|
|
618
629
|
set(e) {
|
|
619
|
-
if (D.value)
|
|
630
|
+
if (D.value) An(gn(Math.round(+e || 0) + 1));
|
|
620
631
|
else {
|
|
621
632
|
let t = Math.round(+e || 0), n = Number(C.value) + 1, r = Math.max(n, Math.min(t, x.max));
|
|
622
|
-
|
|
633
|
+
Tn.value && (Tn.value.valueAsNumber = r), An(r);
|
|
623
634
|
}
|
|
624
635
|
}
|
|
625
636
|
});
|
|
626
|
-
function
|
|
627
|
-
G.value =
|
|
637
|
+
function yn(e) {
|
|
638
|
+
G.value = Jt(x.valueStart) + e;
|
|
628
639
|
}
|
|
629
|
-
let
|
|
640
|
+
let bn = re(yn, 60);
|
|
630
641
|
b(() => x.minimapSelectedIndex, (e, t) => {
|
|
631
642
|
if ([null, void 0].includes(e)) {
|
|
632
643
|
G.value = null;
|
|
633
644
|
return;
|
|
634
645
|
}
|
|
635
|
-
e !== t &&
|
|
646
|
+
e !== t && bn(e);
|
|
636
647
|
}, { immediate: !0 });
|
|
637
|
-
function
|
|
648
|
+
function xn(e) {
|
|
638
649
|
G.value = e;
|
|
639
650
|
let t = z.value, n = B.value;
|
|
640
|
-
e >= t && e < n && !
|
|
651
|
+
e >= t && e < n && !X.value && M("trapMouse", e - t);
|
|
641
652
|
}
|
|
642
|
-
function
|
|
643
|
-
|
|
653
|
+
function Sn(e) {
|
|
654
|
+
Kt.value && xn(wr(Cr(e.clientX)));
|
|
644
655
|
}
|
|
645
|
-
function
|
|
656
|
+
function Cn() {
|
|
646
657
|
G.value = null, M("trapMouse", null);
|
|
647
658
|
}
|
|
648
|
-
let
|
|
649
|
-
function
|
|
659
|
+
let wn = v(null), Tn = v(null);
|
|
660
|
+
function En(e) {
|
|
650
661
|
if (typeof e == "object" && e && "target" in e) {
|
|
651
662
|
let t = e.target, n = "valueAsNumber" in t ? t.valueAsNumber : +t.value;
|
|
652
663
|
return Number.isFinite(n) ? n : NaN;
|
|
@@ -654,122 +665,122 @@ var be = ["data-minimap"], xe = {
|
|
|
654
665
|
let t = +e;
|
|
655
666
|
return Number.isFinite(t) ? t : NaN;
|
|
656
667
|
}
|
|
657
|
-
let
|
|
658
|
-
function
|
|
668
|
+
let Dn = 0;
|
|
669
|
+
function On(e) {
|
|
659
670
|
E.value = !0;
|
|
660
|
-
let t =
|
|
661
|
-
Number.isFinite(t) && (cancelAnimationFrame(
|
|
671
|
+
let t = En(e);
|
|
672
|
+
Number.isFinite(t) && (cancelAnimationFrame(Dn), Dn = requestAnimationFrame(() => {
|
|
662
673
|
k.value = t;
|
|
663
674
|
}));
|
|
664
675
|
}
|
|
665
|
-
let
|
|
666
|
-
function
|
|
676
|
+
let kn = 0;
|
|
677
|
+
function An(e) {
|
|
667
678
|
E.value = !0;
|
|
668
|
-
let t =
|
|
669
|
-
Number.isFinite(t) && (cancelAnimationFrame(
|
|
679
|
+
let t = En(e);
|
|
680
|
+
Number.isFinite(t) && (cancelAnimationFrame(kn), kn = requestAnimationFrame(() => {
|
|
670
681
|
A.value = t;
|
|
671
682
|
}));
|
|
672
683
|
}
|
|
673
684
|
le(() => {
|
|
674
|
-
cancelAnimationFrame(
|
|
685
|
+
cancelAnimationFrame(Dn), cancelAnimationFrame(kn);
|
|
675
686
|
});
|
|
676
|
-
let
|
|
677
|
-
function
|
|
687
|
+
let jn = d(() => x.valueEnd - x.valueStart), Mn = d(() => jn.value < x.max - x.min), Nn = v(!1), Pn = v(null), Fn = d(() => (Pt.value - 48) / (x.max - x.min) * jn.value), In = d(() => Math.max(1, Pt.value - Tt - Fn.value)), Ln = d(() => Math.max(1, x.max - x.min - jn.value)), Rn = d(() => Ln.value / In.value), zn = v(0), Bn = v(0), Vn = v(0), Hn = v(0), K = null, q = null, J = null, Y = null, Un = v(x.min);
|
|
688
|
+
function Wn(e) {
|
|
678
689
|
if (!S.value) return x.min;
|
|
679
|
-
let t = S.value.getBoundingClientRect(), n = t.left +
|
|
690
|
+
let t = S.value.getBoundingClientRect(), n = t.left + Tt / 2, r = t.right - Tt / 2, i = Math.max(1, r - n), a = (Math.max(n, Math.min(e, r)) - n) / i, o = Math.max(1, x.max - x.min);
|
|
680
691
|
return Math.round(x.min + a * o);
|
|
681
692
|
}
|
|
682
|
-
let
|
|
683
|
-
if (E.value = !0,
|
|
693
|
+
let Gn = async (t) => {
|
|
694
|
+
if (E.value = !0, Z.value = !0, !x.enableSelectionDrag) return;
|
|
684
695
|
let n = t.type === "touchstart";
|
|
685
696
|
n || t.stopPropagation();
|
|
686
697
|
let r = n && t.targetTouches && t.targetTouches[0] ? t.targetTouches[0] : null, i = n ? r ? r.target : null : t.target;
|
|
687
698
|
if (!i || !(i instanceof Element) || i.classList?.contains("range-handle") || i.classList?.contains("vue-ui-zoom-compact-minimap-handle") || i.closest(".vue-ui-zoom-compact-minimap-handle")) return;
|
|
688
|
-
|
|
699
|
+
Nn.value = !0;
|
|
689
700
|
let a = n ? r ? r.clientX : 0 : t.clientX;
|
|
690
|
-
if (
|
|
691
|
-
|
|
692
|
-
let t = Math.min(.95, Math.max(.05, x.focusRangeRatio)), n = x.max - x.min, r = Math.max(1, Math.round(n * t)), i = Math.floor(r / 2), o =
|
|
701
|
+
if (Pn.value = a, zn.value = a, x.focusOnDrag && !Mn.value && S.value) {
|
|
702
|
+
Un.value = Wn(a);
|
|
703
|
+
let t = Math.min(.95, Math.max(.05, x.focusRangeRatio)), n = x.max - x.min, r = Math.max(1, Math.round(n * t)), i = Math.floor(r / 2), o = Un.value - i;
|
|
693
704
|
o = Math.max(x.min, Math.min(o, x.max - r));
|
|
694
705
|
let ee = Math.min(x.max, o + r);
|
|
695
|
-
k.value = o, A.value = ee,
|
|
706
|
+
k.value = o, A.value = ee, Ft(o), It(ee), e(S.value, "mouseup"), await se(), e(S.value, "mousedown", { clientX: a });
|
|
696
707
|
}
|
|
697
|
-
|
|
708
|
+
Bn.value = C.value, Vn.value = w.value, Hn.value = Rn.value, K = n ? "touchmove" : "mousemove", q = n ? "touchend" : "mouseup", J = n ? qn : Kn, Y = n ? Xn : Yn, window.addEventListener(K, J, { passive: !1 }), window.addEventListener(q, Y);
|
|
698
709
|
};
|
|
699
|
-
function
|
|
700
|
-
|
|
710
|
+
function Kn(e) {
|
|
711
|
+
Nn.value && Jn(e.clientX);
|
|
701
712
|
}
|
|
702
|
-
function
|
|
703
|
-
if (!
|
|
713
|
+
function qn(e) {
|
|
714
|
+
if (!Nn.value || !S.value) return;
|
|
704
715
|
let t = e.target;
|
|
705
716
|
if (!(t instanceof Element) || !S.value.contains(t) || t.classList && t.classList.contains("range-handle")) return;
|
|
706
717
|
e.preventDefault();
|
|
707
718
|
let n = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
|
|
708
|
-
n &&
|
|
709
|
-
}
|
|
710
|
-
function Un(e) {
|
|
711
|
-
if (!K.value) return;
|
|
712
|
-
let t = zn(Pn.value), n = zn(e) - t, r = Math.round(Fn.value + n);
|
|
713
|
-
r = Math.max(x.min, Math.min(r, x.max - Dn.value));
|
|
714
|
-
let i = r + Dn.value;
|
|
715
|
-
k.value = r, A.value = i, jt(r), Mt(i);
|
|
719
|
+
n && Jn(n.clientX);
|
|
716
720
|
}
|
|
717
|
-
function
|
|
718
|
-
|
|
721
|
+
function Jn(e) {
|
|
722
|
+
if (!Nn.value) return;
|
|
723
|
+
let t = Wn(zn.value), n = Wn(e) - t, r = Math.round(Bn.value + n);
|
|
724
|
+
r = Math.max(x.min, Math.min(r, x.max - jn.value));
|
|
725
|
+
let i = r + jn.value;
|
|
726
|
+
k.value = r, A.value = i, Ft(r), It(i);
|
|
719
727
|
}
|
|
720
|
-
function
|
|
721
|
-
|
|
728
|
+
function Yn() {
|
|
729
|
+
Zn();
|
|
722
730
|
}
|
|
723
|
-
function
|
|
724
|
-
|
|
731
|
+
function Xn() {
|
|
732
|
+
Zn();
|
|
725
733
|
}
|
|
726
|
-
let Z = v(!1), qn = v(null), Jn = v(null), Yn = v(1), Xn = v(1), Q = v(!1);
|
|
727
734
|
function Zn() {
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
735
|
+
Nn.value = !1, K && J && window.removeEventListener(K, J), q && Y && window.removeEventListener(q, Y), K = q = null, J = Y = null, j();
|
|
736
|
+
}
|
|
737
|
+
let X = v(!1), Qn = v(null), $n = v(null), er = v(1), tr = v(1), Z = v(!1);
|
|
738
|
+
function nr() {
|
|
739
|
+
if (Qn.value) {
|
|
740
|
+
let e = Math.round(Qn.value.getBoundingClientRect().width);
|
|
741
|
+
e !== er.value && (er.value = e);
|
|
731
742
|
}
|
|
732
743
|
}
|
|
733
|
-
function
|
|
734
|
-
if (
|
|
735
|
-
let e = Math.round(
|
|
736
|
-
e !==
|
|
744
|
+
function rr() {
|
|
745
|
+
if ($n.value) {
|
|
746
|
+
let e = Math.round($n.value.getBoundingClientRect().width);
|
|
747
|
+
e !== tr.value && (tr.value = e);
|
|
737
748
|
}
|
|
738
749
|
}
|
|
739
750
|
de(() => {
|
|
740
|
-
|
|
751
|
+
nr(), rr();
|
|
741
752
|
});
|
|
742
|
-
let
|
|
743
|
-
function
|
|
744
|
-
|
|
753
|
+
let ir = v(0);
|
|
754
|
+
function ar(e) {
|
|
755
|
+
ir.value = +(e === "start");
|
|
745
756
|
}
|
|
746
|
-
let
|
|
757
|
+
let or = v(!1), sr = v({
|
|
747
758
|
width: 0,
|
|
748
759
|
left: 0
|
|
749
760
|
});
|
|
750
761
|
b([C, w], async () => {
|
|
751
|
-
if (await se(), !
|
|
752
|
-
|
|
762
|
+
if (await se(), !Qn.value || !$n.value) {
|
|
763
|
+
or.value = !1, sr.value = {
|
|
753
764
|
width: 0,
|
|
754
765
|
left: 0
|
|
755
766
|
};
|
|
756
767
|
return;
|
|
757
768
|
}
|
|
758
|
-
let e =
|
|
759
|
-
|
|
769
|
+
let e = Qn.value.getBoundingClientRect(), t = $n.value.getBoundingClientRect();
|
|
770
|
+
or.value = e.x + e.width > t.x;
|
|
760
771
|
let n = e.x + e.width / 2, r = t.x + t.width / 2, i = e.width + t.width;
|
|
761
|
-
|
|
772
|
+
sr.value = {
|
|
762
773
|
width: i,
|
|
763
774
|
left: (n + r) / 2 - i / 2
|
|
764
775
|
};
|
|
765
776
|
}), de(() => {
|
|
766
|
-
|
|
777
|
+
nr(), rr();
|
|
767
778
|
}), b(() => x.labelLeft, () => {
|
|
768
|
-
se(
|
|
779
|
+
se(nr);
|
|
769
780
|
}, { deep: !0 }), b(() => x.labelRight, () => {
|
|
770
|
-
se(
|
|
781
|
+
se(rr);
|
|
771
782
|
}, { deep: !0 });
|
|
772
|
-
let
|
|
783
|
+
let Q = d(() => {
|
|
773
784
|
let e = "", t = "", n = !1;
|
|
774
785
|
if (ee(x.customFormat)) try {
|
|
775
786
|
let r = x.customFormat({
|
|
@@ -799,10 +810,10 @@ var be = ["data-minimap"], xe = {
|
|
|
799
810
|
};
|
|
800
811
|
});
|
|
801
812
|
le(() => {
|
|
802
|
-
L.value && L.value.disconnect(),
|
|
813
|
+
L.value && L.value.disconnect(), K && J && window.removeEventListener(K, J), q && Y && window.removeEventListener(q, Y), K = q = null, J = Y = null, clearTimeout(null);
|
|
803
814
|
});
|
|
804
|
-
let
|
|
805
|
-
if (!
|
|
815
|
+
let cr = d(() => {
|
|
816
|
+
if (!Kt.value) return null;
|
|
806
817
|
if (G.value >= z.value && G.value < B.value) {
|
|
807
818
|
let e = G.value, t = V.value * e + (x.minimapCompact ? 0 : V.value / 2);
|
|
808
819
|
return {
|
|
@@ -817,54 +828,54 @@ var be = ["data-minimap"], xe = {
|
|
|
817
828
|
};
|
|
818
829
|
}
|
|
819
830
|
return null;
|
|
820
|
-
}),
|
|
821
|
-
function
|
|
831
|
+
}), lr = d(() => Number(C.value) < Number(w.value) - 1), ur = d(() => Number(C.value) > Number(x.min)), dr = d(() => Number(w.value) < Number(x.max)), fr = d(() => Number(w.value) > Number(C.value) + 1);
|
|
832
|
+
function pr(e) {
|
|
822
833
|
let t = Number(C.value) + e;
|
|
823
|
-
e > 0 && !
|
|
834
|
+
e > 0 && !lr.value || e < 0 && !ur.value || (E.value = !0, k.value = t, j());
|
|
824
835
|
}
|
|
825
|
-
function
|
|
836
|
+
function mr(e) {
|
|
826
837
|
let t = Number(w.value) + e;
|
|
827
|
-
e > 0 && !
|
|
838
|
+
e > 0 && !dr.value || e < 0 && !fr.value || (E.value = !0, A.value = t, j());
|
|
828
839
|
}
|
|
829
|
-
let
|
|
830
|
-
plus: () =>
|
|
831
|
-
minus: () =>
|
|
832
|
-
canPlus:
|
|
833
|
-
canMinus:
|
|
834
|
-
},
|
|
835
|
-
plus: () =>
|
|
836
|
-
minus: () =>
|
|
837
|
-
canPlus:
|
|
838
|
-
canMinus:
|
|
840
|
+
let hr = {
|
|
841
|
+
plus: () => pr(1),
|
|
842
|
+
minus: () => pr(-1),
|
|
843
|
+
canPlus: lr,
|
|
844
|
+
canMinus: ur
|
|
845
|
+
}, gr = {
|
|
846
|
+
plus: () => mr(1),
|
|
847
|
+
minus: () => mr(-1),
|
|
848
|
+
canPlus: dr,
|
|
849
|
+
canMinus: fr
|
|
839
850
|
};
|
|
840
|
-
function
|
|
841
|
-
if (!e ||
|
|
851
|
+
function _r(e) {
|
|
852
|
+
if (!e || vr(e.target)) return;
|
|
842
853
|
let t = e.key, n = t === "ArrowLeft" || t === "ArrowDown" || t === "-" || t === "Subtract", r = t === "ArrowRight" || t === "ArrowUp" || t === "+" || t === "Add";
|
|
843
|
-
!n && !r || (e.preventDefault(), e.stopPropagation(), r ? (
|
|
854
|
+
!n && !r || (e.preventDefault(), e.stopPropagation(), r ? (hr.plus(), gr.plus()) : (hr.minus(), gr.minus()));
|
|
844
855
|
}
|
|
845
|
-
function
|
|
856
|
+
function vr(e) {
|
|
846
857
|
return e instanceof HTMLElement && (e.isContentEditable || e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.tagName === "SELECT");
|
|
847
858
|
}
|
|
848
|
-
function
|
|
859
|
+
function yr(e) {
|
|
849
860
|
if (!T.value || !x.minimapCompact) return;
|
|
850
861
|
let t = S.value;
|
|
851
862
|
if (!t) return;
|
|
852
863
|
let n = e === "start" ? "[data-cy=\"slicer-compact-handle-left\"]" : "[data-cy=\"slicer-compact-handle-right\"]", r = t.querySelector(n);
|
|
853
864
|
r && r instanceof SVGElement && typeof r.focus == "function" && r.focus();
|
|
854
865
|
}
|
|
855
|
-
function
|
|
856
|
-
if (!t ||
|
|
866
|
+
function br(e, t) {
|
|
867
|
+
if (!t || vr(t.target)) return;
|
|
857
868
|
let n = t.key, r = n === "ArrowLeft" || n === "ArrowDown" || n === "-" || n === "Subtract", i = n === "ArrowRight" || n === "ArrowUp" || n === "+" || n === "Add";
|
|
858
|
-
!r && !i || (t.preventDefault(), t.stopPropagation(), e === "start" ? i ?
|
|
869
|
+
!r && !i || (t.preventDefault(), t.stopPropagation(), e === "start" ? i ? hr.plus() : hr.minus() : i ? gr.plus() : gr.minus(), se(() => yr(e)));
|
|
859
870
|
}
|
|
860
|
-
let
|
|
871
|
+
let xr = d(() => ({
|
|
861
872
|
tabindex: 0,
|
|
862
873
|
role: "slider",
|
|
863
874
|
"aria-label": "Range start",
|
|
864
875
|
"aria-valuemin": Number(x.min),
|
|
865
876
|
"aria-valuemax": Math.max(Number(x.min), Number(w.value) - 1),
|
|
866
877
|
"aria-valuenow": Number(C.value)
|
|
867
|
-
})),
|
|
878
|
+
})), Sr = d(() => ({
|
|
868
879
|
tabindex: 0,
|
|
869
880
|
role: "slider",
|
|
870
881
|
"aria-label": "Range end",
|
|
@@ -872,53 +883,53 @@ var be = ["data-minimap"], xe = {
|
|
|
872
883
|
"aria-valuemax": Number(x.max),
|
|
873
884
|
"aria-valuenow": Number(w.value)
|
|
874
885
|
}));
|
|
875
|
-
function
|
|
876
|
-
if (!
|
|
877
|
-
let t =
|
|
886
|
+
function Cr(e) {
|
|
887
|
+
if (!Mt.value) return 0;
|
|
888
|
+
let t = Mt.value.getBoundingClientRect();
|
|
878
889
|
return t.width ? (e - t.left) / t.width * I.value.width : 0;
|
|
879
890
|
}
|
|
880
|
-
function
|
|
891
|
+
function wr(e) {
|
|
881
892
|
let t = (e - (x.minimapCompact ? 0 : V.value / 2)) / Math.max(1, V.value);
|
|
882
893
|
return Math.max(0, Math.min(Math.max(0, R.value - 1), Math.round(t)));
|
|
883
894
|
}
|
|
884
|
-
function
|
|
885
|
-
let t =
|
|
895
|
+
function Tr(e) {
|
|
896
|
+
let t = wr(e);
|
|
886
897
|
if (O.value === "start") {
|
|
887
898
|
let e = Math.min(x.min + t, Number(w.value) - 1);
|
|
888
|
-
k.value = e,
|
|
899
|
+
k.value = e, Ft(e);
|
|
889
900
|
return;
|
|
890
901
|
}
|
|
891
902
|
if (O.value === "end") {
|
|
892
903
|
let e = Math.max(Number(C.value) + 1, x.min + t + 1), n = Math.min(x.max, e);
|
|
893
|
-
A.value = n,
|
|
904
|
+
A.value = n, It(n);
|
|
894
905
|
}
|
|
895
906
|
}
|
|
896
|
-
function
|
|
907
|
+
function Er(e) {
|
|
897
908
|
if (!O.value || !F.value) return;
|
|
898
|
-
let t = e.clientX -
|
|
899
|
-
if (!
|
|
909
|
+
let t = e.clientX - At.value;
|
|
910
|
+
if (!kt.value) {
|
|
900
911
|
if (Math.abs(t) < 4) return;
|
|
901
|
-
|
|
912
|
+
kt.value = !0, E.value = !0, Z.value = !0;
|
|
902
913
|
}
|
|
903
|
-
let n =
|
|
904
|
-
|
|
914
|
+
let n = Cr(e.clientX) - jt.value;
|
|
915
|
+
Tr(O.value === "start" ? n + Nt.value : n);
|
|
905
916
|
}
|
|
906
|
-
function
|
|
917
|
+
function Dr() {
|
|
907
918
|
if (!O.value) return;
|
|
908
|
-
window.removeEventListener("mousemove",
|
|
909
|
-
let e =
|
|
910
|
-
O.value = null,
|
|
919
|
+
window.removeEventListener("mousemove", Er, !0), window.removeEventListener("mouseup", Dr, !0);
|
|
920
|
+
let e = kt.value;
|
|
921
|
+
O.value = null, kt.value = !1, At.value = 0, jt.value = 0, e && j();
|
|
911
922
|
}
|
|
912
|
-
function
|
|
923
|
+
function Or(e, t) {
|
|
913
924
|
if (!T.value || !x.minimapCompact || !F.value) return;
|
|
914
925
|
t.preventDefault(), t.stopPropagation();
|
|
915
|
-
let n =
|
|
916
|
-
O.value = e,
|
|
926
|
+
let n = Cr(t.clientX), r = e === "start" ? W.value.x - Nt.value : W.value.x + W.value.width;
|
|
927
|
+
O.value = e, kt.value = !1, At.value = t.clientX, jt.value = n - r, window.addEventListener("mousemove", Er, !0), window.addEventListener("mouseup", Dr, !0);
|
|
917
928
|
}
|
|
918
|
-
let
|
|
929
|
+
let kr = d(() => z.value), Ar = d(() => Math.max(z.value, B.value - 1));
|
|
919
930
|
d(() => {
|
|
920
931
|
if (!T.value || !x.minimapCompact || !x.allMinimaps.length) return [];
|
|
921
|
-
let e =
|
|
932
|
+
let e = kr.value, t = Ar.value;
|
|
922
933
|
return U.value.flatMap((n) => {
|
|
923
934
|
if (!n?.isVisible || !["line", "plot"].includes(n.type) || !n.type) return [];
|
|
924
935
|
let r = [], i = n.points?.find((t) => t.i === e && t.value !== null), a = n.points?.find((e) => e.i === t && e.value !== null);
|
|
@@ -935,10 +946,10 @@ var be = ["data-minimap"], xe = {
|
|
|
935
946
|
}), r;
|
|
936
947
|
});
|
|
937
948
|
});
|
|
938
|
-
let
|
|
939
|
-
return
|
|
940
|
-
setStartValue:
|
|
941
|
-
setEndValue:
|
|
949
|
+
let $ = d(() => Math.min(40, Math.max(20, x.handleWidth))), jr = d(() => W.value.x - $.value), Mr = d(() => W.value.x + W.value.width);
|
|
950
|
+
return Et({
|
|
951
|
+
setStartValue: On,
|
|
952
|
+
setEndValue: An
|
|
942
953
|
}), (e, t) => (_(), p("div", {
|
|
943
954
|
"data-minimap": T.value,
|
|
944
955
|
"data-dom-to-png-ignore": "",
|
|
@@ -949,9 +960,9 @@ var be = ["data-minimap"], xe = {
|
|
|
949
960
|
class: "vue-data-ui-zoom",
|
|
950
961
|
ref_key: "zoomWrapper",
|
|
951
962
|
ref: S,
|
|
952
|
-
onMousedown:
|
|
953
|
-
onTouchstart:
|
|
954
|
-
}, [m("div", xe, [s.valueStart !== s.refreshStartPoint || s.valueEnd !==
|
|
963
|
+
onMousedown: Gn,
|
|
964
|
+
onTouchstart: Gn
|
|
965
|
+
}, [m("div", xe, [s.valueStart !== s.refreshStartPoint || s.valueEnd !== Lt.value ? (_(), p("div", Se, [fe(e.$slots, "reset-action", { reset: qt }, () => [m("button", {
|
|
955
966
|
tabindex: "0",
|
|
956
967
|
role: "button",
|
|
957
968
|
class: "vue-data-ui-refresh-button",
|
|
@@ -959,7 +970,7 @@ var be = ["data-minimap"], xe = {
|
|
|
959
970
|
top: T.value ? "36px" : "-16px",
|
|
960
971
|
cursor: s.isCursorPointer ? "pointer" : "default"
|
|
961
972
|
}),
|
|
962
|
-
onClick:
|
|
973
|
+
onClick: qt
|
|
963
974
|
}, [ae(ie, {
|
|
964
975
|
name: "refresh",
|
|
965
976
|
stroke: s.textColor
|
|
@@ -971,19 +982,19 @@ var be = ["data-minimap"], xe = {
|
|
|
971
982
|
"--minimap-unit-px": V.value + "px",
|
|
972
983
|
"--minimap-offset-px": (s.minimapCompact ? 0 : V.value / 2) + "px"
|
|
973
984
|
} : void 0]),
|
|
974
|
-
onMouseenter: t[18] ||= (e) =>
|
|
975
|
-
onMouseleave: t[19] ||= (e) =>
|
|
985
|
+
onMouseenter: t[18] ||= (e) => Z.value = !0,
|
|
986
|
+
onMouseleave: t[19] ||= (e) => Z.value = !1
|
|
976
987
|
}, [
|
|
977
988
|
T.value ? (_(), p("div", Ce, [(_(), p("svg", {
|
|
978
989
|
ref_key: "minimapSvg",
|
|
979
|
-
ref:
|
|
990
|
+
ref: Mt,
|
|
980
991
|
key: `mm-${s.minimapMerged ? "merged" : "split"}-${s.minimapCompact ? "compact" : "normal"}`,
|
|
981
992
|
xmlns: me(ne),
|
|
982
993
|
viewBox: `0 0 ${Math.max(0, I.value.width)} ${Math.max(0, I.value.height)}`,
|
|
983
994
|
preserveAspectRatio: "none"
|
|
984
995
|
}, [
|
|
985
996
|
m("defs", null, [m("linearGradient", {
|
|
986
|
-
id:
|
|
997
|
+
id: Ot.value,
|
|
987
998
|
x1: "0%",
|
|
988
999
|
y1: "0%",
|
|
989
1000
|
x2: "0%",
|
|
@@ -1018,15 +1029,15 @@ var be = ["data-minimap"], xe = {
|
|
|
1018
1029
|
}, null, 8, Oe)) : f("", !0), s.minimapMerged && !s.minimapCompact ? (_(), p("path", {
|
|
1019
1030
|
key: 1,
|
|
1020
1031
|
d: `M${V.value / 2},${Math.max(I.value.height, 0)} ${H.value.fullSet} L${I.value.width - V.value / 2},${Math.max(I.value.height, 0)}Z`,
|
|
1021
|
-
fill: `url(#${
|
|
1032
|
+
fill: `url(#${Ot.value})`,
|
|
1022
1033
|
stroke: "none",
|
|
1023
1034
|
style: { opacity: "0.6" }
|
|
1024
1035
|
}, null, 8, ke)) : s.minimapMerged ? f("", !0) : (_(), p(u, { key: 2 }, [
|
|
1025
1036
|
(_(!0), p(u, null, y(U.value.filter((e) => e.type === "bar" && e.isVisible), (e, t) => (_(), p("g", null, [(_(!0), p(u, null, y(e.points, (n, r) => (_(), p(u, null, [e && !isNaN(n.y) ? (_(), p("rect", {
|
|
1026
1037
|
key: 0,
|
|
1027
|
-
x:
|
|
1038
|
+
x: tn(n.x, t, r),
|
|
1028
1039
|
y: n.v >= 0 ? n.y : n.y0,
|
|
1029
|
-
width:
|
|
1040
|
+
width: nn(t, r),
|
|
1030
1041
|
height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
|
|
1031
1042
|
fill: e.color,
|
|
1032
1043
|
style: { opacity: .6 }
|
|
@@ -1075,7 +1086,7 @@ var be = ["data-minimap"], xe = {
|
|
|
1075
1086
|
height: Math.max(I.value.height, 0),
|
|
1076
1087
|
rx: s.minimapSelectionRadius,
|
|
1077
1088
|
fill: P.value,
|
|
1078
|
-
style: g({ opacity:
|
|
1089
|
+
style: g({ opacity: Nn.value || E.value ? 0 : 1 })
|
|
1079
1090
|
}, null, 12, Fe),
|
|
1080
1091
|
m("rect", {
|
|
1081
1092
|
x: W.value.x,
|
|
@@ -1091,16 +1102,16 @@ var be = ["data-minimap"], xe = {
|
|
|
1091
1102
|
"aria-valuemin": Number(x.min),
|
|
1092
1103
|
"aria-valuemax": Number(x.max),
|
|
1093
1104
|
"aria-valuenow": Number(C.value),
|
|
1094
|
-
"aria-valuetext":
|
|
1095
|
-
onKeydown:
|
|
1105
|
+
"aria-valuetext": Q.value.left && Q.value.right ? `${Q.value.left} – ${Q.value.right}` : void 0,
|
|
1106
|
+
onKeydown: _r
|
|
1096
1107
|
}, null, 44, Ie),
|
|
1097
|
-
!s.minimapMerged &&
|
|
1108
|
+
!s.minimapMerged && dn.value < 0 ? (_(), p("line", {
|
|
1098
1109
|
key: 2,
|
|
1099
1110
|
class: "slicer-minimap-zero-line",
|
|
1100
1111
|
x1: 0,
|
|
1101
1112
|
x2: I.value.width,
|
|
1102
|
-
y1:
|
|
1103
|
-
y2:
|
|
1113
|
+
y1: pn.value,
|
|
1114
|
+
y2: pn.value,
|
|
1104
1115
|
stroke: s.minimapFrameColor,
|
|
1105
1116
|
"stroke-width": "0.5"
|
|
1106
1117
|
}, null, 8, Le)) : f("", !0),
|
|
@@ -1108,7 +1119,7 @@ var be = ["data-minimap"], xe = {
|
|
|
1108
1119
|
H.value && H.value.sliced && H.value.sliced.length ? (_(), p(u, { key: 0 }, [H.value.selectionSet ? (_(), p("path", {
|
|
1109
1120
|
key: 0,
|
|
1110
1121
|
d: `M${H.value.sliced[0].x},${Math.max(I.value.height, 0)} ${H.value.selectionSet} L${H.value.sliced[H.value.sliced.length - 1].x},${Math.max(I.value.height, 0)}Z`,
|
|
1111
|
-
fill: `url(#${
|
|
1122
|
+
fill: `url(#${Ot.value})`,
|
|
1112
1123
|
stroke: "none",
|
|
1113
1124
|
style: { opacity: "1" }
|
|
1114
1125
|
}, null, 8, ze)) : f("", !0), H.value.selectionSet ? (_(), p("path", {
|
|
@@ -1141,9 +1152,9 @@ var be = ["data-minimap"], xe = {
|
|
|
1141
1152
|
])) : (_(), p("g", Ue, [
|
|
1142
1153
|
(_(!0), p(u, null, y(U.value.filter((e) => e.type === "bar" && e.isVisible), (e, t) => (_(), p("g", null, [(_(!0), p(u, null, y(e.points, (n, r) => (_(), p(u, null, [e && !isNaN(n.y) ? (_(), p("rect", {
|
|
1143
1154
|
key: 0,
|
|
1144
|
-
x:
|
|
1155
|
+
x: tn(n.x, t, r),
|
|
1145
1156
|
y: n.v >= 0 ? n.y : n.y0,
|
|
1146
|
-
width:
|
|
1157
|
+
width: nn(t, r),
|
|
1147
1158
|
height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
|
|
1148
1159
|
fill: e.color,
|
|
1149
1160
|
style: g({ opacity: +(r >= k.value && r < A.value) })
|
|
@@ -1172,45 +1183,41 @@ var be = ["data-minimap"], xe = {
|
|
|
1172
1183
|
e.$slots.slotMap ? fe(e.$slots, "slotMap", ce(oe({ key: 4 }, {
|
|
1173
1184
|
width: Math.max(0, I.value.width),
|
|
1174
1185
|
height: Math.max(0, I.value.height),
|
|
1175
|
-
zeroY:
|
|
1186
|
+
zeroY: pn.value,
|
|
1176
1187
|
unitW: Math.max(0, V.value)
|
|
1177
1188
|
})), void 0, !0) : f("", !0),
|
|
1178
|
-
G.value !== null && !
|
|
1189
|
+
G.value !== null && !X.value ? (_(), p("line", ce(oe({ key: 5 }, cr.value)), null, 16)) : f("", !0),
|
|
1179
1190
|
m("rect", {
|
|
1180
1191
|
x: 0,
|
|
1181
1192
|
y: 0,
|
|
1182
1193
|
width: Math.max(0, I.value.width),
|
|
1183
1194
|
height: Math.max(0, I.value.height),
|
|
1184
1195
|
fill: "transparent",
|
|
1185
|
-
style: g([{ "pointer-events": "all !important" }, { cursor: s.enableSelectionDrag ?
|
|
1186
|
-
onMousedown: t[0] ||= (e) =>
|
|
1187
|
-
onMouseup: t[1] ||= (e) =>
|
|
1188
|
-
onMousemove:
|
|
1189
|
-
onMouseleave:
|
|
1196
|
+
style: g([{ "pointer-events": "all !important" }, { cursor: s.enableSelectionDrag ? X.value ? "grabbing" : "grab" : "default" }]),
|
|
1197
|
+
onMousedown: t[0] ||= (e) => X.value = !0,
|
|
1198
|
+
onMouseup: t[1] ||= (e) => X.value = !1,
|
|
1199
|
+
onMousemove: Sn,
|
|
1200
|
+
onMouseleave: Cn
|
|
1190
1201
|
}, null, 44, qe),
|
|
1191
1202
|
T.value && s.minimapCompact ? (_(), p(u, { key: 6 }, [
|
|
1192
|
-
m("rect",
|
|
1203
|
+
m("rect", {
|
|
1193
1204
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1194
|
-
x:
|
|
1205
|
+
x: jr.value,
|
|
1195
1206
|
y: 0,
|
|
1196
|
-
width:
|
|
1207
|
+
width: $.value,
|
|
1197
1208
|
height: I.value.height,
|
|
1198
1209
|
fill: s.handleFill || P.value,
|
|
1199
1210
|
stroke: s.handleBorderColor || s.textColor,
|
|
1200
1211
|
"stroke-width": s.handleBorderWidth,
|
|
1201
1212
|
rx: 3
|
|
1202
|
-
},
|
|
1203
|
-
onKeydown: t[2] ||= (e) => hr("start", e),
|
|
1204
|
-
onMousedown: t[3] ||= ye((e) => Cr("start", e), ["stop", "prevent"]),
|
|
1205
|
-
onClick: t[4] ||= ye(() => {}, ["stop", "prevent"])
|
|
1206
|
-
}), null, 16, Je),
|
|
1213
|
+
}, null, 8, Je),
|
|
1207
1214
|
s.handleType && s.handleType !== "empty" ? (_(), p("g", {
|
|
1208
1215
|
key: 0,
|
|
1209
1216
|
class: "compact-handle-icon",
|
|
1210
|
-
transform: `translate(${
|
|
1217
|
+
transform: `translate(${jr.value}, 0)`,
|
|
1211
1218
|
style: { "pointer-events": "none" }
|
|
1212
1219
|
}, [(_(), p("svg", {
|
|
1213
|
-
width:
|
|
1220
|
+
width: $.value,
|
|
1214
1221
|
height: I.value.height,
|
|
1215
1222
|
viewBox: "0 0 20 20",
|
|
1216
1223
|
preserveAspectRatio: "xMidYMid meet"
|
|
@@ -1237,28 +1244,24 @@ var be = ["data-minimap"], xe = {
|
|
|
1237
1244
|
stroke: "none",
|
|
1238
1245
|
opacity: "0.6"
|
|
1239
1246
|
}, null, 8, $e)) : f("", !0)], 8, Xe))], 8, Ye)) : f("", !0),
|
|
1240
|
-
m("rect",
|
|
1247
|
+
m("rect", {
|
|
1241
1248
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1242
|
-
x:
|
|
1249
|
+
x: Mr.value,
|
|
1243
1250
|
y: 0,
|
|
1244
|
-
width:
|
|
1251
|
+
width: $.value,
|
|
1245
1252
|
height: I.value.height,
|
|
1246
1253
|
fill: s.handleFill || P.value,
|
|
1247
1254
|
stroke: s.handleBorderColor || s.textColor,
|
|
1248
1255
|
"stroke-width": s.handleBorderWidth,
|
|
1249
1256
|
rx: 3
|
|
1250
|
-
},
|
|
1251
|
-
onKeydown: t[5] ||= (e) => hr("end", e),
|
|
1252
|
-
onMousedown: t[6] ||= ye((e) => Cr("end", e), ["stop", "prevent"]),
|
|
1253
|
-
onClick: t[7] ||= ye(() => {}, ["stop", "prevent"])
|
|
1254
|
-
}), null, 16, et),
|
|
1257
|
+
}, null, 8, et),
|
|
1255
1258
|
s.handleType && s.handleType !== "empty" ? (_(), p("g", {
|
|
1256
1259
|
key: 1,
|
|
1257
1260
|
class: "compact-handle-icon",
|
|
1258
|
-
transform: `translate(${
|
|
1261
|
+
transform: `translate(${Mr.value}, 0)`,
|
|
1259
1262
|
style: { "pointer-events": "none" }
|
|
1260
1263
|
}, [(_(), p("svg", {
|
|
1261
|
-
width:
|
|
1264
|
+
width: $.value,
|
|
1262
1265
|
height: I.value.height,
|
|
1263
1266
|
viewBox: "0 0 20 20",
|
|
1264
1267
|
preserveAspectRatio: "xMidYMid meet"
|
|
@@ -1390,11 +1393,11 @@ var be = ["data-minimap"], xe = {
|
|
|
1390
1393
|
"range-highlight": !0,
|
|
1391
1394
|
move: s.enableSelectionDrag
|
|
1392
1395
|
}),
|
|
1393
|
-
onMousedown: t[
|
|
1394
|
-
onMouseup: t[
|
|
1396
|
+
onMousedown: t[2] ||= (e) => X.value = !0,
|
|
1397
|
+
onMouseup: t[3] ||= (e) => X.value = !1,
|
|
1395
1398
|
style: g({
|
|
1396
1399
|
...N.value,
|
|
1397
|
-
cursor:
|
|
1400
|
+
cursor: X.value ? "grabbing" : "grab",
|
|
1398
1401
|
visibility: T.value && s.minimapCompact ? "hidden" : "visible"
|
|
1399
1402
|
})
|
|
1400
1403
|
}, null, 38),
|
|
@@ -1402,7 +1405,7 @@ var be = ["data-minimap"], xe = {
|
|
|
1402
1405
|
key: 1,
|
|
1403
1406
|
"aria-label": "range-handle-left",
|
|
1404
1407
|
ref_key: "rangeStart",
|
|
1405
|
-
ref:
|
|
1408
|
+
ref: wn,
|
|
1406
1409
|
type: "range",
|
|
1407
1410
|
class: h({
|
|
1408
1411
|
"range-left": !0,
|
|
@@ -1413,17 +1416,17 @@ var be = ["data-minimap"], xe = {
|
|
|
1413
1416
|
min: s.min,
|
|
1414
1417
|
max: s.minimapCompact && T.value ? Math.max(0, R.value - 1) : s.max,
|
|
1415
1418
|
tabindex: T.value ? -1 : 0,
|
|
1416
|
-
"onUpdate:modelValue": t[
|
|
1417
|
-
onFocus: t[
|
|
1418
|
-
onInput: t[
|
|
1419
|
+
"onUpdate:modelValue": t[4] ||= (e) => _n.value = e,
|
|
1420
|
+
onFocus: t[5] ||= (e) => T.value && e.target.blur(),
|
|
1421
|
+
onInput: t[6] ||= (e) => _n.value = e.target.valueAsNumber,
|
|
1419
1422
|
onChange: j,
|
|
1420
1423
|
onKeyup: ve(j, ["enter"]),
|
|
1421
1424
|
onBlur: j,
|
|
1422
|
-
onMouseenter: t[
|
|
1425
|
+
onMouseenter: t[7] ||= (e) => ar("start"),
|
|
1423
1426
|
onPointerup: j
|
|
1424
1427
|
}, null, 42, yt)), [[
|
|
1425
1428
|
ge,
|
|
1426
|
-
|
|
1429
|
+
_n.value,
|
|
1427
1430
|
void 0,
|
|
1428
1431
|
{ number: !0 }
|
|
1429
1432
|
]]) : f("", !0),
|
|
@@ -1431,7 +1434,7 @@ var be = ["data-minimap"], xe = {
|
|
|
1431
1434
|
key: 2,
|
|
1432
1435
|
"aria-label": "range-handle-right",
|
|
1433
1436
|
ref_key: "rangeEnd",
|
|
1434
|
-
ref:
|
|
1437
|
+
ref: Tn,
|
|
1435
1438
|
type: "range",
|
|
1436
1439
|
class: h({
|
|
1437
1440
|
"range-right": !0,
|
|
@@ -1442,27 +1445,56 @@ var be = ["data-minimap"], xe = {
|
|
|
1442
1445
|
min: s.min,
|
|
1443
1446
|
max: s.minimapCompact && T.value ? Math.max(0, R.value - 1) : s.max,
|
|
1444
1447
|
tabindex: T.value ? -1 : 0,
|
|
1445
|
-
onFocus: t[
|
|
1446
|
-
"onUpdate:modelValue": t[
|
|
1447
|
-
onInput: t[
|
|
1448
|
+
onFocus: t[8] ||= (e) => T.value && e.target.blur(),
|
|
1449
|
+
"onUpdate:modelValue": t[9] ||= (e) => vn.value = e,
|
|
1450
|
+
onInput: t[10] ||= (e) => vn.value = e.target.valueAsNumber,
|
|
1448
1451
|
onChange: j,
|
|
1449
1452
|
onKeyup: ve(j, ["enter"]),
|
|
1450
1453
|
onBlur: j,
|
|
1451
|
-
onMouseenter: t[
|
|
1454
|
+
onMouseenter: t[11] ||= (e) => ar("end"),
|
|
1452
1455
|
onPointerup: j
|
|
1453
1456
|
}, null, 42, bt)), [[
|
|
1454
1457
|
ge,
|
|
1455
|
-
|
|
1458
|
+
vn.value,
|
|
1456
1459
|
void 0,
|
|
1457
1460
|
{ number: !0 }
|
|
1458
1461
|
]]) : f("", !0),
|
|
1459
|
-
|
|
1460
|
-
|
|
1462
|
+
T.value && s.minimapCompact ? (_(), p("div", xt, [(_(), p("svg", {
|
|
1463
|
+
xmlns: me(ne),
|
|
1464
|
+
viewBox: `0 0 ${Math.max(0, I.value.width)} ${Math.max(0, I.value.height + 1)}`
|
|
1465
|
+
}, [m("rect", oe({
|
|
1466
|
+
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1467
|
+
x: jr.value,
|
|
1468
|
+
y: 0,
|
|
1469
|
+
width: $.value,
|
|
1470
|
+
height: I.value.height,
|
|
1471
|
+
fill: "transparent",
|
|
1472
|
+
stroke: "none"
|
|
1473
|
+
}, xr.value, {
|
|
1474
|
+
onKeydown: t[12] ||= (e) => br("start", e),
|
|
1475
|
+
onMousedown: t[13] ||= ye((e) => Or("start", e), ["stop", "prevent"]),
|
|
1476
|
+
onClick: t[14] ||= ye(() => {}, ["stop", "prevent"])
|
|
1477
|
+
}), null, 16, Ct), m("rect", oe({
|
|
1478
|
+
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1479
|
+
x: Mr.value,
|
|
1480
|
+
y: 0,
|
|
1481
|
+
width: $.value,
|
|
1482
|
+
height: I.value.height,
|
|
1483
|
+
fill: "transparent",
|
|
1484
|
+
stroke: "none",
|
|
1485
|
+
rx: 3
|
|
1486
|
+
}, Sr.value, {
|
|
1487
|
+
onKeydown: t[15] ||= (e) => br("end", e),
|
|
1488
|
+
onMousedown: t[16] ||= ye((e) => Or("end", e), ["stop", "prevent"]),
|
|
1489
|
+
onClick: t[17] ||= ye(() => {}, ["stop", "prevent"])
|
|
1490
|
+
}), null, 16, wt)], 8, St))])) : f("", !0),
|
|
1491
|
+
Q.value.left ? (_(), p("div", {
|
|
1492
|
+
key: 4,
|
|
1461
1493
|
ref_key: "tooltipLeft",
|
|
1462
|
-
ref:
|
|
1494
|
+
ref: Qn,
|
|
1463
1495
|
class: h({
|
|
1464
1496
|
"range-tooltip": !0,
|
|
1465
|
-
"range-tooltip-visible":
|
|
1497
|
+
"range-tooltip-visible": Z.value,
|
|
1466
1498
|
"range-tooltip-arrow": N.value.arrowLeft && !s.verticalHandles,
|
|
1467
1499
|
"range-tooltip-arrow-left": !N.value.arrowLeft && !s.verticalHandles
|
|
1468
1500
|
}),
|
|
@@ -1471,38 +1503,38 @@ var be = ["data-minimap"], xe = {
|
|
|
1471
1503
|
color: me(te)(s.selectColor),
|
|
1472
1504
|
backgroundColor: s.selectColor,
|
|
1473
1505
|
border: `1px solid ${P.value}`,
|
|
1474
|
-
zIndex: `${
|
|
1475
|
-
visibility:
|
|
1506
|
+
zIndex: `${ir.value + 4}`,
|
|
1507
|
+
visibility: or.value || Q.value.left === Q.value.right ? "hidden" : "visible",
|
|
1476
1508
|
top: T.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1477
1509
|
})
|
|
1478
|
-
}, pe(
|
|
1479
|
-
(
|
|
1480
|
-
key:
|
|
1510
|
+
}, pe(Q.value.left), 7)) : f("", !0),
|
|
1511
|
+
(or.value || Q.value.left === Q.value.right) && (Q.value.left || Q.value.right) ? (_(), p("div", {
|
|
1512
|
+
key: 5,
|
|
1481
1513
|
ref: "tooltipMerge",
|
|
1482
1514
|
class: h({
|
|
1483
1515
|
"range-tooltip": !0,
|
|
1484
|
-
"range-tooltip-visible":
|
|
1516
|
+
"range-tooltip-visible": Z.value,
|
|
1485
1517
|
"range-tooltip-arrow": !0,
|
|
1486
1518
|
"range-tooltip-arrow-left": !N.value.arrowLeft && !s.verticalHandles,
|
|
1487
1519
|
"range-tooltip-arrow-right": !N.value.arrowRight && !s.verticalHandles
|
|
1488
1520
|
}),
|
|
1489
1521
|
style: g({
|
|
1490
1522
|
left: N.value.tooltipCenter,
|
|
1491
|
-
width:
|
|
1523
|
+
width: sr.value.width + "px",
|
|
1492
1524
|
color: me(te)(s.selectColor),
|
|
1493
1525
|
backgroundColor: s.selectColor,
|
|
1494
1526
|
border: `1px solid ${P.value}`,
|
|
1495
1527
|
zIndex: "4",
|
|
1496
1528
|
top: T.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1497
1529
|
})
|
|
1498
|
-
}, pe(
|
|
1499
|
-
|
|
1500
|
-
key:
|
|
1530
|
+
}, pe(Q.value.left === Q.value.right ? Q.value.left : `${Q.value.left} - ${Q.value.right}`), 7)) : f("", !0),
|
|
1531
|
+
Q.value.right ? (_(), p("div", {
|
|
1532
|
+
key: 6,
|
|
1501
1533
|
ref_key: "tooltipRight",
|
|
1502
|
-
ref:
|
|
1534
|
+
ref: $n,
|
|
1503
1535
|
class: h({
|
|
1504
1536
|
"range-tooltip": !0,
|
|
1505
|
-
"range-tooltip-visible":
|
|
1537
|
+
"range-tooltip-visible": Z.value,
|
|
1506
1538
|
"range-tooltip-arrow": N.value.arrowRight && !s.verticalHandles,
|
|
1507
1539
|
"range-tooltip-arrow-right": !N.value.arrowRight && !s.verticalHandles
|
|
1508
1540
|
}),
|
|
@@ -1512,12 +1544,12 @@ var be = ["data-minimap"], xe = {
|
|
|
1512
1544
|
backgroundColor: s.selectColor,
|
|
1513
1545
|
border: `1px solid ${P.value}`,
|
|
1514
1546
|
zIndex: "4",
|
|
1515
|
-
visibility:
|
|
1547
|
+
visibility: or.value || Q.value.left === Q.value.right ? "hidden" : "visible",
|
|
1516
1548
|
top: T.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1517
1549
|
})
|
|
1518
|
-
}, pe(
|
|
1550
|
+
}, pe(Q.value.right), 7)) : f("", !0)
|
|
1519
1551
|
], 36)], 44, be));
|
|
1520
1552
|
}
|
|
1521
|
-
}, [["__scopeId", "data-v-
|
|
1553
|
+
}, [["__scopeId", "data-v-47340234"]]);
|
|
1522
1554
|
//#endregion
|
|
1523
|
-
export {
|
|
1555
|
+
export { Et as t };
|