@getlupa/client 0.5.1-alpha-5 → 0.5.1-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/components/product-list/CategoryFilter.vue.d.ts +3 -4
- package/dist/cjs/components/product-list/CategoryFilterItem.vue.d.ts +2 -3
- package/dist/cjs/components/search-results/SearchResultsBreadcrumbs.vue.d.ts +4 -1
- package/dist/cjs/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +1 -2
- package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductTitle.vue.d.ts +1 -1
- package/dist/cjs/index.min.js +103 -88
- package/dist/cjs/utils/routing.utils.d.ts +1 -0
- package/dist/es/components/product-list/CategoryFilter.vue.d.ts +3 -4
- package/dist/es/components/product-list/CategoryFilterItem.vue.d.ts +2 -3
- package/dist/es/components/search-results/SearchResultsBreadcrumbs.vue.d.ts +4 -1
- package/dist/es/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +1 -2
- package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductTitle.vue.d.ts +1 -1
- package/dist/es/index.min.js +103 -88
- package/dist/es/utils/routing.utils.d.ts +1 -0
- package/dist/iife/components/product-list/CategoryFilter.vue.d.ts +3 -4
- package/dist/iife/components/product-list/CategoryFilterItem.vue.d.ts +2 -3
- package/dist/iife/components/search-results/SearchResultsBreadcrumbs.vue.d.ts +4 -1
- package/dist/iife/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +1 -2
- package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductTitle.vue.d.ts +1 -1
- package/dist/iife/index.min.js +1 -1
- package/dist/iife/utils/routing.utils.d.ts +1 -0
- package/package.json +1 -1
package/dist/es/index.min.js
CHANGED
|
@@ -19336,7 +19336,7 @@ var defaultSuggestedValue = {
|
|
|
19336
19336
|
var history$1 = namespace("history");
|
|
19337
19337
|
var params$d = namespace("params");
|
|
19338
19338
|
var searchBox$2 = namespace("searchBox");
|
|
19339
|
-
var options$
|
|
19339
|
+
var options$8 = namespace("options");
|
|
19340
19340
|
var tracking$4 = namespace("tracking");
|
|
19341
19341
|
|
|
19342
19342
|
var SearchBox = /*#__PURE__*/function (_Vue) {
|
|
@@ -19620,7 +19620,7 @@ __decorate([tracking$4.Action("track")], SearchBox.prototype, "trackClick", void
|
|
|
19620
19620
|
|
|
19621
19621
|
__decorate([params$d.Action("setSearchResultsLink")], SearchBox.prototype, "setSearchResultsLink", void 0);
|
|
19622
19622
|
|
|
19623
|
-
__decorate([options$
|
|
19623
|
+
__decorate([options$8.Mutation("setSearchBoxOptions")], SearchBox.prototype, "setSearchBoxOptions", void 0);
|
|
19624
19624
|
|
|
19625
19625
|
__decorate([params$d.Action("goToResults")], SearchBox.prototype, "goToResults", void 0);
|
|
19626
19626
|
|
|
@@ -21784,7 +21784,7 @@ var toggleHierarchyParam = function toggleHierarchyParam() {
|
|
|
21784
21784
|
|
|
21785
21785
|
var searchResult$g = namespace("searchResult");
|
|
21786
21786
|
var params$c = namespace("params");
|
|
21787
|
-
var options$
|
|
21787
|
+
var options$7 = namespace("options");
|
|
21788
21788
|
|
|
21789
21789
|
var CurrentFilters = /*#__PURE__*/function (_Vue) {
|
|
21790
21790
|
_inherits(CurrentFilters, _Vue);
|
|
@@ -21861,7 +21861,7 @@ __decorate([searchResult$g.Getter("displayFilters")], CurrentFilters.prototype,
|
|
|
21861
21861
|
|
|
21862
21862
|
__decorate([searchResult$g.Getter("currentFilterCount")], CurrentFilters.prototype, "currentFilterCount", void 0);
|
|
21863
21863
|
|
|
21864
|
-
__decorate([options$
|
|
21864
|
+
__decorate([options$7.Getter("initialFilters")], CurrentFilters.prototype, "initialFilters", void 0);
|
|
21865
21865
|
|
|
21866
21866
|
__decorate([params$c.Action("removeParams")], CurrentFilters.prototype, "removeParams", void 0);
|
|
21867
21867
|
|
|
@@ -24796,7 +24796,7 @@ var _typeof = _typeof$2.exports.default;
|
|
|
24796
24796
|
|
|
24797
24797
|
var VueSlider = /*@__PURE__*/getDefaultExportFromCjs(vueSliderComponent_umd_min.exports);
|
|
24798
24798
|
|
|
24799
|
-
var options$
|
|
24799
|
+
var options$6 = namespace("options");
|
|
24800
24800
|
|
|
24801
24801
|
var TermFacet = /*#__PURE__*/function (_Vue) {
|
|
24802
24802
|
_inherits(TermFacet, _Vue);
|
|
@@ -25003,7 +25003,7 @@ __decorate([Prop({
|
|
|
25003
25003
|
}
|
|
25004
25004
|
})], TermFacet.prototype, "currentFilters", void 0);
|
|
25005
25005
|
|
|
25006
|
-
__decorate([options$
|
|
25006
|
+
__decorate([options$6.State(function (s) {
|
|
25007
25007
|
return s.searchResultOptions;
|
|
25008
25008
|
})], TermFacet.prototype, "searchResultOptions", void 0);
|
|
25009
25009
|
|
|
@@ -26015,6 +26015,16 @@ var emitRoutingEvent = function emitRoutingEvent(url) {
|
|
|
26015
26015
|
});
|
|
26016
26016
|
window.dispatchEvent(event);
|
|
26017
26017
|
};
|
|
26018
|
+
var handleRoutingEvent = function handleRoutingEvent(link, event) {
|
|
26019
|
+
var hasEventRouting = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
26020
|
+
|
|
26021
|
+
if (!hasEventRouting) {
|
|
26022
|
+
return;
|
|
26023
|
+
}
|
|
26024
|
+
|
|
26025
|
+
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
26026
|
+
emitRoutingEvent(link);
|
|
26027
|
+
};
|
|
26018
26028
|
|
|
26019
26029
|
var CategoryFilterItem = /*#__PURE__*/function (_Vue) {
|
|
26020
26030
|
_inherits(CategoryFilterItem, _Vue);
|
|
@@ -26041,29 +26051,20 @@ var CategoryFilterItem = /*#__PURE__*/function (_Vue) {
|
|
|
26041
26051
|
|
|
26042
26052
|
return this.options.keys.urlKey ? (_b = (_a = this.item) === null || _a === void 0 ? void 0 : _a[this.options.keys.urlKey]) !== null && _b !== void 0 ? _b : "" : "";
|
|
26043
26053
|
}
|
|
26044
|
-
}, {
|
|
26045
|
-
key: "url",
|
|
26046
|
-
get: function get() {
|
|
26047
|
-
if (!this.hasDirectRouting) {
|
|
26048
|
-
return undefined;
|
|
26049
|
-
}
|
|
26050
|
-
|
|
26051
|
-
return this.urlLink;
|
|
26052
|
-
}
|
|
26053
26054
|
}, {
|
|
26054
26055
|
key: "isActive",
|
|
26055
26056
|
get: function get() {
|
|
26056
26057
|
return window.location.href === this.urlLink;
|
|
26057
26058
|
}
|
|
26058
26059
|
}, {
|
|
26059
|
-
key: "
|
|
26060
|
+
key: "hasEventRouting",
|
|
26060
26061
|
get: function get() {
|
|
26061
|
-
return this.options.routingBehavior === "
|
|
26062
|
+
return this.options.routingBehavior === "event";
|
|
26062
26063
|
}
|
|
26063
26064
|
}, {
|
|
26064
26065
|
key: "handleNavigation",
|
|
26065
|
-
value: function handleNavigation() {
|
|
26066
|
-
|
|
26066
|
+
value: function handleNavigation(event) {
|
|
26067
|
+
handleRoutingEvent(this.urlLink, event, this.hasEventRouting);
|
|
26067
26068
|
}
|
|
26068
26069
|
}]);
|
|
26069
26070
|
|
|
@@ -26079,10 +26080,7 @@ __decorate([Prop({
|
|
|
26079
26080
|
})], CategoryFilterItem.prototype, "item", void 0);
|
|
26080
26081
|
|
|
26081
26082
|
CategoryFilterItem = __decorate([Component({
|
|
26082
|
-
name: "categoryFilterItem"
|
|
26083
|
-
components: {
|
|
26084
|
-
SearchResults: __vue_component__$4
|
|
26085
|
-
}
|
|
26083
|
+
name: "categoryFilterItem"
|
|
26086
26084
|
})], CategoryFilterItem);
|
|
26087
26085
|
var script$D = CategoryFilterItem;
|
|
26088
26086
|
|
|
@@ -26102,14 +26100,15 @@ var __vue_render__$E = function __vue_render__() {
|
|
|
26102
26100
|
class: {
|
|
26103
26101
|
"lupa-child-category-item-active": _vm.isActive
|
|
26104
26102
|
}
|
|
26105
|
-
}, [_c("a",
|
|
26103
|
+
}, [_c("a", {
|
|
26106
26104
|
attrs: {
|
|
26107
26105
|
"data-cy": "lupa-child-category-item",
|
|
26108
|
-
href: _vm.
|
|
26106
|
+
href: _vm.urlLink
|
|
26107
|
+
},
|
|
26108
|
+
on: {
|
|
26109
|
+
click: _vm.handleNavigation
|
|
26109
26110
|
}
|
|
26110
|
-
}, _vm.
|
|
26111
|
-
click: _vm.handleNavigation
|
|
26112
|
-
}), [_vm._v("\n " + _vm._s(_vm.title) + "\n ")])]);
|
|
26111
|
+
}, [_vm._v("\n " + _vm._s(_vm.title) + "\n ")])]);
|
|
26113
26112
|
};
|
|
26114
26113
|
|
|
26115
26114
|
var __vue_staticRenderFns__$E = [];
|
|
@@ -26137,7 +26136,7 @@ var __vue_component__$E = /*#__PURE__*/normalizeComponent({
|
|
|
26137
26136
|
staticRenderFns: __vue_staticRenderFns__$E
|
|
26138
26137
|
}, __vue_inject_styles__$E, __vue_script__$E, __vue_scope_id__$E, __vue_is_functional_template__$E, __vue_module_identifier__$E, false, undefined, undefined, undefined);
|
|
26139
26138
|
|
|
26140
|
-
var options$
|
|
26139
|
+
var options$5 = namespace("options");
|
|
26141
26140
|
|
|
26142
26141
|
var CategoryFilter = /*#__PURE__*/function (_Vue) {
|
|
26143
26142
|
_inherits(CategoryFilter, _Vue);
|
|
@@ -26162,9 +26161,9 @@ var CategoryFilter = /*#__PURE__*/function (_Vue) {
|
|
|
26162
26161
|
return Boolean((_a = this.options.back) === null || _a === void 0 ? void 0 : _a.title);
|
|
26163
26162
|
}
|
|
26164
26163
|
}, {
|
|
26165
|
-
key: "
|
|
26164
|
+
key: "hasEventRouting",
|
|
26166
26165
|
get: function get() {
|
|
26167
|
-
return this.options.routingBehavior === "
|
|
26166
|
+
return this.options.routingBehavior === "event";
|
|
26168
26167
|
}
|
|
26169
26168
|
}, {
|
|
26170
26169
|
key: "backTitle",
|
|
@@ -26173,17 +26172,12 @@ var CategoryFilter = /*#__PURE__*/function (_Vue) {
|
|
|
26173
26172
|
|
|
26174
26173
|
return (_a = this.options.back) === null || _a === void 0 ? void 0 : _a.title;
|
|
26175
26174
|
}
|
|
26176
|
-
}, {
|
|
26177
|
-
key: "backUrl",
|
|
26178
|
-
get: function get() {
|
|
26179
|
-
return this.hasDirectRouting ? this.backUrlLink : undefined;
|
|
26180
|
-
}
|
|
26181
26175
|
}, {
|
|
26182
26176
|
key: "backUrlLink",
|
|
26183
26177
|
get: function get() {
|
|
26184
|
-
var _a;
|
|
26178
|
+
var _a, _b;
|
|
26185
26179
|
|
|
26186
|
-
return (_a = this.options.back) === null || _a === void 0 ? void 0 : _a.url;
|
|
26180
|
+
return (_b = (_a = this.options.back) === null || _a === void 0 ? void 0 : _a.url) !== null && _b !== void 0 ? _b : "";
|
|
26187
26181
|
}
|
|
26188
26182
|
}, {
|
|
26189
26183
|
key: "parentTitle",
|
|
@@ -26192,19 +26186,12 @@ var CategoryFilter = /*#__PURE__*/function (_Vue) {
|
|
|
26192
26186
|
|
|
26193
26187
|
return (_a = this.options.parent) === null || _a === void 0 ? void 0 : _a.title;
|
|
26194
26188
|
}
|
|
26195
|
-
}, {
|
|
26196
|
-
key: "parentUrl",
|
|
26197
|
-
get: function get() {
|
|
26198
|
-
var _a;
|
|
26199
|
-
|
|
26200
|
-
return this.hasDirectRouting ? (_a = this.options.parent) === null || _a === void 0 ? void 0 : _a.url : undefined;
|
|
26201
|
-
}
|
|
26202
26189
|
}, {
|
|
26203
26190
|
key: "parentUrlLink",
|
|
26204
26191
|
get: function get() {
|
|
26205
|
-
var _a;
|
|
26192
|
+
var _a, _b;
|
|
26206
26193
|
|
|
26207
|
-
return (_a = this.options.parent) === null || _a === void 0 ? void 0 : _a.url;
|
|
26194
|
+
return (_b = (_a = this.options.parent) === null || _a === void 0 ? void 0 : _a.url) !== null && _b !== void 0 ? _b : "";
|
|
26208
26195
|
}
|
|
26209
26196
|
}, {
|
|
26210
26197
|
key: "isActive",
|
|
@@ -26255,9 +26242,22 @@ var CategoryFilter = /*#__PURE__*/function (_Vue) {
|
|
|
26255
26242
|
return (item === null || item === void 0 ? void 0 : item[(_a = this.options.keys.titleKey) !== null && _a !== void 0 ? _a : ""]) + (item === null || item === void 0 ? void 0 : item[(_b = this.options.keys.urlKey) !== null && _b !== void 0 ? _b : ""]);
|
|
26256
26243
|
}
|
|
26257
26244
|
}, {
|
|
26258
|
-
key: "
|
|
26259
|
-
value: function
|
|
26260
|
-
|
|
26245
|
+
key: "handleNavigationParent",
|
|
26246
|
+
value: function handleNavigationParent(event) {
|
|
26247
|
+
if (!this.parentUrlLink) {
|
|
26248
|
+
return;
|
|
26249
|
+
}
|
|
26250
|
+
|
|
26251
|
+
handleRoutingEvent(this.parentUrlLink, event, this.hasEventRouting);
|
|
26252
|
+
}
|
|
26253
|
+
}, {
|
|
26254
|
+
key: "handleNavigationBack",
|
|
26255
|
+
value: function handleNavigationBack(event) {
|
|
26256
|
+
if (!this.backUrlLink) {
|
|
26257
|
+
return;
|
|
26258
|
+
}
|
|
26259
|
+
|
|
26260
|
+
handleRoutingEvent(this.backUrlLink, event, this.hasEventRouting);
|
|
26261
26261
|
}
|
|
26262
26262
|
}]);
|
|
26263
26263
|
|
|
@@ -26266,7 +26266,7 @@ var CategoryFilter = /*#__PURE__*/function (_Vue) {
|
|
|
26266
26266
|
|
|
26267
26267
|
__decorate([Prop()], CategoryFilter.prototype, "options", void 0);
|
|
26268
26268
|
|
|
26269
|
-
__decorate([options$
|
|
26269
|
+
__decorate([options$5.Getter("envOptions")], CategoryFilter.prototype, "envOptions", void 0);
|
|
26270
26270
|
|
|
26271
26271
|
CategoryFilter = __decorate([Component({
|
|
26272
26272
|
name: "categoryFilter",
|
|
@@ -26294,33 +26294,31 @@ var __vue_render__$D = function __vue_render__() {
|
|
|
26294
26294
|
}
|
|
26295
26295
|
}, [_c("div", {
|
|
26296
26296
|
staticClass: "lupa-category-back"
|
|
26297
|
-
}, [_vm.hasBackButton ? _c("a",
|
|
26297
|
+
}, [_vm.hasBackButton ? _c("a", {
|
|
26298
26298
|
attrs: {
|
|
26299
26299
|
"data-cy": "lupa-category-back",
|
|
26300
|
-
href: _vm.
|
|
26301
|
-
}
|
|
26302
|
-
|
|
26303
|
-
|
|
26304
|
-
return _vm.handleNavigation(_vm.backUrlLink);
|
|
26300
|
+
href: _vm.backUrlLink
|
|
26301
|
+
},
|
|
26302
|
+
on: {
|
|
26303
|
+
click: _vm.handleNavigationBack
|
|
26305
26304
|
}
|
|
26306
|
-
}
|
|
26305
|
+
}, [_vm._v("\n " + _vm._s(_vm.backTitle) + "\n ")]) : _vm._e()]), _vm._v(" "), _c("div", {
|
|
26307
26306
|
staticClass: "lupa-current-category",
|
|
26308
26307
|
class: {
|
|
26309
26308
|
"lupa-current-category-active": _vm.isActive
|
|
26310
26309
|
}
|
|
26311
|
-
}, [_c("a",
|
|
26310
|
+
}, [_c("a", {
|
|
26312
26311
|
class: {
|
|
26313
26312
|
"lupa-title-category": !_vm.hasBackButton
|
|
26314
26313
|
},
|
|
26315
26314
|
attrs: {
|
|
26316
26315
|
"data-cy": "lupa-current-category",
|
|
26317
|
-
href: _vm.
|
|
26318
|
-
}
|
|
26319
|
-
|
|
26320
|
-
|
|
26321
|
-
return _vm.handleNavigation(_vm.parentUrlLink);
|
|
26316
|
+
href: _vm.parentUrlLink
|
|
26317
|
+
},
|
|
26318
|
+
on: {
|
|
26319
|
+
click: _vm.handleNavigationParent
|
|
26322
26320
|
}
|
|
26323
|
-
}
|
|
26321
|
+
}, [_vm._v(_vm._s(_vm.parentTitle))])]), _vm._v(" "), _c("div", {
|
|
26324
26322
|
staticClass: "lupa-child-category-list"
|
|
26325
26323
|
}, _vm._l(_vm.categoryChildren, function (child) {
|
|
26326
26324
|
return _c("CategoryFilterItem", {
|
|
@@ -27254,7 +27252,7 @@ var __vue_component__$v = /*#__PURE__*/normalizeComponent({
|
|
|
27254
27252
|
staticRenderFns: __vue_staticRenderFns__$v
|
|
27255
27253
|
}, __vue_inject_styles__$v, __vue_script__$v, __vue_scope_id__$v, __vue_is_functional_template__$v, __vue_module_identifier__$v, false, undefined, undefined, undefined);
|
|
27256
27254
|
|
|
27257
|
-
var options$
|
|
27255
|
+
var options$4 = namespace("options");
|
|
27258
27256
|
|
|
27259
27257
|
var SearchResultsProductTitle = /*#__PURE__*/function (_Vue) {
|
|
27260
27258
|
_inherits(SearchResultsProductTitle, _Vue);
|
|
@@ -27291,8 +27289,8 @@ var SearchResultsProductTitle = /*#__PURE__*/function (_Vue) {
|
|
|
27291
27289
|
}
|
|
27292
27290
|
}, {
|
|
27293
27291
|
key: "handleNavigation",
|
|
27294
|
-
value: function handleNavigation() {
|
|
27295
|
-
|
|
27292
|
+
value: function handleNavigation(event) {
|
|
27293
|
+
handleRoutingEvent(this.link, event, this.hasEventRouting);
|
|
27296
27294
|
}
|
|
27297
27295
|
}]);
|
|
27298
27296
|
|
|
@@ -27307,7 +27305,7 @@ __decorate([Prop({
|
|
|
27307
27305
|
default: ""
|
|
27308
27306
|
})], SearchResultsProductTitle.prototype, "link", void 0);
|
|
27309
27307
|
|
|
27310
|
-
__decorate([options$
|
|
27308
|
+
__decorate([options$4.State(function (o) {
|
|
27311
27309
|
return o.searchResultOptions;
|
|
27312
27310
|
})], SearchResultsProductTitle.prototype, "searchResultOptions", void 0);
|
|
27313
27311
|
|
|
@@ -27337,14 +27335,15 @@ var __vue_render__$u = function __vue_render__() {
|
|
|
27337
27335
|
style: "-webkit-line-clamp: " + _vm.maxLines
|
|
27338
27336
|
}, [!_vm.options.link ? _c("span", {
|
|
27339
27337
|
staticClass: "lupa-search-results-product-title-text"
|
|
27340
|
-
}, [_vm._v(_vm._s(_vm.title))]) : _vm._e(), _vm._v(" "), _vm.options.link ? _c("a",
|
|
27338
|
+
}, [_vm._v(_vm._s(_vm.title))]) : _vm._e(), _vm._v(" "), _vm.options.link ? _c("a", {
|
|
27341
27339
|
staticClass: "lupa-search-results-product-title-text lupa-title-link",
|
|
27342
27340
|
attrs: {
|
|
27343
|
-
href: _vm.
|
|
27341
|
+
href: _vm.link
|
|
27342
|
+
},
|
|
27343
|
+
on: {
|
|
27344
|
+
click: _vm.handleNavigation
|
|
27344
27345
|
}
|
|
27345
|
-
}, _vm.
|
|
27346
|
-
click: _vm.handleNavigation
|
|
27347
|
-
} : {}), [_vm._v(_vm._s(_vm.title))]) : _vm._e()]);
|
|
27346
|
+
}, [_vm._v(_vm._s(_vm.title))]) : _vm._e()]);
|
|
27348
27347
|
};
|
|
27349
27348
|
|
|
27350
27349
|
var __vue_staticRenderFns__$u = [];
|
|
@@ -28307,11 +28306,6 @@ var SearchResultsProductCard = /*#__PURE__*/function (_Vue) {
|
|
|
28307
28306
|
get: function get() {
|
|
28308
28307
|
return this.options.routingBehavior === "event";
|
|
28309
28308
|
}
|
|
28310
|
-
}, {
|
|
28311
|
-
key: "url",
|
|
28312
|
-
get: function get() {
|
|
28313
|
-
return this.hasEventRouting ? undefined : this.link;
|
|
28314
|
-
}
|
|
28315
28309
|
}, {
|
|
28316
28310
|
key: "mounted",
|
|
28317
28311
|
value: function mounted() {
|
|
@@ -28391,8 +28385,8 @@ var SearchResultsProductCard = /*#__PURE__*/function (_Vue) {
|
|
|
28391
28385
|
}
|
|
28392
28386
|
}, {
|
|
28393
28387
|
key: "handleNavigation",
|
|
28394
|
-
value: function handleNavigation() {
|
|
28395
|
-
|
|
28388
|
+
value: function handleNavigation(event) {
|
|
28389
|
+
handleRoutingEvent(this.link, event, this.hasEventRouting);
|
|
28396
28390
|
}
|
|
28397
28391
|
}]);
|
|
28398
28392
|
|
|
@@ -28453,14 +28447,15 @@ var __vue_render__$l = function __vue_render__() {
|
|
|
28453
28447
|
}
|
|
28454
28448
|
}), _vm._v(" "), _c("div", {
|
|
28455
28449
|
class: ["lupa-search-result-product-contents", _vm.listLayoutClass]
|
|
28456
|
-
}, [_c("a",
|
|
28450
|
+
}, [_c("a", {
|
|
28457
28451
|
staticClass: "lupa-search-result-product-image-section",
|
|
28458
28452
|
attrs: {
|
|
28459
|
-
href: _vm.
|
|
28453
|
+
href: _vm.link
|
|
28454
|
+
},
|
|
28455
|
+
on: {
|
|
28456
|
+
click: _vm.handleNavigation
|
|
28460
28457
|
}
|
|
28461
|
-
}, _vm.
|
|
28462
|
-
click: _vm.handleNavigation
|
|
28463
|
-
} : {}), _vm._l(_vm.imageElements, function (element) {
|
|
28458
|
+
}, _vm._l(_vm.imageElements, function (element) {
|
|
28464
28459
|
return _c("SearchResultsProductCardElement", {
|
|
28465
28460
|
key: element.key,
|
|
28466
28461
|
staticClass: "lupa-search-results-product-element",
|
|
@@ -29426,7 +29421,7 @@ var __vue_component__$g = /*#__PURE__*/normalizeComponent({
|
|
|
29426
29421
|
}, __vue_inject_styles__$g, __vue_script__$g, __vue_scope_id__$g, __vue_is_functional_template__$g, __vue_module_identifier__$g, false, undefined, undefined, undefined);
|
|
29427
29422
|
|
|
29428
29423
|
var searchResult$a = namespace("searchResult");
|
|
29429
|
-
var options$
|
|
29424
|
+
var options$3 = namespace("options");
|
|
29430
29425
|
|
|
29431
29426
|
var SearchResultsLayoutSelection = /*#__PURE__*/function (_Vue) {
|
|
29432
29427
|
_inherits(SearchResultsLayoutSelection, _Vue);
|
|
@@ -29453,7 +29448,7 @@ __decorate([searchResult$a.State(function (state) {
|
|
|
29453
29448
|
return state.layout;
|
|
29454
29449
|
})], SearchResultsLayoutSelection.prototype, "layout", void 0);
|
|
29455
29450
|
|
|
29456
|
-
__decorate([options$
|
|
29451
|
+
__decorate([options$3.Getter("classMap")], SearchResultsLayoutSelection.prototype, "classMap", void 0);
|
|
29457
29452
|
|
|
29458
29453
|
__decorate([searchResult$a.Action("setLayout")], SearchResultsLayoutSelection.prototype, "setLayout", void 0);
|
|
29459
29454
|
|
|
@@ -30529,6 +30524,7 @@ var __vue_component__$7 = /*#__PURE__*/normalizeComponent({
|
|
|
30529
30524
|
}, __vue_inject_styles__$7, __vue_script__$7, __vue_scope_id__$7, __vue_is_functional_template__$7, __vue_module_identifier__$7, false, undefined, undefined, undefined);
|
|
30530
30525
|
|
|
30531
30526
|
var searchResult$3 = namespace("searchResult");
|
|
30527
|
+
var options$2 = namespace("options");
|
|
30532
30528
|
|
|
30533
30529
|
var SearchResultsBreadcrumbs = /*#__PURE__*/function (_Vue) {
|
|
30534
30530
|
_inherits(SearchResultsBreadcrumbs, _Vue);
|
|
@@ -30542,10 +30538,20 @@ var SearchResultsBreadcrumbs = /*#__PURE__*/function (_Vue) {
|
|
|
30542
30538
|
}
|
|
30543
30539
|
|
|
30544
30540
|
_createClass(SearchResultsBreadcrumbs, [{
|
|
30541
|
+
key: "hasEventRouting",
|
|
30542
|
+
get: function get() {
|
|
30543
|
+
return this.searchResultOptions.routingBehavior === "event";
|
|
30544
|
+
}
|
|
30545
|
+
}, {
|
|
30545
30546
|
key: "getLabel",
|
|
30546
30547
|
value: function getLabel(label) {
|
|
30547
30548
|
return addParamsToLabel(label, "'".concat(this.currentQueryText, "'"));
|
|
30548
30549
|
}
|
|
30550
|
+
}, {
|
|
30551
|
+
key: "handleNavigation",
|
|
30552
|
+
value: function handleNavigation(event, link) {
|
|
30553
|
+
handleRoutingEvent(link, event, this.hasEventRouting);
|
|
30554
|
+
}
|
|
30549
30555
|
}]);
|
|
30550
30556
|
|
|
30551
30557
|
return SearchResultsBreadcrumbs;
|
|
@@ -30559,6 +30565,10 @@ __decorate([Prop({
|
|
|
30559
30565
|
|
|
30560
30566
|
__decorate([searchResult$3.Getter("currentQueryText")], SearchResultsBreadcrumbs.prototype, "currentQueryText", void 0);
|
|
30561
30567
|
|
|
30568
|
+
__decorate([options$2.State(function (o) {
|
|
30569
|
+
return o.searchResultOptions;
|
|
30570
|
+
})], SearchResultsBreadcrumbs.prototype, "searchResultOptions", void 0);
|
|
30571
|
+
|
|
30562
30572
|
SearchResultsBreadcrumbs = __decorate([Component({
|
|
30563
30573
|
name: "searchResultsBreadcrumbs"
|
|
30564
30574
|
})], SearchResultsBreadcrumbs);
|
|
@@ -30586,6 +30596,11 @@ var __vue_render__$6 = function __vue_render__() {
|
|
|
30586
30596
|
staticClass: "lupa-search-results-breadcrumb-link",
|
|
30587
30597
|
attrs: {
|
|
30588
30598
|
href: breadcrumb.link
|
|
30599
|
+
},
|
|
30600
|
+
on: {
|
|
30601
|
+
click: function click(e) {
|
|
30602
|
+
return _vm.handleNavigation(e, breadcrumb.link);
|
|
30603
|
+
}
|
|
30589
30604
|
}
|
|
30590
30605
|
}, [_vm._v(_vm._s(_vm.getLabel(breadcrumb.label)))]) : _c("span", {
|
|
30591
30606
|
staticClass: "lupa-search-results-breadcrumb-text"
|
|
@@ -6,15 +6,14 @@ export default class CategoryFilter extends Vue {
|
|
|
6
6
|
categoryChildren: Record<string, string>[];
|
|
7
7
|
envOptions: Options;
|
|
8
8
|
get hasBackButton(): boolean;
|
|
9
|
-
get
|
|
9
|
+
get hasEventRouting(): boolean;
|
|
10
10
|
get backTitle(): string | undefined;
|
|
11
|
-
get backUrl(): string | undefined;
|
|
12
11
|
get backUrlLink(): string | undefined;
|
|
13
12
|
get parentTitle(): string | undefined;
|
|
14
|
-
get parentUrl(): string | undefined;
|
|
15
13
|
get parentUrlLink(): string | undefined;
|
|
16
14
|
get isActive(): boolean;
|
|
17
15
|
mounted(): Promise<void>;
|
|
18
16
|
getCategoryKey(item: Record<string, string>): string;
|
|
19
|
-
|
|
17
|
+
handleNavigationParent(event?: Event): void;
|
|
18
|
+
handleNavigationBack(event?: Event): void;
|
|
20
19
|
}
|
|
@@ -5,8 +5,7 @@ export default class CategoryFilterItem extends Vue {
|
|
|
5
5
|
item: Record<string, string>;
|
|
6
6
|
get title(): string;
|
|
7
7
|
get urlLink(): string;
|
|
8
|
-
get url(): string | undefined;
|
|
9
8
|
get isActive(): boolean;
|
|
10
|
-
get
|
|
11
|
-
handleNavigation(): void;
|
|
9
|
+
get hasEventRouting(): boolean;
|
|
10
|
+
handleNavigation(event?: Event): void;
|
|
12
11
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { SearchResultsBreadcrumb } from "@/types/search-results/SearchResultsOptions";
|
|
1
|
+
import { SearchResultsBreadcrumb, SearchResultsOptions } from "@/types/search-results/SearchResultsOptions";
|
|
2
2
|
import Vue from "vue";
|
|
3
3
|
export default class SearchResultsBreadcrumbs extends Vue {
|
|
4
4
|
breadcrumbs: SearchResultsBreadcrumb[];
|
|
5
5
|
currentQueryText: string;
|
|
6
|
+
searchResultOptions: SearchResultsOptions;
|
|
7
|
+
get hasEventRouting(): boolean;
|
|
6
8
|
getLabel(label: string): string;
|
|
9
|
+
handleNavigation(event: Event, link: string): void;
|
|
7
10
|
}
|
package/dist/iife/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ export default class SearchResultsProductCard extends Vue {
|
|
|
23
23
|
get labels(): SearchResultsOptionLabels;
|
|
24
24
|
get link(): string;
|
|
25
25
|
get hasEventRouting(): boolean;
|
|
26
|
-
get url(): string | undefined;
|
|
27
26
|
isInStock: boolean;
|
|
28
27
|
mounted(): void;
|
|
29
28
|
checkIfIsInStock(): Promise<void>;
|
|
@@ -32,5 +31,5 @@ export default class SearchResultsProductCard extends Vue {
|
|
|
32
31
|
handleProductEvent(item: {
|
|
33
32
|
type: ReportableEventType;
|
|
34
33
|
}): void;
|
|
35
|
-
handleNavigation(): void;
|
|
34
|
+
handleNavigation(event?: Event): void;
|
|
36
35
|
}
|