@angular/forms 16.0.0-next.3 → 16.0.0-next.4

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.
Files changed (29) hide show
  1. package/esm2020/src/directives/abstract_form_group_directive.mjs +3 -3
  2. package/esm2020/src/directives/checkbox_value_accessor.mjs +3 -3
  3. package/esm2020/src/directives/control_value_accessor.mjs +6 -6
  4. package/esm2020/src/directives/default_value_accessor.mjs +3 -3
  5. package/esm2020/src/directives/ng_control_status.mjs +6 -6
  6. package/esm2020/src/directives/ng_form.mjs +3 -3
  7. package/esm2020/src/directives/ng_model.mjs +3 -3
  8. package/esm2020/src/directives/ng_model_group.mjs +3 -3
  9. package/esm2020/src/directives/ng_no_validate_directive.mjs +3 -3
  10. package/esm2020/src/directives/number_value_accessor.mjs +3 -3
  11. package/esm2020/src/directives/radio_control_value_accessor.mjs +10 -10
  12. package/esm2020/src/directives/range_value_accessor.mjs +3 -3
  13. package/esm2020/src/directives/reactive_directives/form_control_directive.mjs +3 -3
  14. package/esm2020/src/directives/reactive_directives/form_control_name.mjs +3 -3
  15. package/esm2020/src/directives/reactive_directives/form_group_directive.mjs +3 -3
  16. package/esm2020/src/directives/reactive_directives/form_group_name.mjs +6 -6
  17. package/esm2020/src/directives/select_control_value_accessor.mjs +6 -6
  18. package/esm2020/src/directives/select_multiple_control_value_accessor.mjs +6 -6
  19. package/esm2020/src/directives/validators.mjs +27 -27
  20. package/esm2020/src/directives.mjs +4 -4
  21. package/esm2020/src/form_builder.mjs +9 -9
  22. package/esm2020/src/form_providers.mjs +8 -8
  23. package/esm2020/src/version.mjs +1 -1
  24. package/fesm2015/forms.mjs +126 -126
  25. package/fesm2015/forms.mjs.map +1 -1
  26. package/fesm2020/forms.mjs +126 -126
  27. package/fesm2020/forms.mjs.map +1 -1
  28. package/index.d.ts +21 -21
  29. package/package.json +4 -4
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-next.3
2
+ * @license Angular v16.0.0-next.4
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1371,7 +1371,7 @@ export declare class EmailValidator extends AbstractValidatorDirective {
1371
1371
  /** @nodoc */
1372
1372
  enabled(input: boolean): boolean;
1373
1373
  static ɵfac: i0.ɵɵFactoryDeclaration<EmailValidator, never>;
1374
- static ɵdir: i0.ɵɵDirectiveDeclaration<EmailValidator, "[email][formControlName],[email][formControl],[email][ngModel]", never, { "email": "email"; }, {}, never, never, false, never>;
1374
+ static ɵdir: i0.ɵɵDirectiveDeclaration<EmailValidator, "[email][formControlName],[email][formControl],[email][ngModel]", never, { "email": { "alias": "email"; "required": false; }; }, {}, never, never, false, never>;
1375
1375
  }
1376
1376
 
1377
1377
  /**
@@ -1828,7 +1828,7 @@ export declare class FormArrayName extends ControlContainer implements OnInit, O
1828
1828
  get path(): string[];
1829
1829
  private _checkParentType;
1830
1830
  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": "formArrayName"; }, {}, never, never, false, never>;
1831
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormArrayName, "[formArrayName]", never, { "name": { "alias": "formArrayName"; "required": false; }; }, {}, never, never, false, never>;
1832
1832
  }
1833
1833
 
1834
1834
  declare const formArrayNameProvider: any;
@@ -2299,7 +2299,7 @@ export declare class FormControlDirective extends NgControl implements OnChanges
2299
2299
  viewToModelUpdate(newValue: any): void;
2300
2300
  private _isControlChanged;
2301
2301
  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": "formControl"; "isDisabled": "disabled"; "model": "ngModel"; }, { "update": "ngModelChange"; }, never, never, false, never>;
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>;
2303
2303
  }
2304
2304
 
2305
2305
  /**
@@ -2389,7 +2389,7 @@ export declare class FormControlName extends NgControl implements OnChanges, OnD
2389
2389
  private _checkParentType;
2390
2390
  private _setUpControl;
2391
2391
  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": "formControlName"; "isDisabled": "disabled"; "model": "ngModel"; }, { "update": "ngModelChange"; }, never, never, false, never>;
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>;
2393
2393
  }
2394
2394
 
2395
2395
  /**
@@ -2972,7 +2972,7 @@ export declare class FormGroupDirective extends ControlContainer implements Form
2972
2972
  private _updateValidators;
2973
2973
  private _checkFormPresent;
2974
2974
  static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupDirective, [{ optional: true; self: true; }, { optional: true; self: true; }, { optional: true; }]>;
2975
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormGroupDirective, "[formGroup]", ["ngForm"], { "form": "formGroup"; }, { "ngSubmit": "ngSubmit"; }, never, never, false, never>;
2975
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormGroupDirective, "[formGroup]", ["ngForm"], { "form": { "alias": "formGroup"; "required": false; }; }, { "ngSubmit": "ngSubmit"; }, never, never, false, never>;
2976
2976
  }
2977
2977
 
2978
2978
  /**
@@ -3035,7 +3035,7 @@ export declare class FormGroupName extends AbstractFormGroupDirective implements
3035
3035
  name: string | number | null;
3036
3036
  constructor(parent: ControlContainer, validators: (Validator | ValidatorFn)[], asyncValidators: (AsyncValidator | AsyncValidatorFn)[]);
3037
3037
  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": "formGroupName"; }, {}, never, never, false, never>;
3038
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormGroupName, "[formGroupName]", never, { "name": { "alias": "formGroupName"; "required": false; }; }, {}, never, never, false, never>;
3039
3039
  }
3040
3040
 
3041
3041
  declare type FormHooks = 'change' | 'blur' | 'submit';
@@ -3420,7 +3420,7 @@ export declare class MaxLengthValidator extends AbstractValidatorDirective {
3420
3420
  */
