@eox/layercontrol 0.3.1 → 0.5.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 +1028 -783
- package/dist/eox-layercontrol.umd.cjs +139 -79
- package/package.json +1 -1
package/dist/eox-layercontrol.js
CHANGED
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
var wn = Object.defineProperty;
|
|
2
|
-
var Cn = (i, t, e) => t in i ? wn(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
-
var S = (i, t, e) => (Cn(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
1
|
/**
|
|
5
2
|
* @license
|
|
6
3
|
* Copyright 2019 Google LLC
|
|
7
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8
5
|
*/
|
|
9
|
-
const
|
|
10
|
-
let
|
|
6
|
+
const jt = window, De = jt.ShadowRoot && (jt.ShadyCSS === void 0 || jt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ri = Symbol(), Me = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let Ri = class {
|
|
11
8
|
constructor(t, e, n) {
|
|
12
|
-
if (this._$cssResult$ = !0, n !==
|
|
9
|
+
if (this._$cssResult$ = !0, n !== ri)
|
|
13
10
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
14
11
|
this.cssText = t, this.t = e;
|
|
15
12
|
}
|
|
16
13
|
get styleSheet() {
|
|
17
14
|
let t = this.o;
|
|
18
15
|
const e = this.t;
|
|
19
|
-
if (
|
|
16
|
+
if (De && t === void 0) {
|
|
20
17
|
const n = e !== void 0 && e.length === 1;
|
|
21
|
-
n && (t =
|
|
18
|
+
n && (t = Me.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && Me.set(e, t));
|
|
22
19
|
}
|
|
23
20
|
return t;
|
|
24
21
|
}
|
|
@@ -26,27 +23,27 @@ let Sn = class {
|
|
|
26
23
|
return this.cssText;
|
|
27
24
|
}
|
|
28
25
|
};
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
const n = document.createElement("style"), r =
|
|
26
|
+
const ki = (i) => new Ri(typeof i == "string" ? i : i + "", void 0, ri), Ui = (i, t) => {
|
|
27
|
+
De ? i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
|
|
28
|
+
const n = document.createElement("style"), r = jt.litNonce;
|
|
32
29
|
r !== void 0 && n.setAttribute("nonce", r), n.textContent = e.cssText, i.appendChild(n);
|
|
33
30
|
});
|
|
34
|
-
},
|
|
31
|
+
}, He = De ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
|
|
35
32
|
let e = "";
|
|
36
33
|
for (const n of t.cssRules)
|
|
37
34
|
e += n.cssText;
|
|
38
|
-
return
|
|
35
|
+
return ki(e);
|
|
39
36
|
})(i) : i;
|
|
40
37
|
/**
|
|
41
38
|
* @license
|
|
42
39
|
* Copyright 2017 Google LLC
|
|
43
40
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
41
|
*/
|
|
45
|
-
var
|
|
46
|
-
const
|
|
42
|
+
var se;
|
|
43
|
+
const qt = window, Be = qt.trustedTypes, Vi = Be ? Be.emptyScript : "", Re = qt.reactiveElementPolyfillSupport, Ee = { toAttribute(i, t) {
|
|
47
44
|
switch (t) {
|
|
48
45
|
case Boolean:
|
|
49
|
-
i = i ?
|
|
46
|
+
i = i ? Vi : null;
|
|
50
47
|
break;
|
|
51
48
|
case Object:
|
|
52
49
|
case Array:
|
|
@@ -71,8 +68,8 @@ const Wt = window, Ie = Wt.trustedTypes, Tn = Ie ? Ie.emptyScript : "", Ne = Wt.
|
|
|
71
68
|
}
|
|
72
69
|
}
|
|
73
70
|
return e;
|
|
74
|
-
} },
|
|
75
|
-
let
|
|
71
|
+
} }, oi = (i, t) => t !== i && (t == t || i == i), ae = { attribute: !0, type: String, converter: Ee, reflect: !1, hasChanged: oi }, $e = "finalized";
|
|
72
|
+
let pt = class extends HTMLElement {
|
|
76
73
|
constructor() {
|
|
77
74
|
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this.u();
|
|
78
75
|
}
|
|
@@ -88,7 +85,7 @@ let ut = class extends HTMLElement {
|
|
|
88
85
|
r !== void 0 && (this._$Ev.set(r, n), t.push(r));
|
|
89
86
|
}), t;
|
|
90
87
|
}
|
|
91
|
-
static createProperty(t, e =
|
|
88
|
+
static createProperty(t, e = ae) {
|
|
92
89
|
if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
|
|
93
90
|
const n = typeof t == "symbol" ? Symbol() : "__" + t, r = this.getPropertyDescriptor(t, n, e);
|
|
94
91
|
r !== void 0 && Object.defineProperty(this.prototype, t, r);
|
|
@@ -103,12 +100,12 @@ let ut = class extends HTMLElement {
|
|
|
103
100
|
}, configurable: !0, enumerable: !0 };
|
|
104
101
|
}
|
|
105
102
|
static getPropertyOptions(t) {
|
|
106
|
-
return this.elementProperties.get(t) ||
|
|
103
|
+
return this.elementProperties.get(t) || ae;
|
|
107
104
|
}
|
|
108
105
|
static finalize() {
|
|
109
|
-
if (this.hasOwnProperty(
|
|
106
|
+
if (this.hasOwnProperty($e))
|
|
110
107
|
return !1;
|
|
111
|
-
this[
|
|
108
|
+
this[$e] = !0;
|
|
112
109
|
const t = Object.getPrototypeOf(this);
|
|
113
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")) {
|
|
114
111
|
const e = this.properties, n = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
|
|
@@ -122,9 +119,9 @@ let ut = class extends HTMLElement {
|
|
|
122
119
|
if (Array.isArray(t)) {
|
|
123
120
|
const n = new Set(t.flat(1 / 0).reverse());
|
|
124
121
|
for (const r of n)
|
|
125
|
-
e.unshift(
|
|
122
|
+
e.unshift(He(r));
|
|
126
123
|
} else
|
|
127
|
-
t !== void 0 && e.push(
|
|
124
|
+
t !== void 0 && e.push(He(t));
|
|
128
125
|
return e;
|
|
129
126
|
}
|
|
130
127
|
static _$Ep(t, e) {
|
|
@@ -151,7 +148,7 @@ let ut = class extends HTMLElement {
|
|
|
151
148
|
createRenderRoot() {
|
|
152
149
|
var t;
|
|
153
150
|
const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
|
|
154
|
-
return
|
|
151
|
+
return Ui(e, this.constructor.elementStyles), e;
|
|
155
152
|
}
|
|
156
153
|
connectedCallback() {
|
|
157
154
|
var t;
|
|
@@ -172,25 +169,25 @@ let ut = class extends HTMLElement {
|
|
|
172
169
|
attributeChangedCallback(t, e, n) {
|
|
173
170
|
this._$AK(t, n);
|
|
174
171
|
}
|
|
175
|
-
_$EO(t, e, n =
|
|
172
|
+
_$EO(t, e, n = ae) {
|
|
176
173
|
var r;
|
|
177
174
|
const o = this.constructor._$Ep(t, n);
|
|
178
175
|
if (o !== void 0 && n.reflect === !0) {
|
|
179
|
-
const
|
|
180
|
-
this._$El = t,
|
|
176
|
+
const s = (((r = n.converter) === null || r === void 0 ? void 0 : r.toAttribute) !== void 0 ? n.converter : Ee).toAttribute(e, n.type);
|
|
177
|
+
this._$El = t, s == null ? this.removeAttribute(o) : this.setAttribute(o, s), this._$El = null;
|
|
181
178
|
}
|
|
182
179
|
}
|
|
183
180
|
_$AK(t, e) {
|
|
184
181
|
var n;
|
|
185
182
|
const r = this.constructor, o = r._$Ev.get(t);
|
|
186
183
|
if (o !== void 0 && this._$El !== o) {
|
|
187
|
-
const
|
|
188
|
-
this._$El = o, this[o] =
|
|
184
|
+
const s = r.getPropertyOptions(o), a = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((n = s.converter) === null || n === void 0 ? void 0 : n.fromAttribute) !== void 0 ? s.converter : Ee;
|
|
185
|
+
this._$El = o, this[o] = a.fromAttribute(e, s.type), this._$El = null;
|
|
189
186
|
}
|
|
190
187
|
}
|
|
191
188
|
requestUpdate(t, e, n) {
|
|
192
189
|
let r = !0;
|
|
193
|
-
t !== void 0 && (((n = n || this.constructor.getPropertyOptions(t)).hasChanged ||
|
|
190
|
+
t !== void 0 && (((n = n || this.constructor.getPropertyOptions(t)).hasChanged || oi)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), n.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, n))) : r = !1), !this.isUpdatePending && r && (this._$E_ = this._$Ej());
|
|
194
191
|
}
|
|
195
192
|
async _$Ej() {
|
|
196
193
|
this.isUpdatePending = !0;
|
|
@@ -251,91 +248,91 @@ let ut = class extends HTMLElement {
|
|
|
251
248
|
firstUpdated(t) {
|
|
252
249
|
}
|
|
253
250
|
};
|
|
254
|
-
|
|
251
|
+
pt[$e] = !0, pt.elementProperties = /* @__PURE__ */ new Map(), pt.elementStyles = [], pt.shadowRootOptions = { mode: "open" }, Re == null || Re({ ReactiveElement: pt }), ((se = qt.reactiveElementVersions) !== null && se !== void 0 ? se : qt.reactiveElementVersions = []).push("1.6.2");
|
|
255
252
|
/**
|
|
256
253
|
* @license
|
|
257
254
|
* Copyright 2017 Google LLC
|
|
258
255
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
259
256
|
*/
|
|
260
|
-
var
|
|
261
|
-
const
|
|
262
|
-
\f\r]`,
|
|
263
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
257
|
+
var le;
|
|
258
|
+
const Zt = window, _t = Zt.trustedTypes, ke = _t ? _t.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Kt = "$lit$", W = `lit$${(Math.random() + "").slice(9)}$`, Te = "?" + W, Fi = `<${Te}>`, dt = document, Nt = () => dt.createComment(""), Lt = (i) => i === null || typeof i != "object" && typeof i != "function", si = Array.isArray, ai = (i) => si(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", de = `[
|
|
259
|
+
\f\r]`, Dt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ue = /-->/g, Ve = />/g, it = RegExp(`>|${de}(?:([^\\s"'>=/]+)(${de}*=${de}*(?:[^
|
|
260
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Fe = /'/g, je = /"/g, li = /^(?:script|style|textarea|title)$/i, ji = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), N = ji(1), j = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), ze = /* @__PURE__ */ new WeakMap(), lt = dt.createTreeWalker(dt, 129, null, !1), di = (i, t) => {
|
|
264
261
|
const e = i.length - 1, n = [];
|
|
265
|
-
let r, o = t === 2 ? "<svg>" : "",
|
|
266
|
-
for (let
|
|
267
|
-
const d = i[
|
|
268
|
-
let
|
|
269
|
-
for (;
|
|
270
|
-
|
|
271
|
-
const
|
|
272
|
-
o +=
|
|
273
|
-
}
|
|
274
|
-
const
|
|
262
|
+
let r, o = t === 2 ? "<svg>" : "", s = Dt;
|
|
263
|
+
for (let l = 0; l < e; l++) {
|
|
264
|
+
const d = i[l];
|
|
265
|
+
let f, u, c = -1, m = 0;
|
|
266
|
+
for (; m < d.length && (s.lastIndex = m, u = s.exec(d), u !== null); )
|
|
267
|
+
m = s.lastIndex, s === Dt ? u[1] === "!--" ? s = Ue : u[1] !== void 0 ? s = Ve : u[2] !== void 0 ? (li.test(u[2]) && (r = RegExp("</" + u[2], "g")), s = it) : u[3] !== void 0 && (s = it) : s === it ? u[0] === ">" ? (s = r ?? Dt, c = -1) : u[1] === void 0 ? c = -2 : (c = s.lastIndex - u[2].length, f = u[1], s = u[3] === void 0 ? it : u[3] === '"' ? je : Fe) : s === je || s === Fe ? s = it : s === Ue || s === Ve ? s = Dt : (s = it, r = void 0);
|
|
268
|
+
const p = s === it && i[l + 1].startsWith("/>") ? " " : "";
|
|
269
|
+
o += s === Dt ? d + Fi : c >= 0 ? (n.push(f), d.slice(0, c) + Kt + d.slice(c) + W + p) : d + W + (c === -2 ? (n.push(void 0), l) : p);
|
|
270
|
+
}
|
|
271
|
+
const a = o + (i[e] || "<?>") + (t === 2 ? "</svg>" : "");
|
|
275
272
|
if (!Array.isArray(i) || !i.hasOwnProperty("raw"))
|
|
276
273
|
throw Error("invalid template strings array");
|
|
277
|
-
return [
|
|
274
|
+
return [ke !== void 0 ? ke.createHTML(a) : a, n];
|
|
278
275
|
};
|
|
279
|
-
class
|
|
276
|
+
class Mt {
|
|
280
277
|
constructor({ strings: t, _$litType$: e }, n) {
|
|
281
278
|
let r;
|
|
282
279
|
this.parts = [];
|
|
283
|
-
let o = 0,
|
|
284
|
-
const
|
|
285
|
-
if (this.el =
|
|
286
|
-
const u = this.el.content,
|
|
287
|
-
|
|
280
|
+
let o = 0, s = 0;
|
|
281
|
+
const a = t.length - 1, l = this.parts, [d, f] = di(t, e);
|
|
282
|
+
if (this.el = Mt.createElement(d, n), lt.currentNode = this.el.content, e === 2) {
|
|
283
|
+
const u = this.el.content, c = u.firstChild;
|
|
284
|
+
c.remove(), u.append(...c.childNodes);
|
|
288
285
|
}
|
|
289
|
-
for (; (r =
|
|
286
|
+
for (; (r = lt.nextNode()) !== null && l.length < a; ) {
|
|
290
287
|
if (r.nodeType === 1) {
|
|
291
288
|
if (r.hasAttributes()) {
|
|
292
289
|
const u = [];
|
|
293
|
-
for (const
|
|
294
|
-
if (
|
|
295
|
-
const
|
|
296
|
-
if (u.push(
|
|
297
|
-
const
|
|
298
|
-
|
|
290
|
+
for (const c of r.getAttributeNames())
|
|
291
|
+
if (c.endsWith(Kt) || c.startsWith(W)) {
|
|
292
|
+
const m = f[s++];
|
|
293
|
+
if (u.push(c), m !== void 0) {
|
|
294
|
+
const p = r.getAttribute(m.toLowerCase() + Kt).split(W), v = /([.?@])?(.*)/.exec(m);
|
|
295
|
+
l.push({ type: 1, index: o, name: v[2], strings: p, ctor: v[1] === "." ? ui : v[1] === "?" ? ci : v[1] === "@" ? fi : Ht });
|
|
299
296
|
} else
|
|
300
|
-
|
|
297
|
+
l.push({ type: 6, index: o });
|
|
301
298
|
}
|
|
302
|
-
for (const
|
|
303
|
-
r.removeAttribute(
|
|
299
|
+
for (const c of u)
|
|
300
|
+
r.removeAttribute(c);
|
|
304
301
|
}
|
|
305
|
-
if (
|
|
306
|
-
const u = r.textContent.split(
|
|
307
|
-
if (
|
|
308
|
-
r.textContent =
|
|
309
|
-
for (let
|
|
310
|
-
r.append(u[
|
|
311
|
-
r.append(u[
|
|
302
|
+
if (li.test(r.tagName)) {
|
|
303
|
+
const u = r.textContent.split(W), c = u.length - 1;
|
|
304
|
+
if (c > 0) {
|
|
305
|
+
r.textContent = _t ? _t.emptyScript : "";
|
|
306
|
+
for (let m = 0; m < c; m++)
|
|
307
|
+
r.append(u[m], Nt()), lt.nextNode(), l.push({ type: 2, index: ++o });
|
|
308
|
+
r.append(u[c], Nt());
|
|
312
309
|
}
|
|
313
310
|
}
|
|
314
311
|
} else if (r.nodeType === 8)
|
|
315
|
-
if (r.data ===
|
|
316
|
-
|
|
312
|
+
if (r.data === Te)
|
|
313
|
+
l.push({ type: 2, index: o });
|
|
317
314
|
else {
|
|
318
315
|
let u = -1;
|
|
319
|
-
for (; (u = r.data.indexOf(
|
|
320
|
-
|
|
316
|
+
for (; (u = r.data.indexOf(W, u + 1)) !== -1; )
|
|
317
|
+
l.push({ type: 7, index: o }), u += W.length - 1;
|
|
321
318
|
}
|
|
322
319
|
o++;
|
|
323
320
|
}
|
|
324
321
|
}
|
|
325
322
|
static createElement(t, e) {
|
|
326
|
-
const n =
|
|
323
|
+
const n = dt.createElement("template");
|
|
327
324
|
return n.innerHTML = t, n;
|
|
328
325
|
}
|
|
329
326
|
}
|
|
330
|
-
function
|
|
331
|
-
var r, o,
|
|
332
|
-
if (t ===
|
|
327
|
+
function ht(i, t, e = i, n) {
|
|
328
|
+
var r, o, s, a;
|
|
329
|
+
if (t === j)
|
|
333
330
|
return t;
|
|
334
|
-
let
|
|
335
|
-
const d =
|
|
336
|
-
return (
|
|
331
|
+
let l = n !== void 0 ? (r = e._$Co) === null || r === void 0 ? void 0 : r[n] : e._$Cl;
|
|
332
|
+
const d = Lt(t) ? void 0 : t._$litDirective$;
|
|
333
|
+
return (l == null ? void 0 : l.constructor) !== d && ((o = l == null ? void 0 : l._$AO) === null || o === void 0 || o.call(l, !1), d === void 0 ? l = void 0 : (l = new d(i), l._$AT(i, e, n)), n !== void 0 ? ((s = (a = e)._$Co) !== null && s !== void 0 ? s : a._$Co = [])[n] = l : e._$Cl = l), l !== void 0 && (t = ht(i, l._$AS(i, t.values), l, n)), t;
|
|
337
334
|
}
|
|
338
|
-
class
|
|
335
|
+
class hi {
|
|
339
336
|
constructor(t, e) {
|
|
340
337
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
341
338
|
}
|
|
@@ -347,17 +344,17 @@ class Nn {
|
|
|
347
344
|
}
|
|
348
345
|
u(t) {
|
|
349
346
|
var e;
|
|
350
|
-
const { el: { content: n }, parts: r } = this._$AD, o = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e :
|
|
351
|
-
|
|
352
|
-
let
|
|
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
|
+
lt.currentNode = o;
|
|
349
|
+
let s = lt.nextNode(), a = 0, l = 0, d = r[0];
|
|
353
350
|
for (; d !== void 0; ) {
|
|
354
|
-
if (
|
|
355
|
-
let
|
|
356
|
-
d.type === 2 ?
|
|
351
|
+
if (a === d.index) {
|
|
352
|
+
let f;
|
|
353
|
+
d.type === 2 ? f = new Et(s, s.nextSibling, this, t) : d.type === 1 ? f = new d.ctor(s, d.name, d.strings, this, t) : d.type === 6 && (f = new pi(s, this, t)), this._$AV.push(f), d = r[++l];
|
|
357
354
|
}
|
|
358
|
-
|
|
355
|
+
a !== (d == null ? void 0 : d.index) && (s = lt.nextNode(), a++);
|
|
359
356
|
}
|
|
360
|
-
return
|
|
357
|
+
return lt.currentNode = dt, o;
|
|
361
358
|
}
|
|
362
359
|
v(t) {
|
|
363
360
|
let e = 0;
|
|
@@ -365,10 +362,10 @@ class Nn {
|
|
|
365
362
|
n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, e), e += n.strings.length - 2) : n._$AI(t[e])), e++;
|
|
366
363
|
}
|
|
367
364
|
}
|
|
368
|
-
class
|
|
365
|
+
class Et {
|
|
369
366
|
constructor(t, e, n, r) {
|
|
370
367
|
var o;
|
|
371
|
-
this.type = 2, this._$AH =
|
|
368
|
+
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = r, this._$Cp = (o = r == null ? void 0 : r.isConnected) === null || o === void 0 || o;
|
|
372
369
|
}
|
|
373
370
|
get _$AU() {
|
|
374
371
|
var t, e;
|
|
@@ -386,7 +383,7 @@ class Nt {
|
|
|
386
383
|
return this._$AB;
|
|
387
384
|
}
|
|
388
385
|
_$AI(t, e = this) {
|
|
389
|
-
t =
|
|
386
|
+
t = ht(this, t, e), Lt(t) ? t === E || t == null || t === "" ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== j && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : ai(t) ? this.T(t) : this._(t);
|
|
390
387
|
}
|
|
391
388
|
k(t) {
|
|
392
389
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -395,28 +392,28 @@ class Nt {
|
|
|
395
392
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
|
396
393
|
}
|
|
397
394
|
_(t) {
|
|
398
|
-
this._$AH !==
|
|
395
|
+
this._$AH !== E && Lt(this._$AH) ? this._$AA.nextSibling.data = t : this.$(dt.createTextNode(t)), this._$AH = t;
|
|
399
396
|
}
|
|
400
397
|
g(t) {
|
|
401
398
|
var e;
|
|
402
|
-
const { values: n, _$litType$: r } = t, o = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el =
|
|
399
|
+
const { values: n, _$litType$: r } = t, o = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = Mt.createElement(r.h, this.options)), r);
|
|
403
400
|
if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === o)
|
|
404
401
|
this._$AH.v(n);
|
|
405
402
|
else {
|
|
406
|
-
const
|
|
407
|
-
|
|
403
|
+
const s = new hi(o, this), a = s.u(this.options);
|
|
404
|
+
s.v(n), this.$(a), this._$AH = s;
|
|
408
405
|
}
|
|
409
406
|
}
|
|
410
407
|
_$AC(t) {
|
|
411
|
-
let e =
|
|
412
|
-
return e === void 0 &&
|
|
408
|
+
let e = ze.get(t.strings);
|
|
409
|
+
return e === void 0 && ze.set(t.strings, e = new Mt(t)), e;
|
|
413
410
|
}
|
|
414
411
|
T(t) {
|
|
415
|
-
|
|
412
|
+
si(this._$AH) || (this._$AH = [], this._$AR());
|
|
416
413
|
const e = this._$AH;
|
|
417
414
|
let n, r = 0;
|
|
418
415
|
for (const o of t)
|
|
419
|
-
r === e.length ? e.push(n = new
|
|
416
|
+
r === e.length ? e.push(n = new Et(this.k(Nt()), this.k(Nt()), this, this.options)) : n = e[r], n._$AI(o), r++;
|
|
420
417
|
r < e.length && (this._$AR(n && n._$AB.nextSibling, r), e.length = r);
|
|
421
418
|
}
|
|
422
419
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -431,9 +428,9 @@ class Nt {
|
|
|
431
428
|
this._$AM === void 0 && (this._$Cp = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
|
|
432
429
|
}
|
|
433
430
|
}
|
|
434
|
-
class
|
|
431
|
+
class Ht {
|
|
435
432
|
constructor(t, e, n, r, o) {
|
|
436
|
-
this.type = 1, this._$AH =
|
|
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;
|
|
437
434
|
}
|
|
438
435
|
get tagName() {
|
|
439
436
|
return this.element.tagName;
|
|
@@ -443,55 +440,55 @@ class Jt {
|
|
|
443
440
|
}
|
|
444
441
|
_$AI(t, e = this, n, r) {
|
|
445
442
|
const o = this.strings;
|
|
446
|
-
let
|
|
443
|
+
let s = !1;
|
|
447
444
|
if (o === void 0)
|
|
448
|
-
t =
|
|
445
|
+
t = ht(this, t, e, 0), s = !Lt(t) || t !== this._$AH && t !== j, s && (this._$AH = t);
|
|
449
446
|
else {
|
|
450
|
-
const
|
|
451
|
-
let
|
|
452
|
-
for (t = o[0],
|
|
453
|
-
d =
|
|
447
|
+
const a = t;
|
|
448
|
+
let l, d;
|
|
449
|
+
for (t = o[0], l = 0; l < o.length - 1; l++)
|
|
450
|
+
d = ht(this, a[n + l], e, l), d === j && (d = this._$AH[l]), s || (s = !Lt(d) || d !== this._$AH[l]), d === E ? t = E : t !== E && (t += (d ?? "") + o[l + 1]), this._$AH[l] = d;
|
|
454
451
|
}
|
|
455
|
-
|
|
452
|
+
s && !r && this.j(t);
|
|
456
453
|
}
|
|
457
454
|
j(t) {
|
|
458
|
-
t ===
|
|
455
|
+
t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
459
456
|
}
|
|
460
457
|
}
|
|
461
|
-
class
|
|
458
|
+
class ui extends Ht {
|
|
462
459
|
constructor() {
|
|
463
460
|
super(...arguments), this.type = 3;
|
|
464
461
|
}
|
|
465
462
|
j(t) {
|
|
466
|
-
this.element[this.name] = t ===
|
|
463
|
+
this.element[this.name] = t === E ? void 0 : t;
|
|
467
464
|
}
|
|
468
465
|
}
|
|
469
|
-
const
|
|
470
|
-
class
|
|
466
|
+
const zi = _t ? _t.emptyScript : "";
|
|
467
|
+
class ci extends Ht {
|
|
471
468
|
constructor() {
|
|
472
469
|
super(...arguments), this.type = 4;
|
|
473
470
|
}
|
|
474
471
|
j(t) {
|
|
475
|
-
t && t !==
|
|
472
|
+
t && t !== E ? this.element.setAttribute(this.name, zi) : this.element.removeAttribute(this.name);
|
|
476
473
|
}
|
|
477
474
|
}
|
|
478
|
-
class
|
|
475
|
+
class fi extends Ht {
|
|
479
476
|
constructor(t, e, n, r, o) {
|
|
480
477
|
super(t, e, n, r, o), this.type = 5;
|
|
481
478
|
}
|
|
482
479
|
_$AI(t, e = this) {
|
|
483
480
|
var n;
|
|
484
|
-
if ((t = (n =
|
|
481
|
+
if ((t = (n = ht(this, t, e, 0)) !== null && n !== void 0 ? n : E) === j)
|
|
485
482
|
return;
|
|
486
|
-
const r = this._$AH, o = t ===
|
|
487
|
-
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, s = t !== E && (r === E || o);
|
|
484
|
+
o && this.element.removeEventListener(this.name, this, r), s && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
488
485
|
}
|
|
489
486
|
handleEvent(t) {
|
|
490
487
|
var e, n;
|
|
491
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);
|
|
492
489
|
}
|
|
493
490
|
}
|
|
494
|
-
class
|
|
491
|
+
class pi {
|
|
495
492
|
constructor(t, e, n) {
|
|
496
493
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = n;
|
|
497
494
|
}
|
|
@@ -499,28 +496,28 @@ class Rn {
|
|
|
499
496
|
return this._$AM._$AU;
|
|
500
497
|
}
|
|
501
498
|
_$AI(t) {
|
|
502
|
-
|
|
499
|
+
ht(this, t);
|
|
503
500
|
}
|
|
504
501
|
}
|
|
505
|
-
const
|
|
506
|
-
|
|
507
|
-
const
|
|
502
|
+
const Xi = { O: Kt, P: W, A: Te, C: 1, M: di, L: hi, D: ai, R: ht, I: Et, V: Ht, H: ci, N: fi, U: ui, F: pi }, Xe = Zt.litHtmlPolyfillSupport;
|
|
503
|
+
Xe == null || Xe(Mt, Et), ((le = Zt.litHtmlVersions) !== null && le !== void 0 ? le : Zt.litHtmlVersions = []).push("2.7.4");
|
|
504
|
+
const Yi = (i, t, e) => {
|
|
508
505
|
var n, r;
|
|
509
506
|
const o = (n = e == null ? void 0 : e.renderBefore) !== null && n !== void 0 ? n : t;
|
|
510
|
-
let
|
|
511
|
-
if (
|
|
512
|
-
const
|
|
513
|
-
o._$litPart$ =
|
|
507
|
+
let s = o._$litPart$;
|
|
508
|
+
if (s === void 0) {
|
|
509
|
+
const a = (r = e == null ? void 0 : e.renderBefore) !== null && r !== void 0 ? r : null;
|
|
510
|
+
o._$litPart$ = s = new Et(t.insertBefore(Nt(), a), a, void 0, e ?? {});
|
|
514
511
|
}
|
|
515
|
-
return
|
|
512
|
+
return s._$AI(i), s;
|
|
516
513
|
};
|
|
517
514
|
/**
|
|
518
515
|
* @license
|
|
519
516
|
* Copyright 2017 Google LLC
|
|
520
517
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
521
518
|
*/
|
|
522
|
-
var
|
|
523
|
-
class
|
|
519
|
+
var he, ue;
|
|
520
|
+
let vt = class extends pt {
|
|
524
521
|
constructor() {
|
|
525
522
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
526
523
|
}
|
|
@@ -531,7 +528,7 @@ class pt extends ut {
|
|
|
531
528
|
}
|
|
532
529
|
update(t) {
|
|
533
530
|
const e = this.render();
|
|
534
|
-
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 = Yi(e, this.renderRoot, this.renderOptions);
|
|
535
532
|
}
|
|
536
533
|
connectedCallback() {
|
|
537
534
|
var t;
|
|
@@ -542,22 +539,22 @@ class pt extends ut {
|
|
|
542
539
|
super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
|
|
543
540
|
}
|
|
544
541
|
render() {
|
|
545
|
-
return
|
|
542
|
+
return j;
|
|
546
543
|
}
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
const
|
|
550
|
-
|
|
551
|
-
((
|
|
544
|
+
};
|
|
545
|
+
vt.finalized = !0, vt._$litElement$ = !0, (he = globalThis.litElementHydrateSupport) === null || he === void 0 || he.call(globalThis, { LitElement: vt });
|
|
546
|
+
const Ye = globalThis.litElementPolyfillSupport;
|
|
547
|
+
Ye == null || Ye({ LitElement: vt });
|
|
548
|
+
((ue = globalThis.litElementVersions) !== null && ue !== void 0 ? ue : globalThis.litElementVersions = []).push("3.3.2");
|
|
552
549
|
/**
|
|
553
550
|
* @license
|
|
554
551
|
* Copyright 2017 Google LLC
|
|
555
552
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
556
553
|
*/
|
|
557
|
-
const
|
|
554
|
+
const gi = (i) => (t) => typeof t == "function" ? ((e, n) => (customElements.define(e, n), n))(i, t) : ((e, n) => {
|
|
558
555
|
const { kind: r, elements: o } = n;
|
|
559
|
-
return { kind: r, elements: o, finisher(
|
|
560
|
-
customElements.define(e,
|
|
556
|
+
return { kind: r, elements: o, finisher(s) {
|
|
557
|
+
customElements.define(e, s);
|
|
561
558
|
} };
|
|
562
559
|
})(i, t);
|
|
563
560
|
/**
|
|
@@ -565,24 +562,24 @@ const nn = (i) => (t) => typeof t == "function" ? ((e, n) => (customElements.def
|
|
|
565
562
|
* Copyright 2017 Google LLC
|
|
566
563
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
567
564
|
*/
|
|
568
|
-
const
|
|
565
|
+
const Wi = (i, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(e) {
|
|
569
566
|
e.createProperty(t.key, i);
|
|
570
567
|
} } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
|
|
571
568
|
typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
|
|
572
569
|
}, finisher(e) {
|
|
573
570
|
e.createProperty(t.key, i);
|
|
574
|
-
} },
|
|
571
|
+
} }, Gi = (i, t, e) => {
|
|
575
572
|
t.constructor.createProperty(e, i);
|
|
576
573
|
};
|
|
577
574
|
function R(i) {
|
|
578
|
-
return (t, e) => e !== void 0 ?
|
|
575
|
+
return (t, e) => e !== void 0 ? Gi(i, t, e) : Wi(i, t);
|
|
579
576
|
}
|
|
580
577
|
/**
|
|
581
578
|
* @license
|
|
582
579
|
* Copyright 2017 Google LLC
|
|
583
580
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
584
581
|
*/
|
|
585
|
-
function
|
|
582
|
+
function $t(i) {
|
|
586
583
|
return R({ ...i, state: !0 });
|
|
587
584
|
}
|
|
588
585
|
/**
|
|
@@ -590,26 +587,173 @@ function bt(i) {
|
|
|
590
587
|
* Copyright 2021 Google LLC
|
|
591
588
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
592
589
|
*/
|
|
593
|
-
var
|
|
594
|
-
((
|
|
590
|
+
var ce;
|
|
591
|
+
((ce = window.HTMLSlotElement) === null || ce === void 0 ? void 0 : ce.prototype.assignedElements) != null;
|
|
595
592
|
/**
|
|
596
593
|
* @license
|
|
597
|
-
* Copyright
|
|
594
|
+
* Copyright 2017 Google LLC
|
|
598
595
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
599
596
|
*/
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
597
|
+
const st = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, mi = (i) => (...t) => ({ _$litDirective$: i, values: t });
|
|
598
|
+
class vi {
|
|
599
|
+
constructor(t) {
|
|
600
|
+
}
|
|
601
|
+
get _$AU() {
|
|
602
|
+
return this._$AM._$AU;
|
|
603
|
+
}
|
|
604
|
+
_$AT(t, e, n) {
|
|
605
|
+
this._$Ct = t, this._$AM = e, this._$Ci = n;
|
|
606
|
+
}
|
|
607
|
+
_$AS(t, e) {
|
|
608
|
+
return this.update(t, e);
|
|
609
|
+
}
|
|
610
|
+
update(t, e) {
|
|
611
|
+
return this.render(...e);
|
|
605
612
|
}
|
|
606
613
|
}
|
|
614
|
+
/**
|
|
615
|
+
* @license
|
|
616
|
+
* Copyright 2020 Google LLC
|
|
617
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
618
|
+
*/
|
|
619
|
+
const { I: qi } = Xi, Zi = (i) => i.strings === void 0, We = () => document.createComment(""), Tt = (i, t, e) => {
|
|
620
|
+
var n;
|
|
621
|
+
const r = i._$AA.parentNode, o = t === void 0 ? i._$AB : t._$AA;
|
|
622
|
+
if (e === void 0) {
|
|
623
|
+
const s = r.insertBefore(We(), o), a = r.insertBefore(We(), o);
|
|
624
|
+
e = new qi(s, a, i, i.options);
|
|
625
|
+
} else {
|
|
626
|
+
const s = e._$AB.nextSibling, a = e._$AM, l = a !== i;
|
|
627
|
+
if (l) {
|
|
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) !== a._$AU && e._$AP(d);
|
|
630
|
+
}
|
|
631
|
+
if (s !== o || l) {
|
|
632
|
+
let d = e._$AA;
|
|
633
|
+
for (; d !== s; ) {
|
|
634
|
+
const f = d.nextSibling;
|
|
635
|
+
r.insertBefore(d, o), d = f;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
return e;
|
|
640
|
+
}, nt = (i, t, e = i) => (i._$AI(t, e), i), Ki = {}, yi = (i, t = Ki) => i._$AH = t, Qi = (i) => i._$AH, fe = (i) => {
|
|
641
|
+
var t;
|
|
642
|
+
(t = i._$AP) === null || t === void 0 || t.call(i, !1, !0);
|
|
643
|
+
let e = i._$AA;
|
|
644
|
+
const n = i._$AB.nextSibling;
|
|
645
|
+
for (; e !== n; ) {
|
|
646
|
+
const r = e.nextSibling;
|
|
647
|
+
e.remove(), e = r;
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
/**
|
|
651
|
+
* @license
|
|
652
|
+
* Copyright 2017 Google LLC
|
|
653
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
654
|
+
*/
|
|
655
|
+
const Ge = (i, t, e) => {
|
|
656
|
+
const n = /* @__PURE__ */ new Map();
|
|
657
|
+
for (let r = t; r <= e; r++)
|
|
658
|
+
n.set(i[r], r);
|
|
659
|
+
return n;
|
|
660
|
+
}, we = mi(class extends vi {
|
|
661
|
+
constructor(i) {
|
|
662
|
+
if (super(i), i.type !== st.CHILD)
|
|
663
|
+
throw Error("repeat() can only be used in text expressions");
|
|
664
|
+
}
|
|
665
|
+
dt(i, t, e) {
|
|
666
|
+
let n;
|
|
667
|
+
e === void 0 ? e = t : t !== void 0 && (n = t);
|
|
668
|
+
const r = [], o = [];
|
|
669
|
+
let s = 0;
|
|
670
|
+
for (const a of i)
|
|
671
|
+
r[s] = n ? n(a, s) : s, o[s] = e(a, s), s++;
|
|
672
|
+
return { values: o, keys: r };
|
|
673
|
+
}
|
|
674
|
+
render(i, t, e) {
|
|
675
|
+
return this.dt(i, t, e).values;
|
|
676
|
+
}
|
|
677
|
+
update(i, [t, e, n]) {
|
|
678
|
+
var r;
|
|
679
|
+
const o = Qi(i), { values: s, keys: a } = this.dt(t, e, n);
|
|
680
|
+
if (!Array.isArray(o))
|
|
681
|
+
return this.ht = a, s;
|
|
682
|
+
const l = (r = this.ht) !== null && r !== void 0 ? r : this.ht = [], d = [];
|
|
683
|
+
let f, u, c = 0, m = o.length - 1, p = 0, v = s.length - 1;
|
|
684
|
+
for (; c <= m && p <= v; )
|
|
685
|
+
if (o[c] === null)
|
|
686
|
+
c++;
|
|
687
|
+
else if (o[m] === null)
|
|
688
|
+
m--;
|
|
689
|
+
else if (l[c] === a[p])
|
|
690
|
+
d[p] = nt(o[c], s[p]), c++, p++;
|
|
691
|
+
else if (l[m] === a[v])
|
|
692
|
+
d[v] = nt(o[m], s[v]), m--, v--;
|
|
693
|
+
else if (l[c] === a[v])
|
|
694
|
+
d[v] = nt(o[c], s[v]), Tt(i, d[v + 1], o[c]), c++, v--;
|
|
695
|
+
else if (l[m] === a[p])
|
|
696
|
+
d[p] = nt(o[m], s[p]), Tt(i, o[c], o[m]), m--, p++;
|
|
697
|
+
else if (f === void 0 && (f = Ge(a, p, v), u = Ge(l, c, m)), f.has(l[c]))
|
|
698
|
+
if (f.has(l[m])) {
|
|
699
|
+
const D = u.get(a[p]), V = D !== void 0 ? o[D] : null;
|
|
700
|
+
if (V === null) {
|
|
701
|
+
const O = Tt(i, o[c]);
|
|
702
|
+
nt(O, s[p]), d[p] = O;
|
|
703
|
+
} else
|
|
704
|
+
d[p] = nt(V, s[p]), Tt(i, o[c], V), o[D] = null;
|
|
705
|
+
p++;
|
|
706
|
+
} else
|
|
707
|
+
fe(o[m]), m--;
|
|
708
|
+
else
|
|
709
|
+
fe(o[c]), c++;
|
|
710
|
+
for (; p <= v; ) {
|
|
711
|
+
const D = Tt(i, d[v + 1]);
|
|
712
|
+
nt(D, s[p]), d[p++] = D;
|
|
713
|
+
}
|
|
714
|
+
for (; c <= m; ) {
|
|
715
|
+
const D = o[c++];
|
|
716
|
+
D !== null && fe(D);
|
|
717
|
+
}
|
|
718
|
+
return this.ht = a, yi(i, d), j;
|
|
719
|
+
}
|
|
720
|
+
});
|
|
721
|
+
/**
|
|
722
|
+
* @license
|
|
723
|
+
* Copyright 2020 Google LLC
|
|
724
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
725
|
+
*/
|
|
726
|
+
const Ce = mi(class extends vi {
|
|
727
|
+
constructor(i) {
|
|
728
|
+
if (super(i), i.type !== st.PROPERTY && i.type !== st.ATTRIBUTE && i.type !== st.BOOLEAN_ATTRIBUTE)
|
|
729
|
+
throw Error("The `live` directive is not allowed on child or event bindings");
|
|
730
|
+
if (!Zi(i))
|
|
731
|
+
throw Error("`live` bindings can only contain a single expression");
|
|
732
|
+
}
|
|
733
|
+
render(i) {
|
|
734
|
+
return i;
|
|
735
|
+
}
|
|
736
|
+
update(i, [t]) {
|
|
737
|
+
if (t === j || t === E)
|
|
738
|
+
return t;
|
|
739
|
+
const e = i.element, n = i.name;
|
|
740
|
+
if (i.type === st.PROPERTY) {
|
|
741
|
+
if (t === e[n])
|
|
742
|
+
return j;
|
|
743
|
+
} else if (i.type === st.BOOLEAN_ATTRIBUTE) {
|
|
744
|
+
if (!!t === e.hasAttribute(n))
|
|
745
|
+
return j;
|
|
746
|
+
} else if (i.type === st.ATTRIBUTE && e.getAttribute(n) === t + "")
|
|
747
|
+
return j;
|
|
748
|
+
return yi(i), t;
|
|
749
|
+
}
|
|
750
|
+
});
|
|
607
751
|
/**
|
|
608
752
|
* @license
|
|
609
753
|
* Copyright 2021 Google LLC
|
|
610
754
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
611
755
|
*/
|
|
612
|
-
function
|
|
756
|
+
function _i(i, t, e) {
|
|
613
757
|
return i ? t() : e == null ? void 0 : e();
|
|
614
758
|
}
|
|
615
759
|
/**!
|
|
@@ -618,7 +762,7 @@ function rn(i, t, e) {
|
|
|
618
762
|
* @author owenm <owen23355@gmail.com>
|
|
619
763
|
* @license MIT
|
|
620
764
|
*/
|
|
621
|
-
function
|
|
765
|
+
function qe(i, t) {
|
|
622
766
|
var e = Object.keys(i);
|
|
623
767
|
if (Object.getOwnPropertySymbols) {
|
|
624
768
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -628,26 +772,26 @@ function ze(i, t) {
|
|
|
628
772
|
}
|
|
629
773
|
return e;
|
|
630
774
|
}
|
|
631
|
-
function
|
|
775
|
+
function X(i) {
|
|
632
776
|
for (var t = 1; t < arguments.length; t++) {
|
|
633
777
|
var e = arguments[t] != null ? arguments[t] : {};
|
|
634
|
-
t % 2 ?
|
|
635
|
-
|
|
636
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(e)) :
|
|
778
|
+
t % 2 ? qe(Object(e), !0).forEach(function(n) {
|
|
779
|
+
Ji(i, n, e[n]);
|
|
780
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(e)) : qe(Object(e)).forEach(function(n) {
|
|
637
781
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(e, n));
|
|
638
782
|
});
|
|
639
783
|
}
|
|
640
784
|
return i;
|
|
641
785
|
}
|
|
642
|
-
function
|
|
786
|
+
function zt(i) {
|
|
643
787
|
"@babel/helpers - typeof";
|
|
644
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
788
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? zt = function(t) {
|
|
645
789
|
return typeof t;
|
|
646
|
-
} :
|
|
790
|
+
} : zt = function(t) {
|
|
647
791
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
648
|
-
},
|
|
792
|
+
}, zt(i);
|
|
649
793
|
}
|
|
650
|
-
function
|
|
794
|
+
function Ji(i, t, e) {
|
|
651
795
|
return t in i ? Object.defineProperty(i, t, {
|
|
652
796
|
value: e,
|
|
653
797
|
enumerable: !0,
|
|
@@ -665,7 +809,7 @@ function J() {
|
|
|
665
809
|
return i;
|
|
666
810
|
}, J.apply(this, arguments);
|
|
667
811
|
}
|
|
668
|
-
function
|
|
812
|
+
function tn(i, t) {
|
|
669
813
|
if (i == null)
|
|
670
814
|
return {};
|
|
671
815
|
var e = {}, n = Object.keys(i), r, o;
|
|
@@ -673,10 +817,10 @@ function jn(i, t) {
|
|
|
673
817
|
r = n[o], !(t.indexOf(r) >= 0) && (e[r] = i[r]);
|
|
674
818
|
return e;
|
|
675
819
|
}
|
|
676
|
-
function
|
|
820
|
+
function en(i, t) {
|
|
677
821
|
if (i == null)
|
|
678
822
|
return {};
|
|
679
|
-
var e =
|
|
823
|
+
var e = tn(i, t), n, r;
|
|
680
824
|
if (Object.getOwnPropertySymbols) {
|
|
681
825
|
var o = Object.getOwnPropertySymbols(i);
|
|
682
826
|
for (r = 0; r < o.length; r++)
|
|
@@ -684,22 +828,22 @@ function Fn(i, t) {
|
|
|
684
828
|
}
|
|
685
829
|
return e;
|
|
686
830
|
}
|
|
687
|
-
var
|
|
688
|
-
function
|
|
831
|
+
var nn = "1.15.0";
|
|
832
|
+
function G(i) {
|
|
689
833
|
if (typeof window < "u" && window.navigator)
|
|
690
834
|
return !!/* @__PURE__ */ navigator.userAgent.match(i);
|
|
691
835
|
}
|
|
692
|
-
var
|
|
836
|
+
var tt = G(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ie = G(/Edge/i), Ze = G(/firefox/i), Xt = G(/safari/i) && !G(/chrome/i) && !G(/android/i), bi = G(/iP(ad|od|hone)/i), Ei = G(/chrome/i) && G(/android/i), $i = {
|
|
693
837
|
capture: !1,
|
|
694
838
|
passive: !1
|
|
695
839
|
};
|
|
696
|
-
function
|
|
697
|
-
i.addEventListener(t, e, !
|
|
840
|
+
function $(i, t, e) {
|
|
841
|
+
i.addEventListener(t, e, !tt && $i);
|
|
698
842
|
}
|
|
699
843
|
function b(i, t, e) {
|
|
700
|
-
i.removeEventListener(t, e, !
|
|
844
|
+
i.removeEventListener(t, e, !tt && $i);
|
|
701
845
|
}
|
|
702
|
-
function
|
|
846
|
+
function Qt(i, t) {
|
|
703
847
|
if (t) {
|
|
704
848
|
if (t[0] === ">" && (t = t.substring(1)), i)
|
|
705
849
|
try {
|
|
@@ -715,32 +859,32 @@ function Gt(i, t) {
|
|
|
715
859
|
return !1;
|
|
716
860
|
}
|
|
717
861
|
}
|
|
718
|
-
function
|
|
862
|
+
function rn(i) {
|
|
719
863
|
return i.host && i !== document && i.host.nodeType ? i.host : i.parentNode;
|
|
720
864
|
}
|
|
721
865
|
function z(i, t, e, n) {
|
|
722
866
|
if (i) {
|
|
723
867
|
e = e || document;
|
|
724
868
|
do {
|
|
725
|
-
if (t != null && (t[0] === ">" ? i.parentNode === e &&
|
|
869
|
+
if (t != null && (t[0] === ">" ? i.parentNode === e && Qt(i, t) : Qt(i, t)) || n && i === e)
|
|
726
870
|
return i;
|
|
727
871
|
if (i === e)
|
|
728
872
|
break;
|
|
729
|
-
} while (i =
|
|
873
|
+
} while (i = rn(i));
|
|
730
874
|
}
|
|
731
875
|
return null;
|
|
732
876
|
}
|
|
733
|
-
var
|
|
877
|
+
var Ke = /\s+/g;
|
|
734
878
|
function M(i, t, e) {
|
|
735
879
|
if (i && t)
|
|
736
880
|
if (i.classList)
|
|
737
881
|
i.classList[e ? "add" : "remove"](t);
|
|
738
882
|
else {
|
|
739
|
-
var n = (" " + i.className + " ").replace(
|
|
740
|
-
i.className = (n + (e ? " " + t : "")).replace(
|
|
883
|
+
var n = (" " + i.className + " ").replace(Ke, " ").replace(" " + t + " ", " ");
|
|
884
|
+
i.className = (n + (e ? " " + t : "")).replace(Ke, " ");
|
|
741
885
|
}
|
|
742
886
|
}
|
|
743
|
-
function
|
|
887
|
+
function g(i, t, e) {
|
|
744
888
|
var n = i && i.style;
|
|
745
889
|
if (n) {
|
|
746
890
|
if (e === void 0)
|
|
@@ -748,19 +892,19 @@ function p(i, t, e) {
|
|
|
748
892
|
!(t in n) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), n[t] = e + (typeof e == "string" ? "" : "px");
|
|
749
893
|
}
|
|
750
894
|
}
|
|
751
|
-
function
|
|
895
|
+
function yt(i, t) {
|
|
752
896
|
var e = "";
|
|
753
897
|
if (typeof i == "string")
|
|
754
898
|
e = i;
|
|
755
899
|
else
|
|
756
900
|
do {
|
|
757
|
-
var n =
|
|
901
|
+
var n = g(i, "transform");
|
|
758
902
|
n && n !== "none" && (e = n + " " + e);
|
|
759
903
|
} while (!t && (i = i.parentNode));
|
|
760
904
|
var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
761
905
|
return r && new r(e);
|
|
762
906
|
}
|
|
763
|
-
function
|
|
907
|
+
function wi(i, t, e) {
|
|
764
908
|
if (i) {
|
|
765
909
|
var n = i.getElementsByTagName(t), r = 0, o = n.length;
|
|
766
910
|
if (e)
|
|
@@ -770,80 +914,80 @@ function ln(i, t, e) {
|
|
|
770
914
|
}
|
|
771
915
|
return [];
|
|
772
916
|
}
|
|
773
|
-
function
|
|
917
|
+
function Q() {
|
|
774
918
|
var i = document.scrollingElement;
|
|
775
919
|
return i || document.documentElement;
|
|
776
920
|
}
|
|
777
921
|
function T(i, t, e, n, r) {
|
|
778
922
|
if (!(!i.getBoundingClientRect && i !== window)) {
|
|
779
|
-
var o, a, l,
|
|
780
|
-
if (i !== window && i.parentNode && i !==
|
|
923
|
+
var o, s, a, l, d, f, u;
|
|
924
|
+
if (i !== window && i.parentNode && i !== Q() ? (o = i.getBoundingClientRect(), s = o.top, a = o.left, l = o.bottom, d = o.right, f = o.height, u = o.width) : (s = 0, a = 0, l = window.innerHeight, d = window.innerWidth, f = window.innerHeight, u = window.innerWidth), (t || e) && i !== window && (r = r || i.parentNode, !tt))
|
|
781
925
|
do
|
|
782
|
-
if (r && r.getBoundingClientRect && (
|
|
783
|
-
var
|
|
784
|
-
|
|
926
|
+
if (r && r.getBoundingClientRect && (g(r, "transform") !== "none" || e && g(r, "position") !== "static")) {
|
|
927
|
+
var c = r.getBoundingClientRect();
|
|
928
|
+
s -= c.top + parseInt(g(r, "border-top-width")), a -= c.left + parseInt(g(r, "border-left-width")), l = s + o.height, d = a + o.width;
|
|
785
929
|
break;
|
|
786
930
|
}
|
|
787
931
|
while (r = r.parentNode);
|
|
788
932
|
if (n && i !== window) {
|
|
789
|
-
var
|
|
790
|
-
|
|
933
|
+
var m = yt(r || i), p = m && m.a, v = m && m.d;
|
|
934
|
+
m && (s /= v, a /= p, u /= p, f /= v, l = s + f, d = a + u);
|
|
791
935
|
}
|
|
792
936
|
return {
|
|
793
|
-
top:
|
|
794
|
-
left:
|
|
795
|
-
bottom:
|
|
937
|
+
top: s,
|
|
938
|
+
left: a,
|
|
939
|
+
bottom: l,
|
|
796
940
|
right: d,
|
|
797
941
|
width: u,
|
|
798
|
-
height:
|
|
942
|
+
height: f
|
|
799
943
|
};
|
|
800
944
|
}
|
|
801
945
|
}
|
|
802
|
-
function
|
|
803
|
-
for (var n =
|
|
804
|
-
var o = T(n)[e],
|
|
805
|
-
if (e === "top" || e === "left" ?
|
|
946
|
+
function Qe(i, t, e) {
|
|
947
|
+
for (var n = ti(i, !0), r = T(i)[t]; n; ) {
|
|
948
|
+
var o = T(n)[e], s = void 0;
|
|
949
|
+
if (e === "top" || e === "left" ? s = r >= o : s = r <= o, !s)
|
|
806
950
|
return n;
|
|
807
|
-
if (n ===
|
|
951
|
+
if (n === Q())
|
|
808
952
|
break;
|
|
809
|
-
n =
|
|
953
|
+
n = ti(n, !1);
|
|
810
954
|
}
|
|
811
955
|
return !1;
|
|
812
956
|
}
|
|
813
|
-
function
|
|
814
|
-
for (var r = 0, o = 0,
|
|
815
|
-
if (
|
|
957
|
+
function bt(i, t, e, n) {
|
|
958
|
+
for (var r = 0, o = 0, s = i.children; o < s.length; ) {
|
|
959
|
+
if (s[o].style.display !== "none" && s[o] !== y.ghost && (n || s[o] !== y.dragged) && z(s[o], e.draggable, i, !1)) {
|
|
816
960
|
if (r === t)
|
|
817
|
-
return
|
|
961
|
+
return s[o];
|
|
818
962
|
r++;
|
|
819
963
|
}
|
|
820
964
|
o++;
|
|
821
965
|
}
|
|
822
966
|
return null;
|
|
823
967
|
}
|
|
824
|
-
function
|
|
825
|
-
for (var e = i.lastElementChild; e && (e ===
|
|
968
|
+
function xe(i, t) {
|
|
969
|
+
for (var e = i.lastElementChild; e && (e === y.ghost || g(e, "display") === "none" || t && !Qt(e, t)); )
|
|
826
970
|
e = e.previousElementSibling;
|
|
827
971
|
return e || null;
|
|
828
972
|
}
|
|
829
|
-
function
|
|
973
|
+
function k(i, t) {
|
|
830
974
|
var e = 0;
|
|
831
975
|
if (!i || !i.parentNode)
|
|
832
976
|
return -1;
|
|
833
977
|
for (; i = i.previousElementSibling; )
|
|
834
|
-
i.nodeName.toUpperCase() !== "TEMPLATE" && i !==
|
|
978
|
+
i.nodeName.toUpperCase() !== "TEMPLATE" && i !== y.clone && (!t || Qt(i, t)) && e++;
|
|
835
979
|
return e;
|
|
836
980
|
}
|
|
837
|
-
function
|
|
838
|
-
var t = 0, e = 0, n =
|
|
981
|
+
function Je(i) {
|
|
982
|
+
var t = 0, e = 0, n = Q();
|
|
839
983
|
if (i)
|
|
840
984
|
do {
|
|
841
|
-
var r =
|
|
842
|
-
t += i.scrollLeft * o, e += i.scrollTop *
|
|
985
|
+
var r = yt(i), o = r.a, s = r.d;
|
|
986
|
+
t += i.scrollLeft * o, e += i.scrollTop * s;
|
|
843
987
|
} while (i !== n && (i = i.parentNode));
|
|
844
988
|
return [t, e];
|
|
845
989
|
}
|
|
846
|
-
function
|
|
990
|
+
function on(i, t) {
|
|
847
991
|
for (var e in i)
|
|
848
992
|
if (i.hasOwnProperty(e)) {
|
|
849
993
|
for (var n in t)
|
|
@@ -852,68 +996,68 @@ function Yn(i, t) {
|
|
|
852
996
|
}
|
|
853
997
|
return -1;
|
|
854
998
|
}
|
|
855
|
-
function
|
|
999
|
+
function ti(i, t) {
|
|
856
1000
|
if (!i || !i.getBoundingClientRect)
|
|
857
|
-
return
|
|
1001
|
+
return Q();
|
|
858
1002
|
var e = i, n = !1;
|
|
859
1003
|
do
|
|
860
1004
|
if (e.clientWidth < e.scrollWidth || e.clientHeight < e.scrollHeight) {
|
|
861
|
-
var r =
|
|
1005
|
+
var r = g(e);
|
|
862
1006
|
if (e.clientWidth < e.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
|
|
863
1007
|
if (!e.getBoundingClientRect || e === document.body)
|
|
864
|
-
return
|
|
1008
|
+
return Q();
|
|
865
1009
|
if (n || t)
|
|
866
1010
|
return e;
|
|
867
1011
|
n = !0;
|
|
868
1012
|
}
|
|
869
1013
|
}
|
|
870
1014
|
while (e = e.parentNode);
|
|
871
|
-
return
|
|
1015
|
+
return Q();
|
|
872
1016
|
}
|
|
873
|
-
function
|
|
1017
|
+
function sn(i, t) {
|
|
874
1018
|
if (i && t)
|
|
875
1019
|
for (var e in t)
|
|
876
1020
|
t.hasOwnProperty(e) && (i[e] = t[e]);
|
|
877
1021
|
return i;
|
|
878
1022
|
}
|
|
879
|
-
function
|
|
1023
|
+
function pe(i, t) {
|
|
880
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);
|
|
881
1025
|
}
|
|
882
|
-
var
|
|
883
|
-
function
|
|
1026
|
+
var ge;
|
|
1027
|
+
function an(i, t) {
|
|
884
1028
|
return function() {
|
|
885
|
-
if (!
|
|
1029
|
+
if (!ge) {
|
|
886
1030
|
var e = arguments, n = this;
|
|
887
|
-
e.length === 1 ? i.call(n, e[0]) : i.apply(n, e),
|
|
888
|
-
|
|
1031
|
+
e.length === 1 ? i.call(n, e[0]) : i.apply(n, e), ge = setTimeout(function() {
|
|
1032
|
+
ge = void 0;
|
|
889
1033
|
}, t);
|
|
890
1034
|
}
|
|
891
1035
|
};
|
|
892
1036
|
}
|
|
893
|
-
function
|
|
1037
|
+
function ln(i, t, e) {
|
|
894
1038
|
i.scrollLeft += t, i.scrollTop += e;
|
|
895
1039
|
}
|
|
896
|
-
function
|
|
1040
|
+
function Ci(i) {
|
|
897
1041
|
var t = window.Polymer, e = window.jQuery || window.Zepto;
|
|
898
1042
|
return t && t.dom ? t.dom(i).cloneNode(!0) : e ? e(i).clone(!0)[0] : i.cloneNode(!0);
|
|
899
1043
|
}
|
|
900
1044
|
var U = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
901
|
-
function
|
|
1045
|
+
function dn() {
|
|
902
1046
|
var i = [], t;
|
|
903
1047
|
return {
|
|
904
1048
|
captureAnimationState: function() {
|
|
905
1049
|
if (i = [], !!this.options.animation) {
|
|
906
1050
|
var n = [].slice.call(this.el.children);
|
|
907
1051
|
n.forEach(function(r) {
|
|
908
|
-
if (!(
|
|
1052
|
+
if (!(g(r, "display") === "none" || r === y.ghost)) {
|
|
909
1053
|
i.push({
|
|
910
1054
|
target: r,
|
|
911
1055
|
rect: T(r)
|
|
912
1056
|
});
|
|
913
|
-
var o =
|
|
1057
|
+
var o = X({}, i[i.length - 1].rect);
|
|
914
1058
|
if (r.thisAnimationDuration) {
|
|
915
|
-
var
|
|
916
|
-
|
|
1059
|
+
var s = yt(r, !0);
|
|
1060
|
+
s && (o.top -= s.f, o.left -= s.e);
|
|
917
1061
|
}
|
|
918
1062
|
r.fromRect = o;
|
|
919
1063
|
}
|
|
@@ -924,7 +1068,7 @@ function Kn() {
|
|
|
924
1068
|
i.push(n);
|
|
925
1069
|
},
|
|
926
1070
|
removeAnimationState: function(n) {
|
|
927
|
-
i.splice(
|
|
1071
|
+
i.splice(on(i, {
|
|
928
1072
|
target: n
|
|
929
1073
|
}), 1);
|
|
930
1074
|
},
|
|
@@ -934,44 +1078,44 @@ function Kn() {
|
|
|
934
1078
|
clearTimeout(t), typeof n == "function" && n();
|
|
935
1079
|
return;
|
|
936
1080
|
}
|
|
937
|
-
var o = !1,
|
|
938
|
-
i.forEach(function(
|
|
939
|
-
var
|
|
940
|
-
v && (u.top -= v.f, u.left -= v.e), d.toRect = u, d.thisAnimationDuration &&
|
|
941
|
-
(
|
|
1081
|
+
var o = !1, s = 0;
|
|
1082
|
+
i.forEach(function(a) {
|
|
1083
|
+
var l = 0, d = a.target, f = d.fromRect, u = T(d), c = d.prevFromRect, m = d.prevToRect, p = a.rect, v = yt(d, !0);
|
|
1084
|
+
v && (u.top -= v.f, u.left -= v.e), d.toRect = u, d.thisAnimationDuration && pe(c, u) && !pe(f, u) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1085
|
+
(p.top - u.top) / (p.left - u.left) === (f.top - u.top) / (f.left - u.left) && (l = un(p, c, m, r.options)), pe(u, f) || (d.prevFromRect = f, d.prevToRect = u, l || (l = r.options.animation), r.animate(d, p, u, l)), l && (o = !0, s = Math.max(s, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
|
|
942
1086
|
d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
|
|
943
|
-
},
|
|
1087
|
+
}, l), d.thisAnimationDuration = l);
|
|
944
1088
|
}), clearTimeout(t), o ? t = setTimeout(function() {
|
|
945
1089
|
typeof n == "function" && n();
|
|
946
|
-
},
|
|
1090
|
+
}, s) : typeof n == "function" && n(), i = [];
|
|
947
1091
|
},
|
|
948
|
-
animate: function(n, r, o,
|
|
949
|
-
if (
|
|
950
|
-
|
|
951
|
-
var
|
|
952
|
-
n.animatingX = !!
|
|
953
|
-
|
|
954
|
-
},
|
|
1092
|
+
animate: function(n, r, o, s) {
|
|
1093
|
+
if (s) {
|
|
1094
|
+
g(n, "transition", ""), g(n, "transform", "");
|
|
1095
|
+
var a = yt(this.el), l = a && a.a, d = a && a.d, f = (r.left - o.left) / (l || 1), u = (r.top - o.top) / (d || 1);
|
|
1096
|
+
n.animatingX = !!f, n.animatingY = !!u, g(n, "transform", "translate3d(" + f + "px," + u + "px,0)"), this.forRepaintDummy = hn(n), g(n, "transition", "transform " + s + "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
|
+
g(n, "transition", ""), g(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
1098
|
+
}, s);
|
|
955
1099
|
}
|
|
956
1100
|
}
|
|
957
1101
|
};
|
|
958
1102
|
}
|
|
959
|
-
function
|
|
1103
|
+
function hn(i) {
|
|
960
1104
|
return i.offsetWidth;
|
|
961
1105
|
}
|
|
962
|
-
function
|
|
1106
|
+
function un(i, t, e, n) {
|
|
963
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;
|
|
964
1108
|
}
|
|
965
|
-
var
|
|
1109
|
+
var ct = [], me = {
|
|
966
1110
|
initializeByDefault: !0
|
|
967
|
-
},
|
|
1111
|
+
}, Bt = {
|
|
968
1112
|
mount: function(t) {
|
|
969
|
-
for (var e in
|
|
970
|
-
|
|
971
|
-
|
|
1113
|
+
for (var e in me)
|
|
1114
|
+
me.hasOwnProperty(e) && !(e in t) && (t[e] = me[e]);
|
|
1115
|
+
ct.forEach(function(n) {
|
|
972
1116
|
if (n.pluginName === t.pluginName)
|
|
973
1117
|
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
974
|
-
}),
|
|
1118
|
+
}), ct.push(t);
|
|
975
1119
|
},
|
|
976
1120
|
pluginEvent: function(t, e, n) {
|
|
977
1121
|
var r = this;
|
|
@@ -979,167 +1123,167 @@ var dt = [], ce = {
|
|
|
979
1123
|
r.eventCanceled = !0;
|
|
980
1124
|
};
|
|
981
1125
|
var o = t + "Global";
|
|
982
|
-
|
|
983
|
-
e[
|
|
1126
|
+
ct.forEach(function(s) {
|
|
1127
|
+
e[s.pluginName] && (e[s.pluginName][o] && e[s.pluginName][o](X({
|
|
984
1128
|
sortable: e
|
|
985
|
-
}, n)), e.options[
|
|
1129
|
+
}, n)), e.options[s.pluginName] && e[s.pluginName][t] && e[s.pluginName][t](X({
|
|
986
1130
|
sortable: e
|
|
987
1131
|
}, n)));
|
|
988
1132
|
});
|
|
989
1133
|
},
|
|
990
1134
|
initializePlugins: function(t, e, n, r) {
|
|
991
|
-
|
|
992
|
-
var
|
|
993
|
-
if (!(!t.options[
|
|
994
|
-
var d = new
|
|
995
|
-
d.sortable = t, d.options = t.options, t[
|
|
1135
|
+
ct.forEach(function(a) {
|
|
1136
|
+
var l = a.pluginName;
|
|
1137
|
+
if (!(!t.options[l] && !a.initializeByDefault)) {
|
|
1138
|
+
var d = new a(t, e, t.options);
|
|
1139
|
+
d.sortable = t, d.options = t.options, t[l] = d, J(n, d.defaults);
|
|
996
1140
|
}
|
|
997
1141
|
});
|
|
998
1142
|
for (var o in t.options)
|
|
999
1143
|
if (t.options.hasOwnProperty(o)) {
|
|
1000
|
-
var
|
|
1001
|
-
typeof
|
|
1144
|
+
var s = this.modifyOption(t, o, t.options[o]);
|
|
1145
|
+
typeof s < "u" && (t.options[o] = s);
|
|
1002
1146
|
}
|
|
1003
1147
|
},
|
|
1004
1148
|
getEventProperties: function(t, e) {
|
|
1005
1149
|
var n = {};
|
|
1006
|
-
return
|
|
1150
|
+
return ct.forEach(function(r) {
|
|
1007
1151
|
typeof r.eventProperties == "function" && J(n, r.eventProperties.call(e[r.pluginName], t));
|
|
1008
1152
|
}), n;
|
|
1009
1153
|
},
|
|
1010
1154
|
modifyOption: function(t, e, n) {
|
|
1011
1155
|
var r;
|
|
1012
|
-
return
|
|
1156
|
+
return ct.forEach(function(o) {
|
|
1013
1157
|
t[o.pluginName] && o.optionListeners && typeof o.optionListeners[e] == "function" && (r = o.optionListeners[e].call(t[o.pluginName], n));
|
|
1014
1158
|
}), r;
|
|
1015
1159
|
}
|
|
1016
1160
|
};
|
|
1017
|
-
function
|
|
1018
|
-
var t = i.sortable, e = i.rootEl, n = i.name, r = i.targetEl, o = i.cloneEl,
|
|
1161
|
+
function cn(i) {
|
|
1162
|
+
var t = i.sortable, e = i.rootEl, n = i.name, r = i.targetEl, o = i.cloneEl, s = i.toEl, a = i.fromEl, l = i.oldIndex, d = i.newIndex, f = i.oldDraggableIndex, u = i.newDraggableIndex, c = i.originalEvent, m = i.putSortable, p = i.extraEventProperties;
|
|
1019
1163
|
if (t = t || e && e[U], !!t) {
|
|
1020
|
-
var v,
|
|
1021
|
-
window.CustomEvent && !
|
|
1164
|
+
var v, D = t.options, V = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
1165
|
+
window.CustomEvent && !tt && !ie ? v = new CustomEvent(n, {
|
|
1022
1166
|
bubbles: !0,
|
|
1023
1167
|
cancelable: !0
|
|
1024
|
-
}) : (v = document.createEvent("Event"), v.initEvent(n, !0, !0)), v.to =
|
|
1025
|
-
var
|
|
1026
|
-
for (var et in
|
|
1027
|
-
v[et] =
|
|
1028
|
-
e && e.dispatchEvent(v),
|
|
1168
|
+
}) : (v = document.createEvent("Event"), v.initEvent(n, !0, !0)), v.to = s || e, v.from = a || e, v.item = r || e, v.clone = o, v.oldIndex = l, v.newIndex = d, v.oldDraggableIndex = f, v.newDraggableIndex = u, v.originalEvent = c, v.pullMode = m ? m.lastPutMode : void 0;
|
|
1169
|
+
var O = X(X({}, p), Bt.getEventProperties(n, t));
|
|
1170
|
+
for (var et in O)
|
|
1171
|
+
v[et] = O[et];
|
|
1172
|
+
e && e.dispatchEvent(v), D[V] && D[V].call(t, v);
|
|
1029
1173
|
}
|
|
1030
1174
|
}
|
|
1031
|
-
var
|
|
1032
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o =
|
|
1033
|
-
|
|
1175
|
+
var fn = ["evt"], L = function(t, e) {
|
|
1176
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = en(n, fn);
|
|
1177
|
+
Bt.pluginEvent.bind(y)(t, e, X({
|
|
1034
1178
|
dragEl: h,
|
|
1035
1179
|
parentEl: A,
|
|
1036
|
-
ghostEl:
|
|
1180
|
+
ghostEl: _,
|
|
1037
1181
|
rootEl: w,
|
|
1038
|
-
nextEl:
|
|
1039
|
-
lastDownEl:
|
|
1182
|
+
nextEl: at,
|
|
1183
|
+
lastDownEl: Yt,
|
|
1040
1184
|
cloneEl: C,
|
|
1041
|
-
cloneHidden:
|
|
1042
|
-
dragStarted:
|
|
1185
|
+
cloneHidden: K,
|
|
1186
|
+
dragStarted: xt,
|
|
1043
1187
|
putSortable: x,
|
|
1044
|
-
activeSortable:
|
|
1188
|
+
activeSortable: y.active,
|
|
1045
1189
|
originalEvent: r,
|
|
1046
|
-
oldIndex:
|
|
1047
|
-
oldDraggableIndex:
|
|
1190
|
+
oldIndex: mt,
|
|
1191
|
+
oldDraggableIndex: Ot,
|
|
1048
1192
|
newIndex: H,
|
|
1049
|
-
newDraggableIndex:
|
|
1050
|
-
hideGhostForTarget:
|
|
1051
|
-
unhideGhostForTarget:
|
|
1193
|
+
newDraggableIndex: Z,
|
|
1194
|
+
hideGhostForTarget: Ti,
|
|
1195
|
+
unhideGhostForTarget: xi,
|
|
1052
1196
|
cloneNowHidden: function() {
|
|
1053
|
-
|
|
1197
|
+
K = !0;
|
|
1054
1198
|
},
|
|
1055
1199
|
cloneNowShown: function() {
|
|
1056
|
-
|
|
1200
|
+
K = !1;
|
|
1057
1201
|
},
|
|
1058
|
-
dispatchSortableEvent: function(
|
|
1059
|
-
|
|
1202
|
+
dispatchSortableEvent: function(a) {
|
|
1203
|
+
I({
|
|
1060
1204
|
sortable: e,
|
|
1061
|
-
name:
|
|
1205
|
+
name: a,
|
|
1062
1206
|
originalEvent: r
|
|
1063
1207
|
});
|
|
1064
1208
|
}
|
|
1065
1209
|
}, o));
|
|
1066
1210
|
};
|
|
1067
|
-
function
|
|
1068
|
-
|
|
1211
|
+
function I(i) {
|
|
1212
|
+
cn(X({
|
|
1069
1213
|
putSortable: x,
|
|
1070
1214
|
cloneEl: C,
|
|
1071
1215
|
targetEl: h,
|
|
1072
1216
|
rootEl: w,
|
|
1073
|
-
oldIndex:
|
|
1074
|
-
oldDraggableIndex:
|
|
1217
|
+
oldIndex: mt,
|
|
1218
|
+
oldDraggableIndex: Ot,
|
|
1075
1219
|
newIndex: H,
|
|
1076
|
-
newDraggableIndex:
|
|
1220
|
+
newDraggableIndex: Z
|
|
1077
1221
|
}, i));
|
|
1078
1222
|
}
|
|
1079
|
-
var h, A,
|
|
1080
|
-
if (
|
|
1081
|
-
if (
|
|
1223
|
+
var h, A, _, w, at, Yt, C, K, mt, H, Ot, Z, kt, x, gt = !1, Jt = !1, te = [], rt, F, ve, ye, ei, ii, xt, ft, Pt, It = !1, Ut = !1, Wt, P, _e = [], Ae = !1, ee = [], ne = typeof document < "u", Vt = bi, ni = ie || tt ? "cssFloat" : "float", pn = ne && !Ei && !bi && "draggable" in document.createElement("div"), Ai = function() {
|
|
1224
|
+
if (ne) {
|
|
1225
|
+
if (tt)
|
|
1082
1226
|
return !1;
|
|
1083
1227
|
var i = document.createElement("x");
|
|
1084
1228
|
return i.style.cssText = "pointer-events:auto", i.style.pointerEvents === "auto";
|
|
1085
1229
|
}
|
|
1086
|
-
}(),
|
|
1087
|
-
var n =
|
|
1230
|
+
}(), Si = 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 = bt(t, 0, e), s = bt(t, 1, e), a = o && g(o), l = s && g(s), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + T(o).width, f = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + T(s).width;
|
|
1088
1232
|
if (n.display === "flex")
|
|
1089
1233
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1090
1234
|
if (n.display === "grid")
|
|
1091
1235
|
return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
1092
|
-
if (o &&
|
|
1093
|
-
var u =
|
|
1094
|
-
return
|
|
1095
|
-
}
|
|
1096
|
-
return o && (
|
|
1097
|
-
},
|
|
1098
|
-
var r = n ? t.left : t.top, o = n ? t.right : t.bottom,
|
|
1099
|
-
return r ===
|
|
1100
|
-
},
|
|
1236
|
+
if (o && a.float && a.float !== "none") {
|
|
1237
|
+
var u = a.float === "left" ? "left" : "right";
|
|
1238
|
+
return s && (l.clear === "both" || l.clear === u) ? "vertical" : "horizontal";
|
|
1239
|
+
}
|
|
1240
|
+
return o && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || d >= r && n[ni] === "none" || s && n[ni] === "none" && d + f > r) ? "vertical" : "horizontal";
|
|
1241
|
+
}, gn = function(t, e, n) {
|
|
1242
|
+
var r = n ? t.left : t.top, o = n ? t.right : t.bottom, s = n ? t.width : t.height, a = n ? e.left : e.top, l = n ? e.right : e.bottom, d = n ? e.width : e.height;
|
|
1243
|
+
return r === a || o === l || r + s / 2 === a + d / 2;
|
|
1244
|
+
}, mn = function(t, e) {
|
|
1101
1245
|
var n;
|
|
1102
|
-
return
|
|
1246
|
+
return te.some(function(r) {
|
|
1103
1247
|
var o = r[U].options.emptyInsertThreshold;
|
|
1104
|
-
if (!(!o ||
|
|
1105
|
-
var
|
|
1106
|
-
if (
|
|
1248
|
+
if (!(!o || xe(r))) {
|
|
1249
|
+
var s = T(r), a = t >= s.left - o && t <= s.right + o, l = e >= s.top - o && e <= s.bottom + o;
|
|
1250
|
+
if (a && l)
|
|
1107
1251
|
return n = r;
|
|
1108
1252
|
}
|
|
1109
1253
|
}), n;
|
|
1110
|
-
},
|
|
1111
|
-
function e(o,
|
|
1112
|
-
return function(
|
|
1113
|
-
var u =
|
|
1114
|
-
if (o == null && (
|
|
1254
|
+
}, Di = function(t) {
|
|
1255
|
+
function e(o, s) {
|
|
1256
|
+
return function(a, l, d, f) {
|
|
1257
|
+
var u = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
|
|
1258
|
+
if (o == null && (s || u))
|
|
1115
1259
|
return !0;
|
|
1116
1260
|
if (o == null || o === !1)
|
|
1117
1261
|
return !1;
|
|
1118
|
-
if (
|
|
1262
|
+
if (s && o === "clone")
|
|
1119
1263
|
return o;
|
|
1120
1264
|
if (typeof o == "function")
|
|
1121
|
-
return e(o(
|
|
1122
|
-
var
|
|
1123
|
-
return o === !0 || typeof o == "string" && o ===
|
|
1265
|
+
return e(o(a, l, d, f), s)(a, l, d, f);
|
|
1266
|
+
var c = (s ? a : l).options.group.name;
|
|
1267
|
+
return o === !0 || typeof o == "string" && o === c || o.join && o.indexOf(c) > -1;
|
|
1124
1268
|
};
|
|
1125
1269
|
}
|
|
1126
1270
|
var n = {}, r = t.group;
|
|
1127
|
-
(!r ||
|
|
1271
|
+
(!r || zt(r) != "object") && (r = {
|
|
1128
1272
|
name: r
|
|
1129
1273
|
}), n.name = r.name, n.checkPull = e(r.pull, !0), n.checkPut = e(r.put), n.revertClone = r.revertClone, t.group = n;
|
|
1130
|
-
},
|
|
1131
|
-
!
|
|
1132
|
-
},
|
|
1133
|
-
!
|
|
1274
|
+
}, Ti = function() {
|
|
1275
|
+
!Ai && _ && g(_, "display", "none");
|
|
1276
|
+
}, xi = function() {
|
|
1277
|
+
!Ai && _ && g(_, "display", "");
|
|
1134
1278
|
};
|
|
1135
|
-
|
|
1136
|
-
if (
|
|
1137
|
-
return i.preventDefault(), i.stopPropagation && i.stopPropagation(), i.stopImmediatePropagation && i.stopImmediatePropagation(),
|
|
1279
|
+
ne && !Ei && document.addEventListener("click", function(i) {
|
|
1280
|
+
if (Jt)
|
|
1281
|
+
return i.preventDefault(), i.stopPropagation && i.stopPropagation(), i.stopImmediatePropagation && i.stopImmediatePropagation(), Jt = !1, !1;
|
|
1138
1282
|
}, !0);
|
|
1139
|
-
var
|
|
1283
|
+
var ot = function(t) {
|
|
1140
1284
|
if (h) {
|
|
1141
1285
|
t = t.touches ? t.touches[0] : t;
|
|
1142
|
-
var e =
|
|
1286
|
+
var e = mn(t.clientX, t.clientY);
|
|
1143
1287
|
if (e) {
|
|
1144
1288
|
var n = {};
|
|
1145
1289
|
for (var r in t)
|
|
@@ -1147,10 +1291,10 @@ var rt = function(t) {
|
|
|
1147
1291
|
n.target = n.rootEl = e, n.preventDefault = void 0, n.stopPropagation = void 0, e[U]._onDragOver(n);
|
|
1148
1292
|
}
|
|
1149
1293
|
}
|
|
1150
|
-
},
|
|
1294
|
+
}, vn = function(t) {
|
|
1151
1295
|
h && h.parentNode[U]._isOutsideThisEl(t.target);
|
|
1152
1296
|
};
|
|
1153
|
-
function
|
|
1297
|
+
function y(i, t) {
|
|
1154
1298
|
if (!(i && i.nodeType && i.nodeType === 1))
|
|
1155
1299
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));
|
|
1156
1300
|
this.el = i, this.options = t = J({}, t), i[U] = this;
|
|
@@ -1169,7 +1313,7 @@ function g(i, t) {
|
|
|
1169
1313
|
// will be set to same as swapThreshold if default
|
|
1170
1314
|
removeCloneOnHide: !0,
|
|
1171
1315
|
direction: function() {
|
|
1172
|
-
return
|
|
1316
|
+
return Si(i, this.options);
|
|
1173
1317
|
},
|
|
1174
1318
|
ghostClass: "sortable-ghost",
|
|
1175
1319
|
chosenClass: "sortable-chosen",
|
|
@@ -1179,8 +1323,8 @@ function g(i, t) {
|
|
|
1179
1323
|
preventOnFilter: !0,
|
|
1180
1324
|
animation: 0,
|
|
1181
1325
|
easing: null,
|
|
1182
|
-
setData: function(
|
|
1183
|
-
|
|
1326
|
+
setData: function(s, a) {
|
|
1327
|
+
s.setData("Text", a.textContent);
|
|
1184
1328
|
},
|
|
1185
1329
|
dropBubble: !1,
|
|
1186
1330
|
dragoverBubble: !1,
|
|
@@ -1196,96 +1340,96 @@ function g(i, t) {
|
|
|
1196
1340
|
x: 0,
|
|
1197
1341
|
y: 0
|
|
1198
1342
|
},
|
|
1199
|
-
supportPointer:
|
|
1343
|
+
supportPointer: y.supportPointer !== !1 && "PointerEvent" in window && !Xt,
|
|
1200
1344
|
emptyInsertThreshold: 5
|
|
1201
1345
|
};
|
|
1202
|
-
|
|
1346
|
+
Bt.initializePlugins(this, i, e);
|
|
1203
1347
|
for (var n in e)
|
|
1204
1348
|
!(n in t) && (t[n] = e[n]);
|
|
1205
|
-
|
|
1349
|
+
Di(t);
|
|
1206
1350
|
for (var r in this)
|
|
1207
1351
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
1208
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
1352
|
+
this.nativeDraggable = t.forceFallback ? !1 : pn, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? $(i, "pointerdown", this._onTapStart) : ($(i, "mousedown", this._onTapStart), $(i, "touchstart", this._onTapStart)), this.nativeDraggable && ($(i, "dragover", this), $(i, "dragenter", this)), te.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), J(this, dn());
|
|
1209
1353
|
}
|
|
1210
|
-
|
|
1354
|
+
y.prototype = /** @lends Sortable.prototype */
|
|
1211
1355
|
{
|
|
1212
|
-
constructor:
|
|
1356
|
+
constructor: y,
|
|
1213
1357
|
_isOutsideThisEl: function(t) {
|
|
1214
|
-
!this.el.contains(t) && t !== this.el && (
|
|
1358
|
+
!this.el.contains(t) && t !== this.el && (ft = null);
|
|
1215
1359
|
},
|
|
1216
1360
|
_getDirection: function(t, e) {
|
|
1217
1361
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, h) : this.options.direction;
|
|
1218
1362
|
},
|
|
1219
1363
|
_onTapStart: function(t) {
|
|
1220
1364
|
if (t.cancelable) {
|
|
1221
|
-
var e = this, n = this.el, r = this.options, o = r.preventOnFilter,
|
|
1222
|
-
if (
|
|
1223
|
-
if (
|
|
1224
|
-
if (
|
|
1225
|
-
|
|
1365
|
+
var e = this, n = this.el, r = this.options, o = r.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, f = r.filter;
|
|
1366
|
+
if (An(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && Xt && l && l.tagName.toUpperCase() === "SELECT") && (l = z(l, r.draggable, n, !1), !(l && l.animated) && Yt !== l)) {
|
|
1367
|
+
if (mt = k(l), Ot = k(l, r.draggable), typeof f == "function") {
|
|
1368
|
+
if (f.call(this, t, l, this)) {
|
|
1369
|
+
I({
|
|
1226
1370
|
sortable: e,
|
|
1227
1371
|
rootEl: d,
|
|
1228
1372
|
name: "filter",
|
|
1229
|
-
targetEl:
|
|
1373
|
+
targetEl: l,
|
|
1230
1374
|
toEl: n,
|
|
1231
1375
|
fromEl: n
|
|
1232
|
-
}),
|
|
1376
|
+
}), L("filter", e, {
|
|
1233
1377
|
evt: t
|
|
1234
1378
|
}), o && t.cancelable && t.preventDefault();
|
|
1235
1379
|
return;
|
|
1236
1380
|
}
|
|
1237
|
-
} else if (
|
|
1381
|
+
} else if (f && (f = f.split(",").some(function(u) {
|
|
1238
1382
|
if (u = z(d, u.trim(), n, !1), u)
|
|
1239
|
-
return
|
|
1383
|
+
return I({
|
|
1240
1384
|
sortable: e,
|
|
1241
1385
|
rootEl: u,
|
|
1242
1386
|
name: "filter",
|
|
1243
|
-
targetEl:
|
|
1387
|
+
targetEl: l,
|
|
1244
1388
|
fromEl: n,
|
|
1245
1389
|
toEl: n
|
|
1246
|
-
}),
|
|
1390
|
+
}), L("filter", e, {
|
|
1247
1391
|
evt: t
|
|
1248
1392
|
}), !0;
|
|
1249
|
-
}),
|
|
1393
|
+
}), f)) {
|
|
1250
1394
|
o && t.cancelable && t.preventDefault();
|
|
1251
1395
|
return;
|
|
1252
1396
|
}
|
|
1253
|
-
r.handle && !z(d, r.handle, n, !1) || this._prepareDragStart(t,
|
|
1397
|
+
r.handle && !z(d, r.handle, n, !1) || this._prepareDragStart(t, a, l);
|
|
1254
1398
|
}
|
|
1255
1399
|
}
|
|
1256
1400
|
},
|
|
1257
1401
|
_prepareDragStart: function(t, e, n) {
|
|
1258
|
-
var r = this, o = r.el,
|
|
1402
|
+
var r = this, o = r.el, s = r.options, a = o.ownerDocument, l;
|
|
1259
1403
|
if (n && !h && n.parentNode === o) {
|
|
1260
1404
|
var d = T(n);
|
|
1261
|
-
if (w = o, h = n, A = h.parentNode,
|
|
1405
|
+
if (w = o, h = n, A = h.parentNode, at = h.nextSibling, Yt = n, kt = s.group, y.dragged = h, rt = {
|
|
1262
1406
|
target: h,
|
|
1263
1407
|
clientX: (e || t).clientX,
|
|
1264
1408
|
clientY: (e || t).clientY
|
|
1265
|
-
},
|
|
1266
|
-
if (
|
|
1409
|
+
}, ei = rt.clientX - d.left, ii = rt.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, h.style["will-change"] = "all", l = function() {
|
|
1410
|
+
if (L("delayEnded", r, {
|
|
1267
1411
|
evt: t
|
|
1268
|
-
}),
|
|
1412
|
+
}), y.eventCanceled) {
|
|
1269
1413
|
r._onDrop();
|
|
1270
1414
|
return;
|
|
1271
1415
|
}
|
|
1272
|
-
r._disableDelayedDragEvents(), !
|
|
1416
|
+
r._disableDelayedDragEvents(), !Ze && r.nativeDraggable && (h.draggable = !0), r._triggerDragStart(t, e), I({
|
|
1273
1417
|
sortable: r,
|
|
1274
1418
|
name: "choose",
|
|
1275
1419
|
originalEvent: t
|
|
1276
|
-
}), M(h,
|
|
1277
|
-
},
|
|
1278
|
-
|
|
1279
|
-
}),
|
|
1420
|
+
}), M(h, s.chosenClass, !0);
|
|
1421
|
+
}, s.ignore.split(",").forEach(function(f) {
|
|
1422
|
+
wi(h, f.trim(), be);
|
|
1423
|
+
}), $(a, "dragover", ot), $(a, "mousemove", ot), $(a, "touchmove", ot), $(a, "mouseup", r._onDrop), $(a, "touchend", r._onDrop), $(a, "touchcancel", r._onDrop), Ze && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), L("delayStart", this, {
|
|
1280
1424
|
evt: t
|
|
1281
|
-
}),
|
|
1282
|
-
if (
|
|
1425
|
+
}), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(ie || tt))) {
|
|
1426
|
+
if (y.eventCanceled) {
|
|
1283
1427
|
this._onDrop();
|
|
1284
1428
|
return;
|
|
1285
1429
|
}
|
|
1286
|
-
|
|
1430
|
+
$(a, "mouseup", r._disableDelayedDrag), $(a, "touchend", r._disableDelayedDrag), $(a, "touchcancel", r._disableDelayedDrag), $(a, "mousemove", r._delayedDragTouchMoveHandler), $(a, "touchmove", r._delayedDragTouchMoveHandler), s.supportPointer && $(a, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(l, s.delay);
|
|
1287
1431
|
} else
|
|
1288
|
-
|
|
1432
|
+
l();
|
|
1289
1433
|
}
|
|
1290
1434
|
},
|
|
1291
1435
|
_delayedDragTouchMoveHandler: function(t) {
|
|
@@ -1293,28 +1437,28 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1293
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();
|
|
1294
1438
|
},
|
|
1295
1439
|
_disableDelayedDrag: function() {
|
|
1296
|
-
h &&
|
|
1440
|
+
h && be(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
1297
1441
|
},
|
|
1298
1442
|
_disableDelayedDragEvents: function() {
|
|
1299
1443
|
var t = this.el.ownerDocument;
|
|
1300
1444
|
b(t, "mouseup", this._disableDelayedDrag), b(t, "touchend", this._disableDelayedDrag), b(t, "touchcancel", this._disableDelayedDrag), b(t, "mousemove", this._delayedDragTouchMoveHandler), b(t, "touchmove", this._delayedDragTouchMoveHandler), b(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
1301
1445
|
},
|
|
1302
1446
|
_triggerDragStart: function(t, e) {
|
|
1303
|
-
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 ? $(document, "pointermove", this._onTouchMove) : e ? $(document, "touchmove", this._onTouchMove) : $(document, "mousemove", this._onTouchMove) : ($(h, "dragend", this), $(w, "dragstart", this._onDragStart));
|
|
1304
1448
|
try {
|
|
1305
|
-
document.selection ?
|
|
1449
|
+
document.selection ? Gt(function() {
|
|
1306
1450
|
document.selection.empty();
|
|
1307
1451
|
}) : window.getSelection().removeAllRanges();
|
|
1308
1452
|
} catch {
|
|
1309
1453
|
}
|
|
1310
1454
|
},
|
|
1311
1455
|
_dragStarted: function(t, e) {
|
|
1312
|
-
if (
|
|
1313
|
-
|
|
1456
|
+
if (gt = !1, w && h) {
|
|
1457
|
+
L("dragStarted", this, {
|
|
1314
1458
|
evt: e
|
|
1315
|
-
}), this.nativeDraggable &&
|
|
1459
|
+
}), this.nativeDraggable && $(document, "dragover", vn);
|
|
1316
1460
|
var n = this.options;
|
|
1317
|
-
!t && M(h, n.dragClass, !1), M(h, n.ghostClass, !0),
|
|
1461
|
+
!t && M(h, n.dragClass, !1), M(h, n.ghostClass, !0), y.active = this, t && this._appendGhost(), I({
|
|
1318
1462
|
sortable: this,
|
|
1319
1463
|
name: "start",
|
|
1320
1464
|
originalEvent: e
|
|
@@ -1323,17 +1467,17 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1323
1467
|
this._nulling();
|
|
1324
1468
|
},
|
|
1325
1469
|
_emulateDragOver: function() {
|
|
1326
|
-
if (
|
|
1327
|
-
this._lastX =
|
|
1328
|
-
for (var t = document.elementFromPoint(
|
|
1470
|
+
if (F) {
|
|
1471
|
+
this._lastX = F.clientX, this._lastY = F.clientY, Ti();
|
|
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); )
|
|
1329
1473
|
e = t;
|
|
1330
1474
|
if (h.parentNode[U]._isOutsideThisEl(t), e)
|
|
1331
1475
|
do {
|
|
1332
1476
|
if (e[U]) {
|
|
1333
1477
|
var n = void 0;
|
|
1334
1478
|
if (n = e[U]._onDragOver({
|
|
1335
|
-
clientX:
|
|
1336
|
-
clientY:
|
|
1479
|
+
clientX: F.clientX,
|
|
1480
|
+
clientY: F.clientY,
|
|
1337
1481
|
target: t,
|
|
1338
1482
|
rootEl: e
|
|
1339
1483
|
}), n && !this.options.dragoverBubble)
|
|
@@ -1341,150 +1485,150 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1341
1485
|
}
|
|
1342
1486
|
t = e;
|
|
1343
1487
|
} while (e = e.parentNode);
|
|
1344
|
-
|
|
1488
|
+
xi();
|
|
1345
1489
|
}
|
|
1346
1490
|
},
|
|
1347
1491
|
_onTouchMove: function(t) {
|
|
1348
|
-
if (
|
|
1349
|
-
var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t,
|
|
1350
|
-
if (!
|
|
1492
|
+
if (rt) {
|
|
1493
|
+
var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, s = _ && yt(_, !0), a = _ && s && s.a, l = _ && s && s.d, d = Vt && P && Je(P), f = (o.clientX - rt.clientX + r.x) / (a || 1) + (d ? d[0] - _e[0] : 0) / (a || 1), u = (o.clientY - rt.clientY + r.y) / (l || 1) + (d ? d[1] - _e[1] : 0) / (l || 1);
|
|
1494
|
+
if (!y.active && !gt) {
|
|
1351
1495
|
if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n)
|
|
1352
1496
|
return;
|
|
1353
1497
|
this._onDragStart(t, !0);
|
|
1354
1498
|
}
|
|
1355
|
-
if (
|
|
1356
|
-
|
|
1499
|
+
if (_) {
|
|
1500
|
+
s ? (s.e += f - (ve || 0), s.f += u - (ye || 0)) : s = {
|
|
1357
1501
|
a: 1,
|
|
1358
1502
|
b: 0,
|
|
1359
1503
|
c: 0,
|
|
1360
1504
|
d: 1,
|
|
1361
|
-
e:
|
|
1505
|
+
e: f,
|
|
1362
1506
|
f: u
|
|
1363
1507
|
};
|
|
1364
|
-
var
|
|
1365
|
-
|
|
1508
|
+
var c = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
|
|
1509
|
+
g(_, "webkitTransform", c), g(_, "mozTransform", c), g(_, "msTransform", c), g(_, "transform", c), ve = f, ye = u, F = o;
|
|
1366
1510
|
}
|
|
1367
1511
|
t.cancelable && t.preventDefault();
|
|
1368
1512
|
}
|
|
1369
1513
|
},
|
|
1370
1514
|
_appendGhost: function() {
|
|
1371
|
-
if (!
|
|
1372
|
-
var t = this.options.fallbackOnBody ? document.body : w, e = T(h, !0,
|
|
1373
|
-
if (
|
|
1374
|
-
for (
|
|
1375
|
-
|
|
1376
|
-
|
|
1515
|
+
if (!_) {
|
|
1516
|
+
var t = this.options.fallbackOnBody ? document.body : w, e = T(h, !0, Vt, !0, t), n = this.options;
|
|
1517
|
+
if (Vt) {
|
|
1518
|
+
for (P = t; g(P, "position") === "static" && g(P, "transform") === "none" && P !== document; )
|
|
1519
|
+
P = P.parentNode;
|
|
1520
|
+
P !== document.body && P !== document.documentElement ? (P === document && (P = Q()), e.top += P.scrollTop, e.left += P.scrollLeft) : P = Q(), _e = Je(P);
|
|
1377
1521
|
}
|
|
1378
|
-
|
|
1522
|
+
_ = h.cloneNode(!0), M(_, n.ghostClass, !1), M(_, n.fallbackClass, !0), M(_, n.dragClass, !0), g(_, "transition", ""), g(_, "transform", ""), g(_, "box-sizing", "border-box"), g(_, "margin", 0), g(_, "top", e.top), g(_, "left", e.left), g(_, "width", e.width), g(_, "height", e.height), g(_, "opacity", "0.8"), g(_, "position", Vt ? "absolute" : "fixed"), g(_, "zIndex", "100000"), g(_, "pointerEvents", "none"), y.ghost = _, t.appendChild(_), g(_, "transform-origin", ei / parseInt(_.style.width) * 100 + "% " + ii / parseInt(_.style.height) * 100 + "%");
|
|
1379
1523
|
}
|
|
1380
1524
|
},
|
|
1381
1525
|
_onDragStart: function(t, e) {
|
|
1382
1526
|
var n = this, r = t.dataTransfer, o = n.options;
|
|
1383
|
-
if (
|
|
1527
|
+
if (L("dragStart", this, {
|
|
1384
1528
|
evt: t
|
|
1385
|
-
}),
|
|
1529
|
+
}), y.eventCanceled) {
|
|
1386
1530
|
this._onDrop();
|
|
1387
1531
|
return;
|
|
1388
1532
|
}
|
|
1389
|
-
|
|
1390
|
-
|
|
1533
|
+
L("setupClone", this), y.eventCanceled || (C = Ci(h), C.removeAttribute("id"), C.draggable = !1, C.style["will-change"] = "", this._hideClone(), M(C, this.options.chosenClass, !1), y.clone = C), n.cloneId = Gt(function() {
|
|
1534
|
+
L("clone", n), !y.eventCanceled && (n.options.removeCloneOnHide || w.insertBefore(C, h), n._hideClone(), I({
|
|
1391
1535
|
sortable: n,
|
|
1392
1536
|
name: "clone"
|
|
1393
1537
|
}));
|
|
1394
|
-
}), !e && M(h, o.dragClass, !0), e ? (
|
|
1538
|
+
}), !e && M(h, o.dragClass, !0), e ? (Jt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (b(document, "mouseup", n._onDrop), b(document, "touchend", n._onDrop), b(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, h)), $(document, "drop", n), g(h, "transform", "translateZ(0)")), gt = !0, n._dragStartId = Gt(n._dragStarted.bind(n, e, t)), $(document, "selectstart", n), xt = !0, Xt && g(document.body, "user-select", "none");
|
|
1395
1539
|
},
|
|
1396
1540
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1397
1541
|
_onDragOver: function(t) {
|
|
1398
|
-
var e = this.el, n = t.target, r, o,
|
|
1399
|
-
if (
|
|
1542
|
+
var e = this.el, n = t.target, r, o, s, a = this.options, l = a.group, d = y.active, f = kt === l, u = a.sort, c = x || d, m, p = this, v = !1;
|
|
1543
|
+
if (Ae)
|
|
1400
1544
|
return;
|
|
1401
|
-
function
|
|
1402
|
-
|
|
1545
|
+
function D(St, Hi) {
|
|
1546
|
+
L(St, p, X({
|
|
1403
1547
|
evt: t,
|
|
1404
|
-
isOwner:
|
|
1405
|
-
axis:
|
|
1406
|
-
revert:
|
|
1548
|
+
isOwner: f,
|
|
1549
|
+
axis: m ? "vertical" : "horizontal",
|
|
1550
|
+
revert: s,
|
|
1407
1551
|
dragRect: r,
|
|
1408
1552
|
targetRect: o,
|
|
1409
1553
|
canSort: u,
|
|
1410
|
-
fromSortable:
|
|
1554
|
+
fromSortable: c,
|
|
1411
1555
|
target: n,
|
|
1412
|
-
completed:
|
|
1413
|
-
onMove: function(
|
|
1414
|
-
return
|
|
1556
|
+
completed: O,
|
|
1557
|
+
onMove: function(Le, Bi) {
|
|
1558
|
+
return Ft(w, e, h, r, Le, T(Le), t, Bi);
|
|
1415
1559
|
},
|
|
1416
1560
|
changed: et
|
|
1417
|
-
},
|
|
1561
|
+
}, Hi));
|
|
1418
1562
|
}
|
|
1419
|
-
function
|
|
1420
|
-
|
|
1563
|
+
function V() {
|
|
1564
|
+
D("dragOverAnimationCapture"), p.captureAnimationState(), p !== c && c.captureAnimationState();
|
|
1421
1565
|
}
|
|
1422
|
-
function
|
|
1423
|
-
return
|
|
1424
|
-
insertion:
|
|
1425
|
-
}),
|
|
1426
|
-
|
|
1427
|
-
}),
|
|
1566
|
+
function O(St) {
|
|
1567
|
+
return D("dragOverCompleted", {
|
|
1568
|
+
insertion: St
|
|
1569
|
+
}), St && (f ? d._hideClone() : d._showClone(p), p !== c && (M(h, x ? x.options.ghostClass : d.options.ghostClass, !1), M(h, a.ghostClass, !0)), x !== p && p !== y.active ? x = p : p === y.active && x && (x = null), c === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
|
|
1570
|
+
D("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
1571
|
+
}), p !== c && (c.animateAll(), c._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (ft = null), !a.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[U]._isOutsideThisEl(t.target), !St && ot(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), v = !0;
|
|
1428
1572
|
}
|
|
1429
1573
|
function et() {
|
|
1430
|
-
H =
|
|
1431
|
-
sortable:
|
|
1574
|
+
H = k(h), Z = k(h, a.draggable), I({
|
|
1575
|
+
sortable: p,
|
|
1432
1576
|
name: "change",
|
|
1433
1577
|
toEl: e,
|
|
1434
1578
|
newIndex: H,
|
|
1435
|
-
newDraggableIndex:
|
|
1579
|
+
newDraggableIndex: Z,
|
|
1436
1580
|
originalEvent: t
|
|
1437
1581
|
});
|
|
1438
1582
|
}
|
|
1439
|
-
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = z(n,
|
|
1583
|
+
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = z(n, a.draggable, e, !0), D("dragOver"), y.eventCanceled)
|
|
1440
1584
|
return v;
|
|
1441
|
-
if (h.contains(t.target) || n.animated && n.animatingX && n.animatingY ||
|
|
1442
|
-
return
|
|
1443
|
-
if (
|
|
1444
|
-
if (
|
|
1585
|
+
if (h.contains(t.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n)
|
|
1586
|
+
return O(!1);
|
|
1587
|
+
if (Jt = !1, d && !a.disabled && (f ? u || (s = A !== w) : x === this || (this.lastPutMode = kt.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
|
|
1588
|
+
if (m = this._getDirection(t, n) === "vertical", r = T(h), D("dragOverValid"), y.eventCanceled)
|
|
1445
1589
|
return v;
|
|
1446
|
-
if (
|
|
1447
|
-
return A = w,
|
|
1448
|
-
var
|
|
1449
|
-
if (!
|
|
1450
|
-
if (
|
|
1451
|
-
return
|
|
1452
|
-
if (
|
|
1453
|
-
return
|
|
1454
|
-
} else if (
|
|
1455
|
-
var
|
|
1456
|
-
if (
|
|
1457
|
-
return
|
|
1458
|
-
if (n =
|
|
1459
|
-
return
|
|
1590
|
+
if (s)
|
|
1591
|
+
return A = w, V(), this._hideClone(), D("revert"), y.eventCanceled || (at ? w.insertBefore(h, at) : w.appendChild(h)), O(!0);
|
|
1592
|
+
var Y = xe(e, a.draggable);
|
|
1593
|
+
if (!Y || En(t, m, this) && !Y.animated) {
|
|
1594
|
+
if (Y === h)
|
|
1595
|
+
return O(!1);
|
|
1596
|
+
if (Y && e === t.target && (n = Y), n && (o = T(n)), Ft(w, e, h, r, n, o, t, !!n) !== !1)
|
|
1597
|
+
return V(), Y && Y.nextSibling ? e.insertBefore(h, Y.nextSibling) : e.appendChild(h), A = e, et(), O(!0);
|
|
1598
|
+
} else if (Y && bn(t, m, this)) {
|
|
1599
|
+
var re = bt(e, 0, a, !0);
|
|
1600
|
+
if (re === h)
|
|
1601
|
+
return O(!1);
|
|
1602
|
+
if (n = re, o = T(n), Ft(w, e, h, r, n, o, t, !1) !== !1)
|
|
1603
|
+
return V(), e.insertBefore(h, re), A = e, et(), O(!0);
|
|
1460
1604
|
} else if (n.parentNode === e) {
|
|
1461
1605
|
o = T(n);
|
|
1462
|
-
var
|
|
1463
|
-
|
|
1464
|
-
var
|
|
1465
|
-
if (
|
|
1466
|
-
var
|
|
1606
|
+
var ut = 0, oe, Li = h.parentNode !== e, Oe = !gn(h.animated && h.toRect || r, n.animated && n.toRect || o, m), Pe = m ? "top" : "left", wt = Qe(n, "top", "top") || Qe(h, "top", "top"), Mi = wt ? wt.scrollTop : void 0;
|
|
1607
|
+
ft !== n && (oe = o[Pe], It = !1, Ut = !Oe && a.invertSwap || Li), ut = $n(t, n, o, m, Oe ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ut, ft === n);
|
|
1608
|
+
var Ct;
|
|
1609
|
+
if (ut !== 0) {
|
|
1610
|
+
var Ie = k(h);
|
|
1467
1611
|
do
|
|
1468
|
-
|
|
1469
|
-
while (
|
|
1612
|
+
Ie -= ut, Ct = A.children[Ie];
|
|
1613
|
+
while (Ct && (g(Ct, "display") === "none" || Ct === _));
|
|
1470
1614
|
}
|
|
1471
|
-
if (
|
|
1472
|
-
return
|
|
1473
|
-
|
|
1474
|
-
var
|
|
1475
|
-
|
|
1476
|
-
var
|
|
1477
|
-
if (
|
|
1478
|
-
return (
|
|
1615
|
+
if (ut === 0 || Ct === n)
|
|
1616
|
+
return O(!1);
|
|
1617
|
+
ft = n, Pt = ut;
|
|
1618
|
+
var Ne = n.nextElementSibling, At = !1;
|
|
1619
|
+
At = ut === 1;
|
|
1620
|
+
var Rt = Ft(w, e, h, r, n, o, t, At);
|
|
1621
|
+
if (Rt !== !1)
|
|
1622
|
+
return (Rt === 1 || Rt === -1) && (At = Rt === 1), Ae = !0, setTimeout(_n, 30), V(), At && !Ne ? e.appendChild(h) : n.parentNode.insertBefore(h, At ? Ne : n), wt && ln(wt, 0, Mi - wt.scrollTop), A = h.parentNode, oe !== void 0 && !Ut && (Wt = Math.abs(oe - T(n)[Pe])), et(), O(!0);
|
|
1479
1623
|
}
|
|
1480
1624
|
if (e.contains(h))
|
|
1481
|
-
return
|
|
1625
|
+
return O(!1);
|
|
1482
1626
|
}
|
|
1483
1627
|
return !1;
|
|
1484
1628
|
},
|
|
1485
1629
|
_ignoreWhileAnimating: null,
|
|
1486
1630
|
_offMoveEvents: function() {
|
|
1487
|
-
b(document, "mousemove", this._onTouchMove), b(document, "touchmove", this._onTouchMove), b(document, "pointermove", this._onTouchMove), b(document, "dragover",
|
|
1631
|
+
b(document, "mousemove", this._onTouchMove), b(document, "touchmove", this._onTouchMove), b(document, "pointermove", this._onTouchMove), b(document, "dragover", ot), b(document, "mousemove", ot), b(document, "touchmove", ot);
|
|
1488
1632
|
},
|
|
1489
1633
|
_offUpEvents: function() {
|
|
1490
1634
|
var t = this.el.ownerDocument;
|
|
@@ -1492,52 +1636,52 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1492
1636
|
},
|
|
1493
1637
|
_onDrop: function(t) {
|
|
1494
1638
|
var e = this.el, n = this.options;
|
|
1495
|
-
if (H =
|
|
1639
|
+
if (H = k(h), Z = k(h, n.draggable), L("drop", this, {
|
|
1496
1640
|
evt: t
|
|
1497
|
-
}), A = h && h.parentNode, H =
|
|
1641
|
+
}), A = h && h.parentNode, H = k(h), Z = k(h, n.draggable), y.eventCanceled) {
|
|
1498
1642
|
this._nulling();
|
|
1499
1643
|
return;
|
|
1500
1644
|
}
|
|
1501
|
-
|
|
1645
|
+
gt = !1, Ut = !1, It = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Se(this.cloneId), Se(this._dragStartId), this.nativeDraggable && (b(document, "drop", this), b(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Xt && g(document.body, "user-select", ""), g(h, "transform", ""), t && (xt && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), _ && _.parentNode && _.parentNode.removeChild(_), (w === A || x && x.lastPutMode !== "clone") && C && C.parentNode && C.parentNode.removeChild(C), h && (this.nativeDraggable && b(h, "dragend", this), be(h), h.style["will-change"] = "", xt && !gt && M(h, x ? x.options.ghostClass : this.options.ghostClass, !1), M(h, this.options.chosenClass, !1), I({
|
|
1502
1646
|
sortable: this,
|
|
1503
1647
|
name: "unchoose",
|
|
1504
1648
|
toEl: A,
|
|
1505
1649
|
newIndex: null,
|
|
1506
1650
|
newDraggableIndex: null,
|
|
1507
1651
|
originalEvent: t
|
|
1508
|
-
}), w !== A ? (H >= 0 && (
|
|
1652
|
+
}), w !== A ? (H >= 0 && (I({
|
|
1509
1653
|
rootEl: A,
|
|
1510
1654
|
name: "add",
|
|
1511
1655
|
toEl: A,
|
|
1512
1656
|
fromEl: w,
|
|
1513
1657
|
originalEvent: t
|
|
1514
|
-
}),
|
|
1658
|
+
}), I({
|
|
1515
1659
|
sortable: this,
|
|
1516
1660
|
name: "remove",
|
|
1517
1661
|
toEl: A,
|
|
1518
1662
|
originalEvent: t
|
|
1519
|
-
}),
|
|
1663
|
+
}), I({
|
|
1520
1664
|
rootEl: A,
|
|
1521
1665
|
name: "sort",
|
|
1522
1666
|
toEl: A,
|
|
1523
1667
|
fromEl: w,
|
|
1524
1668
|
originalEvent: t
|
|
1525
|
-
}),
|
|
1669
|
+
}), I({
|
|
1526
1670
|
sortable: this,
|
|
1527
1671
|
name: "sort",
|
|
1528
1672
|
toEl: A,
|
|
1529
1673
|
originalEvent: t
|
|
1530
|
-
})), x && x.save()) : H !==
|
|
1674
|
+
})), x && x.save()) : H !== mt && H >= 0 && (I({
|
|
1531
1675
|
sortable: this,
|
|
1532
1676
|
name: "update",
|
|
1533
1677
|
toEl: A,
|
|
1534
1678
|
originalEvent: t
|
|
1535
|
-
}),
|
|
1679
|
+
}), I({
|
|
1536
1680
|
sortable: this,
|
|
1537
1681
|
name: "sort",
|
|
1538
1682
|
toEl: A,
|
|
1539
1683
|
originalEvent: t
|
|
1540
|
-
})),
|
|
1684
|
+
})), y.active && ((H == null || H === -1) && (H = mt, Z = Ot), I({
|
|
1541
1685
|
sortable: this,
|
|
1542
1686
|
name: "end",
|
|
1543
1687
|
toEl: A,
|
|
@@ -1545,9 +1689,9 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1545
1689
|
}), this.save()))), this._nulling();
|
|
1546
1690
|
},
|
|
1547
1691
|
_nulling: function() {
|
|
1548
|
-
|
|
1692
|
+
L("nulling", this), w = h = A = _ = at = C = Yt = K = rt = F = xt = H = Z = mt = Ot = ft = Pt = x = kt = y.dragged = y.ghost = y.clone = y.active = null, ee.forEach(function(t) {
|
|
1549
1693
|
t.checked = !0;
|
|
1550
|
-
}),
|
|
1694
|
+
}), ee.length = ve = ye = 0;
|
|
1551
1695
|
},
|
|
1552
1696
|
handleEvent: function(t) {
|
|
1553
1697
|
switch (t.type) {
|
|
@@ -1557,7 +1701,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1557
1701
|
break;
|
|
1558
1702
|
case "dragenter":
|
|
1559
1703
|
case "dragover":
|
|
1560
|
-
h && (this._onDragOver(t),
|
|
1704
|
+
h && (this._onDragOver(t), yn(t));
|
|
1561
1705
|
break;
|
|
1562
1706
|
case "selectstart":
|
|
1563
1707
|
t.preventDefault();
|
|
@@ -1569,8 +1713,8 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1569
1713
|
* @returns {String[]}
|
|
1570
1714
|
*/
|
|
1571
1715
|
toArray: function() {
|
|
1572
|
-
for (var t = [], e, n = this.el.children, r = 0, o = n.length,
|
|
1573
|
-
e = n[r], z(e,
|
|
1716
|
+
for (var t = [], e, n = this.el.children, r = 0, o = n.length, s = this.options; r < o; r++)
|
|
1717
|
+
e = n[r], z(e, s.draggable, this.el, !1) && t.push(e.getAttribute(s.dataIdAttr) || Cn(e));
|
|
1574
1718
|
return t;
|
|
1575
1719
|
},
|
|
1576
1720
|
/**
|
|
@@ -1579,9 +1723,9 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1579
1723
|
*/
|
|
1580
1724
|
sort: function(t, e) {
|
|
1581
1725
|
var n = {}, r = this.el;
|
|
1582
|
-
this.toArray().forEach(function(o,
|
|
1583
|
-
var
|
|
1584
|
-
z(
|
|
1726
|
+
this.toArray().forEach(function(o, s) {
|
|
1727
|
+
var a = r.children[s];
|
|
1728
|
+
z(a, this.options.draggable, r, !1) && (n[o] = a);
|
|
1585
1729
|
}, this), e && this.captureAnimationState(), t.forEach(function(o) {
|
|
1586
1730
|
n[o] && (r.removeChild(n[o]), r.appendChild(n[o]));
|
|
1587
1731
|
}), e && this.animateAll();
|
|
@@ -1612,24 +1756,24 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1612
1756
|
var n = this.options;
|
|
1613
1757
|
if (e === void 0)
|
|
1614
1758
|
return n[t];
|
|
1615
|
-
var r =
|
|
1616
|
-
typeof r < "u" ? n[t] = r : n[t] = e, t === "group" &&
|
|
1759
|
+
var r = Bt.modifyOption(this, t, e);
|
|
1760
|
+
typeof r < "u" ? n[t] = r : n[t] = e, t === "group" && Di(n);
|
|
1617
1761
|
},
|
|
1618
1762
|
/**
|
|
1619
1763
|
* Destroy
|
|
1620
1764
|
*/
|
|
1621
1765
|
destroy: function() {
|
|
1622
|
-
|
|
1766
|
+
L("destroy", this);
|
|
1623
1767
|
var t = this.el;
|
|
1624
1768
|
t[U] = null, b(t, "mousedown", this._onTapStart), b(t, "touchstart", this._onTapStart), b(t, "pointerdown", this._onTapStart), this.nativeDraggable && (b(t, "dragover", this), b(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(e) {
|
|
1625
1769
|
e.removeAttribute("draggable");
|
|
1626
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
1770
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), te.splice(te.indexOf(this.el), 1), this.el = t = null;
|
|
1627
1771
|
},
|
|
1628
1772
|
_hideClone: function() {
|
|
1629
|
-
if (!
|
|
1630
|
-
if (
|
|
1773
|
+
if (!K) {
|
|
1774
|
+
if (L("hideClone", this), y.eventCanceled)
|
|
1631
1775
|
return;
|
|
1632
|
-
|
|
1776
|
+
g(C, "display", "none"), this.options.removeCloneOnHide && C.parentNode && C.parentNode.removeChild(C), K = !0;
|
|
1633
1777
|
}
|
|
1634
1778
|
},
|
|
1635
1779
|
_showClone: function(t) {
|
|
@@ -1637,124 +1781,124 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1637
1781
|
this._hideClone();
|
|
1638
1782
|
return;
|
|
1639
1783
|
}
|
|
1640
|
-
if (
|
|
1641
|
-
if (
|
|
1784
|
+
if (K) {
|
|
1785
|
+
if (L("showClone", this), y.eventCanceled)
|
|
1642
1786
|
return;
|
|
1643
|
-
h.parentNode == w && !this.options.group.revertClone ? w.insertBefore(C, h) :
|
|
1787
|
+
h.parentNode == w && !this.options.group.revertClone ? w.insertBefore(C, h) : at ? w.insertBefore(C, at) : w.appendChild(C), this.options.group.revertClone && this.animate(h, C), g(C, "display", ""), K = !1;
|
|
1644
1788
|
}
|
|
1645
1789
|
}
|
|
1646
1790
|
};
|
|
1647
|
-
function
|
|
1791
|
+
function yn(i) {
|
|
1648
1792
|
i.dataTransfer && (i.dataTransfer.dropEffect = "move"), i.cancelable && i.preventDefault();
|
|
1649
1793
|
}
|
|
1650
|
-
function
|
|
1651
|
-
var
|
|
1652
|
-
return window.CustomEvent && !
|
|
1794
|
+
function Ft(i, t, e, n, r, o, s, a) {
|
|
1795
|
+
var l, d = i[U], f = d.options.onMove, u;
|
|
1796
|
+
return window.CustomEvent && !tt && !ie ? l = new CustomEvent("move", {
|
|
1653
1797
|
bubbles: !0,
|
|
1654
1798
|
cancelable: !0
|
|
1655
|
-
}) : (
|
|
1799
|
+
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = i, l.dragged = e, l.draggedRect = n, l.related = r || t, l.relatedRect = o || T(t), l.willInsertAfter = a, l.originalEvent = s, i.dispatchEvent(l), f && (u = f.call(d, l, s)), u;
|
|
1656
1800
|
}
|
|
1657
|
-
function
|
|
1801
|
+
function be(i) {
|
|
1658
1802
|
i.draggable = !1;
|
|
1659
1803
|
}
|
|
1660
|
-
function
|
|
1661
|
-
|
|
1804
|
+
function _n() {
|
|
1805
|
+
Ae = !1;
|
|
1662
1806
|
}
|
|
1663
|
-
function
|
|
1664
|
-
var n = T(
|
|
1807
|
+
function bn(i, t, e) {
|
|
1808
|
+
var n = T(bt(e.el, 0, e.options, !0)), r = 10;
|
|
1665
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;
|
|
1666
1810
|
}
|
|
1667
|
-
function
|
|
1668
|
-
var n = T(
|
|
1811
|
+
function En(i, t, e) {
|
|
1812
|
+
var n = T(xe(e.el, e.options.draggable)), r = 10;
|
|
1669
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;
|
|
1670
1814
|
}
|
|
1671
|
-
function
|
|
1672
|
-
var
|
|
1673
|
-
if (!
|
|
1674
|
-
if (
|
|
1675
|
-
if (!
|
|
1676
|
-
|
|
1677
|
-
else if (
|
|
1678
|
-
return -
|
|
1679
|
-
} else if (
|
|
1680
|
-
return
|
|
1815
|
+
function $n(i, t, e, n, r, o, s, a) {
|
|
1816
|
+
var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width, f = n ? e.top : e.left, u = n ? e.bottom : e.right, c = !1;
|
|
1817
|
+
if (!s) {
|
|
1818
|
+
if (a && Wt < d * r) {
|
|
1819
|
+
if (!It && (Pt === 1 ? l > f + d * o / 2 : l < u - d * o / 2) && (It = !0), It)
|
|
1820
|
+
c = !0;
|
|
1821
|
+
else if (Pt === 1 ? l < f + Wt : l > u - Wt)
|
|
1822
|
+
return -Pt;
|
|
1823
|
+
} else if (l > f + d * (1 - r) / 2 && l < u - d * (1 - r) / 2)
|
|
1824
|
+
return wn(t);
|
|
1681
1825
|
}
|
|
1682
|
-
return
|
|
1826
|
+
return c = c || s, c && (l < f + d * o / 2 || l > u - d * o / 2) ? l > f + d / 2 ? 1 : -1 : 0;
|
|
1683
1827
|
}
|
|
1684
|
-
function
|
|
1685
|
-
return
|
|
1828
|
+
function wn(i) {
|
|
1829
|
+
return k(h) < k(i) ? 1 : -1;
|
|
1686
1830
|
}
|
|
1687
|
-
function
|
|
1831
|
+
function Cn(i) {
|
|
1688
1832
|
for (var t = i.tagName + i.className + i.src + i.href + i.textContent, e = t.length, n = 0; e--; )
|
|
1689
1833
|
n += t.charCodeAt(e);
|
|
1690
1834
|
return n.toString(36);
|
|
1691
1835
|
}
|
|
1692
|
-
function
|
|
1693
|
-
|
|
1836
|
+
function An(i) {
|
|
1837
|
+
ee.length = 0;
|
|
1694
1838
|
for (var t = i.getElementsByTagName("input"), e = t.length; e--; ) {
|
|
1695
1839
|
var n = t[e];
|
|
1696
|
-
n.checked &&
|
|
1840
|
+
n.checked && ee.push(n);
|
|
1697
1841
|
}
|
|
1698
1842
|
}
|
|
1699
|
-
function
|
|
1843
|
+
function Gt(i) {
|
|
1700
1844
|
return setTimeout(i, 0);
|
|
1701
1845
|
}
|
|
1702
|
-
function
|
|
1846
|
+
function Se(i) {
|
|
1703
1847
|
return clearTimeout(i);
|
|
1704
1848
|
}
|
|
1705
|
-
|
|
1706
|
-
(
|
|
1849
|
+
ne && $(document, "touchmove", function(i) {
|
|
1850
|
+
(y.active || gt) && i.cancelable && i.preventDefault();
|
|
1707
1851
|
});
|
|
1708
|
-
|
|
1709
|
-
on:
|
|
1852
|
+
y.utils = {
|
|
1853
|
+
on: $,
|
|
1710
1854
|
off: b,
|
|
1711
|
-
css:
|
|
1712
|
-
find:
|
|
1855
|
+
css: g,
|
|
1856
|
+
find: wi,
|
|
1713
1857
|
is: function(t, e) {
|
|
1714
1858
|
return !!z(t, e, t, !1);
|
|
1715
1859
|
},
|
|
1716
|
-
extend:
|
|
1717
|
-
throttle:
|
|
1860
|
+
extend: sn,
|
|
1861
|
+
throttle: an,
|
|
1718
1862
|
closest: z,
|
|
1719
1863
|
toggleClass: M,
|
|
1720
|
-
clone:
|
|
1721
|
-
index:
|
|
1722
|
-
nextTick:
|
|
1723
|
-
cancelNextTick:
|
|
1724
|
-
detectDirection:
|
|
1725
|
-
getChild:
|
|
1864
|
+
clone: Ci,
|
|
1865
|
+
index: k,
|
|
1866
|
+
nextTick: Gt,
|
|
1867
|
+
cancelNextTick: Se,
|
|
1868
|
+
detectDirection: Si,
|
|
1869
|
+
getChild: bt
|
|
1726
1870
|
};
|
|
1727
|
-
|
|
1871
|
+
y.get = function(i) {
|
|
1728
1872
|
return i[U];
|
|
1729
1873
|
};
|
|
1730
|
-
|
|
1874
|
+
y.mount = function() {
|
|
1731
1875
|
for (var i = arguments.length, t = new Array(i), e = 0; e < i; e++)
|
|
1732
1876
|
t[e] = arguments[e];
|
|
1733
1877
|
t[0].constructor === Array && (t = t[0]), t.forEach(function(n) {
|
|
1734
1878
|
if (!n.prototype || !n.prototype.constructor)
|
|
1735
1879
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
|
|
1736
|
-
n.utils && (
|
|
1880
|
+
n.utils && (y.utils = X(X({}, y.utils), n.utils)), Bt.mount(n);
|
|
1737
1881
|
});
|
|
1738
1882
|
};
|
|
1739
|
-
|
|
1740
|
-
return new
|
|
1883
|
+
y.create = function(i, t) {
|
|
1884
|
+
return new y(i, t);
|
|
1741
1885
|
};
|
|
1742
|
-
|
|
1743
|
-
var
|
|
1744
|
-
var e = t.originalEvent, n = t.putSortable, r = t.dragEl, o = t.activeSortable,
|
|
1886
|
+
y.version = nn;
|
|
1887
|
+
var Oi = function(t) {
|
|
1888
|
+
var e = t.originalEvent, n = t.putSortable, r = t.dragEl, o = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
|
|
1745
1889
|
if (e) {
|
|
1746
1890
|
var d = n || o;
|
|
1747
|
-
|
|
1748
|
-
var
|
|
1749
|
-
|
|
1891
|
+
a();
|
|
1892
|
+
var f = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, u = document.elementFromPoint(f.clientX, f.clientY);
|
|
1893
|
+
l(), d && !d.el.contains(u) && (s("spill"), this.onSpill({
|
|
1750
1894
|
dragEl: r,
|
|
1751
1895
|
putSortable: n
|
|
1752
1896
|
}));
|
|
1753
1897
|
}
|
|
1754
1898
|
};
|
|
1755
|
-
function
|
|
1899
|
+
function Pi() {
|
|
1756
1900
|
}
|
|
1757
|
-
|
|
1901
|
+
Pi.prototype = {
|
|
1758
1902
|
startIndex: null,
|
|
1759
1903
|
dragStart: function(t) {
|
|
1760
1904
|
var e = t.oldDraggableIndex;
|
|
@@ -1763,27 +1907,27 @@ mn.prototype = {
|
|
|
1763
1907
|
onSpill: function(t) {
|
|
1764
1908
|
var e = t.dragEl, n = t.putSortable;
|
|
1765
1909
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
1766
|
-
var r =
|
|
1910
|
+
var r = bt(this.sortable.el, this.startIndex, this.options);
|
|
1767
1911
|
r ? this.sortable.el.insertBefore(e, r) : this.sortable.el.appendChild(e), this.sortable.animateAll(), n && n.animateAll();
|
|
1768
1912
|
},
|
|
1769
|
-
drop:
|
|
1913
|
+
drop: Oi
|
|
1770
1914
|
};
|
|
1771
|
-
J(
|
|
1915
|
+
J(Pi, {
|
|
1772
1916
|
pluginName: "revertOnSpill"
|
|
1773
1917
|
});
|
|
1774
|
-
function
|
|
1918
|
+
function Ii() {
|
|
1775
1919
|
}
|
|
1776
|
-
|
|
1920
|
+
Ii.prototype = {
|
|
1777
1921
|
onSpill: function(t) {
|
|
1778
1922
|
var e = t.dragEl, n = t.putSortable, r = n || this.sortable;
|
|
1779
1923
|
r.captureAnimationState(), e.parentNode && e.parentNode.removeChild(e), r.animateAll();
|
|
1780
1924
|
},
|
|
1781
|
-
drop:
|
|
1925
|
+
drop: Oi
|
|
1782
1926
|
};
|
|
1783
|
-
J(
|
|
1927
|
+
J(Ii, {
|
|
1784
1928
|
pluginName: "removeOnSpill"
|
|
1785
1929
|
});
|
|
1786
|
-
const
|
|
1930
|
+
const Ni = `
|
|
1787
1931
|
:host {
|
|
1788
1932
|
display: block;
|
|
1789
1933
|
}
|
|
@@ -1791,10 +1935,13 @@ const yn = `
|
|
|
1791
1935
|
display: flex;
|
|
1792
1936
|
justify-content: space-between;
|
|
1793
1937
|
}
|
|
1794
|
-
.
|
|
1938
|
+
.drag-handle {
|
|
1795
1939
|
cursor: ns-resize;
|
|
1796
1940
|
}
|
|
1797
|
-
|
|
1941
|
+
ul[data-group] {
|
|
1942
|
+
padding-inline-start: 40px;
|
|
1943
|
+
}
|
|
1944
|
+
`, Sn = `
|
|
1798
1945
|
ul {
|
|
1799
1946
|
padding: 0;
|
|
1800
1947
|
}
|
|
@@ -1820,130 +1967,201 @@ li label > input[type=checkbox]:after {
|
|
|
1820
1967
|
li label > input[type=checkbox]:checked:after {
|
|
1821
1968
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Eeye%3C/title%3E%3Cpath fill='%23004170' d='M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z' /%3E%3C/svg%3E");
|
|
1822
1969
|
}
|
|
1823
|
-
.
|
|
1970
|
+
.drag-handle span {
|
|
1824
1971
|
display: none;
|
|
1825
1972
|
}
|
|
1826
|
-
.
|
|
1973
|
+
.drag-handle {
|
|
1827
1974
|
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");
|
|
1828
1975
|
width: 24px;
|
|
1829
1976
|
height: 24px;
|
|
1830
1977
|
}
|
|
1978
|
+
li.sortable-chosen {
|
|
1979
|
+
background: #eeea;
|
|
1980
|
+
}
|
|
1981
|
+
li.sortable-drag {
|
|
1982
|
+
opacity: 0;
|
|
1983
|
+
}
|
|
1984
|
+
li.sortable-ghost {
|
|
1985
|
+
}
|
|
1986
|
+
details.group-details {
|
|
1987
|
+
position: relative;
|
|
1988
|
+
}
|
|
1989
|
+
details.group-details > summary {
|
|
1990
|
+
list-style: none;
|
|
1991
|
+
position: absolute;
|
|
1992
|
+
right: 20px;
|
|
1993
|
+
top: -64px;
|
|
1994
|
+
font-size: 0;
|
|
1995
|
+
}
|
|
1996
|
+
details.group-details > summary:after {
|
|
1997
|
+
display: block;
|
|
1998
|
+
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Eplus%3C/title%3E%3Cpath d='M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z' /%3E%3C/svg%3E");
|
|
1999
|
+
width: 24px;
|
|
2000
|
+
height: 24px;
|
|
2001
|
+
cursor: pointer;
|
|
2002
|
+
}
|
|
2003
|
+
details[open].group-details > summary:after {
|
|
2004
|
+
display: block;
|
|
2005
|
+
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Eminus%3C/title%3E%3Cpath d='M19,13H5V11H19V13Z' /%3E%3C/svg%3E");
|
|
2006
|
+
width: 24px;
|
|
2007
|
+
height: 24px;
|
|
2008
|
+
cursor: pointer;
|
|
2009
|
+
}
|
|
1831
2010
|
`;
|
|
1832
|
-
var
|
|
1833
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
1834
|
-
(
|
|
1835
|
-
return n && r &&
|
|
2011
|
+
var Dn = Object.defineProperty, Tn = Object.getOwnPropertyDescriptor, S = (i, t, e, n) => {
|
|
2012
|
+
for (var r = n > 1 ? void 0 : n ? Tn(t, e) : t, o = i.length - 1, s; o >= 0; o--)
|
|
2013
|
+
(s = i[o]) && (r = (n ? s(t, e, r) : s(r)) || r);
|
|
2014
|
+
return n && r && Dn(t, e, r), r;
|
|
1836
2015
|
};
|
|
1837
|
-
let
|
|
2016
|
+
let B = class extends vt {
|
|
1838
2017
|
constructor() {
|
|
1839
|
-
super(...arguments)
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
}
|
|
1854
|
-
_updateControl(
|
|
1855
|
-
this.layerCollection =
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
_emitLayerconfig(t) {
|
|
1864
|
-
const e = {
|
|
2018
|
+
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
|
+
let n = [];
|
|
2020
|
+
const r = (o, s, a) => {
|
|
2021
|
+
n = [...n, ...o.filter((d) => d.get(s) === a)];
|
|
2022
|
+
const l = o.filter((d) => d.getLayers);
|
|
2023
|
+
return l.length > 0 && l.forEach(
|
|
2024
|
+
(d) => (
|
|
2025
|
+
// @ts-ignore
|
|
2026
|
+
r(d.getLayers().getArray(), s, a)
|
|
2027
|
+
)
|
|
2028
|
+
), n;
|
|
2029
|
+
};
|
|
2030
|
+
return r(i, t, e), n;
|
|
2031
|
+
}, this.findLayerById = (i, t) => this.filterLayers(i, "id", t)[0];
|
|
2032
|
+
}
|
|
2033
|
+
_updateControl(i) {
|
|
2034
|
+
this.layerCollection = i, this.optionalLayerArray = this.filterLayers(
|
|
2035
|
+
i.getArray(),
|
|
2036
|
+
"layerControlOptional",
|
|
2037
|
+
!0
|
|
2038
|
+
), this.requestUpdate();
|
|
2039
|
+
}
|
|
2040
|
+
_emitLayerconfig(i) {
|
|
2041
|
+
const t = {
|
|
1865
2042
|
detail: {
|
|
1866
|
-
layer:
|
|
2043
|
+
layer: i
|
|
1867
2044
|
},
|
|
1868
2045
|
bubbles: !0,
|
|
1869
2046
|
composed: !0
|
|
1870
2047
|
};
|
|
1871
|
-
this.dispatchEvent(new CustomEvent("layerconfig",
|
|
2048
|
+
this.dispatchEvent(new CustomEvent("layerconfig", t));
|
|
1872
2049
|
}
|
|
1873
|
-
changeOpacity(
|
|
1874
|
-
|
|
2050
|
+
changeOpacity(i, t) {
|
|
2051
|
+
i.setOpacity(t);
|
|
1875
2052
|
}
|
|
1876
|
-
changeStyleProperty(t, e
|
|
1877
|
-
|
|
2053
|
+
changeStyleProperty(i, t, e) {
|
|
2054
|
+
i.updateStyleVariables({
|
|
1878
2055
|
// @ts-ignore
|
|
1879
|
-
...
|
|
1880
|
-
[
|
|
2056
|
+
...i.style_,
|
|
2057
|
+
[t]: e
|
|
1881
2058
|
});
|
|
1882
2059
|
}
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
2060
|
+
preFilterLayers(i) {
|
|
2061
|
+
return [...i].filter(
|
|
2062
|
+
(t) => t.get("layerControlHide") !== !0 && t.get("layerControlOptional") !== !0
|
|
2063
|
+
);
|
|
2064
|
+
}
|
|
2065
|
+
toggleLayerVisibility(i, t) {
|
|
2066
|
+
if (i.setVisible(!i.getVisible()), i.get("layerControlExclusive")) {
|
|
2067
|
+
let e = [];
|
|
2068
|
+
t ? e = this.findLayerById(
|
|
2069
|
+
this.layerCollection.getArray(),
|
|
2070
|
+
t
|
|
2071
|
+
).getLayers().getArray().filter(
|
|
2072
|
+
(r) => r.get(this.layerIdentifier) !== i.get(this.layerIdentifier) && r.get("layerControlExclusive")
|
|
2073
|
+
) : e = this.layerCollection.getArray().filter(
|
|
2074
|
+
(n) => n.get(this.layerIdentifier) !== i.get(this.layerIdentifier) && n.get("layerControlExclusive")
|
|
2075
|
+
), e.forEach((n) => {
|
|
2076
|
+
n.setVisible(!1);
|
|
2077
|
+
});
|
|
2078
|
+
}
|
|
2079
|
+
this.requestUpdate();
|
|
1887
2080
|
}
|
|
1888
2081
|
render() {
|
|
1889
2082
|
var r;
|
|
1890
|
-
const
|
|
1891
|
-
|
|
1892
|
-
this._currentlySorting || this._updateControl(
|
|
1893
|
-
})
|
|
2083
|
+
const i = document.querySelector(this.for), e = (i.map || i).getLayers();
|
|
2084
|
+
this._updateControl(e), e.on("change:length", () => {
|
|
2085
|
+
this._currentlySorting || this._updateControl(e);
|
|
2086
|
+
});
|
|
2087
|
+
const n = (o, s) => N`
|
|
2088
|
+
<ul data-group="${s ?? E}">
|
|
2089
|
+
${we(
|
|
2090
|
+
o,
|
|
2091
|
+
(a) => a.get(this.layerIdentifier),
|
|
2092
|
+
(a) => N`
|
|
2093
|
+
<li
|
|
2094
|
+
data-layer="${//@ts-ignore
|
|
2095
|
+
a.get(this.layerIdentifier)}"
|
|
2096
|
+
data-disabled="${a.get("layerControlDisable") || E}"
|
|
2097
|
+
>
|
|
2098
|
+
<div class="layer">
|
|
2099
|
+
<label>
|
|
2100
|
+
<input
|
|
2101
|
+
type="checkbox"
|
|
2102
|
+
.checked="${Ce(a.getVisible())}"
|
|
2103
|
+
@click=${() => {
|
|
2104
|
+
this.toggleLayerVisibility(a, s);
|
|
2105
|
+
}}
|
|
2106
|
+
/>
|
|
2107
|
+
<span class="title"
|
|
2108
|
+
>${a.get(this.layerTitle) || `${// @ts-ignore
|
|
2109
|
+
a.get(this.layerIdentifier)}`}</span
|
|
2110
|
+
>
|
|
2111
|
+
</label>
|
|
2112
|
+
${this.sortBy === "layerOrder" && !a.get("layerControlDisable") ? N`<div class="drag-handle">
|
|
2113
|
+
<span>=</span>
|
|
2114
|
+
</div>` : E}
|
|
2115
|
+
</div>
|
|
2116
|
+
${this.layerConfig ? N`
|
|
2117
|
+
<eox-layerconfig
|
|
2118
|
+
.layerConfig="${this.layerConfig}"
|
|
2119
|
+
.layerControl="${this}"
|
|
2120
|
+
.layer=${a}
|
|
2121
|
+
.external=${this.externalLayerConfig}
|
|
2122
|
+
></eox-layerconfig>
|
|
2123
|
+
` : E}
|
|
2124
|
+
${// @ts-ignore
|
|
2125
|
+
this.externalLayerConfig && a.style_ ? N`
|
|
2126
|
+
<button
|
|
2127
|
+
@click=${() => this._emitLayerconfig(a)}
|
|
2128
|
+
>
|
|
2129
|
+
configure
|
|
2130
|
+
</button>
|
|
2131
|
+
` : E}
|
|
2132
|
+
${// @ts-ignore
|
|
2133
|
+
a.getLayers ? N`
|
|
2134
|
+
<details open class="group-details">
|
|
2135
|
+
<summary>Layers</summary>
|
|
2136
|
+
${n(
|
|
2137
|
+
this.preFilterLayers(
|
|
2138
|
+
// @ts-ignore
|
|
2139
|
+
[...a.getLayers().getArray()].reverse()
|
|
2140
|
+
),
|
|
2141
|
+
a.get("id")
|
|
2142
|
+
)}
|
|
2143
|
+
</details>
|
|
2144
|
+
` : E}
|
|
2145
|
+
</li>
|
|
2146
|
+
`
|
|
2147
|
+
)}
|
|
2148
|
+
</ul>
|
|
2149
|
+
`;
|
|
2150
|
+
return N`
|
|
1894
2151
|
<style>
|
|
1895
|
-
${
|
|
1896
|
-
${!this.unstyled &&
|
|
2152
|
+
${Ni}
|
|
2153
|
+
${!this.unstyled && Sn}
|
|
1897
2154
|
</style>
|
|
1898
2155
|
<div>
|
|
1899
2156
|
<slot></slot>
|
|
1900
|
-
<
|
|
1901
|
-
${
|
|
1902
|
-
this.
|
|
1903
|
-
(o) => L`
|
|
1904
|
-
<li
|
|
1905
|
-
layerid="${//@ts-ignore
|
|
1906
|
-
o.get(this.layerIdentifier)}"
|
|
1907
|
-
>
|
|
1908
|
-
<div class="layer">
|
|
1909
|
-
<label>
|
|
1910
|
-
<input
|
|
1911
|
-
type="checkbox"
|
|
1912
|
-
checked="${o.getVisible() || $}"
|
|
1913
|
-
@click=${() => {
|
|
1914
|
-
o.setVisible(!o.getVisible()), this.requestUpdate();
|
|
1915
|
-
}}
|
|
1916
|
-
/>
|
|
1917
|
-
<span class="title"
|
|
1918
|
-
>${o.get(this.layerTitle) || `layer ${// @ts-ignore
|
|
1919
|
-
o.get(this.layerIdentifier)}`}</span
|
|
1920
|
-
>
|
|
1921
|
-
</label>
|
|
1922
|
-
${this.sortBy === "layerOrder" ? L`<div class="dragHandle">
|
|
1923
|
-
<span>=</span>
|
|
1924
|
-
</div>` : $}
|
|
1925
|
-
</div>
|
|
1926
|
-
${this.layerConfig && !this.hideConfigs ? L`
|
|
1927
|
-
<eox-layerconfig
|
|
1928
|
-
.layerConfig="${this.layerConfig}"
|
|
1929
|
-
.layerControl="${this}"
|
|
1930
|
-
.layer=${o}
|
|
1931
|
-
.external=${this.externalLayerConfig}
|
|
1932
|
-
></eox-layerconfig>
|
|
1933
|
-
` : $}
|
|
1934
|
-
${// @ts-ignore
|
|
1935
|
-
this.externalLayerConfig && o.style_ ? L`
|
|
1936
|
-
<button @click=${() => this._emitLayerconfig(o)}>
|
|
1937
|
-
configure
|
|
1938
|
-
</button>
|
|
1939
|
-
` : $}
|
|
1940
|
-
</li>
|
|
1941
|
-
`
|
|
2157
|
+
<div>
|
|
2158
|
+
${n(
|
|
2159
|
+
this.preFilterLayers(e.getArray())
|
|
1942
2160
|
)}
|
|
1943
|
-
</
|
|
1944
|
-
${
|
|
2161
|
+
</div>
|
|
2162
|
+
${_i(
|
|
1945
2163
|
((r = this.optionalLayerArray) == null ? void 0 : r.length) > 0,
|
|
1946
|
-
() =>
|
|
2164
|
+
() => N`
|
|
1947
2165
|
<label for="optional">Optional layers</label>
|
|
1948
2166
|
|
|
1949
2167
|
<select name="optional">
|
|
@@ -1951,7 +2169,7 @@ let k = class extends pt {
|
|
|
1951
2169
|
-- select an optional layer to add --
|
|
1952
2170
|
</option>
|
|
1953
2171
|
${this.optionalLayerArray.map(
|
|
1954
|
-
(o) =>
|
|
2172
|
+
(o) => N`
|
|
1955
2173
|
<option
|
|
1956
2174
|
value="${// @ts-ignore
|
|
1957
2175
|
o.get(this.layerIdentifier)}"
|
|
@@ -1966,13 +2184,21 @@ let k = class extends pt {
|
|
|
1966
2184
|
@click="${() => {
|
|
1967
2185
|
const o = this.optionalLayerArray.find(
|
|
1968
2186
|
// @ts-ignore
|
|
1969
|
-
(
|
|
2187
|
+
(s) => s.get(this.layerIdentifier) === // @ts-ignore
|
|
1970
2188
|
this.shadowRoot.querySelector("select[name=optional]").value
|
|
1971
2189
|
);
|
|
1972
|
-
|
|
1973
|
-
this.
|
|
1974
|
-
|
|
1975
|
-
|
|
2190
|
+
if (o.get("group")) {
|
|
2191
|
+
const s = this.findLayerById(
|
|
2192
|
+
this.layerCollection.getArray(),
|
|
2193
|
+
o.get("group")
|
|
2194
|
+
);
|
|
2195
|
+
s.getLayers().remove(o), s.getLayers().insertAt(s.getLayers().getLength(), o);
|
|
2196
|
+
} else
|
|
2197
|
+
this.layerCollection.remove(o), this.layerCollection.insertAt(
|
|
2198
|
+
this.layerCollection.getLength(),
|
|
2199
|
+
o
|
|
2200
|
+
);
|
|
2201
|
+
o.set("layerControlOptional", !1), o.setVisible(!0);
|
|
1976
2202
|
}}"
|
|
1977
2203
|
>
|
|
1978
2204
|
add
|
|
@@ -1983,176 +2209,195 @@ let k = class extends pt {
|
|
|
1983
2209
|
`;
|
|
1984
2210
|
}
|
|
1985
2211
|
updated() {
|
|
1986
|
-
this.sortBy == "layerOrder" &&
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2212
|
+
this.sortBy == "layerOrder" && this.renderRoot.querySelectorAll("ul").forEach((t) => {
|
|
2213
|
+
const e = t.dataset.group;
|
|
2214
|
+
y.create(t, {
|
|
2215
|
+
handle: ".drag-handle",
|
|
2216
|
+
dataIdAttr: "data-layer",
|
|
2217
|
+
filter: "data-disabled",
|
|
2218
|
+
swapThreshold: 0.5,
|
|
2219
|
+
animation: 150,
|
|
2220
|
+
easing: "cubic-bezier(1, 0, 0, 1)",
|
|
2221
|
+
store: {
|
|
2222
|
+
get: () => e ? [
|
|
2223
|
+
...this.findLayerById(
|
|
2224
|
+
this.layerCollection.getArray(),
|
|
2225
|
+
e
|
|
2226
|
+
).getLayers().getArray().map((o) => o.get(this.layerIdentifier))
|
|
2227
|
+
].reverse() : [
|
|
2228
|
+
...this.layerCollection.getArray().map((n) => n.get(this.layerIdentifier))
|
|
2229
|
+
].reverse(),
|
|
2230
|
+
set: (n) => {
|
|
2231
|
+
var r = n.toArray().reverse();
|
|
2232
|
+
r.forEach((o, s) => {
|
|
2233
|
+
if (e) {
|
|
2234
|
+
const l = this.findLayerById(
|
|
2235
|
+
this.layerCollection.getArray(),
|
|
2236
|
+
e
|
|
2237
|
+
).getLayers(), d = this.findLayerById(
|
|
2238
|
+
l.getArray(),
|
|
2239
|
+
o
|
|
2240
|
+
);
|
|
2241
|
+
l.remove(d), l.insertAt(s, d);
|
|
2242
|
+
} else {
|
|
2243
|
+
const a = this.findLayerById(
|
|
2244
|
+
this.layerCollection.getArray(),
|
|
2245
|
+
o
|
|
2246
|
+
);
|
|
2247
|
+
this.layerCollection.remove(a), this.layerCollection.insertAt(s, a);
|
|
2248
|
+
}
|
|
2249
|
+
});
|
|
2250
|
+
}
|
|
2251
|
+
},
|
|
2252
|
+
onMove: (n) => !n.related.dataset.disabled
|
|
2253
|
+
});
|
|
2005
2254
|
});
|
|
2006
2255
|
}
|
|
2007
2256
|
};
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
],
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
],
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
],
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
],
|
|
2020
|
-
|
|
2257
|
+
S([
|
|
2258
|
+
$t()
|
|
2259
|
+
], B.prototype, "olMap", 2);
|
|
2260
|
+
S([
|
|
2261
|
+
$t()
|
|
2262
|
+
], B.prototype, "layerCollection", 2);
|
|
2263
|
+
S([
|
|
2264
|
+
$t()
|
|
2265
|
+
], B.prototype, "layerArray", 2);
|
|
2266
|
+
S([
|
|
2267
|
+
$t()
|
|
2268
|
+
], B.prototype, "optionalLayerArray", 2);
|
|
2269
|
+
S([
|
|
2021
2270
|
R()
|
|
2022
|
-
],
|
|
2023
|
-
|
|
2271
|
+
], B.prototype, "for", 2);
|
|
2272
|
+
S([
|
|
2024
2273
|
R()
|
|
2025
|
-
],
|
|
2026
|
-
|
|
2274
|
+
], B.prototype, "layerIdentifier", 2);
|
|
2275
|
+
S([
|
|
2027
2276
|
R()
|
|
2028
|
-
],
|
|
2029
|
-
|
|
2277
|
+
], B.prototype, "layerTitle", 2);
|
|
2278
|
+
S([
|
|
2030
2279
|
R()
|
|
2031
|
-
],
|
|
2032
|
-
|
|
2280
|
+
], B.prototype, "sortBy", 2);
|
|
2281
|
+
S([
|
|
2033
2282
|
R({ type: Array })
|
|
2034
|
-
],
|
|
2035
|
-
|
|
2283
|
+
], B.prototype, "layerConfig", 2);
|
|
2284
|
+
S([
|
|
2036
2285
|
R({ type: Boolean })
|
|
2037
|
-
],
|
|
2038
|
-
|
|
2286
|
+
], B.prototype, "externalLayerConfig", 2);
|
|
2287
|
+
S([
|
|
2039
2288
|
R({ type: Boolean })
|
|
2040
|
-
],
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
],
|
|
2044
|
-
let
|
|
2289
|
+
], B.prototype, "unstyled", 2);
|
|
2290
|
+
B = S([
|
|
2291
|
+
gi("eox-layercontrol")
|
|
2292
|
+
], B);
|
|
2293
|
+
let q = class extends vt {
|
|
2045
2294
|
constructor() {
|
|
2046
|
-
super(...arguments);
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
S(this, "layer");
|
|
2051
|
-
S(this, "external");
|
|
2052
|
-
S(this, "_layerControlElement");
|
|
2053
|
-
S(this, "_currentLayer");
|
|
2054
|
-
S(this, "_configList", {});
|
|
2055
|
-
}
|
|
2056
|
-
_handleInput(t, e) {
|
|
2057
|
-
e === "opacity" ? this._layerControlElement.changeOpacity(
|
|
2295
|
+
super(...arguments), this._configList = {};
|
|
2296
|
+
}
|
|
2297
|
+
_handleInput(i, t) {
|
|
2298
|
+
t === "opacity" ? this._layerControlElement.changeOpacity(
|
|
2058
2299
|
this._currentLayer,
|
|
2059
|
-
parseFloat(
|
|
2300
|
+
parseFloat(i.target.value)
|
|
2060
2301
|
) : this._layerControlElement.changeStyleProperty(
|
|
2061
2302
|
this._currentLayer,
|
|
2062
|
-
|
|
2063
|
-
parseFloat(
|
|
2303
|
+
t,
|
|
2304
|
+
parseFloat(i.target.value)
|
|
2064
2305
|
);
|
|
2065
2306
|
}
|
|
2066
|
-
_parseConfigs(
|
|
2067
|
-
if (!
|
|
2307
|
+
_parseConfigs(i) {
|
|
2308
|
+
if (!i)
|
|
2068
2309
|
return;
|
|
2069
|
-
const
|
|
2070
|
-
|
|
2310
|
+
const t = i.style_;
|
|
2311
|
+
t && t.color && t.color[0] === "array" && (this._configList = t.variables);
|
|
2071
2312
|
}
|
|
2072
2313
|
connectedCallback() {
|
|
2073
|
-
super.connectedCallback(), !this.layerConfig && !this.layerControl ? (this._layerControlElement = document.querySelector(this.for), this.layerConfig = this._layerControlElement.layerConfig, this._layerControlElement
|
|
2074
|
-
this._currentLayer =
|
|
2075
|
-
})) : (this._layerControlElement = this.layerControl, this._currentLayer = this.layer, this._parseConfigs(this._currentLayer));
|
|
2314
|
+
super.connectedCallback(), !this.layerConfig && !this.layerControl ? (this._layerControlElement = document.querySelector(this.for), this._layerControlElement && (this.layerConfig = this._layerControlElement.layerConfig, this._layerControlElement.addEventListener("layerconfig", (i) => {
|
|
2315
|
+
this._currentLayer = i.detail.layer, this._parseConfigs(this._currentLayer), this.requestUpdate();
|
|
2316
|
+
}))) : (this._layerControlElement = this.layerControl, this._currentLayer = this.layer, this._parseConfigs(this._currentLayer));
|
|
2076
2317
|
}
|
|
2077
2318
|
render() {
|
|
2078
|
-
return
|
|
2319
|
+
return N`
|
|
2079
2320
|
<style>
|
|
2080
|
-
${
|
|
2321
|
+
${Ni}
|
|
2081
2322
|
</style>
|
|
2082
|
-
${
|
|
2323
|
+
${_i(
|
|
2083
2324
|
this._currentLayer,
|
|
2084
|
-
() =>
|
|
2325
|
+
() => N`
|
|
2085
2326
|
<div>
|
|
2086
2327
|
<slot></slot>
|
|
2087
|
-
${this.for ?
|
|
2088
|
-
${
|
|
2328
|
+
${this.for ? N`layer: ${this._currentLayer.get("name")}` : E}
|
|
2329
|
+
${we(
|
|
2089
2330
|
this.layerConfig.filter(
|
|
2090
|
-
(
|
|
2331
|
+
(i) => this.for ? i !== "opacity" : !0
|
|
2091
2332
|
),
|
|
2092
|
-
(
|
|
2093
|
-
|
|
2333
|
+
(i) => i,
|
|
2334
|
+
(i) => N`
|
|
2335
|
+
<div>${i}</div>
|
|
2094
2336
|
<input
|
|
2095
2337
|
type="range"
|
|
2096
2338
|
min="0"
|
|
2097
2339
|
max="1"
|
|
2098
2340
|
step="0.01"
|
|
2099
|
-
value="${this._currentLayer.getOpacity()}"
|
|
2100
|
-
@input=${(
|
|
2341
|
+
value="${Ce(this._currentLayer.getOpacity())}"
|
|
2342
|
+
@input=${(t) => this._handleInput(t, i)}
|
|
2101
2343
|
/>
|
|
2102
2344
|
`
|
|
2103
2345
|
)}
|
|
2104
|
-
${Object.keys(this._configList).length > 0 && !this.external ?
|
|
2105
|
-
<details open="${this.for ? !0 :
|
|
2346
|
+
${Object.keys(this._configList).length > 0 && !this.external ? N`
|
|
2347
|
+
<details open="${this.for ? !0 : E}">
|
|
2106
2348
|
<summary>Layer config</summary>
|
|
2107
2349
|
<ul>
|
|
2108
|
-
${
|
|
2350
|
+
${we(
|
|
2109
2351
|
Object.keys(this._configList),
|
|
2110
|
-
(
|
|
2111
|
-
|
|
2352
|
+
(i) => i,
|
|
2353
|
+
(i) => N` <li>
|
|
2354
|
+
<div>${i}</div>
|
|
2112
2355
|
<input
|
|
2113
2356
|
type="range"
|
|
2114
|
-
min="${["red", "green", "blue"].includes(
|
|
2115
|
-
max="${["red", "green", "blue"].includes(
|
|
2116
|
-
value="${
|
|
2117
|
-
|
|
2118
|
-
|
|
2357
|
+
min="${["red", "green", "blue"].includes(i) ? 1 : 2e3}"
|
|
2358
|
+
max="${["red", "green", "blue"].includes(i) ? 4 : 5e3}"
|
|
2359
|
+
value="${Ce(
|
|
2360
|
+
// @ts-ignore
|
|
2361
|
+
this._configList[i]
|
|
2362
|
+
)}"
|
|
2363
|
+
@input=${(t) => this._handleInput(t, i)}
|
|
2119
2364
|
/>
|
|
2120
2365
|
</li>`
|
|
2121
2366
|
)}
|
|
2122
2367
|
</ul>
|
|
2123
2368
|
</details>
|
|
2124
|
-
` :
|
|
2369
|
+
` : E}
|
|
2125
2370
|
</div>
|
|
2126
2371
|
`
|
|
2127
2372
|
)}
|
|
2128
2373
|
`;
|
|
2129
2374
|
}
|
|
2130
2375
|
};
|
|
2131
|
-
|
|
2376
|
+
S([
|
|
2132
2377
|
R()
|
|
2133
|
-
],
|
|
2134
|
-
|
|
2378
|
+
], q.prototype, "for", 2);
|
|
2379
|
+
S([
|
|
2135
2380
|
R({ type: Array })
|
|
2136
|
-
],
|
|
2137
|
-
|
|
2381
|
+
], q.prototype, "layerConfig", 2);
|
|
2382
|
+
S([
|
|
2138
2383
|
R({ type: Object, attribute: !1 })
|
|
2139
|
-
],
|
|
2140
|
-
|
|
2384
|
+
], q.prototype, "layerControl", 2);
|
|
2385
|
+
S([
|
|
2141
2386
|
R({ type: Object, attribute: !1 })
|
|
2142
|
-
],
|
|
2143
|
-
|
|
2387
|
+
], q.prototype, "layer", 2);
|
|
2388
|
+
S([
|
|
2144
2389
|
R({ type: Boolean })
|
|
2145
|
-
],
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
],
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
],
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
],
|
|
2390
|
+
], q.prototype, "external", 2);
|
|
2391
|
+
S([
|
|
2392
|
+
$t()
|
|
2393
|
+
], q.prototype, "_currentLayer", 2);
|
|
2394
|
+
S([
|
|
2395
|
+
$t()
|
|
2396
|
+
], q.prototype, "_configList", 2);
|
|
2397
|
+
q = S([
|
|
2398
|
+
gi("eox-layerconfig")
|
|
2399
|
+
], q);
|
|
2155
2400
|
export {
|
|
2156
|
-
|
|
2157
|
-
|
|
2401
|
+
q as EOxLayerConfig,
|
|
2402
|
+
B as EOxLayerControl
|
|
2158
2403
|
};
|