@getlupa/client 1.12.7 → 1.12.9
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 +42 -27
- package/dist/lupaSearch.js +42 -27
- package/dist/lupaSearch.mjs +42 -27
- package/dist/lupaSearch.umd.js +42 -27
- package/package.json +2 -2
package/dist/lupaSearch.iife.js
CHANGED
|
@@ -7912,6 +7912,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7912
7912
|
const encoded = encodeURIComponent(param);
|
|
7913
7913
|
return encoded.replace(/%C4%85/g, "ą").replace(/%C4%8D/g, "č").replace(/%C4%99/g, "ę").replace(/%C4%97/g, "ė").replace(/%C4%AF/g, "į").replace(/%C5%A1/g, "š").replace(/%C5%B3/g, "ų").replace(/%C5%AB/g, "ū").replace(/%C5%BE/g, "ž").replace(/%20/g, " ");
|
|
7914
7914
|
};
|
|
7915
|
+
const getQueryParam = (name) => {
|
|
7916
|
+
try {
|
|
7917
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
7918
|
+
return urlParams.get(name);
|
|
7919
|
+
} catch (e2) {
|
|
7920
|
+
return null;
|
|
7921
|
+
}
|
|
7922
|
+
};
|
|
7915
7923
|
const PATH_REPLACE_REGEXP = /{(.*?)}/gm;
|
|
7916
7924
|
const generateLink = (linkPattern, document2) => {
|
|
7917
7925
|
const matches = linkPattern.match(PATH_REPLACE_REGEXP);
|
|
@@ -8203,7 +8211,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8203
8211
|
searchText,
|
|
8204
8212
|
facet
|
|
8205
8213
|
}) => {
|
|
8206
|
-
var _a;
|
|
8214
|
+
var _a, _b;
|
|
8207
8215
|
const redirectionApplied = redirectionStore.redirectOnKeywordIfConfigured(
|
|
8208
8216
|
searchText,
|
|
8209
8217
|
optionsStore.boxRoutingBehavior
|
|
@@ -8211,7 +8219,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8211
8219
|
if (redirectionApplied) {
|
|
8212
8220
|
return;
|
|
8213
8221
|
}
|
|
8214
|
-
|
|
8222
|
+
const forceFullReload = (_a = optionsStore.searchBoxOptions.forceFullReloadOnParams) == null ? void 0 : _a.some(
|
|
8223
|
+
(p2) => getQueryParam(p2)
|
|
8224
|
+
);
|
|
8225
|
+
if ((!searchResultsLink.value || linksMatch(searchResultsLink.value, window.location.pathname)) && !forceFullReload) {
|
|
8215
8226
|
const singleFacetParam = facet ? getFacetParam(facet.key, [facet.title]) : void 0;
|
|
8216
8227
|
const facetParam = singleFacetParam ? [
|
|
8217
8228
|
__spreadProps2(__spreadValues2({}, singleFacetParam), {
|
|
@@ -8227,7 +8238,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8227
8238
|
searchResultsLink: searchResultsLink.value
|
|
8228
8239
|
});
|
|
8229
8240
|
} else {
|
|
8230
|
-
const routing = (
|
|
8241
|
+
const routing = (_b = optionsStore.boxRoutingBehavior) != null ? _b : "direct-link";
|
|
8231
8242
|
redirectToResultsPage(
|
|
8232
8243
|
searchResultsLink.value,
|
|
8233
8244
|
searchText,
|
|
@@ -8510,7 +8521,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8510
8521
|
const _hoisted_2$R = { class: "lupa-input-clear" };
|
|
8511
8522
|
const _hoisted_3$B = { id: "lupa-search-box-input" };
|
|
8512
8523
|
const _hoisted_4$t = ["value"];
|
|
8513
|
-
const _hoisted_5$
|
|
8524
|
+
const _hoisted_5$j = ["aria-label", "placeholder"];
|
|
8514
8525
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
8515
8526
|
const _hoisted_7$7 = [
|
|
8516
8527
|
_hoisted_6$9
|
|
@@ -8630,7 +8641,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8630
8641
|
placeholder: labels.value.placeholder,
|
|
8631
8642
|
onInput: handleInput,
|
|
8632
8643
|
onFocus: handleFocus
|
|
8633
|
-
}), null, 16, _hoisted_5$
|
|
8644
|
+
}), null, 16, _hoisted_5$j), [
|
|
8634
8645
|
[vModelText, inputValue.value]
|
|
8635
8646
|
]),
|
|
8636
8647
|
_ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -8804,7 +8815,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8804
8815
|
class: "lupa-suggestion-facet-label",
|
|
8805
8816
|
"data-cy": "lupa-suggestion-facet-label"
|
|
8806
8817
|
};
|
|
8807
|
-
const _hoisted_5$
|
|
8818
|
+
const _hoisted_5$i = {
|
|
8808
8819
|
class: "lupa-suggestion-facet-value",
|
|
8809
8820
|
"data-cy": "lupa-suggestion-facet-value"
|
|
8810
8821
|
};
|
|
@@ -8847,7 +8858,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8847
8858
|
}, null, 8, _hoisted_1$1b)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8848
8859
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
8849
8860
|
createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
|
|
8850
|
-
createBaseVNode("span", _hoisted_5$
|
|
8861
|
+
createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8851
8862
|
])) : createCommentVNode("", true)
|
|
8852
8863
|
]);
|
|
8853
8864
|
};
|
|
@@ -9348,7 +9359,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9348
9359
|
const _hoisted_2$M = { key: 0 };
|
|
9349
9360
|
const _hoisted_3$z = { key: 1 };
|
|
9350
9361
|
const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
|
|
9351
|
-
const _hoisted_5$
|
|
9362
|
+
const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
|
|
9352
9363
|
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
9353
9364
|
__name: "SearchBoxProductCustom",
|
|
9354
9365
|
props: {
|
|
@@ -9381,7 +9392,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9381
9392
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
9382
9393
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
9383
9394
|
createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
|
|
9384
|
-
createBaseVNode("div", _hoisted_5$
|
|
9395
|
+
createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
|
|
9385
9396
|
]))
|
|
9386
9397
|
], 16));
|
|
9387
9398
|
};
|
|
@@ -10527,7 +10538,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10527
10538
|
key: 1,
|
|
10528
10539
|
class: "lupa-panel-title"
|
|
10529
10540
|
};
|
|
10530
|
-
const _hoisted_5$
|
|
10541
|
+
const _hoisted_5$g = {
|
|
10531
10542
|
key: 1,
|
|
10532
10543
|
id: "lupa-search-box-panel"
|
|
10533
10544
|
};
|
|
@@ -10741,7 +10752,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10741
10752
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
10742
10753
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
10743
10754
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
10744
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
10755
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
|
|
10745
10756
|
createVNode(_sfc_main$1k, {
|
|
10746
10757
|
options: _ctx.options.history,
|
|
10747
10758
|
history: history.value,
|
|
@@ -11236,7 +11247,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11236
11247
|
class: "lupa-results-total-count"
|
|
11237
11248
|
};
|
|
11238
11249
|
const _hoisted_4$m = { class: "lupa-results-total-count-number" };
|
|
11239
|
-
const _hoisted_5$
|
|
11250
|
+
const _hoisted_5$f = ["innerHTML"];
|
|
11240
11251
|
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
11241
11252
|
__name: "SearchResultsTitle",
|
|
11242
11253
|
props: {
|
|
@@ -11293,7 +11304,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11293
11304
|
key: 2,
|
|
11294
11305
|
class: "lupa-result-page-description-top",
|
|
11295
11306
|
innerHTML: descriptionTop.value
|
|
11296
|
-
}, null, 8, _hoisted_5$
|
|
11307
|
+
}, null, 8, _hoisted_5$f)) : createCommentVNode("", true)
|
|
11297
11308
|
]);
|
|
11298
11309
|
};
|
|
11299
11310
|
}
|
|
@@ -11492,7 +11503,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11492
11503
|
const _hoisted_2$z = { class: "lupa-category-back" };
|
|
11493
11504
|
const _hoisted_3$q = ["href"];
|
|
11494
11505
|
const _hoisted_4$k = ["href"];
|
|
11495
|
-
const _hoisted_5$
|
|
11506
|
+
const _hoisted_5$e = { class: "lupa-child-category-list" };
|
|
11496
11507
|
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
11497
11508
|
__name: "CategoryFilter",
|
|
11498
11509
|
props: {
|
|
@@ -11598,7 +11609,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11598
11609
|
onClick: handleNavigationParent
|
|
11599
11610
|
}, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
|
|
11600
11611
|
], 2),
|
|
11601
|
-
createBaseVNode("div", _hoisted_5$
|
|
11612
|
+
createBaseVNode("div", _hoisted_5$e, [
|
|
11602
11613
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
11603
11614
|
return openBlock(), createBlock(_sfc_main$P, {
|
|
11604
11615
|
key: getCategoryKey(child),
|
|
@@ -11618,7 +11629,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11618
11629
|
const _hoisted_2$y = ["placeholder"];
|
|
11619
11630
|
const _hoisted_3$p = { class: "lupa-terms-list" };
|
|
11620
11631
|
const _hoisted_4$j = ["onClick"];
|
|
11621
|
-
const _hoisted_5$
|
|
11632
|
+
const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
|
|
11622
11633
|
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
11623
11634
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
11624
11635
|
const _hoisted_8$2 = {
|
|
@@ -11716,7 +11727,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11716
11727
|
key: item.title,
|
|
11717
11728
|
onClick: ($event) => handleFacetClick(item)
|
|
11718
11729
|
}, [
|
|
11719
|
-
createBaseVNode("div", _hoisted_5$
|
|
11730
|
+
createBaseVNode("div", _hoisted_5$d, [
|
|
11720
11731
|
createBaseVNode("span", {
|
|
11721
11732
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
11722
11733
|
}, null, 2)
|
|
@@ -12729,7 +12740,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12729
12740
|
key: 0,
|
|
12730
12741
|
class: "lupa-stats-range-label"
|
|
12731
12742
|
};
|
|
12732
|
-
const _hoisted_5$
|
|
12743
|
+
const _hoisted_5$c = { class: "lupa-stats-from" };
|
|
12733
12744
|
const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
|
|
12734
12745
|
const _hoisted_7$5 = { key: 0 };
|
|
12735
12746
|
const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
@@ -12921,7 +12932,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12921
12932
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
|
|
12922
12933
|
createBaseVNode("div", null, [
|
|
12923
12934
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
12924
|
-
createBaseVNode("div", _hoisted_5$
|
|
12935
|
+
createBaseVNode("div", _hoisted_5$c, [
|
|
12925
12936
|
withDirectives(createBaseVNode("input", {
|
|
12926
12937
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
12927
12938
|
type: "text",
|
|
@@ -12991,7 +13002,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12991
13002
|
key: 0,
|
|
12992
13003
|
class: "lupa-term-count"
|
|
12993
13004
|
};
|
|
12994
|
-
const _hoisted_5$
|
|
13005
|
+
const _hoisted_5$b = {
|
|
12995
13006
|
key: 0,
|
|
12996
13007
|
class: "lupa-facet-level"
|
|
12997
13008
|
};
|
|
@@ -13051,7 +13062,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13051
13062
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
13052
13063
|
])
|
|
13053
13064
|
]),
|
|
13054
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
13065
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
|
|
13055
13066
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
13056
13067
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
13057
13068
|
key: itemChild.title,
|
|
@@ -13561,7 +13572,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13561
13572
|
const _hoisted_2$r = ["onClick"];
|
|
13562
13573
|
const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
|
|
13563
13574
|
const _hoisted_4$g = { class: "lupa-sidebar-top" };
|
|
13564
|
-
const _hoisted_5$
|
|
13575
|
+
const _hoisted_5$a = { class: "lupa-sidebar-title" };
|
|
13565
13576
|
const _hoisted_6$6 = {
|
|
13566
13577
|
key: 0,
|
|
13567
13578
|
class: "lupa-sidebar-filter-count"
|
|
@@ -13605,7 +13616,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13605
13616
|
}, null, 8, _hoisted_2$r),
|
|
13606
13617
|
createBaseVNode("div", _hoisted_3$l, [
|
|
13607
13618
|
createBaseVNode("div", _hoisted_4$g, [
|
|
13608
|
-
createBaseVNode("div", _hoisted_5$
|
|
13619
|
+
createBaseVNode("div", _hoisted_5$a, [
|
|
13609
13620
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
13610
13621
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
13611
13622
|
]),
|
|
@@ -13911,6 +13922,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13911
13922
|
const _hoisted_2$o = { id: "lupa-select" };
|
|
13912
13923
|
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
13913
13924
|
const _hoisted_4$d = ["aria-label"];
|
|
13925
|
+
const _hoisted_5$9 = ["value"];
|
|
13914
13926
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
13915
13927
|
__name: "SearchResultsPageSize",
|
|
13916
13928
|
props: {
|
|
@@ -13950,7 +13962,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13950
13962
|
ref: select
|
|
13951
13963
|
}, [
|
|
13952
13964
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
|
|
13953
|
-
return openBlock(), createElementBlock("option", {
|
|
13965
|
+
return openBlock(), createElementBlock("option", {
|
|
13966
|
+
key: option,
|
|
13967
|
+
value: option
|
|
13968
|
+
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$9);
|
|
13954
13969
|
}), 128))
|
|
13955
13970
|
], 40, _hoisted_4$d)
|
|
13956
13971
|
])
|
|
@@ -22143,8 +22158,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
22143
22158
|
});
|
|
22144
22159
|
const columnSize = computed(() => `width: ${100 / columnCount.value}%`);
|
|
22145
22160
|
const title = computed(() => {
|
|
22146
|
-
var _a;
|
|
22147
|
-
return (_a = props.options.recommendationLabels.title) != null ?
|
|
22161
|
+
var _a, _b;
|
|
22162
|
+
return (_b = (_a = props.options.recommendationLabels) == null ? void 0 : _a.title) != null ? _b : "";
|
|
22148
22163
|
});
|
|
22149
22164
|
onMounted(() => {
|
|
22150
22165
|
loadRecommendations();
|
|
@@ -22207,7 +22222,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
22207
22222
|
const result = yield LupaSearchSdk.recommend(
|
|
22208
22223
|
props.options.queryKey,
|
|
22209
22224
|
props.options.itemId,
|
|
22210
|
-
props.options.
|
|
22225
|
+
props.options.recommendationFilters,
|
|
22211
22226
|
props.options.options
|
|
22212
22227
|
);
|
|
22213
22228
|
if (!result.success) {
|
package/dist/lupaSearch.js
CHANGED
|
@@ -7912,6 +7912,14 @@ const encodeParam = (param) => {
|
|
|
7912
7912
|
const encoded = encodeURIComponent(param);
|
|
7913
7913
|
return encoded.replace(/%C4%85/g, "ą").replace(/%C4%8D/g, "č").replace(/%C4%99/g, "ę").replace(/%C4%97/g, "ė").replace(/%C4%AF/g, "į").replace(/%C5%A1/g, "š").replace(/%C5%B3/g, "ų").replace(/%C5%AB/g, "ū").replace(/%C5%BE/g, "ž").replace(/%20/g, " ");
|
|
7914
7914
|
};
|
|
7915
|
+
const getQueryParam = (name) => {
|
|
7916
|
+
try {
|
|
7917
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
7918
|
+
return urlParams.get(name);
|
|
7919
|
+
} catch (e2) {
|
|
7920
|
+
return null;
|
|
7921
|
+
}
|
|
7922
|
+
};
|
|
7915
7923
|
const PATH_REPLACE_REGEXP = /{(.*?)}/gm;
|
|
7916
7924
|
const generateLink = (linkPattern, document2) => {
|
|
7917
7925
|
const matches = linkPattern.match(PATH_REPLACE_REGEXP);
|
|
@@ -8203,7 +8211,7 @@ const useParamsStore = defineStore("params", () => {
|
|
|
8203
8211
|
searchText,
|
|
8204
8212
|
facet
|
|
8205
8213
|
}) => {
|
|
8206
|
-
var _a;
|
|
8214
|
+
var _a, _b;
|
|
8207
8215
|
const redirectionApplied = redirectionStore.redirectOnKeywordIfConfigured(
|
|
8208
8216
|
searchText,
|
|
8209
8217
|
optionsStore.boxRoutingBehavior
|
|
@@ -8211,7 +8219,10 @@ const useParamsStore = defineStore("params", () => {
|
|
|
8211
8219
|
if (redirectionApplied) {
|
|
8212
8220
|
return;
|
|
8213
8221
|
}
|
|
8214
|
-
|
|
8222
|
+
const forceFullReload = (_a = optionsStore.searchBoxOptions.forceFullReloadOnParams) == null ? void 0 : _a.some(
|
|
8223
|
+
(p2) => getQueryParam(p2)
|
|
8224
|
+
);
|
|
8225
|
+
if ((!searchResultsLink.value || linksMatch(searchResultsLink.value, window.location.pathname)) && !forceFullReload) {
|
|
8215
8226
|
const singleFacetParam = facet ? getFacetParam(facet.key, [facet.title]) : void 0;
|
|
8216
8227
|
const facetParam = singleFacetParam ? [
|
|
8217
8228
|
__spreadProps2(__spreadValues2({}, singleFacetParam), {
|
|
@@ -8227,7 +8238,7 @@ const useParamsStore = defineStore("params", () => {
|
|
|
8227
8238
|
searchResultsLink: searchResultsLink.value
|
|
8228
8239
|
});
|
|
8229
8240
|
} else {
|
|
8230
|
-
const routing = (
|
|
8241
|
+
const routing = (_b = optionsStore.boxRoutingBehavior) != null ? _b : "direct-link";
|
|
8231
8242
|
redirectToResultsPage(
|
|
8232
8243
|
searchResultsLink.value,
|
|
8233
8244
|
searchText,
|
|
@@ -8510,7 +8521,7 @@ const _hoisted_1$1f = { id: "lupa-search-box-input-container" };
|
|
|
8510
8521
|
const _hoisted_2$R = { class: "lupa-input-clear" };
|
|
8511
8522
|
const _hoisted_3$B = { id: "lupa-search-box-input" };
|
|
8512
8523
|
const _hoisted_4$t = ["value"];
|
|
8513
|
-
const _hoisted_5$
|
|
8524
|
+
const _hoisted_5$j = ["aria-label", "placeholder"];
|
|
8514
8525
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
8515
8526
|
const _hoisted_7$7 = [
|
|
8516
8527
|
_hoisted_6$9
|
|
@@ -8630,7 +8641,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
8630
8641
|
placeholder: labels.value.placeholder,
|
|
8631
8642
|
onInput: handleInput,
|
|
8632
8643
|
onFocus: handleFocus
|
|
8633
|
-
}), null, 16, _hoisted_5$
|
|
8644
|
+
}), null, 16, _hoisted_5$j), [
|
|
8634
8645
|
[vModelText, inputValue.value]
|
|
8635
8646
|
]),
|
|
8636
8647
|
_ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -8804,7 +8815,7 @@ const _hoisted_4$s = {
|
|
|
8804
8815
|
class: "lupa-suggestion-facet-label",
|
|
8805
8816
|
"data-cy": "lupa-suggestion-facet-label"
|
|
8806
8817
|
};
|
|
8807
|
-
const _hoisted_5$
|
|
8818
|
+
const _hoisted_5$i = {
|
|
8808
8819
|
class: "lupa-suggestion-facet-value",
|
|
8809
8820
|
"data-cy": "lupa-suggestion-facet-value"
|
|
8810
8821
|
};
|
|
@@ -8847,7 +8858,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
8847
8858
|
}, null, 8, _hoisted_1$1b)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8848
8859
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
8849
8860
|
createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
|
|
8850
|
-
createBaseVNode("span", _hoisted_5$
|
|
8861
|
+
createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8851
8862
|
])) : createCommentVNode("", true)
|
|
8852
8863
|
]);
|
|
8853
8864
|
};
|
|
@@ -9348,7 +9359,7 @@ const _hoisted_1$14 = ["innerHTML"];
|
|
|
9348
9359
|
const _hoisted_2$M = { key: 0 };
|
|
9349
9360
|
const _hoisted_3$z = { key: 1 };
|
|
9350
9361
|
const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
|
|
9351
|
-
const _hoisted_5$
|
|
9362
|
+
const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
|
|
9352
9363
|
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
9353
9364
|
__name: "SearchBoxProductCustom",
|
|
9354
9365
|
props: {
|
|
@@ -9381,7 +9392,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
9381
9392
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
9382
9393
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
9383
9394
|
createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
|
|
9384
|
-
createBaseVNode("div", _hoisted_5$
|
|
9395
|
+
createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
|
|
9385
9396
|
]))
|
|
9386
9397
|
], 16));
|
|
9387
9398
|
};
|
|
@@ -10527,7 +10538,7 @@ const _hoisted_4$o = {
|
|
|
10527
10538
|
key: 1,
|
|
10528
10539
|
class: "lupa-panel-title"
|
|
10529
10540
|
};
|
|
10530
|
-
const _hoisted_5$
|
|
10541
|
+
const _hoisted_5$g = {
|
|
10531
10542
|
key: 1,
|
|
10532
10543
|
id: "lupa-search-box-panel"
|
|
10533
10544
|
};
|
|
@@ -10741,7 +10752,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
10741
10752
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
10742
10753
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
10743
10754
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
10744
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
10755
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
|
|
10745
10756
|
createVNode(_sfc_main$1k, {
|
|
10746
10757
|
options: _ctx.options.history,
|
|
10747
10758
|
history: history.value,
|
|
@@ -11236,7 +11247,7 @@ const _hoisted_3$t = {
|
|
|
11236
11247
|
class: "lupa-results-total-count"
|
|
11237
11248
|
};
|
|
11238
11249
|
const _hoisted_4$m = { class: "lupa-results-total-count-number" };
|
|
11239
|
-
const _hoisted_5$
|
|
11250
|
+
const _hoisted_5$f = ["innerHTML"];
|
|
11240
11251
|
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
11241
11252
|
__name: "SearchResultsTitle",
|
|
11242
11253
|
props: {
|
|
@@ -11293,7 +11304,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
11293
11304
|
key: 2,
|
|
11294
11305
|
class: "lupa-result-page-description-top",
|
|
11295
11306
|
innerHTML: descriptionTop.value
|
|
11296
|
-
}, null, 8, _hoisted_5$
|
|
11307
|
+
}, null, 8, _hoisted_5$f)) : createCommentVNode("", true)
|
|
11297
11308
|
]);
|
|
11298
11309
|
};
|
|
11299
11310
|
}
|
|
@@ -11492,7 +11503,7 @@ const _hoisted_1$L = {
|
|
|
11492
11503
|
const _hoisted_2$z = { class: "lupa-category-back" };
|
|
11493
11504
|
const _hoisted_3$q = ["href"];
|
|
11494
11505
|
const _hoisted_4$k = ["href"];
|
|
11495
|
-
const _hoisted_5$
|
|
11506
|
+
const _hoisted_5$e = { class: "lupa-child-category-list" };
|
|
11496
11507
|
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
11497
11508
|
__name: "CategoryFilter",
|
|
11498
11509
|
props: {
|
|
@@ -11598,7 +11609,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
11598
11609
|
onClick: handleNavigationParent
|
|
11599
11610
|
}, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
|
|
11600
11611
|
], 2),
|
|
11601
|
-
createBaseVNode("div", _hoisted_5$
|
|
11612
|
+
createBaseVNode("div", _hoisted_5$e, [
|
|
11602
11613
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
11603
11614
|
return openBlock(), createBlock(_sfc_main$P, {
|
|
11604
11615
|
key: getCategoryKey(child),
|
|
@@ -11618,7 +11629,7 @@ const _hoisted_1$K = {
|
|
|
11618
11629
|
const _hoisted_2$y = ["placeholder"];
|
|
11619
11630
|
const _hoisted_3$p = { class: "lupa-terms-list" };
|
|
11620
11631
|
const _hoisted_4$j = ["onClick"];
|
|
11621
|
-
const _hoisted_5$
|
|
11632
|
+
const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
|
|
11622
11633
|
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
11623
11634
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
11624
11635
|
const _hoisted_8$2 = {
|
|
@@ -11716,7 +11727,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
11716
11727
|
key: item.title,
|
|
11717
11728
|
onClick: ($event) => handleFacetClick(item)
|
|
11718
11729
|
}, [
|
|
11719
|
-
createBaseVNode("div", _hoisted_5$
|
|
11730
|
+
createBaseVNode("div", _hoisted_5$d, [
|
|
11720
11731
|
createBaseVNode("span", {
|
|
11721
11732
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
11722
11733
|
}, null, 2)
|
|
@@ -12729,7 +12740,7 @@ const _hoisted_4$i = {
|
|
|
12729
12740
|
key: 0,
|
|
12730
12741
|
class: "lupa-stats-range-label"
|
|
12731
12742
|
};
|
|
12732
|
-
const _hoisted_5$
|
|
12743
|
+
const _hoisted_5$c = { class: "lupa-stats-from" };
|
|
12733
12744
|
const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
|
|
12734
12745
|
const _hoisted_7$5 = { key: 0 };
|
|
12735
12746
|
const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
@@ -12921,7 +12932,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
12921
12932
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
|
|
12922
12933
|
createBaseVNode("div", null, [
|
|
12923
12934
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
12924
|
-
createBaseVNode("div", _hoisted_5$
|
|
12935
|
+
createBaseVNode("div", _hoisted_5$c, [
|
|
12925
12936
|
withDirectives(createBaseVNode("input", {
|
|
12926
12937
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
12927
12938
|
type: "text",
|
|
@@ -12991,7 +13002,7 @@ const _hoisted_4$h = {
|
|
|
12991
13002
|
key: 0,
|
|
12992
13003
|
class: "lupa-term-count"
|
|
12993
13004
|
};
|
|
12994
|
-
const _hoisted_5$
|
|
13005
|
+
const _hoisted_5$b = {
|
|
12995
13006
|
key: 0,
|
|
12996
13007
|
class: "lupa-facet-level"
|
|
12997
13008
|
};
|
|
@@ -13051,7 +13062,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
13051
13062
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
13052
13063
|
])
|
|
13053
13064
|
]),
|
|
13054
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
13065
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
|
|
13055
13066
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
13056
13067
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
13057
13068
|
key: itemChild.title,
|
|
@@ -13561,7 +13572,7 @@ const _hoisted_1$B = {
|
|
|
13561
13572
|
const _hoisted_2$r = ["onClick"];
|
|
13562
13573
|
const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
|
|
13563
13574
|
const _hoisted_4$g = { class: "lupa-sidebar-top" };
|
|
13564
|
-
const _hoisted_5$
|
|
13575
|
+
const _hoisted_5$a = { class: "lupa-sidebar-title" };
|
|
13565
13576
|
const _hoisted_6$6 = {
|
|
13566
13577
|
key: 0,
|
|
13567
13578
|
class: "lupa-sidebar-filter-count"
|
|
@@ -13605,7 +13616,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
13605
13616
|
}, null, 8, _hoisted_2$r),
|
|
13606
13617
|
createBaseVNode("div", _hoisted_3$l, [
|
|
13607
13618
|
createBaseVNode("div", _hoisted_4$g, [
|
|
13608
|
-
createBaseVNode("div", _hoisted_5$
|
|
13619
|
+
createBaseVNode("div", _hoisted_5$a, [
|
|
13609
13620
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
13610
13621
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
13611
13622
|
]),
|
|
@@ -13911,6 +13922,7 @@ const _hoisted_1$v = {
|
|
|
13911
13922
|
const _hoisted_2$o = { id: "lupa-select" };
|
|
13912
13923
|
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
13913
13924
|
const _hoisted_4$d = ["aria-label"];
|
|
13925
|
+
const _hoisted_5$9 = ["value"];
|
|
13914
13926
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
13915
13927
|
__name: "SearchResultsPageSize",
|
|
13916
13928
|
props: {
|
|
@@ -13950,7 +13962,10 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
13950
13962
|
ref: select
|
|
13951
13963
|
}, [
|
|
13952
13964
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
|
|
13953
|
-
return openBlock(), createElementBlock("option", {
|
|
13965
|
+
return openBlock(), createElementBlock("option", {
|
|
13966
|
+
key: option,
|
|
13967
|
+
value: option
|
|
13968
|
+
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$9);
|
|
13954
13969
|
}), 128))
|
|
13955
13970
|
], 40, _hoisted_4$d)
|
|
13956
13971
|
])
|
|
@@ -22143,8 +22158,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22143
22158
|
});
|
|
22144
22159
|
const columnSize = computed(() => `width: ${100 / columnCount.value}%`);
|
|
22145
22160
|
const title = computed(() => {
|
|
22146
|
-
var _a;
|
|
22147
|
-
return (_a = props.options.recommendationLabels.title) != null ?
|
|
22161
|
+
var _a, _b;
|
|
22162
|
+
return (_b = (_a = props.options.recommendationLabels) == null ? void 0 : _a.title) != null ? _b : "";
|
|
22148
22163
|
});
|
|
22149
22164
|
onMounted(() => {
|
|
22150
22165
|
loadRecommendations();
|
|
@@ -22207,7 +22222,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22207
22222
|
const result = yield LupaSearchSdk.recommend(
|
|
22208
22223
|
props.options.queryKey,
|
|
22209
22224
|
props.options.itemId,
|
|
22210
|
-
props.options.
|
|
22225
|
+
props.options.recommendationFilters,
|
|
22211
22226
|
props.options.options
|
|
22212
22227
|
);
|
|
22213
22228
|
if (!result.success) {
|
package/dist/lupaSearch.mjs
CHANGED
|
@@ -7910,6 +7910,14 @@ const encodeParam = (param) => {
|
|
|
7910
7910
|
const encoded = encodeURIComponent(param);
|
|
7911
7911
|
return encoded.replace(/%C4%85/g, "ą").replace(/%C4%8D/g, "č").replace(/%C4%99/g, "ę").replace(/%C4%97/g, "ė").replace(/%C4%AF/g, "į").replace(/%C5%A1/g, "š").replace(/%C5%B3/g, "ų").replace(/%C5%AB/g, "ū").replace(/%C5%BE/g, "ž").replace(/%20/g, " ");
|
|
7912
7912
|
};
|
|
7913
|
+
const getQueryParam = (name) => {
|
|
7914
|
+
try {
|
|
7915
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
7916
|
+
return urlParams.get(name);
|
|
7917
|
+
} catch (e2) {
|
|
7918
|
+
return null;
|
|
7919
|
+
}
|
|
7920
|
+
};
|
|
7913
7921
|
const PATH_REPLACE_REGEXP = /{(.*?)}/gm;
|
|
7914
7922
|
const generateLink = (linkPattern, document2) => {
|
|
7915
7923
|
const matches = linkPattern.match(PATH_REPLACE_REGEXP);
|
|
@@ -8201,7 +8209,7 @@ const useParamsStore = defineStore("params", () => {
|
|
|
8201
8209
|
searchText,
|
|
8202
8210
|
facet
|
|
8203
8211
|
}) => {
|
|
8204
|
-
var _a;
|
|
8212
|
+
var _a, _b;
|
|
8205
8213
|
const redirectionApplied = redirectionStore.redirectOnKeywordIfConfigured(
|
|
8206
8214
|
searchText,
|
|
8207
8215
|
optionsStore.boxRoutingBehavior
|
|
@@ -8209,7 +8217,10 @@ const useParamsStore = defineStore("params", () => {
|
|
|
8209
8217
|
if (redirectionApplied) {
|
|
8210
8218
|
return;
|
|
8211
8219
|
}
|
|
8212
|
-
|
|
8220
|
+
const forceFullReload = (_a = optionsStore.searchBoxOptions.forceFullReloadOnParams) == null ? void 0 : _a.some(
|
|
8221
|
+
(p2) => getQueryParam(p2)
|
|
8222
|
+
);
|
|
8223
|
+
if ((!searchResultsLink.value || linksMatch(searchResultsLink.value, window.location.pathname)) && !forceFullReload) {
|
|
8213
8224
|
const singleFacetParam = facet ? getFacetParam(facet.key, [facet.title]) : void 0;
|
|
8214
8225
|
const facetParam = singleFacetParam ? [
|
|
8215
8226
|
__spreadProps2(__spreadValues2({}, singleFacetParam), {
|
|
@@ -8225,7 +8236,7 @@ const useParamsStore = defineStore("params", () => {
|
|
|
8225
8236
|
searchResultsLink: searchResultsLink.value
|
|
8226
8237
|
});
|
|
8227
8238
|
} else {
|
|
8228
|
-
const routing = (
|
|
8239
|
+
const routing = (_b = optionsStore.boxRoutingBehavior) != null ? _b : "direct-link";
|
|
8229
8240
|
redirectToResultsPage(
|
|
8230
8241
|
searchResultsLink.value,
|
|
8231
8242
|
searchText,
|
|
@@ -8508,7 +8519,7 @@ const _hoisted_1$1f = { id: "lupa-search-box-input-container" };
|
|
|
8508
8519
|
const _hoisted_2$R = { class: "lupa-input-clear" };
|
|
8509
8520
|
const _hoisted_3$B = { id: "lupa-search-box-input" };
|
|
8510
8521
|
const _hoisted_4$t = ["value"];
|
|
8511
|
-
const _hoisted_5$
|
|
8522
|
+
const _hoisted_5$j = ["aria-label", "placeholder"];
|
|
8512
8523
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
8513
8524
|
const _hoisted_7$7 = [
|
|
8514
8525
|
_hoisted_6$9
|
|
@@ -8628,7 +8639,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
8628
8639
|
placeholder: labels.value.placeholder,
|
|
8629
8640
|
onInput: handleInput,
|
|
8630
8641
|
onFocus: handleFocus
|
|
8631
|
-
}), null, 16, _hoisted_5$
|
|
8642
|
+
}), null, 16, _hoisted_5$j), [
|
|
8632
8643
|
[vModelText, inputValue.value]
|
|
8633
8644
|
]),
|
|
8634
8645
|
_ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -8802,7 +8813,7 @@ const _hoisted_4$s = {
|
|
|
8802
8813
|
class: "lupa-suggestion-facet-label",
|
|
8803
8814
|
"data-cy": "lupa-suggestion-facet-label"
|
|
8804
8815
|
};
|
|
8805
|
-
const _hoisted_5$
|
|
8816
|
+
const _hoisted_5$i = {
|
|
8806
8817
|
class: "lupa-suggestion-facet-value",
|
|
8807
8818
|
"data-cy": "lupa-suggestion-facet-value"
|
|
8808
8819
|
};
|
|
@@ -8845,7 +8856,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
8845
8856
|
}, null, 8, _hoisted_1$1b)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8846
8857
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
8847
8858
|
createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
|
|
8848
|
-
createBaseVNode("span", _hoisted_5$
|
|
8859
|
+
createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8849
8860
|
])) : createCommentVNode("", true)
|
|
8850
8861
|
]);
|
|
8851
8862
|
};
|
|
@@ -9346,7 +9357,7 @@ const _hoisted_1$14 = ["innerHTML"];
|
|
|
9346
9357
|
const _hoisted_2$M = { key: 0 };
|
|
9347
9358
|
const _hoisted_3$z = { key: 1 };
|
|
9348
9359
|
const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
|
|
9349
|
-
const _hoisted_5$
|
|
9360
|
+
const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
|
|
9350
9361
|
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
9351
9362
|
__name: "SearchBoxProductCustom",
|
|
9352
9363
|
props: {
|
|
@@ -9379,7 +9390,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
9379
9390
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
9380
9391
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
9381
9392
|
createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
|
|
9382
|
-
createBaseVNode("div", _hoisted_5$
|
|
9393
|
+
createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
|
|
9383
9394
|
]))
|
|
9384
9395
|
], 16));
|
|
9385
9396
|
};
|
|
@@ -10525,7 +10536,7 @@ const _hoisted_4$o = {
|
|
|
10525
10536
|
key: 1,
|
|
10526
10537
|
class: "lupa-panel-title"
|
|
10527
10538
|
};
|
|
10528
|
-
const _hoisted_5$
|
|
10539
|
+
const _hoisted_5$g = {
|
|
10529
10540
|
key: 1,
|
|
10530
10541
|
id: "lupa-search-box-panel"
|
|
10531
10542
|
};
|
|
@@ -10739,7 +10750,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
10739
10750
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
10740
10751
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
10741
10752
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
10742
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
10753
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
|
|
10743
10754
|
createVNode(_sfc_main$1k, {
|
|
10744
10755
|
options: _ctx.options.history,
|
|
10745
10756
|
history: history.value,
|
|
@@ -11234,7 +11245,7 @@ const _hoisted_3$t = {
|
|
|
11234
11245
|
class: "lupa-results-total-count"
|
|
11235
11246
|
};
|
|
11236
11247
|
const _hoisted_4$m = { class: "lupa-results-total-count-number" };
|
|
11237
|
-
const _hoisted_5$
|
|
11248
|
+
const _hoisted_5$f = ["innerHTML"];
|
|
11238
11249
|
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
11239
11250
|
__name: "SearchResultsTitle",
|
|
11240
11251
|
props: {
|
|
@@ -11291,7 +11302,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
11291
11302
|
key: 2,
|
|
11292
11303
|
class: "lupa-result-page-description-top",
|
|
11293
11304
|
innerHTML: descriptionTop.value
|
|
11294
|
-
}, null, 8, _hoisted_5$
|
|
11305
|
+
}, null, 8, _hoisted_5$f)) : createCommentVNode("", true)
|
|
11295
11306
|
]);
|
|
11296
11307
|
};
|
|
11297
11308
|
}
|
|
@@ -11490,7 +11501,7 @@ const _hoisted_1$L = {
|
|
|
11490
11501
|
const _hoisted_2$z = { class: "lupa-category-back" };
|
|
11491
11502
|
const _hoisted_3$q = ["href"];
|
|
11492
11503
|
const _hoisted_4$k = ["href"];
|
|
11493
|
-
const _hoisted_5$
|
|
11504
|
+
const _hoisted_5$e = { class: "lupa-child-category-list" };
|
|
11494
11505
|
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
11495
11506
|
__name: "CategoryFilter",
|
|
11496
11507
|
props: {
|
|
@@ -11596,7 +11607,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
11596
11607
|
onClick: handleNavigationParent
|
|
11597
11608
|
}, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
|
|
11598
11609
|
], 2),
|
|
11599
|
-
createBaseVNode("div", _hoisted_5$
|
|
11610
|
+
createBaseVNode("div", _hoisted_5$e, [
|
|
11600
11611
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
11601
11612
|
return openBlock(), createBlock(_sfc_main$P, {
|
|
11602
11613
|
key: getCategoryKey(child),
|
|
@@ -11616,7 +11627,7 @@ const _hoisted_1$K = {
|
|
|
11616
11627
|
const _hoisted_2$y = ["placeholder"];
|
|
11617
11628
|
const _hoisted_3$p = { class: "lupa-terms-list" };
|
|
11618
11629
|
const _hoisted_4$j = ["onClick"];
|
|
11619
|
-
const _hoisted_5$
|
|
11630
|
+
const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
|
|
11620
11631
|
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
11621
11632
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
11622
11633
|
const _hoisted_8$2 = {
|
|
@@ -11714,7 +11725,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
11714
11725
|
key: item.title,
|
|
11715
11726
|
onClick: ($event) => handleFacetClick(item)
|
|
11716
11727
|
}, [
|
|
11717
|
-
createBaseVNode("div", _hoisted_5$
|
|
11728
|
+
createBaseVNode("div", _hoisted_5$d, [
|
|
11718
11729
|
createBaseVNode("span", {
|
|
11719
11730
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
11720
11731
|
}, null, 2)
|
|
@@ -12727,7 +12738,7 @@ const _hoisted_4$i = {
|
|
|
12727
12738
|
key: 0,
|
|
12728
12739
|
class: "lupa-stats-range-label"
|
|
12729
12740
|
};
|
|
12730
|
-
const _hoisted_5$
|
|
12741
|
+
const _hoisted_5$c = { class: "lupa-stats-from" };
|
|
12731
12742
|
const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
|
|
12732
12743
|
const _hoisted_7$5 = { key: 0 };
|
|
12733
12744
|
const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
@@ -12919,7 +12930,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
12919
12930
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
|
|
12920
12931
|
createBaseVNode("div", null, [
|
|
12921
12932
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
12922
|
-
createBaseVNode("div", _hoisted_5$
|
|
12933
|
+
createBaseVNode("div", _hoisted_5$c, [
|
|
12923
12934
|
withDirectives(createBaseVNode("input", {
|
|
12924
12935
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
12925
12936
|
type: "text",
|
|
@@ -12989,7 +13000,7 @@ const _hoisted_4$h = {
|
|
|
12989
13000
|
key: 0,
|
|
12990
13001
|
class: "lupa-term-count"
|
|
12991
13002
|
};
|
|
12992
|
-
const _hoisted_5$
|
|
13003
|
+
const _hoisted_5$b = {
|
|
12993
13004
|
key: 0,
|
|
12994
13005
|
class: "lupa-facet-level"
|
|
12995
13006
|
};
|
|
@@ -13049,7 +13060,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
13049
13060
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
13050
13061
|
])
|
|
13051
13062
|
]),
|
|
13052
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
13063
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
|
|
13053
13064
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
13054
13065
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
13055
13066
|
key: itemChild.title,
|
|
@@ -13559,7 +13570,7 @@ const _hoisted_1$B = {
|
|
|
13559
13570
|
const _hoisted_2$r = ["onClick"];
|
|
13560
13571
|
const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
|
|
13561
13572
|
const _hoisted_4$g = { class: "lupa-sidebar-top" };
|
|
13562
|
-
const _hoisted_5$
|
|
13573
|
+
const _hoisted_5$a = { class: "lupa-sidebar-title" };
|
|
13563
13574
|
const _hoisted_6$6 = {
|
|
13564
13575
|
key: 0,
|
|
13565
13576
|
class: "lupa-sidebar-filter-count"
|
|
@@ -13603,7 +13614,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
13603
13614
|
}, null, 8, _hoisted_2$r),
|
|
13604
13615
|
createBaseVNode("div", _hoisted_3$l, [
|
|
13605
13616
|
createBaseVNode("div", _hoisted_4$g, [
|
|
13606
|
-
createBaseVNode("div", _hoisted_5$
|
|
13617
|
+
createBaseVNode("div", _hoisted_5$a, [
|
|
13607
13618
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
13608
13619
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
13609
13620
|
]),
|
|
@@ -13909,6 +13920,7 @@ const _hoisted_1$v = {
|
|
|
13909
13920
|
const _hoisted_2$o = { id: "lupa-select" };
|
|
13910
13921
|
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
13911
13922
|
const _hoisted_4$d = ["aria-label"];
|
|
13923
|
+
const _hoisted_5$9 = ["value"];
|
|
13912
13924
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
13913
13925
|
__name: "SearchResultsPageSize",
|
|
13914
13926
|
props: {
|
|
@@ -13948,7 +13960,10 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
13948
13960
|
ref: select
|
|
13949
13961
|
}, [
|
|
13950
13962
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
|
|
13951
|
-
return openBlock(), createElementBlock("option", {
|
|
13963
|
+
return openBlock(), createElementBlock("option", {
|
|
13964
|
+
key: option,
|
|
13965
|
+
value: option
|
|
13966
|
+
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$9);
|
|
13952
13967
|
}), 128))
|
|
13953
13968
|
], 40, _hoisted_4$d)
|
|
13954
13969
|
])
|
|
@@ -22141,8 +22156,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22141
22156
|
});
|
|
22142
22157
|
const columnSize = computed(() => `width: ${100 / columnCount.value}%`);
|
|
22143
22158
|
const title = computed(() => {
|
|
22144
|
-
var _a;
|
|
22145
|
-
return (_a = props.options.recommendationLabels.title) != null ?
|
|
22159
|
+
var _a, _b;
|
|
22160
|
+
return (_b = (_a = props.options.recommendationLabels) == null ? void 0 : _a.title) != null ? _b : "";
|
|
22146
22161
|
});
|
|
22147
22162
|
onMounted(() => {
|
|
22148
22163
|
loadRecommendations();
|
|
@@ -22205,7 +22220,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22205
22220
|
const result = yield LupaSearchSdk.recommend(
|
|
22206
22221
|
props.options.queryKey,
|
|
22207
22222
|
props.options.itemId,
|
|
22208
|
-
props.options.
|
|
22223
|
+
props.options.recommendationFilters,
|
|
22209
22224
|
props.options.options
|
|
22210
22225
|
);
|
|
22211
22226
|
if (!result.success) {
|
package/dist/lupaSearch.umd.js
CHANGED
|
@@ -7914,6 +7914,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
7914
7914
|
const encoded = encodeURIComponent(param);
|
|
7915
7915
|
return encoded.replace(/%C4%85/g, "ą").replace(/%C4%8D/g, "č").replace(/%C4%99/g, "ę").replace(/%C4%97/g, "ė").replace(/%C4%AF/g, "į").replace(/%C5%A1/g, "š").replace(/%C5%B3/g, "ų").replace(/%C5%AB/g, "ū").replace(/%C5%BE/g, "ž").replace(/%20/g, " ");
|
|
7916
7916
|
};
|
|
7917
|
+
const getQueryParam = (name) => {
|
|
7918
|
+
try {
|
|
7919
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
7920
|
+
return urlParams.get(name);
|
|
7921
|
+
} catch (e2) {
|
|
7922
|
+
return null;
|
|
7923
|
+
}
|
|
7924
|
+
};
|
|
7917
7925
|
const PATH_REPLACE_REGEXP = /{(.*?)}/gm;
|
|
7918
7926
|
const generateLink = (linkPattern, document2) => {
|
|
7919
7927
|
const matches = linkPattern.match(PATH_REPLACE_REGEXP);
|
|
@@ -8205,7 +8213,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8205
8213
|
searchText,
|
|
8206
8214
|
facet
|
|
8207
8215
|
}) => {
|
|
8208
|
-
var _a;
|
|
8216
|
+
var _a, _b;
|
|
8209
8217
|
const redirectionApplied = redirectionStore.redirectOnKeywordIfConfigured(
|
|
8210
8218
|
searchText,
|
|
8211
8219
|
optionsStore.boxRoutingBehavior
|
|
@@ -8213,7 +8221,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8213
8221
|
if (redirectionApplied) {
|
|
8214
8222
|
return;
|
|
8215
8223
|
}
|
|
8216
|
-
|
|
8224
|
+
const forceFullReload = (_a = optionsStore.searchBoxOptions.forceFullReloadOnParams) == null ? void 0 : _a.some(
|
|
8225
|
+
(p2) => getQueryParam(p2)
|
|
8226
|
+
);
|
|
8227
|
+
if ((!searchResultsLink.value || linksMatch(searchResultsLink.value, window.location.pathname)) && !forceFullReload) {
|
|
8217
8228
|
const singleFacetParam = facet ? getFacetParam(facet.key, [facet.title]) : void 0;
|
|
8218
8229
|
const facetParam = singleFacetParam ? [
|
|
8219
8230
|
__spreadProps2(__spreadValues2({}, singleFacetParam), {
|
|
@@ -8229,7 +8240,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8229
8240
|
searchResultsLink: searchResultsLink.value
|
|
8230
8241
|
});
|
|
8231
8242
|
} else {
|
|
8232
|
-
const routing = (
|
|
8243
|
+
const routing = (_b = optionsStore.boxRoutingBehavior) != null ? _b : "direct-link";
|
|
8233
8244
|
redirectToResultsPage(
|
|
8234
8245
|
searchResultsLink.value,
|
|
8235
8246
|
searchText,
|
|
@@ -8512,7 +8523,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8512
8523
|
const _hoisted_2$R = { class: "lupa-input-clear" };
|
|
8513
8524
|
const _hoisted_3$B = { id: "lupa-search-box-input" };
|
|
8514
8525
|
const _hoisted_4$t = ["value"];
|
|
8515
|
-
const _hoisted_5$
|
|
8526
|
+
const _hoisted_5$j = ["aria-label", "placeholder"];
|
|
8516
8527
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
8517
8528
|
const _hoisted_7$7 = [
|
|
8518
8529
|
_hoisted_6$9
|
|
@@ -8632,7 +8643,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8632
8643
|
placeholder: labels.value.placeholder,
|
|
8633
8644
|
onInput: handleInput,
|
|
8634
8645
|
onFocus: handleFocus
|
|
8635
|
-
}), null, 16, _hoisted_5$
|
|
8646
|
+
}), null, 16, _hoisted_5$j), [
|
|
8636
8647
|
[vModelText, inputValue.value]
|
|
8637
8648
|
]),
|
|
8638
8649
|
_ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -8806,7 +8817,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8806
8817
|
class: "lupa-suggestion-facet-label",
|
|
8807
8818
|
"data-cy": "lupa-suggestion-facet-label"
|
|
8808
8819
|
};
|
|
8809
|
-
const _hoisted_5$
|
|
8820
|
+
const _hoisted_5$i = {
|
|
8810
8821
|
class: "lupa-suggestion-facet-value",
|
|
8811
8822
|
"data-cy": "lupa-suggestion-facet-value"
|
|
8812
8823
|
};
|
|
@@ -8849,7 +8860,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8849
8860
|
}, null, 8, _hoisted_1$1b)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8850
8861
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
8851
8862
|
createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
|
|
8852
|
-
createBaseVNode("span", _hoisted_5$
|
|
8863
|
+
createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8853
8864
|
])) : createCommentVNode("", true)
|
|
8854
8865
|
]);
|
|
8855
8866
|
};
|
|
@@ -9350,7 +9361,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9350
9361
|
const _hoisted_2$M = { key: 0 };
|
|
9351
9362
|
const _hoisted_3$z = { key: 1 };
|
|
9352
9363
|
const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
|
|
9353
|
-
const _hoisted_5$
|
|
9364
|
+
const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
|
|
9354
9365
|
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
9355
9366
|
__name: "SearchBoxProductCustom",
|
|
9356
9367
|
props: {
|
|
@@ -9383,7 +9394,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
9383
9394
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
9384
9395
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
9385
9396
|
createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
|
|
9386
|
-
createBaseVNode("div", _hoisted_5$
|
|
9397
|
+
createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
|
|
9387
9398
|
]))
|
|
9388
9399
|
], 16));
|
|
9389
9400
|
};
|
|
@@ -10529,7 +10540,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10529
10540
|
key: 1,
|
|
10530
10541
|
class: "lupa-panel-title"
|
|
10531
10542
|
};
|
|
10532
|
-
const _hoisted_5$
|
|
10543
|
+
const _hoisted_5$g = {
|
|
10533
10544
|
key: 1,
|
|
10534
10545
|
id: "lupa-search-box-panel"
|
|
10535
10546
|
};
|
|
@@ -10743,7 +10754,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
10743
10754
|
showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
|
|
10744
10755
|
onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
|
|
10745
10756
|
}, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
|
|
10746
|
-
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
10757
|
+
])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
|
|
10747
10758
|
createVNode(_sfc_main$1k, {
|
|
10748
10759
|
options: _ctx.options.history,
|
|
10749
10760
|
history: history.value,
|
|
@@ -11238,7 +11249,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11238
11249
|
class: "lupa-results-total-count"
|
|
11239
11250
|
};
|
|
11240
11251
|
const _hoisted_4$m = { class: "lupa-results-total-count-number" };
|
|
11241
|
-
const _hoisted_5$
|
|
11252
|
+
const _hoisted_5$f = ["innerHTML"];
|
|
11242
11253
|
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
11243
11254
|
__name: "SearchResultsTitle",
|
|
11244
11255
|
props: {
|
|
@@ -11295,7 +11306,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11295
11306
|
key: 2,
|
|
11296
11307
|
class: "lupa-result-page-description-top",
|
|
11297
11308
|
innerHTML: descriptionTop.value
|
|
11298
|
-
}, null, 8, _hoisted_5$
|
|
11309
|
+
}, null, 8, _hoisted_5$f)) : createCommentVNode("", true)
|
|
11299
11310
|
]);
|
|
11300
11311
|
};
|
|
11301
11312
|
}
|
|
@@ -11494,7 +11505,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11494
11505
|
const _hoisted_2$z = { class: "lupa-category-back" };
|
|
11495
11506
|
const _hoisted_3$q = ["href"];
|
|
11496
11507
|
const _hoisted_4$k = ["href"];
|
|
11497
|
-
const _hoisted_5$
|
|
11508
|
+
const _hoisted_5$e = { class: "lupa-child-category-list" };
|
|
11498
11509
|
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
11499
11510
|
__name: "CategoryFilter",
|
|
11500
11511
|
props: {
|
|
@@ -11600,7 +11611,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11600
11611
|
onClick: handleNavigationParent
|
|
11601
11612
|
}, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
|
|
11602
11613
|
], 2),
|
|
11603
|
-
createBaseVNode("div", _hoisted_5$
|
|
11614
|
+
createBaseVNode("div", _hoisted_5$e, [
|
|
11604
11615
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
11605
11616
|
return openBlock(), createBlock(_sfc_main$P, {
|
|
11606
11617
|
key: getCategoryKey(child),
|
|
@@ -11620,7 +11631,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11620
11631
|
const _hoisted_2$y = ["placeholder"];
|
|
11621
11632
|
const _hoisted_3$p = { class: "lupa-terms-list" };
|
|
11622
11633
|
const _hoisted_4$j = ["onClick"];
|
|
11623
|
-
const _hoisted_5$
|
|
11634
|
+
const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
|
|
11624
11635
|
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
11625
11636
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
11626
11637
|
const _hoisted_8$2 = {
|
|
@@ -11718,7 +11729,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11718
11729
|
key: item.title,
|
|
11719
11730
|
onClick: ($event) => handleFacetClick(item)
|
|
11720
11731
|
}, [
|
|
11721
|
-
createBaseVNode("div", _hoisted_5$
|
|
11732
|
+
createBaseVNode("div", _hoisted_5$d, [
|
|
11722
11733
|
createBaseVNode("span", {
|
|
11723
11734
|
class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
|
|
11724
11735
|
}, null, 2)
|
|
@@ -12731,7 +12742,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12731
12742
|
key: 0,
|
|
12732
12743
|
class: "lupa-stats-range-label"
|
|
12733
12744
|
};
|
|
12734
|
-
const _hoisted_5$
|
|
12745
|
+
const _hoisted_5$c = { class: "lupa-stats-from" };
|
|
12735
12746
|
const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
|
|
12736
12747
|
const _hoisted_7$5 = { key: 0 };
|
|
12737
12748
|
const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
|
|
@@ -12923,7 +12934,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12923
12934
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
|
|
12924
12935
|
createBaseVNode("div", null, [
|
|
12925
12936
|
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
12926
|
-
createBaseVNode("div", _hoisted_5$
|
|
12937
|
+
createBaseVNode("div", _hoisted_5$c, [
|
|
12927
12938
|
withDirectives(createBaseVNode("input", {
|
|
12928
12939
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
12929
12940
|
type: "text",
|
|
@@ -12993,7 +13004,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
12993
13004
|
key: 0,
|
|
12994
13005
|
class: "lupa-term-count"
|
|
12995
13006
|
};
|
|
12996
|
-
const _hoisted_5$
|
|
13007
|
+
const _hoisted_5$b = {
|
|
12997
13008
|
key: 0,
|
|
12998
13009
|
class: "lupa-facet-level"
|
|
12999
13010
|
};
|
|
@@ -13053,7 +13064,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13053
13064
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
13054
13065
|
])
|
|
13055
13066
|
]),
|
|
13056
|
-
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
13067
|
+
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
|
|
13057
13068
|
(openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
|
|
13058
13069
|
return openBlock(), createBlock(_component_HierarchyFacetLevel, {
|
|
13059
13070
|
key: itemChild.title,
|
|
@@ -13563,7 +13574,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13563
13574
|
const _hoisted_2$r = ["onClick"];
|
|
13564
13575
|
const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
|
|
13565
13576
|
const _hoisted_4$g = { class: "lupa-sidebar-top" };
|
|
13566
|
-
const _hoisted_5$
|
|
13577
|
+
const _hoisted_5$a = { class: "lupa-sidebar-title" };
|
|
13567
13578
|
const _hoisted_6$6 = {
|
|
13568
13579
|
key: 0,
|
|
13569
13580
|
class: "lupa-sidebar-filter-count"
|
|
@@ -13607,7 +13618,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13607
13618
|
}, null, 8, _hoisted_2$r),
|
|
13608
13619
|
createBaseVNode("div", _hoisted_3$l, [
|
|
13609
13620
|
createBaseVNode("div", _hoisted_4$g, [
|
|
13610
|
-
createBaseVNode("div", _hoisted_5$
|
|
13621
|
+
createBaseVNode("div", _hoisted_5$a, [
|
|
13611
13622
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
13612
13623
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
13613
13624
|
]),
|
|
@@ -13913,6 +13924,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13913
13924
|
const _hoisted_2$o = { id: "lupa-select" };
|
|
13914
13925
|
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
13915
13926
|
const _hoisted_4$d = ["aria-label"];
|
|
13927
|
+
const _hoisted_5$9 = ["value"];
|
|
13916
13928
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
13917
13929
|
__name: "SearchResultsPageSize",
|
|
13918
13930
|
props: {
|
|
@@ -13952,7 +13964,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
13952
13964
|
ref: select
|
|
13953
13965
|
}, [
|
|
13954
13966
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
|
|
13955
|
-
return openBlock(), createElementBlock("option", {
|
|
13967
|
+
return openBlock(), createElementBlock("option", {
|
|
13968
|
+
key: option,
|
|
13969
|
+
value: option
|
|
13970
|
+
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$9);
|
|
13956
13971
|
}), 128))
|
|
13957
13972
|
], 40, _hoisted_4$d)
|
|
13958
13973
|
])
|
|
@@ -22145,8 +22160,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
22145
22160
|
});
|
|
22146
22161
|
const columnSize = computed(() => `width: ${100 / columnCount.value}%`);
|
|
22147
22162
|
const title = computed(() => {
|
|
22148
|
-
var _a;
|
|
22149
|
-
return (_a = props.options.recommendationLabels.title) != null ?
|
|
22163
|
+
var _a, _b;
|
|
22164
|
+
return (_b = (_a = props.options.recommendationLabels) == null ? void 0 : _a.title) != null ? _b : "";
|
|
22150
22165
|
});
|
|
22151
22166
|
onMounted(() => {
|
|
22152
22167
|
loadRecommendations();
|
|
@@ -22209,7 +22224,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
22209
22224
|
const result = yield LupaSearchSdk.recommend(
|
|
22210
22225
|
props.options.queryKey,
|
|
22211
22226
|
props.options.itemId,
|
|
22212
|
-
props.options.
|
|
22227
|
+
props.options.recommendationFilters,
|
|
22213
22228
|
props.options.options
|
|
22214
22229
|
);
|
|
22215
22230
|
if (!result.success) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getlupa/client",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.9",
|
|
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.9",
|
|
24
24
|
"@rushstack/eslint-patch": "^1.3.2",
|
|
25
25
|
"@tsconfig/node18": "^2.0.1",
|
|
26
26
|
"@types/jsdom": "^21.1.1",
|