@inpageedit/core 0.3.2 → 0.4.1
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/InPageEdit.d.ts +14 -8
- package/dist/Preferences-Bg3J5Ur9.js.map +1 -1
- package/dist/{index-BzhKErte.js → index-BTngTj1f.js} +130 -125
- package/dist/index-BTngTj1f.js.map +1 -0
- package/dist/{index-CqM9JQKf.js → index-D-zQLFuZ.js} +2 -2
- package/dist/{index-CqM9JQKf.js.map → index-D-zQLFuZ.js.map} +1 -1
- package/dist/index.js +2664 -3218
- package/dist/index.js.map +1 -1
- package/dist/plugins/BasePlugin.d.ts +1 -1
- package/dist/services/SsiModalService.d.ts +1 -0
- package/dist/utils/vueHooks.d.ts +1 -1
- package/lib/index.umd.js +61 -39
- package/lib/index.umd.js.map +1 -1
- package/package.json +12 -24
- package/dist/index-BzhKErte.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as tt, P as
|
|
1
|
+
import { j as tt, P as $i, F as Mi } from "./index-CvhkVj_L.js";
|
|
2
2
|
import { BasePlugin as Fi, Inject as Ii } from "./index.js";
|
|
3
3
|
/**
|
|
4
4
|
* @vue/shared v3.5.21
|
|
@@ -406,7 +406,7 @@ function X(e, t, s) {
|
|
|
406
406
|
r || (n.set(s, r = new ds()), r.map = n, r.key = s), r.track();
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function $e(e, t, s, n, r, i) {
|
|
410
410
|
const o = Ds.get(e);
|
|
411
411
|
if (!o) {
|
|
412
412
|
Ft++;
|
|
@@ -482,17 +482,17 @@ const Gi = {
|
|
|
482
482
|
return Ae(this, "forEach", e, t, void 0, arguments);
|
|
483
483
|
},
|
|
484
484
|
includes(...e) {
|
|
485
|
-
return
|
|
485
|
+
return Ps(this, "includes", e);
|
|
486
486
|
},
|
|
487
487
|
indexOf(...e) {
|
|
488
|
-
return
|
|
488
|
+
return Ps(this, "indexOf", e);
|
|
489
489
|
},
|
|
490
490
|
join(e) {
|
|
491
491
|
return st(this).join(e);
|
|
492
492
|
},
|
|
493
493
|
// keys() iterator only reads `length`, no optimization required
|
|
494
494
|
lastIndexOf(...e) {
|
|
495
|
-
return
|
|
495
|
+
return Ps(this, "lastIndexOf", e);
|
|
496
496
|
},
|
|
497
497
|
map(e, t) {
|
|
498
498
|
return Ae(this, "map", e, t, void 0, arguments);
|
|
@@ -567,7 +567,7 @@ function Sn(e, t, s, n) {
|
|
|
567
567
|
return s.call(this, o, Y(l), c, e);
|
|
568
568
|
}), r[t](i, ...n);
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function Ps(e, t, s) {
|
|
571
571
|
const n = L(e);
|
|
572
572
|
X(n, "iterate", It);
|
|
573
573
|
const r = n[t](...s);
|
|
@@ -639,13 +639,13 @@ class _r extends gr {
|
|
|
639
639
|
n,
|
|
640
640
|
Z(t) ? t : r
|
|
641
641
|
);
|
|
642
|
-
return t === L(r) && (o ? le(n, i) &&
|
|
642
|
+
return t === L(r) && (o ? le(n, i) && $e(t, "set", s, n) : $e(t, "add", s, n)), l;
|
|
643
643
|
}
|
|
644
644
|
deleteProperty(t, s) {
|
|
645
645
|
const n = H(t, s);
|
|
646
646
|
t[s];
|
|
647
647
|
const r = Reflect.deleteProperty(t, s);
|
|
648
|
-
return r && n &&
|
|
648
|
+
return r && n && $e(t, "delete", s, void 0), r;
|
|
649
649
|
}
|
|
650
650
|
has(t, s) {
|
|
651
651
|
const n = Reflect.has(t, s);
|
|
@@ -736,7 +736,7 @@ function ro(e, t) {
|
|
|
736
736
|
add(r) {
|
|
737
737
|
!t && !he(r) && !Ve(r) && (r = L(r));
|
|
738
738
|
const i = L(this);
|
|
739
|
-
return Wt(i).has.call(i, r) || (i.add(r),
|
|
739
|
+
return Wt(i).has.call(i, r) || (i.add(r), $e(i, "add", r, r)), this;
|
|
740
740
|
},
|
|
741
741
|
set(r, i) {
|
|
742
742
|
!t && !he(i) && !Ve(i) && (i = L(i));
|
|
@@ -744,18 +744,18 @@ function ro(e, t) {
|
|
|
744
744
|
let h = l.call(o, r);
|
|
745
745
|
h || (r = L(r), h = l.call(o, r));
|
|
746
746
|
const a = c.call(o, r);
|
|
747
|
-
return o.set(r, i), h ? le(i, a) &&
|
|
747
|
+
return o.set(r, i), h ? le(i, a) && $e(o, "set", r, i) : $e(o, "add", r, i), this;
|
|
748
748
|
},
|
|
749
749
|
delete(r) {
|
|
750
750
|
const i = L(this), { has: o, get: l } = Wt(i);
|
|
751
751
|
let c = o.call(i, r);
|
|
752
752
|
c || (r = L(r), c = o.call(i, r)), l && l.call(i, r);
|
|
753
753
|
const h = i.delete(r);
|
|
754
|
-
return c &&
|
|
754
|
+
return c && $e(i, "delete", r, void 0), h;
|
|
755
755
|
},
|
|
756
756
|
clear() {
|
|
757
757
|
const r = L(this), i = r.size !== 0, o = r.clear();
|
|
758
|
-
return i &&
|
|
758
|
+
return i && $e(
|
|
759
759
|
r,
|
|
760
760
|
"clear",
|
|
761
761
|
void 0,
|
|
@@ -953,15 +953,15 @@ function xo(e, t = !1, s = Ze) {
|
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
955
|
function Co(e, t, s = j) {
|
|
956
|
-
const { immediate: n, deep: r, once: i, scheduler: o, augmentJob: l, call: c } = s, h = (
|
|
956
|
+
const { immediate: n, deep: r, once: i, scheduler: o, augmentJob: l, call: c } = s, h = (P) => r ? P : he(P) || r === !1 || r === 0 ? Me(P, 1) : Me(P);
|
|
957
957
|
let a, d, v, y, w = !1, T = !1;
|
|
958
|
-
if (Z(e) ? (d = () => e.value, w = he(e)) : lt(e) ? (d = () => h(e), w = !0) : M(e) ? (T = !0, w = e.some((
|
|
959
|
-
if (Z(
|
|
960
|
-
return
|
|
961
|
-
if (lt(
|
|
962
|
-
return h(
|
|
963
|
-
if (F(
|
|
964
|
-
return c ? c(
|
|
958
|
+
if (Z(e) ? (d = () => e.value, w = he(e)) : lt(e) ? (d = () => h(e), w = !0) : M(e) ? (T = !0, w = e.some((P) => lt(P) || he(P)), d = () => e.map((P) => {
|
|
959
|
+
if (Z(P))
|
|
960
|
+
return P.value;
|
|
961
|
+
if (lt(P))
|
|
962
|
+
return h(P);
|
|
963
|
+
if (F(P))
|
|
964
|
+
return c ? c(P, 2) : P();
|
|
965
965
|
})) : F(e) ? t ? d = c ? () => c(e, 2) : e : d = () => {
|
|
966
966
|
if (v) {
|
|
967
967
|
Ie();
|
|
@@ -971,29 +971,29 @@ function Co(e, t, s = j) {
|
|
|
971
971
|
Re();
|
|
972
972
|
}
|
|
973
973
|
}
|
|
974
|
-
const
|
|
974
|
+
const P = Ze;
|
|
975
975
|
Ze = a;
|
|
976
976
|
try {
|
|
977
977
|
return c ? c(e, 3, [y]) : e(y);
|
|
978
978
|
} finally {
|
|
979
|
-
Ze =
|
|
979
|
+
Ze = P;
|
|
980
980
|
}
|
|
981
981
|
} : d = Ee, t && r) {
|
|
982
|
-
const
|
|
983
|
-
d = () => Me(
|
|
982
|
+
const P = d, G = r === !0 ? 1 / 0 : r;
|
|
983
|
+
d = () => Me(P(), G);
|
|
984
984
|
}
|
|
985
985
|
const z = qi(), R = () => {
|
|
986
986
|
a.stop(), z && z.active && Gs(z.effects, a);
|
|
987
987
|
};
|
|
988
988
|
if (i && t) {
|
|
989
|
-
const
|
|
989
|
+
const P = t;
|
|
990
990
|
t = (...G) => {
|
|
991
|
-
|
|
991
|
+
P(...G), R();
|
|
992
992
|
};
|
|
993
993
|
}
|
|
994
994
|
let I = T ? new Array(e.length).fill(Jt) : Jt;
|
|
995
|
-
const D = (
|
|
996
|
-
if (!(!(a.flags & 1) || !a.dirty &&
|
|
995
|
+
const D = (P) => {
|
|
996
|
+
if (!(!(a.flags & 1) || !a.dirty && !P))
|
|
997
997
|
if (t) {
|
|
998
998
|
const G = a.run();
|
|
999
999
|
if (r || w || (T ? G.some((De, ge) => le(De, I[ge])) : le(G, I))) {
|
|
@@ -1018,13 +1018,13 @@ function Co(e, t, s = j) {
|
|
|
1018
1018
|
} else
|
|
1019
1019
|
a.run();
|
|
1020
1020
|
};
|
|
1021
|
-
return l && l(D), a = new lr(d), a.scheduler = o ? () => o(D, !1) : D, y = (
|
|
1022
|
-
const
|
|
1023
|
-
if (
|
|
1021
|
+
return l && l(D), a = new lr(d), a.scheduler = o ? () => o(D, !1) : D, y = (P) => xo(P, !1, a), v = a.onStop = () => {
|
|
1022
|
+
const P = es.get(a);
|
|
1023
|
+
if (P) {
|
|
1024
1024
|
if (c)
|
|
1025
|
-
c(
|
|
1025
|
+
c(P, 4);
|
|
1026
1026
|
else
|
|
1027
|
-
for (const G of
|
|
1027
|
+
for (const G of P) G();
|
|
1028
1028
|
es.delete(a);
|
|
1029
1029
|
}
|
|
1030
1030
|
}, t ? n ? D(!0) : I = a.run() : o ? o(D.bind(null, !0), !0) : a.run(), R.pause = a.pause.bind(a), R.resume = a.resume.bind(a), R.stop = R, R;
|
|
@@ -1181,10 +1181,10 @@ function Ar(e) {
|
|
|
1181
1181
|
Ce = -1, se.length = 0, Or(), ts = null, (se.length || ct.length) && Ar();
|
|
1182
1182
|
}
|
|
1183
1183
|
}
|
|
1184
|
-
let ue = null,
|
|
1184
|
+
let ue = null, Pr = null;
|
|
1185
1185
|
function ss(e) {
|
|
1186
1186
|
const t = ue;
|
|
1187
|
-
return ue = e,
|
|
1187
|
+
return ue = e, Pr = e && e.type.__scopeId || null, t;
|
|
1188
1188
|
}
|
|
1189
1189
|
function To(e, t = ue, s) {
|
|
1190
1190
|
if (!t || e._n)
|
|
@@ -1236,12 +1236,12 @@ function Ge(e, t, s, n) {
|
|
|
1236
1236
|
]), Re());
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
|
-
const Ao = Symbol("_vte"),
|
|
1239
|
+
const Ao = Symbol("_vte"), Po = (e) => e.__isTeleport, $o = Symbol("_leaveCb");
|
|
1240
1240
|
function ln(e, t) {
|
|
1241
1241
|
e.shapeFlag & 6 && e.component ? (e.transition = t, ln(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
1242
1242
|
}
|
|
1243
1243
|
// @__NO_SIDE_EFFECTS__
|
|
1244
|
-
function
|
|
1244
|
+
function $r(e, t) {
|
|
1245
1245
|
return F(e) ? (
|
|
1246
1246
|
// #8236: extend call and options.name access are considered side-effects
|
|
1247
1247
|
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
@@ -1443,7 +1443,7 @@ const Hs = (e) => e ? ii(e) ? ys(e) : Hs(e.parent) : null, At = (
|
|
|
1443
1443
|
$nextTick: (e) => e.n || (e.n = Yt.bind(e.proxy)),
|
|
1444
1444
|
$watch: (e) => fl.bind(e)
|
|
1445
1445
|
})
|
|
1446
|
-
),
|
|
1446
|
+
), $s = (e, t) => e !== j && !e.__isScriptSetup && H(e, t), Bo = {
|
|
1447
1447
|
get({ _: e }, t) {
|
|
1448
1448
|
if (t === "__v_skip")
|
|
1449
1449
|
return !0;
|
|
@@ -1463,7 +1463,7 @@ const Hs = (e) => e ? ii(e) ? ys(e) : Hs(e.parent) : null, At = (
|
|
|
1463
1463
|
return i[t];
|
|
1464
1464
|
}
|
|
1465
1465
|
else {
|
|
1466
|
-
if (
|
|
1466
|
+
if ($s(n, t))
|
|
1467
1467
|
return o[t] = 1, n[t];
|
|
1468
1468
|
if (r !== j && H(r, t))
|
|
1469
1469
|
return o[t] = 2, r[t];
|
|
@@ -1497,13 +1497,13 @@ const Hs = (e) => e ? ii(e) ? ys(e) : Hs(e.parent) : null, At = (
|
|
|
1497
1497
|
},
|
|
1498
1498
|
set({ _: e }, t, s) {
|
|
1499
1499
|
const { data: n, setupState: r, ctx: i } = e;
|
|
1500
|
-
return
|
|
1500
|
+
return $s(r, t) ? (r[t] = s, !0) : n !== j && H(n, t) ? (n[t] = s, !0) : H(e.props, t) || t[0] === "$" && t.slice(1) in e ? !1 : (i[t] = s, !0);
|
|
1501
1501
|
},
|
|
1502
1502
|
has({
|
|
1503
1503
|
_: { data: e, setupState: t, accessCache: s, ctx: n, appContext: r, propsOptions: i, type: o }
|
|
1504
1504
|
}, l) {
|
|
1505
1505
|
let c, h;
|
|
1506
|
-
return !!(s[l] || e !== j && l[0] !== "$" && H(e, l) ||
|
|
1506
|
+
return !!(s[l] || e !== j && l[0] !== "$" && H(e, l) || $s(t, l) || (c = i[0]) && H(c, l) || H(n, l) || H(At, l) || H(r.config.globalProperties, l) || (h = o.__cssModules) && h[l]);
|
|
1507
1507
|
},
|
|
1508
1508
|
defineProperty(e, t, s) {
|
|
1509
1509
|
return s.get != null ? e._.accessCache[t] = 0 : H(s, "value") && this.set(e, t, s.value, null), Reflect.defineProperty(e, t, s);
|
|
@@ -1541,7 +1541,7 @@ function Ko(e) {
|
|
|
1541
1541
|
beforeDestroy: R,
|
|
1542
1542
|
beforeUnmount: I,
|
|
1543
1543
|
destroyed: D,
|
|
1544
|
-
unmounted:
|
|
1544
|
+
unmounted: P,
|
|
1545
1545
|
render: G,
|
|
1546
1546
|
renderTracked: De,
|
|
1547
1547
|
renderTriggered: ge,
|
|
@@ -1590,7 +1590,7 @@ function Ko(e) {
|
|
|
1590
1590
|
function ee(k, V) {
|
|
1591
1591
|
M(V) ? V.forEach((ze) => k(ze.bind(s))) : V && k(V.bind(s));
|
|
1592
1592
|
}
|
|
1593
|
-
if (ee(Rr, d), ee(cn, v), ee(No, y), ee(Do, w), ee(Fo, T), ee(Io, z), ee(Uo, je), ee(Ho, De), ee(Lo, ge), ee(Nr, I), ee(Dr,
|
|
1593
|
+
if (ee(Rr, d), ee(cn, v), ee(No, y), ee(Do, w), ee(Fo, T), ee(Io, z), ee(Uo, je), ee(Ho, De), ee(Lo, ge), ee(Nr, I), ee(Dr, P), ee(jo, Ut), M(qe))
|
|
1594
1594
|
if (qe.length) {
|
|
1595
1595
|
const k = e.exposed || (e.exposed = {});
|
|
1596
1596
|
qe.forEach((V) => {
|
|
@@ -1608,11 +1608,11 @@ function ko(e, t, s = Ee) {
|
|
|
1608
1608
|
for (const n in e) {
|
|
1609
1609
|
const r = e[n];
|
|
1610
1610
|
let i;
|
|
1611
|
-
W(r) ? "default" in r ? i =
|
|
1611
|
+
W(r) ? "default" in r ? i = Pt(
|
|
1612
1612
|
r.from || n,
|
|
1613
1613
|
r.default,
|
|
1614
1614
|
!0
|
|
1615
|
-
) : i =
|
|
1615
|
+
) : i = Pt(r.from || n) : i = Pt(r), Z(i) ? Object.defineProperty(t, n, {
|
|
1616
1616
|
enumerable: !0,
|
|
1617
1617
|
configurable: !0,
|
|
1618
1618
|
get: () => i.value,
|
|
@@ -1631,15 +1631,15 @@ function jr(e, t, s, n) {
|
|
|
1631
1631
|
let r = n.includes(".") ? Zr(s, n) : () => s[n];
|
|
1632
1632
|
if (J(e)) {
|
|
1633
1633
|
const i = t[e];
|
|
1634
|
-
F(i) &&
|
|
1634
|
+
F(i) && $t(r, i);
|
|
1635
1635
|
} else if (F(e))
|
|
1636
|
-
|
|
1636
|
+
$t(r, e.bind(s));
|
|
1637
1637
|
else if (W(e))
|
|
1638
1638
|
if (M(e))
|
|
1639
1639
|
e.forEach((i) => jr(i, t, s, n));
|
|
1640
1640
|
else {
|
|
1641
1641
|
const i = F(e.handler) ? e.handler.bind(s) : t[e.handler];
|
|
1642
|
-
F(i) &&
|
|
1642
|
+
F(i) && $t(r, i, e);
|
|
1643
1643
|
}
|
|
1644
1644
|
}
|
|
1645
1645
|
function Lr(e) {
|
|
@@ -1666,9 +1666,9 @@ function is(e, t, s, n = !1) {
|
|
|
1666
1666
|
return e;
|
|
1667
1667
|
}
|
|
1668
1668
|
const Wo = {
|
|
1669
|
-
data:
|
|
1670
|
-
props:
|
|
1671
|
-
emits:
|
|
1669
|
+
data: Pn,
|
|
1670
|
+
props: $n,
|
|
1671
|
+
emits: $n,
|
|
1672
1672
|
// objects
|
|
1673
1673
|
methods: xt,
|
|
1674
1674
|
computed: xt,
|
|
@@ -1693,10 +1693,10 @@ const Wo = {
|
|
|
1693
1693
|
// watch
|
|
1694
1694
|
watch: zo,
|
|
1695
1695
|
// provide / inject
|
|
1696
|
-
provide:
|
|
1696
|
+
provide: Pn,
|
|
1697
1697
|
inject: qo
|
|
1698
1698
|
};
|
|
1699
|
-
function
|
|
1699
|
+
function Pn(e, t) {
|
|
1700
1700
|
return t ? e ? function() {
|
|
1701
1701
|
return Q(
|
|
1702
1702
|
F(e) ? e.call(this, this) : e,
|
|
@@ -1722,7 +1722,7 @@ function te(e, t) {
|
|
|
1722
1722
|
function xt(e, t) {
|
|
1723
1723
|
return e ? Q(/* @__PURE__ */ Object.create(null), e, t) : t;
|
|
1724
1724
|
}
|
|
1725
|
-
function
|
|
1725
|
+
function $n(e, t) {
|
|
1726
1726
|
return e ? M(e) && M(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : Q(
|
|
1727
1727
|
/* @__PURE__ */ Object.create(null),
|
|
1728
1728
|
rs(e),
|
|
@@ -1829,7 +1829,7 @@ function Ur(e, t) {
|
|
|
1829
1829
|
n === s && (s = ne.provides = Object.create(n)), s[e] = t;
|
|
1830
1830
|
}
|
|
1831
1831
|
}
|
|
1832
|
-
function
|
|
1832
|
+
function Pt(e, t, s = !1) {
|
|
1833
1833
|
const n = hn();
|
|
1834
1834
|
if (n || at) {
|
|
1835
1835
|
let r = at ? at._context.provides : n ? n.parent == null || n.ce ? n.vnode.appContext && n.vnode.appContext.provides : n.parent.provides : void 0;
|
|
@@ -1906,7 +1906,7 @@ function Zo(e, t, s, n) {
|
|
|
1906
1906
|
for (const d in i)
|
|
1907
1907
|
(!t || !H(t, d)) && (delete i[d], h = !0);
|
|
1908
1908
|
}
|
|
1909
|
-
h &&
|
|
1909
|
+
h && $e(e.attrs, "set", "");
|
|
1910
1910
|
}
|
|
1911
1911
|
function kr(e, t, s, n) {
|
|
1912
1912
|
const [r, i] = e.propsOptions;
|
|
@@ -2172,7 +2172,7 @@ function nl(e, t) {
|
|
|
2172
2172
|
for (; f && f !== u; )
|
|
2173
2173
|
m = v(f), n(f, p, _), f = m;
|
|
2174
2174
|
n(u, p, _);
|
|
2175
|
-
},
|
|
2175
|
+
}, P = ({ el: f, anchor: u }) => {
|
|
2176
2176
|
let p;
|
|
2177
2177
|
for (; f && f !== u; )
|
|
2178
2178
|
p = v(f), r(f), f = p;
|
|
@@ -2198,7 +2198,7 @@ function nl(e, t) {
|
|
|
2198
2198
|
);
|
|
2199
2199
|
}, De = (f, u, p, _, m, g, S, C) => {
|
|
2200
2200
|
let x, b;
|
|
2201
|
-
const { props: A, shapeFlag: E, transition: O, dirs:
|
|
2201
|
+
const { props: A, shapeFlag: E, transition: O, dirs: $ } = f;
|
|
2202
2202
|
if (x = f.el = o(
|
|
2203
2203
|
f.type,
|
|
2204
2204
|
g,
|
|
@@ -2213,15 +2213,15 @@ function nl(e, t) {
|
|
|
2213
2213
|
Ms(f, g),
|
|
2214
2214
|
S,
|
|
2215
2215
|
C
|
|
2216
|
-
),
|
|
2216
|
+
), $ && Ge(f, null, _, "created"), ge(x, f, f.scopeId, S, _), A) {
|
|
2217
2217
|
for (const B in A)
|
|
2218
2218
|
B !== "value" && !St(B) && i(x, B, null, A[B], g, _);
|
|
2219
2219
|
"value" in A && i(x, "value", null, A.value, g), (b = A.onVnodeBeforeMount) && xe(b, _, f);
|
|
2220
2220
|
}
|
|
2221
|
-
|
|
2221
|
+
$ && Ge(f, null, _, "beforeMount");
|
|
2222
2222
|
const N = rl(m, O);
|
|
2223
|
-
N && O.beforeEnter(x), n(x, u, p), ((b = A && A.onVnodeMounted) || N ||
|
|
2224
|
-
b && xe(b, _, f), N && O.enter(x),
|
|
2223
|
+
N && O.beforeEnter(x), n(x, u, p), ((b = A && A.onVnodeMounted) || N || $) && ae(() => {
|
|
2224
|
+
b && xe(b, _, f), N && O.enter(x), $ && Ge(f, null, _, "mounted");
|
|
2225
2225
|
}, m);
|
|
2226
2226
|
}, ge = (f, u, p, _, m) => {
|
|
2227
2227
|
if (p && y(f, p), _)
|
|
@@ -2260,8 +2260,8 @@ function nl(e, t) {
|
|
|
2260
2260
|
let { patchFlag: x, dynamicChildren: b, dirs: A } = u;
|
|
2261
2261
|
x |= f.patchFlag & 16;
|
|
2262
2262
|
const E = f.props || j, O = u.props || j;
|
|
2263
|
-
let
|
|
2264
|
-
if (p && Ye(p, !1), (
|
|
2263
|
+
let $;
|
|
2264
|
+
if (p && Ye(p, !1), ($ = O.onVnodeBeforeUpdate) && xe($, p, u, f), A && Ge(u, f, p, "beforeUpdate"), p && Ye(p, !0), (E.innerHTML && O.innerHTML == null || E.textContent && O.textContent == null) && a(C, ""), b ? qe(
|
|
2265
2265
|
f.dynamicChildren,
|
|
2266
2266
|
b,
|
|
2267
2267
|
C,
|
|
@@ -2291,8 +2291,8 @@ function nl(e, t) {
|
|
|
2291
2291
|
}
|
|
2292
2292
|
x & 1 && f.children !== u.children && a(C, u.children);
|
|
2293
2293
|
} else !S && b == null && pt(C, E, O, p, m);
|
|
2294
|
-
((
|
|
2295
|
-
|
|
2294
|
+
(($ = O.onVnodeUpdated) || A) && ae(() => {
|
|
2295
|
+
$ && xe($, p, u, f), A && Ge(u, f, p, "updated");
|
|
2296
2296
|
}, _);
|
|
2297
2297
|
}, qe = (f, u, p, _, m, g, S) => {
|
|
2298
2298
|
for (let C = 0; C < u.length; C++) {
|
|
@@ -2343,8 +2343,8 @@ function nl(e, t) {
|
|
|
2343
2343
|
}
|
|
2344
2344
|
}, Vt = (f, u, p, _, m, g, S, C, x) => {
|
|
2345
2345
|
const b = u.el = f ? f.el : l(""), A = u.anchor = f ? f.anchor : l("");
|
|
2346
|
-
let { patchFlag: E, dynamicChildren: O, slotScopeIds:
|
|
2347
|
-
|
|
2346
|
+
let { patchFlag: E, dynamicChildren: O, slotScopeIds: $ } = u;
|
|
2347
|
+
$ && (C = C ? C.concat($) : $), f == null ? (n(b, p, _), n(A, p, _), je(
|
|
2348
2348
|
// #10007
|
|
2349
2349
|
// such fragment like `<></>` will be compiled into
|
|
2350
2350
|
// a fragment which doesn't have a children.
|
|
@@ -2437,7 +2437,7 @@ function nl(e, t) {
|
|
|
2437
2437
|
}, ee = (f, u, p, _, m, g, S) => {
|
|
2438
2438
|
const C = () => {
|
|
2439
2439
|
if (f.isMounted) {
|
|
2440
|
-
let { next: E, bu: O, u:
|
|
2440
|
+
let { next: E, bu: O, u: $, parent: N, vnode: B } = f;
|
|
2441
2441
|
{
|
|
2442
2442
|
const ve = Yr(f);
|
|
2443
2443
|
if (ve) {
|
|
@@ -2460,14 +2460,14 @@ function nl(e, t) {
|
|
|
2460
2460
|
f,
|
|
2461
2461
|
m,
|
|
2462
2462
|
g
|
|
2463
|
-
), E.el = ie.el, U === null && gl(f, ie.el),
|
|
2463
|
+
), E.el = ie.el, U === null && gl(f, ie.el), $ && ae($, m), (re = E.props && E.props.onVnodeUpdated) && ae(
|
|
2464
2464
|
() => xe(re, N, E, B),
|
|
2465
2465
|
m
|
|
2466
2466
|
);
|
|
2467
2467
|
} else {
|
|
2468
2468
|
let E;
|
|
2469
|
-
const { el: O, props:
|
|
2470
|
-
Ye(f, !1), N && ws(N), !be && (E =
|
|
2469
|
+
const { el: O, props: $ } = u, { bm: N, m: B, parent: U, root: re, type: ie } = f, be = Ot(u);
|
|
2470
|
+
Ye(f, !1), N && ws(N), !be && (E = $ && $.onVnodeBeforeMount) && xe(E, U, u), Ye(f, !0);
|
|
2471
2471
|
{
|
|
2472
2472
|
re.ce && // @ts-expect-error _def is private
|
|
2473
2473
|
re.ce._def.shadowRoot !== !1 && re.ce._injectChildStyle(ie);
|
|
@@ -2482,7 +2482,7 @@ function nl(e, t) {
|
|
|
2482
2482
|
g
|
|
2483
2483
|
), u.el = ve.el;
|
|
2484
2484
|
}
|
|
2485
|
-
if (B && ae(B, m), !be && (E =
|
|
2485
|
+
if (B && ae(B, m), !be && (E = $ && $.onVnodeMounted)) {
|
|
2486
2486
|
const ve = u;
|
|
2487
2487
|
ae(
|
|
2488
2488
|
() => xe(E, U, ve),
|
|
@@ -2502,7 +2502,7 @@ function nl(e, t) {
|
|
|
2502
2502
|
const _ = f.vnode.props;
|
|
2503
2503
|
f.vnode = u, f.next = null, Zo(f, u.props, _, p), tl(f, u.children, p), Ie(), En(f), Re();
|
|
2504
2504
|
}, V = (f, u, p, _, m, g, S, C, x = !1) => {
|
|
2505
|
-
const b = f && f.children, A = f ? f.shapeFlag : 0, E = u.children, { patchFlag: O, shapeFlag:
|
|
2505
|
+
const b = f && f.children, A = f ? f.shapeFlag : 0, E = u.children, { patchFlag: O, shapeFlag: $ } = u;
|
|
2506
2506
|
if (O > 0) {
|
|
2507
2507
|
if (O & 128) {
|
|
2508
2508
|
Kt(
|
|
@@ -2532,7 +2532,7 @@ function nl(e, t) {
|
|
|
2532
2532
|
return;
|
|
2533
2533
|
}
|
|
2534
2534
|
}
|
|
2535
|
-
|
|
2535
|
+
$ & 8 ? (A & 16 && mt(b, m, g), E !== b && a(p, E)) : A & 16 ? $ & 16 ? Kt(
|
|
2536
2536
|
b,
|
|
2537
2537
|
E,
|
|
2538
2538
|
p,
|
|
@@ -2542,7 +2542,7 @@ function nl(e, t) {
|
|
|
2542
2542
|
S,
|
|
2543
2543
|
C,
|
|
2544
2544
|
x
|
|
2545
|
-
) : mt(b, m, g, !0) : (A & 8 && a(p, ""),
|
|
2545
|
+
) : mt(b, m, g, !0) : (A & 8 && a(p, ""), $ & 16 && je(
|
|
2546
2546
|
E,
|
|
2547
2547
|
p,
|
|
2548
2548
|
_,
|
|
@@ -2557,10 +2557,10 @@ function nl(e, t) {
|
|
|
2557
2557
|
const b = f.length, A = u.length, E = Math.min(b, A);
|
|
2558
2558
|
let O;
|
|
2559
2559
|
for (O = 0; O < E; O++) {
|
|
2560
|
-
const
|
|
2560
|
+
const $ = u[O] = x ? He(u[O]) : Se(u[O]);
|
|
2561
2561
|
T(
|
|
2562
2562
|
f[O],
|
|
2563
|
-
|
|
2563
|
+
$,
|
|
2564
2564
|
p,
|
|
2565
2565
|
null,
|
|
2566
2566
|
m,
|
|
@@ -2593,10 +2593,10 @@ function nl(e, t) {
|
|
|
2593
2593
|
const A = u.length;
|
|
2594
2594
|
let E = f.length - 1, O = A - 1;
|
|
2595
2595
|
for (; b <= E && b <= O; ) {
|
|
2596
|
-
const
|
|
2597
|
-
if (vt(
|
|
2596
|
+
const $ = f[b], N = u[b] = x ? He(u[b]) : Se(u[b]);
|
|
2597
|
+
if (vt($, N))
|
|
2598
2598
|
T(
|
|
2599
|
-
|
|
2599
|
+
$,
|
|
2600
2600
|
N,
|
|
2601
2601
|
p,
|
|
2602
2602
|
null,
|
|
@@ -2611,10 +2611,10 @@ function nl(e, t) {
|
|
|
2611
2611
|
b++;
|
|
2612
2612
|
}
|
|
2613
2613
|
for (; b <= E && b <= O; ) {
|
|
2614
|
-
const
|
|
2615
|
-
if (vt(
|
|
2614
|
+
const $ = f[E], N = u[O] = x ? He(u[O]) : Se(u[O]);
|
|
2615
|
+
if (vt($, N))
|
|
2616
2616
|
T(
|
|
2617
|
-
|
|
2617
|
+
$,
|
|
2618
2618
|
N,
|
|
2619
2619
|
p,
|
|
2620
2620
|
null,
|
|
@@ -2630,7 +2630,7 @@ function nl(e, t) {
|
|
|
2630
2630
|
}
|
|
2631
2631
|
if (b > E) {
|
|
2632
2632
|
if (b <= O) {
|
|
2633
|
-
const
|
|
2633
|
+
const $ = O + 1, N = $ < A ? u[$].el : _;
|
|
2634
2634
|
for (; b <= O; )
|
|
2635
2635
|
T(
|
|
2636
2636
|
null,
|
|
@@ -2648,7 +2648,7 @@ function nl(e, t) {
|
|
|
2648
2648
|
for (; b <= E; )
|
|
2649
2649
|
_e(f[b], m, g, !0), b++;
|
|
2650
2650
|
else {
|
|
2651
|
-
const
|
|
2651
|
+
const $ = b, N = b, B = /* @__PURE__ */ new Map();
|
|
2652
2652
|
for (b = N; b <= O; b++) {
|
|
2653
2653
|
const ce = u[b] = x ? He(u[b]) : Se(u[b]);
|
|
2654
2654
|
ce.key != null && B.set(ce.key, b);
|
|
@@ -2658,7 +2658,7 @@ function nl(e, t) {
|
|
|
2658
2658
|
let be = !1, ve = 0;
|
|
2659
2659
|
const _t = new Array(ie);
|
|
2660
2660
|
for (b = 0; b < ie; b++) _t[b] = 0;
|
|
2661
|
-
for (b =
|
|
2661
|
+
for (b = $; b <= E; b++) {
|
|
2662
2662
|
const ce = f[b];
|
|
2663
2663
|
if (re >= ie) {
|
|
2664
2664
|
_e(ce, m, g, !0);
|
|
@@ -2733,14 +2733,14 @@ function nl(e, t) {
|
|
|
2733
2733
|
if (_ === 0)
|
|
2734
2734
|
C.beforeEnter(g), n(g, u, p), ae(() => C.enter(g), m);
|
|
2735
2735
|
else {
|
|
2736
|
-
const { leave: E, delayLeave: O, afterLeave:
|
|
2736
|
+
const { leave: E, delayLeave: O, afterLeave: $ } = C, N = () => {
|
|
2737
2737
|
f.ctx.isUnmounted ? r(g) : n(g, u, p);
|
|
2738
2738
|
}, B = () => {
|
|
2739
|
-
g._isLeaving && g[
|
|
2739
|
+
g._isLeaving && g[$o](
|
|
2740
2740
|
!0
|
|
2741
2741
|
/* cancelled */
|
|
2742
2742
|
), E(g, () => {
|
|
2743
|
-
N(),
|
|
2743
|
+
N(), $ && $();
|
|
2744
2744
|
});
|
|
2745
2745
|
};
|
|
2746
2746
|
O ? O(g, N, B) : B();
|
|
@@ -2757,16 +2757,16 @@ function nl(e, t) {
|
|
|
2757
2757
|
shapeFlag: A,
|
|
2758
2758
|
patchFlag: E,
|
|
2759
2759
|
dirs: O,
|
|
2760
|
-
cacheIndex:
|
|
2760
|
+
cacheIndex: $
|
|
2761
2761
|
} = f;
|
|
2762
|
-
if (E === -2 && (m = !1), C != null && (Ie(), Tt(C, null, p, f, !0), Re()),
|
|
2762
|
+
if (E === -2 && (m = !1), C != null && (Ie(), Tt(C, null, p, f, !0), Re()), $ != null && (u.renderCache[$] = void 0), A & 256) {
|
|
2763
2763
|
u.ctx.deactivate(f);
|
|
2764
2764
|
return;
|
|
2765
2765
|
}
|
|
2766
2766
|
const N = A & 1 && O, B = !Ot(f);
|
|
2767
2767
|
let U;
|
|
2768
2768
|
if (B && (U = S && S.onVnodeBeforeUnmount) && xe(U, u, f), A & 6)
|
|
2769
|
-
|
|
2769
|
+
Pi(f.component, p, _);
|
|
2770
2770
|
else {
|
|
2771
2771
|
if (A & 128) {
|
|
2772
2772
|
f.suspense.unmount(p, _);
|
|
@@ -2802,7 +2802,7 @@ function nl(e, t) {
|
|
|
2802
2802
|
return;
|
|
2803
2803
|
}
|
|
2804
2804
|
if (u === Fs) {
|
|
2805
|
-
|
|
2805
|
+
P(f);
|
|
2806
2806
|
return;
|
|
2807
2807
|
}
|
|
2808
2808
|
const g = () => {
|
|
@@ -2818,7 +2818,7 @@ function nl(e, t) {
|
|
|
2818
2818
|
for (; f !== u; )
|
|
2819
2819
|
p = v(f), r(f), f = p;
|
|
2820
2820
|
r(u);
|
|
2821
|
-
},
|
|
2821
|
+
}, Pi = (f, u, p) => {
|
|
2822
2822
|
const { bum: _, scope: m, job: g, subTree: S, um: C, m: x, a: b } = f;
|
|
2823
2823
|
Fn(x), Fn(b), _ && ws(_), m.stop(), g && (g.flags |= 8, _e(S, f, u, p)), C && ae(C, u), ae(() => {
|
|
2824
2824
|
f.isUnmounted = !0;
|
|
@@ -2912,7 +2912,7 @@ function Fn(e) {
|
|
|
2912
2912
|
for (let t = 0; t < e.length; t++)
|
|
2913
2913
|
e[t].flags |= 8;
|
|
2914
2914
|
}
|
|
2915
|
-
const ol = Symbol.for("v-scx"), ll = () =>
|
|
2915
|
+
const ol = Symbol.for("v-scx"), ll = () => Pt(ol);
|
|
2916
2916
|
function cl(e, t) {
|
|
2917
2917
|
return _s(e, null, t);
|
|
2918
2918
|
}
|
|
@@ -2923,7 +2923,7 @@ function al(e, t) {
|
|
|
2923
2923
|
{ flush: "sync" }
|
|
2924
2924
|
);
|
|
2925
2925
|
}
|
|
2926
|
-
function
|
|
2926
|
+
function $t(e, t, s) {
|
|
2927
2927
|
return _s(e, t, s);
|
|
2928
2928
|
}
|
|
2929
2929
|
function _s(e, t, s = j) {
|
|
@@ -3066,11 +3066,11 @@ function Rn(e) {
|
|
|
3066
3066
|
let R, I;
|
|
3067
3067
|
try {
|
|
3068
3068
|
if (s.shapeFlag & 4) {
|
|
3069
|
-
const
|
|
3069
|
+
const P = r || n, G = P;
|
|
3070
3070
|
R = Se(
|
|
3071
3071
|
h.call(
|
|
3072
3072
|
G,
|
|
3073
|
-
|
|
3073
|
+
P,
|
|
3074
3074
|
a,
|
|
3075
3075
|
d,
|
|
3076
3076
|
y,
|
|
@@ -3079,24 +3079,24 @@ function Rn(e) {
|
|
|
3079
3079
|
)
|
|
3080
3080
|
), I = l;
|
|
3081
3081
|
} else {
|
|
3082
|
-
const
|
|
3082
|
+
const P = t;
|
|
3083
3083
|
R = Se(
|
|
3084
|
-
|
|
3084
|
+
P.length > 1 ? P(
|
|
3085
3085
|
d,
|
|
3086
3086
|
{ attrs: l, slots: o, emit: c }
|
|
3087
|
-
) :
|
|
3087
|
+
) : P(
|
|
3088
3088
|
d,
|
|
3089
3089
|
null
|
|
3090
3090
|
)
|
|
3091
3091
|
), I = t.props ? l : dl(l);
|
|
3092
3092
|
}
|
|
3093
|
-
} catch (
|
|
3094
|
-
Mt.length = 0, ms(
|
|
3093
|
+
} catch (P) {
|
|
3094
|
+
Mt.length = 0, ms(P, e, 1), R = Ue(ft);
|
|
3095
3095
|
}
|
|
3096
3096
|
let D = R;
|
|
3097
3097
|
if (I && T !== !1) {
|
|
3098
|
-
const
|
|
3099
|
-
|
|
3098
|
+
const P = Object.keys(I), { shapeFlag: G } = D;
|
|
3099
|
+
P.length && G & 7 && (i && P.some(Js) && (I = pl(
|
|
3100
3100
|
I,
|
|
3101
3101
|
i
|
|
3102
3102
|
)), D = ut(D, I, !1, !0));
|
|
@@ -3218,7 +3218,7 @@ function Xe(e, t = null, s = null, n = 0, r = null, i = e === pe ? 0 : 1, o = !1
|
|
|
3218
3218
|
props: t,
|
|
3219
3219
|
key: t && ni(t),
|
|
3220
3220
|
ref: t && Zt(t),
|
|
3221
|
-
scopeId:
|
|
3221
|
+
scopeId: Pr,
|
|
3222
3222
|
slotScopeIds: null,
|
|
3223
3223
|
children: s,
|
|
3224
3224
|
component: null,
|
|
@@ -3261,12 +3261,12 @@ function yl(e, t = null, s = null, n = 0, r = null, i = !1) {
|
|
|
3261
3261
|
);
|
|
3262
3262
|
return s && un(l, s), Nt > 0 && !i && fe && (l.shapeFlag & 6 ? fe[fe.indexOf(e)] = l : fe.push(l)), l.patchFlag = -2, l;
|
|
3263
3263
|
}
|
|
3264
|
-
if (
|
|
3264
|
+
if ($l(e) && (e = e.__vccOpts), t) {
|
|
3265
3265
|
t = xl(t);
|
|
3266
3266
|
let { class: l, style: c } = t;
|
|
3267
3267
|
l && !J(l) && (t.class = hs(l)), W(c) && (rn(c) && !M(c) && (c = Q({}, c)), t.style = Zs(c));
|
|
3268
3268
|
}
|
|
3269
|
-
const o = J(e) ? 1 : ei(e) ? 128 :
|
|
3269
|
+
const o = J(e) ? 1 : ei(e) ? 128 : Po(e) ? 64 : W(e) ? 4 : F(e) ? 2 : 0;
|
|
3270
3270
|
return Xe(
|
|
3271
3271
|
e,
|
|
3272
3272
|
t,
|
|
@@ -3511,7 +3511,7 @@ function Ol(e, t) {
|
|
|
3511
3511
|
const { setup: n } = s;
|
|
3512
3512
|
if (n) {
|
|
3513
3513
|
Ie();
|
|
3514
|
-
const r = e.setupContext = n.length > 1 ?
|
|
3514
|
+
const r = e.setupContext = n.length > 1 ? Pl(e) : null, i = Lt(e), o = jt(
|
|
3515
3515
|
n,
|
|
3516
3516
|
e,
|
|
3517
3517
|
0,
|
|
@@ -3554,7 +3554,7 @@ const Al = {
|
|
|
3554
3554
|
return X(e, "get", ""), e[t];
|
|
3555
3555
|
}
|
|
3556
3556
|
};
|
|
3557
|
-
function
|
|
3557
|
+
function Pl(e) {
|
|
3558
3558
|
const t = (s) => {
|
|
3559
3559
|
e.exposed = s || {};
|
|
3560
3560
|
};
|
|
@@ -3578,7 +3578,7 @@ function ys(e) {
|
|
|
3578
3578
|
}
|
|
3579
3579
|
})) : e.proxy;
|
|
3580
3580
|
}
|
|
3581
|
-
function
|
|
3581
|
+
function $l(e) {
|
|
3582
3582
|
return F(e) && "__vccOpts" in e;
|
|
3583
3583
|
}
|
|
3584
3584
|
const li = (e, t) => yo(e, t, Dt), Ml = "3.5.21";
|
|
@@ -3596,7 +3596,7 @@ if (Hn)
|
|
|
3596
3596
|
});
|
|
3597
3597
|
} catch {
|
|
3598
3598
|
}
|
|
3599
|
-
const ci = ks ? (e) => ks.createHTML(e) : (e) => e, Fl = "http://www.w3.org/2000/svg", Il = "http://www.w3.org/1998/Math/MathML",
|
|
3599
|
+
const ci = ks ? (e) => ks.createHTML(e) : (e) => e, Fl = "http://www.w3.org/2000/svg", Il = "http://www.w3.org/1998/Math/MathML", Pe = typeof document < "u" ? document : null, Un = Pe && /* @__PURE__ */ Pe.createElement("template"), Rl = {
|
|
3600
3600
|
insert: (e, t, s) => {
|
|
3601
3601
|
t.insertBefore(e, s || null);
|
|
3602
3602
|
},
|
|
@@ -3605,11 +3605,11 @@ const ci = ks ? (e) => ks.createHTML(e) : (e) => e, Fl = "http://www.w3.org/2000
|
|
|
3605
3605
|
t && t.removeChild(e);
|
|
3606
3606
|
},
|
|
3607
3607
|
createElement: (e, t, s, n) => {
|
|
3608
|
-
const r = t === "svg" ?
|
|
3608
|
+
const r = t === "svg" ? Pe.createElementNS(Fl, e) : t === "mathml" ? Pe.createElementNS(Il, e) : s ? Pe.createElement(e, { is: s }) : Pe.createElement(e);
|
|
3609
3609
|
return e === "select" && n && n.multiple != null && r.setAttribute("multiple", n.multiple), r;
|
|
3610
3610
|
},
|
|
3611
|
-
createText: (e) =>
|
|
3612
|
-
createComment: (e) =>
|
|
3611
|
+
createText: (e) => Pe.createTextNode(e),
|
|
3612
|
+
createComment: (e) => Pe.createComment(e),
|
|
3613
3613
|
setText: (e, t) => {
|
|
3614
3614
|
e.nodeValue = t;
|
|
3615
3615
|
},
|
|
@@ -3618,7 +3618,7 @@ const ci = ks ? (e) => ks.createHTML(e) : (e) => e, Fl = "http://www.w3.org/2000
|
|
|
3618
3618
|
},
|
|
3619
3619
|
parentNode: (e) => e.parentNode,
|
|
3620
3620
|
nextSibling: (e) => e.nextSibling,
|
|
3621
|
-
querySelector: (e) =>
|
|
3621
|
+
querySelector: (e) => Pe.querySelector(e),
|
|
3622
3622
|
setScopeId(e, t) {
|
|
3623
3623
|
e.setAttribute(t, "");
|
|
3624
3624
|
},
|
|
@@ -3869,7 +3869,12 @@ function tc(e) {
|
|
|
3869
3869
|
function sc(e) {
|
|
3870
3870
|
return J(e) ? document.querySelector(e) : e;
|
|
3871
3871
|
}
|
|
3872
|
-
const Ws = Symbol("IPEInjectKey"), nc = (e, t) => (t ? t.provide(Ws, e) : Ur(Ws, e), e), rc = () =>
|
|
3872
|
+
const Ws = Symbol("IPEInjectKey"), nc = (e, t) => (t ? t.provide(Ws, e) : Ur(Ws, e), e), rc = () => {
|
|
3873
|
+
const e = Pt(Ws);
|
|
3874
|
+
if (!e)
|
|
3875
|
+
throw new Error("InPageEdit instance is not provided");
|
|
3876
|
+
return e;
|
|
3877
|
+
}, de = ":host{all:initial;font-family:var(--schema-font-family, ui-sans-serif, system-ui, -apple-system)}*,*:before,*:after{box-sizing:border-box}:host{color:var(--schema-color-fg, #111827)}:host{--schema-radius: var(--schema-radius, 10px)}.wrapper{display:block;background:var(--schema-color-bg, #ffffff)}.form{display:grid;gap:12px}.field{display:grid;gap:6px;padding:8px 10px;border:1px solid var(--schema-color-muted, #e5e7eb);border-radius:var(--schema-radius);background:var(--schema-surface, #fff)}.label{font-size:12px;color:var(--schema-color-muted-text, #6b7280)}.input,select,textarea{width:100%;padding:8px 10px;border-radius:8px;border:1px solid var(--schema-color-muted, #e5e7eb);background:var(--schema-input-bg, #fff);color:inherit}.checkbox{display:inline-flex;align-items:center;gap:8px}.helper{font-size:12px;color:var(--schema-color-muted-text, #6b7280)}.row{display:grid;gap:8px}.actions{display:flex;gap:8px}.btn{padding:6px 10px;border:1px solid var(--schema-color-muted, #e5e7eb);background:var(--schema-btn-bg, #f8fafc);border-radius:8px;cursor:pointer}.btn.primary{background:var(--schema-color-primary, #2563eb);color:#fff;border-color:transparent}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.danger{background:var(--schema-color-danger, #dc2626);color:#fff;border-color:transparent}.group{display:grid;gap:10px;border-left:3px solid var(--schema-color-muted, #e5e7eb);padding-left:10px}.kv{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:center}.badge{display:inline-flex;padding:2px 6px;border-radius:999px;font-size:11px;background:var(--schema-badge-bg, #eef2ff);color:var(--schema-badge-fg, #4f46e5)}.hidden{display:none!important}.toolbar{display:flex;gap:6px}";
|
|
3873
3878
|
/**
|
|
3874
3879
|
* SchemaForm
|
|
3875
3880
|
* 一个基于 Schemastery 的 Web Components 表单生成器
|
|
@@ -4293,7 +4298,7 @@ class yi extends Oe {
|
|
|
4293
4298
|
};
|
|
4294
4299
|
const R = document.createElement("button");
|
|
4295
4300
|
R.type = "button", R.className = "btn danger", R.textContent = this._i18n.arrayRemove ?? "×", R.onclick = () => {
|
|
4296
|
-
const I = i().filter((D,
|
|
4301
|
+
const I = i().filter((D, P) => P !== a);
|
|
4297
4302
|
this.emitChange(I), o();
|
|
4298
4303
|
}, w.append(T, z, R), v.appendChild(y), v.appendChild(w), n.appendChild(v);
|
|
4299
4304
|
});
|
|
@@ -4424,7 +4429,7 @@ q("schema-form", Ci);
|
|
|
4424
4429
|
function ac() {
|
|
4425
4430
|
q("schema-form", Ci), q("schema-form-string", hi), q("schema-form-number", di), q("schema-form-boolean", pi), q("schema-form-date", mi), q("schema-form-const", gi), q("schema-form-union", _i), q("schema-form-tuple", bi), q("schema-form-object", vi), q("schema-form-array", yi), q("schema-form-dict", xi);
|
|
4426
4431
|
}
|
|
4427
|
-
const fc = /* @__PURE__ */
|
|
4432
|
+
const fc = /* @__PURE__ */ $r({
|
|
4428
4433
|
__name: "SchemasteryFormVue",
|
|
4429
4434
|
props: /* @__PURE__ */ On({
|
|
4430
4435
|
schema: {},
|
|
@@ -4456,7 +4461,7 @@ const fc = /* @__PURE__ */ Pr({
|
|
|
4456
4461
|
n.value && (a.schema = n.value), r.value !== void 0 && a.setData(r.value, { validate: !1, autofix: !0 }), a.addEventListener("form-change", h);
|
|
4457
4462
|
}), Nr(() => {
|
|
4458
4463
|
o.value?.removeEventListener("form-change", h);
|
|
4459
|
-
}),
|
|
4464
|
+
}), $t(
|
|
4460
4465
|
() => n,
|
|
4461
4466
|
(a) => {
|
|
4462
4467
|
l || o.value && a && o.value.schema !== a.value && (c = !0, o.value.schema = a.value, Yt(() => {
|
|
@@ -4464,7 +4469,7 @@ const fc = /* @__PURE__ */ Pr({
|
|
|
4464
4469
|
}));
|
|
4465
4470
|
},
|
|
4466
4471
|
{ deep: !1 }
|
|
4467
|
-
),
|
|
4472
|
+
), $t(
|
|
4468
4473
|
() => r,
|
|
4469
4474
|
(a) => {
|
|
4470
4475
|
if (l || !o.value || a.value === void 0) return;
|
|
@@ -4540,7 +4545,7 @@ function Qe(e, t = /* @__PURE__ */ new WeakMap()) {
|
|
|
4540
4545
|
n[r] = Qe(s[r], t);
|
|
4541
4546
|
return n;
|
|
4542
4547
|
}
|
|
4543
|
-
const uc = { class: "preferences-ui-app" }, hc = { class: "tabs" }, dc = ["onClick", "data-value"], pc = { style: { "max-height": "20em", overflow: "auto" } }, mc = { style: { "max-height": "20em", overflow: "auto" } }, gc = /* @__PURE__ */
|
|
4548
|
+
const uc = { class: "preferences-ui-app" }, hc = { class: "tabs" }, dc = ["onClick", "data-value"], pc = { style: { "max-height": "20em", overflow: "auto" } }, mc = { style: { "max-height": "20em", overflow: "auto" } }, gc = /* @__PURE__ */ $r({
|
|
4544
4549
|
__name: "PreferencesForm",
|
|
4545
4550
|
setup(e, { expose: t }) {
|
|
4546
4551
|
const s = rc(), n = zt([]), r = zt(""), i = li(() => l.value.find((c) => c.category === r.value)?.schema), o = zt({}), l = zt([]);
|
|
@@ -4635,7 +4640,7 @@ class qs extends (Oi = Fi) {
|
|
|
4635
4640
|
outSideClose: !1,
|
|
4636
4641
|
center: !0,
|
|
4637
4642
|
title: "InPageEdit Prefrences",
|
|
4638
|
-
content: /* @__PURE__ */ tt(Mi, { children: /* @__PURE__ */ tt(
|
|
4643
|
+
content: /* @__PURE__ */ tt(Mi, { children: /* @__PURE__ */ tt($i, {}) })
|
|
4639
4644
|
});
|
|
4640
4645
|
t.get$wrapper().addClass("dialog");
|
|
4641
4646
|
const s = /* @__PURE__ */ tt("div", { id: "ipe-preferences-app", style: { minHeight: "65vh" } });
|
|
@@ -4674,4 +4679,4 @@ Oc(pn, 1, qs);
|
|
|
4674
4679
|
export {
|
|
4675
4680
|
qs as PluginPreferencesUI
|
|
4676
4681
|
};
|
|
4677
|
-
//# sourceMappingURL=index-
|
|
4682
|
+
//# sourceMappingURL=index-BTngTj1f.js.map
|