@bagelink/vue 1.21.51 → 1.21.53
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-e8PRp7kq.js → StructuredEditor-BUMTloTj.js} +81 -60
- package/dist/{StructuredEditor-BUnLClCn.cjs → StructuredEditor-BXzmkBXf.cjs} +2 -2
- package/dist/StructuredEditor.css +1 -1
- package/dist/components/dataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/CodeEditor/StructuredEditor.vue.d.ts.map +1 -1
- package/dist/components/layout/AppSidebar.vue.d.ts.map +1 -1
- package/dist/components/layout/SidebarNavCaption.vue.d.ts.map +1 -1
- package/dist/core.css +2 -2
- package/dist/i18n/index.d.ts +24 -0
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-BTEY3Itg.js → src-Dtl16wMC.js} +7813 -7786
- package/dist/src-fl0F9GQT.cjs +764 -0
- package/dist/src.css +1 -1
- package/dist/style.css +2 -2
- package/dist/types/dataTable.d.ts +2 -2
- package/dist/types/dataTable.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/dataTable/DataTable.vue +13 -4
- package/src/components/form/inputs/CodeEditor/Index.vue +47 -0
- package/src/components/form/inputs/CodeEditor/StructuredEditor.vue +32 -2
- package/src/components/layout/AppSidebar.vue +3 -1
- package/src/components/layout/SidebarNavCaption.vue +37 -16
- package/src/i18n/locales/en.json +4 -0
- package/src/i18n/locales/es.json +4 -0
- package/src/i18n/locales/fr.json +4 -0
- package/src/i18n/locales/he.json +4 -0
- package/src/i18n/locales/it.json +4 -0
- package/src/i18n/locales/ru.json +4 -0
- package/src/types/dataTable.ts +2 -2
- package/dist/src-s7k-lOzw.cjs +0 -764
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Fa as Lt, Xr as ut, en as wr, ja as C } from "./src-
|
|
1
|
+
import { Fa as Lt, Xr as ut, en as wr, ja as C } from "./src-Dtl16wMC.js";
|
|
2
2
|
import { $ as Bt, A as Er, B as Rr, C as Fr, D as g, E as Tr, 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 Fe, et as De, g as Et, h as Te, it as Ue, j as Rt, n as Ft, nt as zr, ot as Gr, p as Jr, rt as Tt, t as jr, tt as Kr, v as Qr, w as ze, x as K, y as ge, z as Ge } from "./dist-IV7z-zur.js";
|
|
3
|
-
import { computed as G, createBlock as Ie, createCommentVNode as P, createElementBlock as F, createElementVNode as
|
|
3
|
+
import { computed as G, createBlock as Ie, createCommentVNode as P, createElementBlock as F, createElementVNode as S, createVNode as B, defineComponent as It, getCurrentInstance as Xr, h as dt, normalizeClass as Yr, 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 M } 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;
|
|
@@ -269,7 +269,7 @@ function kn(e, t, r) {
|
|
|
269
269
|
let l = e.changes.map(t), a = t.mapDesc(e.changes, !0), o = e.mapped ? e.mapped.composeDesc(a) : a;
|
|
270
270
|
return new q(l, ie.mapEffects(e.effects, t), o, e.startSelection.map(a), n);
|
|
271
271
|
}
|
|
272
|
-
var
|
|
272
|
+
var bn = /^(input\.type|delete)($|\.)/, ae = class ne {
|
|
273
273
|
constructor(t, r, n = 0, l = void 0) {
|
|
274
274
|
this.done = t, this.undone = r, this.prevTime = n, this.prevUserEvent = l;
|
|
275
275
|
}
|
|
@@ -278,7 +278,7 @@ var Sn = /^(input\.type|delete)($|\.)/, ae = class ne {
|
|
|
278
278
|
}
|
|
279
279
|
addChanges(t, r, n, l, a) {
|
|
280
280
|
let o = this.done, i = o[o.length - 1];
|
|
281
|
-
return i && i.changes && !i.changes.empty && t.changes && (!n ||
|
|
281
|
+
return i && i.changes && !i.changes.empty && t.changes && (!n || bn.test(n)) && (!i.selectionsAfter.length && r - this.prevTime < l.newGroupDelay && l.joinToEvent(a, gn(i.changes, t.changes)) || n == "input.type.compose") ? o = ve(o, o.length - 1, l.minDepth, new q(t.changes.compose(i.changes), Vt(ie.mapEffects(t.effects, i.changes), i.effects), i.mapped, i.startSelection, E)) : o = ve(o, o.length, l.minDepth, t), new ne(o, E, r, n);
|
|
282
282
|
}
|
|
283
283
|
addSelection(t, r, n, l) {
|
|
284
284
|
let a = this.done.length ? this.done[this.done.length - 1].selectionsAfter : E;
|
|
@@ -321,7 +321,7 @@ var Sn = /^(input\.type|delete)($|\.)/, ae = class ne {
|
|
|
321
321
|
}
|
|
322
322
|
};
|
|
323
323
|
ae.empty = /* @__PURE__ */ new ae(E, E);
|
|
324
|
-
var
|
|
324
|
+
var Sn = [
|
|
325
325
|
{
|
|
326
326
|
key: "Mod-z",
|
|
327
327
|
run: $t,
|
|
@@ -370,14 +370,14 @@ function Ae(e, t) {
|
|
|
370
370
|
function _t(e, t) {
|
|
371
371
|
return I(e, (r) => r.empty ? e.moveByChar(r, t) : Ae(r, t));
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function b(e) {
|
|
374
374
|
return e.textDirectionAt(e.state.selection.main.head) == Tr.LTR;
|
|
375
375
|
}
|
|
376
|
-
var Ht = (e) => _t(e, !
|
|
376
|
+
var Ht = (e) => _t(e, !b(e)), Ut = (e) => _t(e, b(e));
|
|
377
377
|
function zt(e, t) {
|
|
378
378
|
return I(e, (r) => r.empty ? e.moveByGroup(r, t) : Ae(r, t));
|
|
379
379
|
}
|
|
380
|
-
var Cn = (e) => zt(e, !
|
|
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
381
|
function Mn(e, t, r) {
|
|
382
382
|
if (t.type.prop(r)) return !0;
|
|
383
383
|
let n = t.to - t.from;
|
|
@@ -393,7 +393,7 @@ function Me(e, t, r) {
|
|
|
393
393
|
let a = n.type.prop(l), o, i;
|
|
394
394
|
return a && (o = r ? K(e, n.from, 1) : K(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 Ln = (e) => I(e, (t) => Me(e.state, t, !
|
|
396
|
+
var Ln = (e) => I(e, (t) => Me(e.state, t, !b(e))), Bn = (e) => I(e, (t) => Me(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);
|
|
@@ -440,7 +440,7 @@ function _(e, t, r) {
|
|
|
440
440
|
}
|
|
441
441
|
return l;
|
|
442
442
|
}
|
|
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, !
|
|
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))), Fn = (e) => I(e, (t) => e.moveToLineBoundary(t, !1, !1)), Tn = (e) => I(e, (t) => e.moveToLineBoundary(t, !0, !1));
|
|
444
444
|
function In(e, t, r) {
|
|
445
445
|
let n = !1, l = Z(e.selection, (a) => {
|
|
446
446
|
let o = K(e, a.head, -1) || K(e, a.head, 1) || a.head > 0 && K(e, a.head - 1, 1) || a.head < e.doc.length && K(e, a.head + 1, -1);
|
|
@@ -463,15 +463,15 @@ function R(e, t, r) {
|
|
|
463
463
|
function Xt(e, t) {
|
|
464
464
|
return R(e, t, (r) => e.moveByChar(r, t));
|
|
465
465
|
}
|
|
466
|
-
var Yt = (e) => Xt(e, !
|
|
466
|
+
var Yt = (e) => Xt(e, !b(e)), Zt = (e) => Xt(e, b(e));
|
|
467
467
|
function er(e, t) {
|
|
468
468
|
return R(e, t, (r) => e.moveByGroup(r, t));
|
|
469
469
|
}
|
|
470
|
-
var Pn = (e) => er(e, !
|
|
471
|
-
let t = !
|
|
470
|
+
var Pn = (e) => er(e, !b(e)), qn = (e) => er(e, b(e)), Nn = (e) => {
|
|
471
|
+
let t = !b(e);
|
|
472
472
|
return R(e, t, (r) => Me(e.state, r, t));
|
|
473
473
|
}, $n = (e) => {
|
|
474
|
-
let t =
|
|
474
|
+
let t = b(e);
|
|
475
475
|
return R(e, t, (r) => Me(e.state, r, t));
|
|
476
476
|
};
|
|
477
477
|
function tr(e, t) {
|
|
@@ -482,15 +482,15 @@ function lr(e, t) {
|
|
|
482
482
|
return R(e, t, (r) => e.moveVertically(r, t, Kt(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
|
-
let t = !
|
|
485
|
+
let t = !b(e);
|
|
486
486
|
return R(e, t, (r) => _(e, r, t));
|
|
487
487
|
}, Hn = (e) => {
|
|
488
|
-
let t =
|
|
488
|
+
let t = b(e);
|
|
489
489
|
return R(e, t, (r) => _(e, r, t));
|
|
490
490
|
}, Un = (e) => R(e, !1, (t) => d.cursor(e.lineBlockAt(t.head).from)), zn = (e) => R(e, !0, (t) => d.cursor(e.lineBlockAt(t.head).to)), yt = ({ state: e, dispatch: t }) => (t(T(e, { anchor: 0 })), !0), xt = ({ state: e, dispatch: t }) => (t(T(e, { anchor: e.doc.length })), !0), kt = ({ state: e, dispatch: t }) => (t(T(e, {
|
|
491
491
|
anchor: e.selection.main.anchor,
|
|
492
492
|
head: 0
|
|
493
|
-
})), !0),
|
|
493
|
+
})), !0), bt = ({ state: e, dispatch: t }) => (t(T(e, {
|
|
494
494
|
anchor: e.selection.main.anchor,
|
|
495
495
|
head: e.doc.length
|
|
496
496
|
})), !0), Gn = ({ state: e, dispatch: t }) => (t(e.update({
|
|
@@ -733,7 +733,7 @@ function cl(e, t) {
|
|
|
733
733
|
to: l.from
|
|
734
734
|
} : null;
|
|
735
735
|
}
|
|
736
|
-
var
|
|
736
|
+
var St = /* @__PURE__ */ fr(!1), ul = /* @__PURE__ */ fr(!0);
|
|
737
737
|
function fr(e) {
|
|
738
738
|
return ({ state: t, dispatch: r }) => {
|
|
739
739
|
if (t.readOnly) return !1;
|
|
@@ -933,7 +933,7 @@ var hl = ({ state: e, dispatch: t }) => {
|
|
|
933
933
|
{
|
|
934
934
|
mac: "Cmd-ArrowDown",
|
|
935
935
|
run: xt,
|
|
936
|
-
shift:
|
|
936
|
+
shift: bt
|
|
937
937
|
},
|
|
938
938
|
{
|
|
939
939
|
mac: "Ctrl-ArrowDown",
|
|
@@ -970,12 +970,12 @@ var hl = ({ state: e, dispatch: t }) => {
|
|
|
970
970
|
{
|
|
971
971
|
key: "Mod-End",
|
|
972
972
|
run: xt,
|
|
973
|
-
shift:
|
|
973
|
+
shift: bt
|
|
974
974
|
},
|
|
975
975
|
{
|
|
976
976
|
key: "Enter",
|
|
977
|
-
run:
|
|
978
|
-
shift:
|
|
977
|
+
run: St,
|
|
978
|
+
shift: St
|
|
979
979
|
},
|
|
980
980
|
{
|
|
981
981
|
key: "Mod-a",
|
|
@@ -1359,7 +1359,7 @@ var gr = {
|
|
|
1359
1359
|
typeof Symbol < "u" && (vr.prototype[Symbol.iterator] = yr.prototype[Symbol.iterator] = function() {
|
|
1360
1360
|
return this;
|
|
1361
1361
|
});
|
|
1362
|
-
function
|
|
1362
|
+
function bl(e) {
|
|
1363
1363
|
try {
|
|
1364
1364
|
return new RegExp(e, Qe), !0;
|
|
1365
1365
|
} catch {
|
|
@@ -1372,7 +1372,7 @@ function ye(e, t) {
|
|
|
1372
1372
|
for (; t < r.to && (n = r.text.charCodeAt(t - r.from)) >= 56320 && n < 57344; ) t++;
|
|
1373
1373
|
return t;
|
|
1374
1374
|
}
|
|
1375
|
-
var
|
|
1375
|
+
var Sl = (e) => {
|
|
1376
1376
|
let t = Er(e, "cm-goto-line");
|
|
1377
1377
|
if (t) {
|
|
1378
1378
|
let o = t.dom.querySelector("input[type=text]");
|
|
@@ -1457,7 +1457,7 @@ var Xe = class {
|
|
|
1457
1457
|
Create a query object.
|
|
1458
1458
|
*/
|
|
1459
1459
|
constructor(e) {
|
|
1460
|
-
this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && (!this.regexp ||
|
|
1460
|
+
this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && (!this.regexp || bl(this.search)), this.unquoted = this.unquote(this.search), this.wholeWord = !!e.wholeWord, this.test = e.test;
|
|
1461
1461
|
}
|
|
1462
1462
|
/**
|
|
1463
1463
|
@internal
|
|
@@ -1602,7 +1602,7 @@ var Fl = class extends xr {
|
|
|
1602
1602
|
}
|
|
1603
1603
|
}, Q = /* @__PURE__ */ ie.define(), Ye = /* @__PURE__ */ ie.define(), N = /* @__PURE__ */ Dt.define({
|
|
1604
1604
|
create(e) {
|
|
1605
|
-
return new Re(
|
|
1605
|
+
return new Re(be(e).create(), null);
|
|
1606
1606
|
},
|
|
1607
1607
|
update(e, t) {
|
|
1608
1608
|
for (let r of t.effects) r.is(Q) ? e = new Re(r.value.create(), e.panel) : r.is(Ye) && (e = new Re(e.query, r.value ? Ze : null));
|
|
@@ -1612,7 +1612,7 @@ var Fl = class extends xr {
|
|
|
1612
1612
|
});
|
|
1613
1613
|
function Mt(e) {
|
|
1614
1614
|
let t = e.field(N, !1);
|
|
1615
|
-
return t ? t.query.spec :
|
|
1615
|
+
return t ? t.query.spec : be(e);
|
|
1616
1616
|
}
|
|
1617
1617
|
var Re = class {
|
|
1618
1618
|
constructor(e, t) {
|
|
@@ -1700,7 +1700,7 @@ var X = /* @__PURE__ */ ce((e, { query: t }) => {
|
|
|
1700
1700
|
effects: u,
|
|
1701
1701
|
userEvent: "input.replace"
|
|
1702
1702
|
}), !0;
|
|
1703
|
-
}),
|
|
1703
|
+
}), br = /* @__PURE__ */ ce((e, { query: t }) => {
|
|
1704
1704
|
if (e.state.readOnly) return !1;
|
|
1705
1705
|
let r = [];
|
|
1706
1706
|
for (let l of t.matchAll(e.state, 1e9)) {
|
|
@@ -1722,7 +1722,7 @@ var X = /* @__PURE__ */ ce((e, { query: t }) => {
|
|
|
1722
1722
|
function Ze(e) {
|
|
1723
1723
|
return e.state.facet(U).createPanel(e);
|
|
1724
1724
|
}
|
|
1725
|
-
function
|
|
1725
|
+
function be(e, t) {
|
|
1726
1726
|
var r, n, l, a, o;
|
|
1727
1727
|
let i = e.selection.main, s = i.empty || i.to > i.from + 100 ? "" : e.sliceDoc(i.from, i.to);
|
|
1728
1728
|
if (t && !s) return t;
|
|
@@ -1735,25 +1735,25 @@ function Se(e, t) {
|
|
|
1735
1735
|
wholeWord: (o = t?.wholeWord) !== null && o !== void 0 ? o : c.wholeWord
|
|
1736
1736
|
});
|
|
1737
1737
|
}
|
|
1738
|
-
function
|
|
1738
|
+
function Sr(e) {
|
|
1739
1739
|
let t = Rt(e, Ze);
|
|
1740
1740
|
return t && t.dom.querySelector("[main-field]");
|
|
1741
1741
|
}
|
|
1742
1742
|
function Cr(e) {
|
|
1743
|
-
let t =
|
|
1743
|
+
let t = Sr(e);
|
|
1744
1744
|
t && t == e.root.activeElement && t.select();
|
|
1745
1745
|
}
|
|
1746
1746
|
var Ar = (e) => {
|
|
1747
1747
|
let t = e.state.field(N, !1);
|
|
1748
1748
|
if (t && t.panel) {
|
|
1749
|
-
let r =
|
|
1749
|
+
let r = Sr(e);
|
|
1750
1750
|
if (r && r != e.root.activeElement) {
|
|
1751
|
-
let n =
|
|
1751
|
+
let n = be(e.state, t.query.spec);
|
|
1752
1752
|
n.valid && e.dispatch({ effects: Q.of(n) }), r.focus(), r.select();
|
|
1753
1753
|
}
|
|
1754
|
-
} else e.dispatch({ effects: [Ye.of(!0), t ? Q.of(
|
|
1754
|
+
} else e.dispatch({ effects: [Ye.of(!0), t ? Q.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
1759
|
let r = Rt(e, Ze);
|
|
@@ -1780,7 +1780,7 @@ var Ar = (e) => {
|
|
|
1780
1780
|
},
|
|
1781
1781
|
{
|
|
1782
1782
|
key: "Escape",
|
|
1783
|
-
run:
|
|
1783
|
+
run: Se,
|
|
1784
1784
|
scope: "editor search-panel"
|
|
1785
1785
|
},
|
|
1786
1786
|
{
|
|
@@ -1789,7 +1789,7 @@ var Ar = (e) => {
|
|
|
1789
1789
|
},
|
|
1790
1790
|
{
|
|
1791
1791
|
key: "Mod-Alt-g",
|
|
1792
|
-
run:
|
|
1792
|
+
run: Sl
|
|
1793
1793
|
},
|
|
1794
1794
|
{
|
|
1795
1795
|
key: "Mod-d",
|
|
@@ -1861,11 +1861,11 @@ var Ar = (e) => {
|
|
|
1861
1861
|
D("br"),
|
|
1862
1862
|
this.replaceField,
|
|
1863
1863
|
r("replace", () => Ve(e), [L(e, "replace")]),
|
|
1864
|
-
r("replaceAll", () =>
|
|
1864
|
+
r("replaceAll", () => br(e), [L(e, "replace all")])
|
|
1865
1865
|
],
|
|
1866
1866
|
D("button", {
|
|
1867
1867
|
name: "close",
|
|
1868
|
-
onclick: () =>
|
|
1868
|
+
onclick: () => Se(e),
|
|
1869
1869
|
"aria-label": L(e, "close"),
|
|
1870
1870
|
type: "button"
|
|
1871
1871
|
}, ["×"])
|
|
@@ -1983,7 +1983,7 @@ var $l = /* @__PURE__ */ g.baseTheme({
|
|
|
1983
1983
|
h.eq(t.query) || t.view.dispatch({ effects: Q.of(h) });
|
|
1984
1984
|
}, { flush: "sync" });
|
|
1985
1985
|
function u(h) {
|
|
1986
|
-
h.key === "Escape" ? (h.preventDefault(),
|
|
1986
|
+
h.key === "Escape" ? (h.preventDefault(), Se(t.view), t.view.focus()) : h.key === "Enter" && (h.preventDefault(), h.shiftKey ? Y(t.view) : X(t.view));
|
|
1987
1987
|
}
|
|
1988
1988
|
return (h, f) => {
|
|
1989
1989
|
const v = Ot("tooltip");
|
|
@@ -1998,7 +1998,7 @@ var $l = /* @__PURE__ */ g.baseTheme({
|
|
|
1998
1998
|
"aria-label": "Find and replace",
|
|
1999
1999
|
onKeydown: u
|
|
2000
2000
|
}, [
|
|
2001
|
-
|
|
2001
|
+
S("div", Vl, [
|
|
2002
2002
|
e.readonly ? P("", !0) : M((A(), Ie(C, {
|
|
2003
2003
|
key: 0,
|
|
2004
2004
|
thin: "",
|
|
@@ -2013,7 +2013,7 @@ var $l = /* @__PURE__ */ g.baseTheme({
|
|
|
2013
2013
|
"aria-expanded",
|
|
2014
2014
|
"aria-controls"
|
|
2015
2015
|
])), [[v, i.value ? "Hide replace" : "Show replace"]]),
|
|
2016
|
-
|
|
2016
|
+
S("div", Wl, [B(ut, {
|
|
2017
2017
|
modelValue: r.value,
|
|
2018
2018
|
"onUpdate:modelValue": f[1] || (f[1] = (m) => r.value = m),
|
|
2019
2019
|
small: "",
|
|
@@ -2024,7 +2024,7 @@ var $l = /* @__PURE__ */ g.baseTheme({
|
|
|
2024
2024
|
"main-field": "true",
|
|
2025
2025
|
name: "search"
|
|
2026
2026
|
}
|
|
2027
|
-
}, null, 8, ["modelValue"]),
|
|
2027
|
+
}, null, 8, ["modelValue"]), S("div", _l, [
|
|
2028
2028
|
M(B(C, {
|
|
2029
2029
|
thin: "",
|
|
2030
2030
|
flat: !l.value,
|
|
@@ -2092,7 +2092,7 @@ var $l = /* @__PURE__ */ g.baseTheme({
|
|
|
2092
2092
|
icon: "close",
|
|
2093
2093
|
"aria-label": "Close search",
|
|
2094
2094
|
onClick: f[8] || (f[8] = (m) => {
|
|
2095
|
-
V(
|
|
2095
|
+
V(Se)(e.view), e.view.focus();
|
|
2096
2096
|
})
|
|
2097
2097
|
}, null, 512), [[v, "Close (Escape)"]])
|
|
2098
2098
|
]),
|
|
@@ -2125,7 +2125,7 @@ var $l = /* @__PURE__ */ g.baseTheme({
|
|
|
2125
2125
|
flat: "",
|
|
2126
2126
|
icon: "published_with_changes",
|
|
2127
2127
|
"aria-label": "Replace all",
|
|
2128
|
-
onClick: f[11] || (f[11] = (m) => V(
|
|
2128
|
+
onClick: f[11] || (f[11] = (m) => V(br)(e.view))
|
|
2129
2129
|
}, null, 512), [[v, "Replace all"]])
|
|
2130
2130
|
], 8, Hl)) : P("", !0),
|
|
2131
2131
|
e.query.regexp && e.query.search.length > 0 && !e.query.valid ? (A(), F("span", Ul, "Invalid regular expression")) : P("", !0)
|
|
@@ -2312,11 +2312,32 @@ var Kl = {
|
|
|
2312
2312
|
...r.terminal ? { backgroundColor: "transparent" } : {}
|
|
2313
2313
|
},
|
|
2314
2314
|
".cm-scroller": {
|
|
2315
|
-
|
|
2315
|
+
overflowX: "auto",
|
|
2316
|
+
overflowY: r.singleLine ? "hidden" : "auto",
|
|
2316
2317
|
fontFamily: "inherit",
|
|
2317
|
-
lineHeight: "1.5",
|
|
2318
|
-
overscrollBehavior: "contain"
|
|
2318
|
+
lineHeight: r.singleLine ? "inherit" : "1.5",
|
|
2319
|
+
overscrollBehavior: "contain",
|
|
2320
|
+
...r.singleLine ? {
|
|
2321
|
+
scrollbarWidth: "auto",
|
|
2322
|
+
scrollbarColor: "auto"
|
|
2323
|
+
} : {}
|
|
2319
2324
|
},
|
|
2325
|
+
...r.singleLine ? {
|
|
2326
|
+
"& .cm-scroller::-webkit-scrollbar": {
|
|
2327
|
+
height: "3px !important",
|
|
2328
|
+
width: "3px !important"
|
|
2329
|
+
},
|
|
2330
|
+
"& .cm-scroller::-webkit-scrollbar-track": {
|
|
2331
|
+
background: "transparent !important",
|
|
2332
|
+
margin: "0 !important"
|
|
2333
|
+
},
|
|
2334
|
+
"& .cm-scroller::-webkit-scrollbar-thumb": {
|
|
2335
|
+
backgroundColor: "var(--bgl-scrollbar-thumb, rgba(0, 0, 0, 0.25)) !important",
|
|
2336
|
+
borderRadius: "1rem !important",
|
|
2337
|
+
border: "0 !important",
|
|
2338
|
+
backgroundClip: "border-box !important"
|
|
2339
|
+
}
|
|
2340
|
+
} : {},
|
|
2320
2341
|
".cm-content": {
|
|
2321
2342
|
padding: p,
|
|
2322
2343
|
fontVariantLigatures: "none",
|
|
@@ -2400,7 +2421,7 @@ var Kl = {
|
|
|
2400
2421
|
run: () => r.singleLine
|
|
2401
2422
|
},
|
|
2402
2423
|
...pl,
|
|
2403
|
-
...
|
|
2424
|
+
...Sn,
|
|
2404
2425
|
...ql,
|
|
2405
2426
|
gl
|
|
2406
2427
|
]),
|
|
@@ -2443,15 +2464,15 @@ var Kl = {
|
|
|
2443
2464
|
"toolbar-pinned": ue.value,
|
|
2444
2465
|
"single-line": e.singleLine
|
|
2445
2466
|
}]) }, [
|
|
2446
|
-
e.terminal && ee.value ? (A(), F("div", Kl, [
|
|
2467
|
+
e.terminal && ee.value ? (A(), F("div", Kl, [S("div", Ql, [x[0] || (x[0] = S("span", {
|
|
2447
2468
|
class: "inline-flex gap-025 flex-shrink-0",
|
|
2448
2469
|
"aria-hidden": "true"
|
|
2449
2470
|
}, [
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
], -1)), e.title ? (A(), F("span", Xl, $(e.title), 1)) : P("", !0)]),
|
|
2454
|
-
|
|
2471
|
+
S("span", { class: "square-10 round bg-red" }),
|
|
2472
|
+
S("span", { class: "square-10 round bg-yellow" }),
|
|
2473
|
+
S("span", { class: "square-10 round bg-green" })
|
|
2474
|
+
], -1)), e.title ? (A(), F("span", Xl, $(e.title), 1)) : P("", !0)]), S("div", Yl, [
|
|
2475
|
+
S("span", Zl, $(h.value), 1),
|
|
2455
2476
|
f.value ? M((A(), Ie(C, {
|
|
2456
2477
|
key: 0,
|
|
2457
2478
|
thin: "",
|
|
@@ -2471,8 +2492,8 @@ var Kl = {
|
|
|
2471
2492
|
"aria-label": i.value ? "Copied!" : "Copy code",
|
|
2472
2493
|
onClick: lt
|
|
2473
2494
|
}, null, 8, ["icon", "aria-label"]), [[O, i.value ? "Copied!" : "Copy code"]]),
|
|
2474
|
-
|
|
2475
|
-
])])) : ee.value ? (A(), F("div", ta, [e.label && !m.value ? (A(), F("label", ra, $(e.label), 1)) : (A(), F("span", na, $(h.value), 1)),
|
|
2495
|
+
S("span", ea, $(i.value ? "Copied to clipboard" : ""), 1)
|
|
2496
|
+
])])) : ee.value ? (A(), F("div", ta, [e.label && !m.value ? (A(), F("label", ra, $(e.label), 1)) : (A(), F("span", na, $(h.value), 1)), S("div", la, [
|
|
2476
2497
|
e.label && !m.value ? (A(), F("span", aa, $(h.value), 1)) : P("", !0),
|
|
2477
2498
|
f.value ? M((A(), Ie(C, {
|
|
2478
2499
|
key: 1,
|
|
@@ -2493,10 +2514,10 @@ var Kl = {
|
|
|
2493
2514
|
"aria-label": i.value ? "Copied!" : "Copy code",
|
|
2494
2515
|
onClick: lt
|
|
2495
2516
|
}, null, 8, ["icon", "aria-label"]), [[O, i.value ? "Copied!" : "Copy code"]]),
|
|
2496
|
-
|
|
2517
|
+
S("span", oa, $(i.value ? "Copied to clipboard" : ""), 1)
|
|
2497
2518
|
])])) : P("", !0),
|
|
2498
2519
|
o.value || s.value ? (A(), F("span", ia, $(o.value || s.value), 1)) : P("", !0),
|
|
2499
|
-
|
|
2520
|
+
S("div", {
|
|
2500
2521
|
ref_key: "host",
|
|
2501
2522
|
ref: l,
|
|
2502
2523
|
class: "structured-editor-host"
|
|
@@ -2504,7 +2525,7 @@ var Kl = {
|
|
|
2504
2525
|
], 2);
|
|
2505
2526
|
};
|
|
2506
2527
|
}
|
|
2507
|
-
}), da = /* @__PURE__ */ Lt(sa, [["__scopeId", "data-v-
|
|
2528
|
+
}), da = /* @__PURE__ */ Lt(sa, [["__scopeId", "data-v-33d187ba"]]);
|
|
2508
2529
|
export {
|
|
2509
2530
|
da as default
|
|
2510
2531
|
};
|