@libs-ui/components-table 0.2.356-30 → 0.2.356-32

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.
@@ -681,9 +681,9 @@ class LibsUiComponentsTableComponent {
681
681
  getScrollContainer() {
682
682
  return this.bodyComponentRef();
683
683
  }
684
- async callApiByService(firstCall, resetAfterCallApi, onlyResetDataAfterCallAPI) {
684
+ async callApiByService(firstCall, resetAfterCallApi, isChangePage) {
685
685
  try {
686
- if (firstCall || onlyResetDataAfterCallAPI) {
686
+ if (firstCall || isChangePage) {
687
687
  this.loadedLastItem.set(false);
688
688
  }
689
689
  if (!this.httpRequestData() || this.loading() || this.loadedLastItem()) {
@@ -716,12 +716,14 @@ class LibsUiComponentsTableComponent {
716
716
  this.loadedLastItem.set(this.httpRequestService.updateArguments(argumentsValue, { ...this.fakeResponseApi(), storeParamsCallApi: this.storeParamsCallApi() }, this.pagingStore() || {}, this.keySearch(), true, this.loadedLastItem(), guideAutoUpdateArgumentsValue));
717
717
  }
718
718
  const result = await this.httpRequestService.callApi(this.httpRequestData());
719
- if ((firstCall || onlyResetDataAfterCallAPI) && resetAfterCallApi) {
719
+ if ((firstCall || isChangePage) && resetAfterCallApi) {
720
720
  this.hasScroll.set(false);
721
721
  this.stores.set([]);
722
722
  this.items.set([]);
723
723
  }
724
- this.pagingStore.set(result.paging);
724
+ if (isChangePage) {
725
+ this.pagingStore.set(result.paging);
726
+ }
725
727
  this.totalItemInBackend.set(result.paging?.total_items || 0);
726
728
  this.outTotalItem.emit(this.totalItemInBackend());
727
729
  if (!this.pagingStore()) {