@dsivd/prestations-ng 19.2.0-beta.3 → 19.2.0-beta.30
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/AI_GUIDELINES.md +152 -0
- package/ANGULAR_SIGNALS.md +6 -2
- package/CHANGELOG.md +476 -0
- package/CONTRIBUTING.md +128 -8
- package/ESLINT_PLUGIN.md +262 -30
- package/GOOD_PRACTICES.md +983 -388
- package/INTRODUCTION_ANGULAR_SIGNALS.md +227 -155
- package/README.md +22 -12
- package/UPGRADING_V18.md +5 -5
- package/UPGRADING_V19.md +636 -19
- package/eslint/configs/spec-ts-recommended.mjs +34 -0
- package/eslint/configs/template-recommended.mjs +2 -0
- package/eslint/configs/template-rules.mjs +14 -2
- package/eslint/configs/ts-recommended.mjs +11 -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 +6 -0
- package/eslint/rules/no-direct-signal-mutation.mjs +162 -41
- package/eslint/rules/no-item-track-in-form-list.mjs +173 -0
- package/eslint/rules/no-uninvoked-signal-in-template.mjs +8 -3
- package/eslint/rules/require-model-change.mjs +89 -0
- package/eslint/rules/require-track-index.mjs +162 -0
- package/eslint/signal-names.mjs +127 -21
- package/eslint/template-ast.mjs +12 -2
- package/fesm2022/dsivd-prestations-ng.mjs +2889 -2061
- 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 +52 -0
- package/schematics/utility/add-allowed-common-js-dependencies.js +39 -29
- package/schematics/utility/form-signal/class-migration.js +795 -0
- package/schematics/utility/form-signal/edits.js +34 -0
- package/schematics/utility/form-signal/form-members.js +318 -0
- package/schematics/utility/form-signal/form-signal-migration.js +134 -0
- package/schematics/utility/form-signal/page-classes.js +139 -0
- package/schematics/utility/form-signal/template-migration.js +775 -0
- package/schematics/utility/never-connected-migration.js +87 -0
- package/schematics/utility/remove-emit-decorator-metadata.js +8 -9
- package/schematics/utility/typescript-files.js +95 -0
- package/src/eslint/configs/__tests__/configs.test.mjs +61 -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 +14 -2
- package/src/eslint/configs/ts-recommended.mjs +11 -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 +200 -0
- package/src/eslint/rules/__tests__/no-item-track-in-form-list.test.mjs +234 -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/__tests__/require-track-index.test.mjs +106 -0
- package/src/eslint/rules/index.mjs +6 -0
- package/src/eslint/rules/no-direct-signal-mutation.mjs +162 -41
- package/src/eslint/rules/no-item-track-in-form-list.mjs +173 -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/rules/require-track-index.mjs +162 -0
- package/src/eslint/signal-names.mjs +127 -21
- package/src/eslint/template-ast.mjs +12 -2
- package/types/dsivd-prestations-ng.d.ts +719 -243
- package/dsivd-prestations-ng-19.2.0-beta.3.tgz +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnInit, AfterViewInit, Signal,
|
|
2
|
+
import { ElementRef, WritableSignal, OnInit, AfterViewInit, Signal, DestroyRef, OnDestroy, InjectionToken, OnChanges, SimpleChanges, EnvironmentProviders, Injector, SimpleChange, AfterViewChecked, PipeTransform, TemplateRef, TrackByFunction, ErrorHandler, NgZone } from '@angular/core';
|
|
3
3
|
import { Params, Route, ActivatedRoute, ActivatedRouteSnapshot, CanActivateFn, Router, QueryParamsHandling } from '@angular/router';
|
|
4
4
|
import { Observable, Subject, BehaviorSubject } from 'rxjs';
|
|
5
5
|
import { NgModel, NgForm } from '@angular/forms';
|
|
6
6
|
import { Location } from '@angular/common';
|
|
7
|
+
import { HttpClient, HttpErrorResponse, HttpEvent } from '@angular/common/http';
|
|
7
8
|
import dayjs from 'dayjs';
|
|
8
9
|
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
9
|
-
import { HttpClient, HttpEvent } from '@angular/common/http';
|
|
10
10
|
import * as _fortawesome_fontawesome_common_types from '@fortawesome/fontawesome-common-types';
|
|
11
11
|
import { IconDefinition } from '@fortawesome/fontawesome-common-types';
|
|
12
12
|
import { ImageCroppedEvent } from 'ngx-image-cropper';
|
|
@@ -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;
|
|
@@ -95,6 +121,87 @@ interface FormError {
|
|
|
95
121
|
message: string;
|
|
96
122
|
}
|
|
97
123
|
|
|
124
|
+
type Depth = [never, 0, 1, 2, 3, 4, 5, 6, 7];
|
|
125
|
+
/**
|
|
126
|
+
* A path in an object: one of its keys, then the keys or the indexes of the objects and arrays it holds, e.g.
|
|
127
|
+
* `['firstName']`, `['address', 'locality']` or `['children', 0, 'firstName']`. For a union (`ApForm | AfForm`), the
|
|
128
|
+
* paths of each of its members.
|
|
129
|
+
*/
|
|
130
|
+
type ObjectPath<T, D extends number = 7> = [D] extends [never] ? never : PathsOf<NonNullable<T>, D>;
|
|
131
|
+
type PathsOf<T, D extends number> = T extends readonly (infer E)[] ? [number] | [number, ...ObjectPath<E, Depth[D]>] : T extends object ? {
|
|
132
|
+
[K in keyof T & string]-?: [K] | [K, ...ObjectPath<T[K], Depth[D]>];
|
|
133
|
+
}[keyof T & string] : never;
|
|
134
|
+
/**
|
|
135
|
+
* The type of the value at a path of an object. For a union, the value in the members having the path.
|
|
136
|
+
*/
|
|
137
|
+
type ObjectPathValue<T, P extends readonly unknown[]> = P extends readonly [infer K, ...infer R] ? ValueAtKey<NonNullable<T>, K, R> : T;
|
|
138
|
+
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;
|
|
139
|
+
/**
|
|
140
|
+
* Keys known at runtime only: a key with dots (`'address.street'`, `'children.0.firstName'`), or the list of the keys.
|
|
141
|
+
*/
|
|
142
|
+
type ObjectKeys = string | readonly (string | number)[];
|
|
143
|
+
/**
|
|
144
|
+
* Reads and writes a value at a path of an object, without modifying the object: a write copies the objects and arrays
|
|
145
|
+
* along the path (with their prototype), and keeps the others as they are.
|
|
146
|
+
*
|
|
147
|
+
* A copy takes the own enumerable properties only: the objects along the path must be plain objects (e.g. the JSON of
|
|
148
|
+
* the backend), arrays or instances of classes with public fields. The copy of a `Date`, a `Map`, a `Set` or an
|
|
149
|
+
* instance with private fields (`#field`) loses their content, and their methods throw. The value written, and the
|
|
150
|
+
* objects beside the path, are not copied: they can be of any type.
|
|
151
|
+
*
|
|
152
|
+
* `get()`, `patch()` and `patchSignal()` take a path checked by TypeScript (a typo gives an error listing the valid
|
|
153
|
+
* keys). `getByKeys()` and `patchByKeys()` take keys known at runtime only (e.g. a key given as an input), not
|
|
154
|
+
* checked.
|
|
155
|
+
*/
|
|
156
|
+
declare class ObjectPathHelper {
|
|
157
|
+
/**
|
|
158
|
+
* @param object an object
|
|
159
|
+
* @param path the keys and indexes leading to the value
|
|
160
|
+
* @returns the value at the path, `undefined` when an object of the path is `null` or `undefined`
|
|
161
|
+
*/
|
|
162
|
+
static get<T, P extends ObjectPath<T>>(object: T, path: P): ObjectPathValue<T, P> | undefined;
|
|
163
|
+
/**
|
|
164
|
+
* Writes a value at a path of an object without modifying it.
|
|
165
|
+
*
|
|
166
|
+
* @param object an object
|
|
167
|
+
* @param path the keys and indexes leading to the value
|
|
168
|
+
* @param value the value to write
|
|
169
|
+
* @returns a new object, or the object itself when the value is already there
|
|
170
|
+
* @throws Error when an object of the path is `null` or `undefined`, as a write through it would
|
|
171
|
+
*/
|
|
172
|
+
static patch<T, P extends ObjectPath<T>>(object: T, path: P, value: ObjectPathValue<T, P>): T;
|
|
173
|
+
/**
|
|
174
|
+
* Writes a value at a path of the object held by a signal, without modifying it in place: the signal gets a new
|
|
175
|
+
* object, and notifies its readers only when the value changes.
|
|
176
|
+
*
|
|
177
|
+
* @param signal a signal holding an object
|
|
178
|
+
* @param path the keys and indexes leading to the value
|
|
179
|
+
* @param value the value to write
|
|
180
|
+
* @throws Error when an object of the path, the value of the signal included, is `null` or `undefined`
|
|
181
|
+
*/
|
|
182
|
+
static patchSignal<T, P extends ObjectPath<T>>(signal: WritableSignal<T>, path: P, value: ObjectPathValue<T, P>): void;
|
|
183
|
+
/**
|
|
184
|
+
* `get()` with keys known at runtime only, not checked by TypeScript.
|
|
185
|
+
*
|
|
186
|
+
* @param object an object
|
|
187
|
+
* @param keys `'address.street'`, or `['address', 'street']`
|
|
188
|
+
* @returns the value at the keys, `undefined` when an object of the path is `null` or `undefined`
|
|
189
|
+
*/
|
|
190
|
+
static getByKeys(object: unknown, keys: ObjectKeys): unknown;
|
|
191
|
+
/**
|
|
192
|
+
* `patch()` with keys known at runtime only, not checked by TypeScript.
|
|
193
|
+
*
|
|
194
|
+
* @param object an object
|
|
195
|
+
* @param keys `'address.street'`, or `['address', 'street']`
|
|
196
|
+
* @param value the value to write
|
|
197
|
+
* @returns a new object, or the object itself when the value is already there
|
|
198
|
+
* @throws Error when an object of the path is `null` or `undefined`, as a write through it would
|
|
199
|
+
*/
|
|
200
|
+
static patchByKeys<T>(object: T, keys: ObjectKeys, value: unknown): T;
|
|
201
|
+
private static keysOf;
|
|
202
|
+
private static patchFrom;
|
|
203
|
+
}
|
|
204
|
+
|
|
98
205
|
/**
|
|
99
206
|
* Interface representing a component that has custom error messages.
|
|
100
207
|
* Used to break the dependency cycle between ValidationHandlerService and FoehnInputComponent.
|
|
@@ -109,6 +216,13 @@ declare class ValidationHandlerService {
|
|
|
109
216
|
get validationErrorsSubject(): Observable<FormError[]>;
|
|
110
217
|
get validationDisplaySubject(): Observable<boolean>;
|
|
111
218
|
updateErrors(errors: FormError[]): void;
|
|
219
|
+
/**
|
|
220
|
+
* Removes the errors of the item at `itemPath` (e.g. `exchanges[1]`) and gives those of the following items their
|
|
221
|
+
* new index, as `FormErrorHelper.withoutListItem()`. For a page keeping the errors of the server until its next
|
|
222
|
+
* save (e.g. a back office) when it removes an item of a list whose fields are named with the index. The errors of
|
|
223
|
+
* `GesdemHandlerService.lastResponse` aren't changed.
|
|
224
|
+
*/
|
|
225
|
+
removeListItemErrors(itemPath: string): void;
|
|
112
226
|
shouldDisplayErrors(display: boolean): void;
|
|
113
227
|
getMessage(component: HasCustomErrors, error: FormError): string;
|
|
114
228
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ValidationHandlerService, never>;
|
|
@@ -117,9 +231,10 @@ declare class ValidationHandlerService {
|
|
|
117
231
|
|
|
118
232
|
declare const GESDEM_MAX_DATA_LENGTH = 10000;
|
|
119
233
|
declare abstract class FoehnInputComponent<T> implements OnInit, AfterViewInit {
|
|
234
|
+
#private;
|
|
120
235
|
readonly model: _angular_core.ModelSignal<T | null | undefined>;
|
|
121
236
|
readonly pattern: _angular_core.ModelSignal<string | undefined>;
|
|
122
|
-
readonly helpModal: _angular_core.ModelSignal<HelpModal | undefined>;
|
|
237
|
+
readonly helpModal: _angular_core.ModelSignal<HelpModal | null | undefined>;
|
|
123
238
|
readonly standardHelpText: _angular_core.ModelSignal<string | undefined>;
|
|
124
239
|
readonly helpText: _angular_core.ModelSignal<string | undefined>;
|
|
125
240
|
readonly disabled: _angular_core.ModelSignal<boolean>;
|
|
@@ -186,7 +301,7 @@ declare abstract class FoehnInputComponent<T> implements OnInit, AfterViewInit {
|
|
|
186
301
|
* linkedSignal est un WritableSignal dont la valeur par défaut est recalculée si les dépendances changent,
|
|
187
302
|
* mais qui peut être écrasé manuellement avec .set().
|
|
188
303
|
*/
|
|
189
|
-
protected readonly hostId: _angular_core.WritableSignal<string
|
|
304
|
+
protected readonly hostId: _angular_core.WritableSignal<string>;
|
|
190
305
|
/**
|
|
191
306
|
* computed() — valeur dérivée
|
|
192
307
|
* Quand le résultat est une valeur qui dépend d'autres signals. C'est une transformation pure, synchrone, sans side effect.
|
|
@@ -194,16 +309,47 @@ declare abstract class FoehnInputComponent<T> implements OnInit, AfterViewInit {
|
|
|
194
309
|
protected readonly hostHidden: Signal<"hidden" | null>;
|
|
195
310
|
protected readonly _destroyRef: DestroyRef;
|
|
196
311
|
private readonly registerNgModelService;
|
|
197
|
-
private _errors;
|
|
312
|
+
private readonly _errors;
|
|
198
313
|
private readonly userInputSubject;
|
|
199
314
|
private readonly subComponentsEffect;
|
|
200
315
|
private readonly modelEffect;
|
|
201
316
|
get errors(): FormError[];
|
|
202
317
|
ngOnInit(): void;
|
|
203
318
|
ngAfterViewInit(): void;
|
|
204
|
-
|
|
319
|
+
/**
|
|
320
|
+
* Called with every new model (given by the page or set by the component), once `model_` is up to date. Does
|
|
321
|
+
* nothing by default: to override only to act on a new model, e.g. to normalize it. Fields derived from the
|
|
322
|
+
* model are `linkedSignal()` or `computed()`, not copies made here.
|
|
323
|
+
* @param _value the new model
|
|
324
|
+
*/
|
|
325
|
+
onModelChange(_value: T | null | undefined): void;
|
|
205
326
|
handleChange(value: T | null): void;
|
|
206
|
-
|
|
327
|
+
/**
|
|
328
|
+
* Writes the model, which the page gets through `modelChange`: always a new object or array, never the model
|
|
329
|
+
* modified in place. The model is a signal, which ignores the value it already holds: no `modelChange` would be
|
|
330
|
+
* emitted, and the page would never get the change. Also makes the model known (`model_`), and leaves the model
|
|
331
|
+
* of a disabled component alone, unless `updateModelWhenDisabled`.
|
|
332
|
+
*
|
|
333
|
+
* Accepts the `modelChange` of a wrapped `foehn-*` component as is (`T | null | undefined`):
|
|
334
|
+
* `(modelChange)="updateNgModel($event)"`. `undefined` is written as is, not as `null`: a model still unknown
|
|
335
|
+
* (`undefined`) must not become `null` without an input of the user.
|
|
336
|
+
*
|
|
337
|
+
* @param value the new model
|
|
338
|
+
*/
|
|
339
|
+
updateNgModel(value: T | null | undefined): void;
|
|
340
|
+
/**
|
|
341
|
+
* Writes a value at a path of the model, in a new model: the objects and arrays along the path are copied, the
|
|
342
|
+
* others are kept as they are (`ObjectPathHelper`), and the result goes through `updateNgModel()`. Bind a field of
|
|
343
|
+
* an object edited as is with `[model]="model()?.firstName" (modelChange)="patchNgModel(['firstName'], $event)"`,
|
|
344
|
+
* or replace an item of a list with `[model]="item" (modelChange)="patchNgModel([$index], $event)"`. The same
|
|
345
|
+
* value changes nothing.
|
|
346
|
+
*
|
|
347
|
+
* @param path the keys and indexes leading to the value, e.g. `['address', 'street']` or `[index]`
|
|
348
|
+
* @param value the new value (`null` and `undefined` included: the model of the `foehn-*` components can be)
|
|
349
|
+
* @throws Error when the page gives no model and `emptyModel()` neither, or when an object of the path is `null`
|
|
350
|
+
* or `undefined`
|
|
351
|
+
*/
|
|
352
|
+
patchNgModel<P extends ObjectPath<T>>(path: P, value: ObjectPathValue<T, P> | null | undefined): void;
|
|
207
353
|
hasErrorsToDisplay(): boolean;
|
|
208
354
|
hasErrors(): boolean;
|
|
209
355
|
hasInheritErrorFromParent(): boolean;
|
|
@@ -215,8 +361,8 @@ declare abstract class FoehnInputComponent<T> implements OnInit, AfterViewInit {
|
|
|
215
361
|
refreshErrors(results: any[]): void;
|
|
216
362
|
focus(scrollIntoView?: boolean): void;
|
|
217
363
|
getMaxLength(): number | null;
|
|
218
|
-
buildId(suffix?: string): string
|
|
219
|
-
buildChildId(suffix?: string): string
|
|
364
|
+
buildId(suffix?: string): string;
|
|
365
|
+
buildChildId(suffix?: string): string;
|
|
220
366
|
buildChildName(suffix?: string): string;
|
|
221
367
|
onKeydown(_key: KeyboardEvent): void;
|
|
222
368
|
reset(): void;
|
|
@@ -228,6 +374,22 @@ declare abstract class FoehnInputComponent<T> implements OnInit, AfterViewInit {
|
|
|
228
374
|
getAutoComplete(): string | undefined;
|
|
229
375
|
protected getFirstInputComponentEnabled(subComponents: readonly FoehnInputComponent<any>[]): FoehnInputComponent<any> | null;
|
|
230
376
|
protected findFirstHtmlInputElementEnabled(elementNodeListOf: NodeListOf<Element>): HTMLInputElement | null;
|
|
377
|
+
/**
|
|
378
|
+
* Whether a model given by the page has a value to display, which makes it known (`model_`) before
|
|
379
|
+
* `onModelChange()`: by default, any value (see `ObjectHelper.hasAnyValue()`). To override when the component
|
|
380
|
+
* doesn't display a part of its model (e.g. the country of an address only Swiss, or an id).
|
|
381
|
+
* @param value of the model
|
|
382
|
+
* @returns whether the model has a value to display
|
|
383
|
+
*/
|
|
384
|
+
protected hasValueToDisplay(value: T | null | undefined): boolean;
|
|
385
|
+
/**
|
|
386
|
+
* The model `patchNgModel()` starts from when the page gives none (`null` or `undefined`): none by default. To
|
|
387
|
+
* override in a component whose model can be missing, e.g. `return new Owner();`, the objects of its paths
|
|
388
|
+
* included.
|
|
389
|
+
*
|
|
390
|
+
* @returns a new empty model, or `null`
|
|
391
|
+
*/
|
|
392
|
+
protected emptyModel(): T | null;
|
|
231
393
|
protected isEmpty(data: unknown): boolean;
|
|
232
394
|
protected isEmptyWhenTrimmedIfString(data: unknown): boolean;
|
|
233
395
|
protected triggerUserInput(value: T | null | undefined): void;
|
|
@@ -296,6 +458,8 @@ declare class FoehnNavigationService {
|
|
|
296
458
|
private isInit;
|
|
297
459
|
private readonly initializedAndRouteActivated;
|
|
298
460
|
private linearRouting;
|
|
461
|
+
private readonly pendingNavigationDirectionSubject;
|
|
462
|
+
private lastNavigationId;
|
|
299
463
|
get initialized(): boolean;
|
|
300
464
|
set activatedRoute(value: ActivatedRoute);
|
|
301
465
|
static getRootRouteRecursive(route: ActivatedRouteSnapshot | null): Route | null;
|
|
@@ -305,6 +469,12 @@ declare class FoehnNavigationService {
|
|
|
305
469
|
getFirstRoute(): Route;
|
|
306
470
|
current(): Promise<boolean>;
|
|
307
471
|
hasBeenInitialized(): Observable<boolean>;
|
|
472
|
+
/**
|
|
473
|
+
* Direction of the navigation started with next() or previous() until it ends, null otherwise.
|
|
474
|
+
* The current page stays displayed while the target one is activated (e.g. lazy loaded route).
|
|
475
|
+
* @returns Observable<NavigationDirection | null>
|
|
476
|
+
*/
|
|
477
|
+
pendingNavigationDirection(): Observable<NavigationDirection | null>;
|
|
308
478
|
getQueryParamsToForwardAsString(): string;
|
|
309
479
|
getQueryParamsToForward(): Params | null;
|
|
310
480
|
next(): Promise<boolean>;
|
|
@@ -429,7 +599,7 @@ declare class GesdemHandlerService {
|
|
|
429
599
|
private readonly dictionaryService;
|
|
430
600
|
private readonly dateHelper;
|
|
431
601
|
private readonly _updateFormDataSubject;
|
|
432
|
-
private _lastResponse;
|
|
602
|
+
private readonly _lastResponse;
|
|
433
603
|
private _captchaToken;
|
|
434
604
|
get lastResponse(): FormPostResponse<I18nForm>;
|
|
435
605
|
get updateFormDataSubject(): Observable<I18nForm | undefined | null>;
|
|
@@ -478,7 +648,7 @@ declare class SdkDictionaryService {
|
|
|
478
648
|
private readonly httpClient;
|
|
479
649
|
private readonly growlService;
|
|
480
650
|
private readonly validationService;
|
|
481
|
-
private dictionary;
|
|
651
|
+
private readonly dictionary;
|
|
482
652
|
private defaultLanguageCode;
|
|
483
653
|
private readonly dictionaryObservable;
|
|
484
654
|
private readonly availableLanguagesObservable;
|
|
@@ -530,9 +700,22 @@ declare class SdkEventsLoggerService {
|
|
|
530
700
|
}
|
|
531
701
|
|
|
532
702
|
declare abstract class AbstractPageComponent<T extends I18nForm> implements OnInit, AfterViewInit {
|
|
703
|
+
#private;
|
|
533
704
|
readonly foehnFormComponent: _angular_core.Signal<FoehnFormComponent | undefined>;
|
|
534
|
-
|
|
535
|
-
|
|
705
|
+
/**
|
|
706
|
+
* The form of the page, a signal: never modify its value in place, write it with `patchForm()` (or `form.set()`
|
|
707
|
+
* / `form.update()` with a new object), so that the templates and the `computed()` reading it follow it.
|
|
708
|
+
*/
|
|
709
|
+
readonly form: _angular_core.WritableSignal<T | null | undefined>;
|
|
710
|
+
/**
|
|
711
|
+
* The reference of the demand, set when the form is loaded: `undefined` as long as no form was loaded from the
|
|
712
|
+
* backend, then its reference, or `null` when it has none (a demand not created yet). A page which doesn't set it
|
|
713
|
+
* itself can so derive "the form is loaded" from it: `computed(() => this.reference() !== undefined)`.
|
|
714
|
+
*
|
|
715
|
+
* A template, a `computed()` or an `effect()` reading it follows it, also when the page sets it: read it with
|
|
716
|
+
* `untracked()` in an `effect()` which must not follow it.
|
|
717
|
+
*/
|
|
718
|
+
readonly reference: _angular_core.WritableSignal<string | null | undefined>;
|
|
536
719
|
protected _destroyRef: DestroyRef;
|
|
537
720
|
protected _gesdemService: GesdemHandlerService;
|
|
538
721
|
protected _gesdemEventService: GesdemEventService;
|
|
@@ -547,6 +730,7 @@ declare abstract class AbstractPageComponent<T extends I18nForm> implements OnIn
|
|
|
547
730
|
private readonly _pendingUploadService;
|
|
548
731
|
private readonly _transmitConcurrentSafe;
|
|
549
732
|
private _gesdemSaveSubscription;
|
|
733
|
+
private _isNavigatingToNextPage;
|
|
550
734
|
private readonly _registerNgModelService;
|
|
551
735
|
private readonly _pageTitle;
|
|
552
736
|
constructor();
|
|
@@ -555,10 +739,29 @@ declare abstract class AbstractPageComponent<T extends I18nForm> implements OnIn
|
|
|
555
739
|
send(goToNextPage?: boolean, displaySuccessMessage?: boolean): void;
|
|
556
740
|
transmit(): void;
|
|
557
741
|
sendAndTransmit(displaySuccessMessage?: boolean): void;
|
|
742
|
+
/**
|
|
743
|
+
* Writes a value into the form without modifying it in place: the objects and arrays along the path are copied.
|
|
744
|
+
* Bind a field with `[model]="form.firstName" (modelChange)="patchForm(['firstName'], $event)"`, inside an
|
|
745
|
+
* `@if (form(); as form)`.
|
|
746
|
+
*
|
|
747
|
+
* @param path the keys and indexes leading to the field, e.g. `['address', 'locality']` or
|
|
748
|
+
* `['children', $index, 'firstName']`
|
|
749
|
+
* @param value the new value (`null` and `undefined` included: the model of the `foehn-*` components can be, as
|
|
750
|
+
* with `[(model)]`)
|
|
751
|
+
*/
|
|
752
|
+
patchForm<P extends ObjectPath<T>>(path: P, value: ObjectPathValue<T, P> | null | undefined): void;
|
|
558
753
|
previous(): void;
|
|
559
754
|
protected setPageTitle(pageTitle: string): void;
|
|
560
755
|
protected setPageTitleAsync(pageTitle: Observable<string>): void;
|
|
561
756
|
protected onFormSent(goToNextPage: boolean): void;
|
|
757
|
+
/**
|
|
758
|
+
* Navigates to the next page and ignores send(), sendAndTransmit() and transmit() until the navigation ends.
|
|
759
|
+
*
|
|
760
|
+
* The current page stays displayed and clickable while the next one is activated (e.g. lazy loaded route,
|
|
761
|
+
* resolver or async guard): a second click on "next" would save again, then navigate once more from the
|
|
762
|
+
* next page and skip it.
|
|
763
|
+
*/
|
|
764
|
+
protected navigateToNextPage(): Promise<void>;
|
|
562
765
|
private checkHasPendingsFilesBeforeTransmit;
|
|
563
766
|
private gotToTop;
|
|
564
767
|
abstract newForm(): T;
|
|
@@ -569,7 +772,7 @@ declare abstract class AbstractPageComponent<T extends I18nForm> implements OnIn
|
|
|
569
772
|
declare class FoehnNotfoundComponent implements OnInit, OnDestroy {
|
|
570
773
|
readonly shouldRedirect: _angular_core.InputSignal<boolean>;
|
|
571
774
|
readonly setPageTitle: _angular_core.InputSignal<boolean>;
|
|
572
|
-
seconds: number
|
|
775
|
+
readonly seconds: _angular_core.WritableSignal<number>;
|
|
573
776
|
private readonly router;
|
|
574
777
|
private readonly foehnPageService;
|
|
575
778
|
private intervalId;
|
|
@@ -816,7 +1019,8 @@ declare class GesdemErrorComponent implements OnInit {
|
|
|
816
1019
|
}
|
|
817
1020
|
|
|
818
1021
|
/**
|
|
819
|
-
* Provides the core PrestationsNg configuration (HTTP interceptors, error handler
|
|
1022
|
+
* Provides the core PrestationsNg configuration (HTTP interceptors, error handler and global error
|
|
1023
|
+
* listeners, FontAwesome config).
|
|
820
1024
|
* Replaces the old PrestationsNgCoreModule.
|
|
821
1025
|
*
|
|
822
1026
|
* Usage in bootstrapApplication:
|
|
@@ -834,6 +1038,8 @@ declare class SessionInfoWithApplicationService {
|
|
|
834
1038
|
private readonly gesdemService;
|
|
835
1039
|
private sessionInfoWithNoReference;
|
|
836
1040
|
private referenceObservable;
|
|
1041
|
+
private readonly isUserConnectedObservable;
|
|
1042
|
+
private readonly isReadyObservable;
|
|
837
1043
|
constructor();
|
|
838
1044
|
get isUserConnected(): Observable<boolean>;
|
|
839
1045
|
get isReady(): Observable<boolean>;
|
|
@@ -843,6 +1049,15 @@ declare class SessionInfoWithApplicationService {
|
|
|
843
1049
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SessionInfoWithApplicationService>;
|
|
844
1050
|
}
|
|
845
1051
|
|
|
1052
|
+
declare abstract class AbstractHttpService {
|
|
1053
|
+
protected readonly _dictionaryService: SdkDictionaryService;
|
|
1054
|
+
protected readonly _growlService: GrowlBrokerService;
|
|
1055
|
+
protected readonly _httpClient: HttpClient;
|
|
1056
|
+
protected catchError(defaultMessage?: string): (err: HttpErrorResponse) => never;
|
|
1057
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AbstractHttpService, never>;
|
|
1058
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AbstractHttpService>;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
846
1061
|
declare class FoehnConfirmModalContent {
|
|
847
1062
|
title?: string;
|
|
848
1063
|
htmlContent: string | undefined;
|
|
@@ -897,7 +1112,7 @@ declare class FoehnPageComponent implements OnChanges, OnInit {
|
|
|
897
1112
|
* reloading the page while having unsaved data.
|
|
898
1113
|
*/
|
|
899
1114
|
readonly showBeforeUnloadNativeConfirmAlert: _angular_core.InputSignal<boolean | undefined>;
|
|
900
|
-
pageTitle: string | undefined
|
|
1115
|
+
readonly pageTitle: _angular_core.WritableSignal<string | undefined>;
|
|
901
1116
|
hasBlockingSupportAlert: Observable<boolean>;
|
|
902
1117
|
displayUserCategory: Observable<boolean> | undefined;
|
|
903
1118
|
showSecuredAreaLoginButton: Observable<boolean> | undefined;
|
|
@@ -937,9 +1152,12 @@ declare class FoehnPageComponent implements OnChanges, OnInit {
|
|
|
937
1152
|
|
|
938
1153
|
declare class FoehnPageCounterComponent {
|
|
939
1154
|
readonly textTemplate: _angular_core.InputSignal<string>;
|
|
940
|
-
|
|
1155
|
+
/**
|
|
1156
|
+
* The counter is displayed once the page has been rendered,
|
|
1157
|
+
* when the current route of the navigation is known.
|
|
1158
|
+
*/
|
|
1159
|
+
readonly isStable: _angular_core.WritableSignal<boolean>;
|
|
941
1160
|
private readonly foehnNavigationService;
|
|
942
|
-
private readonly ngZone;
|
|
943
1161
|
constructor();
|
|
944
1162
|
get placeholders(): PlaceholderType;
|
|
945
1163
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnPageCounterComponent, never>;
|
|
@@ -1026,7 +1244,7 @@ declare class FoehnHeaderComponent implements OnInit {
|
|
|
1026
1244
|
readonly isParticulier: _angular_core.Signal<boolean>;
|
|
1027
1245
|
readonly prenomNom: _angular_core.Signal<string>;
|
|
1028
1246
|
id: string;
|
|
1029
|
-
connectedEsMenu: DropdownMenuGroup[] | undefined
|
|
1247
|
+
readonly connectedEsMenu: _angular_core.Signal<DropdownMenuGroup[] | undefined>;
|
|
1030
1248
|
isProduction: Observable<boolean> | undefined;
|
|
1031
1249
|
mockedServices: Observable<string[] | null | undefined> | undefined;
|
|
1032
1250
|
availableLanguages: Observable<Language[]> | undefined;
|
|
@@ -1040,7 +1258,6 @@ declare class FoehnHeaderComponent implements OnInit {
|
|
|
1040
1258
|
private readonly destroyRef;
|
|
1041
1259
|
private readonly ENV_PROD;
|
|
1042
1260
|
private readonly AVS;
|
|
1043
|
-
constructor();
|
|
1044
1261
|
ngOnInit(): void;
|
|
1045
1262
|
getEnvironmentLabel(info: ApplicationInfo): string | null | undefined;
|
|
1046
1263
|
languageChanged(languageCode: string): void;
|
|
@@ -1070,7 +1287,7 @@ declare class FoehnSkipLinkComponent implements OnInit {
|
|
|
1070
1287
|
|
|
1071
1288
|
declare class FoehnStatusProgressBarComponent implements OnInit {
|
|
1072
1289
|
readonly hidden: _angular_core.InputSignal<boolean | undefined>;
|
|
1073
|
-
isTransmitted: boolean
|
|
1290
|
+
readonly isTransmitted: _angular_core.WritableSignal<boolean>;
|
|
1074
1291
|
protected activatedRoute: ActivatedRoute;
|
|
1075
1292
|
private readonly navigation;
|
|
1076
1293
|
private readonly gesdemHand;
|
|
@@ -1124,6 +1341,7 @@ declare class FormSelectOptionGroup {
|
|
|
1124
1341
|
}
|
|
1125
1342
|
|
|
1126
1343
|
declare abstract class FoehnCheckableGroupComponent extends FoehnInputComponent<any> implements OnInit, OnChanges {
|
|
1344
|
+
#private;
|
|
1127
1345
|
readonly elements: _angular_core.ModelSignal<any>;
|
|
1128
1346
|
readonly elementsUrl: _angular_core.InputSignal<string | undefined>;
|
|
1129
1347
|
/**
|
|
@@ -1153,10 +1371,9 @@ declare abstract class FoehnCheckableGroupComponent extends FoehnInputComponent<
|
|
|
1153
1371
|
*/
|
|
1154
1372
|
readonly missingModelValues: Signal<any[]>;
|
|
1155
1373
|
readonly hasMissingModelValue: Signal<boolean>;
|
|
1156
|
-
groupedElements: FormSelectOptionGroup[]
|
|
1374
|
+
readonly groupedElements: _angular_core.WritableSignal<FormSelectOptionGroup[]>;
|
|
1157
1375
|
protected readonly httpClient: HttpClient;
|
|
1158
1376
|
protected readonly multiple: Signal<boolean>;
|
|
1159
|
-
private readonly ngZone;
|
|
1160
1377
|
private pulling_;
|
|
1161
1378
|
private readonly _onInitSubject;
|
|
1162
1379
|
private disabledByElements;
|
|
@@ -1238,20 +1455,24 @@ declare class FoehnAutocompleteComponent extends FoehnCheckableGroupComponent im
|
|
|
1238
1455
|
readonly suggestionsList: _angular_core.Signal<any>;
|
|
1239
1456
|
readonly inputElement: _angular_core.Signal<any>;
|
|
1240
1457
|
readonly inputValue: _angular_core.WritableSignal<string | null>;
|
|
1241
|
-
searchValue: string | null
|
|
1242
|
-
inputHasFocus: boolean
|
|
1243
|
-
hideSuggestions: boolean
|
|
1458
|
+
readonly searchValue: _angular_core.WritableSignal<string | null>;
|
|
1459
|
+
readonly inputHasFocus: _angular_core.WritableSignal<boolean>;
|
|
1460
|
+
readonly hideSuggestions: _angular_core.WritableSignal<boolean>;
|
|
1244
1461
|
currentBlurTimer: ReturnType<typeof setTimeout> | null;
|
|
1245
1462
|
placeholder: string | undefined;
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1463
|
+
readonly displayedElements: _angular_core.WritableSignal<any[]>;
|
|
1464
|
+
/**
|
|
1465
|
+
* Height of the suggestion list: at most NB_ITEMS_VISIBLE items are visible.
|
|
1466
|
+
*/
|
|
1467
|
+
readonly VIEW_PORT_HEIGHT: _angular_core.Signal<number>;
|
|
1468
|
+
readonly notificationMessageUpdated: _angular_core.WritableSignal<boolean>;
|
|
1249
1469
|
readonly disabledComputed: _angular_core.Signal<boolean>;
|
|
1470
|
+
protected readonly componentInjector: Injector;
|
|
1250
1471
|
private currentItemGlobalIndex;
|
|
1251
1472
|
private readonly NB_ITEMS_VISIBLE;
|
|
1252
1473
|
private readonly filterSubject;
|
|
1253
1474
|
private listHasFocus;
|
|
1254
|
-
private activeDescendantId;
|
|
1475
|
+
private readonly activeDescendantId;
|
|
1255
1476
|
private readonly SUGGESTION_SELECTED_CLASS;
|
|
1256
1477
|
private readonly EXCLUDE_HTML_TAGS_REGEX;
|
|
1257
1478
|
private readonly SUGGESTION_CUSTOM_ATTRIBUTE_LABEL_VALUE;
|
|
@@ -1299,7 +1520,10 @@ declare class FoehnAutocompleteComponent extends FoehnCheckableGroupComponent im
|
|
|
1299
1520
|
private checkAndSetInputValue;
|
|
1300
1521
|
private setSuggestionsDisplayed;
|
|
1301
1522
|
private setDisplayedElements;
|
|
1302
|
-
|
|
1523
|
+
/**
|
|
1524
|
+
* The virtual scroll viewport has to measure its size again once its new height is rendered.
|
|
1525
|
+
*/
|
|
1526
|
+
private checkViewportSizeAfterRender;
|
|
1303
1527
|
private getSelectedElement;
|
|
1304
1528
|
private selectNextElement;
|
|
1305
1529
|
private clearSelectionAndFindSelectedIndex;
|
|
@@ -1319,7 +1543,24 @@ declare class FoehnAutocompleteComponent extends FoehnCheckableGroupComponent im
|
|
|
1319
1543
|
private getCustomValue;
|
|
1320
1544
|
private getModelValueDisplayValue;
|
|
1321
1545
|
private selectValueToDisplay;
|
|
1546
|
+
/**
|
|
1547
|
+
* Selects the value to display each time the elements are retrieved (onInitSubject) and each time the model
|
|
1548
|
+
* changes. `isSuggestionListDynamic` is read at each retrieval as it can change at runtime: only the matching
|
|
1549
|
+
* of the current kind of list is active (switchMap).
|
|
1550
|
+
*/
|
|
1322
1551
|
private matchValueOnModelChangeSubscription;
|
|
1552
|
+
/**
|
|
1553
|
+
* Dynamic suggestion list: the value to display is selected each time the model changes, with the current elements
|
|
1554
|
+
* and then with the elements loaded next, until they contain the model. The loaded elements depend on the search:
|
|
1555
|
+
* the model is not reset when it is not in them, and once displayed, the elements loaded for the search of the user
|
|
1556
|
+
* no longer change what is displayed.
|
|
1557
|
+
*/
|
|
1558
|
+
private matchValueOfDynamicList;
|
|
1559
|
+
/**
|
|
1560
|
+
* Static suggestion list: each time the elements are retrieved, the value to display is selected for the current
|
|
1561
|
+
* model (replayed by model$), then each time the model changes.
|
|
1562
|
+
*/
|
|
1563
|
+
private matchValueOfStaticList;
|
|
1323
1564
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnAutocompleteComponent, never>;
|
|
1324
1565
|
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
1566
|
}
|
|
@@ -1347,11 +1588,11 @@ declare class FoehnInputTextComponent extends FoehnInputStringComponent {
|
|
|
1347
1588
|
declare class FoehnInputForeignLocalityComponent extends FoehnInputComponent<Locality> {
|
|
1348
1589
|
readonly localityRequired: _angular_core.InputSignal<boolean>;
|
|
1349
1590
|
readonly zipCodeRequired: _angular_core.InputSignal<boolean>;
|
|
1350
|
-
|
|
1351
|
-
|
|
1591
|
+
/** The zip code and the name of the model, changed by the sub components. */
|
|
1592
|
+
readonly zipCode: _angular_core.WritableSignal<string | null>;
|
|
1593
|
+
readonly longName: _angular_core.WritableSignal<string | null>;
|
|
1352
1594
|
updateLocality(): void;
|
|
1353
1595
|
handleUserInput(): void;
|
|
1354
|
-
onModelChange(value: Locality | null): void;
|
|
1355
1596
|
isRequired(): boolean;
|
|
1356
1597
|
private getValidValue;
|
|
1357
1598
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnInputForeignLocalityComponent, never>;
|
|
@@ -1359,10 +1600,10 @@ declare class FoehnInputForeignLocalityComponent extends FoehnInputComponent<Loc
|
|
|
1359
1600
|
}
|
|
1360
1601
|
|
|
1361
1602
|
declare class FoehnInputForeignStreetComponent extends FoehnInputComponent<Street> {
|
|
1362
|
-
|
|
1603
|
+
/** The name of the model, changed by the sub component. */
|
|
1604
|
+
readonly longName: _angular_core.WritableSignal<string | null>;
|
|
1363
1605
|
updateStreet(): void;
|
|
1364
1606
|
handleUserInput(): void;
|
|
1365
|
-
onModelChange(value: Street | null): void;
|
|
1366
1607
|
private getValidValue;
|
|
1367
1608
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnInputForeignStreetComponent, never>;
|
|
1368
1609
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnInputForeignStreetComponent, "foehn-input-foreign-street", never, {}, {}, never, ["*"], true, never>;
|
|
@@ -1380,7 +1621,9 @@ declare class FoehnInputAddressComponent extends FoehnInputComponent<Address> im
|
|
|
1380
1621
|
readonly showAdressLine2: _angular_core.InputSignal<boolean>;
|
|
1381
1622
|
readonly countryRequired: _angular_core.InputSignal<boolean>;
|
|
1382
1623
|
readonly swissNpaLocalityRequired: _angular_core.InputSignal<boolean>;
|
|
1624
|
+
readonly swissNpaLocalityBaseUrl: _angular_core.InputSignal<string>;
|
|
1383
1625
|
readonly streetRequired: _angular_core.InputSignal<boolean | undefined>;
|
|
1626
|
+
readonly streetAllowCustomValue: _angular_core.InputSignal<boolean>;
|
|
1384
1627
|
readonly streetNumberRequired: _angular_core.InputSignal<boolean>;
|
|
1385
1628
|
readonly hideNotRequiredExtraLabelStreetNumber: _angular_core.InputSignal<boolean>;
|
|
1386
1629
|
readonly foreignZipCodeRequired: _angular_core.InputSignal<boolean>;
|
|
@@ -1398,23 +1641,28 @@ declare class FoehnInputAddressComponent extends FoehnInputComponent<Address> im
|
|
|
1398
1641
|
readonly foreignStreetComponent: _angular_core.Signal<FoehnInputForeignStreetComponent | undefined>;
|
|
1399
1642
|
readonly foreignHouseNumber: _angular_core.Signal<FoehnInputTextComponent | undefined>;
|
|
1400
1643
|
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
|
|
1644
|
+
readonly country: _angular_core.WritableSignal<Country | null>;
|
|
1645
|
+
readonly locality: _angular_core.WritableSignal<Locality | null>;
|
|
1646
|
+
readonly street: _angular_core.WritableSignal<Street | null>;
|
|
1647
|
+
readonly houseNumber: _angular_core.WritableSignal<string | null>;
|
|
1648
|
+
readonly postOfficeBoxText: _angular_core.WritableSignal<string | null>;
|
|
1649
|
+
readonly addressLine1: _angular_core.WritableSignal<string | null>;
|
|
1650
|
+
readonly addressLine2: _angular_core.WritableSignal<string | null>;
|
|
1408
1651
|
countries: Observable<Country[]> | undefined;
|
|
1409
1652
|
localities: Observable<Locality[]> | undefined;
|
|
1410
1653
|
streets: Observable<Street[]> | undefined;
|
|
1411
1654
|
streetNumbers: Observable<StreetNumber[]> | undefined;
|
|
1412
|
-
streetCustomErrors: Record<string, string
|
|
1655
|
+
readonly streetCustomErrors: _angular_core.WritableSignal<Record<string, string>>;
|
|
1413
1656
|
private readonly httpClient;
|
|
1414
1657
|
private readonly dictionaryService;
|
|
1415
|
-
private readonly
|
|
1416
|
-
private
|
|
1417
|
-
private
|
|
1658
|
+
private readonly addressInjector;
|
|
1659
|
+
private isSanitizationScheduled;
|
|
1660
|
+
private isDefaultCountryScheduled;
|
|
1661
|
+
/**
|
|
1662
|
+
* The URL of the Swiss localities. They are requested once the Swiss fields are displayed (`isSwiss()`), and again
|
|
1663
|
+
* only when this URL changes.
|
|
1664
|
+
*/
|
|
1665
|
+
private readonly localitiesUrl;
|
|
1418
1666
|
private readonly countryModelChangeSubject;
|
|
1419
1667
|
private readonly isOnlySwissChangeSubject;
|
|
1420
1668
|
constructor();
|
|
@@ -1427,11 +1675,10 @@ declare class FoehnInputAddressComponent extends FoehnInputComponent<Address> im
|
|
|
1427
1675
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1428
1676
|
updateAddress(): void;
|
|
1429
1677
|
handleUserInput(): void;
|
|
1430
|
-
onModelChange(value: Address | null): void;
|
|
1431
1678
|
isSwiss(): boolean;
|
|
1432
|
-
userInputCountry(
|
|
1433
|
-
userInputLocality(
|
|
1434
|
-
userInputStreet(
|
|
1679
|
+
userInputCountry(): void;
|
|
1680
|
+
userInputLocality(): void;
|
|
1681
|
+
userInputStreet(): void;
|
|
1435
1682
|
countryUpdated(country: Country | null): void;
|
|
1436
1683
|
getLocalityDisplayedName(locality: Locality): string;
|
|
1437
1684
|
localityUpdated(locality: Locality | null): void;
|
|
@@ -1439,7 +1686,17 @@ declare class FoehnInputAddressComponent extends FoehnInputComponent<Address> im
|
|
|
1439
1686
|
isStreetRequired(): boolean;
|
|
1440
1687
|
isForeignStreetRequired(): boolean;
|
|
1441
1688
|
isPostOfficeBoxTextRequired(): boolean;
|
|
1689
|
+
protected hasValueToDisplay(value: Address | null | undefined): boolean;
|
|
1442
1690
|
private sanitizeAddress;
|
|
1691
|
+
/**
|
|
1692
|
+
* @returns the sanitized address when it differs from the given value, otherwise null
|
|
1693
|
+
*/
|
|
1694
|
+
private getSanitizedModel;
|
|
1695
|
+
/**
|
|
1696
|
+
* The sanitized model is set after the next rendering (not while the view is checked), from the latest model: the
|
|
1697
|
+
* model given by the parent in between (e.g. prefilled asynchronously) has been received, it is not overwritten.
|
|
1698
|
+
*/
|
|
1699
|
+
private scheduleModelSanitization;
|
|
1443
1700
|
private replaceAtLeastOneNotNull;
|
|
1444
1701
|
private getCountries;
|
|
1445
1702
|
private getLocalities;
|
|
@@ -1448,6 +1705,12 @@ declare class FoehnInputAddressComponent extends FoehnInputComponent<Address> im
|
|
|
1448
1705
|
private clearAutocompletesWhenCountryIsUnappropriatedToComponentConfiguration;
|
|
1449
1706
|
private getSwissCountry;
|
|
1450
1707
|
private setDefaultCountry;
|
|
1708
|
+
private writeSwissCountry;
|
|
1709
|
+
/**
|
|
1710
|
+
* @returns whether the Swiss country is already set, in the component and in the model (unless the model has
|
|
1711
|
+
* nothing else: the country alone is not written)
|
|
1712
|
+
*/
|
|
1713
|
+
private hasSwissCountry;
|
|
1451
1714
|
private clearAutocompletes;
|
|
1452
1715
|
private extractLocalityZipCodeId;
|
|
1453
1716
|
private extractStreetEstrid;
|
|
@@ -1455,9 +1718,16 @@ declare class FoehnInputAddressComponent extends FoehnInputComponent<Address> im
|
|
|
1455
1718
|
private getValidValue;
|
|
1456
1719
|
private isModelEmpty;
|
|
1457
1720
|
private manageDefaultCountry;
|
|
1721
|
+
/**
|
|
1722
|
+
* The default country is applied after the next rendering (once for the changes of the same rendering), from the
|
|
1723
|
+
* latest state: without zone.js, a model given by the parent in between (e.g. prefilled asynchronously) is only
|
|
1724
|
+
* received with the next change detection, it must not be overwritten by the model with the default country only.
|
|
1725
|
+
*/
|
|
1726
|
+
private scheduleDefaultCountry;
|
|
1727
|
+
private applyDefaultCountry;
|
|
1458
1728
|
private isCountryInputDirty;
|
|
1459
1729
|
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>;
|
|
1730
|
+
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
1731
|
}
|
|
1462
1732
|
|
|
1463
1733
|
declare class FoehnBreadcrumbComponent implements OnInit {
|
|
@@ -1488,10 +1758,9 @@ declare class FoehnCheckboxComponent extends FoehnCheckableGroupComponent implem
|
|
|
1488
1758
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnCheckboxComponent, "foehn-checkbox", never, {}, {}, never, ["*"], true, never>;
|
|
1489
1759
|
}
|
|
1490
1760
|
|
|
1491
|
-
declare class FoehnRadioComponent extends FoehnCheckableGroupComponent implements
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
onModelChange(value: any): void;
|
|
1761
|
+
declare class FoehnRadioComponent extends FoehnCheckableGroupComponent implements AfterViewChecked {
|
|
1762
|
+
/** The value of the model in the radio buttons: follows the model, elementValue and elementValueIdentity. */
|
|
1763
|
+
readonly inputValue: _angular_core.Signal<string | null | undefined>;
|
|
1495
1764
|
ngAfterViewChecked(): void;
|
|
1496
1765
|
getValueOrObject(element: any): string | undefined | null;
|
|
1497
1766
|
getLabelledBy(elementsGroup: FormSelectOptionGroup, groupIndex: number, index: number): string;
|
|
@@ -1542,16 +1811,21 @@ declare class FoehnMultiselectAutocompleteComponent extends FoehnAutocompleteCom
|
|
|
1542
1811
|
readonly defaultElemRef: _angular_core.Signal<readonly ElementRef<any>[]>;
|
|
1543
1812
|
readonly defaultDeleteFocusArea: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1544
1813
|
readonly defaultElementValuesComputed: _angular_core.Signal<unknown[]>;
|
|
1545
|
-
autocompleteInputValue: string | null
|
|
1546
|
-
|
|
1547
|
-
|
|
1814
|
+
readonly autocompleteInputValue: _angular_core.WritableSignal<string | null>;
|
|
1815
|
+
/**
|
|
1816
|
+
* Every element is selected: a message replaces the autocomplete (not for an empty list of elements).
|
|
1817
|
+
*/
|
|
1818
|
+
readonly showEmptyListMessage: _angular_core.Signal<boolean>;
|
|
1819
|
+
readonly srAnnouncements: _angular_core.WritableSignal<string>;
|
|
1820
|
+
protected readonly suggestions: _angular_core.Signal<[]>;
|
|
1548
1821
|
private readonly dictionaryService;
|
|
1549
1822
|
private srAnnouncementClearTimer;
|
|
1550
1823
|
private readonly SR_ANNOUNCEMENT_CLEAR_TIMEOUT_INTERVAL_MS;
|
|
1551
1824
|
private pendingRemovedIndexForFocus;
|
|
1825
|
+
private readonly suggestionsEffect;
|
|
1826
|
+
private readonly autocompleteInputVisibilityEffect;
|
|
1552
1827
|
private readonly selectedElemRefEffect;
|
|
1553
1828
|
ngOnInit(): void;
|
|
1554
|
-
onModelChange(value: any): void;
|
|
1555
1829
|
hasErrorsToDisplay(): boolean;
|
|
1556
1830
|
getLabel(value: any): string | null | undefined;
|
|
1557
1831
|
updateMultiselectAutocomplete(currentModel: unknown[]): void;
|
|
@@ -1560,39 +1834,33 @@ declare class FoehnMultiselectAutocompleteComponent extends FoehnAutocompleteCom
|
|
|
1560
1834
|
removeItem(item: unknown, index: number): void;
|
|
1561
1835
|
trackByFn(index: number): number;
|
|
1562
1836
|
canBeDeleted(index: number): boolean;
|
|
1563
|
-
onAutocompleteElementsLoaded(
|
|
1837
|
+
onAutocompleteElementsLoaded(): void;
|
|
1564
1838
|
getDeleteButtonAriaLabel(element: unknown): string;
|
|
1565
1839
|
hasDefaultDeleteFocusArea(): boolean;
|
|
1566
1840
|
getBadgeLabel(element: any): string;
|
|
1567
|
-
private manageListWhenElementsAreLoaded;
|
|
1568
1841
|
private findElementByModelItem;
|
|
1569
1842
|
private getValidValue;
|
|
1570
1843
|
private focusNextAreaAfterDelete;
|
|
1571
1844
|
private filterAutocompleteElements;
|
|
1572
|
-
private
|
|
1573
|
-
private
|
|
1574
|
-
private showAlertMessageAndHideAutocomplete;
|
|
1845
|
+
private focusAfterAddingAnItem;
|
|
1846
|
+
private applySuggestionsToAutocomplete;
|
|
1575
1847
|
private manageScreenReaderAnnouncement;
|
|
1576
1848
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnMultiselectAutocompleteComponent, never>;
|
|
1577
1849
|
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
1850
|
}
|
|
1579
1851
|
|
|
1580
1852
|
declare class FoehnInputEmailComponent extends FoehnInputStringComponent implements OnInit {
|
|
1581
|
-
timeoutReference: any;
|
|
1582
1853
|
readonly autocomplete: _angular_core.InputSignalWithTransform<string | boolean | undefined, string | boolean | undefined>;
|
|
1583
1854
|
private readonly dictionaryService;
|
|
1584
1855
|
ngOnInit(): void;
|
|
1585
|
-
onModelChange(value: string): void;
|
|
1586
1856
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnInputEmailComponent, never>;
|
|
1587
1857
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnInputEmailComponent, "foehn-input-email", never, { "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1588
1858
|
}
|
|
1589
1859
|
|
|
1590
1860
|
declare class FoehnInputHiddenComponent extends FoehnInputStringComponent implements OnInit {
|
|
1591
|
-
timeoutReference: any;
|
|
1592
1861
|
readonly model: _angular_core.ModelSignal<string | null | undefined>;
|
|
1593
1862
|
constructor();
|
|
1594
1863
|
ngOnInit(): void;
|
|
1595
|
-
onModelChange(value: string | null): void;
|
|
1596
1864
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnInputHiddenComponent, never>;
|
|
1597
1865
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnInputHiddenComponent, "foehn-input-hidden", never, { "model": { "alias": "model"; "required": false; "isSignal": true; }; }, { "model": "modelChange"; }, never, ["*"], true, never>;
|
|
1598
1866
|
}
|
|
@@ -1639,10 +1907,8 @@ declare class FoehnInputNumberComponent extends FoehnInputStringComponent implem
|
|
|
1639
1907
|
}
|
|
1640
1908
|
|
|
1641
1909
|
declare class FoehnInputPasswordComponent extends FoehnInputStringComponent implements OnInit {
|
|
1642
|
-
timeoutReference: any;
|
|
1643
1910
|
readonly autocomplete: _angular_core.InputSignalWithTransform<string | boolean | undefined, string | boolean | undefined>;
|
|
1644
1911
|
ngOnInit(): void;
|
|
1645
|
-
onModelChange(value: string): void;
|
|
1646
1912
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnInputPasswordComponent, never>;
|
|
1647
1913
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnInputPasswordComponent, "foehn-input-password", never, { "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1648
1914
|
}
|
|
@@ -1672,7 +1938,7 @@ declare class FoehnInputPrefixedTextComponent extends FoehnInputStringComponent
|
|
|
1672
1938
|
readonly prefixColClass: _angular_core.InputSignal<string>;
|
|
1673
1939
|
readonly textColClass: _angular_core.InputSignal<string>;
|
|
1674
1940
|
readonly text: _angular_core.Signal<string | null>;
|
|
1675
|
-
private previousPrefix;
|
|
1941
|
+
private readonly previousPrefix;
|
|
1676
1942
|
constructor();
|
|
1677
1943
|
onTextChange(value: string | undefined | null): void;
|
|
1678
1944
|
updateFullText(text: string | null | undefined): void;
|
|
@@ -1682,24 +1948,28 @@ declare class FoehnInputPrefixedTextComponent extends FoehnInputStringComponent
|
|
|
1682
1948
|
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
1949
|
}
|
|
1684
1950
|
|
|
1685
|
-
declare class FoehnInputTextareaComponent extends FoehnInputStringComponent
|
|
1951
|
+
declare class FoehnInputTextareaComponent extends FoehnInputStringComponent {
|
|
1686
1952
|
readonly rows: _angular_core.InputSignal<number>;
|
|
1687
1953
|
readonly displayCharCount: _angular_core.InputSignal<boolean | undefined>;
|
|
1688
|
-
|
|
1689
|
-
charCountLeft: number | undefined
|
|
1690
|
-
charCountLabel: string | undefined
|
|
1691
|
-
|
|
1954
|
+
/** The characters left before max, when the count is displayed. */
|
|
1955
|
+
readonly charCountLeft: _angular_core.Signal<number | undefined>;
|
|
1956
|
+
readonly charCountLabel: _angular_core.Signal<string | undefined>;
|
|
1957
|
+
readonly isCharCountExceeded: _angular_core.Signal<boolean>;
|
|
1958
|
+
/** Announces the count once 10 characters or less are left. */
|
|
1959
|
+
readonly ariaLiveStatus: _angular_core.Signal<"off" | "assertive">;
|
|
1692
1960
|
private readonly dictionary;
|
|
1693
|
-
ngOnInit(): void;
|
|
1694
|
-
onModelChange(value: string): void;
|
|
1695
|
-
countCharLeft(): void;
|
|
1696
|
-
checkCharCountExceeded(): void;
|
|
1697
1961
|
private getCharCountLabel;
|
|
1698
1962
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnInputTextareaComponent, never>;
|
|
1699
1963
|
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
1964
|
}
|
|
1701
1965
|
|
|
1702
|
-
|
|
1966
|
+
/**
|
|
1967
|
+
* The model of `foehn-input-date`: `[year, month, day]`, a part not entered being `null`. It is the JSON of a
|
|
1968
|
+
* `LenientLocalDate` of prestations-be.
|
|
1969
|
+
*/
|
|
1970
|
+
type FoehnDateModel = (number | null)[];
|
|
1971
|
+
|
|
1972
|
+
declare class FoehnDateComponent extends FoehnInputComponent<FoehnDateModel> {
|
|
1703
1973
|
readonly disableDay: _angular_core.InputSignal<boolean>;
|
|
1704
1974
|
readonly disableMonth: _angular_core.InputSignal<boolean>;
|
|
1705
1975
|
readonly disableYear: _angular_core.InputSignal<boolean>;
|
|
@@ -1708,29 +1978,35 @@ declare class FoehnDateComponent extends FoehnInputComponent<(number | null)[]>
|
|
|
1708
1978
|
readonly maxDate: _angular_core.InputSignal<number[] | undefined>;
|
|
1709
1979
|
readonly childrenLabelSrOnly: _angular_core.InputSignal<boolean>;
|
|
1710
1980
|
readonly clearButton: _angular_core.InputSignal<boolean>;
|
|
1711
|
-
day: string | null
|
|
1712
|
-
month: string | null
|
|
1713
|
-
year: string | null
|
|
1714
|
-
datePickerModel: number[] | null
|
|
1981
|
+
readonly day: _angular_core.WritableSignal<string | null>;
|
|
1982
|
+
readonly month: _angular_core.WritableSignal<string | null>;
|
|
1983
|
+
readonly year: _angular_core.WritableSignal<string | null>;
|
|
1984
|
+
readonly datePickerModel: _angular_core.WritableSignal<number[] | null>;
|
|
1715
1985
|
readonly disabledComputed: Signal<boolean>;
|
|
1716
1986
|
constructor();
|
|
1717
1987
|
updateDate(): void;
|
|
1718
1988
|
updateDateFromDatePicker(date: number[] | null): void;
|
|
1719
1989
|
handleUserInput(): void;
|
|
1720
|
-
handleDatePickerUserInput(date:
|
|
1721
|
-
|
|
1722
|
-
getValidValue(): (number | null)[] | null | undefined;
|
|
1990
|
+
handleDatePickerUserInput(date: FoehnDateModel | null): void;
|
|
1991
|
+
getValidValue(): FoehnDateModel | null | undefined;
|
|
1723
1992
|
shouldDisplayDatePicker(): boolean;
|
|
1724
1993
|
resetModel(): void;
|
|
1725
1994
|
isEmpty(): boolean;
|
|
1726
1995
|
isEmptyDependingOnDisabled(): boolean;
|
|
1996
|
+
private getDatePart;
|
|
1727
1997
|
private toNumber;
|
|
1728
1998
|
private numberToString;
|
|
1729
1999
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnDateComponent, never>;
|
|
1730
2000
|
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
2001
|
}
|
|
1732
2002
|
|
|
1733
|
-
|
|
2003
|
+
/**
|
|
2004
|
+
* The model of `foehn-input-date-time`: `[year, month, day, hour, minute]`, a part not entered being `null`. It is the
|
|
2005
|
+
* JSON of a `LenientLocalDateTime` of prestations-be.
|
|
2006
|
+
*/
|
|
2007
|
+
type FoehnDateTimeModel = (number | null)[];
|
|
2008
|
+
|
|
2009
|
+
declare class FoehnDateTimeComponent extends FoehnInputComponent<FoehnDateTimeModel> {
|
|
1734
2010
|
readonly disableDay: _angular_core.InputSignal<boolean>;
|
|
1735
2011
|
readonly disableMonth: _angular_core.InputSignal<boolean>;
|
|
1736
2012
|
readonly disableYear: _angular_core.InputSignal<boolean>;
|
|
@@ -1739,25 +2015,30 @@ declare class FoehnDateTimeComponent extends FoehnInputComponent<(number | null)
|
|
|
1739
2015
|
readonly hideDatePickerButton: _angular_core.InputSignal<boolean>;
|
|
1740
2016
|
readonly childrenLabelSrOnly: _angular_core.InputSignal<boolean>;
|
|
1741
2017
|
readonly clearButton: _angular_core.InputSignal<boolean>;
|
|
1742
|
-
date:
|
|
1743
|
-
time: string | null
|
|
2018
|
+
readonly date: _angular_core.WritableSignal<FoehnDateModel | null>;
|
|
2019
|
+
readonly time: _angular_core.WritableSignal<string | null>;
|
|
1744
2020
|
private readonly userInputTimeSubject;
|
|
1745
2021
|
private readonly timeModelChangeSubject;
|
|
1746
2022
|
private readonly dateHelper;
|
|
2023
|
+
private readonly pendingTasksService;
|
|
2024
|
+
/**
|
|
2025
|
+
* The application is not stable (e.g. fixture.whenStable() in tests) while a time user input is debounced.
|
|
2026
|
+
*/
|
|
2027
|
+
private removePendingTimeInputTask;
|
|
1747
2028
|
constructor();
|
|
1748
2029
|
updateDateTime(): void;
|
|
1749
2030
|
handleUserInput(): void;
|
|
1750
2031
|
timeModelChange(value: string | null | undefined): void;
|
|
1751
2032
|
handleUserInputTime(value: string | null | undefined): void;
|
|
1752
2033
|
handleUserInputDate(): void;
|
|
1753
|
-
|
|
1754
|
-
getValidValue(): (number | null)[] | null | undefined;
|
|
2034
|
+
getValidValue(): FoehnDateTimeModel | null | undefined;
|
|
1755
2035
|
resetModel(): void;
|
|
1756
2036
|
isEmpty(): boolean;
|
|
1757
2037
|
isEmptyDependingOnDisabled(): boolean;
|
|
1758
2038
|
private isTimeEmpty;
|
|
1759
2039
|
private isDateEmpty;
|
|
1760
2040
|
private isDateEmptyDependingOnDisabled;
|
|
2041
|
+
private stopPendingTimeInputTask;
|
|
1761
2042
|
private toNumber;
|
|
1762
2043
|
private numberToString;
|
|
1763
2044
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnDateTimeComponent, never>;
|
|
@@ -1767,15 +2048,18 @@ declare class FoehnDateTimeComponent extends FoehnInputComponent<(number | null)
|
|
|
1767
2048
|
declare class FoehnTimeComponent extends FoehnInputStringComponent {
|
|
1768
2049
|
readonly childrenLabelSrOnly: _angular_core.InputSignal<boolean>;
|
|
1769
2050
|
readonly clearButton: _angular_core.InputSignal<boolean>;
|
|
1770
|
-
hour: string | null
|
|
1771
|
-
minute: string | null
|
|
2051
|
+
readonly hour: _angular_core.WritableSignal<string | null>;
|
|
2052
|
+
readonly minute: _angular_core.WritableSignal<string | null>;
|
|
1772
2053
|
private readonly dateHelper;
|
|
1773
2054
|
constructor();
|
|
1774
2055
|
updateTime(): void;
|
|
1775
2056
|
handleUserInput(): void;
|
|
1776
|
-
onModelChange(value: string): void;
|
|
1777
2057
|
resetModel(): void;
|
|
1778
2058
|
isEmpty(): boolean;
|
|
2059
|
+
/**
|
|
2060
|
+
* @returns the part of the time of the model, the previous value when the model is not a complete time
|
|
2061
|
+
*/
|
|
2062
|
+
private getTimePart;
|
|
1779
2063
|
private getValidValue;
|
|
1780
2064
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnTimeComponent, never>;
|
|
1781
2065
|
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 +2067,16 @@ declare class FoehnTimeComponent extends FoehnInputStringComponent {
|
|
|
1783
2067
|
|
|
1784
2068
|
declare class FoehnInputNav13Component extends FoehnInputStringComponent implements OnInit {
|
|
1785
2069
|
PREFIX_NAVS: string;
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
2070
|
+
/** The parts of the model after 756, changed by the sub components. */
|
|
2071
|
+
readonly part2: _angular_core.WritableSignal<string | null>;
|
|
2072
|
+
readonly part3: _angular_core.WritableSignal<string | null>;
|
|
2073
|
+
readonly part4: _angular_core.WritableSignal<string | null>;
|
|
1789
2074
|
readonly label: _angular_core.InputSignalWithTransform<string | undefined, string | undefined>;
|
|
1790
2075
|
constructor();
|
|
1791
2076
|
ngOnInit(): void;
|
|
1792
2077
|
updateNavs(): void;
|
|
1793
2078
|
handleUserInput(): void;
|
|
1794
|
-
onModelChange(
|
|
2079
|
+
onModelChange(_value: string | null | undefined): void;
|
|
1795
2080
|
onPaste(event: ClipboardEvent): void;
|
|
1796
2081
|
private splitValue;
|
|
1797
2082
|
private getValidValue;
|
|
@@ -1821,7 +2106,13 @@ declare class DisplayCurrencyPipe implements PipeTransform {
|
|
|
1821
2106
|
|
|
1822
2107
|
declare class DisplayDatePipe implements PipeTransform {
|
|
1823
2108
|
private readonly dateHelper;
|
|
1824
|
-
|
|
2109
|
+
/**
|
|
2110
|
+
* @param value a Date, or a date or a date-time as an array (e.g. the model of `foehn-input-date` or
|
|
2111
|
+
* `foehn-input-date-time`)
|
|
2112
|
+
* @param showTime whether to display the time, when the value has one
|
|
2113
|
+
* @returns the date to display, null when it is not complete (a part not entered)
|
|
2114
|
+
*/
|
|
2115
|
+
transform(value: Date | FoehnDateModel | FoehnDateTimeModel | null | undefined, showTime?: boolean): string | null;
|
|
1825
2116
|
private transformFromDate;
|
|
1826
2117
|
private transformFromArray;
|
|
1827
2118
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DisplayDatePipe, never>;
|
|
@@ -1853,12 +2144,13 @@ declare const GrowlType: {
|
|
|
1853
2144
|
DANGER: string;
|
|
1854
2145
|
};
|
|
1855
2146
|
|
|
1856
|
-
declare class SdkDictionaryPipe implements PipeTransform {
|
|
2147
|
+
declare class SdkDictionaryPipe implements PipeTransform, OnDestroy {
|
|
1857
2148
|
private readonly dictionaryService;
|
|
1858
2149
|
private readonly ref;
|
|
1859
2150
|
private readonly asyncPipe;
|
|
1860
2151
|
constructor();
|
|
1861
2152
|
transform(key: any, placeHolderType?: PlaceholderType): any;
|
|
2153
|
+
ngOnDestroy(): void;
|
|
1862
2154
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdkDictionaryPipe, never>;
|
|
1863
2155
|
static ɵpipe: _angular_core.ɵɵPipeDeclaration<SdkDictionaryPipe, "fromDictionary", true>;
|
|
1864
2156
|
}
|
|
@@ -1868,17 +2160,25 @@ declare abstract class AbstractFoehnNavigationComponent {
|
|
|
1868
2160
|
readonly showNextButton: _angular_core.InputSignal<boolean>;
|
|
1869
2161
|
readonly nextLabel: _angular_core.InputSignal<string>;
|
|
1870
2162
|
readonly prevLabel: _angular_core.InputSignal<string>;
|
|
2163
|
+
readonly loadingLabel: _angular_core.InputSignal<string>;
|
|
1871
2164
|
readonly continueLaterLabel: _angular_core.InputSignal<string>;
|
|
1872
2165
|
readonly continueLaterAlreadyRegisteredLabel: _angular_core.InputSignal<string>;
|
|
1873
2166
|
readonly continueLaterConnectedLabel: _angular_core.InputSignal<string>;
|
|
1874
2167
|
readonly triggerRecoveryOnPageChange: _angular_core.InputSignal<boolean>;
|
|
1875
2168
|
readonly onNext: _angular_core.OutputEmitterRef<void>;
|
|
1876
2169
|
readonly onPrevious: _angular_core.OutputEmitterRef<void>;
|
|
2170
|
+
readonly pendingNavigationDirection: Signal<NavigationDirection | null>;
|
|
2171
|
+
readonly loadingDirection: Signal<NavigationDirection | null>;
|
|
2172
|
+
readonly isNavigating: Signal<boolean>;
|
|
2173
|
+
readonly isLoading: Signal<boolean>;
|
|
2174
|
+
readonly isLoadingNext: Signal<boolean>;
|
|
2175
|
+
readonly isLoadingPrevious: Signal<boolean>;
|
|
2176
|
+
constructor();
|
|
1877
2177
|
goToNext(): void;
|
|
1878
2178
|
goToPrevious(): void;
|
|
1879
2179
|
canShowNextButton(): boolean;
|
|
1880
2180
|
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>;
|
|
2181
|
+
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
2182
|
}
|
|
1883
2183
|
|
|
1884
2184
|
declare class FoehnNavigationComponent extends AbstractFoehnNavigationComponent implements OnInit {
|
|
@@ -1949,6 +2249,17 @@ declare class FoehnValidationAlertsComponent {
|
|
|
1949
2249
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FoehnValidationAlertsComponent, "foehn-validation-alerts", never, { "component": { "alias": "component"; "required": false; "isSignal": true; }; "shouldErrorsBeLive": { "alias": "shouldErrorsBeLive"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1950
2250
|
}
|
|
1951
2251
|
|
|
2252
|
+
declare class FormErrorHelper {
|
|
2253
|
+
/**
|
|
2254
|
+
* The errors left once the item at `itemPath` (e.g. `exchanges[1]`) is removed from its list: its errors are
|
|
2255
|
+
* dropped, and those of the following items take their new index (`exchanges[2].date` becomes `exchanges[1].date`).
|
|
2256
|
+
*
|
|
2257
|
+
* @returns a new array, the given errors aren't modified
|
|
2258
|
+
*/
|
|
2259
|
+
static withoutListItem(errors: readonly FormError[], itemPath: string): FormError[];
|
|
2260
|
+
private static pathPattern;
|
|
2261
|
+
}
|
|
2262
|
+
|
|
1952
2263
|
declare abstract class AbstractIconComponent {
|
|
1953
2264
|
readonly title: _angular_core.InputSignal<string | undefined>;
|
|
1954
2265
|
abstract iconName: IconDefinition;
|
|
@@ -2141,8 +2452,8 @@ declare class FoehnListComponent implements OnChanges {
|
|
|
2141
2452
|
readonly trackByFn: _angular_core.InputSignal<(index: number, _item: unknown) => number | string>;
|
|
2142
2453
|
readonly templateVariable: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
2143
2454
|
readonly pageChange: _angular_core.OutputEmitterRef<PageChangeEvent>;
|
|
2144
|
-
currentPage: number
|
|
2145
|
-
filteredList: unknown[]
|
|
2455
|
+
readonly currentPage: _angular_core.WritableSignal<number>;
|
|
2456
|
+
readonly filteredList: _angular_core.WritableSignal<unknown[]>;
|
|
2146
2457
|
ngOnChanges(changes: SimpleChanges): void;
|
|
2147
2458
|
previousPage(): void;
|
|
2148
2459
|
hasPreviousPage(): boolean;
|
|
@@ -2184,8 +2495,8 @@ declare class TableSort {
|
|
|
2184
2495
|
sortAttribute?: string;
|
|
2185
2496
|
}
|
|
2186
2497
|
|
|
2187
|
-
declare class FoehnTableComponent extends FoehnInputComponent<unknown[]>
|
|
2188
|
-
readonly columnsConfiguration: _angular_core.
|
|
2498
|
+
declare class FoehnTableComponent extends FoehnInputComponent<unknown[]> {
|
|
2499
|
+
readonly columnsConfiguration: _angular_core.InputSignal<FoehnTableColumnConfiguration<any>[] | undefined>;
|
|
2189
2500
|
readonly itemsPerPage: _angular_core.InputSignal<number>;
|
|
2190
2501
|
readonly fixedPageCount: _angular_core.InputSignal<number | undefined>;
|
|
2191
2502
|
readonly sort: _angular_core.ModelSignal<TableSort | undefined>;
|
|
@@ -2198,12 +2509,17 @@ declare class FoehnTableComponent extends FoehnInputComponent<unknown[]> impleme
|
|
|
2198
2509
|
readonly trackByFn: _angular_core.InputSignal<TrackByFunction<unknown>>;
|
|
2199
2510
|
readonly pageChange: _angular_core.OutputEmitterRef<FoehnTablePageChangeEvent>;
|
|
2200
2511
|
readonly rowClick: _angular_core.OutputEmitterRef<RowElement>;
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2512
|
+
/**
|
|
2513
|
+
* The page displayed, changed by the navigation. Back to the first page when the list, itemsPerPage or
|
|
2514
|
+
* fixedPageCount leave it without any item. Also checked again on a new sort (see filteredList).
|
|
2515
|
+
*/
|
|
2516
|
+
readonly currentPage: _angular_core.WritableSignal<number>;
|
|
2517
|
+
/**
|
|
2518
|
+
* The items of the current page. A new sort refreshes them: the page can sort its list in place (same array),
|
|
2519
|
+
* which doesn't change the model.
|
|
2520
|
+
*/
|
|
2521
|
+
readonly filteredList: _angular_core.Signal<unknown[]>;
|
|
2205
2522
|
trackFoehnTableColumnConfiguration: TrackByFunction<FoehnTableColumnConfiguration<any>>;
|
|
2206
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
2207
2523
|
previousPage(): void;
|
|
2208
2524
|
hasPreviousPage(): boolean;
|
|
2209
2525
|
nextPage(): void;
|
|
@@ -2213,9 +2529,13 @@ declare class FoehnTableComponent extends FoehnInputComponent<unknown[]> impleme
|
|
|
2213
2529
|
triggerSort(sortAttribute: string): void;
|
|
2214
2530
|
manageRowClick(rowElem: HTMLTableRowElement, item: unknown): void;
|
|
2215
2531
|
onSpaceKeydown(event: Event, rowElem: HTMLTableRowElement, item: unknown): void;
|
|
2216
|
-
|
|
2532
|
+
/**
|
|
2533
|
+
* @param page a page of the list
|
|
2534
|
+
* @returns the page, or the first one when the list has no item for it
|
|
2535
|
+
*/
|
|
2536
|
+
private existingPage;
|
|
2217
2537
|
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; }; }, { "
|
|
2538
|
+
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
2539
|
}
|
|
2220
2540
|
|
|
2221
2541
|
declare class RegisterNgModelService {
|
|
@@ -2303,6 +2623,7 @@ declare class GrecaptchaComponent implements OnInit, OnDestroy {
|
|
|
2303
2623
|
private readonly sdkLogsService;
|
|
2304
2624
|
private readonly destroyRef;
|
|
2305
2625
|
private widgetId;
|
|
2626
|
+
private scriptElement;
|
|
2306
2627
|
ngOnInit(): void;
|
|
2307
2628
|
ngOnDestroy(): void;
|
|
2308
2629
|
reset(): void;
|
|
@@ -2320,21 +2641,17 @@ declare class GrecaptchaComponent implements OnInit, OnDestroy {
|
|
|
2320
2641
|
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
2642
|
}
|
|
2322
2643
|
|
|
2323
|
-
declare class SdkRecaptchaComponent
|
|
2644
|
+
declare class SdkRecaptchaComponent {
|
|
2324
2645
|
readonly grecaptcha: _angular_core.Signal<GrecaptchaComponent | undefined>;
|
|
2325
2646
|
shouldDisplay: Observable<boolean>;
|
|
2326
|
-
isLoaded: boolean
|
|
2327
|
-
hasLoadingError: boolean
|
|
2647
|
+
readonly isLoaded: _angular_core.WritableSignal<boolean>;
|
|
2648
|
+
readonly hasLoadingError: _angular_core.WritableSignal<boolean>;
|
|
2328
2649
|
errors: Observable<FormError[]>;
|
|
2329
2650
|
publicKey: Observable<string | null>;
|
|
2330
2651
|
recaptchaUrlForUserError: Observable<string | null>;
|
|
2331
2652
|
private readonly recaptchaService;
|
|
2332
|
-
private readonly cdr;
|
|
2333
2653
|
private readonly destroyRef;
|
|
2334
|
-
private forceDetectChange;
|
|
2335
2654
|
constructor();
|
|
2336
|
-
ngOnInit(): void;
|
|
2337
|
-
ngOnDestroy(): void;
|
|
2338
2655
|
setIsLoaded(isLoaded: boolean): void;
|
|
2339
2656
|
setScriptError(scriptError: boolean): void;
|
|
2340
2657
|
tokenOnSuccess(token: string | null): void;
|
|
@@ -2354,7 +2671,7 @@ declare const IAM_ACV_OIDC_REDIRECT_LOCATION_REGEX: InjectionToken<RegExp>;
|
|
|
2354
2671
|
|
|
2355
2672
|
declare class RedirectComponent implements OnDestroy {
|
|
2356
2673
|
isModalVisible: Observable<boolean>;
|
|
2357
|
-
counter: number
|
|
2674
|
+
readonly counter: _angular_core.WritableSignal<number>;
|
|
2358
2675
|
redirectUrl: string;
|
|
2359
2676
|
private readonly DEFAULT_COUNTER;
|
|
2360
2677
|
private readonly iamInterceptor;
|
|
@@ -2400,10 +2717,20 @@ declare class DocumentReferenceWithFile extends DocumentReference {
|
|
|
2400
2717
|
file: File | undefined | null;
|
|
2401
2718
|
}
|
|
2402
2719
|
|
|
2720
|
+
declare const getSafeFileNameForErrorMessage: (fileName: string) => string;
|
|
2721
|
+
/**
|
|
2722
|
+
* Limits of an uploader overriding the ones of the application info, displayed in its error messages.
|
|
2723
|
+
*/
|
|
2724
|
+
interface UploaderErrorLimits {
|
|
2725
|
+
overrideAcceptedExtensions?: string;
|
|
2726
|
+
overrideMaxFileNameLength?: number;
|
|
2727
|
+
overrideIllegalCharacters?: string;
|
|
2728
|
+
maxFileSizeInMo?: number;
|
|
2729
|
+
}
|
|
2403
2730
|
declare class UploaderHelper {
|
|
2404
2731
|
private readonly dictionaryService;
|
|
2405
2732
|
private readonly applicationInfoService;
|
|
2406
|
-
private _accept;
|
|
2733
|
+
private readonly _accept;
|
|
2407
2734
|
private _fileMaxSizeInBytesByFormKey;
|
|
2408
2735
|
private _maxFileNameLength;
|
|
2409
2736
|
private _illegalCharacters;
|
|
@@ -2420,16 +2747,32 @@ declare class UploaderHelper {
|
|
|
2420
2747
|
get accept(): string;
|
|
2421
2748
|
set accept(value: string);
|
|
2422
2749
|
getMaxFileSizeInBytesForFormKey(formKey: string): number | undefined | null;
|
|
2423
|
-
|
|
2750
|
+
/**
|
|
2751
|
+
* The maximum size of a file: the one of its form key (application info) and `maxFileSizeInMo` (a limit of the
|
|
2752
|
+
* component), the smallest of both.
|
|
2753
|
+
*/
|
|
2754
|
+
getMaxFileSizeInBytes(formKey: string, maxFileSizeInMo?: number): number | null;
|
|
2755
|
+
isFileTooBig(formKey: string, fileSizeInBytes: number, maxFileSizeInMo?: number): boolean;
|
|
2424
2756
|
isFileTooSmall(fileSizeInBytes: number): boolean;
|
|
2425
2757
|
isFileNameLengthValid(filename: string, overrideMaxFileNameLength?: number): boolean;
|
|
2426
2758
|
isFileNameNameValid(filename: string, overrideIllegalCharacters?: string): boolean;
|
|
2427
2759
|
getFileExtension(filename: string): string;
|
|
2428
2760
|
isFileExtensionValid(fileExtension: string, overrideAcceptedExtensions?: string): boolean;
|
|
2429
2761
|
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>,
|
|
2762
|
+
addCustomErrorOrDefault(name: string, destinationErrors: FormError[], errorCode: string, fileName: string, customErrors: Record<string, string>, limits?: UploaderErrorLimits): void;
|
|
2763
|
+
/**
|
|
2764
|
+
* The default messages of the upload errors, in the current language.
|
|
2765
|
+
*/
|
|
2766
|
+
getDefaultCustomErrors(): Record<string, string>;
|
|
2767
|
+
/**
|
|
2768
|
+
* The messages of the upload errors: the given custom errors, completed with the default messages.
|
|
2769
|
+
*/
|
|
2770
|
+
mergeCustomErrors(customErrors: Record<string, string>, defaultCustomErrors?: Record<string, string>): Record<string, string>;
|
|
2771
|
+
/**
|
|
2772
|
+
* @deprecated Overwrites the given custom errors with the default messages: use `mergeCustomErrors()`.
|
|
2773
|
+
*/
|
|
2431
2774
|
createDefaultCustomErrors(customErrors: Record<string, string>): void;
|
|
2432
|
-
getLocalErrors(name: string, files: File[], customErrors: Record<string, string>, overrideAcceptedExtensions?: string, overrideMaxFileNameLength?: number, overrideIllegalCharacters?: string): FormError[];
|
|
2775
|
+
getLocalErrors(name: string, files: File[], customErrors: Record<string, string>, overrideAcceptedExtensions?: string, overrideMaxFileNameLength?: number, overrideIllegalCharacters?: string, maxFileSizeInMo?: number): FormError[];
|
|
2433
2776
|
hasLiveUploadErrors(errors: FormError[]): boolean;
|
|
2434
2777
|
preventAndStop(event: any): void;
|
|
2435
2778
|
getAllFilesCount(data: any): string | null;
|
|
@@ -2442,6 +2785,7 @@ declare class UploaderHelper {
|
|
|
2442
2785
|
mapToFormData(documents: DocumentReferenceWithFile[], formKey: string, language: string): FormData;
|
|
2443
2786
|
removeCommasInLabel(label: string): string;
|
|
2444
2787
|
private isTooBig;
|
|
2788
|
+
private getUniqueError;
|
|
2445
2789
|
private replaceErrorMessageKeys;
|
|
2446
2790
|
private getDefaultUnknownErrorMessage;
|
|
2447
2791
|
private normalizeKey;
|
|
@@ -2482,11 +2826,13 @@ declare abstract class AbstractFoehnUploaderComponent<T> extends FoehnInputCompo
|
|
|
2482
2826
|
protected deleteDocumentSubject: BehaviorSubject<DocumentReference | File | null>;
|
|
2483
2827
|
protected uploadFilesSubject: BehaviorSubject<File[] | null>;
|
|
2484
2828
|
protected currentLanguage: string | undefined;
|
|
2829
|
+
protected readonly uploaderCustomErrors: _angular_core.Signal<Record<string, string>>;
|
|
2485
2830
|
protected readonly resolvedChooseButtonLabel: _angular_core.Signal<string>;
|
|
2486
2831
|
protected readonly resolvedChooseButtonLabelMultiple: _angular_core.Signal<string>;
|
|
2487
2832
|
protected readonly resolvedDropZoneLabel: _angular_core.Signal<string>;
|
|
2488
2833
|
protected readonly resolvedDropZoneLabelMultiple: _angular_core.Signal<string>;
|
|
2489
2834
|
protected readonly resolvedDeleteConfirmationMessage: _angular_core.Signal<string>;
|
|
2835
|
+
private readonly defaultCustomErrors;
|
|
2490
2836
|
constructor();
|
|
2491
2837
|
abstract get addedFiles(): unknown[];
|
|
2492
2838
|
onDocumentDragOver(event: any): void;
|
|
@@ -2503,6 +2849,14 @@ declare abstract class AbstractFoehnUploaderComponent<T> extends FoehnInputCompo
|
|
|
2503
2849
|
toMegaOctets(size: number): number;
|
|
2504
2850
|
hasLiveUploadErrors(): boolean;
|
|
2505
2851
|
protected removeFileOnConfirmation(document: DocumentReference | File): void;
|
|
2852
|
+
/**
|
|
2853
|
+
* A maximum size of each file, in addition to the one of its form key in the application info.
|
|
2854
|
+
*/
|
|
2855
|
+
protected getMaxFileSizeInMo(): number | undefined;
|
|
2856
|
+
/**
|
|
2857
|
+
* The limits of this uploader displayed in its error messages.
|
|
2858
|
+
*/
|
|
2859
|
+
protected getErrorLimits(): UploaderErrorLimits;
|
|
2506
2860
|
protected displayLocalErrors(files: File[]): FormError[];
|
|
2507
2861
|
protected isMaxSelectionReached(files: File[]): boolean;
|
|
2508
2862
|
protected isMaxFilesCountReached(files: File[]): boolean;
|
|
@@ -2512,6 +2866,17 @@ declare abstract class AbstractFoehnUploaderComponent<T> extends FoehnInputCompo
|
|
|
2512
2866
|
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
2867
|
}
|
|
2514
2868
|
|
|
2869
|
+
interface DocumentChanges {
|
|
2870
|
+
filesToAdd: File[];
|
|
2871
|
+
documentsToDelete: DocumentReference[];
|
|
2872
|
+
}
|
|
2873
|
+
/**
|
|
2874
|
+
* Computes what needs to be uploaded/deleted server-side by comparing a document list
|
|
2875
|
+
* currently held in a "local upload" model (mixing already persisted `DocumentReference`
|
|
2876
|
+
* and pending `DocumentReferenceWithFile`) against the list as it was originally loaded.
|
|
2877
|
+
*/
|
|
2878
|
+
declare function splitDocumentChanges(current: DocumentReference[] | undefined | null, original: DocumentReference[] | undefined | null): DocumentChanges;
|
|
2879
|
+
|
|
2515
2880
|
declare class PendingFiles {
|
|
2516
2881
|
url: string | undefined | null;
|
|
2517
2882
|
formKey: string | undefined | null;
|
|
@@ -2592,7 +2957,6 @@ declare class PendingUploadService {
|
|
|
2592
2957
|
private uploadPendingFilesAndSaveForm;
|
|
2593
2958
|
private executeSingleUpload;
|
|
2594
2959
|
private mergePendingUploadedServerResult;
|
|
2595
|
-
private setNestedValue;
|
|
2596
2960
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PendingUploadService, never>;
|
|
2597
2961
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<PendingUploadService>;
|
|
2598
2962
|
}
|
|
@@ -2658,23 +3022,36 @@ declare class FoehnBoMultiUploadComponent extends AbstractFoehnUploaderComponent
|
|
|
2658
3022
|
readonly deleteUrl: _angular_core.InputSignal<string | undefined>;
|
|
2659
3023
|
readonly downloadUrl: _angular_core.InputSignal<string | undefined>;
|
|
2660
3024
|
readonly optionalLabelKey: _angular_core.InputSignal<string>;
|
|
3025
|
+
readonly localUpload: _angular_core.InputSignal<boolean>;
|
|
3026
|
+
readonly maxFileSizeInMo: _angular_core.InputSignal<number | undefined>;
|
|
3027
|
+
readonly chooseButtonStyleModifier: _angular_core.InputSignal<string | undefined>;
|
|
2661
3028
|
readonly documentDeleted: _angular_core.OutputEmitterRef<DocumentReference>;
|
|
2662
3029
|
boMultiUploadService: BoMultiUploadService;
|
|
2663
3030
|
protected pageUploadLimitService: PageUploadLimitService;
|
|
3031
|
+
private readonly blobUrls;
|
|
3032
|
+
private localSequence;
|
|
2664
3033
|
get addedFiles(): DocumentReference[];
|
|
2665
3034
|
ngOnInit(): void;
|
|
2666
3035
|
ngOnDestroy(): void;
|
|
3036
|
+
isPending(document: DocumentReference): boolean;
|
|
3037
|
+
getDocumentDownloadUrl(document: DocumentReference): string;
|
|
2667
3038
|
getTotalFilesSize(): number;
|
|
2668
3039
|
canAddMoreFiles(): boolean;
|
|
2669
3040
|
onFileChange(event: Event): void;
|
|
2670
3041
|
onDrop(event: any): void;
|
|
3042
|
+
protected getMaxFileSizeInMo(): number | undefined;
|
|
3043
|
+
protected removeFileOnConfirmation(document: DocumentReference | File): void;
|
|
2671
3044
|
private populateFileItemList;
|
|
3045
|
+
private addFilesLocally;
|
|
3046
|
+
private toPendingDocument;
|
|
3047
|
+
private removeDocumentLocally;
|
|
3048
|
+
private revokeBlobUrl;
|
|
2672
3049
|
private displayResultFromServer;
|
|
2673
3050
|
private removeDocumentFromModel;
|
|
2674
3051
|
private displayErrorsFromServer;
|
|
2675
3052
|
private manageSingleFile;
|
|
2676
3053
|
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>;
|
|
3054
|
+
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
3055
|
}
|
|
2679
3056
|
|
|
2680
3057
|
declare class FoehnPictureUploadComponent extends FoehnInputComponent<DocumentReference[]> implements OnInit {
|
|
@@ -2685,9 +3062,9 @@ declare class FoehnPictureUploadComponent extends FoehnInputComponent<DocumentRe
|
|
|
2685
3062
|
readonly resizeToHeight: _angular_core.InputSignal<number>;
|
|
2686
3063
|
readonly shouldDisplayFileSavedConfirmation: _angular_core.InputSignal<boolean>;
|
|
2687
3064
|
readonly acceptFormats = ".jpeg,.jpg,.png";
|
|
2688
|
-
pictureToCrop: Event | null
|
|
2689
|
-
croppedPictureAsBlob: Blob | null
|
|
2690
|
-
loading: boolean
|
|
3065
|
+
readonly pictureToCrop: _angular_core.WritableSignal<Event | null>;
|
|
3066
|
+
readonly croppedPictureAsBlob: _angular_core.WritableSignal<Blob | null>;
|
|
3067
|
+
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
2691
3068
|
protected currentLanguage: string | undefined;
|
|
2692
3069
|
private readonly uploadService;
|
|
2693
3070
|
private readonly dictionaryService;
|
|
@@ -2714,6 +3091,7 @@ declare abstract class AbstractUploadProgressService {
|
|
|
2714
3091
|
}
|
|
2715
3092
|
|
|
2716
3093
|
declare class AbstractFoehnGlobalUploadProgressBarComponent {
|
|
3094
|
+
#private;
|
|
2717
3095
|
readonly progressBarPanel: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2718
3096
|
showProgress: Observable<boolean>;
|
|
2719
3097
|
protected uploadProgressService: AbstractUploadProgressService;
|
|
@@ -2795,8 +3173,8 @@ declare class PendingPaymentComponent {
|
|
|
2795
3173
|
declare class SdkEpaymentComponent implements OnInit {
|
|
2796
3174
|
readonly baseUrl: _angular_core.InputSignal<string>;
|
|
2797
3175
|
platformFailureMessageDicoKey: string;
|
|
2798
|
-
failureModalDisplayed: boolean
|
|
2799
|
-
redirectModalDisplayed: boolean
|
|
3176
|
+
readonly failureModalDisplayed: _angular_core.WritableSignal<boolean>;
|
|
3177
|
+
readonly redirectModalDisplayed: _angular_core.WritableSignal<boolean>;
|
|
2800
3178
|
private readonly ePaymentService;
|
|
2801
3179
|
private readonly route;
|
|
2802
3180
|
private readonly gesDemService;
|
|
@@ -2834,11 +3212,11 @@ declare class EPaymentService {
|
|
|
2834
3212
|
}
|
|
2835
3213
|
|
|
2836
3214
|
declare class FoehnConfirmModalComponent implements OnInit {
|
|
2837
|
-
isVisible: boolean
|
|
3215
|
+
readonly isVisible: _angular_core.WritableSignal<boolean>;
|
|
3216
|
+
readonly content: Observable<FoehnConfirmModalContent | null>;
|
|
2838
3217
|
private readonly confirmModalService;
|
|
2839
3218
|
private readonly destroyRef;
|
|
2840
3219
|
constructor();
|
|
2841
|
-
get content(): Observable<FoehnConfirmModalContent | null>;
|
|
2842
3220
|
ngOnInit(): void;
|
|
2843
3221
|
cancel(): void;
|
|
2844
3222
|
ok(): void;
|
|
@@ -2848,12 +3226,13 @@ declare class FoehnConfirmModalComponent implements OnInit {
|
|
|
2848
3226
|
}
|
|
2849
3227
|
|
|
2850
3228
|
declare class FoehnHelpModalComponent {
|
|
2851
|
-
readonly
|
|
3229
|
+
readonly id: _angular_core.InputSignal<string>;
|
|
3230
|
+
readonly modalContent: _angular_core.InputSignal<HelpModal | null | undefined>;
|
|
2852
3231
|
readonly draggable: _angular_core.InputSignal<boolean>;
|
|
2853
3232
|
readonly hideable: _angular_core.InputSignal<boolean>;
|
|
2854
3233
|
readonly modalTrigger: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2855
3234
|
readonly content: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2856
|
-
private isVisible;
|
|
3235
|
+
private readonly isVisible;
|
|
2857
3236
|
get isModalVisible(): boolean;
|
|
2858
3237
|
get currentModalTitle(): string;
|
|
2859
3238
|
open(): void;
|
|
@@ -2861,41 +3240,18 @@ declare class FoehnHelpModalComponent {
|
|
|
2861
3240
|
closeOnModalClick(): void;
|
|
2862
3241
|
updateVisibilityStatus(status: boolean): void;
|
|
2863
3242
|
hasContent(): boolean;
|
|
3243
|
+
buildId(suffix?: string): string;
|
|
2864
3244
|
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>;
|
|
3245
|
+
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
3246
|
}
|
|
2891
3247
|
|
|
2892
3248
|
declare class FoehnPageModalComponent implements OnInit {
|
|
2893
|
-
wrongPublicModalVisible: boolean
|
|
2894
|
-
formattedPublicsCibles: string[]
|
|
3249
|
+
readonly wrongPublicModalVisible: _angular_core.WritableSignal<boolean>;
|
|
3250
|
+
readonly formattedPublicsCibles: _angular_core.WritableSignal<string[]>;
|
|
2895
3251
|
private readonly sessionInfo;
|
|
2896
3252
|
private readonly applicationInfoService;
|
|
2897
3253
|
private readonly foehnPageModalService;
|
|
2898
|
-
private userCategories;
|
|
3254
|
+
private readonly userCategories;
|
|
2899
3255
|
private publicsCibles;
|
|
2900
3256
|
ngOnInit(): void;
|
|
2901
3257
|
getFullLoginUrl(): Observable<string>;
|
|
@@ -2931,15 +3287,51 @@ declare class DateHelper {
|
|
|
2931
3287
|
private readonly dateTimeFormat;
|
|
2932
3288
|
private readonly datePipe;
|
|
2933
3289
|
constructor();
|
|
3290
|
+
/**
|
|
3291
|
+
* @param value a date (year, month, day), a part not entered being null
|
|
3292
|
+
* @returns whether the year, the month and the day are entered
|
|
3293
|
+
*/
|
|
2934
3294
|
private static isValidArray;
|
|
3295
|
+
/**
|
|
3296
|
+
* @param value a part of a time (e.g. an hour)
|
|
3297
|
+
* @param max its maximum (e.g. 23)
|
|
3298
|
+
* @returns whether it is entered and between 0 and max
|
|
3299
|
+
*/
|
|
3300
|
+
private static isInRange;
|
|
2935
3301
|
mapToDateFromNumberArray(object: any, ...fieldsNames: string[]): any;
|
|
2936
3302
|
mapAllToDateFromNumberArray(objects: any[], ...fieldsNames: string[]): any[];
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
3303
|
+
/**
|
|
3304
|
+
* @param dateInArray a date (`[year, month, day]`) or a date-time (`[year, month, day, hour, minute, second?]`)
|
|
3305
|
+
* @returns the date (in the time zone of the browser), null when it is not complete (e.g. the model of
|
|
3306
|
+
* `foehn-input-date` with a part not entered); the date only when the time is not complete
|
|
3307
|
+
* @throws for an array of 1, 2 or 4 numbers
|
|
3308
|
+
*/
|
|
3309
|
+
toDateFromNumberArray(dateInArray: FoehnDateModel | FoehnDateTimeModel | null | undefined): Date | null;
|
|
3310
|
+
/**
|
|
3311
|
+
* @param value a date or a date-time
|
|
3312
|
+
* @returns whether it has an hour and a minute (a date-time with its time entered)
|
|
3313
|
+
*/
|
|
3314
|
+
hasTime(value: FoehnDateModel | FoehnDateTimeModel | null | undefined): boolean;
|
|
3315
|
+
arrayToDisplayDateDMY(d: FoehnDateModel | FoehnDateTimeModel | null | undefined, showTime: boolean): string | null;
|
|
3316
|
+
toDayjsFromNumberArray(value: FoehnDateModel | null | undefined): dayjs.Dayjs | null;
|
|
3317
|
+
/**
|
|
3318
|
+
* @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
|
|
3319
|
+
* model of `foehn-input-date-time`), as the backend sends it (`LenientLocalDate`, `LenientLocalDateTime`)
|
|
3320
|
+
* @returns whether the date is complete and exists (not 30.02.2021) and, for a date-time, whether its hour (0 to
|
|
3321
|
+
* 23) and its minute (0 to 59) are entered, as `LenientLocalDateTime.isValid()` of prestations-be
|
|
3322
|
+
*/
|
|
3323
|
+
isValid(value: FoehnDateModel | FoehnDateTimeModel | null | undefined): boolean;
|
|
3324
|
+
/**
|
|
3325
|
+
* @param value a date or a date-time (only its date is considered)
|
|
3326
|
+
* @returns whether the date exists and is today (30.02.2026 is not the 02.03.2026)
|
|
3327
|
+
*/
|
|
3328
|
+
isToday(value: FoehnDateModel | FoehnDateTimeModel | null | undefined): boolean;
|
|
3329
|
+
leftPad(num: string | null | undefined): string;
|
|
3330
|
+
/**
|
|
3331
|
+
* @param value a date or a date-time
|
|
3332
|
+
* @returns whether its date is complete and exists (dayjs shifts the 30.02.2021 to the 02.03.2021)
|
|
3333
|
+
*/
|
|
3334
|
+
private isExistingDate;
|
|
2943
3335
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateHelper, never>;
|
|
2944
3336
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DateHelper>;
|
|
2945
3337
|
}
|
|
@@ -2958,13 +3350,19 @@ declare class CurrencyHelper {
|
|
|
2958
3350
|
|
|
2959
3351
|
declare class NumberCurrencyFormatterDirective implements OnInit {
|
|
2960
3352
|
private readonly host;
|
|
2961
|
-
private readonly
|
|
3353
|
+
private readonly injector;
|
|
2962
3354
|
private hasFocus;
|
|
3355
|
+
/**
|
|
3356
|
+
* Model value written by the formatting itself: its change must not be
|
|
3357
|
+
* formatted again, the input already displays the formatted value
|
|
3358
|
+
* (e.g. "-.00" for the model ".00").
|
|
3359
|
+
*/
|
|
3360
|
+
private modelSetByFormatting;
|
|
2963
3361
|
private readonly formattingEffect;
|
|
2964
3362
|
onBlur(event: FocusEvent): void;
|
|
2965
3363
|
onFocus(event: FocusEvent): void;
|
|
2966
|
-
onModelChange(value: string | null | undefined): void;
|
|
2967
3364
|
ngOnInit(): void;
|
|
3365
|
+
private formatModel;
|
|
2968
3366
|
private setFormatting;
|
|
2969
3367
|
private hasValueChanged;
|
|
2970
3368
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NumberCurrencyFormatterDirective, never>;
|
|
@@ -3057,11 +3455,11 @@ declare class GesdemActionRecoveryLoginComponent implements OnInit {
|
|
|
3057
3455
|
readonly redirectTarget: _angular_core.InputSignal<string | undefined>;
|
|
3058
3456
|
readonly loginForm: _angular_core.Signal<FoehnFormComponent>;
|
|
3059
3457
|
readonly recaptchaComponent: _angular_core.Signal<SdkRecaptchaComponent | undefined>;
|
|
3060
|
-
demandeNotFound: boolean
|
|
3061
|
-
rateLimited: boolean
|
|
3062
|
-
rateLimitCounter: number
|
|
3063
|
-
otpRecipient: string | null | undefined
|
|
3064
|
-
otp: string
|
|
3458
|
+
readonly demandeNotFound: _angular_core.WritableSignal<boolean>;
|
|
3459
|
+
readonly rateLimited: _angular_core.WritableSignal<boolean>;
|
|
3460
|
+
readonly rateLimitCounter: _angular_core.WritableSignal<number>;
|
|
3461
|
+
readonly otpRecipient: _angular_core.WritableSignal<string | null | undefined>;
|
|
3462
|
+
readonly otp: _angular_core.WritableSignal<string>;
|
|
3065
3463
|
private readonly recoveryService;
|
|
3066
3464
|
private readonly growlService;
|
|
3067
3465
|
private readonly confirmModalService;
|
|
@@ -3090,8 +3488,8 @@ declare class GesdemActionRecoveryRegistrationComponent implements OnInit {
|
|
|
3090
3488
|
readonly triggerOnPageChange: _angular_core.InputSignal<boolean>;
|
|
3091
3489
|
readonly modalTrigger: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
3092
3490
|
readonly form: _angular_core.Signal<FoehnFormComponent | undefined>;
|
|
3093
|
-
model: InfoReprise | null
|
|
3094
|
-
mailSent: boolean
|
|
3491
|
+
readonly model: _angular_core.WritableSignal<InfoReprise | null>;
|
|
3492
|
+
readonly mailSent: _angular_core.WritableSignal<boolean>;
|
|
3095
3493
|
canContinueLater: Observable<boolean> | undefined;
|
|
3096
3494
|
isConnectedCyber: Observable<boolean> | undefined;
|
|
3097
3495
|
currentInfoReprise: Observable<InfoReprise | undefined>;
|
|
@@ -3110,13 +3508,18 @@ declare class GesdemActionRecoveryRegistrationComponent implements OnInit {
|
|
|
3110
3508
|
private readonly eventsLoggerService;
|
|
3111
3509
|
private readonly dictionaryService;
|
|
3112
3510
|
private readonly destroyRef;
|
|
3113
|
-
private isVisible;
|
|
3511
|
+
private readonly isVisible;
|
|
3114
3512
|
constructor();
|
|
3115
3513
|
get isModalVisible(): boolean;
|
|
3116
3514
|
get reference(): string;
|
|
3117
3515
|
ngOnInit(): void;
|
|
3118
3516
|
saveAndOpenModal(): void;
|
|
3119
3517
|
openModal(isConnectedCyber: boolean): void;
|
|
3518
|
+
/**
|
|
3519
|
+
* Updates the recovery information entered by the user, without mutating the current value.
|
|
3520
|
+
* @param changes values entered by the user
|
|
3521
|
+
*/
|
|
3522
|
+
updateModel(changes: Partial<InfoReprise>): void;
|
|
3120
3523
|
close(): void;
|
|
3121
3524
|
sendAndClose(): void;
|
|
3122
3525
|
updateVisibilityStatus(status: boolean): void;
|
|
@@ -3148,20 +3551,56 @@ declare abstract class AbstractPageFromMenuComponent<T extends I18nForm> extends
|
|
|
3148
3551
|
}
|
|
3149
3552
|
|
|
3150
3553
|
declare class FoehnListItem {
|
|
3151
|
-
trackingIndex: number | undefined;
|
|
3152
3554
|
disableEdition?: boolean;
|
|
3153
3555
|
disableDeletion?: boolean;
|
|
3154
3556
|
}
|
|
3155
3557
|
|
|
3156
3558
|
declare abstract class AbstractListDetailPageComponent<FORM_TYPE extends I18nForm, ITEM_TYPE extends FoehnListItem> extends AbstractPageFromMenuComponent<FORM_TYPE> implements OnInit, OnDestroy {
|
|
3157
|
-
|
|
3158
|
-
|
|
3559
|
+
#private;
|
|
3560
|
+
/**
|
|
3561
|
+
* The list of the form, at `getListPath()`.
|
|
3562
|
+
*/
|
|
3563
|
+
readonly list: _angular_core.Signal<ITEM_TYPE[]>;
|
|
3564
|
+
/**
|
|
3565
|
+
* 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
|
|
3566
|
+
* of the list.
|
|
3567
|
+
*/
|
|
3568
|
+
readonly itemIndex: _angular_core.WritableSignal<number | null>;
|
|
3569
|
+
/**
|
|
3570
|
+
* The item edited, `null` until the form is loaded.
|
|
3571
|
+
*/
|
|
3572
|
+
readonly itemToEdit: _angular_core.Signal<ITEM_TYPE | null>;
|
|
3159
3573
|
protected router: Router;
|
|
3160
3574
|
protected location: Location;
|
|
3161
|
-
|
|
3575
|
+
/**
|
|
3576
|
+
* @returns the list of the form, at `getListPath()`
|
|
3577
|
+
*/
|
|
3578
|
+
getList(): ITEM_TYPE[];
|
|
3579
|
+
/**
|
|
3580
|
+
* Writes a value into the item edited, without modifying the form in place. Bind a field of the item with
|
|
3581
|
+
* `[model]="item.name" (modelChange)="patchItem(['name'], $event)"`, inside an `@if (itemToEdit(); as item)`.
|
|
3582
|
+
*
|
|
3583
|
+
* @param path the keys and indexes leading to the field in the item
|
|
3584
|
+
* @param value the new value (`null` and `undefined` included: the model of the `foehn-*` components can be, as
|
|
3585
|
+
* with `[(model)]`)
|
|
3586
|
+
*/
|
|
3587
|
+
patchItem<P extends ObjectPath<ITEM_TYPE>>(path: P, value: ObjectPathValue<ITEM_TYPE, P> | null | undefined): void;
|
|
3588
|
+
/**
|
|
3589
|
+
* Replaces the item edited with the one returned by `update`, in a single write of the form, e.g. to empty several
|
|
3590
|
+
* fields at once: `this.updateItem((item) => ({ ...item, site: null, ideNumber: null }))`. Never modify the item
|
|
3591
|
+
* given: return a new one.
|
|
3592
|
+
*
|
|
3593
|
+
* @param update gives the new item from the current one
|
|
3594
|
+
*/
|
|
3595
|
+
updateItem(update: (item: ITEM_TYPE) => ITEM_TYPE): void;
|
|
3596
|
+
/**
|
|
3597
|
+
* Replaces the item edited, e.g. bound as a whole to a component: `[model]="item" (modelChange)="setItem($event)"`.
|
|
3598
|
+
*
|
|
3599
|
+
* @param item the new item
|
|
3600
|
+
*/
|
|
3601
|
+
setItem(item: ITEM_TYPE): void;
|
|
3162
3602
|
ngOnInit(): void;
|
|
3163
3603
|
ngOnDestroy(): void;
|
|
3164
|
-
protected getNextTrackingIndex(): number;
|
|
3165
3604
|
protected returnToParent(): void;
|
|
3166
3605
|
protected resetBreadCrumb(): void;
|
|
3167
3606
|
protected appendPageToBreadCrumb(): void;
|
|
@@ -3169,7 +3608,10 @@ declare abstract class AbstractListDetailPageComponent<FORM_TYPE extends I18nFor
|
|
|
3169
3608
|
private assignItemIndex;
|
|
3170
3609
|
private scrollToSpecifiedElement;
|
|
3171
3610
|
private showErrors;
|
|
3172
|
-
|
|
3611
|
+
/**
|
|
3612
|
+
* @returns the path of the list in the form, e.g. `['vehicles']`
|
|
3613
|
+
*/
|
|
3614
|
+
abstract getListPath(): ObjectPath<FORM_TYPE>;
|
|
3173
3615
|
abstract getNewListItem(): ITEM_TYPE;
|
|
3174
3616
|
abstract getListPagePath(): string;
|
|
3175
3617
|
abstract getListPageLabel(): string;
|
|
@@ -3178,6 +3620,11 @@ declare abstract class AbstractListDetailPageComponent<FORM_TYPE extends I18nFor
|
|
|
3178
3620
|
}
|
|
3179
3621
|
|
|
3180
3622
|
declare abstract class AbstractMenuPageComponent<T extends I18nForm> extends AbstractPageComponent<T> implements AfterViewInit {
|
|
3623
|
+
#private;
|
|
3624
|
+
/**
|
|
3625
|
+
* @deprecated not used anymore by prestations-ng, which does not depend on zone.js.
|
|
3626
|
+
* Inject `NgZone` in your own component if you really need it.
|
|
3627
|
+
*/
|
|
3181
3628
|
protected ngZone: NgZone;
|
|
3182
3629
|
ngAfterViewInit(): void;
|
|
3183
3630
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AbstractMenuPageComponent<any>, never>;
|
|
@@ -3195,37 +3642,33 @@ declare class FoehnErrorPillComponent {
|
|
|
3195
3642
|
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
3643
|
}
|
|
3197
3644
|
|
|
3198
|
-
interface FoehnListItemDescription {
|
|
3645
|
+
interface FoehnListItemDescription<T> {
|
|
3199
3646
|
label: string;
|
|
3200
|
-
hideIfEmpty?(item:
|
|
3201
|
-
getFormattedValue(item:
|
|
3647
|
+
hideIfEmpty?(item: T): boolean;
|
|
3648
|
+
getFormattedValue(item: T): string;
|
|
3202
3649
|
}
|
|
3203
3650
|
|
|
3204
|
-
declare class FoehnListSummaryComponent extends FoehnInputComponent<
|
|
3205
|
-
readonly getListItemTitle: _angular_core.InputSignal<((item:
|
|
3206
|
-
readonly listItemDescriptions: _angular_core.InputSignal<FoehnListItemDescription[]>;
|
|
3651
|
+
declare class FoehnListSummaryComponent<T extends FoehnListItem> extends FoehnInputComponent<T[]> {
|
|
3652
|
+
readonly getListItemTitle: _angular_core.InputSignal<((item: T) => string | null | undefined) | undefined>;
|
|
3653
|
+
readonly listItemDescriptions: _angular_core.InputSignal<FoehnListItemDescription<T>[]>;
|
|
3207
3654
|
readonly showAsTable: _angular_core.InputSignal<boolean>;
|
|
3208
3655
|
readonly tableActionButtons: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
3209
3656
|
readonly canAddItems: _angular_core.InputSignal<boolean>;
|
|
3210
3657
|
readonly itemRemoved: _angular_core.OutputEmitterRef<void>;
|
|
3211
3658
|
readonly itemEdit: _angular_core.OutputEmitterRef<number | null>;
|
|
3212
|
-
listCopyForTable:
|
|
3213
|
-
tableConfiguration: FoehnTableColumnConfiguration<
|
|
3659
|
+
readonly listCopyForTable: _angular_core.Signal<T[] | null | undefined>;
|
|
3660
|
+
readonly tableConfiguration: _angular_core.Signal<FoehnTableColumnConfiguration<T>[]>;
|
|
3214
3661
|
tableSort: TableSort;
|
|
3215
3662
|
private readonly confirmModalService;
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
3220
|
-
ngAfterViewInit(): void;
|
|
3221
|
-
showLine(item: FoehnListItem, itemParam: FoehnListItemDescription): boolean;
|
|
3663
|
+
trackFoehnListItem: TrackByFunction<T>;
|
|
3664
|
+
trackFoehnListItemDescription: TrackByFunction<FoehnListItemDescription<T>>;
|
|
3665
|
+
showLine(item: T, itemParam: FoehnListItemDescription<T>): boolean;
|
|
3222
3666
|
editItem(index?: number | null): void;
|
|
3223
3667
|
removeItem(index: number): void;
|
|
3224
3668
|
changeSort(sortEvent: TableSort | undefined): void;
|
|
3225
3669
|
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>;
|
|
3670
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnListSummaryComponent<any>, never>;
|
|
3671
|
+
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
3672
|
}
|
|
3230
3673
|
|
|
3231
3674
|
declare class FoehnMenuItemComponent {
|
|
@@ -3338,7 +3781,7 @@ declare class FocusedDay {
|
|
|
3338
3781
|
}
|
|
3339
3782
|
|
|
3340
3783
|
declare class FoehnDatePickerComponent implements OnInit {
|
|
3341
|
-
hostId: string | null
|
|
3784
|
+
readonly hostId: _angular_core.WritableSignal<string | null>;
|
|
3342
3785
|
readonly daysButtonsElemRef: _angular_core.Signal<readonly ElementRef<any>[]>;
|
|
3343
3786
|
readonly model: _angular_core.ModelSignal<number[] | null>;
|
|
3344
3787
|
readonly isDatepickerVisible: _angular_core.ModelSignal<boolean>;
|
|
@@ -3354,14 +3797,14 @@ declare class FoehnDatePickerComponent implements OnInit {
|
|
|
3354
3797
|
readonly minYearComputed: _angular_core.Signal<number>;
|
|
3355
3798
|
readonly maxYearComputed: _angular_core.Signal<number>;
|
|
3356
3799
|
readonly yearListItem: _angular_core.Signal<FormSelectOption[]>;
|
|
3357
|
-
weekDays: string[]
|
|
3358
|
-
weeks: DayMonth[][]
|
|
3359
|
-
selectedDate: dayjs.Dayjs | null
|
|
3800
|
+
readonly weekDays: _angular_core.WritableSignal<string[]>;
|
|
3801
|
+
readonly weeks: _angular_core.WritableSignal<DayMonth[][]>;
|
|
3802
|
+
readonly selectedDate: _angular_core.WritableSignal<dayjs.Dayjs | null>;
|
|
3360
3803
|
currentMonthYear: Observable<MonthYear | null>;
|
|
3361
|
-
|
|
3362
|
-
monthListItem: FormSelectOption[];
|
|
3804
|
+
readonly monthListItem: _angular_core.WritableSignal<FormSelectOption[]>;
|
|
3363
3805
|
private readonly dictionary;
|
|
3364
|
-
private readonly
|
|
3806
|
+
private readonly injector;
|
|
3807
|
+
private readonly pendingTasks;
|
|
3365
3808
|
private readonly changeDetector;
|
|
3366
3809
|
private readonly destroyRef;
|
|
3367
3810
|
private previousIsVisible;
|
|
@@ -3379,9 +3822,8 @@ declare class FoehnDatePickerComponent implements OnInit {
|
|
|
3379
3822
|
handleKeyboardUpEvent(event: KeyboardEvent): void;
|
|
3380
3823
|
handleKeyboardDownEvent(event: KeyboardEvent): void;
|
|
3381
3824
|
ngOnInit(): void;
|
|
3382
|
-
onModelChange(value: number[] | null): void;
|
|
3383
3825
|
updateNgModel(value: number[] | null): void;
|
|
3384
|
-
buildId(suffix?: string): string
|
|
3826
|
+
buildId(suffix?: string): string;
|
|
3385
3827
|
isToday(date: dayjs.Dayjs | undefined): boolean;
|
|
3386
3828
|
isSelected(date: dayjs.Dayjs | undefined): boolean;
|
|
3387
3829
|
handleUserInput(date: dayjs.Dayjs | undefined): void;
|
|
@@ -3399,6 +3841,12 @@ declare class FoehnDatePickerComponent implements OnInit {
|
|
|
3399
3841
|
isNextMonthDisabled(monthYear: MonthYear): boolean;
|
|
3400
3842
|
private isDateInRange;
|
|
3401
3843
|
private initializeDatepicker;
|
|
3844
|
+
/**
|
|
3845
|
+
* Selects the date of the model and displays its month (the current month without any date). Not a computed: the
|
|
3846
|
+
* navigation helper keeps the displayed month, also changed by the navigation of the user.
|
|
3847
|
+
* @param value the model
|
|
3848
|
+
*/
|
|
3849
|
+
private syncWithModel;
|
|
3402
3850
|
private setDate;
|
|
3403
3851
|
private getDateAsArray;
|
|
3404
3852
|
private focusOnDatepickerTrigger;
|
|
@@ -3422,17 +3870,13 @@ declare class FoehnDatePickerButtonComponent implements OnInit {
|
|
|
3422
3870
|
readonly selectedDateSrOnlyLabelKey: _angular_core.InputSignal<string>;
|
|
3423
3871
|
readonly datepickerTrigger: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
3424
3872
|
readonly userInput: _angular_core.OutputEmitterRef<number[] | null>;
|
|
3425
|
-
|
|
3426
|
-
private isVisible;
|
|
3427
|
-
private readonly modelEffect;
|
|
3873
|
+
private readonly isVisible;
|
|
3428
3874
|
get isDatepickerVisible(): boolean;
|
|
3429
3875
|
ngOnInit(): void;
|
|
3430
|
-
buildId(suffix?: string): string
|
|
3876
|
+
buildId(suffix?: string): string;
|
|
3431
3877
|
open(): void;
|
|
3432
3878
|
close(): void;
|
|
3433
3879
|
updateVisibilityStatus(status: boolean): void;
|
|
3434
|
-
onModelChange(value: number[] | null): void;
|
|
3435
|
-
updateNgModel(value: number[] | null): void;
|
|
3436
3880
|
handleUserInput(date: number[] | null): void;
|
|
3437
3881
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FoehnDatePickerButtonComponent, never>;
|
|
3438
3882
|
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 +3909,18 @@ declare class ObjectHelper {
|
|
|
3465
3909
|
*/
|
|
3466
3910
|
static isEqual(value1: unknown, value2: unknown, skipFunctionTypeCompare?: boolean): boolean;
|
|
3467
3911
|
static isDifferent(value1: unknown, value2: unknown, skipFunctionType?: boolean): boolean;
|
|
3468
|
-
|
|
3469
|
-
|
|
3912
|
+
/**
|
|
3913
|
+
* @param value to check
|
|
3914
|
+
* @returns whether the value isn't `null`, `undefined` or `''`, and, for an array or an object, whether one of its
|
|
3915
|
+
* items or properties holds a value (deeply). A number (`0` included), a boolean (`false` included) and a date are
|
|
3916
|
+
* values.
|
|
3917
|
+
*/
|
|
3918
|
+
static hasAnyValue(value: unknown): boolean;
|
|
3919
|
+
/**
|
|
3920
|
+
* @param value to check
|
|
3921
|
+
* @returns the contrary of {@link hasAnyValue}
|
|
3922
|
+
*/
|
|
3923
|
+
static isEmpty(value: unknown): boolean;
|
|
3470
3924
|
/**
|
|
3471
3925
|
* Deep copy is a true copy for nested objects
|
|
3472
3926
|
* Often, shallow copy is good enough and you will not need a deep copy.
|
|
@@ -3480,7 +3934,11 @@ declare class ObjectHelper {
|
|
|
3480
3934
|
*/
|
|
3481
3935
|
static deepCopy(obj: any): any;
|
|
3482
3936
|
static stripHtml(html: string): string;
|
|
3483
|
-
|
|
3937
|
+
/**
|
|
3938
|
+
* @deprecated use `ObjectPathHelper.getByKeys(obj, key)`, which it calls: the value at the path of the key
|
|
3939
|
+
* (`'address.street'`).
|
|
3940
|
+
*/
|
|
3941
|
+
static getNestedProperty(obj: unknown, key: string): any;
|
|
3484
3942
|
}
|
|
3485
3943
|
|
|
3486
3944
|
declare class ScrollHelper {
|
|
@@ -3497,6 +3955,8 @@ declare class StringHelper {
|
|
|
3497
3955
|
static replaceLineBreaksWithBr(value: string): string;
|
|
3498
3956
|
}
|
|
3499
3957
|
|
|
3958
|
+
declare function downloadFile(data: BlobPart, filename: string, type?: string): void;
|
|
3959
|
+
|
|
3500
3960
|
declare class AddressTypeLight {
|
|
3501
3961
|
id: string | undefined | null;
|
|
3502
3962
|
egid: string | undefined | null;
|
|
@@ -3579,33 +4039,49 @@ declare class SelectedSlot {
|
|
|
3579
4039
|
date: number[] | undefined | null;
|
|
3580
4040
|
}
|
|
3581
4041
|
|
|
3582
|
-
declare class FoehnAgendaTimeslotPanelComponent extends FoehnInputComponent<SelectedSlot>
|
|
4042
|
+
declare class FoehnAgendaTimeslotPanelComponent extends FoehnInputComponent<SelectedSlot> {
|
|
3583
4043
|
readonly DEFAULT_NB_VISIBLE_ELEMENTS = 22;
|
|
3584
4044
|
readonly calendar: _angular_core.InputSignal<Observable<Calendar> | undefined>;
|
|
3585
4045
|
readonly currentWeek: _angular_core.InputSignal<DaySlots | undefined>;
|
|
3586
4046
|
readonly nbVisibleElements: _angular_core.InputSignal<number | null | undefined>;
|
|
3587
4047
|
readonly visibleElementsCount: _angular_core.Signal<number>;
|
|
3588
4048
|
readonly timeSlotButtonsElemRef: _angular_core.Signal<readonly ElementRef<any>[]>;
|
|
3589
|
-
selectedTimeSlot: string | null
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
4049
|
+
readonly selectedTimeSlot: _angular_core.Signal<string | null>;
|
|
4050
|
+
readonly timeInputValue: _angular_core.Signal<string | null | undefined>;
|
|
4051
|
+
/**
|
|
4052
|
+
* TRUE when only the first visibleElementsCount() time slots are displayed.
|
|
4053
|
+
* Closed again when the time slots change, unless the selected slot would be hidden.
|
|
4054
|
+
*/
|
|
4055
|
+
readonly isClosed: _angular_core.WritableSignal<boolean>;
|
|
4056
|
+
readonly timeSlots: _angular_core.Signal<string[]>;
|
|
4057
|
+
readonly timeslotRemaining: _angular_core.Signal<number>;
|
|
4058
|
+
/**
|
|
4059
|
+
* FALSE when closing the panel would hide the selected slot.
|
|
4060
|
+
*/
|
|
4061
|
+
readonly canClose: _angular_core.Signal<boolean>;
|
|
3595
4062
|
private readonly dictionaryService;
|
|
3596
|
-
private dayInputValue;
|
|
4063
|
+
private readonly dayInputValue;
|
|
3597
4064
|
private keyboardNavigationAllowed;
|
|
3598
4065
|
private currentActiveElement;
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
4066
|
+
/**
|
|
4067
|
+
* Index of the selected slot in the time slots of the day, -1 when it is not in this panel.
|
|
4068
|
+
*/
|
|
4069
|
+
private readonly selectedSlotIndex;
|
|
4070
|
+
private readonly hasSelectedSlotInPanel;
|
|
4071
|
+
/**
|
|
4072
|
+
* TRUE when the selected slot is in this panel but not displayed while it is closed.
|
|
4073
|
+
*/
|
|
4074
|
+
private readonly isSelectedSlotHidden;
|
|
3602
4075
|
handleKeyboardDownEvent(event: KeyboardEvent): void;
|
|
3603
4076
|
focus(): void;
|
|
3604
4077
|
capitalCaseFirstLetter(s: string | null | undefined): string;
|
|
3605
4078
|
handleUserInput(day: string | undefined | null, date: number[] | undefined | null, time: string, calendar: Calendar): void;
|
|
3606
4079
|
togglePanel(): void;
|
|
3607
|
-
onModelChange(
|
|
4080
|
+
onModelChange(_value: SelectedSlot | null | undefined): void;
|
|
3608
4081
|
getTimeInputValue(s: string): string;
|
|
4082
|
+
/**
|
|
4083
|
+
* Opens the panel when the selected slot would be hidden.
|
|
4084
|
+
*/
|
|
3609
4085
|
searchTimeValueInTimeSlot(): void;
|
|
3610
4086
|
onTimeFocusin(): void;
|
|
3611
4087
|
onTimeFocusout(): void;
|
|
@@ -3613,7 +4089,6 @@ declare class FoehnAgendaTimeslotPanelComponent extends FoehnInputComponent<Sele
|
|
|
3613
4089
|
getButtonTimeSlotAriaLabel(day: string | undefined | null, timeSlot: string): string;
|
|
3614
4090
|
getTimeSlotTabIndex(timeSlot: string, index: number): number;
|
|
3615
4091
|
cleanIdForQuerySelector(s: string): string;
|
|
3616
|
-
private sliceNbVisibleElements;
|
|
3617
4092
|
private getValidValue;
|
|
3618
4093
|
private onKeyDownInner;
|
|
3619
4094
|
private focusTimeSlot;
|
|
@@ -3627,7 +4102,7 @@ declare class FoehnAgendaComponent extends FoehnInputComponent<SelectedSlot> {
|
|
|
3627
4102
|
readonly paginationChange: _angular_core.OutputEmitterRef<PaginationWeek>;
|
|
3628
4103
|
readonly readableSelectedTimeSlot: _angular_core.Signal<string>;
|
|
3629
4104
|
readonly timeSlotPanelsElemRef: _angular_core.Signal<readonly FoehnAgendaTimeslotPanelComponent[]>;
|
|
3630
|
-
srAnnouncements: string
|
|
4105
|
+
readonly srAnnouncements: _angular_core.WritableSignal<string>;
|
|
3631
4106
|
private readonly dictionaryService;
|
|
3632
4107
|
private srAnnouncementClearTimer;
|
|
3633
4108
|
private readonly SR_ANNOUNCEMENT_CLEAR_TIMEOUT_INTERVAL_MS;
|
|
@@ -3672,14 +4147,14 @@ declare class FoehnDropdownMenuComponent implements OnInit {
|
|
|
3672
4147
|
readonly selectedFocusList: _angular_core.Signal<readonly ElementRef<any>[]>;
|
|
3673
4148
|
readonly buttonTrigger: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
3674
4149
|
readonly entryPoint: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
3675
|
-
isDropdownVisible: boolean
|
|
4150
|
+
readonly isDropdownVisible: _angular_core.WritableSignal<boolean>;
|
|
3676
4151
|
closeDropdownTimer: ReturnType<typeof setTimeout> | undefined;
|
|
3677
|
-
popupPosition: Position
|
|
4152
|
+
readonly popupPosition: _angular_core.WritableSignal<Position>;
|
|
3678
4153
|
private readonly router;
|
|
4154
|
+
private readonly injector;
|
|
3679
4155
|
private currentItemGlobalIndex;
|
|
3680
4156
|
private shouldFocusEntryPointAfterOpen;
|
|
3681
4157
|
private readonly selectedFocusListEffect;
|
|
3682
|
-
constructor();
|
|
3683
4158
|
handleKeyboardUpEvent(event: KeyboardEvent): void;
|
|
3684
4159
|
handleKeyboardDownEvent(event: KeyboardEvent): void;
|
|
3685
4160
|
ngOnInit(): void;
|
|
@@ -3752,6 +4227,7 @@ interface BrowserInfo {
|
|
|
3752
4227
|
}
|
|
3753
4228
|
declare class SdkLogsService {
|
|
3754
4229
|
private readonly http;
|
|
4230
|
+
private readonly destroyRef;
|
|
3755
4231
|
private cachedBrowserInfo;
|
|
3756
4232
|
addLog(message: string, logLevel: SdkLogLevel): void;
|
|
3757
4233
|
addLogWithError(message: string, logLevel: SdkLogLevel, error: unknown): void;
|
|
@@ -3761,5 +4237,5 @@ declare class SdkLogsService {
|
|
|
3761
4237
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SdkLogsService>;
|
|
3762
4238
|
}
|
|
3763
4239
|
|
|
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 };
|
|
4240
|
+
export { APP_INFO_API_URL, AbstractFoehnUploaderComponent, AbstractHttpService, 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, FormErrorHelper, 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, downloadFile, formatDecimalCurrency, formatNonDecimalCurrency, formatNumberAsGiven, gesdemLoaderGuard, getSafeFileNameForErrorMessage, providePrestationsNgCore, replaceAll, splitDocumentChanges };
|
|
4241
|
+
export type { BreadcrumbConfiguration, BrowserInfo, ComponentError, DictionaryType, DocumentChanges, FoehnDateModel, FoehnDateTimeModel, FoehnListItemDescription, FoehnModalSize, FoehnRecapSection, FoehnRecapSectionElement, FoehnRecapSectionElementValueType, FormError, HasCustomErrors, HelpModal, Image, Language, ObjectKeys, ObjectPath, ObjectPathValue, PlaceholderType, UploaderErrorLimits };
|