@eox/layercontrol 0.27.0 → 0.28.0
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 +181 -181
- package/dist/eox-layercontrol.umd.cjs +17 -17
- package/package.json +1 -1
- package/src/components/layer-datetime.js +7 -3
- package/src/components/layer-group.js +1 -1
- package/src/components/layer-legend.js +2 -5
- package/src/components/layer-list.js +2 -2
- package/src/components/layer.js +1 -1
- package/src/components/tools-items.js +6 -7
- package/src/enums/stories/index.js +2 -1
- package/src/main.js +2 -0
- package/types/layercontrol/src/components/layer-datetime.d.ts +7 -3
- package/types/layercontrol/src/components/layer-datetime.d.ts.map +1 -1
- package/types/layercontrol/src/components/layer-legend.d.ts.map +1 -1
- package/types/layercontrol/src/components/tools-items.d.ts.map +1 -1
- package/types/layercontrol/src/enums/stories/index.d.ts +2 -1
- package/types/layercontrol/src/enums/stories/index.d.ts.map +1 -1
- package/types/layercontrol/src/main.d.ts.map +1 -1
package/dist/eox-layercontrol.js
CHANGED
|
@@ -286,9 +286,9 @@ ie.elementStyles = [], ie.shadowRootOptions = { mode: "open" }, ie[be("elementPr
|
|
|
286
286
|
* Copyright 2017 Google LLC
|
|
287
287
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
288
288
|
*/
|
|
289
|
-
const ve = globalThis, Ge = ve.trustedTypes, En = Ge ? Ge.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, nn = "$lit$", Ct = `lit$${Math.random().toFixed(9).slice(2)}$`, on = "?" + Ct,
|
|
289
|
+
const ve = globalThis, Ge = ve.trustedTypes, En = Ge ? Ge.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, nn = "$lit$", Ct = `lit$${Math.random().toFixed(9).slice(2)}$`, on = "?" + Ct, ur = `<${on}>`, Jt = document, _e = () => Jt.createComment(""), Ae = (i) => i === null || typeof i != "object" && typeof i != "function", rn = Array.isArray, Yn = (i) => rn(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Di = `[
|
|
290
290
|
\f\r]`, pe = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $n = /-->/g, Sn = />/g, zt = RegExp(`>|${Di}(?:([^\\s"'>=/]+)(${Di}*=${Di}*(?:[^
|
|
291
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), _n = /'/g, An = /"/g, Wn = /^(?:script|style|textarea|title)$/i,
|
|
291
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), _n = /'/g, An = /"/g, Wn = /^(?:script|style|textarea|title)$/i, cr = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), x = cr(1), vt = Symbol.for("lit-noChange"), O = Symbol.for("lit-nothing"), Cn = /* @__PURE__ */ new WeakMap(), Wt = Jt.createTreeWalker(Jt, 129);
|
|
292
292
|
function Gn(i, t) {
|
|
293
293
|
if (!rn(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
294
294
|
return En !== void 0 ? En.createHTML(t) : t;
|
|
@@ -298,10 +298,10 @@ const Jn = (i, t) => {
|
|
|
298
298
|
let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = pe;
|
|
299
299
|
for (let a = 0; a < e; a++) {
|
|
300
300
|
const l = i[a];
|
|
301
|
-
let d,
|
|
302
|
-
for (; p < l.length && (s.lastIndex = p,
|
|
301
|
+
let d, c, u = -1, p = 0;
|
|
302
|
+
for (; p < l.length && (s.lastIndex = p, c = s.exec(l), c !== null); ) p = s.lastIndex, s === pe ? c[1] === "!--" ? s = $n : c[1] !== void 0 ? s = Sn : c[2] !== void 0 ? (Wn.test(c[2]) && (o = RegExp("</" + c[2], "g")), s = zt) : c[3] !== void 0 && (s = zt) : s === zt ? c[0] === ">" ? (s = o ?? pe, u = -1) : c[1] === void 0 ? u = -2 : (u = s.lastIndex - c[2].length, d = c[1], s = c[3] === void 0 ? zt : c[3] === '"' ? An : _n) : s === An || s === _n ? s = zt : s === $n || s === Sn ? s = pe : (s = zt, o = void 0);
|
|
303
303
|
const f = s === zt && i[a + 1].startsWith("/>") ? " " : "";
|
|
304
|
-
r += s === pe ? l +
|
|
304
|
+
r += s === pe ? l + ur : u >= 0 ? (n.push(d), l.slice(0, u) + nn + l.slice(u) + Ct + f) : l + Ct + (u === -2 ? a : f);
|
|
305
305
|
}
|
|
306
306
|
return [Gn(i, r + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
|
|
307
307
|
};
|
|
@@ -310,29 +310,29 @@ class Ce {
|
|
|
310
310
|
let o;
|
|
311
311
|
this.parts = [];
|
|
312
312
|
let r = 0, s = 0;
|
|
313
|
-
const a = t.length - 1, l = this.parts, [d,
|
|
313
|
+
const a = t.length - 1, l = this.parts, [d, c] = Jn(t, e);
|
|
314
314
|
if (this.el = Ce.createElement(d, n), Wt.currentNode = this.el.content, e === 2 || e === 3) {
|
|
315
|
-
const
|
|
316
|
-
|
|
315
|
+
const u = this.el.content.firstChild;
|
|
316
|
+
u.replaceWith(...u.childNodes);
|
|
317
317
|
}
|
|
318
318
|
for (; (o = Wt.nextNode()) !== null && l.length < a; ) {
|
|
319
319
|
if (o.nodeType === 1) {
|
|
320
|
-
if (o.hasAttributes()) for (const
|
|
321
|
-
const p =
|
|
322
|
-
l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Qn : g[1] === "?" ? to : g[1] === "@" ? eo : Le }), o.removeAttribute(
|
|
323
|
-
} else
|
|
320
|
+
if (o.hasAttributes()) for (const u of o.getAttributeNames()) if (u.endsWith(nn)) {
|
|
321
|
+
const p = c[s++], f = o.getAttribute(u).split(Ct), g = /([.?@])?(.*)/.exec(p);
|
|
322
|
+
l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Qn : g[1] === "?" ? to : g[1] === "@" ? eo : Le }), o.removeAttribute(u);
|
|
323
|
+
} else u.startsWith(Ct) && (l.push({ type: 6, index: r }), o.removeAttribute(u));
|
|
324
324
|
if (Wn.test(o.tagName)) {
|
|
325
|
-
const
|
|
325
|
+
const u = o.textContent.split(Ct), p = u.length - 1;
|
|
326
326
|
if (p > 0) {
|
|
327
327
|
o.textContent = Ge ? Ge.emptyScript : "";
|
|
328
|
-
for (let f = 0; f < p; f++) o.append(
|
|
329
|
-
o.append(
|
|
328
|
+
for (let f = 0; f < p; f++) o.append(u[f], _e()), Wt.nextNode(), l.push({ type: 2, index: ++r });
|
|
329
|
+
o.append(u[p], _e());
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
} else if (o.nodeType === 8) if (o.data === on) l.push({ type: 2, index: r });
|
|
333
333
|
else {
|
|
334
|
-
let
|
|
335
|
-
for (; (
|
|
334
|
+
let u = -1;
|
|
335
|
+
for (; (u = o.data.indexOf(Ct, u + 1)) !== -1; ) l.push({ type: 7, index: r }), u += Ct.length - 1;
|
|
336
336
|
}
|
|
337
337
|
r++;
|
|
338
338
|
}
|
|
@@ -366,7 +366,7 @@ let Kn = class {
|
|
|
366
366
|
for (; l !== void 0; ) {
|
|
367
367
|
if (s === l.index) {
|
|
368
368
|
let d;
|
|
369
|
-
l.type === 2 ? d = new
|
|
369
|
+
l.type === 2 ? d = new ce(r, r.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (d = new io(r, this, t)), this._$AV.push(d), l = n[++a];
|
|
370
370
|
}
|
|
371
371
|
s !== (l == null ? void 0 : l.index) && (r = Wt.nextNode(), s++);
|
|
372
372
|
}
|
|
@@ -377,7 +377,7 @@ let Kn = class {
|
|
|
377
377
|
for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, e), e += n.strings.length - 2) : n._$AI(t[e])), e++;
|
|
378
378
|
}
|
|
379
379
|
};
|
|
380
|
-
class
|
|
380
|
+
class ce {
|
|
381
381
|
get _$AU() {
|
|
382
382
|
var t;
|
|
383
383
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
@@ -425,7 +425,7 @@ class ue {
|
|
|
425
425
|
rn(this._$AH) || (this._$AH = [], this._$AR());
|
|
426
426
|
const e = this._$AH;
|
|
427
427
|
let n, o = 0;
|
|
428
|
-
for (const r of t) o === e.length ? e.push(n = new
|
|
428
|
+
for (const r of t) o === e.length ? e.push(n = new ce(this.O(_e()), this.O(_e()), this, this.options)) : n = e[o], n._$AI(r), o++;
|
|
429
429
|
o < e.length && (this._$AR(n && n._$AB.nextSibling, o), e.length = o);
|
|
430
430
|
}
|
|
431
431
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -506,14 +506,14 @@ class io {
|
|
|
506
506
|
Kt(this, t);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
const hr = { M: nn, P: Ct, A: on, C: 1, L: Jn, R: Kn, D: Yn, V: Kt, I:
|
|
510
|
-
Pi == null || Pi(Ce,
|
|
509
|
+
const hr = { M: nn, P: Ct, A: on, C: 1, L: Jn, R: Kn, D: Yn, V: Kt, I: ce, H: Le, N: to, U: eo, B: Qn, F: io }, Pi = ve.litHtmlPolyfillSupport;
|
|
510
|
+
Pi == null || Pi(Ce, ce), (ve.litHtmlVersions ?? (ve.litHtmlVersions = [])).push("3.2.1");
|
|
511
511
|
const pr = (i, t, e) => {
|
|
512
512
|
const n = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
513
513
|
let o = n._$litPart$;
|
|
514
514
|
if (o === void 0) {
|
|
515
515
|
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
516
|
-
n._$litPart$ = o = new
|
|
516
|
+
n._$litPart$ = o = new ce(t.insertBefore(_e(), r), r, void 0, e ?? {});
|
|
517
517
|
}
|
|
518
518
|
return o._$AI(i), o;
|
|
519
519
|
};
|
|
@@ -602,8 +602,8 @@ const { I: fr } = hr, gr = (i) => i.strings === void 0, Tn = () => document.crea
|
|
|
602
602
|
if (s !== o || l) {
|
|
603
603
|
let d = e._$AA;
|
|
604
604
|
for (; d !== s; ) {
|
|
605
|
-
const
|
|
606
|
-
n.insertBefore(d, o), d =
|
|
605
|
+
const c = d.nextSibling;
|
|
606
|
+
n.insertBefore(d, o), d = c;
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
}
|
|
@@ -646,28 +646,28 @@ const Dn = (i, t, e) => {
|
|
|
646
646
|
const o = yr(i), { values: r, keys: s } = this.dt(t, e, n);
|
|
647
647
|
if (!Array.isArray(o)) return this.ut = s, r;
|
|
648
648
|
const a = this.ut ?? (this.ut = []), l = [];
|
|
649
|
-
let d,
|
|
650
|
-
for (;
|
|
649
|
+
let d, c, u = 0, p = o.length - 1, f = 0, g = r.length - 1;
|
|
650
|
+
for (; u <= p && f <= g; ) if (o[u] === null) u++;
|
|
651
651
|
else if (o[p] === null) p--;
|
|
652
|
-
else if (a[
|
|
652
|
+
else if (a[u] === s[f]) l[f] = Zt(o[u], r[f]), u++, f++;
|
|
653
653
|
else if (a[p] === s[g]) l[g] = Zt(o[p], r[g]), p--, g--;
|
|
654
|
-
else if (a[
|
|
655
|
-
else if (a[p] === s[f]) l[f] = Zt(o[p], r[f]), fe(i, o[
|
|
656
|
-
else if (d === void 0 && (d = Dn(s, f, g),
|
|
657
|
-
const b =
|
|
654
|
+
else if (a[u] === s[g]) l[g] = Zt(o[u], r[g]), fe(i, l[g + 1], o[u]), u++, g--;
|
|
655
|
+
else if (a[p] === s[f]) l[f] = Zt(o[p], r[f]), fe(i, o[u], o[p]), p--, f++;
|
|
656
|
+
else if (d === void 0 && (d = Dn(s, f, g), c = Dn(a, u, p)), d.has(a[u])) if (d.has(a[p])) {
|
|
657
|
+
const b = c.get(s[f]), N = b !== void 0 ? o[b] : null;
|
|
658
658
|
if (N === null) {
|
|
659
|
-
const J = fe(i, o[
|
|
659
|
+
const J = fe(i, o[u]);
|
|
660
660
|
Zt(J, r[f]), l[f] = J;
|
|
661
|
-
} else l[f] = Zt(N, r[f]), fe(i, o[
|
|
661
|
+
} else l[f] = Zt(N, r[f]), fe(i, o[u], N), o[b] = null;
|
|
662
662
|
f++;
|
|
663
663
|
} else Li(o[p]), p--;
|
|
664
|
-
else Li(o[
|
|
664
|
+
else Li(o[u]), u++;
|
|
665
665
|
for (; f <= g; ) {
|
|
666
666
|
const b = fe(i, l[g + 1]);
|
|
667
667
|
Zt(b, r[f]), l[f++] = b;
|
|
668
668
|
}
|
|
669
|
-
for (;
|
|
670
|
-
const b = o[
|
|
669
|
+
for (; u <= p; ) {
|
|
670
|
+
const b = o[u++];
|
|
671
671
|
b !== null && Li(b);
|
|
672
672
|
}
|
|
673
673
|
return this.ut = s, no(i, l), vt;
|
|
@@ -970,7 +970,7 @@ function Vr(i, t) {
|
|
|
970
970
|
{
|
|
971
971
|
queryable: S(e) ? e : !1
|
|
972
972
|
},
|
|
973
|
-
|
|
973
|
+
co,
|
|
974
974
|
i,
|
|
975
975
|
t
|
|
976
976
|
);
|
|
@@ -984,7 +984,7 @@ function Br(i, t) {
|
|
|
984
984
|
/** @type {Object.<string,*>} */
|
|
985
985
|
Q(
|
|
986
986
|
{},
|
|
987
|
-
|
|
987
|
+
co,
|
|
988
988
|
i,
|
|
989
989
|
t
|
|
990
990
|
)
|
|
@@ -1002,15 +1002,15 @@ function Br(i, t) {
|
|
|
1002
1002
|
S(l) || (l = e.fixedWidth), n.fixedWidth = l;
|
|
1003
1003
|
let d = Tt(i.getAttribute("fixedHeight"));
|
|
1004
1004
|
S(d) || (d = e.fixedHeight), n.fixedHeight = d;
|
|
1005
|
-
const
|
|
1006
|
-
for (let p = 0, f =
|
|
1007
|
-
const g =
|
|
1005
|
+
const c = ["Style", "CRS", "AuthorityURL"];
|
|
1006
|
+
for (let p = 0, f = c.length; p < f; p++) {
|
|
1007
|
+
const g = c[p], b = e[g];
|
|
1008
1008
|
if (S(b)) {
|
|
1009
1009
|
let N = oo(n, g, []);
|
|
1010
1010
|
N = N.concat(b), n[g] = N;
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
|
-
const
|
|
1013
|
+
const u = [
|
|
1014
1014
|
"EX_GeographicBoundingBox",
|
|
1015
1015
|
"BoundingBox",
|
|
1016
1016
|
"Dimension",
|
|
@@ -1018,8 +1018,8 @@ function Br(i, t) {
|
|
|
1018
1018
|
"MinScaleDenominator",
|
|
1019
1019
|
"MaxScaleDenominator"
|
|
1020
1020
|
];
|
|
1021
|
-
for (let p = 0, f =
|
|
1022
|
-
const g =
|
|
1021
|
+
for (let p = 0, f = u.length; p < f; p++) {
|
|
1022
|
+
const g = u[p], b = n[g];
|
|
1023
1023
|
if (!S(b)) {
|
|
1024
1024
|
const N = e[g];
|
|
1025
1025
|
n[g] = N;
|
|
@@ -1082,7 +1082,7 @@ function Zr(i, t) {
|
|
|
1082
1082
|
function qr(i, t) {
|
|
1083
1083
|
return Q({}, ss, i, t);
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function uo(i, t) {
|
|
1086
1086
|
return Q(
|
|
1087
1087
|
[],
|
|
1088
1088
|
ls,
|
|
@@ -1112,7 +1112,7 @@ const ot = [
|
|
|
1112
1112
|
Name: y(D),
|
|
1113
1113
|
Title: y(D),
|
|
1114
1114
|
Abstract: y(D),
|
|
1115
|
-
KeywordList: y(
|
|
1115
|
+
KeywordList: y(uo),
|
|
1116
1116
|
OnlineResource: y(ln),
|
|
1117
1117
|
ContactInformation: y(Mr),
|
|
1118
1118
|
Fees: y(D),
|
|
@@ -1152,13 +1152,13 @@ const ot = [
|
|
|
1152
1152
|
{
|
|
1153
1153
|
Format: so(D)
|
|
1154
1154
|
}
|
|
1155
|
-
),
|
|
1155
|
+
), co = nt(
|
|
1156
1156
|
ot,
|
|
1157
1157
|
{
|
|
1158
1158
|
Name: y(D),
|
|
1159
1159
|
Title: y(D),
|
|
1160
1160
|
Abstract: y(D),
|
|
1161
|
-
KeywordList: y(
|
|
1161
|
+
KeywordList: y(uo),
|
|
1162
1162
|
CRS: pt(D),
|
|
1163
1163
|
SRS: pt(D),
|
|
1164
1164
|
EX_GeographicBoundingBox: y(Or),
|
|
@@ -1300,7 +1300,7 @@ class ds {
|
|
|
1300
1300
|
}, Xr, t, []) || null;
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
|
-
async function
|
|
1303
|
+
async function us(i) {
|
|
1304
1304
|
let t = new URL(i), e = t.searchParams;
|
|
1305
1305
|
e.set("SERVICE", "WMS"), e.set("REQUEST", "GetCapabilities");
|
|
1306
1306
|
let n = t.toString();
|
|
@@ -1315,7 +1315,7 @@ function dn(i) {
|
|
|
1315
1315
|
const t = /\b(?:wms|ows)\b/i, e = /{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;
|
|
1316
1316
|
return t.test(i) ? "TileWMS" : e.test(i) ? "XYZ" : !1;
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function cs(i) {
|
|
1319
1319
|
const e = /^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(i), n = dn(i);
|
|
1320
1320
|
return !!(i && e && n);
|
|
1321
1321
|
}
|
|
@@ -1417,7 +1417,7 @@ function Dt(i) {
|
|
|
1417
1417
|
if (typeof window < "u" && window.navigator)
|
|
1418
1418
|
return !!/* @__PURE__ */ navigator.userAgent.match(i);
|
|
1419
1419
|
}
|
|
1420
|
-
var Lt = Dt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Re = Dt(/Edge/i), On = Dt(/firefox/i), we = Dt(/safari/i) && !Dt(/chrome/i) && !Dt(/android/i),
|
|
1420
|
+
var Lt = Dt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Re = Dt(/Edge/i), On = Dt(/firefox/i), we = Dt(/safari/i) && !Dt(/chrome/i) && !Dt(/android/i), un = Dt(/iP(ad|od|hone)/i), po = Dt(/chrome/i) && Dt(/android/i), fo = {
|
|
1421
1421
|
capture: !1,
|
|
1422
1422
|
passive: !1
|
|
1423
1423
|
};
|
|
@@ -1503,8 +1503,8 @@ function $t() {
|
|
|
1503
1503
|
}
|
|
1504
1504
|
function W(i, t, e, n, o) {
|
|
1505
1505
|
if (!(!i.getBoundingClientRect && i !== window)) {
|
|
1506
|
-
var r, s, a, l, d,
|
|
1507
|
-
if (i !== window && i.parentNode && i !== $t() ? (r = i.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, d = r.right,
|
|
1506
|
+
var r, s, a, l, d, c, u;
|
|
1507
|
+
if (i !== window && i.parentNode && i !== $t() ? (r = i.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, d = r.right, c = r.height, u = r.width) : (s = 0, a = 0, l = window.innerHeight, d = window.innerWidth, c = window.innerHeight, u = window.innerWidth), (t || e) && i !== window && (o = o || i.parentNode, !Lt))
|
|
1508
1508
|
do
|
|
1509
1509
|
if (o && o.getBoundingClientRect && (v(o, "transform") !== "none" || e && v(o, "position") !== "static")) {
|
|
1510
1510
|
var p = o.getBoundingClientRect();
|
|
@@ -1514,15 +1514,15 @@ function W(i, t, e, n, o) {
|
|
|
1514
1514
|
while (o = o.parentNode);
|
|
1515
1515
|
if (n && i !== window) {
|
|
1516
1516
|
var f = ae(o || i), g = f && f.a, b = f && f.d;
|
|
1517
|
-
f && (s /= b, a /= g,
|
|
1517
|
+
f && (s /= b, a /= g, u /= g, c /= b, l = s + c, d = a + u);
|
|
1518
1518
|
}
|
|
1519
1519
|
return {
|
|
1520
1520
|
top: s,
|
|
1521
1521
|
left: a,
|
|
1522
1522
|
bottom: l,
|
|
1523
1523
|
right: d,
|
|
1524
|
-
width:
|
|
1525
|
-
height:
|
|
1524
|
+
width: u,
|
|
1525
|
+
height: c
|
|
1526
1526
|
};
|
|
1527
1527
|
}
|
|
1528
1528
|
}
|
|
@@ -1546,7 +1546,7 @@ function de(i, t, e, n) {
|
|
|
1546
1546
|
}
|
|
1547
1547
|
return null;
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1549
|
+
function cn(i, t) {
|
|
1550
1550
|
for (var e = i.lastElementChild; e && (e === w.ghost || v(e, "display") === "none" || t && !Ke(e, t)); )
|
|
1551
1551
|
e = e.previousElementSibling;
|
|
1552
1552
|
return e || null;
|
|
@@ -1670,9 +1670,9 @@ function xs() {
|
|
|
1670
1670
|
}
|
|
1671
1671
|
var r = !1, s = 0;
|
|
1672
1672
|
i.forEach(function(a) {
|
|
1673
|
-
var l = 0, d = a.target,
|
|
1674
|
-
b && (
|
|
1675
|
-
(g.top -
|
|
1673
|
+
var l = 0, d = a.target, c = d.fromRect, u = W(d), p = d.prevFromRect, f = d.prevToRect, g = a.rect, b = ae(d, !0);
|
|
1674
|
+
b && (u.top -= b.f, u.left -= b.e), d.toRect = u, d.thisAnimationDuration && Ii(p, u) && !Ii(c, u) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1675
|
+
(g.top - u.top) / (g.left - u.left) === (c.top - u.top) / (c.left - u.left) && (l = $s(g, p, f, o.options)), Ii(u, c) || (d.prevFromRect = c, d.prevToRect = u, l || (l = o.options.animation), o.animate(d, g, u, l)), l && (r = !0, s = Math.max(s, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
|
|
1676
1676
|
d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
|
|
1677
1677
|
}, l), d.thisAnimationDuration = l);
|
|
1678
1678
|
}), clearTimeout(t), r ? t = setTimeout(function() {
|
|
@@ -1682,8 +1682,8 @@ function xs() {
|
|
|
1682
1682
|
animate: function(n, o, r, s) {
|
|
1683
1683
|
if (s) {
|
|
1684
1684
|
v(n, "transition", ""), v(n, "transform", "");
|
|
1685
|
-
var a = ae(this.el), l = a && a.a, d = a && a.d,
|
|
1686
|
-
n.animatingX = !!
|
|
1685
|
+
var a = ae(this.el), l = a && a.a, d = a && a.d, c = (o.left - r.left) / (l || 1), u = (o.top - r.top) / (d || 1);
|
|
1686
|
+
n.animatingX = !!c, n.animatingY = !!u, v(n, "transform", "translate3d(" + c + "px," + u + "px,0)"), this.forRepaintDummy = Es(n), v(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
1687
1687
|
v(n, "transition", ""), v(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
1688
1688
|
}, s);
|
|
1689
1689
|
}
|
|
@@ -1749,13 +1749,13 @@ var te = [], Ni = {
|
|
|
1749
1749
|
}
|
|
1750
1750
|
};
|
|
1751
1751
|
function Ss(i) {
|
|
1752
|
-
var t = i.sortable, e = i.rootEl, n = i.name, o = i.targetEl, r = i.cloneEl, s = i.toEl, a = i.fromEl, l = i.oldIndex, d = i.newIndex,
|
|
1752
|
+
var t = i.sortable, e = i.rootEl, n = i.name, o = i.targetEl, r = i.cloneEl, s = i.toEl, a = i.fromEl, l = i.oldIndex, d = i.newIndex, c = i.oldDraggableIndex, u = i.newDraggableIndex, p = i.originalEvent, f = i.putSortable, g = i.extraEventProperties;
|
|
1753
1753
|
if (t = t || e && e[ft], !!t) {
|
|
1754
1754
|
var b, N = t.options, J = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
1755
1755
|
window.CustomEvent && !Lt && !Re ? b = new CustomEvent(n, {
|
|
1756
1756
|
bubbles: !0,
|
|
1757
1757
|
cancelable: !0
|
|
1758
|
-
}) : (b = document.createEvent("Event"), b.initEvent(n, !0, !0)), b.to = s || e, b.from = a || e, b.item = o || e, b.clone = r, b.oldIndex = l, b.newIndex = d, b.oldDraggableIndex =
|
|
1758
|
+
}) : (b = document.createEvent("Event"), b.initEvent(n, !0, !0)), b.to = s || e, b.from = a || e, b.item = o || e, b.clone = r, b.oldIndex = l, b.newIndex = d, b.oldDraggableIndex = c, b.newDraggableIndex = u, b.originalEvent = p, b.pullMode = f ? f.lastPutMode : void 0;
|
|
1759
1759
|
var U = St(St({}, g), Me.getEventProperties(n, t));
|
|
1760
1760
|
for (var st in U)
|
|
1761
1761
|
b[st] = U[st];
|
|
@@ -1810,7 +1810,7 @@ function at(i) {
|
|
|
1810
1810
|
newDraggableIndex: It
|
|
1811
1811
|
}, i));
|
|
1812
1812
|
}
|
|
1813
|
-
var h, z, E, V, Yt, ze, k, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = [], qt, wt, Hi, Vi, In, Nn, ge, ee, $e, Se = !1, Ve = !1, Ze, rt, Bi = [], Xi = !1, ei = [], _i = typeof document < "u", Be =
|
|
1813
|
+
var h, z, E, V, Yt, ze, k, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = [], qt, wt, Hi, Vi, In, Nn, ge, ee, $e, Se = !1, Ve = !1, Ze, rt, Bi = [], Xi = !1, ei = [], _i = typeof document < "u", Be = un, Hn = Re || Lt ? "cssFloat" : "float", As = _i && !po && !un && "draggable" in document.createElement("div"), xo = function() {
|
|
1814
1814
|
if (_i) {
|
|
1815
1815
|
if (Lt)
|
|
1816
1816
|
return !1;
|
|
@@ -1818,16 +1818,16 @@ var h, z, E, V, Yt, ze, k, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = []
|
|
|
1818
1818
|
return i.style.cssText = "pointer-events:auto", i.style.pointerEvents === "auto";
|
|
1819
1819
|
}
|
|
1820
1820
|
}(), Eo = function(t, e) {
|
|
1821
|
-
var n = v(t), o = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), r = de(t, 0, e), s = de(t, 1, e), a = r && v(r), l = s && v(s), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + W(r).width,
|
|
1821
|
+
var n = v(t), o = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), r = de(t, 0, e), s = de(t, 1, e), a = r && v(r), l = s && v(s), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + W(r).width, c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + W(s).width;
|
|
1822
1822
|
if (n.display === "flex")
|
|
1823
1823
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1824
1824
|
if (n.display === "grid")
|
|
1825
1825
|
return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
1826
1826
|
if (r && a.float && a.float !== "none") {
|
|
1827
|
-
var
|
|
1828
|
-
return s && (l.clear === "both" || l.clear ===
|
|
1827
|
+
var u = a.float === "left" ? "left" : "right";
|
|
1828
|
+
return s && (l.clear === "both" || l.clear === u) ? "vertical" : "horizontal";
|
|
1829
1829
|
}
|
|
1830
|
-
return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || d >= o && n[Hn] === "none" || s && n[Hn] === "none" && d +
|
|
1830
|
+
return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || d >= o && n[Hn] === "none" || s && n[Hn] === "none" && d + c > o) ? "vertical" : "horizontal";
|
|
1831
1831
|
}, Cs = function(t, e, n) {
|
|
1832
1832
|
var o = n ? t.left : t.top, r = n ? t.right : t.bottom, s = n ? t.width : t.height, a = n ? e.left : e.top, l = n ? e.right : e.bottom, d = n ? e.width : e.height;
|
|
1833
1833
|
return o === a || r === l || o + s / 2 === a + d / 2;
|
|
@@ -1835,7 +1835,7 @@ var h, z, E, V, Yt, ze, k, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = []
|
|
|
1835
1835
|
var n;
|
|
1836
1836
|
return ti.some(function(o) {
|
|
1837
1837
|
var r = o[ft].options.emptyInsertThreshold;
|
|
1838
|
-
if (!(!r ||
|
|
1838
|
+
if (!(!r || cn(o))) {
|
|
1839
1839
|
var s = W(o), a = t >= s.left - r && t <= s.right + r, l = e >= s.top - r && e <= s.bottom + r;
|
|
1840
1840
|
if (a && l)
|
|
1841
1841
|
return n = o;
|
|
@@ -1843,16 +1843,16 @@ var h, z, E, V, Yt, ze, k, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = []
|
|
|
1843
1843
|
}), n;
|
|
1844
1844
|
}, $o = function(t) {
|
|
1845
1845
|
function e(r, s) {
|
|
1846
|
-
return function(a, l, d,
|
|
1847
|
-
var
|
|
1848
|
-
if (r == null && (s ||
|
|
1846
|
+
return function(a, l, d, c) {
|
|
1847
|
+
var u = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
|
|
1848
|
+
if (r == null && (s || u))
|
|
1849
1849
|
return !0;
|
|
1850
1850
|
if (r == null || r === !1)
|
|
1851
1851
|
return !1;
|
|
1852
1852
|
if (s && r === "clone")
|
|
1853
1853
|
return r;
|
|
1854
1854
|
if (typeof r == "function")
|
|
1855
|
-
return e(r(a, l, d,
|
|
1855
|
+
return e(r(a, l, d, c), s)(a, l, d, c);
|
|
1856
1856
|
var p = (s ? a : l).options.group.name;
|
|
1857
1857
|
return r === !0 || typeof r == "string" && r === p || r.join && r.indexOf(p) > -1;
|
|
1858
1858
|
};
|
|
@@ -1931,7 +1931,7 @@ function w(i, t) {
|
|
|
1931
1931
|
y: 0
|
|
1932
1932
|
},
|
|
1933
1933
|
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
1934
|
-
supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && (!we ||
|
|
1934
|
+
supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && (!we || un),
|
|
1935
1935
|
emptyInsertThreshold: 5
|
|
1936
1936
|
};
|
|
1937
1937
|
Me.initializePlugins(this, i, e);
|
|
@@ -1953,10 +1953,10 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
1953
1953
|
},
|
|
1954
1954
|
_onTapStart: function(t) {
|
|
1955
1955
|
if (t.cancelable) {
|
|
1956
|
-
var e = this, n = 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, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l,
|
|
1956
|
+
var e = this, n = 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, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, c = o.filter;
|
|
1957
1957
|
if (Hs(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !d.isContentEditable && !(!this.nativeDraggable && we && l && l.tagName.toUpperCase() === "SELECT") && (l = xt(l, o.draggable, n, !1), !(l && l.animated) && ze !== l)) {
|
|
1958
|
-
if (se = bt(l), Ee = bt(l, o.draggable), typeof
|
|
1959
|
-
if (
|
|
1958
|
+
if (se = bt(l), Ee = bt(l, o.draggable), typeof c == "function") {
|
|
1959
|
+
if (c.call(this, t, l, this)) {
|
|
1960
1960
|
at({
|
|
1961
1961
|
sortable: e,
|
|
1962
1962
|
rootEl: d,
|
|
@@ -1969,11 +1969,11 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
1969
1969
|
}), r && t.preventDefault();
|
|
1970
1970
|
return;
|
|
1971
1971
|
}
|
|
1972
|
-
} else if (
|
|
1973
|
-
if (
|
|
1972
|
+
} else if (c && (c = c.split(",").some(function(u) {
|
|
1973
|
+
if (u = xt(d, u.trim(), n, !1), u)
|
|
1974
1974
|
return at({
|
|
1975
1975
|
sortable: e,
|
|
1976
|
-
rootEl:
|
|
1976
|
+
rootEl: u,
|
|
1977
1977
|
name: "filter",
|
|
1978
1978
|
targetEl: l,
|
|
1979
1979
|
fromEl: n,
|
|
@@ -1981,7 +1981,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
1981
1981
|
}), ht("filter", e, {
|
|
1982
1982
|
evt: t
|
|
1983
1983
|
}), !0;
|
|
1984
|
-
}),
|
|
1984
|
+
}), c)) {
|
|
1985
1985
|
r && t.preventDefault();
|
|
1986
1986
|
return;
|
|
1987
1987
|
}
|
|
@@ -2009,8 +2009,8 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2009
2009
|
name: "choose",
|
|
2010
2010
|
originalEvent: t
|
|
2011
2011
|
}), mt(h, s.chosenClass, !0);
|
|
2012
|
-
}, s.ignore.split(",").forEach(function(
|
|
2013
|
-
mo(h,
|
|
2012
|
+
}, s.ignore.split(",").forEach(function(c) {
|
|
2013
|
+
mo(h, c.trim(), ki);
|
|
2014
2014
|
}), C(a, "dragover", Xt), C(a, "mousemove", Xt), C(a, "touchmove", Xt), s.supportPointer ? (C(a, "pointerup", o._onDrop), !this.nativeDraggable && C(a, "pointercancel", o._onDrop)) : (C(a, "mouseup", o._onDrop), C(a, "touchend", o._onDrop), C(a, "touchcancel", o._onDrop)), On && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), ht("delayStart", this, {
|
|
2015
2015
|
evt: t
|
|
2016
2016
|
}), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Re || Lt))) {
|
|
@@ -2081,23 +2081,23 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2081
2081
|
},
|
|
2082
2082
|
_onTouchMove: function(t) {
|
|
2083
2083
|
if (qt) {
|
|
2084
|
-
var e = this.options, n = e.fallbackTolerance, o = e.fallbackOffset, r = t.touches ? t.touches[0] : t, s = E && ae(E, !0), a = E && s && s.a, l = E && s && s.d, d = Be && rt && Mn(rt),
|
|
2084
|
+
var e = this.options, n = e.fallbackTolerance, o = e.fallbackOffset, r = t.touches ? t.touches[0] : t, s = E && ae(E, !0), a = E && s && s.a, l = E && s && s.d, d = Be && rt && Mn(rt), c = (r.clientX - qt.clientX + o.x) / (a || 1) + (d ? d[0] - Bi[0] : 0) / (a || 1), u = (r.clientY - qt.clientY + o.y) / (l || 1) + (d ? d[1] - Bi[1] : 0) / (l || 1);
|
|
2085
2085
|
if (!w.active && !ne) {
|
|
2086
2086
|
if (n && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < n)
|
|
2087
2087
|
return;
|
|
2088
2088
|
this._onDragStart(t, !0);
|
|
2089
2089
|
}
|
|
2090
2090
|
if (E) {
|
|
2091
|
-
s ? (s.e +=
|
|
2091
|
+
s ? (s.e += c - (Hi || 0), s.f += u - (Vi || 0)) : s = {
|
|
2092
2092
|
a: 1,
|
|
2093
2093
|
b: 0,
|
|
2094
2094
|
c: 0,
|
|
2095
2095
|
d: 1,
|
|
2096
|
-
e:
|
|
2097
|
-
f:
|
|
2096
|
+
e: c,
|
|
2097
|
+
f: u
|
|
2098
2098
|
};
|
|
2099
2099
|
var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
|
|
2100
|
-
v(E, "webkitTransform", p), v(E, "mozTransform", p), v(E, "msTransform", p), v(E, "transform", p), Hi =
|
|
2100
|
+
v(E, "webkitTransform", p), v(E, "mozTransform", p), v(E, "msTransform", p), v(E, "transform", p), Hi = c, Vi = u, wt = r;
|
|
2101
2101
|
}
|
|
2102
2102
|
t.cancelable && t.preventDefault();
|
|
2103
2103
|
}
|
|
@@ -2130,17 +2130,17 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2130
2130
|
},
|
|
2131
2131
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
2132
2132
|
_onDragOver: function(t) {
|
|
2133
|
-
var e = this.el, n = t.target, o, r, s, a = this.options, l = a.group, d = w.active,
|
|
2133
|
+
var e = this.el, n = t.target, o, r, s, a = this.options, l = a.group, d = w.active, c = He === l, u = a.sort, p = et || d, f, g = this, b = !1;
|
|
2134
2134
|
if (Xi) return;
|
|
2135
2135
|
function N(gt, Ut) {
|
|
2136
2136
|
ht(gt, g, St({
|
|
2137
2137
|
evt: t,
|
|
2138
|
-
isOwner:
|
|
2138
|
+
isOwner: c,
|
|
2139
2139
|
axis: f ? "vertical" : "horizontal",
|
|
2140
2140
|
revert: s,
|
|
2141
2141
|
dragRect: o,
|
|
2142
2142
|
targetRect: r,
|
|
2143
|
-
canSort:
|
|
2143
|
+
canSort: u,
|
|
2144
2144
|
fromSortable: p,
|
|
2145
2145
|
target: n,
|
|
2146
2146
|
completed: U,
|
|
@@ -2156,7 +2156,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2156
2156
|
function U(gt) {
|
|
2157
2157
|
return N("dragOverCompleted", {
|
|
2158
2158
|
insertion: gt
|
|
2159
|
-
}), gt && (
|
|
2159
|
+
}), gt && (c ? d._hideClone() : d._showClone(g), g !== p && (mt(h, et ? et.options.ghostClass : d.options.ghostClass, !1), mt(h, a.ghostClass, !0)), et !== g && g !== w.active ? et = g : g === w.active && et && (et = null), p === g && (g._ignoreWhileAnimating = n), g.animateAll(function() {
|
|
2160
2160
|
N("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
|
|
2161
2161
|
}), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (ee = null), !a.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[ft]._isOutsideThisEl(t.target), !gt && Xt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), b = !0;
|
|
2162
2162
|
}
|
|
@@ -2173,11 +2173,11 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2173
2173
|
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = xt(n, a.draggable, e, !0), N("dragOver"), w.eventCanceled) return b;
|
|
2174
2174
|
if (h.contains(t.target) || n.animated && n.animatingX && n.animatingY || g._ignoreWhileAnimating === n)
|
|
2175
2175
|
return U(!1);
|
|
2176
|
-
if (Qe = !1, d && !a.disabled && (
|
|
2176
|
+
if (Qe = !1, d && !a.disabled && (c ? u || (s = z !== V) : et === this || (this.lastPutMode = He.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
|
|
2177
2177
|
if (f = this._getDirection(t, n) === "vertical", o = W(h), N("dragOverValid"), w.eventCanceled) return b;
|
|
2178
2178
|
if (s)
|
|
2179
2179
|
return z = V, J(), this._hideClone(), N("revert"), w.eventCanceled || (Yt ? V.insertBefore(h, Yt) : V.appendChild(h)), U(!0);
|
|
2180
|
-
var K =
|
|
2180
|
+
var K = cn(e, a.draggable);
|
|
2181
2181
|
if (!K || Rs(t, f, this) && !K.animated) {
|
|
2182
2182
|
if (K === h)
|
|
2183
2183
|
return U(!1);
|
|
@@ -2205,9 +2205,9 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2205
2205
|
ee = n, $e = m;
|
|
2206
2206
|
var dt = n.nextElementSibling, tt = !1;
|
|
2207
2207
|
tt = m === 1;
|
|
2208
|
-
var
|
|
2209
|
-
if (
|
|
2210
|
-
return (
|
|
2208
|
+
var ut = ke(V, e, h, o, n, r, t, tt);
|
|
2209
|
+
if (ut !== !1)
|
|
2210
|
+
return (ut === 1 || ut === -1) && (tt = ut === 1), Xi = !0, setTimeout(Os, 30), J(), tt && !dt ? e.appendChild(h) : n.parentNode.insertBefore(h, tt ? dt : n), X && bo(X, 0, H - X.scrollTop), z = h.parentNode, _ !== void 0 && !Ve && (Ze = Math.abs(_ - W(n)[q])), st(), U(!0);
|
|
2211
2211
|
}
|
|
2212
2212
|
if (e.contains(h))
|
|
2213
2213
|
return U(!1);
|
|
@@ -2378,11 +2378,11 @@ function Ps(i) {
|
|
|
2378
2378
|
i.dataTransfer && (i.dataTransfer.dropEffect = "move"), i.cancelable && i.preventDefault();
|
|
2379
2379
|
}
|
|
2380
2380
|
function ke(i, t, e, n, o, r, s, a) {
|
|
2381
|
-
var l, d = i[ft],
|
|
2381
|
+
var l, d = i[ft], c = d.options.onMove, u;
|
|
2382
2382
|
return window.CustomEvent && !Lt && !Re ? l = new CustomEvent("move", {
|
|
2383
2383
|
bubbles: !0,
|
|
2384
2384
|
cancelable: !0
|
|
2385
|
-
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = i, l.dragged = e, l.draggedRect = n, l.related = o || t, l.relatedRect = r || W(t), l.willInsertAfter = a, l.originalEvent = s, i.dispatchEvent(l),
|
|
2385
|
+
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = i, l.dragged = e, l.draggedRect = n, l.related = o || t, l.relatedRect = r || W(t), l.willInsertAfter = a, l.originalEvent = s, i.dispatchEvent(l), c && (u = c.call(d, l, s)), u;
|
|
2386
2386
|
}
|
|
2387
2387
|
function ki(i) {
|
|
2388
2388
|
i.draggable = !1;
|
|
@@ -2395,21 +2395,21 @@ function Ls(i, t, e) {
|
|
|
2395
2395
|
return t ? i.clientX < o.left - r || i.clientY < n.top && i.clientX < n.right : i.clientY < o.top - r || i.clientY < n.bottom && i.clientX < n.left;
|
|
2396
2396
|
}
|
|
2397
2397
|
function Rs(i, t, e) {
|
|
2398
|
-
var n = W(
|
|
2398
|
+
var n = W(cn(e.el, e.options.draggable)), o = wo(e.el, e.options, E), r = 10;
|
|
2399
2399
|
return t ? i.clientX > o.right + r || i.clientY > n.bottom && i.clientX > n.left : i.clientY > o.bottom + r || i.clientX > n.right && i.clientY > n.top;
|
|
2400
2400
|
}
|
|
2401
2401
|
function Ms(i, t, e, n, o, r, s, a) {
|
|
2402
|
-
var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width,
|
|
2402
|
+
var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width, c = n ? e.top : e.left, u = n ? e.bottom : e.right, p = !1;
|
|
2403
2403
|
if (!s) {
|
|
2404
2404
|
if (a && Ze < d * o) {
|
|
2405
|
-
if (!Se && ($e === 1 ? l >
|
|
2405
|
+
if (!Se && ($e === 1 ? l > c + d * r / 2 : l < u - d * r / 2) && (Se = !0), Se)
|
|
2406
2406
|
p = !0;
|
|
2407
|
-
else if ($e === 1 ? l <
|
|
2407
|
+
else if ($e === 1 ? l < c + Ze : l > u - Ze)
|
|
2408
2408
|
return -$e;
|
|
2409
|
-
} else if (l >
|
|
2409
|
+
} else if (l > c + d * (1 - o) / 2 && l < u - d * (1 - o) / 2)
|
|
2410
2410
|
return Is(t);
|
|
2411
2411
|
}
|
|
2412
|
-
return p = p || s, p && (l <
|
|
2412
|
+
return p = p || s, p && (l < c + d * r / 2 || l > u - d * r / 2) ? l > c + d / 2 ? 1 : -1 : 0;
|
|
2413
2413
|
}
|
|
2414
2414
|
function Is(i) {
|
|
2415
2415
|
return bt(h) < bt(i) ? 1 : -1;
|
|
@@ -2534,23 +2534,23 @@ function Vn() {
|
|
|
2534
2534
|
}
|
|
2535
2535
|
var ji = yo(function(i, t, e, n) {
|
|
2536
2536
|
if (t.scroll) {
|
|
2537
|
-
var o = (i.touches ? i.touches[0] : i).clientX, r = (i.touches ? i.touches[0] : i).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = $t(), d = !1,
|
|
2538
|
-
Wi !== e && (Wi = e, Xe(), me = t.scroll,
|
|
2539
|
-
var
|
|
2537
|
+
var o = (i.touches ? i.touches[0] : i).clientX, r = (i.touches ? i.touches[0] : i).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = $t(), d = !1, c;
|
|
2538
|
+
Wi !== e && (Wi = e, Xe(), me = t.scroll, c = t.scrollFn, me === !0 && (me = Vt(e, !0)));
|
|
2539
|
+
var u = 0, p = me;
|
|
2540
2540
|
do {
|
|
2541
2541
|
var f = p, g = W(f), b = g.top, N = g.bottom, J = g.left, U = g.right, st = g.width, K = g.height, $ = void 0, m = void 0, _ = f.scrollWidth, M = f.scrollHeight, L = v(f), q = f.scrollLeft, X = f.scrollTop;
|
|
2542
2542
|
f === l ? ($ = st < _ && (L.overflowX === "auto" || L.overflowX === "scroll" || L.overflowX === "visible"), m = K < M && (L.overflowY === "auto" || L.overflowY === "scroll" || L.overflowY === "visible")) : ($ = st < _ && (L.overflowX === "auto" || L.overflowX === "scroll"), m = K < M && (L.overflowY === "auto" || L.overflowY === "scroll"));
|
|
2543
2543
|
var H = $ && (Math.abs(U - o) <= s && q + st < _) - (Math.abs(J - o) <= s && !!q), R = m && (Math.abs(N - r) <= s && X + K < M) - (Math.abs(b - r) <= s && !!X);
|
|
2544
|
-
if (!Y[
|
|
2545
|
-
for (var Z = 0; Z <=
|
|
2544
|
+
if (!Y[u])
|
|
2545
|
+
for (var Z = 0; Z <= u; Z++)
|
|
2546
2546
|
Y[Z] || (Y[Z] = {});
|
|
2547
|
-
(Y[
|
|
2547
|
+
(Y[u].vx != H || Y[u].vy != R || Y[u].el !== f) && (Y[u].el = f, Y[u].vx = H, Y[u].vy = R, clearInterval(Y[u].pid), (H != 0 || R != 0) && (d = !0, Y[u].pid = setInterval((function() {
|
|
2548
2548
|
n && this.layer === 0 && w.active._onTouchMove(ii);
|
|
2549
2549
|
var dt = Y[this.layer].vy ? Y[this.layer].vy * a : 0, tt = Y[this.layer].vx ? Y[this.layer].vx * a : 0;
|
|
2550
|
-
typeof
|
|
2550
|
+
typeof c == "function" && c.call(w.dragged.parentNode[ft], tt, dt, i, ii, Y[this.layer].el) !== "continue" || bo(Y[this.layer].el, tt, dt);
|
|
2551
2551
|
}).bind({
|
|
2552
|
-
layer:
|
|
2553
|
-
}), 24))),
|
|
2552
|
+
layer: u
|
|
2553
|
+
}), 24))), u++;
|
|
2554
2554
|
} while (t.bubbleScroll && p !== l && (p = Vt(p, !1)));
|
|
2555
2555
|
Gi = d;
|
|
2556
2556
|
}
|
|
@@ -2559,8 +2559,8 @@ var ji = yo(function(i, t, e, n) {
|
|
|
2559
2559
|
if (e) {
|
|
2560
2560
|
var d = n || r;
|
|
2561
2561
|
a();
|
|
2562
|
-
var
|
|
2563
|
-
l(), d && !d.el.contains(
|
|
2562
|
+
var c = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, u = document.elementFromPoint(c.clientX, c.clientY);
|
|
2563
|
+
l(), d && !d.el.contains(u) && (s("spill"), this.onSpill({
|
|
2564
2564
|
dragEl: o,
|
|
2565
2565
|
putSortable: n
|
|
2566
2566
|
}));
|
|
@@ -2613,18 +2613,18 @@ const Bs = (i) => {
|
|
|
2613
2613
|
const l = n.getArray(), d = (
|
|
2614
2614
|
/** @type {Element & {layer: import("ol/layer").Layer}} */
|
|
2615
2615
|
i.item.querySelector("eox-layercontrol-layer").layer.get(o)
|
|
2616
|
-
),
|
|
2617
|
-
(b) => b.get(o) ==
|
|
2616
|
+
), c = l.find((b) => b.get(o) === d), u = r.dataset.layer, p = l.find(
|
|
2617
|
+
(b) => b.get(o) == u
|
|
2618
2618
|
);
|
|
2619
2619
|
let f, g;
|
|
2620
2620
|
for (f = 0; f < l.length; f++)
|
|
2621
|
-
if (l[f] ==
|
|
2621
|
+
if (l[f] == c) {
|
|
2622
2622
|
n.removeAt(f);
|
|
2623
2623
|
break;
|
|
2624
2624
|
}
|
|
2625
2625
|
for (g = 0; g < l.length; g++)
|
|
2626
2626
|
if (l[g] === p) {
|
|
2627
|
-
f > g ? n.insertAt(g,
|
|
2627
|
+
f > g ? n.insertAt(g, c) : n.insertAt(g + 1, c);
|
|
2628
2628
|
break;
|
|
2629
2629
|
}
|
|
2630
2630
|
t.requestUpdate();
|
|
@@ -2789,8 +2789,8 @@ function Ws(i, t) {
|
|
|
2789
2789
|
if ((t.type === "style" || t.style) && n)
|
|
2790
2790
|
e = n;
|
|
2791
2791
|
else if ((l = (a = i.getSource()) == null ? void 0 : a.getTileUrlFunction) != null && l.call(a)) {
|
|
2792
|
-
const
|
|
2793
|
-
e = Object.fromEntries(
|
|
2792
|
+
const c = new URL(i.getSource().getTileUrlFunction()([0, 0, 0]));
|
|
2793
|
+
e = Object.fromEntries(c.searchParams.entries());
|
|
2794
2794
|
} else return null;
|
|
2795
2795
|
const o = To(
|
|
2796
2796
|
((d = t.schema) == null ? void 0 : d.properties) || t.schema,
|
|
@@ -2893,28 +2893,28 @@ var zi, Bn;
|
|
|
2893
2893
|
function ia() {
|
|
2894
2894
|
if (Bn) return zi;
|
|
2895
2895
|
Bn = 1;
|
|
2896
|
-
var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, r = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof Bt == "object" && Bt && Bt.Object === Object && Bt, d = typeof self == "object" && self && self.Object === Object && self,
|
|
2897
|
-
return
|
|
2896
|
+
var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, r = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof Bt == "object" && Bt && Bt.Object === Object && Bt, d = typeof self == "object" && self && self.Object === Object && self, c = l || d || Function("return this")(), u = Object.prototype, p = u.toString, f = Math.max, g = Math.min, b = function() {
|
|
2897
|
+
return c.Date.now();
|
|
2898
2898
|
};
|
|
2899
2899
|
function N(m, _, M) {
|
|
2900
|
-
var L, q, X, H, R, Z, dt = 0, tt = !1,
|
|
2900
|
+
var L, q, X, H, R, Z, dt = 0, tt = !1, ut = !1, gt = !0;
|
|
2901
2901
|
if (typeof m != "function")
|
|
2902
2902
|
throw new TypeError(i);
|
|
2903
|
-
_ = $(_) || 0, U(M) && (tt = !!M.leading,
|
|
2903
|
+
_ = $(_) || 0, U(M) && (tt = !!M.leading, ut = "maxWait" in M, X = ut ? f($(M.maxWait) || 0, _) : X, gt = "trailing" in M ? !!M.trailing : gt);
|
|
2904
2904
|
function Ut(I) {
|
|
2905
|
-
var
|
|
2906
|
-
return L = q = void 0, dt = I, H = m.apply(Rt,
|
|
2905
|
+
var ct = L, Rt = q;
|
|
2906
|
+
return L = q = void 0, dt = I, H = m.apply(Rt, ct), H;
|
|
2907
2907
|
}
|
|
2908
2908
|
function Ie(I) {
|
|
2909
2909
|
return dt = I, R = setTimeout(jt, _), tt ? Ut(I) : H;
|
|
2910
2910
|
}
|
|
2911
2911
|
function Ft(I) {
|
|
2912
|
-
var
|
|
2913
|
-
return
|
|
2912
|
+
var ct = I - Z, Rt = I - dt, mn = _ - ct;
|
|
2913
|
+
return ut ? g(mn, X - Rt) : mn;
|
|
2914
2914
|
}
|
|
2915
2915
|
function _t(I) {
|
|
2916
|
-
var
|
|
2917
|
-
return Z === void 0 ||
|
|
2916
|
+
var ct = I - Z, Rt = I - dt;
|
|
2917
|
+
return Z === void 0 || ct >= _ || ct < 0 || ut && Rt >= X;
|
|
2918
2918
|
}
|
|
2919
2919
|
function jt() {
|
|
2920
2920
|
var I = b();
|
|
@@ -2932,11 +2932,11 @@ function ia() {
|
|
|
2932
2932
|
return R === void 0 ? H : Ne(b());
|
|
2933
2933
|
}
|
|
2934
2934
|
function B() {
|
|
2935
|
-
var I = b(),
|
|
2936
|
-
if (L = arguments, q = this, Z = I,
|
|
2935
|
+
var I = b(), ct = _t(I);
|
|
2936
|
+
if (L = arguments, q = this, Z = I, ct) {
|
|
2937
2937
|
if (R === void 0)
|
|
2938
2938
|
return Ie(Z);
|
|
2939
|
-
if (
|
|
2939
|
+
if (ut)
|
|
2940
2940
|
return R = setTimeout(jt, _), Ut(Z);
|
|
2941
2941
|
}
|
|
2942
2942
|
return R === void 0 && (R = setTimeout(jt, _)), H;
|
|
@@ -2993,11 +2993,6 @@ class Lo extends lt {
|
|
|
2993
2993
|
constructor() {
|
|
2994
2994
|
super();
|
|
2995
2995
|
P(this, ni, qn`
|
|
2996
|
-
.legend-container {
|
|
2997
|
-
display: flex;
|
|
2998
|
-
justify-content: center;
|
|
2999
|
-
}
|
|
3000
|
-
|
|
3001
2996
|
color-legend {
|
|
3002
2997
|
--cle-background: transparent;
|
|
3003
2998
|
--cle-font-family: inherit;
|
|
@@ -3048,6 +3043,8 @@ class Lo extends lt {
|
|
|
3048
3043
|
tickFormat="${Ue(this.layerLegend.tickFormat)}"
|
|
3049
3044
|
.ticks=${this.layerLegend.ticks ?? 5}
|
|
3050
3045
|
.tickValues=${this.layerLegend.tickValues}
|
|
3046
|
+
.marginLeft=${0}
|
|
3047
|
+
.marginRight=${0}
|
|
3051
3048
|
>
|
|
3052
3049
|
</color-legend>
|
|
3053
3050
|
</div>
|
|
@@ -3220,11 +3217,13 @@ class Mo extends lt {
|
|
|
3220
3217
|
?unstyled=${this.unstyled}
|
|
3221
3218
|
.for=${void 0}
|
|
3222
3219
|
.layer=${void 0}
|
|
3220
|
+
.navigation=${this.layerDatetime.navigation ?? !1}
|
|
3223
3221
|
.slider=${this.layerDatetime.slider ?? !1}
|
|
3224
|
-
.
|
|
3222
|
+
.play=${this.layerDatetime.play ?? !1}
|
|
3225
3223
|
.controlValues=${this.layerDatetime.controlValues}
|
|
3226
3224
|
.controlProperty=${void 0}
|
|
3227
3225
|
current-step=${this.layerDatetime.currentStep}
|
|
3226
|
+
.displayFormat=${this.layerDatetime.displayFormat}
|
|
3228
3227
|
@stepchange=${j(this, ai, Io)}
|
|
3229
3228
|
></eox-timecontrol>
|
|
3230
3229
|
`
|
|
@@ -3259,13 +3258,13 @@ customElements.define(
|
|
|
3259
3258
|
"eox-layercontrol-layer-datetime",
|
|
3260
3259
|
Mo
|
|
3261
3260
|
);
|
|
3262
|
-
var Oe,
|
|
3261
|
+
var Oe, ui, ci;
|
|
3263
3262
|
class No extends lt {
|
|
3264
3263
|
constructor() {
|
|
3265
3264
|
super();
|
|
3266
3265
|
/** @param {number} index */
|
|
3267
3266
|
P(this, Oe, (e) => (this.selectedTab === e || this.toolsAsList) && "highlighted");
|
|
3268
|
-
P(this,
|
|
3267
|
+
P(this, ui, `
|
|
3269
3268
|
.tabbed figure,
|
|
3270
3269
|
.listed figure {
|
|
3271
3270
|
margin: 0;
|
|
@@ -3287,12 +3286,8 @@ class No extends lt {
|
|
|
3287
3286
|
.listed .tab.highlighted {
|
|
3288
3287
|
display: block;
|
|
3289
3288
|
}
|
|
3290
|
-
.tabbed label.highlighted,
|
|
3291
|
-
.listed label.highlighted {
|
|
3292
|
-
background: lightgrey;
|
|
3293
|
-
}
|
|
3294
3289
|
`);
|
|
3295
|
-
P(this,
|
|
3290
|
+
P(this, ci, `
|
|
3296
3291
|
.listed label {
|
|
3297
3292
|
display: flex;
|
|
3298
3293
|
justify-content: start;
|
|
@@ -3310,7 +3305,9 @@ class No extends lt {
|
|
|
3310
3305
|
font-size: small;
|
|
3311
3306
|
}
|
|
3312
3307
|
.tabbed label.highlighted {
|
|
3313
|
-
|
|
3308
|
+
border: 1px solid #0041701a;
|
|
3309
|
+
border-radius: 2px;
|
|
3310
|
+
border-bottom: none;
|
|
3314
3311
|
pointer-events: none;
|
|
3315
3312
|
}
|
|
3316
3313
|
nav div label,
|
|
@@ -3324,8 +3321,9 @@ class No extends lt {
|
|
|
3324
3321
|
}
|
|
3325
3322
|
figure {
|
|
3326
3323
|
background: var(--background-color);
|
|
3327
|
-
border
|
|
3328
|
-
|
|
3324
|
+
border: 1px solid #0041701a;
|
|
3325
|
+
border-radius: 2px;
|
|
3326
|
+
padding: var(--padding-vertical) var(--padding);
|
|
3329
3327
|
}
|
|
3330
3328
|
`);
|
|
3331
3329
|
this.actions = [], this.selectedTab = 0, this.tabs = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1;
|
|
@@ -3344,8 +3342,8 @@ class No extends lt {
|
|
|
3344
3342
|
const e = this.tabs, n = this.actions, o = n.length + e.length > 1;
|
|
3345
3343
|
return x`
|
|
3346
3344
|
<style>
|
|
3347
|
-
${T(this,
|
|
3348
|
-
${!this.unstyled && T(this,
|
|
3345
|
+
${T(this, ui)}
|
|
3346
|
+
${!this.unstyled && T(this, ci)}
|
|
3349
3347
|
</style>
|
|
3350
3348
|
<div class="${this.toolsAsList ? "listed" : "tabbed"}">
|
|
3351
3349
|
<!-- Navigation for tabs and actions -->
|
|
@@ -3414,7 +3412,7 @@ class No extends lt {
|
|
|
3414
3412
|
`;
|
|
3415
3413
|
}
|
|
3416
3414
|
}
|
|
3417
|
-
Oe = new WeakMap(),
|
|
3415
|
+
Oe = new WeakMap(), ui = new WeakMap(), ci = new WeakMap(), // Define static properties for the component
|
|
3418
3416
|
F(No, "properties", {
|
|
3419
3417
|
actions: { attribute: !1 },
|
|
3420
3418
|
selectedTab: { state: !0 },
|
|
@@ -4012,7 +4010,7 @@ class Bo extends lt {
|
|
|
4012
4010
|
width: 100%;
|
|
4013
4011
|
align-items: center;
|
|
4014
4012
|
justify-content: space-between;
|
|
4015
|
-
padding:
|
|
4013
|
+
padding: var(--padding-vertical) 0;
|
|
4016
4014
|
display: var(--layer-visibility);
|
|
4017
4015
|
}
|
|
4018
4016
|
label, span {
|
|
@@ -4158,7 +4156,7 @@ class Uo extends lt {
|
|
|
4158
4156
|
P(this, yi, `
|
|
4159
4157
|
details summary {
|
|
4160
4158
|
cursor: pointer;
|
|
4161
|
-
display:
|
|
4159
|
+
display: var(--layer-summary-visibility);
|
|
4162
4160
|
}
|
|
4163
4161
|
details summary { list-style-type: none; } /* Firefox */
|
|
4164
4162
|
details summary::-webkit-details-marker { display: none; } /* Chrome */
|
|
@@ -4265,28 +4263,28 @@ var Zi, Un;
|
|
|
4265
4263
|
function da() {
|
|
4266
4264
|
if (Un) return Zi;
|
|
4267
4265
|
Un = 1;
|
|
4268
|
-
var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, r = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof Bt == "object" && Bt && Bt.Object === Object && Bt, d = typeof self == "object" && self && self.Object === Object && self,
|
|
4269
|
-
return
|
|
4266
|
+
var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, r = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof Bt == "object" && Bt && Bt.Object === Object && Bt, d = typeof self == "object" && self && self.Object === Object && self, c = l || d || Function("return this")(), u = Object.prototype, p = u.toString, f = Math.max, g = Math.min, b = function() {
|
|
4267
|
+
return c.Date.now();
|
|
4270
4268
|
};
|
|
4271
4269
|
function N($, m, _) {
|
|
4272
|
-
var M, L, q, X, H, R, Z = 0, dt = !1, tt = !1,
|
|
4270
|
+
var M, L, q, X, H, R, Z = 0, dt = !1, tt = !1, ut = !0;
|
|
4273
4271
|
if (typeof $ != "function")
|
|
4274
4272
|
throw new TypeError(i);
|
|
4275
|
-
m = K(m) || 0, J(_) && (dt = !!_.leading, tt = "maxWait" in _, q = tt ? f(K(_.maxWait) || 0, m) : q,
|
|
4273
|
+
m = K(m) || 0, J(_) && (dt = !!_.leading, tt = "maxWait" in _, q = tt ? f(K(_.maxWait) || 0, m) : q, ut = "trailing" in _ ? !!_.trailing : ut);
|
|
4276
4274
|
function gt(B) {
|
|
4277
|
-
var I = M,
|
|
4278
|
-
return M = L = void 0, Z = B, X = $.apply(
|
|
4275
|
+
var I = M, ct = L;
|
|
4276
|
+
return M = L = void 0, Z = B, X = $.apply(ct, I), X;
|
|
4279
4277
|
}
|
|
4280
4278
|
function Ut(B) {
|
|
4281
4279
|
return Z = B, H = setTimeout(_t, m), dt ? gt(B) : X;
|
|
4282
4280
|
}
|
|
4283
4281
|
function Ie(B) {
|
|
4284
|
-
var I = B - R,
|
|
4285
|
-
return tt ? g(Rt, q -
|
|
4282
|
+
var I = B - R, ct = B - Z, Rt = m - I;
|
|
4283
|
+
return tt ? g(Rt, q - ct) : Rt;
|
|
4286
4284
|
}
|
|
4287
4285
|
function Ft(B) {
|
|
4288
|
-
var I = B - R,
|
|
4289
|
-
return R === void 0 || I >= m || I < 0 || tt &&
|
|
4286
|
+
var I = B - R, ct = B - Z;
|
|
4287
|
+
return R === void 0 || I >= m || I < 0 || tt && ct >= q;
|
|
4290
4288
|
}
|
|
4291
4289
|
function _t() {
|
|
4292
4290
|
var B = b();
|
|
@@ -4295,7 +4293,7 @@ function da() {
|
|
|
4295
4293
|
H = setTimeout(_t, Ie(B));
|
|
4296
4294
|
}
|
|
4297
4295
|
function jt(B) {
|
|
4298
|
-
return H = void 0,
|
|
4296
|
+
return H = void 0, ut && M ? gt(B) : (M = L = void 0, X);
|
|
4299
4297
|
}
|
|
4300
4298
|
function Ne() {
|
|
4301
4299
|
H !== void 0 && clearTimeout(H), Z = 0, M = R = L = H = void 0;
|
|
@@ -4342,9 +4340,9 @@ function da() {
|
|
|
4342
4340
|
}
|
|
4343
4341
|
return Zi = N, Zi;
|
|
4344
4342
|
}
|
|
4345
|
-
var
|
|
4346
|
-
const
|
|
4347
|
-
const { layers: t, idProperty: e, titleProperty: n, renderRoot: o } = i, r =
|
|
4343
|
+
var ua = da();
|
|
4344
|
+
const ca = /* @__PURE__ */ Oo(ua), ha = (i) => {
|
|
4345
|
+
const { layers: t, idProperty: e, titleProperty: n, renderRoot: o } = i, r = ca(() => {
|
|
4348
4346
|
i.requestUpdate(), i.dispatchEvent(
|
|
4349
4347
|
new CustomEvent("changed", { bubbles: !0 })
|
|
4350
4348
|
);
|
|
@@ -4372,11 +4370,11 @@ class Fo extends lt {
|
|
|
4372
4370
|
ul ul {
|
|
4373
4371
|
padding-left: var(--list-padding);
|
|
4374
4372
|
}
|
|
4375
|
-
li {
|
|
4376
|
-
list-style: none;
|
|
4373
|
+
li:not(li li) {
|
|
4377
4374
|
padding-left: var(--padding);
|
|
4378
4375
|
}
|
|
4379
4376
|
li {
|
|
4377
|
+
list-style: none;
|
|
4380
4378
|
border-bottom: 1px solid #0041703a;
|
|
4381
4379
|
border: var(--layer-visibility);
|
|
4382
4380
|
}
|
|
@@ -4585,7 +4583,7 @@ async function ma(i) {
|
|
|
4585
4583
|
if (dn(t) === "XYZ")
|
|
4586
4584
|
return { Name: t };
|
|
4587
4585
|
try {
|
|
4588
|
-
const e = await
|
|
4586
|
+
const e = await us(t);
|
|
4589
4587
|
i.wmsCapabilities = e;
|
|
4590
4588
|
} catch {
|
|
4591
4589
|
} finally {
|
|
@@ -4807,7 +4805,7 @@ class Zo extends lt {
|
|
|
4807
4805
|
* Handles input fields, search, and addition of layers.
|
|
4808
4806
|
*/
|
|
4809
4807
|
render() {
|
|
4810
|
-
const e = this.open ? "open" : "close", n = this.open === "url", o = this.open === "json", r = !
|
|
4808
|
+
const e = this.open ? "open" : "close", n = this.open === "url", o = this.open === "json", r = !cs(this.urlInput) || this.searchLoad ? !0 : O;
|
|
4811
4809
|
return x`
|
|
4812
4810
|
<style>
|
|
4813
4811
|
${T(this, xi)}
|
|
@@ -4966,12 +4964,12 @@ const va = (i, t) => {
|
|
|
4966
4964
|
const t = wa(i.for);
|
|
4967
4965
|
return t && t.map !== i.map && (i.map = t.map), t;
|
|
4968
4966
|
};
|
|
4969
|
-
var Ht,
|
|
4967
|
+
var Ht, ue, Jo, Ko, $i;
|
|
4970
4968
|
class Go extends lt {
|
|
4971
4969
|
// Constructor to set default values for properties
|
|
4972
4970
|
constructor() {
|
|
4973
4971
|
super();
|
|
4974
|
-
P(this,
|
|
4972
|
+
P(this, ue);
|
|
4975
4973
|
/**
|
|
4976
4974
|
* Instance of `eox-map` which is a wrapper for the OL
|
|
4977
4975
|
*
|
|
@@ -4982,8 +4980,10 @@ class Go extends lt {
|
|
|
4982
4980
|
:host, :root {
|
|
4983
4981
|
font-family: Roboto, sans-serif;
|
|
4984
4982
|
--padding: 0.5rem;
|
|
4983
|
+
--padding-vertical: .2rem;
|
|
4985
4984
|
--list-padding: 48px;
|
|
4986
4985
|
--layer-input-visibility: flex;
|
|
4986
|
+
--layer-summary-visibility: flex;
|
|
4987
4987
|
--layer-type-visibility: block;
|
|
4988
4988
|
--layer-title-visibility: flex;
|
|
4989
4989
|
--layer-visibility: block;
|
|
@@ -5053,8 +5053,8 @@ class Go extends lt {
|
|
|
5053
5053
|
.tools=${this.tools}
|
|
5054
5054
|
.unstyled=${this.unstyled}
|
|
5055
5055
|
.toolsAsList=${this.toolsAsList}
|
|
5056
|
-
@changed=${j(this,
|
|
5057
|
-
@datetime:updated=${j(this,
|
|
5056
|
+
@changed=${j(this, ue, Jo)}
|
|
5057
|
+
@datetime:updated=${j(this, ue, Ko)}
|
|
5058
5058
|
></eox-layercontrol-layer-list>
|
|
5059
5059
|
`
|
|
5060
5060
|
)}
|
|
@@ -5075,7 +5075,7 @@ class Go extends lt {
|
|
|
5075
5075
|
`;
|
|
5076
5076
|
}
|
|
5077
5077
|
}
|
|
5078
|
-
Ht = new WeakMap(),
|
|
5078
|
+
Ht = new WeakMap(), ue = new WeakSet(), /**
|
|
5079
5079
|
* Event handler for changes in the layer list
|
|
5080
5080
|
*
|
|
5081
5081
|
* @param {CustomEvent & {target: Element}} evt
|