@igo2/common 21.0.0-next.3 → 21.0.0-next.31
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 +14 -14
- 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 +10 -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 +379 -81
- 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-select-value-dialog.mjs +10 -10
- package/fesm2022/igo2-common-select-value-dialog.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/package.json +3 -3
- package/style/style.css +1 -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 +204 -67
|
@@ -1,7 +1,7 @@
|
|
|
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
6
|
import * as i1 from '@angular/material/dialog';
|
|
7
7
|
import { MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
|
|
@@ -72,20 +72,20 @@ declare class FormComponent implements OnChanges {
|
|
|
72
72
|
/**
|
|
73
73
|
* Form
|
|
74
74
|
*/
|
|
75
|
-
readonly form:
|
|
75
|
+
readonly form: _angular_core.InputSignal<Form>;
|
|
76
76
|
/**
|
|
77
77
|
* Input data
|
|
78
78
|
*/
|
|
79
|
-
readonly formData:
|
|
79
|
+
readonly formData: _angular_core.InputSignal<Record<string, unknown> | undefined>;
|
|
80
80
|
/**
|
|
81
81
|
* Form autocomplete
|
|
82
82
|
*/
|
|
83
|
-
readonly autocomplete:
|
|
83
|
+
readonly autocomplete: _angular_core.InputSignal<string>;
|
|
84
84
|
/**
|
|
85
85
|
* Event emitted when the form is submitted
|
|
86
86
|
*/
|
|
87
|
-
readonly submitForm:
|
|
88
|
-
readonly buttons:
|
|
87
|
+
readonly submitForm: _angular_core.OutputEmitterRef<Record<string, unknown>>;
|
|
88
|
+
readonly buttons: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
89
89
|
get hasButtons(): boolean;
|
|
90
90
|
/**
|
|
91
91
|
* Is the entity or the template change, recreate the form or repopulate it.
|
|
@@ -105,17 +105,17 @@ declare class FormComponent implements OnChanges {
|
|
|
105
105
|
* Clear form
|
|
106
106
|
*/
|
|
107
107
|
private clear;
|
|
108
|
-
static ɵfac:
|
|
109
|
-
static ɵcmp:
|
|
108
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
109
|
+
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
110
|
}
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
113
|
* @deprecated import the FormComponent directly
|
|
114
114
|
*/
|
|
115
115
|
declare class IgoFormFormModule {
|
|
116
|
-
static ɵfac:
|
|
117
|
-
static ɵmod:
|
|
118
|
-
static ɵinj:
|
|
116
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IgoFormFormModule, never>;
|
|
117
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<IgoFormFormModule, never, [typeof FormComponent], [typeof FormComponent]>;
|
|
118
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<IgoFormFormModule>;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
/**
|
|
@@ -127,11 +127,11 @@ declare class FormGroupComponent {
|
|
|
127
127
|
/**
|
|
128
128
|
* Form field group
|
|
129
129
|
*/
|
|
130
|
-
readonly group:
|
|
130
|
+
readonly group: _angular_core.InputSignal<FormFieldGroup>;
|
|
131
131
|
/**
|
|
132
132
|
* Field placeholder
|
|
133
133
|
*/
|
|
134
|
-
readonly errors:
|
|
134
|
+
readonly errors: _angular_core.InputSignal<Record<string, string> | undefined>;
|
|
135
135
|
/**
|
|
136
136
|
* Form group control
|
|
137
137
|
*/
|
|
@@ -156,17 +156,17 @@ declare class FormGroupComponent {
|
|
|
156
156
|
* Get error message
|
|
157
157
|
*/
|
|
158
158
|
getErrorMessage(): string;
|
|
159
|
-
static ɵfac:
|
|
160
|
-
static ɵcmp:
|
|
159
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormGroupComponent, never>;
|
|
160
|
+
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
161
|
}
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
164
|
* @deprecated import the FormGroupComponent directly
|
|
165
165
|
*/
|
|
166
166
|
declare class IgoFormGroupModule {
|
|
167
|
-
static ɵfac:
|
|
168
|
-
static ɵmod:
|
|
169
|
-
static ɵinj:
|
|
167
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IgoFormGroupModule, never>;
|
|
168
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<IgoFormGroupModule, never, [typeof FormGroupComponent], [typeof FormGroupComponent]>;
|
|
169
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<IgoFormGroupModule>;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
/**
|
|
@@ -178,7 +178,7 @@ declare class FormFieldComponent {
|
|
|
178
178
|
/**
|
|
179
179
|
* Field configuration
|
|
180
180
|
*/
|
|
181
|
-
readonly field:
|
|
181
|
+
readonly field: _angular_core.InputSignal<FormField<FormFieldInputs>>;
|
|
182
182
|
/**
|
|
183
183
|
* Field inputs cache
|
|
184
184
|
*/
|
|
@@ -191,39 +191,168 @@ declare class FormFieldComponent {
|
|
|
191
191
|
getFieldComponent(): any;
|
|
192
192
|
getFieldInputs(): FormFieldInputs;
|
|
193
193
|
getFieldSubscribers(): FormFieldSubscribers;
|
|
194
|
-
static ɵfac:
|
|
195
|
-
static ɵcmp:
|
|
194
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
195
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldComponent, "igo-form-field", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
declare class FormFieldDatetimeComponent implements OnInit, OnDestroy {
|
|
199
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
200
|
+
readonly dateTimeGroup: FormGroup<{
|
|
201
|
+
date: FormControl<Date | null>;
|
|
202
|
+
time: FormControl<Date | null>;
|
|
203
|
+
}>;
|
|
204
|
+
get dateControl(): FormControl<Date | null>;
|
|
205
|
+
get timeControl(): FormControl<Date | null>;
|
|
206
|
+
private destroy$;
|
|
207
|
+
private syncingExternalToInternal;
|
|
208
|
+
private syncingInternalToExternal;
|
|
209
|
+
/**
|
|
210
|
+
* The field's form control
|
|
211
|
+
*/
|
|
212
|
+
readonly formControl: _angular_core.InputSignal<UntypedFormControl>;
|
|
213
|
+
/**
|
|
214
|
+
* Field showLabel
|
|
215
|
+
*/
|
|
216
|
+
readonly showLabel: _angular_core.InputSignal<boolean>;
|
|
217
|
+
/**
|
|
218
|
+
* Field placeholder used for date input
|
|
219
|
+
*/
|
|
220
|
+
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
221
|
+
/**
|
|
222
|
+
* Placeholder used for time input
|
|
223
|
+
*/
|
|
224
|
+
readonly timePlaceholder: _angular_core.InputSignal<string | undefined>;
|
|
225
|
+
/**
|
|
226
|
+
* Minimum selectable date
|
|
227
|
+
*/
|
|
228
|
+
readonly minDate: _angular_core.InputSignal<Date | undefined>;
|
|
229
|
+
/**
|
|
230
|
+
* Maximum selectable date
|
|
231
|
+
*/
|
|
232
|
+
readonly maxDate: _angular_core.InputSignal<Date | undefined>;
|
|
233
|
+
/**
|
|
234
|
+
* Minimum selectable time
|
|
235
|
+
*/
|
|
236
|
+
readonly minTime: _angular_core.InputSignal<string | Date | null>;
|
|
237
|
+
/**
|
|
238
|
+
* Maximum selectable time
|
|
239
|
+
*/
|
|
240
|
+
readonly maxTime: _angular_core.InputSignal<string | Date | null>;
|
|
241
|
+
/**
|
|
242
|
+
* Optional explicit options rendered in the timepicker panel.
|
|
243
|
+
*/
|
|
244
|
+
readonly options: _angular_core.InputSignal<readonly {
|
|
245
|
+
value: Date;
|
|
246
|
+
label: string;
|
|
247
|
+
}[] | null>;
|
|
248
|
+
/**
|
|
249
|
+
* Time option interval for the panel.
|
|
250
|
+
*/
|
|
251
|
+
readonly interval: _angular_core.InputSignal<string | number | null>;
|
|
252
|
+
/**
|
|
253
|
+
* Whether clicking the input should open the timepicker.
|
|
254
|
+
*/
|
|
255
|
+
readonly openOnClick: _angular_core.InputSignal<boolean>;
|
|
256
|
+
/**
|
|
257
|
+
* Whether a disable switch should be available
|
|
258
|
+
*/
|
|
259
|
+
readonly disableSwitch: _angular_core.InputSignal<boolean>;
|
|
260
|
+
/**
|
|
261
|
+
* Error messages mapping
|
|
262
|
+
*/
|
|
263
|
+
readonly errors: _angular_core.InputSignal<Record<string, string> | undefined>;
|
|
264
|
+
/**
|
|
265
|
+
* Whether the field is required
|
|
266
|
+
*/
|
|
267
|
+
get required(): boolean;
|
|
268
|
+
ngOnInit(): void;
|
|
269
|
+
ngOnDestroy(): void;
|
|
270
|
+
getErrorMessage(): string;
|
|
271
|
+
clearDate(): void;
|
|
272
|
+
clearTime(): void;
|
|
273
|
+
onDisableSwitchClick(): void;
|
|
274
|
+
private syncInternalFromExternal;
|
|
275
|
+
private pushInternalToExternal;
|
|
276
|
+
private updateTimeControlState;
|
|
277
|
+
private toDateValue;
|
|
278
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldDatetimeComponent, never>;
|
|
279
|
+
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>;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* This component renders a number field
|
|
284
|
+
*/
|
|
285
|
+
declare class FormFieldNumberComponent implements OnInit {
|
|
286
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
287
|
+
hide: boolean;
|
|
288
|
+
/**
|
|
289
|
+
* The field's form control
|
|
290
|
+
*/
|
|
291
|
+
readonly formControl: _angular_core.InputSignal<UntypedFormControl>;
|
|
292
|
+
/**
|
|
293
|
+
* Field showLabel
|
|
294
|
+
*/
|
|
295
|
+
readonly showLabel: _angular_core.InputSignal<boolean>;
|
|
296
|
+
/**
|
|
297
|
+
* Field placeholder
|
|
298
|
+
*/
|
|
299
|
+
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
300
|
+
/**
|
|
301
|
+
* Field placeholder
|
|
302
|
+
*/
|
|
303
|
+
readonly errors: _angular_core.InputSignal<Record<string, string> | undefined>;
|
|
304
|
+
/**
|
|
305
|
+
* Wheter a disable switch should be available
|
|
306
|
+
*/
|
|
307
|
+
readonly disableSwitch: _angular_core.InputSignal<boolean>;
|
|
308
|
+
/**
|
|
309
|
+
* Whether the field is required
|
|
310
|
+
*/
|
|
311
|
+
get required(): boolean;
|
|
312
|
+
ngOnInit(): void;
|
|
313
|
+
/**
|
|
314
|
+
* Get error message
|
|
315
|
+
*/
|
|
316
|
+
getErrorMessage(): string;
|
|
317
|
+
onDisableSwitchClick(): void;
|
|
318
|
+
private toggleDisabled;
|
|
319
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldNumberComponent, never>;
|
|
320
|
+
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>;
|
|
196
321
|
}
|
|
197
322
|
|
|
198
323
|
/**
|
|
199
324
|
* This component renders a select field
|
|
200
325
|
*/
|
|
201
326
|
declare class FormFieldSelectComponent implements OnInit {
|
|
202
|
-
readonly disabled:
|
|
327
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
203
328
|
/**
|
|
204
329
|
* Select input choices
|
|
205
330
|
*/
|
|
206
|
-
readonly choices:
|
|
331
|
+
readonly choices: _angular_core.InputSignal<FormFieldSelectChoice[]>;
|
|
207
332
|
/**
|
|
208
333
|
* If the select allow multiple selections
|
|
209
334
|
*/
|
|
210
|
-
readonly multiple:
|
|
335
|
+
readonly multiple: _angular_core.InputSignal<boolean>;
|
|
211
336
|
/**
|
|
212
337
|
* The field's form control
|
|
213
338
|
*/
|
|
214
|
-
readonly formControl:
|
|
339
|
+
readonly formControl: _angular_core.InputSignal<UntypedFormControl>;
|
|
340
|
+
/**
|
|
341
|
+
* Field showLabel
|
|
342
|
+
*/
|
|
343
|
+
readonly showLabel: _angular_core.InputSignal<boolean>;
|
|
215
344
|
/**
|
|
216
345
|
* Field placeholder
|
|
217
346
|
*/
|
|
218
|
-
readonly placeholder:
|
|
347
|
+
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
219
348
|
/**
|
|
220
349
|
* Field placeholder
|
|
221
350
|
*/
|
|
222
|
-
readonly errors:
|
|
351
|
+
readonly errors: _angular_core.InputSignal<Record<string, string> | undefined>;
|
|
223
352
|
/**
|
|
224
353
|
* Wheter a disable switch should be available
|
|
225
354
|
*/
|
|
226
|
-
readonly disableSwitch:
|
|
355
|
+
readonly disableSwitch: _angular_core.InputSignal<boolean>;
|
|
227
356
|
/**
|
|
228
357
|
* Whether the field is required
|
|
229
358
|
*/
|
|
@@ -235,8 +364,8 @@ declare class FormFieldSelectComponent implements OnInit {
|
|
|
235
364
|
getErrorMessage(): string;
|
|
236
365
|
onDisableSwitchClick(): void;
|
|
237
366
|
private toggleDisabled;
|
|
238
|
-
static ɵfac:
|
|
239
|
-
static ɵcmp:
|
|
367
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldSelectComponent, never>;
|
|
368
|
+
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
369
|
}
|
|
241
370
|
|
|
242
371
|
/**
|
|
@@ -244,29 +373,33 @@ declare class FormFieldSelectComponent implements OnInit {
|
|
|
244
373
|
*/
|
|
245
374
|
declare class FormFieldTextComponent implements OnInit {
|
|
246
375
|
private cdRef;
|
|
247
|
-
disabled
|
|
376
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
248
377
|
hide: boolean;
|
|
249
378
|
private lastTimeoutRequest?;
|
|
250
379
|
/**
|
|
251
380
|
* The field's form control
|
|
252
381
|
*/
|
|
253
|
-
readonly formControl:
|
|
382
|
+
readonly formControl: _angular_core.InputSignal<UntypedFormControl>;
|
|
383
|
+
/**
|
|
384
|
+
* Field showLabel
|
|
385
|
+
*/
|
|
386
|
+
readonly showLabel: _angular_core.InputSignal<boolean>;
|
|
254
387
|
/**
|
|
255
388
|
* Field placeholder
|
|
256
389
|
*/
|
|
257
|
-
readonly placeholder:
|
|
390
|
+
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
258
391
|
/**
|
|
259
392
|
* if the input is a password
|
|
260
393
|
*/
|
|
261
|
-
readonly isPassword:
|
|
394
|
+
readonly isPassword: _angular_core.InputSignal<boolean | undefined>;
|
|
262
395
|
/**
|
|
263
396
|
* Field placeholder
|
|
264
397
|
*/
|
|
265
|
-
readonly errors:
|
|
398
|
+
readonly errors: _angular_core.InputSignal<Record<string, string> | undefined>;
|
|
266
399
|
/**
|
|
267
400
|
* Wheter a disable switch should be available
|
|
268
401
|
*/
|
|
269
|
-
readonly disableSwitch:
|
|
402
|
+
readonly disableSwitch: _angular_core.InputSignal<boolean>;
|
|
270
403
|
/**
|
|
271
404
|
* Whether the field is required
|
|
272
405
|
*/
|
|
@@ -280,31 +413,35 @@ declare class FormFieldTextComponent implements OnInit {
|
|
|
280
413
|
private toggleDisabled;
|
|
281
414
|
togglePassword(): void;
|
|
282
415
|
delayedHide(delayMS?: number): void;
|
|
283
|
-
static ɵfac:
|
|
284
|
-
static ɵcmp:
|
|
416
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldTextComponent, never>;
|
|
417
|
+
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
418
|
}
|
|
286
419
|
|
|
287
420
|
/**
|
|
288
421
|
* This component renders a textarea field
|
|
289
422
|
*/
|
|
290
423
|
declare class FormFieldTextareaComponent implements OnInit {
|
|
291
|
-
disabled
|
|
424
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
292
425
|
/**
|
|
293
426
|
* The field's form control
|
|
294
427
|
*/
|
|
295
|
-
readonly formControl:
|
|
428
|
+
readonly formControl: _angular_core.InputSignal<UntypedFormControl>;
|
|
429
|
+
/**
|
|
430
|
+
* Field showLabel
|
|
431
|
+
*/
|
|
432
|
+
readonly showLabel: _angular_core.InputSignal<boolean>;
|
|
296
433
|
/**
|
|
297
434
|
* Field placeholder
|
|
298
435
|
*/
|
|
299
|
-
readonly placeholder:
|
|
436
|
+
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
300
437
|
/**
|
|
301
438
|
* Field placeholder
|
|
302
439
|
*/
|
|
303
|
-
readonly errors:
|
|
440
|
+
readonly errors: _angular_core.InputSignal<Record<string, string> | undefined>;
|
|
304
441
|
/**
|
|
305
442
|
* Wheter a disable switch should be available
|
|
306
443
|
*/
|
|
307
|
-
readonly disableSwitch:
|
|
444
|
+
readonly disableSwitch: _angular_core.InputSignal<boolean>;
|
|
308
445
|
/**
|
|
309
446
|
* Whether the field is required
|
|
310
447
|
*/
|
|
@@ -316,18 +453,18 @@ declare class FormFieldTextareaComponent implements OnInit {
|
|
|
316
453
|
getErrorMessage(): string;
|
|
317
454
|
onDisableSwitchClick(): void;
|
|
318
455
|
private toggleDisabled;
|
|
319
|
-
static ɵfac:
|
|
320
|
-
static ɵcmp:
|
|
456
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldTextareaComponent, never>;
|
|
457
|
+
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
458
|
}
|
|
322
459
|
|
|
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];
|
|
460
|
+
declare const FORM_DIRECTIVES: readonly [typeof _igo2_common_form.FormFieldComponent, typeof _igo2_common_form.FormFieldDatetimeComponent, typeof _igo2_common_form.FormFieldNumberComponent, typeof _igo2_common_form.FormFieldSelectComponent, typeof _igo2_common_form.FormFieldTextComponent, typeof _igo2_common_form.FormFieldTextareaComponent, typeof FormGroupComponent, typeof FormComponent];
|
|
324
461
|
/**
|
|
325
462
|
* @deprecated import the components directly or FORM_DIRECTIVES for every components/directives
|
|
326
463
|
*/
|
|
327
464
|
declare class IgoFormModule {
|
|
328
|
-
static ɵfac:
|
|
329
|
-
static ɵmod:
|
|
330
|
-
static ɵinj:
|
|
465
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IgoFormModule, never>;
|
|
466
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<IgoFormModule, never, [typeof FormFieldComponent, typeof FormFieldDatetimeComponent, typeof FormFieldNumberComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent, typeof FormGroupComponent, typeof FormComponent], [typeof FormFieldComponent, typeof FormFieldDatetimeComponent, typeof FormFieldNumberComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent, typeof FormGroupComponent, typeof FormComponent]>;
|
|
467
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<IgoFormModule>;
|
|
331
468
|
}
|
|
332
469
|
|
|
333
470
|
declare function formControlIsRequired(control: AbstractControl): boolean;
|
|
@@ -344,8 +481,8 @@ declare class FormService {
|
|
|
344
481
|
extendFieldConfig(config: FormFieldConfig, partial: Partial<FormFieldConfig>): FormFieldConfig;
|
|
345
482
|
private getValidators;
|
|
346
483
|
private getValidator;
|
|
347
|
-
static ɵfac:
|
|
348
|
-
static ɵprov:
|
|
484
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormService, never>;
|
|
485
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<FormService>;
|
|
349
486
|
}
|
|
350
487
|
|
|
351
488
|
/**
|
|
@@ -360,8 +497,8 @@ declare class FormFieldService {
|
|
|
360
497
|
* @returns Field component
|
|
361
498
|
*/
|
|
362
499
|
getFieldByType(type: string): any;
|
|
363
|
-
static ɵfac:
|
|
364
|
-
static ɵprov:
|
|
500
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldService, never>;
|
|
501
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<FormFieldService>;
|
|
365
502
|
}
|
|
366
503
|
|
|
367
504
|
declare function IgoFormFieldComponent(type: string): (cls: any) => any;
|
|
@@ -370,12 +507,12 @@ declare function IgoFormFieldComponent(type: string): (cls: any) => any;
|
|
|
370
507
|
* @deprecated import the components directly or FORM_FIELD_DIRECTIVES for every components/directives
|
|
371
508
|
*/
|
|
372
509
|
declare class IgoFormFieldModule {
|
|
373
|
-
static ɵfac:
|
|
374
|
-
static ɵmod:
|
|
375
|
-
static ɵinj:
|
|
510
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IgoFormFieldModule, never>;
|
|
511
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<IgoFormFieldModule, never, [typeof FormFieldComponent, typeof FormFieldDatetimeComponent, typeof FormFieldNumberComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent], [typeof FormFieldComponent, typeof FormFieldDatetimeComponent, typeof FormFieldNumberComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent]>;
|
|
512
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<IgoFormFieldModule>;
|
|
376
513
|
}
|
|
377
514
|
|
|
378
|
-
declare const FORM_FIELD_DIRECTIVES: readonly [typeof FormFieldComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent];
|
|
515
|
+
declare const FORM_FIELD_DIRECTIVES: readonly [typeof FormFieldComponent, typeof FormFieldDatetimeComponent, typeof FormFieldNumberComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent];
|
|
379
516
|
|
|
380
517
|
interface FormDialogFormConfig {
|
|
381
518
|
formFieldConfigs?: FormFieldConfig[];
|
|
@@ -401,8 +538,8 @@ declare class FormDialogComponent {
|
|
|
401
538
|
constructor();
|
|
402
539
|
onSubmit(data: Record<string, unknown>): void;
|
|
403
540
|
cancel(): void;
|
|
404
|
-
static ɵfac:
|
|
405
|
-
static ɵcmp:
|
|
541
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormDialogComponent, never>;
|
|
542
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormDialogComponent, "igo-form-dialog", never, {}, {}, never, never, true, never>;
|
|
406
543
|
}
|
|
407
544
|
|
|
408
545
|
/**
|
|
@@ -413,17 +550,17 @@ declare class IgoFormDialogModule {
|
|
|
413
550
|
* @deprecated it has no effect
|
|
414
551
|
*/
|
|
415
552
|
static forRoot(): ModuleWithProviders<IgoFormDialogModule>;
|
|
416
|
-
static ɵfac:
|
|
417
|
-
static ɵmod:
|
|
418
|
-
static ɵinj:
|
|
553
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IgoFormDialogModule, never>;
|
|
554
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<IgoFormDialogModule, never, [typeof i1.MatDialogModule, typeof FormDialogComponent], [typeof FormDialogComponent]>;
|
|
555
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<IgoFormDialogModule>;
|
|
419
556
|
}
|
|
420
557
|
|
|
421
558
|
declare class FormDialogService {
|
|
422
559
|
private dialog;
|
|
423
560
|
open(formDialogConfig?: FormDialogFormConfig, options?: FormDialogOptions): Observable<Record<string, any>>;
|
|
424
|
-
static ɵfac:
|
|
425
|
-
static ɵprov:
|
|
561
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormDialogService, never>;
|
|
562
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<FormDialogService>;
|
|
426
563
|
}
|
|
427
564
|
|
|
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 };
|
|
565
|
+
export { FORM_DIRECTIVES, FORM_FIELD_DIRECTIVES, FormComponent, FormDialogComponent, FormDialogService, FormFieldComponent, FormFieldDatetimeComponent, FormFieldNumberComponent, FormFieldSelectComponent, FormFieldService, FormFieldTextComponent, FormFieldTextareaComponent, FormGroupComponent, FormService, IgoFormDialogModule, IgoFormFieldComponent, IgoFormFieldModule, IgoFormFormModule, IgoFormGroupModule, IgoFormModule, formControlIsRequired, getAllFormFields, getControlErrorMessage, getDefaultErrorMessages, getFormFieldByName };
|
|
429
566
|
export type { Form, FormDialogData, FormDialogFormConfig, FormDialogOptions, FormField, FormFieldConfig, FormFieldGroup, FormFieldGroupConfig, FormFieldGroupOptions, FormFieldInputs, FormFieldOptions, FormFieldSelectChoice, FormFieldSelectInputs, FormFieldSubscribers, FormGroupsConfig };
|