3421
3421
  maxlength: string | number | null;
3422
3422
  static ɵfac: i0.ɵɵFactoryDeclaration<MaxLengthValidator, never>;
3423
- static ɵdir: i0.ɵɵDirectiveDeclaration<MaxLengthValidator, "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", never, { "maxlength": "maxlength"; }, {}, never, never, false, never>;
3423
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MaxLengthValidator, "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", never, { "maxlength": { "alias": "maxlength"; "required": false; }; }, {}, never, never, false, never>;
3424
3424
  }
3425
3425
 
3426
3426
  /**
@@ -3451,7 +3451,7 @@ export declare class MaxValidator extends AbstractValidatorDirective {
3451
3451
  */
3452
3452
  max: string | number | null;
3453
3453
  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": "max"; }, {}, never, never, false, 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>;
3455
3455
  }
3456
3456
 
3457
3457
  /**
@@ -3494,7 +3494,7 @@ export declare class MinLengthValidator extends AbstractValidatorDirective {
3494
3494
  */
3495
3495
  minlength: string | number | null;
3496
3496
  static ɵfac: i0.ɵɵFactoryDeclaration<MinLengthValidator, never>;
3497
- static ɵdir: i0.ɵɵDirectiveDeclaration<MinLengthValidator, "[minlength][formControlName],[minlength][formControl],[minlength][ngModel]", never, { "minlength": "minlength"; }, {}, never, never, false, never>;
3497
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MinLengthValidator, "[minlength][formControlName],[minlength][formControl],[minlength][ngModel]", never, { "minlength": { "alias": "minlength"; "required": false; }; }, {}, never, never, false, never>;
3498
3498
  }
3499
3499
 
3500
3500
  /**
@@ -3525,7 +3525,7 @@ export declare class MinValidator extends AbstractValidatorDirective {
3525
3525
  */
3526
3526
  min: string | number | null;
3527
3527
  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": "min"; }, {}, never, never, false, 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>;
3529
3529
  }
3530
3530
 
3531
3531
  declare const modelGroupProvider: any;
@@ -3891,7 +3891,7 @@ export declare class NgForm extends ControlContainer implements Form, AfterViewI
3891
3891
  private _setUpdateStrategy;
3892
3892
  private _findContainer;
3893
3893
  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": "ngFormOptions"; }, { "ngSubmit": "ngSubmit"; }, never, never, false, never>;
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>;
3895
3895
  }
3896
3896
 
