@getlupa/client 0.16.0-alpha-2 → 0.16.0-alpha-4

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.
@@ -12,6 +12,9 @@ export default class Recommendations extends Vue {
12
12
  options: SearchResultsOptions;
13
13
  }) => void;
14
14
  get pages(): number[][];
15
+ get nextLabel(): string | undefined;
16
+ get prevLabel(): string | undefined;
17
+ get scrollPerPage(): boolean;
15
18
  mounted(): void;
16
19
  getProductKey(index: number, product: Document): string;
17
20
  loadRecommendations(): void;
@@ -39507,6 +39507,18 @@ let Recommendations = class Recommendations extends Vue$1 {
39507
39507
  var _a, _b;
39508
39508
  return (_b = (_a = this.options.carousel) === null || _a === void 0 ? void 0 : _a.pageSizes) !== null && _b !== void 0 ? _b : [];
39509
39509
  }
39510
+ get nextLabel() {
39511
+ var _a;
39512
+ return (_a = this.options.carousel) === null || _a === void 0 ? void 0 : _a.nextLabel;
39513
+ }
39514
+ get prevLabel() {
39515
+ var _a;
39516
+ return (_a = this.options.carousel) === null || _a === void 0 ? void 0 : _a.prevLabel;
39517
+ }
39518
+ get scrollPerPage() {
39519
+ var _a, _b;
39520
+ return (_b = (_a = this.options.carousel) === null || _a === void 0 ? void 0 : _a.scrollPerPage) !== null && _b !== void 0 ? _b : false;
39521
+ }
39510
39522
  mounted() {
39511
39523
  this.loadRecommendations();
39512
39524
  this.setSearchResultOptions({
@@ -39622,6 +39634,10 @@ var __vue_render__$1 = function () {
39622
39634
  "navigation-enabled": true,
39623
39635
  "pagination-enabled": false,
39624
39636
  "per-page-custom": _vm.pages,
39637
+ "navigation-next-label": _vm.nextLabel,
39638
+ "navigation-prev-label": _vm.prevLabel,
39639
+ "scroll-per-page": _vm.scrollPerPage,
39640
+ "mouse-drag": false,
39625
39641
  },
39626
39642
  },
39627
39643
  _vm._l(_vm.recommendations, function (product, index) {
@@ -9,6 +9,9 @@ export declare type ProductRecommendationOptions = SearchResultsProductCardOptio
9
9
  abTesting?: RecommendationABTestingOptions;
10
10
  carousel?: {
11
11
  pageSizes: number[][];
12
+ nextLabel?: string;
13
+ prevLabel?: string;
14
+ scrollPerPage?: boolean;
12
15
  };
13
16
  };
14
17
  export declare type RecommendationABTestingOptions = {
@@ -12,6 +12,9 @@ export default class Recommendations extends Vue {
12
12
  options: SearchResultsOptions;
13
13
  }) => void;
14
14
  get pages(): number[][];
15
+ get nextLabel(): string | undefined;
16
+ get prevLabel(): string | undefined;
17
+ get scrollPerPage(): boolean;
15
18
  mounted(): void;
16
19
  getProductKey(index: number, product: Document): string;
17
20
  loadRecommendations(): void;
@@ -39503,6 +39503,18 @@ let Recommendations = class Recommendations extends Vue$1 {
39503
39503
  var _a, _b;
39504
39504
  return (_b = (_a = this.options.carousel) === null || _a === void 0 ? void 0 : _a.pageSizes) !== null && _b !== void 0 ? _b : [];
39505
39505
  }
39506
+ get nextLabel() {
39507
+ var _a;
39508
+ return (_a = this.options.carousel) === null || _a === void 0 ? void 0 : _a.nextLabel;
39509
+ }
39510
+ get prevLabel() {
39511
+ var _a;
39512
+ return (_a = this.options.carousel) === null || _a === void 0 ? void 0 : _a.prevLabel;
39513
+ }
39514
+ get scrollPerPage() {
39515
+ var _a, _b;
39516
+ return (_b = (_a = this.options.carousel) === null || _a === void 0 ? void 0 : _a.scrollPerPage) !== null && _b !== void 0 ? _b : false;
39517
+ }
39506
39518
  mounted() {
39507
39519
  this.loadRecommendations();
39508
39520
  this.setSearchResultOptions({
@@ -39618,6 +39630,10 @@ var __vue_render__$1 = function () {
39618
39630
  "navigation-enabled": true,
39619
39631
  "pagination-enabled": false,
39620
39632
  "per-page-custom": _vm.pages,
39633
+ "navigation-next-label": _vm.nextLabel,
39634
+ "navigation-prev-label": _vm.prevLabel,
39635
+ "scroll-per-page": _vm.scrollPerPage,
39636
+ "mouse-drag": false,
39621
39637
  },
39622
39638
  },
39623
39639
  _vm._l(_vm.recommendations, function (product, index) {
@@ -9,6 +9,9 @@ export declare type ProductRecommendationOptions = SearchResultsProductCardOptio
9
9
  abTesting?: RecommendationABTestingOptions;
10
10
  carousel?: {
11
11
  pageSizes: number[][];
12
+ nextLabel?: string;
13
+ prevLabel?: string;
14
+ scrollPerPage?: boolean;
12
15
  };
13
16
  };
14
17
  export declare type RecommendationABTestingOptions = {
@@ -12,6 +12,9 @@ export default class Recommendations extends Vue {
12
12
  options: SearchResultsOptions;
13
13
  }) => void;
14
14
  get pages(): number[][];
15
+ get nextLabel(): string | undefined;
16
+ get prevLabel(): string | undefined;
17
+ get scrollPerPage(): boolean;
15
18
  mounted(): void;
16
19
  getProductKey(index: number, product: Document): string;
17
20
  loadRecommendations(): void;