@eox/layercontrol 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eox-layercontrol.js +1069 -755
- package/dist/eox-layercontrol.umd.cjs +433 -131
- package/package.json +1 -1
package/dist/eox-layercontrol.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
7
|
-
let
|
|
6
|
+
const zt = window, Se = zt.ShadowRoot && (zt.ShadyCSS === void 0 || zt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ri = Symbol(), Me = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let Bi = class {
|
|
8
8
|
constructor(t, e, n) {
|
|
9
9
|
if (this._$cssResult$ = !0, n !== ri)
|
|
10
10
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -13,7 +13,7 @@ let Ri = class {
|
|
|
13
13
|
get styleSheet() {
|
|
14
14
|
let t = this.o;
|
|
15
15
|
const e = this.t;
|
|
16
|
-
if (
|
|
16
|
+
if (Se && t === void 0) {
|
|
17
17
|
const n = e !== void 0 && e.length === 1;
|
|
18
18
|
n && (t = Me.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && Me.set(e, t));
|
|
19
19
|
}
|
|
@@ -23,27 +23,27 @@ let Ri = class {
|
|
|
23
23
|
return this.cssText;
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
const n = document.createElement("style"), r =
|
|
26
|
+
const Ri = (i) => new Bi(typeof i == "string" ? i : i + "", void 0, ri), Ui = (i, t) => {
|
|
27
|
+
Se ? i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
|
|
28
|
+
const n = document.createElement("style"), r = zt.litNonce;
|
|
29
29
|
r !== void 0 && n.setAttribute("nonce", r), n.textContent = e.cssText, i.appendChild(n);
|
|
30
30
|
});
|
|
31
|
-
},
|
|
31
|
+
}, Ne = Se ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
|
|
32
32
|
let e = "";
|
|
33
33
|
for (const n of t.cssRules)
|
|
34
34
|
e += n.cssText;
|
|
35
|
-
return
|
|
35
|
+
return Ri(e);
|
|
36
36
|
})(i) : i;
|
|
37
37
|
/**
|
|
38
38
|
* @license
|
|
39
39
|
* Copyright 2017 Google LLC
|
|
40
40
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
41
41
|
*/
|
|
42
|
-
var
|
|
43
|
-
const
|
|
42
|
+
var ae;
|
|
43
|
+
const Zt = window, ke = Zt.trustedTypes, Fi = ke ? ke.emptyScript : "", Ve = Zt.reactiveElementPolyfillSupport, Ee = { toAttribute(i, t) {
|
|
44
44
|
switch (t) {
|
|
45
45
|
case Boolean:
|
|
46
|
-
i = i ?
|
|
46
|
+
i = i ? Fi : null;
|
|
47
47
|
break;
|
|
48
48
|
case Object:
|
|
49
49
|
case Array:
|
|
@@ -68,8 +68,8 @@ const qt = window, Be = qt.trustedTypes, Vi = Be ? Be.emptyScript : "", Re = qt.
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
return e;
|
|
71
|
-
} }, oi = (i, t) => t !== i && (t == t || i == i),
|
|
72
|
-
let
|
|
71
|
+
} }, oi = (i, t) => t !== i && (t == t || i == i), se = { attribute: !0, type: String, converter: Ee, reflect: !1, hasChanged: oi }, we = "finalized";
|
|
72
|
+
let ft = 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
|
}
|
|
@@ -85,7 +85,7 @@ let pt = class extends HTMLElement {
|
|
|
85
85
|
r !== void 0 && (this._$Ev.set(r, n), t.push(r));
|
|
86
86
|
}), t;
|
|
87
87
|
}
|
|
88
|
-
static createProperty(t, e =
|
|
88
|
+
static createProperty(t, e = se) {
|
|
89
89
|
if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
|
|
90
90
|
const n = typeof t == "symbol" ? Symbol() : "__" + t, r = this.getPropertyDescriptor(t, n, e);
|
|
91
91
|
r !== void 0 && Object.defineProperty(this.prototype, t, r);
|
|
@@ -100,12 +100,12 @@ let pt = class extends HTMLElement {
|
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(t) {
|
|
103
|
-
return this.elementProperties.get(t) ||
|
|
103
|
+
return this.elementProperties.get(t) || se;
|
|
104
104
|
}
|
|
105
105
|
static finalize() {
|
|
106
|
-
if (this.hasOwnProperty(
|
|
106
|
+
if (this.hasOwnProperty(we))
|
|
107
107
|
return !1;
|
|
108
|
-
this[
|
|
108
|
+
this[we] = !0;
|
|
109
109
|
const t = Object.getPrototypeOf(this);
|
|
110
110
|
if (t.finalize(), t.h !== void 0 && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
|
|
111
111
|
const e = this.properties, n = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
|
|
@@ -119,9 +119,9 @@ let pt = class extends HTMLElement {
|
|
|
119
119
|
if (Array.isArray(t)) {
|
|
120
120
|
const n = new Set(t.flat(1 / 0).reverse());
|
|
121
121
|
for (const r of n)
|
|
122
|
-
e.unshift(
|
|
122
|
+
e.unshift(Ne(r));
|
|
123
123
|
} else
|
|
124
|
-
t !== void 0 && e.push(
|
|
124
|
+
t !== void 0 && e.push(Ne(t));
|
|
125
125
|
return e;
|
|
126
126
|
}
|
|
127
127
|
static _$Ep(t, e) {
|
|
@@ -169,20 +169,20 @@ let pt = class extends HTMLElement {
|
|
|
169
169
|
attributeChangedCallback(t, e, n) {
|
|
170
170
|
this._$AK(t, n);
|
|
171
171
|
}
|
|
172
|
-
_$EO(t, e, n =
|
|
172
|
+
_$EO(t, e, n = se) {
|
|
173
173
|
var r;
|
|
174
174
|
const o = this.constructor._$Ep(t, n);
|
|
175
175
|
if (o !== void 0 && n.reflect === !0) {
|
|
176
|
-
const
|
|
177
|
-
this._$El = t,
|
|
176
|
+
const a = (((r = n.converter) === null || r === void 0 ? void 0 : r.toAttribute) !== void 0 ? n.converter : Ee).toAttribute(e, n.type);
|
|
177
|
+
this._$El = t, a == null ? this.removeAttribute(o) : this.setAttribute(o, a), this._$El = null;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
_$AK(t, e) {
|
|
181
181
|
var n;
|
|
182
182
|
const r = this.constructor, o = r._$Ev.get(t);
|
|
183
183
|
if (o !== void 0 && this._$El !== o) {
|
|
184
|
-
const
|
|
185
|
-
this._$El = o, this[o] =
|
|
184
|
+
const a = r.getPropertyOptions(o), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((n = a.converter) === null || n === void 0 ? void 0 : n.fromAttribute) !== void 0 ? a.converter : Ee;
|
|
185
|
+
this._$El = o, this[o] = l.fromAttribute(e, a.type), this._$El = null;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
requestUpdate(t, e, n) {
|
|
@@ -248,73 +248,73 @@ let pt = class extends HTMLElement {
|
|
|
248
248
|
firstUpdated(t) {
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
|
|
251
|
+
ft[we] = !0, ft.elementProperties = /* @__PURE__ */ new Map(), ft.elementStyles = [], ft.shadowRootOptions = { mode: "open" }, Ve == null || Ve({ ReactiveElement: ft }), ((ae = Zt.reactiveElementVersions) !== null && ae !== void 0 ? ae : Zt.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 le;
|
|
258
|
-
const
|
|
259
|
-
\f\r]`,
|
|
260
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Fe = /'/g,
|
|
258
|
+
const qt = window, bt = qt.trustedTypes, Be = bt ? bt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Kt = "$lit$", G = `lit$${(Math.random() + "").slice(9)}$`, De = "?" + G, zi = `<${De}>`, dt = document, Pt = () => dt.createComment(""), It = (i) => i === null || typeof i != "object" && typeof i != "function", ai = Array.isArray, si = (i) => ai(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", de = `[
|
|
259
|
+
\f\r]`, St = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Re = /-->/g, Ue = />/g, it = RegExp(`>|${de}(?:([^\\s"'>=/]+)(${de}*=${de}*(?:[^
|
|
260
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Fe = /'/g, ze = /"/g, li = /^(?:script|style|textarea|title)$/i, ji = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), L = ji(1), z = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), je = /* @__PURE__ */ new WeakMap(), lt = dt.createTreeWalker(dt, 129, null, !1), di = (i, t) => {
|
|
261
261
|
const e = i.length - 1, n = [];
|
|
262
|
-
let r, o = t === 2 ? "<svg>" : "",
|
|
263
|
-
for (let
|
|
264
|
-
const d = i[
|
|
265
|
-
let
|
|
266
|
-
for (;
|
|
267
|
-
|
|
268
|
-
const
|
|
269
|
-
o +=
|
|
270
|
-
}
|
|
271
|
-
const
|
|
262
|
+
let r, o = t === 2 ? "<svg>" : "", a = St;
|
|
263
|
+
for (let s = 0; s < e; s++) {
|
|
264
|
+
const d = i[s];
|
|
265
|
+
let p, h, c = -1, m = 0;
|
|
266
|
+
for (; m < d.length && (a.lastIndex = m, h = a.exec(d), h !== null); )
|
|
267
|
+
m = a.lastIndex, a === St ? h[1] === "!--" ? a = Re : h[1] !== void 0 ? a = Ue : h[2] !== void 0 ? (li.test(h[2]) && (r = RegExp("</" + h[2], "g")), a = it) : h[3] !== void 0 && (a = it) : a === it ? h[0] === ">" ? (a = r ?? St, c = -1) : h[1] === void 0 ? c = -2 : (c = a.lastIndex - h[2].length, p = h[1], a = h[3] === void 0 ? it : h[3] === '"' ? ze : Fe) : a === ze || a === Fe ? a = it : a === Re || a === Ue ? a = St : (a = it, r = void 0);
|
|
268
|
+
const f = a === it && i[s + 1].startsWith("/>") ? " " : "";
|
|
269
|
+
o += a === St ? d + zi : c >= 0 ? (n.push(p), d.slice(0, c) + Kt + d.slice(c) + G + f) : d + G + (c === -2 ? (n.push(void 0), s) : f);
|
|
270
|
+
}
|
|
271
|
+
const l = o + (i[e] || "<?>") + (t === 2 ? "</svg>" : "");
|
|
272
272
|
if (!Array.isArray(i) || !i.hasOwnProperty("raw"))
|
|
273
273
|
throw Error("invalid template strings array");
|
|
274
|
-
return [
|
|
274
|
+
return [Be !== void 0 ? Be.createHTML(l) : l, n];
|
|
275
275
|
};
|
|
276
276
|
class Mt {
|
|
277
277
|
constructor({ strings: t, _$litType$: e }, n) {
|
|
278
278
|
let r;
|
|
279
279
|
this.parts = [];
|
|
280
|
-
let o = 0,
|
|
281
|
-
const
|
|
280
|
+
let o = 0, a = 0;
|
|
281
|
+
const l = t.length - 1, s = this.parts, [d, p] = di(t, e);
|
|
282
282
|
if (this.el = Mt.createElement(d, n), lt.currentNode = this.el.content, e === 2) {
|
|
283
|
-
const
|
|
284
|
-
c.remove(),
|
|
283
|
+
const h = this.el.content, c = h.firstChild;
|
|
284
|
+
c.remove(), h.append(...c.childNodes);
|
|
285
285
|
}
|
|
286
|
-
for (; (r = lt.nextNode()) !== null &&
|
|
286
|
+
for (; (r = lt.nextNode()) !== null && s.length < l; ) {
|
|
287
287
|
if (r.nodeType === 1) {
|
|
288
288
|
if (r.hasAttributes()) {
|
|
289
|
-
const
|
|
289
|
+
const h = [];
|
|
290
290
|
for (const c of r.getAttributeNames())
|
|
291
|
-
if (c.endsWith(Kt) || c.startsWith(
|
|
292
|
-
const
|
|
293
|
-
if (
|
|
294
|
-
const
|
|
295
|
-
|
|
291
|
+
if (c.endsWith(Kt) || c.startsWith(G)) {
|
|
292
|
+
const m = p[a++];
|
|
293
|
+
if (h.push(c), m !== void 0) {
|
|
294
|
+
const f = r.getAttribute(m.toLowerCase() + Kt).split(G), v = /([.?@])?(.*)/.exec(m);
|
|
295
|
+
s.push({ type: 1, index: o, name: v[2], strings: f, ctor: v[1] === "." ? hi : v[1] === "?" ? ci : v[1] === "@" ? pi : Nt });
|
|
296
296
|
} else
|
|
297
|
-
|
|
297
|
+
s.push({ type: 6, index: o });
|
|
298
298
|
}
|
|
299
|
-
for (const c of
|
|
299
|
+
for (const c of h)
|
|
300
300
|
r.removeAttribute(c);
|
|
301
301
|
}
|
|
302
302
|
if (li.test(r.tagName)) {
|
|
303
|
-
const
|
|
303
|
+
const h = r.textContent.split(G), c = h.length - 1;
|
|
304
304
|
if (c > 0) {
|
|
305
|
-
r.textContent =
|
|
306
|
-
for (let
|
|
307
|
-
r.append(
|
|
308
|
-
r.append(
|
|
305
|
+
r.textContent = bt ? bt.emptyScript : "";
|
|
306
|
+
for (let m = 0; m < c; m++)
|
|
307
|
+
r.append(h[m], Pt()), lt.nextNode(), s.push({ type: 2, index: ++o });
|
|
308
|
+
r.append(h[c], Pt());
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
} else if (r.nodeType === 8)
|
|
312
|
-
if (r.data ===
|
|
313
|
-
|
|
312
|
+
if (r.data === De)
|
|
313
|
+
s.push({ type: 2, index: o });
|
|
314
314
|
else {
|
|
315
|
-
let
|
|
316
|
-
for (; (
|
|
317
|
-
|
|
315
|
+
let h = -1;
|
|
316
|
+
for (; (h = r.data.indexOf(G, h + 1)) !== -1; )
|
|
317
|
+
s.push({ type: 7, index: o }), h += G.length - 1;
|
|
318
318
|
}
|
|
319
319
|
o++;
|
|
320
320
|
}
|
|
@@ -324,15 +324,15 @@ class Mt {
|
|
|
324
324
|
return n.innerHTML = t, n;
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
var r, o,
|
|
329
|
-
if (t ===
|
|
327
|
+
function ut(i, t, e = i, n) {
|
|
328
|
+
var r, o, a, l;
|
|
329
|
+
if (t === z)
|
|
330
330
|
return t;
|
|
331
|
-
let
|
|
332
|
-
const d =
|
|
333
|
-
return (
|
|
331
|
+
let s = n !== void 0 ? (r = e._$Co) === null || r === void 0 ? void 0 : r[n] : e._$Cl;
|
|
332
|
+
const d = It(t) ? void 0 : t._$litDirective$;
|
|
333
|
+
return (s == null ? void 0 : s.constructor) !== d && ((o = s == null ? void 0 : s._$AO) === null || o === void 0 || o.call(s, !1), d === void 0 ? s = void 0 : (s = new d(i), s._$AT(i, e, n)), n !== void 0 ? ((a = (l = e)._$Co) !== null && a !== void 0 ? a : l._$Co = [])[n] = s : e._$Cl = s), s !== void 0 && (t = ut(i, s._$AS(i, t.values), s, n)), t;
|
|
334
334
|
}
|
|
335
|
-
class
|
|
335
|
+
class ui {
|
|
336
336
|
constructor(t, e) {
|
|
337
337
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
338
338
|
}
|
|
@@ -346,13 +346,13 @@ class hi {
|
|
|
346
346
|
var e;
|
|
347
347
|
const { el: { content: n }, parts: r } = this._$AD, o = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : dt).importNode(n, !0);
|
|
348
348
|
lt.currentNode = o;
|
|
349
|
-
let
|
|
349
|
+
let a = lt.nextNode(), l = 0, s = 0, d = r[0];
|
|
350
350
|
for (; d !== void 0; ) {
|
|
351
|
-
if (
|
|
352
|
-
let
|
|
353
|
-
d.type === 2 ?
|
|
351
|
+
if (l === d.index) {
|
|
352
|
+
let p;
|
|
353
|
+
d.type === 2 ? p = new Et(a, a.nextSibling, this, t) : d.type === 1 ? p = new d.ctor(a, d.name, d.strings, this, t) : d.type === 6 && (p = new fi(a, this, t)), this._$AV.push(p), d = r[++s];
|
|
354
354
|
}
|
|
355
|
-
|
|
355
|
+
l !== (d == null ? void 0 : d.index) && (a = lt.nextNode(), l++);
|
|
356
356
|
}
|
|
357
357
|
return lt.currentNode = dt, o;
|
|
358
358
|
}
|
|
@@ -383,7 +383,7 @@ class Et {
|
|
|
383
383
|
return this._$AB;
|
|
384
384
|
}
|
|
385
385
|
_$AI(t, e = this) {
|
|
386
|
-
t =
|
|
386
|
+
t = ut(this, t, e), It(t) ? t === E || t == null || t === "" ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== z && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : si(t) ? this.T(t) : this._(t);
|
|
387
387
|
}
|
|
388
388
|
k(t) {
|
|
389
389
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -392,7 +392,7 @@ class Et {
|
|
|
392
392
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
|
393
393
|
}
|
|
394
394
|
_(t) {
|
|
395
|
-
this._$AH !== E &&
|
|
395
|
+
this._$AH !== E && It(this._$AH) ? this._$AA.nextSibling.data = t : this.$(dt.createTextNode(t)), this._$AH = t;
|
|
396
396
|
}
|
|
397
397
|
g(t) {
|
|
398
398
|
var e;
|
|
@@ -400,20 +400,20 @@ class Et {
|
|
|
400
400
|
if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === o)
|
|
401
401
|
this._$AH.v(n);
|
|
402
402
|
else {
|
|
403
|
-
const
|
|
404
|
-
|
|
403
|
+
const a = new ui(o, this), l = a.u(this.options);
|
|
404
|
+
a.v(n), this.$(l), this._$AH = a;
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
_$AC(t) {
|
|
408
|
-
let e =
|
|
409
|
-
return e === void 0 &&
|
|
408
|
+
let e = je.get(t.strings);
|
|
409
|
+
return e === void 0 && je.set(t.strings, e = new Mt(t)), e;
|
|
410
410
|
}
|
|
411
411
|
T(t) {
|
|
412
|
-
|
|
412
|
+
ai(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 Et(this.k(
|
|
416
|
+
r === e.length ? e.push(n = new Et(this.k(Pt()), this.k(Pt()), 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 Et {
|
|
|
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 Nt {
|
|
432
432
|
constructor(t, e, n, r, o) {
|
|
433
433
|
this.type = 1, this._$AH = E, 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 = E;
|
|
434
434
|
}
|
|
@@ -440,22 +440,22 @@ class Ht {
|
|
|
440
440
|
}
|
|
441
441
|
_$AI(t, e = this, n, r) {
|
|
442
442
|
const o = this.strings;
|
|
443
|
-
let
|
|
443
|
+
let a = !1;
|
|
444
444
|
if (o === void 0)
|
|
445
|
-
t =
|
|
445
|
+
t = ut(this, t, e, 0), a = !It(t) || t !== this._$AH && t !== z, a && (this._$AH = t);
|
|
446
446
|
else {
|
|
447
|
-
const
|
|
448
|
-
let
|
|
449
|
-
for (t = o[0],
|
|
450
|
-
d =
|
|
447
|
+
const l = t;
|
|
448
|
+
let s, d;
|
|
449
|
+
for (t = o[0], s = 0; s < o.length - 1; s++)
|
|
450
|
+
d = ut(this, l[n + s], e, s), d === z && (d = this._$AH[s]), a || (a = !It(d) || d !== this._$AH[s]), d === E ? t = E : t !== E && (t += (d ?? "") + o[s + 1]), this._$AH[s] = d;
|
|
451
451
|
}
|
|
452
|
-
|
|
452
|
+
a && !r && this.j(t);
|
|
453
453
|
}
|
|
454
454
|
j(t) {
|
|
455
455
|
t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
|
-
class
|
|
458
|
+
class hi extends Nt {
|
|
459
459
|
constructor() {
|
|
460
460
|
super(...arguments), this.type = 3;
|
|
461
461
|
}
|
|
@@ -463,32 +463,32 @@ class ui extends Ht {
|
|
|
463
463
|
this.element[this.name] = t === E ? void 0 : t;
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
const
|
|
467
|
-
class ci extends
|
|
466
|
+
const Xi = bt ? bt.emptyScript : "";
|
|
467
|
+
class ci extends Nt {
|
|
468
468
|
constructor() {
|
|
469
469
|
super(...arguments), this.type = 4;
|
|
470
470
|
}
|
|
471
471
|
j(t) {
|
|
472
|
-
t && t !== E ? this.element.setAttribute(this.name,
|
|
472
|
+
t && t !== E ? this.element.setAttribute(this.name, Xi) : this.element.removeAttribute(this.name);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
class
|
|
475
|
+
class pi extends Nt {
|
|
476
476
|
constructor(t, e, n, r, o) {
|
|
477
477
|
super(t, e, n, r, o), this.type = 5;
|
|
478
478
|
}
|
|
479
479
|
_$AI(t, e = this) {
|
|
480
480
|
var n;
|
|
481
|
-
if ((t = (n =
|
|
481
|
+
if ((t = (n = ut(this, t, e, 0)) !== null && n !== void 0 ? n : E) === z)
|
|
482
482
|
return;
|
|
483
|
-
const r = this._$AH, o = t === E && r !== E || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive,
|
|
484
|
-
o && this.element.removeEventListener(this.name, this, r),
|
|
483
|
+
const r = this._$AH, o = t === E && r !== E || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, a = t !== E && (r === E || o);
|
|
484
|
+
o && this.element.removeEventListener(this.name, this, r), a && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
485
485
|
}
|
|
486
486
|
handleEvent(t) {
|
|
487
487
|
var e, n;
|
|
488
488
|
typeof this._$AH == "function" ? this._$AH.call((n = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && n !== void 0 ? n : this.element, t) : this._$AH.handleEvent(t);
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
class
|
|
491
|
+
class fi {
|
|
492
492
|
constructor(t, e, n) {
|
|
493
493
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = n;
|
|
494
494
|
}
|
|
@@ -496,28 +496,28 @@ class pi {
|
|
|
496
496
|
return this._$AM._$AU;
|
|
497
497
|
}
|
|
498
498
|
_$AI(t) {
|
|
499
|
-
|
|
499
|
+
ut(this, t);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
const
|
|
503
|
-
Xe == null || Xe(Mt, Et), ((le =
|
|
504
|
-
const
|
|
502
|
+
const Yi = { O: Kt, P: G, A: De, C: 1, M: di, L: ui, D: si, R: ut, I: Et, V: Nt, H: ci, N: pi, U: hi, F: fi }, Xe = qt.litHtmlPolyfillSupport;
|
|
503
|
+
Xe == null || Xe(Mt, Et), ((le = qt.litHtmlVersions) !== null && le !== void 0 ? le : qt.litHtmlVersions = []).push("2.7.4");
|
|
504
|
+
const Wi = (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
|
-
let
|
|
508
|
-
if (
|
|
509
|
-
const
|
|
510
|
-
o._$litPart$ =
|
|
507
|
+
let a = o._$litPart$;
|
|
508
|
+
if (a === void 0) {
|
|
509
|
+
const l = (r = e == null ? void 0 : e.renderBefore) !== null && r !== void 0 ? r : null;
|
|
510
|
+
o._$litPart$ = a = new Et(t.insertBefore(Pt(), l), l, void 0, e ?? {});
|
|
511
511
|
}
|
|
512
|
-
return
|
|
512
|
+
return a._$AI(i), a;
|
|
513
513
|
};
|
|
514
514
|
/**
|
|
515
515
|
* @license
|
|
516
516
|
* Copyright 2017 Google LLC
|
|
517
517
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
518
518
|
*/
|
|
519
|
-
var
|
|
520
|
-
let
|
|
519
|
+
var ue, he;
|
|
520
|
+
let vt = class extends ft {
|
|
521
521
|
constructor() {
|
|
522
522
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
523
523
|
}
|
|
@@ -528,7 +528,7 @@ let mt = class extends pt {
|
|
|
528
528
|
}
|
|
529
529
|
update(t) {
|
|
530
530
|
const e = this.render();
|
|
531
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
531
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Wi(e, this.renderRoot, this.renderOptions);
|
|
532
532
|
}
|
|
533
533
|
connectedCallback() {
|
|
534
534
|
var t;
|
|
@@ -539,13 +539,13 @@ let mt = class extends pt {
|
|
|
539
539
|
super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
|
|
540
540
|
}
|
|
541
541
|
render() {
|
|
542
|
-
return
|
|
542
|
+
return z;
|
|
543
543
|
}
|
|
544
544
|
};
|
|
545
|
-
|
|
545
|
+
vt.finalized = !0, vt._$litElement$ = !0, (ue = globalThis.litElementHydrateSupport) === null || ue === void 0 || ue.call(globalThis, { LitElement: vt });
|
|
546
546
|
const Ye = globalThis.litElementPolyfillSupport;
|
|
547
|
-
Ye == null || Ye({ LitElement:
|
|
548
|
-
((
|
|
547
|
+
Ye == null || Ye({ LitElement: vt });
|
|
548
|
+
((he = globalThis.litElementVersions) !== null && he !== void 0 ? he : globalThis.litElementVersions = []).push("3.3.2");
|
|
549
549
|
/**
|
|
550
550
|
* @license
|
|
551
551
|
* Copyright 2017 Google LLC
|
|
@@ -553,8 +553,8 @@ Ye == null || Ye({ LitElement: mt });
|
|
|
553
553
|
*/
|
|
554
554
|
const gi = (i) => (t) => typeof t == "function" ? ((e, n) => (customElements.define(e, n), n))(i, t) : ((e, n) => {
|
|
555
555
|
const { kind: r, elements: o } = n;
|
|
556
|
-
return { kind: r, elements: o, finisher(
|
|
557
|
-
customElements.define(e,
|
|
556
|
+
return { kind: r, elements: o, finisher(a) {
|
|
557
|
+
customElements.define(e, a);
|
|
558
558
|
} };
|
|
559
559
|
})(i, t);
|
|
560
560
|
/**
|
|
@@ -562,25 +562,25 @@ const gi = (i) => (t) => typeof t == "function" ? ((e, n) => (customElements.def
|
|
|
562
562
|
* Copyright 2017 Google LLC
|
|
563
563
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
564
564
|
*/
|
|
565
|
-
const
|
|
565
|
+
const Gi = (i, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(e) {
|
|
566
566
|
e.createProperty(t.key, i);
|
|
567
567
|
} } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
|
|
568
568
|
typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
|
|
569
569
|
}, finisher(e) {
|
|
570
570
|
e.createProperty(t.key, i);
|
|
571
|
-
} },
|
|
571
|
+
} }, Zi = (i, t, e) => {
|
|
572
572
|
t.constructor.createProperty(e, i);
|
|
573
573
|
};
|
|
574
|
-
function
|
|
575
|
-
return (t, e) => e !== void 0 ?
|
|
574
|
+
function M(i) {
|
|
575
|
+
return (t, e) => e !== void 0 ? Zi(i, t, e) : Gi(i, t);
|
|
576
576
|
}
|
|
577
577
|
/**
|
|
578
578
|
* @license
|
|
579
579
|
* Copyright 2017 Google LLC
|
|
580
580
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
581
581
|
*/
|
|
582
|
-
function
|
|
583
|
-
return
|
|
582
|
+
function wt(i) {
|
|
583
|
+
return M({ ...i, state: !0 });
|
|
584
584
|
}
|
|
585
585
|
/**
|
|
586
586
|
* @license
|
|
@@ -594,8 +594,8 @@ var ce;
|
|
|
594
594
|
* Copyright 2017 Google LLC
|
|
595
595
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
596
596
|
*/
|
|
597
|
-
const
|
|
598
|
-
class
|
|
597
|
+
const at = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, mi = (i) => (...t) => ({ _$litDirective$: i, values: t });
|
|
598
|
+
class vi {
|
|
599
599
|
constructor(t) {
|
|
600
600
|
}
|
|
601
601
|
get _$AU() {
|
|
@@ -616,28 +616,28 @@ class mi {
|
|
|
616
616
|
* Copyright 2020 Google LLC
|
|
617
617
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
618
618
|
*/
|
|
619
|
-
const { I: qi } =
|
|
619
|
+
const { I: qi } = Yi, Ki = (i) => i.strings === void 0, We = () => document.createComment(""), Dt = (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) {
|
|
623
|
-
const
|
|
624
|
-
e = new qi(
|
|
623
|
+
const a = r.insertBefore(We(), o), l = r.insertBefore(We(), o);
|
|
624
|
+
e = new qi(a, l, i, i.options);
|
|
625
625
|
} else {
|
|
626
|
-
const
|
|
627
|
-
if (
|
|
626
|
+
const a = e._$AB.nextSibling, l = e._$AM, s = l !== i;
|
|
627
|
+
if (s) {
|
|
628
628
|
let d;
|
|
629
|
-
(n = e._$AQ) === null || n === void 0 || n.call(e, i), e._$AM = i, e._$AP !== void 0 && (d = i._$AU) !==
|
|
629
|
+
(n = e._$AQ) === null || n === void 0 || n.call(e, i), e._$AM = i, e._$AP !== void 0 && (d = i._$AU) !== l._$AU && e._$AP(d);
|
|
630
630
|
}
|
|
631
|
-
if (
|
|
631
|
+
if (a !== o || s) {
|
|
632
632
|
let d = e._$AA;
|
|
633
|
-
for (; d !==
|
|
634
|
-
const
|
|
635
|
-
r.insertBefore(d, o), d =
|
|
633
|
+
for (; d !== a; ) {
|
|
634
|
+
const p = d.nextSibling;
|
|
635
|
+
r.insertBefore(d, o), d = p;
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
639
|
return e;
|
|
640
|
-
}, nt = (i, t, e = i) => (i._$AI(t, e), i),
|
|
640
|
+
}, nt = (i, t, e = i) => (i._$AI(t, e), i), Qi = {}, yi = (i, t = Qi) => i._$AH = t, Ji = (i) => i._$AH, pe = (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;
|
|
@@ -657,18 +657,18 @@ const Ge = (i, t, e) => {
|
|
|
657
657
|
for (let r = t; r <= e; r++)
|
|
658
658
|
n.set(i[r], r);
|
|
659
659
|
return n;
|
|
660
|
-
},
|
|
660
|
+
}, Ce = mi(class extends vi {
|
|
661
661
|
constructor(i) {
|
|
662
|
-
if (super(i), i.type !==
|
|
662
|
+
if (super(i), i.type !== at.CHILD)
|
|
663
663
|
throw Error("repeat() can only be used in text expressions");
|
|
664
664
|
}
|
|
665
665
|
dt(i, t, e) {
|
|
666
666
|
let n;
|
|
667
667
|
e === void 0 ? e = t : t !== void 0 && (n = t);
|
|
668
668
|
const r = [], o = [];
|
|
669
|
-
let
|
|
670
|
-
for (const
|
|
671
|
-
r[
|
|
669
|
+
let a = 0;
|
|
670
|
+
for (const l of i)
|
|
671
|
+
r[a] = n ? n(l, a) : a, o[a] = e(l, a), a++;
|
|
672
672
|
return { values: o, keys: r };
|
|
673
673
|
}
|
|
674
674
|
render(i, t, e) {
|
|
@@ -676,46 +676,46 @@ const Ge = (i, t, e) => {
|
|
|
676
676
|
}
|
|
677
677
|
update(i, [t, e, n]) {
|
|
678
678
|
var r;
|
|
679
|
-
const o =
|
|
679
|
+
const o = Ji(i), { values: a, keys: l } = this.dt(t, e, n);
|
|
680
680
|
if (!Array.isArray(o))
|
|
681
|
-
return this.ht =
|
|
682
|
-
const
|
|
683
|
-
let
|
|
684
|
-
for (; c <=
|
|
681
|
+
return this.ht = l, a;
|
|
682
|
+
const s = (r = this.ht) !== null && r !== void 0 ? r : this.ht = [], d = [];
|
|
683
|
+
let p, h, c = 0, m = o.length - 1, f = 0, v = a.length - 1;
|
|
684
|
+
for (; c <= m && f <= v; )
|
|
685
685
|
if (o[c] === null)
|
|
686
686
|
c++;
|
|
687
|
-
else if (o[
|
|
688
|
-
|
|
689
|
-
else if (
|
|
690
|
-
d[
|
|
691
|
-
else if (
|
|
692
|
-
d[
|
|
693
|
-
else if (
|
|
694
|
-
d[
|
|
695
|
-
else if (
|
|
696
|
-
d[
|
|
697
|
-
else if (
|
|
698
|
-
if (
|
|
699
|
-
const
|
|
700
|
-
if (
|
|
701
|
-
const O =
|
|
702
|
-
nt(O,
|
|
687
|
+
else if (o[m] === null)
|
|
688
|
+
m--;
|
|
689
|
+
else if (s[c] === l[f])
|
|
690
|
+
d[f] = nt(o[c], a[f]), c++, f++;
|
|
691
|
+
else if (s[m] === l[v])
|
|
692
|
+
d[v] = nt(o[m], a[v]), m--, v--;
|
|
693
|
+
else if (s[c] === l[v])
|
|
694
|
+
d[v] = nt(o[c], a[v]), Dt(i, d[v + 1], o[c]), c++, v--;
|
|
695
|
+
else if (s[m] === l[f])
|
|
696
|
+
d[f] = nt(o[m], a[f]), Dt(i, o[c], o[m]), m--, f++;
|
|
697
|
+
else if (p === void 0 && (p = Ge(l, f, v), h = Ge(s, c, m)), p.has(s[c]))
|
|
698
|
+
if (p.has(s[m])) {
|
|
699
|
+
const S = h.get(l[f]), U = S !== void 0 ? o[S] : null;
|
|
700
|
+
if (U === null) {
|
|
701
|
+
const O = Dt(i, o[c]);
|
|
702
|
+
nt(O, a[f]), d[f] = O;
|
|
703
703
|
} else
|
|
704
|
-
d[
|
|
705
|
-
|
|
704
|
+
d[f] = nt(U, a[f]), Dt(i, o[c], U), o[S] = null;
|
|
705
|
+
f++;
|
|
706
706
|
} else
|
|
707
|
-
|
|
707
|
+
pe(o[m]), m--;
|
|
708
708
|
else
|
|
709
|
-
|
|
710
|
-
for (;
|
|
711
|
-
const
|
|
712
|
-
nt(
|
|
709
|
+
pe(o[c]), c++;
|
|
710
|
+
for (; f <= v; ) {
|
|
711
|
+
const S = Dt(i, d[v + 1]);
|
|
712
|
+
nt(S, a[f]), d[f++] = S;
|
|
713
713
|
}
|
|
714
|
-
for (; c <=
|
|
715
|
-
const
|
|
716
|
-
|
|
714
|
+
for (; c <= m; ) {
|
|
715
|
+
const S = o[c++];
|
|
716
|
+
S !== null && pe(S);
|
|
717
717
|
}
|
|
718
|
-
return this.ht =
|
|
718
|
+
return this.ht = l, yi(i, d), z;
|
|
719
719
|
}
|
|
720
720
|
});
|
|
721
721
|
/**
|
|
@@ -723,28 +723,28 @@ const Ge = (i, t, e) => {
|
|
|
723
723
|
* Copyright 2020 Google LLC
|
|
724
724
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
725
725
|
*/
|
|
726
|
-
const
|
|
726
|
+
const $e = mi(class extends vi {
|
|
727
727
|
constructor(i) {
|
|
728
|
-
if (super(i), i.type !==
|
|
728
|
+
if (super(i), i.type !== at.PROPERTY && i.type !== at.ATTRIBUTE && i.type !== at.BOOLEAN_ATTRIBUTE)
|
|
729
729
|
throw Error("The `live` directive is not allowed on child or event bindings");
|
|
730
|
-
if (!
|
|
730
|
+
if (!Ki(i))
|
|
731
731
|
throw Error("`live` bindings can only contain a single expression");
|
|
732
732
|
}
|
|
733
733
|
render(i) {
|
|
734
734
|
return i;
|
|
735
735
|
}
|
|
736
736
|
update(i, [t]) {
|
|
737
|
-
if (t ===
|
|
737
|
+
if (t === z || t === E)
|
|
738
738
|
return t;
|
|
739
739
|
const e = i.element, n = i.name;
|
|
740
|
-
if (i.type ===
|
|
740
|
+
if (i.type === at.PROPERTY) {
|
|
741
741
|
if (t === e[n])
|
|
742
|
-
return
|
|
743
|
-
} else if (i.type ===
|
|
742
|
+
return z;
|
|
743
|
+
} else if (i.type === at.BOOLEAN_ATTRIBUTE) {
|
|
744
744
|
if (!!t === e.hasAttribute(n))
|
|
745
|
-
return
|
|
746
|
-
} else if (i.type ===
|
|
747
|
-
return
|
|
745
|
+
return z;
|
|
746
|
+
} else if (i.type === at.ATTRIBUTE && e.getAttribute(n) === t + "")
|
|
747
|
+
return z;
|
|
748
748
|
return yi(i), t;
|
|
749
749
|
}
|
|
750
750
|
});
|
|
@@ -753,7 +753,7 @@ const Ce = vi(class extends mi {
|
|
|
753
753
|
* Copyright 2021 Google LLC
|
|
754
754
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
755
755
|
*/
|
|
756
|
-
function
|
|
756
|
+
function bi(i, t, e) {
|
|
757
757
|
return i ? t() : e == null ? void 0 : e();
|
|
758
758
|
}
|
|
759
759
|
/**!
|
|
@@ -762,7 +762,7 @@ function _i(i, t, e) {
|
|
|
762
762
|
* @author owenm <owen23355@gmail.com>
|
|
763
763
|
* @license MIT
|
|
764
764
|
*/
|
|
765
|
-
function
|
|
765
|
+
function Ze(i, t) {
|
|
766
766
|
var e = Object.keys(i);
|
|
767
767
|
if (Object.getOwnPropertySymbols) {
|
|
768
768
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -775,23 +775,23 @@ function qe(i, t) {
|
|
|
775
775
|
function X(i) {
|
|
776
776
|
for (var t = 1; t < arguments.length; t++) {
|
|
777
777
|
var e = arguments[t] != null ? arguments[t] : {};
|
|
778
|
-
t % 2 ?
|
|
779
|
-
|
|
780
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(e)) :
|
|
778
|
+
t % 2 ? Ze(Object(e), !0).forEach(function(n) {
|
|
779
|
+
tn(i, n, e[n]);
|
|
780
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(e)) : Ze(Object(e)).forEach(function(n) {
|
|
781
781
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(e, n));
|
|
782
782
|
});
|
|
783
783
|
}
|
|
784
784
|
return i;
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function jt(i) {
|
|
787
787
|
"@babel/helpers - typeof";
|
|
788
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
788
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? jt = function(t) {
|
|
789
789
|
return typeof t;
|
|
790
|
-
} :
|
|
790
|
+
} : jt = function(t) {
|
|
791
791
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
792
|
-
},
|
|
792
|
+
}, jt(i);
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function tn(i, t, e) {
|
|
795
795
|
return t in i ? Object.defineProperty(i, t, {
|
|
796
796
|
value: e,
|
|
797
797
|
enumerable: !0,
|
|
@@ -809,7 +809,7 @@ function J() {
|
|
|
809
809
|
return i;
|
|
810
810
|
}, J.apply(this, arguments);
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function en(i, t) {
|
|
813
813
|
if (i == null)
|
|
814
814
|
return {};
|
|
815
815
|
var e = {}, n = Object.keys(i), r, o;
|
|
@@ -817,10 +817,10 @@ function tn(i, t) {
|
|
|
817
817
|
r = n[o], !(t.indexOf(r) >= 0) && (e[r] = i[r]);
|
|
818
818
|
return e;
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function nn(i, t) {
|
|
821
821
|
if (i == null)
|
|
822
822
|
return {};
|
|
823
|
-
var e =
|
|
823
|
+
var e = en(i, t), n, r;
|
|
824
824
|
if (Object.getOwnPropertySymbols) {
|
|
825
825
|
var o = Object.getOwnPropertySymbols(i);
|
|
826
826
|
for (r = 0; r < o.length; r++)
|
|
@@ -828,20 +828,20 @@ function en(i, t) {
|
|
|
828
828
|
}
|
|
829
829
|
return e;
|
|
830
830
|
}
|
|
831
|
-
var
|
|
832
|
-
function
|
|
831
|
+
var rn = "1.15.0";
|
|
832
|
+
function Z(i) {
|
|
833
833
|
if (typeof window < "u" && window.navigator)
|
|
834
834
|
return !!/* @__PURE__ */ navigator.userAgent.match(i);
|
|
835
835
|
}
|
|
836
|
-
var tt =
|
|
836
|
+
var tt = Z(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ie = Z(/Edge/i), qe = Z(/firefox/i), Xt = Z(/safari/i) && !Z(/chrome/i) && !Z(/android/i), _i = Z(/iP(ad|od|hone)/i), Ei = Z(/chrome/i) && Z(/android/i), wi = {
|
|
837
837
|
capture: !1,
|
|
838
838
|
passive: !1
|
|
839
839
|
};
|
|
840
|
-
function
|
|
841
|
-
i.addEventListener(t, e, !tt &&
|
|
840
|
+
function w(i, t, e) {
|
|
841
|
+
i.addEventListener(t, e, !tt && wi);
|
|
842
842
|
}
|
|
843
|
-
function
|
|
844
|
-
i.removeEventListener(t, e, !tt &&
|
|
843
|
+
function _(i, t, e) {
|
|
844
|
+
i.removeEventListener(t, e, !tt && wi);
|
|
845
845
|
}
|
|
846
846
|
function Qt(i, t) {
|
|
847
847
|
if (t) {
|
|
@@ -859,10 +859,10 @@ function Qt(i, t) {
|
|
|
859
859
|
return !1;
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function on(i) {
|
|
863
863
|
return i.host && i !== document && i.host.nodeType ? i.host : i.parentNode;
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function j(i, t, e, n) {
|
|
866
866
|
if (i) {
|
|
867
867
|
e = e || document;
|
|
868
868
|
do {
|
|
@@ -870,12 +870,12 @@ function z(i, t, e, n) {
|
|
|
870
870
|
return i;
|
|
871
871
|
if (i === e)
|
|
872
872
|
break;
|
|
873
|
-
} while (i =
|
|
873
|
+
} while (i = on(i));
|
|
874
874
|
}
|
|
875
875
|
return null;
|
|
876
876
|
}
|
|
877
877
|
var Ke = /\s+/g;
|
|
878
|
-
function
|
|
878
|
+
function N(i, t, e) {
|
|
879
879
|
if (i && t)
|
|
880
880
|
if (i.classList)
|
|
881
881
|
i.classList[e ? "add" : "remove"](t);
|
|
@@ -904,7 +904,7 @@ function yt(i, t) {
|
|
|
904
904
|
var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
905
905
|
return r && new r(e);
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function Ci(i, t, e) {
|
|
908
908
|
if (i) {
|
|
909
909
|
var n = i.getElementsByTagName(t), r = 0, o = n.length;
|
|
910
910
|
if (e)
|
|
@@ -918,35 +918,35 @@ function Q() {
|
|
|
918
918
|
var i = document.scrollingElement;
|
|
919
919
|
return i || document.documentElement;
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function D(i, t, e, n, r) {
|
|
922
922
|
if (!(!i.getBoundingClientRect && i !== window)) {
|
|
923
|
-
var o,
|
|
924
|
-
if (i !== window && i.parentNode && i !== Q() ? (o = i.getBoundingClientRect(),
|
|
923
|
+
var o, a, l, s, d, p, h;
|
|
924
|
+
if (i !== window && i.parentNode && i !== Q() ? (o = i.getBoundingClientRect(), a = o.top, l = o.left, s = o.bottom, d = o.right, p = o.height, h = o.width) : (a = 0, l = 0, s = window.innerHeight, d = window.innerWidth, p = window.innerHeight, h = window.innerWidth), (t || e) && i !== window && (r = r || i.parentNode, !tt))
|
|
925
925
|
do
|
|
926
926
|
if (r && r.getBoundingClientRect && (g(r, "transform") !== "none" || e && g(r, "position") !== "static")) {
|
|
927
927
|
var c = r.getBoundingClientRect();
|
|
928
|
-
|
|
928
|
+
a -= c.top + parseInt(g(r, "border-top-width")), l -= c.left + parseInt(g(r, "border-left-width")), s = a + o.height, d = l + o.width;
|
|
929
929
|
break;
|
|
930
930
|
}
|
|
931
931
|
while (r = r.parentNode);
|
|
932
932
|
if (n && i !== window) {
|
|
933
|
-
var
|
|
934
|
-
|
|
933
|
+
var m = yt(r || i), f = m && m.a, v = m && m.d;
|
|
934
|
+
m && (a /= v, l /= f, h /= f, p /= v, s = a + p, d = l + h);
|
|
935
935
|
}
|
|
936
936
|
return {
|
|
937
|
-
top:
|
|
938
|
-
left:
|
|
939
|
-
bottom:
|
|
937
|
+
top: a,
|
|
938
|
+
left: l,
|
|
939
|
+
bottom: s,
|
|
940
940
|
right: d,
|
|
941
|
-
width:
|
|
942
|
-
height:
|
|
941
|
+
width: h,
|
|
942
|
+
height: p
|
|
943
943
|
};
|
|
944
944
|
}
|
|
945
945
|
}
|
|
946
946
|
function Qe(i, t, e) {
|
|
947
|
-
for (var n = ti(i, !0), r =
|
|
948
|
-
var o =
|
|
949
|
-
if (e === "top" || e === "left" ?
|
|
947
|
+
for (var n = ti(i, !0), r = D(i)[t]; n; ) {
|
|
948
|
+
var o = D(n)[e], a = void 0;
|
|
949
|
+
if (e === "top" || e === "left" ? a = r >= o : a = r <= o, !a)
|
|
950
950
|
return n;
|
|
951
951
|
if (n === Q())
|
|
952
952
|
break;
|
|
@@ -954,23 +954,23 @@ function Qe(i, t, e) {
|
|
|
954
954
|
}
|
|
955
955
|
return !1;
|
|
956
956
|
}
|
|
957
|
-
function
|
|
958
|
-
for (var r = 0, o = 0,
|
|
959
|
-
if (
|
|
957
|
+
function _t(i, t, e, n) {
|
|
958
|
+
for (var r = 0, o = 0, a = i.children; o < a.length; ) {
|
|
959
|
+
if (a[o].style.display !== "none" && a[o] !== y.ghost && (n || a[o] !== y.dragged) && j(a[o], e.draggable, i, !1)) {
|
|
960
960
|
if (r === t)
|
|
961
|
-
return
|
|
961
|
+
return a[o];
|
|
962
962
|
r++;
|
|
963
963
|
}
|
|
964
964
|
o++;
|
|
965
965
|
}
|
|
966
966
|
return null;
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function Te(i, t) {
|
|
969
969
|
for (var e = i.lastElementChild; e && (e === y.ghost || g(e, "display") === "none" || t && !Qt(e, t)); )
|
|
970
970
|
e = e.previousElementSibling;
|
|
971
971
|
return e || null;
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function B(i, t) {
|
|
974
974
|
var e = 0;
|
|
975
975
|
if (!i || !i.parentNode)
|
|
976
976
|
return -1;
|
|
@@ -982,12 +982,12 @@ function Je(i) {
|
|
|
982
982
|
var t = 0, e = 0, n = Q();
|
|
983
983
|
if (i)
|
|
984
984
|
do {
|
|
985
|
-
var r = yt(i), o = r.a,
|
|
986
|
-
t += i.scrollLeft * o, e += i.scrollTop *
|
|
985
|
+
var r = yt(i), o = r.a, a = r.d;
|
|
986
|
+
t += i.scrollLeft * o, e += i.scrollTop * a;
|
|
987
987
|
} while (i !== n && (i = i.parentNode));
|
|
988
988
|
return [t, e];
|
|
989
989
|
}
|
|
990
|
-
function
|
|
990
|
+
function an(i, t) {
|
|
991
991
|
for (var e in i)
|
|
992
992
|
if (i.hasOwnProperty(e)) {
|
|
993
993
|
for (var n in t)
|
|
@@ -1020,11 +1020,11 @@ function sn(i, t) {
|
|
|
1020
1020
|
t.hasOwnProperty(e) && (i[e] = t[e]);
|
|
1021
1021
|
return i;
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1023
|
+
function fe(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
1026
|
var ge;
|
|
1027
|
-
function
|
|
1027
|
+
function ln(i, t) {
|
|
1028
1028
|
return function() {
|
|
1029
1029
|
if (!ge) {
|
|
1030
1030
|
var e = arguments, n = this;
|
|
@@ -1034,15 +1034,15 @@ function an(i, t) {
|
|
|
1034
1034
|
}
|
|
1035
1035
|
};
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function dn(i, t, e) {
|
|
1038
1038
|
i.scrollLeft += t, i.scrollTop += e;
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function $i(i) {
|
|
1041
1041
|
var t = window.Polymer, e = window.jQuery || window.Zepto;
|
|
1042
1042
|
return t && t.dom ? t.dom(i).cloneNode(!0) : e ? e(i).clone(!0)[0] : i.cloneNode(!0);
|
|
1043
1043
|
}
|
|
1044
|
-
var
|
|
1045
|
-
function
|
|
1044
|
+
var R = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
1045
|
+
function un() {
|
|
1046
1046
|
var i = [], t;
|
|
1047
1047
|
return {
|
|
1048
1048
|
captureAnimationState: function() {
|
|
@@ -1052,12 +1052,12 @@ function dn() {
|
|
|
1052
1052
|
if (!(g(r, "display") === "none" || r === y.ghost)) {
|
|
1053
1053
|
i.push({
|
|
1054
1054
|
target: r,
|
|
1055
|
-
rect:
|
|
1055
|
+
rect: D(r)
|
|
1056
1056
|
});
|
|
1057
1057
|
var o = X({}, i[i.length - 1].rect);
|
|
1058
1058
|
if (r.thisAnimationDuration) {
|
|
1059
|
-
var
|
|
1060
|
-
|
|
1059
|
+
var a = yt(r, !0);
|
|
1060
|
+
a && (o.top -= a.f, o.left -= a.e);
|
|
1061
1061
|
}
|
|
1062
1062
|
r.fromRect = o;
|
|
1063
1063
|
}
|
|
@@ -1068,7 +1068,7 @@ function dn() {
|
|
|
1068
1068
|
i.push(n);
|
|
1069
1069
|
},
|
|
1070
1070
|
removeAnimationState: function(n) {
|
|
1071
|
-
i.splice(
|
|
1071
|
+
i.splice(an(i, {
|
|
1072
1072
|
target: n
|
|
1073
1073
|
}), 1);
|
|
1074
1074
|
},
|
|
@@ -1078,24 +1078,24 @@ function dn() {
|
|
|
1078
1078
|
clearTimeout(t), typeof n == "function" && n();
|
|
1079
1079
|
return;
|
|
1080
1080
|
}
|
|
1081
|
-
var o = !1,
|
|
1082
|
-
i.forEach(function(
|
|
1083
|
-
var
|
|
1084
|
-
|
|
1085
|
-
(
|
|
1081
|
+
var o = !1, a = 0;
|
|
1082
|
+
i.forEach(function(l) {
|
|
1083
|
+
var s = 0, d = l.target, p = d.fromRect, h = D(d), c = d.prevFromRect, m = d.prevToRect, f = l.rect, v = yt(d, !0);
|
|
1084
|
+
v && (h.top -= v.f, h.left -= v.e), d.toRect = h, d.thisAnimationDuration && fe(c, h) && !fe(p, h) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1085
|
+
(f.top - h.top) / (f.left - h.left) === (p.top - h.top) / (p.left - h.left) && (s = cn(f, c, m, r.options)), fe(h, p) || (d.prevFromRect = p, d.prevToRect = h, s || (s = r.options.animation), r.animate(d, f, h, s)), s && (o = !0, a = Math.max(a, s), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
|
|
1086
1086
|
d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
|
|
1087
|
-
},
|
|
1087
|
+
}, s), d.thisAnimationDuration = s);
|
|
1088
1088
|
}), clearTimeout(t), o ? t = setTimeout(function() {
|
|
1089
1089
|
typeof n == "function" && n();
|
|
1090
|
-
},
|
|
1090
|
+
}, a) : typeof n == "function" && n(), i = [];
|
|
1091
1091
|
},
|
|
1092
|
-
animate: function(n, r, o,
|
|
1093
|
-
if (
|
|
1092
|
+
animate: function(n, r, o, a) {
|
|
1093
|
+
if (a) {
|
|
1094
1094
|
g(n, "transition", ""), g(n, "transform", "");
|
|
1095
|
-
var
|
|
1096
|
-
n.animatingX = !!
|
|
1095
|
+
var l = yt(this.el), s = l && l.a, d = l && l.d, p = (r.left - o.left) / (s || 1), h = (r.top - o.top) / (d || 1);
|
|
1096
|
+
n.animatingX = !!p, n.animatingY = !!h, g(n, "transform", "translate3d(" + p + "px," + h + "px,0)"), this.forRepaintDummy = hn(n), g(n, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), g(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
1097
1097
|
g(n, "transition", ""), g(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
1098
|
-
},
|
|
1098
|
+
}, a);
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
1101
|
};
|
|
@@ -1103,15 +1103,15 @@ function dn() {
|
|
|
1103
1103
|
function hn(i) {
|
|
1104
1104
|
return i.offsetWidth;
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1106
|
+
function cn(i, t, e, n) {
|
|
1107
1107
|
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;
|
|
1108
1108
|
}
|
|
1109
|
-
var ct = [],
|
|
1109
|
+
var ct = [], me = {
|
|
1110
1110
|
initializeByDefault: !0
|
|
1111
|
-
},
|
|
1111
|
+
}, kt = {
|
|
1112
1112
|
mount: function(t) {
|
|
1113
|
-
for (var e in
|
|
1114
|
-
|
|
1113
|
+
for (var e in me)
|
|
1114
|
+
me.hasOwnProperty(e) && !(e in t) && (t[e] = me[e]);
|
|
1115
1115
|
ct.forEach(function(n) {
|
|
1116
1116
|
if (n.pluginName === t.pluginName)
|
|
1117
1117
|
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
@@ -1123,26 +1123,26 @@ var ct = [], ve = {
|
|
|
1123
1123
|
r.eventCanceled = !0;
|
|
1124
1124
|
};
|
|
1125
1125
|
var o = t + "Global";
|
|
1126
|
-
ct.forEach(function(
|
|
1127
|
-
e[
|
|
1126
|
+
ct.forEach(function(a) {
|
|
1127
|
+
e[a.pluginName] && (e[a.pluginName][o] && e[a.pluginName][o](X({
|
|
1128
1128
|
sortable: e
|
|
1129
|
-
}, n)), e.options[
|
|
1129
|
+
}, n)), e.options[a.pluginName] && e[a.pluginName][t] && e[a.pluginName][t](X({
|
|
1130
1130
|
sortable: e
|
|
1131
1131
|
}, n)));
|
|
1132
1132
|
});
|
|
1133
1133
|
},
|
|
1134
1134
|
initializePlugins: function(t, e, n, r) {
|
|
1135
|
-
ct.forEach(function(
|
|
1136
|
-
var
|
|
1137
|
-
if (!(!t.options[
|
|
1138
|
-
var d = new
|
|
1139
|
-
d.sortable = t, d.options = t.options, t[
|
|
1135
|
+
ct.forEach(function(l) {
|
|
1136
|
+
var s = l.pluginName;
|
|
1137
|
+
if (!(!t.options[s] && !l.initializeByDefault)) {
|
|
1138
|
+
var d = new l(t, e, t.options);
|
|
1139
|
+
d.sortable = t, d.options = t.options, t[s] = d, J(n, d.defaults);
|
|
1140
1140
|
}
|
|
1141
1141
|
});
|
|
1142
1142
|
for (var o in t.options)
|
|
1143
1143
|
if (t.options.hasOwnProperty(o)) {
|
|
1144
|
-
var
|
|
1145
|
-
typeof
|
|
1144
|
+
var a = this.modifyOption(t, o, t.options[o]);
|
|
1145
|
+
typeof a < "u" && (t.options[o] = a);
|
|
1146
1146
|
}
|
|
1147
1147
|
},
|
|
1148
1148
|
getEventProperties: function(t, e) {
|
|
@@ -1158,146 +1158,146 @@ var ct = [], ve = {
|
|
|
1158
1158
|
}), r;
|
|
1159
1159
|
}
|
|
1160
1160
|
};
|
|
1161
|
-
function
|
|
1162
|
-
var t = i.sortable, e = i.rootEl, n = i.name, r = i.targetEl, o = i.cloneEl,
|
|
1163
|
-
if (t = t || e && e[
|
|
1164
|
-
var
|
|
1165
|
-
window.CustomEvent && !tt && !ie ?
|
|
1161
|
+
function pn(i) {
|
|
1162
|
+
var t = i.sortable, e = i.rootEl, n = i.name, r = i.targetEl, o = i.cloneEl, a = i.toEl, l = i.fromEl, s = i.oldIndex, d = i.newIndex, p = i.oldDraggableIndex, h = i.newDraggableIndex, c = i.originalEvent, m = i.putSortable, f = i.extraEventProperties;
|
|
1163
|
+
if (t = t || e && e[R], !!t) {
|
|
1164
|
+
var v, S = t.options, U = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
1165
|
+
window.CustomEvent && !tt && !ie ? v = new CustomEvent(n, {
|
|
1166
1166
|
bubbles: !0,
|
|
1167
1167
|
cancelable: !0
|
|
1168
|
-
}) : (
|
|
1169
|
-
var O = X(X({},
|
|
1168
|
+
}) : (v = document.createEvent("Event"), v.initEvent(n, !0, !0)), v.to = a || e, v.from = l || e, v.item = r || e, v.clone = o, v.oldIndex = s, v.newIndex = d, v.oldDraggableIndex = p, v.newDraggableIndex = h, v.originalEvent = c, v.pullMode = m ? m.lastPutMode : void 0;
|
|
1169
|
+
var O = X(X({}, f), kt.getEventProperties(n, t));
|
|
1170
1170
|
for (var et in O)
|
|
1171
|
-
|
|
1172
|
-
e && e.dispatchEvent(
|
|
1171
|
+
v[et] = O[et];
|
|
1172
|
+
e && e.dispatchEvent(v), S[U] && S[U].call(t, v);
|
|
1173
1173
|
}
|
|
1174
1174
|
}
|
|
1175
|
-
var fn = ["evt"],
|
|
1176
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o =
|
|
1177
|
-
|
|
1178
|
-
dragEl:
|
|
1175
|
+
var fn = ["evt"], I = function(t, e) {
|
|
1176
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = nn(n, fn);
|
|
1177
|
+
kt.pluginEvent.bind(y)(t, e, X({
|
|
1178
|
+
dragEl: u,
|
|
1179
1179
|
parentEl: A,
|
|
1180
|
-
ghostEl:
|
|
1181
|
-
rootEl:
|
|
1182
|
-
nextEl:
|
|
1180
|
+
ghostEl: b,
|
|
1181
|
+
rootEl: C,
|
|
1182
|
+
nextEl: st,
|
|
1183
1183
|
lastDownEl: Yt,
|
|
1184
|
-
cloneEl:
|
|
1184
|
+
cloneEl: $,
|
|
1185
1185
|
cloneHidden: K,
|
|
1186
|
-
dragStarted:
|
|
1187
|
-
putSortable:
|
|
1186
|
+
dragStarted: Tt,
|
|
1187
|
+
putSortable: T,
|
|
1188
1188
|
activeSortable: y.active,
|
|
1189
1189
|
originalEvent: r,
|
|
1190
|
-
oldIndex:
|
|
1190
|
+
oldIndex: mt,
|
|
1191
1191
|
oldDraggableIndex: Ot,
|
|
1192
|
-
newIndex:
|
|
1193
|
-
newDraggableIndex:
|
|
1194
|
-
hideGhostForTarget:
|
|
1195
|
-
unhideGhostForTarget:
|
|
1192
|
+
newIndex: k,
|
|
1193
|
+
newDraggableIndex: q,
|
|
1194
|
+
hideGhostForTarget: Di,
|
|
1195
|
+
unhideGhostForTarget: Ti,
|
|
1196
1196
|
cloneNowHidden: function() {
|
|
1197
1197
|
K = !0;
|
|
1198
1198
|
},
|
|
1199
1199
|
cloneNowShown: function() {
|
|
1200
1200
|
K = !1;
|
|
1201
1201
|
},
|
|
1202
|
-
dispatchSortableEvent: function(
|
|
1203
|
-
|
|
1202
|
+
dispatchSortableEvent: function(l) {
|
|
1203
|
+
P({
|
|
1204
1204
|
sortable: e,
|
|
1205
|
-
name:
|
|
1205
|
+
name: l,
|
|
1206
1206
|
originalEvent: r
|
|
1207
1207
|
});
|
|
1208
1208
|
}
|
|
1209
1209
|
}, o));
|
|
1210
1210
|
};
|
|
1211
|
-
function
|
|
1212
|
-
|
|
1213
|
-
putSortable:
|
|
1214
|
-
cloneEl:
|
|
1215
|
-
targetEl:
|
|
1216
|
-
rootEl:
|
|
1217
|
-
oldIndex:
|
|
1211
|
+
function P(i) {
|
|
1212
|
+
pn(X({
|
|
1213
|
+
putSortable: T,
|
|
1214
|
+
cloneEl: $,
|
|
1215
|
+
targetEl: u,
|
|
1216
|
+
rootEl: C,
|
|
1217
|
+
oldIndex: mt,
|
|
1218
1218
|
oldDraggableIndex: Ot,
|
|
1219
|
-
newIndex:
|
|
1220
|
-
newDraggableIndex:
|
|
1219
|
+
newIndex: k,
|
|
1220
|
+
newDraggableIndex: q
|
|
1221
1221
|
}, i));
|
|
1222
1222
|
}
|
|
1223
|
-
var
|
|
1223
|
+
var u, A, b, C, st, Yt, $, K, mt, k, Ot, q, Bt, T, gt = !1, Jt = !1, te = [], rt, F, ve, ye, ei, ii, Tt, pt, Ht, Lt = !1, Rt = !1, Wt, H, be = [], Ae = !1, ee = [], ne = typeof document < "u", Ut = _i, ni = ie || tt ? "cssFloat" : "float", gn = ne && !Ei && !_i && "draggable" in document.createElement("div"), Ai = function() {
|
|
1224
1224
|
if (ne) {
|
|
1225
1225
|
if (tt)
|
|
1226
1226
|
return !1;
|
|
1227
1227
|
var i = document.createElement("x");
|
|
1228
1228
|
return i.style.cssText = "pointer-events:auto", i.style.pointerEvents === "auto";
|
|
1229
1229
|
}
|
|
1230
|
-
}(),
|
|
1231
|
-
var n = g(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o =
|
|
1230
|
+
}(), xi = function(t, e) {
|
|
1231
|
+
var n = g(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = _t(t, 0, e), a = _t(t, 1, e), l = o && g(o), s = a && g(a), d = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + D(o).width, p = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + D(a).width;
|
|
1232
1232
|
if (n.display === "flex")
|
|
1233
1233
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1234
1234
|
if (n.display === "grid")
|
|
1235
1235
|
return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
1236
|
-
if (o &&
|
|
1237
|
-
var
|
|
1238
|
-
return
|
|
1239
|
-
}
|
|
1240
|
-
return o && (
|
|
1241
|
-
},
|
|
1242
|
-
var r = n ? t.left : t.top, o = n ? t.right : t.bottom,
|
|
1243
|
-
return r ===
|
|
1236
|
+
if (o && l.float && l.float !== "none") {
|
|
1237
|
+
var h = l.float === "left" ? "left" : "right";
|
|
1238
|
+
return a && (s.clear === "both" || s.clear === h) ? "vertical" : "horizontal";
|
|
1239
|
+
}
|
|
1240
|
+
return o && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || d >= r && n[ni] === "none" || a && n[ni] === "none" && d + p > r) ? "vertical" : "horizontal";
|
|
1241
|
+
}, mn = function(t, e, n) {
|
|
1242
|
+
var r = n ? t.left : t.top, o = n ? t.right : t.bottom, a = n ? t.width : t.height, l = n ? e.left : e.top, s = n ? e.right : e.bottom, d = n ? e.width : e.height;
|
|
1243
|
+
return r === l || o === s || r + a / 2 === l + d / 2;
|
|
1244
1244
|
}, vn = function(t, e) {
|
|
1245
1245
|
var n;
|
|
1246
1246
|
return te.some(function(r) {
|
|
1247
|
-
var o = r[
|
|
1248
|
-
if (!(!o ||
|
|
1249
|
-
var
|
|
1250
|
-
if (
|
|
1247
|
+
var o = r[R].options.emptyInsertThreshold;
|
|
1248
|
+
if (!(!o || Te(r))) {
|
|
1249
|
+
var a = D(r), l = t >= a.left - o && t <= a.right + o, s = e >= a.top - o && e <= a.bottom + o;
|
|
1250
|
+
if (l && s)
|
|
1251
1251
|
return n = r;
|
|
1252
1252
|
}
|
|
1253
1253
|
}), n;
|
|
1254
|
-
},
|
|
1255
|
-
function e(o,
|
|
1256
|
-
return function(
|
|
1257
|
-
var
|
|
1258
|
-
if (o == null && (
|
|
1254
|
+
}, Si = function(t) {
|
|
1255
|
+
function e(o, a) {
|
|
1256
|
+
return function(l, s, d, p) {
|
|
1257
|
+
var h = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
|
|
1258
|
+
if (o == null && (a || h))
|
|
1259
1259
|
return !0;
|
|
1260
1260
|
if (o == null || o === !1)
|
|
1261
1261
|
return !1;
|
|
1262
|
-
if (
|
|
1262
|
+
if (a && o === "clone")
|
|
1263
1263
|
return o;
|
|
1264
1264
|
if (typeof o == "function")
|
|
1265
|
-
return e(o(
|
|
1266
|
-
var c = (
|
|
1265
|
+
return e(o(l, s, d, p), a)(l, s, d, p);
|
|
1266
|
+
var c = (a ? l : s).options.group.name;
|
|
1267
1267
|
return o === !0 || typeof o == "string" && o === c || o.join && o.indexOf(c) > -1;
|
|
1268
1268
|
};
|
|
1269
1269
|
}
|
|
1270
1270
|
var n = {}, r = t.group;
|
|
1271
|
-
(!r ||
|
|
1271
|
+
(!r || jt(r) != "object") && (r = {
|
|
1272
1272
|
name: r
|
|
1273
1273
|
}), n.name = r.name, n.checkPull = e(r.pull, !0), n.checkPut = e(r.put), n.revertClone = r.revertClone, t.group = n;
|
|
1274
|
+
}, Di = function() {
|
|
1275
|
+
!Ai && b && g(b, "display", "none");
|
|
1274
1276
|
}, Ti = function() {
|
|
1275
|
-
!Ai &&
|
|
1276
|
-
}, xi = function() {
|
|
1277
|
-
!Ai && _ && g(_, "display", "");
|
|
1277
|
+
!Ai && b && g(b, "display", "");
|
|
1278
1278
|
};
|
|
1279
1279
|
ne && !Ei && document.addEventListener("click", function(i) {
|
|
1280
1280
|
if (Jt)
|
|
1281
1281
|
return i.preventDefault(), i.stopPropagation && i.stopPropagation(), i.stopImmediatePropagation && i.stopImmediatePropagation(), Jt = !1, !1;
|
|
1282
1282
|
}, !0);
|
|
1283
1283
|
var ot = function(t) {
|
|
1284
|
-
if (
|
|
1284
|
+
if (u) {
|
|
1285
1285
|
t = t.touches ? t.touches[0] : t;
|
|
1286
1286
|
var e = vn(t.clientX, t.clientY);
|
|
1287
1287
|
if (e) {
|
|
1288
1288
|
var n = {};
|
|
1289
1289
|
for (var r in t)
|
|
1290
1290
|
t.hasOwnProperty(r) && (n[r] = t[r]);
|
|
1291
|
-
n.target = n.rootEl = e, n.preventDefault = void 0, n.stopPropagation = void 0, e[
|
|
1291
|
+
n.target = n.rootEl = e, n.preventDefault = void 0, n.stopPropagation = void 0, e[R]._onDragOver(n);
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
|
-
},
|
|
1295
|
-
|
|
1294
|
+
}, yn = function(t) {
|
|
1295
|
+
u && u.parentNode[R]._isOutsideThisEl(t.target);
|
|
1296
1296
|
};
|
|
1297
1297
|
function y(i, t) {
|
|
1298
1298
|
if (!(i && i.nodeType && i.nodeType === 1))
|
|
1299
1299
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));
|
|
1300
|
-
this.el = i, this.options = t = J({}, t), i[
|
|
1300
|
+
this.el = i, this.options = t = J({}, t), i[R] = this;
|
|
1301
1301
|
var e = {
|
|
1302
1302
|
group: null,
|
|
1303
1303
|
sort: !0,
|
|
@@ -1313,7 +1313,7 @@ function y(i, t) {
|
|
|
1313
1313
|
// will be set to same as swapThreshold if default
|
|
1314
1314
|
removeCloneOnHide: !0,
|
|
1315
1315
|
direction: function() {
|
|
1316
|
-
return
|
|
1316
|
+
return xi(i, this.options);
|
|
1317
1317
|
},
|
|
1318
1318
|
ghostClass: "sortable-ghost",
|
|
1319
1319
|
chosenClass: "sortable-chosen",
|
|
@@ -1323,8 +1323,8 @@ function y(i, t) {
|
|
|
1323
1323
|
preventOnFilter: !0,
|
|
1324
1324
|
animation: 0,
|
|
1325
1325
|
easing: null,
|
|
1326
|
-
setData: function(
|
|
1327
|
-
|
|
1326
|
+
setData: function(a, l) {
|
|
1327
|
+
a.setData("Text", l.textContent);
|
|
1328
1328
|
},
|
|
1329
1329
|
dropBubble: !1,
|
|
1330
1330
|
dragoverBubble: !1,
|
|
@@ -1343,93 +1343,93 @@ function y(i, t) {
|
|
|
1343
1343
|
supportPointer: y.supportPointer !== !1 && "PointerEvent" in window && !Xt,
|
|
1344
1344
|
emptyInsertThreshold: 5
|
|
1345
1345
|
};
|
|
1346
|
-
|
|
1346
|
+
kt.initializePlugins(this, i, e);
|
|
1347
1347
|
for (var n in e)
|
|
1348
1348
|
!(n in t) && (t[n] = e[n]);
|
|
1349
|
-
|
|
1349
|
+
Si(t);
|
|
1350
1350
|
for (var r in this)
|
|
1351
1351
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
1352
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
1352
|
+
this.nativeDraggable = t.forceFallback ? !1 : gn, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? w(i, "pointerdown", this._onTapStart) : (w(i, "mousedown", this._onTapStart), w(i, "touchstart", this._onTapStart)), this.nativeDraggable && (w(i, "dragover", this), w(i, "dragenter", this)), te.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), J(this, un());
|
|
1353
1353
|
}
|
|
1354
1354
|
y.prototype = /** @lends Sortable.prototype */
|
|
1355
1355
|
{
|
|
1356
1356
|
constructor: y,
|
|
1357
1357
|
_isOutsideThisEl: function(t) {
|
|
1358
|
-
!this.el.contains(t) && t !== this.el && (
|
|
1358
|
+
!this.el.contains(t) && t !== this.el && (pt = null);
|
|
1359
1359
|
},
|
|
1360
1360
|
_getDirection: function(t, e) {
|
|
1361
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e,
|
|
1361
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, u) : this.options.direction;
|
|
1362
1362
|
},
|
|
1363
1363
|
_onTapStart: function(t) {
|
|
1364
1364
|
if (t.cancelable) {
|
|
1365
|
-
var e = this, n = this.el, r = this.options, o = r.preventOnFilter,
|
|
1366
|
-
if (
|
|
1367
|
-
if (
|
|
1368
|
-
if (
|
|
1369
|
-
|
|
1365
|
+
var e = this, n = this.el, r = this.options, o = r.preventOnFilter, a = t.type, l = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, s = (l || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || s, p = r.filter;
|
|
1366
|
+
if (xn(n), !u && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && Xt && s && s.tagName.toUpperCase() === "SELECT") && (s = j(s, r.draggable, n, !1), !(s && s.animated) && Yt !== s)) {
|
|
1367
|
+
if (mt = B(s), Ot = B(s, r.draggable), typeof p == "function") {
|
|
1368
|
+
if (p.call(this, t, s, this)) {
|
|
1369
|
+
P({
|
|
1370
1370
|
sortable: e,
|
|
1371
1371
|
rootEl: d,
|
|
1372
1372
|
name: "filter",
|
|
1373
|
-
targetEl:
|
|
1373
|
+
targetEl: s,
|
|
1374
1374
|
toEl: n,
|
|
1375
1375
|
fromEl: n
|
|
1376
|
-
}),
|
|
1376
|
+
}), I("filter", e, {
|
|
1377
1377
|
evt: t
|
|
1378
1378
|
}), o && t.cancelable && t.preventDefault();
|
|
1379
1379
|
return;
|
|
1380
1380
|
}
|
|
1381
|
-
} else if (
|
|
1382
|
-
if (
|
|
1383
|
-
return
|
|
1381
|
+
} else if (p && (p = p.split(",").some(function(h) {
|
|
1382
|
+
if (h = j(d, h.trim(), n, !1), h)
|
|
1383
|
+
return P({
|
|
1384
1384
|
sortable: e,
|
|
1385
|
-
rootEl:
|
|
1385
|
+
rootEl: h,
|
|
1386
1386
|
name: "filter",
|
|
1387
|
-
targetEl:
|
|
1387
|
+
targetEl: s,
|
|
1388
1388
|
fromEl: n,
|
|
1389
1389
|
toEl: n
|
|
1390
|
-
}),
|
|
1390
|
+
}), I("filter", e, {
|
|
1391
1391
|
evt: t
|
|
1392
1392
|
}), !0;
|
|
1393
|
-
}),
|
|
1393
|
+
}), p)) {
|
|
1394
1394
|
o && t.cancelable && t.preventDefault();
|
|
1395
1395
|
return;
|
|
1396
1396
|
}
|
|
1397
|
-
r.handle && !
|
|
1397
|
+
r.handle && !j(d, r.handle, n, !1) || this._prepareDragStart(t, l, s);
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
1400
1400
|
},
|
|
1401
1401
|
_prepareDragStart: function(t, e, n) {
|
|
1402
|
-
var r = this, o = r.el,
|
|
1403
|
-
if (n && !
|
|
1404
|
-
var d =
|
|
1405
|
-
if (
|
|
1406
|
-
target:
|
|
1402
|
+
var r = this, o = r.el, a = r.options, l = o.ownerDocument, s;
|
|
1403
|
+
if (n && !u && n.parentNode === o) {
|
|
1404
|
+
var d = D(n);
|
|
1405
|
+
if (C = o, u = n, A = u.parentNode, st = u.nextSibling, Yt = n, Bt = a.group, y.dragged = u, rt = {
|
|
1406
|
+
target: u,
|
|
1407
1407
|
clientX: (e || t).clientX,
|
|
1408
1408
|
clientY: (e || t).clientY
|
|
1409
|
-
}, ei = rt.clientX - d.left, ii = rt.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY,
|
|
1410
|
-
if (
|
|
1409
|
+
}, ei = rt.clientX - d.left, ii = rt.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, u.style["will-change"] = "all", s = function() {
|
|
1410
|
+
if (I("delayEnded", r, {
|
|
1411
1411
|
evt: t
|
|
1412
1412
|
}), y.eventCanceled) {
|
|
1413
1413
|
r._onDrop();
|
|
1414
1414
|
return;
|
|
1415
1415
|
}
|
|
1416
|
-
r._disableDelayedDragEvents(), !
|
|
1416
|
+
r._disableDelayedDragEvents(), !qe && r.nativeDraggable && (u.draggable = !0), r._triggerDragStart(t, e), P({
|
|
1417
1417
|
sortable: r,
|
|
1418
1418
|
name: "choose",
|
|
1419
1419
|
originalEvent: t
|
|
1420
|
-
}),
|
|
1421
|
-
},
|
|
1422
|
-
|
|
1423
|
-
}),
|
|
1420
|
+
}), N(u, a.chosenClass, !0);
|
|
1421
|
+
}, a.ignore.split(",").forEach(function(p) {
|
|
1422
|
+
Ci(u, p.trim(), _e);
|
|
1423
|
+
}), w(l, "dragover", ot), w(l, "mousemove", ot), w(l, "touchmove", ot), w(l, "mouseup", r._onDrop), w(l, "touchend", r._onDrop), w(l, "touchcancel", r._onDrop), qe && this.nativeDraggable && (this.options.touchStartThreshold = 4, u.draggable = !0), I("delayStart", this, {
|
|
1424
1424
|
evt: t
|
|
1425
|
-
}),
|
|
1425
|
+
}), a.delay && (!a.delayOnTouchOnly || e) && (!this.nativeDraggable || !(ie || tt))) {
|
|
1426
1426
|
if (y.eventCanceled) {
|
|
1427
1427
|
this._onDrop();
|
|
1428
1428
|
return;
|
|
1429
1429
|
}
|
|
1430
|
-
|
|
1430
|
+
w(l, "mouseup", r._disableDelayedDrag), w(l, "touchend", r._disableDelayedDrag), w(l, "touchcancel", r._disableDelayedDrag), w(l, "mousemove", r._delayedDragTouchMoveHandler), w(l, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && w(l, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
|
|
1431
1431
|
} else
|
|
1432
|
-
|
|
1432
|
+
s();
|
|
1433
1433
|
}
|
|
1434
1434
|
},
|
|
1435
1435
|
_delayedDragTouchMoveHandler: function(t) {
|
|
@@ -1437,14 +1437,14 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1437
1437
|
Math.max(Math.abs(e.clientX - this._lastX), Math.abs(e.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
1438
1438
|
},
|
|
1439
1439
|
_disableDelayedDrag: function() {
|
|
1440
|
-
|
|
1440
|
+
u && _e(u), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
1441
1441
|
},
|
|
1442
1442
|
_disableDelayedDragEvents: function() {
|
|
1443
1443
|
var t = this.el.ownerDocument;
|
|
1444
|
-
|
|
1444
|
+
_(t, "mouseup", this._disableDelayedDrag), _(t, "touchend", this._disableDelayedDrag), _(t, "touchcancel", this._disableDelayedDrag), _(t, "mousemove", this._delayedDragTouchMoveHandler), _(t, "touchmove", this._delayedDragTouchMoveHandler), _(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
1445
1445
|
},
|
|
1446
1446
|
_triggerDragStart: function(t, e) {
|
|
1447
|
-
e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ?
|
|
1447
|
+
e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? w(document, "pointermove", this._onTouchMove) : e ? w(document, "touchmove", this._onTouchMove) : w(document, "mousemove", this._onTouchMove) : (w(u, "dragend", this), w(C, "dragstart", this._onDragStart));
|
|
1448
1448
|
try {
|
|
1449
1449
|
document.selection ? Gt(function() {
|
|
1450
1450
|
document.selection.empty();
|
|
@@ -1453,12 +1453,12 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1453
1453
|
}
|
|
1454
1454
|
},
|
|
1455
1455
|
_dragStarted: function(t, e) {
|
|
1456
|
-
if (gt = !1,
|
|
1457
|
-
|
|
1456
|
+
if (gt = !1, C && u) {
|
|
1457
|
+
I("dragStarted", this, {
|
|
1458
1458
|
evt: e
|
|
1459
|
-
}), this.nativeDraggable &&
|
|
1459
|
+
}), this.nativeDraggable && w(document, "dragover", yn);
|
|
1460
1460
|
var n = this.options;
|
|
1461
|
-
!t &&
|
|
1461
|
+
!t && N(u, n.dragClass, !1), N(u, n.ghostClass, !0), y.active = this, t && this._appendGhost(), P({
|
|
1462
1462
|
sortable: this,
|
|
1463
1463
|
name: "start",
|
|
1464
1464
|
originalEvent: e
|
|
@@ -1468,14 +1468,14 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1468
1468
|
},
|
|
1469
1469
|
_emulateDragOver: function() {
|
|
1470
1470
|
if (F) {
|
|
1471
|
-
this._lastX = F.clientX, this._lastY = F.clientY,
|
|
1471
|
+
this._lastX = F.clientX, this._lastY = F.clientY, Di();
|
|
1472
1472
|
for (var t = document.elementFromPoint(F.clientX, F.clientY), e = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(F.clientX, F.clientY), t !== e); )
|
|
1473
1473
|
e = t;
|
|
1474
|
-
if (
|
|
1474
|
+
if (u.parentNode[R]._isOutsideThisEl(t), e)
|
|
1475
1475
|
do {
|
|
1476
|
-
if (e[
|
|
1476
|
+
if (e[R]) {
|
|
1477
1477
|
var n = void 0;
|
|
1478
|
-
if (n = e[
|
|
1478
|
+
if (n = e[R]._onDragOver({
|
|
1479
1479
|
clientX: F.clientX,
|
|
1480
1480
|
clientY: F.clientY,
|
|
1481
1481
|
target: t,
|
|
@@ -1485,203 +1485,203 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1485
1485
|
}
|
|
1486
1486
|
t = e;
|
|
1487
1487
|
} while (e = e.parentNode);
|
|
1488
|
-
|
|
1488
|
+
Ti();
|
|
1489
1489
|
}
|
|
1490
1490
|
},
|
|
1491
1491
|
_onTouchMove: function(t) {
|
|
1492
1492
|
if (rt) {
|
|
1493
|
-
var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t,
|
|
1493
|
+
var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, a = b && yt(b, !0), l = b && a && a.a, s = b && a && a.d, d = Ut && H && Je(H), p = (o.clientX - rt.clientX + r.x) / (l || 1) + (d ? d[0] - be[0] : 0) / (l || 1), h = (o.clientY - rt.clientY + r.y) / (s || 1) + (d ? d[1] - be[1] : 0) / (s || 1);
|
|
1494
1494
|
if (!y.active && !gt) {
|
|
1495
1495
|
if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n)
|
|
1496
1496
|
return;
|
|
1497
1497
|
this._onDragStart(t, !0);
|
|
1498
1498
|
}
|
|
1499
|
-
if (
|
|
1500
|
-
|
|
1499
|
+
if (b) {
|
|
1500
|
+
a ? (a.e += p - (ve || 0), a.f += h - (ye || 0)) : a = {
|
|
1501
1501
|
a: 1,
|
|
1502
1502
|
b: 0,
|
|
1503
1503
|
c: 0,
|
|
1504
1504
|
d: 1,
|
|
1505
|
-
e:
|
|
1506
|
-
f:
|
|
1505
|
+
e: p,
|
|
1506
|
+
f: h
|
|
1507
1507
|
};
|
|
1508
|
-
var c = "matrix(".concat(
|
|
1509
|
-
g(
|
|
1508
|
+
var c = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
1509
|
+
g(b, "webkitTransform", c), g(b, "mozTransform", c), g(b, "msTransform", c), g(b, "transform", c), ve = p, ye = h, F = o;
|
|
1510
1510
|
}
|
|
1511
1511
|
t.cancelable && t.preventDefault();
|
|
1512
1512
|
}
|
|
1513
1513
|
},
|
|
1514
1514
|
_appendGhost: function() {
|
|
1515
|
-
if (!
|
|
1516
|
-
var t = this.options.fallbackOnBody ? document.body :
|
|
1517
|
-
if (
|
|
1518
|
-
for (
|
|
1519
|
-
|
|
1520
|
-
|
|
1515
|
+
if (!b) {
|
|
1516
|
+
var t = this.options.fallbackOnBody ? document.body : C, e = D(u, !0, Ut, !0, t), n = this.options;
|
|
1517
|
+
if (Ut) {
|
|
1518
|
+
for (H = t; g(H, "position") === "static" && g(H, "transform") === "none" && H !== document; )
|
|
1519
|
+
H = H.parentNode;
|
|
1520
|
+
H !== document.body && H !== document.documentElement ? (H === document && (H = Q()), e.top += H.scrollTop, e.left += H.scrollLeft) : H = Q(), be = Je(H);
|
|
1521
1521
|
}
|
|
1522
|
-
|
|
1522
|
+
b = u.cloneNode(!0), N(b, n.ghostClass, !1), N(b, n.fallbackClass, !0), N(b, n.dragClass, !0), g(b, "transition", ""), g(b, "transform", ""), g(b, "box-sizing", "border-box"), g(b, "margin", 0), g(b, "top", e.top), g(b, "left", e.left), g(b, "width", e.width), g(b, "height", e.height), g(b, "opacity", "0.8"), g(b, "position", Ut ? "absolute" : "fixed"), g(b, "zIndex", "100000"), g(b, "pointerEvents", "none"), y.ghost = b, t.appendChild(b), g(b, "transform-origin", ei / parseInt(b.style.width) * 100 + "% " + ii / parseInt(b.style.height) * 100 + "%");
|
|
1523
1523
|
}
|
|
1524
1524
|
},
|
|
1525
1525
|
_onDragStart: function(t, e) {
|
|
1526
1526
|
var n = this, r = t.dataTransfer, o = n.options;
|
|
1527
|
-
if (
|
|
1527
|
+
if (I("dragStart", this, {
|
|
1528
1528
|
evt: t
|
|
1529
1529
|
}), y.eventCanceled) {
|
|
1530
1530
|
this._onDrop();
|
|
1531
1531
|
return;
|
|
1532
1532
|
}
|
|
1533
|
-
|
|
1534
|
-
|
|
1533
|
+
I("setupClone", this), y.eventCanceled || ($ = $i(u), $.removeAttribute("id"), $.draggable = !1, $.style["will-change"] = "", this._hideClone(), N($, this.options.chosenClass, !1), y.clone = $), n.cloneId = Gt(function() {
|
|
1534
|
+
I("clone", n), !y.eventCanceled && (n.options.removeCloneOnHide || C.insertBefore($, u), n._hideClone(), P({
|
|
1535
1535
|
sortable: n,
|
|
1536
1536
|
name: "clone"
|
|
1537
1537
|
}));
|
|
1538
|
-
}), !e &&
|
|
1538
|
+
}), !e && N(u, o.dragClass, !0), e ? (Jt = !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, u)), w(document, "drop", n), g(u, "transform", "translateZ(0)")), gt = !0, n._dragStartId = Gt(n._dragStarted.bind(n, e, t)), w(document, "selectstart", n), Tt = !0, Xt && g(document.body, "user-select", "none");
|
|
1539
1539
|
},
|
|
1540
1540
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1541
1541
|
_onDragOver: function(t) {
|
|
1542
|
-
var e = this.el, n = t.target, r, o,
|
|
1542
|
+
var e = this.el, n = t.target, r, o, a, l = this.options, s = l.group, d = y.active, p = Bt === s, h = l.sort, c = T || d, m, f = this, v = !1;
|
|
1543
1543
|
if (Ae)
|
|
1544
1544
|
return;
|
|
1545
|
-
function
|
|
1546
|
-
|
|
1545
|
+
function S(xt, ki) {
|
|
1546
|
+
I(xt, f, X({
|
|
1547
1547
|
evt: t,
|
|
1548
|
-
isOwner:
|
|
1549
|
-
axis:
|
|
1550
|
-
revert:
|
|
1548
|
+
isOwner: p,
|
|
1549
|
+
axis: m ? "vertical" : "horizontal",
|
|
1550
|
+
revert: a,
|
|
1551
1551
|
dragRect: r,
|
|
1552
1552
|
targetRect: o,
|
|
1553
|
-
canSort:
|
|
1553
|
+
canSort: h,
|
|
1554
1554
|
fromSortable: c,
|
|
1555
1555
|
target: n,
|
|
1556
1556
|
completed: O,
|
|
1557
|
-
onMove: function(
|
|
1558
|
-
return Ft(
|
|
1557
|
+
onMove: function(Ie, Vi) {
|
|
1558
|
+
return Ft(C, e, u, r, Ie, D(Ie), t, Vi);
|
|
1559
1559
|
},
|
|
1560
1560
|
changed: et
|
|
1561
|
-
},
|
|
1561
|
+
}, ki));
|
|
1562
1562
|
}
|
|
1563
|
-
function
|
|
1564
|
-
|
|
1563
|
+
function U() {
|
|
1564
|
+
S("dragOverAnimationCapture"), f.captureAnimationState(), f !== c && c.captureAnimationState();
|
|
1565
1565
|
}
|
|
1566
|
-
function O(
|
|
1567
|
-
return
|
|
1568
|
-
insertion:
|
|
1569
|
-
}),
|
|
1570
|
-
|
|
1571
|
-
}),
|
|
1566
|
+
function O(xt) {
|
|
1567
|
+
return S("dragOverCompleted", {
|
|
1568
|
+
insertion: xt
|
|
1569
|
+
}), xt && (p ? d._hideClone() : d._showClone(f), f !== c && (N(u, T ? T.options.ghostClass : d.options.ghostClass, !1), N(u, l.ghostClass, !0)), T !== f && f !== y.active ? T = f : f === y.active && T && (T = null), c === f && (f._ignoreWhileAnimating = n), f.animateAll(function() {
|
|
1570
|
+
S("dragOverAnimationComplete"), f._ignoreWhileAnimating = null;
|
|
1571
|
+
}), f !== c && (c.animateAll(), c._ignoreWhileAnimating = null)), (n === u && !u.animated || n === e && !n.animated) && (pt = null), !l.dragoverBubble && !t.rootEl && n !== document && (u.parentNode[R]._isOutsideThisEl(t.target), !xt && ot(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), v = !0;
|
|
1572
1572
|
}
|
|
1573
1573
|
function et() {
|
|
1574
|
-
|
|
1575
|
-
sortable:
|
|
1574
|
+
k = B(u), q = B(u, l.draggable), P({
|
|
1575
|
+
sortable: f,
|
|
1576
1576
|
name: "change",
|
|
1577
1577
|
toEl: e,
|
|
1578
|
-
newIndex:
|
|
1579
|
-
newDraggableIndex:
|
|
1578
|
+
newIndex: k,
|
|
1579
|
+
newDraggableIndex: q,
|
|
1580
1580
|
originalEvent: t
|
|
1581
1581
|
});
|
|
1582
1582
|
}
|
|
1583
|
-
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n =
|
|
1584
|
-
return
|
|
1585
|
-
if (
|
|
1583
|
+
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = j(n, l.draggable, e, !0), S("dragOver"), y.eventCanceled)
|
|
1584
|
+
return v;
|
|
1585
|
+
if (u.contains(t.target) || n.animated && n.animatingX && n.animatingY || f._ignoreWhileAnimating === n)
|
|
1586
1586
|
return O(!1);
|
|
1587
|
-
if (Jt = !1, d && !
|
|
1588
|
-
if (
|
|
1589
|
-
return
|
|
1590
|
-
if (
|
|
1591
|
-
return A =
|
|
1592
|
-
var
|
|
1593
|
-
if (!
|
|
1594
|
-
if (
|
|
1587
|
+
if (Jt = !1, d && !l.disabled && (p ? h || (a = A !== C) : T === this || (this.lastPutMode = Bt.checkPull(this, d, u, t)) && s.checkPut(this, d, u, t))) {
|
|
1588
|
+
if (m = this._getDirection(t, n) === "vertical", r = D(u), S("dragOverValid"), y.eventCanceled)
|
|
1589
|
+
return v;
|
|
1590
|
+
if (a)
|
|
1591
|
+
return A = C, U(), this._hideClone(), S("revert"), y.eventCanceled || (st ? C.insertBefore(u, st) : C.appendChild(u)), O(!0);
|
|
1592
|
+
var W = Te(e, l.draggable);
|
|
1593
|
+
if (!W || wn(t, m, this) && !W.animated) {
|
|
1594
|
+
if (W === u)
|
|
1595
1595
|
return O(!1);
|
|
1596
|
-
if (
|
|
1597
|
-
return
|
|
1598
|
-
} else if (
|
|
1599
|
-
var re =
|
|
1600
|
-
if (re ===
|
|
1596
|
+
if (W && e === t.target && (n = W), n && (o = D(n)), Ft(C, e, u, r, n, o, t, !!n) !== !1)
|
|
1597
|
+
return U(), W && W.nextSibling ? e.insertBefore(u, W.nextSibling) : e.appendChild(u), A = e, et(), O(!0);
|
|
1598
|
+
} else if (W && En(t, m, this)) {
|
|
1599
|
+
var re = _t(e, 0, l, !0);
|
|
1600
|
+
if (re === u)
|
|
1601
1601
|
return O(!1);
|
|
1602
|
-
if (n = re, o =
|
|
1603
|
-
return
|
|
1602
|
+
if (n = re, o = D(n), Ft(C, e, u, r, n, o, t, !1) !== !1)
|
|
1603
|
+
return U(), e.insertBefore(u, re), A = e, et(), O(!0);
|
|
1604
1604
|
} else if (n.parentNode === e) {
|
|
1605
|
-
o =
|
|
1606
|
-
var
|
|
1607
|
-
|
|
1608
|
-
var
|
|
1609
|
-
if (
|
|
1610
|
-
var
|
|
1605
|
+
o = D(n);
|
|
1606
|
+
var ht = 0, oe, Mi = u.parentNode !== e, Oe = !mn(u.animated && u.toRect || r, n.animated && n.toRect || o, m), He = m ? "top" : "left", Ct = Qe(n, "top", "top") || Qe(u, "top", "top"), Ni = Ct ? Ct.scrollTop : void 0;
|
|
1607
|
+
pt !== n && (oe = o[He], Lt = !1, Rt = !Oe && l.invertSwap || Mi), ht = Cn(t, n, o, m, Oe ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Rt, pt === n);
|
|
1608
|
+
var $t;
|
|
1609
|
+
if (ht !== 0) {
|
|
1610
|
+
var Le = B(u);
|
|
1611
1611
|
do
|
|
1612
|
-
|
|
1613
|
-
while (
|
|
1612
|
+
Le -= ht, $t = A.children[Le];
|
|
1613
|
+
while ($t && (g($t, "display") === "none" || $t === b));
|
|
1614
1614
|
}
|
|
1615
|
-
if (
|
|
1615
|
+
if (ht === 0 || $t === n)
|
|
1616
1616
|
return O(!1);
|
|
1617
|
-
|
|
1618
|
-
var
|
|
1619
|
-
At =
|
|
1620
|
-
var
|
|
1621
|
-
if (
|
|
1622
|
-
return (
|
|
1617
|
+
pt = n, Ht = ht;
|
|
1618
|
+
var Pe = n.nextElementSibling, At = !1;
|
|
1619
|
+
At = ht === 1;
|
|
1620
|
+
var Vt = Ft(C, e, u, r, n, o, t, At);
|
|
1621
|
+
if (Vt !== !1)
|
|
1622
|
+
return (Vt === 1 || Vt === -1) && (At = Vt === 1), Ae = !0, setTimeout(_n, 30), U(), At && !Pe ? e.appendChild(u) : n.parentNode.insertBefore(u, At ? Pe : n), Ct && dn(Ct, 0, Ni - Ct.scrollTop), A = u.parentNode, oe !== void 0 && !Rt && (Wt = Math.abs(oe - D(n)[He])), et(), O(!0);
|
|
1623
1623
|
}
|
|
1624
|
-
if (e.contains(
|
|
1624
|
+
if (e.contains(u))
|
|
1625
1625
|
return O(!1);
|
|
1626
1626
|
}
|
|
1627
1627
|
return !1;
|
|
1628
1628
|
},
|
|
1629
1629
|
_ignoreWhileAnimating: null,
|
|
1630
1630
|
_offMoveEvents: function() {
|
|
1631
|
-
|
|
1631
|
+
_(document, "mousemove", this._onTouchMove), _(document, "touchmove", this._onTouchMove), _(document, "pointermove", this._onTouchMove), _(document, "dragover", ot), _(document, "mousemove", ot), _(document, "touchmove", ot);
|
|
1632
1632
|
},
|
|
1633
1633
|
_offUpEvents: function() {
|
|
1634
1634
|
var t = this.el.ownerDocument;
|
|
1635
|
-
|
|
1635
|
+
_(t, "mouseup", this._onDrop), _(t, "touchend", this._onDrop), _(t, "pointerup", this._onDrop), _(t, "touchcancel", this._onDrop), _(document, "selectstart", this);
|
|
1636
1636
|
},
|
|
1637
1637
|
_onDrop: function(t) {
|
|
1638
1638
|
var e = this.el, n = this.options;
|
|
1639
|
-
if (
|
|
1639
|
+
if (k = B(u), q = B(u, n.draggable), I("drop", this, {
|
|
1640
1640
|
evt: t
|
|
1641
|
-
}), A =
|
|
1641
|
+
}), A = u && u.parentNode, k = B(u), q = B(u, n.draggable), y.eventCanceled) {
|
|
1642
1642
|
this._nulling();
|
|
1643
1643
|
return;
|
|
1644
1644
|
}
|
|
1645
|
-
gt = !1,
|
|
1645
|
+
gt = !1, Rt = !1, Lt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), xe(this.cloneId), xe(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Xt && g(document.body, "user-select", ""), g(u, "transform", ""), t && (Tt && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), b && b.parentNode && b.parentNode.removeChild(b), (C === A || T && T.lastPutMode !== "clone") && $ && $.parentNode && $.parentNode.removeChild($), u && (this.nativeDraggable && _(u, "dragend", this), _e(u), u.style["will-change"] = "", Tt && !gt && N(u, T ? T.options.ghostClass : this.options.ghostClass, !1), N(u, this.options.chosenClass, !1), P({
|
|
1646
1646
|
sortable: this,
|
|
1647
1647
|
name: "unchoose",
|
|
1648
1648
|
toEl: A,
|
|
1649
1649
|
newIndex: null,
|
|
1650
1650
|
newDraggableIndex: null,
|
|
1651
1651
|
originalEvent: t
|
|
1652
|
-
}),
|
|
1652
|
+
}), C !== A ? (k >= 0 && (P({
|
|
1653
1653
|
rootEl: A,
|
|
1654
1654
|
name: "add",
|
|
1655
1655
|
toEl: A,
|
|
1656
|
-
fromEl:
|
|
1656
|
+
fromEl: C,
|
|
1657
1657
|
originalEvent: t
|
|
1658
|
-
}),
|
|
1658
|
+
}), P({
|
|
1659
1659
|
sortable: this,
|
|
1660
1660
|
name: "remove",
|
|
1661
1661
|
toEl: A,
|
|
1662
1662
|
originalEvent: t
|
|
1663
|
-
}),
|
|
1663
|
+
}), P({
|
|
1664
1664
|
rootEl: A,
|
|
1665
1665
|
name: "sort",
|
|
1666
1666
|
toEl: A,
|
|
1667
|
-
fromEl:
|
|
1667
|
+
fromEl: C,
|
|
1668
1668
|
originalEvent: t
|
|
1669
|
-
}),
|
|
1669
|
+
}), P({
|
|
1670
1670
|
sortable: this,
|
|
1671
1671
|
name: "sort",
|
|
1672
1672
|
toEl: A,
|
|
1673
1673
|
originalEvent: t
|
|
1674
|
-
})),
|
|
1674
|
+
})), T && T.save()) : k !== mt && k >= 0 && (P({
|
|
1675
1675
|
sortable: this,
|
|
1676
1676
|
name: "update",
|
|
1677
1677
|
toEl: A,
|
|
1678
1678
|
originalEvent: t
|
|
1679
|
-
}),
|
|
1679
|
+
}), P({
|
|
1680
1680
|
sortable: this,
|
|
1681
1681
|
name: "sort",
|
|
1682
1682
|
toEl: A,
|
|
1683
1683
|
originalEvent: t
|
|
1684
|
-
})), y.active && ((
|
|
1684
|
+
})), y.active && ((k == null || k === -1) && (k = mt, q = Ot), P({
|
|
1685
1685
|
sortable: this,
|
|
1686
1686
|
name: "end",
|
|
1687
1687
|
toEl: A,
|
|
@@ -1689,9 +1689,9 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1689
1689
|
}), this.save()))), this._nulling();
|
|
1690
1690
|
},
|
|
1691
1691
|
_nulling: function() {
|
|
1692
|
-
|
|
1692
|
+
I("nulling", this), C = u = A = b = st = $ = Yt = K = rt = F = Tt = k = q = mt = Ot = pt = Ht = T = Bt = y.dragged = y.ghost = y.clone = y.active = null, ee.forEach(function(t) {
|
|
1693
1693
|
t.checked = !0;
|
|
1694
|
-
}), ee.length =
|
|
1694
|
+
}), ee.length = ve = ye = 0;
|
|
1695
1695
|
},
|
|
1696
1696
|
handleEvent: function(t) {
|
|
1697
1697
|
switch (t.type) {
|
|
@@ -1701,7 +1701,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1701
1701
|
break;
|
|
1702
1702
|
case "dragenter":
|
|
1703
1703
|
case "dragover":
|
|
1704
|
-
|
|
1704
|
+
u && (this._onDragOver(t), bn(t));
|
|
1705
1705
|
break;
|
|
1706
1706
|
case "selectstart":
|
|
1707
1707
|
t.preventDefault();
|
|
@@ -1713,8 +1713,8 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1713
1713
|
* @returns {String[]}
|
|
1714
1714
|
*/
|
|
1715
1715
|
toArray: function() {
|
|
1716
|
-
for (var t = [], e, n = this.el.children, r = 0, o = n.length,
|
|
1717
|
-
e = n[r],
|
|
1716
|
+
for (var t = [], e, n = this.el.children, r = 0, o = n.length, a = this.options; r < o; r++)
|
|
1717
|
+
e = n[r], j(e, a.draggable, this.el, !1) && t.push(e.getAttribute(a.dataIdAttr) || An(e));
|
|
1718
1718
|
return t;
|
|
1719
1719
|
},
|
|
1720
1720
|
/**
|
|
@@ -1723,9 +1723,9 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1723
1723
|
*/
|
|
1724
1724
|
sort: function(t, e) {
|
|
1725
1725
|
var n = {}, r = this.el;
|
|
1726
|
-
this.toArray().forEach(function(o,
|
|
1727
|
-
var
|
|
1728
|
-
|
|
1726
|
+
this.toArray().forEach(function(o, a) {
|
|
1727
|
+
var l = r.children[a];
|
|
1728
|
+
j(l, this.options.draggable, r, !1) && (n[o] = l);
|
|
1729
1729
|
}, this), e && this.captureAnimationState(), t.forEach(function(o) {
|
|
1730
1730
|
n[o] && (r.removeChild(n[o]), r.appendChild(n[o]));
|
|
1731
1731
|
}), e && this.animateAll();
|
|
@@ -1744,7 +1744,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1744
1744
|
* @returns {HTMLElement|null}
|
|
1745
1745
|
*/
|
|
1746
1746
|
closest: function(t, e) {
|
|
1747
|
-
return
|
|
1747
|
+
return j(t, e || this.options.draggable, this.el, !1);
|
|
1748
1748
|
},
|
|
1749
1749
|
/**
|
|
1750
1750
|
* Set/get option
|
|
@@ -1756,24 +1756,24 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1756
1756
|
var n = this.options;
|
|
1757
1757
|
if (e === void 0)
|
|
1758
1758
|
return n[t];
|
|
1759
|
-
var r =
|
|
1760
|
-
typeof r < "u" ? n[t] = r : n[t] = e, t === "group" &&
|
|
1759
|
+
var r = kt.modifyOption(this, t, e);
|
|
1760
|
+
typeof r < "u" ? n[t] = r : n[t] = e, t === "group" && Si(n);
|
|
1761
1761
|
},
|
|
1762
1762
|
/**
|
|
1763
1763
|
* Destroy
|
|
1764
1764
|
*/
|
|
1765
1765
|
destroy: function() {
|
|
1766
|
-
|
|
1766
|
+
I("destroy", this);
|
|
1767
1767
|
var t = this.el;
|
|
1768
|
-
t[
|
|
1768
|
+
t[R] = 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) {
|
|
1769
1769
|
e.removeAttribute("draggable");
|
|
1770
1770
|
}), this._onDrop(), this._disableDelayedDragEvents(), te.splice(te.indexOf(this.el), 1), this.el = t = null;
|
|
1771
1771
|
},
|
|
1772
1772
|
_hideClone: function() {
|
|
1773
1773
|
if (!K) {
|
|
1774
|
-
if (
|
|
1774
|
+
if (I("hideClone", this), y.eventCanceled)
|
|
1775
1775
|
return;
|
|
1776
|
-
g(
|
|
1776
|
+
g($, "display", "none"), this.options.removeCloneOnHide && $.parentNode && $.parentNode.removeChild($), K = !0;
|
|
1777
1777
|
}
|
|
1778
1778
|
},
|
|
1779
1779
|
_showClone: function(t) {
|
|
@@ -1782,58 +1782,58 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1782
1782
|
return;
|
|
1783
1783
|
}
|
|
1784
1784
|
if (K) {
|
|
1785
|
-
if (
|
|
1785
|
+
if (I("showClone", this), y.eventCanceled)
|
|
1786
1786
|
return;
|
|
1787
|
-
|
|
1787
|
+
u.parentNode == C && !this.options.group.revertClone ? C.insertBefore($, u) : st ? C.insertBefore($, st) : C.appendChild($), this.options.group.revertClone && this.animate(u, $), g($, "display", ""), K = !1;
|
|
1788
1788
|
}
|
|
1789
1789
|
}
|
|
1790
1790
|
};
|
|
1791
|
-
function
|
|
1791
|
+
function bn(i) {
|
|
1792
1792
|
i.dataTransfer && (i.dataTransfer.dropEffect = "move"), i.cancelable && i.preventDefault();
|
|
1793
1793
|
}
|
|
1794
|
-
function Ft(i, t, e, n, r, o,
|
|
1795
|
-
var
|
|
1796
|
-
return window.CustomEvent && !tt && !ie ?
|
|
1794
|
+
function Ft(i, t, e, n, r, o, a, l) {
|
|
1795
|
+
var s, d = i[R], p = d.options.onMove, h;
|
|
1796
|
+
return window.CustomEvent && !tt && !ie ? s = new CustomEvent("move", {
|
|
1797
1797
|
bubbles: !0,
|
|
1798
1798
|
cancelable: !0
|
|
1799
|
-
}) : (
|
|
1799
|
+
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = t, s.from = i, s.dragged = e, s.draggedRect = n, s.related = r || t, s.relatedRect = o || D(t), s.willInsertAfter = l, s.originalEvent = a, i.dispatchEvent(s), p && (h = p.call(d, s, a)), h;
|
|
1800
1800
|
}
|
|
1801
|
-
function
|
|
1801
|
+
function _e(i) {
|
|
1802
1802
|
i.draggable = !1;
|
|
1803
1803
|
}
|
|
1804
1804
|
function _n() {
|
|
1805
1805
|
Ae = !1;
|
|
1806
1806
|
}
|
|
1807
|
-
function
|
|
1808
|
-
var n =
|
|
1807
|
+
function En(i, t, e) {
|
|
1808
|
+
var n = D(_t(e.el, 0, e.options, !0)), r = 10;
|
|
1809
1809
|
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;
|
|
1810
1810
|
}
|
|
1811
|
-
function
|
|
1812
|
-
var n =
|
|
1811
|
+
function wn(i, t, e) {
|
|
1812
|
+
var n = D(Te(e.el, e.options.draggable)), r = 10;
|
|
1813
1813
|
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;
|
|
1814
1814
|
}
|
|
1815
|
-
function
|
|
1816
|
-
var
|
|
1817
|
-
if (!
|
|
1818
|
-
if (
|
|
1819
|
-
if (!
|
|
1815
|
+
function Cn(i, t, e, n, r, o, a, l) {
|
|
1816
|
+
var s = n ? i.clientY : i.clientX, d = n ? e.height : e.width, p = n ? e.top : e.left, h = n ? e.bottom : e.right, c = !1;
|
|
1817
|
+
if (!a) {
|
|
1818
|
+
if (l && Wt < d * r) {
|
|
1819
|
+
if (!Lt && (Ht === 1 ? s > p + d * o / 2 : s < h - d * o / 2) && (Lt = !0), Lt)
|
|
1820
1820
|
c = !0;
|
|
1821
|
-
else if (
|
|
1822
|
-
return -
|
|
1823
|
-
} else if (
|
|
1824
|
-
return
|
|
1821
|
+
else if (Ht === 1 ? s < p + Wt : s > h - Wt)
|
|
1822
|
+
return -Ht;
|
|
1823
|
+
} else if (s > p + d * (1 - r) / 2 && s < h - d * (1 - r) / 2)
|
|
1824
|
+
return $n(t);
|
|
1825
1825
|
}
|
|
1826
|
-
return c = c ||
|
|
1826
|
+
return c = c || a, c && (s < p + d * o / 2 || s > h - d * o / 2) ? s > p + d / 2 ? 1 : -1 : 0;
|
|
1827
1827
|
}
|
|
1828
|
-
function
|
|
1829
|
-
return
|
|
1828
|
+
function $n(i) {
|
|
1829
|
+
return B(u) < B(i) ? 1 : -1;
|
|
1830
1830
|
}
|
|
1831
|
-
function
|
|
1831
|
+
function An(i) {
|
|
1832
1832
|
for (var t = i.tagName + i.className + i.src + i.href + i.textContent, e = t.length, n = 0; e--; )
|
|
1833
1833
|
n += t.charCodeAt(e);
|
|
1834
1834
|
return n.toString(36);
|
|
1835
1835
|
}
|
|
1836
|
-
function
|
|
1836
|
+
function xn(i) {
|
|
1837
1837
|
ee.length = 0;
|
|
1838
1838
|
for (var t = i.getElementsByTagName("input"), e = t.length; e--; ) {
|
|
1839
1839
|
var n = t[e];
|
|
@@ -1843,33 +1843,33 @@ function An(i) {
|
|
|
1843
1843
|
function Gt(i) {
|
|
1844
1844
|
return setTimeout(i, 0);
|
|
1845
1845
|
}
|
|
1846
|
-
function
|
|
1846
|
+
function xe(i) {
|
|
1847
1847
|
return clearTimeout(i);
|
|
1848
1848
|
}
|
|
1849
|
-
ne &&
|
|
1849
|
+
ne && w(document, "touchmove", function(i) {
|
|
1850
1850
|
(y.active || gt) && i.cancelable && i.preventDefault();
|
|
1851
1851
|
});
|
|
1852
1852
|
y.utils = {
|
|
1853
|
-
on:
|
|
1854
|
-
off:
|
|
1853
|
+
on: w,
|
|
1854
|
+
off: _,
|
|
1855
1855
|
css: g,
|
|
1856
|
-
find:
|
|
1856
|
+
find: Ci,
|
|
1857
1857
|
is: function(t, e) {
|
|
1858
|
-
return !!
|
|
1858
|
+
return !!j(t, e, t, !1);
|
|
1859
1859
|
},
|
|
1860
1860
|
extend: sn,
|
|
1861
|
-
throttle:
|
|
1862
|
-
closest:
|
|
1863
|
-
toggleClass:
|
|
1864
|
-
clone:
|
|
1865
|
-
index:
|
|
1861
|
+
throttle: ln,
|
|
1862
|
+
closest: j,
|
|
1863
|
+
toggleClass: N,
|
|
1864
|
+
clone: $i,
|
|
1865
|
+
index: B,
|
|
1866
1866
|
nextTick: Gt,
|
|
1867
|
-
cancelNextTick:
|
|
1868
|
-
detectDirection:
|
|
1869
|
-
getChild:
|
|
1867
|
+
cancelNextTick: xe,
|
|
1868
|
+
detectDirection: xi,
|
|
1869
|
+
getChild: _t
|
|
1870
1870
|
};
|
|
1871
1871
|
y.get = function(i) {
|
|
1872
|
-
return i[
|
|
1872
|
+
return i[R];
|
|
1873
1873
|
};
|
|
1874
1874
|
y.mount = function() {
|
|
1875
1875
|
for (var i = arguments.length, t = new Array(i), e = 0; e < i; e++)
|
|
@@ -1877,28 +1877,28 @@ y.mount = function() {
|
|
|
1877
1877
|
t[0].constructor === Array && (t = t[0]), t.forEach(function(n) {
|
|
1878
1878
|
if (!n.prototype || !n.prototype.constructor)
|
|
1879
1879
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
|
|
1880
|
-
n.utils && (y.utils = X(X({}, y.utils), n.utils)),
|
|
1880
|
+
n.utils && (y.utils = X(X({}, y.utils), n.utils)), kt.mount(n);
|
|
1881
1881
|
});
|
|
1882
1882
|
};
|
|
1883
1883
|
y.create = function(i, t) {
|
|
1884
1884
|
return new y(i, t);
|
|
1885
1885
|
};
|
|
1886
|
-
y.version =
|
|
1886
|
+
y.version = rn;
|
|
1887
1887
|
var Oi = function(t) {
|
|
1888
|
-
var e = t.originalEvent, n = t.putSortable, r = t.dragEl, o = t.activeSortable,
|
|
1888
|
+
var e = t.originalEvent, n = t.putSortable, r = t.dragEl, o = t.activeSortable, a = t.dispatchSortableEvent, l = t.hideGhostForTarget, s = t.unhideGhostForTarget;
|
|
1889
1889
|
if (e) {
|
|
1890
1890
|
var d = n || o;
|
|
1891
|
-
|
|
1892
|
-
var
|
|
1893
|
-
|
|
1891
|
+
l();
|
|
1892
|
+
var p = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, h = document.elementFromPoint(p.clientX, p.clientY);
|
|
1893
|
+
s(), d && !d.el.contains(h) && (a("spill"), this.onSpill({
|
|
1894
1894
|
dragEl: r,
|
|
1895
1895
|
putSortable: n
|
|
1896
1896
|
}));
|
|
1897
1897
|
}
|
|
1898
1898
|
};
|
|
1899
|
-
function
|
|
1899
|
+
function Hi() {
|
|
1900
1900
|
}
|
|
1901
|
-
|
|
1901
|
+
Hi.prototype = {
|
|
1902
1902
|
startIndex: null,
|
|
1903
1903
|
dragStart: function(t) {
|
|
1904
1904
|
var e = t.oldDraggableIndex;
|
|
@@ -1907,128 +1907,421 @@ Pi.prototype = {
|
|
|
1907
1907
|
onSpill: function(t) {
|
|
1908
1908
|
var e = t.dragEl, n = t.putSortable;
|
|
1909
1909
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
1910
|
-
var r =
|
|
1910
|
+
var r = _t(this.sortable.el, this.startIndex, this.options);
|
|
1911
1911
|
r ? this.sortable.el.insertBefore(e, r) : this.sortable.el.appendChild(e), this.sortable.animateAll(), n && n.animateAll();
|
|
1912
1912
|
},
|
|
1913
1913
|
drop: Oi
|
|
1914
1914
|
};
|
|
1915
|
-
J(
|
|
1915
|
+
J(Hi, {
|
|
1916
1916
|
pluginName: "revertOnSpill"
|
|
1917
1917
|
});
|
|
1918
|
-
function
|
|
1918
|
+
function Li() {
|
|
1919
1919
|
}
|
|
1920
|
-
|
|
1920
|
+
Li.prototype = {
|
|
1921
1921
|
onSpill: function(t) {
|
|
1922
1922
|
var e = t.dragEl, n = t.putSortable, r = n || this.sortable;
|
|
1923
1923
|
r.captureAnimationState(), e.parentNode && e.parentNode.removeChild(e), r.animateAll();
|
|
1924
1924
|
},
|
|
1925
1925
|
drop: Oi
|
|
1926
1926
|
};
|
|
1927
|
-
J(
|
|
1927
|
+
J(Li, {
|
|
1928
1928
|
pluginName: "removeOnSpill"
|
|
1929
1929
|
});
|
|
1930
|
-
const
|
|
1930
|
+
const Pi = `
|
|
1931
1931
|
:host {
|
|
1932
1932
|
display: block;
|
|
1933
1933
|
}
|
|
1934
1934
|
.layer {
|
|
1935
|
-
display: flex;
|
|
1935
|
+
display: inline-flex;
|
|
1936
1936
|
justify-content: space-between;
|
|
1937
1937
|
}
|
|
1938
|
-
.drag-handle {
|
|
1939
|
-
cursor: ns-resize;
|
|
1940
|
-
}
|
|
1941
1938
|
ul[data-group] {
|
|
1942
1939
|
padding-inline-start: 40px;
|
|
1943
1940
|
}
|
|
1944
1941
|
`, Sn = `
|
|
1945
|
-
|
|
1942
|
+
button {
|
|
1943
|
+
/* TODO: why does this only work here and not from :root? */
|
|
1944
|
+
--primary-color: #004170;
|
|
1945
|
+
--primary-color-hover: #004170CC;
|
|
1946
|
+
--error-color: #FF5252;
|
|
1947
|
+
|
|
1948
|
+
display: inline-flex;
|
|
1949
|
+
align-items: center;
|
|
1950
|
+
color: #fff;
|
|
1951
|
+
border-width: 0;
|
|
1952
|
+
outline: none;
|
|
1953
|
+
border-radius: 4px;
|
|
1954
|
+
padding: 16px;
|
|
1955
|
+
height: 36px;
|
|
1956
|
+
cursor: pointer;
|
|
1957
|
+
font-family: inherit;
|
|
1958
|
+
font-size: 0.875rem;
|
|
1959
|
+
text-transform: uppercase;
|
|
1960
|
+
letter-spacing: 1.25px;
|
|
1961
|
+
font-weight: 500;
|
|
1962
|
+
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
|
|
1963
|
+
transition-property: box-shadow, transform, opacity, background;
|
|
1964
|
+
transition-duration: 0.28s;
|
|
1965
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
button:hover {
|
|
1969
|
+
box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
|
|
1970
|
+
background: var(--primary-color-hover);
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
button, button:active {
|
|
1974
|
+
background: var(--primary-color);
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
button.outline {
|
|
1978
|
+
background: transparent;
|
|
1979
|
+
box-shadow: none;
|
|
1980
|
+
color: var(--primary-color);
|
|
1981
|
+
outline: 1px solid var(--primary-color);
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
button.outline:hover {
|
|
1985
|
+
background: transparent;
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
button.icon {
|
|
1989
|
+
background: transparent;
|
|
1990
|
+
border: none;
|
|
1991
|
+
box-shadow: none;
|
|
1946
1992
|
padding: 0;
|
|
1993
|
+
border-radius: 50%;
|
|
1994
|
+
width: 24px;
|
|
1947
1995
|
}
|
|
1948
|
-
|
|
1949
|
-
|
|
1996
|
+
|
|
1997
|
+
button.icon-text {
|
|
1998
|
+
text-indent: 26px;
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
button.icon:before, button.icon-text:before {
|
|
2002
|
+
position: absolute;
|
|
2003
|
+
text-indent: 0;
|
|
2004
|
+
line-height: initial;
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
button.icon:before {
|
|
2008
|
+
width: 24px;
|
|
2009
|
+
height: 24px;
|
|
2010
|
+
margin-right: 0;
|
|
1950
2011
|
}
|
|
1951
|
-
|
|
2012
|
+
|
|
2013
|
+
button.icon-text:before {
|
|
2014
|
+
width: 18px;
|
|
2015
|
+
height: 18px;
|
|
2016
|
+
}
|
|
2017
|
+
`, Dn = `
|
|
2018
|
+
input[type="range"] {
|
|
2019
|
+
-webkit-appearance: none;
|
|
2020
|
+
width: 90%;
|
|
2021
|
+
margin-left: 5%;
|
|
2022
|
+
height: 6px;
|
|
2023
|
+
border-radius: 5px;
|
|
2024
|
+
background: #d7dcdf;
|
|
2025
|
+
outline: none;
|
|
2026
|
+
padding: 0;
|
|
2027
|
+
}
|
|
2028
|
+
input[type="range"]::-webkit-slider-thumb {
|
|
2029
|
+
appearance: none;
|
|
2030
|
+
width: 15px;
|
|
2031
|
+
height: 15px;
|
|
2032
|
+
border-radius: 50%;
|
|
2033
|
+
background: #2c3e50;
|
|
2034
|
+
cursor: pointer;
|
|
2035
|
+
transition: background 0.15s ease-in-out;
|
|
2036
|
+
}
|
|
2037
|
+
.range-slider {
|
|
2038
|
+
margin: 60px 0 0 0;
|
|
2039
|
+
}
|
|
2040
|
+
.range-slider {
|
|
2041
|
+
width: 100%;
|
|
2042
|
+
}
|
|
2043
|
+
input[type="range"]::-webkit-slider-thumb:hover {
|
|
2044
|
+
background: #00416F;
|
|
2045
|
+
}
|
|
2046
|
+
input[type="range"]:active::-webkit-slider-thumb {
|
|
2047
|
+
background: #00416F;
|
|
2048
|
+
}
|
|
2049
|
+
input[type="range"]::-moz-range-thumb {
|
|
2050
|
+
width: 15px;
|
|
2051
|
+
height: 15px;
|
|
2052
|
+
border: 0;
|
|
2053
|
+
border-radius: 50%;
|
|
2054
|
+
background: #2c3e50;
|
|
2055
|
+
cursor: pointer;
|
|
2056
|
+
transition: background 0.15s ease-in-out;
|
|
2057
|
+
}
|
|
2058
|
+
input[type="range"]::-moz-range-thumb:hover {
|
|
2059
|
+
background: #00416F;
|
|
2060
|
+
}
|
|
2061
|
+
input[type="range"]:active::-moz-range-thumb {
|
|
2062
|
+
background: #00416F;
|
|
2063
|
+
}
|
|
2064
|
+
input[type="range"]:focus::-webkit-slider-thumb {
|
|
2065
|
+
box-shadow: 0 0 0 3px #fff0, 0 0 0 6px #00416F00;
|
|
2066
|
+
}
|
|
2067
|
+
.range-slider__value {
|
|
2068
|
+
display: inline-block;
|
|
2069
|
+
position: relative;
|
|
2070
|
+
width: 60px;
|
|
2071
|
+
color: #fff;
|
|
2072
|
+
line-height: 20px;
|
|
2073
|
+
text-align: center;
|
|
2074
|
+
border-radius: 3px;
|
|
2075
|
+
background: #2c3e50;
|
|
2076
|
+
padding: 5px 10px;
|
|
2077
|
+
margin-left: 8px;
|
|
2078
|
+
}
|
|
2079
|
+
.range-slider__value:after {
|
|
2080
|
+
position: absolute;
|
|
2081
|
+
top: 8px;
|
|
2082
|
+
left: -7px;
|
|
2083
|
+
width: 0;
|
|
2084
|
+
height: 0;
|
|
2085
|
+
border-top: 7px solid transparent;
|
|
2086
|
+
border-right: 7px solid #2c3e50;
|
|
2087
|
+
border-bottom: 7px solid transparent;
|
|
2088
|
+
content: '';
|
|
2089
|
+
}
|
|
2090
|
+
|
|
2091
|
+
input::-moz-focus-inner, input::-moz-focus-outer {
|
|
2092
|
+
border: 0;
|
|
2093
|
+
}
|
|
2094
|
+
`, Tn = `
|
|
2095
|
+
input[type=radio] {
|
|
2096
|
+
appearance: none;
|
|
2097
|
+
margin: 0;
|
|
1952
2098
|
cursor: pointer;
|
|
1953
2099
|
display: flex;
|
|
2100
|
+
flex-direction: row;
|
|
1954
2101
|
align-items: center;
|
|
1955
2102
|
}
|
|
1956
|
-
|
|
2103
|
+
input[type=radio]:after {
|
|
2104
|
+
display: block;
|
|
2105
|
+
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");
|
|
2106
|
+
width: 20px;
|
|
2107
|
+
height: 20px;
|
|
2108
|
+
margin-right: 4px;
|
|
2109
|
+
}
|
|
2110
|
+
input[type=radio]:checked:after {
|
|
2111
|
+
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%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,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");
|
|
2112
|
+
|
|
2113
|
+
}
|
|
2114
|
+
`, On = `
|
|
2115
|
+
input[type=checkbox] {
|
|
1957
2116
|
appearance: none;
|
|
1958
2117
|
margin: 0;
|
|
2118
|
+
cursor: pointer;
|
|
2119
|
+
display: flex;
|
|
2120
|
+
flex-direction: row;
|
|
2121
|
+
align-items: center;
|
|
1959
2122
|
}
|
|
1960
|
-
|
|
2123
|
+
input[type=checkbox]:after {
|
|
1961
2124
|
display: block;
|
|
1962
|
-
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%
|
|
1963
|
-
width:
|
|
1964
|
-
height:
|
|
2125
|
+
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E");
|
|
2126
|
+
width: 20px;
|
|
2127
|
+
height: 20px;
|
|
1965
2128
|
margin-right: 4px;
|
|
1966
2129
|
}
|
|
1967
|
-
|
|
1968
|
-
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%
|
|
2130
|
+
input[type=checkbox]:checked:after {
|
|
2131
|
+
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");
|
|
2132
|
+
|
|
1969
2133
|
}
|
|
1970
|
-
|
|
1971
|
-
|
|
2134
|
+
`, Ii = `
|
|
2135
|
+
* {
|
|
2136
|
+
font-family: Roboto, sans-serif;
|
|
1972
2137
|
}
|
|
1973
|
-
|
|
1974
|
-
|
|
2138
|
+
|
|
2139
|
+
${Sn}
|
|
2140
|
+
${Dn}
|
|
2141
|
+
${Tn}
|
|
2142
|
+
${On}
|
|
2143
|
+
|
|
2144
|
+
summary > .layer {
|
|
2145
|
+
height: 36px;
|
|
2146
|
+
border-bottom: 1px solid #00417000;
|
|
2147
|
+
display: flex;
|
|
2148
|
+
align-items: center;
|
|
2149
|
+
padding-right: 12px;
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2152
|
+
[data-type=group] .title {
|
|
2153
|
+
font-style: italic;
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2156
|
+
|
|
2157
|
+
[data-type] .title::before {
|
|
1975
2158
|
width: 24px;
|
|
1976
2159
|
height: 24px;
|
|
2160
|
+
margin-right: 6px;
|
|
2161
|
+
margin-left: -1px;
|
|
1977
2162
|
}
|
|
1978
|
-
|
|
1979
|
-
|
|
2163
|
+
|
|
2164
|
+
[data-type=group] .title::before {
|
|
2165
|
+
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236889A0' viewBox='0 0 24 24'%3E%3Ctitle%3Efolder-outline%3C/title%3E%3Cpath d='M20,18H4V8H20M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z' /%3E%3C/svg%3E");
|
|
1980
2166
|
}
|
|
1981
|
-
|
|
1982
|
-
|
|
2167
|
+
|
|
2168
|
+
li[data-type=raster] .title::before {
|
|
2169
|
+
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236889A0' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckerboard%3C/title%3E%3Cpath d='M2 2V22H22V2H2M20 12H16V16H20V20H16V16H12V20H8V16H4V12H8V8H4V4H8V8H12V4H16V8H20V12M16 8V12H12V8H16M12 12V16H8V12H12Z' /%3E%3C/svg%3E");
|
|
1983
2170
|
}
|
|
1984
|
-
|
|
2171
|
+
|
|
2172
|
+
li[data-type=vector] .title::before {
|
|
2173
|
+
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236889A0' viewBox='0 0 24 24'%3E%3Ctitle%3Eshape-outline%3C/title%3E%3Cpath d='M11,13.5V21.5H3V13.5H11M9,15.5H5V19.5H9V15.5M12,2L17.5,11H6.5L12,2M12,5.86L10.08,9H13.92L12,5.86M17.5,13C20,13 22,15 22,17.5C22,20 20,22 17.5,22C15,22 13,20 13,17.5C13,15 15,13 17.5,13M17.5,15A2.5,2.5 0 0,0 15,17.5A2.5,2.5 0 0,0 17.5,20A2.5,2.5 0 0,0 20,17.5A2.5,2.5 0 0,0 17.5,15Z' /%3E%3C/svg%3E");
|
|
2174
|
+
}
|
|
2175
|
+
|
|
2176
|
+
li[data-type=draw] .title::before {
|
|
2177
|
+
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236889A0' viewBox='0 0 24 24'%3E%3Ctitle%3Evector-square-edit%3C/title%3E%3Cpath d='M22.7 14.4L21.7 15.4L19.6 13.3L20.6 12.3C20.8 12.1 21.2 12.1 21.4 12.3L22.7 13.6C22.9 13.8 22.9 14.1 22.7 14.4M13 19.9L19.1 13.8L21.2 15.9L15.1 22H13V19.9M11 19.9V19.1L11.6 18.5L12.1 18H8V16H6V8H8V6H16V8H18V12.1L19.1 11L19.3 10.8C19.5 10.6 19.8 10.4 20.1 10.3V8H22.1V2H16.1V4H8V2H2V8H4V16H2V22H8V20L11 19.9M18 4H20V6H18V4M4 4H6V6H4V4M6 20H4V18H6V20Z' /%3E%3C/svg%3E");
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2180
|
+
[data-type]:not([data-type=group]) .title {
|
|
2181
|
+
font-style: normal;
|
|
2182
|
+
}
|
|
2183
|
+
|
|
2184
|
+
details summary { list-style-type: none; } /* Firefox */
|
|
2185
|
+
details summary::-webkit-details-marker { display: none; } /* Chrome */
|
|
2186
|
+
details summary::marker { display: none; }
|
|
2187
|
+
|
|
2188
|
+
.layers > ul > li {
|
|
2189
|
+
background: #F1F5F900;
|
|
1985
2190
|
}
|
|
1986
|
-
|
|
2191
|
+
|
|
2192
|
+
summary {
|
|
1987
2193
|
position: relative;
|
|
1988
2194
|
}
|
|
1989
|
-
details
|
|
2195
|
+
summary details, summary li, summary ul {
|
|
2196
|
+
width: 100%;
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2199
|
+
input[type="text"] {
|
|
2200
|
+
--search-padding-left: 32px;
|
|
2201
|
+
width: calc(100% - var(--search-padding-left) - 4px);
|
|
2202
|
+
height: 32px;
|
|
2203
|
+
padding-left: var(--search-padding-left);
|
|
2204
|
+
font-size: 15px;
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
input[type="text"]::before {
|
|
2208
|
+
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Emagnify%3C/title%3E%3Cpath 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' /%3E%3C/svg%3E");
|
|
2209
|
+
}
|
|
2210
|
+
|
|
2211
|
+
ul {
|
|
2212
|
+
padding: 0;
|
|
2213
|
+
background: #D7E2EE;
|
|
2214
|
+
background: #CFDDEB00;
|
|
2215
|
+
}
|
|
2216
|
+
li {
|
|
1990
2217
|
list-style: none;
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
top:
|
|
1994
|
-
font-size: 0;
|
|
2218
|
+
cursor: pointer;
|
|
2219
|
+
background: #CFDDEB00;
|
|
2220
|
+
border-top: 1px solid #00417033;
|
|
1995
2221
|
}
|
|
1996
|
-
|
|
1997
|
-
display:
|
|
1998
|
-
|
|
2222
|
+
li summary {
|
|
2223
|
+
display: flex;
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
.slider-control {
|
|
2227
|
+
display: flex;
|
|
2228
|
+
flex-direction: row;
|
|
2229
|
+
align-items: center;
|
|
2230
|
+
margin-top: 9px;
|
|
2231
|
+
margin-left: 64px;
|
|
2232
|
+
margin-bottom: 12px;
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
.slider-control input[type=range] {
|
|
2236
|
+
max-width: 120px;
|
|
2237
|
+
}
|
|
2238
|
+
|
|
2239
|
+
.slider-control .slider-property {
|
|
2240
|
+
width: 80px;
|
|
2241
|
+
color: #3B6289;
|
|
2242
|
+
font-size: 14px;
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
.slider-control > * {
|
|
2246
|
+
text-transform: capitalize;
|
|
2247
|
+
}
|
|
2248
|
+
|
|
2249
|
+
/* Expansible Section Chevron */
|
|
2250
|
+
li summary:before {
|
|
2251
|
+
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echevron-right%3C/title%3E%3Cpath d='M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z' /%3E%3C/svg%3E");
|
|
2252
|
+
font-size: 13px;
|
|
1999
2253
|
width: 24px;
|
|
2000
2254
|
height: 24px;
|
|
2255
|
+
margin-right: 6px;
|
|
2256
|
+
margin-left: -1px;
|
|
2257
|
+
|
|
2258
|
+
margin-top: 5px;
|
|
2259
|
+
}
|
|
2260
|
+
li details[open] > summary:before {
|
|
2261
|
+
transform: rotate(90deg);
|
|
2262
|
+
}
|
|
2263
|
+
li[data-layerconfig=false]:not([data-type=group]) summary:before {
|
|
2264
|
+
display: none;
|
|
2265
|
+
}
|
|
2266
|
+
li .layer {
|
|
2267
|
+
width: 100%;
|
|
2268
|
+
}
|
|
2269
|
+
li .layer .left,
|
|
2270
|
+
li .layer .right {
|
|
2271
|
+
display: flex;
|
|
2272
|
+
}
|
|
2273
|
+
li .layer .left span {
|
|
2001
2274
|
cursor: pointer;
|
|
2275
|
+
display: flex;
|
|
2276
|
+
align-items: center;
|
|
2277
|
+
margin-left: 6px;
|
|
2002
2278
|
}
|
|
2003
|
-
|
|
2004
|
-
display:
|
|
2005
|
-
|
|
2279
|
+
.drag-handle span {
|
|
2280
|
+
display: none;
|
|
2281
|
+
}
|
|
2282
|
+
.drag-handle {
|
|
2283
|
+
cursor: ns-resize;
|
|
2284
|
+
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Edrag%3C/title%3E%3Cpath fill='%23004170' d='M7,19V17H9V19H7M11,19V17H13V19H11M15,19V17H17V19H15M7,15V13H9V15H7M11,15V13H13V15H11M15,15V13H17V15H15M7,11V9H9V11H7M11,11V9H13V11H11M15,11V9H17V11H15M7,7V5H9V7H7M11,7V5H13V7H11M15,7V5H17V7H15Z' /%3E%3C/svg%3E");
|
|
2006
2285
|
width: 24px;
|
|
2007
2286
|
height: 24px;
|
|
2008
|
-
|
|
2287
|
+
}
|
|
2288
|
+
.drag-handle.disabled {
|
|
2289
|
+
cursor: not-allowed;
|
|
2290
|
+
opacity: 0.3;
|
|
2291
|
+
}
|
|
2292
|
+
li.sortable-chosen {
|
|
2293
|
+
background: #eeea;
|
|
2294
|
+
}
|
|
2295
|
+
li.sortable-drag {
|
|
2296
|
+
opacity: 0;
|
|
2297
|
+
}
|
|
2298
|
+
li.sortable-ghost {
|
|
2009
2299
|
}
|
|
2010
2300
|
`;
|
|
2011
|
-
var
|
|
2012
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
2013
|
-
(
|
|
2014
|
-
return n && r &&
|
|
2301
|
+
var Hn = Object.defineProperty, Ln = Object.getOwnPropertyDescriptor, x = (i, t, e, n) => {
|
|
2302
|
+
for (var r = n > 1 ? void 0 : n ? Ln(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
2303
|
+
(a = i[o]) && (r = (n ? a(t, e, r) : a(r)) || r);
|
|
2304
|
+
return n && r && Hn(t, e, r), r;
|
|
2015
2305
|
};
|
|
2016
|
-
let
|
|
2306
|
+
let V = class extends vt {
|
|
2017
2307
|
constructor() {
|
|
2018
2308
|
super(...arguments), this.layerIdentifier = "ol_uid", this.layerTitle = "title", this.sortBy = "layerOrder", this.layerConfig = ["opacity"], this.externalLayerConfig = void 0, this.filterLayers = (i, t, e) => {
|
|
2019
2309
|
let n = [];
|
|
2020
|
-
const r = (o,
|
|
2021
|
-
n = [...n, ...o.filter((d) => d.get(
|
|
2022
|
-
const
|
|
2023
|
-
return
|
|
2310
|
+
const r = (o, a, l) => {
|
|
2311
|
+
n = [...n, ...o.filter((d) => d.get(a) === l)];
|
|
2312
|
+
const s = o.filter((d) => d.getLayers);
|
|
2313
|
+
return s.length > 0 && s.forEach(
|
|
2024
2314
|
(d) => (
|
|
2025
2315
|
// @ts-ignore
|
|
2026
|
-
r(d.getLayers().getArray(),
|
|
2316
|
+
r(d.getLayers().getArray(), a, l)
|
|
2027
2317
|
)
|
|
2028
2318
|
), n;
|
|
2029
2319
|
};
|
|
2030
2320
|
return r(i, t, e), n;
|
|
2031
|
-
}, this.findLayerById = (i, t) => this.filterLayers(i, "id", t)[0]
|
|
2321
|
+
}, this.findLayerById = (i, t) => this.filterLayers(i, "id", t)[0], this.getLayerType = (i, t) => i.getLayers ? "group" : t.getInteractions().getArray().filter((e) => e.freehand_ !== void 0).map((e) => e.source_.ol_uid).includes(i.getSource ? i.getSource().ol_uid : !1) ? "draw" : (
|
|
2322
|
+
// @ts-ignore
|
|
2323
|
+
i.declutter_ !== void 0 ? "vector" : "raster"
|
|
2324
|
+
);
|
|
2032
2325
|
}
|
|
2033
2326
|
_updateControl(i) {
|
|
2034
2327
|
this.layerCollection = i, this.optionalLayerArray = this.filterLayers(
|
|
@@ -2079,89 +2372,104 @@ let B = class extends mt {
|
|
|
2079
2372
|
this.requestUpdate();
|
|
2080
2373
|
}
|
|
2081
2374
|
render() {
|
|
2082
|
-
var
|
|
2083
|
-
const i = document.querySelector(this.for),
|
|
2375
|
+
var o;
|
|
2376
|
+
const i = document.querySelector(this.for), t = i.map || i, e = t.getLayers();
|
|
2084
2377
|
this._updateControl(e), e.on("change:length", () => {
|
|
2085
2378
|
this._currentlySorting || this._updateControl(e);
|
|
2086
2379
|
});
|
|
2087
|
-
const n = (
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
<
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
<label>
|
|
2100
|
-
<input
|
|
2101
|
-
type="${a.get("layerControlExclusive") ? "radio" : "checkbox"}"
|
|
2102
|
-
.checked="${Ce(a.getVisible())}"
|
|
2103
|
-
@click=${() => {
|
|
2104
|
-
this.toggleLayerVisibility(a, s);
|
|
2380
|
+
const n = (a, l) => {
|
|
2381
|
+
var s;
|
|
2382
|
+
return L`
|
|
2383
|
+
<details>
|
|
2384
|
+
<summary>
|
|
2385
|
+
<div class="layer">
|
|
2386
|
+
<div class="left">
|
|
2387
|
+
<input
|
|
2388
|
+
type="${a.get("layerControlExclusive") ? "radio" : "checkbox"}"
|
|
2389
|
+
.checked="${$e(a.getVisible())}"
|
|
2390
|
+
@click=${() => {
|
|
2391
|
+
this.toggleLayerVisibility(a, l);
|
|
2105
2392
|
}}
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
a.get(this.layerIdentifier)}`}
|
|
2393
|
+
/>
|
|
2394
|
+
<span class="title"
|
|
2395
|
+
>${a.get(this.layerTitle) || `${// @ts-ignore
|
|
2396
|
+
a.get(this.layerIdentifier)}`}
|
|
2397
|
+
</span>
|
|
2398
|
+
</div>
|
|
2399
|
+
<div class="right">
|
|
2400
|
+
${this.sortBy === "layerOrder" && !this.unstyled ? L` <div
|
|
2401
|
+
class="drag-handle ${a.get("layerControlDisable") ? "disabled" : ""}"
|
|
2110
2402
|
>
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
<details open class="group-details">
|
|
2135
|
-
<summary>Layers</summary>
|
|
2136
|
-
${n(
|
|
2403
|
+
<span>=</span>
|
|
2404
|
+
</div>` : E}
|
|
2405
|
+
</div>
|
|
2406
|
+
</div>
|
|
2407
|
+
</summary>
|
|
2408
|
+
${this.layerConfig ? L`
|
|
2409
|
+
<eox-layerconfig
|
|
2410
|
+
.layerConfig="${this.layerConfig}"
|
|
2411
|
+
.layerControl="${this}"
|
|
2412
|
+
.layer=${a}
|
|
2413
|
+
.external=${this.externalLayerConfig}
|
|
2414
|
+
.unstyled="${this.unstyled}"
|
|
2415
|
+
></eox-layerconfig>
|
|
2416
|
+
` : E}
|
|
2417
|
+
${// @ts-ignore
|
|
2418
|
+
this.externalLayerConfig && ((s = a.style_) != null && s.color) ? L`
|
|
2419
|
+
<button @click=${() => this._emitLayerconfig(a)}>
|
|
2420
|
+
configure
|
|
2421
|
+
</button>
|
|
2422
|
+
` : E}
|
|
2423
|
+
${// @ts-ignore
|
|
2424
|
+
a.getLayers ? L`
|
|
2425
|
+
${r(
|
|
2137
2426
|
this.preFilterLayers(
|
|
2138
2427
|
// @ts-ignore
|
|
2139
2428
|
[...a.getLayers().getArray()].reverse()
|
|
2140
2429
|
),
|
|
2141
2430
|
a.get("id")
|
|
2142
2431
|
)}
|
|
2143
|
-
|
|
2144
|
-
|
|
2432
|
+
` : E}
|
|
2433
|
+
</details>
|
|
2434
|
+
`;
|
|
2435
|
+
}, r = (a, l) => L`
|
|
2436
|
+
<ul data-group="${l ?? E}">
|
|
2437
|
+
${Ce(
|
|
2438
|
+
a,
|
|
2439
|
+
(s) => s.get(this.layerIdentifier),
|
|
2440
|
+
(s) => {
|
|
2441
|
+
var d;
|
|
2442
|
+
return L`
|
|
2443
|
+
<li
|
|
2444
|
+
data-layer="${//@ts-ignore
|
|
2445
|
+
s.get(this.layerIdentifier)}"
|
|
2446
|
+
data-disabled="${s.get("layerControlDisable") || E}"
|
|
2447
|
+
data-type="${this.getLayerType(s, t)}"
|
|
2448
|
+
data-layerconfig="${((d = this.layerConfig) == null ? void 0 : d.length) > 0}"
|
|
2449
|
+
>
|
|
2450
|
+
${n(s, l)}
|
|
2145
2451
|
</li>
|
|
2146
|
-
|
|
2452
|
+
`;
|
|
2453
|
+
}
|
|
2147
2454
|
)}
|
|
2148
2455
|
</ul>
|
|
2149
2456
|
`;
|
|
2150
|
-
return
|
|
2457
|
+
return L`
|
|
2151
2458
|
<style>
|
|
2152
|
-
${
|
|
2153
|
-
${!this.unstyled &&
|
|
2459
|
+
${Pi}
|
|
2460
|
+
${!this.unstyled && Ii}
|
|
2154
2461
|
</style>
|
|
2155
2462
|
<div>
|
|
2156
2463
|
<slot></slot>
|
|
2157
|
-
<
|
|
2158
|
-
|
|
2464
|
+
<input type="text" placeholder="Find layer" />
|
|
2465
|
+
<div class="layers">
|
|
2466
|
+
${r(
|
|
2159
2467
|
this.preFilterLayers(e.getArray())
|
|
2160
2468
|
)}
|
|
2161
2469
|
</div>
|
|
2162
|
-
${
|
|
2163
|
-
((
|
|
2164
|
-
() =>
|
|
2470
|
+
${bi(
|
|
2471
|
+
((o = this.optionalLayerArray) == null ? void 0 : o.length) > 0,
|
|
2472
|
+
() => L`
|
|
2165
2473
|
<label for="optional">Optional layers</label>
|
|
2166
2474
|
|
|
2167
2475
|
<select name="optional">
|
|
@@ -2169,36 +2477,36 @@ let B = class extends mt {
|
|
|
2169
2477
|
-- select an optional layer to add --
|
|
2170
2478
|
</option>
|
|
2171
2479
|
${this.optionalLayerArray.map(
|
|
2172
|
-
(
|
|
2480
|
+
(a) => L`
|
|
2173
2481
|
<option
|
|
2174
2482
|
value="${// @ts-ignore
|
|
2175
|
-
|
|
2483
|
+
a.get(this.layerIdentifier)}"
|
|
2176
2484
|
>
|
|
2177
|
-
${
|
|
2178
|
-
|
|
2485
|
+
${a.get(this.layerTitle) || `layer ${// @ts-ignore
|
|
2486
|
+
a.get(this.layerIdentifier)}`}
|
|
2179
2487
|
</option>
|
|
2180
2488
|
`
|
|
2181
2489
|
)}
|
|
2182
2490
|
</select>
|
|
2183
2491
|
<button
|
|
2184
2492
|
@click="${() => {
|
|
2185
|
-
const
|
|
2493
|
+
const a = this.optionalLayerArray.find(
|
|
2186
2494
|
// @ts-ignore
|
|
2187
|
-
(
|
|
2495
|
+
(l) => l.get(this.layerIdentifier) === // @ts-ignore
|
|
2188
2496
|
this.shadowRoot.querySelector("select[name=optional]").value
|
|
2189
2497
|
);
|
|
2190
|
-
if (
|
|
2191
|
-
const
|
|
2498
|
+
if (a.get("group")) {
|
|
2499
|
+
const l = this.findLayerById(
|
|
2192
2500
|
this.layerCollection.getArray(),
|
|
2193
|
-
|
|
2501
|
+
a.get("group")
|
|
2194
2502
|
);
|
|
2195
|
-
|
|
2503
|
+
l.getLayers().remove(a), l.getLayers().insertAt(l.getLayers().getLength(), a);
|
|
2196
2504
|
} else
|
|
2197
|
-
this.layerCollection.remove(
|
|
2505
|
+
this.layerCollection.remove(a), this.layerCollection.insertAt(
|
|
2198
2506
|
this.layerCollection.getLength(),
|
|
2199
|
-
|
|
2507
|
+
a
|
|
2200
2508
|
);
|
|
2201
|
-
|
|
2509
|
+
a.set("layerControlOptional", !1), a.setVisible(!0);
|
|
2202
2510
|
}}"
|
|
2203
2511
|
>
|
|
2204
2512
|
add
|
|
@@ -2212,9 +2520,9 @@ let B = class extends mt {
|
|
|
2212
2520
|
this.sortBy == "layerOrder" && this.renderRoot.querySelectorAll("ul").forEach((t) => {
|
|
2213
2521
|
const e = t.dataset.group;
|
|
2214
2522
|
y.create(t, {
|
|
2215
|
-
handle: ".drag-handle",
|
|
2523
|
+
handle: this.unstyled ? "summary" : ".drag-handle",
|
|
2216
2524
|
dataIdAttr: "data-layer",
|
|
2217
|
-
filter: "
|
|
2525
|
+
filter: ".drag-handle.disabled",
|
|
2218
2526
|
swapThreshold: 0.5,
|
|
2219
2527
|
animation: 150,
|
|
2220
2528
|
easing: "cubic-bezier(1, 0, 0, 1)",
|
|
@@ -2229,22 +2537,22 @@ let B = class extends mt {
|
|
|
2229
2537
|
].reverse(),
|
|
2230
2538
|
set: (n) => {
|
|
2231
2539
|
var r = n.toArray().reverse();
|
|
2232
|
-
r.forEach((o,
|
|
2540
|
+
r.forEach((o, a) => {
|
|
2233
2541
|
if (e) {
|
|
2234
|
-
const
|
|
2542
|
+
const s = this.findLayerById(
|
|
2235
2543
|
this.layerCollection.getArray(),
|
|
2236
2544
|
e
|
|
2237
2545
|
).getLayers(), d = this.findLayerById(
|
|
2238
|
-
|
|
2546
|
+
s.getArray(),
|
|
2239
2547
|
o
|
|
2240
2548
|
);
|
|
2241
|
-
|
|
2549
|
+
s.remove(d), s.insertAt(a, d);
|
|
2242
2550
|
} else {
|
|
2243
|
-
const
|
|
2551
|
+
const l = this.findLayerById(
|
|
2244
2552
|
this.layerCollection.getArray(),
|
|
2245
2553
|
o
|
|
2246
2554
|
);
|
|
2247
|
-
this.layerCollection.remove(
|
|
2555
|
+
this.layerCollection.remove(l), this.layerCollection.insertAt(a, l);
|
|
2248
2556
|
}
|
|
2249
2557
|
});
|
|
2250
2558
|
}
|
|
@@ -2254,43 +2562,43 @@ let B = class extends mt {
|
|
|
2254
2562
|
});
|
|
2255
2563
|
}
|
|
2256
2564
|
};
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
],
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
],
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
],
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
],
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
],
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
],
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
],
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
],
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
],
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
],
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
],
|
|
2290
|
-
|
|
2565
|
+
x([
|
|
2566
|
+
wt()
|
|
2567
|
+
], V.prototype, "olMap", 2);
|
|
2568
|
+
x([
|
|
2569
|
+
wt()
|
|
2570
|
+
], V.prototype, "layerCollection", 2);
|
|
2571
|
+
x([
|
|
2572
|
+
wt()
|
|
2573
|
+
], V.prototype, "layerArray", 2);
|
|
2574
|
+
x([
|
|
2575
|
+
wt()
|
|
2576
|
+
], V.prototype, "optionalLayerArray", 2);
|
|
2577
|
+
x([
|
|
2578
|
+
M()
|
|
2579
|
+
], V.prototype, "for", 2);
|
|
2580
|
+
x([
|
|
2581
|
+
M()
|
|
2582
|
+
], V.prototype, "layerIdentifier", 2);
|
|
2583
|
+
x([
|
|
2584
|
+
M()
|
|
2585
|
+
], V.prototype, "layerTitle", 2);
|
|
2586
|
+
x([
|
|
2587
|
+
M()
|
|
2588
|
+
], V.prototype, "sortBy", 2);
|
|
2589
|
+
x([
|
|
2590
|
+
M({ type: Array })
|
|
2591
|
+
], V.prototype, "layerConfig", 2);
|
|
2592
|
+
x([
|
|
2593
|
+
M({ type: Boolean })
|
|
2594
|
+
], V.prototype, "externalLayerConfig", 2);
|
|
2595
|
+
x([
|
|
2596
|
+
M({ type: Boolean })
|
|
2597
|
+
], V.prototype, "unstyled", 2);
|
|
2598
|
+
V = x([
|
|
2291
2599
|
gi("eox-layercontrol")
|
|
2292
|
-
],
|
|
2293
|
-
let
|
|
2600
|
+
], V);
|
|
2601
|
+
let Y = class extends vt {
|
|
2294
2602
|
constructor() {
|
|
2295
2603
|
super(...arguments), this._configList = {};
|
|
2296
2604
|
}
|
|
@@ -2316,47 +2624,50 @@ let q = class extends mt {
|
|
|
2316
2624
|
}))) : (this._layerControlElement = this.layerControl, this._currentLayer = this.layer, this._parseConfigs(this._currentLayer));
|
|
2317
2625
|
}
|
|
2318
2626
|
render() {
|
|
2319
|
-
return
|
|
2627
|
+
return L`
|
|
2320
2628
|
<style>
|
|
2321
|
-
${
|
|
2629
|
+
${Pi}
|
|
2630
|
+
${!this.unstyled && Ii}
|
|
2322
2631
|
</style>
|
|
2323
|
-
${
|
|
2632
|
+
${bi(
|
|
2324
2633
|
this._currentLayer,
|
|
2325
|
-
() =>
|
|
2634
|
+
() => L`
|
|
2326
2635
|
<div>
|
|
2327
2636
|
<slot></slot>
|
|
2328
|
-
${this.for ?
|
|
2329
|
-
${
|
|
2637
|
+
${this.for ? L`layer: ${this._currentLayer.get("name")}` : E}
|
|
2638
|
+
${Ce(
|
|
2330
2639
|
this.layerConfig.filter(
|
|
2331
2640
|
(i) => this.for ? i !== "opacity" : !0
|
|
2332
2641
|
),
|
|
2333
2642
|
(i) => i,
|
|
2334
|
-
(i) =>
|
|
2335
|
-
<div
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2643
|
+
(i) => L`
|
|
2644
|
+
<div class="slider-control">
|
|
2645
|
+
<div class="slider-property">${i}</div>
|
|
2646
|
+
<input
|
|
2647
|
+
type="range"
|
|
2648
|
+
min="0"
|
|
2649
|
+
max="1"
|
|
2650
|
+
step="0.01"
|
|
2651
|
+
value="${$e(this._currentLayer.getOpacity())}"
|
|
2652
|
+
@input=${(t) => this._handleInput(t, i)}
|
|
2653
|
+
/>
|
|
2654
|
+
</div>
|
|
2344
2655
|
`
|
|
2345
2656
|
)}
|
|
2346
|
-
${Object.keys(this._configList).length > 0 && !this.external ?
|
|
2657
|
+
${Object.keys(this._configList).length > 0 && !this.external ? L`
|
|
2347
2658
|
<details open="${this.for ? !0 : E}">
|
|
2348
2659
|
<summary>Layer config</summary>
|
|
2349
2660
|
<ul>
|
|
2350
|
-
${
|
|
2661
|
+
${Ce(
|
|
2351
2662
|
Object.keys(this._configList),
|
|
2352
2663
|
(i) => i,
|
|
2353
|
-
(i) =>
|
|
2664
|
+
(i) => L` <li>
|
|
2354
2665
|
<div>${i}</div>
|
|
2355
2666
|
<input
|
|
2356
2667
|
type="range"
|
|
2357
2668
|
min="${["red", "green", "blue"].includes(i) ? 1 : 2e3}"
|
|
2358
2669
|
max="${["red", "green", "blue"].includes(i) ? 4 : 5e3}"
|
|
2359
|
-
value="${
|
|
2670
|
+
value="${$e(
|
|
2360
2671
|
// @ts-ignore
|
|
2361
2672
|
this._configList[i]
|
|
2362
2673
|
)}"
|
|
@@ -2373,31 +2684,34 @@ let q = class extends mt {
|
|
|
2373
2684
|
`;
|
|
2374
2685
|
}
|
|
2375
2686
|
};
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
],
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
],
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
],
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
],
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
],
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
],
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
],
|
|
2397
|
-
|
|
2687
|
+
x([
|
|
2688
|
+
M()
|
|
2689
|
+
], Y.prototype, "for", 2);
|
|
2690
|
+
x([
|
|
2691
|
+
M({ type: Array })
|
|
2692
|
+
], Y.prototype, "layerConfig", 2);
|
|
2693
|
+
x([
|
|
2694
|
+
M({ type: Object, attribute: !1 })
|
|
2695
|
+
], Y.prototype, "layerControl", 2);
|
|
2696
|
+
x([
|
|
2697
|
+
M({ type: Object, attribute: !1 })
|
|
2698
|
+
], Y.prototype, "layer", 2);
|
|
2699
|
+
x([
|
|
2700
|
+
M({ type: Boolean })
|
|
2701
|
+
], Y.prototype, "external", 2);
|
|
2702
|
+
x([
|
|
2703
|
+
M({ type: Boolean })
|
|
2704
|
+
], Y.prototype, "unstyled", 2);
|
|
2705
|
+
x([
|
|
2706
|
+
wt()
|
|
2707
|
+
], Y.prototype, "_currentLayer", 2);
|
|
2708
|
+
x([
|
|
2709
|
+
wt()
|
|
2710
|
+
], Y.prototype, "_configList", 2);
|
|
2711
|
+
Y = x([
|
|
2398
2712
|
gi("eox-layerconfig")
|
|
2399
|
-
],
|
|
2713
|
+
], Y);
|
|
2400
2714
|
export {
|
|
2401
|
-
|
|
2402
|
-
|
|
2715
|
+
Y as EOxLayerConfig,
|
|
2716
|
+
V as EOxLayerControl
|
|
2403
2717
|
};
|