@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
|
@@ -427,6 +427,7 @@
|
|
|
427
427
|
function Dictionary() {
|
|
428
428
|
this.strings = {
|
|
429
429
|
"nl": {
|
|
430
|
+
"0_RESULTS_FOUND": "0 resultaten gevonden",
|
|
430
431
|
"ACCOUNT_DETAILS": "Accountgegevens",
|
|
431
432
|
"ACCOUNT_EXPLANATION": "Het e-mailadres en wachtwoord zijn nodig om toegang te krijgen tot de gegevens. " +
|
|
432
433
|
"Ook zullen we je via dit e-mailadres op de hoogte houden van de status van bestellingen.",
|
|
@@ -776,6 +777,7 @@
|
|
|
776
777
|
"de": {},
|
|
777
778
|
"fr": {},
|
|
778
779
|
"en": {
|
|
780
|
+
"0_RESULTS_FOUND": "0 results found",
|
|
779
781
|
"ACCOUNT_DETAILS": "Account details",
|
|
780
782
|
"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",
|
|
781
783
|
"ACTIVE": "Active",
|
|
@@ -3980,7 +3982,7 @@
|
|
|
3980
3982
|
var result;
|
|
3981
3983
|
return __generator(this, function (_a) {
|
|
3982
3984
|
switch (_a.label) {
|
|
3983
|
-
case 0: return [4 /*yield*/, this.connector.
|
|
3985
|
+
case 0: return [4 /*yield*/, this.connector.getPaymentMethods()];
|
|
3984
3986
|
case 1:
|
|
3985
3987
|
result = _a.sent();
|
|
3986
3988
|
if (result.validationResult && result.validationResult.success) {
|
|
@@ -9871,7 +9873,6 @@
|
|
|
9871
9873
|
[transactionKind_enum.TransactionKind.ServiceOrder, "SERVICEORDERS"]
|
|
9872
9874
|
]);
|
|
9873
9875
|
this.transactionsPerPage = 20;
|
|
9874
|
-
this.resultCount = 0;
|
|
9875
9876
|
this._currentPage = 1;
|
|
9876
9877
|
this._transactionType = transactionKind_enum.TransactionKind.SalesOrder;
|
|
9877
9878
|
}
|
|
@@ -9909,8 +9910,9 @@
|
|
|
9909
9910
|
var lowerBound = ((this.currentPage - 1) * this.transactionsPerPage) + 1;
|
|
9910
9911
|
this.searchRequest.paging = new pagingParameters.PagingParameters(lowerBound, lowerBound + this.transactionsPerPage - 1, this.transactionsPerPage);
|
|
9911
9912
|
this._transactionService.searchTransactions(this.searchRequest).then(function (result) {
|
|
9912
|
-
|
|
9913
|
-
_this.
|
|
9913
|
+
var _a, _b;
|
|
9914
|
+
_this.transactions = (_a = result.transactions) !== null && _a !== void 0 ? _a : [];
|
|
9915
|
+
_this.resultCount = (_b = result.count) !== null && _b !== void 0 ? _b : undefined;
|
|
9914
9916
|
});
|
|
9915
9917
|
this.setPreviousSearchRequest();
|
|
9916
9918
|
};
|
|
@@ -20977,7 +20979,7 @@
|
|
|
20977
20979
|
TransactionSearchResultComponent.decorators = [
|
|
20978
20980
|
{ type: i0.Component, args: [{
|
|
20979
20981
|
selector: 'co-transaction-search-result',
|
|
20980
|
-
template: "\n <div class=\"transaction-search-header-wrapper\">\n <co-transaction-search-header\n [transactionType]=\"transactionType\"\n [activeSearchViewMode]=\"activeSearchViewMode\"\n [activeContentViewMode]=\"activeContentViewMode\"\n (viewModeChange)=\"activeContentViewMode = $event\"\n (resizeClick)=\"onResizeClick()\"\n (filterButtonClick)=\"onFilterClick()\"\n (closeClick)=\"onCloseClick()\">\n </co-transaction-search-header>\n </div>\n\n
|
|
20982
|
+
template: "\n <div class=\"transaction-search-header-wrapper\">\n <co-transaction-search-header\n [transactionType]=\"transactionType\"\n [activeSearchViewMode]=\"activeSearchViewMode\"\n [activeContentViewMode]=\"activeContentViewMode\"\n (viewModeChange)=\"activeContentViewMode = $event\"\n (resizeClick)=\"onResizeClick()\"\n (filterButtonClick)=\"onFilterClick()\"\n (closeClick)=\"onCloseClick()\">\n </co-transaction-search-header>\n </div>\n\n <div class=\"transaction-search-result-content-tiles-wrapper\" [ngClass]=\"fullscreen ? 'fullscreen' : 'sidebar'\"\n *ngIf=\"activeContentViewMode === contentViewModes.Tiles\">\n <div class=\"transaction-tile\" *ngFor=\"let transaction of searchService.transactions\">\n <co-transaction-search-tile\n [transaction]=\"transaction\"\n [transactionType]=\"transactionType\"\n [class]=\"transaction === selectedTransaction ? 'selected' : ''\"\n (transactionClick)=\"onTransactionClick($event)\">\n </co-transaction-search-tile>\n </div>\n </div>\n\n <div class=\"transaction-search-result-content-grid-wrapper\"\n *ngIf=\"activeContentViewMode === contentViewModes.Grid\">\n <co-transaction-search-grid\n [transactionType]=\"transactionType\"\n (transactionClick)=\"onTransactionClick($event)\"\n ></co-transaction-search-grid>\n </div>\n <co-pagination-bar *ngIf=\"searchService.transactions?.length > 0\"\n [currentPage]=\"searchService.currentPage\"\n [itemsPerPage]=\"searchService.transactionsPerPage\"\n [totalItems]=\"searchService.resultCount\"\n [previousLabel]=\"'PREVIOUS' | localize\"\n [nextLabel]=\"'NEXT' | localize\"\n [autoHide]=\"true\"\n [directionLinks]=\"fullscreen\"\n [paginationRange]=\"!fullscreen ? 6 : 8\"\n (previousClick)=\"onPreviousClick()\"\n (nextClick)=\"onNextClick()\"\n (pageClick)=\"onPageClick($event)\">\n </co-pagination-bar>\n <div class=\"empty-state-wrapper\" *ngIf=\"this.searchService.transactions && this.searchService.resultCount === 0\">\n <span [textContent]=\"'0_RESULTS_FOUND' | localize\"></span>\n </div>\n ",
|
|
20981
20983
|
encapsulation: i0.ViewEncapsulation.None
|
|
20982
20984
|
},] }
|
|
20983
20985
|
];
|