@getlupa/client 0.7.0-alpha-12 → 0.7.0-alpha-15
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/SearchResultsTitle.vue.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/badges/SearchResultGeneratedBadge.vue.d.ts +2 -0
- package/dist/cjs/index.min.js +47 -24
- package/dist/cjs/types/product-list/ProductListOptions.d.ts +1 -0
- package/dist/cjs/types/search-results/SearchResultsOptions.d.ts +1 -0
- package/dist/es/components/search-results/SearchResultsTitle.vue.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/badges/SearchResultGeneratedBadge.vue.d.ts +2 -0
- package/dist/es/index.min.js +47 -24
- package/dist/es/types/product-list/ProductListOptions.d.ts +1 -0
- package/dist/es/types/search-results/SearchResultsOptions.d.ts +1 -0
- package/dist/iife/components/search-results/SearchResultsTitle.vue.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/badges/SearchResultGeneratedBadge.vue.d.ts +2 -0
- package/dist/iife/index.min.js +1 -1
- package/dist/iife/types/product-list/ProductListOptions.d.ts +1 -0
- package/dist/iife/types/search-results/SearchResultsOptions.d.ts +1 -0
- package/package.json +1 -1
package/dist/cjs/index.min.js
CHANGED
|
@@ -16776,6 +16776,16 @@ let SearchResultGeneratedBadge = class SearchResultGeneratedBadge extends Vue$1
|
|
|
16776
16776
|
var _a, _b, _c;
|
|
16777
16777
|
return (_c = (_b = (_a = this.options.generate) === null || _a === void 0 ? void 0 : _a.image) === null || _b === void 0 ? void 0 : _b.call(_a, this.badge)) !== null && _c !== void 0 ? _c : "";
|
|
16778
16778
|
}
|
|
16779
|
+
get hasAdditionalText() {
|
|
16780
|
+
var _a, _b;
|
|
16781
|
+
return (Boolean((_a = this.badge) === null || _a === void 0 ? void 0 : _a.additionalText) &&
|
|
16782
|
+
typeof ((_b = this.badge) === null || _b === void 0 ? void 0 : _b.additionalText) === "string");
|
|
16783
|
+
}
|
|
16784
|
+
get hasTitleText() {
|
|
16785
|
+
var _a, _b;
|
|
16786
|
+
return (Boolean((_a = this.badge) === null || _a === void 0 ? void 0 : _a.titleText) &&
|
|
16787
|
+
typeof ((_b = this.badge) === null || _b === void 0 ? void 0 : _b.titleText) === "string");
|
|
16788
|
+
}
|
|
16779
16789
|
};
|
|
16780
16790
|
__decorate([
|
|
16781
16791
|
Prop({ default: () => ({}) })
|
|
@@ -16807,11 +16817,11 @@ var __vue_render__$z = function () {
|
|
|
16807
16817
|
[
|
|
16808
16818
|
_c("span", { staticClass: "lupa-badge-title" }, [
|
|
16809
16819
|
_vm.image ? _c("img", { attrs: { src: _vm.image } }) : _vm._e(),
|
|
16810
|
-
_vm.
|
|
16820
|
+
_vm.hasTitleText
|
|
16811
16821
|
? _c("span", [_vm._v("\n " + _vm._s(_vm.badge.titleText))])
|
|
16812
16822
|
: _vm._e(),
|
|
16813
16823
|
]),
|
|
16814
|
-
_vm.
|
|
16824
|
+
_vm.hasAdditionalText
|
|
16815
16825
|
? _c("span", { staticClass: "lupa-badge-full-text" }, [
|
|
16816
16826
|
_vm._v(_vm._s(_vm.badge.additionalText)),
|
|
16817
16827
|
])
|
|
@@ -18074,7 +18084,7 @@ __decorate([
|
|
|
18074
18084
|
options$6.Getter("searchResultsRoutingBehavior")
|
|
18075
18085
|
], SearchResultsProductCard.prototype, "searchResultsRoutingBehavior", void 0);
|
|
18076
18086
|
__decorate([
|
|
18077
|
-
options$6.
|
|
18087
|
+
options$6.State((o) => o.searchResultOptions)
|
|
18078
18088
|
], SearchResultsProductCard.prototype, "searchResultOptions", void 0);
|
|
18079
18089
|
__decorate([
|
|
18080
18090
|
params$9.Getter("query")
|
|
@@ -20439,6 +20449,10 @@ let SearchResultsTitle = class SearchResultsTitle extends Vue$1 {
|
|
|
20439
20449
|
return Boolean(((_a = this.options.labels) === null || _a === void 0 ? void 0 : _a.searchResults) &&
|
|
20440
20450
|
(this.currentQueryText || this.isProductList));
|
|
20441
20451
|
}
|
|
20452
|
+
get descriptionTop() {
|
|
20453
|
+
var _a, _b;
|
|
20454
|
+
return (_b = (_a = this.options.categories) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.descriptionTop;
|
|
20455
|
+
}
|
|
20442
20456
|
getLabel(label) {
|
|
20443
20457
|
return addParamsToLabel(label, `'${this.currentQueryText}'`);
|
|
20444
20458
|
}
|
|
@@ -20473,27 +20487,36 @@ var __vue_render__$6 = function () {
|
|
|
20473
20487
|
var _vm = this;
|
|
20474
20488
|
var _h = _vm.$createElement;
|
|
20475
20489
|
var _c = _vm._self._c || _h;
|
|
20476
|
-
return
|
|
20477
|
-
|
|
20478
|
-
|
|
20479
|
-
|
|
20480
|
-
|
|
20481
|
-
|
|
20482
|
-
|
|
20483
|
-
|
|
20484
|
-
|
|
20485
|
-
|
|
20486
|
-
|
|
20487
|
-
|
|
20488
|
-
|
|
20489
|
-
|
|
20490
|
-
|
|
20491
|
-
|
|
20492
|
-
|
|
20493
|
-
|
|
20494
|
-
|
|
20495
|
-
|
|
20496
|
-
|
|
20490
|
+
return _c("div", [
|
|
20491
|
+
_vm.showSearchTitle
|
|
20492
|
+
? _c(
|
|
20493
|
+
"h1",
|
|
20494
|
+
{
|
|
20495
|
+
staticClass: "lupa-result-page-title",
|
|
20496
|
+
attrs: { "data-cy": "lupa-result-page-title" },
|
|
20497
|
+
},
|
|
20498
|
+
[
|
|
20499
|
+
_vm._v("\n " + _vm._s(_vm.options.labels.searchResults)),
|
|
20500
|
+
_vm.queryText
|
|
20501
|
+
? _c("span", [_vm._v("'" + _vm._s(_vm.queryText) + "'")])
|
|
20502
|
+
: _vm._e(),
|
|
20503
|
+
_vm._v(" "),
|
|
20504
|
+
_vm.showProductCount
|
|
20505
|
+
? _c("span", { staticClass: "lupa-results-total-count" }, [
|
|
20506
|
+
_vm._v("(" + _vm._s(_vm.totalItems) + ")"),
|
|
20507
|
+
])
|
|
20508
|
+
: _vm._e(),
|
|
20509
|
+
]
|
|
20510
|
+
)
|
|
20511
|
+
: _vm._e(),
|
|
20512
|
+
_vm._v(" "),
|
|
20513
|
+
_vm.descriptionTop
|
|
20514
|
+
? _c("div", {
|
|
20515
|
+
staticClass: "lupa-result-page-description-top",
|
|
20516
|
+
domProps: { innerHTML: _vm._s(_vm.descriptionTop) },
|
|
20517
|
+
})
|
|
20518
|
+
: _vm._e(),
|
|
20519
|
+
])
|
|
20497
20520
|
};
|
|
20498
20521
|
var __vue_staticRenderFns__$6 = [];
|
|
20499
20522
|
__vue_render__$6._withStripped = true;
|
|
@@ -9,6 +9,7 @@ export declare type SearchResultsOptions = SearchResultsProductOptions & SearchR
|
|
|
9
9
|
classMap?: Record<string, string>;
|
|
10
10
|
disallowEmptyQuery?: boolean;
|
|
11
11
|
callbacks?: SearchResultEventCallbacks;
|
|
12
|
+
categories?: CategoryFilterOptions;
|
|
12
13
|
};
|
|
13
14
|
export declare type SearchTitlePosition = "page-top" | "search-results-top";
|
|
14
15
|
export declare type SearchResultsDidYouMeanLabels = {
|
package/dist/es/index.min.js
CHANGED
|
@@ -16772,6 +16772,16 @@ let SearchResultGeneratedBadge = class SearchResultGeneratedBadge extends Vue$1
|
|
|
16772
16772
|
var _a, _b, _c;
|
|
16773
16773
|
return (_c = (_b = (_a = this.options.generate) === null || _a === void 0 ? void 0 : _a.image) === null || _b === void 0 ? void 0 : _b.call(_a, this.badge)) !== null && _c !== void 0 ? _c : "";
|
|
16774
16774
|
}
|
|
16775
|
+
get hasAdditionalText() {
|
|
16776
|
+
var _a, _b;
|
|
16777
|
+
return (Boolean((_a = this.badge) === null || _a === void 0 ? void 0 : _a.additionalText) &&
|
|
16778
|
+
typeof ((_b = this.badge) === null || _b === void 0 ? void 0 : _b.additionalText) === "string");
|
|
16779
|
+
}
|
|
16780
|
+
get hasTitleText() {
|
|
16781
|
+
var _a, _b;
|
|
16782
|
+
return (Boolean((_a = this.badge) === null || _a === void 0 ? void 0 : _a.titleText) &&
|
|
16783
|
+
typeof ((_b = this.badge) === null || _b === void 0 ? void 0 : _b.titleText) === "string");
|
|
16784
|
+
}
|
|
16775
16785
|
};
|
|
16776
16786
|
__decorate([
|
|
16777
16787
|
Prop({ default: () => ({}) })
|
|
@@ -16803,11 +16813,11 @@ var __vue_render__$z = function () {
|
|
|
16803
16813
|
[
|
|
16804
16814
|
_c("span", { staticClass: "lupa-badge-title" }, [
|
|
16805
16815
|
_vm.image ? _c("img", { attrs: { src: _vm.image } }) : _vm._e(),
|
|
16806
|
-
_vm.
|
|
16816
|
+
_vm.hasTitleText
|
|
16807
16817
|
? _c("span", [_vm._v("\n " + _vm._s(_vm.badge.titleText))])
|
|
16808
16818
|
: _vm._e(),
|
|
16809
16819
|
]),
|
|
16810
|
-
_vm.
|
|
16820
|
+
_vm.hasAdditionalText
|
|
16811
16821
|
? _c("span", { staticClass: "lupa-badge-full-text" }, [
|
|
16812
16822
|
_vm._v(_vm._s(_vm.badge.additionalText)),
|
|
16813
16823
|
])
|
|
@@ -18070,7 +18080,7 @@ __decorate([
|
|
|
18070
18080
|
options$6.Getter("searchResultsRoutingBehavior")
|
|
18071
18081
|
], SearchResultsProductCard.prototype, "searchResultsRoutingBehavior", void 0);
|
|
18072
18082
|
__decorate([
|
|
18073
|
-
options$6.
|
|
18083
|
+
options$6.State((o) => o.searchResultOptions)
|
|
18074
18084
|
], SearchResultsProductCard.prototype, "searchResultOptions", void 0);
|
|
18075
18085
|
__decorate([
|
|
18076
18086
|
params$9.Getter("query")
|
|
@@ -20435,6 +20445,10 @@ let SearchResultsTitle = class SearchResultsTitle extends Vue$1 {
|
|
|
20435
20445
|
return Boolean(((_a = this.options.labels) === null || _a === void 0 ? void 0 : _a.searchResults) &&
|
|
20436
20446
|
(this.currentQueryText || this.isProductList));
|
|
20437
20447
|
}
|
|
20448
|
+
get descriptionTop() {
|
|
20449
|
+
var _a, _b;
|
|
20450
|
+
return (_b = (_a = this.options.categories) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.descriptionTop;
|
|
20451
|
+
}
|
|
20438
20452
|
getLabel(label) {
|
|
20439
20453
|
return addParamsToLabel(label, `'${this.currentQueryText}'`);
|
|
20440
20454
|
}
|
|
@@ -20469,27 +20483,36 @@ var __vue_render__$6 = function () {
|
|
|
20469
20483
|
var _vm = this;
|
|
20470
20484
|
var _h = _vm.$createElement;
|
|
20471
20485
|
var _c = _vm._self._c || _h;
|
|
20472
|
-
return
|
|
20473
|
-
|
|
20474
|
-
|
|
20475
|
-
|
|
20476
|
-
|
|
20477
|
-
|
|
20478
|
-
|
|
20479
|
-
|
|
20480
|
-
|
|
20481
|
-
|
|
20482
|
-
|
|
20483
|
-
|
|
20484
|
-
|
|
20485
|
-
|
|
20486
|
-
|
|
20487
|
-
|
|
20488
|
-
|
|
20489
|
-
|
|
20490
|
-
|
|
20491
|
-
|
|
20492
|
-
|
|
20486
|
+
return _c("div", [
|
|
20487
|
+
_vm.showSearchTitle
|
|
20488
|
+
? _c(
|
|
20489
|
+
"h1",
|
|
20490
|
+
{
|
|
20491
|
+
staticClass: "lupa-result-page-title",
|
|
20492
|
+
attrs: { "data-cy": "lupa-result-page-title" },
|
|
20493
|
+
},
|
|
20494
|
+
[
|
|
20495
|
+
_vm._v("\n " + _vm._s(_vm.options.labels.searchResults)),
|
|
20496
|
+
_vm.queryText
|
|
20497
|
+
? _c("span", [_vm._v("'" + _vm._s(_vm.queryText) + "'")])
|
|
20498
|
+
: _vm._e(),
|
|
20499
|
+
_vm._v(" "),
|
|
20500
|
+
_vm.showProductCount
|
|
20501
|
+
? _c("span", { staticClass: "lupa-results-total-count" }, [
|
|
20502
|
+
_vm._v("(" + _vm._s(_vm.totalItems) + ")"),
|
|
20503
|
+
])
|
|
20504
|
+
: _vm._e(),
|
|
20505
|
+
]
|
|
20506
|
+
)
|
|
20507
|
+
: _vm._e(),
|
|
20508
|
+
_vm._v(" "),
|
|
20509
|
+
_vm.descriptionTop
|
|
20510
|
+
? _c("div", {
|
|
20511
|
+
staticClass: "lupa-result-page-description-top",
|
|
20512
|
+
domProps: { innerHTML: _vm._s(_vm.descriptionTop) },
|
|
20513
|
+
})
|
|
20514
|
+
: _vm._e(),
|
|
20515
|
+
])
|
|
20493
20516
|
};
|
|
20494
20517
|
var __vue_staticRenderFns__$6 = [];
|
|
20495
20518
|
__vue_render__$6._withStripped = true;
|
|
@@ -9,6 +9,7 @@ export declare type SearchResultsOptions = SearchResultsProductOptions & SearchR
|
|
|
9
9
|
classMap?: Record<string, string>;
|
|
10
10
|
disallowEmptyQuery?: boolean;
|
|
11
11
|
callbacks?: SearchResultEventCallbacks;
|
|
12
|
+
categories?: CategoryFilterOptions;
|
|
12
13
|
};
|
|
13
14
|
export declare type SearchTitlePosition = "page-top" | "search-results-top";
|
|
14
15
|
export declare type SearchResultsDidYouMeanLabels = {
|