@skysoftware-co/bayan-hr-widgets-ui 2.0.32 → 2.0.33
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.
|
@@ -4656,16 +4656,16 @@ class MyTeamPopupComponent {
|
|
|
4656
4656
|
this.loadPage(true);
|
|
4657
4657
|
}
|
|
4658
4658
|
onReachBottom() {
|
|
4659
|
-
if (this.isDataLoading()) {
|
|
4659
|
+
if (this.isDataLoading() || this.isInitialLoading()) {
|
|
4660
4660
|
this.dataScrollView?.instance?.release(false);
|
|
4661
4661
|
return;
|
|
4662
4662
|
}
|
|
4663
4663
|
if (!this.hasMoreData()) {
|
|
4664
|
-
this.dataScrollView?.instance?.release(
|
|
4664
|
+
this.dataScrollView?.instance?.release(true);
|
|
4665
4665
|
return;
|
|
4666
4666
|
}
|
|
4667
4667
|
void this.loadPage(false).finally(() => {
|
|
4668
|
-
this.dataScrollView?.instance?.release(
|
|
4668
|
+
this.dataScrollView?.instance?.release(!this.hasMoreData());
|
|
4669
4669
|
});
|
|
4670
4670
|
}
|
|
4671
4671
|
isScrollContentScrollable() {
|
|
@@ -4677,11 +4677,6 @@ class MyTeamPopupComponent {
|
|
|
4677
4677
|
}
|
|
4678
4678
|
return scrollableContent.scrollHeight > scrollableContainer.clientHeight + 1;
|
|
4679
4679
|
}
|
|
4680
|
-
async loadRemainingPagesIfNeeded() {
|
|
4681
|
-
while (this.hasMoreData() && !this.isScrollContentScrollable()) {
|
|
4682
|
-
await this.loadPage(false);
|
|
4683
|
-
}
|
|
4684
|
-
}
|
|
4685
4680
|
resetState() {
|
|
4686
4681
|
this.items.set([]);
|
|
4687
4682
|
this.hasMoreData.set(true);
|
|
@@ -4761,9 +4756,6 @@ class MyTeamPopupComponent {
|
|
|
4761
4756
|
this.dataScrollView?.instance?.update();
|
|
4762
4757
|
const hasMore = this.loadedCount < this.totalCount && pageData.length > 0;
|
|
4763
4758
|
this.hasMoreData.set(hasMore);
|
|
4764
|
-
if (reset) {
|
|
4765
|
-
await this.loadRemainingPagesIfNeeded();
|
|
4766
|
-
}
|
|
4767
4759
|
}
|
|
4768
4760
|
catch (err) {
|
|
4769
4761
|
this.errorOccurred.emit(err?.error?.ResponseData?.Errors?.[0]?.Message);
|