@eox/layercontrol 0.6.6 → 0.6.7
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 +341 -309
- package/dist/eox-layercontrol.umd.cjs +85 -49
- package/package.json +2 -2
- package/test/_mockMap.ts +22 -6
- package/test/general.cy.ts +1 -43
- package/test/layersUpdate.cy.ts +171 -0
package/dist/eox-layercontrol.js
CHANGED
|
@@ -69,7 +69,7 @@ const ce = window, Qe = ce.trustedTypes, en = Qe ? Qe.emptyScript : "", Je = ce.
|
|
|
69
69
|
}
|
|
70
70
|
return e;
|
|
71
71
|
} }, _i = (i, t) => t !== i && (t == t || i == i), _e = { attribute: !0, type: String, converter: ke, reflect: !1, hasChanged: _i }, Ne = "finalized";
|
|
72
|
-
let
|
|
72
|
+
let xt = class extends HTMLElement {
|
|
73
73
|
constructor() {
|
|
74
74
|
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this.u();
|
|
75
75
|
}
|
|
@@ -248,38 +248,38 @@ let At = class extends HTMLElement {
|
|
|
248
248
|
firstUpdated(t) {
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
|
|
251
|
+
xt[Ne] = !0, xt.elementProperties = /* @__PURE__ */ new Map(), xt.elementStyles = [], xt.shadowRootOptions = { mode: "open" }, Je == null || Je({ ReactiveElement: xt }), ((be = ce.reactiveElementVersions) !== null && be !== void 0 ? be : ce.reactiveElementVersions = []).push("1.6.2");
|
|
252
252
|
/**
|
|
253
253
|
* @license
|
|
254
254
|
* Copyright 2017 Google LLC
|
|
255
255
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
256
256
|
*/
|
|
257
257
|
var Ee;
|
|
258
|
-
const
|
|
259
|
-
\f\r]`,
|
|
258
|
+
const ue = window, Dt = ue.trustedTypes, ti = Dt ? Dt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, he = "$lit$", tt = `lit$${(Math.random() + "").slice(9)}$`, Ye = "?" + tt, nn = `<${Ye}>`, bt = document, Xt = () => bt.createComment(""), Wt = (i) => i === null || typeof i != "object" && typeof i != "function", Ei = Array.isArray, wi = (i) => Ei(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", we = `[
|
|
259
|
+
\f\r]`, kt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ei = /-->/g, ii = />/g, ht = RegExp(`>|${we}(?:([^\\s"'>=/]+)(${we}*=${we}*(?:[^
|
|
260
260
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), ni = /'/g, ri = /"/g, xi = /^(?:script|style|textarea|title)$/i, rn = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), H = rn(1), W = Symbol.for("lit-noChange"), w = Symbol.for("lit-nothing"), oi = /* @__PURE__ */ new WeakMap(), yt = bt.createTreeWalker(bt, 129, null, !1), Ai = (i, t) => {
|
|
261
261
|
const e = i.length - 1, n = [];
|
|
262
|
-
let r, o = t === 2 ? "<svg>" : "", a =
|
|
262
|
+
let r, o = t === 2 ? "<svg>" : "", a = kt;
|
|
263
263
|
for (let l = 0; l < e; l++) {
|
|
264
264
|
const d = i[l];
|
|
265
265
|
let u, c, p = -1, g = 0;
|
|
266
266
|
for (; g < d.length && (a.lastIndex = g, c = a.exec(d), c !== null); )
|
|
267
|
-
g = a.lastIndex, a ===
|
|
268
|
-
const f = a ===
|
|
269
|
-
o += a ===
|
|
267
|
+
g = a.lastIndex, a === kt ? c[1] === "!--" ? a = ei : c[1] !== void 0 ? a = ii : c[2] !== void 0 ? (xi.test(c[2]) && (r = RegExp("</" + c[2], "g")), a = ht) : c[3] !== void 0 && (a = ht) : a === ht ? c[0] === ">" ? (a = r ?? kt, p = -1) : c[1] === void 0 ? p = -2 : (p = a.lastIndex - c[2].length, u = c[1], a = c[3] === void 0 ? ht : c[3] === '"' ? ri : ni) : a === ri || a === ni ? a = ht : a === ei || a === ii ? a = kt : (a = ht, r = void 0);
|
|
268
|
+
const f = a === ht && i[l + 1].startsWith("/>") ? " " : "";
|
|
269
|
+
o += a === kt ? d + nn : p >= 0 ? (n.push(u), d.slice(0, p) + he + d.slice(p) + tt + f) : d + tt + (p === -2 ? (n.push(void 0), l) : f);
|
|
270
270
|
}
|
|
271
271
|
const s = o + (i[e] || "<?>") + (t === 2 ? "</svg>" : "");
|
|
272
272
|
if (!Array.isArray(i) || !i.hasOwnProperty("raw"))
|
|
273
273
|
throw Error("invalid template strings array");
|
|
274
274
|
return [ti !== void 0 ? ti.createHTML(s) : s, n];
|
|
275
275
|
};
|
|
276
|
-
class
|
|
276
|
+
class Gt {
|
|
277
277
|
constructor({ strings: t, _$litType$: e }, n) {
|
|
278
278
|
let r;
|
|
279
279
|
this.parts = [];
|
|
280
280
|
let o = 0, a = 0;
|
|
281
281
|
const s = t.length - 1, l = this.parts, [d, u] = Ai(t, e);
|
|
282
|
-
if (this.el =
|
|
282
|
+
if (this.el = Gt.createElement(d, n), yt.currentNode = this.el.content, e === 2) {
|
|
283
283
|
const c = this.el.content, p = c.firstChild;
|
|
284
284
|
p.remove(), c.append(...p.childNodes);
|
|
285
285
|
}
|
|
@@ -288,11 +288,11 @@ class Zt {
|
|
|
288
288
|
if (r.hasAttributes()) {
|
|
289
289
|
const c = [];
|
|
290
290
|
for (const p of r.getAttributeNames())
|
|
291
|
-
if (p.endsWith(
|
|
291
|
+
if (p.endsWith(he) || p.startsWith(tt)) {
|
|
292
292
|
const g = u[a++];
|
|
293
293
|
if (c.push(p), g !== void 0) {
|
|
294
|
-
const f = r.getAttribute(g.toLowerCase() +
|
|
295
|
-
l.push({ type: 1, index: o, name: m[2], strings: f, ctor: m[1] === "." ? $i : m[1] === "?" ? Si : m[1] === "@" ? Di :
|
|
294
|
+
const f = r.getAttribute(g.toLowerCase() + he).split(tt), m = /([.?@])?(.*)/.exec(g);
|
|
295
|
+
l.push({ type: 1, index: o, name: m[2], strings: f, ctor: m[1] === "." ? $i : m[1] === "?" ? Si : m[1] === "@" ? Di : Zt });
|
|
296
296
|
} else
|
|
297
297
|
l.push({ type: 6, index: o });
|
|
298
298
|
}
|
|
@@ -302,10 +302,10 @@ class Zt {
|
|
|
302
302
|
if (xi.test(r.tagName)) {
|
|
303
303
|
const c = r.textContent.split(tt), p = c.length - 1;
|
|
304
304
|
if (p > 0) {
|
|
305
|
-
r.textContent =
|
|
305
|
+
r.textContent = Dt ? Dt.emptyScript : "";
|
|
306
306
|
for (let g = 0; g < p; g++)
|
|
307
|
-
r.append(c[g],
|
|
308
|
-
r.append(c[p],
|
|
307
|
+
r.append(c[g], Xt()), yt.nextNode(), l.push({ type: 2, index: ++o });
|
|
308
|
+
r.append(c[p], Xt());
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
} else if (r.nodeType === 8)
|
|
@@ -329,7 +329,7 @@ function _t(i, t, e = i, n) {
|
|
|
329
329
|
if (t === W)
|
|
330
330
|
return t;
|
|
331
331
|
let l = n !== void 0 ? (r = e._$Co) === null || r === void 0 ? void 0 : r[n] : e._$Cl;
|
|
332
|
-
const d =
|
|
332
|
+
const d = Wt(t) ? void 0 : t._$litDirective$;
|
|
333
333
|
return (l == null ? void 0 : l.constructor) !== d && ((o = l == null ? void 0 : l._$AO) === null || o === void 0 || o.call(l, !1), d === void 0 ? l = void 0 : (l = new d(i), l._$AT(i, e, n)), n !== void 0 ? ((a = (s = e)._$Co) !== null && a !== void 0 ? a : s._$Co = [])[n] = l : e._$Cl = l), l !== void 0 && (t = _t(i, l._$AS(i, t.values), l, n)), t;
|
|
334
334
|
}
|
|
335
335
|
class Ci {
|
|
@@ -350,7 +350,7 @@ class Ci {
|
|
|
350
350
|
for (; d !== void 0; ) {
|
|
351
351
|
if (s === d.index) {
|
|
352
352
|
let u;
|
|
353
|
-
d.type === 2 ? u = new
|
|
353
|
+
d.type === 2 ? u = new Ot(a, a.nextSibling, this, t) : d.type === 1 ? u = new d.ctor(a, d.name, d.strings, this, t) : d.type === 6 && (u = new Ti(a, this, t)), this._$AV.push(u), d = r[++l];
|
|
354
354
|
}
|
|
355
355
|
s !== (d == null ? void 0 : d.index) && (a = yt.nextNode(), s++);
|
|
356
356
|
}
|
|
@@ -362,7 +362,7 @@ class Ci {
|
|
|
362
362
|
n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, e), e += n.strings.length - 2) : n._$AI(t[e])), e++;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
class
|
|
365
|
+
class Ot {
|
|
366
366
|
constructor(t, e, n, r) {
|
|
367
367
|
var o;
|
|
368
368
|
this.type = 2, this._$AH = w, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = r, this._$Cp = (o = r == null ? void 0 : r.isConnected) === null || o === void 0 || o;
|
|
@@ -383,7 +383,7 @@ class Lt {
|
|
|
383
383
|
return this._$AB;
|
|
384
384
|
}
|
|
385
385
|
_$AI(t, e = this) {
|
|
386
|
-
t = _t(this, t, e),
|
|
386
|
+
t = _t(this, t, e), Wt(t) ? t === w || t == null || t === "" ? (this._$AH !== w && this._$AR(), this._$AH = w) : t !== this._$AH && t !== W && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : wi(t) ? this.T(t) : this._(t);
|
|
387
387
|
}
|
|
388
388
|
k(t) {
|
|
389
389
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -392,11 +392,11 @@ class Lt {
|
|
|
392
392
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
|
393
393
|
}
|
|
394
394
|
_(t) {
|
|
395
|
-
this._$AH !== w &&
|
|
395
|
+
this._$AH !== w && Wt(this._$AH) ? this._$AA.nextSibling.data = t : this.$(bt.createTextNode(t)), this._$AH = t;
|
|
396
396
|
}
|
|
397
397
|
g(t) {
|
|
398
398
|
var e;
|
|
399
|
-
const { values: n, _$litType$: r } = t, o = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el =
|
|
399
|
+
const { values: n, _$litType$: r } = t, o = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = Gt.createElement(r.h, this.options)), r);
|
|
400
400
|
if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === o)
|
|
401
401
|
this._$AH.v(n);
|
|
402
402
|
else {
|
|
@@ -406,14 +406,14 @@ class Lt {
|
|
|
406
406
|
}
|
|
407
407
|
_$AC(t) {
|
|
408
408
|
let e = oi.get(t.strings);
|
|
409
|
-
return e === void 0 && oi.set(t.strings, e = new
|
|
409
|
+
return e === void 0 && oi.set(t.strings, e = new Gt(t)), e;
|
|
410
410
|
}
|
|
411
411
|
T(t) {
|
|
412
412
|
Ei(this._$AH) || (this._$AH = [], this._$AR());
|
|
413
413
|
const e = this._$AH;
|
|
414
414
|
let n, r = 0;
|
|
415
415
|
for (const o of t)
|
|
416
|
-
r === e.length ? e.push(n = new
|
|
416
|
+
r === e.length ? e.push(n = new Ot(this.k(Xt()), this.k(Xt()), this, this.options)) : n = e[r], n._$AI(o), r++;
|
|
417
417
|
r < e.length && (this._$AR(n && n._$AB.nextSibling, r), e.length = r);
|
|
418
418
|
}
|
|
419
419
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -428,7 +428,7 @@ class Lt {
|
|
|
428
428
|
this._$AM === void 0 && (this._$Cp = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
class
|
|
431
|
+
class Zt {
|
|
432
432
|
constructor(t, e, n, r, o) {
|
|
433
433
|
this.type = 1, this._$AH = w, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = o, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = w;
|
|
434
434
|
}
|
|
@@ -442,12 +442,12 @@ class qt {
|
|
|
442
442
|
const o = this.strings;
|
|
443
443
|
let a = !1;
|
|
444
444
|
if (o === void 0)
|
|
445
|
-
t = _t(this, t, e, 0), a = !
|
|
445
|
+
t = _t(this, t, e, 0), a = !Wt(t) || t !== this._$AH && t !== W, a && (this._$AH = t);
|
|
446
446
|
else {
|
|
447
447
|
const s = t;
|
|
448
448
|
let l, d;
|
|
449
449
|
for (t = o[0], l = 0; l < o.length - 1; l++)
|
|
450
|
-
d = _t(this, s[n + l], e, l), d === W && (d = this._$AH[l]), a || (a = !
|
|
450
|
+
d = _t(this, s[n + l], e, l), d === W && (d = this._$AH[l]), a || (a = !Wt(d) || d !== this._$AH[l]), d === w ? t = w : t !== w && (t += (d ?? "") + o[l + 1]), this._$AH[l] = d;
|
|
451
451
|
}
|
|
452
452
|
a && !r && this.j(t);
|
|
453
453
|
}
|
|
@@ -455,7 +455,7 @@ class qt {
|
|
|
455
455
|
t === w ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
|
-
class $i extends
|
|
458
|
+
class $i extends Zt {
|
|
459
459
|
constructor() {
|
|
460
460
|
super(...arguments), this.type = 3;
|
|
461
461
|
}
|
|
@@ -463,8 +463,8 @@ class $i extends qt {
|
|
|
463
463
|
this.element[this.name] = t === w ? void 0 : t;
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
const on =
|
|
467
|
-
class Si extends
|
|
466
|
+
const on = Dt ? Dt.emptyScript : "";
|
|
467
|
+
class Si extends Zt {
|
|
468
468
|
constructor() {
|
|
469
469
|
super(...arguments), this.type = 4;
|
|
470
470
|
}
|
|
@@ -472,7 +472,7 @@ class Si extends qt {
|
|
|
472
472
|
t && t !== w ? this.element.setAttribute(this.name, on) : this.element.removeAttribute(this.name);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
class Di extends
|
|
475
|
+
class Di extends Zt {
|
|
476
476
|
constructor(t, e, n, r, o) {
|
|
477
477
|
super(t, e, n, r, o), this.type = 5;
|
|
478
478
|
}
|
|
@@ -499,15 +499,15 @@ class Ti {
|
|
|
499
499
|
_t(this, t);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
const an = { O:
|
|
503
|
-
ai == null || ai(
|
|
502
|
+
const an = { O: he, P: tt, A: Ye, C: 1, M: Ai, L: Ci, D: wi, R: _t, I: Ot, V: Zt, H: Si, N: Di, U: $i, F: Ti }, ai = ue.litHtmlPolyfillSupport;
|
|
503
|
+
ai == null || ai(Gt, Ot), ((Ee = ue.litHtmlVersions) !== null && Ee !== void 0 ? Ee : ue.litHtmlVersions = []).push("2.7.4");
|
|
504
504
|
const sn = (i, t, e) => {
|
|
505
505
|
var n, r;
|
|
506
506
|
const o = (n = e == null ? void 0 : e.renderBefore) !== null && n !== void 0 ? n : t;
|
|
507
507
|
let a = o._$litPart$;
|
|
508
508
|
if (a === void 0) {
|
|
509
509
|
const s = (r = e == null ? void 0 : e.renderBefore) !== null && r !== void 0 ? r : null;
|
|
510
|
-
o._$litPart$ = a = new
|
|
510
|
+
o._$litPart$ = a = new Ot(t.insertBefore(Xt(), s), s, void 0, e ?? {});
|
|
511
511
|
}
|
|
512
512
|
return a._$AI(i), a;
|
|
513
513
|
};
|
|
@@ -517,7 +517,7 @@ const sn = (i, t, e) => {
|
|
|
517
517
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
518
518
|
*/
|
|
519
519
|
var xe, Ae;
|
|
520
|
-
let
|
|
520
|
+
let $t = class extends xt {
|
|
521
521
|
constructor() {
|
|
522
522
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
523
523
|
}
|
|
@@ -542,9 +542,9 @@ let St = class extends At {
|
|
|
542
542
|
return W;
|
|
543
543
|
}
|
|
544
544
|
};
|
|
545
|
-
|
|
545
|
+
$t.finalized = !0, $t._$litElement$ = !0, (xe = globalThis.litElementHydrateSupport) === null || xe === void 0 || xe.call(globalThis, { LitElement: $t });
|
|
546
546
|
const si = globalThis.litElementPolyfillSupport;
|
|
547
|
-
si == null || si({ LitElement:
|
|
547
|
+
si == null || si({ LitElement: $t });
|
|
548
548
|
((Ae = globalThis.litElementVersions) !== null && Ae !== void 0 ? Ae : globalThis.litElementVersions = []).push("3.3.2");
|
|
549
549
|
/**
|
|
550
550
|
* @license
|
|
@@ -571,7 +571,7 @@ const ln = (i, t) => t.kind === "method" && t.descriptor && !("value" in t.descr
|
|
|
571
571
|
} }, dn = (i, t, e) => {
|
|
572
572
|
t.constructor.createProperty(e, i);
|
|
573
573
|
};
|
|
574
|
-
function
|
|
574
|
+
function k(i) {
|
|
575
575
|
return (t, e) => e !== void 0 ? dn(i, t, e) : ln(i, t);
|
|
576
576
|
}
|
|
577
577
|
/**
|
|
@@ -579,8 +579,8 @@ function N(i) {
|
|
|
579
579
|
* Copyright 2017 Google LLC
|
|
580
580
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
581
581
|
*/
|
|
582
|
-
function
|
|
583
|
-
return
|
|
582
|
+
function qt(i) {
|
|
583
|
+
return k({ ...i, state: !0 });
|
|
584
584
|
}
|
|
585
585
|
/**
|
|
586
586
|
* @license
|
|
@@ -616,7 +616,7 @@ class Hi {
|
|
|
616
616
|
* Copyright 2020 Google LLC
|
|
617
617
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
618
618
|
*/
|
|
619
|
-
const { I: cn } = an,
|
|
619
|
+
const { I: cn } = an, un = (i) => i.strings === void 0, li = () => document.createComment(""), Nt = (i, t, e) => {
|
|
620
620
|
var n;
|
|
621
621
|
const r = i._$AA.parentNode, o = t === void 0 ? i._$AB : t._$AA;
|
|
622
622
|
if (e === void 0) {
|
|
@@ -637,7 +637,7 @@ const { I: cn } = an, hn = (i) => i.strings === void 0, li = () => document.crea
|
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
639
|
return e;
|
|
640
|
-
}, pt = (i, t, e = i) => (i._$AI(t, e), i),
|
|
640
|
+
}, pt = (i, t, e = i) => (i._$AI(t, e), i), hn = {}, Ii = (i, t = hn) => i._$AH = t, pn = (i) => i._$AH, $e = (i) => {
|
|
641
641
|
var t;
|
|
642
642
|
(t = i._$AP) === null || t === void 0 || t.call(i, !1, !0);
|
|
643
643
|
let e = i._$AA;
|
|
@@ -691,29 +691,29 @@ const di = (i, t, e) => {
|
|
|
691
691
|
else if (l[g] === s[m])
|
|
692
692
|
d[m] = pt(o[g], a[m]), g--, m--;
|
|
693
693
|
else if (l[p] === s[m])
|
|
694
|
-
d[m] = pt(o[p], a[m]),
|
|
694
|
+
d[m] = pt(o[p], a[m]), Nt(i, d[m + 1], o[p]), p++, m--;
|
|
695
695
|
else if (l[g] === s[f])
|
|
696
|
-
d[f] = pt(o[g], a[f]),
|
|
696
|
+
d[f] = pt(o[g], a[f]), Nt(i, o[p], o[g]), g--, f++;
|
|
697
697
|
else if (u === void 0 && (u = di(s, f, m), c = di(l, p, g)), u.has(l[p]))
|
|
698
698
|
if (u.has(l[g])) {
|
|
699
|
-
const
|
|
700
|
-
if (
|
|
701
|
-
const O =
|
|
699
|
+
const $ = c.get(s[f]), N = $ !== void 0 ? o[$] : null;
|
|
700
|
+
if (N === null) {
|
|
701
|
+
const O = Nt(i, o[p]);
|
|
702
702
|
pt(O, a[f]), d[f] = O;
|
|
703
703
|
} else
|
|
704
|
-
d[f] = pt(
|
|
704
|
+
d[f] = pt(N, a[f]), Nt(i, o[p], N), o[$] = null;
|
|
705
705
|
f++;
|
|
706
706
|
} else
|
|
707
707
|
$e(o[g]), g--;
|
|
708
708
|
else
|
|
709
709
|
$e(o[p]), p++;
|
|
710
710
|
for (; f <= m; ) {
|
|
711
|
-
const
|
|
712
|
-
pt(
|
|
711
|
+
const $ = Nt(i, d[m + 1]);
|
|
712
|
+
pt($, a[f]), d[f++] = $;
|
|
713
713
|
}
|
|
714
714
|
for (; p <= g; ) {
|
|
715
|
-
const
|
|
716
|
-
|
|
715
|
+
const $ = o[p++];
|
|
716
|
+
$ !== null && $e($);
|
|
717
717
|
}
|
|
718
718
|
return this.ht = s, Ii(i, d), W;
|
|
719
719
|
}
|
|
@@ -727,7 +727,7 @@ const Be = Li(class extends Hi {
|
|
|
727
727
|
constructor(i) {
|
|
728
728
|
if (super(i), i.type !== mt.PROPERTY && i.type !== mt.ATTRIBUTE && i.type !== mt.BOOLEAN_ATTRIBUTE)
|
|
729
729
|
throw Error("The `live` directive is not allowed on child or event bindings");
|
|
730
|
-
if (!
|
|
730
|
+
if (!un(i))
|
|
731
731
|
throw Error("`live` bindings can only contain a single expression");
|
|
732
732
|
}
|
|
733
733
|
render(i) {
|
|
@@ -753,7 +753,7 @@ const Be = Li(class extends Hi {
|
|
|
753
753
|
* Copyright 2021 Google LLC
|
|
754
754
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
755
755
|
*/
|
|
756
|
-
function
|
|
756
|
+
function Mi(i, t, e) {
|
|
757
757
|
return i ? t() : e == null ? void 0 : e();
|
|
758
758
|
}
|
|
759
759
|
/**!
|
|
@@ -833,7 +833,7 @@ function et(i) {
|
|
|
833
833
|
if (typeof window < "u" && window.navigator)
|
|
834
834
|
return !!/* @__PURE__ */ navigator.userAgent.match(i);
|
|
835
835
|
}
|
|
836
|
-
var nt = et(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Kt = et(/Edge/i),
|
|
836
|
+
var nt = et(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Kt = et(/Edge/i), ui = et(/firefox/i), Ft = et(/safari/i) && !et(/chrome/i) && !et(/android/i), Pi = et(/iP(ad|od|hone)/i), ki = et(/chrome/i) && et(/android/i), Ni = {
|
|
837
837
|
capture: !1,
|
|
838
838
|
passive: !1
|
|
839
839
|
};
|
|
@@ -874,14 +874,14 @@ function Z(i, t, e, n) {
|
|
|
874
874
|
}
|
|
875
875
|
return null;
|
|
876
876
|
}
|
|
877
|
-
var
|
|
878
|
-
function
|
|
877
|
+
var hi = /\s+/g;
|
|
878
|
+
function R(i, t, e) {
|
|
879
879
|
if (i && t)
|
|
880
880
|
if (i.classList)
|
|
881
881
|
i.classList[e ? "add" : "remove"](t);
|
|
882
882
|
else {
|
|
883
|
-
var n = (" " + i.className + " ").replace(
|
|
884
|
-
i.className = (n + (e ? " " + t : "")).replace(
|
|
883
|
+
var n = (" " + i.className + " ").replace(hi, " ").replace(" " + t + " ", " ");
|
|
884
|
+
i.className = (n + (e ? " " + t : "")).replace(hi, " ");
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
887
|
function v(i, t, e) {
|
|
@@ -892,7 +892,7 @@ function v(i, t, e) {
|
|
|
892
892
|
!(t in n) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), n[t] = e + (typeof e == "string" ? "" : "px");
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function St(i, t) {
|
|
896
896
|
var e = "";
|
|
897
897
|
if (typeof i == "string")
|
|
898
898
|
e = i;
|
|
@@ -930,7 +930,7 @@ function T(i, t, e, n, r) {
|
|
|
930
930
|
}
|
|
931
931
|
while (r = r.parentNode);
|
|
932
932
|
if (n && i !== window) {
|
|
933
|
-
var g =
|
|
933
|
+
var g = St(r || i), f = g && g.a, m = g && g.d;
|
|
934
934
|
g && (a /= m, s /= f, c /= f, u /= m, l = a + u, d = s + c);
|
|
935
935
|
}
|
|
936
936
|
return {
|
|
@@ -954,7 +954,7 @@ function pi(i, t, e) {
|
|
|
954
954
|
}
|
|
955
955
|
return !1;
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function Tt(i, t, e, n) {
|
|
958
958
|
for (var r = 0, o = 0, a = i.children; o < a.length; ) {
|
|
959
959
|
if (a[o].style.display !== "none" && a[o] !== y.ghost && (n || a[o] !== y.dragged) && Z(a[o], e.draggable, i, !1)) {
|
|
960
960
|
if (r === t)
|
|
@@ -970,7 +970,7 @@ function Xe(i, t) {
|
|
|
970
970
|
e = e.previousElementSibling;
|
|
971
971
|
return e || null;
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function z(i, t) {
|
|
974
974
|
var e = 0;
|
|
975
975
|
if (!i || !i.parentNode)
|
|
976
976
|
return -1;
|
|
@@ -982,7 +982,7 @@ function fi(i) {
|
|
|
982
982
|
var t = 0, e = 0, n = q();
|
|
983
983
|
if (i)
|
|
984
984
|
do {
|
|
985
|
-
var r =
|
|
985
|
+
var r = St(i), o = r.a, a = r.d;
|
|
986
986
|
t += i.scrollLeft * o, e += i.scrollTop * a;
|
|
987
987
|
} while (i !== n && (i = i.parentNode));
|
|
988
988
|
return [t, e];
|
|
@@ -1023,19 +1023,19 @@ function _n(i, t) {
|
|
|
1023
1023
|
function Se(i, t) {
|
|
1024
1024
|
return Math.round(i.top) === Math.round(t.top) && Math.round(i.left) === Math.round(t.left) && Math.round(i.height) === Math.round(t.height) && Math.round(i.width) === Math.round(t.width);
|
|
1025
1025
|
}
|
|
1026
|
-
var
|
|
1026
|
+
var Ut;
|
|
1027
1027
|
function Bi(i, t) {
|
|
1028
1028
|
return function() {
|
|
1029
|
-
if (!
|
|
1029
|
+
if (!Ut) {
|
|
1030
1030
|
var e = arguments, n = this;
|
|
1031
|
-
e.length === 1 ? i.call(n, e[0]) : i.apply(n, e),
|
|
1032
|
-
|
|
1031
|
+
e.length === 1 ? i.call(n, e[0]) : i.apply(n, e), Ut = setTimeout(function() {
|
|
1032
|
+
Ut = void 0;
|
|
1033
1033
|
}, t);
|
|
1034
1034
|
}
|
|
1035
1035
|
};
|
|
1036
1036
|
}
|
|
1037
1037
|
function En() {
|
|
1038
|
-
clearTimeout(
|
|
1038
|
+
clearTimeout(Ut), Ut = void 0;
|
|
1039
1039
|
}
|
|
1040
1040
|
function Ri(i, t, e) {
|
|
1041
1041
|
i.scrollLeft += t, i.scrollTop += e;
|
|
@@ -1044,7 +1044,7 @@ function Fi(i) {
|
|
|
1044
1044
|
var t = window.Polymer, e = window.jQuery || window.Zepto;
|
|
1045
1045
|
return t && t.dom ? t.dom(i).cloneNode(!0) : e ? e(i).clone(!0)[0] : i.cloneNode(!0);
|
|
1046
1046
|
}
|
|
1047
|
-
var
|
|
1047
|
+
var U = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
1048
1048
|
function wn() {
|
|
1049
1049
|
var i = [], t;
|
|
1050
1050
|
return {
|
|
@@ -1059,7 +1059,7 @@ function wn() {
|
|
|
1059
1059
|
});
|
|
1060
1060
|
var o = K({}, i[i.length - 1].rect);
|
|
1061
1061
|
if (r.thisAnimationDuration) {
|
|
1062
|
-
var a =
|
|
1062
|
+
var a = St(r, !0);
|
|
1063
1063
|
a && (o.top -= a.f, o.left -= a.e);
|
|
1064
1064
|
}
|
|
1065
1065
|
r.fromRect = o;
|
|
@@ -1083,7 +1083,7 @@ function wn() {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
var o = !1, a = 0;
|
|
1085
1085
|
i.forEach(function(s) {
|
|
1086
|
-
var l = 0, d = s.target, u = d.fromRect, c = T(d), p = d.prevFromRect, g = d.prevToRect, f = s.rect, m =
|
|
1086
|
+
var l = 0, d = s.target, u = d.fromRect, c = T(d), p = d.prevFromRect, g = d.prevToRect, f = s.rect, m = St(d, !0);
|
|
1087
1087
|
m && (c.top -= m.f, c.left -= m.e), d.toRect = c, d.thisAnimationDuration && Se(p, c) && !Se(u, c) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1088
1088
|
(f.top - c.top) / (f.left - c.left) === (u.top - c.top) / (u.left - c.left) && (l = An(f, p, g, r.options)), Se(c, u) || (d.prevFromRect = u, d.prevToRect = c, l || (l = r.options.animation), r.animate(d, f, c, l)), l && (o = !0, a = Math.max(a, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
|
|
1089
1089
|
d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
|
|
@@ -1095,7 +1095,7 @@ function wn() {
|
|
|
1095
1095
|
animate: function(n, r, o, a) {
|
|
1096
1096
|
if (a) {
|
|
1097
1097
|
v(n, "transition", ""), v(n, "transform", "");
|
|
1098
|
-
var s =
|
|
1098
|
+
var s = St(this.el), l = s && s.a, d = s && s.d, u = (r.left - o.left) / (l || 1), c = (r.top - o.top) / (d || 1);
|
|
1099
1099
|
n.animatingX = !!u, n.animatingY = !!c, v(n, "transform", "translate3d(" + u + "px," + c + "px,0)"), this.forRepaintDummy = xn(n), v(n, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
1100
1100
|
v(n, "transition", ""), v(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
1101
1101
|
}, a);
|
|
@@ -1109,16 +1109,16 @@ function xn(i) {
|
|
|
1109
1109
|
function An(i, t, e, n) {
|
|
1110
1110
|
return Math.sqrt(Math.pow(t.top - i.top, 2) + Math.pow(t.left - i.left, 2)) / Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) * n.animation;
|
|
1111
1111
|
}
|
|
1112
|
-
var
|
|
1112
|
+
var Et = [], De = {
|
|
1113
1113
|
initializeByDefault: !0
|
|
1114
1114
|
}, Qt = {
|
|
1115
1115
|
mount: function(t) {
|
|
1116
1116
|
for (var e in De)
|
|
1117
1117
|
De.hasOwnProperty(e) && !(e in t) && (t[e] = De[e]);
|
|
1118
|
-
|
|
1118
|
+
Et.forEach(function(n) {
|
|
1119
1119
|
if (n.pluginName === t.pluginName)
|
|
1120
1120
|
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
1121
|
-
}),
|
|
1121
|
+
}), Et.push(t);
|
|
1122
1122
|
},
|
|
1123
1123
|
pluginEvent: function(t, e, n) {
|
|
1124
1124
|
var r = this;
|
|
@@ -1126,7 +1126,7 @@ var wt = [], De = {
|
|
|
1126
1126
|
r.eventCanceled = !0;
|
|
1127
1127
|
};
|
|
1128
1128
|
var o = t + "Global";
|
|
1129
|
-
|
|
1129
|
+
Et.forEach(function(a) {
|
|
1130
1130
|
e[a.pluginName] && (e[a.pluginName][o] && e[a.pluginName][o](K({
|
|
1131
1131
|
sortable: e
|
|
1132
1132
|
}, n)), e.options[a.pluginName] && e[a.pluginName][t] && e[a.pluginName][t](K({
|
|
@@ -1135,7 +1135,7 @@ var wt = [], De = {
|
|
|
1135
1135
|
});
|
|
1136
1136
|
},
|
|
1137
1137
|
initializePlugins: function(t, e, n, r) {
|
|
1138
|
-
|
|
1138
|
+
Et.forEach(function(s) {
|
|
1139
1139
|
var l = s.pluginName;
|
|
1140
1140
|
if (!(!t.options[l] && !s.initializeByDefault)) {
|
|
1141
1141
|
var d = new s(t, e, t.options);
|
|
@@ -1150,21 +1150,21 @@ var wt = [], De = {
|
|
|
1150
1150
|
},
|
|
1151
1151
|
getEventProperties: function(t, e) {
|
|
1152
1152
|
var n = {};
|
|
1153
|
-
return
|
|
1153
|
+
return Et.forEach(function(r) {
|
|
1154
1154
|
typeof r.eventProperties == "function" && it(n, r.eventProperties.call(e[r.pluginName], t));
|
|
1155
1155
|
}), n;
|
|
1156
1156
|
},
|
|
1157
1157
|
modifyOption: function(t, e, n) {
|
|
1158
1158
|
var r;
|
|
1159
|
-
return
|
|
1159
|
+
return Et.forEach(function(o) {
|
|
1160
1160
|
t[o.pluginName] && o.optionListeners && typeof o.optionListeners[e] == "function" && (r = o.optionListeners[e].call(t[o.pluginName], n));
|
|
1161
1161
|
}), r;
|
|
1162
1162
|
}
|
|
1163
1163
|
};
|
|
1164
1164
|
function Cn(i) {
|
|
1165
1165
|
var t = i.sortable, e = i.rootEl, n = i.name, r = i.targetEl, o = i.cloneEl, a = i.toEl, s = i.fromEl, l = i.oldIndex, d = i.newIndex, u = i.oldDraggableIndex, c = i.newDraggableIndex, p = i.originalEvent, g = i.putSortable, f = i.extraEventProperties;
|
|
1166
|
-
if (t = t || e && e[
|
|
1167
|
-
var m,
|
|
1166
|
+
if (t = t || e && e[U], !!t) {
|
|
1167
|
+
var m, $ = t.options, N = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
1168
1168
|
window.CustomEvent && !nt && !Kt ? m = new CustomEvent(n, {
|
|
1169
1169
|
bubbles: !0,
|
|
1170
1170
|
cancelable: !0
|
|
@@ -1172,10 +1172,10 @@ function Cn(i) {
|
|
|
1172
1172
|
var O = K(K({}, f), Qt.getEventProperties(n, t));
|
|
1173
1173
|
for (var Y in O)
|
|
1174
1174
|
m[Y] = O[Y];
|
|
1175
|
-
e && e.dispatchEvent(m),
|
|
1175
|
+
e && e.dispatchEvent(m), $[N] && $[N].call(t, m);
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
|
-
var $n = ["evt"],
|
|
1178
|
+
var $n = ["evt"], P = function(t, e) {
|
|
1179
1179
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = mn(n, $n);
|
|
1180
1180
|
Qt.pluginEvent.bind(y)(t, e, K({
|
|
1181
1181
|
dragEl: h,
|
|
@@ -1186,13 +1186,13 @@ var $n = ["evt"], M = function(t, e) {
|
|
|
1186
1186
|
lastDownEl: ae,
|
|
1187
1187
|
cloneEl: A,
|
|
1188
1188
|
cloneHidden: st,
|
|
1189
|
-
dragStarted:
|
|
1189
|
+
dragStarted: Vt,
|
|
1190
1190
|
putSortable: L,
|
|
1191
1191
|
activeSortable: y.active,
|
|
1192
1192
|
originalEvent: r,
|
|
1193
|
-
oldIndex:
|
|
1194
|
-
oldDraggableIndex:
|
|
1195
|
-
newIndex:
|
|
1193
|
+
oldIndex: Ct,
|
|
1194
|
+
oldDraggableIndex: zt,
|
|
1195
|
+
newIndex: F,
|
|
1196
1196
|
newDraggableIndex: at,
|
|
1197
1197
|
hideGhostForTarget: Yi,
|
|
1198
1198
|
unhideGhostForTarget: Xi,
|
|
@@ -1203,7 +1203,7 @@ var $n = ["evt"], M = function(t, e) {
|
|
|
1203
1203
|
st = !1;
|
|
1204
1204
|
},
|
|
1205
1205
|
dispatchSortableEvent: function(s) {
|
|
1206
|
-
|
|
1206
|
+
M({
|
|
1207
1207
|
sortable: e,
|
|
1208
1208
|
name: s,
|
|
1209
1209
|
originalEvent: r
|
|
@@ -1211,19 +1211,19 @@ var $n = ["evt"], M = function(t, e) {
|
|
|
1211
1211
|
}
|
|
1212
1212
|
}, o));
|
|
1213
1213
|
};
|
|
1214
|
-
function
|
|
1214
|
+
function M(i) {
|
|
1215
1215
|
Cn(K({
|
|
1216
1216
|
putSortable: L,
|
|
1217
1217
|
cloneEl: A,
|
|
1218
1218
|
targetEl: h,
|
|
1219
1219
|
rootEl: x,
|
|
1220
|
-
oldIndex:
|
|
1221
|
-
oldDraggableIndex:
|
|
1222
|
-
newIndex:
|
|
1220
|
+
oldIndex: Ct,
|
|
1221
|
+
oldDraggableIndex: zt,
|
|
1222
|
+
newIndex: F,
|
|
1223
1223
|
newDraggableIndex: at
|
|
1224
1224
|
}, i));
|
|
1225
1225
|
}
|
|
1226
|
-
var h, C, b, x, vt, ae, A, st,
|
|
1226
|
+
var h, C, b, x, vt, ae, A, st, Ct, F, zt, at, te, L, At = !1, fe = !1, ge = [], ft, X, Te, Oe, gi, mi, Vt, wt, jt, Yt = !1, ee = !1, se, I, Le = [], Re = !1, me = [], ye = typeof document < "u", ie = Pi, vi = Kt || nt ? "cssFloat" : "float", Sn = ye && !ki && !Pi && "draggable" in document.createElement("div"), Ui = function() {
|
|
1227
1227
|
if (ye) {
|
|
1228
1228
|
if (nt)
|
|
1229
1229
|
return !1;
|
|
@@ -1231,7 +1231,7 @@ var h, C, b, x, vt, ae, A, st, $t, U, jt, at, te, L, Ct = !1, fe = !1, ge = [],
|
|
|
1231
1231
|
return i.style.cssText = "pointer-events:auto", i.style.pointerEvents === "auto";
|
|
1232
1232
|
}
|
|
1233
1233
|
}(), zi = function(t, e) {
|
|
1234
|
-
var n = v(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o =
|
|
1234
|
+
var n = v(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = Tt(t, 0, e), a = Tt(t, 1, e), s = o && v(o), l = a && v(a), d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + T(o).width, u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + T(a).width;
|
|
1235
1235
|
if (n.display === "flex")
|
|
1236
1236
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1237
1237
|
if (n.display === "grid")
|
|
@@ -1247,7 +1247,7 @@ var h, C, b, x, vt, ae, A, st, $t, U, jt, at, te, L, Ct = !1, fe = !1, ge = [],
|
|
|
1247
1247
|
}, Tn = function(t, e) {
|
|
1248
1248
|
var n;
|
|
1249
1249
|
return ge.some(function(r) {
|
|
1250
|
-
var o = r[
|
|
1250
|
+
var o = r[U].options.emptyInsertThreshold;
|
|
1251
1251
|
if (!(!o || Xe(r))) {
|
|
1252
1252
|
var a = T(r), s = t >= a.left - o && t <= a.right + o, l = e >= a.top - o && e <= a.bottom + o;
|
|
1253
1253
|
if (s && l)
|
|
@@ -1291,16 +1291,16 @@ var gt = function(t) {
|
|
|
1291
1291
|
var n = {};
|
|
1292
1292
|
for (var r in t)
|
|
1293
1293
|
t.hasOwnProperty(r) && (n[r] = t[r]);
|
|
1294
|
-
n.target = n.rootEl = e, n.preventDefault = void 0, n.stopPropagation = void 0, e[
|
|
1294
|
+
n.target = n.rootEl = e, n.preventDefault = void 0, n.stopPropagation = void 0, e[U]._onDragOver(n);
|
|
1295
1295
|
}
|
|
1296
1296
|
}
|
|
1297
1297
|
}, On = function(t) {
|
|
1298
|
-
h && h.parentNode[
|
|
1298
|
+
h && h.parentNode[U]._isOutsideThisEl(t.target);
|
|
1299
1299
|
};
|
|
1300
1300
|
function y(i, t) {
|
|
1301
1301
|
if (!(i && i.nodeType && i.nodeType === 1))
|
|
1302
1302
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));
|
|
1303
|
-
this.el = i, this.options = t = it({}, t), i[
|
|
1303
|
+
this.el = i, this.options = t = it({}, t), i[U] = this;
|
|
1304
1304
|
var e = {
|
|
1305
1305
|
group: null,
|
|
1306
1306
|
sort: !0,
|
|
@@ -1343,7 +1343,7 @@ function y(i, t) {
|
|
|
1343
1343
|
x: 0,
|
|
1344
1344
|
y: 0
|
|
1345
1345
|
},
|
|
1346
|
-
supportPointer: y.supportPointer !== !1 && "PointerEvent" in window && !
|
|
1346
|
+
supportPointer: y.supportPointer !== !1 && "PointerEvent" in window && !Ft,
|
|
1347
1347
|
emptyInsertThreshold: 5
|
|
1348
1348
|
};
|
|
1349
1349
|
Qt.initializePlugins(this, i, e);
|
|
@@ -1358,7 +1358,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1358
1358
|
{
|
|
1359
1359
|
constructor: y,
|
|
1360
1360
|
_isOutsideThisEl: function(t) {
|
|
1361
|
-
!this.el.contains(t) && t !== this.el && (
|
|
1361
|
+
!this.el.contains(t) && t !== this.el && (wt = null);
|
|
1362
1362
|
},
|
|
1363
1363
|
_getDirection: function(t, e) {
|
|
1364
1364
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, h) : this.options.direction;
|
|
@@ -1366,31 +1366,31 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1366
1366
|
_onTapStart: function(t) {
|
|
1367
1367
|
if (t.cancelable) {
|
|
1368
1368
|
var e = this, n = this.el, r = this.options, o = r.preventOnFilter, a = t.type, s = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (s || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, u = r.filter;
|
|
1369
|
-
if (Vn(n), !h && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable &&
|
|
1370
|
-
if (
|
|
1369
|
+
if (Vn(n), !h && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && Ft && l && l.tagName.toUpperCase() === "SELECT") && (l = Z(l, r.draggable, n, !1), !(l && l.animated) && ae !== l)) {
|
|
1370
|
+
if (Ct = z(l), zt = z(l, r.draggable), typeof u == "function") {
|
|
1371
1371
|
if (u.call(this, t, l, this)) {
|
|
1372
|
-
|
|
1372
|
+
M({
|
|
1373
1373
|
sortable: e,
|
|
1374
1374
|
rootEl: d,
|
|
1375
1375
|
name: "filter",
|
|
1376
1376
|
targetEl: l,
|
|
1377
1377
|
toEl: n,
|
|
1378
1378
|
fromEl: n
|
|
1379
|
-
}),
|
|
1379
|
+
}), P("filter", e, {
|
|
1380
1380
|
evt: t
|
|
1381
1381
|
}), o && t.cancelable && t.preventDefault();
|
|
1382
1382
|
return;
|
|
1383
1383
|
}
|
|
1384
1384
|
} else if (u && (u = u.split(",").some(function(c) {
|
|
1385
1385
|
if (c = Z(d, c.trim(), n, !1), c)
|
|
1386
|
-
return
|
|
1386
|
+
return M({
|
|
1387
1387
|
sortable: e,
|
|
1388
1388
|
rootEl: c,
|
|
1389
1389
|
name: "filter",
|
|
1390
1390
|
targetEl: l,
|
|
1391
1391
|
fromEl: n,
|
|
1392
1392
|
toEl: n
|
|
1393
|
-
}),
|
|
1393
|
+
}), P("filter", e, {
|
|
1394
1394
|
evt: t
|
|
1395
1395
|
}), !0;
|
|
1396
1396
|
}), u)) {
|
|
@@ -1410,20 +1410,20 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1410
1410
|
clientX: (e || t).clientX,
|
|
1411
1411
|
clientY: (e || t).clientY
|
|
1412
1412
|
}, gi = ft.clientX - d.left, mi = ft.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, h.style["will-change"] = "all", l = function() {
|
|
1413
|
-
if (
|
|
1413
|
+
if (P("delayEnded", r, {
|
|
1414
1414
|
evt: t
|
|
1415
1415
|
}), y.eventCanceled) {
|
|
1416
1416
|
r._onDrop();
|
|
1417
1417
|
return;
|
|
1418
1418
|
}
|
|
1419
|
-
r._disableDelayedDragEvents(), !
|
|
1419
|
+
r._disableDelayedDragEvents(), !ui && r.nativeDraggable && (h.draggable = !0), r._triggerDragStart(t, e), M({
|
|
1420
1420
|
sortable: r,
|
|
1421
1421
|
name: "choose",
|
|
1422
1422
|
originalEvent: t
|
|
1423
|
-
}),
|
|
1423
|
+
}), R(h, a.chosenClass, !0);
|
|
1424
1424
|
}, a.ignore.split(",").forEach(function(u) {
|
|
1425
1425
|
Vi(h, u.trim(), He);
|
|
1426
|
-
}), E(s, "dragover", gt), E(s, "mousemove", gt), E(s, "touchmove", gt), E(s, "mouseup", r._onDrop), E(s, "touchend", r._onDrop), E(s, "touchcancel", r._onDrop),
|
|
1426
|
+
}), E(s, "dragover", gt), E(s, "mousemove", gt), E(s, "touchmove", gt), E(s, "mouseup", r._onDrop), E(s, "touchend", r._onDrop), E(s, "touchcancel", r._onDrop), ui && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), P("delayStart", this, {
|
|
1427
1427
|
evt: t
|
|
1428
1428
|
}), a.delay && (!a.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Kt || nt))) {
|
|
1429
1429
|
if (y.eventCanceled) {
|
|
@@ -1456,12 +1456,12 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1456
1456
|
}
|
|
1457
1457
|
},
|
|
1458
1458
|
_dragStarted: function(t, e) {
|
|
1459
|
-
if (
|
|
1460
|
-
|
|
1459
|
+
if (At = !1, x && h) {
|
|
1460
|
+
P("dragStarted", this, {
|
|
1461
1461
|
evt: e
|
|
1462
1462
|
}), this.nativeDraggable && E(document, "dragover", On);
|
|
1463
1463
|
var n = this.options;
|
|
1464
|
-
!t &&
|
|
1464
|
+
!t && R(h, n.dragClass, !1), R(h, n.ghostClass, !0), y.active = this, t && this._appendGhost(), M({
|
|
1465
1465
|
sortable: this,
|
|
1466
1466
|
name: "start",
|
|
1467
1467
|
originalEvent: e
|
|
@@ -1474,11 +1474,11 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1474
1474
|
this._lastX = X.clientX, this._lastY = X.clientY, Yi();
|
|
1475
1475
|
for (var t = document.elementFromPoint(X.clientX, X.clientY), e = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(X.clientX, X.clientY), t !== e); )
|
|
1476
1476
|
e = t;
|
|
1477
|
-
if (h.parentNode[
|
|
1477
|
+
if (h.parentNode[U]._isOutsideThisEl(t), e)
|
|
1478
1478
|
do {
|
|
1479
|
-
if (e[
|
|
1479
|
+
if (e[U]) {
|
|
1480
1480
|
var n = void 0;
|
|
1481
|
-
if (n = e[
|
|
1481
|
+
if (n = e[U]._onDragOver({
|
|
1482
1482
|
clientX: X.clientX,
|
|
1483
1483
|
clientY: X.clientY,
|
|
1484
1484
|
target: t,
|
|
@@ -1493,8 +1493,8 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1493
1493
|
},
|
|
1494
1494
|
_onTouchMove: function(t) {
|
|
1495
1495
|
if (ft) {
|
|
1496
|
-
var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, a = b &&
|
|
1497
|
-
if (!y.active && !
|
|
1496
|
+
var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, a = b && St(b, !0), s = b && a && a.a, l = b && a && a.d, d = ie && I && fi(I), u = (o.clientX - ft.clientX + r.x) / (s || 1) + (d ? d[0] - Le[0] : 0) / (s || 1), c = (o.clientY - ft.clientY + r.y) / (l || 1) + (d ? d[1] - Le[1] : 0) / (l || 1);
|
|
1497
|
+
if (!y.active && !At) {
|
|
1498
1498
|
if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n)
|
|
1499
1499
|
return;
|
|
1500
1500
|
this._onDragStart(t, !0);
|
|
@@ -1522,31 +1522,31 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1522
1522
|
I = I.parentNode;
|
|
1523
1523
|
I !== document.body && I !== document.documentElement ? (I === document && (I = q()), e.top += I.scrollTop, e.left += I.scrollLeft) : I = q(), Le = fi(I);
|
|
1524
1524
|
}
|
|
1525
|
-
b = h.cloneNode(!0),
|
|
1525
|
+
b = h.cloneNode(!0), R(b, n.ghostClass, !1), R(b, n.fallbackClass, !0), R(b, n.dragClass, !0), v(b, "transition", ""), v(b, "transform", ""), v(b, "box-sizing", "border-box"), v(b, "margin", 0), v(b, "top", e.top), v(b, "left", e.left), v(b, "width", e.width), v(b, "height", e.height), v(b, "opacity", "0.8"), v(b, "position", ie ? "absolute" : "fixed"), v(b, "zIndex", "100000"), v(b, "pointerEvents", "none"), y.ghost = b, t.appendChild(b), v(b, "transform-origin", gi / parseInt(b.style.width) * 100 + "% " + mi / parseInt(b.style.height) * 100 + "%");
|
|
1526
1526
|
}
|
|
1527
1527
|
},
|
|
1528
1528
|
_onDragStart: function(t, e) {
|
|
1529
1529
|
var n = this, r = t.dataTransfer, o = n.options;
|
|
1530
|
-
if (
|
|
1530
|
+
if (P("dragStart", this, {
|
|
1531
1531
|
evt: t
|
|
1532
1532
|
}), y.eventCanceled) {
|
|
1533
1533
|
this._onDrop();
|
|
1534
1534
|
return;
|
|
1535
1535
|
}
|
|
1536
|
-
|
|
1537
|
-
|
|
1536
|
+
P("setupClone", this), y.eventCanceled || (A = Fi(h), A.removeAttribute("id"), A.draggable = !1, A.style["will-change"] = "", this._hideClone(), R(A, this.options.chosenClass, !1), y.clone = A), n.cloneId = le(function() {
|
|
1537
|
+
P("clone", n), !y.eventCanceled && (n.options.removeCloneOnHide || x.insertBefore(A, h), n._hideClone(), M({
|
|
1538
1538
|
sortable: n,
|
|
1539
1539
|
name: "clone"
|
|
1540
1540
|
}));
|
|
1541
|
-
}), !e &&
|
|
1541
|
+
}), !e && R(h, o.dragClass, !0), e ? (fe = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (_(document, "mouseup", n._onDrop), _(document, "touchend", n._onDrop), _(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, h)), E(document, "drop", n), v(h, "transform", "translateZ(0)")), At = !0, n._dragStartId = le(n._dragStarted.bind(n, e, t)), E(document, "selectstart", n), Vt = !0, Ft && v(document.body, "user-select", "none");
|
|
1542
1542
|
},
|
|
1543
1543
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1544
1544
|
_onDragOver: function(t) {
|
|
1545
1545
|
var e = this.el, n = t.target, r, o, a, s = this.options, l = s.group, d = y.active, u = te === l, c = s.sort, p = L || d, g, f = this, m = !1;
|
|
1546
1546
|
if (Re)
|
|
1547
1547
|
return;
|
|
1548
|
-
function
|
|
1549
|
-
|
|
1548
|
+
function $(Pt, qi) {
|
|
1549
|
+
P(Pt, f, K({
|
|
1550
1550
|
evt: t,
|
|
1551
1551
|
isOwner: u,
|
|
1552
1552
|
axis: g ? "vertical" : "horizontal",
|
|
@@ -1563,66 +1563,66 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1563
1563
|
changed: Y
|
|
1564
1564
|
}, qi));
|
|
1565
1565
|
}
|
|
1566
|
-
function
|
|
1567
|
-
|
|
1566
|
+
function N() {
|
|
1567
|
+
$("dragOverAnimationCapture"), f.captureAnimationState(), f !== p && p.captureAnimationState();
|
|
1568
1568
|
}
|
|
1569
|
-
function O(
|
|
1570
|
-
return
|
|
1571
|
-
insertion:
|
|
1572
|
-
}),
|
|
1573
|
-
|
|
1574
|
-
}), f !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (
|
|
1569
|
+
function O(Pt) {
|
|
1570
|
+
return $("dragOverCompleted", {
|
|
1571
|
+
insertion: Pt
|
|
1572
|
+
}), Pt && (u ? d._hideClone() : d._showClone(f), f !== p && (R(h, L ? L.options.ghostClass : d.options.ghostClass, !1), R(h, s.ghostClass, !0)), L !== f && f !== y.active ? L = f : f === y.active && L && (L = null), p === f && (f._ignoreWhileAnimating = n), f.animateAll(function() {
|
|
1573
|
+
$("dragOverAnimationComplete"), f._ignoreWhileAnimating = null;
|
|
1574
|
+
}), f !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (wt = null), !s.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[U]._isOutsideThisEl(t.target), !Pt && gt(t)), !s.dragoverBubble && t.stopPropagation && t.stopPropagation(), m = !0;
|
|
1575
1575
|
}
|
|
1576
1576
|
function Y() {
|
|
1577
|
-
|
|
1577
|
+
F = z(h), at = z(h, s.draggable), M({
|
|
1578
1578
|
sortable: f,
|
|
1579
1579
|
name: "change",
|
|
1580
1580
|
toEl: e,
|
|
1581
|
-
newIndex:
|
|
1581
|
+
newIndex: F,
|
|
1582
1582
|
newDraggableIndex: at,
|
|
1583
1583
|
originalEvent: t
|
|
1584
1584
|
});
|
|
1585
1585
|
}
|
|
1586
|
-
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = Z(n, s.draggable, e, !0),
|
|
1586
|
+
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = Z(n, s.draggable, e, !0), $("dragOver"), y.eventCanceled)
|
|
1587
1587
|
return m;
|
|
1588
1588
|
if (h.contains(t.target) || n.animated && n.animatingX && n.animatingY || f._ignoreWhileAnimating === n)
|
|
1589
1589
|
return O(!1);
|
|
1590
1590
|
if (fe = !1, d && !s.disabled && (u ? c || (a = C !== x) : L === this || (this.lastPutMode = te.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
|
|
1591
|
-
if (g = this._getDirection(t, n) === "vertical", r = T(h),
|
|
1591
|
+
if (g = this._getDirection(t, n) === "vertical", r = T(h), $("dragOverValid"), y.eventCanceled)
|
|
1592
1592
|
return m;
|
|
1593
1593
|
if (a)
|
|
1594
|
-
return C = x,
|
|
1595
|
-
var
|
|
1596
|
-
if (!
|
|
1597
|
-
if (
|
|
1594
|
+
return C = x, N(), this._hideClone(), $("revert"), y.eventCanceled || (vt ? x.insertBefore(h, vt) : x.appendChild(h)), O(!0);
|
|
1595
|
+
var V = Xe(e, s.draggable);
|
|
1596
|
+
if (!V || Mn(t, g, this) && !V.animated) {
|
|
1597
|
+
if (V === h)
|
|
1598
1598
|
return O(!1);
|
|
1599
|
-
if (
|
|
1600
|
-
return
|
|
1601
|
-
} else if (
|
|
1602
|
-
var dt =
|
|
1599
|
+
if (V && e === t.target && (n = V), n && (o = T(n)), ne(x, e, h, r, n, o, t, !!n) !== !1)
|
|
1600
|
+
return N(), V && V.nextSibling ? e.insertBefore(h, V.nextSibling) : e.appendChild(h), C = e, Y(), O(!0);
|
|
1601
|
+
} else if (V && In(t, g, this)) {
|
|
1602
|
+
var dt = Tt(e, 0, s, !0);
|
|
1603
1603
|
if (dt === h)
|
|
1604
1604
|
return O(!1);
|
|
1605
1605
|
if (n = dt, o = T(n), ne(x, e, h, r, n, o, t, !1) !== !1)
|
|
1606
|
-
return
|
|
1606
|
+
return N(), e.insertBefore(h, dt), C = e, Y(), O(!0);
|
|
1607
1607
|
} else if (n.parentNode === e) {
|
|
1608
1608
|
o = T(n);
|
|
1609
|
-
var G = 0, ct,
|
|
1610
|
-
|
|
1609
|
+
var G = 0, ct, Lt = h.parentNode !== e, B = !Dn(h.animated && h.toRect || r, n.animated && n.toRect || o, g), Ht = g ? "top" : "left", rt = pi(n, "top", "top") || pi(h, "top", "top"), It = rt ? rt.scrollTop : void 0;
|
|
1610
|
+
wt !== n && (ct = o[Ht], Yt = !1, ee = !B && s.invertSwap || Lt), G = Pn(t, n, o, g, B ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, ee, wt === n);
|
|
1611
1611
|
var J;
|
|
1612
1612
|
if (G !== 0) {
|
|
1613
|
-
var
|
|
1613
|
+
var ut = z(h);
|
|
1614
1614
|
do
|
|
1615
|
-
|
|
1615
|
+
ut -= G, J = C.children[ut];
|
|
1616
1616
|
while (J && (v(J, "display") === "none" || J === b));
|
|
1617
1617
|
}
|
|
1618
1618
|
if (G === 0 || J === n)
|
|
1619
1619
|
return O(!1);
|
|
1620
|
-
|
|
1620
|
+
wt = n, jt = G;
|
|
1621
1621
|
var Mt = n.nextElementSibling, ot = !1;
|
|
1622
1622
|
ot = G === 1;
|
|
1623
1623
|
var Jt = ne(x, e, h, r, n, o, t, ot);
|
|
1624
1624
|
if (Jt !== !1)
|
|
1625
|
-
return (Jt === 1 || Jt === -1) && (ot = Jt === 1), Re = !0, setTimeout(Hn, 30),
|
|
1625
|
+
return (Jt === 1 || Jt === -1) && (ot = Jt === 1), Re = !0, setTimeout(Hn, 30), N(), ot && !Mt ? e.appendChild(h) : n.parentNode.insertBefore(h, ot ? Mt : n), rt && Ri(rt, 0, It - rt.scrollTop), C = h.parentNode, ct !== void 0 && !ee && (se = Math.abs(ct - T(n)[Ht])), Y(), O(!0);
|
|
1626
1626
|
}
|
|
1627
1627
|
if (e.contains(h))
|
|
1628
1628
|
return O(!1);
|
|
@@ -1639,52 +1639,52 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1639
1639
|
},
|
|
1640
1640
|
_onDrop: function(t) {
|
|
1641
1641
|
var e = this.el, n = this.options;
|
|
1642
|
-
if (
|
|
1642
|
+
if (F = z(h), at = z(h, n.draggable), P("drop", this, {
|
|
1643
1643
|
evt: t
|
|
1644
|
-
}), C = h && h.parentNode,
|
|
1644
|
+
}), C = h && h.parentNode, F = z(h), at = z(h, n.draggable), y.eventCanceled) {
|
|
1645
1645
|
this._nulling();
|
|
1646
1646
|
return;
|
|
1647
1647
|
}
|
|
1648
|
-
|
|
1648
|
+
At = !1, ee = !1, Yt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Fe(this.cloneId), Fe(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ft && v(document.body, "user-select", ""), v(h, "transform", ""), t && (Vt && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), b && b.parentNode && b.parentNode.removeChild(b), (x === C || L && L.lastPutMode !== "clone") && A && A.parentNode && A.parentNode.removeChild(A), h && (this.nativeDraggable && _(h, "dragend", this), He(h), h.style["will-change"] = "", Vt && !At && R(h, L ? L.options.ghostClass : this.options.ghostClass, !1), R(h, this.options.chosenClass, !1), M({
|
|
1649
1649
|
sortable: this,
|
|
1650
1650
|
name: "unchoose",
|
|
1651
1651
|
toEl: C,
|
|
1652
1652
|
newIndex: null,
|
|
1653
1653
|
newDraggableIndex: null,
|
|
1654
1654
|
originalEvent: t
|
|
1655
|
-
}), x !== C ? (
|
|
1655
|
+
}), x !== C ? (F >= 0 && (M({
|
|
1656
1656
|
rootEl: C,
|
|
1657
1657
|
name: "add",
|
|
1658
1658
|
toEl: C,
|
|
1659
1659
|
fromEl: x,
|
|
1660
1660
|
originalEvent: t
|
|
1661
|
-
}),
|
|
1661
|
+
}), M({
|
|
1662
1662
|
sortable: this,
|
|
1663
1663
|
name: "remove",
|
|
1664
1664
|
toEl: C,
|
|
1665
1665
|
originalEvent: t
|
|
1666
|
-
}),
|
|
1666
|
+
}), M({
|
|
1667
1667
|
rootEl: C,
|
|
1668
1668
|
name: "sort",
|
|
1669
1669
|
toEl: C,
|
|
1670
1670
|
fromEl: x,
|
|
1671
1671
|
originalEvent: t
|
|
1672
|
-
}),
|
|
1672
|
+
}), M({
|
|
1673
1673
|
sortable: this,
|
|
1674
1674
|
name: "sort",
|
|
1675
1675
|
toEl: C,
|
|
1676
1676
|
originalEvent: t
|
|
1677
|
-
})), L && L.save()) :
|
|
1677
|
+
})), L && L.save()) : F !== Ct && F >= 0 && (M({
|
|
1678
1678
|
sortable: this,
|
|
1679
1679
|
name: "update",
|
|
1680
1680
|
toEl: C,
|
|
1681
1681
|
originalEvent: t
|
|
1682
|
-
}),
|
|
1682
|
+
}), M({
|
|
1683
1683
|
sortable: this,
|
|
1684
1684
|
name: "sort",
|
|
1685
1685
|
toEl: C,
|
|
1686
1686
|
originalEvent: t
|
|
1687
|
-
})), y.active && ((
|
|
1687
|
+
})), y.active && ((F == null || F === -1) && (F = Ct, at = zt), M({
|
|
1688
1688
|
sortable: this,
|
|
1689
1689
|
name: "end",
|
|
1690
1690
|
toEl: C,
|
|
@@ -1692,7 +1692,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1692
1692
|
}), this.save()))), this._nulling();
|
|
1693
1693
|
},
|
|
1694
1694
|
_nulling: function() {
|
|
1695
|
-
|
|
1695
|
+
P("nulling", this), x = h = C = b = vt = A = ae = st = ft = X = Vt = F = at = Ct = zt = wt = jt = L = te = y.dragged = y.ghost = y.clone = y.active = null, me.forEach(function(t) {
|
|
1696
1696
|
t.checked = !0;
|
|
1697
1697
|
}), me.length = Te = Oe = 0;
|
|
1698
1698
|
},
|
|
@@ -1766,15 +1766,15 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1766
1766
|
* Destroy
|
|
1767
1767
|
*/
|
|
1768
1768
|
destroy: function() {
|
|
1769
|
-
|
|
1769
|
+
P("destroy", this);
|
|
1770
1770
|
var t = this.el;
|
|
1771
|
-
t[
|
|
1771
|
+
t[U] = null, _(t, "mousedown", this._onTapStart), _(t, "touchstart", this._onTapStart), _(t, "pointerdown", this._onTapStart), this.nativeDraggable && (_(t, "dragover", this), _(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(e) {
|
|
1772
1772
|
e.removeAttribute("draggable");
|
|
1773
1773
|
}), this._onDrop(), this._disableDelayedDragEvents(), ge.splice(ge.indexOf(this.el), 1), this.el = t = null;
|
|
1774
1774
|
},
|
|
1775
1775
|
_hideClone: function() {
|
|
1776
1776
|
if (!st) {
|
|
1777
|
-
if (
|
|
1777
|
+
if (P("hideClone", this), y.eventCanceled)
|
|
1778
1778
|
return;
|
|
1779
1779
|
v(A, "display", "none"), this.options.removeCloneOnHide && A.parentNode && A.parentNode.removeChild(A), st = !0;
|
|
1780
1780
|
}
|
|
@@ -1785,7 +1785,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1785
1785
|
return;
|
|
1786
1786
|
}
|
|
1787
1787
|
if (st) {
|
|
1788
|
-
if (
|
|
1788
|
+
if (P("showClone", this), y.eventCanceled)
|
|
1789
1789
|
return;
|
|
1790
1790
|
h.parentNode == x && !this.options.group.revertClone ? x.insertBefore(A, h) : vt ? x.insertBefore(A, vt) : x.appendChild(A), this.options.group.revertClone && this.animate(h, A), v(A, "display", ""), st = !1;
|
|
1791
1791
|
}
|
|
@@ -1795,7 +1795,7 @@ function Ln(i) {
|
|
|
1795
1795
|
i.dataTransfer && (i.dataTransfer.dropEffect = "move"), i.cancelable && i.preventDefault();
|
|
1796
1796
|
}
|
|
1797
1797
|
function ne(i, t, e, n, r, o, a, s) {
|
|
1798
|
-
var l, d = i[
|
|
1798
|
+
var l, d = i[U], u = d.options.onMove, c;
|
|
1799
1799
|
return window.CustomEvent && !nt && !Kt ? l = new CustomEvent("move", {
|
|
1800
1800
|
bubbles: !0,
|
|
1801
1801
|
cancelable: !0
|
|
@@ -1808,28 +1808,28 @@ function Hn() {
|
|
|
1808
1808
|
Re = !1;
|
|
1809
1809
|
}
|
|
1810
1810
|
function In(i, t, e) {
|
|
1811
|
-
var n = T(
|
|
1811
|
+
var n = T(Tt(e.el, 0, e.options, !0)), r = 10;
|
|
1812
1812
|
return t ? i.clientX < n.left - r || i.clientY < n.top && i.clientX < n.right : i.clientY < n.top - r || i.clientY < n.bottom && i.clientX < n.left;
|
|
1813
1813
|
}
|
|
1814
|
-
function
|
|
1814
|
+
function Mn(i, t, e) {
|
|
1815
1815
|
var n = T(Xe(e.el, e.options.draggable)), r = 10;
|
|
1816
1816
|
return t ? i.clientX > n.right + r || i.clientX <= n.right && i.clientY > n.bottom && i.clientX >= n.left : i.clientX > n.right && i.clientY > n.top || i.clientX <= n.right && i.clientY > n.bottom + r;
|
|
1817
1817
|
}
|
|
1818
|
-
function
|
|
1818
|
+
function Pn(i, t, e, n, r, o, a, s) {
|
|
1819
1819
|
var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width, u = n ? e.top : e.left, c = n ? e.bottom : e.right, p = !1;
|
|
1820
1820
|
if (!a) {
|
|
1821
1821
|
if (s && se < d * r) {
|
|
1822
|
-
if (!
|
|
1822
|
+
if (!Yt && (jt === 1 ? l > u + d * o / 2 : l < c - d * o / 2) && (Yt = !0), Yt)
|
|
1823
1823
|
p = !0;
|
|
1824
|
-
else if (
|
|
1825
|
-
return -
|
|
1824
|
+
else if (jt === 1 ? l < u + se : l > c - se)
|
|
1825
|
+
return -jt;
|
|
1826
1826
|
} else if (l > u + d * (1 - r) / 2 && l < c - d * (1 - r) / 2)
|
|
1827
1827
|
return kn(t);
|
|
1828
1828
|
}
|
|
1829
1829
|
return p = p || a, p && (l < u + d * o / 2 || l > c - d * o / 2) ? l > u + d / 2 ? 1 : -1 : 0;
|
|
1830
1830
|
}
|
|
1831
1831
|
function kn(i) {
|
|
1832
|
-
return
|
|
1832
|
+
return z(h) < z(i) ? 1 : -1;
|
|
1833
1833
|
}
|
|
1834
1834
|
function Nn(i) {
|
|
1835
1835
|
for (var t = i.tagName + i.className + i.src + i.href + i.textContent, e = t.length, n = 0; e--; )
|
|
@@ -1850,7 +1850,7 @@ function Fe(i) {
|
|
|
1850
1850
|
return clearTimeout(i);
|
|
1851
1851
|
}
|
|
1852
1852
|
ye && E(document, "touchmove", function(i) {
|
|
1853
|
-
(y.active ||
|
|
1853
|
+
(y.active || At) && i.cancelable && i.preventDefault();
|
|
1854
1854
|
});
|
|
1855
1855
|
y.utils = {
|
|
1856
1856
|
on: E,
|
|
@@ -1863,16 +1863,16 @@ y.utils = {
|
|
|
1863
1863
|
extend: _n,
|
|
1864
1864
|
throttle: Bi,
|
|
1865
1865
|
closest: Z,
|
|
1866
|
-
toggleClass:
|
|
1866
|
+
toggleClass: R,
|
|
1867
1867
|
clone: Fi,
|
|
1868
|
-
index:
|
|
1868
|
+
index: z,
|
|
1869
1869
|
nextTick: le,
|
|
1870
1870
|
cancelNextTick: Fe,
|
|
1871
1871
|
detectDirection: zi,
|
|
1872
|
-
getChild:
|
|
1872
|
+
getChild: Tt
|
|
1873
1873
|
};
|
|
1874
1874
|
y.get = function(i) {
|
|
1875
|
-
return i[
|
|
1875
|
+
return i[U];
|
|
1876
1876
|
};
|
|
1877
1877
|
y.mount = function() {
|
|
1878
1878
|
for (var i = arguments.length, t = new Array(i), e = 0; e < i; e++)
|
|
@@ -1887,7 +1887,7 @@ y.create = function(i, t) {
|
|
|
1887
1887
|
return new y(i, t);
|
|
1888
1888
|
};
|
|
1889
1889
|
y.version = vn;
|
|
1890
|
-
var
|
|
1890
|
+
var S = [], Bt, Ue, ze = !1, Ie, Me, ve, Rt;
|
|
1891
1891
|
function Bn() {
|
|
1892
1892
|
function i() {
|
|
1893
1893
|
this.defaults = {
|
|
@@ -1913,26 +1913,26 @@ function Bn() {
|
|
|
1913
1913
|
this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : (_(document, "pointermove", this._handleFallbackAutoScroll), _(document, "touchmove", this._handleFallbackAutoScroll), _(document, "mousemove", this._handleFallbackAutoScroll)), yi(), de(), En();
|
|
1914
1914
|
},
|
|
1915
1915
|
nulling: function() {
|
|
1916
|
-
ve = Ue =
|
|
1916
|
+
ve = Ue = Bt = ze = Rt = Ie = Me = null, S.length = 0;
|
|
1917
1917
|
},
|
|
1918
1918
|
_handleFallbackAutoScroll: function(e) {
|
|
1919
1919
|
this._handleAutoScroll(e, !0);
|
|
1920
1920
|
},
|
|
1921
1921
|
_handleAutoScroll: function(e, n) {
|
|
1922
1922
|
var r = this, o = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, s = document.elementFromPoint(o, a);
|
|
1923
|
-
if (ve = e, n || this.options.forceAutoScrollFallback || Kt || nt ||
|
|
1924
|
-
|
|
1923
|
+
if (ve = e, n || this.options.forceAutoScrollFallback || Kt || nt || Ft) {
|
|
1924
|
+
Pe(e, this.options, s, n);
|
|
1925
1925
|
var l = lt(s, !0);
|
|
1926
|
-
ze && (!
|
|
1926
|
+
ze && (!Rt || o !== Ie || a !== Me) && (Rt && yi(), Rt = setInterval(function() {
|
|
1927
1927
|
var d = lt(document.elementFromPoint(o, a), !0);
|
|
1928
|
-
d !== l && (l = d, de()),
|
|
1929
|
-
}, 10), Ie = o,
|
|
1928
|
+
d !== l && (l = d, de()), Pe(e, r.options, d, n);
|
|
1929
|
+
}, 10), Ie = o, Me = a);
|
|
1930
1930
|
} else {
|
|
1931
1931
|
if (!this.options.bubbleScroll || lt(s, !0) === q()) {
|
|
1932
1932
|
de();
|
|
1933
1933
|
return;
|
|
1934
1934
|
}
|
|
1935
|
-
|
|
1935
|
+
Pe(e, this.options, lt(s, !1), !1);
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
1938
1938
|
}, it(i, {
|
|
@@ -1941,29 +1941,29 @@ function Bn() {
|
|
|
1941
1941
|
});
|
|
1942
1942
|
}
|
|
1943
1943
|
function de() {
|
|
1944
|
-
|
|
1944
|
+
S.forEach(function(i) {
|
|
1945
1945
|
clearInterval(i.pid);
|
|
1946
|
-
}),
|
|
1946
|
+
}), S = [];
|
|
1947
1947
|
}
|
|
1948
1948
|
function yi() {
|
|
1949
|
-
clearInterval(
|
|
1949
|
+
clearInterval(Rt);
|
|
1950
1950
|
}
|
|
1951
|
-
var
|
|
1951
|
+
var Pe = Bi(function(i, t, e, n) {
|
|
1952
1952
|
if (t.scroll) {
|
|
1953
1953
|
var r = (i.touches ? i.touches[0] : i).clientX, o = (i.touches ? i.touches[0] : i).clientY, a = t.scrollSensitivity, s = t.scrollSpeed, l = q(), d = !1, u;
|
|
1954
|
-
Ue !== e && (Ue = e, de(),
|
|
1955
|
-
var c = 0, p =
|
|
1954
|
+
Ue !== e && (Ue = e, de(), Bt = t.scroll, u = t.scrollFn, Bt === !0 && (Bt = lt(e, !0)));
|
|
1955
|
+
var c = 0, p = Bt;
|
|
1956
1956
|
do {
|
|
1957
|
-
var g = p, f = T(g), m = f.top,
|
|
1958
|
-
g === l ? (dt = Y < ct && (
|
|
1959
|
-
var
|
|
1960
|
-
if (!
|
|
1961
|
-
for (var
|
|
1962
|
-
|
|
1963
|
-
(
|
|
1957
|
+
var g = p, f = T(g), m = f.top, $ = f.bottom, N = f.left, O = f.right, Y = f.width, V = f.height, dt = void 0, G = void 0, ct = g.scrollWidth, Lt = g.scrollHeight, B = v(g), Ht = g.scrollLeft, rt = g.scrollTop;
|
|
1958
|
+
g === l ? (dt = Y < ct && (B.overflowX === "auto" || B.overflowX === "scroll" || B.overflowX === "visible"), G = V < Lt && (B.overflowY === "auto" || B.overflowY === "scroll" || B.overflowY === "visible")) : (dt = Y < ct && (B.overflowX === "auto" || B.overflowX === "scroll"), G = V < Lt && (B.overflowY === "auto" || B.overflowY === "scroll"));
|
|
1959
|
+
var It = dt && (Math.abs(O - r) <= a && Ht + Y < ct) - (Math.abs(N - r) <= a && !!Ht), J = G && (Math.abs($ - o) <= a && rt + V < Lt) - (Math.abs(m - o) <= a && !!rt);
|
|
1960
|
+
if (!S[c])
|
|
1961
|
+
for (var ut = 0; ut <= c; ut++)
|
|
1962
|
+
S[ut] || (S[ut] = {});
|
|
1963
|
+
(S[c].vx != It || S[c].vy != J || S[c].el !== g) && (S[c].el = g, S[c].vx = It, S[c].vy = J, clearInterval(S[c].pid), (It != 0 || J != 0) && (d = !0, S[c].pid = setInterval(function() {
|
|
1964
1964
|
n && this.layer === 0 && y.active._onTouchMove(ve);
|
|
1965
|
-
var Mt =
|
|
1966
|
-
typeof u == "function" && u.call(y.dragged.parentNode[
|
|
1965
|
+
var Mt = S[this.layer].vy ? S[this.layer].vy * s : 0, ot = S[this.layer].vx ? S[this.layer].vx * s : 0;
|
|
1966
|
+
typeof u == "function" && u.call(y.dragged.parentNode[U], ot, Mt, i, ve, S[this.layer].el) !== "continue" || Ri(S[this.layer].el, ot, Mt);
|
|
1967
1967
|
}.bind({
|
|
1968
1968
|
layer: c
|
|
1969
1969
|
}), 24))), c++;
|
|
@@ -1993,7 +1993,7 @@ We.prototype = {
|
|
|
1993
1993
|
onSpill: function(t) {
|
|
1994
1994
|
var e = t.dragEl, n = t.putSortable;
|
|
1995
1995
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
1996
|
-
var r =
|
|
1996
|
+
var r = Tt(this.sortable.el, this.startIndex, this.options);
|
|
1997
1997
|
r ? this.sortable.el.insertBefore(e, r) : this.sortable.el.appendChild(e), this.sortable.animateAll(), n && n.animateAll();
|
|
1998
1998
|
},
|
|
1999
1999
|
drop: Wi
|
|
@@ -2190,12 +2190,20 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
2190
2190
|
`, Un = `
|
|
2191
2191
|
input[type=radio] {
|
|
2192
2192
|
appearance: none;
|
|
2193
|
+
-webkit-appearance: none;
|
|
2193
2194
|
margin: 0;
|
|
2194
2195
|
cursor: pointer;
|
|
2195
2196
|
display: flex;
|
|
2196
2197
|
flex-direction: row;
|
|
2197
2198
|
align-items: center;
|
|
2199
|
+
width: 24px;
|
|
2200
|
+
height: 24px;
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
label span {
|
|
2204
|
+
font-size: small;
|
|
2198
2205
|
}
|
|
2206
|
+
|
|
2199
2207
|
input[type=radio]:after {
|
|
2200
2208
|
display: block;
|
|
2201
2209
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 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,2Z' /%3E%3C/svg%3E");
|
|
@@ -2210,11 +2218,14 @@ input[type=radio]:checked:after {
|
|
|
2210
2218
|
`, zn = `
|
|
2211
2219
|
input[type=checkbox] {
|
|
2212
2220
|
appearance: none;
|
|
2221
|
+
-webkit-appearance: none;
|
|
2213
2222
|
margin: 0;
|
|
2214
2223
|
cursor: pointer;
|
|
2215
2224
|
display: flex;
|
|
2216
2225
|
flex-direction: row;
|
|
2217
2226
|
align-items: center;
|
|
2227
|
+
width: 24px;
|
|
2228
|
+
height: 24px;
|
|
2218
2229
|
}
|
|
2219
2230
|
input[type=checkbox]:after {
|
|
2220
2231
|
display: block;
|
|
@@ -2247,7 +2258,6 @@ summary > .layer {
|
|
|
2247
2258
|
|
|
2248
2259
|
ul[data-group] {
|
|
2249
2260
|
overflow-y: auto;
|
|
2250
|
-
max-height: calc(var(--container-height) * 0.3);
|
|
2251
2261
|
}
|
|
2252
2262
|
|
|
2253
2263
|
[data-type=group] .title {
|
|
@@ -2277,6 +2287,24 @@ ul[data-group] {
|
|
|
2277
2287
|
margin-top: 9px;
|
|
2278
2288
|
}
|
|
2279
2289
|
|
|
2290
|
+
button.delete {
|
|
2291
|
+
height: 24px;
|
|
2292
|
+
width: 32px;
|
|
2293
|
+
padding: 0;
|
|
2294
|
+
display: flex;
|
|
2295
|
+
justify-content: center;
|
|
2296
|
+
font-size: 13px;
|
|
2297
|
+
margin-left: 5%;
|
|
2298
|
+
background: #fdd;
|
|
2299
|
+
color: white;
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
button.delete::before {
|
|
2303
|
+
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23a22' viewBox='0 0 24 24'%3E%3Ctitle%3Edelete-outline%3C/title%3E%3Cpath d='M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z' /%3E%3C/svg%3E");
|
|
2304
|
+
height: 20px;
|
|
2305
|
+
width: 20px;
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2280
2308
|
label[for=optional] {
|
|
2281
2309
|
font-size: 21px;
|
|
2282
2310
|
font-weight: 400;
|
|
@@ -2475,12 +2503,12 @@ li.sortable-drag {
|
|
|
2475
2503
|
li.sortable-ghost {
|
|
2476
2504
|
}
|
|
2477
2505
|
`;
|
|
2478
|
-
var jn = Object.defineProperty, Yn = Object.getOwnPropertyDescriptor,
|
|
2506
|
+
var jn = Object.defineProperty, Yn = Object.getOwnPropertyDescriptor, D = (i, t, e, n) => {
|
|
2479
2507
|
for (var r = n > 1 ? void 0 : n ? Yn(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
2480
2508
|
(a = i[o]) && (r = (n ? a(t, e, r) : a(r)) || r);
|
|
2481
2509
|
return n && r && jn(t, e, r), r;
|
|
2482
2510
|
};
|
|
2483
|
-
let
|
|
2511
|
+
let j = class extends $t {
|
|
2484
2512
|
constructor() {
|
|
2485
2513
|
super(...arguments), this.for = "eox-map", this.layerIdentifier = "id", this.layerTitle = "title", this.sortBy = "layerOrder", this.layerConfig = ["opacity"], this.externalLayerConfig = void 0, this.filterLayers = (i, t, e) => {
|
|
2486
2514
|
let n = [];
|
|
@@ -2507,16 +2535,19 @@ let k = class extends St {
|
|
|
2507
2535
|
};
|
|
2508
2536
|
}
|
|
2509
2537
|
_updateControl(i) {
|
|
2510
|
-
const t = (e) => {
|
|
2511
|
-
e.forEach((
|
|
2512
|
-
n.get(this.layerIdentifier) ||
|
|
2538
|
+
const t = (e, n) => {
|
|
2539
|
+
e.forEach((r) => {
|
|
2540
|
+
n && r.set("_group_id", n), r.get(this.layerIdentifier) || r.set(this.layerIdentifier, r.ol_uid), r.get(this.layerTitle) || r.set(this.layerTitle, `layer ${r.ol_uid}`), r.getLayers && t(
|
|
2541
|
+
r.getLayers().getArray(),
|
|
2542
|
+
r.get("id") || r.ol_uid
|
|
2543
|
+
);
|
|
2513
2544
|
});
|
|
2514
2545
|
};
|
|
2515
2546
|
t(i.getArray()), this.layerCollection = i, this.optionalLayerArray = this.filterLayers(
|
|
2516
2547
|
i.getArray(),
|
|
2517
2548
|
"layerControlOptional",
|
|
2518
2549
|
!0
|
|
2519
|
-
)
|
|
2550
|
+
);
|
|
2520
2551
|
}
|
|
2521
2552
|
_emitLayerconfig(i) {
|
|
2522
2553
|
const t = {
|
|
@@ -2554,23 +2585,8 @@ let k = class extends St {
|
|
|
2554
2585
|
(n) => n.get(this.layerIdentifier) !== i.get(this.layerIdentifier) && n.get("layerControlExclusive")
|
|
2555
2586
|
), e.forEach((n) => {
|
|
2556
2587
|
n.setVisible(!1);
|
|
2557
|
-
});
|
|
2588
|
+
}), this.requestUpdate();
|
|
2558
2589
|
}
|
|
2559
|
-
this.requestUpdate();
|
|
2560
|
-
}
|
|
2561
|
-
// Set up Resize Observer
|
|
2562
|
-
firstUpdated() {
|
|
2563
|
-
this.resizeObserver = new ResizeObserver((i) => {
|
|
2564
|
-
for (let t of i)
|
|
2565
|
-
t.target === this && (this.style.setProperty(
|
|
2566
|
-
"--container-height",
|
|
2567
|
-
`${t.contentRect.height}px`
|
|
2568
|
-
), this.requestUpdate());
|
|
2569
|
-
}), this.resizeObserver.observe(this);
|
|
2570
|
-
}
|
|
2571
|
-
// Deinitialize Resize Observer
|
|
2572
|
-
disconnectedCallback() {
|
|
2573
|
-
this.resizeObserver && (this.resizeObserver.disconnect(), this.resizeObserver = null), super.disconnectedCallback();
|
|
2574
2590
|
}
|
|
2575
2591
|
render() {
|
|
2576
2592
|
var a;
|
|
@@ -2581,7 +2597,9 @@ let k = class extends St {
|
|
|
2581
2597
|
this._updateControl(t);
|
|
2582
2598
|
const e = (s) => {
|
|
2583
2599
|
s.on("change:length", () => {
|
|
2584
|
-
this._currentlySorting ||
|
|
2600
|
+
this._currentlySorting || setTimeout(() => {
|
|
2601
|
+
this._updateControl(s);
|
|
2602
|
+
});
|
|
2585
2603
|
});
|
|
2586
2604
|
};
|
|
2587
2605
|
e(t);
|
|
@@ -2594,8 +2612,8 @@ let k = class extends St {
|
|
|
2594
2612
|
});
|
|
2595
2613
|
};
|
|
2596
2614
|
n(t);
|
|
2597
|
-
const r = (s, l) => {
|
|
2598
|
-
var
|
|
2615
|
+
const r = (s, l, d) => {
|
|
2616
|
+
var u;
|
|
2599
2617
|
return H`
|
|
2600
2618
|
<details open="${s.get("layerControlExpanded") ? !0 : w}">
|
|
2601
2619
|
<summary>
|
|
@@ -2630,9 +2648,16 @@ let k = class extends St {
|
|
|
2630
2648
|
.layer=${s}
|
|
2631
2649
|
.external=${this.externalLayerConfig}
|
|
2632
2650
|
.unstyled="${this.unstyled}"
|
|
2651
|
+
@removeLayer=${() => {
|
|
2652
|
+
d.remove(s);
|
|
2653
|
+
const c = this.renderRoot.querySelector(
|
|
2654
|
+
`[data-layer='${s.get(this.layerIdentifier)}'`
|
|
2655
|
+
);
|
|
2656
|
+
c.parentNode.removeChild(c);
|
|
2657
|
+
}}
|
|
2633
2658
|
></eox-layerconfig>
|
|
2634
2659
|
` : w}
|
|
2635
|
-
${this.externalLayerConfig && ((
|
|
2660
|
+
${this.externalLayerConfig && ((u = s.style_) != null && u.color) ? H`
|
|
2636
2661
|
<button @click=${() => this._emitLayerconfig(s)}>
|
|
2637
2662
|
configure
|
|
2638
2663
|
</button>
|
|
@@ -2644,26 +2669,27 @@ let k = class extends St {
|
|
|
2644
2669
|
...s.getLayers().getArray()
|
|
2645
2670
|
].reverse()
|
|
2646
2671
|
),
|
|
2647
|
-
s.get(this.layerIdentifier)
|
|
2672
|
+
s.get(this.layerIdentifier),
|
|
2673
|
+
s.getLayers()
|
|
2648
2674
|
)}
|
|
2649
2675
|
` : w}
|
|
2650
2676
|
</details>
|
|
2651
2677
|
`;
|
|
2652
|
-
}, o = (s, l) => H`
|
|
2678
|
+
}, o = (s, l, d) => H`
|
|
2653
2679
|
<ul data-group="${l ?? w}">
|
|
2654
2680
|
${Ve(
|
|
2655
2681
|
s,
|
|
2656
|
-
(
|
|
2657
|
-
(
|
|
2658
|
-
var
|
|
2682
|
+
(u) => u.get(this.layerIdentifier),
|
|
2683
|
+
(u) => {
|
|
2684
|
+
var c;
|
|
2659
2685
|
return H`
|
|
2660
2686
|
<li
|
|
2661
|
-
data-layer="${
|
|
2662
|
-
data-disabled="${
|
|
2663
|
-
data-type="${this.getLayerType(
|
|
2664
|
-
data-layerconfig="${((
|
|
2687
|
+
data-layer="${u.get(this.layerIdentifier)}"
|
|
2688
|
+
data-disabled="${u.get("layerControlDisable") || w}"
|
|
2689
|
+
data-type="${this.getLayerType(u, this.olMap)}"
|
|
2690
|
+
data-layerconfig="${((c = this.layerConfig) == null ? void 0 : c.length) > 0}"
|
|
2665
2691
|
>
|
|
2666
|
-
${r(
|
|
2692
|
+
${r(u, l, d)}
|
|
2667
2693
|
</li>
|
|
2668
2694
|
`;
|
|
2669
2695
|
}
|
|
@@ -2680,10 +2706,12 @@ let k = class extends St {
|
|
|
2680
2706
|
${this.layerCollection.getArray().length > 10 ? H`<input type="text" placeholder="Find layer" />` : w}
|
|
2681
2707
|
<div class="layers">
|
|
2682
2708
|
${o(
|
|
2683
|
-
this.preFilterLayers(t.getArray())
|
|
2709
|
+
this.preFilterLayers(t.getArray()),
|
|
2710
|
+
null,
|
|
2711
|
+
this.layerCollection
|
|
2684
2712
|
)}
|
|
2685
2713
|
</div>
|
|
2686
|
-
${
|
|
2714
|
+
${Mi(
|
|
2687
2715
|
((a = this.optionalLayerArray) == null ? void 0 : a.length) > 0,
|
|
2688
2716
|
() => H`
|
|
2689
2717
|
<label for="optional">Optional layers</label>
|
|
@@ -2705,10 +2733,10 @@ let k = class extends St {
|
|
|
2705
2733
|
const s = this.optionalLayerArray.find(
|
|
2706
2734
|
(l) => l.get(this.layerIdentifier) === this.shadowRoot.querySelector("select[name=optional]").value
|
|
2707
2735
|
);
|
|
2708
|
-
if (s.get("
|
|
2736
|
+
if (s.get("_group_id")) {
|
|
2709
2737
|
const l = this.findLayerById(
|
|
2710
2738
|
this.layerCollection.getArray(),
|
|
2711
|
-
s.get("
|
|
2739
|
+
s.get("_group_id")
|
|
2712
2740
|
);
|
|
2713
2741
|
l.getLayers().remove(s), l.getLayers().insertAt(l.getLayers().getLength(), s);
|
|
2714
2742
|
} else
|
|
@@ -2742,9 +2770,9 @@ let k = class extends St {
|
|
|
2742
2770
|
const n = this.findLayerById(
|
|
2743
2771
|
this.layerCollection.getArray(),
|
|
2744
2772
|
e
|
|
2745
|
-
)
|
|
2746
|
-
return
|
|
2747
|
-
...
|
|
2773
|
+
);
|
|
2774
|
+
return n ? [
|
|
2775
|
+
...n.getLayers().getArray().map((o) => o.get(this.layerIdentifier))
|
|
2748
2776
|
].reverse() : void 0;
|
|
2749
2777
|
} else
|
|
2750
2778
|
return [
|
|
@@ -2754,10 +2782,13 @@ let k = class extends St {
|
|
|
2754
2782
|
set: (n) => {
|
|
2755
2783
|
n.toArray().reverse().forEach((o, a) => {
|
|
2756
2784
|
if (e) {
|
|
2757
|
-
const
|
|
2785
|
+
const s = this.findLayerById(
|
|
2758
2786
|
this.layerCollection.getArray(),
|
|
2759
2787
|
e
|
|
2760
|
-
)
|
|
2788
|
+
);
|
|
2789
|
+
if (!s)
|
|
2790
|
+
return;
|
|
2791
|
+
const l = s.getLayers(), d = this.findLayerById(
|
|
2761
2792
|
l.getArray(),
|
|
2762
2793
|
o
|
|
2763
2794
|
);
|
|
@@ -2777,46 +2808,40 @@ let k = class extends St {
|
|
|
2777
2808
|
});
|
|
2778
2809
|
}
|
|
2779
2810
|
};
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
],
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
],
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
],
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
],
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
],
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
],
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
],
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
],
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
],
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
],
|
|
2810
|
-
|
|
2811
|
-
N({ type: Boolean })
|
|
2812
|
-
], k.prototype, "externalLayerConfig", 2);
|
|
2813
|
-
$([
|
|
2814
|
-
N({ type: Boolean })
|
|
2815
|
-
], k.prototype, "unstyled", 2);
|
|
2816
|
-
k = $([
|
|
2811
|
+
D([
|
|
2812
|
+
qt()
|
|
2813
|
+
], j.prototype, "olMap", 2);
|
|
2814
|
+
D([
|
|
2815
|
+
qt()
|
|
2816
|
+
], j.prototype, "layerCollection", 2);
|
|
2817
|
+
D([
|
|
2818
|
+
qt()
|
|
2819
|
+
], j.prototype, "optionalLayerArray", 2);
|
|
2820
|
+
D([
|
|
2821
|
+
k()
|
|
2822
|
+
], j.prototype, "for", 2);
|
|
2823
|
+
D([
|
|
2824
|
+
k()
|
|
2825
|
+
], j.prototype, "layerIdentifier", 2);
|
|
2826
|
+
D([
|
|
2827
|
+
k()
|
|
2828
|
+
], j.prototype, "layerTitle", 2);
|
|
2829
|
+
D([
|
|
2830
|
+
k()
|
|
2831
|
+
], j.prototype, "sortBy", 2);
|
|
2832
|
+
D([
|
|
2833
|
+
k({ type: Array })
|
|
2834
|
+
], j.prototype, "layerConfig", 2);
|
|
2835
|
+
D([
|
|
2836
|
+
k({ type: Boolean })
|
|
2837
|
+
], j.prototype, "externalLayerConfig", 2);
|
|
2838
|
+
D([
|
|
2839
|
+
k({ type: Boolean })
|
|
2840
|
+
], j.prototype, "unstyled", 2);
|
|
2841
|
+
j = D([
|
|
2817
2842
|
Oi("eox-layercontrol")
|
|
2818
|
-
],
|
|
2819
|
-
let Q = class extends
|
|
2843
|
+
], j);
|
|
2844
|
+
let Q = class extends $t {
|
|
2820
2845
|
constructor() {
|
|
2821
2846
|
super(...arguments), this._configList = {};
|
|
2822
2847
|
}
|
|
@@ -2847,11 +2872,18 @@ let Q = class extends St {
|
|
|
2847
2872
|
${Gi}
|
|
2848
2873
|
${!this.unstyled && Zi}
|
|
2849
2874
|
</style>
|
|
2850
|
-
${
|
|
2875
|
+
${Mi(
|
|
2851
2876
|
this._currentLayer,
|
|
2852
2877
|
() => H`
|
|
2853
2878
|
<div>
|
|
2854
2879
|
<slot></slot>
|
|
2880
|
+
<div class="slider-control">
|
|
2881
|
+
<div class="slider-property">Remove</div>
|
|
2882
|
+
<button
|
|
2883
|
+
class="delete"
|
|
2884
|
+
@click="${() => this.dispatchEvent(new CustomEvent("removeLayer"))}"
|
|
2885
|
+
></button>
|
|
2886
|
+
</div>
|
|
2855
2887
|
${this.for ? H`layer: ${this._currentLayer.get("name")}` : w}
|
|
2856
2888
|
${Ve(
|
|
2857
2889
|
this.layerConfig.filter(
|
|
@@ -2899,34 +2931,34 @@ let Q = class extends St {
|
|
|
2899
2931
|
`;
|
|
2900
2932
|
}
|
|
2901
2933
|
};
|
|
2902
|
-
|
|
2903
|
-
|
|
2934
|
+
D([
|
|
2935
|
+
k()
|
|
2904
2936
|
], Q.prototype, "for", 2);
|
|
2905
|
-
|
|
2906
|
-
|
|
2937
|
+
D([
|
|
2938
|
+
k({ type: Array })
|
|
2907
2939
|
], Q.prototype, "layerConfig", 2);
|
|
2908
|
-
|
|
2909
|
-
|
|
2940
|
+
D([
|
|
2941
|
+
k({ type: Object, attribute: !1 })
|
|
2910
2942
|
], Q.prototype, "layerControl", 2);
|
|
2911
|
-
|
|
2912
|
-
|
|
2943
|
+
D([
|
|
2944
|
+
k({ type: Object, attribute: !1 })
|
|
2913
2945
|
], Q.prototype, "layer", 2);
|
|
2914
|
-
|
|
2915
|
-
|
|
2946
|
+
D([
|
|
2947
|
+
k({ type: Boolean })
|
|
2916
2948
|
], Q.prototype, "external", 2);
|
|
2917
|
-
|
|
2918
|
-
|
|
2949
|
+
D([
|
|
2950
|
+
k({ type: Boolean })
|
|
2919
2951
|
], Q.prototype, "unstyled", 2);
|
|
2920
|
-
|
|
2921
|
-
|
|
2952
|
+
D([
|
|
2953
|
+
qt()
|
|
2922
2954
|
], Q.prototype, "_currentLayer", 2);
|
|
2923
|
-
|
|
2924
|
-
|
|
2955
|
+
D([
|
|
2956
|
+
qt()
|
|
2925
2957
|
], Q.prototype, "_configList", 2);
|
|
2926
|
-
Q =
|
|
2958
|
+
Q = D([
|
|
2927
2959
|
Oi("eox-layerconfig")
|
|
2928
2960
|
], Q);
|
|
2929
2961
|
export {
|
|
2930
2962
|
Q as EOxLayerConfig,
|
|
2931
|
-
|
|
2963
|
+
j as EOxLayerControl
|
|
2932
2964
|
};
|