@bagelink/vue 1.21.50 → 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.
Files changed (38) hide show
  1. package/LICENSE +21 -0
  2. package/dist/{StructuredEditor-BszsyuHR.js → StructuredEditor-BUMTloTj.js} +81 -60
  3. package/dist/{StructuredEditor-Br8oBdPt.cjs → StructuredEditor-BXzmkBXf.cjs} +2 -2
  4. package/dist/StructuredEditor.css +1 -1
  5. package/dist/components/Btn.vue.d.ts.map +1 -1
  6. package/dist/components/dataTable/DataTable.vue.d.ts.map +1 -1
  7. package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts.map +1 -1
  8. package/dist/components/form/inputs/CodeEditor/StructuredEditor.vue.d.ts.map +1 -1
  9. package/dist/components/layout/AppSidebar.vue.d.ts.map +1 -1
  10. package/dist/components/layout/SidebarNavCaption.vue.d.ts.map +1 -1
  11. package/dist/core.css +3 -3
  12. package/dist/i18n/index.d.ts +24 -0
  13. package/dist/i18n/index.d.ts.map +1 -1
  14. package/dist/index.cjs +1 -1
  15. package/dist/index.mjs +1 -1
  16. package/dist/{src-DaSKch48.js → src-Dtl16wMC.js} +7817 -7788
  17. package/dist/src-fl0F9GQT.cjs +764 -0
  18. package/dist/src.css +1 -1
  19. package/dist/style.css +3 -3
  20. package/dist/types/dataTable.d.ts +2 -2
  21. package/dist/types/dataTable.d.ts.map +1 -1
  22. package/package.json +116 -117
  23. package/src/components/Btn.vue +8 -0
  24. package/src/components/Icon/Icon.vue +1 -1
  25. package/src/components/dataTable/DataTable.vue +13 -4
  26. package/src/components/form/inputs/CodeEditor/Index.vue +47 -0
  27. package/src/components/form/inputs/CodeEditor/StructuredEditor.vue +32 -2
  28. package/src/components/layout/AppSidebar.vue +3 -1
  29. package/src/components/layout/SidebarNavCaption.vue +37 -16
  30. package/src/i18n/locales/en.json +4 -0
  31. package/src/i18n/locales/es.json +4 -0
  32. package/src/i18n/locales/fr.json +4 -0
  33. package/src/i18n/locales/he.json +4 -0
  34. package/src/i18n/locales/it.json +4 -0
  35. package/src/i18n/locales/ru.json +4 -0
  36. package/src/styles/core.css +1 -1
  37. package/src/types/dataTable.ts +2 -2
  38. package/dist/src-Dlh5iQ0R.cjs +0 -764
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Bagel Studio
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,6 +1,6 @@
1
- import { Fa as Lt, Xr as ut, en as wr, ja as C } from "./src-DaSKch48.js";
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 b, 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";
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 Sn = /^(input\.type|delete)($|\.)/, ae = class ne {
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 || Sn.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);
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 bn = [
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 S(e) {
373
+ function b(e) {
374
374
  return e.textDirectionAt(e.state.selection.main.head) == Tr.LTR;
375
375
  }
376
- var Ht = (e) => _t(e, !S(e)), Ut = (e) => _t(e, S(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, !S(e)), An = (e) => zt(e, S(e)), fa = typeof Intl < "u" && Intl.Segmenter ? /* @__PURE__ */ new Intl.Segmenter(void 0, { granularity: "word" }) : null;
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, !S(e))), Bn = (e) => I(e, (t) => Me(e.state, t, S(e)));
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, !S(e))), Rn = (e) => I(e, (t) => _(e, t, S(e))), Fn = (e) => I(e, (t) => e.moveToLineBoundary(t, !1, !1)), Tn = (e) => I(e, (t) => e.moveToLineBoundary(t, !0, !1));
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, !S(e)), Zt = (e) => Xt(e, S(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, !S(e)), qn = (e) => er(e, S(e)), Nn = (e) => {
471
- let t = !S(e);
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 = S(e);
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 = !S(e);
485
+ let t = !b(e);
486
486
  return R(e, t, (r) => _(e, r, t));
487
487
  }, Hn = (e) => {
488
- let t = S(e);
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), St = ({ state: e, dispatch: t }) => (t(T(e, {
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 bt = /* @__PURE__ */ fr(!1), ul = /* @__PURE__ */ fr(!0);
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: St
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: St
973
+ shift: bt
974
974
  },
975
975
  {
976
976
  key: "Enter",
977
- run: bt,
978
- shift: bt
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 Sl(e) {
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 bl = (e) => {
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 || Sl(this.search)), this.unquoted = this.unquote(this.search), this.wholeWord = !!e.wholeWord, this.test = e.test;
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(Se(e).create(), null);
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 : Se(e);
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
- }), Sr = /* @__PURE__ */ ce((e, { query: t }) => {
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 Se(e, t) {
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 br(e) {
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 = br(e);
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 = br(e);
1749
+ let r = Sr(e);
1750
1750
  if (r && r != e.root.activeElement) {
1751
- let n = Se(e.state, t.query.spec);
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(Se(e.state, t.query.spec)) : ie.appendConfig.of(We)] });
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
- }, be = (e) => {
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: be,
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: bl
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", () => Sr(e), [L(e, "replace all")])
1864
+ r("replaceAll", () => br(e), [L(e, "replace all")])
1865
1865
  ],
1866
1866
  D("button", {
1867
1867
  name: "close",
1868
- onclick: () => be(e),
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(), be(t.view), t.view.focus()) : h.key === "Enter" && (h.preventDefault(), h.shiftKey ? Y(t.view) : X(t.view));
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
- b("div", Vl, [
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
- b("div", Wl, [B(ut, {
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"]), b("div", _l, [
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(be)(e.view), e.view.focus();
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(Sr)(e.view))
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
- overflow: "auto",
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
- ...bn,
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, [b("div", Ql, [x[0] || (x[0] = b("span", {
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
- b("span", { class: "square-10 round bg-red" }),
2451
- b("span", { class: "square-10 round bg-yellow" }),
2452
- b("span", { class: "square-10 round bg-green" })
2453
- ], -1)), e.title ? (A(), F("span", Xl, $(e.title), 1)) : P("", !0)]), b("div", Yl, [
2454
- b("span", Zl, $(h.value), 1),
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
- b("span", ea, $(i.value ? "Copied to clipboard" : ""), 1)
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)), b("div", la, [
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
- b("span", oa, $(i.value ? "Copied to clipboard" : ""), 1)
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
- b("div", {
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-42f8803d"]]);
2528
+ }), da = /* @__PURE__ */ Lt(sa, [["__scopeId", "data-v-33d187ba"]]);
2508
2529
  export {
2509
2530
  da as default
2510
2531
  };