Skip to content
Permalink
Browse files

fix(forms): rename old forms folder to forms-deprecated

  • Loading branch information...
kara committed Jun 8, 2016
1 parent 45de65b commit 515a8e07654b745b60a9a12762081dbd0702a4fa
Showing with 64 additions and 64 deletions.
  1. +1 −1 modules/@angular/common/index.ts
  2. +1 −1 modules/@angular/common/src/common_directives.ts
  3. +58 −0 modules/@angular/common/src/forms-deprecated.ts
  4. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives.ts
  5. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/abstract_control_directive.ts
  6. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/checkbox_value_accessor.ts
  7. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/control_container.ts
  8. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/control_value_accessor.ts
  9. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/default_value_accessor.ts
  10. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/form_interface.ts
  11. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/ng_control.ts
  12. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/ng_control_group.ts
  13. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/ng_control_name.ts
  14. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/ng_control_status.ts
  15. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/ng_form.ts
  16. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/ng_form_control.ts
  17. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/ng_form_model.ts
  18. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/ng_model.ts
  19. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/normalize_validator.dart
  20. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/normalize_validator.ts
  21. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/number_value_accessor.ts
  22. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/radio_control_value_accessor.ts
  23. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/select_control_value_accessor.ts
  24. 0 ...ngular/common/src/{forms → forms-deprecated}/directives/select_multiple_control_value_accessor.ts
  25. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/shared.ts
  26. 0 modules/@angular/common/src/{forms → forms-deprecated}/directives/validators.ts
  27. 0 modules/@angular/common/src/{forms → forms-deprecated}/form_builder.ts
  28. 0 modules/@angular/common/src/{forms → forms-deprecated}/model.ts
  29. 0 modules/@angular/common/src/{forms → forms-deprecated}/validators.ts
  30. +0 −58 modules/@angular/common/src/forms.ts
  31. +1 −1 modules/@angular/common/test/{forms → forms-deprecated}/directives_spec.ts
  32. 0 modules/@angular/common/test/{forms → forms-deprecated}/form_builder_spec.ts
  33. 0 modules/@angular/common/test/{forms → forms-deprecated}/integration_spec.ts
  34. 0 modules/@angular/common/test/{forms → forms-deprecated}/model_spec.ts
  35. 0 modules/@angular/common/test/{forms → forms-deprecated}/validators_spec.ts
  36. +2 −2 modules/@angular/compiler-cli/test/static_reflector_spec.ts
  37. +1 −1 tools/cjs-jasmine/index.ts
@@ -1,5 +1,5 @@
export * from './src/pipes';
export * from './src/directives';
export * from './src/forms';
export * from './src/forms-deprecated';

This comment has been minimized.

Copy link
@Namek

Namek Jun 8, 2016

whaaaaaat, and i just learned it.

export * from './src/common_directives';
export * from './src/location';
@@ -1,5 +1,5 @@
import {Type} from '@angular/core';
import {FORM_DIRECTIVES} from './forms';
import {FORM_DIRECTIVES} from './forms-deprecated';
import {CORE_DIRECTIVES} from './directives';

/**
@@ -0,0 +1,58 @@
/**
* @module
* @description
* This module is used for handling user input, by defining and building a {@link ControlGroup} that
* consists of
* {@link Control} objects, and mapping them onto the DOM. {@link Control} objects can then be used
* to read information
* from the form DOM elements.
*
* Forms providers are not included in default providers; you must import these providers
* explicitly.
*/
export {AbstractControl, Control, ControlGroup, ControlArray} from './forms-deprecated/model';

export {AbstractControlDirective} from './forms-deprecated/directives/abstract_control_directive';
export {Form} from './forms-deprecated/directives/form_interface';
export {ControlContainer} from './forms-deprecated/directives/control_container';
export {NgControlName} from './forms-deprecated/directives/ng_control_name';
export {NgFormControl} from './forms-deprecated/directives/ng_form_control';
export {NgModel} from './forms-deprecated/directives/ng_model';
export {NgControl} from './forms-deprecated/directives/ng_control';
export {NgControlGroup} from './forms-deprecated/directives/ng_control_group';
export {NgFormModel} from './forms-deprecated/directives/ng_form_model';
export {NgForm} from './forms-deprecated/directives/ng_form';
export {ControlValueAccessor, NG_VALUE_ACCESSOR} from './forms-deprecated/directives/control_value_accessor';
export {DefaultValueAccessor} from './forms-deprecated/directives/default_value_accessor';
export {NgControlStatus} from './forms-deprecated/directives/ng_control_status';
export {CheckboxControlValueAccessor} from './forms-deprecated/directives/checkbox_value_accessor';
export {
NgSelectOption,
SelectControlValueAccessor
} from './forms-deprecated/directives/select_control_value_accessor';
export {FORM_DIRECTIVES, RadioButtonState} from './forms-deprecated/directives';
export {NG_VALIDATORS, NG_ASYNC_VALIDATORS, Validators} from './forms-deprecated/validators';
export {
RequiredValidator,
MinLengthValidator,
MaxLengthValidator,
PatternValidator,
Validator
} from './forms-deprecated/directives/validators';
export {FormBuilder} from './forms-deprecated/form_builder';
import {FormBuilder} from './forms-deprecated/form_builder';
import {RadioControlRegistry} from './forms-deprecated/directives/radio_control_value_accessor';
import {Type} from '@angular/core';

/**
* Shorthand set of providers used for building Angular forms.
*
* ### Example
*
* ```typescript
* bootstrap(MyApp, [FORM_PROVIDERS]);
* ```
*
* @experimental
*/
export const FORM_PROVIDERS: Type[] = /*@ts2dart_const*/[FormBuilder, RadioControlRegistry];

This file was deleted.

Oops, something went wrong.
@@ -38,7 +38,7 @@ import {
} from '@angular/common';


import {selectValueAccessor, composeValidators} from '@angular/common/src/forms/directives/shared';
import {selectValueAccessor, composeValidators} from '@angular/common/src/forms-deprecated/directives/shared';
import {TimerWrapper} from '../../src/facade/async';
import {PromiseWrapper} from '../../src/facade/promise';
import {SimpleChange} from '@angular/core/src/change_detection';
@@ -326,7 +326,7 @@ class MockReflectorHost implements StaticReflectorHost {

getMetadataFor(moduleId: string): any {
let data: {[key: string]: any} = {
'/tmp/angular2/src/common/forms/directives.d.ts': [{
'/tmp/angular2/src/common/forms-deprecated/directives.d.ts': [{
"__symbolic": "module",
"version": 1,
"metadata": {
@@ -424,7 +424,7 @@ class MockReflectorHost implements StaticReflectorHost {
{
"__symbolic": "reference",
"name": "FORM_DIRECTIVES",
"module": "angular2/src/common/forms/directives"
"module": "angular2/src/common/forms-deprecated/directives"
}
],
"animations": [{
@@ -41,7 +41,7 @@ var specFiles: any =
'@angular/platform-browser/**',
'@angular/core/test/zone/**',
'@angular/core/test/fake_async_spec.*',
'@angular/common/test/forms/**',
'@angular/common/test/forms-deprecated/**',
'@angular/router/test/route_config/route_config_spec.*',
'@angular/router/test/integration/bootstrap_spec.*',
'@angular/integration_test/symbol_inspector/**',

0 comments on commit 515a8e0

Please sign in to comment.
You can’t perform that action at this time.