@eox/layercontrol 0.15.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eox-layercontrol.js +589 -587
- package/dist/eox-layercontrol.umd.cjs +47 -47
- package/package.json +1 -1
package/dist/eox-layercontrol.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var gt = (n, t, e) => (
|
|
1
|
+
var Tl = Object.defineProperty;
|
|
2
|
+
var jl = (n, t, e) => t in n ? Tl(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
|
+
var gt = (n, t, e) => (jl(n, typeof t != "symbol" ? t + "" : t, e), e), fr = (n, t, e) => {
|
|
4
4
|
if (!t.has(n))
|
|
5
5
|
throw TypeError("Cannot " + e);
|
|
6
6
|
};
|
|
@@ -16,7 +16,7 @@ var xt = (n, t, e) => (fr(n, t, "access private method"), e);
|
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
17
|
*/
|
|
18
18
|
const Wi = globalThis, Vr = Wi.ShadowRoot && (Wi.ShadyCSS === void 0 || Wi.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, eo = Symbol(), Tn = /* @__PURE__ */ new WeakMap();
|
|
19
|
-
let
|
|
19
|
+
let $l = class {
|
|
20
20
|
constructor(t, e, i) {
|
|
21
21
|
if (this._$cssResult$ = !0, i !== eo)
|
|
22
22
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -35,7 +35,7 @@ let jl = class {
|
|
|
35
35
|
return this.cssText;
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
const
|
|
38
|
+
const Pl = (n) => new $l(typeof n == "string" ? n : n + "", void 0, eo), Ol = (n, t) => {
|
|
39
39
|
if (Vr)
|
|
40
40
|
n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
41
41
|
else
|
|
@@ -47,17 +47,17 @@ const $l = (n) => new jl(typeof n == "string" ? n : n + "", void 0, eo), Pl = (n
|
|
|
47
47
|
let e = "";
|
|
48
48
|
for (const i of t.cssRules)
|
|
49
49
|
e += i.cssText;
|
|
50
|
-
return
|
|
50
|
+
return Pl(e);
|
|
51
51
|
})(n) : n;
|
|
52
52
|
/**
|
|
53
53
|
* @license
|
|
54
54
|
* Copyright 2017 Google LLC
|
|
55
55
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
56
56
|
*/
|
|
57
|
-
const { is:
|
|
57
|
+
const { is: Il, defineProperty: Bl, getOwnPropertyDescriptor: Rl, getOwnPropertyNames: Dl, getOwnPropertySymbols: Nl, getPrototypeOf: Ml } = Object, we = globalThis, $n = we.trustedTypes, Hl = $n ? $n.emptyScript : "", mr = we.reactiveElementPolyfillSupport, di = (n, t) => n, Or = { toAttribute(n, t) {
|
|
58
58
|
switch (t) {
|
|
59
59
|
case Boolean:
|
|
60
|
-
n = n ?
|
|
60
|
+
n = n ? Hl : null;
|
|
61
61
|
break;
|
|
62
62
|
case Object:
|
|
63
63
|
case Array:
|
|
@@ -82,7 +82,7 @@ const { is: Ol, defineProperty: Il, getOwnPropertyDescriptor: Bl, getOwnProperty
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
return e;
|
|
85
|
-
} }, io = (n, t) => !
|
|
85
|
+
} }, io = (n, t) => !Il(n, t), Pn = { attribute: !0, type: String, converter: Or, reflect: !1, hasChanged: io };
|
|
86
86
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), we.litPropertyMetadata ?? (we.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
87
87
|
class Ue extends HTMLElement {
|
|
88
88
|
static addInitializer(t) {
|
|
@@ -94,11 +94,11 @@ class Ue extends HTMLElement {
|
|
|
94
94
|
static createProperty(t, e = Pn) {
|
|
95
95
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
96
96
|
const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
|
|
97
|
-
s !== void 0 &&
|
|
97
|
+
s !== void 0 && Bl(this.prototype, t, s);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
static getPropertyDescriptor(t, e, i) {
|
|
101
|
-
const { get: s, set: r } =
|
|
101
|
+
const { get: s, set: r } = Rl(this.prototype, t) ?? { get() {
|
|
102
102
|
return this[e];
|
|
103
103
|
}, set(o) {
|
|
104
104
|
this[e] = o;
|
|
@@ -116,14 +116,14 @@ class Ue extends HTMLElement {
|
|
|
116
116
|
static _$Ei() {
|
|
117
117
|
if (this.hasOwnProperty(di("elementProperties")))
|
|
118
118
|
return;
|
|
119
|
-
const t =
|
|
119
|
+
const t = Ml(this);
|
|
120
120
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
121
121
|
}
|
|
122
122
|
static finalize() {
|
|
123
123
|
if (this.hasOwnProperty(di("finalized")))
|
|
124
124
|
return;
|
|
125
125
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(di("properties"))) {
|
|
126
|
-
const e = this.properties, i = [...
|
|
126
|
+
const e = this.properties, i = [...Dl(e), ...Nl(e)];
|
|
127
127
|
for (const s of i)
|
|
128
128
|
this.createProperty(s, e[s]);
|
|
129
129
|
}
|
|
@@ -178,7 +178,7 @@ class Ue extends HTMLElement {
|
|
|
178
178
|
}
|
|
179
179
|
createRenderRoot() {
|
|
180
180
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
181
|
-
return
|
|
181
|
+
return Ol(t, this.constructor.elementStyles), t;
|
|
182
182
|
}
|
|
183
183
|
connectedCallback() {
|
|
184
184
|
var t;
|
|
@@ -301,9 +301,9 @@ Ue.elementStyles = [], Ue.shadowRootOptions = { mode: "open" }, Ue[di("elementPr
|
|
|
301
301
|
* Copyright 2017 Google LLC
|
|
302
302
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
303
303
|
*/
|
|
304
|
-
const hi = globalThis, ss = hi.trustedTypes, On = ss ? ss.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Fr = "$lit$", le = `lit$${(Math.random() + "").slice(9)}$`, zr = "?" + le,
|
|
304
|
+
const hi = globalThis, ss = hi.trustedTypes, On = ss ? ss.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Fr = "$lit$", le = `lit$${(Math.random() + "").slice(9)}$`, zr = "?" + le, Vl = `<${zr}>`, Be = document, gi = () => Be.createComment(""), bi = (n) => n === null || typeof n != "object" && typeof n != "function", so = Array.isArray, ro = (n) => so(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", gr = `[
|
|
305
305
|
\f\r]`, ri = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, In = /-->/g, Bn = />/g, Ae = RegExp(`>|${gr}(?:([^\\s"'>=/]+)(${gr}*=${gr}*(?:[^
|
|
306
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Rn = /'/g, Dn = /"/g, no = /^(?:script|style|textarea|title)$/i,
|
|
306
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Rn = /'/g, Dn = /"/g, no = /^(?:script|style|textarea|title)$/i, Fl = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), q = Fl(1), Jt = Symbol.for("lit-noChange"), et = Symbol.for("lit-nothing"), Nn = /* @__PURE__ */ new WeakMap(), Pe = Be.createTreeWalker(Be, 129);
|
|
307
307
|
function oo(n, t) {
|
|
308
308
|
if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
|
|
309
309
|
throw Error("invalid template strings array");
|
|
@@ -318,7 +318,7 @@ const ao = (n, t) => {
|
|
|
318
318
|
for (; g < l.length && (o.lastIndex = g, h = o.exec(l), h !== null); )
|
|
319
319
|
g = o.lastIndex, o === ri ? h[1] === "!--" ? o = In : h[1] !== void 0 ? o = Bn : h[2] !== void 0 ? (no.test(h[2]) && (s = RegExp("</" + h[2], "g")), o = Ae) : h[3] !== void 0 && (o = Ae) : o === Ae ? h[0] === ">" ? (o = s ?? ri, u = -1) : h[1] === void 0 ? u = -2 : (u = o.lastIndex - h[2].length, d = h[1], o = h[3] === void 0 ? Ae : h[3] === '"' ? Dn : Rn) : o === Dn || o === Rn ? o = Ae : o === In || o === Bn ? o = ri : (o = Ae, s = void 0);
|
|
320
320
|
const m = o === Ae && n[a + 1].startsWith("/>") ? " " : "";
|
|
321
|
-
r += o === ri ? l +
|
|
321
|
+
r += o === ri ? l + Vl : u >= 0 ? (i.push(d), l.slice(0, u) + Fr + l.slice(u) + le + m) : l + le + (u === -2 ? a : m);
|
|
322
322
|
}
|
|
323
323
|
return [oo(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
|
324
324
|
};
|
|
@@ -537,9 +537,9 @@ class po {
|
|
|
537
537
|
Re(this, t);
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
const
|
|
540
|
+
const zl = { P: Fr, A: le, C: zr, M: 1, L: ao, R: lo, D: ro, V: Re, I: ti, H: Ai, N: co, U: uo, B: ho, F: po }, br = hi.litHtmlPolyfillSupport;
|
|
541
541
|
br == null || br(yi, ti), (hi.litHtmlVersions ?? (hi.litHtmlVersions = [])).push("3.1.2");
|
|
542
|
-
const
|
|
542
|
+
const Ul = (n, t, e) => {
|
|
543
543
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
544
544
|
let s = i._$litPart$;
|
|
545
545
|
if (s === void 0) {
|
|
@@ -564,7 +564,7 @@ let Vt = class extends Ue {
|
|
|
564
564
|
}
|
|
565
565
|
update(t) {
|
|
566
566
|
const e = this.render();
|
|
567
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
567
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Ul(e, this.renderRoot, this.renderOptions);
|
|
568
568
|
}
|
|
569
569
|
connectedCallback() {
|
|
570
570
|
var t;
|
|
@@ -618,12 +618,12 @@ class qr {
|
|
|
618
618
|
* Copyright 2020 Google LLC
|
|
619
619
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
620
620
|
*/
|
|
621
|
-
const { I:
|
|
621
|
+
const { I: ql } = zl, Gl = (n) => n.strings === void 0, Mn = () => document.createComment(""), ni = (n, t, e) => {
|
|
622
622
|
var r;
|
|
623
623
|
const i = n._$AA.parentNode, s = t === void 0 ? n._$AB : t._$AA;
|
|
624
624
|
if (e === void 0) {
|
|
625
625
|
const o = i.insertBefore(Mn(), s), a = i.insertBefore(Mn(), s);
|
|
626
|
-
e = new
|
|
626
|
+
e = new ql(o, a, n, n.options);
|
|
627
627
|
} else {
|
|
628
628
|
const o = e._$AB.nextSibling, a = e._$AM, l = a !== n;
|
|
629
629
|
if (l) {
|
|
@@ -639,7 +639,7 @@ const { I: Ul } = Fl, ql = (n) => n.strings === void 0, Mn = () => document.crea
|
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
641
|
return e;
|
|
642
|
-
}, ke = (n, t, e = n) => (n._$AI(t, e), n),
|
|
642
|
+
}, ke = (n, t, e = n) => (n._$AI(t, e), n), Zl = {}, fo = (n, t = Zl) => n._$AH = t, Wl = (n) => n._$AH, _r = (n) => {
|
|
643
643
|
var i;
|
|
644
644
|
(i = n._$AP) == null || i.call(n, !1, !0);
|
|
645
645
|
let t = n._$AA;
|
|
@@ -659,7 +659,7 @@ const Hn = (n, t, e) => {
|
|
|
659
659
|
for (let s = t; s <= e; s++)
|
|
660
660
|
i.set(n[s], s);
|
|
661
661
|
return i;
|
|
662
|
-
},
|
|
662
|
+
}, Yl = Ur(class extends qr {
|
|
663
663
|
constructor(n) {
|
|
664
664
|
if (super(n), n.type !== be.CHILD)
|
|
665
665
|
throw Error("repeat() can only be used in text expressions");
|
|
@@ -677,7 +677,7 @@ const Hn = (n, t, e) => {
|
|
|
677
677
|
return this.dt(n, t, e).values;
|
|
678
678
|
}
|
|
679
679
|
update(n, [t, e, i]) {
|
|
680
|
-
const s =
|
|
680
|
+
const s = Wl(n), { values: r, keys: o } = this.dt(t, e, i);
|
|
681
681
|
if (!Array.isArray(s))
|
|
682
682
|
return this.ut = o, r;
|
|
683
683
|
const a = this.ut ?? (this.ut = []), l = [];
|
|
@@ -740,7 +740,7 @@ const _i = {
|
|
|
740
740
|
DOCUMENT_FRAGMENT: 11,
|
|
741
741
|
NOTATION: 12
|
|
742
742
|
};
|
|
743
|
-
class
|
|
743
|
+
class Xl {
|
|
744
744
|
/**
|
|
745
745
|
* XML DOM parser
|
|
746
746
|
* @constructor
|
|
@@ -781,8 +781,8 @@ function go(n, t, e) {
|
|
|
781
781
|
}
|
|
782
782
|
return e;
|
|
783
783
|
}
|
|
784
|
-
function
|
|
785
|
-
for (var s =
|
|
784
|
+
function Jl(n, t, e, i) {
|
|
785
|
+
for (var s = Ql(t); s; s = Kl(s)) {
|
|
786
786
|
var r = s.namespaceURI || null, o = n[r];
|
|
787
787
|
if (F(o)) {
|
|
788
788
|
var a = o[s.localName];
|
|
@@ -790,13 +790,13 @@ function Xl(n, t, e, i) {
|
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function Ql(n) {
|
|
794
794
|
let t = n.firstElementChild || n.firstChild;
|
|
795
795
|
for (; t && t.nodeType !== _i.ELEMENT; )
|
|
796
796
|
t = t.nextSibling;
|
|
797
797
|
return t;
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function Kl(n) {
|
|
800
800
|
let t = n.nextElementSibling || n.nextSibling;
|
|
801
801
|
for (; t && t.nodeType !== _i.ELEMENT; )
|
|
802
802
|
t = t.nextSibling;
|
|
@@ -805,10 +805,10 @@ function Ql(n) {
|
|
|
805
805
|
function Tt(n, t, e) {
|
|
806
806
|
return (
|
|
807
807
|
/** @type {Object.<string, Object.<string, XMLParser.Parser>>} */
|
|
808
|
-
|
|
808
|
+
td(n, t, e)
|
|
809
809
|
);
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function td(n, t, e) {
|
|
812
812
|
var i = F(e) ? e : {}, s, r;
|
|
813
813
|
for (s = 0, r = n.length; s < r; ++s)
|
|
814
814
|
i[n[s]] = t;
|
|
@@ -834,7 +834,7 @@ function bo(n, t) {
|
|
|
834
834
|
);
|
|
835
835
|
}
|
|
836
836
|
function At(n, t, e, i, s) {
|
|
837
|
-
return i.push(n),
|
|
837
|
+
return i.push(n), Jl(t, e, i, s), i.pop();
|
|
838
838
|
}
|
|
839
839
|
function k(n, t, e) {
|
|
840
840
|
return (
|
|
@@ -880,9 +880,9 @@ function Ht(n, t, e) {
|
|
|
880
880
|
}
|
|
881
881
|
);
|
|
882
882
|
}
|
|
883
|
-
const
|
|
884
|
-
function
|
|
885
|
-
return n.replace(
|
|
883
|
+
const ed = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
|
|
884
|
+
function id(n) {
|
|
885
|
+
return n.replace(ed, "");
|
|
886
886
|
}
|
|
887
887
|
function Ie(n) {
|
|
888
888
|
const t = /^\s*(true|1)|(false|0)\s*$/.exec(n);
|
|
@@ -906,14 +906,14 @@ function rs(n) {
|
|
|
906
906
|
return parseInt(t[1], 10);
|
|
907
907
|
}
|
|
908
908
|
function Y(n) {
|
|
909
|
-
return
|
|
909
|
+
return id(Ds(n, !1));
|
|
910
910
|
}
|
|
911
|
-
const
|
|
911
|
+
const sd = "http://www.w3.org/1999/xlink";
|
|
912
912
|
function Gr(n) {
|
|
913
|
-
return n.getAttributeNS(
|
|
913
|
+
return n.getAttributeNS(sd, "href");
|
|
914
914
|
}
|
|
915
|
-
function
|
|
916
|
-
return At({},
|
|
915
|
+
function rd(n, t) {
|
|
916
|
+
return At({}, $d, n, t);
|
|
917
917
|
}
|
|
918
918
|
function yo(n) {
|
|
919
919
|
return [
|
|
@@ -923,7 +923,7 @@ function yo(n) {
|
|
|
923
923
|
de(n.getAttribute("maxy"))
|
|
924
924
|
];
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function nd(n, t) {
|
|
927
927
|
const e = yo(n), i = [
|
|
928
928
|
de(n.getAttribute("resx")),
|
|
929
929
|
de(n.getAttribute("resy"))
|
|
@@ -934,19 +934,19 @@ function rd(n, t) {
|
|
|
934
934
|
res: i
|
|
935
935
|
};
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function od(n, t) {
|
|
938
938
|
const e = yo(n);
|
|
939
939
|
if (!(!F(e[0]) || !F(e[1]) || !F(e[2]) || !F(e[3])))
|
|
940
940
|
return e;
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function ad(n, t) {
|
|
943
943
|
const e = parseFloat(n.getAttribute("min")), i = parseFloat(n.getAttribute("max"));
|
|
944
944
|
return { min: e, max: i };
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function ld(n, t) {
|
|
947
947
|
const e = At(
|
|
948
948
|
{},
|
|
949
|
-
|
|
949
|
+
Pd,
|
|
950
950
|
n,
|
|
951
951
|
t
|
|
952
952
|
);
|
|
@@ -973,19 +973,11 @@ function ad(n, t) {
|
|
|
973
973
|
o
|
|
974
974
|
];
|
|
975
975
|
}
|
|
976
|
-
function ld(n, t) {
|
|
977
|
-
return At({}, Ed, n, t);
|
|
978
|
-
}
|
|
979
976
|
function dd(n, t) {
|
|
980
977
|
return At({}, Ld, n, t);
|
|
981
978
|
}
|
|
982
979
|
function hd(n, t) {
|
|
983
|
-
return At(
|
|
984
|
-
{},
|
|
985
|
-
Ad,
|
|
986
|
-
n,
|
|
987
|
-
t
|
|
988
|
-
);
|
|
980
|
+
return At({}, Ad, n, t);
|
|
989
981
|
}
|
|
990
982
|
function cd(n, t) {
|
|
991
983
|
return At(
|
|
@@ -1005,13 +997,21 @@ function ud(n, t) {
|
|
|
1005
997
|
}
|
|
1006
998
|
function pd(n, t) {
|
|
1007
999
|
return At(
|
|
1008
|
-
|
|
1000
|
+
{},
|
|
1009
1001
|
Td,
|
|
1010
1002
|
n,
|
|
1011
1003
|
t
|
|
1012
1004
|
);
|
|
1013
1005
|
}
|
|
1014
1006
|
function fd(n, t) {
|
|
1007
|
+
return At(
|
|
1008
|
+
[],
|
|
1009
|
+
jd,
|
|
1010
|
+
n,
|
|
1011
|
+
t
|
|
1012
|
+
);
|
|
1013
|
+
}
|
|
1014
|
+
function md(n, t) {
|
|
1015
1015
|
const e = Ie(n.getAttribute("queryable"));
|
|
1016
1016
|
return At(
|
|
1017
1017
|
{
|
|
@@ -1022,7 +1022,7 @@ function fd(n, t) {
|
|
|
1022
1022
|
t
|
|
1023
1023
|
);
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1025
|
+
function gd(n, t) {
|
|
1026
1026
|
var e = (
|
|
1027
1027
|
/** @type {Object.<string,*>} */
|
|
1028
1028
|
t[t.length - 1]
|
|
@@ -1075,7 +1075,7 @@ function md(n, t) {
|
|
|
1075
1075
|
}
|
|
1076
1076
|
return i;
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1078
|
+
function bd(n, t) {
|
|
1079
1079
|
return {
|
|
1080
1080
|
name: n.getAttribute("name"),
|
|
1081
1081
|
units: n.getAttribute("units"),
|
|
@@ -1090,22 +1090,22 @@ function gd(n, t) {
|
|
|
1090
1090
|
function ce(n, t) {
|
|
1091
1091
|
return At(
|
|
1092
1092
|
{},
|
|
1093
|
-
|
|
1093
|
+
Nd,
|
|
1094
1094
|
n,
|
|
1095
1095
|
t
|
|
1096
1096
|
);
|
|
1097
1097
|
}
|
|
1098
|
-
function bd(n, t) {
|
|
1099
|
-
return At({}, Pd, n, t);
|
|
1100
|
-
}
|
|
1101
1098
|
function yd(n, t) {
|
|
1102
|
-
return At({},
|
|
1099
|
+
return At({}, Od, n, t);
|
|
1103
1100
|
}
|
|
1104
1101
|
function _d(n, t) {
|
|
1105
1102
|
return At({}, Bd, n, t);
|
|
1106
1103
|
}
|
|
1104
|
+
function vd(n, t) {
|
|
1105
|
+
return At({}, Rd, n, t);
|
|
1106
|
+
}
|
|
1107
1107
|
function wr(n, t) {
|
|
1108
|
-
return At({},
|
|
1108
|
+
return At({}, Id, n, t);
|
|
1109
1109
|
}
|
|
1110
1110
|
function _o(n, t) {
|
|
1111
1111
|
var e = ce(n, t);
|
|
@@ -1117,23 +1117,23 @@ function _o(n, t) {
|
|
|
1117
1117
|
return e.size = i, e;
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
|
-
function
|
|
1120
|
+
function wd(n, t) {
|
|
1121
1121
|
var e = ce(n, t);
|
|
1122
1122
|
if (F(e))
|
|
1123
1123
|
return e.name = n.getAttribute("name"), e;
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function xd(n, t) {
|
|
1126
1126
|
var e = ce(n, t);
|
|
1127
1127
|
if (F(e))
|
|
1128
1128
|
return e.type = n.getAttribute("type"), e;
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1131
|
-
return At({},
|
|
1130
|
+
function Cd(n, t) {
|
|
1131
|
+
return At({}, Dd, n, t);
|
|
1132
1132
|
}
|
|
1133
1133
|
function vo(n, t) {
|
|
1134
1134
|
return At(
|
|
1135
1135
|
[],
|
|
1136
|
-
|
|
1136
|
+
Md,
|
|
1137
1137
|
n,
|
|
1138
1138
|
t
|
|
1139
1139
|
);
|
|
@@ -1141,20 +1141,20 @@ function vo(n, t) {
|
|
|
1141
1141
|
const jt = [
|
|
1142
1142
|
null,
|
|
1143
1143
|
"http://www.opengis.net/wms"
|
|
1144
|
-
],
|
|
1144
|
+
], Ed = Tt(
|
|
1145
1145
|
jt,
|
|
1146
1146
|
{
|
|
1147
|
-
Service: k(
|
|
1148
|
-
Capability: k(
|
|
1147
|
+
Service: k(hd),
|
|
1148
|
+
Capability: k(dd)
|
|
1149
1149
|
}
|
|
1150
|
-
),
|
|
1150
|
+
), Ld = Tt(
|
|
1151
1151
|
jt,
|
|
1152
1152
|
{
|
|
1153
|
-
Request: k(
|
|
1154
|
-
Exception: k(
|
|
1155
|
-
Layer: k(
|
|
1153
|
+
Request: k(yd),
|
|
1154
|
+
Exception: k(fd),
|
|
1155
|
+
Layer: k(md)
|
|
1156
1156
|
}
|
|
1157
|
-
),
|
|
1157
|
+
), Ad = Tt(
|
|
1158
1158
|
jt,
|
|
1159
1159
|
{
|
|
1160
1160
|
Name: k(Y),
|
|
@@ -1162,30 +1162,30 @@ const jt = [
|
|
|
1162
1162
|
Abstract: k(Y),
|
|
1163
1163
|
KeywordList: k(vo),
|
|
1164
1164
|
OnlineResource: k(Gr),
|
|
1165
|
-
ContactInformation: k(
|
|
1165
|
+
ContactInformation: k(cd),
|
|
1166
1166
|
Fees: k(Y),
|
|
1167
1167
|
AccessConstraints: k(Y),
|
|
1168
1168
|
LayerLimit: k(vr),
|
|
1169
1169
|
MaxWidth: k(vr),
|
|
1170
1170
|
MaxHeight: k(vr)
|
|
1171
1171
|
}
|
|
1172
|
-
),
|
|
1172
|
+
), kd = Tt(
|
|
1173
1173
|
jt,
|
|
1174
1174
|
{
|
|
1175
|
-
ContactPersonPrimary: k(
|
|
1175
|
+
ContactPersonPrimary: k(ud),
|
|
1176
1176
|
ContactPosition: k(Y),
|
|
1177
|
-
ContactAddress: k(
|
|
1177
|
+
ContactAddress: k(pd),
|
|
1178
1178
|
ContactVoiceTelephone: k(Y),
|
|
1179
1179
|
ContactFacsimileTelephone: k(Y),
|
|
1180
1180
|
ContactElectronicMailAddress: k(Y)
|
|
1181
1181
|
}
|
|
1182
|
-
),
|
|
1182
|
+
), Sd = Tt(
|
|
1183
1183
|
jt,
|
|
1184
1184
|
{
|
|
1185
1185
|
ContactPerson: k(Y),
|
|
1186
1186
|
ContactOrganization: k(Y)
|
|
1187
1187
|
}
|
|
1188
|
-
),
|
|
1188
|
+
), Td = Tt(
|
|
1189
1189
|
jt,
|
|
1190
1190
|
{
|
|
1191
1191
|
AddressType: k(Y),
|
|
@@ -1195,7 +1195,7 @@ const jt = [
|
|
|
1195
1195
|
PostCode: k(Y),
|
|
1196
1196
|
Country: k(Y)
|
|
1197
1197
|
}
|
|
1198
|
-
),
|
|
1198
|
+
), jd = Tt(
|
|
1199
1199
|
jt,
|
|
1200
1200
|
{
|
|
1201
1201
|
Format: bo(Y)
|
|
@@ -1209,35 +1209,35 @@ const jt = [
|
|
|
1209
1209
|
KeywordList: k(vo),
|
|
1210
1210
|
CRS: Ht(Y),
|
|
1211
1211
|
SRS: Ht(Y),
|
|
1212
|
-
EX_GeographicBoundingBox: k(
|
|
1213
|
-
LatLonBoundingBox: k(
|
|
1214
|
-
BoundingBox: Ht(
|
|
1215
|
-
Dimension: Ht(
|
|
1216
|
-
Attribution: k(
|
|
1217
|
-
AuthorityURL: Ht(
|
|
1212
|
+
EX_GeographicBoundingBox: k(ld),
|
|
1213
|
+
LatLonBoundingBox: k(od),
|
|
1214
|
+
BoundingBox: Ht(nd),
|
|
1215
|
+
Dimension: Ht(bd),
|
|
1216
|
+
Attribution: k(rd),
|
|
1217
|
+
AuthorityURL: Ht(wd),
|
|
1218
1218
|
Identifier: Ht(Y),
|
|
1219
|
-
MetadataURL: Ht(
|
|
1219
|
+
MetadataURL: Ht(xd),
|
|
1220
1220
|
DataURL: Ht(ce),
|
|
1221
1221
|
FeatureListURL: Ht(ce),
|
|
1222
|
-
Style: Ht(
|
|
1222
|
+
Style: Ht(Cd),
|
|
1223
1223
|
MinScaleDenominator: k(Ge),
|
|
1224
1224
|
MaxScaleDenominator: k(Ge),
|
|
1225
|
-
ScaleHint: k(
|
|
1226
|
-
Layer: Ht(
|
|
1225
|
+
ScaleHint: k(ad),
|
|
1226
|
+
Layer: Ht(gd)
|
|
1227
1227
|
}
|
|
1228
|
-
),
|
|
1228
|
+
), $d = Tt(
|
|
1229
1229
|
jt,
|
|
1230
1230
|
{
|
|
1231
1231
|
Title: k(Y),
|
|
1232
1232
|
OnlineResource: k(Gr),
|
|
1233
1233
|
LogoURL: k(_o)
|
|
1234
1234
|
}
|
|
1235
|
-
),
|
|
1235
|
+
), Pd = Tt(jt, {
|
|
1236
1236
|
westBoundLongitude: k(Ge),
|
|
1237
1237
|
eastBoundLongitude: k(Ge),
|
|
1238
1238
|
southBoundLatitude: k(Ge),
|
|
1239
1239
|
northBoundLatitude: k(Ge)
|
|
1240
|
-
}),
|
|
1240
|
+
}), Od = Tt(
|
|
1241
1241
|
jt,
|
|
1242
1242
|
{
|
|
1243
1243
|
GetCapabilities: k(
|
|
@@ -1250,22 +1250,22 @@ const jt = [
|
|
|
1250
1250
|
wr
|
|
1251
1251
|
)
|
|
1252
1252
|
}
|
|
1253
|
-
),
|
|
1253
|
+
), Id = Tt(
|
|
1254
1254
|
jt,
|
|
1255
1255
|
{
|
|
1256
1256
|
Format: Ht(Y),
|
|
1257
1257
|
DCPType: Ht(
|
|
1258
|
-
|
|
1258
|
+
_d
|
|
1259
1259
|
)
|
|
1260
1260
|
}
|
|
1261
|
-
),
|
|
1261
|
+
), Bd = Tt(
|
|
1262
1262
|
jt,
|
|
1263
1263
|
{
|
|
1264
1264
|
HTTP: k(
|
|
1265
|
-
|
|
1265
|
+
vd
|
|
1266
1266
|
)
|
|
1267
1267
|
}
|
|
1268
|
-
),
|
|
1268
|
+
), Rd = Tt(
|
|
1269
1269
|
jt,
|
|
1270
1270
|
{
|
|
1271
1271
|
Get: k(
|
|
@@ -1275,7 +1275,7 @@ const jt = [
|
|
|
1275
1275
|
ce
|
|
1276
1276
|
)
|
|
1277
1277
|
}
|
|
1278
|
-
),
|
|
1278
|
+
), Dd = Tt(
|
|
1279
1279
|
jt,
|
|
1280
1280
|
{
|
|
1281
1281
|
Name: k(Y),
|
|
@@ -1285,19 +1285,19 @@ const jt = [
|
|
|
1285
1285
|
StyleSheetURL: k(ce),
|
|
1286
1286
|
StyleURL: k(ce)
|
|
1287
1287
|
}
|
|
1288
|
-
),
|
|
1288
|
+
), Nd = Tt(
|
|
1289
1289
|
jt,
|
|
1290
1290
|
{
|
|
1291
1291
|
Format: k(Y),
|
|
1292
1292
|
OnlineResource: k(Gr)
|
|
1293
1293
|
}
|
|
1294
|
-
),
|
|
1294
|
+
), Md = Tt(
|
|
1295
1295
|
jt,
|
|
1296
1296
|
{
|
|
1297
1297
|
Keyword: bo(Y)
|
|
1298
1298
|
}
|
|
1299
1299
|
);
|
|
1300
|
-
class
|
|
1300
|
+
class Hd {
|
|
1301
1301
|
/**
|
|
1302
1302
|
* WMS Capabilities parser
|
|
1303
1303
|
*
|
|
@@ -1305,7 +1305,7 @@ class Md {
|
|
|
1305
1305
|
* @constructor
|
|
1306
1306
|
*/
|
|
1307
1307
|
constructor(t, e) {
|
|
1308
|
-
!e && typeof window < "u" && (e = window.DOMParser), this.version = void 0, this._parser = new
|
|
1308
|
+
!e && typeof window < "u" && (e = window.DOMParser), this.version = void 0, this._parser = new Xl(e), this._data = t;
|
|
1309
1309
|
}
|
|
1310
1310
|
/**
|
|
1311
1311
|
* @param {String} xmlString
|
|
@@ -1345,17 +1345,17 @@ class Md {
|
|
|
1345
1345
|
readFromNode(t) {
|
|
1346
1346
|
return this.version = t.getAttribute("version"), At({
|
|
1347
1347
|
version: this.version
|
|
1348
|
-
},
|
|
1348
|
+
}, Ed, t, []) || null;
|
|
1349
1349
|
}
|
|
1350
1350
|
}
|
|
1351
|
-
async function
|
|
1351
|
+
async function Vd(n) {
|
|
1352
1352
|
let t = new URL(n), e = t.searchParams;
|
|
1353
1353
|
e.set("SERVICE", "WMS"), e.set("REQUEST", "GetCapabilities");
|
|
1354
1354
|
let i = t.toString();
|
|
1355
1355
|
const s = await fetch(i);
|
|
1356
1356
|
if (s.ok) {
|
|
1357
1357
|
const r = await s.text();
|
|
1358
|
-
return new
|
|
1358
|
+
return new Hd(r).toJSON();
|
|
1359
1359
|
} else
|
|
1360
1360
|
throw new Error(`Error: ${s.status}`);
|
|
1361
1361
|
}
|
|
@@ -1363,7 +1363,7 @@ function Zr(n) {
|
|
|
1363
1363
|
const t = /\b(?:wms|ows)\b/i, e = /{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;
|
|
1364
1364
|
return t.test(n) ? "TileWMS" : e.test(n) ? "XYZ" : !1;
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function Fd(n) {
|
|
1367
1367
|
const e = /^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(n), i = Zr(n);
|
|
1368
1368
|
return !!(n && e && i);
|
|
1369
1369
|
}
|
|
@@ -1373,14 +1373,14 @@ function xo(n) {
|
|
|
1373
1373
|
'"$2": '
|
|
1374
1374
|
).replace(/,\s*}/g, "}").replace(/,\s*]/g, "]").replace(/\s*(\{|}|\[|\]|,)\s*/g, "$1").replaceAll('": //', "://");
|
|
1375
1375
|
}
|
|
1376
|
-
function
|
|
1376
|
+
function zd(n) {
|
|
1377
1377
|
try {
|
|
1378
1378
|
return JSON.parse(xo(n)), !!n;
|
|
1379
1379
|
} catch {
|
|
1380
1380
|
return !1;
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1383
|
+
function Ud(n, t) {
|
|
1384
1384
|
const e = new URL(n).searchParams;
|
|
1385
1385
|
Object.entries(t).forEach(([o, a]) => {
|
|
1386
1386
|
typeof a == "object" && !Array.isArray(a) && a !== null ? Object.keys(a).forEach((l) => {
|
|
@@ -1410,7 +1410,7 @@ function oe(n) {
|
|
|
1410
1410
|
for (var t = 1; t < arguments.length; t++) {
|
|
1411
1411
|
var e = arguments[t] != null ? arguments[t] : {};
|
|
1412
1412
|
t % 2 ? Vn(Object(e), !0).forEach(function(i) {
|
|
1413
|
-
|
|
1413
|
+
qd(n, i, e[i]);
|
|
1414
1414
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(e)) : Vn(Object(e)).forEach(function(i) {
|
|
1415
1415
|
Object.defineProperty(n, i, Object.getOwnPropertyDescriptor(e, i));
|
|
1416
1416
|
});
|
|
@@ -1425,7 +1425,7 @@ function Yi(n) {
|
|
|
1425
1425
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1426
1426
|
}, Yi(n);
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1428
|
+
function qd(n, t, e) {
|
|
1429
1429
|
return t in n ? Object.defineProperty(n, t, {
|
|
1430
1430
|
value: e,
|
|
1431
1431
|
enumerable: !0,
|
|
@@ -1443,7 +1443,7 @@ function ue() {
|
|
|
1443
1443
|
return n;
|
|
1444
1444
|
}, ue.apply(this, arguments);
|
|
1445
1445
|
}
|
|
1446
|
-
function
|
|
1446
|
+
function Gd(n, t) {
|
|
1447
1447
|
if (n == null)
|
|
1448
1448
|
return {};
|
|
1449
1449
|
var e = {}, i = Object.keys(n), s, r;
|
|
@@ -1451,10 +1451,10 @@ function qd(n, t) {
|
|
|
1451
1451
|
s = i[r], !(t.indexOf(s) >= 0) && (e[s] = n[s]);
|
|
1452
1452
|
return e;
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function Zd(n, t) {
|
|
1455
1455
|
if (n == null)
|
|
1456
1456
|
return {};
|
|
1457
|
-
var e =
|
|
1457
|
+
var e = Gd(n, t), i, s;
|
|
1458
1458
|
if (Object.getOwnPropertySymbols) {
|
|
1459
1459
|
var r = Object.getOwnPropertySymbols(n);
|
|
1460
1460
|
for (s = 0; s < r.length; s++)
|
|
@@ -1462,7 +1462,7 @@ function Gd(n, t) {
|
|
|
1462
1462
|
}
|
|
1463
1463
|
return e;
|
|
1464
1464
|
}
|
|
1465
|
-
var
|
|
1465
|
+
var Wd = "1.15.2";
|
|
1466
1466
|
function he(n) {
|
|
1467
1467
|
if (typeof window < "u" && window.navigator)
|
|
1468
1468
|
return !!/* @__PURE__ */ navigator.userAgent.match(n);
|
|
@@ -1493,7 +1493,7 @@ function ns(n, t) {
|
|
|
1493
1493
|
return !1;
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
1496
|
-
function
|
|
1496
|
+
function Yd(n) {
|
|
1497
1497
|
return n.host && n !== document && n.host.nodeType ? n.host : n.parentNode;
|
|
1498
1498
|
}
|
|
1499
1499
|
function ee(n, t, e, i) {
|
|
@@ -1504,7 +1504,7 @@ function ee(n, t, e, i) {
|
|
|
1504
1504
|
return n;
|
|
1505
1505
|
if (n === e)
|
|
1506
1506
|
break;
|
|
1507
|
-
} while (n =
|
|
1507
|
+
} while (n = Yd(n));
|
|
1508
1508
|
}
|
|
1509
1509
|
return null;
|
|
1510
1510
|
}
|
|
@@ -1621,7 +1621,7 @@ function qn(n) {
|
|
|
1621
1621
|
} while (n !== i && (n = n.parentNode));
|
|
1622
1622
|
return [t, e];
|
|
1623
1623
|
}
|
|
1624
|
-
function
|
|
1624
|
+
function Xd(n, t) {
|
|
1625
1625
|
for (var e in n)
|
|
1626
1626
|
if (n.hasOwnProperty(e)) {
|
|
1627
1627
|
for (var i in t)
|
|
@@ -1648,7 +1648,7 @@ function ve(n, t) {
|
|
|
1648
1648
|
while (e = e.parentNode);
|
|
1649
1649
|
return ne();
|
|
1650
1650
|
}
|
|
1651
|
-
function
|
|
1651
|
+
function Jd(n, t) {
|
|
1652
1652
|
if (n && t)
|
|
1653
1653
|
for (var e in t)
|
|
1654
1654
|
t.hasOwnProperty(e) && (n[e] = t[e]);
|
|
@@ -1668,7 +1668,7 @@ function ko(n, t) {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
};
|
|
1670
1670
|
}
|
|
1671
|
-
function
|
|
1671
|
+
function Qd() {
|
|
1672
1672
|
clearTimeout(ui), ui = void 0;
|
|
1673
1673
|
}
|
|
1674
1674
|
function So(n, t, e) {
|
|
@@ -1689,7 +1689,7 @@ function jo(n, t, e) {
|
|
|
1689
1689
|
}), i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
|
|
1690
1690
|
}
|
|
1691
1691
|
var Gt = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
1692
|
-
function
|
|
1692
|
+
function Kd() {
|
|
1693
1693
|
var n = [], t;
|
|
1694
1694
|
return {
|
|
1695
1695
|
captureAnimationState: function() {
|
|
@@ -1715,7 +1715,7 @@ function Qd() {
|
|
|
1715
1715
|
n.push(i);
|
|
1716
1716
|
},
|
|
1717
1717
|
removeAnimationState: function(i) {
|
|
1718
|
-
n.splice(
|
|
1718
|
+
n.splice(Xd(n, {
|
|
1719
1719
|
target: i
|
|
1720
1720
|
}), 1);
|
|
1721
1721
|
},
|
|
@@ -1729,7 +1729,7 @@ function Qd() {
|
|
|
1729
1729
|
n.forEach(function(a) {
|
|
1730
1730
|
var l = 0, d = a.target, h = d.fromRect, u = yt(d), g = d.prevFromRect, m = d.prevToRect, y = a.rect, w = We(d, !0);
|
|
1731
1731
|
w && (u.top -= w.f, u.left -= w.e), d.toRect = u, d.thisAnimationDuration && xr(g, u) && !xr(h, u) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1732
|
-
(y.top - u.top) / (y.left - u.left) === (h.top - u.top) / (h.left - u.left) && (l =
|
|
1732
|
+
(y.top - u.top) / (y.left - u.left) === (h.top - u.top) / (h.left - u.left) && (l = eh(y, g, m, s.options)), xr(u, h) || (d.prevFromRect = h, d.prevToRect = u, l || (l = s.options.animation), s.animate(d, y, u, l)), l && (r = !0, o = Math.max(o, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
|
|
1733
1733
|
d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
|
|
1734
1734
|
}, l), d.thisAnimationDuration = l);
|
|
1735
1735
|
}), clearTimeout(t), r ? t = setTimeout(function() {
|
|
@@ -1740,17 +1740,17 @@ function Qd() {
|
|
|
1740
1740
|
if (o) {
|
|
1741
1741
|
P(i, "transition", ""), P(i, "transform", "");
|
|
1742
1742
|
var a = We(this.el), l = a && a.a, d = a && a.d, h = (s.left - r.left) / (l || 1), u = (s.top - r.top) / (d || 1);
|
|
1743
|
-
i.animatingX = !!h, i.animatingY = !!u, P(i, "transform", "translate3d(" + h + "px," + u + "px,0)"), this.forRepaintDummy =
|
|
1743
|
+
i.animatingX = !!h, i.animatingY = !!u, P(i, "transform", "translate3d(" + h + "px," + u + "px,0)"), this.forRepaintDummy = th(i), P(i, "transition", "transform " + o + "ms" + (this.options.easing ? " " + this.options.easing : "")), P(i, "transform", "translate3d(0,0,0)"), typeof i.animated == "number" && clearTimeout(i.animated), i.animated = setTimeout(function() {
|
|
1744
1744
|
P(i, "transition", ""), P(i, "transform", ""), i.animated = !1, i.animatingX = !1, i.animatingY = !1;
|
|
1745
1745
|
}, o);
|
|
1746
1746
|
}
|
|
1747
1747
|
}
|
|
1748
1748
|
};
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1750
|
+
function th(n) {
|
|
1751
1751
|
return n.offsetWidth;
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1753
|
+
function eh(n, t, e, i) {
|
|
1754
1754
|
return Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) / Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) * i.animation;
|
|
1755
1755
|
}
|
|
1756
1756
|
var Fe = [], Cr = {
|
|
@@ -1805,7 +1805,7 @@ var Fe = [], Cr = {
|
|
|
1805
1805
|
}), s;
|
|
1806
1806
|
}
|
|
1807
1807
|
};
|
|
1808
|
-
function
|
|
1808
|
+
function ih(n) {
|
|
1809
1809
|
var t = n.sortable, e = n.rootEl, i = n.name, s = n.targetEl, r = n.cloneEl, o = n.toEl, a = n.fromEl, l = n.oldIndex, d = n.newIndex, h = n.oldDraggableIndex, u = n.newDraggableIndex, g = n.originalEvent, m = n.putSortable, y = n.extraEventProperties;
|
|
1810
1810
|
if (t = t || e && e[Gt], !!t) {
|
|
1811
1811
|
var w, A = t.options, Q = "on" + i.charAt(0).toUpperCase() + i.substr(1);
|
|
@@ -1819,8 +1819,8 @@ function eh(n) {
|
|
|
1819
1819
|
e && e.dispatchEvent(w), A[Q] && A[Q].call(t, w);
|
|
1820
1820
|
}
|
|
1821
1821
|
}
|
|
1822
|
-
var
|
|
1823
|
-
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s = i.evt, r =
|
|
1822
|
+
var sh = ["evt"], Mt = function(t, e) {
|
|
1823
|
+
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s = i.evt, r = Zd(i, sh);
|
|
1824
1824
|
Si.pluginEvent.bind(O)(t, e, oe({
|
|
1825
1825
|
dragEl: x,
|
|
1826
1826
|
parentEl: dt,
|
|
@@ -1856,7 +1856,7 @@ var ih = ["evt"], Mt = function(t, e) {
|
|
|
1856
1856
|
}, r));
|
|
1857
1857
|
};
|
|
1858
1858
|
function Bt(n) {
|
|
1859
|
-
|
|
1859
|
+
ih(oe({
|
|
1860
1860
|
putSortable: St,
|
|
1861
1861
|
cloneEl: at,
|
|
1862
1862
|
targetEl: x,
|
|
@@ -1867,7 +1867,7 @@ function Bt(n) {
|
|
|
1867
1867
|
newDraggableIndex: ye
|
|
1868
1868
|
}, n));
|
|
1869
1869
|
}
|
|
1870
|
-
var x, dt, D, ot, je, Xi, at, _e, Ze, qt, pi, ye, zi, St, qe = !1, os = !1, as = [], Se, te, Er, Lr, Gn, Zn, oi, ze, fi, mi = !1, Ui = !1, Ji, Ot, Ar = [], Ir = !1, ls = [], Ns = typeof document < "u", qi = Co, Wn = ki || pe ? "cssFloat" : "float",
|
|
1870
|
+
var x, dt, D, ot, je, Xi, at, _e, Ze, qt, pi, ye, zi, St, qe = !1, os = !1, as = [], Se, te, Er, Lr, Gn, Zn, oi, ze, fi, mi = !1, Ui = !1, Ji, Ot, Ar = [], Ir = !1, ls = [], Ns = typeof document < "u", qi = Co, Wn = ki || pe ? "cssFloat" : "float", rh = Ns && !Eo && !Co && "draggable" in document.createElement("div"), $o = function() {
|
|
1871
1871
|
if (Ns) {
|
|
1872
1872
|
if (pe)
|
|
1873
1873
|
return !1;
|
|
@@ -1885,10 +1885,10 @@ var x, dt, D, ot, je, Xi, at, _e, Ze, qt, pi, ye, zi, St, qe = !1, os = !1, as =
|
|
|
1885
1885
|
return o && (l.clear === "both" || l.clear === u) ? "vertical" : "horizontal";
|
|
1886
1886
|
}
|
|
1887
1887
|
return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || d >= s && i[Wn] === "none" || o && i[Wn] === "none" && d + h > s) ? "vertical" : "horizontal";
|
|
1888
|
-
},
|
|
1888
|
+
}, nh = function(t, e, i) {
|
|
1889
1889
|
var s = i ? t.left : t.top, r = i ? t.right : t.bottom, o = i ? t.width : t.height, a = i ? e.left : e.top, l = i ? e.right : e.bottom, d = i ? e.width : e.height;
|
|
1890
1890
|
return s === a || r === l || s + o / 2 === a + d / 2;
|
|
1891
|
-
},
|
|
1891
|
+
}, oh = function(t, e) {
|
|
1892
1892
|
var i;
|
|
1893
1893
|
return as.some(function(s) {
|
|
1894
1894
|
var r = s[Gt].options.emptyInsertThreshold;
|
|
@@ -1930,7 +1930,7 @@ Ns && !Eo && document.addEventListener("click", function(n) {
|
|
|
1930
1930
|
var Te = function(t) {
|
|
1931
1931
|
if (x) {
|
|
1932
1932
|
t = t.touches ? t.touches[0] : t;
|
|
1933
|
-
var e =
|
|
1933
|
+
var e = oh(t.clientX, t.clientY);
|
|
1934
1934
|
if (e) {
|
|
1935
1935
|
var i = {};
|
|
1936
1936
|
for (var s in t)
|
|
@@ -1938,7 +1938,7 @@ var Te = function(t) {
|
|
|
1938
1938
|
i.target = i.rootEl = e, i.preventDefault = void 0, i.stopPropagation = void 0, e[Gt]._onDragOver(i);
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
1941
|
-
},
|
|
1941
|
+
}, ah = function(t) {
|
|
1942
1942
|
x && x.parentNode[Gt]._isOutsideThisEl(t.target);
|
|
1943
1943
|
};
|
|
1944
1944
|
function O(n, t) {
|
|
@@ -1996,7 +1996,7 @@ function O(n, t) {
|
|
|
1996
1996
|
Oo(t);
|
|
1997
1997
|
for (var s in this)
|
|
1998
1998
|
s.charAt(0) === "_" && typeof this[s] == "function" && (this[s] = this[s].bind(this));
|
|
1999
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
1999
|
+
this.nativeDraggable = t.forceFallback ? !1 : rh, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? J(n, "pointerdown", this._onTapStart) : (J(n, "mousedown", this._onTapStart), J(n, "touchstart", this._onTapStart)), this.nativeDraggable && (J(n, "dragover", this), J(n, "dragenter", this)), as.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), ue(this, Kd());
|
|
2000
2000
|
}
|
|
2001
2001
|
O.prototype = /** @lends Sortable.prototype */
|
|
2002
2002
|
{
|
|
@@ -2010,7 +2010,7 @@ O.prototype = /** @lends Sortable.prototype */
|
|
|
2010
2010
|
_onTapStart: function(t) {
|
|
2011
2011
|
if (t.cancelable) {
|
|
2012
2012
|
var e = this, i = this.el, s = this.options, r = s.preventOnFilter, o = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, h = s.filter;
|
|
2013
|
-
if (
|
|
2013
|
+
if (mh(i), !x && !(/mousedown|pointerdown/.test(o) && t.button !== 0 || s.disabled) && !d.isContentEditable && !(!this.nativeDraggable && ci && l && l.tagName.toUpperCase() === "SELECT") && (l = ee(l, s.draggable, i, !1), !(l && l.animated) && Xi !== l)) {
|
|
2014
2014
|
if (Ze = Xt(l), pi = Xt(l, s.draggable), typeof h == "function") {
|
|
2015
2015
|
if (h.call(this, t, l, this)) {
|
|
2016
2016
|
Bt({
|
|
@@ -2103,7 +2103,7 @@ O.prototype = /** @lends Sortable.prototype */
|
|
|
2103
2103
|
if (qe = !1, ot && x) {
|
|
2104
2104
|
Mt("dragStarted", this, {
|
|
2105
2105
|
evt: e
|
|
2106
|
-
}), this.nativeDraggable && J(document, "dragover",
|
|
2106
|
+
}), this.nativeDraggable && J(document, "dragover", ah);
|
|
2107
2107
|
var i = this.options;
|
|
2108
2108
|
!t && Ut(x, i.dragClass, !1), Ut(x, i.ghostClass, !0), O.active = this, t && this._appendGhost(), Bt({
|
|
2109
2109
|
sortable: this,
|
|
@@ -2237,12 +2237,12 @@ O.prototype = /** @lends Sortable.prototype */
|
|
|
2237
2237
|
if (o)
|
|
2238
2238
|
return dt = ot, Q(), this._hideClone(), A("revert"), O.eventCanceled || (je ? ot.insertBefore(x, je) : ot.appendChild(x)), Z(!0);
|
|
2239
2239
|
var ht = Wr(e, a.draggable);
|
|
2240
|
-
if (!ht ||
|
|
2240
|
+
if (!ht || ch(t, m, this) && !ht.animated) {
|
|
2241
2241
|
if (ht === x)
|
|
2242
2242
|
return Z(!1);
|
|
2243
2243
|
if (ht && e === t.target && (i = ht), i && (r = yt(i)), Gi(ot, e, x, s, i, r, t, !!i) !== !1)
|
|
2244
2244
|
return Q(), ht && ht.nextSibling ? e.insertBefore(x, ht.nextSibling) : e.appendChild(x), dt = e, ft(), Z(!0);
|
|
2245
|
-
} else if (ht &&
|
|
2245
|
+
} else if (ht && hh(t, m, this)) {
|
|
2246
2246
|
var Ct = Ke(e, 0, a, !0);
|
|
2247
2247
|
if (Ct === x)
|
|
2248
2248
|
return Z(!1);
|
|
@@ -2250,8 +2250,8 @@ O.prototype = /** @lends Sortable.prototype */
|
|
|
2250
2250
|
return Q(), e.insertBefore(x, Ct), dt = e, ft(), Z(!0);
|
|
2251
2251
|
} else if (i.parentNode === e) {
|
|
2252
2252
|
r = yt(i);
|
|
2253
|
-
var H = 0, lt, $t = x.parentNode !== e, rt = !
|
|
2254
|
-
ze !== i && (lt = r[T], mi = !1, Ui = !rt && a.invertSwap || $t), H =
|
|
2253
|
+
var H = 0, lt, $t = x.parentNode !== e, rt = !nh(x.animated && x.toRect || s, i.animated && i.toRect || r, m), T = m ? "top" : "left", N = Un(i, "top", "top") || Un(x, "top", "top"), _t = N ? N.scrollTop : void 0;
|
|
2254
|
+
ze !== i && (lt = r[T], mi = !1, Ui = !rt && a.invertSwap || $t), H = uh(t, i, r, m, rt ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ui, ze === i);
|
|
2255
2255
|
var vt;
|
|
2256
2256
|
if (H !== 0) {
|
|
2257
2257
|
var Et = Xt(x);
|
|
@@ -2266,7 +2266,7 @@ O.prototype = /** @lends Sortable.prototype */
|
|
|
2266
2266
|
zt = H === 1;
|
|
2267
2267
|
var De = Gi(ot, e, x, s, i, r, t, zt);
|
|
2268
2268
|
if (De !== !1)
|
|
2269
|
-
return (De === 1 || De === -1) && (zt = De === 1), Ir = !0, setTimeout(
|
|
2269
|
+
return (De === 1 || De === -1) && (zt = De === 1), Ir = !0, setTimeout(dh, 30), Q(), zt && !Ft ? e.appendChild(x) : i.parentNode.insertBefore(x, zt ? Ft : i), N && So(N, 0, _t - N.scrollTop), dt = x.parentNode, lt !== void 0 && !Ui && (Ji = Math.abs(lt - yt(i)[T])), ft(), Z(!0);
|
|
2270
2270
|
}
|
|
2271
2271
|
if (e.contains(x))
|
|
2272
2272
|
return Z(!1);
|
|
@@ -2348,7 +2348,7 @@ O.prototype = /** @lends Sortable.prototype */
|
|
|
2348
2348
|
break;
|
|
2349
2349
|
case "dragenter":
|
|
2350
2350
|
case "dragover":
|
|
2351
|
-
x && (this._onDragOver(t),
|
|
2351
|
+
x && (this._onDragOver(t), lh(t));
|
|
2352
2352
|
break;
|
|
2353
2353
|
case "selectstart":
|
|
2354
2354
|
t.preventDefault();
|
|
@@ -2361,7 +2361,7 @@ O.prototype = /** @lends Sortable.prototype */
|
|
|
2361
2361
|
*/
|
|
2362
2362
|
toArray: function() {
|
|
2363
2363
|
for (var t = [], e, i = this.el.children, s = 0, r = i.length, o = this.options; s < r; s++)
|
|
2364
|
-
e = i[s], ee(e, o.draggable, this.el, !1) && t.push(e.getAttribute(o.dataIdAttr) ||
|
|
2364
|
+
e = i[s], ee(e, o.draggable, this.el, !1) && t.push(e.getAttribute(o.dataIdAttr) || fh(e));
|
|
2365
2365
|
return t;
|
|
2366
2366
|
},
|
|
2367
2367
|
/**
|
|
@@ -2435,7 +2435,7 @@ O.prototype = /** @lends Sortable.prototype */
|
|
|
2435
2435
|
}
|
|
2436
2436
|
}
|
|
2437
2437
|
};
|
|
2438
|
-
function
|
|
2438
|
+
function lh(n) {
|
|
2439
2439
|
n.dataTransfer && (n.dataTransfer.dropEffect = "move"), n.cancelable && n.preventDefault();
|
|
2440
2440
|
}
|
|
2441
2441
|
function Gi(n, t, e, i, s, r, o, a) {
|
|
@@ -2448,18 +2448,18 @@ function Gi(n, t, e, i, s, r, o, a) {
|
|
|
2448
2448
|
function kr(n) {
|
|
2449
2449
|
n.draggable = !1;
|
|
2450
2450
|
}
|
|
2451
|
-
function
|
|
2451
|
+
function dh() {
|
|
2452
2452
|
Ir = !1;
|
|
2453
2453
|
}
|
|
2454
|
-
function
|
|
2454
|
+
function hh(n, t, e) {
|
|
2455
2455
|
var i = yt(Ke(e.el, 0, e.options, !0)), s = jo(e.el, e.options, D), r = 10;
|
|
2456
2456
|
return t ? n.clientX < s.left - r || n.clientY < i.top && n.clientX < i.right : n.clientY < s.top - r || n.clientY < i.bottom && n.clientX < i.left;
|
|
2457
2457
|
}
|
|
2458
|
-
function
|
|
2458
|
+
function ch(n, t, e) {
|
|
2459
2459
|
var i = yt(Wr(e.el, e.options.draggable)), s = jo(e.el, e.options, D), r = 10;
|
|
2460
2460
|
return t ? n.clientX > s.right + r || n.clientY > i.bottom && n.clientX > i.left : n.clientY > s.bottom + r || n.clientX > i.right && n.clientY > i.top;
|
|
2461
2461
|
}
|
|
2462
|
-
function
|
|
2462
|
+
function uh(n, t, e, i, s, r, o, a) {
|
|
2463
2463
|
var l = i ? n.clientY : n.clientX, d = i ? e.height : e.width, h = i ? e.top : e.left, u = i ? e.bottom : e.right, g = !1;
|
|
2464
2464
|
if (!o) {
|
|
2465
2465
|
if (a && Ji < d * s) {
|
|
@@ -2468,19 +2468,19 @@ function ch(n, t, e, i, s, r, o, a) {
|
|
|
2468
2468
|
else if (fi === 1 ? l < h + Ji : l > u - Ji)
|
|
2469
2469
|
return -fi;
|
|
2470
2470
|
} else if (l > h + d * (1 - s) / 2 && l < u - d * (1 - s) / 2)
|
|
2471
|
-
return
|
|
2471
|
+
return ph(t);
|
|
2472
2472
|
}
|
|
2473
2473
|
return g = g || o, g && (l < h + d * r / 2 || l > u - d * r / 2) ? l > h + d / 2 ? 1 : -1 : 0;
|
|
2474
2474
|
}
|
|
2475
|
-
function
|
|
2475
|
+
function ph(n) {
|
|
2476
2476
|
return Xt(x) < Xt(n) ? 1 : -1;
|
|
2477
2477
|
}
|
|
2478
|
-
function
|
|
2478
|
+
function fh(n) {
|
|
2479
2479
|
for (var t = n.tagName + n.className + n.src + n.href + n.textContent, e = t.length, i = 0; e--; )
|
|
2480
2480
|
i += t.charCodeAt(e);
|
|
2481
2481
|
return i.toString(36);
|
|
2482
2482
|
}
|
|
2483
|
-
function
|
|
2483
|
+
function mh(n) {
|
|
2484
2484
|
ls.length = 0;
|
|
2485
2485
|
for (var t = n.getElementsByTagName("input"), e = t.length; e--; ) {
|
|
2486
2486
|
var i = t[e];
|
|
@@ -2504,7 +2504,7 @@ O.utils = {
|
|
|
2504
2504
|
is: function(t, e) {
|
|
2505
2505
|
return !!ee(t, e, t, !1);
|
|
2506
2506
|
},
|
|
2507
|
-
extend:
|
|
2507
|
+
extend: Jd,
|
|
2508
2508
|
throttle: ko,
|
|
2509
2509
|
closest: ee,
|
|
2510
2510
|
toggleClass: Ut,
|
|
@@ -2530,9 +2530,9 @@ O.mount = function() {
|
|
|
2530
2530
|
O.create = function(n, t) {
|
|
2531
2531
|
return new O(n, t);
|
|
2532
2532
|
};
|
|
2533
|
-
O.version =
|
|
2533
|
+
O.version = Wd;
|
|
2534
2534
|
var bt = [], ai, Rr, Dr = !1, Sr, Tr, ds, li;
|
|
2535
|
-
function
|
|
2535
|
+
function gh() {
|
|
2536
2536
|
function n() {
|
|
2537
2537
|
this.defaults = {
|
|
2538
2538
|
scroll: !0,
|
|
@@ -2554,7 +2554,7 @@ function mh() {
|
|
|
2554
2554
|
!this.options.dragOverBubble && !i.rootEl && this._handleAutoScroll(i);
|
|
2555
2555
|
},
|
|
2556
2556
|
drop: function() {
|
|
2557
|
-
this.sortable.nativeDraggable ? W(document, "dragover", this._handleAutoScroll) : (W(document, "pointermove", this._handleFallbackAutoScroll), W(document, "touchmove", this._handleFallbackAutoScroll), W(document, "mousemove", this._handleFallbackAutoScroll)), Yn(), Ki(),
|
|
2557
|
+
this.sortable.nativeDraggable ? W(document, "dragover", this._handleAutoScroll) : (W(document, "pointermove", this._handleFallbackAutoScroll), W(document, "touchmove", this._handleFallbackAutoScroll), W(document, "mousemove", this._handleFallbackAutoScroll)), Yn(), Ki(), Qd();
|
|
2558
2558
|
},
|
|
2559
2559
|
nulling: function() {
|
|
2560
2560
|
ds = Rr = ai = Dr = li = Sr = Tr = null, bt.length = 0;
|
|
@@ -2657,15 +2657,15 @@ Xr.prototype = {
|
|
|
2657
2657
|
ue(Xr, {
|
|
2658
2658
|
pluginName: "removeOnSpill"
|
|
2659
2659
|
});
|
|
2660
|
-
O.mount(new
|
|
2660
|
+
O.mount(new gh());
|
|
2661
2661
|
O.mount(Xr, Yr);
|
|
2662
|
-
const
|
|
2662
|
+
const bh = (n) => {
|
|
2663
2663
|
const t = n.item;
|
|
2664
2664
|
let e = Array.prototype.slice.call(t.parentNode.childNodes);
|
|
2665
2665
|
return e = e.filter(
|
|
2666
2666
|
(i) => i.nodeType != Node.ELEMENT_NODE || !i.classList.contains("sortable-fallback")
|
|
2667
2667
|
), e;
|
|
2668
|
-
},
|
|
2668
|
+
}, yh = (n, t, e, i, s, r) => {
|
|
2669
2669
|
const a = n.item.parentNode;
|
|
2670
2670
|
for (const w of e)
|
|
2671
2671
|
a.appendChild(w);
|
|
@@ -2690,7 +2690,7 @@ const gh = (n) => {
|
|
|
2690
2690
|
}
|
|
2691
2691
|
t.requestUpdate();
|
|
2692
2692
|
};
|
|
2693
|
-
function
|
|
2693
|
+
function _h(n, t, e, i) {
|
|
2694
2694
|
let s = [], r = null;
|
|
2695
2695
|
n._sortable = O.create(n, {
|
|
2696
2696
|
handle: ".drag-handle",
|
|
@@ -2698,14 +2698,14 @@ function yh(n, t, e, i) {
|
|
|
2698
2698
|
swapThreshold: 0.5,
|
|
2699
2699
|
animation: 150,
|
|
2700
2700
|
easing: "cubic-bezier(1, 0, 0, 1)",
|
|
2701
|
-
onStart: (o) => s =
|
|
2701
|
+
onStart: (o) => s = bh(o),
|
|
2702
2702
|
onMove: (o) => {
|
|
2703
2703
|
r = o.related;
|
|
2704
2704
|
},
|
|
2705
|
-
onEnd: (o) =>
|
|
2705
|
+
onEnd: (o) => yh(o, i, s, t, e, r)
|
|
2706
2706
|
});
|
|
2707
2707
|
}
|
|
2708
|
-
function
|
|
2708
|
+
function vh(n, t, e, i) {
|
|
2709
2709
|
const s = n.getArray();
|
|
2710
2710
|
let r = !1;
|
|
2711
2711
|
s.forEach((o) => {
|
|
@@ -2735,7 +2735,7 @@ function Jr(n, t, e) {
|
|
|
2735
2735
|
};
|
|
2736
2736
|
return s(n, t, e), i;
|
|
2737
2737
|
}
|
|
2738
|
-
function
|
|
2738
|
+
function wh(n, t, e) {
|
|
2739
2739
|
if (!n || !t)
|
|
2740
2740
|
return !1;
|
|
2741
2741
|
if (!Do(n, e))
|
|
@@ -2747,7 +2747,7 @@ function Do(n, t) {
|
|
|
2747
2747
|
const e = n.get("minZoom"), i = n.get("maxZoom");
|
|
2748
2748
|
return !!(t && (e !== -1 / 0 || i !== 1 / 0));
|
|
2749
2749
|
}
|
|
2750
|
-
function
|
|
2750
|
+
function xh(n, t) {
|
|
2751
2751
|
var s, r, o;
|
|
2752
2752
|
return !n || !t ? void 0 : n.getLayers ? "group" : ((o = (s = t.getInteractions().getArray().filter((a) => a.freehand_ !== void 0).map((a) => a.source_)) == null ? void 0 : s.ol_uid) == null ? void 0 : o.includes(
|
|
2753
2753
|
// @ts-ignore
|
|
@@ -2771,7 +2771,7 @@ function No(n, t) {
|
|
|
2771
2771
|
}
|
|
2772
2772
|
return e;
|
|
2773
2773
|
}
|
|
2774
|
-
function
|
|
2774
|
+
function Ch(n, t) {
|
|
2775
2775
|
var r;
|
|
2776
2776
|
if (!t || !n.getSource().getTileUrlFunction())
|
|
2777
2777
|
return null;
|
|
@@ -2781,14 +2781,14 @@ function xh(n, t) {
|
|
|
2781
2781
|
);
|
|
2782
2782
|
return Object.keys(s).length ? s : null;
|
|
2783
2783
|
}
|
|
2784
|
-
const
|
|
2784
|
+
const Eh = (n, t) => n == null ? void 0 : n.filter(
|
|
2785
2785
|
(e) => ["remove", "sort"].filter((i) => t != null && t.get("layerControlDisable") ? i !== "sort" : !0).includes(e)
|
|
2786
|
-
),
|
|
2786
|
+
), Lh = (n, t) => n == null ? void 0 : n.filter((e) => {
|
|
2787
2787
|
let i = !0;
|
|
2788
2788
|
return ["remove", "sort"].includes(e) && (i = !1), e === "info" && (i = t.get("description")), e === "config" && (i = t.get("layerConfig")), i;
|
|
2789
|
-
}),
|
|
2789
|
+
}), Ah = (n, t) => q`
|
|
2790
2790
|
<button slot="${n}-icon" class="icon">${t ? n : et}</button>
|
|
2791
|
-
`,
|
|
2791
|
+
`, kh = (n) => q`
|
|
2792
2792
|
<button
|
|
2793
2793
|
class="remove-icon icon"
|
|
2794
2794
|
@click=${() => {
|
|
@@ -2803,7 +2803,7 @@ const Ch = (n, t) => n == null ? void 0 : n.filter(
|
|
|
2803
2803
|
>
|
|
2804
2804
|
${n.unstyled ? "x" : et}
|
|
2805
2805
|
</button>
|
|
2806
|
-
`,
|
|
2806
|
+
`, Sh = (n) => q`
|
|
2807
2807
|
<span class="button sort-icon icon drag-handle">
|
|
2808
2808
|
${n ? "═" : et}
|
|
2809
2809
|
</span>
|
|
@@ -2821,7 +2821,7 @@ const Ho = Ur(class extends qr {
|
|
|
2821
2821
|
constructor(n) {
|
|
2822
2822
|
if (super(n), n.type !== be.PROPERTY && n.type !== be.ATTRIBUTE && n.type !== be.BOOLEAN_ATTRIBUTE)
|
|
2823
2823
|
throw Error("The `live` directive is not allowed on child or event bindings");
|
|
2824
|
-
if (!
|
|
2824
|
+
if (!Gl(n))
|
|
2825
2825
|
throw Error("`live` bindings can only contain a single expression");
|
|
2826
2826
|
}
|
|
2827
2827
|
render(n) {
|
|
@@ -2867,7 +2867,7 @@ class Nr extends qr {
|
|
|
2867
2867
|
}
|
|
2868
2868
|
}
|
|
2869
2869
|
Nr.directiveName = "unsafeHTML", Nr.resultType = 1;
|
|
2870
|
-
const
|
|
2870
|
+
const Th = Ur(Nr);
|
|
2871
2871
|
/**
|
|
2872
2872
|
* @license
|
|
2873
2873
|
* Copyright 2021 Google LLC
|
|
@@ -2880,20 +2880,20 @@ function* ts(n, t) {
|
|
|
2880
2880
|
yield t(i, e++);
|
|
2881
2881
|
}
|
|
2882
2882
|
}
|
|
2883
|
-
const
|
|
2883
|
+
const jh = (n) => typeof n.type != "string" && "multiple", $h = (n) => typeof n.type == "string" && "string", Ph = (n) => !n.type && n.properties && "object", Oh = (n) => typeof n.type == "string" && ["string", "number", "integer", "boolean", "null", "array", "object"].includes(n.type) && n.type, Ih = (n) => n.type === "string" && n.format === "signature" && "signature", Bh = (n) => {
|
|
2884
2884
|
if (n.type === "boolean")
|
|
2885
2885
|
return n.format === "checkbox" || n.options && n.options.checkbox ? "checkbox" : n.format === "select2" ? "select2" : n.format === "selectize" ? "selectize" : n.format === "choices" ? "choices" : "select";
|
|
2886
|
-
},
|
|
2886
|
+
}, Rh = (n) => n.type === "any" && "multiple", Dh = (n) => n.type === "string" && n.media && n.media.binaryEncoding === "base64" && "base64", Nh = (n) => n.type === "string" && n.format === "url" && window.FileReader && n.options && n.options.upload === Object(n.options.upload) && "upload", Mh = (n) => n.type === "array" && n.format === "table" && "table", Hh = (n) => {
|
|
2887
2887
|
if (n.enumSource)
|
|
2888
2888
|
return n.format === "radio" ? "radio" : n.format === "select2" ? "select2" : n.format === "selectize" ? "selectize" : n.format === "choices" ? "choices" : "select";
|
|
2889
|
-
},
|
|
2889
|
+
}, Vh = (n) => {
|
|
2890
2890
|
if (n.enum) {
|
|
2891
2891
|
if (n.type === "array" || n.type === "object")
|
|
2892
2892
|
return "enum";
|
|
2893
2893
|
if (n.type === "number" || n.type === "integer" || n.type === "string")
|
|
2894
2894
|
return n.format === "radio" ? "radio" : n.format === "select2" ? "select2" : n.format === "selectize" ? "selectize" : n.format === "choices" ? "choices" : "select";
|
|
2895
2895
|
}
|
|
2896
|
-
},
|
|
2896
|
+
}, Fh = (n, t) => {
|
|
2897
2897
|
if (n.items && (n.items = t.expandSchema(n.items)), n.type === "array" && n.items && !Array.isArray(n.items) && ["string", "number", "integer"].includes(n.items.type)) {
|
|
2898
2898
|
if (n.format === "choices")
|
|
2899
2899
|
return "arrayChoices";
|
|
@@ -2906,16 +2906,16 @@ const Th = (n) => typeof n.type != "string" && "multiple", jh = (n) => typeof n.
|
|
|
2906
2906
|
return "multiselect";
|
|
2907
2907
|
}
|
|
2908
2908
|
}
|
|
2909
|
-
},
|
|
2909
|
+
}, zh = (n) => (n.oneOf || n.anyOf) && "multiple", Uh = (n) => n.if && "multiple", qh = (n) => ["string", "integer"].includes(n.type) && ["date", "time", "datetime-local"].includes(n.format) && "datetime", Gh = (n) => ["string", "integer"].includes(n.type) && ["starrating", "rating"].includes(n.format) && "starrating", Zh = (n) => {
|
|
2910
2910
|
if (n.links) {
|
|
2911
2911
|
for (let t = 0; t < n.links.length; t++)
|
|
2912
2912
|
if (n.links[t].rel && n.links[t].rel.toLowerCase() === "describedby")
|
|
2913
2913
|
return "describedBy";
|
|
2914
2914
|
}
|
|
2915
|
-
},
|
|
2915
|
+
}, Wh = (n) => {
|
|
2916
2916
|
if ((n.type === "integer" || n.type === "number") && n.format === "stepper")
|
|
2917
2917
|
return "stepper";
|
|
2918
|
-
},
|
|
2918
|
+
}, Yh = (n) => n.format === "button" && "button", Xh = (n) => n.format === "info" && "info", Jh = (n) => n.type === "string" && n.format === "uuid" && "uuid", Qh = (n) => n.type === "string" && n.format === "autocomplete" && "autocomplete", Kh = (n) => n.type === "string" && n.format === "jodit" && "jodit", tc = (n) => n.type === "string" && n.format === "markdown" && "simplemde", ec = (n) => n.type === "string" && ["xhtml", "bbcode"].includes(n.format) && "sceditor", ic = ["actionscript", "batchfile", "c", "c++", "cpp", "coffee", "csharp", "css", "dart", "django", "ejs", "erlang", "golang", "groovy", "handlebars", "haskell", "haxe", "html", "ini", "jade", "java", "javascript", "json", "less", "lisp", "lua", "makefile", "matlab", "mysql", "objectivec", "pascal", "perl", "pgsql", "php", "python", "prql", "r", "ruby", "rust", "sass", "scala", "scss", "sh", "smarty", "sql", "sqlserver", "stylus", "svg", "typescript", "twig", "vbscript", "xml", "yaml", "zig"], sc = (n) => n.type === "string" && ic.includes(n.format) && "ace", rc = (n) => n.type === "string" && ["ip", "ipv4", "ipv6", "hostname"].includes(n.format) && "ip", nc = (n) => n.type === "string" && n.format === "color" && "colorpicker", oc = [nc, rc, sc, ec, tc, Kh, Qh, Jh, Xh, Yh, Wh, Zh, Gh, qh, zh, Uh, Fh, Vh, Hh, Mh, Nh, Dh, Rh, Bh, Ih, Oh, Ph, jh, $h];
|
|
2919
2919
|
function Vo(n) {
|
|
2920
2920
|
return !(n === null || typeof n != "object" || n.nodeType || n === n.window || n.constructor && !Zt(n.constructor.prototype, "isPrototypeOf"));
|
|
2921
2921
|
}
|
|
@@ -2939,18 +2939,18 @@ function zo(n) {
|
|
|
2939
2939
|
function Zt(n, t) {
|
|
2940
2940
|
return n && Object.prototype.hasOwnProperty.call(n, t);
|
|
2941
2941
|
}
|
|
2942
|
-
const
|
|
2943
|
-
function
|
|
2942
|
+
const ac = /^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/;
|
|
2943
|
+
function lc(n) {
|
|
2944
2944
|
if (typeof n > "u" || n === null)
|
|
2945
2945
|
return !1;
|
|
2946
|
-
const t = n.match(
|
|
2946
|
+
const t = n.match(ac), e = parseFloat(n);
|
|
2947
2947
|
return t !== null && !isNaN(e) && isFinite(e);
|
|
2948
2948
|
}
|
|
2949
|
-
const
|
|
2950
|
-
function
|
|
2949
|
+
const dc = /^\s*(-|\+)?(\d+)\s*$/;
|
|
2950
|
+
function hc(n) {
|
|
2951
2951
|
if (typeof n > "u" || n === null)
|
|
2952
2952
|
return !1;
|
|
2953
|
-
const t = n.match(
|
|
2953
|
+
const t = n.match(dc), e = parseInt(n);
|
|
2954
2954
|
return t !== null && !isNaN(e) && isFinite(e);
|
|
2955
2955
|
}
|
|
2956
2956
|
function vi() {
|
|
@@ -2972,7 +2972,7 @@ function hs(n, ...t) {
|
|
|
2972
2972
|
$r(e[i]) ? (n[i] || Object.assign(n, { [i]: {} }), hs(n[i], e[i])) : Object.assign(n, { [i]: e[i] });
|
|
2973
2973
|
return hs(n, ...t);
|
|
2974
2974
|
}
|
|
2975
|
-
function
|
|
2975
|
+
function cc(n, t) {
|
|
2976
2976
|
return Object.keys(t).forEach(function(e) {
|
|
2977
2977
|
e in n && (n[e] = t[e]);
|
|
2978
2978
|
}), n;
|
|
@@ -3455,7 +3455,7 @@ class Wt extends It {
|
|
|
3455
3455
|
i.length ? this.theme.addInputError(this.input, `${i.join(". ")}.`) : this.theme.removeInputError(this.input);
|
|
3456
3456
|
}
|
|
3457
3457
|
}
|
|
3458
|
-
class
|
|
3458
|
+
class uc extends Wt {
|
|
3459
3459
|
setValue(t, e, i) {
|
|
3460
3460
|
const s = super.setValue(t, e, i);
|
|
3461
3461
|
s !== void 0 && s.changed && this.ace_editor_instance && (this.ace_editor_instance.setValue(s.value), this.ace_editor_instance.session.getSelection().clearSelection(), this.ace_editor_instance.resize());
|
|
@@ -3492,7 +3492,7 @@ class cc extends Wt {
|
|
|
3492
3492
|
this.ace_editor_instance && (this.ace_editor_instance.destroy(), this.ace_editor_instance = null), super.destroy();
|
|
3493
3493
|
}
|
|
3494
3494
|
}
|
|
3495
|
-
const
|
|
3495
|
+
const pc = { ".json-editor-btntype-toggle": "margin:0%2010px%200%200", ".je-array-control-btn": "width:100%25;text-align:left;margin-bottom:3px" };
|
|
3496
3496
|
class Qr extends It {
|
|
3497
3497
|
askConfirmation() {
|
|
3498
3498
|
return !(this.jsoneditor.options.prompt_before_delete === !0 && window.confirm(this.translate("button_delete_node_warning")) === !1);
|
|
@@ -3793,7 +3793,7 @@ class Qr extends It {
|
|
|
3793
3793
|
);
|
|
3794
3794
|
}
|
|
3795
3795
|
}
|
|
3796
|
-
Qr.rules =
|
|
3796
|
+
Qr.rules = pc;
|
|
3797
3797
|
class Ms extends It {
|
|
3798
3798
|
onInputChange() {
|
|
3799
3799
|
this.value = this.input.value, this.onChange(!0);
|
|
@@ -3897,7 +3897,7 @@ class Ms extends It {
|
|
|
3897
3897
|
s.length ? this.theme.addInputError(this.input || this.inputs, `${s.join(". ")}.`) : this.theme.removeInputError(this.input || this.inputs);
|
|
3898
3898
|
}
|
|
3899
3899
|
}
|
|
3900
|
-
class
|
|
3900
|
+
class fc extends Ms {
|
|
3901
3901
|
setValue(t, e) {
|
|
3902
3902
|
this.choices_instance ? (t = [].concat(t).map((i) => `${i}`), this.updateValue(t), this.choices_instance.removeActiveItems(), this.choices_instance.setChoiceByValue(this.value), this.onChange(!0)) : super.setValue(t, e);
|
|
3903
3903
|
}
|
|
@@ -3947,7 +3947,7 @@ class pc extends Ms {
|
|
|
3947
3947
|
this.choices_instance && (this.choices_instance.destroy(), this.choices_instance = null), super.destroy();
|
|
3948
3948
|
}
|
|
3949
3949
|
}
|
|
3950
|
-
class
|
|
3950
|
+
class mc extends Ms {
|
|
3951
3951
|
setValue(t, e) {
|
|
3952
3952
|
this.select2_instance ? (t = [].concat(t).map((i) => `${i}`), this.updateValue(t), this.select2v4 ? this.select2_instance.val(this.value).change() : this.select2_instance.select2("val", this.value), this.onChange(!0)) : super.setValue(t, e);
|
|
3953
3953
|
}
|
|
@@ -3992,7 +3992,7 @@ class fc extends Ms {
|
|
|
3992
3992
|
this.select2_instance && (this.select2_instance.select2("destroy"), this.select2_instance = null), super.destroy();
|
|
3993
3993
|
}
|
|
3994
3994
|
}
|
|
3995
|
-
class
|
|
3995
|
+
class gc extends Ms {
|
|
3996
3996
|
setValue(t, e) {
|
|
3997
3997
|
this.selectize_instance ? (t = [].concat(t).map((i) => `${i}`), this.updateValue(t), this.selectize_instance.setValue(this.value), this.onChange(!0)) : super.setValue(t, e);
|
|
3998
3998
|
}
|
|
@@ -4047,7 +4047,7 @@ class mc extends Ms {
|
|
|
4047
4047
|
this.selectize_instance && (this.selectize_instance.destroy(), this.selectize_instance = null), super.destroy();
|
|
4048
4048
|
}
|
|
4049
4049
|
}
|
|
4050
|
-
class
|
|
4050
|
+
class bc extends Wt {
|
|
4051
4051
|
postBuild() {
|
|
4052
4052
|
window.Autocomplete && (this.autocomplete_wrapper = document.createElement("div"), this.input.parentNode.insertBefore(this.autocomplete_wrapper, this.input.nextSibling), this.autocomplete_wrapper.appendChild(this.input), this.autocomplete_dropdown = document.createElement("ul"), this.input.parentNode.insertBefore(this.autocomplete_dropdown, this.input.nextSibling)), super.postBuild();
|
|
4053
4053
|
}
|
|
@@ -4065,7 +4065,7 @@ class gc extends Wt {
|
|
|
4065
4065
|
this.autocomplete_instance && (this.input && this.input.parentNode && this.input.parentNode.removeChild(this.input), this.autocomplete_dropdown && this.autocomplete_dropdown.parentNode && this.autocomplete_dropdown.parentNode.removeChild(this.autocomplete_dropdown), this.autocomplete_wrapper && this.autocomplete_wrapper.parentNode && this.autocomplete_wrapper.parentNode.removeChild(this.autocomplete_wrapper), this.autocomplete_instance = null), super.destroy();
|
|
4066
4066
|
}
|
|
4067
4067
|
}
|
|
4068
|
-
class
|
|
4068
|
+
class yc extends It {
|
|
4069
4069
|
getNumColumns() {
|
|
4070
4070
|
return 4;
|
|
4071
4071
|
}
|
|
@@ -4170,7 +4170,7 @@ class Uo extends It {
|
|
|
4170
4170
|
this.jsoneditor.off("change", this.changeHandler), this.changeHandler = null, super.destroy();
|
|
4171
4171
|
}
|
|
4172
4172
|
}
|
|
4173
|
-
class
|
|
4173
|
+
class _c extends It {
|
|
4174
4174
|
setValue(t, e) {
|
|
4175
4175
|
t = !!t;
|
|
4176
4176
|
const i = this.getValue() !== t;
|
|
@@ -4340,7 +4340,7 @@ class Ti extends It {
|
|
|
4340
4340
|
o.length ? this.theme.addInputError(this.input, `${o.join(". ")}.`) : this.theme.removeInputError(this.input);
|
|
4341
4341
|
}
|
|
4342
4342
|
}
|
|
4343
|
-
const
|
|
4343
|
+
const vc = { ".choices > *": "box-sizing:border-box" };
|
|
4344
4344
|
class qo extends Ti {
|
|
4345
4345
|
setValue(t, e) {
|
|
4346
4346
|
if (this.choices_instance) {
|
|
@@ -4377,8 +4377,8 @@ class qo extends Ti {
|
|
|
4377
4377
|
this.choices_instance && (this.choices_instance.destroy(), this.choices_instance = null), super.destroy();
|
|
4378
4378
|
}
|
|
4379
4379
|
}
|
|
4380
|
-
qo.rules =
|
|
4381
|
-
class
|
|
4380
|
+
qo.rules = vc;
|
|
4381
|
+
class wc extends Wt {
|
|
4382
4382
|
build() {
|
|
4383
4383
|
if (super.build(), !!this.input && (this.schema.max && typeof this.schema.max == "string" && this.input.setAttribute("max", this.schema.max), this.schema.min && typeof this.schema.max == "string" && this.input.setAttribute("min", this.schema.min), window.flatpickr && typeof this.options.flatpickr == "object")) {
|
|
4384
4384
|
this.options.flatpickr.enableTime = this.schema.format !== "date", this.options.flatpickr.noCalendar = this.schema.format === "time", this.schema.type === "integer" && (this.options.flatpickr.mode = "single"), this.input.setAttribute("data-input", "");
|
|
@@ -4426,7 +4426,7 @@ class vc extends Wt {
|
|
|
4426
4426
|
return `0${t}`.slice(-2);
|
|
4427
4427
|
}
|
|
4428
4428
|
}
|
|
4429
|
-
class
|
|
4429
|
+
class xc extends It {
|
|
4430
4430
|
register() {
|
|
4431
4431
|
if (this.editors) {
|
|
4432
4432
|
for (let t = 0; t < this.editors.length; t++)
|
|
@@ -4517,7 +4517,7 @@ class wc extends It {
|
|
|
4517
4517
|
});
|
|
4518
4518
|
}
|
|
4519
4519
|
}
|
|
4520
|
-
class
|
|
4520
|
+
class Cc extends It {
|
|
4521
4521
|
getNumColumns() {
|
|
4522
4522
|
return 4;
|
|
4523
4523
|
}
|
|
@@ -4574,7 +4574,7 @@ class xc extends It {
|
|
|
4574
4574
|
this.display_area && this.display_area.parentNode && this.display_area.parentNode.removeChild(this.display_area), this.title && this.title.parentNode && this.title.parentNode.removeChild(this.title), this.switcher && this.switcher.parentNode && this.switcher.parentNode.removeChild(this.switcher), super.destroy();
|
|
4575
4575
|
}
|
|
4576
4576
|
}
|
|
4577
|
-
class
|
|
4577
|
+
class Ec extends It {
|
|
4578
4578
|
register() {
|
|
4579
4579
|
super.register(), this.input && this.jsoneditor.options.use_name_attributes && this.input.setAttribute("name", this.formname);
|
|
4580
4580
|
}
|
|
@@ -4627,7 +4627,7 @@ class Cc extends It {
|
|
|
4627
4627
|
this.refreshValue();
|
|
4628
4628
|
}
|
|
4629
4629
|
}
|
|
4630
|
-
class
|
|
4630
|
+
class Lc extends Uo {
|
|
4631
4631
|
build() {
|
|
4632
4632
|
this.options.compact = !1, this.header = this.label = this.theme.getLabelLike(this.getTitle()), this.description = this.theme.getDescription(this.schema.description || ""), this.control = this.theme.getFormControl(this.label, this.description, null), this.container.appendChild(this.control);
|
|
4633
4633
|
}
|
|
@@ -4665,7 +4665,7 @@ class Go extends Wt {
|
|
|
4665
4665
|
return;
|
|
4666
4666
|
}
|
|
4667
4667
|
} else
|
|
4668
|
-
return
|
|
4668
|
+
return lc(this.value) ? parseFloat(this.value) : this.value;
|
|
4669
4669
|
}
|
|
4670
4670
|
}
|
|
4671
4671
|
class Zo extends Go {
|
|
@@ -4678,10 +4678,10 @@ class Zo extends Go {
|
|
|
4678
4678
|
if (this.shouldBeUnset())
|
|
4679
4679
|
return;
|
|
4680
4680
|
} else
|
|
4681
|
-
return
|
|
4681
|
+
return hc(this.value) ? parseInt(this.value) : this.value;
|
|
4682
4682
|
}
|
|
4683
4683
|
}
|
|
4684
|
-
class
|
|
4684
|
+
class Ac extends Wt {
|
|
4685
4685
|
preBuild() {
|
|
4686
4686
|
if (super.preBuild(), this.schema.options || (this.schema.options = {}), !this.schema.options.cleave)
|
|
4687
4687
|
switch (this.format) {
|
|
@@ -4703,7 +4703,7 @@ class Lc extends Wt {
|
|
|
4703
4703
|
this.options = $(this.options, this.schema.options || {});
|
|
4704
4704
|
}
|
|
4705
4705
|
}
|
|
4706
|
-
class
|
|
4706
|
+
class kc extends Wt {
|
|
4707
4707
|
setValue(t, e, i) {
|
|
4708
4708
|
const s = super.setValue(t, e, i);
|
|
4709
4709
|
s !== void 0 && s.changed && this.jodit_instance && this.jodit_instance.setEditorValue(s.value);
|
|
@@ -4732,7 +4732,7 @@ class Ac extends Wt {
|
|
|
4732
4732
|
this.jodit_instance && (this.jodit_instance.destruct(), this.jodit_instance = null), super.destroy();
|
|
4733
4733
|
}
|
|
4734
4734
|
}
|
|
4735
|
-
const
|
|
4735
|
+
const Sc = (n) => {
|
|
4736
4736
|
const t = n.split(".");
|
|
4737
4737
|
if (t.length !== 4)
|
|
4738
4738
|
throw new Error("error_ipv4");
|
|
@@ -4740,28 +4740,28 @@ const kc = (n) => {
|
|
|
4740
4740
|
if (isNaN(+e) || +e < 0 || +e > 255)
|
|
4741
4741
|
throw new Error("error_ipv4");
|
|
4742
4742
|
});
|
|
4743
|
-
},
|
|
4743
|
+
}, Tc = (n) => {
|
|
4744
4744
|
if (!n.match(
|
|
4745
4745
|
"^(?:(?:(?:[a-fA-F0-9]{1,4}:){6}|(?=(?:[a-fA-F0-9]{0,4}:){2,6}(?:[0-9]{1,3}.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){1,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[a-fA-F0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}|(?=(?:[a-fA-F0-9]{0,4}:){0,7}[a-fA-F0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[a-fA-F0-9]{1,4}:){7}:|:(:[a-fA-F0-9]{1,4}){7})$"
|
|
4746
4746
|
))
|
|
4747
4747
|
throw new Error("error_ipv6");
|
|
4748
|
-
},
|
|
4748
|
+
}, jc = (n) => {
|
|
4749
4749
|
if (!n.match(
|
|
4750
4750
|
"(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{0,62}[a-zA-Z0-9].)+[a-zA-Z]{2,63}$)"
|
|
4751
4751
|
))
|
|
4752
4752
|
throw new Error("error_hostname");
|
|
4753
4753
|
};
|
|
4754
|
-
function
|
|
4754
|
+
function $c(n, t, e, i) {
|
|
4755
4755
|
try {
|
|
4756
4756
|
switch (n.format) {
|
|
4757
4757
|
case "ipv4":
|
|
4758
|
-
|
|
4758
|
+
Sc(t);
|
|
4759
4759
|
break;
|
|
4760
4760
|
case "ipv6":
|
|
4761
|
-
|
|
4761
|
+
Tc(t);
|
|
4762
4762
|
break;
|
|
4763
4763
|
case "hostname":
|
|
4764
|
-
|
|
4764
|
+
jc(t);
|
|
4765
4765
|
break;
|
|
4766
4766
|
}
|
|
4767
4767
|
return [];
|
|
@@ -5337,7 +5337,7 @@ class Wo {
|
|
|
5337
5337
|
}
|
|
5338
5338
|
_validateCustomValidator(t, e, i) {
|
|
5339
5339
|
const s = [];
|
|
5340
|
-
s.push(
|
|
5340
|
+
s.push(...$c.call(this, t, e, i, this.translate));
|
|
5341
5341
|
const r = (o) => {
|
|
5342
5342
|
s.push(...o.call(this, t, e, i));
|
|
5343
5343
|
};
|
|
@@ -5364,7 +5364,7 @@ class Wo {
|
|
|
5364
5364
|
return typeof t == "string" ? i[t] ? i[t](e) : !0 : !this._validateSchema(t, e).length;
|
|
5365
5365
|
}
|
|
5366
5366
|
}
|
|
5367
|
-
class
|
|
5367
|
+
class Pc extends It {
|
|
5368
5368
|
register() {
|
|
5369
5369
|
if (this.editors) {
|
|
5370
5370
|
for (let t = 0; t < this.editors.length; t++)
|
|
@@ -5399,7 +5399,7 @@ class $c extends It {
|
|
|
5399
5399
|
this.lastType = this.type, this.editors[t] || this.buildChildEditor(t);
|
|
5400
5400
|
let e = this.getValue();
|
|
5401
5401
|
this.type = t, this.register(), this.editors.forEach((i, s) => {
|
|
5402
|
-
i && (this.type === s ? (this.keep_only_existing_values && (e =
|
|
5402
|
+
i && (this.type === s ? (this.keep_only_existing_values && (e = cc(i.getValue(), e)), (this.keep_values || this.if) && i.setValue(e, !0), i.container.style.display = "") : i.container.style.display = "none");
|
|
5403
5403
|
}), this.refreshValue(), this.refreshHeaderText();
|
|
5404
5404
|
}
|
|
5405
5405
|
buildChildEditor(t) {
|
|
@@ -5528,7 +5528,7 @@ class $c extends It {
|
|
|
5528
5528
|
addLinks() {
|
|
5529
5529
|
}
|
|
5530
5530
|
}
|
|
5531
|
-
class
|
|
5531
|
+
class Oc extends It {
|
|
5532
5532
|
getValue() {
|
|
5533
5533
|
if (this.dependenciesFulfilled)
|
|
5534
5534
|
return null;
|
|
@@ -5540,7 +5540,7 @@ class Pc extends It {
|
|
|
5540
5540
|
return 2;
|
|
5541
5541
|
}
|
|
5542
5542
|
}
|
|
5543
|
-
const
|
|
5543
|
+
const Ic = { ".je-object__title": "display:inline-block", ".je-object__controls": "margin:0%200%200%2010px", ".je-object__container": "position:relative", ".je-object__property-checkbox": "margin:0;height:auto", ".property-selector": "width:295px;max-height:160px;padding:5px%200;overflow-y:auto;overflow-x:hidden;padding-left:5px", ".property-selector-input": "width:220px;margin-bottom:0;display:inline-block", ".json-editor-btntype-toggle": "margin:0%2010px%200%200", ".je-edit-json--textarea": "height:170px;width:300px;display:block" };
|
|
5544
5544
|
class Yo extends It {
|
|
5545
5545
|
constructor(t, e, i) {
|
|
5546
5546
|
super(t, e), this.currentDepth = i;
|
|
@@ -5954,8 +5954,8 @@ class Yo extends It {
|
|
|
5954
5954
|
});
|
|
5955
5955
|
}
|
|
5956
5956
|
}
|
|
5957
|
-
Yo.rules =
|
|
5958
|
-
class
|
|
5957
|
+
Yo.rules = Ic;
|
|
5958
|
+
class Bc extends Ti {
|
|
5959
5959
|
preBuild() {
|
|
5960
5960
|
super.preBuild();
|
|
5961
5961
|
}
|
|
@@ -6016,7 +6016,7 @@ class Ic extends Ti {
|
|
|
6016
6016
|
}
|
|
6017
6017
|
}
|
|
6018
6018
|
}
|
|
6019
|
-
class
|
|
6019
|
+
class Rc extends Wt {
|
|
6020
6020
|
setValue(t, e, i) {
|
|
6021
6021
|
const s = super.setValue(t, e, i);
|
|
6022
6022
|
s !== void 0 && s.changed && this.sceditor_instance && this.sceditor_instance.val(s.value);
|
|
@@ -6054,7 +6054,7 @@ class Bc extends Wt {
|
|
|
6054
6054
|
this.sceditor_instance && (this.sceditor_instance.destroy(), this.sceditor_instance = null), super.destroy();
|
|
6055
6055
|
}
|
|
6056
6056
|
}
|
|
6057
|
-
class
|
|
6057
|
+
class Dc extends Ti {
|
|
6058
6058
|
setValue(t, e) {
|
|
6059
6059
|
if (this.select2_instance) {
|
|
6060
6060
|
e ? this.is_dirty = !1 : this.jsoneditor.options.show_errors === "change" && (this.is_dirty = !0);
|
|
@@ -6092,7 +6092,7 @@ class Rc extends Ti {
|
|
|
6092
6092
|
this.select2_instance && (this.select2_instance.select2("destroy"), this.select2_instance = null), super.destroy();
|
|
6093
6093
|
}
|
|
6094
6094
|
}
|
|
6095
|
-
class
|
|
6095
|
+
class Nc extends Ti {
|
|
6096
6096
|
setValue(t, e) {
|
|
6097
6097
|
if (this.selectize_instance) {
|
|
6098
6098
|
e ? this.is_dirty = !1 : this.jsoneditor.options.show_errors === "change" && (this.is_dirty = !0);
|
|
@@ -6134,7 +6134,7 @@ class Dc extends Ti {
|
|
|
6134
6134
|
this.selectize_instance && (this.selectize_instance.destroy(), this.selectize_instance = null), super.destroy();
|
|
6135
6135
|
}
|
|
6136
6136
|
}
|
|
6137
|
-
class
|
|
6137
|
+
class Mc extends Wt {
|
|
6138
6138
|
build() {
|
|
6139
6139
|
this.options.compact || (this.header = this.label = this.theme.getFormInputLabel(this.getTitle(), this.isRequired())), this.schema.description && (this.description = this.theme.getFormInputDescription(this.translateProperty(this.schema.description)));
|
|
6140
6140
|
const t = this.formname.replace(/\W/g, "");
|
|
@@ -6167,7 +6167,7 @@ class Nc extends Wt {
|
|
|
6167
6167
|
this.signaturePad.off(), delete this.signaturePad;
|
|
6168
6168
|
}
|
|
6169
6169
|
}
|
|
6170
|
-
class
|
|
6170
|
+
class Hc extends Wt {
|
|
6171
6171
|
setValue(t, e, i) {
|
|
6172
6172
|
const s = super.setValue(t, e, i);
|
|
6173
6173
|
s !== void 0 && s.changed && this.simplemde_instance && this.simplemde_instance.value(s.value);
|
|
@@ -6211,7 +6211,7 @@ class Mc extends Wt {
|
|
|
6211
6211
|
window.clearTimeout(e.timeout), t.off(window, "mouseup", e.hurry), t.off(window, "keyup", e.hurry);
|
|
6212
6212
|
}
|
|
6213
6213
|
}
|
|
6214
|
-
const
|
|
6214
|
+
const Vc = { ".starrating": "direction:rtl;display:inline-block;white-space:nowrap", ".starrating > input": "display:none", ".starrating > label:before": "content:'%5C2606';margin:1px;font-size:18px;font-style:normal;font-weight:400;line-height:1;font-family:'Arial';display:inline-block", ".starrating > label": "color:%23888;cursor:pointer;margin:8px%200%202px%200", ".starrating > label.starrating-display-enabled": "margin:1px%200%200%200", ".starrating > input:checked ~ label": "color:%23ffca08", ".starrating:not(.readonly) > input:hover ~ label": "color:%23ffca08", ".starrating > input:checked ~ label:before": "content:'%5C2605';text-shadow:0%200%201px%20rgba(0%2C20%2C20%2C1)", ".starrating:not(.readonly) > input:hover ~ label:before": "content:'%5C2605';text-shadow:0%200%201px%20rgba(0%2C20%2C20%2C1)", ".starrating .starrating-display": "position:relative;direction:rtl;text-align:center;font-size:10px;line-height:0px" };
|
|
6215
6215
|
class Xo extends Wt {
|
|
6216
6216
|
build() {
|
|
6217
6217
|
if (this.options.compact || (this.header = this.label = this.theme.getLabelLike(this.getTitle(), this.isRequired())), this.schema.description && (this.description = this.theme.getFormInputDescription(this.translateProperty(this.schema.description))), this.options.infoText && (this.infoButton = this.theme.getInfoButton(this.translateProperty(this.options.infoText))), this.options.compact && this.container.classList.add("compact"), this.ratingContainer = document.createElement("div"), this.ratingContainer.classList.add("starrating"), this.schema.enum === void 0) {
|
|
@@ -6273,8 +6273,8 @@ class Xo extends Wt {
|
|
|
6273
6273
|
}
|
|
6274
6274
|
}
|
|
6275
6275
|
}
|
|
6276
|
-
Xo.rules =
|
|
6277
|
-
class
|
|
6276
|
+
Xo.rules = Vc;
|
|
6277
|
+
class Fc extends Zo {
|
|
6278
6278
|
build() {
|
|
6279
6279
|
super.build(), this.input.setAttribute("type", "number"), this.input.getAttribute("step") || this.input.setAttribute("step", "1");
|
|
6280
6280
|
const t = this.theme.getStepperButtons(this.input);
|
|
@@ -6287,7 +6287,7 @@ class Vc extends Zo {
|
|
|
6287
6287
|
super.disable(), this.stepperDown.setAttribute("disabled", !0), this.stepperUp.setAttribute("disabled", !0);
|
|
6288
6288
|
}
|
|
6289
6289
|
}
|
|
6290
|
-
class
|
|
6290
|
+
class zc extends Qr {
|
|
6291
6291
|
register() {
|
|
6292
6292
|
if (super.register(), this.rows)
|
|
6293
6293
|
for (let t = 0; t < this.rows.length; t++)
|
|
@@ -6482,7 +6482,7 @@ class Fc extends Qr {
|
|
|
6482
6482
|
}), this.controls.appendChild(t), t;
|
|
6483
6483
|
}
|
|
6484
6484
|
}
|
|
6485
|
-
class
|
|
6485
|
+
class Uc extends It {
|
|
6486
6486
|
getNumColumns() {
|
|
6487
6487
|
return 4;
|
|
6488
6488
|
}
|
|
@@ -6634,7 +6634,7 @@ class zc extends It {
|
|
|
6634
6634
|
return e.reduce((i, s) => i || new RegExp(s.replace(/\*/g, ".*"), "gi").test(t), !1);
|
|
6635
6635
|
}
|
|
6636
6636
|
}
|
|
6637
|
-
class
|
|
6637
|
+
class qc extends Wt {
|
|
6638
6638
|
preBuild() {
|
|
6639
6639
|
super.preBuild(), this.schema.default = this.uuid = this.getUuid(), this.schema.options || (this.schema.options = {}), this.schema.options.cleave || (this.schema.options.cleave = {
|
|
6640
6640
|
delimiters: ["-"],
|
|
@@ -6657,7 +6657,7 @@ class Uc extends Wt {
|
|
|
6657
6657
|
return /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t);
|
|
6658
6658
|
}
|
|
6659
6659
|
}
|
|
6660
|
-
class
|
|
6660
|
+
class Gc extends Wt {
|
|
6661
6661
|
postBuild() {
|
|
6662
6662
|
window.Picker && (this.input.type = "text"), this.input.style.padding = "3px";
|
|
6663
6663
|
}
|
|
@@ -6715,44 +6715,44 @@ class qc extends Wt {
|
|
|
6715
6715
|
}
|
|
6716
6716
|
}
|
|
6717
6717
|
const cs = {
|
|
6718
|
-
ace:
|
|
6718
|
+
ace: uc,
|
|
6719
6719
|
array: Qr,
|
|
6720
|
-
arrayChoices:
|
|
6721
|
-
arraySelect2:
|
|
6722
|
-
arraySelectize:
|
|
6723
|
-
autocomplete:
|
|
6724
|
-
base64:
|
|
6720
|
+
arrayChoices: fc,
|
|
6721
|
+
arraySelect2: mc,
|
|
6722
|
+
arraySelectize: gc,
|
|
6723
|
+
autocomplete: bc,
|
|
6724
|
+
base64: yc,
|
|
6725
6725
|
button: Uo,
|
|
6726
|
-
checkbox:
|
|
6726
|
+
checkbox: _c,
|
|
6727
6727
|
choices: qo,
|
|
6728
|
-
datetime:
|
|
6729
|
-
describedBy:
|
|
6730
|
-
enum:
|
|
6731
|
-
hidden:
|
|
6732
|
-
info:
|
|
6728
|
+
datetime: wc,
|
|
6729
|
+
describedBy: xc,
|
|
6730
|
+
enum: Cc,
|
|
6731
|
+
hidden: Ec,
|
|
6732
|
+
info: Lc,
|
|
6733
6733
|
integer: Zo,
|
|
6734
|
-
ip:
|
|
6735
|
-
jodit:
|
|
6736
|
-
multiple:
|
|
6734
|
+
ip: Ac,
|
|
6735
|
+
jodit: kc,
|
|
6736
|
+
multiple: Pc,
|
|
6737
6737
|
multiselect: Ms,
|
|
6738
|
-
null:
|
|
6738
|
+
null: Oc,
|
|
6739
6739
|
number: Go,
|
|
6740
6740
|
object: Yo,
|
|
6741
|
-
radio:
|
|
6742
|
-
sceditor:
|
|
6741
|
+
radio: Bc,
|
|
6742
|
+
sceditor: Rc,
|
|
6743
6743
|
select: Ti,
|
|
6744
|
-
select2:
|
|
6745
|
-
selectize:
|
|
6746
|
-
signature:
|
|
6747
|
-
simplemde:
|
|
6744
|
+
select2: Dc,
|
|
6745
|
+
selectize: Nc,
|
|
6746
|
+
signature: Mc,
|
|
6747
|
+
simplemde: Hc,
|
|
6748
6748
|
starrating: Xo,
|
|
6749
|
-
stepper:
|
|
6749
|
+
stepper: Fc,
|
|
6750
6750
|
string: Wt,
|
|
6751
|
-
table:
|
|
6752
|
-
upload:
|
|
6753
|
-
uuid:
|
|
6754
|
-
colorpicker:
|
|
6755
|
-
},
|
|
6751
|
+
table: zc,
|
|
6752
|
+
upload: Uc,
|
|
6753
|
+
uuid: qc,
|
|
6754
|
+
colorpicker: Gc
|
|
6755
|
+
}, Zc = "html", Wc = "default", Yc = {}, Xc = {}, Jc = {}, Qc = {}, Jo = {}, Kc = [], Kr = "en", tu = Kr;
|
|
6756
6756
|
Jo.en = {
|
|
6757
6757
|
/**
|
|
6758
6758
|
* When a property is not set
|
|
@@ -7098,10 +7098,10 @@ Jo.en = {
|
|
|
7098
7098
|
Object.entries(cs).forEach(([n, t]) => {
|
|
7099
7099
|
cs[n].options = t.options || {};
|
|
7100
7100
|
});
|
|
7101
|
-
function
|
|
7101
|
+
function eu(n, t, e) {
|
|
7102
7102
|
console.log("Upload handler required for upload editor");
|
|
7103
7103
|
}
|
|
7104
|
-
function
|
|
7104
|
+
function iu(n, t, e) {
|
|
7105
7105
|
let i = {};
|
|
7106
7106
|
e && e.options && e.options.error_messages && e.options.error_messages[$e.language] && (i = e.options.error_messages[$e.language]);
|
|
7107
7107
|
const s = $e.languages[$e.language];
|
|
@@ -7113,11 +7113,11 @@ function eu(n, t, e) {
|
|
|
7113
7113
|
r = r.replace(new RegExp(`\\{\\{${o}}}`, "g"), t[o]);
|
|
7114
7114
|
return r;
|
|
7115
7115
|
}
|
|
7116
|
-
function
|
|
7116
|
+
function su(n, t) {
|
|
7117
7117
|
return n;
|
|
7118
7118
|
}
|
|
7119
|
-
const
|
|
7120
|
-
upload:
|
|
7119
|
+
const ru = {
|
|
7120
|
+
upload: eu,
|
|
7121
7121
|
use_name_attributes: !0,
|
|
7122
7122
|
prompt_before_delete: !0,
|
|
7123
7123
|
use_default_values: !0,
|
|
@@ -7126,23 +7126,23 @@ const su = {
|
|
|
7126
7126
|
case_sensitive_property_search: !0,
|
|
7127
7127
|
show_errors: "interaction"
|
|
7128
7128
|
}, $e = {
|
|
7129
|
-
options:
|
|
7130
|
-
theme:
|
|
7131
|
-
template:
|
|
7132
|
-
themes:
|
|
7133
|
-
callbacks:
|
|
7134
|
-
templates:
|
|
7135
|
-
iconlibs:
|
|
7129
|
+
options: ru,
|
|
7130
|
+
theme: Zc,
|
|
7131
|
+
template: Wc,
|
|
7132
|
+
themes: Xc,
|
|
7133
|
+
callbacks: Yc,
|
|
7134
|
+
templates: Jc,
|
|
7135
|
+
iconlibs: Qc,
|
|
7136
7136
|
editors: cs,
|
|
7137
7137
|
languages: Jo,
|
|
7138
|
-
resolvers:
|
|
7139
|
-
custom_validators:
|
|
7138
|
+
resolvers: oc,
|
|
7139
|
+
custom_validators: Kc,
|
|
7140
7140
|
default_language: Kr,
|
|
7141
|
-
language:
|
|
7142
|
-
translate:
|
|
7143
|
-
translateProperty:
|
|
7141
|
+
language: tu,
|
|
7142
|
+
translate: iu,
|
|
7143
|
+
translateProperty: su
|
|
7144
7144
|
};
|
|
7145
|
-
class
|
|
7145
|
+
class nu {
|
|
7146
7146
|
constructor(t) {
|
|
7147
7147
|
this.options = t || {}, this.schema = {}, this.refs = this.options.refs || {}, this.refs_with_info = {}, this.refs_prefix = "#/counter/", this.refs_counter = 1, this._subSchema1 = {
|
|
7148
7148
|
/* Version 3 `type` */
|
|
@@ -7505,7 +7505,7 @@ class ru {
|
|
|
7505
7505
|
window.localStorage.removeItem(this.getCacheKey(t));
|
|
7506
7506
|
}
|
|
7507
7507
|
}
|
|
7508
|
-
const
|
|
7508
|
+
const ou = () => ({
|
|
7509
7509
|
compile(n) {
|
|
7510
7510
|
const t = n.match(/{{\s*([a-zA-Z0-9\-_ .]+)\s*}}/g), e = t && t.length;
|
|
7511
7511
|
if (!e)
|
|
@@ -7537,47 +7537,47 @@ const nu = () => ({
|
|
|
7537
7537
|
return a;
|
|
7538
7538
|
};
|
|
7539
7539
|
}
|
|
7540
|
-
}),
|
|
7540
|
+
}), au = () => window.EJS ? {
|
|
7541
7541
|
compile(n) {
|
|
7542
7542
|
const t = new window.EJS({
|
|
7543
7543
|
text: n
|
|
7544
7544
|
});
|
|
7545
7545
|
return (e) => t.render(e);
|
|
7546
7546
|
}
|
|
7547
|
-
} : !1,
|
|
7547
|
+
} : !1, lu = () => window.Handlebars, du = () => window.Hogan ? {
|
|
7548
7548
|
compile(n) {
|
|
7549
7549
|
const t = window.Hogan.compile(n);
|
|
7550
7550
|
return (e) => t.render(e);
|
|
7551
7551
|
}
|
|
7552
|
-
} : !1,
|
|
7552
|
+
} : !1, hu = () => window._ ? {
|
|
7553
7553
|
compile(n) {
|
|
7554
7554
|
return (t) => window._.template(n)(t);
|
|
7555
7555
|
}
|
|
7556
|
-
} : !1,
|
|
7556
|
+
} : !1, cu = () => !window.Mark || !window.Mark.up ? !1 : {
|
|
7557
7557
|
compile(n) {
|
|
7558
7558
|
return (t) => window.Mark.up(n, t);
|
|
7559
7559
|
}
|
|
7560
|
-
},
|
|
7560
|
+
}, uu = () => window.Mustache ? {
|
|
7561
7561
|
compile(n) {
|
|
7562
7562
|
return (t) => window.Mustache.render(n, t);
|
|
7563
7563
|
}
|
|
7564
|
-
} : !1,
|
|
7564
|
+
} : !1, pu = () => window.swig, fu = () => window._ ? {
|
|
7565
7565
|
compile(n) {
|
|
7566
7566
|
return (t) => window._.template(n)(t);
|
|
7567
7567
|
}
|
|
7568
|
-
} : !1,
|
|
7569
|
-
default:
|
|
7570
|
-
ejs:
|
|
7571
|
-
handlebars:
|
|
7572
|
-
hogan:
|
|
7573
|
-
lodash:
|
|
7574
|
-
markup:
|
|
7575
|
-
mustache:
|
|
7576
|
-
swig:
|
|
7577
|
-
underscore:
|
|
7578
|
-
},
|
|
7568
|
+
} : !1, mu = {
|
|
7569
|
+
default: ou,
|
|
7570
|
+
ejs: au,
|
|
7571
|
+
handlebars: lu,
|
|
7572
|
+
hogan: du,
|
|
7573
|
+
lodash: hu,
|
|
7574
|
+
markup: cu,
|
|
7575
|
+
mustache: uu,
|
|
7576
|
+
swig: pu,
|
|
7577
|
+
underscore: fu
|
|
7578
|
+
}, gu = { collapse: "", expand: "", delete: "", edit: "", add: "", cancel: "", save: "", moveup: "", movedown: "" };
|
|
7579
7579
|
class fe {
|
|
7580
|
-
constructor(t = "", e =
|
|
7580
|
+
constructor(t = "", e = gu) {
|
|
7581
7581
|
this.mapping = e, this.icon_prefix = t;
|
|
7582
7582
|
}
|
|
7583
7583
|
getIconClass(t) {
|
|
@@ -7591,7 +7591,7 @@ class fe {
|
|
|
7591
7591
|
return i.classList.add(...e.split(" ")), i;
|
|
7592
7592
|
}
|
|
7593
7593
|
}
|
|
7594
|
-
const
|
|
7594
|
+
const bu = "glyphicon glyphicon-", yu = {
|
|
7595
7595
|
collapse: "chevron-down",
|
|
7596
7596
|
expand: "chevron-right",
|
|
7597
7597
|
delete: "trash",
|
|
@@ -7610,12 +7610,12 @@ const gu = "glyphicon glyphicon-", bu = {
|
|
|
7610
7610
|
calendar: "calendar",
|
|
7611
7611
|
edit_properties: "list"
|
|
7612
7612
|
};
|
|
7613
|
-
class
|
|
7613
|
+
class _u extends fe {
|
|
7614
7614
|
constructor() {
|
|
7615
|
-
super(
|
|
7615
|
+
super(bu, yu);
|
|
7616
7616
|
}
|
|
7617
7617
|
}
|
|
7618
|
-
const
|
|
7618
|
+
const vu = "icon-", wu = {
|
|
7619
7619
|
collapse: "chevron-down",
|
|
7620
7620
|
expand: "chevron-right",
|
|
7621
7621
|
delete: "trash",
|
|
@@ -7634,12 +7634,12 @@ const _u = "icon-", vu = {
|
|
|
7634
7634
|
calendar: "calendar",
|
|
7635
7635
|
edit_properties: "list"
|
|
7636
7636
|
};
|
|
7637
|
-
class
|
|
7637
|
+
class xu extends fe {
|
|
7638
7638
|
constructor() {
|
|
7639
|
-
super(
|
|
7639
|
+
super(vu, wu);
|
|
7640
7640
|
}
|
|
7641
7641
|
}
|
|
7642
|
-
const
|
|
7642
|
+
const Cu = "fa fa-", Eu = {
|
|
7643
7643
|
collapse: "caret-square-o-down",
|
|
7644
7644
|
expand: "caret-square-o-right",
|
|
7645
7645
|
delete: "times",
|
|
@@ -7658,12 +7658,12 @@ const xu = "fa fa-", Cu = {
|
|
|
7658
7658
|
calendar: "calendar",
|
|
7659
7659
|
edit_properties: "list"
|
|
7660
7660
|
};
|
|
7661
|
-
class
|
|
7661
|
+
class Lu extends fe {
|
|
7662
7662
|
constructor() {
|
|
7663
|
-
super(
|
|
7663
|
+
super(Cu, Eu);
|
|
7664
7664
|
}
|
|
7665
7665
|
}
|
|
7666
|
-
const
|
|
7666
|
+
const Au = "fas fa-", ku = {
|
|
7667
7667
|
collapse: "caret-down",
|
|
7668
7668
|
expand: "caret-right",
|
|
7669
7669
|
delete: "trash",
|
|
@@ -7682,12 +7682,12 @@ const Lu = "fas fa-", Au = {
|
|
|
7682
7682
|
calendar: "calendar",
|
|
7683
7683
|
edit_properties: "list"
|
|
7684
7684
|
};
|
|
7685
|
-
class
|
|
7685
|
+
class Su extends fe {
|
|
7686
7686
|
constructor() {
|
|
7687
|
-
super(
|
|
7687
|
+
super(Au, ku);
|
|
7688
7688
|
}
|
|
7689
7689
|
}
|
|
7690
|
-
const
|
|
7690
|
+
const Tu = "ui-icon ui-icon-", ju = {
|
|
7691
7691
|
collapse: "triangle-1-s",
|
|
7692
7692
|
expand: "triangle-1-e",
|
|
7693
7693
|
delete: "trash",
|
|
@@ -7706,12 +7706,12 @@ const Su = "ui-icon ui-icon-", Tu = {
|
|
|
7706
7706
|
calendar: "calendar",
|
|
7707
7707
|
edit_properties: "note"
|
|
7708
7708
|
};
|
|
7709
|
-
class
|
|
7709
|
+
class $u extends fe {
|
|
7710
7710
|
constructor() {
|
|
7711
|
-
super(
|
|
7711
|
+
super(Tu, ju);
|
|
7712
7712
|
}
|
|
7713
7713
|
}
|
|
7714
|
-
const
|
|
7714
|
+
const Pu = "oi oi-", Ou = {
|
|
7715
7715
|
collapse: "collapse-down",
|
|
7716
7716
|
expand: "expand-right",
|
|
7717
7717
|
delete: "trash",
|
|
@@ -7730,12 +7730,12 @@ const $u = "oi oi-", Pu = {
|
|
|
7730
7730
|
calendar: "calendar",
|
|
7731
7731
|
edit_properties: "list"
|
|
7732
7732
|
};
|
|
7733
|
-
class
|
|
7733
|
+
class Iu extends fe {
|
|
7734
7734
|
constructor() {
|
|
7735
|
-
super(
|
|
7735
|
+
super(Pu, Ou);
|
|
7736
7736
|
}
|
|
7737
7737
|
}
|
|
7738
|
-
const
|
|
7738
|
+
const Bu = "icon icon-", Ru = {
|
|
7739
7739
|
collapse: "arrow-down",
|
|
7740
7740
|
expand: "arrow-right",
|
|
7741
7741
|
delete: "delete",
|
|
@@ -7754,12 +7754,12 @@ const Iu = "icon icon-", Bu = {
|
|
|
7754
7754
|
calendar: "bookmark",
|
|
7755
7755
|
edit_properties: "menu"
|
|
7756
7756
|
};
|
|
7757
|
-
class
|
|
7757
|
+
class Du extends fe {
|
|
7758
7758
|
constructor() {
|
|
7759
|
-
super(
|
|
7759
|
+
super(Bu, Ru);
|
|
7760
7760
|
}
|
|
7761
7761
|
}
|
|
7762
|
-
const
|
|
7762
|
+
const Nu = "bi bi-", Mu = {
|
|
7763
7763
|
collapse: "chevron-down",
|
|
7764
7764
|
expand: "chevron-right",
|
|
7765
7765
|
delete: "trash",
|
|
@@ -7778,24 +7778,24 @@ const Du = "bi bi-", Nu = {
|
|
|
7778
7778
|
calendar: "calendar",
|
|
7779
7779
|
edit_properties: "list-ul"
|
|
7780
7780
|
};
|
|
7781
|
-
class
|
|
7781
|
+
class Hu extends fe {
|
|
7782
7782
|
constructor() {
|
|
7783
|
-
super(
|
|
7783
|
+
super(Nu, Mu);
|
|
7784
7784
|
}
|
|
7785
7785
|
}
|
|
7786
|
-
const
|
|
7786
|
+
const Vu = {
|
|
7787
7787
|
// bootstrap2: bootstrap2Iconlib,
|
|
7788
|
-
bootstrap:
|
|
7789
|
-
bootstrap3:
|
|
7790
|
-
fontawesome3:
|
|
7791
|
-
fontawesome4:
|
|
7792
|
-
fontawesome5:
|
|
7788
|
+
bootstrap: Hu,
|
|
7789
|
+
bootstrap3: _u,
|
|
7790
|
+
fontawesome3: xu,
|
|
7791
|
+
fontawesome4: Lu,
|
|
7792
|
+
fontawesome5: Su,
|
|
7793
7793
|
// foundation2: foundation2Iconlib,
|
|
7794
7794
|
// foundation3: foundation3Iconlib,
|
|
7795
|
-
jqueryui:
|
|
7795
|
+
jqueryui: $u,
|
|
7796
7796
|
// materialicons: materialiconsIconlib,
|
|
7797
|
-
openiconic:
|
|
7798
|
-
spectre:
|
|
7797
|
+
openiconic: Iu,
|
|
7798
|
+
spectre: Du
|
|
7799
7799
|
}, Xn = [
|
|
7800
7800
|
"matches",
|
|
7801
7801
|
"webkitMatchesSelector",
|
|
@@ -8170,7 +8170,7 @@ class me {
|
|
|
8170
8170
|
t && t.removeAttribute("value");
|
|
8171
8171
|
}
|
|
8172
8172
|
}
|
|
8173
|
-
const
|
|
8173
|
+
const Fu = { ".je-form-input-label": "display:block;margin-bottom:3px;font-weight:bold", ".je-form-input-description": "display:inline-block;margin:0;font-size:0.8em;font-style:italic", ".je-indented-panel": "padding:5px;margin:10px;border-radius:3px;border:1px%20solid%20%23ddd", ".je-child-editor-holder": "margin-bottom:8px", ".je-header-button-holder": "display:inline-block;margin-left:10px;font-size:0.8em;vertical-align:middle", ".je-table": "margin-bottom:5px;border-bottom:1px%20solid%20%23ccc", ".je-upload-preview img": "float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem", ".je-dropzone": "position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s", ".je-dropzone:before": "position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)", ".je-dropzone.valid-dropzone": "background:green", ".je-dropzone.invalid-dropzone": "background:red" };
|
|
8174
8174
|
class Qo extends me {
|
|
8175
8175
|
getFormInputLabel(t, e) {
|
|
8176
8176
|
const i = super.getFormInputLabel(t, e);
|
|
@@ -8207,8 +8207,8 @@ class Qo extends me {
|
|
|
8207
8207
|
t.style && (t.style.borderColor = ""), t.errmsg && (t.errmsg.style.display = "none");
|
|
8208
8208
|
}
|
|
8209
8209
|
}
|
|
8210
|
-
Qo.rules =
|
|
8211
|
-
const
|
|
8210
|
+
Qo.rules = Fu;
|
|
8211
|
+
const zu = {};
|
|
8212
8212
|
class Ko extends me {
|
|
8213
8213
|
getSelectInput(t, e) {
|
|
8214
8214
|
const i = super.getSelectInput(t);
|
|
@@ -8358,8 +8358,8 @@ class Ko extends me {
|
|
|
8358
8358
|
return i;
|
|
8359
8359
|
}
|
|
8360
8360
|
}
|
|
8361
|
-
Ko.rules =
|
|
8362
|
-
const
|
|
8361
|
+
Ko.rules = zu;
|
|
8362
|
+
const Uu = { ".jsoneditor-twbs4-text-button": "background:none;padding:0;border:0;color:currentColor", "td > .form-group": "margin-bottom:0", ".json-editor-btn-upload": "margin-top:1rem", ".je-noindent .card": "padding:0;border:0", ".je-tooltip:hover::before": "display:block;position:absolute;font-size:0.8em;color:%23fff;border-radius:0.2em;content:attr(title);background-color:%23000;margin-top:-2.5em;padding:0.3em", ".je-tooltip:hover::after": "display:block;position:absolute;font-size:0.8em;color:%23fff", ".select2-container--default .select2-selection--single": "height:calc(1.5em%20%2B%200.75rem%20%2B%202px)", ".select2-container--default .select2-selection--single .select2-selection__arrow": "height:calc(1.5em%20%2B%200.75rem%20%2B%202px)", ".select2-container--default .select2-selection--single .select2-selection__rendered": "line-height:calc(1.5em%20%2B%200.75rem%20%2B%202px)", ".selectize-control.form-control": "padding:0", ".selectize-dropdown.form-control": "padding:0;height:auto", ".je-upload-preview img": "float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem", ".je-dropzone": "position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s", ".je-dropzone:before": "position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)", ".je-dropzone.valid-dropzone": "background:green", ".je-dropzone.invalid-dropzone": "background:red" }, qu = {
|
|
8363
8363
|
disable_theme_rules: !1,
|
|
8364
8364
|
input_size: "normal",
|
|
8365
8365
|
/* Size of input and select elements. "small", "normal", "large" */
|
|
@@ -8380,7 +8380,7 @@ const zu = { ".jsoneditor-twbs4-text-button": "background:none;padding:0;border:
|
|
|
8380
8380
|
};
|
|
8381
8381
|
class ta extends me {
|
|
8382
8382
|
constructor(t) {
|
|
8383
|
-
super(t,
|
|
8383
|
+
super(t, qu);
|
|
8384
8384
|
}
|
|
8385
8385
|
getSelectInput(t, e) {
|
|
8386
8386
|
const i = super.getSelectInput(t);
|
|
@@ -8641,8 +8641,8 @@ class ta extends me {
|
|
|
8641
8641
|
return i;
|
|
8642
8642
|
}
|
|
8643
8643
|
}
|
|
8644
|
-
ta.rules =
|
|
8645
|
-
const
|
|
8644
|
+
ta.rules = Uu;
|
|
8645
|
+
const Gu = { ".form-group": "margin-bottom:1rem", ".form-text": "display:block", ".jsoneditor-twbs5-text-button": "background:none;padding:0;border:0;color:currentColor", "td > .form-group": "margin-bottom:0", ".json-editor-btn-upload": "margin-top:1rem", ".je-noindent .card": "padding:0;border:0", ".je-tooltip:hover::before": "display:block;position:absolute;font-size:0.8em;color:%23fff;border-radius:0.2em;content:attr(title);background-color:%23000;margin-top:-2.5em;padding:0.3em", ".je-tooltip:hover::after": "display:block;position:absolute;font-size:0.8em;color:%23fff", ".select2-container--default .select2-selection--single": "height:calc(1.5em%20%2B%200.75rem%20%2B%202px)", ".select2-container--default .select2-selection--single .select2-selection__arrow": "height:calc(1.5em%20%2B%200.75rem%20%2B%202px)", ".select2-container--default .select2-selection--single .select2-selection__rendered": "line-height:calc(1.5em%20%2B%200.75rem%20%2B%202px)", ".selectize-control.form-control": "padding:0", ".selectize-dropdown.form-control": "padding:0;height:auto", ".je-upload-preview img": "float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem", ".je-dropzone": "position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s", ".je-dropzone:before": "position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)", ".je-dropzone.valid-dropzone": "background:green", ".je-dropzone.invalid-dropzone": "background:red" }, Zu = {
|
|
8646
8646
|
disable_theme_rules: !1,
|
|
8647
8647
|
input_size: "normal",
|
|
8648
8648
|
/* Size of input and select elements. "small", "normal", "large" */
|
|
@@ -8661,7 +8661,7 @@ const qu = { ".form-group": "margin-bottom:1rem", ".form-text": "display:block",
|
|
|
8661
8661
|
};
|
|
8662
8662
|
class ea extends me {
|
|
8663
8663
|
constructor(t) {
|
|
8664
|
-
super(t,
|
|
8664
|
+
super(t, Zu);
|
|
8665
8665
|
}
|
|
8666
8666
|
getSelectInput(t, e) {
|
|
8667
8667
|
const i = super.getSelectInput(t);
|
|
@@ -8920,7 +8920,7 @@ class ea extends me {
|
|
|
8920
8920
|
return i;
|
|
8921
8921
|
}
|
|
8922
8922
|
}
|
|
8923
|
-
ea.rules =
|
|
8923
|
+
ea.rules = Gu;
|
|
8924
8924
|
class ia extends me {
|
|
8925
8925
|
getTable() {
|
|
8926
8926
|
const t = super.getTable();
|
|
@@ -8997,7 +8997,7 @@ class ia extends me {
|
|
|
8997
8997
|
}
|
|
8998
8998
|
}
|
|
8999
8999
|
ia.rules = { 'div[data-schemaid="root"]:after': 'position:relative;color:red;margin:10px 0;font-weight:600;display:block;width:100%;text-align:center;content:"This is an old JSON-Editor 1.x Theme and might not display elements correctly when used with the 2.x version"' };
|
|
9000
|
-
const
|
|
9000
|
+
const Wu = { ".je-upload-preview img": "float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem", ".je-dropzone": "position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s", ".je-dropzone:before": "position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)", ".je-dropzone.valid-dropzone": "background:green", ".je-dropzone.invalid-dropzone": "background:red" };
|
|
9001
9001
|
class sa extends me {
|
|
9002
9002
|
addInputError(t, e) {
|
|
9003
9003
|
if (t.errmsg)
|
|
@@ -9012,8 +9012,8 @@ class sa extends me {
|
|
|
9012
9012
|
t.style && (t.style.borderColor = ""), t.errmsg && (t.errmsg.style.display = "none");
|
|
9013
9013
|
}
|
|
9014
9014
|
}
|
|
9015
|
-
sa.rules =
|
|
9016
|
-
const
|
|
9015
|
+
sa.rules = Wu;
|
|
9016
|
+
const Yu = { "*": "--primary-color:%235755d9;--gray-color:%23bcc3ce;--light-color:%23fff", ".slider:focus": "box-shadow:none", "h4 > label + .btn-group": "margin-left:1rem", ".text-right > button": "margin-right:0%20!important", ".text-left > button": "margin-left:0%20!important", ".property-selector": "font-size:0.7rem;font-weight:normal;max-height:260px%20!important;width:395px%20!important", ".property-selector .form-checkbox": "margin:0", textarea: "width:100%25;min-height:2rem;resize:vertical", table: "border-collapse:collapse", ".table td": "padding:0.4rem%200.4rem", ".mr-5": "margin-right:1rem%20!important", "div[data-schematype]:not([data-schematype='object'])": "transition:0.5s", "div[data-schematype]:not([data-schematype='object']):hover": "background-color:%23eee", ".je-table-border td": "border:0.05rem%20solid%20%23dadee4%20!important", ".btn-info": "font-size:0.5rem;font-weight:bold;height:0.8rem;padding:0.15rem%200;line-height:0.8;margin:0.3rem%200%200.3rem%200.1rem", ".je-label + select": "min-width:5rem", ".je-label": "font-weight:600", ".btn-action.btn-info": "width:0.8rem", ".je-border": "border:0.05rem%20solid%20%23dadee4", ".je-panel": "padding:0.2rem;margin:0.2rem;background-color:rgba(218%2C%20222%2C%20228%2C%200.1)", ".je-panel-top": "padding:0.2rem;margin:0.2rem;background-color:rgba(218%2C%20222%2C%20228%2C%200.1)", ".required:after": "content:%22%20*%22;color:red;font:inherit", ".je-align-bottom": "margin-top:auto", ".je-desc": "font-size:smaller;margin:0.2rem%200", ".je-upload-preview img": "float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem;border:3px%20solid%20white;box-shadow:0px%200px%208px%20rgba(0%2C%200%2C%200%2C%200.3);box-sizing:border-box", ".je-dropzone": "position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s", ".je-dropzone:before": "position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)", ".je-dropzone.valid-dropzone": "background:green", ".je-dropzone.invalid-dropzone": "background:red", ".columns .container.je-noindent": "padding-left:0;padding-right:0", ".selectize-control.multi .item": "background:var(--primary-color)%20!important", ".select2-container--default .select2-selection--single .select2-selection__arrow": "display:none", ".select2-container--default .select2-selection--single": "border:none", ".select2-container .select2-selection--single .select2-selection__rendered": "padding:0", ".select2-container .select2-search--inline .select2-search__field": "margin-top:0", ".select2-container--default.select2-container--focus .select2-selection--multiple": "border:0.05rem%20solid%20var(--gray-color)", ".select2-container--default .select2-selection--multiple .select2-selection__choice": "margin:0.4rem%200.2rem%200.2rem%200;padding:2px%205px;background-color:var(--primary-color);color:var(--light-color)", ".select2-container--default .select2-search--inline .select2-search__field": "line-height:normal", ".choices": "margin-bottom:auto", ".choices__list--multiple .choices__item": "border:none;background-color:var(--primary-color);color:var(--light-color)", ".choices[data-type*='select-multiple'] .choices__button": "border-left:0.05rem%20solid%20%232826a6", ".choices__inner": "font-size:inherit;min-height:20px;padding:4px%207.5px%204px%203.75px", ".choices[data-type*='select-one'] .choices__inner": "padding-bottom:4px", ".choices__list--dropdown .choices__item": "font-size:inherit" }, Xu = {
|
|
9017
9017
|
disable_theme_rules: !1,
|
|
9018
9018
|
/* Disable creation of Inline Style Rules */
|
|
9019
9019
|
label_bold: !0,
|
|
@@ -9033,7 +9033,7 @@ const Wu = { "*": "--primary-color:%235755d9;--gray-color:%23bcc3ce;--light-colo
|
|
|
9033
9033
|
};
|
|
9034
9034
|
class ra extends me {
|
|
9035
9035
|
constructor(t) {
|
|
9036
|
-
super(t,
|
|
9036
|
+
super(t, Xu);
|
|
9037
9037
|
}
|
|
9038
9038
|
/* Functions for setting up the grid container, row and columns */
|
|
9039
9039
|
setGridColumnSize(t, e, i) {
|
|
@@ -9237,8 +9237,8 @@ class ra extends me {
|
|
|
9237
9237
|
t.errmsg && (t.errmsg.classList.add("d-hide"), t.controlgroup.classList.remove("has-error"));
|
|
9238
9238
|
}
|
|
9239
9239
|
}
|
|
9240
|
-
ra.rules =
|
|
9241
|
-
const
|
|
9240
|
+
ra.rules = Yu;
|
|
9241
|
+
const Ju = { ".slider": "-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;display:block;border:none;height:1.2rem;width:100%25", ".slider:focus": "box-shadow:0%200%200%200%20rgba(87%2C%2085%2C%20217%2C%200.2);outline:none", ".slider.tooltip:not([data-tooltip])::after": "content:attr(value)", ".slider::-webkit-slider-thumb": "-webkit-appearance:none;background:%23f17405;border-radius:100%25;height:0.6rem;margin-top:-0.25rem;transition:transform%200.2s;width:0.6rem", ".slider:active::-webkit-slider-thumb": "transform:scale(1.25);outline:none", ".slider::-webkit-slider-runnable-track": "background:%23b2b4b6;border-radius:0.1rem;height:0.1rem;width:100%25", "a.tooltips": "position:relative;display:inline", "a.tooltips span": "position:absolute;white-space:nowrap;width:auto;padding-left:1rem;padding-right:1rem;color:%23ffffff;background:rgba(56%2C%2056%2C%2056%2C%200.85);height:1.5rem;line-height:1.5rem;text-align:center;visibility:hidden;border-radius:3px", "a.tooltips span:after": "content:%22%22;position:absolute;top:50%25;left:100%25;margin-top:-5px;width:0;height:0;border-left:5px%20solid%20rgba(56%2C%2056%2C%2056%2C%200.85);border-top:5px%20solid%20transparent;border-bottom:5px%20solid%20transparent", "a:hover.tooltips span": "visibility:visible;opacity:0.9;font-size:0.8rem;right:100%25;top:50%25;margin-top:-12px;margin-right:10px;z-index:999", ".json-editor-btntype-properties + div": "font-size:0.8rem;font-weight:normal", textarea: "width:100%25;min-height:2rem;resize:vertical", table: "width:100%25;border-collapse:collapse", ".table td": "padding:0rem%200rem", "div[data-schematype]:not([data-schematype='object'])": "transition:0.5s", "div[data-schematype]:not([data-schematype='object']):hover": "background-color:%23e6f4fe", "div[data-schemaid='root']": "position:relative;width:inherit;display:inherit;overflow-x:hidden;z-index:10", "select[multiple]": "height:auto", "select[multiple].from-select": "height:auto", ".je-table-zebra:nth-child(even)": "background-color:%23f2f2f2", ".je-table-border": "border:0.5px%20solid%20black", ".je-table-hdiv": "border-bottom:1px%20solid%20black", ".je-border": "border:0.05rem%20solid%20%233182ce", ".je-panel": "width:inherit;padding:0.2rem;margin:0.2rem;background-color:rgba(218%2C%20222%2C%20228%2C%200.1)", ".je-panel-top": "width:100%25;padding:0.2rem;margin:0.2rem;background-color:rgba(218%2C%20222%2C%20228%2C%200.1)", ".required:after": "content:%22%20*%22;color:red;font:inherit;font-weight:bold", ".je-desc": "font-size:smaller;margin:0.2rem%200", ".container-xl.je-noindent": "padding-left:0;padding-right:0", ".json-editor-btntype-add": "color:white;margin:0.3rem;padding:0.3rem%200.8rem;background-color:%234299e1;box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-webkit-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-moz-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2)", ".json-editor-btntype-deletelast": "color:white;margin:0.3rem;padding:0.3rem%200.8rem;background-color:%23e53e3e;box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-webkit-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-moz-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2)", ".json-editor-btntype-deleteall": "color:white;margin:0.3rem;padding:0.3rem%200.8rem;background-color:%23000000;box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-webkit-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-moz-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2)", ".json-editor-btn-save": "float:right;color:white;margin:0.3rem;padding:0.3rem%200.8rem;background-color:%232b6cb0;box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-webkit-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-moz-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2)", ".json-editor-btn-back": "color:white;margin:0.3rem;padding:0.3rem%200.8rem;background-color:%232b6cb0;box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-webkit-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-moz-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2)", ".json-editor-btntype-delete": "color:%23e53e3e;background-color:rgba(218%2C%20222%2C%20228%2C%200.1);margin:0.03rem;padding:0.1rem", ".json-editor-btntype-move": "color:%23000000;background-color:rgba(218%2C%20222%2C%20228%2C%200.1);margin:0.03rem;padding:0.1rem", ".json-editor-btn-collapse": "padding:0em%200.8rem;font-size:1.3rem;color:%23e53e3e;background-color:rgba(218%2C%20222%2C%20228%2C%200.1)", ".je-upload-preview img": "float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem", ".je-dropzone": "position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s", ".je-dropzone:before": "position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)", ".je-dropzone.valid-dropzone": "background:green", ".je-dropzone.invalid-dropzone": "background:red" }, Qu = {
|
|
9242
9242
|
disable_theme_rules: !1,
|
|
9243
9243
|
/* Disable creation of Inline Style Rules */
|
|
9244
9244
|
label_bold: !1,
|
|
@@ -9261,7 +9261,7 @@ const Xu = { ".slider": "-webkit-appearance:none;-moz-appearance:none;appearance
|
|
|
9261
9261
|
};
|
|
9262
9262
|
class na extends me {
|
|
9263
9263
|
constructor(t) {
|
|
9264
|
-
super(t,
|
|
9264
|
+
super(t, Qu);
|
|
9265
9265
|
}
|
|
9266
9266
|
getGridContainer() {
|
|
9267
9267
|
const t = document.createElement("div");
|
|
@@ -9469,8 +9469,8 @@ class na extends me {
|
|
|
9469
9469
|
return i;
|
|
9470
9470
|
}
|
|
9471
9471
|
}
|
|
9472
|
-
na.rules =
|
|
9473
|
-
const
|
|
9472
|
+
na.rules = Ju;
|
|
9473
|
+
const Ku = {
|
|
9474
9474
|
html: Qo,
|
|
9475
9475
|
// bootstrap2: bootstrap2Theme,
|
|
9476
9476
|
bootstrap3: Ko,
|
|
@@ -9486,7 +9486,7 @@ const Qu = {
|
|
|
9486
9486
|
// materialize: materializeTheme,
|
|
9487
9487
|
spectre: ra,
|
|
9488
9488
|
tailwind: na
|
|
9489
|
-
},
|
|
9489
|
+
}, tp = { ".je-float-right-linkholder": "float:right;margin-left:10px", ".je-modal": "background-color:white;border:1px%20solid%20black;box-shadow:3px%203px%20black;position:absolute;z-index:10", ".je-infobutton-icon": "font-size:16px;font-weight:bold;padding:0.25rem;position:relative;display:inline-block", ".je-infobutton-tooltip": "font-size:12px;font-weight:normal;font-family:sans-serif;visibility:hidden;background-color:rgba(50%2C%2050%2C%2050%2C%200.75);margin:0%200.25rem;color:%23fafafa;padding:0.5rem%201rem;border-radius:0.25rem;width:20rem;position:absolute", ".je-not-loaded": "pointer-events:none", ".je-header": "display:inline-block", ".je-upload-preview img": "float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem", ".je-checkbox": "display:inline-block;width:auto", ".je-checkbox-control--compact": "display:inline-block;margin-right:1rem", ".je-radio": "display:inline-block;width:auto", ".je-radio-control--compact": "display:inline-block;margin-right:1rem", ".je-switcher": "background-color:transparent;display:inline-block;font-style:italic;font-weight:normal;height:auto;width:auto;margin-bottom:0;margin-left:5px;padding:0%200%200%203px", ".je-textarea": "width:100%25;height:300px;box-sizing:border-box", ".je-range-control": "text-align:center", ".je-indented-panel": "padding-left:10px;margin-left:10px;border-left:1px%20solid%20%23ccc", ".je-indented-panel--top": "padding-left:10px;margin-left:10px", ".je-tabholder": "float:left;width:130px", ".je-tabholder .content": "margin-left:120px", ".je-tabholder--top": "margin-left:10px", ".je-tabholder--clear": "clear:both", ".je-tab": "border:1px%20solid%20%23ccc;border-width:1px%200%201px%201px;text-align:center;line-height:30px;border-radius:5px;border-bottom-right-radius:0;border-top-right-radius:0;font-weight:bold;cursor:pointer", ".je-tab--top": "float:left;border:1px%20solid%20%23ccc;border-width:1px%201px%200px%201px;text-align:center;line-height:30px;border-radius:5px;padding-left:5px;padding-right:5px;border-bottom-right-radius:0;border-bottom-left-radius:0;font-weight:bold;cursor:pointer", ".je-block-link": "display:block", ".je-media": "width:100%25" };
|
|
9490
9490
|
class tt {
|
|
9491
9491
|
constructor(t, e = {}) {
|
|
9492
9492
|
if (!(t instanceof Element))
|
|
@@ -9496,7 +9496,7 @@ class tt {
|
|
|
9496
9496
|
if (!s)
|
|
9497
9497
|
throw new Error(`Unknown theme ${i}`);
|
|
9498
9498
|
this.element.setAttribute("data-theme", i), this.element.classList.add("je-not-loaded"), this.element.classList.remove("je-ready"), this.theme = new s(this);
|
|
9499
|
-
const r = $(
|
|
9499
|
+
const r = $(tp, this.getEditorsRules()), o = (l, d, h) => h ? this.addNewStyleRulesToShadowRoot(l, d, h) : this.addNewStyleRules(l, d);
|
|
9500
9500
|
if (!this.theme.options.disable_theme_rules) {
|
|
9501
9501
|
const l = zo(this.element);
|
|
9502
9502
|
o("default", r, l), typeof s.rules < "u" && o(i, s.rules, l);
|
|
@@ -9505,7 +9505,7 @@ class tt {
|
|
|
9505
9505
|
a && (this.iconlib = new a()), this.root_container = this.theme.getContainer(), this.element.appendChild(this.root_container), this.promise = this.load();
|
|
9506
9506
|
}
|
|
9507
9507
|
async load() {
|
|
9508
|
-
const t = document.location.origin + document.location.pathname.toString(), e = new
|
|
9508
|
+
const t = document.location.origin + document.location.pathname.toString(), e = new nu(this.options);
|
|
9509
9509
|
e.onSchemaLoaded = (a) => {
|
|
9510
9510
|
this.trigger("schemaLoaded", a);
|
|
9511
9511
|
}, e.onAllSchemasLoaded = () => {
|
|
@@ -9682,11 +9682,11 @@ tt.defaults = $e;
|
|
|
9682
9682
|
tt.AbstractEditor = It;
|
|
9683
9683
|
tt.AbstractTheme = me;
|
|
9684
9684
|
tt.AbstractIconLib = fe;
|
|
9685
|
-
Object.assign(tt.defaults.themes,
|
|
9685
|
+
Object.assign(tt.defaults.themes, Ku);
|
|
9686
9686
|
Object.assign(tt.defaults.editors, cs);
|
|
9687
|
-
Object.assign(tt.defaults.templates,
|
|
9688
|
-
Object.assign(tt.defaults.iconlibs,
|
|
9689
|
-
const
|
|
9687
|
+
Object.assign(tt.defaults.templates, mu);
|
|
9688
|
+
Object.assign(tt.defaults.iconlibs, Vu);
|
|
9689
|
+
const ep = `
|
|
9690
9690
|
* {
|
|
9691
9691
|
font-family: Roboto, sans-serif;
|
|
9692
9692
|
}
|
|
@@ -9818,7 +9818,7 @@ input[type="range"]:focus::-webkit-slider-thumb {
|
|
|
9818
9818
|
input::-moz-focus-inner, input::-moz-focus-outer {
|
|
9819
9819
|
border: 0;
|
|
9820
9820
|
}
|
|
9821
|
-
`,
|
|
9821
|
+
`, ip = `
|
|
9822
9822
|
${tn}
|
|
9823
9823
|
${oa}
|
|
9824
9824
|
${aa}
|
|
@@ -9986,23 +9986,23 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
9986
9986
|
window.tcRangeSliderPlugins.push(s);
|
|
9987
9987
|
})();
|
|
9988
9988
|
(() => {
|
|
9989
|
-
var n = Object.defineProperty, t = Math.pow, e = (c, f, _) => f in c ? n(c, f, { enumerable: !0, configurable: !0, writable: !0, value: _ }) : c[f] = _, i = (c, f, _) => (e(c, typeof f != "symbol" ? f + "" : f, _), _), s = (c, f) => ` ${f && f.length > 0 ? f.map((_) => `<link rel="stylesheet" href="${_}" />`).join("") : ""} <style> ${c} </style> <div class="range-slider-box"> <div class="row"> <div id="range-slider" class="range-slider"> <div class="container"> <div class="panel"></div> <div class="panel-fill"></div> <div class="container"> <div class="pointer" tabindex="0" role="slider"> <div class="pointer-shape"></div> </div> </div> </div> </div> </div> </div>`, r = ":host{--width:300px;--height:.25rem;--opacity:.4;--panel-bg:#cbd5e1;--panel-bg-hover:#94a3b8;--panel-bg-fill:#475569;--panel-bg-border-radius:1rem;--pointer-width:1rem;--pointer-height:1rem;--pointer-bg:#fff;--pointer-bg-hover:#dcdcdc;--pointer-bg-focus:#dcdcdc;--pointer-shadow:0 0 2px rgba(0,0,0,0.8);--pointer-shadow-hover:0 0 2px #000;--pointer-shadow-focus:var(--pointer-shadow-hover);--pointer-border:1px solid hsla(0,0%,88%,0.5);--pointer-border-hover:1px solid #94a3b8;--pointer-border-focus:var(--pointer-border-hover);--pointer-border-radius:100%;--animate-onclick:.3s}:host{max-width:100%}.range-slider-box{display:flex;position:relative;flex-direction:column}.range-slider{position:relative;width:var(--width,100%);height:var(--height,0.25rem);touch-action:none;max-width:100%;box-sizing:border-box;cursor:pointer}.row{width:100%;display:flex;align-items:center}.range-slider.disabled{opacity:var(--opacity,0.4);cursor:default}.pointer.disabled{-webkit-filter:brightness(0.8);filter:brightness(0.8);cursor:default}.range-slider *{box-sizing:border-box}.container{position:absolute;width:100%;height:100%}.panel{position:absolute;z-index:10;width:100%;height:100%;background:var(--panel-bg,#2d4373);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;transition:.3s all ease}.panel-fill{background:var(--panel-bg-fill,#000);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;height:100%;position:absolute;z-index:10}.panel:hover{background:var(--panel-bg-hover,#5f79b7)}.disabled .panel:hover{background:var(--panel-bg,#5f79b7)}.pointer{position:absolute;z-index:20;outline:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;box-shadow:var(--pointer-shadow);border:var(--pointer-border);border-radius:var(--pointer-border-radius,100%);-webkit-transform:translateX(-50%);transform:translateX(-50%);width:var(--pointer-width,15px);height:var(--pointer-height,15px);transition:.3s all ease}.pointer-shape:hover{background:var(--pointer-bg-hover,#fff);background-size:contain;border:var(--pointer-border-hover);box-shadow:var(--pointer-shadow-hover)}.disabled .pointer-shape:hover{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.pointer:focus .pointer-shape{background:var(--pointer-bg-focus,#fff);background-size:contain;border:var(--pointer-border-focus);box-shadow:var(--pointer-shadow-focus)}.disabled .pointer:focus .pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.type-vertical .range-slider{--width:.25rem;--height:300px;max-height:100%}.type-vertical .range-slider .pointer{left:50%}.type-vertical .range-slider .panel-fill{width:100%}.type-vertical.range-slider-box{flex-direction:row}.type-vertical .row{flex-direction:column}.animate-on-click .pointer,.animate-on-click .panel-fill{transition:all var(--animate-onclick)}.range-dragging .panel-fill{cursor:move}", o = "pointers-overlap", a = "pointers-min-distance", l = "pointers-max-distance", d = "range-dragging", h = "data", u = "min", g = "max", m = "step", y = "round", w = "type", A = "theme", Q = "rtl", Z = "btt", ft = "disabled", ht = "keyboard-disabled", Ct = "mousewheel-disabled", H = "slider-width", lt = "slider-height", $t = "slider-radius", rt = "slider-bg", T = "slider-bg-hover", N = "slider-bg-fill", _t = "pointer-width", vt = "pointer-height", Et = "pointer-radius", Ft = "pointer-bg", zt = "pointer-bg-hover", De = "pointer-bg-focus", xe = "pointer-shadow", Hs = "pointer-shadow-hover", en = "pointer-shadow-focus", ji = "pointer-border", Vs = "pointer-border-hover",
|
|
9989
|
+
var n = Object.defineProperty, t = Math.pow, e = (c, f, _) => f in c ? n(c, f, { enumerable: !0, configurable: !0, writable: !0, value: _ }) : c[f] = _, i = (c, f, _) => (e(c, typeof f != "symbol" ? f + "" : f, _), _), s = (c, f) => ` ${f && f.length > 0 ? f.map((_) => `<link rel="stylesheet" href="${_}" />`).join("") : ""} <style> ${c} </style> <div class="range-slider-box"> <div class="row"> <div id="range-slider" class="range-slider"> <div class="container"> <div class="panel"></div> <div class="panel-fill"></div> <div class="container"> <div class="pointer" tabindex="0" role="slider"> <div class="pointer-shape"></div> </div> </div> </div> </div> </div> </div>`, r = ":host{--width:300px;--height:.25rem;--opacity:.4;--panel-bg:#cbd5e1;--panel-bg-hover:#94a3b8;--panel-bg-fill:#475569;--panel-bg-border-radius:1rem;--pointer-width:1rem;--pointer-height:1rem;--pointer-bg:#fff;--pointer-bg-hover:#dcdcdc;--pointer-bg-focus:#dcdcdc;--pointer-shadow:0 0 2px rgba(0,0,0,0.8);--pointer-shadow-hover:0 0 2px #000;--pointer-shadow-focus:var(--pointer-shadow-hover);--pointer-border:1px solid hsla(0,0%,88%,0.5);--pointer-border-hover:1px solid #94a3b8;--pointer-border-focus:var(--pointer-border-hover);--pointer-border-radius:100%;--animate-onclick:.3s}:host{max-width:100%}.range-slider-box{display:flex;position:relative;flex-direction:column}.range-slider{position:relative;width:var(--width,100%);height:var(--height,0.25rem);touch-action:none;max-width:100%;box-sizing:border-box;cursor:pointer}.row{width:100%;display:flex;align-items:center}.range-slider.disabled{opacity:var(--opacity,0.4);cursor:default}.pointer.disabled{-webkit-filter:brightness(0.8);filter:brightness(0.8);cursor:default}.range-slider *{box-sizing:border-box}.container{position:absolute;width:100%;height:100%}.panel{position:absolute;z-index:10;width:100%;height:100%;background:var(--panel-bg,#2d4373);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;transition:.3s all ease}.panel-fill{background:var(--panel-bg-fill,#000);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;height:100%;position:absolute;z-index:10}.panel:hover{background:var(--panel-bg-hover,#5f79b7)}.disabled .panel:hover{background:var(--panel-bg,#5f79b7)}.pointer{position:absolute;z-index:20;outline:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;box-shadow:var(--pointer-shadow);border:var(--pointer-border);border-radius:var(--pointer-border-radius,100%);-webkit-transform:translateX(-50%);transform:translateX(-50%);width:var(--pointer-width,15px);height:var(--pointer-height,15px);transition:.3s all ease}.pointer-shape:hover{background:var(--pointer-bg-hover,#fff);background-size:contain;border:var(--pointer-border-hover);box-shadow:var(--pointer-shadow-hover)}.disabled .pointer-shape:hover{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.pointer:focus .pointer-shape{background:var(--pointer-bg-focus,#fff);background-size:contain;border:var(--pointer-border-focus);box-shadow:var(--pointer-shadow-focus)}.disabled .pointer:focus .pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.type-vertical .range-slider{--width:.25rem;--height:300px;max-height:100%}.type-vertical .range-slider .pointer{left:50%}.type-vertical .range-slider .panel-fill{width:100%}.type-vertical.range-slider-box{flex-direction:row}.type-vertical .row{flex-direction:column}.animate-on-click .pointer,.animate-on-click .panel-fill{transition:all var(--animate-onclick)}.range-dragging .panel-fill{cursor:move}", o = "pointers-overlap", a = "pointers-min-distance", l = "pointers-max-distance", d = "range-dragging", h = "data", u = "min", g = "max", m = "step", y = "round", w = "type", A = "theme", Q = "rtl", Z = "btt", ft = "disabled", ht = "keyboard-disabled", Ct = "mousewheel-disabled", H = "slider-width", lt = "slider-height", $t = "slider-radius", rt = "slider-bg", T = "slider-bg-hover", N = "slider-bg-fill", _t = "pointer-width", vt = "pointer-height", Et = "pointer-radius", Ft = "pointer-bg", zt = "pointer-bg-hover", De = "pointer-bg-focus", xe = "pointer-shadow", Hs = "pointer-shadow-hover", en = "pointer-shadow-focus", ji = "pointer-border", Vs = "pointer-border-hover", Ta = "pointer-border-focus", sn = "animate-onclick", ja = "css-links", Qt = "vertical", Ne = "horizontal", Fs = (c, f, _, b, C) => {
|
|
9990
9990
|
let I = f - c;
|
|
9991
9991
|
return I === 0 ? _ : (b - _) * (C - c) / I + _;
|
|
9992
|
-
}, ae = (c) => !isNaN(parseFloat(c)) && isFinite(c), mt = (c, f) => ae(c) ? Number(c) : f, rn = (c, f) => f === 0 ? 0 : Math.round(c / f) * f,
|
|
9992
|
+
}, ae = (c) => !isNaN(parseFloat(c)) && isFinite(c), mt = (c, f) => ae(c) ? Number(c) : f, rn = (c, f) => f === 0 ? 0 : Math.round(c / f) * f, $a = (c, f = 1 / 0) => {
|
|
9993
9993
|
if (f === 1 / 0)
|
|
9994
9994
|
return c;
|
|
9995
9995
|
let _ = t(10, f);
|
|
9996
9996
|
return Math.round(c * _) / _;
|
|
9997
|
-
}, kt = (c) => c == null ? !1 : typeof c == "boolean" ? c : c.trim().toLowerCase() === "true",
|
|
9997
|
+
}, kt = (c) => c == null ? !1 : typeof c == "boolean" ? c : c.trim().toLowerCase() === "true", Pa = (c, f) => {
|
|
9998
9998
|
c.dispatchEvent(new CustomEvent("onPointerClicked", { detail: { $pointer: f } }));
|
|
9999
|
-
}, Pa = (c, f) => {
|
|
10000
|
-
c.dispatchEvent(new CustomEvent("onMouseDown", { detail: { nativeEvent: f } }));
|
|
10001
9999
|
}, Oa = (c, f) => {
|
|
10002
|
-
c.dispatchEvent(new CustomEvent("
|
|
10000
|
+
c.dispatchEvent(new CustomEvent("onMouseDown", { detail: { nativeEvent: f } }));
|
|
10003
10001
|
}, Ia = (c, f) => {
|
|
10004
|
-
c.dispatchEvent(new CustomEvent("
|
|
10002
|
+
c.dispatchEvent(new CustomEvent("onMouseUp", { detail: { nativeEvent: f } }));
|
|
10005
10003
|
}, Ba = (c, f) => {
|
|
10004
|
+
c.dispatchEvent(new CustomEvent("onKeyDown", { detail: { nativeEvent: f } }));
|
|
10005
|
+
}, Ra = (c, f) => {
|
|
10006
10006
|
if (!f || f.length <= 0)
|
|
10007
10007
|
return;
|
|
10008
10008
|
let _ = f.map((C) => ae(C) ? mt(C, C) : C), b = { values: _ || [] };
|
|
@@ -10042,10 +10042,10 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10042
10042
|
break;
|
|
10043
10043
|
}
|
|
10044
10044
|
}
|
|
10045
|
-
|
|
10045
|
+
Ba(c, R);
|
|
10046
10046
|
}
|
|
10047
10047
|
}, z = () => {
|
|
10048
|
-
L ||
|
|
10048
|
+
L || Pa(c, f);
|
|
10049
10049
|
};
|
|
10050
10050
|
return f.className = `pointer pointer-${_}`, f.addEventListener("keydown", B), f.addEventListener("click", z), { $pointer: f, get percent() {
|
|
10051
10051
|
return b;
|
|
@@ -10056,7 +10056,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10056
10056
|
}, updatePosition: V, isClicked: G, setCallbacks: j, setAttr: Yt, getAttr: Pt, destroy: () => {
|
|
10057
10057
|
f.removeEventListener("keydown", B), f.removeEventListener("click", z), f.remove();
|
|
10058
10058
|
} };
|
|
10059
|
-
},
|
|
10059
|
+
}, Da = (c) => {
|
|
10060
10060
|
if (c == null)
|
|
10061
10061
|
return;
|
|
10062
10062
|
if (Array.isArray(c))
|
|
@@ -10069,12 +10069,12 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10069
10069
|
I !== "" && (_.push(I), ae(I) || (b = !1));
|
|
10070
10070
|
}
|
|
10071
10071
|
return b ? _.map((C) => Number(C)) : _;
|
|
10072
|
-
},
|
|
10072
|
+
}, Na = (c, f) => f ? f.findIndex((_) => _ === c || _.toString().trim() === c.toString().trim()) : -1, Ma = (c) => ({ updatePosition: (f, _, b, C) => {
|
|
10073
10073
|
if (_.length <= 0)
|
|
10074
10074
|
return;
|
|
10075
10075
|
let I = _.length === 1, M = _[0], E = _[_.length - 1];
|
|
10076
10076
|
f === Qt ? (c.style.removeProperty("width"), c.style.removeProperty("right"), c.style.removeProperty("left"), I ? c.style.height = `${M}%` : c.style.height = `${Math.abs(M - E)}%`, C ? (c.style.bottom = "0%", I ? c.style.top = "auto" : c.style.top = `${Math.min(100 - E, 100 - M)}%`) : (c.style.bottom = "auto", I ? c.style.top = "0%" : c.style.top = `${Math.min(M, E)}%`)) : (c.style.removeProperty("height"), c.style.removeProperty("top"), c.style.removeProperty("bottom"), I ? c.style.width = `${M}%` : c.style.width = `${Math.abs(M - E)}%`, b ? (c.style.right = "0%", I ? c.style.left = "auto" : c.style.left = `${Math.min(100 - E, 100 - M)}%`) : (c.style.right = "auto", I ? c.style.left = "0%" : c.style.left = `${Math.min(M, E)}%`));
|
|
10077
|
-
} }), nn = "--animate-onclick",
|
|
10077
|
+
} }), nn = "--animate-onclick", Ha = "--width", Va = "--height", Fa = "--panel-bg-border-radius", za = "--panel-bg", Ua = "--panel-bg-hover", qa = "--panel-bg-fill", Ga = "--pointer-width", Za = "--pointer-height", Wa = "--pointer-border-radius", Ya = "--pointer-bg", Xa = "--pointer-bg-hover", Ja = "--pointer-bg-focus", Qa = "--pointer-shadow", Ka = "--pointer-shadow-hover", tl = "--pointer-shadow-focus", el = "--pointer-border", il = "--pointer-border-hover", sl = "--pointer-border-focus", $i = (c, f, _) => {
|
|
10078
10078
|
let b = /* @__PURE__ */ new Map();
|
|
10079
10079
|
for (let C of c.attributes) {
|
|
10080
10080
|
let I = C.nodeName.trim().toLowerCase();
|
|
@@ -10084,17 +10084,17 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10084
10084
|
b.set(E, L);
|
|
10085
10085
|
}
|
|
10086
10086
|
return b;
|
|
10087
|
-
},
|
|
10087
|
+
}, rl = (c) => {
|
|
10088
10088
|
if (!c)
|
|
10089
10089
|
return null;
|
|
10090
|
-
let f = c.getAttribute(
|
|
10090
|
+
let f = c.getAttribute(ja);
|
|
10091
10091
|
if (!f)
|
|
10092
10092
|
return null;
|
|
10093
10093
|
let _ = f.split(";"), b = [];
|
|
10094
10094
|
for (let C of _)
|
|
10095
10095
|
C.trim() !== "" && b.push(C.trim());
|
|
10096
10096
|
return b;
|
|
10097
|
-
}, on = [[
|
|
10097
|
+
}, on = [[Ha, H, "sliderWidth", null], [Va, lt, "sliderHeight", null], [Fa, $t, "sliderRadius", null], [za, rt, "sliderBg", null], [Ua, T, "sliderBgHover", null], [qa, N, "sliderBgFill", null], [Ga, _t, "pointer#Width", /^pointer([0-9]*)-width$/], [Za, vt, "pointer#Height", /^pointer([0-9]*)-height$/], [Wa, Et, "pointer#Radius", /^pointer([0-9]*)-radius$/], [Ya, Ft, "pointer#Bg", /^pointer([0-9]*)-bg$/], [Xa, zt, "pointer#BgHover", /^pointer([0-9]*)-bg-hover$/], [Ja, De, "pointer#BgFocus", /^pointer([0-9]*)-bg-focus$/], [Qa, xe, "pointer#Shadow", /^pointer([0-9]*)-shadow$/], [Ka, Hs, "pointer#ShadowHover", /^pointer([0-9]*)-shadow-hover$/], [tl, en, "pointer#ShadowFocus", /^pointer([0-9]*)-shadow-focus$/], [el, ji, "pointer#Border", /^pointer([0-9]*)-border$/], [il, Vs, "pointer#BorderHover", /^pointer([0-9]*)-border-hover$/], [sl, Ta, "pointer#BorderFocus", /^pointer([0-9]*)-border-focus$/]], nl = (c, f, _) => {
|
|
10098
10098
|
let b = null, C = [], I = /* @__PURE__ */ new Map(), M = (B, z = f) => {
|
|
10099
10099
|
let R = [...z.classList];
|
|
10100
10100
|
for (let nt of R)
|
|
@@ -10181,7 +10181,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10181
10181
|
}, get pointerShapes() {
|
|
10182
10182
|
return C;
|
|
10183
10183
|
}, setPointerShape: G };
|
|
10184
|
-
}, Me = "animate-on-click", an = "range-dragging",
|
|
10184
|
+
}, Me = "animate-on-click", an = "range-dragging", ol = (c, f, _, b) => {
|
|
10185
10185
|
let C = [], I = (G) => {
|
|
10186
10186
|
for (let j of C)
|
|
10187
10187
|
j.update && typeof j.update == "function" && j.update(G);
|
|
@@ -10215,7 +10215,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10215
10215
|
C.push(j), j.init && typeof j.init == "function" && (j.init(c, f, _, b), L(j), V(j));
|
|
10216
10216
|
}
|
|
10217
10217
|
}, update: I, onAttrChange: E, destroy: M };
|
|
10218
|
-
},
|
|
10218
|
+
}, al = 10, ln = 20, ll = (c, f) => {
|
|
10219
10219
|
let _ = /* @__PURE__ */ new Map(), b = /^value([0-9]*)$/;
|
|
10220
10220
|
for (let E of c.attributes) {
|
|
10221
10221
|
let L = E.nodeName.trim().toLowerCase();
|
|
@@ -10266,9 +10266,9 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10266
10266
|
} catch (E) {
|
|
10267
10267
|
console.error(E);
|
|
10268
10268
|
}
|
|
10269
|
-
},
|
|
10269
|
+
}, dl = (c, f) => {
|
|
10270
10270
|
let _ = [["value", "ariaLabel", "pointerShape", "pointerDisabled", 0], ["value0", "ariaLabel0", "pointerShape0", "pointer0Disabled", 0], ["value1", "ariaLabel1", "pointerShape1", "pointer1Disabled", 0]];
|
|
10271
|
-
for (let b = 2; b <
|
|
10271
|
+
for (let b = 2; b < al; b++)
|
|
10272
10272
|
_.push([`value${b}`, `ariaLabel${b}`, `pointer${b}Shape`, `pointer${b}Disabled`, b - 1]);
|
|
10273
10273
|
for (let b of _)
|
|
10274
10274
|
dn(c, f, b[4], b[0], b[1], b[2], b[3]);
|
|
@@ -10278,28 +10278,28 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10278
10278
|
if (C)
|
|
10279
10279
|
for (let I of c)
|
|
10280
10280
|
f ? C.prepend(I.$pointer) : C.append(I.$pointer);
|
|
10281
|
-
},
|
|
10281
|
+
}, hl = (c, f) => {
|
|
10282
10282
|
if (!(!f || c.length <= 1)) {
|
|
10283
10283
|
for (let _ of c)
|
|
10284
10284
|
_.$pointer.style.zIndex = ln.toString();
|
|
10285
10285
|
f.$pointer.style.zIndex = (ln * 2).toString();
|
|
10286
10286
|
}
|
|
10287
|
-
}, Us = 0, ei = 100, He = 2, cn = "0.3s",
|
|
10287
|
+
}, Us = 0, ei = 100, He = 2, cn = "0.3s", cl = (c, f, _) => {
|
|
10288
10288
|
let b = _.map((p) => p[0]), C = null, I = null, M = null, E = null, L = Us, V = ei, G, j, K = Ne, Yt = He, Pt = !1, B = !1, z = !1, R = 0, nt = 1 / 0, Lt = !1, wt, ct, ut = !1, Rt = !1, Dt = !1, ge = cn, un = [], pn = (p) => {
|
|
10289
|
-
ut || (p.preventDefault && p.preventDefault(), Ce(p), window.addEventListener("mousemove", Ce), window.addEventListener("mouseup", Pi),
|
|
10289
|
+
ut || (p.preventDefault && p.preventDefault(), Ce(p), window.addEventListener("mousemove", Ce), window.addEventListener("mouseup", Pi), Oa(c, p));
|
|
10290
10290
|
}, Pi = (p) => {
|
|
10291
|
-
ut || (wt = void 0, ct = void 0, window.removeEventListener("mousemove", Ce), window.removeEventListener("mouseup", Pi), ge && f.classList.add(Me),
|
|
10292
|
-
},
|
|
10291
|
+
ut || (wt = void 0, ct = void 0, window.removeEventListener("mousemove", Ce), window.removeEventListener("mouseup", Pi), ge && f.classList.add(Me), Ia(c, p));
|
|
10292
|
+
}, fl = (p, v) => {
|
|
10293
10293
|
if (b.length <= 0)
|
|
10294
10294
|
return;
|
|
10295
10295
|
if (b.length === 1)
|
|
10296
10296
|
return b[0].isClicked(p) && ge && f.classList.remove(Me), b[0];
|
|
10297
|
-
let S =
|
|
10297
|
+
let S = gl(p);
|
|
10298
10298
|
if (Lt) {
|
|
10299
10299
|
let X = v, Kt = Ii(X);
|
|
10300
10300
|
Kt !== void 0 && (X = rn(X, Kt)), S ? (wt = X, ct = 0, ge && f.classList.remove(Me)) : wt !== void 0 && (ct = X - wt, wt = X);
|
|
10301
10301
|
}
|
|
10302
|
-
if (!
|
|
10302
|
+
if (!ml(p) && !S) {
|
|
10303
10303
|
for (let X of b)
|
|
10304
10304
|
if (!(!X.isClicked(p) || X.disabled))
|
|
10305
10305
|
return ge && f.classList.remove(Me), X;
|
|
@@ -10324,7 +10324,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10324
10324
|
let { width: it, left: pt } = f.getBoundingClientRect(), X = p.type.indexOf("mouse") !== -1 ? p.clientX : p.touches[0].clientX;
|
|
10325
10325
|
v = Math.min(Math.max(0, X - pt), it) * 100 / it;
|
|
10326
10326
|
}
|
|
10327
|
-
if ((Pt || B) && (v = 100 - v), C =
|
|
10327
|
+
if ((Pt || B) && (v = 100 - v), C = fl(p.target, v), C && hl(b, C), Lt && b.length > 1 && ct !== void 0) {
|
|
10328
10328
|
let it = b[0], pt = b[b.length - 1], X = it.percent + ct < 0, Kt = pt.percent + ct > 100;
|
|
10329
10329
|
if (X || Kt)
|
|
10330
10330
|
return;
|
|
@@ -10348,7 +10348,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10348
10348
|
ut || Rt || (K === Qt ? B ? si(p, b[p].percent) : ii(p, b[p].percent) : Pt ? Nt(p, 100) : Nt(p, 0));
|
|
10349
10349
|
}, yn = (p) => {
|
|
10350
10350
|
ut || Rt || (K === Qt ? B ? ii(p, b[p].percent) : si(p, b[p].percent) : Pt ? Nt(p, 0) : Nt(p, 100));
|
|
10351
|
-
},
|
|
10351
|
+
}, ml = (p) => p.classList.contains("panel"), gl = (p) => p.classList.contains("panel-fill"), ii = (p, v) => {
|
|
10352
10352
|
if (v === void 0)
|
|
10353
10353
|
return;
|
|
10354
10354
|
let S = Ii(v);
|
|
@@ -10360,9 +10360,9 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10360
10360
|
S == null && (S = 1), v += S, v > 100 && (v = 100), Nt(p, v);
|
|
10361
10361
|
}, Ee = () => {
|
|
10362
10362
|
!E || E.update({ percents: _n(), values: vn(), $pointers: wn(), min: xn(), max: Cn(), data: Zs(), step: Gs(), round: Ys(), type: Ws(), textMin: Bi(), textMax: Ri(), rightToLeft: Qs(), bottomToTop: Ks(), pointersOverlap: sr(), pointersMinDistance: Xs(), pointersMaxDistance: Js(), rangeDragging: rr(), disabled: tr(), keyboardDisabled: er(), mousewheelDisabled: ir() });
|
|
10363
|
-
},
|
|
10363
|
+
}, bl = () => {
|
|
10364
10364
|
Ee();
|
|
10365
|
-
},
|
|
10365
|
+
}, yl = (p) => {
|
|
10366
10366
|
if (!(z || b.length <= 1 || V === L))
|
|
10367
10367
|
if (p === 0) {
|
|
10368
10368
|
let v = nt * 100 / (V - L);
|
|
@@ -10371,7 +10371,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10371
10371
|
let v = R * 100 / (V - L);
|
|
10372
10372
|
return Math.min(b[p - 1].percent + v, 100);
|
|
10373
10373
|
}
|
|
10374
|
-
},
|
|
10374
|
+
}, _l = (p) => {
|
|
10375
10375
|
if (!(z || b.length <= 1 || V === L))
|
|
10376
10376
|
if (p === b.length - 1) {
|
|
10377
10377
|
let v = nt * 100 / (V - L);
|
|
@@ -10395,14 +10395,14 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10395
10395
|
if (p === void 0)
|
|
10396
10396
|
return;
|
|
10397
10397
|
let v = Fs(0, 100, L, V, p);
|
|
10398
|
-
return j !== void 0 ? j[Math.round(v)] :
|
|
10399
|
-
}, Bi = () => j !== void 0 ? j[L] : L, Ri = () => j !== void 0 ? j[V] : V, Gs = () => G,
|
|
10398
|
+
return j !== void 0 ? j[Math.round(v)] : $a(v, Yt);
|
|
10399
|
+
}, Bi = () => j !== void 0 ? j[L] : L, Ri = () => j !== void 0 ? j[V] : V, Gs = () => G, vl = (p) => {
|
|
10400
10400
|
var v;
|
|
10401
10401
|
return p <= 0 || z ? Bi() : (v = Ve(b[p - 1].percent)) != null ? v : "";
|
|
10402
|
-
},
|
|
10402
|
+
}, wl = (p) => {
|
|
10403
10403
|
var v;
|
|
10404
10404
|
return b.length <= 1 || p >= b.length - 1 || z ? Ri() : (v = Ve(b[p + 1].percent)) != null ? v : "";
|
|
10405
|
-
}, _n = () => b.map((p) => p.percent), vn = () => b.map((p) => Ve(p.percent)), wn = () => b.map((p) => p.$pointer), xn = () => L, Cn = () => V, Zs = () => j, Ws = () => K, Ys = () => Yt, Xs = () => R, Js = () => nt,
|
|
10405
|
+
}, _n = () => b.map((p) => p.percent), vn = () => b.map((p) => Ve(p.percent)), wn = () => b.map((p) => p.$pointer), xn = () => L, Cn = () => V, Zs = () => j, Ws = () => K, Ys = () => Yt, Xs = () => R, Js = () => nt, xl = (p) => un[p], Qs = () => Pt, Ks = () => B, tr = () => ut, er = () => Rt, ir = () => Dt, sr = () => z, rr = () => Lt, Nt = (p, v) => {
|
|
10406
10406
|
if (v === void 0)
|
|
10407
10407
|
return;
|
|
10408
10408
|
let S = Ii(v);
|
|
@@ -10410,23 +10410,23 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10410
10410
|
let it = b[p];
|
|
10411
10411
|
if (!it)
|
|
10412
10412
|
return;
|
|
10413
|
-
let pt = it.updatePosition(v,
|
|
10413
|
+
let pt = it.updatePosition(v, yl(p), _l(p), K, Pt, B);
|
|
10414
10414
|
I == null || I.updatePosition(K, b.map((X) => X.percent), Pt, B), Ee();
|
|
10415
10415
|
for (let X of b) {
|
|
10416
10416
|
let Kt = Ve(X.percent);
|
|
10417
10417
|
Kt !== void 0 && (X.setAttr("aria-valuenow", Kt.toString()), X.setAttr("aria-valuetext", Kt.toString()));
|
|
10418
10418
|
}
|
|
10419
|
-
|
|
10419
|
+
El(), pt && Ra(c, b.map((X) => Ve(X.percent)));
|
|
10420
10420
|
}, re = () => {
|
|
10421
10421
|
for (let p = 0; p < b.length; p++)
|
|
10422
10422
|
Nt(p, b[p].percent);
|
|
10423
|
-
},
|
|
10423
|
+
}, Cl = (p, v) => {
|
|
10424
10424
|
L = j !== void 0 ? 0 : mt(p, Us), V = j !== void 0 ? j.length - 1 : mt(v, ei), Di(L), Ni(V);
|
|
10425
|
-
},
|
|
10425
|
+
}, El = () => {
|
|
10426
10426
|
var p, v;
|
|
10427
10427
|
for (let S = 0; S < b.length; S++) {
|
|
10428
10428
|
let it = b[S];
|
|
10429
|
-
it.setAttr("aria-valuemin", ((p =
|
|
10429
|
+
it.setAttr("aria-valuemin", ((p = vl(S)) != null ? p : "").toString()), it.setAttr("aria-valuemax", ((v = wl(S)) != null ? v : "").toString());
|
|
10430
10430
|
}
|
|
10431
10431
|
}, Di = (p) => {
|
|
10432
10432
|
L = mt(p, Us), L > V && (V = L + ei), re();
|
|
@@ -10441,7 +10441,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10441
10441
|
Mi(p[v], v);
|
|
10442
10442
|
}, Mi = (p, v) => {
|
|
10443
10443
|
let S;
|
|
10444
|
-
j !== void 0 ? (S = p == null ? 0 :
|
|
10444
|
+
j !== void 0 ? (S = p == null ? 0 : Na(p, j), S === -1 && (S = 0)) : (S = mt(p, L), S < L && (S = L), S > V && (S = V));
|
|
10445
10445
|
let it = Fs(L, V, 0, 100, S);
|
|
10446
10446
|
Nt(v, it);
|
|
10447
10447
|
}, Hi = (p) => {
|
|
@@ -10477,7 +10477,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10477
10477
|
j = void 0;
|
|
10478
10478
|
return;
|
|
10479
10479
|
}
|
|
10480
|
-
if (j =
|
|
10480
|
+
if (j = Da(p), j === void 0 || j.length <= 0) {
|
|
10481
10481
|
j = void 0;
|
|
10482
10482
|
return;
|
|
10483
10483
|
}
|
|
@@ -10509,25 +10509,25 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10509
10509
|
return;
|
|
10510
10510
|
}
|
|
10511
10511
|
Lt = p, f.classList.toggle(an, Lt);
|
|
10512
|
-
},
|
|
10512
|
+
}, Ll = () => {
|
|
10513
10513
|
lr(kt(c.getAttribute(ft))), Rt = kt(c.getAttribute(ht)), Dt = kt(c.getAttribute(Ct));
|
|
10514
10514
|
let p = $i(c, /^pointer([0-9]*)-disabled$/, (v) => kt(v));
|
|
10515
10515
|
for (let v of p) {
|
|
10516
10516
|
let S = v[0];
|
|
10517
10517
|
!b[S] || (b[S].disabled = v[1]);
|
|
10518
10518
|
}
|
|
10519
|
-
},
|
|
10519
|
+
}, Al = () => {
|
|
10520
10520
|
let p = $i(c, /^aria-label([0-9]*)$/);
|
|
10521
10521
|
for (let v of p) {
|
|
10522
10522
|
let S = v[0];
|
|
10523
10523
|
Sn(S, v[1]);
|
|
10524
10524
|
}
|
|
10525
|
-
},
|
|
10525
|
+
}, kl = (p) => {
|
|
10526
10526
|
let v = b.length, S = b[v - 1].$pointer, it = S.cloneNode(!0);
|
|
10527
10527
|
S.after(it);
|
|
10528
10528
|
let pt = zs(c, it, v);
|
|
10529
10529
|
return pt.setCallbacks(mn, gn, bn, yn), b.push(pt), Mi(p, v), re(), Ee(), v;
|
|
10530
|
-
},
|
|
10530
|
+
}, Sl = () => {
|
|
10531
10531
|
let p = b.length, v = b[p - 1];
|
|
10532
10532
|
return v ? (v.destroy(), b.pop(), b.length <= 1 && Vi(!1), re(), Ee(), p - 1) : -1;
|
|
10533
10533
|
};
|
|
@@ -10536,7 +10536,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10536
10536
|
for (let it of b)
|
|
10537
10537
|
it.setCallbacks(mn, gn, bn, yn);
|
|
10538
10538
|
let S = (p = c.shadowRoot) == null ? void 0 : p.querySelector(".panel-fill");
|
|
10539
|
-
S && (I =
|
|
10539
|
+
S && (I = Ma(S)), hr(c.getAttribute(w)), cr(kt(c.getAttribute(Q))), ur(kt(c.getAttribute(Z))), Cl(c.getAttribute(u), c.getAttribute(g)), Hi(c.getAttribute(m)), dr(c.getAttribute(h)), En(_.map((it) => it[1])), nr(kt(c.getAttribute(o))), or(mt(c.getAttribute(a), 0)), ar(mt(c.getAttribute(l), 1 / 0)), Vi(kt(c.getAttribute(d))), pr(mt(c.getAttribute(y), He)), Ll(), Al(), M = nl(c, f, b), kn((v = c.getAttribute(sn)) != null ? v : cn), f.addEventListener("mousedown", pn), f.addEventListener("mouseup", Pi), f.addEventListener("touchmove", Ce), f.addEventListener("touchstart", Ce), Dt || document.addEventListener("wheel", Oi, { passive: !1 }), E = ol(c, bl, { setValues: En, setMin: Di, setMax: Ni, setStep: Hi, setPointersOverlap: nr, setPointersMinDistance: or, setPointersMaxDistance: ar, setDisabled: lr, setType: hr, setRightToLeft: cr, setBottomToTop: ur, setRound: pr, setKeyboardDisabled: Ln, setMousewheelDisabled: An, setRangeDragging: Vi, setData: dr }, { getPercents: _n, getValues: vn, getPointerElements: wn, getMin: xn, getMax: Cn, getStep: Gs, getData: Zs, getType: Ws, getRound: Ys, getTextMin: Bi, getTextMax: Ri, isRightToLeft: Qs, isBottomToTop: Ks, isDisabled: tr, isKeyboardDisabled: er, isMousewheelDisabled: ir, isPointersOverlap: sr, isRangeDraggingEnabled: rr, getPointersMinDistance: Xs, getPointersMaxDistance: Js }), E.init();
|
|
10540
10540
|
})(), { get pointers() {
|
|
10541
10541
|
return b;
|
|
10542
10542
|
}, get styles() {
|
|
@@ -10599,13 +10599,13 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10599
10599
|
return rr();
|
|
10600
10600
|
}, set rangeDragging(p) {
|
|
10601
10601
|
Vi(p);
|
|
10602
|
-
}, setMin: Di, setMax: Ni, setValue: Mi, setStep: Hi, setData: dr, getTextValue: Ve, setAriaLabel: Sn, getAriaLabel:
|
|
10602
|
+
}, setMin: Di, setMax: Ni, setValue: Mi, setStep: Hi, setData: dr, getTextValue: Ve, setAriaLabel: Sn, getAriaLabel: xl, addPointer: kl, removePointer: Sl, destroy: () => {
|
|
10603
10603
|
f.removeEventListener("mousedown", pn), f.removeEventListener("mouseup", Pi), f.removeEventListener("touchmove", Ce), f.removeEventListener("touchstart", Ce), document.removeEventListener("wheel", Oi);
|
|
10604
10604
|
for (let p of b)
|
|
10605
10605
|
p.destroy();
|
|
10606
10606
|
E == null || E.destroy();
|
|
10607
10607
|
} };
|
|
10608
|
-
},
|
|
10608
|
+
}, ul = (c, f, _) => {
|
|
10609
10609
|
let b = on.find(([E, L, V, G]) => L.replace("#", "") === f.replace(/\d+/g, ""));
|
|
10610
10610
|
if (b && c.styles) {
|
|
10611
10611
|
let [E, L, V, G] = b, j = f.replace(/\D/g, "").trim(), K = j === "" || j === "0" || j === "1" ? 0 : mt(j, 0) - 1;
|
|
@@ -10707,7 +10707,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10707
10707
|
break;
|
|
10708
10708
|
}
|
|
10709
10709
|
}
|
|
10710
|
-
},
|
|
10710
|
+
}, pl = class extends HTMLElement {
|
|
10711
10711
|
constructor() {
|
|
10712
10712
|
super(), i(this, "slider"), i(this, "_externalCSSList", []), i(this, "_observer", null), this.attachShadow({ mode: "open" });
|
|
10713
10713
|
}
|
|
@@ -10857,37 +10857,37 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
10857
10857
|
var c, f;
|
|
10858
10858
|
if (!this.shadowRoot)
|
|
10859
10859
|
return;
|
|
10860
|
-
this._externalCSSList =
|
|
10860
|
+
this._externalCSSList = rl(this), this.shadowRoot.innerHTML = s(r, this._externalCSSList);
|
|
10861
10861
|
let _ = (c = this.shadowRoot) == null ? void 0 : c.querySelector(".pointer");
|
|
10862
10862
|
if (!_)
|
|
10863
10863
|
return;
|
|
10864
10864
|
let b = (f = this.shadowRoot) == null ? void 0 : f.getElementById("range-slider");
|
|
10865
10865
|
if (!b)
|
|
10866
10866
|
return;
|
|
10867
|
-
let C =
|
|
10868
|
-
this.slider =
|
|
10867
|
+
let C = ll(this, _);
|
|
10868
|
+
this.slider = cl(this, b, C), dl(this, this.slider), this._observer = new MutationObserver((I) => {
|
|
10869
10869
|
I.forEach((M) => {
|
|
10870
10870
|
var E;
|
|
10871
10871
|
if (!this.slider || M.type !== "attributes")
|
|
10872
10872
|
return;
|
|
10873
10873
|
let L = M.attributeName;
|
|
10874
|
-
!L ||
|
|
10874
|
+
!L || ul(this.slider, L, (E = this.getAttribute(L)) != null ? E : "");
|
|
10875
10875
|
});
|
|
10876
10876
|
}), this._observer.observe(this, { attributes: !0 });
|
|
10877
10877
|
}
|
|
10878
10878
|
disconnectedCallback() {
|
|
10879
10879
|
this._observer && this._observer.disconnect(), this.slider && this.slider.destroy();
|
|
10880
10880
|
}
|
|
10881
|
-
}, qs =
|
|
10881
|
+
}, qs = pl;
|
|
10882
10882
|
window.tcRangeSlider = qs, customElements.get("toolcool-range-slider") || customElements.define("toolcool-range-slider", qs), customElements.get("tc-range-slider") || customElements.define("tc-range-slider", class extends qs {
|
|
10883
10883
|
});
|
|
10884
10884
|
})();
|
|
10885
|
-
function
|
|
10885
|
+
function sp(n, t) {
|
|
10886
10886
|
Object.keys(t).forEach((e) => {
|
|
10887
10887
|
n.setAttribute(e, t[e]);
|
|
10888
10888
|
});
|
|
10889
10889
|
}
|
|
10890
|
-
class
|
|
10890
|
+
class rp extends It {
|
|
10891
10891
|
register() {
|
|
10892
10892
|
super.register();
|
|
10893
10893
|
}
|
|
@@ -10914,7 +10914,7 @@ class sp extends It {
|
|
|
10914
10914
|
"slider-width": "100%",
|
|
10915
10915
|
"range-dragging": "false"
|
|
10916
10916
|
};
|
|
10917
|
-
|
|
10917
|
+
sp(o, d), this.input = o, this.input.id = this.formname, this.control = s.getFormControl(
|
|
10918
10918
|
this.label,
|
|
10919
10919
|
this.input,
|
|
10920
10920
|
this.description,
|
|
@@ -10930,14 +10930,14 @@ class sp extends It {
|
|
|
10930
10930
|
this.label && this.label.parentNode && this.label.parentNode.removeChild(this.label), this.description && this.description.parentNode && this.description.parentNode.removeChild(this.description), this.input && this.input.parentNode && this.input.parentNode.removeChild(this.input), super.destroy();
|
|
10931
10931
|
}
|
|
10932
10932
|
}
|
|
10933
|
-
const
|
|
10933
|
+
const np = [
|
|
10934
10934
|
{
|
|
10935
10935
|
type: "object",
|
|
10936
10936
|
format: "minmax",
|
|
10937
|
-
func:
|
|
10937
|
+
func: rp
|
|
10938
10938
|
}
|
|
10939
|
-
],
|
|
10940
|
-
|
|
10939
|
+
], op = (n) => {
|
|
10940
|
+
np.map(({ type: t, format: e, func: i }) => {
|
|
10941
10941
|
tt.defaults.startVals = n, tt.defaults.editors[e] = i, tt.defaults.resolvers.unshift((s) => {
|
|
10942
10942
|
if (s.type === t && s.format === e)
|
|
10943
10943
|
return e;
|
|
@@ -11008,7 +11008,7 @@ class la extends Vt {
|
|
|
11008
11008
|
}
|
|
11009
11009
|
firstUpdated() {
|
|
11010
11010
|
if (!st(this, Oe)) {
|
|
11011
|
-
|
|
11011
|
+
op(this.startVals || {});
|
|
11012
11012
|
const e = this.renderRoot.querySelector("form");
|
|
11013
11013
|
Le(this, Oe, new tt(e, {
|
|
11014
11014
|
schema: this.schema,
|
|
@@ -11022,8 +11022,8 @@ class la extends Vt {
|
|
|
11022
11022
|
render() {
|
|
11023
11023
|
return q`
|
|
11024
11024
|
<style>
|
|
11025
|
-
${
|
|
11026
|
-
${!this.unstyled &&
|
|
11025
|
+
${ep}
|
|
11026
|
+
${!this.unstyled && ip}
|
|
11027
11027
|
</style>
|
|
11028
11028
|
<form></form>
|
|
11029
11029
|
`;
|
|
@@ -11050,14 +11050,95 @@ Ye = new WeakMap(), Oe = new WeakMap(), us = new WeakSet(), da = function() {
|
|
|
11050
11050
|
unstyled: { type: Boolean }
|
|
11051
11051
|
});
|
|
11052
11052
|
customElements.define("eox-jsonform", la);
|
|
11053
|
-
const
|
|
11053
|
+
const ap = (n, t, e) => {
|
|
11054
11054
|
let i = t;
|
|
11055
11055
|
return e.layer.getSource().getTileUrlFunction() && (i || (i = e.layer.getSource().getTileUrlFunction()), e.layer.getSource().setTileUrlFunction(
|
|
11056
|
-
(...s) =>
|
|
11056
|
+
(...s) => Ud(i(...s), n)
|
|
11057
11057
|
), e.layer.getSource().setKey(/* @__PURE__ */ new Date())), i;
|
|
11058
11058
|
};
|
|
11059
|
-
var
|
|
11060
|
-
|
|
11059
|
+
var Zi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
11060
|
+
function lp(n) {
|
|
11061
|
+
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
11062
|
+
}
|
|
11063
|
+
var dp = "Expected a function", Jn = NaN, hp = "[object Symbol]", cp = /^\s+|\s+$/g, up = /^[-+]0x[0-9a-f]+$/i, pp = /^0b[01]+$/i, fp = /^0o[0-7]+$/i, mp = parseInt, gp = typeof Zi == "object" && Zi && Zi.Object === Object && Zi, bp = typeof self == "object" && self && self.Object === Object && self, yp = gp || bp || Function("return this")(), _p = Object.prototype, vp = _p.toString, wp = Math.max, xp = Math.min, Pr = function() {
|
|
11064
|
+
return yp.Date.now();
|
|
11065
|
+
};
|
|
11066
|
+
function Cp(n, t, e) {
|
|
11067
|
+
var i, s, r, o, a, l, d = 0, h = !1, u = !1, g = !0;
|
|
11068
|
+
if (typeof n != "function")
|
|
11069
|
+
throw new TypeError(dp);
|
|
11070
|
+
t = Qn(t) || 0, Mr(e) && (h = !!e.leading, u = "maxWait" in e, r = u ? wp(Qn(e.maxWait) || 0, t) : r, g = "trailing" in e ? !!e.trailing : g);
|
|
11071
|
+
function m(H) {
|
|
11072
|
+
var lt = i, $t = s;
|
|
11073
|
+
return i = s = void 0, d = H, o = n.apply($t, lt), o;
|
|
11074
|
+
}
|
|
11075
|
+
function y(H) {
|
|
11076
|
+
return d = H, a = setTimeout(Q, t), h ? m(H) : o;
|
|
11077
|
+
}
|
|
11078
|
+
function w(H) {
|
|
11079
|
+
var lt = H - l, $t = H - d, rt = t - lt;
|
|
11080
|
+
return u ? xp(rt, r - $t) : rt;
|
|
11081
|
+
}
|
|
11082
|
+
function A(H) {
|
|
11083
|
+
var lt = H - l, $t = H - d;
|
|
11084
|
+
return l === void 0 || lt >= t || lt < 0 || u && $t >= r;
|
|
11085
|
+
}
|
|
11086
|
+
function Q() {
|
|
11087
|
+
var H = Pr();
|
|
11088
|
+
if (A(H))
|
|
11089
|
+
return Z(H);
|
|
11090
|
+
a = setTimeout(Q, w(H));
|
|
11091
|
+
}
|
|
11092
|
+
function Z(H) {
|
|
11093
|
+
return a = void 0, g && i ? m(H) : (i = s = void 0, o);
|
|
11094
|
+
}
|
|
11095
|
+
function ft() {
|
|
11096
|
+
a !== void 0 && clearTimeout(a), d = 0, i = l = s = a = void 0;
|
|
11097
|
+
}
|
|
11098
|
+
function ht() {
|
|
11099
|
+
return a === void 0 ? o : Z(Pr());
|
|
11100
|
+
}
|
|
11101
|
+
function Ct() {
|
|
11102
|
+
var H = Pr(), lt = A(H);
|
|
11103
|
+
if (i = arguments, s = this, l = H, lt) {
|
|
11104
|
+
if (a === void 0)
|
|
11105
|
+
return y(l);
|
|
11106
|
+
if (u)
|
|
11107
|
+
return a = setTimeout(Q, t), m(l);
|
|
11108
|
+
}
|
|
11109
|
+
return a === void 0 && (a = setTimeout(Q, t)), o;
|
|
11110
|
+
}
|
|
11111
|
+
return Ct.cancel = ft, Ct.flush = ht, Ct;
|
|
11112
|
+
}
|
|
11113
|
+
function Mr(n) {
|
|
11114
|
+
var t = typeof n;
|
|
11115
|
+
return !!n && (t == "object" || t == "function");
|
|
11116
|
+
}
|
|
11117
|
+
function Ep(n) {
|
|
11118
|
+
return !!n && typeof n == "object";
|
|
11119
|
+
}
|
|
11120
|
+
function Lp(n) {
|
|
11121
|
+
return typeof n == "symbol" || Ep(n) && vp.call(n) == hp;
|
|
11122
|
+
}
|
|
11123
|
+
function Qn(n) {
|
|
11124
|
+
if (typeof n == "number")
|
|
11125
|
+
return n;
|
|
11126
|
+
if (Lp(n))
|
|
11127
|
+
return Jn;
|
|
11128
|
+
if (Mr(n)) {
|
|
11129
|
+
var t = typeof n.valueOf == "function" ? n.valueOf() : n;
|
|
11130
|
+
n = Mr(t) ? t + "" : t;
|
|
11131
|
+
}
|
|
11132
|
+
if (typeof n != "string")
|
|
11133
|
+
return n === 0 ? n : +n;
|
|
11134
|
+
n = n.replace(cp, "");
|
|
11135
|
+
var e = pp.test(n);
|
|
11136
|
+
return e || fp.test(n) ? mp(n.slice(2), e ? 2 : 8) : up.test(n) ? Jn : +n;
|
|
11137
|
+
}
|
|
11138
|
+
var Ap = Cp;
|
|
11139
|
+
const ca = /* @__PURE__ */ lp(Ap);
|
|
11140
|
+
var wi, xi, Ci, fs, pa, ms, gs;
|
|
11141
|
+
class ua extends Vt {
|
|
11061
11142
|
constructor() {
|
|
11062
11143
|
super();
|
|
11063
11144
|
/**
|
|
@@ -11086,7 +11167,9 @@ class ca extends Vt {
|
|
|
11086
11167
|
U(this, Ci, void 0);
|
|
11087
11168
|
U(this, ms, "");
|
|
11088
11169
|
U(this, gs, "");
|
|
11089
|
-
this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null
|
|
11170
|
+
this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.debouncedDataChange = ca(xt(this, fs, pa), 1e3, {
|
|
11171
|
+
leading: !0
|
|
11172
|
+
});
|
|
11090
11173
|
}
|
|
11091
11174
|
/**
|
|
11092
11175
|
* Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
|
|
@@ -11098,7 +11181,7 @@ class ca extends Vt {
|
|
|
11098
11181
|
* Renders a JSON form for configuration options of a layer.
|
|
11099
11182
|
*/
|
|
11100
11183
|
render() {
|
|
11101
|
-
Le(this, xi,
|
|
11184
|
+
Le(this, xi, Ch(this.layer, this.layerConfig));
|
|
11102
11185
|
const e = {
|
|
11103
11186
|
disable_edit_json: !0,
|
|
11104
11187
|
disable_collapse: !0,
|
|
@@ -11117,21 +11200,21 @@ class ca extends Vt {
|
|
|
11117
11200
|
.schema=${this.layerConfig.schema}
|
|
11118
11201
|
.startVals=${st(this, xi)}
|
|
11119
11202
|
.options=${e}
|
|
11120
|
-
@change=${
|
|
11203
|
+
@change=${this.debouncedDataChange}
|
|
11121
11204
|
></eox-jsonform>
|
|
11122
11205
|
`
|
|
11123
11206
|
)}
|
|
11124
11207
|
`;
|
|
11125
11208
|
}
|
|
11126
11209
|
}
|
|
11127
|
-
wi = new WeakMap(), xi = new WeakMap(), Ci = new WeakMap(), fs = new WeakSet(),
|
|
11128
|
-
Le(this, wi, e.detail), Le(this, Ci,
|
|
11210
|
+
wi = new WeakMap(), xi = new WeakMap(), Ci = new WeakMap(), fs = new WeakSet(), pa = function(e) {
|
|
11211
|
+
Le(this, wi, e.detail), Le(this, Ci, ap(
|
|
11129
11212
|
st(this, wi),
|
|
11130
11213
|
st(this, Ci),
|
|
11131
11214
|
this
|
|
11132
11215
|
)), this.requestUpdate();
|
|
11133
11216
|
}, ms = new WeakMap(), gs = new WeakMap(), // Define static properties for the component
|
|
11134
|
-
gt(
|
|
11217
|
+
gt(ua, "properties", {
|
|
11135
11218
|
layer: { attribute: !1 },
|
|
11136
11219
|
unstyled: { type: Boolean },
|
|
11137
11220
|
noShadow: { type: Boolean },
|
|
@@ -11139,10 +11222,10 @@ gt(ca, "properties", {
|
|
|
11139
11222
|
});
|
|
11140
11223
|
customElements.define(
|
|
11141
11224
|
"eox-layercontrol-layerconfig",
|
|
11142
|
-
|
|
11225
|
+
ua
|
|
11143
11226
|
);
|
|
11144
11227
|
var Ei, bs, ys;
|
|
11145
|
-
class
|
|
11228
|
+
class fa extends Vt {
|
|
11146
11229
|
constructor() {
|
|
11147
11230
|
super();
|
|
11148
11231
|
/** @param {number} index */
|
|
@@ -11262,15 +11345,15 @@ class pa extends Vt {
|
|
|
11262
11345
|
}
|
|
11263
11346
|
}
|
|
11264
11347
|
Ei = new WeakMap(), bs = new WeakMap(), ys = new WeakMap(), // Define static properties for the component
|
|
11265
|
-
gt(
|
|
11348
|
+
gt(fa, "properties", {
|
|
11266
11349
|
actions: { attribute: !1 },
|
|
11267
11350
|
selectedTab: { state: !0 },
|
|
11268
11351
|
tabs: { attribute: !1 },
|
|
11269
11352
|
unstyled: { type: Boolean },
|
|
11270
11353
|
noShadow: { type: Boolean }
|
|
11271
11354
|
});
|
|
11272
|
-
customElements.define("eox-layercontrol-tabs",
|
|
11273
|
-
const
|
|
11355
|
+
customElements.define("eox-layercontrol-tabs", fa);
|
|
11356
|
+
const kp = `
|
|
11274
11357
|
button,
|
|
11275
11358
|
.button {
|
|
11276
11359
|
/* TODO: why does this only work here and not from :root? */
|
|
@@ -11381,13 +11464,13 @@ button.smallest.icon::before {
|
|
|
11381
11464
|
}
|
|
11382
11465
|
`;
|
|
11383
11466
|
var _s, vs;
|
|
11384
|
-
class
|
|
11467
|
+
class ma extends Vt {
|
|
11385
11468
|
constructor() {
|
|
11386
11469
|
super();
|
|
11387
11470
|
// Initializes '_removeButton' invoking 'removeButton' function with 'this' context.
|
|
11388
|
-
gt(this, "_removeButton", () =>
|
|
11471
|
+
gt(this, "_removeButton", () => kh(this));
|
|
11389
11472
|
// Initializes '_sortButton' invoking 'sortButton' function with 'unstyled' property as a parameter.
|
|
11390
|
-
gt(this, "_sortButton", () =>
|
|
11473
|
+
gt(this, "_sortButton", () => Sh(this.unstyled));
|
|
11391
11474
|
/**
|
|
11392
11475
|
* Initializes '_button' as a function accepting 'tool' parameter to generate a Button.
|
|
11393
11476
|
* Uses 'this.unstyled' as a context parameter for Button generation.
|
|
@@ -11395,10 +11478,10 @@ class fa extends Vt {
|
|
|
11395
11478
|
* @param {string} tool - Tool parameter for Button generation.
|
|
11396
11479
|
* @returns {import("lit").HTMLTemplateResult} - The generated Button element.
|
|
11397
11480
|
*/
|
|
11398
|
-
gt(this, "_button", (e) =>
|
|
11481
|
+
gt(this, "_button", (e) => Ah(e, this.unstyled));
|
|
11399
11482
|
U(this, _s, "");
|
|
11400
11483
|
U(this, vs, `
|
|
11401
|
-
${
|
|
11484
|
+
${kp}
|
|
11402
11485
|
${oa}
|
|
11403
11486
|
${tn}
|
|
11404
11487
|
${aa}
|
|
@@ -11504,7 +11587,7 @@ class fa extends Vt {
|
|
|
11504
11587
|
}
|
|
11505
11588
|
render() {
|
|
11506
11589
|
var l;
|
|
11507
|
-
const e =
|
|
11590
|
+
const e = Eh(this.tools, this.layer), i = Lh(this.tools, this.layer), s = this[`_${e == null ? void 0 : e[0]}Button`] ? (
|
|
11508
11591
|
// @ts-ignore
|
|
11509
11592
|
this[`_${e == null ? void 0 : e[0]}Button`]()
|
|
11510
11593
|
) : et, r = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", o = e == null ? void 0 : e.length, a = i == null ? void 0 : i.length;
|
|
@@ -11543,7 +11626,7 @@ class fa extends Vt {
|
|
|
11543
11626
|
${ts(i, (h) => this._button(h))}
|
|
11544
11627
|
|
|
11545
11628
|
<div slot="info-content">
|
|
11546
|
-
${
|
|
11629
|
+
${Th(this.layer.get("description"))}
|
|
11547
11630
|
</div>
|
|
11548
11631
|
<div slot="opacity-content">
|
|
11549
11632
|
<!-- Input for opacity -->
|
|
@@ -11580,7 +11663,7 @@ class fa extends Vt {
|
|
|
11580
11663
|
}
|
|
11581
11664
|
}
|
|
11582
11665
|
_s = new WeakMap(), vs = new WeakMap(), // Define static properties for the component
|
|
11583
|
-
gt(
|
|
11666
|
+
gt(ma, "properties", {
|
|
11584
11667
|
layer: { attribute: !1 },
|
|
11585
11668
|
tools: { attribute: !1 },
|
|
11586
11669
|
unstyled: { type: Boolean },
|
|
@@ -11588,11 +11671,11 @@ gt(fa, "properties", {
|
|
|
11588
11671
|
});
|
|
11589
11672
|
customElements.define(
|
|
11590
11673
|
"eox-layercontrol-layer-tools",
|
|
11591
|
-
|
|
11674
|
+
ma
|
|
11592
11675
|
);
|
|
11593
|
-
const
|
|
11676
|
+
const Sp = (n) => {
|
|
11594
11677
|
const t = () => {
|
|
11595
|
-
const e =
|
|
11678
|
+
const e = wh(
|
|
11596
11679
|
n.layer,
|
|
11597
11680
|
n.map,
|
|
11598
11681
|
n.showLayerZoomState
|
|
@@ -11606,7 +11689,7 @@ const lp = (n) => {
|
|
|
11606
11689
|
n.layer,
|
|
11607
11690
|
n.showLayerZoomState
|
|
11608
11691
|
) && (t(), n.map.getView().on("change:resolution", () => t()));
|
|
11609
|
-
},
|
|
11692
|
+
}, Tp = (n, t) => {
|
|
11610
11693
|
const e = t.layer;
|
|
11611
11694
|
e.setVisible(n.target.checked), n.target.checked && e.get("layerControlExclusive") && t.parentNode.parentNode.querySelectorAll(
|
|
11612
11695
|
"li > eox-layercontrol-layer"
|
|
@@ -11617,8 +11700,8 @@ const lp = (n) => {
|
|
|
11617
11700
|
new CustomEvent("changed", { bubbles: !0 })
|
|
11618
11701
|
), t.requestUpdate();
|
|
11619
11702
|
};
|
|
11620
|
-
var Xe, es, ws,
|
|
11621
|
-
class
|
|
11703
|
+
var Xe, es, ws, ba, xs, Cs;
|
|
11704
|
+
class ga extends Vt {
|
|
11622
11705
|
constructor() {
|
|
11623
11706
|
super();
|
|
11624
11707
|
/**
|
|
@@ -11696,7 +11779,7 @@ class ma extends Vt {
|
|
|
11696
11779
|
* and register "change:resolution" ones at the beginning if `showLayerZoomState` is present
|
|
11697
11780
|
*/
|
|
11698
11781
|
firstUpdated() {
|
|
11699
|
-
|
|
11782
|
+
Sp(this);
|
|
11700
11783
|
}
|
|
11701
11784
|
/**
|
|
11702
11785
|
* Renders layer controls and tools with conditional display based on certain properties.
|
|
@@ -11721,7 +11804,7 @@ class ma extends Vt {
|
|
|
11721
11804
|
<input
|
|
11722
11805
|
type=${o}
|
|
11723
11806
|
.checked=${Ho(e)}
|
|
11724
|
-
@click=${xt(this, ws,
|
|
11807
|
+
@click=${xt(this, ws, ba)}
|
|
11725
11808
|
/>
|
|
11726
11809
|
|
|
11727
11810
|
<!-- Layer title -->
|
|
@@ -11748,10 +11831,10 @@ class ma extends Vt {
|
|
|
11748
11831
|
Xe = new WeakSet(), es = function(e) {
|
|
11749
11832
|
var i;
|
|
11750
11833
|
return (i = this.layer) == null ? void 0 : i.get(e);
|
|
11751
|
-
}, ws = new WeakSet(),
|
|
11752
|
-
|
|
11834
|
+
}, ws = new WeakSet(), ba = function(e) {
|
|
11835
|
+
Tp(e, this);
|
|
11753
11836
|
}, xs = new WeakMap(), Cs = new WeakMap(), // Define static properties for the component
|
|
11754
|
-
gt(
|
|
11837
|
+
gt(ga, "properties", {
|
|
11755
11838
|
layer: { attribute: !1 },
|
|
11756
11839
|
map: { attribute: !1, state: !0 },
|
|
11757
11840
|
titleProperty: { attribute: "title-property", type: String },
|
|
@@ -11760,9 +11843,9 @@ gt(ma, "properties", {
|
|
|
11760
11843
|
unstyled: { type: Boolean },
|
|
11761
11844
|
noShadow: { type: Boolean }
|
|
11762
11845
|
});
|
|
11763
|
-
customElements.define("eox-layercontrol-layer",
|
|
11846
|
+
customElements.define("eox-layercontrol-layer", ga);
|
|
11764
11847
|
var Es, Ls;
|
|
11765
|
-
class
|
|
11848
|
+
class ya extends Vt {
|
|
11766
11849
|
constructor() {
|
|
11767
11850
|
super();
|
|
11768
11851
|
U(this, Es, "");
|
|
@@ -11855,7 +11938,7 @@ class ba extends Vt {
|
|
|
11855
11938
|
}
|
|
11856
11939
|
}
|
|
11857
11940
|
Es = new WeakMap(), Ls = new WeakMap(), // Define static properties for the component
|
|
11858
|
-
gt(
|
|
11941
|
+
gt(ya, "properties", {
|
|
11859
11942
|
group: { attribute: !1 },
|
|
11860
11943
|
idProperty: { attribute: "id-property" },
|
|
11861
11944
|
map: { attribute: !1, state: !0 },
|
|
@@ -11867,102 +11950,21 @@ gt(ba, "properties", {
|
|
|
11867
11950
|
});
|
|
11868
11951
|
customElements.define(
|
|
11869
11952
|
"eox-layercontrol-layer-group",
|
|
11870
|
-
|
|
11953
|
+
ya
|
|
11871
11954
|
);
|
|
11872
|
-
const
|
|
11955
|
+
const jp = (n) => {
|
|
11873
11956
|
const { layers: t, idProperty: e, titleProperty: i, renderRoot: s } = n;
|
|
11874
11957
|
if (t) {
|
|
11875
11958
|
const r = s.querySelector("ul");
|
|
11876
|
-
|
|
11959
|
+
vh(
|
|
11877
11960
|
t,
|
|
11878
11961
|
e,
|
|
11879
11962
|
i,
|
|
11880
11963
|
n
|
|
11881
|
-
),
|
|
11882
|
-
}
|
|
11883
|
-
};
|
|
11884
|
-
var Zi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
11885
|
-
function cp(n) {
|
|
11886
|
-
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
11887
|
-
}
|
|
11888
|
-
var up = "Expected a function", Jn = NaN, pp = "[object Symbol]", fp = /^\s+|\s+$/g, mp = /^[-+]0x[0-9a-f]+$/i, gp = /^0b[01]+$/i, bp = /^0o[0-7]+$/i, yp = parseInt, _p = typeof Zi == "object" && Zi && Zi.Object === Object && Zi, vp = typeof self == "object" && self && self.Object === Object && self, wp = _p || vp || Function("return this")(), xp = Object.prototype, Cp = xp.toString, Ep = Math.max, Lp = Math.min, Pr = function() {
|
|
11889
|
-
return wp.Date.now();
|
|
11890
|
-
};
|
|
11891
|
-
function Ap(n, t, e) {
|
|
11892
|
-
var i, s, r, o, a, l, d = 0, h = !1, u = !1, g = !0;
|
|
11893
|
-
if (typeof n != "function")
|
|
11894
|
-
throw new TypeError(up);
|
|
11895
|
-
t = Qn(t) || 0, Mr(e) && (h = !!e.leading, u = "maxWait" in e, r = u ? Ep(Qn(e.maxWait) || 0, t) : r, g = "trailing" in e ? !!e.trailing : g);
|
|
11896
|
-
function m(H) {
|
|
11897
|
-
var lt = i, $t = s;
|
|
11898
|
-
return i = s = void 0, d = H, o = n.apply($t, lt), o;
|
|
11899
|
-
}
|
|
11900
|
-
function y(H) {
|
|
11901
|
-
return d = H, a = setTimeout(Q, t), h ? m(H) : o;
|
|
11902
|
-
}
|
|
11903
|
-
function w(H) {
|
|
11904
|
-
var lt = H - l, $t = H - d, rt = t - lt;
|
|
11905
|
-
return u ? Lp(rt, r - $t) : rt;
|
|
11906
|
-
}
|
|
11907
|
-
function A(H) {
|
|
11908
|
-
var lt = H - l, $t = H - d;
|
|
11909
|
-
return l === void 0 || lt >= t || lt < 0 || u && $t >= r;
|
|
11910
|
-
}
|
|
11911
|
-
function Q() {
|
|
11912
|
-
var H = Pr();
|
|
11913
|
-
if (A(H))
|
|
11914
|
-
return Z(H);
|
|
11915
|
-
a = setTimeout(Q, w(H));
|
|
11916
|
-
}
|
|
11917
|
-
function Z(H) {
|
|
11918
|
-
return a = void 0, g && i ? m(H) : (i = s = void 0, o);
|
|
11919
|
-
}
|
|
11920
|
-
function ft() {
|
|
11921
|
-
a !== void 0 && clearTimeout(a), d = 0, i = l = s = a = void 0;
|
|
11922
|
-
}
|
|
11923
|
-
function ht() {
|
|
11924
|
-
return a === void 0 ? o : Z(Pr());
|
|
11925
|
-
}
|
|
11926
|
-
function Ct() {
|
|
11927
|
-
var H = Pr(), lt = A(H);
|
|
11928
|
-
if (i = arguments, s = this, l = H, lt) {
|
|
11929
|
-
if (a === void 0)
|
|
11930
|
-
return y(l);
|
|
11931
|
-
if (u)
|
|
11932
|
-
return a = setTimeout(Q, t), m(l);
|
|
11933
|
-
}
|
|
11934
|
-
return a === void 0 && (a = setTimeout(Q, t)), o;
|
|
11964
|
+
), _h(r, t, e, n);
|
|
11935
11965
|
}
|
|
11936
|
-
|
|
11937
|
-
}
|
|
11938
|
-
function Mr(n) {
|
|
11939
|
-
var t = typeof n;
|
|
11940
|
-
return !!n && (t == "object" || t == "function");
|
|
11941
|
-
}
|
|
11942
|
-
function kp(n) {
|
|
11943
|
-
return !!n && typeof n == "object";
|
|
11944
|
-
}
|
|
11945
|
-
function Sp(n) {
|
|
11946
|
-
return typeof n == "symbol" || kp(n) && Cp.call(n) == pp;
|
|
11947
|
-
}
|
|
11948
|
-
function Qn(n) {
|
|
11949
|
-
if (typeof n == "number")
|
|
11950
|
-
return n;
|
|
11951
|
-
if (Sp(n))
|
|
11952
|
-
return Jn;
|
|
11953
|
-
if (Mr(n)) {
|
|
11954
|
-
var t = typeof n.valueOf == "function" ? n.valueOf() : n;
|
|
11955
|
-
n = Mr(t) ? t + "" : t;
|
|
11956
|
-
}
|
|
11957
|
-
if (typeof n != "string")
|
|
11958
|
-
return n === 0 ? n : +n;
|
|
11959
|
-
n = n.replace(fp, "");
|
|
11960
|
-
var e = gp.test(n);
|
|
11961
|
-
return e || bp.test(n) ? yp(n.slice(2), e ? 2 : 8) : mp.test(n) ? Jn : +n;
|
|
11962
|
-
}
|
|
11963
|
-
var Tp = Ap;
|
|
11964
|
-
const jp = /* @__PURE__ */ cp(Tp), $p = (n) => {
|
|
11965
|
-
const { layers: t } = n, e = jp(() => {
|
|
11966
|
+
}, $p = (n) => {
|
|
11967
|
+
const { layers: t } = n, e = ca(() => {
|
|
11966
11968
|
n.requestUpdate(), n.dispatchEvent(
|
|
11967
11969
|
new CustomEvent("changed", { bubbles: !0 })
|
|
11968
11970
|
);
|
|
@@ -11970,7 +11972,7 @@ const jp = /* @__PURE__ */ cp(Tp), $p = (n) => {
|
|
|
11970
11972
|
t && (t.hasListener("change:length") && (t == null || t.un("change:length", i)), t.on("change:length", i));
|
|
11971
11973
|
};
|
|
11972
11974
|
var As, ks;
|
|
11973
|
-
class
|
|
11975
|
+
class _a extends Vt {
|
|
11974
11976
|
constructor() {
|
|
11975
11977
|
super();
|
|
11976
11978
|
U(this, As, "");
|
|
@@ -12009,7 +12011,7 @@ class ya extends Vt {
|
|
|
12009
12011
|
* Executes specific logic after the initial render of the component.
|
|
12010
12012
|
*/
|
|
12011
12013
|
firstUpdated() {
|
|
12012
|
-
|
|
12014
|
+
jp(this);
|
|
12013
12015
|
}
|
|
12014
12016
|
/**
|
|
12015
12017
|
* Executes logic after subsequent updates of the component.
|
|
@@ -12038,13 +12040,13 @@ class ya extends Vt {
|
|
|
12038
12040
|
${ie(
|
|
12039
12041
|
this.layers,
|
|
12040
12042
|
() => q`
|
|
12041
|
-
${
|
|
12043
|
+
${Yl(
|
|
12042
12044
|
e,
|
|
12043
12045
|
(i) => i,
|
|
12044
12046
|
(i) => q`
|
|
12045
12047
|
<li
|
|
12046
12048
|
data-layer="${i.get(this.idProperty)}"
|
|
12047
|
-
data-type="${
|
|
12049
|
+
data-type="${xh(i, this.map)}"
|
|
12048
12050
|
>
|
|
12049
12051
|
${/** Checks if the layer is a group or individual layer and renders accordingly */
|
|
12050
12052
|
/** @type {import("ol/layer").Group} */
|
|
@@ -12083,7 +12085,7 @@ class ya extends Vt {
|
|
|
12083
12085
|
}
|
|
12084
12086
|
}
|
|
12085
12087
|
As = new WeakMap(), ks = new WeakMap(), // Define static properties for the component
|
|
12086
|
-
gt(
|
|
12088
|
+
gt(_a, "properties", {
|
|
12087
12089
|
idProperty: { attribute: "id-property" },
|
|
12088
12090
|
layers: { attribute: !1 },
|
|
12089
12091
|
map: { attribute: !1, state: !0 },
|
|
@@ -12093,7 +12095,7 @@ gt(ya, "properties", {
|
|
|
12093
12095
|
unstyled: { type: Boolean },
|
|
12094
12096
|
noShadow: { type: Boolean }
|
|
12095
12097
|
});
|
|
12096
|
-
customElements.define("eox-layercontrol-layer-list",
|
|
12098
|
+
customElements.define("eox-layercontrol-layer-list", _a);
|
|
12097
12099
|
const Pp = (n) => {
|
|
12098
12100
|
const t = n.querySelector(
|
|
12099
12101
|
"select[name=optional]"
|
|
@@ -12116,8 +12118,8 @@ const Pp = (n) => {
|
|
|
12116
12118
|
)
|
|
12117
12119
|
), n.requestUpdate();
|
|
12118
12120
|
};
|
|
12119
|
-
var Ss,
|
|
12120
|
-
class
|
|
12121
|
+
var Ss, wa;
|
|
12122
|
+
class va extends Vt {
|
|
12121
12123
|
constructor() {
|
|
12122
12124
|
super();
|
|
12123
12125
|
/**
|
|
@@ -12163,14 +12165,14 @@ class _a extends Vt {
|
|
|
12163
12165
|
</select>
|
|
12164
12166
|
|
|
12165
12167
|
<!-- Button to handle adding layers -->
|
|
12166
|
-
<button @click="${xt(this, Ss,
|
|
12168
|
+
<button @click="${xt(this, Ss, wa)}">add</button>
|
|
12167
12169
|
`;
|
|
12168
12170
|
}
|
|
12169
12171
|
}
|
|
12170
|
-
Ss = new WeakSet(),
|
|
12172
|
+
Ss = new WeakSet(), wa = function() {
|
|
12171
12173
|
Pp(this);
|
|
12172
12174
|
}, // Define static properties for the component
|
|
12173
|
-
gt(
|
|
12175
|
+
gt(va, "properties", {
|
|
12174
12176
|
idProperty: { attribute: "id-property" },
|
|
12175
12177
|
layers: { attribute: !1 },
|
|
12176
12178
|
titleProperty: { attribute: "title-property", type: String },
|
|
@@ -12179,7 +12181,7 @@ gt(_a, "properties", {
|
|
|
12179
12181
|
});
|
|
12180
12182
|
customElements.define(
|
|
12181
12183
|
"eox-layercontrol-optional-list",
|
|
12182
|
-
|
|
12184
|
+
va
|
|
12183
12185
|
);
|
|
12184
12186
|
const Op = (n, t) => {
|
|
12185
12187
|
t.jsonInput = n.target.value, t.requestUpdate();
|
|
@@ -12200,7 +12202,7 @@ async function Bp(n) {
|
|
|
12200
12202
|
if (Zr(t) === "XYZ")
|
|
12201
12203
|
return { Name: t };
|
|
12202
12204
|
try {
|
|
12203
|
-
const e = await
|
|
12205
|
+
const e = await Vd(t);
|
|
12204
12206
|
n.wmsCapabilities = e;
|
|
12205
12207
|
} catch {
|
|
12206
12208
|
} finally {
|
|
@@ -12230,8 +12232,8 @@ const Rp = (n, t) => {
|
|
|
12230
12232
|
}, Dp = (n, t) => {
|
|
12231
12233
|
t.open = n || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
|
|
12232
12234
|
};
|
|
12233
|
-
var Ts,
|
|
12234
|
-
class
|
|
12235
|
+
var Ts, Ca, js, Ea, Li, Hr, $s, La, Ps, Aa, Je, is, Os, Is;
|
|
12236
|
+
class xa extends Vt {
|
|
12235
12237
|
constructor() {
|
|
12236
12238
|
super();
|
|
12237
12239
|
/**
|
|
@@ -12454,7 +12456,7 @@ class wa extends Vt {
|
|
|
12454
12456
|
* Handles input fields, search, and addition of layers.
|
|
12455
12457
|
*/
|
|
12456
12458
|
render() {
|
|
12457
|
-
const e = this.open ? "open" : "close", i = this.open === "url", s = this.open === "json", r = !
|
|
12459
|
+
const e = this.open ? "open" : "close", i = this.open === "url", s = this.open === "json", r = !Fd(this.urlInput) || this.searchLoad ? !0 : et;
|
|
12458
12460
|
return q`
|
|
12459
12461
|
<style>
|
|
12460
12462
|
${st(this, Os)}
|
|
@@ -12495,14 +12497,14 @@ class wa extends Vt {
|
|
|
12495
12497
|
class="add-url"
|
|
12496
12498
|
placeholder="Add URL (WMS/XYZ)"
|
|
12497
12499
|
.value="${this.urlInput}"
|
|
12498
|
-
@input=${xt(this, Ts,
|
|
12500
|
+
@input=${xt(this, Ts, Ca)}
|
|
12499
12501
|
>
|
|
12500
12502
|
</input>
|
|
12501
12503
|
<!-- Search button for URL -->
|
|
12502
12504
|
<button
|
|
12503
12505
|
class="search-icon"
|
|
12504
12506
|
disabled=${r}
|
|
12505
|
-
@click=${xt(this, js,
|
|
12507
|
+
@click=${xt(this, js, Ea)}
|
|
12506
12508
|
>
|
|
12507
12509
|
${this.unstyled ? "Search" : ""}
|
|
12508
12510
|
</button>
|
|
@@ -12536,15 +12538,15 @@ class wa extends Vt {
|
|
|
12536
12538
|
<textarea
|
|
12537
12539
|
class="add-layer-input"
|
|
12538
12540
|
placeholder="Please put a valid eox-map layer JSON."
|
|
12539
|
-
@input=${xt(this, Ps,
|
|
12541
|
+
@input=${xt(this, Ps, Aa)}
|
|
12540
12542
|
.value=${this.jsonInput}
|
|
12541
12543
|
></textarea>
|
|
12542
12544
|
|
|
12543
12545
|
<!-- Button to add JSON layer -->
|
|
12544
12546
|
<button
|
|
12545
12547
|
class="add-layer-icon json-add-layer"
|
|
12546
|
-
disabled=${
|
|
12547
|
-
@click=${xt(this, $s,
|
|
12548
|
+
disabled=${zd(this.jsonInput) ? et : !0}
|
|
12549
|
+
@click=${xt(this, $s, La)}
|
|
12548
12550
|
>
|
|
12549
12551
|
${this.unstyled ? "Add JSON" : ""}
|
|
12550
12552
|
</button>
|
|
@@ -12554,26 +12556,26 @@ class wa extends Vt {
|
|
|
12554
12556
|
`;
|
|
12555
12557
|
}
|
|
12556
12558
|
}
|
|
12557
|
-
Ts = new WeakSet(),
|
|
12559
|
+
Ts = new WeakSet(), Ca = function(e) {
|
|
12558
12560
|
Ip(e, this);
|
|
12559
|
-
}, js = new WeakSet(),
|
|
12561
|
+
}, js = new WeakSet(), Ea = async function() {
|
|
12560
12562
|
const e = await Bp(this);
|
|
12561
12563
|
e && xt(this, Li, Hr).call(this, e);
|
|
12562
12564
|
}, Li = new WeakSet(), Hr = function(e) {
|
|
12563
12565
|
Rp(e, this), Kn(this);
|
|
12564
|
-
}, $s = new WeakSet(),
|
|
12566
|
+
}, $s = new WeakSet(), La = function() {
|
|
12565
12567
|
Kn(this);
|
|
12566
|
-
}, Ps = new WeakSet(),
|
|
12568
|
+
}, Ps = new WeakSet(), Aa = function(e) {
|
|
12567
12569
|
Op(e, this);
|
|
12568
12570
|
}, Je = new WeakSet(), is = function(e) {
|
|
12569
12571
|
Dp(e, this);
|
|
12570
12572
|
}, Os = new WeakMap(), Is = new WeakMap(), // Define static properties for the component
|
|
12571
|
-
gt(
|
|
12573
|
+
gt(xa, "properties", {
|
|
12572
12574
|
eoxMap: { attribute: !1, state: !0 },
|
|
12573
12575
|
unstyled: { type: Boolean },
|
|
12574
12576
|
noShadow: { type: Boolean }
|
|
12575
12577
|
});
|
|
12576
|
-
customElements.define("eox-layercontrol-add-layers",
|
|
12578
|
+
customElements.define("eox-layercontrol-add-layers", xa);
|
|
12577
12579
|
const Np = (n, t) => {
|
|
12578
12580
|
if (t.requestUpdate(), n.target.tagName === "EOX-LAYERCONTROL-LAYER-TOOLS") {
|
|
12579
12581
|
const e = t.renderRoot.querySelector(
|
|
@@ -12588,8 +12590,8 @@ const Np = (n, t) => {
|
|
|
12588
12590
|
const t = document.querySelector(n.for);
|
|
12589
12591
|
t && t.map !== n.map && (n.map = t.map);
|
|
12590
12592
|
};
|
|
12591
|
-
var Qe, Bs,
|
|
12592
|
-
class
|
|
12593
|
+
var Qe, Bs, Sa, Rs;
|
|
12594
|
+
class ka extends Vt {
|
|
12593
12595
|
// Constructor to set default values for properties
|
|
12594
12596
|
constructor() {
|
|
12595
12597
|
super();
|
|
@@ -12656,7 +12658,7 @@ class Aa extends Vt {
|
|
|
12656
12658
|
.showLayerZoomState=${this.showLayerZoomState}
|
|
12657
12659
|
.tools=${this.tools}
|
|
12658
12660
|
.unstyled=${this.unstyled}
|
|
12659
|
-
@changed=${xt(this, Bs,
|
|
12661
|
+
@changed=${xt(this, Bs, Sa)}
|
|
12660
12662
|
></eox-layercontrol-layer-list>
|
|
12661
12663
|
`
|
|
12662
12664
|
)}
|
|
@@ -12677,10 +12679,10 @@ class Aa extends Vt {
|
|
|
12677
12679
|
`;
|
|
12678
12680
|
}
|
|
12679
12681
|
}
|
|
12680
|
-
Qe = new WeakMap(), Bs = new WeakSet(),
|
|
12682
|
+
Qe = new WeakMap(), Bs = new WeakSet(), Sa = function(e) {
|
|
12681
12683
|
Np(e, this);
|
|
12682
12684
|
}, Rs = new WeakMap(), // Define static properties for the component
|
|
12683
|
-
gt(
|
|
12685
|
+
gt(ka, "properties", {
|
|
12684
12686
|
for: { type: String },
|
|
12685
12687
|
idProperty: { attribute: "id-property" },
|
|
12686
12688
|
map: { attribute: !1, state: !0 },
|
|
@@ -12691,7 +12693,7 @@ gt(Aa, "properties", {
|
|
|
12691
12693
|
unstyled: { type: Boolean },
|
|
12692
12694
|
styleOverride: { type: String }
|
|
12693
12695
|
});
|
|
12694
|
-
customElements.define("eox-layercontrol",
|
|
12696
|
+
customElements.define("eox-layercontrol", ka);
|
|
12695
12697
|
export {
|
|
12696
|
-
|
|
12698
|
+
ka as EOxLayerControl
|
|
12697
12699
|
};
|