@qualityunit/liveagent-components-editor 0.0.13 → 0.0.15
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/ckeditor.cjs +1 -1
- package/dist/ckeditor.js +1 -1
- package/dist/{ckeditor5-Ceul3a7k.cjs → ckeditor5-APgjEysr.cjs} +253 -253
- package/dist/{ckeditor5-5TEgrcpZ.js → ckeditor5-B6Cow0OQ.js} +776 -777
- package/dist/editor-lib.cjs +1 -1
- package/dist/editor-lib.js +1 -1
- package/package.json +1 -1
|
@@ -116,7 +116,7 @@ let Bi = [];
|
|
|
116
116
|
const ur = [], Up = /* @__PURE__ */ Promise.resolve();
|
|
117
117
|
let dr = !1;
|
|
118
118
|
function Wp() {
|
|
119
|
-
dr || (dr = !0, Up.then(
|
|
119
|
+
dr || (dr = !0, Up.then(qe));
|
|
120
120
|
}
|
|
121
121
|
function hr(n) {
|
|
122
122
|
Bi.push(n);
|
|
@@ -126,7 +126,7 @@ function yV(n) {
|
|
|
126
126
|
}
|
|
127
127
|
const yo = /* @__PURE__ */ new Set();
|
|
128
128
|
let gi = 0;
|
|
129
|
-
function
|
|
129
|
+
function qe() {
|
|
130
130
|
if (gi !== 0)
|
|
131
131
|
return;
|
|
132
132
|
const n = vn;
|
|
@@ -244,7 +244,7 @@ function Yp(n, e, t, i, s, o, r = null, a = [-1]) {
|
|
|
244
244
|
c.fragment && c.fragment.l(d), d.forEach(ca);
|
|
245
245
|
} else
|
|
246
246
|
c.fragment && c.fragment.c();
|
|
247
|
-
e.intro && Gp(n.$$.fragment), Kp(n, e.target, e.anchor),
|
|
247
|
+
e.intro && Gp(n.$$.fragment), Kp(n, e.target, e.anchor), qe();
|
|
248
248
|
}
|
|
249
249
|
hn(l);
|
|
250
250
|
}
|
|
@@ -558,7 +558,7 @@ function t1() {
|
|
|
558
558
|
return "";
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
const Mt = t1(),
|
|
561
|
+
const Mt = t1(), B = {
|
|
562
562
|
isMac: ah(Mt),
|
|
563
563
|
isWindows: i1(Mt),
|
|
564
564
|
isGecko: n1(Mt),
|
|
@@ -664,12 +664,12 @@ function fn(n, e, t) {
|
|
|
664
664
|
o = "insert", r = "delete";
|
|
665
665
|
const a = n.length, l = e.length, c = l - a, u = {}, d = {};
|
|
666
666
|
function h(p) {
|
|
667
|
-
const _ = (d[p - 1] !== void 0 ? d[p - 1] : -1) + 1,
|
|
668
|
-
u[p +
|
|
669
|
-
let
|
|
670
|
-
for (;
|
|
671
|
-
|
|
672
|
-
return
|
|
667
|
+
const _ = (d[p - 1] !== void 0 ? d[p - 1] : -1) + 1, y = d[p + 1] !== void 0 ? d[p + 1] : -1, T = _ > y ? -1 : 1;
|
|
668
|
+
u[p + T] && (u[p] = u[p + T].slice(0)), u[p] || (u[p] = []), u[p].push(_ > y ? o : r);
|
|
669
|
+
let C = Math.max(_, y), L = C - p;
|
|
670
|
+
for (; L < a && C < l && t(n[L], e[C]); )
|
|
671
|
+
L++, C++, u[p].push("equal");
|
|
672
|
+
return C;
|
|
673
673
|
}
|
|
674
674
|
let f = 0, m;
|
|
675
675
|
do {
|
|
@@ -1026,12 +1026,12 @@ var x1 = "[object Null]", I1 = "[object Undefined]", gl = ot ? ot.toStringTag :
|
|
|
1026
1026
|
function Vt(n) {
|
|
1027
1027
|
return n == null ? n === void 0 ? I1 : x1 : gl && gl in Object(n) ? E1(n) : S1(n);
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function He(n) {
|
|
1030
1030
|
return n != null && typeof n == "object";
|
|
1031
1031
|
}
|
|
1032
1032
|
var P1 = "[object Symbol]";
|
|
1033
1033
|
function no(n) {
|
|
1034
|
-
return typeof n == "symbol" ||
|
|
1034
|
+
return typeof n == "symbol" || He(n) && Vt(n) == P1;
|
|
1035
1035
|
}
|
|
1036
1036
|
function wh(n, e) {
|
|
1037
1037
|
for (var t = -1, i = n == null ? 0 : n.length, s = Array(i); ++t < i; )
|
|
@@ -1294,12 +1294,12 @@ function T0(n, e) {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
var A0 = "[object Arguments]";
|
|
1296
1296
|
function kl(n) {
|
|
1297
|
-
return
|
|
1297
|
+
return He(n) && Vt(n) == A0;
|
|
1298
1298
|
}
|
|
1299
1299
|
var yh = Object.prototype, S0 = yh.hasOwnProperty, x0 = yh.propertyIsEnumerable, pr = kl(/* @__PURE__ */ function() {
|
|
1300
1300
|
return arguments;
|
|
1301
1301
|
}()) ? kl : function(n) {
|
|
1302
|
-
return
|
|
1302
|
+
return He(n) && S0.call(n, "callee") && !x0.call(n, "callee");
|
|
1303
1303
|
};
|
|
1304
1304
|
function I0() {
|
|
1305
1305
|
return !1;
|
|
@@ -1308,7 +1308,7 @@ var Ch = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
1308
1308
|
ee[G0] = ee[K0] = ee[Z0] = ee[J0] = ee[Y0] = ee[Q0] = ee[X0] = ee[ew] = ee[tw] = !0;
|
|
1309
1309
|
ee[V0] = ee[L0] = ee[q0] = ee[B0] = ee[j0] = ee[O0] = ee[M0] = ee[F0] = ee[D0] = ee[N0] = ee[$0] = ee[z0] = ee[H0] = ee[U0] = ee[W0] = !1;
|
|
1310
1310
|
function iw(n) {
|
|
1311
|
-
return
|
|
1311
|
+
return He(n) && vh(n.length) && !!ee[Vt(n)];
|
|
1312
1312
|
}
|
|
1313
1313
|
function oo(n) {
|
|
1314
1314
|
return function(e) {
|
|
@@ -1555,7 +1555,7 @@ function xh(n, e) {
|
|
|
1555
1555
|
}
|
|
1556
1556
|
var ka = Th(Object.getPrototypeOf, Object), Kw = "[object Object]", Zw = Function.prototype, Jw = Object.prototype, Ih = Zw.toString, Yw = Jw.hasOwnProperty, Qw = Ih.call(Object);
|
|
1557
1557
|
function Se(n) {
|
|
1558
|
-
if (!
|
|
1558
|
+
if (!He(n) || Vt(n) != Kw)
|
|
1559
1559
|
return !1;
|
|
1560
1560
|
var e = ka(n);
|
|
1561
1561
|
if (e === null)
|
|
@@ -2003,11 +2003,11 @@ function of(n) {
|
|
|
2003
2003
|
}
|
|
2004
2004
|
var cv = "[object Map]";
|
|
2005
2005
|
function uv(n) {
|
|
2006
|
-
return
|
|
2006
|
+
return He(n) && En(n) == cv;
|
|
2007
2007
|
}
|
|
2008
2008
|
var Hl = Fi && Fi.isMap, dv = Hl ? oo(Hl) : uv, hv = "[object Set]";
|
|
2009
2009
|
function fv(n) {
|
|
2010
|
-
return
|
|
2010
|
+
return He(n) && En(n) == hv;
|
|
2011
2011
|
}
|
|
2012
2012
|
var Ul = Fi && Fi.isSet, mv = Ul ? oo(Ul) : fv, gv = 1, pv = 2, wv = 4, rf = "[object Arguments]", bv = "[object Array]", _v = "[object Boolean]", vv = "[object Date]", yv = "[object Error]", af = "[object Function]", Cv = "[object GeneratorFunction]", kv = "[object Map]", Ev = "[object Number]", lf = "[object Object]", Tv = "[object RegExp]", Av = "[object Set]", Sv = "[object String]", xv = "[object Symbol]", Iv = "[object WeakMap]", Pv = "[object ArrayBuffer]", Rv = "[object DataView]", Vv = "[object Float32Array]", Lv = "[object Float64Array]", Bv = "[object Int8Array]", Ov = "[object Int16Array]", Mv = "[object Int32Array]", Fv = "[object Uint8Array]", Dv = "[object Uint8ClampedArray]", Nv = "[object Uint16Array]", $v = "[object Uint32Array]", Y = {};
|
|
2013
2013
|
Y[rf] = Y[bv] = Y[Pv] = Y[Rv] = Y[_v] = Y[vv] = Y[Vv] = Y[Lv] = Y[Bv] = Y[Ov] = Y[Mv] = Y[kv] = Y[Ev] = Y[lf] = Y[Tv] = Y[Av] = Y[Sv] = Y[xv] = Y[Fv] = Y[Dv] = Y[Nv] = Y[$v] = !0;
|
|
@@ -2041,12 +2041,12 @@ function Oi(n, e, t, i, s, o) {
|
|
|
2041
2041
|
return f;
|
|
2042
2042
|
o.set(n, r), mv(n) ? n.forEach(function(_) {
|
|
2043
2043
|
r.add(Oi(_, e, t, _, n, o));
|
|
2044
|
-
}) : dv(n) && n.forEach(function(_,
|
|
2045
|
-
r.set(
|
|
2044
|
+
}) : dv(n) && n.forEach(function(_, y) {
|
|
2045
|
+
r.set(y, Oi(_, e, t, y, n, o));
|
|
2046
2046
|
});
|
|
2047
2047
|
var m = c ? l ? I_ : _r : l ? ji : _a, p = u ? void 0 : m(n);
|
|
2048
|
-
return h0(p || n, function(_,
|
|
2049
|
-
p && (
|
|
2048
|
+
return h0(p || n, function(_, y) {
|
|
2049
|
+
p && (y = _, _ = n[y]), ga(r, y, Oi(_, e, t, y, n, o));
|
|
2050
2050
|
}), r;
|
|
2051
2051
|
}
|
|
2052
2052
|
var zv = 4;
|
|
@@ -2104,9 +2104,9 @@ function uf(n, e, t, i, s, o) {
|
|
|
2104
2104
|
break;
|
|
2105
2105
|
}
|
|
2106
2106
|
if (f) {
|
|
2107
|
-
if (!Zv(e, function(
|
|
2108
|
-
if (!Jv(f,
|
|
2109
|
-
return f.push(
|
|
2107
|
+
if (!Zv(e, function(y, T) {
|
|
2108
|
+
if (!Jv(f, T) && (m === y || s(m, y, t, i, o)))
|
|
2109
|
+
return f.push(T);
|
|
2110
2110
|
})) {
|
|
2111
2111
|
h = !1;
|
|
2112
2112
|
break;
|
|
@@ -2183,18 +2183,18 @@ function by(n, e, t, i, s, o) {
|
|
|
2183
2183
|
o.set(n, e), o.set(e, n);
|
|
2184
2184
|
for (var _ = r; ++d < l; ) {
|
|
2185
2185
|
h = a[d];
|
|
2186
|
-
var
|
|
2186
|
+
var y = n[h], T = e[h];
|
|
2187
2187
|
if (i)
|
|
2188
|
-
var
|
|
2189
|
-
if (!(
|
|
2188
|
+
var C = r ? i(T, y, h, e, n, o) : i(y, T, h, n, e, o);
|
|
2189
|
+
if (!(C === void 0 ? y === T || s(y, T, t, i, o) : C)) {
|
|
2190
2190
|
p = !1;
|
|
2191
2191
|
break;
|
|
2192
2192
|
}
|
|
2193
2193
|
_ || (_ = h == "constructor");
|
|
2194
2194
|
}
|
|
2195
2195
|
if (p && !_) {
|
|
2196
|
-
var
|
|
2197
|
-
|
|
2196
|
+
var L = n.constructor, D = e.constructor;
|
|
2197
|
+
L != D && "constructor" in n && "constructor" in e && !(typeof L == "function" && L instanceof L && typeof D == "function" && D instanceof D) && (p = !1);
|
|
2198
2198
|
}
|
|
2199
2199
|
return o.delete(n), o.delete(e), p;
|
|
2200
2200
|
}
|
|
@@ -2220,7 +2220,7 @@ function yy(n, e, t, i, s, o) {
|
|
|
2220
2220
|
return h ? (o || (o = new it()), by(n, e, t, i, s, o)) : !1;
|
|
2221
2221
|
}
|
|
2222
2222
|
function Sa(n, e, t, i, s) {
|
|
2223
|
-
return n === e ? !0 : n == null || e == null || !
|
|
2223
|
+
return n === e ? !0 : n == null || e == null || !He(n) && !He(e) ? n !== n && e !== e : yy(n, e, t, i, Sa, s);
|
|
2224
2224
|
}
|
|
2225
2225
|
function Cy(n) {
|
|
2226
2226
|
return function(e, t, i) {
|
|
@@ -2240,53 +2240,53 @@ function Di(n, e, t) {
|
|
|
2240
2240
|
if (typeof n != "function")
|
|
2241
2241
|
throw new TypeError(Ey);
|
|
2242
2242
|
e = _l(e) || 0, ie(t) && (u = !!t.leading, d = "maxWait" in t, o = d ? Ty(_l(t.maxWait) || 0, e) : o, h = "trailing" in t ? !!t.trailing : h);
|
|
2243
|
-
function f(
|
|
2244
|
-
var
|
|
2245
|
-
return i = s = void 0, c =
|
|
2243
|
+
function f(E) {
|
|
2244
|
+
var R = i, I = s;
|
|
2245
|
+
return i = s = void 0, c = E, r = n.apply(I, R), r;
|
|
2246
2246
|
}
|
|
2247
|
-
function m(
|
|
2248
|
-
return c =
|
|
2247
|
+
function m(E) {
|
|
2248
|
+
return c = E, a = setTimeout(y, e), u ? f(E) : r;
|
|
2249
2249
|
}
|
|
2250
|
-
function p(
|
|
2251
|
-
var
|
|
2252
|
-
return d ? Ay(X, o -
|
|
2250
|
+
function p(E) {
|
|
2251
|
+
var R = E - l, I = E - c, X = e - R;
|
|
2252
|
+
return d ? Ay(X, o - I) : X;
|
|
2253
2253
|
}
|
|
2254
|
-
function _(
|
|
2255
|
-
var
|
|
2256
|
-
return l === void 0 ||
|
|
2254
|
+
function _(E) {
|
|
2255
|
+
var R = E - l, I = E - c;
|
|
2256
|
+
return l === void 0 || R >= e || R < 0 || d && I >= o;
|
|
2257
2257
|
}
|
|
2258
|
-
function
|
|
2259
|
-
var
|
|
2260
|
-
if (_(
|
|
2261
|
-
return
|
|
2262
|
-
a = setTimeout(
|
|
2258
|
+
function y() {
|
|
2259
|
+
var E = So();
|
|
2260
|
+
if (_(E))
|
|
2261
|
+
return T(E);
|
|
2262
|
+
a = setTimeout(y, p(E));
|
|
2263
2263
|
}
|
|
2264
|
-
function
|
|
2265
|
-
return a = void 0, h && i ? f(
|
|
2264
|
+
function T(E) {
|
|
2265
|
+
return a = void 0, h && i ? f(E) : (i = s = void 0, r);
|
|
2266
2266
|
}
|
|
2267
|
-
function
|
|
2267
|
+
function C() {
|
|
2268
2268
|
a !== void 0 && clearTimeout(a), c = 0, i = l = s = a = void 0;
|
|
2269
2269
|
}
|
|
2270
|
-
function
|
|
2271
|
-
return a === void 0 ? r :
|
|
2270
|
+
function L() {
|
|
2271
|
+
return a === void 0 ? r : T(So());
|
|
2272
2272
|
}
|
|
2273
2273
|
function D() {
|
|
2274
|
-
var
|
|
2275
|
-
if (i = arguments, s = this, l =
|
|
2274
|
+
var E = So(), R = _(E);
|
|
2275
|
+
if (i = arguments, s = this, l = E, R) {
|
|
2276
2276
|
if (a === void 0)
|
|
2277
2277
|
return m(l);
|
|
2278
2278
|
if (d)
|
|
2279
|
-
return clearTimeout(a), a = setTimeout(
|
|
2279
|
+
return clearTimeout(a), a = setTimeout(y, e), f(l);
|
|
2280
2280
|
}
|
|
2281
|
-
return a === void 0 && (a = setTimeout(
|
|
2281
|
+
return a === void 0 && (a = setTimeout(y, e)), r;
|
|
2282
2282
|
}
|
|
2283
|
-
return D.cancel =
|
|
2283
|
+
return D.cancel = C, D.flush = L, D;
|
|
2284
2284
|
}
|
|
2285
2285
|
function kr(n, e, t) {
|
|
2286
2286
|
(t !== void 0 && !qn(n[e], t) || t === void 0 && !(e in n)) && ma(n, e, t);
|
|
2287
2287
|
}
|
|
2288
2288
|
function Sy(n) {
|
|
2289
|
-
return
|
|
2289
|
+
return He(n) && so(n);
|
|
2290
2290
|
}
|
|
2291
2291
|
function Er(n, e) {
|
|
2292
2292
|
if (!(e === "constructor" && typeof n[e] == "function") && e != "__proto__")
|
|
@@ -2331,13 +2331,13 @@ function Ly(n) {
|
|
|
2331
2331
|
}
|
|
2332
2332
|
var By = "[object String]";
|
|
2333
2333
|
function Kl(n) {
|
|
2334
|
-
return typeof n == "string" || !Ee(n) &&
|
|
2334
|
+
return typeof n == "string" || !Ee(n) && He(n) && Vt(n) == By;
|
|
2335
2335
|
}
|
|
2336
2336
|
function Oy(n, e) {
|
|
2337
2337
|
return e.length < 2 ? n : Sh(n, Ph(e, 0, -1));
|
|
2338
2338
|
}
|
|
2339
2339
|
function ei(n) {
|
|
2340
|
-
return
|
|
2340
|
+
return He(n) && n.nodeType === 1 && !Se(n);
|
|
2341
2341
|
}
|
|
2342
2342
|
function Ms(n, e) {
|
|
2343
2343
|
return Sa(n, e);
|
|
@@ -2978,7 +2978,7 @@ try {
|
|
|
2978
2978
|
/* istanbul ignore next -- @preserve */
|
|
2979
2979
|
Ar = { window: {}, document: {} };
|
|
2980
2980
|
}
|
|
2981
|
-
const
|
|
2981
|
+
const A = Ar;
|
|
2982
2982
|
/**
|
|
2983
2983
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2984
2984
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
@@ -3029,14 +3029,14 @@ function co(n) {
|
|
|
3029
3029
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
3030
3030
|
*/
|
|
3031
3031
|
function vf(n) {
|
|
3032
|
-
return !n || !n.parentNode || n.offsetParent ===
|
|
3032
|
+
return !n || !n.parentNode || n.offsetParent === A.document.body ? null : n.offsetParent;
|
|
3033
3033
|
}
|
|
3034
3034
|
/**
|
|
3035
3035
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3036
3036
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
3037
3037
|
*/
|
|
3038
3038
|
const yf = ["top", "right", "bottom", "left", "width", "height"];
|
|
3039
|
-
class
|
|
3039
|
+
class M {
|
|
3040
3040
|
/**
|
|
3041
3041
|
* Creates an instance of rect.
|
|
3042
3042
|
*
|
|
@@ -3075,8 +3075,8 @@ class O {
|
|
|
3075
3075
|
enumerable: !1
|
|
3076
3076
|
}), Sr(e) || t)
|
|
3077
3077
|
if (t) {
|
|
3078
|
-
const i =
|
|
3079
|
-
rs(this,
|
|
3078
|
+
const i = M.getDomRangeRects(e);
|
|
3079
|
+
rs(this, M.getBoundingRect(i));
|
|
3080
3080
|
} else
|
|
3081
3081
|
rs(this, e.getBoundingClientRect());
|
|
3082
3082
|
else if (Ns(e)) {
|
|
@@ -3098,7 +3098,7 @@ class O {
|
|
|
3098
3098
|
* @returns A cloned rect.
|
|
3099
3099
|
*/
|
|
3100
3100
|
clone() {
|
|
3101
|
-
return new
|
|
3101
|
+
return new M(this);
|
|
3102
3102
|
}
|
|
3103
3103
|
/**
|
|
3104
3104
|
* Moves the rect so that its upper–left corner lands in desired `[ x, y ]` location.
|
|
@@ -3135,7 +3135,7 @@ class O {
|
|
|
3135
3135
|
if (t.width = t.right - t.left, t.height = t.bottom - t.top, t.width < 0 || t.height < 0)
|
|
3136
3136
|
return null;
|
|
3137
3137
|
{
|
|
3138
|
-
const i = new
|
|
3138
|
+
const i = new M(t);
|
|
3139
3139
|
return i._source = this._source, i;
|
|
3140
3140
|
}
|
|
3141
3141
|
}
|
|
@@ -3185,7 +3185,7 @@ class O {
|
|
|
3185
3185
|
i = s, s = s.parentNode;
|
|
3186
3186
|
continue;
|
|
3187
3187
|
}
|
|
3188
|
-
const l = new
|
|
3188
|
+
const l = new M(s), c = t.getIntersection(l);
|
|
3189
3189
|
if (c)
|
|
3190
3190
|
c.getArea() < t.getArea() && (t = c);
|
|
3191
3191
|
else
|
|
@@ -3222,7 +3222,7 @@ class O {
|
|
|
3222
3222
|
* Recalculates screen coordinates to coordinates relative to the positioned ancestor offset.
|
|
3223
3223
|
*/
|
|
3224
3224
|
toAbsoluteRect() {
|
|
3225
|
-
const { scrollX: e, scrollY: t } =
|
|
3225
|
+
const { scrollX: e, scrollY: t } = A.window, i = this.clone().moveBy(e, t);
|
|
3226
3226
|
if (Sr(i._source)) {
|
|
3227
3227
|
const s = vf(i._source);
|
|
3228
3228
|
s && a2(i, s);
|
|
@@ -3258,11 +3258,11 @@ class O {
|
|
|
3258
3258
|
const t = [], i = Array.from(e.getClientRects());
|
|
3259
3259
|
if (i.length)
|
|
3260
3260
|
for (const s of i)
|
|
3261
|
-
t.push(new
|
|
3261
|
+
t.push(new M(s));
|
|
3262
3262
|
else {
|
|
3263
3263
|
let s = e.startContainer;
|
|
3264
3264
|
ue(s) && (s = s.parentNode);
|
|
3265
|
-
const o = new
|
|
3265
|
+
const o = new M(s.getBoundingClientRect());
|
|
3266
3266
|
o.right = o.left, o.width = 0, t.push(o);
|
|
3267
3267
|
}
|
|
3268
3268
|
return t;
|
|
@@ -3285,7 +3285,7 @@ class O {
|
|
|
3285
3285
|
let i = 0;
|
|
3286
3286
|
for (const s of e)
|
|
3287
3287
|
i++, t.left = Math.min(t.left, s.left), t.top = Math.min(t.top, s.top), t.right = Math.max(t.right, s.right), t.bottom = Math.max(t.bottom, s.bottom);
|
|
3288
|
-
return i == 0 ? null : (t.width = t.right - t.left, t.height = t.bottom - t.top, new
|
|
3288
|
+
return i == 0 ? null : (t.width = t.right - t.left, t.height = t.bottom - t.top, new M(t));
|
|
3289
3289
|
}
|
|
3290
3290
|
}
|
|
3291
3291
|
function rs(n, e) {
|
|
@@ -3305,7 +3305,7 @@ function r2(n) {
|
|
|
3305
3305
|
return n instanceof HTMLElement ? n.ownerDocument.defaultView.getComputedStyle(n).overflow : "visible";
|
|
3306
3306
|
}
|
|
3307
3307
|
function a2(n, e) {
|
|
3308
|
-
const t = new
|
|
3308
|
+
const t = new M(e), i = _f(e);
|
|
3309
3309
|
let s = 0, o = 0;
|
|
3310
3310
|
s -= t.left, o -= t.top, s += e.scrollLeft, o += e.scrollTop, s -= i.left, o -= i.top, n.moveBy(s, o);
|
|
3311
3311
|
}
|
|
@@ -3364,7 +3364,7 @@ class Q {
|
|
|
3364
3364
|
* Creates the single native observer shared across all `ResizeObserver` instances.
|
|
3365
3365
|
*/
|
|
3366
3366
|
static _createObserver() {
|
|
3367
|
-
Q._observerInstance = new
|
|
3367
|
+
Q._observerInstance = new A.window.ResizeObserver((e) => {
|
|
3368
3368
|
for (const t of e) {
|
|
3369
3369
|
const i = Q._getElementCallbacks(t.target);
|
|
3370
3370
|
if (i)
|
|
@@ -3420,7 +3420,7 @@ function gn(n) {
|
|
|
3420
3420
|
*/
|
|
3421
3421
|
function kf(n) {
|
|
3422
3422
|
try {
|
|
3423
|
-
|
|
3423
|
+
A.document.createAttribute(n);
|
|
3424
3424
|
} catch {
|
|
3425
3425
|
return !1;
|
|
3426
3426
|
}
|
|
@@ -3439,7 +3439,7 @@ function ti(n) {
|
|
|
3439
3439
|
*/
|
|
3440
3440
|
function Ia({ element: n, target: e, positions: t, limiter: i, fitInViewport: s, viewportOffsetConfig: o }) {
|
|
3441
3441
|
Qt(e) && (e = e()), Qt(i) && (i = i());
|
|
3442
|
-
const r = vf(n), a = l2(o), l = new
|
|
3442
|
+
const r = vf(n), a = l2(o), l = new M(n), c = ic(e, a);
|
|
3443
3443
|
let u;
|
|
3444
3444
|
if (!c || !a.getIntersection(c))
|
|
3445
3445
|
return null;
|
|
@@ -3461,12 +3461,12 @@ function Ia({ element: n, target: e, positions: t, limiter: i, fitInViewport: s,
|
|
|
3461
3461
|
return u;
|
|
3462
3462
|
}
|
|
3463
3463
|
function ic(n, e) {
|
|
3464
|
-
const t = new
|
|
3464
|
+
const t = new M(n).getVisible();
|
|
3465
3465
|
return t ? t.getIntersection(e) : null;
|
|
3466
3466
|
}
|
|
3467
3467
|
function l2(n) {
|
|
3468
3468
|
n = Object.assign({ top: 0, bottom: 0, left: 0, right: 0 }, n);
|
|
3469
|
-
const e = new
|
|
3469
|
+
const e = new M(A.window);
|
|
3470
3470
|
return e.top += n.top, e.height -= n.top, e.bottom -= n.bottom, e.height -= n.bottom, e;
|
|
3471
3471
|
}
|
|
3472
3472
|
function c2(n, e) {
|
|
@@ -3581,7 +3581,7 @@ function u2({ target: n, viewportOffset: e = 0, ancestorOffset: t = 0, alignToTo
|
|
|
3581
3581
|
}
|
|
3582
3582
|
}
|
|
3583
3583
|
function d2({ window: n, rect: e, alignToTop: t, forceScroll: i, viewportOffset: s }) {
|
|
3584
|
-
const o = e.clone().moveBy(0, s.bottom), r = e.clone().moveBy(0, -s.top), a = new
|
|
3584
|
+
const o = e.clone().moveBy(0, s.bottom), r = e.clone().moveBy(0, -s.top), a = new M(n).excludeScrollbarsAndBorders(), l = [r, o], c = t && i, u = l.every((p) => a.contains(p));
|
|
3585
3585
|
let { scrollX: d, scrollY: h } = n;
|
|
3586
3586
|
const f = d, m = h;
|
|
3587
3587
|
c ? h -= a.top - e.top + s.top : u || (Af(r, a) ? h -= a.top - e.top + s.top : Tf(o, a) && (t ? h += e.top - a.top - s.top : h += e.bottom - a.bottom + s.bottom)), u || (Sf(e, a) ? d -= a.left - e.left + s.left : xf(e, a) && (d += e.right - a.right + s.right)), (d != f || h !== m) && n.scrollTo(d, h);
|
|
@@ -3591,7 +3591,7 @@ function h2({ parent: n, getRect: e, alignToTop: t, forceScroll: i, ancestorOffs
|
|
|
3591
3591
|
let l, c, u;
|
|
3592
3592
|
const d = o || r.document.body;
|
|
3593
3593
|
for (; n != d; )
|
|
3594
|
-
c = e(), l = new
|
|
3594
|
+
c = e(), l = new M(n).excludeScrollbarsAndBorders(), u = l.contains(c), a ? n.scrollTop -= l.top - c.top + s : u || (Af(c, l) ? n.scrollTop -= l.top - c.top + s : Tf(c, l) && (t ? n.scrollTop += c.top - l.top - s : n.scrollTop += c.bottom - l.bottom + s)), u || (Sf(c, l) ? n.scrollLeft -= l.left - c.left + s : xf(c, l) && (n.scrollLeft += c.right - l.right + s)), n = n.parentNode;
|
|
3595
3595
|
}
|
|
3596
3596
|
function Tf(n, e) {
|
|
3597
3597
|
return n.bottom > e.bottom;
|
|
@@ -3616,13 +3616,13 @@ function sc(n) {
|
|
|
3616
3616
|
return n.parentNode;
|
|
3617
3617
|
}
|
|
3618
3618
|
function oc(n, e) {
|
|
3619
|
-
const t = Pa(n), i = new
|
|
3619
|
+
const t = Pa(n), i = new M(n);
|
|
3620
3620
|
if (t === e)
|
|
3621
3621
|
return i;
|
|
3622
3622
|
{
|
|
3623
3623
|
let s = t;
|
|
3624
3624
|
for (; s != e; ) {
|
|
3625
|
-
const o = s.frameElement, r = new
|
|
3625
|
+
const o = s.frameElement, r = new M(o).excludeScrollbarsAndBorders();
|
|
3626
3626
|
i.moveBy(r.left, r.top), s = s.parent;
|
|
3627
3627
|
}
|
|
3628
3628
|
}
|
|
@@ -3664,7 +3664,7 @@ function Gn(n) {
|
|
|
3664
3664
|
}
|
|
3665
3665
|
function rc(n) {
|
|
3666
3666
|
let e = Gn(n);
|
|
3667
|
-
return Object.entries(
|
|
3667
|
+
return Object.entries(B.isMac || B.isiOS ? m2 : g2).reduce((s, [o, r]) => (e & N[o] && (e &= ~N[o], s += r), s), "") + (e ? p2[e] : "");
|
|
3668
3668
|
}
|
|
3669
3669
|
function w2(n) {
|
|
3670
3670
|
return n == N.arrowright || n == N.arrowleft || n == N.arrowup || n == N.arrowdown;
|
|
@@ -3686,7 +3686,7 @@ function b2(n) {
|
|
|
3686
3686
|
if (n.endsWith("!"))
|
|
3687
3687
|
return Ni(n.slice(0, -1));
|
|
3688
3688
|
const e = Ni(n);
|
|
3689
|
-
return (
|
|
3689
|
+
return (B.isMac || B.isiOS) && e == N.ctrl ? N.cmd : e;
|
|
3690
3690
|
}
|
|
3691
3691
|
function _2(n, e) {
|
|
3692
3692
|
const t = Ra(n, e);
|
|
@@ -3759,26 +3759,26 @@ function K(n) {
|
|
|
3759
3759
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
3760
3760
|
*/
|
|
3761
3761
|
/* istanbul ignore else -- @preserve */
|
|
3762
|
-
|
|
3762
|
+
A.window.CKEDITOR_TRANSLATIONS || (A.window.CKEDITOR_TRANSLATIONS = {});
|
|
3763
3763
|
function k2(n, e, t = 1) {
|
|
3764
3764
|
if (typeof t != "number")
|
|
3765
3765
|
throw new g("translation-service-quantity-not-a-number", null, { quantity: t });
|
|
3766
3766
|
const i = T2();
|
|
3767
|
-
i === 1 && (n = Object.keys(
|
|
3767
|
+
i === 1 && (n = Object.keys(A.window.CKEDITOR_TRANSLATIONS)[0]);
|
|
3768
3768
|
const s = e.id || e.string;
|
|
3769
3769
|
if (i === 0 || !E2(n, s))
|
|
3770
3770
|
return t !== 1 ? e.plural : e.string;
|
|
3771
|
-
const o =
|
|
3771
|
+
const o = A.window.CKEDITOR_TRANSLATIONS[n].dictionary, r = A.window.CKEDITOR_TRANSLATIONS[n].getPluralForm || ((c) => c === 1 ? 0 : 1), a = o[s];
|
|
3772
3772
|
if (typeof a == "string")
|
|
3773
3773
|
return a;
|
|
3774
3774
|
const l = Number(r(t));
|
|
3775
3775
|
return a[l];
|
|
3776
3776
|
}
|
|
3777
3777
|
function E2(n, e) {
|
|
3778
|
-
return !!
|
|
3778
|
+
return !!A.window.CKEDITOR_TRANSLATIONS[n] && !!A.window.CKEDITOR_TRANSLATIONS[n].dictionary[e];
|
|
3779
3779
|
}
|
|
3780
3780
|
function T2() {
|
|
3781
|
-
return Object.keys(
|
|
3781
|
+
return Object.keys(A.window.CKEDITOR_TRANSLATIONS).length;
|
|
3782
3782
|
}
|
|
3783
3783
|
/**
|
|
3784
3784
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
@@ -4577,7 +4577,7 @@ function F2(n) {
|
|
|
4577
4577
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
4578
4578
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4579
4579
|
*/
|
|
4580
|
-
let
|
|
4580
|
+
let S = class extends Ne(U()) {
|
|
4581
4581
|
/**
|
|
4582
4582
|
* Creates an instance of the {@link module:ui/view~View} class.
|
|
4583
4583
|
*
|
|
@@ -5477,7 +5477,7 @@ function $i(n) {
|
|
|
5477
5477
|
return !n && n !== 0;
|
|
5478
5478
|
}
|
|
5479
5479
|
function $s(n) {
|
|
5480
|
-
return n instanceof
|
|
5480
|
+
return n instanceof S;
|
|
5481
5481
|
}
|
|
5482
5482
|
function Oa(n) {
|
|
5483
5483
|
return n instanceof xe;
|
|
@@ -5553,7 +5553,7 @@ class K2 extends Ae {
|
|
|
5553
5553
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
5554
5554
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
5555
5555
|
*/
|
|
5556
|
-
class at extends
|
|
5556
|
+
class at extends S {
|
|
5557
5557
|
/**
|
|
5558
5558
|
* @inheritDoc
|
|
5559
5559
|
*/
|
|
@@ -5677,7 +5677,7 @@ at.presentationalAttributeNames = [
|
|
|
5677
5677
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
5678
5678
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
5679
5679
|
*/
|
|
5680
|
-
class Z2 extends
|
|
5680
|
+
class Z2 extends S {
|
|
5681
5681
|
/**
|
|
5682
5682
|
* @inheritDoc
|
|
5683
5683
|
*/
|
|
@@ -5710,7 +5710,7 @@ class Z2 extends T {
|
|
|
5710
5710
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
5711
5711
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
5712
5712
|
*/
|
|
5713
|
-
class
|
|
5713
|
+
class O extends S {
|
|
5714
5714
|
/**
|
|
5715
5715
|
* Creates an instance of the button view class.
|
|
5716
5716
|
*
|
|
@@ -5756,7 +5756,7 @@ class B extends T {
|
|
|
5756
5756
|
})
|
|
5757
5757
|
}
|
|
5758
5758
|
};
|
|
5759
|
-
|
|
5759
|
+
B.isSafari && (this._focusDelayed || (this._focusDelayed = Va(() => this.focus(), 0)), o.on.mousedown = i.to(() => {
|
|
5760
5760
|
this._focusDelayed();
|
|
5761
5761
|
}), o.on.mouseup = i.to(() => {
|
|
5762
5762
|
this._focusDelayed.cancel();
|
|
@@ -5791,7 +5791,7 @@ class B extends T {
|
|
|
5791
5791
|
* and binds it with button attributes.
|
|
5792
5792
|
*/
|
|
5793
5793
|
_createKeystrokeView() {
|
|
5794
|
-
const e = new
|
|
5794
|
+
const e = new S();
|
|
5795
5795
|
return e.setTemplate({
|
|
5796
5796
|
tag: "span",
|
|
5797
5797
|
attributes: {
|
|
@@ -5825,7 +5825,7 @@ class B extends T {
|
|
|
5825
5825
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
5826
5826
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
5827
5827
|
*/
|
|
5828
|
-
class Zn extends
|
|
5828
|
+
class Zn extends O {
|
|
5829
5829
|
/**
|
|
5830
5830
|
* @inheritDoc
|
|
5831
5831
|
*/
|
|
@@ -5846,7 +5846,7 @@ class Zn extends B {
|
|
|
5846
5846
|
* Creates a toggle child view.
|
|
5847
5847
|
*/
|
|
5848
5848
|
_createToggleView() {
|
|
5849
|
-
const e = new
|
|
5849
|
+
const e = new S();
|
|
5850
5850
|
return e.setTemplate({
|
|
5851
5851
|
tag: "span",
|
|
5852
5852
|
attributes: {
|
|
@@ -5874,7 +5874,7 @@ const Fa = '<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d=
|
|
|
5874
5874
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
5875
5875
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
5876
5876
|
*/
|
|
5877
|
-
class Of extends
|
|
5877
|
+
class Of extends S {
|
|
5878
5878
|
/**
|
|
5879
5879
|
* Creates an instance of the collapsible view.
|
|
5880
5880
|
*
|
|
@@ -5927,7 +5927,7 @@ class Of extends T {
|
|
|
5927
5927
|
* Creates the main {@link #buttonView} of the collapsible.
|
|
5928
5928
|
*/
|
|
5929
5929
|
_createButtonView() {
|
|
5930
|
-
const e = new
|
|
5930
|
+
const e = new O(this.locale), t = e.bindTemplate;
|
|
5931
5931
|
return e.set({
|
|
5932
5932
|
withText: !0,
|
|
5933
5933
|
icon: Fa
|
|
@@ -5998,7 +5998,7 @@ const X2 = '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path cl
|
|
|
5998
5998
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
5999
5999
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
6000
6000
|
*/
|
|
6001
|
-
class Mf extends
|
|
6001
|
+
class Mf extends O {
|
|
6002
6002
|
constructor(e) {
|
|
6003
6003
|
super(e);
|
|
6004
6004
|
const t = this.bindTemplate;
|
|
@@ -6026,7 +6026,7 @@ class Mf extends B {
|
|
|
6026
6026
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
6027
6027
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
6028
6028
|
*/
|
|
6029
|
-
class mc extends
|
|
6029
|
+
class mc extends S {
|
|
6030
6030
|
/**
|
|
6031
6031
|
* Creates an instance of a color grid containing {@link module:ui/colorgrid/colortileview~ColorTileView tiles}.
|
|
6032
6032
|
*
|
|
@@ -6331,7 +6331,7 @@ function wc(n) {
|
|
|
6331
6331
|
const Sn = Df, Nf = {};
|
|
6332
6332
|
for (const n of Object.keys(Sn))
|
|
6333
6333
|
Nf[Sn[n]] = n;
|
|
6334
|
-
const
|
|
6334
|
+
const x = {
|
|
6335
6335
|
rgb: { channels: 3, labels: "rgb" },
|
|
6336
6336
|
hsl: { channels: 3, labels: "hsl" },
|
|
6337
6337
|
hsv: { channels: 3, labels: "hsv" },
|
|
@@ -6348,25 +6348,25 @@ const S = {
|
|
|
6348
6348
|
apple: { channels: 3, labels: ["r16", "g16", "b16"] },
|
|
6349
6349
|
gray: { channels: 1, labels: ["gray"] }
|
|
6350
6350
|
};
|
|
6351
|
-
var $f =
|
|
6352
|
-
for (const n of Object.keys(
|
|
6353
|
-
if (!("channels" in
|
|
6351
|
+
var $f = x;
|
|
6352
|
+
for (const n of Object.keys(x)) {
|
|
6353
|
+
if (!("channels" in x[n]))
|
|
6354
6354
|
throw new Error("missing channels property: " + n);
|
|
6355
|
-
if (!("labels" in
|
|
6355
|
+
if (!("labels" in x[n]))
|
|
6356
6356
|
throw new Error("missing channel labels property: " + n);
|
|
6357
|
-
if (
|
|
6357
|
+
if (x[n].labels.length !== x[n].channels)
|
|
6358
6358
|
throw new Error("channel and label counts mismatch: " + n);
|
|
6359
|
-
const { channels: e, labels: t } =
|
|
6360
|
-
delete
|
|
6359
|
+
const { channels: e, labels: t } = x[n];
|
|
6360
|
+
delete x[n].channels, delete x[n].labels, Object.defineProperty(x[n], "channels", { value: e }), Object.defineProperty(x[n], "labels", { value: t });
|
|
6361
6361
|
}
|
|
6362
|
-
|
|
6362
|
+
x.rgb.hsl = function(n) {
|
|
6363
6363
|
const e = n[0] / 255, t = n[1] / 255, i = n[2] / 255, s = Math.min(e, t, i), o = Math.max(e, t, i), r = o - s;
|
|
6364
6364
|
let a, l;
|
|
6365
6365
|
o === s ? a = 0 : e === o ? a = (t - i) / r : t === o ? a = 2 + (i - e) / r : i === o && (a = 4 + (e - t) / r), a = Math.min(a * 60, 360), a < 0 && (a += 360);
|
|
6366
6366
|
const c = (s + o) / 2;
|
|
6367
6367
|
return o === s ? l = 0 : c <= 0.5 ? l = r / (o + s) : l = r / (2 - o - s), [a, l * 100, c * 100];
|
|
6368
6368
|
};
|
|
6369
|
-
|
|
6369
|
+
x.rgb.hsv = function(n) {
|
|
6370
6370
|
let e, t, i, s, o;
|
|
6371
6371
|
const r = n[0] / 255, a = n[1] / 255, l = n[2] / 255, c = Math.max(r, a, l), u = c - Math.min(r, a, l), d = function(h) {
|
|
6372
6372
|
return (c - h) / 6 / u + 1 / 2;
|
|
@@ -6377,20 +6377,20 @@ S.rgb.hsv = function(n) {
|
|
|
6377
6377
|
c * 100
|
|
6378
6378
|
];
|
|
6379
6379
|
};
|
|
6380
|
-
|
|
6380
|
+
x.rgb.hwb = function(n) {
|
|
6381
6381
|
const e = n[0], t = n[1];
|
|
6382
6382
|
let i = n[2];
|
|
6383
|
-
const s =
|
|
6383
|
+
const s = x.rgb.hsl(n)[0], o = 1 / 255 * Math.min(e, Math.min(t, i));
|
|
6384
6384
|
return i = 1 - 1 / 255 * Math.max(e, Math.max(t, i)), [s, o * 100, i * 100];
|
|
6385
6385
|
};
|
|
6386
|
-
|
|
6386
|
+
x.rgb.cmyk = function(n) {
|
|
6387
6387
|
const e = n[0] / 255, t = n[1] / 255, i = n[2] / 255, s = Math.min(1 - e, 1 - t, 1 - i), o = (1 - e - s) / (1 - s) || 0, r = (1 - t - s) / (1 - s) || 0, a = (1 - i - s) / (1 - s) || 0;
|
|
6388
6388
|
return [o * 100, r * 100, a * 100, s * 100];
|
|
6389
6389
|
};
|
|
6390
6390
|
function eC(n, e) {
|
|
6391
6391
|
return (n[0] - e[0]) ** 2 + (n[1] - e[1]) ** 2 + (n[2] - e[2]) ** 2;
|
|
6392
6392
|
}
|
|
6393
|
-
|
|
6393
|
+
x.rgb.keyword = function(n) {
|
|
6394
6394
|
const e = Nf[n];
|
|
6395
6395
|
if (e)
|
|
6396
6396
|
return e;
|
|
@@ -6401,23 +6401,23 @@ S.rgb.keyword = function(n) {
|
|
|
6401
6401
|
}
|
|
6402
6402
|
return i;
|
|
6403
6403
|
};
|
|
6404
|
-
|
|
6404
|
+
x.keyword.rgb = function(n) {
|
|
6405
6405
|
return Sn[n];
|
|
6406
6406
|
};
|
|
6407
|
-
|
|
6407
|
+
x.rgb.xyz = function(n) {
|
|
6408
6408
|
let e = n[0] / 255, t = n[1] / 255, i = n[2] / 255;
|
|
6409
6409
|
e = e > 0.04045 ? ((e + 0.055) / 1.055) ** 2.4 : e / 12.92, t = t > 0.04045 ? ((t + 0.055) / 1.055) ** 2.4 : t / 12.92, i = i > 0.04045 ? ((i + 0.055) / 1.055) ** 2.4 : i / 12.92;
|
|
6410
6410
|
const s = e * 0.4124 + t * 0.3576 + i * 0.1805, o = e * 0.2126 + t * 0.7152 + i * 0.0722, r = e * 0.0193 + t * 0.1192 + i * 0.9505;
|
|
6411
6411
|
return [s * 100, o * 100, r * 100];
|
|
6412
6412
|
};
|
|
6413
|
-
|
|
6414
|
-
const e =
|
|
6413
|
+
x.rgb.lab = function(n) {
|
|
6414
|
+
const e = x.rgb.xyz(n);
|
|
6415
6415
|
let t = e[0], i = e[1], s = e[2];
|
|
6416
6416
|
t /= 95.047, i /= 100, s /= 108.883, t = t > 8856e-6 ? t ** (1 / 3) : 7.787 * t + 16 / 116, i = i > 8856e-6 ? i ** (1 / 3) : 7.787 * i + 16 / 116, s = s > 8856e-6 ? s ** (1 / 3) : 7.787 * s + 16 / 116;
|
|
6417
6417
|
const o = 116 * i - 16, r = 500 * (t - i), a = 200 * (i - s);
|
|
6418
6418
|
return [o, r, a];
|
|
6419
6419
|
};
|
|
6420
|
-
|
|
6420
|
+
x.hsl.rgb = function(n) {
|
|
6421
6421
|
const e = n[0] / 360, t = n[1] / 100, i = n[2] / 100;
|
|
6422
6422
|
let s, o, r;
|
|
6423
6423
|
if (t === 0)
|
|
@@ -6428,7 +6428,7 @@ S.hsl.rgb = function(n) {
|
|
|
6428
6428
|
o = e + 1 / 3 * -(c - 1), o < 0 && o++, o > 1 && o--, 6 * o < 1 ? r = a + (s - a) * 6 * o : 2 * o < 1 ? r = s : 3 * o < 2 ? r = a + (s - a) * (2 / 3 - o) * 6 : r = a, l[c] = r * 255;
|
|
6429
6429
|
return l;
|
|
6430
6430
|
};
|
|
6431
|
-
|
|
6431
|
+
x.hsl.hsv = function(n) {
|
|
6432
6432
|
const e = n[0];
|
|
6433
6433
|
let t = n[1] / 100, i = n[2] / 100, s = t;
|
|
6434
6434
|
const o = Math.max(i, 0.01);
|
|
@@ -6436,7 +6436,7 @@ S.hsl.hsv = function(n) {
|
|
|
6436
6436
|
const r = (i + t) / 2, a = i === 0 ? 2 * s / (o + s) : 2 * t / (i + t);
|
|
6437
6437
|
return [e, a * 100, r * 100];
|
|
6438
6438
|
};
|
|
6439
|
-
|
|
6439
|
+
x.hsv.rgb = function(n) {
|
|
6440
6440
|
const e = n[0] / 60, t = n[1] / 100;
|
|
6441
6441
|
let i = n[2] / 100;
|
|
6442
6442
|
const s = Math.floor(e) % 6, o = e - Math.floor(e), r = 255 * i * (1 - t), a = 255 * i * (1 - t * o), l = 255 * i * (1 - t * (1 - o));
|
|
@@ -6455,14 +6455,14 @@ S.hsv.rgb = function(n) {
|
|
|
6455
6455
|
return [i, r, a];
|
|
6456
6456
|
}
|
|
6457
6457
|
};
|
|
6458
|
-
|
|
6458
|
+
x.hsv.hsl = function(n) {
|
|
6459
6459
|
const e = n[0], t = n[1] / 100, i = n[2] / 100, s = Math.max(i, 0.01);
|
|
6460
6460
|
let o, r;
|
|
6461
6461
|
r = (2 - t) * i;
|
|
6462
6462
|
const a = (2 - t) * s;
|
|
6463
6463
|
return o = t * s, o /= a <= 1 ? a : 2 - a, o = o || 0, r /= 2, [e, o * 100, r * 100];
|
|
6464
6464
|
};
|
|
6465
|
-
|
|
6465
|
+
x.hwb.rgb = function(n) {
|
|
6466
6466
|
const e = n[0] / 360;
|
|
6467
6467
|
let t = n[1] / 100, i = n[2] / 100;
|
|
6468
6468
|
const s = t + i;
|
|
@@ -6496,62 +6496,62 @@ S.hwb.rgb = function(n) {
|
|
|
6496
6496
|
}
|
|
6497
6497
|
return [c * 255, u * 255, d * 255];
|
|
6498
6498
|
};
|
|
6499
|
-
|
|
6499
|
+
x.cmyk.rgb = function(n) {
|
|
6500
6500
|
const e = n[0] / 100, t = n[1] / 100, i = n[2] / 100, s = n[3] / 100, o = 1 - Math.min(1, e * (1 - s) + s), r = 1 - Math.min(1, t * (1 - s) + s), a = 1 - Math.min(1, i * (1 - s) + s);
|
|
6501
6501
|
return [o * 255, r * 255, a * 255];
|
|
6502
6502
|
};
|
|
6503
|
-
|
|
6503
|
+
x.xyz.rgb = function(n) {
|
|
6504
6504
|
const e = n[0] / 100, t = n[1] / 100, i = n[2] / 100;
|
|
6505
6505
|
let s, o, r;
|
|
6506
6506
|
return s = e * 3.2406 + t * -1.5372 + i * -0.4986, o = e * -0.9689 + t * 1.8758 + i * 0.0415, r = e * 0.0557 + t * -0.204 + i * 1.057, s = s > 31308e-7 ? 1.055 * s ** (1 / 2.4) - 0.055 : s * 12.92, o = o > 31308e-7 ? 1.055 * o ** (1 / 2.4) - 0.055 : o * 12.92, r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92, s = Math.min(Math.max(0, s), 1), o = Math.min(Math.max(0, o), 1), r = Math.min(Math.max(0, r), 1), [s * 255, o * 255, r * 255];
|
|
6507
6507
|
};
|
|
6508
|
-
|
|
6508
|
+
x.xyz.lab = function(n) {
|
|
6509
6509
|
let e = n[0], t = n[1], i = n[2];
|
|
6510
6510
|
e /= 95.047, t /= 100, i /= 108.883, e = e > 8856e-6 ? e ** (1 / 3) : 7.787 * e + 16 / 116, t = t > 8856e-6 ? t ** (1 / 3) : 7.787 * t + 16 / 116, i = i > 8856e-6 ? i ** (1 / 3) : 7.787 * i + 16 / 116;
|
|
6511
6511
|
const s = 116 * t - 16, o = 500 * (e - t), r = 200 * (t - i);
|
|
6512
6512
|
return [s, o, r];
|
|
6513
6513
|
};
|
|
6514
|
-
|
|
6514
|
+
x.lab.xyz = function(n) {
|
|
6515
6515
|
const e = n[0], t = n[1], i = n[2];
|
|
6516
6516
|
let s, o, r;
|
|
6517
6517
|
o = (e + 16) / 116, s = t / 500 + o, r = o - i / 200;
|
|
6518
6518
|
const a = o ** 3, l = s ** 3, c = r ** 3;
|
|
6519
6519
|
return o = a > 8856e-6 ? a : (o - 16 / 116) / 7.787, s = l > 8856e-6 ? l : (s - 16 / 116) / 7.787, r = c > 8856e-6 ? c : (r - 16 / 116) / 7.787, s *= 95.047, o *= 100, r *= 108.883, [s, o, r];
|
|
6520
6520
|
};
|
|
6521
|
-
|
|
6521
|
+
x.lab.lch = function(n) {
|
|
6522
6522
|
const e = n[0], t = n[1], i = n[2];
|
|
6523
6523
|
let s;
|
|
6524
6524
|
s = Math.atan2(i, t) * 360 / 2 / Math.PI, s < 0 && (s += 360);
|
|
6525
6525
|
const r = Math.sqrt(t * t + i * i);
|
|
6526
6526
|
return [e, r, s];
|
|
6527
6527
|
};
|
|
6528
|
-
|
|
6528
|
+
x.lch.lab = function(n) {
|
|
6529
6529
|
const e = n[0], t = n[1], s = n[2] / 360 * 2 * Math.PI, o = t * Math.cos(s), r = t * Math.sin(s);
|
|
6530
6530
|
return [e, o, r];
|
|
6531
6531
|
};
|
|
6532
|
-
|
|
6532
|
+
x.rgb.ansi16 = function(n, e = null) {
|
|
6533
6533
|
const [t, i, s] = n;
|
|
6534
|
-
let o = e === null ?
|
|
6534
|
+
let o = e === null ? x.rgb.hsv(n)[2] : e;
|
|
6535
6535
|
if (o = Math.round(o / 50), o === 0)
|
|
6536
6536
|
return 30;
|
|
6537
6537
|
let r = 30 + (Math.round(s / 255) << 2 | Math.round(i / 255) << 1 | Math.round(t / 255));
|
|
6538
6538
|
return o === 2 && (r += 60), r;
|
|
6539
6539
|
};
|
|
6540
|
-
|
|
6541
|
-
return
|
|
6540
|
+
x.hsv.ansi16 = function(n) {
|
|
6541
|
+
return x.rgb.ansi16(x.hsv.rgb(n), n[2]);
|
|
6542
6542
|
};
|
|
6543
|
-
|
|
6543
|
+
x.rgb.ansi256 = function(n) {
|
|
6544
6544
|
const e = n[0], t = n[1], i = n[2];
|
|
6545
6545
|
return e === t && t === i ? e < 8 ? 16 : e > 248 ? 231 : Math.round((e - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(e / 255 * 5) + 6 * Math.round(t / 255 * 5) + Math.round(i / 255 * 5);
|
|
6546
6546
|
};
|
|
6547
|
-
|
|
6547
|
+
x.ansi16.rgb = function(n) {
|
|
6548
6548
|
let e = n % 10;
|
|
6549
6549
|
if (e === 0 || e === 7)
|
|
6550
6550
|
return n > 50 && (e += 3.5), e = e / 10.5 * 255, [e, e, e];
|
|
6551
6551
|
const t = (~~(n > 50) + 1) * 0.5, i = (e & 1) * t * 255, s = (e >> 1 & 1) * t * 255, o = (e >> 2 & 1) * t * 255;
|
|
6552
6552
|
return [i, s, o];
|
|
6553
6553
|
};
|
|
6554
|
-
|
|
6554
|
+
x.ansi256.rgb = function(n) {
|
|
6555
6555
|
if (n >= 232) {
|
|
6556
6556
|
const o = (n - 232) * 10 + 8;
|
|
6557
6557
|
return [o, o, o];
|
|
@@ -6561,11 +6561,11 @@ S.ansi256.rgb = function(n) {
|
|
|
6561
6561
|
const t = Math.floor(n / 36) / 5 * 255, i = Math.floor((e = n % 36) / 6) / 5 * 255, s = e % 6 / 5 * 255;
|
|
6562
6562
|
return [t, i, s];
|
|
6563
6563
|
};
|
|
6564
|
-
|
|
6564
|
+
x.rgb.hex = function(n) {
|
|
6565
6565
|
const t = (((Math.round(n[0]) & 255) << 16) + ((Math.round(n[1]) & 255) << 8) + (Math.round(n[2]) & 255)).toString(16).toUpperCase();
|
|
6566
6566
|
return "000000".substring(t.length) + t;
|
|
6567
6567
|
};
|
|
6568
|
-
|
|
6568
|
+
x.hex.rgb = function(n) {
|
|
6569
6569
|
const e = n.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
|
6570
6570
|
if (!e)
|
|
6571
6571
|
return [0, 0, 0];
|
|
@@ -6574,22 +6574,22 @@ S.hex.rgb = function(n) {
|
|
|
6574
6574
|
const i = parseInt(t, 16), s = i >> 16 & 255, o = i >> 8 & 255, r = i & 255;
|
|
6575
6575
|
return [s, o, r];
|
|
6576
6576
|
};
|
|
6577
|
-
|
|
6577
|
+
x.rgb.hcg = function(n) {
|
|
6578
6578
|
const e = n[0] / 255, t = n[1] / 255, i = n[2] / 255, s = Math.max(Math.max(e, t), i), o = Math.min(Math.min(e, t), i), r = s - o;
|
|
6579
6579
|
let a, l;
|
|
6580
6580
|
return r < 1 ? a = o / (1 - r) : a = 0, r <= 0 ? l = 0 : s === e ? l = (t - i) / r % 6 : s === t ? l = 2 + (i - e) / r : l = 4 + (e - t) / r, l /= 6, l %= 1, [l * 360, r * 100, a * 100];
|
|
6581
6581
|
};
|
|
6582
|
-
|
|
6582
|
+
x.hsl.hcg = function(n) {
|
|
6583
6583
|
const e = n[1] / 100, t = n[2] / 100, i = t < 0.5 ? 2 * e * t : 2 * e * (1 - t);
|
|
6584
6584
|
let s = 0;
|
|
6585
6585
|
return i < 1 && (s = (t - 0.5 * i) / (1 - i)), [n[0], i * 100, s * 100];
|
|
6586
6586
|
};
|
|
6587
|
-
|
|
6587
|
+
x.hsv.hcg = function(n) {
|
|
6588
6588
|
const e = n[1] / 100, t = n[2] / 100, i = e * t;
|
|
6589
6589
|
let s = 0;
|
|
6590
6590
|
return i < 1 && (s = (t - i) / (1 - i)), [n[0], i * 100, s * 100];
|
|
6591
6591
|
};
|
|
6592
|
-
|
|
6592
|
+
x.hcg.rgb = function(n) {
|
|
6593
6593
|
const e = n[0] / 360, t = n[1] / 100, i = n[2] / 100;
|
|
6594
6594
|
if (t === 0)
|
|
6595
6595
|
return [i * 255, i * 255, i * 255];
|
|
@@ -6620,52 +6620,52 @@ S.hcg.rgb = function(n) {
|
|
|
6620
6620
|
(t * s[2] + l) * 255
|
|
6621
6621
|
];
|
|
6622
6622
|
};
|
|
6623
|
-
|
|
6623
|
+
x.hcg.hsv = function(n) {
|
|
6624
6624
|
const e = n[1] / 100, t = n[2] / 100, i = e + t * (1 - e);
|
|
6625
6625
|
let s = 0;
|
|
6626
6626
|
return i > 0 && (s = e / i), [n[0], s * 100, i * 100];
|
|
6627
6627
|
};
|
|
6628
|
-
|
|
6628
|
+
x.hcg.hsl = function(n) {
|
|
6629
6629
|
const e = n[1] / 100, i = n[2] / 100 * (1 - e) + 0.5 * e;
|
|
6630
6630
|
let s = 0;
|
|
6631
6631
|
return i > 0 && i < 0.5 ? s = e / (2 * i) : i >= 0.5 && i < 1 && (s = e / (2 * (1 - i))), [n[0], s * 100, i * 100];
|
|
6632
6632
|
};
|
|
6633
|
-
|
|
6633
|
+
x.hcg.hwb = function(n) {
|
|
6634
6634
|
const e = n[1] / 100, t = n[2] / 100, i = e + t * (1 - e);
|
|
6635
6635
|
return [n[0], (i - e) * 100, (1 - i) * 100];
|
|
6636
6636
|
};
|
|
6637
|
-
|
|
6637
|
+
x.hwb.hcg = function(n) {
|
|
6638
6638
|
const e = n[1] / 100, i = 1 - n[2] / 100, s = i - e;
|
|
6639
6639
|
let o = 0;
|
|
6640
6640
|
return s < 1 && (o = (i - s) / (1 - s)), [n[0], s * 100, o * 100];
|
|
6641
6641
|
};
|
|
6642
|
-
|
|
6642
|
+
x.apple.rgb = function(n) {
|
|
6643
6643
|
return [n[0] / 65535 * 255, n[1] / 65535 * 255, n[2] / 65535 * 255];
|
|
6644
6644
|
};
|
|
6645
|
-
|
|
6645
|
+
x.rgb.apple = function(n) {
|
|
6646
6646
|
return [n[0] / 255 * 65535, n[1] / 255 * 65535, n[2] / 255 * 65535];
|
|
6647
6647
|
};
|
|
6648
|
-
|
|
6648
|
+
x.gray.rgb = function(n) {
|
|
6649
6649
|
return [n[0] / 100 * 255, n[0] / 100 * 255, n[0] / 100 * 255];
|
|
6650
6650
|
};
|
|
6651
|
-
|
|
6651
|
+
x.gray.hsl = function(n) {
|
|
6652
6652
|
return [0, 0, n[0]];
|
|
6653
6653
|
};
|
|
6654
|
-
|
|
6655
|
-
|
|
6654
|
+
x.gray.hsv = x.gray.hsl;
|
|
6655
|
+
x.gray.hwb = function(n) {
|
|
6656
6656
|
return [0, 100, n[0]];
|
|
6657
6657
|
};
|
|
6658
|
-
|
|
6658
|
+
x.gray.cmyk = function(n) {
|
|
6659
6659
|
return [0, 0, 0, n[0]];
|
|
6660
6660
|
};
|
|
6661
|
-
|
|
6661
|
+
x.gray.lab = function(n) {
|
|
6662
6662
|
return [n[0], 0, 0];
|
|
6663
6663
|
};
|
|
6664
|
-
|
|
6664
|
+
x.gray.hex = function(n) {
|
|
6665
6665
|
const e = Math.round(n[0] / 100 * 255) & 255, i = ((e << 16) + (e << 8) + e).toString(16).toUpperCase();
|
|
6666
6666
|
return "000000".substring(i.length) + i;
|
|
6667
6667
|
};
|
|
6668
|
-
|
|
6668
|
+
x.rgb.gray = function(n) {
|
|
6669
6669
|
return [(n[0] + n[1] + n[2]) / 3 / 255 * 100];
|
|
6670
6670
|
};
|
|
6671
6671
|
const zs = $f;
|
|
@@ -6813,7 +6813,7 @@ function mC(n) {
|
|
|
6813
6813
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
6814
6814
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
6815
6815
|
*/
|
|
6816
|
-
class Jn extends
|
|
6816
|
+
class Jn extends S {
|
|
6817
6817
|
/**
|
|
6818
6818
|
* @inheritDoc
|
|
6819
6819
|
*/
|
|
@@ -6842,7 +6842,7 @@ class Jn extends T {
|
|
|
6842
6842
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
6843
6843
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
6844
6844
|
*/
|
|
6845
|
-
class Ki extends
|
|
6845
|
+
class Ki extends S {
|
|
6846
6846
|
/**
|
|
6847
6847
|
* Creates an instance of the labeled field view class using a provided creator function
|
|
6848
6848
|
* that provides the view to be labeled.
|
|
@@ -6906,7 +6906,7 @@ class Ki extends T {
|
|
|
6906
6906
|
* `aria-describedby` attribute.
|
|
6907
6907
|
*/
|
|
6908
6908
|
_createStatusView(e) {
|
|
6909
|
-
const t = new
|
|
6909
|
+
const t = new S(this.locale), i = this.bindTemplate;
|
|
6910
6910
|
return t.setTemplate({
|
|
6911
6911
|
tag: "div",
|
|
6912
6912
|
attributes: {
|
|
@@ -6937,7 +6937,7 @@ class Ki extends T {
|
|
|
6937
6937
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
6938
6938
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
6939
6939
|
*/
|
|
6940
|
-
class gC extends
|
|
6940
|
+
class gC extends S {
|
|
6941
6941
|
/**
|
|
6942
6942
|
* @inheritDoc
|
|
6943
6943
|
*/
|
|
@@ -7087,7 +7087,7 @@ class bC extends qf {
|
|
|
7087
7087
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7088
7088
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
7089
7089
|
*/
|
|
7090
|
-
class _C extends
|
|
7090
|
+
class _C extends S {
|
|
7091
7091
|
/**
|
|
7092
7092
|
* @inheritDoc
|
|
7093
7093
|
*/
|
|
@@ -7143,7 +7143,7 @@ class _C extends T {
|
|
|
7143
7143
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7144
7144
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
7145
7145
|
*/
|
|
7146
|
-
class zi extends
|
|
7146
|
+
class zi extends S {
|
|
7147
7147
|
/**
|
|
7148
7148
|
* Creates an instance of the dropdown.
|
|
7149
7149
|
*
|
|
@@ -7302,7 +7302,7 @@ zi._getOptimalPosition = Ia;
|
|
|
7302
7302
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7303
7303
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
7304
7304
|
*/
|
|
7305
|
-
class jf extends
|
|
7305
|
+
class jf extends O {
|
|
7306
7306
|
/**
|
|
7307
7307
|
* @inheritDoc
|
|
7308
7308
|
*/
|
|
@@ -7491,7 +7491,7 @@ function vC(n) {
|
|
|
7491
7491
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7492
7492
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
7493
7493
|
*/
|
|
7494
|
-
class Gf extends
|
|
7494
|
+
class Gf extends S {
|
|
7495
7495
|
/**
|
|
7496
7496
|
* @inheritDoc
|
|
7497
7497
|
*/
|
|
@@ -7511,7 +7511,7 @@ class Gf extends T {
|
|
|
7511
7511
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7512
7512
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
7513
7513
|
*/
|
|
7514
|
-
class yC extends
|
|
7514
|
+
class yC extends S {
|
|
7515
7515
|
/**
|
|
7516
7516
|
* @inheritDoc
|
|
7517
7517
|
*/
|
|
@@ -7639,7 +7639,7 @@ function bc(n) {
|
|
|
7639
7639
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7640
7640
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
7641
7641
|
*/
|
|
7642
|
-
class
|
|
7642
|
+
class V extends U() {
|
|
7643
7643
|
/**
|
|
7644
7644
|
* Creates a new `Command` instance.
|
|
7645
7645
|
*
|
|
@@ -7772,7 +7772,7 @@ function _c(n) {
|
|
|
7772
7772
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7773
7773
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
7774
7774
|
*/
|
|
7775
|
-
class vc extends
|
|
7775
|
+
class vc extends V {
|
|
7776
7776
|
constructor() {
|
|
7777
7777
|
super(...arguments), this._childCommandsDefinitions = [];
|
|
7778
7778
|
}
|
|
@@ -7911,69 +7911,69 @@ class Zf extends Z() {
|
|
|
7911
7911
|
init(e, t = [], i = []) {
|
|
7912
7912
|
const s = this, o = this._context;
|
|
7913
7913
|
f(e), p(e);
|
|
7914
|
-
const r = e.filter((
|
|
7914
|
+
const r = e.filter((E) => !d(E, t)), a = [...m(r)];
|
|
7915
7915
|
D(a, i);
|
|
7916
|
-
const l =
|
|
7917
|
-
return
|
|
7918
|
-
function c(
|
|
7919
|
-
return typeof
|
|
7916
|
+
const l = C(a);
|
|
7917
|
+
return L(l, "init").then(() => L(l, "afterInit")).then(() => l);
|
|
7918
|
+
function c(E) {
|
|
7919
|
+
return typeof E == "function";
|
|
7920
7920
|
}
|
|
7921
|
-
function u(
|
|
7922
|
-
return c(
|
|
7921
|
+
function u(E) {
|
|
7922
|
+
return c(E) && !!E.isContextPlugin;
|
|
7923
7923
|
}
|
|
7924
|
-
function d(
|
|
7925
|
-
return
|
|
7924
|
+
function d(E, R) {
|
|
7925
|
+
return R.some((I) => I === E || h(E) === I || h(I) === E);
|
|
7926
7926
|
}
|
|
7927
|
-
function h(
|
|
7928
|
-
return c(
|
|
7927
|
+
function h(E) {
|
|
7928
|
+
return c(E) ? E.pluginName || E.name : E;
|
|
7929
7929
|
}
|
|
7930
|
-
function f(
|
|
7931
|
-
|
|
7932
|
-
c(
|
|
7930
|
+
function f(E, R = /* @__PURE__ */ new Set()) {
|
|
7931
|
+
E.forEach((I) => {
|
|
7932
|
+
c(I) && (R.has(I) || (R.add(I), I.pluginName && !s._availablePlugins.has(I.pluginName) && s._availablePlugins.set(I.pluginName, I), I.requires && f(I.requires, R)));
|
|
7933
7933
|
});
|
|
7934
7934
|
}
|
|
7935
|
-
function m(
|
|
7936
|
-
return
|
|
7935
|
+
function m(E, R = /* @__PURE__ */ new Set()) {
|
|
7936
|
+
return E.map((I) => c(I) ? I : s._availablePlugins.get(I)).reduce((I, X) => R.has(X) ? I : (R.add(X), X.requires && (p(X.requires, X), m(X.requires, R).forEach((Ot) => I.add(Ot))), I.add(X)), /* @__PURE__ */ new Set());
|
|
7937
7937
|
}
|
|
7938
|
-
function p(
|
|
7939
|
-
|
|
7940
|
-
_(
|
|
7938
|
+
function p(E, R = null) {
|
|
7939
|
+
E.map((I) => c(I) ? I : s._availablePlugins.get(I) || I).forEach((I) => {
|
|
7940
|
+
_(I, R), y(I, R), T(I, R);
|
|
7941
7941
|
});
|
|
7942
7942
|
}
|
|
7943
|
-
function _(
|
|
7944
|
-
if (!c(
|
|
7945
|
-
throw
|
|
7943
|
+
function _(E, R) {
|
|
7944
|
+
if (!c(E))
|
|
7945
|
+
throw R ? new g("plugincollection-soft-required", o, { missingPlugin: E, requiredBy: h(R) }) : new g("plugincollection-plugin-not-found", o, { plugin: E });
|
|
7946
7946
|
}
|
|
7947
|
-
function
|
|
7948
|
-
if (u(
|
|
7949
|
-
throw new g("plugincollection-context-required", o, { plugin: h(
|
|
7947
|
+
function y(E, R) {
|
|
7948
|
+
if (u(R) && !u(E))
|
|
7949
|
+
throw new g("plugincollection-context-required", o, { plugin: h(E), requiredBy: h(R) });
|
|
7950
7950
|
}
|
|
7951
|
-
function
|
|
7952
|
-
if (
|
|
7953
|
-
throw new g("plugincollection-required", o, { plugin: h(
|
|
7951
|
+
function T(E, R) {
|
|
7952
|
+
if (R && d(E, t))
|
|
7953
|
+
throw new g("plugincollection-required", o, { plugin: h(E), requiredBy: h(R) });
|
|
7954
7954
|
}
|
|
7955
|
-
function
|
|
7956
|
-
return
|
|
7957
|
-
let
|
|
7958
|
-
return
|
|
7955
|
+
function C(E) {
|
|
7956
|
+
return E.map((R) => {
|
|
7957
|
+
let I = s._contextPlugins.get(R);
|
|
7958
|
+
return I = I || new R(o), s._add(R, I), I;
|
|
7959
7959
|
});
|
|
7960
7960
|
}
|
|
7961
|
-
function
|
|
7962
|
-
return
|
|
7961
|
+
function L(E, R) {
|
|
7962
|
+
return E.reduce((I, X) => !X[R] || s._contextPlugins.has(X) ? I : I.then(X[R].bind(X)), Promise.resolve());
|
|
7963
7963
|
}
|
|
7964
|
-
function D(
|
|
7965
|
-
for (const
|
|
7966
|
-
if (typeof
|
|
7967
|
-
throw new g("plugincollection-replace-plugin-invalid-type", null, { pluginItem:
|
|
7968
|
-
const X =
|
|
7964
|
+
function D(E, R) {
|
|
7965
|
+
for (const I of R) {
|
|
7966
|
+
if (typeof I != "function")
|
|
7967
|
+
throw new g("plugincollection-replace-plugin-invalid-type", null, { pluginItem: I });
|
|
7968
|
+
const X = I.pluginName;
|
|
7969
7969
|
if (!X)
|
|
7970
|
-
throw new g("plugincollection-replace-plugin-missing-name", null, { pluginItem:
|
|
7971
|
-
if (
|
|
7970
|
+
throw new g("plugincollection-replace-plugin-missing-name", null, { pluginItem: I });
|
|
7971
|
+
if (I.requires && I.requires.length)
|
|
7972
7972
|
throw new g("plugincollection-plugin-for-replacing-cannot-have-dependencies", null, { pluginName: X });
|
|
7973
7973
|
const Ot = s._availablePlugins.get(X);
|
|
7974
7974
|
if (!Ot)
|
|
7975
7975
|
throw new g("plugincollection-plugin-for-replacing-not-exist", null, { pluginName: X });
|
|
7976
|
-
const cl =
|
|
7976
|
+
const cl = E.indexOf(Ot);
|
|
7977
7977
|
if (cl === -1) {
|
|
7978
7978
|
if (s._contextPlugins.has(Ot))
|
|
7979
7979
|
return;
|
|
@@ -7981,7 +7981,7 @@ class Zf extends Z() {
|
|
|
7981
7981
|
}
|
|
7982
7982
|
if (Ot.requires && Ot.requires.length)
|
|
7983
7983
|
throw new g("plugincollection-replaced-plugin-cannot-have-dependencies", null, { pluginName: X });
|
|
7984
|
-
|
|
7984
|
+
E.splice(cl, 1, I), s._availablePlugins.set(X, I);
|
|
7985
7985
|
}
|
|
7986
7986
|
}
|
|
7987
7987
|
}
|
|
@@ -13138,7 +13138,7 @@ class XC extends U() {
|
|
|
13138
13138
|
* @param selection View selection.
|
|
13139
13139
|
*/
|
|
13140
13140
|
constructor(e, t) {
|
|
13141
|
-
super(), this.domDocuments = /* @__PURE__ */ new Set(), this.markedAttributes = /* @__PURE__ */ new Set(), this.markedChildren = /* @__PURE__ */ new Set(), this.markedTexts = /* @__PURE__ */ new Set(), this._inlineFiller = null, this._fakeSelectionContainer = null, this.domConverter = e, this.selection = t, this.set("isFocused", !1), this.set("isSelecting", !1),
|
|
13141
|
+
super(), this.domDocuments = /* @__PURE__ */ new Set(), this.markedAttributes = /* @__PURE__ */ new Set(), this.markedChildren = /* @__PURE__ */ new Set(), this.markedTexts = /* @__PURE__ */ new Set(), this._inlineFiller = null, this._fakeSelectionContainer = null, this.domConverter = e, this.selection = t, this.set("isFocused", !1), this.set("isSelecting", !1), B.isBlink && !B.isAndroid && this.on("change:isSelecting", () => {
|
|
13142
13142
|
this.isSelecting || this.render();
|
|
13143
13143
|
}), this.set("isComposing", !1), this.on("change:isComposing", () => {
|
|
13144
13144
|
this.isComposing || this.render();
|
|
@@ -13182,10 +13182,10 @@ class XC extends U() {
|
|
|
13182
13182
|
* removed as long as the selection is in the text node which needed it at first.
|
|
13183
13183
|
*/
|
|
13184
13184
|
render() {
|
|
13185
|
-
if (this.isComposing && !
|
|
13185
|
+
if (this.isComposing && !B.isAndroid)
|
|
13186
13186
|
return;
|
|
13187
13187
|
let e = null;
|
|
13188
|
-
const t =
|
|
13188
|
+
const t = B.isBlink && !B.isAndroid ? !this.isSelecting : !0;
|
|
13189
13189
|
for (const i of this.markedChildren)
|
|
13190
13190
|
this._updateChildrenMappings(i);
|
|
13191
13191
|
t ? (this._inlineFiller && !this._isSelectionInInlineFiller() && this._removeInlineFiller(), this._inlineFiller ? e = this._getInlineFillerPosition() : this._needsInlineFillerAtSelection() && (e = this.selection.getFirstPosition(), this.markedChildren.add(e.parent))) : this._inlineFiller && this._inlineFiller.parentNode && (e = this.domConverter.domPositionToView(this._inlineFiller), e && e.parent.is("$text") && (e = k._createBefore(e.parent)));
|
|
@@ -13284,7 +13284,7 @@ class XC extends U() {
|
|
|
13284
13284
|
if (!this.domConverter.mapViewToDom(t.root) || !t.is("element") || !ek(t) || i === t.getFillerOffset())
|
|
13285
13285
|
return !1;
|
|
13286
13286
|
const s = e.nodeBefore, o = e.nodeAfter;
|
|
13287
|
-
return !(s instanceof te || o instanceof te ||
|
|
13287
|
+
return !(s instanceof te || o instanceof te || B.isAndroid && (s || o));
|
|
13288
13288
|
}
|
|
13289
13289
|
/**
|
|
13290
13290
|
* Checks if text needs to be updated and possibly updates it.
|
|
@@ -13326,7 +13326,7 @@ class XC extends U() {
|
|
|
13326
13326
|
const i = this.domConverter.mapViewToDom(e);
|
|
13327
13327
|
if (!i)
|
|
13328
13328
|
return;
|
|
13329
|
-
if (
|
|
13329
|
+
if (B.isAndroid) {
|
|
13330
13330
|
let d = null;
|
|
13331
13331
|
for (const h of Array.from(i.childNodes)) {
|
|
13332
13332
|
if (d && ue(d) && ue(h)) {
|
|
@@ -13406,14 +13406,14 @@ class XC extends U() {
|
|
|
13406
13406
|
* Checks if the selection needs to be updated and possibly updates it.
|
|
13407
13407
|
*/
|
|
13408
13408
|
_updateSelection() {
|
|
13409
|
-
if (
|
|
13409
|
+
if (B.isBlink && !B.isAndroid && this.isSelecting && !this.markedChildren.size)
|
|
13410
13410
|
return;
|
|
13411
13411
|
if (this.selection.rangeCount === 0) {
|
|
13412
13412
|
this._removeDomSelection(), this._removeFakeSelection();
|
|
13413
13413
|
return;
|
|
13414
13414
|
}
|
|
13415
13415
|
const e = this.domConverter.mapViewToDom(this.selection.editableElement);
|
|
13416
|
-
!this.isFocused || !e || (this.selection.isFake ? this._updateFakeSelection(e) : this._fakeSelectionContainer && this._fakeSelectionContainer.isConnected ? (this._removeFakeSelection(), this._updateDomSelection(e)) : this.isComposing &&
|
|
13416
|
+
!this.isFocused || !e || (this.selection.isFake ? this._updateFakeSelection(e) : this._fakeSelectionContainer && this._fakeSelectionContainer.isConnected ? (this._removeFakeSelection(), this._updateDomSelection(e)) : this.isComposing && B.isAndroid || this._updateDomSelection(e));
|
|
13417
13417
|
}
|
|
13418
13418
|
/**
|
|
13419
13419
|
* Updates the fake selection.
|
|
@@ -13440,7 +13440,7 @@ class XC extends U() {
|
|
|
13440
13440
|
if (!this._domSelectionNeedsUpdate(t))
|
|
13441
13441
|
return;
|
|
13442
13442
|
const i = this.domConverter.viewPositionToDom(this.selection.anchor), s = this.domConverter.viewPositionToDom(this.selection.focus);
|
|
13443
|
-
t.setBaseAndExtent(i.parent, i.offset, s.parent, s.offset),
|
|
13443
|
+
t.setBaseAndExtent(i.parent, i.offset, s.parent, s.offset), B.isGecko && sk(s, t);
|
|
13444
13444
|
}
|
|
13445
13445
|
/**
|
|
13446
13446
|
* Checks whether a given DOM selection needs to be updated.
|
|
@@ -13548,7 +13548,7 @@ function Rc(n, e) {
|
|
|
13548
13548
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
13549
13549
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
13550
13550
|
*/
|
|
13551
|
-
const ak = cm(
|
|
13551
|
+
const ak = cm(A.document), lk = am(A.document), ck = lm(A.document), cs = "data-ck-unsafe-attribute-", Vc = "data-ck-unsafe-element";
|
|
13552
13552
|
class um {
|
|
13553
13553
|
/**
|
|
13554
13554
|
* Creates a DOM converter.
|
|
@@ -13620,7 +13620,7 @@ class um {
|
|
|
13620
13620
|
"audio",
|
|
13621
13621
|
"img",
|
|
13622
13622
|
"canvas"
|
|
13623
|
-
], this.unsafeElements = ["script", "style"], this._domDocument = this.renderingMode === "editing" ?
|
|
13623
|
+
], this.unsafeElements = ["script", "style"], this._domDocument = this.renderingMode === "editing" ? A.document : A.document.implementation.createHTMLDocument("");
|
|
13624
13624
|
}
|
|
13625
13625
|
/**
|
|
13626
13626
|
* Binds a given DOM element that represents fake selection to a **position** of a
|
|
@@ -14048,14 +14048,14 @@ class um {
|
|
|
14048
14048
|
focus(e) {
|
|
14049
14049
|
const t = this.mapViewToDom(e);
|
|
14050
14050
|
if (t && t.ownerDocument.activeElement !== t) {
|
|
14051
|
-
const { scrollX: i, scrollY: s } =
|
|
14051
|
+
const { scrollX: i, scrollY: s } = A.window, o = [];
|
|
14052
14052
|
Lc(t, (r) => {
|
|
14053
14053
|
const { scrollLeft: a, scrollTop: l } = r;
|
|
14054
14054
|
o.push([a, l]);
|
|
14055
14055
|
}), t.focus(), Lc(t, (r) => {
|
|
14056
14056
|
const [a, l] = o.shift();
|
|
14057
14057
|
r.scrollLeft = a, r.scrollTop = l;
|
|
14058
|
-
}),
|
|
14058
|
+
}), A.window.scrollTo(i, s);
|
|
14059
14059
|
}
|
|
14060
14060
|
}
|
|
14061
14061
|
/**
|
|
@@ -14456,7 +14456,7 @@ function Bc(n) {
|
|
|
14456
14456
|
n === "script" && H("domconverter-unsafe-script-element-detected"), n === "style" && H("domconverter-unsafe-style-element-detected");
|
|
14457
14457
|
}
|
|
14458
14458
|
function hk(n) {
|
|
14459
|
-
if (!
|
|
14459
|
+
if (!B.isGecko || !n.rangeCount)
|
|
14460
14460
|
return !1;
|
|
14461
14461
|
const e = n.getRangeAt(0).startContainer;
|
|
14462
14462
|
try {
|
|
@@ -14840,7 +14840,7 @@ class pk extends lt {
|
|
|
14840
14840
|
this.document.isSelecting && (this._handleSelectionChange(null, t), this.document.isSelecting = !1, this._documentIsSelectingInactivityTimeoutDebounced.cancel());
|
|
14841
14841
|
};
|
|
14842
14842
|
this.listenTo(e, "selectstart", i, { priority: "highest" }), this.listenTo(e, "keydown", s, { priority: "highest", useCapture: !0 }), this.listenTo(e, "keyup", s, { priority: "highest", useCapture: !0 }), !this._documents.has(t) && (this.listenTo(t, "mouseup", s, { priority: "highest", useCapture: !0 }), this.listenTo(t, "selectionchange", (o, r) => {
|
|
14843
|
-
this.document.isComposing && !
|
|
14843
|
+
this.document.isComposing && !B.isAndroid || (this._handleSelectionChange(r, t), this._documentIsSelectingInactivityTimeoutDebounced());
|
|
14844
14844
|
}), this._documents.add(t));
|
|
14845
14845
|
}
|
|
14846
14846
|
/**
|
|
@@ -15031,11 +15031,11 @@ class bk extends Lt {
|
|
|
15031
15031
|
if (u)
|
|
15032
15032
|
return i.createRange(u);
|
|
15033
15033
|
}).filter((l) => !!l);
|
|
15034
|
-
else if (
|
|
15034
|
+
else if (B.isAndroid) {
|
|
15035
15035
|
const l = e.target.ownerDocument.defaultView.getSelection();
|
|
15036
15036
|
a = Array.from(i.domConverter.domSelectionToView(l).getRanges());
|
|
15037
15037
|
}
|
|
15038
|
-
if (
|
|
15038
|
+
if (B.isAndroid && e.inputType == "insertCompositionText" && r && r.endsWith(`
|
|
15039
15039
|
`)) {
|
|
15040
15040
|
this.fire(e.type, e, {
|
|
15041
15041
|
inputType: "insertParagraph",
|
|
@@ -15142,7 +15142,7 @@ class yk extends U() {
|
|
|
15142
15142
|
this._hasChangedSinceTheLastRendering = !0;
|
|
15143
15143
|
}), this.listenTo(this.document, "change:isFocused", () => {
|
|
15144
15144
|
this._hasChangedSinceTheLastRendering = !0;
|
|
15145
|
-
}),
|
|
15145
|
+
}), B.isiOS && this.listenTo(this.document, "blur", (t, i) => {
|
|
15146
15146
|
this.domConverter.mapDomToView(i.domEvent.relatedTarget) || this.domConverter._clearDomSelection();
|
|
15147
15147
|
});
|
|
15148
15148
|
}
|
|
@@ -16284,7 +16284,7 @@ class pt {
|
|
|
16284
16284
|
const t = e.direction || "forward";
|
|
16285
16285
|
if (t != "forward" && t != "backward")
|
|
16286
16286
|
throw new g("model-tree-walker-unknown-direction", e, { direction: t });
|
|
16287
|
-
this.direction = t, this.boundaries = e.boundaries || null, e.startPosition ? this._position = e.startPosition.clone() : this._position =
|
|
16287
|
+
this.direction = t, this.boundaries = e.boundaries || null, e.startPosition ? this._position = e.startPosition.clone() : this._position = v._createAt(this.boundaries[this.direction == "backward" ? "end" : "start"]), this.position.stickiness = "toNone", this.singleCharacters = !!e.singleCharacters, this.shallow = !!e.shallow, this.ignoreElementEnd = !!e.ignoreElementEnd, this._boundaryStartParent = this.boundaries ? this.boundaries.start.parent : null, this._boundaryEndParent = this.boundaries ? this.boundaries.end.parent : null, this._visitedParent = this.position.parent;
|
|
16288
16288
|
}
|
|
16289
16289
|
/**
|
|
16290
16290
|
* Iterable interface.
|
|
@@ -16405,7 +16405,7 @@ function Ft(n, e, t, i, s) {
|
|
|
16405
16405
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
16406
16406
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
16407
16407
|
*/
|
|
16408
|
-
class
|
|
16408
|
+
class v extends Bt {
|
|
16409
16409
|
/**
|
|
16410
16410
|
* Creates a position.
|
|
16411
16411
|
*
|
|
@@ -16742,7 +16742,7 @@ class y extends Bt {
|
|
|
16742
16742
|
t = this._getTransformedByMergeOperation(e);
|
|
16743
16743
|
break;
|
|
16744
16744
|
default:
|
|
16745
|
-
t =
|
|
16745
|
+
t = v._createAt(this);
|
|
16746
16746
|
break;
|
|
16747
16747
|
}
|
|
16748
16748
|
return t;
|
|
@@ -16780,7 +16780,7 @@ class y extends Bt {
|
|
|
16780
16780
|
_getTransformedByMergeOperation(e) {
|
|
16781
16781
|
const t = e.movedRange, i = t.containsPosition(this) || t.start.isEqual(this);
|
|
16782
16782
|
let s;
|
|
16783
|
-
return i ? (s = this._getCombined(e.sourcePosition, e.targetPosition), e.sourcePosition.isBefore(e.targetPosition) && (s = s._getTransformedByDeletion(e.deletionPosition, 1))) : this.isEqual(e.deletionPosition) ? s =
|
|
16783
|
+
return i ? (s = this._getCombined(e.sourcePosition, e.targetPosition), e.sourcePosition.isBefore(e.targetPosition) && (s = s._getTransformedByDeletion(e.deletionPosition, 1))) : this.isEqual(e.deletionPosition) ? s = v._createAt(e.deletionPosition) : s = this._getTransformedByMove(e.deletionPosition, e.graveyardPosition, 1), s;
|
|
16784
16784
|
}
|
|
16785
16785
|
/**
|
|
16786
16786
|
* Returns a copy of this position that is updated by removing `howMany` nodes starting from `deletePosition`.
|
|
@@ -16792,7 +16792,7 @@ class y extends Bt {
|
|
|
16792
16792
|
* @returns Transformed position or `null`.
|
|
16793
16793
|
*/
|
|
16794
16794
|
_getTransformedByDeletion(e, t) {
|
|
16795
|
-
const i =
|
|
16795
|
+
const i = v._createAt(this);
|
|
16796
16796
|
if (this.root != e.root)
|
|
16797
16797
|
return i;
|
|
16798
16798
|
if (ye(e.getParentPath(), this.getParentPath()) == "same") {
|
|
@@ -16820,7 +16820,7 @@ class y extends Bt {
|
|
|
16820
16820
|
* @returns Transformed position.
|
|
16821
16821
|
*/
|
|
16822
16822
|
_getTransformedByInsertion(e, t) {
|
|
16823
|
-
const i =
|
|
16823
|
+
const i = v._createAt(this);
|
|
16824
16824
|
if (this.root != e.root)
|
|
16825
16825
|
return i;
|
|
16826
16826
|
if (ye(e.getParentPath(), this.getParentPath()) == "same")
|
|
@@ -16842,7 +16842,7 @@ class y extends Bt {
|
|
|
16842
16842
|
*/
|
|
16843
16843
|
_getTransformedByMove(e, t, i) {
|
|
16844
16844
|
if (t = t._getTransformedByDeletion(e, i), e.isEqual(t))
|
|
16845
|
-
return
|
|
16845
|
+
return v._createAt(this);
|
|
16846
16846
|
const s = this._getTransformedByDeletion(e, i);
|
|
16847
16847
|
return s === null || e.isEqual(this) && this.stickiness == "toNext" || e.getShiftedBy(i).isEqual(this) && this.stickiness == "toPrevious" ? this._getCombined(e, t) : s._getTransformedByInsertion(t, i);
|
|
16848
16848
|
}
|
|
@@ -16876,7 +16876,7 @@ class y extends Bt {
|
|
|
16876
16876
|
* @returns Combined position.
|
|
16877
16877
|
*/
|
|
16878
16878
|
_getCombined(e, t) {
|
|
16879
|
-
const i = e.path.length - 1, s =
|
|
16879
|
+
const i = e.path.length - 1, s = v._createAt(t);
|
|
16880
16880
|
return s.stickiness = this.stickiness, s.offset = s.offset + this.path[i] - e.offset, s.path = [...s.path, ...this.path.slice(i + 1)], s;
|
|
16881
16881
|
}
|
|
16882
16882
|
/**
|
|
@@ -16913,8 +16913,8 @@ class y extends Bt {
|
|
|
16913
16913
|
* @param stickiness Position stickiness. Used only when the first parameter is a {@link module:engine/model/item~Item model item}.
|
|
16914
16914
|
*/
|
|
16915
16915
|
static _createAt(e, t, i = "toNone") {
|
|
16916
|
-
if (e instanceof
|
|
16917
|
-
return new
|
|
16916
|
+
if (e instanceof v)
|
|
16917
|
+
return new v(e.root, e.path, e.stickiness);
|
|
16918
16918
|
{
|
|
16919
16919
|
const s = e;
|
|
16920
16920
|
if (t == "end")
|
|
@@ -16966,15 +16966,15 @@ class y extends Bt {
|
|
|
16966
16966
|
*/
|
|
16967
16967
|
static fromJSON(e, t) {
|
|
16968
16968
|
if (e.root === "$graveyard") {
|
|
16969
|
-
const i = new
|
|
16969
|
+
const i = new v(t.graveyard, e.path);
|
|
16970
16970
|
return i.stickiness = e.stickiness, i;
|
|
16971
16971
|
}
|
|
16972
16972
|
if (!t.getRoot(e.root))
|
|
16973
16973
|
throw new g("model-position-fromjson-no-root", t, { rootName: e.root });
|
|
16974
|
-
return new
|
|
16974
|
+
return new v(t.getRoot(e.root), e.path, e.stickiness);
|
|
16975
16975
|
}
|
|
16976
16976
|
}
|
|
16977
|
-
|
|
16977
|
+
v.prototype.is = function(n) {
|
|
16978
16978
|
return n === "position" || n === "model:position";
|
|
16979
16979
|
};
|
|
16980
16980
|
function wn(n, e) {
|
|
@@ -17019,7 +17019,7 @@ class b extends Bt {
|
|
|
17019
17019
|
* @param end The end position. If not set, the range will be collapsed at the `start` position.
|
|
17020
17020
|
*/
|
|
17021
17021
|
constructor(e, t) {
|
|
17022
|
-
super(), this.start =
|
|
17022
|
+
super(), this.start = v._createAt(e), this.end = t ? v._createAt(t) : v._createAt(e), this.start.stickiness = this.isCollapsed ? "toNone" : "toNext", this.end.stickiness = this.isCollapsed ? "toNone" : "toPrevious";
|
|
17023
17023
|
}
|
|
17024
17024
|
/**
|
|
17025
17025
|
* Iterable interface.
|
|
@@ -17085,7 +17085,7 @@ class b extends Bt {
|
|
|
17085
17085
|
* Checks whether given {@link module:engine/model/item~Item} is inside this range.
|
|
17086
17086
|
*/
|
|
17087
17087
|
containsItem(e) {
|
|
17088
|
-
const t =
|
|
17088
|
+
const t = v._createBefore(e);
|
|
17089
17089
|
return this.containsPosition(t) || this.start.isEqual(t);
|
|
17090
17090
|
}
|
|
17091
17091
|
/**
|
|
@@ -17246,7 +17246,7 @@ class b extends Bt {
|
|
|
17246
17246
|
* @returns Array of flat ranges covering this range.
|
|
17247
17247
|
*/
|
|
17248
17248
|
getMinimalFlatRanges() {
|
|
17249
|
-
const e = [], t = this.start.getCommonPath(this.end).length, i =
|
|
17249
|
+
const e = [], t = this.start.getCommonPath(this.end).length, i = v._createAt(this.start);
|
|
17250
17250
|
let s = i.parent;
|
|
17251
17251
|
for (; i.path.length > t + 1; ) {
|
|
17252
17252
|
const o = s.maxOffset - i.offset;
|
|
@@ -17443,7 +17443,7 @@ class b extends Bt {
|
|
|
17443
17443
|
if (this.start.isEqual(e.targetPosition) && this.end.isEqual(e.deletionPosition))
|
|
17444
17444
|
return new b(this.start);
|
|
17445
17445
|
let t = this.start._getTransformedByMergeOperation(e), i = this.end._getTransformedByMergeOperation(e);
|
|
17446
|
-
return t.root != i.root && (i = this.end.getShiftedBy(-1)), t.isAfter(i) ? (e.sourcePosition.isBefore(e.targetPosition) ? (t =
|
|
17446
|
+
return t.root != i.root && (i = this.end.getShiftedBy(-1)), t.isAfter(i) ? (e.sourcePosition.isBefore(e.targetPosition) ? (t = v._createAt(i), t.offset = 0) : (e.deletionPosition.isEqual(t) || (i = e.deletionPosition), t = e.targetPosition), new b(t, i)) : new b(t, i);
|
|
17447
17447
|
}
|
|
17448
17448
|
/**
|
|
17449
17449
|
* Returns an array containing one or two {@link ~Range ranges} that are a result of transforming this
|
|
@@ -17555,7 +17555,7 @@ class b extends Bt {
|
|
|
17555
17555
|
* @param element Element which is a parent for the range.
|
|
17556
17556
|
*/
|
|
17557
17557
|
static _createIn(e) {
|
|
17558
|
-
return new this(
|
|
17558
|
+
return new this(v._createAt(e, 0), v._createAt(e, e.maxOffset));
|
|
17559
17559
|
}
|
|
17560
17560
|
/**
|
|
17561
17561
|
* Creates a range that starts before given {@link module:engine/model/item~Item model item} and ends after it.
|
|
@@ -17563,7 +17563,7 @@ class b extends Bt {
|
|
|
17563
17563
|
* @internal
|
|
17564
17564
|
*/
|
|
17565
17565
|
static _createOn(e) {
|
|
17566
|
-
return this._createFromPositionAndShift(
|
|
17566
|
+
return this._createFromPositionAndShift(v._createBefore(e), e.offsetSize);
|
|
17567
17567
|
}
|
|
17568
17568
|
/**
|
|
17569
17569
|
* Combines all ranges from the passed array into a one range. At least one range has to be passed.
|
|
@@ -17593,9 +17593,9 @@ class b extends Bt {
|
|
|
17593
17593
|
const i = e.indexOf(t), s = new this(t.start, t.end);
|
|
17594
17594
|
if (i > 0)
|
|
17595
17595
|
for (let o = i - 1; e[o].end.isEqual(s.start); o++)
|
|
17596
|
-
s.start =
|
|
17596
|
+
s.start = v._createAt(e[o].start);
|
|
17597
17597
|
for (let o = i + 1; o < e.length && e[o].start.isEqual(s.end); o++)
|
|
17598
|
-
s.end =
|
|
17598
|
+
s.end = v._createAt(e[o].end);
|
|
17599
17599
|
return s;
|
|
17600
17600
|
}
|
|
17601
17601
|
/**
|
|
@@ -17606,7 +17606,7 @@ class b extends Bt {
|
|
|
17606
17606
|
* @returns `Range` instance created using given plain object.
|
|
17607
17607
|
*/
|
|
17608
17608
|
static fromJSON(e, t) {
|
|
17609
|
-
return new this(
|
|
17609
|
+
return new this(v.fromJSON(e.start, t), v.fromJSON(e.end, t));
|
|
17610
17610
|
}
|
|
17611
17611
|
}
|
|
17612
17612
|
b.prototype.is = function(n) {
|
|
@@ -17632,7 +17632,7 @@ class pm extends Z() {
|
|
|
17632
17632
|
if (t.modelPosition)
|
|
17633
17633
|
return;
|
|
17634
17634
|
const i = this.findMappedViewAncestor(t.viewPosition), s = this._viewToModelMapping.get(i), o = this._toModelOffset(t.viewPosition.parent, t.viewPosition.offset, i);
|
|
17635
|
-
t.modelPosition =
|
|
17635
|
+
t.modelPosition = v._createAt(s, o);
|
|
17636
17636
|
}, { priority: "low" });
|
|
17637
17637
|
}
|
|
17638
17638
|
/**
|
|
@@ -18739,7 +18739,7 @@ class Be extends Z(Bt) {
|
|
|
18739
18739
|
this._setRanges(t.getRanges(), t.isBackward);
|
|
18740
18740
|
else if (t instanceof b)
|
|
18741
18741
|
this._setRanges([t], !!s && !!s.backward);
|
|
18742
|
-
else if (t instanceof
|
|
18742
|
+
else if (t instanceof v)
|
|
18743
18743
|
this._setRanges([new b(t)]);
|
|
18744
18744
|
else if (t instanceof ci) {
|
|
18745
18745
|
const o = !!s && !!s.backward;
|
|
@@ -18749,7 +18749,7 @@ class Be extends Z(Bt) {
|
|
|
18749
18749
|
else if (i == "on")
|
|
18750
18750
|
r = b._createOn(t);
|
|
18751
18751
|
else if (i !== void 0)
|
|
18752
|
-
r = new b(
|
|
18752
|
+
r = new b(v._createAt(t, i));
|
|
18753
18753
|
else
|
|
18754
18754
|
throw new g("model-selection-setto-required-second-parameter", [this, t]);
|
|
18755
18755
|
this._setRanges([r], o);
|
|
@@ -18788,7 +18788,7 @@ class Be extends Z(Bt) {
|
|
|
18788
18788
|
setFocus(e, t) {
|
|
18789
18789
|
if (this.anchor === null)
|
|
18790
18790
|
throw new g("model-selection-setfocus-no-ranges", [this, e]);
|
|
18791
|
-
const i =
|
|
18791
|
+
const i = v._createAt(e, t);
|
|
18792
18792
|
if (i.compareWith(this.focus) == "same")
|
|
18793
18793
|
return;
|
|
18794
18794
|
const s = this.anchor;
|
|
@@ -18945,7 +18945,7 @@ class Be extends Z(Bt) {
|
|
|
18945
18945
|
* Useful to check if e.g. the user has just pressed <kbd>Ctrl</kbd> + <kbd>A</kbd>.
|
|
18946
18946
|
*/
|
|
18947
18947
|
containsEntireContent(e = this.anchor.root) {
|
|
18948
|
-
const t =
|
|
18948
|
+
const t = v._createAt(e, 0), i = v._createAt(e, "end");
|
|
18949
18949
|
return t.isTouching(this.getFirstPosition()) && i.isTouching(this.getLastPosition());
|
|
18950
18950
|
}
|
|
18951
18951
|
/**
|
|
@@ -19007,10 +19007,10 @@ function Ha(n, e) {
|
|
|
19007
19007
|
return t ? !e.containsRange(b._createOn(t), !0) : !0;
|
|
19008
19008
|
}
|
|
19009
19009
|
function xk(n, e) {
|
|
19010
|
-
return n ? e.isCollapsed || n.isEmpty ? !0 : e.start.isTouching(
|
|
19010
|
+
return n ? e.isCollapsed || n.isEmpty ? !0 : e.start.isTouching(v._createAt(n, n.maxOffset)) ? !1 : Ha(n, e) : !1;
|
|
19011
19011
|
}
|
|
19012
19012
|
function Ik(n, e) {
|
|
19013
|
-
return n ? e.isCollapsed || n.isEmpty ? !0 : e.end.isTouching(
|
|
19013
|
+
return n ? e.isCollapsed || n.isEmpty ? !0 : e.end.isTouching(v._createAt(n, 0)) ? !1 : Ha(n, e) : !1;
|
|
19014
19014
|
}
|
|
19015
19015
|
function Pk(n) {
|
|
19016
19016
|
const e = n.root.document.model.schema;
|
|
@@ -20903,7 +20903,7 @@ function Tm(n) {
|
|
|
20903
20903
|
}
|
|
20904
20904
|
if (!i.reconvertedElements.has(r)) {
|
|
20905
20905
|
i.reconvertedElements.add(r);
|
|
20906
|
-
const a =
|
|
20906
|
+
const a = v._createBefore(r);
|
|
20907
20907
|
let l = s.length;
|
|
20908
20908
|
for (let c = s.length - 1; c >= 0; c--) {
|
|
20909
20909
|
const u = s[c], h = (u.type == "attribute" ? u.range.start : u.position).compareWith(a);
|
|
@@ -20975,7 +20975,7 @@ function h5(n, e, t, i) {
|
|
|
20975
20975
|
if (!i.reconversion)
|
|
20976
20976
|
return !1;
|
|
20977
20977
|
const r = o.toViewElement(e);
|
|
20978
|
-
return !r || r.root == n || !t.canReuseView(r) ? !1 : (s.move(s.createRangeOn(r), o.toViewPosition(
|
|
20978
|
+
return !r || r.root == n || !t.canReuseView(r) ? !1 : (s.move(s.createRangeOn(r), o.toViewPosition(v._createBefore(e))), !0);
|
|
20979
20979
|
}
|
|
20980
20980
|
function f5(n, e, { preflight: t } = {}) {
|
|
20981
20981
|
return t ? e.test(n, "insert") : e.consume(n, "insert");
|
|
@@ -21612,7 +21612,7 @@ function P5(n, e) {
|
|
|
21612
21612
|
if (l || c) {
|
|
21613
21613
|
const u = t.nodeAfter && i.nodeBefore && t.nodeAfter.parent === i.nodeBefore.parent, d = l && (!u || !Wc(t.nodeAfter, e)), h = c && (!u || !Wc(i.nodeBefore, e));
|
|
21614
21614
|
let f = t, m = i;
|
|
21615
|
-
return d && (f =
|
|
21615
|
+
return d && (f = v._createBefore(Uc(r, e))), h && (m = v._createAfter(Uc(a, e))), new b(f, m);
|
|
21616
21616
|
}
|
|
21617
21617
|
return null;
|
|
21618
21618
|
}
|
|
@@ -21748,7 +21748,7 @@ class L5 extends U() {
|
|
|
21748
21748
|
}
|
|
21749
21749
|
function B5(n, e, t) {
|
|
21750
21750
|
return (i, s) => {
|
|
21751
|
-
if (!(t.document.isComposing && !
|
|
21751
|
+
if (!(t.document.isComposing && !B.isAndroid))
|
|
21752
21752
|
for (let o = 0; o < s.targetRanges.length; o++) {
|
|
21753
21753
|
const r = s.targetRanges[o], a = n.toModelRange(r), l = Bm(a, e);
|
|
21754
21754
|
!l || l.isEqual(a) || (s.targetRanges[o] = n.toViewRange(l));
|
|
@@ -22406,7 +22406,7 @@ class M5 extends U() {
|
|
|
22406
22406
|
* @param elementToMerge The element to merge. Required if `positionOrBaseElement` is an element.
|
|
22407
22407
|
*/
|
|
22408
22408
|
checkMerge(e, t) {
|
|
22409
|
-
if (e instanceof
|
|
22409
|
+
if (e instanceof v) {
|
|
22410
22410
|
const i = e.nodeBefore, s = e.nodeAfter;
|
|
22411
22411
|
if (!(i instanceof W))
|
|
22412
22412
|
throw new g("schema-check-merge-no-element-before", this);
|
|
@@ -22583,7 +22583,7 @@ class M5 extends U() {
|
|
|
22583
22583
|
*/
|
|
22584
22584
|
getLimitElement(e) {
|
|
22585
22585
|
let t;
|
|
22586
|
-
for (e instanceof
|
|
22586
|
+
for (e instanceof v ? t = e.parent : t = (e instanceof b ? [e] : Array.from(e.getRanges())).reduce((s, o) => {
|
|
22587
22587
|
const r = o.getCommonAncestor();
|
|
22588
22588
|
return s ? s.getCommonAncestor(r, { includeSelf: !0 }) : r;
|
|
22589
22589
|
}, null); !this.isLimit(t) && t.parent; )
|
|
@@ -22790,7 +22790,7 @@ class M5 extends U() {
|
|
|
22790
22790
|
*_getValidRangesForRange(e, t) {
|
|
22791
22791
|
let i = e.start, s = e.start;
|
|
22792
22792
|
for (const o of e.getItems({ shallow: !0 }))
|
|
22793
|
-
o.is("element") && (yield* this._getValidRangesForRange(b._createIn(o), t)), this.checkAttribute(o, t) || (i.isEqual(s) || (yield new b(i, s)), i =
|
|
22793
|
+
o.is("element") && (yield* this._getValidRangesForRange(b._createIn(o), t)), this.checkAttribute(o, t) || (i.isEqual(s) || (yield new b(i, s)), i = v._createAfter(o)), s = v._createAfter(o);
|
|
22794
22794
|
i.isEqual(s) || (yield new b(i, s));
|
|
22795
22795
|
}
|
|
22796
22796
|
/**
|
|
@@ -22815,14 +22815,14 @@ class M5 extends U() {
|
|
|
22815
22815
|
findOptimalInsertionRange(e, t) {
|
|
22816
22816
|
const i = e.getSelectedElement();
|
|
22817
22817
|
if (i && this.isObject(i) && !this.isInline(i))
|
|
22818
|
-
return t == "before" || t == "after" ? new b(
|
|
22818
|
+
return t == "before" || t == "after" ? new b(v._createAt(i, t)) : b._createOn(i);
|
|
22819
22819
|
const s = J(e.getSelectedBlocks());
|
|
22820
22820
|
if (!s)
|
|
22821
22821
|
return new b(e.focus);
|
|
22822
22822
|
if (s.isEmpty)
|
|
22823
|
-
return new b(
|
|
22824
|
-
const o =
|
|
22825
|
-
return e.focus.isTouching(o) ? new b(o) : new b(
|
|
22823
|
+
return new b(v._createAt(s, 0));
|
|
22824
|
+
const o = v._createAfter(s);
|
|
22825
|
+
return e.focus.isTouching(o) ? new b(o) : new b(v._createBefore(s));
|
|
22826
22826
|
}
|
|
22827
22827
|
}
|
|
22828
22828
|
class Zt {
|
|
@@ -23137,7 +23137,7 @@ class X5 extends Z() {
|
|
|
23137
23137
|
* @see module:engine/conversion/upcastdispatcher~UpcastConversionApi#convertChildren
|
|
23138
23138
|
*/
|
|
23139
23139
|
_convertChildren(e, t) {
|
|
23140
|
-
let i = t.is("position") ? t :
|
|
23140
|
+
let i = t.is("position") ? t : v._createAt(t, 0);
|
|
23141
23141
|
const s = new b(i);
|
|
23142
23142
|
for (const o of Array.from(e.getChildren())) {
|
|
23143
23143
|
const r = this._convertItem(o, i);
|
|
@@ -23243,7 +23243,7 @@ function tE(n, e) {
|
|
|
23243
23243
|
for (const r of i.getAttributeKeys())
|
|
23244
23244
|
s[r] = i.getAttribute(r);
|
|
23245
23245
|
const o = e.createElement(i.name, s);
|
|
23246
|
-
t && e.insert(o, t), t =
|
|
23246
|
+
t && e.insert(o, t), t = v._createAt(o, 0);
|
|
23247
23247
|
}
|
|
23248
23248
|
return t;
|
|
23249
23249
|
}
|
|
@@ -23256,7 +23256,7 @@ class iE {
|
|
|
23256
23256
|
* Returns an HTML string created from the document fragment.
|
|
23257
23257
|
*/
|
|
23258
23258
|
getHtml(e) {
|
|
23259
|
-
const i =
|
|
23259
|
+
const i = A.document.implementation.createHTMLDocument("").createElement("div");
|
|
23260
23260
|
return i.appendChild(e), i.innerHTML;
|
|
23261
23261
|
}
|
|
23262
23262
|
}
|
|
@@ -24335,7 +24335,7 @@ class z extends De {
|
|
|
24335
24335
|
* @param document Document on which this operation will be applied.
|
|
24336
24336
|
*/
|
|
24337
24337
|
static fromJSON(e, t) {
|
|
24338
|
-
const i =
|
|
24338
|
+
const i = v.fromJSON(e.sourcePosition, t), s = v.fromJSON(e.targetPosition, t);
|
|
24339
24339
|
return new this(i, e.howMany, s, e.baseVersion);
|
|
24340
24340
|
}
|
|
24341
24341
|
}
|
|
@@ -24384,7 +24384,7 @@ class ge extends De {
|
|
|
24384
24384
|
* See {@link module:engine/model/operation/operation~Operation#getReversed `Operation#getReversed()`}.
|
|
24385
24385
|
*/
|
|
24386
24386
|
getReversed() {
|
|
24387
|
-
const e = this.position.root.document.graveyard, t = new
|
|
24387
|
+
const e = this.position.root.document.graveyard, t = new v(e, [0]);
|
|
24388
24388
|
return new z(this.position, this.nodes.maxOffset, t, this.baseVersion + 1);
|
|
24389
24389
|
}
|
|
24390
24390
|
/**
|
|
@@ -24427,7 +24427,7 @@ class ge extends De {
|
|
|
24427
24427
|
const i = [];
|
|
24428
24428
|
for (const o of e.nodes)
|
|
24429
24429
|
o.name ? i.push(W.fromJSON(o)) : i.push(j.fromJSON(o));
|
|
24430
|
-
const s = new ge(
|
|
24430
|
+
const s = new ge(v.fromJSON(e.position, t), i, e.baseVersion);
|
|
24431
24431
|
return s.shouldReceiveAttributes = e.shouldReceiveAttributes, s;
|
|
24432
24432
|
}
|
|
24433
24433
|
}
|
|
@@ -24463,7 +24463,7 @@ class G extends De {
|
|
|
24463
24463
|
*/
|
|
24464
24464
|
get moveTargetPosition() {
|
|
24465
24465
|
const e = this.insertionPosition.path.slice();
|
|
24466
|
-
return e.push(0), new
|
|
24466
|
+
return e.push(0), new v(this.insertionPosition.root, e);
|
|
24467
24467
|
}
|
|
24468
24468
|
/**
|
|
24469
24469
|
* Artificial range that contains all the nodes from the split element that will be moved to the new element.
|
|
@@ -24495,7 +24495,7 @@ class G extends De {
|
|
|
24495
24495
|
* See {@link module:engine/model/operation/operation~Operation#getReversed `Operation#getReversed()`}.
|
|
24496
24496
|
*/
|
|
24497
24497
|
getReversed() {
|
|
24498
|
-
const e = this.splitPosition.root.document.graveyard, t = new
|
|
24498
|
+
const e = this.splitPosition.root.document.graveyard, t = new v(e, [0]);
|
|
24499
24499
|
return new re(this.moveTargetPosition, this.howMany, this.splitPosition, t, this.baseVersion + 1);
|
|
24500
24500
|
}
|
|
24501
24501
|
/**
|
|
@@ -24526,7 +24526,7 @@ class G extends De {
|
|
|
24526
24526
|
const i = e._clone();
|
|
24527
24527
|
qa(this.insertionPosition, i);
|
|
24528
24528
|
}
|
|
24529
|
-
const t = new b(
|
|
24529
|
+
const t = new b(v._createAt(e, this.splitPosition.offset), v._createAt(e, e.maxOffset));
|
|
24530
24530
|
Vn(t, this.moveTargetPosition);
|
|
24531
24531
|
}
|
|
24532
24532
|
/**
|
|
@@ -24548,7 +24548,7 @@ class G extends De {
|
|
|
24548
24548
|
*/
|
|
24549
24549
|
static getInsertionPosition(e) {
|
|
24550
24550
|
const t = e.path.slice(0, -1);
|
|
24551
|
-
return t[t.length - 1]++, new
|
|
24551
|
+
return t[t.length - 1]++, new v(e.root, t, "toPrevious");
|
|
24552
24552
|
}
|
|
24553
24553
|
/**
|
|
24554
24554
|
* Creates `SplitOperation` object from deserialized object, i.e. from parsed JSON string.
|
|
@@ -24557,7 +24557,7 @@ class G extends De {
|
|
|
24557
24557
|
* @param document Document on which this operation will be applied.
|
|
24558
24558
|
*/
|
|
24559
24559
|
static fromJSON(e, t) {
|
|
24560
|
-
const i =
|
|
24560
|
+
const i = v.fromJSON(e.splitPosition, t), s = v.fromJSON(e.insertionPosition, t), o = e.graveyardPosition ? v.fromJSON(e.graveyardPosition, t) : null;
|
|
24561
24561
|
return new this(i, e.howMany, s, o, e.baseVersion);
|
|
24562
24562
|
}
|
|
24563
24563
|
}
|
|
@@ -24590,7 +24590,7 @@ class re extends De {
|
|
|
24590
24590
|
* Position before the merged element (which will be deleted).
|
|
24591
24591
|
*/
|
|
24592
24592
|
get deletionPosition() {
|
|
24593
|
-
return new
|
|
24593
|
+
return new v(this.sourcePosition.root, this.sourcePosition.path.slice(0, -1));
|
|
24594
24594
|
}
|
|
24595
24595
|
/**
|
|
24596
24596
|
* Artificial range that contains all the nodes from the merged element that will be moved to {@link ~MergeOperation#sourcePosition}.
|
|
@@ -24622,7 +24622,7 @@ class re extends De {
|
|
|
24622
24622
|
* See {@link module:engine/model/operation/operation~Operation#getReversed `Operation#getReversed()`}.
|
|
24623
24623
|
*/
|
|
24624
24624
|
getReversed() {
|
|
24625
|
-
const e = this.targetPosition._getTransformedByMergeOperation(this), t = this.sourcePosition.path.slice(0, -1), i = new
|
|
24625
|
+
const e = this.targetPosition._getTransformedByMergeOperation(this), t = this.sourcePosition.path.slice(0, -1), i = new v(this.sourcePosition.root, t)._getTransformedByMergeOperation(this);
|
|
24626
24626
|
return new G(e, this.howMany, i, this.graveyardPosition, this.baseVersion + 1);
|
|
24627
24627
|
}
|
|
24628
24628
|
/**
|
|
@@ -24668,7 +24668,7 @@ class re extends De {
|
|
|
24668
24668
|
* @param document Document on which this operation will be applied.
|
|
24669
24669
|
*/
|
|
24670
24670
|
static fromJSON(e, t) {
|
|
24671
|
-
const i =
|
|
24671
|
+
const i = v.fromJSON(e.sourcePosition, t), s = v.fromJSON(e.targetPosition, t), o = v.fromJSON(e.graveyardPosition, t);
|
|
24672
24672
|
return new this(i, e.howMany, s, o, e.baseVersion);
|
|
24673
24673
|
}
|
|
24674
24674
|
}
|
|
@@ -24960,7 +24960,7 @@ class Pe extends De {
|
|
|
24960
24960
|
* @param document Document on which this operation will be applied.
|
|
24961
24961
|
*/
|
|
24962
24962
|
static fromJSON(e, t) {
|
|
24963
|
-
return new Pe(
|
|
24963
|
+
return new Pe(v.fromJSON(e.position, t), e.oldName, e.newName, e.baseVersion);
|
|
24964
24964
|
}
|
|
24965
24965
|
}
|
|
24966
24966
|
/**
|
|
@@ -25129,18 +25129,18 @@ class nt extends De {
|
|
|
25129
25129
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
25130
25130
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
25131
25131
|
*/
|
|
25132
|
-
const
|
|
25133
|
-
|
|
25134
|
-
|
|
25135
|
-
|
|
25136
|
-
|
|
25137
|
-
|
|
25138
|
-
|
|
25139
|
-
|
|
25140
|
-
|
|
25141
|
-
|
|
25142
|
-
|
|
25143
|
-
|
|
25132
|
+
const We = {};
|
|
25133
|
+
We[le.className] = le;
|
|
25134
|
+
We[ge.className] = ge;
|
|
25135
|
+
We[Ie.className] = Ie;
|
|
25136
|
+
We[z.className] = z;
|
|
25137
|
+
We[de.className] = de;
|
|
25138
|
+
We[De.className] = De;
|
|
25139
|
+
We[Pe.className] = Pe;
|
|
25140
|
+
We[bt.className] = bt;
|
|
25141
|
+
We[nt.className] = nt;
|
|
25142
|
+
We[G.className] = G;
|
|
25143
|
+
We[re.className] = re;
|
|
25144
25144
|
class lE {
|
|
25145
25145
|
/**
|
|
25146
25146
|
* Creates an operation instance from a JSON object (parsed JSON string).
|
|
@@ -25149,7 +25149,7 @@ class lE {
|
|
|
25149
25149
|
* @param document Document on which this operation will be applied.
|
|
25150
25150
|
*/
|
|
25151
25151
|
static fromJSON(e, t) {
|
|
25152
|
-
return
|
|
25152
|
+
return We[e.__className].fromJSON(e, t);
|
|
25153
25153
|
}
|
|
25154
25154
|
}
|
|
25155
25155
|
/**
|
|
@@ -25450,7 +25450,7 @@ $(Ie, G, (n, e, t) => {
|
|
|
25450
25450
|
if (n.oldRange && (n.oldRange = n.oldRange._getTransformedBySplitOperation(e)), n.newRange) {
|
|
25451
25451
|
if (t.abRelation) {
|
|
25452
25452
|
const i = n.newRange._getTransformedBySplitOperation(e);
|
|
25453
|
-
return n.newRange.start.isEqual(e.splitPosition) && t.abRelation.wasStartBeforeMergedElement ? n.newRange.start =
|
|
25453
|
+
return n.newRange.start.isEqual(e.splitPosition) && t.abRelation.wasStartBeforeMergedElement ? n.newRange.start = v._createAt(e.insertionPosition) : n.newRange.start.isEqual(e.splitPosition) && !t.abRelation.wasInLeftElement && (n.newRange.start = v._createAt(e.moveTargetPosition)), n.newRange.end.isEqual(e.splitPosition) && t.abRelation.wasInRightElement ? n.newRange.end = v._createAt(e.moveTargetPosition) : n.newRange.end.isEqual(e.splitPosition) && t.abRelation.wasEndBeforeMergedElement ? n.newRange.end = v._createAt(e.insertionPosition) : n.newRange.end = i.end, [n];
|
|
25454
25454
|
}
|
|
25455
25455
|
n.newRange = n.newRange._getTransformedBySplitOperation(e);
|
|
25456
25456
|
}
|
|
@@ -25461,7 +25461,7 @@ $(re, re, (n, e, t) => {
|
|
|
25461
25461
|
if (n.sourcePosition.isEqual(e.sourcePosition) && n.targetPosition.isEqual(e.targetPosition))
|
|
25462
25462
|
if (t.bWasUndone) {
|
|
25463
25463
|
const i = e.graveyardPosition.path.slice();
|
|
25464
|
-
return i.push(0), n.sourcePosition = new
|
|
25464
|
+
return i.push(0), n.sourcePosition = new v(e.graveyardPosition.root, i), n.howMany = 0, [n];
|
|
25465
25465
|
} else
|
|
25466
25466
|
return [new de(0)];
|
|
25467
25467
|
if (n.sourcePosition.isEqual(e.sourcePosition) && !n.targetPosition.isEqual(e.targetPosition) && !t.bWasUndone && t.abRelation != "splitAtSource") {
|
|
@@ -25553,7 +25553,7 @@ $(z, re, (n, e, t) => {
|
|
|
25553
25553
|
n.howMany > 1 && (r.push(new z(n.sourcePosition, n.howMany - 1, n.targetPosition, 0)), a = a._getTransformedByMove(n.sourcePosition, n.targetPosition, n.howMany - 1), l = l._getTransformedByMove(n.sourcePosition, n.targetPosition, n.howMany - 1));
|
|
25554
25554
|
const c = e.deletionPosition._getCombined(n.sourcePosition, n.targetPosition), u = new z(a, 1, c, 0), d = u.getMovedRangeStart().path.slice();
|
|
25555
25555
|
d.push(0);
|
|
25556
|
-
const h = new
|
|
25556
|
+
const h = new v(u.targetPosition.root, d);
|
|
25557
25557
|
l = l._getTransformedByMove(a, c, 1);
|
|
25558
25558
|
const f = new z(l, e.howMany, h, 0);
|
|
25559
25559
|
return r.push(u), r.push(f), r;
|
|
@@ -25597,7 +25597,7 @@ $(G, re, (n, e, t) => {
|
|
|
25597
25597
|
if (!n.graveyardPosition && !t.bWasUndone && n.splitPosition.hasSameParentAs(e.sourcePosition)) {
|
|
25598
25598
|
const i = e.graveyardPosition.path.slice();
|
|
25599
25599
|
i.push(0);
|
|
25600
|
-
const s = new
|
|
25600
|
+
const s = new v(e.graveyardPosition.root, i), o = G.getInsertionPosition(new v(e.graveyardPosition.root, i)), r = new G(s, 0, o, null, 0);
|
|
25601
25601
|
return n.splitPosition = n.splitPosition._getTransformedByMergeOperation(e), n.insertionPosition = G.getInsertionPosition(n.splitPosition), n.graveyardPosition = r.insertionPosition.clone(), n.graveyardPosition.stickiness = "toNext", [r, n];
|
|
25602
25602
|
}
|
|
25603
25603
|
return n.splitPosition.hasSameParentAs(e.deletionPosition) && !n.splitPosition.isAfter(e.deletionPosition) && n.howMany--, n.splitPosition.hasSameParentAs(e.targetPosition) && (n.howMany += e.howMany), n.splitPosition = n.splitPosition._getTransformedByMergeOperation(e), n.insertionPosition = G.getInsertionPosition(n.splitPosition), n.graveyardPosition && (n.graveyardPosition = n.graveyardPosition._getTransformedByMergeOperation(e)), [n];
|
|
@@ -25609,7 +25609,7 @@ $(G, z, (n, e, t) => {
|
|
|
25609
25609
|
if (!t.bWasUndone && o) {
|
|
25610
25610
|
const r = n.splitPosition._getTransformedByMoveOperation(e), a = n.graveyardPosition._getTransformedByMoveOperation(e), l = a.path.slice();
|
|
25611
25611
|
l.push(0);
|
|
25612
|
-
const c = new
|
|
25612
|
+
const c = new v(a.root, l);
|
|
25613
25613
|
return [new z(r, n.howMany, c, 0)];
|
|
25614
25614
|
}
|
|
25615
25615
|
n.graveyardPosition = n.graveyardPosition._getTransformedByMoveOperation(e);
|
|
@@ -25649,7 +25649,7 @@ $(G, G, (n, e, t) => {
|
|
|
25649
25649
|
if (e.splitPosition.isEqual(n.insertionPosition) && t.baRelation == "splitBefore") {
|
|
25650
25650
|
const i = e.insertionPosition.path.slice();
|
|
25651
25651
|
i.push(0);
|
|
25652
|
-
const s = new
|
|
25652
|
+
const s = new v(e.insertionPosition.root, i), o = new z(n.insertionPosition, 1, s, 0);
|
|
25653
25653
|
return [n, o];
|
|
25654
25654
|
}
|
|
25655
25655
|
return n.splitPosition.hasSameParentAs(e.splitPosition) && n.splitPosition.offset < e.splitPosition.offset && (n.howMany -= e.howMany), n.splitPosition = n.splitPosition._getTransformedBySplitOperation(e), n.insertionPosition = G.getInsertionPosition(n.splitPosition), [n];
|
|
@@ -25672,7 +25672,7 @@ function Vi(n, e) {
|
|
|
25672
25672
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
25673
25673
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
25674
25674
|
*/
|
|
25675
|
-
class pe extends Z(
|
|
25675
|
+
class pe extends Z(v) {
|
|
25676
25676
|
/**
|
|
25677
25677
|
* Creates a live position.
|
|
25678
25678
|
*
|
|
@@ -25695,7 +25695,7 @@ class pe extends Z(y) {
|
|
|
25695
25695
|
* Creates a {@link module:engine/model/position~Position position instance}, which is equal to this live position.
|
|
25696
25696
|
*/
|
|
25697
25697
|
toPosition() {
|
|
25698
|
-
return new
|
|
25698
|
+
return new v(this.root, this.path.slice(), this.stickiness);
|
|
25699
25699
|
}
|
|
25700
25700
|
/**
|
|
25701
25701
|
* Creates a `LivePosition` instance that is equal to position.
|
|
@@ -25973,10 +25973,10 @@ class pE {
|
|
|
25973
25973
|
const d = r[l].attributes, h = o[c].attributes;
|
|
25974
25974
|
let f;
|
|
25975
25975
|
if (r[l].name == "$text")
|
|
25976
|
-
f = new b(
|
|
25976
|
+
f = new b(v._createAt(i, l), v._createAt(i, l + 1));
|
|
25977
25977
|
else {
|
|
25978
25978
|
const m = i.offsetToIndex(l);
|
|
25979
|
-
f = new b(
|
|
25979
|
+
f = new b(v._createAt(i, l), v._createAt(i.getChild(m), 0));
|
|
25980
25980
|
}
|
|
25981
25981
|
t.push(...this._getAttributesDiff(f, h, d)), l++, c++;
|
|
25982
25982
|
} else
|
|
@@ -26232,7 +26232,7 @@ class pE {
|
|
|
26232
26232
|
_getInsertDiff(e, t, i) {
|
|
26233
26233
|
return {
|
|
26234
26234
|
type: "insert",
|
|
26235
|
-
position:
|
|
26235
|
+
position: v._createAt(e, t),
|
|
26236
26236
|
name: i.name,
|
|
26237
26237
|
attributes: new Map(i.attributes),
|
|
26238
26238
|
length: 1,
|
|
@@ -26251,7 +26251,7 @@ class pE {
|
|
|
26251
26251
|
_getRemoveDiff(e, t, i) {
|
|
26252
26252
|
return {
|
|
26253
26253
|
type: "remove",
|
|
26254
|
-
position:
|
|
26254
|
+
position: v._createAt(e, t),
|
|
26255
26255
|
name: i.name,
|
|
26256
26256
|
attributes: new Map(i.attributes),
|
|
26257
26257
|
length: 1,
|
|
@@ -26316,7 +26316,7 @@ class pE {
|
|
|
26316
26316
|
* and `howMany`.
|
|
26317
26317
|
*/
|
|
26318
26318
|
_removeAllNestedChanges(e, t, i) {
|
|
26319
|
-
const s = new b(
|
|
26319
|
+
const s = new b(v._createAt(e, t), v._createAt(e, t + i));
|
|
26320
26320
|
for (const o of s.getItems({ shallow: !0 }))
|
|
26321
26321
|
o.is("element") && (this._elementSnapshots.delete(o), this._changesInElement.delete(o), this._removeAllNestedChanges(o, 0, o.maxOffset));
|
|
26322
26322
|
}
|
|
@@ -27413,7 +27413,7 @@ class EE {
|
|
|
27413
27413
|
insert(e, t, i = 0) {
|
|
27414
27414
|
if (this._assertWriterUsedCorrectly(), e instanceof j && e.data == "")
|
|
27415
27415
|
return;
|
|
27416
|
-
const s =
|
|
27416
|
+
const s = v._createAt(t, i);
|
|
27417
27417
|
if (e.parent)
|
|
27418
27418
|
if (iu(e.root, s.root)) {
|
|
27419
27419
|
this.move(b._createOn(e), s);
|
|
@@ -27426,15 +27426,15 @@ class EE {
|
|
|
27426
27426
|
const o = s.root.document ? s.root.document.version : null, r = new ge(s, e, o);
|
|
27427
27427
|
if (e instanceof j && (r.shouldReceiveAttributes = !0), this.batch.addOperation(r), this.model.applyOperation(r), e instanceof mt)
|
|
27428
27428
|
for (const [a, l] of e.markers) {
|
|
27429
|
-
const c =
|
|
27429
|
+
const c = v._createAt(l.root, 0), d = { range: new b(l.start._getCombined(c, s), l.end._getCombined(c, s)), usingOperation: !0, affectsData: !0 };
|
|
27430
27430
|
this.model.markers.has(a) ? this.updateMarker(a, d) : this.addMarker(a, d);
|
|
27431
27431
|
}
|
|
27432
27432
|
}
|
|
27433
27433
|
insertText(e, t, i, s) {
|
|
27434
|
-
t instanceof mt || t instanceof W || t instanceof
|
|
27434
|
+
t instanceof mt || t instanceof W || t instanceof v ? this.insert(this.createText(e), t, i) : this.insert(this.createText(e, t), i, s);
|
|
27435
27435
|
}
|
|
27436
27436
|
insertElement(e, t, i, s) {
|
|
27437
|
-
t instanceof mt || t instanceof W || t instanceof
|
|
27437
|
+
t instanceof mt || t instanceof W || t instanceof v ? this.insert(this.createElement(e), t, i) : this.insert(this.createElement(e, t), i, s);
|
|
27438
27438
|
}
|
|
27439
27439
|
/**
|
|
27440
27440
|
* Inserts item at the end of the given parent.
|
|
@@ -27560,7 +27560,7 @@ class EE {
|
|
|
27560
27560
|
throw new g("writer-move-invalid-range", this);
|
|
27561
27561
|
if (!e.isFlat)
|
|
27562
27562
|
throw new g("writer-move-range-not-flat", this);
|
|
27563
|
-
const s =
|
|
27563
|
+
const s = v._createAt(t, i);
|
|
27564
27564
|
if (s.isEqual(e.start))
|
|
27565
27565
|
return;
|
|
27566
27566
|
if (this._addOperationForAffectedMarkers("move", e), !iu(e.root, s.root))
|
|
@@ -27665,7 +27665,7 @@ class EE {
|
|
|
27665
27665
|
*/
|
|
27666
27666
|
_mergeDetached(e) {
|
|
27667
27667
|
const t = e.nodeBefore, i = e.nodeAfter;
|
|
27668
|
-
this.move(b._createIn(i),
|
|
27668
|
+
this.move(b._createIn(i), v._createAt(t, "end")), this.remove(i);
|
|
27669
27669
|
}
|
|
27670
27670
|
/**
|
|
27671
27671
|
* Performs merge action in a non-detached tree.
|
|
@@ -27673,7 +27673,7 @@ class EE {
|
|
|
27673
27673
|
* @param position Position between merged elements.
|
|
27674
27674
|
*/
|
|
27675
27675
|
_merge(e) {
|
|
27676
|
-
const t =
|
|
27676
|
+
const t = v._createAt(e.nodeBefore, "end"), i = v._createAt(e.nodeAfter, 0), s = e.root.document.graveyard, o = new v(s, [0]), r = e.root.document.version, a = new re(i, e.nodeAfter.maxOffset, t, o, r);
|
|
27677
27677
|
this.batch.addOperation(a), this.model.applyOperation(a);
|
|
27678
27678
|
}
|
|
27679
27679
|
/**
|
|
@@ -27685,7 +27685,7 @@ class EE {
|
|
|
27685
27685
|
rename(e, t) {
|
|
27686
27686
|
if (this._assertWriterUsedCorrectly(), !(e instanceof W))
|
|
27687
27687
|
throw new g("writer-rename-not-element-instance", this);
|
|
27688
|
-
const i = e.root.document ? e.root.document.version : null, s = new Pe(
|
|
27688
|
+
const i = e.root.document ? e.root.document.version : null, s = new Pe(v._createBefore(e), e.name, t, i);
|
|
27689
27689
|
this.batch.addOperation(s), this.model.applyOperation(s);
|
|
27690
27690
|
}
|
|
27691
27691
|
/**
|
|
@@ -27715,7 +27715,7 @@ class EE {
|
|
|
27715
27715
|
} while (i !== t);
|
|
27716
27716
|
return {
|
|
27717
27717
|
position: e,
|
|
27718
|
-
range: new b(
|
|
27718
|
+
range: new b(v._createAt(s, "end"), v._createAt(o, 0))
|
|
27719
27719
|
};
|
|
27720
27720
|
}
|
|
27721
27721
|
/**
|
|
@@ -27737,7 +27737,7 @@ class EE {
|
|
|
27737
27737
|
throw new g("writer-wrap-element-attached", this);
|
|
27738
27738
|
this.insert(i, e.start);
|
|
27739
27739
|
const s = new b(e.start.getShiftedBy(1), e.end.getShiftedBy(1));
|
|
27740
|
-
this.move(s,
|
|
27740
|
+
this.move(s, v._createAt(i, 0));
|
|
27741
27741
|
}
|
|
27742
27742
|
/**
|
|
27743
27743
|
* Unwraps children of the given element – all its children are moved before it and then the element is removed.
|
|
@@ -28087,7 +28087,7 @@ function eu(n, e, t, i) {
|
|
|
28087
28087
|
let r = i.start, a, l, c;
|
|
28088
28088
|
for (const d of i.getWalker({ shallow: !0 }))
|
|
28089
28089
|
c = d.item.getAttribute(e), a && l != c && (l != t && u(), r = a), a = d.nextPosition, l = c;
|
|
28090
|
-
a instanceof
|
|
28090
|
+
a instanceof v && a != r && l != t && u();
|
|
28091
28091
|
function u() {
|
|
28092
28092
|
const d = new b(r, a), h = d.root.document ? o.version : null, f = new le(d, e, l, t, h);
|
|
28093
28093
|
n.batch.addOperation(f), s.applyOperation(f);
|
|
@@ -28101,7 +28101,7 @@ function tu(n, e, t, i) {
|
|
|
28101
28101
|
const u = i.document ? o.version : null;
|
|
28102
28102
|
l = new bt(i, e, r, t, u);
|
|
28103
28103
|
} else {
|
|
28104
|
-
a = new b(
|
|
28104
|
+
a = new b(v._createBefore(i), n.createPositionAfter(i));
|
|
28105
28105
|
const u = a.root.document ? o.version : null;
|
|
28106
28106
|
l = new le(a, e, r, t, u);
|
|
28107
28107
|
}
|
|
@@ -28115,7 +28115,7 @@ function sn(n, e, t, i, s) {
|
|
|
28115
28115
|
function TE(n, e, t, i) {
|
|
28116
28116
|
let s;
|
|
28117
28117
|
if (n.root.document) {
|
|
28118
|
-
const o = i.document, r = new
|
|
28118
|
+
const o = i.document, r = new v(o.graveyard, [0]);
|
|
28119
28119
|
s = new z(n, e, r, o.version);
|
|
28120
28120
|
} else
|
|
28121
28121
|
s = new CE(n, e);
|
|
@@ -28300,8 +28300,8 @@ function FE(n, e, t) {
|
|
|
28300
28300
|
u.sort(({ position: d }, { position: h }) => d.isBefore(h) ? 1 : -1);
|
|
28301
28301
|
for (const { position: d, name: h, isCollapsed: f } of u) {
|
|
28302
28302
|
let m = null, p = null;
|
|
28303
|
-
const _ = d.parent === e && d.isAtStart,
|
|
28304
|
-
!_ && !
|
|
28303
|
+
const _ = d.parent === e && d.isAtStart, y = d.parent === e && d.isAtEnd;
|
|
28304
|
+
!_ && !y ? (m = i.createElement("$marker"), i.insert(m, d)) : f && (p = _ ? "start" : "end"), r.push({
|
|
28305
28305
|
name: h,
|
|
28306
28306
|
element: m,
|
|
28307
28307
|
collapsed: p
|
|
@@ -28318,15 +28318,15 @@ function FE(n, e, t) {
|
|
|
28318
28318
|
for (let h = r.length - 1; h >= 0; h--) {
|
|
28319
28319
|
const { name: f, element: m, collapsed: p } = r[h], _ = !d[f];
|
|
28320
28320
|
if (_ && (d[f] = []), m) {
|
|
28321
|
-
const
|
|
28322
|
-
d[f].push(
|
|
28321
|
+
const y = i.createPositionAt(m, "before");
|
|
28322
|
+
d[f].push(y), i.remove(m);
|
|
28323
28323
|
} else {
|
|
28324
|
-
const
|
|
28325
|
-
if (!
|
|
28324
|
+
const y = o.getAffectedRange();
|
|
28325
|
+
if (!y) {
|
|
28326
28326
|
p && d[f].push(o.position);
|
|
28327
28327
|
continue;
|
|
28328
28328
|
}
|
|
28329
|
-
p ? d[f].push(
|
|
28329
|
+
p ? d[f].push(y[p]) : d[f].push(_ ? y.start : y.end);
|
|
28330
28330
|
}
|
|
28331
28331
|
}
|
|
28332
28332
|
for (const [h, [f, m]] of Object.entries(d))
|
|
@@ -28479,7 +28479,7 @@ class DE {
|
|
|
28479
28479
|
/* istanbul ignore if -- @preserve */
|
|
28480
28480
|
if (!this.position.isEqual(t))
|
|
28481
28481
|
throw new g("insertcontent-invalid-insertion-position", this);
|
|
28482
|
-
this.position =
|
|
28482
|
+
this.position = v._createAt(t.nodeBefore, "end");
|
|
28483
28483
|
const i = pe.fromPosition(this.position, "toPrevious");
|
|
28484
28484
|
this._affectedEnd.isEqual(t) && (this._affectedEnd.detach(), this._affectedEnd = pe._createAt(t.nodeBefore, "end", "toNext")), this._firstNode === this._lastNode && (this._firstNode = t.nodeBefore, this._lastNode = t.nodeBefore), this.writer.merge(t), t.getShiftedBy(-1).isEqual(this._affectedStart) && this._firstNode === this._lastNode && (this._affectedStart.detach(), this._affectedStart = pe._createAt(t.nodeBefore, 0, "toPrevious")), this.position = i.toPosition(), i.detach(), this._filterAttributesOf.push(this.position.parent), t.detach();
|
|
28485
28485
|
}
|
|
@@ -28621,7 +28621,7 @@ function UE(n, e) {
|
|
|
28621
28621
|
return n.unit === "word" ? qE(i, t) : WE(i, s, r);
|
|
28622
28622
|
if (a == (t ? "elementStart" : "elementEnd")) {
|
|
28623
28623
|
if (o.isSelectable(l))
|
|
28624
|
-
return
|
|
28624
|
+
return v._createAt(l, t ? "after" : "before");
|
|
28625
28625
|
if (o.checkChild(c, "$text"))
|
|
28626
28626
|
return c;
|
|
28627
28627
|
} else {
|
|
@@ -28658,7 +28658,7 @@ function qE(n, e) {
|
|
|
28658
28658
|
return n.position;
|
|
28659
28659
|
}
|
|
28660
28660
|
function jE(n, e) {
|
|
28661
|
-
const t = n.root, i =
|
|
28661
|
+
const t = n.root, i = v._createAt(t, e ? "end" : 0);
|
|
28662
28662
|
return e ? new b(n, i) : new b(i, n);
|
|
28663
28663
|
}
|
|
28664
28664
|
function GE(n, e, t) {
|
|
@@ -29212,7 +29212,7 @@ let ZE = class extends U() {
|
|
|
29212
29212
|
* @param stickiness Position stickiness. See {@link module:engine/model/position~PositionStickiness}.
|
|
29213
29213
|
*/
|
|
29214
29214
|
createPositionFromPath(e, t, i) {
|
|
29215
|
-
return new
|
|
29215
|
+
return new v(e, t, i);
|
|
29216
29216
|
}
|
|
29217
29217
|
/**
|
|
29218
29218
|
* Creates position at the given location. The location can be specified as:
|
|
@@ -29235,7 +29235,7 @@ let ZE = class extends U() {
|
|
|
29235
29235
|
* @param offset Offset or one of the flags. Used only when first parameter is a {@link module:engine/model/item~Item model item}.
|
|
29236
29236
|
*/
|
|
29237
29237
|
createPositionAt(e, t) {
|
|
29238
|
-
return
|
|
29238
|
+
return v._createAt(e, t);
|
|
29239
29239
|
}
|
|
29240
29240
|
/**
|
|
29241
29241
|
* Creates a new position after the given {@link module:engine/model/item~Item model item}.
|
|
@@ -29246,7 +29246,7 @@ let ZE = class extends U() {
|
|
|
29246
29246
|
* @param item Item after which the position should be placed.
|
|
29247
29247
|
*/
|
|
29248
29248
|
createPositionAfter(e) {
|
|
29249
|
-
return
|
|
29249
|
+
return v._createAfter(e);
|
|
29250
29250
|
}
|
|
29251
29251
|
/**
|
|
29252
29252
|
* Creates a new position before the given {@link module:engine/model/item~Item model item}.
|
|
@@ -29257,7 +29257,7 @@ let ZE = class extends U() {
|
|
|
29257
29257
|
* @param item Item before which the position should be placed.
|
|
29258
29258
|
*/
|
|
29259
29259
|
createPositionBefore(e) {
|
|
29260
|
-
return
|
|
29260
|
+
return v._createBefore(e);
|
|
29261
29261
|
}
|
|
29262
29262
|
/**
|
|
29263
29263
|
* Creates a range spanning from the `start` position to the `end` position.
|
|
@@ -30406,7 +30406,7 @@ const RT = '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d=
|
|
|
30406
30406
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
30407
30407
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
30408
30408
|
*/
|
|
30409
|
-
const
|
|
30409
|
+
const P = {
|
|
30410
30410
|
bold: pA,
|
|
30411
30411
|
cancel: RT,
|
|
30412
30412
|
caption: VT,
|
|
@@ -30474,18 +30474,18 @@ const I = {
|
|
|
30474
30474
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
30475
30475
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
30476
30476
|
*/
|
|
30477
|
-
const { threeVerticalDots: Wm } =
|
|
30478
|
-
alignLeft:
|
|
30479
|
-
bold:
|
|
30480
|
-
importExport:
|
|
30481
|
-
paragraph:
|
|
30482
|
-
plus:
|
|
30483
|
-
text:
|
|
30484
|
-
threeVerticalDots:
|
|
30485
|
-
pilcrow:
|
|
30486
|
-
dragIndicator:
|
|
30477
|
+
const { threeVerticalDots: Wm } = P, NA = {
|
|
30478
|
+
alignLeft: P.alignLeft,
|
|
30479
|
+
bold: P.bold,
|
|
30480
|
+
importExport: P.importExport,
|
|
30481
|
+
paragraph: P.paragraph,
|
|
30482
|
+
plus: P.plus,
|
|
30483
|
+
text: P.text,
|
|
30484
|
+
threeVerticalDots: P.threeVerticalDots,
|
|
30485
|
+
pilcrow: P.pilcrow,
|
|
30486
|
+
dragIndicator: P.dragIndicator
|
|
30487
30487
|
};
|
|
30488
|
-
class Ga extends
|
|
30488
|
+
class Ga extends S {
|
|
30489
30489
|
/**
|
|
30490
30490
|
* Creates an instance of the {@link module:ui/toolbar/toolbarview~ToolbarView} class.
|
|
30491
30491
|
*
|
|
@@ -30640,7 +30640,7 @@ class Ga extends T {
|
|
|
30640
30640
|
}), o !== !1 ? u.buttonView.icon = NA[o] || o || Wm : u.buttonView.withText = !0, mo(u, () => u.toolbarView._buildItemsFromConfig(r, t, i)), u;
|
|
30641
30641
|
}
|
|
30642
30642
|
}
|
|
30643
|
-
class $A extends
|
|
30643
|
+
class $A extends S {
|
|
30644
30644
|
/**
|
|
30645
30645
|
* @inheritDoc
|
|
30646
30646
|
*/
|
|
@@ -30759,9 +30759,9 @@ class HA {
|
|
|
30759
30759
|
get _areItemsOverflowing() {
|
|
30760
30760
|
if (!this.ungroupedItems.length)
|
|
30761
30761
|
return !1;
|
|
30762
|
-
const e = this.viewElement, t = this.viewLocale.uiLanguageDirection, i = new
|
|
30762
|
+
const e = this.viewElement, t = this.viewLocale.uiLanguageDirection, i = new M(e.lastChild), s = new M(e);
|
|
30763
30763
|
if (!this.cachedPadding) {
|
|
30764
|
-
const o =
|
|
30764
|
+
const o = A.window.getComputedStyle(e), r = t === "ltr" ? "paddingRight" : "paddingLeft";
|
|
30765
30765
|
this.cachedPadding = Number.parseInt(o[r]);
|
|
30766
30766
|
}
|
|
30767
30767
|
return t === "ltr" ? i.right > s.right - this.cachedPadding : i.left < s.left + this.cachedPadding;
|
|
@@ -30842,7 +30842,7 @@ class HA {
|
|
|
30842
30842
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
30843
30843
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
30844
30844
|
*/
|
|
30845
|
-
class qs extends
|
|
30845
|
+
class qs extends S {
|
|
30846
30846
|
/**
|
|
30847
30847
|
* @inheritDoc
|
|
30848
30848
|
*/
|
|
@@ -30873,7 +30873,7 @@ class qs extends T {
|
|
|
30873
30873
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
30874
30874
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
30875
30875
|
*/
|
|
30876
|
-
class qm extends
|
|
30876
|
+
class qm extends S {
|
|
30877
30877
|
/**
|
|
30878
30878
|
* @inheritDoc
|
|
30879
30879
|
*/
|
|
@@ -30893,7 +30893,7 @@ class qm extends T {
|
|
|
30893
30893
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
30894
30894
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
30895
30895
|
*/
|
|
30896
|
-
class xs extends
|
|
30896
|
+
class xs extends S {
|
|
30897
30897
|
/**
|
|
30898
30898
|
* Creates an instance of the list item group view class.
|
|
30899
30899
|
*
|
|
@@ -30937,7 +30937,7 @@ class xs extends T {
|
|
|
30937
30937
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
30938
30938
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
30939
30939
|
*/
|
|
30940
|
-
class jm extends
|
|
30940
|
+
class jm extends S {
|
|
30941
30941
|
/**
|
|
30942
30942
|
* @inheritDoc
|
|
30943
30943
|
*/
|
|
@@ -31068,7 +31068,7 @@ class jm extends T {
|
|
|
31068
31068
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
31069
31069
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
31070
31070
|
*/
|
|
31071
|
-
class Yi extends
|
|
31071
|
+
class Yi extends S {
|
|
31072
31072
|
/**
|
|
31073
31073
|
* @inheritDoc
|
|
31074
31074
|
*/
|
|
@@ -31116,7 +31116,7 @@ class Yi extends T {
|
|
|
31116
31116
|
* attributes.
|
|
31117
31117
|
*/
|
|
31118
31118
|
_createActionView(e) {
|
|
31119
|
-
const t = e || new
|
|
31119
|
+
const t = e || new O();
|
|
31120
31120
|
return e || t.bind("icon", "isEnabled", "isOn", "isToggleable", "keystroke", "label", "tabindex", "tooltip", "tooltipPosition", "type", "withText").to(this), t.extendTemplate({
|
|
31121
31121
|
attributes: {
|
|
31122
31122
|
class: "ck-splitbutton__action"
|
|
@@ -31128,7 +31128,7 @@ class Yi extends T {
|
|
|
31128
31128
|
* attributes.
|
|
31129
31129
|
*/
|
|
31130
31130
|
_createArrowView() {
|
|
31131
|
-
const e = new
|
|
31131
|
+
const e = new O(), t = e.bindTemplate;
|
|
31132
31132
|
return e.icon = Fa, e.extendTemplate({
|
|
31133
31133
|
attributes: {
|
|
31134
31134
|
class: [
|
|
@@ -31215,7 +31215,7 @@ function KA(n) {
|
|
|
31215
31215
|
if (i)
|
|
31216
31216
|
return;
|
|
31217
31217
|
const s = n.panelView.element;
|
|
31218
|
-
s && s.contains(
|
|
31218
|
+
s && s.contains(A.document.activeElement) && n.buttonView.focus();
|
|
31219
31219
|
});
|
|
31220
31220
|
}
|
|
31221
31221
|
function ZA(n) {
|
|
@@ -31233,7 +31233,7 @@ function Gm(n, e, t, i) {
|
|
|
31233
31233
|
} else if (s.type === "button" || s.type === "switchbutton") {
|
|
31234
31234
|
const o = new qs(i);
|
|
31235
31235
|
let r;
|
|
31236
|
-
return s.type === "button" ? (r = new
|
|
31236
|
+
return s.type === "button" ? (r = new O(i), r.extendTemplate({
|
|
31237
31237
|
attributes: {
|
|
31238
31238
|
"aria-checked": r.bindTemplate.to("isOn")
|
|
31239
31239
|
}
|
|
@@ -31481,7 +31481,7 @@ class fS extends dS {
|
|
|
31481
31481
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
31482
31482
|
*/
|
|
31483
31483
|
const mS = 150;
|
|
31484
|
-
class gS extends
|
|
31484
|
+
class gS extends S {
|
|
31485
31485
|
/**
|
|
31486
31486
|
* Creates a view of color picker.
|
|
31487
31487
|
*
|
|
@@ -31517,7 +31517,7 @@ class gS extends T {
|
|
|
31517
31517
|
* Renders color picker in the view.
|
|
31518
31518
|
*/
|
|
31519
31519
|
render() {
|
|
31520
|
-
if (super.render(), hC("hex-color-picker", fS), this.picker =
|
|
31520
|
+
if (super.render(), hC("hex-color-picker", fS), this.picker = A.document.createElement("hex-color-picker"), this.picker.setAttribute("class", "hex-color-picker"), this.picker.setAttribute("tabindex", "-1"), this._createSlidersView(), this.element) {
|
|
31521
31521
|
this.hexInputRow.element ? this.element.insertBefore(this.picker, this.hexInputRow.element) : this.element.appendChild(this.picker);
|
|
31522
31522
|
const e = document.createElement("style");
|
|
31523
31523
|
e.textContent = '[role="slider"]:focus [part$="pointer"] {border: 1px solid #fff;outline: 1px solid var(--ck-color-focus-border);box-shadow: 0 0 0 2px #fff;}', this.picker.shadowRoot.appendChild(e);
|
|
@@ -31533,7 +31533,7 @@ class gS extends T {
|
|
|
31533
31533
|
*/
|
|
31534
31534
|
focus() {
|
|
31535
31535
|
/* istanbul ignore next -- @preserve */
|
|
31536
|
-
!this._config.hideInput && (
|
|
31536
|
+
!this._config.hideInput && (B.isGecko || B.isiOS || B.isSafari) && this.hexInputRow.children.get(1).focus(), this.slidersView.first.focus();
|
|
31537
31537
|
}
|
|
31538
31538
|
/**
|
|
31539
31539
|
* Creates collection of sliders in color picker.
|
|
@@ -31578,7 +31578,7 @@ function $o(n) {
|
|
|
31578
31578
|
let e = dC(n);
|
|
31579
31579
|
return e || (e = "#000"), e.length === 4 && (e = "#" + [e[1], e[1], e[2], e[2], e[3], e[3]].join("")), e.toLowerCase();
|
|
31580
31580
|
}
|
|
31581
|
-
class pS extends
|
|
31581
|
+
class pS extends S {
|
|
31582
31582
|
/**
|
|
31583
31583
|
* @param element HTML element of slider in color picker.
|
|
31584
31584
|
*/
|
|
@@ -31592,7 +31592,7 @@ class pS extends T {
|
|
|
31592
31592
|
this.element.focus();
|
|
31593
31593
|
}
|
|
31594
31594
|
}
|
|
31595
|
-
class wS extends
|
|
31595
|
+
class wS extends S {
|
|
31596
31596
|
constructor(e) {
|
|
31597
31597
|
super(e), this.setTemplate({
|
|
31598
31598
|
tag: "div",
|
|
@@ -31606,7 +31606,7 @@ class wS extends T {
|
|
|
31606
31606
|
});
|
|
31607
31607
|
}
|
|
31608
31608
|
}
|
|
31609
|
-
class bS extends
|
|
31609
|
+
class bS extends S {
|
|
31610
31610
|
/**
|
|
31611
31611
|
* Creates an instance of the form row class.
|
|
31612
31612
|
*
|
|
@@ -31661,8 +31661,8 @@ class _S extends U(_e) {
|
|
|
31661
31661
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
31662
31662
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
31663
31663
|
*/
|
|
31664
|
-
const { eraser: vS, colorPalette: yS } =
|
|
31665
|
-
class CS extends
|
|
31664
|
+
const { eraser: vS, colorPalette: yS } = P;
|
|
31665
|
+
class CS extends S {
|
|
31666
31666
|
/**
|
|
31667
31667
|
* Creates an instance of the view.
|
|
31668
31668
|
*
|
|
@@ -31764,7 +31764,7 @@ class CS extends T {
|
|
|
31764
31764
|
* Creates the button responsible for displaying the color picker component.
|
|
31765
31765
|
*/
|
|
31766
31766
|
_createColorPickerButton() {
|
|
31767
|
-
this.colorPickerButtonView = new
|
|
31767
|
+
this.colorPickerButtonView = new O(), this.colorPickerButtonView.set({
|
|
31768
31768
|
label: this._colorPickerLabel,
|
|
31769
31769
|
withText: !0,
|
|
31770
31770
|
icon: yS,
|
|
@@ -31777,7 +31777,7 @@ class CS extends T {
|
|
|
31777
31777
|
* Adds the remove color button as a child of the current view.
|
|
31778
31778
|
*/
|
|
31779
31779
|
_createRemoveColorButton() {
|
|
31780
|
-
const e = new
|
|
31780
|
+
const e = new O();
|
|
31781
31781
|
return e.set({
|
|
31782
31782
|
withText: !0,
|
|
31783
31783
|
icon: vS,
|
|
@@ -31854,7 +31854,7 @@ class CS extends T {
|
|
|
31854
31854
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
31855
31855
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
31856
31856
|
*/
|
|
31857
|
-
class kS extends
|
|
31857
|
+
class kS extends S {
|
|
31858
31858
|
/**
|
|
31859
31859
|
* Creates an instance of the view.
|
|
31860
31860
|
*
|
|
@@ -31933,7 +31933,7 @@ class kS extends T {
|
|
|
31933
31933
|
* Creates bar containing "Save" and "Cancel" buttons.
|
|
31934
31934
|
*/
|
|
31935
31935
|
_createActionBarView({ saveButtonView: e, cancelButtonView: t }) {
|
|
31936
|
-
const i = new
|
|
31936
|
+
const i = new S(), s = this.createCollection();
|
|
31937
31937
|
return s.add(e), s.add(t), i.setTemplate({
|
|
31938
31938
|
tag: "div",
|
|
31939
31939
|
attributes: {
|
|
@@ -31949,15 +31949,15 @@ class kS extends T {
|
|
|
31949
31949
|
* Creates "Save" and "Cancel" buttons.
|
|
31950
31950
|
*/
|
|
31951
31951
|
_createActionButtons() {
|
|
31952
|
-
const e = this.locale, t = e.t, i = new
|
|
31952
|
+
const e = this.locale, t = e.t, i = new O(e), s = new O(e);
|
|
31953
31953
|
return i.set({
|
|
31954
|
-
icon:
|
|
31954
|
+
icon: P.check,
|
|
31955
31955
|
class: "ck-button-save",
|
|
31956
31956
|
type: "button",
|
|
31957
31957
|
withText: !1,
|
|
31958
31958
|
label: t("Accept")
|
|
31959
31959
|
}), s.set({
|
|
31960
|
-
icon:
|
|
31960
|
+
icon: P.cancel,
|
|
31961
31961
|
class: "ck-button-cancel",
|
|
31962
31962
|
type: "button",
|
|
31963
31963
|
withText: !1,
|
|
@@ -31991,7 +31991,7 @@ class kS extends T {
|
|
|
31991
31991
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
31992
31992
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
31993
31993
|
*/
|
|
31994
|
-
class ES extends
|
|
31994
|
+
class ES extends S {
|
|
31995
31995
|
/**
|
|
31996
31996
|
* Creates a view to be inserted as a child of {@link module:ui/dropdown/dropdownview~DropdownView}.
|
|
31997
31997
|
*
|
|
@@ -32200,7 +32200,7 @@ function zo(n) {
|
|
|
32200
32200
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
32201
32201
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
32202
32202
|
*/
|
|
32203
|
-
class Ym extends
|
|
32203
|
+
class Ym extends S {
|
|
32204
32204
|
/**
|
|
32205
32205
|
* Creates an instance of the form header class.
|
|
32206
32206
|
*
|
|
@@ -32222,7 +32222,7 @@ class Ym extends T {
|
|
|
32222
32222
|
},
|
|
32223
32223
|
children: this.children
|
|
32224
32224
|
}), t.icon && (this.iconView = new at(), this.iconView.content = t.icon, this.children.add(this.iconView));
|
|
32225
|
-
const s = new
|
|
32225
|
+
const s = new S(e);
|
|
32226
32226
|
s.setTemplate({
|
|
32227
32227
|
tag: "h2",
|
|
32228
32228
|
attributes: {
|
|
@@ -32261,13 +32261,13 @@ function AS(n) {
|
|
|
32261
32261
|
* Attaches the listeners for the dragging and drag end.
|
|
32262
32262
|
*/
|
|
32263
32263
|
_attachDragListeners() {
|
|
32264
|
-
this.listenTo(
|
|
32264
|
+
this.listenTo(A.document, "mouseup", this._onDragEndBound), this.listenTo(A.document, "touchend", this._onDragEndBound), this.listenTo(A.document, "mousemove", this._onDragBound), this.listenTo(A.document, "touchmove", this._onDragBound);
|
|
32265
32265
|
}
|
|
32266
32266
|
/**
|
|
32267
32267
|
* Detaches the listeners after the drag end.
|
|
32268
32268
|
*/
|
|
32269
32269
|
_detachDragListeners() {
|
|
32270
|
-
this.stopListening(
|
|
32270
|
+
this.stopListening(A.document, "mouseup", this._onDragEndBound), this.stopListening(A.document, "touchend", this._onDragEndBound), this.stopListening(A.document, "mousemove", this._onDragBound), this.stopListening(A.document, "touchmove", this._onDragBound);
|
|
32271
32271
|
}
|
|
32272
32272
|
/**
|
|
32273
32273
|
* Starts the dragging listeners and sets the initial view coordinates.
|
|
@@ -32312,7 +32312,7 @@ function AS(n) {
|
|
|
32312
32312
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
32313
32313
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
32314
32314
|
*/
|
|
32315
|
-
class SS extends
|
|
32315
|
+
class SS extends S {
|
|
32316
32316
|
/**
|
|
32317
32317
|
* @inheritDoc
|
|
32318
32318
|
*/
|
|
@@ -32350,7 +32350,7 @@ class SS extends T {
|
|
|
32350
32350
|
*/
|
|
32351
32351
|
setButtons(e) {
|
|
32352
32352
|
for (const t of e) {
|
|
32353
|
-
const i = new
|
|
32353
|
+
const i = new O(this.locale);
|
|
32354
32354
|
let s;
|
|
32355
32355
|
i.on("execute", () => t.onExecute()), t.onCreate && t.onCreate(i);
|
|
32356
32356
|
for (s in t)
|
|
@@ -32379,7 +32379,7 @@ class SS extends T {
|
|
|
32379
32379
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
32380
32380
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
32381
32381
|
*/
|
|
32382
|
-
class xS extends
|
|
32382
|
+
class xS extends S {
|
|
32383
32383
|
/**
|
|
32384
32384
|
* @inheritDoc
|
|
32385
32385
|
*/
|
|
@@ -32413,7 +32413,7 @@ const ut = {
|
|
|
32413
32413
|
EDITOR_ABOVE_CENTER: "editor-above-center",
|
|
32414
32414
|
EDITOR_BELOW_CENTER: "editor-below-center"
|
|
32415
32415
|
}, hu = Gi("px");
|
|
32416
|
-
class Mn extends AS(
|
|
32416
|
+
class Mn extends AS(S) {
|
|
32417
32417
|
/**
|
|
32418
32418
|
* @inheritDoc
|
|
32419
32419
|
*/
|
|
@@ -32473,9 +32473,9 @@ class Mn extends AS(T) {
|
|
|
32473
32473
|
this.fire("close", { source: "escKeyPress" }), t();
|
|
32474
32474
|
}), this.on("drag", (e, { deltaX: t, deltaY: i }) => {
|
|
32475
32475
|
this.wasMoved = !0, this.moveBy(t, i);
|
|
32476
|
-
}), this.listenTo(
|
|
32476
|
+
}), this.listenTo(A.window, "resize", () => {
|
|
32477
32477
|
this._isVisible && !this.wasMoved && this.updatePosition();
|
|
32478
|
-
}), this.listenTo(
|
|
32478
|
+
}), this.listenTo(A.document, "scroll", () => {
|
|
32479
32479
|
this._isVisible && !this.wasMoved && this.updatePosition();
|
|
32480
32480
|
}), this.on("change:_isVisible", (e, t, i) => {
|
|
32481
32481
|
i && (this._isTransparent = !0, setTimeout(() => {
|
|
@@ -32497,7 +32497,7 @@ class Mn extends AS(T) {
|
|
|
32497
32497
|
* @internal
|
|
32498
32498
|
*/
|
|
32499
32499
|
setupParts({ icon: e, title: t, hasCloseButton: i = !0, content: s, actionButtons: o }) {
|
|
32500
|
-
t && (this.headerView = new Ym(this.locale, { icon: e }), i && (this.closeButtonView = this._createCloseButton(), this.headerView.children.add(this.closeButtonView)), this.headerView.label = t, this.ariaLabel = t, this.parts.add(this.headerView, 0)), s && (s instanceof
|
|
32500
|
+
t && (this.headerView = new Ym(this.locale, { icon: e }), i && (this.closeButtonView = this._createCloseButton(), this.headerView.children.add(this.closeButtonView)), this.headerView.label = t, this.ariaLabel = t, this.parts.add(this.headerView, 0)), s && (s instanceof S && (s = [s]), this.contentView = new xS(this.locale), this.contentView.children.addMany(s), this.parts.add(this.contentView)), o && (this.actionsView = new SS(this.locale), this.actionsView.setButtons(o), this.parts.add(this.actionsView)), this._updateFocusCyclableItems();
|
|
32501
32501
|
}
|
|
32502
32502
|
/**
|
|
32503
32503
|
* Focuses the first focusable element inside the dialog.
|
|
@@ -32586,7 +32586,7 @@ class Mn extends AS(T) {
|
|
|
32586
32586
|
* Calculates the visible DOM root part.
|
|
32587
32587
|
*/
|
|
32588
32588
|
_getVisibleDomRootRect(e) {
|
|
32589
|
-
let t = new
|
|
32589
|
+
let t = new M(this._getCurrentDomRoot()).getVisible();
|
|
32590
32590
|
if (t) {
|
|
32591
32591
|
if (t = e.getIntersection(t), !t)
|
|
32592
32592
|
return null;
|
|
@@ -32598,7 +32598,7 @@ class Mn extends AS(T) {
|
|
|
32598
32598
|
* Calculates the dialog element rect.
|
|
32599
32599
|
*/
|
|
32600
32600
|
_getDialogRect() {
|
|
32601
|
-
return new
|
|
32601
|
+
return new M(this.element.firstElementChild);
|
|
32602
32602
|
}
|
|
32603
32603
|
/**
|
|
32604
32604
|
* Calculates the viewport rect.
|
|
@@ -32627,25 +32627,25 @@ class Mn extends AS(T) {
|
|
|
32627
32627
|
* Creates the close button view that is displayed in the header view corner.
|
|
32628
32628
|
*/
|
|
32629
32629
|
_createCloseButton() {
|
|
32630
|
-
const e = new
|
|
32630
|
+
const e = new O(this.locale), t = this.locale.t;
|
|
32631
32631
|
return e.set({
|
|
32632
32632
|
label: t("Close"),
|
|
32633
32633
|
tooltip: !0,
|
|
32634
|
-
icon:
|
|
32634
|
+
icon: P.cancel
|
|
32635
32635
|
}), e.on("execute", () => this.fire("close", { source: "closeButton" })), e;
|
|
32636
32636
|
}
|
|
32637
32637
|
}
|
|
32638
32638
|
Mn.defaultOffset = 15;
|
|
32639
32639
|
function IS(n) {
|
|
32640
32640
|
n = Object.assign({ top: 0, bottom: 0, left: 0, right: 0 }, n);
|
|
32641
|
-
const e = new
|
|
32641
|
+
const e = new M(A.window);
|
|
32642
32642
|
return e.top += n.top, e.height -= n.top, e.bottom -= n.bottom, e.height -= n.bottom, e.left += n.left, e.right -= n.right, e.width -= n.left + n.right, e;
|
|
32643
32643
|
}
|
|
32644
32644
|
/**
|
|
32645
32645
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
32646
32646
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
32647
32647
|
*/
|
|
32648
|
-
const fu = Gi("px"), mu =
|
|
32648
|
+
const fu = Gi("px"), mu = A.document.body, PS = {
|
|
32649
32649
|
top: -99999,
|
|
32650
32650
|
left: -99999,
|
|
32651
32651
|
name: "arrowless",
|
|
@@ -32653,7 +32653,7 @@ const fu = Gi("px"), mu = E.document.body, PS = {
|
|
|
32653
32653
|
withArrow: !1
|
|
32654
32654
|
}
|
|
32655
32655
|
};
|
|
32656
|
-
class be extends
|
|
32656
|
+
class be extends S {
|
|
32657
32657
|
/**
|
|
32658
32658
|
* @inheritDoc
|
|
32659
32659
|
*/
|
|
@@ -32802,10 +32802,10 @@ class be extends T {
|
|
|
32802
32802
|
_startPinning(e) {
|
|
32803
32803
|
this.attachTo(e);
|
|
32804
32804
|
const t = Hr(e.target), i = e.limiter ? Hr(e.limiter) : mu;
|
|
32805
|
-
this.listenTo(
|
|
32805
|
+
this.listenTo(A.document, "scroll", (s, o) => {
|
|
32806
32806
|
const r = o.target, a = t && r.contains(t), l = i && r.contains(i);
|
|
32807
32807
|
(a || l || !t || !i) && this.attachTo(e);
|
|
32808
|
-
}, { useCapture: !0 }), this.listenTo(
|
|
32808
|
+
}, { useCapture: !0 }), this.listenTo(A.window, "resize", () => {
|
|
32809
32809
|
this.attachTo(e);
|
|
32810
32810
|
});
|
|
32811
32811
|
}
|
|
@@ -32813,7 +32813,7 @@ class be extends T {
|
|
|
32813
32813
|
* Stops managing the pinned state of the panel. See {@link #pin}.
|
|
32814
32814
|
*/
|
|
32815
32815
|
_stopPinning() {
|
|
32816
|
-
this.stopListening(
|
|
32816
|
+
this.stopListening(A.document, "scroll"), this.stopListening(A.window, "resize");
|
|
32817
32817
|
}
|
|
32818
32818
|
}
|
|
32819
32819
|
be.arrowSideOffset = 25;
|
|
@@ -33060,7 +33060,7 @@ class me extends Ne() {
|
|
|
33060
33060
|
constructor(e) {
|
|
33061
33061
|
if (super(), this._currentElementWithTooltip = null, this._currentTooltipPosition = null, this._resizeObserver = null, me._editors.add(e), me._instance)
|
|
33062
33062
|
return me._instance;
|
|
33063
|
-
me._instance = this, this.tooltipTextView = new
|
|
33063
|
+
me._instance = this, this.tooltipTextView = new S(e.locale), this.tooltipTextView.set("text", ""), this.tooltipTextView.setTemplate({
|
|
33064
33064
|
tag: "span",
|
|
33065
33065
|
attributes: {
|
|
33066
33066
|
class: [
|
|
@@ -33073,7 +33073,7 @@ class me extends Ne() {
|
|
|
33073
33073
|
text: this.tooltipTextView.bindTemplate.to("text")
|
|
33074
33074
|
}
|
|
33075
33075
|
]
|
|
33076
|
-
}), this.balloonPanelView = new be(e.locale), this.balloonPanelView.class = gu, this.balloonPanelView.content.add(this.tooltipTextView), this._pinTooltipDebounced = Di(this._pinTooltip, 600), this.listenTo(
|
|
33076
|
+
}), this.balloonPanelView = new be(e.locale), this.balloonPanelView.class = gu, this.balloonPanelView.content.add(this.tooltipTextView), this._pinTooltipDebounced = Di(this._pinTooltip, 600), this.listenTo(A.document, "mouseenter", this._onEnterOrFocus.bind(this), { useCapture: !0 }), this.listenTo(A.document, "mouseleave", this._onLeaveOrBlur.bind(this), { useCapture: !0 }), this.listenTo(A.document, "focus", this._onEnterOrFocus.bind(this), { useCapture: !0 }), this.listenTo(A.document, "blur", this._onLeaveOrBlur.bind(this), { useCapture: !0 }), this.listenTo(A.document, "scroll", this._onScroll.bind(this), { useCapture: !0 }), this._watchdogExcluded = !0;
|
|
33077
33077
|
}
|
|
33078
33078
|
/**
|
|
33079
33079
|
* Destroys the tooltip manager.
|
|
@@ -33282,7 +33282,7 @@ class DS extends Ne() {
|
|
|
33282
33282
|
s.includes(i) ? this._lastFocusedEditableElement = i : this._lastFocusedEditableElement = s[0];
|
|
33283
33283
|
}
|
|
33284
33284
|
}
|
|
33285
|
-
class NS extends
|
|
33285
|
+
class NS extends S {
|
|
33286
33286
|
/**
|
|
33287
33287
|
* Created an instance of the "powered by" view.
|
|
33288
33288
|
*
|
|
@@ -33351,7 +33351,7 @@ function HS(n, e) {
|
|
|
33351
33351
|
}
|
|
33352
33352
|
function Xm(n, e, t) {
|
|
33353
33353
|
return (i, s) => {
|
|
33354
|
-
const o = new
|
|
33354
|
+
const o = new M(n);
|
|
33355
33355
|
if (o.width < MS || o.height < OS)
|
|
33356
33356
|
return null;
|
|
33357
33357
|
let r;
|
|
@@ -33422,7 +33422,7 @@ class US {
|
|
|
33422
33422
|
});
|
|
33423
33423
|
}
|
|
33424
33424
|
}
|
|
33425
|
-
class WS extends
|
|
33425
|
+
class WS extends S {
|
|
33426
33426
|
constructor(e) {
|
|
33427
33427
|
super(e), this.regionViews = this.createCollection(), this.setTemplate({
|
|
33428
33428
|
tag: "div",
|
|
@@ -33436,7 +33436,7 @@ class WS extends T {
|
|
|
33436
33436
|
});
|
|
33437
33437
|
}
|
|
33438
33438
|
}
|
|
33439
|
-
class qS extends
|
|
33439
|
+
class qS extends S {
|
|
33440
33440
|
constructor(e) {
|
|
33441
33441
|
super(e);
|
|
33442
33442
|
const t = this.bindTemplate;
|
|
@@ -33677,7 +33677,7 @@ function pu(n) {
|
|
|
33677
33677
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
33678
33678
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
33679
33679
|
*/
|
|
33680
|
-
class GS extends
|
|
33680
|
+
class GS extends S {
|
|
33681
33681
|
/**
|
|
33682
33682
|
* Creates an instance of the editor UI view class.
|
|
33683
33683
|
*
|
|
@@ -33768,7 +33768,7 @@ class KS extends GS {
|
|
|
33768
33768
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
33769
33769
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
33770
33770
|
*/
|
|
33771
|
-
class ZS extends
|
|
33771
|
+
class ZS extends S {
|
|
33772
33772
|
/**
|
|
33773
33773
|
* Creates an instance of EditableUIView class.
|
|
33774
33774
|
*
|
|
@@ -34234,14 +34234,14 @@ class js extends w {
|
|
|
34234
34234
|
})), e;
|
|
34235
34235
|
}
|
|
34236
34236
|
}
|
|
34237
|
-
class YS extends
|
|
34237
|
+
class YS extends S {
|
|
34238
34238
|
/**
|
|
34239
34239
|
* @inheritDoc
|
|
34240
34240
|
*/
|
|
34241
34241
|
constructor(e) {
|
|
34242
34242
|
super(e);
|
|
34243
34243
|
const t = e.t, i = this.bindTemplate;
|
|
34244
|
-
this.set("isNavigationVisible", !0), this.focusTracker = new ne(), this.buttonPrevView = this._createButtonView(t("Previous"),
|
|
34244
|
+
this.set("isNavigationVisible", !0), this.focusTracker = new ne(), this.buttonPrevView = this._createButtonView(t("Previous"), P.previousArrow), this.buttonNextView = this._createButtonView(t("Next"), P.nextArrow), this.content = this.createCollection(), this.setTemplate({
|
|
34245
34245
|
tag: "div",
|
|
34246
34246
|
attributes: {
|
|
34247
34247
|
class: [
|
|
@@ -34320,7 +34320,7 @@ class YS extends T {
|
|
|
34320
34320
|
* @param icon The button icon.
|
|
34321
34321
|
*/
|
|
34322
34322
|
_createButtonView(e, t) {
|
|
34323
|
-
const i = new
|
|
34323
|
+
const i = new O(this.locale);
|
|
34324
34324
|
return i.set({
|
|
34325
34325
|
label: e,
|
|
34326
34326
|
icon: t,
|
|
@@ -34328,7 +34328,7 @@ class YS extends T {
|
|
|
34328
34328
|
}), i;
|
|
34329
34329
|
}
|
|
34330
34330
|
}
|
|
34331
|
-
class QS extends
|
|
34331
|
+
class QS extends S {
|
|
34332
34332
|
/**
|
|
34333
34333
|
* @inheritDoc
|
|
34334
34334
|
*/
|
|
@@ -34356,7 +34356,7 @@ class QS extends T {
|
|
|
34356
34356
|
}
|
|
34357
34357
|
_addPanels(e) {
|
|
34358
34358
|
for (; e--; ) {
|
|
34359
|
-
const t = new
|
|
34359
|
+
const t = new S();
|
|
34360
34360
|
t.setTemplate({ tag: "div" }), this.content.add(t), this.registerChild(t);
|
|
34361
34361
|
}
|
|
34362
34362
|
}
|
|
@@ -34371,7 +34371,7 @@ class QS extends T {
|
|
|
34371
34371
|
*/
|
|
34372
34372
|
updatePosition() {
|
|
34373
34373
|
if (this.numberOfPanels) {
|
|
34374
|
-
const { top: e, left: t } = this._balloonPanelView, { width: i, height: s } = new
|
|
34374
|
+
const { top: e, left: t } = this._balloonPanelView, { width: i, height: s } = new M(this._balloonPanelView.element);
|
|
34375
34375
|
Object.assign(this, { top: e, left: t, width: i, height: s });
|
|
34376
34376
|
}
|
|
34377
34377
|
}
|
|
@@ -34381,7 +34381,7 @@ class QS extends T {
|
|
|
34381
34381
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
34382
34382
|
*/
|
|
34383
34383
|
const _i = Gi("px");
|
|
34384
|
-
class XS extends
|
|
34384
|
+
class XS extends S {
|
|
34385
34385
|
/**
|
|
34386
34386
|
* @inheritDoc
|
|
34387
34387
|
*/
|
|
@@ -34436,7 +34436,7 @@ class XS extends T {
|
|
|
34436
34436
|
* @inheritDoc
|
|
34437
34437
|
*/
|
|
34438
34438
|
render() {
|
|
34439
|
-
super.render(), this.checkIfShouldBeSticky(), this.listenTo(
|
|
34439
|
+
super.render(), this.checkIfShouldBeSticky(), this.listenTo(A.document, "scroll", () => {
|
|
34440
34440
|
this.checkIfShouldBeSticky();
|
|
34441
34441
|
}, { useCapture: !0 }), this.listenTo(this, "change:isActive", () => {
|
|
34442
34442
|
this.checkIfShouldBeSticky();
|
|
@@ -34451,10 +34451,10 @@ class XS extends T {
|
|
|
34451
34451
|
this._unstick();
|
|
34452
34452
|
return;
|
|
34453
34453
|
}
|
|
34454
|
-
const e = new
|
|
34454
|
+
const e = new M(this.limiterElement);
|
|
34455
34455
|
let t = e.getVisible();
|
|
34456
34456
|
if (t) {
|
|
34457
|
-
const i = new
|
|
34457
|
+
const i = new M(A.window);
|
|
34458
34458
|
i.top += this.viewportTopOffset, i.height -= this.viewportTopOffset, t = t.getIntersection(i);
|
|
34459
34459
|
}
|
|
34460
34460
|
if (t && e.top < t.top) {
|
|
@@ -34474,7 +34474,7 @@ class XS extends T {
|
|
|
34474
34474
|
* @param topOffset
|
|
34475
34475
|
*/
|
|
34476
34476
|
_stickToTopOfAncestors(e) {
|
|
34477
|
-
this.isSticky = !0, this._isStickyToTheBottomOfLimiter = !1, this._stickyTopOffset = e, this._stickyBottomOffset = null, this._marginLeft = _i(-
|
|
34477
|
+
this.isSticky = !0, this._isStickyToTheBottomOfLimiter = !1, this._stickyTopOffset = e, this._stickyBottomOffset = null, this._marginLeft = _i(-A.window.scrollX);
|
|
34478
34478
|
}
|
|
34479
34479
|
/**
|
|
34480
34480
|
* Sticks the panel at the bottom of the limiter with a given CSS `bottom` offset.
|
|
@@ -34483,7 +34483,7 @@ class XS extends T {
|
|
|
34483
34483
|
* @param stickyBottomOffset
|
|
34484
34484
|
*/
|
|
34485
34485
|
_stickToBottomOfLimiter(e) {
|
|
34486
|
-
this.isSticky = !0, this._isStickyToTheBottomOfLimiter = !0, this._stickyTopOffset = null, this._stickyBottomOffset = e, this._marginLeft = _i(-
|
|
34486
|
+
this.isSticky = !0, this._isStickyToTheBottomOfLimiter = !0, this._stickyTopOffset = null, this._stickyBottomOffset = e, this._marginLeft = _i(-A.window.scrollX);
|
|
34487
34487
|
}
|
|
34488
34488
|
/**
|
|
34489
34489
|
* Unsticks the panel putting it back to its original position.
|
|
@@ -34499,7 +34499,7 @@ class XS extends T {
|
|
|
34499
34499
|
* @private
|
|
34500
34500
|
*/
|
|
34501
34501
|
get _contentPanelRect() {
|
|
34502
|
-
return new
|
|
34502
|
+
return new M(this.contentPanelElement);
|
|
34503
34503
|
}
|
|
34504
34504
|
}
|
|
34505
34505
|
/**
|
|
@@ -34516,13 +34516,13 @@ class ex extends Ki {
|
|
|
34516
34516
|
showIcon: !0,
|
|
34517
34517
|
creator: Qn
|
|
34518
34518
|
}, t);
|
|
34519
|
-
super(e, s.creator), this.label = t.label, this._viewConfig = s, this._viewConfig.showIcon && (this.iconView = new at(), this.iconView.content =
|
|
34519
|
+
super(e, s.creator), this.label = t.label, this._viewConfig = s, this._viewConfig.showIcon && (this.iconView = new at(), this.iconView.content = P.loupe, this.fieldWrapperChildren.add(this.iconView, 0), this.extendTemplate({
|
|
34520
34520
|
attributes: {
|
|
34521
34521
|
class: "ck-search__query_with-icon"
|
|
34522
34522
|
}
|
|
34523
|
-
})), this._viewConfig.showResetButton && (this.resetButtonView = new
|
|
34523
|
+
})), this._viewConfig.showResetButton && (this.resetButtonView = new O(e), this.resetButtonView.set({
|
|
34524
34524
|
label: i("Clear"),
|
|
34525
|
-
icon:
|
|
34525
|
+
icon: P.cancel,
|
|
34526
34526
|
class: "ck-search__reset",
|
|
34527
34527
|
isVisible: !1,
|
|
34528
34528
|
tooltip: !0
|
|
@@ -34545,7 +34545,7 @@ class ex extends Ki {
|
|
|
34545
34545
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
34546
34546
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
34547
34547
|
*/
|
|
34548
|
-
class tx extends
|
|
34548
|
+
class tx extends S {
|
|
34549
34549
|
/**
|
|
34550
34550
|
* @inheritDoc
|
|
34551
34551
|
*/
|
|
@@ -34597,7 +34597,7 @@ class tx extends T {
|
|
|
34597
34597
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
34598
34598
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
34599
34599
|
*/
|
|
34600
|
-
class ix extends
|
|
34600
|
+
class ix extends S {
|
|
34601
34601
|
/**
|
|
34602
34602
|
* @inheritDoc
|
|
34603
34603
|
*/
|
|
@@ -34648,7 +34648,7 @@ class ix extends T {
|
|
|
34648
34648
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
34649
34649
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
34650
34650
|
*/
|
|
34651
|
-
class nx extends
|
|
34651
|
+
class nx extends S {
|
|
34652
34652
|
/**
|
|
34653
34653
|
* Creates an instance of the {@link module:ui/search/text/searchtextview~SearchTextView} class.
|
|
34654
34654
|
*
|
|
@@ -34786,7 +34786,7 @@ class Fn extends nx {
|
|
|
34786
34786
|
this._updateResultsVisibility(), this._updateResultsViewWidthAndPosition();
|
|
34787
34787
|
}), this.keystrokes.set("esc", (o, r) => {
|
|
34788
34788
|
this.resultsView.isVisible && (this.queryView.focus(), this.resultsView.isVisible = !1, r());
|
|
34789
|
-
}), this.listenTo(
|
|
34789
|
+
}), this.listenTo(A.document, "scroll", () => {
|
|
34790
34790
|
this._updateResultsViewWidthAndPosition();
|
|
34791
34791
|
}), this.on("change:isEnabled", () => {
|
|
34792
34792
|
this._updateResultsVisibility();
|
|
@@ -34802,7 +34802,7 @@ class Fn extends nx {
|
|
|
34802
34802
|
_updateResultsViewWidthAndPosition() {
|
|
34803
34803
|
if (!this.resultsView.isVisible)
|
|
34804
34804
|
return;
|
|
34805
|
-
this.resultsView._width = new
|
|
34805
|
+
this.resultsView._width = new M(this.queryView.fieldView.element).width;
|
|
34806
34806
|
const e = Fn._getOptimalPosition({
|
|
34807
34807
|
element: this.resultsView.element,
|
|
34808
34808
|
target: this.queryView.element,
|
|
@@ -34905,7 +34905,7 @@ class sx extends jS {
|
|
|
34905
34905
|
_handleScrollToTheSelectionWithStickyPanel(e, t, i) {
|
|
34906
34906
|
const s = this.view.stickyPanel;
|
|
34907
34907
|
if (s.isSticky) {
|
|
34908
|
-
const o = new
|
|
34908
|
+
const o = new M(s.element).height;
|
|
34909
34909
|
t.viewportOffset.top += o;
|
|
34910
34910
|
} else {
|
|
34911
34911
|
const o = () => {
|
|
@@ -34932,7 +34932,7 @@ class sx extends jS {
|
|
|
34932
34932
|
i.on("moveTo", (s, o) => {
|
|
34933
34933
|
if (!e.isSticky || i.wasMoved)
|
|
34934
34934
|
return;
|
|
34935
|
-
const r = new
|
|
34935
|
+
const r = new M(e.contentPanelElement);
|
|
34936
34936
|
o[1] < r.bottom + Mn.defaultOffset && (o[1] = r.bottom + Mn.defaultOffset);
|
|
34937
34937
|
}, { priority: "high" });
|
|
34938
34938
|
}, { priority: "low" });
|
|
@@ -35836,7 +35836,7 @@ function ag(n) {
|
|
|
35836
35836
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
35837
35837
|
*/
|
|
35838
35838
|
const Ja = "alignment";
|
|
35839
|
-
class hx extends
|
|
35839
|
+
class hx extends V {
|
|
35840
35840
|
/**
|
|
35841
35841
|
* @inheritDoc
|
|
35842
35842
|
*/
|
|
@@ -35980,10 +35980,10 @@ function _x(n) {
|
|
|
35980
35980
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
35981
35981
|
*/
|
|
35982
35982
|
const gs = /* @__PURE__ */ new Map([
|
|
35983
|
-
["left",
|
|
35984
|
-
["right",
|
|
35985
|
-
["center",
|
|
35986
|
-
["justify",
|
|
35983
|
+
["left", P.alignLeft],
|
|
35984
|
+
["right", P.alignRight],
|
|
35985
|
+
["center", P.alignCenter],
|
|
35986
|
+
["justify", P.alignJustify]
|
|
35987
35987
|
]);
|
|
35988
35988
|
class vx extends w {
|
|
35989
35989
|
/**
|
|
@@ -36047,7 +36047,7 @@ class vx extends w {
|
|
|
36047
36047
|
_addButton(e) {
|
|
36048
36048
|
const t = this.editor;
|
|
36049
36049
|
t.ui.componentFactory.add(`alignment:${e}`, (i) => {
|
|
36050
|
-
const s = t.commands.get("alignment"), o = new
|
|
36050
|
+
const s = t.commands.get("alignment"), o = new O(i);
|
|
36051
36051
|
return o.set({
|
|
36052
36052
|
label: this.localizedOptionTitles[e],
|
|
36053
36053
|
icon: gs.get(e),
|
|
@@ -36154,7 +36154,7 @@ class lg {
|
|
|
36154
36154
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
36155
36155
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
36156
36156
|
*/
|
|
36157
|
-
class Cx extends
|
|
36157
|
+
class Cx extends V {
|
|
36158
36158
|
/**
|
|
36159
36159
|
* Creates an instance of the command.
|
|
36160
36160
|
*
|
|
@@ -36218,7 +36218,7 @@ class kx extends lt {
|
|
|
36218
36218
|
* @inheritDoc
|
|
36219
36219
|
*/
|
|
36220
36220
|
constructor(e) {
|
|
36221
|
-
super(e), this.focusObserver = e.getObserver(Hs),
|
|
36221
|
+
super(e), this.focusObserver = e.getObserver(Hs), B.isAndroid && _u.push("insertCompositionText");
|
|
36222
36222
|
const t = e.document;
|
|
36223
36223
|
t.on("beforeinput", (i, s) => {
|
|
36224
36224
|
if (!this.isEnabled)
|
|
@@ -36233,7 +36233,7 @@ class kx extends lt {
|
|
|
36233
36233
|
selection: e.createSelection(r)
|
|
36234
36234
|
})), c.stop.called && i.stop();
|
|
36235
36235
|
}), t.on("compositionend", (i, { data: s, domEvent: o }) => {
|
|
36236
|
-
!this.isEnabled ||
|
|
36236
|
+
!this.isEnabled || B.isAndroid || s && t.fire("insertText", new Hi(e, o, {
|
|
36237
36237
|
text: s,
|
|
36238
36238
|
selection: t.selection
|
|
36239
36239
|
}));
|
|
@@ -36272,7 +36272,7 @@ class cg extends w {
|
|
|
36272
36272
|
i.document.isComposing || a.preventDefault();
|
|
36273
36273
|
const { text: l, selection: c, resultRange: u } = a, d = Array.from(c.getRanges()).map((m) => e.editing.mapper.toModelRange(m));
|
|
36274
36274
|
let h = l;
|
|
36275
|
-
if (
|
|
36275
|
+
if (B.isAndroid) {
|
|
36276
36276
|
const m = Array.from(d[0].getItems()).reduce((p, _) => p + (_.is("$textProxy") ? _.data : ""), "");
|
|
36277
36277
|
m && (m.length <= h.length ? h.startsWith(m) && (h = h.substring(m.length), d[0].start = d[0].start.getShiftedBy(m.length)) : m.startsWith(h) && (d[0].start = d[0].start.getShiftedBy(h.length), h = ""));
|
|
36278
36278
|
}
|
|
@@ -36281,7 +36281,7 @@ class cg extends w {
|
|
|
36281
36281
|
selection: t.createSelection(d)
|
|
36282
36282
|
};
|
|
36283
36283
|
u && (f.resultRange = e.editing.mapper.toModelRange(u)), e.execute("insertText", f), i.scrollToTheSelection();
|
|
36284
|
-
}),
|
|
36284
|
+
}), B.isAndroid ? this.listenTo(i.document, "keydown", (r, a) => {
|
|
36285
36285
|
s.isCollapsed || a.keyCode != 229 || !i.document.isComposing || vu(t, o);
|
|
36286
36286
|
}) : this.listenTo(i.document, "compositionstart", () => {
|
|
36287
36287
|
s.isCollapsed || vu(t, o);
|
|
@@ -36300,7 +36300,7 @@ function vu(n, e) {
|
|
|
36300
36300
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
36301
36301
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
36302
36302
|
*/
|
|
36303
|
-
class yu extends
|
|
36303
|
+
class yu extends V {
|
|
36304
36304
|
/**
|
|
36305
36305
|
* Creates an instance of the command.
|
|
36306
36306
|
*
|
|
@@ -36513,10 +36513,10 @@ class Ax extends lt {
|
|
|
36513
36513
|
unit: c.unit,
|
|
36514
36514
|
sequence: i
|
|
36515
36515
|
};
|
|
36516
|
-
u.unit == It && (u.selectionToRemove = e.createSelection(r[0])), l === "deleteContentBackward" && (
|
|
36516
|
+
u.unit == It && (u.selectionToRemove = e.createSelection(r[0])), l === "deleteContentBackward" && (B.isAndroid && (u.sequence = 1), xx(r) && (u.unit = It, u.selectionToRemove = e.createSelection(r)));
|
|
36517
36517
|
const d = new Zi(t, "delete", r[0]);
|
|
36518
36518
|
t.fire(d, new Hi(e, a, u)), d.stop.called && s.stop();
|
|
36519
|
-
}),
|
|
36519
|
+
}), B.isBlink && Sx(this);
|
|
36520
36520
|
}
|
|
36521
36521
|
/**
|
|
36522
36522
|
* @inheritDoc
|
|
@@ -36966,13 +36966,13 @@ function At(n, e, t, i) {
|
|
|
36966
36966
|
return;
|
|
36967
36967
|
const m = t.exec(h.data.substr(0, l.end.offset));
|
|
36968
36968
|
m && n.model.enqueueChange((p) => {
|
|
36969
|
-
const _ = p.createPositionAt(d, 0),
|
|
36969
|
+
const _ = p.createPositionAt(d, 0), y = p.createPositionAt(d, m[0].length), T = new Me(_, y);
|
|
36970
36970
|
if (s({ match: m }) !== !1) {
|
|
36971
|
-
p.remove(
|
|
36972
|
-
const
|
|
36973
|
-
d.isEmpty && !D.isEqual(
|
|
36971
|
+
p.remove(T);
|
|
36972
|
+
const L = n.model.document.selection.getFirstRange(), D = p.createRangeIn(d);
|
|
36973
|
+
d.isEmpty && !D.isEqual(L) && !D.containsRange(L, !0) && p.remove(d);
|
|
36974
36974
|
}
|
|
36975
|
-
|
|
36975
|
+
T.detach(), n.model.enqueueChange(() => {
|
|
36976
36976
|
n.plugins.get("Delete").requestUndoOnBackspace();
|
|
36977
36977
|
});
|
|
36978
36978
|
});
|
|
@@ -37013,11 +37013,11 @@ function vi(n, e, t, i) {
|
|
|
37013
37013
|
const u = Array.from(l.document.differ.getChanges()), d = u[0];
|
|
37014
37014
|
if (u.length != 1 || d.type !== "insert" || d.name != "$text" || d.length != 1)
|
|
37015
37015
|
return;
|
|
37016
|
-
const h = c.focus, f = h.parent, { text: m, range: p } = Px(l.createRange(l.createPositionAt(f, 0), h), l), _ = o(m),
|
|
37017
|
-
|
|
37018
|
-
if (i(
|
|
37019
|
-
for (const D of
|
|
37020
|
-
|
|
37016
|
+
const h = c.focus, f = h.parent, { text: m, range: p } = Px(l.createRange(l.createPositionAt(f, 0), h), l), _ = o(m), y = Eu(p.start, _.format, l), T = Eu(p.start, _.remove, l);
|
|
37017
|
+
y.length && T.length && l.enqueueChange((C) => {
|
|
37018
|
+
if (i(C, y) !== !1) {
|
|
37019
|
+
for (const D of T.reverse())
|
|
37020
|
+
C.remove(D);
|
|
37021
37021
|
l.enqueueChange(() => {
|
|
37022
37022
|
n.plugins.get("Delete").requestUndoOnBackspace();
|
|
37023
37023
|
});
|
|
@@ -37171,7 +37171,7 @@ function ws(n, e) {
|
|
|
37171
37171
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
37172
37172
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
37173
37173
|
*/
|
|
37174
|
-
class es extends
|
|
37174
|
+
class es extends V {
|
|
37175
37175
|
/**
|
|
37176
37176
|
* @param attributeKey Attribute that will be set by the command.
|
|
37177
37177
|
*/
|
|
@@ -37288,10 +37288,10 @@ class Lx extends w {
|
|
|
37288
37288
|
init() {
|
|
37289
37289
|
const e = this.editor, t = e.t;
|
|
37290
37290
|
e.ui.componentFactory.add(Uo, (i) => {
|
|
37291
|
-
const s = e.commands.get(Uo), o = new
|
|
37291
|
+
const s = e.commands.get(Uo), o = new O(i);
|
|
37292
37292
|
return o.set({
|
|
37293
37293
|
label: t("Bold"),
|
|
37294
|
-
icon:
|
|
37294
|
+
icon: P.bold,
|
|
37295
37295
|
keystroke: "CTRL+B",
|
|
37296
37296
|
tooltip: !0,
|
|
37297
37297
|
isToggleable: !0
|
|
@@ -37375,7 +37375,7 @@ class Dx extends w {
|
|
|
37375
37375
|
init() {
|
|
37376
37376
|
const e = this.editor, t = e.t;
|
|
37377
37377
|
e.ui.componentFactory.add(Wo, (i) => {
|
|
37378
|
-
const s = e.commands.get(Wo), o = new
|
|
37378
|
+
const s = e.commands.get(Wo), o = new O(i);
|
|
37379
37379
|
return o.set({
|
|
37380
37380
|
label: t("Code"),
|
|
37381
37381
|
icon: Fx,
|
|
@@ -37458,7 +37458,7 @@ class Hx extends w {
|
|
|
37458
37458
|
init() {
|
|
37459
37459
|
const e = this.editor, t = e.t;
|
|
37460
37460
|
e.ui.componentFactory.add(qo, (i) => {
|
|
37461
|
-
const s = e.commands.get(qo), o = new
|
|
37461
|
+
const s = e.commands.get(qo), o = new O(i);
|
|
37462
37462
|
return o.set({
|
|
37463
37463
|
label: t("Italic"),
|
|
37464
37464
|
icon: zx,
|
|
@@ -37543,7 +37543,7 @@ class jx extends w {
|
|
|
37543
37543
|
init() {
|
|
37544
37544
|
const e = this.editor, t = e.t;
|
|
37545
37545
|
e.ui.componentFactory.add(jo, (i) => {
|
|
37546
|
-
const s = e.commands.get(jo), o = new
|
|
37546
|
+
const s = e.commands.get(jo), o = new O(i);
|
|
37547
37547
|
return o.set({
|
|
37548
37548
|
label: t("Strikethrough"),
|
|
37549
37549
|
icon: qx,
|
|
@@ -37624,7 +37624,7 @@ class Jx extends w {
|
|
|
37624
37624
|
init() {
|
|
37625
37625
|
const e = this.editor, t = e.t;
|
|
37626
37626
|
e.ui.componentFactory.add(Go, (i) => {
|
|
37627
|
-
const s = e.commands.get(Go), o = new
|
|
37627
|
+
const s = e.commands.get(Go), o = new O(i);
|
|
37628
37628
|
return o.set({
|
|
37629
37629
|
label: t("Underline"),
|
|
37630
37630
|
icon: Zx,
|
|
@@ -37667,7 +37667,7 @@ function* mg(n, e) {
|
|
|
37667
37667
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
37668
37668
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
37669
37669
|
*/
|
|
37670
|
-
class Qx extends
|
|
37670
|
+
class Qx extends V {
|
|
37671
37671
|
/**
|
|
37672
37672
|
* @inheritDoc
|
|
37673
37673
|
*/
|
|
@@ -37741,7 +37741,7 @@ class gg extends lt {
|
|
|
37741
37741
|
if (!this.isEnabled)
|
|
37742
37742
|
return;
|
|
37743
37743
|
let r = o.inputType;
|
|
37744
|
-
|
|
37744
|
+
B.isSafari && i && r == "insertParagraph" && (r = "insertLineBreak");
|
|
37745
37745
|
const a = o.domEvent, l = Xx[r];
|
|
37746
37746
|
if (!l)
|
|
37747
37747
|
return;
|
|
@@ -37784,7 +37784,7 @@ class ts extends w {
|
|
|
37784
37784
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
37785
37785
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
37786
37786
|
*/
|
|
37787
|
-
class e3 extends
|
|
37787
|
+
class e3 extends V {
|
|
37788
37788
|
/**
|
|
37789
37789
|
* @inheritDoc
|
|
37790
37790
|
*/
|
|
@@ -37859,7 +37859,7 @@ class pg extends w {
|
|
|
37859
37859
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
37860
37860
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
37861
37861
|
*/
|
|
37862
|
-
class n3 extends
|
|
37862
|
+
class n3 extends V {
|
|
37863
37863
|
/**
|
|
37864
37864
|
* @inheritDoc
|
|
37865
37865
|
*/
|
|
@@ -38033,10 +38033,10 @@ class o3 extends w {
|
|
|
38033
38033
|
init() {
|
|
38034
38034
|
const e = this.editor, t = e.t;
|
|
38035
38035
|
e.ui.componentFactory.add("blockQuote", (i) => {
|
|
38036
|
-
const s = e.commands.get("blockQuote"), o = new
|
|
38036
|
+
const s = e.commands.get("blockQuote"), o = new O(i);
|
|
38037
38037
|
return o.set({
|
|
38038
38038
|
label: t("Block quote"),
|
|
38039
|
-
icon:
|
|
38039
|
+
icon: P.quote,
|
|
38040
38040
|
tooltip: !0,
|
|
38041
38041
|
isToggleable: !0
|
|
38042
38042
|
}), o.bind("isOn", "isEnabled").to(s, "value", "isEnabled"), this.listenTo(o, "execute", () => {
|
|
@@ -38699,7 +38699,7 @@ class A3 extends w {
|
|
|
38699
38699
|
const t = this.editor.editing.view.document;
|
|
38700
38700
|
this._listenToIfEnabled(t, "insertText", (i, s) => {
|
|
38701
38701
|
this._insertParagraphAccordingToFakeCaretPosition() && (s.selection = t.selection);
|
|
38702
|
-
}, { priority: "high" }),
|
|
38702
|
+
}, { priority: "high" }), B.isAndroid ? this._listenToIfEnabled(t, "keydown", (i, s) => {
|
|
38703
38703
|
s.keyCode == 229 && this._insertParagraphAccordingToFakeCaretPosition();
|
|
38704
38704
|
}) : this._listenToIfEnabled(t, "compositionstart", () => {
|
|
38705
38705
|
this._insertParagraphAccordingToFakeCaretPosition();
|
|
@@ -38926,7 +38926,7 @@ function L3(n, e, t) {
|
|
|
38926
38926
|
const c = i.createSelection(e.start);
|
|
38927
38927
|
i.modifySelection(c), !c.focus.isAtEnd && !e.start.isEqual(c.focus) && (e = i.createRange(c.focus, e.end));
|
|
38928
38928
|
}
|
|
38929
|
-
const o = n.mapper.toViewRange(e), r = s.viewRangeToDom(o), a =
|
|
38929
|
+
const o = n.mapper.toViewRange(e), r = s.viewRangeToDom(o), a = M.getDomRangeRects(r);
|
|
38930
38930
|
let l;
|
|
38931
38931
|
for (const c of a) {
|
|
38932
38932
|
if (l === void 0) {
|
|
@@ -39008,7 +39008,7 @@ class hi extends w {
|
|
|
39008
39008
|
}
|
|
39009
39009
|
if (O3(r) || !he(r) && (r = r.findAncestor(he), !r))
|
|
39010
39010
|
return;
|
|
39011
|
-
|
|
39011
|
+
B.isAndroid && t.preventDefault(), o.isFocused || s.focus();
|
|
39012
39012
|
const a = i.editing.mapper.toModelElement(r);
|
|
39013
39013
|
this._setSelectionOverElement(a);
|
|
39014
39014
|
}
|
|
@@ -39353,7 +39353,7 @@ class $3 extends U() {
|
|
|
39353
39353
|
* @param domResizeHandle The handle used to calculate the reference point.
|
|
39354
39354
|
*/
|
|
39355
39355
|
begin(e, t, i) {
|
|
39356
|
-
const s = new
|
|
39356
|
+
const s = new M(t);
|
|
39357
39357
|
this.activeHandlePosition = W3(e), this._referenceCoordinates = H3(t, q3(this.activeHandlePosition)), this._originalWidth = s.width, this._originalHeight = s.height, this._aspectRatio = s.width / s.height;
|
|
39358
39358
|
const o = i.style.width;
|
|
39359
39359
|
o && o.match(/^\d+(\.\d*)?%$/) ? this._originalWidthPercents = parseFloat(o) : this._originalWidthPercents = z3(i, s);
|
|
@@ -39375,7 +39375,7 @@ function z3(n, e) {
|
|
|
39375
39375
|
return e.width / i * 100;
|
|
39376
39376
|
}
|
|
39377
39377
|
function H3(n, e) {
|
|
39378
|
-
const t = new
|
|
39378
|
+
const t = new M(n), i = e.split("-"), s = {
|
|
39379
39379
|
x: i[1] == "right" ? t.right : t.left,
|
|
39380
39380
|
y: i[0] == "bottom" ? t.bottom : t.top
|
|
39381
39381
|
};
|
|
@@ -39403,7 +39403,7 @@ function q3(n) {
|
|
|
39403
39403
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
39404
39404
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
39405
39405
|
*/
|
|
39406
|
-
class j3 extends
|
|
39406
|
+
class j3 extends S {
|
|
39407
39407
|
constructor() {
|
|
39408
39408
|
super();
|
|
39409
39409
|
const e = this.bindTemplate;
|
|
@@ -39528,7 +39528,7 @@ class Mu extends U() {
|
|
|
39528
39528
|
const u = this._options.unit || "%", d = (u === "%" ? t.widthPercents : t.width) + u;
|
|
39529
39529
|
c.setStyle("width", d, this._options.viewElement);
|
|
39530
39530
|
});
|
|
39531
|
-
const s = this._getHandleHost(), o = new
|
|
39531
|
+
const s = this._getHandleHost(), o = new M(s), r = Math.round(o.width), a = Math.round(o.height), l = new M(s);
|
|
39532
39532
|
t.width = Math.round(l.width), t.height = Math.round(l.height), this.redraw(o), this.state.update({
|
|
39533
39533
|
...t,
|
|
39534
39534
|
handleHostWidth: r,
|
|
@@ -39577,7 +39577,7 @@ class Mu extends U() {
|
|
|
39577
39577
|
];
|
|
39578
39578
|
let a;
|
|
39579
39579
|
if (i.isSameNode(s)) {
|
|
39580
|
-
const l = e || new
|
|
39580
|
+
const l = e || new M(s);
|
|
39581
39581
|
a = [
|
|
39582
39582
|
l.width + "px",
|
|
39583
39583
|
l.height + "px",
|
|
@@ -39714,11 +39714,11 @@ class Zo extends w {
|
|
|
39714
39714
|
* @inheritDoc
|
|
39715
39715
|
*/
|
|
39716
39716
|
init() {
|
|
39717
|
-
const e = this.editor.editing, t =
|
|
39717
|
+
const e = this.editor.editing, t = A.window.document;
|
|
39718
39718
|
this.set("selectedResizer", null), this.set("_activeResizer", null), e.view.addObserver(fo), this._observer = new (Ne())(), this.listenTo(e.view.document, "mousedown", this._mouseDownListener.bind(this), { priority: "high" }), this._observer.listenTo(t, "mousemove", this._mouseMoveListener.bind(this)), this._observer.listenTo(t, "mouseup", this._mouseUpListener.bind(this)), this._redrawSelectedResizerThrottled = Tn(() => this.redrawSelectedResizer(), 200), this.editor.ui.on("update", this._redrawSelectedResizerThrottled), this.editor.model.document.on("change", () => {
|
|
39719
39719
|
for (const [s, o] of this._resizers)
|
|
39720
39720
|
s.isAttached() || (this._resizers.delete(s), o.destroy());
|
|
39721
|
-
}, { priority: "lowest" }), this._observer.listenTo(
|
|
39721
|
+
}, { priority: "lowest" }), this._observer.listenTo(A.window, "resize", this._redrawSelectedResizerThrottled);
|
|
39722
39722
|
const i = this.editor.editing.view.document.selection;
|
|
39723
39723
|
i.on("change", () => {
|
|
39724
39724
|
const s = i.getSelectedElement(), o = this.getResizerByViewElement(s) || null;
|
|
@@ -39810,7 +39810,7 @@ class Zo extends w {
|
|
|
39810
39810
|
*/
|
|
39811
39811
|
/* istanbul ignore file -- @preserve */
|
|
39812
39812
|
const Jo = Gi("px");
|
|
39813
|
-
class J3 extends
|
|
39813
|
+
class J3 extends S {
|
|
39814
39814
|
/**
|
|
39815
39815
|
* @inheritDoc
|
|
39816
39816
|
*/
|
|
@@ -39955,14 +39955,14 @@ class _s extends w {
|
|
|
39955
39955
|
const t = this.editor.editing, i = e.start.nodeBefore, s = e.start.nodeAfter, o = e.start.parent, r = i ? t.mapper.toViewElement(i) : null, a = r ? t.view.domConverter.mapViewToDom(r) : null, l = s ? t.mapper.toViewElement(s) : null, c = l ? t.view.domConverter.mapViewToDom(l) : null, u = t.mapper.toViewElement(o);
|
|
39956
39956
|
if (!u)
|
|
39957
39957
|
return;
|
|
39958
|
-
const d = t.view.domConverter.mapViewToDom(u), h = this._getScrollableRect(u), { scrollX: f, scrollY: m } =
|
|
39958
|
+
const d = t.view.domConverter.mapViewToDom(u), h = this._getScrollableRect(u), { scrollX: f, scrollY: m } = A.window, p = a ? new M(a) : null, _ = c ? new M(c) : null, y = new M(d).excludeScrollbarsAndBorders(), T = p ? p.bottom : y.top, C = _ ? _.top : y.bottom, L = A.window.getComputedStyle(d), D = T <= C ? (T + C) / 2 : C;
|
|
39959
39959
|
if (h.top < D && D < h.bottom) {
|
|
39960
|
-
const
|
|
39960
|
+
const E = y.left + parseFloat(L.paddingLeft), R = y.right - parseFloat(L.paddingRight), I = Math.max(E + f, h.left), X = Math.min(R + f, h.right);
|
|
39961
39961
|
this._dropTargetLineView.set({
|
|
39962
39962
|
isVisible: !0,
|
|
39963
|
-
left:
|
|
39963
|
+
left: I,
|
|
39964
39964
|
top: D + m,
|
|
39965
|
-
width: X -
|
|
39965
|
+
width: X - I
|
|
39966
39966
|
});
|
|
39967
39967
|
} else
|
|
39968
39968
|
this._dropTargetLineView.isVisible = !1;
|
|
@@ -39984,7 +39984,7 @@ class _s extends w {
|
|
|
39984
39984
|
resizeObserver: o
|
|
39985
39985
|
});
|
|
39986
39986
|
}
|
|
39987
|
-
return new
|
|
39987
|
+
return new M(i).excludeScrollbarsAndBorders();
|
|
39988
39988
|
}
|
|
39989
39989
|
}
|
|
39990
39990
|
function Fu(n, e, t, i, s, o, r) {
|
|
@@ -40027,14 +40027,14 @@ function Y3(n, e) {
|
|
|
40027
40027
|
if (!s)
|
|
40028
40028
|
return !0;
|
|
40029
40029
|
const o = i.mapViewToDom(s);
|
|
40030
|
-
return
|
|
40030
|
+
return A.window.getComputedStyle(o).float != "none";
|
|
40031
40031
|
}
|
|
40032
40032
|
function vs(n, e, t, i) {
|
|
40033
40033
|
const s = n.model;
|
|
40034
40034
|
return s.createRange(s.createPositionAt(e, Cg(n, e, t, i)));
|
|
40035
40035
|
}
|
|
40036
40036
|
function Cg(n, e, t, i) {
|
|
40037
|
-
const s = n.editing.mapper, o = n.editing.view.domConverter, r = s.toViewElement(e), a = o.mapViewToDom(r), l = new
|
|
40037
|
+
const s = n.editing.mapper, o = n.editing.view.domConverter, r = s.toViewElement(e), a = o.mapViewToDom(r), l = new M(a);
|
|
40038
40038
|
return n.model.schema.isInline(e) ? t < (l.left + l.right) / 2 ? "before" : "after" : i < (l.top + l.bottom) / 2 ? "before" : "after";
|
|
40039
40039
|
}
|
|
40040
40040
|
function Du(n, e) {
|
|
@@ -40048,7 +40048,7 @@ function Q3(n) {
|
|
|
40048
40048
|
let e = n;
|
|
40049
40049
|
do {
|
|
40050
40050
|
e = e.parentElement;
|
|
40051
|
-
const t =
|
|
40051
|
+
const t = A.window.getComputedStyle(e).overflowY;
|
|
40052
40052
|
if (t == "auto" || t == "scroll")
|
|
40053
40053
|
break;
|
|
40054
40054
|
} while (e.tagName != "BODY");
|
|
@@ -40075,9 +40075,9 @@ class X3 extends w {
|
|
|
40075
40075
|
const e = this.editor;
|
|
40076
40076
|
if (this.listenTo(e, "change:isReadOnly", (t, i, s) => {
|
|
40077
40077
|
s ? (this.forceDisabled("readOnlyMode"), this._isBlockDragging = !1) : this.clearForceDisabled("readOnlyMode");
|
|
40078
|
-
}),
|
|
40078
|
+
}), B.isAndroid && this.forceDisabled("noAndroidSupport"), e.plugins.has("BlockToolbar")) {
|
|
40079
40079
|
const i = e.plugins.get("BlockToolbar").buttonView.element;
|
|
40080
|
-
this._domEmitter.listenTo(i, "dragstart", (s, o) => this._handleBlockDragStart(o)), this._domEmitter.listenTo(
|
|
40080
|
+
this._domEmitter.listenTo(i, "dragstart", (s, o) => this._handleBlockDragStart(o)), this._domEmitter.listenTo(A.document, "dragover", (s, o) => this._handleBlockDragging(o)), this._domEmitter.listenTo(A.document, "drop", (s, o) => this._handleBlockDragging(o)), this._domEmitter.listenTo(A.document, "dragend", () => this._handleBlockDragEnd(), { useCapture: !0 }), this.isEnabled && i.setAttribute("draggable", "true"), this.on("change:isEnabled", (s, o, r) => {
|
|
40081
40081
|
i.setAttribute("draggable", r ? "true" : "false");
|
|
40082
40082
|
});
|
|
40083
40083
|
}
|
|
@@ -40151,7 +40151,7 @@ class eI extends w {
|
|
|
40151
40151
|
o ? this.forceDisabled("readOnlyMode") : this.clearForceDisabled("readOnlyMode");
|
|
40152
40152
|
}), this.on("change:isEnabled", (i, s, o) => {
|
|
40153
40153
|
o || this._finalizeDragging(!1);
|
|
40154
|
-
}),
|
|
40154
|
+
}), B.isAndroid && this.forceDisabled("noAndroidSupport");
|
|
40155
40155
|
}
|
|
40156
40156
|
/**
|
|
40157
40157
|
* @inheritDoc
|
|
@@ -40180,7 +40180,7 @@ class eI extends w {
|
|
|
40180
40180
|
this._updatePreview({ dataTransfer: u, domTarget: d, clientX: f }), a.stopPropagation(), this.isEnabled || (this._draggedRange.detach(), this._draggedRange = null, this._draggingUid = "");
|
|
40181
40181
|
}, { priority: "low" }), this.listenTo(s, "dragend", (r, a) => {
|
|
40182
40182
|
this._finalizeDragging(!a.dataTransfer.isCanceled && a.dataTransfer.dropEffect == "move");
|
|
40183
|
-
}, { priority: "low" }), this._domEmitter.listenTo(
|
|
40183
|
+
}, { priority: "low" }), this._domEmitter.listenTo(A.document, "dragend", () => {
|
|
40184
40184
|
this._blockMode = !1;
|
|
40185
40185
|
}, { useCapture: !0 }), this.listenTo(s, "dragenter", () => {
|
|
40186
40186
|
this.isEnabled && i.focus();
|
|
@@ -40192,7 +40192,7 @@ class eI extends w {
|
|
|
40192
40192
|
return;
|
|
40193
40193
|
}
|
|
40194
40194
|
const { clientX: l, clientY: c } = a.domEvent;
|
|
40195
|
-
o.updateDropMarker(a.target, a.targetRanges, l, c, this._blockMode, this._draggedRange), this._draggedRange || (a.dataTransfer.dropEffect = "copy"),
|
|
40195
|
+
o.updateDropMarker(a.target, a.targetRanges, l, c, this._blockMode, this._draggedRange), this._draggedRange || (a.dataTransfer.dropEffect = "copy"), B.isGecko || (a.dataTransfer.effectAllowed == "copy" ? a.dataTransfer.dropEffect = "copy" : ["all", "copyMove"].includes(a.dataTransfer.effectAllowed) && (a.dataTransfer.dropEffect = "move")), r.stop();
|
|
40196
40196
|
}, { priority: "low" });
|
|
40197
40197
|
}
|
|
40198
40198
|
/**
|
|
@@ -40238,11 +40238,11 @@ class eI extends w {
|
|
|
40238
40238
|
_setupDraggableAttributeHandling() {
|
|
40239
40239
|
const e = this.editor, t = e.editing.view, i = t.document;
|
|
40240
40240
|
this.listenTo(i, "mousedown", (s, o) => {
|
|
40241
|
-
if (
|
|
40241
|
+
if (B.isAndroid || !o)
|
|
40242
40242
|
return;
|
|
40243
40243
|
this._clearDraggableAttributesDelayed.cancel();
|
|
40244
40244
|
let r = $u(o.target);
|
|
40245
|
-
if (
|
|
40245
|
+
if (B.isBlink && !e.isReadOnly && !r && !i.selection.isCollapsed) {
|
|
40246
40246
|
const a = i.selection.getSelectedElement();
|
|
40247
40247
|
(!a || !he(a)) && (r = i.selection.editableElement);
|
|
40248
40248
|
}
|
|
@@ -40250,7 +40250,7 @@ class eI extends w {
|
|
|
40250
40250
|
a.setAttribute("draggable", "true", r);
|
|
40251
40251
|
}), this._draggableElement = e.editing.mapper.toModelElement(r));
|
|
40252
40252
|
}), this.listenTo(i, "mouseup", () => {
|
|
40253
|
-
|
|
40253
|
+
B.isAndroid || this._clearDraggableAttributesDelayed();
|
|
40254
40254
|
});
|
|
40255
40255
|
}
|
|
40256
40256
|
/**
|
|
@@ -40306,19 +40306,19 @@ class eI extends w {
|
|
|
40306
40306
|
* Updates the dragged preview image.
|
|
40307
40307
|
*/
|
|
40308
40308
|
_updatePreview({ dataTransfer: e, domTarget: t, clientX: i }) {
|
|
40309
|
-
const s = this.editor.editing.view, o = s.document.selection.editableElement, r = s.domConverter.mapViewToDom(o), a =
|
|
40310
|
-
this._previewContainer ? this._previewContainer.firstElementChild && this._previewContainer.removeChild(this._previewContainer.firstElementChild) : (this._previewContainer = An(
|
|
40309
|
+
const s = this.editor.editing.view, o = s.document.selection.editableElement, r = s.domConverter.mapViewToDom(o), a = A.window.getComputedStyle(r);
|
|
40310
|
+
this._previewContainer ? this._previewContainer.firstElementChild && this._previewContainer.removeChild(this._previewContainer.firstElementChild) : (this._previewContainer = An(A.document, "div", {
|
|
40311
40311
|
style: "position: fixed; left: -999999px;"
|
|
40312
|
-
}),
|
|
40313
|
-
const l = new
|
|
40312
|
+
}), A.document.body.appendChild(this._previewContainer));
|
|
40313
|
+
const l = new M(r);
|
|
40314
40314
|
if (r.contains(t))
|
|
40315
40315
|
return;
|
|
40316
|
-
const c = parseFloat(a.paddingLeft), u = An(
|
|
40317
|
-
u.className = "ck ck-content", u.style.width = a.width, u.style.paddingLeft = `${l.left - i + c}px`,
|
|
40316
|
+
const c = parseFloat(a.paddingLeft), u = An(A.document, "div");
|
|
40317
|
+
u.className = "ck ck-content", u.style.width = a.width, u.style.paddingLeft = `${l.left - i + c}px`, B.isiOS && (u.style.backgroundColor = "white"), u.innerHTML = e.getData("text/html"), e.setDragImage(u, 0, 0), this._previewContainer.appendChild(u);
|
|
40318
40318
|
}
|
|
40319
40319
|
}
|
|
40320
40320
|
function Nu(n) {
|
|
40321
|
-
return
|
|
40321
|
+
return B.isGecko ? n.dropEffect : ["all", "copyMove"].includes(n.effectAllowed) ? "move" : "copy";
|
|
40322
40322
|
}
|
|
40323
40323
|
function $u(n) {
|
|
40324
40324
|
if (n.is("editableElement"))
|
|
@@ -40403,7 +40403,7 @@ class Eg extends w {
|
|
|
40403
40403
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
40404
40404
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
40405
40405
|
*/
|
|
40406
|
-
class nI extends
|
|
40406
|
+
class nI extends V {
|
|
40407
40407
|
/**
|
|
40408
40408
|
* @inheritDoc
|
|
40409
40409
|
*/
|
|
@@ -40469,7 +40469,7 @@ class aI extends w {
|
|
|
40469
40469
|
init() {
|
|
40470
40470
|
const e = this.editor;
|
|
40471
40471
|
e.ui.componentFactory.add("selectAll", (t) => {
|
|
40472
|
-
const i = e.commands.get("selectAll"), s = new
|
|
40472
|
+
const i = e.commands.get("selectAll"), s = new O(t), o = t.t;
|
|
40473
40473
|
return s.set({
|
|
40474
40474
|
label: o("Select all"),
|
|
40475
40475
|
icon: rI,
|
|
@@ -40503,7 +40503,7 @@ class lI extends w {
|
|
|
40503
40503
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
40504
40504
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
40505
40505
|
*/
|
|
40506
|
-
class Tg extends
|
|
40506
|
+
class Tg extends V {
|
|
40507
40507
|
/**
|
|
40508
40508
|
* @inheritDoc
|
|
40509
40509
|
*/
|
|
@@ -40689,7 +40689,7 @@ class mI extends w {
|
|
|
40689
40689
|
* @inheritDoc
|
|
40690
40690
|
*/
|
|
40691
40691
|
init() {
|
|
40692
|
-
const e = this.editor, t = e.locale, i = e.t, s = t.uiLanguageDirection == "ltr" ?
|
|
40692
|
+
const e = this.editor, t = e.locale, i = e.t, s = t.uiLanguageDirection == "ltr" ? P.undo : P.redo, o = t.uiLanguageDirection == "ltr" ? P.redo : P.undo;
|
|
40693
40693
|
this._addButton("undo", i("Undo"), "CTRL+Z", s), this._addButton("redo", i("Redo"), "CTRL+Y", o);
|
|
40694
40694
|
}
|
|
40695
40695
|
/**
|
|
@@ -40703,7 +40703,7 @@ class mI extends w {
|
|
|
40703
40703
|
_addButton(e, t, i, s) {
|
|
40704
40704
|
const o = this.editor;
|
|
40705
40705
|
o.ui.componentFactory.add(e, (r) => {
|
|
40706
|
-
const a = o.commands.get(e), l = new
|
|
40706
|
+
const a = o.commands.get(e), l = new O(r);
|
|
40707
40707
|
return l.set({
|
|
40708
40708
|
label: t,
|
|
40709
40709
|
icon: s,
|
|
@@ -40755,7 +40755,7 @@ class gI extends w {
|
|
|
40755
40755
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
40756
40756
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
40757
40757
|
*/
|
|
40758
|
-
class pI extends
|
|
40758
|
+
class pI extends V {
|
|
40759
40759
|
constructor(e) {
|
|
40760
40760
|
super(e), this._isEnabledBasedOnSelection = !1;
|
|
40761
40761
|
}
|
|
@@ -40791,7 +40791,7 @@ function Hu(n, e) {
|
|
|
40791
40791
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
40792
40792
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
40793
40793
|
*/
|
|
40794
|
-
class wI extends
|
|
40794
|
+
class wI extends V {
|
|
40795
40795
|
constructor(e) {
|
|
40796
40796
|
super(e), this._isEnabledBasedOnSelection = !1;
|
|
40797
40797
|
}
|
|
@@ -40870,7 +40870,7 @@ is.paragraphLikeElements = /* @__PURE__ */ new Set([
|
|
|
40870
40870
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
40871
40871
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
40872
40872
|
*/
|
|
40873
|
-
class bI extends
|
|
40873
|
+
class bI extends V {
|
|
40874
40874
|
/**
|
|
40875
40875
|
* Creates an instance of the command.
|
|
40876
40876
|
*
|
|
@@ -41192,7 +41192,7 @@ class Te extends w {
|
|
|
41192
41192
|
setImageNaturalSizeAttributes(e) {
|
|
41193
41193
|
const t = e.getAttribute("src");
|
|
41194
41194
|
t && (e.getAttribute("width") || e.getAttribute("height") || this.editor.model.change((i) => {
|
|
41195
|
-
const s = new
|
|
41195
|
+
const s = new A.window.Image();
|
|
41196
41196
|
this._domEmitter.listenTo(s, "load", () => {
|
|
41197
41197
|
!e.getAttribute("width") && !e.getAttribute("height") && this.editor.model.enqueueChange(i.batch, (o) => {
|
|
41198
41198
|
o.setAttribute("width", s.naturalWidth, e), o.setAttribute("height", s.naturalHeight, e);
|
|
@@ -41317,7 +41317,7 @@ function xg(n, e, t) {
|
|
|
41317
41317
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
41318
41318
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
41319
41319
|
*/
|
|
41320
|
-
class xI extends
|
|
41320
|
+
class xI extends V {
|
|
41321
41321
|
/**
|
|
41322
41322
|
* @inheritDoc
|
|
41323
41323
|
*/
|
|
@@ -41367,14 +41367,14 @@ class II extends w {
|
|
|
41367
41367
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
41368
41368
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
41369
41369
|
*/
|
|
41370
|
-
class PI extends
|
|
41370
|
+
class PI extends S {
|
|
41371
41371
|
/**
|
|
41372
41372
|
* @inheritDoc
|
|
41373
41373
|
*/
|
|
41374
41374
|
constructor(e) {
|
|
41375
41375
|
super(e);
|
|
41376
41376
|
const t = this.locale.t;
|
|
41377
|
-
this.focusTracker = new ne(), this.keystrokes = new ae(), this.labeledInput = this._createLabeledInputView(), this.saveButtonView = this._createButton(t("Save"),
|
|
41377
|
+
this.focusTracker = new ne(), this.keystrokes = new ae(), this.labeledInput = this._createLabeledInputView(), this.saveButtonView = this._createButton(t("Save"), P.check, "ck-button-save"), this.saveButtonView.type = "submit", this.cancelButtonView = this._createButton(t("Cancel"), P.cancel, "ck-button-cancel", "cancel"), this._focusables = new Ae(), this._focusCycler = new ke({
|
|
41378
41378
|
focusables: this._focusables,
|
|
41379
41379
|
focusTracker: this.focusTracker,
|
|
41380
41380
|
keystrokeHandler: this.keystrokes,
|
|
@@ -41426,7 +41426,7 @@ class PI extends T {
|
|
|
41426
41426
|
* @returns The button view instance.
|
|
41427
41427
|
*/
|
|
41428
41428
|
_createButton(e, t, i, s) {
|
|
41429
|
-
const o = new
|
|
41429
|
+
const o = new O(this.locale);
|
|
41430
41430
|
return o.set({
|
|
41431
41431
|
label: e,
|
|
41432
41432
|
icon: t,
|
|
@@ -41509,10 +41509,10 @@ class VI extends w {
|
|
|
41509
41509
|
_createButton() {
|
|
41510
41510
|
const e = this.editor, t = e.t;
|
|
41511
41511
|
e.ui.componentFactory.add("imageTextAlternative", (i) => {
|
|
41512
|
-
const s = e.commands.get("imageTextAlternative"), o = new
|
|
41512
|
+
const s = e.commands.get("imageTextAlternative"), o = new O(i);
|
|
41513
41513
|
return o.set({
|
|
41514
41514
|
label: t("Change image text alternative"),
|
|
41515
|
-
icon:
|
|
41515
|
+
icon: P.textAlternative,
|
|
41516
41516
|
tooltip: !0
|
|
41517
41517
|
}), o.bind("isEnabled").to(s, "isEnabled"), o.bind("isOn").to(s, "value", (r) => !!r), this.listenTo(o, "execute", () => {
|
|
41518
41518
|
this._showForm();
|
|
@@ -41674,7 +41674,7 @@ class Xa extends lt {
|
|
|
41674
41674
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
41675
41675
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
41676
41676
|
*/
|
|
41677
|
-
class BI extends
|
|
41677
|
+
class BI extends V {
|
|
41678
41678
|
/**
|
|
41679
41679
|
* @inheritDoc
|
|
41680
41680
|
*/
|
|
@@ -41714,7 +41714,7 @@ class BI extends R {
|
|
|
41714
41714
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
41715
41715
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
41716
41716
|
*/
|
|
41717
|
-
class OI extends
|
|
41717
|
+
class OI extends V {
|
|
41718
41718
|
constructor(e) {
|
|
41719
41719
|
super(e), this.decorate("cleanupImage");
|
|
41720
41720
|
}
|
|
@@ -41878,8 +41878,8 @@ class Lg extends w {
|
|
|
41878
41878
|
const _ = d.item.hasAttribute("resizedWidth");
|
|
41879
41879
|
if (e === "imageInline" && !_ && !c)
|
|
41880
41880
|
return;
|
|
41881
|
-
const
|
|
41882
|
-
|
|
41881
|
+
const y = d.item.getAttribute("width"), T = d.item.getAttribute("height");
|
|
41882
|
+
y && T && f.setStyle("aspect-ratio", `${y}/${T}`, p);
|
|
41883
41883
|
});
|
|
41884
41884
|
}
|
|
41885
41885
|
}
|
|
@@ -41888,7 +41888,7 @@ class Lg extends w {
|
|
|
41888
41888
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
41889
41889
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
41890
41890
|
*/
|
|
41891
|
-
class Bg extends
|
|
41891
|
+
class Bg extends V {
|
|
41892
41892
|
/**
|
|
41893
41893
|
* @inheritDoc
|
|
41894
41894
|
*
|
|
@@ -42086,7 +42086,7 @@ class Mg extends w {
|
|
|
42086
42086
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
42087
42087
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
42088
42088
|
*/
|
|
42089
|
-
class MI extends
|
|
42089
|
+
class MI extends S {
|
|
42090
42090
|
/**
|
|
42091
42091
|
* Creates a view for the dropdown panel of {@link module:image/imageinsert/imageinsertui~ImageInsertUI}.
|
|
42092
42092
|
*
|
|
@@ -42432,7 +42432,7 @@ class Dg extends w {
|
|
|
42432
42432
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
42433
42433
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
42434
42434
|
*/
|
|
42435
|
-
class HI extends
|
|
42435
|
+
class HI extends V {
|
|
42436
42436
|
/**
|
|
42437
42437
|
* @inheritDoc
|
|
42438
42438
|
*/
|
|
@@ -42663,9 +42663,9 @@ class WI extends w {
|
|
|
42663
42663
|
init() {
|
|
42664
42664
|
const e = this.editor, t = e.editing.view, i = e.plugins.get("ImageCaptionUtils"), s = e.t;
|
|
42665
42665
|
e.ui.componentFactory.add("toggleImageCaption", (o) => {
|
|
42666
|
-
const r = e.commands.get("toggleImageCaption"), a = new
|
|
42666
|
+
const r = e.commands.get("toggleImageCaption"), a = new O(o);
|
|
42667
42667
|
return a.set({
|
|
42668
|
-
icon:
|
|
42668
|
+
icon: P.caption,
|
|
42669
42669
|
tooltip: !0,
|
|
42670
42670
|
isToggleable: !0
|
|
42671
42671
|
}), a.bind("isOn", "isEnabled").to(r, "value", "isEnabled"), a.bind("label").to(r, "value", (l) => s(l ? "Toggle caption off" : "Toggle caption on")), this.listenTo(a, "execute", () => {
|
|
@@ -42965,7 +42965,7 @@ class ju extends U() {
|
|
|
42965
42965
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
42966
42966
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
42967
42967
|
*/
|
|
42968
|
-
class GI extends
|
|
42968
|
+
class GI extends O {
|
|
42969
42969
|
/**
|
|
42970
42970
|
* @inheritDoc
|
|
42971
42971
|
*/
|
|
@@ -42985,7 +42985,7 @@ class GI extends B {
|
|
|
42985
42985
|
super.render(), this.children.add(this._fileInputView);
|
|
42986
42986
|
}
|
|
42987
42987
|
}
|
|
42988
|
-
class KI extends
|
|
42988
|
+
class KI extends S {
|
|
42989
42989
|
/**
|
|
42990
42990
|
* @inheritDoc
|
|
42991
42991
|
*/
|
|
@@ -43052,9 +43052,9 @@ function YI(n) {
|
|
|
43052
43052
|
}
|
|
43053
43053
|
function QI(n) {
|
|
43054
43054
|
return new Promise((e, t) => {
|
|
43055
|
-
const i =
|
|
43055
|
+
const i = A.document.createElement("img");
|
|
43056
43056
|
i.addEventListener("load", () => {
|
|
43057
|
-
const s =
|
|
43057
|
+
const s = A.document.createElement("canvas");
|
|
43058
43058
|
s.width = i.width, s.height = i.height, s.getContext("2d").drawImage(i, 0, 0), s.toBlob((r) => r ? e(r) : t());
|
|
43059
43059
|
}), i.addEventListener("error", () => t()), i.src = n;
|
|
43060
43060
|
});
|
|
@@ -43080,7 +43080,7 @@ class XI extends w {
|
|
|
43080
43080
|
acceptedType: a.map((c) => `image/${c}`).join(","),
|
|
43081
43081
|
allowMultipleFiles: !0,
|
|
43082
43082
|
label: t("Upload image from computer"),
|
|
43083
|
-
icon:
|
|
43083
|
+
icon: P.imageUpload,
|
|
43084
43084
|
tooltip: !0
|
|
43085
43085
|
}), o.bind("isEnabled").to(r), o.on("done", (c, u) => {
|
|
43086
43086
|
const d = Array.from(u).filter((h) => l.test(h.type));
|
|
@@ -43204,7 +43204,7 @@ function aP(n, e, t, i) {
|
|
|
43204
43204
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
43205
43205
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
43206
43206
|
*/
|
|
43207
|
-
class lP extends
|
|
43207
|
+
class lP extends V {
|
|
43208
43208
|
/**
|
|
43209
43209
|
* @inheritDoc
|
|
43210
43210
|
*/
|
|
@@ -43337,7 +43337,7 @@ class cP extends w {
|
|
|
43337
43337
|
}), e.read().then(() => {
|
|
43338
43338
|
const u = e.upload(), d = l.get(e.id);
|
|
43339
43339
|
/* istanbul ignore next -- @preserve */
|
|
43340
|
-
if (
|
|
43340
|
+
if (B.isSafari) {
|
|
43341
43341
|
const h = t.editing.mapper.toViewElement(d), f = a.findViewImgElement(h);
|
|
43342
43342
|
t.editing.view.once("render", () => {
|
|
43343
43343
|
if (!f.parent)
|
|
@@ -43424,7 +43424,7 @@ class hP extends w {
|
|
|
43424
43424
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
43425
43425
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
43426
43426
|
*/
|
|
43427
|
-
class fP extends
|
|
43427
|
+
class fP extends V {
|
|
43428
43428
|
/**
|
|
43429
43429
|
* @inheritDoc
|
|
43430
43430
|
*/
|
|
@@ -43575,10 +43575,10 @@ class Ug extends w {
|
|
|
43575
43575
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
43576
43576
|
*/
|
|
43577
43577
|
const Yo = {
|
|
43578
|
-
small:
|
|
43579
|
-
medium:
|
|
43580
|
-
large:
|
|
43581
|
-
original:
|
|
43578
|
+
small: P.objectSizeSmall,
|
|
43579
|
+
medium: P.objectSizeMedium,
|
|
43580
|
+
large: P.objectSizeLarge,
|
|
43581
|
+
original: P.objectSizeFull
|
|
43582
43582
|
};
|
|
43583
43583
|
class mP extends w {
|
|
43584
43584
|
/**
|
|
@@ -43617,7 +43617,7 @@ class mP extends w {
|
|
|
43617
43617
|
_registerImageResizeButton(e) {
|
|
43618
43618
|
const t = this.editor, { name: i, value: s, icon: o } = e, r = s ? s + this._resizeUnit : null;
|
|
43619
43619
|
t.ui.componentFactory.add(i, (a) => {
|
|
43620
|
-
const l = new
|
|
43620
|
+
const l = new O(a), c = t.commands.get("resizeImage"), u = this._getOptionLabelValue(e, !0);
|
|
43621
43621
|
if (!Yo[o])
|
|
43622
43622
|
throw new g("imageresizebuttons-missing-icon", t, e);
|
|
43623
43623
|
return l.set({
|
|
@@ -43797,7 +43797,7 @@ class wP extends w {
|
|
|
43797
43797
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
43798
43798
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
43799
43799
|
*/
|
|
43800
|
-
class bP extends
|
|
43800
|
+
class bP extends V {
|
|
43801
43801
|
/**
|
|
43802
43802
|
* Creates an instance of the image style command. When executed, the command applies one of
|
|
43803
43803
|
* {@link module:image/imageconfig~ImageStyleConfig#options style options} to the currently selected image.
|
|
@@ -43861,7 +43861,7 @@ class bP extends R {
|
|
|
43861
43861
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
43862
43862
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
43863
43863
|
*/
|
|
43864
|
-
const { objectFullWidth: _P, objectInline: Wg, objectLeft: qg, objectRight: jr, objectCenter: Gr, objectBlockLeft: jg, objectBlockRight: Gg } =
|
|
43864
|
+
const { objectFullWidth: _P, objectInline: Wg, objectLeft: qg, objectRight: jr, objectCenter: Gr, objectBlockLeft: jg, objectBlockRight: Gg } = P, Ps = {
|
|
43865
43865
|
// This style represents an image placed in the line of text.
|
|
43866
43866
|
get inline() {
|
|
43867
43867
|
return {
|
|
@@ -44207,7 +44207,7 @@ class xP extends w {
|
|
|
44207
44207
|
_createButton(e) {
|
|
44208
44208
|
const t = e.name;
|
|
44209
44209
|
this.editor.ui.componentFactory.add(Xu(t), (i) => {
|
|
44210
|
-
const s = this.editor.commands.get("imageStyle"), o = new
|
|
44210
|
+
const s = this.editor.commands.get("imageStyle"), o = new O(i);
|
|
44211
44211
|
return o.set({
|
|
44212
44212
|
label: e.title,
|
|
44213
44213
|
icon: e.icon,
|
|
@@ -44315,7 +44315,7 @@ class LP extends w {
|
|
|
44315
44315
|
* @inheritDoc
|
|
44316
44316
|
*/
|
|
44317
44317
|
init() {
|
|
44318
|
-
const e = this.editor, t = e.locale, i = e.t, s = t.uiLanguageDirection == "ltr" ?
|
|
44318
|
+
const e = this.editor, t = e.locale, i = e.t, s = t.uiLanguageDirection == "ltr" ? P.indent : P.outdent, o = t.uiLanguageDirection == "ltr" ? P.outdent : P.indent;
|
|
44319
44319
|
this._defineButton("indent", i("Increase indent"), s), this._defineButton("outdent", i("Decrease indent"), o);
|
|
44320
44320
|
}
|
|
44321
44321
|
/**
|
|
@@ -44324,7 +44324,7 @@ class LP extends w {
|
|
|
44324
44324
|
_defineButton(e, t, i) {
|
|
44325
44325
|
const s = this.editor;
|
|
44326
44326
|
s.ui.componentFactory.add(e, (o) => {
|
|
44327
|
-
const r = s.commands.get(e), a = new
|
|
44327
|
+
const r = s.commands.get(e), a = new O(o);
|
|
44328
44328
|
return a.set({
|
|
44329
44329
|
label: t,
|
|
44330
44330
|
icon: i,
|
|
@@ -44357,7 +44357,7 @@ class BP extends w {
|
|
|
44357
44357
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
44358
44358
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
44359
44359
|
*/
|
|
44360
|
-
class ys extends
|
|
44360
|
+
class ys extends V {
|
|
44361
44361
|
/**
|
|
44362
44362
|
* Creates an instance of the command.
|
|
44363
44363
|
*/
|
|
@@ -44696,7 +44696,7 @@ function sd(n) {
|
|
|
44696
44696
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
44697
44697
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
44698
44698
|
*/
|
|
44699
|
-
class GP extends
|
|
44699
|
+
class GP extends V {
|
|
44700
44700
|
constructor() {
|
|
44701
44701
|
super(...arguments), this.manualDecorators = new _e(), this.automaticDecorators = new FP();
|
|
44702
44702
|
}
|
|
@@ -44880,7 +44880,7 @@ function od(n) {
|
|
|
44880
44880
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
44881
44881
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
44882
44882
|
*/
|
|
44883
|
-
class KP extends
|
|
44883
|
+
class KP extends V {
|
|
44884
44884
|
/**
|
|
44885
44885
|
* @inheritDoc
|
|
44886
44886
|
*/
|
|
@@ -45056,7 +45056,7 @@ class ep extends w {
|
|
|
45056
45056
|
_enableLinkOpen() {
|
|
45057
45057
|
const e = this.editor, i = e.editing.view.document;
|
|
45058
45058
|
this.listenTo(i, "click", (s, o) => {
|
|
45059
|
-
if (!(
|
|
45059
|
+
if (!(B.isMac ? o.domEvent.metaKey : o.domEvent.ctrlKey))
|
|
45060
45060
|
return;
|
|
45061
45061
|
let a = o.domTarget;
|
|
45062
45062
|
if (a.tagName.toLowerCase() != "a" && (a = a.closest("a")), !a)
|
|
@@ -45110,7 +45110,7 @@ function e4(n) {
|
|
|
45110
45110
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
45111
45111
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
45112
45112
|
*/
|
|
45113
|
-
class t4 extends
|
|
45113
|
+
class t4 extends S {
|
|
45114
45114
|
/**
|
|
45115
45115
|
* Creates an instance of the {@link module:link/ui/linkformview~LinkFormView} class.
|
|
45116
45116
|
*
|
|
@@ -45122,7 +45122,7 @@ class t4 extends T {
|
|
|
45122
45122
|
constructor(e, t) {
|
|
45123
45123
|
super(e), this.focusTracker = new ne(), this.keystrokes = new ae(), this._focusables = new Ae();
|
|
45124
45124
|
const i = e.t;
|
|
45125
|
-
this.urlInputView = this._createUrlInput(), this.saveButtonView = this._createButton(i("Save"),
|
|
45125
|
+
this.urlInputView = this._createUrlInput(), this.saveButtonView = this._createButton(i("Save"), P.check, "ck-button-save"), this.saveButtonView.type = "submit", this.cancelButtonView = this._createButton(i("Cancel"), P.cancel, "ck-button-cancel", "cancel"), this._manualDecoratorSwitches = this._createManualDecoratorSwitches(t), this.children = this._createFormChildren(t.manualDecorators), this._focusCycler = new ke({
|
|
45126
45126
|
focusables: this._focusables,
|
|
45127
45127
|
focusTracker: this.focusTracker,
|
|
45128
45128
|
keystrokeHandler: this.keystrokes,
|
|
@@ -45200,7 +45200,7 @@ class t4 extends T {
|
|
|
45200
45200
|
* @returns The button view instance.
|
|
45201
45201
|
*/
|
|
45202
45202
|
_createButton(e, t, i, s) {
|
|
45203
|
-
const o = new
|
|
45203
|
+
const o = new O(this.locale);
|
|
45204
45204
|
return o.set({
|
|
45205
45205
|
label: e,
|
|
45206
45206
|
icon: t,
|
|
@@ -45246,7 +45246,7 @@ class t4 extends T {
|
|
|
45246
45246
|
_createFormChildren(e) {
|
|
45247
45247
|
const t = this.createCollection();
|
|
45248
45248
|
if (t.add(this.urlInputView), e.length) {
|
|
45249
|
-
const i = new
|
|
45249
|
+
const i = new S();
|
|
45250
45250
|
i.setTemplate({
|
|
45251
45251
|
tag: "ul",
|
|
45252
45252
|
children: this._manualDecoratorSwitches.map((s) => ({
|
|
@@ -45276,14 +45276,14 @@ const i4 = '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d=
|
|
|
45276
45276
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
45277
45277
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
45278
45278
|
*/
|
|
45279
|
-
class n4 extends
|
|
45279
|
+
class n4 extends S {
|
|
45280
45280
|
/**
|
|
45281
45281
|
* @inheritDoc
|
|
45282
45282
|
*/
|
|
45283
45283
|
constructor(e) {
|
|
45284
45284
|
super(e), this.focusTracker = new ne(), this.keystrokes = new ae(), this._focusables = new Ae();
|
|
45285
45285
|
const t = e.t;
|
|
45286
|
-
this.previewButtonView = this._createPreviewButton(), this.unlinkButtonView = this._createButton(t("Unlink"), i4, "unlink"), this.editButtonView = this._createButton(t("Edit link"),
|
|
45286
|
+
this.previewButtonView = this._createPreviewButton(), this.unlinkButtonView = this._createButton(t("Unlink"), i4, "unlink"), this.editButtonView = this._createButton(t("Edit link"), P.pencil, "edit"), this.set("href", void 0), this._focusCycler = new ke({
|
|
45287
45287
|
focusables: this._focusables,
|
|
45288
45288
|
focusTracker: this.focusTracker,
|
|
45289
45289
|
keystrokeHandler: this.keystrokes,
|
|
@@ -45344,7 +45344,7 @@ class n4 extends T {
|
|
|
45344
45344
|
* @returns The button view instance.
|
|
45345
45345
|
*/
|
|
45346
45346
|
_createButton(e, t, i) {
|
|
45347
|
-
const s = new
|
|
45347
|
+
const s = new O(this.locale);
|
|
45348
45348
|
return s.set({
|
|
45349
45349
|
label: e,
|
|
45350
45350
|
icon: t,
|
|
@@ -45357,7 +45357,7 @@ class n4 extends T {
|
|
|
45357
45357
|
* @returns The button view instance.
|
|
45358
45358
|
*/
|
|
45359
45359
|
_createPreviewButton() {
|
|
45360
|
-
const e = new
|
|
45360
|
+
const e = new O(this.locale), t = this.bindTemplate, i = this.t;
|
|
45361
45361
|
return e.set({
|
|
45362
45362
|
withText: !0,
|
|
45363
45363
|
tooltip: i("Open link in new tab")
|
|
@@ -45462,7 +45462,7 @@ class o4 extends w {
|
|
|
45462
45462
|
_createToolbarLinkButton() {
|
|
45463
45463
|
const e = this.editor, t = e.commands.get("link"), i = e.t;
|
|
45464
45464
|
e.ui.componentFactory.add("link", (s) => {
|
|
45465
|
-
const o = new
|
|
45465
|
+
const o = new O(s);
|
|
45466
45466
|
return o.isEnabled = !0, o.label = i("Link"), o.icon = s4, o.keystroke = Xo, o.tooltip = !0, o.isToggleable = !0, o.bind("isEnabled").to(t, "isEnabled"), o.bind("isOn").to(t, "value", (r) => !!r), this.listenTo(o, "execute", () => this._showUI(!0)), o;
|
|
45467
45467
|
});
|
|
45468
45468
|
}
|
|
@@ -45875,7 +45875,7 @@ class d4 extends w {
|
|
|
45875
45875
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
45876
45876
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
45877
45877
|
*/
|
|
45878
|
-
class
|
|
45878
|
+
class Ue {
|
|
45879
45879
|
/**
|
|
45880
45880
|
* Creates a document list iterator.
|
|
45881
45881
|
*
|
|
@@ -46003,7 +46003,7 @@ function tl(n, e = {}) {
|
|
|
46003
46003
|
];
|
|
46004
46004
|
}
|
|
46005
46005
|
function Rt(n, e = {}) {
|
|
46006
|
-
const t = e.direction == "forward", i = Array.from(new
|
|
46006
|
+
const t = e.direction == "forward", i = Array.from(new Ue(n, {
|
|
46007
46007
|
...e,
|
|
46008
46008
|
includeSelf: t,
|
|
46009
46009
|
sameIndent: !0,
|
|
@@ -46012,16 +46012,16 @@ function Rt(n, e = {}) {
|
|
|
46012
46012
|
return t ? i : i.reverse();
|
|
46013
46013
|
}
|
|
46014
46014
|
function f4(n) {
|
|
46015
|
-
return Array.from(new
|
|
46015
|
+
return Array.from(new Ue(n, {
|
|
46016
46016
|
direction: "forward",
|
|
46017
46017
|
higherIndent: !0
|
|
46018
46018
|
}));
|
|
46019
46019
|
}
|
|
46020
46020
|
function np(n) {
|
|
46021
|
-
const e = new
|
|
46021
|
+
const e = new Ue(n, {
|
|
46022
46022
|
sameIndent: !0,
|
|
46023
46023
|
sameAttributes: "listType"
|
|
46024
|
-
}), t = new
|
|
46024
|
+
}), t = new Ue(n, {
|
|
46025
46025
|
sameIndent: !0,
|
|
46026
46026
|
sameAttributes: "listType",
|
|
46027
46027
|
includeSelf: !0,
|
|
@@ -46033,13 +46033,13 @@ function np(n) {
|
|
|
46033
46033
|
];
|
|
46034
46034
|
}
|
|
46035
46035
|
function ni(n) {
|
|
46036
|
-
return !
|
|
46036
|
+
return !Ue.first(n, {
|
|
46037
46037
|
sameIndent: !0,
|
|
46038
46038
|
sameAttributes: "listItemId"
|
|
46039
46039
|
});
|
|
46040
46040
|
}
|
|
46041
46041
|
function ld(n) {
|
|
46042
|
-
return !
|
|
46042
|
+
return !Ue.first(n, {
|
|
46043
46043
|
direction: "forward",
|
|
46044
46044
|
sameIndent: !0,
|
|
46045
46045
|
sameAttributes: "listItemId"
|
|
@@ -46089,7 +46089,7 @@ function m4(n, e) {
|
|
|
46089
46089
|
n = K(n);
|
|
46090
46090
|
const t = ss(n), i = /* @__PURE__ */ new Set(), s = Math.min(...t.map((r) => r.getAttribute("listIndent"))), o = /* @__PURE__ */ new Map();
|
|
46091
46091
|
for (const r of t)
|
|
46092
|
-
o.set(r,
|
|
46092
|
+
o.set(r, Ue.first(r, { lowerIndent: !0 }));
|
|
46093
46093
|
for (const r of t) {
|
|
46094
46094
|
if (i.has(r))
|
|
46095
46095
|
continue;
|
|
@@ -46155,7 +46155,7 @@ function p4(n, e, t) {
|
|
|
46155
46155
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
46156
46156
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
46157
46157
|
*/
|
|
46158
|
-
class cd extends
|
|
46158
|
+
class cd extends V {
|
|
46159
46159
|
/**
|
|
46160
46160
|
* Creates an instance of the command.
|
|
46161
46161
|
*
|
|
@@ -46186,7 +46186,7 @@ class cd extends R {
|
|
|
46186
46186
|
for (const o of s) {
|
|
46187
46187
|
if (!o.hasAttribute("listType"))
|
|
46188
46188
|
continue;
|
|
46189
|
-
const r =
|
|
46189
|
+
const r = Ue.first(o, { sameIndent: !0 });
|
|
46190
46190
|
r && i.setAttribute("listType", r.getAttribute("listType"), o);
|
|
46191
46191
|
}
|
|
46192
46192
|
this._fireAfterExecute(s);
|
|
@@ -46212,7 +46212,7 @@ class cd extends R {
|
|
|
46212
46212
|
if (this._direction == "backward" || Nn(e) && !ni(e[0]))
|
|
46213
46213
|
return !0;
|
|
46214
46214
|
e = ss(e), t = e[0];
|
|
46215
|
-
const i =
|
|
46215
|
+
const i = Ue.first(t, { sameIndent: !0 });
|
|
46216
46216
|
return i ? i.getAttribute("listType") == t.getAttribute("listType") : !1;
|
|
46217
46217
|
}
|
|
46218
46218
|
}
|
|
@@ -46224,7 +46224,7 @@ function ud(n) {
|
|
|
46224
46224
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
46225
46225
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
46226
46226
|
*/
|
|
46227
|
-
class dd extends
|
|
46227
|
+
class dd extends V {
|
|
46228
46228
|
/**
|
|
46229
46229
|
* Creates an instance of the command.
|
|
46230
46230
|
*
|
|
@@ -46320,7 +46320,7 @@ class dd extends R {
|
|
|
46320
46320
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
46321
46321
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
46322
46322
|
*/
|
|
46323
|
-
class hd extends
|
|
46323
|
+
class hd extends V {
|
|
46324
46324
|
/**
|
|
46325
46325
|
* Creates an instance of the command.
|
|
46326
46326
|
*
|
|
@@ -46410,7 +46410,7 @@ class hd extends R {
|
|
|
46410
46410
|
let o, r;
|
|
46411
46411
|
if (e.isCollapsed || s) {
|
|
46412
46412
|
const a = s || e.getFirstPosition().parent, l = ni(a);
|
|
46413
|
-
this._direction == "backward" ? (r = a, l && !t ? o =
|
|
46413
|
+
this._direction == "backward" ? (r = a, l && !t ? o = Ue.first(a, { sameIndent: !0, lowerIndent: !0 }) : o = a.previousSibling) : (o = a, r = a.nextSibling);
|
|
46414
46414
|
} else
|
|
46415
46415
|
o = e.getFirstPosition().parent, r = e.getLastPosition().parent;
|
|
46416
46416
|
return {
|
|
@@ -46423,7 +46423,7 @@ class hd extends R {
|
|
|
46423
46423
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
46424
46424
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
46425
46425
|
*/
|
|
46426
|
-
class fd extends
|
|
46426
|
+
class fd extends V {
|
|
46427
46427
|
/**
|
|
46428
46428
|
* Creates an instance of the command.
|
|
46429
46429
|
*
|
|
@@ -46776,7 +46776,7 @@ function I4(n, e, t, i) {
|
|
|
46776
46776
|
const a = v4(i, r, o.getAttribute("listItemId")), l = _4(i, r, o.getAttribute("listType"));
|
|
46777
46777
|
for (const c of t)
|
|
46778
46778
|
(c.scope == "list" || c.scope == "item") && o.hasAttribute(c.attributeName) && c.setAttributeOnDowncast(i, o.getAttribute(c.attributeName), c.scope == "list" ? l : a);
|
|
46779
|
-
if (e = i.wrap(e, a), e = i.wrap(e, l), r == 0 || (o =
|
|
46779
|
+
if (e = i.wrap(e, a), e = i.wrap(e, l), r == 0 || (o = Ue.first(o, { lowerIndent: !0 }), !o))
|
|
46780
46780
|
break;
|
|
46781
46781
|
}
|
|
46782
46782
|
}
|
|
@@ -46880,7 +46880,7 @@ class Qr extends w {
|
|
|
46880
46880
|
const l = a.parent;
|
|
46881
46881
|
if (!se(l))
|
|
46882
46882
|
return;
|
|
46883
|
-
if (!
|
|
46883
|
+
if (!Ue.first(l, {
|
|
46884
46884
|
sameAttributes: "listType",
|
|
46885
46885
|
sameIndent: !0
|
|
46886
46886
|
}) && l.getAttribute("listIndent") === 0)
|
|
@@ -47067,7 +47067,7 @@ function wd(n, e) {
|
|
|
47067
47067
|
*/
|
|
47068
47068
|
function bd(n, e, t, i) {
|
|
47069
47069
|
n.ui.componentFactory.add(e, (s) => {
|
|
47070
|
-
const o = n.commands.get(e), r = new
|
|
47070
|
+
const o = n.commands.get(e), r = new O(s);
|
|
47071
47071
|
return r.set({
|
|
47072
47072
|
label: t,
|
|
47073
47073
|
icon: i,
|
|
@@ -47094,7 +47094,7 @@ class L4 extends w {
|
|
|
47094
47094
|
*/
|
|
47095
47095
|
init() {
|
|
47096
47096
|
const e = this.editor.t;
|
|
47097
|
-
bd(this.editor, "numberedList", e("Numbered List"),
|
|
47097
|
+
bd(this.editor, "numberedList", e("Numbered List"), P.numberedList), bd(this.editor, "bulletedList", e("Bulleted List"), P.bulletedList);
|
|
47098
47098
|
}
|
|
47099
47099
|
}
|
|
47100
47100
|
/**
|
|
@@ -47119,7 +47119,7 @@ class B4 extends w {
|
|
|
47119
47119
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
47120
47120
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
47121
47121
|
*/
|
|
47122
|
-
class O4 extends
|
|
47122
|
+
class O4 extends V {
|
|
47123
47123
|
/**
|
|
47124
47124
|
* @inheritDoc
|
|
47125
47125
|
*/
|
|
@@ -47186,7 +47186,7 @@ function Xr(n) {
|
|
|
47186
47186
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
47187
47187
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
47188
47188
|
*/
|
|
47189
|
-
class M4 extends
|
|
47189
|
+
class M4 extends V {
|
|
47190
47190
|
/**
|
|
47191
47191
|
* Creates an instance of the command.
|
|
47192
47192
|
*
|
|
@@ -47266,7 +47266,7 @@ class M4 extends R {
|
|
|
47266
47266
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
47267
47267
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
47268
47268
|
*/
|
|
47269
|
-
class F4 extends
|
|
47269
|
+
class F4 extends V {
|
|
47270
47270
|
/**
|
|
47271
47271
|
* @inheritDoc
|
|
47272
47272
|
*/
|
|
@@ -47509,7 +47509,7 @@ function $4(n) {
|
|
|
47509
47509
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
47510
47510
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
47511
47511
|
*/
|
|
47512
|
-
class z4 extends
|
|
47512
|
+
class z4 extends S {
|
|
47513
47513
|
/**
|
|
47514
47514
|
* Creates an instance of the list properties view.
|
|
47515
47515
|
*
|
|
@@ -47559,7 +47559,7 @@ class z4 extends T {
|
|
|
47559
47559
|
gridItems: this.stylesView.children,
|
|
47560
47560
|
// Note: The styles view has a different number of columns depending on whether the other properties
|
|
47561
47561
|
// are enabled in the dropdown or not (https://github.com/ckeditor/ckeditor5/issues/12340)
|
|
47562
|
-
numberOfColumns: () =>
|
|
47562
|
+
numberOfColumns: () => A.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,
|
|
47563
47563
|
uiLanguageDirection: this.locale && this.locale.uiLanguageDirection
|
|
47564
47564
|
});
|
|
47565
47565
|
}
|
|
@@ -47595,7 +47595,7 @@ class z4 extends T {
|
|
|
47595
47595
|
* @param styleGridAriaLabel The assistive technology label of the grid.
|
|
47596
47596
|
*/
|
|
47597
47597
|
_createStylesView(e, t) {
|
|
47598
|
-
const i = new
|
|
47598
|
+
const i = new S(this.locale);
|
|
47599
47599
|
return i.children = i.createCollection(), i.children.addMany(e), i.setTemplate({
|
|
47600
47600
|
tag: "div",
|
|
47601
47601
|
attributes: {
|
|
@@ -47673,7 +47673,7 @@ class Y4 extends w {
|
|
|
47673
47673
|
editor: e,
|
|
47674
47674
|
parentCommandName: "bulletedList",
|
|
47675
47675
|
buttonLabel: t("Bulleted List"),
|
|
47676
|
-
buttonIcon:
|
|
47676
|
+
buttonIcon: P.bulletedList,
|
|
47677
47677
|
styleGridAriaLabel: t("Bulleted list styles toolbar"),
|
|
47678
47678
|
styleDefinitions: [
|
|
47679
47679
|
{
|
|
@@ -47699,7 +47699,7 @@ class Y4 extends w {
|
|
|
47699
47699
|
editor: e,
|
|
47700
47700
|
parentCommandName: "numberedList",
|
|
47701
47701
|
buttonLabel: t("Numbered List"),
|
|
47702
|
-
buttonIcon:
|
|
47702
|
+
buttonIcon: P.numberedList,
|
|
47703
47703
|
styleGridAriaLabel: t("Numbered list styles toolbar"),
|
|
47704
47704
|
styleDefinitions: [
|
|
47705
47705
|
{
|
|
@@ -47770,7 +47770,7 @@ function vd({ editor: n, parentCommandName: e, buttonLabel: t, buttonIcon: i, st
|
|
|
47770
47770
|
function Q4({ editor: n, listStyleCommand: e, parentCommandName: t }) {
|
|
47771
47771
|
const i = n.locale, s = n.commands.get(t);
|
|
47772
47772
|
return ({ label: o, type: r, icon: a, tooltip: l }) => {
|
|
47773
|
-
const c = new
|
|
47773
|
+
const c = new O(i);
|
|
47774
47774
|
return c.set({ label: o, icon: a, tooltip: l }), e.on("change:value", () => {
|
|
47775
47775
|
c.isOn = e.value === r;
|
|
47776
47776
|
}), c.on("execute", () => {
|
|
@@ -48301,7 +48301,7 @@ function u7(n) {
|
|
|
48301
48301
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
48302
48302
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
48303
48303
|
*/
|
|
48304
|
-
class d7 extends
|
|
48304
|
+
class d7 extends V {
|
|
48305
48305
|
/**
|
|
48306
48306
|
* @inheritDoc
|
|
48307
48307
|
*/
|
|
@@ -48338,7 +48338,7 @@ function h7(n, e) {
|
|
|
48338
48338
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
48339
48339
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
48340
48340
|
*/
|
|
48341
|
-
class Td extends
|
|
48341
|
+
class Td extends V {
|
|
48342
48342
|
/**
|
|
48343
48343
|
* Creates a new `InsertRowCommand` instance.
|
|
48344
48344
|
*
|
|
@@ -48372,7 +48372,7 @@ class Td extends R {
|
|
|
48372
48372
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
48373
48373
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
48374
48374
|
*/
|
|
48375
|
-
class Ad extends
|
|
48375
|
+
class Ad extends V {
|
|
48376
48376
|
/**
|
|
48377
48377
|
* Creates a new `InsertColumnCommand` instance.
|
|
48378
48378
|
*
|
|
@@ -48407,7 +48407,7 @@ class Ad extends R {
|
|
|
48407
48407
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
48408
48408
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
48409
48409
|
*/
|
|
48410
|
-
class Sd extends
|
|
48410
|
+
class Sd extends V {
|
|
48411
48411
|
/**
|
|
48412
48412
|
* Creates a new `SplitCellCommand` instance.
|
|
48413
48413
|
*
|
|
@@ -48442,12 +48442,12 @@ function gp(n, e, t) {
|
|
|
48442
48442
|
t.insertElement("tableRow", a, "end");
|
|
48443
48443
|
const c = [...new q(n, { startRow: i, endRow: o, startColumn: s, endColumn: r, includeAllSlots: !0 })];
|
|
48444
48444
|
for (const { row: u, column: d, cell: h, isAnchor: f, cellAnchorRow: m, cellAnchorColumn: p } of c) {
|
|
48445
|
-
const _ = u - i,
|
|
48445
|
+
const _ = u - i, y = a.getChild(_);
|
|
48446
48446
|
if (!f)
|
|
48447
|
-
(m < i || p < s) && mi(t, t.createPositionAt(
|
|
48447
|
+
(m < i || p < s) && mi(t, t.createPositionAt(y, "end"));
|
|
48448
48448
|
else {
|
|
48449
|
-
const
|
|
48450
|
-
t.append(
|
|
48449
|
+
const T = t.cloneElement(h);
|
|
48450
|
+
t.append(T, y), vp(T, u, d, o, r, t);
|
|
48451
48451
|
}
|
|
48452
48452
|
}
|
|
48453
48453
|
return f7(a, n, i, s, t), a;
|
|
@@ -48468,8 +48468,8 @@ function wp(n, e, t) {
|
|
|
48468
48468
|
const d = o, h = d + a, f = [...new q(s, { startRow: d, endRow: h, includeAllSlots: !0 })];
|
|
48469
48469
|
let m = null, p;
|
|
48470
48470
|
for (const _ of f) {
|
|
48471
|
-
const { row:
|
|
48472
|
-
|
|
48471
|
+
const { row: y, column: T, cell: C } = _;
|
|
48472
|
+
C === n && p === void 0 && (p = T), p !== void 0 && p === T && y === h && (m = mi(t, _.getPositionBefore(), l));
|
|
48473
48473
|
}
|
|
48474
48474
|
return oe("rowspan", a, n, t), m;
|
|
48475
48475
|
}
|
|
@@ -48562,7 +48562,7 @@ function Cp(n, e) {
|
|
|
48562
48562
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
48563
48563
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
48564
48564
|
*/
|
|
48565
|
-
class Cs extends
|
|
48565
|
+
class Cs extends V {
|
|
48566
48566
|
/**
|
|
48567
48567
|
* Creates a new `MergeCellCommand` instance.
|
|
48568
48568
|
*
|
|
@@ -48627,7 +48627,7 @@ function g7(n, e, t) {
|
|
|
48627
48627
|
const r = parseInt(n.getAttribute("rowspan") || "1"), a = s.getAttribute("headingRows") || 0, l = e == "down" && o + r === a, c = e == "up" && o === a;
|
|
48628
48628
|
if (a && (l || c))
|
|
48629
48629
|
return null;
|
|
48630
|
-
const u = parseInt(n.getAttribute("rowspan") || "1"), d = e == "down" ? o + u : o, h = [...new q(s, { endRow: d })], m = h.find((_) => _.cell === n).column, p = h.find(({ row: _, cellHeight:
|
|
48630
|
+
const u = parseInt(n.getAttribute("rowspan") || "1"), d = e == "down" ? o + u : o, h = [...new q(s, { endRow: d })], m = h.find((_) => _.cell === n).column, p = h.find(({ row: _, cellHeight: y, column: T }) => T !== m ? !1 : e == "down" ? _ === d : d === _ + y);
|
|
48631
48631
|
return p && p.cell ? p.cell : null;
|
|
48632
48632
|
}
|
|
48633
48633
|
function p7(n, e, t) {
|
|
@@ -48641,7 +48641,7 @@ function xd(n) {
|
|
|
48641
48641
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
48642
48642
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
48643
48643
|
*/
|
|
48644
|
-
class w7 extends
|
|
48644
|
+
class w7 extends V {
|
|
48645
48645
|
/**
|
|
48646
48646
|
* @inheritDoc
|
|
48647
48647
|
*/
|
|
@@ -48683,7 +48683,7 @@ function b7(n, e, t, i) {
|
|
|
48683
48683
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
48684
48684
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
48685
48685
|
*/
|
|
48686
|
-
class _7 extends
|
|
48686
|
+
class _7 extends V {
|
|
48687
48687
|
/**
|
|
48688
48688
|
* @inheritDoc
|
|
48689
48689
|
*/
|
|
@@ -48723,7 +48723,7 @@ function y7(n, e) {
|
|
|
48723
48723
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
48724
48724
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
48725
48725
|
*/
|
|
48726
|
-
class C7 extends
|
|
48726
|
+
class C7 extends V {
|
|
48727
48727
|
/**
|
|
48728
48728
|
* @inheritDoc
|
|
48729
48729
|
*/
|
|
@@ -48767,7 +48767,7 @@ class C7 extends R {
|
|
|
48767
48767
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
48768
48768
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
48769
48769
|
*/
|
|
48770
|
-
class k7 extends
|
|
48770
|
+
class k7 extends V {
|
|
48771
48771
|
/**
|
|
48772
48772
|
* @inheritDoc
|
|
48773
48773
|
*/
|
|
@@ -48930,16 +48930,16 @@ class Ce extends w {
|
|
|
48930
48930
|
return;
|
|
48931
48931
|
}
|
|
48932
48932
|
const h = r ? Math.max(s, a) : s, f = new q(e, { endRow: h }), m = new Array(c).fill(1);
|
|
48933
|
-
for (const { row: p, column: _, cellHeight:
|
|
48934
|
-
const
|
|
48935
|
-
D ? (u.setAttribute("rowspan",
|
|
48933
|
+
for (const { row: p, column: _, cellHeight: y, cellWidth: T, cell: C } of f) {
|
|
48934
|
+
const L = p + y - 1, D = p < s && s <= L, E = p <= a && a <= L;
|
|
48935
|
+
D ? (u.setAttribute("rowspan", y + o, C), m[_] = -T) : r && E && (m[_] = T);
|
|
48936
48936
|
}
|
|
48937
48937
|
for (let p = 0; p < o; p++) {
|
|
48938
48938
|
const _ = u.createElement("tableRow");
|
|
48939
48939
|
u.insert(_, e, s);
|
|
48940
|
-
for (let
|
|
48941
|
-
const
|
|
48942
|
-
|
|
48940
|
+
for (let y = 0; y < m.length; y++) {
|
|
48941
|
+
const T = m[y], C = u.createPositionAt(_, "end");
|
|
48942
|
+
T > 0 && mi(u, C, T > 1 ? { colspan: T } : void 0), y += Math.abs(T) - 1;
|
|
48943
48943
|
}
|
|
48944
48944
|
}
|
|
48945
48945
|
});
|
|
@@ -48987,9 +48987,9 @@ class Ce extends w {
|
|
|
48987
48987
|
const { row: d, cell: h, cellAnchorColumn: f, cellAnchorRow: m, cellWidth: p, cellHeight: _ } = u;
|
|
48988
48988
|
if (f < s) {
|
|
48989
48989
|
r.setAttribute("colspan", p + o, h);
|
|
48990
|
-
const
|
|
48991
|
-
for (let
|
|
48992
|
-
c.skipRow(
|
|
48990
|
+
const y = m + _ - 1;
|
|
48991
|
+
for (let T = d; T <= y; T++)
|
|
48992
|
+
c.skipRow(T);
|
|
48993
48993
|
} else
|
|
48994
48994
|
Ri(o, r, u.getPositionBefore());
|
|
48995
48995
|
}
|
|
@@ -49138,9 +49138,9 @@ class Ce extends w {
|
|
|
49138
49138
|
Ri(h, l, l.createPositionAfter(e), d);
|
|
49139
49139
|
}
|
|
49140
49140
|
if (a < t) {
|
|
49141
|
-
const c = t - a, u = [...new q(o)], { column: d } = u.find(({ cell: p }) => p === e), h = u.filter(({ cell: p, cellWidth: _, column:
|
|
49142
|
-
const
|
|
49143
|
-
return
|
|
49141
|
+
const c = t - a, u = [...new q(o)], { column: d } = u.find(({ cell: p }) => p === e), h = u.filter(({ cell: p, cellWidth: _, column: y }) => {
|
|
49142
|
+
const T = p !== e && y === d, C = y < d && y + _ > d;
|
|
49143
|
+
return T || C;
|
|
49144
49144
|
});
|
|
49145
49145
|
for (const { cell: p, cellWidth: _ } of h)
|
|
49146
49146
|
l.setAttribute("colspan", _ + c, p);
|
|
@@ -49217,16 +49217,16 @@ class Ce extends w {
|
|
|
49217
49217
|
const { column: f } = u.find(({ cell: p }) => p === e), m = {};
|
|
49218
49218
|
d > 1 && (m.rowspan = d), l > 1 && (m.colspan = l);
|
|
49219
49219
|
for (const p of u) {
|
|
49220
|
-
const { column: _, row:
|
|
49221
|
-
|
|
49220
|
+
const { column: _, row: y } = p, T = y >= r + h, C = _ === f, L = (y + r + h) % d === 0;
|
|
49221
|
+
T && C && L && Ri(1, c, p.getPositionBefore(), m);
|
|
49222
49222
|
}
|
|
49223
49223
|
}
|
|
49224
49224
|
if (a < t) {
|
|
49225
49225
|
const u = t - a, d = [...new q(o, { startRow: 0, endRow: r })];
|
|
49226
49226
|
for (const { cell: m, cellHeight: p, row: _ } of d)
|
|
49227
49227
|
if (m !== e && _ + p > r) {
|
|
49228
|
-
const
|
|
49229
|
-
c.setAttribute("rowspan",
|
|
49228
|
+
const y = p + u;
|
|
49229
|
+
c.setAttribute("rowspan", y, m);
|
|
49230
49230
|
}
|
|
49231
49231
|
const h = {};
|
|
49232
49232
|
l > 1 && (h.colspan = l), ir(c, o, r + 1, u, 1, h);
|
|
@@ -49507,7 +49507,7 @@ function R7(n, e) {
|
|
|
49507
49507
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
49508
49508
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
49509
49509
|
*/
|
|
49510
|
-
class V7 extends
|
|
49510
|
+
class V7 extends V {
|
|
49511
49511
|
/**
|
|
49512
49512
|
* @inheritDoc
|
|
49513
49513
|
*/
|
|
@@ -49556,7 +49556,7 @@ function Rd(n, e, t, i) {
|
|
|
49556
49556
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
49557
49557
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
49558
49558
|
*/
|
|
49559
|
-
class O7 extends
|
|
49559
|
+
class O7 extends V {
|
|
49560
49560
|
/**
|
|
49561
49561
|
* @inheritDoc
|
|
49562
49562
|
*/
|
|
@@ -49587,7 +49587,7 @@ class O7 extends R {
|
|
|
49587
49587
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
49588
49588
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
49589
49589
|
*/
|
|
49590
|
-
class M7 extends
|
|
49590
|
+
class M7 extends V {
|
|
49591
49591
|
/**
|
|
49592
49592
|
* @inheritDoc
|
|
49593
49593
|
*/
|
|
@@ -49873,7 +49873,7 @@ function Vd(n) {
|
|
|
49873
49873
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
49874
49874
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
49875
49875
|
*/
|
|
49876
|
-
class Q7 extends
|
|
49876
|
+
class Q7 extends S {
|
|
49877
49877
|
/**
|
|
49878
49878
|
* @inheritDoc
|
|
49879
49879
|
*/
|
|
@@ -49976,7 +49976,7 @@ class Q7 extends T {
|
|
|
49976
49976
|
* @param label The grid button label.
|
|
49977
49977
|
*/
|
|
49978
49978
|
_createGridButton(e, t, i, s) {
|
|
49979
|
-
const o = new
|
|
49979
|
+
const o = new O(e);
|
|
49980
49980
|
return o.set({
|
|
49981
49981
|
label: s,
|
|
49982
49982
|
class: "ck-insert-table-dropdown-grid-box"
|
|
@@ -50019,7 +50019,7 @@ class i6 extends w {
|
|
|
50019
50019
|
e.ui.componentFactory.add("insertTable", (o) => {
|
|
50020
50020
|
const r = e.commands.get("insertTable"), a = fe(o);
|
|
50021
50021
|
a.bind("isEnabled").to(r), a.buttonView.set({
|
|
50022
|
-
icon:
|
|
50022
|
+
icon: P.table,
|
|
50023
50023
|
label: t("Insert table"),
|
|
50024
50024
|
tooltip: !0
|
|
50025
50025
|
});
|
|
@@ -50503,7 +50503,7 @@ class s6 extends w {
|
|
|
50503
50503
|
r = gp(r, f, l);
|
|
50504
50504
|
const m = a[0].findAncestor("table"), p = this._replaceSelectedCellsWithPasted(r, c, m, u, l);
|
|
50505
50505
|
if (this.editor.plugins.get("TableSelection").isEnabled) {
|
|
50506
|
-
const _ = o.sortRanges(p.map((
|
|
50506
|
+
const _ = o.sortRanges(p.map((y) => l.createRangeOn(y)));
|
|
50507
50507
|
l.setSelection(_);
|
|
50508
50508
|
} else
|
|
50509
50509
|
l.setSelection(p[0], 0);
|
|
@@ -50522,19 +50522,19 @@ class s6 extends w {
|
|
|
50522
50522
|
})], u = [];
|
|
50523
50523
|
let d;
|
|
50524
50524
|
for (const _ of c) {
|
|
50525
|
-
const { row:
|
|
50526
|
-
|
|
50527
|
-
const
|
|
50528
|
-
|
|
50525
|
+
const { row: y, column: T } = _;
|
|
50526
|
+
T === s.firstColumn && (d = _.getPositionBefore());
|
|
50527
|
+
const C = y - s.firstRow, L = T - s.firstColumn, D = l[C % a][L % r], E = D ? o.cloneElement(D) : null, R = this._replaceTableSlotCell(_, E, d, o);
|
|
50528
|
+
R && (vp(R, y, T, s.lastRow, s.lastColumn, o), u.push(R), d = o.createPositionAfter(R));
|
|
50529
50529
|
}
|
|
50530
50530
|
const h = parseInt(i.getAttribute("headingRows") || "0"), f = parseInt(i.getAttribute("headingColumns") || "0"), m = s.firstRow < h && h <= s.lastRow, p = s.firstColumn < f && f <= s.lastColumn;
|
|
50531
50531
|
if (m) {
|
|
50532
|
-
const _ = { first: s.firstColumn, last: s.lastColumn },
|
|
50533
|
-
u.push(...
|
|
50532
|
+
const _ = { first: s.firstColumn, last: s.lastColumn }, y = sa(i, h, _, o, s.firstRow);
|
|
50533
|
+
u.push(...y);
|
|
50534
50534
|
}
|
|
50535
50535
|
if (p) {
|
|
50536
|
-
const _ = { first: s.firstRow, last: s.lastRow },
|
|
50537
|
-
u.push(...
|
|
50536
|
+
const _ = { first: s.firstRow, last: s.lastRow }, y = oa(i, f, _, o);
|
|
50537
|
+
u.push(...y);
|
|
50538
50538
|
}
|
|
50539
50539
|
return u;
|
|
50540
50540
|
}
|
|
@@ -50658,15 +50658,15 @@ class c6 extends w {
|
|
|
50658
50658
|
t.preventDefault(), t.stopPropagation(), e.stop();
|
|
50659
50659
|
const c = l.parent, u = c.parent, d = u.getChildIndex(c), h = c.getChildIndex(l), f = h === 0;
|
|
50660
50660
|
if (!a && f && d === 0) {
|
|
50661
|
-
i.model.change((
|
|
50662
|
-
|
|
50661
|
+
i.model.change((y) => {
|
|
50662
|
+
y.setSelection(y.createRangeOn(u));
|
|
50663
50663
|
});
|
|
50664
50664
|
return;
|
|
50665
50665
|
}
|
|
50666
50666
|
const m = h === c.childCount - 1, p = d === s.getRows(u) - 1;
|
|
50667
50667
|
if (a && p && m && (i.execute("insertTableRowBelow"), d === s.getRows(u) - 1)) {
|
|
50668
|
-
i.model.change((
|
|
50669
|
-
|
|
50668
|
+
i.model.change((y) => {
|
|
50669
|
+
y.setSelection(y.createRangeOn(u));
|
|
50670
50670
|
});
|
|
50671
50671
|
return;
|
|
50672
50672
|
}
|
|
@@ -50674,12 +50674,12 @@ class c6 extends w {
|
|
|
50674
50674
|
if (a && m)
|
|
50675
50675
|
_ = u.getChild(d + 1).getChild(0);
|
|
50676
50676
|
else if (!a && f) {
|
|
50677
|
-
const
|
|
50678
|
-
_ =
|
|
50677
|
+
const y = u.getChild(d - 1);
|
|
50678
|
+
_ = y.getChild(y.childCount - 1);
|
|
50679
50679
|
} else
|
|
50680
50680
|
_ = c.getChild(h + (a ? 1 : -1));
|
|
50681
|
-
i.model.change((
|
|
50682
|
-
|
|
50681
|
+
i.model.change((y) => {
|
|
50682
|
+
y.setSelection(y.createRangeIn(_));
|
|
50683
50683
|
});
|
|
50684
50684
|
}
|
|
50685
50685
|
/**
|
|
@@ -50739,7 +50739,7 @@ class c6 extends w {
|
|
|
50739
50739
|
* @param expandSelection If the current selection should be expanded. Default value is false.
|
|
50740
50740
|
*/
|
|
50741
50741
|
_navigateFromCellInDirection(e, t, i = !1) {
|
|
50742
|
-
const s = this.editor.model, o = e.findAncestor("table"), r = [...new q(o, { includeAllSlots: !0 })], { row: a, column: l } = r[r.length - 1], c = r.find(({ cell:
|
|
50742
|
+
const s = this.editor.model, o = e.findAncestor("table"), r = [...new q(o, { includeAllSlots: !0 })], { row: a, column: l } = r[r.length - 1], c = r.find(({ cell: T }) => T == e);
|
|
50743
50743
|
let { row: u, column: d } = c;
|
|
50744
50744
|
switch (t) {
|
|
50745
50745
|
case "left":
|
|
@@ -50757,20 +50757,20 @@ class c6 extends w {
|
|
|
50757
50757
|
}
|
|
50758
50758
|
const h = u < 0 || u > a, f = d < 0 && u <= 0, m = d > l && u >= a;
|
|
50759
50759
|
if (h || f || m) {
|
|
50760
|
-
s.change((
|
|
50761
|
-
|
|
50760
|
+
s.change((T) => {
|
|
50761
|
+
T.setSelection(T.createRangeOn(o));
|
|
50762
50762
|
});
|
|
50763
50763
|
return;
|
|
50764
50764
|
}
|
|
50765
50765
|
d < 0 ? (d = i ? 0 : l, u--) : d > l && (d = i ? l : 0, u++);
|
|
50766
|
-
const p = r.find((
|
|
50767
|
-
if (i &&
|
|
50768
|
-
const
|
|
50769
|
-
|
|
50766
|
+
const p = r.find((T) => T.row == u && T.column == d).cell, _ = ["right", "down"].includes(t), y = this.editor.plugins.get("TableSelection");
|
|
50767
|
+
if (i && y.isEnabled) {
|
|
50768
|
+
const T = y.getAnchorCell() || e;
|
|
50769
|
+
y.setCellSelection(T, p);
|
|
50770
50770
|
} else {
|
|
50771
|
-
const
|
|
50772
|
-
s.change((
|
|
50773
|
-
|
|
50771
|
+
const T = s.createPositionAt(p, _ ? 0 : "end");
|
|
50772
|
+
s.change((C) => {
|
|
50773
|
+
C.setSelection(T);
|
|
50774
50774
|
});
|
|
50775
50775
|
}
|
|
50776
50776
|
}
|
|
@@ -51050,7 +51050,7 @@ class v6 extends w {
|
|
|
51050
51050
|
this._checkCompatibility();
|
|
51051
51051
|
const e = this.editor, t = e.t;
|
|
51052
51052
|
e.ui.componentFactory.add("sourceEditing", (i) => {
|
|
51053
|
-
const s = new
|
|
51053
|
+
const s = new O(i);
|
|
51054
51054
|
return s.set({
|
|
51055
51055
|
label: t("Source"),
|
|
51056
51056
|
icon: _6,
|
|
@@ -51238,7 +51238,7 @@ function ki(n, e, t, i, s) {
|
|
|
51238
51238
|
function T6(n) {
|
|
51239
51239
|
return qy(n).replace(/ /g, "");
|
|
51240
51240
|
}
|
|
51241
|
-
function
|
|
51241
|
+
function ze(n) {
|
|
51242
51242
|
return `html${T6(n)}Attributes`;
|
|
51243
51243
|
}
|
|
51244
51244
|
/**
|
|
@@ -51253,7 +51253,7 @@ function ol({ model: n }) {
|
|
|
51253
51253
|
function A6(n, { view: e, isInline: t }) {
|
|
51254
51254
|
const i = n.t;
|
|
51255
51255
|
return (s, { writer: o }) => {
|
|
51256
|
-
const r = i("HTML object"), a = _o(e, s, o), l = s.getAttribute(
|
|
51256
|
+
const r = i("HTML object"), a = _o(e, s, o), l = s.getAttribute(ze(e));
|
|
51257
51257
|
o.addClass("html-object-embed__content", a), l && st(o, l, a);
|
|
51258
51258
|
const c = o.createContainerElement(t ? "span" : "div", {
|
|
51259
51259
|
class: "html-object-embed",
|
|
@@ -51314,13 +51314,13 @@ function zn({ view: n }, e) {
|
|
|
51314
51314
|
if (!s.modelRange || s.modelRange.isCollapsed)
|
|
51315
51315
|
return;
|
|
51316
51316
|
const r = e.processViewAttributes(s.viewItem, o);
|
|
51317
|
-
r && o.writer.setAttribute(
|
|
51317
|
+
r && o.writer.setAttribute(ze(s.viewItem.name), r, s.modelRange);
|
|
51318
51318
|
}, { priority: "low" });
|
|
51319
51319
|
};
|
|
51320
51320
|
}
|
|
51321
51321
|
function Hn({ view: n, model: e }) {
|
|
51322
51322
|
return (t) => {
|
|
51323
|
-
t.on(`attribute:${
|
|
51323
|
+
t.on(`attribute:${ze(n)}:${e}`, (i, s, o) => {
|
|
51324
51324
|
if (!o.consumable.consume(s.item, i.name))
|
|
51325
51325
|
return;
|
|
51326
51326
|
const { attributeOldValue: r, attributeNewValue: a } = s, l = o.writer, c = o.mapper.toViewElement(s.item);
|
|
@@ -52688,7 +52688,7 @@ class ce extends w {
|
|
|
52688
52688
|
i.register(r, e.modelSchema);
|
|
52689
52689
|
/* istanbul ignore next: paranoid check -- @preserve */
|
|
52690
52690
|
o && (i.extend(e.model, {
|
|
52691
|
-
allowAttributes: [
|
|
52691
|
+
allowAttributes: [ze(o), "htmlContent"]
|
|
52692
52692
|
}), t.data.registerRawContentMatcher({
|
|
52693
52693
|
name: o
|
|
52694
52694
|
}), s.for("upcast").elementToElement({
|
|
@@ -52701,7 +52701,7 @@ class ce extends w {
|
|
|
52701
52701
|
}), s.for("upcast").add(zn(e, this)), s.for("editingDowncast").elementToStructure({
|
|
52702
52702
|
model: {
|
|
52703
52703
|
name: r,
|
|
52704
|
-
attributes: [
|
|
52704
|
+
attributes: [ze(o)]
|
|
52705
52705
|
},
|
|
52706
52706
|
view: A6(t, e)
|
|
52707
52707
|
}), s.for("dataDowncast").elementToElement({
|
|
@@ -52730,7 +52730,7 @@ class ce extends w {
|
|
|
52730
52730
|
});
|
|
52731
52731
|
}
|
|
52732
52732
|
o && (i.extend(e.model, {
|
|
52733
|
-
allowAttributes:
|
|
52733
|
+
allowAttributes: ze(o)
|
|
52734
52734
|
}), s.for("upcast").add(zn(e, this)), s.for("downcast").add(Hn(e)));
|
|
52735
52735
|
}
|
|
52736
52736
|
/**
|
|
@@ -52937,7 +52937,7 @@ class M6 extends w {
|
|
|
52937
52937
|
_addAttributeConversion(e) {
|
|
52938
52938
|
const t = this.editor, i = t.conversion, s = t.plugins.get(ce);
|
|
52939
52939
|
t.model.schema.extend(e.model, {
|
|
52940
|
-
allowAttributes:
|
|
52940
|
+
allowAttributes: ze(e.view)
|
|
52941
52941
|
}), i.for("upcast").add(zn(e, s)), i.for("downcast").add(Hn(e));
|
|
52942
52942
|
}
|
|
52943
52943
|
}
|
|
@@ -53137,7 +53137,7 @@ class U6 extends w {
|
|
|
53137
53137
|
}), s.on(`register:${r}`, (a, l) => {
|
|
53138
53138
|
l.model === "media" && (t.extend("media", {
|
|
53139
53139
|
allowAttributes: [
|
|
53140
|
-
|
|
53140
|
+
ze(r),
|
|
53141
53141
|
"htmlFigureAttributes"
|
|
53142
53142
|
]
|
|
53143
53143
|
}), i.for("upcast").add(W6(s, r)), i.for("dataDowncast").add(j6(r)), a.stop());
|
|
@@ -53147,7 +53147,7 @@ class U6 extends w {
|
|
|
53147
53147
|
function W6(n, e) {
|
|
53148
53148
|
const t = (i, s, o) => {
|
|
53149
53149
|
const r = s.viewItem;
|
|
53150
|
-
a(r,
|
|
53150
|
+
a(r, ze(e));
|
|
53151
53151
|
function a(l, c) {
|
|
53152
53152
|
const u = n.processViewAttributes(l, o);
|
|
53153
53153
|
u && o.writer.setAttribute(c, u, s.modelRange);
|
|
@@ -53170,7 +53170,7 @@ function q6(n) {
|
|
|
53170
53170
|
}
|
|
53171
53171
|
function j6(n) {
|
|
53172
53172
|
return (e) => {
|
|
53173
|
-
t(n,
|
|
53173
|
+
t(n, ze(n)), t("figure", "htmlFigureAttributes");
|
|
53174
53174
|
function t(i, s) {
|
|
53175
53175
|
e.on(`attribute:${s}:media`, (o, r, a) => {
|
|
53176
53176
|
if (!a.consumable.consume(r.item, o.name))
|
|
@@ -53393,7 +53393,7 @@ class eR extends w {
|
|
|
53393
53393
|
}), s.on("register", (a, l) => {
|
|
53394
53394
|
if (!r.includes(l.view) || (a.stop(), t.checkAttribute("$block", "htmlLiAttributes")))
|
|
53395
53395
|
return;
|
|
53396
|
-
const c = r.map((u) =>
|
|
53396
|
+
const c = r.map((u) => ze(u));
|
|
53397
53397
|
t.extend("$listItem", { allowAttributes: c }), i.for("upcast").add((u) => {
|
|
53398
53398
|
u.on("element:ul", or("htmlUlAttributes", s), { priority: "low" }), u.on("element:ol", or("htmlOlAttributes", s), { priority: "low" }), u.on("element:li", or("htmlLiAttributes", s), { priority: "low" });
|
|
53399
53399
|
});
|
|
@@ -53488,10 +53488,10 @@ class tR extends w {
|
|
|
53488
53488
|
if (u.is("element", "template") && u.getCustomProperty("$rawContent"))
|
|
53489
53489
|
m = u.getCustomProperty("$rawContent");
|
|
53490
53490
|
else {
|
|
53491
|
-
const _ = new Ji(u.document).createDocumentFragment(u),
|
|
53492
|
-
for (;
|
|
53493
|
-
|
|
53494
|
-
|
|
53491
|
+
const _ = new Ji(u.document).createDocumentFragment(u), y = o.data.htmlProcessor.domConverter.viewToDom(_), T = y.firstChild;
|
|
53492
|
+
for (; T.firstChild; )
|
|
53493
|
+
y.appendChild(T.firstChild);
|
|
53494
|
+
T.remove(), m = o.data.htmlProcessor.htmlWriter.getHtml(y);
|
|
53495
53495
|
}
|
|
53496
53496
|
d.writer.setAttribute("htmlContent", m, h);
|
|
53497
53497
|
for (const { item: p } of o.editing.view.createRangeIn(u))
|
|
@@ -53575,7 +53575,7 @@ class nR extends w {
|
|
|
53575
53575
|
*/
|
|
53576
53576
|
getGhsAttributeNameForElement(e) {
|
|
53577
53577
|
const t = this.editor.plugins.get("DataSchema"), i = Array.from(t.getDefinitionsForView(e, !1)), s = i.find((o) => o.isInline && !i[0].isObject);
|
|
53578
|
-
return s ? s.model :
|
|
53578
|
+
return s ? s.model : ze(e);
|
|
53579
53579
|
}
|
|
53580
53580
|
/**
|
|
53581
53581
|
* Updates GHS model attribute for a specified view element name, so it includes the given class name.
|
|
@@ -53697,7 +53697,7 @@ function sR(n, e, t) {
|
|
|
53697
53697
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
53698
53698
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
53699
53699
|
*/
|
|
53700
|
-
class vo extends
|
|
53700
|
+
class vo extends V {
|
|
53701
53701
|
/**
|
|
53702
53702
|
* Creates an instance of the command.
|
|
53703
53703
|
*
|
|
@@ -54719,7 +54719,7 @@ class FR extends w {
|
|
|
54719
54719
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
54720
54720
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
54721
54721
|
*/
|
|
54722
|
-
class DR extends
|
|
54722
|
+
class DR extends O {
|
|
54723
54723
|
/**
|
|
54724
54724
|
* Creates an instance of the {@link module:style/ui/stylegridbuttonview~StyleGridButtonView} class.
|
|
54725
54725
|
*
|
|
@@ -54741,7 +54741,7 @@ class DR extends B {
|
|
|
54741
54741
|
* Creates the view representing the preview of the style.
|
|
54742
54742
|
*/
|
|
54743
54743
|
_createPreview() {
|
|
54744
|
-
const e = new
|
|
54744
|
+
const e = new S(this.locale);
|
|
54745
54745
|
return e.setTemplate({
|
|
54746
54746
|
tag: "div",
|
|
54747
54747
|
attributes: {
|
|
@@ -54764,7 +54764,7 @@ class DR extends B {
|
|
|
54764
54764
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
54765
54765
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
54766
54766
|
*/
|
|
54767
|
-
class NR extends
|
|
54767
|
+
class NR extends S {
|
|
54768
54768
|
/**
|
|
54769
54769
|
* Creates an instance of the {@link module:style/ui/stylegridview~StyleGridView} class.
|
|
54770
54770
|
*
|
|
@@ -54827,7 +54827,7 @@ class NR extends T {
|
|
|
54827
54827
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
54828
54828
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
54829
54829
|
*/
|
|
54830
|
-
class Ud extends
|
|
54830
|
+
class Ud extends S {
|
|
54831
54831
|
/**
|
|
54832
54832
|
* Creates an instance of the {@link module:style/ui/stylegroupview~StyleGroupView} class.
|
|
54833
54833
|
*
|
|
@@ -54857,7 +54857,7 @@ class Ud extends T {
|
|
|
54857
54857
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
54858
54858
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
54859
54859
|
*/
|
|
54860
|
-
class $R extends
|
|
54860
|
+
class $R extends S {
|
|
54861
54861
|
/**
|
|
54862
54862
|
* Creates an instance of the {@link module:style/ui/stylegroupview~StyleGroupView} class.
|
|
54863
54863
|
*
|
|
@@ -55173,7 +55173,7 @@ class WR extends w {
|
|
|
55173
55173
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
55174
55174
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
55175
55175
|
*/
|
|
55176
|
-
class qR extends
|
|
55176
|
+
class qR extends V {
|
|
55177
55177
|
/**
|
|
55178
55178
|
* Creates an instance of the command.
|
|
55179
55179
|
*
|
|
@@ -55638,7 +55638,7 @@ function jd(n, e) {
|
|
|
55638
55638
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
55639
55639
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
55640
55640
|
*/
|
|
55641
|
-
class i8 extends
|
|
55641
|
+
class i8 extends V {
|
|
55642
55642
|
/**
|
|
55643
55643
|
* @inheritDoc
|
|
55644
55644
|
*/
|
|
@@ -55720,7 +55720,7 @@ function n8(n, e, t) {
|
|
|
55720
55720
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
55721
55721
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
55722
55722
|
*/
|
|
55723
|
-
class s8 extends
|
|
55723
|
+
class s8 extends V {
|
|
55724
55724
|
constructor(e) {
|
|
55725
55725
|
super(e), this._indentSequence = e.config.get("codeBlock.indentSequence");
|
|
55726
55726
|
}
|
|
@@ -55757,7 +55757,7 @@ class s8 extends R {
|
|
|
55757
55757
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
55758
55758
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
55759
55759
|
*/
|
|
55760
|
-
class o8 extends
|
|
55760
|
+
class o8 extends V {
|
|
55761
55761
|
constructor(e) {
|
|
55762
55762
|
super(e), this._indentSequence = e.config.get("codeBlock.indentSequence");
|
|
55763
55763
|
}
|
|
@@ -56045,7 +56045,7 @@ class g8 extends w {
|
|
|
56045
56045
|
return l.set({
|
|
56046
56046
|
label: c,
|
|
56047
56047
|
tooltip: !0,
|
|
56048
|
-
icon:
|
|
56048
|
+
icon: P.codeBlock,
|
|
56049
56049
|
isToggleable: !0
|
|
56050
56050
|
}), l.bind("isOn").to(r, "value", (u) => !!u), l.on("execute", () => {
|
|
56051
56051
|
e.execute("codeBlock", {
|
|
@@ -56105,7 +56105,7 @@ class p8 extends w {
|
|
|
56105
56105
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
56106
56106
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
56107
56107
|
*/
|
|
56108
|
-
class w8 extends
|
|
56108
|
+
class w8 extends V {
|
|
56109
56109
|
/**
|
|
56110
56110
|
* @inheritDoc
|
|
56111
56111
|
*/
|
|
@@ -56184,10 +56184,10 @@ class C8 extends w {
|
|
|
56184
56184
|
init() {
|
|
56185
56185
|
const e = this.editor, t = e.t;
|
|
56186
56186
|
e.ui.componentFactory.add("horizontalLine", (i) => {
|
|
56187
|
-
const s = e.commands.get("horizontalLine"), o = new
|
|
56187
|
+
const s = e.commands.get("horizontalLine"), o = new O(i);
|
|
56188
56188
|
return o.set({
|
|
56189
56189
|
label: t("Horizontal line"),
|
|
56190
|
-
icon:
|
|
56190
|
+
icon: P.horizontalLine,
|
|
56191
56191
|
tooltip: !0
|
|
56192
56192
|
}), o.bind("isEnabled").to(s, "isEnabled"), this.listenTo(o, "execute", () => {
|
|
56193
56193
|
e.execute("horizontalLine"), e.editing.view.focus();
|
|
@@ -56232,7 +56232,7 @@ class T8 extends w {
|
|
|
56232
56232
|
init() {
|
|
56233
56233
|
const e = this.editor, t = e.t;
|
|
56234
56234
|
e.ui.componentFactory.add(ar, (i) => {
|
|
56235
|
-
const s = e.commands.get(ar), o = new
|
|
56235
|
+
const s = e.commands.get(ar), o = new O(i);
|
|
56236
56236
|
return o.set({
|
|
56237
56237
|
label: t("Remove Format"),
|
|
56238
56238
|
icon: E8,
|
|
@@ -56247,7 +56247,7 @@ class T8 extends w {
|
|
|
56247
56247
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
56248
56248
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
56249
56249
|
*/
|
|
56250
|
-
class A8 extends
|
|
56250
|
+
class A8 extends V {
|
|
56251
56251
|
/**
|
|
56252
56252
|
* @inheritDoc
|
|
56253
56253
|
*/
|
|
@@ -56414,7 +56414,7 @@ class I8 extends Ym {
|
|
|
56414
56414
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
56415
56415
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
56416
56416
|
*/
|
|
56417
|
-
class P8 extends
|
|
56417
|
+
class P8 extends S {
|
|
56418
56418
|
/**
|
|
56419
56419
|
* Creates an instance of a character grid containing tiles representing special characters.
|
|
56420
56420
|
*
|
|
@@ -56445,7 +56445,7 @@ class P8 extends T {
|
|
|
56445
56445
|
keystrokeHandler: this.keystrokes,
|
|
56446
56446
|
focusTracker: this.focusTracker,
|
|
56447
56447
|
gridItems: this.tiles,
|
|
56448
|
-
numberOfColumns: () =>
|
|
56448
|
+
numberOfColumns: () => A.window.getComputedStyle(this.element.firstChild).getPropertyValue("grid-template-columns").split(" ").length,
|
|
56449
56449
|
uiLanguageDirection: this.locale && this.locale.uiLanguageDirection
|
|
56450
56450
|
});
|
|
56451
56451
|
}
|
|
@@ -56456,7 +56456,7 @@ class P8 extends T {
|
|
|
56456
56456
|
* @param name The name of the character (e.g. "greek small letter epsilon").
|
|
56457
56457
|
*/
|
|
56458
56458
|
createTile(e, t) {
|
|
56459
|
-
const i = new
|
|
56459
|
+
const i = new O(this.locale);
|
|
56460
56460
|
return i.set({
|
|
56461
56461
|
label: e,
|
|
56462
56462
|
withText: !0,
|
|
@@ -56510,7 +56510,7 @@ class P8 extends T {
|
|
|
56510
56510
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
56511
56511
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
56512
56512
|
*/
|
|
56513
|
-
class R8 extends
|
|
56513
|
+
class R8 extends S {
|
|
56514
56514
|
constructor(e) {
|
|
56515
56515
|
super(e);
|
|
56516
56516
|
const t = this.bindTemplate;
|
|
@@ -56561,7 +56561,7 @@ function V8(n) {
|
|
|
56561
56561
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
56562
56562
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
56563
56563
|
*/
|
|
56564
|
-
class L8 extends
|
|
56564
|
+
class L8 extends S {
|
|
56565
56565
|
/**
|
|
56566
56566
|
* Creates an instance of the `SpecialCharactersView`.
|
|
56567
56567
|
*/
|
|
@@ -57176,7 +57176,7 @@ function Lp(n, e, t, i) {
|
|
|
57176
57176
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
57177
57177
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
57178
57178
|
*/
|
|
57179
|
-
class U8 extends
|
|
57179
|
+
class U8 extends V {
|
|
57180
57180
|
/**
|
|
57181
57181
|
* @inheritDoc
|
|
57182
57182
|
*/
|
|
@@ -57545,7 +57545,7 @@ class J8 extends w {
|
|
|
57545
57545
|
this._embedMediaBetweenPositions(r, a), r.detach(), a.detach();
|
|
57546
57546
|
}, { priority: "high" });
|
|
57547
57547
|
}), e.commands.get("undo").on("execute", () => {
|
|
57548
|
-
this._timeoutId && (
|
|
57548
|
+
this._timeoutId && (A.window.clearTimeout(this._timeoutId), this._positionToInsert.detach(), this._timeoutId = null, this._positionToInsert = null);
|
|
57549
57549
|
}, { priority: "high" });
|
|
57550
57550
|
}
|
|
57551
57551
|
/**
|
|
@@ -57572,7 +57572,7 @@ class J8 extends w {
|
|
|
57572
57572
|
o.detach();
|
|
57573
57573
|
return;
|
|
57574
57574
|
}
|
|
57575
|
-
this._positionToInsert = pe.fromPosition(e), this._timeoutId =
|
|
57575
|
+
this._positionToInsert = pe.fromPosition(e), this._timeoutId = A.window.setTimeout(() => {
|
|
57576
57576
|
i.model.change((c) => {
|
|
57577
57577
|
this._timeoutId = null, c.remove(o), o.detach();
|
|
57578
57578
|
let u = null;
|
|
@@ -57585,7 +57585,7 @@ class J8 extends w {
|
|
|
57585
57585
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
57586
57586
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
57587
57587
|
*/
|
|
57588
|
-
class Y8 extends
|
|
57588
|
+
class Y8 extends S {
|
|
57589
57589
|
/**
|
|
57590
57590
|
* @param validators Form validators used by {@link #isValid}.
|
|
57591
57591
|
* @param locale The localization services instance.
|
|
@@ -57593,7 +57593,7 @@ class Y8 extends T {
|
|
|
57593
57593
|
constructor(e, t) {
|
|
57594
57594
|
super(t);
|
|
57595
57595
|
const i = t.t;
|
|
57596
|
-
this.focusTracker = new ne(), this.keystrokes = new ae(), this.set("mediaURLInputValue", ""), this.urlInputView = this._createUrlInput(), this.saveButtonView = this._createButton(i("Save"),
|
|
57596
|
+
this.focusTracker = new ne(), this.keystrokes = new ae(), this.set("mediaURLInputValue", ""), this.urlInputView = this._createUrlInput(), this.saveButtonView = this._createButton(i("Save"), P.check, "ck-button-save"), this.saveButtonView.type = "submit", this.saveButtonView.bind("isEnabled").to(this, "mediaURLInputValue", (s) => !!s), this.cancelButtonView = this._createButton(i("Cancel"), P.cancel, "ck-button-cancel", "cancel"), this._focusables = new Ae(), this._focusCycler = new ke({
|
|
57597
57597
|
focusables: this._focusables,
|
|
57598
57598
|
focusTracker: this.focusTracker,
|
|
57599
57599
|
keystrokeHandler: this.keystrokes,
|
|
@@ -57702,7 +57702,7 @@ class Y8 extends T {
|
|
|
57702
57702
|
* @returns The button view instance.
|
|
57703
57703
|
*/
|
|
57704
57704
|
_createButton(e, t, i, s) {
|
|
57705
|
-
const o = new
|
|
57705
|
+
const o = new O(this.locale);
|
|
57706
57706
|
return o.set({
|
|
57707
57707
|
label: e,
|
|
57708
57708
|
icon: t,
|
|
@@ -58119,13 +58119,13 @@ function uV(n) {
|
|
|
58119
58119
|
e = oh("div");
|
|
58120
58120
|
},
|
|
58121
58121
|
m(t, i) {
|
|
58122
|
-
sh(t, e, i), n[
|
|
58122
|
+
sh(t, e, i), n[14](e);
|
|
58123
58123
|
},
|
|
58124
58124
|
p: Li,
|
|
58125
58125
|
i: Li,
|
|
58126
58126
|
o: Li,
|
|
58127
58127
|
d(t) {
|
|
58128
|
-
t && ca(e), n[
|
|
58128
|
+
t && ca(e), n[14](null);
|
|
58129
58129
|
}
|
|
58130
58130
|
};
|
|
58131
58131
|
}
|
|
@@ -58177,44 +58177,45 @@ function hV(n, e, t) {
|
|
|
58177
58177
|
"selectAll",
|
|
58178
58178
|
"|",
|
|
58179
58179
|
"sourceEditing"
|
|
58180
|
-
] } = e, { allowHtmlSupport: r = !1 } = e, { value: a = "" } = e, { placeHolder: l = "" } = e, { lang: c = "en" } = e, { valueChange: u = (
|
|
58181
|
-
} } = e, { stateChange: d = (
|
|
58182
|
-
} } = e
|
|
58183
|
-
|
|
58184
|
-
|
|
58185
|
-
|
|
58186
|
-
|
|
58187
|
-
|
|
58188
|
-
|
|
58180
|
+
] } = e, { allowHtmlSupport: r = !1 } = e, { value: a = "" } = e, { placeHolder: l = "" } = e, { lang: c = "en" } = e, { valueChange: u = (C, L) => {
|
|
58181
|
+
} } = e, { stateChange: d = (C, L) => {
|
|
58182
|
+
} } = e;
|
|
58183
|
+
const h = () => f;
|
|
58184
|
+
let f = null, m = null;
|
|
58185
|
+
function p(C) {
|
|
58186
|
+
C.plugins.get("FileRepository").createUploadAdapter = (L) => new cV(L, i, s);
|
|
58187
|
+
}
|
|
58188
|
+
const _ = (C) => {
|
|
58189
|
+
f != null && (f.focus(), f.model.change((L) => {
|
|
58190
|
+
if (f == null)
|
|
58189
58191
|
return;
|
|
58190
|
-
let
|
|
58191
|
-
if (
|
|
58192
|
+
let D = f.model.document.getRoot();
|
|
58193
|
+
if (D == null)
|
|
58192
58194
|
return;
|
|
58193
|
-
const
|
|
58194
|
-
if (
|
|
58195
|
-
|
|
58196
|
-
const
|
|
58197
|
-
|
|
58198
|
-
const
|
|
58199
|
-
|
|
58195
|
+
const E = dV(C, L, D);
|
|
58196
|
+
if (E != null) {
|
|
58197
|
+
L.setSelection(L.createPositionBefore(E)), L.remove(E);
|
|
58198
|
+
const R = E.data.split(C);
|
|
58199
|
+
L.insertText(R[0], f.model.document.selection.getFirstPosition() ?? void 0);
|
|
58200
|
+
const I = f.model.document.selection.getFirstPosition();
|
|
58201
|
+
L.insertText(R[1], f.model.document.selection.getFirstPosition() ?? void 0), L.setSelection(I);
|
|
58200
58202
|
}
|
|
58201
58203
|
}));
|
|
58202
|
-
}
|
|
58203
|
-
|
|
58204
|
-
|
|
58205
|
-
if (h == null)
|
|
58204
|
+
}, y = (C) => {
|
|
58205
|
+
f != null && (f.focus(), f.model.change((L) => {
|
|
58206
|
+
if (f == null)
|
|
58206
58207
|
return;
|
|
58207
|
-
let
|
|
58208
|
-
if (
|
|
58208
|
+
let D = JSON.parse(C);
|
|
58209
|
+
if (D.root == null || D.path == null || D.stickiness == null)
|
|
58209
58210
|
return;
|
|
58210
|
-
let
|
|
58211
|
-
|
|
58211
|
+
let E = f.model.document.getRoot(D.root);
|
|
58212
|
+
E != null && L.setSelection(L.createPositionFromPath(E, D.path, D.stickiness));
|
|
58212
58213
|
}));
|
|
58213
|
-
}
|
|
58214
|
+
};
|
|
58214
58215
|
lV.create(a, {
|
|
58215
58216
|
placeholder: l,
|
|
58216
58217
|
toolbar: o,
|
|
58217
|
-
extraPlugins: [
|
|
58218
|
+
extraPlugins: [p],
|
|
58218
58219
|
htmlSupport: {
|
|
58219
58220
|
allow: r ? [
|
|
58220
58221
|
{
|
|
@@ -58226,31 +58227,30 @@ function hV(n, e, t) {
|
|
|
58226
58227
|
] : []
|
|
58227
58228
|
},
|
|
58228
58229
|
language: { ui: c }
|
|
58229
|
-
}).then((
|
|
58230
|
-
t(
|
|
58231
|
-
t(
|
|
58232
|
-
}),
|
|
58233
|
-
d(
|
|
58230
|
+
}).then((C) => {
|
|
58231
|
+
t(13, f = C), m != null && C.ui.view.element != null && m.appendChild(C.ui.view.element), C.model.document.on("change:data", (L, D) => {
|
|
58232
|
+
t(1, a = C.getData()), u(L, D);
|
|
58233
|
+
}), C.on("change:state", (L, D, E, R) => {
|
|
58234
|
+
d(L, E);
|
|
58234
58235
|
}), d(null, "ready");
|
|
58235
|
-
}).catch((
|
|
58236
|
-
console.error(
|
|
58236
|
+
}).catch((C) => {
|
|
58237
|
+
console.error(C.stack);
|
|
58237
58238
|
});
|
|
58238
|
-
function C
|
|
58239
|
-
cr[
|
|
58240
|
-
|
|
58239
|
+
function T(C) {
|
|
58240
|
+
cr[C ? "unshift" : "push"](() => {
|
|
58241
|
+
m = C, t(0, m);
|
|
58241
58242
|
});
|
|
58242
58243
|
}
|
|
58243
|
-
return n.$$set = (
|
|
58244
|
-
"insertImageServiceUrl" in
|
|
58244
|
+
return n.$$set = (C) => {
|
|
58245
|
+
"insertImageServiceUrl" in C && t(2, i = C.insertImageServiceUrl), "getImageServiceUrl" in C && t(3, s = C.getImageServiceUrl), "items" in C && t(4, o = C.items), "allowHtmlSupport" in C && t(5, r = C.allowHtmlSupport), "value" in C && t(1, a = C.value), "placeHolder" in C && t(6, l = C.placeHolder), "lang" in C && t(7, c = C.lang), "valueChange" in C && t(8, u = C.valueChange), "stateChange" in C && t(9, d = C.stateChange);
|
|
58245
58246
|
}, n.$$.update = () => {
|
|
58246
58247
|
if (n.$$.dirty & /*editor, placeHolder*/
|
|
58247
|
-
|
|
58248
|
-
let
|
|
58249
|
-
|
|
58248
|
+
8256) {
|
|
58249
|
+
let C;
|
|
58250
|
+
f != null && (C = f.editing.view.document.getRoot("main")) != null && C.placeholder != l && (C.placeholder = l);
|
|
58250
58251
|
}
|
|
58251
58252
|
}, [
|
|
58252
|
-
|
|
58253
|
-
h,
|
|
58253
|
+
m,
|
|
58254
58254
|
a,
|
|
58255
58255
|
i,
|
|
58256
58256
|
s,
|
|
@@ -58260,87 +58260,86 @@ function hV(n, e, t) {
|
|
|
58260
58260
|
c,
|
|
58261
58261
|
u,
|
|
58262
58262
|
d,
|
|
58263
|
-
|
|
58263
|
+
h,
|
|
58264
58264
|
_,
|
|
58265
|
-
|
|
58265
|
+
y,
|
|
58266
|
+
f,
|
|
58267
|
+
T
|
|
58266
58268
|
];
|
|
58267
58269
|
}
|
|
58268
58270
|
class fV extends Xp {
|
|
58269
58271
|
constructor(e) {
|
|
58270
58272
|
super(), Yp(this, e, hV, uV, Op, {
|
|
58271
|
-
insertImageServiceUrl:
|
|
58272
|
-
getImageServiceUrl:
|
|
58273
|
-
items:
|
|
58274
|
-
allowHtmlSupport:
|
|
58275
|
-
value:
|
|
58276
|
-
placeHolder:
|
|
58277
|
-
lang:
|
|
58278
|
-
valueChange:
|
|
58279
|
-
stateChange:
|
|
58280
|
-
|
|
58273
|
+
insertImageServiceUrl: 2,
|
|
58274
|
+
getImageServiceUrl: 3,
|
|
58275
|
+
items: 4,
|
|
58276
|
+
allowHtmlSupport: 5,
|
|
58277
|
+
value: 1,
|
|
58278
|
+
placeHolder: 6,
|
|
58279
|
+
lang: 7,
|
|
58280
|
+
valueChange: 8,
|
|
58281
|
+
stateChange: 9,
|
|
58282
|
+
getEditor: 10,
|
|
58281
58283
|
setCursorPositionAtPlaceholder: 11,
|
|
58282
58284
|
setCursorPositionFromJSONString: 12
|
|
58283
58285
|
});
|
|
58284
58286
|
}
|
|
58285
58287
|
get insertImageServiceUrl() {
|
|
58286
|
-
return this.$$.ctx[
|
|
58288
|
+
return this.$$.ctx[2];
|
|
58287
58289
|
}
|
|
58288
58290
|
set insertImageServiceUrl(e) {
|
|
58289
|
-
this.$$set({ insertImageServiceUrl: e }),
|
|
58291
|
+
this.$$set({ insertImageServiceUrl: e }), qe();
|
|
58290
58292
|
}
|
|
58291
58293
|
get getImageServiceUrl() {
|
|
58292
|
-
return this.$$.ctx[
|
|
58294
|
+
return this.$$.ctx[3];
|
|
58293
58295
|
}
|
|
58294
58296
|
set getImageServiceUrl(e) {
|
|
58295
|
-
this.$$set({ getImageServiceUrl: e }),
|
|
58297
|
+
this.$$set({ getImageServiceUrl: e }), qe();
|
|
58296
58298
|
}
|
|
58297
58299
|
get items() {
|
|
58298
|
-
return this.$$.ctx[
|
|
58300
|
+
return this.$$.ctx[4];
|
|
58299
58301
|
}
|
|
58300
58302
|
set items(e) {
|
|
58301
|
-
this.$$set({ items: e }),
|
|
58303
|
+
this.$$set({ items: e }), qe();
|
|
58302
58304
|
}
|
|
58303
58305
|
get allowHtmlSupport() {
|
|
58304
|
-
return this.$$.ctx[
|
|
58306
|
+
return this.$$.ctx[5];
|
|
58305
58307
|
}
|
|
58306
58308
|
set allowHtmlSupport(e) {
|
|
58307
|
-
this.$$set({ allowHtmlSupport: e }),
|
|
58309
|
+
this.$$set({ allowHtmlSupport: e }), qe();
|
|
58308
58310
|
}
|
|
58309
58311
|
get value() {
|
|
58310
|
-
return this.$$.ctx[
|
|
58312
|
+
return this.$$.ctx[1];
|
|
58311
58313
|
}
|
|
58312
58314
|
set value(e) {
|
|
58313
|
-
this.$$set({ value: e }),
|
|
58315
|
+
this.$$set({ value: e }), qe();
|
|
58314
58316
|
}
|
|
58315
58317
|
get placeHolder() {
|
|
58316
|
-
return this.$$.ctx[
|
|
58318
|
+
return this.$$.ctx[6];
|
|
58317
58319
|
}
|
|
58318
58320
|
set placeHolder(e) {
|
|
58319
|
-
this.$$set({ placeHolder: e }),
|
|
58321
|
+
this.$$set({ placeHolder: e }), qe();
|
|
58320
58322
|
}
|
|
58321
58323
|
get lang() {
|
|
58322
|
-
return this.$$.ctx[
|
|
58324
|
+
return this.$$.ctx[7];
|
|
58323
58325
|
}
|
|
58324
58326
|
set lang(e) {
|
|
58325
|
-
this.$$set({ lang: e }),
|
|
58327
|
+
this.$$set({ lang: e }), qe();
|
|
58326
58328
|
}
|
|
58327
58329
|
get valueChange() {
|
|
58328
|
-
return this.$$.ctx[
|
|
58330
|
+
return this.$$.ctx[8];
|
|
58329
58331
|
}
|
|
58330
58332
|
set valueChange(e) {
|
|
58331
|
-
this.$$set({ valueChange: e }),
|
|
58333
|
+
this.$$set({ valueChange: e }), qe();
|
|
58332
58334
|
}
|
|
58333
58335
|
get stateChange() {
|
|
58334
|
-
return this.$$.ctx[
|
|
58336
|
+
return this.$$.ctx[9];
|
|
58335
58337
|
}
|
|
58336
58338
|
set stateChange(e) {
|
|
58337
|
-
this.$$set({ stateChange: e }),
|
|
58339
|
+
this.$$set({ stateChange: e }), qe();
|
|
58338
58340
|
}
|
|
58339
|
-
get
|
|
58340
|
-
return this.$$.ctx[
|
|
58341
|
-
}
|
|
58342
|
-
set editor(e) {
|
|
58343
|
-
this.$$set({ editor: e }), ze();
|
|
58341
|
+
get getEditor() {
|
|
58342
|
+
return this.$$.ctx[10];
|
|
58344
58343
|
}
|
|
58345
58344
|
get setCursorPositionAtPlaceholder() {
|
|
58346
58345
|
return this.$$.ctx[11];
|
|
@@ -58349,7 +58348,7 @@ class fV extends Xp {
|
|
|
58349
58348
|
return this.$$.ctx[12];
|
|
58350
58349
|
}
|
|
58351
58350
|
}
|
|
58352
|
-
customElements.define("ckeditor5-classic", Qp(fV, { insertImageServiceUrl: {}, getImageServiceUrl: {}, items: {}, allowHtmlSupport: { type: "Boolean" }, value: {}, placeHolder: {}, lang: {}, valueChange: {}, stateChange: {}
|
|
58351
|
+
customElements.define("ckeditor5-classic", Qp(fV, { insertImageServiceUrl: {}, getImageServiceUrl: {}, items: {}, allowHtmlSupport: { type: "Boolean" }, value: {}, placeHolder: {}, lang: {}, valueChange: {}, stateChange: {} }, [], ["getEditor", "setCursorPositionAtPlaceholder", "setCursorPositionFromJSONString"], !1));
|
|
58353
58352
|
export {
|
|
58354
58353
|
Zp as A,
|
|
58355
58354
|
CV as B,
|
|
@@ -58361,7 +58360,7 @@ export {
|
|
|
58361
58360
|
Qp as c,
|
|
58362
58361
|
sh as d,
|
|
58363
58362
|
oh as e,
|
|
58364
|
-
|
|
58363
|
+
qe as f,
|
|
58365
58364
|
mV as g,
|
|
58366
58365
|
ca as h,
|
|
58367
58366
|
Yp as i,
|