@colijnit/transaction 12.1.48 → 12.1.49

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.
@@ -177,6 +177,7 @@ class Dictionary {
177
177
  constructor() {
178
178
  this.strings = {
179
179
  "nl": {
180
+ "0_RESULTS_FOUND": "0 resultaten gevonden",
180
181
  "ACCOUNT_DETAILS": "Accountgegevens",
181
182
  "ACCOUNT_EXPLANATION": "Het e-mailadres en wachtwoord zijn nodig om toegang te krijgen tot de gegevens. " +
182
183
  "Ook zullen we je via dit e-mailadres op de hoogte houden van de status van bestellingen.",
@@ -526,6 +527,7 @@ class Dictionary {
526
527
  "de": {},
527
528
  "fr": {},
528
529
  "en": {
530
+ "0_RESULTS_FOUND": "0 results found",
529
531
  "ACCOUNT_DETAILS": "Account details",
530
532
  "ACCOUNT_EXPLANATION": "E-mailaddress and password are needed to gain access to the data. We also notify you on this e-mailaddress about the order status",
531
533
  "ACTIVE": "Active",
@@ -3386,7 +3388,7 @@ class TransactionConnectorAdapterService {
3386
3388
  }
3387
3389
  getPaymentMethods() {
3388
3390
  return __awaiter(this, void 0, void 0, function* () {
3389
- const result = yield this.connector.getPaymentMethodsForSalesOrder();
3391
+ const result = yield this.connector.getPaymentMethods();
3390
3392
  if (result.validationResult && result.validationResult.success) {
3391
3393
  return this._boFactory.makeBOArrayFromRawBackendDataArray(PaymentMethod, result.resultObject);
3392
3394
  }
@@ -8364,7 +8366,6 @@ class TransactionSearchService {
8364
8366
  [TransactionKind.ServiceOrder, "SERVICEORDERS"]
8365
8367
  ]);
8366
8368
  this.transactionsPerPage = 20;
8367
- this.resultCount = 0;
8368
8369
  this._currentPage = 1;
8369
8370
  this._transactionType = TransactionKind.SalesOrder;
8370
8371
  }
@@ -8393,8 +8394,9 @@ class TransactionSearchService {
8393
8394
  const lowerBound = ((this.currentPage - 1) * this.transactionsPerPage) + 1;
8394
8395
  this.searchRequest.paging = new PagingParameters(lowerBound, lowerBound + this.transactionsPerPage - 1, this.transactionsPerPage);
8395
8396
  this._transactionService.searchTransactions(this.searchRequest).then((result) => {
8396
- this.transactions = result.transactions;
8397
- this.resultCount = result.count;
8397
+ var _a, _b;
8398
+ this.transactions = (_a = result.transactions) !== null && _a !== void 0 ? _a : [];
8399
+ this.resultCount = (_b = result.count) !== null && _b !== void 0 ? _b : undefined;
8398
8400
  });
8399
8401
  this.setPreviousSearchRequest();
8400
8402
  }
@@ -20883,37 +20885,41 @@ TransactionSearchResultComponent.decorators = [
20883
20885
  </co-transaction-search-header>
20884
20886
  </div>
20885
20887
 
20886
- <div class="transaction-search-result-content-tiles-wrapper" [ngClass]="fullscreen ? 'fullscreen' : 'sidebar'"
20887
- *ngIf="activeContentViewMode === contentViewModes.Tiles">
20888
- <div class="transaction-tile" *ngFor="let transaction of searchService.transactions">
20889
- <co-transaction-search-tile
20890
- [transaction]="transaction"
20891
- [transactionType]="transactionType"
20892
- [class]="transaction === selectedTransaction ? 'selected' : ''"
20893
- (transactionClick)="onTransactionClick($event)">
20894
- </co-transaction-search-tile>
20888
+ <div class="transaction-search-result-content-tiles-wrapper" [ngClass]="fullscreen ? 'fullscreen' : 'sidebar'"
20889
+ *ngIf="activeContentViewMode === contentViewModes.Tiles">
20890
+ <div class="transaction-tile" *ngFor="let transaction of searchService.transactions">
20891
+ <co-transaction-search-tile
20892
+ [transaction]="transaction"
20893
+ [transactionType]="transactionType"
20894
+ [class]="transaction === selectedTransaction ? 'selected' : ''"
20895
+ (transactionClick)="onTransactionClick($event)">
20896
+ </co-transaction-search-tile>
20897
+ </div>
20895
20898
  </div>
20896
- </div>
20897
20899
 
20898
- <div class="transaction-search-result-content-grid-wrapper" *ngIf="activeContentViewMode === contentViewModes.Grid">
20899
- <co-transaction-search-grid
20900
- [transactionType]="transactionType"
20901
- (transactionClick)="onTransactionClick($event)"
20902
- ></co-transaction-search-grid>
20903
- </div>
20904
- <co-pagination-bar *ngIf="searchService.transactions?.length > 0"
20905
- [currentPage]="searchService.currentPage"
20906
- [itemsPerPage]="searchService.transactionsPerPage"
20907
- [totalItems]="searchService.resultCount"
20908
- [previousLabel]="'PREVIOUS' | localize"
20909
- [nextLabel]="'NEXT' | localize"
20910
- [autoHide]="true"
20911
- [directionLinks]="fullscreen"
20912
- [paginationRange]="!fullscreen ? 6 : 8"
20913
- (previousClick)="onPreviousClick()"
20914
- (nextClick)="onNextClick()"
20915
- (pageClick)="onPageClick($event)">
20916
- </co-pagination-bar>
20900
+ <div class="transaction-search-result-content-grid-wrapper"
20901
+ *ngIf="activeContentViewMode === contentViewModes.Grid">
20902
+ <co-transaction-search-grid
20903
+ [transactionType]="transactionType"
20904
+ (transactionClick)="onTransactionClick($event)"
20905
+ ></co-transaction-search-grid>
20906
+ </div>
20907
+ <co-pagination-bar *ngIf="searchService.transactions?.length > 0"
20908
+ [currentPage]="searchService.currentPage"
20909
+ [itemsPerPage]="searchService.transactionsPerPage"
20910
+ [totalItems]="searchService.resultCount"
20911
+ [previousLabel]="'PREVIOUS' | localize"
20912
+ [nextLabel]="'NEXT' | localize"
20913
+ [autoHide]="true"
20914
+ [directionLinks]="fullscreen"
20915
+ [paginationRange]="!fullscreen ? 6 : 8"
20916
+ (previousClick)="onPreviousClick()"
20917
+ (nextClick)="onNextClick()"
20918
+ (pageClick)="onPageClick($event)">
20919
+ </co-pagination-bar>
20920
+ <div class="empty-state-wrapper" *ngIf="this.searchService.transactions && this.searchService.resultCount === 0">
20921
+ <span [textContent]="'0_RESULTS_FOUND' | localize"></span>
20922
+ </div>
20917
20923
  `,
20918
20924
  encapsulation: ViewEncapsulation.None
20919
20925
  },] }