@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.mjs
CHANGED
|
@@ -6271,11 +6271,15 @@ const suggest = (queryKey, query, environment, customBaseUrl) => __awaiter(void
|
|
|
6271
6271
|
return { success: false, errors };
|
|
6272
6272
|
});
|
|
6273
6273
|
const track$1 = (queryKey, event, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6274
|
-
|
|
6275
|
-
|
|
6274
|
+
try {
|
|
6275
|
+
const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}events`, Object.assign(Object.assign({}, defaultConfig$1), { body: JSON.stringify(Object.assign({ queryKey }, event)) }));
|
|
6276
|
+
if (res.status < 400) {
|
|
6277
|
+
return { success: false };
|
|
6278
|
+
}
|
|
6279
|
+
return res.json();
|
|
6280
|
+
} catch (e) {
|
|
6276
6281
|
return { success: false };
|
|
6277
6282
|
}
|
|
6278
|
-
return res.json();
|
|
6279
6283
|
});
|
|
6280
6284
|
const loadRedirectionRules = (queryKey, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6281
6285
|
const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}redirections/${queryKey}`, Object.assign(Object.assign({}, defaultConfig$1), { method: "GET" }));
|
|
@@ -7804,8 +7808,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
7804
7808
|
const _hoisted_1$1c = { id: "lupa-search-box-input-container" };
|
|
7805
7809
|
const _hoisted_2$P = { class: "lupa-input-clear" };
|
|
7806
7810
|
const _hoisted_3$B = { id: "lupa-search-box-input" };
|
|
7807
|
-
const _hoisted_4$
|
|
7808
|
-
const _hoisted_5$
|
|
7811
|
+
const _hoisted_4$s = ["value"];
|
|
7812
|
+
const _hoisted_5$g = ["aria-label", "placeholder"];
|
|
7809
7813
|
const _hoisted_6$9 = {
|
|
7810
7814
|
key: 0,
|
|
7811
7815
|
class: "lupa-close-label"
|
|
@@ -7854,6 +7858,10 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
7854
7858
|
var _a;
|
|
7855
7859
|
return __spreadValues2({}, (_a = props.options.inputAttributes) != null ? _a : {});
|
|
7856
7860
|
});
|
|
7861
|
+
const ariaLabel = computed(() => {
|
|
7862
|
+
var _a;
|
|
7863
|
+
return (_a = labels.value.searchInputAriaLabel) != null ? _a : "Search input";
|
|
7864
|
+
});
|
|
7857
7865
|
watch(suggestedValue, () => {
|
|
7858
7866
|
if (suggestedValue.value.override) {
|
|
7859
7867
|
input.value = suggestedValue.value.item.suggestion;
|
|
@@ -7897,22 +7905,24 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
7897
7905
|
createBaseVNode("div", _hoisted_3$B, [
|
|
7898
7906
|
createBaseVNode("input", {
|
|
7899
7907
|
class: "lupa-hint",
|
|
7908
|
+
"aria-hidden": "true",
|
|
7900
7909
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
7901
7910
|
disabled: ""
|
|
7902
|
-
}, null, 8, _hoisted_4$
|
|
7911
|
+
}, null, 8, _hoisted_4$s),
|
|
7903
7912
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
7904
7913
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
7905
7914
|
}, inputAttributes.value, {
|
|
7906
7915
|
ref_key: "mainInput",
|
|
7907
7916
|
ref: mainInput,
|
|
7908
7917
|
autocomplete: "off",
|
|
7918
|
+
"aria-label": ariaLabel.value,
|
|
7909
7919
|
class: "lupa-search-box-input-field",
|
|
7910
7920
|
"data-cy": "lupa-search-box-input-field",
|
|
7911
7921
|
type: "text",
|
|
7912
7922
|
placeholder: labels.value.placeholder,
|
|
7913
7923
|
onInput: handleInput,
|
|
7914
7924
|
onFocus: handleFocus
|
|
7915
|
-
}), null, 16, _hoisted_5$
|
|
7925
|
+
}), null, 16, _hoisted_5$g), [
|
|
7916
7926
|
[vModelText, inputValue.value]
|
|
7917
7927
|
])
|
|
7918
7928
|
]),
|
|
@@ -8078,11 +8088,11 @@ const _hoisted_3$A = {
|
|
|
8078
8088
|
class: "lupa-suggestion-facet",
|
|
8079
8089
|
"data-cy": "lupa-suggestion-facet"
|
|
8080
8090
|
};
|
|
8081
|
-
const _hoisted_4$
|
|
8091
|
+
const _hoisted_4$r = {
|
|
8082
8092
|
class: "lupa-suggestion-facet-label",
|
|
8083
8093
|
"data-cy": "lupa-suggestion-facet-label"
|
|
8084
8094
|
};
|
|
8085
|
-
const _hoisted_5$
|
|
8095
|
+
const _hoisted_5$f = {
|
|
8086
8096
|
class: "lupa-suggestion-facet-value",
|
|
8087
8097
|
"data-cy": "lupa-suggestion-facet-value"
|
|
8088
8098
|
};
|
|
@@ -8124,8 +8134,8 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
8124
8134
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
8125
8135
|
}, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8126
8136
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
8127
|
-
createBaseVNode("span", _hoisted_4$
|
|
8128
|
-
createBaseVNode("span", _hoisted_5$
|
|
8137
|
+
createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
|
|
8138
|
+
createBaseVNode("span", _hoisted_5$f, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8129
8139
|
])) : createCommentVNode("", true)
|
|
8130
8140
|
]);
|
|
8131
8141
|
};
|
|
@@ -8532,8 +8542,8 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
8532
8542
|
const _hoisted_1$11 = ["innerHTML"];
|
|
8533
8543
|
const _hoisted_2$K = { key: 0 };
|
|
8534
8544
|
const _hoisted_3$z = { key: 1 };
|
|
8535
|
-
const _hoisted_4$
|
|
8536
|
-
const _hoisted_5$
|
|
8545
|
+
const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
|
|
8546
|
+
const _hoisted_5$e = { class: "lupa-search-box-custom-text" };
|
|
8537
8547
|
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
8538
8548
|
__name: "SearchBoxProductCustom",
|
|
8539
8549
|
props: {
|
|
@@ -8565,8 +8575,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
8565
8575
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
8566
8576
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
8567
8577
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
8568
|
-
createBaseVNode("div", _hoisted_4$
|
|
8569
|
-
createBaseVNode("div", _hoisted_5$
|
|
8578
|
+
createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
|
|
8579
|
+
createBaseVNode("div", _hoisted_5$e, toDisplayString(text.value), 1)
|
|
8570
8580
|
]))
|
|
8571
8581
|
], 16));
|
|
8572
8582
|
};
|
|
@@ -8906,7 +8916,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
8906
8916
|
const _hoisted_1$_ = ["href"];
|
|
8907
8917
|
const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
|
|
8908
8918
|
const _hoisted_3$x = { class: "lupa-search-box-product-details-section" };
|
|
8909
|
-
const _hoisted_4$
|
|
8919
|
+
const _hoisted_4$p = {
|
|
8910
8920
|
key: 0,
|
|
8911
8921
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
8912
8922
|
};
|
|
@@ -8985,7 +8995,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
8985
8995
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
8986
8996
|
}), 128))
|
|
8987
8997
|
]),
|
|
8988
|
-
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
8998
|
+
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$p, [
|
|
8989
8999
|
createVNode(_sfc_main$13, {
|
|
8990
9000
|
class: "lupa-search-box-product-element",
|
|
8991
9001
|
item: _ctx.item,
|
|
@@ -9109,7 +9119,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
9109
9119
|
}
|
|
9110
9120
|
}
|
|
9111
9121
|
});
|
|
9112
|
-
if (!link) {
|
|
9122
|
+
if (!link || eventType === "addToCart") {
|
|
9113
9123
|
return;
|
|
9114
9124
|
}
|
|
9115
9125
|
emit2("product-click");
|
|
@@ -9221,7 +9231,7 @@ const _hoisted_3$w = {
|
|
|
9221
9231
|
key: 0,
|
|
9222
9232
|
class: "lupa-panel-title"
|
|
9223
9233
|
};
|
|
9224
|
-
const _hoisted_4$
|
|
9234
|
+
const _hoisted_4$o = {
|
|
9225
9235
|
key: 1,
|
|
9226
9236
|
id: "lupa-search-box-panel"
|
|
9227
9237
|
};
|
|
@@ -9402,7 +9412,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
9402
9412
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
9403
9413
|
onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
|
|
9404
9414
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
9405
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
9415
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
|
|
9406
9416
|
createVNode(_sfc_main$1h, {
|
|
9407
9417
|
options: _ctx.options.history,
|
|
9408
9418
|
history: history.value,
|
|
@@ -9780,7 +9790,7 @@ const _hoisted_3$v = {
|
|
|
9780
9790
|
key: 1,
|
|
9781
9791
|
"data-cy": "did-you-mean-label"
|
|
9782
9792
|
};
|
|
9783
|
-
const _hoisted_4$
|
|
9793
|
+
const _hoisted_4$n = { key: 1 };
|
|
9784
9794
|
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
9785
9795
|
__name: "SearchResultsDidYouMean",
|
|
9786
9796
|
props: {
|
|
@@ -9831,7 +9841,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
9831
9841
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
9832
9842
|
"data-cy": "did-you-mean-value",
|
|
9833
9843
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
9834
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
9844
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
|
|
9835
9845
|
]);
|
|
9836
9846
|
}), 128))
|
|
9837
9847
|
])) : createCommentVNode("", true)
|
|
@@ -9881,7 +9891,7 @@ const _hoisted_3$u = {
|
|
|
9881
9891
|
key: 1,
|
|
9882
9892
|
class: "lupa-results-total-count"
|
|
9883
9893
|
};
|
|
9884
|
-
const _hoisted_4$
|
|
9894
|
+
const _hoisted_4$m = ["innerHTML"];
|
|
9885
9895
|
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
9886
9896
|
__name: "SearchResultsTitle",
|
|
9887
9897
|
props: {
|
|
@@ -9930,7 +9940,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
9930
9940
|
key: 2,
|
|
9931
9941
|
class: "lupa-result-page-description-top",
|
|
9932
9942
|
innerHTML: descriptionTop.value
|
|
9933
|
-
}, null, 8, _hoisted_4$
|
|
9943
|
+
}, null, 8, _hoisted_4$m)) : createCommentVNode("", true)
|
|
9934
9944
|
]);
|
|
9935
9945
|
};
|
|
9936
9946
|
}
|
|
@@ -9976,7 +9986,7 @@ const _hoisted_3$s = {
|
|
|
9976
9986
|
key: 0,
|
|
9977
9987
|
class: "filter-values"
|
|
9978
9988
|
};
|
|
9979
|
-
const _hoisted_4$
|
|
9989
|
+
const _hoisted_4$l = { class: "lupa-current-filter-list" };
|
|
9980
9990
|
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
9981
9991
|
__name: "CurrentFilters",
|
|
9982
9992
|
props: {
|
|
@@ -10042,7 +10052,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
10042
10052
|
}, null, 2)) : createCommentVNode("", true)
|
|
10043
10053
|
]),
|
|
10044
10054
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$s, [
|
|
10045
|
-
createBaseVNode("div", _hoisted_4$
|
|
10055
|
+
createBaseVNode("div", _hoisted_4$l, [
|
|
10046
10056
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
|
|
10047
10057
|
return openBlock(), createBlock(_sfc_main$W, {
|
|
10048
10058
|
key: filter.key + "_" + filter.value,
|
|
@@ -10110,8 +10120,8 @@ const _hoisted_1$Q = {
|
|
|
10110
10120
|
};
|
|
10111
10121
|
const _hoisted_2$A = { class: "lupa-category-back" };
|
|
10112
10122
|
const _hoisted_3$r = ["href"];
|
|
10113
|
-
const _hoisted_4$
|
|
10114
|
-
const _hoisted_5$
|
|
10123
|
+
const _hoisted_4$k = ["href"];
|
|
10124
|
+
const _hoisted_5$d = { class: "lupa-child-category-list" };
|
|
10115
10125
|
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
10116
10126
|
__name: "CategoryFilter",
|
|
10117
10127
|
props: {
|
|
@@ -10215,9 +10225,9 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
10215
10225
|
href: parentUrlLink.value,
|
|
10216
10226
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
10217
10227
|
onClick: handleNavigationParent
|
|
10218
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
10228
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
|
|
10219
10229
|
], 2),
|
|
10220
|
-
createBaseVNode("div", _hoisted_5$
|
|
10230
|
+
createBaseVNode("div", _hoisted_5$d, [
|
|
10221
10231
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
10222
10232
|
return openBlock(), createBlock(_sfc_main$U, {
|
|
10223
10233
|
key: getCategoryKey(child),
|
|
@@ -10236,8 +10246,8 @@ const _hoisted_1$P = {
|
|
|
10236
10246
|
};
|
|
10237
10247
|
const _hoisted_2$z = ["placeholder"];
|
|
10238
10248
|
const _hoisted_3$q = { class: "lupa-terms-list" };
|
|
10239
|
-
const _hoisted_4$
|
|
10240
|
-
const _hoisted_5$
|
|
10249
|
+
const _hoisted_4$j = ["onClick"];
|
|
10250
|
+
const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
|
|
10241
10251
|
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
10242
10252
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
10243
10253
|
const _hoisted_8$1 = {
|
|
@@ -10333,7 +10343,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
10333
10343
|
key: item.title,
|
|
10334
10344
|
onClick: ($event) => handleFacetClick(item)
|
|
10335
10345
|
}, [
|
|
10336
|
-
createBaseVNode("div", _hoisted_5$
|
|
10346
|
+
createBaseVNode("div", _hoisted_5$c, [
|
|
10337
10347
|
createBaseVNode("span", {
|
|
10338
10348
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
10339
10349
|
}, null, 2)
|
|
@@ -10342,7 +10352,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
10342
10352
|
createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
|
|
10343
10353
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
10344
10354
|
])
|
|
10345
|
-
], 10, _hoisted_4$
|
|
10355
|
+
], 10, _hoisted_4$j);
|
|
10346
10356
|
}), 128))
|
|
10347
10357
|
]),
|
|
10348
10358
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -11342,12 +11352,12 @@ const _hoisted_3$p = {
|
|
|
11342
11352
|
key: 1,
|
|
11343
11353
|
class: "lupa-stats-facet-summary-input"
|
|
11344
11354
|
};
|
|
11345
|
-
const _hoisted_4$
|
|
11355
|
+
const _hoisted_4$i = {
|
|
11346
11356
|
key: 0,
|
|
11347
11357
|
class: "lupa-stats-range-label"
|
|
11348
11358
|
};
|
|
11349
|
-
const _hoisted_5$
|
|
11350
|
-
const _hoisted_6$7 = ["max", "min", "pattern"];
|
|
11359
|
+
const _hoisted_5$b = { class: "lupa-stats-from" };
|
|
11360
|
+
const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
|
|
11351
11361
|
const _hoisted_7$5 = { key: 0 };
|
|
11352
11362
|
const _hoisted_8 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
11353
11363
|
const _hoisted_9 = {
|
|
@@ -11355,7 +11365,7 @@ const _hoisted_9 = {
|
|
|
11355
11365
|
class: "lupa-stats-range-label"
|
|
11356
11366
|
};
|
|
11357
11367
|
const _hoisted_10 = { class: "lupa-stats-to" };
|
|
11358
|
-
const _hoisted_11 = ["max", "min", "pattern"];
|
|
11368
|
+
const _hoisted_11 = ["max", "min", "pattern", "aria-label"];
|
|
11359
11369
|
const _hoisted_12 = { key: 0 };
|
|
11360
11370
|
const _hoisted_13 = {
|
|
11361
11371
|
key: 2,
|
|
@@ -11483,6 +11493,20 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
11483
11493
|
const sliderInputFormat = computed(() => {
|
|
11484
11494
|
return isPrice.value ? `[0-9]+([${separator.value}][0-9]{1,2})?` : void 0;
|
|
11485
11495
|
});
|
|
11496
|
+
const sliderAria = computed(() => {
|
|
11497
|
+
var _a, _b, _c, _d, _e, _f;
|
|
11498
|
+
return {
|
|
11499
|
+
"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}`
|
|
11500
|
+
};
|
|
11501
|
+
});
|
|
11502
|
+
const ariaLabelFrom = computed(() => {
|
|
11503
|
+
var _a, _b, _c, _d, _e;
|
|
11504
|
+
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}`;
|
|
11505
|
+
});
|
|
11506
|
+
const ariaLabelTo = computed(() => {
|
|
11507
|
+
var _a, _b, _c, _d, _e;
|
|
11508
|
+
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}`;
|
|
11509
|
+
});
|
|
11486
11510
|
watch(currentMinValue, () => {
|
|
11487
11511
|
innerSliderRange.value = [];
|
|
11488
11512
|
});
|
|
@@ -11512,15 +11536,16 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
11512
11536
|
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
11513
11537
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$p, [
|
|
11514
11538
|
createBaseVNode("div", null, [
|
|
11515
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
11516
|
-
createBaseVNode("div", _hoisted_5$
|
|
11539
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
11540
|
+
createBaseVNode("div", _hoisted_5$b, [
|
|
11517
11541
|
withDirectives(createBaseVNode("input", {
|
|
11518
11542
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
11519
11543
|
type: "text",
|
|
11520
11544
|
maxlength: "8",
|
|
11521
11545
|
max: facetMax.value,
|
|
11522
11546
|
min: facetMin.value,
|
|
11523
|
-
pattern: sliderInputFormat.value
|
|
11547
|
+
pattern: sliderInputFormat.value,
|
|
11548
|
+
"aria-label": ariaLabelFrom.value
|
|
11524
11549
|
}, null, 8, _hoisted_6$7), [
|
|
11525
11550
|
[
|
|
11526
11551
|
vModelText,
|
|
@@ -11542,7 +11567,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
11542
11567
|
maxlength: "8",
|
|
11543
11568
|
max: facetMax.value,
|
|
11544
11569
|
min: facetMin.value,
|
|
11545
|
-
pattern: sliderInputFormat.value
|
|
11570
|
+
pattern: sliderInputFormat.value,
|
|
11571
|
+
"aria-label": ariaLabelTo.value
|
|
11546
11572
|
}, null, 8, _hoisted_11), [
|
|
11547
11573
|
[
|
|
11548
11574
|
vModelText,
|
|
@@ -11563,11 +11589,12 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
11563
11589
|
max: facetMax.value,
|
|
11564
11590
|
lazy: true,
|
|
11565
11591
|
step: interval.value,
|
|
11592
|
+
aria: sliderAria.value,
|
|
11566
11593
|
modelValue: sliderRange.value,
|
|
11567
11594
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => sliderRange.value = $event),
|
|
11568
11595
|
onSlide: handleDragging,
|
|
11569
11596
|
onEnd: handleChange
|
|
11570
|
-
}, null, 8, ["min", "max", "step", "modelValue"])
|
|
11597
|
+
}, null, 8, ["min", "max", "step", "aria", "modelValue"])
|
|
11571
11598
|
])) : createCommentVNode("", true)
|
|
11572
11599
|
]);
|
|
11573
11600
|
};
|
|
@@ -11576,11 +11603,11 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
11576
11603
|
const _hoisted_1$N = { class: "lupa-term-checkbox-wrapper" };
|
|
11577
11604
|
const _hoisted_2$x = { class: "lupa-term-checkbox-label" };
|
|
11578
11605
|
const _hoisted_3$o = { class: "lupa-term-label" };
|
|
11579
|
-
const _hoisted_4$
|
|
11606
|
+
const _hoisted_4$h = {
|
|
11580
11607
|
key: 0,
|
|
11581
11608
|
class: "lupa-term-count"
|
|
11582
11609
|
};
|
|
11583
|
-
const _hoisted_5$
|
|
11610
|
+
const _hoisted_5$a = {
|
|
11584
11611
|
key: 0,
|
|
11585
11612
|
class: "lupa-facet-level"
|
|
11586
11613
|
};
|
|
@@ -11637,10 +11664,10 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
11637
11664
|
]),
|
|
11638
11665
|
createBaseVNode("div", _hoisted_2$x, [
|
|
11639
11666
|
createBaseVNode("span", _hoisted_3$o, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
11640
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
11667
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
11641
11668
|
])
|
|
11642
11669
|
]),
|
|
11643
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
11670
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
|
|
11644
11671
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
11645
11672
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
11646
11673
|
key: itemChild.title,
|
|
@@ -12073,8 +12100,8 @@ const _hoisted_1$H = {
|
|
|
12073
12100
|
};
|
|
12074
12101
|
const _hoisted_2$t = ["onClick"];
|
|
12075
12102
|
const _hoisted_3$m = { class: "lupa-mobile-sidebar-content" };
|
|
12076
|
-
const _hoisted_4$
|
|
12077
|
-
const _hoisted_5$
|
|
12103
|
+
const _hoisted_4$g = { class: "lupa-sidebar-top" };
|
|
12104
|
+
const _hoisted_5$9 = { class: "lupa-sidebar-title" };
|
|
12078
12105
|
const _hoisted_6$6 = {
|
|
12079
12106
|
key: 0,
|
|
12080
12107
|
class: "lupa-sidebar-filter-count"
|
|
@@ -12112,8 +12139,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
12112
12139
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
12113
12140
|
}, null, 8, _hoisted_2$t),
|
|
12114
12141
|
createBaseVNode("div", _hoisted_3$m, [
|
|
12115
|
-
createBaseVNode("div", _hoisted_4$
|
|
12116
|
-
createBaseVNode("div", _hoisted_5$
|
|
12142
|
+
createBaseVNode("div", _hoisted_4$g, [
|
|
12143
|
+
createBaseVNode("div", _hoisted_5$9, [
|
|
12117
12144
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
12118
12145
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
12119
12146
|
]),
|
|
@@ -12139,7 +12166,7 @@ const _hoisted_3$l = {
|
|
|
12139
12166
|
key: 1,
|
|
12140
12167
|
class: "lupa-search-results-breadcrumb-text"
|
|
12141
12168
|
};
|
|
12142
|
-
const _hoisted_4$
|
|
12169
|
+
const _hoisted_4$f = { key: 2 };
|
|
12143
12170
|
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
12144
12171
|
__name: "SearchResultsBreadcrumbs",
|
|
12145
12172
|
props: {
|
|
@@ -12180,7 +12207,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
12180
12207
|
return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
12181
12208
|
}
|
|
12182
12209
|
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$l, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
12183
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
12210
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
|
|
12184
12211
|
]);
|
|
12185
12212
|
}), 128))
|
|
12186
12213
|
]);
|
|
@@ -12281,7 +12308,7 @@ const _hoisted_2$r = {
|
|
|
12281
12308
|
class: "lupa-page-number-separator"
|
|
12282
12309
|
};
|
|
12283
12310
|
const _hoisted_3$k = ["onClick"];
|
|
12284
|
-
const _hoisted_4$
|
|
12311
|
+
const _hoisted_4$e = {
|
|
12285
12312
|
key: 0,
|
|
12286
12313
|
class: "lupa-page-number-separator"
|
|
12287
12314
|
};
|
|
@@ -12372,7 +12399,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
12372
12399
|
}, toDisplayString(page), 11, _hoisted_3$k);
|
|
12373
12400
|
}), 128)),
|
|
12374
12401
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
12375
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
12402
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
|
|
12376
12403
|
createBaseVNode("div", {
|
|
12377
12404
|
class: "lupa-page-number lupa-page-number-last",
|
|
12378
12405
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -12397,6 +12424,7 @@ const _hoisted_1$B = {
|
|
|
12397
12424
|
};
|
|
12398
12425
|
const _hoisted_2$q = { id: "lupa-select" };
|
|
12399
12426
|
const _hoisted_3$j = { class: "lupa-select-label" };
|
|
12427
|
+
const _hoisted_4$d = ["aria-label"];
|
|
12400
12428
|
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
12401
12429
|
__name: "SearchResultsPageSize",
|
|
12402
12430
|
props: {
|
|
@@ -12419,6 +12447,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
12419
12447
|
createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.label), 1),
|
|
12420
12448
|
createBaseVNode("select", {
|
|
12421
12449
|
class: "lupa-select-dropdown",
|
|
12450
|
+
"aria-label": _ctx.label,
|
|
12422
12451
|
"data-cy": "lupa-page-size-select-dropdown",
|
|
12423
12452
|
onChange: handleSelect,
|
|
12424
12453
|
ref_key: "select",
|
|
@@ -12427,7 +12456,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
12427
12456
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
|
|
12428
12457
|
return openBlock(), createElementBlock("option", { key: option }, toDisplayString(option), 1);
|
|
12429
12458
|
}), 128))
|
|
12430
|
-
],
|
|
12459
|
+
], 40, _hoisted_4$d)
|
|
12431
12460
|
])
|
|
12432
12461
|
]);
|
|
12433
12462
|
};
|
|
@@ -12439,7 +12468,8 @@ const _hoisted_1$A = {
|
|
|
12439
12468
|
};
|
|
12440
12469
|
const _hoisted_2$p = { id: "lupa-select" };
|
|
12441
12470
|
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
12442
|
-
const _hoisted_4$c = ["
|
|
12471
|
+
const _hoisted_4$c = ["aria-label"];
|
|
12472
|
+
const _hoisted_5$8 = ["value"];
|
|
12443
12473
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
12444
12474
|
__name: "SearchResultsSort",
|
|
12445
12475
|
props: {
|
|
@@ -12493,6 +12523,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12493
12523
|
createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.options.label), 1),
|
|
12494
12524
|
withDirectives(createBaseVNode("select", {
|
|
12495
12525
|
class: "lupa-select-dropdown",
|
|
12526
|
+
"aria-label": _ctx.options.label,
|
|
12496
12527
|
"data-cy": "lupa-sort-select-dropdown",
|
|
12497
12528
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedKey.value = $event),
|
|
12498
12529
|
onChange: handleSelect,
|
|
@@ -12502,9 +12533,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12502
12533
|
return openBlock(), createElementBlock("option", {
|
|
12503
12534
|
key: option.key,
|
|
12504
12535
|
value: option.key
|
|
12505
|
-
}, toDisplayString(option.label), 9,
|
|
12536
|
+
}, toDisplayString(option.label), 9, _hoisted_5$8);
|
|
12506
12537
|
}), 128))
|
|
12507
|
-
],
|
|
12538
|
+
], 40, _hoisted_4$c), [
|
|
12508
12539
|
[vModelSelect, selectedKey.value]
|
|
12509
12540
|
])
|
|
12510
12541
|
])
|