@angular/forms 16.0.0-next.6 → 16.0.0-rc.0
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/esm2022/src/directives/abstract_form_group_directive.mjs +3 -3
- package/esm2022/src/directives/checkbox_value_accessor.mjs +3 -3
- package/esm2022/src/directives/control_value_accessor.mjs +6 -6
- package/esm2022/src/directives/default_value_accessor.mjs +3 -3
- package/esm2022/src/directives/ng_control_status.mjs +6 -6
- package/esm2022/src/directives/ng_form.mjs +3 -3
- package/esm2022/src/directives/ng_model.mjs +3 -3
- package/esm2022/src/directives/ng_model_group.mjs +3 -3
- package/esm2022/src/directives/ng_no_validate_directive.mjs +3 -3
- package/esm2022/src/directives/number_value_accessor.mjs +3 -3
- package/esm2022/src/directives/radio_control_value_accessor.mjs +10 -10
- package/esm2022/src/directives/range_value_accessor.mjs +3 -3
- package/esm2022/src/directives/reactive_directives/form_control_directive.mjs +3 -3
- package/esm2022/src/directives/reactive_directives/form_control_name.mjs +3 -3
- package/esm2022/src/directives/reactive_directives/form_group_directive.mjs +3 -3
- package/esm2022/src/directives/reactive_directives/form_group_name.mjs +6 -6
- package/esm2022/src/directives/select_control_value_accessor.mjs +6 -6
- package/esm2022/src/directives/select_multiple_control_value_accessor.mjs +6 -6
- package/esm2022/src/directives/validators.mjs +28 -28
- package/esm2022/src/directives.mjs +4 -4
- package/esm2022/src/form_builder.mjs +10 -10
- package/esm2022/src/form_providers.mjs +8 -8
- package/esm2022/src/version.mjs +1 -1
- package/fesm2022/forms.mjs +126 -126
- package/fesm2022/forms.mjs.map +1 -1
- package/index.d.ts +3 -13
- package/package.json +5 -5
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.0.0-
|
|
2
|
+
* @license Angular v16.0.0-rc.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -4675,10 +4675,6 @@ declare const SHARED_FORM_DIRECTIVES: Type<any>[];
|
|
|
4675
4675
|
|
|
4676
4676
|
declare const TEMPLATE_DRIVEN_DIRECTIVES: Type<any>[];
|
|
4677
4677
|
|
|
4678
|
-
declare interface UnsafeValidatorFn {
|
|
4679
|
-
(control: AbstractControl): ValidationErrors | null;
|
|
4680
|
-
}
|
|
4681
|
-
|
|
4682
4678
|
/**
|
|
4683
4679
|
* UntypedFormArray is a non-strongly-typed version of `FormArray`, which
|
|
4684
4680
|
* permits heterogenous controls.
|
|
@@ -4820,23 +4816,17 @@ export declare interface Validator {
|
|
|
4820
4816
|
/**
|
|
4821
4817
|
* The union of all validator types that can be accepted by a ControlConfig.
|
|
4822
4818
|
*/
|
|
4823
|
-
declare type ValidatorConfig =
|
|
4819
|
+
declare type ValidatorConfig = ValidatorFn | AsyncValidatorFn | ValidatorFn[] | AsyncValidatorFn[];
|
|
4824
4820
|
|
|
4825
4821
|
/**
|
|
4826
4822
|
* @description
|
|
4827
4823
|
* A function that receives a control and synchronously returns a map of
|
|
4828
4824
|
* validation errors if present, otherwise null.
|
|
4829
4825
|
*
|
|
4830
|
-
* Error objects with a `then` key or a `subscribe` key are not valid.
|
|
4831
|
-
* They describe an async validator returning respectively a Promise or an Observable.
|
|
4832
|
-
*
|
|
4833
4826
|
* @publicApi
|
|
4834
4827
|
*/
|
|
4835
4828
|
export declare interface ValidatorFn {
|
|
4836
|
-
(control: AbstractControl):
|
|
4837
|
-
then?: never;
|
|
4838
|
-
subscribe?: never;
|
|
4839
|
-
}) | null;
|
|
4829
|
+
(control: AbstractControl): ValidationErrors | null;
|
|
4840
4830
|
}
|
|
4841
4831
|
|
|
4842
4832
|
/**
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/forms",
|
|
3
|
-
"version": "16.0.0-
|
|
3
|
+
"version": "16.0.0-rc.0",
|
|
4
4
|
"description": "Angular - directives and services for creating forms",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": "^16.
|
|
8
|
+
"node": "^16.14.0 || >=18.10.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"tslib": "^2.3.0"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@angular/core": "16.0.0-
|
|
15
|
-
"@angular/common": "16.0.0-
|
|
16
|
-
"@angular/platform-browser": "16.0.0-
|
|
14
|
+
"@angular/core": "16.0.0-rc.0",
|
|
15
|
+
"@angular/common": "16.0.0-rc.0",
|
|
16
|
+
"@angular/platform-browser": "16.0.0-rc.0",
|
|
17
17
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|