angular_forms 2.0.0-beta+1
angular_forms: ^2.0.0-beta+1 copied to clipboard
Forms framework for AngularDart.
2.0.0-beta+1 #
- Maintenence release; declare official support for the Dart2 SDK.
2.0.0-beta #
- Maintenence release to bring into sync with
angular 5.0.0-beta.
2.0.0-alpha+7 #
New Features #
-
resetmethod added toAbstractControlandAbstractControlDirective. -
RequiredValidatornow has arequiredinput. This allows therequiredproperty to be toggled at runtime. Previously, this could only be set statically at compile time. -
Control.invalidgetter added.
Breaking Changes #
-
Remove deprecated
NG_VALUE_ACCESSORtoken. UsengValueAccessorinstead. -
Abstract
updateValuemethod added toAbstractControl. All subclasses ofAbstractControlwill need to implement this method.
2.0.0-alpha+6 #
- Maintenence release.
- The minimum SDK version is now
sdk: ">=2.0.0-dev.56.0 <2.0.0".
2.0.0-alpha+5 #
- Maintenence release.
- The minimum SDK version is now
sdk: ">=2.0.0-dev.55.0 <2.0.0".
2.0.0-alpha+4 #
New Features #
Control.markAsPristineadded. This will clear thedirtyproperty.
Breaking Changes #
-
NgControlNamewill no longer initialize withnullif a value is specified by 'ngModel'. -
The
touchedproperty ofControls is now propagated to parents / children.
Bug fixes #
- Add a not selector to ngForm for memorizedForm since memorized_form is now in angular_forms. This fixes the DIRECTIVE_EXPORTED_BY_AMBIGIOUS error when using: <form #form="ngForm" memorizedForm>
2.0.0-alpha+3 #
New Features #
- Add
ngDisabledinput to all Control directives.
Breaking Changes #
-
NgControlGroupcan no longer be injected directly. It can still be injected as aControlContainer. -
NgControlNameandNgFormControlcan no longer be injected directly. They can still be injected as aNgControl. -
CheckboxControlValueAccessor,DefaultValueAccessor,NumberValueAccessor,RadioControlValueAccessor, andNgSelectOptioncan no longer be injected directly.
2.0.0-alpha+2 #
Breaking Changes #
-
The minimum SDK version is now
sdk: ">=2.0.0-dev.46.0 <2.0.0". -
Add
ControlValueAccessor.onDisabledChanged()method. All implementations ofControlValueAccessorneed to add this method. -
Remove
includeandexcludemethods fromControlGroup. These can be replaced with calls tomarkAsEnabledandmarkAsDisabledinstead.Before:
controlGroup.include('foo');After:
controlGroup.controls['foo'].markAsEnabled(); -
CheckboxControlValueAccessornow implementsControlValueAccessor<bool>andRadioControlValueAccessornow implementsControlValueAccessor<RadioButtonState>. Previously, they were bothControlValueAccessor<dynamic>.
2.0.0-alpha+1 #
New Features #
-
Add
MemorizedFormdirective. This is a form that will not remove controls if the control is taken out of the view, for example with a [NgIf]. -
Add
disabledstate toAbstractControlmodels. Note: This is not yet supported in the template-driven directives.
Breaking Changes #
- Remove
optionalsparam fromControlGroupconstructor. This will soon be replaced bydisabledstate for allControls. See https://github.com/dart-lang/angular/issues/1037 for more details.
2.0.0-alpha #
NOTE: This used to be 1.0.1-alpha, but has changed to be 2.0.0-alpha due
to the fact that there are breaking changes in the previous dev releases. Future
development releases are moving to 2.x.x, and a 1.0.1 will never be
released.
Breaking changes #
AbstractControl.findnow only accepts a String. To supply a list, useAbstractControl.findPathinstead. Also, forfindorfindPath,ControlArrayindex is now callingint.parseinstead of expecting a raw number.
1.0.1-alpha+7 #
Breaking changes #
-
The following directives are no longer injectable:
NgControlStatusRequiredValidatorMinLengthValidatorMaxLengthValidatorPatternValidator
-
Properly typed the generic parameter on subclasses of
AbstractControlDirective. Now,NgControl.controlwill return aControl, andControlContainer.controlwill return aControlGroup. There may be some unnecessary casts that can now be cleaned up. -
FormBuilderinstance methodsgroup,control, andarrayhave been removed. ForFormBuilder.control, just callnew Control(value, validator)directly. ForFormBuilder.groupandFormBuilder.array, use the static methodsFormBuilder.controlGroupandFormBuilder.controlArray, respectively.FormBuilderis no longerInjectable.
1.0.1-alpha+6 #
New features #
- Add
markAsUntouchedmethod toAbstractControl. - Add a type annotation,
T, toAbstractControl, which is tied to the type ofvalue. ControlGroupnowextends AbstractControl<Map<String, dynamic>>.ControlArraynowextends AbstractControl<List>.
Breaking Changes #
- Changed type of
AbstractControl.statusChangesfromStream<dynamic>toStream<String>. This now matches the type forAbstractControl.status, which as always been aString.
Deprecations #
FormBuilderinstance methodsgroup,control, andarrayare now deprecated. ForFormBuilder.control, just callnew Control(value, validator)directly. ForFormBuilder.groupandFormBuilder.array, use the static methodsFormBuilder.controlGroupandFormBuilder.controlArrayrespectively. In a future release,FormBuilderwill not not beInjectable.
1.0.1-alpha+5 #
Maintenance release, to support the latest package:angular alpha.
1.0.1-alpha+4 #
Maintenance release, to support the latest package:angular alpha.
1.0.1-alpha+3 #
- Some documentation updates.
- Dartium is no longer supported.
1.0.1-alpha+2 #
Maintenance release, to support the latest package:angular alpha.
1.0.1-alpha+1 #
- Use the new generic function syntax, stop using
package:func. - Don't throw a null pointer exception in NgFormModel if a directives asks for a Control value before the form is initialized.
1.0.1-alpha #
- Support breaking changes in angular 5.0.0-alpha
- Allow expressions for maxlength/minlength validators. Breaking change does
not support string values for maxlength/minlength anymore.
minlength="12"now should be written[minlength]="12"
1.0.0 #
- Support for angular 4.0.0.
0.1.0 #
- Initial commit of
angular_forms.