@getlupa/client 0.5.1-alpha-11 → 0.5.1-alpha-12
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/SearchResults.vue.d.ts +2 -0
- package/dist/cjs/index.min.js +5 -1
- package/dist/es/components/search-results/SearchResults.vue.d.ts +2 -0
- package/dist/es/index.min.js +5 -1
- package/dist/iife/components/search-results/SearchResults.vue.d.ts +2 -0
- package/dist/iife/index.min.js +1 -1
- package/package.json +1 -1
|
@@ -8,6 +8,8 @@ export default class SearchResults extends Vue {
|
|
|
8
8
|
isProductList: boolean;
|
|
9
9
|
get productsOptions(): SearchResultsProductOptions;
|
|
10
10
|
currentQueryText: string;
|
|
11
|
+
hasResults: boolean;
|
|
12
|
+
currentFilterCount: number;
|
|
11
13
|
get didYouMeanLabels(): SearchResultsDidYouMeanLabels;
|
|
12
14
|
get showFilterSidebar(): boolean;
|
|
13
15
|
get isTitleResultTopPosition(): boolean;
|
package/dist/cjs/index.min.js
CHANGED
|
@@ -32385,7 +32385,7 @@ var SearchResults = /*#__PURE__*/function (_Vue) {
|
|
|
32385
32385
|
get: function get() {
|
|
32386
32386
|
var _a, _b, _c;
|
|
32387
32387
|
|
|
32388
|
-
return ((_c = (_b = (_a = this.options.filters) === null || _a === void 0 ? void 0 : _a.facets) === null || _b === void 0 ? void 0 : _b.style) === null || _c === void 0 ? void 0 : _c.type) === "sidebar";
|
|
32388
|
+
return ((_c = (_b = (_a = this.options.filters) === null || _a === void 0 ? void 0 : _a.facets) === null || _b === void 0 ? void 0 : _b.style) === null || _c === void 0 ? void 0 : _c.type) === "sidebar" && (this.hasResults || this.currentFilterCount > 0);
|
|
32389
32389
|
}
|
|
32390
32390
|
}, {
|
|
32391
32391
|
key: "isTitleResultTopPosition",
|
|
@@ -32531,6 +32531,10 @@ __decorate([Prop({
|
|
|
32531
32531
|
|
|
32532
32532
|
__decorate([searchResult$1.Getter("currentQueryText")], SearchResults.prototype, "currentQueryText", void 0);
|
|
32533
32533
|
|
|
32534
|
+
__decorate([searchResult$1.Getter("hasResults")], SearchResults.prototype, "hasResults", void 0);
|
|
32535
|
+
|
|
32536
|
+
__decorate([searchResult$1.Getter("currentFilterCount")], SearchResults.prototype, "currentFilterCount", void 0);
|
|
32537
|
+
|
|
32534
32538
|
__decorate([tracking$2.Action("trackSearch")], SearchResults.prototype, "trackSearch", void 0);
|
|
32535
32539
|
|
|
32536
32540
|
__decorate([tracking$2.Action("trackResults")], SearchResults.prototype, "trackResults", void 0);
|
|
@@ -8,6 +8,8 @@ export default class SearchResults extends Vue {
|
|
|
8
8
|
isProductList: boolean;
|
|
9
9
|
get productsOptions(): SearchResultsProductOptions;
|
|
10
10
|
currentQueryText: string;
|
|
11
|
+
hasResults: boolean;
|
|
12
|
+
currentFilterCount: number;
|
|
11
13
|
get didYouMeanLabels(): SearchResultsDidYouMeanLabels;
|
|
12
14
|
get showFilterSidebar(): boolean;
|
|
13
15
|
get isTitleResultTopPosition(): boolean;
|
package/dist/es/index.min.js
CHANGED
|
@@ -32381,7 +32381,7 @@ var SearchResults = /*#__PURE__*/function (_Vue) {
|
|
|
32381
32381
|
get: function get() {
|
|
32382
32382
|
var _a, _b, _c;
|
|
32383
32383
|
|
|
32384
|
-
return ((_c = (_b = (_a = this.options.filters) === null || _a === void 0 ? void 0 : _a.facets) === null || _b === void 0 ? void 0 : _b.style) === null || _c === void 0 ? void 0 : _c.type) === "sidebar";
|
|
32384
|
+
return ((_c = (_b = (_a = this.options.filters) === null || _a === void 0 ? void 0 : _a.facets) === null || _b === void 0 ? void 0 : _b.style) === null || _c === void 0 ? void 0 : _c.type) === "sidebar" && (this.hasResults || this.currentFilterCount > 0);
|
|
32385
32385
|
}
|
|
32386
32386
|
}, {
|
|
32387
32387
|
key: "isTitleResultTopPosition",
|
|
@@ -32527,6 +32527,10 @@ __decorate([Prop({
|
|
|
32527
32527
|
|
|
32528
32528
|
__decorate([searchResult$1.Getter("currentQueryText")], SearchResults.prototype, "currentQueryText", void 0);
|
|
32529
32529
|
|
|
32530
|
+
__decorate([searchResult$1.Getter("hasResults")], SearchResults.prototype, "hasResults", void 0);
|
|
32531
|
+
|
|
32532
|
+
__decorate([searchResult$1.Getter("currentFilterCount")], SearchResults.prototype, "currentFilterCount", void 0);
|
|
32533
|
+
|
|
32530
32534
|
__decorate([tracking$2.Action("trackSearch")], SearchResults.prototype, "trackSearch", void 0);
|
|
32531
32535
|
|
|
32532
32536
|
__decorate([tracking$2.Action("trackResults")], SearchResults.prototype, "trackResults", void 0);
|
|
@@ -8,6 +8,8 @@ export default class SearchResults extends Vue {
|
|
|
8
8
|
isProductList: boolean;
|
|
9
9
|
get productsOptions(): SearchResultsProductOptions;
|
|
10
10
|
currentQueryText: string;
|
|
11
|
+
hasResults: boolean;
|
|
12
|
+
currentFilterCount: number;
|
|
11
13
|
get didYouMeanLabels(): SearchResultsDidYouMeanLabels;
|
|
12
14
|
get showFilterSidebar(): boolean;
|
|
13
15
|
get isTitleResultTopPosition(): boolean;
|