@colijnit/corecomponents_v12 12.0.56 → 12.0.57
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/bundles/colijnit-corecomponents_v12.umd.js +12 -2
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12-12.0.57.tgz +0 -0
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/pagination-bar/pagination-bar.component.js +9 -3
- package/fesm2015/colijnit-corecomponents_v12.js +8 -2
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/pagination-bar/pagination-bar.component.d.ts +3 -1
- package/package.json +1 -1
|
@@ -9821,19 +9821,29 @@
|
|
|
9821
9821
|
this.nextLabel = 'Volgende pagina';
|
|
9822
9822
|
this.currentPage = 1;
|
|
9823
9823
|
this.itemsPerPage = 20;
|
|
9824
|
-
this.totalItems = 1;
|
|
9825
9824
|
this.paginationRange = 8;
|
|
9826
9825
|
this.autoHide = false;
|
|
9827
9826
|
this.previousClick = new core.EventEmitter();
|
|
9828
9827
|
this.nextClick = new core.EventEmitter();
|
|
9829
9828
|
this.pageClick = new core.EventEmitter();
|
|
9829
|
+
this._totalItems = 20;
|
|
9830
9830
|
this.pages = [];
|
|
9831
9831
|
}
|
|
9832
|
+
Object.defineProperty(PaginationBarComponent.prototype, "totalItems", {
|
|
9833
|
+
get: function () {
|
|
9834
|
+
return this._totalItems;
|
|
9835
|
+
},
|
|
9836
|
+
set: function (value) {
|
|
9837
|
+
this._totalItems = value;
|
|
9838
|
+
this.totalPages = Math.ceil(this.totalItems / this.itemsPerPage);
|
|
9839
|
+
},
|
|
9840
|
+
enumerable: false,
|
|
9841
|
+
configurable: true
|
|
9842
|
+
});
|
|
9832
9843
|
PaginationBarComponent.prototype.showClass = function () {
|
|
9833
9844
|
return true;
|
|
9834
9845
|
};
|
|
9835
9846
|
PaginationBarComponent.prototype.ngOnInit = function () {
|
|
9836
|
-
this.totalPages = Math.ceil(this.totalItems / this.itemsPerPage);
|
|
9837
9847
|
this.pages = this._createPageArray();
|
|
9838
9848
|
};
|
|
9839
9849
|
PaginationBarComponent.prototype.ngOnChanges = function (changes) {
|