@getlupa/client 0.6.0-alpha-12 → 0.6.0-alpha-13
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/components/search-results/products/SearchResultsToolbar.vue.d.ts +1 -0
- package/dist/cjs/index.min.js +75 -31
- package/dist/cjs/store/modules/options.d.ts +1 -0
- package/dist/cjs/store/modules/searchResult.d.ts +2 -0
- package/dist/cjs/types/General.d.ts +1 -0
- package/dist/cjs/types/search-results/SearchResultsOptions.d.ts +9 -1
- package/dist/es/components/search-results/products/SearchResultsToolbar.vue.d.ts +1 -0
- package/dist/es/index.min.js +75 -31
- package/dist/es/store/modules/options.d.ts +1 -0
- package/dist/es/store/modules/searchResult.d.ts +2 -0
- package/dist/es/types/General.d.ts +1 -0
- package/dist/es/types/search-results/SearchResultsOptions.d.ts +9 -1
- package/dist/iife/components/search-results/products/SearchResultsToolbar.vue.d.ts +1 -0
- package/dist/iife/index.min.js +1 -1
- package/dist/iife/store/modules/options.d.ts +1 -0
- package/dist/iife/store/modules/searchResult.d.ts +2 -0
- package/dist/iife/types/General.d.ts +1 -0
- package/dist/iife/types/search-results/SearchResultsOptions.d.ts +9 -1
- package/package.json +1 -1
|
@@ -21,6 +21,7 @@ export default class SearchResultsToolbar extends Vue {
|
|
|
21
21
|
get displayPageSelect(): boolean;
|
|
22
22
|
get searchSummaryLabel(): string;
|
|
23
23
|
get showMobileFilterCount(): boolean;
|
|
24
|
+
currentResolutionPageSizes: number[];
|
|
24
25
|
removeAllFilters: () => {
|
|
25
26
|
params: QueryParams;
|
|
26
27
|
};
|
package/dist/cjs/index.min.js
CHANGED
|
@@ -22147,7 +22147,7 @@ var getPageUrl = function getPageUrl(pathnameOverride) {
|
|
|
22147
22147
|
|
|
22148
22148
|
var history$3 = namespace("history");
|
|
22149
22149
|
var tracking$5 = namespace("tracking");
|
|
22150
|
-
var options$
|
|
22150
|
+
var options$c = namespace("options");
|
|
22151
22151
|
|
|
22152
22152
|
var SearchBoxProduct = /*#__PURE__*/function (_Vue) {
|
|
22153
22153
|
_inherits(SearchBoxProduct, _Vue);
|
|
@@ -22245,7 +22245,7 @@ __decorate([Prop({
|
|
|
22245
22245
|
default: false
|
|
22246
22246
|
})], SearchBoxProduct.prototype, "highlighted", void 0);
|
|
22247
22247
|
|
|
22248
|
-
__decorate([options$
|
|
22248
|
+
__decorate([options$c.Getter("boxRoutingBehavior")], SearchBoxProduct.prototype, "boxRoutingBehavior", void 0);
|
|
22249
22249
|
|
|
22250
22250
|
__decorate([tracking$5.Action("track")], SearchBoxProduct.prototype, "trackClick", void 0);
|
|
22251
22251
|
|
|
@@ -23676,7 +23676,7 @@ var defaultSuggestedValue = {
|
|
|
23676
23676
|
var history$1 = namespace("history");
|
|
23677
23677
|
var params$d = namespace("params");
|
|
23678
23678
|
var searchBox$2 = namespace("searchBox");
|
|
23679
|
-
var options$
|
|
23679
|
+
var options$b = namespace("options");
|
|
23680
23680
|
var tracking$4 = namespace("tracking");
|
|
23681
23681
|
|
|
23682
23682
|
var SearchBox = /*#__PURE__*/function (_Vue) {
|
|
@@ -23961,7 +23961,7 @@ __decorate([tracking$4.Action("track")], SearchBox.prototype, "trackClick", void
|
|
|
23961
23961
|
|
|
23962
23962
|
__decorate([params$d.Action("setSearchResultsLink")], SearchBox.prototype, "setSearchResultsLink", void 0);
|
|
23963
23963
|
|
|
23964
|
-
__decorate([options$
|
|
23964
|
+
__decorate([options$b.Mutation("setSearchBoxOptions")], SearchBox.prototype, "setSearchBoxOptions", void 0);
|
|
23965
23965
|
|
|
23966
23966
|
__decorate([params$d.Action("goToResults")], SearchBox.prototype, "goToResults", void 0);
|
|
23967
23967
|
|
|
@@ -25611,7 +25611,7 @@ var toggleHierarchyParam = function toggleHierarchyParam() {
|
|
|
25611
25611
|
|
|
25612
25612
|
var searchResult$h = namespace("searchResult");
|
|
25613
25613
|
var params$c = namespace("params");
|
|
25614
|
-
var options$
|
|
25614
|
+
var options$a = namespace("options");
|
|
25615
25615
|
|
|
25616
25616
|
var CurrentFilters = /*#__PURE__*/function (_Vue) {
|
|
25617
25617
|
_inherits(CurrentFilters, _Vue);
|
|
@@ -25688,7 +25688,7 @@ __decorate([searchResult$h.Getter("displayFilters")], CurrentFilters.prototype,
|
|
|
25688
25688
|
|
|
25689
25689
|
__decorate([searchResult$h.Getter("currentFilterCount")], CurrentFilters.prototype, "currentFilterCount", void 0);
|
|
25690
25690
|
|
|
25691
|
-
__decorate([options$
|
|
25691
|
+
__decorate([options$a.Getter("initialFilters")], CurrentFilters.prototype, "initialFilters", void 0);
|
|
25692
25692
|
|
|
25693
25693
|
__decorate([params$c.Action("removeParams")], CurrentFilters.prototype, "removeParams", void 0);
|
|
25694
25694
|
|
|
@@ -28623,7 +28623,7 @@ var _typeof = _typeof$2.exports.default;
|
|
|
28623
28623
|
|
|
28624
28624
|
var VueSlider = /*@__PURE__*/getDefaultExportFromCjs(vueSliderComponent_umd_min.exports);
|
|
28625
28625
|
|
|
28626
|
-
var options$
|
|
28626
|
+
var options$9 = namespace("options");
|
|
28627
28627
|
|
|
28628
28628
|
var TermFacet = /*#__PURE__*/function (_Vue) {
|
|
28629
28629
|
_inherits(TermFacet, _Vue);
|
|
@@ -28830,7 +28830,7 @@ __decorate([Prop({
|
|
|
28830
28830
|
}
|
|
28831
28831
|
})], TermFacet.prototype, "currentFilters", void 0);
|
|
28832
28832
|
|
|
28833
|
-
__decorate([options$
|
|
28833
|
+
__decorate([options$9.State(function (s) {
|
|
28834
28834
|
return s.searchResultOptions;
|
|
28835
28835
|
})], TermFacet.prototype, "searchResultOptions", void 0);
|
|
28836
28836
|
|
|
@@ -29946,7 +29946,7 @@ var __vue_component__$F = /*#__PURE__*/normalizeComponent({
|
|
|
29946
29946
|
staticRenderFns: __vue_staticRenderFns__$F
|
|
29947
29947
|
}, __vue_inject_styles__$F, __vue_script__$F, __vue_scope_id__$F, __vue_is_functional_template__$F, __vue_module_identifier__$F, false, undefined, undefined, undefined);
|
|
29948
29948
|
|
|
29949
|
-
var options$
|
|
29949
|
+
var options$8 = namespace("options");
|
|
29950
29950
|
|
|
29951
29951
|
var CategoryFilter = /*#__PURE__*/function (_Vue) {
|
|
29952
29952
|
_inherits(CategoryFilter, _Vue);
|
|
@@ -30082,9 +30082,9 @@ var CategoryFilter = /*#__PURE__*/function (_Vue) {
|
|
|
30082
30082
|
|
|
30083
30083
|
__decorate([Prop()], CategoryFilter.prototype, "options", void 0);
|
|
30084
30084
|
|
|
30085
|
-
__decorate([options$
|
|
30085
|
+
__decorate([options$8.Getter("envOptions")], CategoryFilter.prototype, "envOptions", void 0);
|
|
30086
30086
|
|
|
30087
|
-
__decorate([options$
|
|
30087
|
+
__decorate([options$8.State(function (o) {
|
|
30088
30088
|
return o.searchResultOptions;
|
|
30089
30089
|
})], CategoryFilter.prototype, "searchResultOptions", void 0);
|
|
30090
30090
|
|
|
@@ -31073,7 +31073,7 @@ var __vue_component__$w = /*#__PURE__*/normalizeComponent({
|
|
|
31073
31073
|
staticRenderFns: __vue_staticRenderFns__$w
|
|
31074
31074
|
}, __vue_inject_styles__$w, __vue_script__$w, __vue_scope_id__$w, __vue_is_functional_template__$w, __vue_module_identifier__$w, false, undefined, undefined, undefined);
|
|
31075
31075
|
|
|
31076
|
-
var options$
|
|
31076
|
+
var options$7 = namespace("options");
|
|
31077
31077
|
|
|
31078
31078
|
var SearchResultsProductTitle = /*#__PURE__*/function (_Vue) {
|
|
31079
31079
|
_inherits(SearchResultsProductTitle, _Vue);
|
|
@@ -31126,7 +31126,7 @@ __decorate([Prop({
|
|
|
31126
31126
|
default: ""
|
|
31127
31127
|
})], SearchResultsProductTitle.prototype, "link", void 0);
|
|
31128
31128
|
|
|
31129
|
-
__decorate([options$
|
|
31129
|
+
__decorate([options$7.State(function (o) {
|
|
31130
31130
|
return o.searchResultOptions;
|
|
31131
31131
|
})], SearchResultsProductTitle.prototype, "searchResultOptions", void 0);
|
|
31132
31132
|
|
|
@@ -32037,7 +32037,7 @@ var __vue_component__$n = /*#__PURE__*/normalizeComponent({
|
|
|
32037
32037
|
var tracking$3 = namespace("tracking");
|
|
32038
32038
|
var params$9 = namespace("params");
|
|
32039
32039
|
var searchResult$c = namespace("searchResult");
|
|
32040
|
-
var options$
|
|
32040
|
+
var options$6 = namespace("options");
|
|
32041
32041
|
|
|
32042
32042
|
var SearchResultsProductCard = /*#__PURE__*/function (_Vue) {
|
|
32043
32043
|
_inherits(SearchResultsProductCard, _Vue);
|
|
@@ -32210,7 +32210,7 @@ __decorate([searchResult$c.State(function (state) {
|
|
|
32210
32210
|
return state.layout;
|
|
32211
32211
|
})], SearchResultsProductCard.prototype, "layout", void 0);
|
|
32212
32212
|
|
|
32213
|
-
__decorate([options$
|
|
32213
|
+
__decorate([options$6.Getter("searchResultsRoutingBehavior")], SearchResultsProductCard.prototype, "searchResultsRoutingBehavior", void 0);
|
|
32214
32214
|
|
|
32215
32215
|
__decorate([params$9.Getter("query")], SearchResultsProductCard.prototype, "query", void 0);
|
|
32216
32216
|
|
|
@@ -32515,7 +32515,7 @@ var track = function track(queryKey) {
|
|
|
32515
32515
|
};
|
|
32516
32516
|
|
|
32517
32517
|
var params$8 = namespace("params");
|
|
32518
|
-
var options$
|
|
32518
|
+
var options$5 = namespace("options");
|
|
32519
32519
|
|
|
32520
32520
|
var AdditionalPanels$1 = /*#__PURE__*/function (_Vue) {
|
|
32521
32521
|
_inherits(AdditionalPanels, _Vue);
|
|
@@ -32630,7 +32630,7 @@ __decorate([Prop({
|
|
|
32630
32630
|
|
|
32631
32631
|
__decorate([params$8.Getter("query")], AdditionalPanels$1.prototype, "query", void 0);
|
|
32632
32632
|
|
|
32633
|
-
__decorate([options$
|
|
32633
|
+
__decorate([options$5.State(function (o) {
|
|
32634
32634
|
return o.searchResultOptions;
|
|
32635
32635
|
})], AdditionalPanels$1.prototype, "searchResultOptions", void 0);
|
|
32636
32636
|
|
|
@@ -33315,7 +33315,7 @@ var __vue_component__$h = /*#__PURE__*/normalizeComponent({
|
|
|
33315
33315
|
}, __vue_inject_styles__$h, __vue_script__$h, __vue_scope_id__$h, __vue_is_functional_template__$h, __vue_module_identifier__$h, false, undefined, undefined, undefined);
|
|
33316
33316
|
|
|
33317
33317
|
var searchResult$a = namespace("searchResult");
|
|
33318
|
-
var options$
|
|
33318
|
+
var options$4 = namespace("options");
|
|
33319
33319
|
|
|
33320
33320
|
var SearchResultsLayoutSelection = /*#__PURE__*/function (_Vue) {
|
|
33321
33321
|
_inherits(SearchResultsLayoutSelection, _Vue);
|
|
@@ -33342,7 +33342,7 @@ __decorate([searchResult$a.State(function (state) {
|
|
|
33342
33342
|
return state.layout;
|
|
33343
33343
|
})], SearchResultsLayoutSelection.prototype, "layout", void 0);
|
|
33344
33344
|
|
|
33345
|
-
__decorate([options$
|
|
33345
|
+
__decorate([options$4.Getter("classMap")], SearchResultsLayoutSelection.prototype, "classMap", void 0);
|
|
33346
33346
|
|
|
33347
33347
|
__decorate([searchResult$a.Action("setLayout")], SearchResultsLayoutSelection.prototype, "setLayout", void 0);
|
|
33348
33348
|
|
|
@@ -33596,6 +33596,7 @@ var __vue_component__$e = /*#__PURE__*/normalizeComponent({
|
|
|
33596
33596
|
|
|
33597
33597
|
var searchResult$7 = namespace("searchResult");
|
|
33598
33598
|
var params$4 = namespace("params");
|
|
33599
|
+
var options$3 = namespace("options");
|
|
33599
33600
|
|
|
33600
33601
|
var SearchResultsToolbar = /*#__PURE__*/function (_Vue) {
|
|
33601
33602
|
_inherits(SearchResultsToolbar, _Vue);
|
|
@@ -33672,11 +33673,10 @@ var SearchResultsToolbar = /*#__PURE__*/function (_Vue) {
|
|
|
33672
33673
|
}, {
|
|
33673
33674
|
key: "paginationOptions",
|
|
33674
33675
|
get: function get() {
|
|
33675
|
-
var pageSize = this.options.pagination.sizeSelection;
|
|
33676
33676
|
var pageSelect = this.options.pagination.pageSelection;
|
|
33677
|
-
|
|
33677
|
+
return {
|
|
33678
33678
|
pageSize: {
|
|
33679
|
-
sizes:
|
|
33679
|
+
sizes: this.currentResolutionPageSizes,
|
|
33680
33680
|
selectedSize: this.limit
|
|
33681
33681
|
},
|
|
33682
33682
|
pageSelect: {
|
|
@@ -33687,7 +33687,6 @@ var SearchResultsToolbar = /*#__PURE__*/function (_Vue) {
|
|
|
33687
33687
|
},
|
|
33688
33688
|
labels: this.options.labels
|
|
33689
33689
|
};
|
|
33690
|
-
return r;
|
|
33691
33690
|
}
|
|
33692
33691
|
}, {
|
|
33693
33692
|
key: "displayPageSelect",
|
|
@@ -33736,6 +33735,8 @@ __decorate([searchResult$7.State(function (state) {
|
|
|
33736
33735
|
return state.searchResult;
|
|
33737
33736
|
})], SearchResultsToolbar.prototype, "searchResult", void 0);
|
|
33738
33737
|
|
|
33738
|
+
__decorate([options$3.Getter("currentResolutionPageSizes")], SearchResultsToolbar.prototype, "currentResolutionPageSizes", void 0);
|
|
33739
|
+
|
|
33739
33740
|
__decorate([params$4.Action("removeAllFilters")], SearchResultsToolbar.prototype, "removeAllFilters", void 0);
|
|
33740
33741
|
|
|
33741
33742
|
SearchResultsToolbar = __decorate([Component({
|
|
@@ -34827,13 +34828,11 @@ var SearchResults = /*#__PURE__*/function (_Vue) {
|
|
|
34827
34828
|
}, {
|
|
34828
34829
|
key: "handleMounted",
|
|
34829
34830
|
value: function handleMounted() {
|
|
34830
|
-
var _a, _b, _c;
|
|
34831
|
-
|
|
34832
34831
|
this.handleResize();
|
|
34833
34832
|
var params = new URLSearchParams(window.location.search);
|
|
34834
34833
|
this.handleUrlChange(params);
|
|
34835
34834
|
this.addParams(parseParams(params));
|
|
34836
|
-
this.setDefaultLimit(
|
|
34835
|
+
this.setDefaultLimit(this.defaultSearchResultPageSize);
|
|
34837
34836
|
}
|
|
34838
34837
|
}, {
|
|
34839
34838
|
key: "handleParamsChange",
|
|
@@ -36430,8 +36429,6 @@ var setDocumentTitle = function setDocumentTitle(template) {
|
|
|
36430
36429
|
document.title = addParamsToLabel(template, textToInsert);
|
|
36431
36430
|
};
|
|
36432
36431
|
|
|
36433
|
-
var MOBILE_WIDTH = 767;
|
|
36434
|
-
|
|
36435
36432
|
var SearchResultModule = /*#__PURE__*/function (_VuexModule) {
|
|
36436
36433
|
_inherits(SearchResultModule, _VuexModule);
|
|
36437
36434
|
|
|
@@ -36528,7 +36525,24 @@ var SearchResultModule = /*#__PURE__*/function (_VuexModule) {
|
|
|
36528
36525
|
}, {
|
|
36529
36526
|
key: "isMobileWidth",
|
|
36530
36527
|
get: function get() {
|
|
36531
|
-
return this.
|
|
36528
|
+
return this.currentScreenWidth === "sm" || this.currentScreenWidth === "xs";
|
|
36529
|
+
}
|
|
36530
|
+
}, {
|
|
36531
|
+
key: "currentScreenWidth",
|
|
36532
|
+
get: function get() {
|
|
36533
|
+
var width = this.screenWidth;
|
|
36534
|
+
|
|
36535
|
+
if (width <= S_MIN_WIDTH) {
|
|
36536
|
+
return "xs";
|
|
36537
|
+
} else if (width > S_MIN_WIDTH && width <= MD_MIN_WIDTH) {
|
|
36538
|
+
return "sm";
|
|
36539
|
+
} else if (width > MD_MIN_WIDTH && width <= L_MIN_WIDTH) {
|
|
36540
|
+
return "md";
|
|
36541
|
+
} else if (width > L_MIN_WIDTH && width <= XL_MIN_WIDTH) {
|
|
36542
|
+
return "l";
|
|
36543
|
+
} else {
|
|
36544
|
+
return "xl";
|
|
36545
|
+
}
|
|
36532
36546
|
}
|
|
36533
36547
|
}, {
|
|
36534
36548
|
key: "setSidebarVisibility",
|
|
@@ -36993,9 +37007,39 @@ var OptionsModule = /*#__PURE__*/function (_VuexModule) {
|
|
|
36993
37007
|
}, {
|
|
36994
37008
|
key: "defaultSearchResultPageSize",
|
|
36995
37009
|
get: function get() {
|
|
36996
|
-
var _a, _b
|
|
37010
|
+
var _a, _b;
|
|
36997
37011
|
|
|
36998
|
-
return (
|
|
37012
|
+
return (_b = (_a = this.currentResolutionPageSizes) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : DEFAULT_PAGE_SIZE;
|
|
37013
|
+
}
|
|
37014
|
+
}, {
|
|
37015
|
+
key: "currentResolutionPageSizes",
|
|
37016
|
+
get: function get() {
|
|
37017
|
+
var _a, _b, _c;
|
|
37018
|
+
|
|
37019
|
+
var pageSizes = (_c = (_b = (_a = this.searchResultOptions) === null || _a === void 0 ? void 0 : _a.pagination) === null || _b === void 0 ? void 0 : _b.sizeSelection) === null || _c === void 0 ? void 0 : _c.sizes;
|
|
37020
|
+
|
|
37021
|
+
if (Array.isArray(pageSizes)) {
|
|
37022
|
+
return pageSizes;
|
|
37023
|
+
}
|
|
37024
|
+
|
|
37025
|
+
var screenSize = this.context.rootGetters["searchResult/currentScreenWidth"];
|
|
37026
|
+
|
|
37027
|
+
switch (screenSize) {
|
|
37028
|
+
case "xs":
|
|
37029
|
+
return pageSizes.xs;
|
|
37030
|
+
|
|
37031
|
+
case "sm":
|
|
37032
|
+
return pageSizes.sm;
|
|
37033
|
+
|
|
37034
|
+
case "md":
|
|
37035
|
+
return pageSizes.md;
|
|
37036
|
+
|
|
37037
|
+
case "l":
|
|
37038
|
+
return pageSizes.l;
|
|
37039
|
+
|
|
37040
|
+
case "xl":
|
|
37041
|
+
return pageSizes.xl;
|
|
37042
|
+
}
|
|
36999
37043
|
}
|
|
37000
37044
|
}, {
|
|
37001
37045
|
key: "setSearchBoxOptions",
|
|
@@ -13,6 +13,7 @@ export default class OptionsModule extends VuexModule {
|
|
|
13
13
|
get boxRoutingBehavior(): RoutingBehavior;
|
|
14
14
|
get searchResultsRoutingBehavior(): RoutingBehavior;
|
|
15
15
|
get defaultSearchResultPageSize(): number;
|
|
16
|
+
get currentResolutionPageSizes(): number[];
|
|
16
17
|
setSearchBoxOptions({ options }: {
|
|
17
18
|
options: SearchBoxOptions;
|
|
18
19
|
}): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ScreenSize } from "@/types/General";
|
|
1
2
|
import { LabeledFilter } from "@/types/search-results/Filters";
|
|
2
3
|
import { ResultsLayout } from "@/types/search-results/ResultsLayout";
|
|
3
4
|
import { ProductGrid } from "@/types/search-results/SearchResultsOptions";
|
|
@@ -23,6 +24,7 @@ export default class SearchResultModule extends VuexModule {
|
|
|
23
24
|
get hasAnyFilter(): boolean;
|
|
24
25
|
get itemRange(): number[];
|
|
25
26
|
get isMobileWidth(): boolean;
|
|
27
|
+
get currentScreenWidth(): ScreenSize;
|
|
26
28
|
setSidebarVisibility({ visible }: {
|
|
27
29
|
visible: boolean;
|
|
28
30
|
}): void;
|
|
@@ -70,9 +70,17 @@ export declare type SearchResultsPaginationLabels = {
|
|
|
70
70
|
pageSize: string;
|
|
71
71
|
showMore: string;
|
|
72
72
|
};
|
|
73
|
+
export declare type ResponsiveSearchResultPageSizes = {
|
|
74
|
+
xs: number[];
|
|
75
|
+
sm: number[];
|
|
76
|
+
md: number[];
|
|
77
|
+
l: number[];
|
|
78
|
+
xl: number[];
|
|
79
|
+
};
|
|
80
|
+
export declare type SearchResultPageSizes = number[] | ResponsiveSearchResultPageSizes;
|
|
73
81
|
export declare type SearchResultsPagination = {
|
|
74
82
|
sizeSelection: {
|
|
75
|
-
sizes:
|
|
83
|
+
sizes: SearchResultPageSizes;
|
|
76
84
|
position: SearchResultsPaginationPosition;
|
|
77
85
|
};
|
|
78
86
|
pageSelection: {
|
|
@@ -21,6 +21,7 @@ export default class SearchResultsToolbar extends Vue {
|
|
|
21
21
|
get displayPageSelect(): boolean;
|
|
22
22
|
get searchSummaryLabel(): string;
|
|
23
23
|
get showMobileFilterCount(): boolean;
|
|
24
|
+
currentResolutionPageSizes: number[];
|
|
24
25
|
removeAllFilters: () => {
|
|
25
26
|
params: QueryParams;
|
|
26
27
|
};
|
package/dist/es/index.min.js
CHANGED
|
@@ -22143,7 +22143,7 @@ var getPageUrl = function getPageUrl(pathnameOverride) {
|
|
|
22143
22143
|
|
|
22144
22144
|
var history$3 = namespace("history");
|
|
22145
22145
|
var tracking$5 = namespace("tracking");
|
|
22146
|
-
var options$
|
|
22146
|
+
var options$c = namespace("options");
|
|
22147
22147
|
|
|
22148
22148
|
var SearchBoxProduct = /*#__PURE__*/function (_Vue) {
|
|
22149
22149
|
_inherits(SearchBoxProduct, _Vue);
|
|
@@ -22241,7 +22241,7 @@ __decorate([Prop({
|
|
|
22241
22241
|
default: false
|
|
22242
22242
|
})], SearchBoxProduct.prototype, "highlighted", void 0);
|
|
22243
22243
|
|
|
22244
|
-
__decorate([options$
|
|
22244
|
+
__decorate([options$c.Getter("boxRoutingBehavior")], SearchBoxProduct.prototype, "boxRoutingBehavior", void 0);
|
|
22245
22245
|
|
|
22246
22246
|
__decorate([tracking$5.Action("track")], SearchBoxProduct.prototype, "trackClick", void 0);
|
|
22247
22247
|
|
|
@@ -23672,7 +23672,7 @@ var defaultSuggestedValue = {
|
|
|
23672
23672
|
var history$1 = namespace("history");
|
|
23673
23673
|
var params$d = namespace("params");
|
|
23674
23674
|
var searchBox$2 = namespace("searchBox");
|
|
23675
|
-
var options$
|
|
23675
|
+
var options$b = namespace("options");
|
|
23676
23676
|
var tracking$4 = namespace("tracking");
|
|
23677
23677
|
|
|
23678
23678
|
var SearchBox = /*#__PURE__*/function (_Vue) {
|
|
@@ -23957,7 +23957,7 @@ __decorate([tracking$4.Action("track")], SearchBox.prototype, "trackClick", void
|
|
|
23957
23957
|
|
|
23958
23958
|
__decorate([params$d.Action("setSearchResultsLink")], SearchBox.prototype, "setSearchResultsLink", void 0);
|
|
23959
23959
|
|
|
23960
|
-
__decorate([options$
|
|
23960
|
+
__decorate([options$b.Mutation("setSearchBoxOptions")], SearchBox.prototype, "setSearchBoxOptions", void 0);
|
|
23961
23961
|
|
|
23962
23962
|
__decorate([params$d.Action("goToResults")], SearchBox.prototype, "goToResults", void 0);
|
|
23963
23963
|
|
|
@@ -25607,7 +25607,7 @@ var toggleHierarchyParam = function toggleHierarchyParam() {
|
|
|
25607
25607
|
|
|
25608
25608
|
var searchResult$h = namespace("searchResult");
|
|
25609
25609
|
var params$c = namespace("params");
|
|
25610
|
-
var options$
|
|
25610
|
+
var options$a = namespace("options");
|
|
25611
25611
|
|
|
25612
25612
|
var CurrentFilters = /*#__PURE__*/function (_Vue) {
|
|
25613
25613
|
_inherits(CurrentFilters, _Vue);
|
|
@@ -25684,7 +25684,7 @@ __decorate([searchResult$h.Getter("displayFilters")], CurrentFilters.prototype,
|
|
|
25684
25684
|
|
|
25685
25685
|
__decorate([searchResult$h.Getter("currentFilterCount")], CurrentFilters.prototype, "currentFilterCount", void 0);
|
|
25686
25686
|
|
|
25687
|
-
__decorate([options$
|
|
25687
|
+
__decorate([options$a.Getter("initialFilters")], CurrentFilters.prototype, "initialFilters", void 0);
|
|
25688
25688
|
|
|
25689
25689
|
__decorate([params$c.Action("removeParams")], CurrentFilters.prototype, "removeParams", void 0);
|
|
25690
25690
|
|
|
@@ -28619,7 +28619,7 @@ var _typeof = _typeof$2.exports.default;
|
|
|
28619
28619
|
|
|
28620
28620
|
var VueSlider = /*@__PURE__*/getDefaultExportFromCjs(vueSliderComponent_umd_min.exports);
|
|
28621
28621
|
|
|
28622
|
-
var options$
|
|
28622
|
+
var options$9 = namespace("options");
|
|
28623
28623
|
|
|
28624
28624
|
var TermFacet = /*#__PURE__*/function (_Vue) {
|
|
28625
28625
|
_inherits(TermFacet, _Vue);
|
|
@@ -28826,7 +28826,7 @@ __decorate([Prop({
|
|
|
28826
28826
|
}
|
|
28827
28827
|
})], TermFacet.prototype, "currentFilters", void 0);
|
|
28828
28828
|
|
|
28829
|
-
__decorate([options$
|
|
28829
|
+
__decorate([options$9.State(function (s) {
|
|
28830
28830
|
return s.searchResultOptions;
|
|
28831
28831
|
})], TermFacet.prototype, "searchResultOptions", void 0);
|
|
28832
28832
|
|
|
@@ -29942,7 +29942,7 @@ var __vue_component__$F = /*#__PURE__*/normalizeComponent({
|
|
|
29942
29942
|
staticRenderFns: __vue_staticRenderFns__$F
|
|
29943
29943
|
}, __vue_inject_styles__$F, __vue_script__$F, __vue_scope_id__$F, __vue_is_functional_template__$F, __vue_module_identifier__$F, false, undefined, undefined, undefined);
|
|
29944
29944
|
|
|
29945
|
-
var options$
|
|
29945
|
+
var options$8 = namespace("options");
|
|
29946
29946
|
|
|
29947
29947
|
var CategoryFilter = /*#__PURE__*/function (_Vue) {
|
|
29948
29948
|
_inherits(CategoryFilter, _Vue);
|
|
@@ -30078,9 +30078,9 @@ var CategoryFilter = /*#__PURE__*/function (_Vue) {
|
|
|
30078
30078
|
|
|
30079
30079
|
__decorate([Prop()], CategoryFilter.prototype, "options", void 0);
|
|
30080
30080
|
|
|
30081
|
-
__decorate([options$
|
|
30081
|
+
__decorate([options$8.Getter("envOptions")], CategoryFilter.prototype, "envOptions", void 0);
|
|
30082
30082
|
|
|
30083
|
-
__decorate([options$
|
|
30083
|
+
__decorate([options$8.State(function (o) {
|
|
30084
30084
|
return o.searchResultOptions;
|
|
30085
30085
|
})], CategoryFilter.prototype, "searchResultOptions", void 0);
|
|
30086
30086
|
|
|
@@ -31069,7 +31069,7 @@ var __vue_component__$w = /*#__PURE__*/normalizeComponent({
|
|
|
31069
31069
|
staticRenderFns: __vue_staticRenderFns__$w
|
|
31070
31070
|
}, __vue_inject_styles__$w, __vue_script__$w, __vue_scope_id__$w, __vue_is_functional_template__$w, __vue_module_identifier__$w, false, undefined, undefined, undefined);
|
|
31071
31071
|
|
|
31072
|
-
var options$
|
|
31072
|
+
var options$7 = namespace("options");
|
|
31073
31073
|
|
|
31074
31074
|
var SearchResultsProductTitle = /*#__PURE__*/function (_Vue) {
|
|
31075
31075
|
_inherits(SearchResultsProductTitle, _Vue);
|
|
@@ -31122,7 +31122,7 @@ __decorate([Prop({
|
|
|
31122
31122
|
default: ""
|
|
31123
31123
|
})], SearchResultsProductTitle.prototype, "link", void 0);
|
|
31124
31124
|
|
|
31125
|
-
__decorate([options$
|
|
31125
|
+
__decorate([options$7.State(function (o) {
|
|
31126
31126
|
return o.searchResultOptions;
|
|
31127
31127
|
})], SearchResultsProductTitle.prototype, "searchResultOptions", void 0);
|
|
31128
31128
|
|
|
@@ -32033,7 +32033,7 @@ var __vue_component__$n = /*#__PURE__*/normalizeComponent({
|
|
|
32033
32033
|
var tracking$3 = namespace("tracking");
|
|
32034
32034
|
var params$9 = namespace("params");
|
|
32035
32035
|
var searchResult$c = namespace("searchResult");
|
|
32036
|
-
var options$
|
|
32036
|
+
var options$6 = namespace("options");
|
|
32037
32037
|
|
|
32038
32038
|
var SearchResultsProductCard = /*#__PURE__*/function (_Vue) {
|
|
32039
32039
|
_inherits(SearchResultsProductCard, _Vue);
|
|
@@ -32206,7 +32206,7 @@ __decorate([searchResult$c.State(function (state) {
|
|
|
32206
32206
|
return state.layout;
|
|
32207
32207
|
})], SearchResultsProductCard.prototype, "layout", void 0);
|
|
32208
32208
|
|
|
32209
|
-
__decorate([options$
|
|
32209
|
+
__decorate([options$6.Getter("searchResultsRoutingBehavior")], SearchResultsProductCard.prototype, "searchResultsRoutingBehavior", void 0);
|
|
32210
32210
|
|
|
32211
32211
|
__decorate([params$9.Getter("query")], SearchResultsProductCard.prototype, "query", void 0);
|
|
32212
32212
|
|
|
@@ -32511,7 +32511,7 @@ var track = function track(queryKey) {
|
|
|
32511
32511
|
};
|
|
32512
32512
|
|
|
32513
32513
|
var params$8 = namespace("params");
|
|
32514
|
-
var options$
|
|
32514
|
+
var options$5 = namespace("options");
|
|
32515
32515
|
|
|
32516
32516
|
var AdditionalPanels$1 = /*#__PURE__*/function (_Vue) {
|
|
32517
32517
|
_inherits(AdditionalPanels, _Vue);
|
|
@@ -32626,7 +32626,7 @@ __decorate([Prop({
|
|
|
32626
32626
|
|
|
32627
32627
|
__decorate([params$8.Getter("query")], AdditionalPanels$1.prototype, "query", void 0);
|
|
32628
32628
|
|
|
32629
|
-
__decorate([options$
|
|
32629
|
+
__decorate([options$5.State(function (o) {
|
|
32630
32630
|
return o.searchResultOptions;
|
|
32631
32631
|
})], AdditionalPanels$1.prototype, "searchResultOptions", void 0);
|
|
32632
32632
|
|
|
@@ -33311,7 +33311,7 @@ var __vue_component__$h = /*#__PURE__*/normalizeComponent({
|
|
|
33311
33311
|
}, __vue_inject_styles__$h, __vue_script__$h, __vue_scope_id__$h, __vue_is_functional_template__$h, __vue_module_identifier__$h, false, undefined, undefined, undefined);
|
|
33312
33312
|
|
|
33313
33313
|
var searchResult$a = namespace("searchResult");
|
|
33314
|
-
var options$
|
|
33314
|
+
var options$4 = namespace("options");
|
|
33315
33315
|
|
|
33316
33316
|
var SearchResultsLayoutSelection = /*#__PURE__*/function (_Vue) {
|
|
33317
33317
|
_inherits(SearchResultsLayoutSelection, _Vue);
|
|
@@ -33338,7 +33338,7 @@ __decorate([searchResult$a.State(function (state) {
|
|
|
33338
33338
|
return state.layout;
|
|
33339
33339
|
})], SearchResultsLayoutSelection.prototype, "layout", void 0);
|
|
33340
33340
|
|
|
33341
|
-
__decorate([options$
|
|
33341
|
+
__decorate([options$4.Getter("classMap")], SearchResultsLayoutSelection.prototype, "classMap", void 0);
|
|
33342
33342
|
|
|
33343
33343
|
__decorate([searchResult$a.Action("setLayout")], SearchResultsLayoutSelection.prototype, "setLayout", void 0);
|
|
33344
33344
|
|
|
@@ -33592,6 +33592,7 @@ var __vue_component__$e = /*#__PURE__*/normalizeComponent({
|
|
|
33592
33592
|
|
|
33593
33593
|
var searchResult$7 = namespace("searchResult");
|
|
33594
33594
|
var params$4 = namespace("params");
|
|
33595
|
+
var options$3 = namespace("options");
|
|
33595
33596
|
|
|
33596
33597
|
var SearchResultsToolbar = /*#__PURE__*/function (_Vue) {
|
|
33597
33598
|
_inherits(SearchResultsToolbar, _Vue);
|
|
@@ -33668,11 +33669,10 @@ var SearchResultsToolbar = /*#__PURE__*/function (_Vue) {
|
|
|
33668
33669
|
}, {
|
|
33669
33670
|
key: "paginationOptions",
|
|
33670
33671
|
get: function get() {
|
|
33671
|
-
var pageSize = this.options.pagination.sizeSelection;
|
|
33672
33672
|
var pageSelect = this.options.pagination.pageSelection;
|
|
33673
|
-
|
|
33673
|
+
return {
|
|
33674
33674
|
pageSize: {
|
|
33675
|
-
sizes:
|
|
33675
|
+
sizes: this.currentResolutionPageSizes,
|
|
33676
33676
|
selectedSize: this.limit
|
|
33677
33677
|
},
|
|
33678
33678
|
pageSelect: {
|
|
@@ -33683,7 +33683,6 @@ var SearchResultsToolbar = /*#__PURE__*/function (_Vue) {
|
|
|
33683
33683
|
},
|
|
33684
33684
|
labels: this.options.labels
|
|
33685
33685
|
};
|
|
33686
|
-
return r;
|
|
33687
33686
|
}
|
|
33688
33687
|
}, {
|
|
33689
33688
|
key: "displayPageSelect",
|
|
@@ -33732,6 +33731,8 @@ __decorate([searchResult$7.State(function (state) {
|
|
|
33732
33731
|
return state.searchResult;
|
|
33733
33732
|
})], SearchResultsToolbar.prototype, "searchResult", void 0);
|
|
33734
33733
|
|
|
33734
|
+
__decorate([options$3.Getter("currentResolutionPageSizes")], SearchResultsToolbar.prototype, "currentResolutionPageSizes", void 0);
|
|
33735
|
+
|
|
33735
33736
|
__decorate([params$4.Action("removeAllFilters")], SearchResultsToolbar.prototype, "removeAllFilters", void 0);
|
|
33736
33737
|
|
|
33737
33738
|
SearchResultsToolbar = __decorate([Component({
|
|
@@ -34823,13 +34824,11 @@ var SearchResults = /*#__PURE__*/function (_Vue) {
|
|
|
34823
34824
|
}, {
|
|
34824
34825
|
key: "handleMounted",
|
|
34825
34826
|
value: function handleMounted() {
|
|
34826
|
-
var _a, _b, _c;
|
|
34827
|
-
|
|
34828
34827
|
this.handleResize();
|
|
34829
34828
|
var params = new URLSearchParams(window.location.search);
|
|
34830
34829
|
this.handleUrlChange(params);
|
|
34831
34830
|
this.addParams(parseParams(params));
|
|
34832
|
-
this.setDefaultLimit(
|
|
34831
|
+
this.setDefaultLimit(this.defaultSearchResultPageSize);
|
|
34833
34832
|
}
|
|
34834
34833
|
}, {
|
|
34835
34834
|
key: "handleParamsChange",
|
|
@@ -36426,8 +36425,6 @@ var setDocumentTitle = function setDocumentTitle(template) {
|
|
|
36426
36425
|
document.title = addParamsToLabel(template, textToInsert);
|
|
36427
36426
|
};
|
|
36428
36427
|
|
|
36429
|
-
var MOBILE_WIDTH = 767;
|
|
36430
|
-
|
|
36431
36428
|
var SearchResultModule = /*#__PURE__*/function (_VuexModule) {
|
|
36432
36429
|
_inherits(SearchResultModule, _VuexModule);
|
|
36433
36430
|
|
|
@@ -36524,7 +36521,24 @@ var SearchResultModule = /*#__PURE__*/function (_VuexModule) {
|
|
|
36524
36521
|
}, {
|
|
36525
36522
|
key: "isMobileWidth",
|
|
36526
36523
|
get: function get() {
|
|
36527
|
-
return this.
|
|
36524
|
+
return this.currentScreenWidth === "sm" || this.currentScreenWidth === "xs";
|
|
36525
|
+
}
|
|
36526
|
+
}, {
|
|
36527
|
+
key: "currentScreenWidth",
|
|
36528
|
+
get: function get() {
|
|
36529
|
+
var width = this.screenWidth;
|
|
36530
|
+
|
|
36531
|
+
if (width <= S_MIN_WIDTH) {
|
|
36532
|
+
return "xs";
|
|
36533
|
+
} else if (width > S_MIN_WIDTH && width <= MD_MIN_WIDTH) {
|
|
36534
|
+
return "sm";
|
|
36535
|
+
} else if (width > MD_MIN_WIDTH && width <= L_MIN_WIDTH) {
|
|
36536
|
+
return "md";
|
|
36537
|
+
} else if (width > L_MIN_WIDTH && width <= XL_MIN_WIDTH) {
|
|
36538
|
+
return "l";
|
|
36539
|
+
} else {
|
|
36540
|
+
return "xl";
|
|
36541
|
+
}
|
|
36528
36542
|
}
|
|
36529
36543
|
}, {
|
|
36530
36544
|
key: "setSidebarVisibility",
|
|
@@ -36989,9 +37003,39 @@ var OptionsModule = /*#__PURE__*/function (_VuexModule) {
|
|
|
36989
37003
|
}, {
|
|
36990
37004
|
key: "defaultSearchResultPageSize",
|
|
36991
37005
|
get: function get() {
|
|
36992
|
-
var _a, _b
|
|
37006
|
+
var _a, _b;
|
|
36993
37007
|
|
|
36994
|
-
return (
|
|
37008
|
+
return (_b = (_a = this.currentResolutionPageSizes) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : DEFAULT_PAGE_SIZE;
|
|
37009
|
+
}
|
|
37010
|
+
}, {
|
|
37011
|
+
key: "currentResolutionPageSizes",
|
|
37012
|
+
get: function get() {
|
|
37013
|
+
var _a, _b, _c;
|
|
37014
|
+
|
|
37015
|
+
var pageSizes = (_c = (_b = (_a = this.searchResultOptions) === null || _a === void 0 ? void 0 : _a.pagination) === null || _b === void 0 ? void 0 : _b.sizeSelection) === null || _c === void 0 ? void 0 : _c.sizes;
|
|
37016
|
+
|
|
37017
|
+
if (Array.isArray(pageSizes)) {
|
|
37018
|
+
return pageSizes;
|
|
37019
|
+
}
|
|
37020
|
+
|
|
37021
|
+
var screenSize = this.context.rootGetters["searchResult/currentScreenWidth"];
|
|
37022
|
+
|
|
37023
|
+
switch (screenSize) {
|
|
37024
|
+
case "xs":
|
|
37025
|
+
return pageSizes.xs;
|
|
37026
|
+
|
|
37027
|
+
case "sm":
|
|
37028
|
+
return pageSizes.sm;
|
|
37029
|
+
|
|
37030
|
+
case "md":
|
|
37031
|
+
return pageSizes.md;
|
|
37032
|
+
|
|
37033
|
+
case "l":
|
|
37034
|
+
return pageSizes.l;
|
|
37035
|
+
|
|
37036
|
+
case "xl":
|
|
37037
|
+
return pageSizes.xl;
|
|
37038
|
+
}
|
|
36995
37039
|
}
|
|
36996
37040
|
}, {
|
|
36997
37041
|
key: "setSearchBoxOptions",
|
|
@@ -13,6 +13,7 @@ export default class OptionsModule extends VuexModule {
|
|
|
13
13
|
get boxRoutingBehavior(): RoutingBehavior;
|
|
14
14
|
get searchResultsRoutingBehavior(): RoutingBehavior;
|
|
15
15
|
get defaultSearchResultPageSize(): number;
|
|
16
|
+
get currentResolutionPageSizes(): number[];
|
|
16
17
|
setSearchBoxOptions({ options }: {
|
|
17
18
|
options: SearchBoxOptions;
|
|
18
19
|
}): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ScreenSize } from "@/types/General";
|
|
1
2
|
import { LabeledFilter } from "@/types/search-results/Filters";
|
|
2
3
|
import { ResultsLayout } from "@/types/search-results/ResultsLayout";
|
|
3
4
|
import { ProductGrid } from "@/types/search-results/SearchResultsOptions";
|
|
@@ -23,6 +24,7 @@ export default class SearchResultModule extends VuexModule {
|
|
|
23
24
|
get hasAnyFilter(): boolean;
|
|
24
25
|
get itemRange(): number[];
|
|
25
26
|
get isMobileWidth(): boolean;
|
|
27
|
+
get currentScreenWidth(): ScreenSize;
|
|
26
28
|
setSidebarVisibility({ visible }: {
|
|
27
29
|
visible: boolean;
|
|
28
30
|
}): void;
|