@getlupa/client 0.5.1-alpha-19 → 0.5.1-alpha-20

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.
@@ -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
- label: string;
5
+ lastPageLabel: string;
6
+ firstPageLabel: string;
6
7
  options: PaginationPageSelect;
7
8
  get pages(): number[];
8
9
  get lastPage(): number | undefined;
@@ -32976,7 +32976,11 @@ var SearchResultsPageSelect = /*#__PURE__*/function (_Vue) {
32976
32976
 
32977
32977
  __decorate([Prop({
32978
32978
  default: ">"
32979
- })], SearchResultsPageSelect.prototype, "label", void 0);
32979
+ })], SearchResultsPageSelect.prototype, "lastPageLabel", void 0);
32980
+
32981
+ __decorate([Prop({
32982
+ default: "<"
32983
+ })], SearchResultsPageSelect.prototype, "firstPageLabel", void 0);
32980
32984
 
32981
32985
  __decorate([Prop({
32982
32986
  default: {}
@@ -33006,13 +33010,13 @@ var __vue_render__$i = function __vue_render__() {
33006
33010
  "data-cy": "lupa-search-results-page-select"
33007
33011
  }
33008
33012
  }, [_vm.options.selectedPage > 1 ? _c("div", {
33009
- staticClass: "lupa-page-arrow",
33013
+ class: _vm.firstPageLabel === "<" ? "lupa-page-arrow" : "lupa-show-less",
33010
33014
  on: {
33011
33015
  click: function click() {
33012
33016
  return _vm.handlePageChange(_vm.options.selectedPage - 1);
33013
33017
  }
33014
33018
  }
33015
- }, [_vm._v("\n <\n ")]) : _vm._e(), _vm._v(" "), _vm.showFirstPage ? [_c("div", {
33019
+ }, [_vm._v("\n " + _vm._s(_vm.firstPageLabel) + "\n ")]) : _vm._e(), _vm._v(" "), _vm.showFirstPage ? [_c("div", {
33016
33020
  staticClass: "lupa-page-number lupa-page-number-first",
33017
33021
  on: {
33018
33022
  click: function click() {
@@ -33044,7 +33048,7 @@ var __vue_render__$i = function __vue_render__() {
33044
33048
  }
33045
33049
  }
33046
33050
  }, [_vm._v("\n " + _vm._s(_vm.lastPage) + "\n ")])] : _vm._e(), _vm._v(" "), _vm.options.selectedPage < _vm.options.count ? _c("div", {
33047
- class: _vm.label === ">" ? "lupa-page-arrow" : "lupa-show-more",
33051
+ class: _vm.lastPageLabel === ">" ? "lupa-page-arrow" : "lupa-show-more",
33048
33052
  attrs: {
33049
33053
  "data-cy": "lupa-show-more"
33050
33054
  },
@@ -33053,7 +33057,7 @@ var __vue_render__$i = function __vue_render__() {
33053
33057
  return _vm.handlePageChange(_vm.options.selectedPage + 1);
33054
33058
  }
33055
33059
  }
33056
- }, [_vm._v("\n " + _vm._s(_vm.label) + "\n ")]) : _vm._e()], 2);
33060
+ }, [_vm._v("\n " + _vm._s(_vm.lastPageLabel) + "\n ")]) : _vm._e()], 2);
33057
33061
  };
33058
33062
 
33059
33063
  var __vue_staticRenderFns__$i = [];
@@ -33724,7 +33728,8 @@ var __vue_render__$d = function __vue_render__() {
33724
33728
  }) : _c("div"), _vm._v(" "), _vm.displayPageSelect ? _c("SearchResultsPageSelect", {
33725
33729
  attrs: {
33726
33730
  options: _vm.paginationOptions.pageSelect,
33727
- label: _vm.paginationOptions.labels.showMore
33731
+ "last-page-label": _vm.paginationOptions.labels.showMore,
33732
+ "first-page-label": _vm.paginationOptions.labels.showLess
33728
33733
  }
33729
33734
  }) : _c("div")], 1), _vm._v(" "), _c("div", {
33730
33735
  staticClass: "lupa-toolbar-right"
@@ -1,6 +1,7 @@
1
1
  export declare type SearchResultsPaginationLabels = {
2
2
  pageSize: string;
3
- showMore: string;
3
+ showMore?: string;
4
+ showLess?: string;
4
5
  itemCount: string;
5
6
  filteredItemCount?: string;
6
7
  };
@@ -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
- label: string;
5
+ lastPageLabel: string;
6
+ firstPageLabel: string;
6
7
  options: PaginationPageSelect;
7
8
  get pages(): number[];
8
9
  get lastPage(): number | undefined;
@@ -32972,7 +32972,11 @@ var SearchResultsPageSelect = /*#__PURE__*/function (_Vue) {
32972
32972
 
32973
32973
  __decorate([Prop({
32974
32974
  default: ">"
32975
- })], SearchResultsPageSelect.prototype, "label", void 0);
32975
+ })], SearchResultsPageSelect.prototype, "lastPageLabel", void 0);
32976
+
32977
+ __decorate([Prop({
32978
+ default: "<"
32979
+ })], SearchResultsPageSelect.prototype, "firstPageLabel", void 0);
32976
32980
 
