@bagelink/vue 1.21.51 → 1.21.55
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-C2ftdWZ4.js} +121 -99
- package/dist/{StructuredEditor-BUnLClCn.cjs → StructuredEditor-DoffRqCu.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 +18 -5
- package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/CodeEditor/StructuredEditor.vue.d.ts +2 -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-B4Vf81d1.js} +9203 -9166
- package/dist/src-CBPUG0cX.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 +65 -4
- package/src/components/form/inputs/CodeEditor/StructuredEditor.vue +43 -12
- 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-
|
|
2
|
-
import { $ as Bt, A as Er, B as Rr, C as Fr, D as
|
|
3
|
-
import { computed as G, createBlock as Ie, createCommentVNode as P, createElementBlock as F, createElementVNode as
|
|
1
|
+
import { Fa as Lt, Xr as ut, en as wr, ja as C } from "./src-B4Vf81d1.js";
|
|
2
|
+
import { $ as Bt, A as Er, B as Rr, C as Fr, D as v, 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 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;
|
|
@@ -32,14 +32,14 @@ function sn(e, { open: t, close: r }, n, l) {
|
|
|
32
32
|
};
|
|
33
33
|
let u, h;
|
|
34
34
|
l - n <= 2 * te ? u = h = e.sliceDoc(n, l) : (u = e.sliceDoc(n, n + te), h = e.sliceDoc(l - te, l));
|
|
35
|
-
let f = /^\s*/.exec(u)[0].length,
|
|
35
|
+
let f = /^\s*/.exec(u)[0].length, g = /\s*$/.exec(h)[0].length, m = h.length - g - r.length;
|
|
36
36
|
return u.slice(f, f + t.length) == t && h.slice(m, m + r.length) == r ? {
|
|
37
37
|
open: {
|
|
38
38
|
pos: n + f + t.length,
|
|
39
39
|
margin: /\s/.test(u.charAt(f + t.length)) ? 1 : 0
|
|
40
40
|
},
|
|
41
41
|
close: {
|
|
42
|
-
pos: l -
|
|
42
|
+
pos: l - g - r.length,
|
|
43
43
|
margin: /\s/.test(h.charAt(m - 1)) ? 1 : 0
|
|
44
44
|
}
|
|
45
45
|
} : null;
|
|
@@ -94,13 +94,13 @@ function un(e, t, r = t.selection.ranges) {
|
|
|
94
94
|
continue e;
|
|
95
95
|
if (h.from > l && (a == o || o > h.from)) {
|
|
96
96
|
l = h.from;
|
|
97
|
-
let f = /^\s*/.exec(h.text)[0].length,
|
|
97
|
+
let f = /^\s*/.exec(h.text)[0].length, g = f == h.length, m = h.text.slice(f, f + c.length) == c ? f : -1;
|
|
98
98
|
f < h.text.length && f < s && (s = f), n.push({
|
|
99
99
|
line: h,
|
|
100
100
|
comment: m,
|
|
101
101
|
token: c,
|
|
102
102
|
indent: f,
|
|
103
|
-
empty:
|
|
103
|
+
empty: g,
|
|
104
104
|
single: !1
|
|
105
105
|
});
|
|
106
106
|
}
|
|
@@ -173,7 +173,7 @@ function dn(e = {}) {
|
|
|
173
173
|
return [
|
|
174
174
|
Nt,
|
|
175
175
|
qt.of(e),
|
|
176
|
-
|
|
176
|
+
v.domEventHandlers({ beforeinput(t, r) {
|
|
177
177
|
let n = t.inputType == "historyUndo" ? $t : t.inputType == "historyRedo" ? Pe : null;
|
|
178
178
|
return n ? (t.preventDefault(), n(r)) : !1;
|
|
179
179
|
} })
|
|
@@ -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);
|
|
@@ -405,7 +405,7 @@ var Jt = (e) => Gt(e, !1), jt = (e) => Gt(e, !0);
|
|
|
405
405
|
function Kt(e) {
|
|
406
406
|
let t = e.scrollDOM.clientHeight < e.scrollDOM.scrollHeight - 2, r = 0, n = 0, l;
|
|
407
407
|
if (t) {
|
|
408
|
-
for (let a of e.state.facet(
|
|
408
|
+
for (let a of e.state.facet(v.scrollMargins)) {
|
|
409
409
|
let o = a(e);
|
|
410
410
|
o?.top && (r = Math.max(o?.top, r)), o?.bottom && (n = Math.max(o?.bottom, n));
|
|
411
411
|
}
|
|
@@ -424,7 +424,7 @@ function Qt(e, t) {
|
|
|
424
424
|
let a;
|
|
425
425
|
if (r.selfScroll) {
|
|
426
426
|
let o = e.coordsAtPos(n.selection.main.head), i = e.scrollDOM.getBoundingClientRect(), s = i.top + r.marginTop, c = i.bottom - r.marginBottom;
|
|
427
|
-
o && o.top > s && o.bottom < c && (a =
|
|
427
|
+
o && o.top > s && o.bottom < c && (a = v.scrollIntoView(l.main.head, {
|
|
428
428
|
y: "start",
|
|
429
429
|
yMargin: o.top - s
|
|
430
430
|
}));
|
|
@@ -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({
|
|
@@ -561,11 +561,11 @@ function se(e, t) {
|
|
|
561
561
|
return l.changes.empty ? !1 : (e.dispatch(n.update(l, {
|
|
562
562
|
scrollIntoView: !0,
|
|
563
563
|
userEvent: r,
|
|
564
|
-
effects: r == "delete.selection" ?
|
|
564
|
+
effects: r == "delete.selection" ? v.announce.of(n.phrase("Selection deleted")) : void 0
|
|
565
565
|
})), !0);
|
|
566
566
|
}
|
|
567
567
|
function he(e, t, r) {
|
|
568
|
-
if (e instanceof
|
|
568
|
+
if (e instanceof v) for (let n of e.state.facet(v.atomicRanges).map((l) => l(e))) n.between(t, t, (l, a) => {
|
|
569
569
|
l < t && a > t && (t = r ? a : l);
|
|
570
570
|
});
|
|
571
571
|
return t;
|
|
@@ -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",
|
|
@@ -1125,7 +1125,7 @@ var vl = (e) => {
|
|
|
1125
1125
|
var t = e.theme, r = e.settings, n = r === void 0 ? {} : r, l = e.styles, a = l === void 0 ? [] : l, o = { ".cm-gutters": {} }, i = {};
|
|
1126
1126
|
n.background && (i.backgroundColor = n.background), n.backgroundImage && (i.backgroundImage = n.backgroundImage), n.foreground && (i.color = n.foreground), n.fontSize && (i.fontSize = n.fontSize), (n.background || n.foreground) && (o["&"] = i), n.fontFamily && (o["&.cm-editor .cm-scroller"] = { fontFamily: n.fontFamily }), n.gutterBackground && (o[".cm-gutters"].backgroundColor = n.gutterBackground), n.gutterForeground && (o[".cm-gutters"].color = n.gutterForeground), n.gutterBorder && (o[".cm-gutters"].borderRightColor = n.gutterBorder), n.caret && (o[".cm-content"] = { caretColor: n.caret }, o[".cm-cursor, .cm-dropCursor"] = { borderLeftColor: n.caret });
|
|
1127
1127
|
var s = {};
|
|
1128
|
-
return n.gutterActiveForeground && (s.color = n.gutterActiveForeground), n.lineHighlight && (o[".cm-activeLine"] = { backgroundColor: n.lineHighlight }, s.backgroundColor = n.lineHighlight), o[".cm-activeLineGutter"] = s, n.selection && (o["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"] = { background: n.selection + " !important" }), n.selectionMatch && (o["& .cm-selectionMatch"] = { backgroundColor: n.selectionMatch }), [
|
|
1128
|
+
return n.gutterActiveForeground && (s.color = n.gutterActiveForeground), n.lineHighlight && (o[".cm-activeLine"] = { backgroundColor: n.lineHighlight }, s.backgroundColor = n.lineHighlight), o[".cm-activeLineGutter"] = s, n.selection && (o["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"] = { background: n.selection + " !important" }), n.selectionMatch && (o["& .cm-selectionMatch"] = { backgroundColor: n.selectionMatch }), [v.theme(o, { dark: t === "dark" }), Fr(jr.define(a))];
|
|
1129
1129
|
}, yl = {
|
|
1130
1130
|
background: "#272C35",
|
|
1131
1131
|
foreground: "#9d9b97",
|
|
@@ -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]");
|
|
@@ -1395,14 +1395,14 @@ var bl = (e) => {
|
|
|
1395
1395
|
e.dispatch({ effects: l });
|
|
1396
1396
|
return;
|
|
1397
1397
|
}
|
|
1398
|
-
let s = r.doc.lineAt(r.selection.main.head), [, c, u, h, f] = i,
|
|
1398
|
+
let s = r.doc.lineAt(r.selection.main.head), [, c, u, h, f] = i, g = h ? +h.slice(1) : 0, m = u ? +u : s.number;
|
|
1399
1399
|
if (u && f) {
|
|
1400
1400
|
let z = m / 100;
|
|
1401
1401
|
c && (z = z * (c == "-" ? -1 : 1) + s.number / r.doc.lines), m = Math.round(r.doc.lines * z);
|
|
1402
1402
|
} else u && c && (m = m * (c == "-" ? -1 : 1) + s.number);
|
|
1403
|
-
let ue = r.doc.line(Math.max(1, Math.min(r.doc.lines, m))), ee = d.cursor(ue.from + Math.max(0, Math.min(
|
|
1403
|
+
let ue = r.doc.line(Math.max(1, Math.min(r.doc.lines, m))), ee = d.cursor(ue.from + Math.max(0, Math.min(g, ue.length)));
|
|
1404
1404
|
e.dispatch({
|
|
1405
|
-
effects: [l,
|
|
1405
|
+
effects: [l, v.scrollIntoView(ee.from, { y: "center" })],
|
|
1406
1406
|
selection: ee
|
|
1407
1407
|
});
|
|
1408
1408
|
}), !0;
|
|
@@ -1436,7 +1436,7 @@ var Ml = ({ state: e, dispatch: t }) => {
|
|
|
1436
1436
|
let l = Al(e, n);
|
|
1437
1437
|
return l ? (t(e.update({
|
|
1438
1438
|
selection: e.selection.addRange(d.range(l.from, l.to), !1),
|
|
1439
|
-
effects:
|
|
1439
|
+
effects: v.scrollIntoView(l.to)
|
|
1440
1440
|
})), !0) : !1;
|
|
1441
1441
|
}, U = /* @__PURE__ */ _e.define({ combine(e) {
|
|
1442
1442
|
return Tt(e, {
|
|
@@ -1446,7 +1446,7 @@ var Ml = ({ state: e, dispatch: t }) => {
|
|
|
1446
1446
|
regexp: !1,
|
|
1447
1447
|
wholeWord: !1,
|
|
1448
1448
|
createPanel: (t) => new Nl(t),
|
|
1449
|
-
scrollToMatch: (t) =>
|
|
1449
|
+
scrollToMatch: (t) => v.scrollIntoView(t)
|
|
1450
1450
|
});
|
|
1451
1451
|
} });
|
|
1452
1452
|
function Ll(e) {
|
|
@@ -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) {
|
|
@@ -1692,7 +1692,7 @@ var X = /* @__PURE__ */ ce((e, { query: t }) => {
|
|
|
1692
1692
|
from: o.from,
|
|
1693
1693
|
to: o.to,
|
|
1694
1694
|
insert: c
|
|
1695
|
-
}), o = t.nextMatch(r, o.from, o.to), u.push(
|
|
1695
|
+
}), o = t.nextMatch(r, o.from, o.to), u.push(v.announce.of(r.phrase("replaced match on line $", r.doc.lineAt(n).number) + "."))) : o = t.nextMatch(r, o.from, o.to);
|
|
1696
1696
|
let h = e.state.changes(i);
|
|
1697
1697
|
return o && (s = d.single(o.from, o.to).map(h), u.push(et(e, o)), u.push(r.facet(U).scrollToMatch(s.main, e))), e.dispatch({
|
|
1698
1698
|
changes: h,
|
|
@@ -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)) {
|
|
@@ -1715,14 +1715,14 @@ var X = /* @__PURE__ */ ce((e, { query: t }) => {
|
|
|
1715
1715
|
let n = e.state.phrase("replaced $ matches", r.length) + ".";
|
|
1716
1716
|
return e.dispatch({
|
|
1717
1717
|
changes: r,
|
|
1718
|
-
effects:
|
|
1718
|
+
effects: v.announce.of(n),
|
|
1719
1719
|
userEvent: "input.replace.all"
|
|
1720
1720
|
}), !0;
|
|
1721
1721
|
});
|
|
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
|
}, ["×"])
|
|
@@ -1918,9 +1918,9 @@ function et(e, { from: t, to: r }) {
|
|
|
1918
1918
|
break;
|
|
1919
1919
|
}
|
|
1920
1920
|
}
|
|
1921
|
-
return
|
|
1921
|
+
return v.announce.of(`${e.state.phrase("current match")}. ${i} ${e.state.phrase("on line")} ${n.number}.`);
|
|
1922
1922
|
}
|
|
1923
|
-
var $l = /* @__PURE__ */
|
|
1923
|
+
var $l = /* @__PURE__ */ v.baseTheme({
|
|
1924
1924
|
".cm-panel.cm-search": {
|
|
1925
1925
|
padding: "2px 6px 4px",
|
|
1926
1926
|
position: "relative",
|
|
@@ -1983,10 +1983,10 @@ 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
|
-
const
|
|
1989
|
+
const g = Ot("tooltip");
|
|
1990
1990
|
return A(), F("div", {
|
|
1991
1991
|
class: "code-search-panel grid gap-025 p-05",
|
|
1992
1992
|
style: {
|
|
@@ -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: "",
|
|
@@ -2012,8 +2012,8 @@ var $l = /* @__PURE__ */ g.baseTheme({
|
|
|
2012
2012
|
"icon",
|
|
2013
2013
|
"aria-expanded",
|
|
2014
2014
|
"aria-controls"
|
|
2015
|
-
])), [[
|
|
2016
|
-
|
|
2015
|
+
])), [[g, i.value ? "Hide replace" : "Show replace"]]),
|
|
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,
|
|
@@ -2037,7 +2037,7 @@ var $l = /* @__PURE__ */ g.baseTheme({
|
|
|
2037
2037
|
"flat",
|
|
2038
2038
|
"soft",
|
|
2039
2039
|
"aria-pressed"
|
|
2040
|
-
]), [[
|
|
2040
|
+
]), [[g, "Match case"]]),
|
|
2041
2041
|
M(B(C, {
|
|
2042
2042
|
thin: "",
|
|
2043
2043
|
flat: !o.value,
|
|
@@ -2050,7 +2050,7 @@ var $l = /* @__PURE__ */ g.baseTheme({
|
|
|
2050
2050
|
"flat",
|
|
2051
2051
|
"soft",
|
|
2052
2052
|
"aria-pressed"
|
|
2053
|
-
]), [[
|
|
2053
|
+
]), [[g, "Match whole word"]]),
|
|
2054
2054
|
M(B(C, {
|
|
2055
2055
|
thin: "",
|
|
2056
2056
|
flat: !a.value,
|
|
@@ -2063,7 +2063,7 @@ var $l = /* @__PURE__ */ g.baseTheme({
|
|
|
2063
2063
|
"flat",
|
|
2064
2064
|
"soft",
|
|
2065
2065
|
"aria-pressed"
|
|
2066
|
-
]), [[
|
|
2066
|
+
]), [[g, "Regular expression"]])
|
|
2067
2067
|
])]),
|
|
2068
2068
|
M(B(C, {
|
|
2069
2069
|
thin: "",
|
|
@@ -2071,30 +2071,30 @@ var $l = /* @__PURE__ */ g.baseTheme({
|
|
|
2071
2071
|
icon: "arrow_upward",
|
|
2072
2072
|
"aria-label": "Previous match",
|
|
2073
2073
|
onClick: f[5] || (f[5] = (m) => V(Y)(e.view))
|
|
2074
|
-
}, null, 512), [[
|
|
2074
|
+
}, null, 512), [[g, "Previous match (Shift+Enter)"]]),
|
|
2075
2075
|
M(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(X)(e.view))
|
|
2081
|
-
}, null, 512), [[
|
|
2081
|
+
}, null, 512), [[g, "Next match (Enter)"]]),
|
|
2082
2082
|
M(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
|
-
}, null, 512), [[
|
|
2088
|
+
}, null, 512), [[g, "Select all matches"]]),
|
|
2089
2089
|
M(B(C, {
|
|
2090
2090
|
thin: "",
|
|
2091
2091
|
flat: "",
|
|
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
|
-
}, null, 512), [[
|
|
2097
|
+
}, null, 512), [[g, "Close (Escape)"]])
|
|
2098
2098
|
]),
|
|
2099
2099
|
!e.readonly && i.value ? (A(), F("div", {
|
|
2100
2100
|
key: 0,
|
|
@@ -2119,14 +2119,14 @@ var $l = /* @__PURE__ */ g.baseTheme({
|
|
|
2119
2119
|
icon: "find_replace",
|
|
2120
2120
|
"aria-label": "Replace next",
|
|
2121
2121
|
onClick: f[10] || (f[10] = (m) => V(Ve)(e.view))
|
|
2122
|
-
}, null, 512), [[
|
|
2122
|
+
}, null, 512), [[g, "Replace next"]]),
|
|
2123
2123
|
M(B(C, {
|
|
2124
2124
|
thin: "",
|
|
2125
2125
|
flat: "",
|
|
2126
2126
|
icon: "published_with_changes",
|
|
2127
2127
|
"aria-label": "Replace all",
|
|
2128
|
-
onClick: f[11] || (f[11] = (m) => V(
|
|
2129
|
-
}, null, 512), [[
|
|
2128
|
+
onClick: f[11] || (f[11] = (m) => V(br)(e.view))
|
|
2129
|
+
}, null, 512), [[g, "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)
|
|
2132
2132
|
], 32);
|
|
@@ -2248,7 +2248,7 @@ var Kl = {
|
|
|
2248
2248
|
const u = {
|
|
2249
2249
|
javascript: "JS",
|
|
2250
2250
|
typescript: "TS"
|
|
2251
|
-
}, h = G(() => u[r.language] || r.language.toUpperCase()), f = G(() => r.formatting && !r.singleLine && Jl(r.language)),
|
|
2251
|
+
}, h = G(() => u[r.language] || r.language.toUpperCase()), f = G(() => r.formatting && !r.singleLine && Jl(r.language)), g = G(() => r.toolbarMode ?? "bar"), m = G(() => !r.terminal && g.value === "hover"), ue = G(() => a.value || i.value || !!(o.value || s.value)), ee = G(() => !r.singleLine && g.value !== "none"), z = new ft(), tt = new ft(), rt = Ge.define();
|
|
2252
2252
|
let k, nt = 0, Be = !1;
|
|
2253
2253
|
async function lt() {
|
|
2254
2254
|
s.value = "";
|
|
@@ -2291,20 +2291,20 @@ var Kl = {
|
|
|
2291
2291
|
};
|
|
2292
2292
|
}
|
|
2293
2293
|
function at() {
|
|
2294
|
-
const p = r.singleLine ? "0" : "0.
|
|
2294
|
+
const p = r.singleLine ? "0" : "0.7rem";
|
|
2295
2295
|
return [
|
|
2296
2296
|
r.dark ? kl : Lr,
|
|
2297
2297
|
r.lineNumbers && !r.singleLine ? Nr() : [],
|
|
2298
2298
|
r.folding && !r.singleLine ? [Ur(), ht.of(Jr)] : [],
|
|
2299
|
-
r.wrap ?
|
|
2299
|
+
r.wrap ? v.lineWrapping : [],
|
|
2300
2300
|
me.readOnly.of(r.readonly || r.disabled),
|
|
2301
|
-
|
|
2302
|
-
|
|
2301
|
+
v.editable.of(!r.readonly && !r.disabled),
|
|
2302
|
+
v.contentAttributes.of({
|
|
2303
2303
|
"aria-label": r.label || "Code editor",
|
|
2304
2304
|
"aria-disabled": String(r.disabled)
|
|
2305
2305
|
}),
|
|
2306
2306
|
Vr(r.placeholder),
|
|
2307
|
-
|
|
2307
|
+
v.theme({
|
|
2308
2308
|
"&": {
|
|
2309
2309
|
height: "100%",
|
|
2310
2310
|
width: "100%",
|
|
@@ -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",
|
|
@@ -2382,7 +2403,7 @@ var Kl = {
|
|
|
2382
2403
|
}
|
|
2383
2404
|
}
|
|
2384
2405
|
return en(() => {
|
|
2385
|
-
k = new
|
|
2406
|
+
k = new v({
|
|
2386
2407
|
parent: l.value,
|
|
2387
2408
|
state: me.create({
|
|
2388
2409
|
doc: r.modelValue,
|
|
@@ -2400,12 +2421,12 @@ var Kl = {
|
|
|
2400
2421
|
run: () => r.singleLine
|
|
2401
2422
|
},
|
|
2402
2423
|
...pl,
|
|
2403
|
-
...
|
|
2424
|
+
...Sn,
|
|
2404
2425
|
...ql,
|
|
2405
2426
|
gl
|
|
2406
2427
|
]),
|
|
2407
2428
|
me.transactionFilter.of((p) => r.singleLine && p.docChanged && p.newDoc.lines > 1 ? [] : p),
|
|
2408
|
-
|
|
2429
|
+
v.updateListener.of((p) => {
|
|
2409
2430
|
p.docChanged && !p.transactions.some((x) => x.annotation(rt)) && n("update:modelValue", p.state.doc.toString()), p.focusChanged && (p.view.hasFocus ? n("focus") : n("blur"));
|
|
2410
2431
|
})
|
|
2411
2432
|
]
|
|
@@ -2441,17 +2462,18 @@ var Kl = {
|
|
|
2441
2462
|
terminal: e.terminal,
|
|
2442
2463
|
"toolbar-hover": m.value,
|
|
2443
2464
|
"toolbar-pinned": ue.value,
|
|
2465
|
+
"toolbar-none": g.value === "none",
|
|
2444
2466
|
"single-line": e.singleLine
|
|
2445
2467
|
}]) }, [
|
|
2446
|
-
e.terminal && ee.value ? (A(), F("div", Kl, [
|
|
2468
|
+
e.terminal && ee.value ? (A(), F("div", Kl, [S("div", Ql, [x[0] || (x[0] = S("span", {
|
|
2447
2469
|
class: "inline-flex gap-025 flex-shrink-0",
|
|
2448
2470
|
"aria-hidden": "true"
|
|
2449
2471
|
}, [
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
], -1)), e.title ? (A(), F("span", Xl, $(e.title), 1)) : P("", !0)]),
|
|
2454
|
-
|
|
2472
|
+
S("span", { class: "square-10 round bg-red" }),
|
|
2473
|
+
S("span", { class: "square-10 round bg-yellow" }),
|
|
2474
|
+
S("span", { class: "square-10 round bg-green" })
|
|
2475
|
+
], -1)), e.title ? (A(), F("span", Xl, $(e.title), 1)) : P("", !0)]), S("div", Yl, [
|
|
2476
|
+
S("span", Zl, $(h.value), 1),
|
|
2455
2477
|
f.value ? M((A(), Ie(C, {
|
|
2456
2478
|
key: 0,
|
|
2457
2479
|
thin: "",
|
|
@@ -2471,8 +2493,8 @@ var Kl = {
|
|
|
2471
2493
|
"aria-label": i.value ? "Copied!" : "Copy code",
|
|
2472
2494
|
onClick: lt
|
|
2473
2495
|
}, 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)),
|
|
2496
|
+
S("span", ea, $(i.value ? "Copied to clipboard" : ""), 1)
|
|
2497
|
+
])])) : 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
2498
|
e.label && !m.value ? (A(), F("span", aa, $(h.value), 1)) : P("", !0),
|
|
2477
2499
|
f.value ? M((A(), Ie(C, {
|
|
2478
2500
|
key: 1,
|
|
@@ -2493,10 +2515,10 @@ var Kl = {
|
|
|
2493
2515
|
"aria-label": i.value ? "Copied!" : "Copy code",
|
|
2494
2516
|
onClick: lt
|
|
2495
2517
|
}, null, 8, ["icon", "aria-label"]), [[O, i.value ? "Copied!" : "Copy code"]]),
|
|
2496
|
-
|
|
2518
|
+
S("span", oa, $(i.value ? "Copied to clipboard" : ""), 1)
|
|
2497
2519
|
])])) : P("", !0),
|
|
2498
2520
|
o.value || s.value ? (A(), F("span", ia, $(o.value || s.value), 1)) : P("", !0),
|
|
2499
|
-
|
|
2521
|
+
S("div", {
|
|
2500
2522
|
ref_key: "host",
|
|
2501
2523
|
ref: l,
|
|
2502
2524
|
class: "structured-editor-host"
|
|
@@ -2504,7 +2526,7 @@ var Kl = {
|
|
|
2504
2526
|
], 2);
|
|
2505
2527
|
};
|
|
2506
2528
|
}
|
|
2507
|
-
}), da = /* @__PURE__ */ Lt(sa, [["__scopeId", "data-v-
|
|
2529
|
+
}), da = /* @__PURE__ */ Lt(sa, [["__scopeId", "data-v-48eb82db"]]);
|
|
2508
2530
|
export {
|
|
2509
2531
|
da as default
|
|
2510
2532
|
};
|