@dsivd/prestations-ng 19.2.0-beta.2 → 19.2.0-beta.21
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/ANGULAR_SIGNALS.md +4 -0
- package/CHANGELOG.md +396 -0
- package/CONTRIBUTING.md +74 -4
- package/ESLINT_PLUGIN.md +103 -8
- package/GOOD_PRACTICES.md +731 -380
- package/INTRODUCTION_ANGULAR_SIGNALS.md +199 -154
- package/UPGRADING_V18.md +5 -5
- package/UPGRADING_V19.md +439 -18
- package/eslint/configs/spec-ts-recommended.mjs +34 -0
- package/eslint/configs/template-recommended.mjs +2 -0
- package/eslint/configs/template-rules.mjs +11 -2
- package/eslint/configs/ts-recommended.mjs +6 -0
- package/eslint/configs/ts-rules.mjs +6 -2
- package/eslint/form-reads.mjs +63 -0
- package/eslint/index.mjs +17 -0
- package/eslint/rules/index.mjs +4 -0
- package/eslint/rules/no-direct-signal-mutation.mjs +58 -20
- package/eslint/rules/no-item-track-in-form-list.mjs +99 -0
- package/eslint/rules/no-uninvoked-signal-in-template.mjs +8 -3
- package/eslint/rules/require-model-change.mjs +89 -0
- package/eslint/template-ast.mjs +12 -2
- package/fesm2022/dsivd-prestations-ng.mjs +2766 -2073
- package/fesm2022/dsivd-prestations-ng.mjs.map +1 -1
- package/package.json +1 -2
- package/schematics/migration-collection.json +5 -0
- package/schematics/ng-add/index.js +2 -4
- package/schematics/ng-update/migrations/update-13_2_0/index.js +7 -2
- package/schematics/ng-update/migrations/update-19_2_0/index.js +39 -0
- package/schematics/utility/add-allowed-common-js-dependencies.js +39 -29
- package/schematics/utility/form-signal/class-migration.js +396 -0
- package/schematics/utility/form-signal/edits.js +34 -0
- package/schematics/utility/form-signal/form-signal-migration.js +184 -0
- package/schematics/utility/form-signal/page-classes.js +129 -0
- package/schematics/utility/form-signal/template-migration.js +666 -0
- package/schematics/utility/remove-emit-decorator-metadata.js +8 -9
- package/src/eslint/configs/__tests__/configs.test.mjs +46 -2
- package/src/eslint/configs/spec-ts-recommended.mjs +34 -0
- package/src/eslint/configs/template-recommended.mjs +2 -0
- package/src/eslint/configs/template-rules.mjs +11 -2
- package/src/eslint/configs/ts-recommended.mjs +6 -0
- package/src/eslint/configs/ts-rules.mjs +6 -2
- package/src/eslint/form-reads.mjs +63 -0
- package/src/eslint/index.mjs +17 -0
- package/src/eslint/rules/__tests__/no-direct-signal-mutation.test.mjs +58 -0
- package/src/eslint/rules/__tests__/no-item-track-in-form-list.test.mjs +127 -0
- package/src/eslint/rules/__tests__/no-uninvoked-signal-in-template.test.mjs +6 -0
- package/src/eslint/rules/__tests__/require-model-change.test.mjs +93 -0
- package/src/eslint/rules/index.mjs +4 -0
- package/src/eslint/rules/no-direct-signal-mutation.mjs +58 -20
- package/src/eslint/rules/no-item-track-in-form-list.mjs +99 -0
- package/src/eslint/rules/no-uninvoked-signal-in-template.mjs +8 -3
- package/src/eslint/rules/require-model-change.mjs +89 -0
- package/src/eslint/template-ast.mjs +12 -2
- package/types/dsivd-prestations-ng.d.ts +652 -240
- package/dsivd-prestations-ng-19.2.0-beta.2.tgz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnInit, AfterViewInit, Signal,
|
|
2
|
+
import { ElementRef, OnInit, AfterViewInit, Signal, DestroyRef, WritableSignal, 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?:
|
|
109
|
+
modalSize?: FoehnModalSize;
|
|
84
110
|
}
|
|
85
111
|
interface Image {
|
|
86
112
|
src?: string;
|
|
@@ -117,9 +143,10 @@ declare class ValidationHandlerService {
|
|
|
117
143
|
|
|
118
144
|
declare const GESDEM_MAX_DATA_LENGTH = 10000;
|
|
119
145
|
declare abstract class FoehnInputComponent<T> implements OnInit, AfterViewInit {
|
|
146
|
+
#private;
|
|
120
147
|
readonly model: _angular_core.ModelSignal<T | null | undefined>;
|
|
121
148
|
readonly pattern: _angular_core.ModelSignal<string | undefined>;
|
|
122
|
-
readonly helpModal: _angular_core.ModelSignal<HelpModal | undefined>;
|
|
149
|
+
readonly helpModal: _angular_core.ModelSignal<HelpModal | null | undefined>;
|
|
123
150
|
readonly standardHelpText: _angular_core.ModelSignal<string | undefined>;
|
|
124
151
|
readonly helpText: _angular_core.ModelSignal<string | undefined>;
|
|
125
152
|
readonly disabled: _angular_core.ModelSignal<boolean>;
|
|
@@ -186,7 +213,7 @@ declare abstract class FoehnInputComponent<T> implements OnInit, AfterViewInit {
|
|
|
186
213
|
* linkedSignal est un WritableSignal dont la valeur par défaut est recalculée si les dépendances changent,
|
|
187
214
|
* mais qui peut être écrasé manuellement avec .set().
|
|
188
215
|
*/
|
|
189
|
-
protected readonly hostId: _angular_core.WritableSignal<string
|
|
216
|
+
protected readonly hostId: _angular_core.WritableSignal<string>;
|
|
190
217
|
/**
|
|
191
218
|
* computed() — valeur dérivée
|
|
192
219
|
* Quand le résultat est une valeur qui dépend d'autres signals. C'est une transformation pure, synchrone, sans side effect.
|
|
@@ -194,14 +221,20 @@ declare abstract class FoehnInputComponent<T> implements OnInit, AfterViewInit {
|
|
|
194
221
|
protected readonly hostHidden: Signal<"hidden" | null>;
|
|
195
222
|
protected readonly _destroyRef: DestroyRef;
|
|
196
223
|
private readonly registerNgModelService;
|
|
197
|
-
private _errors;
|
|
224
|
+
private readonly _errors;
|
|
198
225
|
private readonly userInputSubject;
|
|
199
226
|
private readonly subComponentsEffect;
|
|
200
227
|
private readonly modelEffect;
|
|
201
228
|
get errors(): FormError[];
|
|
202
229
|
ngOnInit(): void;
|
|
203
230
|
ngAfterViewInit(): void;
|
|
204
|
-
|
|
231
|
+
/**
|
|
232
|
+
* Called with every new model (given by the page or set by the component), once `model_` is up to date. Does
|
|
233
|
+
* nothing by default: to override only to act on a new model, e.g. to normalize it. Fields derived from the
|
|
234
|
+
* model are `linkedSignal()` or `computed()`, not copies made here.
|
|
235
|
+
* @param _value the new model
|
|
236
|
+
*/
|
|
237
|
+
onModelChange(_value: T | null | undefined): void;
|
|
205
238
|
handleChange(value: T | null): void;
|
|
206
239
|
updateNgModel(value: T | null): void;
|
|
207
240
|
hasErrorsToDisplay(): boolean;
|
|
@@ -215,8 +248,8 @@ declare abstract class FoehnInputComponent<T> implements OnInit, AfterViewInit {
|
|
|
215
248
|
refreshErrors(results: any[]): void;
|
|
216
249
|
focus(scrollIntoView?: boolean): void;
|
|
217
250
|
getMaxLength(): number | null;
|
|
218
|
-
buildId(suffix?: string): string
|
|
219
|
-
buildChildId(suffix?: string): string
|
|
251
|
+
buildId(suffix?: string): string;
|
|
252
|
+
buildChildId(suffix?: string): string;
|
|
220
253
|
buildChildName(suffix?: string): string;
|
|
221
254
|
onKeydown(_key: KeyboardEvent): void;
|
|
222
255
|
reset(): void;
|
|
@@ -228,6 +261,14 @@ declare abstract class FoehnInputComponent<T> implements OnInit, AfterViewInit {
|
|
|
228
261
|
getAutoComplete(): string | undefined;
|
|
229
262
|
protected getFirstInputComponentEnabled(subComponents: readonly FoehnInputComponent<any>[]): FoehnInputComponent<any> | null;
|
|
230
263
|
protected findFirstHtmlInputElementEnabled(elementNodeListOf: NodeListOf<Element>): HTMLInputElement | null;
|
|
264
|
+
/**
|
|
265
|
+
* Whether a model given by the page has a value to display, which makes it known (`model_`) before
|
|
266
|
+
* `onModelChange()`: by default, any value (see `ObjectHelper.hasAnyValue()`). To override when the component
|
|
267
|
+
* doesn't display a part of its model (e.g. the country of an address only Swiss, or an id).
|
|
268
|
+
* @param value of the model
|
|
269
|
+
* @returns whether the model has a value to display
|
|
270
|
+
*/
|
|
271
|
+
protected hasValueToDisplay(value: T | null | undefined): boolean;
|
|
231
272
|
protected isEmpty(data: unknown): boolean;
|
|
232
273
|
protected isEmptyWhenTrimmedIfString(data: unknown): boolean;
|
|
233
274
|
protected triggerUserInput(value: T | null | undefined): void;
|
|
@@ -296,6 +337,8 @@ declare class FoehnNavigationService {
|
|
|
296
337
|
private isInit;
|
|
297
338
|
private readonly initializedAndRouteActivated;
|
|
298
339
|
private linearRouting;
|
|
340
|
+
private readonly pendingNavigationDirectionSubject;
|
|
341
|
+
private lastNavigationId;
|
|
299
342
|
get initialized(): boolean;
|
|
300
343
|
set activatedRoute(value: ActivatedRoute);
|
|
301
344
|
static getRootRouteRecursive(route: ActivatedRouteSnapshot | null): Route | null;
|
|
@@ -305,6 +348,12 @@ declare class FoehnNavigationService {
|
|
|
305
348
|
getFirstRoute(): Route;
|
|
306
349
|
current(): Promise<boolean>;
|
|
307
350
|
hasBeenInitialized(): Observable<boolean>;
|
|
351
|
+
/**
|
|
352
|
+
* Direction of the navigation started with next() or previous() until it ends, null otherwise.
|
|
353
|
+
* The current page stays displayed while the target one is activated (e.g. lazy loaded route).
|
|
354
|
+
* @returns Observable<NavigationDirection | null>
|
|
355
|
+
*/
|
|
356
|
+
pendingNavigationDirection(): Observable<NavigationDirection | null>;
|
|
308
357
|
getQueryParamsToForwardAsString(): string;
|
|
309
358
|
getQueryParamsToForward(): Params | null;
|
|
310
359
|
next(): Promise<boolean>;
|
|
@@ -429,7 +478,7 @@ declare class GesdemHandlerService {
|
|
|
429
478
|
private readonly dictionaryService;
|
|
430
479
|
private readonly dateHelper;
|
|
431
480
|
private readonly _updateFormDataSubject;
|
|
432
|
-
private _lastResponse;
|
|
481
|
+
private readonly _lastResponse;
|
|
433
482
|
private _captchaToken;
|
|
434
483
|
get lastResponse(): FormPostResponse<I18nForm>;
|
|
435
484
|
get updateFormDataSubject(): Observable<I18nForm | undefined | null>;
|
|
@@ -460,6 +509,87 @@ declare class GesdemHandlerService {
|
|
|
460
509
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<GesdemHandlerService>;
|
|
461
510
|
}
|
|
462
511
|
|
|
512
|
+
type Depth = [never, 0, 1, 2, 3, 4, 5, 6, 7];
|
|
513
|
+
/**
|
|
514
|
+
* A path in an object: one of its keys, then the keys or the indexes of the objects and arrays it holds, e.g.
|
|
515
|
+
* `['firstName']`, `['address', 'locality']` or `['children', 0, 'firstName']`. For a union (`ApForm | AfForm`), the
|
|
516
|
+
* paths of each of its members.
|
|
517
|
+
*/
|
|
518
|
+
type ObjectPath<T, D extends number = 7> = [D] extends [never] ? never : PathsOf<NonNullable<T>, D>;
|
|
519
|
+
type PathsOf<T, D extends number> = T extends readonly (infer E)[] ? [number] | [number, ...ObjectPath<E, Depth[D]>] : T extends object ? {
|
|
520
|
+
[K in keyof T & string]-?: [K] | [K, ...ObjectPath<T[K], Depth[D]>];
|
|
521
|
+
}[keyof T & string] : never;
|
|
522
|
+
/**
|
|
523
|
+
* The type of the value at a path of an object. For a union, the value in the members having the path.
|
|
524
|
+
*/
|
|
525
|
+
type ObjectPathValue<T, P extends readonly unknown[]> = P extends readonly [infer K, ...infer R] ? ValueAtKey<NonNullable<T>, K, R> : T;
|
|
526
|
+
type ValueAtKey<T, K, R extends readonly unknown[]> = T extends readonly (infer E)[] ? ObjectPathValue<E, R> : K extends keyof T ? ObjectPathValue<T[K], R> : never;
|
|
527
|
+
/**
|
|
528
|
+
* Keys known at runtime only: a key with dots (`'address.street'`, `'children.0.firstName'`), or the list of the keys.
|
|
529
|
+
*/
|
|
530
|
+
type ObjectKeys = string | readonly (string | number)[];
|
|
531
|
+
/**
|
|
532
|
+
* Reads and writes a value at a path of an object, without modifying the object: a write copies the objects and arrays
|
|
533
|
+
* along the path (with their prototype), and keeps the others as they are.
|
|
534
|
+
*
|
|
535
|
+
* A copy takes the own enumerable properties only: the objects along the path must be plain objects (e.g. the JSON of
|
|
536
|
+
* the backend), arrays or instances of classes with public fields. The copy of a `Date`, a `Map`, a `Set` or an
|
|
537
|
+
* instance with private fields (`#field`) loses their content, and their methods throw. The value written, and the
|
|
538
|
+
* objects beside the path, are not copied: they can be of any type.
|
|
539
|
+
*
|
|
540
|
+
* `get()`, `patch()` and `patchSignal()` take a path checked by TypeScript (a typo gives an error listing the valid
|
|
541
|
+
* keys). `getByKeys()` and `patchByKeys()` take keys known at runtime only (e.g. a key given as an input), not
|
|
542
|
+
* checked.
|
|
543
|
+
*/
|
|
544
|
+
declare class ObjectPathHelper {
|
|
545
|
+
/**
|
|
546
|
+
* @param object an object
|
|
547
|
+
* @param path the keys and indexes leading to the value
|
|
548
|
+
* @returns the value at the path, `undefined` when an object of the path is `null` or `undefined`
|
|
549
|
+
*/
|
|
550
|
+
static get<T, P extends ObjectPath<T>>(object: T, path: P): ObjectPathValue<T, P> | undefined;
|
|
551
|
+
/**
|
|
552
|
+
* Writes a value at a path of an object without modifying it.
|
|
553
|
+
*
|
|
554
|
+
* @param object an object
|
|
555
|
+
* @param path the keys and indexes leading to the value
|
|
556
|
+
* @param value the value to write
|
|
557
|
+
* @returns a new object, or the object itself when the value is already there
|
|
558
|
+
* @throws Error when an object of the path is `null` or `undefined`, as a write through it would
|
|
559
|
+
*/
|
|
560
|
+
static patch<T, P extends ObjectPath<T>>(object: T, path: P, value: ObjectPathValue<T, P>): T;
|
|
561
|
+
/**
|
|
562
|
+
* Writes a value at a path of the object held by a signal, without modifying it in place: the signal gets a new
|
|
563
|
+
* object, and notifies its readers only when the value changes.
|
|
564
|
+
*
|
|
565
|
+
* @param signal a signal holding an object
|
|
566
|
+
* @param path the keys and indexes leading to the value
|
|
567
|
+
* @param value the value to write
|
|
568
|
+
* @throws Error when an object of the path, the value of the signal included, is `null` or `undefined`
|
|
569
|
+
*/
|
|
570
|
+
static patchSignal<T, P extends ObjectPath<T>>(signal: WritableSignal<T>, path: P, value: ObjectPathValue<T, P>): void;
|
|
571
|
+
/**
|
|
572
|
+
* `get()` with keys known at runtime only, not checked by TypeScript.
|
|
573
|
+
*
|
|
574
|
+
* @param object an object
|
|
575
|
+
* @param keys `'address.street'`, or `['address', 'street']`
|
|
576
|
+
* @returns the value at the keys, `undefined` when an object of the path is `null` or `undefined`
|
|
577
|
+
*/
|
|
578
|
+
static getByKeys(object: unknown, keys: ObjectKeys): unknown;
|
|
579
|
+
/**
|
|
580
|
+
* `patch()` with keys known at runtime only, not checked by TypeScript.
|
|
581
|
+
*
|
|
582
|
+
* @param object an object
|
|
583
|
+
* @param keys `'address.street'`, or `['address', 'street']`
|
|
584
|
+
* @param value the value to write
|
|
585
|
+
* @returns a new object, or the object itself when the value is already there
|
|
586
|
+
* @throws Error when an object of the path is `null` or `undefined`, as a write through it would
|
|
587
|
+
*/
|
|
588
|
+
static patchByKeys<T>(object: T, keys: ObjectKeys, value: unknown): T;
|
|
589
|
+
private static keysOf;
|
|
590
|
+
private static patchFrom;
|
|
591
|
+
}
|
|
592
|
+
|
|
463
593
|
type PlaceholderType = Record<string, string | null | undefined>;
|
|
464
594
|
type DictionaryType = Record<string, string>;
|
|
465
595
|
interface Language {
|
|
@@ -478,7 +608,7 @@ declare class SdkDictionaryService {
|
|
|
478
608
|
private readonly httpClient;
|
|
479
609
|
private readonly growlService;
|
|
480
610
|
private readonly validationService;
|
|
481
|
-
private dictionary;
|
|
611
|
+
private readonly dictionary;
|
|
482
612
|
private defaultLanguageCode;
|
|
483
613
|
private readonly dictionaryObservable;
|
|
484
614
|
private readonly availableLanguagesObservable;
|
|
@@ -530,9 +660,18 @@ declare class SdkEventsLoggerService {
|
|
|
530
660
|
}
|
|
531
661
|
|
|
532
662
|
declare abstract class AbstractPageComponent<T extends I18nForm> implements OnInit, AfterViewInit {
|
|
663
|
+
#private;
|
|
533
664
|
readonly foehnFormComponent: _angular_core.Signal<FoehnFormComponent | undefined>;
|
|
534
|
-
|
|
535
|
-
|
|
665
|
+
/**
|
|
666
|
+
* The form of the page, a signal: never modify its value in place, write it with `patchForm()` (or `form.set()`
|
|
667
|
+
* / `form.update()` with a new object), so that the templates and the `computed()` reading it follow it.
|
|
668
|
+
*/
|
|
669
|
+
readonly form: _angular_core.WritableSignal<T | null | undefined>;
|
|
670
|
+
/**
|
|
671
|
+
* The reference of the demand, set when the form is loaded. A template, a `computed()` or an `effect()` reading it
|
|
672
|
+
* follows it, also when the page sets it: read it with `untracked()` in an `effect()` which must not follow it.
|
|
673
|
+
*/
|
|
674
|
+
readonly reference: _angular_core.WritableSignal<string | null | undefined>;
|
|
536
675
|
protected _destroyRef: DestroyRef;
|
|
537
676
|
protected _gesdemService: GesdemHandlerService;
|
|
538
677
|
protected _gesdemEventService: GesdemEventService;
|
|
@@ -547,6 +686,7 @@ declare abstract class AbstractPageComponent<T extends I18nForm> implements OnIn
|
|
|
547
686
|
private readonly _pendingUploadService;
|
|
548
687
|
private readonly _transmitConcurrentSafe;
|
|
549
688
|
private _gesdemSaveSubscription;
|
|
689
|
+
private _isNavigatingToNextPage;
|
|
550
690
|
private readonly _registerNgModelService;
|
|
551
691
|
private readonly _pageTitle;
|
|
552
692
|
constructor();
|
|
@@ -555,10 +695,29 @@ declare abstract class AbstractPageComponent<T extends I18nForm> implements OnIn
|
|
|
555
695
|
send(goToNextPage?: boolean, displaySuccessMessage?: boolean): void;
|
|
556
696
|
transmit(): void;
|
|
557
697
|
sendAndTransmit(displaySuccessMessage?: boolean): void;
|
|
698
|
+
/**
|
|
699
|
+
* Writes a value into the form without modifying it in place: the objects and arrays along the path are copied.
|
|
700
|
+
* Bind a field with `[model]="form.firstName" (modelChange)="patchForm(['firstName'], $event)"`, inside an
|
|
701
|
+
* `@if (form(); as form)`.
|
|
702
|
+
*
|
|
703
|
+
* @param path the keys and indexes leading to the field, e.g. `['address', 'locality']` or
|
|
704
|
+
* `['children', $index, 'firstName']`
|
|
705
|
+
* @param value the new value (`null` and `undefined` included: the model of the `foehn-*` components can be, as
|
|
706
|
+
* with `[(model)]`)
|
|
707
|
+
*/
|
|
708
|
+
patchForm<P extends ObjectPath<T>>(path: P, value: ObjectPathValue<T, P> | null | undefined): void;
|
|
558
709
|
previous(): void;
|
|
559
710
|
protected setPageTitle(pageTitle: string): void;
|
|
560
711
|
protected setPageTitleAsync(pageTitle: Observable<string>): void;
|
|
561
712
|
protected onFormSent(goToNextPage: boolean): void;
|
|
713
|
+
/**
|
|
714
|
+
* Navigates to the next page and ignores send(), sendAndTransmit() and transmit() until the navigation ends.
|
|
715
|
+
*
|
|
716
|
+
* The current page stays displayed and clickable while the next one is activated (e.g. lazy loaded route,
|
|
717
|
+
* resolver or async guard): a second click on "next" would save again, then navigate once more from the
|
|
718
|
+
* next page and skip it.
|
|
719
|
+
*/
|
|
720
|
+
protected navigateToNextPage(): Promise<void>;
|
|
562
721
|
private checkHasPendingsFilesBeforeTransmit;
|
|
563
722
|
private gotToTop;
|
|
564
723
|
abstract newForm(): T;
|
|
@@ -569,7 +728,7 @@ declare abstract class AbstractPageComponent<T extends I18nForm> implements OnIn
|
|
|
569
728
|
declare class FoehnNotfoundComponent implements OnInit, OnDestroy {
|
|
570
729
|
readonly shouldRedirect: _angular_core.InputSignal<boolean>;
|
|
571
730
|
readonly setPageTitle: _angular_core.InputSignal<boolean>;
|
|
572
|
-
seconds: number
|
|
731
|
+
readonly seconds: _angular_core.WritableSignal<number>;
|
|
573
732
|
private readonly router;
|
|
574
733
|
private readonly foehnPageService;
|
|
575
734
|
private intervalId;
|
|
@@ -816,7 +975,8 @@ declare class GesdemErrorComponent implements OnInit {
|
|
|
816
975
|
}
|
|
817
976
|
|
|
818
977
|
/**
|
|
819
|
-
* Provides the core PrestationsNg configuration (HTTP interceptors, error handler
|
|
978
|
+
* Provides the core PrestationsNg configuration (HTTP interceptors, error handler and global error
|
|
979
|
+
* listeners, FontAwesome config).
|
|
820
980
|
* Replaces the old PrestationsNgCoreModule.
|
|
821
981
|
*
|
|
822
982
|
* Usage in bootstrapApplication:
|
|
@@ -834,6 +994,8 @@ declare class SessionInfoWithApplicationService {
|
|
|
834
994
|
private readonly gesdemService;
|
|
835
995
|
private sessionInfoWithNoReference;
|
|
836
996
|
private referenceObservable;
|
|
997
|
+
private readonly isUserConnectedObservable;
|
|
998
|
+
private readonly isReadyObservable;
|
|
837
999
|
constructor();
|
|
838
1000
|
get isUserConnected(): Observable<boolean>;
|
|
839
1001
|
get isReady(): Observable<boolean>;
|
|
@@ -897,7 +1059,7 @@ declare class FoehnPageComponent implements OnChanges, OnInit {
|
|
|
897
1059
|
* reloading the page while having unsaved data.
|
|
898
1060
|
*/
|
|
899
1061
|
readonly showBeforeUnloadNativeConfirmAlert: _angular_core.InputSignal<boolean | undefined>;
|
|
900
|
-
pageTitle: string | undefined
|
|
1062
|
+
readonly pageTitle: _angular_core.WritableSignal<string | undefined>;
|
|
901
1063
|
hasBlockingSupportAlert: Observable<boolean>;
|
|
902
1064
|
displayUserCategory: Observable<boolean> | undefined;
|
|
903
1065
|
showSecuredAreaLoginButton: Observable<boolean> | undefined;
|
|
@@ -937,9 +1099,12 @@ declare class FoehnPageComponent implements OnChanges, OnInit {
|
|
|
937
1099
|
|
|
938
1100
|
declare class FoehnPageCounterComponent {
|
|
939
1101
|
readonly textTemplate: _angular_core.InputSignal<string>;
|
|
940
|
-
|
|
1102
|
+
/**
|
|
1103
|
+
* The counter is displayed once the page has been rendered,
|
|
1104
|
+
* when the current route of the navigation is known.
|
|
1105
|
+
*/
|
|
1106
|
+
readonly isStable: _angular_core.WritableSignal<boolean>;
|
|
941
1107
|
private readonly foehnNavigationService;
|
|
942
|
-
private readonly ngZone;
|
|
943
1108
|
constructor();
|
|
944
1109
|
get placeholders(): PlaceholderType;
|
|
945
1110
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnPageCounterComponent, never>;
|
|
@@ -1026,7 +1191,7 @@ declare class FoehnHeaderComponent implements OnInit {
|
|
|
1026
1191
|
readonly isParticulier: _angular_core.Signal<boolean>;
|
|
1027
1192
|
readonly prenomNom: _angular_core.Signal<string>;
|
|
1028
1193
|
id: string;
|
|
1029
|
-
connectedEsMenu: DropdownMenuGroup[] | undefined
|
|
1194
|
+
readonly connectedEsMenu: _angular_core.Signal<DropdownMenuGroup[] | undefined>;
|
|
1030
1195
|
isProduction: Observable<boolean> | undefined;
|
|
1031
1196
|
mockedServices: Observable<string[] | null | undefined> | undefined;
|
|
1032
1197
|
availableLanguages: Observable<Language[]> | undefined;
|
|
@@ -1040,7 +1205,6 @@ declare class FoehnHeaderComponent implements OnInit {
|
|
|
1040
1205
|
private readonly destroyRef;
|
|
1041
1206
|
private readonly ENV_PROD;
|
|
1042
1207
|
private readonly AVS;
|
|
1043
|
-
constructor();
|
|
1044
1208
|
ngOnInit(): void;
|
|
1045
1209
|
getEnvironmentLabel(info: ApplicationInfo): string | null | undefined;
|
|
1046
1210
|
languageChanged(languageCode: string): void;
|
|
@@ -1070,7 +1234,7 @@ declare class FoehnSkipLinkComponent implements OnInit {
|
|
|
1070
1234
|
|
|
1071
1235
|
declare class FoehnStatusProgressBarComponent implements OnInit {
|
|
1072
1236
|
readonly hidden: _angular_core.InputSignal<boolean | undefined>;
|
|
1073
|
-
isTransmitted: boolean
|
|
1237
|
+
readonly isTransmitted: _angular_core.WritableSignal<boolean>;
|
|
1074
1238
|
protected activatedRoute: ActivatedRoute;
|
|
1075
1239
|
private readonly navigation;
|
|
1076
1240
|
private readonly gesdemHand;
|
|
@@ -1124,6 +1288,7 @@ declare class FormSelectOptionGroup {
|
|
|
1124
1288
|
}
|
|
1125
1289
|
|
|
1126
1290
|
declare abstract class FoehnCheckableGroupComponent extends FoehnInputComponent<any> implements OnInit, OnChanges {
|
|
1291
|
+
#private;
|
|
1127
1292
|
readonly elements: _angular_core.ModelSignal<any>;
|
|
1128
1293
|
readonly elementsUrl: _angular_core.InputSignal<string | undefined>;
|
|
1129
1294
|
/**
|
|
@@ -1153,10 +1318,9 @@ declare abstract class FoehnCheckableGroupComponent extends FoehnInputComponent<
|
|
|
1153
1318
|
*/
|
|
1154
1319
|
readonly missingModelValues: Signal<any[]>;
|
|
1155
1320
|
readonly hasMissingModelValue: Signal<boolean>;
|
|
1156
|
-
groupedElements: FormSelectOptionGroup[]
|
|
1321
|
+
readonly groupedElements: _angular_core.WritableSignal<FormSelectOptionGroup[]>;
|
|
1157
1322
|
protected readonly httpClient: HttpClient;
|
|
1158
1323
|
protected readonly multiple: Signal<boolean>;
|
|
1159
|
-
private readonly ngZone;
|
|
1160
1324
|
private pulling_;
|
|
1161
1325
|
private readonly _onInitSubject;
|
|
1162
1326
|
private disabledByElements;
|
|
@@ -1238,20 +1402,24 @@ declare class FoehnAutocompleteComponent extends FoehnCheckableGroupComponent im
|
|
|
1238
1402
|
readonly suggestionsList: _angular_core.Signal<any>;
|
|
1239
1403
|
readonly inputElement: _angular_core.Signal<any>;
|
|
1240
1404
|
readonly inputValue: _angular_core.WritableSignal<string | null>;
|
|
1241
|
-
searchValue: string | null
|
|
1242
|
-
inputHasFocus: boolean
|
|
1243
|
-
hideSuggestions: boolean
|
|
1405
|
+
readonly searchValue: _angular_core.WritableSignal<string | null>;
|
|
1406
|
+
readonly inputHasFocus: _angular_core.WritableSignal<boolean>;
|
|
1407
|
+
readonly hideSuggestions: _angular_core.WritableSignal<boolean>;
|
|
1244
1408
|
currentBlurTimer: ReturnType<typeof setTimeout> | null;
|
|
1245
1409
|
placeholder: string | undefined;
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1410
|
+
readonly displayedElements: _angular_core.WritableSignal<any[]>;
|
|
1411
|
+
/**
|
|
1412
|
+
* Height of the suggestion list: at most NB_ITEMS_VISIBLE items are visible.
|
|
1413
|
+
*/
|
|
1414
|
+
readonly VIEW_PORT_HEIGHT: _angular_core.Signal<number>;
|
|
1415
|
+
readonly notificationMessageUpdated: _angular_core.WritableSignal<boolean>;
|
|
1249
1416
|
readonly disabledComputed: _angular_core.Signal<boolean>;
|
|
1417
|
+
protected readonly componentInjector: Injector;
|
|
1250
1418
|
private currentItemGlobalIndex;
|
|
1251
1419
|
private readonly NB_ITEMS_VISIBLE;
|
|
1252
1420
|
private readonly filterSubject;
|
|
1253
1421
|
private listHasFocus;
|
|
1254
|
-
private activeDescendantId;
|
|
1422
|
+
private readonly activeDescendantId;
|
|
1255
1423
|
private readonly SUGGESTION_SELECTED_CLASS;
|
|
1256
1424
|
private readonly EXCLUDE_HTML_TAGS_REGEX;
|
|
1257
1425
|
private readonly SUGGESTION_CUSTOM_ATTRIBUTE_LABEL_VALUE;
|
|
@@ -1299,7 +1467,10 @@ declare class FoehnAutocompleteComponent extends FoehnCheckableGroupComponent im
|
|
|
1299
1467
|
private checkAndSetInputValue;
|
|
1300
1468
|
private setSuggestionsDisplayed;
|
|
1301
1469
|
private setDisplayedElements;
|
|
1302
|
-
|
|
1470
|
+
/**
|
|
1471
|
+
* The virtual scroll viewport has to measure its size again once its new height is rendered.
|
|
1472
|
+
*/
|
|
1473
|
+
private checkViewportSizeAfterRender;
|
|
1303
1474
|
private getSelectedElement;
|
|
1304
1475
|
private selectNextElement;
|
|
1305
1476
|
private clearSelectionAndFindSelectedIndex;
|
|
@@ -1319,7 +1490,24 @@ declare class FoehnAutocompleteComponent extends FoehnCheckableGroupComponent im
|
|
|
1319
1490
|
private getCustomValue;
|
|
1320
1491
|
private getModelValueDisplayValue;
|
|
1321
1492
|
private selectValueToDisplay;
|
|
1493
|
+
/**
|
|
1494
|
+
* Selects the value to display each time the elements are retrieved (onInitSubject) and each time the model
|
|
1495
|
+
* changes. `isSuggestionListDynamic` is read at each retrieval as it can change at runtime: only the matching
|
|
1496
|
+
* of the current kind of list is active (switchMap).
|
|
1497
|
+
*/
|
|
1322
1498
|
private matchValueOnModelChangeSubscription;
|
|
1499
|
+
/**
|
|
1500
|
+
* Dynamic suggestion list: the value to display is selected each time the model changes, with the current elements
|
|
1501
|
+
* and then with the elements loaded next, until they contain the model. The loaded elements depend on the search:
|
|
1502
|
+
* the model is not reset when it is not in them, and once displayed, the elements loaded for the search of the user
|
|
1503
|
+
* no longer change what is displayed.
|
|
1504
|
+
*/
|
|
1505
|
+
private matchValueOfDynamicList;
|
|
1506
|
+
/**
|
|
1507
|
+
* Static suggestion list: each time the elements are retrieved, the value to display is selected for the current
|
|
1508
|
+
* model (replayed by model$), then each time the model changes.
|
|
1509
|
+
*/
|
|
1510
|
+
private matchValueOfStaticList;
|
|
1323
1511
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnAutocompleteComponent, never>;
|
|
1324
1512
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnAutocompleteComponent, "foehn-autocomplete", never, { "searchValueMinCharsCount": { "alias": "searchValueMinCharsCount"; "required": false; "isSignal": true; }; "allowCustomValue": { "alias": "allowCustomValue"; "required": false; "isSignal": true; }; "isSuggestionListDynamic": { "alias": "isSuggestionListDynamic"; "required": false; "isSignal": true; }; "customValueModelGenerator": { "alias": "customValueModelGenerator"; "required": false; "isSignal": true; }; "itemHeightInSuggestionListInPx": { "alias": "itemHeightInSuggestionListInPx"; "required": false; "isSignal": true; }; "elementSuggestionLabel": { "alias": "elementSuggestionLabel"; "required": false; "isSignal": true; }; "caseSensitiveSearch": { "alias": "caseSensitiveSearch"; "required": false; "isSignal": true; }; }, { "userSearchInput": "userSearchInput"; }, never, ["*"], true, never>;
|
|
1325
1513
|
}
|
|
@@ -1347,11 +1535,11 @@ declare class FoehnInputTextComponent extends FoehnInputStringComponent {
|
|
|
1347
1535
|
declare class FoehnInputForeignLocalityComponent extends FoehnInputComponent<Locality> {
|
|
1348
1536
|
readonly localityRequired: _angular_core.InputSignal<boolean>;
|
|
1349
1537
|
readonly zipCodeRequired: _angular_core.InputSignal<boolean>;
|
|
1350
|
-
|
|
1351
|
-
|
|
1538
|
+
/** The zip code and the name of the model, changed by the sub components. */
|
|
1539
|
+
readonly zipCode: _angular_core.WritableSignal<string | null>;
|
|
1540
|
+
readonly longName: _angular_core.WritableSignal<string | null>;
|
|
1352
1541
|
updateLocality(): void;
|
|
1353
1542
|
handleUserInput(): void;
|
|
1354
|
-
onModelChange(value: Locality | null): void;
|
|
1355
1543
|
isRequired(): boolean;
|
|
1356
1544
|
private getValidValue;
|
|
1357
1545
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnInputForeignLocalityComponent, never>;
|
|
@@ -1359,10 +1547,10 @@ declare class FoehnInputForeignLocalityComponent extends FoehnInputComponent<Loc
|
|
|
1359
1547
|
}
|
|
1360
1548
|
|
|
1361
1549
|
declare class FoehnInputForeignStreetComponent extends FoehnInputComponent<Street> {
|
|
1362
|
-
|
|
1550
|
+
/** The name of the model, changed by the sub component. */
|
|
1551
|
+
readonly longName: _angular_core.WritableSignal<string | null>;
|
|
1363
1552
|
updateStreet(): void;
|
|
1364
1553
|
handleUserInput(): void;
|
|
1365
|
-
onModelChange(value: Street | null): void;
|
|
1366
1554
|
private getValidValue;
|
|
1367
1555
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnInputForeignStreetComponent, never>;
|
|
1368
1556
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnInputForeignStreetComponent, "foehn-input-foreign-street", never, {}, {}, never, ["*"], true, never>;
|
|
@@ -1380,7 +1568,9 @@ declare class FoehnInputAddressComponent extends FoehnInputComponent<Address> im
|
|
|
1380
1568
|
readonly showAdressLine2: _angular_core.InputSignal<boolean>;
|
|
1381
1569
|
readonly countryRequired: _angular_core.InputSignal<boolean>;
|
|
1382
1570
|
readonly swissNpaLocalityRequired: _angular_core.InputSignal<boolean>;
|
|
1571
|
+
readonly swissNpaLocalityBaseUrl: _angular_core.InputSignal<string>;
|
|
1383
1572
|
readonly streetRequired: _angular_core.InputSignal<boolean | undefined>;
|
|
1573
|
+
readonly streetAllowCustomValue: _angular_core.InputSignal<boolean>;
|
|
1384
1574
|
readonly streetNumberRequired: _angular_core.InputSignal<boolean>;
|
|
1385
1575
|
readonly hideNotRequiredExtraLabelStreetNumber: _angular_core.InputSignal<boolean>;
|
|
1386
1576
|
readonly foreignZipCodeRequired: _angular_core.InputSignal<boolean>;
|
|
@@ -1398,23 +1588,28 @@ declare class FoehnInputAddressComponent extends FoehnInputComponent<Address> im
|
|
|
1398
1588
|
readonly foreignStreetComponent: _angular_core.Signal<FoehnInputForeignStreetComponent | undefined>;
|
|
1399
1589
|
readonly foreignHouseNumber: _angular_core.Signal<FoehnInputTextComponent | undefined>;
|
|
1400
1590
|
readonly countryAutocomplete: _angular_core.Signal<FoehnAutocompleteComponent | undefined>;
|
|
1401
|
-
country: Country | null
|
|
1402
|
-
locality: Locality | null
|
|
1403
|
-
street: Street | null
|
|
1404
|
-
houseNumber: string | null
|
|
1405
|
-
postOfficeBoxText: string | null
|
|
1406
|
-
addressLine1: string | null
|
|
1407
|
-
addressLine2: string | null
|
|
1591
|
+
readonly country: _angular_core.WritableSignal<Country | null>;
|
|
1592
|
+
readonly locality: _angular_core.WritableSignal<Locality | null>;
|
|
1593
|
+
readonly street: _angular_core.WritableSignal<Street | null>;
|
|
1594
|
+
readonly houseNumber: _angular_core.WritableSignal<string | null>;
|
|
1595
|
+
readonly postOfficeBoxText: _angular_core.WritableSignal<string | null>;
|
|
1596
|
+
readonly addressLine1: _angular_core.WritableSignal<string | null>;
|
|
1597
|
+
readonly addressLine2: _angular_core.WritableSignal<string | null>;
|
|
1408
1598
|
countries: Observable<Country[]> | undefined;
|
|
1409
1599
|
localities: Observable<Locality[]> | undefined;
|
|
1410
1600
|
streets: Observable<Street[]> | undefined;
|
|
1411
1601
|
streetNumbers: Observable<StreetNumber[]> | undefined;
|
|
1412
|
-
streetCustomErrors: Record<string, string
|
|
1602
|
+
readonly streetCustomErrors: _angular_core.WritableSignal<Record<string, string>>;
|
|
1413
1603
|
private readonly httpClient;
|
|
1414
1604
|
private readonly dictionaryService;
|
|
1415
|
-
private readonly
|
|
1416
|
-
private
|
|
1417
|
-
private
|
|
1605
|
+
private readonly addressInjector;
|
|
1606
|
+
private isSanitizationScheduled;
|
|
1607
|
+
private isDefaultCountryScheduled;
|
|
1608
|
+
/**
|
|
1609
|
+
* The URL of the Swiss localities. They are requested once the Swiss fields are displayed (`isSwiss()`), and again
|
|
1610
|
+
* only when this URL changes.
|
|
1611
|
+
*/
|
|
1612
|
+
private readonly localitiesUrl;
|
|
1418
1613
|
private readonly countryModelChangeSubject;
|
|
1419
1614
|
private readonly isOnlySwissChangeSubject;
|
|
1420
1615
|
constructor();
|
|
@@ -1427,11 +1622,10 @@ declare class FoehnInputAddressComponent extends FoehnInputComponent<Address> im
|
|
|
1427
1622
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1428
1623
|
updateAddress(): void;
|
|
1429
1624
|
handleUserInput(): void;
|
|
1430
|
-
onModelChange(value: Address | null): void;
|
|
1431
1625
|
isSwiss(): boolean;
|
|
1432
|
-
userInputCountry(
|
|
1433
|
-
userInputLocality(
|
|
1434
|
-
userInputStreet(
|
|
1626
|
+
userInputCountry(): void;
|
|
1627
|
+
userInputLocality(): void;
|
|
1628
|
+
userInputStreet(): void;
|
|
1435
1629
|
countryUpdated(country: Country | null): void;
|
|
1436
1630
|
getLocalityDisplayedName(locality: Locality): string;
|
|
1437
1631
|
localityUpdated(locality: Locality | null): void;
|
|
@@ -1439,7 +1633,17 @@ declare class FoehnInputAddressComponent extends FoehnInputComponent<Address> im
|
|
|
1439
1633
|
isStreetRequired(): boolean;
|
|
1440
1634
|
isForeignStreetRequired(): boolean;
|
|
1441
1635
|
isPostOfficeBoxTextRequired(): boolean;
|
|
1636
|
+
protected hasValueToDisplay(value: Address | null | undefined): boolean;
|
|
1442
1637
|
private sanitizeAddress;
|
|
1638
|
+
/**
|
|
1639
|
+
* @returns the sanitized address when it differs from the given value, otherwise null
|
|
1640
|
+
*/
|
|
1641
|
+
private getSanitizedModel;
|
|
1642
|
+
/**
|
|
1643
|
+
* The sanitized model is set after the next rendering (not while the view is checked), from the latest model: the
|
|
1644
|
+
* model given by the parent in between (e.g. prefilled asynchronously) has been received, it is not overwritten.
|
|
1645
|
+
*/
|
|
1646
|
+
private scheduleModelSanitization;
|
|
1443
1647
|
private replaceAtLeastOneNotNull;
|
|
1444
1648
|
private getCountries;
|
|
1445
1649
|
private getLocalities;
|
|
@@ -1448,6 +1652,12 @@ declare class FoehnInputAddressComponent extends FoehnInputComponent<Address> im
|
|
|
1448
1652
|
private clearAutocompletesWhenCountryIsUnappropriatedToComponentConfiguration;
|
|
1449
1653
|
private getSwissCountry;
|
|
1450
1654
|
private setDefaultCountry;
|
|
1655
|
+
private writeSwissCountry;
|
|
1656
|
+
/**
|
|
1657
|
+
* @returns whether the Swiss country is already set, in the component and in the model (unless the model has
|
|
1658
|
+
* nothing else: the country alone is not written)
|
|
1659
|
+
*/
|
|
1660
|
+
private hasSwissCountry;
|
|
1451
1661
|
private clearAutocompletes;
|
|
1452
1662
|
private extractLocalityZipCodeId;
|
|
1453
1663
|
private extractStreetEstrid;
|
|
@@ -1455,9 +1665,16 @@ declare class FoehnInputAddressComponent extends FoehnInputComponent<Address> im
|
|
|
1455
1665
|
private getValidValue;
|
|
1456
1666
|
private isModelEmpty;
|
|
1457
1667
|
private manageDefaultCountry;
|
|
1668
|
+
/**
|
|
1669
|
+
* The default country is applied after the next rendering (once for the changes of the same rendering), from the
|
|
1670
|
+
* latest state: without zone.js, a model given by the parent in between (e.g. prefilled asynchronously) is only
|
|
1671
|
+
* received with the next change detection, it must not be overwritten by the model with the default country only.
|
|
1672
|
+
*/
|
|
1673
|
+
private scheduleDefaultCountry;
|
|
1674
|
+
private applyDefaultCountry;
|
|
1458
1675
|
private isCountryInputDirty;
|
|
1459
1676
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnInputAddressComponent, never>;
|
|
1460
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnInputAddressComponent, "foehn-input-address", never, { "isOnlySwiss": { "alias": "isOnlySwiss"; "required": false; "isSignal": true; }; "showPostOfficeBoxText": { "alias": "showPostOfficeBoxText"; "required": false; "isSignal": true; }; "showAdressLines": { "alias": "showAdressLines"; "required": false; "isSignal": true; }; "showAdressLine1": { "alias": "showAdressLine1"; "required": false; "isSignal": true; }; "showAdressLine2": { "alias": "showAdressLine2"; "required": false; "isSignal": true; }; "countryRequired": { "alias": "countryRequired"; "required": false; "isSignal": true; }; "swissNpaLocalityRequired": { "alias": "swissNpaLocalityRequired"; "required": false; "isSignal": true; }; "streetRequired": { "alias": "streetRequired"; "required": false; "isSignal": true; }; "streetNumberRequired": { "alias": "streetNumberRequired"; "required": false; "isSignal": true; }; "hideNotRequiredExtraLabelStreetNumber": { "alias": "hideNotRequiredExtraLabelStreetNumber"; "required": false; "isSignal": true; }; "foreignZipCodeRequired": { "alias": "foreignZipCodeRequired"; "required": false; "isSignal": true; }; "foreignLocalityRequired": { "alias": "foreignLocalityRequired"; "required": false; "isSignal": true; }; "foreignStreetRequired": { "alias": "foreignStreetRequired"; "required": false; "isSignal": true; }; "foreignStreetNumberRequired": { "alias": "foreignStreetNumberRequired"; "required": false; "isSignal": true; }; "postOfficeBoxTextRequired": { "alias": "postOfficeBoxTextRequired"; "required": false; "isSignal": true; }; "addressLine1Required": { "alias": "addressLine1Required"; "required": false; "isSignal": true; }; "addressLine2Required": { "alias": "addressLine2Required"; "required": false; "isSignal": true; }; "withCompanyLocalities": { "alias": "withCompanyLocalities"; "required": false; "isSignal": true; }; "withDefaultCountry": { "alias": "withDefaultCountry"; "required": false; "isSignal": true; }; "specifiedCanton": { "alias": "specifiedCanton"; "required": false; "isSignal": true; }; "countriesUrl": { "alias": "countriesUrl"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1677
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnInputAddressComponent, "foehn-input-address", never, { "isOnlySwiss": { "alias": "isOnlySwiss"; "required": false; "isSignal": true; }; "showPostOfficeBoxText": { "alias": "showPostOfficeBoxText"; "required": false; "isSignal": true; }; "showAdressLines": { "alias": "showAdressLines"; "required": false; "isSignal": true; }; "showAdressLine1": { "alias": "showAdressLine1"; "required": false; "isSignal": true; }; "showAdressLine2": { "alias": "showAdressLine2"; "required": false; "isSignal": true; }; "countryRequired": { "alias": "countryRequired"; "required": false; "isSignal": true; }; "swissNpaLocalityRequired": { "alias": "swissNpaLocalityRequired"; "required": false; "isSignal": true; }; "swissNpaLocalityBaseUrl": { "alias": "swissNpaLocalityBaseUrl"; "required": false; "isSignal": true; }; "streetRequired": { "alias": "streetRequired"; "required": false; "isSignal": true; }; "streetAllowCustomValue": { "alias": "streetAllowCustomValue"; "required": false; "isSignal": true; }; "streetNumberRequired": { "alias": "streetNumberRequired"; "required": false; "isSignal": true; }; "hideNotRequiredExtraLabelStreetNumber": { "alias": "hideNotRequiredExtraLabelStreetNumber"; "required": false; "isSignal": true; }; "foreignZipCodeRequired": { "alias": "foreignZipCodeRequired"; "required": false; "isSignal": true; }; "foreignLocalityRequired": { "alias": "foreignLocalityRequired"; "required": false; "isSignal": true; }; "foreignStreetRequired": { "alias": "foreignStreetRequired"; "required": false; "isSignal": true; }; "foreignStreetNumberRequired": { "alias": "foreignStreetNumberRequired"; "required": false; "isSignal": true; }; "postOfficeBoxTextRequired": { "alias": "postOfficeBoxTextRequired"; "required": false; "isSignal": true; }; "addressLine1Required": { "alias": "addressLine1Required"; "required": false; "isSignal": true; }; "addressLine2Required": { "alias": "addressLine2Required"; "required": false; "isSignal": true; }; "withCompanyLocalities": { "alias": "withCompanyLocalities"; "required": false; "isSignal": true; }; "withDefaultCountry": { "alias": "withDefaultCountry"; "required": false; "isSignal": true; }; "specifiedCanton": { "alias": "specifiedCanton"; "required": false; "isSignal": true; }; "countriesUrl": { "alias": "countriesUrl"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1461
1678
|
}
|
|
1462
1679
|
|
|
1463
1680
|
declare class FoehnBreadcrumbComponent implements OnInit {
|
|
@@ -1488,10 +1705,9 @@ declare class FoehnCheckboxComponent extends FoehnCheckableGroupComponent implem
|
|
|
1488
1705
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnCheckboxComponent, "foehn-checkbox", never, {}, {}, never, ["*"], true, never>;
|
|
1489
1706
|
}
|
|
1490
1707
|
|
|
1491
|
-
declare class FoehnRadioComponent extends FoehnCheckableGroupComponent implements
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
onModelChange(value: any): void;
|
|
1708
|
+
declare class FoehnRadioComponent extends FoehnCheckableGroupComponent implements AfterViewChecked {
|
|
1709
|
+
/** The value of the model in the radio buttons: follows the model, elementValue and elementValueIdentity. */
|
|
1710
|
+
readonly inputValue: _angular_core.Signal<string | null | undefined>;
|
|
1495
1711
|
ngAfterViewChecked(): void;
|
|
1496
1712
|
getValueOrObject(element: any): string | undefined | null;
|
|
1497
1713
|
getLabelledBy(elementsGroup: FormSelectOptionGroup, groupIndex: number, index: number): string;
|
|
@@ -1542,16 +1758,21 @@ declare class FoehnMultiselectAutocompleteComponent extends FoehnAutocompleteCom
|
|
|
1542
1758
|
readonly defaultElemRef: _angular_core.Signal<readonly ElementRef<any>[]>;
|
|
1543
1759
|
readonly defaultDeleteFocusArea: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1544
1760
|
readonly defaultElementValuesComputed: _angular_core.Signal<unknown[]>;
|
|
1545
|
-
autocompleteInputValue: string | null
|
|
1546
|
-
|
|
1547
|
-
|
|
1761
|
+
readonly autocompleteInputValue: _angular_core.WritableSignal<string | null>;
|
|
1762
|
+
/**
|
|
1763
|
+
* Every element is selected: a message replaces the autocomplete (not for an empty list of elements).
|
|
1764
|
+
*/
|
|
1765
|
+
readonly showEmptyListMessage: _angular_core.Signal<boolean>;
|
|
1766
|
+
readonly srAnnouncements: _angular_core.WritableSignal<string>;
|
|
1767
|
+
protected readonly suggestions: _angular_core.Signal<[]>;
|
|
1548
1768
|
private readonly dictionaryService;
|
|
1549
1769
|
private srAnnouncementClearTimer;
|
|
1550
1770
|
private readonly SR_ANNOUNCEMENT_CLEAR_TIMEOUT_INTERVAL_MS;
|
|
1551
1771
|
private pendingRemovedIndexForFocus;
|
|
1772
|
+
private readonly suggestionsEffect;
|
|
1773
|
+
private readonly autocompleteInputVisibilityEffect;
|
|
1552
1774
|
private readonly selectedElemRefEffect;
|
|
1553
1775
|
ngOnInit(): void;
|
|
1554
|
-
onModelChange(value: any): void;
|
|
1555
1776
|
hasErrorsToDisplay(): boolean;
|
|
1556
1777
|
getLabel(value: any): string | null | undefined;
|
|
1557
1778
|
updateMultiselectAutocomplete(currentModel: unknown[]): void;
|
|
@@ -1560,39 +1781,33 @@ declare class FoehnMultiselectAutocompleteComponent extends FoehnAutocompleteCom
|
|
|
1560
1781
|
removeItem(item: unknown, index: number): void;
|
|
1561
1782
|
trackByFn(index: number): number;
|
|
1562
1783
|
canBeDeleted(index: number): boolean;
|
|
1563
|
-
onAutocompleteElementsLoaded(
|
|
1784
|
+
onAutocompleteElementsLoaded(): void;
|
|
1564
1785
|
getDeleteButtonAriaLabel(element: unknown): string;
|
|
1565
1786
|
hasDefaultDeleteFocusArea(): boolean;
|
|
1566
1787
|
getBadgeLabel(element: any): string;
|
|
1567
|
-
private manageListWhenElementsAreLoaded;
|
|
1568
1788
|
private findElementByModelItem;
|
|
1569
1789
|
private getValidValue;
|
|
1570
1790
|
private focusNextAreaAfterDelete;
|
|
1571
1791
|
private filterAutocompleteElements;
|
|
1572
|
-
private
|
|
1573
|
-
private
|
|
1574
|
-
private showAlertMessageAndHideAutocomplete;
|
|
1792
|
+
private focusAfterAddingAnItem;
|
|
1793
|
+
private applySuggestionsToAutocomplete;
|
|
1575
1794
|
private manageScreenReaderAnnouncement;
|
|
1576
1795
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnMultiselectAutocompleteComponent, never>;
|
|
1577
1796
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnMultiselectAutocompleteComponent, "foehn-multiselect-autocomplete", never, { "elementBadgeLabel": { "alias": "elementBadgeLabel"; "required": false; "isSignal": true; }; "selectedItemsListLegend": { "alias": "selectedItemsListLegend"; "required": false; "isSignal": true; }; "noElementsSelectedLabel": { "alias": "noElementsSelectedLabel"; "required": false; "isSignal": true; }; "excludeFromErrorSummary": { "alias": "excludeFromErrorSummary"; "required": false; "isSignal": true; }; "defaultElementValues": { "alias": "defaultElementValues"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1578
1797
|
}
|
|
1579
1798
|
|
|
1580
1799
|
declare class FoehnInputEmailComponent extends FoehnInputStringComponent implements OnInit {
|
|
1581
|
-
timeoutReference: any;
|
|
1582
1800
|
readonly autocomplete: _angular_core.InputSignalWithTransform<string | boolean | undefined, string | boolean | undefined>;
|
|
1583
1801
|
private readonly dictionaryService;
|
|
1584
1802
|
ngOnInit(): void;
|
|
1585
|
-
onModelChange(value: string): void;
|
|
1586
1803
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnInputEmailComponent, never>;
|
|
1587
1804
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnInputEmailComponent, "foehn-input-email", never, { "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1588
1805
|
}
|
|
1589
1806
|
|
|
1590
1807
|
declare class FoehnInputHiddenComponent extends FoehnInputStringComponent implements OnInit {
|
|
1591
|
-
timeoutReference: any;
|
|
1592
1808
|
readonly model: _angular_core.ModelSignal<string | null | undefined>;
|
|
1593
1809
|
constructor();
|
|
1594
1810
|
ngOnInit(): void;
|
|
1595
|
-
onModelChange(value: string | null): void;
|
|
1596
1811
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnInputHiddenComponent, never>;
|
|
1597
1812
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnInputHiddenComponent, "foehn-input-hidden", never, { "model": { "alias": "model"; "required": false; "isSignal": true; }; }, { "model": "modelChange"; }, never, ["*"], true, never>;
|
|
1598
1813
|
}
|
|
@@ -1639,10 +1854,8 @@ declare class FoehnInputNumberComponent extends FoehnInputStringComponent implem
|
|
|
1639
1854
|
}
|
|
1640
1855
|
|
|
1641
1856
|
declare class FoehnInputPasswordComponent extends FoehnInputStringComponent implements OnInit {
|
|
1642
|
-
timeoutReference: any;
|
|
1643
1857
|
readonly autocomplete: _angular_core.InputSignalWithTransform<string | boolean | undefined, string | boolean | undefined>;
|
|
1644
1858
|
ngOnInit(): void;
|
|
1645
|
-
onModelChange(value: string): void;
|
|
1646
1859
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnInputPasswordComponent, never>;
|
|
1647
1860
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnInputPasswordComponent, "foehn-input-password", never, { "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1648
1861
|
}
|
|
@@ -1672,7 +1885,7 @@ declare class FoehnInputPrefixedTextComponent extends FoehnInputStringComponent
|
|
|
1672
1885
|
readonly prefixColClass: _angular_core.InputSignal<string>;
|
|
1673
1886
|
readonly textColClass: _angular_core.InputSignal<string>;
|
|
1674
1887
|
readonly text: _angular_core.Signal<string | null>;
|
|
1675
|
-
private previousPrefix;
|
|
1888
|
+
private readonly previousPrefix;
|
|
1676
1889
|
constructor();
|
|
1677
1890
|
onTextChange(value: string | undefined | null): void;
|
|
1678
1891
|
updateFullText(text: string | null | undefined): void;
|
|
@@ -1682,24 +1895,28 @@ declare class FoehnInputPrefixedTextComponent extends FoehnInputStringComponent
|
|
|
1682
1895
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnInputPrefixedTextComponent, "foehn-input-prefixed-text", never, { "prefix": { "alias": "prefix"; "required": false; "isSignal": true; }; "prefixColClass": { "alias": "prefixColClass"; "required": false; "isSignal": true; }; "textColClass": { "alias": "textColClass"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1683
1896
|
}
|
|
1684
1897
|
|
|
1685
|
-
declare class FoehnInputTextareaComponent extends FoehnInputStringComponent
|
|
1898
|
+
declare class FoehnInputTextareaComponent extends FoehnInputStringComponent {
|
|
1686
1899
|
readonly rows: _angular_core.InputSignal<number>;
|
|
1687
1900
|
readonly displayCharCount: _angular_core.InputSignal<boolean | undefined>;
|
|
1688
|
-
|
|
1689
|
-
charCountLeft: number | undefined
|
|
1690
|
-
charCountLabel: string | undefined
|
|
1691
|
-
|
|
1901
|
+
/** The characters left before max, when the count is displayed. */
|
|
1902
|
+
readonly charCountLeft: _angular_core.Signal<number | undefined>;
|
|
1903
|
+
readonly charCountLabel: _angular_core.Signal<string | undefined>;
|
|
1904
|
+
readonly isCharCountExceeded: _angular_core.Signal<boolean>;
|
|
1905
|
+
/** Announces the count once 10 characters or less are left. */
|
|
1906
|
+
readonly ariaLiveStatus: _angular_core.Signal<"off" | "assertive">;
|
|
1692
1907
|
private readonly dictionary;
|
|
1693
|
-
ngOnInit(): void;
|
|
1694
|
-
onModelChange(value: string): void;
|
|
1695
|
-
countCharLeft(): void;
|
|
1696
|
-
checkCharCountExceeded(): void;
|
|
1697
1908
|
private getCharCountLabel;
|
|
1698
1909
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnInputTextareaComponent, never>;
|
|
1699
1910
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnInputTextareaComponent, "foehn-input-textarea", never, { "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "displayCharCount": { "alias": "displayCharCount"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1700
1911
|
}
|
|
1701
1912
|
|
|
1702
|
-
|
|
1913
|
+
/**
|
|
1914
|
+
* The model of `foehn-input-date`: `[year, month, day]`, a part not entered being `null`. It is the JSON of a
|
|
1915
|
+
* `LenientLocalDate` of prestations-be.
|
|
1916
|
+
*/
|
|
1917
|
+
type FoehnDateModel = (number | null)[];
|
|
1918
|
+
|
|
1919
|
+
declare class FoehnDateComponent extends FoehnInputComponent<FoehnDateModel> {
|
|
1703
1920
|
readonly disableDay: _angular_core.InputSignal<boolean>;
|
|
1704
1921
|
readonly disableMonth: _angular_core.InputSignal<boolean>;
|
|
1705
1922
|
readonly disableYear: _angular_core.InputSignal<boolean>;
|
|
@@ -1708,29 +1925,35 @@ declare class FoehnDateComponent extends FoehnInputComponent<(number | null)[]>
|
|
|
1708
1925
|
readonly maxDate: _angular_core.InputSignal<number[] | undefined>;
|
|
1709
1926
|
readonly childrenLabelSrOnly: _angular_core.InputSignal<boolean>;
|
|
1710
1927
|
readonly clearButton: _angular_core.InputSignal<boolean>;
|
|
1711
|
-
day: string | null
|
|
1712
|
-
month: string | null
|
|
1713
|
-
year: string | null
|
|
1714
|
-
datePickerModel: number[] | null
|
|
1928
|
+
readonly day: _angular_core.WritableSignal<string | null>;
|
|
1929
|
+
readonly month: _angular_core.WritableSignal<string | null>;
|
|
1930
|
+
readonly year: _angular_core.WritableSignal<string | null>;
|
|
1931
|
+
readonly datePickerModel: _angular_core.WritableSignal<number[] | null>;
|
|
1715
1932
|
readonly disabledComputed: Signal<boolean>;
|
|
1716
1933
|
constructor();
|
|
1717
1934
|
updateDate(): void;
|
|
1718
1935
|
updateDateFromDatePicker(date: number[] | null): void;
|
|
1719
1936
|
handleUserInput(): void;
|
|
1720
|
-
handleDatePickerUserInput(date:
|
|
1721
|
-
|
|
1722
|
-
getValidValue(): (number | null)[] | null | undefined;
|
|
1937
|
+
handleDatePickerUserInput(date: FoehnDateModel | null): void;
|
|
1938
|
+
getValidValue(): FoehnDateModel | null | undefined;
|
|
1723
1939
|
shouldDisplayDatePicker(): boolean;
|
|
1724
1940
|
resetModel(): void;
|
|
1725
1941
|
isEmpty(): boolean;
|
|
1726
1942
|
isEmptyDependingOnDisabled(): boolean;
|
|
1943
|
+
private getDatePart;
|
|
1727
1944
|
private toNumber;
|
|
1728
1945
|
private numberToString;
|
|
1729
1946
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnDateComponent, never>;
|
|
1730
1947
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnDateComponent, "foehn-input-date", never, { "disableDay": { "alias": "disableDay"; "required": false; "isSignal": true; }; "disableMonth": { "alias": "disableMonth"; "required": false; "isSignal": true; }; "disableYear": { "alias": "disableYear"; "required": false; "isSignal": true; }; "hideDatePickerButton": { "alias": "hideDatePickerButton"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "childrenLabelSrOnly": { "alias": "childrenLabelSrOnly"; "required": false; "isSignal": true; }; "clearButton": { "alias": "clearButton"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1731
1948
|
}
|
|
1732
1949
|
|
|
1733
|
-
|
|
1950
|
+
/**
|
|
1951
|
+
* The model of `foehn-input-date-time`: `[year, month, day, hour, minute]`, a part not entered being `null`. It is the
|
|
1952
|
+
* JSON of a `LenientLocalDateTime` of prestations-be.
|
|
1953
|
+
*/
|
|
1954
|
+
type FoehnDateTimeModel = (number | null)[];
|
|
1955
|
+
|
|
1956
|
+
declare class FoehnDateTimeComponent extends FoehnInputComponent<FoehnDateTimeModel> {
|
|
1734
1957
|
readonly disableDay: _angular_core.InputSignal<boolean>;
|
|
1735
1958
|
readonly disableMonth: _angular_core.InputSignal<boolean>;
|
|
1736
1959
|
readonly disableYear: _angular_core.InputSignal<boolean>;
|
|
@@ -1739,25 +1962,30 @@ declare class FoehnDateTimeComponent extends FoehnInputComponent<(number | null)
|
|
|
1739
1962
|
readonly hideDatePickerButton: _angular_core.InputSignal<boolean>;
|
|
1740
1963
|
readonly childrenLabelSrOnly: _angular_core.InputSignal<boolean>;
|
|
1741
1964
|
readonly clearButton: _angular_core.InputSignal<boolean>;
|
|
1742
|
-
date:
|
|
1743
|
-
time: string | null
|
|
1965
|
+
readonly date: _angular_core.WritableSignal<FoehnDateModel | null>;
|
|
1966
|
+
readonly time: _angular_core.WritableSignal<string | null>;
|
|
1744
1967
|
private readonly userInputTimeSubject;
|
|
1745
1968
|
private readonly timeModelChangeSubject;
|
|
1746
1969
|
private readonly dateHelper;
|
|
1970
|
+
private readonly pendingTasksService;
|
|
1971
|
+
/**
|
|
1972
|
+
* The application is not stable (e.g. fixture.whenStable() in tests) while a time user input is debounced.
|
|
1973
|
+
*/
|
|
1974
|
+
private removePendingTimeInputTask;
|
|
1747
1975
|
constructor();
|
|
1748
1976
|
updateDateTime(): void;
|
|
1749
1977
|
handleUserInput(): void;
|
|
1750
1978
|
timeModelChange(value: string | null | undefined): void;
|
|
1751
1979
|
handleUserInputTime(value: string | null | undefined): void;
|
|
1752
1980
|
handleUserInputDate(): void;
|
|
1753
|
-
|
|
1754
|
-
getValidValue(): (number | null)[] | null | undefined;
|
|
1981
|
+
getValidValue(): FoehnDateTimeModel | null | undefined;
|
|
1755
1982
|
resetModel(): void;
|
|
1756
1983
|
isEmpty(): boolean;
|
|
1757
1984
|
isEmptyDependingOnDisabled(): boolean;
|
|
1758
1985
|
private isTimeEmpty;
|
|
1759
1986
|
private isDateEmpty;
|
|
1760
1987
|
private isDateEmptyDependingOnDisabled;
|
|
1988
|
+
private stopPendingTimeInputTask;
|
|
1761
1989
|
private toNumber;
|
|
1762
1990
|
private numberToString;
|
|
1763
1991
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnDateTimeComponent, never>;
|
|
@@ -1767,15 +1995,18 @@ declare class FoehnDateTimeComponent extends FoehnInputComponent<(number | null)
|
|
|
1767
1995
|
declare class FoehnTimeComponent extends FoehnInputStringComponent {
|
|
1768
1996
|
readonly childrenLabelSrOnly: _angular_core.InputSignal<boolean>;
|
|
1769
1997
|
readonly clearButton: _angular_core.InputSignal<boolean>;
|
|
1770
|
-
hour: string | null
|
|
1771
|
-
minute: string | null
|
|
1998
|
+
readonly hour: _angular_core.WritableSignal<string | null>;
|
|
1999
|
+
readonly minute: _angular_core.WritableSignal<string | null>;
|
|
1772
2000
|
private readonly dateHelper;
|
|
1773
2001
|
constructor();
|
|
1774
2002
|
updateTime(): void;
|
|
1775
2003
|
handleUserInput(): void;
|
|
1776
|
-
onModelChange(value: string): void;
|
|
1777
2004
|
resetModel(): void;
|
|
1778
2005
|
isEmpty(): boolean;
|
|
2006
|
+
/**
|
|
2007
|
+
* @returns the part of the time of the model, the previous value when the model is not a complete time
|
|
2008
|
+
*/
|
|
2009
|
+
private getTimePart;
|
|
1779
2010
|
private getValidValue;
|
|
1780
2011
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnTimeComponent, never>;
|
|
1781
2012
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnTimeComponent, "foehn-input-time", never, { "childrenLabelSrOnly": { "alias": "childrenLabelSrOnly"; "required": false; "isSignal": true; }; "clearButton": { "alias": "clearButton"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
@@ -1783,15 +2014,16 @@ declare class FoehnTimeComponent extends FoehnInputStringComponent {
|
|
|
1783
2014
|
|
|
1784
2015
|
declare class FoehnInputNav13Component extends FoehnInputStringComponent implements OnInit {
|
|
1785
2016
|
PREFIX_NAVS: string;
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
2017
|
+
/** The parts of the model after 756, changed by the sub components. */
|
|
2018
|
+
readonly part2: _angular_core.WritableSignal<string | null>;
|
|
2019
|
+
readonly part3: _angular_core.WritableSignal<string | null>;
|
|
2020
|
+
readonly part4: _angular_core.WritableSignal<string | null>;
|
|
1789
2021
|
readonly label: _angular_core.InputSignalWithTransform<string | undefined, string | undefined>;
|
|
1790
2022
|
constructor();
|
|
1791
2023
|
ngOnInit(): void;
|
|
1792
2024
|
updateNavs(): void;
|
|
1793
2025
|
handleUserInput(): void;
|
|
1794
|
-
onModelChange(
|
|
2026
|
+
onModelChange(_value: string | null | undefined): void;
|
|
1795
2027
|
onPaste(event: ClipboardEvent): void;
|
|
1796
2028
|
private splitValue;
|
|
1797
2029
|
private getValidValue;
|
|
@@ -1821,7 +2053,13 @@ declare class DisplayCurrencyPipe implements PipeTransform {
|
|
|
1821
2053
|
|
|
1822
2054
|
declare class DisplayDatePipe implements PipeTransform {
|
|
1823
2055
|
private readonly dateHelper;
|
|
1824
|
-
|
|
2056
|
+
/**
|
|
2057
|
+
* @param value a Date, or a date or a date-time as an array (e.g. the model of `foehn-input-date` or
|
|
2058
|
+
* `foehn-input-date-time`)
|
|
2059
|
+
* @param showTime whether to display the time, when the value has one
|
|
2060
|
+
* @returns the date to display, null when it is not complete (a part not entered)
|
|
2061
|
+
*/
|
|
2062
|
+
transform(value: Date | FoehnDateModel | FoehnDateTimeModel | null | undefined, showTime?: boolean): string | null;
|
|
1825
2063
|
private transformFromDate;
|
|
1826
2064
|
private transformFromArray;
|
|
1827
2065
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DisplayDatePipe, never>;
|
|
@@ -1853,12 +2091,13 @@ declare const GrowlType: {
|
|
|
1853
2091
|
DANGER: string;
|
|
1854
2092
|
};
|
|
1855
2093
|
|
|
1856
|
-
declare class SdkDictionaryPipe implements PipeTransform {
|
|
2094
|
+
declare class SdkDictionaryPipe implements PipeTransform, OnDestroy {
|
|
1857
2095
|
private readonly dictionaryService;
|
|
1858
2096
|
private readonly ref;
|
|
1859
2097
|
private readonly asyncPipe;
|
|
1860
2098
|
constructor();
|
|
1861
2099
|
transform(key: any, placeHolderType?: PlaceholderType): any;
|
|
2100
|
+
ngOnDestroy(): void;
|
|
1862
2101
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdkDictionaryPipe, never>;
|
|
1863
2102
|
static ɵpipe: _angular_core.ɵɵPipeDeclaration<SdkDictionaryPipe, "fromDictionary", true>;
|
|
1864
2103
|
}
|
|
@@ -1868,17 +2107,25 @@ declare abstract class AbstractFoehnNavigationComponent {
|
|
|
1868
2107
|
readonly showNextButton: _angular_core.InputSignal<boolean>;
|
|
1869
2108
|
readonly nextLabel: _angular_core.InputSignal<string>;
|
|
1870
2109
|
readonly prevLabel: _angular_core.InputSignal<string>;
|
|
2110
|
+
readonly loadingLabel: _angular_core.InputSignal<string>;
|
|
1871
2111
|
readonly continueLaterLabel: _angular_core.InputSignal<string>;
|
|
1872
2112
|
readonly continueLaterAlreadyRegisteredLabel: _angular_core.InputSignal<string>;
|
|
1873
2113
|
readonly continueLaterConnectedLabel: _angular_core.InputSignal<string>;
|
|
1874
2114
|
readonly triggerRecoveryOnPageChange: _angular_core.InputSignal<boolean>;
|
|
1875
2115
|
readonly onNext: _angular_core.OutputEmitterRef<void>;
|
|
1876
2116
|
readonly onPrevious: _angular_core.OutputEmitterRef<void>;
|
|
2117
|
+
readonly pendingNavigationDirection: Signal<NavigationDirection | null>;
|
|
2118
|
+
readonly loadingDirection: Signal<NavigationDirection | null>;
|
|
2119
|
+
readonly isNavigating: Signal<boolean>;
|
|
2120
|
+
readonly isLoading: Signal<boolean>;
|
|
2121
|
+
readonly isLoadingNext: Signal<boolean>;
|
|
2122
|
+
readonly isLoadingPrevious: Signal<boolean>;
|
|
2123
|
+
constructor();
|
|
1877
2124
|
goToNext(): void;
|
|
1878
2125
|
goToPrevious(): void;
|
|
1879
2126
|
canShowNextButton(): boolean;
|
|
1880
2127
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AbstractFoehnNavigationComponent, never>;
|
|
1881
|
-
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>;
|
|
2128
|
+
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>;
|
|
1882
2129
|
}
|
|
1883
2130
|
|
|
1884
2131
|
declare class FoehnNavigationComponent extends AbstractFoehnNavigationComponent implements OnInit {
|
|
@@ -2141,8 +2388,8 @@ declare class FoehnListComponent implements OnChanges {
|
|
|
2141
2388
|
readonly trackByFn: _angular_core.InputSignal<(index: number, _item: unknown) => number | string>;
|
|
2142
2389
|
readonly templateVariable: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
2143
2390
|
readonly pageChange: _angular_core.OutputEmitterRef<PageChangeEvent>;
|
|
2144
|
-
currentPage: number
|
|
2145
|
-
filteredList: unknown[]
|
|
2391
|
+
readonly currentPage: _angular_core.WritableSignal<number>;
|
|
2392
|
+
readonly filteredList: _angular_core.WritableSignal<unknown[]>;
|
|
2146
2393
|
ngOnChanges(changes: SimpleChanges): void;
|
|
2147
2394
|
previousPage(): void;
|
|
2148
2395
|
hasPreviousPage(): boolean;
|
|
@@ -2184,8 +2431,8 @@ declare class TableSort {
|
|
|
2184
2431
|
sortAttribute?: string;
|
|
2185
2432
|
}
|
|
2186
2433
|
|
|
2187
|
-
declare class FoehnTableComponent extends FoehnInputComponent<unknown[]>
|
|
2188
|
-
readonly columnsConfiguration: _angular_core.
|
|
2434
|
+
declare class FoehnTableComponent extends FoehnInputComponent<unknown[]> {
|
|
2435
|
+
readonly columnsConfiguration: _angular_core.InputSignal<FoehnTableColumnConfiguration<any>[] | undefined>;
|
|
2189
2436
|
readonly itemsPerPage: _angular_core.InputSignal<number>;
|
|
2190
2437
|
readonly fixedPageCount: _angular_core.InputSignal<number | undefined>;
|
|
2191
2438
|
readonly sort: _angular_core.ModelSignal<TableSort | undefined>;
|
|
@@ -2198,12 +2445,17 @@ declare class FoehnTableComponent extends FoehnInputComponent<unknown[]> impleme
|
|
|
2198
2445
|
readonly trackByFn: _angular_core.InputSignal<TrackByFunction<unknown>>;
|
|
2199
2446
|
readonly pageChange: _angular_core.OutputEmitterRef<FoehnTablePageChangeEvent>;
|
|
2200
2447
|
readonly rowClick: _angular_core.OutputEmitterRef<RowElement>;
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2448
|
+
/**
|
|
2449
|
+
* The page displayed, changed by the navigation. Back to the first page when the list, itemsPerPage or
|
|
2450
|
+
* fixedPageCount leave it without any item. Also checked again on a new sort (see filteredList).
|
|
2451
|
+
*/
|
|
2452
|
+
readonly currentPage: _angular_core.WritableSignal<number>;
|
|
2453
|
+
/**
|
|
2454
|
+
* The items of the current page. A new sort refreshes them: the page can sort its list in place (same array),
|
|
2455
|
+
* which doesn't change the model.
|
|
2456
|
+
*/
|
|
2457
|
+
readonly filteredList: _angular_core.Signal<unknown[]>;
|
|
2205
2458
|
trackFoehnTableColumnConfiguration: TrackByFunction<FoehnTableColumnConfiguration<any>>;
|
|
2206
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
2207
2459
|
previousPage(): void;
|
|
2208
2460
|
hasPreviousPage(): boolean;
|
|
2209
2461
|
nextPage(): void;
|
|
@@ -2213,9 +2465,13 @@ declare class FoehnTableComponent extends FoehnInputComponent<unknown[]> impleme
|
|
|
2213
2465
|
triggerSort(sortAttribute: string): void;
|
|
2214
2466
|
manageRowClick(rowElem: HTMLTableRowElement, item: unknown): void;
|
|
2215
2467
|
onSpaceKeydown(event: Event, rowElem: HTMLTableRowElement, item: unknown): void;
|
|
2216
|
-
|
|
2468
|
+
/**
|
|
2469
|
+
* @param page a page of the list
|
|
2470
|
+
* @returns the page, or the first one when the list has no item for it
|
|
2471
|
+
*/
|
|
2472
|
+
private existingPage;
|
|
2217
2473
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnTableComponent, never>;
|
|
2218
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnTableComponent, "foehn-table", never, { "columnsConfiguration": { "alias": "columnsConfiguration"; "required": false; "isSignal": true; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; "isSignal": true; }; "fixedPageCount": { "alias": "fixedPageCount"; "required": false; "isSignal": true; }; "sort": { "alias": "sort"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "totalElements": { "alias": "totalElements"; "required": false; "isSignal": true; }; "titleSrOnly": { "alias": "titleSrOnly"; "required": false; "isSignal": true; }; "previousLabel": { "alias": "previousLabel"; "required": false; "isSignal": true; }; "nextLabel": { "alias": "nextLabel"; "required": false; "isSignal": true; }; "tableClass": { "alias": "tableClass"; "required": false; "isSignal": true; }; "trackByFn": { "alias": "trackByFn"; "required": false; "isSignal": true; }; }, { "
|
|
2474
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnTableComponent, "foehn-table", never, { "columnsConfiguration": { "alias": "columnsConfiguration"; "required": false; "isSignal": true; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; "isSignal": true; }; "fixedPageCount": { "alias": "fixedPageCount"; "required": false; "isSignal": true; }; "sort": { "alias": "sort"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "totalElements": { "alias": "totalElements"; "required": false; "isSignal": true; }; "titleSrOnly": { "alias": "titleSrOnly"; "required": false; "isSignal": true; }; "previousLabel": { "alias": "previousLabel"; "required": false; "isSignal": true; }; "nextLabel": { "alias": "nextLabel"; "required": false; "isSignal": true; }; "tableClass": { "alias": "tableClass"; "required": false; "isSignal": true; }; "trackByFn": { "alias": "trackByFn"; "required": false; "isSignal": true; }; }, { "sort": "sortChange"; "pageChange": "pageChange"; "rowClick": "rowClick"; }, never, ["*"], true, never>;
|
|
2219
2475
|
}
|
|
2220
2476
|
|
|
2221
2477
|
declare class RegisterNgModelService {
|
|
@@ -2303,6 +2559,7 @@ declare class GrecaptchaComponent implements OnInit, OnDestroy {
|
|
|
2303
2559
|
private readonly sdkLogsService;
|
|
2304
2560
|
private readonly destroyRef;
|
|
2305
2561
|
private widgetId;
|
|
2562
|
+
private scriptElement;
|
|
2306
2563
|
ngOnInit(): void;
|
|
2307
2564
|
ngOnDestroy(): void;
|
|
2308
2565
|
reset(): void;
|
|
@@ -2320,21 +2577,17 @@ declare class GrecaptchaComponent implements OnInit, OnDestroy {
|
|
|
2320
2577
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GrecaptchaComponent, "app-grecaptcha", never, { "siteKey": { "alias": "siteKey"; "required": false; "isSignal": true; }; }, { "loaded": "loaded"; "scriptError": "scriptError"; "tokenOnSuccess": "tokenOnSuccess"; "destroyed": "destroyed"; }, never, never, true, never>;
|
|
2321
2578
|
}
|
|
2322
2579
|
|
|
2323
|
-
declare class SdkRecaptchaComponent
|
|
2580
|
+
declare class SdkRecaptchaComponent {
|
|
2324
2581
|
readonly grecaptcha: _angular_core.Signal<GrecaptchaComponent | undefined>;
|
|
2325
2582
|
shouldDisplay: Observable<boolean>;
|
|
2326
|
-
isLoaded: boolean
|
|
2327
|
-
hasLoadingError: boolean
|
|
2583
|
+
readonly isLoaded: _angular_core.WritableSignal<boolean>;
|
|
2584
|
+
readonly hasLoadingError: _angular_core.WritableSignal<boolean>;
|
|
2328
2585
|
errors: Observable<FormError[]>;
|
|
2329
2586
|
publicKey: Observable<string | null>;
|
|
2330
2587
|
recaptchaUrlForUserError: Observable<string | null>;
|
|
2331
2588
|
private readonly recaptchaService;
|
|
2332
|
-
private readonly cdr;
|
|
2333
2589
|
private readonly destroyRef;
|
|
2334
|
-
private forceDetectChange;
|
|
2335
2590
|
constructor();
|
|
2336
|
-
ngOnInit(): void;
|
|
2337
|
-
ngOnDestroy(): void;
|
|
2338
2591
|
setIsLoaded(isLoaded: boolean): void;
|
|
2339
2592
|
setScriptError(scriptError: boolean): void;
|
|
2340
2593
|
tokenOnSuccess(token: string | null): void;
|
|
@@ -2354,7 +2607,7 @@ declare const IAM_ACV_OIDC_REDIRECT_LOCATION_REGEX: InjectionToken<RegExp>;
|
|
|
2354
2607
|
|
|
2355
2608
|
declare class RedirectComponent implements OnDestroy {
|
|
2356
2609
|
isModalVisible: Observable<boolean>;
|
|
2357
|
-
counter: number
|
|
2610
|
+
readonly counter: _angular_core.WritableSignal<number>;
|
|
2358
2611
|
redirectUrl: string;
|
|
2359
2612
|
private readonly DEFAULT_COUNTER;
|
|
2360
2613
|
private readonly iamInterceptor;
|
|
@@ -2400,10 +2653,20 @@ declare class DocumentReferenceWithFile extends DocumentReference {
|
|
|
2400
2653
|
file: File | undefined | null;
|
|
2401
2654
|
}
|
|
2402
2655
|
|
|
2656
|
+
declare const getSafeFileNameForErrorMessage: (fileName: string) => string;
|
|
2657
|
+
/**
|
|
2658
|
+
* Limits of an uploader overriding the ones of the application info, displayed in its error messages.
|
|
2659
|
+
*/
|
|
2660
|
+
interface UploaderErrorLimits {
|
|
2661
|
+
overrideAcceptedExtensions?: string;
|
|
2662
|
+
overrideMaxFileNameLength?: number;
|
|
2663
|
+
overrideIllegalCharacters?: string;
|
|
2664
|
+
maxFileSizeInMo?: number;
|
|
2665
|
+
}
|
|
2403
2666
|
declare class UploaderHelper {
|
|
2404
2667
|
private readonly dictionaryService;
|
|
2405
2668
|
private readonly applicationInfoService;
|
|
2406
|
-
private _accept;
|
|
2669
|
+
private readonly _accept;
|
|
2407
2670
|
private _fileMaxSizeInBytesByFormKey;
|
|
2408
2671
|
private _maxFileNameLength;
|
|
2409
2672
|
private _illegalCharacters;
|
|
@@ -2420,16 +2683,32 @@ declare class UploaderHelper {
|
|
|
2420
2683
|
get accept(): string;
|
|
2421
2684
|
set accept(value: string);
|
|
2422
2685
|
getMaxFileSizeInBytesForFormKey(formKey: string): number | undefined | null;
|
|
2423
|
-
|
|
2686
|
+
/**
|
|
2687
|
+
* The maximum size of a file: the one of its form key (application info) and `maxFileSizeInMo` (a limit of the
|
|
2688
|
+
* component), the smallest of both.
|
|
2689
|
+
*/
|
|
2690
|
+
getMaxFileSizeInBytes(formKey: string, maxFileSizeInMo?: number): number | null;
|
|
2691
|
+
isFileTooBig(formKey: string, fileSizeInBytes: number, maxFileSizeInMo?: number): boolean;
|
|
2424
2692
|
isFileTooSmall(fileSizeInBytes: number): boolean;
|
|
2425
2693
|
isFileNameLengthValid(filename: string, overrideMaxFileNameLength?: number): boolean;
|
|
2426
2694
|
isFileNameNameValid(filename: string, overrideIllegalCharacters?: string): boolean;
|
|
2427
2695
|
getFileExtension(filename: string): string;
|
|
2428
2696
|
isFileExtensionValid(fileExtension: string, overrideAcceptedExtensions?: string): boolean;
|
|
2429
2697
|
getUniqueErrorByCode(name: string, errorCode: string, fileName: string, customErrors: Record<string, string>, overrideAcceptedExtensions?: string, overrideMaxFileNameLength?: number, overrideIllegalCharacters?: string): FormError;
|
|
2430
|
-
addCustomErrorOrDefault(name: string, destinationErrors: FormError[], errorCode: string, fileName: string, customErrors: Record<string, string>,
|
|
2698
|
+
addCustomErrorOrDefault(name: string, destinationErrors: FormError[], errorCode: string, fileName: string, customErrors: Record<string, string>, limits?: UploaderErrorLimits): void;
|
|
2699
|
+
/**
|
|
2700
|
+
* The default messages of the upload errors, in the current language.
|
|
2701
|
+
*/
|
|
2702
|
+
getDefaultCustomErrors(): Record<string, string>;
|
|
2703
|
+
/**
|
|
2704
|
+
* The messages of the upload errors: the given custom errors, completed with the default messages.
|
|
2705
|
+
*/
|
|
2706
|
+
mergeCustomErrors(customErrors: Record<string, string>, defaultCustomErrors?: Record<string, string>): Record<string, string>;
|
|
2707
|
+
/**
|
|
2708
|
+
* @deprecated Overwrites the given custom errors with the default messages: use `mergeCustomErrors()`.
|
|
2709
|
+
*/
|
|
2431
2710
|
createDefaultCustomErrors(customErrors: Record<string, string>): void;
|
|
2432
|
-
getLocalErrors(name: string, files: File[], customErrors: Record<string, string>, overrideAcceptedExtensions?: string, overrideMaxFileNameLength?: number, overrideIllegalCharacters?: string): FormError[];
|
|
2711
|
+
getLocalErrors(name: string, files: File[], customErrors: Record<string, string>, overrideAcceptedExtensions?: string, overrideMaxFileNameLength?: number, overrideIllegalCharacters?: string, maxFileSizeInMo?: number): FormError[];
|
|
2433
2712
|
hasLiveUploadErrors(errors: FormError[]): boolean;
|
|
2434
2713
|
preventAndStop(event: any): void;
|
|
2435
2714
|
getAllFilesCount(data: any): string | null;
|
|
@@ -2442,6 +2721,7 @@ declare class UploaderHelper {
|
|
|
2442
2721
|
mapToFormData(documents: DocumentReferenceWithFile[], formKey: string, language: string): FormData;
|
|
2443
2722
|
removeCommasInLabel(label: string): string;
|
|
2444
2723
|
private isTooBig;
|
|
2724
|
+
private getUniqueError;
|
|
2445
2725
|
private replaceErrorMessageKeys;
|
|
2446
2726
|
private getDefaultUnknownErrorMessage;
|
|
2447
2727
|
private normalizeKey;
|
|
@@ -2482,11 +2762,13 @@ declare abstract class AbstractFoehnUploaderComponent<T> extends FoehnInputCompo
|
|
|
2482
2762
|
protected deleteDocumentSubject: BehaviorSubject<DocumentReference | File | null>;
|
|
2483
2763
|
protected uploadFilesSubject: BehaviorSubject<File[] | null>;
|
|
2484
2764
|
protected currentLanguage: string | undefined;
|
|
2765
|
+
protected readonly uploaderCustomErrors: _angular_core.Signal<Record<string, string>>;
|
|
2485
2766
|
protected readonly resolvedChooseButtonLabel: _angular_core.Signal<string>;
|
|
2486
2767
|
protected readonly resolvedChooseButtonLabelMultiple: _angular_core.Signal<string>;
|
|
2487
2768
|
protected readonly resolvedDropZoneLabel: _angular_core.Signal<string>;
|
|
2488
2769
|
protected readonly resolvedDropZoneLabelMultiple: _angular_core.Signal<string>;
|
|
2489
2770
|
protected readonly resolvedDeleteConfirmationMessage: _angular_core.Signal<string>;
|
|
2771
|
+
private readonly defaultCustomErrors;
|
|
2490
2772
|
constructor();
|
|
2491
2773
|
abstract get addedFiles(): unknown[];
|
|
2492
2774
|
onDocumentDragOver(event: any): void;
|
|
@@ -2503,6 +2785,14 @@ declare abstract class AbstractFoehnUploaderComponent<T> extends FoehnInputCompo
|
|
|
2503
2785
|
toMegaOctets(size: number): number;
|
|
2504
2786
|
hasLiveUploadErrors(): boolean;
|
|
2505
2787
|
protected removeFileOnConfirmation(document: DocumentReference | File): void;
|
|
2788
|
+
/**
|
|
2789
|
+
* A maximum size of each file, in addition to the one of its form key in the application info.
|
|
2790
|
+
*/
|
|
2791
|
+
protected getMaxFileSizeInMo(): number | undefined;
|
|
2792
|
+
/**
|
|
2793
|
+
* The limits of this uploader displayed in its error messages.
|
|
2794
|
+
*/
|
|
2795
|
+
protected getErrorLimits(): UploaderErrorLimits;
|
|
2506
2796
|
protected displayLocalErrors(files: File[]): FormError[];
|
|
2507
2797
|
protected isMaxSelectionReached(files: File[]): boolean;
|
|
2508
2798
|
protected isMaxFilesCountReached(files: File[]): boolean;
|
|
@@ -2512,6 +2802,17 @@ declare abstract class AbstractFoehnUploaderComponent<T> extends FoehnInputCompo
|
|
|
2512
2802
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AbstractFoehnUploaderComponent<any>, never, never, { "showUploadButton": { "alias": "showUploadButton"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "hideGlobalInfos": { "alias": "hideGlobalInfos"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "key": { "alias": "key"; "required": false; "isSignal": true; }; "overrideAcceptedExtensions": { "alias": "overrideAcceptedExtensions"; "required": false; "isSignal": true; }; "overrideMaxFileNameLength": { "alias": "overrideMaxFileNameLength"; "required": false; "isSignal": true; }; "overrideIllegalCharacters": { "alias": "overrideIllegalCharacters"; "required": false; "isSignal": true; }; "showDeleteConfirmationMessage": { "alias": "showDeleteConfirmationMessage"; "required": false; "isSignal": true; }; "maxSimultaneousSelectedFiles": { "alias": "maxSimultaneousSelectedFiles"; "required": false; "isSignal": true; }; "maxFilesCount": { "alias": "maxFilesCount"; "required": false; "isSignal": true; }; "maxFilesSizeInMo": { "alias": "maxFilesSizeInMo"; "required": false; "isSignal": true; }; "dragAndDrop": { "alias": "dragAndDrop"; "required": false; "isSignal": true; }; "shouldDisplayFileSavedConfirmation": { "alias": "shouldDisplayFileSavedConfirmation"; "required": false; "isSignal": true; }; "chooseButtonLabel": { "alias": "chooseButtonLabel"; "required": false; "isSignal": true; }; "chooseButtonLabelMultiple": { "alias": "chooseButtonLabelMultiple"; "required": false; "isSignal": true; }; "dropZoneLabel": { "alias": "dropZoneLabel"; "required": false; "isSignal": true; }; "dropZoneLabelMultiple": { "alias": "dropZoneLabelMultiple"; "required": false; "isSignal": true; }; "deleteConfirmationMessage": { "alias": "deleteConfirmationMessage"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2513
2803
|
}
|
|
2514
2804
|
|
|
2805
|
+
interface DocumentChanges {
|
|
2806
|
+
filesToAdd: File[];
|
|
2807
|
+
documentsToDelete: DocumentReference[];
|
|
2808
|
+
}
|
|
2809
|
+
/**
|
|
2810
|
+
* Computes what needs to be uploaded/deleted server-side by comparing a document list
|
|
2811
|
+
* currently held in a "local upload" model (mixing already persisted `DocumentReference`
|
|
2812
|
+
* and pending `DocumentReferenceWithFile`) against the list as it was originally loaded.
|
|
2813
|
+
*/
|
|
2814
|
+
declare function splitDocumentChanges(current: DocumentReference[] | undefined | null, original: DocumentReference[] | undefined | null): DocumentChanges;
|
|
2815
|
+
|
|
2515
2816
|
declare class PendingFiles {
|
|
2516
2817
|
url: string | undefined | null;
|
|
2517
2818
|
formKey: string | undefined | null;
|
|
@@ -2592,14 +2893,13 @@ declare class PendingUploadService {
|
|
|
2592
2893
|
private uploadPendingFilesAndSaveForm;
|
|
2593
2894
|
private executeSingleUpload;
|
|
2594
2895
|
private mergePendingUploadedServerResult;
|
|
2595
|
-
private setNestedValue;
|
|
2596
2896
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PendingUploadService, never>;
|
|
2597
2897
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<PendingUploadService>;
|
|
2598
2898
|
}
|
|
2599
2899
|
|
|
2600
2900
|
declare class FoehnMultiUploadComponent extends AbstractFoehnUploaderComponent<DocumentReference[]> implements OnInit, OnDestroy {
|
|
2601
2901
|
readonly url: _angular_core.InputSignal<string>;
|
|
2602
|
-
readonly reference: _angular_core.InputSignal<string | undefined>;
|
|
2902
|
+
readonly reference: _angular_core.InputSignal<string | null | undefined>;
|
|
2603
2903
|
multiUploadService: MultiUploadService;
|
|
2604
2904
|
pendingUploadService: PendingUploadService;
|
|
2605
2905
|
protected pageUploadLimitService: PageUploadLimitService;
|
|
@@ -2658,23 +2958,36 @@ declare class FoehnBoMultiUploadComponent extends AbstractFoehnUploaderComponent
|
|
|
2658
2958
|
readonly deleteUrl: _angular_core.InputSignal<string | undefined>;
|
|
2659
2959
|
readonly downloadUrl: _angular_core.InputSignal<string | undefined>;
|
|
2660
2960
|
readonly optionalLabelKey: _angular_core.InputSignal<string>;
|
|
2961
|
+
readonly localUpload: _angular_core.InputSignal<boolean>;
|
|
2962
|
+
readonly maxFileSizeInMo: _angular_core.InputSignal<number | undefined>;
|
|
2963
|
+
readonly chooseButtonStyleModifier: _angular_core.InputSignal<string | undefined>;
|
|
2661
2964
|
readonly documentDeleted: _angular_core.OutputEmitterRef<DocumentReference>;
|
|
2662
2965
|
boMultiUploadService: BoMultiUploadService;
|
|
2663
2966
|
protected pageUploadLimitService: PageUploadLimitService;
|
|
2967
|
+
private readonly blobUrls;
|
|
2968
|
+
private localSequence;
|
|
2664
2969
|
get addedFiles(): DocumentReference[];
|
|
2665
2970
|
ngOnInit(): void;
|
|
2666
2971
|
ngOnDestroy(): void;
|
|
2972
|
+
isPending(document: DocumentReference): boolean;
|
|
2973
|
+
getDocumentDownloadUrl(document: DocumentReference): string;
|
|
2667
2974
|
getTotalFilesSize(): number;
|
|
2668
2975
|
canAddMoreFiles(): boolean;
|
|
2669
2976
|
onFileChange(event: Event): void;
|
|
2670
2977
|
onDrop(event: any): void;
|
|
2978
|
+
protected getMaxFileSizeInMo(): number | undefined;
|
|
2979
|
+
protected removeFileOnConfirmation(document: DocumentReference | File): void;
|
|
2671
2980
|
private populateFileItemList;
|
|
2981
|
+
private addFilesLocally;
|
|
2982
|
+
private toPendingDocument;
|
|
2983
|
+
private removeDocumentLocally;
|
|
2984
|
+
private revokeBlobUrl;
|
|
2672
2985
|
private displayResultFromServer;
|
|
2673
2986
|
private removeDocumentFromModel;
|
|
2674
2987
|
private displayErrorsFromServer;
|
|
2675
2988
|
private manageSingleFile;
|
|
2676
2989
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnBoMultiUploadComponent, never>;
|
|
2677
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnBoMultiUploadComponent, "foehn-bo-multi-upload", never, { "uploadUrl": { "alias": "uploadUrl"; "required": false; "isSignal": true; }; "deleteUrl": { "alias": "deleteUrl"; "required": false; "isSignal": true; }; "downloadUrl": { "alias": "downloadUrl"; "required": false; "isSignal": true; }; "optionalLabelKey": { "alias": "optionalLabelKey"; "required": false; "isSignal": true; }; }, { "documentDeleted": "documentDeleted"; }, never, ["*"], true, never>;
|
|
2990
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnBoMultiUploadComponent, "foehn-bo-multi-upload", never, { "uploadUrl": { "alias": "uploadUrl"; "required": false; "isSignal": true; }; "deleteUrl": { "alias": "deleteUrl"; "required": false; "isSignal": true; }; "downloadUrl": { "alias": "downloadUrl"; "required": false; "isSignal": true; }; "optionalLabelKey": { "alias": "optionalLabelKey"; "required": false; "isSignal": true; }; "localUpload": { "alias": "localUpload"; "required": false; "isSignal": true; }; "maxFileSizeInMo": { "alias": "maxFileSizeInMo"; "required": false; "isSignal": true; }; "chooseButtonStyleModifier": { "alias": "chooseButtonStyleModifier"; "required": false; "isSignal": true; }; }, { "documentDeleted": "documentDeleted"; }, never, ["*"], true, never>;
|
|
2678
2991
|
}
|
|
2679
2992
|
|
|
2680
2993
|
declare class FoehnPictureUploadComponent extends FoehnInputComponent<DocumentReference[]> implements OnInit {
|
|
@@ -2685,9 +2998,9 @@ declare class FoehnPictureUploadComponent extends FoehnInputComponent<DocumentRe
|
|
|
2685
2998
|
readonly resizeToHeight: _angular_core.InputSignal<number>;
|
|
2686
2999
|
readonly shouldDisplayFileSavedConfirmation: _angular_core.InputSignal<boolean>;
|
|
2687
3000
|
readonly acceptFormats = ".jpeg,.jpg,.png";
|
|
2688
|
-
pictureToCrop: Event | null
|
|
2689
|
-
croppedPictureAsBlob: Blob | null
|
|
2690
|
-
loading: boolean
|
|
3001
|
+
readonly pictureToCrop: _angular_core.WritableSignal<Event | null>;
|
|
3002
|
+
readonly croppedPictureAsBlob: _angular_core.WritableSignal<Blob | null>;
|
|
3003
|
+
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
2691
3004
|
protected currentLanguage: string | undefined;
|
|
2692
3005
|
private readonly uploadService;
|
|
2693
3006
|
private readonly dictionaryService;
|
|
@@ -2714,6 +3027,7 @@ declare abstract class AbstractUploadProgressService {
|
|
|
2714
3027
|
}
|
|
2715
3028
|
|
|
2716
3029
|
declare class AbstractFoehnGlobalUploadProgressBarComponent {
|
|
3030
|
+
#private;
|
|
2717
3031
|
readonly progressBarPanel: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2718
3032
|
showProgress: Observable<boolean>;
|
|
2719
3033
|
protected uploadProgressService: AbstractUploadProgressService;
|
|
@@ -2795,8 +3109,8 @@ declare class PendingPaymentComponent {
|
|
|
2795
3109
|
declare class SdkEpaymentComponent implements OnInit {
|
|
2796
3110
|
readonly baseUrl: _angular_core.InputSignal<string>;
|
|
2797
3111
|
platformFailureMessageDicoKey: string;
|
|
2798
|
-
failureModalDisplayed: boolean
|
|
2799
|
-
redirectModalDisplayed: boolean
|
|
3112
|
+
readonly failureModalDisplayed: _angular_core.WritableSignal<boolean>;
|
|
3113
|
+
readonly redirectModalDisplayed: _angular_core.WritableSignal<boolean>;
|
|
2800
3114
|
private readonly ePaymentService;
|
|
2801
3115
|
private readonly route;
|
|
2802
3116
|
private readonly gesDemService;
|
|
@@ -2834,11 +3148,11 @@ declare class EPaymentService {
|
|
|
2834
3148
|
}
|
|
2835
3149
|
|
|
2836
3150
|
declare class FoehnConfirmModalComponent implements OnInit {
|
|
2837
|
-
isVisible: boolean
|
|
3151
|
+
readonly isVisible: _angular_core.WritableSignal<boolean>;
|
|
3152
|
+
readonly content: Observable<FoehnConfirmModalContent | null>;
|
|
2838
3153
|
private readonly confirmModalService;
|
|
2839
3154
|
private readonly destroyRef;
|
|
2840
3155
|
constructor();
|
|
2841
|
-
get content(): Observable<FoehnConfirmModalContent | null>;
|
|
2842
3156
|
ngOnInit(): void;
|
|
2843
3157
|
cancel(): void;
|
|
2844
3158
|
ok(): void;
|
|
@@ -2848,12 +3162,13 @@ declare class FoehnConfirmModalComponent implements OnInit {
|
|
|
2848
3162
|
}
|
|
2849
3163
|
|
|
2850
3164
|
declare class FoehnHelpModalComponent {
|
|
2851
|
-
readonly
|
|
3165
|
+
readonly id: _angular_core.InputSignal<string>;
|
|
3166
|
+
readonly modalContent: _angular_core.InputSignal<HelpModal | null | undefined>;
|
|
2852
3167
|
readonly draggable: _angular_core.InputSignal<boolean>;
|
|
2853
3168
|
readonly hideable: _angular_core.InputSignal<boolean>;
|
|
2854
3169
|
readonly modalTrigger: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2855
3170
|
readonly content: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2856
|
-
private isVisible;
|
|
3171
|
+
private readonly isVisible;
|
|
2857
3172
|
get isModalVisible(): boolean;
|
|
2858
3173
|
get currentModalTitle(): string;
|
|
2859
3174
|
open(): void;
|
|
@@ -2861,41 +3176,18 @@ declare class FoehnHelpModalComponent {
|
|
|
2861
3176
|
closeOnModalClick(): void;
|
|
2862
3177
|
updateVisibilityStatus(status: boolean): void;
|
|
2863
3178
|
hasContent(): boolean;
|
|
3179
|
+
buildId(suffix?: string): string;
|
|
2864
3180
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnHelpModalComponent, never>;
|
|
2865
|
-
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>;
|
|
2866
|
-
}
|
|
2867
|
-
|
|
2868
|
-
declare class FoehnModalComponent {
|
|
2869
|
-
readonly isModalVisible: _angular_core.ModelSignal<boolean>;
|
|
2870
|
-
readonly id: _angular_core.InputSignal<string | undefined>;
|
|
2871
|
-
readonly modalBodyText: _angular_core.InputSignal<string | undefined>;
|
|
2872
|
-
readonly modalHeaderText: _angular_core.InputSignal<string | undefined>;
|
|
2873
|
-
readonly closeable: _angular_core.InputSignal<boolean>;
|
|
2874
|
-
readonly draggable: _angular_core.InputSignal<boolean>;
|
|
2875
|
-
readonly hideable: _angular_core.InputSignal<boolean>;
|
|
2876
|
-
readonly modalTriggerHtmlElement: _angular_core.InputSignal<HTMLElement | undefined>;
|
|
2877
|
-
readonly name: _angular_core.InputSignal<string | undefined>;
|
|
2878
|
-
readonly modalSize: _angular_core.InputSignal<string | undefined>;
|
|
2879
|
-
readonly modalBody: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2880
|
-
readonly modalTitle: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2881
|
-
readonly specificfooter: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2882
|
-
readonly modalDefaultCloseBtn: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2883
|
-
private previousIsVisible;
|
|
2884
|
-
private readonly visibilityEffect;
|
|
2885
|
-
handleKeyboardEvent(event: KeyboardEvent): void;
|
|
2886
|
-
private focusOnContainer;
|
|
2887
|
-
private focusOnModalTrigger;
|
|
2888
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnModalComponent, never>;
|
|
2889
|
-
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>;
|
|
3181
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnHelpModalComponent, "foehn-help-modal", never, { "id": { "alias": "id"; "required": true; "isSignal": true; }; "modalContent": { "alias": "modalContent"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "hideable": { "alias": "hideable"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
2890
3182
|
}
|
|
2891
3183
|
|
|
2892
3184
|
declare class FoehnPageModalComponent implements OnInit {
|
|
2893
|
-
wrongPublicModalVisible: boolean
|
|
2894
|
-
formattedPublicsCibles: string[]
|
|
3185
|
+
readonly wrongPublicModalVisible: _angular_core.WritableSignal<boolean>;
|
|
3186
|
+
readonly formattedPublicsCibles: _angular_core.WritableSignal<string[]>;
|
|
2895
3187
|
private readonly sessionInfo;
|
|
2896
3188
|
private readonly applicationInfoService;
|
|
2897
3189
|
private readonly foehnPageModalService;
|
|
2898
|
-
private userCategories;
|
|
3190
|
+
private readonly userCategories;
|
|
2899
3191
|
private publicsCibles;
|
|
2900
3192
|
ngOnInit(): void;
|
|
2901
3193
|
getFullLoginUrl(): Observable<string>;
|
|
@@ -2931,15 +3223,51 @@ declare class DateHelper {
|
|
|
2931
3223
|
private readonly dateTimeFormat;
|
|
2932
3224
|
private readonly datePipe;
|
|
2933
3225
|
constructor();
|
|
3226
|
+
/**
|
|
3227
|
+
* @param value a date (year, month, day), a part not entered being null
|
|
3228
|
+
* @returns whether the year, the month and the day are entered
|
|
3229
|
+
*/
|
|
2934
3230
|
private static isValidArray;
|
|
3231
|
+
/**
|
|
3232
|
+
* @param value a part of a time (e.g. an hour)
|
|
3233
|
+
* @param max its maximum (e.g. 23)
|
|
3234
|
+
* @returns whether it is entered and between 0 and max
|
|
3235
|
+
*/
|
|
3236
|
+
private static isInRange;
|
|
2935
3237
|
mapToDateFromNumberArray(object: any, ...fieldsNames: string[]): any;
|
|
2936
3238
|
mapAllToDateFromNumberArray(objects: any[], ...fieldsNames: string[]): any[];
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
3239
|
+
/**
|
|
3240
|
+
* @param dateInArray a date (`[year, month, day]`) or a date-time (`[year, month, day, hour, minute, second?]`)
|
|
3241
|
+
* @returns the date (in the time zone of the browser), null when it is not complete (e.g. the model of
|
|
3242
|
+
* `foehn-input-date` with a part not entered); the date only when the time is not complete
|
|
3243
|
+
* @throws for an array of 1, 2 or 4 numbers
|
|
3244
|
+
*/
|
|
3245
|
+
toDateFromNumberArray(dateInArray: FoehnDateModel | FoehnDateTimeModel | null | undefined): Date | null;
|
|
3246
|
+
/**
|
|
3247
|
+
* @param value a date or a date-time
|
|
3248
|
+
* @returns whether it has an hour and a minute (a date-time with its time entered)
|
|
3249
|
+
*/
|
|
3250
|
+
hasTime(value: FoehnDateModel | FoehnDateTimeModel | null | undefined): boolean;
|
|
3251
|
+
arrayToDisplayDateDMY(d: FoehnDateModel | FoehnDateTimeModel | null | undefined, showTime: boolean): string | null;
|
|
3252
|
+
toDayjsFromNumberArray(value: FoehnDateModel | null | undefined): dayjs.Dayjs | null;
|
|
3253
|
+
/**
|
|
3254
|
+
* @param value a date (3 parts, e.g. the model of `foehn-input-date`) or a date-time (5 parts or more, e.g. the
|
|
3255
|
+
* model of `foehn-input-date-time`), as the backend sends it (`LenientLocalDate`, `LenientLocalDateTime`)
|
|
3256
|
+
* @returns whether the date is complete and exists (not 30.02.2021) and, for a date-time, whether its hour (0 to
|
|
3257
|
+
* 23) and its minute (0 to 59) are entered, as `LenientLocalDateTime.isValid()` of prestations-be
|
|
3258
|
+
*/
|
|
3259
|
+
isValid(value: FoehnDateModel | FoehnDateTimeModel | null | undefined): boolean;
|
|
3260
|
+
/**
|
|
3261
|
+
* @param value a date or a date-time (only its date is considered)
|
|
3262
|
+
* @returns whether the date exists and is today (30.02.2026 is not the 02.03.2026)
|
|
3263
|
+
*/
|
|
3264
|
+
isToday(value: FoehnDateModel | FoehnDateTimeModel | null | undefined): boolean;
|
|
3265
|
+
leftPad(num: string | null | undefined): string;
|
|
3266
|
+
/**
|
|
3267
|
+
* @param value a date or a date-time
|
|
3268
|
+
* @returns whether its date is complete and exists (dayjs shifts the 30.02.2021 to the 02.03.2021)
|
|
3269
|
+
*/
|
|
3270
|
+
private isExistingDate;
|
|
2943
3271
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateHelper, never>;
|
|
2944
3272
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DateHelper>;
|
|
2945
3273
|
}
|
|
@@ -2958,13 +3286,19 @@ declare class CurrencyHelper {
|
|
|
2958
3286
|
|
|
2959
3287
|
declare class NumberCurrencyFormatterDirective implements OnInit {
|
|
2960
3288
|
private readonly host;
|
|
2961
|
-
private readonly
|
|
3289
|
+
private readonly injector;
|
|
2962
3290
|
private hasFocus;
|
|
3291
|
+
/**
|
|
3292
|
+
* Model value written by the formatting itself: its change must not be
|
|
3293
|
+
* formatted again, the input already displays the formatted value
|
|
3294
|
+
* (e.g. "-.00" for the model ".00").
|
|
3295
|
+
*/
|
|
3296
|
+
private modelSetByFormatting;
|
|
2963
3297
|
private readonly formattingEffect;
|
|
2964
3298
|
onBlur(event: FocusEvent): void;
|
|
2965
3299
|
onFocus(event: FocusEvent): void;
|
|
2966
|
-
onModelChange(value: string | null | undefined): void;
|
|
2967
3300
|
ngOnInit(): void;
|
|
3301
|
+
private formatModel;
|
|
2968
3302
|
private setFormatting;
|
|
2969
3303
|
private hasValueChanged;
|
|
2970
3304
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NumberCurrencyFormatterDirective, never>;
|
|
@@ -3057,11 +3391,11 @@ declare class GesdemActionRecoveryLoginComponent implements OnInit {
|
|
|
3057
3391
|
readonly redirectTarget: _angular_core.InputSignal<string | undefined>;
|
|
3058
3392
|
readonly loginForm: _angular_core.Signal<FoehnFormComponent>;
|
|
3059
3393
|
readonly recaptchaComponent: _angular_core.Signal<SdkRecaptchaComponent | undefined>;
|
|
3060
|
-
demandeNotFound: boolean
|
|
3061
|
-
rateLimited: boolean
|
|
3062
|
-
rateLimitCounter: number
|
|
3063
|
-
otpRecipient: string | null | undefined
|
|
3064
|
-
otp: string
|
|
3394
|
+
readonly demandeNotFound: _angular_core.WritableSignal<boolean>;
|
|
3395
|
+
readonly rateLimited: _angular_core.WritableSignal<boolean>;
|
|
3396
|
+
readonly rateLimitCounter: _angular_core.WritableSignal<number>;
|
|
3397
|
+
readonly otpRecipient: _angular_core.WritableSignal<string | null | undefined>;
|
|
3398
|
+
readonly otp: _angular_core.WritableSignal<string>;
|
|
3065
3399
|
private readonly recoveryService;
|
|
3066
3400
|
private readonly growlService;
|
|
3067
3401
|
private readonly confirmModalService;
|
|
@@ -3090,8 +3424,8 @@ declare class GesdemActionRecoveryRegistrationComponent implements OnInit {
|
|
|
3090
3424
|
readonly triggerOnPageChange: _angular_core.InputSignal<boolean>;
|
|
3091
3425
|
readonly modalTrigger: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
3092
3426
|
readonly form: _angular_core.Signal<FoehnFormComponent | undefined>;
|
|
3093
|
-
model: InfoReprise | null
|
|
3094
|
-
mailSent: boolean
|
|
3427
|
+
readonly model: _angular_core.WritableSignal<InfoReprise | null>;
|
|
3428
|
+
readonly mailSent: _angular_core.WritableSignal<boolean>;
|
|
3095
3429
|
canContinueLater: Observable<boolean> | undefined;
|
|
3096
3430
|
isConnectedCyber: Observable<boolean> | undefined;
|
|
3097
3431
|
currentInfoReprise: Observable<InfoReprise | undefined>;
|
|
@@ -3110,13 +3444,18 @@ declare class GesdemActionRecoveryRegistrationComponent implements OnInit {
|
|
|
3110
3444
|
private readonly eventsLoggerService;
|
|
3111
3445
|
private readonly dictionaryService;
|
|
3112
3446
|
private readonly destroyRef;
|
|
3113
|
-
private isVisible;
|
|
3447
|
+
private readonly isVisible;
|
|
3114
3448
|
constructor();
|
|
3115
3449
|
get isModalVisible(): boolean;
|
|
3116
3450
|
get reference(): string;
|
|
3117
3451
|
ngOnInit(): void;
|
|
3118
3452
|
saveAndOpenModal(): void;
|
|
3119
3453
|
openModal(isConnectedCyber: boolean): void;
|
|
3454
|
+
/**
|
|
3455
|
+
* Updates the recovery information entered by the user, without mutating the current value.
|
|
3456
|
+
* @param changes values entered by the user
|
|
3457
|
+
*/
|
|
3458
|
+
updateModel(changes: Partial<InfoReprise>): void;
|
|
3120
3459
|
close(): void;
|
|
3121
3460
|
sendAndClose(): void;
|
|
3122
3461
|
updateVisibilityStatus(status: boolean): void;
|
|
@@ -3154,11 +3493,49 @@ declare class FoehnListItem {
|
|
|
3154
3493
|
}
|
|
3155
3494
|
|
|
3156
3495
|
declare abstract class AbstractListDetailPageComponent<FORM_TYPE extends I18nForm, ITEM_TYPE extends FoehnListItem> extends AbstractPageFromMenuComponent<FORM_TYPE> implements OnInit, OnDestroy {
|
|
3157
|
-
|
|
3158
|
-
|
|
3496
|
+
#private;
|
|
3497
|
+
/**
|
|
3498
|
+
* The list of the form, at `getListPath()`.
|
|
3499
|
+
*/
|
|
3500
|
+
readonly list: _angular_core.Signal<ITEM_TYPE[]>;
|
|
3501
|
+
/**
|
|
3502
|
+
* The index of the item edited, set once the form is loaded: the one of the URL, or the new item added at the end
|
|
3503
|
+
* of the list.
|
|
3504
|
+
*/
|
|
3505
|
+
readonly itemIndex: _angular_core.WritableSignal<number | null>;
|
|
3506
|
+
/**
|
|
3507
|
+
* The item edited, `null` until the form is loaded.
|
|
3508
|
+
*/
|
|
3509
|
+
readonly itemToEdit: _angular_core.Signal<ITEM_TYPE | null>;
|
|
3159
3510
|
protected router: Router;
|
|
3160
3511
|
protected location: Location;
|
|
3161
|
-
|
|
3512
|
+
/**
|
|
3513
|
+
* @returns the list of the form, at `getListPath()`
|
|
3514
|
+
*/
|
|
3515
|
+
getList(): ITEM_TYPE[];
|
|
3516
|
+
/**
|
|
3517
|
+
* Writes a value into the item edited, without modifying the form in place. Bind a field of the item with
|
|
3518
|
+
* `[model]="item.name" (modelChange)="patchItem(['name'], $event)"`, inside an `@if (itemToEdit(); as item)`.
|
|
3519
|
+
*
|
|
3520
|
+
* @param path the keys and indexes leading to the field in the item
|
|
3521
|
+
* @param value the new value (`null` and `undefined` included: the model of the `foehn-*` components can be, as
|
|
3522
|
+
* with `[(model)]`)
|
|
3523
|
+
*/
|
|
3524
|
+
patchItem<P extends ObjectPath<ITEM_TYPE>>(path: P, value: ObjectPathValue<ITEM_TYPE, P> | null | undefined): void;
|
|
3525
|
+
/**
|
|
3526
|
+
* Replaces the item edited with the one returned by `update`, in a single write of the form, e.g. to empty several
|
|
3527
|
+
* fields at once: `this.updateItem((item) => ({ ...item, site: null, ideNumber: null }))`. Never modify the item
|
|
3528
|
+
* given: return a new one.
|
|
3529
|
+
*
|
|
3530
|
+
* @param update gives the new item from the current one
|
|
3531
|
+
*/
|
|
3532
|
+
updateItem(update: (item: ITEM_TYPE) => ITEM_TYPE): void;
|
|
3533
|
+
/**
|
|
3534
|
+
* Replaces the item edited, e.g. bound as a whole to a component: `[model]="item" (modelChange)="setItem($event)"`.
|
|
3535
|
+
*
|
|
3536
|
+
* @param item the new item
|
|
3537
|
+
*/
|
|
3538
|
+
setItem(item: ITEM_TYPE): void;
|
|
3162
3539
|
ngOnInit(): void;
|
|
3163
3540
|
ngOnDestroy(): void;
|
|
3164
3541
|
protected getNextTrackingIndex(): number;
|
|
@@ -3169,7 +3546,10 @@ declare abstract class AbstractListDetailPageComponent<FORM_TYPE extends I18nFor
|
|
|
3169
3546
|
private assignItemIndex;
|
|
3170
3547
|
private scrollToSpecifiedElement;
|
|
3171
3548
|
private showErrors;
|
|
3172
|
-
|
|
3549
|
+
/**
|
|
3550
|
+
* @returns the path of the list in the form, e.g. `['vehicles']`
|
|
3551
|
+
*/
|
|
3552
|
+
abstract getListPath(): ObjectPath<FORM_TYPE>;
|
|
3173
3553
|
abstract getNewListItem(): ITEM_TYPE;
|
|
3174
3554
|
abstract getListPagePath(): string;
|
|
3175
3555
|
abstract getListPageLabel(): string;
|
|
@@ -3178,6 +3558,11 @@ declare abstract class AbstractListDetailPageComponent<FORM_TYPE extends I18nFor
|
|
|
3178
3558
|
}
|
|
3179
3559
|
|
|
3180
3560
|
declare abstract class AbstractMenuPageComponent<T extends I18nForm> extends AbstractPageComponent<T> implements AfterViewInit {
|
|
3561
|
+
#private;
|
|
3562
|
+
/**
|
|
3563
|
+
* @deprecated not used anymore by prestations-ng, which does not depend on zone.js.
|
|
3564
|
+
* Inject `NgZone` in your own component if you really need it.
|
|
3565
|
+
*/
|
|
3181
3566
|
protected ngZone: NgZone;
|
|
3182
3567
|
ngAfterViewInit(): void;
|
|
3183
3568
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AbstractMenuPageComponent<any>, never>;
|
|
@@ -3195,37 +3580,33 @@ declare class FoehnErrorPillComponent {
|
|
|
3195
3580
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnErrorPillComponent, "foehn-error-pill", never, { "errorPrefix": { "alias": "errorPrefix"; "required": false; "isSignal": true; }; "incompleteIndicatorOnly": { "alias": "incompleteIndicatorOnly"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
3196
3581
|
}
|
|
3197
3582
|
|
|
3198
|
-
interface FoehnListItemDescription {
|
|
3583
|
+
interface FoehnListItemDescription<T> {
|
|
3199
3584
|
label: string;
|
|
3200
|
-
hideIfEmpty?(item:
|
|
3201
|
-
getFormattedValue(item:
|
|
3585
|
+
hideIfEmpty?(item: T): boolean;
|
|
3586
|
+
getFormattedValue(item: T): string;
|
|
3202
3587
|
}
|
|
3203
3588
|
|
|
3204
|
-
declare class FoehnListSummaryComponent extends FoehnInputComponent<
|
|
3205
|
-
readonly getListItemTitle: _angular_core.InputSignal<((item:
|
|
3206
|
-
readonly listItemDescriptions: _angular_core.InputSignal<FoehnListItemDescription[]>;
|
|
3589
|
+
declare class FoehnListSummaryComponent<T extends FoehnListItem> extends FoehnInputComponent<T[]> {
|
|
3590
|
+
readonly getListItemTitle: _angular_core.InputSignal<((item: T) => string | null | undefined) | undefined>;
|
|
3591
|
+
readonly listItemDescriptions: _angular_core.InputSignal<FoehnListItemDescription<T>[]>;
|
|
3207
3592
|
readonly showAsTable: _angular_core.InputSignal<boolean>;
|
|
3208
3593
|
readonly tableActionButtons: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
3209
3594
|
readonly canAddItems: _angular_core.InputSignal<boolean>;
|
|
3210
3595
|
readonly itemRemoved: _angular_core.OutputEmitterRef<void>;
|
|
3211
3596
|
readonly itemEdit: _angular_core.OutputEmitterRef<number | null>;
|
|
3212
|
-
listCopyForTable:
|
|
3213
|
-
tableConfiguration: FoehnTableColumnConfiguration<
|
|
3597
|
+
readonly listCopyForTable: _angular_core.Signal<T[] | null | undefined>;
|
|
3598
|
+
readonly tableConfiguration: _angular_core.Signal<FoehnTableColumnConfiguration<T>[]>;
|
|
3214
3599
|
tableSort: TableSort;
|
|
3215
3600
|
private readonly confirmModalService;
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
3220
|
-
ngAfterViewInit(): void;
|
|
3221
|
-
showLine(item: FoehnListItem, itemParam: FoehnListItemDescription): boolean;
|
|
3601
|
+
trackFoehnListItem: TrackByFunction<T>;
|
|
3602
|
+
trackFoehnListItemDescription: TrackByFunction<FoehnListItemDescription<T>>;
|
|
3603
|
+
showLine(item: T, itemParam: FoehnListItemDescription<T>): boolean;
|
|
3222
3604
|
editItem(index?: number | null): void;
|
|
3223
3605
|
removeItem(index: number): void;
|
|
3224
3606
|
changeSort(sortEvent: TableSort | undefined): void;
|
|
3225
3607
|
private sortNow;
|
|
3226
|
-
|
|
3227
|
-
static
|
|
3228
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnListSummaryComponent, "foehn-list-summary", never, { "getListItemTitle": { "alias": "getListItemTitle"; "required": false; "isSignal": true; }; "listItemDescriptions": { "alias": "listItemDescriptions"; "required": false; "isSignal": true; }; "showAsTable": { "alias": "showAsTable"; "required": false; "isSignal": true; }; "canAddItems": { "alias": "canAddItems"; "required": false; "isSignal": true; }; }, { "itemRemoved": "itemRemoved"; "itemEdit": "itemEdit"; }, never, never, true, never>;
|
|
3608
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnListSummaryComponent<any>, never>;
|
|
3609
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnListSummaryComponent<any>, "foehn-list-summary", never, { "getListItemTitle": { "alias": "getListItemTitle"; "required": false; "isSignal": true; }; "listItemDescriptions": { "alias": "listItemDescriptions"; "required": false; "isSignal": true; }; "showAsTable": { "alias": "showAsTable"; "required": false; "isSignal": true; }; "canAddItems": { "alias": "canAddItems"; "required": false; "isSignal": true; }; }, { "itemRemoved": "itemRemoved"; "itemEdit": "itemEdit"; }, never, never, true, never>;
|
|
3229
3610
|
}
|
|
3230
3611
|
|
|
3231
3612
|
declare class FoehnMenuItemComponent {
|
|
@@ -3338,7 +3719,7 @@ declare class FocusedDay {
|
|
|
3338
3719
|
}
|
|
3339
3720
|
|
|
3340
3721
|
declare class FoehnDatePickerComponent implements OnInit {
|
|
3341
|
-
hostId: string | null
|
|
3722
|
+
readonly hostId: _angular_core.WritableSignal<string | null>;
|
|
3342
3723
|
readonly daysButtonsElemRef: _angular_core.Signal<readonly ElementRef<any>[]>;
|
|
3343
3724
|
readonly model: _angular_core.ModelSignal<number[] | null>;
|
|
3344
3725
|
readonly isDatepickerVisible: _angular_core.ModelSignal<boolean>;
|
|
@@ -3354,14 +3735,14 @@ declare class FoehnDatePickerComponent implements OnInit {
|
|
|
3354
3735
|
readonly minYearComputed: _angular_core.Signal<number>;
|
|
3355
3736
|
readonly maxYearComputed: _angular_core.Signal<number>;
|
|
3356
3737
|
readonly yearListItem: _angular_core.Signal<FormSelectOption[]>;
|
|
3357
|
-
weekDays: string[]
|
|
3358
|
-
weeks: DayMonth[][]
|
|
3359
|
-
selectedDate: dayjs.Dayjs | null
|
|
3738
|
+
readonly weekDays: _angular_core.WritableSignal<string[]>;
|
|
3739
|
+
readonly weeks: _angular_core.WritableSignal<DayMonth[][]>;
|
|
3740
|
+
readonly selectedDate: _angular_core.WritableSignal<dayjs.Dayjs | null>;
|
|
3360
3741
|
currentMonthYear: Observable<MonthYear | null>;
|
|
3361
|
-
|
|
3362
|
-
monthListItem: FormSelectOption[];
|
|
3742
|
+
readonly monthListItem: _angular_core.WritableSignal<FormSelectOption[]>;
|
|
3363
3743
|
private readonly dictionary;
|
|
3364
|
-
private readonly
|
|
3744
|
+
private readonly injector;
|
|
3745
|
+
private readonly pendingTasks;
|
|
3365
3746
|
private readonly changeDetector;
|
|
3366
3747
|
private readonly destroyRef;
|
|
3367
3748
|
private previousIsVisible;
|
|
@@ -3379,9 +3760,8 @@ declare class FoehnDatePickerComponent implements OnInit {
|
|
|
3379
3760
|
handleKeyboardUpEvent(event: KeyboardEvent): void;
|
|
3380
3761
|
handleKeyboardDownEvent(event: KeyboardEvent): void;
|
|
3381
3762
|
ngOnInit(): void;
|
|
3382
|
-
onModelChange(value: number[] | null): void;
|
|
3383
3763
|
updateNgModel(value: number[] | null): void;
|
|
3384
|
-
buildId(suffix?: string): string
|
|
3764
|
+
buildId(suffix?: string): string;
|
|
3385
3765
|
isToday(date: dayjs.Dayjs | undefined): boolean;
|
|
3386
3766
|
isSelected(date: dayjs.Dayjs | undefined): boolean;
|
|
3387
3767
|
handleUserInput(date: dayjs.Dayjs | undefined): void;
|
|
@@ -3399,6 +3779,12 @@ declare class FoehnDatePickerComponent implements OnInit {
|
|
|
3399
3779
|
isNextMonthDisabled(monthYear: MonthYear): boolean;
|
|
3400
3780
|
private isDateInRange;
|
|
3401
3781
|
private initializeDatepicker;
|
|
3782
|
+
/**
|
|
3783
|
+
* Selects the date of the model and displays its month (the current month without any date). Not a computed: the
|
|
3784
|
+
* navigation helper keeps the displayed month, also changed by the navigation of the user.
|
|
3785
|
+
* @param value the model
|
|
3786
|
+
*/
|
|
3787
|
+
private syncWithModel;
|
|
3402
3788
|
private setDate;
|
|
3403
3789
|
private getDateAsArray;
|
|
3404
3790
|
private focusOnDatepickerTrigger;
|
|
@@ -3422,17 +3808,13 @@ declare class FoehnDatePickerButtonComponent implements OnInit {
|
|
|
3422
3808
|
readonly selectedDateSrOnlyLabelKey: _angular_core.InputSignal<string>;
|
|
3423
3809
|
readonly datepickerTrigger: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
3424
3810
|
readonly userInput: _angular_core.OutputEmitterRef<number[] | null>;
|
|
3425
|
-
|
|
3426
|
-
private isVisible;
|
|
3427
|
-
private readonly modelEffect;
|
|
3811
|
+
private readonly isVisible;
|
|
3428
3812
|
get isDatepickerVisible(): boolean;
|
|
3429
3813
|
ngOnInit(): void;
|
|
3430
|
-
buildId(suffix?: string): string
|
|
3814
|
+
buildId(suffix?: string): string;
|
|
3431
3815
|
open(): void;
|
|
3432
3816
|
close(): void;
|
|
3433
3817
|
updateVisibilityStatus(status: boolean): void;
|
|
3434
|
-
onModelChange(value: number[] | null): void;
|
|
3435
|
-
updateNgModel(value: number[] | null): void;
|
|
3436
3818
|
handleUserInput(date: number[] | null): void;
|
|
3437
3819
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnDatePickerButtonComponent, never>;
|
|
3438
3820
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnDatePickerButtonComponent, "foehn-date-picker-button", never, { "model": { "alias": "model"; "required": true; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "displaySelectedDate": { "alias": "displaySelectedDate"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": true; "isSignal": true; }; "minYear": { "alias": "minYear"; "required": false; "isSignal": true; }; "maxYear": { "alias": "maxYear"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "selectedDateSrOnlyLabelKey": { "alias": "selectedDateSrOnlyLabelKey"; "required": false; "isSignal": true; }; }, { "model": "modelChange"; "userInput": "userInput"; }, never, never, true, never>;
|
|
@@ -3465,8 +3847,18 @@ declare class ObjectHelper {
|
|
|
3465
3847
|
*/
|
|
3466
3848
|
static isEqual(value1: unknown, value2: unknown, skipFunctionTypeCompare?: boolean): boolean;
|
|
3467
3849
|
static isDifferent(value1: unknown, value2: unknown, skipFunctionType?: boolean): boolean;
|
|
3468
|
-
|
|
3469
|
-
|
|
3850
|
+
/**
|
|
3851
|
+
* @param value to check
|
|
3852
|
+
* @returns whether the value isn't `null`, `undefined` or `''`, and, for an array or an object, whether one of its
|
|
3853
|
+
* items or properties holds a value (deeply). A number (`0` included), a boolean (`false` included) and a date are
|
|
3854
|
+
* values.
|
|
3855
|
+
*/
|
|
3856
|
+
static hasAnyValue(value: unknown): boolean;
|
|
3857
|
+
/**
|
|
3858
|
+
* @param value to check
|
|
3859
|
+
* @returns the contrary of {@link hasAnyValue}
|
|
3860
|
+
*/
|
|
3861
|
+
static isEmpty(value: unknown): boolean;
|
|
3470
3862
|
/**
|
|
3471
3863
|
* Deep copy is a true copy for nested objects
|
|
3472
3864
|
* Often, shallow copy is good enough and you will not need a deep copy.
|
|
@@ -3480,7 +3872,11 @@ declare class ObjectHelper {
|
|
|
3480
3872
|
*/
|
|
3481
3873
|
static deepCopy(obj: any): any;
|
|
3482
3874
|
static stripHtml(html: string): string;
|
|
3483
|
-
|
|
3875
|
+
/**
|
|
3876
|
+
* @deprecated use `ObjectPathHelper.getByKeys(obj, key)`, which it calls: the value at the path of the key
|
|
3877
|
+
* (`'address.street'`).
|
|
3878
|
+
*/
|
|
3879
|
+
static getNestedProperty(obj: unknown, key: string): any;
|
|
3484
3880
|
}
|
|
3485
3881
|
|
|
3486
3882
|
declare class ScrollHelper {
|
|
@@ -3579,33 +3975,49 @@ declare class SelectedSlot {
|
|
|
3579
3975
|
date: number[] | undefined | null;
|
|
3580
3976
|
}
|
|
3581
3977
|
|
|
3582
|
-
declare class FoehnAgendaTimeslotPanelComponent extends FoehnInputComponent<SelectedSlot>
|
|
3978
|
+
declare class FoehnAgendaTimeslotPanelComponent extends FoehnInputComponent<SelectedSlot> {
|
|
3583
3979
|
readonly DEFAULT_NB_VISIBLE_ELEMENTS = 22;
|
|
3584
3980
|
readonly calendar: _angular_core.InputSignal<Observable<Calendar> | undefined>;
|
|
3585
3981
|
readonly currentWeek: _angular_core.InputSignal<DaySlots | undefined>;
|
|
3586
3982
|
readonly nbVisibleElements: _angular_core.InputSignal<number | null | undefined>;
|
|
3587
3983
|
readonly visibleElementsCount: _angular_core.Signal<number>;
|
|
3588
3984
|
readonly timeSlotButtonsElemRef: _angular_core.Signal<readonly ElementRef<any>[]>;
|
|
3589
|
-
selectedTimeSlot: string | null
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3985
|
+
readonly selectedTimeSlot: _angular_core.Signal<string | null>;
|
|
3986
|
+
readonly timeInputValue: _angular_core.Signal<string | null | undefined>;
|
|
3987
|
+
/**
|
|
3988
|
+
* TRUE when only the first visibleElementsCount() time slots are displayed.
|
|
3989
|
+
* Closed again when the time slots change, unless the selected slot would be hidden.
|
|
3990
|
+
*/
|
|
3991
|
+
readonly isClosed: _angular_core.WritableSignal<boolean>;
|
|
3992
|
+
readonly timeSlots: _angular_core.Signal<string[]>;
|
|
3993
|
+
readonly timeslotRemaining: _angular_core.Signal<number>;
|
|
3994
|
+
/**
|
|
3995
|
+
* FALSE when closing the panel would hide the selected slot.
|
|
3996
|
+
*/
|
|
3997
|
+
readonly canClose: _angular_core.Signal<boolean>;
|
|
3595
3998
|
private readonly dictionaryService;
|
|
3596
|
-
private dayInputValue;
|
|
3999
|
+
private readonly dayInputValue;
|
|
3597
4000
|
private keyboardNavigationAllowed;
|
|
3598
4001
|
private currentActiveElement;
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
4002
|
+
/**
|
|
4003
|
+
* Index of the selected slot in the time slots of the day, -1 when it is not in this panel.
|
|
4004
|
+
*/
|
|
4005
|
+
private readonly selectedSlotIndex;
|
|
4006
|
+
private readonly hasSelectedSlotInPanel;
|
|
4007
|
+
/**
|
|
4008
|
+
* TRUE when the selected slot is in this panel but not displayed while it is closed.
|
|
4009
|
+
*/
|
|
4010
|
+
private readonly isSelectedSlotHidden;
|
|
3602
4011
|
handleKeyboardDownEvent(event: KeyboardEvent): void;
|
|
3603
4012
|
focus(): void;
|
|
3604
4013
|
capitalCaseFirstLetter(s: string | null | undefined): string;
|
|
3605
4014
|
handleUserInput(day: string | undefined | null, date: number[] | undefined | null, time: string, calendar: Calendar): void;
|
|
3606
4015
|
togglePanel(): void;
|
|
3607
|
-
onModelChange(
|
|
4016
|
+
onModelChange(_value: SelectedSlot | null | undefined): void;
|
|
3608
4017
|
getTimeInputValue(s: string): string;
|
|
4018
|
+
/**
|
|
4019
|
+
* Opens the panel when the selected slot would be hidden.
|
|
4020
|
+
*/
|
|
3609
4021
|
searchTimeValueInTimeSlot(): void;
|
|
3610
4022
|
onTimeFocusin(): void;
|
|
3611
4023
|
onTimeFocusout(): void;
|
|
@@ -3613,7 +4025,6 @@ declare class FoehnAgendaTimeslotPanelComponent extends FoehnInputComponent<Sele
|
|
|
3613
4025
|
getButtonTimeSlotAriaLabel(day: string | undefined | null, timeSlot: string): string;
|
|
3614
4026
|
getTimeSlotTabIndex(timeSlot: string, index: number): number;
|
|
3615
4027
|
cleanIdForQuerySelector(s: string): string;
|
|
3616
|
-
private sliceNbVisibleElements;
|
|
3617
4028
|
private getValidValue;
|
|
3618
4029
|
private onKeyDownInner;
|
|
3619
4030
|
private focusTimeSlot;
|
|
@@ -3627,7 +4038,7 @@ declare class FoehnAgendaComponent extends FoehnInputComponent<SelectedSlot> {
|
|
|
3627
4038
|
readonly paginationChange: _angular_core.OutputEmitterRef<PaginationWeek>;
|
|
3628
4039
|
readonly readableSelectedTimeSlot: _angular_core.Signal<string>;
|
|
3629
4040
|
readonly timeSlotPanelsElemRef: _angular_core.Signal<readonly FoehnAgendaTimeslotPanelComponent[]>;
|
|
3630
|
-
srAnnouncements: string
|
|
4041
|
+
readonly srAnnouncements: _angular_core.WritableSignal<string>;
|
|
3631
4042
|
private readonly dictionaryService;
|
|
3632
4043
|
private srAnnouncementClearTimer;
|
|
3633
4044
|
private readonly SR_ANNOUNCEMENT_CLEAR_TIMEOUT_INTERVAL_MS;
|
|
@@ -3672,14 +4083,14 @@ declare class FoehnDropdownMenuComponent implements OnInit {
|
|
|
3672
4083
|
readonly selectedFocusList: _angular_core.Signal<readonly ElementRef<any>[]>;
|
|
3673
4084
|
readonly buttonTrigger: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
3674
4085
|
readonly entryPoint: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
3675
|
-
isDropdownVisible: boolean
|
|
4086
|
+
readonly isDropdownVisible: _angular_core.WritableSignal<boolean>;
|
|
3676
4087
|
closeDropdownTimer: ReturnType<typeof setTimeout> | undefined;
|
|
3677
|
-
popupPosition: Position
|
|
4088
|
+
readonly popupPosition: _angular_core.WritableSignal<Position>;
|
|
3678
4089
|
private readonly router;
|
|
4090
|
+
private readonly injector;
|
|
3679
4091
|
private currentItemGlobalIndex;
|
|
3680
4092
|
private shouldFocusEntryPointAfterOpen;
|
|
3681
4093
|
private readonly selectedFocusListEffect;
|
|
3682
|
-
constructor();
|
|
3683
4094
|
handleKeyboardUpEvent(event: KeyboardEvent): void;
|
|
3684
4095
|
handleKeyboardDownEvent(event: KeyboardEvent): void;
|
|
3685
4096
|
ngOnInit(): void;
|
|
@@ -3752,6 +4163,7 @@ interface BrowserInfo {
|
|
|
3752
4163
|
}
|
|
3753
4164
|
declare class SdkLogsService {
|
|
3754
4165
|
private readonly http;
|
|
4166
|
+
private readonly destroyRef;
|
|
3755
4167
|
private cachedBrowserInfo;
|
|
3756
4168
|
addLog(message: string, logLevel: SdkLogLevel): void;
|
|
3757
4169
|
addLogWithError(message: string, logLevel: SdkLogLevel, error: unknown): void;
|
|
@@ -3761,5 +4173,5 @@ declare class SdkLogsService {
|
|
|
3761
4173
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SdkLogsService>;
|
|
3762
4174
|
}
|
|
3763
4175
|
|
|
3764
|
-
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, providePrestationsNgCore, replaceAll };
|
|
3765
|
-
export type { BreadcrumbConfiguration, BrowserInfo, ComponentError, DictionaryType, FoehnListItemDescription, FoehnRecapSection, FoehnRecapSectionElement, FoehnRecapSectionElementValueType, FormError, HasCustomErrors, HelpModal, Image, Language, PlaceholderType };
|
|
4176
|
+
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, ObjectPathHelper, 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 };
|
|
4177
|
+
export type { BreadcrumbConfiguration, BrowserInfo, ComponentError, DictionaryType, DocumentChanges, FoehnDateModel, FoehnDateTimeModel, FoehnListItemDescription, FoehnModalSize, FoehnRecapSection, FoehnRecapSectionElement, FoehnRecapSectionElementValueType, FormError, HasCustomErrors, HelpModal, Image, Language, ObjectKeys, ObjectPath, ObjectPathValue, PlaceholderType, UploaderErrorLimits };
|