@eox/itemfilter 1.6.2 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eox-itemfilter.js +171 -154
- package/dist/eox-itemfilter.umd.cjs +62 -45
- package/package.json +2 -2
- package/src/methods/results/create.js +14 -1
- package/src/style.eox.js +5 -1
- package/types/methods/results/create.d.ts.map +1 -1
- package/types/style.eox.d.ts +1 -1
- package/types/style.eox.d.ts.map +1 -1
package/dist/eox-itemfilter.js
CHANGED
|
@@ -281,7 +281,7 @@ Dr.elementStyles = [], Dr.shadowRootOptions = { mode: "open" }, Dr[yn("elementPr
|
|
|
281
281
|
*/
|
|
282
282
|
const bn = globalThis, Xn = bn.trustedTypes, ws = Xn ? Xn.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ss = "$lit$", Ot = `lit$${Math.random().toFixed(9).slice(2)}$`, os = "?" + Ot, $a = `<${os}>`, ur = document, mn = () => ur.createComment(""), vn = (t) => t === null || typeof t != "object" && typeof t != "function", as = Array.isArray, Xs = (t) => as(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", Ei = `[
|
|
283
283
|
\f\r]`, fn = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, xs = /-->/g, $s = />/g, or = RegExp(`>|${Ei}(?:([^\\s"'>=/]+)(${Ei}*=${Ei}*(?:[^
|
|
284
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), _s = /'/g, As = /"/g, Js = /^(?:script|style|textarea|title)$/i, _a = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }),
|
|
284
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), _s = /'/g, As = /"/g, Js = /^(?:script|style|textarea|title)$/i, _a = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), re = _a(1), zt = Symbol.for("lit-noChange"), Me = Symbol.for("lit-nothing"), Ms = /* @__PURE__ */ new WeakMap(), cr = ur.createTreeWalker(ur, 129);
|
|
285
285
|
function Qs(t, e) {
|
|
286
286
|
if (!as(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
287
287
|
return ws !== void 0 ? ws.createHTML(e) : e;
|
|
@@ -376,7 +376,7 @@ class zr {
|
|
|
376
376
|
return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
|
|
377
377
|
}
|
|
378
378
|
constructor(e, r, n, i) {
|
|
379
|
-
this.type = 2, this._$AH =
|
|
379
|
+
this.type = 2, this._$AH = Me, this._$AN = void 0, this._$AA = e, this._$AB = r, this._$AM = n, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
|
|
380
380
|
}
|
|
381
381
|
get parentNode() {
|
|
382
382
|
let e = this._$AA.parentNode;
|
|
@@ -390,7 +390,7 @@ class zr {
|
|
|
390
390
|
return this._$AB;
|
|
391
391
|
}
|
|
392
392
|
_$AI(e, r = this) {
|
|
393
|
-
e = dr(this, e, r), vn(e) ? e ===
|
|
393
|
+
e = dr(this, e, r), vn(e) ? e === Me || e == null || e === "" ? (this._$AH !== Me && this._$AR(), this._$AH = Me) : e !== this._$AH && e !== zt && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Xs(e) ? this.k(e) : this._(e);
|
|
394
394
|
}
|
|
395
395
|
O(e) {
|
|
396
396
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -399,7 +399,7 @@ class zr {
|
|
|
399
399
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
400
400
|
}
|
|
401
401
|
_(e) {
|
|
402
|
-
this._$AH !==
|
|
402
|
+
this._$AH !== Me && vn(this._$AH) ? this._$AA.nextSibling.data = e : this.T(ur.createTextNode(e)), this._$AH = e;
|
|
403
403
|
}
|
|
404
404
|
$(e) {
|
|
405
405
|
var s;
|
|
@@ -441,7 +441,7 @@ class Mn {
|
|
|
441
441
|
return this._$AM._$AU;
|
|
442
442
|
}
|
|
443
443
|
constructor(e, r, n, i, s) {
|
|
444
|
-
this.type = 1, this._$AH =
|
|
444
|
+
this.type = 1, this._$AH = Me, this._$AN = void 0, this.element = e, this.name = r, this._$AM = i, this.options = s, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = Me;
|
|
445
445
|
}
|
|
446
446
|
_$AI(e, r = this, n, i) {
|
|
447
447
|
const s = this.strings;
|
|
@@ -450,12 +450,12 @@ class Mn {
|
|
|
450
450
|
else {
|
|
451
451
|
const l = e;
|
|
452
452
|
let c, d;
|
|
453
|
-
for (e = s[0], c = 0; c < s.length - 1; c++) d = dr(this, l[n + c], r, c), d === zt && (d = this._$AH[c]), o || (o = !vn(d) || d !== this._$AH[c]), d ===
|
|
453
|
+
for (e = s[0], c = 0; c < s.length - 1; c++) d = dr(this, l[n + c], r, c), d === zt && (d = this._$AH[c]), o || (o = !vn(d) || d !== this._$AH[c]), d === Me ? e = Me : e !== Me && (e += (d ?? "") + s[c + 1]), this._$AH[c] = d;
|
|
454
454
|
}
|
|
455
455
|
o && !i && this.j(e);
|
|
456
456
|
}
|
|
457
457
|
j(e) {
|
|
458
|
-
e ===
|
|
458
|
+
e === Me ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
class ro extends Mn {
|
|
@@ -463,7 +463,7 @@ class ro extends Mn {
|
|
|
463
463
|
super(...arguments), this.type = 3;
|
|
464
464
|
}
|
|
465
465
|
j(e) {
|
|
466
|
-
this.element[this.name] = e ===
|
|
466
|
+
this.element[this.name] = e === Me ? void 0 : e;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
class no extends Mn {
|
|
@@ -471,7 +471,7 @@ class no extends Mn {
|
|
|
471
471
|
super(...arguments), this.type = 4;
|
|
472
472
|
}
|
|
473
473
|
j(e) {
|
|
474
|
-
this.element.toggleAttribute(this.name, !!e && e !==
|
|
474
|
+
this.element.toggleAttribute(this.name, !!e && e !== Me);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
477
|
class io extends Mn {
|
|
@@ -479,8 +479,8 @@ class io extends Mn {
|
|
|
479
479
|
super(e, r, n, i, s), this.type = 5;
|
|
480
480
|
}
|
|
481
481
|
_$AI(e, r = this) {
|
|
482
|
-
if ((e = dr(this, e, r, 0) ??
|
|
483
|
-
const n = this._$AH, i = e ===
|
|
482
|
+
if ((e = dr(this, e, r, 0) ?? Me) === zt) return;
|
|
483
|
+
const n = this._$AH, i = e === Me && n !== Me || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, s = e !== Me && (n === Me || i);
|
|
484
484
|
i && this.element.removeEventListener(this.name, this, n), s && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
485
485
|
}
|
|
486
486
|
handleEvent(e) {
|
|
@@ -612,11 +612,12 @@ details {
|
|
|
612
612
|
#000000 20%,
|
|
613
613
|
transparent
|
|
614
614
|
);
|
|
615
|
-
--background-color:
|
|
615
|
+
--background-color: var(--eox-background-color, transparent);
|
|
616
616
|
--padding: 0.5rem;
|
|
617
617
|
--text-transform: capitalize;
|
|
618
618
|
--form-flex-direction: column;
|
|
619
619
|
--filter-display: block;
|
|
620
|
+
background-color: var(--background-color);
|
|
620
621
|
}
|
|
621
622
|
* {
|
|
622
623
|
font-family: Roboto, sans-serif;
|
|
@@ -1108,6 +1109,9 @@ eox-itemfilter-results li.highlighted {
|
|
|
1108
1109
|
font-size: x-small;
|
|
1109
1110
|
top: -8px;
|
|
1110
1111
|
}
|
|
1112
|
+
input {
|
|
1113
|
+
background-color: var(--background-color);
|
|
1114
|
+
}
|
|
1111
1115
|
`, Ea = `:root,:host { --spacing: 1rem; --block-spacing-vertical: calc(var(--spacing) * 2); --block-spacing-horizontal: var(--spacing); --background-color: var(--eox-background-color, white); --color: var(--eox-color, #2c3d49); --h-color: var(--eox-h-color, var(--color)); --hover-transparency: var(--eox-hover-transparency, 20%); --bg-hover-transparency: var(--eox-bg-hover-transparency, 40%); --btn-hover-transparency: var(--eox-btn-hover-transparency, 80%); --primary-color: var(--eox-primary-color, #004170); --primary-color-hover: color-mix( in srgb, var(--primary-color) var(--hover-transparency), transparent ); --primary-bg-color-hover: color-mix( in srgb, var(--primary-color) var(--bg-hover-transparency), transparent ); --primary-btn-color-hover: color-mix( in srgb, var(--primary-color) var(--btn-hover-transparency), transparent ); --secondary-color: var(--eox-secondary-color, #c6d4df); --secondary-color-hover: color-mix( in srgb, var(--secondary-color) var(--hover-transparency), transparent ); --secondary-bg-color-hover: color-mix( in srgb, var(--secondary-color) var(--bg-hover-transparency), transparent ); --secondary-btn-color-hover: color-mix( in srgb, var(--secondary-color) var(--btn-hover-transparency), transparent ); --success: var(--eox-success, #26cc0f); --warning: var(--eox-warning, #f18e32); --error: var(--eox-error, #ff5252); --header-font-family: var(--eox-header-font-family, "Roboto", sans-serif); --body-font-family: var(--eox-body-font-family, "Roboto", sans-serif);}* { font-size: normal; font-family: var(--body-font-family); color: var(--eox-color);}h1,h2,h3,h4,h5,h6 { font-family: var(--header-font-family);}span,p,div,main,label { font-family: var(--body-font-family);}@media (min-width: 576px) { .container { max-width: 510px; padding-right: 0; padding-left: 0; --block-spacing-vertical: calc(var(--spacing) * 2.5); }}@media (min-width: 768px) { .container { max-width: 700px; --block-spacing-vertical: calc(var(--spacing) * 3); }}@media (min-width: 992px) { .container { max-width: 920px; --block-spacing-vertical: calc(var(--spacing) * 3.5); }}@media (min-width: 1200px) { .container { max-width: 1130px; --block-spacing-vertical: calc(var(--spacing) * 4); }}.container { width: 100%; margin-right: auto; margin-left: auto; display: block; padding: var(--block-spacing-vertical) var(--block-spacing-horizontal);}h1,h2,h3 { line-height: 120%; margin-top: 0.8rem; margin-bottom: 0.8rem;}p { --font-size: 1rem; font-weight: 400; line-height: 170%; margin-top: 0.8rem; margin-bottom: 1.6rem; font-size: var(--font-size);}body { padding: 0; margin: 0;}.sb-show-main.sb-main-padded { padding: 0;}h1,h2,h3,h4,h5,h6 { --font-weight: 700;}h1 { --font-size: 3rem; --typography-spacing-vertical: 0.5rem;}h2 { --font-size: 2rem; --typography-spacing-vertical: 0.5rem;}h3 { --font-size: 1.75rem; --typography-spacing-vertical: 0.5rem;}h4 { --font-size: 1.5rem; --typography-spacing-vertical: 0.5rem;}h5 { --font-size: 1.25rem; --typography-spacing-vertical: 0.5rem;}h1,h2,h3,h4,h5,h6 { margin-top: 0; margin-bottom: var(--typography-spacing-vertical); color: var(--h-color); font-weight: var(--font-weight); font-size: var(--font-size); font-family: var(--header-font-family);}pre { position: relative; border-radius: 4px; z-index: 1; margin: 0; padding: 20px 0; background: transparent; background: var(--code-bg-color, #8e96aa24); overflow: auto;}code { display: block; padding: 0 24px; width: fit-content; min-width: 100%; line-height: var(--code-line-height, 1.7); font-family: var(--code-font-family, monospace); font-size: var(--code-font-size, var(--font-size)); color: var(--code-color, #004170);}:not(pre) > code { display: inline; border-radius: 4px; background: var(--code-bg-color, #8e96aa24); padding: var(--code-padding, 3px 6px);}button,.button { display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon):not(.json-editor-btntype-*),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-btn-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon,button[class*="json-editor-btntype-"] { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before,button[class*="json-editor-btntype-"]::before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0;}input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");}textarea { height: 90px; resize: none; border-radius: 4px; box-sizing: border-box !important; width: 100%; padding: 5px 7px; border: 1px solid var(--secondary-color); font-size: smaller; background: var(--background-color);}input[type="text"],input[type="url"],input[type="email"],input[type="password"],input[type="text"],input[type="number"],input[type="search"],input[type="tel"],select { box-sizing: border-box; width: 100%; margin-top: 0.5rem; margin-bottom: 0.5rem; padding: 5px 7px; border-radius: 4px; border: 1px solid #0004;}ul.list-wrap { padding: 0;}ul.list-wrap li:hover,ul.list-wrap li.selected { background: var(--secondary-bg-color-hover);}ul.list-wrap li { list-style: none; padding: 4px;}ul.list-wrap li { border-bottom: 1.2px solid var(--secondary-color);}ul.list-wrap li:first-child { border-top: 1.2px solid var(--secondary-color);}ul.list-wrap li .list { width: 100%; align-items: center; justify-content: space-between; display: flex; align-items: center; cursor: pointer; font-size: small; gap: 10px;}ul.list-wrap li .list span { display: flex; align-items: center; cursor: pointer; font-size: small; flex-grow: 1;}input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");}input[type="range"] { -webkit-appearance: none; width: 90%; margin-left: 5%; height: 6px; border-radius: 5px; background: #d7dcdf; outline: none; padding: 0;}input[type="range"]::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #2c3e50; cursor: pointer; transition: background 0.15s ease-in-out;}.range-slider { margin: 60px 0 0 0;}.range-slider { width: 100%;}input[type="range"]::-webkit-slider-thumb:hover { background: #00416f;}input[type="range"]:active::-webkit-slider-thumb { background: #00416f;}input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #2c3e50; cursor: pointer; transition: background 0.15s ease-in-out;}input[type="range"]::-moz-range-thumb:hover { background: #00416f;}input[type="range"]:active::-moz-range-thumb { background: #00416f;}input[type="range"]:focus::-webkit-slider-thumb { box-shadow: 0 0 0 3px #fff0, 0 0 0 6px #00416f00;}.range-slider__value { display: inline-block; position: relative; width: 60px; color: #fff; line-height: 20px; text-align: center; border-radius: 3px; background: #2c3e50; padding: 5px 10px; margin-left: 8px;}.range-slider__value:after { position: absolute; top: 8px; left: -7px; width: 0; height: 0; border-top: 7px solid transparent; border-right: 7px solid #2c3e50; border-bottom: 7px solid transparent; content: "";}input::-moz-focus-inner,input::-moz-focus-outer { border: 0;}`;
|
|
1112
1116
|
var ni, oo;
|
|
1113
1117
|
class Ca extends tt {
|
|
@@ -1127,18 +1131,18 @@ class Ca extends tt {
|
|
|
1127
1131
|
* Renders the HTML template for the component.
|
|
1128
1132
|
*/
|
|
1129
1133
|
render() {
|
|
1130
|
-
return
|
|
1134
|
+
return re`
|
|
1131
1135
|
<style>
|
|
1132
1136
|
${!this.unstyled && Sn}
|
|
1133
1137
|
</style>
|
|
1134
1138
|
|
|
1135
1139
|
${Ze(
|
|
1136
1140
|
this.filterObject.featured,
|
|
1137
|
-
() =>
|
|
1138
|
-
() =>
|
|
1141
|
+
() => re`<slot name="filter"></slot>`,
|
|
1142
|
+
() => re`<details
|
|
1139
1143
|
@toggle="${ye(this, ni, oo)}"
|
|
1140
1144
|
class="details-filter"
|
|
1141
|
-
?open=${this.filterObject.expanded ||
|
|
1145
|
+
?open=${this.filterObject.expanded || Me}
|
|
1142
1146
|
>
|
|
1143
1147
|
<summary>
|
|
1144
1148
|
<span
|
|
@@ -3755,11 +3759,11 @@ function Tc() {
|
|
|
3755
3759
|
}, C.valueOf = function() {
|
|
3756
3760
|
return this.$d.getTime();
|
|
3757
3761
|
}, C.startOf = function(S, H) {
|
|
3758
|
-
var L = this, V = !!J.u(H) || H, K = J.p(S), se = function(
|
|
3759
|
-
var De = J.w(L.$u ? Date.UTC(L.$y,
|
|
3762
|
+
var L = this, V = !!J.u(H) || H, K = J.p(S), se = function($e, ne) {
|
|
3763
|
+
var De = J.w(L.$u ? Date.UTC(L.$y, ne, $e) : new Date(L.$y, ne, $e), L);
|
|
3760
3764
|
return V ? De : De.endOf(d);
|
|
3761
|
-
}, be = function(
|
|
3762
|
-
return J.w(L.toDate()[
|
|
3765
|
+
}, be = function($e, ne) {
|
|
3766
|
+
return J.w(L.toDate()[$e].apply(L.toDate("s"), (V ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), L);
|
|
3763
3767
|
}, Se = this.$W, Re = this.$M, Ne = this.$D, Le = "set" + (this.$u ? "UTC" : "");
|
|
3764
3768
|
switch (K) {
|
|
3765
3769
|
case b:
|
|
@@ -3812,15 +3816,15 @@ function Tc() {
|
|
|
3812
3816
|
}, C.format = function(S) {
|
|
3813
3817
|
var H = this, L = this.$locale();
|
|
3814
3818
|
if (!this.isValid()) return L.invalidDate || k;
|
|
3815
|
-
var V = S || "YYYY-MM-DDTHH:mm:ssZ", K = J.z(this), se = this.$H, be = this.$m, Se = this.$M, Re = L.weekdays, Ne = L.months, Le = L.meridiem, te = function(
|
|
3816
|
-
return
|
|
3817
|
-
}, Z = function(
|
|
3818
|
-
return J.s(se % 12 || 12,
|
|
3819
|
-
},
|
|
3820
|
-
var me =
|
|
3819
|
+
var V = S || "YYYY-MM-DDTHH:mm:ssZ", K = J.z(this), se = this.$H, be = this.$m, Se = this.$M, Re = L.weekdays, Ne = L.months, Le = L.meridiem, te = function(ne, De, ot, me) {
|
|
3820
|
+
return ne && (ne[De] || ne(H, V)) || ot[De].slice(0, me);
|
|
3821
|
+
}, Z = function(ne) {
|
|
3822
|
+
return J.s(se % 12 || 12, ne, "0");
|
|
3823
|
+
}, $e = Le || function(ne, De, ot) {
|
|
3824
|
+
var me = ne < 12 ? "AM" : "PM";
|
|
3821
3825
|
return ot ? me.toLowerCase() : me;
|
|
3822
3826
|
};
|
|
3823
|
-
return V.replace(U, function(
|
|
3827
|
+
return V.replace(U, function(ne, De) {
|
|
3824
3828
|
return De || function(ot) {
|
|
3825
3829
|
switch (ot) {
|
|
3826
3830
|
case "YY":
|
|
@@ -3856,9 +3860,9 @@ function Tc() {
|
|
|
3856
3860
|
case "hh":
|
|
3857
3861
|
return Z(2);
|
|
3858
3862
|
case "a":
|
|
3859
|
-
return
|
|
3863
|
+
return $e(se, be, !0);
|
|
3860
3864
|
case "A":
|
|
3861
|
-
return
|
|
3865
|
+
return $e(se, be, !1);
|
|
3862
3866
|
case "m":
|
|
3863
3867
|
return String(be);
|
|
3864
3868
|
case "mm":
|
|
@@ -3873,7 +3877,7 @@ function Tc() {
|
|
|
3873
3877
|
return K;
|
|
3874
3878
|
}
|
|
3875
3879
|
return null;
|
|
3876
|
-
}(
|
|
3880
|
+
}(ne) || K.replace(":", "");
|
|
3877
3881
|
});
|
|
3878
3882
|
}, C.utcOffset = function() {
|
|
3879
3883
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
@@ -4075,7 +4079,7 @@ function Us(t, e) {
|
|
|
4075
4079
|
}
|
|
4076
4080
|
function Nc(t) {
|
|
4077
4081
|
return Object.keys(t).map((e) => ({
|
|
4078
|
-
title:
|
|
4082
|
+
title: re`${t[e].title || t[e].key}:
|
|
4079
4083
|
<strong>${t[e].stringifiedState}</strong>`,
|
|
4080
4084
|
key: e
|
|
4081
4085
|
})).filter((e) => t[e.key].dirty);
|
|
@@ -4165,11 +4169,11 @@ class Ic extends tt {
|
|
|
4165
4169
|
* Renders the HTML template for the component.
|
|
4166
4170
|
*/
|
|
4167
4171
|
render() {
|
|
4168
|
-
return
|
|
4172
|
+
return re`
|
|
4169
4173
|
<style>
|
|
4170
4174
|
${!this.unstyled && Sn}
|
|
4171
4175
|
</style>
|
|
4172
|
-
${this.inlineMode ?
|
|
4176
|
+
${this.inlineMode ? re`
|
|
4173
4177
|
<div
|
|
4174
4178
|
class="inline-container-wrapper"
|
|
4175
4179
|
@click="${ye(this, Ce, Xi)}"
|
|
@@ -4188,7 +4192,7 @@ class Ic extends tt {
|
|
|
4188
4192
|
|
|
4189
4193
|
${Ze(
|
|
4190
4194
|
Gi(this.filters),
|
|
4191
|
-
() =>
|
|
4195
|
+
() => re`
|
|
4192
4196
|
<span
|
|
4193
4197
|
class="chip-close"
|
|
4194
4198
|
@click=${() => this.dispatchEvent(new CustomEvent("reset"))}
|
|
@@ -4224,7 +4228,7 @@ class Ic extends tt {
|
|
|
4224
4228
|
</div>
|
|
4225
4229
|
</div>
|
|
4226
4230
|
</div>
|
|
4227
|
-
` :
|
|
4231
|
+
` : re`<slot name="section"></slot>`}
|
|
4228
4232
|
`;
|
|
4229
4233
|
}
|
|
4230
4234
|
}
|
|
@@ -4310,19 +4314,19 @@ function Bc() {
|
|
|
4310
4314
|
throw new TypeError(t);
|
|
4311
4315
|
oe = pe(oe) || 0, U(ge) && (C = !!ge.leading, S = "maxWait" in ge, de = S ? b(pe(ge.maxWait) || 0, oe) : de, H = "trailing" in ge ? !!ge.trailing : H);
|
|
4312
4316
|
function L(te) {
|
|
4313
|
-
var Z = ve,
|
|
4314
|
-
return ve = ke = void 0, P = te, J = R.apply(
|
|
4317
|
+
var Z = ve, $e = ke;
|
|
4318
|
+
return ve = ke = void 0, P = te, J = R.apply($e, Z), J;
|
|
4315
4319
|
}
|
|
4316
4320
|
function V(te) {
|
|
4317
4321
|
return P = te, we = setTimeout(be, oe), C ? L(te) : J;
|
|
4318
4322
|
}
|
|
4319
4323
|
function K(te) {
|
|
4320
|
-
var Z = te - Ie,
|
|
4321
|
-
return S ? A(
|
|
4324
|
+
var Z = te - Ie, $e = te - P, ne = oe - Z;
|
|
4325
|
+
return S ? A(ne, de - $e) : ne;
|
|
4322
4326
|
}
|
|
4323
4327
|
function se(te) {
|
|
4324
|
-
var Z = te - Ie,
|
|
4325
|
-
return Ie === void 0 || Z >= oe || Z < 0 || S &&
|
|
4328
|
+
var Z = te - Ie, $e = te - P;
|
|
4329
|
+
return Ie === void 0 || Z >= oe || Z < 0 || S && $e >= de;
|
|
4326
4330
|
}
|
|
4327
4331
|
function be() {
|
|
4328
4332
|
var te = k();
|
|
@@ -4409,7 +4413,7 @@ function Vc(t, e) {
|
|
|
4409
4413
|
}
|
|
4410
4414
|
function Kc(t, e, r) {
|
|
4411
4415
|
const n = r.filterObject.format === "date", i = r.filterObject.state[t], s = n ? $n.unix(i).format(Qi) : i;
|
|
4412
|
-
return
|
|
4416
|
+
return re`<div class="range-${e}">${s}</div>`;
|
|
4413
4417
|
}
|
|
4414
4418
|
function Gc(t) {
|
|
4415
4419
|
Yc(-1, t), hi(t.filterObject), t.requestUpdate();
|
|
@@ -4579,7 +4583,7 @@ class nu extends tt {
|
|
|
4579
4583
|
this.filterObject,
|
|
4580
4584
|
() => {
|
|
4581
4585
|
var r;
|
|
4582
|
-
return
|
|
4586
|
+
return re`
|
|
4583
4587
|
<style></style>
|
|
4584
4588
|
<div class="text-container">
|
|
4585
4589
|
<div class="text-container-wrapper">
|
|
@@ -4738,10 +4742,10 @@ const Ws = (t, e, r) => {
|
|
|
4738
4742
|
*/
|
|
4739
4743
|
class es extends Yo {
|
|
4740
4744
|
constructor(e) {
|
|
4741
|
-
if (super(e), this.it =
|
|
4745
|
+
if (super(e), this.it = Me, e.type !== Ko.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
4742
4746
|
}
|
|
4743
4747
|
render(e) {
|
|
4744
|
-
if (e ===
|
|
4748
|
+
if (e === Me || e == null) return this._t = void 0, this.it = e;
|
|
4745
4749
|
if (e === zt) return e;
|
|
4746
4750
|
if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
4747
4751
|
if (e === this.it) return this._t;
|
|
@@ -4753,11 +4757,11 @@ class es extends Yo {
|
|
|
4753
4757
|
es.directiveName = "unsafeHTML", es.resultType = 1;
|
|
4754
4758
|
const Oi = Go(es);
|
|
4755
4759
|
function uu(t, e) {
|
|
4756
|
-
return
|
|
4760
|
+
return re`
|
|
4757
4761
|
<details
|
|
4758
4762
|
class="details-results"
|
|
4759
4763
|
@toggle=${e.handleAccordion}
|
|
4760
|
-
?open=${e.config.expandResults ||
|
|
4764
|
+
?open=${e.config.expandResults || Me}
|
|
4761
4765
|
>
|
|
4762
4766
|
<summary>
|
|
4763
4767
|
<span class="title">
|
|
@@ -4779,14 +4783,14 @@ function uu(t, e) {
|
|
|
4779
4783
|
function Fo(t, e) {
|
|
4780
4784
|
const r = e.results, n = t ? e.aggregateResults(r, t) : r, i = e.config, s = (o) => {
|
|
4781
4785
|
var l;
|
|
4782
|
-
return ((l = e.selectedResult) == null ? void 0 : l[i.idProperty]) === o[i.idProperty] ? "highlighted" :
|
|
4786
|
+
return ((l = e.selectedResult) == null ? void 0 : l[i.idProperty]) === o[i.idProperty] ? "highlighted" : Me;
|
|
4783
4787
|
};
|
|
4784
|
-
return
|
|
4788
|
+
return re`
|
|
4785
4789
|
<ul class=${e.resultType}>
|
|
4786
4790
|
${cu(
|
|
4787
4791
|
n,
|
|
4788
4792
|
(o) => o.id,
|
|
4789
|
-
(o) =>
|
|
4793
|
+
(o) => re`
|
|
4790
4794
|
<li
|
|
4791
4795
|
class=${s(o)}
|
|
4792
4796
|
@click=${() => {
|
|
@@ -4800,13 +4804,26 @@ function Fo(t, e) {
|
|
|
4800
4804
|
<span id="${o.id}">
|
|
4801
4805
|
${Ze(
|
|
4802
4806
|
i.subTitleProperty || i.imageProperty,
|
|
4803
|
-
() =>
|
|
4804
|
-
${_n(i.imageProperty, o) ?
|
|
4807
|
+
() => re`
|
|
4808
|
+
${_n(i.imageProperty, o) ? re`
|
|
4805
4809
|
<img
|
|
4806
4810
|
class="image"
|
|
4807
4811
|
src="${_n(i.imageProperty, o)}"
|
|
4808
4812
|
/>
|
|
4809
|
-
` :
|
|
4813
|
+
` : re`
|
|
4814
|
+
<svg
|
|
4815
|
+
class="image"
|
|
4816
|
+
width="800"
|
|
4817
|
+
height="600"
|
|
4818
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4819
|
+
>
|
|
4820
|
+
<rect
|
|
4821
|
+
width="800"
|
|
4822
|
+
height="600"
|
|
4823
|
+
fill="var(--primary-color)"
|
|
4824
|
+
/>
|
|
4825
|
+
</svg>
|
|
4826
|
+
`}
|
|
4810
4827
|
<div class="title-container">
|
|
4811
4828
|
<span class="title"
|
|
4812
4829
|
>${Oi(o[i.titleProperty])}</span
|
|
@@ -4816,7 +4833,7 @@ function Fo(t, e) {
|
|
|
4816
4833
|
>
|
|
4817
4834
|
</div>
|
|
4818
4835
|
`,
|
|
4819
|
-
() =>
|
|
4836
|
+
() => re`
|
|
4820
4837
|
<span class="title"
|
|
4821
4838
|
>${Oi(o[i.titleProperty])}</span
|
|
4822
4839
|
>
|
|
@@ -4877,14 +4894,14 @@ class du extends tt {
|
|
|
4877
4894
|
* Renders the HTML template for the component.
|
|
4878
4895
|
*/
|
|
4879
4896
|
render() {
|
|
4880
|
-
return
|
|
4897
|
+
return re`
|
|
4881
4898
|
<section id="section-results">
|
|
4882
4899
|
<div slot="resultstitle"></div>
|
|
4883
4900
|
<div id="container-results" class="scroll">
|
|
4884
4901
|
${Ze(
|
|
4885
4902
|
this.results.length < 1,
|
|
4886
|
-
() =>
|
|
4887
|
-
() =>
|
|
4903
|
+
() => re`<small class="no-results">No matching items</small>`,
|
|
4904
|
+
() => Me
|
|
4888
4905
|
)}
|
|
4889
4906
|
<ul id="results" part="results">
|
|
4890
4907
|
${Ze(
|
|
@@ -4893,9 +4910,9 @@ class du extends tt {
|
|
|
4893
4910
|
this.resultAggregation.filter(
|
|
4894
4911
|
(r) => this.aggregateResults(this.results, r).length
|
|
4895
4912
|
),
|
|
4896
|
-
(r) =>
|
|
4913
|
+
(r) => re`${Ze(
|
|
4897
4914
|
this.aggregateResults(this.results, r).length === 1 && this.config.autoSpreadSingle,
|
|
4898
|
-
() =>
|
|
4915
|
+
() => re`<div style="margin-left: -8px">
|
|
4899
4916
|
${ye(this, pr, ts).call(this, r)}
|
|
4900
4917
|
</div>`,
|
|
4901
4918
|
() => ye(this, pr, Zo).call(this, r)
|
|
@@ -4971,8 +4988,8 @@ class Xo extends tt {
|
|
|
4971
4988
|
* Renders the HTML template for the component.
|
|
4972
4989
|
*/
|
|
4973
4990
|
render() {
|
|
4974
|
-
const r = this.type.includes("multi") ? "checkbox" : "radio", n = this.filteredSuggestions.length > 5 ? "select-overflow" :
|
|
4975
|
-
return
|
|
4991
|
+
const r = this.type.includes("multi") ? "checkbox" : "radio", n = this.filteredSuggestions.length > 5 ? "select-overflow" : Me;
|
|
4992
|
+
return re`
|
|
4976
4993
|
<style>
|
|
4977
4994
|
${!this.unstyled && Sn}
|
|
4978
4995
|
${!this.unstyled && hu}
|
|
@@ -4980,7 +4997,7 @@ class Xo extends tt {
|
|
|
4980
4997
|
</style>
|
|
4981
4998
|
${Ze(
|
|
4982
4999
|
this.suggestions.length > 10,
|
|
4983
|
-
() =>
|
|
5000
|
+
() => re`<div class="autocomplete-container">
|
|
4984
5001
|
<div class="autocomplete-container-wrapper">
|
|
4985
5002
|
<input
|
|
4986
5003
|
autocomplete="off"
|
|
@@ -5000,7 +5017,7 @@ class Xo extends tt {
|
|
|
5000
5017
|
<div class="select-container ${n}">
|
|
5001
5018
|
<ul class="${this.type}">
|
|
5002
5019
|
${this.filteredSuggestions.map(
|
|
5003
|
-
(i) =>
|
|
5020
|
+
(i) => re`
|
|
5004
5021
|
<li
|
|
5005
5022
|
data-identifier="${i.toString().toLowerCase()}"
|
|
5006
5023
|
data-title="${i}"
|
|
@@ -5069,7 +5086,7 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5069
5086
|
var t = Object.defineProperty, e = Math.pow, r = (u, p, _) => p in u ? t(u, p, { enumerable: !0, configurable: !0, writable: !0, value: _ }) : u[p] = _, n = (u, p, _) => (r(u, typeof p != "symbol" ? p + "" : p, _), _), i = (u, p) => ` ${p && p.length > 0 ? p.map((_) => `<link rel="stylesheet" href="${_}" />`).join("") : ""} <style> ${u} </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", l = "pointers-min-distance", c = "pointers-max-distance", d = "range-dragging", g = "data", y = "min", w = "max", b = "step", A = "round", k = "type", W = "theme", U = "rtl", ie = "btt", ee = "disabled", pe = "keyboard-disabled", R = "mousewheel-disabled", oe = "slider-width", ge = "slider-height", ve = "slider-radius", ke = "slider-bg", de = "slider-bg-hover", J = "slider-bg-fill", we = "pointer-width", Ie = "pointer-height", P = "pointer-radius", C = "pointer-bg", S = "pointer-bg-hover", H = "pointer-bg-focus", L = "pointer-shadow", V = "pointer-shadow-hover", K = "pointer-shadow-focus", se = "pointer-border", be = "pointer-border-hover", Se = "pointer-border-focus", Re = "animate-onclick", Ne = "css-links", Le = "vertical", te = "horizontal", Z = (u, p, _, v, T) => {
|
|
5070
5087
|
let G = p - u;
|
|
5071
5088
|
return G === 0 ? _ : (v - _) * (T - u) / G + _;
|
|
5072
|
-
},
|
|
5089
|
+
}, $e = (u) => !isNaN(parseFloat(u)) && isFinite(u), ne = (u, p) => $e(u) ? Number(u) : p, De = (u, p) => p === 0 ? 0 : Math.round(u / p) * p, ot = (u, p = 1 / 0) => {
|
|
5073
5090
|
if (p === 1 / 0) return u;
|
|
5074
5091
|
let _ = e(10, p);
|
|
5075
5092
|
return Math.round(u * _) / _;
|
|
@@ -5083,22 +5100,22 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5083
5100
|
u.dispatchEvent(new CustomEvent("onKeyDown", { detail: { nativeEvent: p } }));
|
|
5084
5101
|
}, Vr = (u, p) => {
|
|
5085
5102
|
if (!p || p.length <= 0) return;
|
|
5086
|
-
let _ = p.map((T) =>
|
|
5103
|
+
let _ = p.map((T) => $e(T) ? ne(T, T) : T), v = { values: _ || [] };
|
|
5087
5104
|
v.value = _[0], v.value0 = _[0], v.value1 = _[0];
|
|
5088
5105
|
for (let T = 1; T < _.length; T++) v[`value${T + 1}`] = _[T];
|
|
5089
5106
|
u.dispatchEvent(new CustomEvent("change", { detail: v }));
|
|
5090
5107
|
}, Gt = (u, p, _) => {
|
|
5091
|
-
let v = 0, T, G, Y, O, j = !1, ae = (F,
|
|
5108
|
+
let v = 0, T, G, Y, O, j = !1, ae = (F, Ae, He, je, Oe, Pe) => {
|
|
5092
5109
|
let Ve = v;
|
|
5093
|
-
He !== void 0 && F > He && (F = He),
|
|
5110
|
+
He !== void 0 && F > He && (F = He), Ae !== void 0 && F < Ae && (F = Ae), v = F;
|
|
5094
5111
|
let Ke = v;
|
|
5095
5112
|
return (je === Le && Pe || je === te && Oe) && (Ke = 100 - Ke), je === Le ? p.style.top = `${Ke}%` : p.style.left = `${Ke}%`, Ve !== v;
|
|
5096
|
-
}, ue = (F) => F === p || p.contains(F), z = (F,
|
|
5097
|
-
T = F, G =
|
|
5113
|
+
}, ue = (F) => F === p || p.contains(F), z = (F, Ae, He, je) => {
|
|
5114
|
+
T = F, G = Ae, Y = He, O = je;
|
|
5098
5115
|
}, he = (F) => {
|
|
5099
5116
|
j = F, p.classList.toggle("disabled", j), j ? p.setAttribute("aria-disabled", "true") : p.hasAttribute("aria-disabled") && p.removeAttribute("aria-disabled");
|
|
5100
|
-
}, Qe = (F,
|
|
5101
|
-
|
|
5117
|
+
}, Qe = (F, Ae) => {
|
|
5118
|
+
Ae == null ? p.removeAttribute(F) : p.setAttribute(F, Ae);
|
|
5102
5119
|
}, ze = (F) => p.getAttribute(F), B = (F) => {
|
|
5103
5120
|
if (!j) {
|
|
5104
5121
|
switch (F.key) {
|
|
@@ -5140,19 +5157,19 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5140
5157
|
let p = u.split(","), _ = [], v = !0;
|
|
5141
5158
|
for (let T = 0; T < p.length; T++) {
|
|
5142
5159
|
let G = p[T].trim();
|
|
5143
|
-
G !== "" && (_.push(G),
|
|
5160
|
+
G !== "" && (_.push(G), $e(G) || (v = !1));
|
|
5144
5161
|
}
|
|
5145
5162
|
return v ? _.map((T) => Number(T)) : _;
|
|
5146
5163
|
}, Yt = (u, p) => p ? p.findIndex((_) => _ === u || _.toString().trim() === u.toString().trim()) : -1, Kr = (u) => ({ updatePosition: (p, _, v, T) => {
|
|
5147
5164
|
if (_.length <= 0) return;
|
|
5148
5165
|
let G = _.length === 1, Y = _[0], O = _[_.length - 1];
|
|
5149
5166
|
p === Le ? (u.style.removeProperty("width"), u.style.removeProperty("right"), u.style.removeProperty("left"), G ? u.style.height = `${Y}%` : u.style.height = `${Math.abs(Y - O)}%`, T ? (u.style.bottom = "0%", G ? u.style.top = "auto" : u.style.top = `${Math.min(100 - O, 100 - Y)}%`) : (u.style.bottom = "auto", G ? u.style.top = "0%" : u.style.top = `${Math.min(Y, O)}%`)) : (u.style.removeProperty("height"), u.style.removeProperty("top"), u.style.removeProperty("bottom"), G ? u.style.width = `${Y}%` : u.style.width = `${Math.abs(Y - O)}%`, v ? (u.style.right = "0%", G ? u.style.left = "auto" : u.style.left = `${Math.min(100 - O, 100 - Y)}%`) : (u.style.right = "auto", G ? u.style.left = "0%" : u.style.left = `${Math.min(Y, O)}%`));
|
|
5150
|
-
} }), vr = "--animate-onclick", Gr = "--width", Ft = "--height", Yr = "--panel-bg-border-radius", Fr = "--panel-bg", wr = "--panel-bg-hover", Zr = "--panel-bg-fill", x = "--pointer-width", E = "--pointer-height", q = "--pointer-border-radius",
|
|
5167
|
+
} }), vr = "--animate-onclick", Gr = "--width", Ft = "--height", Yr = "--panel-bg-border-radius", Fr = "--panel-bg", wr = "--panel-bg-hover", Zr = "--panel-bg-fill", x = "--pointer-width", E = "--pointer-height", q = "--pointer-border-radius", _e = "--pointer-bg", dt = "--pointer-bg-hover", Be = "--pointer-bg-focus", ht = "--pointer-shadow", yt = "--pointer-shadow-hover", Xe = "--pointer-shadow-focus", Zt = "--pointer-border", bt = "--pointer-border-hover", Et = "--pointer-border-focus", mt = (u, p, _) => {
|
|
5151
5168
|
let v = /* @__PURE__ */ new Map();
|
|
5152
5169
|
for (let T of u.attributes) {
|
|
5153
5170
|
let G = T.nodeName.trim().toLowerCase();
|
|
5154
5171
|
if (!p.test(G)) continue;
|
|
5155
|
-
let Y = G.replace(/\D/g, "").trim(), O = Y === "" || Y === "0" || Y === "1" ? 0 :
|
|
5172
|
+
let Y = G.replace(/\D/g, "").trim(), O = Y === "" || Y === "0" || Y === "1" ? 0 : ne(Y, 0) - 1, j = _ && typeof _ == "function" ? _(T.value) : T.value;
|
|
5156
5173
|
v.set(O, j);
|
|
5157
5174
|
}
|
|
5158
5175
|
return v;
|
|
@@ -5163,10 +5180,10 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5163
5180
|
let _ = p.split(";"), v = [];
|
|
5164
5181
|
for (let T of _) T.trim() !== "" && v.push(T.trim());
|
|
5165
5182
|
return v;
|
|
5166
|
-
}, xr = [[Gr, oe, "sliderWidth", null], [Ft, ge, "sliderHeight", null], [Yr, ve, "sliderRadius", null], [Fr, ke, "sliderBg", null], [wr, de, "sliderBgHover", null], [Zr, J, "sliderBgFill", null], [x, we, "pointer#Width", /^pointer([0-9]*)-width$/], [E, Ie, "pointer#Height", /^pointer([0-9]*)-height$/], [q, P, "pointer#Radius", /^pointer([0-9]*)-radius$/], [
|
|
5183
|
+
}, xr = [[Gr, oe, "sliderWidth", null], [Ft, ge, "sliderHeight", null], [Yr, ve, "sliderRadius", null], [Fr, ke, "sliderBg", null], [wr, de, "sliderBgHover", null], [Zr, J, "sliderBgFill", null], [x, we, "pointer#Width", /^pointer([0-9]*)-width$/], [E, Ie, "pointer#Height", /^pointer([0-9]*)-height$/], [q, P, "pointer#Radius", /^pointer([0-9]*)-radius$/], [_e, C, "pointer#Bg", /^pointer([0-9]*)-bg$/], [dt, S, "pointer#BgHover", /^pointer([0-9]*)-bg-hover$/], [Be, H, "pointer#BgFocus", /^pointer([0-9]*)-bg-focus$/], [ht, L, "pointer#Shadow", /^pointer([0-9]*)-shadow$/], [yt, V, "pointer#ShadowHover", /^pointer([0-9]*)-shadow-hover$/], [Xe, K, "pointer#ShadowFocus", /^pointer([0-9]*)-shadow-focus$/], [Zt, se, "pointer#Border", /^pointer([0-9]*)-border$/], [bt, be, "pointer#BorderHover", /^pointer([0-9]*)-border-hover$/], [Et, Se, "pointer#BorderFocus", /^pointer([0-9]*)-border-focus$/]], Xt = (u, p, _) => {
|
|
5167
5184
|
let v = null, T = [], G = /* @__PURE__ */ new Map(), Y = (B, ce = p) => {
|
|
5168
5185
|
let F = [...ce.classList];
|
|
5169
|
-
for (let
|
|
5186
|
+
for (let Ae of F) Ae.startsWith(B) && p.classList.remove(Ae);
|
|
5170
5187
|
}, O = () => {
|
|
5171
5188
|
Y("shape");
|
|
5172
5189
|
let B = p.querySelectorAll(".pointer");
|
|
@@ -5196,9 +5213,9 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5196
5213
|
ae();
|
|
5197
5214
|
}
|
|
5198
5215
|
}, he = (B, ce) => `${B}-${ce}`, Qe = (B, ce, F) => {
|
|
5199
|
-
let
|
|
5200
|
-
if (!
|
|
5201
|
-
let He = F === 0 ? p :
|
|
5216
|
+
let Ae = _[F];
|
|
5217
|
+
if (!Ae) return;
|
|
5218
|
+
let He = F === 0 ? p : Ae.$pointer;
|
|
5202
5219
|
if (ce == null) {
|
|
5203
5220
|
G.has(he(B, F)) && G.delete(he(B, F)), He.style.removeProperty(B);
|
|
5204
5221
|
return;
|
|
@@ -5207,7 +5224,7 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5207
5224
|
}, ze = (B, ce) => G.get(he(B, ce));
|
|
5208
5225
|
return (() => {
|
|
5209
5226
|
for (let B of xr) {
|
|
5210
|
-
let [ce, F,
|
|
5227
|
+
let [ce, F, Ae, He] = B;
|
|
5211
5228
|
if (He) {
|
|
5212
5229
|
let Oe = mt(u, He);
|
|
5213
5230
|
for (let Pe of Oe) {
|
|
@@ -5219,10 +5236,10 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5219
5236
|
Qe(ce, Oe, 0);
|
|
5220
5237
|
}
|
|
5221
5238
|
let je = [];
|
|
5222
|
-
if (
|
|
5239
|
+
if (Ae.indexOf("#") === -1) je.push([Ae, 0]);
|
|
5223
5240
|
else {
|
|
5224
|
-
je.push([
|
|
5225
|
-
for (let Oe = 1; Oe < _.length; Oe++) je.push([
|
|
5241
|
+
je.push([Ae.replace("#", ""), 0]), je.push([Ae.replace("#", "0"), 0]), je.push([Ae.replace("#", "1"), 0]);
|
|
5242
|
+
for (let Oe = 1; Oe < _.length; Oe++) je.push([Ae.replace("#", (Oe + 1).toString()), Oe]);
|
|
5226
5243
|
}
|
|
5227
5244
|
for (let Oe of je) try {
|
|
5228
5245
|
let Pe = Oe[0], Ve = Oe[1];
|
|
@@ -5275,7 +5292,7 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5275
5292
|
for (let O of u.attributes) {
|
|
5276
5293
|
let j = O.nodeName.trim().toLowerCase();
|
|
5277
5294
|
if (!v.test(j)) continue;
|
|
5278
|
-
let ae = j.replace("value", "").trim(), ue = ae === "" || ae === "0" || ae === "1" ? 0 :
|
|
5295
|
+
let ae = j.replace("value", "").trim(), ue = ae === "" || ae === "0" || ae === "1" ? 0 : ne(ae, 0) - 1, z = $e(O.value) ? ne(O.value, 0) : O.value;
|
|
5279
5296
|
_.set(ue, z);
|
|
5280
5297
|
}
|
|
5281
5298
|
let T = Math.max(...Array.from(_.keys())), G = [];
|
|
@@ -5293,7 +5310,7 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5293
5310
|
let O = p.pointers[_];
|
|
5294
5311
|
if (!O) return;
|
|
5295
5312
|
let j = p.getTextValue(O.percent);
|
|
5296
|
-
return
|
|
5313
|
+
return $e(j) ? ne(j, j) : j;
|
|
5297
5314
|
}, set: (O) => {
|
|
5298
5315
|
p.pointers[_] ? p == null || p.setValue(O, _) : p == null || p.addPointer(O);
|
|
5299
5316
|
} }), Object.defineProperty(u, T, { configurable: !0, get() {
|
|
@@ -5331,7 +5348,7 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5331
5348
|
p.$pointer.style.zIndex = (Cn * 2).toString();
|
|
5332
5349
|
}
|
|
5333
5350
|
}, Qt = 0, Nt = 100, Je = 2, Pn = "0.3s", bi = (u, p, _) => {
|
|
5334
|
-
let v = _.map((f) => f[0]), T = null, G = null, Y = null, O = null, j = Qt, ae = Nt, ue, z, he = te, Qe = Je, ze = !1, B = !1, ce = !1, F = 0,
|
|
5351
|
+
let v = _.map((f) => f[0]), T = null, G = null, Y = null, O = null, j = Qt, ae = Nt, ue, z, he = te, Qe = Je, ze = !1, B = !1, ce = !1, F = 0, Ae = 1 / 0, He = !1, je, Oe, Pe = !1, Ve = !1, Ke = !1, wt = Pn, Tn = [], Qr = (f) => {
|
|
5335
5352
|
Pe || (f.preventDefault && f.preventDefault(), Ct(f), window.addEventListener("mousemove", Ct), window.addEventListener("mouseup", Ar), br(u, f));
|
|
5336
5353
|
}, Ar = (f) => {
|
|
5337
5354
|
Pe || (je = void 0, Oe = void 0, window.removeEventListener("mousemove", Ct), window.removeEventListener("mouseup", Ar), wt && p.classList.add(vt), St(u, f));
|
|
@@ -5398,7 +5415,7 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5398
5415
|
kt();
|
|
5399
5416
|
}, _i = (f) => {
|
|
5400
5417
|
if (!(ce || v.length <= 1 || ae === j)) if (f === 0) {
|
|
5401
|
-
let $ =
|
|
5418
|
+
let $ = Ae * 100 / (ae - j);
|
|
5402
5419
|
return Math.max(0, v[f + 1].percent - $);
|
|
5403
5420
|
} else {
|
|
5404
5421
|
let $ = F * 100 / (ae - j);
|
|
@@ -5406,7 +5423,7 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5406
5423
|
}
|
|
5407
5424
|
}, Ai = (f) => {
|
|
5408
5425
|
if (!(ce || v.length <= 1 || ae === j)) if (f === v.length - 1) {
|
|
5409
|
-
let $ =
|
|
5426
|
+
let $ = Ae * 100 / (ae - j);
|
|
5410
5427
|
return Math.min(v[f - 1].percent + $, 100);
|
|
5411
5428
|
} else {
|
|
5412
5429
|
let $ = F * 100 / (ae - j);
|
|
@@ -5418,7 +5435,7 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5418
5435
|
let N = Z(0, 100, j, ae, f);
|
|
5419
5436
|
$ = ue(N, f);
|
|
5420
5437
|
} else $ = ue;
|
|
5421
|
-
if (
|
|
5438
|
+
if ($e($)) {
|
|
5422
5439
|
let N = ae - j;
|
|
5423
5440
|
return $ = N === 0 ? 0 : $ * 100 / N, $;
|
|
5424
5441
|
}
|
|
@@ -5432,7 +5449,7 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5432
5449
|
}, xt = (f) => {
|
|
5433
5450
|
var $;
|
|
5434
5451
|
return v.length <= 1 || f >= v.length - 1 || ce ? Lt() : ($ = Ht(v[f + 1].percent)) != null ? $ : "";
|
|
5435
|
-
}, Hn = () => v.map((f) => f.percent), In = () => v.map((f) => Ht(f.percent)), tn = () => v.map((f) => f.$pointer), nr = () => j, Bn = () => ae, rn = () => z, nn = () => he, Cr = () => Qe, kr = () => F, sn = () =>
|
|
5452
|
+
}, Hn = () => v.map((f) => f.percent), In = () => v.map((f) => Ht(f.percent)), tn = () => v.map((f) => f.$pointer), nr = () => j, Bn = () => ae, rn = () => z, nn = () => he, Cr = () => Qe, kr = () => F, sn = () => Ae, Lr = (f) => Tn[f], ft = () => ze, on = () => B, an = () => Pe, ir = () => Ve, Pr = () => Ke, sr = () => ce, rt = () => He, Ue = (f, $) => {
|
|
5436
5453
|
if ($ === void 0) return;
|
|
5437
5454
|
let N = rr($);
|
|
5438
5455
|
N !== void 0 && ($ = De($, N));
|
|
@@ -5448,7 +5465,7 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5448
5465
|
}, at = () => {
|
|
5449
5466
|
for (let f = 0; f < v.length; f++) Ue(f, v[f].percent);
|
|
5450
5467
|
}, Un = (f, $) => {
|
|
5451
|
-
j = z !== void 0 ? 0 :
|
|
5468
|
+
j = z !== void 0 ? 0 : ne(f, Qt), ae = z !== void 0 ? z.length - 1 : ne($, Nt), Pt(j), Tt(ae);
|
|
5452
5469
|
}, ln = () => {
|
|
5453
5470
|
var f, $;
|
|
5454
5471
|
for (let N = 0; N < v.length; N++) {
|
|
@@ -5456,9 +5473,9 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5456
5473
|
le.setAttr("aria-valuemin", ((f = It(N)) != null ? f : "").toString()), le.setAttr("aria-valuemax", (($ = xt(N)) != null ? $ : "").toString());
|
|
5457
5474
|
}
|
|
5458
5475
|
}, Pt = (f) => {
|
|
5459
|
-
j =
|
|
5476
|
+
j = ne(f, Qt), j > ae && (ae = j + Nt), at();
|
|
5460
5477
|
}, Tt = (f) => {
|
|
5461
|
-
ae =
|
|
5478
|
+
ae = ne(f, Nt), ae < j && (ae = j + Nt), at();
|
|
5462
5479
|
}, Tr = (f) => {
|
|
5463
5480
|
ce = !0;
|
|
5464
5481
|
for (let $ = 0; $ < f.length; $++) Rr(f[$], $);
|
|
@@ -5466,7 +5483,7 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5466
5483
|
for (let $ = 0; $ < f.length; $++) Rr(f[$], $);
|
|
5467
5484
|
}, Rr = (f, $) => {
|
|
5468
5485
|
let N;
|
|
5469
|
-
z !== void 0 ? (N = f == null ? 0 : Yt(f, z), N === -1 && (N = 0)) : (N =
|
|
5486
|
+
z !== void 0 ? (N = f == null ? 0 : Yt(f, z), N === -1 && (N = 0)) : (N = ne(f, j), N < j && (N = j), N > ae && (N = ae));
|
|
5470
5487
|
let le = Z(j, ae, 0, 100, N);
|
|
5471
5488
|
Ue($, le);
|
|
5472
5489
|
}, Or = (f) => {
|
|
@@ -5478,8 +5495,8 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5478
5495
|
ue = f, at();
|
|
5479
5496
|
return;
|
|
5480
5497
|
}
|
|
5481
|
-
if (
|
|
5482
|
-
ue =
|
|
5498
|
+
if ($e(f)) {
|
|
5499
|
+
ue = ne(f, 1);
|
|
5483
5500
|
let $ = Math.abs(ae - j);
|
|
5484
5501
|
ue > $ && (ue = void 0), at();
|
|
5485
5502
|
return;
|
|
@@ -5488,9 +5505,9 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5488
5505
|
}, cn = (f) => {
|
|
5489
5506
|
ce = f, at();
|
|
5490
5507
|
}, un = (f) => {
|
|
5491
|
-
(
|
|
5508
|
+
(!$e(f) || f < 0) && (f = 0), F = f;
|
|
5492
5509
|
}, Bt = (f) => {
|
|
5493
|
-
(
|
|
5510
|
+
(!$e(f) || f < 0) && (f = 1 / 0), Ae = f;
|
|
5494
5511
|
}, dn = (f) => {
|
|
5495
5512
|
Pe = f, p.classList.toggle("disabled", Pe), Pe ? p.setAttribute("aria-disabled", "true") : p.hasAttribute("aria-disabled") && p.removeAttribute("aria-disabled");
|
|
5496
5513
|
}, zn = (f) => {
|
|
@@ -5520,7 +5537,7 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5520
5537
|
}, I = (f) => {
|
|
5521
5538
|
B = f, v.length > 1 && Ln(v, B, u), at(), kt();
|
|
5522
5539
|
}, D = (f) => {
|
|
5523
|
-
Qe =
|
|
5540
|
+
Qe = ne(f, Je), Qe < 0 && (Qe = Je), kt();
|
|
5524
5541
|
}, X = (f) => {
|
|
5525
5542
|
f == null || f.toString().trim().toLowerCase() === "false" ? (wt = void 0, p.style.removeProperty(vr), p.classList.remove(vt)) : (wt = f.toString(), p.style.setProperty(vr, wt), p.classList.add(vt));
|
|
5526
5543
|
}, Te = (f, $) => {
|
|
@@ -5558,7 +5575,7 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5558
5575
|
var f, $;
|
|
5559
5576
|
for (let le of v) le.setCallbacks(Rn, On, Dn, jn);
|
|
5560
5577
|
let N = (f = u.shadowRoot) == null ? void 0 : f.querySelector(".panel-fill");
|
|
5561
|
-
N && (G = Kr(N)), m(u.getAttribute(k)), M(me(u.getAttribute(U))), I(me(u.getAttribute(ie))), Un(u.getAttribute(y), u.getAttribute(w)), Or(u.getAttribute(b)), h(u.getAttribute(g)), Tr(_.map((le) => le[1])), cn(me(u.getAttribute(o))), un(
|
|
5578
|
+
N && (G = Kr(N)), m(u.getAttribute(k)), M(me(u.getAttribute(U))), I(me(u.getAttribute(ie))), Un(u.getAttribute(y), u.getAttribute(w)), Or(u.getAttribute(b)), h(u.getAttribute(g)), Tr(_.map((le) => le[1])), cn(me(u.getAttribute(o))), un(ne(u.getAttribute(l), 0)), Bt(ne(u.getAttribute(c), 1 / 0)), Ee(me(u.getAttribute(d))), D(ne(u.getAttribute(A), Je)), qe(), Ge(), Y = Xt(u, p, v), X(($ = u.getAttribute(Re)) != null ? $ : Pn), p.addEventListener("mousedown", Qr), p.addEventListener("mouseup", Ar), p.addEventListener("touchmove", Ct), p.addEventListener("touchstart", Ct), Ke || document.addEventListener("wheel", Sr, { passive: !1 }), O = Xr(u, Nn, { setValues: Tr, setMin: Pt, setMax: Tt, setStep: Or, setPointersOverlap: cn, setPointersMinDistance: un, setPointersMaxDistance: Bt, setDisabled: dn, setType: m, setRightToLeft: M, setBottomToTop: I, setRound: D, setKeyboardDisabled: zn, setMousewheelDisabled: a, setRangeDragging: Ee, setData: h }, { getPercents: Hn, getValues: In, getPointerElements: tn, getMin: nr, getMax: Bn, getStep: en, getData: rn, getType: nn, getRound: Cr, getTextMin: Er, getTextMax: Lt, isRightToLeft: ft, isBottomToTop: on, isDisabled: an, isKeyboardDisabled: ir, isMousewheelDisabled: Pr, isPointersOverlap: sr, isRangeDraggingEnabled: rt, getPointersMinDistance: kr, getPointersMaxDistance: sn }), O.init();
|
|
5562
5579
|
})(), { get pointers() {
|
|
5563
5580
|
return v;
|
|
5564
5581
|
}, get styles() {
|
|
@@ -5629,7 +5646,7 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5629
5646
|
}, mi = (u, p, _) => {
|
|
5630
5647
|
let v = xr.find(([O, j, ae, ue]) => j.replace("#", "") === p.replace(/\d+/g, ""));
|
|
5631
5648
|
if (v && u.styles) {
|
|
5632
|
-
let [O, j, ae, ue] = v, z = p.replace(/\D/g, "").trim(), he = z === "" || z === "0" || z === "1" ? 0 :
|
|
5649
|
+
let [O, j, ae, ue] = v, z = p.replace(/\D/g, "").trim(), he = z === "" || z === "0" || z === "1" ? 0 : ne(z, 0) - 1;
|
|
5633
5650
|
u.styles.setStyle(O, _, he);
|
|
5634
5651
|
return;
|
|
5635
5652
|
}
|
|
@@ -5651,7 +5668,7 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5651
5668
|
break;
|
|
5652
5669
|
}
|
|
5653
5670
|
case l: {
|
|
5654
|
-
u.pointersMinDistance =
|
|
5671
|
+
u.pointersMinDistance = ne(_, 0);
|
|
5655
5672
|
break;
|
|
5656
5673
|
}
|
|
5657
5674
|
case d: {
|
|
@@ -5659,7 +5676,7 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5659
5676
|
break;
|
|
5660
5677
|
}
|
|
5661
5678
|
case c: {
|
|
5662
|
-
u.pointersMaxDistance =
|
|
5679
|
+
u.pointersMaxDistance = ne(_, 1 / 0);
|
|
5663
5680
|
break;
|
|
5664
5681
|
}
|
|
5665
5682
|
case ee: {
|
|
@@ -5691,7 +5708,7 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5691
5708
|
break;
|
|
5692
5709
|
}
|
|
5693
5710
|
case A: {
|
|
5694
|
-
u.round =
|
|
5711
|
+
u.round = ne(_, Je);
|
|
5695
5712
|
break;
|
|
5696
5713
|
}
|
|
5697
5714
|
case W: {
|
|
@@ -5705,7 +5722,7 @@ customElements.define("eox-itemfilter-select", Xo);
|
|
|
5705
5722
|
}
|
|
5706
5723
|
let T = null;
|
|
5707
5724
|
if (/^value([0-9]*)$/.test(p) && (T = "value"), /^pointer([0-9]*)-disabled$/.test(p) && (T = "pointer-disabled"), /^aria-label([0-9]*)$/.test(p) && (T = "aria-label"), /^pointer([0-9]*)-shape$/.test(p) && (T = "pointer-shape"), !T) return;
|
|
5708
|
-
let G = p.replace(/\D/g, "").trim(), Y = G === "" || G === "0" || G === "1" ? 0 :
|
|
5725
|
+
let G = p.replace(/\D/g, "").trim(), Y = G === "" || G === "0" || G === "1" ? 0 : ne(G, 0) - 1;
|
|
5709
5726
|
switch (T) {
|
|
5710
5727
|
case "value": {
|
|
5711
5728
|
u.setValue(_, Y);
|
|
@@ -5924,7 +5941,7 @@ class ta extends tt {
|
|
|
5924
5941
|
render() {
|
|
5925
5942
|
return Ze(
|
|
5926
5943
|
this.filterObject,
|
|
5927
|
-
() =>
|
|
5944
|
+
() => re`
|
|
5928
5945
|
${ye(this, gr, rs).call(this, "min", "before")}
|
|
5929
5946
|
<tc-range-slider
|
|
5930
5947
|
min="${this.filterObject.min}"
|
|
@@ -5999,17 +6016,17 @@ class pu extends tt {
|
|
|
5999
6016
|
this.filterObject,
|
|
6000
6017
|
() => {
|
|
6001
6018
|
var r;
|
|
6002
|
-
return
|
|
6019
|
+
return re`
|
|
6003
6020
|
<form style="display: inline">
|
|
6004
6021
|
${ai(
|
|
6005
6022
|
["intersects", "within"],
|
|
6006
|
-
(n) =>
|
|
6023
|
+
(n) => re`
|
|
6007
6024
|
<label>
|
|
6008
6025
|
<input
|
|
6009
6026
|
tabindex=${this.tabIndex}
|
|
6010
6027
|
type="radio"
|
|
6011
6028
|
name="mode"
|
|
6012
|
-
.checked="${(this.filterObject.state.mode || "") === n ||
|
|
6029
|
+
.checked="${(this.filterObject.state.mode || "") === n || Me}"
|
|
6013
6030
|
value="${n}"
|
|
6014
6031
|
@click=${() => ye(this, si, na).call(this, n)}
|
|
6015
6032
|
/>
|
|
@@ -6070,7 +6087,7 @@ class gu extends tt {
|
|
|
6070
6087
|
* Renders the HTML template for the component.
|
|
6071
6088
|
*/
|
|
6072
6089
|
render() {
|
|
6073
|
-
return
|
|
6090
|
+
return re`<div id="eox-map"></div>`;
|
|
6074
6091
|
}
|
|
6075
6092
|
}
|
|
6076
6093
|
oi = new WeakSet(), /**
|
|
@@ -6166,14 +6183,14 @@ class vu extends tt {
|
|
|
6166
6183
|
* Renders the HTML template for the component.
|
|
6167
6184
|
*/
|
|
6168
6185
|
render() {
|
|
6169
|
-
return
|
|
6186
|
+
return re`
|
|
6170
6187
|
<style>
|
|
6171
6188
|
${Sn}
|
|
6172
6189
|
</style>
|
|
6173
6190
|
<span class="chip-container">
|
|
6174
6191
|
${ai(
|
|
6175
6192
|
this.items,
|
|
6176
|
-
(r) =>
|
|
6193
|
+
(r) => re`
|
|
6177
6194
|
<span class="chip" @click=${ye(this, yr, sa).bind(this)}>
|
|
6178
6195
|
<span class="chip-title">${r.title}</span>
|
|
6179
6196
|
<span
|
|
@@ -6312,7 +6329,7 @@ function xu() {
|
|
|
6312
6329
|
var q = x ? x.length : 0;
|
|
6313
6330
|
return !!q && w(x, E, 0) > -1;
|
|
6314
6331
|
}
|
|
6315
|
-
function y(x, E, q,
|
|
6332
|
+
function y(x, E, q, _e) {
|
|
6316
6333
|
for (var dt = x.length, Be = q + -1; ++Be < dt; )
|
|
6317
6334
|
if (E(x[Be], Be, x))
|
|
6318
6335
|
return Be;
|
|
@@ -6321,9 +6338,9 @@ function xu() {
|
|
|
6321
6338
|
function w(x, E, q) {
|
|
6322
6339
|
if (E !== E)
|
|
6323
6340
|
return y(x, b, q);
|
|
6324
|
-
for (var
|
|
6325
|
-
if (x[
|
|
6326
|
-
return
|
|
6341
|
+
for (var _e = q - 1, dt = x.length; ++_e < dt; )
|
|
6342
|
+
if (x[_e] === E)
|
|
6343
|
+
return _e;
|
|
6327
6344
|
return -1;
|
|
6328
6345
|
}
|
|
6329
6346
|
function b(x) {
|
|
@@ -6346,8 +6363,8 @@ function xu() {
|
|
|
6346
6363
|
}
|
|
6347
6364
|
function U(x) {
|
|
6348
6365
|
var E = -1, q = Array(x.size);
|
|
6349
|
-
return x.forEach(function(
|
|
6350
|
-
q[++E] =
|
|
6366
|
+
return x.forEach(function(_e) {
|
|
6367
|
+
q[++E] = _e;
|
|
6351
6368
|
}), q;
|
|
6352
6369
|
}
|
|
6353
6370
|
var ie = Array.prototype, ee = Function.prototype, pe = Object.prototype, R = d["__core-js_shared__"], oe = function() {
|
|
@@ -6359,8 +6376,8 @@ function xu() {
|
|
|
6359
6376
|
function C(x) {
|
|
6360
6377
|
var E = -1, q = x ? x.length : 0;
|
|
6361
6378
|
for (this.clear(); ++E < q; ) {
|
|
6362
|
-
var
|
|
6363
|
-
this.set(
|
|
6379
|
+
var _e = x[E];
|
|
6380
|
+
this.set(_e[0], _e[1]);
|
|
6364
6381
|
}
|
|
6365
6382
|
}
|
|
6366
6383
|
function S() {
|
|
@@ -6389,8 +6406,8 @@ function xu() {
|
|
|
6389
6406
|
function se(x) {
|
|
6390
6407
|
var E = -1, q = x ? x.length : 0;
|
|
6391
6408
|
for (this.clear(); ++E < q; ) {
|
|
6392
|
-
var
|
|
6393
|
-
this.set(
|
|
6409
|
+
var _e = x[E];
|
|
6410
|
+
this.set(_e[0], _e[1]);
|
|
6394
6411
|
}
|
|
6395
6412
|
}
|
|
6396
6413
|
function be() {
|
|
@@ -6400,8 +6417,8 @@ function xu() {
|
|
|
6400
6417
|
var E = this.__data__, q = St(E, x);
|
|
6401
6418
|
if (q < 0)
|
|
6402
6419
|
return !1;
|
|
6403
|
-
var
|
|
6404
|
-
return q ==
|
|
6420
|
+
var _e = E.length - 1;
|
|
6421
|
+
return q == _e ? E.pop() : J.call(E, q, 1), !0;
|
|
6405
6422
|
}
|
|
6406
6423
|
function Re(x) {
|
|
6407
6424
|
var E = this.__data__, q = St(E, x);
|
|
@@ -6411,15 +6428,15 @@ function xu() {
|
|
|
6411
6428
|
return St(this.__data__, x) > -1;
|
|
6412
6429
|
}
|
|
6413
6430
|
function Le(x, E) {
|
|
6414
|
-
var q = this.__data__,
|
|
6415
|
-
return
|
|
6431
|
+
var q = this.__data__, _e = St(q, x);
|
|
6432
|
+
return _e < 0 ? q.push([x, E]) : q[_e][1] = E, this;
|
|
6416
6433
|
}
|
|
6417
6434
|
se.prototype.clear = be, se.prototype.delete = Se, se.prototype.get = Re, se.prototype.has = Ne, se.prototype.set = Le;
|
|
6418
6435
|
function te(x) {
|
|
6419
6436
|
var E = -1, q = x ? x.length : 0;
|
|
6420
6437
|
for (this.clear(); ++E < q; ) {
|
|
6421
|
-
var
|
|
6422
|
-
this.set(
|
|
6438
|
+
var _e = x[E];
|
|
6439
|
+
this.set(_e[0], _e[1]);
|
|
6423
6440
|
}
|
|
6424
6441
|
}
|
|
6425
6442
|
function Z() {
|
|
@@ -6429,10 +6446,10 @@ function xu() {
|
|
|
6429
6446
|
string: new C()
|
|
6430
6447
|
};
|
|
6431
6448
|
}
|
|
6432
|
-
function
|
|
6449
|
+
function $e(x) {
|
|
6433
6450
|
return jt(this, x).delete(x);
|
|
6434
6451
|
}
|
|
6435
|
-
function
|
|
6452
|
+
function ne(x) {
|
|
6436
6453
|
return jt(this, x).get(x);
|
|
6437
6454
|
}
|
|
6438
6455
|
function De(x) {
|
|
@@ -6441,7 +6458,7 @@ function xu() {
|
|
|
6441
6458
|
function ot(x, E) {
|
|
6442
6459
|
return jt(this, x).set(x, E), this;
|
|
6443
6460
|
}
|
|
6444
|
-
te.prototype.clear = Z, te.prototype.delete =
|
|
6461
|
+
te.prototype.clear = Z, te.prototype.delete = $e, te.prototype.get = ne, te.prototype.has = De, te.prototype.set = ot;
|
|
6445
6462
|
function me(x) {
|
|
6446
6463
|
var E = -1, q = x ? x.length : 0;
|
|
6447
6464
|
for (this.__data__ = new te(); ++E < q; )
|
|
@@ -6467,7 +6484,7 @@ function xu() {
|
|
|
6467
6484
|
return E.test(Gr(x));
|
|
6468
6485
|
}
|
|
6469
6486
|
function Vr(x, E, q) {
|
|
6470
|
-
var
|
|
6487
|
+
var _e = -1, dt = g, Be = x.length, ht = !0, yt = [], Xe = yt;
|
|
6471
6488
|
if (Be >= t) {
|
|
6472
6489
|
var Zt = Gt(x);
|
|
6473
6490
|
if (Zt)
|
|
@@ -6476,8 +6493,8 @@ function xu() {
|
|
|
6476
6493
|
} else
|
|
6477
6494
|
Xe = yt;
|
|
6478
6495
|
e:
|
|
6479
|
-
for (; ++
|
|
6480
|
-
var bt = x[
|
|
6496
|
+
for (; ++_e < Be; ) {
|
|
6497
|
+
var bt = x[_e], Et = bt;
|
|
6481
6498
|
if (bt = bt !== 0 ? bt : 0, ht && Et === Et) {
|
|
6482
6499
|
for (var mt = Xe.length; mt--; )
|
|
6483
6500
|
if (Xe[mt] === Et)
|
|
@@ -6545,7 +6562,7 @@ function _u() {
|
|
|
6545
6562
|
return Gs || (Gs = 1, function(t, e) {
|
|
6546
6563
|
var r = 200, n = "Expected a function", i = "__lodash_hash_undefined__", s = 1, o = 2, l = 1 / 0, c = 9007199254740991, d = "[object Arguments]", g = "[object Array]", y = "[object Boolean]", w = "[object Date]", b = "[object Error]", A = "[object Function]", k = "[object GeneratorFunction]", W = "[object Map]", U = "[object Number]", ie = "[object Object]", ee = "[object Promise]", pe = "[object RegExp]", R = "[object Set]", oe = "[object String]", ge = "[object Symbol]", ve = "[object WeakMap]", ke = "[object ArrayBuffer]", de = "[object DataView]", J = "[object Float32Array]", we = "[object Float64Array]", Ie = "[object Int8Array]", P = "[object Int16Array]", C = "[object Int32Array]", S = "[object Uint8Array]", H = "[object Uint8ClampedArray]", L = "[object Uint16Array]", V = "[object Uint32Array]", K = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, se = /^\w*$/, be = /^\./, Se = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Re = /[\\^$.*+?()[\]{}|]/g, Ne = /\\(\\)?/g, Le = /^\[object .+?Constructor\]$/, te = /^(?:0|[1-9]\d*)$/, Z = {};
|
|
6547
6564
|
Z[J] = Z[we] = Z[Ie] = Z[P] = Z[C] = Z[S] = Z[H] = Z[L] = Z[V] = !0, Z[d] = Z[g] = Z[ke] = Z[y] = Z[de] = Z[w] = Z[b] = Z[A] = Z[W] = Z[U] = Z[ie] = Z[pe] = Z[R] = Z[oe] = Z[ve] = !1;
|
|
6548
|
-
var
|
|
6565
|
+
var $e = typeof ct == "object" && ct && ct.Object === Object && ct, ne = typeof self == "object" && self && self.Object === Object && self, De = $e || ne || Function("return this")(), ot = e && !e.nodeType && e, me = ot && !0 && t && !t.nodeType && t, Wr = me && me.exports === ot, br = Wr && $e.process, St = function() {
|
|
6549
6566
|
try {
|
|
6550
6567
|
return br && br.binding("util");
|
|
6551
6568
|
} catch {
|
|
@@ -6611,7 +6628,7 @@ function _u() {
|
|
|
6611
6628
|
m[++h] = M;
|
|
6612
6629
|
}), m;
|
|
6613
6630
|
}
|
|
6614
|
-
var Zr = Array.prototype, x = Function.prototype, E = Object.prototype, q = De["__core-js_shared__"],
|
|
6631
|
+
var Zr = Array.prototype, x = Function.prototype, E = Object.prototype, q = De["__core-js_shared__"], _e = function() {
|
|
6615
6632
|
var a = /[^.]+$/.exec(q && q.keys && q.keys.IE_PROTO || "");
|
|
6616
6633
|
return a ? "Symbol(src)_1." + a : "";
|
|
6617
6634
|
}(), dt = x.toString, Be = E.hasOwnProperty, ht = E.toString, yt = RegExp(
|
|
@@ -6724,7 +6741,7 @@ function _u() {
|
|
|
6724
6741
|
function F(a) {
|
|
6725
6742
|
return this.__data__.delete(a);
|
|
6726
6743
|
}
|
|
6727
|
-
function
|
|
6744
|
+
function Ae(a) {
|
|
6728
6745
|
return this.__data__.get(a);
|
|
6729
6746
|
}
|
|
6730
6747
|
function He(a) {
|
|
@@ -6740,7 +6757,7 @@ function _u() {
|
|
|
6740
6757
|
}
|
|
6741
6758
|
return m.set(a, h), this;
|
|
6742
6759
|
}
|
|
6743
|
-
B.prototype.clear = ce, B.prototype.delete = F, B.prototype.get =
|
|
6760
|
+
B.prototype.clear = ce, B.prototype.delete = F, B.prototype.get = Ae, B.prototype.has = He, B.prototype.set = je;
|
|
6744
6761
|
function Oe(a, h) {
|
|
6745
6762
|
var m = rt(a) || sr(a) ? Kr(a.length, String) : [], M = m.length, I = !!M;
|
|
6746
6763
|
for (var D in a)
|
|
@@ -7056,7 +7073,7 @@ function _u() {
|
|
|
7056
7073
|
return h == "string" || h == "number" || h == "symbol" || h == "boolean" ? a !== "__proto__" : a === null;
|
|
7057
7074
|
}
|
|
7058
7075
|
function rn(a) {
|
|
7059
|
-
return !!
|
|
7076
|
+
return !!_e && _e in a;
|
|
7060
7077
|
}
|
|
7061
7078
|
function nn(a) {
|
|
7062
7079
|
var h = a && a.constructor, m = typeof h == "function" && h.prototype || E;
|
|
@@ -7235,7 +7252,7 @@ function Eu(t, e, r) {
|
|
|
7235
7252
|
const n = `filter-${t.key}`.replace("|", "-");
|
|
7236
7253
|
switch (t.type) {
|
|
7237
7254
|
case "text":
|
|
7238
|
-
return
|
|
7255
|
+
return re`<eox-itemfilter-text
|
|
7239
7256
|
data-type="filter"
|
|
7240
7257
|
data-cy="text-filter"
|
|
7241
7258
|
slot="filter"
|
|
@@ -7247,7 +7264,7 @@ function Eu(t, e, r) {
|
|
|
7247
7264
|
></eox-itemfilter-text>`;
|
|
7248
7265
|
case "multiselect":
|
|
7249
7266
|
case "select":
|
|
7250
|
-
return
|
|
7267
|
+
return re`
|
|
7251
7268
|
<eox-itemfilter-select
|
|
7252
7269
|
.inlineMode=${r.inlineMode || !1}
|
|
7253
7270
|
data-type="filter"
|
|
@@ -7264,7 +7281,7 @@ function Eu(t, e, r) {
|
|
|
7264
7281
|
></eox-itemfilter-select>
|
|
7265
7282
|
`;
|
|
7266
7283
|
case "range":
|
|
7267
|
-
return
|
|
7284
|
+
return re`
|
|
7268
7285
|
<eox-itemfilter-range
|
|
7269
7286
|
id="${n}"
|
|
7270
7287
|
data-type="filter"
|
|
@@ -7276,7 +7293,7 @@ function Eu(t, e, r) {
|
|
|
7276
7293
|
></eox-itemfilter-range>
|
|
7277
7294
|
`;
|
|
7278
7295
|
case "spatial":
|
|
7279
|
-
return
|
|
7296
|
+
return re`
|
|
7280
7297
|
<eox-itemfilter-spatial
|
|
7281
7298
|
id="${n}"
|
|
7282
7299
|
data-type="filter"
|
|
@@ -7287,7 +7304,7 @@ function Eu(t, e, r) {
|
|
|
7287
7304
|
></eox-itemfilter-spatial>
|
|
7288
7305
|
`;
|
|
7289
7306
|
default:
|
|
7290
|
-
return
|
|
7307
|
+
return re``;
|
|
7291
7308
|
}
|
|
7292
7309
|
}
|
|
7293
7310
|
function Cu(t, e) {
|
|
@@ -7296,10 +7313,10 @@ function Cu(t, e) {
|
|
|
7296
7313
|
);
|
|
7297
7314
|
}
|
|
7298
7315
|
function ku(t, e, r) {
|
|
7299
|
-
return
|
|
7316
|
+
return re`
|
|
7300
7317
|
${Ze(
|
|
7301
7318
|
t.dirty,
|
|
7302
|
-
() =>
|
|
7319
|
+
() => re`
|
|
7303
7320
|
<button
|
|
7304
7321
|
type="button"
|
|
7305
7322
|
tabindex=${e}
|
|
@@ -7310,7 +7327,7 @@ function ku(t, e, r) {
|
|
|
7310
7327
|
i && typeof i.reset == "function" && i.reset(), r.search(), r.requestUpdate();
|
|
7311
7328
|
}}
|
|
7312
7329
|
>
|
|
7313
|
-
${r.unstyled ? "Reset" :
|
|
7330
|
+
${r.unstyled ? "Reset" : Me}
|
|
7314
7331
|
</button>
|
|
7315
7332
|
`
|
|
7316
7333
|
)}
|
|
@@ -7465,7 +7482,7 @@ class Pu extends tt {
|
|
|
7465
7482
|
*/
|
|
7466
7483
|
render() {
|
|
7467
7484
|
var r;
|
|
7468
|
-
return
|
|
7485
|
+
return re`
|
|
7469
7486
|
<style>
|
|
7470
7487
|
${Sa}
|
|
7471
7488
|
${!this.unstyled && Sn}
|
|
@@ -7474,12 +7491,12 @@ class Pu extends tt {
|
|
|
7474
7491
|
</style>
|
|
7475
7492
|
<form
|
|
7476
7493
|
id="itemfilter"
|
|
7477
|
-
class=${this.inlineMode ? "inline" :
|
|
7494
|
+
class=${this.inlineMode ? "inline" : Me}
|
|
7478
7495
|
@submit="${(n) => n.preventDefault()}"
|
|
7479
7496
|
>
|
|
7480
7497
|
${Ze(
|
|
7481
7498
|
this.filterProperties,
|
|
7482
|
-
() =>
|
|
7499
|
+
() => re`
|
|
7483
7500
|
<eox-itemfilter-container
|
|
7484
7501
|
.filters=${this.filters}
|
|
7485
7502
|
.filterProperties=${this.filterProperties}
|
|
@@ -7490,7 +7507,7 @@ class Pu extends tt {
|
|
|
7490
7507
|
<section slot="section">
|
|
7491
7508
|
${Ze(
|
|
7492
7509
|
!this.inlineMode,
|
|
7493
|
-
() =>
|
|
7510
|
+
() => re`
|
|
7494
7511
|
<slot name="filterstitle"
|
|
7495
7512
|
><h6 class="main-heading">Filters</h6></slot
|
|
7496
7513
|
>
|
|
@@ -7499,7 +7516,7 @@ class Pu extends tt {
|
|
|
7499
7516
|
<ul id="filters">
|
|
7500
7517
|
${ai(
|
|
7501
7518
|
Object.values(this.filters),
|
|
7502
|
-
(n, i) =>
|
|
7519
|
+
(n, i) => re` <li>
|
|
7503
7520
|
<eox-itemfilter-expandcontainer
|
|
7504
7521
|
.filterObject=${n}
|
|
7505
7522
|
@details-toggled=${(s) => No(s, nt(this, lt), this)}
|
|
@@ -7513,7 +7530,7 @@ class Pu extends tt {
|
|
|
7513
7530
|
</ul>
|
|
7514
7531
|
${Ze(
|
|
7515
7532
|
!this.inlineMode && nt(this, lt).filterProperties && !this.inlineMode && nt(this, lt).filterProperties && Gi(this.filters),
|
|
7516
|
-
() =>
|
|
7533
|
+
() => re`
|
|
7517
7534
|
<button
|
|
7518
7535
|
type="button"
|
|
7519
7536
|
id="filter-reset"
|
|
@@ -7531,7 +7548,7 @@ class Pu extends tt {
|
|
|
7531
7548
|
)}
|
|
7532
7549
|
${Ze(
|
|
7533
7550
|
((r = nt(this, lt)) == null ? void 0 : r.showResults) && this.results,
|
|
7534
|
-
() =>
|
|
7551
|
+
() => re`
|
|
7535
7552
|
<eox-itemfilter-results
|
|
7536
7553
|
.config=${nt(this, lt)}
|
|
7537
7554
|
.results=${this.results}
|