@getlupa/client 0.5.1-alpha-18 → 0.5.1-alpha-21
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/pagination/SearchResultsPageSelect.vue.d.ts +2 -1
- package/dist/cjs/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +2 -0
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.min.js +34 -19
- package/dist/cjs/store/modules/options.d.ts +1 -0
- package/dist/cjs/types/search-results/SearchResultsPagination.d.ts +2 -1
- package/dist/es/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts +2 -1
- package/dist/es/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +2 -0
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.min.js +34 -19
- package/dist/es/store/modules/options.d.ts +1 -0
- package/dist/es/types/search-results/SearchResultsPagination.d.ts +2 -1
- package/dist/iife/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts +2 -1
- package/dist/iife/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +2 -0
- package/dist/iife/index.d.ts +2 -2
- package/dist/iife/index.min.js +1 -1
- package/dist/iife/store/modules/options.d.ts +1 -0
- package/dist/iife/types/search-results/SearchResultsPagination.d.ts +2 -1
- package/package.json +1 -1
package/dist/cjs/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import { PaginationPageSelect } from "@/types/search-results/PaginationOptions";
|
|
|
2
2
|
import { QueryParams } from "@/types/search-results/QueryParams";
|
|
3
3
|
import Vue from "vue";
|
|
4
4
|
export default class SearchResultsPageSelect extends Vue {
|
|
5
|
-
|
|
5
|
+
lastPageLabel: string;
|
|
6
|
+
firstPageLabel: string;
|
|
6
7
|
options: PaginationPageSelect;
|
|
7
8
|
get pages(): number[];
|
|
8
9
|
get lastPage(): number | undefined;
|
package/dist/cjs/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { DocumentElement } from "@/types/DocumentElement";
|
|
|
2
2
|
import { TrackableEventData } from "@/types/search-box/Common";
|
|
3
3
|
import { BadgeOptions } from "@/types/search-results/BadgeOptions";
|
|
4
4
|
import { ResultsLayout } from "@/types/search-results/ResultsLayout";
|
|
5
|
+
import { RoutingBehavior } from "@/types/search-results/RoutingBehavior";
|
|
5
6
|
import { SearchResultsOptionLabels } from "@/types/search-results/SearchResultsOptions";
|
|
6
7
|
import { SearchResultsProductCardOptions } from "@/types/search-results/SearchResultsProductCardOptions";
|
|
7
8
|
import { Document, ReportableEventType } from "@getlupa/client-sdk/Types";
|
|
@@ -11,6 +12,7 @@ export default class SearchResultsProductCard extends Vue {
|
|
|
11
12
|
options: SearchResultsProductCardOptions;
|
|
12
13
|
isAdditionalPanel: boolean;
|
|
13
14
|
layout: ResultsLayout;
|
|
15
|
+
searchResultsRoutingBehavior: RoutingBehavior;
|
|
14
16
|
query: string;
|
|
15
17
|
trackClick: ({ queryKey, data, }: {
|
|
16
18
|
queryKey: string;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { SearchBoxOptions } from "./types/search-box/SearchBoxOptions";
|
|
|
2
2
|
import { FacetStyle, SearchResultsOptions } from "./types/search-results/SearchResultsOptions";
|
|
3
3
|
import { SdkOptions, TrackingOptions, Environment, SortDirection } from "./types/General";
|
|
4
4
|
import { ProductListOptions } from "./types/product-list/ProductListOptions";
|
|
5
|
-
import { DocumentElementType } from "./types/DocumentElement";
|
|
5
|
+
import { AddToCartElement, CustomDocumentElement, CustomHtmlElement, DescriptionDocumentElement, DocumentElement, DocumentElementType, ImageDocumentElement, PriceElement, RatingElement, RegularPriceDocumentElement, TitleDocumentElement } from "./types/DocumentElement";
|
|
6
6
|
import { SearchBoxPanelType } from "./types/search-box/SearchBoxPanel";
|
|
7
7
|
import { RoutingBehavior } from "./types/search-results/RoutingBehavior";
|
|
8
8
|
import { AnchorPosition } from "./types/search-results/SearchResultsProductCardOptions";
|
|
@@ -16,5 +16,5 @@ declare const lupaSearch: {
|
|
|
16
16
|
clearSearchResults: () => void;
|
|
17
17
|
clearProductList: () => void;
|
|
18
18
|
};
|
|
19
|
-
export { TrackingOptions, SearchBoxOptions, SearchResultsOptions, ProductListOptions, SdkOptions, DocumentElementType, SearchBoxPanelType, FacetStyle, Environment, RoutingBehavior, AnchorPosition, BadgeType, SortDirection, };
|
|
19
|
+
export { TrackingOptions, SearchBoxOptions, SearchResultsOptions, ProductListOptions, SdkOptions, DocumentElementType, SearchBoxPanelType, FacetStyle, Environment, RoutingBehavior, AnchorPosition, BadgeType, SortDirection, DocumentElement, ImageDocumentElement, TitleDocumentElement, DescriptionDocumentElement, CustomDocumentElement, PriceElement, RegularPriceDocumentElement, RatingElement, AddToCartElement, CustomHtmlElement, };
|
|
20
20
|
export default lupaSearch;
|
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$a = 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$a.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$9 = 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$9.Mutation("setSearchBoxOptions")], SearchBox.prototype, "setSearchBoxOptions", void 0);
|
|
23965
23965
|
|
|
23966
23966
|
__decorate([params$d.Action("goToResults")], SearchBox.prototype, "goToResults", void 0);
|
|
23967
23967
|
|
|
@@ -25610,7 +25610,7 @@ var toggleHierarchyParam = function toggleHierarchyParam() {
|
|
|
25610
25610
|
|
|
25611
25611
|
var searchResult$g = namespace("searchResult");
|
|
25612
25612
|
var params$c = namespace("params");
|
|
25613
|
-
var options$
|
|
25613
|
+
var options$8 = namespace("options");
|
|
25614
25614
|
|
|
25615
25615
|
var CurrentFilters = /*#__PURE__*/function (_Vue) {
|
|
25616
25616
|
_inherits(CurrentFilters, _Vue);
|
|
@@ -25687,7 +25687,7 @@ __decorate([searchResult$g.Getter("displayFilters")], CurrentFilters.prototype,
|
|
|
25687
25687
|
|
|
25688
25688
|
__decorate([searchResult$g.Getter("currentFilterCount")], CurrentFilters.prototype, "currentFilterCount", void 0);
|
|
25689
25689
|
|
|
25690
|
-
__decorate([options$
|
|
25690
|
+
__decorate([options$8.Getter("initialFilters")], CurrentFilters.prototype, "initialFilters", void 0);
|
|
25691
25691
|
|
|
25692
25692
|
__decorate([params$c.Action("removeParams")], CurrentFilters.prototype, "removeParams", void 0);
|
|
25693
25693
|
|
|
@@ -28622,7 +28622,7 @@ var _typeof = _typeof$2.exports.default;
|
|
|
28622
28622
|
|
|
28623
28623
|
var VueSlider = /*@__PURE__*/getDefaultExportFromCjs(vueSliderComponent_umd_min.exports);
|
|
28624
28624
|
|
|
28625
|
-
var options$
|
|
28625
|
+
var options$7 = namespace("options");
|
|
28626
28626
|
|
|
28627
28627
|
var TermFacet = /*#__PURE__*/function (_Vue) {
|
|
28628
28628
|
_inherits(TermFacet, _Vue);
|
|
@@ -28829,7 +28829,7 @@ __decorate([Prop({
|
|
|
28829
28829
|
}
|
|
28830
28830
|
})], TermFacet.prototype, "currentFilters", void 0);
|
|
28831
28831
|
|
|
28832
|
-
__decorate([options$
|
|
28832
|
+
__decorate([options$7.State(function (s) {
|
|
28833
28833
|
return s.searchResultOptions;
|
|
28834
28834
|
})], TermFacet.prototype, "searchResultOptions", void 0);
|
|
28835
28835
|
|
|
@@ -29945,7 +29945,7 @@ var __vue_component__$F = /*#__PURE__*/normalizeComponent({
|
|
|
29945
29945
|
staticRenderFns: __vue_staticRenderFns__$F
|
|
29946
29946
|
}, __vue_inject_styles__$F, __vue_script__$F, __vue_scope_id__$F, __vue_is_functional_template__$F, __vue_module_identifier__$F, false, undefined, undefined, undefined);
|
|
29947
29947
|
|
|
29948
|
-
var options$
|
|
29948
|
+
var options$6 = namespace("options");
|
|
29949
29949
|
|
|
29950
29950
|
var CategoryFilter = /*#__PURE__*/function (_Vue) {
|
|
29951
29951
|
_inherits(CategoryFilter, _Vue);
|
|
@@ -30075,7 +30075,7 @@ var CategoryFilter = /*#__PURE__*/function (_Vue) {
|
|
|
30075
30075
|
|
|
30076
30076
|
__decorate([Prop()], CategoryFilter.prototype, "options", void 0);
|
|
30077
30077
|
|
|
30078
|
-
__decorate([options$
|
|
30078
|
+
__decorate([options$6.Getter("envOptions")], CategoryFilter.prototype, "envOptions", void 0);
|
|
30079
30079
|
|
|
30080
30080
|
CategoryFilter = __decorate([Component({
|
|
30081
30081
|
name: "categoryFilter",
|
|
@@ -31062,7 +31062,7 @@ var __vue_component__$w = /*#__PURE__*/normalizeComponent({
|
|
|
31062
31062
|
staticRenderFns: __vue_staticRenderFns__$w
|
|
31063
31063
|
}, __vue_inject_styles__$w, __vue_script__$w, __vue_scope_id__$w, __vue_is_functional_template__$w, __vue_module_identifier__$w, false, undefined, undefined, undefined);
|
|
31064
31064
|
|
|
31065
|
-
var options$
|
|
31065
|
+
var options$5 = namespace("options");
|
|
31066
31066
|
|
|
31067
31067
|
var SearchResultsProductTitle = /*#__PURE__*/function (_Vue) {
|
|
31068
31068
|
_inherits(SearchResultsProductTitle, _Vue);
|
|
@@ -31115,7 +31115,7 @@ __decorate([Prop({
|
|
|
31115
31115
|
default: ""
|
|
31116
31116
|
})], SearchResultsProductTitle.prototype, "link", void 0);
|
|
31117
31117
|
|
|
31118
|
-
__decorate([options$
|
|
31118
|
+
__decorate([options$5.State(function (o) {
|
|
31119
31119
|
return o.searchResultOptions;
|
|
31120
31120
|
})], SearchResultsProductTitle.prototype, "searchResultOptions", void 0);
|
|
31121
31121
|
|
|
@@ -32026,6 +32026,7 @@ var __vue_component__$n = /*#__PURE__*/normalizeComponent({
|
|
|
32026
32026
|
var tracking$3 = namespace("tracking");
|
|
32027
32027
|
var params$9 = namespace("params");
|
|
32028
32028
|
var searchResult$b = namespace("searchResult");
|
|
32029
|
+
var options$4 = namespace("options");
|
|
32029
32030
|
|
|
32030
32031
|
var SearchResultsProductCard = /*#__PURE__*/function (_Vue) {
|
|
32031
32032
|
_inherits(SearchResultsProductCard, _Vue);
|
|
@@ -32091,7 +32092,7 @@ var SearchResultsProductCard = /*#__PURE__*/function (_Vue) {
|
|
|
32091
32092
|
}, {
|
|
32092
32093
|
key: "hasEventRouting",
|
|
32093
32094
|
get: function get() {
|
|
32094
|
-
return this.
|
|
32095
|
+
return this.searchResultsRoutingBehavior === "event";
|
|
32095
32096
|
}
|
|
32096
32097
|
}, {
|
|
32097
32098
|
key: "mounted",
|
|
@@ -32196,6 +32197,8 @@ __decorate([searchResult$b.State(function (state) {
|
|
|
32196
32197
|
return state.layout;
|
|
32197
32198
|
})], SearchResultsProductCard.prototype, "layout", void 0);
|
|
32198
32199
|
|
|
32200
|
+
__decorate([options$4.Getter("searchResultsRoutingBehavior")], SearchResultsProductCard.prototype, "searchResultsRoutingBehavior", void 0);
|
|
32201
|
+
|
|
32199
32202
|
__decorate([params$9.Getter("query")], SearchResultsProductCard.prototype, "query", void 0);
|
|
32200
32203
|
|
|
32201
32204
|
__decorate([tracking$3.Action("track")], SearchResultsProductCard.prototype, "trackClick", void 0);
|
|
@@ -32973,7 +32976,11 @@ var SearchResultsPageSelect = /*#__PURE__*/function (_Vue) {
|
|
|
32973
32976
|
|
|
32974
32977
|
__decorate([Prop({
|
|
32975
32978
|
default: ">"
|
|
32976
|
-
})], SearchResultsPageSelect.prototype, "
|
|
32979
|
+
})], SearchResultsPageSelect.prototype, "lastPageLabel", void 0);
|
|
32980
|
+
|
|
32981
|
+
__decorate([Prop({
|
|
32982
|
+
default: "<"
|
|
32983
|
+
})], SearchResultsPageSelect.prototype, "firstPageLabel", void 0);
|
|
32977
32984
|
|
|
32978
32985
|
__decorate([Prop({
|
|
32979
32986
|
default: {}
|
|
@@ -33003,13 +33010,13 @@ var __vue_render__$i = function __vue_render__() {
|
|
|
33003
33010
|
"data-cy": "lupa-search-results-page-select"
|
|
33004
33011
|
}
|
|
33005
33012
|
}, [_vm.options.selectedPage > 1 ? _c("div", {
|
|
33006
|
-
|
|
33013
|
+
class: _vm.firstPageLabel === "<" ? "lupa-page-arrow" : "lupa-show-less",
|
|
33007
33014
|
on: {
|
|
33008
33015
|
click: function click() {
|
|
33009
33016
|
return _vm.handlePageChange(_vm.options.selectedPage - 1);
|
|
33010
33017
|
}
|
|
33011
33018
|
}
|
|
33012
|
-
}, [_vm._v("\n
|
|
33019
|
+
}, [_vm._v("\n " + _vm._s(_vm.firstPageLabel) + "\n ")]) : _vm._e(), _vm._v(" "), _vm.showFirstPage ? [_c("div", {
|
|
33013
33020
|
staticClass: "lupa-page-number lupa-page-number-first",
|
|
33014
33021
|
on: {
|
|
33015
33022
|
click: function click() {
|
|
@@ -33041,7 +33048,7 @@ var __vue_render__$i = function __vue_render__() {
|
|
|
33041
33048
|
}
|
|
33042
33049
|
}
|
|
33043
33050
|
}, [_vm._v("\n " + _vm._s(_vm.lastPage) + "\n ")])] : _vm._e(), _vm._v(" "), _vm.options.selectedPage < _vm.options.count ? _c("div", {
|
|
33044
|
-
class: _vm.
|
|
33051
|
+
class: _vm.lastPageLabel === ">" ? "lupa-page-arrow" : "lupa-show-more",
|
|
33045
33052
|
attrs: {
|
|
33046
33053
|
"data-cy": "lupa-show-more"
|
|
33047
33054
|
},
|
|
@@ -33050,7 +33057,7 @@ var __vue_render__$i = function __vue_render__() {
|
|
|
33050
33057
|
return _vm.handlePageChange(_vm.options.selectedPage + 1);
|
|
33051
33058
|
}
|
|
33052
33059
|
}
|
|
33053
|
-
}, [_vm._v("\n " + _vm._s(_vm.
|
|
33060
|
+
}, [_vm._v("\n " + _vm._s(_vm.lastPageLabel) + "\n ")]) : _vm._e()], 2);
|
|
33054
33061
|
};
|
|
33055
33062
|
|
|
33056
33063
|
var __vue_staticRenderFns__$i = [];
|
|
@@ -33721,7 +33728,8 @@ var __vue_render__$d = function __vue_render__() {
|
|
|
33721
33728
|
}) : _c("div"), _vm._v(" "), _vm.displayPageSelect ? _c("SearchResultsPageSelect", {
|
|
33722
33729
|
attrs: {
|
|
33723
33730
|
options: _vm.paginationOptions.pageSelect,
|
|
33724
|
-
label: _vm.paginationOptions.labels.showMore
|
|
33731
|
+
"last-page-label": _vm.paginationOptions.labels.showMore,
|
|
33732
|
+
"first-page-label": _vm.paginationOptions.labels.showLess
|
|
33725
33733
|
}
|
|
33726
33734
|
}) : _c("div")], 1), _vm._v(" "), _c("div", {
|
|
33727
33735
|
staticClass: "lupa-toolbar-right"
|
|
@@ -36899,6 +36907,13 @@ var OptionsModule = /*#__PURE__*/function (_VuexModule) {
|
|
|
36899
36907
|
|
|
36900
36908
|
return (_a = this.searchBoxOptions.routingBehavior) !== null && _a !== void 0 ? _a : "direct-link";
|
|
36901
36909
|
}
|
|
36910
|
+
}, {
|
|
36911
|
+
key: "searchResultsRoutingBehavior",
|
|
36912
|
+
get: function get() {
|
|
36913
|
+
var _a;
|
|
36914
|
+
|
|
36915
|
+
return (_a = this.searchResultOptions.routingBehavior) !== null && _a !== void 0 ? _a : "direct-link";
|
|
36916
|
+
}
|
|
36902
36917
|
}, {
|
|
36903
36918
|
key: "defaultSearchResultPageSize",
|
|
36904
36919
|
get: function get() {
|
|
@@ -11,6 +11,7 @@ export default class OptionsModule extends VuexModule {
|
|
|
11
11
|
get classMap(): Record<string, string>;
|
|
12
12
|
get initialFilters(): FilterGroup;
|
|
13
13
|
get boxRoutingBehavior(): RoutingBehavior;
|
|
14
|
+
get searchResultsRoutingBehavior(): RoutingBehavior;
|
|
14
15
|
get defaultSearchResultPageSize(): number;
|
|
15
16
|
setSearchBoxOptions({ options }: {
|
|
16
17
|
options: SearchBoxOptions;
|
package/dist/es/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import { PaginationPageSelect } from "@/types/search-results/PaginationOptions";
|
|
|
2
2
|
import { QueryParams } from "@/types/search-results/QueryParams";
|
|
3
3
|
import Vue from "vue";
|
|
4
4
|
export default class SearchResultsPageSelect extends Vue {
|
|
5
|
-
|
|
5
|
+
lastPageLabel: string;
|
|
6
|
+
firstPageLabel: string;
|
|
6
7
|
options: PaginationPageSelect;
|
|
7
8
|
get pages(): number[];
|
|
8
9
|
get lastPage(): number | undefined;
|
package/dist/es/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { DocumentElement } from "@/types/DocumentElement";
|
|
|
2
2
|
import { TrackableEventData } from "@/types/search-box/Common";
|
|
3
3
|
import { BadgeOptions } from "@/types/search-results/BadgeOptions";
|
|
4
4
|
import { ResultsLayout } from "@/types/search-results/ResultsLayout";
|
|
5
|
+
import { RoutingBehavior } from "@/types/search-results/RoutingBehavior";
|
|
5
6
|
import { SearchResultsOptionLabels } from "@/types/search-results/SearchResultsOptions";
|
|
6
7
|
import { SearchResultsProductCardOptions } from "@/types/search-results/SearchResultsProductCardOptions";
|
|
7
8
|
import { Document, ReportableEventType } from "@getlupa/client-sdk/Types";
|
|
@@ -11,6 +12,7 @@ export default class SearchResultsProductCard extends Vue {
|
|
|
11
12
|
options: SearchResultsProductCardOptions;
|
|
12
13
|
isAdditionalPanel: boolean;
|
|
13
14
|
layout: ResultsLayout;
|
|
15
|
+
searchResultsRoutingBehavior: RoutingBehavior;
|
|
14
16
|
query: string;
|
|
15
17
|
trackClick: ({ queryKey, data, }: {
|
|
16
18
|
queryKey: string;
|
package/dist/es/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { SearchBoxOptions } from "./types/search-box/SearchBoxOptions";
|
|
|
2
2
|
import { FacetStyle, SearchResultsOptions } from "./types/search-results/SearchResultsOptions";
|
|
3
3
|
import { SdkOptions, TrackingOptions, Environment, SortDirection } from "./types/General";
|
|
4
4
|
import { ProductListOptions } from "./types/product-list/ProductListOptions";
|
|
5
|
-
import { DocumentElementType } from "./types/DocumentElement";
|
|
5
|
+
import { AddToCartElement, CustomDocumentElement, CustomHtmlElement, DescriptionDocumentElement, DocumentElement, DocumentElementType, ImageDocumentElement, PriceElement, RatingElement, RegularPriceDocumentElement, TitleDocumentElement } from "./types/DocumentElement";
|
|
6
6
|
import { SearchBoxPanelType } from "./types/search-box/SearchBoxPanel";
|
|
7
7
|
import { RoutingBehavior } from "./types/search-results/RoutingBehavior";
|
|
8
8
|
import { AnchorPosition } from "./types/search-results/SearchResultsProductCardOptions";
|
|
@@ -16,5 +16,5 @@ declare const lupaSearch: {
|
|
|
16
16
|
clearSearchResults: () => void;
|
|
17
17
|
clearProductList: () => void;
|
|
18
18
|
};
|
|
19
|
-
export { TrackingOptions, SearchBoxOptions, SearchResultsOptions, ProductListOptions, SdkOptions, DocumentElementType, SearchBoxPanelType, FacetStyle, Environment, RoutingBehavior, AnchorPosition, BadgeType, SortDirection, };
|
|
19
|
+
export { TrackingOptions, SearchBoxOptions, SearchResultsOptions, ProductListOptions, SdkOptions, DocumentElementType, SearchBoxPanelType, FacetStyle, Environment, RoutingBehavior, AnchorPosition, BadgeType, SortDirection, DocumentElement, ImageDocumentElement, TitleDocumentElement, DescriptionDocumentElement, CustomDocumentElement, PriceElement, RegularPriceDocumentElement, RatingElement, AddToCartElement, CustomHtmlElement, };
|
|
20
20
|
export default lupaSearch;
|
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$a = 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$a.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$9 = 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$9.Mutation("setSearchBoxOptions")], SearchBox.prototype, "setSearchBoxOptions", void 0);
|
|
23961
23961
|
|
|
23962
23962
|
__decorate([params$d.Action("goToResults")], SearchBox.prototype, "goToResults", void 0);
|
|
23963
23963
|
|
|
@@ -25606,7 +25606,7 @@ var toggleHierarchyParam = function toggleHierarchyParam() {
|
|
|
25606
25606
|
|
|
25607
25607
|
var searchResult$g = namespace("searchResult");
|
|
25608
25608
|
var params$c = namespace("params");
|
|
25609
|
-
var options$
|
|
25609
|
+
var options$8 = namespace("options");
|
|
25610
25610
|
|
|
25611
25611
|
var CurrentFilters = /*#__PURE__*/function (_Vue) {
|
|
25612
25612
|
_inherits(CurrentFilters, _Vue);
|
|
@@ -25683,7 +25683,7 @@ __decorate([searchResult$g.Getter("displayFilters")], CurrentFilters.prototype,
|
|
|
25683
25683
|
|
|
25684
25684
|
__decorate([searchResult$g.Getter("currentFilterCount")], CurrentFilters.prototype, "currentFilterCount", void 0);
|
|
25685
25685
|
|
|
25686
|
-
__decorate([options$
|
|
25686
|
+
__decorate([options$8.Getter("initialFilters")], CurrentFilters.prototype, "initialFilters", void 0);
|
|
25687
25687
|
|
|
25688
25688
|
__decorate([params$c.Action("removeParams")], CurrentFilters.prototype, "removeParams", void 0);
|
|
25689
25689
|
|
|
@@ -28618,7 +28618,7 @@ var _typeof = _typeof$2.exports.default;
|
|
|
28618
28618
|
|
|
28619
28619
|
var VueSlider = /*@__PURE__*/getDefaultExportFromCjs(vueSliderComponent_umd_min.exports);
|
|
28620
28620
|
|
|
28621
|
-
var options$
|
|
28621
|
+
var options$7 = namespace("options");
|
|
28622
28622
|
|
|
28623
28623
|
var TermFacet = /*#__PURE__*/function (_Vue) {
|
|
28624
28624
|
_inherits(TermFacet, _Vue);
|
|
@@ -28825,7 +28825,7 @@ __decorate([Prop({
|
|
|
28825
28825
|
}
|
|
28826
28826
|
})], TermFacet.prototype, "currentFilters", void 0);
|
|
28827
28827
|
|
|
28828
|
-
__decorate([options$
|
|
28828
|
+
__decorate([options$7.State(function (s) {
|
|
28829
28829
|
return s.searchResultOptions;
|
|
28830
28830
|
})], TermFacet.prototype, "searchResultOptions", void 0);
|
|
28831
28831
|
|
|
@@ -29941,7 +29941,7 @@ var __vue_component__$F = /*#__PURE__*/normalizeComponent({
|
|
|
29941
29941
|
staticRenderFns: __vue_staticRenderFns__$F
|
|
29942
29942
|
}, __vue_inject_styles__$F, __vue_script__$F, __vue_scope_id__$F, __vue_is_functional_template__$F, __vue_module_identifier__$F, false, undefined, undefined, undefined);
|
|
29943
29943
|
|
|
29944
|
-
var options$
|
|
29944
|
+
var options$6 = namespace("options");
|
|
29945
29945
|
|
|
29946
29946
|
var CategoryFilter = /*#__PURE__*/function (_Vue) {
|
|
29947
29947
|
_inherits(CategoryFilter, _Vue);
|
|
@@ -30071,7 +30071,7 @@ var CategoryFilter = /*#__PURE__*/function (_Vue) {
|
|
|
30071
30071
|
|
|
30072
30072
|
__decorate([Prop()], CategoryFilter.prototype, "options", void 0);
|
|
30073
30073
|
|
|
30074
|
-
__decorate([options$
|
|
30074
|
+
__decorate([options$6.Getter("envOptions")], CategoryFilter.prototype, "envOptions", void 0);
|
|
30075
30075
|
|
|
30076
30076
|
CategoryFilter = __decorate([Component({
|
|
30077
30077
|
name: "categoryFilter",
|
|
@@ -31058,7 +31058,7 @@ var __vue_component__$w = /*#__PURE__*/normalizeComponent({
|
|
|
31058
31058
|
staticRenderFns: __vue_staticRenderFns__$w
|
|
31059
31059
|
}, __vue_inject_styles__$w, __vue_script__$w, __vue_scope_id__$w, __vue_is_functional_template__$w, __vue_module_identifier__$w, false, undefined, undefined, undefined);
|
|
31060
31060
|
|
|
31061
|
-
var options$
|
|
31061
|
+
var options$5 = namespace("options");
|
|
31062
31062
|
|
|
31063
31063
|
var SearchResultsProductTitle = /*#__PURE__*/function (_Vue) {
|
|
31064
31064
|
_inherits(SearchResultsProductTitle, _Vue);
|
|
@@ -31111,7 +31111,7 @@ __decorate([Prop({
|
|
|
31111
31111
|
default: ""
|
|
31112
31112
|
})], SearchResultsProductTitle.prototype, "link", void 0);
|
|
31113
31113
|
|
|
31114
|
-
__decorate([options$
|
|
31114
|
+
__decorate([options$5.State(function (o) {
|
|
31115
31115
|
return o.searchResultOptions;
|
|
31116
31116
|
})], SearchResultsProductTitle.prototype, "searchResultOptions", void 0);
|
|
31117
31117
|
|
|
@@ -32022,6 +32022,7 @@ var __vue_component__$n = /*#__PURE__*/normalizeComponent({
|
|
|
32022
32022
|
var tracking$3 = namespace("tracking");
|
|
32023
32023
|
var params$9 = namespace("params");
|
|
32024
32024
|
var searchResult$b = namespace("searchResult");
|
|
32025
|
+
var options$4 = namespace("options");
|
|
32025
32026
|
|
|
32026
32027
|
var SearchResultsProductCard = /*#__PURE__*/function (_Vue) {
|
|
32027
32028
|
_inherits(SearchResultsProductCard, _Vue);
|
|
@@ -32087,7 +32088,7 @@ var SearchResultsProductCard = /*#__PURE__*/function (_Vue) {
|
|
|
32087
32088
|
}, {
|
|
32088
32089
|
key: "hasEventRouting",
|
|
32089
32090
|
get: function get() {
|
|
32090
|
-
return this.
|
|
32091
|
+
return this.searchResultsRoutingBehavior === "event";
|
|
32091
32092
|
}
|
|
32092
32093
|
}, {
|
|
32093
32094
|
key: "mounted",
|
|
@@ -32192,6 +32193,8 @@ __decorate([searchResult$b.State(function (state) {
|
|
|
32192
32193
|
return state.layout;
|
|
32193
32194
|
})], SearchResultsProductCard.prototype, "layout", void 0);
|
|
32194
32195
|
|
|
32196
|
+
__decorate([options$4.Getter("searchResultsRoutingBehavior")], SearchResultsProductCard.prototype, "searchResultsRoutingBehavior", void 0);
|
|
32197
|
+
|
|
32195
32198
|
__decorate([params$9.Getter("query")], SearchResultsProductCard.prototype, "query", void 0);
|
|
32196
32199
|
|
|
32197
32200
|
__decorate([tracking$3.Action("track")], SearchResultsProductCard.prototype, "trackClick", void 0);
|
|
@@ -32969,7 +32972,11 @@ var SearchResultsPageSelect = /*#__PURE__*/function (_Vue) {
|
|
|
32969
32972
|
|
|
32970
32973
|
__decorate([Prop({
|
|
32971
32974
|
default: ">"
|
|
32972
|
-
})], SearchResultsPageSelect.prototype, "
|
|
32975
|
+
})], SearchResultsPageSelect.prototype, "lastPageLabel", void 0);
|
|
32976
|
+
|
|
32977
|
+
__decorate([Prop({
|
|
32978
|
+
default: "<"
|
|
32979
|
+
})], SearchResultsPageSelect.prototype, "firstPageLabel", void 0);
|
|
32973
32980
|
|
|
32974
32981
|
__decorate([Prop({
|
|
32975
32982
|
default: {}
|
|
@@ -32999,13 +33006,13 @@ var __vue_render__$i = function __vue_render__() {
|
|
|
32999
33006
|
"data-cy": "lupa-search-results-page-select"
|
|
33000
33007
|
}
|
|
33001
33008
|
}, [_vm.options.selectedPage > 1 ? _c("div", {
|
|
33002
|
-
|
|
33009
|
+
class: _vm.firstPageLabel === "<" ? "lupa-page-arrow" : "lupa-show-less",
|
|
33003
33010
|
on: {
|
|
33004
33011
|
click: function click() {
|
|
33005
33012
|
return _vm.handlePageChange(_vm.options.selectedPage - 1);
|
|
33006
33013
|
}
|
|
33007
33014
|
}
|
|
33008
|
-
}, [_vm._v("\n
|
|
33015
|
+
}, [_vm._v("\n " + _vm._s(_vm.firstPageLabel) + "\n ")]) : _vm._e(), _vm._v(" "), _vm.showFirstPage ? [_c("div", {
|
|
33009
33016
|
staticClass: "lupa-page-number lupa-page-number-first",
|
|
33010
33017
|
on: {
|
|
33011
33018
|
click: function click() {
|
|
@@ -33037,7 +33044,7 @@ var __vue_render__$i = function __vue_render__() {
|
|
|
33037
33044
|
}
|
|
33038
33045
|
}
|
|
33039
33046
|
}, [_vm._v("\n " + _vm._s(_vm.lastPage) + "\n ")])] : _vm._e(), _vm._v(" "), _vm.options.selectedPage < _vm.options.count ? _c("div", {
|
|
33040
|
-
class: _vm.
|
|
33047
|
+
class: _vm.lastPageLabel === ">" ? "lupa-page-arrow" : "lupa-show-more",
|
|
33041
33048
|
attrs: {
|
|
33042
33049
|
"data-cy": "lupa-show-more"
|
|
33043
33050
|
},
|
|
@@ -33046,7 +33053,7 @@ var __vue_render__$i = function __vue_render__() {
|
|
|
33046
33053
|
return _vm.handlePageChange(_vm.options.selectedPage + 1);
|
|
33047
33054
|
}
|
|
33048
33055
|
}
|
|
33049
|
-
}, [_vm._v("\n " + _vm._s(_vm.
|
|
33056
|
+
}, [_vm._v("\n " + _vm._s(_vm.lastPageLabel) + "\n ")]) : _vm._e()], 2);
|
|
33050
33057
|
};
|
|
33051
33058
|
|
|
33052
33059
|
var __vue_staticRenderFns__$i = [];
|
|
@@ -33717,7 +33724,8 @@ var __vue_render__$d = function __vue_render__() {
|
|
|
33717
33724
|
}) : _c("div"), _vm._v(" "), _vm.displayPageSelect ? _c("SearchResultsPageSelect", {
|
|
33718
33725
|
attrs: {
|
|
33719
33726
|
options: _vm.paginationOptions.pageSelect,
|
|
33720
|
-
label: _vm.paginationOptions.labels.showMore
|
|
33727
|
+
"last-page-label": _vm.paginationOptions.labels.showMore,
|
|
33728
|
+
"first-page-label": _vm.paginationOptions.labels.showLess
|
|
33721
33729
|
}
|
|
33722
33730
|
}) : _c("div")], 1), _vm._v(" "), _c("div", {
|
|
33723
33731
|
staticClass: "lupa-toolbar-right"
|
|
@@ -36895,6 +36903,13 @@ var OptionsModule = /*#__PURE__*/function (_VuexModule) {
|
|
|
36895
36903
|
|
|
36896
36904
|
return (_a = this.searchBoxOptions.routingBehavior) !== null && _a !== void 0 ? _a : "direct-link";
|
|
36897
36905
|
}
|
|
36906
|
+
}, {
|
|
36907
|
+
key: "searchResultsRoutingBehavior",
|
|
36908
|
+
get: function get() {
|
|
36909
|
+
var _a;
|
|
36910
|
+
|
|
36911
|
+
return (_a = this.searchResultOptions.routingBehavior) !== null && _a !== void 0 ? _a : "direct-link";
|
|
36912
|
+
}
|
|
36898
36913
|
}, {
|
|
36899
36914
|
key: "defaultSearchResultPageSize",
|
|
36900
36915
|
get: function get() {
|
|
@@ -11,6 +11,7 @@ export default class OptionsModule extends VuexModule {
|
|
|
11
11
|
get classMap(): Record<string, string>;
|
|
12
12
|
get initialFilters(): FilterGroup;
|
|
13
13
|
get boxRoutingBehavior(): RoutingBehavior;
|
|
14
|
+
get searchResultsRoutingBehavior(): RoutingBehavior;
|
|
14
15
|
get defaultSearchResultPageSize(): number;
|
|
15
16
|
setSearchBoxOptions({ options }: {
|
|
16
17
|
options: SearchBoxOptions;
|
package/dist/iife/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import { PaginationPageSelect } from "@/types/search-results/PaginationOptions";
|
|
|
2
2
|
import { QueryParams } from "@/types/search-results/QueryParams";
|
|
3
3
|
import Vue from "vue";
|
|
4
4
|
export default class SearchResultsPageSelect extends Vue {
|
|
5
|
-
|
|
5
|
+
lastPageLabel: string;
|
|
6
|
+
firstPageLabel: string;
|
|
6
7
|
options: PaginationPageSelect;
|
|
7
8
|
get pages(): number[];
|
|
8
9
|
get lastPage(): number | undefined;
|
package/dist/iife/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { DocumentElement } from "@/types/DocumentElement";
|
|
|
2
2
|
import { TrackableEventData } from "@/types/search-box/Common";
|
|
3
3
|
import { BadgeOptions } from "@/types/search-results/BadgeOptions";
|
|
4
4
|
import { ResultsLayout } from "@/types/search-results/ResultsLayout";
|
|
5
|
+
import { RoutingBehavior } from "@/types/search-results/RoutingBehavior";
|
|
5
6
|
import { SearchResultsOptionLabels } from "@/types/search-results/SearchResultsOptions";
|
|
6
7
|
import { SearchResultsProductCardOptions } from "@/types/search-results/SearchResultsProductCardOptions";
|
|
7
8
|
import { Document, ReportableEventType } from "@getlupa/client-sdk/Types";
|
|
@@ -11,6 +12,7 @@ export default class SearchResultsProductCard extends Vue {
|
|
|
11
12
|
options: SearchResultsProductCardOptions;
|
|
12
13
|
isAdditionalPanel: boolean;
|
|
13
14
|
layout: ResultsLayout;
|
|
15
|
+
searchResultsRoutingBehavior: RoutingBehavior;
|
|
14
16
|
query: string;
|
|
15
17
|
trackClick: ({ queryKey, data, }: {
|
|
16
18
|
queryKey: string;
|
package/dist/iife/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { SearchBoxOptions } from "./types/search-box/SearchBoxOptions";
|
|
|
2
2
|
import { FacetStyle, SearchResultsOptions } from "./types/search-results/SearchResultsOptions";
|
|
3
3
|
import { SdkOptions, TrackingOptions, Environment, SortDirection } from "./types/General";
|
|
4
4
|
import { ProductListOptions } from "./types/product-list/ProductListOptions";
|
|
5
|
-
import { DocumentElementType } from "./types/DocumentElement";
|
|
5
|
+
import { AddToCartElement, CustomDocumentElement, CustomHtmlElement, DescriptionDocumentElement, DocumentElement, DocumentElementType, ImageDocumentElement, PriceElement, RatingElement, RegularPriceDocumentElement, TitleDocumentElement } from "./types/DocumentElement";
|
|
6
6
|
import { SearchBoxPanelType } from "./types/search-box/SearchBoxPanel";
|
|
7
7
|
import { RoutingBehavior } from "./types/search-results/RoutingBehavior";
|
|
8
8
|
import { AnchorPosition } from "./types/search-results/SearchResultsProductCardOptions";
|
|
@@ -16,5 +16,5 @@ declare const lupaSearch: {
|
|
|
16
16
|
clearSearchResults: () => void;
|
|
17
17
|
clearProductList: () => void;
|
|
18
18
|
};
|
|
19
|
-
export { TrackingOptions, SearchBoxOptions, SearchResultsOptions, ProductListOptions, SdkOptions, DocumentElementType, SearchBoxPanelType, FacetStyle, Environment, RoutingBehavior, AnchorPosition, BadgeType, SortDirection, };
|
|
19
|
+
export { TrackingOptions, SearchBoxOptions, SearchResultsOptions, ProductListOptions, SdkOptions, DocumentElementType, SearchBoxPanelType, FacetStyle, Environment, RoutingBehavior, AnchorPosition, BadgeType, SortDirection, DocumentElement, ImageDocumentElement, TitleDocumentElement, DescriptionDocumentElement, CustomDocumentElement, PriceElement, RegularPriceDocumentElement, RatingElement, AddToCartElement, CustomHtmlElement, };
|
|
20
20
|
export default lupaSearch;
|