@getlupa/client 1.6.5 → 1.6.6
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/lupaSearch.iife.js +90 -59
- package/dist/lupaSearch.js +90 -59
- package/dist/lupaSearch.mjs +90 -59
- package/dist/lupaSearch.umd.js +90 -59
- package/package.json +2 -2
package/dist/lupaSearch.js
CHANGED
|
@@ -6273,11 +6273,15 @@ const suggest = (queryKey, query, environment, customBaseUrl) => __awaiter(void
|
|
|
6273
6273
|
return { success: false, errors };
|
|
6274
6274
|
});
|
|
6275
6275
|
const track$1 = (queryKey, event, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6276
|
-
|
|
6277
|
-
|
|
6276
|
+
try {
|
|
6277
|
+
const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}events`, Object.assign(Object.assign({}, defaultConfig$1), { body: JSON.stringify(Object.assign({ queryKey }, event)) }));
|
|
6278
|
+
if (res.status < 400) {
|
|
6279
|
+
return { success: false };
|
|
6280
|
+
}
|
|
6281
|
+
return res.json();
|
|
6282
|
+
} catch (e) {
|
|
6278
6283
|
return { success: false };
|
|
6279
6284
|
}
|
|
6280
|
-
return res.json();
|
|
6281
6285
|
});
|
|
6282
6286
|
const loadRedirectionRules = (queryKey, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6283
6287
|
const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}redirections/${queryKey}`, Object.assign(Object.assign({}, defaultConfig$1), { method: "GET" }));
|
|
@@ -7806,8 +7810,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
7806
7810
|
const _hoisted_1$1c = { id: "lupa-search-box-input-container" };
|
|
7807
7811
|
const _hoisted_2$P = { class: "lupa-input-clear" };
|
|
7808
7812
|
const _hoisted_3$B = { id: "lupa-search-box-input" };
|
|
7809
|
-
const _hoisted_4$
|
|
7810
|
-
const _hoisted_5$
|
|
7813
|
+
const _hoisted_4$s = ["value"];
|
|
7814
|
+
const _hoisted_5$g = ["aria-label", "placeholder"];
|
|
7811
7815
|
const _hoisted_6$9 = {
|
|
7812
7816
|
key: 0,
|
|
7813
7817
|
class: "lupa-close-label"
|
|
@@ -7856,6 +7860,10 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
7856
7860
|
var _a;
|
|
7857
7861
|
return __spreadValues2({}, (_a = props.options.inputAttributes) != null ? _a : {});
|
|
7858
7862
|
});
|
|
7863
|
+
const ariaLabel = computed(() => {
|
|
7864
|
+
var _a;
|
|
7865
|
+
return (_a = labels.value.searchInputAriaLabel) != null ? _a : "Search input";
|
|
7866
|
+
});
|
|
7859
7867
|
watch(suggestedValue, () => {
|
|
7860
7868
|
if (suggestedValue.value.override) {
|
|
7861
7869
|
input.value = suggestedValue.value.item.suggestion;
|
|
@@ -7899,22 +7907,24 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
7899
7907
|
createBaseVNode("div", _hoisted_3$B, [
|
|
7900
7908
|
createBaseVNode("input", {
|
|
7901
7909
|
class: "lupa-hint",
|
|
7910
|
+
"aria-hidden": "true",
|
|
7902
7911
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
7903
7912
|
disabled: ""
|
|
7904
|
-
}, null, 8, _hoisted_4$
|
|
7913
|
+
}, null, 8, _hoisted_4$s),
|
|
7905
7914
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
7906
7915
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
7907
7916
|
}, inputAttributes.value, {
|
|
7908
7917
|
ref_key: "mainInput",
|
|
7909
7918
|
ref: mainInput,
|
|
7910
7919
|
autocomplete: "off",
|
|
7920
|
+
"aria-label": ariaLabel.value,
|
|
7911
7921
|
class: "lupa-search-box-input-field",
|
|
7912
7922
|
"data-cy": "lupa-search-box-input-field",
|
|
7913
7923
|
type: "text",
|
|
7914
7924
|
placeholder: labels.value.placeholder,
|
|
7915
7925
|
onInput: handleInput,
|
|
7916
7926
|
onFocus: handleFocus
|
|
7917
|
-
}), null, 16, _hoisted_5$
|
|
7927
|
+
}), null, 16, _hoisted_5$g), [
|
|
7918
7928
|
[vModelText, inputValue.value]
|
|
7919
7929
|
])
|
|
7920
7930
|
]),
|
|
@@ -8080,11 +8090,11 @@ const _hoisted_3$A = {
|
|
|
8080
8090
|
class: "lupa-suggestion-facet",
|
|
8081
8091
|
"data-cy": "lupa-suggestion-facet"
|
|
8082
8092
|
};
|
|
8083
|
-
const _hoisted_4$
|
|
8093
|
+
const _hoisted_4$r = {
|
|
8084
8094
|
class: "lupa-suggestion-facet-label",
|
|
8085
8095
|
"data-cy": "lupa-suggestion-facet-label"
|
|
8086
8096
|
};
|
|
8087
|
-
const _hoisted_5$
|
|
8097
|
+
const _hoisted_5$f = {
|
|
8088
8098
|
class: "lupa-suggestion-facet-value",
|
|
8089
8099
|
"data-cy": "lupa-suggestion-facet-value"
|
|
8090
8100
|
};
|
|
@@ -8126,8 +8136,8 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
8126
8136
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
8127
8137
|
}, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8128
8138
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
8129
|
-
createBaseVNode("span", _hoisted_4$
|
|
8130
|
-
createBaseVNode("span", _hoisted_5$
|
|
8139
|
+
createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
|
|
8140
|
+
createBaseVNode("span", _hoisted_5$f, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8131
8141
|
])) : createCommentVNode("", true)
|
|
8132
8142
|
]);
|
|
8133
8143
|
};
|
|
@@ -8534,8 +8544,8 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
8534
8544
|
const _hoisted_1$11 = ["innerHTML"];
|
|
8535
8545
|
const _hoisted_2$K = { key: 0 };
|
|
8536
8546
|
const _hoisted_3$z = { key: 1 };
|
|
8537
|
-
const _hoisted_4$
|
|
8538
|
-
const _hoisted_5$
|
|
8547
|
+
const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
|
|
8548
|
+
const _hoisted_5$e = { class: "lupa-search-box-custom-text" };
|
|
8539
8549
|
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
8540
8550
|
__name: "SearchBoxProductCustom",
|
|
8541
8551
|
props: {
|
|
@@ -8567,8 +8577,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
8567
8577
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
8568
8578
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
8569
8579
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
8570
|
-
createBaseVNode("div", _hoisted_4$
|
|
8571
|
-
createBaseVNode("div", _hoisted_5$
|
|
8580
|
+
createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
|
|
8581
|
+
createBaseVNode("div", _hoisted_5$e, toDisplayString(text.value), 1)
|
|
8572
8582
|
]))
|
|
8573
8583
|
], 16));
|
|
8574
8584
|
};
|
|
@@ -8908,7 +8918,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
8908
8918
|
const _hoisted_1$_ = ["href"];
|
|
8909
8919
|
const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
|
|
8910
8920
|
const _hoisted_3$x = { class: "lupa-search-box-product-details-section" };
|
|
8911
|
-
const _hoisted_4$
|
|
8921
|
+
const _hoisted_4$p = {
|
|
8912
8922
|
key: 0,
|
|
8913
8923
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
8914
8924
|
};
|
|
@@ -8987,7 +8997,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
8987
8997
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
8988
8998
|
}), 128))
|
|
8989
8999
|
]),
|
|
8990
|
-
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
9000
|
+
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$p, [
|
|
8991
9001
|
createVNode(_sfc_main$13, {
|
|
8992
9002
|
class: "lupa-search-box-product-element",
|
|
8993
9003
|
item: _ctx.item,
|
|
@@ -9111,7 +9121,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
9111
9121
|
}
|
|
9112
9122
|
}
|
|
9113
9123
|
});
|
|
9114
|
-
if (!link) {
|
|
9124
|
+
if (!link || eventType === "addToCart") {
|
|
9115
9125
|
return;
|
|
9116
9126
|
}
|
|
9117
9127
|
emit2("product-click");
|
|
@@ -9223,7 +9233,7 @@ const _hoisted_3$w = {
|
|
|
9223
9233
|
key: 0,
|
|
9224
9234
|
class: "lupa-panel-title"
|
|
9225
9235
|
};
|
|
9226
|
-
const _hoisted_4$
|
|
9236
|
+
const _hoisted_4$o = {
|
|
9227
9237
|
key: 1,
|
|
9228
9238
|
id: "lupa-search-box-panel"
|
|
9229
9239
|
};
|
|
@@ -9404,7 +9414,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
9404
9414
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
9405
9415
|
onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
|
|
9406
9416
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
9407
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
9417
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
|
|
9408
9418
|
createVNode(_sfc_main$1h, {
|
|
9409
9419
|
options: _ctx.options.history,
|
|
9410
9420
|
history: history.value,
|
|
@@ -9782,7 +9792,7 @@ const _hoisted_3$v = {
|
|
|
9782
9792
|
key: 1,
|
|
9783
9793
|
"data-cy": "did-you-mean-label"
|
|
9784
9794
|
};
|
|
9785
|
-
const _hoisted_4$
|
|
9795
|
+
const _hoisted_4$n = { key: 1 };
|
|
9786
9796
|
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
9787
9797
|
__name: "SearchResultsDidYouMean",
|
|
9788
9798
|
props: {
|
|
@@ -9833,7 +9843,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
9833
9843
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
9834
9844
|
"data-cy": "did-you-mean-value",
|
|
9835
9845
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
9836
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
9846
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
|
|
9837
9847
|
]);
|
|
9838
9848
|
}), 128))
|
|
9839
9849
|
])) : createCommentVNode("", true)
|
|
@@ -9883,7 +9893,7 @@ const _hoisted_3$u = {
|
|
|
9883
9893
|
key: 1,
|
|
9884
9894
|
class: "lupa-results-total-count"
|
|
9885
9895
|
};
|
|
9886
|
-
const _hoisted_4$
|
|
9896
|
+
const _hoisted_4$m = ["innerHTML"];
|
|
9887
9897
|
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
9888
9898
|
__name: "SearchResultsTitle",
|
|
9889
9899
|
props: {
|
|
@@ -9932,7 +9942,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
9932
9942
|
key: 2,
|
|
9933
9943
|
class: "lupa-result-page-description-top",
|
|
9934
9944
|
innerHTML: descriptionTop.value
|
|
9935
|
-
}, null, 8, _hoisted_4$
|
|
9945
|
+
}, null, 8, _hoisted_4$m)) : createCommentVNode("", true)
|
|
9936
9946
|
]);
|
|
9937
9947
|
};
|
|
9938
9948
|
}
|
|
@@ -9978,7 +9988,7 @@ const _hoisted_3$s = {
|
|
|
9978
9988
|
key: 0,
|
|
9979
9989
|
class: "filter-values"
|
|
9980
9990
|
};
|
|
9981
|
-
const _hoisted_4$
|
|
9991
|
+
const _hoisted_4$l = { class: "lupa-current-filter-list" };
|
|
9982
9992
|
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
9983
9993
|
__name: "CurrentFilters",
|
|
9984
9994
|
props: {
|
|
@@ -10044,7 +10054,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
10044
10054
|
}, null, 2)) : createCommentVNode("", true)
|
|
10045
10055
|
]),
|
|
10046
10056
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$s, [
|
|
10047
|
-
createBaseVNode("div", _hoisted_4$
|
|
10057
|
+
createBaseVNode("div", _hoisted_4$l, [
|
|
10048
10058
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
|
|
10049
10059
|
return openBlock(), createBlock(_sfc_main$W, {
|
|
10050
10060
|
key: filter.key + "_" + filter.value,
|
|
@@ -10112,8 +10122,8 @@ const _hoisted_1$Q = {
|
|
|
10112
10122
|
};
|
|
10113
10123
|
const _hoisted_2$A = { class: "lupa-category-back" };
|
|
10114
10124
|
const _hoisted_3$r = ["href"];
|
|
10115
|
-
const _hoisted_4$
|
|
10116
|
-
const _hoisted_5$
|
|
10125
|
+
const _hoisted_4$k = ["href"];
|
|
10126
|
+
const _hoisted_5$d = { class: "lupa-child-category-list" };
|
|
10117
10127
|
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
10118
10128
|
__name: "CategoryFilter",
|
|
10119
10129
|
props: {
|
|
@@ -10217,9 +10227,9 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
10217
10227
|
href: parentUrlLink.value,
|
|
10218
10228
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
10219
10229
|
onClick: handleNavigationParent
|
|
10220
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
10230
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
|
|
10221
10231
|
], 2),
|
|
10222
|
-
createBaseVNode("div", _hoisted_5$
|
|
10232
|
+
createBaseVNode("div", _hoisted_5$d, [
|
|
10223
10233
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
10224
10234
|
return openBlock(), createBlock(_sfc_main$U, {
|
|
10225
10235
|
key: getCategoryKey(child),
|
|
@@ -10238,8 +10248,8 @@ const _hoisted_1$P = {
|
|
|
10238
10248
|
};
|
|
10239
10249
|
const _hoisted_2$z = ["placeholder"];
|
|
10240
10250
|
const _hoisted_3$q = { class: "lupa-terms-list" };
|
|
10241
|
-
const _hoisted_4$
|
|
10242
|
-
const _hoisted_5$
|
|
10251
|
+
const _hoisted_4$j = ["onClick"];
|
|
10252
|
+
const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
|
|
10243
10253
|
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
10244
10254
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
10245
10255
|
const _hoisted_8$1 = {
|
|
@@ -10335,7 +10345,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
10335
10345
|
key: item.title,
|
|
10336
10346
|
onClick: ($event) => handleFacetClick(item)
|
|
10337
10347
|
}, [
|
|
10338
|
-
createBaseVNode("div", _hoisted_5$
|
|
10348
|
+
createBaseVNode("div", _hoisted_5$c, [
|
|
10339
10349
|
createBaseVNode("span", {
|
|
10340
10350
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
10341
10351
|
}, null, 2)
|
|
@@ -10344,7 +10354,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
10344
10354
|
createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
|
|
10345
10355
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
10346
10356
|
])
|
|
10347
|
-
], 10, _hoisted_4$
|
|
10357
|
+
], 10, _hoisted_4$j);
|
|
10348
10358
|
}), 128))
|
|
10349
10359
|
]),
|
|
10350
10360
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -11344,12 +11354,12 @@ const _hoisted_3$p = {
|
|
|
11344
11354
|
key: 1,
|
|
11345
11355
|
class: "lupa-stats-facet-summary-input"
|
|
11346
11356
|
};
|
|
11347
|
-
const _hoisted_4$
|
|
11357
|
+
const _hoisted_4$i = {
|
|
11348
11358
|
key: 0,
|
|
11349
11359
|
class: "lupa-stats-range-label"
|
|
11350
11360
|
};
|
|
11351
|
-
const _hoisted_5$
|
|
11352
|
-
const _hoisted_6$7 = ["max", "min", "pattern"];
|
|
11361
|
+
const _hoisted_5$b = { class: "lupa-stats-from" };
|
|
11362
|
+
const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
|
|
11353
11363
|
const _hoisted_7$5 = { key: 0 };
|
|
11354
11364
|
const _hoisted_8 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
11355
11365
|
const _hoisted_9 = {
|
|
@@ -11357,7 +11367,7 @@ const _hoisted_9 = {
|
|
|
11357
11367
|
class: "lupa-stats-range-label"
|
|
11358
11368
|
};
|
|
11359
11369
|
const _hoisted_10 = { class: "lupa-stats-to" };
|
|
11360
|
-
const _hoisted_11 = ["max", "min", "pattern"];
|
|
11370
|
+
const _hoisted_11 = ["max", "min", "pattern", "aria-label"];
|
|
11361
11371
|
const _hoisted_12 = { key: 0 };
|
|
11362
11372
|
const _hoisted_13 = {
|
|
11363
11373
|
key: 2,
|
|
@@ -11485,6 +11495,20 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
11485
11495
|
const sliderInputFormat = computed(() => {
|
|
11486
11496
|
return isPrice.value ? `[0-9]+([${separator.value}][0-9]{1,2})?` : void 0;
|
|
11487
11497
|
});
|
|
11498
|
+
const sliderAria = computed(() => {
|
|
11499
|
+
var _a, _b, _c, _d, _e, _f;
|
|
11500
|
+
return {
|
|
11501
|
+
"aria-label": ((_b = (_a = props.options.stats) == null ? void 0 : _a.labels) == null ? void 0 : _b.sliderDotAriaLabel) ? `${(_d = (_c = props.options.stats) == null ? void 0 : _c.labels) == null ? void 0 : _d.sliderDotAriaLabel} - ${(_e = props.facet) == null ? void 0 : _e.label}` : `Range slider control dot for ${(_f = props.facet) == null ? void 0 : _f.label}`
|
|
11502
|
+
};
|
|
11503
|
+
});
|
|
11504
|
+
const ariaLabelFrom = computed(() => {
|
|
11505
|
+
var _a, _b, _c, _d, _e;
|
|
11506
|
+
return `${(_b = (_a = props.facet) == null ? void 0 : _a.label) != null ? _b : ""} ${(_e = (_d = (_c = props.options.stats) == null ? void 0 : _c.labels) == null ? void 0 : _d.ariaFrom) != null ? _e : rangeLabelFrom.value}`;
|
|
11507
|
+
});
|
|
11508
|
+
const ariaLabelTo = computed(() => {
|
|
11509
|
+
var _a, _b, _c, _d, _e;
|
|
11510
|
+
return `${(_b = (_a = props.facet) == null ? void 0 : _a.label) != null ? _b : ""} ${(_e = (_d = (_c = props.options.stats) == null ? void 0 : _c.labels) == null ? void 0 : _d.ariaTo) != null ? _e : rangeLabelTo.value}`;
|
|
11511
|
+
});
|
|
11488
11512
|
watch(currentMinValue, () => {
|
|
11489
11513
|
innerSliderRange.value = [];
|
|
11490
11514
|
});
|
|
@@ -11514,15 +11538,16 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
11514
11538
|
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
11515
11539
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$p, [
|
|
11516
11540
|
createBaseVNode("div", null, [
|
|
11517
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
11518
|
-
createBaseVNode("div", _hoisted_5$
|
|
11541
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
11542
|
+
createBaseVNode("div", _hoisted_5$b, [
|
|
11519
11543
|
withDirectives(createBaseVNode("input", {
|
|
11520
11544
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
11521
11545
|
type: "text",
|
|
11522
11546
|
maxlength: "8",
|
|
11523
11547
|
max: facetMax.value,
|
|
11524
11548
|
min: facetMin.value,
|
|
11525
|
-
pattern: sliderInputFormat.value
|
|
11549
|
+
pattern: sliderInputFormat.value,
|
|
11550
|
+
"aria-label": ariaLabelFrom.value
|
|
11526
11551
|
}, null, 8, _hoisted_6$7), [
|
|
11527
11552
|
[
|
|
11528
11553
|
vModelText,
|
|
@@ -11544,7 +11569,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
11544
11569
|
maxlength: "8",
|
|
11545
11570
|
max: facetMax.value,
|
|
11546
11571
|
min: facetMin.value,
|
|
11547
|
-
pattern: sliderInputFormat.value
|
|
11572
|
+
pattern: sliderInputFormat.value,
|
|
11573
|
+
"aria-label": ariaLabelTo.value
|
|
11548
11574
|
}, null, 8, _hoisted_11), [
|
|
11549
11575
|
[
|
|
11550
11576
|
vModelText,
|
|
@@ -11565,11 +11591,12 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
11565
11591
|
max: facetMax.value,
|
|
11566
11592
|
lazy: true,
|
|
11567
11593
|
step: interval.value,
|
|
11594
|
+
aria: sliderAria.value,
|
|
11568
11595
|
modelValue: sliderRange.value,
|
|
11569
11596
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => sliderRange.value = $event),
|
|
11570
11597
|
onSlide: handleDragging,
|
|
11571
11598
|
onEnd: handleChange
|
|
11572
|
-
}, null, 8, ["min", "max", "step", "modelValue"])
|
|
11599
|
+
}, null, 8, ["min", "max", "step", "aria", "modelValue"])
|
|
11573
11600
|
])) : createCommentVNode("", true)
|
|
11574
11601
|
]);
|
|
11575
11602
|
};
|
|
@@ -11578,11 +11605,11 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
11578
11605
|
const _hoisted_1$N = { class: "lupa-term-checkbox-wrapper" };
|
|
11579
11606
|
const _hoisted_2$x = { class: "lupa-term-checkbox-label" };
|
|
11580
11607
|
const _hoisted_3$o = { class: "lupa-term-label" };
|
|
11581
|
-
const _hoisted_4$
|
|
11608
|
+
const _hoisted_4$h = {
|
|
11582
11609
|
key: 0,
|
|
11583
11610
|
class: "lupa-term-count"
|
|
11584
11611
|
};
|
|
11585
|
-
const _hoisted_5$
|
|
11612
|
+
const _hoisted_5$a = {
|
|
11586
11613
|
key: 0,
|
|
11587
11614
|
class: "lupa-facet-level"
|
|
11588
11615
|
};
|
|
@@ -11639,10 +11666,10 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
11639
11666
|
]),
|
|
11640
11667
|
createBaseVNode("div", _hoisted_2$x, [
|
|
11641
11668
|
createBaseVNode("span", _hoisted_3$o, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
11642
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
11669
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
11643
11670
|
])
|
|
11644
11671
|
]),
|
|
11645
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
11672
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
|
|
11646
11673
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
11647
11674
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
11648
11675
|
key: itemChild.title,
|
|
@@ -12075,8 +12102,8 @@ const _hoisted_1$H = {
|
|
|
12075
12102
|
};
|
|
12076
12103
|
const _hoisted_2$t = ["onClick"];
|
|
12077
12104
|
const _hoisted_3$m = { class: "lupa-mobile-sidebar-content" };
|
|
12078
|
-
const _hoisted_4$
|
|
12079
|
-
const _hoisted_5$
|
|
12105
|
+
const _hoisted_4$g = { class: "lupa-sidebar-top" };
|
|
12106
|
+
const _hoisted_5$9 = { class: "lupa-sidebar-title" };
|
|
12080
12107
|
const _hoisted_6$6 = {
|
|
12081
12108
|
key: 0,
|
|
12082
12109
|
class: "lupa-sidebar-filter-count"
|
|
@@ -12114,8 +12141,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
12114
12141
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
12115
12142
|
}, null, 8, _hoisted_2$t),
|
|
12116
12143
|
createBaseVNode("div", _hoisted_3$m, [
|
|
12117
|
-
createBaseVNode("div", _hoisted_4$
|
|
12118
|
-
createBaseVNode("div", _hoisted_5$
|
|
12144
|
+
createBaseVNode("div", _hoisted_4$g, [
|
|
12145
|
+
createBaseVNode("div", _hoisted_5$9, [
|
|
12119
12146
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
12120
12147
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
12121
12148
|
]),
|
|
@@ -12141,7 +12168,7 @@ const _hoisted_3$l = {
|
|
|
12141
12168
|
key: 1,
|
|
12142
12169
|
class: "lupa-search-results-breadcrumb-text"
|
|
12143
12170
|
};
|
|
12144
|
-
const _hoisted_4$
|
|
12171
|
+
const _hoisted_4$f = { key: 2 };
|
|
12145
12172
|
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
12146
12173
|
__name: "SearchResultsBreadcrumbs",
|
|
12147
12174
|
props: {
|
|
@@ -12182,7 +12209,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
12182
12209
|
return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
12183
12210
|
}
|
|
12184
12211
|
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$l, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
12185
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
12212
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
|
|
12186
12213
|
]);
|
|
12187
12214
|
}), 128))
|
|
12188
12215
|
]);
|
|
@@ -12283,7 +12310,7 @@ const _hoisted_2$r = {
|
|
|
12283
12310
|
class: "lupa-page-number-separator"
|
|
12284
12311
|
};
|
|
12285
12312
|
const _hoisted_3$k = ["onClick"];
|
|
12286
|
-
const _hoisted_4$
|
|
12313
|
+
const _hoisted_4$e = {
|
|
12287
12314
|
key: 0,
|
|
12288
12315
|
class: "lupa-page-number-separator"
|
|
12289
12316
|
};
|
|
@@ -12374,7 +12401,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
12374
12401
|
}, toDisplayString(page), 11, _hoisted_3$k);
|
|
12375
12402
|
}), 128)),
|
|
12376
12403
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
12377
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
12404
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
|
|
12378
12405
|
createBaseVNode("div", {
|
|
12379
12406
|
class: "lupa-page-number lupa-page-number-last",
|
|
12380
12407
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -12399,6 +12426,7 @@ const _hoisted_1$B = {
|
|
|
12399
12426
|
};
|
|
12400
12427
|
const _hoisted_2$q = { id: "lupa-select" };
|
|
12401
12428
|
const _hoisted_3$j = { class: "lupa-select-label" };
|
|
12429
|
+
const _hoisted_4$d = ["aria-label"];
|
|
12402
12430
|
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
12403
12431
|
__name: "SearchResultsPageSize",
|
|
12404
12432
|
props: {
|
|
@@ -12421,6 +12449,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
12421
12449
|
createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.label), 1),
|
|
12422
12450
|
createBaseVNode("select", {
|
|
12423
12451
|
class: "lupa-select-dropdown",
|
|
12452
|
+
"aria-label": _ctx.label,
|
|
12424
12453
|
"data-cy": "lupa-page-size-select-dropdown",
|
|
12425
12454
|
onChange: handleSelect,
|
|
12426
12455
|
ref_key: "select",
|
|
@@ -12429,7 +12458,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
12429
12458
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
|
|
12430
12459
|
return openBlock(), createElementBlock("option", { key: option }, toDisplayString(option), 1);
|
|
12431
12460
|
}), 128))
|
|
12432
|
-
],
|
|
12461
|
+
], 40, _hoisted_4$d)
|
|
12433
12462
|
])
|
|
12434
12463
|
]);
|
|
12435
12464
|
};
|
|
@@ -12441,7 +12470,8 @@ const _hoisted_1$A = {
|
|
|
12441
12470
|
};
|
|
12442
12471
|
const _hoisted_2$p = { id: "lupa-select" };
|
|
12443
12472
|
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
12444
|
-
const _hoisted_4$c = ["
|
|
12473
|
+
const _hoisted_4$c = ["aria-label"];
|
|
12474
|
+
const _hoisted_5$8 = ["value"];
|
|
12445
12475
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
12446
12476
|
__name: "SearchResultsSort",
|
|
12447
12477
|
props: {
|
|
@@ -12495,6 +12525,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12495
12525
|
createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.options.label), 1),
|
|
12496
12526
|
withDirectives(createBaseVNode("select", {
|
|
12497
12527
|
class: "lupa-select-dropdown",
|
|
12528
|
+
"aria-label": _ctx.options.label,
|
|
12498
12529
|
"data-cy": "lupa-sort-select-dropdown",
|
|
12499
12530
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedKey.value = $event),
|
|
12500
12531
|
onChange: handleSelect,
|
|
@@ -12504,9 +12535,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12504
12535
|
return openBlock(), createElementBlock("option", {
|
|
12505
12536
|
key: option.key,
|
|
12506
12537
|
value: option.key
|
|
12507
|
-
}, toDisplayString(option.label), 9,
|
|
12538
|
+
}, toDisplayString(option.label), 9, _hoisted_5$8);
|
|
12508
12539
|
}), 128))
|
|
12509
|
-
],
|
|
12540
|
+
], 40, _hoisted_4$c), [
|
|
12510
12541
|
[vModelSelect, selectedKey.value]
|
|
12511
12542
|
])
|
|
12512
12543
|
])
|