3897
3897
  declare const ngGroupStatusHost: {
@@ -4078,7 +4078,7 @@ export declare class NgModel extends NgControl implements OnChanges, OnDestroy {
4078
4078
  private _updateDisabled;
4079
4079
  private _getPath;
4080
4080
  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": "name"; "isDisabled": "disabled"; "model": "ngModel"; "options": "ngModelOptions"; }, { "update": "ngModelChange"; }, never, never, false, never>;
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>;
4082
4082
  }
4083
4083
 
4084
4084
  /**
@@ -4116,7 +4116,7 @@ export declare class NgModelGroup extends AbstractFormGroupDirective implements
4116
4116
  name: string;
4117
4117
  constructor(parent: ControlContainer, validators: (Validator | ValidatorFn)[], asyncValidators: (AsyncValidator | AsyncValidatorFn)[]);
4118
4118
  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": "ngModelGroup"; }, {}, never, never, false, never>;
4119
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgModelGroup, "[ngModelGroup]", ["ngModelGroup"], { "name": { "alias": "ngModelGroup"; "required": false; }; }, {}, never, never, false, never>;
4120
4120
  }
4121
4121
 
4122
4122
  /**
@@ -4154,7 +4154,7 @@ export declare class NgSelectOption implements OnDestroy {
4154
4154
  /** @nodoc */
4155
4155
  ngOnDestroy(): void;
4156
4156
  static ɵfac: i0.ɵɵFactoryDeclaration<NgSelectOption, [null, null, { optional: true; host: true; }]>;
4157
- static ɵdir: i0.ɵɵDirectiveDeclaration<NgSelectOption, "option", never, { "ngValue": "ngValue"; "value": "value"; }, {}, never, never, false, never>;
4157
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgSelectOption, "option", never, { "ngValue": { "alias": "ngValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
4158
4158
  }
4159
4159
 
4160
4160
  /**
@@ -4271,7 +4271,7 @@ export declare class PatternValidator extends AbstractValidatorDirective {
4271
4271
  */
4272
4272
  pattern: string | RegExp;
4273
4273
  static ɵfac: i0.ɵɵFactoryDeclaration<PatternValidator, never>;
4274
- static ɵdir: i0.ɵɵDirectiveDeclaration<PatternValidator, "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", never, { "pattern": "pattern"; }, {}, never, never, false, never>;
4274
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PatternValidator, "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", never, { "pattern": { "alias": "pattern"; "required": false; }; }, {}, never, never, false, never>;
4275
4275
  }
4276
4276
 
4277
4277
  /**
@@ -4404,7 +4404,7 @@ export declare class RadioControlValueAccessor extends BuiltInControlValueAccess
4404
4404
  fireUncheck(value: any): void;
4405
4405
  private _checkName;
4406
4406
  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": "name"; "formControlName": "formControlName"; "value": "value"; }, {}, never, never, false, 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>;
4408
4408
  }
4409
4409
 
4410
4410
  /**
@@ -4515,7 +4515,7 @@ export declare class RequiredValidator extends AbstractValidatorDirective {
4515
4515
  /** @nodoc */
4516
4516
  enabled(input: boolean): boolean;
4517
4517
  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": "required"; }, {}, never, never, false, 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>;
4519
4519
  }
4520
4520
 
4521
4521
  /**
@@ -4595,7 +4595,7 @@ export declare class SelectControlValueAccessor extends BuiltInControlValueAcces
4595
4595
  */
4596
4596
  registerOnChange(fn: (value: any) => any): void;
4597
4597
  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": "compareWith"; }, {}, never, never, false, 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>;
4599
4599
  }
4600
4600
 
4601
4601
  /**
@@ -4658,7 +4658,7 @@ export declare class SelectMultipleControlValueAccessor extends BuiltInControlVa
4658
4658
  */
4659
4659
  registerOnChange(fn: (value: any) => any): void;
4660
4660
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectMultipleControlValueAccessor, never>;
4661
- static ɵdir: i0.ɵɵDirectiveDeclaration<SelectMultipleControlValueAccessor, "select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]", never, { "compareWith": "compareWith"; }, {}, never, never, false, 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>;
4662
4662
  }
4663
4663
 
4664
4664
  /**
@@ -5331,7 +5331,7 @@ export declare class ɵNgSelectMultipleOption implements OnDestroy {
5331
5331
  /** @nodoc */
5332
5332
  ngOnDestroy(): void;
5333
5333
  static ɵfac: i0.ɵɵFactoryDeclaration<ɵNgSelectMultipleOption, [null, null, { optional: true; host: true; }]>;
5334
- static ɵdir: i0.ɵɵDirectiveDeclaration<ɵNgSelectMultipleOption, "option", never, { "ngValue": "ngValue"; "value": "value"; }, {}, never, never, false, never>;
5334
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ɵNgSelectMultipleOption, "option", never, { "ngValue": { "alias": "ngValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
5335
5335
  }
5336
5336
 
5337
5337
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/forms",
3
- "version": "16.0.0-next.3",
3
+ "version": "16.0.0-next.4",
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-next.3",
15
- "@angular/common": "16.0.0-next.3",
16
- "@angular/platform-browser": "16.0.0-next.3",
14
+ "@angular/core": "16.0.0-next.4",
15
+ "@angular/common": "16.0.0-next.4",
16
+ "@angular/platform-browser": "16.0.0-next.4",
17
17
  "rxjs": "^6.5.3 || ^7.4.0"
18
18
  },
19
19
  "repository": {