@getlupa/client 0.7.0-alpha-14 → 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/index.min.js +34 -21
- 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/index.min.js +34 -21
- 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/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
|
@@ -20449,6 +20449,10 @@ let SearchResultsTitle = class SearchResultsTitle extends Vue$1 {
|
|
|
20449
20449
|
return Boolean(((_a = this.options.labels) === null || _a === void 0 ? void 0 : _a.searchResults) &&
|
|
20450
20450
|
(this.currentQueryText || this.isProductList));
|
|
20451
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
|
+
}
|
|
20452
20456
|
getLabel(label) {
|
|
20453
20457
|
return addParamsToLabel(label, `'${this.currentQueryText}'`);
|
|
20454
20458
|
}
|
|
@@ -20483,27 +20487,36 @@ var __vue_render__$6 = function () {
|
|
|
20483
20487
|
var _vm = this;
|
|
20484
20488
|
var _h = _vm.$createElement;
|
|
20485
20489
|
var _c = _vm._self._c || _h;
|
|
20486
|
-
return
|
|
20487
|
-
|
|
20488
|
-
|
|
20489
|
-
|
|
20490
|
-
|
|
20491
|
-
|
|
20492
|
-
|
|
20493
|
-
|
|
20494
|
-
|
|
20495
|
-
|
|
20496
|
-
|
|
20497
|
-
|
|
20498
|
-
|
|
20499
|
-
|
|
20500
|
-
|
|
20501
|
-
|
|
20502
|
-
|
|
20503
|
-
|
|
20504
|
-
|
|
20505
|
-
|
|
20506
|
-
|
|
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
|
+
])
|
|
20507
20520
|
};
|
|
20508
20521
|
var __vue_staticRenderFns__$6 = [];
|
|
20509
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
|
@@ -20445,6 +20445,10 @@ let SearchResultsTitle = class SearchResultsTitle extends Vue$1 {
|
|
|
20445
20445
|
return Boolean(((_a = this.options.labels) === null || _a === void 0 ? void 0 : _a.searchResults) &&
|
|
20446
20446
|
(this.currentQueryText || this.isProductList));
|
|
20447
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
|
+
}
|
|
20448
20452
|
getLabel(label) {
|
|
20449
20453
|
return addParamsToLabel(label, `'${this.currentQueryText}'`);
|
|
20450
20454
|
}
|
|
@@ -20479,27 +20483,36 @@ var __vue_render__$6 = function () {
|
|
|
20479
20483
|
var _vm = this;
|
|
20480
20484
|
var _h = _vm.$createElement;
|
|
20481
20485
|
var _c = _vm._self._c || _h;
|
|
20482
|
-
return
|
|
20483
|
-
|
|
20484
|
-
|
|
20485
|
-
|
|
20486
|
-
|
|
20487
|
-
|
|
20488
|
-
|
|
20489
|
-
|
|
20490
|
-
|
|
20491
|
-
|
|
20492
|
-
|
|
20493
|
-
|
|
20494
|
-
|
|
20495
|
-
|
|
20496
|
-
|
|
20497
|
-
|
|
20498
|
-
|
|
20499
|
-
|
|
20500
|
-
|
|
20501
|
-
|
|
20502
|
-
|
|
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
|
+
])
|
|
20503
20516
|
};
|
|
20504
20517
|
var __vue_staticRenderFns__$6 = [];
|
|
20505
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 = {
|