@colijnit/transaction 253.1.6 → 253.1.7

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.
@@ -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 = "253.1.6";
37
- this.publishDate = "9-7-2024 22:05:41";
36
+ this.symVer = "253.1.7";
37
+ this.publishDate = "10-7-2024 16:59:29";
38
38
  }
39
39
  return Version;
40
40
  }());
@@ -32501,7 +32501,7 @@
32501
32501
  this.iconCacheService = iconCacheService;
32502
32502
  this.icons = Icon;
32503
32503
  this.showKeyPad = true;
32504
- this.remainingPayment = false;
32504
+ this._remainingPayment = false;
32505
32505
  this.payed = new i0.EventEmitter();
32506
32506
  this.paymentMethodIdx = 0;
32507
32507
  this.cashRegisterIdx = 0;
@@ -32638,6 +32638,17 @@
32638
32638
  enumerable: false,
32639
32639
  configurable: true
32640
32640
  });
32641
+ Object.defineProperty(TransactionPaymentBaseComponent.prototype, "remainingPayment", {
32642
+ get: function () {
32643
+ return this._remainingPayment;
32644
+ },
32645
+ set: function (value) {
32646
+ this._remainingPayment = value;
32647
+ this.paymentService.getDepositAmount = !this._remainingPayment;
32648
+ },
32649
+ enumerable: false,
32650
+ configurable: true
32651
+ });
32641
32652
  Object.defineProperty(TransactionPaymentBaseComponent.prototype, "currentPaymentMethod", {
32642
32653
  get: function () {
32643
32654
  return this._currentPaymentMethod;
@@ -32751,7 +32762,7 @@
32751
32762
  { type: TransactionPaymentConnectorService },
32752
32763
  { type: TransactionEventService },
32753
32764
  { type: i0.ChangeDetectorRef },
32754
- { type: TransactionPaymentService, decorators: [{ type: i0.SkipSelf }] },
32765
+ { type: TransactionPaymentService },
32755
32766
  { type: IconCacheService }
32756
32767
  ]; };
32757
32768
  TransactionPaymentBaseComponent.propDecorators = {
@@ -39219,7 +39230,7 @@
39219
39230
 
39220
39231
  var TransactionHeaderPaymentComponent = /** @class */ (function (_super) {
39221
39232
  __extends(TransactionHeaderPaymentComponent, _super);
39222
- function TransactionHeaderPaymentComponent(transactionEventService, service, iconCacheService, transactionScreenConfigurationService, dictionaryService, imageService, changeDetector, _paymentConnectorService, _paymentService) {
39233
+ function TransactionHeaderPaymentComponent(transactionEventService, service, iconCacheService, transactionScreenConfigurationService, dictionaryService, imageService, changeDetector, _paymentConnectorService) {
39223
39234
  var _this = _super.call(this, transactionEventService, iconCacheService, transactionScreenConfigurationService, imageService, dictionaryService, service, changeDetector) || this;
39224
39235
  _this.transactionEventService = transactionEventService;
39225
39236
  _this.service = service;
@@ -39229,7 +39240,6 @@
39229
39240
  _this.imageService = imageService;
39230
39241
  _this.changeDetector = changeDetector;
39231
39242
  _this._paymentConnectorService = _paymentConnectorService;
39232
- _this._paymentService = _paymentService;
39233
39243
  _this.icons = Icon;
39234
39244
  _this.paymentMethods = [];
39235
39245
  _this.depositPayments = [];
@@ -39251,7 +39261,6 @@
39251
39261
  _super.prototype.ngOnInit.call(this);
39252
39262
  this._subs.push(this.transactionEventService.transactionPaymentDone.subscribe(function () { return _this._getDepositPaymentInfo(); }), this.transactionEventService.activeRubricChange.subscribe(function (rubric) {
39253
39263
  _this.showRemainingPayment = rubric === TransactionTypeCategory.SalesOrderDeliveryNote || rubric === TransactionTypeCategory.SalesOrderInvoice;
39254
- _this._paymentService.getDepositAmount = !_this.showRemainingPayment;
39255
39264
  }));
39256
39265
  };
39257
39266
  TransactionHeaderPaymentComponent.prototype.ngOnDestroy = function () {
@@ -39302,7 +39311,6 @@
39302
39311
  selector: "co-transaction-header-payment",
39303
39312
  template: "\n <div class=\"transaction-header-payment-wrapper\">\n <div class=\"transaction-header-payment-wrapper-content\" [class.show-remaining]=\"showRemainingPayment\">\n <co-transaction-header-block\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [thirdBlockTemplate]=\"thirdBlock\"\n [hiddenBlockTemplate]=\"hiddenBlock\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n <co-transaction-header-block *ngIf=\"showRemainingPayment\"\n [firstBlockTemplate]=\"firstBlockRest\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n </div>\n </div>\n <ng-template #firstBlock>\n <div class=\"transaction-header-block-row\">\n <div class=\"transaction-header-icon\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentAvatarHeader\" screenConfigNativeElement>\n <co-icon class=\"header-order-icon\"\n (click)=\"showDialog = true\"\n [iconData]=\"iconCacheService.getIcon(icons.CreditCardRegular)\">\n </co-icon>\n </div>\n <div class=\"header-downpayment-amount-wrapper\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\" screenConfigNativeElement>\n <div class=\"header-deposit-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_AMOUNT' | localize\"></div>\n <co-transaction-header-deposit-amount class=\"transaction-header-deposit\"\n [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\"\n [transaction]=\"transaction\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-deposit-amount>\n </div>\n </div>\n </ng-template>\n <ng-template #firstBlockRest>\n <div class=\"transaction-header-block-row\">\n <div class=\"transaction-header-icon\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentAvatarHeader\" screenConfigNativeElement>\n <co-icon class=\"header-order-icon\"\n (click)=\"showPaymentDialog = true\"\n [iconData]=\"iconCacheService.getIcon(icons.CreditCardRegularCheck)\">\n </co-icon>\n </div>\n <div class=\"header-remaining-payment-amount-wrapper\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\" screenConfigNativeElement>\n <div class=\"header-deposit-label co-transaction-label\" [textContent]=\"'REMAINING_PAYMENT' | localize\"></div>\n <co-transaction-header-remaining-amount class=\"transaction-header-remaining\"\n [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\"\n [transactionUuid]=\"transaction.transactionInfo.uuid\"\n (remainingAmountChange)=\"remainingToPay = $event\"\n ></co-transaction-header-remaining-amount>\n </div>\n </div>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"transaction-header-block-row\">\n <div class=\"header-downpayment-percentage-wrapper\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentPercentageHeader\" screenConfigNativeElement>\n <div class=\"header-deposit-label co-transaction-label\" [textContent]=\"'%' | localize\"></div>\n <co-transaction-header-deposit-percentage class=\"transaction-header-deposit\"\n [screenConfigurationObject]=\"cfgNames.HeaderPaymentPercentageHeader\"\n [transactionInfo]=\"transactionInfo\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-deposit-percentage>\n </div>\n </div>\n </ng-template>\n <ng-template #thirdBlock>\n <div class=\"transaction-header-block-row\">\n <div class=\"header-payment-button-wrapper\" (click)=\"openPayment($event)\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentPaymentHeader\" screenConfigNativeElement>\n <co-icon class=\"header-order-icon\" [iconData]=\"iconCacheService.getIcon(icons.CreditCardRegularCheck)\">\n </co-icon>\n <div class=\"spacer\"></div>\n <div class=\"payment-payed-wrapper\">\n <!--div class=\"header-payed-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_DONE' | localize\"></div-->\n <span class=\"payment-paid\" [class.success]=\"paid >= toPay\" [textContent]=\"(paid | coCurrency) || 0\"></span>\n </div>\n <!--co-transaction-header-payment-button *ngIf=\"transactionInfo.transactionKind !== transKind.PurchaseOrder\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-header-payment-button-->\n </div>\n </div>\n </ng-template>\n <ng-template #hiddenBlock>\n <!--div class=\"transaction-header-block-row\">\n <div class=\"header-branch-label co-transaction-label\" [textContent]=\"'BRANCH' | localize\"></div>\n <div class=\"branch-label\" [textContent]=\"transactionInfo.branch?.familyName\"></div>\n </div-->\n </ng-template>\n <co-transaction-header-popup *ngIf=\"showDialog\"\n [activeCategoryDescription]=\"'PAYMENT_INFORMATION'\"\n [relation]=\"relation\"\n [transaction]=\"transaction\"\n (closeClick)=\"showDialog = false\"></co-transaction-header-popup>\n<!--\n <co-dialog class=\"transaction-header-payment-dialog\" [headerTemplate]=\"headerTemplate\" *ngIf=\"showDialog\" (closeClick)=\"showDialog = false\">\n <ng-template #headerTemplate>\n <div class=\"co-dialog-header-title\" [textContent]=\"'PAYMENT_INFORMATION' | localize\"></div>\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n >\n </co-transaction-header-block>\n </ng-template>\n <div class=\"payment-dialog-section\">\n <co-deposit-payment [branch]=\"transactionInfo.branch?.relationNr\" [transactionUuid]=\"transactionInfo.uuid\"></co-deposit-payment>\n </div>\n </co-dialog>\n-->\n <co-dialog class=\"payment-dialog\" [modal]=\"true\" [headerTemplate]=\"headerTemplate\" *ngIf=\"showPaymentDialog\" (closeClick)=\"showPaymentDialog = false\">\n <ng-template #headerTemplate>\n <div class=\"co-dialog-wrapper-popup-title\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.CreditCardRegularCheck)\"></co-icon>\n <div class=\"co-dialog-header-title\" [textContent]=\"'PAYMENT_METHOD' | localize\"></div>\n </div>\n </ng-template>\n <co-payment\n [transId]=\"transactionInfo.id\"\n [branch]=\"transactionInfo.branch?.relationNr\"\n [transactionUuid]=\"transactionInfo.uuid\"\n [amount]=\"showRemainingPayment ? remainingToPay : toPay\"\n [remainingPayment]=\"showRemainingPayment\"\n [currencyId]=\"transactionInfo.currencyId\"\n ></co-payment>\n </co-dialog>\n ",
39304
39313
  providers: [
39305
- TransactionPaymentService,
39306
39314
  { provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return TransactionHeaderPaymentComponent; }) }
39307
39315
  ],
39308
39316
  encapsulation: i0.ViewEncapsulation.None
@@ -39316,8 +39324,7 @@
39316
39324
  { type: DictionaryService },
39317
39325
  { type: TransactionImageService },
39318
39326
  { type: i0.ChangeDetectorRef },
39319
- { type: TransactionPaymentConnectorService },
39320
- { type: TransactionPaymentService }
39327
+ { type: TransactionPaymentConnectorService }
39321
39328
  ]; };
39322
39329
  TransactionHeaderPaymentComponent.propDecorators = {
39323
39330
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-header-payment",] }]