@angular/forms 19.2.10 → 19.2.12
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/fesm2022/forms.mjs +169 -169
- package/fesm2022/forms.mjs.map +1 -1
- package/index.d.ts +48 -48
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.2.
|
|
2
|
+
* @license Angular v19.2.12
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
/** @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
/** @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
/** @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
/** @
|
|
661
|
+
/** @docs-private */
|
|
662
662
|
ngOnChanges(changes: SimpleChanges): void;
|
|
663
|
-
/** @
|
|
663
|
+
/** @docs-private */
|
|
664
664
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
665
|
-
/** @
|
|
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
|
-
/** @
|
|
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
|
-
/** @
|
|
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>;
|
|
@@ -3050,7 +3050,7 @@ declare class RadioControlValueAccessor extends BuiltInControlValueAccessor impl
|
|
|
3050
3050
|
* Note: we declare `onChange` here (also used as host listener) as a function with no arguments
|
|
3051
3051
|
* to override the `onChange` function (which expects 1 argument) in the parent
|
|
3052
3052
|
* `BaseControlValueAccessor` class.
|
|
3053
|
-
* @
|
|
3053
|
+
* @docs-private
|
|
3054
3054
|
*/
|
|
3055
3055
|
onChange: () => void;
|
|
3056
3056
|
/**
|
|
@@ -3071,21 +3071,21 @@ declare class RadioControlValueAccessor extends BuiltInControlValueAccessor impl
|
|
|
3071
3071
|
value: any;
|
|
3072
3072
|
private callSetDisabledState;
|
|
3073
3073
|
constructor(renderer: Renderer2, elementRef: ElementRef, _registry: RadioControlRegistry, _injector: Injector);
|
|
3074
|
-
/** @
|
|
3074
|
+
/** @docs-private */
|
|
3075
3075
|
ngOnInit(): void;
|
|
3076
|
-
/** @
|
|
3076
|
+
/** @docs-private */
|
|
3077
3077
|
ngOnDestroy(): void;
|
|
3078
3078
|
/**
|
|
3079
3079
|
* Sets the "checked" property value on the radio input element.
|
|
3080
|
-
* @
|
|
3080
|
+
* @docs-private
|
|
3081
3081
|
*/
|
|
3082
3082
|
writeValue(value: any): void;
|
|
3083
3083
|
/**
|
|
3084
3084
|
* Registers a function called when the control value changes.
|
|
3085
|
-
* @
|
|
3085
|
+
* @docs-private
|
|
3086
3086
|
*/
|
|
3087
3087
|
registerOnChange(fn: (_: any) => {}): void;
|
|
3088
|
-
/** @
|
|
3088
|
+
/** @docs-private */
|
|
3089
3089
|
setDisabledState(isDisabled: boolean): void;
|
|
3090
3090
|
/**
|
|
3091
3091
|
* Sets the "value" on the radio input element and unchecks it.
|
|
@@ -3455,9 +3455,9 @@ declare const isFormControl: (control: unknown) => control is FormControl;
|
|
|
3455
3455
|
* @publicApi
|
|
3456
3456
|
*/
|
|
3457
3457
|
declare class AbstractFormGroupDirective extends ControlContainer implements OnInit, OnDestroy {
|
|
3458
|
-
/** @
|
|
3458
|
+
/** @docs-private */
|
|
3459
3459
|
ngOnInit(): void;
|
|
3460
|
-
/** @
|
|
3460
|
+
/** @docs-private */
|
|
3461
3461
|
ngOnDestroy(): void;
|
|
3462
3462
|
/**
|
|
3463
3463
|
* @description
|
|
@@ -3682,9 +3682,9 @@ declare class FormControlName extends NgControl implements OnChanges, OnDestroy
|
|
|
3682
3682
|
/** @deprecated as of v6 */
|
|
3683
3683
|
update: EventEmitter<any>;
|
|
3684
3684
|
constructor(parent: ControlContainer, validators: (Validator | ValidatorFn)[], asyncValidators: (AsyncValidator | AsyncValidatorFn)[], valueAccessors: ControlValueAccessor[], _ngModelWarningConfig: string | null);
|
|
3685
|
-
/** @
|
|
3685
|
+
/** @docs-private */
|
|
3686
3686
|
ngOnChanges(changes: SimpleChanges): void;
|
|
3687
|
-
/** @
|
|
3687
|
+
/** @docs-private */
|
|
3688
3688
|
ngOnDestroy(): void;
|
|
3689
3689
|
/**
|
|
3690
3690
|
* @description
|
|
@@ -3768,9 +3768,9 @@ declare class FormGroupDirective extends ControlContainer implements Form, OnCha
|
|
|
3768
3768
|
*/
|
|
3769
3769
|
ngSubmit: EventEmitter<any>;
|
|
3770
3770
|
constructor(validators: (Validator | ValidatorFn)[], asyncValidators: (AsyncValidator | AsyncValidatorFn)[], callSetDisabledState?: SetDisabledStateOption | undefined);
|
|
3771
|
-
/** @
|
|
3771
|
+
/** @docs-private */
|
|
3772
3772
|
ngOnChanges(changes: SimpleChanges): void;
|
|
3773
|
-
/** @
|
|
3773
|
+
/** @docs-private */
|
|
3774
3774
|
ngOnDestroy(): void;
|
|
3775
3775
|
/**
|
|
3776
3776
|
* @description
|
|
@@ -3986,12 +3986,12 @@ declare class FormArrayName extends ControlContainer implements OnInit, OnDestro
|
|
|
3986
3986
|
/**
|
|
3987
3987
|
* A lifecycle method called when the directive's inputs are initialized. For internal use only.
|
|
3988
3988
|
* @throws If the directive does not have a valid parent.
|
|
3989
|
-
* @
|
|
3989
|
+
* @docs-private
|
|
3990
3990
|
*/
|
|
3991
3991
|
ngOnInit(): void;
|
|
3992
3992
|
/**
|
|
3993
3993
|
* A lifecycle method called before the directive's instance is destroyed. For internal use only.
|
|
3994
|
-
* @
|
|
3994
|
+
* @docs-private
|
|
3995
3995
|
*/
|
|
3996
3996
|
ngOnDestroy(): void;
|
|
3997
3997
|
/**
|
|
@@ -4113,11 +4113,11 @@ declare class NgModel extends NgControl implements OnChanges, OnDestroy {
|
|
|
4113
4113
|
private _changeDetectorRef?;
|
|
4114
4114
|
private callSetDisabledState?;
|
|
4115
4115
|
readonly control: FormControl;
|
|
4116
|
-
/** @
|
|
4116
|
+
/** @docs-private */
|
|
4117
4117
|
static ngAcceptInputType_isDisabled: boolean | string;
|
|
4118
4118
|
/**
|
|
4119
4119
|
* Internal reference to the view model value.
|
|
4120
|
-
* @
|
|
4120
|
+
* @docs-private
|
|
4121
4121
|
*/
|
|
4122
4122
|
viewModel: any;
|
|
4123
4123
|
/**
|
|
@@ -4164,9 +4164,9 @@ declare class NgModel extends NgControl implements OnChanges, OnDestroy {
|
|
|
4164
4164
|
*/
|
|
4165
4165
|
update: EventEmitter<any>;
|
|
4166
4166
|
constructor(parent: ControlContainer, validators: (Validator | ValidatorFn)[], asyncValidators: (AsyncValidator | AsyncValidatorFn)[], valueAccessors: ControlValueAccessor[], _changeDetectorRef?: (ChangeDetectorRef | null) | undefined, callSetDisabledState?: SetDisabledStateOption | undefined);
|
|
4167
|
-
/** @
|
|
4167
|
+
/** @docs-private */
|
|
4168
4168
|
ngOnChanges(changes: SimpleChanges): void;
|
|
4169
|
-
/** @
|
|
4169
|
+
/** @docs-private */
|
|
4170
4170
|
ngOnDestroy(): void;
|
|
4171
4171
|
/**
|
|
4172
4172
|
* @description
|
|
@@ -4333,7 +4333,7 @@ declare class NgForm extends ControlContainer implements Form, AfterViewInit {
|
|
|
4333
4333
|
updateOn?: FormHooks;
|
|
4334
4334
|
};
|
|
4335
4335
|
constructor(validators: (Validator | ValidatorFn)[], asyncValidators: (AsyncValidator | AsyncValidatorFn)[], callSetDisabledState?: SetDisabledStateOption | undefined);
|
|
4336
|
-
/** @
|
|
4336
|
+
/** @docs-private */
|
|
4337
4337
|
ngAfterViewInit(): void;
|
|
4338
4338
|
/**
|
|
4339
4339
|
* @description
|
|
@@ -4469,7 +4469,7 @@ declare class FormControlDirective extends NgControl implements OnChanges, OnDes
|
|
|
4469
4469
|
private callSetDisabledState?;
|
|
4470
4470
|
/**
|
|
4471
4471
|
* Internal reference to the view model value.
|
|
4472
|
-
* @
|
|
4472
|
+
* @docs-private
|
|
4473
4473
|
*/
|
|
4474
4474
|
viewModel: any;
|
|
4475
4475
|
/**
|
|
@@ -4487,9 +4487,9 @@ declare class FormControlDirective extends NgControl implements OnChanges, OnDes
|
|
|
4487
4487
|
/** @deprecated as of v6 */
|
|
4488
4488
|
update: EventEmitter<any>;
|
|
4489
4489
|
constructor(validators: (Validator | ValidatorFn)[], asyncValidators: (AsyncValidator | AsyncValidatorFn)[], valueAccessors: ControlValueAccessor[], _ngModelWarningConfig: string | null, callSetDisabledState?: SetDisabledStateOption | undefined);
|
|
4490
|
-
/** @
|
|
4490
|
+
/** @docs-private */
|
|
4491
4491
|
ngOnChanges(changes: SimpleChanges): void;
|
|
4492
|
-
/** @
|
|
4492
|
+
/** @docs-private */
|
|
4493
4493
|
ngOnDestroy(): void;
|
|
4494
4494
|
/**
|
|
4495
4495
|
* @description
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/forms",
|
|
3
|
-
"version": "19.2.
|
|
3
|
+
"version": "19.2.12",
|
|
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": "19.2.
|
|
15
|
-
"@angular/common": "19.2.
|
|
16
|
-
"@angular/platform-browser": "19.2.
|
|
14
|
+
"@angular/core": "19.2.12",
|
|
15
|
+
"@angular/common": "19.2.12",
|
|
16
|
+
"@angular/platform-browser": "19.2.12",
|
|
17
17
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|