@getlupa/client 1.12.1 → 1.12.3
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 +36 -24
- package/dist/lupaSearch.js +36 -24
- package/dist/lupaSearch.mjs +36 -24
- package/dist/lupaSearch.umd.js +36 -24
- package/package.json +2 -2
package/dist/lupaSearch.iife.js
CHANGED
|
@@ -8462,7 +8462,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8462
8462
|
const _hoisted_2$R = { class: "lupa-input-clear" };
|
|
8463
8463
|
const _hoisted_3$A = { id: "lupa-search-box-input" };
|
|
8464
8464
|
const _hoisted_4$s = ["value"];
|
|
8465
|
-
const _hoisted_5$
|
|
8465
|
+
const _hoisted_5$i = ["aria-label", "placeholder"];
|
|
8466
8466
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
8467
8467
|
const _hoisted_7$7 = [
|
|
8468
8468
|
_hoisted_6$9
|
|
@@ -8582,7 +8582,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8582
8582
|
placeholder: labels.value.placeholder,
|
|
8583
8583
|
onInput: handleInput,
|
|
8584
8584
|
onFocus: handleFocus
|
|
8585
|
-
}), null, 16, _hoisted_5$
|
|
8585
|
+
}), null, 16, _hoisted_5$i), [
|
|
8586
8586
|
[vModelText, inputValue.value]
|
|
8587
8587
|
]),
|
|
8588
8588
|
_ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -8756,7 +8756,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8756
8756
|
class: "lupa-suggestion-facet-label",
|
|
8757
8757
|
"data-cy": "lupa-suggestion-facet-label"
|
|
8758
8758
|
};
|
|
8759
|
-
const _hoisted_5$
|
|
8759
|
+
const _hoisted_5$h = {
|
|
8760
8760
|
class: "lupa-suggestion-facet-value",
|
|
8761
8761
|
"data-cy": "lupa-suggestion-facet-value"
|
|
8762
8762
|
};
|
|
@@ -8799,7 +8799,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8799
8799
|
}, null, 8, _hoisted_1$1b)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8800
8800
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
8801
8801
|
createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
|
|
8802
|
-
createBaseVNode("span", _hoisted_5$
|
|
8802
|
+
createBaseVNode("span", _hoisted_5$h, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8803
8803
|
])) : createCommentVNode("", true)
|
|
8804
8804
|
]);
|
|
8805
8805
|
};
|
|
@@ -9300,7 +9300,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9300
9300
|
const _hoisted_2$M = { key: 0 };
|
|
9301
9301
|
const _hoisted_3$y = { key: 1 };
|
|
9302
9302
|
const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
|
|
9303
|
-
const _hoisted_5$
|
|
9303
|
+
const _hoisted_5$g = { class: "lupa-search-box-custom-text" };
|
|
9304
9304
|
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
9305
9305
|
__name: "SearchBoxProductCustom",
|
|
9306
9306
|
props: {
|
|
@@ -9333,7 +9333,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9333
9333
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
9334
9334
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
|
|
9335
9335
|
createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
|
|
9336
|
-
createBaseVNode("div", _hoisted_5$
|
|
9336
|
+
createBaseVNode("div", _hoisted_5$g, toDisplayString(text.value), 1)
|
|
9337
9337
|
]))
|
|
9338
9338
|
], 16));
|
|
9339
9339
|
};
|
|
@@ -10479,7 +10479,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10479
10479
|
key: 1,
|
|
10480
10480
|
class: "lupa-panel-title"
|
|
10481
10481
|
};
|
|
10482
|
-
const _hoisted_5$
|
|
10482
|
+
const _hoisted_5$f = {
|
|
10483
10483
|
key: 1,
|
|
10484
10484
|
id: "lupa-search-box-panel"
|
|
10485
10485
|
};
|
|
@@ -10693,7 +10693,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10693
10693
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
10694
10694
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
10695
10695
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
10696
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
10696
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$f, [
|
|
10697
10697
|
createVNode(_sfc_main$1k, {
|
|
10698
10698
|
options: _ctx.options.history,
|
|
10699
10699
|
history: history.value,
|
|
@@ -11187,7 +11187,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11187
11187
|
key: 1,
|
|
11188
11188
|
class: "lupa-results-total-count"
|
|
11189
11189
|
};
|
|
11190
|
-
const _hoisted_4$l =
|
|
11190
|
+
const _hoisted_4$l = { class: "lupa-results-total-count-number" };
|
|
11191
|
+
const _hoisted_5$e = ["innerHTML"];
|
|
11191
11192
|
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
11192
11193
|
__name: "SearchResultsTitle",
|
|
11193
11194
|
props: {
|
|
@@ -11230,7 +11231,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11230
11231
|
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
|
|
11231
11232
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
11232
11233
|
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
11233
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s,
|
|
11234
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, [
|
|
11235
|
+
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
11236
|
+
createBaseVNode("span", _hoisted_4$l, toDisplayString(unref(totalItems)), 1),
|
|
11237
|
+
createTextVNode(")")
|
|
11238
|
+
])) : createCommentVNode("", true)
|
|
11234
11239
|
])) : createCommentVNode("", true),
|
|
11235
11240
|
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$T, {
|
|
11236
11241
|
key: 1,
|
|
@@ -11240,7 +11245,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11240
11245
|
key: 2,
|
|
11241
11246
|
class: "lupa-result-page-description-top",
|
|
11242
11247
|
innerHTML: descriptionTop.value
|
|
11243
|
-
}, null, 8,
|
|
11248
|
+
}, null, 8, _hoisted_5$e)) : createCommentVNode("", true)
|
|
11244
11249
|
]);
|
|
11245
11250
|
};
|
|
11246
11251
|
}
|
|
@@ -11307,12 +11312,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11307
11312
|
} = storeToRefs(searchResultStore);
|
|
11308
11313
|
const currentFilters = computed(() => filters.value);
|
|
11309
11314
|
const currentDisplayFilters = computed(
|
|
11310
|
-
() => hideFiltersOnExactMatchForKeys.value.length ? displayFilters.value.filter(
|
|
11311
|
-
|
|
11312
|
-
|
|
11313
|
-
|
|
11314
|
-
}
|
|
11315
|
-
) : displayFilters.value
|
|
11315
|
+
() => hideFiltersOnExactMatchForKeys.value.length ? displayFilters.value.filter((f2) => {
|
|
11316
|
+
var _a;
|
|
11317
|
+
return !((_a = hideFiltersOnExactMatchForKeys.value) == null ? void 0 : _a.includes(f2.key)) || getNormalizedString(currentQueryText.value) !== getNormalizedString(f2.value);
|
|
11318
|
+
}) : displayFilters.value
|
|
11316
11319
|
);
|
|
11317
11320
|
const hasFilters = computed(() => {
|
|
11318
11321
|
var _a;
|
|
@@ -13863,13 +13866,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13863
13866
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
13864
13867
|
__name: "SearchResultsPageSize",
|
|
13865
13868
|
props: {
|
|
13866
|
-
|
|
13869
|
+
labels: {},
|
|
13867
13870
|
options: {}
|
|
13868
13871
|
},
|
|
13869
13872
|
setup(__props) {
|
|
13873
|
+
const props = __props;
|
|
13870
13874
|
const paramsStore = useParamsStore();
|
|
13871
13875
|
const optionsStore = useOptionsStore();
|
|
13872
13876
|
const select = ref(null);
|
|
13877
|
+
const prefixLabel = computed(() => {
|
|
13878
|
+
var _a, _b;
|
|
13879
|
+
return (_b = (_a = props.labels) == null ? void 0 : _a.pageSizePrefix) != null ? _b : "";
|
|
13880
|
+
});
|
|
13881
|
+
const label = computed(() => {
|
|
13882
|
+
var _a, _b;
|
|
13883
|
+
return (_b = (_a = props.labels) == null ? void 0 : _a.pageSize) != null ? _b : "";
|
|
13884
|
+
});
|
|
13873
13885
|
const handleSelect = (e) => {
|
|
13874
13886
|
const value = e.target.value;
|
|
13875
13887
|
paramsStore.appendParams({
|
|
@@ -13880,17 +13892,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13880
13892
|
return (_ctx, _cache) => {
|
|
13881
13893
|
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
13882
13894
|
createBaseVNode("div", _hoisted_2$o, [
|
|
13883
|
-
createBaseVNode("label", _hoisted_3$h, toDisplayString(
|
|
13895
|
+
createBaseVNode("label", _hoisted_3$h, toDisplayString(label.value), 1),
|
|
13884
13896
|
createBaseVNode("select", {
|
|
13885
13897
|
class: "lupa-select-dropdown",
|
|
13886
|
-
"aria-label":
|
|
13898
|
+
"aria-label": label.value,
|
|
13887
13899
|
"data-cy": "lupa-page-size-select-dropdown",
|
|
13888
13900
|
onChange: handleSelect,
|
|
13889
13901
|
ref_key: "select",
|
|
13890
13902
|
ref: select
|
|
13891
13903
|
}, [
|
|
13892
13904
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
|
|
13893
|
-
return openBlock(), createElementBlock("option", { key: option }, toDisplayString(option), 1);
|
|
13905
|
+
return openBlock(), createElementBlock("option", { key: option }, toDisplayString(prefixLabel.value) + toDisplayString(option), 1);
|
|
13894
13906
|
}), 128))
|
|
13895
13907
|
], 40, _hoisted_4$c)
|
|
13896
13908
|
])
|
|
@@ -14127,8 +14139,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14127
14139
|
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$y, {
|
|
14128
14140
|
key: 1,
|
|
14129
14141
|
options: paginationOptions.value.pageSize,
|
|
14130
|
-
|
|
14131
|
-
}, null, 8, ["options", "
|
|
14142
|
+
labels: paginationOptions.value.labels
|
|
14143
|
+
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
14132
14144
|
sortOptions.value ? (openBlock(), createBlock(_sfc_main$x, {
|
|
14133
14145
|
key: 3,
|
|
14134
14146
|
options: sortOptions.value,
|
|
@@ -28375,7 +28387,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
28375
28387
|
top: false,
|
|
28376
28388
|
bottom: true
|
|
28377
28389
|
},
|
|
28378
|
-
sizes: [
|
|
28390
|
+
sizes: [12, 24, 36]
|
|
28379
28391
|
},
|
|
28380
28392
|
pageSelection: {
|
|
28381
28393
|
position: {
|
package/dist/lupaSearch.js
CHANGED
|
@@ -8462,7 +8462,7 @@ const _hoisted_1$1f = { id: "lupa-search-box-input-container" };
|
|
|
8462
8462
|
const _hoisted_2$R = { class: "lupa-input-clear" };
|
|
8463
8463
|
const _hoisted_3$A = { id: "lupa-search-box-input" };
|
|
8464
8464
|
const _hoisted_4$s = ["value"];
|
|
8465
|
-
const _hoisted_5$
|
|
8465
|
+
const _hoisted_5$i = ["aria-label", "placeholder"];
|
|
8466
8466
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
8467
8467
|
const _hoisted_7$7 = [
|
|
8468
8468
|
_hoisted_6$9
|
|
@@ -8582,7 +8582,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
8582
8582
|
placeholder: labels.value.placeholder,
|
|
8583
8583
|
onInput: handleInput,
|
|
8584
8584
|
onFocus: handleFocus
|
|
8585
|
-
}), null, 16, _hoisted_5$
|
|
8585
|
+
}), null, 16, _hoisted_5$i), [
|
|
8586
8586
|
[vModelText, inputValue.value]
|
|
8587
8587
|
]),
|
|
8588
8588
|
_ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -8756,7 +8756,7 @@ const _hoisted_4$r = {
|
|
|
8756
8756
|
class: "lupa-suggestion-facet-label",
|
|
8757
8757
|
"data-cy": "lupa-suggestion-facet-label"
|
|
8758
8758
|
};
|
|
8759
|
-
const _hoisted_5$
|
|
8759
|
+
const _hoisted_5$h = {
|
|
8760
8760
|
class: "lupa-suggestion-facet-value",
|
|
8761
8761
|
"data-cy": "lupa-suggestion-facet-value"
|
|
8762
8762
|
};
|
|
@@ -8799,7 +8799,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
8799
8799
|
}, null, 8, _hoisted_1$1b)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8800
8800
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
8801
8801
|
createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
|
|
8802
|
-
createBaseVNode("span", _hoisted_5$
|
|
8802
|
+
createBaseVNode("span", _hoisted_5$h, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8803
8803
|
])) : createCommentVNode("", true)
|
|
8804
8804
|
]);
|
|
8805
8805
|
};
|
|
@@ -9300,7 +9300,7 @@ const _hoisted_1$14 = ["innerHTML"];
|
|
|
9300
9300
|
const _hoisted_2$M = { key: 0 };
|
|
9301
9301
|
const _hoisted_3$y = { key: 1 };
|
|
9302
9302
|
const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
|
|
9303
|
-
const _hoisted_5$
|
|
9303
|
+
const _hoisted_5$g = { class: "lupa-search-box-custom-text" };
|
|
9304
9304
|
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
9305
9305
|
__name: "SearchBoxProductCustom",
|
|
9306
9306
|
props: {
|
|
@@ -9333,7 +9333,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
9333
9333
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
9334
9334
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
|
|
9335
9335
|
createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
|
|
9336
|
-
createBaseVNode("div", _hoisted_5$
|
|
9336
|
+
createBaseVNode("div", _hoisted_5$g, toDisplayString(text.value), 1)
|
|
9337
9337
|
]))
|
|
9338
9338
|
], 16));
|
|
9339
9339
|
};
|
|
@@ -10479,7 +10479,7 @@ const _hoisted_4$n = {
|
|
|
10479
10479
|
key: 1,
|
|
10480
10480
|
class: "lupa-panel-title"
|
|
10481
10481
|
};
|
|
10482
|
-
const _hoisted_5$
|
|
10482
|
+
const _hoisted_5$f = {
|
|
10483
10483
|
key: 1,
|
|
10484
10484
|
id: "lupa-search-box-panel"
|
|
10485
10485
|
};
|
|
@@ -10693,7 +10693,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
10693
10693
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
10694
10694
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
10695
10695
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
10696
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
10696
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$f, [
|
|
10697
10697
|
createVNode(_sfc_main$1k, {
|
|
10698
10698
|
options: _ctx.options.history,
|
|
10699
10699
|
history: history.value,
|
|
@@ -11187,7 +11187,8 @@ const _hoisted_3$s = {
|
|
|
11187
11187
|
key: 1,
|
|
11188
11188
|
class: "lupa-results-total-count"
|
|
11189
11189
|
};
|
|
11190
|
-
const _hoisted_4$l =
|
|
11190
|
+
const _hoisted_4$l = { class: "lupa-results-total-count-number" };
|
|
11191
|
+
const _hoisted_5$e = ["innerHTML"];
|
|
11191
11192
|
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
11192
11193
|
__name: "SearchResultsTitle",
|
|
11193
11194
|
props: {
|
|
@@ -11230,7 +11231,11 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
11230
11231
|
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
|
|
11231
11232
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
11232
11233
|
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
11233
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s,
|
|
11234
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, [
|
|
11235
|
+
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
11236
|
+
createBaseVNode("span", _hoisted_4$l, toDisplayString(unref(totalItems)), 1),
|
|
11237
|
+
createTextVNode(")")
|
|
11238
|
+
])) : createCommentVNode("", true)
|
|
11234
11239
|
])) : createCommentVNode("", true),
|
|
11235
11240
|
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$T, {
|
|
11236
11241
|
key: 1,
|
|
@@ -11240,7 +11245,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
11240
11245
|
key: 2,
|
|
11241
11246
|
class: "lupa-result-page-description-top",
|
|
11242
11247
|
innerHTML: descriptionTop.value
|
|
11243
|
-
}, null, 8,
|
|
11248
|
+
}, null, 8, _hoisted_5$e)) : createCommentVNode("", true)
|
|
11244
11249
|
]);
|
|
11245
11250
|
};
|
|
11246
11251
|
}
|
|
@@ -11307,12 +11312,10 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
11307
11312
|
} = storeToRefs(searchResultStore);
|
|
11308
11313
|
const currentFilters = computed(() => filters.value);
|
|
11309
11314
|
const currentDisplayFilters = computed(
|
|
11310
|
-
() => hideFiltersOnExactMatchForKeys.value.length ? displayFilters.value.filter(
|
|
11311
|
-
|
|
11312
|
-
|
|
11313
|
-
|
|
11314
|
-
}
|
|
11315
|
-
) : displayFilters.value
|
|
11315
|
+
() => hideFiltersOnExactMatchForKeys.value.length ? displayFilters.value.filter((f2) => {
|
|
11316
|
+
var _a;
|
|
11317
|
+
return !((_a = hideFiltersOnExactMatchForKeys.value) == null ? void 0 : _a.includes(f2.key)) || getNormalizedString(currentQueryText.value) !== getNormalizedString(f2.value);
|
|
11318
|
+
}) : displayFilters.value
|
|
11316
11319
|
);
|
|
11317
11320
|
const hasFilters = computed(() => {
|
|
11318
11321
|
var _a;
|
|
@@ -13863,13 +13866,22 @@ const _hoisted_4$c = ["aria-label"];
|
|
|
13863
13866
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
13864
13867
|
__name: "SearchResultsPageSize",
|
|
13865
13868
|
props: {
|
|
13866
|
-
|
|
13869
|
+
labels: {},
|
|
13867
13870
|
options: {}
|
|
13868
13871
|
},
|
|
13869
13872
|
setup(__props) {
|
|
13873
|
+
const props = __props;
|
|
13870
13874
|
const paramsStore = useParamsStore();
|
|
13871
13875
|
const optionsStore = useOptionsStore();
|
|
13872
13876
|
const select = ref(null);
|
|
13877
|
+
const prefixLabel = computed(() => {
|
|
13878
|
+
var _a, _b;
|
|
13879
|
+
return (_b = (_a = props.labels) == null ? void 0 : _a.pageSizePrefix) != null ? _b : "";
|
|
13880
|
+
});
|
|
13881
|
+
const label = computed(() => {
|
|
13882
|
+
var _a, _b;
|
|
13883
|
+
return (_b = (_a = props.labels) == null ? void 0 : _a.pageSize) != null ? _b : "";
|
|
13884
|
+
});
|
|
13873
13885
|
const handleSelect = (e) => {
|
|
13874
13886
|
const value = e.target.value;
|
|
13875
13887
|
paramsStore.appendParams({
|
|
@@ -13880,17 +13892,17 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
13880
13892
|
return (_ctx, _cache) => {
|
|
13881
13893
|
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
13882
13894
|
createBaseVNode("div", _hoisted_2$o, [
|
|
13883
|
-
createBaseVNode("label", _hoisted_3$h, toDisplayString(
|
|
13895
|
+
createBaseVNode("label", _hoisted_3$h, toDisplayString(label.value), 1),
|
|
13884
13896
|
createBaseVNode("select", {
|
|
13885
13897
|
class: "lupa-select-dropdown",
|
|
13886
|
-
"aria-label":
|
|
13898
|
+
"aria-label": label.value,
|
|
13887
13899
|
"data-cy": "lupa-page-size-select-dropdown",
|
|
13888
13900
|
onChange: handleSelect,
|
|
13889
13901
|
ref_key: "select",
|
|
13890
13902
|
ref: select
|
|
13891
13903
|
}, [
|
|
13892
13904
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
|
|
13893
|
-
return openBlock(), createElementBlock("option", { key: option }, toDisplayString(option), 1);
|
|
13905
|
+
return openBlock(), createElementBlock("option", { key: option }, toDisplayString(prefixLabel.value) + toDisplayString(option), 1);
|
|
13894
13906
|
}), 128))
|
|
13895
13907
|
], 40, _hoisted_4$c)
|
|
13896
13908
|
])
|
|
@@ -14127,8 +14139,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
14127
14139
|
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$y, {
|
|
14128
14140
|
key: 1,
|
|
14129
14141
|
options: paginationOptions.value.pageSize,
|
|
14130
|
-
|
|
14131
|
-
}, null, 8, ["options", "
|
|
14142
|
+
labels: paginationOptions.value.labels
|
|
14143
|
+
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
14132
14144
|
sortOptions.value ? (openBlock(), createBlock(_sfc_main$x, {
|
|
14133
14145
|
key: 3,
|
|
14134
14146
|
options: sortOptions.value,
|
|
@@ -28375,7 +28387,7 @@ const DEFAULT_OPTIONS_RESULTS = {
|
|
|
28375
28387
|
top: false,
|
|
28376
28388
|
bottom: true
|
|
28377
28389
|
},
|
|
28378
|
-
sizes: [
|
|
28390
|
+
sizes: [12, 24, 36]
|
|
28379
28391
|
},
|
|
28380
28392
|
pageSelection: {
|
|
28381
28393
|
position: {
|
package/dist/lupaSearch.mjs
CHANGED
|
@@ -8460,7 +8460,7 @@ const _hoisted_1$1f = { id: "lupa-search-box-input-container" };
|
|
|
8460
8460
|
const _hoisted_2$R = { class: "lupa-input-clear" };
|
|
8461
8461
|
const _hoisted_3$A = { id: "lupa-search-box-input" };
|
|
8462
8462
|
const _hoisted_4$s = ["value"];
|
|
8463
|
-
const _hoisted_5$
|
|
8463
|
+
const _hoisted_5$i = ["aria-label", "placeholder"];
|
|
8464
8464
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
8465
8465
|
const _hoisted_7$7 = [
|
|
8466
8466
|
_hoisted_6$9
|
|
@@ -8580,7 +8580,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
8580
8580
|
placeholder: labels.value.placeholder,
|
|
8581
8581
|
onInput: handleInput,
|
|
8582
8582
|
onFocus: handleFocus
|
|
8583
|
-
}), null, 16, _hoisted_5$
|
|
8583
|
+
}), null, 16, _hoisted_5$i), [
|
|
8584
8584
|
[vModelText, inputValue.value]
|
|
8585
8585
|
]),
|
|
8586
8586
|
_ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -8754,7 +8754,7 @@ const _hoisted_4$r = {
|
|
|
8754
8754
|
class: "lupa-suggestion-facet-label",
|
|
8755
8755
|
"data-cy": "lupa-suggestion-facet-label"
|
|
8756
8756
|
};
|
|
8757
|
-
const _hoisted_5$
|
|
8757
|
+
const _hoisted_5$h = {
|
|
8758
8758
|
class: "lupa-suggestion-facet-value",
|
|
8759
8759
|
"data-cy": "lupa-suggestion-facet-value"
|
|
8760
8760
|
};
|
|
@@ -8797,7 +8797,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
8797
8797
|
}, null, 8, _hoisted_1$1b)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8798
8798
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
8799
8799
|
createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
|
|
8800
|
-
createBaseVNode("span", _hoisted_5$
|
|
8800
|
+
createBaseVNode("span", _hoisted_5$h, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8801
8801
|
])) : createCommentVNode("", true)
|
|
8802
8802
|
]);
|
|
8803
8803
|
};
|
|
@@ -9298,7 +9298,7 @@ const _hoisted_1$14 = ["innerHTML"];
|
|
|
9298
9298
|
const _hoisted_2$M = { key: 0 };
|
|
9299
9299
|
const _hoisted_3$y = { key: 1 };
|
|
9300
9300
|
const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
|
|
9301
|
-
const _hoisted_5$
|
|
9301
|
+
const _hoisted_5$g = { class: "lupa-search-box-custom-text" };
|
|
9302
9302
|
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
9303
9303
|
__name: "SearchBoxProductCustom",
|
|
9304
9304
|
props: {
|
|
@@ -9331,7 +9331,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
9331
9331
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
9332
9332
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
|
|
9333
9333
|
createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
|
|
9334
|
-
createBaseVNode("div", _hoisted_5$
|
|
9334
|
+
createBaseVNode("div", _hoisted_5$g, toDisplayString(text.value), 1)
|
|
9335
9335
|
]))
|
|
9336
9336
|
], 16));
|
|
9337
9337
|
};
|
|
@@ -10477,7 +10477,7 @@ const _hoisted_4$n = {
|
|
|
10477
10477
|
key: 1,
|
|
10478
10478
|
class: "lupa-panel-title"
|
|
10479
10479
|
};
|
|
10480
|
-
const _hoisted_5$
|
|
10480
|
+
const _hoisted_5$f = {
|
|
10481
10481
|
key: 1,
|
|
10482
10482
|
id: "lupa-search-box-panel"
|
|
10483
10483
|
};
|
|
@@ -10691,7 +10691,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
10691
10691
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
10692
10692
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
10693
10693
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
10694
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
10694
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$f, [
|
|
10695
10695
|
createVNode(_sfc_main$1k, {
|
|
10696
10696
|
options: _ctx.options.history,
|
|
10697
10697
|
history: history.value,
|
|
@@ -11185,7 +11185,8 @@ const _hoisted_3$s = {
|
|
|
11185
11185
|
key: 1,
|
|
11186
11186
|
class: "lupa-results-total-count"
|
|
11187
11187
|
};
|
|
11188
|
-
const _hoisted_4$l =
|
|
11188
|
+
const _hoisted_4$l = { class: "lupa-results-total-count-number" };
|
|
11189
|
+
const _hoisted_5$e = ["innerHTML"];
|
|
11189
11190
|
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
11190
11191
|
__name: "SearchResultsTitle",
|
|
11191
11192
|
props: {
|
|
@@ -11228,7 +11229,11 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
11228
11229
|
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
|
|
11229
11230
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
11230
11231
|
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
11231
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s,
|
|
11232
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, [
|
|
11233
|
+
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
11234
|
+
createBaseVNode("span", _hoisted_4$l, toDisplayString(unref(totalItems)), 1),
|
|
11235
|
+
createTextVNode(")")
|
|
11236
|
+
])) : createCommentVNode("", true)
|
|
11232
11237
|
])) : createCommentVNode("", true),
|
|
11233
11238
|
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$T, {
|
|
11234
11239
|
key: 1,
|
|
@@ -11238,7 +11243,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
11238
11243
|
key: 2,
|
|
11239
11244
|
class: "lupa-result-page-description-top",
|
|
11240
11245
|
innerHTML: descriptionTop.value
|
|
11241
|
-
}, null, 8,
|
|
11246
|
+
}, null, 8, _hoisted_5$e)) : createCommentVNode("", true)
|
|
11242
11247
|
]);
|
|
11243
11248
|
};
|
|
11244
11249
|
}
|
|
@@ -11305,12 +11310,10 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
11305
11310
|
} = storeToRefs(searchResultStore);
|
|
11306
11311
|
const currentFilters = computed(() => filters.value);
|
|
11307
11312
|
const currentDisplayFilters = computed(
|
|
11308
|
-
() => hideFiltersOnExactMatchForKeys.value.length ? displayFilters.value.filter(
|
|
11309
|
-
|
|
11310
|
-
|
|
11311
|
-
|
|
11312
|
-
}
|
|
11313
|
-
) : displayFilters.value
|
|
11313
|
+
() => hideFiltersOnExactMatchForKeys.value.length ? displayFilters.value.filter((f2) => {
|
|
11314
|
+
var _a;
|
|
11315
|
+
return !((_a = hideFiltersOnExactMatchForKeys.value) == null ? void 0 : _a.includes(f2.key)) || getNormalizedString(currentQueryText.value) !== getNormalizedString(f2.value);
|
|
11316
|
+
}) : displayFilters.value
|
|
11314
11317
|
);
|
|
11315
11318
|
const hasFilters = computed(() => {
|
|
11316
11319
|
var _a;
|
|
@@ -13861,13 +13864,22 @@ const _hoisted_4$c = ["aria-label"];
|
|
|
13861
13864
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
13862
13865
|
__name: "SearchResultsPageSize",
|
|
13863
13866
|
props: {
|
|
13864
|
-
|
|
13867
|
+
labels: {},
|
|
13865
13868
|
options: {}
|
|
13866
13869
|
},
|
|
13867
13870
|
setup(__props) {
|
|
13871
|
+
const props = __props;
|
|
13868
13872
|
const paramsStore = useParamsStore();
|
|
13869
13873
|
const optionsStore = useOptionsStore();
|
|
13870
13874
|
const select = ref(null);
|
|
13875
|
+
const prefixLabel = computed(() => {
|
|
13876
|
+
var _a, _b;
|
|
13877
|
+
return (_b = (_a = props.labels) == null ? void 0 : _a.pageSizePrefix) != null ? _b : "";
|
|
13878
|
+
});
|
|
13879
|
+
const label = computed(() => {
|
|
13880
|
+
var _a, _b;
|
|
13881
|
+
return (_b = (_a = props.labels) == null ? void 0 : _a.pageSize) != null ? _b : "";
|
|
13882
|
+
});
|
|
13871
13883
|
const handleSelect = (e) => {
|
|
13872
13884
|
const value = e.target.value;
|
|
13873
13885
|
paramsStore.appendParams({
|
|
@@ -13878,17 +13890,17 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
13878
13890
|
return (_ctx, _cache) => {
|
|
13879
13891
|
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
13880
13892
|
createBaseVNode("div", _hoisted_2$o, [
|
|
13881
|
-
createBaseVNode("label", _hoisted_3$h, toDisplayString(
|
|
13893
|
+
createBaseVNode("label", _hoisted_3$h, toDisplayString(label.value), 1),
|
|
13882
13894
|
createBaseVNode("select", {
|
|
13883
13895
|
class: "lupa-select-dropdown",
|
|
13884
|
-
"aria-label":
|
|
13896
|
+
"aria-label": label.value,
|
|
13885
13897
|
"data-cy": "lupa-page-size-select-dropdown",
|
|
13886
13898
|
onChange: handleSelect,
|
|
13887
13899
|
ref_key: "select",
|
|
13888
13900
|
ref: select
|
|
13889
13901
|
}, [
|
|
13890
13902
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
|
|
13891
|
-
return openBlock(), createElementBlock("option", { key: option }, toDisplayString(option), 1);
|
|
13903
|
+
return openBlock(), createElementBlock("option", { key: option }, toDisplayString(prefixLabel.value) + toDisplayString(option), 1);
|
|
13892
13904
|
}), 128))
|
|
13893
13905
|
], 40, _hoisted_4$c)
|
|
13894
13906
|
])
|
|
@@ -14125,8 +14137,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
14125
14137
|
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$y, {
|
|
14126
14138
|
key: 1,
|
|
14127
14139
|
options: paginationOptions.value.pageSize,
|
|
14128
|
-
|
|
14129
|
-
}, null, 8, ["options", "
|
|
14140
|
+
labels: paginationOptions.value.labels
|
|
14141
|
+
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
14130
14142
|
sortOptions.value ? (openBlock(), createBlock(_sfc_main$x, {
|
|
14131
14143
|
key: 3,
|
|
14132
14144
|
options: sortOptions.value,
|
|
@@ -28373,7 +28385,7 @@ const DEFAULT_OPTIONS_RESULTS = {
|
|
|
28373
28385
|
top: false,
|
|
28374
28386
|
bottom: true
|
|
28375
28387
|
},
|
|
28376
|
-
sizes: [
|
|
28388
|
+
sizes: [12, 24, 36]
|
|
28377
28389
|
},
|
|
28378
28390
|
pageSelection: {
|
|
28379
28391
|
position: {
|
package/dist/lupaSearch.umd.js
CHANGED
|
@@ -8464,7 +8464,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8464
8464
|
const _hoisted_2$R = { class: "lupa-input-clear" };
|
|
8465
8465
|
const _hoisted_3$A = { id: "lupa-search-box-input" };
|
|
8466
8466
|
const _hoisted_4$s = ["value"];
|
|
8467
|
-
const _hoisted_5$
|
|
8467
|
+
const _hoisted_5$i = ["aria-label", "placeholder"];
|
|
8468
8468
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
8469
8469
|
const _hoisted_7$7 = [
|
|
8470
8470
|
_hoisted_6$9
|
|
@@ -8584,7 +8584,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8584
8584
|
placeholder: labels.value.placeholder,
|
|
8585
8585
|
onInput: handleInput,
|
|
8586
8586
|
onFocus: handleFocus
|
|
8587
|
-
}), null, 16, _hoisted_5$
|
|
8587
|
+
}), null, 16, _hoisted_5$i), [
|
|
8588
8588
|
[vModelText, inputValue.value]
|
|
8589
8589
|
]),
|
|
8590
8590
|
_ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -8758,7 +8758,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8758
8758
|
class: "lupa-suggestion-facet-label",
|
|
8759
8759
|
"data-cy": "lupa-suggestion-facet-label"
|
|
8760
8760
|
};
|
|
8761
|
-
const _hoisted_5$
|
|
8761
|
+
const _hoisted_5$h = {
|
|
8762
8762
|
class: "lupa-suggestion-facet-value",
|
|
8763
8763
|
"data-cy": "lupa-suggestion-facet-value"
|
|
8764
8764
|
};
|
|
@@ -8801,7 +8801,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8801
8801
|
}, null, 8, _hoisted_1$1b)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8802
8802
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
8803
8803
|
createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
|
|
8804
|
-
createBaseVNode("span", _hoisted_5$
|
|
8804
|
+
createBaseVNode("span", _hoisted_5$h, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8805
8805
|
])) : createCommentVNode("", true)
|
|
8806
8806
|
]);
|
|
8807
8807
|
};
|
|
@@ -9302,7 +9302,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9302
9302
|
const _hoisted_2$M = { key: 0 };
|
|
9303
9303
|
const _hoisted_3$y = { key: 1 };
|
|
9304
9304
|
const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
|
|
9305
|
-
const _hoisted_5$
|
|
9305
|
+
const _hoisted_5$g = { class: "lupa-search-box-custom-text" };
|
|
9306
9306
|
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
9307
9307
|
__name: "SearchBoxProductCustom",
|
|
9308
9308
|
props: {
|
|
@@ -9335,7 +9335,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9335
9335
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
9336
9336
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
|
|
9337
9337
|
createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
|
|
9338
|
-
createBaseVNode("div", _hoisted_5$
|
|
9338
|
+
createBaseVNode("div", _hoisted_5$g, toDisplayString(text.value), 1)
|
|
9339
9339
|
]))
|
|
9340
9340
|
], 16));
|
|
9341
9341
|
};
|
|
@@ -10481,7 +10481,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10481
10481
|
key: 1,
|
|
10482
10482
|
class: "lupa-panel-title"
|
|
10483
10483
|
};
|
|
10484
|
-
const _hoisted_5$
|
|
10484
|
+
const _hoisted_5$f = {
|
|
10485
10485
|
key: 1,
|
|
10486
10486
|
id: "lupa-search-box-panel"
|
|
10487
10487
|
};
|
|
@@ -10695,7 +10695,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10695
10695
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
10696
10696
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
10697
10697
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
10698
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
10698
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$f, [
|
|
10699
10699
|
createVNode(_sfc_main$1k, {
|
|
10700
10700
|
options: _ctx.options.history,
|
|
10701
10701
|
history: history.value,
|
|
@@ -11189,7 +11189,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11189
11189
|
key: 1,
|
|
11190
11190
|
class: "lupa-results-total-count"
|
|
11191
11191
|
};
|
|
11192
|
-
const _hoisted_4$l =
|
|
11192
|
+
const _hoisted_4$l = { class: "lupa-results-total-count-number" };
|
|
11193
|
+
const _hoisted_5$e = ["innerHTML"];
|
|
11193
11194
|
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
11194
11195
|
__name: "SearchResultsTitle",
|
|
11195
11196
|
props: {
|
|
@@ -11232,7 +11233,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11232
11233
|
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
|
|
11233
11234
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
11234
11235
|
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
11235
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s,
|
|
11236
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, [
|
|
11237
|
+
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
11238
|
+
createBaseVNode("span", _hoisted_4$l, toDisplayString(unref(totalItems)), 1),
|
|
11239
|
+
createTextVNode(")")
|
|
11240
|
+
])) : createCommentVNode("", true)
|
|
11236
11241
|
])) : createCommentVNode("", true),
|
|
11237
11242
|
_ctx.showSummary ? (openBlock(), createBlock(_sfc_main$T, {
|
|
11238
11243
|
key: 1,
|
|
@@ -11242,7 +11247,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11242
11247
|
key: 2,
|
|
11243
11248
|
class: "lupa-result-page-description-top",
|
|
11244
11249
|
innerHTML: descriptionTop.value
|
|
11245
|
-
}, null, 8,
|
|
11250
|
+
}, null, 8, _hoisted_5$e)) : createCommentVNode("", true)
|
|
11246
11251
|
]);
|
|
11247
11252
|
};
|
|
11248
11253
|
}
|
|
@@ -11309,12 +11314,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11309
11314
|
} = storeToRefs(searchResultStore);
|
|
11310
11315
|
const currentFilters = computed(() => filters.value);
|
|
11311
11316
|
const currentDisplayFilters = computed(
|
|
11312
|
-
() => hideFiltersOnExactMatchForKeys.value.length ? displayFilters.value.filter(
|
|
11313
|
-
|
|
11314
|
-
|
|
11315
|
-
|
|
11316
|
-
}
|
|
11317
|
-
) : displayFilters.value
|
|
11317
|
+
() => hideFiltersOnExactMatchForKeys.value.length ? displayFilters.value.filter((f2) => {
|
|
11318
|
+
var _a;
|
|
11319
|
+
return !((_a = hideFiltersOnExactMatchForKeys.value) == null ? void 0 : _a.includes(f2.key)) || getNormalizedString(currentQueryText.value) !== getNormalizedString(f2.value);
|
|
11320
|
+
}) : displayFilters.value
|
|
11318
11321
|
);
|
|
11319
11322
|
const hasFilters = computed(() => {
|
|
11320
11323
|
var _a;
|
|
@@ -13865,13 +13868,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13865
13868
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
13866
13869
|
__name: "SearchResultsPageSize",
|
|
13867
13870
|
props: {
|
|
13868
|
-
|
|
13871
|
+
labels: {},
|
|
13869
13872
|
options: {}
|
|
13870
13873
|
},
|
|
13871
13874
|
setup(__props) {
|
|
13875
|
+
const props = __props;
|
|
13872
13876
|
const paramsStore = useParamsStore();
|
|
13873
13877
|
const optionsStore = useOptionsStore();
|
|
13874
13878
|
const select = ref(null);
|
|
13879
|
+
const prefixLabel = computed(() => {
|
|
13880
|
+
var _a, _b;
|
|
13881
|
+
return (_b = (_a = props.labels) == null ? void 0 : _a.pageSizePrefix) != null ? _b : "";
|
|
13882
|
+
});
|
|
13883
|
+
const label = computed(() => {
|
|
13884
|
+
var _a, _b;
|
|
13885
|
+
return (_b = (_a = props.labels) == null ? void 0 : _a.pageSize) != null ? _b : "";
|
|
13886
|
+
});
|
|
13875
13887
|
const handleSelect = (e) => {
|
|
13876
13888
|
const value = e.target.value;
|
|
13877
13889
|
paramsStore.appendParams({
|
|
@@ -13882,17 +13894,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13882
13894
|
return (_ctx, _cache) => {
|
|
13883
13895
|
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
13884
13896
|
createBaseVNode("div", _hoisted_2$o, [
|
|
13885
|
-
createBaseVNode("label", _hoisted_3$h, toDisplayString(
|
|
13897
|
+
createBaseVNode("label", _hoisted_3$h, toDisplayString(label.value), 1),
|
|
13886
13898
|
createBaseVNode("select", {
|
|
13887
13899
|
class: "lupa-select-dropdown",
|
|
13888
|
-
"aria-label":
|
|
13900
|
+
"aria-label": label.value,
|
|
13889
13901
|
"data-cy": "lupa-page-size-select-dropdown",
|
|
13890
13902
|
onChange: handleSelect,
|
|
13891
13903
|
ref_key: "select",
|
|
13892
13904
|
ref: select
|
|
13893
13905
|
}, [
|
|
13894
13906
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
|
|
13895
|
-
return openBlock(), createElementBlock("option", { key: option }, toDisplayString(option), 1);
|
|
13907
|
+
return openBlock(), createElementBlock("option", { key: option }, toDisplayString(prefixLabel.value) + toDisplayString(option), 1);
|
|
13896
13908
|
}), 128))
|
|
13897
13909
|
], 40, _hoisted_4$c)
|
|
13898
13910
|
])
|
|
@@ -14129,8 +14141,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14129
14141
|
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$y, {
|
|
14130
14142
|
key: 1,
|
|
14131
14143
|
options: paginationOptions.value.pageSize,
|
|
14132
|
-
|
|
14133
|
-
}, null, 8, ["options", "
|
|
14144
|
+
labels: paginationOptions.value.labels
|
|
14145
|
+
}, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
|
|
14134
14146
|
sortOptions.value ? (openBlock(), createBlock(_sfc_main$x, {
|
|
14135
14147
|
key: 3,
|
|
14136
14148
|
options: sortOptions.value,
|
|
@@ -28377,7 +28389,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
28377
28389
|
top: false,
|
|
28378
28390
|
bottom: true
|
|
28379
28391
|
},
|
|
28380
|
-
sizes: [
|
|
28392
|
+
sizes: [12, 24, 36]
|
|
28381
28393
|
},
|
|
28382
28394
|
pageSelection: {
|
|
28383
28395
|
position: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getlupa/client",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.3",
|
|
4
4
|
"main": "dist/lupaSearch.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@getlupa/client-sdk": "^1.3.4",
|
|
23
|
-
"@getlupa/vue": "0.12.
|
|
23
|
+
"@getlupa/vue": "0.12.3",
|
|
24
24
|
"@rushstack/eslint-patch": "^1.3.2",
|
|
25
25
|
"@tsconfig/node18": "^2.0.1",
|
|
26
26
|
"@types/jsdom": "^21.1.1",
|