@colijnit/transaction 12.1.21 → 12.1.22
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 +61 -21
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/avatar/avatar.component.js +30 -7
- package/esm2015/lib/component/transaction-line-fields/transaction-line-discount-amount.component.js +5 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-line-discount.component.js +5 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-price.component.js +7 -5
- package/esm2015/lib/component/transaction-line-fields/transaction-line-quantum-discount.component.js +5 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-reference.component.js +5 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-special-discount.component.js +5 -3
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-purchase-order-tile/transaction-search-purchase-order-tile.component.js +2 -2
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.component.js +2 -2
- package/fesm2015/colijnit-transaction.js +57 -22
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/avatar/avatar.component.d.ts +10 -2
- package/lib/component/checkout/style/_layout.scss +0 -1
- package/lib/component/payment-qr-code/style/_layout.scss +3 -0
- package/lib/component/transaction-header/transaction-header-payment/style/_layout.scss +2 -0
- package/lib/component/transaction-header/transaction-header-payment/style/_material-definition.scss +1 -0
- package/lib/component/transaction-search/style/_layout.scss +1 -1
- package/package.json +1 -1
|
@@ -7613,10 +7613,12 @@
|
|
|
7613
7613
|
Object.defineProperty(TransactionLinePriceComponent.prototype, "child", {
|
|
7614
7614
|
set: function (content) {
|
|
7615
7615
|
var _this = this;
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
this.
|
|
7616
|
+
if (content) {
|
|
7617
|
+
this.input = content;
|
|
7618
|
+
this.input.commit = function (price) { return _this.commitPrice(price); };
|
|
7619
|
+
if (this._editMode) {
|
|
7620
|
+
this.input.requestFocus();
|
|
7621
|
+
}
|
|
7620
7622
|
}
|
|
7621
7623
|
},
|
|
7622
7624
|
enumerable: false,
|
|
@@ -8001,13 +8003,23 @@
|
|
|
8001
8003
|
this._transactionService = _transactionService;
|
|
8002
8004
|
this._sharedService = _sharedService;
|
|
8003
8005
|
}
|
|
8006
|
+
Object.defineProperty(AvatarComponent.prototype, "image", {
|
|
8007
|
+
get: function () {
|
|
8008
|
+
return this._image;
|
|
8009
|
+
},
|
|
8010
|
+
set: function (value) {
|
|
8011
|
+
this._image = value;
|
|
8012
|
+
this._getImageSrcFromCoDocument();
|
|
8013
|
+
},
|
|
8014
|
+
enumerable: false,
|
|
8015
|
+
configurable: true
|
|
8016
|
+
});
|
|
8004
8017
|
Object.defineProperty(AvatarComponent.prototype, "relationId", {
|
|
8005
8018
|
get: function () {
|
|
8006
8019
|
return this._relationId;
|
|
8007
8020
|
},
|
|
8008
8021
|
set: function (value) {
|
|
8009
8022
|
this._relationId = value;
|
|
8010
|
-
this._getRelation();
|
|
8011
8023
|
},
|
|
8012
8024
|
enumerable: false,
|
|
8013
8025
|
configurable: true
|
|
@@ -8015,9 +8027,12 @@
|
|
|
8015
8027
|
AvatarComponent.prototype.showClass = function () {
|
|
8016
8028
|
return true;
|
|
8017
8029
|
};
|
|
8030
|
+
AvatarComponent.prototype.ngAfterViewInit = function () {
|
|
8031
|
+
this._getRelation();
|
|
8032
|
+
};
|
|
8018
8033
|
AvatarComponent.prototype._getRelation = function () {
|
|
8019
8034
|
var _this = this;
|
|
8020
|
-
if (!isNaN(this._relationId)) {
|
|
8035
|
+
if (!isNaN(this._relationId) && !this.image) {
|
|
8021
8036
|
var request = new relationRequest.RelationRequest();
|
|
8022
8037
|
request.relationId = this._relationId;
|
|
8023
8038
|
this._transactionService.getRelationListObjects(request).then(function (data) {
|
|
@@ -8026,22 +8041,36 @@
|
|
|
8026
8041
|
if (_this.relation && _this.relation.image && _this.relation.image.documentId) {
|
|
8027
8042
|
_this._sharedService.getDocumentContent(_this.relation.image.documentId)
|
|
8028
8043
|
.then(function (content) {
|
|
8029
|
-
_this.
|
|
8044
|
+
_this.imageSrc = content;
|
|
8030
8045
|
})
|
|
8031
8046
|
.catch(function (e) {
|
|
8032
|
-
_this.
|
|
8047
|
+
_this.imageSrc = "";
|
|
8033
8048
|
});
|
|
8034
8049
|
}
|
|
8050
|
+
_this.initials = _this.relation.displayInitials;
|
|
8035
8051
|
}
|
|
8036
8052
|
});
|
|
8037
8053
|
}
|
|
8038
8054
|
};
|
|
8055
|
+
AvatarComponent.prototype._getImageSrcFromCoDocument = function () {
|
|
8056
|
+
var _this = this;
|
|
8057
|
+
if (this.image) {
|
|
8058
|
+
this._sharedService.getDocumentContent(this.image.documentId)
|
|
8059
|
+
.then(function (content) {
|
|
8060
|
+
_this.image.thumbnailBody = content;
|
|
8061
|
+
_this.imageSrc = _this.image.thumbnailBodyAsDataUri;
|
|
8062
|
+
})
|
|
8063
|
+
.catch(function (e) {
|
|
8064
|
+
_this.imageSrc = "";
|
|
8065
|
+
});
|
|
8066
|
+
}
|
|
8067
|
+
};
|
|
8039
8068
|
return AvatarComponent;
|
|
8040
8069
|
}());
|
|
8041
8070
|
AvatarComponent.decorators = [
|
|
8042
8071
|
{ type: i0.Component, args: [{
|
|
8043
8072
|
selector: "co-avatar",
|
|
8044
|
-
template: "\n <co-image-display [model]=\"
|
|
8073
|
+
template: "\n <co-image-display [model]=\"imageSrc\" *ngIf=\"imageSrc; else showInitials\"></co-image-display>\n <ng-template #showInitials>\n <svg viewBox=\"0 0 30 30\">\n <text x=\"50%\" y=\"50%\" dominant-baseline=\"central\" text-anchor=\"middle\">{{ initials }}</text>\n </svg>\n </ng-template>\n ",
|
|
8045
8074
|
encapsulation: i0.ViewEncapsulation.None
|
|
8046
8075
|
},] }
|
|
8047
8076
|
];
|
|
@@ -8050,6 +8079,7 @@
|
|
|
8050
8079
|
{ type: SharedService }
|
|
8051
8080
|
]; };
|
|
8052
8081
|
AvatarComponent.propDecorators = {
|
|
8082
|
+
image: [{ type: i0.Input }],
|
|
8053
8083
|
relationId: [{ type: i0.Input }],
|
|
8054
8084
|
relation: [{ type: i0.Input }],
|
|
8055
8085
|
showClass: [{ type: i0.HostBinding, args: ["class.co-avatar",] }]
|
|
@@ -9436,8 +9466,10 @@
|
|
|
9436
9466
|
Object.defineProperty(TransactionLineLineDiscountComponent.prototype, "child", {
|
|
9437
9467
|
set: function (content) {
|
|
9438
9468
|
var _this = this;
|
|
9439
|
-
|
|
9440
|
-
|
|
9469
|
+
if (content) {
|
|
9470
|
+
this.input = content;
|
|
9471
|
+
this.input.commit = function (discount) { return _this.commitDiscount(discount); };
|
|
9472
|
+
}
|
|
9441
9473
|
},
|
|
9442
9474
|
enumerable: false,
|
|
9443
9475
|
configurable: true
|
|
@@ -9777,8 +9809,10 @@
|
|
|
9777
9809
|
Object.defineProperty(TransactionLineReferenceComponent.prototype, "child", {
|
|
9778
9810
|
set: function (content) {
|
|
9779
9811
|
var _this = this;
|
|
9780
|
-
|
|
9781
|
-
|
|
9812
|
+
if (content) {
|
|
9813
|
+
this.input = content;
|
|
9814
|
+
this.input.commit = function (reference) { return _this.commitReference(reference); };
|
|
9815
|
+
}
|
|
9782
9816
|
},
|
|
9783
9817
|
enumerable: false,
|
|
9784
9818
|
configurable: true
|
|
@@ -9988,8 +10022,10 @@
|
|
|
9988
10022
|
Object.defineProperty(TransactionLineDiscountAmountComponent.prototype, "child", {
|
|
9989
10023
|
set: function (content) {
|
|
9990
10024
|
var _this = this;
|
|
9991
|
-
|
|
9992
|
-
|
|
10025
|
+
if (content) {
|
|
10026
|
+
this.input = content;
|
|
10027
|
+
this.input.commit = function (discount) { return _this.commitDiscount(discount); };
|
|
10028
|
+
}
|
|
9993
10029
|
},
|
|
9994
10030
|
enumerable: false,
|
|
9995
10031
|
configurable: true
|
|
@@ -10061,8 +10097,10 @@
|
|
|
10061
10097
|
Object.defineProperty(TransactionLineQuantumDiscountComponent.prototype, "child", {
|
|
10062
10098
|
set: function (content) {
|
|
10063
10099
|
var _this = this;
|
|
10064
|
-
|
|
10065
|
-
|
|
10100
|
+
if (content) {
|
|
10101
|
+
this.input = content;
|
|
10102
|
+
this.input.commit = function (discount) { return _this.commitDiscount(discount); };
|
|
10103
|
+
}
|
|
10066
10104
|
},
|
|
10067
10105
|
enumerable: false,
|
|
10068
10106
|
configurable: true
|
|
@@ -10134,8 +10172,10 @@
|
|
|
10134
10172
|
Object.defineProperty(TransactionLineSpecialDiscountComponent.prototype, "child", {
|
|
10135
10173
|
set: function (content) {
|
|
10136
10174
|
var _this = this;
|
|
10137
|
-
|
|
10138
|
-
|
|
10175
|
+
if (content) {
|
|
10176
|
+
this.input = content;
|
|
10177
|
+
this.input.commit = function (discount) { return _this.commitDiscount(discount); };
|
|
10178
|
+
}
|
|
10139
10179
|
},
|
|
10140
10180
|
enumerable: false,
|
|
10141
10181
|
configurable: true
|
|
@@ -10956,7 +10996,7 @@
|
|
|
10956
10996
|
TransactionSearchPurchaseOrderTileComponent.decorators = [
|
|
10957
10997
|
{ type: i0.Component, args: [{
|
|
10958
10998
|
selector: "co-transaction-search-purchase-order-tile",
|
|
10959
|
-
template: "\n <div class=\"transaction-tile-wrapper\" (click)=\"onTransactionClick(transaction)\">\n <div class=\"transaction-tile-body\">\n <div class=\"transaction-tile-avatar\">\n <co-avatar [relationId]=\"transaction.handledBy\"></co-avatar>\n </div>\n <div class=\"transaction-tile-seller-info\">\n <div>\n <div class=\"header\"><span [textContent]=\"transaction.transNr\"></span></div>\n <div class=\"text\"><span [textContent]=\"transaction.brancheName\"></span></div>\n </div>\n <div>\n <div class=\"text\"><span [textContent]=\"transaction.relationName\"></span></div>\n <div class=\"text\"><span [textContent]=\"transaction.getAdres()\"></span></div>\n </div>\n </div>\n <div class=\"transaction-tile-order-summary\">\n <div class=\"header\"><span [textContent]=\"transaction.totalPriceVat | currency:'EUR'\"></span></div>\n </div>\n </div>\n <div class=\"transaction-tile-footer\">\n <div class=\"order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getTransDate() | date:'dd MMM yyyy'\"></span></div>\n </div>\n <div class=\"order-info-section\">\n <div class=\"label\"><span [textContent]=\"'DELIVERY_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getDeliveryDate() | date:'dd MMM yyyy'\"></span>\n <div *ngIf=\"transaction.getDeliveryDate()\">\n <co-icon *ngIf=\"transaction.deliveryDateDefinitive; else indefinite\"\n [iconData]=\"this.iconCacheService.getIcon(this.icons.Lock)\" class=\"lock-icon\"></co-icon>\n <ng-template #indefinite>\n <co-icon [iconData]=\"this.iconCacheService.getIcon(this.icons.Unlock)\" class=\"unlock-icon\"></co-icon>\n </ng-template>\n </div>\n </div>\n </div>\n <div class=\"order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_RULE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"'68/00'\"></span></div>\n </div>\n </div>\n </div>\n ",
|
|
10999
|
+
template: "\n <div class=\"transaction-tile-wrapper\" (click)=\"onTransactionClick(transaction)\">\n <div class=\"transaction-tile-body\">\n <div class=\"transaction-tile-avatar\">\n <co-avatar [image]=\"transaction.execImage\" [relationId]=\"transaction.handledBy\"></co-avatar>\n </div>\n <div class=\"transaction-tile-seller-info\">\n <div>\n <div class=\"header\"><span [textContent]=\"transaction.transNr\"></span></div>\n <div class=\"text\"><span [textContent]=\"transaction.brancheName\"></span></div>\n </div>\n <div>\n <div class=\"text\"><span [textContent]=\"transaction.relationName\"></span></div>\n <div class=\"text\"><span [textContent]=\"transaction.getAdres()\"></span></div>\n </div>\n </div>\n <div class=\"transaction-tile-order-summary\">\n <div class=\"header\"><span [textContent]=\"transaction.totalPriceVat | currency:'EUR'\"></span></div>\n </div>\n </div>\n <div class=\"transaction-tile-footer\">\n <div class=\"order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getTransDate() | date:'dd MMM yyyy'\"></span></div>\n </div>\n <div class=\"order-info-section\">\n <div class=\"label\"><span [textContent]=\"'DELIVERY_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getDeliveryDate() | date:'dd MMM yyyy'\"></span>\n <div *ngIf=\"transaction.getDeliveryDate()\">\n <co-icon *ngIf=\"transaction.deliveryDateDefinitive; else indefinite\"\n [iconData]=\"this.iconCacheService.getIcon(this.icons.Lock)\" class=\"lock-icon\"></co-icon>\n <ng-template #indefinite>\n <co-icon [iconData]=\"this.iconCacheService.getIcon(this.icons.Unlock)\" class=\"unlock-icon\"></co-icon>\n </ng-template>\n </div>\n </div>\n </div>\n <div class=\"order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_RULE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"'68/00'\"></span></div>\n </div>\n </div>\n </div>\n ",
|
|
10960
11000
|
encapsulation: i0.ViewEncapsulation.None
|
|
10961
11001
|
},] }
|
|
10962
11002
|
];
|
|
@@ -10973,7 +11013,7 @@
|
|
|
10973
11013
|
TransactionSearchSalesOrderTileComponent.decorators = [
|
|
10974
11014
|
{ type: i0.Component, args: [{
|
|
10975
11015
|
selector: "co-transaction-search-sales-order-tile",
|
|
10976
|
-
template: "\n <div class=\"transaction-tile-wrapper\" (click)=\"onTransactionClick(transaction)\">\n <div class=\"transaction-tile-body\">\n <div class=\"transaction-tile-avatar\">\n <co-avatar [relationId]=\"transaction.handledBy\"></co-avatar>\n </div>\n <div class=\"transaction-tile-seller-info\">\n <div>\n <div class=\"header\"><span [textContent]=\"transaction.transNr\"></span></div>\n <div class=\"text\"><span [textContent]=\"transaction.brancheName\"></span></div>\n </div>\n <div>\n <div class=\"text\"><span [textContent]=\"transaction.relationName\"></span></div>\n <div class=\"text\"><span [textContent]=\"transaction.getAdres()\"></span></div>\n </div>\n </div>\n <div class=\"transaction-tile-order-summary\">\n <div class=\"header\"><span [textContent]=\"transaction.totalPriceVat | currency:'EUR'\"></span></div>\n </div>\n </div>\n <div class=\"transaction-tile-footer\">\n <div class=\"order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getTransDate() | date:'dd MMM yyyy'\"></span></div>\n </div>\n <div class=\"order-info-section\">\n <div class=\"label\"><span [textContent]=\"'DELIVERY_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getDeliveryDate() | date:'dd MMM yyyy'\"></span>\n <div *ngIf=\"transaction.getDeliveryDate()\">\n <co-icon *ngIf=\"transaction.deliveryDateDefinitive; else indefinite\"\n [iconData]=\"this.iconCacheService.getIcon(this.icons.Lock)\" class=\"lock-icon\"></co-icon>\n <ng-template #indefinite>\n <co-icon [iconData]=\"this.iconCacheService.getIcon(this.icons.Unlock)\" class=\"unlock-icon\"></co-icon>\n </ng-template>\n </div>\n </div>\n </div>\n <div class=\"order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_RULE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"'68/00'\"></span></div>\n </div>\n </div>\n\n </div>",
|
|
11016
|
+
template: "\n <div class=\"transaction-tile-wrapper\" (click)=\"onTransactionClick(transaction)\">\n <div class=\"transaction-tile-body\">\n <div class=\"transaction-tile-avatar\">\n <co-avatar [image]=\"transaction.execImage\" [relationId]=\"transaction.handledBy\"></co-avatar>\n </div>\n <div class=\"transaction-tile-seller-info\">\n <div>\n <div class=\"header\"><span [textContent]=\"transaction.transNr\"></span></div>\n <div class=\"text\"><span [textContent]=\"transaction.brancheName\"></span></div>\n </div>\n <div>\n <div class=\"text\"><span [textContent]=\"transaction.relationName\"></span></div>\n <div class=\"text\"><span [textContent]=\"transaction.getAdres()\"></span></div>\n </div>\n </div>\n <div class=\"transaction-tile-order-summary\">\n <div class=\"header\"><span [textContent]=\"transaction.totalPriceVat | currency:'EUR'\"></span></div>\n </div>\n </div>\n <div class=\"transaction-tile-footer\">\n <div class=\"order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getTransDate() | date:'dd MMM yyyy'\"></span></div>\n </div>\n <div class=\"order-info-section\">\n <div class=\"label\"><span [textContent]=\"'DELIVERY_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getDeliveryDate() | date:'dd MMM yyyy'\"></span>\n <div *ngIf=\"transaction.getDeliveryDate()\">\n <co-icon *ngIf=\"transaction.deliveryDateDefinitive; else indefinite\"\n [iconData]=\"this.iconCacheService.getIcon(this.icons.Lock)\" class=\"lock-icon\"></co-icon>\n <ng-template #indefinite>\n <co-icon [iconData]=\"this.iconCacheService.getIcon(this.icons.Unlock)\" class=\"unlock-icon\"></co-icon>\n </ng-template>\n </div>\n </div>\n </div>\n <div class=\"order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_RULE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"'68/00'\"></span></div>\n </div>\n </div>\n\n </div>",
|
|
10977
11017
|
encapsulation: i0.ViewEncapsulation.None
|
|
10978
11018
|
},] }
|
|
10979
11019
|
];
|