@sotoa-ui/dynamic-form 0.0.13 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Type, OnInit, DestroyRef,
|
|
3
|
-
import { ValidatorFn, AsyncValidatorFn,
|
|
2
|
+
import { Type, InputSignal, OnInit, DestroyRef, OutputEmitterRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { FormGroup, ValidatorFn, AsyncValidatorFn, ControlValueAccessor, FormControl, FormArray, AbstractControl } from '@angular/forms';
|
|
4
4
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
5
5
|
import { MatBadgePosition, MatBadgeSize } from '@angular/material/badge';
|
|
6
|
-
import { SeparatorKey } from '@angular/material/chips';
|
|
6
|
+
import { SeparatorKey, MatChipInputEvent } from '@angular/material/chips';
|
|
7
7
|
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
8
8
|
import { MatButtonAppearance } from '@angular/material/button';
|
|
9
9
|
import { MatStepper, StepperOrientation } from '@angular/material/stepper';
|
|
10
|
+
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
11
|
+
import { LiveAnnouncer } from '@angular/cdk/a11y';
|
|
10
12
|
|
|
11
13
|
interface AcCondition {
|
|
12
14
|
type: 'condition';
|
|
@@ -198,8 +200,10 @@ declare enum AutocompleteAttribute {
|
|
|
198
200
|
Impp = "impp"
|
|
199
201
|
}
|
|
200
202
|
|
|
201
|
-
interface
|
|
202
|
-
|
|
203
|
+
interface AcAffix {
|
|
204
|
+
label?: string;
|
|
205
|
+
action?: (field: AcFieldConfig, group: FormGroup, datas?: DynamicFormData) => void;
|
|
206
|
+
actionAriaLabel?: string;
|
|
203
207
|
}
|
|
204
208
|
|
|
205
209
|
interface AcValidator {
|
|
@@ -214,86 +218,7 @@ interface AbstractControlConfig extends AbstractFieldConfig {
|
|
|
214
218
|
value?: any;
|
|
215
219
|
disabled?: boolean;
|
|
216
220
|
validations?: AcValidator[];
|
|
217
|
-
onValueChanges?: (value: any,
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
interface AcGroupConfig extends AbstractControlConfig {
|
|
221
|
-
type: 'group';
|
|
222
|
-
fields: (AcFieldConfig | AcTextConfig)[];
|
|
223
|
-
accordion?: boolean;
|
|
224
|
-
opened?: boolean;
|
|
225
|
-
description?: string;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
interface AcArrayConfig extends AbstractControlConfig {
|
|
229
|
-
type: "array";
|
|
230
|
-
field: AcGroupConfig;
|
|
231
|
-
itemLabel?: string;
|
|
232
|
-
description?: string;
|
|
233
|
-
accordion?: boolean;
|
|
234
|
-
opened?: boolean;
|
|
235
|
-
elementClassName?: string | string[];
|
|
236
|
-
elementContentClassName?: string | string[];
|
|
237
|
-
minNbRow?: number;
|
|
238
|
-
maxNbRow?: number;
|
|
239
|
-
addButton?: {
|
|
240
|
-
label?: string;
|
|
241
|
-
matIcon?: string;
|
|
242
|
-
title?: string;
|
|
243
|
-
};
|
|
244
|
-
deleteButton?: {
|
|
245
|
-
label?: string;
|
|
246
|
-
matIcon?: string;
|
|
247
|
-
title?: string;
|
|
248
|
-
};
|
|
249
|
-
instances?: {
|
|
250
|
-
number: number;
|
|
251
|
-
group: FormGroup;
|
|
252
|
-
fields: (AcFieldConfig | AcTextConfig)[];
|
|
253
|
-
}[];
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
interface AcRowConfig extends AbstractFieldConfig {
|
|
257
|
-
type: 'row';
|
|
258
|
-
fields: (AcFieldConfig | AcTextConfig)[];
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
interface StepConfig extends AbstractFieldConfig {
|
|
262
|
-
type: "step";
|
|
263
|
-
elementClassName?: string | string[];
|
|
264
|
-
disabled?: boolean;
|
|
265
|
-
fields: (AcFieldConfig | AcTextConfig)[];
|
|
266
|
-
errorMessage?: string;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
type AcFieldConfig = AcControlConfig | AcGroupConfig | AcArrayConfig | AcRowConfig;
|
|
270
|
-
type DynamicFormData = {
|
|
271
|
-
fields: AbstractFieldConfig[] | StepConfig[];
|
|
272
|
-
updateOn: UpdateOnType;
|
|
273
|
-
idPathMap: Map<string, InstancePath[]>;
|
|
274
|
-
pathFieldMap: Map<string, FormField>;
|
|
275
|
-
};
|
|
276
|
-
type InstancePath = {
|
|
277
|
-
instance: string | null;
|
|
278
|
-
path: string;
|
|
279
|
-
};
|
|
280
|
-
type FormField = {
|
|
281
|
-
config: AcFieldConfig | AcTextConfig | StepConfig;
|
|
282
|
-
control: FormControl | FormGroup | FormArray | null;
|
|
283
|
-
};
|
|
284
|
-
type PathArrayInstance = {
|
|
285
|
-
path: string;
|
|
286
|
-
arrayCode: string;
|
|
287
|
-
arrayInstance: number;
|
|
288
|
-
};
|
|
289
|
-
type PathFieldMap = Map<string, FormField>;
|
|
290
|
-
type IdPathMap = Map<string, string[]>;
|
|
291
|
-
type UpdateOnType = "change" | "blur" | "submit" | undefined;
|
|
292
|
-
|
|
293
|
-
interface AcAffix {
|
|
294
|
-
label?: string;
|
|
295
|
-
action?: (field: AcFieldConfig, group: FormGroup, datas: DynamicFormData) => void;
|
|
296
|
-
actionAriaLabel?: string;
|
|
221
|
+
onValueChanges?: (value: any, group: FormGroup, datas?: DynamicFormData, instancePath?: string) => void;
|
|
297
222
|
}
|
|
298
223
|
|
|
299
224
|
interface AcFieldInputConfig extends AbstractControlConfig {
|
|
@@ -431,7 +356,7 @@ interface AcFieldToggleConfig extends AbstractControlConfig {
|
|
|
431
356
|
|
|
432
357
|
interface AcFieldPasswordConfig extends AbstractControlConfig {
|
|
433
358
|
type: 'password';
|
|
434
|
-
minlength
|
|
359
|
+
minlength?: number;
|
|
435
360
|
maxlength?: number;
|
|
436
361
|
autocomplete?: AutocompleteAttribute;
|
|
437
362
|
requiresDigit?: boolean;
|
|
@@ -481,41 +406,97 @@ interface AcFieldChipsConfig extends AbstractControlConfig {
|
|
|
481
406
|
|
|
482
407
|
type AcControlConfig = AcFieldCheckboxConfig | AcFieldInputConfig | AcFieldDateConfig | AcFieldTextareaConfig | AcFieldSelectConfig | AcFieldAutocompleteConfig | AcFieldRadioButtonConfig | AcFieldFileConfig | AcFieldToggleConfig | AcFieldPasswordConfig | AcFieldCustomConfig<any> | AcFieldChipsConfig;
|
|
483
408
|
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
409
|
+
interface AcTextConfig extends AbstractFieldConfig {
|
|
410
|
+
type: 'text';
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
interface AcGroupConfig extends AbstractControlConfig {
|
|
414
|
+
type: 'group';
|
|
415
|
+
fields: (AcFieldConfig | AcTextConfig)[];
|
|
416
|
+
accordion?: boolean;
|
|
417
|
+
opened?: boolean;
|
|
418
|
+
description?: string;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
interface AcArrayConfig extends AbstractControlConfig {
|
|
422
|
+
type: "array";
|
|
423
|
+
field: AcGroupConfig;
|
|
424
|
+
itemLabel?: string;
|
|
425
|
+
description?: string;
|
|
426
|
+
accordion?: boolean;
|
|
427
|
+
opened?: boolean;
|
|
428
|
+
elementClassName?: string | string[];
|
|
429
|
+
elementContentClassName?: string | string[];
|
|
430
|
+
minNbRow?: number;
|
|
431
|
+
maxNbRow?: number;
|
|
432
|
+
addButton?: {
|
|
433
|
+
label?: string;
|
|
434
|
+
matIcon?: string;
|
|
435
|
+
title?: string;
|
|
436
|
+
};
|
|
437
|
+
deleteButton?: {
|
|
438
|
+
label?: string;
|
|
439
|
+
matIcon?: string;
|
|
440
|
+
title?: string;
|
|
441
|
+
};
|
|
442
|
+
instances?: {
|
|
443
|
+
number: number;
|
|
444
|
+
group: FormGroup;
|
|
445
|
+
fields: (AcFieldConfig | AcTextConfig)[];
|
|
498
446
|
}[];
|
|
499
|
-
createForm(fields: (AcFieldConfig | AcTextConfig)[], validations: AcValidator[] | undefined, updateOn: UpdateOnType, initialValues: any): void;
|
|
500
|
-
createFormStepper(steps: StepConfig[], validations: AcValidator[] | undefined, updateOn: UpdateOnType, initialValues: any): void;
|
|
501
|
-
setCondition(): void;
|
|
502
|
-
createGroup(fields: (AcFieldConfig | AcTextConfig)[], parentPath: string | null, instance: string | null, initialValues: any): FormGroup<{}>;
|
|
503
|
-
treatField(config: AcFieldConfig | AcTextConfig, group: FormGroup, parentPath: string | null, instance: string | null, initialValues: any): void;
|
|
504
|
-
createGroupField(groupConfig: AcGroupConfig, parentPath: string | null, instance: string | null, initialValues: any): FormGroup<any>;
|
|
505
|
-
createArrayInstance(arrayConfig: AcArrayConfig, arrayPath: string, instanceNumber: number, initialValues: any): FormGroup;
|
|
506
|
-
createArray(arrayConfig: AcArrayConfig, parentPath: string | null, instance: string | null, initialValues: any): FormArray;
|
|
507
|
-
setFormFieldMapItem(instance: string | null, path: string, config: AcFieldConfig | AcTextConfig | StepConfig, control: FormControl | FormGroup | FormArray | null): void;
|
|
508
|
-
createControl(config: AcControlConfig, initialValues: any): FormControl<any>;
|
|
509
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormService, never>;
|
|
510
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicFormService>;
|
|
511
447
|
}
|
|
512
448
|
|
|
513
|
-
|
|
449
|
+
interface AcRowConfig extends AbstractFieldConfig {
|
|
450
|
+
type: 'row';
|
|
451
|
+
fields: (AcFieldConfig | AcTextConfig)[];
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
interface StepConfig extends AbstractFieldConfig {
|
|
455
|
+
type: "step";
|
|
456
|
+
elementClassName?: string | string[];
|
|
457
|
+
disabled?: boolean;
|
|
458
|
+
fields: (AcFieldConfig | AcTextConfig)[];
|
|
459
|
+
errorMessage?: string;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
type AcFieldConfig = AcControlConfig | AcGroupConfig | AcArrayConfig | AcRowConfig;
|
|
463
|
+
type DynamicFormData = {
|
|
464
|
+
fields: AbstractFieldConfig[] | StepConfig[];
|
|
465
|
+
updateOn: UpdateOnType;
|
|
466
|
+
idPathMap: Map<string, InstancePath[]>;
|
|
467
|
+
pathFieldMap: Map<string, FormField>;
|
|
468
|
+
};
|
|
469
|
+
type InstancePath = {
|
|
470
|
+
instance: string | null;
|
|
471
|
+
path: string;
|
|
472
|
+
};
|
|
473
|
+
type FormField = {
|
|
474
|
+
config: AcFieldConfig | AcTextConfig | StepConfig;
|
|
475
|
+
control: FormControl | FormGroup | FormArray | null;
|
|
476
|
+
};
|
|
477
|
+
type PathArrayInstance = {
|
|
478
|
+
path: string;
|
|
479
|
+
arrayCode: string;
|
|
480
|
+
arrayInstance: number;
|
|
481
|
+
};
|
|
482
|
+
type PathFieldMap = Map<string, FormField>;
|
|
483
|
+
type IdPathMap = Map<string, string[]>;
|
|
484
|
+
type UpdateOnType = "change" | "blur" | "submit" | undefined;
|
|
485
|
+
|
|
486
|
+
interface AcField {
|
|
487
|
+
field: InputSignal<any>;
|
|
488
|
+
group: InputSignal<FormGroup>;
|
|
514
489
|
path: string;
|
|
515
|
-
field: T;
|
|
516
|
-
group: FormGroup;
|
|
517
490
|
instancePath?: string;
|
|
518
|
-
|
|
491
|
+
data?: DynamicFormData;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
declare class AbstractFieldComponent<T extends AbstractFieldConfig> implements AcField {
|
|
495
|
+
field: InputSignal<T>;
|
|
496
|
+
group: InputSignal<FormGroup>;
|
|
497
|
+
path: string;
|
|
498
|
+
instancePath?: string;
|
|
499
|
+
data?: DynamicFormData;
|
|
519
500
|
get control(): AbstractControl<any, any> | null;
|
|
520
501
|
get required(): boolean | undefined;
|
|
521
502
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFieldComponent<any>, never>;
|
|
@@ -610,11 +591,33 @@ interface AcDynamicFormStepper {
|
|
|
610
591
|
onValueChanges?: (formGroup: FormGroup, step: StepConfig[]) => void;
|
|
611
592
|
}
|
|
612
593
|
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
594
|
+
declare class DynamicFormService {
|
|
595
|
+
private readonly fb;
|
|
596
|
+
private readonly conditionsService;
|
|
597
|
+
private readonly destroyRef;
|
|
598
|
+
private readonly separator;
|
|
599
|
+
data?: DynamicFormData;
|
|
600
|
+
form?: FormGroup;
|
|
601
|
+
displayConditions: {
|
|
602
|
+
fieldId: string;
|
|
603
|
+
condition: AcCondition | AcExpression;
|
|
604
|
+
}[];
|
|
605
|
+
validationConditions: {
|
|
606
|
+
fieldId: string;
|
|
607
|
+
validation: AcValidator;
|
|
608
|
+
}[];
|
|
609
|
+
createForm(fields: (AcFieldConfig | AcTextConfig)[], validations: AcValidator[] | undefined, updateOn: UpdateOnType, initialValues: any): void;
|
|
610
|
+
createFormStepper(steps: StepConfig[], validations: AcValidator[] | undefined, updateOn: UpdateOnType, initialValues: any): void;
|
|
611
|
+
setCondition(): void;
|
|
612
|
+
createGroup(fields: (AcFieldConfig | AcTextConfig)[], parentPath: string | null, instance: string | null, initialValues: any): FormGroup<{}>;
|
|
613
|
+
treatField(config: AcFieldConfig | AcTextConfig, group: FormGroup, parentPath: string | null, instance: string | null, initialValues: any): void;
|
|
614
|
+
createGroupField(groupConfig: AcGroupConfig, parentPath: string | null, instance: string | null, initialValues: any): FormGroup<any>;
|
|
615
|
+
createArrayInstance(arrayConfig: AcArrayConfig, arrayPath: string, instanceNumber: number, initialValues: any): FormGroup;
|
|
616
|
+
createArray(arrayConfig: AcArrayConfig, parentPath: string | null, instance: string | null, initialValues: any): FormArray;
|
|
617
|
+
setFormFieldMapItem(instance: string | null, path: string, config: AcFieldConfig | AcTextConfig | StepConfig, control: FormControl | FormGroup | FormArray | null): void;
|
|
618
|
+
createControl(config: AcControlConfig, initialValues: any): FormControl<any>;
|
|
619
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormService, never>;
|
|
620
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicFormService>;
|
|
618
621
|
}
|
|
619
622
|
|
|
620
623
|
declare class ConditionsService {
|
|
@@ -694,6 +697,7 @@ declare class MaterialDynamicFormComponent {
|
|
|
694
697
|
formChange: OutputEmitterRef<FormGroup>;
|
|
695
698
|
formInit: OutputEmitterRef<FormGroup>;
|
|
696
699
|
get form(): FormGroup | undefined;
|
|
700
|
+
get data(): DynamicFormData | undefined;
|
|
697
701
|
get controls(): {
|
|
698
702
|
[key: string]: AbstractControl;
|
|
699
703
|
} | null;
|
|
@@ -714,12 +718,13 @@ declare class MaterialDynamicFormComponent {
|
|
|
714
718
|
}
|
|
715
719
|
|
|
716
720
|
declare class MaterialDynamicFormModalComponent implements OnInit {
|
|
717
|
-
private dialogRef;
|
|
718
|
-
private dynamicFormService;
|
|
721
|
+
private readonly dialogRef;
|
|
722
|
+
private readonly dynamicFormService;
|
|
719
723
|
data: MaterialDynamicFormModal;
|
|
720
724
|
status?: 'OK' | 'ERROR';
|
|
721
725
|
message?: string;
|
|
722
726
|
get form(): FormGroup | undefined;
|
|
727
|
+
get formData(): DynamicFormData | undefined;
|
|
723
728
|
constructor();
|
|
724
729
|
ngOnInit(): void;
|
|
725
730
|
onClickButton(button: AcModalFormButton): void;
|
|
@@ -727,11 +732,11 @@ declare class MaterialDynamicFormModalComponent implements OnInit {
|
|
|
727
732
|
static ɵcmp: i0.ɵɵComponentDeclaration<MaterialDynamicFormModalComponent, "ac-dynamic-form-modal", never, {}, {}, never, never, true, never>;
|
|
728
733
|
}
|
|
729
734
|
|
|
730
|
-
declare class
|
|
731
|
-
private dynamicFormService;
|
|
732
|
-
private destroyRef;
|
|
733
|
-
private cdr;
|
|
734
|
-
private breakpointObserver;
|
|
735
|
+
declare class MaterialDynamicFormStepperComponent implements OnInit, OnChanges {
|
|
736
|
+
private readonly dynamicFormService;
|
|
737
|
+
private readonly destroyRef;
|
|
738
|
+
private readonly cdr;
|
|
739
|
+
private readonly breakpointObserver;
|
|
735
740
|
stepper: MatStepper;
|
|
736
741
|
config: InputSignal<MaterialDynamicFormStepper>;
|
|
737
742
|
initialValues: InputSignal<any>;
|
|
@@ -740,6 +745,7 @@ declare class AcDynamicFormStepperComponent implements OnInit, OnChanges {
|
|
|
740
745
|
formChange: OutputEmitterRef<FormGroup>;
|
|
741
746
|
stepperOrientation: BehaviorSubject<StepperOrientation>;
|
|
742
747
|
get form(): FormGroup | undefined;
|
|
748
|
+
get data(): DynamicFormData | undefined;
|
|
743
749
|
get controls(): {
|
|
744
750
|
[key: string]: AbstractControl;
|
|
745
751
|
} | null;
|
|
@@ -755,8 +761,128 @@ declare class AcDynamicFormStepperComponent implements OnInit, OnChanges {
|
|
|
755
761
|
}): void;
|
|
756
762
|
onClickButton(button: AcStepperFormButton): void;
|
|
757
763
|
reset(): void;
|
|
758
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
759
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
764
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialDynamicFormStepperComponent, never>;
|
|
765
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MaterialDynamicFormStepperComponent, "sot-material-dynamic-form-stepper", ["dynamicFormStepper"], { "config": { "alias": "config"; "required": true; "isSignal": true; }; "initialValues": { "alias": "initialValues"; "required": false; "isSignal": true; }; }, { "formCancel": "formCancel"; "formSubmit": "formSubmit"; "formChange": "formChange"; }, never, never, true, never>;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
declare class AcFieldCheckboxComponent extends AbstractControlFieldComponent<AcFieldCheckboxConfig> {
|
|
769
|
+
field: InputSignal<AcFieldCheckboxConfig>;
|
|
770
|
+
group: InputSignal<FormGroup>;
|
|
771
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AcFieldCheckboxComponent, never>;
|
|
772
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AcFieldCheckboxComponent, "sot-mat-field-checkbox", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "group": { "alias": "group"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
declare class MatFieldChipsComponent extends AbstractControlFieldComponent<MatFieldChipsConfig> implements OnInit {
|
|
776
|
+
field: InputSignal<MatFieldChipsConfig>;
|
|
777
|
+
group: InputSignal<FormGroup>;
|
|
778
|
+
inputType: string;
|
|
779
|
+
readonly separatorKeysCodes: number[];
|
|
780
|
+
readonly announcer: LiveAnnouncer;
|
|
781
|
+
options: string[];
|
|
782
|
+
readonly currentOption: i0.ModelSignal<string>;
|
|
783
|
+
readonly values: i0.WritableSignal<string[]>;
|
|
784
|
+
readonly filteredOptions: i0.Signal<string[]>;
|
|
785
|
+
constructor();
|
|
786
|
+
buttonAction(b: AcAffix): void;
|
|
787
|
+
ngOnInit(): void;
|
|
788
|
+
add(event: MatChipInputEvent): void;
|
|
789
|
+
remove(option: string): void;
|
|
790
|
+
selected(event: MatAutocompleteSelectedEvent): void;
|
|
791
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatFieldChipsComponent, never>;
|
|
792
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatFieldChipsComponent, "sot-mat-field-chips", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "group": { "alias": "group"; "required": true; "isSignal": true; }; "currentOption": { "alias": "currentOption"; "required": false; "isSignal": true; }; }, { "currentOption": "currentOptionChange"; }, never, never, true, never>;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
declare class MatFieldCustomComponent extends AbstractControlFieldComponent<AcFieldCustomConfig<any>> {
|
|
796
|
+
field: InputSignal<AcFieldCustomConfig<any>>;
|
|
797
|
+
group: InputSignal<FormGroup>;
|
|
798
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatFieldCustomComponent, never>;
|
|
799
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatFieldCustomComponent, "ac-mat-field-custom", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "group": { "alias": "group"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
declare class MatFieldDateComponent extends AbstractControlFieldComponent<MatFieldDateConfig> {
|
|
803
|
+
field: InputSignal<MatFieldDateConfig>;
|
|
804
|
+
group: InputSignal<FormGroup>;
|
|
805
|
+
private readonly _adapter;
|
|
806
|
+
private readonly _intl;
|
|
807
|
+
dateFormatString: string;
|
|
808
|
+
locale: string;
|
|
809
|
+
ngOnInit(): void;
|
|
810
|
+
buttonAction(b: AcAffix): void;
|
|
811
|
+
filterDate: (d: Date | null) => boolean;
|
|
812
|
+
updateCloseButtonLabel(): void;
|
|
813
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatFieldDateComponent, never>;
|
|
814
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatFieldDateComponent, "sot-field-date", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "group": { "alias": "group"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
declare class MatFieldFileComponent extends AbstractControlFieldComponent<AcFieldFileConfig> {
|
|
818
|
+
field: InputSignal<AcFieldFileConfig>;
|
|
819
|
+
group: InputSignal<FormGroup>;
|
|
820
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatFieldFileComponent, never>;
|
|
821
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatFieldFileComponent, "sot-mat-field-file", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "group": { "alias": "group"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
declare class MatFieldInputComponent extends AbstractControlFieldComponent<MatFieldInputConfig> implements OnInit {
|
|
825
|
+
field: InputSignal<MatFieldInputConfig>;
|
|
826
|
+
group: InputSignal<FormGroup>;
|
|
827
|
+
inputType: string;
|
|
828
|
+
buttonAction(b: AcAffix): void;
|
|
829
|
+
ngOnInit(): void;
|
|
830
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatFieldInputComponent, never>;
|
|
831
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatFieldInputComponent, "sot-mat-field-input", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "group": { "alias": "group"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
declare class MatFieldPasswordComponent extends AbstractControlFieldComponent<MatFieldPasswordConfig> implements OnInit {
|
|
835
|
+
field: InputSignal<MatFieldPasswordConfig>;
|
|
836
|
+
group: InputSignal<FormGroup>;
|
|
837
|
+
inputType: string;
|
|
838
|
+
showPasswordLabel?: string;
|
|
839
|
+
hidePasswordLabel?: string;
|
|
840
|
+
iconErrorLabel?: string;
|
|
841
|
+
iconSuccessLabel?: string;
|
|
842
|
+
buttonAction(b: AcAffix): void;
|
|
843
|
+
ngOnInit(): void;
|
|
844
|
+
tooglePassword(): void;
|
|
845
|
+
get minLengthValid(): any;
|
|
846
|
+
get maxLengthValid(): any;
|
|
847
|
+
get requiresDigitValid(): any;
|
|
848
|
+
get requiresUppercaseValid(): any;
|
|
849
|
+
get requiresLowercaseValid(): any;
|
|
850
|
+
get requiresSpecialCharsValid(): any;
|
|
851
|
+
private setPasswordValidators;
|
|
852
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatFieldPasswordComponent, never>;
|
|
853
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatFieldPasswordComponent, "sot-mat-field-password", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "group": { "alias": "group"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
declare class MatFieldRadioButtonComponent extends AbstractControlFieldComponent<AcFieldRadioButtonConfig> {
|
|
857
|
+
field: InputSignal<AcFieldRadioButtonConfig>;
|
|
858
|
+
group: InputSignal<FormGroup>;
|
|
859
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatFieldRadioButtonComponent, never>;
|
|
860
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatFieldRadioButtonComponent, "sot-mat-field-radio-button", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "group": { "alias": "group"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
declare class MatFieldSelectComponent extends AbstractControlFieldComponent<MatFieldSelectConfig> {
|
|
864
|
+
field: InputSignal<MatFieldSelectConfig>;
|
|
865
|
+
group: InputSignal<FormGroup>;
|
|
866
|
+
options: any[];
|
|
867
|
+
ngOnInit(): void;
|
|
868
|
+
buttonAction(b: AcAffix): void;
|
|
869
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatFieldSelectComponent, never>;
|
|
870
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatFieldSelectComponent, "sot-mat-field-select", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "group": { "alias": "group"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
declare class MatFieldTextareaComponent extends AbstractControlFieldComponent<MatFieldTextareaConfig> {
|
|
874
|
+
field: InputSignal<MatFieldTextareaConfig>;
|
|
875
|
+
group: InputSignal<FormGroup>;
|
|
876
|
+
buttonAction(b: AcAffix): void;
|
|
877
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatFieldTextareaComponent, never>;
|
|
878
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatFieldTextareaComponent, "sot-mat-field-textarea", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "group": { "alias": "group"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
declare class MatFieldToggleComponent extends AbstractControlFieldComponent<AcFieldToggleConfig> {
|
|
882
|
+
field: InputSignal<AcFieldToggleConfig>;
|
|
883
|
+
group: InputSignal<FormGroup>;
|
|
884
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatFieldToggleComponent, never>;
|
|
885
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatFieldToggleComponent, "sot-mat-field-toggle", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "group": { "alias": "group"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
760
886
|
}
|
|
761
887
|
|
|
762
888
|
declare class DsfrDynamicFormComponent {
|
|
@@ -815,5 +941,5 @@ declare class ClassicDynamicFormComponent {
|
|
|
815
941
|
static ɵcmp: i0.ɵɵComponentDeclaration<ClassicDynamicFormComponent, "sot-classic-dynamic-form", ["dynamicForm"], { "config": { "alias": "config"; "required": true; "isSignal": true; }; "initialValues": { "alias": "initialValues"; "required": false; "isSignal": true; }; }, { "formCancel": "formCancel"; "formSubmit": "formSubmit"; "formChange": "formChange"; }, never, never, true, never>;
|
|
816
942
|
}
|
|
817
943
|
|
|
818
|
-
export { AbstractControlFieldComponent, AbstractFieldComponent, AcCustomComponentField,
|
|
944
|
+
export { AbstractControlFieldComponent, AbstractFieldComponent, AcCustomComponentField, AcFieldCheckboxComponent, AutocompleteAttribute, ClassicDynamicFormComponent, ConditionsService, DsfrDynamicFormComponent, DynamicFormService, MatFieldChipsComponent, MatFieldCustomComponent, MatFieldDateComponent, MatFieldFileComponent, MatFieldInputComponent, MatFieldPasswordComponent, MatFieldRadioButtonComponent, MatFieldSelectComponent, MatFieldTextareaComponent, MatFieldToggleComponent, MaterialDynamicFormComponent, MaterialDynamicFormModalComponent, MaterialDynamicFormStepperComponent };
|
|
819
945
|
export type { AbstractControlConfig, AbstractFieldConfig, AcAffix, AcArrayConfig, AcBadgeOptions, AcButtonType, AcControlConfig, AcDynamicForm, AcDynamicFormModal, AcDynamicFormStepper, AcField, AcFieldCheckboxConfig, AcFieldChipsConfig, AcFieldConfig, AcFieldCustomConfig, AcFieldDateConfig, AcFieldFileConfig, AcFieldInputConfig, AcFieldPasswordConfig, AcFieldRadioButtonConfig, AcFieldSelectConfig, AcFieldTextareaConfig, AcFieldToggleConfig, AcFormButton, AcGroupConfig, AcMaterialButtonType, AcModalFormButton, AcModalFormResponse, AcRowConfig, AcStepperFormButton, AcTextConfig, AcValidator, ConfirmDialogData, DynamicFormData, FormField, IdPathMap, InstancePath, MatFieldChipsConfig, MatFieldDateConfig, MatFieldInputConfig, MatFieldPasswordConfig, MatFieldSelectConfig, MatFieldTextareaConfig, MatFormButton, MatIconConfig, MatModalFormButton, MatStepConfig, MaterialControlConfig, MaterialDynamicForm, MaterialDynamicFormModal, MaterialDynamicFormStepper, MaterialFieldConfig, MaterialStepperFormButton, PathArrayInstance, PathFieldMap, StepConfig, UpdateOnType };
|