@umoteam/editor 4.0.1 → 4.0.2
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/style.css +1 -1
- package/dist/umo-editor.mjs +108 -108
- package/package.json +1 -1
package/dist/umo-editor.mjs
CHANGED
|
@@ -61,7 +61,7 @@ import { toBlob as z0, toJpeg as rx, toPng as ax } from "dom-to-image-more";
|
|
|
61
61
|
import To from "nzh/cn";
|
|
62
62
|
import ox from "mammoth/mammoth.browser";
|
|
63
63
|
/**
|
|
64
|
-
* @umoteam/editor 4.0.
|
|
64
|
+
* @umoteam/editor 4.0.2
|
|
65
65
|
* @license MIT
|
|
66
66
|
* @author umodoc https://www.umodoc.com
|
|
67
67
|
* @see https://editor.umodoc.com/en/docs
|
|
@@ -2394,7 +2394,7 @@ function Qj(t) {
|
|
|
2394
2394
|
return t == null ? void 0 : t[e];
|
|
2395
2395
|
};
|
|
2396
2396
|
}
|
|
2397
|
-
var
|
|
2397
|
+
var e7 = Qj, t7 = e7, n7 = {
|
|
2398
2398
|
// Latin-1 Supplement block.
|
|
2399
2399
|
À: "A",
|
|
2400
2400
|
Á: "A",
|
|
@@ -2587,49 +2587,49 @@ var eN = Qj, tN = eN, nN = {
|
|
|
2587
2587
|
œ: "oe",
|
|
2588
2588
|
ʼn: "'n",
|
|
2589
2589
|
ſ: "s"
|
|
2590
|
-
},
|
|
2591
|
-
function
|
|
2592
|
-
return t =
|
|
2590
|
+
}, r7 = t7(n7), a7 = r7, o7 = a7, l7 = wl, i7 = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, s7 = "\\u0300-\\u036f", u7 = "\\ufe20-\\ufe2f", c7 = "\\u20d0-\\u20ff", d7 = s7 + u7 + c7, f7 = "[" + d7 + "]", v7 = RegExp(f7, "g");
|
|
2591
|
+
function p7(t) {
|
|
2592
|
+
return t = l7(t), t && t.replace(i7, o7).replace(v7, "");
|
|
2593
2593
|
}
|
|
2594
|
-
var
|
|
2595
|
-
function
|
|
2596
|
-
return t.match(
|
|
2594
|
+
var m7 = p7, h7 = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
2595
|
+
function g7(t) {
|
|
2596
|
+
return t.match(h7) || [];
|
|
2597
2597
|
}
|
|
2598
|
-
var
|
|
2599
|
-
function
|
|
2600
|
-
return
|
|
2598
|
+
var b7 = g7, y7 = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
2599
|
+
function _7(t) {
|
|
2600
|
+
return y7.test(t);
|
|
2601
2601
|
}
|
|
2602
|
-
var
|
|
2602
|
+
var w7 = _7, Xy = "\\ud800-\\udfff", C7 = "\\u0300-\\u036f", $7 = "\\ufe20-\\ufe2f", k7 = "\\u20d0-\\u20ff", x7 = C7 + $7 + k7, Jy = "\\u2700-\\u27bf", Qy = "a-z\\xdf-\\xf6\\xf8-\\xff", S7 = "\\xac\\xb1\\xd7\\xf7", O7 = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", E7 = "\\u2000-\\u206f", A7 = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", e_ = "A-Z\\xc0-\\xd6\\xd8-\\xde", T7 = "\\ufe0e\\ufe0f", t_ = S7 + O7 + E7 + A7, n_ = "['’]", Gp = "[" + t_ + "]", P7 = "[" + x7 + "]", r_ = "\\d+", M7 = "[" + Jy + "]", a_ = "[" + Qy + "]", o_ = "[^" + Xy + t_ + r_ + Jy + Qy + e_ + "]", I7 = "\\ud83c[\\udffb-\\udfff]", j7 = "(?:" + P7 + "|" + I7 + ")", N7 = "[^" + Xy + "]", l_ = "(?:\\ud83c[\\udde6-\\uddff]){2}", i_ = "[\\ud800-\\udbff][\\udc00-\\udfff]", Ea = "[" + e_ + "]", D7 = "\\u200d", qp = "(?:" + a_ + "|" + o_ + ")", B7 = "(?:" + Ea + "|" + o_ + ")", Yp = "(?:" + n_ + "(?:d|ll|m|re|s|t|ve))?", Zp = "(?:" + n_ + "(?:D|LL|M|RE|S|T|VE))?", s_ = j7 + "?", u_ = "[" + T7 + "]?", F7 = "(?:" + D7 + "(?:" + [N7, l_, i_].join("|") + ")" + u_ + s_ + ")*", L7 = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", R7 = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", z7 = u_ + s_ + F7, V7 = "(?:" + [M7, l_, i_].join("|") + ")" + z7, H7 = RegExp([
|
|
2603
2603
|
Ea + "?" + a_ + "+" + Yp + "(?=" + [Gp, Ea, "$"].join("|") + ")",
|
|
2604
|
-
|
|
2604
|
+
B7 + "+" + Zp + "(?=" + [Gp, Ea + qp, "$"].join("|") + ")",
|
|
2605
2605
|
Ea + "?" + qp + "+" + Yp,
|
|
2606
2606
|
Ea + "+" + Zp,
|
|
2607
|
-
|
|
2608
|
-
|
|
2607
|
+
R7,
|
|
2608
|
+
L7,
|
|
2609
2609
|
r_,
|
|
2610
|
-
|
|
2610
|
+
V7
|
|
2611
2611
|
].join("|"), "g");
|
|
2612
|
-
function
|
|
2613
|
-
return t.match(
|
|
2612
|
+
function U7(t) {
|
|
2613
|
+
return t.match(H7) || [];
|
|
2614
2614
|
}
|
|
2615
|
-
var
|
|
2616
|
-
function
|
|
2617
|
-
return t =
|
|
2615
|
+
var K7 = U7, W7 = b7, G7 = w7, q7 = wl, Y7 = K7;
|
|
2616
|
+
function Z7(t, e, n) {
|
|
2617
|
+
return t = q7(t), e = n ? void 0 : e, e === void 0 ? G7(t) ? Y7(t) : W7(t) : t.match(e) || [];
|
|
2618
2618
|
}
|
|
2619
|
-
var
|
|
2620
|
-
function
|
|
2619
|
+
var X7 = Z7, J7 = Jj, Q7 = m7, eN = X7, tN = "['’]", nN = RegExp(tN, "g");
|
|
2620
|
+
function rN(t) {
|
|
2621
2621
|
return function(e) {
|
|
2622
|
-
return
|
|
2622
|
+
return J7(eN(Q7(e).replace(nN, "")), t, "");
|
|
2623
2623
|
};
|
|
2624
2624
|
}
|
|
2625
|
-
var bf =
|
|
2626
|
-
return e = e.toLowerCase(), t + (n ?
|
|
2627
|
-
}),
|
|
2628
|
-
const Wa = /* @__PURE__ */ nt(
|
|
2629
|
-
var
|
|
2625
|
+
var bf = rN, aN = Zj, oN = bf, lN = oN(function(t, e, n) {
|
|
2626
|
+
return e = e.toLowerCase(), t + (n ? aN(e) : e);
|
|
2627
|
+
}), iN = lN;
|
|
2628
|
+
const Wa = /* @__PURE__ */ nt(iN);
|
|
2629
|
+
var sN = bf, uN = sN(function(t, e, n) {
|
|
2630
2630
|
return t + (n ? "-" : "") + e.toLowerCase();
|
|
2631
|
-
}),
|
|
2632
|
-
const mo = /* @__PURE__ */ nt(
|
|
2631
|
+
}), cN = uN;
|
|
2632
|
+
const mo = /* @__PURE__ */ nt(cN);
|
|
2633
2633
|
/**
|
|
2634
2634
|
* tdesign v1.9.8
|
|
2635
2635
|
* (c) 2024 tdesign
|
|
@@ -2639,7 +2639,7 @@ function ho(t) {
|
|
|
2639
2639
|
var e;
|
|
2640
2640
|
return Mt(t) && "defaultNode" in t ? e = t.defaultNode : (Tn(t) || it(t)) && (e = t), e;
|
|
2641
2641
|
}
|
|
2642
|
-
function
|
|
2642
|
+
function dN(t) {
|
|
2643
2643
|
var e = [], n = function r(a) {
|
|
2644
2644
|
if (tt(a))
|
|
2645
2645
|
return a.forEach(function(o) {
|
|
@@ -2655,7 +2655,7 @@ function d7(t) {
|
|
|
2655
2655
|
function Ps(t) {
|
|
2656
2656
|
return Mt(t) && "params" in t ? t.params : {};
|
|
2657
2657
|
}
|
|
2658
|
-
function
|
|
2658
|
+
function fN(t) {
|
|
2659
2659
|
return Mt(t) && "slotFirst" in t ? t.slotFirst : {};
|
|
2660
2660
|
}
|
|
2661
2661
|
function Xp(t, e, n) {
|
|
@@ -2671,10 +2671,10 @@ var er = function(e, n, r) {
|
|
|
2671
2671
|
var i = [void 0, a, ""].includes(l);
|
|
2672
2672
|
return i && (e.$slots[Wa(n)] || e.$slots[mo(n)]) ? Xp(e, a, n) : l;
|
|
2673
2673
|
}
|
|
2674
|
-
},
|
|
2674
|
+
}, vN = function(e, n, r) {
|
|
2675
2675
|
var a = ho(r);
|
|
2676
2676
|
return er(e, n, r) || a;
|
|
2677
|
-
},
|
|
2677
|
+
}, pN = function(e, n, r, a) {
|
|
2678
2678
|
var o = Ps(a), l = ho(a), i = o ? {
|
|
2679
2679
|
params: o
|
|
2680
2680
|
} : void 0, s = er(e, n, i), c = er(e, r, i), u = ji(s) ? c : s;
|
|
@@ -2685,7 +2685,7 @@ var er = function(e, n, r) {
|
|
|
2685
2685
|
* (c) 2024 tdesign
|
|
2686
2686
|
* @license MIT
|
|
2687
2687
|
*/
|
|
2688
|
-
var
|
|
2688
|
+
var mN = {
|
|
2689
2689
|
attach: {
|
|
2690
2690
|
type: [String, Function],
|
|
2691
2691
|
default: ""
|
|
@@ -2749,7 +2749,7 @@ var Ms = function(e, n) {
|
|
|
2749
2749
|
* (c) 2024 tdesign
|
|
2750
2750
|
* @license MIT
|
|
2751
2751
|
*/
|
|
2752
|
-
var
|
|
2752
|
+
var hN = function() {
|
|
2753
2753
|
return {
|
|
2754
2754
|
name: Ce("loading"),
|
|
2755
2755
|
centerClass: Ce("loading--center"),
|
|
@@ -2763,9 +2763,9 @@ var h7 = function() {
|
|
|
2763
2763
|
}, ed = me({
|
|
2764
2764
|
name: "TLoading",
|
|
2765
2765
|
inheritAttrs: !1,
|
|
2766
|
-
props:
|
|
2766
|
+
props: mN,
|
|
2767
2767
|
setup: function(e, n) {
|
|
2768
|
-
var r = n.slots, a = M(!1), o =
|
|
2768
|
+
var r = n.slots, a = M(!1), o = hN(), l = o.name, i = o.centerClass, s = o.fullscreenClass, c = o.lockClass, u = o.overlayClass, d = o.relativeClass, f = o.fullClass, v = o.inheritColorClass, h = Ce(), m = Nt(), g = m.SIZE, w = function() {
|
|
2769
2769
|
a.value = !1;
|
|
2770
2770
|
var B = setTimeout(function() {
|
|
2771
2771
|
a.value = !0, clearTimeout(B);
|
|
@@ -2842,7 +2842,7 @@ var h7 = function() {
|
|
|
2842
2842
|
}
|
|
2843
2843
|
}) : this.hasContent ? p("div", Ee({
|
|
2844
2844
|
class: this.relativeClass
|
|
2845
|
-
}, this.$attrs), [
|
|
2845
|
+
}, this.$attrs), [pN(this, "default", "content"), this.showWrapLoading && p("div", {
|
|
2846
2846
|
class: o,
|
|
2847
2847
|
style: this.styles
|
|
2848
2848
|
}, [c, u])]) : this.attach ? !this.showAttachedLoading || !this.loading ? null : p(rr, {
|
|
@@ -2876,7 +2876,7 @@ function Jp(t, e) {
|
|
|
2876
2876
|
}
|
|
2877
2877
|
return n;
|
|
2878
2878
|
}
|
|
2879
|
-
function
|
|
2879
|
+
function gN(t) {
|
|
2880
2880
|
for (var e = 1; e < arguments.length; e++) {
|
|
2881
2881
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
2882
2882
|
e % 2 ? Jp(Object(n), !0).forEach(function(r) {
|
|
@@ -2888,7 +2888,7 @@ function g7(t) {
|
|
|
2888
2888
|
return t;
|
|
2889
2889
|
}
|
|
2890
2890
|
var Pa = null;
|
|
2891
|
-
function
|
|
2891
|
+
function bN(t) {
|
|
2892
2892
|
var e = pf({
|
|
2893
2893
|
fullscreen: !1,
|
|
2894
2894
|
attach: "body",
|
|
@@ -2898,7 +2898,7 @@ function b7(t) {
|
|
|
2898
2898
|
return e;
|
|
2899
2899
|
}
|
|
2900
2900
|
function Qp(t) {
|
|
2901
|
-
var e =
|
|
2901
|
+
var e = bN(t);
|
|
2902
2902
|
if (e.fullscreen && Pa)
|
|
2903
2903
|
return Pa;
|
|
2904
2904
|
var n = me({
|
|
@@ -2909,7 +2909,7 @@ function Qp(t) {
|
|
|
2909
2909
|
};
|
|
2910
2910
|
},
|
|
2911
2911
|
render: function() {
|
|
2912
|
-
return wt(ed,
|
|
2912
|
+
return wt(ed, gN({}, this.loadingOptions));
|
|
2913
2913
|
}
|
|
2914
2914
|
}), r = gf(e.fullscreen ? "body" : e.attach), a = us(n), o = a.mount(document.createElement("div")), l = Ce("loading__parent--relative").value, i = Ce("loading--lock"), s = e.preventScrollThrough && e.fullscreen;
|
|
2915
2915
|
s && Zc(document.body, i.value), r ? Zc(r, l) : console.error("attach is not exist");
|
|
@@ -2959,7 +2959,7 @@ var td = Symbol("TdLoading"), em = function(e, n) {
|
|
|
2959
2959
|
options: l,
|
|
2960
2960
|
instance: d_(l)
|
|
2961
2961
|
};
|
|
2962
|
-
},
|
|
2962
|
+
}, yN = {
|
|
2963
2963
|
mounted: function(e, n) {
|
|
2964
2964
|
n.value && em(e, n);
|
|
2965
2965
|
},
|
|
@@ -2993,14 +2993,14 @@ function ze(t, e, n) {
|
|
|
2993
2993
|
*/
|
|
2994
2994
|
var Is = ze(ed, ed.name, {
|
|
2995
2995
|
name: "loading",
|
|
2996
|
-
comp:
|
|
2996
|
+
comp: yN
|
|
2997
2997
|
});
|
|
2998
2998
|
/**
|
|
2999
2999
|
* tdesign v1.9.8
|
|
3000
3000
|
* (c) 2024 tdesign
|
|
3001
3001
|
* @license MIT
|
|
3002
3002
|
*/
|
|
3003
|
-
var
|
|
3003
|
+
var _N = {
|
|
3004
3004
|
block: Boolean,
|
|
3005
3005
|
content: {
|
|
3006
3006
|
type: [String, Function]
|
|
@@ -3074,16 +3074,16 @@ var _7 = {
|
|
|
3074
3074
|
* (c) 2024 tdesign
|
|
3075
3075
|
* @license MIT
|
|
3076
3076
|
*/
|
|
3077
|
-
var
|
|
3078
|
-
function
|
|
3077
|
+
var wN = Es.expand, CN = Es.ripple, $N = Es.fade;
|
|
3078
|
+
function kN() {
|
|
3079
3079
|
var t = Et("animation"), e = t.globalConfig, n = function(a) {
|
|
3080
3080
|
var o, l, i = e.value;
|
|
3081
3081
|
return i && !((o = i.exclude) !== null && o !== void 0 && o.includes(a)) && ((l = i.include) === null || l === void 0 ? void 0 : l.includes(a));
|
|
3082
3082
|
};
|
|
3083
3083
|
return {
|
|
3084
|
-
keepExpand: n(
|
|
3085
|
-
keepRipple: n(
|
|
3086
|
-
keepFade: n($
|
|
3084
|
+
keepExpand: n(wN),
|
|
3085
|
+
keepRipple: n(CN),
|
|
3086
|
+
keepFade: n($N)
|
|
3087
3087
|
};
|
|
3088
3088
|
}
|
|
3089
3089
|
/**
|
|
@@ -3102,18 +3102,18 @@ function tm(t, e) {
|
|
|
3102
3102
|
* (c) 2024 tdesign
|
|
3103
3103
|
* @license MIT
|
|
3104
3104
|
*/
|
|
3105
|
-
var Qu = 200,
|
|
3105
|
+
var Qu = 200, xN = "rgba(0, 0, 0, 0)", SN = "rgba(0, 0, 0, 0.35)", ON = function(e, n) {
|
|
3106
3106
|
var r;
|
|
3107
3107
|
if (e != null && (r = e.dataset) !== null && r !== void 0 && r.ripple) {
|
|
3108
3108
|
var a = e.dataset.ripple;
|
|
3109
3109
|
return a;
|
|
3110
3110
|
}
|
|
3111
3111
|
var o = getComputedStyle(e).getPropertyValue("--ripple-color");
|
|
3112
|
-
return o ||
|
|
3112
|
+
return o || SN;
|
|
3113
3113
|
};
|
|
3114
3114
|
function js(t, e) {
|
|
3115
|
-
var n = M(null), r = Ce(), a =
|
|
3116
|
-
var c = t.value, u =
|
|
3115
|
+
var n = M(null), r = Ce(), a = kN(), o = a.keepRipple, l = function(s) {
|
|
3116
|
+
var c = t.value, u = ON(c);
|
|
3117
3117
|
if (!(s.button !== 0 || !t || !o) && !(c.classList.contains("".concat(r.value, "-is-active")) || c.classList.contains("".concat(r.value, "-is-disabled")) || c.classList.contains("".concat(r.value, "-is-checked")) || c.classList.contains("".concat(r.value, "-is-loading")))) {
|
|
3118
3118
|
var d = getComputedStyle(c), f = parseInt(d.borderWidth, 10), v = f > 0 ? f : 0, h = c.offsetWidth, m = c.offsetHeight;
|
|
3119
3119
|
n.value.parentNode === null && (tm(n.value, {
|
|
@@ -3150,7 +3150,7 @@ function js(t, e) {
|
|
|
3150
3150
|
g.style.transform = "translateX(".concat(h, "px)");
|
|
3151
3151
|
}, 0);
|
|
3152
3152
|
var k = function x() {
|
|
3153
|
-
g.style.backgroundColor =
|
|
3153
|
+
g.style.backgroundColor = xN, t.value && (t.value.removeEventListener("pointerup", x, !1), t.value.removeEventListener("pointerleave", x, !1), setTimeout(function() {
|
|
3154
3154
|
g.remove(), n.value.children.length === 0 && n.value.remove();
|
|
3155
3155
|
}, Qu * 2 + 100));
|
|
3156
3156
|
};
|
|
@@ -3189,7 +3189,7 @@ function rm(t) {
|
|
|
3189
3189
|
var Ye = function() {
|
|
3190
3190
|
var e = St();
|
|
3191
3191
|
return function(n, r) {
|
|
3192
|
-
var a = Ps(r), o = ho(r), l =
|
|
3192
|
+
var a = Ps(r), o = ho(r), l = fN(r), i;
|
|
3193
3193
|
if (Object.keys(e.props).includes(n) && (i = e.props[n]), !(i === !1 || i === null)) {
|
|
3194
3194
|
if (i === !0)
|
|
3195
3195
|
return nm(e, n, a) || o;
|
|
@@ -3212,12 +3212,12 @@ var Ye = function() {
|
|
|
3212
3212
|
} : void 0, s = e(n, i), c = e(r, i), u = rm(s) ? c : s;
|
|
3213
3213
|
return rm(u) ? l : u;
|
|
3214
3214
|
};
|
|
3215
|
-
},
|
|
3216
|
-
function
|
|
3217
|
-
return t === !0 || t === !1 ||
|
|
3215
|
+
}, EN = fr, AN = Cn, TN = "[object Boolean]";
|
|
3216
|
+
function PN(t) {
|
|
3217
|
+
return t === !0 || t === !1 || AN(t) && EN(t) == TN;
|
|
3218
3218
|
}
|
|
3219
|
-
var
|
|
3220
|
-
const Yt = /* @__PURE__ */ nt(
|
|
3219
|
+
var MN = PN;
|
|
3220
|
+
const Yt = /* @__PURE__ */ nt(MN);
|
|
3221
3221
|
/**
|
|
3222
3222
|
* tdesign v1.9.8
|
|
3223
3223
|
* (c) 2024 tdesign
|
|
@@ -3258,9 +3258,9 @@ function Yl(t) {
|
|
|
3258
3258
|
}
|
|
3259
3259
|
return t;
|
|
3260
3260
|
}
|
|
3261
|
-
var
|
|
3261
|
+
var IN = me({
|
|
3262
3262
|
name: "TButton",
|
|
3263
|
-
props:
|
|
3263
|
+
props: _N,
|
|
3264
3264
|
setup: function(e, n) {
|
|
3265
3265
|
var r = n.attrs, a = n.slots, o = Ye(), l = Kt(), i = Ce("button"), s = Nt(), c = s.STATUS, u = s.SIZE, d = M();
|
|
3266
3266
|
js(d);
|
|
@@ -3301,7 +3301,7 @@ var I7 = me({
|
|
|
3301
3301
|
* (c) 2024 tdesign
|
|
3302
3302
|
* @license MIT
|
|
3303
3303
|
*/
|
|
3304
|
-
var Zt = ze(
|
|
3304
|
+
var Zt = ze(IN);
|
|
3305
3305
|
function vt(t, e, n) {
|
|
3306
3306
|
return e in t ? Object.defineProperty(t, e, {
|
|
3307
3307
|
value: n,
|
|
@@ -3331,22 +3331,22 @@ function lm(t) {
|
|
|
3331
3331
|
}
|
|
3332
3332
|
return t;
|
|
3333
3333
|
}
|
|
3334
|
-
function
|
|
3334
|
+
function jN(t) {
|
|
3335
3335
|
var e = ["fillOpacity", "fillRule", "clipRule"];
|
|
3336
3336
|
return e.includes(t) ? t.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : t;
|
|
3337
3337
|
}
|
|
3338
3338
|
function pt(t, e) {
|
|
3339
|
-
var n = Object.keys(t.attrs).reduce((r, a) => (r[
|
|
3339
|
+
var n = Object.keys(t.attrs).reduce((r, a) => (r[jN(a)] = t.attrs[a], r), {});
|
|
3340
3340
|
return wt(t.tag, lm(lm({}, n), e), (t.children || []).map((r) => pt(r, {})));
|
|
3341
3341
|
}
|
|
3342
|
-
var
|
|
3343
|
-
classPrefix:
|
|
3344
|
-
locale:
|
|
3342
|
+
var NN = "t", DN = "zh-CN", BN = {
|
|
3343
|
+
classPrefix: NN,
|
|
3344
|
+
locale: DN
|
|
3345
3345
|
};
|
|
3346
|
-
function
|
|
3346
|
+
function FN() {
|
|
3347
3347
|
var {
|
|
3348
3348
|
classPrefix: t
|
|
3349
|
-
} =
|
|
3349
|
+
} = BN;
|
|
3350
3350
|
return {
|
|
3351
3351
|
SIZE: {
|
|
3352
3352
|
default: "",
|
|
@@ -3376,7 +3376,7 @@ function F7() {
|
|
|
3376
3376
|
};
|
|
3377
3377
|
}
|
|
3378
3378
|
function ht(t) {
|
|
3379
|
-
var e =
|
|
3379
|
+
var e = FN().SIZE, n = E(() => t.value in e ? e[t.value] : ""), r = E(() => t.value === void 0 || t.value in e ? {} : {
|
|
3380
3380
|
fontSize: t.value
|
|
3381
3381
|
});
|
|
3382
3382
|
return {
|
|
@@ -3405,7 +3405,7 @@ function sm(t) {
|
|
|
3405
3405
|
}
|
|
3406
3406
|
return t;
|
|
3407
3407
|
}
|
|
3408
|
-
var
|
|
3408
|
+
var LN = {
|
|
3409
3409
|
tag: "svg",
|
|
3410
3410
|
attrs: {
|
|
3411
3411
|
fill: "none",
|
|
@@ -3446,7 +3446,7 @@ var L7 = {
|
|
|
3446
3446
|
});
|
|
3447
3447
|
}
|
|
3448
3448
|
}));
|
|
3449
|
-
return () => pt(
|
|
3449
|
+
return () => pt(LN, s.value);
|
|
3450
3450
|
}
|
|
3451
3451
|
});
|
|
3452
3452
|
function um(t, e) {
|
|
@@ -3470,7 +3470,7 @@ function cm(t) {
|
|
|
3470
3470
|
}
|
|
3471
3471
|
return t;
|
|
3472
3472
|
}
|
|
3473
|
-
var
|
|
3473
|
+
var RN = {
|
|
3474
3474
|
tag: "svg",
|
|
3475
3475
|
attrs: {
|
|
3476
3476
|
fill: "none",
|
|
@@ -3485,7 +3485,7 @@ var R7 = {
|
|
|
3485
3485
|
d: "M4 4h16v2H4V4zm8 3.59l6.91 6.91-1.41 1.41-4.5-4.5V21h-2v-9.59l-4.5 4.5-1.41-1.41L12 7.59z"
|
|
3486
3486
|
}
|
|
3487
3487
|
}]
|
|
3488
|
-
},
|
|
3488
|
+
}, zN = me({
|
|
3489
3489
|
name: "BacktopIcon",
|
|
3490
3490
|
props: {
|
|
3491
3491
|
size: {
|
|
@@ -3511,7 +3511,7 @@ var R7 = {
|
|
|
3511
3511
|
});
|
|
3512
3512
|
}
|
|
3513
3513
|
}));
|
|
3514
|
-
return () => pt(
|
|
3514
|
+
return () => pt(RN, s.value);
|
|
3515
3515
|
}
|
|
3516
3516
|
});
|
|
3517
3517
|
function dm(t, e) {
|
|
@@ -3535,7 +3535,7 @@ function fm(t) {
|
|
|
3535
3535
|
}
|
|
3536
3536
|
return t;
|
|
3537
3537
|
}
|
|
3538
|
-
var
|
|
3538
|
+
var VN = {
|
|
3539
3539
|
tag: "svg",
|
|
3540
3540
|
attrs: {
|
|
3541
3541
|
fill: "none",
|
|
@@ -3550,7 +3550,7 @@ var V7 = {
|
|
|
3550
3550
|
d: "M4 1.59l6.17 6.17 7.07 7.07L23.41 21 22 22.41l-2.97-2.96A12.5 12.5 0 011.08 12.3L1 12l.1-.3c.77-2.4 2.24-4.5 4.18-6.02L2.59 3 4 1.59zM6.7 7.1A10.53 10.53 0 003.1 12a10.5 10.5 0 0014.45 5.97l-1.8-1.8a5 5 0 01-6.93-6.93L6.7 7.11zm3.6 3.6a3 3 0 004 4l-4-4zM13 5c-.58 0-1.14.05-1.7.14l-.98.16L10 3.32l.99-.16A12.5 12.5 0 0124.9 11.7l.1.31-.1.3c-.41 1.3-1.03 2.5-1.82 3.58l-.59.8-1.61-1.18.59-.8c.6-.82 1.08-1.73 1.42-2.7A10.5 10.5 0 0013 5zm.51 1.93l.96.29a5 5 0 013.31 3.31l.3.96-1.92.58-.3-.95a3 3 0 00-1.98-1.99l-.95-.3.58-1.9z"
|
|
3551
3551
|
}
|
|
3552
3552
|
}]
|
|
3553
|
-
},
|
|
3553
|
+
}, HN = me({
|
|
3554
3554
|
name: "BrowseOffIcon",
|
|
3555
3555
|
props: {
|
|
3556
3556
|
size: {
|
|
@@ -3576,7 +3576,7 @@ var V7 = {
|
|
|
3576
3576
|
});
|
|
3577
3577
|
}
|
|
3578
3578
|
}));
|
|
3579
|
-
return () => pt(
|
|
3579
|
+
return () => pt(VN, s.value);
|
|
3580
3580
|
}
|
|
3581
3581
|
});
|
|
3582
3582
|
function vm(t, e) {
|
|
@@ -3600,7 +3600,7 @@ function pm(t) {
|
|
|
3600
3600
|
}
|
|
3601
3601
|
return t;
|
|
3602
3602
|
}
|
|
3603
|
-
var
|
|
3603
|
+
var UN = {
|
|
3604
3604
|
tag: "svg",
|
|
3605
3605
|
attrs: {
|
|
3606
3606
|
fill: "none",
|
|
@@ -3621,7 +3621,7 @@ var U7 = {
|
|
|
3621
3621
|
}
|
|
3622
3622
|
}]
|
|
3623
3623
|
}]
|
|
3624
|
-
},
|
|
3624
|
+
}, KN = me({
|
|
3625
3625
|
name: "BrowseIcon",
|
|
3626
3626
|
props: {
|
|
3627
3627
|
size: {
|
|
@@ -3647,7 +3647,7 @@ var U7 = {
|
|
|
3647
3647
|
});
|
|
3648
3648
|
}
|
|
3649
3649
|
}));
|
|
3650
|
-
return () => pt(
|
|
3650
|
+
return () => pt(UN, s.value);
|
|
3651
3651
|
}
|
|
3652
3652
|
});
|
|
3653
3653
|
function mm(t, e) {
|
|
@@ -3671,7 +3671,7 @@ function hm(t) {
|
|
|
3671
3671
|
}
|
|
3672
3672
|
return t;
|
|
3673
3673
|
}
|
|
3674
|
-
var
|
|
3674
|
+
var WN = {
|
|
3675
3675
|
tag: "svg",
|
|
3676
3676
|
attrs: {
|
|
3677
3677
|
fill: "none",
|
|
@@ -3712,7 +3712,7 @@ var W7 = {
|
|
|
3712
3712
|
});
|
|
3713
3713
|
}
|
|
3714
3714
|
}));
|
|
3715
|
-
return () => pt(
|
|
3715
|
+
return () => pt(WN, s.value);
|
|
3716
3716
|
}
|
|
3717
3717
|
});
|
|
3718
3718
|
function gm(t, e) {
|
|
@@ -3736,7 +3736,7 @@ function bm(t) {
|
|
|
3736
3736
|
}
|
|
3737
3737
|
return t;
|
|
3738
3738
|
}
|
|
3739
|
-
var
|
|
3739
|
+
var GN = {
|
|
3740
3740
|
tag: "svg",
|
|
3741
3741
|
attrs: {
|
|
3742
3742
|
fill: "none",
|
|
@@ -3777,7 +3777,7 @@ var G7 = {
|
|
|
3777
3777
|
});
|
|
3778
3778
|
}
|
|
3779
3779
|
}));
|
|
3780
|
-
return () => pt(
|
|
3780
|
+
return () => pt(GN, s.value);
|
|
3781
3781
|
}
|
|
3782
3782
|
});
|
|
3783
3783
|
function ym(t, e) {
|
|
@@ -3801,7 +3801,7 @@ function _m(t) {
|
|
|
3801
3801
|
}
|
|
3802
3802
|
return t;
|
|
3803
3803
|
}
|
|
3804
|
-
var
|
|
3804
|
+
var qN = {
|
|
3805
3805
|
tag: "svg",
|
|
3806
3806
|
attrs: {
|
|
3807
3807
|
fill: "none",
|
|
@@ -3816,7 +3816,7 @@ var q7 = {
|
|
|
3816
3816
|
d: "M15.91 17.5l-5.5-5.5 5.5-5.5-1.41-1.41L7.59 12l6.91 6.91 1.41-1.41z"
|
|
3817
3817
|
}
|
|
3818
3818
|
}]
|
|
3819
|
-
},
|
|
3819
|
+
}, YN = me({
|
|
3820
3820
|
name: "ChevronLeftIcon",
|
|
3821
3821
|
props: {
|
|
3822
3822
|
size: {
|
|
@@ -3842,7 +3842,7 @@ var q7 = {
|
|
|
3842
3842
|
});
|
|
3843
3843
|
}
|
|
3844
3844
|
}));
|
|
3845
|
-
return () => pt(
|
|
3845
|
+
return () => pt(qN, s.value);
|
|
3846
3846
|
}
|
|
3847
3847
|
});
|
|
3848
3848
|
function wm(t, e) {
|
|
@@ -3866,7 +3866,7 @@ function Cm(t) {
|
|
|
3866
3866
|
}
|
|
3867
3867
|
return t;
|
|
3868
3868
|
}
|
|
3869
|
-
var
|
|
3869
|
+
var ZN = {
|
|
3870
3870
|
tag: "svg",
|
|
3871
3871
|
attrs: {
|
|
3872
3872
|
fill: "none",
|
|
@@ -3881,7 +3881,7 @@ var Z7 = {
|
|
|
3881
3881
|
d: "M8.09 17.5l5.5-5.5-5.5-5.5L9.5 5.09 16.41 12 9.5 18.91 8.09 17.5z"
|
|
3882
3882
|
}
|
|
3883
3883
|
}]
|
|
3884
|
-
},
|
|
3884
|
+
}, XN = me({
|
|
3885
3885
|
name: "ChevronRightIcon",
|
|
3886
3886
|
props: {
|
|
3887
3887
|
size: {
|
|
@@ -3907,7 +3907,7 @@ var Z7 = {
|
|
|
3907
3907
|
});
|
|
3908
3908
|
}
|
|
3909
3909
|
}));
|
|
3910
|
-
return () => pt(
|
|
3910
|
+
return () => pt(ZN, s.value);
|
|
3911
3911
|
}
|
|
3912
3912
|
});
|
|
3913
3913
|
function $m(t, e) {
|
|
@@ -3931,7 +3931,7 @@ function km(t) {
|
|
|
3931
3931
|
}
|
|
3932
3932
|
return t;
|
|
3933
3933
|
}
|
|
3934
|
-
var
|
|
3934
|
+
var JN = {
|
|
3935
3935
|
tag: "svg",
|
|
3936
3936
|
attrs: {
|
|
3937
3937
|
fill: "none",
|
|
@@ -3946,7 +3946,7 @@ var J7 = {
|
|
|
3946
3946
|
d: "M17.5 15.91l-5.5-5.5-5.5 5.5-1.41-1.41L12 7.59l6.91 6.91-1.41 1.41z"
|
|
3947
3947
|
}
|
|
3948
3948
|
}]
|
|
3949
|
-
},
|
|
3949
|
+
}, QN = me({
|
|
3950
3950
|
name: "ChevronUpIcon",
|
|
3951
3951
|
props: {
|
|
3952
3952
|
size: {
|
|
@@ -3972,7 +3972,7 @@ var J7 = {
|
|
|
3972
3972
|
});
|
|
3973
3973
|
}
|
|
3974
3974
|
}));
|
|
3975
|
-
return () => pt(
|
|
3975
|
+
return () => pt(JN, s.value);
|
|
3976
3976
|
}
|
|
3977
3977
|
});
|
|
3978
3978
|
function xm(t, e) {
|
|
@@ -5005,7 +5005,7 @@ function Cf() {
|
|
|
5005
5005
|
var r, a;
|
|
5006
5006
|
n || (n = t.slots);
|
|
5007
5007
|
var o = ((r = n) === null || r === void 0 || (a = r.default) === null || a === void 0 ? void 0 : a.call(r)) || [];
|
|
5008
|
-
return
|
|
5008
|
+
return dN(o).filter(function(l) {
|
|
5009
5009
|
var i;
|
|
5010
5010
|
return (i = l.type.name) === null || i === void 0 ? void 0 : i.endsWith(e);
|
|
5011
5011
|
});
|
|
@@ -7711,7 +7711,7 @@ var D_ = me({
|
|
|
7711
7711
|
props: Ah({}, N_),
|
|
7712
7712
|
setup: function(e) {
|
|
7713
7713
|
var n = Ce("dropdown"), r = Ce("dropdown__menu"), a = Ot({}), o = M(), l = M(!1), i = Hn({
|
|
7714
|
-
ChevronRightIcon:
|
|
7714
|
+
ChevronRightIcon: XN
|
|
7715
7715
|
}), s = i.ChevronRightIcon, c = function(h) {
|
|
7716
7716
|
var m, g, w = h.data, y = h.context;
|
|
7717
7717
|
w == null || (m = w.onClick) === null || m === void 0 || m.call(w, w, y), (g = e.onClick) === null || g === void 0 || g.call(e, w, y);
|
|
@@ -8538,8 +8538,8 @@ var xF = me({
|
|
|
8538
8538
|
}),
|
|
8539
8539
|
setup: function(e, n) {
|
|
8540
8540
|
var r = n.expose, a = Et("input"), o = a.globalConfig, l = Hn({
|
|
8541
|
-
BrowseIcon:
|
|
8542
|
-
BrowseOffIcon:
|
|
8541
|
+
BrowseIcon: KN,
|
|
8542
|
+
BrowseOffIcon: HN,
|
|
8543
8543
|
CloseCircleFilledIcon: _f
|
|
8544
8544
|
}), i = l.BrowseIcon, s = l.BrowseOffIcon, c = l.CloseCircleFilledIcon, u = El(), d = Wt(), f = Ce("input"), v = Ce("input__wrap"), h = Ce("input__tips"), m = Nt(), g = m.STATUS, w = m.SIZE, y = Ce(), b = Ye(), C = _F(e, r), $ = C.isHover, k = C.tStatus, x = C.inputRef, P = C.renderType, A = C.showClear, O = C.focused, T = C.inputValue, W = C.isComposition, R = C.compositionValue, U = C.innerValue, N = C.limitNumber, B = $l(C, kF), H = $F(e, x, U), Q = H.inputPreRef, L = wF(e, $), F = E(function() {
|
|
8545
8545
|
var j;
|
|
@@ -9241,7 +9241,7 @@ var UF = me({
|
|
|
9241
9241
|
AddIcon: f_,
|
|
9242
9242
|
RemoveIcon: mD,
|
|
9243
9243
|
ChevronDownIcon: v_,
|
|
9244
|
-
ChevronUpIcon:
|
|
9244
|
+
ChevronUpIcon: QN
|
|
9245
9245
|
}), o = a.AddIcon, l = a.RemoveIcon, i = a.ChevronDownIcon, s = a.ChevronUpIcon, c = VF(e), u = c.inputRef;
|
|
9246
9246
|
return n.expose(HF({}, c)), function() {
|
|
9247
9247
|
var d = e.theme === "column" ? p(i, {
|
|
@@ -13393,7 +13393,7 @@ var vz = me({
|
|
|
13393
13393
|
props: fz,
|
|
13394
13394
|
setup: function(e) {
|
|
13395
13395
|
var n = M(!1), r = M(null), a = Ce("back-top"), o = Et("alert"), l = o.classPrefix, i = Hn({
|
|
13396
|
-
BacktopIcon:
|
|
13396
|
+
BacktopIcon: zN
|
|
13397
13397
|
}), s = i.BacktopIcon, c = Kt(), u = function(f) {
|
|
13398
13398
|
return typeof f == "string" && (typeof document > "u" ? "undefined" : Ut(document)) !== void 0 ? f === "body" ? document : document.querySelector(f) : typeof f == "function" ? f() : null;
|
|
13399
13399
|
};
|
|
@@ -18450,7 +18450,7 @@ var tH = me({
|
|
|
18450
18450
|
return e.setVisible(!e.visible);
|
|
18451
18451
|
},
|
|
18452
18452
|
ref: "refTrigger"
|
|
18453
|
-
}, [
|
|
18453
|
+
}, [vN(e, "default", p(eH, {
|
|
18454
18454
|
borderless: e.borderless,
|
|
18455
18455
|
color: e.innerValue,
|
|
18456
18456
|
disabled: e.disabled,
|
|
@@ -20019,7 +20019,7 @@ var OH = me({
|
|
|
20019
20019
|
}, null)]);
|
|
20020
20020
|
})])])]);
|
|
20021
20021
|
}, he = function($e) {
|
|
20022
|
-
var _e = $e === "prev" ? 0 : 180, Me = o("navigationArrow", p(
|
|
20022
|
+
var _e = $e === "prev" ? 0 : 180, Me = o("navigationArrow", p(YN, {
|
|
20023
20023
|
style: {
|
|
20024
20024
|
transform: "rotate(".concat(_e, "deg)")
|
|
20025
20025
|
},
|
|
@@ -39061,7 +39061,7 @@ const gme = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edi
|
|
|
39061
39061
|
e.ensureMarks(b);
|
|
39062
39062
|
}
|
|
39063
39063
|
return !0;
|
|
39064
|
-
}, W2 = (t) => (ro("data-v-
|
|
39064
|
+
}, W2 = (t) => (ro("data-v-b862cb37"), t = t(), ao(), t), yme = ["title"], _me = /* @__PURE__ */ W2(() => /* @__PURE__ */ I("div", { class: "page-node-header" }, [
|
|
39065
39065
|
/* @__PURE__ */ I("div", {
|
|
39066
39066
|
class: "page-corner corner-tl",
|
|
39067
39067
|
style: { width: "var(--page-margin-left)" }
|
|
@@ -39141,7 +39141,7 @@ const gme = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edi
|
|
|
39141
39141
|
}, 8, ["class", "style"]);
|
|
39142
39142
|
};
|
|
39143
39143
|
}
|
|
39144
|
-
}, $me = /* @__PURE__ */ Fe(Cme, [["__scopeId", "data-v-
|
|
39144
|
+
}, $me = /* @__PURE__ */ Fe(Cme, [["__scopeId", "data-v-b862cb37"]]), k0 = [
|
|
39145
39145
|
D2,
|
|
39146
39146
|
ls,
|
|
39147
39147
|
Vv,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umoteam/editor",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Umo Editor is open-source document editor based on Vue3 and Tiptap. Umo Editor provides comprehensive document editing capabilities and AI creation features, supports pagination, supports Markdown syntax, offers basic rich text editing functions, allows for the insertion of various node types in multiple formats, provides a variety of practical tools, and supports setting page styles. It also supports exporting in various formats, printing and print preview, block-level document editing, adding custom extensions, multi-language settings, and a dark theme.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"umo editor",
|