@eox/layercontrol 0.21.0 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eox-layercontrol.js +167 -160
- package/dist/eox-layercontrol.umd.cjs +64 -57
- package/package.json +1 -1
package/dist/eox-layercontrol.js
CHANGED
|
@@ -281,7 +281,7 @@ Ut.elementStyles = [], Ut.shadowRootOptions = { mode: "open" }, Ut[re("elementPr
|
|
|
281
281
|
*/
|
|
282
282
|
const se = globalThis, Le = se.trustedTypes, si = Le ? Le.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, jn = "$lit$", pt = `lit$${Math.random().toFixed(9).slice(2)}$`, Zn = "?" + pt, er = `<${Zn}>`, Lt = document, he = () => Lt.createComment(""), pe = (e) => e === null || typeof e != "object" && typeof e != "function", zn = Array.isArray, Mi = (e) => zn(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", mn = `[
|
|
283
283
|
\f\r]`, te = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ai = /-->/g, li = />/g, Ot = RegExp(`>|${mn}(?:([^\\s"'>=/]+)(${mn}*=${mn}*(?:[^
|
|
284
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), ui = /'/g,
|
|
284
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ui = /'/g, di = /"/g, Ii = /^(?:script|style|textarea|title)$/i, nr = (e) => (t, ...n) => ({ _$litType$: e, strings: t, values: n }), x = nr(1), at = Symbol.for("lit-noChange"), C = Symbol.for("lit-nothing"), ci = /* @__PURE__ */ new WeakMap(), Nt = Lt.createTreeWalker(Lt, 129);
|
|
285
285
|
function Ni(e, t) {
|
|
286
286
|
if (!zn(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
287
287
|
return si !== void 0 ? si.createHTML(t) : t;
|
|
@@ -291,10 +291,10 @@ const Hi = (e, t) => {
|
|
|
291
291
|
let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = te;
|
|
292
292
|
for (let a = 0; a < n; a++) {
|
|
293
293
|
const l = e[a];
|
|
294
|
-
let u,
|
|
295
|
-
for (; p < l.length && (s.lastIndex = p,
|
|
294
|
+
let u, c, d = -1, p = 0;
|
|
295
|
+
for (; p < l.length && (s.lastIndex = p, c = s.exec(l), c !== null); ) p = s.lastIndex, s === te ? c[1] === "!--" ? s = ai : c[1] !== void 0 ? s = li : c[2] !== void 0 ? (Ii.test(c[2]) && (o = RegExp("</" + c[2], "g")), s = Ot) : c[3] !== void 0 && (s = Ot) : s === Ot ? c[0] === ">" ? (s = o ?? te, d = -1) : c[1] === void 0 ? d = -2 : (d = s.lastIndex - c[2].length, u = c[1], s = c[3] === void 0 ? Ot : c[3] === '"' ? di : ui) : s === di || s === ui ? s = Ot : s === ai || s === li ? s = te : (s = Ot, o = void 0);
|
|
296
296
|
const f = s === Ot && e[a + 1].startsWith("/>") ? " " : "";
|
|
297
|
-
r += s === te ? l + er :
|
|
297
|
+
r += s === te ? l + er : d >= 0 ? (i.push(u), l.slice(0, d) + jn + l.slice(d) + pt + f) : l + pt + (d === -2 ? a : f);
|
|
298
298
|
}
|
|
299
299
|
return [Ni(e, r + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
300
300
|
};
|
|
@@ -303,29 +303,29 @@ class fe {
|
|
|
303
303
|
let o;
|
|
304
304
|
this.parts = [];
|
|
305
305
|
let r = 0, s = 0;
|
|
306
|
-
const a = t.length - 1, l = this.parts, [u,
|
|
306
|
+
const a = t.length - 1, l = this.parts, [u, c] = Hi(t, n);
|
|
307
307
|
if (this.el = fe.createElement(u, i), Nt.currentNode = this.el.content, n === 2 || n === 3) {
|
|
308
|
-
const
|
|
309
|
-
|
|
308
|
+
const d = this.el.content.firstChild;
|
|
309
|
+
d.replaceWith(...d.childNodes);
|
|
310
310
|
}
|
|
311
311
|
for (; (o = Nt.nextNode()) !== null && l.length < a; ) {
|
|
312
312
|
if (o.nodeType === 1) {
|
|
313
|
-
if (o.hasAttributes()) for (const
|
|
314
|
-
const p =
|
|
315
|
-
l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Vi : g[1] === "?" ? ki : g[1] === "@" ? Ui : we }), o.removeAttribute(
|
|
316
|
-
} else
|
|
313
|
+
if (o.hasAttributes()) for (const d of o.getAttributeNames()) if (d.endsWith(jn)) {
|
|
314
|
+
const p = c[s++], f = o.getAttribute(d).split(pt), g = /([.?@])?(.*)/.exec(p);
|
|
315
|
+
l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Vi : g[1] === "?" ? ki : g[1] === "@" ? Ui : we }), o.removeAttribute(d);
|
|
316
|
+
} else d.startsWith(pt) && (l.push({ type: 6, index: r }), o.removeAttribute(d));
|
|
317
317
|
if (Ii.test(o.tagName)) {
|
|
318
|
-
const
|
|
318
|
+
const d = o.textContent.split(pt), p = d.length - 1;
|
|
319
319
|
if (p > 0) {
|
|
320
320
|
o.textContent = Le ? Le.emptyScript : "";
|
|
321
|
-
for (let f = 0; f < p; f++) o.append(
|
|
322
|
-
o.append(
|
|
321
|
+
for (let f = 0; f < p; f++) o.append(d[f], he()), Nt.nextNode(), l.push({ type: 2, index: ++r });
|
|
322
|
+
o.append(d[p], he());
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
} else if (o.nodeType === 8) if (o.data === Zn) l.push({ type: 2, index: r });
|
|
326
326
|
else {
|
|
327
|
-
let
|
|
328
|
-
for (; (
|
|
327
|
+
let d = -1;
|
|
328
|
+
for (; (d = o.data.indexOf(pt, d + 1)) !== -1; ) l.push({ type: 7, index: r }), d += pt.length - 1;
|
|
329
329
|
}
|
|
330
330
|
r++;
|
|
331
331
|
}
|
|
@@ -359,7 +359,7 @@ class Li {
|
|
|
359
359
|
for (; l !== void 0; ) {
|
|
360
360
|
if (s === l.index) {
|
|
361
361
|
let u;
|
|
362
|
-
l.type === 2 ? u = new
|
|
362
|
+
l.type === 2 ? u = new cn(r, r.nextSibling, this, t) : l.type === 1 ? u = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (u = new Fi(r, this, t)), this._$AV.push(u), l = i[++a];
|
|
363
363
|
}
|
|
364
364
|
s !== (l == null ? void 0 : l.index) && (r = Nt.nextNode(), s++);
|
|
365
365
|
}
|
|
@@ -370,7 +370,7 @@ class Li {
|
|
|
370
370
|
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, n), n += i.strings.length - 2) : i._$AI(t[n])), n++;
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
let
|
|
373
|
+
let cn = class Bi {
|
|
374
374
|
get _$AU() {
|
|
375
375
|
var t;
|
|
376
376
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this.v;
|
|
@@ -411,8 +411,8 @@ let dn = class Bi {
|
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
_$AC(t) {
|
|
414
|
-
let n =
|
|
415
|
-
return n === void 0 &&
|
|
414
|
+
let n = ci.get(t.strings);
|
|
415
|
+
return n === void 0 && ci.set(t.strings, n = new fe(t)), n;
|
|
416
416
|
}
|
|
417
417
|
k(t) {
|
|
418
418
|
zn(this._$AH) || (this._$AH = [], this._$AR());
|
|
@@ -499,14 +499,14 @@ class Fi {
|
|
|
499
499
|
Bt(this, t);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
const ir = { M: jn, P: pt, A: Zn, C: 1, L: Hi, R: Li, D: Mi, V: Bt, I:
|
|
503
|
-
yn == null || yn(fe,
|
|
502
|
+
const ir = { M: jn, P: pt, A: Zn, C: 1, L: Hi, R: Li, D: Mi, V: Bt, I: cn, H: we, N: ki, U: Ui, B: Vi, F: Fi }, yn = se.litHtmlPolyfillSupport;
|
|
503
|
+
yn == null || yn(fe, cn), (se.litHtmlVersions ?? (se.litHtmlVersions = [])).push("3.2.0");
|
|
504
504
|
const or = (e, t, n) => {
|
|
505
505
|
const i = (n == null ? void 0 : n.renderBefore) ?? t;
|
|
506
506
|
let o = i._$litPart$;
|
|
507
507
|
if (o === void 0) {
|
|
508
508
|
const r = (n == null ? void 0 : n.renderBefore) ?? null;
|
|
509
|
-
i._$litPart$ = o = new
|
|
509
|
+
i._$litPart$ = o = new cn(t.insertBefore(he(), r), r, void 0, n ?? {});
|
|
510
510
|
}
|
|
511
511
|
return o._$AI(e), o;
|
|
512
512
|
};
|
|
@@ -595,8 +595,8 @@ const { I: rr } = ir, sr = (e) => e.strings === void 0, hi = () => document.crea
|
|
|
595
595
|
if (s !== o || l) {
|
|
596
596
|
let u = n._$AA;
|
|
597
597
|
for (; u !== s; ) {
|
|
598
|
-
const
|
|
599
|
-
i.insertBefore(u, o), u =
|
|
598
|
+
const c = u.nextSibling;
|
|
599
|
+
i.insertBefore(u, o), u = c;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
602
|
}
|
|
@@ -639,28 +639,28 @@ const pi = (e, t, n) => {
|
|
|
639
639
|
const o = lr(e), { values: r, keys: s } = this.dt(t, n, i);
|
|
640
640
|
if (!Array.isArray(o)) return this.ut = s, r;
|
|
641
641
|
const a = this.ut ?? (this.ut = []), l = [];
|
|
642
|
-
let u,
|
|
643
|
-
for (;
|
|
642
|
+
let u, c, d = 0, p = o.length - 1, f = 0, g = r.length - 1;
|
|
643
|
+
for (; d <= p && f <= g; ) if (o[d] === null) d++;
|
|
644
644
|
else if (o[p] === null) p--;
|
|
645
|
-
else if (a[
|
|
645
|
+
else if (a[d] === s[f]) l[f] = Dt(o[d], r[f]), d++, f++;
|
|
646
646
|
else if (a[p] === s[g]) l[g] = Dt(o[p], r[g]), p--, g--;
|
|
647
|
-
else if (a[
|
|
648
|
-
else if (a[p] === s[f]) l[f] = Dt(o[p], r[f]), ee(e, o[
|
|
649
|
-
else if (u === void 0 && (u = pi(s, f, g),
|
|
650
|
-
const y =
|
|
647
|
+
else if (a[d] === s[g]) l[g] = Dt(o[d], r[g]), ee(e, l[g + 1], o[d]), d++, g--;
|
|
648
|
+
else if (a[p] === s[f]) l[f] = Dt(o[p], r[f]), ee(e, o[d], o[p]), p--, f++;
|
|
649
|
+
else if (u === void 0 && (u = pi(s, f, g), c = pi(a, d, p)), u.has(a[d])) if (u.has(a[p])) {
|
|
650
|
+
const y = c.get(s[f]), O = y !== void 0 ? o[y] : null;
|
|
651
651
|
if (O === null) {
|
|
652
|
-
const I = ee(e, o[
|
|
652
|
+
const I = ee(e, o[d]);
|
|
653
653
|
Dt(I, r[f]), l[f] = I;
|
|
654
|
-
} else l[f] = Dt(O, r[f]), ee(e, o[
|
|
654
|
+
} else l[f] = Dt(O, r[f]), ee(e, o[d], O), o[y] = null;
|
|
655
655
|
f++;
|
|
656
656
|
} else vn(o[p]), p--;
|
|
657
|
-
else vn(o[
|
|
657
|
+
else vn(o[d]), d++;
|
|
658
658
|
for (; f <= g; ) {
|
|
659
659
|
const y = ee(e, l[g + 1]);
|
|
660
660
|
Dt(y, r[f]), l[f++] = y;
|
|
661
661
|
}
|
|
662
|
-
for (;
|
|
663
|
-
const y = o[
|
|
662
|
+
for (; d <= p; ) {
|
|
663
|
+
const y = o[d++];
|
|
664
664
|
y !== null && vn(y);
|
|
665
665
|
}
|
|
666
666
|
return this.ut = s, ji(e, l), at;
|
|
@@ -687,7 +687,7 @@ const ge = {
|
|
|
687
687
|
DOCUMENT_FRAGMENT: 11,
|
|
688
688
|
NOTATION: 12
|
|
689
689
|
};
|
|
690
|
-
class
|
|
690
|
+
class dr {
|
|
691
691
|
/**
|
|
692
692
|
* XML DOM parser
|
|
693
693
|
* @constructor
|
|
@@ -728,7 +728,7 @@ function zi(e, t, n) {
|
|
|
728
728
|
}
|
|
729
729
|
return n;
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function cr(e, t, n, i) {
|
|
732
732
|
for (var o = hr(t); o; o = pr(o)) {
|
|
733
733
|
var r = o.namespaceURI || null, s = e[r];
|
|
734
734
|
if (S(s)) {
|
|
@@ -781,7 +781,7 @@ function Xi(e, t) {
|
|
|
781
781
|
);
|
|
782
782
|
}
|
|
783
783
|
function F(e, t, n, i, o) {
|
|
784
|
-
return i.push(e),
|
|
784
|
+
return i.push(e), cr(t, n, i, o), i.pop();
|
|
785
785
|
}
|
|
786
786
|
function m(e, t, n) {
|
|
787
787
|
return (
|
|
@@ -995,15 +995,15 @@ function Or(e, t) {
|
|
|
995
995
|
S(l) || (l = n.fixedWidth), i.fixedWidth = l;
|
|
996
996
|
let u = ft(e.getAttribute("fixedHeight"));
|
|
997
997
|
S(u) || (u = n.fixedHeight), i.fixedHeight = u;
|
|
998
|
-
const
|
|
999
|
-
for (let p = 0, f =
|
|
1000
|
-
const g =
|
|
998
|
+
const c = ["Style", "CRS", "AuthorityURL"];
|
|
999
|
+
for (let p = 0, f = c.length; p < f; p++) {
|
|
1000
|
+
const g = c[p], y = n[g];
|
|
1001
1001
|
if (S(y)) {
|
|
1002
1002
|
let O = Zi(i, g, []);
|
|
1003
1003
|
O = O.concat(y), i[g] = O;
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
1006
|
-
const
|
|
1006
|
+
const d = [
|
|
1007
1007
|
"EX_GeographicBoundingBox",
|
|
1008
1008
|
"BoundingBox",
|
|
1009
1009
|
"Dimension",
|
|
@@ -1011,8 +1011,8 @@ function Or(e, t) {
|
|
|
1011
1011
|
"MinScaleDenominator",
|
|
1012
1012
|
"MaxScaleDenominator"
|
|
1013
1013
|
];
|
|
1014
|
-
for (let p = 0, f =
|
|
1015
|
-
const g =
|
|
1014
|
+
for (let p = 0, f = d.length; p < f; p++) {
|
|
1015
|
+
const g = d[p], y = i[g];
|
|
1016
1016
|
if (!S(y)) {
|
|
1017
1017
|
const O = n[g];
|
|
1018
1018
|
i[g] = O;
|
|
@@ -1250,7 +1250,7 @@ class ts {
|
|
|
1250
1250
|
* @constructor
|
|
1251
1251
|
*/
|
|
1252
1252
|
constructor(t, n) {
|
|
1253
|
-
!n && typeof window < "u" && (n = window.DOMParser), this.version = void 0, this._parser = new
|
|
1253
|
+
!n && typeof window < "u" && (n = window.DOMParser), this.version = void 0, this._parser = new dr(n), this._data = t;
|
|
1254
1254
|
}
|
|
1255
1255
|
/**
|
|
1256
1256
|
* @param {String} xmlString
|
|
@@ -1351,7 +1351,7 @@ function fi(e, t) {
|
|
|
1351
1351
|
}
|
|
1352
1352
|
return n;
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function ct(e) {
|
|
1355
1355
|
for (var t = 1; t < arguments.length; t++) {
|
|
1356
1356
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
1357
1357
|
t % 2 ? fi(Object(n), !0).forEach(function(i) {
|
|
@@ -1490,14 +1490,14 @@ function no(e, t, n) {
|
|
|
1490
1490
|
}
|
|
1491
1491
|
return [];
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1493
|
+
function dt() {
|
|
1494
1494
|
var e = document.scrollingElement;
|
|
1495
1495
|
return e || document.documentElement;
|
|
1496
1496
|
}
|
|
1497
1497
|
function k(e, t, n, i, o) {
|
|
1498
1498
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
1499
|
-
var r, s, a, l, u,
|
|
1500
|
-
if (e !== window && e.parentNode && e !==
|
|
1499
|
+
var r, s, a, l, u, c, d;
|
|
1500
|
+
if (e !== window && e.parentNode && e !== dt() ? (r = e.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, u = r.right, c = r.height, d = r.width) : (s = 0, a = 0, l = window.innerHeight, u = window.innerWidth, c = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (o = o || e.parentNode, !bt))
|
|
1501
1501
|
do
|
|
1502
1502
|
if (o && o.getBoundingClientRect && (v(o, "transform") !== "none" || n && v(o, "position") !== "static")) {
|
|
1503
1503
|
var p = o.getBoundingClientRect();
|
|
@@ -1507,15 +1507,15 @@ function k(e, t, n, i, o) {
|
|
|
1507
1507
|
while (o = o.parentNode);
|
|
1508
1508
|
if (i && e !== window) {
|
|
1509
1509
|
var f = zt(o || e), g = f && f.a, y = f && f.d;
|
|
1510
|
-
f && (s /= y, a /= g,
|
|
1510
|
+
f && (s /= y, a /= g, d /= g, c /= y, l = s + c, u = a + d);
|
|
1511
1511
|
}
|
|
1512
1512
|
return {
|
|
1513
1513
|
top: s,
|
|
1514
1514
|
left: a,
|
|
1515
1515
|
bottom: l,
|
|
1516
1516
|
right: u,
|
|
1517
|
-
width:
|
|
1518
|
-
height:
|
|
1517
|
+
width: d,
|
|
1518
|
+
height: c
|
|
1519
1519
|
};
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
@@ -1523,7 +1523,7 @@ function yi(e, t, n) {
|
|
|
1523
1523
|
for (var i = At(e, !0), o = k(e)[t]; i; ) {
|
|
1524
1524
|
var r = k(i)[n], s = void 0;
|
|
1525
1525
|
if (s = o >= r, !s) return i;
|
|
1526
|
-
if (i ===
|
|
1526
|
+
if (i === dt()) break;
|
|
1527
1527
|
i = At(i, !1);
|
|
1528
1528
|
}
|
|
1529
1529
|
return !1;
|
|
@@ -1553,7 +1553,7 @@ function st(e, t) {
|
|
|
1553
1553
|
return n;
|
|
1554
1554
|
}
|
|
1555
1555
|
function bi(e) {
|
|
1556
|
-
var t = 0, n = 0, i =
|
|
1556
|
+
var t = 0, n = 0, i = dt();
|
|
1557
1557
|
if (e)
|
|
1558
1558
|
do {
|
|
1559
1559
|
var o = zt(e), r = o.a, s = o.d;
|
|
@@ -1570,21 +1570,21 @@ function us(e, t) {
|
|
|
1570
1570
|
return -1;
|
|
1571
1571
|
}
|
|
1572
1572
|
function At(e, t) {
|
|
1573
|
-
if (!e || !e.getBoundingClientRect) return
|
|
1573
|
+
if (!e || !e.getBoundingClientRect) return dt();
|
|
1574
1574
|
var n = e, i = !1;
|
|
1575
1575
|
do
|
|
1576
1576
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
1577
1577
|
var o = v(n);
|
|
1578
1578
|
if (n.clientWidth < n.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) {
|
|
1579
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
1579
|
+
if (!n.getBoundingClientRect || n === document.body) return dt();
|
|
1580
1580
|
if (i || t) return n;
|
|
1581
1581
|
i = !0;
|
|
1582
1582
|
}
|
|
1583
1583
|
}
|
|
1584
1584
|
while (n = n.parentNode);
|
|
1585
|
-
return
|
|
1585
|
+
return dt();
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function ds(e, t) {
|
|
1588
1588
|
if (e && t)
|
|
1589
1589
|
for (var n in t)
|
|
1590
1590
|
t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
@@ -1604,7 +1604,7 @@ function io(e, t) {
|
|
|
1604
1604
|
}
|
|
1605
1605
|
};
|
|
1606
1606
|
}
|
|
1607
|
-
function
|
|
1607
|
+
function cs() {
|
|
1608
1608
|
clearTimeout(le), le = void 0;
|
|
1609
1609
|
}
|
|
1610
1610
|
function oo(e, t, n) {
|
|
@@ -1637,7 +1637,7 @@ function hs() {
|
|
|
1637
1637
|
target: o,
|
|
1638
1638
|
rect: k(o)
|
|
1639
1639
|
});
|
|
1640
|
-
var r =
|
|
1640
|
+
var r = ct({}, e[e.length - 1].rect);
|
|
1641
1641
|
if (o.thisAnimationDuration) {
|
|
1642
1642
|
var s = zt(o, !0);
|
|
1643
1643
|
s && (r.top -= s.f, r.left -= s.e);
|
|
@@ -1663,9 +1663,9 @@ function hs() {
|
|
|
1663
1663
|
}
|
|
1664
1664
|
var r = !1, s = 0;
|
|
1665
1665
|
e.forEach(function(a) {
|
|
1666
|
-
var l = 0, u = a.target,
|
|
1667
|
-
y && (
|
|
1668
|
-
(g.top -
|
|
1666
|
+
var l = 0, u = a.target, c = u.fromRect, d = k(u), p = u.prevFromRect, f = u.prevToRect, g = a.rect, y = zt(u, !0);
|
|
1667
|
+
y && (d.top -= y.f, d.left -= y.e), u.toRect = d, u.thisAnimationDuration && xn(p, d) && !xn(c, d) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1668
|
+
(g.top - d.top) / (g.left - d.left) === (c.top - d.top) / (c.left - d.left) && (l = fs(g, p, f, o.options)), xn(d, c) || (u.prevFromRect = c, u.prevToRect = d, l || (l = o.options.animation), o.animate(u, g, d, l)), l && (r = !0, s = Math.max(s, l), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
1669
1669
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
1670
1670
|
}, l), u.thisAnimationDuration = l);
|
|
1671
1671
|
}), clearTimeout(t), r ? t = setTimeout(function() {
|
|
@@ -1675,8 +1675,8 @@ function hs() {
|
|
|
1675
1675
|
animate: function(i, o, r, s) {
|
|
1676
1676
|
if (s) {
|
|
1677
1677
|
v(i, "transition", ""), v(i, "transform", "");
|
|
1678
|
-
var a = zt(this.el), l = a && a.a, u = a && a.d,
|
|
1679
|
-
i.animatingX = !!
|
|
1678
|
+
var a = zt(this.el), l = a && a.a, u = a && a.d, c = (o.left - r.left) / (l || 1), d = (o.top - r.top) / (u || 1);
|
|
1679
|
+
i.animatingX = !!c, i.animatingY = !!d, v(i, "transform", "translate3d(" + c + "px," + d + "px,0)"), this.forRepaintDummy = ps(i), v(i, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(i, "transform", "translate3d(0,0,0)"), typeof i.animated == "number" && clearTimeout(i.animated), i.animated = setTimeout(function() {
|
|
1680
1680
|
v(i, "transition", ""), v(i, "transform", ""), i.animated = !1, i.animatingX = !1, i.animatingY = !1;
|
|
1681
1681
|
}, s);
|
|
1682
1682
|
}
|
|
@@ -1707,9 +1707,9 @@ var Vt = [], Sn = {
|
|
|
1707
1707
|
};
|
|
1708
1708
|
var r = t + "Global";
|
|
1709
1709
|
Vt.forEach(function(s) {
|
|
1710
|
-
n[s.pluginName] && (n[s.pluginName][r] && n[s.pluginName][r](
|
|
1710
|
+
n[s.pluginName] && (n[s.pluginName][r] && n[s.pluginName][r](ct({
|
|
1711
1711
|
sortable: n
|
|
1712
|
-
}, i)), n.options[s.pluginName] && n[s.pluginName][t] && n[s.pluginName][t](
|
|
1712
|
+
}, i)), n.options[s.pluginName] && n[s.pluginName][t] && n[s.pluginName][t](ct({
|
|
1713
1713
|
sortable: n
|
|
1714
1714
|
}, i)));
|
|
1715
1715
|
});
|
|
@@ -1742,14 +1742,14 @@ var Vt = [], Sn = {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
};
|
|
1744
1744
|
function gs(e) {
|
|
1745
|
-
var t = e.sortable, n = e.rootEl, i = e.name, o = e.targetEl, r = e.cloneEl, s = e.toEl, a = e.fromEl, l = e.oldIndex, u = e.newIndex,
|
|
1745
|
+
var t = e.sortable, n = e.rootEl, i = e.name, o = e.targetEl, r = e.cloneEl, s = e.toEl, a = e.fromEl, l = e.oldIndex, u = e.newIndex, c = e.oldDraggableIndex, d = e.newDraggableIndex, p = e.originalEvent, f = e.putSortable, g = e.extraEventProperties;
|
|
1746
1746
|
if (t = t || n && n[nt], !!t) {
|
|
1747
1747
|
var y, O = t.options, I = "on" + i.charAt(0).toUpperCase() + i.substr(1);
|
|
1748
1748
|
window.CustomEvent && !bt && !Ee ? y = new CustomEvent(i, {
|
|
1749
1749
|
bubbles: !0,
|
|
1750
1750
|
cancelable: !0
|
|
1751
|
-
}) : (y = document.createEvent("Event"), y.initEvent(i, !0, !0)), y.to = s || n, y.from = a || n, y.item = o || n, y.clone = r, y.oldIndex = l, y.newIndex = u, y.oldDraggableIndex =
|
|
1752
|
-
var H =
|
|
1751
|
+
}) : (y = document.createEvent("Event"), y.initEvent(i, !0, !0)), y.to = s || n, y.from = a || n, y.item = o || n, y.clone = r, y.oldIndex = l, y.newIndex = u, y.oldDraggableIndex = c, y.newDraggableIndex = d, y.originalEvent = p, y.pullMode = f ? f.lastPutMode : void 0;
|
|
1752
|
+
var H = ct(ct({}, g), xe.getEventProperties(i, t));
|
|
1753
1753
|
for (var J in H)
|
|
1754
1754
|
y[J] = H[J];
|
|
1755
1755
|
n && n.dispatchEvent(y), O[I] && O[I].call(t, y);
|
|
@@ -1757,7 +1757,7 @@ function gs(e) {
|
|
|
1757
1757
|
}
|
|
1758
1758
|
var ms = ["evt"], tt = function(t, n) {
|
|
1759
1759
|
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.evt, r = as(i, ms);
|
|
1760
|
-
xe.pluginEvent.bind(w)(t, n,
|
|
1760
|
+
xe.pluginEvent.bind(w)(t, n, ct({
|
|
1761
1761
|
dragEl: h,
|
|
1762
1762
|
parentEl: N,
|
|
1763
1763
|
ghostEl: E,
|
|
@@ -1792,7 +1792,7 @@ var ms = ["evt"], tt = function(t, n) {
|
|
|
1792
1792
|
}, r));
|
|
1793
1793
|
};
|
|
1794
1794
|
function Q(e) {
|
|
1795
|
-
gs(
|
|
1795
|
+
gs(ct({
|
|
1796
1796
|
putSortable: z,
|
|
1797
1797
|
cloneEl: M,
|
|
1798
1798
|
targetEl: h,
|
|
@@ -1803,7 +1803,7 @@ function Q(e) {
|
|
|
1803
1803
|
newDraggableIndex: xt
|
|
1804
1804
|
}, e));
|
|
1805
1805
|
}
|
|
1806
|
-
var h, N, E, R, It, Oe, M, St, Zt, rt, ue, xt, $e, z, Ft = !1, ke = !1, Ue = [], Rt, lt, $n, An, vi, wi, ne, kt,
|
|
1806
|
+
var h, N, E, R, It, Oe, M, St, Zt, rt, ue, xt, $e, z, Ft = !1, ke = !1, Ue = [], Rt, lt, $n, An, vi, wi, ne, kt, de, ce = !1, Ae = !1, De, W, _n = [], In = !1, Fe = [], pn = typeof document < "u", _e = Ki, Ei = Ee || bt ? "cssFloat" : "float", ys = pn && !Qi && !Ki && "draggable" in document.createElement("div"), ao = function() {
|
|
1807
1807
|
if (pn) {
|
|
1808
1808
|
if (bt)
|
|
1809
1809
|
return !1;
|
|
@@ -1811,16 +1811,16 @@ var h, N, E, R, It, Oe, M, St, Zt, rt, ue, xt, $e, z, Ft = !1, ke = !1, Ue = [],
|
|
|
1811
1811
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
1812
1812
|
}
|
|
1813
1813
|
}(), lo = function(t, n) {
|
|
1814
|
-
var i = v(t), o = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), r = qt(t, 0, n), s = qt(t, 1, n), a = r && v(r), l = s && v(s), u = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + k(r).width,
|
|
1814
|
+
var i = v(t), o = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), r = qt(t, 0, n), s = qt(t, 1, n), a = r && v(r), l = s && v(s), u = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + k(r).width, c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + k(s).width;
|
|
1815
1815
|
if (i.display === "flex")
|
|
1816
1816
|
return i.flexDirection === "column" || i.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1817
1817
|
if (i.display === "grid")
|
|
1818
1818
|
return i.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
1819
1819
|
if (r && a.float && a.float !== "none") {
|
|
1820
|
-
var
|
|
1821
|
-
return s && (l.clear === "both" || l.clear ===
|
|
1820
|
+
var d = a.float === "left" ? "left" : "right";
|
|
1821
|
+
return s && (l.clear === "both" || l.clear === d) ? "vertical" : "horizontal";
|
|
1822
1822
|
}
|
|
1823
|
-
return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= o && i[Ei] === "none" || s && i[Ei] === "none" && u +
|
|
1823
|
+
return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= o && i[Ei] === "none" || s && i[Ei] === "none" && u + c > o) ? "vertical" : "horizontal";
|
|
1824
1824
|
}, bs = function(t, n, i) {
|
|
1825
1825
|
var o = i ? t.left : t.top, r = i ? t.right : t.bottom, s = i ? t.width : t.height, a = i ? n.left : n.top, l = i ? n.right : n.bottom, u = i ? n.width : n.height;
|
|
1826
1826
|
return o === a || r === l || o + s / 2 === a + u / 2;
|
|
@@ -1836,16 +1836,16 @@ var h, N, E, R, It, Oe, M, St, Zt, rt, ue, xt, $e, z, Ft = !1, ke = !1, Ue = [],
|
|
|
1836
1836
|
}), i;
|
|
1837
1837
|
}, uo = function(t) {
|
|
1838
1838
|
function n(r, s) {
|
|
1839
|
-
return function(a, l, u,
|
|
1840
|
-
var
|
|
1841
|
-
if (r == null && (s ||
|
|
1839
|
+
return function(a, l, u, c) {
|
|
1840
|
+
var d = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
|
|
1841
|
+
if (r == null && (s || d))
|
|
1842
1842
|
return !0;
|
|
1843
1843
|
if (r == null || r === !1)
|
|
1844
1844
|
return !1;
|
|
1845
1845
|
if (s && r === "clone")
|
|
1846
1846
|
return r;
|
|
1847
1847
|
if (typeof r == "function")
|
|
1848
|
-
return n(r(a, l, u,
|
|
1848
|
+
return n(r(a, l, u, c), s)(a, l, u, c);
|
|
1849
1849
|
var p = (s ? a : l).options.group.name;
|
|
1850
1850
|
return r === !0 || typeof r == "string" && r === p || r.join && r.indexOf(p) > -1;
|
|
1851
1851
|
};
|
|
@@ -1945,10 +1945,10 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
1945
1945
|
},
|
|
1946
1946
|
_onTapStart: function(t) {
|
|
1947
1947
|
if (t.cancelable) {
|
|
1948
|
-
var n = this, i = this.el, o = this.options, r = o.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l,
|
|
1948
|
+
var n = this, i = this.el, o = this.options, r = o.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, c = o.filter;
|
|
1949
1949
|
if (Ts(i), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && ae && l && l.tagName.toUpperCase() === "SELECT") && (l = ut(l, o.draggable, i, !1), !(l && l.animated) && Oe !== l)) {
|
|
1950
|
-
if (Zt = st(l), ue = st(l, o.draggable), typeof
|
|
1951
|
-
if (
|
|
1950
|
+
if (Zt = st(l), ue = st(l, o.draggable), typeof c == "function") {
|
|
1951
|
+
if (c.call(this, t, l, this)) {
|
|
1952
1952
|
Q({
|
|
1953
1953
|
sortable: n,
|
|
1954
1954
|
rootEl: u,
|
|
@@ -1961,11 +1961,11 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
1961
1961
|
}), r && t.cancelable && t.preventDefault();
|
|
1962
1962
|
return;
|
|
1963
1963
|
}
|
|
1964
|
-
} else if (
|
|
1965
|
-
if (
|
|
1964
|
+
} else if (c && (c = c.split(",").some(function(d) {
|
|
1965
|
+
if (d = ut(u, d.trim(), i, !1), d)
|
|
1966
1966
|
return Q({
|
|
1967
1967
|
sortable: n,
|
|
1968
|
-
rootEl:
|
|
1968
|
+
rootEl: d,
|
|
1969
1969
|
name: "filter",
|
|
1970
1970
|
targetEl: l,
|
|
1971
1971
|
fromEl: i,
|
|
@@ -1973,7 +1973,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
1973
1973
|
}), tt("filter", n, {
|
|
1974
1974
|
evt: t
|
|
1975
1975
|
}), !0;
|
|
1976
|
-
}),
|
|
1976
|
+
}), c)) {
|
|
1977
1977
|
r && t.cancelable && t.preventDefault();
|
|
1978
1978
|
return;
|
|
1979
1979
|
}
|
|
@@ -2001,8 +2001,8 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2001
2001
|
name: "choose",
|
|
2002
2002
|
originalEvent: t
|
|
2003
2003
|
}), ot(h, s.chosenClass, !0);
|
|
2004
|
-
}, s.ignore.split(",").forEach(function(
|
|
2005
|
-
no(h,
|
|
2004
|
+
}, s.ignore.split(",").forEach(function(c) {
|
|
2005
|
+
no(h, c.trim(), Cn);
|
|
2006
2006
|
}), _(a, "dragover", Mt), _(a, "mousemove", Mt), _(a, "touchmove", Mt), _(a, "mouseup", o._onDrop), _(a, "touchend", o._onDrop), _(a, "touchcancel", o._onDrop), gi && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), tt("delayStart", this, {
|
|
2007
2007
|
evt: t
|
|
2008
2008
|
}), s.delay && (!s.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Ee || bt))) {
|
|
@@ -2073,23 +2073,23 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2073
2073
|
},
|
|
2074
2074
|
_onTouchMove: function(t) {
|
|
2075
2075
|
if (Rt) {
|
|
2076
|
-
var n = this.options, i = n.fallbackTolerance, o = n.fallbackOffset, r = t.touches ? t.touches[0] : t, s = E && zt(E, !0), a = E && s && s.a, l = E && s && s.d, u = _e && W && bi(W),
|
|
2076
|
+
var n = this.options, i = n.fallbackTolerance, o = n.fallbackOffset, r = t.touches ? t.touches[0] : t, s = E && zt(E, !0), a = E && s && s.a, l = E && s && s.d, u = _e && W && bi(W), c = (r.clientX - Rt.clientX + o.x) / (a || 1) + (u ? u[0] - _n[0] : 0) / (a || 1), d = (r.clientY - Rt.clientY + o.y) / (l || 1) + (u ? u[1] - _n[1] : 0) / (l || 1);
|
|
2077
2077
|
if (!w.active && !Ft) {
|
|
2078
2078
|
if (i && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < i)
|
|
2079
2079
|
return;
|
|
2080
2080
|
this._onDragStart(t, !0);
|
|
2081
2081
|
}
|
|
2082
2082
|
if (E) {
|
|
2083
|
-
s ? (s.e +=
|
|
2083
|
+
s ? (s.e += c - ($n || 0), s.f += d - (An || 0)) : s = {
|
|
2084
2084
|
a: 1,
|
|
2085
2085
|
b: 0,
|
|
2086
2086
|
c: 0,
|
|
2087
2087
|
d: 1,
|
|
2088
|
-
e:
|
|
2089
|
-
f:
|
|
2088
|
+
e: c,
|
|
2089
|
+
f: d
|
|
2090
2090
|
};
|
|
2091
2091
|
var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
|
|
2092
|
-
v(E, "webkitTransform", p), v(E, "mozTransform", p), v(E, "msTransform", p), v(E, "transform", p), $n =
|
|
2092
|
+
v(E, "webkitTransform", p), v(E, "mozTransform", p), v(E, "msTransform", p), v(E, "transform", p), $n = c, An = d, lt = r;
|
|
2093
2093
|
}
|
|
2094
2094
|
t.cancelable && t.preventDefault();
|
|
2095
2095
|
}
|
|
@@ -2100,7 +2100,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2100
2100
|
if (_e) {
|
|
2101
2101
|
for (W = t; v(W, "position") === "static" && v(W, "transform") === "none" && W !== document; )
|
|
2102
2102
|
W = W.parentNode;
|
|
2103
|
-
W !== document.body && W !== document.documentElement ? (W === document && (W =
|
|
2103
|
+
W !== document.body && W !== document.documentElement ? (W === document && (W = dt()), n.top += W.scrollTop, n.left += W.scrollLeft) : W = dt(), _n = bi(W);
|
|
2104
2104
|
}
|
|
2105
2105
|
E = h.cloneNode(!0), ot(E, i.ghostClass, !1), ot(E, i.fallbackClass, !0), ot(E, i.dragClass, !0), v(E, "transition", ""), v(E, "transform", ""), v(E, "box-sizing", "border-box"), v(E, "margin", 0), v(E, "top", n.top), v(E, "left", n.left), v(E, "width", n.width), v(E, "height", n.height), v(E, "opacity", "0.8"), v(E, "position", _e ? "absolute" : "fixed"), v(E, "zIndex", "100000"), v(E, "pointerEvents", "none"), w.ghost = E, t.appendChild(E), v(E, "transform-origin", vi / parseInt(E.style.width) * 100 + "% " + wi / parseInt(E.style.height) * 100 + "%");
|
|
2106
2106
|
}
|
|
@@ -2122,17 +2122,17 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2122
2122
|
},
|
|
2123
2123
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
2124
2124
|
_onDragOver: function(t) {
|
|
2125
|
-
var n = this.el, i = t.target, o, r, s, a = this.options, l = a.group, u = w.active,
|
|
2125
|
+
var n = this.el, i = t.target, o, r, s, a = this.options, l = a.group, u = w.active, c = $e === l, d = a.sort, p = z || u, f, g = this, y = !1;
|
|
2126
2126
|
if (In) return;
|
|
2127
2127
|
function O(Kt, Uo) {
|
|
2128
|
-
tt(Kt, g,
|
|
2128
|
+
tt(Kt, g, ct({
|
|
2129
2129
|
evt: t,
|
|
2130
|
-
isOwner:
|
|
2130
|
+
isOwner: c,
|
|
2131
2131
|
axis: f ? "vertical" : "horizontal",
|
|
2132
2132
|
revert: s,
|
|
2133
2133
|
dragRect: o,
|
|
2134
2134
|
targetRect: r,
|
|
2135
|
-
canSort:
|
|
2135
|
+
canSort: d,
|
|
2136
2136
|
fromSortable: p,
|
|
2137
2137
|
target: i,
|
|
2138
2138
|
completed: H,
|
|
@@ -2148,7 +2148,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2148
2148
|
function H(Kt) {
|
|
2149
2149
|
return O("dragOverCompleted", {
|
|
2150
2150
|
insertion: Kt
|
|
2151
|
-
}), Kt && (
|
|
2151
|
+
}), Kt && (c ? u._hideClone() : u._showClone(g), g !== p && (ot(h, z ? z.options.ghostClass : u.options.ghostClass, !1), ot(h, a.ghostClass, !0)), z !== g && g !== w.active ? z = g : g === w.active && z && (z = null), p === g && (g._ignoreWhileAnimating = i), g.animateAll(function() {
|
|
2152
2152
|
O("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
|
|
2153
2153
|
}), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i === n && !i.animated) && (kt = null), !a.dragoverBubble && !t.rootEl && i !== document && (h.parentNode[nt]._isOutsideThisEl(t.target), !Kt && Mt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), y = !0;
|
|
2154
2154
|
}
|
|
@@ -2165,7 +2165,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2165
2165
|
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = ut(i, a.draggable, n, !0), O("dragOver"), w.eventCanceled) return y;
|
|
2166
2166
|
if (h.contains(t.target) || i.animated && i.animatingX && i.animatingY || g._ignoreWhileAnimating === i)
|
|
2167
2167
|
return H(!1);
|
|
2168
|
-
if (ke = !1, u && !a.disabled && (
|
|
2168
|
+
if (ke = !1, u && !a.disabled && (c ? d || (s = N !== R) : z === this || (this.lastPutMode = $e.checkPull(this, u, h, t)) && l.checkPut(this, u, h, t))) {
|
|
2169
2169
|
if (f = this._getDirection(t, i) === "vertical", o = k(h), O("dragOverValid"), w.eventCanceled) return y;
|
|
2170
2170
|
if (s)
|
|
2171
2171
|
return N = R, I(), this._hideClone(), O("revert"), w.eventCanceled || (It ? R.insertBefore(h, It) : R.appendChild(h)), H(!0);
|
|
@@ -2184,7 +2184,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2184
2184
|
} else if (i.parentNode === n) {
|
|
2185
2185
|
r = k(i);
|
|
2186
2186
|
var b = 0, D, Z = h.parentNode !== n, U = !bs(h.animated && h.toRect || o, i.animated && i.toRect || r, f), Wt = f ? "top" : "left", vt = yi(i, "top", "top") || yi(h, "top", "top"), Gt = vt ? vt.scrollTop : void 0;
|
|
2187
|
-
kt !== i && (D = r[Wt],
|
|
2187
|
+
kt !== i && (D = r[Wt], ce = !1, Ae = !U && a.invertSwap || Z), b = As(t, i, r, f, U ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ae, kt === i);
|
|
2188
2188
|
var ht;
|
|
2189
2189
|
if (b !== 0) {
|
|
2190
2190
|
var Pt = st(h);
|
|
@@ -2194,7 +2194,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2194
2194
|
}
|
|
2195
2195
|
if (b === 0 || ht === i)
|
|
2196
2196
|
return H(!1);
|
|
2197
|
-
kt = i,
|
|
2197
|
+
kt = i, de = b;
|
|
2198
2198
|
var Jt = i.nextElementSibling, wt = !1;
|
|
2199
2199
|
wt = b === 1;
|
|
2200
2200
|
var Se = Ce(R, n, h, o, i, r, t, wt);
|
|
@@ -2222,7 +2222,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2222
2222
|
this._nulling();
|
|
2223
2223
|
return;
|
|
2224
2224
|
}
|
|
2225
|
-
Ft = !1, Ae = !1,
|
|
2225
|
+
Ft = !1, Ae = !1, ce = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Nn(this.cloneId), Nn(this._dragStartId), this.nativeDraggable && ($(document, "drop", this), $(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), ae && v(document.body, "user-select", ""), v(h, "transform", ""), t && (ne && (t.cancelable && t.preventDefault(), !i.dropBubble && t.stopPropagation()), E && E.parentNode && E.parentNode.removeChild(E), (R === N || z && z.lastPutMode !== "clone") && M && M.parentNode && M.parentNode.removeChild(M), h && (this.nativeDraggable && $(h, "dragend", this), Cn(h), h.style["will-change"] = "", ne && !Ft && ot(h, z ? z.options.ghostClass : this.options.ghostClass, !1), ot(h, this.options.chosenClass, !1), Q({
|
|
2226
2226
|
sortable: this,
|
|
2227
2227
|
name: "unchoose",
|
|
2228
2228
|
toEl: N,
|
|
@@ -2269,7 +2269,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2269
2269
|
}), this.save()))), this._nulling();
|
|
2270
2270
|
},
|
|
2271
2271
|
_nulling: function() {
|
|
2272
|
-
tt("nulling", this), R = h = N = E = It = M = Oe = St = Rt = lt = ne = rt = xt = Zt = ue = kt =
|
|
2272
|
+
tt("nulling", this), R = h = N = E = It = M = Oe = St = Rt = lt = ne = rt = xt = Zt = ue = kt = de = z = $e = w.dragged = w.ghost = w.clone = w.active = null, Fe.forEach(function(t) {
|
|
2273
2273
|
t.checked = !0;
|
|
2274
2274
|
}), Fe.length = $n = An = 0;
|
|
2275
2275
|
},
|
|
@@ -2370,11 +2370,11 @@ function Es(e) {
|
|
|
2370
2370
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
2371
2371
|
}
|
|
2372
2372
|
function Ce(e, t, n, i, o, r, s, a) {
|
|
2373
|
-
var l, u = e[nt],
|
|
2373
|
+
var l, u = e[nt], c = u.options.onMove, d;
|
|
2374
2374
|
return window.CustomEvent && !bt && !Ee ? l = new CustomEvent("move", {
|
|
2375
2375
|
bubbles: !0,
|
|
2376
2376
|
cancelable: !0
|
|
2377
|
-
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = n, l.draggedRect = i, l.related = o || t, l.relatedRect = r || k(t), l.willInsertAfter = a, l.originalEvent = s, e.dispatchEvent(l),
|
|
2377
|
+
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = n, l.draggedRect = i, l.related = o || t, l.relatedRect = r || k(t), l.willInsertAfter = a, l.originalEvent = s, e.dispatchEvent(l), c && (d = c.call(u, l, s)), d;
|
|
2378
2378
|
}
|
|
2379
2379
|
function Cn(e) {
|
|
2380
2380
|
e.draggable = !1;
|
|
@@ -2391,17 +2391,17 @@ function $s(e, t, n) {
|
|
|
2391
2391
|
return t ? e.clientX > o.right + r || e.clientY > i.bottom && e.clientX > i.left : e.clientY > o.bottom + r || e.clientX > i.right && e.clientY > i.top;
|
|
2392
2392
|
}
|
|
2393
2393
|
function As(e, t, n, i, o, r, s, a) {
|
|
2394
|
-
var l = i ? e.clientY : e.clientX, u = i ? n.height : n.width,
|
|
2394
|
+
var l = i ? e.clientY : e.clientX, u = i ? n.height : n.width, c = i ? n.top : n.left, d = i ? n.bottom : n.right, p = !1;
|
|
2395
2395
|
if (!s) {
|
|
2396
2396
|
if (a && De < u * o) {
|
|
2397
|
-
if (!
|
|
2397
|
+
if (!ce && (de === 1 ? l > c + u * r / 2 : l < d - u * r / 2) && (ce = !0), ce)
|
|
2398
2398
|
p = !0;
|
|
2399
|
-
else if (
|
|
2400
|
-
return -
|
|
2401
|
-
} else if (l >
|
|
2399
|
+
else if (de === 1 ? l < c + De : l > d - De)
|
|
2400
|
+
return -de;
|
|
2401
|
+
} else if (l > c + u * (1 - o) / 2 && l < d - u * (1 - o) / 2)
|
|
2402
2402
|
return _s(t);
|
|
2403
2403
|
}
|
|
2404
|
-
return p = p || s, p && (l <
|
|
2404
|
+
return p = p || s, p && (l < c + u * r / 2 || l > d - u * r / 2) ? l > c + u / 2 ? 1 : -1 : 0;
|
|
2405
2405
|
}
|
|
2406
2406
|
function _s(e) {
|
|
2407
2407
|
return st(h) < st(e) ? 1 : -1;
|
|
@@ -2435,7 +2435,7 @@ w.utils = {
|
|
|
2435
2435
|
is: function(t, n) {
|
|
2436
2436
|
return !!ut(t, n, t, !1);
|
|
2437
2437
|
},
|
|
2438
|
-
extend:
|
|
2438
|
+
extend: ds,
|
|
2439
2439
|
throttle: io,
|
|
2440
2440
|
closest: ut,
|
|
2441
2441
|
toggleClass: ot,
|
|
@@ -2456,7 +2456,7 @@ w.mount = function() {
|
|
|
2456
2456
|
t[0].constructor === Array && (t = t[0]), t.forEach(function(i) {
|
|
2457
2457
|
if (!i.prototype || !i.prototype.constructor)
|
|
2458
2458
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));
|
|
2459
|
-
i.utils && (w.utils =
|
|
2459
|
+
i.utils && (w.utils = ct(ct({}, w.utils), i.utils)), xe.mount(i);
|
|
2460
2460
|
});
|
|
2461
2461
|
};
|
|
2462
2462
|
w.create = function(e, t) {
|
|
@@ -2486,7 +2486,7 @@ function Ps() {
|
|
|
2486
2486
|
!this.options.dragOverBubble && !i.rootEl && this._handleAutoScroll(i);
|
|
2487
2487
|
},
|
|
2488
2488
|
drop: function() {
|
|
2489
|
-
this.sortable.nativeDraggable ? $(document, "dragover", this._handleAutoScroll) : ($(document, "pointermove", this._handleFallbackAutoScroll), $(document, "touchmove", this._handleFallbackAutoScroll), $(document, "mousemove", this._handleFallbackAutoScroll)), xi(), Me(),
|
|
2489
|
+
this.sortable.nativeDraggable ? $(document, "dragover", this._handleAutoScroll) : ($(document, "pointermove", this._handleFallbackAutoScroll), $(document, "touchmove", this._handleFallbackAutoScroll), $(document, "mousemove", this._handleFallbackAutoScroll)), xi(), Me(), cs();
|
|
2490
2490
|
},
|
|
2491
2491
|
nulling: function() {
|
|
2492
2492
|
je = Hn = ie = Ln = oe = Tn = Pn = null, V.length = 0;
|
|
@@ -2504,7 +2504,7 @@ function Ps() {
|
|
|
2504
2504
|
u !== l && (l = u, Me()), On(n, o.options, u, i);
|
|
2505
2505
|
}, 10), Tn = r, Pn = s);
|
|
2506
2506
|
} else {
|
|
2507
|
-
if (!this.options.bubbleScroll || At(a, !0) ===
|
|
2507
|
+
if (!this.options.bubbleScroll || At(a, !0) === dt()) {
|
|
2508
2508
|
Me();
|
|
2509
2509
|
return;
|
|
2510
2510
|
}
|
|
@@ -2526,23 +2526,23 @@ function xi() {
|
|
|
2526
2526
|
}
|
|
2527
2527
|
var On = io(function(e, t, n, i) {
|
|
2528
2528
|
if (t.scroll) {
|
|
2529
|
-
var o = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l =
|
|
2530
|
-
Hn !== n && (Hn = n, Me(), ie = t.scroll,
|
|
2531
|
-
var
|
|
2529
|
+
var o = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = dt(), u = !1, c;
|
|
2530
|
+
Hn !== n && (Hn = n, Me(), ie = t.scroll, c = t.scrollFn, ie === !0 && (ie = At(n, !0)));
|
|
2531
|
+
var d = 0, p = ie;
|
|
2532
2532
|
do {
|
|
2533
2533
|
var f = p, g = k(f), y = g.top, O = g.bottom, I = g.left, H = g.right, J = g.width, j = g.height, K = void 0, b = void 0, D = f.scrollWidth, Z = f.scrollHeight, U = v(f), Wt = f.scrollLeft, vt = f.scrollTop;
|
|
2534
2534
|
f === l ? (K = J < D && (U.overflowX === "auto" || U.overflowX === "scroll" || U.overflowX === "visible"), b = j < Z && (U.overflowY === "auto" || U.overflowY === "scroll" || U.overflowY === "visible")) : (K = J < D && (U.overflowX === "auto" || U.overflowX === "scroll"), b = j < Z && (U.overflowY === "auto" || U.overflowY === "scroll"));
|
|
2535
2535
|
var Gt = K && (Math.abs(H - o) <= s && Wt + J < D) - (Math.abs(I - o) <= s && !!Wt), ht = b && (Math.abs(O - r) <= s && vt + j < Z) - (Math.abs(y - r) <= s && !!vt);
|
|
2536
|
-
if (!V[
|
|
2537
|
-
for (var Pt = 0; Pt <=
|
|
2536
|
+
if (!V[d])
|
|
2537
|
+
for (var Pt = 0; Pt <= d; Pt++)
|
|
2538
2538
|
V[Pt] || (V[Pt] = {});
|
|
2539
|
-
(V[
|
|
2539
|
+
(V[d].vx != Gt || V[d].vy != ht || V[d].el !== f) && (V[d].el = f, V[d].vx = Gt, V[d].vy = ht, clearInterval(V[d].pid), (Gt != 0 || ht != 0) && (u = !0, V[d].pid = setInterval((function() {
|
|
2540
2540
|
i && this.layer === 0 && w.active._onTouchMove(je);
|
|
2541
2541
|
var Jt = V[this.layer].vy ? V[this.layer].vy * a : 0, wt = V[this.layer].vx ? V[this.layer].vx * a : 0;
|
|
2542
|
-
typeof
|
|
2542
|
+
typeof c == "function" && c.call(w.dragged.parentNode[nt], wt, Jt, e, je, V[this.layer].el) !== "continue" || oo(V[this.layer].el, wt, Jt);
|
|
2543
2543
|
}).bind({
|
|
2544
|
-
layer:
|
|
2545
|
-
}), 24))),
|
|
2544
|
+
layer: d
|
|
2545
|
+
}), 24))), d++;
|
|
2546
2546
|
} while (t.bubbleScroll && p !== l && (p = At(p, !1)));
|
|
2547
2547
|
Ln = u;
|
|
2548
2548
|
}
|
|
@@ -2551,8 +2551,8 @@ var On = io(function(e, t, n, i) {
|
|
|
2551
2551
|
if (n) {
|
|
2552
2552
|
var u = i || r;
|
|
2553
2553
|
a();
|
|
2554
|
-
var
|
|
2555
|
-
l(), u && !u.el.contains(
|
|
2554
|
+
var c = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, d = document.elementFromPoint(c.clientX, c.clientY);
|
|
2555
|
+
l(), u && !u.el.contains(d) && (s("spill"), this.onSpill({
|
|
2556
2556
|
dragEl: o,
|
|
2557
2557
|
putSortable: i
|
|
2558
2558
|
}));
|
|
@@ -2605,18 +2605,18 @@ const Os = (e) => {
|
|
|
2605
2605
|
const l = i.getArray(), u = (
|
|
2606
2606
|
/** @type {Element & {layer: import("ol/layer").Layer}} */
|
|
2607
2607
|
e.item.querySelector("eox-layercontrol-layer").layer.get(o)
|
|
2608
|
-
),
|
|
2609
|
-
(y) => y.get(o) ==
|
|
2608
|
+
), c = l.find((y) => y.get(o) === u), d = r.dataset.layer, p = l.find(
|
|
2609
|
+
(y) => y.get(o) == d
|
|
2610
2610
|
);
|
|
2611
2611
|
let f, g;
|
|
2612
2612
|
for (f = 0; f < l.length; f++)
|
|
2613
|
-
if (l[f] ==
|
|
2613
|
+
if (l[f] == c) {
|
|
2614
2614
|
i.removeAt(f);
|
|
2615
2615
|
break;
|
|
2616
2616
|
}
|
|
2617
2617
|
for (g = 0; g < l.length; g++)
|
|
2618
2618
|
if (l[g] === p) {
|
|
2619
|
-
f > g ? i.insertAt(g,
|
|
2619
|
+
f > g ? i.insertAt(g, c) : i.insertAt(g + 1, c);
|
|
2620
2620
|
break;
|
|
2621
2621
|
}
|
|
2622
2622
|
t.requestUpdate();
|
|
@@ -2710,8 +2710,8 @@ function Hs(e, t) {
|
|
|
2710
2710
|
if ((t.type === "style" || t.style) && i)
|
|
2711
2711
|
n = i;
|
|
2712
2712
|
else if ((l = (a = e.getSource()) == null ? void 0 : a.getTileUrlFunction) != null && l.call(a)) {
|
|
2713
|
-
const
|
|
2714
|
-
n = Object.fromEntries(
|
|
2713
|
+
const c = new URL(e.getSource().getTileUrlFunction()([0, 0, 0]));
|
|
2714
|
+
n = Object.fromEntries(c.searchParams.entries());
|
|
2715
2715
|
} else return null;
|
|
2716
2716
|
const o = go(
|
|
2717
2717
|
((u = t.schema) == null ? void 0 : u.properties) || t.schema,
|
|
@@ -2869,24 +2869,24 @@ var wo = "Expected a function", Si = NaN, Xs = "[object Symbol]", qs = /^\s+|\s+
|
|
|
2869
2869
|
return ta.Date.now();
|
|
2870
2870
|
};
|
|
2871
2871
|
function ra(e, t, n) {
|
|
2872
|
-
var i, o, r, s, a, l, u = 0,
|
|
2872
|
+
var i, o, r, s, a, l, u = 0, c = !1, d = !1, p = !0;
|
|
2873
2873
|
if (typeof e != "function")
|
|
2874
2874
|
throw new TypeError(wo);
|
|
2875
|
-
t = $i(t) || 0, Ze(n) && (
|
|
2875
|
+
t = $i(t) || 0, Ze(n) && (c = !!n.leading, d = "maxWait" in n, r = d ? ia($i(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
|
|
2876
2876
|
function f(b) {
|
|
2877
2877
|
var D = i, Z = o;
|
|
2878
2878
|
return i = o = void 0, u = b, s = e.apply(Z, D), s;
|
|
2879
2879
|
}
|
|
2880
2880
|
function g(b) {
|
|
2881
|
-
return u = b, a = setTimeout(I, t),
|
|
2881
|
+
return u = b, a = setTimeout(I, t), c ? f(b) : s;
|
|
2882
2882
|
}
|
|
2883
2883
|
function y(b) {
|
|
2884
2884
|
var D = b - l, Z = b - u, U = t - D;
|
|
2885
|
-
return
|
|
2885
|
+
return d ? oa(U, r - Z) : U;
|
|
2886
2886
|
}
|
|
2887
2887
|
function O(b) {
|
|
2888
2888
|
var D = b - l, Z = b - u;
|
|
2889
|
-
return l === void 0 || D >= t || D < 0 ||
|
|
2889
|
+
return l === void 0 || D >= t || D < 0 || d && Z >= r;
|
|
2890
2890
|
}
|
|
2891
2891
|
function I() {
|
|
2892
2892
|
var b = Dn();
|
|
@@ -2908,7 +2908,7 @@ function ra(e, t, n) {
|
|
|
2908
2908
|
if (i = arguments, o = this, l = b, D) {
|
|
2909
2909
|
if (a === void 0)
|
|
2910
2910
|
return g(l);
|
|
2911
|
-
if (
|
|
2911
|
+
if (d)
|
|
2912
2912
|
return a = setTimeout(I, t), f(l);
|
|
2913
2913
|
}
|
|
2914
2914
|
return a === void 0 && (a = setTimeout(I, t)), s;
|
|
@@ -3271,7 +3271,7 @@ L($o, "properties", {
|
|
|
3271
3271
|
toolsAsList: { type: Boolean }
|
|
3272
3272
|
});
|
|
3273
3273
|
customElements.define("eox-layercontrol-tools-items", $o);
|
|
3274
|
-
const
|
|
3274
|
+
const da = `
|
|
3275
3275
|
button,
|
|
3276
3276
|
.button {
|
|
3277
3277
|
/* TODO: why does this only work here and not from :root? */
|
|
@@ -3395,7 +3395,7 @@ button.smallest.icon::before {
|
|
|
3395
3395
|
width: 16px;
|
|
3396
3396
|
padding: 0px;
|
|
3397
3397
|
}
|
|
3398
|
-
`,
|
|
3398
|
+
`, ca = `
|
|
3399
3399
|
input[type=radio] {
|
|
3400
3400
|
appearance: none;
|
|
3401
3401
|
-webkit-appearance: none;
|
|
@@ -3595,8 +3595,8 @@ class _o extends it {
|
|
|
3595
3595
|
});
|
|
3596
3596
|
T(this, Ke, "");
|
|
3597
3597
|
T(this, Qe, `
|
|
3598
|
-
${
|
|
3599
|
-
${
|
|
3598
|
+
${da}
|
|
3599
|
+
${ca}
|
|
3600
3600
|
${Ao}
|
|
3601
3601
|
${ha}
|
|
3602
3602
|
.drag-handle {
|
|
@@ -3661,6 +3661,7 @@ class _o extends it {
|
|
|
3661
3661
|
details.tools summary .icon::before {
|
|
3662
3662
|
height: 16px;
|
|
3663
3663
|
width: 16px;
|
|
3664
|
+
margin-right: var(--padding);
|
|
3664
3665
|
}
|
|
3665
3666
|
eox-layercontrol-tools-items button.icon,
|
|
3666
3667
|
eox-layercontrol-tools-items .button.icon {
|
|
@@ -4058,24 +4059,24 @@ var ga = "Expected a function", _i = NaN, ma = "[object Symbol]", ya = /^\s+|\s+
|
|
|
4058
4059
|
return $a.Date.now();
|
|
4059
4060
|
};
|
|
4060
4061
|
function Pa(e, t, n) {
|
|
4061
|
-
var i, o, r, s, a, l, u = 0,
|
|
4062
|
+
var i, o, r, s, a, l, u = 0, c = !1, d = !1, p = !0;
|
|
4062
4063
|
if (typeof e != "function")
|
|
4063
4064
|
throw new TypeError(ga);
|
|
4064
|
-
t = Ci(t) || 0, kn(n) && (
|
|
4065
|
+
t = Ci(t) || 0, kn(n) && (c = !!n.leading, d = "maxWait" in n, r = d ? Ca(Ci(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
|
|
4065
4066
|
function f(b) {
|
|
4066
4067
|
var D = i, Z = o;
|
|
4067
4068
|
return i = o = void 0, u = b, s = e.apply(Z, D), s;
|
|
4068
4069
|
}
|
|
4069
4070
|
function g(b) {
|
|
4070
|
-
return u = b, a = setTimeout(I, t),
|
|
4071
|
+
return u = b, a = setTimeout(I, t), c ? f(b) : s;
|
|
4071
4072
|
}
|
|
4072
4073
|
function y(b) {
|
|
4073
4074
|
var D = b - l, Z = b - u, U = t - D;
|
|
4074
|
-
return
|
|
4075
|
+
return d ? Ta(U, r - Z) : U;
|
|
4075
4076
|
}
|
|
4076
4077
|
function O(b) {
|
|
4077
4078
|
var D = b - l, Z = b - u;
|
|
4078
|
-
return l === void 0 || D >= t || D < 0 ||
|
|
4079
|
+
return l === void 0 || D >= t || D < 0 || d && Z >= r;
|
|
4079
4080
|
}
|
|
4080
4081
|
function I() {
|
|
4081
4082
|
var b = Rn();
|
|
@@ -4097,7 +4098,7 @@ function Pa(e, t, n) {
|
|
|
4097
4098
|
if (i = arguments, o = this, l = b, D) {
|
|
4098
4099
|
if (a === void 0)
|
|
4099
4100
|
return g(l);
|
|
4100
|
-
if (
|
|
4101
|
+
if (d)
|
|
4101
4102
|
return a = setTimeout(I, t), f(l);
|
|
4102
4103
|
}
|
|
4103
4104
|
return a === void 0 && (a = setTimeout(I, t)), s;
|
|
@@ -4161,13 +4162,11 @@ class Oo extends it {
|
|
|
4161
4162
|
}
|
|
4162
4163
|
li {
|
|
4163
4164
|
list-style: none;
|
|
4165
|
+
padding-left: var(--padding);
|
|
4164
4166
|
}
|
|
4165
4167
|
li {
|
|
4166
4168
|
border-bottom: 1px solid #0041703a;
|
|
4167
4169
|
}
|
|
4168
|
-
li:first-child {
|
|
4169
|
-
border-top: 1px solid #0041703a;
|
|
4170
|
-
}
|
|
4171
4170
|
li:last-child {
|
|
4172
4171
|
border: none;
|
|
4173
4172
|
}
|
|
@@ -4754,7 +4753,7 @@ const Ua = (e, t) => {
|
|
|
4754
4753
|
const t = Fa(e.for);
|
|
4755
4754
|
return t && t.map !== e.map && (e.map = t.map), t;
|
|
4756
4755
|
};
|
|
4757
|
-
var $t, Yt, Vo, ko,
|
|
4756
|
+
var $t, Yt, Vo, ko, dn;
|
|
4758
4757
|
class Bo extends it {
|
|
4759
4758
|
// Constructor to set default values for properties
|
|
4760
4759
|
constructor() {
|
|
@@ -4766,7 +4765,15 @@ class Bo extends it {
|
|
|
4766
4765
|
* @type {import("../../map/main").EOxMap}
|
|
4767
4766
|
*/
|
|
4768
4767
|
T(this, $t);
|
|
4769
|
-
T(this,
|
|
4768
|
+
T(this, dn, `
|
|
4769
|
+
:host, :root {
|
|
4770
|
+
font-family: Roboto, sans-serif;
|
|
4771
|
+
--padding: 0.5rem;
|
|
4772
|
+
|
|
4773
|
+
display: block;
|
|
4774
|
+
padding: var(--padding) 0;
|
|
4775
|
+
}
|
|
4776
|
+
`);
|
|
4770
4777
|
this.for = "eox-map", this.idProperty = "id", this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = ["info", "opacity", "datetime", "config", "remove", "sort"], this.addExternalLayers = !1, this.unstyled = !1, this.styleOverride = "", this.toolsAsList = !1;
|
|
4771
4778
|
}
|
|
4772
4779
|
/**
|
|
@@ -4791,7 +4798,7 @@ class Bo extends it {
|
|
|
4791
4798
|
const n = (o = this.map) == null ? void 0 : o.getLayers().getArray(), i = n && ((r = Qn(n, "layerControlOptional", !0)) == null ? void 0 : r.length) > 0;
|
|
4792
4799
|
return x`
|
|
4793
4800
|
<style>
|
|
4794
|
-
${!this.unstyled && P(this,
|
|
4801
|
+
${!this.unstyled && P(this, dn)}
|
|
4795
4802
|
${this.styleOverride}
|
|
4796
4803
|
</style>
|
|
4797
4804
|
|
|
@@ -4859,7 +4866,7 @@ ko = function(n) {
|
|
|
4859
4866
|
this.dispatchEvent(
|
|
4860
4867
|
new CustomEvent("datetime:updated", { detail: n.detail })
|
|
4861
4868
|
);
|
|
4862
|
-
},
|
|
4869
|
+
}, dn = new WeakMap(), // Define static properties for the component
|
|
4863
4870
|
L(Bo, "properties", {
|
|
4864
4871
|
for: { type: String },
|
|
4865
4872
|
idProperty: { attribute: "id-property" },
|