@colijnit/transaction 256.1.4 → 256.1.5
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 -24
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction-256.1.4.tgz +0 -0
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/transaction/transaction.component.js +15 -1
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date-button.component.js +37 -19
- package/esm2015/lib/component/transaction-line-fields/transaction-line-supplier-delivery-date-button.component.js +13 -13
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +63 -32
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction-line/transaction-line/style/_layout.scss +4 -2
- package/lib/component/transaction-line-fields/transaction-line-delivery-date-button.component.d.ts +1 -1
- package/lib/component/transaction-line-fields/transaction-line-supplier-delivery-date-button.component.d.ts +1 -2
- package/package.json +1 -1
- package/colijnit-transaction-256.1.3.tgz +0 -0
|
@@ -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.5";
|
|
37
|
+
this.publishDate = "24-10-2024 16:56:37";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -30427,26 +30427,43 @@
|
|
|
30427
30427
|
this.showCalender = true;
|
|
30428
30428
|
this._calendarPopupComponentRef = this._overlayService.createComponent(corecomponents_v12.CalendarComponent, {
|
|
30429
30429
|
parentForOverlay: this.parentComponent,
|
|
30430
|
-
selectedDate: new Date(this.transactionLine.deliveryDate
|
|
30430
|
+
selectedDate: new Date(this.transactionLine.deliveryDate
|
|
30431
|
+
? this.transactionLine.deliveryDate
|
|
30432
|
+
: new Date())
|
|
30431
30433
|
}, {
|
|
30432
30434
|
dateSelected: function (date) { return _this._handleDateChanged(date); },
|
|
30433
30435
|
clickedOutside: function () { return _this.handleShowHideClick(); }
|
|
30434
30436
|
});
|
|
30435
30437
|
};
|
|
30438
|
+
// private _handleDateChanged(date: Date): void {
|
|
30439
|
+
// if (this.commitWhenDateSelected) {
|
|
30440
|
+
// this.handleCommit(date);
|
|
30441
|
+
// } else {
|
|
30442
|
+
// this.transactionLine.deliveryDate = date;
|
|
30443
|
+
// this.handleShowHideClick();
|
|
30444
|
+
// this.detectChanges();
|
|
30445
|
+
// }
|
|
30446
|
+
// }
|
|
30436
30447
|
TransactionLineDeliveryDateButtonComponent.prototype._handleDateChanged = function (date) {
|
|
30437
|
-
|
|
30438
|
-
this.handleCommit(date);
|
|
30439
|
-
}
|
|
30440
|
-
else {
|
|
30441
|
-
this.transactionLine.deliveryDate = date;
|
|
30442
|
-
this.handleShowHideClick();
|
|
30443
|
-
this.detectChanges();
|
|
30444
|
-
}
|
|
30448
|
+
this.handleCommit(date);
|
|
30445
30449
|
};
|
|
30446
30450
|
TransactionLineDeliveryDateButtonComponent.prototype._hidePopup = function () {
|
|
30447
30451
|
this.showCalender = false;
|
|
30448
30452
|
this._overlayService.removeComponent(this._calendarPopupComponentRef);
|
|
30449
30453
|
};
|
|
30454
|
+
// protected async commit(date: Date): Promise<boolean> {
|
|
30455
|
+
// if (this.transactionLine.deliveryDate !== date) {
|
|
30456
|
+
// const oldDate = this.transactionLine.deliveryDate;
|
|
30457
|
+
// const success = await this.transactionService.updateDeliveryDateTransactionLine(this.transactionInfo.uuid, this.transactionLine.uuid, date);
|
|
30458
|
+
// if (!success) {
|
|
30459
|
+
// this.transactionLine.deliveryDate = oldDate;
|
|
30460
|
+
// } else {
|
|
30461
|
+
// this.handleShowHideClick();
|
|
30462
|
+
// }
|
|
30463
|
+
// return success;
|
|
30464
|
+
// }
|
|
30465
|
+
// return true;
|
|
30466
|
+
// }
|
|
30450
30467
|
TransactionLineDeliveryDateButtonComponent.prototype.commit = function (date) {
|
|
30451
30468
|
return __awaiter(this, void 0, void 0, function () {
|
|
30452
30469
|
var oldDate, success;
|
|
@@ -30458,14 +30475,14 @@
|
|
|
30458
30475
|
return [4 /*yield*/, this.transactionService.updateDeliveryDateTransactionLine(this.transactionInfo.uuid, this.transactionLine.uuid, date)];
|
|
30459
30476
|
case 1:
|
|
30460
30477
|
success = _a.sent();
|
|
30461
|
-
|
|
30462
|
-
|
|
30463
|
-
|
|
30464
|
-
else {
|
|
30465
|
-
this.handleShowHideClick();
|
|
30466
|
-
}
|
|
30478
|
+
!success && (this.transactionLine.deliveryDate = oldDate);
|
|
30479
|
+
this.handleShowHideClick();
|
|
30480
|
+
this.detectChanges();
|
|
30467
30481
|
return [2 /*return*/, success];
|
|
30468
|
-
case 2:
|
|
30482
|
+
case 2:
|
|
30483
|
+
this.handleShowHideClick();
|
|
30484
|
+
this.detectChanges();
|
|
30485
|
+
return [2 /*return*/, true];
|
|
30469
30486
|
}
|
|
30470
30487
|
});
|
|
30471
30488
|
});
|
|
@@ -30475,7 +30492,7 @@
|
|
|
30475
30492
|
TransactionLineDeliveryDateButtonComponent.decorators = [
|
|
30476
30493
|
{ type: i0.Component, args: [{
|
|
30477
30494
|
selector: "co-transaction-line-delivery-date-button",
|
|
30478
|
-
template: "\n <co-transaction-button\n #parentComponent\n class=\"big center-align\"\n [hidden]=\"hidden\"\n [readonly]=\"readonly\"\n [iconData]=\"iconCacheService.getIcon(icons.SharpLightTruckMovingClock)\"\n [label]=\"transactionLine.deliveryDate | date:'d MMM yyyy'\"\n [rightIconData]=\"iconCacheService.getIcon(icons.CalendarDayRegular)\"\n (click)=\"handleShowHideClick()\"
|
|
30495
|
+
template: "\n <co-transaction-button\n #parentComponent\n class=\"big center-align\"\n [hidden]=\"hidden\"\n [readonly]=\"readonly\"\n [iconData]=\"iconCacheService.getIcon(icons.SharpLightTruckMovingClock)\"\n [label]=\"transactionLine.deliveryDate | date:'d MMM yyyy'\"\n [rightIconData]=\"iconCacheService.getIcon(icons.CalendarDayRegular)\"\n (click)=\"handleShowHideClick()\">\n </co-transaction-button>\n ",
|
|
30479
30496
|
providers: [
|
|
30480
30497
|
corecomponents_v12.OverlayService,
|
|
30481
30498
|
{
|
|
@@ -33526,7 +33543,7 @@
|
|
|
33526
33543
|
|
|
33527
33544
|
var TransactionLineSupplierDeliveryDateButtonComponent = /** @class */ (function (_super) {
|
|
33528
33545
|
__extends(TransactionLineSupplierDeliveryDateButtonComponent, _super);
|
|
33529
|
-
function TransactionLineSupplierDeliveryDateButtonComponent(transactionEventService, service, iconCacheService, transactionScreenConfigurationService, dictionaryService, imageService, changeDetector, _overlayService
|
|
33546
|
+
function TransactionLineSupplierDeliveryDateButtonComponent(transactionEventService, service, iconCacheService, transactionScreenConfigurationService, dictionaryService, imageService, changeDetector, _overlayService) {
|
|
33530
33547
|
var _this = _super.call(this, transactionEventService, iconCacheService, transactionScreenConfigurationService, imageService, dictionaryService, service, changeDetector) || this;
|
|
33531
33548
|
_this.transactionEventService = transactionEventService;
|
|
33532
33549
|
_this.service = service;
|
|
@@ -33536,7 +33553,6 @@
|
|
|
33536
33553
|
_this.imageService = imageService;
|
|
33537
33554
|
_this.changeDetector = changeDetector;
|
|
33538
33555
|
_this._overlayService = _overlayService;
|
|
33539
|
-
_this._elementRef = _elementRef;
|
|
33540
33556
|
_this.icons = Icon;
|
|
33541
33557
|
_this.showCalender = false;
|
|
33542
33558
|
return _this;
|
|
@@ -33580,7 +33596,7 @@
|
|
|
33580
33596
|
TransactionLineSupplierDeliveryDateButtonComponent.decorators = [
|
|
33581
33597
|
{ type: i0.Component, args: [{
|
|
33582
33598
|
selector: 'co-transaction-line-supplier-delivery-date-button',
|
|
33583
|
-
template: "\n
|
|
33599
|
+
template: "\n <co-transaction-button\n #parentComponent\n class=\"big center-align\"\n [hidden]=\"hidden\"\n [readonly]=\"readonly\"\n [iconData]=\"iconCacheService.getIcon(icons.RegularIndustryClock)\"\n [label]=\"transactionLine.purchasePortalLine.deliveryDateConfirmed | date:'d MMM yyyy'\"\n [rightIconData]=\"iconCacheService.getIcon(icons.CalendarDayRegular)\"\n (click)=\"handleShowHideClick()\">\n </co-transaction-button>\n ",
|
|
33584
33600
|
providers: [
|
|
33585
33601
|
corecomponents_v12.OverlayService,
|
|
33586
33602
|
{
|
|
@@ -33599,8 +33615,7 @@
|
|
|
33599
33615
|
{ type: DictionaryService },
|
|
33600
33616
|
{ type: TransactionImageService },
|
|
33601
33617
|
{ type: i0.ChangeDetectorRef },
|
|
33602
|
-
{ type: corecomponents_v12.OverlayService }
|
|
33603
|
-
{ type: i0.ElementRef }
|
|
33618
|
+
{ type: corecomponents_v12.OverlayService }
|
|
33604
33619
|
]; };
|
|
33605
33620
|
TransactionLineSupplierDeliveryDateButtonComponent.propDecorators = {
|
|
33606
33621
|
parentComponent: [{ type: i0.ViewChild, args: ['parentComponent', { read: i0.ElementRef },] }],
|
|
@@ -55416,6 +55431,28 @@
|
|
|
55416
55431
|
}
|
|
55417
55432
|
});
|
|
55418
55433
|
}
|
|
55434
|
+
else if (this.transactionKind === transactionKind_enum.TransactionKind.CashDesk) {
|
|
55435
|
+
this._transactionConnectorService.connectionInitialized.pipe(operators.take(1)).subscribe(function (loaded) {
|
|
55436
|
+
if (loaded) {
|
|
55437
|
+
_this._screenConfigurationService.loadConfig([_this.transactionKind]).then(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
55438
|
+
return __generator(this, function (_a) {
|
|
55439
|
+
switch (_a.label) {
|
|
55440
|
+
case 0:
|
|
55441
|
+
if (!this.transactionNr) return [3 /*break*/, 2];
|
|
55442
|
+
return [4 /*yield*/, this.service.getTransactionByNrAndKind(this.transactionNr, this.transactionKind)];
|
|
55443
|
+
case 1:
|
|
55444
|
+
_a.sent();
|
|
55445
|
+
_a.label = 2;
|
|
55446
|
+
case 2:
|
|
55447
|
+
this._prepareHeader();
|
|
55448
|
+
this.screenConfigLoaded = true;
|
|
55449
|
+
return [2 /*return*/];
|
|
55450
|
+
}
|
|
55451
|
+
});
|
|
55452
|
+
}); });
|
|
55453
|
+
}
|
|
55454
|
+
});
|
|
55455
|
+
}
|
|
55419
55456
|
};
|
|
55420
55457
|
TransactionComponent.prototype._prepareHeader = function () {
|
|
55421
55458
|
if (this._screenConfigurationService.getObjectConfigurationFor(this.cfgNames.RelationInfoHeader).immediatelyHidden() &&
|