@igo2/common 21.0.0-next.4 → 21.0.0-next.41
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/fesm2022/igo2-common-action.mjs +16 -16
- package/fesm2022/igo2-common-action.mjs.map +1 -1
- package/fesm2022/igo2-common-backdrop.mjs +7 -7
- package/fesm2022/igo2-common-backdrop.mjs.map +1 -1
- package/fesm2022/igo2-common-badge.mjs +7 -7
- package/fesm2022/igo2-common-badge.mjs.map +1 -1
- package/fesm2022/igo2-common-clickout.mjs +7 -7
- package/fesm2022/igo2-common-clickout.mjs.map +1 -1
- package/fesm2022/igo2-common-clone.mjs +7 -7
- package/fesm2022/igo2-common-clone.mjs.map +1 -1
- package/fesm2022/igo2-common-collapsible.mjs +10 -10
- package/fesm2022/igo2-common-collapsible.mjs.map +1 -1
- package/fesm2022/igo2-common-color.mjs +8 -8
- package/fesm2022/igo2-common-color.mjs.map +1 -1
- package/fesm2022/igo2-common-confirm-dialog.mjs +10 -10
- package/fesm2022/igo2-common-confirm-dialog.mjs.map +1 -1
- package/fesm2022/igo2-common-context-menu.mjs +10 -10
- package/fesm2022/igo2-common-context-menu.mjs.map +1 -1
- package/fesm2022/igo2-common-custom-html.mjs +10 -10
- package/fesm2022/igo2-common-custom-html.mjs.map +1 -1
- package/fesm2022/igo2-common-datepicker.mjs +3 -3
- package/fesm2022/igo2-common-datepicker.mjs.map +1 -1
- package/fesm2022/igo2-common-dom.mjs +7 -7
- package/fesm2022/igo2-common-dom.mjs.map +1 -1
- package/fesm2022/igo2-common-drag-drop.mjs +31 -10
- package/fesm2022/igo2-common-drag-drop.mjs.map +1 -1
- package/fesm2022/igo2-common-dynamic-component.mjs +14 -14
- package/fesm2022/igo2-common-dynamic-component.mjs.map +1 -1
- package/fesm2022/igo2-common-entity.mjs +31 -31
- package/fesm2022/igo2-common-entity.mjs.map +1 -1
- package/fesm2022/igo2-common-flexible.mjs +17 -14
- package/fesm2022/igo2-common-flexible.mjs.map +1 -1
- package/fesm2022/igo2-common-form.mjs +811 -110
- package/fesm2022/igo2-common-form.mjs.map +1 -1
- package/fesm2022/igo2-common-home-button.mjs +7 -7
- package/fesm2022/igo2-common-home-button.mjs.map +1 -1
- package/fesm2022/igo2-common-icon.mjs +6 -6
- package/fesm2022/igo2-common-icon.mjs.map +1 -1
- package/fesm2022/igo2-common-image.mjs +10 -10
- package/fesm2022/igo2-common-image.mjs.map +1 -1
- package/fesm2022/igo2-common-interactive-tour.mjs +13 -13
- package/fesm2022/igo2-common-interactive-tour.mjs.map +1 -1
- package/fesm2022/igo2-common-json-dialog.mjs +10 -10
- package/fesm2022/igo2-common-json-dialog.mjs.map +1 -1
- package/fesm2022/igo2-common-keyvalue.mjs +7 -7
- package/fesm2022/igo2-common-keyvalue.mjs.map +1 -1
- package/fesm2022/igo2-common-list.mjs +10 -10
- package/fesm2022/igo2-common-list.mjs.map +1 -1
- package/fesm2022/igo2-common-panel.mjs +7 -7
- package/fesm2022/igo2-common-panel.mjs.map +1 -1
- package/fesm2022/igo2-common-resizable-bar.mjs +6 -6
- package/fesm2022/igo2-common-resizable-bar.mjs.map +1 -1
- package/fesm2022/igo2-common-sidenav.mjs +7 -7
- package/fesm2022/igo2-common-sidenav.mjs.map +1 -1
- package/fesm2022/igo2-common-spinner.mjs +10 -10
- package/fesm2022/igo2-common-spinner.mjs.map +1 -1
- package/fesm2022/igo2-common-stop-propagation.mjs +10 -10
- package/fesm2022/igo2-common-stop-propagation.mjs.map +1 -1
- package/fesm2022/igo2-common-table.mjs +7 -7
- package/fesm2022/igo2-common-table.mjs.map +1 -1
- package/fesm2022/igo2-common-timepicker.mjs +3 -3
- package/fesm2022/igo2-common-timepicker.mjs.map +1 -1
- package/fesm2022/igo2-common-tool.mjs +14 -14
- package/fesm2022/igo2-common-tool.mjs.map +1 -1
- package/fesm2022/igo2-common-widget.mjs +14 -14
- package/fesm2022/igo2-common-widget.mjs.map +1 -1
- package/fesm2022/igo2-common-workspace.mjs +18 -18
- package/fesm2022/igo2-common-workspace.mjs.map +1 -1
- package/fesm2022/igo2-common.mjs +0 -1
- package/fesm2022/igo2-common.mjs.map +1 -1
- package/locale/en.common.json +0 -7
- package/locale/fr.common.json +0 -7
- package/package.json +3 -7
- package/style/style.css +1 -1
- package/types/igo2-common-drag-drop.d.ts +3 -1
- package/types/igo2-common-entity.d.ts +2 -2
- package/types/igo2-common-flexible.d.ts +3 -2
- package/types/igo2-common-form.d.ts +365 -76
- package/types/igo2-common.d.ts +0 -1
- package/fesm2022/igo2-common-select-value-dialog.mjs +0 -155
- package/fesm2022/igo2-common-select-value-dialog.mjs.map +0 -1
- package/types/igo2-common-select-value-dialog.d.ts +0 -65
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as _igo2_common_form from '@igo2/common/form';
|
|
2
|
-
import * as
|
|
3
|
-
import { OnChanges, ElementRef, SimpleChanges, OnInit, ModuleWithProviders } from '@angular/core';
|
|
4
|
-
import { ValidatorFn, UntypedFormControl, UntypedFormGroup, AbstractControl } from '@angular/forms';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
import { OnChanges, ElementRef, SimpleChanges, OnInit, OnDestroy, ModuleWithProviders } from '@angular/core';
|
|
4
|
+
import { ValidatorFn, UntypedFormControl, UntypedFormGroup, FormGroup, FormControl, AbstractControl } from '@angular/forms';
|
|
5
5
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
6
|
+
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
6
7
|
import * as i1 from '@angular/material/dialog';
|
|
7
8
|
import { MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
|
|
8
9
|
import { LanguageService } from '@igo2/core/language';
|
|
@@ -60,8 +61,15 @@ interface FormFieldInputs {
|
|
|
60
61
|
interface FormFieldSelectInputs extends FormFieldInputs {
|
|
61
62
|
choices: BehaviorSubject<FormFieldSelectChoice[]> | FormFieldSelectChoice[];
|
|
62
63
|
}
|
|
64
|
+
interface FormFieldChoiceInputs extends FormFieldInputs {
|
|
65
|
+
choices: FormFieldSelectChoice[];
|
|
66
|
+
}
|
|
67
|
+
interface FormFieldCheckboxInputs extends FormFieldChoiceInputs {
|
|
68
|
+
maxSelected?: number;
|
|
69
|
+
}
|
|
70
|
+
type FormFieldRadiobuttonInputs = FormFieldChoiceInputs;
|
|
63
71
|
interface FormFieldSelectChoice {
|
|
64
|
-
value:
|
|
72
|
+
value: unknown;
|
|
65
73
|
title: string;
|
|
66
74
|
}
|
|
67
75
|
|
|
@@ -72,20 +80,20 @@ declare class FormComponent implements OnChanges {
|
|
|
72
80
|
/**
|
|
73
81
|
* Form
|
|
74
82
|
*/
|
|
75
|
-
readonly form:
|
|
83
|
+
readonly form: _angular_core.InputSignal<Form>;
|
|
76
84
|
/**
|
|
77
85
|
* Input data
|
|
78
86
|
*/
|
|
79
|
-
readonly formData:
|
|
87
|
+
readonly formData: _angular_core.InputSignal<Record<string, unknown> | undefined>;
|
|
80
88
|
/**
|
|
81
89
|
* Form autocomplete
|
|
82
90
|
*/
|
|
83
|
-
readonly autocomplete:
|
|
91
|
+
readonly autocomplete: _angular_core.InputSignal<string>;
|
|
84
92
|
/**
|
|
85
93
|
* Event emitted when the form is submitted
|
|
86
94
|
*/
|
|
87
|
-
readonly submitForm:
|
|
88
|
-
readonly buttons:
|
|
95
|
+
readonly submitForm: _angular_core.OutputEmitterRef<Record<string, unknown>>;
|
|
96
|
+
readonly buttons: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
89
97
|
get hasButtons(): boolean;
|
|
90
98
|
/**
|
|
91
99
|
* Is the entity or the template change, recreate the form or repopulate it.
|
|
@@ -105,17 +113,17 @@ declare class FormComponent implements OnChanges {
|
|
|
105
113
|
* Clear form
|
|
106
114
|
*/
|
|
107
115
|
private clear;
|
|
108
|
-
static ɵfac:
|
|
109
|
-
static ɵcmp:
|
|
116
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
117
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormComponent, "igo-form", never, { "form": { "alias": "form"; "required": true; "isSignal": true; }; "formData": { "alias": "formData"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; }, { "submitForm": "submitForm"; }, never, ["*", "[formButtons]"], true, never>;
|
|
110
118
|
}
|
|
111
119
|
|
|
112
120
|
/**
|
|
113
121
|
* @deprecated import the FormComponent directly
|
|
114
122
|
*/
|
|
115
123
|
declare class IgoFormFormModule {
|
|
116
|
-
static ɵfac:
|
|
117
|
-
static ɵmod:
|
|
118
|
-
static ɵinj:
|
|
124
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IgoFormFormModule, never>;
|
|
125
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<IgoFormFormModule, never, [typeof FormComponent], [typeof FormComponent]>;
|
|
126
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<IgoFormFormModule>;
|
|
119
127
|
}
|
|
120
128
|
|
|
121
129
|
/**
|
|
@@ -127,11 +135,11 @@ declare class FormGroupComponent {
|
|
|
127
135
|
/**
|
|
128
136
|
* Form field group
|
|
129
137
|
*/
|
|
130
|
-
readonly group:
|
|
138
|
+
readonly group: _angular_core.InputSignal<FormFieldGroup>;
|
|
131
139
|
/**
|
|
132
140
|
* Field placeholder
|
|
133
141
|
*/
|
|
134
|
-
readonly errors:
|
|
142
|
+
readonly errors: _angular_core.InputSignal<Record<string, string> | undefined>;
|
|
135
143
|
/**
|
|
136
144
|
* Form group control
|
|
137
145
|
*/
|
|
@@ -156,17 +164,17 @@ declare class FormGroupComponent {
|
|
|
156
164
|
* Get error message
|
|
157
165
|
*/
|
|
158
166
|
getErrorMessage(): string;
|
|
159
|
-
static ɵfac:
|
|
160
|
-
static ɵcmp:
|
|
167
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormGroupComponent, never>;
|
|
168
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormGroupComponent, "igo-form-group", never, { "group": { "alias": "group"; "required": true; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
161
169
|
}
|
|
162
170
|
|
|
163
171
|
/**
|
|
164
172
|
* @deprecated import the FormGroupComponent directly
|
|
165
173
|
*/
|
|
166
174
|
declare class IgoFormGroupModule {
|
|
167
|
-
static ɵfac:
|
|
168
|
-
static ɵmod:
|
|
169
|
-
static ɵinj:
|
|
175
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IgoFormGroupModule, never>;
|
|
176
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<IgoFormGroupModule, never, [typeof FormGroupComponent], [typeof FormGroupComponent]>;
|
|
177
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<IgoFormGroupModule>;
|
|
170
178
|
}
|
|
171
179
|
|
|
172
180
|
/**
|
|
@@ -178,7 +186,7 @@ declare class FormFieldComponent {
|
|
|
178
186
|
/**
|
|
179
187
|
* Field configuration
|
|
180
188
|
*/
|
|
181
|
-
readonly field:
|
|
189
|
+
readonly field: _angular_core.InputSignal<FormField<FormFieldInputs>>;
|
|
182
190
|
/**
|
|
183
191
|
* Field inputs cache
|
|
184
192
|
*/
|
|
@@ -191,39 +199,224 @@ declare class FormFieldComponent {
|
|
|
191
199
|
getFieldComponent(): any;
|
|
192
200
|
getFieldInputs(): FormFieldInputs;
|
|
193
201
|
getFieldSubscribers(): FormFieldSubscribers;
|
|
194
|
-
static ɵfac:
|
|
195
|
-
static ɵcmp:
|
|
202
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
203
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldComponent, "igo-form-field", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
declare class FormFieldCheckboxComponent implements OnInit, OnDestroy {
|
|
207
|
+
private errorStateMatcher;
|
|
208
|
+
private parentForm;
|
|
209
|
+
private parentFormGroup;
|
|
210
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
211
|
+
private readonly showErrorState;
|
|
212
|
+
private selectedValues;
|
|
213
|
+
private destroy$;
|
|
214
|
+
readonly choices: _angular_core.InputSignal<_igo2_common_form.FormFieldSelectChoice[]>;
|
|
215
|
+
readonly formControl: _angular_core.InputSignal<UntypedFormControl>;
|
|
216
|
+
readonly showLabel: _angular_core.InputSignal<boolean>;
|
|
217
|
+
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
218
|
+
readonly errors: _angular_core.InputSignal<Record<string, string> | undefined>;
|
|
219
|
+
readonly maxSelected: _angular_core.InputSignal<number | undefined>;
|
|
220
|
+
readonly disableSwitch: _angular_core.InputSignal<boolean>;
|
|
221
|
+
get required(): boolean;
|
|
222
|
+
ngOnInit(): void;
|
|
223
|
+
ngOnDestroy(): void;
|
|
224
|
+
getErrorMessage(): string;
|
|
225
|
+
showError(): boolean;
|
|
226
|
+
isChecked(value: unknown): boolean;
|
|
227
|
+
onChoiceChange(value: unknown, event: MatCheckboxChange): void;
|
|
228
|
+
onDisableSwitchClick(): void;
|
|
229
|
+
private normalizeValue;
|
|
230
|
+
private syncState;
|
|
231
|
+
private toggleDisabled;
|
|
232
|
+
private maxSelectedValidator;
|
|
233
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldCheckboxComponent, never>;
|
|
234
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldCheckboxComponent, "igo-form-field-checkbox", never, { "choices": { "alias": "choices"; "required": true; "isSignal": true; }; "formControl": { "alias": "formControl"; "required": true; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "maxSelected": { "alias": "maxSelected"; "required": false; "isSignal": true; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
declare class FormFieldDatetimeComponent implements OnInit, OnDestroy {
|
|
238
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
239
|
+
readonly dateTimeGroup: FormGroup<{
|
|
240
|
+
date: FormControl<Date | null>;
|
|
241
|
+
time: FormControl<Date | null>;
|
|
242
|
+
}>;
|
|
243
|
+
get dateControl(): FormControl<Date | null>;
|
|
244
|
+
get timeControl(): FormControl<Date | null>;
|
|
245
|
+
private destroy$;
|
|
246
|
+
private syncingExternalToInternal;
|
|
247
|
+
private syncingInternalToExternal;
|
|
248
|
+
/**
|
|
249
|
+
* The field's form control
|
|
250
|
+
*/
|
|
251
|
+
readonly formControl: _angular_core.InputSignal<UntypedFormControl>;
|
|
252
|
+
/**
|
|
253
|
+
* Field showLabel
|
|
254
|
+
*/
|
|
255
|
+
readonly showLabel: _angular_core.InputSignal<boolean>;
|
|
256
|
+
/**
|
|
257
|
+
* Field placeholder used for date input
|
|
258
|
+
*/
|
|
259
|
+
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
260
|
+
/**
|
|
261
|
+
* Placeholder used for time input
|
|
262
|
+
*/
|
|
263
|
+
readonly timePlaceholder: _angular_core.InputSignal<string | undefined>;
|
|
264
|
+
/**
|
|
265
|
+
* Minimum selectable date
|
|
266
|
+
*/
|
|
267
|
+
readonly minDate: _angular_core.InputSignal<Date | undefined>;
|
|
268
|
+
/**
|
|
269
|
+
* Maximum selectable date
|
|
270
|
+
*/
|
|
271
|
+
readonly maxDate: _angular_core.InputSignal<Date | undefined>;
|
|
272
|
+
/**
|
|
273
|
+
* Minimum selectable time
|
|
274
|
+
*/
|
|
275
|
+
readonly minTime: _angular_core.InputSignal<string | Date | null>;
|
|
276
|
+
/**
|
|
277
|
+
* Maximum selectable time
|
|
278
|
+
*/
|
|
279
|
+
readonly maxTime: _angular_core.InputSignal<string | Date | null>;
|
|
280
|
+
/**
|
|
281
|
+
* Optional explicit options rendered in the timepicker panel.
|
|
282
|
+
*/
|
|
283
|
+
readonly options: _angular_core.InputSignal<readonly {
|
|
284
|
+
value: Date;
|
|
285
|
+
label: string;
|
|
286
|
+
}[] | null>;
|
|
287
|
+
/**
|
|
288
|
+
* Time option interval for the panel.
|
|
289
|
+
*/
|
|
290
|
+
readonly interval: _angular_core.InputSignal<string | number | null>;
|
|
291
|
+
/**
|
|
292
|
+
* Whether clicking the input should open the timepicker.
|
|
293
|
+
*/
|
|
294
|
+
readonly openOnClick: _angular_core.InputSignal<boolean>;
|
|
295
|
+
/**
|
|
296
|
+
* Whether a disable switch should be available
|
|
297
|
+
*/
|
|
298
|
+
readonly disableSwitch: _angular_core.InputSignal<boolean>;
|
|
299
|
+
/**
|
|
300
|
+
* Error messages mapping
|
|
301
|
+
*/
|
|
302
|
+
readonly errors: _angular_core.InputSignal<Record<string, string> | undefined>;
|
|
303
|
+
/**
|
|
304
|
+
* Whether the field is required
|
|
305
|
+
*/
|
|
306
|
+
get required(): boolean;
|
|
307
|
+
ngOnInit(): void;
|
|
308
|
+
ngOnDestroy(): void;
|
|
309
|
+
getErrorMessage(): string;
|
|
310
|
+
clearDate(): void;
|
|
311
|
+
clearTime(): void;
|
|
312
|
+
onDisableSwitchClick(): void;
|
|
313
|
+
private syncInternalFromExternal;
|
|
314
|
+
private pushInternalToExternal;
|
|
315
|
+
private updateTimeControlState;
|
|
316
|
+
private toDateValue;
|
|
317
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldDatetimeComponent, never>;
|
|
318
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldDatetimeComponent, "igo-form-field-datetime", never, { "formControl": { "alias": "formControl"; "required": true; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "timePlaceholder": { "alias": "timePlaceholder"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "minTime": { "alias": "minTime"; "required": false; "isSignal": true; }; "maxTime": { "alias": "maxTime"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "interval": { "alias": "interval"; "required": false; "isSignal": true; }; "openOnClick": { "alias": "openOnClick"; "required": false; "isSignal": true; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* This component renders a number field
|
|
323
|
+
*/
|
|
324
|
+
declare class FormFieldNumberComponent implements OnInit {
|
|
325
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
326
|
+
hide: boolean;
|
|
327
|
+
/**
|
|
328
|
+
* The field's form control
|
|
329
|
+
*/
|
|
330
|
+
readonly formControl: _angular_core.InputSignal<UntypedFormControl>;
|
|
331
|
+
/**
|
|
332
|
+
* Field showLabel
|
|
333
|
+
*/
|
|
334
|
+
readonly showLabel: _angular_core.InputSignal<boolean>;
|
|
335
|
+
/**
|
|
336
|
+
* Field placeholder
|
|
337
|
+
*/
|
|
338
|
+
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
339
|
+
/**
|
|
340
|
+
* Field placeholder
|
|
341
|
+
*/
|
|
342
|
+
readonly errors: _angular_core.InputSignal<Record<string, string> | undefined>;
|
|
343
|
+
/**
|
|
344
|
+
* Wheter a disable switch should be available
|
|
345
|
+
*/
|
|
346
|
+
readonly disableSwitch: _angular_core.InputSignal<boolean>;
|
|
347
|
+
/**
|
|
348
|
+
* Whether the field is required
|
|
349
|
+
*/
|
|
350
|
+
get required(): boolean;
|
|
351
|
+
ngOnInit(): void;
|
|
352
|
+
/**
|
|
353
|
+
* Get error message
|
|
354
|
+
*/
|
|
355
|
+
getErrorMessage(): string;
|
|
356
|
+
onDisableSwitchClick(): void;
|
|
357
|
+
private toggleDisabled;
|
|
358
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldNumberComponent, never>;
|
|
359
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldNumberComponent, "igo-form-field-number", never, { "formControl": { "alias": "formControl"; "required": true; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
declare class FormFieldRadiobuttonComponent implements OnInit, OnDestroy {
|
|
363
|
+
private errorStateMatcher;
|
|
364
|
+
private parentForm;
|
|
365
|
+
private parentFormGroup;
|
|
366
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
367
|
+
private readonly showErrorState;
|
|
368
|
+
private destroy$;
|
|
369
|
+
readonly choices: _angular_core.InputSignal<_igo2_common_form.FormFieldSelectChoice[]>;
|
|
370
|
+
readonly formControl: _angular_core.InputSignal<UntypedFormControl>;
|
|
371
|
+
readonly showLabel: _angular_core.InputSignal<boolean>;
|
|
372
|
+
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
373
|
+
readonly errors: _angular_core.InputSignal<Record<string, string> | undefined>;
|
|
374
|
+
readonly disableSwitch: _angular_core.InputSignal<boolean>;
|
|
375
|
+
get required(): boolean;
|
|
376
|
+
ngOnInit(): void;
|
|
377
|
+
ngOnDestroy(): void;
|
|
378
|
+
getErrorMessage(): string;
|
|
379
|
+
showError(): boolean;
|
|
380
|
+
onDisableSwitchClick(): void;
|
|
381
|
+
private syncState;
|
|
382
|
+
private toggleDisabled;
|
|
383
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldRadiobuttonComponent, never>;
|
|
384
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldRadiobuttonComponent, "igo-form-field-radiobutton", never, { "choices": { "alias": "choices"; "required": true; "isSignal": true; }; "formControl": { "alias": "formControl"; "required": true; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
196
385
|
}
|
|
197
386
|
|
|
198
387
|
/**
|
|
199
388
|
* This component renders a select field
|
|
200
389
|
*/
|
|
201
390
|
declare class FormFieldSelectComponent implements OnInit {
|
|
202
|
-
readonly disabled:
|
|
391
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
203
392
|
/**
|
|
204
393
|
* Select input choices
|
|
205
394
|
*/
|
|
206
|
-
readonly choices:
|
|
395
|
+
readonly choices: _angular_core.InputSignal<FormFieldSelectChoice[]>;
|
|
207
396
|
/**
|
|
208
397
|
* If the select allow multiple selections
|
|
209
398
|
*/
|
|
210
|
-
readonly multiple:
|
|
399
|
+
readonly multiple: _angular_core.InputSignal<boolean>;
|
|
211
400
|
/**
|
|
212
401
|
* The field's form control
|
|
213
402
|
*/
|
|
214
|
-
readonly formControl:
|
|
403
|
+
readonly formControl: _angular_core.InputSignal<UntypedFormControl>;
|
|
404
|
+
/**
|
|
405
|
+
* Field showLabel
|
|
406
|
+
*/
|
|
407
|
+
readonly showLabel: _angular_core.InputSignal<boolean>;
|
|
215
408
|
/**
|
|
216
409
|
* Field placeholder
|
|
217
410
|
*/
|
|
218
|
-
readonly placeholder:
|
|
411
|
+
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
219
412
|
/**
|
|
220
413
|
* Field placeholder
|
|
221
414
|
*/
|
|
222
|
-
readonly errors:
|
|
415
|
+
readonly errors: _angular_core.InputSignal<Record<string, string> | undefined>;
|
|
223
416
|
/**
|
|
224
417
|
* Wheter a disable switch should be available
|
|
225
418
|
*/
|
|
226
|
-
readonly disableSwitch:
|
|
419
|
+
readonly disableSwitch: _angular_core.InputSignal<boolean>;
|
|
227
420
|
/**
|
|
228
421
|
* Whether the field is required
|
|
229
422
|
*/
|
|
@@ -235,8 +428,8 @@ declare class FormFieldSelectComponent implements OnInit {
|
|
|
235
428
|
getErrorMessage(): string;
|
|
236
429
|
onDisableSwitchClick(): void;
|
|
237
430
|
private toggleDisabled;
|
|
238
|
-
static ɵfac:
|
|
239
|
-
static ɵcmp:
|
|
431
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldSelectComponent, never>;
|
|
432
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldSelectComponent, "igo-form-field-select", never, { "choices": { "alias": "choices"; "required": true; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "formControl": { "alias": "formControl"; "required": true; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
240
433
|
}
|
|
241
434
|
|
|
242
435
|
/**
|
|
@@ -244,29 +437,33 @@ declare class FormFieldSelectComponent implements OnInit {
|
|
|
244
437
|
*/
|
|
245
438
|
declare class FormFieldTextComponent implements OnInit {
|
|
246
439
|
private cdRef;
|
|
247
|
-
disabled
|
|
440
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
248
441
|
hide: boolean;
|
|
249
442
|
private lastTimeoutRequest?;
|
|
250
443
|
/**
|
|
251
444
|
* The field's form control
|
|
252
445
|
*/
|
|
253
|
-
readonly formControl:
|
|
446
|
+
readonly formControl: _angular_core.InputSignal<UntypedFormControl>;
|
|
447
|
+
/**
|
|
448
|
+
* Field showLabel
|
|
449
|
+
*/
|
|
450
|
+
readonly showLabel: _angular_core.InputSignal<boolean>;
|
|
254
451
|
/**
|
|
255
452
|
* Field placeholder
|
|
256
453
|
*/
|
|
257
|
-
readonly placeholder:
|
|
454
|
+
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
258
455
|
/**
|
|
259
456
|
* if the input is a password
|
|
260
457
|
*/
|
|
261
|
-
readonly isPassword:
|
|
458
|
+
readonly isPassword: _angular_core.InputSignal<boolean | undefined>;
|
|
262
459
|
/**
|
|
263
460
|
* Field placeholder
|
|
264
461
|
*/
|
|
265
|
-
readonly errors:
|
|
462
|
+
readonly errors: _angular_core.InputSignal<Record<string, string> | undefined>;
|
|
266
463
|
/**
|
|
267
464
|
* Wheter a disable switch should be available
|
|
268
465
|
*/
|
|
269
|
-
readonly disableSwitch:
|
|
466
|
+
readonly disableSwitch: _angular_core.InputSignal<boolean>;
|
|
270
467
|
/**
|
|
271
468
|
* Whether the field is required
|
|
272
469
|
*/
|
|
@@ -280,31 +477,35 @@ declare class FormFieldTextComponent implements OnInit {
|
|
|
280
477
|
private toggleDisabled;
|
|
281
478
|
togglePassword(): void;
|
|
282
479
|
delayedHide(delayMS?: number): void;
|
|
283
|
-
static ɵfac:
|
|
284
|
-
static ɵcmp:
|
|
480
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldTextComponent, never>;
|
|
481
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldTextComponent, "igo-form-field-text", never, { "formControl": { "alias": "formControl"; "required": true; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "isPassword": { "alias": "isPassword"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
285
482
|
}
|
|
286
483
|
|
|
287
484
|
/**
|
|
288
485
|
* This component renders a textarea field
|
|
289
486
|
*/
|
|
290
487
|
declare class FormFieldTextareaComponent implements OnInit {
|
|
291
|
-
disabled
|
|
488
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
292
489
|
/**
|
|
293
490
|
* The field's form control
|
|
294
491
|
*/
|
|
295
|
-
readonly formControl:
|
|
492
|
+
readonly formControl: _angular_core.InputSignal<UntypedFormControl>;
|
|
493
|
+
/**
|
|
494
|
+
* Field showLabel
|
|
495
|
+
*/
|
|
496
|
+
readonly showLabel: _angular_core.InputSignal<boolean>;
|
|
296
497
|
/**
|
|
297
498
|
* Field placeholder
|
|
298
499
|
*/
|
|
299
|
-
readonly placeholder:
|
|
500
|
+
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
300
501
|
/**
|
|
301
502
|
* Field placeholder
|
|
302
503
|
*/
|
|
303
|
-
readonly errors:
|
|
504
|
+
readonly errors: _angular_core.InputSignal<Record<string, string> | undefined>;
|
|
304
505
|
/**
|
|
305
506
|
* Wheter a disable switch should be available
|
|
306
507
|
*/
|
|
307
|
-
readonly disableSwitch:
|
|
508
|
+
readonly disableSwitch: _angular_core.InputSignal<boolean>;
|
|
308
509
|
/**
|
|
309
510
|
* Whether the field is required
|
|
310
511
|
*/
|
|
@@ -316,20 +517,50 @@ declare class FormFieldTextareaComponent implements OnInit {
|
|
|
316
517
|
getErrorMessage(): string;
|
|
317
518
|
onDisableSwitchClick(): void;
|
|
318
519
|
private toggleDisabled;
|
|
319
|
-
static ɵfac:
|
|
320
|
-
static ɵcmp:
|
|
520
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldTextareaComponent, never>;
|
|
521
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldTextareaComponent, "igo-form-field-textarea", never, { "formControl": { "alias": "formControl"; "required": true; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
321
522
|
}
|
|
322
523
|
|
|
323
|
-
declare const FORM_DIRECTIVES: readonly [typeof _igo2_common_form.FormFieldComponent, typeof _igo2_common_form.FormFieldSelectComponent, typeof _igo2_common_form.FormFieldTextComponent, typeof _igo2_common_form.FormFieldTextareaComponent, typeof FormGroupComponent, typeof FormComponent];
|
|
524
|
+
declare const FORM_DIRECTIVES: readonly [typeof _igo2_common_form.FormFieldComponent, typeof _igo2_common_form.FormFieldCheckboxComponent, typeof _igo2_common_form.FormFieldDatetimeComponent, typeof _igo2_common_form.FormFieldNumberComponent, typeof _igo2_common_form.FormFieldRadiobuttonComponent, typeof _igo2_common_form.FormFieldSelectComponent, typeof _igo2_common_form.FormFieldTextComponent, typeof _igo2_common_form.FormFieldTextareaComponent, typeof FormGroupComponent, typeof FormComponent];
|
|
324
525
|
/**
|
|
325
526
|
* @deprecated import the components directly or FORM_DIRECTIVES for every components/directives
|
|
326
527
|
*/
|
|
327
528
|
declare class IgoFormModule {
|
|
328
|
-
static ɵfac:
|
|
329
|
-
static ɵmod:
|
|
330
|
-
static ɵinj:
|
|
529
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IgoFormModule, never>;
|
|
530
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<IgoFormModule, never, [typeof FormFieldComponent, typeof FormFieldCheckboxComponent, typeof FormFieldDatetimeComponent, typeof FormFieldNumberComponent, typeof FormFieldRadiobuttonComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent, typeof FormGroupComponent, typeof FormComponent], [typeof FormFieldComponent, typeof FormFieldCheckboxComponent, typeof FormFieldDatetimeComponent, typeof FormFieldNumberComponent, typeof FormFieldRadiobuttonComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent, typeof FormGroupComponent, typeof FormComponent]>;
|
|
531
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<IgoFormModule>;
|
|
331
532
|
}
|
|
332
533
|
|
|
534
|
+
interface FormStepperLabels {
|
|
535
|
+
nextButton: string;
|
|
536
|
+
previousButton: string;
|
|
537
|
+
processButton: string;
|
|
538
|
+
cancelButton: string;
|
|
539
|
+
/** Supports `{{current}}` and `{{total}}` placeholders. */
|
|
540
|
+
stepCounter: string;
|
|
541
|
+
}
|
|
542
|
+
interface FormStepperFormConfig {
|
|
543
|
+
formFieldConfigs?: FormFieldConfig[];
|
|
544
|
+
formGroupsConfigs?: FormGroupsConfig[];
|
|
545
|
+
}
|
|
546
|
+
interface FormStepperStepContext {
|
|
547
|
+
data: Readonly<Record<string, unknown>>;
|
|
548
|
+
stepIndex: number;
|
|
549
|
+
steps: readonly FormStepperStepConfig[];
|
|
550
|
+
}
|
|
551
|
+
type FormStepperStepFormConfigResolver = (context: FormStepperStepContext) => FormStepperFormConfig;
|
|
552
|
+
interface FormStepperStepConfig {
|
|
553
|
+
label: string;
|
|
554
|
+
title?: string;
|
|
555
|
+
notice?: string;
|
|
556
|
+
form: FormStepperFormConfig | FormStepperStepFormConfigResolver;
|
|
557
|
+
}
|
|
558
|
+
interface FormStepperConfig {
|
|
559
|
+
steps: FormStepperStepConfig[];
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
declare function buildFormFromConfig(formService: FormService, formConfig?: FormStepperFormConfig): Form;
|
|
563
|
+
declare function markFormAsTouched(form: Form): void;
|
|
333
564
|
declare function formControlIsRequired(control: AbstractControl): boolean;
|
|
334
565
|
declare function getDefaultErrorMessages(): Record<string, string>;
|
|
335
566
|
declare function getControlErrorMessage(control: AbstractControl, messages: Record<string, string>): string;
|
|
@@ -344,8 +575,8 @@ declare class FormService {
|
|
|
344
575
|
extendFieldConfig(config: FormFieldConfig, partial: Partial<FormFieldConfig>): FormFieldConfig;
|
|
345
576
|
private getValidators;
|
|
346
577
|
private getValidator;
|
|
347
|
-
static ɵfac:
|
|
348
|
-
static ɵprov:
|
|
578
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormService, never>;
|
|
579
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<FormService>;
|
|
349
580
|
}
|
|
350
581
|
|
|
351
582
|
/**
|
|
@@ -360,8 +591,8 @@ declare class FormFieldService {
|
|
|
360
591
|
* @returns Field component
|
|
361
592
|
*/
|
|
362
593
|
getFieldByType(type: string): any;
|
|
363
|
-
static ɵfac:
|
|
364
|
-
static ɵprov:
|
|
594
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldService, never>;
|
|
595
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<FormFieldService>;
|
|
365
596
|
}
|
|
366
597
|
|
|
367
598
|
declare function IgoFormFieldComponent(type: string): (cls: any) => any;
|
|
@@ -370,21 +601,64 @@ declare function IgoFormFieldComponent(type: string): (cls: any) => any;
|
|
|
370
601
|
* @deprecated import the components directly or FORM_FIELD_DIRECTIVES for every components/directives
|
|
371
602
|
*/
|
|
372
603
|
declare class IgoFormFieldModule {
|
|
373
|
-
static ɵfac:
|
|
374
|
-
static ɵmod:
|
|
375
|
-
static ɵinj:
|
|
604
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IgoFormFieldModule, never>;
|
|
605
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<IgoFormFieldModule, never, [typeof FormFieldComponent, typeof FormFieldCheckboxComponent, typeof FormFieldDatetimeComponent, typeof FormFieldNumberComponent, typeof FormFieldRadiobuttonComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent], [typeof FormFieldComponent, typeof FormFieldCheckboxComponent, typeof FormFieldDatetimeComponent, typeof FormFieldNumberComponent, typeof FormFieldRadiobuttonComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent]>;
|
|
606
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<IgoFormFieldModule>;
|
|
376
607
|
}
|
|
377
608
|
|
|
378
|
-
declare const FORM_FIELD_DIRECTIVES: readonly [typeof FormFieldComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent];
|
|
609
|
+
declare const FORM_FIELD_DIRECTIVES: readonly [typeof FormFieldComponent, typeof FormFieldCheckboxComponent, typeof FormFieldDatetimeComponent, typeof FormFieldNumberComponent, typeof FormFieldRadiobuttonComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent];
|
|
379
610
|
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
611
|
+
declare class FormStepperComponent {
|
|
612
|
+
private readonly formService;
|
|
613
|
+
readonly steps: _angular_core.InputSignal<FormStepperStepConfig[]>;
|
|
614
|
+
readonly initialData: _angular_core.InputSignal<Record<string, unknown>>;
|
|
615
|
+
readonly notice: _angular_core.InputSignal<string | undefined>;
|
|
616
|
+
readonly labels: _angular_core.InputSignalWithTransform<FormStepperLabels, Partial<FormStepperLabels> | undefined>;
|
|
617
|
+
readonly showCancelButton: _angular_core.InputSignal<boolean>;
|
|
618
|
+
readonly completed: _angular_core.OutputEmitterRef<Record<string, unknown>>;
|
|
619
|
+
readonly cancelled: _angular_core.OutputEmitterRef<void>;
|
|
620
|
+
readonly dataChange: _angular_core.OutputEmitterRef<Record<string, unknown>>;
|
|
621
|
+
readonly stepIndex: _angular_core.WritableSignal<number>;
|
|
622
|
+
private readonly stepResults;
|
|
623
|
+
readonly activeStep: _angular_core.Signal<FormStepperStepConfig>;
|
|
624
|
+
readonly activeContextData: _angular_core.Signal<Record<string, unknown>>;
|
|
625
|
+
readonly activeFormData: _angular_core.Signal<Record<string, unknown>>;
|
|
626
|
+
readonly activeForm: _angular_core.Signal<Form>;
|
|
627
|
+
readonly activeNotice: _angular_core.Signal<string | undefined>;
|
|
628
|
+
readonly stepCount: _angular_core.Signal<number>;
|
|
629
|
+
readonly stepNumber: _angular_core.Signal<number>;
|
|
630
|
+
readonly resolvedLabels: _angular_core.Signal<FormStepperLabels>;
|
|
631
|
+
readonly stepCounterLabel: _angular_core.Signal<string>;
|
|
632
|
+
readonly progressWidth: _angular_core.Signal<string>;
|
|
633
|
+
readonly maxNavigableStepIndex: _angular_core.Signal<number>;
|
|
634
|
+
readonly isLastStep: _angular_core.Signal<boolean>;
|
|
635
|
+
onSubmitStep(stepData: Record<string, unknown>): void;
|
|
636
|
+
previous(): void;
|
|
637
|
+
cancel(): void;
|
|
638
|
+
reset(): void;
|
|
639
|
+
onSelectedIndexChange(index: number): void;
|
|
640
|
+
isCompletedStep(index: number): boolean;
|
|
641
|
+
isEditableStep(index: number): boolean;
|
|
642
|
+
private buildAggregateData;
|
|
643
|
+
private buildAggregateDataFrom;
|
|
644
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormStepperComponent, never>;
|
|
645
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormStepperComponent, "igo-form-stepper", never, { "steps": { "alias": "steps"; "required": true; "isSignal": true; }; "initialData": { "alias": "initialData"; "required": false; "isSignal": true; }; "notice": { "alias": "notice"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; "showCancelButton": { "alias": "showCancelButton"; "required": false; "isSignal": true; }; }, { "completed": "completed"; "cancelled": "cancelled"; "dataChange": "dataChange"; }, never, never, true, never>;
|
|
383
646
|
}
|
|
647
|
+
|
|
648
|
+
type FormDialogFormConfig = FormStepperFormConfig;
|
|
649
|
+
type FormDialogStepContext = FormStepperStepContext;
|
|
650
|
+
type FormDialogStepFormConfigResolver = FormStepperStepFormConfigResolver;
|
|
651
|
+
type FormDialogStepConfig = FormStepperStepConfig;
|
|
652
|
+
type FormDialogStepperConfig = FormStepperConfig;
|
|
384
653
|
interface FormDialogData extends FormDialogOptions, FormDialogFormConfig {
|
|
385
654
|
}
|
|
655
|
+
interface FormDialogStepperOptions extends FormDialogOptions {
|
|
656
|
+
labels?: Partial<FormStepperLabels>;
|
|
657
|
+
}
|
|
658
|
+
interface FormDialogStepperData extends FormDialogStepperOptions, FormDialogStepperConfig {
|
|
659
|
+
}
|
|
386
660
|
interface FormDialogOptions extends MatDialogConfig {
|
|
387
|
-
data$?: BehaviorSubject<Record<string,
|
|
661
|
+
data$?: BehaviorSubject<Record<string, unknown>>;
|
|
388
662
|
title?: string;
|
|
389
663
|
processButtonText?: string;
|
|
390
664
|
cancelButtonText?: string;
|
|
@@ -396,13 +670,27 @@ declare class FormDialogComponent {
|
|
|
396
670
|
dialogRef: MatDialogRef<FormDialogComponent, any>;
|
|
397
671
|
private formService;
|
|
398
672
|
data: FormDialogData;
|
|
399
|
-
form$: BehaviorSubject<Form | undefined>;
|
|
400
|
-
data$: BehaviorSubject<Record<string,
|
|
673
|
+
form$: BehaviorSubject<_igo2_common_form.Form | undefined>;
|
|
674
|
+
data$: BehaviorSubject<Record<string, unknown>>;
|
|
401
675
|
constructor();
|
|
402
676
|
onSubmit(data: Record<string, unknown>): void;
|
|
403
677
|
cancel(): void;
|
|
404
|
-
static ɵfac:
|
|
405
|
-
static ɵcmp:
|
|
678
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormDialogComponent, never>;
|
|
679
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormDialogComponent, "igo-form-dialog", never, {}, {}, never, never, true, never>;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
declare const DEFAULT_FORM_STEPPER_DIALOG_TITLE = "Veuillez remplir le formulaire";
|
|
683
|
+
declare class FormStepperDialogComponent {
|
|
684
|
+
readonly formStepper: _angular_core.Signal<FormStepperComponent | undefined>;
|
|
685
|
+
readonly dialogRef: MatDialogRef<FormStepperDialogComponent, any>;
|
|
686
|
+
readonly data: FormDialogStepperData;
|
|
687
|
+
readonly initialData: Record<string, unknown>;
|
|
688
|
+
constructor();
|
|
689
|
+
onDataChange(data: Record<string, unknown>): void;
|
|
690
|
+
cancel(): void;
|
|
691
|
+
onCompleted(data: Record<string, unknown>): void;
|
|
692
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormStepperDialogComponent, never>;
|
|
693
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormStepperDialogComponent, "igo-form-stepper-dialog", never, {}, {}, never, never, true, never>;
|
|
406
694
|
}
|
|
407
695
|
|
|
408
696
|
/**
|
|
@@ -413,17 +701,18 @@ declare class IgoFormDialogModule {
|
|
|
413
701
|
* @deprecated it has no effect
|
|
414
702
|
*/
|
|
415
703
|
static forRoot(): ModuleWithProviders<IgoFormDialogModule>;
|
|
416
|
-
static ɵfac:
|
|
417
|
-
static ɵmod:
|
|
418
|
-
static ɵinj:
|
|
704
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IgoFormDialogModule, never>;
|
|
705
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<IgoFormDialogModule, never, [typeof i1.MatDialogModule, typeof FormDialogComponent, typeof FormStepperComponent, typeof FormStepperDialogComponent], [typeof FormDialogComponent, typeof FormStepperComponent, typeof FormStepperDialogComponent]>;
|
|
706
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<IgoFormDialogModule>;
|
|
419
707
|
}
|
|
420
708
|
|
|
421
709
|
declare class FormDialogService {
|
|
422
710
|
private dialog;
|
|
423
|
-
open(formDialogConfig?: FormDialogFormConfig, options?: FormDialogOptions): Observable<
|
|
424
|
-
|
|
425
|
-
static
|
|
711
|
+
open<T extends Record<string, unknown> = Record<string, unknown>>(formDialogConfig?: FormDialogFormConfig, options?: FormDialogOptions): Observable<T | undefined>;
|
|
712
|
+
openStepper<T extends Record<string, unknown> = Record<string, unknown>>(formDialogStepperConfig: FormStepperConfig, options?: FormDialogStepperOptions): Observable<T | undefined>;
|
|
713
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormDialogService, never>;
|
|
714
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<FormDialogService>;
|
|
426
715
|
}
|
|
427
716
|
|
|
428
|
-
export { FORM_DIRECTIVES, FORM_FIELD_DIRECTIVES, FormComponent, FormDialogComponent, FormDialogService, FormFieldComponent, FormFieldSelectComponent, FormFieldService, FormFieldTextComponent, FormFieldTextareaComponent, FormGroupComponent, FormService, IgoFormDialogModule, IgoFormFieldComponent, IgoFormFieldModule, IgoFormFormModule, IgoFormGroupModule, IgoFormModule, formControlIsRequired, getAllFormFields, getControlErrorMessage, getDefaultErrorMessages, getFormFieldByName };
|
|
429
|
-
export type { Form, FormDialogData, FormDialogFormConfig, FormDialogOptions, FormField, FormFieldConfig, FormFieldGroup, FormFieldGroupConfig, FormFieldGroupOptions, FormFieldInputs, FormFieldOptions, FormFieldSelectChoice, FormFieldSelectInputs, FormFieldSubscribers, FormGroupsConfig };
|
|
717
|
+
export { DEFAULT_FORM_STEPPER_DIALOG_TITLE, FORM_DIRECTIVES, FORM_FIELD_DIRECTIVES, FormComponent, FormDialogComponent, FormDialogService, FormFieldCheckboxComponent, FormFieldComponent, FormFieldDatetimeComponent, FormFieldNumberComponent, FormFieldRadiobuttonComponent, FormFieldSelectComponent, FormFieldService, FormFieldTextComponent, FormFieldTextareaComponent, FormGroupComponent, FormService, FormStepperComponent, FormStepperDialogComponent, IgoFormDialogModule, IgoFormFieldComponent, IgoFormFieldModule, IgoFormFormModule, IgoFormGroupModule, IgoFormModule, buildFormFromConfig, formControlIsRequired, getAllFormFields, getControlErrorMessage, getDefaultErrorMessages, getFormFieldByName, markFormAsTouched };
|
|
718
|
+
export type { Form, FormDialogData, FormDialogFormConfig, FormDialogOptions, FormDialogStepConfig, FormDialogStepContext, FormDialogStepFormConfigResolver, FormDialogStepperConfig, FormDialogStepperData, FormDialogStepperOptions, FormField, FormFieldCheckboxInputs, FormFieldChoiceInputs, FormFieldConfig, FormFieldGroup, FormFieldGroupConfig, FormFieldGroupOptions, FormFieldInputs, FormFieldOptions, FormFieldRadiobuttonInputs, FormFieldSelectChoice, FormFieldSelectInputs, FormFieldSubscribers, FormGroupsConfig, FormStepperConfig, FormStepperFormConfig, FormStepperLabels, FormStepperStepConfig, FormStepperStepContext, FormStepperStepFormConfigResolver };
|