@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.
- package/bundles/colijnit-transaction.umd.js +7 -5
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/assets/dictionary/text.properties.js +3 -1
- package/esm2015/lib/component/transaction-search/service/transaction-search.service.js +4 -4
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.js +34 -30
- package/esm2015/lib/service/transaction-connector-adapter.service.js +2 -2
- package/fesm2015/colijnit-transaction.js +39 -33
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction-search/transaction-search-result/style/_layout.scss +6 -0
- package/package.json +1 -1
|
@@ -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.
|
|
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
|
-
|
|
8397
|
-
this.
|
|
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
|
-
|
|
20887
|
-
|
|
20888
|
-
|
|
20889
|
-
|
|
20890
|
-
|
|
20891
|
-
|
|
20892
|
-
|
|
20893
|
-
|
|
20894
|
-
|
|
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
|
-
|
|
20899
|
-
|
|
20900
|
-
|
|
20901
|
-
|
|
20902
|
-
|
|
20903
|
-
|
|
20904
|
-
|
|
20905
|
-
|
|
20906
|
-
|
|
20907
|
-
|
|
20908
|
-
|
|
20909
|
-
|
|
20910
|
-
|
|
20911
|
-
|
|
20912
|
-
|
|
20913
|
-
|
|
20914
|
-
|
|
20915
|
-
|
|
20916
|
-
|
|
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
|
},] }
|