@eox/itemfilter 0.14.2-dev.1721739772.0 → 1.0.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 +216 -175
- package/dist/eox-itemfilter.umd.cjs +42 -42
- package/package.json +5 -4
- package/test/cases/general/accordion.js +2 -2
- package/test/cases/general/external-filter.js +3 -6
- package/test/cases/general/nested-property.js +4 -7
- package/test/filters.cy.js +12 -14
- package/test/general.cy.js +14 -16
- package/test/state.cy.js +12 -14
package/dist/eox-itemfilter.js
CHANGED
|
@@ -6753,10 +6753,10 @@ function $p(t, e) {
|
|
|
6753
6753
|
t
|
|
6754
6754
|
] : (e.selectedItems = [t], e.showSuggestions = !1), Ja(e), xp(e);
|
|
6755
6755
|
}
|
|
6756
|
-
function
|
|
6756
|
+
function ew(t, e) {
|
|
6757
6757
|
e.query = t.target.value, e.showSuggestions = !0;
|
|
6758
6758
|
}
|
|
6759
|
-
function
|
|
6759
|
+
function tw(t, e) {
|
|
6760
6760
|
switch (t.key) {
|
|
6761
6761
|
case "ArrowDown":
|
|
6762
6762
|
e.highlightedIndex = Math.min(
|
|
@@ -6781,10 +6781,10 @@ function t1(t, e) {
|
|
|
6781
6781
|
break;
|
|
6782
6782
|
}
|
|
6783
6783
|
}
|
|
6784
|
-
function
|
|
6784
|
+
function rw(t, e) {
|
|
6785
6785
|
(t.has("suggestions") || t.has("query")) && Ja(e);
|
|
6786
6786
|
}
|
|
6787
|
-
function
|
|
6787
|
+
function nw(t, e) {
|
|
6788
6788
|
var n;
|
|
6789
6789
|
const r = ((n = t.filterObject) == null ? void 0 : n.sort) || ((i, o) => i.localeCompare(o));
|
|
6790
6790
|
return e.sort(r).map((i) => i);
|
|
@@ -6794,7 +6794,7 @@ function Ja(t) {
|
|
|
6794
6794
|
let e;
|
|
6795
6795
|
t.query && (e = new er(t.suggestions, {
|
|
6796
6796
|
threshold: 0.4
|
|
6797
|
-
}).search(t.query).map((s) => s.item)), t.filteredSuggestions =
|
|
6797
|
+
}).search(t.query).map((s) => s.item)), t.filteredSuggestions = nw(
|
|
6798
6798
|
t,
|
|
6799
6799
|
e || t.suggestions
|
|
6800
6800
|
), (r = t.filterObject) != null && r.filterKeys && (t.filteredSuggestions = (n = t.filterObject) == null ? void 0 : n.filterKeys.map((o) => `${o}`), t.filterObject.state = (i = t.filterObject) == null ? void 0 : i.filterKeys.map((o) => `${o}`).reduce((o, s) => (s in o || (o[s] = void 0), o), t.filterObject.state)), t.highlightedIndex = -1;
|
|
@@ -6804,15 +6804,15 @@ function xp(t) {
|
|
|
6804
6804
|
t.filterObject.state[e] = t.selectedItems.includes(e);
|
|
6805
6805
|
}), t.filterObject.stringifiedState = Object.keys(t.filterObject.state).filter((e) => t.filterObject.state[e]).join(", ") || "", t.filterObject.dirty = t.filterObject.stringifiedState.length > 0, t.dispatchEvent(new CustomEvent("filter")), t.requestUpdate();
|
|
6806
6806
|
}
|
|
6807
|
-
function
|
|
6807
|
+
function iw(t) {
|
|
6808
6808
|
Eo(t.filterObject), t.renderRoot.querySelector(
|
|
6809
6809
|
"eox-itemfilter-spatial-filter"
|
|
6810
6810
|
).reset(), t.requestUpdate();
|
|
6811
6811
|
}
|
|
6812
|
-
function
|
|
6812
|
+
function ow(t) {
|
|
6813
6813
|
t.renderRoot.querySelector("#eox-map").innerHTML = "", Sp(t);
|
|
6814
6814
|
}
|
|
6815
|
-
function
|
|
6815
|
+
function sw(t, e) {
|
|
6816
6816
|
e.filterObject.state.mode = t;
|
|
6817
6817
|
const r = new CustomEvent("filter", {
|
|
6818
6818
|
detail: {
|
|
@@ -6824,7 +6824,7 @@ function s1(t, e) {
|
|
|
6824
6824
|
function Sp(t) {
|
|
6825
6825
|
const e = t.renderRoot.querySelector("#eox-map");
|
|
6826
6826
|
e.innerHTML === "" && (e.innerHTML = '<eox-map part="map" style="height: 400px"></eox-map>');
|
|
6827
|
-
const r = t.geometry &&
|
|
6827
|
+
const r = t.geometry && aw(t.geometry), n = _0(t.geometry, r);
|
|
6828
6828
|
t.eoxMap = t.renderRoot.querySelector("eox-map"), setTimeout(() => {
|
|
6829
6829
|
t.eoxMap.layers = n;
|
|
6830
6830
|
const i = (o) => {
|
|
@@ -6845,7 +6845,7 @@ function Sp(t) {
|
|
|
6845
6845
|
});
|
|
6846
6846
|
}, 1e3);
|
|
6847
6847
|
}
|
|
6848
|
-
function
|
|
6848
|
+
function aw(t) {
|
|
6849
6849
|
return `data:text/json,${encodeURIComponent(
|
|
6850
6850
|
JSON.stringify({
|
|
6851
6851
|
type: "FeatureCollection",
|
|
@@ -6860,7 +6860,7 @@ function a1(t) {
|
|
|
6860
6860
|
)}`;
|
|
6861
6861
|
}
|
|
6862
6862
|
var yo;
|
|
6863
|
-
class
|
|
6863
|
+
class lw extends ot {
|
|
6864
6864
|
constructor() {
|
|
6865
6865
|
super();
|
|
6866
6866
|
/**
|
|
@@ -6927,7 +6927,7 @@ class l1 extends ot {
|
|
|
6927
6927
|
}
|
|
6928
6928
|
}
|
|
6929
6929
|
yo = new WeakMap();
|
|
6930
|
-
customElements.define("eox-itemfilter-text",
|
|
6930
|
+
customElements.define("eox-itemfilter-text", lw);
|
|
6931
6931
|
class Ap extends ot {
|
|
6932
6932
|
constructor() {
|
|
6933
6933
|
super(...arguments), this.templates = {}, this._renderedTemplates = {};
|
|
@@ -7045,7 +7045,7 @@ class Ap extends ot {
|
|
|
7045
7045
|
this.templates = this.getTemplates();
|
|
7046
7046
|
}
|
|
7047
7047
|
}
|
|
7048
|
-
function
|
|
7048
|
+
function cw(t, e, r) {
|
|
7049
7049
|
return t.filter((n) => {
|
|
7050
7050
|
const i = n[r.config.aggregateResults];
|
|
7051
7051
|
let o;
|
|
@@ -7083,12 +7083,12 @@ class Mp {
|
|
|
7083
7083
|
* Copyright 2020 Google LLC
|
|
7084
7084
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7085
7085
|
*/
|
|
7086
|
-
const { I:
|
|
7086
|
+
const { I: uw } = ah, Yc = () => document.createComment(""), Nn = (t, e, r) => {
|
|
7087
7087
|
var o;
|
|
7088
7088
|
const n = t._$AA.parentNode, i = e === void 0 ? t._$AB : e._$AA;
|
|
7089
7089
|
if (r === void 0) {
|
|
7090
7090
|
const s = n.insertBefore(Yc(), i), l = n.insertBefore(Yc(), i);
|
|
7091
|
-
r = new
|
|
7091
|
+
r = new uw(s, l, t, t.options);
|
|
7092
7092
|
} else {
|
|
7093
7093
|
const s = r._$AB.nextSibling, l = r._$AM, a = l !== t;
|
|
7094
7094
|
if (a) {
|
|
@@ -7104,7 +7104,7 @@ const { I: u1 } = ah, Yc = () => document.createComment(""), Nn = (t, e, r) => {
|
|
|
7104
7104
|
}
|
|
7105
7105
|
}
|
|
7106
7106
|
return r;
|
|
7107
|
-
}, yr = (t, e, r = t) => (t._$AI(e, r), t),
|
|
7107
|
+
}, yr = (t, e, r = t) => (t._$AI(e, r), t), fw = {}, pw = (t, e = fw) => t._$AH = e, hw = (t) => t._$AH, Ps = (t) => {
|
|
7108
7108
|
var n;
|
|
7109
7109
|
(n = t._$AP) == null || n.call(t, !1, !0);
|
|
7110
7110
|
let e = t._$AA;
|
|
@@ -7123,7 +7123,7 @@ const Jc = (t, e, r) => {
|
|
|
7123
7123
|
const n = /* @__PURE__ */ new Map();
|
|
7124
7124
|
for (let i = e; i <= r; i++) n.set(t[i], i);
|
|
7125
7125
|
return n;
|
|
7126
|
-
},
|
|
7126
|
+
}, dw = Ep(class extends Mp {
|
|
7127
7127
|
constructor(t) {
|
|
7128
7128
|
if (super(t), t.type !== _p.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
7129
7129
|
}
|
|
@@ -7139,7 +7139,7 @@ const Jc = (t, e, r) => {
|
|
|
7139
7139
|
return this.dt(t, e, r).values;
|
|
7140
7140
|
}
|
|
7141
7141
|
update(t, [e, r, n]) {
|
|
7142
|
-
const i =
|
|
7142
|
+
const i = hw(t), { values: o, keys: s } = this.dt(e, r, n);
|
|
7143
7143
|
if (!Array.isArray(i)) return this.ut = s, o;
|
|
7144
7144
|
const l = this.ut ?? (this.ut = []), a = [];
|
|
7145
7145
|
let u, h, d = 0, m = i.length - 1, v = 0, S = o.length - 1;
|
|
@@ -7166,7 +7166,7 @@ const Jc = (t, e, r) => {
|
|
|
7166
7166
|
const _ = i[d++];
|
|
7167
7167
|
_ !== null && Ps(_);
|
|
7168
7168
|
}
|
|
7169
|
-
return this.ut = s,
|
|
7169
|
+
return this.ut = s, pw(t, a), Kt;
|
|
7170
7170
|
}
|
|
7171
7171
|
});
|
|
7172
7172
|
/**
|
|
@@ -7190,7 +7190,7 @@ class da extends Mp {
|
|
|
7190
7190
|
}
|
|
7191
7191
|
da.directiveName = "unsafeHTML", da.resultType = 1;
|
|
7192
7192
|
const Os = Ep(da);
|
|
7193
|
-
function
|
|
7193
|
+
function gw(t, e) {
|
|
7194
7194
|
return X`
|
|
7195
7195
|
<details
|
|
7196
7196
|
class="details-results"
|
|
@@ -7221,7 +7221,7 @@ function Pp(t, e) {
|
|
|
7221
7221
|
};
|
|
7222
7222
|
return X`
|
|
7223
7223
|
<ul>
|
|
7224
|
-
${
|
|
7224
|
+
${dw(
|
|
7225
7225
|
n,
|
|
7226
7226
|
(s) => s.id,
|
|
7227
7227
|
(s) => X`
|
|
@@ -7272,7 +7272,7 @@ function Pp(t, e) {
|
|
|
7272
7272
|
`;
|
|
7273
7273
|
}
|
|
7274
7274
|
var Mr, ga, Op;
|
|
7275
|
-
class
|
|
7275
|
+
class yw extends Ap {
|
|
7276
7276
|
constructor() {
|
|
7277
7277
|
super();
|
|
7278
7278
|
et(this, Mr);
|
|
@@ -7296,7 +7296,7 @@ class y1 extends Ap {
|
|
|
7296
7296
|
* @returns {Array} - The aggregated results.
|
|
7297
7297
|
*/
|
|
7298
7298
|
aggregateResults(r, n) {
|
|
7299
|
-
return
|
|
7299
|
+
return cw(r, n, this);
|
|
7300
7300
|
}
|
|
7301
7301
|
/**
|
|
7302
7302
|
* Overrides the default createRenderRoot method to render in the light DOM.
|
|
@@ -7369,10 +7369,10 @@ ga = function(r) {
|
|
|
7369
7369
|
* @private
|
|
7370
7370
|
*/
|
|
7371
7371
|
Op = function(r) {
|
|
7372
|
-
return
|
|
7372
|
+
return gw(r, this);
|
|
7373
7373
|
};
|
|
7374
|
-
customElements.define("eox-itemfilter-results",
|
|
7375
|
-
const
|
|
7374
|
+
customElements.define("eox-itemfilter-results", yw);
|
|
7375
|
+
const vw = `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");}`, mw = `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");}`;
|
|
7376
7376
|
var Zt, kp, Lp, Tp;
|
|
7377
7377
|
class Cp extends ot {
|
|
7378
7378
|
constructor() {
|
|
@@ -7395,7 +7395,7 @@ class Cp extends ot {
|
|
|
7395
7395
|
* @param {Map} changedProperties - The properties that have changed.
|
|
7396
7396
|
*/
|
|
7397
7397
|
updated(r) {
|
|
7398
|
-
|
|
7398
|
+
rw(r, this);
|
|
7399
7399
|
}
|
|
7400
7400
|
/**
|
|
7401
7401
|
* Resets the selector using the resetSelectorMethod.
|
|
@@ -7418,8 +7418,8 @@ class Cp extends ot {
|
|
|
7418
7418
|
return X`
|
|
7419
7419
|
<style>
|
|
7420
7420
|
${!this.unstyled && ni}
|
|
7421
|
-
${!this.unstyled &&
|
|
7422
|
-
${!this.unstyled &&
|
|
7421
|
+
${!this.unstyled && vw}
|
|
7422
|
+
${!this.unstyled && mw}
|
|
7423
7423
|
</style>
|
|
7424
7424
|
${Ke(
|
|
7425
7425
|
this.suggestions.length > 10,
|
|
@@ -7476,7 +7476,7 @@ Zt = new WeakSet(), /**
|
|
|
7476
7476
|
* @private
|
|
7477
7477
|
*/
|
|
7478
7478
|
kp = function(r) {
|
|
7479
|
-
|
|
7479
|
+
ew(r, this);
|
|
7480
7480
|
}, /**
|
|
7481
7481
|
* Handles keydown events on the autocomplete input element.
|
|
7482
7482
|
*
|
|
@@ -7484,7 +7484,7 @@ kp = function(r) {
|
|
|
7484
7484
|
* @private
|
|
7485
7485
|
*/
|
|
7486
7486
|
Lp = function(r) {
|
|
7487
|
-
|
|
7487
|
+
tw(r, this);
|
|
7488
7488
|
}, /**
|
|
7489
7489
|
* Toggles the selection of an item.
|
|
7490
7490
|
*
|
|
@@ -8407,7 +8407,7 @@ Rn(Rp, "properties", {
|
|
|
8407
8407
|
});
|
|
8408
8408
|
customElements.define("eox-itemfilter-range", Rp);
|
|
8409
8409
|
var vo, Ip;
|
|
8410
|
-
class
|
|
8410
|
+
class bw extends ot {
|
|
8411
8411
|
constructor() {
|
|
8412
8412
|
super();
|
|
8413
8413
|
et(this, vo);
|
|
@@ -8424,7 +8424,7 @@ class b1 extends ot {
|
|
|
8424
8424
|
* Resets the spatial filter using the resetSpatialMethod.
|
|
8425
8425
|
*/
|
|
8426
8426
|
reset() {
|
|
8427
|
-
|
|
8427
|
+
iw(this);
|
|
8428
8428
|
}
|
|
8429
8429
|
/**
|
|
8430
8430
|
* Overrides the default createRenderRoot method to render in the light DOM.
|
|
@@ -8480,11 +8480,11 @@ vo = new WeakSet(), /**
|
|
|
8480
8480
|
* @param {string} mode - The mode of the spatial filter (e.g., "intersects", "within").
|
|
8481
8481
|
*/
|
|
8482
8482
|
Ip = function(r) {
|
|
8483
|
-
|
|
8483
|
+
sw(r, this);
|
|
8484
8484
|
};
|
|
8485
|
-
customElements.define("eox-itemfilter-spatial",
|
|
8485
|
+
customElements.define("eox-itemfilter-spatial", bw);
|
|
8486
8486
|
var mo, jp;
|
|
8487
|
-
class
|
|
8487
|
+
class ww extends ot {
|
|
8488
8488
|
constructor() {
|
|
8489
8489
|
super();
|
|
8490
8490
|
et(this, mo);
|
|
@@ -8507,7 +8507,7 @@ class w1 extends ot {
|
|
|
8507
8507
|
* Resets the spatial filter using the resetSpatialFilterMethod.
|
|
8508
8508
|
*/
|
|
8509
8509
|
reset() {
|
|
8510
|
-
|
|
8510
|
+
ow(this);
|
|
8511
8511
|
}
|
|
8512
8512
|
/**
|
|
8513
8513
|
* Renders the HTML template for the component.
|
|
@@ -8524,17 +8524,17 @@ mo = new WeakSet(), /**
|
|
|
8524
8524
|
jp = function() {
|
|
8525
8525
|
Sp(this);
|
|
8526
8526
|
};
|
|
8527
|
-
customElements.define("eox-itemfilter-spatial-filter",
|
|
8528
|
-
function $
|
|
8527
|
+
customElements.define("eox-itemfilter-spatial-filter", ww);
|
|
8528
|
+
function $w(t, e) {
|
|
8529
8529
|
e.renderRoot.querySelectorAll(".chip").forEach((r) => {
|
|
8530
8530
|
r.classList.remove("highlighted");
|
|
8531
8531
|
}), t.target.classList.add("highlighted"), e.requestUpdate();
|
|
8532
8532
|
}
|
|
8533
|
-
function
|
|
8533
|
+
function xw(t, e) {
|
|
8534
8534
|
const { code: r, target: n } = t;
|
|
8535
|
-
n.id === "eox-itemfilter-input-search" && (e.parentElement.classList.contains("hidden") && ["ArrowLeft", "ArrowRight", "Backspace"].includes(r) || (r === "Space" && t.preventDefault(), ["Escape", "Space", "Enter"].includes(r) || t.stopPropagation(), ["ArrowLeft", "ArrowRight", "Escape", "Backspace"].includes(r) &&
|
|
8535
|
+
n.id === "eox-itemfilter-input-search" && (e.parentElement.classList.contains("hidden") && ["ArrowLeft", "ArrowRight", "Backspace"].includes(r) || (r === "Space" && t.preventDefault(), ["Escape", "Space", "Enter"].includes(r) || t.stopPropagation(), ["ArrowLeft", "ArrowRight", "Escape", "Backspace"].includes(r) && Sw(r, t.target.value ?? "", e)));
|
|
8536
8536
|
}
|
|
8537
|
-
function
|
|
8537
|
+
function Sw(t, e, r) {
|
|
8538
8538
|
const n = r.renderRoot.querySelector(".chip.highlighted");
|
|
8539
8539
|
if ((t === "Escape" || e) && n && n.classList.remove("highlighted"), t === "Backspace" && !e) {
|
|
8540
8540
|
if (r.items.length) {
|
|
@@ -8560,7 +8560,7 @@ function S1(t, e, r) {
|
|
|
8560
8560
|
}
|
|
8561
8561
|
}
|
|
8562
8562
|
var Or, va, Bp;
|
|
8563
|
-
class
|
|
8563
|
+
class Aw extends ot {
|
|
8564
8564
|
constructor() {
|
|
8565
8565
|
super();
|
|
8566
8566
|
et(this, Or);
|
|
@@ -8641,7 +8641,7 @@ Or = new WeakSet(), /**
|
|
|
8641
8641
|
* @private
|
|
8642
8642
|
*/
|
|
8643
8643
|
va = function(r) {
|
|
8644
|
-
|
|
8644
|
+
xw(r, this);
|
|
8645
8645
|
}, /**
|
|
8646
8646
|
* Handles click events for the chips.
|
|
8647
8647
|
*
|
|
@@ -8649,10 +8649,10 @@ va = function(r) {
|
|
|
8649
8649
|
* @private
|
|
8650
8650
|
*/
|
|
8651
8651
|
Bp = function(r) {
|
|
8652
|
-
$
|
|
8652
|
+
$w(r, this);
|
|
8653
8653
|
};
|
|
8654
|
-
customElements.define("eox-itemfilter-chips",
|
|
8655
|
-
const
|
|
8654
|
+
customElements.define("eox-itemfilter-chips", Aw);
|
|
8655
|
+
const _w = Object.freeze({
|
|
8656
8656
|
/**
|
|
8657
8657
|
* Aggregate results by a property key
|
|
8658
8658
|
*/
|
|
@@ -8723,42 +8723,59 @@ const Xc = Object.freeze({
|
|
|
8723
8723
|
* @default true
|
|
8724
8724
|
*/
|
|
8725
8725
|
expandMultipleResults: !0
|
|
8726
|
-
})
|
|
8727
|
-
|
|
8728
|
-
|
|
8726
|
+
}), Xc = [
|
|
8727
|
+
"aggregateResults",
|
|
8728
|
+
"autoSpreadSingle",
|
|
8729
|
+
"enableHighlighting",
|
|
8730
|
+
"externalFilter",
|
|
8731
|
+
"filterProperties",
|
|
8732
|
+
"fuseConfig",
|
|
8733
|
+
"inlineMode",
|
|
8734
|
+
"matchAllWhenEmpty",
|
|
8735
|
+
"showResults",
|
|
8736
|
+
"titleProperty",
|
|
8737
|
+
"subTitleProperty",
|
|
8738
|
+
"idProperty",
|
|
8739
|
+
"expandMultipleFilters",
|
|
8740
|
+
"expandResults",
|
|
8741
|
+
"expandMultipleResults",
|
|
8742
|
+
"items"
|
|
8743
|
+
];
|
|
8744
|
+
var Ew = 200, Xa = "__lodash_hash_undefined__", Mw = 1 / 0, Pw = "[object Function]", Ow = "[object GeneratorFunction]", Cw = /[\\^$.*+?()[\]{}|]/g, kw = /^\[object .+?Constructor\]$/, Lw = typeof Ye == "object" && Ye && Ye.Object === Object && Ye, Tw = typeof self == "object" && self && self.Object === Object && self, Za = Lw || Tw || Function("return this")();
|
|
8745
|
+
function Rw(t, e) {
|
|
8729
8746
|
var r = t ? t.length : 0;
|
|
8730
|
-
return !!r &&
|
|
8747
|
+
return !!r && jw(t, e, 0) > -1;
|
|
8731
8748
|
}
|
|
8732
|
-
function
|
|
8749
|
+
function Dw(t, e, r) {
|
|
8733
8750
|
for (var n = -1, i = t ? t.length : 0; ++n < i; )
|
|
8734
8751
|
if (r(e, t[n]))
|
|
8735
8752
|
return !0;
|
|
8736
8753
|
return !1;
|
|
8737
8754
|
}
|
|
8738
|
-
function
|
|
8755
|
+
function Iw(t, e, r, n) {
|
|
8739
8756
|
for (var i = t.length, o = r + (n ? 1 : -1); n ? o-- : ++o < i; )
|
|
8740
8757
|
if (e(t[o], o, t))
|
|
8741
8758
|
return o;
|
|
8742
8759
|
return -1;
|
|
8743
8760
|
}
|
|
8744
|
-
function
|
|
8761
|
+
function jw(t, e, r) {
|
|
8745
8762
|
if (e !== e)
|
|
8746
|
-
return
|
|
8763
|
+
return Iw(t, Bw, r);
|
|
8747
8764
|
for (var n = r - 1, i = t.length; ++n < i; )
|
|
8748
8765
|
if (t[n] === e)
|
|
8749
8766
|
return n;
|
|
8750
8767
|
return -1;
|
|
8751
8768
|
}
|
|
8752
|
-
function
|
|
8769
|
+
function Bw(t) {
|
|
8753
8770
|
return t !== t;
|
|
8754
8771
|
}
|
|
8755
|
-
function
|
|
8772
|
+
function Nw(t, e) {
|
|
8756
8773
|
return t.has(e);
|
|
8757
8774
|
}
|
|
8758
|
-
function
|
|
8775
|
+
function Hw(t, e) {
|
|
8759
8776
|
return t == null ? void 0 : t[e];
|
|
8760
8777
|
}
|
|
8761
|
-
function
|
|
8778
|
+
function Uw(t) {
|
|
8762
8779
|
var e = !1;
|
|
8763
8780
|
if (t != null && typeof t.toString != "function")
|
|
8764
8781
|
try {
|
|
@@ -8773,12 +8790,12 @@ function Np(t) {
|
|
|
8773
8790
|
r[++e] = n;
|
|
8774
8791
|
}), r;
|
|
8775
8792
|
}
|
|
8776
|
-
var
|
|
8793
|
+
var Fw = Array.prototype, Ww = Function.prototype, Hp = Object.prototype, Cs = Za["__core-js_shared__"], Zc = function() {
|
|
8777
8794
|
var t = /[^.]+$/.exec(Cs && Cs.keys && Cs.keys.IE_PROTO || "");
|
|
8778
8795
|
return t ? "Symbol(src)_1." + t : "";
|
|
8779
|
-
}(), Up =
|
|
8780
|
-
"^" + Up.call(Qa).replace(
|
|
8781
|
-
),
|
|
8796
|
+
}(), Up = Ww.toString, Qa = Hp.hasOwnProperty, zw = Hp.toString, qw = RegExp(
|
|
8797
|
+
"^" + Up.call(Qa).replace(Cw, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
8798
|
+
), Gw = Fw.splice, Vw = el(Za, "Map"), ks = el(Za, "Set"), ei = el(Object, "create");
|
|
8782
8799
|
function Er(t) {
|
|
8783
8800
|
var e = -1, r = t ? t.length : 0;
|
|
8784
8801
|
for (this.clear(); ++e < r; ) {
|
|
@@ -8786,13 +8803,13 @@ function Er(t) {
|
|
|
8786
8803
|
this.set(n[0], n[1]);
|
|
8787
8804
|
}
|
|
8788
8805
|
}
|
|
8789
|
-
function
|
|
8806
|
+
function Kw() {
|
|
8790
8807
|
this.__data__ = ei ? ei(null) : {};
|
|
8791
8808
|
}
|
|
8792
|
-
function
|
|
8809
|
+
function Yw(t) {
|
|
8793
8810
|
return this.has(t) && delete this.__data__[t];
|
|
8794
8811
|
}
|
|
8795
|
-
function
|
|
8812
|
+
function Jw(t) {
|
|
8796
8813
|
var e = this.__data__;
|
|
8797
8814
|
if (ei) {
|
|
8798
8815
|
var r = e[t];
|
|
@@ -8800,19 +8817,19 @@ function Y1(t) {
|
|
|
8800
8817
|
}
|
|
8801
8818
|
return Qa.call(e, t) ? e[t] : void 0;
|
|
8802
8819
|
}
|
|
8803
|
-
function
|
|
8820
|
+
function Xw(t) {
|
|
8804
8821
|
var e = this.__data__;
|
|
8805
8822
|
return ei ? e[t] !== void 0 : Qa.call(e, t);
|
|
8806
8823
|
}
|
|
8807
|
-
function
|
|
8824
|
+
function Zw(t, e) {
|
|
8808
8825
|
var r = this.__data__;
|
|
8809
8826
|
return r[t] = ei && e === void 0 ? Xa : e, this;
|
|
8810
8827
|
}
|
|
8811
|
-
Er.prototype.clear =
|
|
8812
|
-
Er.prototype.delete =
|
|
8813
|
-
Er.prototype.get =
|
|
8814
|
-
Er.prototype.has =
|
|
8815
|
-
Er.prototype.set =
|
|
8828
|
+
Er.prototype.clear = Kw;
|
|
8829
|
+
Er.prototype.delete = Yw;
|
|
8830
|
+
Er.prototype.get = Jw;
|
|
8831
|
+
Er.prototype.has = Xw;
|
|
8832
|
+
Er.prototype.set = Zw;
|
|
8816
8833
|
function gn(t) {
|
|
8817
8834
|
var e = -1, r = t ? t.length : 0;
|
|
8818
8835
|
for (this.clear(); ++e < r; ) {
|
|
@@ -8820,32 +8837,32 @@ function gn(t) {
|
|
|
8820
8837
|
this.set(n[0], n[1]);
|
|
8821
8838
|
}
|
|
8822
8839
|
}
|
|
8823
|
-
function
|
|
8840
|
+
function Qw() {
|
|
8824
8841
|
this.__data__ = [];
|
|
8825
8842
|
}
|
|
8826
|
-
function
|
|
8843
|
+
function e1(t) {
|
|
8827
8844
|
var e = this.__data__, r = Po(e, t);
|
|
8828
8845
|
if (r < 0)
|
|
8829
8846
|
return !1;
|
|
8830
8847
|
var n = e.length - 1;
|
|
8831
|
-
return r == n ? e.pop() :
|
|
8848
|
+
return r == n ? e.pop() : Gw.call(e, r, 1), !0;
|
|
8832
8849
|
}
|
|
8833
|
-
function
|
|
8850
|
+
function t1(t) {
|
|
8834
8851
|
var e = this.__data__, r = Po(e, t);
|
|
8835
8852
|
return r < 0 ? void 0 : e[r][1];
|
|
8836
8853
|
}
|
|
8837
|
-
function
|
|
8854
|
+
function r1(t) {
|
|
8838
8855
|
return Po(this.__data__, t) > -1;
|
|
8839
8856
|
}
|
|
8840
|
-
function
|
|
8857
|
+
function n1(t, e) {
|
|
8841
8858
|
var r = this.__data__, n = Po(r, t);
|
|
8842
8859
|
return n < 0 ? r.push([t, e]) : r[n][1] = e, this;
|
|
8843
8860
|
}
|
|
8844
|
-
gn.prototype.clear =
|
|
8845
|
-
gn.prototype.delete =
|
|
8846
|
-
gn.prototype.get =
|
|
8847
|
-
gn.prototype.has =
|
|
8848
|
-
gn.prototype.set =
|
|
8861
|
+
gn.prototype.clear = Qw;
|
|
8862
|
+
gn.prototype.delete = e1;
|
|
8863
|
+
gn.prototype.get = t1;
|
|
8864
|
+
gn.prototype.has = r1;
|
|
8865
|
+
gn.prototype.set = n1;
|
|
8849
8866
|
function yn(t) {
|
|
8850
8867
|
var e = -1, r = t ? t.length : 0;
|
|
8851
8868
|
for (this.clear(); ++e < r; ) {
|
|
@@ -8853,64 +8870,64 @@ function yn(t) {
|
|
|
8853
8870
|
this.set(n[0], n[1]);
|
|
8854
8871
|
}
|
|
8855
8872
|
}
|
|
8856
|
-
function
|
|
8873
|
+
function i1() {
|
|
8857
8874
|
this.__data__ = {
|
|
8858
8875
|
hash: new Er(),
|
|
8859
|
-
map: new (
|
|
8876
|
+
map: new (Vw || gn)(),
|
|
8860
8877
|
string: new Er()
|
|
8861
8878
|
};
|
|
8862
8879
|
}
|
|
8863
|
-
function
|
|
8880
|
+
function o1(t) {
|
|
8864
8881
|
return Oo(this, t).delete(t);
|
|
8865
8882
|
}
|
|
8866
|
-
function
|
|
8883
|
+
function s1(t) {
|
|
8867
8884
|
return Oo(this, t).get(t);
|
|
8868
8885
|
}
|
|
8869
|
-
function
|
|
8886
|
+
function a1(t) {
|
|
8870
8887
|
return Oo(this, t).has(t);
|
|
8871
8888
|
}
|
|
8872
|
-
function
|
|
8889
|
+
function l1(t, e) {
|
|
8873
8890
|
return Oo(this, t).set(t, e), this;
|
|
8874
8891
|
}
|
|
8875
|
-
yn.prototype.clear =
|
|
8876
|
-
yn.prototype.delete =
|
|
8877
|
-
yn.prototype.get =
|
|
8878
|
-
yn.prototype.has =
|
|
8879
|
-
yn.prototype.set =
|
|
8892
|
+
yn.prototype.clear = i1;
|
|
8893
|
+
yn.prototype.delete = o1;
|
|
8894
|
+
yn.prototype.get = s1;
|
|
8895
|
+
yn.prototype.has = a1;
|
|
8896
|
+
yn.prototype.set = l1;
|
|
8880
8897
|
function po(t) {
|
|
8881
8898
|
var e = -1, r = t ? t.length : 0;
|
|
8882
8899
|
for (this.__data__ = new yn(); ++e < r; )
|
|
8883
8900
|
this.add(t[e]);
|
|
8884
8901
|
}
|
|
8885
|
-
function
|
|
8902
|
+
function c1(t) {
|
|
8886
8903
|
return this.__data__.set(t, Xa), this;
|
|
8887
8904
|
}
|
|
8888
|
-
function
|
|
8905
|
+
function u1(t) {
|
|
8889
8906
|
return this.__data__.has(t);
|
|
8890
8907
|
}
|
|
8891
|
-
po.prototype.add = po.prototype.push =
|
|
8892
|
-
po.prototype.has =
|
|
8908
|
+
po.prototype.add = po.prototype.push = c1;
|
|
8909
|
+
po.prototype.has = u1;
|
|
8893
8910
|
function Po(t, e) {
|
|
8894
8911
|
for (var r = t.length; r--; )
|
|
8895
|
-
if (
|
|
8912
|
+
if (m1(t[r][0], e))
|
|
8896
8913
|
return r;
|
|
8897
8914
|
return -1;
|
|
8898
8915
|
}
|
|
8899
|
-
function
|
|
8900
|
-
if (!Fp(t) ||
|
|
8916
|
+
function f1(t) {
|
|
8917
|
+
if (!Fp(t) || g1(t))
|
|
8901
8918
|
return !1;
|
|
8902
|
-
var e =
|
|
8903
|
-
return e.test(
|
|
8919
|
+
var e = b1(t) || Uw(t) ? qw : kw;
|
|
8920
|
+
return e.test(y1(t));
|
|
8904
8921
|
}
|
|
8905
|
-
function
|
|
8906
|
-
var n = -1, i =
|
|
8922
|
+
function p1(t, e, r) {
|
|
8923
|
+
var n = -1, i = Rw, o = t.length, s = !0, l = [], a = l;
|
|
8907
8924
|
if (r)
|
|
8908
|
-
s = !1, i =
|
|
8909
|
-
else if (o >=
|
|
8910
|
-
var u = e ? null :
|
|
8925
|
+
s = !1, i = Dw;
|
|
8926
|
+
else if (o >= Ew) {
|
|
8927
|
+
var u = e ? null : h1(t);
|
|
8911
8928
|
if (u)
|
|
8912
8929
|
return Np(u);
|
|
8913
|
-
s = !1, i =
|
|
8930
|
+
s = !1, i = Nw, a = new po();
|
|
8914
8931
|
} else
|
|
8915
8932
|
a = e ? [] : l;
|
|
8916
8933
|
e:
|
|
@@ -8925,25 +8942,25 @@ function fw(t, e, r) {
|
|
|
8925
8942
|
}
|
|
8926
8943
|
return l;
|
|
8927
8944
|
}
|
|
8928
|
-
var
|
|
8945
|
+
var h1 = ks && 1 / Np(new ks([, -0]))[1] == Mw ? function(t) {
|
|
8929
8946
|
return new ks(t);
|
|
8930
|
-
} :
|
|
8947
|
+
} : w1;
|
|
8931
8948
|
function Oo(t, e) {
|
|
8932
8949
|
var r = t.__data__;
|
|
8933
|
-
return
|
|
8950
|
+
return d1(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
|
|
8934
8951
|
}
|
|
8935
8952
|
function el(t, e) {
|
|
8936
|
-
var r =
|
|
8937
|
-
return
|
|
8953
|
+
var r = Hw(t, e);
|
|
8954
|
+
return f1(r) ? r : void 0;
|
|
8938
8955
|
}
|
|
8939
|
-
function
|
|
8956
|
+
function d1(t) {
|
|
8940
8957
|
var e = typeof t;
|
|
8941
8958
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
|
|
8942
8959
|
}
|
|
8943
|
-
function
|
|
8960
|
+
function g1(t) {
|
|
8944
8961
|
return !!Zc && Zc in t;
|
|
8945
8962
|
}
|
|
8946
|
-
function
|
|
8963
|
+
function y1(t) {
|
|
8947
8964
|
if (t != null) {
|
|
8948
8965
|
try {
|
|
8949
8966
|
return Up.call(t);
|
|
@@ -8956,24 +8973,24 @@ function gw(t) {
|
|
|
8956
8973
|
}
|
|
8957
8974
|
return "";
|
|
8958
8975
|
}
|
|
8959
|
-
function
|
|
8960
|
-
return t && t.length ?
|
|
8976
|
+
function v1(t) {
|
|
8977
|
+
return t && t.length ? p1(t) : [];
|
|
8961
8978
|
}
|
|
8962
|
-
function
|
|
8979
|
+
function m1(t, e) {
|
|
8963
8980
|
return t === e || t !== t && e !== e;
|
|
8964
8981
|
}
|
|
8965
|
-
function
|
|
8966
|
-
var e = Fp(t) ?
|
|
8967
|
-
return e ==
|
|
8982
|
+
function b1(t) {
|
|
8983
|
+
var e = Fp(t) ? zw.call(t) : "";
|
|
8984
|
+
return e == Pw || e == Ow;
|
|
8968
8985
|
}
|
|
8969
8986
|
function Fp(t) {
|
|
8970
8987
|
var e = typeof t;
|
|
8971
8988
|
return !!t && (e == "object" || e == "function");
|
|
8972
8989
|
}
|
|
8973
|
-
function
|
|
8990
|
+
function w1() {
|
|
8974
8991
|
}
|
|
8975
|
-
var
|
|
8976
|
-
const Wp = /* @__PURE__ */ oi(
|
|
8992
|
+
var $1 = v1;
|
|
8993
|
+
const Wp = /* @__PURE__ */ oi($1);
|
|
8977
8994
|
var ho = { exports: {} };
|
|
8978
8995
|
ho.exports;
|
|
8979
8996
|
(function(t, e) {
|
|
@@ -9604,9 +9621,9 @@ ho.exports;
|
|
|
9604
9621
|
}
|
|
9605
9622
|
t.exports = Pn;
|
|
9606
9623
|
})(ho, ho.exports);
|
|
9607
|
-
var
|
|
9608
|
-
const zp = /* @__PURE__ */ oi(
|
|
9609
|
-
function
|
|
9624
|
+
var x1 = ho.exports;
|
|
9625
|
+
const zp = /* @__PURE__ */ oi(x1);
|
|
9626
|
+
function S1(t, e, r) {
|
|
9610
9627
|
let n = [];
|
|
9611
9628
|
t.filterProperties.length && t.filterProperties.forEach((o) => {
|
|
9612
9629
|
const s = {}, l = (u) => o.format === "date" ? Qn(u).unix() : parseInt(u, 10);
|
|
@@ -9664,12 +9681,11 @@ function xw(t, e, r) {
|
|
|
9664
9681
|
}) : (o.type === "select" || o.type === "multiselect") && (i.includes(o.key) || i.push(o.key));
|
|
9665
9682
|
}), S0(e, Object.assign({ keys: i }, t.fuseConfig)), n;
|
|
9666
9683
|
}
|
|
9667
|
-
async function
|
|
9668
|
-
var i;
|
|
9684
|
+
async function A1(t, e, r) {
|
|
9669
9685
|
let n;
|
|
9670
|
-
|
|
9686
|
+
r.externalFilter ? n = await M0(e, r.filters, t) : n = await A0(e, r.filters, t), r.results = r.sortResults(n);
|
|
9671
9687
|
}
|
|
9672
|
-
function
|
|
9688
|
+
function _1(t, e, r) {
|
|
9673
9689
|
const n = `filter-${t.key}`.replace("|", "-");
|
|
9674
9690
|
switch (t.type) {
|
|
9675
9691
|
case "text":
|
|
@@ -9686,7 +9702,7 @@ function Aw(t, e, r) {
|
|
|
9686
9702
|
case "select":
|
|
9687
9703
|
return X`
|
|
9688
9704
|
<eox-itemfilter-select
|
|
9689
|
-
.inlineMode=${r.
|
|
9705
|
+
.inlineMode=${r.inlineMode || !1}
|
|
9690
9706
|
data-type="filter"
|
|
9691
9707
|
id="${n}"
|
|
9692
9708
|
.tabIndex=${e}
|
|
@@ -9727,12 +9743,12 @@ function Aw(t, e, r) {
|
|
|
9727
9743
|
return X``;
|
|
9728
9744
|
}
|
|
9729
9745
|
}
|
|
9730
|
-
function
|
|
9746
|
+
function E1(t, e) {
|
|
9731
9747
|
return [...t].sort(
|
|
9732
9748
|
(r, n) => r[e.titleProperty].localeCompare(n[e.titleProperty])
|
|
9733
9749
|
);
|
|
9734
9750
|
}
|
|
9735
|
-
function
|
|
9751
|
+
function M1(t, e, r) {
|
|
9736
9752
|
return X`
|
|
9737
9753
|
${Ke(
|
|
9738
9754
|
t.dirty,
|
|
@@ -9753,13 +9769,13 @@ function Ew(t, e, r) {
|
|
|
9753
9769
|
)}
|
|
9754
9770
|
`;
|
|
9755
9771
|
}
|
|
9756
|
-
function
|
|
9772
|
+
function P1(t) {
|
|
9757
9773
|
t.renderRoot.querySelectorAll("[data-type='filter']").forEach((e) => {
|
|
9758
9774
|
typeof e.reset == "function" && e.reset();
|
|
9759
9775
|
}), t.search();
|
|
9760
9776
|
}
|
|
9761
9777
|
var ti, rn, ct, cn, qp, Gp;
|
|
9762
|
-
class
|
|
9778
|
+
class O1 extends Ap {
|
|
9763
9779
|
constructor() {
|
|
9764
9780
|
super();
|
|
9765
9781
|
et(this, cn);
|
|
@@ -9774,19 +9790,39 @@ class Pw extends Ap {
|
|
|
9774
9790
|
/**
|
|
9775
9791
|
* @type Object
|
|
9776
9792
|
*/
|
|
9777
|
-
et(this, ct,
|
|
9778
|
-
this.
|
|
9793
|
+
et(this, ct, _w);
|
|
9794
|
+
this.items = null, this.filters = {}, this.results = [], this.selectedResult = null, this.search = Mo(this.searchHandler, 100, {
|
|
9779
9795
|
leading: !0
|
|
9780
|
-
});
|
|
9796
|
+
}), this.aggregateResults = void 0, this.autoSpreadSingle = !1, this.enableHighlighting = !1, this.externalFilter = null, this.filterProperties = [], this.fuseConfig = {}, this.inlineMode = !1, this.matchAllWhenEmpty = !0, this.showResults = !0, this.titleProperty = "title", this.subTitleProperty = void 0, this.idProperty = "id", this.expandMultipleFilters = !0, this.expandResults = !0, this.expandMultipleResults = !0, this.unstyled = !1;
|
|
9781
9797
|
}
|
|
9782
9798
|
// Define properties with defaults and types
|
|
9783
9799
|
static get properties() {
|
|
9784
9800
|
return {
|
|
9785
|
-
config: { attribute: !1, type: Object },
|
|
9786
9801
|
items: { attribute: !1, type: Object },
|
|
9787
9802
|
results: { state: !0, attribute: !1, type: Object },
|
|
9788
9803
|
filters: { state: !0, attribute: !1, type: Object },
|
|
9789
9804
|
selectedResult: { attribute: !1, type: Object },
|
|
9805
|
+
aggregateResults: { attribute: "aggregate-results", type: String },
|
|
9806
|
+
autoSpreadSingle: { attribute: "auto-spread-single", type: Boolean },
|
|
9807
|
+
enableHighlighting: { attribute: "enable-highlighting", type: Boolean },
|
|
9808
|
+
filterProperties: { attribute: !1, type: Array },
|
|
9809
|
+
fuseConfig: { attribute: !1, type: Object },
|
|
9810
|
+
inlineMode: { attribute: "inline-mode", type: Boolean },
|
|
9811
|
+
matchAllWhenEmpty: { attribute: "match-all-when-empty", type: Boolean },
|
|
9812
|
+
showResults: { attribute: "show-result", type: Boolean },
|
|
9813
|
+
idProperty: { attribute: "id-property", type: String },
|
|
9814
|
+
titleProperty: { attribute: "title-property", type: String },
|
|
9815
|
+
subTitleProperty: { attribute: "sub-title-property", type: String },
|
|
9816
|
+
expandMultipleFilters: {
|
|
9817
|
+
attribute: "enable-multiple-filter",
|
|
9818
|
+
type: Boolean
|
|
9819
|
+
},
|
|
9820
|
+
expandResults: { attribute: "expand-result", type: Boolean },
|
|
9821
|
+
expandMultipleResults: {
|
|
9822
|
+
attribute: "expand-multiple-results",
|
|
9823
|
+
type: Boolean
|
|
9824
|
+
},
|
|
9825
|
+
externalFilter: { attribute: !1, type: Function },
|
|
9790
9826
|
unstyled: { type: Boolean }
|
|
9791
9827
|
};
|
|
9792
9828
|
}
|
|
@@ -9794,7 +9830,7 @@ class Pw extends Ap {
|
|
|
9794
9830
|
* Applies the filters to the items and updates the result aggregation.
|
|
9795
9831
|
*/
|
|
9796
9832
|
apply() {
|
|
9797
|
-
Oi(this, ti,
|
|
9833
|
+
Oi(this, ti, S1(
|
|
9798
9834
|
rt(this, ct),
|
|
9799
9835
|
rt(this, rn),
|
|
9800
9836
|
this
|
|
@@ -9805,8 +9841,7 @@ class Pw extends Ap {
|
|
|
9805
9841
|
* Requests an update after the search completes.
|
|
9806
9842
|
*/
|
|
9807
9843
|
async searchHandler() {
|
|
9808
|
-
|
|
9809
|
-
await Sw(rt(this, ct), rt(this, rn), this), this.dispatchEvent(
|
|
9844
|
+
await A1(rt(this, ct), rt(this, rn), this), this.dispatchEvent(
|
|
9810
9845
|
new CustomEvent("filter", {
|
|
9811
9846
|
detail: {
|
|
9812
9847
|
results: this.results,
|
|
@@ -9815,7 +9850,7 @@ class Pw extends Ap {
|
|
|
9815
9850
|
bubbles: !0,
|
|
9816
9851
|
composed: !0
|
|
9817
9852
|
})
|
|
9818
|
-
),
|
|
9853
|
+
), this.inlineMode && this.renderRoot.querySelector("eox-itemfilter-container").updateInline(), this.requestUpdate();
|
|
9819
9854
|
}
|
|
9820
9855
|
/**
|
|
9821
9856
|
* Sorts the given items based on the current configuration.
|
|
@@ -9824,13 +9859,13 @@ class Pw extends Ap {
|
|
|
9824
9859
|
* @returns {Array<object>} - The sorted items.
|
|
9825
9860
|
*/
|
|
9826
9861
|
sortResults(r) {
|
|
9827
|
-
return
|
|
9862
|
+
return E1(r, rt(this, ct));
|
|
9828
9863
|
}
|
|
9829
9864
|
/**
|
|
9830
9865
|
* Resets all applied filters.
|
|
9831
9866
|
*/
|
|
9832
9867
|
resetFilters() {
|
|
9833
|
-
|
|
9868
|
+
P1(this);
|
|
9834
9869
|
}
|
|
9835
9870
|
/**
|
|
9836
9871
|
* Lifecycle method called after the first update.
|
|
@@ -9839,12 +9874,15 @@ class Pw extends Ap {
|
|
|
9839
9874
|
* @param {Map} _changedProperties - The changed properties.
|
|
9840
9875
|
*/
|
|
9841
9876
|
firstUpdated(r) {
|
|
9842
|
-
var
|
|
9843
|
-
|
|
9844
|
-
|
|
9845
|
-
|
|
9846
|
-
|
|
9847
|
-
|
|
9877
|
+
var i;
|
|
9878
|
+
let n = {};
|
|
9879
|
+
Xc.map((o) => {
|
|
9880
|
+
n = {
|
|
9881
|
+
...n,
|
|
9882
|
+
[o]: this[o]
|
|
9883
|
+
};
|
|
9884
|
+
}), Oi(this, ct, n), Oi(this, rn, ((i = this.items) == null ? void 0 : i.map(
|
|
9885
|
+
(o, s) => Object.assign({ id: o[this.idProperty] || `item-${s}` }, o)
|
|
9848
9886
|
)) || []), this.apply();
|
|
9849
9887
|
}
|
|
9850
9888
|
/**
|
|
@@ -9854,7 +9892,10 @@ class Pw extends Ap {
|
|
|
9854
9892
|
* @param {Map} changedProperties - The properties that have changed.
|
|
9855
9893
|
*/
|
|
9856
9894
|
updated(r) {
|
|
9857
|
-
|
|
9895
|
+
Xc.map((n) => {
|
|
9896
|
+
if (r.has(n))
|
|
9897
|
+
return this.firstUpdated(), !0;
|
|
9898
|
+
});
|
|
9858
9899
|
}
|
|
9859
9900
|
/**
|
|
9860
9901
|
* Updates selected result when result component triggers the "result" event.
|
|
@@ -9874,7 +9915,7 @@ class Pw extends Ap {
|
|
|
9874
9915
|
* Renders the HTML template for the component.
|
|
9875
9916
|
*/
|
|
9876
9917
|
render() {
|
|
9877
|
-
var r
|
|
9918
|
+
var r;
|
|
9878
9919
|
return X`
|
|
9879
9920
|
<style>
|
|
9880
9921
|
${ch}
|
|
@@ -9884,22 +9925,22 @@ class Pw extends Ap {
|
|
|
9884
9925
|
</style>
|
|
9885
9926
|
<form
|
|
9886
9927
|
id="itemfilter"
|
|
9887
|
-
class=${
|
|
9888
|
-
@submit="${(
|
|
9928
|
+
class=${this.inlineMode ? "inline" : $e}
|
|
9929
|
+
@submit="${(n) => n.preventDefault()}"
|
|
9889
9930
|
>
|
|
9890
9931
|
${Ke(
|
|
9891
|
-
|
|
9932
|
+
this.filterProperties,
|
|
9892
9933
|
() => X`
|
|
9893
9934
|
<eox-itemfilter-container
|
|
9894
9935
|
.filters=${this.filters}
|
|
9895
|
-
.filterProperties=${this.
|
|
9896
|
-
.inlineMode=${this.
|
|
9936
|
+
.filterProperties=${this.filterProperties}
|
|
9937
|
+
.inlineMode=${this.inlineMode || !1}
|
|
9897
9938
|
@reset=${() => this.resetFilters()}
|
|
9898
9939
|
@filter=${() => this.search()}
|
|
9899
9940
|
>
|
|
9900
9941
|
<section slot="section">
|
|
9901
9942
|
${Ke(
|
|
9902
|
-
!this.
|
|
9943
|
+
!this.inlineMode,
|
|
9903
9944
|
() => X`
|
|
9904
9945
|
<slot name="filterstitle"
|
|
9905
9946
|
><h6 class="main-heading">Filters</h6></slot
|
|
@@ -9909,20 +9950,20 @@ class Pw extends Ap {
|
|
|
9909
9950
|
<ul id="filters">
|
|
9910
9951
|
${bo(
|
|
9911
9952
|
Object.values(this.filters),
|
|
9912
|
-
(
|
|
9953
|
+
(n, i) => X` <li>
|
|
9913
9954
|
<eox-itemfilter-expandcontainer
|
|
9914
|
-
.filterObject=${
|
|
9915
|
-
@details-toggled=${(
|
|
9916
|
-
data-details="${
|
|
9955
|
+
.filterObject=${n}
|
|
9956
|
+
@details-toggled=${(o) => yp(o, rt(this, ct), this)}
|
|
9957
|
+
data-details="${n.key}"
|
|
9917
9958
|
>
|
|
9918
|
-
${we(this, cn, Gp).call(this,
|
|
9919
|
-
${we(this, cn, qp).call(this,
|
|
9959
|
+
${we(this, cn, Gp).call(this, n, Gc(i, 1))}
|
|
9960
|
+
${we(this, cn, qp).call(this, n, Gc(i, 2))}
|
|
9920
9961
|
</eox-itemfilter-expandcontainer>
|
|
9921
9962
|
</li>`
|
|
9922
9963
|
)}
|
|
9923
9964
|
</ul>
|
|
9924
9965
|
${Ke(
|
|
9925
|
-
!this.
|
|
9966
|
+
!this.inlineMode && rt(this, ct).filterProperties && !this.inlineMode && rt(this, ct).filterProperties && ca(this.filters),
|
|
9926
9967
|
() => X`
|
|
9927
9968
|
<button
|
|
9928
9969
|
type="button"
|
|
@@ -9940,7 +9981,7 @@ class Pw extends Ap {
|
|
|
9940
9981
|
`
|
|
9941
9982
|
)}
|
|
9942
9983
|
${Ke(
|
|
9943
|
-
((
|
|
9984
|
+
((r = rt(this, ct)) == null ? void 0 : r.showResults) && this.results,
|
|
9944
9985
|
() => X`
|
|
9945
9986
|
<eox-itemfilter-results
|
|
9946
9987
|
.config=${rt(this, ct)}
|
|
@@ -9965,7 +10006,7 @@ ti = new WeakMap(), rn = new WeakMap(), ct = new WeakMap(), cn = new WeakSet(),
|
|
|
9965
10006
|
* @private
|
|
9966
10007
|
*/
|
|
9967
10008
|
qp = function(r, n) {
|
|
9968
|
-
return
|
|
10009
|
+
return _1(r, n, this);
|
|
9969
10010
|
}, /**
|
|
9970
10011
|
* Creates a reset element for the given filter object and tab index.
|
|
9971
10012
|
*
|
|
@@ -9975,9 +10016,9 @@ qp = function(r, n) {
|
|
|
9975
10016
|
* @private
|
|
9976
10017
|
*/
|
|
9977
10018
|
Gp = function(r, n) {
|
|
9978
|
-
return
|
|
10019
|
+
return M1(r, n, this);
|
|
9979
10020
|
};
|
|
9980
|
-
customElements.define("eox-itemfilter",
|
|
10021
|
+
customElements.define("eox-itemfilter", O1);
|
|
9981
10022
|
export {
|
|
9982
|
-
|
|
10023
|
+
O1 as EOxItemFilter
|
|
9983
10024
|
};
|