@bagelink/vue 1.22.3 → 1.22.5
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/{StructuredEditor-BlPNKNaT.js → StructuredEditor-1mcyEtzh.js} +114 -114
- package/dist/{StructuredEditor-Bmq1Pxvl.cjs → StructuredEditor-yW9FO5Tn.cjs} +1 -1
- package/dist/components/Icon/baseline.d.ts +14 -0
- package/dist/components/Icon/baseline.d.ts.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/layout/AppLayout.vue.d.ts.map +1 -1
- package/dist/core.css +1 -1
- package/dist/dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +311 -310
- package/dist/{src-COgNvUzW.cjs → src-BHNIZfpF.cjs} +43 -43
- package/dist/{src-EXMOTxie.js → src-CtOtibj7.js} +6274 -6189
- package/dist/src.css +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/useKeyboardInset.d.ts +7 -0
- package/dist/utils/useKeyboardInset.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/components/Icon/baseline.ts +80 -0
- package/src/components/index.ts +1 -0
- package/src/components/layout/AppLayout.vue +0 -1
- package/src/dialog/Dialog.vue +6 -0
- package/src/index.ts +1 -0
- package/src/utils/useKeyboardInset.ts +36 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as Bt, A as Er, B as Rr, C as Tr, D as v, E as Fr, F as Ir, G as me, H as W, I as Or, J as Pr, K as _e, L as qr, M as ht, N as Nr, O as $r, P as Vr, Q as Dt, R as D, T as He, U as ft, V as Wr, W as d, Y as _r, Z as ie, a as Hr, at as H, b as wt, ct as y, d as Ur, dt as Te, et as De, g as Et, h as Fe, it as Ue, j as Rt, n as Tt, nt as zr, ot as Gr, p as Jr, rt as Ft, t as jr, tt as
|
|
3
|
-
import { computed as G, createBlock as Ie, createCommentVNode as P, createElementBlock as T, createElementVNode as S, createVNode as B, defineComponent as It, getCurrentInstance as Yr, h as dt, normalizeClass as
|
|
1
|
+
import { La as Mt, Na as C, Qr as ut, tn as wr } from "./src-CtOtibj7.js";
|
|
2
|
+
import { $ as Bt, A as Er, B as Rr, C as Tr, D as v, E as Fr, F as Ir, G as me, H as W, I as Or, J as Pr, K as _e, L as qr, M as ht, N as Nr, O as $r, P as Vr, Q as Dt, R as D, T as He, U as ft, V as Wr, W as d, Y as _r, Z as ie, a as Hr, at as H, b as wt, ct as y, d as Ur, dt as Te, et as De, g as Et, h as Fe, it as Ue, j as Rt, n as Tt, nt as zr, ot as Gr, p as Jr, rt as Ft, t as jr, tt as Qr, v as Kr, w as ze, x as Q, y as ge, z as Ge } from "./dist-IV7z-zur.js";
|
|
3
|
+
import { computed as G, createBlock as Ie, createCommentVNode as P, createElementBlock as T, createElementVNode as S, createVNode as B, defineComponent as It, getCurrentInstance as Yr, h as dt, normalizeClass as Xr, onBeforeUnmount as Zr, onMounted as en, openBlock as A, ref as w, render as mt, resolveDirective as Ot, shallowRef as tn, toDisplayString as $, unref as V, useId as rn, watch as le, withDirectives as L } from "vue";
|
|
4
4
|
var nn = (e) => {
|
|
5
5
|
let { state: t } = e, r = t.doc.lineAt(t.selection.main.from), n = je(e.state, r.from);
|
|
6
6
|
return n.line ? ln(e) : n.block ? on(e) : !1;
|
|
@@ -350,7 +350,7 @@ var Sn = [
|
|
|
350
350
|
preventDefault: !0
|
|
351
351
|
}
|
|
352
352
|
];
|
|
353
|
-
function
|
|
353
|
+
function Z(e, t) {
|
|
354
354
|
return d.create(e.ranges.map(t), e.mainIndex);
|
|
355
355
|
}
|
|
356
356
|
function F(e, t) {
|
|
@@ -361,7 +361,7 @@ function F(e, t) {
|
|
|
361
361
|
});
|
|
362
362
|
}
|
|
363
363
|
function I({ state: e, dispatch: t }, r) {
|
|
364
|
-
let n =
|
|
364
|
+
let n = Z(e.selection, r);
|
|
365
365
|
return n.eq(e.selection, !0) ? !1 : (t(F(e, n)), !0);
|
|
366
366
|
}
|
|
367
367
|
function Ae(e, t) {
|
|
@@ -378,22 +378,22 @@ function zt(e, t) {
|
|
|
378
378
|
return I(e, (r) => r.empty ? e.moveByGroup(r, t) : Ae(r, t));
|
|
379
379
|
}
|
|
380
380
|
var Cn = (e) => zt(e, !b(e)), An = (e) => zt(e, b(e)), fa = typeof Intl < "u" && Intl.Segmenter ? /* @__PURE__ */ new Intl.Segmenter(void 0, { granularity: "word" }) : null;
|
|
381
|
-
function
|
|
381
|
+
function Ln(e, t, r) {
|
|
382
382
|
if (t.type.prop(r)) return !0;
|
|
383
383
|
let n = t.to - t.from;
|
|
384
384
|
return n && (n > 2 || /[^\s,.;:]/.test(e.sliceDoc(t.from, t.to))) || t.firstChild;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Le(e, t, r) {
|
|
387
387
|
let n = ze(e).resolveInner(t.head), l = r ? Te.closedBy : Te.openedBy;
|
|
388
388
|
for (let s = t.head; ; ) {
|
|
389
389
|
let c = r ? n.childAfter(s) : n.childBefore(s);
|
|
390
390
|
if (!c) break;
|
|
391
|
-
|
|
391
|
+
Ln(e, c, l) ? n = c : s = r ? c.to : c.from;
|
|
392
392
|
}
|
|
393
393
|
let a = n.type.prop(l), o, i;
|
|
394
|
-
return a && (o = r ?
|
|
394
|
+
return a && (o = r ? Q(e, n.from, 1) : Q(e, n.to, -1)) && o.matched ? i = r ? o.end.to : o.end.from : i = r ? n.to : n.from, d.cursor(i, r ? -1 : 1);
|
|
395
395
|
}
|
|
396
|
-
var
|
|
396
|
+
var Mn = (e) => I(e, (t) => Le(e.state, t, !b(e))), Bn = (e) => I(e, (t) => Le(e.state, t, b(e)));
|
|
397
397
|
function Gt(e, t) {
|
|
398
398
|
return I(e, (r) => {
|
|
399
399
|
if (!r.empty) return Ae(r, t);
|
|
@@ -402,7 +402,7 @@ function Gt(e, t) {
|
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
var Jt = (e) => Gt(e, !1), jt = (e) => Gt(e, !0);
|
|
405
|
-
function
|
|
405
|
+
function Qt(e) {
|
|
406
406
|
let t = e.scrollDOM.clientHeight < e.scrollDOM.scrollHeight - 2, r = 0, n = 0, l;
|
|
407
407
|
if (t) {
|
|
408
408
|
for (let a of e.state.facet(v.scrollMargins)) {
|
|
@@ -418,8 +418,8 @@ function Kt(e) {
|
|
|
418
418
|
height: Math.max(e.defaultLineHeight, l - 5)
|
|
419
419
|
};
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
let r =
|
|
421
|
+
function Kt(e, t) {
|
|
422
|
+
let r = Qt(e), { state: n } = e, l = Z(n.selection, (o) => o.empty ? e.moveVertically(o, t, r.height) : Ae(o, t));
|
|
423
423
|
if (l.eq(n.selection)) return !1;
|
|
424
424
|
let a;
|
|
425
425
|
if (r.selfScroll) {
|
|
@@ -431,7 +431,7 @@ function Qt(e, t) {
|
|
|
431
431
|
}
|
|
432
432
|
return e.dispatch(F(n, l), { effects: a }), !0;
|
|
433
433
|
}
|
|
434
|
-
var pt = (e) =>
|
|
434
|
+
var pt = (e) => Kt(e, !1), qe = (e) => Kt(e, !0);
|
|
435
435
|
function _(e, t, r) {
|
|
436
436
|
let n = e.lineBlockAt(t.head), l = e.moveToLineBoundary(t, r);
|
|
437
437
|
if (l.head == t.head && l.head != (r ? n.to : n.from) && (l = e.moveToLineBoundary(t, r, !1)), !r && l.head == n.from && n.length) {
|
|
@@ -442,8 +442,8 @@ function _(e, t, r) {
|
|
|
442
442
|
}
|
|
443
443
|
var Dn = (e) => I(e, (t) => _(e, t, !0)), wn = (e) => I(e, (t) => _(e, t, !1)), En = (e) => I(e, (t) => _(e, t, !b(e))), Rn = (e) => I(e, (t) => _(e, t, b(e))), Tn = (e) => I(e, (t) => e.moveToLineBoundary(t, !1, !1)), Fn = (e) => I(e, (t) => e.moveToLineBoundary(t, !0, !1));
|
|
444
444
|
function In(e, t, r) {
|
|
445
|
-
let n = !1, l =
|
|
446
|
-
let o =
|
|
445
|
+
let n = !1, l = Z(e.selection, (a) => {
|
|
446
|
+
let o = Q(e, a.head, -1) || Q(e, a.head, 1) || a.head > 0 && Q(e, a.head - 1, 1) || a.head < e.doc.length && Q(e, a.head + 1, -1);
|
|
447
447
|
if (!o || !o.end) return a;
|
|
448
448
|
n = !0;
|
|
449
449
|
let i = o.start.from == a.head ? o.end.to : o.end.from;
|
|
@@ -453,7 +453,7 @@ function In(e, t, r) {
|
|
|
453
453
|
}
|
|
454
454
|
var On = ({ state: e, dispatch: t }) => In(e, t, !1);
|
|
455
455
|
function R(e, t, r) {
|
|
456
|
-
let n =
|
|
456
|
+
let n = Z(e.state.selection, (l) => {
|
|
457
457
|
l.undirectional && l.head >= l.anchor != t && (l = d.range(l.head, l.anchor));
|
|
458
458
|
let a = r(l);
|
|
459
459
|
return d.range(l.anchor, a.head, a.goalColumn, a.bidiLevel || void 0, a.assoc);
|
|
@@ -463,23 +463,23 @@ function R(e, t, r) {
|
|
|
463
463
|
function Yt(e, t) {
|
|
464
464
|
return R(e, t, (r) => e.moveByChar(r, t));
|
|
465
465
|
}
|
|
466
|
-
var
|
|
466
|
+
var Xt = (e) => Yt(e, !b(e)), Zt = (e) => Yt(e, b(e));
|
|
467
467
|
function er(e, t) {
|
|
468
468
|
return R(e, t, (r) => e.moveByGroup(r, t));
|
|
469
469
|
}
|
|
470
470
|
var Pn = (e) => er(e, !b(e)), qn = (e) => er(e, b(e)), Nn = (e) => {
|
|
471
471
|
let t = !b(e);
|
|
472
|
-
return R(e, t, (r) =>
|
|
472
|
+
return R(e, t, (r) => Le(e.state, r, t));
|
|
473
473
|
}, $n = (e) => {
|
|
474
474
|
let t = b(e);
|
|
475
|
-
return R(e, t, (r) =>
|
|
475
|
+
return R(e, t, (r) => Le(e.state, r, t));
|
|
476
476
|
};
|
|
477
477
|
function tr(e, t) {
|
|
478
478
|
return R(e, t, (r) => e.moveVertically(r, t));
|
|
479
479
|
}
|
|
480
480
|
var rr = (e) => tr(e, !1), nr = (e) => tr(e, !0);
|
|
481
481
|
function lr(e, t) {
|
|
482
|
-
return R(e, t, (r) => e.moveVertically(r, t,
|
|
482
|
+
return R(e, t, (r) => e.moveVertically(r, t, Qt(e).height));
|
|
483
483
|
}
|
|
484
484
|
var gt = (e) => lr(e, !1), vt = (e) => lr(e, !0), Vn = (e) => R(e, !0, (t) => _(e, t, !0)), Wn = (e) => R(e, !1, (t) => _(e, t, !1)), _n = (e) => {
|
|
485
485
|
let t = !b(e);
|
|
@@ -500,13 +500,13 @@ var gt = (e) => lr(e, !1), vt = (e) => lr(e, !0), Vn = (e) => R(e, !0, (t) => _(
|
|
|
500
500
|
},
|
|
501
501
|
userEvent: "select"
|
|
502
502
|
})), !0), Jn = ({ state: e, dispatch: t }) => {
|
|
503
|
-
let r =
|
|
503
|
+
let r = Me(e).map(({ from: n, to: l }) => d.undirectionalRange(n, Math.min(l + 1, e.doc.length)));
|
|
504
504
|
return t(e.update({
|
|
505
505
|
selection: d.create(r),
|
|
506
506
|
userEvent: "select"
|
|
507
507
|
})), !0;
|
|
508
508
|
}, jn = ({ state: e, dispatch: t }) => {
|
|
509
|
-
let r =
|
|
509
|
+
let r = Z(e.selection, (n) => {
|
|
510
510
|
let l = ze(e), a = l.resolveStack(n.from, 1);
|
|
511
511
|
if (n.empty) {
|
|
512
512
|
let o = l.resolveStack(n.from, -1);
|
|
@@ -537,7 +537,7 @@ function ar(e, t) {
|
|
|
537
537
|
}
|
|
538
538
|
return l.length == n.ranges.length ? !1 : (e.dispatch(F(r, d.create(l, l.length - 1))), !0);
|
|
539
539
|
}
|
|
540
|
-
var
|
|
540
|
+
var Qn = (e) => ar(e, !1), Kn = (e) => ar(e, !0), Yn = ({ state: e, dispatch: t }) => {
|
|
541
541
|
let r = e.selection, n = null;
|
|
542
542
|
return r.ranges.length > 1 ? n = d.create([r.main]) : r.main.empty || (n = d.create([d.cursor(r.main.head)])), n ? (t(F(e, n)), !0) : !1;
|
|
543
543
|
};
|
|
@@ -592,7 +592,7 @@ var or = (e, t, r) => se(e, (n) => {
|
|
|
592
592
|
(c != " " || n != r.head) && (i = u), n = s;
|
|
593
593
|
}
|
|
594
594
|
return n;
|
|
595
|
-
}), cr = (e) => sr(e, !1),
|
|
595
|
+
}), cr = (e) => sr(e, !1), Xn = (e) => sr(e, !0), Zn = (e) => se(e, (t) => {
|
|
596
596
|
let r = e.lineBlockAt(t.head).to;
|
|
597
597
|
return t.head < r ? r : Math.min(e.state.doc.length, t.head + 1);
|
|
598
598
|
}), el = (e) => se(e, (t) => {
|
|
@@ -634,7 +634,7 @@ var or = (e, t, r) => se(e, (n) => {
|
|
|
634
634
|
userEvent: "move.character"
|
|
635
635
|
})), !0);
|
|
636
636
|
};
|
|
637
|
-
function
|
|
637
|
+
function Me(e) {
|
|
638
638
|
let t = [], r = -1;
|
|
639
639
|
for (let n of e.selection.ranges) {
|
|
640
640
|
let l = e.doc.lineAt(n.from), a = e.doc.lineAt(n.to);
|
|
@@ -653,7 +653,7 @@ function Le(e) {
|
|
|
653
653
|
function ur(e, t, r) {
|
|
654
654
|
if (e.readOnly) return !1;
|
|
655
655
|
let n = [], l = [];
|
|
656
|
-
for (let a of
|
|
656
|
+
for (let a of Me(e)) {
|
|
657
657
|
if (r ? a.to == e.doc.length : a.from == 0) continue;
|
|
658
658
|
let o = e.doc.lineAt(r ? a.to + 1 : a.from - 1), i = o.length + 1;
|
|
659
659
|
if (r) {
|
|
@@ -687,7 +687,7 @@ var ll = ({ state: e, dispatch: t }) => ur(e, t, !1), al = ({ state: e, dispatch
|
|
|
687
687
|
function hr(e, t, r) {
|
|
688
688
|
if (e.readOnly) return !1;
|
|
689
689
|
let n = [];
|
|
690
|
-
for (let a of
|
|
690
|
+
for (let a of Me(e)) r ? n.push({
|
|
691
691
|
from: a.from,
|
|
692
692
|
insert: e.doc.slice(a.from, a.to) + e.lineBreak
|
|
693
693
|
}) : n.push({
|
|
@@ -704,10 +704,10 @@ function hr(e, t, r) {
|
|
|
704
704
|
}
|
|
705
705
|
var ol = ({ state: e, dispatch: t }) => hr(e, t, !1), il = ({ state: e, dispatch: t }) => hr(e, t, !0), sl = (e) => {
|
|
706
706
|
if (e.state.readOnly) return !1;
|
|
707
|
-
let { state: t } = e, r = t.changes(
|
|
707
|
+
let { state: t } = e, r = t.changes(Me(t).map(({ from: l, to: a }) => (l > 0 ? l-- : a < t.doc.length && a++, {
|
|
708
708
|
from: l,
|
|
709
709
|
to: a
|
|
710
|
-
}))), n =
|
|
710
|
+
}))), n = Z(t.selection, (l) => {
|
|
711
711
|
let a;
|
|
712
712
|
if (e.lineWrapping) {
|
|
713
713
|
let o = e.lineBlockAt(l.head), i = e.coordsAtPos(l.head, l.assoc || 1);
|
|
@@ -762,7 +762,7 @@ function fr(e) {
|
|
|
762
762
|
})), !0;
|
|
763
763
|
};
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function Qe(e, t) {
|
|
766
766
|
let r = -1;
|
|
767
767
|
return e.changeByRange((n) => {
|
|
768
768
|
let l = [];
|
|
@@ -782,7 +782,7 @@ var hl = ({ state: e, dispatch: t }) => {
|
|
|
782
782
|
let r = /* @__PURE__ */ Object.create(null), n = new Tt(e, { overrideIndentation: (a) => {
|
|
783
783
|
let o = r[a];
|
|
784
784
|
return o ?? -1;
|
|
785
|
-
} }), l =
|
|
785
|
+
} }), l = Qe(e, (a, o, i) => {
|
|
786
786
|
let s = Et(n, a.from);
|
|
787
787
|
if (s == null) return;
|
|
788
788
|
/\S/.test(a.text) || (s = 0);
|
|
@@ -794,12 +794,12 @@ var hl = ({ state: e, dispatch: t }) => {
|
|
|
794
794
|
}));
|
|
795
795
|
});
|
|
796
796
|
return l.changes.empty || t(e.update(l, { userEvent: "indent" })), !0;
|
|
797
|
-
}, dr = ({ state: e, dispatch: t }) => e.readOnly ? !1 : (t(e.update(
|
|
797
|
+
}, dr = ({ state: e, dispatch: t }) => e.readOnly ? !1 : (t(e.update(Qe(e, (r, n) => {
|
|
798
798
|
n.push({
|
|
799
799
|
from: r.from,
|
|
800
800
|
insert: e.facet(wt)
|
|
801
801
|
});
|
|
802
|
-
}), { userEvent: "input.indent" })), !0), mr = ({ state: e, dispatch: t }) => e.readOnly ? !1 : (t(e.update(
|
|
802
|
+
}), { userEvent: "input.indent" })), !0), mr = ({ state: e, dispatch: t }) => e.readOnly ? !1 : (t(e.update(Qe(e, (r, n) => {
|
|
803
803
|
let l = /^\s*/.exec(r.text)[0];
|
|
804
804
|
if (!l) return;
|
|
805
805
|
let a = Ue(l, e.tabSize), o = 0, i = ge(e, Math.max(0, a - Fe(e)));
|
|
@@ -813,13 +813,13 @@ var hl = ({ state: e, dispatch: t }) => {
|
|
|
813
813
|
{
|
|
814
814
|
key: "Ctrl-b",
|
|
815
815
|
run: Ht,
|
|
816
|
-
shift:
|
|
816
|
+
shift: Xt,
|
|
817
817
|
preventDefault: !0
|
|
818
818
|
},
|
|
819
819
|
{
|
|
820
820
|
key: "Ctrl-f",
|
|
821
821
|
run: Ut,
|
|
822
|
-
shift:
|
|
822
|
+
shift: Zt
|
|
823
823
|
},
|
|
824
824
|
{
|
|
825
825
|
key: "Ctrl-p",
|
|
@@ -851,7 +851,7 @@ var hl = ({ state: e, dispatch: t }) => {
|
|
|
851
851
|
},
|
|
852
852
|
{
|
|
853
853
|
key: "Ctrl-k",
|
|
854
|
-
run:
|
|
854
|
+
run: Zn
|
|
855
855
|
},
|
|
856
856
|
{
|
|
857
857
|
key: "Ctrl-Alt-h",
|
|
@@ -873,7 +873,7 @@ var hl = ({ state: e, dispatch: t }) => {
|
|
|
873
873
|
{
|
|
874
874
|
key: "ArrowLeft",
|
|
875
875
|
run: Ht,
|
|
876
|
-
shift:
|
|
876
|
+
shift: Xt,
|
|
877
877
|
preventDefault: !0
|
|
878
878
|
},
|
|
879
879
|
{
|
|
@@ -892,7 +892,7 @@ var hl = ({ state: e, dispatch: t }) => {
|
|
|
892
892
|
{
|
|
893
893
|
key: "ArrowRight",
|
|
894
894
|
run: Ut,
|
|
895
|
-
shift:
|
|
895
|
+
shift: Zt,
|
|
896
896
|
preventDefault: !0
|
|
897
897
|
},
|
|
898
898
|
{
|
|
@@ -1001,7 +1001,7 @@ var hl = ({ state: e, dispatch: t }) => {
|
|
|
1001
1001
|
{
|
|
1002
1002
|
key: "Mod-Delete",
|
|
1003
1003
|
mac: "Alt-Delete",
|
|
1004
|
-
run:
|
|
1004
|
+
run: Xn,
|
|
1005
1005
|
preventDefault: !0
|
|
1006
1006
|
},
|
|
1007
1007
|
{
|
|
@@ -1022,7 +1022,7 @@ var hl = ({ state: e, dispatch: t }) => {
|
|
|
1022
1022
|
{
|
|
1023
1023
|
key: "Alt-ArrowLeft",
|
|
1024
1024
|
mac: "Ctrl-ArrowLeft",
|
|
1025
|
-
run:
|
|
1025
|
+
run: Mn,
|
|
1026
1026
|
shift: Nn
|
|
1027
1027
|
},
|
|
1028
1028
|
{
|
|
@@ -1049,11 +1049,11 @@ var hl = ({ state: e, dispatch: t }) => {
|
|
|
1049
1049
|
},
|
|
1050
1050
|
{
|
|
1051
1051
|
key: "Mod-Alt-ArrowUp",
|
|
1052
|
-
run:
|
|
1052
|
+
run: Qn
|
|
1053
1053
|
},
|
|
1054
1054
|
{
|
|
1055
1055
|
key: "Mod-Alt-ArrowDown",
|
|
1056
|
-
run:
|
|
1056
|
+
run: Kn
|
|
1057
1057
|
},
|
|
1058
1058
|
{
|
|
1059
1059
|
key: "Escape",
|
|
@@ -1211,7 +1211,7 @@ var vl = (e) => {
|
|
|
1211
1211
|
if (this.bufferStart += this.buffer.length, this.iter.next(), this.iter.done) return -1;
|
|
1212
1212
|
this.bufferPos = 0, this.buffer = this.iter.value;
|
|
1213
1213
|
}
|
|
1214
|
-
return
|
|
1214
|
+
return Qr(this.buffer, this.bufferPos);
|
|
1215
1215
|
}
|
|
1216
1216
|
/**
|
|
1217
1217
|
Look for the next match. Updates the iterator's
|
|
@@ -1274,7 +1274,7 @@ var gr = {
|
|
|
1274
1274
|
to: -1,
|
|
1275
1275
|
match: /* @__PURE__ */ /.*/.exec(""),
|
|
1276
1276
|
precise: !0
|
|
1277
|
-
},
|
|
1277
|
+
}, Ke = "gm" + (/x/.unicode == null ? "" : "u"), vr = class {
|
|
1278
1278
|
/**
|
|
1279
1279
|
Create a cursor that will search the given range in the given
|
|
1280
1280
|
document. `query` should be the raw pattern (as you'd pass it to
|
|
@@ -1282,7 +1282,7 @@ var gr = {
|
|
|
1282
1282
|
*/
|
|
1283
1283
|
constructor(e, t, r, n = 0, l = e.length) {
|
|
1284
1284
|
if (this.text = e, this.to = l, this.curLine = "", this.done = !1, this.value = gr, /\\[sWDnr]|\n|\r|\[\^/.test(t)) return new yr(e, t, r, n, l);
|
|
1285
|
-
this.re = new RegExp(t,
|
|
1285
|
+
this.re = new RegExp(t, Ke + (r?.ignoreCase ? "i" : "")), this.test = r?.test, this.iter = e.iter(), this.curLineStart = e.lineAt(n).from, this.matchPos = ye(e, n), this.getLine(this.curLineStart);
|
|
1286
1286
|
}
|
|
1287
1287
|
getLine(e) {
|
|
1288
1288
|
this.iter.next(e), this.iter.lineBreak ? this.curLine = "" : (this.curLine = this.iter.value, this.curLineStart + this.curLine.length > this.to && (this.curLine = this.curLine.slice(0, this.to - this.curLineStart)), this.iter.next());
|
|
@@ -1332,7 +1332,7 @@ var gr = {
|
|
|
1332
1332
|
}
|
|
1333
1333
|
}, yr = class {
|
|
1334
1334
|
constructor(e, t, r, n, l) {
|
|
1335
|
-
this.text = e, this.to = l, this.done = !1, this.value = gr, this.matchPos = ye(e, n), this.re = new RegExp(t,
|
|
1335
|
+
this.text = e, this.to = l, this.done = !1, this.value = gr, this.matchPos = ye(e, n), this.re = new RegExp(t, Ke + (r?.ignoreCase ? "i" : "")), this.test = r?.test, this.flat = At.get(e, n, this.chunkEnd(n + 5e3));
|
|
1336
1336
|
}
|
|
1337
1337
|
chunkEnd(e) {
|
|
1338
1338
|
return e >= this.to ? this.to : this.text.lineAt(e).to;
|
|
@@ -1361,7 +1361,7 @@ typeof Symbol < "u" && (vr.prototype[Symbol.iterator] = yr.prototype[Symbol.iter
|
|
|
1361
1361
|
});
|
|
1362
1362
|
function bl(e) {
|
|
1363
1363
|
try {
|
|
1364
|
-
return new RegExp(e,
|
|
1364
|
+
return new RegExp(e, Ke), !0;
|
|
1365
1365
|
} catch {
|
|
1366
1366
|
return !1;
|
|
1367
1367
|
}
|
|
@@ -1425,7 +1425,7 @@ function Al(e, t) {
|
|
|
1425
1425
|
return i.value;
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
1428
|
-
var
|
|
1428
|
+
var Ll = ({ state: e, dispatch: t }) => {
|
|
1429
1429
|
let { ranges: r } = e.selection;
|
|
1430
1430
|
if (r.some((a) => a.from === a.to)) return Cl({
|
|
1431
1431
|
state: e,
|
|
@@ -1449,7 +1449,7 @@ var Ml = ({ state: e, dispatch: t }) => {
|
|
|
1449
1449
|
scrollToMatch: (t) => v.scrollIntoView(t)
|
|
1450
1450
|
});
|
|
1451
1451
|
} });
|
|
1452
|
-
function
|
|
1452
|
+
function Ml(e) {
|
|
1453
1453
|
return e ? [U.of(e), We] : We;
|
|
1454
1454
|
}
|
|
1455
1455
|
var Ye = class {
|
|
@@ -1600,17 +1600,17 @@ var Tl = class extends xr {
|
|
|
1600
1600
|
let l = j(this.spec, e, Math.max(0, t - 250), Math.min(r + 250, e.doc.length));
|
|
1601
1601
|
for (; !l.next().done; ) n(l.value.from, l.value.to);
|
|
1602
1602
|
}
|
|
1603
|
-
},
|
|
1603
|
+
}, K = /* @__PURE__ */ ie.define(), Xe = /* @__PURE__ */ ie.define(), N = /* @__PURE__ */ Dt.define({
|
|
1604
1604
|
create(e) {
|
|
1605
1605
|
return new Re(be(e).create(), null);
|
|
1606
1606
|
},
|
|
1607
1607
|
update(e, t) {
|
|
1608
|
-
for (let r of t.effects) r.is(
|
|
1608
|
+
for (let r of t.effects) r.is(K) ? e = new Re(r.value.create(), e.panel) : r.is(Xe) && (e = new Re(e.query, r.value ? Ze : null));
|
|
1609
1609
|
return e;
|
|
1610
1610
|
},
|
|
1611
1611
|
provide: (e) => qr.from(e, (t) => t.panel)
|
|
1612
1612
|
});
|
|
1613
|
-
function
|
|
1613
|
+
function Lt(e) {
|
|
1614
1614
|
let t = e.field(N, !1);
|
|
1615
1615
|
return t ? t.query.spec : be(e);
|
|
1616
1616
|
}
|
|
@@ -1655,7 +1655,7 @@ var Y = /* @__PURE__ */ ce((e, { query: t }) => {
|
|
|
1655
1655
|
effects: [et(e, n), a.scrollToMatch(l.main, e)],
|
|
1656
1656
|
userEvent: "select.search"
|
|
1657
1657
|
}), Cr(e), !0;
|
|
1658
|
-
}),
|
|
1658
|
+
}), X = /* @__PURE__ */ ce((e, { query: t }) => {
|
|
1659
1659
|
let { state: r } = e, { from: n } = r.selection.main, l = t.prevMatch(r, n, n);
|
|
1660
1660
|
if (!l) return !1;
|
|
1661
1661
|
let a = d.single(l.from, l.to), o = e.state.facet(U);
|
|
@@ -1719,7 +1719,7 @@ var Y = /* @__PURE__ */ ce((e, { query: t }) => {
|
|
|
1719
1719
|
userEvent: "input.replace.all"
|
|
1720
1720
|
}), !0;
|
|
1721
1721
|
});
|
|
1722
|
-
function
|
|
1722
|
+
function Ze(e) {
|
|
1723
1723
|
return e.state.facet(U).createPanel(e);
|
|
1724
1724
|
}
|
|
1725
1725
|
function be(e, t) {
|
|
@@ -1736,7 +1736,7 @@ function be(e, t) {
|
|
|
1736
1736
|
});
|
|
1737
1737
|
}
|
|
1738
1738
|
function Sr(e) {
|
|
1739
|
-
let t = Rt(e,
|
|
1739
|
+
let t = Rt(e, Ze);
|
|
1740
1740
|
return t && t.dom.querySelector("[main-field]");
|
|
1741
1741
|
}
|
|
1742
1742
|
function Cr(e) {
|
|
@@ -1749,15 +1749,15 @@ var Ar = (e) => {
|
|
|
1749
1749
|
let r = Sr(e);
|
|
1750
1750
|
if (r && r != e.root.activeElement) {
|
|
1751
1751
|
let n = be(e.state, t.query.spec);
|
|
1752
|
-
n.valid && e.dispatch({ effects:
|
|
1752
|
+
n.valid && e.dispatch({ effects: K.of(n) }), r.focus(), r.select();
|
|
1753
1753
|
}
|
|
1754
|
-
} else e.dispatch({ effects: [
|
|
1754
|
+
} else e.dispatch({ effects: [Xe.of(!0), t ? K.of(be(e.state, t.query.spec)) : ie.appendConfig.of(We)] });
|
|
1755
1755
|
return !0;
|
|
1756
1756
|
}, Se = (e) => {
|
|
1757
1757
|
let t = e.state.field(N, !1);
|
|
1758
1758
|
if (!t || !t.panel) return !1;
|
|
1759
|
-
let r = Rt(e,
|
|
1760
|
-
return r && r.dom.contains(e.root.activeElement) && e.focus(), e.dispatch({ effects:
|
|
1759
|
+
let r = Rt(e, Ze);
|
|
1760
|
+
return r && r.dom.contains(e.root.activeElement) && e.focus(), e.dispatch({ effects: Xe.of(!1) }), !0;
|
|
1761
1761
|
}, ql = [
|
|
1762
1762
|
{
|
|
1763
1763
|
key: "Mod-f",
|
|
@@ -1767,14 +1767,14 @@ var Ar = (e) => {
|
|
|
1767
1767
|
{
|
|
1768
1768
|
key: "F3",
|
|
1769
1769
|
run: Y,
|
|
1770
|
-
shift:
|
|
1770
|
+
shift: X,
|
|
1771
1771
|
scope: "editor search-panel",
|
|
1772
1772
|
preventDefault: !0
|
|
1773
1773
|
},
|
|
1774
1774
|
{
|
|
1775
1775
|
key: "Mod-g",
|
|
1776
1776
|
run: Y,
|
|
1777
|
-
shift:
|
|
1777
|
+
shift: X,
|
|
1778
1778
|
scope: "editor search-panel",
|
|
1779
1779
|
preventDefault: !0
|
|
1780
1780
|
},
|
|
@@ -1793,7 +1793,7 @@ var Ar = (e) => {
|
|
|
1793
1793
|
},
|
|
1794
1794
|
{
|
|
1795
1795
|
key: "Mod-d",
|
|
1796
|
-
run:
|
|
1796
|
+
run: Ll,
|
|
1797
1797
|
preventDefault: !0
|
|
1798
1798
|
}
|
|
1799
1799
|
], Nl = class {
|
|
@@ -1802,8 +1802,8 @@ var Ar = (e) => {
|
|
|
1802
1802
|
let t = this.query = e.state.field(N).query.spec;
|
|
1803
1803
|
this.commit = this.commit.bind(this), this.searchField = D("input", {
|
|
1804
1804
|
value: t.search,
|
|
1805
|
-
placeholder:
|
|
1806
|
-
"aria-label":
|
|
1805
|
+
placeholder: M(e, "Find"),
|
|
1806
|
+
"aria-label": M(e, "Find"),
|
|
1807
1807
|
class: "cm-textfield",
|
|
1808
1808
|
name: "search",
|
|
1809
1809
|
form: "",
|
|
@@ -1812,8 +1812,8 @@ var Ar = (e) => {
|
|
|
1812
1812
|
onkeyup: this.commit
|
|
1813
1813
|
}), this.replaceField = D("input", {
|
|
1814
1814
|
value: t.replace,
|
|
1815
|
-
placeholder:
|
|
1816
|
-
"aria-label":
|
|
1815
|
+
placeholder: M(e, "Replace"),
|
|
1816
|
+
"aria-label": M(e, "Replace"),
|
|
1817
1817
|
class: "cm-textfield",
|
|
1818
1818
|
name: "replace",
|
|
1819
1819
|
form: "",
|
|
@@ -1851,22 +1851,22 @@ var Ar = (e) => {
|
|
|
1851
1851
|
class: "cm-search"
|
|
1852
1852
|
}, [
|
|
1853
1853
|
this.searchField,
|
|
1854
|
-
r("next", () => Y(e), [
|
|
1855
|
-
r("prev", () =>
|
|
1856
|
-
r("select", () => kr(e), [
|
|
1857
|
-
D("label", null, [this.caseField,
|
|
1858
|
-
D("label", null, [this.reField,
|
|
1859
|
-
D("label", null, [this.wordField,
|
|
1854
|
+
r("next", () => Y(e), [M(e, "next")]),
|
|
1855
|
+
r("prev", () => X(e), [M(e, "previous")]),
|
|
1856
|
+
r("select", () => kr(e), [M(e, "all")]),
|
|
1857
|
+
D("label", null, [this.caseField, M(e, "match case")]),
|
|
1858
|
+
D("label", null, [this.reField, M(e, "regexp")]),
|
|
1859
|
+
D("label", null, [this.wordField, M(e, "by word")]),
|
|
1860
1860
|
...e.state.readOnly ? [] : [
|
|
1861
1861
|
D("br"),
|
|
1862
1862
|
this.replaceField,
|
|
1863
|
-
r("replace", () => Ve(e), [
|
|
1864
|
-
r("replaceAll", () => br(e), [
|
|
1863
|
+
r("replace", () => Ve(e), [M(e, "replace")]),
|
|
1864
|
+
r("replaceAll", () => br(e), [M(e, "replace all")])
|
|
1865
1865
|
],
|
|
1866
1866
|
D("button", {
|
|
1867
1867
|
name: "close",
|
|
1868
1868
|
onclick: () => Se(e),
|
|
1869
|
-
"aria-label":
|
|
1869
|
+
"aria-label": M(e, "close"),
|
|
1870
1870
|
type: "button"
|
|
1871
1871
|
}, ["×"])
|
|
1872
1872
|
]);
|
|
@@ -1879,13 +1879,13 @@ var Ar = (e) => {
|
|
|
1879
1879
|
wholeWord: this.wordField.checked,
|
|
1880
1880
|
replace: this.replaceField.value
|
|
1881
1881
|
});
|
|
1882
|
-
e.eq(this.query) || (this.query = e, this.view.dispatch({ effects:
|
|
1882
|
+
e.eq(this.query) || (this.query = e, this.view.dispatch({ effects: K.of(e) }));
|
|
1883
1883
|
}
|
|
1884
1884
|
keydown(e) {
|
|
1885
|
-
Ir(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ?
|
|
1885
|
+
Ir(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? X : Y)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), Ve(this.view));
|
|
1886
1886
|
}
|
|
1887
1887
|
update(e) {
|
|
1888
|
-
for (let t of e.transactions) for (let r of t.effects) r.is(
|
|
1888
|
+
for (let t of e.transactions) for (let r of t.effects) r.is(K) && !r.value.eq(this.query) && this.setQuery(r.value);
|
|
1889
1889
|
}
|
|
1890
1890
|
setQuery(e) {
|
|
1891
1891
|
this.query = e, this.searchField.value = e.search, this.replaceField.value = e.replace, this.caseField.checked = e.caseSensitive, this.reField.checked = e.regexp, this.wordField.checked = e.wholeWord;
|
|
@@ -1900,7 +1900,7 @@ var Ar = (e) => {
|
|
|
1900
1900
|
return this.view.state.facet(U).top;
|
|
1901
1901
|
}
|
|
1902
1902
|
};
|
|
1903
|
-
function
|
|
1903
|
+
function M(e, t) {
|
|
1904
1904
|
return e.state.phrase(t);
|
|
1905
1905
|
}
|
|
1906
1906
|
var fe = 30, de = /[\s\.,:;?!]/;
|
|
@@ -1980,10 +1980,10 @@ var $l = /* @__PURE__ */ v.baseTheme({
|
|
|
1980
1980
|
regexp: a.value,
|
|
1981
1981
|
wholeWord: o.value
|
|
1982
1982
|
});
|
|
1983
|
-
h.eq(t.query) || t.view.dispatch({ effects:
|
|
1983
|
+
h.eq(t.query) || t.view.dispatch({ effects: K.of(h) });
|
|
1984
1984
|
}, { flush: "sync" });
|
|
1985
1985
|
function u(h) {
|
|
1986
|
-
h.key === "Escape" ? (h.preventDefault(), Se(t.view), t.view.focus()) : h.key === "Enter" && (h.preventDefault(), h.shiftKey ?
|
|
1986
|
+
h.key === "Escape" ? (h.preventDefault(), Se(t.view), t.view.focus()) : h.key === "Enter" && (h.preventDefault(), h.shiftKey ? X(t.view) : Y(t.view));
|
|
1987
1987
|
}
|
|
1988
1988
|
return (h, f) => {
|
|
1989
1989
|
const g = Ot("tooltip");
|
|
@@ -1999,7 +1999,7 @@ var $l = /* @__PURE__ */ v.baseTheme({
|
|
|
1999
1999
|
onKeydown: u
|
|
2000
2000
|
}, [
|
|
2001
2001
|
S("div", Vl, [
|
|
2002
|
-
e.readonly ? P("", !0) :
|
|
2002
|
+
e.readonly ? P("", !0) : L((A(), Ie(C, {
|
|
2003
2003
|
key: 0,
|
|
2004
2004
|
thin: "",
|
|
2005
2005
|
flat: "",
|
|
@@ -2025,7 +2025,7 @@ var $l = /* @__PURE__ */ v.baseTheme({
|
|
|
2025
2025
|
name: "search"
|
|
2026
2026
|
}
|
|
2027
2027
|
}, null, 8, ["modelValue"]), S("div", _l, [
|
|
2028
|
-
|
|
2028
|
+
L(B(C, {
|
|
2029
2029
|
thin: "",
|
|
2030
2030
|
flat: !l.value,
|
|
2031
2031
|
soft: l.value,
|
|
@@ -2038,7 +2038,7 @@ var $l = /* @__PURE__ */ v.baseTheme({
|
|
|
2038
2038
|
"soft",
|
|
2039
2039
|
"aria-pressed"
|
|
2040
2040
|
]), [[g, "Match case"]]),
|
|
2041
|
-
|
|
2041
|
+
L(B(C, {
|
|
2042
2042
|
thin: "",
|
|
2043
2043
|
flat: !o.value,
|
|
2044
2044
|
soft: o.value,
|
|
@@ -2051,7 +2051,7 @@ var $l = /* @__PURE__ */ v.baseTheme({
|
|
|
2051
2051
|
"soft",
|
|
2052
2052
|
"aria-pressed"
|
|
2053
2053
|
]), [[g, "Match whole word"]]),
|
|
2054
|
-
|
|
2054
|
+
L(B(C, {
|
|
2055
2055
|
thin: "",
|
|
2056
2056
|
flat: !a.value,
|
|
2057
2057
|
soft: a.value,
|
|
@@ -2065,28 +2065,28 @@ var $l = /* @__PURE__ */ v.baseTheme({
|
|
|
2065
2065
|
"aria-pressed"
|
|
2066
2066
|
]), [[g, "Regular expression"]])
|
|
2067
2067
|
])]),
|
|
2068
|
-
|
|
2068
|
+
L(B(C, {
|
|
2069
2069
|
thin: "",
|
|
2070
2070
|
flat: "",
|
|
2071
2071
|
icon: "arrow_upward",
|
|
2072
2072
|
"aria-label": "Previous match",
|
|
2073
|
-
onClick: f[5] || (f[5] = (m) => V(
|
|
2073
|
+
onClick: f[5] || (f[5] = (m) => V(X)(e.view))
|
|
2074
2074
|
}, null, 512), [[g, "Previous match (Shift+Enter)"]]),
|
|
2075
|
-
|
|
2075
|
+
L(B(C, {
|
|
2076
2076
|
thin: "",
|
|
2077
2077
|
flat: "",
|
|
2078
2078
|
icon: "arrow_downward",
|
|
2079
2079
|
"aria-label": "Next match",
|
|
2080
2080
|
onClick: f[6] || (f[6] = (m) => V(Y)(e.view))
|
|
2081
2081
|
}, null, 512), [[g, "Next match (Enter)"]]),
|
|
2082
|
-
|
|
2082
|
+
L(B(C, {
|
|
2083
2083
|
thin: "",
|
|
2084
2084
|
flat: "",
|
|
2085
2085
|
icon: "select_all",
|
|
2086
2086
|
"aria-label": "Select all matches",
|
|
2087
2087
|
onClick: f[7] || (f[7] = (m) => V(kr)(e.view))
|
|
2088
2088
|
}, null, 512), [[g, "Select all matches"]]),
|
|
2089
|
-
|
|
2089
|
+
L(B(C, {
|
|
2090
2090
|
thin: "",
|
|
2091
2091
|
flat: "",
|
|
2092
2092
|
icon: "close",
|
|
@@ -2113,14 +2113,14 @@ var $l = /* @__PURE__ */ v.baseTheme({
|
|
|
2113
2113
|
name: "replace"
|
|
2114
2114
|
}
|
|
2115
2115
|
}, null, 8, ["modelValue"]),
|
|
2116
|
-
|
|
2116
|
+
L(B(C, {
|
|
2117
2117
|
thin: "",
|
|
2118
2118
|
flat: "",
|
|
2119
2119
|
icon: "find_replace",
|
|
2120
2120
|
"aria-label": "Replace next",
|
|
2121
2121
|
onClick: f[10] || (f[10] = (m) => V(Ve)(e.view))
|
|
2122
2122
|
}, null, 512), [[g, "Replace next"]]),
|
|
2123
|
-
|
|
2123
|
+
L(B(C, {
|
|
2124
2124
|
thin: "",
|
|
2125
2125
|
flat: "",
|
|
2126
2126
|
icon: "published_with_changes",
|
|
@@ -2132,7 +2132,7 @@ var $l = /* @__PURE__ */ v.baseTheme({
|
|
|
2132
2132
|
], 32);
|
|
2133
2133
|
};
|
|
2134
2134
|
}
|
|
2135
|
-
}), Gl = /* @__PURE__ */
|
|
2135
|
+
}), Gl = /* @__PURE__ */ Mt(zl, [["__scopeId", "data-v-c5ae435d"]]);
|
|
2136
2136
|
function Jl(e) {
|
|
2137
2137
|
return [
|
|
2138
2138
|
"html",
|
|
@@ -2185,13 +2185,13 @@ async function jl(e, t) {
|
|
|
2185
2185
|
return e;
|
|
2186
2186
|
}
|
|
2187
2187
|
}
|
|
2188
|
-
var
|
|
2188
|
+
var Ql = {
|
|
2189
2189
|
key: 0,
|
|
2190
2190
|
class: "code-terminal-bar monospace flex flex-shrink-0 space-between gap-05 py-025 px-075 txt11 line-height-1 border-bottom"
|
|
2191
|
-
},
|
|
2191
|
+
}, Kl = { class: "flex gap-05 min-w-0" }, Yl = {
|
|
2192
2192
|
key: 0,
|
|
2193
2193
|
class: "opacity-5 ellipsis-1"
|
|
2194
|
-
},
|
|
2194
|
+
}, Xl = { class: "flex align-items-center gap-025 flex-shrink-0" }, Zl = {
|
|
2195
2195
|
class: "opacity-5 px-05",
|
|
2196
2196
|
"aria-label": "Code language"
|
|
2197
2197
|
}, ea = {
|
|
@@ -2260,7 +2260,7 @@ var Kl = {
|
|
|
2260
2260
|
s.value = "Could not copy. Check clipboard permissions and try again.";
|
|
2261
2261
|
}
|
|
2262
2262
|
}
|
|
2263
|
-
const
|
|
2263
|
+
const Lr = Yr().appContext, Mr = pr({
|
|
2264
2264
|
theme: "light",
|
|
2265
2265
|
settings: {
|
|
2266
2266
|
background: "#fafafa",
|
|
@@ -2274,16 +2274,16 @@ var Kl = {
|
|
|
2274
2274
|
}
|
|
2275
2275
|
});
|
|
2276
2276
|
function Br(p) {
|
|
2277
|
-
const x = document.createElement("div"), O = tn(
|
|
2277
|
+
const x = document.createElement("div"), O = tn(Lt(p.state)), st = w(p.state.readOnly), ct = dt({ setup: () => () => dt(Gl, {
|
|
2278
2278
|
view: p,
|
|
2279
2279
|
query: O.value,
|
|
2280
2280
|
readonly: st.value
|
|
2281
2281
|
}) });
|
|
2282
|
-
return ct.appContext =
|
|
2282
|
+
return ct.appContext = Lr, mt(ct, x), {
|
|
2283
2283
|
dom: x,
|
|
2284
2284
|
top: !0,
|
|
2285
2285
|
update() {
|
|
2286
|
-
O.value =
|
|
2286
|
+
O.value = Lt(p.state), st.value = p.state.readOnly;
|
|
2287
2287
|
},
|
|
2288
2288
|
destroy() {
|
|
2289
2289
|
mt(null, x);
|
|
@@ -2293,7 +2293,7 @@ var Kl = {
|
|
|
2293
2293
|
function at() {
|
|
2294
2294
|
const p = r.singleLine ? "0" : "0.7rem";
|
|
2295
2295
|
return [
|
|
2296
|
-
r.dark ? kl :
|
|
2296
|
+
r.dark ? kl : Mr,
|
|
2297
2297
|
r.lineNumbers && !r.singleLine ? Nr() : [],
|
|
2298
2298
|
r.folding && !r.singleLine ? [Ur(), ht.of(Jr)] : [],
|
|
2299
2299
|
r.wrap ? v.lineWrapping : [],
|
|
@@ -2412,9 +2412,9 @@ var Kl = {
|
|
|
2412
2412
|
tt.of([]),
|
|
2413
2413
|
dn(),
|
|
2414
2414
|
wt.of(" "),
|
|
2415
|
-
|
|
2415
|
+
Kr(),
|
|
2416
2416
|
Hr(),
|
|
2417
|
-
|
|
2417
|
+
Ml({ createPanel: Br }),
|
|
2418
2418
|
ht.of([
|
|
2419
2419
|
{
|
|
2420
2420
|
key: "Enter",
|
|
@@ -2454,27 +2454,27 @@ var Kl = {
|
|
|
2454
2454
|
r.terminal
|
|
2455
2455
|
], () => {
|
|
2456
2456
|
k?.dispatch({ effects: z.reconfigure(at()) });
|
|
2457
|
-
}),
|
|
2457
|
+
}), Zr(() => {
|
|
2458
2458
|
Be = !0, clearTimeout(c), k?.destroy(), k = void 0;
|
|
2459
2459
|
}), (p, x) => {
|
|
2460
2460
|
const O = Ot("tooltip");
|
|
2461
|
-
return A(), T("div", { class:
|
|
2461
|
+
return A(), T("div", { class: Xr(["structured-editor", {
|
|
2462
2462
|
terminal: e.terminal,
|
|
2463
2463
|
"toolbar-hover": m.value,
|
|
2464
2464
|
"toolbar-pinned": ue.value,
|
|
2465
2465
|
"toolbar-none": g.value === "none",
|
|
2466
2466
|
"single-line": e.singleLine
|
|
2467
2467
|
}]) }, [
|
|
2468
|
-
e.terminal && ee.value ? (A(), T("div",
|
|
2468
|
+
e.terminal && ee.value ? (A(), T("div", Ql, [S("div", Kl, [x[0] || (x[0] = S("span", {
|
|
2469
2469
|
class: "inline-flex gap-025 flex-shrink-0",
|
|
2470
2470
|
"aria-hidden": "true"
|
|
2471
2471
|
}, [
|
|
2472
2472
|
S("span", { class: "square-10 round bg-red" }),
|
|
2473
2473
|
S("span", { class: "square-10 round bg-yellow" }),
|
|
2474
2474
|
S("span", { class: "square-10 round bg-green" })
|
|
2475
|
-
], -1)), e.title ? (A(), T("span", Yl, $(e.title), 1)) : P("", !0)]), S("div",
|
|
2476
|
-
S("span",
|
|
2477
|
-
f.value ?
|
|
2475
|
+
], -1)), e.title ? (A(), T("span", Yl, $(e.title), 1)) : P("", !0)]), S("div", Xl, [
|
|
2476
|
+
S("span", Zl, $(h.value), 1),
|
|
2477
|
+
f.value ? L((A(), Ie(C, {
|
|
2478
2478
|
key: 0,
|
|
2479
2479
|
thin: "",
|
|
2480
2480
|
flat: "",
|
|
@@ -2485,7 +2485,7 @@ var Kl = {
|
|
|
2485
2485
|
disabled: e.readonly || e.disabled || a.value,
|
|
2486
2486
|
onClick: it
|
|
2487
2487
|
}, null, 8, ["aria-busy", "disabled"])), [[O, a.value ? "Formatting…" : "Format code"]]) : P("", !0),
|
|
2488
|
-
|
|
2488
|
+
L(B(C, {
|
|
2489
2489
|
thin: "",
|
|
2490
2490
|
flat: "",
|
|
2491
2491
|
"icon-size": "1",
|
|
@@ -2496,7 +2496,7 @@ var Kl = {
|
|
|
2496
2496
|
S("span", ea, $(i.value ? "Copied to clipboard" : ""), 1)
|
|
2497
2497
|
])])) : ee.value ? (A(), T("div", ta, [e.label && !m.value ? (A(), T("label", ra, $(e.label), 1)) : (A(), T("span", na, $(h.value), 1)), S("div", la, [
|
|
2498
2498
|
e.label && !m.value ? (A(), T("span", aa, $(h.value), 1)) : P("", !0),
|
|
2499
|
-
f.value ?
|
|
2499
|
+
f.value ? L((A(), Ie(C, {
|
|
2500
2500
|
key: 1,
|
|
2501
2501
|
thin: "",
|
|
2502
2502
|
flat: "",
|
|
@@ -2507,7 +2507,7 @@ var Kl = {
|
|
|
2507
2507
|
disabled: e.readonly || e.disabled || a.value,
|
|
2508
2508
|
onClick: it
|
|
2509
2509
|
}, null, 8, ["aria-busy", "disabled"])), [[O, a.value ? "Formatting…" : "Format code"]]) : P("", !0),
|
|
2510
|
-
|
|
2510
|
+
L(B(C, {
|
|
2511
2511
|
thin: "",
|
|
2512
2512
|
flat: "",
|
|
2513
2513
|
"icon-size": "1",
|
|
@@ -2526,7 +2526,7 @@ var Kl = {
|
|
|
2526
2526
|
], 2);
|
|
2527
2527
|
};
|
|
2528
2528
|
}
|
|
2529
|
-
}), da = /* @__PURE__ */
|
|
2529
|
+
}), da = /* @__PURE__ */ Mt(sa, [["__scopeId", "data-v-48eb82db"]]);
|
|
2530
2530
|
export {
|
|
2531
2531
|
da as default
|
|
2532
2532
|
};
|