@angular/forms 20.0.0-rc.0 → 20.0.0-rc.1

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.0.0-rc.0
2
+ * @license Angular v20.0.0-rc.1
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -162,34 +162,34 @@ declare class BaseControlValueAccessor {
162
162
  /**
163
163
  * The registered callback function called when a change or input event occurs on the input
164
164
  * element.
165
- * @nodoc
165
+ * @docs-private
166
166
  */
167
167
  onChange: (_: any) => void;
168
168
  /**
169
169
  * The registered callback function called when a blur event occurs on the input element.
170
- * @nodoc
170
+ * @docs-private
171
171
  */
172
172
  onTouched: () => void;
173
173
  constructor(_renderer: Renderer2, _elementRef: ElementRef);
174
174
  /**
175
175
  * Helper method that sets a property on a target element using the current Renderer
176
176
  * implementation.
177
- * @nodoc
177
+ * @docs-private
178
178
  */
179
179
  protected setProperty(key: string, value: any): void;
180
180
  /**
181
181
  * Registers a function called when the control is touched.
182
- * @nodoc
182
+ * @docs-private
183
183
  */
184
184
  registerOnTouched(fn: () => void): void;
185
185
  /**
186
186
  * Registers a function called when the control value changes.
187
- * @nodoc
187
+ * @docs-private
188
188
  */
189
189
  registerOnChange(fn: (_: any) => {}): void;
190
190
  /**
191
191
  * Sets the "disabled" property on the range input element.
192
- * @nodoc
192
+ * @docs-private
193
193
  */
194
194
  setDisabledState(isDisabled: boolean): void;
195
195
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseControlValueAccessor, never>;
@@ -274,7 +274,7 @@ declare const NG_VALUE_ACCESSOR: InjectionToken<readonly ControlValueAccessor[]>
274
274
  * @publicApi
275
275
  */
276
276
  declare class SelectControlValueAccessor extends BuiltInControlValueAccessor implements ControlValueAccessor {
277
- /** @nodoc */
277
+ /** @docs-private */
278
278
  value: any;
279
279
  /**
280
280
  * @description
@@ -285,12 +285,12 @@ declare class SelectControlValueAccessor extends BuiltInControlValueAccessor imp
285
285
  private _compareWith;
286
286
  /**
287
287
  * Sets the "value" property on the select element.
288
- * @nodoc
288
+ * @docs-private
289
289
  */
290
290
  writeValue(value: any): void;
291
291
  /**
292
292
  * Registers a function called when the control value changes.
293
- * @nodoc
293
+ * @docs-private
294
294
  */
295
295
  registerOnChange(fn: (value: any) => any): void;
296
296
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectControlValueAccessor, never>;
@@ -328,7 +328,7 @@ declare class NgSelectOption implements OnDestroy {
328
328
  * For objects, use the `ngValue` input binding.
329
329
  */
330
330
  set value(value: any);
331
- /** @nodoc */
331
+ /** @docs-private */
332
332
  ngOnDestroy(): void;
333
333
  static ɵfac: i0.ɵɵFactoryDeclaration<NgSelectOption, [null, null, { optional: true; host: true; }]>;
334
334
  static ɵdir: i0.ɵɵDirectiveDeclaration<NgSelectOption, "option", never, { "ngValue": { "alias": "ngValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
@@ -372,7 +372,7 @@ declare class NgSelectOption implements OnDestroy {
372
372
  declare class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor implements ControlValueAccessor {
373
373
  /**
374
374
  * The current value.
375
- * @nodoc
375
+ * @docs-private
376
376
  */
377
377
  value: any;
378
378
  /**
@@ -384,13 +384,13 @@ declare class SelectMultipleControlValueAccessor extends BuiltInControlValueAcce
384
384
  private _compareWith;
385
385
  /**
386
386
  * Sets the "value" property on one or of more of the select's options.
387
- * @nodoc
387
+ * @docs-private
388
388
  */
389
389
  writeValue(value: any): void;
390
390
  /**
391
391
  * Registers a function called when the control value changes
392
392
  * and writes an array of the selected options.
393
- * @nodoc
393
+ * @docs-private
394
394
  */
395
395
  registerOnChange(fn: (value: any) => any): void;
396
396
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectMultipleControlValueAccessor, never>;
@@ -424,7 +424,7 @@ declare class ɵNgSelectMultipleOption implements OnDestroy {
424
424
  * For objects, use the `ngValue` input binding.
425
425
  */
426
426
  set value(value: any);
427
- /** @nodoc */
427
+ /** @docs-private */
428
428
  ngOnDestroy(): void;
429
429
  static ɵfac: i0.ɵɵFactoryDeclaration<ɵNgSelectMultipleOption, [null, null, { optional: true; host: true; }]>;
430
430
  static ɵdir: i0.ɵɵDirectiveDeclaration<ɵNgSelectMultipleOption, "option", never, { "ngValue": { "alias": "ngValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
@@ -478,7 +478,7 @@ declare class DefaultValueAccessor extends BaseControlValueAccessor implements C
478
478
  constructor(renderer: Renderer2, elementRef: ElementRef, _compositionMode: boolean);
479
479
  /**
480
480
  * Sets the "value" property on the input element.
481
- * @nodoc
481
+ * @docs-private
482
482
  */
483
483
  writeValue(value: any): void;
484
484
  static ɵfac: i0.ɵɵFactoryDeclaration<DefaultValueAccessor, [null, null, { optional: true; }]>;
@@ -512,12 +512,12 @@ declare class DefaultValueAccessor extends BaseControlValueAccessor implements C
512
512
  declare class NumberValueAccessor extends BuiltInControlValueAccessor implements ControlValueAccessor {
513
513
  /**
514
514
  * Sets the "value" property on the input element.
515
- * @nodoc
515
+ * @docs-private
516
516
  */
517
517
  writeValue(value: number): void;
518
518
  /**
519
519
  * Registers a function called when the control value changes.
520
- * @nodoc
520
+ * @docs-private
521
521
  */
522
522
  registerOnChange(fn: (_: number | null) => void): void;
523
523
  static ɵfac: i0.ɵɵFactoryDeclaration<NumberValueAccessor, never>;
@@ -551,12 +551,12 @@ declare class NumberValueAccessor extends BuiltInControlValueAccessor implements
551
551
  declare class RangeValueAccessor extends BuiltInControlValueAccessor implements ControlValueAccessor {
552
552
  /**
553
553
  * Sets the "value" property on the input element.
554
- * @nodoc
554
+ * @docs-private
555
555
  */
556
556
  writeValue(value: any): void;
557
557
  /**
558
558
  * Registers a function called when the control value changes.
559
- * @nodoc
559
+ * @docs-private
560
560
  */
561
561
  registerOnChange(fn: (_: number | null) => void): void;
562
562
  static ɵfac: i0.ɵɵFactoryDeclaration<RangeValueAccessor, never>;
@@ -589,7 +589,7 @@ declare class RangeValueAccessor extends BuiltInControlValueAccessor implements
589
589
  declare class CheckboxControlValueAccessor extends BuiltInControlValueAccessor implements ControlValueAccessor {
590
590
  /**
591
591
  * Sets the "checked" property on the input element.
592
- * @nodoc
592
+ * @docs-private
593
593
  */
594
594
  writeValue(value: any): void;
595
595
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxControlValueAccessor, never>;
@@ -658,11 +658,11 @@ interface Validator {
658
658
  declare abstract class AbstractValidatorDirective implements Validator, OnChanges {
659
659
  private _validator;
660
660
  private _onChange;
661
- /** @nodoc */
661
+ /** @docs-private */
662
662
  ngOnChanges(changes: SimpleChanges): void;
663
- /** @nodoc */
663
+ /** @docs-private */
664
664
  validate(control: AbstractControl): ValidationErrors | null;
665
- /** @nodoc */
665
+ /** @docs-private */
666
666
  registerOnValidatorChange(fn: () => void): void;
667
667
  /**
668
668
  * @description
@@ -800,7 +800,7 @@ declare class RequiredValidator extends AbstractValidatorDirective {
800
800
  * Tracks changes to the required attribute bound to this directive.
801
801
  */
802
802
  required: boolean | string;
803
- /** @nodoc */
803
+ /** @docs-private */
804
804
  enabled(input: boolean): boolean;
805
805
  static ɵfac: i0.ɵɵFactoryDeclaration<RequiredValidator, never>;
806
806
  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>;
@@ -863,7 +863,7 @@ declare class EmailValidator extends AbstractValidatorDirective {
863
863
  * Tracks changes to the email attribute bound to this directive.
864
864
  */
865
865
  email: boolean | string;
866
- /** @nodoc */
866
+ /** @docs-private */
867
867
  enabled(input: boolean): boolean;
868
868
  static ɵfac: i0.ɵɵFactoryDeclaration<EmailValidator, never>;
869
869
  static ɵdir: i0.ɵɵDirectiveDeclaration<EmailValidator, "[email][formControlName],[email][formControl],[email][ngModel]", never, { "email": { "alias": "email"; "required": false; }; }, {}, never, never, false, never>;
@@ -3063,7 +3063,7 @@ declare class RadioControlValueAccessor extends BuiltInControlValueAccessor impl
3063
3063
  * Note: we declare `onChange` here (also used as host listener) as a function with no arguments
3064
3064
  * to override the `onChange` function (which expects 1 argument) in the parent
3065
3065
  * `BaseControlValueAccessor` class.
3066
- * @nodoc
3066
+ * @docs-private
3067
3067
  */
3068
3068
  onChange: () => void;
3069
3069
  /**
@@ -3084,21 +3084,21 @@ declare class RadioControlValueAccessor extends BuiltInControlValueAccessor impl
3084
3084
  value: any;
3085
3085
  private callSetDisabledState;
3086
3086
  constructor(renderer: Renderer2, elementRef: ElementRef, _registry: RadioControlRegistry, _injector: Injector);
3087
- /** @nodoc */
3087
+ /** @docs-private */
3088
3088
  ngOnInit(): void;
3089
- /** @nodoc */
3089
+ /** @docs-private */
3090
3090
  ngOnDestroy(): void;
3091
3091
  /**
3092
3092
  * Sets the "checked" property value on the radio input element.
3093
- * @nodoc
3093
+ * @docs-private
3094
3094
  */
3095
3095
  writeValue(value: any): void;
3096
3096
  /**
3097
3097
  * Registers a function called when the control value changes.
3098
- * @nodoc
3098
+ * @docs-private
3099
3099
  */
3100
3100
  registerOnChange(fn: (_: any) => {}): void;
3101
- /** @nodoc */
3101
+ /** @docs-private */
3102
3102
  setDisabledState(isDisabled: boolean): void;
3103
3103
  /**
3104
3104
  * Sets the "value" on the radio input element and unchecks it.
@@ -3468,9 +3468,9 @@ declare const isFormControl: (control: unknown) => control is FormControl;
3468
3468
  * @publicApi
3469
3469
  */
3470
3470
  declare class AbstractFormGroupDirective extends ControlContainer implements OnInit, OnDestroy {
3471
- /** @nodoc */
3471
+ /** @docs-private */
3472
3472
  ngOnInit(): void;
3473
- /** @nodoc */
3473
+ /** @docs-private */
3474
3474
  ngOnDestroy(): void;
3475
3475
  /**
3476
3476
  * @description
@@ -3695,9 +3695,9 @@ declare class FormControlName extends NgControl implements OnChanges, OnDestroy
3695
3695
  /** @deprecated as of v6 */
3696
3696
  update: EventEmitter<any>;
3697
3697
  constructor(parent: ControlContainer, validators: (Validator | ValidatorFn)[], asyncValidators: (AsyncValidator | AsyncValidatorFn)[], valueAccessors: ControlValueAccessor[], _ngModelWarningConfig: string | null);
3698
- /** @nodoc */
3698
+ /** @docs-private */
3699
3699
  ngOnChanges(changes: SimpleChanges): void;
3700
- /** @nodoc */
3700
+ /** @docs-private */
3701
3701
  ngOnDestroy(): void;
3702
3702
  /**
3703
3703
  * @description
@@ -3781,9 +3781,9 @@ declare class FormGroupDirective extends ControlContainer implements Form, OnCha
3781
3781
  */
3782
3782
  ngSubmit: EventEmitter<any>;
3783
3783
  constructor(validators: (Validator | ValidatorFn)[], asyncValidators: (AsyncValidator | AsyncValidatorFn)[], callSetDisabledState?: SetDisabledStateOption | undefined);
3784
- /** @nodoc */
3784
+ /** @docs-private */
3785
3785
  ngOnChanges(changes: SimpleChanges): void;
3786
- /** @nodoc */
3786
+ /** @docs-private */
3787
3787
  ngOnDestroy(): void;
3788
3788
  /**
3789
3789
  * @description
@@ -4002,12 +4002,12 @@ declare class FormArrayName extends ControlContainer implements OnInit, OnDestro
4002
4002
  /**
4003
4003
  * A lifecycle method called when the directive's inputs are initialized. For internal use only.
4004
4004
  * @throws If the directive does not have a valid parent.
4005
- * @nodoc
4005
+ * @docs-private
4006
4006
  */
4007
4007
  ngOnInit(): void;
4008
4008
  /**
4009
4009
  * A lifecycle method called before the directive's instance is destroyed. For internal use only.
4010
- * @nodoc
4010
+ * @docs-private
4011
4011
  */
4012
4012
  ngOnDestroy(): void;
4013
4013
  /**
@@ -4129,11 +4129,11 @@ declare class NgModel extends NgControl implements OnChanges, OnDestroy {
4129
4129
  private _changeDetectorRef?;
4130
4130
  private callSetDisabledState?;
4131
4131
  readonly control: FormControl;
4132
- /** @nodoc */
4132
+ /** @docs-private */
4133
4133
  static ngAcceptInputType_isDisabled: boolean | string;
4134
4134
  /**
4135
4135
  * Internal reference to the view model value.
4136
- * @nodoc
4136
+ * @docs-private
4137
4137
  */
4138
4138
  viewModel: any;
4139
4139
  /**
@@ -4180,9 +4180,9 @@ declare class NgModel extends NgControl implements OnChanges, OnDestroy {
4180
4180
  */
4181
4181
  update: EventEmitter<any>;
4182
4182
  constructor(parent: ControlContainer, validators: (Validator | ValidatorFn)[], asyncValidators: (AsyncValidator | AsyncValidatorFn)[], valueAccessors: ControlValueAccessor[], _changeDetectorRef?: (ChangeDetectorRef | null) | undefined, callSetDisabledState?: SetDisabledStateOption | undefined);
4183
- /** @nodoc */
4183
+ /** @docs-private */
4184
4184
  ngOnChanges(changes: SimpleChanges): void;
4185
- /** @nodoc */
4185
+ /** @docs-private */
4186
4186
  ngOnDestroy(): void;
4187
4187
  /**
4188
4188
  * @description
@@ -4349,7 +4349,7 @@ declare class NgForm extends ControlContainer implements Form, AfterViewInit {
4349
4349
  updateOn?: FormHooks;
4350
4350
  };
4351
4351
  constructor(validators: (Validator | ValidatorFn)[], asyncValidators: (AsyncValidator | AsyncValidatorFn)[], callSetDisabledState?: SetDisabledStateOption | undefined);
4352
- /** @nodoc */
4352
+ /** @docs-private */
4353
4353
  ngAfterViewInit(): void;
4354
4354
  /**
4355
4355
  * @description
@@ -4485,7 +4485,7 @@ declare class FormControlDirective extends NgControl implements OnChanges, OnDes
4485
4485
  private callSetDisabledState?;
4486
4486
  /**
4487
4487
  * Internal reference to the view model value.
4488
- * @nodoc
4488
+ * @docs-private
4489
4489
  */
4490
4490
  viewModel: any;
4491
4491
  /**
@@ -4503,9 +4503,9 @@ declare class FormControlDirective extends NgControl implements OnChanges, OnDes
4503
4503
  /** @deprecated as of v6 */
4504
4504
  update: EventEmitter<any>;
4505
4505
  constructor(validators: (Validator | ValidatorFn)[], asyncValidators: (AsyncValidator | AsyncValidatorFn)[], valueAccessors: ControlValueAccessor[], _ngModelWarningConfig: string | null, callSetDisabledState?: SetDisabledStateOption | undefined);
4506
- /** @nodoc */
4506
+ /** @docs-private */
4507
4507
  ngOnChanges(changes: SimpleChanges): void;
4508
- /** @nodoc */
4508
+ /** @docs-private */
4509
4509
  ngOnDestroy(): void;
4510
4510
  /**
4511
4511
  * @description
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/forms",
3
- "version": "20.0.0-rc.0",
3
+ "version": "20.0.0-rc.1",
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": "20.0.0-rc.0",
15
- "@angular/common": "20.0.0-rc.0",
16
- "@angular/platform-browser": "20.0.0-rc.0",
14
+ "@angular/core": "20.0.0-rc.1",
15
+ "@angular/common": "20.0.0-rc.1",
16
+ "@angular/platform-browser": "20.0.0-rc.1",
17
17
  "rxjs": "^6.5.3 || ^7.4.0"
18
18
  },
19
19
  "repository": {