@osovitny/anatoly 2.14.74 → 2.14.76

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.
@@ -95,6 +95,16 @@ class BaseGoService {
95
95
  homeReload() {
96
96
  window.location.href = "/";
97
97
  }
98
+ navigate(commands, reload = false) {
99
+ if (reload) {
100
+ this.router.navigate(commands).then(() => {
101
+ this.locationReload();
102
+ });
103
+ }
104
+ else {
105
+ this.router.navigate(commands);
106
+ }
107
+ }
98
108
  }
99
109
  BaseGoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseGoService, deps: [{ token: i1.ActivatedRoute }, { token: i1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
100
110
  BaseGoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseGoService });
@@ -3472,6 +3482,10 @@ class BaseList extends BaseComponent {
3472
3482
  this.currentFilter = filter;
3473
3483
  this.loadPageOne();
3474
3484
  }
3485
+ //Tos
3486
+ toIndex(index) {
3487
+ return ((this.currentPage - 1) * this.pageSize) + index + 1;
3488
+ }
3475
3489
  //Events
3476
3490
  onPageChange(e) {
3477
3491
  this.pageSize = e.take;