@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/fesm2022/forms.mjs
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
|
*/
|
|
@@ -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: "19.2.
|
|
68
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
67
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", 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: "19.2.12", type: BaseControlValueAccessor, isStandalone: true, ngImport: i0 });
|
|
69
69
|
}
|
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", 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: "19.2.10", ngImpo
|
|
|
80
80
|
* applications code.
|
|
81
81
|
*/
|
|
82
82
|
class BuiltInControlValueAccessor extends BaseControlValueAccessor {
|
|
83
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
84
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
83
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: BuiltInControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
84
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", type: BuiltInControlValueAccessor, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
85
85
|
}
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", 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: "19.2.
|
|
135
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
134
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: CheckboxControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
135
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", type: CheckboxControlValueAccessor, isStandalone: false, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]", host: { listeners: { "change": "onChange($event.target.checked)", "blur": "onTouched()" } }, providers: [CHECKBOX_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
136
136
|
}
|
|
137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", 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: "19.2.
|
|
236
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
235
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", 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: "19.2.12", 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": "$any(this)._handleInput($event.target.value)", "blur": "onTouched()", "compositionstart": "$any(this)._compositionStart()", "compositionend": "$any(this)._compositionEnd($event.target.value)" } }, providers: [DEFAULT_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
237
237
|
}
|
|
238
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", 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: "19.2.
|
|
1375
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
1374
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: NgControlStatus, deps: [{ token: NgControl, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1375
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", 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: "19.2.
|
|
1377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", 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: "19.2.
|
|
1404
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
1403
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", 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: "19.2.12", 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: "19.2.
|
|
1406
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: NgControlStatusGroup, decorators: [{
|
|
1407
1407
|
type: Directive,
|
|
1408
1408
|
args: [{
|
|
1409
1409
|
selector: '[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]',
|
|
@@ -3569,7 +3569,7 @@ class NgForm extends ControlContainer {
|
|
|
3569
3569
|
this.callSetDisabledState = callSetDisabledState;
|
|
3570
3570
|
this.form = new FormGroup({}, composeValidators(validators), composeAsyncValidators(asyncValidators));
|
|
3571
3571
|
}
|
|
3572
|
-
/** @
|
|
3572
|
+
/** @docs-private */
|
|
3573
3573
|
ngAfterViewInit() {
|
|
3574
3574
|
this._setUpdateStrategy();
|
|
3575
3575
|
}
|
|
@@ -3744,10 +3744,10 @@ class NgForm extends ControlContainer {
|
|
|
3744
3744
|
path.pop();
|
|
3745
3745
|
return path.length ? this.form.get(path) : this.form;
|
|
3746
3746
|
}
|
|
3747
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
3748
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
3747
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", 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 });
|
|
3748
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", 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 });
|
|
3749
3749
|
}
|
|
3750
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
3750
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: NgForm, decorators: [{
|
|
3751
3751
|
type: Directive,
|
|
3752
3752
|
args: [{
|
|
3753
3753
|
selector: 'form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]',
|
|
@@ -3920,13 +3920,13 @@ class AbstractFormGroupDirective extends ControlContainer {
|
|
|
3920
3920
|
* @internal
|
|
3921
3921
|
*/
|
|
3922
3922
|
_parent;
|
|
3923
|
-
/** @
|
|
3923
|
+
/** @docs-private */
|
|
3924
3924
|
ngOnInit() {
|
|
3925
3925
|
this._checkParentType();
|
|
3926
3926
|
// Register the group with its parent group.
|
|
3927
3927
|
this.formDirective.addFormGroup(this);
|
|
3928
3928
|
}
|
|
3929
|
-
/** @
|
|
3929
|
+
/** @docs-private */
|
|
3930
3930
|
ngOnDestroy() {
|
|
3931
3931
|
if (this.formDirective) {
|
|
3932
3932
|
// Remove the group from its parent group.
|
|
@@ -3956,10 +3956,10 @@ class AbstractFormGroupDirective extends ControlContainer {
|
|
|
3956
3956
|
}
|
|
3957
3957
|
/** @internal */
|
|
3958
3958
|
_checkParentType() { }
|
|
3959
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
3960
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
3959
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: AbstractFormGroupDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3960
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", type: AbstractFormGroupDirective, isStandalone: false, usesInheritance: true, ngImport: i0 });
|
|
3961
3961
|
}
|
|
3962
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
3962
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: AbstractFormGroupDirective, decorators: [{
|
|
3963
3963
|
type: Directive,
|
|
3964
3964
|
args: [{
|
|
3965
3965
|
standalone: false,
|
|
@@ -4062,10 +4062,10 @@ class NgModelGroup extends AbstractFormGroupDirective {
|
|
|
4062
4062
|
throw modelGroupParentException();
|
|
4063
4063
|
}
|
|
4064
4064
|
}
|
|
4065
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4066
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
4065
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", 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 });
|
|
4066
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", type: NgModelGroup, isStandalone: false, selector: "[ngModelGroup]", inputs: { name: ["ngModelGroup", "name"] }, providers: [modelGroupProvider], exportAs: ["ngModelGroup"], usesInheritance: true, ngImport: i0 });
|
|
4067
4067
|
}
|
|
4068
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4068
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: NgModelGroup, decorators: [{
|
|
4069
4069
|
type: Directive,
|
|
4070
4070
|
args: [{
|
|
4071
4071
|
selector: '[ngModelGroup]',
|
|
@@ -4213,13 +4213,13 @@ class NgModel extends NgControl {
|
|
|
4213
4213
|
// match the native "disabled attribute" semantics which can be observed on input elements.
|
|
4214
4214
|
// This static member tells the compiler that values of type "string" can also be assigned
|
|
4215
4215
|
// to the input in a template.
|
|
4216
|
-
/** @
|
|
4216
|
+
/** @docs-private */
|
|
4217
4217
|
static ngAcceptInputType_isDisabled;
|
|
4218
4218
|
/** @internal */
|
|
4219
4219
|
_registered = false;
|
|
4220
4220
|
/**
|
|
4221
4221
|
* Internal reference to the view model value.
|
|
4222
|
-
* @
|
|
4222
|
+
* @docs-private
|
|
4223
4223
|
*/
|
|
4224
4224
|
viewModel;
|
|
4225
4225
|
/**
|
|
@@ -4270,7 +4270,7 @@ class NgModel extends NgControl {
|
|
|
4270
4270
|
this._setAsyncValidators(asyncValidators);
|
|
4271
4271
|
this.valueAccessor = selectValueAccessor(this, valueAccessors);
|
|
4272
4272
|
}
|
|
4273
|
-
/** @
|
|
4273
|
+
/** @docs-private */
|
|
4274
4274
|
ngOnChanges(changes) {
|
|
4275
4275
|
this._checkForErrors();
|
|
4276
4276
|
if (!this._registered || 'name' in changes) {
|
|
@@ -4295,7 +4295,7 @@ class NgModel extends NgControl {
|
|
|
4295
4295
|
this.viewModel = this.model;
|
|
4296
4296
|
}
|
|
4297
4297
|
}
|
|
4298
|
-
/** @
|
|
4298
|
+
/** @docs-private */
|
|
4299
4299
|
ngOnDestroy() {
|
|
4300
4300
|
this.formDirective && this.formDirective.removeControl(this);
|
|
4301
4301
|
}
|
|
@@ -4377,10 +4377,10 @@ class NgModel extends NgControl {
|
|
|
4377
4377
|
_getPath(controlName) {
|
|
4378
4378
|
return this._parent ? controlPath(controlName, this._parent) : [controlName];
|
|
4379
4379
|
}
|
|
4380
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4381
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
4380
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", 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 });
|
|
4381
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", 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 });
|
|
4382
4382
|
}
|
|
4383
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4383
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: NgModel, decorators: [{
|
|
4384
4384
|
type: Directive,
|
|
4385
4385
|
args: [{
|
|
4386
4386
|
selector: '[ngModel]:not([formControlName]):not([formControl])',
|
|
@@ -4465,10 +4465,10 @@ function checkParentType$1(parent) {
|
|
|
4465
4465
|
* @ngModule FormsModule
|
|
4466
4466
|
*/
|
|
4467
4467
|
class ɵNgNoValidate {
|
|
4468
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4469
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
4468
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: ɵNgNoValidate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4469
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", type: ɵNgNoValidate, isStandalone: false, selector: "form:not([ngNoForm]):not([ngNativeValidate])", host: { attributes: { "novalidate": "" } }, ngImport: i0 });
|
|
4470
4470
|
}
|
|
4471
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4471
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: ɵNgNoValidate, decorators: [{
|
|
4472
4472
|
type: Directive,
|
|
4473
4473
|
args: [{
|
|
4474
4474
|
selector: 'form:not([ngNoForm]):not([ngNativeValidate])',
|
|
@@ -4509,7 +4509,7 @@ const NUMBER_VALUE_ACCESSOR = {
|
|
|
4509
4509
|
class NumberValueAccessor extends BuiltInControlValueAccessor {
|
|
4510
4510
|
/**
|
|
4511
4511
|
* Sets the "value" property on the input element.
|
|
4512
|
-
* @
|
|
4512
|
+
* @docs-private
|
|
4513
4513
|
*/
|
|
4514
4514
|
writeValue(value) {
|
|
4515
4515
|
// The value needs to be normalized for IE9, otherwise it is set to 'null' when null
|
|
@@ -4518,17 +4518,17 @@ class NumberValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4518
4518
|
}
|
|
4519
4519
|
/**
|
|
4520
4520
|
* Registers a function called when the control value changes.
|
|
4521
|
-
* @
|
|
4521
|
+
* @docs-private
|
|
4522
4522
|
*/
|
|
4523
4523
|
registerOnChange(fn) {
|
|
4524
4524
|
this.onChange = (value) => {
|
|
4525
4525
|
fn(value == '' ? null : parseFloat(value));
|
|
4526
4526
|
};
|
|
4527
4527
|
}
|
|
4528
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4529
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
4528
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: NumberValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4529
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", type: NumberValueAccessor, isStandalone: false, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]", host: { listeners: { "input": "onChange($event.target.value)", "blur": "onTouched()" } }, providers: [NUMBER_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
4530
4530
|
}
|
|
4531
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4531
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: NumberValueAccessor, decorators: [{
|
|
4532
4532
|
type: Directive,
|
|
4533
4533
|
args: [{
|
|
4534
4534
|
selector: 'input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]',
|
|
@@ -4590,10 +4590,10 @@ class RadioControlRegistry {
|
|
|
4590
4590
|
return false;
|
|
4591
4591
|
return (controlPair[0]._parent === accessor._control._parent && controlPair[1].name === accessor.name);
|
|
4592
4592
|
}
|
|
4593
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4594
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
4593
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: RadioControlRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4594
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: RadioControlRegistry, providedIn: 'root' });
|
|
4595
4595
|
}
|
|
4596
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4596
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: RadioControlRegistry, decorators: [{
|
|
4597
4597
|
type: Injectable,
|
|
4598
4598
|
args: [{ providedIn: 'root' }]
|
|
4599
4599
|
}] });
|
|
@@ -4632,7 +4632,7 @@ class RadioControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4632
4632
|
* Note: we declare `onChange` here (also used as host listener) as a function with no arguments
|
|
4633
4633
|
* to override the `onChange` function (which expects 1 argument) in the parent
|
|
4634
4634
|
* `BaseControlValueAccessor` class.
|
|
4635
|
-
* @
|
|
4635
|
+
* @docs-private
|
|
4636
4636
|
*/
|
|
4637
4637
|
onChange = () => { };
|
|
4638
4638
|
/**
|
|
@@ -4657,19 +4657,19 @@ class RadioControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4657
4657
|
this._registry = _registry;
|
|
4658
4658
|
this._injector = _injector;
|
|
4659
4659
|
}
|
|
4660
|
-
/** @
|
|
4660
|
+
/** @docs-private */
|
|
4661
4661
|
ngOnInit() {
|
|
4662
4662
|
this._control = this._injector.get(NgControl);
|
|
4663
4663
|
this._checkName();
|
|
4664
4664
|
this._registry.add(this._control, this);
|
|
4665
4665
|
}
|
|
4666
|
-
/** @
|
|
4666
|
+
/** @docs-private */
|
|
4667
4667
|
ngOnDestroy() {
|
|
4668
4668
|
this._registry.remove(this);
|
|
4669
4669
|
}
|
|
4670
4670
|
/**
|
|
4671
4671
|
* Sets the "checked" property value on the radio input element.
|
|
4672
|
-
* @
|
|
4672
|
+
* @docs-private
|
|
4673
4673
|
*/
|
|
4674
4674
|
writeValue(value) {
|
|
4675
4675
|
this._state = value === this.value;
|
|
@@ -4677,7 +4677,7 @@ class RadioControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4677
4677
|
}
|
|
4678
4678
|
/**
|
|
4679
4679
|
* Registers a function called when the control value changes.
|
|
4680
|
-
* @
|
|
4680
|
+
* @docs-private
|
|
4681
4681
|
*/
|
|
4682
4682
|
registerOnChange(fn) {
|
|
4683
4683
|
this._fn = fn;
|
|
@@ -4686,7 +4686,7 @@ class RadioControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4686
4686
|
this._registry.select(this);
|
|
4687
4687
|
};
|
|
4688
4688
|
}
|
|
4689
|
-
/** @
|
|
4689
|
+
/** @docs-private */
|
|
4690
4690
|
setDisabledState(isDisabled) {
|
|
4691
4691
|
/**
|
|
4692
4692
|
* `setDisabledState` is supposed to be called whenever the disabled state of a control changes,
|
|
@@ -4731,10 +4731,10 @@ class RadioControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4731
4731
|
if (!this.name && this.formControlName)
|
|
4732
4732
|
this.name = this.formControlName;
|
|
4733
4733
|
}
|
|
4734
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4735
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
4734
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: RadioControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: RadioControlRegistry }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4735
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", 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 });
|
|
4736
4736
|
}
|
|
4737
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4737
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: RadioControlValueAccessor, decorators: [{
|
|
4738
4738
|
type: Directive,
|
|
4739
4739
|
args: [{
|
|
4740
4740
|
selector: 'input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]',
|
|
@@ -4782,24 +4782,24 @@ const RANGE_VALUE_ACCESSOR = {
|
|
|
4782
4782
|
class RangeValueAccessor extends BuiltInControlValueAccessor {
|
|
4783
4783
|
/**
|
|
4784
4784
|
* Sets the "value" property on the input element.
|
|
4785
|
-
* @
|
|
4785
|
+
* @docs-private
|
|
4786
4786
|
*/
|
|
4787
4787
|
writeValue(value) {
|
|
4788
4788
|
this.setProperty('value', parseFloat(value));
|
|
4789
4789
|
}
|
|
4790
4790
|
/**
|
|
4791
4791
|
* Registers a function called when the control value changes.
|
|
4792
|
-
* @
|
|
4792
|
+
* @docs-private
|
|
4793
4793
|
*/
|
|
4794
4794
|
registerOnChange(fn) {
|
|
4795
4795
|
this.onChange = (value) => {
|
|
4796
4796
|
fn(value == '' ? null : parseFloat(value));
|
|
4797
4797
|
};
|
|
4798
4798
|
}
|
|
4799
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4800
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
4799
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: RangeValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4800
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", type: RangeValueAccessor, isStandalone: false, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]", host: { listeners: { "change": "onChange($event.target.value)", "input": "onChange($event.target.value)", "blur": "onTouched()" } }, providers: [RANGE_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
4801
4801
|
}
|
|
4802
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4802
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: RangeValueAccessor, decorators: [{
|
|
4803
4803
|
type: Directive,
|
|
4804
4804
|
args: [{
|
|
4805
4805
|
selector: 'input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]',
|
|
@@ -4847,7 +4847,7 @@ class FormControlDirective extends NgControl {
|
|
|
4847
4847
|
callSetDisabledState;
|
|
4848
4848
|
/**
|
|
4849
4849
|
* Internal reference to the view model value.
|
|
4850
|
-
* @
|
|
4850
|
+
* @docs-private
|
|
4851
4851
|
*/
|
|
4852
4852
|
viewModel;
|
|
4853
4853
|
/**
|
|
@@ -4893,7 +4893,7 @@ class FormControlDirective extends NgControl {
|
|
|
4893
4893
|
this._setAsyncValidators(asyncValidators);
|
|
4894
4894
|
this.valueAccessor = selectValueAccessor(this, valueAccessors);
|
|
4895
4895
|
}
|
|
4896
|
-
/** @
|
|
4896
|
+
/** @docs-private */
|
|
4897
4897
|
ngOnChanges(changes) {
|
|
4898
4898
|
if (this._isControlChanged(changes)) {
|
|
4899
4899
|
const previousForm = changes['form'].previousValue;
|
|
@@ -4911,7 +4911,7 @@ class FormControlDirective extends NgControl {
|
|
|
4911
4911
|
this.viewModel = this.model;
|
|
4912
4912
|
}
|
|
4913
4913
|
}
|
|
4914
|
-
/** @
|
|
4914
|
+
/** @docs-private */
|
|
4915
4915
|
ngOnDestroy() {
|
|
4916
4916
|
if (this.form) {
|
|
4917
4917
|
cleanUpControl(this.form, this, /* validateControlPresenceOnChange */ false);
|
|
@@ -4945,10 +4945,10 @@ class FormControlDirective extends NgControl {
|
|
|
4945
4945
|
_isControlChanged(changes) {
|
|
4946
4946
|
return changes.hasOwnProperty('form');
|
|
4947
4947
|
}
|
|
4948
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4949
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
4948
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", 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 });
|
|
4949
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", 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 });
|
|
4950
4950
|
}
|
|
4951
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4951
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: FormControlDirective, decorators: [{
|
|
4952
4952
|
type: Directive,
|
|
4953
4953
|
args: [{
|
|
4954
4954
|
selector: '[formControl]',
|
|
@@ -5076,7 +5076,7 @@ class FormGroupDirective extends ControlContainer {
|
|
|
5076
5076
|
this._setValidators(validators);
|
|
5077
5077
|
this._setAsyncValidators(asyncValidators);
|
|
5078
5078
|
}
|
|
5079
|
-
/** @
|
|
5079
|
+
/** @docs-private */
|
|
5080
5080
|
ngOnChanges(changes) {
|
|
5081
5081
|
if ((typeof ngDevMode === 'undefined' || ngDevMode) && !this.form) {
|
|
5082
5082
|
throw missingFormException();
|
|
@@ -5088,7 +5088,7 @@ class FormGroupDirective extends ControlContainer {
|
|
|
5088
5088
|
this._oldForm = this.form;
|
|
5089
5089
|
}
|
|
5090
5090
|
}
|
|
5091
|
-
/** @
|
|
5091
|
+
/** @docs-private */
|
|
5092
5092
|
ngOnDestroy() {
|
|
5093
5093
|
if (this.form) {
|
|
5094
5094
|
cleanUpValidators(this.form, this);
|
|
@@ -5310,10 +5310,10 @@ class FormGroupDirective extends ControlContainer {
|
|
|
5310
5310
|
cleanUpValidators(this._oldForm, this);
|
|
5311
5311
|
}
|
|
5312
5312
|
}
|
|
5313
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
5314
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
5313
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", 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 });
|
|
5314
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", 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 });
|
|
5315
5315
|
}
|
|
5316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
5316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: FormGroupDirective, decorators: [{
|
|
5317
5317
|
type: Directive,
|
|
5318
5318
|
args: [{
|
|
5319
5319
|
selector: '[formGroup]',
|
|
@@ -5422,10 +5422,10 @@ class FormGroupName extends AbstractFormGroupDirective {
|
|
|
5422
5422
|
throw groupParentException();
|
|
5423
5423
|
}
|
|
5424
5424
|
}
|
|
5425
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
5426
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
5425
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", 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 });
|
|
5426
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", type: FormGroupName, isStandalone: false, selector: "[formGroupName]", inputs: { name: ["formGroupName", "name"] }, providers: [formGroupNameProvider], usesInheritance: true, ngImport: i0 });
|
|
5427
5427
|
}
|
|
5428
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
5428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: FormGroupName, decorators: [{
|
|
5429
5429
|
type: Directive,
|
|
5430
5430
|
args: [{
|
|
5431
5431
|
selector: '[formGroupName]',
|
|
@@ -5506,7 +5506,7 @@ class FormArrayName extends ControlContainer {
|
|
|
5506
5506
|
/**
|
|
5507
5507
|
* A lifecycle method called when the directive's inputs are initialized. For internal use only.
|
|
5508
5508
|
* @throws If the directive does not have a valid parent.
|
|
5509
|
-
* @
|
|
5509
|
+
* @docs-private
|
|
5510
5510
|
*/
|
|
5511
5511
|
ngOnInit() {
|
|
5512
5512
|
if (hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
@@ -5516,7 +5516,7 @@ class FormArrayName extends ControlContainer {
|
|
|
5516
5516
|
}
|
|
5517
5517
|
/**
|
|
5518
5518
|
* A lifecycle method called before the directive's instance is destroyed. For internal use only.
|
|
5519
|
-
* @
|
|
5519
|
+
* @docs-private
|
|
5520
5520
|
*/
|
|
5521
5521
|
ngOnDestroy() {
|
|
5522
5522
|
this.formDirective?.removeFormArray(this);
|
|
@@ -5543,10 +5543,10 @@ class FormArrayName extends ControlContainer {
|
|
|
5543
5543
|
get path() {
|
|
5544
5544
|
return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);
|
|
5545
5545
|
}
|
|
5546
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
5547
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
5546
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", 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 });
|
|
5547
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", type: FormArrayName, isStandalone: false, selector: "[formArrayName]", inputs: { name: ["formArrayName", "name"] }, providers: [formArrayNameProvider], usesInheritance: true, ngImport: i0 });
|
|
5548
5548
|
}
|
|
5549
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
5549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: FormArrayName, decorators: [{
|
|
5550
5550
|
type: Directive,
|
|
5551
5551
|
args: [{
|
|
5552
5552
|
selector: '[formArrayName]',
|
|
@@ -5680,7 +5680,7 @@ class FormControlName extends NgControl {
|
|
|
5680
5680
|
this._setAsyncValidators(asyncValidators);
|
|
5681
5681
|
this.valueAccessor = selectValueAccessor(this, valueAccessors);
|
|
5682
5682
|
}
|
|
5683
|
-
/** @
|
|
5683
|
+
/** @docs-private */
|
|
5684
5684
|
ngOnChanges(changes) {
|
|
5685
5685
|
if (!this._added)
|
|
5686
5686
|
this._setUpControl();
|
|
@@ -5692,7 +5692,7 @@ class FormControlName extends NgControl {
|
|
|
5692
5692
|
this.formDirective.updateModel(this, this.model);
|
|
5693
5693
|
}
|
|
5694
5694
|
}
|
|
5695
|
-
/** @
|
|
5695
|
+
/** @docs-private */
|
|
5696
5696
|
ngOnDestroy() {
|
|
5697
5697
|
if (this.formDirective) {
|
|
5698
5698
|
this.formDirective.removeControl(this);
|
|
@@ -5730,10 +5730,10 @@ class FormControlName extends NgControl {
|
|
|
5730
5730
|
this.control = this.formDirective.addControl(this);
|
|
5731
5731
|
this._added = true;
|
|
5732
5732
|
}
|
|
5733
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
5734
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
5733
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", 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 });
|
|
5734
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", 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 });
|
|
5735
5735
|
}
|
|
5736
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
5736
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: FormControlName, decorators: [{
|
|
5737
5737
|
type: Directive,
|
|
5738
5738
|
args: [{
|
|
5739
5739
|
selector: '[formControlName]',
|
|
@@ -5868,7 +5868,7 @@ function _extractId$1(valueString) {
|
|
|
5868
5868
|
* @publicApi
|
|
5869
5869
|
*/
|
|
5870
5870
|
class SelectControlValueAccessor extends BuiltInControlValueAccessor {
|
|
5871
|
-
/** @
|
|
5871
|
+
/** @docs-private */
|
|
5872
5872
|
value;
|
|
5873
5873
|
/** @internal */
|
|
5874
5874
|
_optionMap = new Map();
|
|
@@ -5888,7 +5888,7 @@ class SelectControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
5888
5888
|
_compareWith = Object.is;
|
|
5889
5889
|
/**
|
|
5890
5890
|
* Sets the "value" property on the select element.
|
|
5891
|
-
* @
|
|
5891
|
+
* @docs-private
|
|
5892
5892
|
*/
|
|
5893
5893
|
writeValue(value) {
|
|
5894
5894
|
this.value = value;
|
|
@@ -5898,7 +5898,7 @@ class SelectControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
5898
5898
|
}
|
|
5899
5899
|
/**
|
|
5900
5900
|
* Registers a function called when the control value changes.
|
|
5901
|
-
* @
|
|
5901
|
+
* @docs-private
|
|
5902
5902
|
*/
|
|
5903
5903
|
registerOnChange(fn) {
|
|
5904
5904
|
this.onChange = (valueString) => {
|
|
@@ -5923,10 +5923,10 @@ class SelectControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
5923
5923
|
const id = _extractId$1(valueString);
|
|
5924
5924
|
return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;
|
|
5925
5925
|
}
|
|
5926
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
5927
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
5926
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: SelectControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
5927
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", type: SelectControlValueAccessor, isStandalone: false, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: { compareWith: "compareWith" }, host: { listeners: { "change": "onChange($event.target.value)", "blur": "onTouched()" } }, providers: [SELECT_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
5928
5928
|
}
|
|
5929
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
5929
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: SelectControlValueAccessor, decorators: [{
|
|
5930
5930
|
type: Directive,
|
|
5931
5931
|
args: [{
|
|
5932
5932
|
selector: 'select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]',
|
|
@@ -5989,17 +5989,17 @@ class NgSelectOption {
|
|
|
5989
5989
|
_setElementValue(value) {
|
|
5990
5990
|
this._renderer.setProperty(this._element.nativeElement, 'value', value);
|
|
5991
5991
|
}
|
|
5992
|
-
/** @
|
|
5992
|
+
/** @docs-private */
|
|
5993
5993
|
ngOnDestroy() {
|
|
5994
5994
|
if (this._select) {
|
|
5995
5995
|
this._select._optionMap.delete(this.id);
|
|
5996
5996
|
this._select.writeValue(this._select.value);
|
|
5997
5997
|
}
|
|
5998
5998
|
}
|
|
5999
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6000
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
5999
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: NgSelectOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6000
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", type: NgSelectOption, isStandalone: false, selector: "option", inputs: { ngValue: "ngValue", value: "value" }, ngImport: i0 });
|
|
6001
6001
|
}
|
|
6002
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6002
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: NgSelectOption, decorators: [{
|
|
6003
6003
|
type: Directive,
|
|
6004
6004
|
args: [{
|
|
6005
6005
|
selector: 'option',
|
|
@@ -6072,7 +6072,7 @@ function _extractId(valueString) {
|
|
|
6072
6072
|
class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {
|
|
6073
6073
|
/**
|
|
6074
6074
|
* The current value.
|
|
6075
|
-
* @
|
|
6075
|
+
* @docs-private
|
|
6076
6076
|
*/
|
|
6077
6077
|
value;
|
|
6078
6078
|
/** @internal */
|
|
@@ -6093,7 +6093,7 @@ class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
6093
6093
|
_compareWith = Object.is;
|
|
6094
6094
|
/**
|
|
6095
6095
|
* Sets the "value" property on one or of more of the select's options.
|
|
6096
|
-
* @
|
|
6096
|
+
* @docs-private
|
|
6097
6097
|
*/
|
|
6098
6098
|
writeValue(value) {
|
|
6099
6099
|
this.value = value;
|
|
@@ -6115,7 +6115,7 @@ class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
6115
6115
|
/**
|
|
6116
6116
|
* Registers a function called when the control value changes
|
|
6117
6117
|
* and writes an array of the selected options.
|
|
6118
|
-
* @
|
|
6118
|
+
* @docs-private
|
|
6119
6119
|
*/
|
|
6120
6120
|
registerOnChange(fn) {
|
|
6121
6121
|
this.onChange = (element) => {
|
|
@@ -6165,10 +6165,10 @@ class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
6165
6165
|
const id = _extractId(valueString);
|
|
6166
6166
|
return this._optionMap.has(id) ? this._optionMap.get(id)._value : valueString;
|
|
6167
6167
|
}
|
|
6168
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6169
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6168
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: SelectMultipleControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6169
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", 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 });
|
|
6170
6170
|
}
|
|
6171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: SelectMultipleControlValueAccessor, decorators: [{
|
|
6172
6172
|
type: Directive,
|
|
6173
6173
|
args: [{
|
|
6174
6174
|
selector: 'select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]',
|
|
@@ -6239,17 +6239,17 @@ class ɵNgSelectMultipleOption {
|
|
|
6239
6239
|
_setSelected(selected) {
|
|
6240
6240
|
this._renderer.setProperty(this._element.nativeElement, 'selected', selected);
|
|
6241
6241
|
}
|
|
6242
|
-
/** @
|
|
6242
|
+
/** @docs-private */
|
|
6243
6243
|
ngOnDestroy() {
|
|
6244
6244
|
if (this._select) {
|
|
6245
6245
|
this._select._optionMap.delete(this.id);
|
|
6246
6246
|
this._select.writeValue(this._select.value);
|
|
6247
6247
|
}
|
|
6248
6248
|
}
|
|
6249
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6250
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6249
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: ɵNgSelectMultipleOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectMultipleControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6250
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", type: ɵNgSelectMultipleOption, isStandalone: false, selector: "option", inputs: { ngValue: "ngValue", value: "value" }, ngImport: i0 });
|
|
6251
6251
|
}
|
|
6252
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: ɵNgSelectMultipleOption, decorators: [{
|
|
6253
6253
|
type: Directive,
|
|
6254
6254
|
args: [{
|
|
6255
6255
|
selector: 'option',
|
|
@@ -6302,7 +6302,7 @@ class AbstractValidatorDirective {
|
|
|
6302
6302
|
* @internal
|
|
6303
6303
|
*/
|
|
6304
6304
|
_enabled;
|
|
6305
|
-
/** @
|
|
6305
|
+
/** @docs-private */
|
|
6306
6306
|
ngOnChanges(changes) {
|
|
6307
6307
|
if (this.inputName in changes) {
|
|
6308
6308
|
const input = this.normalizeInput(changes[this.inputName].currentValue);
|
|
@@ -6313,11 +6313,11 @@ class AbstractValidatorDirective {
|
|
|
6313
6313
|
}
|
|
6314
6314
|
}
|
|
6315
6315
|
}
|
|
6316
|
-
/** @
|
|
6316
|
+
/** @docs-private */
|
|
6317
6317
|
validate(control) {
|
|
6318
6318
|
return this._validator(control);
|
|
6319
6319
|
}
|
|
6320
|
-
/** @
|
|
6320
|
+
/** @docs-private */
|
|
6321
6321
|
registerOnValidatorChange(fn) {
|
|
6322
6322
|
this._onChange = fn;
|
|
6323
6323
|
}
|
|
@@ -6331,10 +6331,10 @@ class AbstractValidatorDirective {
|
|
|
6331
6331
|
enabled(input) {
|
|
6332
6332
|
return input != null /* both `null` and `undefined` */;
|
|
6333
6333
|
}
|
|
6334
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6335
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6334
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: AbstractValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6335
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", type: AbstractValidatorDirective, isStandalone: true, usesOnChanges: true, ngImport: i0 });
|
|
6336
6336
|
}
|
|
6337
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: AbstractValidatorDirective, decorators: [{
|
|
6338
6338
|
type: Directive
|
|
6339
6339
|
}] });
|
|
6340
6340
|
/**
|
|
@@ -6379,10 +6379,10 @@ class MaxValidator extends AbstractValidatorDirective {
|
|
|
6379
6379
|
normalizeInput = (input) => toFloat(input);
|
|
6380
6380
|
/** @internal */
|
|
6381
6381
|
createValidator = (max) => maxValidator(max);
|
|
6382
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6383
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6382
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: MaxValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6383
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", 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 });
|
|
6384
6384
|
}
|
|
6385
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6385
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: MaxValidator, decorators: [{
|
|
6386
6386
|
type: Directive,
|
|
6387
6387
|
args: [{
|
|
6388
6388
|
selector: 'input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]',
|
|
@@ -6435,10 +6435,10 @@ class MinValidator extends AbstractValidatorDirective {
|
|
|
6435
6435
|
normalizeInput = (input) => toFloat(input);
|
|
6436
6436
|
/** @internal */
|
|
6437
6437
|
createValidator = (min) => minValidator(min);
|
|
6438
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6439
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6438
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: MinValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6439
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", 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 });
|
|
6440
6440
|
}
|
|
6441
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: MinValidator, decorators: [{
|
|
6442
6442
|
type: Directive,
|
|
6443
6443
|
args: [{
|
|
6444
6444
|
selector: 'input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]',
|
|
@@ -6498,14 +6498,14 @@ class RequiredValidator extends AbstractValidatorDirective {
|
|
|
6498
6498
|
normalizeInput = booleanAttribute;
|
|
6499
6499
|
/** @internal */
|
|
6500
6500
|
createValidator = (input) => requiredValidator;
|
|
6501
|
-
/** @
|
|
6501
|
+
/** @docs-private */
|
|
6502
6502
|
enabled(input) {
|
|
6503
6503
|
return input;
|
|
6504
6504
|
}
|
|
6505
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6506
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6505
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: RequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6506
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", 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 });
|
|
6507
6507
|
}
|
|
6508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6508
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: RequiredValidator, decorators: [{
|
|
6509
6509
|
type: Directive,
|
|
6510
6510
|
args: [{
|
|
6511
6511
|
selector: ':not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]',
|
|
@@ -6540,10 +6540,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
6540
6540
|
class CheckboxRequiredValidator extends RequiredValidator {
|
|
6541
6541
|
/** @internal */
|
|
6542
6542
|
createValidator = (input) => requiredTrueValidator;
|
|
6543
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6544
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6543
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: CheckboxRequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6544
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", 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 });
|
|
6545
6545
|
}
|
|
6546
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6546
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: CheckboxRequiredValidator, decorators: [{
|
|
6547
6547
|
type: Directive,
|
|
6548
6548
|
args: [{
|
|
6549
6549
|
selector: 'input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]',
|
|
@@ -6600,14 +6600,14 @@ class EmailValidator extends AbstractValidatorDirective {
|
|
|
6600
6600
|
normalizeInput = booleanAttribute;
|
|
6601
6601
|
/** @internal */
|
|
6602
6602
|
createValidator = (input) => emailValidator;
|
|
6603
|
-
/** @
|
|
6603
|
+
/** @docs-private */
|
|
6604
6604
|
enabled(input) {
|
|
6605
6605
|
return input;
|
|
6606
6606
|
}
|
|
6607
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6608
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6607
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: EmailValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6608
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", type: EmailValidator, isStandalone: false, selector: "[email][formControlName],[email][formControl],[email][ngModel]", inputs: { email: "email" }, providers: [EMAIL_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6609
6609
|
}
|
|
6610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: EmailValidator, decorators: [{
|
|
6611
6611
|
type: Directive,
|
|
6612
6612
|
args: [{
|
|
6613
6613
|
selector: '[email][formControlName],[email][formControl],[email][ngModel]',
|
|
@@ -6659,10 +6659,10 @@ class MinLengthValidator extends AbstractValidatorDirective {
|
|
|
6659
6659
|
normalizeInput = (input) => toInteger(input);
|
|
6660
6660
|
/** @internal */
|
|
6661
6661
|
createValidator = (minlength) => minLengthValidator(minlength);
|
|
6662
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6663
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6662
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: MinLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6663
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", 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 });
|
|
6664
6664
|
}
|
|
6665
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6665
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: MinLengthValidator, decorators: [{
|
|
6666
6666
|
type: Directive,
|
|
6667
6667
|
args: [{
|
|
6668
6668
|
selector: '[minlength][formControlName],[minlength][formControl],[minlength][ngModel]',
|
|
@@ -6715,10 +6715,10 @@ class MaxLengthValidator extends AbstractValidatorDirective {
|
|
|
6715
6715
|
normalizeInput = (input) => toInteger(input);
|
|
6716
6716
|
/** @internal */
|
|
6717
6717
|
createValidator = (maxlength) => maxLengthValidator(maxlength);
|
|
6718
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6719
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6718
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: MaxLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6719
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", 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 });
|
|
6720
6720
|
}
|
|
6721
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6721
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: MaxLengthValidator, decorators: [{
|
|
6722
6722
|
type: Directive,
|
|
6723
6723
|
args: [{
|
|
6724
6724
|
selector: '[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]',
|
|
@@ -6773,10 +6773,10 @@ class PatternValidator extends AbstractValidatorDirective {
|
|
|
6773
6773
|
normalizeInput = (input) => input;
|
|
6774
6774
|
/** @internal */
|
|
6775
6775
|
createValidator = (input) => patternValidator(input);
|
|
6776
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6777
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6776
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: PatternValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6777
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.12", 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 });
|
|
6778
6778
|
}
|
|
6779
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6779
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: PatternValidator, decorators: [{
|
|
6780
6780
|
type: Directive,
|
|
6781
6781
|
args: [{
|
|
6782
6782
|
selector: '[pattern][formControlName],[pattern][formControl],[pattern][ngModel]',
|
|
@@ -6822,8 +6822,8 @@ const REACTIVE_DRIVEN_DIRECTIVES = [
|
|
|
6822
6822
|
* Internal module used for sharing directives between FormsModule and ReactiveFormsModule
|
|
6823
6823
|
*/
|
|
6824
6824
|
class ɵInternalFormsSharedModule {
|
|
6825
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6826
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
6825
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: ɵInternalFormsSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6826
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.12", ngImport: i0, type: ɵInternalFormsSharedModule, declarations: [ɵNgNoValidate,
|
|
6827
6827
|
NgSelectOption,
|
|
6828
6828
|
ɵNgSelectMultipleOption,
|
|
6829
6829
|
DefaultValueAccessor,
|
|
@@ -6862,9 +6862,9 @@ class ɵInternalFormsSharedModule {
|
|
|
6862
6862
|
EmailValidator,
|
|
6863
6863
|
MinValidator,
|
|
6864
6864
|
MaxValidator] });
|
|
6865
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
6865
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: ɵInternalFormsSharedModule });
|
|
6866
6866
|
}
|
|
6867
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6867
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: ɵInternalFormsSharedModule, decorators: [{
|
|
6868
6868
|
type: NgModule,
|
|
6869
6869
|
args: [{
|
|
6870
6870
|
declarations: SHARED_FORM_DIRECTIVES,
|
|
@@ -7516,10 +7516,10 @@ class FormBuilder {
|
|
|
7516
7516
|
return this.control(controls);
|
|
7517
7517
|
}
|
|
7518
7518
|
}
|
|
7519
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
7520
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
7519
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: FormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7520
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: FormBuilder, providedIn: 'root' });
|
|
7521
7521
|
}
|
|
7522
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
7522
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: FormBuilder, decorators: [{
|
|
7523
7523
|
type: Injectable,
|
|
7524
7524
|
args: [{ providedIn: 'root' }]
|
|
7525
7525
|
}] });
|
|
@@ -7531,10 +7531,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
7531
7531
|
* @publicApi
|
|
7532
7532
|
*/
|
|
7533
7533
|
class NonNullableFormBuilder {
|
|
7534
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
7535
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
7534
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: NonNullableFormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7535
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: NonNullableFormBuilder, providedIn: 'root', useFactory: () => inject(FormBuilder).nonNullable });
|
|
7536
7536
|
}
|
|
7537
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
7537
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: NonNullableFormBuilder, decorators: [{
|
|
7538
7538
|
type: Injectable,
|
|
7539
7539
|
args: [{
|
|
7540
7540
|
providedIn: 'root',
|
|
@@ -7560,10 +7560,10 @@ class UntypedFormBuilder extends FormBuilder {
|
|
|
7560
7560
|
array(controlsConfig, validatorOrOpts, asyncValidator) {
|
|
7561
7561
|
return super.array(controlsConfig, validatorOrOpts, asyncValidator);
|
|
7562
7562
|
}
|
|
7563
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
7564
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
7563
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: UntypedFormBuilder, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
7564
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: UntypedFormBuilder, providedIn: 'root' });
|
|
7565
7565
|
}
|
|
7566
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
7566
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: UntypedFormBuilder, decorators: [{
|
|
7567
7567
|
type: Injectable,
|
|
7568
7568
|
args: [{ providedIn: 'root' }]
|
|
7569
7569
|
}] });
|
|
@@ -7576,7 +7576,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
7576
7576
|
/**
|
|
7577
7577
|
* @publicApi
|
|
7578
7578
|
*/
|
|
7579
|
-
const VERSION = new Version('19.2.
|
|
7579
|
+
const VERSION = new Version('19.2.12');
|
|
7580
7580
|
|
|
7581
7581
|
/**
|
|
7582
7582
|
* Exports the required providers and directives for template-driven forms,
|
|
@@ -7607,11 +7607,11 @@ class FormsModule {
|
|
|
7607
7607
|
],
|
|
7608
7608
|
};
|
|
7609
7609
|
}
|
|
7610
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
7611
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
7612
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
7610
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: FormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7611
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.12", ngImport: i0, type: FormsModule, declarations: [NgModel, NgModelGroup, NgForm], exports: [ɵInternalFormsSharedModule, NgModel, NgModelGroup, NgForm] });
|
|
7612
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: FormsModule, imports: [ɵInternalFormsSharedModule] });
|
|
7613
7613
|
}
|
|
7614
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
7614
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: FormsModule, decorators: [{
|
|
7615
7615
|
type: NgModule,
|
|
7616
7616
|
args: [{
|
|
7617
7617
|
declarations: TEMPLATE_DRIVEN_DIRECTIVES,
|
|
@@ -7653,11 +7653,11 @@ class ReactiveFormsModule {
|
|
|
7653
7653
|
],
|
|
7654
7654
|
};
|
|
7655
7655
|
}
|
|
7656
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
7657
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
7658
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
7656
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: ReactiveFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7657
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.12", ngImport: i0, type: ReactiveFormsModule, declarations: [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName], exports: [ɵInternalFormsSharedModule, FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName] });
|
|
7658
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: ReactiveFormsModule, imports: [ɵInternalFormsSharedModule] });
|
|
7659
7659
|
}
|
|
7660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
7660
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: ReactiveFormsModule, decorators: [{
|
|
7661
7661
|
type: NgModule,
|
|
7662
7662
|
args: [{
|
|
7663
7663
|
declarations: [REACTIVE_DRIVEN_DIRECTIVES],
|