2016-04-28 17:50:03 -07:00
|
|
|
import {Type} from '@angular/core';
|
2015-06-10 13:51:44 -07:00
|
|
|
import {NgControlName} from './directives/ng_control_name';
|
|
|
|
|
import {NgFormControl} from './directives/ng_form_control';
|
|
|
|
|
import {NgModel} from './directives/ng_model';
|
|
|
|
|
import {NgControlGroup} from './directives/ng_control_group';
|
|
|
|
|
import {NgFormModel} from './directives/ng_form_model';
|
|
|
|
|
import {NgForm} from './directives/ng_form';
|
2015-05-30 11:56:00 -07:00
|
|
|
import {DefaultValueAccessor} from './directives/default_value_accessor';
|
|
|
|
|
import {CheckboxControlValueAccessor} from './directives/checkbox_value_accessor';
|
2015-10-15 11:38:34 -07:00
|
|
|
import {NumberValueAccessor} from './directives/number_value_accessor';
|
2016-02-05 16:08:53 -08:00
|
|
|
import {RadioControlValueAccessor} from './directives/radio_control_value_accessor';
|
2015-09-29 11:19:06 -07:00
|
|
|
import {NgControlStatus} from './directives/ng_control_status';
|
2016-04-12 09:40:37 -07:00
|
|
|
import {
|
|
|
|
|
SelectControlValueAccessor,
|
|
|
|
|
NgSelectOption
|
|
|
|
|
} from './directives/select_control_value_accessor';
|
2016-05-26 15:01:49 -04:00
|
|
|
import {
|
|
|
|
|
SelectMultipleControlValueAccessor,
|
|
|
|
|
NgSelectMultipleOption
|
|
|
|
|
} from './directives/select_multiple_control_value_accessor';
|
2016-04-12 09:40:37 -07:00
|
|
|
import {
|
|
|
|
|
RequiredValidator,
|
|
|
|
|
MinLengthValidator,
|
|
|
|
|
MaxLengthValidator,
|
|
|
|
|
PatternValidator
|
|
|
|
|
} from './directives/validators';
|
2015-02-03 07:27:09 -08:00
|
|
|
|
2015-06-10 13:51:44 -07:00
|
|
|
export {NgControlName} from './directives/ng_control_name';
|
|
|
|
|
export {NgFormControl} from './directives/ng_form_control';
|
|
|
|
|
export {NgModel} from './directives/ng_model';
|
|
|
|
|
export {NgControlGroup} from './directives/ng_control_group';
|
|
|
|
|
export {NgFormModel} from './directives/ng_form_model';
|
|
|
|
|
export {NgForm} from './directives/ng_form';
|
2015-05-30 11:56:00 -07:00
|
|
|
export {DefaultValueAccessor} from './directives/default_value_accessor';
|
|
|
|
|
export {CheckboxControlValueAccessor} from './directives/checkbox_value_accessor';
|
2016-04-12 09:40:37 -07:00
|
|
|
export {
|
|
|
|
|
RadioControlValueAccessor,
|
|
|
|
|
RadioButtonState
|
|
|
|
|
} from './directives/radio_control_value_accessor';
|
2015-10-28 07:26:58 -07:00
|
|
|
export {NumberValueAccessor} from './directives/number_value_accessor';
|
|
|
|
|
export {NgControlStatus} from './directives/ng_control_status';
|
2016-04-12 09:40:37 -07:00
|
|
|
export {
|
|
|
|
|
SelectControlValueAccessor,
|
|
|
|
|
NgSelectOption
|
|
|
|
|
} from './directives/select_control_value_accessor';
|
2016-05-26 15:01:49 -04:00
|
|
|
export {
|
|
|
|
|
SelectMultipleControlValueAccessor,
|
|
|
|
|
NgSelectMultipleOption
|
|
|
|
|
} from './directives/select_multiple_control_value_accessor';
|
2016-04-12 09:40:37 -07:00
|
|
|
export {
|
|
|
|
|
RequiredValidator,
|
|
|
|
|
MinLengthValidator,
|
|
|
|
|
MaxLengthValidator,
|
|
|
|
|
PatternValidator
|
|
|
|
|
} from './directives/validators';
|
2015-10-28 07:26:58 -07:00
|
|
|
export {NgControl} from './directives/ng_control';
|
|
|
|
|
export {ControlValueAccessor} from './directives/control_value_accessor';
|
2015-05-20 18:10:30 -07:00
|
|
|
|
2015-03-31 22:47:11 +00:00
|
|
|
/**
|
2015-04-10 11:15:01 -07:00
|
|
|
*
|
2016-03-08 13:36:48 -08:00
|
|
|
* A list of all the form directives used as part of a `@Component` annotation.
|
2015-04-10 11:15:01 -07:00
|
|
|
*
|
|
|
|
|
* This is a shorthand for importing them each individually.
|
2015-09-24 15:03:16 -07:00
|
|
|
*
|
2015-10-19 15:37:32 +01:00
|
|
|
* ### Example
|
2015-09-24 15:03:16 -07:00
|
|
|
*
|
|
|
|
|
* ```typescript
|
|
|
|
|
* @Component({
|
2015-10-11 07:41:19 -07:00
|
|
|
* selector: 'my-app',
|
|
|
|
|
* directives: [FORM_DIRECTIVES]
|
2015-09-24 15:03:16 -07:00
|
|
|
* })
|
|
|
|
|
* class MyApp {}
|
|
|
|
|
* ```
|
2016-05-27 11:24:05 -07:00
|
|
|
* @experimental
|
2015-03-31 22:47:11 +00:00
|
|
|
*/
|
2016-04-25 21:47:33 -07:00
|
|
|
export const FORM_DIRECTIVES: Type[] = /*@ts2dart_const*/[
|
2016-04-12 09:40:37 -07:00
|
|
|
NgControlName,
|
|
|
|
|
NgControlGroup,
|
2015-05-30 11:56:00 -07:00
|
|
|
|
2016-04-12 09:40:37 -07:00
|
|
|
NgFormControl,
|
|
|
|
|
NgModel,
|
|
|
|
|
NgFormModel,
|
|
|
|
|
NgForm,
|
2015-05-30 11:56:00 -07:00
|
|
|
|
2016-04-12 09:40:37 -07:00
|
|
|
NgSelectOption,
|
2016-05-26 15:01:49 -04:00
|
|
|
NgSelectMultipleOption,
|
2016-04-12 09:40:37 -07:00
|
|
|
DefaultValueAccessor,
|
|
|
|
|
NumberValueAccessor,
|
|
|
|
|
CheckboxControlValueAccessor,
|
|
|
|
|
SelectControlValueAccessor,
|
2016-05-26 15:01:49 -04:00
|
|
|
SelectMultipleControlValueAccessor,
|
2016-04-12 09:40:37 -07:00
|
|
|
RadioControlValueAccessor,
|
|
|
|
|
NgControlStatus,
|
2015-06-05 14:31:03 -07:00
|
|
|
|
2016-04-12 09:40:37 -07:00
|
|
|
RequiredValidator,
|
|
|
|
|
MinLengthValidator,
|
|
|
|
|
MaxLengthValidator,
|
|
|
|
|
PatternValidator
|
2016-04-25 21:47:33 -07:00
|
|
|
];
|