@getlupa/client 0.5.1-alpha-9 → 0.5.1-alpha-10
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 +5 -0
- package/dist/cjs/index.min.js +49 -2
- package/dist/es/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts +5 -0
- package/dist/es/index.min.js +49 -2
- package/dist/iife/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts +5 -0
- package/dist/iife/index.min.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cjs/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts
CHANGED
|
@@ -5,6 +5,11 @@ export default class SearchResultsPageSelect extends Vue {
|
|
|
5
5
|
label: string;
|
|
6
6
|
options: PaginationPageSelect;
|
|
7
7
|
get pages(): number[];
|
|
8
|
+
get lastPage(): number | undefined;
|
|
9
|
+
get showLastPage(): boolean;
|
|
10
|
+
get showLastPageSeparator(): boolean;
|
|
11
|
+
get showFirstPage(): boolean;
|
|
12
|
+
get showFirstPageSeparator(): boolean;
|
|
8
13
|
appendParams: ({ params, paramsToRemove, }: {
|
|
9
14
|
params: {
|
|
10
15
|
name: string;
|
package/dist/cjs/index.min.js
CHANGED
|
@@ -30565,6 +30565,35 @@ var SearchResultsPageSelect = /*#__PURE__*/function (_Vue) {
|
|
|
30565
30565
|
return i && i >= left && i < right;
|
|
30566
30566
|
});
|
|
30567
30567
|
}
|
|
30568
|
+
}, {
|
|
30569
|
+
key: "lastPage",
|
|
30570
|
+
get: function get() {
|
|
30571
|
+
var _a;
|
|
30572
|
+
|
|
30573
|
+
return (_a = this.options.count) !== null && _a !== void 0 ? _a : undefined;
|
|
30574
|
+
}
|
|
30575
|
+
}, {
|
|
30576
|
+
key: "showLastPage",
|
|
30577
|
+
get: function get() {
|
|
30578
|
+
return Boolean(this.lastPage && !this.pages.includes(this.lastPage));
|
|
30579
|
+
}
|
|
30580
|
+
}, {
|
|
30581
|
+
key: "showLastPageSeparator",
|
|
30582
|
+
get: function get() {
|
|
30583
|
+
var _a;
|
|
30584
|
+
|
|
30585
|
+
return this.showLastPage && !this.pages.includes(((_a = this.lastPage) !== null && _a !== void 0 ? _a : 0) - 1);
|
|
30586
|
+
}
|
|
30587
|
+
}, {
|
|
30588
|
+
key: "showFirstPage",
|
|
30589
|
+
get: function get() {
|
|
30590
|
+
return !this.pages.includes(1);
|
|
30591
|
+
}
|
|
30592
|
+
}, {
|
|
30593
|
+
key: "showFirstPageSeparator",
|
|
30594
|
+
get: function get() {
|
|
30595
|
+
return this.showFirstPage && !this.pages.includes(2);
|
|
30596
|
+
}
|
|
30568
30597
|
}, {
|
|
30569
30598
|
key: "handlePageChange",
|
|
30570
30599
|
value: function handlePageChange(page) {
|
|
@@ -30621,7 +30650,16 @@ var __vue_render__$i = function __vue_render__() {
|
|
|
30621
30650
|
return _vm.handlePageChange(_vm.options.selectedPage - 1);
|
|
30622
30651
|
}
|
|
30623
30652
|
}
|
|
30624
|
-
}, [_vm._v("\n <\n ")]) : _vm._e(), _vm._v(" "), _vm.
|
|
30653
|
+
}, [_vm._v("\n <\n ")]) : _vm._e(), _vm._v(" "), _vm.showFirstPage ? [_c("div", {
|
|
30654
|
+
staticClass: "lupa-page-number lupa-page-number-first",
|
|
30655
|
+
on: {
|
|
30656
|
+
click: function click() {
|
|
30657
|
+
return _vm.handlePageChange(1);
|
|
30658
|
+
}
|
|
30659
|
+
}
|
|
30660
|
+
}, [_vm._v("\n 1\n ")]), _vm._v(" "), _vm.showFirstPageSeparator ? _c("div", {
|
|
30661
|
+
staticClass: "lupa-page-number-separator"
|
|
30662
|
+
}, [_vm._v("\n ...\n ")]) : _vm._e()] : _vm._e(), _vm._v(" "), _vm._l(_vm.pages, function (page) {
|
|
30625
30663
|
return _c("div", {
|
|
30626
30664
|
key: page,
|
|
30627
30665
|
class: ["lupa-page-number", page === _vm.options.selectedPage ? "lupa-page-number-selected" : ""],
|
|
@@ -30634,7 +30672,16 @@ var __vue_render__$i = function __vue_render__() {
|
|
|
30634
30672
|
}
|
|
30635
30673
|
}
|
|
30636
30674
|
}, [_vm._v("\n " + _vm._s(page) + "\n ")]);
|
|
30637
|
-
}), _vm._v(" "), _vm.
|
|
30675
|
+
}), _vm._v(" "), _vm.showLastPage ? [_vm.showLastPageSeparator ? _c("div", {
|
|
30676
|
+
staticClass: "lupa-page-number-separator"
|
|
30677
|
+
}, [_vm._v("\n ...\n ")]) : _vm._e(), _vm._v(" "), _c("div", {
|
|
30678
|
+
staticClass: "lupa-page-number lupa-page-number-last",
|
|
30679
|
+
on: {
|
|
30680
|
+
click: function click() {
|
|
30681
|
+
return _vm.handlePageChange(_vm.lastPage);
|
|
30682
|
+
}
|
|
30683
|
+
}
|
|
30684
|
+
}, [_vm._v("\n " + _vm._s(_vm.lastPage) + "\n ")])] : _vm._e(), _vm._v(" "), _vm.options.selectedPage < _vm.options.count ? _c("div", {
|
|
30638
30685
|
class: _vm.label === ">" ? "lupa-page-arrow" : "lupa-show-more",
|
|
30639
30686
|
attrs: {
|
|
30640
30687
|
"data-cy": "lupa-show-more"
|
package/dist/es/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts
CHANGED
|
@@ -5,6 +5,11 @@ export default class SearchResultsPageSelect extends Vue {
|
|
|
5
5
|
label: string;
|
|
6
6
|
options: PaginationPageSelect;
|
|
7
7
|
get pages(): number[];
|
|
8
|
+
get lastPage(): number | undefined;
|
|
9
|
+
get showLastPage(): boolean;
|
|
10
|
+
get showLastPageSeparator(): boolean;
|
|
11
|
+
get showFirstPage(): boolean;
|
|
12
|
+
get showFirstPageSeparator(): boolean;
|
|
8
13
|
appendParams: ({ params, paramsToRemove, }: {
|
|
9
14
|
params: {
|
|
10
15
|
name: string;
|
package/dist/es/index.min.js
CHANGED
|
@@ -30561,6 +30561,35 @@ var SearchResultsPageSelect = /*#__PURE__*/function (_Vue) {
|
|
|
30561
30561
|
return i && i >= left && i < right;
|
|
30562
30562
|
});
|
|
30563
30563
|
}
|
|
30564
|
+
}, {
|
|
30565
|
+
key: "lastPage",
|
|
30566
|
+
get: function get() {
|
|
30567
|
+
var _a;
|
|
30568
|
+
|
|
30569
|
+
return (_a = this.options.count) !== null && _a !== void 0 ? _a : undefined;
|
|
30570
|
+
}
|
|
30571
|
+
}, {
|
|
30572
|
+
key: "showLastPage",
|
|
30573
|
+
get: function get() {
|
|
30574
|
+
return Boolean(this.lastPage && !this.pages.includes(this.lastPage));
|
|
30575
|
+
}
|
|
30576
|
+
}, {
|
|
30577
|
+
key: "showLastPageSeparator",
|
|
30578
|
+
get: function get() {
|
|
30579
|
+
var _a;
|
|
30580
|
+
|
|
30581
|
+
return this.showLastPage && !this.pages.includes(((_a = this.lastPage) !== null && _a !== void 0 ? _a : 0) - 1);
|
|
30582
|
+
}
|
|
30583
|
+
}, {
|
|
30584
|
+
key: "showFirstPage",
|
|
30585
|
+
get: function get() {
|
|
30586
|
+
return !this.pages.includes(1);
|
|
30587
|
+
}
|
|
30588
|
+
}, {
|
|
30589
|
+
key: "showFirstPageSeparator",
|
|
30590
|
+
get: function get() {
|
|
30591
|
+
return this.showFirstPage && !this.pages.includes(2);
|
|
30592
|
+
}
|
|
30564
30593
|
}, {
|
|
30565
30594
|
key: "handlePageChange",
|
|
30566
30595
|
value: function handlePageChange(page) {
|
|
@@ -30617,7 +30646,16 @@ var __vue_render__$i = function __vue_render__() {
|
|
|
30617
30646
|
return _vm.handlePageChange(_vm.options.selectedPage - 1);
|
|
30618
30647
|
}
|
|
30619
30648
|
}
|
|
30620
|
-
}, [_vm._v("\n <\n ")]) : _vm._e(), _vm._v(" "), _vm.
|
|
30649
|
+
}, [_vm._v("\n <\n ")]) : _vm._e(), _vm._v(" "), _vm.showFirstPage ? [_c("div", {
|
|
30650
|
+
staticClass: "lupa-page-number lupa-page-number-first",
|
|
30651
|
+
on: {
|
|
30652
|
+
click: function click() {
|
|
30653
|
+
return _vm.handlePageChange(1);
|
|
30654
|
+
}
|
|
30655
|
+
}
|
|
30656
|
+
}, [_vm._v("\n 1\n ")]), _vm._v(" "), _vm.showFirstPageSeparator ? _c("div", {
|
|
30657
|
+
staticClass: "lupa-page-number-separator"
|
|
30658
|
+
}, [_vm._v("\n ...\n ")]) : _vm._e()] : _vm._e(), _vm._v(" "), _vm._l(_vm.pages, function (page) {
|
|
30621
30659
|
return _c("div", {
|
|
30622
30660
|
key: page,
|
|
30623
30661
|
class: ["lupa-page-number", page === _vm.options.selectedPage ? "lupa-page-number-selected" : ""],
|
|
@@ -30630,7 +30668,16 @@ var __vue_render__$i = function __vue_render__() {
|
|
|
30630
30668
|
}
|
|
30631
30669
|
}
|
|
30632
30670
|
}, [_vm._v("\n " + _vm._s(page) + "\n ")]);
|
|
30633
|
-
}), _vm._v(" "), _vm.
|
|
30671
|
+
}), _vm._v(" "), _vm.showLastPage ? [_vm.showLastPageSeparator ? _c("div", {
|
|
30672
|
+
staticClass: "lupa-page-number-separator"
|
|
30673
|
+
}, [_vm._v("\n ...\n ")]) : _vm._e(), _vm._v(" "), _c("div", {
|
|
30674
|
+
staticClass: "lupa-page-number lupa-page-number-last",
|
|
30675
|
+
on: {
|
|
30676
|
+
click: function click() {
|
|
30677
|
+
return _vm.handlePageChange(_vm.lastPage);
|
|
30678
|
+
}
|
|
30679
|
+
}
|
|
30680
|
+
}, [_vm._v("\n " + _vm._s(_vm.lastPage) + "\n ")])] : _vm._e(), _vm._v(" "), _vm.options.selectedPage < _vm.options.count ? _c("div", {
|
|
30634
30681
|
class: _vm.label === ">" ? "lupa-page-arrow" : "lupa-show-more",
|
|
30635
30682
|
attrs: {
|
|
30636
30683
|
"data-cy": "lupa-show-more"
|
package/dist/iife/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts
CHANGED
|
@@ -5,6 +5,11 @@ export default class SearchResultsPageSelect extends Vue {
|
|
|
5
5
|
label: string;
|
|
6
6
|
options: PaginationPageSelect;
|
|
7
7
|
get pages(): number[];
|
|
8
|
+
get lastPage(): number | undefined;
|
|
9
|
+
get showLastPage(): boolean;
|
|
10
|
+
get showLastPageSeparator(): boolean;
|
|
11
|
+
get showFirstPage(): boolean;
|
|
12
|
+
get showFirstPageSeparator(): boolean;
|
|
8
13
|
appendParams: ({ params, paramsToRemove, }: {
|
|
9
14
|
params: {
|
|
10
15
|
name: string;
|