@angular/forms 16.1.0-rc.0 → 16.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/src/directives/abstract_form_group_directive.mjs +3 -3
- package/esm2022/src/directives/checkbox_value_accessor.mjs +3 -3
- package/esm2022/src/directives/control_value_accessor.mjs +6 -6
- package/esm2022/src/directives/default_value_accessor.mjs +3 -3
- package/esm2022/src/directives/ng_control_status.mjs +8 -8
- package/esm2022/src/directives/ng_form.mjs +3 -3
- package/esm2022/src/directives/ng_model.mjs +6 -6
- package/esm2022/src/directives/ng_model_group.mjs +3 -3
- package/esm2022/src/directives/ng_no_validate_directive.mjs +3 -3
- package/esm2022/src/directives/number_value_accessor.mjs +3 -3
- package/esm2022/src/directives/radio_control_value_accessor.mjs +10 -10
- package/esm2022/src/directives/range_value_accessor.mjs +3 -3
- package/esm2022/src/directives/reactive_directives/form_control_directive.mjs +6 -6
- package/esm2022/src/directives/reactive_directives/form_control_name.mjs +6 -6
- package/esm2022/src/directives/reactive_directives/form_group_directive.mjs +5 -5
- package/esm2022/src/directives/reactive_directives/form_group_name.mjs +8 -8
- package/esm2022/src/directives/select_control_value_accessor.mjs +8 -8
- package/esm2022/src/directives/select_multiple_control_value_accessor.mjs +9 -9
- package/esm2022/src/directives/shared.mjs +2 -2
- package/esm2022/src/directives/validators.mjs +27 -27
- package/esm2022/src/directives.mjs +4 -4
- package/esm2022/src/form_builder.mjs +9 -9
- package/esm2022/src/form_providers.mjs +8 -8
- package/esm2022/src/model/abstract_model.mjs +20 -20
- package/esm2022/src/model/form_control.mjs +1 -1
- package/esm2022/src/validators.mjs +13 -13
- package/esm2022/src/version.mjs +1 -1
- package/fesm2022/forms.mjs +170 -170
- package/fesm2022/forms.mjs.map +1 -1
- package/index.d.ts +77 -77
- package/package.json +4 -4
package/fesm2022/forms.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.1.
|
|
2
|
+
* @license Angular v16.1.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -62,10 +62,10 @@ class BaseControlValueAccessor {
|
|
|
62
62
|
setDisabledState(isDisabled) {
|
|
63
63
|
this.setProperty('disabled', isDisabled);
|
|
64
64
|
}
|
|
65
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
66
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
65
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: BaseControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
66
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: BaseControlValueAccessor, ngImport: i0 }); }
|
|
67
67
|
}
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: BaseControlValueAccessor, decorators: [{
|
|
69
69
|
type: Directive
|
|
70
70
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; } });
|
|
71
71
|
/**
|
|
@@ -78,10 +78,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0-rc.0", ng
|
|
|
78
78
|
* applications code.
|
|
79
79
|
*/
|
|
80
80
|
class BuiltInControlValueAccessor extends BaseControlValueAccessor {
|
|
81
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
82
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
81
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: BuiltInControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
82
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: BuiltInControlValueAccessor, usesInheritance: true, ngImport: i0 }); }
|
|
83
83
|
}
|
|
84
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
84
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: BuiltInControlValueAccessor, decorators: [{
|
|
85
85
|
type: Directive
|
|
86
86
|
}] });
|
|
87
87
|
/**
|
|
@@ -129,10 +129,10 @@ class CheckboxControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
129
129
|
writeValue(value) {
|
|
130
130
|
this.setProperty('checked', value);
|
|
131
131
|
}
|
|
132
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
133
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
132
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: CheckboxControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
133
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: CheckboxControlValueAccessor, 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 }); }
|
|
134
134
|
}
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: CheckboxControlValueAccessor, decorators: [{
|
|
136
136
|
type: Directive,
|
|
137
137
|
args: [{
|
|
138
138
|
selector: 'input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]',
|
|
@@ -229,10 +229,10 @@ class DefaultValueAccessor extends BaseControlValueAccessor {
|
|
|
229
229
|
this._composing = false;
|
|
230
230
|
this._compositionMode && this.onChange(value);
|
|
231
231
|
}
|
|
232
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
233
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
232
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: DefaultValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: COMPOSITION_BUFFER_MODE, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
233
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: DefaultValueAccessor, 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 }); }
|
|
234
234
|
}
|
|
235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: DefaultValueAccessor, decorators: [{
|
|
236
236
|
type: Directive,
|
|
237
237
|
args: [{
|
|
238
238
|
selector: 'input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]',
|
|
@@ -272,7 +272,7 @@ function hasValidLength(value) {
|
|
|
272
272
|
* An `InjectionToken` for registering additional synchronous validators used with
|
|
273
273
|
* `AbstractControl`s.
|
|
274
274
|
*
|
|
275
|
-
* @see
|
|
275
|
+
* @see {@link NG_ASYNC_VALIDATORS}
|
|
276
276
|
*
|
|
277
277
|
* @usageNotes
|
|
278
278
|
*
|
|
@@ -301,7 +301,7 @@ const NG_VALIDATORS = new InjectionToken('NgValidators');
|
|
|
301
301
|
* An `InjectionToken` for registering additional asynchronous validators used with
|
|
302
302
|
* `AbstractControl`s.
|
|
303
303
|
*
|
|
304
|
-
* @see
|
|
304
|
+
* @see {@link NG_VALIDATORS}
|
|
305
305
|
*
|
|
306
306
|
* @usageNotes
|
|
307
307
|
*
|
|
@@ -386,7 +386,7 @@ class Validators {
|
|
|
386
386
|
* @returns A validator function that returns an error map with the
|
|
387
387
|
* `min` property if the validation check fails, otherwise `null`.
|
|
388
388
|
*
|
|
389
|
-
* @see
|
|
389
|
+
* @see {@link updateValueAndValidity()}
|
|
390
390
|
*
|
|
391
391
|
*/
|
|
392
392
|
static min(min) {
|
|
@@ -409,7 +409,7 @@ class Validators {
|
|
|
409
409
|
* @returns A validator function that returns an error map with the
|
|
410
410
|
* `max` property if the validation check fails, otherwise `null`.
|
|
411
411
|
*
|
|
412
|
-
* @see
|
|
412
|
+
* @see {@link updateValueAndValidity()}
|
|
413
413
|
*
|
|
414
414
|
*/
|
|
415
415
|
static max(max) {
|
|
@@ -432,7 +432,7 @@ class Validators {
|
|
|
432
432
|
* @returns An error map with the `required` property
|
|
433
433
|
* if the validation check fails, otherwise `null`.
|
|
434
434
|
*
|
|
435
|
-
* @see
|
|
435
|
+
* @see {@link updateValueAndValidity()}
|
|
436
436
|
*
|
|
437
437
|
*/
|
|
438
438
|
static required(control) {
|
|
@@ -456,7 +456,7 @@ class Validators {
|
|
|
456
456
|
* @returns An error map that contains the `required` property
|
|
457
457
|
* set to `true` if the validation check fails, otherwise `null`.
|
|
458
458
|
*
|
|
459
|
-
* @see
|
|
459
|
+
* @see {@link updateValueAndValidity()}
|
|
460
460
|
*
|
|
461
461
|
*/
|
|
462
462
|
static requiredTrue(control) {
|
|
@@ -495,7 +495,7 @@ class Validators {
|
|
|
495
495
|
* @returns An error map with the `email` property
|
|
496
496
|
* if the validation check fails, otherwise `null`.
|
|
497
497
|
*
|
|
498
|
-
* @see
|
|
498
|
+
* @see {@link updateValueAndValidity()}
|
|
499
499
|
*
|
|
500
500
|
*/
|
|
501
501
|
static email(control) {
|
|
@@ -528,7 +528,7 @@ class Validators {
|
|
|
528
528
|
* @returns A validator function that returns an error map with the
|
|
529
529
|
* `minlength` property if the validation check fails, otherwise `null`.
|
|
530
530
|
*
|
|
531
|
-
* @see
|
|
531
|
+
* @see {@link updateValueAndValidity()}
|
|
532
532
|
*
|
|
533
533
|
*/
|
|
534
534
|
static minLength(minLength) {
|
|
@@ -558,7 +558,7 @@ class Validators {
|
|
|
558
558
|
* @returns A validator function that returns an error map with the
|
|
559
559
|
* `maxlength` property if the validation check fails, otherwise `null`.
|
|
560
560
|
*
|
|
561
|
-
* @see
|
|
561
|
+
* @see {@link updateValueAndValidity()}
|
|
562
562
|
*
|
|
563
563
|
*/
|
|
564
564
|
static maxLength(maxLength) {
|
|
@@ -610,7 +610,7 @@ class Validators {
|
|
|
610
610
|
* @returns A validator function that returns an error map with the
|
|
611
611
|
* `pattern` property if the validation check fails, otherwise `null`.
|
|
612
612
|
*
|
|
613
|
-
* @see
|
|
613
|
+
* @see {@link updateValueAndValidity()}
|
|
614
614
|
*
|
|
615
615
|
*/
|
|
616
616
|
static pattern(pattern) {
|
|
@@ -620,7 +620,7 @@ class Validators {
|
|
|
620
620
|
* @description
|
|
621
621
|
* Validator that performs no operation.
|
|
622
622
|
*
|
|
623
|
-
* @see
|
|
623
|
+
* @see {@link updateValueAndValidity()}
|
|
624
624
|
*
|
|
625
625
|
*/
|
|
626
626
|
static nullValidator(control) {
|
|
@@ -637,7 +637,7 @@ class Validators {
|
|
|
637
637
|
* @returns A validator function that returns an error map with the
|
|
638
638
|
* merged error objects of the async validators if the validation check fails, otherwise `null`.
|
|
639
639
|
*
|
|
640
|
-
* @see
|
|
640
|
+
* @see {@link updateValueAndValidity()}
|
|
641
641
|
*
|
|
642
642
|
*/
|
|
643
643
|
static composeAsync(validators) {
|
|
@@ -1322,10 +1322,10 @@ class NgControlStatus extends AbstractControlStatus {
|
|
|
1322
1322
|
constructor(cd) {
|
|
1323
1323
|
super(cd);
|
|
1324
1324
|
}
|
|
1325
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
1326
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
1325
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgControlStatus, deps: [{ token: NgControl, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1326
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: NgControlStatus, 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 }); }
|
|
1327
1327
|
}
|
|
1328
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
1328
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgControlStatus, decorators: [{
|
|
1329
1329
|
type: Directive,
|
|
1330
1330
|
args: [{ selector: '[formControlName],[ngModel],[formControl]', host: ngControlStatusHost }]
|
|
1331
1331
|
}], ctorParameters: function () { return [{ type: NgControl, decorators: [{
|
|
@@ -1337,7 +1337,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0-rc.0", ng
|
|
|
1337
1337
|
* based on control status (valid/invalid/dirty/etc). On groups, this includes the additional
|
|
1338
1338
|
* class ng-submitted.
|
|
1339
1339
|
*
|
|
1340
|
-
* @see
|
|
1340
|
+
* @see {@link NgControlStatus}
|
|
1341
1341
|
*
|
|
1342
1342
|
* @ngModule ReactiveFormsModule
|
|
1343
1343
|
* @ngModule FormsModule
|
|
@@ -1347,10 +1347,10 @@ class NgControlStatusGroup extends AbstractControlStatus {
|
|
|
1347
1347
|
constructor(cd) {
|
|
1348
1348
|
super(cd);
|
|
1349
1349
|
}
|
|
1350
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
1351
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
1350
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgControlStatusGroup, deps: [{ token: ControlContainer, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1351
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: NgControlStatusGroup, 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 }); }
|
|
1352
1352
|
}
|
|
1353
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
1353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgControlStatusGroup, decorators: [{
|
|
1354
1354
|
type: Directive,
|
|
1355
1355
|
args: [{
|
|
1356
1356
|
selector: '[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]',
|
|
@@ -1516,29 +1516,29 @@ function missingControlValueError(isFormGroup, key) {
|
|
|
1516
1516
|
/**
|
|
1517
1517
|
* Reports that a control is valid, meaning that no errors exist in the input value.
|
|
1518
1518
|
*
|
|
1519
|
-
* @see
|
|
1519
|
+
* @see {@link status}
|
|
1520
1520
|
*/
|
|
1521
1521
|
const VALID = 'VALID';
|
|
1522
1522
|
/**
|
|
1523
1523
|
* Reports that a control is invalid, meaning that an error exists in the input value.
|
|
1524
1524
|
*
|
|
1525
|
-
* @see
|
|
1525
|
+
* @see {@link status}
|
|
1526
1526
|
*/
|
|
1527
1527
|
const INVALID = 'INVALID';
|
|
1528
1528
|
/**
|
|
1529
1529
|
* Reports that a control is pending, meaning that that async validation is occurring and
|
|
1530
1530
|
* errors are not yet available for the input value.
|
|
1531
1531
|
*
|
|
1532
|
-
* @see
|
|
1533
|
-
* @see
|
|
1532
|
+
* @see {@link markAsPending}
|
|
1533
|
+
* @see {@link status}
|
|
1534
1534
|
*/
|
|
1535
1535
|
const PENDING = 'PENDING';
|
|
1536
1536
|
/**
|
|
1537
1537
|
* Reports that a control is disabled, meaning that the control is exempt from ancestor
|
|
1538
1538
|
* calculations of validity or value.
|
|
1539
1539
|
*
|
|
1540
|
-
* @see
|
|
1541
|
-
* @see
|
|
1540
|
+
* @see {@link markAsDisabled}
|
|
1541
|
+
* @see {@link status}
|
|
1542
1542
|
*/
|
|
1543
1543
|
const DISABLED = 'DISABLED';
|
|
1544
1544
|
/**
|
|
@@ -1931,9 +1931,9 @@ class AbstractControl {
|
|
|
1931
1931
|
* Marks the control as `touched`. A control is touched by focus and
|
|
1932
1932
|
* blur events that do not change the value.
|
|
1933
1933
|
*
|
|
1934
|
-
* @see
|
|
1935
|
-
* @see
|
|
1936
|
-
* @see
|
|
1934
|
+
* @see {@link markAsUntouched()}
|
|
1935
|
+
* @see {@link markAsDirty()}
|
|
1936
|
+
* @see {@link markAsPristine()}
|
|
1937
1937
|
*
|
|
1938
1938
|
* @param opts Configuration options that determine how the control propagates changes
|
|
1939
1939
|
* and emits events after marking is applied.
|
|
@@ -1948,7 +1948,7 @@ class AbstractControl {
|
|
|
1948
1948
|
}
|
|
1949
1949
|
/**
|
|
1950
1950
|
* Marks the control and all its descendant controls as `touched`.
|
|
1951
|
-
* @see
|
|
1951
|
+
* @see {@link markAsTouched()}
|
|
1952
1952
|
*/
|
|
1953
1953
|
markAllAsTouched() {
|
|
1954
1954
|
this.markAsTouched({ onlySelf: true });
|
|
@@ -1960,9 +1960,9 @@ class AbstractControl {
|
|
|
1960
1960
|
* If the control has any children, also marks all children as `untouched`
|
|
1961
1961
|
* and recalculates the `touched` status of all parent controls.
|
|
1962
1962
|
*
|
|
1963
|
-
* @see
|
|
1964
|
-
* @see
|
|
1965
|
-
* @see
|
|
1963
|
+
* @see {@link markAsTouched()}
|
|
1964
|
+
* @see {@link markAsDirty()}
|
|
1965
|
+
* @see {@link markAsPristine()}
|
|
1966
1966
|
*
|
|
1967
1967
|
* @param opts Configuration options that determine how the control propagates changes
|
|
1968
1968
|
* and emits events after the marking is applied.
|
|
@@ -1983,9 +1983,9 @@ class AbstractControl {
|
|
|
1983
1983
|
* Marks the control as `dirty`. A control becomes dirty when
|
|
1984
1984
|
* the control's value is changed through the UI; compare `markAsTouched`.
|
|
1985
1985
|
*
|
|
1986
|
-
* @see
|
|
1987
|
-
* @see
|
|
1988
|
-
* @see
|
|
1986
|
+
* @see {@link markAsTouched()}
|
|
1987
|
+
* @see {@link markAsUntouched()}
|
|
1988
|
+
* @see {@link markAsPristine()}
|
|
1989
1989
|
*
|
|
1990
1990
|
* @param opts Configuration options that determine how the control propagates changes
|
|
1991
1991
|
* and emits events after marking is applied.
|
|
@@ -2005,9 +2005,9 @@ class AbstractControl {
|
|
|
2005
2005
|
* and recalculates the `pristine` status of all parent
|
|
2006
2006
|
* controls.
|
|
2007
2007
|
*
|
|
2008
|
-
* @see
|
|
2009
|
-
* @see
|
|
2010
|
-
* @see
|
|
2008
|
+
* @see {@link markAsTouched()}
|
|
2009
|
+
* @see {@link markAsUntouched()}
|
|
2010
|
+
* @see {@link markAsDirty()}
|
|
2011
2011
|
*
|
|
2012
2012
|
* @param opts Configuration options that determine how the control emits events after
|
|
2013
2013
|
* marking is applied.
|
|
@@ -2910,7 +2910,7 @@ const isFormRecord = (control) => control instanceof FormRecord;
|
|
|
2910
2910
|
* Token to provide to allow SetDisabledState to always be called when a CVA is added, regardless of
|
|
2911
2911
|
* whether the control is disabled or enabled.
|
|
2912
2912
|
*
|
|
2913
|
-
* @see
|
|
2913
|
+
* @see {@link FormsModule#withconfig}
|
|
2914
2914
|
*/
|
|
2915
2915
|
const CALL_SET_DISABLED_STATE = new InjectionToken('CallSetDisabledState', { providedIn: 'root', factory: () => setDisabledStateDefault });
|
|
2916
2916
|
/**
|
|
@@ -3502,10 +3502,10 @@ class NgForm extends ControlContainer {
|
|
|
3502
3502
|
path.pop();
|
|
3503
3503
|
return path.length ? this.form.get(path) : this.form;
|
|
3504
3504
|
}
|
|
3505
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
3506
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
3505
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", 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 }); }
|
|
3506
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: NgForm, 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 }); }
|
|
3507
3507
|
}
|
|
3508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
3508
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgForm, decorators: [{
|
|
3509
3509
|
type: Directive,
|
|
3510
3510
|
args: [{
|
|
3511
3511
|
selector: 'form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]',
|
|
@@ -3700,10 +3700,10 @@ class AbstractFormGroupDirective extends ControlContainer {
|
|
|
3700
3700
|
}
|
|
3701
3701
|
/** @internal */
|
|
3702
3702
|
_checkParentType() { }
|
|
3703
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
3704
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
3703
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: AbstractFormGroupDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3704
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: AbstractFormGroupDirective, usesInheritance: true, ngImport: i0 }); }
|
|
3705
3705
|
}
|
|
3706
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
3706
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: AbstractFormGroupDirective, decorators: [{
|
|
3707
3707
|
type: Directive
|
|
3708
3708
|
}] });
|
|
3709
3709
|
|
|
@@ -3802,10 +3802,10 @@ class NgModelGroup extends AbstractFormGroupDirective {
|
|
|
3802
3802
|
throw modelGroupParentException();
|
|
3803
3803
|
}
|
|
3804
3804
|
}
|
|
3805
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
3806
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
3805
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", 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 }); }
|
|
3806
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: NgModelGroup, selector: "[ngModelGroup]", inputs: { name: ["ngModelGroup", "name"] }, providers: [modelGroupProvider], exportAs: ["ngModelGroup"], usesInheritance: true, ngImport: i0 }); }
|
|
3807
3807
|
}
|
|
3808
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
3808
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgModelGroup, decorators: [{
|
|
3809
3809
|
type: Directive,
|
|
3810
3810
|
args: [{ selector: '[ngModelGroup]', providers: [modelGroupProvider], exportAs: 'ngModelGroup' }]
|
|
3811
3811
|
}], ctorParameters: function () { return [{ type: ControlContainer, decorators: [{
|
|
@@ -3879,8 +3879,8 @@ const resolvedPromise = (() => Promise.resolve())();
|
|
|
3879
3879
|
* for direct access. See a full list of properties directly available in
|
|
3880
3880
|
* `AbstractControlDirective`.
|
|
3881
3881
|
*
|
|
3882
|
-
* @see
|
|
3883
|
-
* @see
|
|
3882
|
+
* @see {@link RadioControlValueAccessor}
|
|
3883
|
+
* @see {@link SelectControlValueAccessor}
|
|
3884
3884
|
*
|
|
3885
3885
|
* @usageNotes
|
|
3886
3886
|
*
|
|
@@ -4081,10 +4081,10 @@ class NgModel extends NgControl {
|
|
|
4081
4081
|
_getPath(controlName) {
|
|
4082
4082
|
return this._parent ? controlPath(controlName, this._parent) : [controlName];
|
|
4083
4083
|
}
|
|
4084
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4085
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
4084
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", 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 }); }
|
|
4085
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: NgModel, 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 }); }
|
|
4086
4086
|
}
|
|
4087
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4087
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgModel, decorators: [{
|
|
4088
4088
|
type: Directive,
|
|
4089
4089
|
args: [{
|
|
4090
4090
|
selector: '[ngModel]:not([formControlName]):not([formControl])',
|
|
@@ -4160,10 +4160,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0-rc.0", ng
|
|
|
4160
4160
|
* @ngModule FormsModule
|
|
4161
4161
|
*/
|
|
4162
4162
|
class ɵNgNoValidate {
|
|
4163
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4164
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
4163
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: ɵNgNoValidate, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4164
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])", host: { attributes: { "novalidate": "" } }, ngImport: i0 }); }
|
|
4165
4165
|
}
|
|
4166
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: ɵNgNoValidate, decorators: [{
|
|
4167
4167
|
type: Directive,
|
|
4168
4168
|
args: [{
|
|
4169
4169
|
selector: 'form:not([ngNoForm]):not([ngNativeValidate])',
|
|
@@ -4219,10 +4219,10 @@ class NumberValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4219
4219
|
fn(value == '' ? null : parseFloat(value));
|
|
4220
4220
|
};
|
|
4221
4221
|
}
|
|
4222
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4223
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
4222
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NumberValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4223
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: NumberValueAccessor, 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 }); }
|
|
4224
4224
|
}
|
|
4225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NumberValueAccessor, decorators: [{
|
|
4226
4226
|
type: Directive,
|
|
4227
4227
|
args: [{
|
|
4228
4228
|
selector: 'input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]',
|
|
@@ -4249,11 +4249,11 @@ function throwNameError() {
|
|
|
4249
4249
|
* `forwardRef` logic.
|
|
4250
4250
|
*/
|
|
4251
4251
|
class RadioControlRegistryModule {
|
|
4252
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4253
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.
|
|
4254
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.
|
|
4252
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: RadioControlRegistryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4253
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.1", ngImport: i0, type: RadioControlRegistryModule }); }
|
|
4254
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: RadioControlRegistryModule }); }
|
|
4255
4255
|
}
|
|
4256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4256
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: RadioControlRegistryModule, decorators: [{
|
|
4257
4257
|
type: NgModule
|
|
4258
4258
|
}] });
|
|
4259
4259
|
/**
|
|
@@ -4300,10 +4300,10 @@ class RadioControlRegistry {
|
|
|
4300
4300
|
return controlPair[0]._parent === accessor._control._parent &&
|
|
4301
4301
|
controlPair[1].name === accessor.name;
|
|
4302
4302
|
}
|
|
4303
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4304
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
4303
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: RadioControlRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4304
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: RadioControlRegistry, providedIn: RadioControlRegistryModule }); }
|
|
4305
4305
|
}
|
|
4306
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: RadioControlRegistry, decorators: [{
|
|
4307
4307
|
type: Injectable,
|
|
4308
4308
|
args: [{ providedIn: RadioControlRegistryModule }]
|
|
4309
4309
|
}] });
|
|
@@ -4414,10 +4414,10 @@ class RadioControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4414
4414
|
if (!this.name && this.formControlName)
|
|
4415
4415
|
this.name = this.formControlName;
|
|
4416
4416
|
}
|
|
4417
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4418
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
4417
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: RadioControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: RadioControlRegistry }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4418
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: RadioControlValueAccessor, 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 }); }
|
|
4419
4419
|
}
|
|
4420
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: RadioControlValueAccessor, decorators: [{
|
|
4421
4421
|
type: Directive,
|
|
4422
4422
|
args: [{
|
|
4423
4423
|
selector: 'input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]',
|
|
@@ -4478,10 +4478,10 @@ class RangeValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4478
4478
|
fn(value == '' ? null : parseFloat(value));
|
|
4479
4479
|
};
|
|
4480
4480
|
}
|
|
4481
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4482
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
4481
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: RangeValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4482
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: RangeValueAccessor, 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 }); }
|
|
4483
4483
|
}
|
|
4484
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4484
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: RangeValueAccessor, decorators: [{
|
|
4485
4485
|
type: Directive,
|
|
4486
4486
|
args: [{
|
|
4487
4487
|
selector: 'input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]',
|
|
@@ -4512,8 +4512,8 @@ const formControlBinding = {
|
|
|
4512
4512
|
* For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).
|
|
4513
4513
|
*
|
|
4514
4514
|
* @see [Reactive Forms Guide](guide/reactive-forms)
|
|
4515
|
-
* @see
|
|
4516
|
-
* @see
|
|
4515
|
+
* @see {@link FormControl}
|
|
4516
|
+
* @see {@link AbstractControl}
|
|
4517
4517
|
*
|
|
4518
4518
|
* @usageNotes
|
|
4519
4519
|
*
|
|
@@ -4612,10 +4612,10 @@ class FormControlDirective extends NgControl {
|
|
|
4612
4612
|
_isControlChanged(changes) {
|
|
4613
4613
|
return changes.hasOwnProperty('form');
|
|
4614
4614
|
}
|
|
4615
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4616
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
4615
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", 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 }); }
|
|
4616
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: FormControlDirective, 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 }); }
|
|
4617
4617
|
}
|
|
4618
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4618
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: FormControlDirective, decorators: [{
|
|
4619
4619
|
type: Directive,
|
|
4620
4620
|
args: [{ selector: '[formControl]', providers: [formControlBinding], exportAs: 'ngForm' }]
|
|
4621
4621
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -4678,7 +4678,7 @@ const formDirectiveProvider = {
|
|
|
4678
4678
|
* and `FormArrayName` directives.
|
|
4679
4679
|
*
|
|
4680
4680
|
* @see [Reactive Forms Guide](guide/reactive-forms)
|
|
4681
|
-
* @see
|
|
4681
|
+
* @see {@link AbstractControl}
|
|
4682
4682
|
*
|
|
4683
4683
|
* @usageNotes
|
|
4684
4684
|
* ### Register Form Group
|
|
@@ -4958,10 +4958,10 @@ class FormGroupDirective extends ControlContainer {
|
|
|
4958
4958
|
throw missingFormException();
|
|
4959
4959
|
}
|
|
4960
4960
|
}
|
|
4961
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4962
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
4961
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", 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 }); }
|
|
4962
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: FormGroupDirective, 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 }); }
|
|
4963
4963
|
}
|
|
4964
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4964
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: FormGroupDirective, decorators: [{
|
|
4965
4965
|
type: Directive,
|
|
4966
4966
|
args: [{
|
|
4967
4967
|
selector: '[formGroup]',
|
|
@@ -5069,10 +5069,10 @@ class FormGroupName extends AbstractFormGroupDirective {
|
|
|
5069
5069
|
throw groupParentException();
|
|
5070
5070
|
}
|
|
5071
5071
|
}
|
|
5072
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
5073
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
5072
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", 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 }); }
|
|
5073
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: FormGroupName, selector: "[formGroupName]", inputs: { name: ["formGroupName", "name"] }, providers: [formGroupNameProvider], usesInheritance: true, ngImport: i0 }); }
|
|
5074
5074
|
}
|
|
5075
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
5075
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: FormGroupName, decorators: [{
|
|
5076
5076
|
type: Directive,
|
|
5077
5077
|
args: [{ selector: '[formGroupName]', providers: [formGroupNameProvider] }]
|
|
5078
5078
|
}], ctorParameters: function () { return [{ type: ControlContainer, decorators: [{
|
|
@@ -5116,7 +5116,7 @@ const formArrayNameProvider = {
|
|
|
5116
5116
|
* `FormGroup` instance you passed into `FormGroupDirective`.
|
|
5117
5117
|
*
|
|
5118
5118
|
* @see [Reactive Forms Guide](guide/reactive-forms)
|
|
5119
|
-
* @see
|
|
5119
|
+
* @see {@link AbstractControl}
|
|
5120
5120
|
*
|
|
5121
5121
|
* @usageNotes
|
|
5122
5122
|
*
|
|
@@ -5189,10 +5189,10 @@ class FormArrayName extends ControlContainer {
|
|
|
5189
5189
|
throw arrayParentException();
|
|
5190
5190
|
}
|
|
5191
5191
|
}
|
|
5192
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
5193
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
5192
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", 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 }); }
|
|
5193
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: FormArrayName, selector: "[formArrayName]", inputs: { name: ["formArrayName", "name"] }, providers: [formArrayNameProvider], usesInheritance: true, ngImport: i0 }); }
|
|
5194
5194
|
}
|
|
5195
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
5195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: FormArrayName, decorators: [{
|
|
5196
5196
|
type: Directive,
|
|
5197
5197
|
args: [{ selector: '[formArrayName]', providers: [formArrayNameProvider] }]
|
|
5198
5198
|
}], ctorParameters: function () { return [{ type: ControlContainer, decorators: [{
|
|
@@ -5234,8 +5234,8 @@ const controlNameBinding = {
|
|
|
5234
5234
|
* element by name.
|
|
5235
5235
|
*
|
|
5236
5236
|
* @see [Reactive Forms Guide](guide/reactive-forms)
|
|
5237
|
-
* @see
|
|
5238
|
-
* @see
|
|
5237
|
+
* @see {@link FormControl}
|
|
5238
|
+
* @see {@link AbstractControl}
|
|
5239
5239
|
*
|
|
5240
5240
|
* @usageNotes
|
|
5241
5241
|
*
|
|
@@ -5370,10 +5370,10 @@ class FormControlName extends NgControl {
|
|
|
5370
5370
|
this.control = this.formDirective.addControl(this);
|
|
5371
5371
|
this._added = true;
|
|
5372
5372
|
}
|
|
5373
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
5374
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
5373
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", 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 }); }
|
|
5374
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: FormControlName, selector: "[formControlName]", inputs: { name: ["formControlName", "name"], isDisabled: ["disabled", "isDisabled"], model: ["ngModel", "model"] }, outputs: { update: "ngModelChange" }, providers: [controlNameBinding], usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }
|
|
5375
5375
|
}
|
|
5376
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
5376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: FormControlName, decorators: [{
|
|
5377
5377
|
type: Directive,
|
|
5378
5378
|
args: [{ selector: '[formControlName]', providers: [controlNameBinding] }]
|
|
5379
5379
|
}], ctorParameters: function () { return [{ type: ControlContainer, decorators: [{
|
|
@@ -5550,10 +5550,10 @@ class SelectControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
5550
5550
|
const id = _extractId$1(valueString);
|
|
5551
5551
|
return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;
|
|
5552
5552
|
}
|
|
5553
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
5554
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
5553
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: SelectControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5554
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: SelectControlValueAccessor, 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 }); }
|
|
5555
5555
|
}
|
|
5556
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
5556
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: SelectControlValueAccessor, decorators: [{
|
|
5557
5557
|
type: Directive,
|
|
5558
5558
|
args: [{
|
|
5559
5559
|
selector: 'select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]',
|
|
@@ -5567,7 +5567,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0-rc.0", ng
|
|
|
5567
5567
|
* @description
|
|
5568
5568
|
* Marks `<option>` as dynamic, so Angular can be notified when options change.
|
|
5569
5569
|
*
|
|
5570
|
-
* @see
|
|
5570
|
+
* @see {@link SelectControlValueAccessor}
|
|
5571
5571
|
*
|
|
5572
5572
|
* @ngModule ReactiveFormsModule
|
|
5573
5573
|
* @ngModule FormsModule
|
|
@@ -5614,10 +5614,10 @@ class NgSelectOption {
|
|
|
5614
5614
|
this._select.writeValue(this._select.value);
|
|
5615
5615
|
}
|
|
5616
5616
|
}
|
|
5617
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
5618
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
5617
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgSelectOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5618
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: NgSelectOption, selector: "option", inputs: { ngValue: "ngValue", value: "value" }, ngImport: i0 }); }
|
|
5619
5619
|
}
|
|
5620
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
5620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgSelectOption, decorators: [{
|
|
5621
5621
|
type: Directive,
|
|
5622
5622
|
args: [{ selector: 'option' }]
|
|
5623
5623
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: SelectControlValueAccessor, decorators: [{
|
|
@@ -5658,7 +5658,7 @@ class HTMLCollection {
|
|
|
5658
5658
|
* control changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and
|
|
5659
5659
|
* `NgModel` directives.
|
|
5660
5660
|
*
|
|
5661
|
-
* @see
|
|
5661
|
+
* @see {@link SelectControlValueAccessor}
|
|
5662
5662
|
*
|
|
5663
5663
|
* @usageNotes
|
|
5664
5664
|
*
|
|
@@ -5781,10 +5781,10 @@ class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
5781
5781
|
const id = _extractId(valueString);
|
|
5782
5782
|
return this._optionMap.has(id) ? this._optionMap.get(id)._value : valueString;
|
|
5783
5783
|
}
|
|
5784
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
5785
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
5784
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: SelectMultipleControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5785
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: SelectMultipleControlValueAccessor, 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 }); }
|
|
5786
5786
|
}
|
|
5787
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
5787
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: SelectMultipleControlValueAccessor, decorators: [{
|
|
5788
5788
|
type: Directive,
|
|
5789
5789
|
args: [{
|
|
5790
5790
|
selector: 'select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]',
|
|
@@ -5798,7 +5798,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0-rc.0", ng
|
|
|
5798
5798
|
* @description
|
|
5799
5799
|
* Marks `<option>` as dynamic, so Angular can be notified when options change.
|
|
5800
5800
|
*
|
|
5801
|
-
* @see
|
|
5801
|
+
* @see {@link SelectMultipleControlValueAccessor}
|
|
5802
5802
|
*
|
|
5803
5803
|
* @ngModule ReactiveFormsModule
|
|
5804
5804
|
* @ngModule FormsModule
|
|
@@ -5855,10 +5855,10 @@ class ɵNgSelectMultipleOption {
|
|
|
5855
5855
|
this._select.writeValue(this._select.value);
|
|
5856
5856
|
}
|
|
5857
5857
|
}
|
|
5858
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
5859
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
5858
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: ɵNgSelectMultipleOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectMultipleControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5859
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: ɵNgSelectMultipleOption, selector: "option", inputs: { ngValue: "ngValue", value: "value" }, ngImport: i0 }); }
|
|
5860
5860
|
}
|
|
5861
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
5861
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: ɵNgSelectMultipleOption, decorators: [{
|
|
5862
5862
|
type: Directive,
|
|
5863
5863
|
args: [{ selector: 'option' }]
|
|
5864
5864
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: SelectMultipleControlValueAccessor, decorators: [{
|
|
@@ -5930,10 +5930,10 @@ class AbstractValidatorDirective {
|
|
|
5930
5930
|
enabled(input) {
|
|
5931
5931
|
return input != null /* both `null` and `undefined` */;
|
|
5932
5932
|
}
|
|
5933
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
5934
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
5933
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: AbstractValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5934
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: AbstractValidatorDirective, usesOnChanges: true, ngImport: i0 }); }
|
|
5935
5935
|
}
|
|
5936
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
5936
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: AbstractValidatorDirective, decorators: [{
|
|
5937
5937
|
type: Directive
|
|
5938
5938
|
}] });
|
|
5939
5939
|
/**
|
|
@@ -5976,10 +5976,10 @@ class MaxValidator extends AbstractValidatorDirective {
|
|
|
5976
5976
|
/** @internal */
|
|
5977
5977
|
this.createValidator = (max) => maxValidator(max);
|
|
5978
5978
|
}
|
|
5979
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
5980
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
5979
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MaxValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5980
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: MaxValidator, 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 }); }
|
|
5981
5981
|
}
|
|
5982
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
5982
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MaxValidator, decorators: [{
|
|
5983
5983
|
type: Directive,
|
|
5984
5984
|
args: [{
|
|
5985
5985
|
selector: 'input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]',
|
|
@@ -6029,10 +6029,10 @@ class MinValidator extends AbstractValidatorDirective {
|
|
|
6029
6029
|
/** @internal */
|
|
6030
6030
|
this.createValidator = (min) => minValidator(min);
|
|
6031
6031
|
}
|
|
6032
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
6033
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
6032
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MinValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6033
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: MinValidator, 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 }); }
|
|
6034
6034
|
}
|
|
6035
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
6035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MinValidator, decorators: [{
|
|
6036
6036
|
type: Directive,
|
|
6037
6037
|
args: [{
|
|
6038
6038
|
selector: 'input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]',
|
|
@@ -6093,10 +6093,10 @@ class RequiredValidator extends AbstractValidatorDirective {
|
|
|
6093
6093
|
enabled(input) {
|
|
6094
6094
|
return input;
|
|
6095
6095
|
}
|
|
6096
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
6097
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
6096
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: RequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6097
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: RequiredValidator, 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 }); }
|
|
6098
6098
|
}
|
|
6099
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
6099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: RequiredValidator, decorators: [{
|
|
6100
6100
|
type: Directive,
|
|
6101
6101
|
args: [{
|
|
6102
6102
|
selector: ':not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]',
|
|
@@ -6133,10 +6133,10 @@ class CheckboxRequiredValidator extends RequiredValidator {
|
|
|
6133
6133
|
/** @internal */
|
|
6134
6134
|
this.createValidator = (input) => requiredTrueValidator;
|
|
6135
6135
|
}
|
|
6136
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
6137
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
6136
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: CheckboxRequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6137
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: CheckboxRequiredValidator, 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 }); }
|
|
6138
6138
|
}
|
|
6139
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
6139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: CheckboxRequiredValidator, decorators: [{
|
|
6140
6140
|
type: Directive,
|
|
6141
6141
|
args: [{
|
|
6142
6142
|
selector: 'input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]',
|
|
@@ -6194,10 +6194,10 @@ class EmailValidator extends AbstractValidatorDirective {
|
|
|
6194
6194
|
enabled(input) {
|
|
6195
6195
|
return input;
|
|
6196
6196
|
}
|
|
6197
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
6198
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
6197
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EmailValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6198
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: EmailValidator, selector: "[email][formControlName],[email][formControl],[email][ngModel]", inputs: { email: "email" }, providers: [EMAIL_VALIDATOR], usesInheritance: true, ngImport: i0 }); }
|
|
6199
6199
|
}
|
|
6200
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
6200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EmailValidator, decorators: [{
|
|
6201
6201
|
type: Directive,
|
|
6202
6202
|
args: [{
|
|
6203
6203
|
selector: '[email][formControlName],[email][formControl],[email][ngModel]',
|
|
@@ -6246,10 +6246,10 @@ class MinLengthValidator extends AbstractValidatorDirective {
|
|
|
6246
6246
|
/** @internal */
|
|
6247
6247
|
this.createValidator = (minlength) => minLengthValidator(minlength);
|
|
6248
6248
|
}
|
|
6249
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
6250
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
6249
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MinLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6250
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: MinLengthValidator, 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 }); }
|
|
6251
6251
|
}
|
|
6252
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
6252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MinLengthValidator, decorators: [{
|
|
6253
6253
|
type: Directive,
|
|
6254
6254
|
args: [{
|
|
6255
6255
|
selector: '[minlength][formControlName],[minlength][formControl],[minlength][ngModel]',
|
|
@@ -6299,10 +6299,10 @@ class MaxLengthValidator extends AbstractValidatorDirective {
|
|
|
6299
6299
|
/** @internal */
|
|
6300
6300
|
this.createValidator = (maxlength) => maxLengthValidator(maxlength);
|
|
6301
6301
|
}
|
|
6302
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
6303
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
6302
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MaxLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6303
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: MaxLengthValidator, 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 }); }
|
|
6304
6304
|
}
|
|
6305
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
6305
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MaxLengthValidator, decorators: [{
|
|
6306
6306
|
type: Directive,
|
|
6307
6307
|
args: [{
|
|
6308
6308
|
selector: '[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]',
|
|
@@ -6354,10 +6354,10 @@ class PatternValidator extends AbstractValidatorDirective {
|
|
|
6354
6354
|
/** @internal */
|
|
6355
6355
|
this.createValidator = (input) => patternValidator(input);
|
|
6356
6356
|
}
|
|
6357
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
6358
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
6357
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: PatternValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6358
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: { pattern: "pattern" }, host: { properties: { "attr.pattern": "_enabled ? pattern : null" } }, providers: [PATTERN_VALIDATOR], usesInheritance: true, ngImport: i0 }); }
|
|
6359
6359
|
}
|
|
6360
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
6360
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: PatternValidator, decorators: [{
|
|
6361
6361
|
type: Directive,
|
|
6362
6362
|
args: [{
|
|
6363
6363
|
selector: '[pattern][formControlName],[pattern][formControl],[pattern][ngModel]',
|
|
@@ -6396,8 +6396,8 @@ const REACTIVE_DRIVEN_DIRECTIVES = [FormControlDirective, FormGroupDirective, Fo
|
|
|
6396
6396
|
* Internal module used for sharing directives between FormsModule and ReactiveFormsModule
|
|
6397
6397
|
*/
|
|
6398
6398
|
class ɵInternalFormsSharedModule {
|
|
6399
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
6400
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.
|
|
6399
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: ɵInternalFormsSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6400
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.1", ngImport: i0, type: ɵInternalFormsSharedModule, declarations: [ɵNgNoValidate,
|
|
6401
6401
|
NgSelectOption,
|
|
6402
6402
|
ɵNgSelectMultipleOption,
|
|
6403
6403
|
DefaultValueAccessor,
|
|
@@ -6436,9 +6436,9 @@ class ɵInternalFormsSharedModule {
|
|
|
6436
6436
|
EmailValidator,
|
|
6437
6437
|
MinValidator,
|
|
6438
6438
|
MaxValidator] }); }
|
|
6439
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.
|
|
6439
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: ɵInternalFormsSharedModule, imports: [RadioControlRegistryModule] }); }
|
|
6440
6440
|
}
|
|
6441
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
6441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: ɵInternalFormsSharedModule, decorators: [{
|
|
6442
6442
|
type: NgModule,
|
|
6443
6443
|
args: [{
|
|
6444
6444
|
declarations: SHARED_FORM_DIRECTIVES,
|
|
@@ -7091,10 +7091,10 @@ class FormBuilder {
|
|
|
7091
7091
|
return this.control(controls);
|
|
7092
7092
|
}
|
|
7093
7093
|
}
|
|
7094
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
7095
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
7094
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: FormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7095
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: FormBuilder, providedIn: 'root' }); }
|
|
7096
7096
|
}
|
|
7097
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
7097
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: FormBuilder, decorators: [{
|
|
7098
7098
|
type: Injectable,
|
|
7099
7099
|
args: [{ providedIn: 'root' }]
|
|
7100
7100
|
}] });
|
|
@@ -7106,10 +7106,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0-rc.0", ng
|
|
|
7106
7106
|
* @publicApi
|
|
7107
7107
|
*/
|
|
7108
7108
|
class NonNullableFormBuilder {
|
|
7109
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
7110
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
7109
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NonNullableFormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7110
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NonNullableFormBuilder, providedIn: 'root', useFactory: () => inject(FormBuilder).nonNullable }); }
|
|
7111
7111
|
}
|
|
7112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
7112
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NonNullableFormBuilder, decorators: [{
|
|
7113
7113
|
type: Injectable,
|
|
7114
7114
|
args: [{
|
|
7115
7115
|
providedIn: 'root',
|
|
@@ -7135,10 +7135,10 @@ class UntypedFormBuilder extends FormBuilder {
|
|
|
7135
7135
|
array(controlsConfig, validatorOrOpts, asyncValidator) {
|
|
7136
7136
|
return super.array(controlsConfig, validatorOrOpts, asyncValidator);
|
|
7137
7137
|
}
|
|
7138
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
7139
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
7138
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: UntypedFormBuilder, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7139
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: UntypedFormBuilder, providedIn: 'root' }); }
|
|
7140
7140
|
}
|
|
7141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
7141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: UntypedFormBuilder, decorators: [{
|
|
7142
7142
|
type: Injectable,
|
|
7143
7143
|
args: [{ providedIn: 'root' }]
|
|
7144
7144
|
}] });
|
|
@@ -7151,7 +7151,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0-rc.0", ng
|
|
|
7151
7151
|
/**
|
|
7152
7152
|
* @publicApi
|
|
7153
7153
|
*/
|
|
7154
|
-
const VERSION = new Version('16.1.
|
|
7154
|
+
const VERSION = new Version('16.1.1');
|
|
7155
7155
|
|
|
7156
7156
|
/**
|
|
7157
7157
|
* Exports the required providers and directives for template-driven forms,
|
|
@@ -7183,11 +7183,11 @@ class FormsModule {
|
|
|
7183
7183
|
}]
|
|
7184
7184
|
};
|
|
7185
7185
|
}
|
|
7186
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
7187
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.
|
|
7188
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.
|
|
7186
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: FormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7187
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.1", ngImport: i0, type: FormsModule, declarations: [NgModel, NgModelGroup, NgForm], exports: [ɵInternalFormsSharedModule, NgModel, NgModelGroup, NgForm] }); }
|
|
7188
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: FormsModule, imports: [ɵInternalFormsSharedModule] }); }
|
|
7189
7189
|
}
|
|
7190
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
7190
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: FormsModule, decorators: [{
|
|
7191
7191
|
type: NgModule,
|
|
7192
7192
|
args: [{
|
|
7193
7193
|
declarations: TEMPLATE_DRIVEN_DIRECTIVES,
|
|
@@ -7233,11 +7233,11 @@ class ReactiveFormsModule {
|
|
|
7233
7233
|
]
|
|
7234
7234
|
};
|
|
7235
7235
|
}
|
|
7236
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
7237
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.
|
|
7238
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.
|
|
7236
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: ReactiveFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7237
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.1", ngImport: i0, type: ReactiveFormsModule, declarations: [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName], exports: [ɵInternalFormsSharedModule, FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName] }); }
|
|
7238
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: ReactiveFormsModule, imports: [ɵInternalFormsSharedModule] }); }
|
|
7239
7239
|
}
|
|
7240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
7240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: ReactiveFormsModule, decorators: [{
|
|
7241
7241
|
type: NgModule,
|
|
7242
7242
|
args: [{
|
|
7243
7243
|
declarations: [REACTIVE_DRIVEN_DIRECTIVES],
|