@angular/forms 16.0.0 → 16.1.0-next.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 +27 -27
- package/esm2022/src/directives.mjs +4 -4
- package/esm2022/src/form_builder.mjs +9 -9
- package/esm2022/src/form_providers.mjs +8 -8
- package/esm2022/src/model/abstract_model.mjs +1 -1
- package/esm2022/src/version.mjs +1 -1
- package/fesm2022/forms.mjs +126 -126
- package/fesm2022/forms.mjs.map +1 -1
- package/index.d.ts +39 -33
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.0.0
|
|
2
|
+
* @license Angular v16.1.0-next.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -179,6 +179,12 @@ export declare abstract class AbstractControl<TValue = any, TRawValue extends TV
|
|
|
179
179
|
* A multicasting observable that emits an event every time the value of the control changes, in
|
|
180
180
|
* the UI or programmatically. It also emits an event each time you call enable() or disable()
|
|
181
181
|
* without passing along {emitEvent: false} as a function argument.
|
|
182
|
+
*
|
|
183
|
+
* **Note**: the emit happens right after a value of this control is updated. The value of a
|
|
184
|
+
* parent control (for example if this FormControl is a part of a FormGroup) is updated later, so
|
|
185
|
+
* accessing a value of a parent control (using the `value` property) from the callback of this
|
|
186
|
+
* event might result in getting a value that has not been updated yet. Subscribe to the
|
|
187
|
+
* `valueChanges` event of the parent control instead.
|
|
182
188
|
*/
|
|
183
189
|
readonly valueChanges: Observable<TValue>;
|
|
184
190
|
/**
|
|
@@ -901,7 +907,7 @@ export declare class AbstractFormGroupDirective extends ControlContainer impleme
|
|
|
901
907
|
*/
|
|
902
908
|
get formDirective(): Form | null;
|
|
903
909
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFormGroupDirective, never>;
|
|
904
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFormGroupDirective, never, never, {}, {}, never, never, false, never>;
|
|
910
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFormGroupDirective, never, never, {}, {}, never, never, false, never, false>;
|
|
905
911
|
}
|
|
906
912
|
|
|
907
913
|
/**
|
|
@@ -928,7 +934,7 @@ declare abstract class AbstractValidatorDirective implements Validator, OnChange
|
|
|
928
934
|
*/
|
|
929
935
|
enabled(input: unknown): boolean;
|
|
930
936
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractValidatorDirective, never>;
|
|
931
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractValidatorDirective, never, never, {}, {}, never, never, false, never>;
|
|
937
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractValidatorDirective, never, never, {}, {}, never, never, false, never, false>;
|
|
932
938
|
}
|
|
933
939
|
|
|
934
940
|
/**
|
|
@@ -1027,7 +1033,7 @@ declare class BaseControlValueAccessor {
|
|
|
1027
1033
|
*/
|
|
1028
1034
|
setDisabledState(isDisabled: boolean): void;
|
|
1029
1035
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseControlValueAccessor, never>;
|
|
1030
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseControlValueAccessor, never, never, {}, {}, never, never, false, never>;
|
|
1036
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseControlValueAccessor, never, never, {}, {}, never, never, false, never, false>;
|
|
1031
1037
|
}
|
|
1032
1038
|
|
|
1033
1039
|
/**
|
|
@@ -1041,7 +1047,7 @@ declare class BaseControlValueAccessor {
|
|
|
1041
1047
|
*/
|
|
1042
1048
|
declare class BuiltInControlValueAccessor extends BaseControlValueAccessor {
|
|
1043
1049
|
static ɵfac: i0.ɵɵFactoryDeclaration<BuiltInControlValueAccessor, never>;
|
|
1044
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BuiltInControlValueAccessor, never, never, {}, {}, never, never, false, never>;
|
|
1050
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BuiltInControlValueAccessor, never, never, {}, {}, never, never, false, never, false>;
|
|
1045
1051
|
}
|
|
1046
1052
|
|
|
1047
1053
|
/**
|
|
@@ -1088,7 +1094,7 @@ export declare class CheckboxControlValueAccessor extends BuiltInControlValueAcc
|
|
|
1088
1094
|
*/
|
|
1089
1095
|
writeValue(value: any): void;
|
|
1090
1096
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxControlValueAccessor, never>;
|
|
1091
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxControlValueAccessor, "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]", never, {}, {}, never, never, false, never>;
|
|
1097
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxControlValueAccessor, "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]", never, {}, {}, never, never, false, never, false>;
|
|
1092
1098
|
}
|
|
1093
1099
|
|
|
1094
1100
|
/**
|
|
@@ -1114,7 +1120,7 @@ export declare class CheckboxControlValueAccessor extends BuiltInControlValueAcc
|
|
|
1114
1120
|
*/
|
|
1115
1121
|
export declare class CheckboxRequiredValidator extends RequiredValidator {
|
|
1116
1122
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxRequiredValidator, never>;
|
|
1117
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxRequiredValidator, "input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]", never, {}, {}, never, never, false, never>;
|
|
1123
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxRequiredValidator, "input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]", never, {}, {}, never, never, false, never, false>;
|
|
1118
1124
|
}
|
|
1119
1125
|
|
|
1120
1126
|
/**
|
|
@@ -1326,7 +1332,7 @@ export declare class DefaultValueAccessor extends BaseControlValueAccessor imple
|
|
|
1326
1332
|
*/
|
|
1327
1333
|
writeValue(value: any): void;
|
|
1328
1334
|
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultValueAccessor, [null, null, { optional: true; }]>;
|
|
1329
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DefaultValueAccessor, "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]", never, {}, {}, never, never, false, never>;
|
|
1335
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DefaultValueAccessor, "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]", never, {}, {}, never, never, false, never, false>;
|
|
1330
1336
|
}
|
|
1331
1337
|
|
|
1332
1338
|
/**
|
|
@@ -1371,7 +1377,7 @@ export declare class EmailValidator extends AbstractValidatorDirective {
|
|
|
1371
1377
|
/** @nodoc */
|
|
1372
1378
|
enabled(input: boolean): boolean;
|
|
1373
1379
|
static ɵfac: i0.ɵɵFactoryDeclaration<EmailValidator, never>;
|
|
1374
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<EmailValidator, "[email][formControlName],[email][formControl],[email][ngModel]", never, { "email": { "alias": "email"; "required": false; }; }, {}, never, never, false, never>;
|
|
1380
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<EmailValidator, "[email][formControlName],[email][formControl],[email][ngModel]", never, { "email": { "alias": "email"; "required": false; }; }, {}, never, never, false, never, false>;
|
|
1375
1381
|
}
|
|
1376
1382
|
|
|
1377
1383
|
/**
|
|
@@ -1828,7 +1834,7 @@ export declare class FormArrayName extends ControlContainer implements OnInit, O
|
|
|
1828
1834
|
get path(): string[];
|
|
1829
1835
|
private _checkParentType;
|
|
1830
1836
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormArrayName, [{ optional: true; host: true; skipSelf: true; }, { optional: true; self: true; }, { optional: true; self: true; }]>;
|
|
1831
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormArrayName, "[formArrayName]", never, { "name": { "alias": "formArrayName"; "required": false; }; }, {}, never, never, false, never>;
|
|
1837
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormArrayName, "[formArrayName]", never, { "name": { "alias": "formArrayName"; "required": false; }; }, {}, never, never, false, never, false>;
|
|
1832
1838
|
}
|
|
1833
1839
|
|
|
1834
1840
|
declare const formArrayNameProvider: any;
|
|
@@ -2299,7 +2305,7 @@ export declare class FormControlDirective extends NgControl implements OnChanges
|
|
|
2299
2305
|
viewToModelUpdate(newValue: any): void;
|
|
2300
2306
|
private _isControlChanged;
|
|
2301
2307
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlDirective, [{ optional: true; self: true; }, { optional: true; self: true; }, { optional: true; self: true; }, { optional: true; }, { optional: true; }]>;
|
|
2302
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlDirective, "[formControl]", ["ngForm"], { "form": { "alias": "formControl"; "required": false; }; "isDisabled": { "alias": "disabled"; "required": false; }; "model": { "alias": "ngModel"; "required": false; }; }, { "update": "ngModelChange"; }, never, never, false, never>;
|
|
2308
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlDirective, "[formControl]", ["ngForm"], { "form": { "alias": "formControl"; "required": false; }; "isDisabled": { "alias": "disabled"; "required": false; }; "model": { "alias": "ngModel"; "required": false; }; }, { "update": "ngModelChange"; }, never, never, false, never, false>;
|
|
2303
2309
|
}
|
|
2304
2310
|
|
|
2305
2311
|
/**
|
|
@@ -2389,7 +2395,7 @@ export declare class FormControlName extends NgControl implements OnChanges, OnD
|
|
|
2389
2395
|
private _checkParentType;
|
|
2390
2396
|
private _setUpControl;
|
|
2391
2397
|
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; }]>;
|
|
2392
|
-
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>;
|
|
2398
|
+
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, false>;
|
|
2393
2399
|
}
|
|
2394
2400
|
|
|
2395
2401
|
/**
|
|
@@ -2972,7 +2978,7 @@ export declare class FormGroupDirective extends ControlContainer implements Form
|
|
|
2972
2978
|
private _updateValidators;
|
|
2973
2979
|
private _checkFormPresent;
|
|
2974
2980
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupDirective, [{ optional: true; self: true; }, { optional: true; self: true; }, { optional: true; }]>;
|
|
2975
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormGroupDirective, "[formGroup]", ["ngForm"], { "form": { "alias": "formGroup"; "required": false; }; }, { "ngSubmit": "ngSubmit"; }, never, never, false, never>;
|
|
2981
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormGroupDirective, "[formGroup]", ["ngForm"], { "form": { "alias": "formGroup"; "required": false; }; }, { "ngSubmit": "ngSubmit"; }, never, never, false, never, false>;
|
|
2976
2982
|
}
|
|
2977
2983
|
|
|
2978
2984
|
/**
|
|
@@ -3035,7 +3041,7 @@ export declare class FormGroupName extends AbstractFormGroupDirective implements
|
|
|
3035
3041
|
name: string | number | null;
|
|
3036
3042
|
constructor(parent: ControlContainer, validators: (Validator | ValidatorFn)[], asyncValidators: (AsyncValidator | AsyncValidatorFn)[]);
|
|
3037
3043
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupName, [{ optional: true; host: true; skipSelf: true; }, { optional: true; self: true; }, { optional: true; self: true; }]>;
|
|
3038
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormGroupName, "[formGroupName]", never, { "name": { "alias": "formGroupName"; "required": false; }; }, {}, never, never, false, never>;
|
|
3044
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormGroupName, "[formGroupName]", never, { "name": { "alias": "formGroupName"; "required": false; }; }, {}, never, never, false, never, false>;
|
|
3039
3045
|
}
|
|
3040
3046
|
|
|
3041
3047
|
declare type FormHooks = 'change' | 'blur' | 'submit';
|
|
@@ -3420,7 +3426,7 @@ export declare class MaxLengthValidator extends AbstractValidatorDirective {
|
|
|
3420
3426
|
*/
|
|
3421
3427
|
maxlength: string | number | null;
|
|
3422
3428
|
static ɵfac: i0.ɵɵFactoryDeclaration<MaxLengthValidator, never>;
|
|
3423
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MaxLengthValidator, "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", never, { "maxlength": { "alias": "maxlength"; "required": false; }; }, {}, never, never, false, never>;
|
|
3429
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MaxLengthValidator, "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", never, { "maxlength": { "alias": "maxlength"; "required": false; }; }, {}, never, never, false, never, false>;
|
|
3424
3430
|
}
|
|
3425
3431
|
|
|
3426
3432
|
/**
|
|
@@ -3451,7 +3457,7 @@ export declare class MaxValidator extends AbstractValidatorDirective {
|
|
|
3451
3457
|
*/
|
|
3452
3458
|
max: string | number | null;
|
|
3453
3459
|
static ɵfac: i0.ɵɵFactoryDeclaration<MaxValidator, never>;
|
|
3454
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MaxValidator, "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", never, { "max": { "alias": "max"; "required": false; }; }, {}, never, never, false, never>;
|
|
3460
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MaxValidator, "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", never, { "max": { "alias": "max"; "required": false; }; }, {}, never, never, false, never, false>;
|
|
3455
3461
|
}
|
|
3456
3462
|
|
|
3457
3463
|
/**
|
|
@@ -3494,7 +3500,7 @@ export declare class MinLengthValidator extends AbstractValidatorDirective {
|
|
|
3494
3500
|
*/
|
|
3495
3501
|
minlength: string | number | null;
|
|
3496
3502
|
static ɵfac: i0.ɵɵFactoryDeclaration<MinLengthValidator, never>;
|
|
3497
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MinLengthValidator, "[minlength][formControlName],[minlength][formControl],[minlength][ngModel]", never, { "minlength": { "alias": "minlength"; "required": false; }; }, {}, never, never, false, never>;
|
|
3503
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MinLengthValidator, "[minlength][formControlName],[minlength][formControl],[minlength][ngModel]", never, { "minlength": { "alias": "minlength"; "required": false; }; }, {}, never, never, false, never, false>;
|
|
3498
3504
|
}
|
|
3499
3505
|
|
|
3500
3506
|
/**
|
|
@@ -3525,7 +3531,7 @@ export declare class MinValidator extends AbstractValidatorDirective {
|
|
|
3525
3531
|
*/
|
|
3526
3532
|
min: string | number | null;
|
|
3527
3533
|
static ɵfac: i0.ɵɵFactoryDeclaration<MinValidator, never>;
|
|
3528
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MinValidator, "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", never, { "min": { "alias": "min"; "required": false; }; }, {}, never, never, false, never>;
|
|
3534
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MinValidator, "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", never, { "min": { "alias": "min"; "required": false; }; }, {}, never, never, false, never, false>;
|
|
3529
3535
|
}
|
|
3530
3536
|
|
|
3531
3537
|
declare const modelGroupProvider: any;
|
|
@@ -3658,7 +3664,7 @@ export declare abstract class NgControl extends AbstractControlDirective {
|
|
|
3658
3664
|
export declare class NgControlStatus extends AbstractControlStatus {
|
|
3659
3665
|
constructor(cd: NgControl);
|
|
3660
3666
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgControlStatus, [{ self: true; }]>;
|
|
3661
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgControlStatus, "[formControlName],[ngModel],[formControl]", never, {}, {}, never, never, false, never>;
|
|
3667
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgControlStatus, "[formControlName],[ngModel],[formControl]", never, {}, {}, never, never, false, never, false>;
|
|
3662
3668
|
}
|
|
3663
3669
|
|
|
3664
3670
|
/**
|
|
@@ -3676,7 +3682,7 @@ export declare class NgControlStatus extends AbstractControlStatus {
|
|
|
3676
3682
|
export declare class NgControlStatusGroup extends AbstractControlStatus {
|
|
3677
3683
|
constructor(cd: ControlContainer);
|
|
3678
3684
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgControlStatusGroup, [{ optional: true; self: true; }]>;
|
|
3679
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgControlStatusGroup, "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]", never, {}, {}, never, never, false, never>;
|
|
3685
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgControlStatusGroup, "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]", never, {}, {}, never, never, false, never, false>;
|
|
3680
3686
|
}
|
|
3681
3687
|
|
|
3682
3688
|
declare const ngControlStatusHost: {
|
|
@@ -3891,7 +3897,7 @@ export declare class NgForm extends ControlContainer implements Form, AfterViewI
|
|
|
3891
3897
|
private _setUpdateStrategy;
|
|
3892
3898
|
private _findContainer;
|
|
3893
3899
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgForm, [{ optional: true; self: true; }, { optional: true; self: true; }, { optional: true; }]>;
|
|
3894
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgForm, "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", ["ngForm"], { "options": { "alias": "ngFormOptions"; "required": false; }; }, { "ngSubmit": "ngSubmit"; }, never, never, false, never>;
|
|
3900
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgForm, "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", ["ngForm"], { "options": { "alias": "ngFormOptions"; "required": false; }; }, { "ngSubmit": "ngSubmit"; }, never, never, false, never, false>;
|
|
3895
3901
|
}
|
|
3896
3902
|
|
|
3897
3903
|
declare const ngGroupStatusHost: {
|
|
@@ -4078,7 +4084,7 @@ export declare class NgModel extends NgControl implements OnChanges, OnDestroy {
|
|
|
4078
4084
|
private _updateDisabled;
|
|
4079
4085
|
private _getPath;
|
|
4080
4086
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgModel, [{ optional: true; host: true; }, { optional: true; self: true; }, { optional: true; self: true; }, { optional: true; self: true; }, { optional: true; }, { optional: true; }]>;
|
|
4081
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgModel, "[ngModel]:not([formControlName]):not([formControl])", ["ngModel"], { "name": { "alias": "name"; "required": false; }; "isDisabled": { "alias": "disabled"; "required": false; }; "model": { "alias": "ngModel"; "required": false; }; "options": { "alias": "ngModelOptions"; "required": false; }; }, { "update": "ngModelChange"; }, never, never, false, never>;
|
|
4087
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgModel, "[ngModel]:not([formControlName]):not([formControl])", ["ngModel"], { "name": { "alias": "name"; "required": false; }; "isDisabled": { "alias": "disabled"; "required": false; }; "model": { "alias": "ngModel"; "required": false; }; "options": { "alias": "ngModelOptions"; "required": false; }; }, { "update": "ngModelChange"; }, never, never, false, never, false>;
|
|
4082
4088
|
}
|
|
4083
4089
|
|
|
4084
4090
|
/**
|
|
@@ -4116,7 +4122,7 @@ export declare class NgModelGroup extends AbstractFormGroupDirective implements
|
|
|
4116
4122
|
name: string;
|
|
4117
4123
|
constructor(parent: ControlContainer, validators: (Validator | ValidatorFn)[], asyncValidators: (AsyncValidator | AsyncValidatorFn)[]);
|
|
4118
4124
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgModelGroup, [{ host: true; skipSelf: true; }, { optional: true; self: true; }, { optional: true; self: true; }]>;
|
|
4119
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgModelGroup, "[ngModelGroup]", ["ngModelGroup"], { "name": { "alias": "ngModelGroup"; "required": false; }; }, {}, never, never, false, never>;
|
|
4125
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgModelGroup, "[ngModelGroup]", ["ngModelGroup"], { "name": { "alias": "ngModelGroup"; "required": false; }; }, {}, never, never, false, never, false>;
|
|
4120
4126
|
}
|
|
4121
4127
|
|
|
4122
4128
|
/**
|
|
@@ -4154,7 +4160,7 @@ export declare class NgSelectOption implements OnDestroy {
|
|
|
4154
4160
|
/** @nodoc */
|
|
4155
4161
|
ngOnDestroy(): void;
|
|
4156
4162
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgSelectOption, [null, null, { optional: true; host: true; }]>;
|
|
4157
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgSelectOption, "option", never, { "ngValue": { "alias": "ngValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
4163
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgSelectOption, "option", never, { "ngValue": { "alias": "ngValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never, false>;
|
|
4158
4164
|
}
|
|
4159
4165
|
|
|
4160
4166
|
/**
|
|
@@ -4232,7 +4238,7 @@ export declare class NumberValueAccessor extends BuiltInControlValueAccessor imp
|
|
|
4232
4238
|
*/
|
|
4233
4239
|
registerOnChange(fn: (_: number | null) => void): void;
|
|
4234
4240
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumberValueAccessor, never>;
|
|
4235
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NumberValueAccessor, "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]", never, {}, {}, never, never, false, never>;
|
|
4241
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NumberValueAccessor, "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]", never, {}, {}, never, never, false, never, false>;
|
|
4236
4242
|
}
|
|
4237
4243
|
|
|
4238
4244
|
/**
|
|
@@ -4271,7 +4277,7 @@ export declare class PatternValidator extends AbstractValidatorDirective {
|
|
|
4271
4277
|
*/
|
|
4272
4278
|
pattern: string | RegExp;
|
|
4273
4279
|
static ɵfac: i0.ɵɵFactoryDeclaration<PatternValidator, never>;
|
|
4274
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PatternValidator, "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", never, { "pattern": { "alias": "pattern"; "required": false; }; }, {}, never, never, false, never>;
|
|
4280
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PatternValidator, "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", never, { "pattern": { "alias": "pattern"; "required": false; }; }, {}, never, never, false, never, false>;
|
|
4275
4281
|
}
|
|
4276
4282
|
|
|
4277
4283
|
/**
|
|
@@ -4404,7 +4410,7 @@ export declare class RadioControlValueAccessor extends BuiltInControlValueAccess
|
|
|
4404
4410
|
fireUncheck(value: any): void;
|
|
4405
4411
|
private _checkName;
|
|
4406
4412
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioControlValueAccessor, never>;
|
|
4407
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RadioControlValueAccessor, "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", never, { "name": { "alias": "name"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
4413
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RadioControlValueAccessor, "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", never, { "name": { "alias": "name"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never, false>;
|
|
4408
4414
|
}
|
|
4409
4415
|
|
|
4410
4416
|
/**
|
|
@@ -4443,7 +4449,7 @@ export declare class RangeValueAccessor extends BuiltInControlValueAccessor impl
|
|
|
4443
4449
|
*/
|
|
4444
4450
|
registerOnChange(fn: (_: number | null) => void): void;
|
|
4445
4451
|
static ɵfac: i0.ɵɵFactoryDeclaration<RangeValueAccessor, never>;
|
|
4446
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RangeValueAccessor, "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]", never, {}, {}, never, never, false, never>;
|
|
4452
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RangeValueAccessor, "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]", never, {}, {}, never, never, false, never, false>;
|
|
4447
4453
|
}
|
|
4448
4454
|
|
|
4449
4455
|
declare const REACTIVE_DRIVEN_DIRECTIVES: Type<any>[];
|
|
@@ -4515,7 +4521,7 @@ export declare class RequiredValidator extends AbstractValidatorDirective {
|
|
|
4515
4521
|
/** @nodoc */
|
|
4516
4522
|
enabled(input: boolean): boolean;
|
|
4517
4523
|
static ɵfac: i0.ɵɵFactoryDeclaration<RequiredValidator, never>;
|
|
4518
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RequiredValidator, ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", never, { "required": { "alias": "required"; "required": false; }; }, {}, never, never, false, never>;
|
|
4524
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RequiredValidator, ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", never, { "required": { "alias": "required"; "required": false; }; }, {}, never, never, false, never, false>;
|
|
4519
4525
|
}
|
|
4520
4526
|
|
|
4521
4527
|
/**
|
|
@@ -4595,7 +4601,7 @@ export declare class SelectControlValueAccessor extends BuiltInControlValueAcces
|
|
|
4595
4601
|
*/
|
|
4596
4602
|
registerOnChange(fn: (value: any) => any): void;
|
|
4597
4603
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectControlValueAccessor, never>;
|
|
4598
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectControlValueAccessor, "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", never, { "compareWith": { "alias": "compareWith"; "required": false; }; }, {}, never, never, false, never>;
|
|
4604
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectControlValueAccessor, "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", never, { "compareWith": { "alias": "compareWith"; "required": false; }; }, {}, never, never, false, never, false>;
|
|
4599
4605
|
}
|
|
4600
4606
|
|
|
4601
4607
|
/**
|
|
@@ -4658,7 +4664,7 @@ export declare class SelectMultipleControlValueAccessor extends BuiltInControlVa
|
|
|
4658
4664
|
*/
|
|
4659
4665
|
registerOnChange(fn: (value: any) => any): void;
|
|
4660
4666
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectMultipleControlValueAccessor, never>;
|
|
4661
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectMultipleControlValueAccessor, "select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]", never, { "compareWith": { "alias": "compareWith"; "required": false; }; }, {}, never, never, false, never>;
|
|
4667
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectMultipleControlValueAccessor, "select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]", never, { "compareWith": { "alias": "compareWith"; "required": false; }; }, {}, never, never, false, never, false>;
|
|
4662
4668
|
}
|
|
4663
4669
|
|
|
4664
4670
|
/**
|
|
@@ -5297,7 +5303,7 @@ export declare type ɵNavigate<T, K extends (Array<string | number>)> = T extend
|
|
|
5297
5303
|
*/
|
|
5298
5304
|
export declare class ɵNgNoValidate {
|
|
5299
5305
|
static ɵfac: i0.ɵɵFactoryDeclaration<ɵNgNoValidate, never>;
|
|
5300
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ɵNgNoValidate, "form:not([ngNoForm]):not([ngNativeValidate])", never, {}, {}, never, never, false, never>;
|
|
5306
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ɵNgNoValidate, "form:not([ngNoForm]):not([ngNativeValidate])", never, {}, {}, never, never, false, never, false>;
|
|
5301
5307
|
}
|
|
5302
5308
|
|
|
5303
5309
|
/**
|
|
@@ -5331,7 +5337,7 @@ export declare class ɵNgSelectMultipleOption implements OnDestroy {
|
|
|
5331
5337
|
/** @nodoc */
|
|
5332
5338
|
ngOnDestroy(): void;
|
|
5333
5339
|
static ɵfac: i0.ɵɵFactoryDeclaration<ɵNgSelectMultipleOption, [null, null, { optional: true; host: true; }]>;
|
|
5334
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ɵNgSelectMultipleOption, "option", never, { "ngValue": { "alias": "ngValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
5340
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ɵNgSelectMultipleOption, "option", never, { "ngValue": { "alias": "ngValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never, false>;
|
|
5335
5341
|
}
|
|
5336
5342
|
|
|
5337
5343
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/forms",
|
|
3
|
-
"version": "16.0.0",
|
|
3
|
+
"version": "16.1.0-next.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": "16.0.0",
|
|
15
|
-
"@angular/common": "16.0.0",
|
|
16
|
-
"@angular/platform-browser": "16.0.0",
|
|
14
|
+
"@angular/core": "16.1.0-next.0",
|
|
15
|
+
"@angular/common": "16.1.0-next.0",
|
|
16
|
+
"@angular/platform-browser": "16.1.0-next.0",
|
|
17
17
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|