@angular/forms 19.2.0-next.1 → 19.2.0-next.2
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 +171 -150
- package/fesm2022/forms.mjs.map +1 -1
- package/index.d.ts +12 -10
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.2.0-next.
|
|
2
|
+
* @license Angular v19.2.0-next.2
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -5063,13 +5063,14 @@ export declare class Validators {
|
|
|
5063
5063
|
static email(control: AbstractControl): ValidationErrors | null;
|
|
5064
5064
|
/**
|
|
5065
5065
|
* @description
|
|
5066
|
-
* Validator that requires the
|
|
5067
|
-
* to the provided minimum length. This validator is also provided by default if you use
|
|
5066
|
+
* Validator that requires the number of items in the control's value to be greater than or equal
|
|
5067
|
+
* to the provided minimum length. This validator is also provided by default if you use
|
|
5068
5068
|
* the HTML5 `minlength` attribute. Note that the `minLength` validator is intended to be used
|
|
5069
|
-
* only for types that have a numeric `length` property, such as strings
|
|
5070
|
-
* `minLength` validator logic is also not invoked for values when their `length`
|
|
5071
|
-
* (for example in case of an empty string or an empty array), to support
|
|
5072
|
-
* can use the standard `required` validator if empty values should not be
|
|
5069
|
+
* only for types that have a numeric `length` or `size` property, such as strings, arrays or
|
|
5070
|
+
* sets. The `minLength` validator logic is also not invoked for values when their `length` or
|
|
5071
|
+
* `size` property is 0 (for example in case of an empty string or an empty array), to support
|
|
5072
|
+
* optional controls. You can use the standard `required` validator if empty values should not be
|
|
5073
|
+
* considered valid.
|
|
5073
5074
|
*
|
|
5074
5075
|
* @usageNotes
|
|
5075
5076
|
*
|
|
@@ -5094,10 +5095,11 @@ export declare class Validators {
|
|
|
5094
5095
|
static minLength(minLength: number): ValidatorFn;
|
|
5095
5096
|
/**
|
|
5096
5097
|
* @description
|
|
5097
|
-
* Validator that requires the
|
|
5098
|
-
* to the provided maximum length. This validator is also provided by default if you use
|
|
5098
|
+
* Validator that requires the number of items in the control's value to be less than or equal
|
|
5099
|
+
* to the provided maximum length. This validator is also provided by default if you use
|
|
5099
5100
|
* the HTML5 `maxlength` attribute. Note that the `maxLength` validator is intended to be used
|
|
5100
|
-
* only for types that have a numeric `length` property, such as strings or
|
|
5101
|
+
* only for types that have a numeric `length` or `size` property, such as strings, arrays or
|
|
5102
|
+
* sets.
|
|
5101
5103
|
*
|
|
5102
5104
|
* @usageNotes
|
|
5103
5105
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/forms",
|
|
3
|
-
"version": "19.2.0-next.
|
|
3
|
+
"version": "19.2.0-next.2",
|
|
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.0-next.
|
|
15
|
-
"@angular/common": "19.2.0-next.
|
|
16
|
-
"@angular/platform-browser": "19.2.0-next.
|
|
14
|
+
"@angular/core": "19.2.0-next.2",
|
|
15
|
+
"@angular/common": "19.2.0-next.2",
|
|
16
|
+
"@angular/platform-browser": "19.2.0-next.2",
|
|
17
17
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|