@dsivd/prestations-ng 15.0.0-beta2 → 15.0.0-beta3

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 (64) hide show
  1. package/CHANGELOG.md +33 -5
  2. package/UPGRADING_V14.md +4 -9
  3. package/dsivd-prestations-ng-v15.0.0-beta3.tgz +0 -0
  4. package/esm2020/foehn-confirm-modal/foehn-confirm-modal-content.mjs +1 -1
  5. package/esm2020/foehn-confirm-modal/foehn-confirm-modal.component.mjs +3 -3
  6. package/esm2020/foehn-input/foehn-input.component.mjs +1 -1
  7. package/esm2020/foehn-list/foehn-list.component.mjs +2 -4
  8. package/esm2020/foehn-menu-prestation/foehn-error-pill/foehn-error-pill.component.mjs +1 -1
  9. package/esm2020/foehn-navigation/foehn-navigation.service.mjs +4 -1
  10. package/esm2020/foehn-page/foehn-page.component.mjs +14 -11
  11. package/esm2020/foehn-page/foehn-page.module.mjs +8 -4
  12. package/esm2020/foehn-page/foehn-page.service.mjs +1 -1
  13. package/esm2020/foehn-status-progress-bar/foehn-status-progress-bar.component.mjs +37 -0
  14. package/esm2020/foehn-status-progress-bar/foehn-status-progress-bar.module.mjs +20 -0
  15. package/esm2020/foehn-table/foehn-table.component.mjs +2 -4
  16. package/esm2020/foehn-upload/abstract-foehn-uploader.component.mjs +1 -1
  17. package/esm2020/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.component.mjs +1 -1
  18. package/esm2020/foehn-upload/foehn-multi-upload/foehn-multi-upload.component.mjs +1 -1
  19. package/esm2020/foehn-upload/foehn-picture-upload/foehn-picture-upload.component.mjs +1 -1
  20. package/esm2020/foehn-upload/uploader.helper.mjs +1 -1
  21. package/esm2020/foehn-validation-alerts/foehn-validation-alerts.component.mjs +1 -1
  22. package/esm2020/form-error.mjs +2 -0
  23. package/esm2020/form-post-response.mjs +10 -0
  24. package/esm2020/gesdem/gesdem-event.service.mjs +1 -1
  25. package/esm2020/gesdem/gesdem-handler.service.mjs +3 -3
  26. package/esm2020/gesdem-action-recovery/gesdem-action-recovery.service.mjs +1 -1
  27. package/esm2020/helpers/object.helper.mjs +13 -12
  28. package/esm2020/index.mjs +6 -3
  29. package/esm2020/sdk-dictionary/default-dictionary.mjs +8 -2
  30. package/esm2020/sdk-epayment/sdk-epayment.service.mjs +2 -2
  31. package/esm2020/sdk-recaptcha/recaptcha.service.mjs +1 -1
  32. package/esm2020/sdk-recaptcha/sdk-recaptcha.component.mjs +1 -1
  33. package/esm2020/sdk-session-info/session-info-data.mjs +1 -1
  34. package/esm2020/validation/validation-handler.service.mjs +1 -1
  35. package/fesm2015/dsivd-prestations-ng.mjs +83 -31
  36. package/fesm2015/dsivd-prestations-ng.mjs.map +1 -1
  37. package/fesm2020/dsivd-prestations-ng.mjs +82 -31
  38. package/fesm2020/dsivd-prestations-ng.mjs.map +1 -1
  39. package/foehn-confirm-modal/foehn-confirm-modal-content.d.ts +1 -0
  40. package/foehn-input/foehn-input.component.d.ts +2 -2
  41. package/foehn-navigation/foehn-navigation.service.d.ts +1 -0
  42. package/foehn-page/foehn-page.component.d.ts +2 -1
  43. package/foehn-page/foehn-page.module.d.ts +2 -1
  44. package/foehn-page/foehn-page.service.d.ts +2 -2
  45. package/foehn-status-progress-bar/foehn-status-progress-bar.component.d.ts +19 -0
  46. package/foehn-status-progress-bar/foehn-status-progress-bar.module.d.ts +10 -0
  47. package/foehn-upload/abstract-foehn-uploader.component.d.ts +2 -2
  48. package/foehn-upload/uploader.helper.d.ts +5 -5
  49. package/foehn-validation-alerts/foehn-validation-alerts.component.d.ts +3 -3
  50. package/{error-template.d.ts → form-error.d.ts} +1 -1
  51. package/form-post-response.d.ts +17 -0
  52. package/gesdem/gesdem-event.service.d.ts +5 -5
  53. package/gesdem/gesdem-handler.service.d.ts +2 -2
  54. package/gesdem-action-recovery/gesdem-action-recovery.service.d.ts +2 -2
  55. package/index.d.ts +4 -2
  56. package/package.json +1 -1
  57. package/sdk-recaptcha/recaptcha.service.d.ts +2 -2
  58. package/sdk-recaptcha/sdk-recaptcha.component.d.ts +2 -2
  59. package/sdk-session-info/session-info-data.d.ts +0 -1
  60. package/validation/validation-handler.service.d.ts +4 -4
  61. package/backend-response.d.ts +0 -18
  62. package/dsivd-prestations-ng-v15.0.0-beta2.tgz +0 -0
  63. package/esm2020/backend-response.mjs +0 -10
  64. package/esm2020/error-template.mjs +0 -2
