@dsivd/prestations-ng 18.1.0 → 18.1.1-beta.1

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/CHANGELOG.md CHANGED
@@ -6,6 +6,13 @@
6
6
 
7
7
  ---
8
8
 
9
+ ## [18.1.1]
10
+
11
+ ### Fixed
12
+
13
+ - [sdk-epayment.component.ts](projects/prestations-ng/src/sdk-epayment/sdk-epayment.component.ts)
14
+ - do not show native alert message when navigating to payment web page
15
+
9
16
  ## [18.1.0]
10
17
 
11
18
  ### Added
@@ -13631,11 +13631,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
13631
13631
  * Postfinance. La méthode payNow() déclenche le paiement.
13632
13632
  */
13633
13633
  class SdkEpaymentComponent {
13634
- constructor(ePaymentService, route, gesDemService, gesdemEventService) {
13634
+ constructor(ePaymentService, route, gesDemService, gesdemEventService, registerNgModelService) {
13635
13635
  this.ePaymentService = ePaymentService;
13636
13636
  this.route = route;
13637
13637
  this.gesDemService = gesDemService;
13638
13638
  this.gesdemEventService = gesdemEventService;
13639
+ this.registerNgModelService = registerNgModelService;
13639
13640
  this.baseUrl = 'api/';
13640
13641
  this.platformFailureMessageDicoKey = 'epayment-form.errors.default';
13641
13642
  this.failureModalDisplayed = false;
@@ -13663,6 +13664,7 @@ class SdkEpaymentComponent {
13663
13664
  .createPendingPayment(reference, this.baseUrl)
13664
13665
  // eslint-disable-next-line rxjs-angular/prefer-async-pipe
13665
13666
  .subscribe(redirectUrl => {
13667
+ this.registerNgModelService.setHasInteractions(false);
13666
13668
  this.redirectModalDisplayed = true;
13667
13669
  this.window.location.href = redirectUrl;
13668
13670
  });
@@ -13683,13 +13685,13 @@ class SdkEpaymentComponent {
13683
13685
  });
13684
13686
  this.failureModalDisplayed = true;
13685
13687
  }
13686
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SdkEpaymentComponent, deps: [{ token: EPaymentService }, { token: i1$1.ActivatedRoute }, { token: GesdemHandlerService }, { token: GesdemEventService }], target: i0.ɵɵFactoryTarget.Component }); }
13688
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SdkEpaymentComponent, deps: [{ token: EPaymentService }, { token: i1$1.ActivatedRoute }, { token: GesdemHandlerService }, { token: GesdemEventService }, { token: RegisterNgModelService }], target: i0.ɵɵFactoryTarget.Component }); }
13687
13689
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: SdkEpaymentComponent, isStandalone: false, selector: "epayment-form", inputs: { baseUrl: "baseUrl" }, ngImport: i0, template: "<foehn-modal\n [id]=\"'epayment-form-error-modal'\"\n [isModalVisible]=\"failureModalDisplayed\"\n [modalHeaderText]=\"'epayment-form.errors.title' | fromDictionary\"\n [modalBodyText]=\"platformFailureMessageDicoKey | fromDictionary\"\n (click)=\"failureModalDisplayed = false\"\n></foehn-modal>\n\n<foehn-modal\n [id]=\"'epayment-form-redirection-modal'\"\n [isModalVisible]=\"redirectModalDisplayed\"\n [modalHeaderText]=\"'epayment-form.redirection.title' | fromDictionary\"\n [closeable]=\"false\"\n>\n <!-- Need to add a tabindex=\"0\" (here on modal-body-content) otherwise cdkTrapFocus will not work because no closing button -->\n <div class=\"modal-body-content\" tabindex=\"0\">\n <p [innerHTML]=\"'epayment-form.redirection.text' | fromDictionary\"></p>\n <div class=\"progress\" aria-hidden=\"true\">\n <div\n role=\"progressbar\"\n class=\"progress-bar bg-success progress-bar-animated progress-bar-striped w-100\"\n ></div>\n </div>\n <small\n class=\"form-text text-secondary\"\n [innerHTML]=\"'epayment-form.redirection.help' | fromDictionary\"\n ></small>\n </div>\n</foehn-modal>\n", styles: [":host ::ng-deep #epayment-form-redirection-modal .modal{z-index:10000}:host ::ng-deep #epayment-form-redirection-modal .modal-header{background-color:var(--vd-neutral-lighter)}:host ::ng-deep #epayment-form-redirection-modal .modal-content{border:none}:host ::ng-deep #epayment-form-redirection-modal .modal-title{margin:0!important}:host ::ng-deep #epayment-form-redirection-modal .modal-body{padding:.5rem}:host ::ng-deep #epayment-form-redirection-modal .modal-body-content{padding:.5rem}:host ::ng-deep #epayment-form-redirection-modal .modal-footer{display:none!important}\n"], dependencies: [{ kind: "component", type: FoehnModalComponent, selector: "foehn-modal", inputs: ["id", "name", "modalSize", "modalBodyText", "modalHeaderText", "closeable", "draggable", "hideable", "modalTriggerHtmlElement", "isModalVisible"], outputs: ["isModalVisibleChange"] }, { kind: "pipe", type: SdkDictionaryPipe, name: "fromDictionary" }] }); }
13688
13690
  }
