@dsivd/prestations-ng 19.2.0-beta.10 → 19.2.0-beta.11

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/package.json CHANGED
@@ -39,7 +39,7 @@
39
39
  "ng-update": {
40
40
  "migrations": "./schematics/migration-collection.json"
41
41
  },
42
- "version": "19.2.0-beta.10",
42
+ "version": "19.2.0-beta.11",
43
43
  "module": "fesm2022/dsivd-prestations-ng.mjs",
44
44
  "typings": "types/dsivd-prestations-ng.d.ts",
45
45
  "exports": {
@@ -1,5 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { OnInit, AfterViewInit, Signal, ElementRef, DestroyRef, OnDestroy, InjectionToken, OnChanges, SimpleChanges, EnvironmentProviders, Injector, SimpleChange, AfterViewChecked, PipeTransform, TemplateRef, TrackByFunction, ErrorHandler, NgZone } from '@angular/core';
2
+ import { ElementRef, OnInit, AfterViewInit, Signal, DestroyRef, OnDestroy, InjectionToken, OnChanges, SimpleChanges, EnvironmentProviders, Injector, SimpleChange, AfterViewChecked, PipeTransform, TemplateRef, TrackByFunction, ErrorHandler, NgZone } from '@angular/core';
3
3
  import { Params, Route, ActivatedRoute, ActivatedRouteSnapshot, CanActivateFn, Router, QueryParamsHandling } from '@angular/router';
4
4
  import { Observable, Subject, BehaviorSubject } from 'rxjs';
5
5
  import { NgModel, NgForm } from '@angular/forms';
@@ -75,12 +75,38 @@ declare class BreadcrumbEventService {
75
75
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<BreadcrumbEventService>;
76
76
  }
77
77
 
78
+ type FoehnModalSize = '' | 'modal-sm' | 'modal-md' | 'modal-lg' | 'modal-xl';
79
+ declare class FoehnModalComponent {
80
+ readonly isModalVisible: _angular_core.ModelSignal<boolean>;
81
+ readonly id: _angular_core.InputSignal<string | undefined>;
82
+ readonly modalBodyText: _angular_core.InputSignal<string | undefined>;
83
+ readonly modalHeaderText: _angular_core.InputSignal<string | undefined>;
84
+ readonly closeable: _angular_core.InputSignal<boolean>;
85
+ readonly draggable: _angular_core.InputSignal<boolean>;
86
+ readonly hideable: _angular_core.InputSignal<boolean>;
87
+ readonly modalTriggerHtmlElement: _angular_core.InputSignal<HTMLElement | undefined>;
88
+ readonly name: _angular_core.InputSignal<string | undefined>;
89
+ readonly modalSize: _angular_core.InputSignal<FoehnModalSize | undefined>;
90
+ readonly modalBody: _angular_core.Signal<ElementRef<any> | undefined>;
91
+ readonly modalTitle: _angular_core.Signal<ElementRef<any> | undefined>;
92
+ readonly specificfooter: _angular_core.Signal<ElementRef<any> | undefined>;
93
+ readonly modalDefaultCloseBtn: _angular_core.Signal<ElementRef<any> | undefined>;
94
+ private readonly injector;
95
+ private previousIsVisible;
96
+ private readonly visibilityEffect;
97
+ handleKeyboardEvent(event: KeyboardEvent): void;
98
+ private focusOnContainer;
99
+ private focusOnModalTrigger;
100
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnModalComponent, never>;
101
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnModalComponent, "foehn-modal", never, { "isModalVisible": { "alias": "isModalVisible"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "modalBodyText": { "alias": "modalBodyText"; "required": false; "isSignal": true; }; "modalHeaderText": { "alias": "modalHeaderText"; "required": false; "isSignal": true; }; "closeable": { "alias": "closeable"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "hideable": { "alias": "hideable"; "required": false; "isSignal": true; }; "modalTriggerHtmlElement": { "alias": "modalTriggerHtmlElement"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "modalSize": { "alias": "modalSize"; "required": false; "isSignal": true; }; }, { "isModalVisible": "isModalVisibleChange"; }, never, ["*", "[modal-footer]"], true, never>;
102
+ }
103
+
78
104
  interface HelpModal {
79
105
  buttonTitle?: string;
80
106
  title: string;
81
107
  body?: string;
82
108
  images?: Image[];
83
- modalSize?: string;
109
+ modalSize?: FoehnModalSize;
84
110
  }
85
111
  interface Image {
86
112
  src?: string;
@@ -297,6 +323,8 @@ declare class FoehnNavigationService {
297
323
  private isInit;
298
324
  private readonly initializedAndRouteActivated;
299
325
  private linearRouting;
326
+ private readonly pendingNavigationDirectionSubject;
327
+ private lastNavigationId;
300
328
  get initialized(): boolean;
301
329
  set activatedRoute(value: ActivatedRoute);
302
330
  static getRootRouteRecursive(route: ActivatedRouteSnapshot | null): Route | null;
@@ -306,6 +334,12 @@ declare class FoehnNavigationService {
306
334
  getFirstRoute(): Route;
307
335
  current(): Promise<boolean>;
308
336
  hasBeenInitialized(): Observable<boolean>;
337
+ /**
338
+ * Direction of the navigation started with next() or previous() until it ends, null otherwise.
339
+ * The current page stays displayed while the target one is activated (e.g. lazy loaded route).
340
+ * @returns Observable<NavigationDirection | null>
341
+ */
342
+ pendingNavigationDirection(): Observable<NavigationDirection | null>;
309
343
  getQueryParamsToForwardAsString(): string;
310
344
  getQueryParamsToForward(): Params | null;
311
345
  next(): Promise<boolean>;
@@ -549,6 +583,7 @@ declare abstract class AbstractPageComponent<T extends I18nForm> implements OnIn
549
583
  private readonly _pendingUploadService;
550
584
  private readonly _transmitConcurrentSafe;
551
585
  private _gesdemSaveSubscription;
586
+ private _isNavigatingToNextPage;
552
587
  private readonly _registerNgModelService;
553
588
  private readonly _pageTitle;
554
589
  constructor();
@@ -561,6 +596,14 @@ declare abstract class AbstractPageComponent<T extends I18nForm> implements OnIn
561
596
  protected setPageTitle(pageTitle: string): void;
562
597
  protected setPageTitleAsync(pageTitle: Observable<string>): void;
563
598
  protected onFormSent(goToNextPage: boolean): void;
599
+ /**
600
+ * Navigates to the next page and ignores send(), sendAndTransmit() and transmit() until the navigation ends.
601
+ *
602
+ * The current page stays displayed and clickable while the next one is activated (e.g. lazy loaded route,
603
+ * resolver or async guard): a second click on "next" would save again, then navigate once more from the
604
+ * next page and skip it.
605
+ */
606
+ protected navigateToNextPage(): Promise<void>;
564
607
  private checkHasPendingsFilesBeforeTransmit;
565
608
  private gotToTop;
566
609
  abstract newForm(): T;
@@ -1932,17 +1975,25 @@ declare abstract class AbstractFoehnNavigationComponent {
1932
1975
  readonly showNextButton: _angular_core.InputSignal<boolean>;
1933
1976
  readonly nextLabel: _angular_core.InputSignal<string>;
1934
1977
  readonly prevLabel: _angular_core.InputSignal<string>;
1978
+ readonly loadingLabel: _angular_core.InputSignal<string>;
1935
1979
  readonly continueLaterLabel: _angular_core.InputSignal<string>;
1936
1980
  readonly continueLaterAlreadyRegisteredLabel: _angular_core.InputSignal<string>;
1937
1981
  readonly continueLaterConnectedLabel: _angular_core.InputSignal<string>;
1938
1982
  readonly triggerRecoveryOnPageChange: _angular_core.InputSignal<boolean>;
1939
1983
  readonly onNext: _angular_core.OutputEmitterRef<void>;
1940
1984
  readonly onPrevious: _angular_core.OutputEmitterRef<void>;
1985
+ readonly pendingNavigationDirection: Signal<NavigationDirection | null>;
1986
+ readonly loadingDirection: Signal<NavigationDirection | null>;
1987
+ readonly isNavigating: Signal<boolean>;
1988
+ readonly isLoading: Signal<boolean>;
1989
+ readonly isLoadingNext: Signal<boolean>;
1990
+ readonly isLoadingPrevious: Signal<boolean>;
1991
+ constructor();
1941
1992
  goToNext(): void;
1942
1993
  goToPrevious(): void;
1943
1994
  canShowNextButton(): boolean;
1944
1995
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AbstractFoehnNavigationComponent, never>;
1945
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AbstractFoehnNavigationComponent, never, never, { "showContinueLaterButton": { "alias": "showContinueLaterButton"; "required": false; "isSignal": true; }; "showNextButton": { "alias": "showNextButton"; "required": false; "isSignal": true; }; "nextLabel": { "alias": "nextLabel"; "required": false; "isSignal": true; }; "prevLabel": { "alias": "prevLabel"; "required": false; "isSignal": true; }; "continueLaterLabel": { "alias": "continueLaterLabel"; "required": false; "isSignal": true; }; "continueLaterAlreadyRegisteredLabel": { "alias": "continueLaterAlreadyRegisteredLabel"; "required": false; "isSignal": true; }; "continueLaterConnectedLabel": { "alias": "continueLaterConnectedLabel"; "required": false; "isSignal": true; }; "triggerRecoveryOnPageChange": { "alias": "triggerRecoveryOnPageChange"; "required": false; "isSignal": true; }; }, { "onNext": "onNext"; "onPrevious": "onPrevious"; }, never, never, true, never>;
1996
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AbstractFoehnNavigationComponent, never, never, { "showContinueLaterButton": { "alias": "showContinueLaterButton"; "required": false; "isSignal": true; }; "showNextButton": { "alias": "showNextButton"; "required": false; "isSignal": true; }; "nextLabel": { "alias": "nextLabel"; "required": false; "isSignal": true; }; "prevLabel": { "alias": "prevLabel"; "required": false; "isSignal": true; }; "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "continueLaterLabel": { "alias": "continueLaterLabel"; "required": false; "isSignal": true; }; "continueLaterAlreadyRegisteredLabel": { "alias": "continueLaterAlreadyRegisteredLabel"; "required": false; "isSignal": true; }; "continueLaterConnectedLabel": { "alias": "continueLaterConnectedLabel"; "required": false; "isSignal": true; }; "triggerRecoveryOnPageChange": { "alias": "triggerRecoveryOnPageChange"; "required": false; "isSignal": true; }; }, { "onNext": "onNext"; "onPrevious": "onPrevious"; }, never, never, true, never>;
1946
1997
  }
1947
1998
 
1948
1999
  declare class FoehnNavigationComponent extends AbstractFoehnNavigationComponent implements OnInit {
@@ -2988,31 +3039,6 @@ declare class FoehnHelpModalComponent {
2988
3039
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnHelpModalComponent, "foehn-help-modal", never, { "modalContent": { "alias": "modalContent"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "hideable": { "alias": "hideable"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
2989
3040
  }
2990
3041
 
2991
- declare class FoehnModalComponent {
2992
- readonly isModalVisible: _angular_core.ModelSignal<boolean>;
2993
- readonly id: _angular_core.InputSignal<string | undefined>;
2994
- readonly modalBodyText: _angular_core.InputSignal<string | undefined>;
2995
- readonly modalHeaderText: _angular_core.InputSignal<string | undefined>;
2996
- readonly closeable: _angular_core.InputSignal<boolean>;
2997
- readonly draggable: _angular_core.InputSignal<boolean>;
2998
- readonly hideable: _angular_core.InputSignal<boolean>;
2999
- readonly modalTriggerHtmlElement: _angular_core.InputSignal<HTMLElement | undefined>;
3000
- readonly name: _angular_core.InputSignal<string | undefined>;
3001
- readonly modalSize: _angular_core.InputSignal<string | undefined>;
3002
- readonly modalBody: _angular_core.Signal<ElementRef<any> | undefined>;
3003
- readonly modalTitle: _angular_core.Signal<ElementRef<any> | undefined>;
3004
- readonly specificfooter: _angular_core.Signal<ElementRef<any> | undefined>;
3005
- readonly modalDefaultCloseBtn: _angular_core.Signal<ElementRef<any> | undefined>;
3006
- private readonly injector;
3007
- private previousIsVisible;
3008
- private readonly visibilityEffect;
3009
- handleKeyboardEvent(event: KeyboardEvent): void;
3010
- private focusOnContainer;
3011
- private focusOnModalTrigger;
3012
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnModalComponent, never>;
3013
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnModalComponent, "foehn-modal", never, { "isModalVisible": { "alias": "isModalVisible"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "modalBodyText": { "alias": "modalBodyText"; "required": false; "isSignal": true; }; "modalHeaderText": { "alias": "modalHeaderText"; "required": false; "isSignal": true; }; "closeable": { "alias": "closeable"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "hideable": { "alias": "hideable"; "required": false; "isSignal": true; }; "modalTriggerHtmlElement": { "alias": "modalTriggerHtmlElement"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "modalSize": { "alias": "modalSize"; "required": false; "isSignal": true; }; }, { "isModalVisible": "isModalVisibleChange"; }, never, ["*", "[modal-footer]"], true, never>;
3014
- }
3015
-
3016
3042
  declare class FoehnPageModalComponent implements OnInit {
3017
3043
  readonly wrongPublicModalVisible: _angular_core.WritableSignal<boolean>;
3018
3044
  readonly formattedPublicsCibles: _angular_core.WritableSignal<string[]>;
@@ -3918,4 +3944,4 @@ declare class SdkLogsService {
3918
3944
  }
3919
3945
 
3920
3946
  export { APP_INFO_API_URL, AbstractFoehnUploaderComponent, AbstractListDetailPageComponent, AbstractMenuPageComponent, AbstractPageComponent, AbstractPageFromMenuComponent, ActionStatut, Address, AddressTypeLight, ApplicationInfo, ApplicationInfoService, BAD_PARAMS_HELP_TEXT, BoDocumentError, BoDocumentsWithErrors, BoMultiUploadService, Breadcrumb, BreadcrumbEventService, BreadcrumbItem, CAPTCHA_ERROR_NAME, CURRENCY_REGEXP, Calendar, Canton, Captcha, ChunkLoadErrorHandler, Configuration, Country, CurrencyHelper, CurrentWeek, DECIMALS_SEPARATOR, DEFAULT_INTERNATIONAL_FIX_AND_MOBILE, DEFAULT_INTERNATIONAL_FIX_ONLY, DEFAULT_INTERNATIONAL_MOBILE_ONLY, DEFAULT_PREFIX, DEFAULT_SWISS_FIX_AND_MOBILE, DEFAULT_SWISS_FIX_ONLY, DEFAULT_SWISS_MOBILE_ONLY, DICTIONARY_BASE_URL, DateHelper, DatePickerHelper, DatePickerNavigationHelper, DayMonth, DaySlots, DemandeExpirationService, DemandeHelper, DisplayCurrencyPipe, DisplayDatePipe, District, Document, DocumentError, DocumentReference, DocumentReferenceWithFile, DocumentsWithErrors, DropdownMenuGroup, DropdownMenuItem, EPaymentService, EtapeInfo, FEEDBACK_USAGERS_LOCAL_STORAGE_PREFIX, FORM_SUPPORT_CYBER_TITLE_FALLBACK, FocusedDay, FoehnAbbrComponent, FoehnAgendaComponent, FoehnAgendaNavigationComponent, FoehnAgendaTimeslotPanelComponent, FoehnAutocompleteComponent, FoehnBoMultiUploadComponent, FoehnBooleanCheckboxComponent, FoehnBooleanRadioComponent, FoehnBreadcrumbComponent, FoehnCheckableGroupComponent, FoehnCheckboxComponent, FoehnConfirmModalComponent, FoehnConfirmModalContent, FoehnConfirmModalService, FoehnDateComponent, FoehnDatePickerButtonComponent, FoehnDatePickerComponent, FoehnDateTimeComponent, FoehnDecisionElectroniqueComponent, FoehnDisplayAddressComponent, FoehnDropdownMenuComponent, FoehnErrorPillComponent, FoehnFeedbackNotificationComponent, FoehnFormComponent, FoehnGlobalUploadProgressBarComponent, FoehnHeaderComponent, FoehnHelpModalComponent, FoehnIconCalendarComponent, FoehnIconCheckComponent, FoehnIconCheckSquareOComponent, FoehnIconChevronDownComponent, FoehnIconChevronLeftComponent, FoehnIconChevronRightComponent, FoehnIconChevronUpComponent, FoehnIconClockComponent, FoehnIconCommentDotsComponent, FoehnIconEditComponent, FoehnIconExternalLinkAltComponent, FoehnIconFilePdfComponent, FoehnIconInfoCircleComponent, FoehnIconLockComponent, FoehnIconMapMarkerComponent, FoehnIconMinusCircleComponent, FoehnIconPencilComponent, FoehnIconPlusCircleComponent, FoehnIconPlusSquareComponent, FoehnIconSearchComponent, FoehnIconTimesComponent, FoehnIconTrashAltComponent, FoehnIconUnlockAltComponent, FoehnIconUserComponent, FoehnInputAddressComponent, FoehnInputComponent, FoehnInputEmailComponent, FoehnInputForeignLocalityComponent, FoehnInputForeignStreetComponent, FoehnInputHiddenComponent, FoehnInputNav13Component, FoehnInputNumberComponent, FoehnInputPasswordComponent, FoehnInputPhoneComponent, FoehnInputPrefixedTextComponent, FoehnInputStringComponent, FoehnInputTextComponent, FoehnInputTextareaComponent, FoehnListComponent, FoehnListItem, FoehnListSummaryComponent, FoehnMenuItemComponent, FoehnMenuItemTransmitComponent, FoehnModalComponent, FoehnMultiUploadComponent, FoehnMultiselectAutocompleteComponent, FoehnNavigationComponent, FoehnNavigationService, FoehnNotfoundComponent, FoehnPageComponent, FoehnPageCounterComponent, FoehnPageExpirationTimerComponent, FoehnPageModalComponent, FoehnPageService, FoehnPictureUploadComponent, FoehnRadioComponent, FoehnRecapSectionComponent, FoehnRemainingAlertsSummaryComponent, FoehnSelectComponent, FoehnSimpleNavigationComponent, FoehnSkipLinkComponent, FoehnStatusProgressBarComponent, FoehnTableColumnConfiguration, FoehnTableComponent, FoehnTablePageChangeEvent, FoehnTimeComponent, FoehnTransmitWaitingModalComponent, FoehnTransmitWaitingModalService, FoehnUploadProgressBarComponent, FoehnUserConnectedAsComponent, FoehnValidationAlertSummaryComponent, FoehnValidationAlertsComponent, FooterLink, FormMetadata, FormPostResponse, FormSelectOption, FormatAvsPipe, FormatIdePipe, GESDEM_MAX_DATA_LENGTH, GesdemActionRecoveryLoginComponent, GesdemActionRecoveryRegistrationComponent, GesdemConfirmationComponent, GesdemErrorComponent, GesdemEventService, GesdemHandlerService, GesdemStatutUtils, GlobalUploadProgressService, GrowlBrokerService, GrowlMessage, GrowlType, HTTP_LOADER_FILTERED_URL, I18nForm, IAM_ACV_OIDC_REDIRECT_LOCATION_REGEX, IAM_ACV_REDIRECT_LOCATION_REGEX, IbanFormatterDirective, IdeFormatterDirective, IntervalHelper, LineBreakAsHtmlPipe, Locality, MonthYear, MultiUploadService, Municipality, NDCFormatterDirective, NEVER_CONNECTED, NavigationDirection, NumberCurrencyFormatterDirective, OIDC_ENABLED, ObjectHelper, PORTAIL_BASE_URL_INT, PORTAIL_BASE_URL_PROD, PORTAIL_BASE_URL_VAL, PageChangeEvent, PageUploadLimitService, PaginationWeek, PendingFiles, PendingPaymentComponent, PendingUploadService, PlaceOfOrigin, Portail, PostalLocality, Preferences, RECAPTCHA_API_URL, RecaptchaService, RedirectComponent, RegisterNgModelService, RowElement, SESSION_INFO_API_URL, SWISS_ISO_ID, ScrollHelper, SdkDictionaryPipe, SdkDictionaryService, SdkEpaymentComponent, SdkEvent, SdkEventType, SdkEventsLoggerService, SdkLog, SdkLogLevel, SdkLogsService, SdkRecaptchaComponent, SdkStatisticsService, SelectedSlot, Session, SessionInfo, SessionInfoData, SessionInfoWithApplicationService, Street, StreetNumber, StringHelper, THOUSANDS_SEPARATOR, TRANSMIT_WAITING_MODAL_DELAY_IN_MILLISECONDS, TableSort, UploadProgress, UploadProgressService, UploaderHelper, ValidationHandlerService, formatDecimalCurrency, formatNonDecimalCurrency, formatNumberAsGiven, gesdemLoaderGuard, getSafeFileNameForErrorMessage, providePrestationsNgCore, replaceAll, splitDocumentChanges };
3921
- export type { BreadcrumbConfiguration, BrowserInfo, ComponentError, DictionaryType, DocumentChanges, FoehnListItemDescription, FoehnRecapSection, FoehnRecapSectionElement, FoehnRecapSectionElementValueType, FormError, HasCustomErrors, HelpModal, Image, Language, PlaceholderType, UploaderErrorLimits };
3947
+ export type { BreadcrumbConfiguration, BrowserInfo, ComponentError, DictionaryType, DocumentChanges, FoehnListItemDescription, FoehnModalSize, FoehnRecapSection, FoehnRecapSectionElement, FoehnRecapSectionElementValueType, FormError, HasCustomErrors, HelpModal, Image, Language, PlaceholderType, UploaderErrorLimits };