@colijnit/transaction 256.1.83 → 256.1.84
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 +44 -5
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/transaction-line-fields/transaction-line-amount.component.js +27 -2
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access/transaction-quick-access.component.js +13 -3
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +39 -5
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction-line-fields/transaction-line-amount.component.d.ts +3 -0
- package/lib/component/transaction-quick-access/transaction-quick-access/transaction-quick-access.component.d.ts +4 -1
- package/package.json +1 -1
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
function Version() {
|
|
34
34
|
this.name = "@colijnit/transaction";
|
|
35
35
|
this.description = "Colijn IT transaction package";
|
|
36
|
-
this.symVer = "256.1.
|
|
37
|
-
this.publishDate = "
|
|
36
|
+
this.symVer = "256.1.84";
|
|
37
|
+
this.publishDate = "7-5-2025 18:01:49";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -34478,6 +34478,7 @@
|
|
|
34478
34478
|
_this.forceReadonly = false;
|
|
34479
34479
|
_this.localAmount = 0;
|
|
34480
34480
|
_this.isReturn = false;
|
|
34481
|
+
_this.isImportFromCatalog = false;
|
|
34481
34482
|
_this.commit = function (amount) { return __awaiter(_this, void 0, void 0, function () {
|
|
34482
34483
|
var oldAmount, success;
|
|
34483
34484
|
return __generator(this, function (_a) {
|
|
@@ -34512,18 +34513,46 @@
|
|
|
34512
34513
|
if (this.transactionLine && this.transactionLine.isArticle) {
|
|
34513
34514
|
this.localAmount = this.transactionLine.amount;
|
|
34514
34515
|
this.isReturn = this.localAmount < 0;
|
|
34516
|
+
this._setIsImportFromExternalCatalog();
|
|
34515
34517
|
this.detectChanges();
|
|
34516
34518
|
}
|
|
34517
34519
|
return [2 /*return*/];
|
|
34518
34520
|
});
|
|
34519
34521
|
});
|
|
34520
34522
|
};
|
|
34523
|
+
TransactionLineAmountComponent.prototype.transactionInfoSet = function () {
|
|
34524
|
+
var _super = Object.create(null, {
|
|
34525
|
+
transactionInfoSet: { get: function () { return _super_1.prototype.transactionInfoSet; } }
|
|
34526
|
+
});
|
|
34527
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
34528
|
+
return __generator(this, function (_a) {
|
|
34529
|
+
_super.transactionInfoSet.call(this);
|
|
34530
|
+
this._setIsImportFromExternalCatalog();
|
|
34531
|
+
return [2 /*return*/];
|
|
34532
|
+
});
|
|
34533
|
+
});
|
|
34534
|
+
};
|
|
34535
|
+
TransactionLineAmountComponent.prototype._setIsImportFromExternalCatalog = function () {
|
|
34536
|
+
var _this = this;
|
|
34537
|
+
if (this.transactionLine && this.orderLineSets && this.orderLineSets.length > 0) {
|
|
34538
|
+
var orderLineSet = this.orderLineSets.find(function (o) { return o.orderLineSetCode = _this.transactionLine.orderLineSetCode; });
|
|
34539
|
+
if (orderLineSet.aupOrderNr || orderLineSet.aupShoppingCartId || orderLineSet.vdProjectId || orderLineSet.wtProjectNr || orderLineSet.hdVariantId) {
|
|
34540
|
+
this.isImportFromCatalog = true;
|
|
34541
|
+
}
|
|
34542
|
+
else {
|
|
34543
|
+
this.isImportFromCatalog = false;
|
|
34544
|
+
}
|
|
34545
|
+
}
|
|
34546
|
+
else {
|
|
34547
|
+
this.isImportFromCatalog = false;
|
|
34548
|
+
}
|
|
34549
|
+
};
|
|
34521
34550
|
return TransactionLineAmountComponent;
|
|
34522
34551
|
}(TransactionLineBaseComponent));
|
|
34523
34552
|
TransactionLineAmountComponent.decorators = [
|
|
34524
34553
|
{ type: i0.Component, args: [{
|
|
34525
34554
|
selector: "co-transaction-line-amount",
|
|
34526
|
-
template: "\n <co-transaction-line-label *ngIf=\"inputLabel\" [insideLabel]=\"'QUANTITY'\"></co-transaction-line-label>\n <co-input-number-picker class=\"amount-number-picker\"\n [hidden]=\"hidden\"\n [min]=\"isReturn ? null : 0\"\n [max]=\"isReturn ? -1 : null\"\n [model]=\"localAmount\"\n [decimals]=\"decimals\"\n [readonly]=\"readonly || committing || forceReadonly\"\n (modelChange)=\"handleCommit($event)\"></co-input-number-picker>\n ",
|
|
34555
|
+
template: "\n <co-transaction-line-label *ngIf=\"inputLabel\" [insideLabel]=\"'QUANTITY'\"></co-transaction-line-label>\n <co-input-number-picker class=\"amount-number-picker\"\n [hidden]=\"hidden\"\n [min]=\"isReturn ? null : 0\"\n [max]=\"isReturn ? -1 : null\"\n [model]=\"localAmount\"\n [decimals]=\"decimals\"\n [readonly]=\"readonly || committing || forceReadonly || isImportFromCatalog\"\n (modelChange)=\"handleCommit($event)\"></co-input-number-picker>\n ",
|
|
34527
34556
|
providers: [{
|
|
34528
34557
|
provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
34529
34558
|
useExisting: i0.forwardRef(function () { return TransactionLineAmountComponent; })
|
|
@@ -56373,7 +56402,8 @@
|
|
|
56373
56402
|
];
|
|
56374
56403
|
|
|
56375
56404
|
var TransactionQuickAccessComponent = /** @class */ (function () {
|
|
56376
|
-
function TransactionQuickAccessComponent(_mappingService, _compFactoryResolver, appRef, _changeDetector) {
|
|
56405
|
+
function TransactionQuickAccessComponent(_transactionHeaderService, _mappingService, _compFactoryResolver, appRef, _changeDetector) {
|
|
56406
|
+
this._transactionHeaderService = _transactionHeaderService;
|
|
56377
56407
|
this._mappingService = _mappingService;
|
|
56378
56408
|
this._compFactoryResolver = _compFactoryResolver;
|
|
56379
56409
|
this.appRef = appRef;
|
|
@@ -56381,6 +56411,7 @@
|
|
|
56381
56411
|
this.icons = Icon;
|
|
56382
56412
|
this.showLoader = false;
|
|
56383
56413
|
this._shouldCreate = false;
|
|
56414
|
+
this._subs = [];
|
|
56384
56415
|
}
|
|
56385
56416
|
Object.defineProperty(TransactionQuickAccessComponent.prototype, "container", {
|
|
56386
56417
|
set: function (content) {
|
|
@@ -56421,9 +56452,16 @@
|
|
|
56421
56452
|
return true;
|
|
56422
56453
|
};
|
|
56423
56454
|
TransactionQuickAccessComponent.prototype.ngOnInit = function () {
|
|
56424
|
-
this
|
|
56455
|
+
var _this = this;
|
|
56456
|
+
// this._prepareContent();
|
|
56457
|
+
this._subs.push(this._transactionHeaderService.transactionSet.subscribe(function (set) {
|
|
56458
|
+
if (set) {
|
|
56459
|
+
_this._prepareContent();
|
|
56460
|
+
}
|
|
56461
|
+
}));
|
|
56425
56462
|
};
|
|
56426
56463
|
TransactionQuickAccessComponent.prototype.ngOnDestroy = function () {
|
|
56464
|
+
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
56427
56465
|
if (this._componentRef) {
|
|
56428
56466
|
this._componentRef.destroy();
|
|
56429
56467
|
this._componentRef = undefined;
|
|
@@ -56463,6 +56501,7 @@
|
|
|
56463
56501
|
},] }
|
|
56464
56502
|
];
|
|
56465
56503
|
TransactionQuickAccessComponent.ctorParameters = function () { return [
|
|
56504
|
+
{ type: TransactionHeaderService },
|
|
56466
56505
|
{ type: TransactionMappingService },
|
|
56467
56506
|
{ type: i0.ComponentFactoryResolver },
|
|
56468
56507
|
{ type: i0.ApplicationRef },
|