@colijnit/transaction 12.1.36 → 12.1.37
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 +260 -178
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +80 -80
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +81 -81
- package/esm2015/lib/component/checkout/checkout.component.js +3 -1
- package/esm2015/lib/component/core/base/transaction-filter-popup-base.component.js +34 -14
- package/esm2015/lib/component/dialog/transaction-header/dialog-transaction-header-delivery-method/dialog-transaction-header-delivery-method.component.js +3 -1
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-commission-code/dialog-transaction-line-commission-code.component.js +4 -1
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-delivery-method/dialog-transaction-line-delivery-method.component.js +3 -1
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-price-list/dialog-transaction-line-price-list.component.js +3 -1
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-vat/dialog-transaction-line-vat.component.js +3 -1
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse/dialog-transaction-line-warehouse.component.js +3 -1
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-location/dialog-transaction-line-warehouse-location.component.js +3 -1
- package/esm2015/lib/component/shopping-cart-preview/shopping-cart-preview.component.js +2 -1
- package/esm2015/lib/component/transaction/transaction.component.js +2 -1
- package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.js +2 -1
- package/esm2015/lib/component/transaction-header-fields/transaction-header-delivery-date.component.js +5 -1
- package/esm2015/lib/component/transaction-header-fields/transaction-header-preferred-delivery-date.component.js +6 -2
- package/esm2015/lib/component/transaction-line/transaction-line.component.js +18 -7
- package/esm2015/lib/component/transaction-line/transaction-line.module.js +4 -2
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date.component.js +45 -5
- package/esm2015/lib/component/transaction-lines/transaction-lines.component.js +6 -2
- package/esm2015/lib/service/transaction.service.js +3 -3
- package/fesm2015/colijnit-transaction.js +183 -84
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/core/base/transaction-filter-popup-base.component.d.ts +4 -2
- package/lib/component/dialog/dialog-header-search/style/_layout.scss +16 -0
- package/lib/component/dialog/dialog-header-search/style/_material-definition.scss +4 -0
- package/lib/component/dialog/transaction-header/dialog-transaction-header-delivery-method/style/_material-definition.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-commission-code/style/_material-definition.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-delivery-method/style/_material-definition.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-price-list/style/_material-definition.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-vat/style/_material-definition.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse/style/_material-definition.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-location/style/_material-definition.scss +1 -1
- package/lib/component/transaction-line/style/_layout.scss +6 -0
- package/lib/component/transaction-line/transaction-line.component.d.ts +2 -0
- package/lib/component/transaction-line-fields/transaction-line-delivery-date.component.d.ts +9 -0
- package/lib/component/transaction-lines/transaction-lines.component.d.ts +2 -0
- package/lib/component/transaction-search/style/material.scss +1 -1
- package/lib/service/transaction.service.d.ts +1 -1
- package/lib/style/_variables.scss +1 -0
- package/lib/style/transaction-globals.scss +6 -2
- package/package.json +2 -2
|
@@ -2641,8 +2641,10 @@
|
|
|
2641
2641
|
|
|
2642
2642
|
var TransactionFilterPopupBaseComponent = /** @class */ (function () {
|
|
2643
2643
|
function TransactionFilterPopupBaseComponent() {
|
|
2644
|
+
this.autoClose = false;
|
|
2644
2645
|
this.useModel = true;
|
|
2645
2646
|
this.valueChange = new i0.EventEmitter();
|
|
2647
|
+
this.closeAfterCommit = new i0.EventEmitter();
|
|
2646
2648
|
this.viewModels = [];
|
|
2647
2649
|
this.viewModelsFiltered = [];
|
|
2648
2650
|
this.propsForLabel = [];
|
|
@@ -2677,20 +2679,44 @@
|
|
|
2677
2679
|
enumerable: false,
|
|
2678
2680
|
configurable: true
|
|
2679
2681
|
});
|
|
2680
|
-
TransactionFilterPopupBaseComponent.prototype.commit = function (value) {
|
|
2682
|
+
TransactionFilterPopupBaseComponent.prototype.commit = function (value) {
|
|
2683
|
+
return Promise.resolve(true);
|
|
2684
|
+
};
|
|
2681
2685
|
TransactionFilterPopupBaseComponent.prototype.handleChecked = function (row) {
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2686
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2687
|
+
var currentModel, i;
|
|
2688
|
+
return __generator(this, function (_a) {
|
|
2689
|
+
switch (_a.label) {
|
|
2690
|
+
case 0:
|
|
2691
|
+
row.checked = true;
|
|
2692
|
+
currentModel = this.viewModels.find(function (v) { return v.value === row.value; });
|
|
2693
|
+
if (currentModel) {
|
|
2694
|
+
currentModel.checked = true;
|
|
2695
|
+
}
|
|
2696
|
+
for (i = 0; i < this.viewModels.length; i++) {
|
|
2697
|
+
if (this.viewModels[i].value !== row.value) {
|
|
2698
|
+
this.viewModels[i].checked = false;
|
|
2699
|
+
}
|
|
2700
|
+
}
|
|
2701
|
+
if (!this.useModel) return [3 /*break*/, 4];
|
|
2702
|
+
if (!this.autoClose) return [3 /*break*/, 2];
|
|
2703
|
+
return [4 /*yield*/, this.commit(row.value)];
|
|
2704
|
+
case 1:
|
|
2705
|
+
if (_a.sent()) {
|
|
2706
|
+
this.closeAfterCommit.emit();
|
|
2707
|
+
}
|
|
2708
|
+
return [3 /*break*/, 3];
|
|
2709
|
+
case 2:
|
|
2710
|
+
this.commit(row.value);
|
|
2711
|
+
_a.label = 3;
|
|
2712
|
+
case 3: return [3 /*break*/, 5];
|
|
2713
|
+
case 4:
|
|
2714
|
+
this.valueChange.emit(row.value);
|
|
2715
|
+
_a.label = 5;
|
|
2716
|
+
case 5: return [2 /*return*/];
|
|
2717
|
+
}
|
|
2718
|
+
});
|
|
2719
|
+
});
|
|
2694
2720
|
};
|
|
2695
2721
|
TransactionFilterPopupBaseComponent.prototype.prepareViewModels = function () {
|
|
2696
2722
|
var _this = this;
|
|
@@ -2731,9 +2757,11 @@
|
|
|
2731
2757
|
{ type: i0.Directive }
|
|
2732
2758
|
];
|
|
2733
2759
|
TransactionFilterPopupBaseComponent.propDecorators = {
|
|
2760
|
+
autoClose: [{ type: i0.Input }],
|
|
2734
2761
|
useModel: [{ type: i0.Input }],
|
|
2735
2762
|
searchText: [{ type: i0.Input }],
|
|
2736
|
-
valueChange: [{ type: i0.Output }]
|
|
2763
|
+
valueChange: [{ type: i0.Output }],
|
|
2764
|
+
closeAfterCommit: [{ type: i0.Output }]
|
|
2737
2765
|
};
|
|
2738
2766
|
|
|
2739
2767
|
var TransactionLineBaseComponent = /** @class */ (function (_super) {
|
|
@@ -2841,7 +2869,7 @@
|
|
|
2841
2869
|
DialogTransactionLineWarehouseComponent.decorators = [
|
|
2842
2870
|
{ type: i0.Component, args: [{
|
|
2843
2871
|
selector: "co-dialog-transaction-line-warehouse",
|
|
2844
|
-
template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" [showCloseIcon]=\"useModel\" (closeClick)=\"handleClose(buttonType.Ok)\">\n <co-transaction-line-warehouse\n [useModel]=\"useModel\"\n [transactionLine]=\"transactionLine\"\n [searchText]=\"searchText\"\n (valueChange)=\"handleValueChange($event)\"\n ></co-transaction-line-warehouse>\n </co-dialog>\n <ng-template #dialogHeader>\n <co-dialog-header-search [title]=\"'WAREHOUSE'\" (search)=\"handleSearch($event)\"></co-dialog-header-search>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"dialog-footer-button-wrapper\" *ngIf=\"!useModel\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
|
|
2872
|
+
template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" [showCloseIcon]=\"useModel\" (closeClick)=\"handleClose(buttonType.Ok)\">\n <co-transaction-line-warehouse\n [autoClose]=\"autoClose\"\n [useModel]=\"useModel\"\n [transactionLine]=\"transactionLine\"\n [searchText]=\"searchText\"\n (closeAfterCommit)=\"handleClose(buttonType.Ok)\"\n (valueChange)=\"handleValueChange($event)\"\n ></co-transaction-line-warehouse>\n </co-dialog>\n <ng-template #dialogHeader>\n <co-dialog-header-search [title]=\"'WAREHOUSE'\" (search)=\"handleSearch($event)\"></co-dialog-header-search>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"dialog-footer-button-wrapper\" *ngIf=\"!useModel\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
|
|
2845
2873
|
encapsulation: i0.ViewEncapsulation.None
|
|
2846
2874
|
},] }
|
|
2847
2875
|
];
|
|
@@ -2862,7 +2890,7 @@
|
|
|
2862
2890
|
DialogTransactionLineCommissionCodeComponent.decorators = [
|
|
2863
2891
|
{ type: i0.Component, args: [{
|
|
2864
2892
|
selector: "co-dialog-transaction-line-commission-code",
|
|
2865
|
-
template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" [showCloseIcon]=\"useModel\" (closeClick)=\"handleClose(buttonType.Ok)\">\n <co-transaction-line-commission-code\n [useModel]=\"useModel\"\n [transactionLine]=\"transactionLine\"\n (valueChange)=\"handleValueChange($event)\"></co-transaction-line-commission-code>\n </co-dialog>\n <ng-template #dialogHeader>\n <div class=\"dialog-header-title\" [textContent]=\"'COMMISSION_CODE' | localize\"></div>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"dialog-footer-button-wrapper\" *ngIf=\"!useModel\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
|
|
2893
|
+
template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" [showCloseIcon]=\"useModel\" (closeClick)=\"handleClose(buttonType.Ok)\">\n <co-transaction-line-commission-code\n [autoClose]=\"autoClose\"\n [useModel]=\"useModel\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n (closeAfterCommit)=\"handleClose(buttonType.Ok)\"\n (valueChange)=\"handleValueChange($event)\"></co-transaction-line-commission-code>\n </co-dialog>\n <ng-template #dialogHeader>\n <div class=\"dialog-header-title\" [textContent]=\"'COMMISSION_CODE' | localize\"></div>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"dialog-footer-button-wrapper\" *ngIf=\"!useModel\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
|
|
2866
2894
|
encapsulation: i0.ViewEncapsulation.None
|
|
2867
2895
|
},] }
|
|
2868
2896
|
];
|
|
@@ -2954,7 +2982,7 @@
|
|
|
2954
2982
|
DialogTransactionLineWarehouseLocationComponent.decorators = [
|
|
2955
2983
|
{ type: i0.Component, args: [{
|
|
2956
2984
|
selector: "co-dialog-transaction-line-warehouse-location",
|
|
2957
|
-
template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" [showCloseIcon]=\"useModel\" (closeClick)=\"onClose(buttonType.Ok)\">\n <co-transaction-line-warehouse-location\n [useModel]=\"useModel\"\n [transactionLine]=\"transactionLine\"\n [searchText]=\"searchText\"\n (valueChange)=\"handleValueChange($event)\"\n ></co-transaction-line-warehouse-location>\n </co-dialog>\n <ng-template #dialogHeader>\n <co-dialog-header-search [title]=\"'LOCATION'\" (search)=\"handleSearch($event)\"></co-dialog-header-search>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"dialog-footer-button-wrapper\" *ngIf=\"!useModel\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
|
|
2985
|
+
template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" [showCloseIcon]=\"useModel\" (closeClick)=\"onClose(buttonType.Ok)\">\n <co-transaction-line-warehouse-location\n [autoClose]=\"autoClose\"\n [useModel]=\"useModel\"\n [transactionLine]=\"transactionLine\"\n [searchText]=\"searchText\"\n (closeAfterCommit)=\"handleClose(buttonType.Ok)\"\n (valueChange)=\"handleValueChange($event)\"\n ></co-transaction-line-warehouse-location>\n </co-dialog>\n <ng-template #dialogHeader>\n <co-dialog-header-search [title]=\"'LOCATION'\" (search)=\"handleSearch($event)\"></co-dialog-header-search>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"dialog-footer-button-wrapper\" *ngIf=\"!useModel\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
|
|
2958
2986
|
encapsulation: i0.ViewEncapsulation.None
|
|
2959
2987
|
},] }
|
|
2960
2988
|
];
|
|
@@ -7085,10 +7113,7 @@
|
|
|
7085
7113
|
TransactionService.prototype.getRelationListObjects = function (relationRequest) {
|
|
7086
7114
|
return this.connector.getRelationListObjects(relationRequest);
|
|
7087
7115
|
};
|
|
7088
|
-
TransactionService.prototype.addArticle = function (articleNo,
|
|
7089
|
-
if (amount === void 0) { amount = 1; }
|
|
7090
|
-
if (warehouseNo === void 0) { warehouseNo = 1; }
|
|
7091
|
-
if (commissionCode === void 0) { commissionCode = "2"; }
|
|
7116
|
+
TransactionService.prototype.addArticle = function (articleNo, isReturn, aboveLineNr, belowLineNr) {
|
|
7092
7117
|
if (isReturn === void 0) { isReturn = false; }
|
|
7093
7118
|
if (aboveLineNr === void 0) { aboveLineNr = 0; }
|
|
7094
7119
|
if (belowLineNr === void 0) { belowLineNr = 0; }
|
|
@@ -7099,7 +7124,7 @@
|
|
|
7099
7124
|
case 0: return [4 /*yield*/, this._checkAndCreateTransaction()];
|
|
7100
7125
|
case 1:
|
|
7101
7126
|
_a.sent();
|
|
7102
|
-
return [4 /*yield*/, this.connector.addTransactionLine(this.currentTransaction.transactionInfo.uuid, transactionLineType_enum.TransactionLineType.ArticleLine, articleNo,
|
|
7127
|
+
return [4 /*yield*/, this.connector.addTransactionLine(this.currentTransaction.transactionInfo.uuid, transactionLineType_enum.TransactionLineType.ArticleLine, articleNo, null, null, null, isReturn, aboveLineNr, belowLineNr)];
|
|
7103
7128
|
case 2:
|
|
7104
7129
|
response = _a.sent();
|
|
7105
7130
|
return [4 /*yield*/, this.handleLineOperationStatuses(response)];
|
|
@@ -7594,6 +7619,7 @@
|
|
|
7594
7619
|
};
|
|
7595
7620
|
CheckoutComponent.prototype.handleTransactionFinished = function (id) {
|
|
7596
7621
|
this.service.currentTransaction = new transactionInfoResponse_bo.TransactionInfoResponse();
|
|
7622
|
+
this.service.relation = new customerFullObject_bo.CustomerFullObject();
|
|
7597
7623
|
this.service.articleAmount = 0;
|
|
7598
7624
|
this.transactionFinished.emit(id);
|
|
7599
7625
|
};
|
|
@@ -9773,6 +9799,7 @@
|
|
|
9773
9799
|
this._imageService = _imageService;
|
|
9774
9800
|
this.icons = Icon;
|
|
9775
9801
|
this.preview = false;
|
|
9802
|
+
this.transactionInfo = new transactionInfo_bo.TransactionInfo();
|
|
9776
9803
|
this.waitingForUserAction = new i0.EventEmitter();
|
|
9777
9804
|
this.sidePanelButtonClicked = new i0.EventEmitter();
|
|
9778
9805
|
this.stock = stockStatus_enum.StockStatus.Low;
|
|
@@ -9933,7 +9960,7 @@
|
|
|
9933
9960
|
TransactionLineComponent.decorators = [
|
|
9934
9961
|
{ type: i0.Component, args: [{
|
|
9935
9962
|
selector: "co-transaction-line",
|
|
9936
|
-
template: "\n <div class=\"transaction-line\">\n <ng-container *ngIf=\"line.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div class=\"transaction-line-image\" [class.preview]=\"preview\">\n <co-image-display [model]=\"image\"></co-image-display>\n </div>\n <div class=\"transaction-line-description\">\n <div class=\"description-wrapper\">\n <co-transaction-line-description class=\"transaction-line-description-description\"\n [transactionLine]=\"line\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-line-description>\n <span *ngIf=\"line.goodDescription && line.articleNumber\" class=\"transaction-line-description-divider\">|</span>\n <span [textContent]=\"line.articleNumber\" class=\"transaction-line-description-sku\"></span>\n <co-icon class=\"delete-icon\" [iconData]=\"iconCacheService.getIcon(icons.TrashCanLight)\" (click)=\"deleteTransactionLineClick()\"></co-icon>\n </div>\n <div *ngIf=!preview class=\"article-text-wrapper\">\n <div class=\"article-text\" *ngFor=\"let text of line.articleTestAsArray\">\n <span [innerHTML]=\"text | safeHtml\" (dblclick)=\"handleOpenArticleText(text)\"></span>\n </div>\n </div>\n <div *ngIf=!preview class=\"configuration-text-wrapper\">\n <span [innerHTML]=\"line.configurationReadable\"></span>\n </div>\n </div>\n <div *ngIf=!preview class=\"transaction-line-stock\">\n <div class=\"transaction-line-stock-wrapper\">\n <stock-status-indicator [model]=\"stock\"></stock-status-indicator>\n </div>\n </div>\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <div class=\"transaction-line-button\" (click)=\"openTheCommissionCodeDialog()\">\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"line.commissionCode | append:' | ' | append:line.commissionDescription\"></span>\n </div>\n <div class=\"transaction-line-button\" (click)=\"openTheWarehouseDialog()\">\n <co-icon class=\"header-warehouse-icon\" [iconData]=\"iconCacheService.getIcon(icons.Warehouse)\"></co-icon>\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"line.warehouseNumber\"></span>\n </div>\n <div class=\"transaction-line-button big\" (click)=\"openTheDeliveryMethodDialog()\">\n <co-icon class=\"header-delivery-truck-icon\" [iconData]=\"iconCacheService.getIcon(icons.TruckFastSolid)\"></co-icon>\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"line.deliveryMethodDescription\"></span>\n </div>\n <div class=\"transaction-line-button custom-width no-border two-column\">\n <span [textContent]=\"'DELIVERY_DATE' | localize | append:':'\" class=\"small-font\"></span>\n <
|
|
9963
|
+
template: "\n <div class=\"transaction-line\">\n <ng-container *ngIf=\"line.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div class=\"transaction-line-image\" [class.preview]=\"preview\">\n <co-image-display [model]=\"image\"></co-image-display>\n </div>\n <div class=\"transaction-line-description\">\n <div class=\"description-wrapper\">\n <co-transaction-line-description class=\"transaction-line-description-description\"\n [transactionLine]=\"line\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-line-description>\n <span *ngIf=\"line.goodDescription && line.articleNumber\" class=\"transaction-line-description-divider\">|</span>\n <span [textContent]=\"line.articleNumber\" class=\"transaction-line-description-sku\"></span>\n <co-icon class=\"delete-icon\" [iconData]=\"iconCacheService.getIcon(icons.TrashCanLight)\" (click)=\"deleteTransactionLineClick()\"></co-icon>\n </div>\n <div *ngIf=!preview class=\"article-text-wrapper\">\n <div class=\"article-text\" *ngFor=\"let text of line.articleTestAsArray\">\n <span [innerHTML]=\"text | safeHtml\" (dblclick)=\"handleOpenArticleText(text)\"></span>\n </div>\n </div>\n <div *ngIf=!preview class=\"configuration-text-wrapper\">\n <span [innerHTML]=\"line.configurationReadable\"></span>\n </div>\n </div>\n <div *ngIf=!preview class=\"transaction-line-stock\">\n <div class=\"transaction-line-stock-wrapper\">\n <stock-status-indicator [model]=\"stock\"></stock-status-indicator>\n </div>\n </div>\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <div class=\"transaction-line-button\" (click)=\"openTheCommissionCodeDialog()\">\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"line.commissionCode | append:' | ' | append:line.commissionDescription\"></span>\n </div>\n <div class=\"transaction-line-button\" (click)=\"openTheWarehouseDialog()\">\n <co-icon class=\"header-warehouse-icon\" [iconData]=\"iconCacheService.getIcon(icons.Warehouse)\"></co-icon>\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"line.warehouseNumber\"></span>\n </div>\n <div class=\"transaction-line-button big\" (click)=\"openTheDeliveryMethodDialog()\">\n <co-icon class=\"header-delivery-truck-icon\" [iconData]=\"iconCacheService.getIcon(icons.TruckFastSolid)\"></co-icon>\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"line.deliveryMethodDescription\"></span>\n </div>\n <div class=\"transaction-line-button custom-width no-border no-pointer two-column\">\n <span [textContent]=\"'DELIVERY_DATE' | localize | append:':'\" class=\"small-font\"></span>\n <co-transaction-line-delivery-date class=\"transaction-line-deliverydate\"\n [transactionLine]=\"line\"\n [transactionInfo]=\"transactionInfo\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n ></co-transaction-line-delivery-date>\n </div>\n </div>\n <div *ngIf=\"!preview\" class=\"transaction-line-button\" (click)=\"openVatDialog()\">\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"line.vatDescription\"></span>\n </div>\n <div class=\"transaction-line-totals\">\n <co-transaction-line-price class=\"transaction-line-totals-price price\"\n [transactionLine]=\"line\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n ></co-transaction-line-price>\n <div class=\"transaction-line-button center-align custom-width\" (click)=\"openTheDiscountDialog()\">\n <span class=\"co-transaction-overflow-ellipsis transaction-line-discount\" [class.negative]=\"line.lineTotalDiscountAmount < 0\"\n [textContent]=\"(line.lineTotalDiscountAmount | coCurrency) || ('DISCOUNT' | localize)\"></span>\n </div>\n <div *ngIf=!preview class=\"transaction-line-totals-amount\">\n <co-input-number-picker class=\"amount-number-picker\"\n [(model)]=\"localAmount\" [min]=\"0\"\n [readonly]=\"readonly\"\n (modelChange)=\"changeLineAmount($event)\"></co-input-number-picker>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"line.displayNetLineTotal | coCurrency\"\n [editModel]=\"line.displayNetLineTotal\"\n [readonly]=\"true\"\n [commit]=\"false\"\n ></co-editable-label>\n </div>\n <div *ngIf=\"!preview\" class=\"transaction-line-buttons\">\n <co-transaction-line-action-buttons\n [transactionLine]=\"line\"\n (waitingForUserAction)=\"waitingForUserAction.next($event)\"\n (sidePanelButtonClicked)=\"handleShowSidePanel()\"\n ></co-transaction-line-action-buttons>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"line.isText\">\n <div [textContent]=\"line.text\"></div>\n <div class=\"transaction-line-delete\" *ngIf=\"!preview\">\n <co-icon class=\"delete-icon\" [iconData]=\"iconCacheService.getIcon(icons.TrashCanLight)\" (click)=\"deleteTransactionLineClick()\"></co-icon>\n </div>\n </ng-container>\n <co-dialog-transaction-line-delivery-method *ngIf=\"showDialogDeliveryMethod\"\n [autoClose]=\"true\"\n [transactionInfo]=\"service.currentTransaction.transactionInfo\"\n [transactionLine]=\"line\"\n (close)=\"showDialogDeliveryMethod = false\"\n ></co-dialog-transaction-line-delivery-method>\n <co-dialog-transaction-line-commission-code *ngIf=\"showDialogCommissionCode\"\n [autoClose]=\"true\"\n [transactionInfo]=\"service.currentTransaction.transactionInfo\"\n [transactionLine]=\"line\"\n (close)=\"showDialogCommissionCode = false\"\n ></co-dialog-transaction-line-commission-code>\n <co-dialog-transaction-line-vat *ngIf=\"showDialogVat\"\n [autoClose]=\"true\"\n [transactionInfo]=\"service.currentTransaction.transactionInfo\"\n [transactionLine]=\"line\"\n (close)=\"showDialogVat = false\"\n ></co-dialog-transaction-line-vat>\n <co-dialog-transaction-line-warehouse *ngIf=\"showDialogWarehouse\"\n [autoClose]=\"true\"\n [transactionInfo]=\"service.currentTransaction.transactionInfo\"\n [transactionLine]=\"line\"\n (close)=\"showDialogWarehouse = false\"\n ></co-dialog-transaction-line-warehouse>\n <co-dialog-transaction-line-discount *ngIf=\"showDialogDiscount\"\n [transactionInfo]=\"service.currentTransaction.transactionInfo\"\n [transactionLine]=\"line\"\n (close)=\"showDialogDiscount = false\"\n ></co-dialog-transaction-line-discount>\n </div>\n ",
|
|
9937
9964
|
encapsulation: i0.ViewEncapsulation.None
|
|
9938
9965
|
},] }
|
|
9939
9966
|
];
|
|
@@ -9946,6 +9973,7 @@
|
|
|
9946
9973
|
]; };
|
|
9947
9974
|
TransactionLineComponent.propDecorators = {
|
|
9948
9975
|
preview: [{ type: i0.HostBinding, args: ["class.preview",] }, { type: i0.Input }],
|
|
9976
|
+
transactionInfo: [{ type: i0.Input }],
|
|
9949
9977
|
line: [{ type: i0.Input }],
|
|
9950
9978
|
waitingForUserAction: [{ type: i0.Output }],
|
|
9951
9979
|
sidePanelButtonClicked: [{ type: i0.Output }],
|
|
@@ -10415,7 +10443,7 @@
|
|
|
10415
10443
|
DialogTransactionLineDeliveryMethodComponent.decorators = [
|
|
10416
10444
|
{ type: i0.Component, args: [{
|
|
10417
10445
|
selector: "co-dialog-transaction-line-delivery-method",
|
|
10418
|
-
template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" [showCloseIcon]=\"useModel\" (closeClick)=\"handleClose(buttonType.Ok)\">\n <co-transaction-line-delivery-method\n [useModel]=\"useModel\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [searchText]=\"searchText\"\n (valueChange)=\"handleValueChange($event)\"></co-transaction-line-delivery-method>\n </co-dialog>\n <ng-template #dialogHeader>\n <co-dialog-header-search [title]=\"'DELIVERY_METHOD'\" (search)=\"handleSearch($event)\"></co-dialog-header-search>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"dialog-footer-button-wrapper\" *ngIf=\"!useModel\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
|
|
10446
|
+
template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" [showCloseIcon]=\"useModel\" (closeClick)=\"handleClose(buttonType.Ok)\">\n <co-transaction-line-delivery-method\n [autoClose]=\"autoClose\"\n [useModel]=\"useModel\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [searchText]=\"searchText\"\n (closeAfterCommit)=\"handleClose(buttonType.Ok)\"\n (valueChange)=\"handleValueChange($event)\"></co-transaction-line-delivery-method>\n </co-dialog>\n <ng-template #dialogHeader>\n <co-dialog-header-search [title]=\"'DELIVERY_METHOD'\" (search)=\"handleSearch($event)\"></co-dialog-header-search>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"dialog-footer-button-wrapper\" *ngIf=\"!useModel\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
|
|
10419
10447
|
encapsulation: i0.ViewEncapsulation.None
|
|
10420
10448
|
},] }
|
|
10421
10449
|
];
|
|
@@ -10752,7 +10780,7 @@
|
|
|
10752
10780
|
DialogTransactionLineVatComponent.decorators = [
|
|
10753
10781
|
{ type: i0.Component, args: [{
|
|
10754
10782
|
selector: "co-dialog-transaction-line-vat",
|
|
10755
|
-
template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" [showCloseIcon]=\"useModel\" (closeClick)=\"handleClose(buttonType.Ok)\">\n <co-transaction-line-vat\n [useModel]=\"useModel\"\n [transactionLine]=\"transactionLine\"\n [searchText]=\"searchText\"\n (valueChange)=\"handleValueChange($event)\"\n ></co-transaction-line-vat>\n </co-dialog>\n <ng-template #dialogHeader>\n <co-dialog-header-search [title]=\"'VAT'\" (search)=\"handleSearch($event)\"></co-dialog-header-search>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"dialog-footer-button-wrapper\" *ngIf=\"!useModel\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
|
|
10783
|
+
template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" [showCloseIcon]=\"useModel\" (closeClick)=\"handleClose(buttonType.Ok)\">\n <co-transaction-line-vat\n [autoClose]=\"autoClose\"\n [useModel]=\"useModel\"\n [transactionLine]=\"transactionLine\"\n [searchText]=\"searchText\"\n (closeAfterCommit)=\"handleClose(buttonType.Ok)\"\n (valueChange)=\"handleValueChange($event)\"\n ></co-transaction-line-vat>\n </co-dialog>\n <ng-template #dialogHeader>\n <co-dialog-header-search [title]=\"'VAT'\" (search)=\"handleSearch($event)\"></co-dialog-header-search>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"dialog-footer-button-wrapper\" *ngIf=\"!useModel\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
|
|
10756
10784
|
encapsulation: i0.ViewEncapsulation.None
|
|
10757
10785
|
},] }
|
|
10758
10786
|
];
|
|
@@ -11400,7 +11428,7 @@
|
|
|
11400
11428
|
DialogTransactionLinePriceListComponent.decorators = [
|
|
11401
11429
|
{ type: i0.Component, args: [{
|
|
11402
11430
|
selector: "co-dialog-transaction-line-price-list",
|
|
11403
|
-
template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" [showCloseIcon]=\"useModel\" (closeClick)=\"handleClose(buttonType.Ok)\">\n <co-transaction-line-price-list\n [useModel]=\"useModel\"\n [transactionLine]=\"transactionLine\"\n [searchText]=\"searchText\"\n (valueChange)=\"handleValueChange($event)\"></co-transaction-line-price-list>\n </co-dialog>\n <ng-template #dialogHeader>\n <co-dialog-header-search [title]=\"'PRICE_LIST'\" (search)=\"handleSearch($event)\"></co-dialog-header-search>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"dialog-footer-button-wrapper\" *ngIf=\"!useModel\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
|
|
11431
|
+
template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" [showCloseIcon]=\"useModel\" (closeClick)=\"handleClose(buttonType.Ok)\">\n <co-transaction-line-price-list\n [autoClose]=\"autoClose\"\n [useModel]=\"useModel\"\n [transactionLine]=\"transactionLine\"\n [searchText]=\"searchText\"\n (closeAfterCommit)=\"handleClose(buttonType.Ok)\"\n (valueChange)=\"handleValueChange($event)\"></co-transaction-line-price-list>\n </co-dialog>\n <ng-template #dialogHeader>\n <co-dialog-header-search [title]=\"'PRICE_LIST'\" (search)=\"handleSearch($event)\"></co-dialog-header-search>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"dialog-footer-button-wrapper\" *ngIf=\"!useModel\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
|
|
11404
11432
|
encapsulation: i0.ViewEncapsulation.None
|
|
11405
11433
|
},] }
|
|
11406
11434
|
];
|
|
@@ -11460,6 +11488,115 @@
|
|
|
11460
11488
|
},] }
|
|
11461
11489
|
];
|
|
11462
11490
|
|
|
11491
|
+
var TransactionLineDeliveryDateComponent = /** @class */ (function (_super) {
|
|
11492
|
+
__extends(TransactionLineDeliveryDateComponent, _super);
|
|
11493
|
+
function TransactionLineDeliveryDateComponent(_transactionService) {
|
|
11494
|
+
var _this = _super.call(this) || this;
|
|
11495
|
+
_this._transactionService = _transactionService;
|
|
11496
|
+
_this.showLabel = true;
|
|
11497
|
+
_this.defaultEditMode = true;
|
|
11498
|
+
_this._editMode = false;
|
|
11499
|
+
return _this;
|
|
11500
|
+
}
|
|
11501
|
+
Object.defineProperty(TransactionLineDeliveryDateComponent.prototype, "child", {
|
|
11502
|
+
set: function (content) {
|
|
11503
|
+
var _this = this;
|
|
11504
|
+
if (content) {
|
|
11505
|
+
this.input = content;
|
|
11506
|
+
this.input.commit = function (date) { return _this.commit(date); };
|
|
11507
|
+
if (this._editMode) {
|
|
11508
|
+
this.input.requestFocus();
|
|
11509
|
+
}
|
|
11510
|
+
}
|
|
11511
|
+
},
|
|
11512
|
+
enumerable: false,
|
|
11513
|
+
configurable: true
|
|
11514
|
+
});
|
|
11515
|
+
Object.defineProperty(TransactionLineDeliveryDateComponent.prototype, "editMode", {
|
|
11516
|
+
get: function () {
|
|
11517
|
+
return this._editMode;
|
|
11518
|
+
},
|
|
11519
|
+
set: function (value) {
|
|
11520
|
+
this._editMode = value;
|
|
11521
|
+
if (this._editMode && this.input) {
|
|
11522
|
+
this.input.doFocus();
|
|
11523
|
+
}
|
|
11524
|
+
},
|
|
11525
|
+
enumerable: false,
|
|
11526
|
+
configurable: true
|
|
11527
|
+
});
|
|
11528
|
+
TransactionLineDeliveryDateComponent.prototype.handleClick = function (event) {
|
|
11529
|
+
if (!this.readonly) {
|
|
11530
|
+
this.editMode = true;
|
|
11531
|
+
}
|
|
11532
|
+
};
|
|
11533
|
+
TransactionLineDeliveryDateComponent.prototype.commit = function (date) {
|
|
11534
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11535
|
+
var oldDate, success;
|
|
11536
|
+
return __generator(this, function (_a) {
|
|
11537
|
+
switch (_a.label) {
|
|
11538
|
+
case 0:
|
|
11539
|
+
if (!(this.transactionLine.deliveryDate !== date)) return [3 /*break*/, 2];
|
|
11540
|
+
oldDate = this.transactionLine.deliveryDate;
|
|
11541
|
+
return [4 /*yield*/, this._transactionService.updateDeliveryDateTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, date)];
|
|
11542
|
+
case 1:
|
|
11543
|
+
success = _a.sent();
|
|
11544
|
+
if (!success) {
|
|
11545
|
+
this.transactionLine.deliveryDate = oldDate;
|
|
11546
|
+
}
|
|
11547
|
+
else {
|
|
11548
|
+
this.editMode = false;
|
|
11549
|
+
}
|
|
11550
|
+
return [2 /*return*/, success];
|
|
11551
|
+
case 2: return [2 /*return*/, true];
|
|
11552
|
+
}
|
|
11553
|
+
});
|
|
11554
|
+
});
|
|
11555
|
+
};
|
|
11556
|
+
TransactionLineDeliveryDateComponent.prototype.transactionInfoSet = function () {
|
|
11557
|
+
this.readonly = this.readonly || (this.transactionInfo.deliveryDateDefinitive || !this.transactionInfo.allowPartialDelivery);
|
|
11558
|
+
};
|
|
11559
|
+
return TransactionLineDeliveryDateComponent;
|
|
11560
|
+
}(TransactionLineBaseComponent));
|
|
11561
|
+
TransactionLineDeliveryDateComponent.decorators = [
|
|
11562
|
+
{ type: i0.Component, args: [{
|
|
11563
|
+
selector: "co-transaction-line-delivery-date",
|
|
11564
|
+
template: "\n <span *ngIf=\"(!editMode || readonly) && !defaultEditMode\" [textContent]=\"transactionLine.deliveryDate | date:'dd MMM yyyy'\"></span>\n <co-input-date #input *ngIf=\"editMode || defaultEditMode\"\n [placeholder]=\"showLabel ? ('DELIVERY_DATE' | localize) : ''\"\n [showSaveCancel]=\"!readonly\"\n [readonly]=\"readonly\"\n [model]=\"transactionLine.deliveryDate\"\n (modelChange)=\"commit($event)\"\n (blur)=\"editMode = false\"\n ></co-input-date>\n ",
|
|
11565
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
11566
|
+
},] }
|
|
11567
|
+
];
|
|
11568
|
+
TransactionLineDeliveryDateComponent.ctorParameters = function () { return [
|
|
11569
|
+
{ type: TransactionService }
|
|
11570
|
+
]; };
|
|
11571
|
+
TransactionLineDeliveryDateComponent.propDecorators = {
|
|
11572
|
+
child: [{ type: i0.ViewChild, args: ['input', { read: corecomponents_v12.InputDatePickerComponent },] }],
|
|
11573
|
+
showLabel: [{ type: i0.Input }],
|
|
11574
|
+
defaultEditMode: [{ type: i0.Input }],
|
|
11575
|
+
editMode: [{ type: i0.Input }],
|
|
11576
|
+
handleClick: [{ type: i0.HostListener, args: ["click", ["$event"],] }]
|
|
11577
|
+
};
|
|
11578
|
+
|
|
11579
|
+
var TransactionLineDeliveryDateModule = /** @class */ (function () {
|
|
11580
|
+
function TransactionLineDeliveryDateModule() {
|
|
11581
|
+
}
|
|
11582
|
+
return TransactionLineDeliveryDateModule;
|
|
11583
|
+
}());
|
|
11584
|
+
TransactionLineDeliveryDateModule.decorators = [
|
|
11585
|
+
{ type: i0.NgModule, args: [{
|
|
11586
|
+
imports: [
|
|
11587
|
+
common.CommonModule,
|
|
11588
|
+
PipeModule,
|
|
11589
|
+
corecomponents_v12.InputDatePickerModule
|
|
11590
|
+
],
|
|
11591
|
+
declarations: [
|
|
11592
|
+
TransactionLineDeliveryDateComponent
|
|
11593
|
+
],
|
|
11594
|
+
exports: [
|
|
11595
|
+
TransactionLineDeliveryDateComponent
|
|
11596
|
+
]
|
|
11597
|
+
},] }
|
|
11598
|
+
];
|
|
11599
|
+
|
|
11463
11600
|
var TransactionLineModule = /** @class */ (function () {
|
|
11464
11601
|
function TransactionLineModule() {
|
|
11465
11602
|
}
|
|
@@ -11485,7 +11622,8 @@
|
|
|
11485
11622
|
DialogTransactionLineCommissionCodeModule,
|
|
11486
11623
|
DialogTransactionLineVatModule,
|
|
11487
11624
|
DialogTransactionLineWarehouseModule,
|
|
11488
|
-
DialogTransactionLineDiscountModule
|
|
11625
|
+
DialogTransactionLineDiscountModule,
|
|
11626
|
+
TransactionLineDeliveryDateModule
|
|
11489
11627
|
],
|
|
11490
11628
|
declarations: [
|
|
11491
11629
|
TransactionLineComponent
|
|
@@ -11501,6 +11639,7 @@
|
|
|
11501
11639
|
this.iconCacheService = iconCacheService;
|
|
11502
11640
|
this.service = service;
|
|
11503
11641
|
this.icons = Icon;
|
|
11642
|
+
this.transactionInfo = new transactionInfo_bo.TransactionInfo();
|
|
11504
11643
|
this.transactionLines = [];
|
|
11505
11644
|
this.preview = false;
|
|
11506
11645
|
this.saveTransactionLine = new i0.EventEmitter();
|
|
@@ -11574,7 +11713,7 @@
|
|
|
11574
11713
|
TransactionLinesComponent.decorators = [
|
|
11575
11714
|
{ type: i0.Component, args: [{
|
|
11576
11715
|
selector: "co-transaction-lines",
|
|
11577
|
-
template: "\n <div cdkDropListGroup class=\"drop-list-group\">\n <div #dropList cdkDropList cdkDropListOrientation=\"vertical\"\n class=\"transaction-lines-drag-drop-list narrow-scrollbar\"\n [cdkDropListDisabled]=\"preview || userActionRequired\"\n [cdkDropListData]=\"transactionLines\"\n [cdkDropListEnterPredicate]=\"handleCanDragDrop\"\n (cdkDropListDropped)=\"handleDrop($event)\"\n >\n <div class=\"draggable-transaction-line\" *ngFor=\"let line of transactionLines; trackBy:trackByFn;\" cdkDrag>\n <co-icon class=\"transaction-line-drag-handle\" [class.show]=\"line === selectedTransactionLine && transactionLines.length > 1\" cdkDragHandle\n [iconData]=\"iconCacheService.getIcon(icons.GripDotsVerticalSolid)\">\n </co-icon>\n <co-transaction-line\n [preview]=\"preview\"\n [line]=\"line\"\n [selected]=\"line === selectedTransactionLine\"\n (dblclick)=\"handleTransactionLineDblClick(line)\"\n (sidePanelButtonClicked)=\"handleShowSidePanelClicked(line)\"\n (waitingForUserAction)=\"userActionRequired = $event\"\n (click)=\"selectedTransactionLine = line\"\n ></co-transaction-line>\n </div>\n </div>\n </div>\n <co-button *ngIf=!preview class=\"add-text-button circle\" [iconData]=\"iconCacheService.getIcon(icons.Txt)\" (click)=\"handleTransactionArticleText($event)\"></co-button>\n <co-transaction-article-text *ngIf=\"showTransactionArticleText\"\n [header]=\"'TEXT' | localize\"\n [transactionLine]=\"selectedArticleText\"\n [editText]=\"textToEdit\"\n (saveClick)=\"saveTransactionArticleLineText($event)\"\n (closeClick)=\"closeTransactionArticleText($event)\"\n (cancelClick)=\"closeTransactionArticleText($event)\"\n ></co-transaction-article-text>\n ",
|
|
11716
|
+
template: "\n <div cdkDropListGroup class=\"drop-list-group\">\n <div #dropList cdkDropList cdkDropListOrientation=\"vertical\"\n class=\"transaction-lines-drag-drop-list narrow-scrollbar\"\n [cdkDropListDisabled]=\"preview || userActionRequired\"\n [cdkDropListData]=\"transactionLines\"\n [cdkDropListEnterPredicate]=\"handleCanDragDrop\"\n (cdkDropListDropped)=\"handleDrop($event)\"\n >\n <div class=\"draggable-transaction-line\" *ngFor=\"let line of transactionLines; trackBy:trackByFn;\" cdkDrag>\n <co-icon *ngIf=\"!preview\" class=\"transaction-line-drag-handle\" [class.show]=\"line === selectedTransactionLine && transactionLines.length > 1\" cdkDragHandle\n [iconData]=\"iconCacheService.getIcon(icons.GripDotsVerticalSolid)\">\n </co-icon>\n <co-transaction-line\n [preview]=\"preview\"\n [transactionInfo]=\"transactionInfo\"\n [line]=\"line\"\n [selected]=\"line === selectedTransactionLine\"\n (dblclick)=\"handleTransactionLineDblClick(line)\"\n (sidePanelButtonClicked)=\"handleShowSidePanelClicked(line)\"\n (waitingForUserAction)=\"userActionRequired = $event\"\n (click)=\"selectedTransactionLine = line\"\n ></co-transaction-line>\n </div>\n </div>\n </div>\n <co-button *ngIf=!preview class=\"add-text-button circle\" [iconData]=\"iconCacheService.getIcon(icons.Txt)\" (click)=\"handleTransactionArticleText($event)\"></co-button>\n <co-transaction-article-text *ngIf=\"showTransactionArticleText\"\n [header]=\"'TEXT' | localize\"\n [transactionLine]=\"selectedArticleText\"\n [editText]=\"textToEdit\"\n (saveClick)=\"saveTransactionArticleLineText($event)\"\n (closeClick)=\"closeTransactionArticleText($event)\"\n (cancelClick)=\"closeTransactionArticleText($event)\"\n ></co-transaction-article-text>\n ",
|
|
11578
11717
|
encapsulation: i0.ViewEncapsulation.None
|
|
11579
11718
|
},] }
|
|
11580
11719
|
];
|
|
@@ -11584,6 +11723,7 @@
|
|
|
11584
11723
|
]; };
|
|
11585
11724
|
TransactionLinesComponent.propDecorators = {
|
|
11586
11725
|
transactionArticleText: [{ type: i0.ViewChild, args: [TransactionArticleTextComponent,] }],
|
|
11726
|
+
transactionInfo: [{ type: i0.Input }],
|
|
11587
11727
|
transactionLines: [{ type: i0.Input }],
|
|
11588
11728
|
preview: [{ type: i0.Input }],
|
|
11589
11729
|
saveTransactionLine: [{ type: i0.Output }],
|
|
@@ -11634,7 +11774,7 @@
|
|
|
11634
11774
|
ShoppingCartPreviewComponent.decorators = [
|
|
11635
11775
|
{ type: i0.Component, args: [{
|
|
11636
11776
|
selector: "co-shopping-cart-preview",
|
|
11637
|
-
template: "\n <div class=\"cart-header\">\n <span class=\"cart-header-label\" [textContent]=\"'CART' | localize\"></span>\n </div>\n <div class=\"cart-lines\">\n <co-transaction-lines\n [transactionLines]=\"service.currentTransaction.transactionLines\"\n [preview]=\"true\"\n ></co-transaction-lines>\n </div>\n <div class=\"preview-totals-wrapper\">\n <co-transaction-totals [totals]=\"service.currentTransaction.transactionTotal\"></co-transaction-totals>\n </div>\n <div class=\"cart-buttons\">\n <a class=\"button-edit-cart\" [textContent]=\"'EDIT_CART' | localize\"\n (click)=\"editCartClick.emit()\"\n ></a>\n <co-button *ngIf=\"showCheckoutButton\" class=\"button-checkout\" [label]=\"'SHOPPING_CART_CHECKOUT' | localize\"\n [disabled]=\"!service.articleAmount\"\n (click)=\"checkout.emit()\"></co-button>\n </div>\n ",
|
|
11777
|
+
template: "\n <div class=\"cart-header\">\n <span class=\"cart-header-label\" [textContent]=\"'CART' | localize\"></span>\n </div>\n <div class=\"cart-lines\">\n <co-transaction-lines\n [transactionInfo]=\"service.currentTransaction.transactionInfo\"\n [transactionLines]=\"service.currentTransaction.transactionLines\"\n [preview]=\"true\"\n ></co-transaction-lines>\n </div>\n <div class=\"preview-totals-wrapper\">\n <co-transaction-totals [totals]=\"service.currentTransaction.transactionTotal\"></co-transaction-totals>\n </div>\n <div class=\"cart-buttons\">\n <a class=\"button-edit-cart\" [textContent]=\"'EDIT_CART' | localize\"\n (click)=\"editCartClick.emit()\"\n ></a>\n <co-button *ngIf=\"showCheckoutButton\" class=\"button-checkout\" [label]=\"'SHOPPING_CART_CHECKOUT' | localize\"\n [disabled]=\"!service.articleAmount\"\n (click)=\"checkout.emit()\"></co-button>\n </div>\n ",
|
|
11638
11778
|
encapsulation: i0.ViewEncapsulation.None
|
|
11639
11779
|
},] }
|
|
11640
11780
|
];
|
|
@@ -13056,7 +13196,7 @@
|
|
|
13056
13196
|
TransactionHeaderDeliveryComponent.decorators = [
|
|
13057
13197
|
{ type: i0.Component, args: [{
|
|
13058
13198
|
selector: "co-transaction-header-delivery",
|
|
13059
|
-
template: "\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [thirdBlockTemplate]=\"thirdBlock\"\n [hasDetails]=\"true\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n <ng-template #headerBlock>\n <div class=\"header-delivery-method\" (click)=\"showTheDeliveryMethodDialog()\">\n <co-icon class=\"header-delivery-truck-icon\" [iconData]=\"iconService.getIcon(icons.TruckFastSolid)\"></co-icon>\n <span [textContent]=\"deliveryMethod?.description\"></span>\n </div>\n <div class=\"header-planning-request-button\">\n <co-icon class=\"planning-request-button\" [class.co-transaction-check]=\"transactionInfo.deliveryDateDefinitive\"\n [iconData]=\"iconService.getIcon(icons.CalendarDayRegular)\"></co-icon>\n </div>\n </ng-template>\n <ng-template #firstBlock>\n <div class=\"header-delivery-deliverydate-label co-transaction-label\" [textContent]=\"'DELIVERY_DATE' | localize\"></div>\n <div class=\"header-delivery-deliverydate-wrapper\" [class.closed]=\"transactionInfo.deliveryDateDefinitive\">\n <co-transaction-header-delivery-date class=\"header-delivery-deliverydate\"\n [transactionInfo]=\"transactionInfo\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-delivery-date>\n <co-icon *ngIf=\"transactionInfo.deliveryDateDefinitive\" [iconData]=\"iconService.getIcon(icons.LockKeyholeSolid)\"></co-icon>\n <co-icon *ngIf=\"!transactionInfo.deliveryDateDefinitive\" [iconData]=\"iconService.getIcon(icons.LockKeyholeOpenSolid)\"></co-icon>\n </div>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"header-delivery-preferred-deliverydate-label co-transaction-label\" [textContent]=\"'PREFERRED_DATE' | localize\"></div>\n <co-transaction-header-preferred-delivery-date class=\"header-delivery-deliverydate\"\n [transactionInfo]=\"transactionInfo\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-preferred-delivery-date>\n </ng-template>\n <ng-template #thirdBlock>\n <div class=\"header-delivery-partial-delivery-label co-transaction-label\" [textContent]=\"'PART_DELIVERY' | localize\"></div>\n <co-input-checkbox class=\"header-delivery-partial-delivery\" [model]=\"transactionInfo.allowPartialDelivery\"></co-input-checkbox>\n </ng-template>\n <co-dialog *ngIf=\"showDialog\" [headerTemplate]=\"headerTemplate\" (closeClick)=\"showDialog = false\">\n <ng-template #headerTemplate>\n <div class=\"co-transaction-dialog-header-title\" [textContent]=\"'DELIVERY_INFORMATION' | localize\"></div>\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [thirdBlockTemplate]=\"thirdBlock\"\n >\n </co-transaction-header-block>\n </ng-template>\n <co-transaction-header-delivery-options\n [transactionInfo]=\"transactionInfo\"\n [deliveryMethod]=\"deliveryMethod\"\n ></co-transaction-header-delivery-options>\n <co-transaction-header-remarks [transactionInfo]=\"transactionInfo\"></co-transaction-header-remarks>\n <co-transaction-header-reference [transactionInfo]=\"transactionInfo\"></co-transaction-header-reference>\n <co-transaction-header-relation-reference [transactionInfo]=\"transactionInfo\"></co-transaction-header-relation-reference>\n </co-dialog>\n <co-dialog-transaction-header-delivery-method *ngIf=\"showDeliveryMethodDialog\"\n [transactionInfo]=\"transactionInfo\" (close)=\"showDeliveryMethodDialog = false\">\n </co-dialog-transaction-header-delivery-method>\n ",
|
|
13199
|
+
template: "\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [thirdBlockTemplate]=\"thirdBlock\"\n [hasDetails]=\"true\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n <ng-template #headerBlock>\n <div class=\"header-delivery-method\" (click)=\"showTheDeliveryMethodDialog()\">\n <co-icon class=\"header-delivery-truck-icon\" [iconData]=\"iconService.getIcon(icons.TruckFastSolid)\"></co-icon>\n <span [textContent]=\"deliveryMethod?.description\"></span>\n </div>\n <div class=\"header-planning-request-button\">\n <co-icon class=\"planning-request-button\" [class.co-transaction-check]=\"transactionInfo.deliveryDateDefinitive\"\n [iconData]=\"iconService.getIcon(icons.CalendarDayRegular)\"></co-icon>\n </div>\n </ng-template>\n <ng-template #firstBlock>\n <div class=\"header-delivery-deliverydate-label co-transaction-label\" [textContent]=\"'DELIVERY_DATE' | localize\"></div>\n <div class=\"header-delivery-deliverydate-wrapper\" [class.closed]=\"transactionInfo.deliveryDateDefinitive\">\n <co-transaction-header-delivery-date class=\"header-delivery-deliverydate\"\n [transactionInfo]=\"transactionInfo\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-delivery-date>\n <co-icon *ngIf=\"transactionInfo.deliveryDateDefinitive\" [iconData]=\"iconService.getIcon(icons.LockKeyholeSolid)\"></co-icon>\n <co-icon *ngIf=\"!transactionInfo.deliveryDateDefinitive\" [iconData]=\"iconService.getIcon(icons.LockKeyholeOpenSolid)\"></co-icon>\n </div>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"header-delivery-preferred-deliverydate-label co-transaction-label\" [textContent]=\"'PREFERRED_DATE' | localize\"></div>\n <co-transaction-header-preferred-delivery-date class=\"header-delivery-deliverydate\"\n [transactionInfo]=\"transactionInfo\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-preferred-delivery-date>\n </ng-template>\n <ng-template #thirdBlock>\n <div class=\"header-delivery-partial-delivery-label co-transaction-label\" [textContent]=\"'PART_DELIVERY' | localize\"></div>\n <co-input-checkbox class=\"header-delivery-partial-delivery\" [model]=\"transactionInfo.allowPartialDelivery\"></co-input-checkbox>\n </ng-template>\n <co-dialog *ngIf=\"showDialog\" [headerTemplate]=\"headerTemplate\" (closeClick)=\"showDialog = false\">\n <ng-template #headerTemplate>\n <div class=\"co-transaction-dialog-header-title\" [textContent]=\"'DELIVERY_INFORMATION' | localize\"></div>\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [thirdBlockTemplate]=\"thirdBlock\"\n >\n </co-transaction-header-block>\n </ng-template>\n <co-transaction-header-delivery-options\n [transactionInfo]=\"transactionInfo\"\n [deliveryMethod]=\"deliveryMethod\"\n ></co-transaction-header-delivery-options>\n <co-transaction-header-remarks [transactionInfo]=\"transactionInfo\"></co-transaction-header-remarks>\n <co-transaction-header-reference [transactionInfo]=\"transactionInfo\"></co-transaction-header-reference>\n <co-transaction-header-relation-reference [transactionInfo]=\"transactionInfo\"></co-transaction-header-relation-reference>\n </co-dialog>\n <co-dialog-transaction-header-delivery-method *ngIf=\"showDeliveryMethodDialog\"\n [autoClose]=\"true\"\n [transactionInfo]=\"transactionInfo\" (close)=\"showDeliveryMethodDialog = false\">\n </co-dialog-transaction-header-delivery-method>\n ",
|
|
13060
13200
|
encapsulation: i0.ViewEncapsulation.None
|
|
13061
13201
|
},] }
|
|
13062
13202
|
];
|
|
@@ -13211,6 +13351,9 @@
|
|
|
13211
13351
|
if (!success) {
|
|
13212
13352
|
this.input.model = oldDate;
|
|
13213
13353
|
}
|
|
13354
|
+
else {
|
|
13355
|
+
this.editMode = false;
|
|
13356
|
+
}
|
|
13214
13357
|
return [2 /*return*/, success];
|
|
13215
13358
|
case 2: return [2 /*return*/, true];
|
|
13216
13359
|
}
|
|
@@ -13225,7 +13368,7 @@
|
|
|
13225
13368
|
TransactionHeaderDeliveryDateComponent.decorators = [
|
|
13226
13369
|
{ type: i0.Component, args: [{
|
|
13227
13370
|
selector: "co-transaction-header-delivery-date",
|
|
13228
|
-
template: "\n <span *ngIf=\"(!editMode || readonly) && !defaultEditMode\" [textContent]=\"transactionInfo.deliveryDate | date:'dd MMM yyyy'\"></span>\n <co-input-date #input *ngIf=\"editMode || defaultEditMode\"\n [placeholder]=\"showLabel ? ('DELIVERY_DATE' | localize) : ''\"\n [showSaveCancel]=\"!readonly\"\n [readonly]=\"readonly\"\n [model]=\"transactionInfo.deliveryDate\"\n (blur)=\"editMode = false\"\n ></co-input-date>\n ",
|
|
13371
|
+
template: "\n <span *ngIf=\"(!editMode || readonly) && !defaultEditMode\" [textContent]=\"transactionInfo.deliveryDate | date:'dd MMM yyyy'\"></span>\n <co-input-date #input *ngIf=\"editMode || defaultEditMode\"\n [placeholder]=\"showLabel ? ('DELIVERY_DATE' | localize) : ''\"\n [showSaveCancel]=\"!readonly\"\n [readonly]=\"readonly\"\n [model]=\"transactionInfo.deliveryDate\"\n (modelChange)=\"commitDeliveryDate($event)\"\n (blur)=\"editMode = false\"\n ></co-input-date>\n ",
|
|
13229
13372
|
encapsulation: i0.ViewEncapsulation.None
|
|
13230
13373
|
},] }
|
|
13231
13374
|
];
|
|
@@ -13829,6 +13972,9 @@
|
|
|
13829
13972
|
if (!success) {
|
|
13830
13973
|
this.input.model = oldDate;
|
|
13831
13974
|
}
|
|
13975
|
+
else {
|
|
13976
|
+
this.editMode = false;
|
|
13977
|
+
}
|
|
13832
13978
|
return [2 /*return*/, success];
|
|
13833
13979
|
case 2: return [2 /*return*/, true];
|
|
13834
13980
|
}
|
|
@@ -13843,7 +13989,7 @@
|
|
|
13843
13989
|
TransactionHeaderPreferredDeliveryDateComponent.decorators = [
|
|
13844
13990
|
{ type: i0.Component, args: [{
|
|
13845
13991
|
selector: "co-transaction-header-preferred-delivery-date",
|
|
13846
|
-
template: "\n <span *ngIf=\"(!editMode || readonly) && !defaultEditMode\" [textContent]=\"transactionInfo.preferredDeliveryDate | date:'dd MMM yyyy'\"></span>\n <co-input-date #input *ngIf=\"editMode || defaultEditMode\"\n [placeholder]=\"showLabel ? ('PREFERRED_DATE' | localize) : ''\"\n [showSaveCancel]=\"!readonly\"\n [readonly]=\"readonly\"\n [model]=\"transactionInfo.preferredDeliveryDate\"\n (blur)=\"editMode = false\"\n ></co-input-date>\n ",
|
|
13992
|
+
template: "\n <span *ngIf=\"(!editMode || readonly) && !defaultEditMode\" [textContent]=\"(transactionInfo.preferredDeliveryDate | date:'dd MMM yyyy') || '<invullen>'\"></span>\n <co-input-date #input *ngIf=\"editMode || defaultEditMode\"\n [placeholder]=\"showLabel ? ('PREFERRED_DATE' | localize) : ''\"\n [showSaveCancel]=\"!readonly\"\n [readonly]=\"readonly\"\n [model]=\"transactionInfo.preferredDeliveryDate\"\n (modelChange)=\"commitPreferredDeliveryDate($event)\"\n (blur)=\"editMode = false\"\n ></co-input-date>\n ",
|
|
13847
13993
|
encapsulation: i0.ViewEncapsulation.None
|
|
13848
13994
|
},] }
|
|
13849
13995
|
];
|
|
@@ -13925,7 +14071,7 @@
|
|
|
13925
14071
|
DialogTransactionHeaderDeliveryMethodComponent.decorators = [
|
|
13926
14072
|
{ type: i0.Component, args: [{
|
|
13927
14073
|
selector: "co-dialog-transaction-header-delivery-method",
|
|
13928
|
-
template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" [showCloseIcon]=\"useModel\" (closeClick)=\"handleClose(buttonType.Ok)\">\n <co-transaction-header-delivery-method\n [showAsCarousel]=\"false\"\n [useModel]=\"useModel\"\n [transactionInfo]=\"transactionInfo\"\n [searchText]=\"searchText\"\n (valueChange)=\"handleValueChange($event)\"></co-transaction-header-delivery-method>\n </co-dialog>\n <ng-template #dialogHeader>\n <co-dialog-header-search [title]=\"'DELIVERY_METHOD'\" (search)=\"handleSearch($event)\"></co-dialog-header-search>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"dialog-footer-button-wrapper\" *ngIf=\"!useModel\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
|
|
14074
|
+
template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" [showCloseIcon]=\"useModel\" (closeClick)=\"handleClose(buttonType.Ok)\">\n <co-transaction-header-delivery-method\n [autoClose]=\"autoClose\"\n [showAsCarousel]=\"false\"\n [useModel]=\"useModel\"\n [transactionInfo]=\"transactionInfo\"\n [searchText]=\"searchText\"\n (closeAfterCommit)=\"handleClose(buttonType.Ok)\"\n (valueChange)=\"handleValueChange($event)\"></co-transaction-header-delivery-method>\n </co-dialog>\n <ng-template #dialogHeader>\n <co-dialog-header-search [title]=\"'DELIVERY_METHOD'\" (search)=\"handleSearch($event)\"></co-dialog-header-search>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"dialog-footer-button-wrapper\" *ngIf=\"!useModel\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
|
|
13929
14075
|
encapsulation: i0.ViewEncapsulation.None
|
|
13930
14076
|
},] }
|
|
13931
14077
|
];
|
|
@@ -14894,7 +15040,7 @@
|
|
|
14894
15040
|
TransactionComponent.decorators = [
|
|
14895
15041
|
{ type: i0.Component, args: [{
|
|
14896
15042
|
selector: "co-transaction",
|
|
14897
|
-
template: "\n <co-transaction-header *ngIf=\"showHeader\" [transaction]=\"transaction\"></co-transaction-header>\n\n <div class=\"transaction-lines-header\">\n <co-transaction-quick-access *ngIf=\"showQuickAccess\" class=\"transaction-lines-header-item\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n ></co-transaction-quick-access>\n\n <co-transaction-button-bar *ngIf=\"showButtonBar\" class=\"transaction-lines-header-item\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [selectedCategory]=\"activeCategory\"\n (buttonClicked)=\"handleButtonBarButtonClicked($event)\"\n ></co-transaction-button-bar>\n\n <co-view-mode-buttons class=\"transaction-lines-header-item\"\n [showViewModes]=\"[viewModes.List, viewModes.Grid, viewModes.Tiles]\" (viewModeChange)=\"activeViewMode = $event\"></co-view-mode-buttons>\n </div>\n\n <div class=\"transaction-tiles-wrapper\" *ngIf=\"activeViewMode === viewModes.Tiles\">\n <co-transaction-tile\n *ngFor=\"let transaction of transaction.transactionLines\"\n [transactionLine]=\"transaction\"\n (showSidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-tile>\n </div>\n <div class=\"transaction-lines-wrapper\" *ngIf=\"activeViewMode === viewModes.List\">\n <co-transaction-lines\n [transactionLines]=\"transaction.transactionLines\"\n (showSidePanelClicked)=\"handleShowSidePanel($event)\"\n (saveTransactionLine)=\"saveTransactionLine($event)\"\n ></co-transaction-lines>\n </div>\n <div class=\"transaction-lines-grid-wrapper\" *ngIf=\"activeViewMode === viewModes.Grid\">\n <co-transaction-grid\n [transactionLines]=\"transaction.transactionLines\"\n [transactionId]=\"transactionId\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n (sidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-grid>\n <!--\n <co-transaction-order-confirmation-grid\n *ngIf=\"activeCategory === 1\"\n [transactionLines]=\"transaction.transactionLines\"\n (sidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-order-confirmation-grid>\n -->\n </div>\n <div class=\"transaction-footer-wrapper\">\n <co-transaction-totals [totals]=\"transaction.transactionTotal\" [showDiscount]=\"true\" (discountClick)=\"addDiscount()\"></co-transaction-totals>\n </div>\n <co-discount *ngIf=\"showDiscountsSidebar\">\n </co-discount>\n ",
|
|
15043
|
+
template: "\n <co-transaction-header *ngIf=\"showHeader\" [transaction]=\"transaction\"></co-transaction-header>\n\n <div class=\"transaction-lines-header\">\n <co-transaction-quick-access *ngIf=\"showQuickAccess\" class=\"transaction-lines-header-item\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n ></co-transaction-quick-access>\n\n <co-transaction-button-bar *ngIf=\"showButtonBar\" class=\"transaction-lines-header-item\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [selectedCategory]=\"activeCategory\"\n (buttonClicked)=\"handleButtonBarButtonClicked($event)\"\n ></co-transaction-button-bar>\n\n <co-view-mode-buttons class=\"transaction-lines-header-item\"\n [showViewModes]=\"[viewModes.List, viewModes.Grid, viewModes.Tiles]\" (viewModeChange)=\"activeViewMode = $event\"></co-view-mode-buttons>\n </div>\n\n <div class=\"transaction-tiles-wrapper\" *ngIf=\"activeViewMode === viewModes.Tiles\">\n <co-transaction-tile\n *ngFor=\"let transaction of transaction.transactionLines\"\n [transactionLine]=\"transaction\"\n (showSidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-tile>\n </div>\n <div class=\"transaction-lines-wrapper\" *ngIf=\"activeViewMode === viewModes.List\">\n <co-transaction-lines\n [transactionInfo]=\"transaction.transactionInfo\"\n [transactionLines]=\"transaction.transactionLines\"\n (showSidePanelClicked)=\"handleShowSidePanel($event)\"\n (saveTransactionLine)=\"saveTransactionLine($event)\"\n ></co-transaction-lines>\n </div>\n <div class=\"transaction-lines-grid-wrapper\" *ngIf=\"activeViewMode === viewModes.Grid\">\n <co-transaction-grid\n [transactionLines]=\"transaction.transactionLines\"\n [transactionId]=\"transactionId\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n (sidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-grid>\n <!--\n <co-transaction-order-confirmation-grid\n *ngIf=\"activeCategory === 1\"\n [transactionLines]=\"transaction.transactionLines\"\n (sidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-order-confirmation-grid>\n -->\n </div>\n <div class=\"transaction-footer-wrapper\">\n <co-transaction-totals [totals]=\"transaction.transactionTotal\" [showDiscount]=\"true\" (discountClick)=\"addDiscount()\"></co-transaction-totals>\n </div>\n <co-discount *ngIf=\"showDiscountsSidebar\">\n </co-discount>\n ",
|
|
14898
15044
|
encapsulation: i0.ViewEncapsulation.None
|
|
14899
15045
|
},] }
|
|
14900
15046
|
];
|
|
@@ -15482,70 +15628,6 @@
|
|
|
15482
15628
|
},] }
|
|
15483
15629
|
];
|
|
15484
15630
|
|
|
15485
|
-
var TransactionLineDeliveryDateComponent = /** @class */ (function (_super) {
|
|
15486
|
-
__extends(TransactionLineDeliveryDateComponent, _super);
|
|
15487
|
-
function TransactionLineDeliveryDateComponent(_transactionService) {
|
|
15488
|
-
var _this = _super.call(this) || this;
|
|
15489
|
-
_this._transactionService = _transactionService;
|
|
15490
|
-
return _this;
|
|
15491
|
-
}
|
|
15492
|
-
TransactionLineDeliveryDateComponent.prototype.commit = function (date) {
|
|
15493
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
15494
|
-
var oldDate, success;
|
|
15495
|
-
return __generator(this, function (_a) {
|
|
15496
|
-
switch (_a.label) {
|
|
15497
|
-
case 0:
|
|
15498
|
-
if (!(this.transactionLine.deliveryDate !== date)) return [3 /*break*/, 2];
|
|
15499
|
-
oldDate = this.transactionLine.deliveryDate;
|
|
15500
|
-
return [4 /*yield*/, this._transactionService.updateDeliveryDateTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, date)];
|
|
15501
|
-
case 1:
|
|
15502
|
-
success = _a.sent();
|
|
15503
|
-
if (!success) {
|
|
15504
|
-
this.transactionLine.deliveryDate = oldDate;
|
|
15505
|
-
}
|
|
15506
|
-
return [2 /*return*/, success];
|
|
15507
|
-
case 2: return [2 /*return*/, true];
|
|
15508
|
-
}
|
|
15509
|
-
});
|
|
15510
|
-
});
|
|
15511
|
-
};
|
|
15512
|
-
TransactionLineDeliveryDateComponent.prototype.transactionInfoSet = function () {
|
|
15513
|
-
this.readonly = this.readonly || (this.transactionInfo.deliveryDateDefinitive || !this.transactionInfo.allowPartialDelivery);
|
|
15514
|
-
};
|
|
15515
|
-
return TransactionLineDeliveryDateComponent;
|
|
15516
|
-
}(TransactionLineBaseComponent));
|
|
15517
|
-
TransactionLineDeliveryDateComponent.decorators = [
|
|
15518
|
-
{ type: i0.Component, args: [{
|
|
15519
|
-
selector: "co-transaction-line-delivery-date",
|
|
15520
|
-
template: "\n <co-input-date\n [placeholder]=\"'DELIVERY_DATE' | localize\"\n [model]=\"transactionLine.deliveryDate\"\n [readonly]=\"readonly\"\n (modelChange)=\"commit($event)\"\n ></co-input-date>\n ",
|
|
15521
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
15522
|
-
},] }
|
|
15523
|
-
];
|
|
15524
|
-
TransactionLineDeliveryDateComponent.ctorParameters = function () { return [
|
|
15525
|
-
{ type: TransactionService }
|
|
15526
|
-
]; };
|
|
15527
|
-
|
|
15528
|
-
var TransactionLineDeliveryDateModule = /** @class */ (function () {
|
|
15529
|
-
function TransactionLineDeliveryDateModule() {
|
|
15530
|
-
}
|
|
15531
|
-
return TransactionLineDeliveryDateModule;
|
|
15532
|
-
}());
|
|
15533
|
-
TransactionLineDeliveryDateModule.decorators = [
|
|
15534
|
-
{ type: i0.NgModule, args: [{
|
|
15535
|
-
imports: [
|
|
15536
|
-
common.CommonModule,
|
|
15537
|
-
PipeModule,
|
|
15538
|
-
corecomponents_v12.InputDatePickerModule
|
|
15539
|
-
],
|
|
15540
|
-
declarations: [
|
|
15541
|
-
TransactionLineDeliveryDateComponent
|
|
15542
|
-
],
|
|
15543
|
-
exports: [
|
|
15544
|
-
TransactionLineDeliveryDateComponent
|
|
15545
|
-
]
|
|
15546
|
-
},] }
|
|
15547
|
-
];
|
|
15548
|
-
|
|
15549
15631
|
var TransactionLineReferenceComponent = /** @class */ (function (_super) {
|
|
15550
15632
|
__extends(TransactionLineReferenceComponent, _super);
|
|
15551
15633
|
function TransactionLineReferenceComponent(_transactionService) {
|
|
@@ -20131,89 +20213,89 @@
|
|
|
20131
20213
|
exports["ɵdt"] = DialogTransactionLinePriceListModule;
|
|
20132
20214
|
exports["ɵdu"] = DialogTransactionLinePriceListComponent;
|
|
20133
20215
|
exports["ɵdv"] = DialogTransactionLineDiscountComponent;
|
|
20134
|
-
exports["ɵdw"] =
|
|
20135
|
-
exports["ɵdx"] =
|
|
20136
|
-
exports["ɵdy"] =
|
|
20137
|
-
exports["ɵdz"] =
|
|
20216
|
+
exports["ɵdw"] = TransactionLineDeliveryDateModule;
|
|
20217
|
+
exports["ɵdx"] = TransactionLineDeliveryDateComponent;
|
|
20218
|
+
exports["ɵdy"] = TransactionImageService;
|
|
20219
|
+
exports["ɵdz"] = AvatarModule;
|
|
20138
20220
|
exports["ɵe"] = DictionaryService;
|
|
20139
|
-
exports["ɵea"] =
|
|
20140
|
-
exports["ɵeb"] =
|
|
20141
|
-
exports["ɵec"] =
|
|
20142
|
-
exports["ɵed"] =
|
|
20143
|
-
exports["ɵee"] =
|
|
20144
|
-
exports["ɵef"] =
|
|
20145
|
-
exports["ɵeg"] =
|
|
20146
|
-
exports["ɵeh"] =
|
|
20147
|
-
exports["ɵei"] =
|
|
20148
|
-
exports["ɵej"] =
|
|
20149
|
-
exports["ɵek"] =
|
|
20150
|
-
exports["ɵel"] =
|
|
20151
|
-
exports["ɵem"] =
|
|
20152
|
-
exports["ɵen"] =
|
|
20153
|
-
exports["ɵeo"] =
|
|
20154
|
-
exports["ɵep"] =
|
|
20155
|
-
exports["ɵeq"] =
|
|
20156
|
-
exports["ɵer"] =
|
|
20157
|
-
exports["ɵes"] =
|
|
20158
|
-
exports["ɵet"] =
|
|
20159
|
-
exports["ɵeu"] =
|
|
20160
|
-
exports["ɵev"] =
|
|
20161
|
-
exports["ɵew"] =
|
|
20162
|
-
exports["ɵex"] =
|
|
20163
|
-
exports["ɵey"] =
|
|
20164
|
-
exports["ɵez"] =
|
|
20221
|
+
exports["ɵea"] = AvatarComponent;
|
|
20222
|
+
exports["ɵeb"] = SharedService;
|
|
20223
|
+
exports["ɵec"] = SharedConnectorService;
|
|
20224
|
+
exports["ɵed"] = DeliveryTypeTileModule;
|
|
20225
|
+
exports["ɵee"] = DeliveryTypeTileComponent;
|
|
20226
|
+
exports["ɵef"] = PaymentModule;
|
|
20227
|
+
exports["ɵeg"] = PaymentTileModule;
|
|
20228
|
+
exports["ɵeh"] = PaymentTileComponent;
|
|
20229
|
+
exports["ɵei"] = PaymentQrCodeModule;
|
|
20230
|
+
exports["ɵej"] = PaymentQrCodeComponent;
|
|
20231
|
+
exports["ɵek"] = PaymentComponent;
|
|
20232
|
+
exports["ɵel"] = PaymentService;
|
|
20233
|
+
exports["ɵem"] = RelationTypeModule;
|
|
20234
|
+
exports["ɵen"] = RelationTypeComponent;
|
|
20235
|
+
exports["ɵeo"] = RelationGeneralModule;
|
|
20236
|
+
exports["ɵep"] = RelationSuggestionsListModule;
|
|
20237
|
+
exports["ɵeq"] = RelationSuggestionsListItemModule;
|
|
20238
|
+
exports["ɵer"] = RelationSuggestionsListItemComponent;
|
|
20239
|
+
exports["ɵes"] = RelationSuggestionsListComponent;
|
|
20240
|
+
exports["ɵet"] = RelationGeneralComponent;
|
|
20241
|
+
exports["ɵeu"] = RelationAddressesModule;
|
|
20242
|
+
exports["ɵev"] = RelationAddressesComponent;
|
|
20243
|
+
exports["ɵew"] = RelationContactDetailsModule;
|
|
20244
|
+
exports["ɵex"] = RelationContactDetailsComponent;
|
|
20245
|
+
exports["ɵey"] = RelationPreferencesModule;
|
|
20246
|
+
exports["ɵez"] = RelationPreferencesComponent;
|
|
20165
20247
|
exports["ɵf"] = TransactionConnectorService;
|
|
20166
|
-
exports["ɵfa"] =
|
|
20167
|
-
exports["ɵfb"] =
|
|
20168
|
-
exports["ɵfc"] =
|
|
20169
|
-
exports["ɵfd"] =
|
|
20170
|
-
exports["ɵfe"] =
|
|
20171
|
-
exports["ɵff"] =
|
|
20172
|
-
exports["ɵfg"] =
|
|
20173
|
-
exports["ɵfh"] =
|
|
20174
|
-
exports["ɵfi"] =
|
|
20175
|
-
exports["ɵfj"] =
|
|
20176
|
-
exports["ɵfk"] =
|
|
20177
|
-
exports["ɵfl"] =
|
|
20178
|
-
exports["ɵfm"] =
|
|
20179
|
-
exports["ɵfn"] =
|
|
20180
|
-
exports["ɵfo"] =
|
|
20181
|
-
exports["ɵfp"] =
|
|
20182
|
-
exports["ɵfq"] =
|
|
20183
|
-
exports["ɵfr"] =
|
|
20184
|
-
exports["ɵfs"] =
|
|
20185
|
-
exports["ɵft"] =
|
|
20186
|
-
exports["ɵfu"] =
|
|
20187
|
-
exports["ɵfv"] =
|
|
20188
|
-
exports["ɵfw"] =
|
|
20189
|
-
exports["ɵfx"] =
|
|
20190
|
-
exports["ɵfy"] =
|
|
20191
|
-
exports["ɵfz"] =
|
|
20248
|
+
exports["ɵfa"] = TransactionHeaderBlockModule;
|
|
20249
|
+
exports["ɵfb"] = TransactionHeaderBlockComponent;
|
|
20250
|
+
exports["ɵfc"] = TransactionHeaderDeliveryDateModule;
|
|
20251
|
+
exports["ɵfd"] = TransactionHeaderDeliveryDateComponent;
|
|
20252
|
+
exports["ɵfe"] = TransactionHeaderBaseComponent;
|
|
20253
|
+
exports["ɵff"] = TransactionHeaderDeliveryOptionsModule;
|
|
20254
|
+
exports["ɵfg"] = TransactionHeaderDeliveryOptionsComponent;
|
|
20255
|
+
exports["ɵfh"] = TransactionHeaderRemarksModule;
|
|
20256
|
+
exports["ɵfi"] = TransactionHeaderRemarksComponent;
|
|
20257
|
+
exports["ɵfj"] = TransactionHeaderReferenceModule;
|
|
20258
|
+
exports["ɵfk"] = TransactionHeaderReferenceComponent;
|
|
20259
|
+
exports["ɵfl"] = TransactionHeaderRelationReferenceModule;
|
|
20260
|
+
exports["ɵfm"] = TransactionHeaderRelationReferenceComponent;
|
|
20261
|
+
exports["ɵfn"] = TransactionHeaderDeliveryMethodModule;
|
|
20262
|
+
exports["ɵfo"] = TransactionHeaderDeliveryMethodComponent;
|
|
20263
|
+
exports["ɵfp"] = TransactionHeaderPreferredDeliveryDateModule;
|
|
20264
|
+
exports["ɵfq"] = TransactionHeaderPreferredDeliveryDateComponent;
|
|
20265
|
+
exports["ɵfr"] = DialogTransactionHeaderDeliveryMethodModule;
|
|
20266
|
+
exports["ɵfs"] = DialogTransactionHeaderDeliveryMethodComponent;
|
|
20267
|
+
exports["ɵft"] = DialogTransactionHeaderBaseComponent;
|
|
20268
|
+
exports["ɵfu"] = TransactionBaseComponent;
|
|
20269
|
+
exports["ɵfv"] = TransactionHeaderPartialDeliveryModule;
|
|
20270
|
+
exports["ɵfw"] = TransactionHeaderPartialDeliveryComponent;
|
|
20271
|
+
exports["ɵfx"] = TransactionHeaderDownpaymentPercentageModule;
|
|
20272
|
+
exports["ɵfy"] = TransactionHeaderDownpaymentPercentageComponent;
|
|
20273
|
+
exports["ɵfz"] = TransactionHeaderDownpaymentAmountModule;
|
|
20192
20274
|
exports["ɵg"] = TransactionConnectorAdapterService;
|
|
20193
|
-
exports["ɵga"] =
|
|
20194
|
-
exports["ɵgb"] =
|
|
20195
|
-
exports["ɵgc"] =
|
|
20196
|
-
exports["ɵgd"] =
|
|
20197
|
-
exports["ɵge"] =
|
|
20198
|
-
exports["ɵgf"] =
|
|
20199
|
-
exports["ɵgg"] =
|
|
20200
|
-
exports["ɵgh"] =
|
|
20201
|
-
exports["ɵgi"] =
|
|
20202
|
-
exports["ɵgj"] =
|
|
20203
|
-
exports["ɵgk"] =
|
|
20204
|
-
exports["ɵgl"] =
|
|
20205
|
-
exports["ɵgm"] =
|
|
20206
|
-
exports["ɵgn"] =
|
|
20207
|
-
exports["ɵgo"] =
|
|
20208
|
-
exports["ɵgp"] =
|
|
20209
|
-
exports["ɵgq"] =
|
|
20210
|
-
exports["ɵgr"] =
|
|
20211
|
-
exports["ɵgs"] =
|
|
20212
|
-
exports["ɵgt"] =
|
|
20213
|
-
exports["ɵgu"] =
|
|
20214
|
-
exports["ɵgv"] =
|
|
20215
|
-
exports["ɵgw"] =
|
|
20216
|
-
exports["ɵgx"] =
|
|
20275
|
+
exports["ɵga"] = TransactionHeaderDownpaymentAmountComponent;
|
|
20276
|
+
exports["ɵgb"] = TransactionHeaderDefinitiveModule;
|
|
20277
|
+
exports["ɵgc"] = TransactionHeaderDefinitiveComponent;
|
|
20278
|
+
exports["ɵgd"] = TransactionHeaderBranchModule;
|
|
20279
|
+
exports["ɵge"] = TransactionHeaderBranchComponent;
|
|
20280
|
+
exports["ɵgf"] = TransactionHeaderAdministrativeRelationModule;
|
|
20281
|
+
exports["ɵgg"] = TransactionHeaderAdministrativeRelationComponent;
|
|
20282
|
+
exports["ɵgh"] = TransactionHeaderMarketingModule;
|
|
20283
|
+
exports["ɵgi"] = TransactionHeaderMarketingComponent;
|
|
20284
|
+
exports["ɵgj"] = CheckoutOverviewRelationEditComponent;
|
|
20285
|
+
exports["ɵgk"] = CheckoutOverviewDeliveryEditComponent;
|
|
20286
|
+
exports["ɵgl"] = CheckoutOverviewDeliveryAddressComponent;
|
|
20287
|
+
exports["ɵgm"] = CheckoutOverviewPaymentComponent;
|
|
20288
|
+
exports["ɵgn"] = CheckoutLoginComponent;
|
|
20289
|
+
exports["ɵgo"] = TransactionFilterCategoriesModule;
|
|
20290
|
+
exports["ɵgp"] = TransactionFilterCategoriesComponent;
|
|
20291
|
+
exports["ɵgq"] = TransactionHeaderPaymentModule;
|
|
20292
|
+
exports["ɵgr"] = TransactionHeaderPaymentComponent;
|
|
20293
|
+
exports["ɵgs"] = TransactionLinesGridModule;
|
|
20294
|
+
exports["ɵgt"] = TransactionBaseGridModule;
|
|
20295
|
+
exports["ɵgu"] = TransactionLineSidePanelModule;
|
|
20296
|
+
exports["ɵgv"] = TransactionLineSidePanelDefaultModule;
|
|
20297
|
+
exports["ɵgw"] = TransactionLineQuantityModule;
|
|
20298
|
+
exports["ɵgx"] = TransactionLineQuantityComponent;
|
|
20217
20299
|
exports["ɵgy"] = TransactionLineReferenceModule;
|
|
20218
20300
|
exports["ɵgz"] = TransactionLineReferenceComponent;
|
|
20219
20301
|
exports["ɵh"] = SelectMultipleCacheService;
|