mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
refactor(forms): convert scripts within packages/forms to relative imports (#60624)
This commit updates scripts within `packages/forms` to relative imports as a prep work to the upcoming infra updates. PR Close #60624
This commit is contained in:
parent
3767429e9f
commit
be7c8d4fc6
11 changed files with 14 additions and 14 deletions
|
|
@ -30,9 +30,9 @@ import {
|
|||
ValidationErrors,
|
||||
Validator,
|
||||
Validators,
|
||||
} from '@angular/forms';
|
||||
import {selectValueAccessor} from '@angular/forms/src/directives/shared';
|
||||
import {composeValidators} from '@angular/forms/src/validators';
|
||||
} from '../index';
|
||||
import {selectValueAccessor} from '../src/directives/shared';
|
||||
import {composeValidators} from '../src/validators';
|
||||
|
||||
import {asyncValidator} from './util';
|
||||
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ import {
|
|||
FormGroup,
|
||||
ValidationErrors,
|
||||
ValidatorFn,
|
||||
} from '@angular/forms';
|
||||
import {Validators} from '@angular/forms/src/validators';
|
||||
} from '../index';
|
||||
import {Validators} from '../src/validators';
|
||||
import {of} from 'rxjs';
|
||||
|
||||
import {asyncValidator} from './util';
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import {
|
|||
ReactiveFormsModule,
|
||||
UntypedFormBuilder,
|
||||
Validators,
|
||||
} from '@angular/forms';
|
||||
} from '../index';
|
||||
import {of} from 'rxjs';
|
||||
|
||||
(function () {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import {fakeAsync, tick} from '@angular/core/testing';
|
||||
import {AsyncValidatorFn, FormArray, FormControl, FormGroup, Validators} from '@angular/forms';
|
||||
import {AsyncValidatorFn, FormArray, FormControl, FormGroup, Validators} from '../index';
|
||||
|
||||
import {asyncValidator, asyncValidatorReturningObservable} from './util';
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import {
|
|||
ValidationErrors,
|
||||
Validators,
|
||||
ValueChangeEvent,
|
||||
} from '@angular/forms';
|
||||
} from '../index';
|
||||
import {delay, filter, map, of, startWith, timer} from 'rxjs';
|
||||
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ import {
|
|||
ReactiveFormsModule,
|
||||
Validator,
|
||||
Validators,
|
||||
} from '@angular/forms';
|
||||
} from '../index';
|
||||
import {By} from '@angular/platform-browser/src/dom/debug/by';
|
||||
import {dispatchEvent, sortedClassList} from '@angular/platform-browser/testing/src/browser_util';
|
||||
import {expect} from '@angular/platform-browser/testing/src/matchers';
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import {
|
|||
NgForm,
|
||||
NgModel,
|
||||
Validator,
|
||||
} from '@angular/forms';
|
||||
} from '../index';
|
||||
import {By} from '@angular/platform-browser/src/dom/debug/by';
|
||||
import {dispatchEvent, sortedClassList} from '@angular/platform-browser/testing/src/browser_util';
|
||||
import {merge} from 'rxjs';
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// These tests mainly check the types of strongly typed form controls, which is generally enforced
|
||||
// at compile time.
|
||||
|
||||
import {ɵRawValue} from '@angular/forms';
|
||||
import {ɵRawValue} from '../index';
|
||||
import {FormBuilder, NonNullableFormBuilder, UntypedFormBuilder} from '../src/form_builder';
|
||||
import {
|
||||
AbstractControl,
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import {EventEmitter} from '@angular/core';
|
||||
import {AbstractControl, AsyncValidatorFn, ValidationErrors} from '@angular/forms';
|
||||
import {AbstractControl, AsyncValidatorFn, ValidationErrors} from '../index';
|
||||
import {of} from 'rxjs';
|
||||
|
||||
function createValidationPromise(
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import {
|
|||
ValidationErrors,
|
||||
ValidatorFn,
|
||||
Validators,
|
||||
} from '@angular/forms';
|
||||
} from '../index';
|
||||
import {Observable, of, timer} from 'rxjs';
|
||||
import {first, map} from 'rxjs/operators';
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import {
|
|||
NgModel,
|
||||
ReactiveFormsModule,
|
||||
Validators,
|
||||
} from '@angular/forms';
|
||||
} from '../index';
|
||||
import {By} from '@angular/platform-browser/src/dom/debug/by';
|
||||
import {dispatchEvent} from '@angular/platform-browser/testing/src/browser_util';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue