@eox/layercontrol 1.3.2 → 1.4.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 +94 -89
- package/dist/eox-layercontrol.umd.cjs +13 -11
- package/package.json +1 -1
- package/src/components/layer-datetime.js +23 -4
- package/types/layercontrol/src/components/layer-datetime.d.ts +2 -0
- package/types/layercontrol/src/components/layer-datetime.d.ts.map +1 -1
- package/types/map/src/helpers/select.d.ts.map +1 -1
- package/types/map/src/plugins/globe/methods.d.ts.map +1 -1
- package/types/map/src/plugins/globe/openglobus.d.ts.map +1 -1
package/dist/eox-layercontrol.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const z0 = globalThis, me = z0.ShadowRoot && (z0.ShadyCSS === void 0 || z0.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, he = Symbol(), Ae = /* @__PURE__ */ new WeakMap();
|
|
1
|
+
const z0 = globalThis, me = z0.ShadowRoot && (z0.ShadyCSS === void 0 || z0.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, he = /* @__PURE__ */ Symbol(), Ae = /* @__PURE__ */ new WeakMap();
|
|
2
2
|
let rt = class {
|
|
3
3
|
constructor(e, r, i) {
|
|
4
4
|
if (this._$cssResult$ = !0, i !== he) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -64,7 +64,7 @@ const { is: Zt, defineProperty: Ut, getOwnPropertyDescriptor: jt, getOwnProperty
|
|
|
64
64
|
}
|
|
65
65
|
return r;
|
|
66
66
|
} }, it = (t, e) => !Zt(t, e), Te = { attribute: !0, type: String, converter: se, reflect: !1, useDefault: !1, hasChanged: it };
|
|
67
|
-
Symbol.metadata ??= Symbol("metadata"), P0.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
67
|
+
Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), P0.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
68
68
|
let j2 = class extends HTMLElement {
|
|
69
69
|
static addInitializer(e) {
|
|
70
70
|
this._$Ei(), (this.l ??= []).push(e);
|
|
@@ -74,7 +74,7 @@ let j2 = class extends HTMLElement {
|
|
|
74
74
|
}
|
|
75
75
|
static createProperty(e, r = Te) {
|
|
76
76
|
if (r.state && (r.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((r = Object.create(r)).wrapped = !0), this.elementProperties.set(e, r), !r.noAccessor) {
|
|
77
|
-
const i = Symbol(), o = this.getPropertyDescriptor(e, i, r);
|
|
77
|
+
const i = /* @__PURE__ */ Symbol(), o = this.getPropertyDescriptor(e, i, r);
|
|
78
78
|
o !== void 0 && Ut(this.prototype, e, o);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -247,12 +247,12 @@ let j2 = class extends HTMLElement {
|
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
249
|
j2.elementStyles = [], j2.shadowRootOptions = { mode: "open" }, j2[a0("elementProperties")] = /* @__PURE__ */ new Map(), j2[a0("finalized")] = /* @__PURE__ */ new Map(), Gt?.({ ReactiveElement: j2 }), (P0.reactiveElementVersions ??= []).push("2.1.1");
|
|
250
|
-
const ge = globalThis, T0 = ge.trustedTypes,
|
|
251
|
-
\f\r]`, e0 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
252
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ve = /'/g, Oe = /"/g, nt = /^(?:script|style|textarea|title)$/i, Qt = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), h = Qt(1), h2 = Symbol.for("lit-noChange"), M = Symbol.for("lit-nothing"), Re = /* @__PURE__ */ new WeakMap(), F2 = N2.createTreeWalker(N2, 129);
|
|
250
|
+
const ge = globalThis, T0 = ge.trustedTypes, De = T0 ? T0.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ot = "$lit$", S2 = `lit$${Math.random().toFixed(9).slice(2)}$`, at = "?" + S2, Jt = `<${at}>`, N2 = document, p0 = () => N2.createComment(""), m0 = (t) => t === null || typeof t != "object" && typeof t != "function", fe = Array.isArray, Kt = (t) => fe(t) || typeof t?.[Symbol.iterator] == "function", j0 = `[
|
|
251
|
+
\f\r]`, e0 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Be = /-->/g, He = />/g, H2 = RegExp(`>|${j0}(?:([^\\s"'>=/]+)(${j0}*=${j0}*(?:[^
|
|
252
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ve = /'/g, Oe = /"/g, nt = /^(?:script|style|textarea|title)$/i, Qt = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), h = Qt(1), h2 = /* @__PURE__ */ Symbol.for("lit-noChange"), M = /* @__PURE__ */ Symbol.for("lit-nothing"), Re = /* @__PURE__ */ new WeakMap(), F2 = N2.createTreeWalker(N2, 129);
|
|
253
253
|
function st(t, e) {
|
|
254
254
|
if (!fe(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
255
|
-
return
|
|
255
|
+
return De !== void 0 ? De.createHTML(e) : e;
|
|
256
256
|
}
|
|
257
257
|
const e1 = (t, e) => {
|
|
258
258
|
const r = t.length - 1, i = [];
|
|
@@ -260,7 +260,7 @@ const e1 = (t, e) => {
|
|
|
260
260
|
for (let s = 0; s < r; s++) {
|
|
261
261
|
const l = t[s];
|
|
262
262
|
let c, u, d = -1, m = 0;
|
|
263
|
-
for (; m < l.length && (n.lastIndex = m, u = n.exec(l), u !== null); ) m = n.lastIndex, n === e0 ? u[1] === "!--" ? n =
|
|
263
|
+
for (; m < l.length && (n.lastIndex = m, u = n.exec(l), u !== null); ) m = n.lastIndex, n === e0 ? u[1] === "!--" ? n = Be : u[1] !== void 0 ? n = He : u[2] !== void 0 ? (nt.test(u[2]) && (o = RegExp("</" + u[2], "g")), n = H2) : u[3] !== void 0 && (n = H2) : n === H2 ? u[0] === ">" ? (n = o ?? e0, d = -1) : u[1] === void 0 ? d = -2 : (d = n.lastIndex - u[2].length, c = u[1], n = u[3] === void 0 ? H2 : u[3] === '"' ? Oe : Ve) : n === Oe || n === Ve ? n = H2 : n === Be || n === He ? n = e0 : (n = H2, o = void 0);
|
|
264
264
|
const g = n === H2 && t[s + 1].startsWith("/>") ? " " : "";
|
|
265
265
|
a += n === e0 ? l + Jt : d >= 0 ? (i.push(c), l.slice(0, d) + ot + l.slice(d) + S2 + g) : l + S2 + (d === -2 ? s : g);
|
|
266
266
|
}
|
|
@@ -573,11 +573,11 @@ const Fe = (t, e, r) => {
|
|
|
573
573
|
else if (s[d] === n[f]) l[f] = V2(o[d], a[f]), t0(t, l[f + 1], o[d]), d++, f--;
|
|
574
574
|
else if (s[m] === n[g]) l[g] = V2(o[m], a[g]), t0(t, o[d], o[m]), m--, g++;
|
|
575
575
|
else if (c === void 0 && (c = Fe(n, g, f), u = Fe(s, d, m)), c.has(s[d])) if (c.has(s[m])) {
|
|
576
|
-
const y = u.get(n[g]),
|
|
577
|
-
if (
|
|
576
|
+
const y = u.get(n[g]), B = y !== void 0 ? o[y] : null;
|
|
577
|
+
if (B === null) {
|
|
578
578
|
const X = t0(t, o[d]);
|
|
579
579
|
V2(X, a[g]), l[g] = X;
|
|
580
|
-
} else l[g] = V2(
|
|
580
|
+
} else l[g] = V2(B, a[g]), t0(t, o[d], B), o[y] = null;
|
|
581
581
|
g++;
|
|
582
582
|
} else q0(o[m]), m--;
|
|
583
583
|
else q0(o[d]), d++;
|
|
@@ -756,9 +756,9 @@ function C2(t) {
|
|
|
756
756
|
return parseFloat(e[1]);
|
|
757
757
|
}
|
|
758
758
|
function X0(t) {
|
|
759
|
-
return
|
|
759
|
+
return D0(I0(t, !1));
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function D0(t) {
|
|
762
762
|
const e = /^\s*(\d+)\s*$/.exec(t);
|
|
763
763
|
if (e)
|
|
764
764
|
return parseInt(e[1], 10);
|
|
@@ -860,7 +860,7 @@ function T1(t, e) {
|
|
|
860
860
|
e
|
|
861
861
|
);
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function D1(t, e) {
|
|
864
864
|
return W(
|
|
865
865
|
[],
|
|
866
866
|
W1,
|
|
@@ -868,7 +868,7 @@ function B1(t, e) {
|
|
|
868
868
|
e
|
|
869
869
|
);
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function B1(t, e) {
|
|
872
872
|
const r = I2(t.getAttribute("queryable"));
|
|
873
873
|
return W(
|
|
874
874
|
{
|
|
@@ -896,7 +896,7 @@ function H1(t, e) {
|
|
|
896
896
|
if (!_(i)) return;
|
|
897
897
|
let o = I2(t.getAttribute("queryable"));
|
|
898
898
|
_(o) || (o = r.queryable), i.queryable = _(o) ? o : !1;
|
|
899
|
-
let a =
|
|
899
|
+
let a = D0(t.getAttribute("cascaded"));
|
|
900
900
|
_(a) || (a = r.cascaded), i.cascaded = a;
|
|
901
901
|
let n = I2(t.getAttribute("opaque"));
|
|
902
902
|
_(n) || (n = r.opaque), i.opaque = _(n) ? n : !1;
|
|
@@ -910,8 +910,8 @@ function H1(t, e) {
|
|
|
910
910
|
for (let m = 0, g = u.length; m < g; m++) {
|
|
911
911
|
const f = u[m], y = r[f];
|
|
912
912
|
if (_(y)) {
|
|
913
|
-
let
|
|
914
|
-
|
|
913
|
+
let B = ct(i, f, []);
|
|
914
|
+
B = B.concat(y), i[f] = B;
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
917
|
const d = [
|
|
@@ -925,8 +925,8 @@ function H1(t, e) {
|
|
|
925
925
|
for (let m = 0, g = d.length; m < g; m++) {
|
|
926
926
|
const f = d[m], y = i[f];
|
|
927
927
|
if (!_(y)) {
|
|
928
|
-
const
|
|
929
|
-
i[f] =
|
|
928
|
+
const B = r[f];
|
|
929
|
+
i[f] = B;
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
932
|
return i;
|
|
@@ -967,8 +967,8 @@ function mt(t, e) {
|
|
|
967
967
|
var r = w2(t, e);
|
|
968
968
|
if (_(r)) {
|
|
969
969
|
const i = [
|
|
970
|
-
|
|
971
|
-
|
|
970
|
+
D0(t.getAttribute("width")),
|
|
971
|
+
D0(t.getAttribute("height"))
|
|
972
972
|
];
|
|
973
973
|
return r.size = i, r;
|
|
974
974
|
}
|
|
@@ -1007,8 +1007,8 @@ const Q = [
|
|
|
1007
1007
|
Q,
|
|
1008
1008
|
{
|
|
1009
1009
|
Request: v(O1),
|
|
1010
|
-
Exception: v(
|
|
1011
|
-
Layer: v(
|
|
1010
|
+
Exception: v(D1),
|
|
1011
|
+
Layer: v(B1)
|
|
1012
1012
|
}
|
|
1013
1013
|
), j1 = K(
|
|
1014
1014
|
Q,
|
|
@@ -1327,7 +1327,7 @@ function $(t, e, r) {
|
|
|
1327
1327
|
function L(t, e, r) {
|
|
1328
1328
|
t.removeEventListener(e, r, !_2 && vt);
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1330
|
+
function B0(t, e) {
|
|
1331
1331
|
if (e) {
|
|
1332
1332
|
if (e[0] === ">" && (e = e.substring(1)), t)
|
|
1333
1333
|
try {
|
|
@@ -1350,7 +1350,7 @@ function f2(t, e, r, i) {
|
|
|
1350
1350
|
if (t) {
|
|
1351
1351
|
r = r || document;
|
|
1352
1352
|
do {
|
|
1353
|
-
if (e != null && (e[0] === ">" ? t.parentNode === r &&
|
|
1353
|
+
if (e != null && (e[0] === ">" ? t.parentNode === r && B0(t, e) : B0(t, e)) || i && t === r)
|
|
1354
1354
|
return t;
|
|
1355
1355
|
if (t === r) break;
|
|
1356
1356
|
} while (t = yt(t));
|
|
@@ -1447,7 +1447,7 @@ function J2(t, e, r, i) {
|
|
|
1447
1447
|
return null;
|
|
1448
1448
|
}
|
|
1449
1449
|
function ke(t, e) {
|
|
1450
|
-
for (var r = t.lastElementChild; r && (r === x.ghost || C(r, "display") === "none" || e && !
|
|
1450
|
+
for (var r = t.lastElementChild; r && (r === x.ghost || C(r, "display") === "none" || e && !B0(r, e)); )
|
|
1451
1451
|
r = r.previousElementSibling;
|
|
1452
1452
|
return r || null;
|
|
1453
1453
|
}
|
|
@@ -1456,7 +1456,7 @@ function m2(t, e) {
|
|
|
1456
1456
|
if (!t || !t.parentNode)
|
|
1457
1457
|
return -1;
|
|
1458
1458
|
for (; t = t.previousElementSibling; )
|
|
1459
|
-
t.nodeName.toUpperCase() !== "TEMPLATE" && t !== x.clone && (!e ||
|
|
1459
|
+
t.nodeName.toUpperCase() !== "TEMPLATE" && t !== x.clone && (!e || B0(t, e)) && r++;
|
|
1460
1460
|
return r;
|
|
1461
1461
|
}
|
|
1462
1462
|
function je(t) {
|
|
@@ -1651,7 +1651,7 @@ var Z2 = [], G0 = {
|
|
|
1651
1651
|
function Cr(t) {
|
|
1652
1652
|
var e = t.sortable, r = t.rootEl, i = t.name, o = t.targetEl, a = t.cloneEl, n = t.toEl, s = t.fromEl, l = t.oldIndex, c = t.newIndex, u = t.oldDraggableIndex, d = t.newDraggableIndex, m = t.originalEvent, g = t.putSortable, f = t.extraEventProperties;
|
|
1653
1653
|
if (e = e || r && r[c2], !!e) {
|
|
1654
|
-
var y,
|
|
1654
|
+
var y, B = e.options, X = "on" + i.charAt(0).toUpperCase() + i.substr(1);
|
|
1655
1655
|
window.CustomEvent && !_2 && !f0 ? y = new CustomEvent(i, {
|
|
1656
1656
|
bubbles: !0,
|
|
1657
1657
|
cancelable: !0
|
|
@@ -1659,7 +1659,7 @@ function Cr(t) {
|
|
|
1659
1659
|
var F = v2(v2({}, f), b0.getEventProperties(i, e));
|
|
1660
1660
|
for (var t2 in F)
|
|
1661
1661
|
y[t2] = F[t2];
|
|
1662
|
-
r && r.dispatchEvent(y),
|
|
1662
|
+
r && r.dispatchEvent(y), B[X] && B[X].call(e, y);
|
|
1663
1663
|
}
|
|
1664
1664
|
}
|
|
1665
1665
|
var xr = ["evt"], s2 = function(e, r) {
|
|
@@ -1854,7 +1854,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1854
1854
|
_onTapStart: function(e) {
|
|
1855
1855
|
if (e.cancelable) {
|
|
1856
1856
|
var r = this, i = this.el, o = this.options, a = o.preventOnFilter, n = e.type, s = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, l = (s || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || l, u = o.filter;
|
|
1857
|
-
if (
|
|
1857
|
+
if (Dr(i), !p && !(/mousedown|pointerdown/.test(n) && e.button !== 0 || o.disabled) && !c.isContentEditable && !(!this.nativeDraggable && n0 && l && l.tagName.toUpperCase() === "SELECT") && (l = f2(l, o.draggable, i, !1), !(l && l.animated) && $0 !== l)) {
|
|
1858
1858
|
if (Y2 = m2(l), l0 = m2(l, o.draggable), typeof u == "function") {
|
|
1859
1859
|
if (u.call(this, e, l, this)) {
|
|
1860
1860
|
r2({
|
|
@@ -2032,7 +2032,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2032
2032
|
_onDragOver: function(e) {
|
|
2033
2033
|
var r = this.el, i = e.target, o, a, n, s = this.options, l = s.group, c = x.active, u = C0 === l, d = s.sort, m = J || c, g, f = this, y = !1;
|
|
2034
2034
|
if (le) return;
|
|
2035
|
-
function
|
|
2035
|
+
function B(d2, T2) {
|
|
2036
2036
|
s2(d2, f, v2({
|
|
2037
2037
|
evt: e,
|
|
2038
2038
|
isOwner: u,
|
|
@@ -2044,20 +2044,20 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2044
2044
|
fromSortable: m,
|
|
2045
2045
|
target: i,
|
|
2046
2046
|
completed: F,
|
|
2047
|
-
onMove: function(
|
|
2048
|
-
return k0(V, r, p, o,
|
|
2047
|
+
onMove: function(D2, y2) {
|
|
2048
|
+
return k0(V, r, p, o, D2, q(D2), e, y2);
|
|
2049
2049
|
},
|
|
2050
2050
|
changed: t2
|
|
2051
2051
|
}, T2));
|
|
2052
2052
|
}
|
|
2053
2053
|
function X() {
|
|
2054
|
-
|
|
2054
|
+
B("dragOverAnimationCapture"), f.captureAnimationState(), f !== m && m.captureAnimationState();
|
|
2055
2055
|
}
|
|
2056
2056
|
function F(d2) {
|
|
2057
|
-
return
|
|
2057
|
+
return B("dragOverCompleted", {
|
|
2058
2058
|
insertion: d2
|
|
2059
2059
|
}), d2 && (u ? c._hideClone() : c._showClone(f), f !== m && (u2(p, J ? J.options.ghostClass : c.options.ghostClass, !1), u2(p, s.ghostClass, !0)), J !== f && f !== x.active ? J = f : f === x.active && J && (J = null), m === f && (f._ignoreWhileAnimating = i), f.animateAll(function() {
|
|
2060
|
-
|
|
2060
|
+
B("dragOverAnimationComplete"), f._ignoreWhileAnimating = null;
|
|
2061
2061
|
}), f !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (i === p && !p.animated || i === r && !i.animated) && (U2 = null), !s.dragoverBubble && !e.rootEl && i !== document && (p.parentNode[c2]._isOutsideThisEl(e.target), !d2 && R2(e)), !s.dragoverBubble && e.stopPropagation && e.stopPropagation(), y = !0;
|
|
2062
2062
|
}
|
|
2063
2063
|
function t2() {
|
|
@@ -2070,13 +2070,13 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2070
2070
|
originalEvent: e
|
|
2071
2071
|
});
|
|
2072
2072
|
}
|
|
2073
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), i = f2(i, s.draggable, r, !0),
|
|
2073
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), i = f2(i, s.draggable, r, !0), B("dragOver"), x.eventCanceled) return y;
|
|
2074
2074
|
if (p.contains(e.target) || i.animated && i.animatingX && i.animatingY || f._ignoreWhileAnimating === i)
|
|
2075
2075
|
return F(!1);
|
|
2076
2076
|
if (H0 = !1, c && !s.disabled && (u ? d || (n = I !== V) : J === this || (this.lastPutMode = C0.checkPull(this, c, p, e)) && l.checkPut(this, c, p, e))) {
|
|
2077
|
-
if (g = this._getDirection(e, i) === "vertical", o = q(p),
|
|
2077
|
+
if (g = this._getDirection(e, i) === "vertical", o = q(p), B("dragOverValid"), x.eventCanceled) return y;
|
|
2078
2078
|
if (n)
|
|
2079
|
-
return I = V, X(), this._hideClone(),
|
|
2079
|
+
return I = V, X(), this._hideClone(), B("revert"), x.eventCanceled || (P2 ? V.insertBefore(p, P2) : V.appendChild(p)), F(!0);
|
|
2080
2080
|
var Y = ke(r, s.draggable);
|
|
2081
2081
|
if (!Y || Ar(e, g, this) && !Y.animated) {
|
|
2082
2082
|
if (Y === p)
|
|
@@ -2319,7 +2319,7 @@ function Tr(t) {
|
|
|
2319
2319
|
i += e.charCodeAt(r);
|
|
2320
2320
|
return i.toString(36);
|
|
2321
2321
|
}
|
|
2322
|
-
function
|
|
2322
|
+
function Dr(t) {
|
|
2323
2323
|
O0.length = 0;
|
|
2324
2324
|
for (var e = t.getElementsByTagName("input"), r = e.length; r--; ) {
|
|
2325
2325
|
var i = e[r];
|
|
@@ -2372,7 +2372,7 @@ x.create = function(t, e) {
|
|
|
2372
2372
|
};
|
|
2373
2373
|
x.version = mr;
|
|
2374
2374
|
var j = [], i0, de, ue = !1, te, re, R0, o0;
|
|
2375
|
-
function
|
|
2375
|
+
function Br() {
|
|
2376
2376
|
function t() {
|
|
2377
2377
|
this.defaults = {
|
|
2378
2378
|
scroll: !0,
|
|
@@ -2438,9 +2438,9 @@ var ie = xt(function(t, e, r, i) {
|
|
|
2438
2438
|
de !== r && (de = r, E0(), i0 = e.scroll, u = e.scrollFn, i0 === !0 && (i0 = E2(r, !0)));
|
|
2439
2439
|
var d = 0, m = i0;
|
|
2440
2440
|
do {
|
|
2441
|
-
var g = m, f = q(g), y = f.top,
|
|
2441
|
+
var g = m, f = q(g), y = f.top, B = f.bottom, X = f.left, F = f.right, t2 = f.width, Y = f.height, k = void 0, b = void 0, z = g.scrollWidth, T = g.scrollHeight, A = C(g), Z = g.scrollLeft, U = g.scrollTop;
|
|
2442
2442
|
g === l ? (k = t2 < z && (A.overflowX === "auto" || A.overflowX === "scroll" || A.overflowX === "visible"), b = Y < T && (A.overflowY === "auto" || A.overflowY === "scroll" || A.overflowY === "visible")) : (k = t2 < z && (A.overflowX === "auto" || A.overflowX === "scroll"), b = Y < T && (A.overflowY === "auto" || A.overflowY === "scroll"));
|
|
2443
|
-
var H = k && (Math.abs(F - o) <= n && Z + t2 < z) - (Math.abs(X - o) <= n && !!Z), E = b && (Math.abs(
|
|
2443
|
+
var H = k && (Math.abs(F - o) <= n && Z + t2 < z) - (Math.abs(X - o) <= n && !!Z), E = b && (Math.abs(B - a) <= n && U + Y < T) - (Math.abs(y - a) <= n && !!U);
|
|
2444
2444
|
if (!j[d])
|
|
2445
2445
|
for (var N = 0; N <= d; N++)
|
|
2446
2446
|
j[N] || (j[N] = {});
|
|
@@ -2497,7 +2497,7 @@ ze.prototype = {
|
|
|
2497
2497
|
k2(ze, {
|
|
2498
2498
|
pluginName: "removeOnSpill"
|
|
2499
2499
|
});
|
|
2500
|
-
x.mount(new
|
|
2500
|
+
x.mount(new Br());
|
|
2501
2501
|
x.mount(ze, _e);
|
|
2502
2502
|
const Hr = (t) => {
|
|
2503
2503
|
const e = t.item;
|
|
@@ -2705,9 +2705,9 @@ function Ur(t, e) {
|
|
|
2705
2705
|
);
|
|
2706
2706
|
return Object.keys(o).length ? o : null;
|
|
2707
2707
|
}
|
|
2708
|
-
const
|
|
2708
|
+
const Dt = (t, e) => t?.filter(
|
|
2709
2709
|
(r) => ["remove", "sort"].filter((i) => e?.get("layerControlDisable") ? i !== "sort" : !0).includes(r)
|
|
2710
|
-
),
|
|
2710
|
+
), Bt = (t, e) => t?.filter((r) => {
|
|
2711
2711
|
let i = !0;
|
|
2712
2712
|
return ["remove", "sort"].includes(r) && (i = !1), r === "info" && (i = e.get("description")), r === "config" && (i = e.get("layerConfig")), r === "datetime" && (i = e.get("layerDatetime")), r === "legend" && (i = e.get("layerLegend")), i;
|
|
2713
2713
|
}), jr = (t, e, r) => h`
|
|
@@ -2852,34 +2852,34 @@ function Xr() {
|
|
|
2852
2852
|
var t = "Expected a function", e = NaN, r = "[object Symbol]", i = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, a = /^0b[01]+$/i, n = /^0o[0-7]+$/i, s = parseInt, l = typeof M2 == "object" && M2 && M2.Object === Object && M2, c = typeof self == "object" && self && self.Object === Object && self, u = l || c || Function("return this")(), d = Object.prototype, m = d.toString, g = Math.max, f = Math.min, y = function() {
|
|
2853
2853
|
return u.Date.now();
|
|
2854
2854
|
};
|
|
2855
|
-
function
|
|
2855
|
+
function B(b, z, T) {
|
|
2856
2856
|
var A, Z, U, H, E, N, o2 = 0, G = !1, a2 = !1, d2 = !0;
|
|
2857
2857
|
if (typeof b != "function")
|
|
2858
2858
|
throw new TypeError(t);
|
|
2859
2859
|
z = k(z) || 0, F(T) && (G = !!T.leading, a2 = "maxWait" in T, U = a2 ? g(k(T.maxWait) || 0, z) : U, d2 = "trailing" in T ? !!T.trailing : d2);
|
|
2860
|
-
function T2(
|
|
2860
|
+
function T2(D) {
|
|
2861
2861
|
var n2 = A, z2 = Z;
|
|
2862
|
-
return A = Z = void 0, o2 =
|
|
2862
|
+
return A = Z = void 0, o2 = D, H = b.apply(z2, n2), H;
|
|
2863
2863
|
}
|
|
2864
|
-
function v0(
|
|
2865
|
-
return o2 =
|
|
2864
|
+
function v0(D) {
|
|
2865
|
+
return o2 = D, E = setTimeout(B2, z), G ? T2(D) : H;
|
|
2866
2866
|
}
|
|
2867
|
-
function
|
|
2868
|
-
var n2 =
|
|
2867
|
+
function D2(D) {
|
|
2868
|
+
var n2 = D - N, z2 = D - o2, Se = z - n2;
|
|
2869
2869
|
return a2 ? f(Se, U - z2) : Se;
|
|
2870
2870
|
}
|
|
2871
|
-
function y2(
|
|
2872
|
-
var n2 =
|
|
2871
|
+
function y2(D) {
|
|
2872
|
+
var n2 = D - N, z2 = D - o2;
|
|
2873
2873
|
return N === void 0 || n2 >= z || n2 < 0 || a2 && z2 >= U;
|
|
2874
2874
|
}
|
|
2875
|
-
function
|
|
2876
|
-
var
|
|
2877
|
-
if (y2(
|
|
2878
|
-
return y0(
|
|
2879
|
-
E = setTimeout(
|
|
2875
|
+
function B2() {
|
|
2876
|
+
var D = y();
|
|
2877
|
+
if (y2(D))
|
|
2878
|
+
return y0(D);
|
|
2879
|
+
E = setTimeout(B2, D2(D));
|
|
2880
2880
|
}
|
|
2881
|
-
function y0(
|
|
2882
|
-
return E = void 0, d2 && A ? T2(
|
|
2881
|
+
function y0(D) {
|
|
2882
|
+
return E = void 0, d2 && A ? T2(D) : (A = Z = void 0, H);
|
|
2883
2883
|
}
|
|
2884
2884
|
function U0() {
|
|
2885
2885
|
E !== void 0 && clearTimeout(E), o2 = 0, A = N = Z = E = void 0;
|
|
@@ -2888,14 +2888,14 @@ function Xr() {
|
|
|
2888
2888
|
return E === void 0 ? H : y0(y());
|
|
2889
2889
|
}
|
|
2890
2890
|
function R() {
|
|
2891
|
-
var
|
|
2892
|
-
if (A = arguments, Z = this, N =
|
|
2891
|
+
var D = y(), n2 = y2(D);
|
|
2892
|
+
if (A = arguments, Z = this, N = D, n2) {
|
|
2893
2893
|
if (E === void 0)
|
|
2894
2894
|
return v0(N);
|
|
2895
2895
|
if (a2)
|
|
2896
|
-
return E = setTimeout(
|
|
2896
|
+
return E = setTimeout(B2, z), T2(N);
|
|
2897
2897
|
}
|
|
2898
|
-
return E === void 0 && (E = setTimeout(
|
|
2898
|
+
return E === void 0 && (E = setTimeout(B2, z)), H;
|
|
2899
2899
|
}
|
|
2900
2900
|
return R.cancel = U0, R.flush = Q2, R;
|
|
2901
2901
|
}
|
|
@@ -2903,7 +2903,7 @@ function Xr() {
|
|
|
2903
2903
|
var A = !0, Z = !0;
|
|
2904
2904
|
if (typeof b != "function")
|
|
2905
2905
|
throw new TypeError(t);
|
|
2906
|
-
return F(T) && (A = "leading" in T ? !!T.leading : A, Z = "trailing" in T ? !!T.trailing : Z),
|
|
2906
|
+
return F(T) && (A = "leading" in T ? !!T.leading : A, Z = "trailing" in T ? !!T.trailing : Z), B(b, z, {
|
|
2907
2907
|
leading: A,
|
|
2908
2908
|
maxWait: z,
|
|
2909
2909
|
trailing: Z
|
|
@@ -3215,16 +3215,19 @@ class Jr extends i2 {
|
|
|
3215
3215
|
* @param {CustomEvent<{date:string[]}>} evt
|
|
3216
3216
|
**/
|
|
3217
3217
|
#e(e) {
|
|
3218
|
-
const
|
|
3219
|
-
|
|
3218
|
+
const r = new Date(e.detail.date[0]), i = this.layerDatetime.controlValues?.some(
|
|
3219
|
+
(a) => typeof a == "string" && a.includes("T")
|
|
3220
|
+
);
|
|
3221
|
+
let o;
|
|
3222
|
+
i ? o = r.toISOString() : o = ((n) => `${n.getFullYear()}-${String(n.getMonth() + 1).padStart(2, "0")}-${String(n.getDate()).padStart(2, "0")}`)(r), o !== this.layerDatetime.currentStep && (this.dispatchEvent(
|
|
3220
3223
|
new CustomEvent("datetime:updated", {
|
|
3221
3224
|
bubbles: !0,
|
|
3222
3225
|
detail: {
|
|
3223
|
-
datetime:
|
|
3226
|
+
datetime: o,
|
|
3224
3227
|
layer: this.layer
|
|
3225
3228
|
}
|
|
3226
3229
|
})
|
|
3227
|
-
), this.layerDatetime.currentStep =
|
|
3230
|
+
), this.layerDatetime.currentStep = o, this.requestUpdate());
|
|
3228
3231
|
}
|
|
3229
3232
|
/**
|
|
3230
3233
|
* Renders a Time Control for datetime options of a layer.
|
|
@@ -3257,7 +3260,9 @@ class Jr extends i2 {
|
|
|
3257
3260
|
.navigation=${this.layerDatetime.navigation ?? !1}
|
|
3258
3261
|
.format=${this.layerDatetime.displayFormat}
|
|
3259
3262
|
></eox-timecontrol-date>
|
|
3260
|
-
<eox-timecontrol-slider
|
|
3263
|
+
<eox-timecontrol-slider
|
|
3264
|
+
animate-onclick-interval="${this.layerDatetime.animateOnClickInterval ?? "0.3s"}"
|
|
3265
|
+
></eox-timecontrol-slider>
|
|
3261
3266
|
</eox-timecontrol>
|
|
3262
3267
|
`
|
|
3263
3268
|
)}
|
|
@@ -3559,7 +3564,7 @@ class Qr extends i2 {
|
|
|
3559
3564
|
<div slot="sort-icon">${this._sortButton(e.sort)}</div>
|
|
3560
3565
|
`;
|
|
3561
3566
|
render() {
|
|
3562
|
-
const e =
|
|
3567
|
+
const e = Dt(this.tools, this.layer), r = Bt(this.tools, this.layer), i = e?.length, o = r?.length;
|
|
3563
3568
|
return h`
|
|
3564
3569
|
<style>
|
|
3565
3570
|
${this.#t}
|
|
@@ -3744,7 +3749,7 @@ class ri extends i2 {
|
|
|
3744
3749
|
* Styles are applied conditionally based on the 'unstyled' property.
|
|
3745
3750
|
*/
|
|
3746
3751
|
render() {
|
|
3747
|
-
const e = this.layer.getVisible(), r = e ? "visible" : "", i = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", o = this.#e("layerControlDisable") ? "disabled" : "", a = this.#e("layerControlExclusive") ? "radio" : "checkbox", n =
|
|
3752
|
+
const e = this.layer.getVisible(), r = e ? "visible" : "", i = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", o = this.#e("layerControlDisable") ? "disabled" : "", a = this.#e("layerControlExclusive") ? "radio" : "checkbox", n = Dt(this.tools, this.layer)?.length > 0, s = Bt(this.tools, this.layer)?.length > 0, l = document.querySelector(
|
|
3748
3753
|
"eox-layercontrol-layer-tools"
|
|
3749
3754
|
);
|
|
3750
3755
|
return l && Object.assign(l, {
|
|
@@ -4115,44 +4120,44 @@ function oi() {
|
|
|
4115
4120
|
var t = "Expected a function", e = NaN, r = "[object Symbol]", i = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, a = /^0b[01]+$/i, n = /^0o[0-7]+$/i, s = parseInt, l = typeof M2 == "object" && M2 && M2.Object === Object && M2, c = typeof self == "object" && self && self.Object === Object && self, u = l || c || Function("return this")(), d = Object.prototype, m = d.toString, g = Math.max, f = Math.min, y = function() {
|
|
4116
4121
|
return u.Date.now();
|
|
4117
4122
|
};
|
|
4118
|
-
function
|
|
4123
|
+
function B(k, b, z) {
|
|
4119
4124
|
var T, A, Z, U, H, E, N = 0, o2 = !1, G = !1, a2 = !0;
|
|
4120
4125
|
if (typeof k != "function")
|
|
4121
4126
|
throw new TypeError(t);
|
|
4122
4127
|
b = Y(b) || 0, X(z) && (o2 = !!z.leading, G = "maxWait" in z, Z = G ? g(Y(z.maxWait) || 0, b) : Z, a2 = "trailing" in z ? !!z.trailing : a2);
|
|
4123
4128
|
function d2(R) {
|
|
4124
|
-
var
|
|
4125
|
-
return T = A = void 0, N = R, U = k.apply(n2,
|
|
4129
|
+
var D = T, n2 = A;
|
|
4130
|
+
return T = A = void 0, N = R, U = k.apply(n2, D), U;
|
|
4126
4131
|
}
|
|
4127
4132
|
function T2(R) {
|
|
4128
4133
|
return N = R, H = setTimeout(y2, b), o2 ? d2(R) : U;
|
|
4129
4134
|
}
|
|
4130
4135
|
function v0(R) {
|
|
4131
|
-
var
|
|
4136
|
+
var D = R - E, n2 = R - N, z2 = b - D;
|
|
4132
4137
|
return G ? f(z2, Z - n2) : z2;
|
|
4133
4138
|
}
|
|
4134
|
-
function
|
|
4135
|
-
var
|
|
4136
|
-
return E === void 0 ||
|
|
4139
|
+
function D2(R) {
|
|
4140
|
+
var D = R - E, n2 = R - N;
|
|
4141
|
+
return E === void 0 || D >= b || D < 0 || G && n2 >= Z;
|
|
4137
4142
|
}
|
|
4138
4143
|
function y2() {
|
|
4139
4144
|
var R = y();
|
|
4140
|
-
if (
|
|
4141
|
-
return
|
|
4145
|
+
if (D2(R))
|
|
4146
|
+
return B2(R);
|
|
4142
4147
|
H = setTimeout(y2, v0(R));
|
|
4143
4148
|
}
|
|
4144
|
-
function
|
|
4149
|
+
function B2(R) {
|
|
4145
4150
|
return H = void 0, a2 && T ? d2(R) : (T = A = void 0, U);
|
|
4146
4151
|
}
|
|
4147
4152
|
function y0() {
|
|
4148
4153
|
H !== void 0 && clearTimeout(H), N = 0, T = E = A = H = void 0;
|
|
4149
4154
|
}
|
|
4150
4155
|
function U0() {
|
|
4151
|
-
return H === void 0 ? U :
|
|
4156
|
+
return H === void 0 ? U : B2(y());
|
|
4152
4157
|
}
|
|
4153
4158
|
function Q2() {
|
|
4154
|
-
var R = y(),
|
|
4155
|
-
if (T = arguments, A = this, E = R,
|
|
4159
|
+
var R = y(), D = D2(R);
|
|
4160
|
+
if (T = arguments, A = this, E = R, D) {
|
|
4156
4161
|
if (H === void 0)
|
|
4157
4162
|
return T2(E);
|
|
4158
4163
|
if (G)
|
|
@@ -4187,7 +4192,7 @@ function oi() {
|
|
|
4187
4192
|
var z = a.test(k);
|
|
4188
4193
|
return z || n.test(k) ? s(k.slice(2), z ? 2 : 8) : o.test(k) ? e : +k;
|
|
4189
4194
|
}
|
|
4190
|
-
return ae =
|
|
4195
|
+
return ae = B, ae;
|
|
4191
4196
|
}
|
|
4192
4197
|
var ai = oi();
|
|
4193
4198
|
const ni = /* @__PURE__ */ Ft(ai), si = (t) => {
|