@angular/forms 20.0.0-next.4 → 20.0.0-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/forms.mjs +142 -140
- package/fesm2022/forms.mjs.map +1 -1
- package/index.d.ts +21 -4
- package/package.json +5 -5
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.0.0-next.
|
|
2
|
+
* @license Angular v20.0.0-next.6
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -2461,6 +2461,19 @@ declare abstract class AbstractControl<TValue = any, TRawValue extends TValue =
|
|
|
2461
2461
|
onlySelf?: boolean;
|
|
2462
2462
|
emitEvent?: boolean;
|
|
2463
2463
|
}): void;
|
|
2464
|
+
/**
|
|
2465
|
+
* Marks the control and all its descendant controls as `dirty`.
|
|
2466
|
+
* @see {@link markAsDirty()}
|
|
2467
|
+
*
|
|
2468
|
+
* @param opts Configuration options that determine how the control propagates changes
|
|
2469
|
+
* and emits events after marking is applied.
|
|
2470
|
+
* * `emitEvent`: When true or not supplied (the default), the `events`
|
|
2471
|
+
* observable emits a `PristineChangeEvent` with the `pristine` property being `false`.
|
|
2472
|
+
* When false, no events are emitted.
|
|
2473
|
+
*/
|
|
2474
|
+
markAllAsDirty(opts?: {
|
|
2475
|
+
emitEvent?: boolean;
|
|
2476
|
+
}): void;
|
|
2464
2477
|
/**
|
|
2465
2478
|
* Marks the control and all its descendant controls as `touched`.
|
|
2466
2479
|
* @see {@link markAsTouched()}
|
|
@@ -3874,9 +3887,12 @@ declare class FormGroupDirective extends ControlContainer implements Form, OnCha
|
|
|
3874
3887
|
* @description
|
|
3875
3888
|
* Resets the form to an initial value and resets its submitted status.
|
|
3876
3889
|
*
|
|
3877
|
-
* @param value The new value for the form
|
|
3890
|
+
* @param value The new value for the form, `undefined` by default
|
|
3878
3891
|
*/
|
|
3879
|
-
resetForm(value?: any
|
|
3892
|
+
resetForm(value?: any, options?: {
|
|
3893
|
+
onlySelf?: boolean;
|
|
3894
|
+
emitEvent?: boolean;
|
|
3895
|
+
}): void;
|
|
3880
3896
|
private _setUpFormContainer;
|
|
3881
3897
|
private _cleanUpFormContainer;
|
|
3882
3898
|
private _updateRegistrations;
|
|
@@ -5212,4 +5228,5 @@ declare class ReactiveFormsModule {
|
|
|
5212
5228
|
static ɵinj: i0.ɵɵInjectorDeclaration<ReactiveFormsModule>;
|
|
5213
5229
|
}
|
|
5214
5230
|
|
|
5215
|
-
export { AbstractControl, AbstractControlDirective,
|
|
5231
|
+
export { AbstractControl, AbstractControlDirective, AbstractFormGroupDirective, COMPOSITION_BUFFER_MODE, CheckboxControlValueAccessor, CheckboxRequiredValidator, ControlContainer, ControlEvent, DefaultValueAccessor, EmailValidator, FormArray, FormArrayName, FormBuilder, FormControl, FormControlDirective, FormControlName, FormGroup, FormGroupDirective, FormGroupName, FormRecord, FormResetEvent, FormSubmittedEvent, FormsModule, MaxLengthValidator, MaxValidator, MinLengthValidator, MinValidator, NG_ASYNC_VALIDATORS, NG_VALIDATORS, NG_VALUE_ACCESSOR, NgControl, NgControlStatus, NgControlStatusGroup, NgForm, NgModel, NgModelGroup, NgSelectOption, NonNullableFormBuilder, NumberValueAccessor, PatternValidator, PristineChangeEvent, RadioControlValueAccessor, RangeValueAccessor, ReactiveFormsModule, RequiredValidator, SelectControlValueAccessor, SelectMultipleControlValueAccessor, StatusChangeEvent, TouchedChangeEvent, UntypedFormArray, UntypedFormBuilder, UntypedFormControl, UntypedFormGroup, VERSION, Validators, ValueChangeEvent, isFormArray, isFormControl, isFormGroup, isFormRecord, ɵInternalFormsSharedModule, ɵNgNoValidate, ɵNgSelectMultipleOption };
|
|
5232
|
+
export type { AbstractControlOptions, AsyncValidator, AsyncValidatorFn, ControlConfig, ControlValueAccessor, Form, FormControlOptions, FormControlState, FormControlStatus, SetDisabledStateOption, ValidationErrors, Validator, ValidatorFn, ɵCoerceStrArrToNumArr, ɵElement, ɵFormArrayRawValue, ɵFormArrayValue, ɵFormControlCtor, ɵFormGroupRawValue, ɵFormGroupValue, ɵGetProperty, ɵNavigate, ɵOptionalKeys, ɵRawValue, ɵTokenize, ɵTypedOrUntyped, ɵValue, ɵWriteable };
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/forms",
|
|
3
|
-
"version": "20.0.0-next.
|
|
3
|
+
"version": "20.0.0-next.6",
|
|
4
4
|
"description": "Angular - directives and services for creating forms",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": "^
|
|
8
|
+
"node": "^20.11.1 || >=22.11.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"tslib": "^2.3.0"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@angular/core": "20.0.0-next.
|
|
15
|
-
"@angular/common": "20.0.0-next.
|
|
16
|
-
"@angular/platform-browser": "20.0.0-next.
|
|
14
|
+
"@angular/core": "20.0.0-next.6",
|
|
15
|
+
"@angular/common": "20.0.0-next.6",
|
|
16
|
+
"@angular/platform-browser": "20.0.0-next.6",
|
|
17
17
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|