@nine-lab/nine-ux 0.1.31 → 0.1.33
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/nine-ux.es.js +90 -92
- package/dist/nine-ux.es.js.map +1 -1
- package/dist/nine-ux.umd.js +2 -2
- package/dist/nine-ux.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/nine-ux.es.js
CHANGED
|
@@ -5,8 +5,7 @@ var si = (n) => {
|
|
|
5
5
|
var kl = (n, e, t) => e in n ? bl(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
6
6
|
var ye = (n, e, t) => kl(n, typeof e != "symbol" ? e + "" : e, t), qn = (n, e, t) => e.has(n) || si("Cannot " + t);
|
|
7
7
|
var O = (n, e, t) => (qn(n, e, "read from private field"), t ? t.call(n) : e.get(n)), W = (n, e, t) => e.has(n) ? si("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), oe = (n, e, t, r) => (qn(n, e, "write to private field"), r ? r.call(n, t) : e.set(n, t), t), Q = (n, e, t) => (qn(n, e, "access private method"), t);
|
|
8
|
-
import { nine as
|
|
9
|
-
import { nine as Fh } from "@nine-lab/nine-util";
|
|
8
|
+
import { nine as Rt, subscribeConfig as xl } from "@nine-lab/nine-util";
|
|
10
9
|
const Sl = `
|
|
11
10
|
dialog::backdrop {
|
|
12
11
|
background: rgba(0, 0, 0, 0.3);
|
|
@@ -493,7 +492,7 @@ class wl {
|
|
|
493
492
|
// 1. 값만 깔끔하게 반환
|
|
494
493
|
get cssPath() {
|
|
495
494
|
var e;
|
|
496
|
-
return ((e =
|
|
495
|
+
return ((e = Rt.config.ux) == null ? void 0 : e.cssPath) || O(this, jt);
|
|
497
496
|
}
|
|
498
497
|
set cssPath(e) {
|
|
499
498
|
oe(this, jt, e);
|
|
@@ -516,7 +515,7 @@ class wl {
|
|
|
516
515
|
}
|
|
517
516
|
jt = new WeakMap();
|
|
518
517
|
const Ae = new wl();
|
|
519
|
-
var Kt, Ze, Jt, ae,
|
|
518
|
+
var Kt, Ze, Jt, ae, Tt, dr, ur, Ut, Nn;
|
|
520
519
|
class Cl extends HTMLElement {
|
|
521
520
|
constructor() {
|
|
522
521
|
super();
|
|
@@ -528,7 +527,7 @@ class Cl extends HTMLElement {
|
|
|
528
527
|
W(this, Jt, !1);
|
|
529
528
|
ye(this, "getData", () => {
|
|
530
529
|
const t = {};
|
|
531
|
-
return Q(this, ae,
|
|
530
|
+
return Q(this, ae, Tt).call(this).forEach((r) => {
|
|
532
531
|
const i = r.name;
|
|
533
532
|
if (!i) return;
|
|
534
533
|
let s;
|
|
@@ -541,7 +540,7 @@ class Cl extends HTMLElement {
|
|
|
541
540
|
});
|
|
542
541
|
// 파라미터가 있으면 해당 값으로, 없으면 전체 공백 초기화
|
|
543
542
|
ye(this, "clearData", (t = {}) => {
|
|
544
|
-
Q(this, ae, ur).call(this), Q(this, ae,
|
|
543
|
+
Q(this, ae, ur).call(this), Q(this, ae, Tt).call(this).forEach((r) => {
|
|
545
544
|
const i = r.name;
|
|
546
545
|
if (!i) return;
|
|
547
546
|
const s = t && t[i] !== void 0 ? t[i] : "";
|
|
@@ -552,7 +551,7 @@ class Cl extends HTMLElement {
|
|
|
552
551
|
if (!t || typeof t != "object") return;
|
|
553
552
|
Q(this, ae, ur).call(this);
|
|
554
553
|
let r = !1;
|
|
555
|
-
Q(this, ae,
|
|
554
|
+
Q(this, ae, Tt).call(this).forEach((i) => {
|
|
556
555
|
const s = i.name;
|
|
557
556
|
!s || !t.hasOwnProperty(s) || Q(this, ae, dr).call(this, i, t[s]) && (r = !0);
|
|
558
557
|
}), r && (this.changed = !0);
|
|
@@ -590,7 +589,7 @@ class Cl extends HTMLElement {
|
|
|
590
589
|
}
|
|
591
590
|
}
|
|
592
591
|
Kt = new WeakMap(), Ze = new WeakMap(), Jt = new WeakMap(), ae = new WeakSet(), // 공통 쿼리 함수: 현재 root(Shadow 또는 Light DOM)에서 요소를 찾음
|
|
593
|
-
|
|
592
|
+
Tt = function() {
|
|
594
593
|
return ninegrid.querySelectorAll("input[name], textarea[name], select[name], nx-editor[name]", O(this, Ze));
|
|
595
594
|
}, // [공통 로직 1] 특정 요소에 값을 쓰거나 초기화하는 핵심 함수
|
|
596
595
|
dr = function(t, r) {
|
|
@@ -610,7 +609,7 @@ dr = function(t, r) {
|
|
|
610
609
|
return o;
|
|
611
610
|
}, // [공통 로직 2] 이벤트 리스너 일괄 등록
|
|
612
611
|
ur = function() {
|
|
613
|
-
Q(this, ae,
|
|
612
|
+
Q(this, ae, Tt).call(this).forEach((t) => {
|
|
614
613
|
t.removeEventListener("input", O(this, Ut)), t.addEventListener("input", O(this, Ut));
|
|
615
614
|
});
|
|
616
615
|
}, Ut = new WeakMap(), Nn = new WeakMap();
|
|
@@ -1285,7 +1284,7 @@ function Qe(n, e) {
|
|
|
1285
1284
|
let t = e.length - 1;
|
|
1286
1285
|
t >= 0 && n.isText && n.sameMarkup(e[t]) ? e[t] = n.withText(e[t].text + n.text) : e.push(n);
|
|
1287
1286
|
}
|
|
1288
|
-
function
|
|
1287
|
+
function Nt(n, e, t, r) {
|
|
1289
1288
|
let i = (e || n).node(t), s = 0, o = e ? e.index(t) : i.childCount;
|
|
1290
1289
|
n && (s = n.index(t), n.depth > t ? s++ : n.textOffset && (Qe(n.nodeAfter, r), s++));
|
|
1291
1290
|
for (let l = s; l < o; l++)
|
|
@@ -1297,15 +1296,15 @@ function et(n, e) {
|
|
|
1297
1296
|
}
|
|
1298
1297
|
function vs(n, e, t, r, i) {
|
|
1299
1298
|
let s = n.depth > i && hr(n, e, i + 1), o = r.depth > i && hr(t, r, i + 1), l = [];
|
|
1300
|
-
return
|
|
1299
|
+
return Nt(null, n, i, l), s && o && e.index(i) == t.index(i) ? (Es(s, o), Qe(et(s, vs(n, e, t, r, i + 1)), l)) : (s && Qe(et(s, pn(n, e, i + 1)), l), Nt(e, t, i, l), o && Qe(et(o, pn(t, r, i + 1)), l)), Nt(r, null, i, l), new b(l);
|
|
1301
1300
|
}
|
|
1302
1301
|
function pn(n, e, t) {
|
|
1303
1302
|
let r = [];
|
|
1304
|
-
if (
|
|
1303
|
+
if (Nt(null, n, t, r), n.depth > t) {
|
|
1305
1304
|
let i = hr(n, e, t + 1);
|
|
1306
1305
|
Qe(et(i, pn(n, e, t + 1)), r);
|
|
1307
1306
|
}
|
|
1308
|
-
return
|
|
1307
|
+
return Nt(e, null, t, r), new b(r);
|
|
1309
1308
|
}
|
|
1310
1309
|
function Ol(n, e) {
|
|
1311
1310
|
let t = e.depth - n.openStart, i = e.node(t).copy(n.content);
|
|
@@ -2903,13 +2902,13 @@ const Fs = {
|
|
|
2903
2902
|
script: !0,
|
|
2904
2903
|
style: !0,
|
|
2905
2904
|
title: !0
|
|
2906
|
-
}, $s = { ol: !0, ul: !0 }, Bt = 1, mr = 2,
|
|
2905
|
+
}, $s = { ol: !0, ul: !0 }, Bt = 1, mr = 2, At = 4;
|
|
2907
2906
|
function ui(n, e, t) {
|
|
2908
|
-
return e != null ? (e ? Bt : 0) | (e === "full" ? mr : 0) : n && n.whitespace == "pre" ? Bt | mr : t & ~
|
|
2907
|
+
return e != null ? (e ? Bt : 0) | (e === "full" ? mr : 0) : n && n.whitespace == "pre" ? Bt | mr : t & ~At;
|
|
2909
2908
|
}
|
|
2910
2909
|
class en {
|
|
2911
2910
|
constructor(e, t, r, i, s, o) {
|
|
2912
|
-
this.type = e, this.attrs = t, this.marks = r, this.solid = i, this.options = o, this.content = [], this.activeMarks = A.none, this.match = s || (o &
|
|
2911
|
+
this.type = e, this.attrs = t, this.marks = r, this.solid = i, this.options = o, this.content = [], this.activeMarks = A.none, this.match = s || (o & At ? null : e.contentMatch);
|
|
2913
2912
|
}
|
|
2914
2913
|
findWrapping(e) {
|
|
2915
2914
|
if (!this.match) {
|
|
@@ -2943,7 +2942,7 @@ class en {
|
|
|
2943
2942
|
class fi {
|
|
2944
2943
|
constructor(e, t, r) {
|
|
2945
2944
|
this.parser = e, this.options = t, this.isOpen = r, this.open = 0, this.localPreserveWS = !1;
|
|
2946
|
-
let i = t.topNode, s, o = ui(null, t.preserveWhitespace, 0) | (r ?
|
|
2945
|
+
let i = t.topNode, s, o = ui(null, t.preserveWhitespace, 0) | (r ? At : 0);
|
|
2947
2946
|
i ? s = new en(i.type, i.attrs, A.none, !0, t.topMatch || i.type.contentMatch, o) : r ? s = new en(null, null, A.none, !0, null, o) : s = new en(e.schema.topNodeType, null, A.none, !0, null, o), this.nodes = [s], this.find = t.findPositions, this.needsBlock = !1;
|
|
2948
2947
|
}
|
|
2949
2948
|
get top() {
|
|
@@ -3126,7 +3125,7 @@ class fi {
|
|
|
3126
3125
|
let o = this.top;
|
|
3127
3126
|
o.match = o.match && o.match.matchType(e);
|
|
3128
3127
|
let l = ui(e, s, o.options);
|
|
3129
|
-
o.options &
|
|
3128
|
+
o.options & At && o.content.length == 0 && (l |= At);
|
|
3130
3129
|
let a = A.none;
|
|
3131
3130
|
return r = r.filter((c) => (o.type ? o.type.allowsMarkType(c.type) : pi(c.type, e)) ? (a = c.addToSet(a), !1) : !0), this.nodes.push(new en(e, t, a, i, null, l)), this.open++, r;
|
|
3132
3131
|
}
|
|
@@ -4115,7 +4114,7 @@ function Lr(n, e, t, r = t.contentMatch, i = !0) {
|
|
|
4115
4114
|
function Zl(n, e, t) {
|
|
4116
4115
|
return (e == 0 || n.canReplace(e, n.childCount)) && (t == n.childCount || n.canReplace(0, t));
|
|
4117
4116
|
}
|
|
4118
|
-
function
|
|
4117
|
+
function wt(n) {
|
|
4119
4118
|
let t = n.parent.content.cutByIndex(n.startIndex, n.endIndex);
|
|
4120
4119
|
for (let r = n.depth, i = 0, s = 0; ; --r) {
|
|
4121
4120
|
let o = n.$from.node(r), l = n.$from.index(r) + i, a = n.$to.indexAfter(r) - s;
|
|
@@ -4418,9 +4417,9 @@ class da {
|
|
|
4418
4417
|
let { content: e, openStart: t, openEnd: r } = this.unplaced, i = Un(e, t);
|
|
4419
4418
|
if (i.childCount <= 1 && t > 0) {
|
|
4420
4419
|
let s = e.size - t <= t + i.size;
|
|
4421
|
-
this.unplaced = new k(
|
|
4420
|
+
this.unplaced = new k(Ot(e, t - 1, 1), t - 1, s ? t - 1 : r);
|
|
4422
4421
|
} else
|
|
4423
|
-
this.unplaced = new k(
|
|
4422
|
+
this.unplaced = new k(Ot(e, t, 1), t, r);
|
|
4424
4423
|
}
|
|
4425
4424
|
// Move content from the unplaced slice at `sliceDepth` to the
|
|
4426
4425
|
// frontier node at `frontierDepth`. Close that frontier node when
|
|
@@ -4445,12 +4444,12 @@ class da {
|
|
|
4445
4444
|
c++, (c > 1 || a == 0 || m.content.size) && (u = g, d.push(Ys(m.mark(f.allowedMarks(m.marks)), c == 1 ? a : 0, c == l.childCount ? h : -1)));
|
|
4446
4445
|
}
|
|
4447
4446
|
let p = c == l.childCount;
|
|
4448
|
-
p || (h = -1), this.placed =
|
|
4447
|
+
p || (h = -1), this.placed = Et(this.placed, t, b.from(d)), this.frontier[t].match = u, p && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
|
|
4449
4448
|
for (let m = 0, g = l; m < h; m++) {
|
|
4450
4449
|
let y = g.lastChild;
|
|
4451
4450
|
this.frontier.push({ type: y.type, match: y.contentMatchAt(y.childCount) }), g = y.content;
|
|
4452
4451
|
}
|
|
4453
|
-
this.unplaced = p ? e == 0 ? k.empty : new k(
|
|
4452
|
+
this.unplaced = p ? e == 0 ? k.empty : new k(Ot(o.content, e - 1, 1), e - 1, h < 0 ? o.openEnd : e - 1) : new k(Ot(o.content, e, c), o.openStart, o.openEnd);
|
|
4454
4453
|
}
|
|
4455
4454
|
mustMoveInline() {
|
|
4456
4455
|
if (!this.$to.parent.isTextblock)
|
|
@@ -4482,7 +4481,7 @@ class da {
|
|
|
4482
4481
|
return null;
|
|
4483
4482
|
for (; this.depth > t.depth; )
|
|
4484
4483
|
this.closeFrontierNode();
|
|
4485
|
-
t.fit.childCount && (this.placed =
|
|
4484
|
+
t.fit.childCount && (this.placed = Et(this.placed, t.depth, t.fit)), e = t.move;
|
|
4486
4485
|
for (let r = t.depth + 1; r <= e.depth; r++) {
|
|
4487
4486
|
let i = e.node(r), s = i.type.contentMatch.fillBefore(i.content, !0, e.index(r));
|
|
4488
4487
|
this.openFrontierNode(i.type, i.attrs, s);
|
|
@@ -4491,18 +4490,18 @@ class da {
|
|
|
4491
4490
|
}
|
|
4492
4491
|
openFrontierNode(e, t = null, r) {
|
|
4493
4492
|
let i = this.frontier[this.depth];
|
|
4494
|
-
i.match = i.match.matchType(e), this.placed =
|
|
4493
|
+
i.match = i.match.matchType(e), this.placed = Et(this.placed, this.depth, b.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
|
|
4495
4494
|
}
|
|
4496
4495
|
closeFrontierNode() {
|
|
4497
4496
|
let t = this.frontier.pop().match.fillBefore(b.empty, !0);
|
|
4498
|
-
t.childCount && (this.placed =
|
|
4497
|
+
t.childCount && (this.placed = Et(this.placed, this.frontier.length, t));
|
|
4499
4498
|
}
|
|
4500
4499
|
}
|
|
4501
|
-
function
|
|
4502
|
-
return e == 0 ? n.cutByIndex(t, n.childCount) : n.replaceChild(0, n.firstChild.copy(
|
|
4500
|
+
function Ot(n, e, t) {
|
|
4501
|
+
return e == 0 ? n.cutByIndex(t, n.childCount) : n.replaceChild(0, n.firstChild.copy(Ot(n.firstChild.content, e - 1, t)));
|
|
4503
4502
|
}
|
|
4504
|
-
function
|
|
4505
|
-
return e == 0 ? n.append(t) : n.replaceChild(n.childCount - 1, n.lastChild.copy(
|
|
4503
|
+
function Et(n, e, t) {
|
|
4504
|
+
return e == 0 ? n.append(t) : n.replaceChild(n.childCount - 1, n.lastChild.copy(Et(n.lastChild.content, e - 1, t)));
|
|
4506
4505
|
}
|
|
4507
4506
|
function Un(n, e) {
|
|
4508
4507
|
for (let t = 0; t < e; t++)
|
|
@@ -4707,15 +4706,15 @@ class zt extends Z {
|
|
|
4707
4706
|
}
|
|
4708
4707
|
}
|
|
4709
4708
|
Z.jsonID("docAttr", zt);
|
|
4710
|
-
let
|
|
4709
|
+
let kt = class extends Error {
|
|
4711
4710
|
};
|
|
4712
|
-
|
|
4711
|
+
kt = function n(e) {
|
|
4713
4712
|
let t = Error.call(this, e);
|
|
4714
4713
|
return t.__proto__ = n.prototype, t;
|
|
4715
4714
|
};
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4715
|
+
kt.prototype = Object.create(Error.prototype);
|
|
4716
|
+
kt.prototype.constructor = kt;
|
|
4717
|
+
kt.prototype.name = "TransformError";
|
|
4719
4718
|
class ga {
|
|
4720
4719
|
/**
|
|
4721
4720
|
Create a transform that starts with the given document.
|
|
@@ -4736,7 +4735,7 @@ class ga {
|
|
|
4736
4735
|
step(e) {
|
|
4737
4736
|
let t = this.maybeStep(e);
|
|
4738
4737
|
if (t.failed)
|
|
4739
|
-
throw new
|
|
4738
|
+
throw new kt(t.failed);
|
|
4740
4739
|
return this;
|
|
4741
4740
|
}
|
|
4742
4741
|
/**
|
|
@@ -5507,13 +5506,13 @@ class ka extends ga {
|
|
|
5507
5506
|
function Ci(n, e) {
|
|
5508
5507
|
return !e || !n ? n : n.bind(e);
|
|
5509
5508
|
}
|
|
5510
|
-
class
|
|
5509
|
+
class vt {
|
|
5511
5510
|
constructor(e, t, r) {
|
|
5512
5511
|
this.name = e, this.init = Ci(t.init, r), this.apply = Ci(t.apply, r);
|
|
5513
5512
|
}
|
|
5514
5513
|
}
|
|
5515
5514
|
const xa = [
|
|
5516
|
-
new
|
|
5515
|
+
new vt("doc", {
|
|
5517
5516
|
init(n) {
|
|
5518
5517
|
return n.doc || n.schema.topNodeType.createAndFill();
|
|
5519
5518
|
},
|
|
@@ -5521,7 +5520,7 @@ const xa = [
|
|
|
5521
5520
|
return n.doc;
|
|
5522
5521
|
}
|
|
5523
5522
|
}),
|
|
5524
|
-
new
|
|
5523
|
+
new vt("selection", {
|
|
5525
5524
|
init(n, e) {
|
|
5526
5525
|
return n.selection || E.atStart(e.doc);
|
|
5527
5526
|
},
|
|
@@ -5529,7 +5528,7 @@ const xa = [
|
|
|
5529
5528
|
return n.selection;
|
|
5530
5529
|
}
|
|
5531
5530
|
}),
|
|
5532
|
-
new
|
|
5531
|
+
new vt("storedMarks", {
|
|
5533
5532
|
init(n) {
|
|
5534
5533
|
return n.storedMarks || null;
|
|
5535
5534
|
},
|
|
@@ -5537,7 +5536,7 @@ const xa = [
|
|
|
5537
5536
|
return r.selection.$cursor ? n.storedMarks : null;
|
|
5538
5537
|
}
|
|
5539
5538
|
}),
|
|
5540
|
-
new
|
|
5539
|
+
new vt("scrollToSelection", {
|
|
5541
5540
|
init() {
|
|
5542
5541
|
return 0;
|
|
5543
5542
|
},
|
|
@@ -5551,7 +5550,7 @@ class Yn {
|
|
|
5551
5550
|
this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = xa.slice(), t && t.forEach((r) => {
|
|
5552
5551
|
if (this.pluginsByKey[r.key])
|
|
5553
5552
|
throw new RangeError("Adding different instances of a keyed plugin (" + r.key + ")");
|
|
5554
|
-
this.plugins.push(r), this.pluginsByKey[r.key] = r, r.spec.state && this.fields.push(new
|
|
5553
|
+
this.plugins.push(r), this.pluginsByKey[r.key] = r, r.spec.state && this.fields.push(new vt(r.key, r.spec.state, r));
|
|
5555
5554
|
});
|
|
5556
5555
|
}
|
|
5557
5556
|
}
|
|
@@ -5770,7 +5769,7 @@ const K = function(n) {
|
|
|
5770
5769
|
for (var e = 0; ; e++)
|
|
5771
5770
|
if (n = n.previousSibling, !n)
|
|
5772
5771
|
return e;
|
|
5773
|
-
},
|
|
5772
|
+
}, xt = function(n) {
|
|
5774
5773
|
let e = n.assignedSlot || n.parentNode;
|
|
5775
5774
|
return e && e.nodeType == 11 ? e.host : e;
|
|
5776
5775
|
};
|
|
@@ -5881,7 +5880,7 @@ function Ea(n, e, t) {
|
|
|
5881
5880
|
}
|
|
5882
5881
|
const xe = typeof navigator < "u" ? navigator : null, Oi = typeof document < "u" ? document : null, Ke = xe && xe.userAgent || "", kr = /Edge\/(\d+)/.exec(Ke), to = /MSIE \d/.exec(Ke), xr = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ke), ie = !!(to || xr || kr), Ve = to ? document.documentMode : xr ? +xr[1] : kr ? +kr[1] : 0, pe = !ie && /gecko\/(\d+)/i.test(Ke);
|
|
5883
5882
|
pe && +(/Firefox\/(\d+)/.exec(Ke) || [0, 0])[1];
|
|
5884
|
-
const Sr = !ie && /Chrome\/(\d+)/.exec(Ke), U = !!Sr, no = Sr ? +Sr[1] : 0, X = !ie && !!xe && /Apple Computer/.test(xe.vendor),
|
|
5883
|
+
const Sr = !ie && /Chrome\/(\d+)/.exec(Ke), U = !!Sr, no = Sr ? +Sr[1] : 0, X = !ie && !!xe && /Apple Computer/.test(xe.vendor), St = X && (/Mobile\/\w+/.test(Ke) || !!xe && xe.maxTouchPoints > 2), ue = St || (xe ? /Mac/.test(xe.platform) : !1), ro = xe ? /Win/.test(xe.platform) : !1, Ee = /Android \d/.test(Ke), Xt = !!Oi && "webkitFontSmoothing" in Oi.documentElement.style, va = Xt ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
5885
5884
|
function Na(n) {
|
|
5886
5885
|
let e = n.defaultView && n.defaultView.visualViewport;
|
|
5887
5886
|
return e ? {
|
|
@@ -5912,7 +5911,7 @@ function Ei(n, e, t) {
|
|
|
5912
5911
|
let r = n.someProp("scrollThreshold") || 0, i = n.someProp("scrollMargin") || 5, s = n.dom.ownerDocument;
|
|
5913
5912
|
for (let o = t || n.dom; o; ) {
|
|
5914
5913
|
if (o.nodeType != 1) {
|
|
5915
|
-
o =
|
|
5914
|
+
o = xt(o);
|
|
5916
5915
|
continue;
|
|
5917
5916
|
}
|
|
5918
5917
|
let l = o, a = l == s.body, c = a ? Na(s) : Aa(l), d = 0, u = 0;
|
|
@@ -5928,7 +5927,7 @@ function Ei(n, e, t) {
|
|
|
5928
5927
|
let f = a ? "fixed" : getComputedStyle(o).position;
|
|
5929
5928
|
if (/^(fixed|sticky)$/.test(f))
|
|
5930
5929
|
break;
|
|
5931
|
-
o = f == "absolute" ? o.offsetParent :
|
|
5930
|
+
o = f == "absolute" ? o.offsetParent : xt(o);
|
|
5932
5931
|
}
|
|
5933
5932
|
}
|
|
5934
5933
|
function Da(n) {
|
|
@@ -5947,7 +5946,7 @@ function Da(n) {
|
|
|
5947
5946
|
}
|
|
5948
5947
|
function io(n) {
|
|
5949
5948
|
let e = [], t = n.ownerDocument;
|
|
5950
|
-
for (let r = n; r && (e.push({ dom: r, top: r.scrollTop, left: r.scrollLeft }), n != t); r =
|
|
5949
|
+
for (let r = n; r && (e.push({ dom: r, top: r.scrollTop, left: r.scrollLeft }), n != t); r = xt(r))
|
|
5951
5950
|
;
|
|
5952
5951
|
return e;
|
|
5953
5952
|
}
|
|
@@ -6070,7 +6069,7 @@ function Fa(n, e) {
|
|
|
6070
6069
|
return null;
|
|
6071
6070
|
}
|
|
6072
6071
|
if (X)
|
|
6073
|
-
for (let c = o; r && c; c =
|
|
6072
|
+
for (let c = o; r && c; c = xt(c))
|
|
6074
6073
|
c.draggable && (r = void 0);
|
|
6075
6074
|
if (o = Ba(o, e), r) {
|
|
6076
6075
|
if (pe && r.nodeType == 1 && (i = Math.min(i, r.childNodes.length), i < r.childNodes.length)) {
|
|
@@ -6107,13 +6106,13 @@ function ao(n, e, t) {
|
|
|
6107
6106
|
if (c.top == a.top) {
|
|
6108
6107
|
let d = De(Te(r, i, i + 1), -1);
|
|
6109
6108
|
if (d.top != a.top)
|
|
6110
|
-
return
|
|
6109
|
+
return Ct(d, d.left < c.left);
|
|
6111
6110
|
}
|
|
6112
6111
|
}
|
|
6113
6112
|
return a;
|
|
6114
6113
|
} else {
|
|
6115
6114
|
let a = i, c = i, d = t < 0 ? 1 : -1;
|
|
6116
|
-
return t < 0 && !i ? (c++, d = -1) : t >= 0 && i == r.nodeValue.length ? (a--, d = 1) : t < 0 ? a-- : c++,
|
|
6115
|
+
return t < 0 && !i ? (c++, d = -1) : t >= 0 && i == r.nodeValue.length ? (a--, d = 1) : t < 0 ? a-- : c++, Ct(De(Te(r, a, c), d), d < 0);
|
|
6117
6116
|
}
|
|
6118
6117
|
if (!n.state.doc.resolve(e - (s || 0)).parent.inlineContent) {
|
|
6119
6118
|
if (s == null && i && (t < 0 || i == fe(r))) {
|
|
@@ -6131,7 +6130,7 @@ function ao(n, e, t) {
|
|
|
6131
6130
|
if (s == null && i && (t < 0 || i == fe(r))) {
|
|
6132
6131
|
let a = r.childNodes[i - 1], c = a.nodeType == 3 ? Te(a, fe(a) - (o ? 0 : 1)) : a.nodeType == 1 && (a.nodeName != "BR" || !a.nextSibling) ? a : null;
|
|
6133
6132
|
if (c)
|
|
6134
|
-
return
|
|
6133
|
+
return Ct(De(c, 1), !1);
|
|
6135
6134
|
}
|
|
6136
6135
|
if (s == null && i < fe(r)) {
|
|
6137
6136
|
let a = r.childNodes[i];
|
|
@@ -6139,11 +6138,11 @@ function ao(n, e, t) {
|
|
|
6139
6138
|
a = a.nextSibling;
|
|
6140
6139
|
let c = a ? a.nodeType == 3 ? Te(a, 0, o ? 0 : 1) : a.nodeType == 1 ? a : null : null;
|
|
6141
6140
|
if (c)
|
|
6142
|
-
return
|
|
6141
|
+
return Ct(De(c, -1), !0);
|
|
6143
6142
|
}
|
|
6144
|
-
return
|
|
6143
|
+
return Ct(De(r.nodeType == 3 ? Te(r) : r, -t), t >= 0);
|
|
6145
6144
|
}
|
|
6146
|
-
function
|
|
6145
|
+
function Ct(n, e) {
|
|
6147
6146
|
if (n.width == 0)
|
|
6148
6147
|
return n;
|
|
6149
6148
|
let t = e ? n.left : n.right;
|
|
@@ -6729,7 +6728,7 @@ class He extends Zt {
|
|
|
6729
6728
|
a.syncToMarks(c.marks, r, e, f);
|
|
6730
6729
|
let h;
|
|
6731
6730
|
a.findNodeMatch(c, d, u, f) || l && e.state.selection.from > i && e.state.selection.to < i + c.nodeSize && (h = a.findIndexWithChild(s.node)) > -1 && a.updateNodeAt(c, d, u, h, e) || a.updateNextNode(c, d, u, e, f, i) || a.addNode(c, d, u, e, i), i += c.nodeSize;
|
|
6732
|
-
}), a.syncToMarks([], r, e, 0), this.node.isTextblock && a.addTextblockHacks(), a.destroyRest(), (a.changed || this.dirty == Ge) && (o && this.protectLocalComposition(e, o), ho(this.contentDOM, this.children, e),
|
|
6731
|
+
}), a.syncToMarks([], r, e, 0), this.node.isTextblock && a.addTextblockHacks(), a.destroyRest(), (a.changed || this.dirty == Ge) && (o && this.protectLocalComposition(e, o), ho(this.contentDOM, this.children, e), St && Xa(this.dom));
|
|
6733
6732
|
}
|
|
6734
6733
|
localCompositionInfo(e, t) {
|
|
6735
6734
|
let { from: r, to: i } = e.state.selection;
|
|
@@ -6899,22 +6898,22 @@ function ho(n, e, t) {
|
|
|
6899
6898
|
r = Pi(r), i = !0;
|
|
6900
6899
|
i && t.trackWrites == n && (t.trackWrites = null);
|
|
6901
6900
|
}
|
|
6902
|
-
const
|
|
6901
|
+
const Dt = function(n) {
|
|
6903
6902
|
n && (this.nodeName = n);
|
|
6904
6903
|
};
|
|
6905
|
-
|
|
6906
|
-
const Ye = [new
|
|
6904
|
+
Dt.prototype = /* @__PURE__ */ Object.create(null);
|
|
6905
|
+
const Ye = [new Dt()];
|
|
6907
6906
|
function Mr(n, e, t) {
|
|
6908
6907
|
if (n.length == 0)
|
|
6909
6908
|
return Ye;
|
|
6910
|
-
let r = t ? Ye[0] : new
|
|
6909
|
+
let r = t ? Ye[0] : new Dt(), i = [r];
|
|
6911
6910
|
for (let s = 0; s < n.length; s++) {
|
|
6912
6911
|
let o = n[s].type.attrs;
|
|
6913
6912
|
if (o) {
|
|
6914
|
-
o.nodeName && i.push(r = new
|
|
6913
|
+
o.nodeName && i.push(r = new Dt(o.nodeName));
|
|
6915
6914
|
for (let l in o) {
|
|
6916
6915
|
let a = o[l];
|
|
6917
|
-
a != null && (t && i.length == 1 && i.push(r = new
|
|
6916
|
+
a != null && (t && i.length == 1 && i.push(r = new Dt(e.isInline ? "span" : "div")), l == "class" ? r.class = (r.class ? r.class + " " : "") + a : l == "style" ? r.style = (r.style ? r.style + ";" : "") + a : l != "nodeName" && (r[l] = a));
|
|
6918
6917
|
}
|
|
6919
6918
|
}
|
|
6920
6919
|
}
|
|
@@ -7403,7 +7402,7 @@ function Vi(n, e, t) {
|
|
|
7403
7402
|
function bn(n) {
|
|
7404
7403
|
return n.nodeType == 3 ? n.nodeValue.length : n.childNodes.length;
|
|
7405
7404
|
}
|
|
7406
|
-
function
|
|
7405
|
+
function It(n, e) {
|
|
7407
7406
|
let t = n.pmViewDesc;
|
|
7408
7407
|
return t && t.size == 0 && (e < 0 || n.nextSibling || n.nodeName != "BR");
|
|
7409
7408
|
}
|
|
@@ -7415,13 +7414,13 @@ function nc(n) {
|
|
|
7415
7414
|
if (!t)
|
|
7416
7415
|
return;
|
|
7417
7416
|
let i, s, o = !1;
|
|
7418
|
-
for (pe && t.nodeType == 1 && r < bn(t) &&
|
|
7417
|
+
for (pe && t.nodeType == 1 && r < bn(t) && It(t.childNodes[r], -1) && (o = !0); ; )
|
|
7419
7418
|
if (r > 0) {
|
|
7420
7419
|
if (t.nodeType != 1)
|
|
7421
7420
|
break;
|
|
7422
7421
|
{
|
|
7423
7422
|
let l = t.childNodes[r - 1];
|
|
7424
|
-
if (
|
|
7423
|
+
if (It(l, -1))
|
|
7425
7424
|
i = t, s = --r;
|
|
7426
7425
|
else if (l.nodeType == 3)
|
|
7427
7426
|
t = l, r = t.nodeValue.length;
|
|
@@ -7433,7 +7432,7 @@ function nc(n) {
|
|
|
7433
7432
|
break;
|
|
7434
7433
|
{
|
|
7435
7434
|
let l = t.previousSibling;
|
|
7436
|
-
for (; l &&
|
|
7435
|
+
for (; l && It(l, -1); )
|
|
7437
7436
|
i = t.parentNode, s = K(l), l = l.previousSibling;
|
|
7438
7437
|
if (l)
|
|
7439
7438
|
t = l, r = bn(t);
|
|
@@ -7456,7 +7455,7 @@ function rc(n) {
|
|
|
7456
7455
|
if (t.nodeType != 1)
|
|
7457
7456
|
break;
|
|
7458
7457
|
let l = t.childNodes[r];
|
|
7459
|
-
if (
|
|
7458
|
+
if (It(l, 1))
|
|
7460
7459
|
s = t, o = ++r;
|
|
7461
7460
|
else
|
|
7462
7461
|
break;
|
|
@@ -7465,7 +7464,7 @@ function rc(n) {
|
|
|
7465
7464
|
break;
|
|
7466
7465
|
{
|
|
7467
7466
|
let l = t.nextSibling;
|
|
7468
|
-
for (; l &&
|
|
7467
|
+
for (; l && It(l, 1); )
|
|
7469
7468
|
s = l.parentNode, o = K(l) + 1, l = l.nextSibling;
|
|
7470
7469
|
if (l)
|
|
7471
7470
|
t = l, r = 0, i = bn(t);
|
|
@@ -7857,7 +7856,7 @@ function xc(n, e) {
|
|
|
7857
7856
|
te.keydown = (n, e) => {
|
|
7858
7857
|
let t = e;
|
|
7859
7858
|
if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !Eo(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(Ee && U && t.keyCode == 13)))
|
|
7860
|
-
if (t.keyCode != 229 && n.domObserver.forceFlush(),
|
|
7859
|
+
if (t.keyCode != 229 && n.domObserver.forceFlush(), St && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
|
|
7861
7860
|
let r = Date.now();
|
|
7862
7861
|
n.input.lastIOSEnter = r, n.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
7863
7862
|
n.input.lastIOSEnter == r && (n.someProp("handleKeyDown", (i) => i(n, Ue(13, "Enter"))), n.input.lastIOSEnter = 0);
|
|
@@ -8103,7 +8102,7 @@ function Rc(n, e) {
|
|
|
8103
8102
|
t.parentNode && t.parentNode.removeChild(t), n.focus();
|
|
8104
8103
|
}, 50);
|
|
8105
8104
|
}
|
|
8106
|
-
const Ft = ie && Ve < 15 ||
|
|
8105
|
+
const Ft = ie && Ve < 15 || St && va < 604;
|
|
8107
8106
|
ee.copy = te.cut = (n, e) => {
|
|
8108
8107
|
let t = e, r = n.state.selection, i = t.type == "cut";
|
|
8109
8108
|
if (r.empty)
|
|
@@ -8840,9 +8839,9 @@ class qc {
|
|
|
8840
8839
|
if (!e.focusNode)
|
|
8841
8840
|
return !0;
|
|
8842
8841
|
let t = /* @__PURE__ */ new Set(), r;
|
|
8843
|
-
for (let s = e.focusNode; s; s =
|
|
8842
|
+
for (let s = e.focusNode; s; s = xt(s))
|
|
8844
8843
|
t.add(s);
|
|
8845
|
-
for (let s = e.anchorNode; s; s =
|
|
8844
|
+
for (let s = e.anchorNode; s; s = xt(s))
|
|
8846
8845
|
if (t.has(s)) {
|
|
8847
8846
|
r = s;
|
|
8848
8847
|
break;
|
|
@@ -9047,7 +9046,7 @@ function Xc(n, e, t, r, i) {
|
|
|
9047
9046
|
let a = n.state.selection, c = _c(n, e, t), d = n.state.doc, u = d.slice(c.from, c.to), f, h;
|
|
9048
9047
|
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;
|
|
9049
9048
|
let p = ed(u.content, c.doc.content, c.from, f, h);
|
|
9050
|
-
if (p && n.input.domChangeCount++, (
|
|
9049
|
+
if (p && n.input.domChangeCount++, (St && n.input.lastIOSEnter > Date.now() - 225 || Ee) && i.some((C) => C.nodeType == 1 && !Yc.test(C.nodeName)) && (!p || p.endA >= p.endB) && n.someProp("handleKeyDown", (C) => C(n, Ue(13, "Enter")))) {
|
|
9051
9050
|
n.input.lastIOSEnter = 0;
|
|
9052
9051
|
return;
|
|
9053
9052
|
}
|
|
@@ -9066,7 +9065,7 @@ function Xc(n, e, t, r, i) {
|
|
|
9066
9065
|
}
|
|
9067
9066
|
n.state.selection.from < n.state.selection.to && p.start == p.endB && n.state.selection instanceof M && (p.start > n.state.selection.from && p.start <= n.state.selection.from + 2 && n.state.selection.from >= c.from ? p.start = n.state.selection.from : p.endA < n.state.selection.to && p.endA >= n.state.selection.to - 2 && n.state.selection.to <= c.to && (p.endB += n.state.selection.to - p.endA, p.endA = n.state.selection.to)), ie && Ve <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > c.from && c.doc.textBetween(p.start - c.from - 1, p.start - c.from + 1) == " " && (p.start--, p.endA--, p.endB--);
|
|
9068
9067
|
let m = c.doc.resolveNoCache(p.start - c.from), g = c.doc.resolveNoCache(p.endB - c.from), y = d.resolve(p.start), T = m.sameParent(g) && m.parent.inlineContent && y.end() >= p.endA;
|
|
9069
|
-
if ((
|
|
9068
|
+
if ((St && n.input.lastIOSEnter > Date.now() - 225 && (!T || i.some((C) => C.nodeName == "DIV" || C.nodeName == "P")) || !T && m.pos < c.doc.content.size && (!m.sameParent(g) || !m.parent.inlineContent) && m.pos < g.pos && !/\S/.test(c.doc.textBetween(m.pos, g.pos, "", ""))) && n.someProp("handleKeyDown", (C) => C(n, Ue(13, "Enter")))) {
|
|
9070
9069
|
n.input.lastIOSEnter = 0;
|
|
9071
9070
|
return;
|
|
9072
9071
|
}
|
|
@@ -9715,19 +9714,19 @@ const $o = (n, e, t) => {
|
|
|
9715
9714
|
return !1;
|
|
9716
9715
|
let i = Gr(r);
|
|
9717
9716
|
if (!i) {
|
|
9718
|
-
let o = r.blockRange(), l = o &&
|
|
9717
|
+
let o = r.blockRange(), l = o && wt(o);
|
|
9719
9718
|
return l == null ? !1 : (e && e(n.tr.lift(o, l).scrollIntoView()), !0);
|
|
9720
9719
|
}
|
|
9721
9720
|
let s = i.nodeBefore;
|
|
9722
9721
|
if (_o(n, i, e, -1))
|
|
9723
9722
|
return !0;
|
|
9724
|
-
if (r.parent.content.size == 0 && (
|
|
9723
|
+
if (r.parent.content.size == 0 && (Mt(s, "end") || S.isSelectable(s)))
|
|
9725
9724
|
for (let o = r.depth; ; o--) {
|
|
9726
9725
|
let l = In(n.doc, r.before(o), r.after(o), k.empty);
|
|
9727
9726
|
if (l && l.slice.size < l.to - l.from) {
|
|
9728
9727
|
if (e) {
|
|
9729
9728
|
let a = n.tr.step(l);
|
|
9730
|
-
a.setSelection(
|
|
9729
|
+
a.setSelection(Mt(s, "end") ? E.findFrom(a.doc.resolve(a.mapping.map(i.pos, -1)), -1) : S.create(a.doc, i.pos - s.nodeSize)), e(a.scrollIntoView());
|
|
9731
9730
|
}
|
|
9732
9731
|
return !0;
|
|
9733
9732
|
}
|
|
@@ -9776,7 +9775,7 @@ function Vo(n, e, t) {
|
|
|
9776
9775
|
}
|
|
9777
9776
|
return !0;
|
|
9778
9777
|
}
|
|
9779
|
-
function
|
|
9778
|
+
function Mt(n, e, t = !1) {
|
|
9780
9779
|
for (let r = n; r; r = e == "start" ? r.firstChild : r.lastChild) {
|
|
9781
9780
|
if (r.isTextblock)
|
|
9782
9781
|
return !0;
|
|
@@ -9821,12 +9820,12 @@ const qo = (n, e, t) => {
|
|
|
9821
9820
|
let s = i.nodeAfter;
|
|
9822
9821
|
if (_o(n, i, e, 1))
|
|
9823
9822
|
return !0;
|
|
9824
|
-
if (r.parent.content.size == 0 && (
|
|
9823
|
+
if (r.parent.content.size == 0 && (Mt(s, "start") || S.isSelectable(s))) {
|
|
9825
9824
|
let o = In(n.doc, r.before(), r.after(), k.empty);
|
|
9826
9825
|
if (o && o.slice.size < o.to - o.from) {
|
|
9827
9826
|
if (e) {
|
|
9828
9827
|
let l = n.tr.step(o);
|
|
9829
|
-
l.setSelection(
|
|
9828
|
+
l.setSelection(Mt(s, "start") ? E.findFrom(l.doc.resolve(l.mapping.map(i.pos)), 1) : S.create(l.doc, l.mapping.map(i.pos))), e(l.scrollIntoView());
|
|
9830
9829
|
}
|
|
9831
9830
|
return !0;
|
|
9832
9831
|
}
|
|
@@ -9878,7 +9877,7 @@ const hd = (n, e) => {
|
|
|
9878
9877
|
return !1;
|
|
9879
9878
|
return e && e(n.tr.join(r).scrollIntoView()), !0;
|
|
9880
9879
|
}, md = (n, e) => {
|
|
9881
|
-
let { $from: t, $to: r } = n.selection, i = t.blockRange(r), s = i &&
|
|
9880
|
+
let { $from: t, $to: r } = n.selection, i = t.blockRange(r), s = i && wt(i);
|
|
9882
9881
|
return s == null ? !1 : (e && e(n.tr.lift(i, s).scrollIntoView()), !0);
|
|
9883
9882
|
}, Ko = (n, e) => {
|
|
9884
9883
|
let { $head: t, $anchor: r } = n.selection;
|
|
@@ -9926,7 +9925,7 @@ const gd = (n, e) => {
|
|
|
9926
9925
|
if (ve(n.doc, s))
|
|
9927
9926
|
return e && e(n.tr.split(s).scrollIntoView()), !0;
|
|
9928
9927
|
}
|
|
9929
|
-
let r = t.blockRange(), i = r &&
|
|
9928
|
+
let r = t.blockRange(), i = r && wt(r);
|
|
9930
9929
|
return i == null ? !1 : (e && e(n.tr.lift(r, i).scrollIntoView()), !0);
|
|
9931
9930
|
};
|
|
9932
9931
|
function yd(n) {
|
|
@@ -9982,10 +9981,10 @@ function _o(n, e, t, r) {
|
|
|
9982
9981
|
}
|
|
9983
9982
|
return !0;
|
|
9984
9983
|
}
|
|
9985
|
-
let d = s.type.spec.isolating || r > 0 && a ? null : E.findFrom(e, 1), u = d && d.$from.blockRange(d.$to), f = u &&
|
|
9984
|
+
let d = s.type.spec.isolating || r > 0 && a ? null : E.findFrom(e, 1), u = d && d.$from.blockRange(d.$to), f = u && wt(u);
|
|
9986
9985
|
if (f != null && f >= e.depth)
|
|
9987
9986
|
return t && t(n.tr.lift(u, f).scrollIntoView()), !0;
|
|
9988
|
-
if (c &&
|
|
9987
|
+
if (c && Mt(s, "start", !0) && Mt(i, "end")) {
|
|
9989
9988
|
let h = i, p = [];
|
|
9990
9989
|
for (; p.push(h), !h.isTextblock; )
|
|
9991
9990
|
h = h.lastChild;
|
|
@@ -10107,7 +10106,7 @@ function Ed(n) {
|
|
|
10107
10106
|
function vd(n, e, t, r) {
|
|
10108
10107
|
let i = n.tr, s = r.end, o = r.$to.end(r.depth);
|
|
10109
10108
|
s < o && (i.step(new F(s - 1, o, s, o, new k(b.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new mn(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
|
|
10110
|
-
const l =
|
|
10109
|
+
const l = wt(r);
|
|
10111
10110
|
if (l == null)
|
|
10112
10111
|
return !1;
|
|
10113
10112
|
i.lift(r, l);
|
|
@@ -11097,7 +11096,7 @@ const Jd = _.create({
|
|
|
11097
11096
|
const { doc: c, mapping: d } = e, u = c.resolve(d.map(a)), f = c.resolve(d.map(a + l.nodeSize)), h = u.blockRange(f);
|
|
11098
11097
|
if (!h)
|
|
11099
11098
|
return;
|
|
11100
|
-
const p =
|
|
11099
|
+
const p = wt(h);
|
|
11101
11100
|
if (l.type.isTextblock) {
|
|
11102
11101
|
const { defaultType: m } = u.parent.contentMatchAt(u.index());
|
|
11103
11102
|
e.setNodeMarkup(h.start, m);
|
|
@@ -14540,7 +14539,7 @@ Ir = function() {
|
|
|
14540
14539
|
const t = Ae.getComponentCssPath("nineEditor.css"), r = t ? `@import "${t}";` : "";
|
|
14541
14540
|
this.shadowRoot.innerHTML = `
|
|
14542
14541
|
<style>
|
|
14543
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@0.1.
|
|
14542
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@0.1.33/dist/css/nineEditor.css";
|
|
14544
14543
|
${r}
|
|
14545
14544
|
</style>
|
|
14546
14545
|
|
|
@@ -14645,19 +14644,18 @@ const xs = {
|
|
|
14645
14644
|
alert: window.alert,
|
|
14646
14645
|
confirm: window.confirm
|
|
14647
14646
|
}, Ss = () => {
|
|
14648
|
-
const { nativeOverride: n } =
|
|
14649
|
-
window.alert = e.includes("alert") ? (t) => Ae.alert(t) : xs.alert, window.confirm = e.includes("confirm") ? async (t) => await Ae.confirm(t) : xs.confirm,
|
|
14647
|
+
const { nativeOverride: n } = Rt.config.ux || {}, e = Array.isArray(n) ? n : n === !0 ? ["alert", "confirm"] : [];
|
|
14648
|
+
window.alert = e.includes("alert") ? (t) => Ae.alert(t) : xs.alert, window.confirm = e.includes("confirm") ? async (t) => await Ae.confirm(t) : xs.confirm, Rt.config.debug && e.length > 0 && console.log(`[nine-ux] Native API Overridden: ${e.join(", ")}`);
|
|
14650
14649
|
}, Rh = () => {
|
|
14651
14650
|
Ss(), xl((n) => {
|
|
14652
14651
|
(n === "ux" || n === "config") && Ss();
|
|
14653
14652
|
});
|
|
14654
14653
|
};
|
|
14655
14654
|
Rh();
|
|
14656
|
-
|
|
14657
|
-
|
|
14658
|
-
typeof window < "u" && (
|
|
14655
|
+
Rt.alert = Ae.alert.bind(Ae);
|
|
14656
|
+
Rt.confirm = Ae.confirm.bind(Ae);
|
|
14657
|
+
typeof window < "u" && (customElements.get("nine-editor") || customElements.define("nine-editor", Ih));
|
|
14659
14658
|
export {
|
|
14660
|
-
Fh as nine,
|
|
14661
14659
|
Ih as nineEditor
|
|
14662
14660
|
};
|
|
14663
14661
|
//# sourceMappingURL=nine-ux.es.js.map
|