2016-06-08 22:36:24 +00:00
|
|
|
import {Type} from '@angular/core';
|
2016-06-08 23:38:52 +00:00
|
|
|
|
|
|
|
|
import {CheckboxControlValueAccessor} from './directives/checkbox_value_accessor';
|
|
|
|
|
import {DefaultValueAccessor} from './directives/default_value_accessor';
|
|
|
|
|
import {NgControlGroup} from './directives/ng_control_group';
|
2016-06-08 22:36:24 +00:00
|
|
|
import {NgControlName} from './directives/ng_control_name';
|
2016-06-08 23:38:52 +00:00
|
|
|
import {NgControlStatus} from './directives/ng_control_status';
|
|
|
|
|
import {NgForm} from './directives/ng_form';
|
|
|
|
|
import {NgModel} from './directives/ng_model';
|
2016-06-08 22:36:24 +00:00
|
|
|
import {NumberValueAccessor} from './directives/number_value_accessor';
|
|
|
|
|
import {RadioControlValueAccessor} from './directives/radio_control_value_accessor';
|
2016-06-11 02:10:17 +00:00
|
|
|
import {FormControlDirective} from './directives/reactive_directives/form_control_directive';
|
|
|
|
|
import {FormGroupDirective} from './directives/reactive_directives/form_group_directive';
|
2016-06-08 23:38:52 +00:00
|
|
|
import {NgSelectOption, SelectControlValueAccessor} from './directives/select_control_value_accessor';
|
|
|
|
|
import {NgSelectMultipleOption, SelectMultipleControlValueAccessor} from './directives/select_multiple_control_value_accessor';
|
|
|
|
|
import {MaxLengthValidator, MinLengthValidator, PatternValidator, RequiredValidator} from './directives/validators';
|
2016-06-08 22:36:24 +00:00
|
|
|
|
2016-06-08 23:38:52 +00:00
|
|
|
export {CheckboxControlValueAccessor} from './directives/checkbox_value_accessor';
|
|
|
|
|
export {ControlValueAccessor} from './directives/control_value_accessor';
|
|
|
|
|
export {DefaultValueAccessor} from './directives/default_value_accessor';
|
|
|
|
|
export {NgControl} from './directives/ng_control';
|
|
|
|
|
export {NgControlGroup} from './directives/ng_control_group';
|
2016-06-08 22:36:24 +00:00
|
|
|
export {NgControlName} from './directives/ng_control_name';
|
2016-06-08 23:38:52 +00:00
|
|
|
export {NgControlStatus} from './directives/ng_control_status';
|
|
|
|
|
export {NgForm} from './directives/ng_form';
|
|
|
|
|
export {NgModel} from './directives/ng_model';
|
2016-06-08 22:36:24 +00:00
|
|
|
export {NumberValueAccessor} from './directives/number_value_accessor';
|
2016-06-08 23:38:52 +00:00
|
|
|
export {RadioButtonState, RadioControlValueAccessor} from './directives/radio_control_value_accessor';
|
2016-06-11 02:10:17 +00:00
|
|
|
export {FormControlDirective} from './directives/reactive_directives/form_control_directive';
|
|
|
|
|
export {FormGroupDirective} from './directives/reactive_directives/form_group_directive';
|
2016-06-08 23:38:52 +00:00
|
|
|
export {NgSelectOption, SelectControlValueAccessor} from './directives/select_control_value_accessor';
|
|
|
|
|
export {NgSelectMultipleOption, SelectMultipleControlValueAccessor} from './directives/select_multiple_control_value_accessor';
|
|
|
|
|
export {MaxLengthValidator, MinLengthValidator, PatternValidator, RequiredValidator} from './directives/validators';
|
|
|
|
|
|
2016-06-08 22:36:24 +00:00
|
|
|
|
2016-06-11 00:28:19 +00:00
|
|
|
|
2016-06-08 22:36:24 +00:00
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* A list of all the form directives used as part of a `@Component` annotation.
|
|
|
|
|
*
|
|
|
|
|
* This is a shorthand for importing them each individually.
|
|
|
|
|
*
|
|
|
|
|
* ### Example
|
|
|
|
|
*
|
|
|
|
|
* ```typescript
|
|
|
|
|
* @Component({
|
|
|
|
|
* selector: 'my-app',
|
|
|
|
|
* directives: [FORM_DIRECTIVES]
|
|
|
|
|
* })
|
|
|
|
|
* class MyApp {}
|
|
|
|
|
* ```
|
|
|
|
|
* @experimental
|
|
|
|
|
*/
|
|
|
|
|
export const FORM_DIRECTIVES: Type[] = /*@ts2dart_const*/[
|
2016-06-08 23:38:52 +00:00
|
|
|
NgControlName, NgControlGroup,
|
2016-06-08 22:36:24 +00:00
|
|
|
|
2016-06-11 02:10:17 +00:00
|
|
|
NgModel, NgForm,
|
2016-06-08 22:36:24 +00:00
|
|
|
|
2016-06-08 23:38:52 +00:00
|
|
|
NgSelectOption, NgSelectMultipleOption, DefaultValueAccessor, NumberValueAccessor,
|
|
|
|
|
CheckboxControlValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor,
|
|
|
|
|
RadioControlValueAccessor, NgControlStatus,
|
2016-06-08 22:36:24 +00:00
|
|
|
|
2016-06-08 23:38:52 +00:00
|
|
|
RequiredValidator, MinLengthValidator, MaxLengthValidator, PatternValidator
|
2016-06-08 22:36:24 +00:00
|
|
|
];
|
2016-06-11 02:10:17 +00:00
|
|
|
|
|
|
|
|
export const REACTIVE_FORM_DIRECTIVES: Type[] =
|
|
|
|
|
/*@ts2dart_const*/[FormControlDirective, FormGroupDirective];
|