chrv-components 1.11.11 → 1.11.12
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.
|
@@ -2695,22 +2695,11 @@ class ChrPaginatorComponent {
|
|
|
2695
2695
|
? Math.ceil(this.dataSize() / this.pageSize())
|
|
2696
2696
|
: 1);
|
|
2697
2697
|
effect(() => {
|
|
2698
|
-
const currentId = this.id();
|
|
2699
2698
|
const currentPage = this.page();
|
|
2700
2699
|
const currentPageSize = this.pageSize();
|
|
2701
|
-
|
|
2702
|
-
const paginationInstance = this.service.getInstance(currentId);
|
|
2703
|
-
if (paginationInstance) {
|
|
2704
|
-
this.instance.set(paginationInstance);
|
|
2705
|
-
}
|
|
2706
|
-
}
|
|
2707
|
-
});
|
|
2708
|
-
}
|
|
2709
|
-
ngAfterContentChecked() {
|
|
2710
|
-
const paginationInstance = this.service.getInstance(`${this.id()}`);
|
|
2711
|
-
if (paginationInstance && paginationInstance !== this.instance()) {
|
|
2700
|
+
const paginationInstance = this.service.getInstance(this.id());
|
|
2712
2701
|
this.instance.set(paginationInstance);
|
|
2713
|
-
}
|
|
2702
|
+
});
|
|
2714
2703
|
}
|
|
2715
2704
|
ngOnInit() {
|
|
2716
2705
|
this.dataService
|