@smartbit4all/ng-client 3.2.39 → 3.2.40

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.
@@ -11049,9 +11049,9 @@ class SmartGridService {
11049
11049
  orderedColumnNames: this.gridModel.view?.orderedColumnNames,
11050
11050
  pageSize: +limit,
11051
11051
  });
11052
- // await this.load(uuid, gridIdentifier);
11053
11052
  }
11054
11053
  async sort(smartGrid, gridUpdateData) {
11054
+ gridUpdateData.pageSize = this.getCurrentPageSize();
11055
11055
  let gridModelResult = await this.api
11056
11056
  .update(smartGrid.gridModel.viewUuid, smartGrid.gridIdentifier, gridUpdateData)
11057
11057
  .toPromise();
@@ -11074,6 +11074,7 @@ class SmartGridService {
11074
11074
  .toPromise();
11075
11075
  }
11076
11076
  async update(uuid, identifier, updateData) {
11077
+ updateData.pageSize = this.getCurrentPageSize();
11077
11078
  let gridModelResult = await this.api.update(uuid, identifier, updateData).toPromise();
11078
11079
  this.updateGrid(gridModelResult, 'update');
11079
11080
  }
@@ -11086,6 +11087,12 @@ class SmartGridService {
11086
11087
  console.error(`GridModel is undefined in service after ${method}!`);
11087
11088
  }
11088
11089
  }
11090
+ getCurrentPageSize() {
11091
+ if (this.paginator) {
11092
+ return this.gridModel.pageSize;
11093
+ }
11094
+ return 0;
11095
+ }
11089
11096
  }
11090
11097
  SmartGridService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartGridService, deps: [{ token: GridService }], target: i0.ɵɵFactoryTarget.Injectable });
11091
11098
  SmartGridService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartGridService });
@@ -11732,6 +11739,7 @@ class SmartGridComponent {
11732
11739
  ngOnChanges(changes) {
11733
11740
  if (changes['smartGrid']) {
11734
11741
  this.smartGrid = changes['smartGrid'].currentValue;
11742
+ this.service.paginator = this.smartGrid?.paginator;
11735
11743
  }
11736
11744
  if (changes['uuid']) {
11737
11745
  this.uuid = changes['uuid'].currentValue;