@getlupa/client 0.13.0-alpha-4 → 0.13.0-alpha-6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/SearchContainerEntry.vue.d.ts +1 -0
- package/dist/cjs/components/search-container/SearchContainer.vue.d.ts +4 -0
- package/dist/cjs/index.min.js +44 -30
- package/dist/es/SearchContainerEntry.vue.d.ts +1 -0
- package/dist/es/components/search-container/SearchContainer.vue.d.ts +4 -0
- package/dist/es/index.min.js +44 -30
- package/dist/iife/SearchContainerEntry.vue.d.ts +1 -0
- package/dist/iife/components/search-container/SearchContainer.vue.d.ts +4 -0
- package/dist/iife/index.min.js +1 -1
- package/package.json +1 -1
|
@@ -7,9 +7,13 @@ export default class SearchContainer extends Vue {
|
|
|
7
7
|
removeParams: ({ paramsToRemove, }: {
|
|
8
8
|
paramsToRemove: string;
|
|
9
9
|
}) => void;
|
|
10
|
+
setSearchResultOptions: ({ options, }: {
|
|
11
|
+
options: SearchResultsOptions;
|
|
12
|
+
}) => void;
|
|
10
13
|
get fullSearchResultsOptions(): SearchResultsOptions;
|
|
11
14
|
get fullSearchBoxOptions(): SearchBoxOptions;
|
|
12
15
|
fetch(): void;
|
|
13
16
|
innerClick(): void;
|
|
17
|
+
reloadOptions(): void;
|
|
14
18
|
beforeDestroy(): void;
|
|
15
19
|
}
|
package/dist/cjs/index.min.js
CHANGED
|
@@ -12355,7 +12355,7 @@ const getPageUrl = (pathnameOverride) => {
|
|
|
12355
12355
|
|
|
12356
12356
|
const history$3 = namespace("history");
|
|
12357
12357
|
const tracking$5 = namespace("tracking");
|
|
12358
|
-
const options$
|
|
12358
|
+
const options$d = namespace("options");
|
|
12359
12359
|
let SearchBoxProduct = class SearchBoxProduct extends Vue$1 {
|
|
12360
12360
|
get link() {
|
|
12361
12361
|
var _a, _b;
|
|
@@ -12430,7 +12430,7 @@ __decorate([
|
|
|
12430
12430
|
Prop({ default: false })
|
|
12431
12431
|
], SearchBoxProduct.prototype, "highlighted", void 0);
|
|
12432
12432
|
__decorate([
|
|
12433
|
-
options$
|
|
12433
|
+
options$d.Getter("boxRoutingBehavior")
|
|
12434
12434
|
], SearchBoxProduct.prototype, "boxRoutingBehavior", void 0);
|
|
12435
12435
|
__decorate([
|
|
12436
12436
|
tracking$5.Action("track")
|
|
@@ -30899,7 +30899,7 @@ const defaultSuggestedValue = {
|
|
|
30899
30899
|
const history$1 = namespace("history");
|
|
30900
30900
|
const params$e = namespace("params");
|
|
30901
30901
|
const searchBox$2 = namespace("searchBox");
|
|
30902
|
-
const options$
|
|
30902
|
+
const options$c = namespace("options");
|
|
30903
30903
|
const tracking$4 = namespace("tracking");
|
|
30904
30904
|
let SearchBox = class SearchBox extends Vue$1 {
|
|
30905
30905
|
constructor() {
|
|
@@ -31151,7 +31151,7 @@ __decorate([
|
|
|
31151
31151
|
params$e.Action("setSearchResultsLink")
|
|
31152
31152
|
], SearchBox.prototype, "setSearchResultsLink", void 0);
|
|
31153
31153
|
__decorate([
|
|
31154
|
-
options$
|
|
31154
|
+
options$c.Mutation("setSearchBoxOptions")
|
|
31155
31155
|
], SearchBox.prototype, "setSearchBoxOptions", void 0);
|
|
31156
31156
|
__decorate([
|
|
31157
31157
|
params$e.Action("goToResults")
|
|
@@ -31781,7 +31781,7 @@ const toggleHierarchyParam = (params = [], param = "", removeAllLevels = false)
|
|
|
31781
31781
|
|
|
31782
31782
|
const searchResult$i = namespace("searchResult");
|
|
31783
31783
|
const params$d = namespace("params");
|
|
31784
|
-
const options$
|
|
31784
|
+
const options$b = namespace("options");
|
|
31785
31785
|
let CurrentFilters = class CurrentFilters extends Vue$1 {
|
|
31786
31786
|
constructor() {
|
|
31787
31787
|
super(...arguments);
|
|
@@ -31832,7 +31832,7 @@ __decorate([
|
|
|
31832
31832
|
searchResult$i.Getter("currentFilterCount")
|
|
31833
31833
|
], CurrentFilters.prototype, "currentFilterCount", void 0);
|
|
31834
31834
|
__decorate([
|
|
31835
|
-
options$
|
|
31835
|
+
options$b.Getter("initialFilters")
|
|
31836
31836
|
], CurrentFilters.prototype, "initialFilters", void 0);
|
|
31837
31837
|
__decorate([
|
|
31838
31838
|
params$d.Action("removeParams")
|
|
@@ -32206,7 +32206,7 @@ var require$$0 = /*@__PURE__*/getAugmentedNamespace(vue_runtime_esm);
|
|
|
32206
32206
|
|
|
32207
32207
|
var VueSlider = /*@__PURE__*/getDefaultExportFromCjs(vueSliderComponent_umd_min.exports);
|
|
32208
32208
|
|
|
32209
|
-
const options$
|
|
32209
|
+
const options$a = namespace("options");
|
|
32210
32210
|
let TermFacet = class TermFacet extends Vue$1 {
|
|
32211
32211
|
constructor() {
|
|
32212
32212
|
super(...arguments);
|
|
@@ -32363,7 +32363,7 @@ __decorate([
|
|
|
32363
32363
|
Prop({ default: () => ({}) })
|
|
32364
32364
|
], TermFacet.prototype, "currentFilters", void 0);
|
|
32365
32365
|
__decorate([
|
|
32366
|
-
options$
|
|
32366
|
+
options$a.State((s) => s.searchResultOptions)
|
|
32367
32367
|
], TermFacet.prototype, "searchResultOptions", void 0);
|
|
32368
32368
|
__decorate([
|
|
32369
32369
|
Watch("currentMinValue")
|
|
@@ -33454,7 +33454,7 @@ __vue_render__$J._withStripped = true;
|
|
|
33454
33454
|
undefined
|
|
33455
33455
|
);
|
|
33456
33456
|
|
|
33457
|
-
const options$
|
|
33457
|
+
const options$9 = namespace("options");
|
|
33458
33458
|
let CategoryFilter = class CategoryFilter extends Vue$1 {
|
|
33459
33459
|
constructor() {
|
|
33460
33460
|
super(...arguments);
|
|
@@ -33532,10 +33532,10 @@ __decorate([
|
|
|
33532
33532
|
Prop()
|
|
33533
33533
|
], CategoryFilter.prototype, "options", void 0);
|
|
33534
33534
|
__decorate([
|
|
33535
|
-
options$
|
|
33535
|
+
options$9.Getter("envOptions")
|
|
33536
33536
|
], CategoryFilter.prototype, "envOptions", void 0);
|
|
33537
33537
|
__decorate([
|
|
33538
|
-
options$
|
|
33538
|
+
options$9.State((o) => o.searchResultOptions)
|
|
33539
33539
|
], CategoryFilter.prototype, "searchResultOptions", void 0);
|
|
33540
33540
|
CategoryFilter = __decorate([
|
|
33541
33541
|
Component({
|
|
@@ -34602,7 +34602,7 @@ __vue_render__$y._withStripped = true;
|
|
|
34602
34602
|
undefined
|
|
34603
34603
|
);
|
|
34604
34604
|
|
|
34605
|
-
const options$
|
|
34605
|
+
const options$8 = namespace("options");
|
|
34606
34606
|
let SearchResultsProductTitle = class SearchResultsProductTitle extends Vue$1 {
|
|
34607
34607
|
get title() {
|
|
34608
34608
|
return this.item[this.options.key];
|
|
@@ -34631,7 +34631,7 @@ __decorate([
|
|
|
34631
34631
|
Prop({ default: "" })
|
|
34632
34632
|
], SearchResultsProductTitle.prototype, "link", void 0);
|
|
34633
34633
|
__decorate([
|
|
34634
|
-
options$
|
|
34634
|
+
options$8.State((o) => o.searchResultOptions)
|
|
34635
34635
|
], SearchResultsProductTitle.prototype, "searchResultOptions", void 0);
|
|
34636
34636
|
SearchResultsProductTitle = __decorate([
|
|
34637
34637
|
Component({
|
|
@@ -35445,7 +35445,7 @@ __vue_render__$p._withStripped = true;
|
|
|
35445
35445
|
const tracking$3 = namespace("tracking");
|
|
35446
35446
|
const params$a = namespace("params");
|
|
35447
35447
|
const searchResult$c = namespace("searchResult");
|
|
35448
|
-
const options$
|
|
35448
|
+
const options$7 = namespace("options");
|
|
35449
35449
|
let SearchResultsProductCard = class SearchResultsProductCard extends Vue$1 {
|
|
35450
35450
|
constructor() {
|
|
35451
35451
|
super(...arguments);
|
|
@@ -35553,10 +35553,10 @@ __decorate([
|
|
|
35553
35553
|
searchResult$c.State((state) => state.layout)
|
|
35554
35554
|
], SearchResultsProductCard.prototype, "layout", void 0);
|
|
35555
35555
|
__decorate([
|
|
35556
|
-
options$
|
|
35556
|
+
options$7.Getter("searchResultsRoutingBehavior")
|
|
35557
35557
|
], SearchResultsProductCard.prototype, "searchResultsRoutingBehavior", void 0);
|
|
35558
35558
|
__decorate([
|
|
35559
|
-
options$
|
|
35559
|
+
options$7.State((o) => o.searchResultOptions)
|
|
35560
35560
|
], SearchResultsProductCard.prototype, "searchResultOptions", void 0);
|
|
35561
35561
|
__decorate([
|
|
35562
35562
|
params$a.Getter("query")
|
|
@@ -35912,7 +35912,7 @@ const track = (queryKey, data = {}, options) => {
|
|
|
35912
35912
|
};
|
|
35913
35913
|
|
|
35914
35914
|
const params$9 = namespace("params");
|
|
35915
|
-
const options$
|
|
35915
|
+
const options$6 = namespace("options");
|
|
35916
35916
|
let AdditionalPanels$1 = class AdditionalPanels extends Vue$1 {
|
|
35917
35917
|
constructor() {
|
|
35918
35918
|
super(...arguments);
|
|
@@ -35988,7 +35988,7 @@ __decorate([
|
|
|
35988
35988
|
params$9.Getter("query")
|
|
35989
35989
|
], AdditionalPanels$1.prototype, "query", void 0);
|
|
35990
35990
|
__decorate([
|
|
35991
|
-
options$
|
|
35991
|
+
options$6.State((o) => o.searchResultOptions)
|
|
35992
35992
|
], AdditionalPanels$1.prototype, "searchResultOptions", void 0);
|
|
35993
35993
|
__decorate([
|
|
35994
35994
|
Watch("query")
|
|
@@ -36670,7 +36670,7 @@ __vue_render__$j._withStripped = true;
|
|
|
36670
36670
|
);
|
|
36671
36671
|
|
|
36672
36672
|
const searchResult$a = namespace("searchResult");
|
|
36673
|
-
const options$
|
|
36673
|
+
const options$5 = namespace("options");
|
|
36674
36674
|
let SearchResultsLayoutSelection = class SearchResultsLayoutSelection extends Vue$1 {
|
|
36675
36675
|
handleLayoutChange(layout) {
|
|
36676
36676
|
this.setLayout(layout);
|
|
@@ -36680,7 +36680,7 @@ __decorate([
|
|
|
36680
36680
|
searchResult$a.State((state) => state.layout)
|
|
36681
36681
|
], SearchResultsLayoutSelection.prototype, "layout", void 0);
|
|
36682
36682
|
__decorate([
|
|
36683
|
-
options$
|
|
36683
|
+
options$5.Getter("classMap")
|
|
36684
36684
|
], SearchResultsLayoutSelection.prototype, "classMap", void 0);
|
|
36685
36685
|
__decorate([
|
|
36686
36686
|
searchResult$a.Action("setLayout")
|
|
@@ -36947,7 +36947,7 @@ __vue_render__$g._withStripped = true;
|
|
|
36947
36947
|
|
|
36948
36948
|
const searchResult$7 = namespace("searchResult");
|
|
36949
36949
|
const params$5 = namespace("params");
|
|
36950
|
-
const options$
|
|
36950
|
+
const options$4 = namespace("options");
|
|
36951
36951
|
let SearchResultsToolbar = class SearchResultsToolbar extends Vue$1 {
|
|
36952
36952
|
constructor() {
|
|
36953
36953
|
super(...arguments);
|
|
@@ -37054,7 +37054,7 @@ __decorate([
|
|
|
37054
37054
|
searchResult$7.State((state) => state.searchResult)
|
|
37055
37055
|
], SearchResultsToolbar.prototype, "searchResult", void 0);
|
|
37056
37056
|
__decorate([
|
|
37057
|
-
options$
|
|
37057
|
+
options$4.Getter("currentResolutionPageSizes")
|
|
37058
37058
|
], SearchResultsToolbar.prototype, "currentResolutionPageSizes", void 0);
|
|
37059
37059
|
__decorate([
|
|
37060
37060
|
params$5.Action("removeAllFilters")
|
|
@@ -37860,7 +37860,7 @@ __vue_render__$a._withStripped = true;
|
|
|
37860
37860
|
);
|
|
37861
37861
|
|
|
37862
37862
|
const searchResult$3 = namespace("searchResult");
|
|
37863
|
-
const options$
|
|
37863
|
+
const options$3 = namespace("options");
|
|
37864
37864
|
let SearchResultsBreadcrumbs = class SearchResultsBreadcrumbs extends Vue$1 {
|
|
37865
37865
|
get hasEventRouting() {
|
|
37866
37866
|
return this.searchResultOptions.routingBehavior === "event";
|
|
@@ -37879,7 +37879,7 @@ __decorate([
|
|
|
37879
37879
|
searchResult$3.Getter("currentQueryText")
|
|
37880
37880
|
], SearchResultsBreadcrumbs.prototype, "currentQueryText", void 0);
|
|
37881
37881
|
__decorate([
|
|
37882
|
-
options$
|
|
37882
|
+
options$3.State((o) => o.searchResultOptions)
|
|
37883
37883
|
], SearchResultsBreadcrumbs.prototype, "searchResultOptions", void 0);
|
|
37884
37884
|
SearchResultsBreadcrumbs = __decorate([
|
|
37885
37885
|
Component({
|
|
@@ -38217,7 +38217,7 @@ const setDocumentTitle = (template, textToInsert = "") => {
|
|
|
38217
38217
|
|
|
38218
38218
|
const searchResult$1 = namespace("searchResult");
|
|
38219
38219
|
const params$2 = namespace("params");
|
|
38220
|
-
const options$
|
|
38220
|
+
const options$2 = namespace("options");
|
|
38221
38221
|
const tracking$2 = namespace("tracking");
|
|
38222
38222
|
let SearchResults = class SearchResults extends Vue$1 {
|
|
38223
38223
|
get productsOptions() {
|
|
@@ -38379,10 +38379,10 @@ __decorate([
|
|
|
38379
38379
|
params$2.Action("appendParams")
|
|
38380
38380
|
], SearchResults.prototype, "appendParams", void 0);
|
|
38381
38381
|
__decorate([
|
|
38382
|
-
options$
|
|
38382
|
+
options$2.Mutation("setSearchResultOptions")
|
|
38383
38383
|
], SearchResults.prototype, "setSearchResultOptions", void 0);
|
|
38384
38384
|
__decorate([
|
|
38385
|
-
options$
|
|
38385
|
+
options$2.Mutation("setInitialFilters")
|
|
38386
38386
|
], SearchResults.prototype, "setInitialFilters", void 0);
|
|
38387
38387
|
__decorate([
|
|
38388
38388
|
Watch("searchString")
|
|
@@ -38394,7 +38394,7 @@ __decorate([
|
|
|
38394
38394
|
searchResult$1.Action("setLoading")
|
|
38395
38395
|
], SearchResults.prototype, "setLoading", void 0);
|
|
38396
38396
|
__decorate([
|
|
38397
|
-
options$
|
|
38397
|
+
options$2.Getter("defaultSearchResultPageSize")
|
|
38398
38398
|
], SearchResults.prototype, "defaultSearchResultPageSize", void 0);
|
|
38399
38399
|
__decorate([
|
|
38400
38400
|
searchResult$1.Mutation("setScreenWidth")
|
|
@@ -38893,14 +38893,15 @@ __vue_render__$2._withStripped = true;
|
|
|
38893
38893
|
);
|
|
38894
38894
|
|
|
38895
38895
|
const params$1 = namespace("params");
|
|
38896
|
+
const options$1 = namespace("options");
|
|
38896
38897
|
let SearchContainer = class SearchContainer extends Vue$1 {
|
|
38897
38898
|
get fullSearchResultsOptions() {
|
|
38898
38899
|
const options = lodash.exports.cloneDeep(this.options.searchResults);
|
|
38899
|
-
return lodash.exports.merge(DEFAULT_OPTIONS_RESULTS, options);
|
|
38900
|
+
return lodash.exports.merge({}, DEFAULT_OPTIONS_RESULTS, options);
|
|
38900
38901
|
}
|
|
38901
38902
|
get fullSearchBoxOptions() {
|
|
38902
38903
|
const options = lodash.exports.cloneDeep(this.options.searchBox);
|
|
38903
|
-
return lodash.exports.merge(DEFAULT_SEARCH_BOX_OPTIONS, options);
|
|
38904
|
+
return lodash.exports.merge({}, DEFAULT_SEARCH_BOX_OPTIONS, options);
|
|
38904
38905
|
}
|
|
38905
38906
|
fetch() {
|
|
38906
38907
|
var _a, _b;
|
|
@@ -38912,6 +38913,11 @@ let SearchContainer = class SearchContainer extends Vue$1 {
|
|
|
38912
38913
|
innerClick() {
|
|
38913
38914
|
// do nothing
|
|
38914
38915
|
}
|
|
38916
|
+
reloadOptions() {
|
|
38917
|
+
setTimeout(() => {
|
|
38918
|
+
this.setSearchResultOptions({ options: this.fullSearchResultsOptions });
|
|
38919
|
+
});
|
|
38920
|
+
}
|
|
38915
38921
|
beforeDestroy() {
|
|
38916
38922
|
this.removeParams({ paramsToRemove: "all" });
|
|
38917
38923
|
}
|
|
@@ -38922,6 +38928,9 @@ __decorate([
|
|
|
38922
38928
|
__decorate([
|
|
38923
38929
|
params$1.Action("removeParams")
|
|
38924
38930
|
], SearchContainer.prototype, "removeParams", void 0);
|
|
38931
|
+
__decorate([
|
|
38932
|
+
options$1.Mutation("setSearchResultOptions")
|
|
38933
|
+
], SearchContainer.prototype, "setSearchResultOptions", void 0);
|
|
38925
38934
|
SearchContainer = __decorate([
|
|
38926
38935
|
Component({
|
|
38927
38936
|
name: "productList",
|
|
@@ -39083,6 +39092,10 @@ let SearchContainerEntry = class SearchContainerEntry extends Vue$1 {
|
|
|
39083
39092
|
var _a;
|
|
39084
39093
|
(_a = this.$refs.productList) === null || _a === void 0 ? void 0 : _a.fetch();
|
|
39085
39094
|
}
|
|
39095
|
+
reloadOptions() {
|
|
39096
|
+
var _a;
|
|
39097
|
+
(_a = this.$refs.productList) === null || _a === void 0 ? void 0 : _a.reloadOptions();
|
|
39098
|
+
}
|
|
39086
39099
|
beforeDestroy() {
|
|
39087
39100
|
var _a;
|
|
39088
39101
|
(_a = this.triggerElement) === null || _a === void 0 ? void 0 : _a.removeEventListener("focus", this.openSearchContainer);
|
|
@@ -40410,6 +40423,7 @@ const searchContainer = (options, mountOptions) => {
|
|
|
40410
40423
|
const existingInstance = app.searchContainer[options.trigger];
|
|
40411
40424
|
if (existingInstance) {
|
|
40412
40425
|
existingInstance.searchContainerOptions = options;
|
|
40426
|
+
existingInstance.reloadOptions();
|
|
40413
40427
|
if (mountOptions === null || mountOptions === void 0 ? void 0 : mountOptions.fetch) {
|
|
40414
40428
|
setTimeout(() => {
|
|
40415
40429
|
var _a;
|
|
@@ -7,9 +7,13 @@ export default class SearchContainer extends Vue {
|
|
|
7
7
|
removeParams: ({ paramsToRemove, }: {
|
|
8
8
|
paramsToRemove: string;
|
|
9
9
|
}) => void;
|
|
10
|
+
setSearchResultOptions: ({ options, }: {
|
|
11
|
+
options: SearchResultsOptions;
|
|
12
|
+
}) => void;
|
|
10
13
|
get fullSearchResultsOptions(): SearchResultsOptions;
|
|
11
14
|
get fullSearchBoxOptions(): SearchBoxOptions;
|
|
12
15
|
fetch(): void;
|
|
13
16
|
innerClick(): void;
|
|
17
|
+
reloadOptions(): void;
|
|
14
18
|
beforeDestroy(): void;
|
|
15
19
|
}
|
package/dist/es/index.min.js
CHANGED
|
@@ -12351,7 +12351,7 @@ const getPageUrl = (pathnameOverride) => {
|
|
|
12351
12351
|
|
|
12352
12352
|
const history$3 = namespace("history");
|
|
12353
12353
|
const tracking$5 = namespace("tracking");
|
|
12354
|
-
const options$
|
|
12354
|
+
const options$d = namespace("options");
|
|
12355
12355
|
let SearchBoxProduct = class SearchBoxProduct extends Vue$1 {
|
|
12356
12356
|
get link() {
|
|
12357
12357
|
var _a, _b;
|
|
@@ -12426,7 +12426,7 @@ __decorate([
|
|
|
12426
12426
|
Prop({ default: false })
|
|
12427
12427
|
], SearchBoxProduct.prototype, "highlighted", void 0);
|
|
12428
12428
|
__decorate([
|
|
12429
|
-
options$
|
|
12429
|
+
options$d.Getter("boxRoutingBehavior")
|
|
12430
12430
|
], SearchBoxProduct.prototype, "boxRoutingBehavior", void 0);
|
|
12431
12431
|
__decorate([
|
|
12432
12432
|
tracking$5.Action("track")
|
|
@@ -30895,7 +30895,7 @@ const defaultSuggestedValue = {
|
|
|
30895
30895
|
const history$1 = namespace("history");
|
|
30896
30896
|
const params$e = namespace("params");
|
|
30897
30897
|
const searchBox$2 = namespace("searchBox");
|
|
30898
|
-
const options$
|
|
30898
|
+
const options$c = namespace("options");
|
|
30899
30899
|
const tracking$4 = namespace("tracking");
|
|
30900
30900
|
let SearchBox = class SearchBox extends Vue$1 {
|
|
30901
30901
|
constructor() {
|
|
@@ -31147,7 +31147,7 @@ __decorate([
|
|
|
31147
31147
|
params$e.Action("setSearchResultsLink")
|
|
31148
31148
|
], SearchBox.prototype, "setSearchResultsLink", void 0);
|
|
31149
31149
|
__decorate([
|
|
31150
|
-
options$
|
|
31150
|
+
options$c.Mutation("setSearchBoxOptions")
|
|
31151
31151
|
], SearchBox.prototype, "setSearchBoxOptions", void 0);
|
|
31152
31152
|
__decorate([
|
|
31153
31153
|
params$e.Action("goToResults")
|
|
@@ -31777,7 +31777,7 @@ const toggleHierarchyParam = (params = [], param = "", removeAllLevels = false)
|
|
|
31777
31777
|
|
|
31778
31778
|
const searchResult$i = namespace("searchResult");
|
|
31779
31779
|
const params$d = namespace("params");
|
|
31780
|
-
const options$
|
|
31780
|
+
const options$b = namespace("options");
|
|
31781
31781
|
let CurrentFilters = class CurrentFilters extends Vue$1 {
|
|
31782
31782
|
constructor() {
|
|
31783
31783
|
super(...arguments);
|
|
@@ -31828,7 +31828,7 @@ __decorate([
|
|
|
31828
31828
|
searchResult$i.Getter("currentFilterCount")
|
|
31829
31829
|
], CurrentFilters.prototype, "currentFilterCount", void 0);
|
|
31830
31830
|
__decorate([
|
|
31831
|
-
options$
|
|
31831
|
+
options$b.Getter("initialFilters")
|
|
31832
31832
|
], CurrentFilters.prototype, "initialFilters", void 0);
|
|
31833
31833
|
__decorate([
|
|
31834
31834
|
params$d.Action("removeParams")
|
|
@@ -32202,7 +32202,7 @@ var require$$0 = /*@__PURE__*/getAugmentedNamespace(vue_runtime_esm);
|
|
|
32202
32202
|
|
|
32203
32203
|
var VueSlider = /*@__PURE__*/getDefaultExportFromCjs(vueSliderComponent_umd_min.exports);
|
|
32204
32204
|
|
|
32205
|
-
const options$
|
|
32205
|
+
const options$a = namespace("options");
|
|
32206
32206
|
let TermFacet = class TermFacet extends Vue$1 {
|
|
32207
32207
|
constructor() {
|
|
32208
32208
|
super(...arguments);
|
|
@@ -32359,7 +32359,7 @@ __decorate([
|
|
|
32359
32359
|
Prop({ default: () => ({}) })
|
|
32360
32360
|
], TermFacet.prototype, "currentFilters", void 0);
|
|
32361
32361
|
__decorate([
|
|
32362
|
-
options$
|
|
32362
|
+
options$a.State((s) => s.searchResultOptions)
|
|
32363
32363
|
], TermFacet.prototype, "searchResultOptions", void 0);
|
|
32364
32364
|
__decorate([
|
|
32365
32365
|
Watch("currentMinValue")
|
|
@@ -33450,7 +33450,7 @@ __vue_render__$J._withStripped = true;
|
|
|
33450
33450
|
undefined
|
|
33451
33451
|
);
|
|
33452
33452
|
|
|
33453
|
-
const options$
|
|
33453
|
+
const options$9 = namespace("options");
|
|
33454
33454
|
let CategoryFilter = class CategoryFilter extends Vue$1 {
|
|
33455
33455
|
constructor() {
|
|
33456
33456
|
super(...arguments);
|
|
@@ -33528,10 +33528,10 @@ __decorate([
|
|
|
33528
33528
|
Prop()
|
|
33529
33529
|
], CategoryFilter.prototype, "options", void 0);
|
|
33530
33530
|
__decorate([
|
|
33531
|
-
options$
|
|
33531
|
+
options$9.Getter("envOptions")
|
|
33532
33532
|
], CategoryFilter.prototype, "envOptions", void 0);
|
|
33533
33533
|
__decorate([
|
|
33534
|
-
options$
|
|
33534
|
+
options$9.State((o) => o.searchResultOptions)
|
|
33535
33535
|
], CategoryFilter.prototype, "searchResultOptions", void 0);
|
|
33536
33536
|
CategoryFilter = __decorate([
|
|
33537
33537
|
Component({
|
|
@@ -34598,7 +34598,7 @@ __vue_render__$y._withStripped = true;
|
|
|
34598
34598
|
undefined
|
|
34599
34599
|
);
|
|
34600
34600
|
|
|
34601
|
-
const options$
|
|
34601
|
+
const options$8 = namespace("options");
|
|
34602
34602
|
let SearchResultsProductTitle = class SearchResultsProductTitle extends Vue$1 {
|
|
34603
34603
|
get title() {
|
|
34604
34604
|
return this.item[this.options.key];
|
|
@@ -34627,7 +34627,7 @@ __decorate([
|
|
|
34627
34627
|
Prop({ default: "" })
|
|
34628
34628
|
], SearchResultsProductTitle.prototype, "link", void 0);
|
|
34629
34629
|
__decorate([
|
|
34630
|
-
options$
|
|
34630
|
+
options$8.State((o) => o.searchResultOptions)
|
|
34631
34631
|
], SearchResultsProductTitle.prototype, "searchResultOptions", void 0);
|
|
34632
34632
|
SearchResultsProductTitle = __decorate([
|
|
34633
34633
|
Component({
|
|
@@ -35441,7 +35441,7 @@ __vue_render__$p._withStripped = true;
|
|
|
35441
35441
|
const tracking$3 = namespace("tracking");
|
|
35442
35442
|
const params$a = namespace("params");
|
|
35443
35443
|
const searchResult$c = namespace("searchResult");
|
|
35444
|
-
const options$
|
|
35444
|
+
const options$7 = namespace("options");
|
|
35445
35445
|
let SearchResultsProductCard = class SearchResultsProductCard extends Vue$1 {
|
|
35446
35446
|
constructor() {
|
|
35447
35447
|
super(...arguments);
|
|
@@ -35549,10 +35549,10 @@ __decorate([
|
|
|
35549
35549
|
searchResult$c.State((state) => state.layout)
|
|
35550
35550
|
], SearchResultsProductCard.prototype, "layout", void 0);
|
|
35551
35551
|
__decorate([
|
|
35552
|
-
options$
|
|
35552
|
+
options$7.Getter("searchResultsRoutingBehavior")
|
|
35553
35553
|
], SearchResultsProductCard.prototype, "searchResultsRoutingBehavior", void 0);
|
|
35554
35554
|
__decorate([
|
|
35555
|
-
options$
|
|
35555
|
+
options$7.State((o) => o.searchResultOptions)
|
|
35556
35556
|
], SearchResultsProductCard.prototype, "searchResultOptions", void 0);
|
|
35557
35557
|
__decorate([
|
|
35558
35558
|
params$a.Getter("query")
|
|
@@ -35908,7 +35908,7 @@ const track = (queryKey, data = {}, options) => {
|
|
|
35908
35908
|
};
|
|
35909
35909
|
|
|
35910
35910
|
const params$9 = namespace("params");
|
|
35911
|
-
const options$
|
|
35911
|
+
const options$6 = namespace("options");
|
|
35912
35912
|
let AdditionalPanels$1 = class AdditionalPanels extends Vue$1 {
|
|
35913
35913
|
constructor() {
|
|
35914
35914
|
super(...arguments);
|
|
@@ -35984,7 +35984,7 @@ __decorate([
|
|
|
35984
35984
|
params$9.Getter("query")
|
|
35985
35985
|
], AdditionalPanels$1.prototype, "query", void 0);
|
|
35986
35986
|
__decorate([
|
|
35987
|
-
options$
|
|
35987
|
+
options$6.State((o) => o.searchResultOptions)
|
|
35988
35988
|
], AdditionalPanels$1.prototype, "searchResultOptions", void 0);
|
|
35989
35989
|
__decorate([
|
|
35990
35990
|
Watch("query")
|
|
@@ -36666,7 +36666,7 @@ __vue_render__$j._withStripped = true;
|
|
|
36666
36666
|
);
|
|
36667
36667
|
|
|
36668
36668
|
const searchResult$a = namespace("searchResult");
|
|
36669
|
-
const options$
|
|
36669
|
+
const options$5 = namespace("options");
|
|
36670
36670
|
let SearchResultsLayoutSelection = class SearchResultsLayoutSelection extends Vue$1 {
|
|
36671
36671
|
handleLayoutChange(layout) {
|
|
36672
36672
|
this.setLayout(layout);
|
|
@@ -36676,7 +36676,7 @@ __decorate([
|
|
|
36676
36676
|
searchResult$a.State((state) => state.layout)
|
|
36677
36677
|
], SearchResultsLayoutSelection.prototype, "layout", void 0);
|
|
36678
36678
|
__decorate([
|
|
36679
|
-
options$
|
|
36679
|
+
options$5.Getter("classMap")
|
|
36680
36680
|
], SearchResultsLayoutSelection.prototype, "classMap", void 0);
|
|
36681
36681
|
__decorate([
|
|
36682
36682
|
searchResult$a.Action("setLayout")
|
|
@@ -36943,7 +36943,7 @@ __vue_render__$g._withStripped = true;
|
|
|
36943
36943
|
|
|
36944
36944
|
const searchResult$7 = namespace("searchResult");
|
|
36945
36945
|
const params$5 = namespace("params");
|
|
36946
|
-
const options$
|
|
36946
|
+
const options$4 = namespace("options");
|
|
36947
36947
|
let SearchResultsToolbar = class SearchResultsToolbar extends Vue$1 {
|
|
36948
36948
|
constructor() {
|
|
36949
36949
|
super(...arguments);
|
|
@@ -37050,7 +37050,7 @@ __decorate([
|
|
|
37050
37050
|
searchResult$7.State((state) => state.searchResult)
|
|
37051
37051
|
], SearchResultsToolbar.prototype, "searchResult", void 0);
|
|
37052
37052
|
__decorate([
|
|
37053
|
-
options$
|
|
37053
|
+
options$4.Getter("currentResolutionPageSizes")
|
|
37054
37054
|
], SearchResultsToolbar.prototype, "currentResolutionPageSizes", void 0);
|
|
37055
37055
|
__decorate([
|
|
37056
37056
|
params$5.Action("removeAllFilters")
|
|
@@ -37856,7 +37856,7 @@ __vue_render__$a._withStripped = true;
|
|
|
37856
37856
|
);
|
|
37857
37857
|
|
|
37858
37858
|
const searchResult$3 = namespace("searchResult");
|
|
37859
|
-
const options$
|
|
37859
|
+
const options$3 = namespace("options");
|
|
37860
37860
|
let SearchResultsBreadcrumbs = class SearchResultsBreadcrumbs extends Vue$1 {
|
|
37861
37861
|
get hasEventRouting() {
|
|
37862
37862
|
return this.searchResultOptions.routingBehavior === "event";
|
|
@@ -37875,7 +37875,7 @@ __decorate([
|
|
|
37875
37875
|
searchResult$3.Getter("currentQueryText")
|
|
37876
37876
|
], SearchResultsBreadcrumbs.prototype, "currentQueryText", void 0);
|
|
37877
37877
|
__decorate([
|
|
37878
|
-
options$
|
|
37878
|
+
options$3.State((o) => o.searchResultOptions)
|
|
37879
37879
|
], SearchResultsBreadcrumbs.prototype, "searchResultOptions", void 0);
|
|
37880
37880
|
SearchResultsBreadcrumbs = __decorate([
|
|
37881
37881
|
Component({
|
|
@@ -38213,7 +38213,7 @@ const setDocumentTitle = (template, textToInsert = "") => {
|
|
|
38213
38213
|
|
|
38214
38214
|
const searchResult$1 = namespace("searchResult");
|
|
38215
38215
|
const params$2 = namespace("params");
|
|
38216
|
-
const options$
|
|
38216
|
+
const options$2 = namespace("options");
|
|
38217
38217
|
const tracking$2 = namespace("tracking");
|
|
38218
38218
|
let SearchResults = class SearchResults extends Vue$1 {
|
|
38219
38219
|
get productsOptions() {
|
|
@@ -38375,10 +38375,10 @@ __decorate([
|
|
|
38375
38375
|
params$2.Action("appendParams")
|
|
38376
38376
|
], SearchResults.prototype, "appendParams", void 0);
|
|
38377
38377
|
__decorate([
|
|
38378
|
-
options$
|
|
38378
|
+
options$2.Mutation("setSearchResultOptions")
|
|
38379
38379
|
], SearchResults.prototype, "setSearchResultOptions", void 0);
|
|
38380
38380
|
__decorate([
|
|
38381
|
-
options$
|
|
38381
|
+
options$2.Mutation("setInitialFilters")
|
|
38382
38382
|
], SearchResults.prototype, "setInitialFilters", void 0);
|
|
38383
38383
|
__decorate([
|
|
38384
38384
|
Watch("searchString")
|
|
@@ -38390,7 +38390,7 @@ __decorate([
|
|
|
38390
38390
|
searchResult$1.Action("setLoading")
|
|
38391
38391
|
], SearchResults.prototype, "setLoading", void 0);
|
|
38392
38392
|
__decorate([
|
|
38393
|
-
options$
|
|
38393
|
+
options$2.Getter("defaultSearchResultPageSize")
|
|
38394
38394
|
], SearchResults.prototype, "defaultSearchResultPageSize", void 0);
|
|
38395
38395
|
__decorate([
|
|
38396
38396
|
searchResult$1.Mutation("setScreenWidth")
|
|
@@ -38889,14 +38889,15 @@ __vue_render__$2._withStripped = true;
|
|
|
38889
38889
|
);
|
|
38890
38890
|
|
|
38891
38891
|
const params$1 = namespace("params");
|
|
38892
|
+
const options$1 = namespace("options");
|
|
38892
38893
|
let SearchContainer = class SearchContainer extends Vue$1 {
|
|
38893
38894
|
get fullSearchResultsOptions() {
|
|
38894
38895
|
const options = lodash.exports.cloneDeep(this.options.searchResults);
|
|
38895
|
-
return lodash.exports.merge(DEFAULT_OPTIONS_RESULTS, options);
|
|
38896
|
+
return lodash.exports.merge({}, DEFAULT_OPTIONS_RESULTS, options);
|
|
38896
38897
|
}
|
|
38897
38898
|
get fullSearchBoxOptions() {
|
|
38898
38899
|
const options = lodash.exports.cloneDeep(this.options.searchBox);
|
|
38899
|
-
return lodash.exports.merge(DEFAULT_SEARCH_BOX_OPTIONS, options);
|
|
38900
|
+
return lodash.exports.merge({}, DEFAULT_SEARCH_BOX_OPTIONS, options);
|
|
38900
38901
|
}
|
|
38901
38902
|
fetch() {
|
|
38902
38903
|
var _a, _b;
|
|
@@ -38908,6 +38909,11 @@ let SearchContainer = class SearchContainer extends Vue$1 {
|
|
|
38908
38909
|
innerClick() {
|
|
38909
38910
|
// do nothing
|
|
38910
38911
|
}
|
|
38912
|
+
reloadOptions() {
|
|
38913
|
+
setTimeout(() => {
|
|
38914
|
+
this.setSearchResultOptions({ options: this.fullSearchResultsOptions });
|
|
38915
|
+
});
|
|
38916
|
+
}
|
|
38911
38917
|
beforeDestroy() {
|
|
38912
38918
|
this.removeParams({ paramsToRemove: "all" });
|
|
38913
38919
|
}
|
|
@@ -38918,6 +38924,9 @@ __decorate([
|
|
|
38918
38924
|
__decorate([
|
|
38919
38925
|
params$1.Action("removeParams")
|
|
38920
38926
|
], SearchContainer.prototype, "removeParams", void 0);
|
|
38927
|
+
__decorate([
|
|
38928
|
+
options$1.Mutation("setSearchResultOptions")
|
|
38929
|
+
], SearchContainer.prototype, "setSearchResultOptions", void 0);
|
|
38921
38930
|
SearchContainer = __decorate([
|
|
38922
38931
|
Component({
|
|
38923
38932
|
name: "productList",
|
|
@@ -39079,6 +39088,10 @@ let SearchContainerEntry = class SearchContainerEntry extends Vue$1 {
|
|
|
39079
39088
|
var _a;
|
|
39080
39089
|
(_a = this.$refs.productList) === null || _a === void 0 ? void 0 : _a.fetch();
|
|
39081
39090
|
}
|
|
39091
|
+
reloadOptions() {
|
|
39092
|
+
var _a;
|
|
39093
|
+
(_a = this.$refs.productList) === null || _a === void 0 ? void 0 : _a.reloadOptions();
|
|
39094
|
+
}
|
|
39082
39095
|
beforeDestroy() {
|
|
39083
39096
|
var _a;
|
|
39084
39097
|
(_a = this.triggerElement) === null || _a === void 0 ? void 0 : _a.removeEventListener("focus", this.openSearchContainer);
|
|
@@ -40406,6 +40419,7 @@ const searchContainer = (options, mountOptions) => {
|
|
|
40406
40419
|
const existingInstance = app.searchContainer[options.trigger];
|
|
40407
40420
|
if (existingInstance) {
|
|
40408
40421
|
existingInstance.searchContainerOptions = options;
|
|
40422
|
+
existingInstance.reloadOptions();
|
|
40409
40423
|
if (mountOptions === null || mountOptions === void 0 ? void 0 : mountOptions.fetch) {
|
|
40410
40424
|
setTimeout(() => {
|
|
40411
40425
|
var _a;
|
|
@@ -7,9 +7,13 @@ export default class SearchContainer extends Vue {
|
|
|
7
7
|
removeParams: ({ paramsToRemove, }: {
|
|
8
8
|
paramsToRemove: string;
|
|
9
9
|
}) => void;
|
|
10
|
+
setSearchResultOptions: ({ options, }: {
|
|
11
|
+
options: SearchResultsOptions;
|
|
12
|
+
}) => void;
|
|
10
13
|
get fullSearchResultsOptions(): SearchResultsOptions;
|
|
11
14
|
get fullSearchBoxOptions(): SearchBoxOptions;
|
|
12
15
|
fetch(): void;
|
|
13
16
|
innerClick(): void;
|
|
17
|
+
reloadOptions(): void;
|
|
14
18
|
beforeDestroy(): void;
|
|
15
19
|
}
|