@dsivd/prestations-ng 14.5.14-beta4 → 15.0.0-beta1

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +2 -0
  3. package/bundles/dsivd-prestations-ng.umd.js +66 -80
  4. package/bundles/dsivd-prestations-ng.umd.js.map +1 -1
  5. package/dsivd-prestations-ng-v15.0.0-beta1.tgz +0 -0
  6. package/esm2015/foehn-list/foehn-list.component.js +13 -12
  7. package/esm2015/foehn-table/foehn-table.component.js +12 -7
  8. package/esm2015/foehn-table/tableSort.js +1 -1
  9. package/esm2015/foehn-upload/foehn-bo-multi-upload/bo-multi-upload.service.js +4 -3
  10. package/esm2015/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.component.js +6 -3
  11. package/esm2015/foehn-upload/foehn-multi-upload/foehn-multi-upload.component.js +7 -4
  12. package/esm2015/foehn-upload/foehn-multi-upload/multi-upload.service.js +4 -3
  13. package/esm2015/foehn-upload/foehn-multi-upload/pending-upload.service.js +4 -3
  14. package/esm2015/foehn-upload/foehn-picture-upload/foehn-picture-upload.component.js +6 -3
  15. package/esm2015/foehn-upload/pending-upload.type.js +1 -1
  16. package/esm2015/gesdem-confirmation/gesdem-confirmation.component.js +2 -2
  17. package/esm2015/sdk-dictionary/default-dictionary.js +2 -1
  18. package/esm2015/sdk-epayment/sdk-epayment.component.js +10 -39
  19. package/esm2015/sdk-epayment/sdk-epayment.service.js +12 -7
  20. package/fesm2015/dsivd-prestations-ng.js +66 -75
  21. package/fesm2015/dsivd-prestations-ng.js.map +1 -1
  22. package/foehn-list/foehn-list.component.d.ts +0 -1
  23. package/foehn-table/tableSort.d.ts +1 -1
  24. package/foehn-upload/foehn-bo-multi-upload/bo-multi-upload.service.d.ts +1 -1
  25. package/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.component.d.ts +2 -1
  26. package/foehn-upload/foehn-multi-upload/foehn-multi-upload.component.d.ts +2 -1
  27. package/foehn-upload/foehn-multi-upload/multi-upload.service.d.ts +1 -1
  28. package/foehn-upload/foehn-multi-upload/pending-upload.service.d.ts +1 -1
  29. package/foehn-upload/foehn-picture-upload/foehn-picture-upload.component.d.ts +2 -1
  30. package/foehn-upload/pending-upload.type.d.ts +1 -0
  31. package/package.json +1 -1
  32. package/sdk-epayment/sdk-epayment.component.d.ts +3 -13
  33. package/sdk-epayment/sdk-epayment.service.d.ts +2 -5
  34. package/dsivd-prestations-ng-v14.5.14-beta4.tgz +0 -0
  35. package/esm2015/sdk-epayment/model/EPaymentRequest.js +0 -3
  36. package/sdk-epayment/model/EPaymentRequest.d.ts +0 -5
@@ -22,7 +22,6 @@ export declare class FoehnListComponent implements OnChanges {
22
22
  showPage(page: number, emitPageChangeEvent?: boolean): void;
23
23
  pagesCount(): number;
24
24
  private buildFilteredList;
25
- private hasInputChanged;
26
25
  static ɵfac: i0.ɵɵFactoryDeclaration<FoehnListComponent, never>;
27
26
  static ɵcmp: i0.ɵɵComponentDeclaration<FoehnListComponent, "foehn-list", never, { "itemsPerPage": "itemsPerPage"; "id": "id"; "previousLabel": "previousLabel"; "nextLabel": "nextLabel"; "fixedPageCount": "fixedPageCount"; "trackByFn": "trackByFn"; "list": "list"; }, { "pageChange": "pageChange"; }, ["templateVariable"], never>;
28
27
  }
@@ -1,4 +1,4 @@
1
1
  export declare class TableSort {
2
2
  sortDirection: 'DESC' | 'ASC';
3
- sortAttribute: string;
3
+ sortAttribute?: string;
4
4
  }