13689
13691
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SdkEpaymentComponent, decorators: [{
13690
13692
  type: Component,
13691
13693
  args: [{ selector: 'epayment-form', standalone: false, template: "<foehn-modal\n [id]=\"'epayment-form-error-modal'\"\n [isModalVisible]=\"failureModalDisplayed\"\n [modalHeaderText]=\"'epayment-form.errors.title' | fromDictionary\"\n [modalBodyText]=\"platformFailureMessageDicoKey | fromDictionary\"\n (click)=\"failureModalDisplayed = false\"\n></foehn-modal>\n\n<foehn-modal\n [id]=\"'epayment-form-redirection-modal'\"\n [isModalVisible]=\"redirectModalDisplayed\"\n [modalHeaderText]=\"'epayment-form.redirection.title' | fromDictionary\"\n [closeable]=\"false\"\n>\n <!-- Need to add a tabindex=\"0\" (here on modal-body-content) otherwise cdkTrapFocus will not work because no closing button -->\n <div class=\"modal-body-content\" tabindex=\"0\">\n <p [innerHTML]=\"'epayment-form.redirection.text' | fromDictionary\"></p>\n <div class=\"progress\" aria-hidden=\"true\">\n <div\n role=\"progressbar\"\n class=\"progress-bar bg-success progress-bar-animated progress-bar-striped w-100\"\n ></div>\n </div>\n <small\n class=\"form-text text-secondary\"\n [innerHTML]=\"'epayment-form.redirection.help' | fromDictionary\"\n ></small>\n </div>\n</foehn-modal>\n", styles: [":host ::ng-deep #epayment-form-redirection-modal .modal{z-index:10000}:host ::ng-deep #epayment-form-redirection-modal .modal-header{background-color:var(--vd-neutral-lighter)}:host ::ng-deep #epayment-form-redirection-modal .modal-content{border:none}:host ::ng-deep #epayment-form-redirection-modal .modal-title{margin:0!important}:host ::ng-deep #epayment-form-redirection-modal .modal-body{padding:.5rem}:host ::ng-deep #epayment-form-redirection-modal .modal-body-content{padding:.5rem}:host ::ng-deep #epayment-form-redirection-modal .modal-footer{display:none!important}\n"] }]
13692
- }], ctorParameters: () => [{ type: EPaymentService }, { type: i1$1.ActivatedRoute }, { type: GesdemHandlerService }, { type: GesdemEventService }], propDecorators: { baseUrl: [{
13694
+ }], ctorParameters: () => [{ type: EPaymentService }, { type: i1$1.ActivatedRoute }, { type: GesdemHandlerService }, { type: GesdemEventService }, { type: RegisterNgModelService }], propDecorators: { baseUrl: [{
13693
13695
  type: Input
13694
13696
  }] } });
13695
13697