-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: - Updated the peerDependencies for Angular 12 Change: - Extracted an interface of the FormBuilderComponent to remove a cyclic dependency. BREAKING CHANGE: - Dropped support for Angular <10.0.0
- Loading branch information
Showing
7 changed files
with
40 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import {AbstractGroupType, IGroupTypeOptions} from '../form-type/abstract-group-type'; | ||
import {FormModel} from '../form-type/abstract-type'; | ||
import {EventEmitter, QueryList} from '@angular/core'; | ||
import {FormSlotDirective} from '../form-slot/form-slot.directive'; | ||
import {FormGroup} from './form-group'; | ||
import {FormArray} from './form-array'; | ||
import {ValidationErrors} from '@angular/forms'; | ||
|
||
export interface IFormBuilder<T extends { [key: string]: any } = {}> { | ||
fieldType: AbstractGroupType<IGroupTypeOptions<T>, T>; | ||
mwFormModel: FormModel<T>; | ||
mwFormData: T; | ||
mwFormSubmit: EventEmitter<T>; | ||
mwSlots: QueryList<FormSlotDirective>; | ||
group: FormGroup; | ||
readonly valid: boolean; | ||
readonly invalid: boolean; | ||
|
||
rebuildForm(): void; | ||
|
||
submit(): T; | ||
|
||
getErrors(group?: FormGroup | FormArray): { [key: string]: ValidationErrors } | ValidationErrors[] | null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export * from './form-array'; | ||
export * from './form-builder'; | ||
export * from './form-control'; | ||
export * from './form-group'; | ||
export * from './init-handler'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters