@eox/layercontrol 0.17.6-dev.1.0 → 0.18.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 +102 -99
- package/dist/eox-layercontrol.umd.cjs +50 -50
- package/package.json +1 -1
package/dist/eox-layercontrol.js
CHANGED
|
@@ -4,7 +4,7 @@ var qn = (e) => {
|
|
|
4
4
|
};
|
|
5
5
|
var To = (e, t, n) => t in e ? Co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
6
|
var H = (e, t, n) => To(e, typeof t != "symbol" ? t + "" : t, n), cn = (e, t, n) => t.has(e) || qn("Cannot " + n);
|
|
7
|
-
var
|
|
7
|
+
var D = (e, t, n) => (cn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), T = (e, t, n) => t.has(e) ? qn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Jt = (e, t, n, i) => (cn(e, t, "write to private field"), i ? i.call(e, n) : t.set(e, n), n), k = (e, t, n) => (cn(e, t, "access private method"), n);
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2019 Google LLC
|
|
@@ -29,7 +29,7 @@ let Po = class {
|
|
|
29
29
|
return this.cssText;
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
const
|
|
32
|
+
const Ro = (e) => new Po(typeof e == "string" ? e : e + "", void 0, wi), Do = (e, t) => {
|
|
33
33
|
if (Hn) e.adoptedStyleSheets = t.map((n) => n instanceof CSSStyleSheet ? n : n.styleSheet);
|
|
34
34
|
else for (const n of t) {
|
|
35
35
|
const i = document.createElement("style"), o = Ce.litNonce;
|
|
@@ -38,14 +38,14 @@ const Oo = (e) => new Po(typeof e == "string" ? e : e + "", void 0, wi), Ro = (e
|
|
|
38
38
|
}, Gn = Hn ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
|
|
39
39
|
let n = "";
|
|
40
40
|
for (const i of t.cssRules) n += i.cssText;
|
|
41
|
-
return
|
|
41
|
+
return Ro(n);
|
|
42
42
|
})(e) : e;
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is:
|
|
48
|
+
const { is: Oo, defineProperty: No, getOwnPropertyDescriptor: Mo, getOwnPropertyNames: Io, getOwnPropertySymbols: Ho, getPrototypeOf: Bo } = Object, _t = globalThis, Jn = _t.trustedTypes, Vo = Jn ? Jn.emptyScript : "", dn = _t.reactiveElementPolyfillSupport, ie = (e, t) => e, Tn = { toAttribute(e, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
e = e ? Vo : null;
|
|
@@ -73,7 +73,7 @@ const { is: Do, defineProperty: No, getOwnPropertyDescriptor: Mo, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return n;
|
|
76
|
-
} }, Ei = (e, t) => !
|
|
76
|
+
} }, Ei = (e, t) => !Oo(e, t), Kn = { attribute: !0, type: String, converter: Tn, reflect: !1, hasChanged: Ei };
|
|
77
77
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _t.litPropertyMetadata ?? (_t.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
class Lt extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
@@ -161,7 +161,7 @@ class Lt extends HTMLElement {
|
|
|
161
161
|
}
|
|
162
162
|
createRenderRoot() {
|
|
163
163
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
164
|
-
return
|
|
164
|
+
return Do(t, this.constructor.elementStyles), t;
|
|
165
165
|
}
|
|
166
166
|
connectedCallback() {
|
|
167
167
|
var t;
|
|
@@ -312,7 +312,7 @@ class he {
|
|
|
312
312
|
if (o.nodeType === 1) {
|
|
313
313
|
if (o.hasAttributes()) for (const c of o.getAttributeNames()) if (c.endsWith(Bn)) {
|
|
314
314
|
const p = d[s++], f = o.getAttribute(c).split(pt), g = /([.?@])?(.*)/.exec(p);
|
|
315
|
-
l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Ti : g[1] === "?" ? Pi : g[1] === "@" ?
|
|
315
|
+
l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Ti : g[1] === "?" ? Pi : g[1] === "@" ? Ri : be }), o.removeAttribute(c);
|
|
316
316
|
} else c.startsWith(pt) && (l.push({ type: 6, index: r }), o.removeAttribute(c));
|
|
317
317
|
if ($i.test(o.tagName)) {
|
|
318
318
|
const c = o.textContent.split(pt), p = c.length - 1;
|
|
@@ -359,7 +359,7 @@ class Ci {
|
|
|
359
359
|
for (; l !== void 0; ) {
|
|
360
360
|
if (s === l.index) {
|
|
361
361
|
let u;
|
|
362
|
-
l.type === 2 ? u = new Xt(r, r.nextSibling, this, t) : l.type === 1 ? u = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (u = new
|
|
362
|
+
l.type === 2 ? u = new Xt(r, r.nextSibling, this, t) : l.type === 1 ? u = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (u = new Di(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
|
}
|
|
@@ -474,7 +474,7 @@ class Pi extends be {
|
|
|
474
474
|
this.element.toggleAttribute(this.name, !!t && t !== C);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
class
|
|
477
|
+
class Ri extends be {
|
|
478
478
|
constructor(t, n, i, o, r) {
|
|
479
479
|
super(t, n, i, o, r), this.type = 5;
|
|
480
480
|
}
|
|
@@ -488,7 +488,7 @@ class Oi extends be {
|
|
|
488
488
|
typeof this._$AH == "function" ? this._$AH.call(((n = this.options) == null ? void 0 : n.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
class
|
|
491
|
+
class Di {
|
|
492
492
|
constructor(t, n, i) {
|
|
493
493
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = n, this.options = i;
|
|
494
494
|
}
|
|
@@ -499,7 +499,7 @@ class Ri {
|
|
|
499
499
|
Ht(this, t);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
const Uo = { P: Bn, A: pt, C: Vn, M: 1, L: Ai, R: Ci, D: Si, V: Ht, I: Xt, H: be, N: Pi, U:
|
|
502
|
+
const Uo = { P: Bn, A: pt, C: Vn, M: 1, L: Ai, R: Ci, D: Si, V: Ht, I: Xt, H: be, N: Pi, U: Ri, B: Ti, F: Di }, pn = oe.litHtmlPolyfillSupport;
|
|
503
503
|
pn == null || pn(he, Xt), (oe.litHtmlVersions ?? (oe.litHtmlVersions = [])).push("3.1.2");
|
|
504
504
|
const Fo = (e, t, n) => {
|
|
505
505
|
const i = (n == null ? void 0 : n.renderBefore) ?? t;
|
|
@@ -601,7 +601,7 @@ const { I: jo } = Uo, zo = (e) => e.strings === void 0, ri = () => document.crea
|
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
603
|
return n;
|
|
604
|
-
}, Pt = (e, t, n = e) => (e._$AI(t, n), e), Zo = {},
|
|
604
|
+
}, Pt = (e, t, n = e) => (e._$AI(t, n), e), Zo = {}, Oi = (e, t = Zo) => e._$AH = t, Xo = (e) => e._$AH, gn = (e) => {
|
|
605
605
|
var i;
|
|
606
606
|
(i = e._$AP) == null || i.call(e, !1, !0);
|
|
607
607
|
let t = e._$AA;
|
|
@@ -663,7 +663,7 @@ const si = (e, t, n) => {
|
|
|
663
663
|
const y = o[c++];
|
|
664
664
|
y !== null && gn(y);
|
|
665
665
|
}
|
|
666
|
-
return this.ut = s,
|
|
666
|
+
return this.ut = s, Oi(e, l), ot;
|
|
667
667
|
}
|
|
668
668
|
});
|
|
669
669
|
/**
|
|
@@ -893,7 +893,7 @@ function rr(e, t) {
|
|
|
893
893
|
function sr(e, t) {
|
|
894
894
|
const n = V(
|
|
895
895
|
{},
|
|
896
|
-
|
|
896
|
+
Rr,
|
|
897
897
|
e,
|
|
898
898
|
t
|
|
899
899
|
);
|
|
@@ -1041,7 +1041,7 @@ function mt(e, t) {
|
|
|
1041
1041
|
);
|
|
1042
1042
|
}
|
|
1043
1043
|
function mr(e, t) {
|
|
1044
|
-
return V({},
|
|
1044
|
+
return V({}, Dr, e, t);
|
|
1045
1045
|
}
|
|
1046
1046
|
function yr(e, t) {
|
|
1047
1047
|
return V({}, Nr, e, t);
|
|
@@ -1050,7 +1050,7 @@ function br(e, t) {
|
|
|
1050
1050
|
return V({}, Mr, e, t);
|
|
1051
1051
|
}
|
|
1052
1052
|
function yn(e, t) {
|
|
1053
|
-
return V({},
|
|
1053
|
+
return V({}, Or, e, t);
|
|
1054
1054
|
}
|
|
1055
1055
|
function Bi(e, t) {
|
|
1056
1056
|
var n = mt(e, t);
|
|
@@ -1177,12 +1177,12 @@ const z = [
|
|
|
1177
1177
|
OnlineResource: m(Un),
|
|
1178
1178
|
LogoURL: m(Bi)
|
|
1179
1179
|
}
|
|
1180
|
-
),
|
|
1180
|
+
), Rr = j(z, {
|
|
1181
1181
|
westBoundLongitude: m(Ut),
|
|
1182
1182
|
eastBoundLongitude: m(Ut),
|
|
1183
1183
|
southBoundLatitude: m(Ut),
|
|
1184
1184
|
northBoundLatitude: m(Ut)
|
|
1185
|
-
}),
|
|
1185
|
+
}), Dr = j(
|
|
1186
1186
|
z,
|
|
1187
1187
|
{
|
|
1188
1188
|
GetCapabilities: m(
|
|
@@ -1195,7 +1195,7 @@ const z = [
|
|
|
1195
1195
|
yn
|
|
1196
1196
|
)
|
|
1197
1197
|
}
|
|
1198
|
-
),
|
|
1198
|
+
), Or = j(
|
|
1199
1199
|
z,
|
|
1200
1200
|
{
|
|
1201
1201
|
Format: J($),
|
|
@@ -1761,10 +1761,10 @@ var es = ["evt"], G = function(t, n) {
|
|
|
1761
1761
|
dragEl: h,
|
|
1762
1762
|
parentEl: N,
|
|
1763
1763
|
ghostEl: w,
|
|
1764
|
-
rootEl:
|
|
1765
|
-
nextEl:
|
|
1764
|
+
rootEl: R,
|
|
1765
|
+
nextEl: Ot,
|
|
1766
1766
|
lastDownEl: Pe,
|
|
1767
|
-
cloneEl:
|
|
1767
|
+
cloneEl: O,
|
|
1768
1768
|
cloneHidden: St,
|
|
1769
1769
|
dragStarted: te,
|
|
1770
1770
|
putSortable: U,
|
|
@@ -1794,16 +1794,16 @@ var es = ["evt"], G = function(t, n) {
|
|
|
1794
1794
|
function W(e) {
|
|
1795
1795
|
ts(dt({
|
|
1796
1796
|
putSortable: U,
|
|
1797
|
-
cloneEl:
|
|
1797
|
+
cloneEl: O,
|
|
1798
1798
|
targetEl: h,
|
|
1799
|
-
rootEl:
|
|
1799
|
+
rootEl: R,
|
|
1800
1800
|
oldIndex: Ft,
|
|
1801
1801
|
oldDraggableIndex: ae,
|
|
1802
1802
|
newIndex: tt,
|
|
1803
1803
|
newDraggableIndex: xt
|
|
1804
1804
|
}, e));
|
|
1805
1805
|
}
|
|
1806
|
-
var h, N, w,
|
|
1806
|
+
var h, N, w, R, Ot, Pe, O, St, Ft, tt, ae, xt, xe, U, kt = !1, Le = !1, ke = [], Rt, lt, wn, En, hi, pi, te, Vt, le, ue = !1, Se = !1, Re, Y, xn = [], Pn = !1, Ue = [], un = typeof document < "u", $e = Ui, fi = ve || bt ? "cssFloat" : "float", ns = un && !Fi && !Ui && "draggable" in document.createElement("div"), Wi = function() {
|
|
1807
1807
|
if (un) {
|
|
1808
1808
|
if (bt)
|
|
1809
1809
|
return !1;
|
|
@@ -1863,7 +1863,7 @@ un && !Fi && document.addEventListener("click", function(e) {
|
|
|
1863
1863
|
if (Le)
|
|
1864
1864
|
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Le = !1, !1;
|
|
1865
1865
|
}, !0);
|
|
1866
|
-
var
|
|
1866
|
+
var Dt = function(t) {
|
|
1867
1867
|
if (h) {
|
|
1868
1868
|
t = t.touches ? t.touches[0] : t;
|
|
1869
1869
|
var n = os(t.clientX, t.clientY);
|
|
@@ -1985,11 +1985,11 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1985
1985
|
var o = this, r = o.el, s = o.options, a = r.ownerDocument, l;
|
|
1986
1986
|
if (i && !h && i.parentNode === r) {
|
|
1987
1987
|
var u = I(i);
|
|
1988
|
-
if (
|
|
1988
|
+
if (R = r, h = i, N = h.parentNode, Ot = h.nextSibling, Pe = i, xe = s.group, v.dragged = h, Rt = {
|
|
1989
1989
|
target: h,
|
|
1990
1990
|
clientX: (n || t).clientX,
|
|
1991
1991
|
clientY: (n || t).clientY
|
|
1992
|
-
}, hi =
|
|
1992
|
+
}, hi = Rt.clientX - u.left, pi = Rt.clientY - u.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, h.style["will-change"] = "all", l = function() {
|
|
1993
1993
|
if (G("delayEnded", o, {
|
|
1994
1994
|
evt: t
|
|
1995
1995
|
}), v.eventCanceled) {
|
|
@@ -2003,7 +2003,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2003
2003
|
}), Q(h, s.chosenClass, !0);
|
|
2004
2004
|
}, s.ignore.split(",").forEach(function(d) {
|
|
2005
2005
|
zi(h, d.trim(), Sn);
|
|
2006
|
-
}), _(a, "dragover",
|
|
2006
|
+
}), _(a, "dragover", Dt), _(a, "mousemove", Dt), _(a, "touchmove", Dt), _(a, "mouseup", o._onDrop), _(a, "touchend", o._onDrop), _(a, "touchcancel", o._onDrop), li && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), G("delayStart", this, {
|
|
2007
2007
|
evt: t
|
|
2008
2008
|
}), s.delay && (!s.delayOnTouchOnly || n) && (!this.nativeDraggable || !(ve || bt))) {
|
|
2009
2009
|
if (v.eventCanceled) {
|
|
@@ -2027,16 +2027,16 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2027
2027
|
S(t, "mouseup", this._disableDelayedDrag), S(t, "touchend", this._disableDelayedDrag), S(t, "touchcancel", this._disableDelayedDrag), S(t, "mousemove", this._delayedDragTouchMoveHandler), S(t, "touchmove", this._delayedDragTouchMoveHandler), S(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
2028
2028
|
},
|
|
2029
2029
|
_triggerDragStart: function(t, n) {
|
|
2030
|
-
n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? _(document, "pointermove", this._onTouchMove) : n ? _(document, "touchmove", this._onTouchMove) : _(document, "mousemove", this._onTouchMove) : (_(h, "dragend", this), _(
|
|
2030
|
+
n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? _(document, "pointermove", this._onTouchMove) : n ? _(document, "touchmove", this._onTouchMove) : _(document, "mousemove", this._onTouchMove) : (_(h, "dragend", this), _(R, "dragstart", this._onDragStart));
|
|
2031
2031
|
try {
|
|
2032
|
-
document.selection ?
|
|
2032
|
+
document.selection ? De(function() {
|
|
2033
2033
|
document.selection.empty();
|
|
2034
2034
|
}) : window.getSelection().removeAllRanges();
|
|
2035
2035
|
} catch {
|
|
2036
2036
|
}
|
|
2037
2037
|
},
|
|
2038
2038
|
_dragStarted: function(t, n) {
|
|
2039
|
-
if (kt = !1,
|
|
2039
|
+
if (kt = !1, R && h) {
|
|
2040
2040
|
G("dragStarted", this, {
|
|
2041
2041
|
evt: n
|
|
2042
2042
|
}), this.nativeDraggable && _(document, "dragover", rs);
|
|
@@ -2072,8 +2072,8 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2072
2072
|
}
|
|
2073
2073
|
},
|
|
2074
2074
|
_onTouchMove: function(t) {
|
|
2075
|
-
if (
|
|
2076
|
-
var n = this.options, i = n.fallbackTolerance, o = n.fallbackOffset, r = t.touches ? t.touches[0] : t, s = w && jt(w, !0), a = w && s && s.a, l = w && s && s.d, u = $e && Y && di(Y), d = (r.clientX -
|
|
2075
|
+
if (Rt) {
|
|
2076
|
+
var n = this.options, i = n.fallbackTolerance, o = n.fallbackOffset, r = t.touches ? t.touches[0] : t, s = w && jt(w, !0), a = w && s && s.a, l = w && s && s.d, u = $e && Y && di(Y), d = (r.clientX - Rt.clientX + o.x) / (a || 1) + (u ? u[0] - xn[0] : 0) / (a || 1), c = (r.clientY - Rt.clientY + o.y) / (l || 1) + (u ? u[1] - xn[1] : 0) / (l || 1);
|
|
2077
2077
|
if (!v.active && !kt) {
|
|
2078
2078
|
if (i && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < i)
|
|
2079
2079
|
return;
|
|
@@ -2096,7 +2096,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2096
2096
|
},
|
|
2097
2097
|
_appendGhost: function() {
|
|
2098
2098
|
if (!w) {
|
|
2099
|
-
var t = this.options.fallbackOnBody ? document.body :
|
|
2099
|
+
var t = this.options.fallbackOnBody ? document.body : R, n = I(h, !0, $e, !0, t), i = this.options;
|
|
2100
2100
|
if ($e) {
|
|
2101
2101
|
for (Y = t; b(Y, "position") === "static" && b(Y, "transform") === "none" && Y !== document; )
|
|
2102
2102
|
Y = Y.parentNode;
|
|
@@ -2113,12 +2113,12 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2113
2113
|
this._onDrop();
|
|
2114
2114
|
return;
|
|
2115
2115
|
}
|
|
2116
|
-
G("setupClone", this), v.eventCanceled || (
|
|
2117
|
-
G("clone", i), !v.eventCanceled && (i.options.removeCloneOnHide ||
|
|
2116
|
+
G("setupClone", this), v.eventCanceled || (O = Yi(h), O.removeAttribute("id"), O.draggable = !1, O.style["will-change"] = "", this._hideClone(), Q(O, this.options.chosenClass, !1), v.clone = O), i.cloneId = De(function() {
|
|
2117
|
+
G("clone", i), !v.eventCanceled && (i.options.removeCloneOnHide || R.insertBefore(O, h), i._hideClone(), W({
|
|
2118
2118
|
sortable: i,
|
|
2119
2119
|
name: "clone"
|
|
2120
2120
|
}));
|
|
2121
|
-
}), !n && Q(h, r.dragClass, !0), n ? (Le = !0, i._loopId = setInterval(i._emulateDragOver, 50)) : (S(document, "mouseup", i._onDrop), S(document, "touchend", i._onDrop), S(document, "touchcancel", i._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(i, o, h)), _(document, "drop", i), b(h, "transform", "translateZ(0)")), kt = !0, i._dragStartId =
|
|
2121
|
+
}), !n && Q(h, r.dragClass, !0), n ? (Le = !0, i._loopId = setInterval(i._emulateDragOver, 50)) : (S(document, "mouseup", i._onDrop), S(document, "touchend", i._onDrop), S(document, "touchcancel", i._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(i, o, h)), _(document, "drop", i), b(h, "transform", "translateZ(0)")), kt = !0, i._dragStartId = De(i._dragStarted.bind(i, n, t)), _(document, "selectstart", i), te = !0, re && b(document.body, "user-select", "none");
|
|
2122
2122
|
},
|
|
2123
2123
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
2124
2124
|
_onDragOver: function(t) {
|
|
@@ -2137,7 +2137,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2137
2137
|
target: i,
|
|
2138
2138
|
completed: B,
|
|
2139
2139
|
onMove: function(Yn, Ao) {
|
|
2140
|
-
return _e(
|
|
2140
|
+
return _e(R, n, h, o, Yn, I(Yn), t, Ao);
|
|
2141
2141
|
},
|
|
2142
2142
|
changed: K
|
|
2143
2143
|
}, _o));
|
|
@@ -2150,7 +2150,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2150
2150
|
insertion: Gt
|
|
2151
2151
|
}), Gt && (d ? u._hideClone() : u._showClone(g), g !== p && (Q(h, U ? U.options.ghostClass : u.options.ghostClass, !1), Q(h, a.ghostClass, !0)), U !== g && g !== v.active ? U = g : g === v.active && U && (U = null), p === g && (g._ignoreWhileAnimating = i), g.animateAll(function() {
|
|
2152
2152
|
P("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
|
|
2153
|
-
}), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i === n && !i.animated) && (Vt = null), !a.dragoverBubble && !t.rootEl && i !== document && (h.parentNode[et]._isOutsideThisEl(t.target), !Gt &&
|
|
2153
|
+
}), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i === n && !i.animated) && (Vt = null), !a.dragoverBubble && !t.rootEl && i !== document && (h.parentNode[et]._isOutsideThisEl(t.target), !Gt && Dt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), y = !0;
|
|
2154
2154
|
}
|
|
2155
2155
|
function K() {
|
|
2156
2156
|
tt = it(h), xt = it(h, a.draggable), W({
|
|
@@ -2165,21 +2165,21 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2165
2165
|
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = ut(i, a.draggable, n, !0), P("dragOver"), v.eventCanceled) return y;
|
|
2166
2166
|
if (h.contains(t.target) || i.animated && i.animatingX && i.animatingY || g._ignoreWhileAnimating === i)
|
|
2167
2167
|
return B(!1);
|
|
2168
|
-
if (Le = !1, u && !a.disabled && (d ? c || (s = N !==
|
|
2168
|
+
if (Le = !1, u && !a.disabled && (d ? c || (s = N !== R) : U === this || (this.lastPutMode = xe.checkPull(this, u, h, t)) && l.checkPut(this, u, h, t))) {
|
|
2169
2169
|
if (f = this._getDirection(t, i) === "vertical", o = I(h), P("dragOverValid"), v.eventCanceled) return y;
|
|
2170
2170
|
if (s)
|
|
2171
|
-
return N =
|
|
2171
|
+
return N = R, L(), this._hideClone(), P("revert"), v.eventCanceled || (Ot ? R.insertBefore(h, Ot) : R.appendChild(h)), B(!0);
|
|
2172
2172
|
var q = jn(n, a.draggable);
|
|
2173
2173
|
if (!q || us(t, f, this) && !q.animated) {
|
|
2174
2174
|
if (q === h)
|
|
2175
2175
|
return B(!1);
|
|
2176
|
-
if (q && n === t.target && (i = q), i && (r = I(i)), _e(
|
|
2176
|
+
if (q && n === t.target && (i = q), i && (r = I(i)), _e(R, n, h, o, i, r, t, !!i) !== !1)
|
|
2177
2177
|
return L(), q && q.nextSibling ? n.insertBefore(h, q.nextSibling) : n.appendChild(h), N = n, K(), B(!0);
|
|
2178
2178
|
} else if (q && ls(t, f, this)) {
|
|
2179
2179
|
var st = Zt(n, 0, a, !0);
|
|
2180
2180
|
if (st === h)
|
|
2181
2181
|
return B(!1);
|
|
2182
|
-
if (i = st, r = I(i), _e(
|
|
2182
|
+
if (i = st, r = I(i), _e(R, n, h, o, i, r, t, !1) !== !1)
|
|
2183
2183
|
return L(), n.insertBefore(h, st), N = n, K(), B(!0);
|
|
2184
2184
|
} else if (i.parentNode === n) {
|
|
2185
2185
|
r = I(i);
|
|
@@ -2197,9 +2197,9 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2197
2197
|
Vt = i, le = A;
|
|
2198
2198
|
var Wt = i.nextElementSibling, wt = !1;
|
|
2199
2199
|
wt = A === 1;
|
|
2200
|
-
var Ee = _e(
|
|
2200
|
+
var Ee = _e(R, n, h, o, i, r, t, wt);
|
|
2201
2201
|
if (Ee !== !1)
|
|
2202
|
-
return (Ee === 1 || Ee === -1) && (wt = Ee === 1), Pn = !0, setTimeout(as, 30), L(), wt && !Wt ? n.appendChild(h) : i.parentNode.insertBefore(h, wt ? Wt : i), vt && Xi(vt, 0, qt - vt.scrollTop), N = h.parentNode, Z !== void 0 && !Se && (
|
|
2202
|
+
return (Ee === 1 || Ee === -1) && (wt = Ee === 1), Pn = !0, setTimeout(as, 30), L(), wt && !Wt ? n.appendChild(h) : i.parentNode.insertBefore(h, wt ? Wt : i), vt && Xi(vt, 0, qt - vt.scrollTop), N = h.parentNode, Z !== void 0 && !Se && (Re = Math.abs(Z - I(i)[Yt])), K(), B(!0);
|
|
2203
2203
|
}
|
|
2204
2204
|
if (n.contains(h))
|
|
2205
2205
|
return B(!1);
|
|
@@ -2208,7 +2208,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2208
2208
|
},
|
|
2209
2209
|
_ignoreWhileAnimating: null,
|
|
2210
2210
|
_offMoveEvents: function() {
|
|
2211
|
-
S(document, "mousemove", this._onTouchMove), S(document, "touchmove", this._onTouchMove), S(document, "pointermove", this._onTouchMove), S(document, "dragover",
|
|
2211
|
+
S(document, "mousemove", this._onTouchMove), S(document, "touchmove", this._onTouchMove), S(document, "pointermove", this._onTouchMove), S(document, "dragover", Dt), S(document, "mousemove", Dt), S(document, "touchmove", Dt);
|
|
2212
2212
|
},
|
|
2213
2213
|
_offUpEvents: function() {
|
|
2214
2214
|
var t = this.el.ownerDocument;
|
|
@@ -2222,18 +2222,18 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2222
2222
|
this._nulling();
|
|
2223
2223
|
return;
|
|
2224
2224
|
}
|
|
2225
|
-
kt = !1, Se = !1, ue = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer),
|
|
2225
|
+
kt = !1, Se = !1, ue = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Rn(this.cloneId), Rn(this._dragStartId), this.nativeDraggable && (S(document, "drop", this), S(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), re && b(document.body, "user-select", ""), b(h, "transform", ""), t && (te && (t.cancelable && t.preventDefault(), !i.dropBubble && t.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (R === N || U && U.lastPutMode !== "clone") && O && O.parentNode && O.parentNode.removeChild(O), h && (this.nativeDraggable && S(h, "dragend", this), Sn(h), h.style["will-change"] = "", te && !kt && Q(h, U ? U.options.ghostClass : this.options.ghostClass, !1), Q(h, this.options.chosenClass, !1), W({
|
|
2226
2226
|
sortable: this,
|
|
2227
2227
|
name: "unchoose",
|
|
2228
2228
|
toEl: N,
|
|
2229
2229
|
newIndex: null,
|
|
2230
2230
|
newDraggableIndex: null,
|
|
2231
2231
|
originalEvent: t
|
|
2232
|
-
}),
|
|
2232
|
+
}), R !== N ? (tt >= 0 && (W({
|
|
2233
2233
|
rootEl: N,
|
|
2234
2234
|
name: "add",
|
|
2235
2235
|
toEl: N,
|
|
2236
|
-
fromEl:
|
|
2236
|
+
fromEl: R,
|
|
2237
2237
|
originalEvent: t
|
|
2238
2238
|
}), W({
|
|
2239
2239
|
sortable: this,
|
|
@@ -2244,7 +2244,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2244
2244
|
rootEl: N,
|
|
2245
2245
|
name: "sort",
|
|
2246
2246
|
toEl: N,
|
|
2247
|
-
fromEl:
|
|
2247
|
+
fromEl: R,
|
|
2248
2248
|
originalEvent: t
|
|
2249
2249
|
}), W({
|
|
2250
2250
|
sortable: this,
|
|
@@ -2269,7 +2269,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2269
2269
|
}), this.save()))), this._nulling();
|
|
2270
2270
|
},
|
|
2271
2271
|
_nulling: function() {
|
|
2272
|
-
G("nulling", this),
|
|
2272
|
+
G("nulling", this), R = h = N = w = Ot = O = Pe = St = Rt = lt = te = tt = xt = Ft = ae = Vt = le = U = xe = v.dragged = v.ghost = v.clone = v.active = null, Ue.forEach(function(t) {
|
|
2273
2273
|
t.checked = !0;
|
|
2274
2274
|
}), Ue.length = wn = En = 0;
|
|
2275
2275
|
},
|
|
@@ -2352,7 +2352,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2352
2352
|
_hideClone: function() {
|
|
2353
2353
|
if (!St) {
|
|
2354
2354
|
if (G("hideClone", this), v.eventCanceled) return;
|
|
2355
|
-
b(
|
|
2355
|
+
b(O, "display", "none"), this.options.removeCloneOnHide && O.parentNode && O.parentNode.removeChild(O), St = !0;
|
|
2356
2356
|
}
|
|
2357
2357
|
},
|
|
2358
2358
|
_showClone: function(t) {
|
|
@@ -2362,7 +2362,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2362
2362
|
}
|
|
2363
2363
|
if (St) {
|
|
2364
2364
|
if (G("showClone", this), v.eventCanceled) return;
|
|
2365
|
-
h.parentNode ==
|
|
2365
|
+
h.parentNode == R && !this.options.group.revertClone ? R.insertBefore(O, h) : Ot ? R.insertBefore(O, Ot) : R.appendChild(O), this.options.group.revertClone && this.animate(h, O), b(O, "display", ""), St = !1;
|
|
2366
2366
|
}
|
|
2367
2367
|
}
|
|
2368
2368
|
};
|
|
@@ -2393,10 +2393,10 @@ function us(e, t, n) {
|
|
|
2393
2393
|
function cs(e, t, n, i, o, r, s, a) {
|
|
2394
2394
|
var l = i ? e.clientY : e.clientX, u = i ? n.height : n.width, d = i ? n.top : n.left, c = i ? n.bottom : n.right, p = !1;
|
|
2395
2395
|
if (!s) {
|
|
2396
|
-
if (a &&
|
|
2396
|
+
if (a && Re < u * o) {
|
|
2397
2397
|
if (!ue && (le === 1 ? l > d + u * r / 2 : l < c - u * r / 2) && (ue = !0), ue)
|
|
2398
2398
|
p = !0;
|
|
2399
|
-
else if (le === 1 ? l < d +
|
|
2399
|
+
else if (le === 1 ? l < d + Re : l > c - Re)
|
|
2400
2400
|
return -le;
|
|
2401
2401
|
} else if (l > d + u * (1 - o) / 2 && l < c - u * (1 - o) / 2)
|
|
2402
2402
|
return ds(t);
|
|
@@ -2418,10 +2418,10 @@ function ps(e) {
|
|
|
2418
2418
|
i.checked && Ue.push(i);
|
|
2419
2419
|
}
|
|
2420
2420
|
}
|
|
2421
|
-
function
|
|
2421
|
+
function De(e) {
|
|
2422
2422
|
return setTimeout(e, 0);
|
|
2423
2423
|
}
|
|
2424
|
-
function
|
|
2424
|
+
function Rn(e) {
|
|
2425
2425
|
return clearTimeout(e);
|
|
2426
2426
|
}
|
|
2427
2427
|
un && _(document, "touchmove", function(e) {
|
|
@@ -2441,8 +2441,8 @@ v.utils = {
|
|
|
2441
2441
|
toggleClass: Q,
|
|
2442
2442
|
clone: Yi,
|
|
2443
2443
|
index: it,
|
|
2444
|
-
nextTick:
|
|
2445
|
-
cancelNextTick:
|
|
2444
|
+
nextTick: De,
|
|
2445
|
+
cancelNextTick: Rn,
|
|
2446
2446
|
detectDirection: Gi,
|
|
2447
2447
|
getChild: Zt
|
|
2448
2448
|
};
|
|
@@ -2462,7 +2462,7 @@ v.create = function(e, t) {
|
|
|
2462
2462
|
return new v(e, t);
|
|
2463
2463
|
};
|
|
2464
2464
|
v.version = Xr;
|
|
2465
|
-
var M = [], ee,
|
|
2465
|
+
var M = [], ee, Dn, On = !1, $n, _n, Fe, ne;
|
|
2466
2466
|
function fs() {
|
|
2467
2467
|
function e() {
|
|
2468
2468
|
this.defaults = {
|
|
@@ -2485,10 +2485,10 @@ function fs() {
|
|
|
2485
2485
|
!this.options.dragOverBubble && !i.rootEl && this._handleAutoScroll(i);
|
|
2486
2486
|
},
|
|
2487
2487
|
drop: function() {
|
|
2488
|
-
this.sortable.nativeDraggable ? S(document, "dragover", this._handleAutoScroll) : (S(document, "pointermove", this._handleFallbackAutoScroll), S(document, "touchmove", this._handleFallbackAutoScroll), S(document, "mousemove", this._handleFallbackAutoScroll)), gi(),
|
|
2488
|
+
this.sortable.nativeDraggable ? S(document, "dragover", this._handleAutoScroll) : (S(document, "pointermove", this._handleFallbackAutoScroll), S(document, "touchmove", this._handleFallbackAutoScroll), S(document, "mousemove", this._handleFallbackAutoScroll)), gi(), Oe(), Gr();
|
|
2489
2489
|
},
|
|
2490
2490
|
nulling: function() {
|
|
2491
|
-
Fe =
|
|
2491
|
+
Fe = Dn = ee = On = ne = $n = _n = null, M.length = 0;
|
|
2492
2492
|
},
|
|
2493
2493
|
_handleFallbackAutoScroll: function(n) {
|
|
2494
2494
|
this._handleAutoScroll(n, !0);
|
|
@@ -2498,13 +2498,13 @@ function fs() {
|
|
|
2498
2498
|
if (Fe = n, i || this.options.forceAutoScrollFallback || ve || bt || re) {
|
|
2499
2499
|
An(n, this.options, a, i);
|
|
2500
2500
|
var l = $t(a, !0);
|
|
2501
|
-
|
|
2501
|
+
On && (!ne || r !== $n || s !== _n) && (ne && gi(), ne = setInterval(function() {
|
|
2502
2502
|
var u = $t(document.elementFromPoint(r, s), !0);
|
|
2503
|
-
u !== l && (l = u,
|
|
2503
|
+
u !== l && (l = u, Oe()), An(n, o.options, u, i);
|
|
2504
2504
|
}, 10), $n = r, _n = s);
|
|
2505
2505
|
} else {
|
|
2506
2506
|
if (!this.options.bubbleScroll || $t(a, !0) === ct()) {
|
|
2507
|
-
|
|
2507
|
+
Oe();
|
|
2508
2508
|
return;
|
|
2509
2509
|
}
|
|
2510
2510
|
An(n, this.options, $t(a, !1), !1);
|
|
@@ -2515,7 +2515,7 @@ function fs() {
|
|
|
2515
2515
|
initializeByDefault: !0
|
|
2516
2516
|
});
|
|
2517
2517
|
}
|
|
2518
|
-
function
|
|
2518
|
+
function Oe() {
|
|
2519
2519
|
M.forEach(function(e) {
|
|
2520
2520
|
clearInterval(e.pid);
|
|
2521
2521
|
}), M = [];
|
|
@@ -2526,7 +2526,7 @@ function gi() {
|
|
|
2526
2526
|
var An = Zi(function(e, t, n, i) {
|
|
2527
2527
|
if (t.scroll) {
|
|
2528
2528
|
var o = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = ct(), u = !1, d;
|
|
2529
|
-
|
|
2529
|
+
Dn !== n && (Dn = n, Oe(), ee = t.scroll, d = t.scrollFn, ee === !0 && (ee = $t(n, !0)));
|
|
2530
2530
|
var c = 0, p = ee;
|
|
2531
2531
|
do {
|
|
2532
2532
|
var f = p, g = I(f), y = g.top, P = g.bottom, L = g.left, B = g.right, K = g.width, q = g.height, st = void 0, A = void 0, Z = f.scrollWidth, at = f.scrollHeight, X = b(f), Yt = f.scrollLeft, vt = f.scrollTop;
|
|
@@ -2543,7 +2543,7 @@ var An = Zi(function(e, t, n, i) {
|
|
|
2543
2543
|
layer: c
|
|
2544
2544
|
}), 24))), c++;
|
|
2545
2545
|
} while (t.bubbleScroll && p !== l && (p = $t(p, !1)));
|
|
2546
|
-
|
|
2546
|
+
On = u;
|
|
2547
2547
|
}
|
|
2548
2548
|
}, 30), to = function(t) {
|
|
2549
2549
|
var n = t.originalEvent, i = t.putSortable, o = t.dragEl, r = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
|
|
@@ -2760,7 +2760,7 @@ const oo = Ln(class extends kn {
|
|
|
2760
2760
|
} else if (e.type === Et.BOOLEAN_ATTRIBUTE) {
|
|
2761
2761
|
if (!!t === n.hasAttribute(i)) return ot;
|
|
2762
2762
|
} else if (e.type === Et.ATTRIBUTE && n.getAttribute(i) === t + "") return ot;
|
|
2763
|
-
return
|
|
2763
|
+
return Oi(e), t;
|
|
2764
2764
|
}
|
|
2765
2765
|
});
|
|
2766
2766
|
/**
|
|
@@ -2805,13 +2805,13 @@ var Ae = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2805
2805
|
function Ps(e) {
|
|
2806
2806
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2807
2807
|
}
|
|
2808
|
-
var
|
|
2808
|
+
var Rs = "Expected a function", mi = NaN, Ds = "[object Symbol]", Os = /^\s+|\s+$/g, Ns = /^[-+]0x[0-9a-f]+$/i, Ms = /^0b[01]+$/i, Is = /^0o[0-7]+$/i, Hs = parseInt, Bs = typeof Ae == "object" && Ae && Ae.Object === Object && Ae, Vs = typeof self == "object" && self && self.Object === Object && self, Ls = Bs || Vs || Function("return this")(), ks = Object.prototype, Us = ks.toString, Fs = Math.max, js = Math.min, Cn = function() {
|
|
2809
2809
|
return Ls.Date.now();
|
|
2810
2810
|
};
|
|
2811
2811
|
function zs(e, t, n) {
|
|
2812
2812
|
var i, o, r, s, a, l, u = 0, d = !1, c = !1, p = !0;
|
|
2813
2813
|
if (typeof e != "function")
|
|
2814
|
-
throw new TypeError(
|
|
2814
|
+
throw new TypeError(Rs);
|
|
2815
2815
|
t = yi(t) || 0, Mn(n) && (d = !!n.leading, c = "maxWait" in n, r = c ? Fs(yi(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
|
|
2816
2816
|
function f(A) {
|
|
2817
2817
|
var Z = i, at = o;
|
|
@@ -2863,7 +2863,7 @@ function Zs(e) {
|
|
|
2863
2863
|
return !!e && typeof e == "object";
|
|
2864
2864
|
}
|
|
2865
2865
|
function Xs(e) {
|
|
2866
|
-
return typeof e == "symbol" || Zs(e) && Us.call(e) ==
|
|
2866
|
+
return typeof e == "symbol" || Zs(e) && Us.call(e) == Ds;
|
|
2867
2867
|
}
|
|
2868
2868
|
function yi(e) {
|
|
2869
2869
|
if (typeof e == "number")
|
|
@@ -2876,7 +2876,7 @@ function yi(e) {
|
|
|
2876
2876
|
}
|
|
2877
2877
|
if (typeof e != "string")
|
|
2878
2878
|
return e === 0 ? e : +e;
|
|
2879
|
-
e = e.replace(
|
|
2879
|
+
e = e.replace(Os, "");
|
|
2880
2880
|
var n = Ms.test(e);
|
|
2881
2881
|
return n || Is.test(e) ? Hs(e.slice(2), n ? 2 : 8) : Ns.test(e) ? mi : +e;
|
|
2882
2882
|
}
|
|
@@ -2929,8 +2929,8 @@ class so extends nt {
|
|
|
2929
2929
|
};
|
|
2930
2930
|
return x`
|
|
2931
2931
|
<style>
|
|
2932
|
-
${
|
|
2933
|
-
${!this.unstyled &&
|
|
2932
|
+
${D(this, ze)}
|
|
2933
|
+
${!this.unstyled && D(this, Ze)}
|
|
2934
2934
|
</style>
|
|
2935
2935
|
${rt(
|
|
2936
2936
|
this.layerConfig,
|
|
@@ -2938,7 +2938,7 @@ class so extends nt {
|
|
|
2938
2938
|
<!-- Render a JSON form for layer configuration -->
|
|
2939
2939
|
<eox-jsonform
|
|
2940
2940
|
.schema=${this.layerConfig.schema}
|
|
2941
|
-
.value=${
|
|
2941
|
+
.value=${D(this, ge)}
|
|
2942
2942
|
.options=${n}
|
|
2943
2943
|
@change=${this.debouncedDataChange}
|
|
2944
2944
|
></eox-jsonform>
|
|
@@ -2954,8 +2954,8 @@ fe = new WeakMap(), ge = new WeakMap(), me = new WeakMap(), je = new WeakSet(),
|
|
|
2954
2954
|
*/
|
|
2955
2955
|
ao = function(n) {
|
|
2956
2956
|
Jt(this, fe, n.detail), Jt(this, me, Ts(
|
|
2957
|
-
|
|
2958
|
-
|
|
2957
|
+
D(this, fe),
|
|
2958
|
+
D(this, me),
|
|
2959
2959
|
this
|
|
2960
2960
|
)), this.requestUpdate();
|
|
2961
2961
|
}, ze = new WeakMap(), Ze = new WeakMap(), // Define static properties for the component
|
|
@@ -3034,8 +3034,8 @@ class lo extends nt {
|
|
|
3034
3034
|
const n = this.tabs, i = this.actions, o = i.length + n.length > 1;
|
|
3035
3035
|
return x`
|
|
3036
3036
|
<style>
|
|
3037
|
-
${
|
|
3038
|
-
${!this.unstyled &&
|
|
3037
|
+
${D(this, Xe)}
|
|
3038
|
+
${!this.unstyled && D(this, Ye)}
|
|
3039
3039
|
</style>
|
|
3040
3040
|
<div class="tabbed">
|
|
3041
3041
|
<!-- Navigation for tabs and actions -->
|
|
@@ -3049,7 +3049,7 @@ class lo extends nt {
|
|
|
3049
3049
|
n,
|
|
3050
3050
|
(r, s) => x`
|
|
3051
3051
|
<label
|
|
3052
|
-
class=${
|
|
3052
|
+
class=${D(this, ye).call(this, s)}
|
|
3053
3053
|
@click=${() => this.selectedTab = s}
|
|
3054
3054
|
>
|
|
3055
3055
|
<!-- Customizable icon for each tab -->
|
|
@@ -3078,7 +3078,7 @@ class lo extends nt {
|
|
|
3078
3078
|
${Ne(
|
|
3079
3079
|
n,
|
|
3080
3080
|
(r, s) => x`
|
|
3081
|
-
<div class="tab ${
|
|
3081
|
+
<div class="tab ${D(this, ye).call(this, s)}">
|
|
3082
3082
|
<!-- Content slot for each tab -->
|
|
3083
3083
|
<slot name=${`${r}-content`}>${r}</slot>
|
|
3084
3084
|
</div>
|
|
@@ -3481,8 +3481,8 @@ class co extends nt {
|
|
|
3481
3481
|
) : C, r = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = n == null ? void 0 : n.length, a = i == null ? void 0 : i.length;
|
|
3482
3482
|
return x`
|
|
3483
3483
|
<style>
|
|
3484
|
-
${
|
|
3485
|
-
${!this.unstyled &&
|
|
3484
|
+
${D(this, qe)}
|
|
3485
|
+
${!this.unstyled && D(this, We)}
|
|
3486
3486
|
</style>
|
|
3487
3487
|
${rt(
|
|
3488
3488
|
s + a > 0,
|
|
@@ -3672,8 +3672,8 @@ class ho extends nt {
|
|
|
3672
3672
|
const n = this.layer.getVisible(), i = n ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", r = k(this, At, Me).call(this, "layerControlDisable") ? "disabled" : "", s = k(this, At, Me).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
|
|
3673
3673
|
return x`
|
|
3674
3674
|
<style>
|
|
3675
|
-
${
|
|
3676
|
-
${!this.unstyled &&
|
|
3675
|
+
${D(this, Ge)}
|
|
3676
|
+
${!this.unstyled && D(this, Je)}
|
|
3677
3677
|
</style>
|
|
3678
3678
|
${rt(
|
|
3679
3679
|
this.layer,
|
|
@@ -3786,8 +3786,8 @@ class fo extends nt {
|
|
|
3786
3786
|
)) == null ? void 0 : r.length;
|
|
3787
3787
|
return x`
|
|
3788
3788
|
<style>
|
|
3789
|
-
${
|
|
3790
|
-
${!this.unstyled &&
|
|
3789
|
+
${D(this, Ke)}
|
|
3790
|
+
${!this.unstyled && D(this, Qe)}
|
|
3791
3791
|
</style>
|
|
3792
3792
|
${rt(
|
|
3793
3793
|
this.group,
|
|
@@ -3916,8 +3916,8 @@ class go extends nt {
|
|
|
3916
3916
|
const n = this.layers ? io(this.layers).reverse() : [];
|
|
3917
3917
|
return x`
|
|
3918
3918
|
<style>
|
|
3919
|
-
${
|
|
3920
|
-
${!this.unstyled &&
|
|
3919
|
+
${D(this, tn)}
|
|
3920
|
+
${!this.unstyled && D(this, en)}
|
|
3921
3921
|
</style>
|
|
3922
3922
|
<ul>
|
|
3923
3923
|
${rt(
|
|
@@ -4309,8 +4309,8 @@ class bo extends nt {
|
|
|
4309
4309
|
const n = this.open ? "open" : "close", i = this.open === "url", o = this.open === "json", r = !kr(this.urlInput) || this.searchLoad ? !0 : C;
|
|
4310
4310
|
return x`
|
|
4311
4311
|
<style>
|
|
4312
|
-
${
|
|
4313
|
-
${!this.unstyled &&
|
|
4312
|
+
${D(this, on)}
|
|
4313
|
+
${!this.unstyled && D(this, rn)}
|
|
4314
4314
|
</style>
|
|
4315
4315
|
<div class="eox-add-layer-main">
|
|
4316
4316
|
<div class="eox-add-layer-col">
|
|
@@ -4458,8 +4458,11 @@ const sa = (e, t) => {
|
|
|
4458
4458
|
n == null || n.requestUpdate();
|
|
4459
4459
|
}
|
|
4460
4460
|
}, aa = (e) => {
|
|
4461
|
-
|
|
4462
|
-
return
|
|
4461
|
+
let t;
|
|
4462
|
+
return typeof e == "string" ? t = document.querySelector(e) : t = e, t;
|
|
4463
|
+
}, la = (e) => {
|
|
4464
|
+
const t = aa(e.for);
|
|
4465
|
+
return t && t.map !== e.map && (e.map = t.map), t;
|
|
4463
4466
|
};
|
|
4464
4467
|
var zt, sn, $o, an;
|
|
4465
4468
|
class So extends nt {
|
|
@@ -4481,24 +4484,24 @@ class So extends nt {
|
|
|
4481
4484
|
* Updated #eoxMap after first update.
|
|
4482
4485
|
*/
|
|
4483
4486
|
firstUpdated() {
|
|
4484
|
-
Jt(this, zt,
|
|
4487
|
+
Jt(this, zt, la(this));
|
|
4485
4488
|
}
|
|
4486
4489
|
render() {
|
|
4487
4490
|
var o, r, s;
|
|
4488
4491
|
const n = (o = this.map) == null ? void 0 : o.getLayers().getArray(), i = n && ((r = Xn(n, "layerControlOptional", !0)) == null ? void 0 : r.length) > 0;
|
|
4489
4492
|
return x`
|
|
4490
4493
|
<style>
|
|
4491
|
-
${!this.unstyled &&
|
|
4494
|
+
${!this.unstyled && D(this, an)}
|
|
4492
4495
|
${this.styleOverride}
|
|
4493
4496
|
</style>
|
|
4494
4497
|
|
|
4495
4498
|
<!-- Conditional rendering of add layers component -->
|
|
4496
4499
|
${rt(
|
|
4497
|
-
this.addExternalLayers && ((s =
|
|
4500
|
+
this.addExternalLayers && ((s = D(this, zt)) == null ? void 0 : s.addOrUpdateLayer),
|
|
4498
4501
|
() => x`
|
|
4499
4502
|
<eox-layercontrol-add-layers
|
|
4500
4503
|
.noShadow=${!0}
|
|
4501
|
-
.eoxMap=${
|
|
4504
|
+
.eoxMap=${D(this, zt)}
|
|
4502
4505
|
.unstyled=${this.unstyled}
|
|
4503
4506
|
></eox-layercontrol-add-layers>
|
|
4504
4507
|
`
|