@@ -3,4 +3,5 @@ export declare class FoehnConfirmModalContent {
3
3
  htmlContent: string;
4
4
  okButtonLabel?: string;
5
5
  cancelButtonLabel?: string;
6
+ closeable?: boolean;
6
7
  }
@@ -1,6 +1,6 @@
1
1
  import { ElementRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
2
2
  import { NgModel } from '@angular/forms';
3
- import { ErrorTemplate } from '../error-template';
3
+ import { FormError } from '../form-error';
4
4
  import { Observable } from 'rxjs';
5
5
  import { ValidationHandlerService } from '../validation/validation-handler.service';
6
6
  import * as i0 from "@angular/core";
@@ -65,7 +65,7 @@ export declare abstract class FoehnInputComponent<T> implements OnInit, OnDestro
65
65
  private userInputObservable;
66
66
  private userInputSubscription;
67
67
  constructor();
68
- get errors(): ErrorTemplate[];
68
+ get errors(): FormError[];
69
69
  get model(): T;
70
70
  set model(value: T);
71
71
  ngOnInit(): void;
@@ -21,6 +21,7 @@ export declare class FoehnNavigationService {
21
21
  private initializedAndRouteActivated;
22
22
  private linearRouting;
23
23
  constructor(router: Router, gesdemService: GesdemHandlerService, gesdemActionRecoveryService: GesdemActionRecoveryService, route: ActivatedRoute, location: Location);
24
+ get initialized(): boolean;
24
25
  set activatedRoute(value: ActivatedRoute);
25
26
  static getRootRouteRecursive(route: ActivatedRouteSnapshot): Route;
26
27
  initRoute(route: Route): void;
@@ -33,6 +33,7 @@ export declare class FoehnPageComponent implements OnDestroy, OnChanges, OnInit
33
33
  supportAlertUrl: string;
34
34
  etapeId: string;
35
35
  userConnectedAsDisplayed: boolean;
36
+ statusProgressBarHidden: boolean;
36
37
  confirmLeavingAlert: FoehnConfirmModalContent;
37
38
  /**
38
39
  * If set to 'false', hide the default Contact link in the footer.
@@ -67,7 +68,7 @@ export declare class FoehnPageComponent implements OnDestroy, OnChanges, OnInit
67
68
  getFullLoginMessage(decisionElectroniqueAvailable: boolean): Observable<string>;
68
69
  private setPageTitle;
69
70
  static ɵfac: i0.ɵɵFactoryDeclaration<FoehnPageComponent, never>;
70
- static ɵcmp: i0.ɵɵComponentDeclaration<FoehnPageComponent, "foehn-page", never, { "appTitle": "appTitle"; "footerLinks": "footerLinks"; "neverConnected": "neverConnected"; "supportAlertEnabled": "supportAlertEnabled"; "supportAlertUrl": "supportAlertUrl"; "etapeId": "etapeId"; "userConnectedAsDisplayed": "userConnectedAsDisplayed"; "confirmLeavingAlert": "confirmLeavingAlert"; "showDefaultContactFooterLink": "showDefaultContactFooterLink"; "showDefaultGuideFooterLink": "showDefaultGuideFooterLink"; "showDefaultTermOfUseLink": "showDefaultTermOfUseLink"; "showDefaultSecurityBestPracticeLink": "showDefaultSecurityBestPracticeLink"; }, {}, never, ["*"]>;
71
+ static ɵcmp: i0.ɵɵComponentDeclaration<FoehnPageComponent, "foehn-page", never, { "appTitle": "appTitle"; "footerLinks": "footerLinks"; "neverConnected": "neverConnected"; "supportAlertEnabled": "supportAlertEnabled"; "supportAlertUrl": "supportAlertUrl"; "etapeId": "etapeId"; "userConnectedAsDisplayed": "userConnectedAsDisplayed"; "statusProgressBarHidden": "statusProgressBarHidden"; "confirmLeavingAlert": "confirmLeavingAlert"; "showDefaultContactFooterLink": "showDefaultContactFooterLink"; "showDefaultGuideFooterLink": "showDefaultGuideFooterLink"; "showDefaultTermOfUseLink": "showDefaultTermOfUseLink"; "showDefaultSecurityBestPracticeLink": "showDefaultSecurityBestPracticeLink"; }, {}, never, ["*"]>;
71
72
  }
72
73
  export declare class DisplayLoginMessagesData {
73
74
  decisionElectroniqueAvailable: boolean;
@@ -13,8 +13,9 @@ import * as i11 from "../sdk-support-alert/support-alert.module";
13
13
  import * as i12 from "../foehn-confirm-modal/foehn-confirm-modal.module";
14
14
  import * as i13 from "../foehn-icons/foehn-icons.module";
15
15
  import * as i14 from "../sdk-dictionary/sdk-dictionary.module";
16
+ import * as i15 from "../foehn-status-progress-bar/foehn-status-progress-bar.module";
16
17
  export declare class FoehnPageModule {
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<FoehnPageModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<FoehnPageModule, [typeof i1.FoehnPageComponent, typeof i2.FoehnPageCounterComponent, typeof i3.FoehnPageModalComponent], [typeof i4.CommonModule, typeof i5.FoehnBreadcrumbModule, typeof i6.FoehnGrowlModule, typeof i7.FoehnHeaderModule, typeof i8.FoehnModalModule, typeof i9.FoehnFooterModule, typeof i10.FoehnUserConnectedAsModule, typeof i11.SupportAlertModule, typeof i12.FoehnConfirmModalModule, typeof i13.FoehnIconsModule, typeof i14.SdkDictionaryModule], [typeof i1.FoehnPageComponent, typeof i2.FoehnPageCounterComponent, typeof i3.FoehnPageModalComponent]>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FoehnPageModule, [typeof i1.FoehnPageComponent, typeof i2.FoehnPageCounterComponent, typeof i3.FoehnPageModalComponent], [typeof i4.CommonModule, typeof i5.FoehnBreadcrumbModule, typeof i6.FoehnGrowlModule, typeof i7.FoehnHeaderModule, typeof i8.FoehnModalModule, typeof i9.FoehnFooterModule, typeof i10.FoehnUserConnectedAsModule, typeof i11.SupportAlertModule, typeof i12.FoehnConfirmModalModule, typeof i13.FoehnIconsModule, typeof i14.SdkDictionaryModule, typeof i15.FoehnStatusProgressBarModule], [typeof i1.FoehnPageComponent, typeof i2.FoehnPageCounterComponent, typeof i3.FoehnPageModalComponent]>;
19
20
  static ɵinj: i0.ɵɵInjectorDeclaration<FoehnPageModule>;
20
21
  }
@@ -1,5 +1,5 @@
1
1
  import { Observable } from 'rxjs';
2
- import { BackendResponse } from '../backend-response';
2
+ import { FormPostResponse } from '../form-post-response';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class FoehnPageService {
5
5
  private _foehnPageSubject;
@@ -13,7 +13,7 @@ export declare class FoehnPageService {
13
13
  saveFormRequest(): Observable<void>;
14
14
  setCurrentEtapeId(etapeId: string): void;
15
15
  onEtapeIdChange(): Observable<string>;
16
- isUserCategoryVisible(isFirstPage: boolean, isLastPage: boolean, isUserCategoryEnabled: boolean, isInitialStep: boolean, isUserNeverConnected: boolean, backendResponse: BackendResponse<any>, isCurrentRouteDefined: boolean): boolean;
16
+ isUserCategoryVisible(isFirstPage: boolean, isLastPage: boolean, isUserCategoryEnabled: boolean, isInitialStep: boolean, isUserNeverConnected: boolean, backendResponse: FormPostResponse<any>, isCurrentRouteDefined: boolean): boolean;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<FoehnPageService, never>;
18
18
  static ɵprov: i0.ɵɵInjectableDeclaration<FoehnPageService>;
19
19
  }
@@ -0,0 +1,19 @@
1
+ import { FoehnNavigationService } from '../foehn-navigation/foehn-navigation.service';
2
+ import { ActivatedRoute } from '@angular/router';
3
+ import { GesdemEventService } from '../gesdem/gesdem-event.service';
4
+ import { Observable } from 'rxjs';
5
+ import { GesdemHandlerService } from '../gesdem/gesdem-handler.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class FoehnStatusProgressBarComponent {
8
+ protected activatedRoute: ActivatedRoute;
9
+ private navigation;
10
+ private gesdemEventService;
11
+ private gesdemHand;
12
+ hidden: boolean;
13
+ isTransmitted: Observable<boolean>;
14
+ constructor(activatedRoute: ActivatedRoute, navigation: FoehnNavigationService, gesdemEventService: GesdemEventService, gesdemHand: GesdemHandlerService);
15
+ isEnabled(): boolean;
16
+ isStepVerificationActive(): boolean;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<FoehnStatusProgressBarComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<FoehnStatusProgressBarComponent, "foehn-status-progress-bar", never, { "hidden": "hidden"; }, {}, never, never>;
19
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./foehn-status-progress-bar.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/router";
5
+ import * as i4 from "../sdk-dictionary/sdk-dictionary.module";
6
+ export declare class FoehnStatusProgressBarModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<FoehnStatusProgressBarModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FoehnStatusProgressBarModule, [typeof i1.FoehnStatusProgressBarComponent], [typeof i2.CommonModule, typeof i3.RouterModule, typeof i4.SdkDictionaryModule], [typeof i1.FoehnStatusProgressBarComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<FoehnStatusProgressBarModule>;
10
+ }
@@ -6,7 +6,7 @@ import { ApplicationInfoService } from '../sdk-appinfo/application-info.service'
6
6
  import { FoehnConfirmModalService } from '../foehn-confirm-modal/foehn-confirm-modal.service';
7
7
  import { SdkDictionaryService } from '../sdk-dictionary/sdk-dictionary.service';
8
8
  import { DocumentReference } from './document-reference';
9
- import { ErrorTemplate } from '../error-template';
9
+ import { FormError } from '../form-error';
10
10
  import * as i0 from "@angular/core";
11
11
  export declare abstract class AbstractFoehnUploaderComponent<T> extends FoehnInputComponent<T> implements OnInit, OnDestroy {
12
12
  protected applicationInfoService: ApplicationInfoService;
@@ -53,7 +53,7 @@ export declare abstract class AbstractFoehnUploaderComponent<T> extends FoehnInp
53
53
  onDragover(event: any): void;
54
54
  hasLiveUploadErrors(): boolean;
55
55
  protected removeFileOnConfirmation(document: any): void;
56
- protected displayLocalErrors(files: File[]): ErrorTemplate[];
56
+ protected displayLocalErrors(files: File[]): FormError[];
57
57
  static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFoehnUploaderComponent<any>, never>;
58
58
  static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFoehnUploaderComponent<any>, never, never, { "required": "required"; "dragAndDrop": "dragAndDrop"; "showUploadButton": "showUploadButton"; "readonly": "readonly"; "hideGlobalInfos": "hideGlobalInfos"; "multiple": "multiple"; "key": "key"; "chooseButtonLabel": "chooseButtonLabel"; "chooseButtonLabelMultiple": "chooseButtonLabelMultiple"; "dropZoneLabel": "dropZoneLabel"; "dropZoneLabelMultiple": "dropZoneLabelMultiple"; "overrideAcceptedExtensions": "overrideAcceptedExtensions"; "overrideMaxSizeInMo": "overrideMaxSizeInMo"; "overrideMaxFileNameLength": "overrideMaxFileNameLength"; "overrideIllegalCharacters": "overrideIllegalCharacters"; "showDeleteConfirmationMessage": "showDeleteConfirmationMessage"; "deleteConfirmationMessage": "deleteConfirmationMessage"; }, {}, never>;
59
59
  }
@@ -1,4 +1,4 @@
1
- import { ErrorTemplate } from '../error-template';
1
+ import { FormError } from '../form-error';
2
2
  import { SdkDictionaryService } from '../sdk-dictionary/sdk-dictionary.service';
3
3
  import { ApplicationInfoService } from '../sdk-appinfo/application-info.service';
4
4
  import { DocumentReferenceWithFile } from './document-reference';
@@ -30,8 +30,8 @@ export declare class UploaderHelper {
30
30
  isFileExtensionValid(fileExtension: string, overrideAcceptedExtensions: string): boolean;
31
31
  getUniqueErrorByCode(name: string, errorCode: string, fileName: string, customErrors: {
32
32
  [key: string]: string;
33
- }, overrideMaxSizeInMo: number, overrideAcceptedExtensions: string, overrideMaxFileNameLength: number, overrideIllegalCharacters: string): ErrorTemplate;
34
- addCustomErrorOrDefault(name: string, destinationErrors: ErrorTemplate[], errorCode: string, fileName: string, customErrors: {
33
+ }, overrideMaxSizeInMo: number, overrideAcceptedExtensions: string, overrideMaxFileNameLength: number, overrideIllegalCharacters: string): FormError;
34
+ addCustomErrorOrDefault(name: string, destinationErrors: FormError[], errorCode: string, fileName: string, customErrors: {
35
35
  [key: string]: string;
36
36
  }, overrideMaxSizeInMo: number, overrideAcceptedExtensions: string, overrideMaxFileNameLength: number, overrideIllegalCharacters: string): void;
37
37
  createDefaultCustomErrors(customErrors: {
@@ -39,8 +39,8 @@ export declare class UploaderHelper {
39
39
  }): void;
40
40
  getLocalErrors(name: string, files: File[], customErrors: {
41
41
  [key: string]: string;
42
- }, overrideMaxSizeInMo: number, overrideAcceptedExtensions: string, overrideMaxFileNameLength: number, overrideIllegalCharacters: string): ErrorTemplate[];
43
- hasLiveUploadErrors(errors: ErrorTemplate[]): boolean;
42
+ }, overrideMaxSizeInMo: number, overrideAcceptedExtensions: string, overrideMaxFileNameLength: number, overrideIllegalCharacters: string): FormError[];
43
+ hasLiveUploadErrors(errors: FormError[]): boolean;
44
44
  preventAndStop(event: any): void;
45
45
  getAllFilesCount(data: any): string;
46
46
  getAllFilesSizeInMo(data: any): string;
@@ -1,5 +1,5 @@
1
1
  import { FoehnInputComponent } from '../foehn-input/foehn-input.component';
2
- import { ErrorTemplate } from '../error-template';
2
+ import { FormError } from '../form-error';
3
3
  import { ValidationHandlerService } from '../validation/validation-handler.service';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class FoehnValidationAlertsComponent {
@@ -7,8 +7,8 @@ export declare class FoehnValidationAlertsComponent {
7
7
  component: FoehnInputComponent<any>;
8
8
  shouldErrorsBeLive: boolean;
9
9
  constructor(validationHandlerService: ValidationHandlerService);
10
- get errorMessages(): ErrorTemplate[];
11
- getMessage(error: ErrorTemplate): string;
10
+ get errorMessages(): FormError[];
11
+ getMessage(error: FormError): string;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<FoehnValidationAlertsComponent, never>;
13
13
  static ɵcmp: i0.ɵɵComponentDeclaration<FoehnValidationAlertsComponent, "foehn-validation-alerts", never, { "component": "component"; "shouldErrorsBeLive": "shouldErrorsBeLive"; }, {}, never, never>;
14
14
  }
@@ -1,4 +1,4 @@
1
- export interface ErrorTemplate {
1
+ export interface FormError {
2
2
  name: string;
3
3
  code: string;
4
4
  message: string;
@@ -0,0 +1,17 @@
1
+ import { FormError } from './form-error';
2
+ import { I18nForm } from './i18n-form';
3
+ export declare class FormMetadata {
4
+ reference: string;
5
+ currentAction: number;
6
+ referenceInterne: string;
7
+ critical: boolean;
8
+ initialisationDateTime: string;
9
+ transfertDateTime: string;
10
+ modificationDateTime: string;
11
+ statut: string;
12
+ }
13
+ export declare class FormPostResponse<T extends I18nForm> {
14
+ form: T;
15
+ errors: FormError[];
16
+ meta: FormMetadata;
17
+ }
@@ -1,16 +1,16 @@
1
1
  import { Subject, Observable } from 'rxjs';
2
- import { BackendResponse } from '../backend-response';
2
+ import { FormPostResponse } from '../form-post-response';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class GesdemEventService {
5
5
  private _formInitializationSubject;
6
6
  private _formTransmittedSubject;
7
7
  private _formSentSubject;
8
8
  get formInitializationSubject(): Subject<any>;
9
- get formTransmittedSubject(): Subject<BackendResponse<any>>;
10
- get formSentSubject(): Subject<BackendResponse<any>>;
9
+ get formTransmittedSubject(): Subject<FormPostResponse<any>>;
10
+ get formSentSubject(): Subject<FormPostResponse<any>>;
11
11
  formInitializationObservable(): Observable<any>;
12
- formTransmittedObservable(): Observable<BackendResponse<any>>;
13
- formSentObservable(): Observable<BackendResponse<any>>;
12
+ formTransmittedObservable(): Observable<FormPostResponse<any>>;
13
+ formSentObservable(): Observable<FormPostResponse<any>>;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<GesdemEventService, never>;
15
15
  static ɵprov: i0.ɵɵInjectableDeclaration<GesdemEventService>;
16
16
  }
@@ -1,6 +1,6 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { HttpClient } from '@angular/common/http';
3
- import { BackendResponse } from '../backend-response';
3
+ import { FormPostResponse } from '../form-post-response';
4
4
  import { GrowlBrokerService } from '../foehn-growl/growl-broker.service';
5
5
  import { ActivatedRoute, Router } from '@angular/router';
6
6
  import { ValidationHandlerService } from '../validation/validation-handler.service';
@@ -20,7 +20,7 @@ export declare class GesdemHandlerService {
20
20
  private _lastResponse;
21
21
  private _captchaToken;
22
22
  constructor(http: HttpClient, growlService: GrowlBrokerService, validationHandlerService: ValidationHandlerService, router: Router, route: ActivatedRoute, errorHandlerService: GesdemErrorHandlerService, sessionInfo: SessionInfo);
23
- get lastResponse(): BackendResponse<any>;
23
+ get lastResponse(): FormPostResponse<any>;
24
24
  get updateFormDataSubject(): Observable<any>;
25
25
  get prefix(): string;
26
26
  set prefix(prefix: string);
@@ -2,7 +2,7 @@ import { Observable } from 'rxjs';
2
2
  import { HttpClient } from '@angular/common/http';
3
3
  import { GrowlBrokerService } from '../foehn-growl/growl-broker.service';
4
4
  import { RepriseInfo } from './reprise-info';
5
- import { ErrorTemplate } from '../error-template';
5
+ import { FormError } from '../form-error';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class GesdemActionRecoveryService {
8
8
  private http;
@@ -10,7 +10,7 @@ export declare class GesdemActionRecoveryService {
10
10
  _prefix: string;
11
11
  constructor(http: HttpClient, growlService: GrowlBrokerService);
12
12
  set prefix(prefix: string);
13
- registerForRecovery(reference: string, info: RepriseInfo): Observable<ErrorTemplate[]>;
13
+ registerForRecovery(reference: string, info: RepriseInfo): Observable<FormError[]>;
14
14
  getDefaultRecoveryValue(reference: string): Observable<RepriseInfo>;
15
15
  startRecovery(reference: string): Observable<string>;
16
16
  checkRecoveryPassword(reference: string, otp: string): Observable<boolean>;
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from './prestations-ng-core.module';
2
2
  export * from './abstract-page-component';
3
- export * from './backend-response';
3
+ export * from './form-post-response';
4
4
  export * from './i18n-form';
5
5
  export * from './gesdem-error/gesdem-error.component';
6
6
  export * from './foehn-notfound/foehn-notfound.component';
@@ -22,6 +22,8 @@ export * from './foehn-header/foehn-header.component';
22
22
  export * from './foehn-header/foehn-header.module';
23
23
  export * from './foehn-header/foehn-skip-link.component';
24
24
  export * from './foehn-footer/footer-link.type';
25
+ export * from './foehn-status-progress-bar/foehn-status-progress-bar.component';
26
+ export * from './foehn-status-progress-bar/foehn-status-progress-bar.module';
25
27
  export * from './foehn-address/foehn-address.module';
26
28
  export * from './foehn-address/foehn-input-address.component';
27
29
  export * from './foehn-address/foehn-display-address.component';
@@ -118,7 +120,7 @@ export * from './gesdem-confirmation/gesdem-confirmation.module';
118
120
  export * from './foehn-notfound/foehn-notfound.module';
119
121
  export * from './foehn-form/foehn-form.module';
120
122
  export * from './foehn-form/foehn-form.component';
121
- export * from './error-template';
123
+ export * from './form-error';
122
124
  export * from './foehn-user-connected-as/foehn-user-connected-as.component';
123
125
  export * from './foehn-user-connected-as/foehn-user-connected-as.module';
124
126
  export * from './foehn-upload/document-reference';
package/package.json CHANGED
@@ -36,7 +36,7 @@
36
36
  "ng-update": {
37
37
  "migrations": "./schematics/migration-collection.json"
38
38
  },
39
- "version": "15.0.0-beta2",
39
+ "version": "15.0.0-beta3",
40
40
  "module": "fesm2015/dsivd-prestations-ng.mjs",
41
41
  "es2020": "fesm2020/dsivd-prestations-ng.mjs",
42
42
  "esm2020": "esm2020/dsivd-prestations-ng.mjs",
@@ -2,7 +2,7 @@ import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { SessionInfo } from '../sdk-session-info/session-info.service';
4
4
  import { ActivatedRoute } from '@angular/router';
5
- import { ErrorTemplate } from '../error-template';
5
+ import { FormError } from '../form-error';
6
6
  import { ValidationHandlerService } from '../validation/validation-handler.service';
7
7
  import { GesdemEventService } from '../gesdem/gesdem-event.service';
8
8
  import { GesdemHandlerService } from '../gesdem/gesdem-handler.service';
@@ -27,7 +27,7 @@ export declare class RecaptchaService {
27
27
  onSuccess(token: string): void;
28
28
  addError(message: string): void;
29
29
  clearErrors(): void;
30
- getErrors(): Observable<ErrorTemplate[]>;
30
+ getErrors(): Observable<FormError[]>;
31
31
  getShouldDisplay(): Observable<boolean>;
32
32
  getPublicKey(): Observable<string>;
33
33
  getToken(): string;
@@ -1,7 +1,7 @@
1
1
  import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { RecaptchaService } from './recaptcha.service';
4
- import { ErrorTemplate } from '../error-template';
4
+ import { FormError } from '../form-error';
5
5
  import { GrecaptchaComponent } from './grecaptcha/grecaptcha.component';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class SdkRecaptchaComponent implements OnInit, OnDestroy {
@@ -11,7 +11,7 @@ export declare class SdkRecaptchaComponent implements OnInit, OnDestroy {
11
11
  shouldDisplay: Observable<boolean>;
12
12
  isLoaded: boolean;
13
13
  hasLoadingError: boolean;
14
- errors: Observable<ErrorTemplate[]>;
14
+ errors: Observable<FormError[]>;
15
15
  publicKey: Observable<string>;
16
16
  private errorsSubscription;
17
17
  private forceDetectChange;
@@ -9,7 +9,6 @@ export declare class SessionInfoData {
9
9
  lastName: string;
10
10
  birthDate: string;
11
11
  birthDateAsLocalDate: number[];
12
- email: string;
13
12
  espaceId: string;
14
13
  espaceLabel: string;
15
14
  businessId: string;
@@ -1,15 +1,15 @@
1
- import { ErrorTemplate } from '../error-template';
1
+ import { FormError } from '../form-error';
2
2
  import { Observable } from 'rxjs';
3
3
  import { FoehnInputComponent } from '../foehn-input/foehn-input.component';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ValidationHandlerService {
6
6
  private _validationErrorsSubject;
7
7
  private _validationDisplaySubject;
8
- get validationErrorsSubject(): Observable<ErrorTemplate[]>;
8
+ get validationErrorsSubject(): Observable<FormError[]>;
9
9
  get validationDisplaySubject(): Observable<boolean>;
10
- updateErrors(errors: ErrorTemplate[]): void;
10
+ updateErrors(errors: FormError[]): void;
11
11
  shouldDisplayErrors(display: boolean): void;
12
- getMessage(component: FoehnInputComponent<any>, error: ErrorTemplate): string;
12
+ getMessage(component: FoehnInputComponent<any>, error: FormError): string;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ValidationHandlerService, never>;
14
14
  static ɵprov: i0.ɵɵInjectableDeclaration<ValidationHandlerService>;
15
15
  }
@@ -1,18 +0,0 @@
1
- import { ErrorTemplate } from './error-template';
2
- import { I18nForm } from './i18n-form';
3
- export declare class GesdemMeta {
4
- reference: string;
5
- currentAction: number;
6
- referenceInterne: string;
7
- critical: boolean;
8
- initialisationDate: string;
9
- initialisationDateTime: string;
10
- transfertDate: string;
11
- transfertDateTime: string;
12
- statut: string;
13
- }
14
- export declare class BackendResponse<T extends I18nForm> {
15
- form: T;
16
- errors: ErrorTemplate[];
17
- meta: GesdemMeta;
18
- }
@@ -1,10 +0,0 @@
1
- // eslint-disable max-classes-per-file
2
- export class GesdemMeta {
3
- }
4
- export class BackendResponse {
5
- constructor() {
6
- this.errors = [];
7
- this.meta = new GesdemMeta();
8
- }
9
- }
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFja2VuZC1yZXNwb25zZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3ByZXN0YXRpb25zLW5nL3NyYy9iYWNrZW5kLXJlc3BvbnNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdBLHNDQUFzQztBQUN0QyxNQUFNLE9BQU8sVUFBVTtDQVV0QjtBQUVELE1BQU0sT0FBTyxlQUFlO0lBQTVCO1FBRUksV0FBTSxHQUFvQixFQUFFLENBQUM7UUFDN0IsU0FBSSxHQUFHLElBQUksVUFBVSxFQUFFLENBQUM7SUFDNUIsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRXJyb3JUZW1wbGF0ZSB9IGZyb20gJy4vZXJyb3ItdGVtcGxhdGUnO1xuaW1wb3J0IHsgSTE4bkZvcm0gfSBmcm9tICcuL2kxOG4tZm9ybSc7XG5cbi8vIGVzbGludC1kaXNhYmxlIG1heC1jbGFzc2VzLXBlci1maWxlXG5leHBvcnQgY2xhc3MgR2VzZGVtTWV0YSB7XG4gICAgcmVmZXJlbmNlOiBzdHJpbmc7XG4gICAgY3VycmVudEFjdGlvbjogbnVtYmVyO1xuICAgIHJlZmVyZW5jZUludGVybmU6IHN0cmluZztcbiAgICBjcml0aWNhbDogYm9vbGVhbjtcbiAgICBpbml0aWFsaXNhdGlvbkRhdGU6IHN0cmluZztcbiAgICBpbml0aWFsaXNhdGlvbkRhdGVUaW1lOiBzdHJpbmc7XG4gICAgdHJhbnNmZXJ0RGF0ZTogc3RyaW5nO1xuICAgIHRyYW5zZmVydERhdGVUaW1lOiBzdHJpbmc7XG4gICAgc3RhdHV0OiBzdHJpbmc7XG59XG5cbmV4cG9ydCBjbGFzcyBCYWNrZW5kUmVzcG9uc2U8VCBleHRlbmRzIEkxOG5Gb3JtPiB7XG4gICAgZm9ybTogVDtcbiAgICBlcnJvcnM6IEVycm9yVGVtcGxhdGVbXSA9IFtdO1xuICAgIG1ldGEgPSBuZXcgR2VzZGVtTWV0YSgpO1xufVxuIl19
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItdGVtcGxhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9wcmVzdGF0aW9ucy1uZy9zcmMvZXJyb3ItdGVtcGxhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgRXJyb3JUZW1wbGF0ZSB7XG4gICAgbmFtZTogc3RyaW5nO1xuICAgIGNvZGU6IHN0cmluZztcbiAgICBtZXNzYWdlOiBzdHJpbmc7XG59XG4iXX0=