@eox/layercontrol 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/eox-layercontrol.js
CHANGED
|
@@ -3,7 +3,7 @@ var bi = (r) => {
|
|
|
3
3
|
throw TypeError(r);
|
|
4
4
|
};
|
|
5
5
|
var Qo = (r, e, t) => e in r ? Ko(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
6
|
-
var
|
|
6
|
+
var q = (r, e, t) => Qo(r, typeof e != "symbol" ? e + "" : e, t), Cr = (r, e, t) => e.has(r) || bi("Cannot " + t);
|
|
7
7
|
var $ = (r, e, t) => (Cr(r, e, "read from private field"), t ? t.call(r) : e.get(r)), T = (r, e, t) => e.has(r) ? bi("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), Ae = (r, e, t, i) => (Cr(r, e, "write to private field"), i ? i.call(r, t) : e.set(r, t), t), B = (r, e, t) => (Cr(r, e, "access private method"), t);
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
@@ -288,7 +288,7 @@ it.elementStyles = [], it.shadowRootOptions = { mode: "open" }, it[yt("elementPr
|
|
|
288
288
|
*/
|
|
289
289
|
const xt = globalThis, Jt = xt.trustedTypes, wi = Jt ? Jt.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Yi = "$lit$", Me = `lit$${Math.random().toFixed(9).slice(2)}$`, Wi = "?" + Me, dn = `<${Wi}>`, et = document, At = () => et.createComment(""), Et = (r) => r === null || typeof r != "object" && typeof r != "function", ni = Array.isArray, un = (r) => ni(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Dr = `[
|
|
290
290
|
\f\r]`, ht = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _i = /-->/g, $i = />/g, Ze = RegExp(`>|${Dr}(?:([^\\s"'>=/]+)(${Dr}*=${Dr}*(?:[^
|
|
291
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Si = /'/g, zi = /"/g, Gi = /^(?:script|style|textarea|title)$/i, pn = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }),
|
|
291
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Si = /'/g, zi = /"/g, Gi = /^(?:script|style|textarea|title)$/i, pn = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), g = pn(1), xe = Symbol.for("lit-noChange"), P = Symbol.for("lit-nothing"), Ai = /* @__PURE__ */ new WeakMap(), Ke = et.createTreeWalker(et, 129);
|
|
292
292
|
function Ji(r, e) {
|
|
293
293
|
if (!ni(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
294
294
|
return wi !== void 0 ? wi.createHTML(e) : e;
|
|
@@ -318,8 +318,8 @@ class Ct {
|
|
|
318
318
|
for (; (o = Ke.nextNode()) !== null && s.length < l; ) {
|
|
319
319
|
if (o.nodeType === 1) {
|
|
320
320
|
if (o.hasAttributes()) for (const d of o.getAttributeNames()) if (d.endsWith(Yi)) {
|
|
321
|
-
const m = u[a++], h = o.getAttribute(d).split(Me),
|
|
322
|
-
s.push({ type: 1, index: n, name:
|
|
321
|
+
const m = u[a++], h = o.getAttribute(d).split(Me), f = /([.?@])?(.*)/.exec(m);
|
|
322
|
+
s.push({ type: 1, index: n, name: f[2], strings: h, ctor: f[1] === "." ? fn : f[1] === "?" ? gn : f[1] === "@" ? bn : $r }), o.removeAttribute(d);
|
|
323
323
|
} else d.startsWith(Me) && (s.push({ type: 6, index: n }), o.removeAttribute(d));
|
|
324
324
|
if (Gi.test(o.tagName)) {
|
|
325
325
|
const d = o.textContent.split(Me), m = d.length - 1;
|
|
@@ -547,8 +547,8 @@ let se = class extends it {
|
|
|
547
547
|
return xe;
|
|
548
548
|
}
|
|
549
549
|
};
|
|
550
|
-
var
|
|
551
|
-
se._$litElement$ = !0, se.finalized = !0, (
|
|
550
|
+
var Fi;
|
|
551
|
+
se._$litElement$ = !0, se.finalized = !0, (Fi = globalThis.litElementHydrateSupport) == null || Fi.call(globalThis, { LitElement: se });
|
|
552
552
|
const Pr = globalThis.litElementPolyfillSupport;
|
|
553
553
|
Pr == null || Pr({ LitElement: se });
|
|
554
554
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
|
@@ -565,7 +565,7 @@ function I(r, e, t) {
|
|
|
565
565
|
* Copyright 2017 Google LLC
|
|
566
566
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
567
567
|
*/
|
|
568
|
-
const
|
|
568
|
+
const He = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4 }, ai = (r) => (...e) => ({ _$litDirective$: r, values: e });
|
|
569
569
|
class li {
|
|
570
570
|
constructor(e) {
|
|
571
571
|
}
|
|
@@ -608,7 +608,7 @@ const { I: kn } = yn, wn = (r) => r.strings === void 0, Ei = () => document.crea
|
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
return t;
|
|
611
|
-
}, Ye = (r, e, t = r) => (r._$AI(e, t), r), _n = {}, Ki = (r, e = _n) => r._$AH = e, $n = (r) => r._$AH,
|
|
611
|
+
}, Ye = (r, e, t = r) => (r._$AI(e, t), r), _n = {}, Ki = (r, e = _n) => r._$AH = e, $n = (r) => r._$AH, Rr = (r) => {
|
|
612
612
|
var i;
|
|
613
613
|
(i = r._$AP) == null || i.call(r, !1, !0);
|
|
614
614
|
let e = r._$AA;
|
|
@@ -629,7 +629,7 @@ const Ci = (r, e, t) => {
|
|
|
629
629
|
return i;
|
|
630
630
|
}, Sn = ai(class extends li {
|
|
631
631
|
constructor(r) {
|
|
632
|
-
if (super(r), r.type !==
|
|
632
|
+
if (super(r), r.type !== He.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
633
633
|
}
|
|
634
634
|
dt(r, e, t) {
|
|
635
635
|
let i;
|
|
@@ -646,29 +646,29 @@ const Ci = (r, e, t) => {
|
|
|
646
646
|
const o = $n(r), { values: n, keys: a } = this.dt(e, t, i);
|
|
647
647
|
if (!Array.isArray(o)) return this.ut = a, n;
|
|
648
648
|
const l = this.ut ?? (this.ut = []), s = [];
|
|
649
|
-
let c, u, d = 0, m = o.length - 1, h = 0,
|
|
650
|
-
for (; d <= m && h <=
|
|
649
|
+
let c, u, d = 0, m = o.length - 1, h = 0, f = n.length - 1;
|
|
650
|
+
for (; d <= m && h <= f; ) if (o[d] === null) d++;
|
|
651
651
|
else if (o[m] === null) m--;
|
|
652
652
|
else if (l[d] === a[h]) s[h] = Ye(o[d], n[h]), d++, h++;
|
|
653
|
-
else if (l[m] === a[
|
|
654
|
-
else if (l[d] === a[
|
|
653
|
+
else if (l[m] === a[f]) s[f] = Ye(o[m], n[f]), m--, f--;
|
|
654
|
+
else if (l[d] === a[f]) s[f] = Ye(o[d], n[f]), ft(r, s[f + 1], o[d]), d++, f--;
|
|
655
655
|
else if (l[m] === a[h]) s[h] = Ye(o[m], n[h]), ft(r, o[d], o[m]), m--, h++;
|
|
656
|
-
else if (c === void 0 && (c = Ci(a, h,
|
|
657
|
-
const
|
|
658
|
-
if (
|
|
656
|
+
else if (c === void 0 && (c = Ci(a, h, f), u = Ci(l, d, m)), c.has(l[d])) if (c.has(l[m])) {
|
|
657
|
+
const v = u.get(a[h]), O = v !== void 0 ? o[v] : null;
|
|
658
|
+
if (O === null) {
|
|
659
659
|
const J = ft(r, o[d]);
|
|
660
660
|
Ye(J, n[h]), s[h] = J;
|
|
661
|
-
} else s[h] = Ye(
|
|
661
|
+
} else s[h] = Ye(O, n[h]), ft(r, o[d], O), o[v] = null;
|
|
662
662
|
h++;
|
|
663
|
-
} else
|
|
664
|
-
else
|
|
665
|
-
for (; h <=
|
|
666
|
-
const
|
|
667
|
-
Ye(
|
|
663
|
+
} else Rr(o[m]), m--;
|
|
664
|
+
else Rr(o[d]), d++;
|
|
665
|
+
for (; h <= f; ) {
|
|
666
|
+
const v = ft(r, s[f + 1]);
|
|
667
|
+
Ye(v, n[h]), s[h++] = v;
|
|
668
668
|
}
|
|
669
669
|
for (; d <= m; ) {
|
|
670
|
-
const
|
|
671
|
-
|
|
670
|
+
const v = o[d++];
|
|
671
|
+
v !== null && Rr(v);
|
|
672
672
|
}
|
|
673
673
|
return this.ut = a, Ki(r, s), xe;
|
|
674
674
|
}
|
|
@@ -781,7 +781,7 @@ function to(r, e) {
|
|
|
781
781
|
function Q(r, e, t, i, o) {
|
|
782
782
|
return i.push(r), An(e, t, i, o), i.pop();
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function y(r, e, t) {
|
|
785
785
|
return (
|
|
786
786
|
/**
|
|
787
787
|
* @param {Node} node Node.
|
|
@@ -842,7 +842,7 @@ function Ce(r) {
|
|
|
842
842
|
if (e)
|
|
843
843
|
return parseFloat(e[1]);
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function Hr(r) {
|
|
846
846
|
return Kt(Sr(r, !1));
|
|
847
847
|
}
|
|
848
848
|
function Kt(r) {
|
|
@@ -857,7 +857,7 @@ const Pn = "http://www.w3.org/1999/xlink";
|
|
|
857
857
|
function si(r) {
|
|
858
858
|
return r.getAttributeNS(Pn, "href");
|
|
859
859
|
}
|
|
860
|
-
function
|
|
860
|
+
function Rn(r, e) {
|
|
861
861
|
return Q({}, la, r, e);
|
|
862
862
|
}
|
|
863
863
|
function ro(r) {
|
|
@@ -868,7 +868,7 @@ function ro(r) {
|
|
|
868
868
|
Ce(r.getAttribute("maxy"))
|
|
869
869
|
];
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function Hn(r, e) {
|
|
872
872
|
const t = ro(r), i = [
|
|
873
873
|
Ce(r.getAttribute("resx")),
|
|
874
874
|
Ce(r.getAttribute("resy"))
|
|
@@ -879,7 +879,7 @@ function On(r, e) {
|
|
|
879
879
|
res: i
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function On(r, e) {
|
|
883
883
|
const t = ro(r);
|
|
884
884
|
if (!(!S(t[0]) || !S(t[1]) || !S(t[2]) || !S(t[3])))
|
|
885
885
|
return t;
|
|
@@ -947,7 +947,7 @@ function jn(r, e) {
|
|
|
947
947
|
e
|
|
948
948
|
);
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function qn(r, e) {
|
|
951
951
|
return Q(
|
|
952
952
|
[],
|
|
953
953
|
aa,
|
|
@@ -955,7 +955,7 @@ function Fn(r, e) {
|
|
|
955
955
|
e
|
|
956
956
|
);
|
|
957
957
|
}
|
|
958
|
-
function
|
|
958
|
+
function Fn(r, e) {
|
|
959
959
|
const t = Qe(r.getAttribute("queryable"));
|
|
960
960
|
return Q(
|
|
961
961
|
{
|
|
@@ -995,10 +995,10 @@ function Xn(r, e) {
|
|
|
995
995
|
S(c) || (c = t.fixedHeight), i.fixedHeight = c;
|
|
996
996
|
const u = ["Style", "CRS", "AuthorityURL"];
|
|
997
997
|
for (let m = 0, h = u.length; m < h; m++) {
|
|
998
|
-
const
|
|
999
|
-
if (S(
|
|
1000
|
-
let
|
|
1001
|
-
|
|
998
|
+
const f = u[m], v = t[f];
|
|
999
|
+
if (S(v)) {
|
|
1000
|
+
let O = Qi(i, f, []);
|
|
1001
|
+
O = O.concat(v), i[f] = O;
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
const d = [
|
|
@@ -1010,10 +1010,10 @@ function Xn(r, e) {
|
|
|
1010
1010
|
"MaxScaleDenominator"
|
|
1011
1011
|
];
|
|
1012
1012
|
for (let m = 0, h = d.length; m < h; m++) {
|
|
1013
|
-
const
|
|
1014
|
-
if (!S(
|
|
1015
|
-
const
|
|
1016
|
-
i[
|
|
1013
|
+
const f = d[m], v = i[f];
|
|
1014
|
+
if (!S(v)) {
|
|
1015
|
+
const O = t[f];
|
|
1016
|
+
i[f] = O;
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
1019
|
return i;
|
|
@@ -1047,7 +1047,7 @@ function Wn(r, e) {
|
|
|
1047
1047
|
function Gn(r, e) {
|
|
1048
1048
|
return Q({}, pa, r, e);
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function Or(r, e) {
|
|
1051
1051
|
return Q({}, da, r, e);
|
|
1052
1052
|
}
|
|
1053
1053
|
function io(r, e) {
|
|
@@ -1087,56 +1087,56 @@ const oe = [
|
|
|
1087
1087
|
], ea = ie(
|
|
1088
1088
|
oe,
|
|
1089
1089
|
{
|
|
1090
|
-
Service:
|
|
1091
|
-
Capability:
|
|
1090
|
+
Service: y(Nn),
|
|
1091
|
+
Capability: y(In)
|
|
1092
1092
|
}
|
|
1093
1093
|
), ta = ie(
|
|
1094
1094
|
oe,
|
|
1095
1095
|
{
|
|
1096
|
-
Request:
|
|
1097
|
-
Exception:
|
|
1098
|
-
Layer:
|
|
1096
|
+
Request: y(Yn),
|
|
1097
|
+
Exception: y(qn),
|
|
1098
|
+
Layer: y(Fn)
|
|
1099
1099
|
}
|
|
1100
1100
|
), ra = ie(
|
|
1101
1101
|
oe,
|
|
1102
1102
|
{
|
|
1103
|
-
Name:
|
|
1104
|
-
Title:
|
|
1105
|
-
Abstract:
|
|
1106
|
-
KeywordList:
|
|
1107
|
-
OnlineResource:
|
|
1108
|
-
ContactInformation:
|
|
1109
|
-
Fees:
|
|
1110
|
-
AccessConstraints:
|
|
1111
|
-
LayerLimit:
|
|
1112
|
-
MaxWidth:
|
|
1113
|
-
MaxHeight:
|
|
1103
|
+
Name: y(C),
|
|
1104
|
+
Title: y(C),
|
|
1105
|
+
Abstract: y(C),
|
|
1106
|
+
KeywordList: y(oo),
|
|
1107
|
+
OnlineResource: y(si),
|
|
1108
|
+
ContactInformation: y(Bn),
|
|
1109
|
+
Fees: y(C),
|
|
1110
|
+
AccessConstraints: y(C),
|
|
1111
|
+
LayerLimit: y(Hr),
|
|
1112
|
+
MaxWidth: y(Hr),
|
|
1113
|
+
MaxHeight: y(Hr)
|
|
1114
1114
|
}
|
|
1115
1115
|
), ia = ie(
|
|
1116
1116
|
oe,
|
|
1117
1117
|
{
|
|
1118
|
-
ContactPersonPrimary:
|
|
1119
|
-
ContactPosition:
|
|
1120
|
-
ContactAddress:
|
|
1121
|
-
ContactVoiceTelephone:
|
|
1122
|
-
ContactFacsimileTelephone:
|
|
1123
|
-
ContactElectronicMailAddress:
|
|
1118
|
+
ContactPersonPrimary: y(Un),
|
|
1119
|
+
ContactPosition: y(C),
|
|
1120
|
+
ContactAddress: y(jn),
|
|
1121
|
+
ContactVoiceTelephone: y(C),
|
|
1122
|
+
ContactFacsimileTelephone: y(C),
|
|
1123
|
+
ContactElectronicMailAddress: y(C)
|
|
1124
1124
|
}
|
|
1125
1125
|
), oa = ie(
|
|
1126
1126
|
oe,
|
|
1127
1127
|
{
|
|
1128
|
-
ContactPerson:
|
|
1129
|
-
ContactOrganization:
|
|
1128
|
+
ContactPerson: y(C),
|
|
1129
|
+
ContactOrganization: y(C)
|
|
1130
1130
|
}
|
|
1131
1131
|
), na = ie(
|
|
1132
1132
|
oe,
|
|
1133
1133
|
{
|
|
1134
|
-
AddressType:
|
|
1135
|
-
Address:
|
|
1136
|
-
City:
|
|
1137
|
-
StateOrProvince:
|
|
1138
|
-
PostCode:
|
|
1139
|
-
Country:
|
|
1134
|
+
AddressType: y(C),
|
|
1135
|
+
Address: y(C),
|
|
1136
|
+
City: y(C),
|
|
1137
|
+
StateOrProvince: y(C),
|
|
1138
|
+
PostCode: y(C),
|
|
1139
|
+
Country: y(C)
|
|
1140
1140
|
}
|
|
1141
1141
|
), aa = ie(
|
|
1142
1142
|
oe,
|
|
@@ -1146,51 +1146,51 @@ const oe = [
|
|
|
1146
1146
|
), no = ie(
|
|
1147
1147
|
oe,
|
|
1148
1148
|
{
|
|
1149
|
-
Name:
|
|
1150
|
-
Title:
|
|
1151
|
-
Abstract:
|
|
1152
|
-
KeywordList:
|
|
1149
|
+
Name: y(C),
|
|
1150
|
+
Title: y(C),
|
|
1151
|
+
Abstract: y(C),
|
|
1152
|
+
KeywordList: y(oo),
|
|
1153
1153
|
CRS: me(C),
|
|
1154
1154
|
SRS: me(C),
|
|
1155
|
-
EX_GeographicBoundingBox:
|
|
1156
|
-
LatLonBoundingBox:
|
|
1157
|
-
BoundingBox: me(
|
|
1155
|
+
EX_GeographicBoundingBox: y(Vn),
|
|
1156
|
+
LatLonBoundingBox: y(On),
|
|
1157
|
+
BoundingBox: me(Hn),
|
|
1158
1158
|
Dimension: me(Zn),
|
|
1159
|
-
Attribution:
|
|
1159
|
+
Attribution: y(Rn),
|
|
1160
1160
|
AuthorityURL: me(Jn),
|
|
1161
1161
|
Identifier: me(C),
|
|
1162
1162
|
MetadataURL: me(Kn),
|
|
1163
1163
|
DataURL: me(De),
|
|
1164
1164
|
FeatureListURL: me(De),
|
|
1165
1165
|
Style: me(Qn),
|
|
1166
|
-
MinScaleDenominator:
|
|
1167
|
-
MaxScaleDenominator:
|
|
1168
|
-
ScaleHint:
|
|
1166
|
+
MinScaleDenominator: y(at),
|
|
1167
|
+
MaxScaleDenominator: y(at),
|
|
1168
|
+
ScaleHint: y(Mn),
|
|
1169
1169
|
Layer: me(Xn)
|
|
1170
1170
|
}
|
|
1171
1171
|
), la = ie(
|
|
1172
1172
|
oe,
|
|
1173
1173
|
{
|
|
1174
|
-
Title:
|
|
1175
|
-
OnlineResource:
|
|
1176
|
-
LogoURL:
|
|
1174
|
+
Title: y(C),
|
|
1175
|
+
OnlineResource: y(si),
|
|
1176
|
+
LogoURL: y(io)
|
|
1177
1177
|
}
|
|
1178
1178
|
), sa = ie(oe, {
|
|
1179
|
-
westBoundLongitude:
|
|
1180
|
-
eastBoundLongitude:
|
|
1181
|
-
southBoundLatitude:
|
|
1182
|
-
northBoundLatitude:
|
|
1179
|
+
westBoundLongitude: y(at),
|
|
1180
|
+
eastBoundLongitude: y(at),
|
|
1181
|
+
southBoundLatitude: y(at),
|
|
1182
|
+
northBoundLatitude: y(at)
|
|
1183
1183
|
}), ca = ie(
|
|
1184
1184
|
oe,
|
|
1185
1185
|
{
|
|
1186
|
-
GetCapabilities:
|
|
1187
|
-
|
|
1186
|
+
GetCapabilities: y(
|
|
1187
|
+
Or
|
|
1188
1188
|
),
|
|
1189
|
-
GetMap:
|
|
1190
|
-
|
|
1189
|
+
GetMap: y(
|
|
1190
|
+
Or
|
|
1191
1191
|
),
|
|
1192
|
-
GetFeatureInfo:
|
|
1193
|
-
|
|
1192
|
+
GetFeatureInfo: y(
|
|
1193
|
+
Or
|
|
1194
1194
|
)
|
|
1195
1195
|
}
|
|
1196
1196
|
), da = ie(
|
|
@@ -1204,35 +1204,35 @@ const oe = [
|
|
|
1204
1204
|
), ua = ie(
|
|
1205
1205
|
oe,
|
|
1206
1206
|
{
|
|
1207
|
-
HTTP:
|
|
1207
|
+
HTTP: y(
|
|
1208
1208
|
Gn
|
|
1209
1209
|
)
|
|
1210
1210
|
}
|
|
1211
1211
|
), pa = ie(
|
|
1212
1212
|
oe,
|
|
1213
1213
|
{
|
|
1214
|
-
Get:
|
|
1214
|
+
Get: y(
|
|
1215
1215
|
De
|
|
1216
1216
|
),
|
|
1217
|
-
Post:
|
|
1217
|
+
Post: y(
|
|
1218
1218
|
De
|
|
1219
1219
|
)
|
|
1220
1220
|
}
|
|
1221
1221
|
), ma = ie(
|
|
1222
1222
|
oe,
|
|
1223
1223
|
{
|
|
1224
|
-
Name:
|
|
1225
|
-
Title:
|
|
1226
|
-
Abstract:
|
|
1224
|
+
Name: y(C),
|
|
1225
|
+
Title: y(C),
|
|
1226
|
+
Abstract: y(C),
|
|
1227
1227
|
LegendURL: me(io),
|
|
1228
|
-
StyleSheetURL:
|
|
1229
|
-
StyleURL:
|
|
1228
|
+
StyleSheetURL: y(De),
|
|
1229
|
+
StyleURL: y(De)
|
|
1230
1230
|
}
|
|
1231
1231
|
), ha = ie(
|
|
1232
1232
|
oe,
|
|
1233
1233
|
{
|
|
1234
|
-
Format:
|
|
1235
|
-
OnlineResource:
|
|
1234
|
+
Format: y(C),
|
|
1235
|
+
OnlineResource: y(si)
|
|
1236
1236
|
}
|
|
1237
1237
|
), fa = ie(
|
|
1238
1238
|
oe,
|
|
@@ -1360,13 +1360,13 @@ function Se(r) {
|
|
|
1360
1360
|
}
|
|
1361
1361
|
return r;
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function qt(r) {
|
|
1364
1364
|
"@babel/helpers - typeof";
|
|
1365
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
1365
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? qt = function(e) {
|
|
1366
1366
|
return typeof e;
|
|
1367
|
-
} :
|
|
1367
|
+
} : qt = function(e) {
|
|
1368
1368
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1369
|
-
},
|
|
1369
|
+
}, qt(r);
|
|
1370
1370
|
}
|
|
1371
1371
|
function ka(r, e, t) {
|
|
1372
1372
|
return e in r ? Object.defineProperty(r, e, {
|
|
@@ -1408,7 +1408,7 @@ function Te(r) {
|
|
|
1408
1408
|
if (typeof window < "u" && window.navigator)
|
|
1409
1409
|
return !!/* @__PURE__ */ navigator.userAgent.match(r);
|
|
1410
1410
|
}
|
|
1411
|
-
var Pe = Te(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),
|
|
1411
|
+
var Pe = Te(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Rt = Te(/Edge/i), Di = Te(/firefox/i), kt = Te(/safari/i) && !Te(/chrome/i) && !Te(/android/i), di = Te(/iP(ad|od|hone)/i), lo = Te(/chrome/i) && Te(/android/i), so = {
|
|
1412
1412
|
capture: !1,
|
|
1413
1413
|
passive: !1
|
|
1414
1414
|
};
|
|
@@ -1504,8 +1504,8 @@ function G(r, e, t, i, o) {
|
|
|
1504
1504
|
}
|
|
1505
1505
|
while (o = o.parentNode);
|
|
1506
1506
|
if (i && r !== window) {
|
|
1507
|
-
var h = st(o || r),
|
|
1508
|
-
h && (a /=
|
|
1507
|
+
var h = st(o || r), f = h && h.a, v = h && h.d;
|
|
1508
|
+
h && (a /= v, l /= f, d /= f, u /= v, s = a + u, c = l + d);
|
|
1509
1509
|
}
|
|
1510
1510
|
return {
|
|
1511
1511
|
top: a,
|
|
@@ -1550,7 +1550,7 @@ function ve(r, e) {
|
|
|
1550
1550
|
r.nodeName.toUpperCase() !== "TEMPLATE" && r !== k.clone && (!e || Qt(r, e)) && t++;
|
|
1551
1551
|
return t;
|
|
1552
1552
|
}
|
|
1553
|
-
function
|
|
1553
|
+
function Ri(r) {
|
|
1554
1554
|
var e = 0, t = 0, i = $e();
|
|
1555
1555
|
if (r)
|
|
1556
1556
|
do {
|
|
@@ -1661,9 +1661,9 @@ function Ea() {
|
|
|
1661
1661
|
}
|
|
1662
1662
|
var n = !1, a = 0;
|
|
1663
1663
|
r.forEach(function(l) {
|
|
1664
|
-
var s = 0, c = l.target, u = c.fromRect, d = G(c), m = c.prevFromRect, h = c.prevToRect,
|
|
1665
|
-
|
|
1666
|
-
(
|
|
1664
|
+
var s = 0, c = l.target, u = c.fromRect, d = G(c), m = c.prevFromRect, h = c.prevToRect, f = l.rect, v = st(c, !0);
|
|
1665
|
+
v && (d.top -= v.f, d.left -= v.e), c.toRect = d, c.thisAnimationDuration && Mr(m, d) && !Mr(u, d) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1666
|
+
(f.top - d.top) / (f.left - d.left) === (u.top - d.top) / (u.left - d.left) && (s = Ta(f, m, h, o.options)), Mr(d, u) || (c.prevFromRect = u, c.prevToRect = d, s || (s = o.options.animation), o.animate(c, f, d, s)), s && (n = !0, a = Math.max(a, s), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
|
|
1667
1667
|
c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
|
|
1668
1668
|
}, s), c.thisAnimationDuration = s);
|
|
1669
1669
|
}), clearTimeout(e), n ? e = setTimeout(function() {
|
|
@@ -1689,7 +1689,7 @@ function Ta(r, e, t, i) {
|
|
|
1689
1689
|
}
|
|
1690
1690
|
var tt = [], Vr = {
|
|
1691
1691
|
initializeByDefault: !0
|
|
1692
|
-
},
|
|
1692
|
+
}, Ht = {
|
|
1693
1693
|
mount: function(e) {
|
|
1694
1694
|
for (var t in Vr)
|
|
1695
1695
|
Vr.hasOwnProperty(t) && !(t in e) && (e[t] = Vr[t]);
|
|
@@ -1740,28 +1740,28 @@ var tt = [], Vr = {
|
|
|
1740
1740
|
}
|
|
1741
1741
|
};
|
|
1742
1742
|
function Da(r) {
|
|
1743
|
-
var e = r.sortable, t = r.rootEl, i = r.name, o = r.targetEl, n = r.cloneEl, a = r.toEl, l = r.fromEl, s = r.oldIndex, c = r.newIndex, u = r.oldDraggableIndex, d = r.newDraggableIndex, m = r.originalEvent, h = r.putSortable,
|
|
1743
|
+
var e = r.sortable, t = r.rootEl, i = r.name, o = r.targetEl, n = r.cloneEl, a = r.toEl, l = r.fromEl, s = r.oldIndex, c = r.newIndex, u = r.oldDraggableIndex, d = r.newDraggableIndex, m = r.originalEvent, h = r.putSortable, f = r.extraEventProperties;
|
|
1744
1744
|
if (e = e || t && t[he], !!e) {
|
|
1745
|
-
var
|
|
1746
|
-
window.CustomEvent && !Pe && !
|
|
1745
|
+
var v, O = e.options, J = "on" + i.charAt(0).toUpperCase() + i.substr(1);
|
|
1746
|
+
window.CustomEvent && !Pe && !Rt ? v = new CustomEvent(i, {
|
|
1747
1747
|
bubbles: !0,
|
|
1748
1748
|
cancelable: !0
|
|
1749
|
-
}) : (
|
|
1750
|
-
var j = Se(Se({},
|
|
1749
|
+
}) : (v = document.createEvent("Event"), v.initEvent(i, !0, !0)), v.to = a || t, v.from = l || t, v.item = o || t, v.clone = n, v.oldIndex = s, v.newIndex = c, v.oldDraggableIndex = u, v.newDraggableIndex = d, v.originalEvent = m, v.pullMode = h ? h.lastPutMode : void 0;
|
|
1750
|
+
var j = Se(Se({}, f), Ht.getEventProperties(i, e));
|
|
1751
1751
|
for (var ae in j)
|
|
1752
|
-
|
|
1753
|
-
t && t.dispatchEvent(
|
|
1752
|
+
v[ae] = j[ae];
|
|
1753
|
+
t && t.dispatchEvent(v), O[J] && O[J].call(e, v);
|
|
1754
1754
|
}
|
|
1755
1755
|
}
|
|
1756
1756
|
var La = ["evt"], pe = function(e, t) {
|
|
1757
1757
|
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.evt, n = _a(i, La);
|
|
1758
|
-
|
|
1758
|
+
Ht.pluginEvent.bind(k)(e, t, Se({
|
|
1759
1759
|
dragEl: p,
|
|
1760
|
-
parentEl:
|
|
1760
|
+
parentEl: F,
|
|
1761
1761
|
ghostEl: w,
|
|
1762
1762
|
rootEl: V,
|
|
1763
1763
|
nextEl: Je,
|
|
1764
|
-
lastDownEl:
|
|
1764
|
+
lastDownEl: Ft,
|
|
1765
1765
|
cloneEl: U,
|
|
1766
1766
|
cloneHidden: Ve,
|
|
1767
1767
|
dragStarted: gt,
|
|
@@ -1771,7 +1771,7 @@ var La = ["evt"], pe = function(e, t) {
|
|
|
1771
1771
|
oldIndex: lt,
|
|
1772
1772
|
oldDraggableIndex: _t,
|
|
1773
1773
|
newIndex: be,
|
|
1774
|
-
newDraggableIndex:
|
|
1774
|
+
newDraggableIndex: Oe,
|
|
1775
1775
|
hideGhostForTarget: yo,
|
|
1776
1776
|
unhideGhostForTarget: xo,
|
|
1777
1777
|
cloneNowHidden: function() {
|
|
@@ -1798,10 +1798,10 @@ function le(r) {
|
|
|
1798
1798
|
oldIndex: lt,
|
|
1799
1799
|
oldDraggableIndex: _t,
|
|
1800
1800
|
newIndex: be,
|
|
1801
|
-
newDraggableIndex:
|
|
1801
|
+
newDraggableIndex: Oe
|
|
1802
1802
|
}, r));
|
|
1803
1803
|
}
|
|
1804
|
-
var p,
|
|
1804
|
+
var p, F, w, V, Je, Ft, U, Ve, lt, be, _t, Oe, Vt, te, ot = !1, er = !1, tr = [], We, ke, Ir, Nr, Hi, Oi, gt, rt, $t, St = !1, It = !1, Xt, ne, Br = [], Gr = !1, rr = [], zr = typeof document < "u", Nt = di, Mi = Rt || Pe ? "cssFloat" : "float", Pa = zr && !lo && !di && "draggable" in document.createElement("div"), go = function() {
|
|
1805
1805
|
if (zr) {
|
|
1806
1806
|
if (Pe)
|
|
1807
1807
|
return !1;
|
|
@@ -1819,10 +1819,10 @@ var p, q, w, V, Je, qt, U, Ve, lt, be, _t, Re, Vt, te, ot = !1, er = !1, tr = []
|
|
|
1819
1819
|
return a && (s.clear === "both" || s.clear === d) ? "vertical" : "horizontal";
|
|
1820
1820
|
}
|
|
1821
1821
|
return n && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || c >= o && i[Mi] === "none" || a && i[Mi] === "none" && c + u > o) ? "vertical" : "horizontal";
|
|
1822
|
-
},
|
|
1822
|
+
}, Ra = function(e, t, i) {
|
|
1823
1823
|
var o = i ? e.left : e.top, n = i ? e.right : e.bottom, a = i ? e.width : e.height, l = i ? t.left : t.top, s = i ? t.right : t.bottom, c = i ? t.width : t.height;
|
|
1824
1824
|
return o === l || n === s || o + a / 2 === l + c / 2;
|
|
1825
|
-
},
|
|
1825
|
+
}, Ha = function(e, t) {
|
|
1826
1826
|
var i;
|
|
1827
1827
|
return tr.some(function(o) {
|
|
1828
1828
|
var n = o[he].options.emptyInsertThreshold;
|
|
@@ -1849,7 +1849,7 @@ var p, q, w, V, Je, qt, U, Ve, lt, be, _t, Re, Vt, te, ot = !1, er = !1, tr = []
|
|
|
1849
1849
|
};
|
|
1850
1850
|
}
|
|
1851
1851
|
var i = {}, o = e.group;
|
|
1852
|
-
(!o ||
|
|
1852
|
+
(!o || qt(o) != "object") && (o = {
|
|
1853
1853
|
name: o
|
|
1854
1854
|
}), i.name = o.name, i.checkPull = t(o.pull, !0), i.checkPut = t(o.put), i.revertClone = o.revertClone, e.group = i;
|
|
1855
1855
|
}, yo = function() {
|
|
@@ -1864,7 +1864,7 @@ zr && !lo && document.addEventListener("click", function(r) {
|
|
|
1864
1864
|
var Ge = function(e) {
|
|
1865
1865
|
if (p) {
|
|
1866
1866
|
e = e.touches ? e.touches[0] : e;
|
|
1867
|
-
var t =
|
|
1867
|
+
var t = Ha(e.clientX, e.clientY);
|
|
1868
1868
|
if (t) {
|
|
1869
1869
|
var i = {};
|
|
1870
1870
|
for (var o in e)
|
|
@@ -1872,7 +1872,7 @@ var Ge = function(e) {
|
|
|
1872
1872
|
i.target = i.rootEl = t, i.preventDefault = void 0, i.stopPropagation = void 0, t[he]._onDragOver(i);
|
|
1873
1873
|
}
|
|
1874
1874
|
}
|
|
1875
|
-
},
|
|
1875
|
+
}, Oa = function(e) {
|
|
1876
1876
|
p && p.parentNode[he]._isOutsideThisEl(e.target);
|
|
1877
1877
|
};
|
|
1878
1878
|
function k(r, e) {
|
|
@@ -1925,7 +1925,7 @@ function k(r, e) {
|
|
|
1925
1925
|
supportPointer: k.supportPointer !== !1 && "PointerEvent" in window && (!kt || di),
|
|
1926
1926
|
emptyInsertThreshold: 5
|
|
1927
1927
|
};
|
|
1928
|
-
|
|
1928
|
+
Ht.initializePlugins(this, r, t);
|
|
1929
1929
|
for (var i in t)
|
|
1930
1930
|
!(i in e) && (e[i] = t[i]);
|
|
1931
1931
|
vo(e);
|
|
@@ -1945,7 +1945,7 @@ k.prototype = /** @lends Sortable.prototype */
|
|
|
1945
1945
|
_onTapStart: function(e) {
|
|
1946
1946
|
if (e.cancelable) {
|
|
1947
1947
|
var t = this, i = this.el, o = this.options, n = o.preventOnFilter, a = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, u = o.filter;
|
|
1948
|
-
if (
|
|
1948
|
+
if (qa(i), !p && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || o.disabled) && !c.isContentEditable && !(!this.nativeDraggable && kt && s && s.tagName.toUpperCase() === "SELECT") && (s = we(s, o.draggable, i, !1), !(s && s.animated) && Ft !== s)) {
|
|
1949
1949
|
if (lt = ve(s), _t = ve(s, o.draggable), typeof u == "function") {
|
|
1950
1950
|
if (u.call(this, e, s, this)) {
|
|
1951
1951
|
le({
|
|
@@ -1984,11 +1984,11 @@ k.prototype = /** @lends Sortable.prototype */
|
|
|
1984
1984
|
var o = this, n = o.el, a = o.options, l = n.ownerDocument, s;
|
|
1985
1985
|
if (i && !p && i.parentNode === n) {
|
|
1986
1986
|
var c = G(i);
|
|
1987
|
-
if (V = n, p = i,
|
|
1987
|
+
if (V = n, p = i, F = p.parentNode, Je = p.nextSibling, Ft = i, Vt = a.group, k.dragged = p, We = {
|
|
1988
1988
|
target: p,
|
|
1989
1989
|
clientX: (t || e).clientX,
|
|
1990
1990
|
clientY: (t || e).clientY
|
|
1991
|
-
},
|
|
1991
|
+
}, Hi = We.clientX - c.left, Oi = We.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, p.style["will-change"] = "all", s = function() {
|
|
1992
1992
|
if (pe("delayEnded", o, {
|
|
1993
1993
|
evt: e
|
|
1994
1994
|
}), k.eventCanceled) {
|
|
@@ -2004,7 +2004,7 @@ k.prototype = /** @lends Sortable.prototype */
|
|
|
2004
2004
|
uo(p, u.trim(), Ur);
|
|
2005
2005
|
}), E(l, "dragover", Ge), E(l, "mousemove", Ge), E(l, "touchmove", Ge), a.supportPointer ? (E(l, "pointerup", o._onDrop), !this.nativeDraggable && E(l, "pointercancel", o._onDrop)) : (E(l, "mouseup", o._onDrop), E(l, "touchend", o._onDrop), E(l, "touchcancel", o._onDrop)), Di && this.nativeDraggable && (this.options.touchStartThreshold = 4, p.draggable = !0), pe("delayStart", this, {
|
|
2006
2006
|
evt: e
|
|
2007
|
-
}), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(
|
|
2007
|
+
}), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Rt || Pe))) {
|
|
2008
2008
|
if (k.eventCanceled) {
|
|
2009
2009
|
this._onDrop();
|
|
2010
2010
|
return;
|
|
@@ -2038,7 +2038,7 @@ k.prototype = /** @lends Sortable.prototype */
|
|
|
2038
2038
|
if (ot = !1, V && p) {
|
|
2039
2039
|
pe("dragStarted", this, {
|
|
2040
2040
|
evt: t
|
|
2041
|
-
}), this.nativeDraggable && E(document, "dragover",
|
|
2041
|
+
}), this.nativeDraggable && E(document, "dragover", Oa);
|
|
2042
2042
|
var i = this.options;
|
|
2043
2043
|
!e && ge(p, i.dragClass, !1), ge(p, i.ghostClass, !0), k.active = this, e && this._appendGhost(), le({
|
|
2044
2044
|
sortable: this,
|
|
@@ -2072,7 +2072,7 @@ k.prototype = /** @lends Sortable.prototype */
|
|
|
2072
2072
|
},
|
|
2073
2073
|
_onTouchMove: function(e) {
|
|
2074
2074
|
if (We) {
|
|
2075
|
-
var t = this.options, i = t.fallbackTolerance, o = t.fallbackOffset, n = e.touches ? e.touches[0] : e, a = w && st(w, !0), l = w && a && a.a, s = w && a && a.d, c = Nt && ne &&
|
|
2075
|
+
var t = this.options, i = t.fallbackTolerance, o = t.fallbackOffset, n = e.touches ? e.touches[0] : e, a = w && st(w, !0), l = w && a && a.a, s = w && a && a.d, c = Nt && ne && Ri(ne), u = (n.clientX - We.clientX + o.x) / (l || 1) + (c ? c[0] - Br[0] : 0) / (l || 1), d = (n.clientY - We.clientY + o.y) / (s || 1) + (c ? c[1] - Br[1] : 0) / (s || 1);
|
|
2076
2076
|
if (!k.active && !ot) {
|
|
2077
2077
|
if (i && Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) < i)
|
|
2078
2078
|
return;
|
|
@@ -2099,9 +2099,9 @@ k.prototype = /** @lends Sortable.prototype */
|
|
|
2099
2099
|
if (Nt) {
|
|
2100
2100
|
for (ne = e; x(ne, "position") === "static" && x(ne, "transform") === "none" && ne !== document; )
|
|
2101
2101
|
ne = ne.parentNode;
|
|
2102
|
-
ne !== document.body && ne !== document.documentElement ? (ne === document && (ne = $e()), t.top += ne.scrollTop, t.left += ne.scrollLeft) : ne = $e(), Br =
|
|
2102
|
+
ne !== document.body && ne !== document.documentElement ? (ne === document && (ne = $e()), t.top += ne.scrollTop, t.left += ne.scrollLeft) : ne = $e(), Br = Ri(ne);
|
|
2103
2103
|
}
|
|
2104
|
-
w = p.cloneNode(!0), ge(w, i.ghostClass, !1), ge(w, i.fallbackClass, !0), ge(w, i.dragClass, !0), x(w, "transition", ""), x(w, "transform", ""), x(w, "box-sizing", "border-box"), x(w, "margin", 0), x(w, "top", t.top), x(w, "left", t.left), x(w, "width", t.width), x(w, "height", t.height), x(w, "opacity", "0.8"), x(w, "position", Nt ? "absolute" : "fixed"), x(w, "zIndex", "100000"), x(w, "pointerEvents", "none"), k.ghost = w, e.appendChild(w), x(w, "transform-origin",
|
|
2104
|
+
w = p.cloneNode(!0), ge(w, i.ghostClass, !1), ge(w, i.fallbackClass, !0), ge(w, i.dragClass, !0), x(w, "transition", ""), x(w, "transform", ""), x(w, "box-sizing", "border-box"), x(w, "margin", 0), x(w, "top", t.top), x(w, "left", t.left), x(w, "width", t.width), x(w, "height", t.height), x(w, "opacity", "0.8"), x(w, "position", Nt ? "absolute" : "fixed"), x(w, "zIndex", "100000"), x(w, "pointerEvents", "none"), k.ghost = w, e.appendChild(w), x(w, "transform-origin", Hi / parseInt(w.style.width) * 100 + "% " + Oi / parseInt(w.style.height) * 100 + "%");
|
|
2105
2105
|
}
|
|
2106
2106
|
},
|
|
2107
2107
|
_onDragStart: function(e, t) {
|
|
@@ -2121,10 +2121,10 @@ k.prototype = /** @lends Sortable.prototype */
|
|
|
2121
2121
|
},
|
|
2122
2122
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
2123
2123
|
_onDragOver: function(e) {
|
|
2124
|
-
var t = this.el, i = e.target, o, n, a, l = this.options, s = l.group, c = k.active, u = Vt === s, d = l.sort, m = te || c, h,
|
|
2124
|
+
var t = this.el, i = e.target, o, n, a, l = this.options, s = l.group, c = k.active, u = Vt === s, d = l.sort, m = te || c, h, f = this, v = !1;
|
|
2125
2125
|
if (Gr) return;
|
|
2126
|
-
function
|
|
2127
|
-
pe(fe,
|
|
2126
|
+
function O(fe, qe) {
|
|
2127
|
+
pe(fe, f, Se({
|
|
2128
2128
|
evt: e,
|
|
2129
2129
|
isOwner: u,
|
|
2130
2130
|
axis: h ? "vertical" : "horizontal",
|
|
@@ -2135,60 +2135,60 @@ k.prototype = /** @lends Sortable.prototype */
|
|
|
2135
2135
|
fromSortable: m,
|
|
2136
2136
|
target: i,
|
|
2137
2137
|
completed: j,
|
|
2138
|
-
onMove: function(
|
|
2139
|
-
return Bt(V, t, p, o,
|
|
2138
|
+
onMove: function(Fe, ze) {
|
|
2139
|
+
return Bt(V, t, p, o, Fe, G(Fe), e, ze);
|
|
2140
2140
|
},
|
|
2141
2141
|
changed: ae
|
|
2142
|
-
},
|
|
2142
|
+
}, qe));
|
|
2143
2143
|
}
|
|
2144
2144
|
function J() {
|
|
2145
|
-
|
|
2145
|
+
O("dragOverAnimationCapture"), f.captureAnimationState(), f !== m && m.captureAnimationState();
|
|
2146
2146
|
}
|
|
2147
2147
|
function j(fe) {
|
|
2148
|
-
return
|
|
2148
|
+
return O("dragOverCompleted", {
|
|
2149
2149
|
insertion: fe
|
|
2150
|
-
}), fe && (u ? c._hideClone() : c._showClone(
|
|
2151
|
-
|
|
2152
|
-
}),
|
|
2150
|
+
}), fe && (u ? c._hideClone() : c._showClone(f), f !== m && (ge(p, te ? te.options.ghostClass : c.options.ghostClass, !1), ge(p, l.ghostClass, !0)), te !== f && f !== k.active ? te = f : f === k.active && te && (te = null), m === f && (f._ignoreWhileAnimating = i), f.animateAll(function() {
|
|
2151
|
+
O("dragOverAnimationComplete"), f._ignoreWhileAnimating = null;
|
|
2152
|
+
}), f !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (i === p && !p.animated || i === t && !i.animated) && (rt = null), !l.dragoverBubble && !e.rootEl && i !== document && (p.parentNode[he]._isOutsideThisEl(e.target), !fe && Ge(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), v = !0;
|
|
2153
2153
|
}
|
|
2154
2154
|
function ae() {
|
|
2155
|
-
be = ve(p),
|
|
2156
|
-
sortable:
|
|
2155
|
+
be = ve(p), Oe = ve(p, l.draggable), le({
|
|
2156
|
+
sortable: f,
|
|
2157
2157
|
name: "change",
|
|
2158
2158
|
toEl: t,
|
|
2159
2159
|
newIndex: be,
|
|
2160
|
-
newDraggableIndex:
|
|
2160
|
+
newDraggableIndex: Oe,
|
|
2161
2161
|
originalEvent: e
|
|
2162
2162
|
});
|
|
2163
2163
|
}
|
|
2164
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), i = we(i, l.draggable, t, !0),
|
|
2165
|
-
if (p.contains(e.target) || i.animated && i.animatingX && i.animatingY ||
|
|
2164
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), i = we(i, l.draggable, t, !0), O("dragOver"), k.eventCanceled) return v;
|
|
2165
|
+
if (p.contains(e.target) || i.animated && i.animatingX && i.animatingY || f._ignoreWhileAnimating === i)
|
|
2166
2166
|
return j(!1);
|
|
2167
|
-
if (er = !1, c && !l.disabled && (u ? d || (a =
|
|
2168
|
-
if (h = this._getDirection(e, i) === "vertical", o = G(p),
|
|
2167
|
+
if (er = !1, c && !l.disabled && (u ? d || (a = F !== V) : te === this || (this.lastPutMode = Vt.checkPull(this, c, p, e)) && s.checkPut(this, c, p, e))) {
|
|
2168
|
+
if (h = this._getDirection(e, i) === "vertical", o = G(p), O("dragOverValid"), k.eventCanceled) return v;
|
|
2169
2169
|
if (a)
|
|
2170
|
-
return
|
|
2170
|
+
return F = V, J(), this._hideClone(), O("revert"), k.eventCanceled || (Je ? V.insertBefore(p, Je) : V.appendChild(p)), j(!0);
|
|
2171
2171
|
var K = ui(t, l.draggable);
|
|
2172
2172
|
if (!K || Na(e, h, this) && !K.animated) {
|
|
2173
2173
|
if (K === p)
|
|
2174
2174
|
return j(!1);
|
|
2175
2175
|
if (K && t === e.target && (i = K), i && (n = G(i)), Bt(V, t, p, o, i, n, e, !!i) !== !1)
|
|
2176
|
-
return J(), K && K.nextSibling ? t.insertBefore(p, K.nextSibling) : t.appendChild(p),
|
|
2176
|
+
return J(), K && K.nextSibling ? t.insertBefore(p, K.nextSibling) : t.appendChild(p), F = t, ae(), j(!0);
|
|
2177
2177
|
} else if (K && Ia(e, h, this)) {
|
|
2178
2178
|
var _ = ut(t, 0, l, !0);
|
|
2179
2179
|
if (_ === p)
|
|
2180
2180
|
return j(!1);
|
|
2181
2181
|
if (i = _, n = G(i), Bt(V, t, p, o, i, n, e, !1) !== !1)
|
|
2182
|
-
return J(), t.insertBefore(p, _),
|
|
2182
|
+
return J(), t.insertBefore(p, _), F = t, ae(), j(!0);
|
|
2183
2183
|
} else if (i.parentNode === t) {
|
|
2184
2184
|
n = G(i);
|
|
2185
|
-
var b = 0, z,
|
|
2186
|
-
rt !== i && (z = n[Z], St = !1, It = !D && l.invertSwap ||
|
|
2185
|
+
var b = 0, z, R = p.parentNode !== t, D = !Ra(p.animated && p.toRect || o, i.animated && i.toRect || n, h), Z = h ? "top" : "left", Y = Pi(i, "top", "top") || Pi(p, "top", "top"), M = Y ? Y.scrollTop : void 0;
|
|
2186
|
+
rt !== i && (z = n[Z], St = !1, It = !D && l.invertSwap || R), b = Ba(e, i, n, h, D ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, It, rt === i);
|
|
2187
2187
|
var L;
|
|
2188
2188
|
if (b !== 0) {
|
|
2189
2189
|
var X = ve(p);
|
|
2190
2190
|
do
|
|
2191
|
-
X -= b, L =
|
|
2191
|
+
X -= b, L = F.children[X];
|
|
2192
2192
|
while (L && (x(L, "display") === "none" || L === w));
|
|
2193
2193
|
}
|
|
2194
2194
|
if (b === 0 || L === i)
|
|
@@ -2198,7 +2198,7 @@ k.prototype = /** @lends Sortable.prototype */
|
|
|
2198
2198
|
ee = b === 1;
|
|
2199
2199
|
var de = Bt(V, t, p, o, i, n, e, ee);
|
|
2200
2200
|
if (de !== !1)
|
|
2201
|
-
return (de === 1 || de === -1) && (ee = de === 1), Gr = !0, setTimeout(Va, 30), J(), ee && !ce ? t.appendChild(p) : i.parentNode.insertBefore(p, ee ? ce : i), Y && mo(Y, 0, M - Y.scrollTop),
|
|
2201
|
+
return (de === 1 || de === -1) && (ee = de === 1), Gr = !0, setTimeout(Va, 30), J(), ee && !ce ? t.appendChild(p) : i.parentNode.insertBefore(p, ee ? ce : i), Y && mo(Y, 0, M - Y.scrollTop), F = p.parentNode, z !== void 0 && !It && (Xt = Math.abs(z - G(i)[Z])), ae(), j(!0);
|
|
2202
2202
|
}
|
|
2203
2203
|
if (t.contains(p))
|
|
2204
2204
|
return j(!1);
|
|
@@ -2215,60 +2215,60 @@ k.prototype = /** @lends Sortable.prototype */
|
|
|
2215
2215
|
},
|
|
2216
2216
|
_onDrop: function(e) {
|
|
2217
2217
|
var t = this.el, i = this.options;
|
|
2218
|
-
if (be = ve(p),
|
|
2218
|
+
if (be = ve(p), Oe = ve(p, i.draggable), pe("drop", this, {
|
|
2219
2219
|
evt: e
|
|
2220
|
-
}),
|
|
2220
|
+
}), F = p && p.parentNode, be = ve(p), Oe = ve(p, i.draggable), k.eventCanceled) {
|
|
2221
2221
|
this._nulling();
|
|
2222
2222
|
return;
|
|
2223
2223
|
}
|
|
2224
|
-
ot = !1, It = !1, St = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Jr(this.cloneId), Jr(this._dragStartId), this.nativeDraggable && (A(document, "drop", this), A(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), kt && x(document.body, "user-select", ""), x(p, "transform", ""), e && (gt && (e.cancelable && e.preventDefault(), !i.dropBubble && e.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (V ===
|
|
2224
|
+
ot = !1, It = !1, St = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Jr(this.cloneId), Jr(this._dragStartId), this.nativeDraggable && (A(document, "drop", this), A(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), kt && x(document.body, "user-select", ""), x(p, "transform", ""), e && (gt && (e.cancelable && e.preventDefault(), !i.dropBubble && e.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (V === F || te && te.lastPutMode !== "clone") && U && U.parentNode && U.parentNode.removeChild(U), p && (this.nativeDraggable && A(p, "dragend", this), Ur(p), p.style["will-change"] = "", gt && !ot && ge(p, te ? te.options.ghostClass : this.options.ghostClass, !1), ge(p, this.options.chosenClass, !1), le({
|
|
2225
2225
|
sortable: this,
|
|
2226
2226
|
name: "unchoose",
|
|
2227
|
-
toEl:
|
|
2227
|
+
toEl: F,
|
|
2228
2228
|
newIndex: null,
|
|
2229
2229
|
newDraggableIndex: null,
|
|
2230
2230
|
originalEvent: e
|
|
2231
|
-
}), V !==
|
|
2232
|
-
rootEl:
|
|
2231
|
+
}), V !== F ? (be >= 0 && (le({
|
|
2232
|
+
rootEl: F,
|
|
2233
2233
|
name: "add",
|
|
2234
|
-
toEl:
|
|
2234
|
+
toEl: F,
|
|
2235
2235
|
fromEl: V,
|
|
2236
2236
|
originalEvent: e
|
|
2237
2237
|
}), le({
|
|
2238
2238
|
sortable: this,
|
|
2239
2239
|
name: "remove",
|
|
2240
|
-
toEl:
|
|
2240
|
+
toEl: F,
|
|
2241
2241
|
originalEvent: e
|
|
2242
2242
|
}), le({
|
|
2243
|
-
rootEl:
|
|
2243
|
+
rootEl: F,
|
|
2244
2244
|
name: "sort",
|
|
2245
|
-
toEl:
|
|
2245
|
+
toEl: F,
|
|
2246
2246
|
fromEl: V,
|
|
2247
2247
|
originalEvent: e
|
|
2248
2248
|
}), le({
|
|
2249
2249
|
sortable: this,
|
|
2250
2250
|
name: "sort",
|
|
2251
|
-
toEl:
|
|
2251
|
+
toEl: F,
|
|
2252
2252
|
originalEvent: e
|
|
2253
2253
|
})), te && te.save()) : be !== lt && be >= 0 && (le({
|
|
2254
2254
|
sortable: this,
|
|
2255
2255
|
name: "update",
|
|
2256
|
-
toEl:
|
|
2256
|
+
toEl: F,
|
|
2257
2257
|
originalEvent: e
|
|
2258
2258
|
}), le({
|
|
2259
2259
|
sortable: this,
|
|
2260
2260
|
name: "sort",
|
|
2261
|
-
toEl:
|
|
2261
|
+
toEl: F,
|
|
2262
2262
|
originalEvent: e
|
|
2263
|
-
})), k.active && ((be == null || be === -1) && (be = lt,
|
|
2263
|
+
})), k.active && ((be == null || be === -1) && (be = lt, Oe = _t), le({
|
|
2264
2264
|
sortable: this,
|
|
2265
2265
|
name: "end",
|
|
2266
|
-
toEl:
|
|
2266
|
+
toEl: F,
|
|
2267
2267
|
originalEvent: e
|
|
2268
2268
|
}), this.save()))), this._nulling();
|
|
2269
2269
|
},
|
|
2270
2270
|
_nulling: function() {
|
|
2271
|
-
pe("nulling", this), V = p =
|
|
2271
|
+
pe("nulling", this), V = p = F = w = Je = U = Ft = Ve = We = ke = gt = be = Oe = lt = _t = rt = $t = te = Vt = k.dragged = k.ghost = k.clone = k.active = null, rr.forEach(function(e) {
|
|
2272
2272
|
e.checked = !0;
|
|
2273
2273
|
}), rr.length = Ir = Nr = 0;
|
|
2274
2274
|
},
|
|
@@ -2335,7 +2335,7 @@ k.prototype = /** @lends Sortable.prototype */
|
|
|
2335
2335
|
var i = this.options;
|
|
2336
2336
|
if (t === void 0)
|
|
2337
2337
|
return i[e];
|
|
2338
|
-
var o =
|
|
2338
|
+
var o = Ht.modifyOption(this, e, t);
|
|
2339
2339
|
typeof o < "u" ? i[e] = o : i[e] = t, e === "group" && vo(i);
|
|
2340
2340
|
},
|
|
2341
2341
|
/**
|
|
@@ -2370,7 +2370,7 @@ function Ma(r) {
|
|
|
2370
2370
|
}
|
|
2371
2371
|
function Bt(r, e, t, i, o, n, a, l) {
|
|
2372
2372
|
var s, c = r[he], u = c.options.onMove, d;
|
|
2373
|
-
return window.CustomEvent && !Pe && !
|
|
2373
|
+
return window.CustomEvent && !Pe && !Rt ? s = new CustomEvent("move", {
|
|
2374
2374
|
bubbles: !0,
|
|
2375
2375
|
cancelable: !0
|
|
2376
2376
|
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = r, s.dragged = t, s.draggedRect = i, s.related = o || e, s.relatedRect = n || G(e), s.willInsertAfter = l, s.originalEvent = a, r.dispatchEvent(s), u && (d = u.call(c, s, a)), d;
|
|
@@ -2410,7 +2410,7 @@ function ja(r) {
|
|
|
2410
2410
|
i += e.charCodeAt(t);
|
|
2411
2411
|
return i.toString(36);
|
|
2412
2412
|
}
|
|
2413
|
-
function
|
|
2413
|
+
function qa(r) {
|
|
2414
2414
|
rr.length = 0;
|
|
2415
2415
|
for (var e = r.getElementsByTagName("input"), t = e.length; t--; ) {
|
|
2416
2416
|
var i = e[t];
|
|
@@ -2455,15 +2455,15 @@ k.mount = function() {
|
|
|
2455
2455
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(i) {
|
|
2456
2456
|
if (!i.prototype || !i.prototype.constructor)
|
|
2457
2457
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));
|
|
2458
|
-
i.utils && (k.utils = Se(Se({}, k.utils), i.utils)),
|
|
2458
|
+
i.utils && (k.utils = Se(Se({}, k.utils), i.utils)), Ht.mount(i);
|
|
2459
2459
|
});
|
|
2460
2460
|
};
|
|
2461
2461
|
k.create = function(r, e) {
|
|
2462
2462
|
return new k(r, e);
|
|
2463
2463
|
};
|
|
2464
2464
|
k.version = $a;
|
|
2465
|
-
var W = [], bt, Kr, Qr = !1, jr,
|
|
2466
|
-
function
|
|
2465
|
+
var W = [], bt, Kr, Qr = !1, jr, qr, ir, vt;
|
|
2466
|
+
function Fa() {
|
|
2467
2467
|
function r() {
|
|
2468
2468
|
this.defaults = {
|
|
2469
2469
|
scroll: !0,
|
|
@@ -2488,26 +2488,26 @@ function qa() {
|
|
|
2488
2488
|
this.sortable.nativeDraggable ? A(document, "dragover", this._handleAutoScroll) : (A(document, "pointermove", this._handleFallbackAutoScroll), A(document, "touchmove", this._handleFallbackAutoScroll), A(document, "mousemove", this._handleFallbackAutoScroll)), Vi(), Yt(), Aa();
|
|
2489
2489
|
},
|
|
2490
2490
|
nulling: function() {
|
|
2491
|
-
ir = Kr = bt = Qr = vt = jr =
|
|
2491
|
+
ir = Kr = bt = Qr = vt = jr = qr = null, W.length = 0;
|
|
2492
2492
|
},
|
|
2493
2493
|
_handleFallbackAutoScroll: function(t) {
|
|
2494
2494
|
this._handleAutoScroll(t, !0);
|
|
2495
2495
|
},
|
|
2496
2496
|
_handleAutoScroll: function(t, i) {
|
|
2497
2497
|
var o = this, n = (t.touches ? t.touches[0] : t).clientX, a = (t.touches ? t.touches[0] : t).clientY, l = document.elementFromPoint(n, a);
|
|
2498
|
-
if (ir = t, i || this.options.forceAutoScrollFallback ||
|
|
2499
|
-
|
|
2498
|
+
if (ir = t, i || this.options.forceAutoScrollFallback || Rt || Pe || kt) {
|
|
2499
|
+
Fr(t, this.options, l, i);
|
|
2500
2500
|
var s = Ne(l, !0);
|
|
2501
|
-
Qr && (!vt || n !== jr || a !==
|
|
2501
|
+
Qr && (!vt || n !== jr || a !== qr) && (vt && Vi(), vt = setInterval(function() {
|
|
2502
2502
|
var c = Ne(document.elementFromPoint(n, a), !0);
|
|
2503
|
-
c !== s && (s = c, Yt()),
|
|
2504
|
-
}, 10), jr = n,
|
|
2503
|
+
c !== s && (s = c, Yt()), Fr(t, o.options, c, i);
|
|
2504
|
+
}, 10), jr = n, qr = a);
|
|
2505
2505
|
} else {
|
|
2506
2506
|
if (!this.options.bubbleScroll || Ne(l, !0) === $e()) {
|
|
2507
2507
|
Yt();
|
|
2508
2508
|
return;
|
|
2509
2509
|
}
|
|
2510
|
-
|
|
2510
|
+
Fr(t, this.options, Ne(l, !1), !1);
|
|
2511
2511
|
}
|
|
2512
2512
|
}
|
|
2513
2513
|
}, Le(r, {
|
|
@@ -2523,15 +2523,15 @@ function Yt() {
|
|
|
2523
2523
|
function Vi() {
|
|
2524
2524
|
clearInterval(vt);
|
|
2525
2525
|
}
|
|
2526
|
-
var
|
|
2526
|
+
var Fr = po(function(r, e, t, i) {
|
|
2527
2527
|
if (e.scroll) {
|
|
2528
2528
|
var o = (r.touches ? r.touches[0] : r).clientX, n = (r.touches ? r.touches[0] : r).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = $e(), c = !1, u;
|
|
2529
2529
|
Kr !== t && (Kr = t, Yt(), bt = e.scroll, u = e.scrollFn, bt === !0 && (bt = Ne(t, !0)));
|
|
2530
2530
|
var d = 0, m = bt;
|
|
2531
2531
|
do {
|
|
2532
|
-
var h = m,
|
|
2533
|
-
h === s ? (_ = ae < z && (D.overflowX === "auto" || D.overflowX === "scroll" || D.overflowX === "visible"), b = K <
|
|
2534
|
-
var M = _ && (Math.abs(j - o) <= a && Z + ae < z) - (Math.abs(J - o) <= a && !!Z), L = b && (Math.abs(
|
|
2532
|
+
var h = m, f = G(h), v = f.top, O = f.bottom, J = f.left, j = f.right, ae = f.width, K = f.height, _ = void 0, b = void 0, z = h.scrollWidth, R = h.scrollHeight, D = x(h), Z = h.scrollLeft, Y = h.scrollTop;
|
|
2533
|
+
h === s ? (_ = ae < z && (D.overflowX === "auto" || D.overflowX === "scroll" || D.overflowX === "visible"), b = K < R && (D.overflowY === "auto" || D.overflowY === "scroll" || D.overflowY === "visible")) : (_ = ae < z && (D.overflowX === "auto" || D.overflowX === "scroll"), b = K < R && (D.overflowY === "auto" || D.overflowY === "scroll"));
|
|
2534
|
+
var M = _ && (Math.abs(j - o) <= a && Z + ae < z) - (Math.abs(J - o) <= a && !!Z), L = b && (Math.abs(O - n) <= a && Y + K < R) - (Math.abs(v - n) <= a && !!Y);
|
|
2535
2535
|
if (!W[d])
|
|
2536
2536
|
for (var X = 0; X <= d; X++)
|
|
2537
2537
|
W[X] || (W[X] = {});
|
|
@@ -2588,7 +2588,7 @@ mi.prototype = {
|
|
|
2588
2588
|
Le(mi, {
|
|
2589
2589
|
pluginName: "removeOnSpill"
|
|
2590
2590
|
});
|
|
2591
|
-
k.mount(new
|
|
2591
|
+
k.mount(new Fa());
|
|
2592
2592
|
k.mount(mi, pi);
|
|
2593
2593
|
const Xa = (r) => {
|
|
2594
2594
|
const e = r.item;
|
|
@@ -2598,24 +2598,24 @@ const Xa = (r) => {
|
|
|
2598
2598
|
), t;
|
|
2599
2599
|
}, Za = (r, e, t, i, o, n) => {
|
|
2600
2600
|
const l = r.item.parentNode;
|
|
2601
|
-
for (const
|
|
2602
|
-
l.appendChild(
|
|
2601
|
+
for (const v of t)
|
|
2602
|
+
l.appendChild(v);
|
|
2603
2603
|
if (r.oldIndex == r.newIndex) return;
|
|
2604
2604
|
const s = i.getArray(), c = (
|
|
2605
2605
|
/** @type {Element & {layer: import("ol/layer").Layer}} */
|
|
2606
2606
|
r.item.querySelector("eox-layercontrol-layer").layer.get(o)
|
|
2607
|
-
), u = s.find((
|
|
2608
|
-
(
|
|
2607
|
+
), u = s.find((v) => v.get(o) === c), d = n.dataset.layer, m = s.find(
|
|
2608
|
+
(v) => v.get(o) == d
|
|
2609
2609
|
);
|
|
2610
|
-
let h,
|
|
2610
|
+
let h, f;
|
|
2611
2611
|
for (h = 0; h < s.length; h++)
|
|
2612
2612
|
if (s[h] == u) {
|
|
2613
2613
|
i.removeAt(h);
|
|
2614
2614
|
break;
|
|
2615
2615
|
}
|
|
2616
|
-
for (
|
|
2617
|
-
if (s[
|
|
2618
|
-
h >
|
|
2616
|
+
for (f = 0; f < s.length; f++)
|
|
2617
|
+
if (s[f] === m) {
|
|
2618
|
+
h > f ? i.insertAt(f, u) : i.insertAt(f + 1, u);
|
|
2619
2619
|
break;
|
|
2620
2620
|
}
|
|
2621
2621
|
e.requestUpdate();
|
|
@@ -2800,14 +2800,14 @@ const $o = (r, e) => r == null ? void 0 : r.filter(
|
|
|
2800
2800
|
), So = (r, e) => r == null ? void 0 : r.filter((t) => {
|
|
2801
2801
|
let i = !0;
|
|
2802
2802
|
return ["remove", "sort"].includes(t) && (i = !1), t === "info" && (i = e.get("description")), t === "config" && (i = e.get("layerConfig")), t === "datetime" && (i = e.get("layerDatetime")), t === "legend" && (i = e.get("layerLegend")), i;
|
|
2803
|
-
}), rl = (r, e, t) =>
|
|
2803
|
+
}), rl = (r, e, t) => g`
|
|
2804
2804
|
<button
|
|
2805
2805
|
slot="${r}-icon"
|
|
2806
2806
|
class="no-margin transparent square primary-text small"
|
|
2807
2807
|
>
|
|
2808
|
-
${t ? r :
|
|
2808
|
+
${t ? r : g`<i class="small primary-text">${e}</i>`}
|
|
2809
2809
|
</button>
|
|
2810
|
-
`, zo = (r, e) =>
|
|
2810
|
+
`, zo = (r, e) => g`
|
|
2811
2811
|
<button
|
|
2812
2812
|
class="remove-icon no-margin transparent square small action"
|
|
2813
2813
|
@click=${() => {
|
|
@@ -2820,61 +2820,61 @@ const $o = (r, e) => r == null ? void 0 : r.filter(
|
|
|
2820
2820
|
);
|
|
2821
2821
|
}}
|
|
2822
2822
|
>
|
|
2823
|
-
${r.unstyled ? "x" :
|
|
2823
|
+
${r.unstyled ? "x" : g`<i class="small red-text">${e}</i>`}
|
|
2824
2824
|
</button>
|
|
2825
|
-
`, Ao = (r, e, t) =>
|
|
2825
|
+
`, Ao = (r, e, t) => g`
|
|
2826
2826
|
<button
|
|
2827
2827
|
class="sort-icon no-margin transparent square primary-text drag-handle small action ${r.layer.get(
|
|
2828
2828
|
"layerControlDisable"
|
|
2829
2829
|
) ? "disabled" : ""}"
|
|
2830
2830
|
style="cursor: ns-resize;"
|
|
2831
2831
|
>
|
|
2832
|
-
${t ? "═" :
|
|
2832
|
+
${t ? "═" : g`<i class="small primary-text">${e}</i>`}
|
|
2833
2833
|
</button>
|
|
2834
2834
|
`;
|
|
2835
2835
|
function zt() {
|
|
2836
2836
|
return {
|
|
2837
|
-
dots:
|
|
2837
|
+
dots: g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
2838
2838
|
<title>menu-down</title>
|
|
2839
2839
|
<path d="M7,10L12,15L17,10H7Z" />
|
|
2840
2840
|
</svg>`,
|
|
2841
|
-
info:
|
|
2841
|
+
info: g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
2842
2842
|
<title>information-outline</title>
|
|
2843
2843
|
<path
|
|
2844
2844
|
d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z"
|
|
2845
2845
|
/>
|
|
2846
2846
|
</svg>`,
|
|
2847
|
-
opacity:
|
|
2847
|
+
opacity: g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
2848
2848
|
<title>circle-opacity</title>
|
|
2849
2849
|
<path
|
|
2850
2850
|
d="M18 10V8H20V10H18M18 12V10H16V12H18M18 8V6H16V8H18M16 2.84V4H18C17.37 3.54 16.71 3.15 16 2.84M18 4V6H20C19.42 5.25 18.75 4.58 18 4M20 6V8H21.16C20.85 7.29 20.46 6.63 20 6M22 12C22 11.32 21.93 10.65 21.8 10H20V12H22M16 6V4H14V6H16M16 16H18V14H16V16M18 18H20L20 18V16H18V18M16 20H18L18 20V18H16V20M14 21.8C14.7 21.66 15.36 21.44 16 21.16V20H14V21.8M18 14H20V12H18V14M16 8H14V10H16V8M20 16H21.16C21.44 15.36 21.66 14.7 21.8 14H20V16M16 12H14V14H16V12M12 18V16H14V14H12V12H14V10H12V8H14V6H12V4H14V2.2C13.35 2.07 12.69 2 12 2C6.5 2 2 6.5 2 12S6.5 22 12 22V20H14V18H12M14 18H16V16H14V18Z"
|
|
2851
2851
|
/>
|
|
2852
2852
|
</svg>`,
|
|
2853
|
-
config:
|
|
2853
|
+
config: g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
2854
2854
|
<title>tune</title>
|
|
2855
2855
|
<path
|
|
2856
2856
|
d="M3,17V19H9V17H3M3,5V7H13V5H3M13,21V19H21V17H13V15H11V21H13M7,9V11H3V13H7V15H9V9H7M21,13V11H11V13H21M15,9H17V7H21V5H17V3H15V9Z"
|
|
2857
2857
|
/>
|
|
2858
2858
|
</svg>`,
|
|
2859
|
-
datetime:
|
|
2859
|
+
datetime: g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
2860
2860
|
<title>calendar-clock-outline</title>
|
|
2861
2861
|
<path
|
|
2862
2862
|
d="M6 1V3H5C3.89 3 3 3.89 3 5V19C3 20.1 3.89 21 5 21H11.1C12.36 22.24 14.09 23 16 23C19.87 23 23 19.87 23 16C23 14.09 22.24 12.36 21 11.1V5C21 3.9 20.11 3 19 3H18V1H16V3H8V1M5 5H19V7H5M5 9H19V9.67C18.09 9.24 17.07 9 16 9C12.13 9 9 12.13 9 16C9 17.07 9.24 18.09 9.67 19H5M16 11.15C18.68 11.15 20.85 13.32 20.85 16C20.85 18.68 18.68 20.85 16 20.85C13.32 20.85 11.15 18.68 11.15 16C11.15 13.32 13.32 11.15 16 11.15M15 13V16.69L18.19 18.53L18.94 17.23L16.5 15.82V13Z"
|
|
2863
2863
|
/>
|
|
2864
2864
|
</svg>`,
|
|
2865
|
-
legend:
|
|
2865
|
+
legend: g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
2866
2866
|
<title>map-legend</title>
|
|
2867
2867
|
<path
|
|
2868
2868
|
d="M9,3L3.36,4.9C3.15,4.97 3,5.15 3,5.38V20.5A0.5,0.5 0 0,0 3.5,21L3.66,20.97L9,18.9L15,21L20.64,19.1C20.85,19.03 21,18.85 21,18.62V3.5A0.5,0.5 0 0,0 20.5,3L20.34,3.03L15,5.1L9,3M8,5.45V17.15L5,18.31V6.46L8,5.45M10,5.47L14,6.87V18.53L10,17.13V5.47M19,5.7V17.54L16,18.55V6.86L19,5.7M7.46,6.3L5.57,6.97V9.12L7.46,8.45V6.3M7.46,9.05L5.57,9.72V11.87L7.46,11.2V9.05M7.46,11.8L5.57,12.47V14.62L7.46,13.95V11.8M7.46,14.55L5.57,15.22V17.37L7.46,16.7V14.55Z"
|
|
2869
2869
|
/>
|
|
2870
2870
|
</svg>`,
|
|
2871
|
-
remove:
|
|
2871
|
+
remove: g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
2872
2872
|
<title>delete-outline</title>
|
|
2873
2873
|
<path
|
|
2874
2874
|
d="M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z"
|
|
2875
2875
|
/>
|
|
2876
2876
|
</svg>`,
|
|
2877
|
-
sort:
|
|
2877
|
+
sort: g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
2878
2878
|
<title>drag-horizontal-variant</title>
|
|
2879
2879
|
<path d="M21 11H3V9H21V11M21 13H3V15H21V13Z" />
|
|
2880
2880
|
</svg>`
|
|
@@ -2892,7 +2892,7 @@ const Eo = (r) => {
|
|
|
2892
2892
|
*/
|
|
2893
2893
|
const Co = ai(class extends li {
|
|
2894
2894
|
constructor(r) {
|
|
2895
|
-
if (super(r), r.type !==
|
|
2895
|
+
if (super(r), r.type !== He.PROPERTY && r.type !== He.ATTRIBUTE && r.type !== He.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
|
|
2896
2896
|
if (!wn(r)) throw Error("`live` bindings can only contain a single expression");
|
|
2897
2897
|
}
|
|
2898
2898
|
render(r) {
|
|
@@ -2901,11 +2901,11 @@ const Co = ai(class extends li {
|
|
|
2901
2901
|
update(r, [e]) {
|
|
2902
2902
|
if (e === xe || e === P) return e;
|
|
2903
2903
|
const t = r.element, i = r.name;
|
|
2904
|
-
if (r.type ===
|
|
2904
|
+
if (r.type === He.PROPERTY) {
|
|
2905
2905
|
if (e === t[i]) return xe;
|
|
2906
|
-
} else if (r.type ===
|
|
2906
|
+
} else if (r.type === He.BOOLEAN_ATTRIBUTE) {
|
|
2907
2907
|
if (!!e === t.hasAttribute(i)) return xe;
|
|
2908
|
-
} else if (r.type ===
|
|
2908
|
+
} else if (r.type === He.ATTRIBUTE && t.getAttribute(i) === e + "") return xe;
|
|
2909
2909
|
return Ki(r), e;
|
|
2910
2910
|
}
|
|
2911
2911
|
});
|
|
@@ -2916,7 +2916,7 @@ const Co = ai(class extends li {
|
|
|
2916
2916
|
*/
|
|
2917
2917
|
class ei extends li {
|
|
2918
2918
|
constructor(e) {
|
|
2919
|
-
if (super(e), this.it = P, e.type !==
|
|
2919
|
+
if (super(e), this.it = P, e.type !== He.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
2920
2920
|
}
|
|
2921
2921
|
render(e) {
|
|
2922
2922
|
if (e === P || e == null) return this._t = void 0, this.it = e;
|
|
@@ -2950,61 +2950,61 @@ var Xr, Ni;
|
|
|
2950
2950
|
function ol() {
|
|
2951
2951
|
if (Ni) return Xr;
|
|
2952
2952
|
Ni = 1;
|
|
2953
|
-
var r = "Expected a function", e = NaN, t = "[object Symbol]", i = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, n = /^0b[01]+$/i, a = /^0o[0-7]+$/i, l = parseInt, s = typeof Be == "object" && Be && Be.Object === Object && Be, c = typeof self == "object" && self && self.Object === Object && self, u = s || c || Function("return this")(), d = Object.prototype, m = d.toString, h = Math.max,
|
|
2953
|
+
var r = "Expected a function", e = NaN, t = "[object Symbol]", i = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, n = /^0b[01]+$/i, a = /^0o[0-7]+$/i, l = parseInt, s = typeof Be == "object" && Be && Be.Object === Object && Be, c = typeof self == "object" && self && self.Object === Object && self, u = s || c || Function("return this")(), d = Object.prototype, m = d.toString, h = Math.max, f = Math.min, v = function() {
|
|
2954
2954
|
return u.Date.now();
|
|
2955
2955
|
};
|
|
2956
|
-
function
|
|
2956
|
+
function O(b, z, R) {
|
|
2957
2957
|
var D, Z, Y, M, L, X, ce = 0, ee = !1, de = !1, fe = !0;
|
|
2958
2958
|
if (typeof b != "function")
|
|
2959
2959
|
throw new TypeError(r);
|
|
2960
|
-
z = _(z) || 0, j(
|
|
2961
|
-
function
|
|
2962
|
-
var ue = D,
|
|
2963
|
-
return D = Z = void 0, ce =
|
|
2960
|
+
z = _(z) || 0, j(R) && (ee = !!R.leading, de = "maxWait" in R, Y = de ? h(_(R.maxWait) || 0, z) : Y, fe = "trailing" in R ? !!R.trailing : fe);
|
|
2961
|
+
function qe(H) {
|
|
2962
|
+
var ue = D, Re = Z;
|
|
2963
|
+
return D = Z = void 0, ce = H, M = b.apply(Re, ue), M;
|
|
2964
2964
|
}
|
|
2965
|
-
function
|
|
2966
|
-
return ce =
|
|
2965
|
+
function Ot(H) {
|
|
2966
|
+
return ce = H, L = setTimeout(Xe, z), ee ? qe(H) : M;
|
|
2967
2967
|
}
|
|
2968
|
-
function
|
|
2969
|
-
var ue =
|
|
2970
|
-
return de ?
|
|
2968
|
+
function Fe(H) {
|
|
2969
|
+
var ue = H - X, Re = H - ce, gi = z - ue;
|
|
2970
|
+
return de ? f(gi, Y - Re) : gi;
|
|
2971
2971
|
}
|
|
2972
|
-
function ze(
|
|
2973
|
-
var ue =
|
|
2974
|
-
return X === void 0 || ue >= z || ue < 0 || de &&
|
|
2972
|
+
function ze(H) {
|
|
2973
|
+
var ue = H - X, Re = H - ce;
|
|
2974
|
+
return X === void 0 || ue >= z || ue < 0 || de && Re >= Y;
|
|
2975
2975
|
}
|
|
2976
2976
|
function Xe() {
|
|
2977
|
-
var
|
|
2978
|
-
if (ze(
|
|
2979
|
-
return Mt(
|
|
2980
|
-
L = setTimeout(Xe,
|
|
2977
|
+
var H = v();
|
|
2978
|
+
if (ze(H))
|
|
2979
|
+
return Mt(H);
|
|
2980
|
+
L = setTimeout(Xe, Fe(H));
|
|
2981
2981
|
}
|
|
2982
|
-
function Mt(
|
|
2983
|
-
return L = void 0, fe && D ?
|
|
2982
|
+
function Mt(H) {
|
|
2983
|
+
return L = void 0, fe && D ? qe(H) : (D = Z = void 0, M);
|
|
2984
2984
|
}
|
|
2985
2985
|
function Er() {
|
|
2986
2986
|
L !== void 0 && clearTimeout(L), ce = 0, D = X = Z = L = void 0;
|
|
2987
2987
|
}
|
|
2988
2988
|
function mt() {
|
|
2989
|
-
return L === void 0 ? M : Mt(
|
|
2989
|
+
return L === void 0 ? M : Mt(v());
|
|
2990
2990
|
}
|
|
2991
2991
|
function N() {
|
|
2992
|
-
var
|
|
2993
|
-
if (D = arguments, Z = this, X =
|
|
2992
|
+
var H = v(), ue = ze(H);
|
|
2993
|
+
if (D = arguments, Z = this, X = H, ue) {
|
|
2994
2994
|
if (L === void 0)
|
|
2995
|
-
return
|
|
2995
|
+
return Ot(X);
|
|
2996
2996
|
if (de)
|
|
2997
|
-
return L = setTimeout(Xe, z),
|
|
2997
|
+
return L = setTimeout(Xe, z), qe(X);
|
|
2998
2998
|
}
|
|
2999
2999
|
return L === void 0 && (L = setTimeout(Xe, z)), M;
|
|
3000
3000
|
}
|
|
3001
3001
|
return N.cancel = Er, N.flush = mt, N;
|
|
3002
3002
|
}
|
|
3003
|
-
function J(b, z,
|
|
3003
|
+
function J(b, z, R) {
|
|
3004
3004
|
var D = !0, Z = !0;
|
|
3005
3005
|
if (typeof b != "function")
|
|
3006
3006
|
throw new TypeError(r);
|
|
3007
|
-
return j(
|
|
3007
|
+
return j(R) && (D = "leading" in R ? !!R.leading : D, Z = "trailing" in R ? !!R.trailing : Z), O(b, z, {
|
|
3008
3008
|
leading: D,
|
|
3009
3009
|
maxWait: z,
|
|
3010
3010
|
trailing: Z
|
|
@@ -3032,8 +3032,8 @@ function ol() {
|
|
|
3032
3032
|
if (typeof b != "string")
|
|
3033
3033
|
return b === 0 ? b : +b;
|
|
3034
3034
|
b = b.replace(i, "");
|
|
3035
|
-
var
|
|
3036
|
-
return
|
|
3035
|
+
var R = n.test(b);
|
|
3036
|
+
return R || a.test(b) ? l(b.slice(2), R ? 2 : 8) : o.test(b) ? e : +b;
|
|
3037
3037
|
}
|
|
3038
3038
|
return Xr = J, Xr;
|
|
3039
3039
|
}
|
|
@@ -3111,18 +3111,18 @@ class Do extends se {
|
|
|
3111
3111
|
render() {
|
|
3112
3112
|
return customElements.get("color-legend") || console.error(
|
|
3113
3113
|
"Please import `color-legend-element` in order to use layerLegend"
|
|
3114
|
-
),
|
|
3114
|
+
), g`
|
|
3115
3115
|
<style>
|
|
3116
3116
|
${$(this, or)}
|
|
3117
3117
|
${!this.unstyled && $(this, nr)}
|
|
3118
3118
|
</style>
|
|
3119
3119
|
${I(
|
|
3120
3120
|
this.layerLegend,
|
|
3121
|
-
() =>
|
|
3121
|
+
() => g`
|
|
3122
3122
|
<div class="legend-container">
|
|
3123
3123
|
<!-- Render color-legend-->
|
|
3124
3124
|
${$(this, ye).map(
|
|
3125
|
-
(t, i, o) =>
|
|
3125
|
+
(t, i, o) => g`
|
|
3126
3126
|
<color-legend
|
|
3127
3127
|
id="${t.id}"
|
|
3128
3128
|
width=${t.width ?? 325}
|
|
@@ -3138,7 +3138,7 @@ class Do extends se {
|
|
|
3138
3138
|
.marginRight=${8}
|
|
3139
3139
|
>
|
|
3140
3140
|
</color-legend>
|
|
3141
|
-
${i !== o.length - 1 ?
|
|
3141
|
+
${i !== o.length - 1 ? g`<div class="separator"></div>` : P}
|
|
3142
3142
|
`
|
|
3143
3143
|
)}
|
|
3144
3144
|
</div>
|
|
@@ -3148,7 +3148,7 @@ class Do extends se {
|
|
|
3148
3148
|
}
|
|
3149
3149
|
}
|
|
3150
3150
|
ye = new WeakMap(), or = new WeakMap(), nr = new WeakMap(), // Define static properties for the component
|
|
3151
|
-
|
|
3151
|
+
q(Do, "properties", {
|
|
3152
3152
|
unstyled: { type: Boolean },
|
|
3153
3153
|
noShadow: { type: Boolean },
|
|
3154
3154
|
layerLegend: { attribute: !1 },
|
|
@@ -3237,17 +3237,17 @@ class Lo extends se {
|
|
|
3237
3237
|
disable_collapse: !0,
|
|
3238
3238
|
disable_properties: !0
|
|
3239
3239
|
};
|
|
3240
|
-
return
|
|
3240
|
+
return g`
|
|
3241
3241
|
<style>
|
|
3242
3242
|
${$(this, ar)}
|
|
3243
3243
|
${!this.unstyled && $(this, lr)}
|
|
3244
3244
|
</style>
|
|
3245
3245
|
${I(
|
|
3246
3246
|
this.layerConfig,
|
|
3247
|
-
() =>
|
|
3247
|
+
() => g`
|
|
3248
3248
|
${I(
|
|
3249
3249
|
this.layerConfig.legend,
|
|
3250
|
-
() =>
|
|
3250
|
+
() => g`
|
|
3251
3251
|
<eox-layercontrol-layer-legend
|
|
3252
3252
|
.noShadow=${!0}
|
|
3253
3253
|
.unstyled=${this.unstyled}
|
|
@@ -3294,7 +3294,7 @@ ti = function(t) {
|
|
|
3294
3294
|
})
|
|
3295
3295
|
), this.requestUpdate();
|
|
3296
3296
|
}, ar = new WeakMap(), lr = new WeakMap(), // Define static properties for the component
|
|
3297
|
-
|
|
3297
|
+
q(Lo, "properties", {
|
|
3298
3298
|
layer: { attribute: !1 },
|
|
3299
3299
|
unstyled: { type: Boolean },
|
|
3300
3300
|
noShadow: { type: Boolean },
|
|
@@ -3304,7 +3304,7 @@ customElements.define(
|
|
|
3304
3304
|
"eox-layercontrol-layerconfig",
|
|
3305
3305
|
Lo
|
|
3306
3306
|
);
|
|
3307
|
-
var sr,
|
|
3307
|
+
var sr, Ro, cr, dr;
|
|
3308
3308
|
class Po extends se {
|
|
3309
3309
|
constructor() {
|
|
3310
3310
|
super();
|
|
@@ -3325,14 +3325,14 @@ class Po extends se {
|
|
|
3325
3325
|
render() {
|
|
3326
3326
|
return customElements.get("eox-timecontrol") || console.error(
|
|
3327
3327
|
"Please import @eox/timecontrol in order to use layerDatetime"
|
|
3328
|
-
),
|
|
3328
|
+
), g`
|
|
3329
3329
|
<style>
|
|
3330
3330
|
${$(this, cr)}
|
|
3331
3331
|
${!this.unstyled && $(this, dr)}
|
|
3332
3332
|
</style>
|
|
3333
3333
|
${I(
|
|
3334
3334
|
this.layerDatetime,
|
|
3335
|
-
() =>
|
|
3335
|
+
() => g`
|
|
3336
3336
|
<!-- Render a Timecontrol for layer date time -->
|
|
3337
3337
|
<eox-timecontrol
|
|
3338
3338
|
?unstyled=${this.unstyled}
|
|
@@ -3345,7 +3345,7 @@ class Po extends se {
|
|
|
3345
3345
|
.controlProperty=${void 0}
|
|
3346
3346
|
current-step=${this.layerDatetime.currentStep}
|
|
3347
3347
|
.displayFormat=${this.layerDatetime.displayFormat}
|
|
3348
|
-
@stepchange=${B(this, sr,
|
|
3348
|
+
@stepchange=${B(this, sr, Ro)}
|
|
3349
3349
|
></eox-timecontrol>
|
|
3350
3350
|
`
|
|
3351
3351
|
)}
|
|
@@ -3358,7 +3358,7 @@ sr = new WeakSet(), /**
|
|
|
3358
3358
|
*
|
|
3359
3359
|
* @param {CustomEvent<{currentStep:string|number}>} evt
|
|
3360
3360
|
**/
|
|
3361
|
-
|
|
3361
|
+
Ro = function(t) {
|
|
3362
3362
|
this.dispatchEvent(
|
|
3363
3363
|
new CustomEvent("datetime:updated", {
|
|
3364
3364
|
bubbles: !0,
|
|
@@ -3369,7 +3369,7 @@ Ho = function(t) {
|
|
|
3369
3369
|
})
|
|
3370
3370
|
), this.layerDatetime.currentStep = t.detail.currentStep, this.requestUpdate();
|
|
3371
3371
|
}, cr = new WeakMap(), dr = new WeakMap(), // Define static properties for the component
|
|
3372
|
-
|
|
3372
|
+
q(Po, "properties", {
|
|
3373
3373
|
unstyled: { type: Boolean },
|
|
3374
3374
|
noShadow: { type: Boolean },
|
|
3375
3375
|
layerDatetime: { attribute: !1 },
|
|
@@ -3380,7 +3380,7 @@ customElements.define(
|
|
|
3380
3380
|
Po
|
|
3381
3381
|
);
|
|
3382
3382
|
var Pt, ur, pr;
|
|
3383
|
-
class
|
|
3383
|
+
class Ho extends se {
|
|
3384
3384
|
constructor() {
|
|
3385
3385
|
super();
|
|
3386
3386
|
/** @param {number} index */
|
|
@@ -3456,7 +3456,7 @@ class Oo extends se {
|
|
|
3456
3456
|
*/
|
|
3457
3457
|
render() {
|
|
3458
3458
|
const t = this.tabs, i = this.actions, o = i.length + t.length > 1;
|
|
3459
|
-
return
|
|
3459
|
+
return g`
|
|
3460
3460
|
<style>
|
|
3461
3461
|
${$(this, ur)}
|
|
3462
3462
|
${!this.unstyled && $(this, pr)}
|
|
@@ -3465,16 +3465,16 @@ class Oo extends se {
|
|
|
3465
3465
|
<!-- Navigation for tabs and actions -->
|
|
3466
3466
|
${I(
|
|
3467
3467
|
o,
|
|
3468
|
-
() =>
|
|
3468
|
+
() => g`
|
|
3469
3469
|
<nav>
|
|
3470
3470
|
${I(
|
|
3471
3471
|
!this.toolsAsList,
|
|
3472
|
-
() =>
|
|
3472
|
+
() => g`
|
|
3473
3473
|
<div>
|
|
3474
3474
|
<!-- Labels for tabs -->
|
|
3475
3475
|
${Wt(
|
|
3476
3476
|
t,
|
|
3477
|
-
(n, a) =>
|
|
3477
|
+
(n, a) => g`
|
|
3478
3478
|
<label
|
|
3479
3479
|
class=${$(this, Pt).call(this, a)}
|
|
3480
3480
|
@click=${() => this.selectedTab = a}
|
|
@@ -3489,7 +3489,7 @@ class Oo extends se {
|
|
|
3489
3489
|
<!-- Icons for actions -->
|
|
3490
3490
|
${Wt(
|
|
3491
3491
|
i,
|
|
3492
|
-
(n) =>
|
|
3492
|
+
(n) => g`
|
|
3493
3493
|
<span>
|
|
3494
3494
|
<!-- Customizable icon for each action -->
|
|
3495
3495
|
<slot name=${`${n}-icon`}>${n}</slot>
|
|
@@ -3509,10 +3509,10 @@ class Oo extends se {
|
|
|
3509
3509
|
<!-- Content for each tab -->
|
|
3510
3510
|
${Wt(
|
|
3511
3511
|
t,
|
|
3512
|
-
(n, a) =>
|
|
3512
|
+
(n, a) => g`
|
|
3513
3513
|
${I(
|
|
3514
3514
|
this.toolsAsList,
|
|
3515
|
-
() =>
|
|
3515
|
+
() => g`
|
|
3516
3516
|
<label>
|
|
3517
3517
|
<!-- Customizable icon for each tab -->
|
|
3518
3518
|
<slot name=${`${n}-icon`}>${n}</slot>
|
|
@@ -3526,7 +3526,7 @@ class Oo extends se {
|
|
|
3526
3526
|
</div>
|
|
3527
3527
|
${I(
|
|
3528
3528
|
this.toolsAsList && a < t.length - 1,
|
|
3529
|
-
() =>
|
|
3529
|
+
() => g`<hr class="small" />`
|
|
3530
3530
|
)}
|
|
3531
3531
|
`
|
|
3532
3532
|
)}
|
|
@@ -3536,7 +3536,7 @@ class Oo extends se {
|
|
|
3536
3536
|
}
|
|
3537
3537
|
}
|
|
3538
3538
|
Pt = new WeakMap(), ur = new WeakMap(), pr = new WeakMap(), // Define static properties for the component
|
|
3539
|
-
|
|
3539
|
+
q(Ho, "properties", {
|
|
3540
3540
|
actions: { attribute: !1 },
|
|
3541
3541
|
selectedTab: { state: !0 },
|
|
3542
3542
|
tabs: { attribute: !1 },
|
|
@@ -3544,15 +3544,15 @@ F(Oo, "properties", {
|
|
|
3544
3544
|
noShadow: { type: Boolean },
|
|
3545
3545
|
toolsAsList: { type: Boolean }
|
|
3546
3546
|
});
|
|
3547
|
-
customElements.define("eox-layercontrol-tools-items",
|
|
3547
|
+
customElements.define("eox-layercontrol-tools-items", Ho);
|
|
3548
3548
|
var mr, hr;
|
|
3549
|
-
class
|
|
3549
|
+
class Oo extends se {
|
|
3550
3550
|
constructor() {
|
|
3551
3551
|
super();
|
|
3552
3552
|
// Initializes '_removeButton' invoking 'removeButton' function with 'this' context.
|
|
3553
|
-
|
|
3553
|
+
q(this, "_removeButton", (t) => zo(this, t));
|
|
3554
3554
|
// Initializes '_sortButton' invoking 'sortButton' function with 'unstyled' property as a parameter.
|
|
3555
|
-
|
|
3555
|
+
q(this, "_sortButton", (t) => Ao(this, t, this.unstyled));
|
|
3556
3556
|
/**
|
|
3557
3557
|
* Initializes '_button' as a function accepting 'tool' parameter to generate a Button.
|
|
3558
3558
|
* Uses 'this.unstyled' as a context parameter for Button generation.
|
|
@@ -3560,10 +3560,10 @@ class Ro extends se {
|
|
|
3560
3560
|
* @param {string} tool - Tool parameter for Button generation.
|
|
3561
3561
|
* @returns {import("lit").HTMLTemplateResult} - The generated Button element.
|
|
3562
3562
|
*/
|
|
3563
|
-
|
|
3564
|
-
|
|
3563
|
+
q(this, "_button", (t, i) => rl(t, i, this.unstyled));
|
|
3564
|
+
q(this, "_getDefaultTools", (t) => {
|
|
3565
3565
|
var i, o;
|
|
3566
|
-
return
|
|
3566
|
+
return g`
|
|
3567
3567
|
<div slot="info-content">
|
|
3568
3568
|
${il(this.layer.get("description"))}
|
|
3569
3569
|
</div>
|
|
@@ -3588,7 +3588,7 @@ class Ro extends se {
|
|
|
3588
3588
|
<!-- Layer configuration -->
|
|
3589
3589
|
${I(
|
|
3590
3590
|
this.layer.get("layerConfig"),
|
|
3591
|
-
() =>
|
|
3591
|
+
() => g`
|
|
3592
3592
|
<eox-layercontrol-layerconfig
|
|
3593
3593
|
slot="config-content"
|
|
3594
3594
|
.layer=${this.layer}
|
|
@@ -3604,7 +3604,7 @@ class Ro extends se {
|
|
|
3604
3604
|
<!-- Layer datetime -->
|
|
3605
3605
|
${I(
|
|
3606
3606
|
this.layer.get("layerDatetime"),
|
|
3607
|
-
() =>
|
|
3607
|
+
() => g`
|
|
3608
3608
|
<eox-layercontrol-layer-datetime
|
|
3609
3609
|
slot="datetime-content"
|
|
3610
3610
|
.noShadow=${!0}
|
|
@@ -3620,7 +3620,7 @@ class Ro extends se {
|
|
|
3620
3620
|
<!-- Layer legend -->
|
|
3621
3621
|
${I(
|
|
3622
3622
|
this.layer.get("layerLegend"),
|
|
3623
|
-
() =>
|
|
3623
|
+
() => g`
|
|
3624
3624
|
<eox-layercontrol-layer-legend
|
|
3625
3625
|
slot="legend-content"
|
|
3626
3626
|
.noShadow=${!0}
|
|
@@ -3703,17 +3703,17 @@ class Ro extends se {
|
|
|
3703
3703
|
}
|
|
3704
3704
|
render() {
|
|
3705
3705
|
const t = $o(this.tools, this.layer), i = So(this.tools, this.layer), o = t == null ? void 0 : t.length, n = i == null ? void 0 : i.length;
|
|
3706
|
-
return
|
|
3706
|
+
return g`
|
|
3707
3707
|
<style>
|
|
3708
3708
|
${$(this, mr)}
|
|
3709
3709
|
${!this.unstyled && $(this, hr)}
|
|
3710
3710
|
</style>
|
|
3711
3711
|
${I(
|
|
3712
3712
|
o + n > 0,
|
|
3713
|
-
() =>
|
|
3713
|
+
() => g`
|
|
3714
3714
|
${I(
|
|
3715
3715
|
!(o === 1 && n === 0),
|
|
3716
|
-
() =>
|
|
3716
|
+
() => g`
|
|
3717
3717
|
<details
|
|
3718
3718
|
class="tools"
|
|
3719
3719
|
open=${this.embedded === !1 ? !0 : this.layer.get("layerControlToolsExpand") || P}
|
|
@@ -3744,7 +3744,7 @@ class Ro extends se {
|
|
|
3744
3744
|
}
|
|
3745
3745
|
}
|
|
3746
3746
|
mr = new WeakMap(), hr = new WeakMap(), // Define static properties for the component
|
|
3747
|
-
|
|
3747
|
+
q(Oo, "properties", {
|
|
3748
3748
|
layer: { attribute: !1 },
|
|
3749
3749
|
tools: { attribute: !1 },
|
|
3750
3750
|
unstyled: { type: Boolean },
|
|
@@ -3754,7 +3754,7 @@ F(Ro, "properties", {
|
|
|
3754
3754
|
});
|
|
3755
3755
|
customElements.define(
|
|
3756
3756
|
"eox-layercontrol-layer-tools",
|
|
3757
|
-
|
|
3757
|
+
Oo
|
|
3758
3758
|
);
|
|
3759
3759
|
const al = (r) => {
|
|
3760
3760
|
const e = () => {
|
|
@@ -3793,7 +3793,7 @@ class Mo extends se {
|
|
|
3793
3793
|
*
|
|
3794
3794
|
* @type {Boolean}
|
|
3795
3795
|
*/
|
|
3796
|
-
|
|
3796
|
+
q(this, "currLayerVisibilityBasedOnZoom", !0);
|
|
3797
3797
|
T(this, fr, "");
|
|
3798
3798
|
T(this, gr, `
|
|
3799
3799
|
eox-layercontrol-layer {
|
|
@@ -3889,21 +3889,21 @@ class Mo extends se {
|
|
|
3889
3889
|
layer: this.layer,
|
|
3890
3890
|
tools: this.tools,
|
|
3891
3891
|
toolsAsList: this.toolsAsList
|
|
3892
|
-
}),
|
|
3892
|
+
}), g`
|
|
3893
3893
|
<style>
|
|
3894
3894
|
${$(this, fr)}
|
|
3895
3895
|
${!this.unstyled && $(this, gr)}
|
|
3896
3896
|
</style>
|
|
3897
3897
|
${I(
|
|
3898
3898
|
this.layer,
|
|
3899
|
-
() =>
|
|
3899
|
+
() => g`
|
|
3900
3900
|
<!-- Render the layer -->
|
|
3901
3901
|
<nav
|
|
3902
3902
|
class="layer ${n} ${i} ${o} responsive tiny-space"
|
|
3903
3903
|
>
|
|
3904
3904
|
${I(!this.unstyled, () => {
|
|
3905
3905
|
if (B(this, _e, nt).call(this, "color"))
|
|
3906
|
-
return
|
|
3906
|
+
return g`
|
|
3907
3907
|
<i class="small" style="color: ${B(this, _e, nt).call(this, "color")}">
|
|
3908
3908
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
3909
3909
|
<title>square-rounded</title>
|
|
@@ -3915,9 +3915,9 @@ class Mo extends se {
|
|
|
3915
3915
|
`;
|
|
3916
3916
|
switch (this.layerType) {
|
|
3917
3917
|
case "group":
|
|
3918
|
-
return
|
|
3918
|
+
return g` <i class="small"> </i> `;
|
|
3919
3919
|
case "draw":
|
|
3920
|
-
return
|
|
3920
|
+
return g`
|
|
3921
3921
|
<i class="small grey-text">
|
|
3922
3922
|
<svg
|
|
3923
3923
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -3931,7 +3931,7 @@ class Mo extends se {
|
|
|
3931
3931
|
</i>
|
|
3932
3932
|
`;
|
|
3933
3933
|
case "vector":
|
|
3934
|
-
return
|
|
3934
|
+
return g`
|
|
3935
3935
|
<i class="small grey-text">
|
|
3936
3936
|
<svg
|
|
3937
3937
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -3945,7 +3945,7 @@ class Mo extends se {
|
|
|
3945
3945
|
</i>
|
|
3946
3946
|
`;
|
|
3947
3947
|
case "raster":
|
|
3948
|
-
return
|
|
3948
|
+
return g`
|
|
3949
3949
|
<i class="small grey-text">
|
|
3950
3950
|
<svg
|
|
3951
3951
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -3959,7 +3959,7 @@ class Mo extends se {
|
|
|
3959
3959
|
</i>
|
|
3960
3960
|
`;
|
|
3961
3961
|
default:
|
|
3962
|
-
return
|
|
3962
|
+
return g` <i class="small grey-text"> </i> `;
|
|
3963
3963
|
}
|
|
3964
3964
|
})}
|
|
3965
3965
|
|
|
@@ -3972,12 +3972,12 @@ class Mo extends se {
|
|
|
3972
3972
|
|
|
3973
3973
|
${I(
|
|
3974
3974
|
s,
|
|
3975
|
-
() =>
|
|
3975
|
+
() => g`
|
|
3976
3976
|
<button
|
|
3977
3977
|
class="transparent square primary-text small action tools ${this.tools.length === 1 ? this.tools[0] : "dots"}"
|
|
3978
3978
|
@click=${() => {
|
|
3979
|
-
var h;
|
|
3980
|
-
const m = (h = this.renderRoot.querySelector("eox-layercontrol-layer-tools")) == null ? void 0 : h.querySelector("details");
|
|
3979
|
+
var h, f, v;
|
|
3980
|
+
const m = ((f = (h = this.renderRoot.querySelector("eox-layercontrol-layer-tools")) == null ? void 0 : h.shadowRoot) == null ? void 0 : f.querySelector("details")) || ((v = this.renderRoot.querySelector("eox-layercontrol-layer-tools")) == null ? void 0 : v.querySelector("details"));
|
|
3981
3981
|
m.open = !m.open;
|
|
3982
3982
|
}}
|
|
3983
3983
|
>
|
|
@@ -4030,9 +4030,9 @@ class Mo extends se {
|
|
|
4030
4030
|
<!-- Render layer tools -->
|
|
4031
4031
|
${I(
|
|
4032
4032
|
s && !c,
|
|
4033
|
-
() =>
|
|
4033
|
+
() => g`
|
|
4034
4034
|
<eox-layercontrol-layer-tools
|
|
4035
|
-
.noShadow=${!
|
|
4035
|
+
.noShadow=${!1}
|
|
4036
4036
|
.layer=${this.layer}
|
|
4037
4037
|
.tools=${this.tools}
|
|
4038
4038
|
.unstyled=${this.unstyled}
|
|
@@ -4060,7 +4060,7 @@ nt = function(t) {
|
|
|
4060
4060
|
Vo = function(t) {
|
|
4061
4061
|
ll(t, this);
|
|
4062
4062
|
}, fr = new WeakMap(), gr = new WeakMap(), // Define static properties for the component
|
|
4063
|
-
|
|
4063
|
+
q(Mo, "properties", {
|
|
4064
4064
|
layer: { attribute: !1 },
|
|
4065
4065
|
layerType: { attribute: !1 },
|
|
4066
4066
|
map: { attribute: !1, state: !0 },
|
|
@@ -4120,14 +4120,14 @@ class Io extends se {
|
|
|
4120
4120
|
/** @type import("ol").Collection<import("ol/layer").Layer> */
|
|
4121
4121
|
this.group.getLayers()
|
|
4122
4122
|
)) == null ? void 0 : n.length;
|
|
4123
|
-
return
|
|
4123
|
+
return g`
|
|
4124
4124
|
<style>
|
|
4125
4125
|
${$(this, br)}
|
|
4126
4126
|
${!this.unstyled && $(this, vr)}
|
|
4127
4127
|
</style>
|
|
4128
4128
|
${I(
|
|
4129
4129
|
this.group,
|
|
4130
|
-
() =>
|
|
4130
|
+
() => g`
|
|
4131
4131
|
<!-- Render the details element with the layer control -->
|
|
4132
4132
|
<details
|
|
4133
4133
|
class="max-width"
|
|
@@ -4137,7 +4137,7 @@ class Io extends se {
|
|
|
4137
4137
|
<summary class="square">
|
|
4138
4138
|
${I(
|
|
4139
4139
|
i > 0,
|
|
4140
|
-
() =>
|
|
4140
|
+
() => g`
|
|
4141
4141
|
<!-- Open/close arrow -->
|
|
4142
4142
|
<div class="arrow-container">
|
|
4143
4143
|
<i class="small">
|
|
@@ -4190,7 +4190,7 @@ class Io extends se {
|
|
|
4190
4190
|
}
|
|
4191
4191
|
}
|
|
4192
4192
|
br = new WeakMap(), vr = new WeakMap(), // Define static properties for the component
|
|
4193
|
-
|
|
4193
|
+
q(Io, "properties", {
|
|
4194
4194
|
group: { attribute: !1 },
|
|
4195
4195
|
idProperty: { attribute: "id-property" },
|
|
4196
4196
|
map: { attribute: !1, state: !0 },
|
|
@@ -4209,49 +4209,49 @@ var Zr, Ui;
|
|
|
4209
4209
|
function sl() {
|
|
4210
4210
|
if (Ui) return Zr;
|
|
4211
4211
|
Ui = 1;
|
|
4212
|
-
var r = "Expected a function", e = NaN, t = "[object Symbol]", i = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, n = /^0b[01]+$/i, a = /^0o[0-7]+$/i, l = parseInt, s = typeof Be == "object" && Be && Be.Object === Object && Be, c = typeof self == "object" && self && self.Object === Object && self, u = s || c || Function("return this")(), d = Object.prototype, m = d.toString, h = Math.max,
|
|
4212
|
+
var r = "Expected a function", e = NaN, t = "[object Symbol]", i = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, n = /^0b[01]+$/i, a = /^0o[0-7]+$/i, l = parseInt, s = typeof Be == "object" && Be && Be.Object === Object && Be, c = typeof self == "object" && self && self.Object === Object && self, u = s || c || Function("return this")(), d = Object.prototype, m = d.toString, h = Math.max, f = Math.min, v = function() {
|
|
4213
4213
|
return u.Date.now();
|
|
4214
4214
|
};
|
|
4215
|
-
function
|
|
4216
|
-
var
|
|
4215
|
+
function O(_, b, z) {
|
|
4216
|
+
var R, D, Z, Y, M, L, X = 0, ce = !1, ee = !1, de = !0;
|
|
4217
4217
|
if (typeof _ != "function")
|
|
4218
4218
|
throw new TypeError(r);
|
|
4219
4219
|
b = K(b) || 0, J(z) && (ce = !!z.leading, ee = "maxWait" in z, Z = ee ? h(K(z.maxWait) || 0, b) : Z, de = "trailing" in z ? !!z.trailing : de);
|
|
4220
4220
|
function fe(N) {
|
|
4221
|
-
var
|
|
4222
|
-
return
|
|
4221
|
+
var H = R, ue = D;
|
|
4222
|
+
return R = D = void 0, X = N, Y = _.apply(ue, H), Y;
|
|
4223
4223
|
}
|
|
4224
|
-
function
|
|
4224
|
+
function qe(N) {
|
|
4225
4225
|
return X = N, M = setTimeout(ze, b), ce ? fe(N) : Y;
|
|
4226
4226
|
}
|
|
4227
|
-
function
|
|
4228
|
-
var
|
|
4229
|
-
return ee ?
|
|
4227
|
+
function Ot(N) {
|
|
4228
|
+
var H = N - L, ue = N - X, Re = b - H;
|
|
4229
|
+
return ee ? f(Re, Z - ue) : Re;
|
|
4230
4230
|
}
|
|
4231
|
-
function
|
|
4232
|
-
var
|
|
4233
|
-
return L === void 0 ||
|
|
4231
|
+
function Fe(N) {
|
|
4232
|
+
var H = N - L, ue = N - X;
|
|
4233
|
+
return L === void 0 || H >= b || H < 0 || ee && ue >= Z;
|
|
4234
4234
|
}
|
|
4235
4235
|
function ze() {
|
|
4236
|
-
var N =
|
|
4237
|
-
if (
|
|
4236
|
+
var N = v();
|
|
4237
|
+
if (Fe(N))
|
|
4238
4238
|
return Xe(N);
|
|
4239
|
-
M = setTimeout(ze,
|
|
4239
|
+
M = setTimeout(ze, Ot(N));
|
|
4240
4240
|
}
|
|
4241
4241
|
function Xe(N) {
|
|
4242
|
-
return M = void 0, de &&
|
|
4242
|
+
return M = void 0, de && R ? fe(N) : (R = D = void 0, Y);
|
|
4243
4243
|
}
|
|
4244
4244
|
function Mt() {
|
|
4245
|
-
M !== void 0 && clearTimeout(M), X = 0,
|
|
4245
|
+
M !== void 0 && clearTimeout(M), X = 0, R = L = D = M = void 0;
|
|
4246
4246
|
}
|
|
4247
4247
|
function Er() {
|
|
4248
|
-
return M === void 0 ? Y : Xe(
|
|
4248
|
+
return M === void 0 ? Y : Xe(v());
|
|
4249
4249
|
}
|
|
4250
4250
|
function mt() {
|
|
4251
|
-
var N =
|
|
4252
|
-
if (
|
|
4251
|
+
var N = v(), H = Fe(N);
|
|
4252
|
+
if (R = arguments, D = this, L = N, H) {
|
|
4253
4253
|
if (M === void 0)
|
|
4254
|
-
return
|
|
4254
|
+
return qe(L);
|
|
4255
4255
|
if (ee)
|
|
4256
4256
|
return M = setTimeout(ze, b), fe(L);
|
|
4257
4257
|
}
|
|
@@ -4284,7 +4284,7 @@ function sl() {
|
|
|
4284
4284
|
var z = n.test(_);
|
|
4285
4285
|
return z || a.test(_) ? l(_.slice(2), z ? 2 : 8) : o.test(_) ? e : +_;
|
|
4286
4286
|
}
|
|
4287
|
-
return Zr =
|
|
4287
|
+
return Zr = O, Zr;
|
|
4288
4288
|
}
|
|
4289
4289
|
var cl = sl();
|
|
4290
4290
|
const dl = /* @__PURE__ */ To(cl), ul = (r) => {
|
|
@@ -4362,7 +4362,7 @@ class No extends se {
|
|
|
4362
4362
|
*/
|
|
4363
4363
|
render() {
|
|
4364
4364
|
const t = this.layers ? Eo(this.layers).reverse() : [];
|
|
4365
|
-
return
|
|
4365
|
+
return g`
|
|
4366
4366
|
<style>
|
|
4367
4367
|
${$(this, yr)}
|
|
4368
4368
|
${!this.unstyled && $(this, xr)}
|
|
@@ -4370,11 +4370,11 @@ class No extends se {
|
|
|
4370
4370
|
<ul class="list no-space">
|
|
4371
4371
|
${I(
|
|
4372
4372
|
this.layers,
|
|
4373
|
-
() =>
|
|
4373
|
+
() => g`
|
|
4374
4374
|
${Sn(
|
|
4375
4375
|
t,
|
|
4376
4376
|
(i) => i,
|
|
4377
|
-
(i) =>
|
|
4377
|
+
(i) => g`
|
|
4378
4378
|
<li
|
|
4379
4379
|
data-layer="${i.get(this.idProperty)}"
|
|
4380
4380
|
data-type="${Ii(i, this.map)}"
|
|
@@ -4382,7 +4382,7 @@ class No extends se {
|
|
|
4382
4382
|
>
|
|
4383
4383
|
${/** Checks if the layer is a group or individual layer and renders accordingly */
|
|
4384
4384
|
/** @type {import("ol/layer").Group} */
|
|
4385
|
-
i.getLayers ?
|
|
4385
|
+
i.getLayers ? g`
|
|
4386
4386
|
<eox-layercontrol-layer-group
|
|
4387
4387
|
.noShadow=${!0}
|
|
4388
4388
|
.group=${i}
|
|
@@ -4396,7 +4396,7 @@ class No extends se {
|
|
|
4396
4396
|
@changed=${() => this.requestUpdate()}
|
|
4397
4397
|
>
|
|
4398
4398
|
</eox-layercontrol-layer-group>
|
|
4399
|
-
` :
|
|
4399
|
+
` : g`
|
|
4400
4400
|
<eox-layercontrol-layer
|
|
4401
4401
|
.noShadow=${!0}
|
|
4402
4402
|
.layer=${i}
|
|
@@ -4420,7 +4420,7 @@ class No extends se {
|
|
|
4420
4420
|
}
|
|
4421
4421
|
}
|
|
4422
4422
|
yr = new WeakMap(), xr = new WeakMap(), // Define static properties for the component
|
|
4423
|
-
|
|
4423
|
+
q(No, "properties", {
|
|
4424
4424
|
idProperty: { attribute: "id-property" },
|
|
4425
4425
|
layers: { attribute: !1 },
|
|
4426
4426
|
map: { attribute: !1, state: !0 },
|
|
@@ -4478,7 +4478,7 @@ class Bo extends se {
|
|
|
4478
4478
|
"layerControlOptional",
|
|
4479
4479
|
!0
|
|
4480
4480
|
);
|
|
4481
|
-
return
|
|
4481
|
+
return g`
|
|
4482
4482
|
<nav class="bottom-padding large-padding">
|
|
4483
4483
|
<div class="field suffix border small max">
|
|
4484
4484
|
<!-- Dropdown select element -->
|
|
@@ -4494,7 +4494,7 @@ class Bo extends se {
|
|
|
4494
4494
|
<!-- Mapping through filtered layers list to generate dropdown options -->
|
|
4495
4495
|
${t.map((i) => {
|
|
4496
4496
|
const o = i.get(this.idProperty) || i.ol_uid, n = i.get(this.titleProperty), a = `layer ${i.get(this.idProperty)}`;
|
|
4497
|
-
return
|
|
4497
|
+
return g` <option value="${o}">${n || a}</option> `;
|
|
4498
4498
|
})}
|
|
4499
4499
|
</select>
|
|
4500
4500
|
|
|
@@ -4515,7 +4515,7 @@ kr = new WeakSet(), /**
|
|
|
4515
4515
|
Uo = function() {
|
|
4516
4516
|
pl(this);
|
|
4517
4517
|
}, // Define static properties for the component
|
|
4518
|
-
|
|
4518
|
+
q(Bo, "properties", {
|
|
4519
4519
|
idProperty: { attribute: "id-property" },
|
|
4520
4520
|
layers: { attribute: !1 },
|
|
4521
4521
|
titleProperty: { attribute: "title-property", type: String },
|
|
@@ -4574,7 +4574,7 @@ const gl = (r, e) => {
|
|
|
4574
4574
|
}, bl = (r, e) => {
|
|
4575
4575
|
e.open = r || null, e.urlInput = null, e.jsonInput = null, e.wmsCapabilities = null, e.requestUpdate();
|
|
4576
4576
|
};
|
|
4577
|
-
var re,
|
|
4577
|
+
var re, qo, Fo, ri, Xo, Zo, Gt, wr;
|
|
4578
4578
|
class jo extends se {
|
|
4579
4579
|
constructor() {
|
|
4580
4580
|
super();
|
|
@@ -4584,31 +4584,31 @@ class jo extends se {
|
|
|
4584
4584
|
*
|
|
4585
4585
|
* @type {String}
|
|
4586
4586
|
*/
|
|
4587
|
-
|
|
4587
|
+
q(this, "urlInput", null);
|
|
4588
4588
|
/**
|
|
4589
4589
|
* State for JSON Textarea - For EOxMap JSON
|
|
4590
4590
|
*
|
|
4591
4591
|
* @type {String}
|
|
4592
4592
|
*/
|
|
4593
|
-
|
|
4593
|
+
q(this, "jsonInput", null);
|
|
4594
4594
|
/**
|
|
4595
4595
|
* State for add layer - consist of url/json
|
|
4596
4596
|
*
|
|
4597
4597
|
* @type {"url" | "json" | null}
|
|
4598
4598
|
*/
|
|
4599
|
-
|
|
4599
|
+
q(this, "open", null);
|
|
4600
4600
|
/**
|
|
4601
4601
|
* Loader state when search is triggered
|
|
4602
4602
|
*
|
|
4603
4603
|
* @type {Boolean}
|
|
4604
4604
|
*/
|
|
4605
|
-
|
|
4605
|
+
q(this, "searchLoad", !1);
|
|
4606
4606
|
/**
|
|
4607
4607
|
* State for `WMS Capabilities JSON`
|
|
4608
4608
|
*
|
|
4609
4609
|
* @type {import("wms-capabilities").WMSCapabilitiesJSON}
|
|
4610
4610
|
*/
|
|
4611
|
-
|
|
4611
|
+
q(this, "wmsCapabilities", null);
|
|
4612
4612
|
T(this, wr, `
|
|
4613
4613
|
.eox-add-layer-main .open {
|
|
4614
4614
|
position: relative;
|
|
@@ -4636,24 +4636,24 @@ class jo extends se {
|
|
|
4636
4636
|
*/
|
|
4637
4637
|
render() {
|
|
4638
4638
|
const t = {
|
|
4639
|
-
add:
|
|
4639
|
+
add: g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
4640
4640
|
<title>layers-plus</title>
|
|
4641
4641
|
<path
|
|
4642
4642
|
d="M17,14H19V17H22V19H19V22H17V19H14V17H17V14M11,16L2,9L11,2L20,9L11,16M11,18.54L12,17.75V18C12,18.71 12.12,19.39 12.35,20L11,21.07L2,14.07L3.62,12.81L11,18.54Z"
|
|
4643
4643
|
/>
|
|
4644
4644
|
</svg>`,
|
|
4645
|
-
plus:
|
|
4645
|
+
plus: g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
4646
4646
|
<title>plus</title>
|
|
4647
4647
|
<path d="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z" />
|
|
4648
4648
|
</svg>`,
|
|
4649
|
-
search:
|
|
4649
|
+
search: g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
4650
4650
|
<title>magnify</title>
|
|
4651
4651
|
<path
|
|
4652
4652
|
d="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"
|
|
4653
4653
|
/>
|
|
4654
4654
|
</svg>`
|
|
4655
4655
|
}, i = this.open ? "open" : "close", o = this.open === "url", n = this.open === "json", a = !va(this.urlInput) || this.searchLoad ? !0 : P;
|
|
4656
|
-
return
|
|
4656
|
+
return g`
|
|
4657
4657
|
<style>
|
|
4658
4658
|
${$(this, wr)}
|
|
4659
4659
|
</style>
|
|
@@ -4684,11 +4684,11 @@ class jo extends se {
|
|
|
4684
4684
|
class="add-icon transparent square primary-text small"
|
|
4685
4685
|
@click=${() => B(this, re, Gt).call(this, this.open ? null : "url")}
|
|
4686
4686
|
>
|
|
4687
|
-
${this.unstyled ? "Add Layer" :
|
|
4687
|
+
${this.unstyled ? "Add Layer" : g`<i class="small primary-text">${t.add}</i>`}
|
|
4688
4688
|
</button>
|
|
4689
4689
|
</nav>
|
|
4690
4690
|
<div class="eox-add ${i}" style="padding: 15px 0">
|
|
4691
|
-
${o ?
|
|
4691
|
+
${o ? g`
|
|
4692
4692
|
<nav>
|
|
4693
4693
|
<!-- Input field for URL -->
|
|
4694
4694
|
<div class="eox-add-layer-col field border small responsive">
|
|
@@ -4697,25 +4697,25 @@ class jo extends se {
|
|
|
4697
4697
|
class="add-url"
|
|
4698
4698
|
placeholder="Add URL (WMS/XYZ)"
|
|
4699
4699
|
.value="${this.urlInput}"
|
|
4700
|
-
@input=${B(this, re,
|
|
4700
|
+
@input=${B(this, re, qo)}
|
|
4701
4701
|
/>
|
|
4702
4702
|
</div>
|
|
4703
4703
|
<!-- Search button for URL -->
|
|
4704
4704
|
<button
|
|
4705
4705
|
class="search-icon"
|
|
4706
4706
|
disabled=${a}
|
|
4707
|
-
@click=${B(this, re,
|
|
4707
|
+
@click=${B(this, re, Fo)}
|
|
4708
4708
|
>
|
|
4709
|
-
${this.unstyled ? "Search" :
|
|
4709
|
+
${this.unstyled ? "Search" : g`<i class="small">${t.search}</i>`}
|
|
4710
4710
|
</button>
|
|
4711
4711
|
</nav>
|
|
4712
4712
|
|
|
4713
4713
|
<!-- Display layers for WMS capabilities -->
|
|
4714
|
-
${this.wmsCapabilities ?
|
|
4714
|
+
${this.wmsCapabilities ? g`<ul class="search-lists">
|
|
4715
4715
|
${this.wmsCapabilities.Capability.Layer.Layer.map(
|
|
4716
4716
|
(l) => {
|
|
4717
4717
|
const s = l.Name;
|
|
4718
|
-
return
|
|
4718
|
+
return g`
|
|
4719
4719
|
<li class="search-list">
|
|
4720
4720
|
${s}
|
|
4721
4721
|
<!-- Button to add layer -->
|
|
@@ -4733,7 +4733,7 @@ class jo extends se {
|
|
|
4733
4733
|
}
|
|
4734
4734
|
)}
|
|
4735
4735
|
</ul>` : P}
|
|
4736
|
-
` :
|
|
4736
|
+
` : g`
|
|
4737
4737
|
<!-- Textarea for JSON input -->
|
|
4738
4738
|
<div class="field textarea small border no-margin">
|
|
4739
4739
|
<textarea
|
|
@@ -4752,7 +4752,7 @@ class jo extends se {
|
|
|
4752
4752
|
disabled=${ya(this.jsonInput) ? P : !0}
|
|
4753
4753
|
@click=${B(this, re, Xo)}
|
|
4754
4754
|
>
|
|
4755
|
-
${this.unstyled ? "Add JSON" :
|
|
4755
|
+
${this.unstyled ? "Add JSON" : g`<i class="small">${t.plus}</i>`}
|
|
4756
4756
|
</button>
|
|
4757
4757
|
`}
|
|
4758
4758
|
</div>
|
|
@@ -4766,9 +4766,9 @@ re = new WeakSet(), /**
|
|
|
4766
4766
|
*
|
|
4767
4767
|
* @param {Event} evt - The input change event triggering the method.
|
|
4768
4768
|
*/
|
|
4769
|
-
|
|
4769
|
+
qo = function(t) {
|
|
4770
4770
|
hl(t, this);
|
|
4771
|
-
},
|
|
4771
|
+
}, Fo = async function() {
|
|
4772
4772
|
const t = await fl(this);
|
|
4773
4773
|
t && B(this, re, ri).call(this, t);
|
|
4774
4774
|
}, /**
|
|
@@ -4798,7 +4798,7 @@ Zo = function(t) {
|
|
|
4798
4798
|
Gt = function(t) {
|
|
4799
4799
|
bl(t, this);
|
|
4800
4800
|
}, wr = new WeakMap(), // Define static properties for the component
|
|
4801
|
-
|
|
4801
|
+
q(jo, "properties", {
|
|
4802
4802
|
eoxMap: { attribute: !1, state: !0 },
|
|
4803
4803
|
unstyled: { type: Boolean },
|
|
4804
4804
|
noShadow: { type: Boolean }
|
|
@@ -4851,7 +4851,7 @@ const vl = (r, e) => {
|
|
|
4851
4851
|
let e;
|
|
4852
4852
|
return typeof r == "string" ? e = /** @type {HTMLElement} */
|
|
4853
4853
|
document.querySelector(r) : e = r, e;
|
|
4854
|
-
},
|
|
4854
|
+
}, qi = (r) => {
|
|
4855
4855
|
const e = xl(r.for);
|
|
4856
4856
|
return e && /** @type {import("@eox/map").EOxMap} */
|
|
4857
4857
|
e.map !== r.map && (r.map = /** @type {import("@eox/map").EOxMap} */
|
|
@@ -4920,10 +4920,10 @@ class Yo extends se {
|
|
|
4920
4920
|
* Updated #eoxMap after first update.
|
|
4921
4921
|
*/
|
|
4922
4922
|
firstUpdated() {
|
|
4923
|
-
this.eoxMap =
|
|
4923
|
+
this.eoxMap = qi(this);
|
|
4924
4924
|
}
|
|
4925
4925
|
updated(t) {
|
|
4926
|
-
t.has("for") && (this.eoxMap =
|
|
4926
|
+
t.has("for") && (this.eoxMap = qi(this));
|
|
4927
4927
|
}
|
|
4928
4928
|
get eoxMap() {
|
|
4929
4929
|
return $(this, Ie);
|
|
@@ -4935,7 +4935,7 @@ class Yo extends se {
|
|
|
4935
4935
|
render() {
|
|
4936
4936
|
var o, n, a;
|
|
4937
4937
|
const t = (o = this.map) == null ? void 0 : o.getLayers().getArray(), i = t && ((n = hi(t, "layerControlOptional", !0)) == null ? void 0 : n.length) > 0;
|
|
4938
|
-
return
|
|
4938
|
+
return g`
|
|
4939
4939
|
<style>
|
|
4940
4940
|
${!this.unstyled && $(this, _r)}
|
|
4941
4941
|
${this.styleOverride}
|
|
@@ -4950,7 +4950,7 @@ class Yo extends se {
|
|
|
4950
4950
|
<!-- Conditional rendering of add layers component -->
|
|
4951
4951
|
${I(
|
|
4952
4952
|
this.addExternalLayers && ((a = $(this, Ie)) == null ? void 0 : a.addOrUpdateLayer),
|
|
4953
|
-
() =>
|
|
4953
|
+
() => g`
|
|
4954
4954
|
<eox-layercontrol-add-layers
|
|
4955
4955
|
.noShadow=${!0}
|
|
4956
4956
|
.eoxMap=${$(this, Ie)}
|
|
@@ -4962,7 +4962,7 @@ class Yo extends se {
|
|
|
4962
4962
|
<!-- Conditional rendering of layer list component -->
|
|
4963
4963
|
${I(
|
|
4964
4964
|
this.map,
|
|
4965
|
-
() =>
|
|
4965
|
+
() => g`
|
|
4966
4966
|
<eox-layercontrol-layer-list
|
|
4967
4967
|
.noShadow=${!0}
|
|
4968
4968
|
class="layers"
|
|
@@ -4984,7 +4984,7 @@ class Yo extends se {
|
|
|
4984
4984
|
<!-- Conditional rendering of optional list component -->
|
|
4985
4985
|
${I(
|
|
4986
4986
|
i,
|
|
4987
|
-
() =>
|
|
4987
|
+
() => g`
|
|
4988
4988
|
<eox-layercontrol-optional-list
|
|
4989
4989
|
.noShadow=${!0}
|
|
4990
4990
|
.idProperty=${this.idProperty}
|
|
@@ -5021,7 +5021,7 @@ Jo = function(t) {
|
|
|
5021
5021
|
new CustomEvent("layerConfig:change", { detail: t.detail })
|
|
5022
5022
|
);
|
|
5023
5023
|
}, _r = new WeakMap(), // Define static properties for the component
|
|
5024
|
-
|
|
5024
|
+
q(Yo, "properties", {
|
|
5025
5025
|
for: { type: String },
|
|
5026
5026
|
idProperty: { attribute: "id-property" },
|
|
5027
5027
|
map: { attribute: !1, state: !0 },
|