@colijnit/transaction 12.1.154 → 12.1.155
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 +64 -5
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction-12.1.153.tgz +0 -0
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/core/base/transaction-base.component.js +14 -1
- package/esm2015/lib/component/transaction/transaction.component.js +4 -1
- package/esm2015/lib/component/transaction-line/transaction-base-line/transaction-base-line.component.js +2 -1
- package/esm2015/lib/component/transaction-line-action-buttons/transaction-line-action-buttons-popup.component.js +14 -1
- package/esm2015/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.js +26 -2
- package/esm2015/lib/service/transaction-event.service.js +2 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +58 -3
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/core/base/transaction-base.component.d.ts +5 -0
- package/lib/component/transaction/transaction.component.d.ts +2 -0
- package/lib/component/transaction-line-action-buttons/transaction-line-action-buttons-popup.component.d.ts +3 -0
- package/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.d.ts +7 -0
- package/lib/service/transaction-event.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
function Version() {
|
|
33
33
|
this.name = "@colijnit/transaction";
|
|
34
34
|
this.description = "Colijn IT transaction package";
|
|
35
|
-
this.symVer = "12.1.
|
|
36
|
-
this.publishDate = "
|
|
35
|
+
this.symVer = "12.1.155";
|
|
36
|
+
this.publishDate = "27-10-2023 14:50:46";
|
|
37
37
|
}
|
|
38
38
|
return Version;
|
|
39
39
|
}());
|
|
@@ -1270,6 +1270,7 @@
|
|
|
1270
1270
|
this.headerPopupWantsToClose = new rxjs.Subject();
|
|
1271
1271
|
this.headerPopupClose = new rxjs.Subject();
|
|
1272
1272
|
this.addDocumentToLineClicked = new rxjs.Subject();
|
|
1273
|
+
this.reopenExternalOrderClicked = new rxjs.Subject();
|
|
1273
1274
|
this.activeRubricChange = new rxjs.BehaviorSubject(TransactionTypeCategory.SalesOrderOverview);
|
|
1274
1275
|
this.quantitySelectedLineChanged = new rxjs.BehaviorSubject(undefined);
|
|
1275
1276
|
this.lineSelectedForDelivery = new rxjs.BehaviorSubject(undefined);
|
|
@@ -8735,6 +8736,7 @@
|
|
|
8735
8736
|
this._relation = nulRelationObject.NULL_CUSTOMER_FULL_OBJECT;
|
|
8736
8737
|
this._transactionLine = new transactionLineInfo_bo.TransactionLineInfo();
|
|
8737
8738
|
this._transactionInfo = new transactionInfo_bo.TransactionInfo();
|
|
8739
|
+
this._orderLineSets = [];
|
|
8738
8740
|
this._transactionTotal = new transactionTotal_bo.TransactionTotal();
|
|
8739
8741
|
this._baseSubs = [];
|
|
8740
8742
|
}
|
|
@@ -8855,12 +8857,25 @@
|
|
|
8855
8857
|
this._transactionInfo.headerInfoStatus.hasOwnProperty('isFullyDelivered') &&
|
|
8856
8858
|
this._transactionInfo.headerInfoStatus.isFullyDelivered;
|
|
8857
8859
|
this._checkHeaderReadonly();
|
|
8860
|
+
if (this._transactionInfo.orderLineSets) {
|
|
8861
|
+
this.orderLineSets = this._transactionInfo.orderLineSets;
|
|
8862
|
+
}
|
|
8858
8863
|
this.transactionInfoSet();
|
|
8859
8864
|
}
|
|
8860
8865
|
},
|
|
8861
8866
|
enumerable: false,
|
|
8862
8867
|
configurable: true
|
|
8863
8868
|
});
|
|
8869
|
+
Object.defineProperty(TransactionBaseComponent.prototype, "orderLineSets", {
|
|
8870
|
+
get: function () {
|
|
8871
|
+
return this._orderLineSets;
|
|
8872
|
+
},
|
|
8873
|
+
set: function (value) {
|
|
8874
|
+
this._orderLineSets = value;
|
|
8875
|
+
},
|
|
8876
|
+
enumerable: false,
|
|
8877
|
+
configurable: true
|
|
8878
|
+
});
|
|
8864
8879
|
Object.defineProperty(TransactionBaseComponent.prototype, "transactionTotal", {
|
|
8865
8880
|
get: function () {
|
|
8866
8881
|
return this._transactionTotal;
|
|
@@ -8982,6 +8997,8 @@
|
|
|
8982
8997
|
// overridden by descendents
|
|
8983
8998
|
TransactionBaseComponent.prototype.transactionInfoSet = function () {
|
|
8984
8999
|
};
|
|
9000
|
+
TransactionBaseComponent.prototype.orderLineSetsSet = function () {
|
|
9001
|
+
};
|
|
8985
9002
|
TransactionBaseComponent.prototype.addLineTooltipMessage = function (message) {
|
|
8986
9003
|
if (this.lineTooltipMessages.indexOf(message) < 0) {
|
|
8987
9004
|
this.lineTooltipMessages.push("<i>" + message + "</i>");
|
|
@@ -9059,6 +9076,7 @@
|
|
|
9059
9076
|
transaction: [{ type: i0.Input }],
|
|
9060
9077
|
transactionLine: [{ type: i0.Input }],
|
|
9061
9078
|
transactionInfo: [{ type: i0.Input }],
|
|
9079
|
+
orderLineSets: [{ type: i0.Input }],
|
|
9062
9080
|
transactionTotal: [{ type: i0.Input }],
|
|
9063
9081
|
relation: [{ type: i0.Input }],
|
|
9064
9082
|
lockAndSave: [{ type: i0.Input }],
|
|
@@ -17819,12 +17837,19 @@
|
|
|
17819
17837
|
function TransactionLineActionButtonsPopupComponent(iconCacheService) {
|
|
17820
17838
|
this.iconCacheService = iconCacheService;
|
|
17821
17839
|
this.icons = Icon;
|
|
17840
|
+
this.canReopenExternalOrder = false;
|
|
17841
|
+
this.reopenExternalOrderClick = new i0.EventEmitter();
|
|
17822
17842
|
this.addDocumentButtonClick = new i0.EventEmitter();
|
|
17823
17843
|
this.articleTextButtonClick = new i0.EventEmitter();
|
|
17824
17844
|
this.transactionTextButtonClick = new i0.EventEmitter();
|
|
17825
17845
|
this.sidePanelButtonClick = new i0.EventEmitter();
|
|
17826
17846
|
this.showClass = true;
|
|
17827
17847
|
}
|
|
17848
|
+
TransactionLineActionButtonsPopupComponent.prototype.HandleReopenExternalOrderClick = function (event) {
|
|
17849
|
+
event.preventDefault();
|
|
17850
|
+
event.stopPropagation();
|
|
17851
|
+
this.reopenExternalOrderClick.emit();
|
|
17852
|
+
};
|
|
17828
17853
|
TransactionLineActionButtonsPopupComponent.prototype.handleAddDocumentButtonClick = function (event) {
|
|
17829
17854
|
event.preventDefault();
|
|
17830
17855
|
event.stopPropagation();
|
|
@@ -17850,7 +17875,7 @@
|
|
|
17850
17875
|
TransactionLineActionButtonsPopupComponent.decorators = [
|
|
17851
17876
|
{ type: i0.Component, args: [{
|
|
17852
17877
|
selector: "co-transaction-line-action-buttons-popup",
|
|
17853
|
-
template: "\n <div class=\"transaction-line-action-buttons-popup-wrapper\" [overlay]=\"parentForOverlay\" [rightAlign]=\"true\">\n <div class=\"action-button-wrapper\" (click)=\"handleAddDocumentButtonClick($event)\" [screenConfigurationObject]=\"configNames?.addDocumentBtn\" screenConfigNativeElement>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.Attachments)\"></co-icon>\n <div class=\"action-button-description\" [textContent]=\"'ADD_DOCUMENT' | localize\"></div>\n </div>\n <div class=\"action-button-wrapper\" (click)=\"handleArticleTextButtonClick($event)\" [screenConfigurationObject]=\"configNames?.addProductTextBtn\" screenConfigNativeElement>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.TextSizeSolid)\"></co-icon>\n <div class=\"action-button-description\" [textContent]=\"'PRODUCT_DESCRIPTION_AND_TEXTS' | localize\"></div>\n </div>\n <div class=\"action-button-wrapper\" (click)=\"handleTransactionTextButtonClick($event)\" [screenConfigurationObject]=\"configNames?.addLineTextBtn\" screenConfigNativeElement>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.TextSolid)\"></co-icon>\n <div class=\"action-button-description\" [textContent]=\"'ORDER_TEXT_LINE' | localize\"></div>\n </div>\n <div class=\"action-button-wrapper\" (click)=\"handleSidePanelButtonClick($event)\" [screenConfigurationObject]=\"configNames?.sidePanelBtn\" screenConfigNativeElement>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.ObjectIntersectSolid)\"></co-icon>\n <div class=\"action-button-description\" [textContent]=\"'SIDE_PANEL' | localize\"></div>\n </div>\n </div>\n ",
|
|
17878
|
+
template: "\n <div class=\"transaction-line-action-buttons-popup-wrapper\" [overlay]=\"parentForOverlay\" [rightAlign]=\"true\">\n <div class=\"action-button-wrapper\" *ngIf=\"canReopenExternalOrder\" (click)=\"HandleReopenExternalOrderClick($event)\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.DetailView)\"></co-icon>\n <div class=\"action-button-description\" [textContent]=\"'REOPEN_EXTERNAL_ORDER' | localize\"></div>\n </div>\n <div class=\"action-button-wrapper\" (click)=\"handleAddDocumentButtonClick($event)\" [screenConfigurationObject]=\"configNames?.addDocumentBtn\" screenConfigNativeElement>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.Attachments)\"></co-icon>\n <div class=\"action-button-description\" [textContent]=\"'ADD_DOCUMENT' | localize\"></div>\n </div>\n <div class=\"action-button-wrapper\" (click)=\"handleArticleTextButtonClick($event)\" [screenConfigurationObject]=\"configNames?.addProductTextBtn\" screenConfigNativeElement>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.TextSizeSolid)\"></co-icon>\n <div class=\"action-button-description\" [textContent]=\"'PRODUCT_DESCRIPTION_AND_TEXTS' | localize\"></div>\n </div>\n <div class=\"action-button-wrapper\" (click)=\"handleTransactionTextButtonClick($event)\" [screenConfigurationObject]=\"configNames?.addLineTextBtn\" screenConfigNativeElement>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.TextSolid)\"></co-icon>\n <div class=\"action-button-description\" [textContent]=\"'ORDER_TEXT_LINE' | localize\"></div>\n </div>\n <div class=\"action-button-wrapper\" (click)=\"handleSidePanelButtonClick($event)\" [screenConfigurationObject]=\"configNames?.sidePanelBtn\" screenConfigNativeElement>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.ObjectIntersectSolid)\"></co-icon>\n <div class=\"action-button-description\" [textContent]=\"'SIDE_PANEL' | localize\"></div>\n </div>\n </div>\n ",
|
|
17854
17879
|
providers: [{
|
|
17855
17880
|
provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
17856
17881
|
useExisting: i0.forwardRef(function () { return TransactionLineActionButtonsPopupComponent; })
|
|
@@ -17865,6 +17890,8 @@
|
|
|
17865
17890
|
TransactionLineActionButtonsPopupComponent.propDecorators = {
|
|
17866
17891
|
configNames: [{ type: i0.Input }],
|
|
17867
17892
|
parentForOverlay: [{ type: i0.Input }],
|
|
17893
|
+
canReopenExternalOrder: [{ type: i0.Input }],
|
|
17894
|
+
reopenExternalOrderClick: [{ type: i0.Output }],
|
|
17868
17895
|
addDocumentButtonClick: [{ type: i0.Output }],
|
|
17869
17896
|
articleTextButtonClick: [{ type: i0.Output }],
|
|
17870
17897
|
transactionTextButtonClick: [{ type: i0.Output }],
|
|
@@ -17900,6 +17927,16 @@
|
|
|
17900
17927
|
enumerable: false,
|
|
17901
17928
|
configurable: true
|
|
17902
17929
|
});
|
|
17930
|
+
Object.defineProperty(TransactionLineActionButtonsComponent.prototype, "orderLineSets", {
|
|
17931
|
+
get: function () {
|
|
17932
|
+
return this._orderLineSets;
|
|
17933
|
+
},
|
|
17934
|
+
set: function (value) {
|
|
17935
|
+
this._orderLineSets = value;
|
|
17936
|
+
},
|
|
17937
|
+
enumerable: false,
|
|
17938
|
+
configurable: true
|
|
17939
|
+
});
|
|
17903
17940
|
TransactionLineActionButtonsComponent.prototype.showClass = function () {
|
|
17904
17941
|
return true;
|
|
17905
17942
|
};
|
|
@@ -17915,6 +17952,9 @@
|
|
|
17915
17952
|
this._hidePopup();
|
|
17916
17953
|
}
|
|
17917
17954
|
};
|
|
17955
|
+
TransactionLineActionButtonsComponent.prototype.reopenExternalOrderClick = function () {
|
|
17956
|
+
this._eventService.reopenExternalOrderClicked.next(this._orderLineSet);
|
|
17957
|
+
};
|
|
17918
17958
|
TransactionLineActionButtonsComponent.prototype.handleAddDocumentButtonClick = function () {
|
|
17919
17959
|
this._eventService.addDocumentToLineClicked.next(this.transactionLine);
|
|
17920
17960
|
};
|
|
@@ -17936,7 +17976,9 @@
|
|
|
17936
17976
|
TransactionLineActionButtonsComponent.prototype._showPopup = function () {
|
|
17937
17977
|
var _this = this;
|
|
17938
17978
|
this.showActionButtons = true;
|
|
17939
|
-
|
|
17979
|
+
var canReopenExternalOrder = this._isReopenableExternalCatalogLine();
|
|
17980
|
+
this._actionButtonsPopupComponentRef = this._overlayService.createComponent(TransactionLineActionButtonsPopupComponent, { parentForOverlay: this.elementRef, configNames: this.configNames, canReopenExternalOrder: canReopenExternalOrder }, {
|
|
17981
|
+
reopenExternalOrderClick: function () { return _this.reopenExternalOrderClick(); },
|
|
17940
17982
|
addDocumentButtonClick: function () { return _this.handleAddDocumentButtonClick(); },
|
|
17941
17983
|
articleTextButtonClick: function () { return _this.handleArticleText(); },
|
|
17942
17984
|
transactionTextButtonClick: function () { return _this.handleTransactionText(); },
|
|
@@ -17947,6 +17989,19 @@
|
|
|
17947
17989
|
this.showActionButtons = false;
|
|
17948
17990
|
this._overlayService.removeComponent(this._actionButtonsPopupComponentRef);
|
|
17949
17991
|
};
|
|
17992
|
+
TransactionLineActionButtonsComponent.prototype._isReopenableExternalCatalogLine = function () {
|
|
17993
|
+
var _this = this;
|
|
17994
|
+
if (!this.transactionLine.orderLineSetCode) {
|
|
17995
|
+
return false;
|
|
17996
|
+
}
|
|
17997
|
+
this._orderLineSet = this.orderLineSets.find(function (o) { return o.orderLineSetCode === _this.transactionLine.orderLineSetCode; });
|
|
17998
|
+
if (!this._orderLineSet) {
|
|
17999
|
+
return false;
|
|
18000
|
+
}
|
|
18001
|
+
if (this._orderLineSet.aupOrderNr || this._orderLineSet.vdProjectId || this._orderLineSet.wtProjectNr) {
|
|
18002
|
+
return true;
|
|
18003
|
+
}
|
|
18004
|
+
};
|
|
17950
18005
|
return TransactionLineActionButtonsComponent;
|
|
17951
18006
|
}());
|
|
17952
18007
|
TransactionLineActionButtonsComponent.decorators = [
|
|
@@ -17970,6 +18025,7 @@
|
|
|
17970
18025
|
TransactionLineActionButtonsComponent.propDecorators = {
|
|
17971
18026
|
configNames: [{ type: i0.Input }],
|
|
17972
18027
|
transactionLine: [{ type: i0.Input }],
|
|
18028
|
+
orderLineSets: [{ type: i0.Input }],
|
|
17973
18029
|
waitingForUserAction: [{ type: i0.Output }],
|
|
17974
18030
|
transactionArticleTextOverviewButtonClicked: [{ type: i0.Output }],
|
|
17975
18031
|
transactionTextButtonClicked: [{ type: i0.Output }],
|
|
@@ -21415,7 +21471,7 @@
|
|
|
21415
21471
|
TransactionBaseLineComponent.decorators = [
|
|
21416
21472
|
{ type: i0.Component, args: [{
|
|
21417
21473
|
selector: "co-transaction-base-line",
|
|
21418
|
-
template: "\n <div class=\"transaction-base-line-wrapper\" data-action=\"openSidePanel\">\n <div class=\"transaction-base-line-section\" [class.line-start]=\"!preview\">\n <co-input-checkbox *ngIf=\"checkbox\" class=\"transaction-line-checkbox\"\n [model]=\"checkboxValue\"\n (modelChange)=\"checkboxValueChanged.emit($event)\"\n ></co-input-checkbox>\n <co-transaction-line-image-and-description\n *ngIf=\"transactionLine.isArticle\" class=\"transaction-line-image-and-description-wrapper\"\n [preview]=\"preview\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n (handleDeleteLine)=\"deleteTransactionLineClick($event)\"\n (openArticleTextClicked)=\"handleOpenArticleText($event)\"\n ></co-transaction-line-image-and-description>\n </div>\n <div class=\"transaction-base-line-section\" [class.line-end]=\"!preview\" [class.preview-margin]=\"preview\">\n <ng-content></ng-content>\n <div *ngIf=\"!preview && actionButtons && showActionsButton\" class=\"transaction-line-buttons\">\n <co-transaction-line-action-buttons\n [configNames]=\"actionButtonsConfigNames\"\n [transactionLine]=\"transactionLine\"\n (waitingForUserAction)=\"waitingForUserAction.next($event)\"\n (sidePanelButtonClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-line-action-buttons>\n </div>\n </div>\n </div>\n ",
|
|
21474
|
+
template: "\n <div class=\"transaction-base-line-wrapper\" data-action=\"openSidePanel\">\n <div class=\"transaction-base-line-section\" [class.line-start]=\"!preview\">\n <co-input-checkbox *ngIf=\"checkbox\" class=\"transaction-line-checkbox\"\n [model]=\"checkboxValue\"\n (modelChange)=\"checkboxValueChanged.emit($event)\"\n ></co-input-checkbox>\n <co-transaction-line-image-and-description\n *ngIf=\"transactionLine.isArticle\" class=\"transaction-line-image-and-description-wrapper\"\n [preview]=\"preview\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n (handleDeleteLine)=\"deleteTransactionLineClick($event)\"\n (openArticleTextClicked)=\"handleOpenArticleText($event)\"\n ></co-transaction-line-image-and-description>\n </div>\n <div class=\"transaction-base-line-section\" [class.line-end]=\"!preview\" [class.preview-margin]=\"preview\">\n <ng-content></ng-content>\n <div *ngIf=\"!preview && actionButtons && showActionsButton\" class=\"transaction-line-buttons\">\n <co-transaction-line-action-buttons\n [configNames]=\"actionButtonsConfigNames\"\n [transactionLine]=\"transactionLine\"\n [orderLineSets]=\"orderLineSets\"\n (waitingForUserAction)=\"waitingForUserAction.next($event)\"\n (sidePanelButtonClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-line-action-buttons>\n </div>\n </div>\n </div>\n ",
|
|
21419
21475
|
encapsulation: i0.ViewEncapsulation.None,
|
|
21420
21476
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
21421
21477
|
},] }
|
|
@@ -29687,6 +29743,9 @@
|
|
|
29687
29743
|
// Adjust the width condition as needed
|
|
29688
29744
|
return this.screenWidth < 1280; // Show the div if screen width is smaller than 1280px
|
|
29689
29745
|
};
|
|
29746
|
+
TransactionComponent.prototype.addExternalOrderLines = function (request) {
|
|
29747
|
+
this.service.addExternalCatalogArticle(request);
|
|
29748
|
+
};
|
|
29690
29749
|
TransactionComponent.prototype._getTransaction = function () {
|
|
29691
29750
|
var _this = this;
|
|
29692
29751
|
if (this.transactionNr && this.transactionKind) {
|