@angular/forms 20.0.0-rc.0 → 20.0.0-rc.2
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 +5 -5
package/fesm2022/forms.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.0.0-rc.
|
|
2
|
+
* @license Angular v20.0.0-rc.2
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -23,12 +23,12 @@ class BaseControlValueAccessor {
|
|
|
23
23
|
/**
|
|
24
24
|
* The registered callback function called when a change or input event occurs on the input
|
|
25
25
|
* element.
|
|
26
|
-
* @
|
|
26
|
+
* @docs-private
|
|
27
27
|
*/
|
|
28
28
|
onChange = (_) => { };
|
|
29
29
|
/**
|
|
30
30
|
* The registered callback function called when a blur event occurs on the input element.
|
|
31
|
-
* @
|
|
31
|
+
* @docs-private
|
|
32
32
|
*/
|
|
33
33
|
onTouched = () => { };
|
|
34
34
|
constructor(_renderer, _elementRef) {
|
|
@@ -38,36 +38,36 @@ class BaseControlValueAccessor {
|
|
|
38
38
|
/**
|
|
39
39
|
* Helper method that sets a property on a target element using the current Renderer
|
|
40
40
|
* implementation.
|
|
41
|
-
* @
|
|
41
|
+
* @docs-private
|
|
42
42
|
*/
|
|
43
43
|
setProperty(key, value) {
|
|
44
44
|
this._renderer.setProperty(this._elementRef.nativeElement, key, value);
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* Registers a function called when the control is touched.
|
|
48
|
-
* @
|
|
48
|
+
* @docs-private
|
|
49
49
|
*/
|
|
50
50
|
registerOnTouched(fn) {
|
|
51
51
|
this.onTouched = fn;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* Registers a function called when the control value changes.
|
|
55
|
-
* @
|
|
55
|
+
* @docs-private
|
|
56
56
|
*/
|
|
57
57
|
registerOnChange(fn) {
|
|
58
58
|
this.onChange = fn;
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* Sets the "disabled" property on the range input element.
|
|
62
|
-
* @
|
|
62
|
+
* @docs-private
|
|
63
63
|
*/
|
|
64
64
|
setDisabledState(isDisabled) {
|
|
65
65
|
this.setProperty('disabled', isDisabled);
|
|
66
66
|
}
|
|
67
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
68
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
67
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: BaseControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
68
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: BaseControlValueAccessor, isStandalone: true, ngImport: i0 });
|
|
69
69
|
}
|
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: BaseControlValueAccessor, decorators: [{
|
|
71
71
|
type: Directive
|
|
72
72
|
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }] });
|
|
73
73
|
/**
|
|
@@ -80,10 +80,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.0", ng
|
|
|
80
80
|
* applications code.
|
|
81
81
|
*/
|
|
82
82
|
class BuiltInControlValueAccessor extends BaseControlValueAccessor {
|
|
83
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
84
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
83
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: BuiltInControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
84
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: BuiltInControlValueAccessor, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
85
85
|
}
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: BuiltInControlValueAccessor, decorators: [{
|
|
87
87
|
type: Directive
|
|
88
88
|
}] });
|
|
89
89
|
/**
|
|
@@ -126,15 +126,15 @@ const CHECKBOX_VALUE_ACCESSOR = {
|
|
|
126
126
|
class CheckboxControlValueAccessor extends BuiltInControlValueAccessor {
|
|
127
127
|
/**
|
|
128
128
|
* Sets the "checked" property on the input element.
|
|
129
|
-
* @
|
|
129
|
+
* @docs-private
|
|
130
130
|
*/
|
|
131
131
|
writeValue(value) {
|
|
132
132
|
this.setProperty('checked', value);
|
|
133
133
|
}
|
|
134
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
135
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
134
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: CheckboxControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
135
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: CheckboxControlValueAccessor, isStandalone: false, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]", host: { listeners: { "change": "onChange($any($event.target).checked)", "blur": "onTouched()" } }, providers: [CHECKBOX_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
136
136
|
}
|
|
137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: CheckboxControlValueAccessor, decorators: [{
|
|
138
138
|
type: Directive,
|
|
139
139
|
args: [{
|
|
140
140
|
selector: 'input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]',
|
|
@@ -211,7 +211,7 @@ class DefaultValueAccessor extends BaseControlValueAccessor {
|
|
|
211
211
|
}
|
|
212
212
|
/**
|
|
213
213
|
* Sets the "value" property on the input element.
|
|
214
|
-
* @
|
|
214
|
+
* @docs-private
|
|
215
215
|
*/
|
|
216
216
|
writeValue(value) {
|
|
217
217
|
const normalizedValue = value == null ? '' : value;
|
|
@@ -232,10 +232,10 @@ class DefaultValueAccessor extends BaseControlValueAccessor {
|
|
|
232
232
|
this._composing = false;
|
|
233
233
|
this._compositionMode && this.onChange(value);
|
|
234
234
|
}
|
|
235
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
236
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
235
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: DefaultValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: COMPOSITION_BUFFER_MODE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
236
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: DefaultValueAccessor, isStandalone: false, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]", host: { listeners: { "input": "_handleInput($any($event.target).value)", "blur": "onTouched()", "compositionstart": "_compositionStart()", "compositionend": "_compositionEnd($any($event.target).value)" } }, providers: [DEFAULT_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
237
237
|
}
|
|
238
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: DefaultValueAccessor, decorators: [{
|
|
239
239
|
type: Directive,
|
|
240
240
|
args: [{
|
|
241
241
|
selector: 'input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]',
|
|
@@ -1371,10 +1371,10 @@ class NgControlStatus extends AbstractControlStatus {
|
|
|
1371
1371
|
constructor(cd) {
|
|
1372
1372
|
super(cd);
|
|
1373
1373
|
}
|
|
1374
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
1375
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
1374
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: NgControlStatus, deps: [{ token: NgControl, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1375
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: NgControlStatus, isStandalone: false, selector: "[formControlName],[ngModel],[formControl]", host: { properties: { "class.ng-untouched": "isUntouched", "class.ng-touched": "isTouched", "class.ng-pristine": "isPristine", "class.ng-dirty": "isDirty", "class.ng-valid": "isValid", "class.ng-invalid": "isInvalid", "class.ng-pending": "isPending" } }, usesInheritance: true, ngImport: i0 });
|
|
1376
1376
|
}
|
|
1377
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
1377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: NgControlStatus, decorators: [{
|
|
1378
1378
|
type: Directive,
|
|
1379
1379
|
args: [{
|
|
1380
1380
|
selector: '[formControlName],[ngModel],[formControl]',
|
|
@@ -1400,10 +1400,10 @@ class NgControlStatusGroup extends AbstractControlStatus {
|
|
|
1400
1400
|
constructor(cd) {
|
|
1401
1401
|
super(cd);
|
|
1402
1402
|
}
|
|
1403
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
1404
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
1403
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: NgControlStatusGroup, deps: [{ token: ControlContainer, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1404
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: NgControlStatusGroup, isStandalone: false, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]", host: { properties: { "class.ng-untouched": "isUntouched", "class.ng-touched": "isTouched", "class.ng-pristine": "isPristine", "class.ng-dirty": "isDirty", "class.ng-valid": "isValid", "class.ng-invalid": "isInvalid", "class.ng-pending": "isPending", "class.ng-submitted": "isSubmitted" } }, usesInheritance: true, ngImport: i0 });
|
|
1405
1405
|
}
|
|
1406
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
1406
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: NgControlStatusGroup, decorators: [{
|
|
1407
1407
|
type: Directive,
|
|
1408
1408
|
args: [{
|
|
1409
1409
|
selector: '[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]',
|
|
@@ -3588,7 +3588,7 @@ class NgForm extends ControlContainer {
|
|
|
3588
3588
|
this.callSetDisabledState = callSetDisabledState;
|
|
3589
3589
|
this.form = new FormGroup({}, composeValidators(validators), composeAsyncValidators(asyncValidators));
|
|
3590
3590
|
}
|
|
3591
|
-
/** @
|
|
3591
|
+
/** @docs-private */
|
|
3592
3592
|
ngAfterViewInit() {
|
|
3593
3593
|
this._setUpdateStrategy();
|
|
3594
3594
|
}
|
|
@@ -3763,10 +3763,10 @@ class NgForm extends ControlContainer {
|
|
|
3763
3763
|
path.pop();
|
|
3764
3764
|
return path.length ? this.form.get(path) : this.form;
|
|
3765
3765
|
}
|
|
3766
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
3767
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
3766
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: NgForm, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: CALL_SET_DISABLED_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3767
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: NgForm, isStandalone: false, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: { options: ["ngFormOptions", "options"] }, outputs: { ngSubmit: "ngSubmit" }, host: { listeners: { "submit": "onSubmit($event)", "reset": "onReset()" } }, providers: [formDirectiveProvider$1], exportAs: ["ngForm"], usesInheritance: true, ngImport: i0 });
|
|
3768
3768
|
}
|
|
3769
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
3769
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: NgForm, decorators: [{
|
|
3770
3770
|
type: Directive,
|
|
3771
3771
|
args: [{
|
|
3772
3772
|
selector: 'form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]',
|
|
@@ -3939,13 +3939,13 @@ class AbstractFormGroupDirective extends ControlContainer {
|
|
|
3939
3939
|
* @internal
|
|
3940
3940
|
*/
|
|
3941
3941
|
_parent;
|
|
3942
|
-
/** @
|
|
3942
|
+
/** @docs-private */
|
|
3943
3943
|
ngOnInit() {
|
|
3944
3944
|
this._checkParentType();
|
|
3945
3945
|
// Register the group with its parent group.
|
|
3946
3946
|
this.formDirective.addFormGroup(this);
|
|
3947
3947
|
}
|
|
3948
|
-
/** @
|
|
3948
|
+
/** @docs-private */
|
|
3949
3949
|
ngOnDestroy() {
|
|
3950
3950
|
if (this.formDirective) {
|
|
3951
3951
|
// Remove the group from its parent group.
|
|
@@ -3975,10 +3975,10 @@ class AbstractFormGroupDirective extends ControlContainer {
|
|
|
3975
3975
|
}
|
|
3976
3976
|
/** @internal */
|
|
3977
3977
|
_checkParentType() { }
|
|
3978
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
3979
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
3978
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: AbstractFormGroupDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3979
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: AbstractFormGroupDirective, isStandalone: false, usesInheritance: true, ngImport: i0 });
|
|
3980
3980
|
}
|
|
3981
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
3981
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: AbstractFormGroupDirective, decorators: [{
|
|
3982
3982
|
type: Directive,
|
|
3983
3983
|
args: [{
|
|
3984
3984
|
standalone: false,
|
|
@@ -4081,10 +4081,10 @@ class NgModelGroup extends AbstractFormGroupDirective {
|
|
|
4081
4081
|
throw modelGroupParentException();
|
|
4082
4082
|
}
|
|
4083
4083
|
}
|
|
4084
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
4085
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
4084
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: NgModelGroup, deps: [{ token: ControlContainer, host: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4085
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: NgModelGroup, isStandalone: false, selector: "[ngModelGroup]", inputs: { name: ["ngModelGroup", "name"] }, providers: [modelGroupProvider], exportAs: ["ngModelGroup"], usesInheritance: true, ngImport: i0 });
|
|
4086
4086
|
}
|
|
4087
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
4087
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: NgModelGroup, decorators: [{
|
|
4088
4088
|
type: Directive,
|
|
4089
4089
|
args: [{
|
|
4090
4090
|
selector: '[ngModelGroup]',
|
|
@@ -4232,13 +4232,13 @@ class NgModel extends NgControl {
|
|
|
4232
4232
|
// match the native "disabled attribute" semantics which can be observed on input elements.
|
|
4233
4233
|
// This static member tells the compiler that values of type "string" can also be assigned
|
|
4234
4234
|
// to the input in a template.
|
|
4235
|
-
/** @
|
|
4235
|
+
/** @docs-private */
|
|
4236
4236
|
static ngAcceptInputType_isDisabled;
|
|
4237
4237
|
/** @internal */
|
|
4238
4238
|
_registered = false;
|
|
4239
4239
|
/**
|
|
4240
4240
|
* Internal reference to the view model value.
|
|
4241
|
-
* @
|
|
4241
|
+
* @docs-private
|
|
4242
4242
|
*/
|
|
4243
4243
|
viewModel;
|
|
4244
4244
|
/**
|
|
@@ -4289,7 +4289,7 @@ class NgModel extends NgControl {
|
|
|
4289
4289
|
this._setAsyncValidators(asyncValidators);
|
|
4290
4290
|
this.valueAccessor = selectValueAccessor(this, valueAccessors);
|
|
4291
4291
|
}
|
|
4292
|
-
/** @
|
|
4292
|
+
/** @docs-private */
|
|
4293
4293
|
ngOnChanges(changes) {
|
|
4294
4294
|
this._checkForErrors();
|
|
4295
4295
|
if (!this._registered || 'name' in changes) {
|
|
@@ -4314,7 +4314,7 @@ class NgModel extends NgControl {
|
|
|
4314
4314
|
this.viewModel = this.model;
|
|
4315
4315
|
}
|
|
4316
4316
|
}
|
|
4317
|
-
/** @
|
|
4317
|
+
/** @docs-private */
|
|
4318
4318
|
ngOnDestroy() {
|
|
4319
4319
|
this.formDirective && this.formDirective.removeControl(this);
|
|
4320
4320
|
}
|
|
@@ -4396,10 +4396,10 @@ class NgModel extends NgControl {
|
|
|
4396
4396
|
_getPath(controlName) {
|
|
4397
4397
|
return this._parent ? controlPath(controlName, this._parent) : [controlName];
|
|
4398
4398
|
}
|
|
4399
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
4400
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
4399
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: NgModel, deps: [{ token: ControlContainer, host: true, optional: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }, { token: ChangeDetectorRef, optional: true }, { token: CALL_SET_DISABLED_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4400
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: NgModel, isStandalone: false, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: { name: "name", isDisabled: ["disabled", "isDisabled"], model: ["ngModel", "model"], options: ["ngModelOptions", "options"] }, outputs: { update: "ngModelChange" }, providers: [formControlBinding$1], exportAs: ["ngModel"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
4401
4401
|
}
|
|
4402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
4402
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: NgModel, decorators: [{
|
|
4403
4403
|
type: Directive,
|
|
4404
4404
|
args: [{
|
|
4405
4405
|
selector: '[ngModel]:not([formControlName]):not([formControl])',
|
|
@@ -4484,10 +4484,10 @@ function checkParentType$1(parent) {
|
|
|
4484
4484
|
* @ngModule FormsModule
|
|
4485
4485
|
*/
|
|
4486
4486
|
class ɵNgNoValidate {
|
|
4487
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
4488
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
4487
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: ɵNgNoValidate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4488
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: ɵNgNoValidate, isStandalone: false, selector: "form:not([ngNoForm]):not([ngNativeValidate])", host: { attributes: { "novalidate": "" } }, ngImport: i0 });
|
|
4489
4489
|
}
|
|
4490
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
4490
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: ɵNgNoValidate, decorators: [{
|
|
4491
4491
|
type: Directive,
|
|
4492
4492
|
args: [{
|
|
4493
4493
|
selector: 'form:not([ngNoForm]):not([ngNativeValidate])',
|
|
@@ -4528,7 +4528,7 @@ const NUMBER_VALUE_ACCESSOR = {
|
|
|
4528
4528
|
class NumberValueAccessor extends BuiltInControlValueAccessor {
|
|
4529
4529
|
/**
|
|
4530
4530
|
* Sets the "value" property on the input element.
|
|
4531
|
-
* @
|
|
4531
|
+
* @docs-private
|
|
4532
4532
|
*/
|
|
4533
4533
|
writeValue(value) {
|
|
4534
4534
|
// The value needs to be normalized for IE9, otherwise it is set to 'null' when null
|
|
@@ -4537,17 +4537,17 @@ class NumberValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4537
4537
|
}
|
|
4538
4538
|
/**
|
|
4539
4539
|
* Registers a function called when the control value changes.
|
|
4540
|
-
* @
|
|
4540
|
+
* @docs-private
|
|
4541
4541
|
*/
|
|
4542
4542
|
registerOnChange(fn) {
|
|
4543
4543
|
this.onChange = (value) => {
|
|
4544
4544
|
fn(value == '' ? null : parseFloat(value));
|
|
4545
4545
|
};
|
|
4546
4546
|
}
|
|
4547
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
4548
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
4547
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: NumberValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4548
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: NumberValueAccessor, isStandalone: false, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]", host: { listeners: { "input": "onChange($any($event.target).value)", "blur": "onTouched()" } }, providers: [NUMBER_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
4549
4549
|
}
|
|
4550
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
4550
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: NumberValueAccessor, decorators: [{
|
|
4551
4551
|
type: Directive,
|
|
4552
4552
|
args: [{
|
|
4553
4553
|
selector: 'input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]',
|
|
@@ -4609,10 +4609,10 @@ class RadioControlRegistry {
|
|
|
4609
4609
|
return false;
|
|
4610
4610
|
return (controlPair[0]._parent === accessor._control._parent && controlPair[1].name === accessor.name);
|
|
4611
4611
|
}
|
|
4612
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
4613
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
4612
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: RadioControlRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4613
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: RadioControlRegistry, providedIn: 'root' });
|
|
4614
4614
|
}
|
|
4615
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
4615
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: RadioControlRegistry, decorators: [{
|
|
4616
4616
|
type: Injectable,
|
|
4617
4617
|
args: [{ providedIn: 'root' }]
|
|
4618
4618
|
}] });
|
|
@@ -4651,7 +4651,7 @@ class RadioControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4651
4651
|
* Note: we declare `onChange` here (also used as host listener) as a function with no arguments
|
|
4652
4652
|
* to override the `onChange` function (which expects 1 argument) in the parent
|
|
4653
4653
|
* `BaseControlValueAccessor` class.
|
|
4654
|
-
* @
|
|
4654
|
+
* @docs-private
|
|
4655
4655
|
*/
|
|
4656
4656
|
onChange = () => { };
|
|
4657
4657
|
/**
|
|
@@ -4676,19 +4676,19 @@ class RadioControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4676
4676
|
this._registry = _registry;
|
|
4677
4677
|
this._injector = _injector;
|
|
4678
4678
|
}
|
|
4679
|
-
/** @
|
|
4679
|
+
/** @docs-private */
|
|
4680
4680
|
ngOnInit() {
|
|
4681
4681
|
this._control = this._injector.get(NgControl);
|
|
4682
4682
|
this._checkName();
|
|
4683
4683
|
this._registry.add(this._control, this);
|
|
4684
4684
|
}
|
|
4685
|
-
/** @
|
|
4685
|
+
/** @docs-private */
|
|
4686
4686
|
ngOnDestroy() {
|
|
4687
4687
|
this._registry.remove(this);
|
|
4688
4688
|
}
|
|
4689
4689
|
/**
|
|
4690
4690
|
* Sets the "checked" property value on the radio input element.
|
|
4691
|
-
* @
|
|
4691
|
+
* @docs-private
|
|
4692
4692
|
*/
|
|
4693
4693
|
writeValue(value) {
|
|
4694
4694
|
this._state = value === this.value;
|
|
@@ -4696,7 +4696,7 @@ class RadioControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4696
4696
|
}
|
|
4697
4697
|
/**
|
|
4698
4698
|
* Registers a function called when the control value changes.
|
|
4699
|
-
* @
|
|
4699
|
+
* @docs-private
|
|
4700
4700
|
*/
|
|
4701
4701
|
registerOnChange(fn) {
|
|
4702
4702
|
this._fn = fn;
|
|
@@ -4705,7 +4705,7 @@ class RadioControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4705
4705
|
this._registry.select(this);
|
|
4706
4706
|
};
|
|
4707
4707
|
}
|
|
4708
|
-
/** @
|
|
4708
|
+
/** @docs-private */
|
|
4709
4709
|
setDisabledState(isDisabled) {
|
|
4710
4710
|
/**
|
|
4711
4711
|
* `setDisabledState` is supposed to be called whenever the disabled state of a control changes,
|
|
@@ -4750,10 +4750,10 @@ class RadioControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4750
4750
|
if (!this.name && this.formControlName)
|
|
4751
4751
|
this.name = this.formControlName;
|
|
4752
4752
|
}
|
|
4753
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
4754
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
4753
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: RadioControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: RadioControlRegistry }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4754
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: RadioControlValueAccessor, isStandalone: false, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: { name: "name", formControlName: "formControlName", value: "value" }, host: { listeners: { "change": "onChange()", "blur": "onTouched()" } }, providers: [RADIO_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
4755
4755
|
}
|
|
4756
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
4756
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: RadioControlValueAccessor, decorators: [{
|
|
4757
4757
|
type: Directive,
|
|
4758
4758
|
args: [{
|
|
4759
4759
|
selector: 'input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]',
|
|
@@ -4801,24 +4801,24 @@ const RANGE_VALUE_ACCESSOR = {
|
|
|
4801
4801
|
class RangeValueAccessor extends BuiltInControlValueAccessor {
|
|
4802
4802
|
/**
|
|
4803
4803
|
* Sets the "value" property on the input element.
|
|
4804
|
-
* @
|
|
4804
|
+
* @docs-private
|
|
4805
4805
|
*/
|
|
4806
4806
|
writeValue(value) {
|
|
4807
4807
|
this.setProperty('value', parseFloat(value));
|
|
4808
4808
|
}
|
|
4809
4809
|
/**
|
|
4810
4810
|
* Registers a function called when the control value changes.
|
|
4811
|
-
* @
|
|
4811
|
+
* @docs-private
|
|
4812
4812
|
*/
|
|
4813
4813
|
registerOnChange(fn) {
|
|
4814
4814
|
this.onChange = (value) => {
|
|
4815
4815
|
fn(value == '' ? null : parseFloat(value));
|
|
4816
4816
|
};
|
|
4817
4817
|
}
|
|
4818
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
4819
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
4818
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: RangeValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4819
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: RangeValueAccessor, isStandalone: false, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]", host: { listeners: { "change": "onChange($any($event.target).value)", "input": "onChange($any($event.target).value)", "blur": "onTouched()" } }, providers: [RANGE_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
4820
4820
|
}
|
|
4821
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
4821
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: RangeValueAccessor, decorators: [{
|
|
4822
4822
|
type: Directive,
|
|
4823
4823
|
args: [{
|
|
4824
4824
|
selector: 'input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]',
|
|
@@ -4866,7 +4866,7 @@ class FormControlDirective extends NgControl {
|
|
|
4866
4866
|
callSetDisabledState;
|
|
4867
4867
|
/**
|
|
4868
4868
|
* Internal reference to the view model value.
|
|
4869
|
-
* @
|
|
4869
|
+
* @docs-private
|
|
4870
4870
|
*/
|
|
4871
4871
|
viewModel;
|
|
4872
4872
|
/**
|
|
@@ -4912,7 +4912,7 @@ class FormControlDirective extends NgControl {
|
|
|
4912
4912
|
this._setAsyncValidators(asyncValidators);
|
|
4913
4913
|
this.valueAccessor = selectValueAccessor(this, valueAccessors);
|
|
4914
4914
|
}
|
|
4915
|
-
/** @
|
|
4915
|
+
/** @docs-private */
|
|
4916
4916
|
ngOnChanges(changes) {
|
|
4917
4917
|
if (this._isControlChanged(changes)) {
|
|
4918
4918
|
const previousForm = changes['form'].previousValue;
|
|
@@ -4930,7 +4930,7 @@ class FormControlDirective extends NgControl {
|
|
|
4930
4930
|
this.viewModel = this.model;
|
|
4931
4931
|
}
|
|
4932
4932
|
}
|
|
4933
|
-
/** @
|
|
4933
|
+
/** @docs-private */
|
|
4934
4934
|
ngOnDestroy() {
|
|
4935
4935
|
if (this.form) {
|
|
4936
4936
|
cleanUpControl(this.form, this, /* validateControlPresenceOnChange */ false);
|
|
@@ -4964,10 +4964,10 @@ class FormControlDirective extends NgControl {
|
|
|
4964
4964
|
_isControlChanged(changes) {
|
|
4965
4965
|
return changes.hasOwnProperty('form');
|
|
4966
4966
|
}
|
|
4967
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
4968
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
4967
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: FormControlDirective, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }, { token: NG_MODEL_WITH_FORM_CONTROL_WARNING, optional: true }, { token: CALL_SET_DISABLED_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4968
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: FormControlDirective, isStandalone: false, selector: "[formControl]", inputs: { form: ["formControl", "form"], isDisabled: ["disabled", "isDisabled"], model: ["ngModel", "model"] }, outputs: { update: "ngModelChange" }, providers: [formControlBinding], exportAs: ["ngForm"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
4969
4969
|
}
|
|
4970
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
4970
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: FormControlDirective, decorators: [{
|
|
4971
4971
|
type: Directive,
|
|
4972
4972
|
args: [{
|
|
4973
4973
|
selector: '[formControl]',
|
|
@@ -5095,7 +5095,7 @@ class FormGroupDirective extends ControlContainer {
|
|
|
5095
5095
|
this._setValidators(validators);
|
|
5096
5096
|
this._setAsyncValidators(asyncValidators);
|
|
5097
5097
|
}
|
|
5098
|
-
/** @
|
|
5098
|
+
/** @docs-private */
|
|
5099
5099
|
ngOnChanges(changes) {
|
|
5100
5100
|
if ((typeof ngDevMode === 'undefined' || ngDevMode) && !this.form) {
|
|
5101
5101
|
throw missingFormException();
|
|
@@ -5107,7 +5107,7 @@ class FormGroupDirective extends ControlContainer {
|
|
|
5107
5107
|
this._oldForm = this.form;
|
|
5108
5108
|
}
|
|
5109
5109
|
}
|
|
5110
|
-
/** @
|
|
5110
|
+
/** @docs-private */
|
|
5111
5111
|
ngOnDestroy() {
|
|
5112
5112
|
if (this.form) {
|
|
5113
5113
|
cleanUpValidators(this.form, this);
|
|
@@ -5331,10 +5331,10 @@ class FormGroupDirective extends ControlContainer {
|
|
|
5331
5331
|
cleanUpValidators(this._oldForm, this);
|
|
5332
5332
|
}
|
|
5333
5333
|
}
|
|
5334
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
5335
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
5334
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: FormGroupDirective, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: CALL_SET_DISABLED_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5335
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: FormGroupDirective, isStandalone: false, selector: "[formGroup]", inputs: { form: ["formGroup", "form"] }, outputs: { ngSubmit: "ngSubmit" }, host: { listeners: { "submit": "onSubmit($event)", "reset": "onReset()" } }, providers: [formDirectiveProvider], exportAs: ["ngForm"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
5336
5336
|
}
|
|
5337
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
5337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: FormGroupDirective, decorators: [{
|
|
5338
5338
|
type: Directive,
|
|
5339
5339
|
args: [{
|
|
5340
5340
|
selector: '[formGroup]',
|
|
@@ -5443,10 +5443,10 @@ class FormGroupName extends AbstractFormGroupDirective {
|
|
|
5443
5443
|
throw groupParentException();
|
|
5444
5444
|
}
|
|
5445
5445
|
}
|
|
5446
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
5447
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
5446
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: FormGroupName, deps: [{ token: ControlContainer, host: true, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5447
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: FormGroupName, isStandalone: false, selector: "[formGroupName]", inputs: { name: ["formGroupName", "name"] }, providers: [formGroupNameProvider], usesInheritance: true, ngImport: i0 });
|
|
5448
5448
|
}
|
|
5449
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
5449
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: FormGroupName, decorators: [{
|
|
5450
5450
|
type: Directive,
|
|
5451
5451
|
args: [{
|
|
5452
5452
|
selector: '[formGroupName]',
|
|
@@ -5527,7 +5527,7 @@ class FormArrayName extends ControlContainer {
|
|
|
5527
5527
|
/**
|
|
5528
5528
|
* A lifecycle method called when the directive's inputs are initialized. For internal use only.
|
|
5529
5529
|
* @throws If the directive does not have a valid parent.
|
|
5530
|
-
* @
|
|
5530
|
+
* @docs-private
|
|
5531
5531
|
*/
|
|
5532
5532
|
ngOnInit() {
|
|
5533
5533
|
if (hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
@@ -5537,7 +5537,7 @@ class FormArrayName extends ControlContainer {
|
|
|
5537
5537
|
}
|
|
5538
5538
|
/**
|
|
5539
5539
|
* A lifecycle method called before the directive's instance is destroyed. For internal use only.
|
|
5540
|
-
* @
|
|
5540
|
+
* @docs-private
|
|
5541
5541
|
*/
|
|
5542
5542
|
ngOnDestroy() {
|
|
5543
5543
|
this.formDirective?.removeFormArray(this);
|
|
@@ -5564,10 +5564,10 @@ class FormArrayName extends ControlContainer {
|
|
|
5564
5564
|
get path() {
|
|
5565
5565
|
return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);
|
|
5566
5566
|
}
|
|
5567
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
5568
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
5567
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: FormArrayName, deps: [{ token: ControlContainer, host: true, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5568
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: FormArrayName, isStandalone: false, selector: "[formArrayName]", inputs: { name: ["formArrayName", "name"] }, providers: [formArrayNameProvider], usesInheritance: true, ngImport: i0 });
|
|
5569
5569
|
}
|
|
5570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
5570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: FormArrayName, decorators: [{
|
|
5571
5571
|
type: Directive,
|
|
5572
5572
|
args: [{
|
|
5573
5573
|
selector: '[formArrayName]',
|
|
@@ -5701,7 +5701,7 @@ class FormControlName extends NgControl {
|
|
|
5701
5701
|
this._setAsyncValidators(asyncValidators);
|
|
5702
5702
|
this.valueAccessor = selectValueAccessor(this, valueAccessors);
|
|
5703
5703
|
}
|
|
5704
|
-
/** @
|
|
5704
|
+
/** @docs-private */
|
|
5705
5705
|
ngOnChanges(changes) {
|
|
5706
5706
|
if (!this._added)
|
|
5707
5707
|
this._setUpControl();
|
|
@@ -5713,7 +5713,7 @@ class FormControlName extends NgControl {
|
|
|
5713
5713
|
this.formDirective.updateModel(this, this.model);
|
|
5714
5714
|
}
|
|
5715
5715
|
}
|
|
5716
|
-
/** @
|
|
5716
|
+
/** @docs-private */
|
|
5717
5717
|
ngOnDestroy() {
|
|
5718
5718
|
if (this.formDirective) {
|
|
5719
5719
|
this.formDirective.removeControl(this);
|
|
@@ -5751,10 +5751,10 @@ class FormControlName extends NgControl {
|
|
|
5751
5751
|
this.control = this.formDirective.addControl(this);
|
|
5752
5752
|
this._added = true;
|
|
5753
5753
|
}
|
|
5754
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
5755
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
5754
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: FormControlName, deps: [{ token: ControlContainer, host: true, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }, { token: NG_MODEL_WITH_FORM_CONTROL_WARNING, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5755
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: FormControlName, isStandalone: false, selector: "[formControlName]", inputs: { name: ["formControlName", "name"], isDisabled: ["disabled", "isDisabled"], model: ["ngModel", "model"] }, outputs: { update: "ngModelChange" }, providers: [controlNameBinding], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
5756
5756
|
}
|
|
5757
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
5757
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: FormControlName, decorators: [{
|
|
5758
5758
|
type: Directive,
|
|
5759
5759
|
args: [{
|
|
5760
5760
|
selector: '[formControlName]',
|
|
@@ -5889,7 +5889,7 @@ function _extractId$1(valueString) {
|
|
|
5889
5889
|
* @publicApi
|
|
5890
5890
|
*/
|
|
5891
5891
|
class SelectControlValueAccessor extends BuiltInControlValueAccessor {
|
|
5892
|
-
/** @
|
|
5892
|
+
/** @docs-private */
|
|
5893
5893
|
value;
|
|
5894
5894
|
/** @internal */
|
|
5895
5895
|
_optionMap = new Map();
|
|
@@ -5909,7 +5909,7 @@ class SelectControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
5909
5909
|
_compareWith = Object.is;
|
|
5910
5910
|
/**
|
|
5911
5911
|
* Sets the "value" property on the select element.
|
|
5912
|
-
* @
|
|
5912
|
+
* @docs-private
|
|
5913
5913
|
*/
|
|
5914
5914
|
writeValue(value) {
|
|
5915
5915
|
this.value = value;
|
|
@@ -5919,7 +5919,7 @@ class SelectControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
5919
5919
|
}
|
|
5920
5920
|
/**
|
|
5921
5921
|
* Registers a function called when the control value changes.
|
|
5922
|
-
* @
|
|
5922
|
+
* @docs-private
|
|
5923
5923
|
*/
|
|
5924
5924
|
registerOnChange(fn) {
|
|
5925
5925
|
this.onChange = (valueString) => {
|
|
@@ -5944,10 +5944,10 @@ class SelectControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
5944
5944
|
const id = _extractId$1(valueString);
|
|
5945
5945
|
return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;
|
|
5946
5946
|
}
|
|
5947
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
5948
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
5947
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: SelectControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
5948
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: SelectControlValueAccessor, isStandalone: false, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: { compareWith: "compareWith" }, host: { listeners: { "change": "onChange($any($event.target).value)", "blur": "onTouched()" } }, providers: [SELECT_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
5949
5949
|
}
|
|
5950
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
5950
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: SelectControlValueAccessor, decorators: [{
|
|
5951
5951
|
type: Directive,
|
|
5952
5952
|
args: [{
|
|
5953
5953
|
selector: 'select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]',
|
|
@@ -6010,17 +6010,17 @@ class NgSelectOption {
|
|
|
6010
6010
|
_setElementValue(value) {
|
|
6011
6011
|
this._renderer.setProperty(this._element.nativeElement, 'value', value);
|
|
6012
6012
|
}
|
|
6013
|
-
/** @
|
|
6013
|
+
/** @docs-private */
|
|
6014
6014
|
ngOnDestroy() {
|
|
6015
6015
|
if (this._select) {
|
|
6016
6016
|
this._select._optionMap.delete(this.id);
|
|
6017
6017
|
this._select.writeValue(this._select.value);
|
|
6018
6018
|
}
|
|
6019
6019
|
}
|
|
6020
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6021
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
6020
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: NgSelectOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6021
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: NgSelectOption, isStandalone: false, selector: "option", inputs: { ngValue: "ngValue", value: "value" }, ngImport: i0 });
|
|
6022
6022
|
}
|
|
6023
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6023
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: NgSelectOption, decorators: [{
|
|
6024
6024
|
type: Directive,
|
|
6025
6025
|
args: [{
|
|
6026
6026
|
selector: 'option',
|
|
@@ -6093,7 +6093,7 @@ function _extractId(valueString) {
|
|
|
6093
6093
|
class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {
|
|
6094
6094
|
/**
|
|
6095
6095
|
* The current value.
|
|
6096
|
-
* @
|
|
6096
|
+
* @docs-private
|
|
6097
6097
|
*/
|
|
6098
6098
|
value;
|
|
6099
6099
|
/** @internal */
|
|
@@ -6114,7 +6114,7 @@ class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
6114
6114
|
_compareWith = Object.is;
|
|
6115
6115
|
/**
|
|
6116
6116
|
* Sets the "value" property on one or of more of the select's options.
|
|
6117
|
-
* @
|
|
6117
|
+
* @docs-private
|
|
6118
6118
|
*/
|
|
6119
6119
|
writeValue(value) {
|
|
6120
6120
|
this.value = value;
|
|
@@ -6136,7 +6136,7 @@ class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
6136
6136
|
/**
|
|
6137
6137
|
* Registers a function called when the control value changes
|
|
6138
6138
|
* and writes an array of the selected options.
|
|
6139
|
-
* @
|
|
6139
|
+
* @docs-private
|
|
6140
6140
|
*/
|
|
6141
6141
|
registerOnChange(fn) {
|
|
6142
6142
|
this.onChange = (element) => {
|
|
@@ -6186,10 +6186,10 @@ class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
6186
6186
|
const id = _extractId(valueString);
|
|
6187
6187
|
return this._optionMap.has(id) ? this._optionMap.get(id)._value : valueString;
|
|
6188
6188
|
}
|
|
6189
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6190
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
6189
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: SelectMultipleControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6190
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: SelectMultipleControlValueAccessor, isStandalone: false, selector: "select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]", inputs: { compareWith: "compareWith" }, host: { listeners: { "change": "onChange($event.target)", "blur": "onTouched()" } }, providers: [SELECT_MULTIPLE_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
6191
6191
|
}
|
|
6192
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: SelectMultipleControlValueAccessor, decorators: [{
|
|
6193
6193
|
type: Directive,
|
|
6194
6194
|
args: [{
|
|
6195
6195
|
selector: 'select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]',
|
|
@@ -6260,17 +6260,17 @@ class ɵNgSelectMultipleOption {
|
|
|
6260
6260
|
_setSelected(selected) {
|
|
6261
6261
|
this._renderer.setProperty(this._element.nativeElement, 'selected', selected);
|
|
6262
6262
|
}
|
|
6263
|
-
/** @
|
|
6263
|
+
/** @docs-private */
|
|
6264
6264
|
ngOnDestroy() {
|
|
6265
6265
|
if (this._select) {
|
|
6266
6266
|
this._select._optionMap.delete(this.id);
|
|
6267
6267
|
this._select.writeValue(this._select.value);
|
|
6268
6268
|
}
|
|
6269
6269
|
}
|
|
6270
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6271
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
6270
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: ɵNgSelectMultipleOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectMultipleControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6271
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: ɵNgSelectMultipleOption, isStandalone: false, selector: "option", inputs: { ngValue: "ngValue", value: "value" }, ngImport: i0 });
|
|
6272
6272
|
}
|
|
6273
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6273
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: ɵNgSelectMultipleOption, decorators: [{
|
|
6274
6274
|
type: Directive,
|
|
6275
6275
|
args: [{
|
|
6276
6276
|
selector: 'option',
|
|
@@ -6323,7 +6323,7 @@ class AbstractValidatorDirective {
|
|
|
6323
6323
|
* @internal
|
|
6324
6324
|
*/
|
|
6325
6325
|
_enabled;
|
|
6326
|
-
/** @
|
|
6326
|
+
/** @docs-private */
|
|
6327
6327
|
ngOnChanges(changes) {
|
|
6328
6328
|
if (this.inputName in changes) {
|
|
6329
6329
|
const input = this.normalizeInput(changes[this.inputName].currentValue);
|
|
@@ -6334,11 +6334,11 @@ class AbstractValidatorDirective {
|
|
|
6334
6334
|
}
|
|
6335
6335
|
}
|
|
6336
6336
|
}
|
|
6337
|
-
/** @
|
|
6337
|
+
/** @docs-private */
|
|
6338
6338
|
validate(control) {
|
|
6339
6339
|
return this._validator(control);
|
|
6340
6340
|
}
|
|
6341
|
-
/** @
|
|
6341
|
+
/** @docs-private */
|
|
6342
6342
|
registerOnValidatorChange(fn) {
|
|
6343
6343
|
this._onChange = fn;
|
|
6344
6344
|
}
|
|
@@ -6352,10 +6352,10 @@ class AbstractValidatorDirective {
|
|
|
6352
6352
|
enabled(input) {
|
|
6353
6353
|
return input != null /* both `null` and `undefined` */;
|
|
6354
6354
|
}
|
|
6355
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6356
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
6355
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: AbstractValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6356
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: AbstractValidatorDirective, isStandalone: true, usesOnChanges: true, ngImport: i0 });
|
|
6357
6357
|
}
|
|
6358
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: AbstractValidatorDirective, decorators: [{
|
|
6359
6359
|
type: Directive
|
|
6360
6360
|
}] });
|
|
6361
6361
|
/**
|
|
@@ -6400,10 +6400,10 @@ class MaxValidator extends AbstractValidatorDirective {
|
|
|
6400
6400
|
normalizeInput = (input) => toFloat(input);
|
|
6401
6401
|
/** @internal */
|
|
6402
6402
|
createValidator = (max) => maxValidator(max);
|
|
6403
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6404
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
6403
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: MaxValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6404
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: MaxValidator, isStandalone: false, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: { max: "max" }, host: { properties: { "attr.max": "_enabled ? max : null" } }, providers: [MAX_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6405
6405
|
}
|
|
6406
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6406
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: MaxValidator, decorators: [{
|
|
6407
6407
|
type: Directive,
|
|
6408
6408
|
args: [{
|
|
6409
6409
|
selector: 'input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]',
|
|
@@ -6456,10 +6456,10 @@ class MinValidator extends AbstractValidatorDirective {
|
|
|
6456
6456
|
normalizeInput = (input) => toFloat(input);
|
|
6457
6457
|
/** @internal */
|
|
6458
6458
|
createValidator = (min) => minValidator(min);
|
|
6459
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6460
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
6459
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: MinValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6460
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: MinValidator, isStandalone: false, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: { min: "min" }, host: { properties: { "attr.min": "_enabled ? min : null" } }, providers: [MIN_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6461
6461
|
}
|
|
6462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6462
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: MinValidator, decorators: [{
|
|
6463
6463
|
type: Directive,
|
|
6464
6464
|
args: [{
|
|
6465
6465
|
selector: 'input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]',
|
|
@@ -6519,14 +6519,14 @@ class RequiredValidator extends AbstractValidatorDirective {
|
|
|
6519
6519
|
normalizeInput = booleanAttribute;
|
|
6520
6520
|
/** @internal */
|
|
6521
6521
|
createValidator = (input) => requiredValidator;
|
|
6522
|
-
/** @
|
|
6522
|
+
/** @docs-private */
|
|
6523
6523
|
enabled(input) {
|
|
6524
6524
|
return input;
|
|
6525
6525
|
}
|
|
6526
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6527
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
6526
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: RequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6527
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: RequiredValidator, isStandalone: false, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: { required: "required" }, host: { properties: { "attr.required": "_enabled ? \"\" : null" } }, providers: [REQUIRED_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6528
6528
|
}
|
|
6529
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6529
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: RequiredValidator, decorators: [{
|
|
6530
6530
|
type: Directive,
|
|
6531
6531
|
args: [{
|
|
6532
6532
|
selector: ':not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]',
|
|
@@ -6561,10 +6561,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.0", ng
|
|
|
6561
6561
|
class CheckboxRequiredValidator extends RequiredValidator {
|
|
6562
6562
|
/** @internal */
|
|
6563
6563
|
createValidator = (input) => requiredTrueValidator;
|
|
6564
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6565
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
6564
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: CheckboxRequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6565
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: CheckboxRequiredValidator, isStandalone: false, selector: "input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]", host: { properties: { "attr.required": "_enabled ? \"\" : null" } }, providers: [CHECKBOX_REQUIRED_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6566
6566
|
}
|
|
6567
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6567
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: CheckboxRequiredValidator, decorators: [{
|
|
6568
6568
|
type: Directive,
|
|
6569
6569
|
args: [{
|
|
6570
6570
|
selector: 'input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]',
|
|
@@ -6621,14 +6621,14 @@ class EmailValidator extends AbstractValidatorDirective {
|
|
|
6621
6621
|
normalizeInput = booleanAttribute;
|
|
6622
6622
|
/** @internal */
|
|
6623
6623
|
createValidator = (input) => emailValidator;
|
|
6624
|
-
/** @
|
|
6624
|
+
/** @docs-private */
|
|
6625
6625
|
enabled(input) {
|
|
6626
6626
|
return input;
|
|
6627
6627
|
}
|
|
6628
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6629
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
6628
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: EmailValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6629
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: EmailValidator, isStandalone: false, selector: "[email][formControlName],[email][formControl],[email][ngModel]", inputs: { email: "email" }, providers: [EMAIL_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6630
6630
|
}
|
|
6631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6631
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: EmailValidator, decorators: [{
|
|
6632
6632
|
type: Directive,
|
|
6633
6633
|
args: [{
|
|
6634
6634
|
selector: '[email][formControlName],[email][formControl],[email][ngModel]',
|
|
@@ -6680,10 +6680,10 @@ class MinLengthValidator extends AbstractValidatorDirective {
|
|
|
6680
6680
|
normalizeInput = (input) => toInteger(input);
|
|
6681
6681
|
/** @internal */
|
|
6682
6682
|
createValidator = (minlength) => minLengthValidator(minlength);
|
|
6683
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6684
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
6683
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: MinLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6684
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: MinLengthValidator, isStandalone: false, selector: "[minlength][formControlName],[minlength][formControl],[minlength][ngModel]", inputs: { minlength: "minlength" }, host: { properties: { "attr.minlength": "_enabled ? minlength : null" } }, providers: [MIN_LENGTH_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6685
6685
|
}
|
|
6686
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6686
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: MinLengthValidator, decorators: [{
|
|
6687
6687
|
type: Directive,
|
|
6688
6688
|
args: [{
|
|
6689
6689
|
selector: '[minlength][formControlName],[minlength][formControl],[minlength][ngModel]',
|
|
@@ -6736,10 +6736,10 @@ class MaxLengthValidator extends AbstractValidatorDirective {
|
|
|
6736
6736
|
normalizeInput = (input) => toInteger(input);
|
|
6737
6737
|
/** @internal */
|
|
6738
6738
|
createValidator = (maxlength) => maxLengthValidator(maxlength);
|
|
6739
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6740
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
6739
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: MaxLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6740
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: MaxLengthValidator, isStandalone: false, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: { maxlength: "maxlength" }, host: { properties: { "attr.maxlength": "_enabled ? maxlength : null" } }, providers: [MAX_LENGTH_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6741
6741
|
}
|
|
6742
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6742
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: MaxLengthValidator, decorators: [{
|
|
6743
6743
|
type: Directive,
|
|
6744
6744
|
args: [{
|
|
6745
6745
|
selector: '[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]',
|
|
@@ -6794,10 +6794,10 @@ class PatternValidator extends AbstractValidatorDirective {
|
|
|
6794
6794
|
normalizeInput = (input) => input;
|
|
6795
6795
|
/** @internal */
|
|
6796
6796
|
createValidator = (input) => patternValidator(input);
|
|
6797
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6798
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
6797
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: PatternValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6798
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-rc.2", type: PatternValidator, isStandalone: false, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: { pattern: "pattern" }, host: { properties: { "attr.pattern": "_enabled ? pattern : null" } }, providers: [PATTERN_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6799
6799
|
}
|
|
6800
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6800
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: PatternValidator, decorators: [{
|
|
6801
6801
|
type: Directive,
|
|
6802
6802
|
args: [{
|
|
6803
6803
|
selector: '[pattern][formControlName],[pattern][formControl],[pattern][ngModel]',
|
|
@@ -6843,8 +6843,8 @@ const REACTIVE_DRIVEN_DIRECTIVES = [
|
|
|
6843
6843
|
* Internal module used for sharing directives between FormsModule and ReactiveFormsModule
|
|
6844
6844
|
*/
|
|
6845
6845
|
class ɵInternalFormsSharedModule {
|
|
6846
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6847
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
6846
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: ɵInternalFormsSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6847
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-rc.2", ngImport: i0, type: ɵInternalFormsSharedModule, declarations: [ɵNgNoValidate,
|
|
6848
6848
|
NgSelectOption,
|
|
6849
6849
|
ɵNgSelectMultipleOption,
|
|
6850
6850
|
DefaultValueAccessor,
|
|
@@ -6883,9 +6883,9 @@ class ɵInternalFormsSharedModule {
|
|
|
6883
6883
|
EmailValidator,
|
|
6884
6884
|
MinValidator,
|
|
6885
6885
|
MaxValidator] });
|
|
6886
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6886
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: ɵInternalFormsSharedModule });
|
|
6887
6887
|
}
|
|
6888
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
6888
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: ɵInternalFormsSharedModule, decorators: [{
|
|
6889
6889
|
type: NgModule,
|
|
6890
6890
|
args: [{
|
|
6891
6891
|
declarations: SHARED_FORM_DIRECTIVES,
|
|
@@ -7537,10 +7537,10 @@ class FormBuilder {
|
|
|
7537
7537
|
return this.control(controls);
|
|
7538
7538
|
}
|
|
7539
7539
|
}
|
|
7540
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
7541
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
7540
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: FormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7541
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: FormBuilder, providedIn: 'root' });
|
|
7542
7542
|
}
|
|
7543
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
7543
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: FormBuilder, decorators: [{
|
|
7544
7544
|
type: Injectable,
|
|
7545
7545
|
args: [{ providedIn: 'root' }]
|
|
7546
7546
|
}] });
|
|
@@ -7552,10 +7552,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.0", ng
|
|
|
7552
7552
|
* @publicApi
|
|
7553
7553
|
*/
|
|
7554
7554
|
class NonNullableFormBuilder {
|
|
7555
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
7556
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
7555
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: NonNullableFormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7556
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: NonNullableFormBuilder, providedIn: 'root', useFactory: () => inject(FormBuilder).nonNullable });
|
|
7557
7557
|
}
|
|
7558
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
7558
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: NonNullableFormBuilder, decorators: [{
|
|
7559
7559
|
type: Injectable,
|
|
7560
7560
|
args: [{
|
|
7561
7561
|
providedIn: 'root',
|
|
@@ -7581,10 +7581,10 @@ class UntypedFormBuilder extends FormBuilder {
|
|
|
7581
7581
|
array(controlsConfig, validatorOrOpts, asyncValidator) {
|
|
7582
7582
|
return super.array(controlsConfig, validatorOrOpts, asyncValidator);
|
|
7583
7583
|
}
|
|
7584
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
7585
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
7584
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: UntypedFormBuilder, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
7585
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: UntypedFormBuilder, providedIn: 'root' });
|
|
7586
7586
|
}
|
|
7587
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
7587
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: UntypedFormBuilder, decorators: [{
|
|
7588
7588
|
type: Injectable,
|
|
7589
7589
|
args: [{ providedIn: 'root' }]
|
|
7590
7590
|
}] });
|
|
@@ -7597,7 +7597,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.0", ng
|
|
|
7597
7597
|
/**
|
|
7598
7598
|
* @publicApi
|
|
7599
7599
|
*/
|
|
7600
|
-
const VERSION = new Version('20.0.0-rc.
|
|
7600
|
+
const VERSION = new Version('20.0.0-rc.2');
|
|
7601
7601
|
|
|
7602
7602
|
/**
|
|
7603
7603
|
* Exports the required providers and directives for template-driven forms,
|
|
@@ -7628,11 +7628,11 @@ class FormsModule {
|
|
|
7628
7628
|
],
|
|
7629
7629
|
};
|
|
7630
7630
|
}
|
|
7631
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
7632
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
7633
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
7631
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: FormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7632
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-rc.2", ngImport: i0, type: FormsModule, declarations: [NgModel, NgModelGroup, NgForm], exports: [ɵInternalFormsSharedModule, NgModel, NgModelGroup, NgForm] });
|
|
7633
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: FormsModule, imports: [ɵInternalFormsSharedModule] });
|
|
7634
7634
|
}
|
|
7635
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
7635
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: FormsModule, decorators: [{
|
|
7636
7636
|
type: NgModule,
|
|
7637
7637
|
args: [{
|
|
7638
7638
|
declarations: TEMPLATE_DRIVEN_DIRECTIVES,
|
|
@@ -7674,11 +7674,11 @@ class ReactiveFormsModule {
|
|
|
7674
7674
|
],
|
|
7675
7675
|
};
|
|
7676
7676
|
}
|
|
7677
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
7678
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
7679
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
7677
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: ReactiveFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7678
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-rc.2", ngImport: i0, type: ReactiveFormsModule, declarations: [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName], exports: [ɵInternalFormsSharedModule, FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName] });
|
|
7679
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: ReactiveFormsModule, imports: [ɵInternalFormsSharedModule] });
|
|
7680
7680
|
}
|
|
7681
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
7681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: ReactiveFormsModule, decorators: [{
|
|
7682
7682
|
type: NgModule,
|
|
7683
7683
|
args: [{
|
|
7684
7684
|
declarations: [REACTIVE_DRIVEN_DIRECTIVES],
|