@sotoa-ui/dynamic-form 0.0.2 → 0.0.4
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
|
@@ -493,8 +493,8 @@ interface AcDynamicForm {
|
|
|
493
493
|
validations?: AcValidator[];
|
|
494
494
|
}
|
|
495
495
|
interface AcButton {
|
|
496
|
-
type:
|
|
497
|
-
matButtonType?:
|
|
496
|
+
type: AcButtonType;
|
|
497
|
+
matButtonType?: AcMaterialButtonType;
|
|
498
498
|
matIcon?: string;
|
|
499
499
|
className?: string;
|
|
500
500
|
label?: string;
|
|
@@ -511,7 +511,7 @@ interface AcDynamicFormModal {
|
|
|
511
511
|
initialObject?: any;
|
|
512
512
|
validations?: AcValidator[];
|
|
513
513
|
updateOn?: 'change' | 'blur' | 'submit';
|
|
514
|
-
buttons?:
|
|
514
|
+
buttons?: AcModalFormButton[];
|
|
515
515
|
className?: {
|
|
516
516
|
form?: string;
|
|
517
517
|
formContent?: string;
|
|
@@ -520,7 +520,7 @@ interface AcDynamicFormModal {
|
|
|
520
520
|
}
|
|
521
521
|
interface AcModalFormButton {
|
|
522
522
|
type: AcButtonType;
|
|
523
|
-
matButtonType?:
|
|
523
|
+
matButtonType?: AcMaterialButtonType;
|
|
524
524
|
matIcon?: string;
|
|
525
525
|
className?: string;
|
|
526
526
|
label?: string;
|
|
@@ -555,7 +555,7 @@ declare class ConditionsService {
|
|
|
555
555
|
static ɵprov: i0.ɵɵInjectableDeclaration<ConditionsService>;
|
|
556
556
|
}
|
|
557
557
|
|
|
558
|
-
declare class
|
|
558
|
+
declare class MaterialDynamicFormComponent {
|
|
559
559
|
private readonly dynamicFormService;
|
|
560
560
|
private readonly destroyRef;
|
|
561
561
|
config: InputSignal<AcDynamicForm | null>;
|
|
@@ -579,11 +579,25 @@ declare class AcMaterialDynamicFormComponent {
|
|
|
579
579
|
reset(): void;
|
|
580
580
|
handleSubmit(event?: Event): void;
|
|
581
581
|
focusFirstInvalidControl(): void;
|
|
582
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
583
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
582
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialDynamicFormComponent, never>;
|
|
583
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MaterialDynamicFormComponent, "sot-material-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>;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
declare class MaterialDynamicFormModalComponent implements OnInit {
|
|
587
|
+
private dialogRef;
|
|
588
|
+
private dynamicFormService;
|
|
589
|
+
data: AcDynamicFormModal;
|
|
590
|
+
status?: 'OK' | 'ERROR';
|
|
591
|
+
message?: string;
|
|
592
|
+
get form(): FormGroup | undefined;
|
|
593
|
+
constructor();
|
|
594
|
+
ngOnInit(): void;
|
|
595
|
+
onClickButton(button: AcModalFormButton): void;
|
|
596
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialDynamicFormModalComponent, never>;
|
|
597
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MaterialDynamicFormModalComponent, "ac-dynamic-form-modal", never, {}, {}, never, never, true, never>;
|
|
584
598
|
}
|
|
585
599
|
|
|
586
|
-
declare class
|
|
600
|
+
declare class DsfrDynamicFormComponent {
|
|
587
601
|
private readonly dynamicFormService;
|
|
588
602
|
private readonly destroyRef;
|
|
589
603
|
config: InputSignal<AcDynamicForm | null>;
|
|
@@ -607,11 +621,11 @@ declare class AcDsfrDynamicFormComponent {
|
|
|
607
621
|
reset(): void;
|
|
608
622
|
handleSubmit(event?: Event): void;
|
|
609
623
|
focusFirstInvalidControl(): void;
|
|
610
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
611
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
624
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DsfrDynamicFormComponent, never>;
|
|
625
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DsfrDynamicFormComponent, "sot-dsfr-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>;
|
|
612
626
|
}
|
|
613
627
|
|
|
614
|
-
declare class
|
|
628
|
+
declare class ClassicDynamicFormComponent {
|
|
615
629
|
private readonly dynamicFormService;
|
|
616
630
|
private readonly destroyRef;
|
|
617
631
|
config: InputSignal<AcDynamicForm | null>;
|
|
@@ -635,9 +649,9 @@ declare class AcClassicDynamicFormComponent {
|
|
|
635
649
|
reset(): void;
|
|
636
650
|
handleSubmit(event?: Event): void;
|
|
637
651
|
focusFirstInvalidControl(): void;
|
|
638
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
639
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
652
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClassicDynamicFormComponent, never>;
|
|
653
|
+
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>;
|
|
640
654
|
}
|
|
641
655
|
|
|
642
|
-
export { AbstractControlFieldComponent, AbstractFieldComponent,
|
|
656
|
+
export { AbstractControlFieldComponent, AbstractFieldComponent, AutocompleteAttribute, ClassicDynamicFormComponent, ConditionsService, DsfrDynamicFormComponent, DynamicFormService, MaterialDynamicFormComponent, MaterialDynamicFormModalComponent };
|
|
643
657
|
export type { AbstractControlConfig, AbstractFieldConfig, AcAffix, AcArrayConfig, AcBadgeOptions, AcButton, AcButtonType, AcControlConfig, AcDynamicForm, AcDynamicFormModal, AcField, AcFieldCheckboxConfig, AcFieldConfig, AcFieldCustomConfig, AcFieldInputConfig, AcFieldPasswordConfig, AcFieldRadioButtonConfig, AcFieldSelectConfig, AcFieldTextareaConfig, AcFieldToggleConfig, AcGroupConfig, AcMaterialButtonType, AcModalFormButton, AcModalFormResponse, AcRowConfig, AcTextConfig, AcValidator, DynamicFormData, MatIconConfig, PathArrayInstance, UpdateOnType };
|