32977
32981
  __decorate([Prop({
32978
32982
  default: {}
@@ -33002,13 +33006,13 @@ var __vue_render__$i = function __vue_render__() {
33002
33006
  "data-cy": "lupa-search-results-page-select"
33003
33007
  }
33004
33008
  }, [_vm.options.selectedPage > 1 ? _c("div", {
33005
- staticClass: "lupa-page-arrow",
33009
+ class: _vm.firstPageLabel === "<" ? "lupa-page-arrow" : "lupa-show-less",
33006
33010
  on: {
33007
33011
  click: function click() {
33008
33012
  return _vm.handlePageChange(_vm.options.selectedPage - 1);
33009
33013
  }
33010
33014
  }
33011
- }, [_vm._v("\n <\n ")]) : _vm._e(), _vm._v(" "), _vm.showFirstPage ? [_c("div", {
33015
+ }, [_vm._v("\n " + _vm._s(_vm.firstPageLabel) + "\n ")]) : _vm._e(), _vm._v(" "), _vm.showFirstPage ? [_c("div", {
33012
33016
  staticClass: "lupa-page-number lupa-page-number-first",
33013
33017
  on: {
33014
33018
  click: function click() {
@@ -33040,7 +33044,7 @@ var __vue_render__$i = function __vue_render__() {
33040
33044
  }
33041
33045
  }
33042
33046
  }, [_vm._v("\n " + _vm._s(_vm.lastPage) + "\n ")])] : _vm._e(), _vm._v(" "), _vm.options.selectedPage < _vm.options.count ? _c("div", {
33043
- class: _vm.label === ">" ? "lupa-page-arrow" : "lupa-show-more",
33047
+ class: _vm.lastPageLabel === ">" ? "lupa-page-arrow" : "lupa-show-more",
33044
33048
  attrs: {
33045
33049
  "data-cy": "lupa-show-more"
33046
33050
  },
@@ -33049,7 +33053,7 @@ var __vue_render__$i = function __vue_render__() {
33049
33053
  return _vm.handlePageChange(_vm.options.selectedPage + 1);
33050
33054
  }
33051
33055
  }
33052
- }, [_vm._v("\n " + _vm._s(_vm.label) + "\n ")]) : _vm._e()], 2);
33056
+ }, [_vm._v("\n " + _vm._s(_vm.lastPageLabel) + "\n ")]) : _vm._e()], 2);
33053
33057
  };
33054
33058
 
33055
33059
  var __vue_staticRenderFns__$i = [];
@@ -33720,7 +33724,8 @@ var __vue_render__$d = function __vue_render__() {
33720
33724
  }) : _c("div"), _vm._v(" "), _vm.displayPageSelect ? _c("SearchResultsPageSelect", {
33721
33725
  attrs: {
33722
33726
  options: _vm.paginationOptions.pageSelect,
33723
- label: _vm.paginationOptions.labels.showMore
33727
+ "last-page-label": _vm.paginationOptions.labels.showMore,
33728
+ "first-page-label": _vm.paginationOptions.labels.showLess
33724
33729
  }
33725
33730
  }) : _c("div")], 1), _vm._v(" "), _c("div", {
33726
33731
  staticClass: "lupa-toolbar-right"
@@ -1,6 +1,7 @@
1
1
  export declare type SearchResultsPaginationLabels = {
2
2
  pageSize: string;
3
- showMore: string;
3
+ showMore?: string;
4
+ showLess?: string;
4
5
  itemCount: string;
5
6
  filteredItemCount?: string;
6
7
  };
@@ -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
- label: string;
5
+ lastPageLabel: string;
6
+ firstPageLabel: string;
6
7
  options: PaginationPageSelect;
7
8
  get pages(): number[];
8
9
  get lastPage(): number | undefined;