@angular/forms 19.2.0-rc.0 → 19.2.1
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 +159 -175
- package/fesm2022/forms.mjs.map +1 -1
- package/index.d.ts +13 -20
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.2.
|
|
3
|
-
* (c) 2010-
|
|
2
|
+
* @license Angular v19.2.1
|
|
3
|
+
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -204,8 +204,6 @@ export declare abstract class AbstractControl<TValue = any, TRawValue extends TV
|
|
|
204
204
|
* accessing a value of a parent control (using the `value` property) from the callback of this
|
|
205
205
|
* event might result in getting a value that has not been updated yet. Subscribe to the
|
|
206
206
|
* `valueChanges` event of the parent control instead.
|
|
207
|
-
*
|
|
208
|
-
* TODO: this should be piped from events() but is breaking in G3
|
|
209
207
|
*/
|
|
210
208
|
readonly valueChanges: Observable<TValue>;
|
|
211
209
|
/**
|
|
@@ -214,8 +212,6 @@ export declare abstract class AbstractControl<TValue = any, TRawValue extends TV
|
|
|
214
212
|
*
|
|
215
213
|
* @see {@link FormControlStatus}
|
|
216
214
|
* @see {@link AbstractControl.status}
|
|
217
|
-
*
|
|
218
|
-
* TODO: this should be piped from events() but is breaking in G3
|
|
219
215
|
*/
|
|
220
216
|
readonly statusChanges: Observable<FormControlStatus>;
|
|
221
217
|
/**
|
|
@@ -1896,7 +1892,6 @@ export declare class FormArrayName extends ControlContainer implements OnInit, O
|
|
|
1896
1892
|
* Each index is the string name of the control on that level.
|
|
1897
1893
|
*/
|
|
1898
1894
|
get path(): string[];
|
|
1899
|
-
private _checkParentType;
|
|
1900
1895
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormArrayName, [{ optional: true; host: true; skipSelf: true; }, { optional: true; self: true; }, { optional: true; self: true; }]>;
|
|
1901
1896
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FormArrayName, "[formArrayName]", never, { "name": { "alias": "formArrayName"; "required": false; }; }, {}, never, never, false, never>;
|
|
1902
1897
|
}
|
|
@@ -2451,7 +2446,6 @@ export declare class FormControlName extends NgControl implements OnChanges, OnD
|
|
|
2451
2446
|
* The top-level directive for this group if present, otherwise null.
|
|
2452
2447
|
*/
|
|
2453
2448
|
get formDirective(): any;
|
|
2454
|
-
private _checkParentType;
|
|
2455
2449
|
private _setUpControl;
|
|
2456
2450
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlName, [{ optional: true; host: true; skipSelf: true; }, { optional: true; self: true; }, { optional: true; self: true; }, { optional: true; self: true; }, { optional: true; }]>;
|
|
2457
2451
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlName, "[formControlName]", never, { "name": { "alias": "formControlName"; "required": false; }; "isDisabled": { "alias": "disabled"; "required": false; }; "model": { "alias": "ngModel"; "required": false; }; }, { "update": "ngModelChange"; }, never, never, false, never>;
|
|
@@ -4155,7 +4149,6 @@ export declare class NgModel extends NgControl implements OnChanges, OnDestroy {
|
|
|
4155
4149
|
private _isStandalone;
|
|
4156
4150
|
private _setUpStandalone;
|
|
4157
4151
|
private _checkForErrors;
|
|
4158
|
-
private _checkParentType;
|
|
4159
4152
|
private _checkName;
|
|
4160
4153
|
private _updateValue;
|
|
4161
4154
|
private _updateDisabled;
|
|
@@ -4955,7 +4948,7 @@ export declare class Validators {
|
|
|
4955
4948
|
* @returns A validator function that returns an error map with the
|
|
4956
4949
|
* `min` property if the validation check fails, otherwise `null`.
|
|
4957
4950
|
*
|
|
4958
|
-
* @see {@link updateValueAndValidity
|
|
4951
|
+
* @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
|
|
4959
4952
|
*
|
|
4960
4953
|
*/
|
|
4961
4954
|
static min(min: number): ValidatorFn;
|
|
@@ -4976,7 +4969,7 @@ export declare class Validators {
|
|
|
4976
4969
|
* @returns A validator function that returns an error map with the
|
|
4977
4970
|
* `max` property if the validation check fails, otherwise `null`.
|
|
4978
4971
|
*
|
|
4979
|
-
* @see {@link updateValueAndValidity
|
|
4972
|
+
* @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
|
|
4980
4973
|
*
|
|
4981
4974
|
*/
|
|
4982
4975
|
static max(max: number): ValidatorFn;
|
|
@@ -4997,7 +4990,7 @@ export declare class Validators {
|
|
|
4997
4990
|
* @returns An error map with the `required` property
|
|
4998
4991
|
* if the validation check fails, otherwise `null`.
|
|
4999
4992
|
*
|
|
5000
|
-
* @see {@link updateValueAndValidity
|
|
4993
|
+
* @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
|
|
5001
4994
|
*
|
|
5002
4995
|
*/
|
|
5003
4996
|
static required(control: AbstractControl): ValidationErrors | null;
|
|
@@ -5019,7 +5012,7 @@ export declare class Validators {
|
|
|
5019
5012
|
* @returns An error map that contains the `required` property
|
|
5020
5013
|
* set to `true` if the validation check fails, otherwise `null`.
|
|
5021
5014
|
*
|
|
5022
|
-
* @see {@link updateValueAndValidity
|
|
5015
|
+
* @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
|
|
5023
5016
|
*
|
|
5024
5017
|
*/
|
|
5025
5018
|
static requiredTrue(control: AbstractControl): ValidationErrors | null;
|
|
@@ -5056,7 +5049,7 @@ export declare class Validators {
|
|
|
5056
5049
|
* @returns An error map with the `email` property
|
|
5057
5050
|
* if the validation check fails, otherwise `null`.
|
|
5058
5051
|
*
|
|
5059
|
-
* @see {@link updateValueAndValidity
|
|
5052
|
+
* @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
|
|
5060
5053
|
*
|
|
5061
5054
|
*/
|
|
5062
5055
|
static email(control: AbstractControl): ValidationErrors | null;
|
|
@@ -5088,7 +5081,7 @@ export declare class Validators {
|
|
|
5088
5081
|
* @returns A validator function that returns an error map with the
|
|
5089
5082
|
* `minlength` property if the validation check fails, otherwise `null`.
|
|
5090
5083
|
*
|
|
5091
|
-
* @see {@link updateValueAndValidity
|
|
5084
|
+
* @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
|
|
5092
5085
|
*
|
|
5093
5086
|
*/
|
|
5094
5087
|
static minLength(minLength: number): ValidatorFn;
|
|
@@ -5117,7 +5110,7 @@ export declare class Validators {
|
|
|
5117
5110
|
* @returns A validator function that returns an error map with the
|
|
5118
5111
|
* `maxlength` property if the validation check fails, otherwise `null`.
|
|
5119
5112
|
*
|
|
5120
|
-
* @see {@link updateValueAndValidity
|
|
5113
|
+
* @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
|
|
5121
5114
|
*
|
|
5122
5115
|
*/
|
|
5123
5116
|
static maxLength(maxLength: number): ValidatorFn;
|
|
@@ -5167,7 +5160,7 @@ export declare class Validators {
|
|
|
5167
5160
|
* @returns A validator function that returns an error map with the
|
|
5168
5161
|
* `pattern` property if the validation check fails, otherwise `null`.
|
|
5169
5162
|
*
|
|
5170
|
-
* @see {@link updateValueAndValidity
|
|
5163
|
+
* @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
|
|
5171
5164
|
*
|
|
5172
5165
|
*/
|
|
5173
5166
|
static pattern(pattern: string | RegExp): ValidatorFn;
|
|
@@ -5175,7 +5168,7 @@ export declare class Validators {
|
|
|
5175
5168
|
* @description
|
|
5176
5169
|
* Validator that performs no operation.
|
|
5177
5170
|
*
|
|
5178
|
-
* @see {@link updateValueAndValidity
|
|
5171
|
+
* @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
|
|
5179
5172
|
*
|
|
5180
5173
|
*/
|
|
5181
5174
|
static nullValidator(control: AbstractControl): ValidationErrors | null;
|
|
@@ -5187,7 +5180,7 @@ export declare class Validators {
|
|
|
5187
5180
|
* @returns A validator function that returns an error map with the
|
|
5188
5181
|
* merged error maps of the validators if the validation check fails, otherwise `null`.
|
|
5189
5182
|
*
|
|
5190
|
-
* @see {@link updateValueAndValidity
|
|
5183
|
+
* @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
|
|
5191
5184
|
*
|
|
5192
5185
|
*/
|
|
5193
5186
|
static compose(validators: null): null;
|
|
@@ -5200,7 +5193,7 @@ export declare class Validators {
|
|
|
5200
5193
|
* @returns A validator function that returns an error map with the
|
|
5201
5194
|
* merged error objects of the async validators if the validation check fails, otherwise `null`.
|
|
5202
5195
|
*
|
|
5203
|
-
* @see {@link updateValueAndValidity
|
|
5196
|
+
* @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
|
|
5204
5197
|
*
|
|
5205
5198
|
*/
|
|
5206
5199
|
static composeAsync(validators: (AsyncValidatorFn | null)[]): AsyncValidatorFn | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/forms",
|
|
3
|
-
"version": "19.2.
|
|
3
|
+
"version": "19.2.1",
|
|
4
4
|
"description": "Angular - directives and services for creating forms",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"tslib": "^2.3.0"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@angular/core": "19.2.
|
|
15
|
-
"@angular/common": "19.2.
|
|
16
|
-
"@angular/platform-browser": "19.2.
|
|
14
|
+
"@angular/core": "19.2.1",
|
|
15
|
+
"@angular/common": "19.2.1",
|
|
16
|
+
"@angular/platform-browser": "19.2.1",
|
|
17
17
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|