@@ -15,7 +15,7 @@ export declare class BoMultiUploadService {
15
15
  private uniqPrefix;
16
16
  private uploaderHelper;
17
17
  constructor(httpClient: HttpClient, growlService: GrowlBrokerService, applicationInfoService: ApplicationInfoService, dictionaryService: SdkDictionaryService);
18
- uploadDocuments(url: string, formKey: string, label: string, files: File[], key: string, isMultiple: boolean, language: string): Observable<BoDocumentsWithErrors>;
18
+ uploadDocuments(url: string, formKey: string, label: string, files: File[], key: string, isMultiple: boolean, language: string, shouldDisplayFileSavedConfirmation: boolean): Observable<BoDocumentsWithErrors>;
19
19
  deleteDocument(baseUrl: string, document: DocumentReference): Observable<DocumentReference>;
20
20
  getDownloadUrl(baseUrl: string, document: DocumentReference): string;
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<BoMultiUploadService, never>;
@@ -13,6 +13,7 @@ export declare class FoehnBoMultiUploadComponent extends AbstractFoehnUploaderCo
13
13
  uploadUrl: string;
14
14
  deleteUrl: string;
15
15
  downloadUrl: string;
16
+ shouldDisplayFileSavedConfirmation: boolean;
16
17
  documentDeleted: EventEmitter<DocumentReference>;
17
18
  boMultiUploadService: BoMultiUploadService;
18
19
  constructor(boMultiUploadService: BoMultiUploadService, applicationInfoService: ApplicationInfoService, confirmModalService: FoehnConfirmModalService, dictionaryService: SdkDictionaryService);
@@ -26,5 +27,5 @@ export declare class FoehnBoMultiUploadComponent extends AbstractFoehnUploaderCo
26
27
  private removeDocumentFromModel;
27
28
  private manageSingleFile;
28
29
  static ɵfac: i0.ɵɵFactoryDeclaration<FoehnBoMultiUploadComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<FoehnBoMultiUploadComponent, "foehn-bo-multi-upload", never, { "uploadUrl": "uploadUrl"; "deleteUrl": "deleteUrl"; "downloadUrl": "downloadUrl"; }, { "documentDeleted": "documentDeleted"; }, never, ["*"]>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<FoehnBoMultiUploadComponent, "foehn-bo-multi-upload", never, { "uploadUrl": "uploadUrl"; "deleteUrl": "deleteUrl"; "downloadUrl": "downloadUrl"; "shouldDisplayFileSavedConfirmation": "shouldDisplayFileSavedConfirmation"; }, { "documentDeleted": "documentDeleted"; }, never, ["*"]>;
30
31
  }
@@ -13,6 +13,7 @@ export declare class FoehnMultiUploadComponent extends AbstractFoehnUploaderComp
13
13
  protected dictionaryService: SdkDictionaryService;
14
14
  url: string;
15
15
  reference: string;
16
+ shouldDisplayFileSavedConfirmation: boolean;
16
17
  multiUploadService: MultiUploadService;
17
18
  pendingUploadService: PendingUploadService;
18
19
  private pendingUploadedErrorsSubscription;
@@ -32,5 +33,5 @@ export declare class FoehnMultiUploadComponent extends AbstractFoehnUploaderComp
32
33
  private displayErrorsFromServer;
33
34
  private manageSingleFile;
34
35
  static ɵfac: i0.ɵɵFactoryDeclaration<FoehnMultiUploadComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<FoehnMultiUploadComponent, "foehn-multi-upload", never, { "url": "url"; "reference": "reference"; }, {}, never, ["*"]>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<FoehnMultiUploadComponent, "foehn-multi-upload", never, { "url": "url"; "reference": "reference"; "shouldDisplayFileSavedConfirmation": "shouldDisplayFileSavedConfirmation"; }, {}, never, ["*"]>;
36
37
  }
