@eox/layercontrol 0.7.1 → 0.9.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 +673 -647
- package/dist/eox-layercontrol.umd.cjs +58 -46
- package/package.json +2 -2
- package/test/general.cy.js +18 -0
package/dist/eox-layercontrol.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
if (!t.has(
|
|
1
|
+
var so = Object.defineProperty;
|
|
2
|
+
var ao = (o, t, e) => t in o ? so(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
|
+
var R = (o, t, e) => (ao(o, typeof t != "symbol" ? t + "" : t, e), e), lo = (o, t, e) => {
|
|
4
|
+
if (!t.has(o))
|
|
5
5
|
throw TypeError("Cannot " + e);
|
|
6
6
|
};
|
|
7
|
-
var
|
|
8
|
-
if (t.has(
|
|
7
|
+
var H = (o, t, e) => (lo(o, t, "read from private field"), e ? e.call(o) : t.get(o)), M = (o, t, e) => {
|
|
8
|
+
if (t.has(o))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
|
-
t instanceof WeakSet ? t.add(
|
|
10
|
+
t instanceof WeakSet ? t.add(o) : t.set(o, e);
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
13
|
* @license
|
|
@@ -15,7 +15,7 @@ var O = (n, t, e) => (dn(n, t, "read from private field"), e ? e.call(n) : t.get
|
|
|
15
15
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
16
|
*/
|
|
17
17
|
const te = window, ti = te.ShadowRoot && (te.ShadyCSS === void 0 || te.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Di = Symbol(), li = /* @__PURE__ */ new WeakMap();
|
|
18
|
-
let
|
|
18
|
+
let uo = class {
|
|
19
19
|
constructor(t, e, i) {
|
|
20
20
|
if (this._$cssResult$ = !0, i !== Di)
|
|
21
21
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -34,52 +34,52 @@ let un = class {
|
|
|
34
34
|
return this.cssText;
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
const
|
|
38
|
-
ti ?
|
|
39
|
-
const i = document.createElement("style"),
|
|
40
|
-
|
|
37
|
+
const ho = (o) => new uo(typeof o == "string" ? o : o + "", void 0, Di), co = (o, t) => {
|
|
38
|
+
ti ? o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
|
|
39
|
+
const i = document.createElement("style"), n = te.litNonce;
|
|
40
|
+
n !== void 0 && i.setAttribute("nonce", n), i.textContent = e.cssText, o.appendChild(i);
|
|
41
41
|
});
|
|
42
|
-
}, di = ti ? (
|
|
42
|
+
}, di = ti ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
43
43
|
let e = "";
|
|
44
44
|
for (const i of t.cssRules)
|
|
45
45
|
e += i.cssText;
|
|
46
|
-
return
|
|
47
|
-
})(
|
|
46
|
+
return ho(e);
|
|
47
|
+
})(o) : o;
|
|
48
48
|
/**
|
|
49
49
|
* @license
|
|
50
50
|
* Copyright 2017 Google LLC
|
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
52
|
*/
|
|
53
53
|
var Pe;
|
|
54
|
-
const ae = window, ui = ae.trustedTypes,
|
|
54
|
+
const ae = window, ui = ae.trustedTypes, po = ui ? ui.emptyScript : "", hi = ae.reactiveElementPolyfillSupport, Ye = { toAttribute(o, t) {
|
|
55
55
|
switch (t) {
|
|
56
56
|
case Boolean:
|
|
57
|
-
|
|
57
|
+
o = o ? po : null;
|
|
58
58
|
break;
|
|
59
59
|
case Object:
|
|
60
60
|
case Array:
|
|
61
|
-
|
|
61
|
+
o = o == null ? o : JSON.stringify(o);
|
|
62
62
|
}
|
|
63
|
-
return
|
|
64
|
-
}, fromAttribute(
|
|
65
|
-
let e =
|
|
63
|
+
return o;
|
|
64
|
+
}, fromAttribute(o, t) {
|
|
65
|
+
let e = o;
|
|
66
66
|
switch (t) {
|
|
67
67
|
case Boolean:
|
|
68
|
-
e =
|
|
68
|
+
e = o !== null;
|
|
69
69
|
break;
|
|
70
70
|
case Number:
|
|
71
|
-
e =
|
|
71
|
+
e = o === null ? null : Number(o);
|
|
72
72
|
break;
|
|
73
73
|
case Object:
|
|
74
74
|
case Array:
|
|
75
75
|
try {
|
|
76
|
-
e = JSON.parse(
|
|
76
|
+
e = JSON.parse(o);
|
|
77
77
|
} catch {
|
|
78
78
|
e = null;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
return e;
|
|
82
|
-
} }, Pi = (
|
|
82
|
+
} }, Pi = (o, t) => t !== o && (t == t || o == o), Oe = { attribute: !0, type: String, converter: Ye, reflect: !1, hasChanged: Pi }, je = "finalized";
|
|
83
83
|
let _t = class extends HTMLElement {
|
|
84
84
|
constructor() {
|
|
85
85
|
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this.u();
|
|
@@ -92,26 +92,26 @@ let _t = class extends HTMLElement {
|
|
|
92
92
|
this.finalize();
|
|
93
93
|
const t = [];
|
|
94
94
|
return this.elementProperties.forEach((e, i) => {
|
|
95
|
-
const
|
|
96
|
-
|
|
95
|
+
const n = this._$Ep(i, e);
|
|
96
|
+
n !== void 0 && (this._$Ev.set(n, i), t.push(n));
|
|
97
97
|
}), t;
|
|
98
98
|
}
|
|
99
|
-
static createProperty(t, e =
|
|
99
|
+
static createProperty(t, e = Oe) {
|
|
100
100
|
if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
|
|
101
|
-
const i = typeof t == "symbol" ? Symbol() : "__" + t,
|
|
102
|
-
|
|
101
|
+
const i = typeof t == "symbol" ? Symbol() : "__" + t, n = this.getPropertyDescriptor(t, i, e);
|
|
102
|
+
n !== void 0 && Object.defineProperty(this.prototype, t, n);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
static getPropertyDescriptor(t, e, i) {
|
|
106
106
|
return { get() {
|
|
107
107
|
return this[e];
|
|
108
|
-
}, set(
|
|
108
|
+
}, set(n) {
|
|
109
109
|
const r = this[t];
|
|
110
|
-
this[e] =
|
|
110
|
+
this[e] = n, this.requestUpdate(t, r, i);
|
|
111
111
|
}, configurable: !0, enumerable: !0 };
|
|
112
112
|
}
|
|
113
113
|
static getPropertyOptions(t) {
|
|
114
|
-
return this.elementProperties.get(t) ||
|
|
114
|
+
return this.elementProperties.get(t) || Oe;
|
|
115
115
|
}
|
|
116
116
|
static finalize() {
|
|
117
117
|
if (this.hasOwnProperty(je))
|
|
@@ -120,8 +120,8 @@ let _t = class extends HTMLElement {
|
|
|
120
120
|
const t = Object.getPrototypeOf(this);
|
|
121
121
|
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")) {
|
|
122
122
|
const e = this.properties, i = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
|
|
123
|
-
for (const
|
|
124
|
-
this.createProperty(
|
|
123
|
+
for (const n of i)
|
|
124
|
+
this.createProperty(n, e[n]);
|
|
125
125
|
}
|
|
126
126
|
return this.elementStyles = this.finalizeStyles(this.styles), !0;
|
|
127
127
|
}
|
|
@@ -129,8 +129,8 @@ let _t = class extends HTMLElement {
|
|
|
129
129
|
const e = [];
|
|
130
130
|
if (Array.isArray(t)) {
|
|
131
131
|
const i = new Set(t.flat(1 / 0).reverse());
|
|
132
|
-
for (const
|
|
133
|
-
e.unshift(di(
|
|
132
|
+
for (const n of i)
|
|
133
|
+
e.unshift(di(n));
|
|
134
134
|
} else
|
|
135
135
|
t !== void 0 && e.push(di(t));
|
|
136
136
|
return e;
|
|
@@ -159,7 +159,7 @@ let _t = class extends HTMLElement {
|
|
|
159
159
|
createRenderRoot() {
|
|
160
160
|
var t;
|
|
161
161
|
const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
|
|
162
|
-
return
|
|
162
|
+
return co(e, this.constructor.elementStyles), e;
|
|
163
163
|
}
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var t;
|
|
@@ -180,25 +180,25 @@ let _t = class extends HTMLElement {
|
|
|
180
180
|
attributeChangedCallback(t, e, i) {
|
|
181
181
|
this._$AK(t, i);
|
|
182
182
|
}
|
|
183
|
-
_$EO(t, e, i =
|
|
184
|
-
var
|
|
183
|
+
_$EO(t, e, i = Oe) {
|
|
184
|
+
var n;
|
|
185
185
|
const r = this.constructor._$Ep(t, i);
|
|
186
186
|
if (r !== void 0 && i.reflect === !0) {
|
|
187
|
-
const s = (((
|
|
187
|
+
const s = (((n = i.converter) === null || n === void 0 ? void 0 : n.toAttribute) !== void 0 ? i.converter : Ye).toAttribute(e, i.type);
|
|
188
188
|
this._$El = t, s == null ? this.removeAttribute(r) : this.setAttribute(r, s), this._$El = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
_$AK(t, e) {
|
|
192
192
|
var i;
|
|
193
|
-
const
|
|
193
|
+
const n = this.constructor, r = n._$Ev.get(t);
|
|
194
194
|
if (r !== void 0 && this._$El !== r) {
|
|
195
|
-
const s =
|
|
195
|
+
const s = n.getPropertyOptions(r), l = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((i = s.converter) === null || i === void 0 ? void 0 : i.fromAttribute) !== void 0 ? s.converter : Ye;
|
|
196
196
|
this._$El = r, this[r] = l.fromAttribute(e, s.type), this._$El = null;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
requestUpdate(t, e, i) {
|
|
200
|
-
let
|
|
201
|
-
t !== void 0 && (((i = i || this.constructor.getPropertyOptions(t)).hasChanged || Pi)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, i))) :
|
|
200
|
+
let n = !0;
|
|
201
|
+
t !== void 0 && (((i = i || this.constructor.getPropertyOptions(t)).hasChanged || Pi)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, i))) : n = !1), !this.isUpdatePending && n && (this._$E_ = this._$Ej());
|
|
202
202
|
}
|
|
203
203
|
async _$Ej() {
|
|
204
204
|
this.isUpdatePending = !0;
|
|
@@ -217,16 +217,16 @@ let _t = class extends HTMLElement {
|
|
|
217
217
|
var t;
|
|
218
218
|
if (!this.isUpdatePending)
|
|
219
219
|
return;
|
|
220
|
-
this.hasUpdated, this._$Ei && (this._$Ei.forEach((
|
|
220
|
+
this.hasUpdated, this._$Ei && (this._$Ei.forEach((n, r) => this[r] = n), this._$Ei = void 0);
|
|
221
221
|
let e = !1;
|
|
222
222
|
const i = this._$AL;
|
|
223
223
|
try {
|
|
224
|
-
e = this.shouldUpdate(i), e ? (this.willUpdate(i), (t = this._$ES) === null || t === void 0 || t.forEach((
|
|
224
|
+
e = this.shouldUpdate(i), e ? (this.willUpdate(i), (t = this._$ES) === null || t === void 0 || t.forEach((n) => {
|
|
225
225
|
var r;
|
|
226
|
-
return (r =
|
|
226
|
+
return (r = n.hostUpdate) === null || r === void 0 ? void 0 : r.call(n);
|
|
227
227
|
}), this.update(i)) : this._$Ek();
|
|
228
|
-
} catch (
|
|
229
|
-
throw e = !1, this._$Ek(),
|
|
228
|
+
} catch (n) {
|
|
229
|
+
throw e = !1, this._$Ek(), n;
|
|
230
230
|
}
|
|
231
231
|
e && this._$AE(i);
|
|
232
232
|
}
|
|
@@ -235,8 +235,8 @@ let _t = class extends HTMLElement {
|
|
|
235
235
|
_$AE(t) {
|
|
236
236
|
var e;
|
|
237
237
|
(e = this._$ES) === null || e === void 0 || e.forEach((i) => {
|
|
238
|
-
var
|
|
239
|
-
return (
|
|
238
|
+
var n;
|
|
239
|
+
return (n = i.hostUpdated) === null || n === void 0 ? void 0 : n.call(i);
|
|
240
240
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
241
241
|
}
|
|
242
242
|
_$Ek() {
|
|
@@ -259,75 +259,75 @@ let _t = class extends HTMLElement {
|
|
|
259
259
|
firstUpdated(t) {
|
|
260
260
|
}
|
|
261
261
|
};
|
|
262
|
-
_t[je] = !0, _t.elementProperties = /* @__PURE__ */ new Map(), _t.elementStyles = [], _t.shadowRootOptions = { mode: "open" },
|
|
262
|
+
_t[je] = !0, _t.elementProperties = /* @__PURE__ */ new Map(), _t.elementStyles = [], _t.shadowRootOptions = { mode: "open" }, hi == null || hi({ ReactiveElement: _t }), ((Pe = ae.reactiveElementVersions) !== null && Pe !== void 0 ? Pe : ae.reactiveElementVersions = []).push("1.6.2");
|
|
263
263
|
/**
|
|
264
264
|
* @license
|
|
265
265
|
* Copyright 2017 Google LLC
|
|
266
266
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
267
267
|
*/
|
|
268
|
-
var
|
|
269
|
-
const le = window, Ct = le.trustedTypes,
|
|
268
|
+
var He;
|
|
269
|
+
const le = window, Ct = le.trustedTypes, ci = Ct ? Ct.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, qe = "$lit$", at = `lit$${(Math.random() + "").slice(9)}$`, Oi = "?" + at, fo = `<${Oi}>`, bt = document, zt = () => bt.createComment(""), Xt = (o) => o === null || typeof o != "object" && typeof o != "function", Hi = Array.isArray, go = (o) => Hi(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", Me = `[
|
|
270
270
|
\f\r]`, Nt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, pi = /-->/g, fi = />/g, pt = RegExp(`>|${Me}(?:([^\\s"'>=/]+)(${Me}*=${Me}*(?:[^
|
|
271
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), gi = /'/g, mi = /"/g, Mi = /^(?:script|style|textarea|title)$/i,
|
|
272
|
-
function Ni(
|
|
273
|
-
if (!Array.isArray(
|
|
271
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), gi = /'/g, mi = /"/g, Mi = /^(?:script|style|textarea|title)$/i, mo = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), _ = mo(1), q = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), vi = /* @__PURE__ */ new WeakMap(), yt = bt.createTreeWalker(bt, 129, null, !1);
|
|
272
|
+
function Ni(o, t) {
|
|
273
|
+
if (!Array.isArray(o) || !o.hasOwnProperty("raw"))
|
|
274
274
|
throw Error("invalid template strings array");
|
|
275
|
-
return
|
|
275
|
+
return ci !== void 0 ? ci.createHTML(t) : t;
|
|
276
276
|
}
|
|
277
|
-
const
|
|
278
|
-
const e =
|
|
279
|
-
let
|
|
277
|
+
const vo = (o, t) => {
|
|
278
|
+
const e = o.length - 1, i = [];
|
|
279
|
+
let n, r = t === 2 ? "<svg>" : "", s = Nt;
|
|
280
280
|
for (let l = 0; l < e; l++) {
|
|
281
|
-
const a =
|
|
282
|
-
let d,
|
|
283
|
-
for (; p < a.length && (s.lastIndex = p,
|
|
284
|
-
p = s.lastIndex, s === Nt ?
|
|
285
|
-
const v = s === pt &&
|
|
286
|
-
r += s === Nt ? a +
|
|
287
|
-
}
|
|
288
|
-
return [Ni(
|
|
281
|
+
const a = o[l];
|
|
282
|
+
let d, c, u = -1, p = 0;
|
|
283
|
+
for (; p < a.length && (s.lastIndex = p, c = s.exec(a), c !== null); )
|
|
284
|
+
p = s.lastIndex, s === Nt ? c[1] === "!--" ? s = pi : c[1] !== void 0 ? s = fi : c[2] !== void 0 ? (Mi.test(c[2]) && (n = RegExp("</" + c[2], "g")), s = pt) : c[3] !== void 0 && (s = pt) : s === pt ? c[0] === ">" ? (s = n ?? Nt, u = -1) : c[1] === void 0 ? u = -2 : (u = s.lastIndex - c[2].length, d = c[1], s = c[3] === void 0 ? pt : c[3] === '"' ? mi : gi) : s === mi || s === gi ? s = pt : s === pi || s === fi ? s = Nt : (s = pt, n = void 0);
|
|
285
|
+
const v = s === pt && o[l + 1].startsWith("/>") ? " " : "";
|
|
286
|
+
r += s === Nt ? a + fo : u >= 0 ? (i.push(d), a.slice(0, u) + qe + a.slice(u) + at + v) : a + at + (u === -2 ? (i.push(void 0), l) : v);
|
|
287
|
+
}
|
|
288
|
+
return [Ni(o, r + (o[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
|
289
289
|
};
|
|
290
290
|
class Yt {
|
|
291
291
|
constructor({ strings: t, _$litType$: e }, i) {
|
|
292
|
-
let
|
|
292
|
+
let n;
|
|
293
293
|
this.parts = [];
|
|
294
294
|
let r = 0, s = 0;
|
|
295
|
-
const l = t.length - 1, a = this.parts, [d,
|
|
295
|
+
const l = t.length - 1, a = this.parts, [d, c] = vo(t, e);
|
|
296
296
|
if (this.el = Yt.createElement(d, i), yt.currentNode = this.el.content, e === 2) {
|
|
297
297
|
const u = this.el.content, p = u.firstChild;
|
|
298
298
|
p.remove(), u.append(...p.childNodes);
|
|
299
299
|
}
|
|
300
|
-
for (; (
|
|
301
|
-
if (
|
|
302
|
-
if (
|
|
300
|
+
for (; (n = yt.nextNode()) !== null && a.length < l; ) {
|
|
301
|
+
if (n.nodeType === 1) {
|
|
302
|
+
if (n.hasAttributes()) {
|
|
303
303
|
const u = [];
|
|
304
|
-
for (const p of
|
|
304
|
+
for (const p of n.getAttributeNames())
|
|
305
305
|
if (p.endsWith(qe) || p.startsWith(at)) {
|
|
306
|
-
const v =
|
|
306
|
+
const v = c[s++];
|
|
307
307
|
if (u.push(p), v !== void 0) {
|
|
308
|
-
const y =
|
|
309
|
-
a.push({ type: 1, index: r, name: b[2], strings: y, ctor: b[1] === "." ?
|
|
308
|
+
const y = n.getAttribute(v.toLowerCase() + qe).split(at), b = /([.?@])?(.*)/.exec(v);
|
|
309
|
+
a.push({ type: 1, index: r, name: b[2], strings: y, ctor: b[1] === "." ? bo : b[1] === "?" ? wo : b[1] === "@" ? _o : Te });
|
|
310
310
|
} else
|
|
311
311
|
a.push({ type: 6, index: r });
|
|
312
312
|
}
|
|
313
313
|
for (const p of u)
|
|
314
|
-
|
|
314
|
+
n.removeAttribute(p);
|
|
315
315
|
}
|
|
316
|
-
if (Mi.test(
|
|
317
|
-
const u =
|
|
316
|
+
if (Mi.test(n.tagName)) {
|
|
317
|
+
const u = n.textContent.split(at), p = u.length - 1;
|
|
318
318
|
if (p > 0) {
|
|
319
|
-
|
|
319
|
+
n.textContent = Ct ? Ct.emptyScript : "";
|
|
320
320
|
for (let v = 0; v < p; v++)
|
|
321
|
-
|
|
322
|
-
|
|
321
|
+
n.append(u[v], zt()), yt.nextNode(), a.push({ type: 2, index: ++r });
|
|
322
|
+
n.append(u[p], zt());
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
} else if (
|
|
326
|
-
if (
|
|
325
|
+
} else if (n.nodeType === 8)
|
|
326
|
+
if (n.data === Oi)
|
|
327
327
|
a.push({ type: 2, index: r });
|
|
328
328
|
else {
|
|
329
329
|
let u = -1;
|
|
330
|
-
for (; (u =
|
|
330
|
+
for (; (u = n.data.indexOf(at, u + 1)) !== -1; )
|
|
331
331
|
a.push({ type: 7, index: r }), u += at.length - 1;
|
|
332
332
|
}
|
|
333
333
|
r++;
|
|
@@ -338,15 +338,15 @@ class Yt {
|
|
|
338
338
|
return i.innerHTML = t, i;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function St(
|
|
342
|
-
var
|
|
341
|
+
function St(o, t, e = o, i) {
|
|
342
|
+
var n, r, s, l;
|
|
343
343
|
if (t === q)
|
|
344
344
|
return t;
|
|
345
|
-
let a = i !== void 0 ? (
|
|
345
|
+
let a = i !== void 0 ? (n = e._$Co) === null || n === void 0 ? void 0 : n[i] : e._$Cl;
|
|
346
346
|
const d = Xt(t) ? void 0 : t._$litDirective$;
|
|
347
|
-
return (a == null ? void 0 : a.constructor) !== d && ((r = a == null ? void 0 : a._$AO) === null || r === void 0 || r.call(a, !1), d === void 0 ? a = void 0 : (a = new d(
|
|
347
|
+
return (a == null ? void 0 : a.constructor) !== d && ((r = a == null ? void 0 : a._$AO) === null || r === void 0 || r.call(a, !1), d === void 0 ? a = void 0 : (a = new d(o), a._$AT(o, e, i)), i !== void 0 ? ((s = (l = e)._$Co) !== null && s !== void 0 ? s : l._$Co = [])[i] = a : e._$Cl = a), a !== void 0 && (t = St(o, a._$AS(o, t.values), a, i)), t;
|
|
348
348
|
}
|
|
349
|
-
class
|
|
349
|
+
class yo {
|
|
350
350
|
constructor(t, e) {
|
|
351
351
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
352
352
|
}
|
|
@@ -358,13 +358,13 @@ class yn {
|
|
|
358
358
|
}
|
|
359
359
|
u(t) {
|
|
360
360
|
var e;
|
|
361
|
-
const { el: { content: i }, parts:
|
|
361
|
+
const { el: { content: i }, parts: n } = this._$AD, r = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : bt).importNode(i, !0);
|
|
362
362
|
yt.currentNode = r;
|
|
363
|
-
let s = yt.nextNode(), l = 0, a = 0, d =
|
|
363
|
+
let s = yt.nextNode(), l = 0, a = 0, d = n[0];
|
|
364
364
|
for (; d !== void 0; ) {
|
|
365
365
|
if (l === d.index) {
|
|
366
|
-
let
|
|
367
|
-
d.type === 2 ?
|
|
366
|
+
let c;
|
|
367
|
+
d.type === 2 ? c = new jt(s, s.nextSibling, this, t) : d.type === 1 ? c = new d.ctor(s, d.name, d.strings, this, t) : d.type === 6 && (c = new $o(s, this, t)), this._$AV.push(c), d = n[++a];
|
|
368
368
|
}
|
|
369
369
|
l !== (d == null ? void 0 : d.index) && (s = yt.nextNode(), l++);
|
|
370
370
|
}
|
|
@@ -377,9 +377,9 @@ class yn {
|
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
class jt {
|
|
380
|
-
constructor(t, e, i,
|
|
380
|
+
constructor(t, e, i, n) {
|
|
381
381
|
var r;
|
|
382
|
-
this.type = 2, this._$AH = $, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options =
|
|
382
|
+
this.type = 2, this._$AH = $, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = n, this._$Cp = (r = n == null ? void 0 : n.isConnected) === null || r === void 0 || r;
|
|
383
383
|
}
|
|
384
384
|
get _$AU() {
|
|
385
385
|
var t, e;
|
|
@@ -397,7 +397,7 @@ class jt {
|
|
|
397
397
|
return this._$AB;
|
|
398
398
|
}
|
|
399
399
|
_$AI(t, e = this) {
|
|
400
|
-
t = St(this, t, e), Xt(t) ? t === $ || t == null || t === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : t !== this._$AH && t !== q && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) :
|
|
400
|
+
t = St(this, t, e), Xt(t) ? t === $ || t == null || t === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : t !== this._$AH && t !== q && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : go(t) ? this.T(t) : this._(t);
|
|
401
401
|
}
|
|
402
402
|
k(t) {
|
|
403
403
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -410,11 +410,11 @@ class jt {
|
|
|
410
410
|
}
|
|
411
411
|
g(t) {
|
|
412
412
|
var e;
|
|
413
|
-
const { values: i, _$litType$:
|
|
413
|
+
const { values: i, _$litType$: n } = t, r = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Yt.createElement(Ni(n.h, n.h[0]), this.options)), n);
|
|
414
414
|
if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === r)
|
|
415
415
|
this._$AH.v(i);
|
|
416
416
|
else {
|
|
417
|
-
const s = new
|
|
417
|
+
const s = new yo(r, this), l = s.u(this.options);
|
|
418
418
|
s.v(i), this.$(l), this._$AH = s;
|
|
419
419
|
}
|
|
420
420
|
}
|
|
@@ -423,18 +423,18 @@ class jt {
|
|
|
423
423
|
return e === void 0 && vi.set(t.strings, e = new Yt(t)), e;
|
|
424
424
|
}
|
|
425
425
|
T(t) {
|
|
426
|
-
|
|
426
|
+
Hi(this._$AH) || (this._$AH = [], this._$AR());
|
|
427
427
|
const e = this._$AH;
|
|
428
|
-
let i,
|
|
428
|
+
let i, n = 0;
|
|
429
429
|
for (const r of t)
|
|
430
|
-
|
|
431
|
-
|
|
430
|
+
n === e.length ? e.push(i = new jt(this.k(zt()), this.k(zt()), this, this.options)) : i = e[n], i._$AI(r), n++;
|
|
431
|
+
n < e.length && (this._$AR(i && i._$AB.nextSibling, n), e.length = n);
|
|
432
432
|
}
|
|
433
433
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
434
434
|
var i;
|
|
435
435
|
for ((i = this._$AP) === null || i === void 0 || i.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
436
|
-
const
|
|
437
|
-
t.remove(), t =
|
|
436
|
+
const n = t.nextSibling;
|
|
437
|
+
t.remove(), t = n;
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
setConnected(t) {
|
|
@@ -443,8 +443,8 @@ class jt {
|
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
class Te {
|
|
446
|
-
constructor(t, e, i,
|
|
447
|
-
this.type = 1, this._$AH = $, this._$AN = void 0, this.element = t, this.name = e, this._$AM =
|
|
446
|
+
constructor(t, e, i, n, r) {
|
|
447
|
+
this.type = 1, this._$AH = $, this._$AN = void 0, this.element = t, this.name = e, this._$AM = n, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = $;
|
|
448
448
|
}
|
|
449
449
|
get tagName() {
|
|
450
450
|
return this.element.tagName;
|
|
@@ -452,7 +452,7 @@ class Te {
|
|
|
452
452
|
get _$AU() {
|
|
453
453
|
return this._$AM._$AU;
|
|
454
454
|
}
|
|
455
|
-
_$AI(t, e = this, i,
|
|
455
|
+
_$AI(t, e = this, i, n) {
|
|
456
456
|
const r = this.strings;
|
|
457
457
|
let s = !1;
|
|
458
458
|
if (r === void 0)
|
|
@@ -463,13 +463,13 @@ class Te {
|
|
|
463
463
|
for (t = r[0], a = 0; a < r.length - 1; a++)
|
|
464
464
|
d = St(this, l[i + a], e, a), d === q && (d = this._$AH[a]), s || (s = !Xt(d) || d !== this._$AH[a]), d === $ ? t = $ : t !== $ && (t += (d ?? "") + r[a + 1]), this._$AH[a] = d;
|
|
465
465
|
}
|
|
466
|
-
s && !
|
|
466
|
+
s && !n && this.j(t);
|
|
467
467
|
}
|
|
468
468
|
j(t) {
|
|
469
469
|
t === $ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
class
|
|
472
|
+
class bo extends Te {
|
|
473
473
|
constructor() {
|
|
474
474
|
super(...arguments), this.type = 3;
|
|
475
475
|
}
|
|
@@ -477,32 +477,32 @@ class bn extends Te {
|
|
|
477
477
|
this.element[this.name] = t === $ ? void 0 : t;
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
const
|
|
481
|
-
class
|
|
480
|
+
const Eo = Ct ? Ct.emptyScript : "";
|
|
481
|
+
class wo extends Te {
|
|
482
482
|
constructor() {
|
|
483
483
|
super(...arguments), this.type = 4;
|
|
484
484
|
}
|
|
485
485
|
j(t) {
|
|
486
|
-
t && t !== $ ? this.element.setAttribute(this.name,
|
|
486
|
+
t && t !== $ ? this.element.setAttribute(this.name, Eo) : this.element.removeAttribute(this.name);
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
|
-
class
|
|
490
|
-
constructor(t, e, i,
|
|
491
|
-
super(t, e, i,
|
|
489
|
+
class _o extends Te {
|
|
490
|
+
constructor(t, e, i, n, r) {
|
|
491
|
+
super(t, e, i, n, r), this.type = 5;
|
|
492
492
|
}
|
|
493
493
|
_$AI(t, e = this) {
|
|
494
494
|
var i;
|
|
495
495
|
if ((t = (i = St(this, t, e, 0)) !== null && i !== void 0 ? i : $) === q)
|
|
496
496
|
return;
|
|
497
|
-
const
|
|
498
|
-
r && this.element.removeEventListener(this.name, this,
|
|
497
|
+
const n = this._$AH, r = t === $ && n !== $ || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, s = t !== $ && (n === $ || r);
|
|
498
|
+
r && this.element.removeEventListener(this.name, this, n), s && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
499
499
|
}
|
|
500
500
|
handleEvent(t) {
|
|
501
501
|
var e, i;
|
|
502
502
|
typeof this._$AH == "function" ? this._$AH.call((i = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && i !== void 0 ? i : this.element, t) : this._$AH.handleEvent(t);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
class $
|
|
505
|
+
class $o {
|
|
506
506
|
constructor(t, e, i) {
|
|
507
507
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
|
508
508
|
}
|
|
@@ -514,16 +514,16 @@ class $n {
|
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
const yi = le.litHtmlPolyfillSupport;
|
|
517
|
-
yi == null || yi(Yt, jt), ((
|
|
518
|
-
const
|
|
519
|
-
var i,
|
|
517
|
+
yi == null || yi(Yt, jt), ((He = le.litHtmlVersions) !== null && He !== void 0 ? He : le.litHtmlVersions = []).push("2.8.0");
|
|
518
|
+
const xo = (o, t, e) => {
|
|
519
|
+
var i, n;
|
|
520
520
|
const r = (i = e == null ? void 0 : e.renderBefore) !== null && i !== void 0 ? i : t;
|
|
521
521
|
let s = r._$litPart$;
|
|
522
522
|
if (s === void 0) {
|
|
523
|
-
const l = (
|
|
523
|
+
const l = (n = e == null ? void 0 : e.renderBefore) !== null && n !== void 0 ? n : null;
|
|
524
524
|
r._$litPart$ = s = new jt(t.insertBefore(zt(), l), l, void 0, e ?? {});
|
|
525
525
|
}
|
|
526
|
-
return s._$AI(
|
|
526
|
+
return s._$AI(o), s;
|
|
527
527
|
};
|
|
528
528
|
/**
|
|
529
529
|
* @license
|
|
@@ -542,7 +542,7 @@ let z = class extends _t {
|
|
|
542
542
|
}
|
|
543
543
|
update(t) {
|
|
544
544
|
const e = this.render();
|
|
545
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
545
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = xo(e, this.renderRoot, this.renderOptions);
|
|
546
546
|
}
|
|
547
547
|
connectedCallback() {
|
|
548
548
|
var t;
|
|
@@ -565,15 +565,15 @@ bi == null || bi({ LitElement: z });
|
|
|
565
565
|
* Copyright 2021 Google LLC
|
|
566
566
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
567
567
|
*/
|
|
568
|
-
function et(
|
|
569
|
-
return
|
|
568
|
+
function et(o, t, e) {
|
|
569
|
+
return o ? t() : e == null ? void 0 : e();
|
|
570
570
|
}
|
|
571
571
|
/**
|
|
572
572
|
* @license
|
|
573
573
|
* Copyright 2017 Google LLC
|
|
574
574
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
575
575
|
*/
|
|
576
|
-
const mt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, ei = (
|
|
576
|
+
const mt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, ei = (o) => (...t) => ({ _$litDirective$: o, values: t });
|
|
577
577
|
let ii = class {
|
|
578
578
|
constructor(t) {
|
|
579
579
|
}
|
|
@@ -595,21 +595,21 @@ let ii = class {
|
|
|
595
595
|
* Copyright 2020 Google LLC
|
|
596
596
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
597
597
|
*/
|
|
598
|
-
const
|
|
598
|
+
const Ao = (o) => o.strings === void 0, Co = {}, ki = (o, t = Co) => o._$AH = t;
|
|
599
599
|
/**
|
|
600
600
|
* @license
|
|
601
601
|
* Copyright 2021 Google LLC
|
|
602
602
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
603
603
|
*/
|
|
604
|
-
const
|
|
604
|
+
const So = ei(class extends ii {
|
|
605
605
|
constructor() {
|
|
606
606
|
super(...arguments), this.key = $;
|
|
607
607
|
}
|
|
608
|
-
render(
|
|
609
|
-
return this.key =
|
|
608
|
+
render(o, t) {
|
|
609
|
+
return this.key = o, t;
|
|
610
610
|
}
|
|
611
|
-
update(
|
|
612
|
-
return t !== this.key && (ki(
|
|
611
|
+
update(o, [t, e]) {
|
|
612
|
+
return t !== this.key && (ki(o), this.key = t), e;
|
|
613
613
|
}
|
|
614
614
|
});
|
|
615
615
|
/**!
|
|
@@ -618,176 +618,176 @@ const Sn = ei(class extends ii {
|
|
|
618
618
|
* @author owenm <owen23355@gmail.com>
|
|
619
619
|
* @license MIT
|
|
620
620
|
*/
|
|
621
|
-
function Ei(
|
|
622
|
-
var e = Object.keys(
|
|
621
|
+
function Ei(o, t) {
|
|
622
|
+
var e = Object.keys(o);
|
|
623
623
|
if (Object.getOwnPropertySymbols) {
|
|
624
|
-
var i = Object.getOwnPropertySymbols(
|
|
625
|
-
t && (i = i.filter(function(
|
|
626
|
-
return Object.getOwnPropertyDescriptor(
|
|
624
|
+
var i = Object.getOwnPropertySymbols(o);
|
|
625
|
+
t && (i = i.filter(function(n) {
|
|
626
|
+
return Object.getOwnPropertyDescriptor(o, n).enumerable;
|
|
627
627
|
})), e.push.apply(e, i);
|
|
628
628
|
}
|
|
629
629
|
return e;
|
|
630
630
|
}
|
|
631
|
-
function K(
|
|
631
|
+
function K(o) {
|
|
632
632
|
for (var t = 1; t < arguments.length; t++) {
|
|
633
633
|
var e = arguments[t] != null ? arguments[t] : {};
|
|
634
634
|
t % 2 ? Ei(Object(e), !0).forEach(function(i) {
|
|
635
|
-
|
|
636
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
637
|
-
Object.defineProperty(
|
|
635
|
+
To(o, i, e[i]);
|
|
636
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(e)) : Ei(Object(e)).forEach(function(i) {
|
|
637
|
+
Object.defineProperty(o, i, Object.getOwnPropertyDescriptor(e, i));
|
|
638
638
|
});
|
|
639
639
|
}
|
|
640
|
-
return
|
|
640
|
+
return o;
|
|
641
641
|
}
|
|
642
|
-
function ee(
|
|
642
|
+
function ee(o) {
|
|
643
643
|
"@babel/helpers - typeof";
|
|
644
644
|
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? ee = function(t) {
|
|
645
645
|
return typeof t;
|
|
646
646
|
} : ee = function(t) {
|
|
647
647
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
648
|
-
}, ee(
|
|
648
|
+
}, ee(o);
|
|
649
649
|
}
|
|
650
|
-
function
|
|
651
|
-
return t in
|
|
650
|
+
function To(o, t, e) {
|
|
651
|
+
return t in o ? Object.defineProperty(o, t, {
|
|
652
652
|
value: e,
|
|
653
653
|
enumerable: !0,
|
|
654
654
|
configurable: !0,
|
|
655
655
|
writable: !0
|
|
656
|
-
}) :
|
|
656
|
+
}) : o[t] = e, o;
|
|
657
657
|
}
|
|
658
658
|
function it() {
|
|
659
|
-
return it = Object.assign || function(
|
|
659
|
+
return it = Object.assign || function(o) {
|
|
660
660
|
for (var t = 1; t < arguments.length; t++) {
|
|
661
661
|
var e = arguments[t];
|
|
662
662
|
for (var i in e)
|
|
663
|
-
Object.prototype.hasOwnProperty.call(e, i) && (
|
|
663
|
+
Object.prototype.hasOwnProperty.call(e, i) && (o[i] = e[i]);
|
|
664
664
|
}
|
|
665
|
-
return
|
|
665
|
+
return o;
|
|
666
666
|
}, it.apply(this, arguments);
|
|
667
667
|
}
|
|
668
|
-
function
|
|
669
|
-
if (
|
|
668
|
+
function Do(o, t) {
|
|
669
|
+
if (o == null)
|
|
670
670
|
return {};
|
|
671
|
-
var e = {}, i = Object.keys(
|
|
671
|
+
var e = {}, i = Object.keys(o), n, r;
|
|
672
672
|
for (r = 0; r < i.length; r++)
|
|
673
|
-
|
|
673
|
+
n = i[r], !(t.indexOf(n) >= 0) && (e[n] = o[n]);
|
|
674
674
|
return e;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
if (
|
|
676
|
+
function Po(o, t) {
|
|
677
|
+
if (o == null)
|
|
678
678
|
return {};
|
|
679
|
-
var e =
|
|
679
|
+
var e = Do(o, t), i, n;
|
|
680
680
|
if (Object.getOwnPropertySymbols) {
|
|
681
|
-
var r = Object.getOwnPropertySymbols(
|
|
682
|
-
for (
|
|
683
|
-
i = r[
|
|
681
|
+
var r = Object.getOwnPropertySymbols(o);
|
|
682
|
+
for (n = 0; n < r.length; n++)
|
|
683
|
+
i = r[n], !(t.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(o, i) && (e[i] = o[i]);
|
|
684
684
|
}
|
|
685
685
|
return e;
|
|
686
686
|
}
|
|
687
|
-
var
|
|
688
|
-
function tt(
|
|
687
|
+
var Oo = "1.15.0";
|
|
688
|
+
function tt(o) {
|
|
689
689
|
if (typeof window < "u" && window.navigator)
|
|
690
|
-
return !!/* @__PURE__ */ navigator.userAgent.match(
|
|
690
|
+
return !!/* @__PURE__ */ navigator.userAgent.match(o);
|
|
691
691
|
}
|
|
692
|
-
var
|
|
692
|
+
var ot = tt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), qt = tt(/Edge/i), wi = tt(/firefox/i), Rt = tt(/safari/i) && !tt(/chrome/i) && !tt(/android/i), Ii = tt(/iP(ad|od|hone)/i), Vi = tt(/chrome/i) && tt(/android/i), Ri = {
|
|
693
693
|
capture: !1,
|
|
694
694
|
passive: !1
|
|
695
695
|
};
|
|
696
|
-
function w(
|
|
697
|
-
|
|
696
|
+
function w(o, t, e) {
|
|
697
|
+
o.addEventListener(t, e, !ot && Ri);
|
|
698
698
|
}
|
|
699
|
-
function E(
|
|
700
|
-
|
|
699
|
+
function E(o, t, e) {
|
|
700
|
+
o.removeEventListener(t, e, !ot && Ri);
|
|
701
701
|
}
|
|
702
|
-
function de(
|
|
702
|
+
function de(o, t) {
|
|
703
703
|
if (t) {
|
|
704
|
-
if (t[0] === ">" && (t = t.substring(1)),
|
|
704
|
+
if (t[0] === ">" && (t = t.substring(1)), o)
|
|
705
705
|
try {
|
|
706
|
-
if (
|
|
707
|
-
return
|
|
708
|
-
if (
|
|
709
|
-
return
|
|
710
|
-
if (
|
|
711
|
-
return
|
|
706
|
+
if (o.matches)
|
|
707
|
+
return o.matches(t);
|
|
708
|
+
if (o.msMatchesSelector)
|
|
709
|
+
return o.msMatchesSelector(t);
|
|
710
|
+
if (o.webkitMatchesSelector)
|
|
711
|
+
return o.webkitMatchesSelector(t);
|
|
712
712
|
} catch {
|
|
713
713
|
return !1;
|
|
714
714
|
}
|
|
715
715
|
return !1;
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
|
-
function
|
|
719
|
-
return
|
|
718
|
+
function Ho(o) {
|
|
719
|
+
return o.host && o !== document && o.host.nodeType ? o.host : o.parentNode;
|
|
720
720
|
}
|
|
721
|
-
function Z(
|
|
722
|
-
if (
|
|
721
|
+
function Z(o, t, e, i) {
|
|
722
|
+
if (o) {
|
|
723
723
|
e = e || document;
|
|
724
724
|
do {
|
|
725
|
-
if (t != null && (t[0] === ">" ?
|
|
726
|
-
return
|
|
727
|
-
if (
|
|
725
|
+
if (t != null && (t[0] === ">" ? o.parentNode === e && de(o, t) : de(o, t)) || i && o === e)
|
|
726
|
+
return o;
|
|
727
|
+
if (o === e)
|
|
728
728
|
break;
|
|
729
|
-
} while (
|
|
729
|
+
} while (o = Ho(o));
|
|
730
730
|
}
|
|
731
731
|
return null;
|
|
732
732
|
}
|
|
733
733
|
var _i = /\s+/g;
|
|
734
|
-
function B(
|
|
735
|
-
if (
|
|
736
|
-
if (
|
|
737
|
-
|
|
734
|
+
function B(o, t, e) {
|
|
735
|
+
if (o && t)
|
|
736
|
+
if (o.classList)
|
|
737
|
+
o.classList[e ? "add" : "remove"](t);
|
|
738
738
|
else {
|
|
739
|
-
var i = (" " +
|
|
740
|
-
|
|
739
|
+
var i = (" " + o.className + " ").replace(_i, " ").replace(" " + t + " ", " ");
|
|
740
|
+
o.className = (i + (e ? " " + t : "")).replace(_i, " ");
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
|
-
function f(
|
|
744
|
-
var i =
|
|
743
|
+
function f(o, t, e) {
|
|
744
|
+
var i = o && o.style;
|
|
745
745
|
if (i) {
|
|
746
746
|
if (e === void 0)
|
|
747
|
-
return document.defaultView && document.defaultView.getComputedStyle ? e = document.defaultView.getComputedStyle(
|
|
747
|
+
return document.defaultView && document.defaultView.getComputedStyle ? e = document.defaultView.getComputedStyle(o, "") : o.currentStyle && (e = o.currentStyle), t === void 0 ? e : e[t];
|
|
748
748
|
!(t in i) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), i[t] = e + (typeof e == "string" ? "" : "px");
|
|
749
749
|
}
|
|
750
750
|
}
|
|
751
|
-
function At(
|
|
751
|
+
function At(o, t) {
|
|
752
752
|
var e = "";
|
|
753
|
-
if (typeof
|
|
754
|
-
e =
|
|
753
|
+
if (typeof o == "string")
|
|
754
|
+
e = o;
|
|
755
755
|
else
|
|
756
756
|
do {
|
|
757
|
-
var i = f(
|
|
757
|
+
var i = f(o, "transform");
|
|
758
758
|
i && i !== "none" && (e = i + " " + e);
|
|
759
|
-
} while (!t && (
|
|
760
|
-
var
|
|
761
|
-
return
|
|
759
|
+
} while (!t && (o = o.parentNode));
|
|
760
|
+
var n = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
761
|
+
return n && new n(e);
|
|
762
762
|
}
|
|
763
|
-
function Bi(
|
|
764
|
-
if (
|
|
765
|
-
var i =
|
|
763
|
+
function Bi(o, t, e) {
|
|
764
|
+
if (o) {
|
|
765
|
+
var i = o.getElementsByTagName(t), n = 0, r = i.length;
|
|
766
766
|
if (e)
|
|
767
|
-
for (;
|
|
768
|
-
e(i[
|
|
767
|
+
for (; n < r; n++)
|
|
768
|
+
e(i[n], n);
|
|
769
769
|
return i;
|
|
770
770
|
}
|
|
771
771
|
return [];
|
|
772
772
|
}
|
|
773
773
|
function G() {
|
|
774
|
-
var
|
|
775
|
-
return
|
|
774
|
+
var o = document.scrollingElement;
|
|
775
|
+
return o || document.documentElement;
|
|
776
776
|
}
|
|
777
|
-
function T(
|
|
778
|
-
if (!(!
|
|
779
|
-
var r, s, l, a, d,
|
|
780
|
-
if (
|
|
777
|
+
function T(o, t, e, i, n) {
|
|
778
|
+
if (!(!o.getBoundingClientRect && o !== window)) {
|
|
779
|
+
var r, s, l, a, d, c, u;
|
|
780
|
+
if (o !== window && o.parentNode && o !== G() ? (r = o.getBoundingClientRect(), s = r.top, l = r.left, a = r.bottom, d = r.right, c = r.height, u = r.width) : (s = 0, l = 0, a = window.innerHeight, d = window.innerWidth, c = window.innerHeight, u = window.innerWidth), (t || e) && o !== window && (n = n || o.parentNode, !ot))
|
|
781
781
|
do
|
|
782
|
-
if (
|
|
783
|
-
var p =
|
|
784
|
-
s -= p.top + parseInt(f(
|
|
782
|
+
if (n && n.getBoundingClientRect && (f(n, "transform") !== "none" || e && f(n, "position") !== "static")) {
|
|
783
|
+
var p = n.getBoundingClientRect();
|
|
784
|
+
s -= p.top + parseInt(f(n, "border-top-width")), l -= p.left + parseInt(f(n, "border-left-width")), a = s + r.height, d = l + r.width;
|
|
785
785
|
break;
|
|
786
786
|
}
|
|
787
|
-
while (
|
|
788
|
-
if (i &&
|
|
789
|
-
var v = At(
|
|
790
|
-
v && (s /= b, l /= y, u /= y,
|
|
787
|
+
while (n = n.parentNode);
|
|
788
|
+
if (i && o !== window) {
|
|
789
|
+
var v = At(n || o), y = v && v.a, b = v && v.d;
|
|
790
|
+
v && (s /= b, l /= y, u /= y, c /= b, a = s + c, d = l + u);
|
|
791
791
|
}
|
|
792
792
|
return {
|
|
793
793
|
top: s,
|
|
@@ -795,14 +795,14 @@ function T(n, t, e, i, o) {
|
|
|
795
795
|
bottom: a,
|
|
796
796
|
right: d,
|
|
797
797
|
width: u,
|
|
798
|
-
height:
|
|
798
|
+
height: c
|
|
799
799
|
};
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
function $i(
|
|
803
|
-
for (var i = dt(
|
|
802
|
+
function $i(o, t, e) {
|
|
803
|
+
for (var i = dt(o, !0), n = T(o)[t]; i; ) {
|
|
804
804
|
var r = T(i)[e], s = void 0;
|
|
805
|
-
if (e === "top" || e === "left" ? s =
|
|
805
|
+
if (e === "top" || e === "left" ? s = n >= r : s = n <= r, !s)
|
|
806
806
|
return i;
|
|
807
807
|
if (i === G())
|
|
808
808
|
break;
|
|
@@ -810,56 +810,56 @@ function $i(n, t, e) {
|
|
|
810
810
|
}
|
|
811
811
|
return !1;
|
|
812
812
|
}
|
|
813
|
-
function Tt(
|
|
814
|
-
for (var
|
|
815
|
-
if (s[r].style.display !== "none" && s[r] !== g.ghost && (i || s[r] !== g.dragged) && Z(s[r], e.draggable,
|
|
816
|
-
if (
|
|
813
|
+
function Tt(o, t, e, i) {
|
|
814
|
+
for (var n = 0, r = 0, s = o.children; r < s.length; ) {
|
|
815
|
+
if (s[r].style.display !== "none" && s[r] !== g.ghost && (i || s[r] !== g.dragged) && Z(s[r], e.draggable, o, !1)) {
|
|
816
|
+
if (n === t)
|
|
817
817
|
return s[r];
|
|
818
|
-
|
|
818
|
+
n++;
|
|
819
819
|
}
|
|
820
820
|
r++;
|
|
821
821
|
}
|
|
822
822
|
return null;
|
|
823
823
|
}
|
|
824
|
-
function
|
|
825
|
-
for (var e =
|
|
824
|
+
function oi(o, t) {
|
|
825
|
+
for (var e = o.lastElementChild; e && (e === g.ghost || f(e, "display") === "none" || t && !de(e, t)); )
|
|
826
826
|
e = e.previousElementSibling;
|
|
827
827
|
return e || null;
|
|
828
828
|
}
|
|
829
|
-
function F(
|
|
829
|
+
function F(o, t) {
|
|
830
830
|
var e = 0;
|
|
831
|
-
if (!
|
|
831
|
+
if (!o || !o.parentNode)
|
|
832
832
|
return -1;
|
|
833
|
-
for (;
|
|
834
|
-
|
|
833
|
+
for (; o = o.previousElementSibling; )
|
|
834
|
+
o.nodeName.toUpperCase() !== "TEMPLATE" && o !== g.clone && (!t || de(o, t)) && e++;
|
|
835
835
|
return e;
|
|
836
836
|
}
|
|
837
|
-
function xi(
|
|
837
|
+
function xi(o) {
|
|
838
838
|
var t = 0, e = 0, i = G();
|
|
839
|
-
if (
|
|
839
|
+
if (o)
|
|
840
840
|
do {
|
|
841
|
-
var
|
|
842
|
-
t +=
|
|
843
|
-
} while (
|
|
841
|
+
var n = At(o), r = n.a, s = n.d;
|
|
842
|
+
t += o.scrollLeft * r, e += o.scrollTop * s;
|
|
843
|
+
} while (o !== i && (o = o.parentNode));
|
|
844
844
|
return [t, e];
|
|
845
845
|
}
|
|
846
|
-
function
|
|
847
|
-
for (var e in
|
|
848
|
-
if (
|
|
846
|
+
function Mo(o, t) {
|
|
847
|
+
for (var e in o)
|
|
848
|
+
if (o.hasOwnProperty(e)) {
|
|
849
849
|
for (var i in t)
|
|
850
|
-
if (t.hasOwnProperty(i) && t[i] ===
|
|
850
|
+
if (t.hasOwnProperty(i) && t[i] === o[e][i])
|
|
851
851
|
return Number(e);
|
|
852
852
|
}
|
|
853
853
|
return -1;
|
|
854
854
|
}
|
|
855
|
-
function dt(
|
|
856
|
-
if (!
|
|
855
|
+
function dt(o, t) {
|
|
856
|
+
if (!o || !o.getBoundingClientRect)
|
|
857
857
|
return G();
|
|
858
|
-
var e =
|
|
858
|
+
var e = o, i = !1;
|
|
859
859
|
do
|
|
860
860
|
if (e.clientWidth < e.scrollWidth || e.clientHeight < e.scrollHeight) {
|
|
861
|
-
var
|
|
862
|
-
if (e.clientWidth < e.scrollWidth && (
|
|
861
|
+
var n = f(e);
|
|
862
|
+
if (e.clientWidth < e.scrollWidth && (n.overflowX == "auto" || n.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (n.overflowY == "auto" || n.overflowY == "scroll")) {
|
|
863
863
|
if (!e.getBoundingClientRect || e === document.body)
|
|
864
864
|
return G();
|
|
865
865
|
if (i || t)
|
|
@@ -870,100 +870,100 @@ function dt(n, t) {
|
|
|
870
870
|
while (e = e.parentNode);
|
|
871
871
|
return G();
|
|
872
872
|
}
|
|
873
|
-
function
|
|
874
|
-
if (
|
|
873
|
+
function No(o, t) {
|
|
874
|
+
if (o && t)
|
|
875
875
|
for (var e in t)
|
|
876
|
-
t.hasOwnProperty(e) && (
|
|
877
|
-
return
|
|
876
|
+
t.hasOwnProperty(e) && (o[e] = t[e]);
|
|
877
|
+
return o;
|
|
878
878
|
}
|
|
879
|
-
function Ie(
|
|
880
|
-
return Math.round(
|
|
879
|
+
function Ie(o, t) {
|
|
880
|
+
return Math.round(o.top) === Math.round(t.top) && Math.round(o.left) === Math.round(t.left) && Math.round(o.height) === Math.round(t.height) && Math.round(o.width) === Math.round(t.width);
|
|
881
881
|
}
|
|
882
882
|
var Bt;
|
|
883
|
-
function
|
|
883
|
+
function Li(o, t) {
|
|
884
884
|
return function() {
|
|
885
885
|
if (!Bt) {
|
|
886
886
|
var e = arguments, i = this;
|
|
887
|
-
e.length === 1 ?
|
|
887
|
+
e.length === 1 ? o.call(i, e[0]) : o.apply(i, e), Bt = setTimeout(function() {
|
|
888
888
|
Bt = void 0;
|
|
889
889
|
}, t);
|
|
890
890
|
}
|
|
891
891
|
};
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function ko() {
|
|
894
894
|
clearTimeout(Bt), Bt = void 0;
|
|
895
895
|
}
|
|
896
|
-
function Ui(
|
|
897
|
-
|
|
896
|
+
function Ui(o, t, e) {
|
|
897
|
+
o.scrollLeft += t, o.scrollTop += e;
|
|
898
898
|
}
|
|
899
|
-
function Fi(
|
|
899
|
+
function Fi(o) {
|
|
900
900
|
var t = window.Polymer, e = window.jQuery || window.Zepto;
|
|
901
|
-
return t && t.dom ? t.dom(
|
|
901
|
+
return t && t.dom ? t.dom(o).cloneNode(!0) : e ? e(o).clone(!0)[0] : o.cloneNode(!0);
|
|
902
902
|
}
|
|
903
903
|
var U = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
904
|
-
function
|
|
905
|
-
var
|
|
904
|
+
function Io() {
|
|
905
|
+
var o = [], t;
|
|
906
906
|
return {
|
|
907
907
|
captureAnimationState: function() {
|
|
908
|
-
if (
|
|
908
|
+
if (o = [], !!this.options.animation) {
|
|
909
909
|
var i = [].slice.call(this.el.children);
|
|
910
|
-
i.forEach(function(
|
|
911
|
-
if (!(f(
|
|
912
|
-
|
|
913
|
-
target:
|
|
914
|
-
rect: T(
|
|
910
|
+
i.forEach(function(n) {
|
|
911
|
+
if (!(f(n, "display") === "none" || n === g.ghost)) {
|
|
912
|
+
o.push({
|
|
913
|
+
target: n,
|
|
914
|
+
rect: T(n)
|
|
915
915
|
});
|
|
916
|
-
var r = K({},
|
|
917
|
-
if (
|
|
918
|
-
var s = At(
|
|
916
|
+
var r = K({}, o[o.length - 1].rect);
|
|
917
|
+
if (n.thisAnimationDuration) {
|
|
918
|
+
var s = At(n, !0);
|
|
919
919
|
s && (r.top -= s.f, r.left -= s.e);
|
|
920
920
|
}
|
|
921
|
-
|
|
921
|
+
n.fromRect = r;
|
|
922
922
|
}
|
|
923
923
|
});
|
|
924
924
|
}
|
|
925
925
|
},
|
|
926
926
|
addAnimationState: function(i) {
|
|
927
|
-
|
|
927
|
+
o.push(i);
|
|
928
928
|
},
|
|
929
929
|
removeAnimationState: function(i) {
|
|
930
|
-
|
|
930
|
+
o.splice(Mo(o, {
|
|
931
931
|
target: i
|
|
932
932
|
}), 1);
|
|
933
933
|
},
|
|
934
934
|
animateAll: function(i) {
|
|
935
|
-
var
|
|
935
|
+
var n = this;
|
|
936
936
|
if (!this.options.animation) {
|
|
937
937
|
clearTimeout(t), typeof i == "function" && i();
|
|
938
938
|
return;
|
|
939
939
|
}
|
|
940
940
|
var r = !1, s = 0;
|
|
941
|
-
|
|
942
|
-
var a = 0, d = l.target,
|
|
943
|
-
b && (u.top -= b.f, u.left -= b.e), d.toRect = u, d.thisAnimationDuration && Ie(p, u) && !Ie(
|
|
944
|
-
(y.top - u.top) / (y.left - u.left) === (
|
|
941
|
+
o.forEach(function(l) {
|
|
942
|
+
var a = 0, d = l.target, c = d.fromRect, u = T(d), p = d.prevFromRect, v = d.prevToRect, y = l.rect, b = At(d, !0);
|
|
943
|
+
b && (u.top -= b.f, u.left -= b.e), d.toRect = u, d.thisAnimationDuration && Ie(p, u) && !Ie(c, u) && // Make sure animatingRect is on line between toRect & fromRect
|
|
944
|
+
(y.top - u.top) / (y.left - u.left) === (c.top - u.top) / (c.left - u.left) && (a = Ro(y, p, v, n.options)), Ie(u, c) || (d.prevFromRect = c, d.prevToRect = u, a || (a = n.options.animation), n.animate(d, y, u, a)), a && (r = !0, s = Math.max(s, a), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
|
|
945
945
|
d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
|
|
946
946
|
}, a), d.thisAnimationDuration = a);
|
|
947
947
|
}), clearTimeout(t), r ? t = setTimeout(function() {
|
|
948
948
|
typeof i == "function" && i();
|
|
949
|
-
}, s) : typeof i == "function" && i(),
|
|
949
|
+
}, s) : typeof i == "function" && i(), o = [];
|
|
950
950
|
},
|
|
951
|
-
animate: function(i,
|
|
951
|
+
animate: function(i, n, r, s) {
|
|
952
952
|
if (s) {
|
|
953
953
|
f(i, "transition", ""), f(i, "transform", "");
|
|
954
|
-
var l = At(this.el), a = l && l.a, d = l && l.d,
|
|
955
|
-
i.animatingX = !!
|
|
954
|
+
var l = At(this.el), a = l && l.a, d = l && l.d, c = (n.left - r.left) / (a || 1), u = (n.top - r.top) / (d || 1);
|
|
955
|
+
i.animatingX = !!c, i.animatingY = !!u, f(i, "transform", "translate3d(" + c + "px," + u + "px,0)"), this.forRepaintDummy = Vo(i), f(i, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), f(i, "transform", "translate3d(0,0,0)"), typeof i.animated == "number" && clearTimeout(i.animated), i.animated = setTimeout(function() {
|
|
956
956
|
f(i, "transition", ""), f(i, "transform", ""), i.animated = !1, i.animatingX = !1, i.animatingY = !1;
|
|
957
957
|
}, s);
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
};
|
|
961
961
|
}
|
|
962
|
-
function
|
|
963
|
-
return
|
|
962
|
+
function Vo(o) {
|
|
963
|
+
return o.offsetWidth;
|
|
964
964
|
}
|
|
965
|
-
function
|
|
966
|
-
return Math.sqrt(Math.pow(t.top -
|
|
965
|
+
function Ro(o, t, e, i) {
|
|
966
|
+
return Math.sqrt(Math.pow(t.top - o.top, 2) + Math.pow(t.left - o.left, 2)) / Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) * i.animation;
|
|
967
967
|
}
|
|
968
968
|
var Et = [], Ve = {
|
|
969
969
|
initializeByDefault: !0
|
|
@@ -977,9 +977,9 @@ var Et = [], Ve = {
|
|
|
977
977
|
}), Et.push(t);
|
|
978
978
|
},
|
|
979
979
|
pluginEvent: function(t, e, i) {
|
|
980
|
-
var
|
|
980
|
+
var n = this;
|
|
981
981
|
this.eventCanceled = !1, i.cancel = function() {
|
|
982
|
-
|
|
982
|
+
n.eventCanceled = !0;
|
|
983
983
|
};
|
|
984
984
|
var r = t + "Global";
|
|
985
985
|
Et.forEach(function(s) {
|
|
@@ -990,7 +990,7 @@ var Et = [], Ve = {
|
|
|
990
990
|
}, i)));
|
|
991
991
|
});
|
|
992
992
|
},
|
|
993
|
-
initializePlugins: function(t, e, i,
|
|
993
|
+
initializePlugins: function(t, e, i, n) {
|
|
994
994
|
Et.forEach(function(l) {
|
|
995
995
|
var a = l.pluginName;
|
|
996
996
|
if (!(!t.options[a] && !l.initializeByDefault)) {
|
|
@@ -1006,35 +1006,35 @@ var Et = [], Ve = {
|
|
|
1006
1006
|
},
|
|
1007
1007
|
getEventProperties: function(t, e) {
|
|
1008
1008
|
var i = {};
|
|
1009
|
-
return Et.forEach(function(
|
|
1010
|
-
typeof
|
|
1009
|
+
return Et.forEach(function(n) {
|
|
1010
|
+
typeof n.eventProperties == "function" && it(i, n.eventProperties.call(e[n.pluginName], t));
|
|
1011
1011
|
}), i;
|
|
1012
1012
|
},
|
|
1013
1013
|
modifyOption: function(t, e, i) {
|
|
1014
|
-
var
|
|
1014
|
+
var n;
|
|
1015
1015
|
return Et.forEach(function(r) {
|
|
1016
|
-
t[r.pluginName] && r.optionListeners && typeof r.optionListeners[e] == "function" && (
|
|
1017
|
-
}),
|
|
1016
|
+
t[r.pluginName] && r.optionListeners && typeof r.optionListeners[e] == "function" && (n = r.optionListeners[e].call(t[r.pluginName], i));
|
|
1017
|
+
}), n;
|
|
1018
1018
|
}
|
|
1019
1019
|
};
|
|
1020
|
-
function
|
|
1021
|
-
var t =
|
|
1020
|
+
function Bo(o) {
|
|
1021
|
+
var t = o.sortable, e = o.rootEl, i = o.name, n = o.targetEl, r = o.cloneEl, s = o.toEl, l = o.fromEl, a = o.oldIndex, d = o.newIndex, c = o.oldDraggableIndex, u = o.newDraggableIndex, p = o.originalEvent, v = o.putSortable, y = o.extraEventProperties;
|
|
1022
1022
|
if (t = t || e && e[U], !!t) {
|
|
1023
1023
|
var b, X = t.options, J = "on" + i.charAt(0).toUpperCase() + i.substr(1);
|
|
1024
|
-
window.CustomEvent && !
|
|
1024
|
+
window.CustomEvent && !ot && !qt ? b = new CustomEvent(i, {
|
|
1025
1025
|
bubbles: !0,
|
|
1026
1026
|
cancelable: !0
|
|
1027
|
-
}) : (b = document.createEvent("Event"), b.initEvent(i, !0, !0)), b.to = s || e, b.from = l || e, b.item =
|
|
1028
|
-
var
|
|
1029
|
-
for (var Y in
|
|
1030
|
-
b[Y] =
|
|
1027
|
+
}) : (b = document.createEvent("Event"), b.initEvent(i, !0, !0)), b.to = s || e, b.from = l || e, b.item = n || e, b.clone = r, b.oldIndex = a, b.newIndex = d, b.oldDraggableIndex = c, b.newDraggableIndex = u, b.originalEvent = p, b.pullMode = v ? v.lastPutMode : void 0;
|
|
1028
|
+
var O = K(K({}, y), Wt.getEventProperties(i, t));
|
|
1029
|
+
for (var Y in O)
|
|
1030
|
+
b[Y] = O[Y];
|
|
1031
1031
|
e && e.dispatchEvent(b), X[J] && X[J].call(t, b);
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
|
-
var
|
|
1035
|
-
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {},
|
|
1034
|
+
var Lo = ["evt"], k = function(t, e) {
|
|
1035
|
+
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = i.evt, r = Po(i, Lo);
|
|
1036
1036
|
Wt.pluginEvent.bind(g)(t, e, K({
|
|
1037
|
-
dragEl:
|
|
1037
|
+
dragEl: h,
|
|
1038
1038
|
parentEl: C,
|
|
1039
1039
|
ghostEl: m,
|
|
1040
1040
|
rootEl: x,
|
|
@@ -1045,10 +1045,10 @@ var Rn = ["evt"], k = function(t, e) {
|
|
|
1045
1045
|
dragStarted: kt,
|
|
1046
1046
|
putSortable: D,
|
|
1047
1047
|
activeSortable: g.active,
|
|
1048
|
-
originalEvent:
|
|
1048
|
+
originalEvent: n,
|
|
1049
1049
|
oldIndex: xt,
|
|
1050
|
-
oldDraggableIndex:
|
|
1051
|
-
newIndex:
|
|
1050
|
+
oldDraggableIndex: Lt,
|
|
1051
|
+
newIndex: L,
|
|
1052
1052
|
newDraggableIndex: st,
|
|
1053
1053
|
hideGhostForTarget: ji,
|
|
1054
1054
|
unhideGhostForTarget: qi,
|
|
@@ -1062,32 +1062,32 @@ var Rn = ["evt"], k = function(t, e) {
|
|
|
1062
1062
|
N({
|
|
1063
1063
|
sortable: e,
|
|
1064
1064
|
name: l,
|
|
1065
|
-
originalEvent:
|
|
1065
|
+
originalEvent: n
|
|
1066
1066
|
});
|
|
1067
1067
|
}
|
|
1068
1068
|
}, r));
|
|
1069
1069
|
};
|
|
1070
|
-
function N(
|
|
1071
|
-
|
|
1070
|
+
function N(o) {
|
|
1071
|
+
Bo(K({
|
|
1072
1072
|
putSortable: D,
|
|
1073
1073
|
cloneEl: A,
|
|
1074
|
-
targetEl:
|
|
1074
|
+
targetEl: h,
|
|
1075
1075
|
rootEl: x,
|
|
1076
1076
|
oldIndex: xt,
|
|
1077
|
-
oldDraggableIndex:
|
|
1078
|
-
newIndex:
|
|
1077
|
+
oldDraggableIndex: Lt,
|
|
1078
|
+
newIndex: L,
|
|
1079
1079
|
newDraggableIndex: st
|
|
1080
|
-
},
|
|
1080
|
+
}, o));
|
|
1081
1081
|
}
|
|
1082
|
-
var
|
|
1082
|
+
var h, C, m, x, vt, ie, A, lt, xt, L, Lt, st, Gt, D, $t = !1, ue = !1, he = [], ft, j, Re, Be, Ai, Ci, kt, wt, Ut, Ft = !1, Kt = !1, oe, P, Le = [], We = !1, ce = [], De = typeof document < "u", Jt = Ii, Si = qt || ot ? "cssFloat" : "float", Uo = De && !Vi && !Ii && "draggable" in document.createElement("div"), zi = function() {
|
|
1083
1083
|
if (De) {
|
|
1084
|
-
if (
|
|
1084
|
+
if (ot)
|
|
1085
1085
|
return !1;
|
|
1086
|
-
var
|
|
1087
|
-
return
|
|
1086
|
+
var o = document.createElement("x");
|
|
1087
|
+
return o.style.cssText = "pointer-events:auto", o.style.pointerEvents === "auto";
|
|
1088
1088
|
}
|
|
1089
1089
|
}(), Xi = function(t, e) {
|
|
1090
|
-
var i = f(t),
|
|
1090
|
+
var i = f(t), n = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), r = Tt(t, 0, e), s = Tt(t, 1, e), l = r && f(r), a = s && f(s), d = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + T(r).width, c = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + T(s).width;
|
|
1091
1091
|
if (i.display === "flex")
|
|
1092
1092
|
return i.flexDirection === "column" || i.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1093
1093
|
if (i.display === "grid")
|
|
@@ -1096,23 +1096,23 @@ var c, C, m, x, vt, ie, A, lt, xt, R, Rt, st, Gt, D, $t = !1, ue = !1, ce = [],
|
|
|
1096
1096
|
var u = l.float === "left" ? "left" : "right";
|
|
1097
1097
|
return s && (a.clear === "both" || a.clear === u) ? "vertical" : "horizontal";
|
|
1098
1098
|
}
|
|
1099
|
-
return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || d >=
|
|
1100
|
-
},
|
|
1101
|
-
var
|
|
1102
|
-
return
|
|
1103
|
-
},
|
|
1099
|
+
return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || d >= n && i[Si] === "none" || s && i[Si] === "none" && d + c > n) ? "vertical" : "horizontal";
|
|
1100
|
+
}, Fo = function(t, e, i) {
|
|
1101
|
+
var n = i ? t.left : t.top, r = i ? t.right : t.bottom, s = i ? t.width : t.height, l = i ? e.left : e.top, a = i ? e.right : e.bottom, d = i ? e.width : e.height;
|
|
1102
|
+
return n === l || r === a || n + s / 2 === l + d / 2;
|
|
1103
|
+
}, zo = function(t, e) {
|
|
1104
1104
|
var i;
|
|
1105
|
-
return
|
|
1106
|
-
var r =
|
|
1107
|
-
if (!(!r ||
|
|
1108
|
-
var s = T(
|
|
1105
|
+
return he.some(function(n) {
|
|
1106
|
+
var r = n[U].options.emptyInsertThreshold;
|
|
1107
|
+
if (!(!r || oi(n))) {
|
|
1108
|
+
var s = T(n), l = t >= s.left - r && t <= s.right + r, a = e >= s.top - r && e <= s.bottom + r;
|
|
1109
1109
|
if (l && a)
|
|
1110
|
-
return i =
|
|
1110
|
+
return i = n;
|
|
1111
1111
|
}
|
|
1112
1112
|
}), i;
|
|
1113
1113
|
}, Yi = function(t) {
|
|
1114
1114
|
function e(r, s) {
|
|
1115
|
-
return function(l, a, d,
|
|
1115
|
+
return function(l, a, d, c) {
|
|
1116
1116
|
var u = l.options.group.name && a.options.group.name && l.options.group.name === a.options.group.name;
|
|
1117
1117
|
if (r == null && (s || u))
|
|
1118
1118
|
return !0;
|
|
@@ -1121,49 +1121,49 @@ var c, C, m, x, vt, ie, A, lt, xt, R, Rt, st, Gt, D, $t = !1, ue = !1, ce = [],
|
|
|
1121
1121
|
if (s && r === "clone")
|
|
1122
1122
|
return r;
|
|
1123
1123
|
if (typeof r == "function")
|
|
1124
|
-
return e(r(l, a, d,
|
|
1124
|
+
return e(r(l, a, d, c), s)(l, a, d, c);
|
|
1125
1125
|
var p = (s ? l : a).options.group.name;
|
|
1126
1126
|
return r === !0 || typeof r == "string" && r === p || r.join && r.indexOf(p) > -1;
|
|
1127
1127
|
};
|
|
1128
1128
|
}
|
|
1129
|
-
var i = {},
|
|
1130
|
-
(!
|
|
1131
|
-
name:
|
|
1132
|
-
}), i.name =
|
|
1129
|
+
var i = {}, n = t.group;
|
|
1130
|
+
(!n || ee(n) != "object") && (n = {
|
|
1131
|
+
name: n
|
|
1132
|
+
}), i.name = n.name, i.checkPull = e(n.pull, !0), i.checkPut = e(n.put), i.revertClone = n.revertClone, t.group = i;
|
|
1133
1133
|
}, ji = function() {
|
|
1134
1134
|
!zi && m && f(m, "display", "none");
|
|
1135
1135
|
}, qi = function() {
|
|
1136
1136
|
!zi && m && f(m, "display", "");
|
|
1137
1137
|
};
|
|
1138
|
-
De && !Vi && document.addEventListener("click", function(
|
|
1138
|
+
De && !Vi && document.addEventListener("click", function(o) {
|
|
1139
1139
|
if (ue)
|
|
1140
|
-
return
|
|
1140
|
+
return o.preventDefault(), o.stopPropagation && o.stopPropagation(), o.stopImmediatePropagation && o.stopImmediatePropagation(), ue = !1, !1;
|
|
1141
1141
|
}, !0);
|
|
1142
1142
|
var gt = function(t) {
|
|
1143
|
-
if (
|
|
1143
|
+
if (h) {
|
|
1144
1144
|
t = t.touches ? t.touches[0] : t;
|
|
1145
|
-
var e =
|
|
1145
|
+
var e = zo(t.clientX, t.clientY);
|
|
1146
1146
|
if (e) {
|
|
1147
1147
|
var i = {};
|
|
1148
|
-
for (var
|
|
1149
|
-
t.hasOwnProperty(
|
|
1148
|
+
for (var n in t)
|
|
1149
|
+
t.hasOwnProperty(n) && (i[n] = t[n]);
|
|
1150
1150
|
i.target = i.rootEl = e, i.preventDefault = void 0, i.stopPropagation = void 0, e[U]._onDragOver(i);
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
|
-
},
|
|
1154
|
-
|
|
1153
|
+
}, Xo = function(t) {
|
|
1154
|
+
h && h.parentNode[U]._isOutsideThisEl(t.target);
|
|
1155
1155
|
};
|
|
1156
|
-
function g(
|
|
1157
|
-
if (!(
|
|
1158
|
-
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(
|
|
1159
|
-
this.el =
|
|
1156
|
+
function g(o, t) {
|
|
1157
|
+
if (!(o && o.nodeType && o.nodeType === 1))
|
|
1158
|
+
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));
|
|
1159
|
+
this.el = o, this.options = t = it({}, t), o[U] = this;
|
|
1160
1160
|
var e = {
|
|
1161
1161
|
group: null,
|
|
1162
1162
|
sort: !0,
|
|
1163
1163
|
disabled: !1,
|
|
1164
1164
|
store: null,
|
|
1165
1165
|
handle: null,
|
|
1166
|
-
draggable: /^[uo]l$/i.test(
|
|
1166
|
+
draggable: /^[uo]l$/i.test(o.nodeName) ? ">li" : ">*",
|
|
1167
1167
|
swapThreshold: 1,
|
|
1168
1168
|
// percentage; 0 <= x <= 1
|
|
1169
1169
|
invertSwap: !1,
|
|
@@ -1172,7 +1172,7 @@ function g(n, t) {
|
|
|
1172
1172
|
// will be set to same as swapThreshold if default
|
|
1173
1173
|
removeCloneOnHide: !0,
|
|
1174
1174
|
direction: function() {
|
|
1175
|
-
return Xi(
|
|
1175
|
+
return Xi(o, this.options);
|
|
1176
1176
|
},
|
|
1177
1177
|
ghostClass: "sortable-ghost",
|
|
1178
1178
|
chosenClass: "sortable-chosen",
|
|
@@ -1199,16 +1199,16 @@ function g(n, t) {
|
|
|
1199
1199
|
x: 0,
|
|
1200
1200
|
y: 0
|
|
1201
1201
|
},
|
|
1202
|
-
supportPointer: g.supportPointer !== !1 && "PointerEvent" in window && !
|
|
1202
|
+
supportPointer: g.supportPointer !== !1 && "PointerEvent" in window && !Rt,
|
|
1203
1203
|
emptyInsertThreshold: 5
|
|
1204
1204
|
};
|
|
1205
|
-
Wt.initializePlugins(this,
|
|
1205
|
+
Wt.initializePlugins(this, o, e);
|
|
1206
1206
|
for (var i in e)
|
|
1207
1207
|
!(i in t) && (t[i] = e[i]);
|
|
1208
1208
|
Yi(t);
|
|
1209
|
-
for (var
|
|
1210
|
-
|
|
1211
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
1209
|
+
for (var n in this)
|
|
1210
|
+
n.charAt(0) === "_" && typeof this[n] == "function" && (this[n] = this[n].bind(this));
|
|
1211
|
+
this.nativeDraggable = t.forceFallback ? !1 : Uo, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? w(o, "pointerdown", this._onTapStart) : (w(o, "mousedown", this._onTapStart), w(o, "touchstart", this._onTapStart)), this.nativeDraggable && (w(o, "dragover", this), w(o, "dragenter", this)), he.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), it(this, Io());
|
|
1212
1212
|
}
|
|
1213
1213
|
g.prototype = /** @lends Sortable.prototype */
|
|
1214
1214
|
{
|
|
@@ -1217,14 +1217,14 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1217
1217
|
!this.el.contains(t) && t !== this.el && (wt = null);
|
|
1218
1218
|
},
|
|
1219
1219
|
_getDirection: function(t, e) {
|
|
1220
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e,
|
|
1220
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, h) : this.options.direction;
|
|
1221
1221
|
},
|
|
1222
1222
|
_onTapStart: function(t) {
|
|
1223
1223
|
if (t.cancelable) {
|
|
1224
|
-
var e = this, i = this.el,
|
|
1225
|
-
if (
|
|
1226
|
-
if (xt = F(a),
|
|
1227
|
-
if (
|
|
1224
|
+
var e = this, i = this.el, n = this.options, r = n.preventOnFilter, s = t.type, l = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, a = (l || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || a, c = n.filter;
|
|
1225
|
+
if (Jo(i), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || n.disabled) && !d.isContentEditable && !(!this.nativeDraggable && Rt && a && a.tagName.toUpperCase() === "SELECT") && (a = Z(a, n.draggable, i, !1), !(a && a.animated) && ie !== a)) {
|
|
1226
|
+
if (xt = F(a), Lt = F(a, n.draggable), typeof c == "function") {
|
|
1227
|
+
if (c.call(this, t, a, this)) {
|
|
1228
1228
|
N({
|
|
1229
1229
|
sortable: e,
|
|
1230
1230
|
rootEl: d,
|
|
@@ -1237,7 +1237,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1237
1237
|
}), r && t.cancelable && t.preventDefault();
|
|
1238
1238
|
return;
|
|
1239
1239
|
}
|
|
1240
|
-
} else if (
|
|
1240
|
+
} else if (c && (c = c.split(",").some(function(u) {
|
|
1241
1241
|
if (u = Z(d, u.trim(), i, !1), u)
|
|
1242
1242
|
return N({
|
|
1243
1243
|
sortable: e,
|
|
@@ -1249,44 +1249,44 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1249
1249
|
}), k("filter", e, {
|
|
1250
1250
|
evt: t
|
|
1251
1251
|
}), !0;
|
|
1252
|
-
}),
|
|
1252
|
+
}), c)) {
|
|
1253
1253
|
r && t.cancelable && t.preventDefault();
|
|
1254
1254
|
return;
|
|
1255
1255
|
}
|
|
1256
|
-
|
|
1256
|
+
n.handle && !Z(d, n.handle, i, !1) || this._prepareDragStart(t, l, a);
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
1259
|
},
|
|
1260
1260
|
_prepareDragStart: function(t, e, i) {
|
|
1261
|
-
var
|
|
1262
|
-
if (i && !
|
|
1261
|
+
var n = this, r = n.el, s = n.options, l = r.ownerDocument, a;
|
|
1262
|
+
if (i && !h && i.parentNode === r) {
|
|
1263
1263
|
var d = T(i);
|
|
1264
|
-
if (x = r,
|
|
1265
|
-
target:
|
|
1264
|
+
if (x = r, h = i, C = h.parentNode, vt = h.nextSibling, ie = i, Gt = s.group, g.dragged = h, ft = {
|
|
1265
|
+
target: h,
|
|
1266
1266
|
clientX: (e || t).clientX,
|
|
1267
1267
|
clientY: (e || t).clientY
|
|
1268
|
-
}, Ai = ft.clientX - d.left, Ci = ft.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY,
|
|
1269
|
-
if (k("delayEnded",
|
|
1268
|
+
}, Ai = ft.clientX - d.left, Ci = ft.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, h.style["will-change"] = "all", a = function() {
|
|
1269
|
+
if (k("delayEnded", n, {
|
|
1270
1270
|
evt: t
|
|
1271
1271
|
}), g.eventCanceled) {
|
|
1272
|
-
|
|
1272
|
+
n._onDrop();
|
|
1273
1273
|
return;
|
|
1274
1274
|
}
|
|
1275
|
-
|
|
1276
|
-
sortable:
|
|
1275
|
+
n._disableDelayedDragEvents(), !wi && n.nativeDraggable && (h.draggable = !0), n._triggerDragStart(t, e), N({
|
|
1276
|
+
sortable: n,
|
|
1277
1277
|
name: "choose",
|
|
1278
1278
|
originalEvent: t
|
|
1279
|
-
}), B(
|
|
1280
|
-
}, s.ignore.split(",").forEach(function(
|
|
1281
|
-
Bi(
|
|
1282
|
-
}), w(l, "dragover", gt), w(l, "mousemove", gt), w(l, "touchmove", gt), w(l, "mouseup",
|
|
1279
|
+
}), B(h, s.chosenClass, !0);
|
|
1280
|
+
}, s.ignore.split(",").forEach(function(c) {
|
|
1281
|
+
Bi(h, c.trim(), Ue);
|
|
1282
|
+
}), w(l, "dragover", gt), w(l, "mousemove", gt), w(l, "touchmove", gt), w(l, "mouseup", n._onDrop), w(l, "touchend", n._onDrop), w(l, "touchcancel", n._onDrop), wi && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), k("delayStart", this, {
|
|
1283
1283
|
evt: t
|
|
1284
|
-
}), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(qt ||
|
|
1284
|
+
}), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(qt || ot))) {
|
|
1285
1285
|
if (g.eventCanceled) {
|
|
1286
1286
|
this._onDrop();
|
|
1287
1287
|
return;
|
|
1288
1288
|
}
|
|
1289
|
-
w(l, "mouseup",
|
|
1289
|
+
w(l, "mouseup", n._disableDelayedDrag), w(l, "touchend", n._disableDelayedDrag), w(l, "touchcancel", n._disableDelayedDrag), w(l, "mousemove", n._delayedDragTouchMoveHandler), w(l, "touchmove", n._delayedDragTouchMoveHandler), s.supportPointer && w(l, "pointermove", n._delayedDragTouchMoveHandler), n._dragStartTimer = setTimeout(a, s.delay);
|
|
1290
1290
|
} else
|
|
1291
1291
|
a();
|
|
1292
1292
|
}
|
|
@@ -1296,28 +1296,28 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1296
1296
|
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();
|
|
1297
1297
|
},
|
|
1298
1298
|
_disableDelayedDrag: function() {
|
|
1299
|
-
|
|
1299
|
+
h && Ue(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
1300
1300
|
},
|
|
1301
1301
|
_disableDelayedDragEvents: function() {
|
|
1302
1302
|
var t = this.el.ownerDocument;
|
|
1303
1303
|
E(t, "mouseup", this._disableDelayedDrag), E(t, "touchend", this._disableDelayedDrag), E(t, "touchcancel", this._disableDelayedDrag), E(t, "mousemove", this._delayedDragTouchMoveHandler), E(t, "touchmove", this._delayedDragTouchMoveHandler), E(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
1304
1304
|
},
|
|
1305
1305
|
_triggerDragStart: function(t, e) {
|
|
1306
|
-
e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? w(document, "pointermove", this._onTouchMove) : e ? w(document, "touchmove", this._onTouchMove) : w(document, "mousemove", this._onTouchMove) : (w(
|
|
1306
|
+
e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? w(document, "pointermove", this._onTouchMove) : e ? w(document, "touchmove", this._onTouchMove) : w(document, "mousemove", this._onTouchMove) : (w(h, "dragend", this), w(x, "dragstart", this._onDragStart));
|
|
1307
1307
|
try {
|
|
1308
|
-
document.selection ?
|
|
1308
|
+
document.selection ? ne(function() {
|
|
1309
1309
|
document.selection.empty();
|
|
1310
1310
|
}) : window.getSelection().removeAllRanges();
|
|
1311
1311
|
} catch {
|
|
1312
1312
|
}
|
|
1313
1313
|
},
|
|
1314
1314
|
_dragStarted: function(t, e) {
|
|
1315
|
-
if ($t = !1, x &&
|
|
1315
|
+
if ($t = !1, x && h) {
|
|
1316
1316
|
k("dragStarted", this, {
|
|
1317
1317
|
evt: e
|
|
1318
|
-
}), this.nativeDraggable && w(document, "dragover",
|
|
1318
|
+
}), this.nativeDraggable && w(document, "dragover", Xo);
|
|
1319
1319
|
var i = this.options;
|
|
1320
|
-
!t && B(
|
|
1320
|
+
!t && B(h, i.dragClass, !1), B(h, i.ghostClass, !0), g.active = this, t && this._appendGhost(), N({
|
|
1321
1321
|
sortable: this,
|
|
1322
1322
|
name: "start",
|
|
1323
1323
|
originalEvent: e
|
|
@@ -1330,7 +1330,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1330
1330
|
this._lastX = j.clientX, this._lastY = j.clientY, ji();
|
|
1331
1331
|
for (var t = document.elementFromPoint(j.clientX, j.clientY), e = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(j.clientX, j.clientY), t !== e); )
|
|
1332
1332
|
e = t;
|
|
1333
|
-
if (
|
|
1333
|
+
if (h.parentNode[U]._isOutsideThisEl(t), e)
|
|
1334
1334
|
do {
|
|
1335
1335
|
if (e[U]) {
|
|
1336
1336
|
var i = void 0;
|
|
@@ -1349,139 +1349,139 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1349
1349
|
},
|
|
1350
1350
|
_onTouchMove: function(t) {
|
|
1351
1351
|
if (ft) {
|
|
1352
|
-
var e = this.options, i = e.fallbackTolerance,
|
|
1352
|
+
var e = this.options, i = e.fallbackTolerance, n = e.fallbackOffset, r = t.touches ? t.touches[0] : t, s = m && At(m, !0), l = m && s && s.a, a = m && s && s.d, d = Jt && P && xi(P), c = (r.clientX - ft.clientX + n.x) / (l || 1) + (d ? d[0] - Le[0] : 0) / (l || 1), u = (r.clientY - ft.clientY + n.y) / (a || 1) + (d ? d[1] - Le[1] : 0) / (a || 1);
|
|
1353
1353
|
if (!g.active && !$t) {
|
|
1354
1354
|
if (i && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < i)
|
|
1355
1355
|
return;
|
|
1356
1356
|
this._onDragStart(t, !0);
|
|
1357
1357
|
}
|
|
1358
1358
|
if (m) {
|
|
1359
|
-
s ? (s.e +=
|
|
1359
|
+
s ? (s.e += c - (Re || 0), s.f += u - (Be || 0)) : s = {
|
|
1360
1360
|
a: 1,
|
|
1361
1361
|
b: 0,
|
|
1362
1362
|
c: 0,
|
|
1363
1363
|
d: 1,
|
|
1364
|
-
e:
|
|
1364
|
+
e: c,
|
|
1365
1365
|
f: u
|
|
1366
1366
|
};
|
|
1367
1367
|
var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
|
|
1368
|
-
f(m, "webkitTransform", p), f(m, "mozTransform", p), f(m, "msTransform", p), f(m, "transform", p),
|
|
1368
|
+
f(m, "webkitTransform", p), f(m, "mozTransform", p), f(m, "msTransform", p), f(m, "transform", p), Re = c, Be = u, j = r;
|
|
1369
1369
|
}
|
|
1370
1370
|
t.cancelable && t.preventDefault();
|
|
1371
1371
|
}
|
|
1372
1372
|
},
|
|
1373
1373
|
_appendGhost: function() {
|
|
1374
1374
|
if (!m) {
|
|
1375
|
-
var t = this.options.fallbackOnBody ? document.body : x, e = T(
|
|
1375
|
+
var t = this.options.fallbackOnBody ? document.body : x, e = T(h, !0, Jt, !0, t), i = this.options;
|
|
1376
1376
|
if (Jt) {
|
|
1377
1377
|
for (P = t; f(P, "position") === "static" && f(P, "transform") === "none" && P !== document; )
|
|
1378
1378
|
P = P.parentNode;
|
|
1379
|
-
P !== document.body && P !== document.documentElement ? (P === document && (P = G()), e.top += P.scrollTop, e.left += P.scrollLeft) : P = G(),
|
|
1379
|
+
P !== document.body && P !== document.documentElement ? (P === document && (P = G()), e.top += P.scrollTop, e.left += P.scrollLeft) : P = G(), Le = xi(P);
|
|
1380
1380
|
}
|
|
1381
|
-
m =
|
|
1381
|
+
m = h.cloneNode(!0), B(m, i.ghostClass, !1), B(m, i.fallbackClass, !0), B(m, i.dragClass, !0), f(m, "transition", ""), f(m, "transform", ""), f(m, "box-sizing", "border-box"), f(m, "margin", 0), f(m, "top", e.top), f(m, "left", e.left), f(m, "width", e.width), f(m, "height", e.height), f(m, "opacity", "0.8"), f(m, "position", Jt ? "absolute" : "fixed"), f(m, "zIndex", "100000"), f(m, "pointerEvents", "none"), g.ghost = m, t.appendChild(m), f(m, "transform-origin", Ai / parseInt(m.style.width) * 100 + "% " + Ci / parseInt(m.style.height) * 100 + "%");
|
|
1382
1382
|
}
|
|
1383
1383
|
},
|
|
1384
1384
|
_onDragStart: function(t, e) {
|
|
1385
|
-
var i = this,
|
|
1385
|
+
var i = this, n = t.dataTransfer, r = i.options;
|
|
1386
1386
|
if (k("dragStart", this, {
|
|
1387
1387
|
evt: t
|
|
1388
1388
|
}), g.eventCanceled) {
|
|
1389
1389
|
this._onDrop();
|
|
1390
1390
|
return;
|
|
1391
1391
|
}
|
|
1392
|
-
k("setupClone", this), g.eventCanceled || (A = Fi(
|
|
1393
|
-
k("clone", i), !g.eventCanceled && (i.options.removeCloneOnHide || x.insertBefore(A,
|
|
1392
|
+
k("setupClone", this), g.eventCanceled || (A = Fi(h), A.removeAttribute("id"), A.draggable = !1, A.style["will-change"] = "", this._hideClone(), B(A, this.options.chosenClass, !1), g.clone = A), i.cloneId = ne(function() {
|
|
1393
|
+
k("clone", i), !g.eventCanceled && (i.options.removeCloneOnHide || x.insertBefore(A, h), i._hideClone(), N({
|
|
1394
1394
|
sortable: i,
|
|
1395
1395
|
name: "clone"
|
|
1396
1396
|
}));
|
|
1397
|
-
}), !e && B(
|
|
1397
|
+
}), !e && B(h, r.dragClass, !0), e ? (ue = !0, i._loopId = setInterval(i._emulateDragOver, 50)) : (E(document, "mouseup", i._onDrop), E(document, "touchend", i._onDrop), E(document, "touchcancel", i._onDrop), n && (n.effectAllowed = "move", r.setData && r.setData.call(i, n, h)), w(document, "drop", i), f(h, "transform", "translateZ(0)")), $t = !0, i._dragStartId = ne(i._dragStarted.bind(i, e, t)), w(document, "selectstart", i), kt = !0, Rt && f(document.body, "user-select", "none");
|
|
1398
1398
|
},
|
|
1399
1399
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1400
1400
|
_onDragOver: function(t) {
|
|
1401
|
-
var e = this.el, i = t.target,
|
|
1401
|
+
var e = this.el, i = t.target, n, r, s, l = this.options, a = l.group, d = g.active, c = Gt === a, u = l.sort, p = D || d, v, y = this, b = !1;
|
|
1402
1402
|
if (We)
|
|
1403
1403
|
return;
|
|
1404
|
-
function X(Mt,
|
|
1404
|
+
function X(Mt, no) {
|
|
1405
1405
|
k(Mt, y, K({
|
|
1406
1406
|
evt: t,
|
|
1407
|
-
isOwner:
|
|
1407
|
+
isOwner: c,
|
|
1408
1408
|
axis: v ? "vertical" : "horizontal",
|
|
1409
1409
|
revert: s,
|
|
1410
|
-
dragRect:
|
|
1410
|
+
dragRect: n,
|
|
1411
1411
|
targetRect: r,
|
|
1412
1412
|
canSort: u,
|
|
1413
1413
|
fromSortable: p,
|
|
1414
1414
|
target: i,
|
|
1415
|
-
completed:
|
|
1416
|
-
onMove: function(ai,
|
|
1417
|
-
return Qt(x, e,
|
|
1415
|
+
completed: O,
|
|
1416
|
+
onMove: function(ai, ro) {
|
|
1417
|
+
return Qt(x, e, h, n, ai, T(ai), t, ro);
|
|
1418
1418
|
},
|
|
1419
1419
|
changed: Y
|
|
1420
|
-
},
|
|
1420
|
+
}, no));
|
|
1421
1421
|
}
|
|
1422
1422
|
function J() {
|
|
1423
1423
|
X("dragOverAnimationCapture"), y.captureAnimationState(), y !== p && p.captureAnimationState();
|
|
1424
1424
|
}
|
|
1425
|
-
function
|
|
1425
|
+
function O(Mt) {
|
|
1426
1426
|
return X("dragOverCompleted", {
|
|
1427
1427
|
insertion: Mt
|
|
1428
|
-
}), Mt && (
|
|
1428
|
+
}), Mt && (c ? d._hideClone() : d._showClone(y), y !== p && (B(h, D ? D.options.ghostClass : d.options.ghostClass, !1), B(h, l.ghostClass, !0)), D !== y && y !== g.active ? D = y : y === g.active && D && (D = null), p === y && (y._ignoreWhileAnimating = i), y.animateAll(function() {
|
|
1429
1429
|
X("dragOverAnimationComplete"), y._ignoreWhileAnimating = null;
|
|
1430
|
-
}), y !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i ===
|
|
1430
|
+
}), y !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i === e && !i.animated) && (wt = null), !l.dragoverBubble && !t.rootEl && i !== document && (h.parentNode[U]._isOutsideThisEl(t.target), !Mt && gt(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), b = !0;
|
|
1431
1431
|
}
|
|
1432
1432
|
function Y() {
|
|
1433
|
-
|
|
1433
|
+
L = F(h), st = F(h, l.draggable), N({
|
|
1434
1434
|
sortable: y,
|
|
1435
1435
|
name: "change",
|
|
1436
1436
|
toEl: e,
|
|
1437
|
-
newIndex:
|
|
1437
|
+
newIndex: L,
|
|
1438
1438
|
newDraggableIndex: st,
|
|
1439
1439
|
originalEvent: t
|
|
1440
1440
|
});
|
|
1441
1441
|
}
|
|
1442
1442
|
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = Z(i, l.draggable, e, !0), X("dragOver"), g.eventCanceled)
|
|
1443
1443
|
return b;
|
|
1444
|
-
if (
|
|
1445
|
-
return
|
|
1446
|
-
if (ue = !1, d && !l.disabled && (
|
|
1447
|
-
if (v = this._getDirection(t, i) === "vertical",
|
|
1444
|
+
if (h.contains(t.target) || i.animated && i.animatingX && i.animatingY || y._ignoreWhileAnimating === i)
|
|
1445
|
+
return O(!1);
|
|
1446
|
+
if (ue = !1, d && !l.disabled && (c ? u || (s = C !== x) : D === this || (this.lastPutMode = Gt.checkPull(this, d, h, t)) && a.checkPut(this, d, h, t))) {
|
|
1447
|
+
if (v = this._getDirection(t, i) === "vertical", n = T(h), X("dragOverValid"), g.eventCanceled)
|
|
1448
1448
|
return b;
|
|
1449
1449
|
if (s)
|
|
1450
|
-
return C = x, J(), this._hideClone(), X("revert"), g.eventCanceled || (vt ? x.insertBefore(
|
|
1451
|
-
var I =
|
|
1452
|
-
if (!I ||
|
|
1453
|
-
if (I ===
|
|
1454
|
-
return
|
|
1455
|
-
if (I && e === t.target && (i = I), i && (r = T(i)), Qt(x, e,
|
|
1456
|
-
return J(), I && I.nextSibling ? e.insertBefore(
|
|
1457
|
-
} else if (I &&
|
|
1450
|
+
return C = x, J(), this._hideClone(), X("revert"), g.eventCanceled || (vt ? x.insertBefore(h, vt) : x.appendChild(h)), O(!0);
|
|
1451
|
+
var I = oi(e, l.draggable);
|
|
1452
|
+
if (!I || Wo(t, v, this) && !I.animated) {
|
|
1453
|
+
if (I === h)
|
|
1454
|
+
return O(!1);
|
|
1455
|
+
if (I && e === t.target && (i = I), i && (r = T(i)), Qt(x, e, h, n, i, r, t, !!i) !== !1)
|
|
1456
|
+
return J(), I && I.nextSibling ? e.insertBefore(h, I.nextSibling) : e.appendChild(h), C = e, Y(), O(!0);
|
|
1457
|
+
} else if (I && qo(t, v, this)) {
|
|
1458
1458
|
var ut = Tt(e, 0, l, !0);
|
|
1459
|
-
if (ut ===
|
|
1460
|
-
return
|
|
1461
|
-
if (i = ut, r = T(i), Qt(x, e,
|
|
1462
|
-
return J(), e.insertBefore(
|
|
1459
|
+
if (ut === h)
|
|
1460
|
+
return O(!1);
|
|
1461
|
+
if (i = ut, r = T(i), Qt(x, e, h, n, i, r, t, !1) !== !1)
|
|
1462
|
+
return J(), e.insertBefore(h, ut), C = e, Y(), O(!0);
|
|
1463
1463
|
} else if (i.parentNode === e) {
|
|
1464
1464
|
r = T(i);
|
|
1465
|
-
var W = 0,
|
|
1466
|
-
wt !== i && (
|
|
1465
|
+
var W = 0, ht, Dt = h.parentNode !== e, V = !Fo(h.animated && h.toRect || n, i.animated && i.toRect || r, v), Pt = v ? "top" : "left", nt = $i(i, "top", "top") || $i(h, "top", "top"), Ot = nt ? nt.scrollTop : void 0;
|
|
1466
|
+
wt !== i && (ht = r[Pt], Ft = !1, Kt = !V && l.invertSwap || Dt), W = Zo(t, i, r, v, V ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Kt, wt === i);
|
|
1467
1467
|
var Q;
|
|
1468
1468
|
if (W !== 0) {
|
|
1469
|
-
var
|
|
1469
|
+
var ct = F(h);
|
|
1470
1470
|
do
|
|
1471
|
-
|
|
1471
|
+
ct -= W, Q = C.children[ct];
|
|
1472
1472
|
while (Q && (f(Q, "display") === "none" || Q === m));
|
|
1473
1473
|
}
|
|
1474
1474
|
if (W === 0 || Q === i)
|
|
1475
|
-
return
|
|
1475
|
+
return O(!1);
|
|
1476
1476
|
wt = i, Ut = W;
|
|
1477
|
-
var
|
|
1477
|
+
var Ht = i.nextElementSibling, rt = !1;
|
|
1478
1478
|
rt = W === 1;
|
|
1479
|
-
var Zt = Qt(x, e,
|
|
1479
|
+
var Zt = Qt(x, e, h, n, i, r, t, rt);
|
|
1480
1480
|
if (Zt !== !1)
|
|
1481
|
-
return (Zt === 1 || Zt === -1) && (rt = Zt === 1), We = !0, setTimeout(
|
|
1481
|
+
return (Zt === 1 || Zt === -1) && (rt = Zt === 1), We = !0, setTimeout(jo, 30), J(), rt && !Ht ? e.appendChild(h) : i.parentNode.insertBefore(h, rt ? Ht : i), nt && Ui(nt, 0, Ot - nt.scrollTop), C = h.parentNode, ht !== void 0 && !Kt && (oe = Math.abs(ht - T(i)[Pt])), Y(), O(!0);
|
|
1482
1482
|
}
|
|
1483
|
-
if (e.contains(
|
|
1484
|
-
return
|
|
1483
|
+
if (e.contains(h))
|
|
1484
|
+
return O(!1);
|
|
1485
1485
|
}
|
|
1486
1486
|
return !1;
|
|
1487
1487
|
},
|
|
@@ -1495,20 +1495,20 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1495
1495
|
},
|
|
1496
1496
|
_onDrop: function(t) {
|
|
1497
1497
|
var e = this.el, i = this.options;
|
|
1498
|
-
if (
|
|
1498
|
+
if (L = F(h), st = F(h, i.draggable), k("drop", this, {
|
|
1499
1499
|
evt: t
|
|
1500
|
-
}), C =
|
|
1500
|
+
}), C = h && h.parentNode, L = F(h), st = F(h, i.draggable), g.eventCanceled) {
|
|
1501
1501
|
this._nulling();
|
|
1502
1502
|
return;
|
|
1503
1503
|
}
|
|
1504
|
-
$t = !1, Kt = !1, Ft = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ze(this.cloneId), Ze(this._dragStartId), this.nativeDraggable && (E(document, "drop", this), E(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(),
|
|
1504
|
+
$t = !1, Kt = !1, Ft = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ze(this.cloneId), Ze(this._dragStartId), this.nativeDraggable && (E(document, "drop", this), E(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Rt && f(document.body, "user-select", ""), f(h, "transform", ""), t && (kt && (t.cancelable && t.preventDefault(), !i.dropBubble && t.stopPropagation()), m && m.parentNode && m.parentNode.removeChild(m), (x === C || D && D.lastPutMode !== "clone") && A && A.parentNode && A.parentNode.removeChild(A), h && (this.nativeDraggable && E(h, "dragend", this), Ue(h), h.style["will-change"] = "", kt && !$t && B(h, D ? D.options.ghostClass : this.options.ghostClass, !1), B(h, this.options.chosenClass, !1), N({
|
|
1505
1505
|
sortable: this,
|
|
1506
1506
|
name: "unchoose",
|
|
1507
1507
|
toEl: C,
|
|
1508
1508
|
newIndex: null,
|
|
1509
1509
|
newDraggableIndex: null,
|
|
1510
1510
|
originalEvent: t
|
|
1511
|
-
}), x !== C ? (
|
|
1511
|
+
}), x !== C ? (L >= 0 && (N({
|
|
1512
1512
|
rootEl: C,
|
|
1513
1513
|
name: "add",
|
|
1514
1514
|
toEl: C,
|
|
@@ -1530,7 +1530,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1530
1530
|
name: "sort",
|
|
1531
1531
|
toEl: C,
|
|
1532
1532
|
originalEvent: t
|
|
1533
|
-
})), D && D.save()) :
|
|
1533
|
+
})), D && D.save()) : L !== xt && L >= 0 && (N({
|
|
1534
1534
|
sortable: this,
|
|
1535
1535
|
name: "update",
|
|
1536
1536
|
toEl: C,
|
|
@@ -1540,7 +1540,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1540
1540
|
name: "sort",
|
|
1541
1541
|
toEl: C,
|
|
1542
1542
|
originalEvent: t
|
|
1543
|
-
})), g.active && ((
|
|
1543
|
+
})), g.active && ((L == null || L === -1) && (L = xt, st = Lt), N({
|
|
1544
1544
|
sortable: this,
|
|
1545
1545
|
name: "end",
|
|
1546
1546
|
toEl: C,
|
|
@@ -1548,9 +1548,9 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1548
1548
|
}), this.save()))), this._nulling();
|
|
1549
1549
|
},
|
|
1550
1550
|
_nulling: function() {
|
|
1551
|
-
k("nulling", this), x =
|
|
1551
|
+
k("nulling", this), x = h = C = m = vt = A = ie = lt = ft = j = kt = L = st = xt = Lt = wt = Ut = D = Gt = g.dragged = g.ghost = g.clone = g.active = null, ce.forEach(function(t) {
|
|
1552
1552
|
t.checked = !0;
|
|
1553
|
-
}),
|
|
1553
|
+
}), ce.length = Re = Be = 0;
|
|
1554
1554
|
},
|
|
1555
1555
|
handleEvent: function(t) {
|
|
1556
1556
|
switch (t.type) {
|
|
@@ -1560,7 +1560,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1560
1560
|
break;
|
|
1561
1561
|
case "dragenter":
|
|
1562
1562
|
case "dragover":
|
|
1563
|
-
|
|
1563
|
+
h && (this._onDragOver(t), Yo(t));
|
|
1564
1564
|
break;
|
|
1565
1565
|
case "selectstart":
|
|
1566
1566
|
t.preventDefault();
|
|
@@ -1572,8 +1572,8 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1572
1572
|
* @returns {String[]}
|
|
1573
1573
|
*/
|
|
1574
1574
|
toArray: function() {
|
|
1575
|
-
for (var t = [], e, i = this.el.children,
|
|
1576
|
-
e = i[
|
|
1575
|
+
for (var t = [], e, i = this.el.children, n = 0, r = i.length, s = this.options; n < r; n++)
|
|
1576
|
+
e = i[n], Z(e, s.draggable, this.el, !1) && t.push(e.getAttribute(s.dataIdAttr) || Ko(e));
|
|
1577
1577
|
return t;
|
|
1578
1578
|
},
|
|
1579
1579
|
/**
|
|
@@ -1581,12 +1581,12 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1581
1581
|
* @param {String[]} order order of the items
|
|
1582
1582
|
*/
|
|
1583
1583
|
sort: function(t, e) {
|
|
1584
|
-
var i = {},
|
|
1584
|
+
var i = {}, n = this.el;
|
|
1585
1585
|
this.toArray().forEach(function(r, s) {
|
|
1586
|
-
var l =
|
|
1587
|
-
Z(l, this.options.draggable,
|
|
1586
|
+
var l = n.children[s];
|
|
1587
|
+
Z(l, this.options.draggable, n, !1) && (i[r] = l);
|
|
1588
1588
|
}, this), e && this.captureAnimationState(), t.forEach(function(r) {
|
|
1589
|
-
i[r] && (
|
|
1589
|
+
i[r] && (n.removeChild(i[r]), n.appendChild(i[r]));
|
|
1590
1590
|
}), e && this.animateAll();
|
|
1591
1591
|
},
|
|
1592
1592
|
/**
|
|
@@ -1615,8 +1615,8 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1615
1615
|
var i = this.options;
|
|
1616
1616
|
if (e === void 0)
|
|
1617
1617
|
return i[t];
|
|
1618
|
-
var
|
|
1619
|
-
typeof
|
|
1618
|
+
var n = Wt.modifyOption(this, t, e);
|
|
1619
|
+
typeof n < "u" ? i[t] = n : i[t] = e, t === "group" && Yi(i);
|
|
1620
1620
|
},
|
|
1621
1621
|
/**
|
|
1622
1622
|
* Destroy
|
|
@@ -1626,7 +1626,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1626
1626
|
var t = this.el;
|
|
1627
1627
|
t[U] = null, E(t, "mousedown", this._onTapStart), E(t, "touchstart", this._onTapStart), E(t, "pointerdown", this._onTapStart), this.nativeDraggable && (E(t, "dragover", this), E(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(e) {
|
|
1628
1628
|
e.removeAttribute("draggable");
|
|
1629
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
1629
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), he.splice(he.indexOf(this.el), 1), this.el = t = null;
|
|
1630
1630
|
},
|
|
1631
1631
|
_hideClone: function() {
|
|
1632
1632
|
if (!lt) {
|
|
@@ -1643,70 +1643,70 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1643
1643
|
if (lt) {
|
|
1644
1644
|
if (k("showClone", this), g.eventCanceled)
|
|
1645
1645
|
return;
|
|
1646
|
-
|
|
1646
|
+
h.parentNode == x && !this.options.group.revertClone ? x.insertBefore(A, h) : vt ? x.insertBefore(A, vt) : x.appendChild(A), this.options.group.revertClone && this.animate(h, A), f(A, "display", ""), lt = !1;
|
|
1647
1647
|
}
|
|
1648
1648
|
}
|
|
1649
1649
|
};
|
|
1650
|
-
function
|
|
1651
|
-
|
|
1650
|
+
function Yo(o) {
|
|
1651
|
+
o.dataTransfer && (o.dataTransfer.dropEffect = "move"), o.cancelable && o.preventDefault();
|
|
1652
1652
|
}
|
|
1653
|
-
function Qt(
|
|
1654
|
-
var a, d =
|
|
1655
|
-
return window.CustomEvent && !
|
|
1653
|
+
function Qt(o, t, e, i, n, r, s, l) {
|
|
1654
|
+
var a, d = o[U], c = d.options.onMove, u;
|
|
1655
|
+
return window.CustomEvent && !ot && !qt ? a = new CustomEvent("move", {
|
|
1656
1656
|
bubbles: !0,
|
|
1657
1657
|
cancelable: !0
|
|
1658
|
-
}) : (a = document.createEvent("Event"), a.initEvent("move", !0, !0)), a.to = t, a.from =
|
|
1658
|
+
}) : (a = document.createEvent("Event"), a.initEvent("move", !0, !0)), a.to = t, a.from = o, a.dragged = e, a.draggedRect = i, a.related = n || t, a.relatedRect = r || T(t), a.willInsertAfter = l, a.originalEvent = s, o.dispatchEvent(a), c && (u = c.call(d, a, s)), u;
|
|
1659
1659
|
}
|
|
1660
|
-
function Ue(
|
|
1661
|
-
|
|
1660
|
+
function Ue(o) {
|
|
1661
|
+
o.draggable = !1;
|
|
1662
1662
|
}
|
|
1663
|
-
function
|
|
1663
|
+
function jo() {
|
|
1664
1664
|
We = !1;
|
|
1665
1665
|
}
|
|
1666
|
-
function
|
|
1667
|
-
var i = T(Tt(e.el, 0, e.options, !0)),
|
|
1668
|
-
return t ?
|
|
1666
|
+
function qo(o, t, e) {
|
|
1667
|
+
var i = T(Tt(e.el, 0, e.options, !0)), n = 10;
|
|
1668
|
+
return t ? o.clientX < i.left - n || o.clientY < i.top && o.clientX < i.right : o.clientY < i.top - n || o.clientY < i.bottom && o.clientX < i.left;
|
|
1669
1669
|
}
|
|
1670
|
-
function
|
|
1671
|
-
var i = T(
|
|
1672
|
-
return t ?
|
|
1670
|
+
function Wo(o, t, e) {
|
|
1671
|
+
var i = T(oi(e.el, e.options.draggable)), n = 10;
|
|
1672
|
+
return t ? o.clientX > i.right + n || o.clientX <= i.right && o.clientY > i.bottom && o.clientX >= i.left : o.clientX > i.right && o.clientY > i.top || o.clientX <= i.right && o.clientY > i.bottom + n;
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1675
|
-
var a = i ?
|
|
1674
|
+
function Zo(o, t, e, i, n, r, s, l) {
|
|
1675
|
+
var a = i ? o.clientY : o.clientX, d = i ? e.height : e.width, c = i ? e.top : e.left, u = i ? e.bottom : e.right, p = !1;
|
|
1676
1676
|
if (!s) {
|
|
1677
|
-
if (l &&
|
|
1678
|
-
if (!Ft && (Ut === 1 ? a >
|
|
1677
|
+
if (l && oe < d * n) {
|
|
1678
|
+
if (!Ft && (Ut === 1 ? a > c + d * r / 2 : a < u - d * r / 2) && (Ft = !0), Ft)
|
|
1679
1679
|
p = !0;
|
|
1680
|
-
else if (Ut === 1 ? a <
|
|
1680
|
+
else if (Ut === 1 ? a < c + oe : a > u - oe)
|
|
1681
1681
|
return -Ut;
|
|
1682
|
-
} else if (a >
|
|
1683
|
-
return
|
|
1682
|
+
} else if (a > c + d * (1 - n) / 2 && a < u - d * (1 - n) / 2)
|
|
1683
|
+
return Go(t);
|
|
1684
1684
|
}
|
|
1685
|
-
return p = p || s, p && (a <
|
|
1685
|
+
return p = p || s, p && (a < c + d * r / 2 || a > u - d * r / 2) ? a > c + d / 2 ? 1 : -1 : 0;
|
|
1686
1686
|
}
|
|
1687
|
-
function
|
|
1688
|
-
return F(
|
|
1687
|
+
function Go(o) {
|
|
1688
|
+
return F(h) < F(o) ? 1 : -1;
|
|
1689
1689
|
}
|
|
1690
|
-
function
|
|
1691
|
-
for (var t =
|
|
1690
|
+
function Ko(o) {
|
|
1691
|
+
for (var t = o.tagName + o.className + o.src + o.href + o.textContent, e = t.length, i = 0; e--; )
|
|
1692
1692
|
i += t.charCodeAt(e);
|
|
1693
1693
|
return i.toString(36);
|
|
1694
1694
|
}
|
|
1695
|
-
function
|
|
1696
|
-
|
|
1697
|
-
for (var t =
|
|
1695
|
+
function Jo(o) {
|
|
1696
|
+
ce.length = 0;
|
|
1697
|
+
for (var t = o.getElementsByTagName("input"), e = t.length; e--; ) {
|
|
1698
1698
|
var i = t[e];
|
|
1699
|
-
i.checked &&
|
|
1699
|
+
i.checked && ce.push(i);
|
|
1700
1700
|
}
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1703
|
-
return setTimeout(
|
|
1702
|
+
function ne(o) {
|
|
1703
|
+
return setTimeout(o, 0);
|
|
1704
1704
|
}
|
|
1705
|
-
function Ze(
|
|
1706
|
-
return clearTimeout(
|
|
1705
|
+
function Ze(o) {
|
|
1706
|
+
return clearTimeout(o);
|
|
1707
1707
|
}
|
|
1708
|
-
De && w(document, "touchmove", function(
|
|
1709
|
-
(g.active || $t) &&
|
|
1708
|
+
De && w(document, "touchmove", function(o) {
|
|
1709
|
+
(g.active || $t) && o.cancelable && o.preventDefault();
|
|
1710
1710
|
});
|
|
1711
1711
|
g.utils = {
|
|
1712
1712
|
on: w,
|
|
@@ -1716,22 +1716,22 @@ g.utils = {
|
|
|
1716
1716
|
is: function(t, e) {
|
|
1717
1717
|
return !!Z(t, e, t, !1);
|
|
1718
1718
|
},
|
|
1719
|
-
extend:
|
|
1720
|
-
throttle:
|
|
1719
|
+
extend: No,
|
|
1720
|
+
throttle: Li,
|
|
1721
1721
|
closest: Z,
|
|
1722
1722
|
toggleClass: B,
|
|
1723
1723
|
clone: Fi,
|
|
1724
1724
|
index: F,
|
|
1725
|
-
nextTick:
|
|
1725
|
+
nextTick: ne,
|
|
1726
1726
|
cancelNextTick: Ze,
|
|
1727
1727
|
detectDirection: Xi,
|
|
1728
1728
|
getChild: Tt
|
|
1729
1729
|
};
|
|
1730
|
-
g.get = function(
|
|
1731
|
-
return
|
|
1730
|
+
g.get = function(o) {
|
|
1731
|
+
return o[U];
|
|
1732
1732
|
};
|
|
1733
1733
|
g.mount = function() {
|
|
1734
|
-
for (var
|
|
1734
|
+
for (var o = arguments.length, t = new Array(o), e = 0; e < o; e++)
|
|
1735
1735
|
t[e] = arguments[e];
|
|
1736
1736
|
t[0].constructor === Array && (t = t[0]), t.forEach(function(i) {
|
|
1737
1737
|
if (!i.prototype || !i.prototype.constructor)
|
|
@@ -1739,13 +1739,13 @@ g.mount = function() {
|
|
|
1739
1739
|
i.utils && (g.utils = K(K({}, g.utils), i.utils)), Wt.mount(i);
|
|
1740
1740
|
});
|
|
1741
1741
|
};
|
|
1742
|
-
g.create = function(
|
|
1743
|
-
return new g(
|
|
1742
|
+
g.create = function(o, t) {
|
|
1743
|
+
return new g(o, t);
|
|
1744
1744
|
};
|
|
1745
|
-
g.version =
|
|
1745
|
+
g.version = Oo;
|
|
1746
1746
|
var S = [], It, Ge, Ke = !1, Fe, ze, pe, Vt;
|
|
1747
|
-
function
|
|
1748
|
-
function
|
|
1747
|
+
function Qo() {
|
|
1748
|
+
function o() {
|
|
1749
1749
|
this.defaults = {
|
|
1750
1750
|
scroll: !0,
|
|
1751
1751
|
forceAutoScrollFallback: !1,
|
|
@@ -1756,7 +1756,7 @@ function Qn() {
|
|
|
1756
1756
|
for (var t in this)
|
|
1757
1757
|
t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
|
|
1758
1758
|
}
|
|
1759
|
-
return
|
|
1759
|
+
return o.prototype = {
|
|
1760
1760
|
dragStarted: function(e) {
|
|
1761
1761
|
var i = e.originalEvent;
|
|
1762
1762
|
this.sortable.nativeDraggable ? w(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? w(document, "pointermove", this._handleFallbackAutoScroll) : i.touches ? w(document, "touchmove", this._handleFallbackAutoScroll) : w(document, "mousemove", this._handleFallbackAutoScroll);
|
|
@@ -1766,7 +1766,7 @@ function Qn() {
|
|
|
1766
1766
|
!this.options.dragOverBubble && !i.rootEl && this._handleAutoScroll(i);
|
|
1767
1767
|
},
|
|
1768
1768
|
drop: function() {
|
|
1769
|
-
this.sortable.nativeDraggable ? E(document, "dragover", this._handleAutoScroll) : (E(document, "pointermove", this._handleFallbackAutoScroll), E(document, "touchmove", this._handleFallbackAutoScroll), E(document, "mousemove", this._handleFallbackAutoScroll)), Ti(), re(),
|
|
1769
|
+
this.sortable.nativeDraggable ? E(document, "dragover", this._handleAutoScroll) : (E(document, "pointermove", this._handleFallbackAutoScroll), E(document, "touchmove", this._handleFallbackAutoScroll), E(document, "mousemove", this._handleFallbackAutoScroll)), Ti(), re(), ko();
|
|
1770
1770
|
},
|
|
1771
1771
|
nulling: function() {
|
|
1772
1772
|
pe = Ge = It = Ke = Vt = Fe = ze = null, S.length = 0;
|
|
@@ -1775,13 +1775,13 @@ function Qn() {
|
|
|
1775
1775
|
this._handleAutoScroll(e, !0);
|
|
1776
1776
|
},
|
|
1777
1777
|
_handleAutoScroll: function(e, i) {
|
|
1778
|
-
var
|
|
1779
|
-
if (pe = e, i || this.options.forceAutoScrollFallback || qt ||
|
|
1778
|
+
var n = this, r = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, l = document.elementFromPoint(r, s);
|
|
1779
|
+
if (pe = e, i || this.options.forceAutoScrollFallback || qt || ot || Rt) {
|
|
1780
1780
|
Xe(e, this.options, l, i);
|
|
1781
1781
|
var a = dt(l, !0);
|
|
1782
1782
|
Ke && (!Vt || r !== Fe || s !== ze) && (Vt && Ti(), Vt = setInterval(function() {
|
|
1783
1783
|
var d = dt(document.elementFromPoint(r, s), !0);
|
|
1784
|
-
d !== a && (a = d, re()), Xe(e,
|
|
1784
|
+
d !== a && (a = d, re()), Xe(e, n.options, d, i);
|
|
1785
1785
|
}, 10), Fe = r, ze = s);
|
|
1786
1786
|
} else {
|
|
1787
1787
|
if (!this.options.bubbleScroll || dt(l, !0) === G()) {
|
|
@@ -1791,35 +1791,35 @@ function Qn() {
|
|
|
1791
1791
|
Xe(e, this.options, dt(l, !1), !1);
|
|
1792
1792
|
}
|
|
1793
1793
|
}
|
|
1794
|
-
}, it(
|
|
1794
|
+
}, it(o, {
|
|
1795
1795
|
pluginName: "scroll",
|
|
1796
1796
|
initializeByDefault: !0
|
|
1797
1797
|
});
|
|
1798
1798
|
}
|
|
1799
1799
|
function re() {
|
|
1800
|
-
S.forEach(function(
|
|
1801
|
-
clearInterval(
|
|
1800
|
+
S.forEach(function(o) {
|
|
1801
|
+
clearInterval(o.pid);
|
|
1802
1802
|
}), S = [];
|
|
1803
1803
|
}
|
|
1804
1804
|
function Ti() {
|
|
1805
1805
|
clearInterval(Vt);
|
|
1806
1806
|
}
|
|
1807
|
-
var Xe =
|
|
1807
|
+
var Xe = Li(function(o, t, e, i) {
|
|
1808
1808
|
if (t.scroll) {
|
|
1809
|
-
var
|
|
1810
|
-
Ge !== e && (Ge = e, re(), It = t.scroll,
|
|
1809
|
+
var n = (o.touches ? o.touches[0] : o).clientX, r = (o.touches ? o.touches[0] : o).clientY, s = t.scrollSensitivity, l = t.scrollSpeed, a = G(), d = !1, c;
|
|
1810
|
+
Ge !== e && (Ge = e, re(), It = t.scroll, c = t.scrollFn, It === !0 && (It = dt(e, !0)));
|
|
1811
1811
|
var u = 0, p = It;
|
|
1812
1812
|
do {
|
|
1813
|
-
var v = p, y = T(v), b = y.top, X = y.bottom, J = y.left,
|
|
1814
|
-
v === a ? (ut = Y <
|
|
1815
|
-
var
|
|
1813
|
+
var v = p, y = T(v), b = y.top, X = y.bottom, J = y.left, O = y.right, Y = y.width, I = y.height, ut = void 0, W = void 0, ht = v.scrollWidth, Dt = v.scrollHeight, V = f(v), Pt = v.scrollLeft, nt = v.scrollTop;
|
|
1814
|
+
v === a ? (ut = Y < ht && (V.overflowX === "auto" || V.overflowX === "scroll" || V.overflowX === "visible"), W = I < Dt && (V.overflowY === "auto" || V.overflowY === "scroll" || V.overflowY === "visible")) : (ut = Y < ht && (V.overflowX === "auto" || V.overflowX === "scroll"), W = I < Dt && (V.overflowY === "auto" || V.overflowY === "scroll"));
|
|
1815
|
+
var Ot = ut && (Math.abs(O - n) <= s && Pt + Y < ht) - (Math.abs(J - n) <= s && !!Pt), Q = W && (Math.abs(X - r) <= s && nt + I < Dt) - (Math.abs(b - r) <= s && !!nt);
|
|
1816
1816
|
if (!S[u])
|
|
1817
|
-
for (var
|
|
1818
|
-
S[
|
|
1819
|
-
(S[u].vx !=
|
|
1817
|
+
for (var ct = 0; ct <= u; ct++)
|
|
1818
|
+
S[ct] || (S[ct] = {});
|
|
1819
|
+
(S[u].vx != Ot || S[u].vy != Q || S[u].el !== v) && (S[u].el = v, S[u].vx = Ot, S[u].vy = Q, clearInterval(S[u].pid), (Ot != 0 || Q != 0) && (d = !0, S[u].pid = setInterval((function() {
|
|
1820
1820
|
i && this.layer === 0 && g.active._onTouchMove(pe);
|
|
1821
|
-
var
|
|
1822
|
-
typeof
|
|
1821
|
+
var Ht = S[this.layer].vy ? S[this.layer].vy * l : 0, rt = S[this.layer].vx ? S[this.layer].vx * l : 0;
|
|
1822
|
+
typeof c == "function" && c.call(g.dragged.parentNode[U], rt, Ht, o, pe, S[this.layer].el) !== "continue" || Ui(S[this.layer].el, rt, Ht);
|
|
1823
1823
|
}).bind({
|
|
1824
1824
|
layer: u
|
|
1825
1825
|
}), 24))), u++;
|
|
@@ -1827,20 +1827,20 @@ var Xe = Ri(function(n, t, e, i) {
|
|
|
1827
1827
|
Ke = d;
|
|
1828
1828
|
}
|
|
1829
1829
|
}, 30), Wi = function(t) {
|
|
1830
|
-
var e = t.originalEvent, i = t.putSortable,
|
|
1830
|
+
var e = t.originalEvent, i = t.putSortable, n = t.dragEl, r = t.activeSortable, s = t.dispatchSortableEvent, l = t.hideGhostForTarget, a = t.unhideGhostForTarget;
|
|
1831
1831
|
if (e) {
|
|
1832
1832
|
var d = i || r;
|
|
1833
1833
|
l();
|
|
1834
|
-
var
|
|
1834
|
+
var c = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, u = document.elementFromPoint(c.clientX, c.clientY);
|
|
1835
1835
|
a(), d && !d.el.contains(u) && (s("spill"), this.onSpill({
|
|
1836
|
-
dragEl:
|
|
1836
|
+
dragEl: n,
|
|
1837
1837
|
putSortable: i
|
|
1838
1838
|
}));
|
|
1839
1839
|
}
|
|
1840
1840
|
};
|
|
1841
|
-
function
|
|
1841
|
+
function ni() {
|
|
1842
1842
|
}
|
|
1843
|
-
|
|
1843
|
+
ni.prototype = {
|
|
1844
1844
|
startIndex: null,
|
|
1845
1845
|
dragStart: function(t) {
|
|
1846
1846
|
var e = t.oldDraggableIndex;
|
|
@@ -1849,79 +1849,79 @@ oi.prototype = {
|
|
|
1849
1849
|
onSpill: function(t) {
|
|
1850
1850
|
var e = t.dragEl, i = t.putSortable;
|
|
1851
1851
|
this.sortable.captureAnimationState(), i && i.captureAnimationState();
|
|
1852
|
-
var
|
|
1853
|
-
|
|
1852
|
+
var n = Tt(this.sortable.el, this.startIndex, this.options);
|
|
1853
|
+
n ? this.sortable.el.insertBefore(e, n) : this.sortable.el.appendChild(e), this.sortable.animateAll(), i && i.animateAll();
|
|
1854
1854
|
},
|
|
1855
1855
|
drop: Wi
|
|
1856
1856
|
};
|
|
1857
|
-
it(
|
|
1857
|
+
it(ni, {
|
|
1858
1858
|
pluginName: "revertOnSpill"
|
|
1859
1859
|
});
|
|
1860
1860
|
function ri() {
|
|
1861
1861
|
}
|
|
1862
1862
|
ri.prototype = {
|
|
1863
1863
|
onSpill: function(t) {
|
|
1864
|
-
var e = t.dragEl, i = t.putSortable,
|
|
1865
|
-
|
|
1864
|
+
var e = t.dragEl, i = t.putSortable, n = i || this.sortable;
|
|
1865
|
+
n.captureAnimationState(), e.parentNode && e.parentNode.removeChild(e), n.animateAll();
|
|
1866
1866
|
},
|
|
1867
1867
|
drop: Wi
|
|
1868
1868
|
};
|
|
1869
1869
|
it(ri, {
|
|
1870
1870
|
pluginName: "removeOnSpill"
|
|
1871
1871
|
});
|
|
1872
|
-
g.mount(new
|
|
1873
|
-
g.mount(ri,
|
|
1874
|
-
const
|
|
1872
|
+
g.mount(new Qo());
|
|
1873
|
+
g.mount(ri, ni);
|
|
1874
|
+
const tn = (o, t, e) => {
|
|
1875
1875
|
let i = [];
|
|
1876
|
-
|
|
1876
|
+
o._sortable = g.create(o, {
|
|
1877
1877
|
handle: ".drag-handle",
|
|
1878
1878
|
filter: ".drag-handle.disabled",
|
|
1879
1879
|
swapThreshold: 0.5,
|
|
1880
1880
|
animation: 150,
|
|
1881
1881
|
easing: "cubic-bezier(1, 0, 0, 1)",
|
|
1882
|
-
onStart: (
|
|
1883
|
-
const r =
|
|
1882
|
+
onStart: (n) => {
|
|
1883
|
+
const r = n.item;
|
|
1884
1884
|
i = Array.prototype.slice.call(r.parentNode.childNodes), i = i.filter(
|
|
1885
1885
|
(s) => s.nodeType != Node.ELEMENT_NODE || !s.classList.contains("sortable-fallback")
|
|
1886
1886
|
);
|
|
1887
1887
|
},
|
|
1888
|
-
onEnd: (
|
|
1889
|
-
const s =
|
|
1888
|
+
onEnd: (n) => {
|
|
1889
|
+
const s = n.item.parentNode;
|
|
1890
1890
|
for (const a of i)
|
|
1891
1891
|
s.appendChild(a);
|
|
1892
|
-
if (
|
|
1892
|
+
if (n.oldIndex == n.newIndex)
|
|
1893
1893
|
return;
|
|
1894
1894
|
const l = t.getArray().find(
|
|
1895
1895
|
(a) => (
|
|
1896
1896
|
// @ts-ignore
|
|
1897
1897
|
a.ol_uid === /** @type Element & {layer: import("ol/layer").Layer} */
|
|
1898
|
-
|
|
1898
|
+
n.item.querySelector("eox-layercontrol-layer").layer.ol_uid
|
|
1899
1899
|
)
|
|
1900
1900
|
);
|
|
1901
|
-
t.remove(l), t.insertAt(t.getLength() -
|
|
1901
|
+
t.remove(l), t.insertAt(t.getLength() - n.newIndex, l), e.requestUpdate();
|
|
1902
1902
|
}
|
|
1903
1903
|
});
|
|
1904
|
-
}, Je = (
|
|
1904
|
+
}, Je = (o, t, e) => {
|
|
1905
1905
|
let i = [];
|
|
1906
|
-
const
|
|
1906
|
+
const n = (r, s, l) => {
|
|
1907
1907
|
i = [...i, ...r.filter((d) => d.get(s) === l)];
|
|
1908
1908
|
const a = r.filter((d) => d.getLayers);
|
|
1909
1909
|
return a.length > 0 && a.forEach(
|
|
1910
|
-
(d) =>
|
|
1910
|
+
(d) => n(d.getLayers().getArray(), s, l)
|
|
1911
1911
|
), i;
|
|
1912
1912
|
};
|
|
1913
|
-
return o
|
|
1914
|
-
},
|
|
1915
|
-
var e, i,
|
|
1916
|
-
if (!(!
|
|
1913
|
+
return n(o, t, e), i;
|
|
1914
|
+
}, en = (o, t) => {
|
|
1915
|
+
var e, i, n;
|
|
1916
|
+
if (!(!o || !t))
|
|
1917
1917
|
return (
|
|
1918
1918
|
/** @type {import("ol/layer").Group} */
|
|
1919
|
-
|
|
1919
|
+
o.getLayers ? "group" : (n = (e = t.getInteractions().getArray().filter((r) => r.freehand_ !== void 0).map((r) => r.source_)) == null ? void 0 : e.ol_uid) != null && n.includes(
|
|
1920
1920
|
// @ts-ignore
|
|
1921
|
-
|
|
1921
|
+
o.getSource ? (i = o.getSource()) == null ? void 0 : i.ol_uid : void 0
|
|
1922
1922
|
) ? "draw" : (
|
|
1923
1923
|
// @ts-ignore
|
|
1924
|
-
|
|
1924
|
+
o.declutter_ !== void 0 ? "vector" : "raster"
|
|
1925
1925
|
)
|
|
1926
1926
|
);
|
|
1927
1927
|
};
|
|
@@ -1931,28 +1931,28 @@ const to = (n, t, e) => {
|
|
|
1931
1931
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1932
1932
|
*/
|
|
1933
1933
|
const si = ei(class extends ii {
|
|
1934
|
-
constructor(
|
|
1935
|
-
if (super(
|
|
1934
|
+
constructor(o) {
|
|
1935
|
+
if (super(o), o.type !== mt.PROPERTY && o.type !== mt.ATTRIBUTE && o.type !== mt.BOOLEAN_ATTRIBUTE)
|
|
1936
1936
|
throw Error("The `live` directive is not allowed on child or event bindings");
|
|
1937
|
-
if (!
|
|
1937
|
+
if (!Ao(o))
|
|
1938
1938
|
throw Error("`live` bindings can only contain a single expression");
|
|
1939
1939
|
}
|
|
1940
|
-
render(
|
|
1941
|
-
return
|
|
1940
|
+
render(o) {
|
|
1941
|
+
return o;
|
|
1942
1942
|
}
|
|
1943
|
-
update(
|
|
1943
|
+
update(o, [t]) {
|
|
1944
1944
|
if (t === q || t === $)
|
|
1945
1945
|
return t;
|
|
1946
|
-
const e =
|
|
1947
|
-
if (
|
|
1946
|
+
const e = o.element, i = o.name;
|
|
1947
|
+
if (o.type === mt.PROPERTY) {
|
|
1948
1948
|
if (t === e[i])
|
|
1949
1949
|
return q;
|
|
1950
|
-
} else if (
|
|
1950
|
+
} else if (o.type === mt.BOOLEAN_ATTRIBUTE) {
|
|
1951
1951
|
if (!!t === e.hasAttribute(i))
|
|
1952
1952
|
return q;
|
|
1953
|
-
} else if (
|
|
1953
|
+
} else if (o.type === mt.ATTRIBUTE && e.getAttribute(i) === t + "")
|
|
1954
1954
|
return q;
|
|
1955
|
-
return ki(
|
|
1955
|
+
return ki(o), t;
|
|
1956
1956
|
}
|
|
1957
1957
|
});
|
|
1958
1958
|
/**
|
|
@@ -1980,16 +1980,16 @@ class Qe extends ii {
|
|
|
1980
1980
|
}
|
|
1981
1981
|
}
|
|
1982
1982
|
Qe.directiveName = "unsafeHTML", Qe.resultType = 1;
|
|
1983
|
-
const
|
|
1983
|
+
const on = ei(Qe);
|
|
1984
1984
|
/**
|
|
1985
1985
|
* @license
|
|
1986
1986
|
* Copyright 2021 Google LLC
|
|
1987
1987
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1988
1988
|
*/
|
|
1989
|
-
function* se(
|
|
1990
|
-
if (
|
|
1989
|
+
function* se(o, t) {
|
|
1990
|
+
if (o !== void 0) {
|
|
1991
1991
|
let e = 0;
|
|
1992
|
-
for (const i of
|
|
1992
|
+
for (const i of o)
|
|
1993
1993
|
yield t(i, e++);
|
|
1994
1994
|
}
|
|
1995
1995
|
}
|
|
@@ -1999,14 +1999,17 @@ class Zi extends z {
|
|
|
1999
1999
|
super();
|
|
2000
2000
|
M(this, fe, "");
|
|
2001
2001
|
M(this, ge, "");
|
|
2002
|
-
this.layer = null, this.unstyled = !1;
|
|
2002
|
+
this.layer = null, this.unstyled = !1, this.noShadow = !0;
|
|
2003
|
+
}
|
|
2004
|
+
createRenderRoot() {
|
|
2005
|
+
return this.noShadow ? this : super.createRenderRoot();
|
|
2003
2006
|
}
|
|
2004
2007
|
render() {
|
|
2005
2008
|
var e;
|
|
2006
2009
|
return _`
|
|
2007
2010
|
<style>
|
|
2008
|
-
${
|
|
2009
|
-
${!this.unstyled &&
|
|
2011
|
+
${H(this, fe)}
|
|
2012
|
+
${!this.unstyled && H(this, ge)}
|
|
2010
2013
|
</style>
|
|
2011
2014
|
<input
|
|
2012
2015
|
type="range"
|
|
@@ -2019,8 +2022,8 @@ class Zi extends z {
|
|
|
2019
2022
|
<button
|
|
2020
2023
|
class="delete"
|
|
2021
2024
|
@click=${() => {
|
|
2022
|
-
var i,
|
|
2023
|
-
(i = this.layer) == null || i.set("layerControlOptional", !0), (
|
|
2025
|
+
var i, n;
|
|
2026
|
+
(i = this.layer) == null || i.set("layerControlOptional", !0), (n = this.layer) == null || n.setVisible(!1), this.dispatchEvent(
|
|
2024
2027
|
new CustomEvent("changed", { detail: this.layer, bubbles: !0 })
|
|
2025
2028
|
);
|
|
2026
2029
|
}}
|
|
@@ -2030,9 +2033,10 @@ class Zi extends z {
|
|
|
2030
2033
|
`;
|
|
2031
2034
|
}
|
|
2032
2035
|
}
|
|
2033
|
-
fe = new WeakMap(), ge = new WeakMap(),
|
|
2036
|
+
fe = new WeakMap(), ge = new WeakMap(), R(Zi, "properties", {
|
|
2034
2037
|
layer: { attribute: !1 },
|
|
2035
|
-
unstyled: { type: Boolean }
|
|
2038
|
+
unstyled: { type: Boolean },
|
|
2039
|
+
noShadow: { type: Boolean }
|
|
2036
2040
|
});
|
|
2037
2041
|
customElements.define(
|
|
2038
2042
|
"eox-layercontrol-layerconfig",
|
|
@@ -2084,13 +2088,16 @@ class Gi extends z {
|
|
|
2084
2088
|
border-top: 1px solid #0041701a;
|
|
2085
2089
|
}
|
|
2086
2090
|
`);
|
|
2087
|
-
this.actions = [], this.selectedTab = 0, this.tabs = [], this.unstyled = !1;
|
|
2091
|
+
this.actions = [], this.selectedTab = 0, this.tabs = [], this.unstyled = !1, this.noShadow = !0;
|
|
2092
|
+
}
|
|
2093
|
+
createRenderRoot() {
|
|
2094
|
+
return this.noShadow ? this : super.createRenderRoot();
|
|
2088
2095
|
}
|
|
2089
2096
|
render() {
|
|
2090
2097
|
return _`
|
|
2091
2098
|
<style>
|
|
2092
|
-
${
|
|
2093
|
-
${!this.unstyled &&
|
|
2099
|
+
${H(this, me)}
|
|
2100
|
+
${!this.unstyled && H(this, ve)}
|
|
2094
2101
|
</style>
|
|
2095
2102
|
<div class="tabbed">
|
|
2096
2103
|
${et(
|
|
@@ -2137,14 +2144,15 @@ class Gi extends z {
|
|
|
2137
2144
|
`;
|
|
2138
2145
|
}
|
|
2139
2146
|
}
|
|
2140
|
-
me = new WeakMap(), ve = new WeakMap(),
|
|
2147
|
+
me = new WeakMap(), ve = new WeakMap(), R(Gi, "properties", {
|
|
2141
2148
|
actions: { attribute: !1 },
|
|
2142
2149
|
selectedTab: { state: !0 },
|
|
2143
2150
|
tabs: { attribute: !1 },
|
|
2144
|
-
unstyled: { type: Boolean }
|
|
2151
|
+
unstyled: { type: Boolean },
|
|
2152
|
+
noShadow: { type: Boolean }
|
|
2145
2153
|
});
|
|
2146
2154
|
customElements.define("eox-layercontrol-tabs", Gi);
|
|
2147
|
-
const
|
|
2155
|
+
const nn = `
|
|
2148
2156
|
button {
|
|
2149
2157
|
/* TODO: why does this only work here and not from :root? */
|
|
2150
2158
|
--primary-color: #004170;
|
|
@@ -2233,7 +2241,7 @@ button.small {
|
|
|
2233
2241
|
padding: 12.4px;
|
|
2234
2242
|
font-size: .75rem;
|
|
2235
2243
|
}
|
|
2236
|
-
`,
|
|
2244
|
+
`, rn = `
|
|
2237
2245
|
input[type=radio] {
|
|
2238
2246
|
appearance: none;
|
|
2239
2247
|
-webkit-appearance: none;
|
|
@@ -2284,7 +2292,7 @@ input[type=checkbox]:checked:after {
|
|
|
2284
2292
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");
|
|
2285
2293
|
|
|
2286
2294
|
}
|
|
2287
|
-
`,
|
|
2295
|
+
`, sn = `
|
|
2288
2296
|
input[type="range"] {
|
|
2289
2297
|
-webkit-appearance: none;
|
|
2290
2298
|
width: 90%;
|
|
@@ -2370,11 +2378,11 @@ class Ji extends z {
|
|
|
2370
2378
|
*
|
|
2371
2379
|
* @param {Array<string>} tools
|
|
2372
2380
|
*/
|
|
2373
|
-
|
|
2381
|
+
R(this, "_parseActions", (e) => e == null ? void 0 : e.filter(
|
|
2374
2382
|
(i) => ["remove", "sort"].filter(
|
|
2375
|
-
(
|
|
2383
|
+
(n) => {
|
|
2376
2384
|
var r;
|
|
2377
|
-
return (r = this.layer) != null && r.get("layerControlDisable") ?
|
|
2385
|
+
return (r = this.layer) != null && r.get("layerControlDisable") ? n !== "sort" : !0;
|
|
2378
2386
|
}
|
|
2379
2387
|
).includes(i)
|
|
2380
2388
|
));
|
|
@@ -2382,12 +2390,12 @@ class Ji extends z {
|
|
|
2382
2390
|
*
|
|
2383
2391
|
* @param {Array<string>} tools
|
|
2384
2392
|
*/
|
|
2385
|
-
|
|
2393
|
+
R(this, "_parseTools", (e) => e == null ? void 0 : e.filter((i) => {
|
|
2386
2394
|
var r;
|
|
2387
|
-
let
|
|
2388
|
-
return ["remove", "sort"].includes(i) && (
|
|
2395
|
+
let n = !0;
|
|
2396
|
+
return ["remove", "sort"].includes(i) && (n = !1), i === "info" && (n = this.layer.get("description")), i === "config" && (n = (r = this.layer.style_) == null ? void 0 : r.color), n;
|
|
2389
2397
|
}));
|
|
2390
|
-
|
|
2398
|
+
R(this, "_removeButton", _`
|
|
2391
2399
|
<button
|
|
2392
2400
|
class="remove-icon icon"
|
|
2393
2401
|
@click=${() => {
|
|
@@ -2403,17 +2411,17 @@ class Ji extends z {
|
|
|
2403
2411
|
${this.unstyled ? "x" : $}
|
|
2404
2412
|
</button>
|
|
2405
2413
|
`);
|
|
2406
|
-
|
|
2414
|
+
R(this, "_sortButton", _`
|
|
2407
2415
|
<button class="sort-icon icon drag-handle">
|
|
2408
2416
|
${this.unstyled ? "sort" : $}
|
|
2409
2417
|
</button>
|
|
2410
2418
|
`);
|
|
2411
2419
|
M(this, ye, "");
|
|
2412
2420
|
M(this, be, `
|
|
2413
|
-
${
|
|
2414
|
-
${
|
|
2421
|
+
${nn}
|
|
2422
|
+
${rn}
|
|
2415
2423
|
${Ki}
|
|
2416
|
-
${
|
|
2424
|
+
${sn}
|
|
2417
2425
|
button.icon.drag-handle {
|
|
2418
2426
|
cursor: n-resize;
|
|
2419
2427
|
}
|
|
@@ -2504,25 +2512,25 @@ class Ji extends z {
|
|
|
2504
2512
|
padding: 12px 6px;
|
|
2505
2513
|
}
|
|
2506
2514
|
`);
|
|
2507
|
-
this.layer = null, this.tools = [], this.unstyled = !1;
|
|
2515
|
+
this.layer = null, this.tools = [], this.unstyled = !1, this.noShadow = !0;
|
|
2508
2516
|
}
|
|
2509
2517
|
createRenderRoot() {
|
|
2510
|
-
return this;
|
|
2518
|
+
return this.noShadow ? this : super.createRenderRoot();
|
|
2511
2519
|
}
|
|
2512
2520
|
render() {
|
|
2513
2521
|
var e, i;
|
|
2514
2522
|
return _`
|
|
2515
2523
|
<style>
|
|
2516
|
-
${
|
|
2517
|
-
${!this.unstyled &&
|
|
2524
|
+
${H(this, ye)}
|
|
2525
|
+
${!this.unstyled && H(this, be)}
|
|
2518
2526
|
</style>
|
|
2519
2527
|
${et(
|
|
2520
2528
|
((e = this._parseActions(this.tools)) == null ? void 0 : e.length) + ((i = this._parseTools(this.tools)) == null ? void 0 : i.length) > 0,
|
|
2521
2529
|
() => {
|
|
2522
|
-
var
|
|
2530
|
+
var n, r;
|
|
2523
2531
|
return _`
|
|
2524
2532
|
${et(
|
|
2525
|
-
((
|
|
2533
|
+
((n = this._parseActions(this.tools)) == null ? void 0 : n.length) === 1 && ((r = this._parseTools(this.tools)) == null ? void 0 : r.length) === 0,
|
|
2526
2534
|
() => _`
|
|
2527
2535
|
<div class="single-action-container">
|
|
2528
2536
|
<div class="single-action">
|
|
@@ -2534,7 +2542,10 @@ class Ji extends z {
|
|
|
2534
2542
|
() => {
|
|
2535
2543
|
var s;
|
|
2536
2544
|
return _`
|
|
2537
|
-
<details
|
|
2545
|
+
<details
|
|
2546
|
+
class="tools"
|
|
2547
|
+
open=${this.layer.get("layerControlToolsExpand") || $}
|
|
2548
|
+
>
|
|
2538
2549
|
<summary>
|
|
2539
2550
|
<button
|
|
2540
2551
|
class="icon ${this.tools.length === 1 ? `${this.tools[0]}-icon` : ""}"
|
|
@@ -2543,6 +2554,7 @@ class Ji extends z {
|
|
|
2543
2554
|
</button>
|
|
2544
2555
|
</summary>
|
|
2545
2556
|
<eox-layercontrol-tabs
|
|
2557
|
+
.noShadow=${!1}
|
|
2546
2558
|
.actions=${this._parseActions(this.tools)}
|
|
2547
2559
|
.tabs=${this._parseTools(this.tools)}
|
|
2548
2560
|
.unstyled=${this.unstyled}
|
|
@@ -2557,7 +2569,7 @@ class Ji extends z {
|
|
|
2557
2569
|
)}
|
|
2558
2570
|
|
|
2559
2571
|
<div slot="info-content">
|
|
2560
|
-
${
|
|
2572
|
+
${on(this.layer.get("description"))}
|
|
2561
2573
|
</div>
|
|
2562
2574
|
<div slot="opacity-content">
|
|
2563
2575
|
<input
|
|
@@ -2589,10 +2601,11 @@ class Ji extends z {
|
|
|
2589
2601
|
`;
|
|
2590
2602
|
}
|
|
2591
2603
|
}
|
|
2592
|
-
ye = new WeakMap(), be = new WeakMap(),
|
|
2604
|
+
ye = new WeakMap(), be = new WeakMap(), R(Ji, "properties", {
|
|
2593
2605
|
layer: { attribute: !1 },
|
|
2594
2606
|
tools: { attribute: !1 },
|
|
2595
|
-
unstyled: { type: Boolean }
|
|
2607
|
+
unstyled: { type: Boolean },
|
|
2608
|
+
noShadow: { type: Boolean }
|
|
2596
2609
|
});
|
|
2597
2610
|
customElements.define(
|
|
2598
2611
|
"eox-layercontrol-layer-tools",
|
|
@@ -2641,16 +2654,16 @@ class Qi extends z {
|
|
|
2641
2654
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230041703a' viewBox='0 0 24 24'%3E%3Ctitle%3Evector-square-edit%3C/title%3E%3Cpath d='M22.7 14.4L21.7 15.4L19.6 13.3L20.6 12.3C20.8 12.1 21.2 12.1 21.4 12.3L22.7 13.6C22.9 13.8 22.9 14.1 22.7 14.4M13 19.9L19.1 13.8L21.2 15.9L15.1 22H13V19.9M11 19.9V19.1L11.6 18.5L12.1 18H8V16H6V8H8V6H16V8H18V12.1L19.1 11L19.3 10.8C19.5 10.6 19.8 10.4 20.1 10.3V8H22.1V2H16.1V4H8V2H2V8H4V16H2V22H8V20L11 19.9M18 4H20V6H18V4M4 4H6V6H4V4M6 20H4V18H6V20Z' /%3E%3C/svg%3E");
|
|
2642
2655
|
}
|
|
2643
2656
|
`);
|
|
2644
|
-
this.layer = null, this.titleProperty = "title", this.tools = [], this.unstyled = !1;
|
|
2657
|
+
this.layer = null, this.titleProperty = "title", this.tools = [], this.unstyled = !1, this.noShadow = !0;
|
|
2645
2658
|
}
|
|
2646
2659
|
createRenderRoot() {
|
|
2647
|
-
return this;
|
|
2660
|
+
return this.noShadow ? this : super.createRenderRoot();
|
|
2648
2661
|
}
|
|
2649
2662
|
render() {
|
|
2650
2663
|
return _`
|
|
2651
2664
|
<style>
|
|
2652
|
-
${
|
|
2653
|
-
${!this.unstyled &&
|
|
2665
|
+
${H(this, Ee)}
|
|
2666
|
+
${!this.unstyled && H(this, we)}
|
|
2654
2667
|
</style>
|
|
2655
2668
|
${et(
|
|
2656
2669
|
this.layer,
|
|
@@ -2683,6 +2696,7 @@ class Qi extends z {
|
|
|
2683
2696
|
</label>
|
|
2684
2697
|
</div>
|
|
2685
2698
|
<eox-layercontrol-layer-tools
|
|
2699
|
+
.noShadow=${!0}
|
|
2686
2700
|
.layer=${this.layer}
|
|
2687
2701
|
.tools=${this.tools}
|
|
2688
2702
|
.unstyled=${this.unstyled}
|
|
@@ -2693,15 +2707,16 @@ class Qi extends z {
|
|
|
2693
2707
|
`;
|
|
2694
2708
|
}
|
|
2695
2709
|
}
|
|
2696
|
-
Ee = new WeakMap(), we = new WeakMap(),
|
|
2710
|
+
Ee = new WeakMap(), we = new WeakMap(), R(Qi, "properties", {
|
|
2697
2711
|
layer: { attribute: !1 },
|
|
2698
2712
|
titleProperty: { attribute: "title-property", type: String },
|
|
2699
2713
|
tools: { attribute: !1 },
|
|
2700
|
-
unstyled: { type: Boolean }
|
|
2714
|
+
unstyled: { type: Boolean },
|
|
2715
|
+
noShadow: { type: Boolean }
|
|
2701
2716
|
});
|
|
2702
2717
|
customElements.define("eox-layercontrol-layer", Qi);
|
|
2703
2718
|
var _e, $e;
|
|
2704
|
-
class
|
|
2719
|
+
class to extends z {
|
|
2705
2720
|
constructor() {
|
|
2706
2721
|
super();
|
|
2707
2722
|
M(this, _e, "");
|
|
@@ -2727,16 +2742,16 @@ class tn extends z {
|
|
|
2727
2742
|
transform: rotate(90deg);
|
|
2728
2743
|
}
|
|
2729
2744
|
`);
|
|
2730
|
-
this.group = null, this.idProperty = "id", this.map = null, this.titleProperty = "title", this.tools = [], this.unstyled = !1;
|
|
2745
|
+
this.group = null, this.idProperty = "id", this.map = null, this.titleProperty = "title", this.tools = [], this.unstyled = !1, this.noShadow = !0;
|
|
2731
2746
|
}
|
|
2732
2747
|
createRenderRoot() {
|
|
2733
|
-
return this;
|
|
2748
|
+
return this.noShadow ? this : super.createRenderRoot();
|
|
2734
2749
|
}
|
|
2735
2750
|
render() {
|
|
2736
2751
|
return _`
|
|
2737
2752
|
<style>
|
|
2738
|
-
${
|
|
2739
|
-
${!this.unstyled &&
|
|
2753
|
+
${H(this, _e)}
|
|
2754
|
+
${!this.unstyled && H(this, $e)}
|
|
2740
2755
|
</style>
|
|
2741
2756
|
${et(
|
|
2742
2757
|
this.group,
|
|
@@ -2744,6 +2759,7 @@ class tn extends z {
|
|
|
2744
2759
|
<details open=${this.group.get("layerControlExpand") || $}>
|
|
2745
2760
|
<summary>
|
|
2746
2761
|
<eox-layercontrol-layer
|
|
2762
|
+
.noShadow=${!0}
|
|
2747
2763
|
.layer=${this.group}
|
|
2748
2764
|
.titleProperty=${this.titleProperty}
|
|
2749
2765
|
.tools=${this.tools}
|
|
@@ -2752,6 +2768,7 @@ class tn extends z {
|
|
|
2752
2768
|
></eox-layercontrol-layer>
|
|
2753
2769
|
</summary>
|
|
2754
2770
|
<eox-layercontrol-layer-list
|
|
2771
|
+
.noShadow=${!0}
|
|
2755
2772
|
.idProperty=${this.idProperty}
|
|
2756
2773
|
.layers=${this.group.getLayers()}
|
|
2757
2774
|
.map=${this.map}
|
|
@@ -2766,20 +2783,21 @@ class tn extends z {
|
|
|
2766
2783
|
`;
|
|
2767
2784
|
}
|
|
2768
2785
|
}
|
|
2769
|
-
_e = new WeakMap(), $e = new WeakMap(),
|
|
2786
|
+
_e = new WeakMap(), $e = new WeakMap(), R(to, "properties", {
|
|
2770
2787
|
group: { attribute: !1 },
|
|
2771
2788
|
idProperty: { attribute: "id-property" },
|
|
2772
2789
|
map: { attribute: !1, state: !0 },
|
|
2773
2790
|
titleProperty: { attribute: "title-property", type: String },
|
|
2774
2791
|
tools: { attribute: !1 },
|
|
2775
|
-
unstyled: { type: Boolean }
|
|
2792
|
+
unstyled: { type: Boolean },
|
|
2793
|
+
noShadow: { type: Boolean }
|
|
2776
2794
|
});
|
|
2777
2795
|
customElements.define(
|
|
2778
2796
|
"eox-layercontrol-layer-group",
|
|
2779
|
-
|
|
2797
|
+
to
|
|
2780
2798
|
);
|
|
2781
2799
|
var xe, Ae;
|
|
2782
|
-
class
|
|
2800
|
+
class eo extends z {
|
|
2783
2801
|
constructor() {
|
|
2784
2802
|
super();
|
|
2785
2803
|
M(this, xe, "");
|
|
@@ -2811,21 +2829,21 @@ class en extends z {
|
|
|
2811
2829
|
li.sortable-ghost {
|
|
2812
2830
|
}
|
|
2813
2831
|
`);
|
|
2814
|
-
this.idProperty = "id", this.layers = null, this.map = null, this.tools = void 0, this.titleProperty = "title", this.unstyled = !1;
|
|
2832
|
+
this.idProperty = "id", this.layers = null, this.map = null, this.tools = void 0, this.titleProperty = "title", this.unstyled = !1, this.noShadow = !0;
|
|
2815
2833
|
}
|
|
2816
2834
|
updated() {
|
|
2817
2835
|
this.layers && (this.layers.on("change:length", () => {
|
|
2818
2836
|
this.requestUpdate(), this.dispatchEvent(new CustomEvent("changed", { bubbles: !0 }));
|
|
2819
|
-
}),
|
|
2837
|
+
}), tn(this.renderRoot.querySelector("ul"), this.layers, this));
|
|
2820
2838
|
}
|
|
2821
2839
|
createRenderRoot() {
|
|
2822
|
-
return this;
|
|
2840
|
+
return this.noShadow ? this : super.createRenderRoot();
|
|
2823
2841
|
}
|
|
2824
2842
|
render() {
|
|
2825
2843
|
return _`
|
|
2826
2844
|
<style>
|
|
2827
|
-
${
|
|
2828
|
-
${!this.unstyled &&
|
|
2845
|
+
${H(this, xe)}
|
|
2846
|
+
${!this.unstyled && H(this, Ae)}
|
|
2829
2847
|
</style>
|
|
2830
2848
|
<ul>
|
|
2831
2849
|
${et(
|
|
@@ -2834,16 +2852,17 @@ class en extends z {
|
|
|
2834
2852
|
${this.layers.getArray().filter(
|
|
2835
2853
|
(e) => !e.get("layerControlHide") && !e.get("layerControlOptional")
|
|
2836
2854
|
).reverse().map(
|
|
2837
|
-
(e) =>
|
|
2855
|
+
(e) => So(
|
|
2838
2856
|
e.get(this.idProperty),
|
|
2839
2857
|
_`
|
|
2840
2858
|
<li
|
|
2841
2859
|
data-layer="${e.get(this.idProperty)}"
|
|
2842
|
-
data-type="${
|
|
2860
|
+
data-type="${en(e, this.map)}"
|
|
2843
2861
|
>
|
|
2844
2862
|
${/** @type {import("ol/layer").Group} */
|
|
2845
2863
|
e.getLayers ? _`
|
|
2846
2864
|
<eox-layercontrol-layer-group
|
|
2865
|
+
.noShadow=${!0}
|
|
2847
2866
|
.group=${e}
|
|
2848
2867
|
.idProperty=${this.idProperty}
|
|
2849
2868
|
.map=${this.map}
|
|
@@ -2855,6 +2874,7 @@ class en extends z {
|
|
|
2855
2874
|
</eox-layercontrol-layer-group>
|
|
2856
2875
|
` : _`
|
|
2857
2876
|
<eox-layercontrol-layer
|
|
2877
|
+
.noShadow=${!0}
|
|
2858
2878
|
.layer=${e}
|
|
2859
2879
|
.titleProperty=${this.titleProperty}
|
|
2860
2880
|
.tools=${this.tools}
|
|
@@ -2874,21 +2894,22 @@ class en extends z {
|
|
|
2874
2894
|
`;
|
|
2875
2895
|
}
|
|
2876
2896
|
}
|
|
2877
|
-
xe = new WeakMap(), Ae = new WeakMap(),
|
|
2897
|
+
xe = new WeakMap(), Ae = new WeakMap(), R(eo, "properties", {
|
|
2878
2898
|
idProperty: { attribute: "id-property" },
|
|
2879
2899
|
layers: { attribute: !1 },
|
|
2880
2900
|
map: { attribute: !1, state: !0 },
|
|
2881
2901
|
titleProperty: { attribute: "title-property", type: String },
|
|
2882
2902
|
tools: { attribute: !1 },
|
|
2883
|
-
unstyled: { type: Boolean }
|
|
2903
|
+
unstyled: { type: Boolean },
|
|
2904
|
+
noShadow: { type: Boolean }
|
|
2884
2905
|
});
|
|
2885
|
-
customElements.define("eox-layercontrol-layer-list",
|
|
2886
|
-
class
|
|
2906
|
+
customElements.define("eox-layercontrol-layer-list", eo);
|
|
2907
|
+
class io extends z {
|
|
2887
2908
|
constructor() {
|
|
2888
|
-
super(), this.idProperty = "id", this.layers = null, this.titleProperty = "title", this.unstyled = !1;
|
|
2909
|
+
super(), this.idProperty = "id", this.layers = null, this.titleProperty = "title", this.unstyled = !1, this.noShadow = !0;
|
|
2889
2910
|
}
|
|
2890
2911
|
createRenderRoot() {
|
|
2891
|
-
return this;
|
|
2912
|
+
return this.noShadow ? this : super.createRenderRoot();
|
|
2892
2913
|
}
|
|
2893
2914
|
render() {
|
|
2894
2915
|
return _`
|
|
@@ -2937,18 +2958,19 @@ class nn extends z {
|
|
|
2937
2958
|
`;
|
|
2938
2959
|
}
|
|
2939
2960
|
}
|
|
2940
|
-
|
|
2961
|
+
R(io, "properties", {
|
|
2941
2962
|
idProperty: { attribute: "id-property" },
|
|
2942
2963
|
layers: { attribute: !1 },
|
|
2943
2964
|
titleProperty: { attribute: "title-property", type: String },
|
|
2944
|
-
unstyled: { type: Boolean }
|
|
2965
|
+
unstyled: { type: Boolean },
|
|
2966
|
+
noShadow: { type: Boolean }
|
|
2945
2967
|
});
|
|
2946
2968
|
customElements.define(
|
|
2947
2969
|
"eox-layercontrol-optional-list",
|
|
2948
|
-
|
|
2970
|
+
io
|
|
2949
2971
|
);
|
|
2950
2972
|
var Ce, Se;
|
|
2951
|
-
class
|
|
2973
|
+
class oo extends z {
|
|
2952
2974
|
constructor() {
|
|
2953
2975
|
super();
|
|
2954
2976
|
M(this, Ce, "");
|
|
@@ -2957,7 +2979,7 @@ class on extends z {
|
|
|
2957
2979
|
font-family: Roboto, sans-serif;
|
|
2958
2980
|
}
|
|
2959
2981
|
`);
|
|
2960
|
-
this.for = "eox-map", this.idProperty = "id", this.map = null, this.titleProperty = "title", this.tools = ["info", "opacity", "remove", "sort"], this.unstyled = !1;
|
|
2982
|
+
this.for = "eox-map", this.idProperty = "id", this.map = null, this.titleProperty = "title", this.tools = ["info", "opacity", "remove", "sort"], this.unstyled = !1, this.styleOverride = "";
|
|
2961
2983
|
}
|
|
2962
2984
|
updated() {
|
|
2963
2985
|
const e = document.querySelector(this.for);
|
|
@@ -2967,13 +2989,15 @@ class on extends z {
|
|
|
2967
2989
|
var e;
|
|
2968
2990
|
return _`
|
|
2969
2991
|
<style>
|
|
2970
|
-
${
|
|
2971
|
-
${!this.unstyled &&
|
|
2992
|
+
${H(this, Ce)}
|
|
2993
|
+
${!this.unstyled && H(this, Se)}
|
|
2994
|
+
${this.styleOverride}
|
|
2972
2995
|
</style>
|
|
2973
2996
|
${et(
|
|
2974
2997
|
this.map,
|
|
2975
2998
|
() => _`
|
|
2976
2999
|
<eox-layercontrol-layer-list
|
|
3000
|
+
.noShadow=${!0}
|
|
2977
3001
|
class="layers"
|
|
2978
3002
|
.idProperty=${this.idProperty}
|
|
2979
3003
|
.layers=${this.map.getLayers()}
|
|
@@ -2994,6 +3018,7 @@ class on extends z {
|
|
|
2994
3018
|
)) == null ? void 0 : e.length) > 0,
|
|
2995
3019
|
() => _`
|
|
2996
3020
|
<eox-layercontrol-optional-list
|
|
3021
|
+
.noShadow=${!0}
|
|
2997
3022
|
.idProperty=${this.idProperty}
|
|
2998
3023
|
.layers=${this.map.getLayers()}
|
|
2999
3024
|
.titleProperty=${this.titleProperty}
|
|
@@ -3004,15 +3029,16 @@ class on extends z {
|
|
|
3004
3029
|
`;
|
|
3005
3030
|
}
|
|
3006
3031
|
}
|
|
3007
|
-
Ce = new WeakMap(), Se = new WeakMap(),
|
|
3032
|
+
Ce = new WeakMap(), Se = new WeakMap(), R(oo, "properties", {
|
|
3008
3033
|
for: { type: String },
|
|
3009
3034
|
idProperty: { attribute: "id-property" },
|
|
3010
3035
|
map: { attribute: !1, state: !0 },
|
|
3011
3036
|
titleProperty: { attribute: "title-property", type: String },
|
|
3012
3037
|
tools: { attribute: !1 },
|
|
3013
|
-
unstyled: { type: Boolean }
|
|
3038
|
+
unstyled: { type: Boolean },
|
|
3039
|
+
styleOverride: { type: String }
|
|
3014
3040
|
});
|
|
3015
|
-
customElements.define("eox-layercontrol",
|
|
3041
|
+
customElements.define("eox-layercontrol", oo);
|
|
3016
3042
|
export {
|
|
3017
|
-
|
|
3043
|
+
oo as EOxLayerControl
|
|
3018
3044
|
};
|