mhz-ui 1.0.47 → 1.0.48
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/UiEditor/UiEditor.js +151 -151
- package/dist/UiTable/UiTable.js +1 -1
- package/package.json +21 -21
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./UiEditor.css";
|
|
2
|
-
import { defineComponent as gn, ref as ts, onMounted as ns, onBeforeUnmount as
|
|
2
|
+
import { defineComponent as gn, ref as ts, onMounted as ns, onBeforeUnmount as Un, h as At, getCurrentInstance as pc, watchEffect as mc, nextTick as gc, unref as Ai, Teleport as yc, shallowRef as bc, reactive as vc, markRaw as kc, customRef as xc, computed as wc, watch as Sc, openBlock as Ps, createElementBlock as Rs, normalizeClass as dr, createElementVNode as Bs, Fragment as Mc, renderList as Oc, toDisplayString as Cc, createVNode as Tc } from "vue";
|
|
3
3
|
import { _ as Ec } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
function Z(n) {
|
|
5
5
|
this.content = n;
|
|
@@ -2278,7 +2278,7 @@ class hr {
|
|
|
2278
2278
|
applyPending(e) {
|
|
2279
2279
|
for (let t = 0, r = this.pendingMarks; t < r.length; t++) {
|
|
2280
2280
|
let i = r[t];
|
|
2281
|
-
(this.type ? this.type.allowsMarkType(i.type) :
|
|
2281
|
+
(this.type ? this.type.allowsMarkType(i.type) : Uc(i.type, e)) && !i.isInSet(this.activeMarks) && (this.activeMarks = i.addToSet(this.activeMarks), this.pendingMarks = i.removeFromSet(this.pendingMarks));
|
|
2282
2282
|
}
|
|
2283
2283
|
}
|
|
2284
2284
|
inlineContext(e) {
|
|
@@ -2304,7 +2304,7 @@ class Hs {
|
|
|
2304
2304
|
let r = e.getAttribute("style");
|
|
2305
2305
|
if (!r)
|
|
2306
2306
|
return t();
|
|
2307
|
-
let i = this.readStyles(
|
|
2307
|
+
let i = this.readStyles(_c(r));
|
|
2308
2308
|
if (!i)
|
|
2309
2309
|
return;
|
|
2310
2310
|
let [s, o] = i, l = this.top;
|
|
@@ -2578,7 +2578,7 @@ function Kc(n) {
|
|
|
2578
2578
|
function Jc(n, e) {
|
|
2579
2579
|
return (n.matches || n.msMatchesSelector || n.webkitMatchesSelector || n.mozMatchesSelector).call(n, e);
|
|
2580
2580
|
}
|
|
2581
|
-
function
|
|
2581
|
+
function _c(n) {
|
|
2582
2582
|
let e = /\s*([\w-]+)\s*:\s*([^;]+)/g, t, r = [];
|
|
2583
2583
|
for (; t = e.exec(n); )
|
|
2584
2584
|
r.push(t[1], t[2].trim());
|
|
@@ -2590,7 +2590,7 @@ function js(n) {
|
|
|
2590
2590
|
e[t] = n[t];
|
|
2591
2591
|
return e;
|
|
2592
2592
|
}
|
|
2593
|
-
function
|
|
2593
|
+
function Uc(n, e) {
|
|
2594
2594
|
let t = e.schema.nodes;
|
|
2595
2595
|
for (let r in t) {
|
|
2596
2596
|
let i = t[r];
|
|
@@ -3257,7 +3257,7 @@ class on extends se {
|
|
|
3257
3257
|
}
|
|
3258
3258
|
}
|
|
3259
3259
|
se.jsonID("removeNodeMark", on);
|
|
3260
|
-
class
|
|
3260
|
+
class _ extends se {
|
|
3261
3261
|
/**
|
|
3262
3262
|
The given `slice` should fit the 'gap' between `from` and
|
|
3263
3263
|
`to`—the depths must line up, and the surrounding nodes must be
|
|
@@ -3277,21 +3277,21 @@ class U extends se {
|
|
|
3277
3277
|
return new be([this.from, this.to - this.from, this.slice.size]);
|
|
3278
3278
|
}
|
|
3279
3279
|
invert(e) {
|
|
3280
|
-
return new
|
|
3280
|
+
return new _(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
|
|
3281
3281
|
}
|
|
3282
3282
|
map(e) {
|
|
3283
3283
|
let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
|
|
3284
|
-
return t.deletedAcross && r.deletedAcross ? null : new
|
|
3284
|
+
return t.deletedAcross && r.deletedAcross ? null : new _(t.pos, Math.max(t.pos, r.pos), this.slice);
|
|
3285
3285
|
}
|
|
3286
3286
|
merge(e) {
|
|
3287
|
-
if (!(e instanceof
|
|
3287
|
+
if (!(e instanceof _) || e.structure || this.structure)
|
|
3288
3288
|
return null;
|
|
3289
3289
|
if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
|
|
3290
3290
|
let t = this.slice.size + e.slice.size == 0 ? S.empty : new S(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
|
|
3291
|
-
return new
|
|
3291
|
+
return new _(this.from, this.to + (e.to - e.from), t, this.structure);
|
|
3292
3292
|
} else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
|
|
3293
3293
|
let t = this.slice.size + e.slice.size == 0 ? S.empty : new S(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
|
|
3294
|
-
return new
|
|
3294
|
+
return new _(e.from, this.to, t, this.structure);
|
|
3295
3295
|
} else
|
|
3296
3296
|
return null;
|
|
3297
3297
|
}
|
|
@@ -3305,11 +3305,11 @@ class U extends se {
|
|
|
3305
3305
|
static fromJSON(e, t) {
|
|
3306
3306
|
if (typeof t.from != "number" || typeof t.to != "number")
|
|
3307
3307
|
throw new RangeError("Invalid input for ReplaceStep.fromJSON");
|
|
3308
|
-
return new
|
|
3308
|
+
return new _(t.from, t.to, S.fromJSON(e, t.slice), !!t.structure);
|
|
3309
3309
|
}
|
|
3310
3310
|
}
|
|
3311
|
-
se.jsonID("replace",
|
|
3312
|
-
class
|
|
3311
|
+
se.jsonID("replace", _);
|
|
3312
|
+
class U extends se {
|
|
3313
3313
|
/**
|
|
3314
3314
|
Create a replace-around step with the given range and gap.
|
|
3315
3315
|
`insert` should be the point in the slice into which the content
|
|
@@ -3340,11 +3340,11 @@ class _ extends se {
|
|
|
3340
3340
|
}
|
|
3341
3341
|
invert(e) {
|
|
3342
3342
|
let t = this.gapTo - this.gapFrom;
|
|
3343
|
-
return new
|
|
3343
|
+
return new U(this.from, this.from + this.slice.size + t, this.from + this.insert, this.from + this.insert + t, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
|
|
3344
3344
|
}
|
|
3345
3345
|
map(e) {
|
|
3346
3346
|
let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1), i = e.map(this.gapFrom, -1), s = e.map(this.gapTo, 1);
|
|
3347
|
-
return t.deletedAcross && r.deletedAcross || i < t.pos || s > r.pos ? null : new
|
|
3347
|
+
return t.deletedAcross && r.deletedAcross || i < t.pos || s > r.pos ? null : new U(t.pos, r.pos, i, s, this.slice, this.insert, this.structure);
|
|
3348
3348
|
}
|
|
3349
3349
|
toJSON() {
|
|
3350
3350
|
let e = {
|
|
@@ -3363,10 +3363,10 @@ class _ extends se {
|
|
|
3363
3363
|
static fromJSON(e, t) {
|
|
3364
3364
|
if (typeof t.from != "number" || typeof t.to != "number" || typeof t.gapFrom != "number" || typeof t.gapTo != "number" || typeof t.insert != "number")
|
|
3365
3365
|
throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
|
|
3366
|
-
return new
|
|
3366
|
+
return new U(t.from, t.to, t.gapFrom, t.gapTo, S.fromJSON(e, t.slice), t.insert, !!t.structure);
|
|
3367
3367
|
}
|
|
3368
3368
|
}
|
|
3369
|
-
se.jsonID("replaceAround",
|
|
3369
|
+
se.jsonID("replaceAround", U);
|
|
3370
3370
|
function Ri(n, e, t) {
|
|
3371
3371
|
let r = n.resolve(e), i = t - e, s = r.depth;
|
|
3372
3372
|
for (; i > 0 && s > 0 && r.indexAfter(s) == r.node(s).childCount; )
|
|
@@ -3426,7 +3426,7 @@ function eu(n, e, t, r = t.contentMatch) {
|
|
|
3426
3426
|
for (let l = 0; l < i.childCount; l++) {
|
|
3427
3427
|
let a = i.child(l), c = o + a.nodeSize, u = r.matchType(a.type);
|
|
3428
3428
|
if (!u)
|
|
3429
|
-
s.push(new
|
|
3429
|
+
s.push(new _(o, c, S.empty));
|
|
3430
3430
|
else {
|
|
3431
3431
|
r = u;
|
|
3432
3432
|
for (let d = 0; d < a.marks.length; d++)
|
|
@@ -3434,7 +3434,7 @@ function eu(n, e, t, r = t.contentMatch) {
|
|
|
3434
3434
|
if (a.isText && !t.spec.code) {
|
|
3435
3435
|
let d, f = /\r?\n|\r/g, h;
|
|
3436
3436
|
for (; d = f.exec(a.text); )
|
|
3437
|
-
h || (h = new S(x.from(t.schema.text(" ", t.allowedMarks(a.marks))), 0, 0)), s.push(new
|
|
3437
|
+
h || (h = new S(x.from(t.schema.text(" ", t.allowedMarks(a.marks))), 0, 0)), s.push(new _(o + d.index, o + d.index + d[0].length, h));
|
|
3438
3438
|
}
|
|
3439
3439
|
}
|
|
3440
3440
|
o = c;
|
|
@@ -3467,7 +3467,7 @@ function nu(n, e, t) {
|
|
|
3467
3467
|
let f = x.empty, h = 0;
|
|
3468
3468
|
for (let p = s, m = !1; p > t; p--)
|
|
3469
3469
|
m || i.after(p + 1) < i.end(p) ? (m = !0, f = x.from(i.node(p).copy(f)), h++) : c++;
|
|
3470
|
-
n.step(new
|
|
3470
|
+
n.step(new U(a, c, o, l, new S(u.append(f), d, h), u.size - d, !0));
|
|
3471
3471
|
}
|
|
3472
3472
|
function is(n, e, t = null, r = n) {
|
|
3473
3473
|
let i = ru(n, e), s = i && iu(r, e);
|
|
@@ -3503,7 +3503,7 @@ function su(n, e, t) {
|
|
|
3503
3503
|
r = x.from(t[o].type.create(t[o].attrs, r));
|
|
3504
3504
|
}
|
|
3505
3505
|
let i = e.start, s = e.end;
|
|
3506
|
-
n.step(new
|
|
3506
|
+
n.step(new U(i, s, i, s, new S(r, 0, 0), t.length, !0));
|
|
3507
3507
|
}
|
|
3508
3508
|
function ou(n, e, t, r, i) {
|
|
3509
3509
|
if (!r.isTextblock)
|
|
@@ -3513,7 +3513,7 @@ function ou(n, e, t, r, i) {
|
|
|
3513
3513
|
if (o.isTextblock && !o.hasMarkup(r, i) && lu(n.doc, n.mapping.slice(s).map(l), r)) {
|
|
3514
3514
|
n.clearIncompatible(n.mapping.slice(s).map(l, 1), r);
|
|
3515
3515
|
let a = n.mapping.slice(s), c = a.map(l, 1), u = a.map(l + o.nodeSize, 1);
|
|
3516
|
-
return n.step(new
|
|
3516
|
+
return n.step(new U(c, u, c + 1, u - 1, new S(x.from(r.create(i, null, o.marks)), 0, 0), 1, !0)), !1;
|
|
3517
3517
|
}
|
|
3518
3518
|
});
|
|
3519
3519
|
}
|
|
@@ -3531,7 +3531,7 @@ function au(n, e, t, r, i) {
|
|
|
3531
3531
|
return n.replaceWith(e, e + s.nodeSize, o);
|
|
3532
3532
|
if (!t.validContent(s.content))
|
|
3533
3533
|
throw new RangeError("Invalid content for node type " + t.name);
|
|
3534
|
-
n.step(new
|
|
3534
|
+
n.step(new U(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new S(x.from(o), 0, 0), 1, !0));
|
|
3535
3535
|
}
|
|
3536
3536
|
function tn(n, e, t = 1, r) {
|
|
3537
3537
|
let i = n.resolve(e), s = i.depth - t, o = r && r[r.length - 1] || i.parent;
|
|
@@ -3557,7 +3557,7 @@ function cu(n, e, t = 1, r) {
|
|
|
3557
3557
|
let u = r && r[c];
|
|
3558
3558
|
o = x.from(u ? u.type.create(u.attrs, o) : i.node(l).copy(o));
|
|
3559
3559
|
}
|
|
3560
|
-
n.step(new
|
|
3560
|
+
n.step(new _(e, e, new S(s.append(o), t, t), !0));
|
|
3561
3561
|
}
|
|
3562
3562
|
function gt(n, e) {
|
|
3563
3563
|
let t = n.resolve(e), r = t.index();
|
|
@@ -3578,7 +3578,7 @@ function $r(n, e, t = -1) {
|
|
|
3578
3578
|
}
|
|
3579
3579
|
}
|
|
3580
3580
|
function uu(n, e, t) {
|
|
3581
|
-
let r = new
|
|
3581
|
+
let r = new _(e - t, e + t, S.empty, !0);
|
|
3582
3582
|
n.step(r);
|
|
3583
3583
|
}
|
|
3584
3584
|
function du(n, e, t) {
|
|
@@ -3628,7 +3628,7 @@ function Hr(n, e, t = e, r = S.empty) {
|
|
|
3628
3628
|
if (e == t && !r.size)
|
|
3629
3629
|
return null;
|
|
3630
3630
|
let i = n.resolve(e), s = n.resolve(t);
|
|
3631
|
-
return Rl(i, s, r) ? new
|
|
3631
|
+
return Rl(i, s, r) ? new _(e, t, r) : new fu(i, s, r).fit();
|
|
3632
3632
|
}
|
|
3633
3633
|
function Rl(n, e, t) {
|
|
3634
3634
|
return !t.openStart && !t.openEnd && n.start() == e.start() && n.parent.canReplace(n.index(), e.index(), t.content);
|
|
@@ -3661,7 +3661,7 @@ class fu {
|
|
|
3661
3661
|
for (; o && l && s.childCount == 1; )
|
|
3662
3662
|
s = s.firstChild.content, o--, l--;
|
|
3663
3663
|
let a = new S(s, o, l);
|
|
3664
|
-
return e > -1 ? new
|
|
3664
|
+
return e > -1 ? new U(r.pos, e, this.$to.pos, this.$to.end(), a, t) : a.size || r.pos != this.$to.pos ? new _(r.pos, i.pos, a) : null;
|
|
3665
3665
|
}
|
|
3666
3666
|
// Find a position on the start spine of `this.unplaced` that has
|
|
3667
3667
|
// content that can be moved somewhere on the frontier. Returns two
|
|
@@ -3819,7 +3819,7 @@ function mu(n, e, t, r) {
|
|
|
3819
3819
|
return n.deleteRange(e, t);
|
|
3820
3820
|
let i = n.doc.resolve(e), s = n.doc.resolve(t);
|
|
3821
3821
|
if (Rl(i, s, r))
|
|
3822
|
-
return n.step(new
|
|
3822
|
+
return n.step(new _(e, t, r));
|
|
3823
3823
|
let o = zl(i, n.doc.resolve(t));
|
|
3824
3824
|
o[o.length - 1] == 0 && o.pop();
|
|
3825
3825
|
let l = -(i.depth + 1);
|
|
@@ -4277,7 +4277,7 @@ class R {
|
|
|
4277
4277
|
let s = e.steps.length, o = this.ranges;
|
|
4278
4278
|
for (let l = 0; l < o.length; l++) {
|
|
4279
4279
|
let { $from: a, $to: c } = o[l], u = e.mapping.slice(s);
|
|
4280
|
-
e.replaceRange(u.map(a.pos), u.map(c.pos), l ? S.empty : t), l == 0 &&
|
|
4280
|
+
e.replaceRange(u.map(a.pos), u.map(c.pos), l ? S.empty : t), l == 0 && Us(e, s, (r ? r.isInline : i && i.isTextblock) ? -1 : 1);
|
|
4281
4281
|
}
|
|
4282
4282
|
}
|
|
4283
4283
|
/**
|
|
@@ -4288,7 +4288,7 @@ class R {
|
|
|
4288
4288
|
let r = e.steps.length, i = this.ranges;
|
|
4289
4289
|
for (let s = 0; s < i.length; s++) {
|
|
4290
4290
|
let { $from: o, $to: l } = i[s], a = e.mapping.slice(r), c = a.map(o.pos), u = a.map(l.pos);
|
|
4291
|
-
s ? e.deleteRange(c, u) : (e.replaceRangeWith(c, u, t),
|
|
4291
|
+
s ? e.deleteRange(c, u) : (e.replaceRangeWith(c, u, t), Us(e, r, t.isInline ? -1 : 1));
|
|
4292
4292
|
}
|
|
4293
4293
|
}
|
|
4294
4294
|
/**
|
|
@@ -4379,7 +4379,7 @@ class vu {
|
|
|
4379
4379
|
}
|
|
4380
4380
|
}
|
|
4381
4381
|
let Js = !1;
|
|
4382
|
-
function
|
|
4382
|
+
function _s(n) {
|
|
4383
4383
|
!Js && !n.parent.inlineContent && (Js = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + n.parent.type.name + ")"));
|
|
4384
4384
|
}
|
|
4385
4385
|
class I extends R {
|
|
@@ -4387,7 +4387,7 @@ class I extends R {
|
|
|
4387
4387
|
Construct a text selection between the given points.
|
|
4388
4388
|
*/
|
|
4389
4389
|
constructor(e, t = e) {
|
|
4390
|
-
|
|
4390
|
+
_s(e), _s(t), super(e, t);
|
|
4391
4391
|
}
|
|
4392
4392
|
/**
|
|
4393
4393
|
Returns a resolved position if this is a cursor selection (an
|
|
@@ -4587,12 +4587,12 @@ function Gt(n, e, t, r, i, s = !1) {
|
|
|
4587
4587
|
}
|
|
4588
4588
|
return null;
|
|
4589
4589
|
}
|
|
4590
|
-
function
|
|
4590
|
+
function Us(n, e, t) {
|
|
4591
4591
|
let r = n.steps.length - 1;
|
|
4592
4592
|
if (r < e)
|
|
4593
4593
|
return;
|
|
4594
4594
|
let i = n.steps[r];
|
|
4595
|
-
if (!(i instanceof
|
|
4595
|
+
if (!(i instanceof _ || i instanceof U))
|
|
4596
4596
|
return;
|
|
4597
4597
|
let s = n.mapping.maps[r], o;
|
|
4598
4598
|
s.forEach((l, a, c, u) => {
|
|
@@ -5453,7 +5453,7 @@ function Ju(n, e, t) {
|
|
|
5453
5453
|
});
|
|
5454
5454
|
}
|
|
5455
5455
|
let no = null, ro = null, io = !1;
|
|
5456
|
-
function
|
|
5456
|
+
function _u(n, e, t) {
|
|
5457
5457
|
return no == e && ro == t ? io : (no = e, ro = t, io = t == "up" || t == "down" ? qu(n, e, t) : Ju(n, e, t));
|
|
5458
5458
|
}
|
|
5459
5459
|
const Me = 0, so = 1, Tt = 2, We = 3;
|
|
@@ -5622,7 +5622,7 @@ class Xn {
|
|
|
5622
5622
|
let r = 0, i = 0;
|
|
5623
5623
|
for (let s = 0; r < this.children.length; r++) {
|
|
5624
5624
|
let o = this.children[r], l = s + o.size;
|
|
5625
|
-
if (l > e || o instanceof
|
|
5625
|
+
if (l > e || o instanceof Ul) {
|
|
5626
5626
|
i = e - s;
|
|
5627
5627
|
break;
|
|
5628
5628
|
}
|
|
@@ -5630,7 +5630,7 @@ class Xn {
|
|
|
5630
5630
|
}
|
|
5631
5631
|
if (i)
|
|
5632
5632
|
return this.children[r].domFromPos(i - this.children[r].border, t);
|
|
5633
|
-
for (let s; r && !(s = this.children[r - 1]).size && s instanceof
|
|
5633
|
+
for (let s; r && !(s = this.children[r - 1]).size && s instanceof _l && s.side >= 0; r--)
|
|
5634
5634
|
;
|
|
5635
5635
|
if (t <= 0) {
|
|
5636
5636
|
let s, o = !0;
|
|
@@ -5792,7 +5792,7 @@ class Xn {
|
|
|
5792
5792
|
return !1;
|
|
5793
5793
|
}
|
|
5794
5794
|
}
|
|
5795
|
-
class
|
|
5795
|
+
class _l extends Xn {
|
|
5796
5796
|
constructor(e, t, r, i) {
|
|
5797
5797
|
let s, o = t.type.toDOM;
|
|
5798
5798
|
if (typeof o == "function" && (o = o(r, () => {
|
|
@@ -5832,7 +5832,7 @@ class Ul extends Xn {
|
|
|
5832
5832
|
return this.widget.type.side;
|
|
5833
5833
|
}
|
|
5834
5834
|
}
|
|
5835
|
-
class
|
|
5835
|
+
class Uu extends Xn {
|
|
5836
5836
|
constructor(e, t, r, i) {
|
|
5837
5837
|
super(e, [], t, null), this.textDOM = r, this.text = i;
|
|
5838
5838
|
}
|
|
@@ -5977,7 +5977,7 @@ class ht extends Xn {
|
|
|
5977
5977
|
s.parentNode.removeChild(s.nextSibling);
|
|
5978
5978
|
s.pmViewDesc && (s.pmViewDesc = void 0);
|
|
5979
5979
|
}
|
|
5980
|
-
let o = new
|
|
5980
|
+
let o = new Uu(this, s, t, i);
|
|
5981
5981
|
e.input.compositionNodes.push(o), this.children = Hi(this.children, r, r + i.length, e, o);
|
|
5982
5982
|
}
|
|
5983
5983
|
// If this desc must be updated to match the given node decoration,
|
|
@@ -6054,7 +6054,7 @@ class qr extends ht {
|
|
|
6054
6054
|
return this.node.text == e;
|
|
6055
6055
|
}
|
|
6056
6056
|
}
|
|
6057
|
-
class
|
|
6057
|
+
class Ul extends Xn {
|
|
6058
6058
|
parseRule() {
|
|
6059
6059
|
return { ignore: !0 };
|
|
6060
6060
|
}
|
|
@@ -6317,7 +6317,7 @@ class Xu {
|
|
|
6317
6317
|
if (i && i.matchesWidget(e) && (e == i.widget || !i.widget.type.toDOM.parentNode))
|
|
6318
6318
|
this.index++;
|
|
6319
6319
|
else {
|
|
6320
|
-
let s = new
|
|
6320
|
+
let s = new _l(this.top, e, t, r);
|
|
6321
6321
|
this.top.children.splice(this.index++, 0, s), this.changed = !0;
|
|
6322
6322
|
}
|
|
6323
6323
|
}
|
|
@@ -6336,7 +6336,7 @@ class Xu {
|
|
|
6336
6336
|
else {
|
|
6337
6337
|
let r = document.createElement(e);
|
|
6338
6338
|
e == "IMG" && (r.className = "ProseMirror-separator", r.alt = ""), e == "BR" && (r.className = "ProseMirror-trailingBreak");
|
|
6339
|
-
let i = new
|
|
6339
|
+
let i = new Ul(this.top, [], r, null);
|
|
6340
6340
|
t != this.top ? t.children.push(i) : t.children.splice(this.index++, 0, i), this.changed = !0;
|
|
6341
6341
|
}
|
|
6342
6342
|
}
|
|
@@ -6618,7 +6618,7 @@ function In(n, e) {
|
|
|
6618
6618
|
let t = n.pmViewDesc;
|
|
6619
6619
|
return t && t.size == 0 && (e < 0 || n.nextSibling || n.nodeName != "BR");
|
|
6620
6620
|
}
|
|
6621
|
-
function
|
|
6621
|
+
function _t(n, e) {
|
|
6622
6622
|
return e < 0 ? od(n) : ld(n);
|
|
6623
6623
|
}
|
|
6624
6624
|
function od(n) {
|
|
@@ -6804,22 +6804,22 @@ function dd(n) {
|
|
|
6804
6804
|
function fd(n, e) {
|
|
6805
6805
|
let t = e.keyCode, r = dd(e);
|
|
6806
6806
|
if (t == 8 || we && t == 72 && r == "c")
|
|
6807
|
-
return yo(n, -1) ||
|
|
6807
|
+
return yo(n, -1) || _t(n, -1);
|
|
6808
6808
|
if (t == 46 && !e.shiftKey || we && t == 68 && r == "c")
|
|
6809
|
-
return yo(n, 1) ||
|
|
6809
|
+
return yo(n, 1) || _t(n, 1);
|
|
6810
6810
|
if (t == 13 || t == 27)
|
|
6811
6811
|
return !0;
|
|
6812
6812
|
if (t == 37 || we && t == 66 && r == "c") {
|
|
6813
6813
|
let i = t == 37 ? mo(n, n.state.selection.from) == "ltr" ? -1 : 1 : -1;
|
|
6814
|
-
return po(n, i, r) ||
|
|
6814
|
+
return po(n, i, r) || _t(n, i);
|
|
6815
6815
|
} else if (t == 39 || we && t == 70 && r == "c") {
|
|
6816
6816
|
let i = t == 39 ? mo(n, n.state.selection.from) == "ltr" ? 1 : -1 : 1;
|
|
6817
|
-
return po(n, i, r) ||
|
|
6817
|
+
return po(n, i, r) || _t(n, i);
|
|
6818
6818
|
} else {
|
|
6819
6819
|
if (t == 38 || we && t == 80 && r == "c")
|
|
6820
|
-
return go(n, -1, r) ||
|
|
6820
|
+
return go(n, -1, r) || _t(n, -1);
|
|
6821
6821
|
if (t == 40 || we && t == 78 && r == "c")
|
|
6822
|
-
return ud(n) || go(n, 1, r) ||
|
|
6822
|
+
return ud(n) || go(n, 1, r) || _t(n, 1);
|
|
6823
6823
|
if (r == (we ? "m" : "c") && (t == 66 || t == 73 || t == 89 || t == 90))
|
|
6824
6824
|
return !0;
|
|
6825
6825
|
}
|
|
@@ -8125,7 +8125,7 @@ function Jd(n, e, t) {
|
|
|
8125
8125
|
to: s,
|
|
8126
8126
|
preserveWhitespace: h.parent.type.whitespace == "pre" ? "full" : !0,
|
|
8127
8127
|
findPositions: c,
|
|
8128
|
-
ruleFromNode:
|
|
8128
|
+
ruleFromNode: _d,
|
|
8129
8129
|
context: h
|
|
8130
8130
|
});
|
|
8131
8131
|
if (c && c[0].pos != null) {
|
|
@@ -8134,7 +8134,7 @@ function Jd(n, e, t) {
|
|
|
8134
8134
|
}
|
|
8135
8135
|
return { doc: m, sel: p, from: o, to: l };
|
|
8136
8136
|
}
|
|
8137
|
-
function
|
|
8137
|
+
function _d(n) {
|
|
8138
8138
|
let e = n.pmViewDesc;
|
|
8139
8139
|
if (e)
|
|
8140
8140
|
return e.parseRule();
|
|
@@ -8148,7 +8148,7 @@ function Ud(n) {
|
|
|
8148
8148
|
return { ignore: !0 };
|
|
8149
8149
|
return null;
|
|
8150
8150
|
}
|
|
8151
|
-
const
|
|
8151
|
+
const Ud = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;
|
|
8152
8152
|
function Gd(n, e, t, r, i) {
|
|
8153
8153
|
let s = n.input.compositionPendingChanges || (n.composing ? n.input.compositionID : 0);
|
|
8154
8154
|
if (n.input.compositionPendingChanges = 0, e < 0) {
|
|
@@ -8166,7 +8166,7 @@ function Gd(n, e, t, r, i) {
|
|
|
8166
8166
|
let a = n.state.selection, c = Jd(n, e, t), u = n.state.doc, d = u.slice(c.from, c.to), f, h;
|
|
8167
8167
|
n.input.lastKeyCode === 8 && Date.now() - 100 < n.input.lastKeyCodeTime ? (f = n.state.selection.to, h = "end") : (f = n.state.selection.from, h = "start"), n.input.lastKeyCode = null;
|
|
8168
8168
|
let p = Zd(d.content, c.doc.content, c.from, f, h);
|
|
8169
|
-
if ((an && n.input.lastIOSEnter > Date.now() - 225 || Ae) && i.some((E) => E.nodeType == 1 && !
|
|
8169
|
+
if ((an && n.input.lastIOSEnter > Date.now() - 225 || Ae) && i.some((E) => E.nodeType == 1 && !Ud.test(E.nodeName)) && (!p || p.endA >= p.endB) && n.someProp("handleKeyDown", (E) => E(n, Ot(13, "Enter")))) {
|
|
8170
8170
|
n.input.lastIOSEnter = 0;
|
|
8171
8171
|
return;
|
|
8172
8172
|
}
|
|
@@ -8562,7 +8562,7 @@ class Qd {
|
|
|
8562
8562
|
pass a different state.
|
|
8563
8563
|
*/
|
|
8564
8564
|
endOfTextblock(e, t) {
|
|
8565
|
-
return
|
|
8565
|
+
return _u(this, t || this.state, e);
|
|
8566
8566
|
}
|
|
8567
8567
|
/**
|
|
8568
8568
|
Run the editor's paste logic with the given HTML string. The
|
|
@@ -8877,7 +8877,7 @@ function xa(n, e, t) {
|
|
|
8877
8877
|
l = u;
|
|
8878
8878
|
}
|
|
8879
8879
|
let c = Hr(n.doc, s, a, S.empty);
|
|
8880
|
-
if (!c || c.from != s || c instanceof
|
|
8880
|
+
if (!c || c.from != s || c instanceof _ && c.slice.size >= a - s)
|
|
8881
8881
|
return !1;
|
|
8882
8882
|
if (t) {
|
|
8883
8883
|
let u = n.tr.step(c);
|
|
@@ -9058,7 +9058,7 @@ function Ma(n, e, t) {
|
|
|
9058
9058
|
for (let m = s.length - 1; m >= 0; m--)
|
|
9059
9059
|
f = x.from(s[m].create(null, f));
|
|
9060
9060
|
f = x.from(r.copy(f));
|
|
9061
|
-
let h = n.tr.step(new
|
|
9061
|
+
let h = n.tr.step(new U(e.pos - 1, d, e.pos, d, new S(f, 1, 0), s.length, !0)), p = d + 2 * s.length;
|
|
9062
9062
|
gt(h.doc, p) && h.join(p), t(h.scrollIntoView());
|
|
9063
9063
|
}
|
|
9064
9064
|
return !0;
|
|
@@ -9078,7 +9078,7 @@ function Ma(n, e, t) {
|
|
|
9078
9078
|
let m = x.empty;
|
|
9079
9079
|
for (let b = f.length - 1; b >= 0; b--)
|
|
9080
9080
|
m = x.from(f[b].copy(m));
|
|
9081
|
-
let y = n.tr.step(new
|
|
9081
|
+
let y = n.tr.step(new U(e.pos - f.length, e.pos + i.nodeSize, e.pos + p, e.pos + i.nodeSize - p, new S(m, f.length, 0), 0, !0));
|
|
9082
9082
|
t(y.scrollIntoView());
|
|
9083
9083
|
}
|
|
9084
9084
|
return !0;
|
|
@@ -9154,7 +9154,7 @@ function Nf(n, e, t, r, i) {
|
|
|
9154
9154
|
let s = x.empty;
|
|
9155
9155
|
for (let u = t.length - 1; u >= 0; u--)
|
|
9156
9156
|
s = x.from(t[u].type.create(t[u].attrs, s));
|
|
9157
|
-
n.step(new
|
|
9157
|
+
n.step(new U(e.start - (r ? 2 : 0), e.end, e.start, e.end, new S(s, 0, 0), t.length, !0));
|
|
9158
9158
|
let o = 0;
|
|
9159
9159
|
for (let u = 0; u < t.length; u++)
|
|
9160
9160
|
t[u].type == i && (o = u + 1);
|
|
@@ -9171,7 +9171,7 @@ function Df(n) {
|
|
|
9171
9171
|
}
|
|
9172
9172
|
function If(n, e, t, r) {
|
|
9173
9173
|
let i = n.tr, s = r.end, o = r.$to.end(r.depth);
|
|
9174
|
-
s < o && (i.step(new
|
|
9174
|
+
s < o && (i.step(new U(s - 1, o, s, o, new S(x.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Or(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
|
|
9175
9175
|
const l = yn(r);
|
|
9176
9176
|
if (l == null)
|
|
9177
9177
|
return !1;
|
|
@@ -9190,7 +9190,7 @@ function Pf(n, e, t) {
|
|
|
9190
9190
|
if (!c.canReplace(u + (l ? 0 : 1), u + 1, o.content.append(a ? x.empty : x.from(i))))
|
|
9191
9191
|
return !1;
|
|
9192
9192
|
let d = s.pos, f = d + o.nodeSize;
|
|
9193
|
-
return r.step(new
|
|
9193
|
+
return r.step(new U(d - (l ? 1 : 0), f + (a ? 1 : 0), d + 1, f - 1, new S((l ? x.empty : x.from(i.copy(x.empty))).append(a ? x.empty : x.from(i.copy(x.empty))), l ? 0 : 1, a ? 0 : 1), l ? 0 : 1)), e(r.scrollIntoView()), !0;
|
|
9194
9194
|
}
|
|
9195
9195
|
function Rf(n) {
|
|
9196
9196
|
return function(e, t) {
|
|
@@ -9205,7 +9205,7 @@ function Rf(n) {
|
|
|
9205
9205
|
return !1;
|
|
9206
9206
|
if (t) {
|
|
9207
9207
|
let c = a.lastChild && a.lastChild.type == l.type, u = x.from(c ? n.create() : null), d = new S(x.from(n.create(null, x.from(l.type.create(null, u)))), c ? 3 : 1, 0), f = s.start, h = s.end;
|
|
9208
|
-
t(e.tr.step(new
|
|
9208
|
+
t(e.tr.step(new U(f - (c ? 3 : 1), h, f, h, d, 1, !0)).scrollIntoView());
|
|
9209
9209
|
}
|
|
9210
9210
|
return !0;
|
|
9211
9211
|
};
|
|
@@ -9235,7 +9235,7 @@ function Jr(n) {
|
|
|
9235
9235
|
}
|
|
9236
9236
|
};
|
|
9237
9237
|
}
|
|
9238
|
-
class
|
|
9238
|
+
class _r {
|
|
9239
9239
|
constructor(e) {
|
|
9240
9240
|
this.editor = e.editor, this.rawCommands = this.editor.extensionManager.commands, this.customState = e.state;
|
|
9241
9241
|
}
|
|
@@ -9320,7 +9320,7 @@ function M(n, e, t) {
|
|
|
9320
9320
|
parent: n.parent ? M(n.parent, e, t) : null
|
|
9321
9321
|
}) : n.config[e];
|
|
9322
9322
|
}
|
|
9323
|
-
function
|
|
9323
|
+
function Ur(n) {
|
|
9324
9324
|
const e = n.filter((i) => i.type === "extension"), t = n.filter((i) => i.type === "node"), r = n.filter((i) => i.type === "mark");
|
|
9325
9325
|
return {
|
|
9326
9326
|
baseExtensions: e,
|
|
@@ -9329,7 +9329,7 @@ function _r(n) {
|
|
|
9329
9329
|
};
|
|
9330
9330
|
}
|
|
9331
9331
|
function Ca(n) {
|
|
9332
|
-
const e = [], { nodeExtensions: t, markExtensions: r } =
|
|
9332
|
+
const e = [], { nodeExtensions: t, markExtensions: r } = Ur(n), i = [...t, ...r], s = {
|
|
9333
9333
|
default: null,
|
|
9334
9334
|
rendered: !0,
|
|
9335
9335
|
renderHTML: null,
|
|
@@ -9448,7 +9448,7 @@ function Po(n) {
|
|
|
9448
9448
|
}
|
|
9449
9449
|
function Ff(n, e) {
|
|
9450
9450
|
var t;
|
|
9451
|
-
const r = Ca(n), { nodeExtensions: i, markExtensions: s } =
|
|
9451
|
+
const r = Ca(n), { nodeExtensions: i, markExtensions: s } = Ur(n), o = (t = i.find((c) => M(c, "topNode"))) === null || t === void 0 ? void 0 : t.name, l = Object.fromEntries(i.map((c) => {
|
|
9452
9452
|
const u = r.filter((b) => b.type === c.name), d = {
|
|
9453
9453
|
name: c.name,
|
|
9454
9454
|
options: c.options,
|
|
@@ -9584,7 +9584,7 @@ function vi(n) {
|
|
|
9584
9584
|
}), y = {
|
|
9585
9585
|
from: r - (h[0].length - s.length),
|
|
9586
9586
|
to: i
|
|
9587
|
-
}, { commands: b, chain: w, can: C } = new
|
|
9587
|
+
}, { commands: b, chain: w, can: C } = new _r({
|
|
9588
9588
|
editor: t,
|
|
9589
9589
|
state: m
|
|
9590
9590
|
});
|
|
@@ -9678,7 +9678,7 @@ const qf = (n, e, t) => {
|
|
|
9678
9678
|
}) : [];
|
|
9679
9679
|
};
|
|
9680
9680
|
function Kf(n) {
|
|
9681
|
-
const { editor: e, state: t, from: r, to: i, rule: s, pasteEvent: o, dropEvent: l } = n, { commands: a, chain: c, can: u } = new
|
|
9681
|
+
const { editor: e, state: t, from: r, to: i, rule: s, pasteEvent: o, dropEvent: l } = n, { commands: a, chain: c, can: u } = new _r({
|
|
9682
9682
|
editor: e,
|
|
9683
9683
|
state: t
|
|
9684
9684
|
}), d = [];
|
|
@@ -9756,7 +9756,7 @@ function Jf(n) {
|
|
|
9756
9756
|
}
|
|
9757
9757
|
}));
|
|
9758
9758
|
}
|
|
9759
|
-
function
|
|
9759
|
+
function _f(n) {
|
|
9760
9760
|
const e = n.filter((t, r) => n.indexOf(t) !== r);
|
|
9761
9761
|
return [...new Set(e)];
|
|
9762
9762
|
}
|
|
@@ -9792,7 +9792,7 @@ class Qt {
|
|
|
9792
9792
|
});
|
|
9793
9793
|
}
|
|
9794
9794
|
static resolve(e) {
|
|
9795
|
-
const t = Qt.sort(Qt.flatten(e)), r =
|
|
9795
|
+
const t = Qt.sort(Qt.flatten(e)), r = _f(t.map((i) => i.name));
|
|
9796
9796
|
return r.length && console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map((i) => `'${i}'`).join(", ")}]. This can lead to issues.`), t;
|
|
9797
9797
|
}
|
|
9798
9798
|
static flatten(e) {
|
|
@@ -9869,7 +9869,7 @@ class Qt {
|
|
|
9869
9869
|
return Ca(this.extensions);
|
|
9870
9870
|
}
|
|
9871
9871
|
get nodeViews() {
|
|
9872
|
-
const { editor: e } = this, { nodeExtensions: t } =
|
|
9872
|
+
const { editor: e } = this, { nodeExtensions: t } = Ur(this.extensions);
|
|
9873
9873
|
return Object.fromEntries(t.filter((r) => !!M(r, "addNodeView")).map((r) => {
|
|
9874
9874
|
const i = this.attributes.filter((a) => a.type === r.name), s = {
|
|
9875
9875
|
name: r.name,
|
|
@@ -9895,11 +9895,11 @@ class Qt {
|
|
|
9895
9895
|
}));
|
|
9896
9896
|
}
|
|
9897
9897
|
}
|
|
9898
|
-
function
|
|
9898
|
+
function Uf(n) {
|
|
9899
9899
|
return Object.prototype.toString.call(n).slice(8, -1);
|
|
9900
9900
|
}
|
|
9901
9901
|
function ki(n) {
|
|
9902
|
-
return
|
|
9902
|
+
return Uf(n) !== "Object" ? !1 : n.constructor === Object && Object.getPrototypeOf(n) === Object.prototype;
|
|
9903
9903
|
}
|
|
9904
9904
|
function Yr(n, e) {
|
|
9905
9905
|
const t = { ...n };
|
|
@@ -10037,11 +10037,11 @@ function Rr(n, e, t = { strict: !0 }) {
|
|
|
10037
10037
|
const r = Object.keys(e);
|
|
10038
10038
|
return r.length ? r.every((i) => t.strict ? e[i] === n[i] : ys(e[i]) ? e[i].test(n[i]) : e[i] === n[i]) : !0;
|
|
10039
10039
|
}
|
|
10040
|
-
function
|
|
10040
|
+
function _i(n, e, t = {}) {
|
|
10041
10041
|
return n.find((r) => r.type === e && Rr(r.attrs, t));
|
|
10042
10042
|
}
|
|
10043
10043
|
function ah(n, e, t = {}) {
|
|
10044
|
-
return !!
|
|
10044
|
+
return !!_i(n, e, t);
|
|
10045
10045
|
}
|
|
10046
10046
|
function bs(n, e, t = {}) {
|
|
10047
10047
|
if (!n || !e)
|
|
@@ -10049,11 +10049,11 @@ function bs(n, e, t = {}) {
|
|
|
10049
10049
|
let r = n.parent.childAfter(n.parentOffset);
|
|
10050
10050
|
if (n.parentOffset === r.offset && r.offset !== 0 && (r = n.parent.childBefore(n.parentOffset)), !r.node)
|
|
10051
10051
|
return;
|
|
10052
|
-
const i =
|
|
10052
|
+
const i = _i([...r.node.marks], e, t);
|
|
10053
10053
|
if (!i)
|
|
10054
10054
|
return;
|
|
10055
10055
|
let s = r.index, o = n.start() + r.offset, l = s + 1, a = o + r.node.nodeSize;
|
|
10056
|
-
for (
|
|
10056
|
+
for (_i([...r.node.marks], e, t); s > 0 && i.isInSet(n.parent.child(s - 1).marks); )
|
|
10057
10057
|
s -= 1, o -= n.parent.child(s).nodeSize;
|
|
10058
10058
|
for (; l < n.parent.childCount && ah([...n.parent.child(l).marks], e, t); )
|
|
10059
10059
|
a += n.parent.child(l).nodeSize, l += 1;
|
|
@@ -10164,7 +10164,7 @@ function ph(n, e, t) {
|
|
|
10164
10164
|
if (r < e)
|
|
10165
10165
|
return;
|
|
10166
10166
|
const i = n.steps[r];
|
|
10167
|
-
if (!(i instanceof
|
|
10167
|
+
if (!(i instanceof _ || i instanceof U))
|
|
10168
10168
|
return;
|
|
10169
10169
|
const s = n.mapping.maps[r];
|
|
10170
10170
|
let o = 0;
|
|
@@ -10380,7 +10380,7 @@ function vr(n, e, t) {
|
|
|
10380
10380
|
return i ? i.attribute.keepOnSplit : !1;
|
|
10381
10381
|
}));
|
|
10382
10382
|
}
|
|
10383
|
-
function
|
|
10383
|
+
function Ui(n, e, t = {}) {
|
|
10384
10384
|
const { empty: r, ranges: i } = n.selection, s = e ? bt(e, n.schema) : null;
|
|
10385
10385
|
if (r)
|
|
10386
10386
|
return !!(n.storedMarks || n.selection.$from.marks()).filter((d) => s ? s.name === d.type.name : !0).find((d) => Rr(d.attrs, t, { strict: !1 }));
|
|
@@ -10405,12 +10405,12 @@ function _i(n, e, t = {}) {
|
|
|
10405
10405
|
}
|
|
10406
10406
|
function Jh(n, e, t = {}) {
|
|
10407
10407
|
if (!e)
|
|
10408
|
-
return jn(n, null, t) ||
|
|
10408
|
+
return jn(n, null, t) || Ui(n, null, t);
|
|
10409
10409
|
const r = Xr(e, n.schema);
|
|
10410
|
-
return r === "node" ? jn(n, e, t) : r === "mark" ?
|
|
10410
|
+
return r === "node" ? jn(n, e, t) : r === "mark" ? Ui(n, e, t) : !1;
|
|
10411
10411
|
}
|
|
10412
10412
|
function zo(n, e) {
|
|
10413
|
-
const { nodeExtensions: t } =
|
|
10413
|
+
const { nodeExtensions: t } = Ur(e), r = t.find((o) => o.name === n);
|
|
10414
10414
|
if (!r)
|
|
10415
10415
|
return !1;
|
|
10416
10416
|
const i = {
|
|
@@ -10420,12 +10420,12 @@ function zo(n, e) {
|
|
|
10420
10420
|
}, s = P(M(r, "group", i));
|
|
10421
10421
|
return typeof s != "string" ? !1 : s.split(" ").includes("list");
|
|
10422
10422
|
}
|
|
10423
|
-
function
|
|
10423
|
+
function _h(n) {
|
|
10424
10424
|
var e;
|
|
10425
10425
|
const t = (e = n.type.createAndFill()) === null || e === void 0 ? void 0 : e.toJSON(), r = n.toJSON();
|
|
10426
10426
|
return JSON.stringify(t) === JSON.stringify(r);
|
|
10427
10427
|
}
|
|
10428
|
-
function
|
|
10428
|
+
function Uh(n) {
|
|
10429
10429
|
return n instanceof A;
|
|
10430
10430
|
}
|
|
10431
10431
|
function Ra(n, e, t) {
|
|
@@ -10624,7 +10624,7 @@ const np = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
10624
10624
|
}).wrapInList(h, r).command(() => xi(s, h)).command(() => wi(s, h)).run();
|
|
10625
10625
|
}, sp = (n, e = {}, t = {}) => ({ state: r, commands: i }) => {
|
|
10626
10626
|
const { extendEmptyMarkRange: s = !1 } = t, o = bt(n, r.schema);
|
|
10627
|
-
return
|
|
10627
|
+
return Ui(r, o, e) ? i.unsetMark(o, { extendEmptyMarkRange: s }) : i.setMark(o, e);
|
|
10628
10628
|
}, op = (n, e, t = {}) => ({ state: r, commands: i }) => {
|
|
10629
10629
|
const s = Y(n, r.schema), o = Y(e, r.schema);
|
|
10630
10630
|
return jn(r, s, t) ? i.setNode(o) : i.setNode(s, t);
|
|
@@ -10866,7 +10866,7 @@ const mp = de.create({
|
|
|
10866
10866
|
const d = t.tr, f = Jr({
|
|
10867
10867
|
state: t,
|
|
10868
10868
|
transaction: d
|
|
10869
|
-
}), { commands: h } = new
|
|
10869
|
+
}), { commands: h } = new _r({
|
|
10870
10870
|
editor: this.editor,
|
|
10871
10871
|
state: f
|
|
10872
10872
|
});
|
|
@@ -11230,7 +11230,7 @@ let Sp = class extends Bf {
|
|
|
11230
11230
|
* Creates an command manager.
|
|
11231
11231
|
*/
|
|
11232
11232
|
createCommandManager() {
|
|
11233
|
-
this.commandManager = new
|
|
11233
|
+
this.commandManager = new _r({
|
|
11234
11234
|
editor: this
|
|
11235
11235
|
});
|
|
11236
11236
|
}
|
|
@@ -11361,7 +11361,7 @@ let Sp = class extends Bf {
|
|
|
11361
11361
|
* Check if there is no content.
|
|
11362
11362
|
*/
|
|
11363
11363
|
get isEmpty() {
|
|
11364
|
-
return
|
|
11364
|
+
return _h(this.state.doc);
|
|
11365
11365
|
}
|
|
11366
11366
|
/**
|
|
11367
11367
|
* Get the number of characters for the current document.
|
|
@@ -11805,7 +11805,7 @@ var Jp = {
|
|
|
11805
11805
|
bottom: "auto",
|
|
11806
11806
|
left: "auto"
|
|
11807
11807
|
};
|
|
11808
|
-
function
|
|
11808
|
+
function _p(n, e) {
|
|
11809
11809
|
var t = n.x, r = n.y, i = e.devicePixelRatio || 1;
|
|
11810
11810
|
return {
|
|
11811
11811
|
x: hn(t * i) / i || 0,
|
|
@@ -11843,7 +11843,7 @@ function Ho(n) {
|
|
|
11843
11843
|
}
|
|
11844
11844
|
var $ = Object.assign({
|
|
11845
11845
|
position: l
|
|
11846
|
-
}, c && Jp), H = u === !0 ?
|
|
11846
|
+
}, c && Jp), H = u === !0 ? _p({
|
|
11847
11847
|
x: h,
|
|
11848
11848
|
y: m
|
|
11849
11849
|
}, ke(t)) : {
|
|
@@ -11856,7 +11856,7 @@ function Ho(n) {
|
|
|
11856
11856
|
}
|
|
11857
11857
|
return Object.assign({}, $, (e = {}, e[g] = w ? m + "px" : "", e[C] = b ? h + "px" : "", e.transform = "", e));
|
|
11858
11858
|
}
|
|
11859
|
-
function
|
|
11859
|
+
function Up(n) {
|
|
11860
11860
|
var e = n.state, t = n.options, r = t.gpuAcceleration, i = r === void 0 ? !0 : r, s = t.adaptive, o = s === void 0 ? !0 : s, l = t.roundOffsets, a = l === void 0 ? !0 : l, c = {
|
|
11861
11861
|
placement: He(e.placement),
|
|
11862
11862
|
variation: mn(e.placement),
|
|
@@ -11883,7 +11883,7 @@ const Gp = {
|
|
|
11883
11883
|
name: "computeStyles",
|
|
11884
11884
|
enabled: !0,
|
|
11885
11885
|
phase: "beforeWrite",
|
|
11886
|
-
fn:
|
|
11886
|
+
fn: Up,
|
|
11887
11887
|
data: {}
|
|
11888
11888
|
};
|
|
11889
11889
|
var mr = {
|
|
@@ -12103,8 +12103,8 @@ function om(n) {
|
|
|
12103
12103
|
function lm(n) {
|
|
12104
12104
|
var e = n.state, t = n.options, r = n.name;
|
|
12105
12105
|
if (!e.modifiersData[r]._skip) {
|
|
12106
|
-
for (var i = t.mainAxis, s = i === void 0 ? !0 : i, o = t.altAxis, l = o === void 0 ? !0 : o, a = t.fallbackPlacements, c = t.padding, u = t.boundary, d = t.rootBoundary, f = t.altBoundary, h = t.flipVariations, p = h === void 0 ? !0 : h, m = t.allowedAutoPlacements, y = e.options.placement, b = He(y), w = b === y, C = a || (w || !p ? [kr(y)] : om(y)), g = [y].concat(C).reduce(function(
|
|
12107
|
-
return
|
|
12106
|
+
for (var i = t.mainAxis, s = i === void 0 ? !0 : i, o = t.altAxis, l = o === void 0 ? !0 : o, a = t.fallbackPlacements, c = t.padding, u = t.boundary, d = t.rootBoundary, f = t.altBoundary, h = t.flipVariations, p = h === void 0 ? !0 : h, m = t.allowedAutoPlacements, y = e.options.placement, b = He(y), w = b === y, C = a || (w || !p ? [kr(y)] : om(y)), g = [y].concat(C).reduce(function(_e, Ee) {
|
|
12107
|
+
return _e.concat(He(Ee) === Ss ? sm(e, {
|
|
12108
12108
|
placement: Ee,
|
|
12109
12109
|
boundary: u,
|
|
12110
12110
|
rootBoundary: d,
|
|
@@ -12122,8 +12122,8 @@ function lm(n) {
|
|
|
12122
12122
|
}), ne = ge ? j ? Te : pe : j ? Ce : he;
|
|
12123
12123
|
T[ye] > k[ye] && (ne = kr(ne));
|
|
12124
12124
|
var X = kr(ne), Pe = [];
|
|
12125
|
-
if (s && Pe.push(te[H] <= 0), l && Pe.push(te[ne] <= 0, te[X] <= 0), Pe.every(function(
|
|
12126
|
-
return
|
|
12125
|
+
if (s && Pe.push(te[H] <= 0), l && Pe.push(te[ne] <= 0, te[X] <= 0), Pe.every(function(_e) {
|
|
12126
|
+
return _e;
|
|
12127
12127
|
})) {
|
|
12128
12128
|
E = $, F = !1;
|
|
12129
12129
|
break;
|
|
@@ -12132,15 +12132,15 @@ function lm(n) {
|
|
|
12132
12132
|
}
|
|
12133
12133
|
if (F)
|
|
12134
12134
|
for (var Re = p ? 3 : 1, kt = function(Ee) {
|
|
12135
|
-
var
|
|
12135
|
+
var Ue = g.find(function(Ht) {
|
|
12136
12136
|
var Ge = D.get(Ht);
|
|
12137
12137
|
if (Ge)
|
|
12138
12138
|
return Ge.slice(0, Ee).every(function(jt) {
|
|
12139
12139
|
return jt;
|
|
12140
12140
|
});
|
|
12141
12141
|
});
|
|
12142
|
-
if (
|
|
12143
|
-
return E =
|
|
12142
|
+
if (Ue)
|
|
12143
|
+
return E = Ue, "break";
|
|
12144
12144
|
}, Be = Re; Be > 0; Be--) {
|
|
12145
12145
|
var xt = kt(Be);
|
|
12146
12146
|
if (xt === "break")
|
|
@@ -12262,10 +12262,10 @@ function ym(n) {
|
|
|
12262
12262
|
};
|
|
12263
12263
|
if (k) {
|
|
12264
12264
|
if (s) {
|
|
12265
|
-
var j, ge = g === "y" ? he : pe, ye = g === "y" ? Ce : Te, te = g === "y" ? "height" : "width", ne = k[g], X = ne + y[ge], Pe = ne - y[ye], Re = h ? -F[te] / 2 : 0, kt = w === fn ? D[te] : F[te], Be = w === fn ? -F[te] : -D[te], xt = e.elements.arrow,
|
|
12265
|
+
var j, ge = g === "y" ? he : pe, ye = g === "y" ? Ce : Te, te = g === "y" ? "height" : "width", ne = k[g], X = ne + y[ge], Pe = ne - y[ye], Re = h ? -F[te] / 2 : 0, kt = w === fn ? D[te] : F[te], Be = w === fn ? -F[te] : -D[te], xt = e.elements.arrow, _e = h && xt ? Os(xt) : {
|
|
12266
12266
|
width: 0,
|
|
12267
12267
|
height: 0
|
|
12268
|
-
}, Ee = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : $a(),
|
|
12268
|
+
}, Ee = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : $a(), Ue = Ee[ge], Ht = Ee[ye], Ge = Pn(0, D[te], _e[te]), jt = C ? D[te] / 2 - Re - Ge - Ue - L.mainAxis : kt - Ge - Ue - L.mainAxis, rt = C ? -D[te] / 2 + Re + Ge + Ht + L.mainAxis : Be + Ge + Ht + L.mainAxis, Wt = e.elements.arrow && Qn(e.elements.arrow), er = Wt ? g === "y" ? Wt.clientTop || 0 : Wt.clientLeft || 0 : 0, vn = (j = $?.[g]) != null ? j : 0, tr = ne + jt - vn - er, nr = ne + rt - vn, kn = Pn(h ? Lr(X, tr) : X, ne, h ? Bt(Pe, nr) : Pe);
|
|
12269
12269
|
k[g] = kn, H[g] = kn - ne;
|
|
12270
12270
|
}
|
|
12271
12271
|
if (l) {
|
|
@@ -12366,7 +12366,7 @@ var Jo = {
|
|
|
12366
12366
|
modifiers: [],
|
|
12367
12367
|
strategy: "absolute"
|
|
12368
12368
|
};
|
|
12369
|
-
function
|
|
12369
|
+
function _o() {
|
|
12370
12370
|
for (var n = arguments.length, e = new Array(n), t = 0; t < n; t++)
|
|
12371
12371
|
e[t] = arguments[t];
|
|
12372
12372
|
return !e.some(function(r) {
|
|
@@ -12410,7 +12410,7 @@ function Tm(n) {
|
|
|
12410
12410
|
forceUpdate: function() {
|
|
12411
12411
|
if (!f) {
|
|
12412
12412
|
var b = u.elements, w = b.reference, C = b.popper;
|
|
12413
|
-
if (
|
|
12413
|
+
if (_o(w, C)) {
|
|
12414
12414
|
u.rects = {
|
|
12415
12415
|
reference: wm(w, Qn(C), u.options.strategy === "fixed"),
|
|
12416
12416
|
popper: Os(C)
|
|
@@ -12444,7 +12444,7 @@ function Tm(n) {
|
|
|
12444
12444
|
m(), f = !0;
|
|
12445
12445
|
}
|
|
12446
12446
|
};
|
|
12447
|
-
if (!
|
|
12447
|
+
if (!_o(l, a))
|
|
12448
12448
|
return h;
|
|
12449
12449
|
h.setOptions(c).then(function(y) {
|
|
12450
12450
|
!f && c.onFirstUpdate && c.onFirstUpdate(y);
|
|
@@ -12474,10 +12474,10 @@ function Tm(n) {
|
|
|
12474
12474
|
}
|
|
12475
12475
|
var Em = [Xp, mm, Gp, za, hm, am, bm, Kp, um], Am = /* @__PURE__ */ Tm({
|
|
12476
12476
|
defaultModifiers: Em
|
|
12477
|
-
}), Nm = "tippy-box", Ka = "tippy-content", Dm = "tippy-backdrop", Ja = "tippy-arrow",
|
|
12477
|
+
}), Nm = "tippy-box", Ka = "tippy-content", Dm = "tippy-backdrop", Ja = "tippy-arrow", _a = "tippy-svg-arrow", Mt = {
|
|
12478
12478
|
passive: !0,
|
|
12479
12479
|
capture: !0
|
|
12480
|
-
},
|
|
12480
|
+
}, Ua = function() {
|
|
12481
12481
|
return document.body;
|
|
12482
12482
|
};
|
|
12483
12483
|
function Im(n, e) {
|
|
@@ -12497,7 +12497,7 @@ function Ns(n, e) {
|
|
|
12497
12497
|
function Ga(n, e) {
|
|
12498
12498
|
return typeof n == "function" ? n.apply(void 0, e) : n;
|
|
12499
12499
|
}
|
|
12500
|
-
function
|
|
12500
|
+
function Uo(n, e) {
|
|
12501
12501
|
if (e === 0)
|
|
12502
12502
|
return n;
|
|
12503
12503
|
var t;
|
|
@@ -12617,11 +12617,11 @@ function qm() {
|
|
|
12617
12617
|
function Km() {
|
|
12618
12618
|
document.addEventListener("touchstart", Wm, Mt), window.addEventListener("blur", qm);
|
|
12619
12619
|
}
|
|
12620
|
-
var Jm = typeof window < "u" && typeof document < "u",
|
|
12620
|
+
var Jm = typeof window < "u" && typeof document < "u", _m = Jm ? (
|
|
12621
12621
|
// @ts-ignore
|
|
12622
12622
|
!!window.msCrypto
|
|
12623
12623
|
) : !1;
|
|
12624
|
-
function
|
|
12624
|
+
function Ut(n) {
|
|
12625
12625
|
var e = n === "destroy" ? "n already-" : " ";
|
|
12626
12626
|
return [n + "() was called on a" + e + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
|
|
12627
12627
|
}
|
|
@@ -12629,7 +12629,7 @@ function el(n) {
|
|
|
12629
12629
|
var e = /[ \t]{2,}/g, t = /^[ \t]*/gm;
|
|
12630
12630
|
return n.replace(e, " ").replace(t, "").trim();
|
|
12631
12631
|
}
|
|
12632
|
-
function
|
|
12632
|
+
function Um(n) {
|
|
12633
12633
|
return el(`
|
|
12634
12634
|
%ctippy.js
|
|
12635
12635
|
|
|
@@ -12640,7 +12640,7 @@ function _m(n) {
|
|
|
12640
12640
|
}
|
|
12641
12641
|
function Xa(n) {
|
|
12642
12642
|
return [
|
|
12643
|
-
|
|
12643
|
+
Um(n),
|
|
12644
12644
|
// title
|
|
12645
12645
|
"color: #00C584; font-size: 1.3em; font-weight: bold;",
|
|
12646
12646
|
// message
|
|
@@ -12649,21 +12649,21 @@ function Xa(n) {
|
|
|
12649
12649
|
"color: #a6a095;"
|
|
12650
12650
|
];
|
|
12651
12651
|
}
|
|
12652
|
-
var
|
|
12652
|
+
var _n;
|
|
12653
12653
|
process.env.NODE_ENV !== "production" && Gm();
|
|
12654
12654
|
function Gm() {
|
|
12655
|
-
|
|
12655
|
+
_n = /* @__PURE__ */ new Set();
|
|
12656
12656
|
}
|
|
12657
12657
|
function Qe(n, e) {
|
|
12658
|
-
if (n && !
|
|
12658
|
+
if (n && !_n.has(e)) {
|
|
12659
12659
|
var t;
|
|
12660
|
-
|
|
12660
|
+
_n.add(e), (t = console).warn.apply(t, Xa(e));
|
|
12661
12661
|
}
|
|
12662
12662
|
}
|
|
12663
12663
|
function Zi(n, e) {
|
|
12664
|
-
if (n && !
|
|
12664
|
+
if (n && !_n.has(e)) {
|
|
12665
12665
|
var t;
|
|
12666
|
-
|
|
12666
|
+
_n.add(e), (t = console).error.apply(t, Xa(e));
|
|
12667
12667
|
}
|
|
12668
12668
|
}
|
|
12669
12669
|
function Ym(n) {
|
|
@@ -12686,7 +12686,7 @@ var Za = {
|
|
|
12686
12686
|
theme: "",
|
|
12687
12687
|
zIndex: 9999
|
|
12688
12688
|
}, ve = Object.assign({
|
|
12689
|
-
appendTo:
|
|
12689
|
+
appendTo: Ua,
|
|
12690
12690
|
aria: {
|
|
12691
12691
|
content: "auto",
|
|
12692
12692
|
expanded: "auto"
|
|
@@ -12800,7 +12800,7 @@ function Qi(n, e) {
|
|
|
12800
12800
|
}
|
|
12801
12801
|
function nl(n) {
|
|
12802
12802
|
var e = Bn();
|
|
12803
|
-
return n === !0 ? e.className = Ja : (e.className =
|
|
12803
|
+
return n === !0 ? e.className = Ja : (e.className = _a, Jn(n) ? e.appendChild(n) : Qi(e, n)), e;
|
|
12804
12804
|
}
|
|
12805
12805
|
function rl(n, e) {
|
|
12806
12806
|
Jn(e.content) ? (Qi(n, ""), n.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? Qi(n, e.content) : n.textContent = e.content);
|
|
@@ -12813,7 +12813,7 @@ function es(n) {
|
|
|
12813
12813
|
return r.classList.contains(Ka);
|
|
12814
12814
|
}),
|
|
12815
12815
|
arrow: t.find(function(r) {
|
|
12816
|
-
return r.classList.contains(Ja) || r.classList.contains(
|
|
12816
|
+
return r.classList.contains(Ja) || r.classList.contains(_a);
|
|
12817
12817
|
}),
|
|
12818
12818
|
backdrop: t.find(function(r) {
|
|
12819
12819
|
return r.classList.contains(Dm);
|
|
@@ -12837,7 +12837,7 @@ function tc(n) {
|
|
|
12837
12837
|
tc.$$tippy = !0;
|
|
12838
12838
|
var ng = 1, gr = [], Ci = [];
|
|
12839
12839
|
function rg(n, e) {
|
|
12840
|
-
var t = tl(n, Object.assign({}, ve, Qa(Yo(e)))), r, i, s, o = !1, l = !1, a = !1, c = !1, u, d, f, h = [], p =
|
|
12840
|
+
var t = tl(n, Object.assign({}, ve, Qa(Yo(e)))), r, i, s, o = !1, l = !1, a = !1, c = !1, u, d, f, h = [], p = Uo(tr, t.interactiveDebounce), m, y = ng++, b = null, w = Bm(t.plugins), C = {
|
|
12841
12841
|
// Is the instance currently enabled?
|
|
12842
12842
|
isEnabled: !0,
|
|
12843
12843
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -12957,23 +12957,23 @@ function rg(n, e) {
|
|
|
12957
12957
|
X("onClickOutside", [g, v]);
|
|
12958
12958
|
g.props.hideOnClick === !0 && (g.clearDelayTimeouts(), g.hide(), l = !0, setTimeout(function() {
|
|
12959
12959
|
l = !1;
|
|
12960
|
-
}), g.state.isMounted ||
|
|
12960
|
+
}), g.state.isMounted || Ue());
|
|
12961
12961
|
}
|
|
12962
12962
|
}
|
|
12963
12963
|
}
|
|
12964
12964
|
function xt() {
|
|
12965
12965
|
a = !0;
|
|
12966
12966
|
}
|
|
12967
|
-
function
|
|
12967
|
+
function _e() {
|
|
12968
12968
|
a = !1;
|
|
12969
12969
|
}
|
|
12970
12970
|
function Ee() {
|
|
12971
12971
|
var v = ge();
|
|
12972
|
-
v.addEventListener("mousedown", Be, !0), v.addEventListener("touchend", Be, Mt), v.addEventListener("touchstart",
|
|
12972
|
+
v.addEventListener("mousedown", Be, !0), v.addEventListener("touchend", Be, Mt), v.addEventListener("touchstart", _e, Mt), v.addEventListener("touchmove", xt, Mt);
|
|
12973
12973
|
}
|
|
12974
|
-
function
|
|
12974
|
+
function Ue() {
|
|
12975
12975
|
var v = ge();
|
|
12976
|
-
v.removeEventListener("mousedown", Be, !0), v.removeEventListener("touchend", Be, Mt), v.removeEventListener("touchstart",
|
|
12976
|
+
v.removeEventListener("mousedown", Be, !0), v.removeEventListener("touchend", Be, Mt), v.removeEventListener("touchstart", _e, Mt), v.removeEventListener("touchmove", xt, Mt);
|
|
12977
12977
|
}
|
|
12978
12978
|
function Ht(v, O) {
|
|
12979
12979
|
jt(v, function() {
|
|
@@ -13016,7 +13016,7 @@ function rg(n, e) {
|
|
|
13016
13016
|
rt("mouseleave", nr);
|
|
13017
13017
|
break;
|
|
13018
13018
|
case "focus":
|
|
13019
|
-
rt(
|
|
13019
|
+
rt(_m ? "focusout" : "blur", kn);
|
|
13020
13020
|
break;
|
|
13021
13021
|
case "focusin":
|
|
13022
13022
|
rt("focusout", kn);
|
|
@@ -13131,7 +13131,7 @@ function rg(n, e) {
|
|
|
13131
13131
|
}
|
|
13132
13132
|
function Ye() {
|
|
13133
13133
|
var v = g.props.appendTo, O, N = j();
|
|
13134
|
-
g.props.interactive && v ===
|
|
13134
|
+
g.props.interactive && v === Ua || v === "parent" ? O = N.parentNode : O = Ga(v, [N]), O.contains(k) || O.appendChild(k), g.state.isMounted = !0, rr(), process.env.NODE_ENV !== "production" && Qe(g.props.interactive && v === ve.appendTo && N.nextElementSibling !== k, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
13135
13135
|
|
|
13136
13136
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
13137
13137
|
|
|
@@ -13151,7 +13151,7 @@ function rg(n, e) {
|
|
|
13151
13151
|
}
|
|
13152
13152
|
function wt(v) {
|
|
13153
13153
|
if (g.clearDelayTimeouts(), X("onUntrigger", [g, v]), !g.state.isVisible) {
|
|
13154
|
-
|
|
13154
|
+
Ue();
|
|
13155
13155
|
return;
|
|
13156
13156
|
}
|
|
13157
13157
|
if (!(g.props.trigger.indexOf("mouseenter") >= 0 && g.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(v.type) >= 0 && o)) {
|
|
@@ -13173,12 +13173,12 @@ function rg(n, e) {
|
|
|
13173
13173
|
clearTimeout(r), clearTimeout(i), cancelAnimationFrame(s);
|
|
13174
13174
|
}
|
|
13175
13175
|
function lr(v) {
|
|
13176
|
-
if (process.env.NODE_ENV !== "production" && Qe(g.state.isDestroyed,
|
|
13176
|
+
if (process.env.NODE_ENV !== "production" && Qe(g.state.isDestroyed, Ut("setProps")), !g.state.isDestroyed) {
|
|
13177
13177
|
X("onBeforeUpdate", [g, v]), er();
|
|
13178
13178
|
var O = g.props, N = tl(n, Object.assign({}, O, Yo(v), {
|
|
13179
13179
|
ignoreAttributes: !0
|
|
13180
13180
|
}));
|
|
13181
|
-
g.props = N, Wt(), O.interactiveDebounce !== N.interactiveDebounce && (kt(), p =
|
|
13181
|
+
g.props = N, Wt(), O.interactiveDebounce !== N.interactiveDebounce && (kt(), p = Uo(tr, N.interactiveDebounce)), O.triggerTarget && !N.triggerTarget ? Xt(O.triggerTarget).forEach(function(z) {
|
|
13182
13182
|
z.removeAttribute("aria-expanded");
|
|
13183
13183
|
}) : N.triggerTarget && n.removeAttribute("aria-expanded"), Re(), ne(), D && D(O, N), g.popperInstance && (rr(), it().forEach(function(z) {
|
|
13184
13184
|
requestAnimationFrame(z._tippy.popperInstance.forceUpdate);
|
|
@@ -13191,7 +13191,7 @@ function rg(n, e) {
|
|
|
13191
13191
|
});
|
|
13192
13192
|
}
|
|
13193
13193
|
function ac() {
|
|
13194
|
-
process.env.NODE_ENV !== "production" && Qe(g.state.isDestroyed,
|
|
13194
|
+
process.env.NODE_ENV !== "production" && Qe(g.state.isDestroyed, Ut("show"));
|
|
13195
13195
|
var v = g.state.isVisible, O = g.state.isDestroyed, N = !g.state.isEnabled, z = ze.isTouch && !g.props.touch, B = Si(g.props.duration, 0, ve.duration);
|
|
13196
13196
|
if (!(v || O || N || z) && !j().hasAttribute("disabled") && (X("onShow", [g], !1), g.props.onShow(g) !== !1)) {
|
|
13197
13197
|
if (g.state.isVisible = !0, H() && (k.style.visibility = "visible"), ne(), Ee(), g.state.isMounted || (k.style.transition = "none"), H()) {
|
|
@@ -13213,10 +13213,10 @@ function rg(n, e) {
|
|
|
13213
13213
|
}
|
|
13214
13214
|
}
|
|
13215
13215
|
function cc() {
|
|
13216
|
-
process.env.NODE_ENV !== "production" && Qe(g.state.isDestroyed,
|
|
13216
|
+
process.env.NODE_ENV !== "production" && Qe(g.state.isDestroyed, Ut("hide"));
|
|
13217
13217
|
var v = !g.state.isVisible, O = g.state.isDestroyed, N = !g.state.isEnabled, z = Si(g.props.duration, 1, ve.duration);
|
|
13218
13218
|
if (!(v || O || N) && (X("onHide", [g], !1), g.props.onHide(g) !== !1)) {
|
|
13219
|
-
if (g.state.isVisible = !1, g.state.isShown = !1, c = !1, o = !1, H() && (k.style.visibility = "hidden"), kt(),
|
|
13219
|
+
if (g.state.isVisible = !1, g.state.isShown = !1, c = !1, o = !1, H() && (k.style.visibility = "hidden"), kt(), Ue(), ne(!0), H()) {
|
|
13220
13220
|
var B = ye(), oe = B.box, xe = B.content;
|
|
13221
13221
|
g.props.animation && (Mi([oe, xe], z), Xo([oe, xe], "hidden"));
|
|
13222
13222
|
}
|
|
@@ -13224,17 +13224,17 @@ function rg(n, e) {
|
|
|
13224
13224
|
}
|
|
13225
13225
|
}
|
|
13226
13226
|
function uc(v) {
|
|
13227
|
-
process.env.NODE_ENV !== "production" && Qe(g.state.isDestroyed,
|
|
13227
|
+
process.env.NODE_ENV !== "production" && Qe(g.state.isDestroyed, Ut("hideWithInteractivity")), ge().addEventListener("mousemove", p), Go(gr, p), p(v);
|
|
13228
13228
|
}
|
|
13229
13229
|
function dc() {
|
|
13230
|
-
process.env.NODE_ENV !== "production" && Qe(g.state.isDestroyed,
|
|
13230
|
+
process.env.NODE_ENV !== "production" && Qe(g.state.isDestroyed, Ut("unmount")), g.state.isVisible && g.hide(), g.state.isMounted && (ir(), it().forEach(function(v) {
|
|
13231
13231
|
v._tippy.unmount();
|
|
13232
13232
|
}), k.parentNode && k.parentNode.removeChild(k), Ci = Ci.filter(function(v) {
|
|
13233
13233
|
return v !== g;
|
|
13234
13234
|
}), g.state.isMounted = !1, X("onHidden", [g]));
|
|
13235
13235
|
}
|
|
13236
13236
|
function fc() {
|
|
13237
|
-
process.env.NODE_ENV !== "production" && Qe(g.state.isDestroyed,
|
|
13237
|
+
process.env.NODE_ENV !== "production" && Qe(g.state.isDestroyed, Ut("destroy")), !g.state.isDestroyed && (g.clearDelayTimeouts(), g.unmount(), er(), delete n._tippy, g.state.isDestroyed = !0, X("onDestroy", [g]));
|
|
13238
13238
|
}
|
|
13239
13239
|
}
|
|
13240
13240
|
function bn(n, e) {
|
|
@@ -13327,7 +13327,7 @@ class ig {
|
|
|
13327
13327
|
}
|
|
13328
13328
|
(f = this.tippy) === null || f === void 0 || f.setProps({
|
|
13329
13329
|
getReferenceClientRect: ((h = this.tippyOptions) === null || h === void 0 ? void 0 : h.getReferenceClientRect) || (() => {
|
|
13330
|
-
if (
|
|
13330
|
+
if (Uh(p.selection)) {
|
|
13331
13331
|
let k = l.nodeDOM(C);
|
|
13332
13332
|
const D = k.dataset.nodeViewWrapper ? k : k.querySelector("[data-node-view-wrapper]");
|
|
13333
13333
|
if (D && (k = D.firstChild), k)
|
|
@@ -13527,7 +13527,7 @@ gn({
|
|
|
13527
13527
|
shouldShow: o,
|
|
13528
13528
|
tippyOptions: l
|
|
13529
13529
|
}));
|
|
13530
|
-
}),
|
|
13530
|
+
}), Un(() => {
|
|
13531
13531
|
const { pluginKey: r, editor: i } = n;
|
|
13532
13532
|
i.unregisterPlugin(r);
|
|
13533
13533
|
}), () => {
|
|
@@ -13595,7 +13595,7 @@ const lg = gn({
|
|
|
13595
13595
|
element: i
|
|
13596
13596
|
}), r.createNodeViews();
|
|
13597
13597
|
});
|
|
13598
|
-
}),
|
|
13598
|
+
}), Un(() => {
|
|
13599
13599
|
const r = n.editor;
|
|
13600
13600
|
if (!r || (r.isDestroyed || r.view.setProps({
|
|
13601
13601
|
nodeViews: {}
|
|
@@ -13658,7 +13658,7 @@ gn({
|
|
|
13658
13658
|
tippyOptions: s,
|
|
13659
13659
|
shouldShow: o
|
|
13660
13660
|
}));
|
|
13661
|
-
}),
|
|
13661
|
+
}), Un(() => {
|
|
13662
13662
|
const { pluginKey: r, editor: i } = n;
|
|
13663
13663
|
i.unregisterPlugin(r);
|
|
13664
13664
|
}), () => {
|
|
@@ -13711,7 +13711,7 @@ const ag = (n = {}) => {
|
|
|
13711
13711
|
const e = bc();
|
|
13712
13712
|
return ns(() => {
|
|
13713
13713
|
e.value = new og(n);
|
|
13714
|
-
}),
|
|
13714
|
+
}), Un(() => {
|
|
13715
13715
|
var t;
|
|
13716
13716
|
(t = e.value) === null || t === void 0 || t.destroy();
|
|
13717
13717
|
}), e;
|
|
@@ -13753,7 +13753,7 @@ const ag = (n = {}) => {
|
|
|
13753
13753
|
})
|
|
13754
13754
|
];
|
|
13755
13755
|
}
|
|
13756
|
-
}), dg = /(?:^|\s)((
|
|
13756
|
+
}), dg = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, fg = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, hg = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, pg = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, mg = qe.create({
|
|
13757
13757
|
name: "bold",
|
|
13758
13758
|
addOptions() {
|
|
13759
13759
|
return {
|
|
@@ -13917,7 +13917,7 @@ const ag = (n = {}) => {
|
|
|
13917
13917
|
n
|
|
13918
13918
|
];
|
|
13919
13919
|
}
|
|
13920
|
-
}), bg = /(?:^|\s)((
|
|
13920
|
+
}), bg = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/, vg = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g, kg = qe.create({
|
|
13921
13921
|
name: "code",
|
|
13922
13922
|
addOptions() {
|
|
13923
13923
|
return {
|
|
@@ -14835,7 +14835,7 @@ function sc(n, e) {
|
|
|
14835
14835
|
return !0;
|
|
14836
14836
|
};
|
|
14837
14837
|
}
|
|
14838
|
-
const oc = sc(!1, !0), lc = sc(!0, !0),
|
|
14838
|
+
const oc = sc(!1, !0), lc = sc(!0, !0), _g = de.create({
|
|
14839
14839
|
name: "history",
|
|
14840
14840
|
addOptions() {
|
|
14841
14841
|
return {
|
|
@@ -14864,7 +14864,7 @@ const oc = sc(!1, !0), lc = sc(!0, !0), Ug = de.create({
|
|
|
14864
14864
|
"Shift-Mod-я": () => this.editor.commands.redo()
|
|
14865
14865
|
};
|
|
14866
14866
|
}
|
|
14867
|
-
}),
|
|
14867
|
+
}), Ug = ie.create({
|
|
14868
14868
|
name: "horizontalRule",
|
|
14869
14869
|
addOptions() {
|
|
14870
14870
|
return {
|
|
@@ -14907,7 +14907,7 @@ const oc = sc(!1, !0), lc = sc(!0, !0), Ug = de.create({
|
|
|
14907
14907
|
})
|
|
14908
14908
|
];
|
|
14909
14909
|
}
|
|
14910
|
-
}), Gg = /(?:^|\s)((
|
|
14910
|
+
}), Gg = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, Yg = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, Xg = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, Zg = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, Qg = qe.create({
|
|
14911
14911
|
name: "italic",
|
|
14912
14912
|
addOptions() {
|
|
14913
14913
|
return {
|
|
@@ -15140,7 +15140,7 @@ const oc = sc(!1, !0), lc = sc(!0, !0), Ug = de.create({
|
|
|
15140
15140
|
"Mod-Alt-0": () => this.editor.commands.setParagraph()
|
|
15141
15141
|
};
|
|
15142
15142
|
}
|
|
15143
|
-
}), iy = /(?:^|\s)((
|
|
15143
|
+
}), iy = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, sy = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, oy = qe.create({
|
|
15144
15144
|
name: "strike",
|
|
15145
15145
|
addOptions() {
|
|
15146
15146
|
return {
|
|
@@ -15203,7 +15203,7 @@ const oc = sc(!1, !0), lc = sc(!0, !0), Ug = de.create({
|
|
|
15203
15203
|
addExtensions() {
|
|
15204
15204
|
var n, e, t, r, i, s, o, l, a, c, u, d, f, h, p, m, y, b;
|
|
15205
15205
|
const w = [];
|
|
15206
|
-
return this.options.blockquote !== !1 && w.push(ug.configure((n = this.options) === null || n === void 0 ? void 0 : n.blockquote)), this.options.bold !== !1 && w.push(mg.configure((e = this.options) === null || e === void 0 ? void 0 : e.bold)), this.options.bulletList !== !1 && w.push(yg.configure((t = this.options) === null || t === void 0 ? void 0 : t.bulletList)), this.options.code !== !1 && w.push(kg.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && w.push(Sg.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && w.push(Mg.configure((s = this.options) === null || s === void 0 ? void 0 : s.document)), this.options.dropcursor !== !1 && w.push(Tg.configure((o = this.options) === null || o === void 0 ? void 0 : o.dropcursor)), this.options.gapcursor !== !1 && w.push(Bg.configure((l = this.options) === null || l === void 0 ? void 0 : l.gapcursor)), this.options.hardBreak !== !1 && w.push(Lg.configure((a = this.options) === null || a === void 0 ? void 0 : a.hardBreak)), this.options.heading !== !1 && w.push(zg.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && w.push(
|
|
15206
|
+
return this.options.blockquote !== !1 && w.push(ug.configure((n = this.options) === null || n === void 0 ? void 0 : n.blockquote)), this.options.bold !== !1 && w.push(mg.configure((e = this.options) === null || e === void 0 ? void 0 : e.bold)), this.options.bulletList !== !1 && w.push(yg.configure((t = this.options) === null || t === void 0 ? void 0 : t.bulletList)), this.options.code !== !1 && w.push(kg.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && w.push(Sg.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && w.push(Mg.configure((s = this.options) === null || s === void 0 ? void 0 : s.document)), this.options.dropcursor !== !1 && w.push(Tg.configure((o = this.options) === null || o === void 0 ? void 0 : o.dropcursor)), this.options.gapcursor !== !1 && w.push(Bg.configure((l = this.options) === null || l === void 0 ? void 0 : l.gapcursor)), this.options.hardBreak !== !1 && w.push(Lg.configure((a = this.options) === null || a === void 0 ? void 0 : a.hardBreak)), this.options.heading !== !1 && w.push(zg.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && w.push(_g.configure((u = this.options) === null || u === void 0 ? void 0 : u.history)), this.options.horizontalRule !== !1 && w.push(Ug.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && w.push(Qg.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && w.push(ey.configure((h = this.options) === null || h === void 0 ? void 0 : h.listItem)), this.options.orderedList !== !1 && w.push(ny.configure((p = this.options) === null || p === void 0 ? void 0 : p.orderedList)), this.options.paragraph !== !1 && w.push(ry.configure((m = this.options) === null || m === void 0 ? void 0 : m.paragraph)), this.options.strike !== !1 && w.push(oy.configure((y = this.options) === null || y === void 0 ? void 0 : y.strike)), this.options.text !== !1 && w.push(ly.configure((b = this.options) === null || b === void 0 ? void 0 : b.text)), w;
|
|
15207
15207
|
}
|
|
15208
15208
|
}), cy = ["onClick"], uy = /* @__PURE__ */ gn({
|
|
15209
15209
|
__name: "UiEditor",
|
|
@@ -15229,7 +15229,7 @@ const oc = sc(!1, !0), lc = sc(!0, !0), Ug = de.create({
|
|
|
15229
15229
|
(l) => {
|
|
15230
15230
|
s.value?.getHTML() !== l && s.value?.commands.setContent(l || "", !1);
|
|
15231
15231
|
}
|
|
15232
|
-
),
|
|
15232
|
+
), Un(() => {
|
|
15233
15233
|
s.value?.destroy();
|
|
15234
15234
|
}), (l, a) => (Ps(), Rs("div", {
|
|
15235
15235
|
class: dr(l.$style.container)
|
package/dist/UiTable/UiTable.js
CHANGED
|
@@ -18,7 +18,7 @@ const h = ["data-loading"], S = ["onClick", "data-current"], C = ["data-current"
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
function g(e) {
|
|
21
|
-
l.modelValue?.value === e ? d("update:modelValue", { value: e, isAsc: !l.modelValue
|
|
21
|
+
l.modelValue?.value === e ? d("update:modelValue", { value: e, isAsc: !l.modelValue?.isAsc }) : d("reset", e);
|
|
22
22
|
}
|
|
23
23
|
return f(() => {
|
|
24
24
|
i(), window.addEventListener("resize", i, !0);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mhz-ui",
|
|
3
3
|
"description": "9000 Mhz ui kit",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.48",
|
|
5
5
|
"author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"test": "vitest run"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@tiptap/pm": "2.2.
|
|
28
|
-
"@tiptap/starter-kit": "2.2.
|
|
29
|
-
"@tiptap/vue-3": "2.2.
|
|
27
|
+
"@tiptap/pm": "2.2.5",
|
|
28
|
+
"@tiptap/starter-kit": "2.2.5",
|
|
29
|
+
"@tiptap/vue-3": "2.2.5",
|
|
30
30
|
"@vueform/slider": "2.1.10",
|
|
31
31
|
"@vueuse/core": "10.9.0",
|
|
32
32
|
"@vueuse/integrations": "10.9.0",
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
"vue-router": "4.3.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@storybook/addon-essentials": "8.0.
|
|
41
|
-
"@storybook/addon-interactions": "8.0.
|
|
42
|
-
"@storybook/addon-links": "8.0.
|
|
43
|
-
"@storybook/blocks": "8.0.
|
|
44
|
-
"@storybook/core-events": "8.0.
|
|
45
|
-
"@storybook/preview-api": "8.0.
|
|
46
|
-
"@storybook/vue3": "8.0.
|
|
47
|
-
"@storybook/vue3-vite": "8.0.
|
|
48
|
-
"@types/node": "20.
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "7.
|
|
50
|
-
"@typescript-eslint/parser": "7.
|
|
40
|
+
"@storybook/addon-essentials": "8.0.6",
|
|
41
|
+
"@storybook/addon-interactions": "8.0.6",
|
|
42
|
+
"@storybook/addon-links": "8.0.6",
|
|
43
|
+
"@storybook/blocks": "8.0.6",
|
|
44
|
+
"@storybook/core-events": "8.0.6",
|
|
45
|
+
"@storybook/preview-api": "8.0.6",
|
|
46
|
+
"@storybook/vue3": "8.0.6",
|
|
47
|
+
"@storybook/vue3-vite": "8.0.6",
|
|
48
|
+
"@types/node": "20.12.5",
|
|
49
|
+
"@typescript-eslint/eslint-plugin": "7.5.0",
|
|
50
|
+
"@typescript-eslint/parser": "7.5.0",
|
|
51
51
|
"@vitejs/plugin-vue": "5.0.4",
|
|
52
52
|
"@vitest/coverage-v8": "1.4.0",
|
|
53
53
|
"@vue/test-utils": "2.4.5",
|
|
@@ -57,25 +57,25 @@
|
|
|
57
57
|
"eslint-plugin-import": "2.29.1",
|
|
58
58
|
"eslint-plugin-prettier": "5.1.3",
|
|
59
59
|
"eslint-plugin-vue": "9.24.0",
|
|
60
|
-
"happy-dom": "14.
|
|
60
|
+
"happy-dom": "14.6.1",
|
|
61
61
|
"postcss-html": "1.6.0",
|
|
62
62
|
"postcss-scss": "4.0.9",
|
|
63
63
|
"prettier": "3.2.5",
|
|
64
|
-
"sass": "1.
|
|
65
|
-
"storybook": "8.0.
|
|
64
|
+
"sass": "1.74.1",
|
|
65
|
+
"storybook": "8.0.6",
|
|
66
66
|
"stylelint": "16.3.1",
|
|
67
67
|
"stylelint-config-recess-order": "5.0.0",
|
|
68
68
|
"stylelint-config-recommended-scss": "14.0.0",
|
|
69
69
|
"stylelint-config-recommended-vue": "1.5.0",
|
|
70
70
|
"stylelint-prettier": "5.0.0",
|
|
71
|
-
"typescript": "5.4.
|
|
72
|
-
"vite": "5.2.
|
|
71
|
+
"typescript": "5.4.4",
|
|
72
|
+
"vite": "5.2.8",
|
|
73
73
|
"vite-plugin-dts": "3.8.1",
|
|
74
74
|
"vite-plugin-static-copy": "1.0.2",
|
|
75
75
|
"vite-svg-loader": "5.1.0",
|
|
76
76
|
"vitest": "1.4.0",
|
|
77
77
|
"vue-linters-config": "0.1.13",
|
|
78
|
-
"vue-tsc": "2.0.
|
|
78
|
+
"vue-tsc": "2.0.10"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"vue": "3.4.21",
|