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:
Andrew Kushnir 2025-03-28 21:39:33 -07:00 committed by Jessica Janiuk
parent 3767429e9f
commit be7c8d4fc6
11 changed files with 14 additions and 14 deletions

View file

@ -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';

View file

@ -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';

View file

@ -13,7 +13,7 @@ import {
ReactiveFormsModule,
UntypedFormBuilder,
Validators,
} from '@angular/forms';
} from '../index';
import {of} from 'rxjs';
(function () {

View file

@ -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';

View file

@ -17,7 +17,7 @@ import {
ValidationErrors,
Validators,
ValueChangeEvent,
} from '@angular/forms';
} from '../index';
import {delay, filter, map, of, startWith, timer} from 'rxjs';
import {

View file

@ -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';

View file

@ -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';

View file

@ -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,

View file

@ -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(

View file

@ -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';

View file

@ -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';