@angular/forms 14.2.0-next.1 → 14.2.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/esm2020/src/directives/abstract_form_group_directive.mjs +3 -3
- package/esm2020/src/directives/checkbox_value_accessor.mjs +3 -3
- package/esm2020/src/directives/control_value_accessor.mjs +6 -6
- package/esm2020/src/directives/default_value_accessor.mjs +3 -3
- package/esm2020/src/directives/ng_control_status.mjs +6 -6
- package/esm2020/src/directives/ng_form.mjs +3 -3
- package/esm2020/src/directives/ng_model.mjs +3 -3
- package/esm2020/src/directives/ng_model_group.mjs +3 -3
- package/esm2020/src/directives/ng_no_validate_directive.mjs +3 -3
- package/esm2020/src/directives/number_value_accessor.mjs +3 -3
- package/esm2020/src/directives/radio_control_value_accessor.mjs +10 -10
- package/esm2020/src/directives/range_value_accessor.mjs +3 -3
- package/esm2020/src/directives/reactive_directives/form_control_directive.mjs +3 -3
- package/esm2020/src/directives/reactive_directives/form_control_name.mjs +3 -3
- package/esm2020/src/directives/reactive_directives/form_group_directive.mjs +3 -3
- package/esm2020/src/directives/reactive_directives/form_group_name.mjs +6 -6
- package/esm2020/src/directives/select_control_value_accessor.mjs +6 -6
- package/esm2020/src/directives/select_multiple_control_value_accessor.mjs +6 -6
- package/esm2020/src/directives/validators.mjs +27 -27
- package/esm2020/src/directives.mjs +4 -4
- package/esm2020/src/form_builder.mjs +10 -10
- package/esm2020/src/form_providers.mjs +8 -8
- package/esm2020/src/version.mjs +1 -1
- package/fesm2015/forms.mjs +126 -126
- package/fesm2015/forms.mjs.map +1 -1
- package/fesm2020/forms.mjs +126 -126
- package/fesm2020/forms.mjs.map +1 -1
- package/index.d.ts +17 -4
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.2.0-
|
|
2
|
+
* @license Angular v14.2.0-rc.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -4231,6 +4231,16 @@ export declare class PatternValidator extends AbstractValidatorDirective {
|
|
|
4231
4231
|
static ɵdir: i0.ɵɵDirectiveDeclaration<PatternValidator, "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", never, { "pattern": "pattern"; }, {}, never, never, false>;
|
|
4232
4232
|
}
|
|
4233
4233
|
|
|
4234
|
+
/**
|
|
4235
|
+
* The compiler may not always be able to prove that the elements of the control config are a tuple
|
|
4236
|
+
* (i.e. occur in a fixed order). This slightly looser type is used for inference, to catch cases
|
|
4237
|
+
* where the compiler cannot prove order and position.
|
|
4238
|
+
*
|
|
4239
|
+
* For example, consider the simple case `fb.group({foo: ['bar', Validators.required]})`. The
|
|
4240
|
+
* compiler will infer this as an array, not as a tuple.
|
|
4241
|
+
*/
|
|
4242
|
+
declare type PermissiveControlConfig<T> = Array<T | FormControlState<T> | ValidatorConfig>;
|
|
4243
|
+
|
|
4234
4244
|
declare const RADIO_VALUE_ACCESSOR: any;
|
|
4235
4245
|
|
|
4236
4246
|
/**
|
|
@@ -4743,6 +4753,11 @@ export declare interface Validator {
|
|
|
4743
4753
|
registerOnValidatorChange?(fn: () => void): void;
|
|
4744
4754
|
}
|
|
4745
4755
|
|
|
4756
|
+
/**
|
|
4757
|
+
* The union of all validator types that can be accepted by a ControlConfig.
|
|
4758
|
+
*/
|
|
4759
|
+
declare type ValidatorConfig = ValidatorFn | AsyncValidatorFn | ValidatorFn[] | AsyncValidatorFn[];
|
|
4760
|
+
|
|
4746
4761
|
/**
|
|
4747
4762
|
* @description
|
|
4748
4763
|
* A function that receives a control and synchronously returns a map of
|
|
@@ -5078,9 +5093,7 @@ T
|
|
|
5078
5093
|
T
|
|
5079
5094
|
] extends [FormControlState<infer U>] ? FormControl<U | N> : [
|
|
5080
5095
|
T
|
|
5081
|
-
] extends [
|
|
5082
|
-
T
|
|
5083
|
-
] extends [Array<infer U | ValidatorFn | ValidatorFn[] | AsyncValidatorFn | AsyncValidatorFn[]>] ? FormControl<U | N> : FormControl<T | N>;
|
|
5096
|
+
] extends [PermissiveControlConfig<infer U>] ? FormControl<Exclude<U, ValidatorConfig> | N> : FormControl<T | N>;
|
|
5084
5097
|
|
|
5085
5098
|
/**
|
|
5086
5099
|
* FormArrayRawValue extracts the type of `.getRawValue()` from a FormArray's element type, and
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/forms",
|
|
3
|
-
"version": "14.2.0-
|
|
3
|
+
"version": "14.2.0-rc.0",
|
|
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": "14.2.0-
|
|
15
|
-
"@angular/common": "14.2.0-
|
|
16
|
-
"@angular/platform-browser": "14.2.0-
|
|
14
|
+
"@angular/core": "14.2.0-rc.0",
|
|
15
|
+
"@angular/common": "14.2.0-rc.0",
|
|
16
|
+
"@angular/platform-browser": "14.2.0-rc.0",
|
|
17
17
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|