@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.
- package/esm2020/lib/core/go/base-go.service.mjs +11 -1
- package/esm2020/lib/ui/components/base/base.list.mjs +5 -1
- package/fesm2015/osovitny-anatoly.mjs +14 -0
- package/fesm2015/osovitny-anatoly.mjs.map +1 -1
- package/fesm2020/osovitny-anatoly.mjs +14 -0
- package/fesm2020/osovitny-anatoly.mjs.map +1 -1
- package/lib/core/go/base-go.service.d.ts +1 -0
- package/lib/ui/components/base/base.list.d.ts +1 -0
- package/package.json +1 -1
- package/esm2020/lib/ui/components/base-edit.component.mjs +0 -138
- package/esm2020/lib/ui/components/base.component.mjs +0 -47
- package/esm2020/lib/ui/components/base.dialog.mjs +0 -46
- package/esm2020/lib/ui/components/base.list.mjs +0 -65
- package/esm2020/lib/ui/components/base.page.mjs +0 -31
- package/esm2020/lib/ui/components/base.paged.page.mjs +0 -65
- package/lib/ui/components/base-edit.component.d.ts +0 -58
- package/lib/ui/components/base.component.d.ts +0 -13
- package/lib/ui/components/base.dialog.d.ts +0 -11
- package/lib/ui/components/base.list.d.ts +0 -17
- package/lib/ui/components/base.page.d.ts +0 -6
- package/lib/ui/components/base.paged.page.d.ts +0 -17
|
@@ -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;
|