@eox/itemfilter 0.6.0 → 0.6.2
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-itemfilter.js +148 -123
- package/dist/eox-itemfilter.umd.cjs +38 -24
- package/package.json +1 -1
- package/test/testItems.json +12 -1
package/dist/eox-itemfilter.js
CHANGED
|
@@ -69,7 +69,7 @@ const jt = window, Si = jt.trustedTypes, Ls = Si ? Si.emptyScript : "", ki = jt.
|
|
|
69
69
|
}
|
|
70
70
|
return t;
|
|
71
71
|
} }, Qi = (r, e) => e !== r && (e == e || r == r), wr = { attribute: !0, type: String, converter: Lr, reflect: !1, hasChanged: Qi }, Or = "finalized";
|
|
72
|
-
let
|
|
72
|
+
let ut = class extends HTMLElement {
|
|
73
73
|
constructor() {
|
|
74
74
|
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this.u();
|
|
75
75
|
}
|
|
@@ -248,25 +248,25 @@ let lt = class extends HTMLElement {
|
|
|
248
248
|
firstUpdated(e) {
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
|
|
251
|
+
ut[Or] = !0, ut.elementProperties = /* @__PURE__ */ new Map(), ut.elementStyles = [], ut.shadowRootOptions = { mode: "open" }, ki == null || ki({ ReactiveElement: ut }), ((xr = jt.reactiveElementVersions) !== null && xr !== void 0 ? xr : jt.reactiveElementVersions = []).push("1.6.2");
|
|
252
252
|
/**
|
|
253
253
|
* @license
|
|
254
254
|
* Copyright 2017 Google LLC
|
|
255
255
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
256
256
|
*/
|
|
257
257
|
var _r;
|
|
258
|
-
const Ut = window,
|
|
259
|
-
\f\r]`,
|
|
260
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ci = /'/g, Ti = /"/g, rn = /^(?:script|style|textarea|title)$/i, Ts = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }),
|
|
258
|
+
const Ut = window, dt = Ut.trustedTypes, Pi = dt ? dt.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Cr = "$lit$", Ue = `lit$${(Math.random() + "").slice(9)}$`, en = "?" + Ue, Os = `<${en}>`, Ze = document, wt = () => Ze.createComment(""), _t = (r) => r === null || typeof r != "object" && typeof r != "function", tn = Array.isArray, Cs = (r) => tn(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Mr = `[
|
|
259
|
+
\f\r]`, xt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Li = /-->/g, Oi = />/g, Ge = RegExp(`>|${Mr}(?:([^\\s"'>=/]+)(${Mr}*=${Mr}*(?:[^
|
|
260
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ci = /'/g, Ti = /"/g, rn = /^(?:script|style|textarea|title)$/i, Ts = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), ge = Ts(1), Qe = Symbol.for("lit-noChange"), ce = Symbol.for("lit-nothing"), Ri = /* @__PURE__ */ new WeakMap(), Je = Ze.createTreeWalker(Ze, 129, null, !1), Rs = (r, e) => {
|
|
261
261
|
const t = r.length - 1, i = [];
|
|
262
|
-
let n, s = e === 2 ? "<svg>" : "", o =
|
|
262
|
+
let n, s = e === 2 ? "<svg>" : "", o = xt;
|
|
263
263
|
for (let l = 0; l < t; l++) {
|
|
264
264
|
const c = r[l];
|
|
265
265
|
let m, g, _ = -1, E = 0;
|
|
266
266
|
for (; E < c.length && (o.lastIndex = E, g = o.exec(c), g !== null); )
|
|
267
|
-
E = o.lastIndex, o ===
|
|
267
|
+
E = o.lastIndex, o === xt ? g[1] === "!--" ? o = Li : g[1] !== void 0 ? o = Oi : g[2] !== void 0 ? (rn.test(g[2]) && (n = RegExp("</" + g[2], "g")), o = Ge) : g[3] !== void 0 && (o = Ge) : o === Ge ? g[0] === ">" ? (o = n ?? xt, _ = -1) : g[1] === void 0 ? _ = -2 : (_ = o.lastIndex - g[2].length, m = g[1], o = g[3] === void 0 ? Ge : g[3] === '"' ? Ti : Ci) : o === Ti || o === Ci ? o = Ge : o === Li || o === Oi ? o = xt : (o = Ge, n = void 0);
|
|
268
268
|
const I = o === Ge && r[l + 1].startsWith("/>") ? " " : "";
|
|
269
|
-
s += o ===
|
|
269
|
+
s += o === xt ? c + Os : _ >= 0 ? (i.push(m), c.slice(0, _) + Cr + c.slice(_) + Ue + I) : c + Ue + (_ === -2 ? (i.push(void 0), l) : I);
|
|
270
270
|
}
|
|
271
271
|
const u = s + (r[t] || "<?>") + (e === 2 ? "</svg>" : "");
|
|
272
272
|
if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
|
|
@@ -302,7 +302,7 @@ class Mt {
|
|
|
302
302
|
if (rn.test(n.tagName)) {
|
|
303
303
|
const g = n.textContent.split(Ue), _ = g.length - 1;
|
|
304
304
|
if (_ > 0) {
|
|
305
|
-
n.textContent =
|
|
305
|
+
n.textContent = dt ? dt.emptyScript : "";
|
|
306
306
|
for (let E = 0; E < _; E++)
|
|
307
307
|
n.append(g[E], wt()), Je.nextNode(), l.push({ type: 2, index: ++s });
|
|
308
308
|
n.append(g[_], wt());
|
|
@@ -324,13 +324,13 @@ class Mt {
|
|
|
324
324
|
return i.innerHTML = e, i;
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function ft(r, e, t = r, i) {
|
|
328
328
|
var n, s, o, u;
|
|
329
329
|
if (e === Qe)
|
|
330
330
|
return e;
|
|
331
331
|
let l = i !== void 0 ? (n = t._$Co) === null || n === void 0 ? void 0 : n[i] : t._$Cl;
|
|
332
332
|
const c = _t(e) ? void 0 : e._$litDirective$;
|
|
333
|
-
return (l == null ? void 0 : l.constructor) !== c && ((s = l == null ? void 0 : l._$AO) === null || s === void 0 || s.call(l, !1), c === void 0 ? l = void 0 : (l = new c(r), l._$AT(r, t, i)), i !== void 0 ? ((o = (u = t)._$Co) !== null && o !== void 0 ? o : u._$Co = [])[i] = l : t._$Cl = l), l !== void 0 && (e =
|
|
333
|
+
return (l == null ? void 0 : l.constructor) !== c && ((s = l == null ? void 0 : l._$AO) === null || s === void 0 || s.call(l, !1), c === void 0 ? l = void 0 : (l = new c(r), l._$AT(r, t, i)), i !== void 0 ? ((o = (u = t)._$Co) !== null && o !== void 0 ? o : u._$Co = [])[i] = l : t._$Cl = l), l !== void 0 && (e = ft(r, l._$AS(r, e.values), l, i)), e;
|
|
334
334
|
}
|
|
335
335
|
class Ds {
|
|
336
336
|
constructor(e, t) {
|
|
@@ -383,7 +383,7 @@ class Et {
|
|
|
383
383
|
return this._$AB;
|
|
384
384
|
}
|
|
385
385
|
_$AI(e, t = this) {
|
|
386
|
-
e =
|
|
386
|
+
e = ft(this, e, t), _t(e) ? e === ce || e == null || e === "" ? (this._$AH !== ce && this._$AR(), this._$AH = ce) : e !== this._$AH && e !== Qe && this._(e) : e._$litType$ !== void 0 ? this.g(e) : e.nodeType !== void 0 ? this.$(e) : Cs(e) ? this.T(e) : this._(e);
|
|
387
387
|
}
|
|
388
388
|
k(e) {
|
|
389
389
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -442,12 +442,12 @@ class qt {
|
|
|
442
442
|
const s = this.strings;
|
|
443
443
|
let o = !1;
|
|
444
444
|
if (s === void 0)
|
|
445
|
-
e =
|
|
445
|
+
e = ft(this, e, t, 0), o = !_t(e) || e !== this._$AH && e !== Qe, o && (this._$AH = e);
|
|
446
446
|
else {
|
|
447
447
|
const u = e;
|
|
448
448
|
let l, c;
|
|
449
449
|
for (e = s[0], l = 0; l < s.length - 1; l++)
|
|
450
|
-
c =
|
|
450
|
+
c = ft(this, u[i + l], t, l), c === Qe && (c = this._$AH[l]), o || (o = !_t(c) || c !== this._$AH[l]), c === ce ? e = ce : e !== ce && (e += (c ?? "") + s[l + 1]), this._$AH[l] = c;
|
|
451
451
|
}
|
|
452
452
|
o && !n && this.j(e);
|
|
453
453
|
}
|
|
@@ -463,7 +463,7 @@ class Is extends qt {
|
|
|
463
463
|
this.element[this.name] = e === ce ? void 0 : e;
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
const Ns =
|
|
466
|
+
const Ns = dt ? dt.emptyScript : "";
|
|
467
467
|
class Bs extends qt {
|
|
468
468
|
constructor() {
|
|
469
469
|
super(...arguments), this.type = 4;
|
|
@@ -478,7 +478,7 @@ class Fs extends qt {
|
|
|
478
478
|
}
|
|
479
479
|
_$AI(e, t = this) {
|
|
480
480
|
var i;
|
|
481
|
-
if ((e = (i =
|
|
481
|
+
if ((e = (i = ft(this, e, t, 0)) !== null && i !== void 0 ? i : ce) === Qe)
|
|
482
482
|
return;
|
|
483
483
|
const n = this._$AH, s = e === ce && n !== ce || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, o = e !== ce && (n === ce || s);
|
|
484
484
|
s && this.element.removeEventListener(this.name, this, n), o && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
@@ -496,7 +496,7 @@ class Hs {
|
|
|
496
496
|
return this._$AM._$AU;
|
|
497
497
|
}
|
|
498
498
|
_$AI(e) {
|
|
499
|
-
|
|
499
|
+
ft(this, e);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
const Di = Ut.litHtmlPolyfillSupport;
|
|
@@ -517,7 +517,7 @@ const Ys = (r, e, t) => {
|
|
|
517
517
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
518
518
|
*/
|
|
519
519
|
var Er, Ar;
|
|
520
|
-
class
|
|
520
|
+
class ht extends ut {
|
|
521
521
|
constructor() {
|
|
522
522
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
523
523
|
}
|
|
@@ -542,9 +542,9 @@ class ct extends lt {
|
|
|
542
542
|
return Qe;
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
|
-
|
|
545
|
+
ht.finalized = !0, ht._$litElement$ = !0, (Er = globalThis.litElementHydrateSupport) === null || Er === void 0 || Er.call(globalThis, { LitElement: ht });
|
|
546
546
|
const Ii = globalThis.litElementPolyfillSupport;
|
|
547
|
-
Ii == null || Ii({ LitElement:
|
|
547
|
+
Ii == null || Ii({ LitElement: ht });
|
|
548
548
|
((Ar = globalThis.litElementVersions) !== null && Ar !== void 0 ? Ar : globalThis.litElementVersions = []).push("3.3.2");
|
|
549
549
|
/**
|
|
550
550
|
* @license
|
|
@@ -602,7 +602,7 @@ function ot(r, e, t) {
|
|
|
602
602
|
* Copyright 2021 Google LLC
|
|
603
603
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
604
604
|
*/
|
|
605
|
-
function*
|
|
605
|
+
function* at(r, e) {
|
|
606
606
|
if (r !== void 0) {
|
|
607
607
|
let t = 0;
|
|
608
608
|
for (const i of r)
|
|
@@ -1527,7 +1527,7 @@ function To(r, e, {
|
|
|
1527
1527
|
}), u;
|
|
1528
1528
|
});
|
|
1529
1529
|
}
|
|
1530
|
-
class
|
|
1530
|
+
class vt {
|
|
1531
1531
|
constructor(e, t = {}, i) {
|
|
1532
1532
|
this.options = { ...W, ...t }, this.options.useExtendedSearch, this._keyStore = new io(this.options.keys), this.setCollection(e, i);
|
|
1533
1533
|
}
|
|
@@ -1664,13 +1664,13 @@ class gt {
|
|
|
1664
1664
|
return n;
|
|
1665
1665
|
}
|
|
1666
1666
|
}
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1667
|
+
vt.version = "6.6.2";
|
|
1668
|
+
vt.createIndex = un;
|
|
1669
|
+
vt.parseIndex = ho;
|
|
1670
|
+
vt.config = W;
|
|
1671
|
+
vt.parseQuery = fn;
|
|
1672
1672
|
So(Ao);
|
|
1673
|
-
var
|
|
1673
|
+
var ct = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1674
1674
|
function Wr(r) {
|
|
1675
1675
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
1676
1676
|
}
|
|
@@ -1701,7 +1701,7 @@ function Vr(r) {
|
|
|
1701
1701
|
});
|
|
1702
1702
|
}), t;
|
|
1703
1703
|
}
|
|
1704
|
-
var Ro = "Expected a function", Ui = 0 / 0, Do = "[object Symbol]", Io = /^\s+|\s+$/g, No = /^[-+]0x[0-9a-f]+$/i, Bo = /^0b[01]+$/i, Fo = /^0o[0-7]+$/i, Ho = parseInt, Yo = typeof
|
|
1704
|
+
var Ro = "Expected a function", Ui = 0 / 0, Do = "[object Symbol]", Io = /^\s+|\s+$/g, No = /^[-+]0x[0-9a-f]+$/i, Bo = /^0b[01]+$/i, Fo = /^0o[0-7]+$/i, Ho = parseInt, Yo = typeof ct == "object" && ct && ct.Object === Object && ct, jo = typeof self == "object" && self && self.Object === Object && self, Uo = Yo || jo || Function("return this")(), zo = Object.prototype, Xo = zo.toString, Wo = Math.max, Vo = Math.min, Pr = function() {
|
|
1705
1705
|
return Uo.Date.now();
|
|
1706
1706
|
};
|
|
1707
1707
|
function qo(r, e, t) {
|
|
@@ -1779,7 +1779,7 @@ function zi(r) {
|
|
|
1779
1779
|
var Jo = qo;
|
|
1780
1780
|
const Zo = /* @__PURE__ */ Wr(Jo);
|
|
1781
1781
|
(() => {
|
|
1782
|
-
var r = Object.defineProperty, e = Math.pow, t = (a, d, y) => d in a ? r(a, d, { enumerable: !0, configurable: !0, writable: !0, value: y }) : a[d] = y, i = (a, d, y) => (t(a, typeof d != "symbol" ? d + "" : d, y), y), n = (a, d) => ` ${d && d.length > 0 ? d.map((y) => `<link rel="stylesheet" href="${y}" />`).join("") : ""} <style> ${a} </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>`, s = ":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", u = "pointers-min-distance", l = "pointers-max-distance", c = "range-dragging", m = "data", g = "min", _ = "max", E = "step", I = "round", j = "type", ne = "theme", te = "rtl", f = "btt", p = "disabled", b = "keyboard-disabled", S = "mousewheel-disabled", w = "slider-width", M = "slider-height", P = "slider-radius", O = "slider-bg", D = "slider-bg-hover", V = "slider-bg-fill", ee = "pointer-width", L = "pointer-height", x = "pointer-radius", A = "pointer-bg", B = "pointer-bg-hover", k = "pointer-bg-focus", H = "pointer-shadow", X = "pointer-shadow-hover", Z = "pointer-shadow-focus", ae = "pointer-border", K = "pointer-border-hover",
|
|
1782
|
+
var r = Object.defineProperty, e = Math.pow, t = (a, d, y) => d in a ? r(a, d, { enumerable: !0, configurable: !0, writable: !0, value: y }) : a[d] = y, i = (a, d, y) => (t(a, typeof d != "symbol" ? d + "" : d, y), y), n = (a, d) => ` ${d && d.length > 0 ? d.map((y) => `<link rel="stylesheet" href="${y}" />`).join("") : ""} <style> ${a} </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>`, s = ":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", u = "pointers-min-distance", l = "pointers-max-distance", c = "range-dragging", m = "data", g = "min", _ = "max", E = "step", I = "round", j = "type", ne = "theme", te = "rtl", f = "btt", p = "disabled", b = "keyboard-disabled", S = "mousewheel-disabled", w = "slider-width", M = "slider-height", P = "slider-radius", O = "slider-bg", D = "slider-bg-hover", V = "slider-bg-fill", ee = "pointer-width", L = "pointer-height", x = "pointer-radius", A = "pointer-bg", B = "pointer-bg-hover", k = "pointer-bg-focus", H = "pointer-shadow", X = "pointer-shadow-hover", Z = "pointer-shadow-focus", ae = "pointer-border", K = "pointer-border-hover", ve = "pointer-border-focus", Le = "animate-onclick", Oe = "css-links", ye = "vertical", Ae = "horizontal", Re = (a, d, y, v, C) => {
|
|
1783
1783
|
let Y = d - a;
|
|
1784
1784
|
return Y === 0 ? y : (v - y) * (C - a) / Y + y;
|
|
1785
1785
|
}, ue = (a) => !isNaN(parseFloat(a)) && isFinite(a), se = (a, d) => ue(a) ? Number(a) : d, tt = (a, d) => d === 0 ? 0 : Math.round(a / d) * d, rt = (a, d = 1 / 0) => {
|
|
@@ -1804,13 +1804,13 @@ const Zo = /* @__PURE__ */ Wr(Jo);
|
|
|
1804
1804
|
v[`value${C + 1}`] = y[C];
|
|
1805
1805
|
a.dispatchEvent(new CustomEvent("change", { detail: v }));
|
|
1806
1806
|
}, Kt = (a, d, y) => {
|
|
1807
|
-
let v = 0, C, Y, q, T, R = !1, G = (z, le,
|
|
1807
|
+
let v = 0, C, Y, q, T, R = !1, G = (z, le, me, pe, he, de) => {
|
|
1808
1808
|
let we = v;
|
|
1809
|
-
|
|
1809
|
+
me !== void 0 && z > me && (z = me), le !== void 0 && z < le && (z = le), v = z;
|
|
1810
1810
|
let _e = v;
|
|
1811
1811
|
return (pe === ye && de || pe === Ae && he) && (_e = 100 - _e), pe === ye ? d.style.top = `${_e}%` : d.style.left = `${_e}%`, we !== v;
|
|
1812
|
-
}, Q = (z) => z === d || d.contains(z), F = (z, le,
|
|
1813
|
-
C = z, Y = le, q =
|
|
1812
|
+
}, Q = (z) => z === d || d.contains(z), F = (z, le, me, pe) => {
|
|
1813
|
+
C = z, Y = le, q = me, T = pe;
|
|
1814
1814
|
}, ie = (z) => {
|
|
1815
1815
|
R = z, d.classList.toggle("disabled", R), R ? d.setAttribute("aria-disabled", "true") : d.hasAttribute("aria-disabled") && d.removeAttribute("aria-disabled");
|
|
1816
1816
|
}, Se = (z, le) => {
|
|
@@ -1887,7 +1887,7 @@ const Zo = /* @__PURE__ */ Wr(Jo);
|
|
|
1887
1887
|
for (let C of y)
|
|
1888
1888
|
C.trim() !== "" && v.push(C.trim());
|
|
1889
1889
|
return v;
|
|
1890
|
-
}, ii = [[Fn, w, "sliderWidth", null], [Hn, M, "sliderHeight", null], [Yn, P, "sliderRadius", null], [jn, O, "sliderBg", null], [Un, D, "sliderBgHover", null], [zn, V, "sliderBgFill", null], [Xn, ee, "pointer#Width", /^pointer([0-9]*)-width$/], [Wn, L, "pointer#Height", /^pointer([0-9]*)-height$/], [Vn, x, "pointer#Radius", /^pointer([0-9]*)-radius$/], [qn, A, "pointer#Bg", /^pointer([0-9]*)-bg$/], [Gn, B, "pointer#BgHover", /^pointer([0-9]*)-bg-hover$/], [Kn, k, "pointer#BgFocus", /^pointer([0-9]*)-bg-focus$/], [Jn, H, "pointer#Shadow", /^pointer([0-9]*)-shadow$/], [Zn, X, "pointer#ShadowHover", /^pointer([0-9]*)-shadow-hover$/], [Qn, Z, "pointer#ShadowFocus", /^pointer([0-9]*)-shadow-focus$/], [es, ae, "pointer#Border", /^pointer([0-9]*)-border$/], [ts, K, "pointer#BorderHover", /^pointer([0-9]*)-border-hover$/], [rs,
|
|
1890
|
+
}, ii = [[Fn, w, "sliderWidth", null], [Hn, M, "sliderHeight", null], [Yn, P, "sliderRadius", null], [jn, O, "sliderBg", null], [Un, D, "sliderBgHover", null], [zn, V, "sliderBgFill", null], [Xn, ee, "pointer#Width", /^pointer([0-9]*)-width$/], [Wn, L, "pointer#Height", /^pointer([0-9]*)-height$/], [Vn, x, "pointer#Radius", /^pointer([0-9]*)-radius$/], [qn, A, "pointer#Bg", /^pointer([0-9]*)-bg$/], [Gn, B, "pointer#BgHover", /^pointer([0-9]*)-bg-hover$/], [Kn, k, "pointer#BgFocus", /^pointer([0-9]*)-bg-focus$/], [Jn, H, "pointer#Shadow", /^pointer([0-9]*)-shadow$/], [Zn, X, "pointer#ShadowHover", /^pointer([0-9]*)-shadow-hover$/], [Qn, Z, "pointer#ShadowFocus", /^pointer([0-9]*)-shadow-focus$/], [es, ae, "pointer#Border", /^pointer([0-9]*)-border$/], [ts, K, "pointer#BorderHover", /^pointer([0-9]*)-border-hover$/], [rs, ve, "pointer#BorderFocus", /^pointer([0-9]*)-border-focus$/]], ns = (a, d, y) => {
|
|
1891
1891
|
let v = null, C = [], Y = /* @__PURE__ */ new Map(), q = (U, J = d) => {
|
|
1892
1892
|
let z = [...J.classList];
|
|
1893
1893
|
for (let le of z)
|
|
@@ -1926,18 +1926,18 @@ const Zo = /* @__PURE__ */ Wr(Jo);
|
|
|
1926
1926
|
let le = y[z];
|
|
1927
1927
|
if (!le)
|
|
1928
1928
|
return;
|
|
1929
|
-
let
|
|
1929
|
+
let me = z === 0 ? d : le.$pointer;
|
|
1930
1930
|
if (J == null) {
|
|
1931
|
-
Y.has(ie(U, z)) && Y.delete(ie(U, z)),
|
|
1931
|
+
Y.has(ie(U, z)) && Y.delete(ie(U, z)), me.style.removeProperty(U);
|
|
1932
1932
|
return;
|
|
1933
1933
|
}
|
|
1934
|
-
Y.set(ie(U, z), J),
|
|
1934
|
+
Y.set(ie(U, z), J), me.style.setProperty(U, J);
|
|
1935
1935
|
}, $e = (U, J) => Y.get(ie(U, J));
|
|
1936
1936
|
return (() => {
|
|
1937
1937
|
for (let U of ii) {
|
|
1938
|
-
let [J, z, le,
|
|
1939
|
-
if (
|
|
1940
|
-
let he = St(a,
|
|
1938
|
+
let [J, z, le, me] = U;
|
|
1939
|
+
if (me) {
|
|
1940
|
+
let he = St(a, me);
|
|
1941
1941
|
for (let de of he) {
|
|
1942
1942
|
let we = de[0], _e = de[1];
|
|
1943
1943
|
Se(J, _e, we);
|
|
@@ -2071,8 +2071,8 @@ const Zo = /* @__PURE__ */ Wr(Jo);
|
|
|
2071
2071
|
if (C)
|
|
2072
2072
|
for (let Y of a)
|
|
2073
2073
|
d ? C.prepend(Y.$pointer) : C.append(Y.$pointer);
|
|
2074
|
-
}, Jt = 0,
|
|
2075
|
-
let v = y.map((h) => h[0]), C = null, Y = null, q = null, T = null, R = Jt, G =
|
|
2074
|
+
}, Jt = 0, yt = 100, nt = 2, ai = "0.3s", us = (a, d, y) => {
|
|
2075
|
+
let v = y.map((h) => h[0]), C = null, Y = null, q = null, T = null, R = Jt, G = yt, Q, F, ie = Ae, Se = nt, $e = !1, U = !1, J = !1, z = 0, le = 1 / 0, me = !1, pe, he, de = !1, we = !1, _e = !1, je = ai, li = [], ui = (h) => {
|
|
2076
2076
|
de || (h.preventDefault && h.preventDefault(), Ve(h), window.addEventListener("mousemove", Ve), window.addEventListener("mouseup", kt), Cn(a, h));
|
|
2077
2077
|
}, kt = (h) => {
|
|
2078
2078
|
de || (pe = void 0, he = void 0, window.removeEventListener("mousemove", Ve), window.removeEventListener("mouseup", kt), je && d.classList.add(it), Tn(a, h));
|
|
@@ -2082,7 +2082,7 @@ const Zo = /* @__PURE__ */ Wr(Jo);
|
|
|
2082
2082
|
if (v.length === 1)
|
|
2083
2083
|
return v[0].isClicked(h) && je && d.classList.remove(it), v[0];
|
|
2084
2084
|
let N = ps(h);
|
|
2085
|
-
if (
|
|
2085
|
+
if (me) {
|
|
2086
2086
|
let re = $, Ce = Lt(re);
|
|
2087
2087
|
Ce !== void 0 && (re = tt(re, Ce)), N ? (pe = re, he = 0, je && d.classList.remove(it)) : pe !== void 0 && (he = re - pe, pe = re);
|
|
2088
2088
|
}
|
|
@@ -2111,7 +2111,7 @@ const Zo = /* @__PURE__ */ Wr(Jo);
|
|
|
2111
2111
|
let { width: oe, left: fe } = d.getBoundingClientRect(), re = h.type.indexOf("mouse") !== -1 ? h.clientX : h.touches[0].clientX;
|
|
2112
2112
|
$ = Math.min(Math.max(0, re - fe), oe) * 100 / oe;
|
|
2113
2113
|
}
|
|
2114
|
-
if (($e || U) && ($ = 100 - $), C = ds(h.target, $),
|
|
2114
|
+
if (($e || U) && ($ = 100 - $), C = ds(h.target, $), me && v.length > 1 && he !== void 0) {
|
|
2115
2115
|
let oe = v[0], fe = v[v.length - 1], re = oe.percent + he < 0, Ce = fe.percent + he > 100;
|
|
2116
2116
|
if (re || Ce)
|
|
2117
2117
|
return;
|
|
@@ -2126,21 +2126,21 @@ const Zo = /* @__PURE__ */ Wr(Jo);
|
|
|
2126
2126
|
return;
|
|
2127
2127
|
h.stopPropagation(), h.preventDefault();
|
|
2128
2128
|
let $ = h.deltaY < 0, N = $e || U, oe = $ ? !N : N, fe = ci();
|
|
2129
|
-
fe !== -1 && (oe ?
|
|
2129
|
+
fe !== -1 && (oe ? bt(fe, v[fe].percent) : $t(fe, v[fe].percent));
|
|
2130
2130
|
}, hi = (h) => {
|
|
2131
|
-
de || we || (ie === ye ? U ? Me(h, 100) : Me(h, 0) : $e ?
|
|
2131
|
+
de || we || (ie === ye ? U ? Me(h, 100) : Me(h, 0) : $e ? $t(h, v[h].percent) : bt(h, v[h].percent));
|
|
2132
2132
|
}, di = (h) => {
|
|
2133
|
-
de || we || (ie === ye ? U ? Me(h, 0) : Me(h, 100) : $e ?
|
|
2133
|
+
de || we || (ie === ye ? U ? Me(h, 0) : Me(h, 100) : $e ? bt(h, v[h].percent) : $t(h, v[h].percent));
|
|
2134
2134
|
}, fi = (h) => {
|
|
2135
|
-
de || we || (ie === ye ? U ?
|
|
2135
|
+
de || we || (ie === ye ? U ? $t(h, v[h].percent) : bt(h, v[h].percent) : $e ? Me(h, 100) : Me(h, 0));
|
|
2136
2136
|
}, pi = (h) => {
|
|
2137
|
-
de || we || (ie === ye ? U ?
|
|
2138
|
-
}, fs = (h) => h.classList.contains("panel"), ps = (h) => h.classList.contains("panel-fill"),
|
|
2137
|
+
de || we || (ie === ye ? U ? bt(h, v[h].percent) : $t(h, v[h].percent) : $e ? Me(h, 0) : Me(h, 100));
|
|
2138
|
+
}, fs = (h) => h.classList.contains("panel"), ps = (h) => h.classList.contains("panel-fill"), bt = (h, $) => {
|
|
2139
2139
|
if ($ === void 0)
|
|
2140
2140
|
return;
|
|
2141
2141
|
let N = Lt($);
|
|
2142
2142
|
N == null && (N = 1), $ -= N, $ < 0 && ($ = 0), Me(h, $);
|
|
2143
|
-
},
|
|
2143
|
+
}, $t = (h, $) => {
|
|
2144
2144
|
if ($ === void 0)
|
|
2145
2145
|
return;
|
|
2146
2146
|
let N = Lt($);
|
|
@@ -2189,7 +2189,7 @@ const Zo = /* @__PURE__ */ Wr(Jo);
|
|
|
2189
2189
|
}, bs = (h) => {
|
|
2190
2190
|
var $;
|
|
2191
2191
|
return v.length <= 1 || h >= v.length - 1 || J ? Ct() : ($ = st(v[h + 1].percent)) != null ? $ : "";
|
|
2192
|
-
}, gi = () => v.map((h) => h.percent), vi = () => v.map((h) => st(h.percent)), mi = () => v.map((h) => h.$pointer), yi = () => R, bi = () => G, er = () => F, tr = () => ie, rr = () => Se, ir = () => z, nr = () => le, $s = (h) => li[h], sr = () => $e, or = () => U, ar = () => de, lr = () => we, ur = () => _e, cr = () => J, hr = () =>
|
|
2192
|
+
}, gi = () => v.map((h) => h.percent), vi = () => v.map((h) => st(h.percent)), mi = () => v.map((h) => h.$pointer), yi = () => R, bi = () => G, er = () => F, tr = () => ie, rr = () => Se, ir = () => z, nr = () => le, $s = (h) => li[h], sr = () => $e, or = () => U, ar = () => de, lr = () => we, ur = () => _e, cr = () => J, hr = () => me, Me = (h, $) => {
|
|
2193
2193
|
if ($ === void 0)
|
|
2194
2194
|
return;
|
|
2195
2195
|
let N = Lt($);
|
|
@@ -2208,7 +2208,7 @@ const Zo = /* @__PURE__ */ Wr(Jo);
|
|
|
2208
2208
|
for (let h = 0; h < v.length; h++)
|
|
2209
2209
|
Me(h, v[h].percent);
|
|
2210
2210
|
}, xs = (h, $) => {
|
|
2211
|
-
R = F !== void 0 ? 0 : se(h, Jt), G = F !== void 0 ? F.length - 1 : se($,
|
|
2211
|
+
R = F !== void 0 ? 0 : se(h, Jt), G = F !== void 0 ? F.length - 1 : se($, yt), Tt(R), Rt(G);
|
|
2212
2212
|
}, ws = () => {
|
|
2213
2213
|
var h, $;
|
|
2214
2214
|
for (let N = 0; N < v.length; N++) {
|
|
@@ -2216,9 +2216,9 @@ const Zo = /* @__PURE__ */ Wr(Jo);
|
|
|
2216
2216
|
oe.setAttr("aria-valuemin", ((h = ys(N)) != null ? h : "").toString()), oe.setAttr("aria-valuemax", (($ = bs(N)) != null ? $ : "").toString());
|
|
2217
2217
|
}
|
|
2218
2218
|
}, Tt = (h) => {
|
|
2219
|
-
R = se(h, Jt), R > G && (G = R +
|
|
2219
|
+
R = se(h, Jt), R > G && (G = R + yt), De();
|
|
2220
2220
|
}, Rt = (h) => {
|
|
2221
|
-
G = se(h,
|
|
2221
|
+
G = se(h, yt), G < R && (G = R + yt), De();
|
|
2222
2222
|
}, $i = (h) => {
|
|
2223
2223
|
J = !0;
|
|
2224
2224
|
for (let $ = 0; $ < h.length; $++)
|
|
@@ -2292,10 +2292,10 @@ const Zo = /* @__PURE__ */ Wr(Jo);
|
|
|
2292
2292
|
!N || (N.setAttr("aria-label", $), li[h] = $);
|
|
2293
2293
|
}, Nt = (h) => {
|
|
2294
2294
|
if (pe = void 0, v.length <= 1) {
|
|
2295
|
-
|
|
2295
|
+
me = !1, d.classList.remove(ni);
|
|
2296
2296
|
return;
|
|
2297
2297
|
}
|
|
2298
|
-
|
|
2298
|
+
me = h, d.classList.toggle(ni, me);
|
|
2299
2299
|
}, _s = () => {
|
|
2300
2300
|
gr(be(a.getAttribute(p))), we = be(a.getAttribute(b)), _e = be(a.getAttribute(S));
|
|
2301
2301
|
let h = St(a, /^pointer([0-9]*)-disabled$/, ($) => be($));
|
|
@@ -2673,7 +2673,7 @@ var pn = { exports: {} };
|
|
|
2673
2673
|
(function(r, e) {
|
|
2674
2674
|
(function(t, i) {
|
|
2675
2675
|
r.exports = i();
|
|
2676
|
-
})(
|
|
2676
|
+
})(ct, function() {
|
|
2677
2677
|
var t = 1e3, i = 6e4, n = 36e5, s = "millisecond", o = "second", u = "minute", l = "hour", c = "day", m = "week", g = "month", _ = "quarter", E = "year", I = "date", j = "Invalid Date", ne = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, te = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, f = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(L) {
|
|
2678
2678
|
var x = ["th", "st", "nd", "rd"], A = L % 100;
|
|
2679
2679
|
return "[" + L + (x[(A - 20) % 10] || x[A] || x[0]) + "]";
|
|
@@ -2771,15 +2771,15 @@ var pn = { exports: {} };
|
|
|
2771
2771
|
return H ? se : se.endOf(c);
|
|
2772
2772
|
}, ae = function(Re, ue) {
|
|
2773
2773
|
return D.w(k.toDate()[Re].apply(k.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ue)), k);
|
|
2774
|
-
}, K = this.$W,
|
|
2774
|
+
}, K = this.$W, ve = this.$M, Le = this.$D, Oe = "set" + (this.$u ? "UTC" : "");
|
|
2775
2775
|
switch (X) {
|
|
2776
2776
|
case E:
|
|
2777
2777
|
return H ? Z(1, 0) : Z(31, 11);
|
|
2778
2778
|
case g:
|
|
2779
|
-
return H ? Z(1,
|
|
2779
|
+
return H ? Z(1, ve) : Z(0, ve + 1);
|
|
2780
2780
|
case m:
|
|
2781
2781
|
var ye = this.$locale().weekStart || 0, Ae = (K < ye ? K + 7 : K) - ye;
|
|
2782
|
-
return Z(H ? Le - Ae : Le + (6 - Ae),
|
|
2782
|
+
return Z(H ? Le - Ae : Le + (6 - Ae), ve);
|
|
2783
2783
|
case c:
|
|
2784
2784
|
case I:
|
|
2785
2785
|
return ae(Oe + "Hours", 0);
|
|
@@ -2809,9 +2809,9 @@ var pn = { exports: {} };
|
|
|
2809
2809
|
}, x.add = function(A, B) {
|
|
2810
2810
|
var k, H = this;
|
|
2811
2811
|
A = Number(A);
|
|
2812
|
-
var X = D.p(B), Z = function(
|
|
2812
|
+
var X = D.p(B), Z = function(ve) {
|
|
2813
2813
|
var Le = O(H);
|
|
2814
|
-
return D.w(Le.date(Le.date() + Math.round(
|
|
2814
|
+
return D.w(Le.date(Le.date() + Math.round(ve * A)), H);
|
|
2815
2815
|
};
|
|
2816
2816
|
if (X === g)
|
|
2817
2817
|
return this.set(g, this.$M + A);
|
|
@@ -2829,22 +2829,22 @@ var pn = { exports: {} };
|
|
|
2829
2829
|
var B = this, k = this.$locale();
|
|
2830
2830
|
if (!this.isValid())
|
|
2831
2831
|
return k.invalidDate || j;
|
|
2832
|
-
var H = A || "YYYY-MM-DDTHH:mm:ssZ", X = D.z(this), Z = this.$H, ae = this.$m, K = this.$M,
|
|
2832
|
+
var H = A || "YYYY-MM-DDTHH:mm:ssZ", X = D.z(this), Z = this.$H, ae = this.$m, K = this.$M, ve = k.weekdays, Le = k.months, Oe = function(ue, se, tt, rt) {
|
|
2833
2833
|
return ue && (ue[se] || ue(B, H)) || tt[se].slice(0, rt);
|
|
2834
2834
|
}, ye = function(ue) {
|
|
2835
2835
|
return D.s(Z % 12 || 12, ue, "0");
|
|
2836
2836
|
}, Ae = k.meridiem || function(ue, se, tt) {
|
|
2837
2837
|
var rt = ue < 12 ? "AM" : "PM";
|
|
2838
2838
|
return tt ? rt.toLowerCase() : rt;
|
|
2839
|
-
}, Re = { YY: String(this.$y).slice(-2), YYYY: D.s(this.$y, 4, "0"), M: K + 1, MM: D.s(K + 1, 2, "0"), MMM: Oe(k.monthsShort, K, Le, 3), MMMM: Oe(Le, K), D: this.$D, DD: D.s(this.$D, 2, "0"), d: String(this.$W), dd: Oe(k.weekdaysMin, this.$W,
|
|
2839
|
+
}, Re = { YY: String(this.$y).slice(-2), YYYY: D.s(this.$y, 4, "0"), M: K + 1, MM: D.s(K + 1, 2, "0"), MMM: Oe(k.monthsShort, K, Le, 3), MMMM: Oe(Le, K), D: this.$D, DD: D.s(this.$D, 2, "0"), d: String(this.$W), dd: Oe(k.weekdaysMin, this.$W, ve, 2), ddd: Oe(k.weekdaysShort, this.$W, ve, 3), dddd: ve[this.$W], H: String(Z), HH: D.s(Z, 2, "0"), h: ye(1), hh: ye(2), a: Ae(Z, ae, !0), A: Ae(Z, ae, !1), m: String(ae), mm: D.s(ae, 2, "0"), s: String(this.$s), ss: D.s(this.$s, 2, "0"), SSS: D.s(this.$ms, 3, "0"), Z: X };
|
|
2840
2840
|
return H.replace(te, function(ue, se) {
|
|
2841
2841
|
return se || Re[ue] || X.replace(":", "");
|
|
2842
2842
|
});
|
|
2843
2843
|
}, x.utcOffset = function() {
|
|
2844
2844
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
2845
2845
|
}, x.diff = function(A, B, k) {
|
|
2846
|
-
var H, X = D.p(B), Z = O(A), ae = (Z.utcOffset() - this.utcOffset()) * i, K = this - Z,
|
|
2847
|
-
return
|
|
2846
|
+
var H, X = D.p(B), Z = O(A), ae = (Z.utcOffset() - this.utcOffset()) * i, K = this - Z, ve = D.m(this, Z);
|
|
2847
|
+
return ve = (H = {}, H[E] = ve / 12, H[g] = ve, H[_] = ve / 3, H[m] = (K - ae) / 6048e5, H[c] = (K - ae) / 864e5, H[l] = K / n, H[u] = K / i, H[o] = K / t, H)[X] || K, k ? ve : D.a(ve);
|
|
2848
2848
|
}, x.daysInMonth = function() {
|
|
2849
2849
|
return this.endOf(g).$D;
|
|
2850
2850
|
}, x.$locale = function() {
|
|
@@ -2879,7 +2879,7 @@ var pn = { exports: {} };
|
|
|
2879
2879
|
})(pn);
|
|
2880
2880
|
var Qo = pn.exports;
|
|
2881
2881
|
const Ht = /* @__PURE__ */ Wr(Qo);
|
|
2882
|
-
class ea extends
|
|
2882
|
+
class ea extends ht {
|
|
2883
2883
|
constructor() {
|
|
2884
2884
|
super(...arguments), this.templates = {}, this._renderedTemplates = {};
|
|
2885
2885
|
}
|
|
@@ -2917,7 +2917,7 @@ class ea extends ct {
|
|
|
2917
2917
|
if (!this.hasTemplate(e))
|
|
2918
2918
|
return null;
|
|
2919
2919
|
i = i || e;
|
|
2920
|
-
const n =
|
|
2920
|
+
const n = ge` <slot name=${i}></slot> `, s = { [e]: { ...t } };
|
|
2921
2921
|
if (this._renderedTemplates.hasOwnProperty(i)) {
|
|
2922
2922
|
const { slot: u } = (
|
|
2923
2923
|
// @ts-ignore
|
|
@@ -3310,7 +3310,7 @@ function bn(r) {
|
|
|
3310
3310
|
return r;
|
|
3311
3311
|
throw new Error("coord must be GeoJSON Point or an Array of numbers");
|
|
3312
3312
|
}
|
|
3313
|
-
function
|
|
3313
|
+
function pt(r) {
|
|
3314
3314
|
if (Array.isArray(r))
|
|
3315
3315
|
return r;
|
|
3316
3316
|
if (r.type === "Feature") {
|
|
@@ -3320,7 +3320,7 @@ function ft(r) {
|
|
|
3320
3320
|
return r.coordinates;
|
|
3321
3321
|
throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array");
|
|
3322
3322
|
}
|
|
3323
|
-
function
|
|
3323
|
+
function gt(r) {
|
|
3324
3324
|
return r.type === "Feature" ? r.geometry : r;
|
|
3325
3325
|
}
|
|
3326
3326
|
function ke(r, e, t) {
|
|
@@ -3328,7 +3328,7 @@ function ke(r, e, t) {
|
|
|
3328
3328
|
throw new Error("point is required");
|
|
3329
3329
|
if (!e)
|
|
3330
3330
|
throw new Error("polygon is required");
|
|
3331
|
-
var i = bn(r), n =
|
|
3331
|
+
var i = bn(r), n = gt(e), s = n.type, o = e.bbox, u = n.coordinates;
|
|
3332
3332
|
if (o && ma(i, o) === !1)
|
|
3333
3333
|
return !1;
|
|
3334
3334
|
s === "Polygon" && (u = [u]);
|
|
@@ -3355,7 +3355,7 @@ function Xi(r, e, t) {
|
|
|
3355
3355
|
function ma(r, e) {
|
|
3356
3356
|
return e[0] <= r[0] && e[1] <= r[1] && e[2] >= r[0] && e[3] >= r[1];
|
|
3357
3357
|
}
|
|
3358
|
-
function
|
|
3358
|
+
function mt(r, e, t) {
|
|
3359
3359
|
if (r !== null)
|
|
3360
3360
|
for (var i, n, s, o, u, l, c, m = 0, g = 0, _, E = r.type, I = E === "FeatureCollection", j = E === "Feature", ne = I ? r.features.length : 1, te = 0; te < ne; te++) {
|
|
3361
3361
|
c = I ? r.features[te].geometry : j ? r.geometry : r, _ = c ? c.type === "GeometryCollection" : !1, u = _ ? c.geometries.length : 1;
|
|
@@ -3432,7 +3432,7 @@ function vt(r, e, t) {
|
|
|
3432
3432
|
break;
|
|
3433
3433
|
case "GeometryCollection":
|
|
3434
3434
|
for (i = 0; i < o.geometries.length; i++)
|
|
3435
|
-
if (
|
|
3435
|
+
if (mt(o.geometries[i], e, t) === !1)
|
|
3436
3436
|
return !1;
|
|
3437
3437
|
break;
|
|
3438
3438
|
default:
|
|
@@ -3444,7 +3444,7 @@ function vt(r, e, t) {
|
|
|
3444
3444
|
}
|
|
3445
3445
|
function ya(r, e, t, i) {
|
|
3446
3446
|
var n = t;
|
|
3447
|
-
return
|
|
3447
|
+
return mt(
|
|
3448
3448
|
r,
|
|
3449
3449
|
function(s, o, u, l, c) {
|
|
3450
3450
|
o === 0 && t === void 0 ? n = s : n = e(
|
|
@@ -3492,7 +3492,7 @@ function $a(r, e, t) {
|
|
|
3492
3492
|
}
|
|
3493
3493
|
function xa(r) {
|
|
3494
3494
|
var e = [];
|
|
3495
|
-
return
|
|
3495
|
+
return mt(r, function(t) {
|
|
3496
3496
|
e.push(t);
|
|
3497
3497
|
}), e;
|
|
3498
3498
|
}
|
|
@@ -3620,7 +3620,7 @@ function xn(r, e) {
|
|
|
3620
3620
|
var o = t.geometry.type;
|
|
3621
3621
|
if (!(o === "Point" || o === "MultiPoint")) {
|
|
3622
3622
|
var u, l = 0, c = 0, m = 0;
|
|
3623
|
-
if (
|
|
3623
|
+
if (mt(
|
|
3624
3624
|
t,
|
|
3625
3625
|
function(g, _, E, I, j) {
|
|
3626
3626
|
if (u === void 0 || i > l || I > c || j > m) {
|
|
@@ -3818,7 +3818,7 @@ function Sa(r, e) {
|
|
|
3818
3818
|
const ka = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3819
3819
|
__proto__: null,
|
|
3820
3820
|
coordAll: xa,
|
|
3821
|
-
coordEach:
|
|
3821
|
+
coordEach: mt,
|
|
3822
3822
|
coordReduce: ya,
|
|
3823
3823
|
featureEach: Wt,
|
|
3824
3824
|
featureReduce: $a,
|
|
@@ -3848,10 +3848,10 @@ function Pa(r, e) {
|
|
|
3848
3848
|
if (i !== null) {
|
|
3849
3849
|
switch (i.type) {
|
|
3850
3850
|
case "Polygon":
|
|
3851
|
-
t =
|
|
3851
|
+
t = pt(i);
|
|
3852
3852
|
break;
|
|
3853
3853
|
case "LineString":
|
|
3854
|
-
t = [
|
|
3854
|
+
t = [pt(i)];
|
|
3855
3855
|
}
|
|
3856
3856
|
t.forEach(function(n) {
|
|
3857
3857
|
var s = La(n, r.properties);
|
|
@@ -3876,7 +3876,7 @@ var ei = { exports: {} }, _n = { exports: {} };
|
|
|
3876
3876
|
(function(r, e) {
|
|
3877
3877
|
(function(t, i) {
|
|
3878
3878
|
r.exports = i();
|
|
3879
|
-
})(
|
|
3879
|
+
})(ct, function() {
|
|
3880
3880
|
function t(f, p, b, S, w) {
|
|
3881
3881
|
(function M(P, O, D, V, ee) {
|
|
3882
3882
|
for (; V > D; ) {
|
|
@@ -4108,7 +4108,7 @@ var Ca = _n.exports;
|
|
|
4108
4108
|
const Ta = /* @__PURE__ */ Vr(va), Ra = /* @__PURE__ */ Vr(ka);
|
|
4109
4109
|
function et(r) {
|
|
4110
4110
|
var e = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
4111
|
-
return
|
|
4111
|
+
return mt(r, function(t) {
|
|
4112
4112
|
e[0] > t[0] && (e[0] = t[0]), e[1] > t[1] && (e[1] = t[1]), e[2] < t[0] && (e[2] = t[0]), e[3] < t[1] && (e[3] = t[1]);
|
|
4113
4113
|
}), e;
|
|
4114
4114
|
}
|
|
@@ -4117,7 +4117,7 @@ const Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4117
4117
|
__proto__: null,
|
|
4118
4118
|
default: et
|
|
4119
4119
|
}, Symbol.toStringTag, { value: "Module" })), Ia = /* @__PURE__ */ Vr(Da);
|
|
4120
|
-
var Ie = Ca, Mn = Ta, En = Ra,
|
|
4120
|
+
var Ie = Ca, Mn = Ta, En = Ra, lt = Ia.default, Na = En.featureEach;
|
|
4121
4121
|
En.coordEach;
|
|
4122
4122
|
Mn.polygon;
|
|
4123
4123
|
var Vi = Mn.featureCollection;
|
|
@@ -4126,22 +4126,22 @@ function An(r) {
|
|
|
4126
4126
|
return e.insert = function(t) {
|
|
4127
4127
|
if (t.type !== "Feature")
|
|
4128
4128
|
throw new Error("invalid feature");
|
|
4129
|
-
return t.bbox = t.bbox ? t.bbox :
|
|
4129
|
+
return t.bbox = t.bbox ? t.bbox : lt(t), Ie.prototype.insert.call(this, t);
|
|
4130
4130
|
}, e.load = function(t) {
|
|
4131
4131
|
var i = [];
|
|
4132
4132
|
return Array.isArray(t) ? t.forEach(function(n) {
|
|
4133
4133
|
if (n.type !== "Feature")
|
|
4134
4134
|
throw new Error("invalid features");
|
|
4135
|
-
n.bbox = n.bbox ? n.bbox :
|
|
4135
|
+
n.bbox = n.bbox ? n.bbox : lt(n), i.push(n);
|
|
4136
4136
|
}) : Na(t, function(n) {
|
|
4137
4137
|
if (n.type !== "Feature")
|
|
4138
4138
|
throw new Error("invalid features");
|
|
4139
|
-
n.bbox = n.bbox ? n.bbox :
|
|
4139
|
+
n.bbox = n.bbox ? n.bbox : lt(n), i.push(n);
|
|
4140
4140
|
}), Ie.prototype.load.call(this, i);
|
|
4141
4141
|
}, e.remove = function(t, i) {
|
|
4142
4142
|
if (t.type !== "Feature")
|
|
4143
4143
|
throw new Error("invalid feature");
|
|
4144
|
-
return t.bbox = t.bbox ? t.bbox :
|
|
4144
|
+
return t.bbox = t.bbox ? t.bbox : lt(t), Ie.prototype.remove.call(this, t, i);
|
|
4145
4145
|
}, e.clear = function() {
|
|
4146
4146
|
return Ie.prototype.clear.call(this);
|
|
4147
4147
|
}, e.search = function(t) {
|
|
@@ -4165,9 +4165,9 @@ function An(r) {
|
|
|
4165
4165
|
else if (Array.isArray(t) && t.length === 6)
|
|
4166
4166
|
i = [t[0], t[1], t[3], t[4]];
|
|
4167
4167
|
else if (t.type === "Feature")
|
|
4168
|
-
i =
|
|
4168
|
+
i = lt(t);
|
|
4169
4169
|
else if (t.type === "FeatureCollection")
|
|
4170
|
-
i =
|
|
4170
|
+
i = lt(t);
|
|
4171
4171
|
else
|
|
4172
4172
|
throw new Error("invalid geojson");
|
|
4173
4173
|
return {
|
|
@@ -4193,14 +4193,14 @@ function ti(r, e) {
|
|
|
4193
4193
|
Wt(s.search(o), function(u) {
|
|
4194
4194
|
var l = qi(o, u);
|
|
4195
4195
|
if (l) {
|
|
4196
|
-
var c =
|
|
4196
|
+
var c = pt(l).join(",");
|
|
4197
4197
|
t[c] || (t[c] = !0, i.push(l));
|
|
4198
4198
|
}
|
|
4199
4199
|
});
|
|
4200
4200
|
}), ze(i);
|
|
4201
4201
|
}
|
|
4202
4202
|
function qi(r, e) {
|
|
4203
|
-
var t =
|
|
4203
|
+
var t = pt(r), i = pt(e);
|
|
4204
4204
|
if (t.length !== 2)
|
|
4205
4205
|
throw new Error("<intersects> line1 must only contain 2 coordinates");
|
|
4206
4206
|
if (i.length !== 2)
|
|
@@ -4217,7 +4217,7 @@ function qi(r, e) {
|
|
|
4217
4217
|
}
|
|
4218
4218
|
function jr(r, e) {
|
|
4219
4219
|
e === void 0 && (e = {});
|
|
4220
|
-
var t =
|
|
4220
|
+
var t = gt(r);
|
|
4221
4221
|
switch (!e.properties && r.type === "Feature" && (e.properties = r.properties), t.type) {
|
|
4222
4222
|
case "Polygon":
|
|
4223
4223
|
return Ha(t, e);
|
|
@@ -4229,12 +4229,12 @@ function jr(r, e) {
|
|
|
4229
4229
|
}
|
|
4230
4230
|
function Ha(r, e) {
|
|
4231
4231
|
e === void 0 && (e = {});
|
|
4232
|
-
var t =
|
|
4232
|
+
var t = gt(r), i = t.coordinates, n = e.properties ? e.properties : r.type === "Feature" ? r.properties : {};
|
|
4233
4233
|
return Sn(i, n);
|
|
4234
4234
|
}
|
|
4235
4235
|
function Ya(r, e) {
|
|
4236
4236
|
e === void 0 && (e = {});
|
|
4237
|
-
var t =
|
|
4237
|
+
var t = gt(r), i = t.coordinates, n = e.properties ? e.properties : r.type === "Feature" ? r.properties : {}, s = [];
|
|
4238
4238
|
return i.forEach(function(o) {
|
|
4239
4239
|
s.push(Sn(o, n));
|
|
4240
4240
|
}), ze(s);
|
|
@@ -4338,7 +4338,7 @@ function qa(r, e) {
|
|
|
4338
4338
|
}
|
|
4339
4339
|
function Vt(r, e, t) {
|
|
4340
4340
|
t === void 0 && (t = {});
|
|
4341
|
-
for (var i = bn(r), n =
|
|
4341
|
+
for (var i = bn(r), n = pt(e), s = 0; s < n.length - 1; s++) {
|
|
4342
4342
|
var o = !1;
|
|
4343
4343
|
if (t.ignoreEndVertices && (s === 0 && (o = "start"), s === n.length - 2 && (o = "end"), s === 0 && s + 1 === n.length - 1 && (o = "both")), Ga(n[s], n[s + 1], i, o, typeof t.epsilon > "u" ? null : t.epsilon))
|
|
4344
4344
|
return !0;
|
|
@@ -4364,7 +4364,7 @@ function Ga(r, e, t, i, n) {
|
|
|
4364
4364
|
return !1;
|
|
4365
4365
|
}
|
|
4366
4366
|
function Ka(r, e) {
|
|
4367
|
-
var t =
|
|
4367
|
+
var t = gt(r), i = gt(e), n = t.type, s = i.type;
|
|
4368
4368
|
switch (n) {
|
|
4369
4369
|
case "Point":
|
|
4370
4370
|
switch (s) {
|
|
@@ -4496,9 +4496,9 @@ var sl = Object.defineProperty, ol = Object.getOwnPropertyDescriptor, Ln = (r, e
|
|
|
4496
4496
|
return i && n && sl(e, t, n), n;
|
|
4497
4497
|
};
|
|
4498
4498
|
const al = (r, e) => e ? qa(r, e) : !0, ll = (r, e) => e ? Ka(r, e) : !0;
|
|
4499
|
-
let Ur = class extends
|
|
4499
|
+
let Ur = class extends ht {
|
|
4500
4500
|
render() {
|
|
4501
|
-
return
|
|
4501
|
+
return ge`
|
|
4502
4502
|
<eox-map
|
|
4503
4503
|
style="height: 400px"
|
|
4504
4504
|
layers='[
|
|
@@ -4845,7 +4845,7 @@ let Ye = class extends ea {
|
|
|
4845
4845
|
this._items = r.map((e, t) => ({
|
|
4846
4846
|
id: `item-${t}`,
|
|
4847
4847
|
...e
|
|
4848
|
-
})), this._fuse = new
|
|
4848
|
+
})), this._fuse = new vt(this._items, {
|
|
4849
4849
|
// minMatchCharLength: 3,
|
|
4850
4850
|
// location: 0,
|
|
4851
4851
|
threshold: 0.4,
|
|
@@ -4902,7 +4902,7 @@ let Ye = class extends ea {
|
|
|
4902
4902
|
},
|
|
4903
4903
|
...e.type === "spatial" && {
|
|
4904
4904
|
// @ts-ignore
|
|
4905
|
-
mode: e.mode
|
|
4905
|
+
mode: e.mode || "intersects"
|
|
4906
4906
|
}
|
|
4907
4907
|
};
|
|
4908
4908
|
}), this._config.matchAllWhenEmpty !== !1 && (this._results = this.sortResults(this._items), this.requestUpdate()), this._config.aggregateResults && (this._resultAggregation = [
|
|
@@ -4985,7 +4985,7 @@ let Ye = class extends ea {
|
|
|
4985
4985
|
geometry: l.geometry,
|
|
4986
4986
|
mode: l.mode
|
|
4987
4987
|
}, o), {});
|
|
4988
|
-
if (Object.
|
|
4988
|
+
if (Object.values(s).map((o) => o.geometry).filter((o) => !!o).length > 0) {
|
|
4989
4989
|
const o = [];
|
|
4990
4990
|
for (let u = 0; u < i.length; u++) {
|
|
4991
4991
|
const l = {};
|
|
@@ -5072,7 +5072,7 @@ let Ye = class extends ea {
|
|
|
5072
5072
|
}), this.search(), this.requestUpdate();
|
|
5073
5073
|
}
|
|
5074
5074
|
render() {
|
|
5075
|
-
return
|
|
5075
|
+
return ge`
|
|
5076
5076
|
<style>
|
|
5077
5077
|
${ul}
|
|
5078
5078
|
${!this.unstyled && dl}
|
|
@@ -5080,7 +5080,7 @@ let Ye = class extends ea {
|
|
|
5080
5080
|
<form @submit="${(r) => r.preventDefault()}">
|
|
5081
5081
|
${ot(
|
|
5082
5082
|
this._config.enableSearch,
|
|
5083
|
-
() =>
|
|
5083
|
+
() => ge`
|
|
5084
5084
|
<section>
|
|
5085
5085
|
<input
|
|
5086
5086
|
type="text"
|
|
@@ -5094,16 +5094,16 @@ let Ye = class extends ea {
|
|
|
5094
5094
|
)}
|
|
5095
5095
|
${ot(
|
|
5096
5096
|
this._config.filterProperties.length,
|
|
5097
|
-
() =>
|
|
5097
|
+
() => ge`
|
|
5098
5098
|
<section class="${this.config.inlineMode ? "inline" : ce}">
|
|
5099
5099
|
${ot(
|
|
5100
5100
|
!this.config.inlineMode,
|
|
5101
|
-
() =>
|
|
5101
|
+
() => ge` <slot name="filterstitle"></slot> `
|
|
5102
5102
|
)}
|
|
5103
5103
|
<ul id="filters">
|
|
5104
|
-
${
|
|
5104
|
+
${at(
|
|
5105
5105
|
this._config.filterProperties,
|
|
5106
|
-
(r) =>
|
|
5106
|
+
(r) => ge`
|
|
5107
5107
|
<details
|
|
5108
5108
|
class="details-filter"
|
|
5109
5109
|
part="details-filter"
|
|
@@ -5125,7 +5125,7 @@ let Ye = class extends ea {
|
|
|
5125
5125
|
</span>
|
|
5126
5126
|
</summary>
|
|
5127
5127
|
<div class="scroll">
|
|
5128
|
-
${r.type === "range" ?
|
|
5128
|
+
${r.type === "range" ? ge`
|
|
5129
5129
|
<div>
|
|
5130
5130
|
${r.format === "date" ? Ht.unix(
|
|
5131
5131
|
// @ts-ignore
|
|
@@ -5169,7 +5169,32 @@ let Ye = class extends ea {
|
|
|
5169
5169
|
this._filters[r.key].keys.max
|
|
5170
5170
|
)}
|
|
5171
5171
|
</div>
|
|
5172
|
-
` : r.type === "spatial" ?
|
|
5172
|
+
` : r.type === "spatial" ? ge`
|
|
5173
|
+
<form style="display: inline">
|
|
5174
|
+
${at(
|
|
5175
|
+
["intersects", "within"],
|
|
5176
|
+
(e) => ge`
|
|
5177
|
+
<label>
|
|
5178
|
+
<input
|
|
5179
|
+
type="radio"
|
|
5180
|
+
name="mode"
|
|
5181
|
+
.checked="${// @ts-ignore
|
|
5182
|
+
this._filters[r.key].mode === e}"
|
|
5183
|
+
value="${e}"
|
|
5184
|
+
@click="${() => {
|
|
5185
|
+
this._filters[r.key].mode = e, this.requestUpdate(), this.search(
|
|
5186
|
+
this.renderRoot.querySelector(
|
|
5187
|
+
"input[type='text']"
|
|
5188
|
+
// @ts-ignore
|
|
5189
|
+
).value
|
|
5190
|
+
);
|
|
5191
|
+
}}"
|
|
5192
|
+
/>
|
|
5193
|
+
<small>${e} filter geometry</small>
|
|
5194
|
+
</label>
|
|
5195
|
+
`
|
|
5196
|
+
)}
|
|
5197
|
+
</form>
|
|
5173
5198
|
<eox-itemfilter-spatial-filter
|
|
5174
5199
|
@filter="${(e) => {
|
|
5175
5200
|
Object.entries(this._filters).filter(
|
|
@@ -5185,15 +5210,15 @@ let Ye = class extends ea {
|
|
|
5185
5210
|
);
|
|
5186
5211
|
}}"
|
|
5187
5212
|
></eox-itemfilter-spatial>
|
|
5188
|
-
` :
|
|
5213
|
+
` : ge`
|
|
5189
5214
|
<ul>
|
|
5190
5215
|
${// @ts-ignore
|
|
5191
|
-
this._filters[r.key] ?
|
|
5216
|
+
this._filters[r.key] ? at(
|
|
5192
5217
|
Object.keys(
|
|
5193
5218
|
// @ts-ignore
|
|
5194
5219
|
this._filters[r.key].keys
|
|
5195
5220
|
).sort((e, t) => e.localeCompare(t)),
|
|
5196
|
-
(e) =>
|
|
5221
|
+
(e) => ge`
|
|
5197
5222
|
<li>
|
|
5198
5223
|
<label>
|
|
5199
5224
|
<input
|
|
@@ -5221,7 +5246,7 @@ let Ye = class extends ea {
|
|
|
5221
5246
|
</ul>
|
|
5222
5247
|
${ot(
|
|
5223
5248
|
this._config.filterProperties,
|
|
5224
|
-
() =>
|
|
5249
|
+
() => ge`
|
|
5225
5250
|
<a
|
|
5226
5251
|
id="filter-reset"
|
|
5227
5252
|
data-cy="filter-reset"
|
|
@@ -5235,22 +5260,22 @@ let Ye = class extends ea {
|
|
|
5235
5260
|
)}
|
|
5236
5261
|
${ot(
|
|
5237
5262
|
this.config.showResults && this._results,
|
|
5238
|
-
() =>
|
|
5263
|
+
() => ge`
|
|
5239
5264
|
<section id="section-results">
|
|
5240
5265
|
<div>
|
|
5241
5266
|
<slot name="resultstitle"></slot>
|
|
5242
5267
|
</div>
|
|
5243
5268
|
<div id="container-results" class="scroll">
|
|
5244
|
-
${this._results.length < 1 ?
|
|
5269
|
+
${this._results.length < 1 ? ge` <small class="no-results">No matching items</small> ` : ce}
|
|
5245
5270
|
<ul id="results" part="results">
|
|
5246
|
-
${this._config.aggregateResults ?
|
|
5271
|
+
${this._config.aggregateResults ? at(
|
|
5247
5272
|
this._resultAggregation.filter(
|
|
5248
5273
|
(r) => this.aggregateResults(
|
|
5249
5274
|
this._results,
|
|
5250
5275
|
r
|
|
5251
5276
|
).length
|
|
5252
5277
|
),
|
|
5253
|
-
(r) =>
|
|
5278
|
+
(r) => ge`<details
|
|
5254
5279
|
id="details-results"
|
|
5255
5280
|
open
|
|
5256
5281
|
>
|
|
@@ -5266,13 +5291,13 @@ let Ye = class extends ea {
|
|
|
5266
5291
|
</span>
|
|
5267
5292
|
</summary>
|
|
5268
5293
|
<ul>
|
|
5269
|
-
${
|
|
5294
|
+
${at(
|
|
5270
5295
|
this.aggregateResults(
|
|
5271
5296
|
this._results,
|
|
5272
5297
|
r
|
|
5273
5298
|
),
|
|
5274
5299
|
// @ts-ignore
|
|
5275
|
-
(e) =>
|
|
5300
|
+
(e) => ge`
|
|
5276
5301
|
<li>
|
|
5277
5302
|
<label>
|
|
5278
5303
|
<input
|
|
@@ -5292,7 +5317,7 @@ let Ye = class extends ea {
|
|
|
5292
5317
|
// @ts-ignore
|
|
5293
5318
|
`result-${e.id}`
|
|
5294
5319
|
),
|
|
5295
|
-
() =>
|
|
5320
|
+
() => ge`
|
|
5296
5321
|
<span class="title"
|
|
5297
5322
|
>${Ni(
|
|
5298
5323
|
// @ts-ignore
|
|
@@ -5307,10 +5332,10 @@ let Ye = class extends ea {
|
|
|
5307
5332
|
)}
|
|
5308
5333
|
</ul>
|
|
5309
5334
|
</details>`
|
|
5310
|
-
) :
|
|
5335
|
+
) : at(
|
|
5311
5336
|
this._results,
|
|
5312
5337
|
// @ts-ignore
|
|
5313
|
-
(r) =>
|
|
5338
|
+
(r) => ge`<li part="result">
|
|
5314
5339
|
${// @ts-ignore
|
|
5315
5340
|
Ni(r[this._config.titleProperty])}
|
|
5316
5341
|
</li>`
|