@@ -20,7 +20,7 @@ export declare class MultiUploadService {
20
20
  private uniqPrefix;
21
21
  private uploaderHelper;
22
22
  constructor(httpClient: HttpClient, growlService: GrowlBrokerService, gesdemEventService: GesdemEventService, gesdemHandlerService: GesdemHandlerService, applicationInfoService: ApplicationInfoService, dictionaryService: SdkDictionaryService);
23
- uploadDocuments(baseUrl: string, formKey: string, label: string, files: File[], key: string, isMultiple: boolean, language: string): Observable<DocumentsWithErrors>;
23
+ uploadDocuments(baseUrl: string, formKey: string, label: string, files: File[], key: string, isMultiple: boolean, language: string, shouldDisplayFileSavedConfirmation: boolean): Observable<DocumentsWithErrors>;
24
24
  deleteDocument(baseUrl: string, document: DocumentReference): Observable<DocumentReference>;
25
25
  getDownloadUrl(baseUrl: string, document: DocumentReference): string;
26
26
  static ɵfac: i0.ɵɵFactoryDeclaration<MultiUploadService, never>;
@@ -16,7 +16,7 @@ export declare class PendingUploadService {
16
16
  get pendingUploadedErrors(): Observable<DocumentsWithErrors>;
17
17
  getPendingFiles(formKey: string): File[];
18
18
  hasPendingFiles(formKey?: string): boolean;
19
- addPendingFiles(baseUrl: string, formKey: string, label: string, files: File[], key: string, isMultiple: boolean): void;
19
+ addPendingFiles(baseUrl: string, formKey: string, label: string, files: File[], key: string, isMultiple: boolean, shouldDisplayFileSavedConfirmation: boolean): void;
20
20
  removePendingFile(file: File, formKey: string): void;
21
21
  private uploadPendingFilesAndSaveForm;
22
22
  private mergePendingUploadedServerResult;
@@ -18,6 +18,7 @@ export declare class FoehnPictureUploadComponent extends FoehnInputComponent<Doc
18
18
  croppedPictureFilename: string;
19
19
  resizeToWidth: number;
20
20
  resizeToHeight: number;
21
+ shouldDisplayFileSavedConfirmation: boolean;
21
22
  pictureToCrop: Event;
22
23
  croppedPictureAsBase64Url: string;
23
24
  loading: boolean;
@@ -35,5 +36,5 @@ export declare class FoehnPictureUploadComponent extends FoehnInputComponent<Doc
35
36
  get hasPicture(): boolean;
36
37
  refreshErrors(results: any[]): void;
37
38
  static ɵfac: i0.ɵɵFactoryDeclaration<FoehnPictureUploadComponent, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<FoehnPictureUploadComponent, "foehn-picture-upload", never, { "name": "name"; "key": "key"; "label": "label"; "baseUrl": "baseUrl"; "croppedPictureFilename": "croppedPictureFilename"; "resizeToWidth": "resizeToWidth"; "resizeToHeight": "resizeToHeight"; }, {}, never, ["*"]>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<FoehnPictureUploadComponent, "foehn-picture-upload", never, { "name": "name"; "key": "key"; "label": "label"; "baseUrl": "baseUrl"; "croppedPictureFilename": "croppedPictureFilename"; "resizeToWidth": "resizeToWidth"; "resizeToHeight": "resizeToHeight"; "shouldDisplayFileSavedConfirmation": "shouldDisplayFileSavedConfirmation"; }, {}, never, ["*"]>;
39
40
  }
@@ -5,4 +5,5 @@ export declare class PendingFiles {
5
5
  files: File[];
6
6
  key: string;
7
7
  isMultiple: boolean;
8
+ shouldDisplayFileSavedConfirmation: boolean;
8
9
  }
package/package.json CHANGED
@@ -36,7 +36,7 @@
36
36
  "ng-update": {
37
37
  "migrations": "./schematics/migration-collection.json"
38
38
  },
39
- "version": "14.5.14-beta4",
39
+ "version": "15.0.0-beta1",
40
40
  "main": "bundles/dsivd-prestations-ng.umd.js",
41
41
  "module": "fesm2015/dsivd-prestations-ng.js",
42
42
  "es2015": "fesm2015/dsivd-prestations-ng.js",
@@ -1,4 +1,4 @@
1
- import { ElementRef, OnInit } from '@angular/core';
1
+ import { OnInit } from '@angular/core';
2
2
  import { EPaymentService } from './sdk-epayment.service';
3
3
  import { ActivatedRoute } from '@angular/router';
4
4
  import { GesdemHandlerService } from '../gesdem/gesdem-handler.service';
@@ -13,7 +13,6 @@ export declare class SdkEpaymentComponent implements OnInit {
13
13
  private readonly route;
14
14
  private readonly gesDemService;
15
15
  private readonly gesdemEventService;
16
- ePaymentForm: ElementRef;
17
16
  baseUrl: string;
18
17
  platformFailureMessage: string;
19
18
  modalDisplayed: boolean;
@@ -25,19 +24,10 @@ export declare class SdkEpaymentComponent implements OnInit {
25
24
  * Déclenche le processus de paiement électronique. Le paiement est d'abord préparé avec GesDem, puis on navigue
26
25
  * vers la plateforme de paiement.
27
26
  *
28
- * @param ref La référence de la demande en cours
29
- * @param prenom Le prénom du payeur
30
- * @param nom Le nom de famille du payeur
31
- * @param adresse L'adresse postale du payeur
27
+ * @param reference La référence de la demande en cours
32
28
  */
33
- payNow(ref: string, prenom: string, nom: string, adresse: string): void;
29
+ payNow(reference: string): void;
34
30
  private handleFailure;
35
- /**
36
- * Prépare et soumet le formulaire HTML permettant de naviguer vers la plateforme de paiement électronique.
37
- *
38
- * @param param Objet retourné par GesDem contenant tous les paramètres nécessaires à la plateforme.
39
- */
40
- private jumpToPlatform;
41
31
  static ɵfac: i0.ɵɵFactoryDeclaration<SdkEpaymentComponent, never>;
42
32
  static ɵcmp: i0.ɵɵComponentDeclaration<SdkEpaymentComponent, "epayment-form", never, { "baseUrl": "baseUrl"; }, {}, never, never>;
43
33
  }
@@ -1,7 +1,5 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
- import { EPaymentRequest } from './model/EPaymentRequest';
3
2
  import { GrowlBrokerService } from '../foehn-growl/growl-broker.service';
4
- import { EPaymentParameters } from './model/EPaymentParameters';
5
3
  import { Observable } from 'rxjs';
6
4
  import * as i0 from "@angular/core";
7
5
  export declare class EPaymentService {
@@ -13,11 +11,10 @@ export declare class EPaymentService {
13
11
  * en vue du passage sur la plateforme de paiement électronique.
14
12
  *
15
13
  * @param ref La référence de la demande en cours
16
- * @param req Les paramètres de préparation
17
14
  * @param baseUrl L'url de base (optionnelle)
18
- * @returns Les paramètres de paiement électronique à utiliser sur la plateforme pour ce paiement.
15
+ * @returns la page de paiement sur laquelle rediriger l'utilisateur
19
16
  */
20
- createPendingPayment(ref: string, req: EPaymentRequest, baseUrl: string): Observable<EPaymentParameters>;
17
+ createPendingPayment(ref: string, baseUrl: string): Observable<string>;
21
18
  cancelPendingPayment(ref: string, baseUrl: string): void;
22
19
  private handleError;
23
20
  static ɵfac: i0.ɵɵFactoryDeclaration<EPaymentService, never>;
@@ -1,3 +0,0 @@
1
- export class EPaymentRequest {
2
- }
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVBheW1lbnRSZXF1ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcHJlc3RhdGlvbnMtbmcvc3JjL3Nkay1lcGF5bWVudC9tb2RlbC9FUGF5bWVudFJlcXVlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLGVBQWU7Q0FJM0IiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgRVBheW1lbnRSZXF1ZXN0IHtcbiAgICBmaXJzdE5hbWU6IHN0cmluZztcbiAgICBsYXN0TmFtZTogc3RyaW5nO1xuICAgIGFkZHJlc3M6IHN0cmluZztcbn1cbiJdfQ==
@@ -1,5 +0,0 @@
1
- export declare class EPaymentRequest {
2
- firstName: string;
3
- lastName: string;
4
- address: string;
5
- }