@angular/forms 14.1.0-next.2 → 14.1.0-rc.0
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/esm2020/src/directives/abstract_form_group_directive.mjs +3 -3
- package/esm2020/src/directives/checkbox_value_accessor.mjs +3 -3
- package/esm2020/src/directives/control_value_accessor.mjs +6 -6
- package/esm2020/src/directives/default_value_accessor.mjs +3 -3
- package/esm2020/src/directives/ng_control_status.mjs +6 -6
- package/esm2020/src/directives/ng_form.mjs +3 -3
- package/esm2020/src/directives/ng_model.mjs +3 -3
- package/esm2020/src/directives/ng_model_group.mjs +3 -3
- package/esm2020/src/directives/ng_no_validate_directive.mjs +3 -3
- package/esm2020/src/directives/number_value_accessor.mjs +3 -3
- package/esm2020/src/directives/radio_control_value_accessor.mjs +13 -13
- package/esm2020/src/directives/range_value_accessor.mjs +3 -3
- package/esm2020/src/directives/reactive_directives/form_control_directive.mjs +3 -3
- package/esm2020/src/directives/reactive_directives/form_control_name.mjs +3 -3
- package/esm2020/src/directives/reactive_directives/form_group_directive.mjs +3 -3
- package/esm2020/src/directives/reactive_directives/form_group_name.mjs +6 -6
- package/esm2020/src/directives/reactive_errors.mjs +7 -6
- package/esm2020/src/directives/select_control_value_accessor.mjs +9 -9
- package/esm2020/src/directives/select_multiple_control_value_accessor.mjs +9 -9
- package/esm2020/src/directives/shared.mjs +3 -2
- package/esm2020/src/directives/template_driven_errors.mjs +6 -5
- package/esm2020/src/directives/validators.mjs +27 -27
- package/esm2020/src/directives.mjs +4 -4
- package/esm2020/src/errors.mjs +1 -1
- package/esm2020/src/form_builder.mjs +10 -16
- package/esm2020/src/form_providers.mjs +8 -8
- package/esm2020/src/forms.mjs +1 -1
- package/esm2020/src/model/abstract_model.mjs +35 -1
- package/esm2020/src/validators.mjs +16 -9
- package/esm2020/src/version.mjs +1 -1
- package/fesm2015/forms.mjs +188 -153
- package/fesm2015/forms.mjs.map +1 -1
- package/fesm2020/forms.mjs +188 -153
- package/fesm2020/forms.mjs.map +1 -1
- package/index.d.ts +38 -4
- package/package.json +4 -4
package/fesm2015/forms.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.1.0-
|
|
2
|
+
* @license Angular v14.1.0-rc.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
|
-
import { Directive, InjectionToken, forwardRef, Optional, Inject, ɵisPromise, ɵisObservable,
|
|
8
|
+
import { Directive, InjectionToken, forwardRef, Optional, Inject, ɵisPromise, ɵisObservable, ɵRuntimeError, Self, EventEmitter, Input, Host, SkipSelf, ɵcoerceToBoolean, ChangeDetectorRef, Output, NgModule, Injectable, inject, Version } from '@angular/core';
|
|
9
9
|
import { ɵgetDOM } from '@angular/common';
|
|
10
10
|
import { from, forkJoin } from 'rxjs';
|
|
11
11
|
import { map } from 'rxjs/operators';
|
|
@@ -70,9 +70,9 @@ class BaseControlValueAccessor {
|
|
|
70
70
|
this.setProperty('disabled', isDisabled);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
BaseControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
74
|
-
BaseControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
75
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
73
|
+
BaseControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: BaseControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
74
|
+
BaseControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", type: BaseControlValueAccessor, ngImport: i0 });
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: BaseControlValueAccessor, decorators: [{
|
|
76
76
|
type: Directive
|
|
77
77
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; } });
|
|
78
78
|
/**
|
|
@@ -86,9 +86,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.2",
|
|
|
86
86
|
*/
|
|
87
87
|
class BuiltInControlValueAccessor extends BaseControlValueAccessor {
|
|
88
88
|
}
|
|
89
|
-
BuiltInControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
90
|
-
BuiltInControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
91
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
89
|
+
BuiltInControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: BuiltInControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
90
|
+
BuiltInControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", type: BuiltInControlValueAccessor, usesInheritance: true, ngImport: i0 });
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: BuiltInControlValueAccessor, decorators: [{
|
|
92
92
|
type: Directive
|
|
93
93
|
}] });
|
|
94
94
|
/**
|
|
@@ -144,9 +144,9 @@ class CheckboxControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
144
144
|
this.setProperty('checked', value);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
CheckboxControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
148
|
-
CheckboxControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
147
|
+
CheckboxControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: CheckboxControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
148
|
+
CheckboxControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: CheckboxControlValueAccessor, decorators: [{
|
|
150
150
|
type: Directive,
|
|
151
151
|
args: [{
|
|
152
152
|
selector: 'input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]',
|
|
@@ -251,9 +251,9 @@ class DefaultValueAccessor extends BaseControlValueAccessor {
|
|
|
251
251
|
this._compositionMode && this.onChange(value);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
DefaultValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
255
|
-
DefaultValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
254
|
+
DefaultValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: DefaultValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: COMPOSITION_BUFFER_MODE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
255
|
+
DefaultValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
256
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: DefaultValueAccessor, decorators: [{
|
|
257
257
|
type: Directive,
|
|
258
258
|
args: [{
|
|
259
259
|
selector: 'input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]',
|
|
@@ -284,6 +284,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.2",
|
|
|
284
284
|
* Use of this source code is governed by an MIT-style license that can be
|
|
285
285
|
* found in the LICENSE file at https://angular.io/license
|
|
286
286
|
*/
|
|
287
|
+
const NG_DEV_MODE$1 = typeof ngDevMode === 'undefined' || !!ngDevMode;
|
|
287
288
|
function isEmptyInputValue(value) {
|
|
288
289
|
/**
|
|
289
290
|
* Check if the object is a string or array before evaluating the length attribute.
|
|
@@ -498,7 +499,7 @@ class Validators {
|
|
|
498
499
|
*
|
|
499
500
|
* Tests the value using a [regular
|
|
500
501
|
* expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions)
|
|
501
|
-
* pattern suitable for common
|
|
502
|
+
* pattern suitable for common use cases. The pattern is based on the definition of a valid email
|
|
502
503
|
* address in the [WHATWG HTML
|
|
503
504
|
* specification](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with
|
|
504
505
|
* some enhancements to incorporate more RFC rules (such as rules related to domain names and the
|
|
@@ -796,10 +797,16 @@ function nullValidator(control) {
|
|
|
796
797
|
function isPresent(o) {
|
|
797
798
|
return o != null;
|
|
798
799
|
}
|
|
799
|
-
function toObservable(
|
|
800
|
-
const obs = ɵisPromise(
|
|
801
|
-
if (!(ɵisObservable(obs))
|
|
802
|
-
|
|
800
|
+
function toObservable(value) {
|
|
801
|
+
const obs = ɵisPromise(value) ? from(value) : value;
|
|
802
|
+
if (NG_DEV_MODE$1 && !(ɵisObservable(obs))) {
|
|
803
|
+
let errorMessage = `Expected async validator to return Promise or Observable.`;
|
|
804
|
+
// A synchronous validator will return object or null.
|
|
805
|
+
if (typeof value === 'object') {
|
|
806
|
+
errorMessage +=
|
|
807
|
+
' Are you using a synchronous validator where an async validator is expected?';
|
|
808
|
+
}
|
|
809
|
+
throw new ɵRuntimeError(-1101 /* RuntimeErrorCode.WRONG_VALIDATOR_RETURN_TYPE */, errorMessage);
|
|
803
810
|
}
|
|
804
811
|
return obs;
|
|
805
812
|
}
|
|
@@ -927,7 +934,7 @@ function hasValidator(validators, validator) {
|
|
|
927
934
|
* Combines two arrays of validators into one. If duplicates are provided, only one will be added.
|
|
928
935
|
*
|
|
929
936
|
* @param validators The new validators.
|
|
930
|
-
* @param currentValidators The base array of
|
|
937
|
+
* @param currentValidators The base array of current validators.
|
|
931
938
|
* @returns An array of validators.
|
|
932
939
|
*/
|
|
933
940
|
function addValidators(validators, currentValidators) {
|
|
@@ -935,7 +942,7 @@ function addValidators(validators, currentValidators) {
|
|
|
935
942
|
const validatorsToAdd = makeValidatorsArray(validators);
|
|
936
943
|
validatorsToAdd.forEach((v) => {
|
|
937
944
|
// Note: if there are duplicate entries in the new validators array,
|
|
938
|
-
// only the first one would be added to the current list of
|
|
945
|
+
// only the first one would be added to the current list of validators.
|
|
939
946
|
// Duplicate ones would be ignored since `hasValidator` would detect
|
|
940
947
|
// the presence of a validator function and we update the current list in place.
|
|
941
948
|
if (!hasValidator(current, v)) {
|
|
@@ -1382,9 +1389,9 @@ class NgControlStatus extends AbstractControlStatus {
|
|
|
1382
1389
|
super(cd);
|
|
1383
1390
|
}
|
|
1384
1391
|
}
|
|
1385
|
-
NgControlStatus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
1386
|
-
NgControlStatus.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
1387
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
1392
|
+
NgControlStatus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: NgControlStatus, deps: [{ token: NgControl, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1393
|
+
NgControlStatus.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
1394
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: NgControlStatus, decorators: [{
|
|
1388
1395
|
type: Directive,
|
|
1389
1396
|
args: [{ selector: '[formControlName],[ngModel],[formControl]', host: ngControlStatusHost }]
|
|
1390
1397
|
}], ctorParameters: function () {
|
|
@@ -1409,9 +1416,9 @@ class NgControlStatusGroup extends AbstractControlStatus {
|
|
|
1409
1416
|
super(cd);
|
|
1410
1417
|
}
|
|
1411
1418
|
}
|
|
1412
|
-
NgControlStatusGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
1413
|
-
NgControlStatusGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
1414
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
1419
|
+
NgControlStatusGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: NgControlStatusGroup, deps: [{ token: ControlContainer, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1420
|
+
NgControlStatusGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
1421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: NgControlStatusGroup, decorators: [{
|
|
1415
1422
|
type: Directive,
|
|
1416
1423
|
args: [{
|
|
1417
1424
|
selector: '[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]',
|
|
@@ -1490,7 +1497,7 @@ const ngModelWithFormGroupExample = `
|
|
|
1490
1497
|
* found in the LICENSE file at https://angular.io/license
|
|
1491
1498
|
*/
|
|
1492
1499
|
function controlParentException() {
|
|
1493
|
-
return new
|
|
1500
|
+
return new ɵRuntimeError(1050 /* RuntimeErrorCode.FORM_CONTROL_NAME_MISSING_PARENT */, `formControlName must be used with a parent formGroup directive. You'll want to add a formGroup
|
|
1494
1501
|
directive and pass it an existing FormGroup instance (you can create one in your class).
|
|
1495
1502
|
|
|
1496
1503
|
Example:
|
|
@@ -1498,7 +1505,7 @@ function controlParentException() {
|
|
|
1498
1505
|
${formControlNameExample}`);
|
|
1499
1506
|
}
|
|
1500
1507
|
function ngModelGroupException() {
|
|
1501
|
-
return new
|
|
1508
|
+
return new ɵRuntimeError(1051 /* RuntimeErrorCode.FORM_CONTROL_NAME_INSIDE_MODEL_GROUP */, `formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents
|
|
1502
1509
|
that also have a "form" prefix: formGroupName, formArrayName, or formGroup.
|
|
1503
1510
|
|
|
1504
1511
|
Option 1: Update the parent to be formGroupName (reactive form strategy)
|
|
@@ -1510,14 +1517,14 @@ function ngModelGroupException() {
|
|
|
1510
1517
|
${ngModelGroupExample}`);
|
|
1511
1518
|
}
|
|
1512
1519
|
function missingFormException() {
|
|
1513
|
-
return new
|
|
1520
|
+
return new ɵRuntimeError(1052 /* RuntimeErrorCode.FORM_GROUP_MISSING_INSTANCE */, `formGroup expects a FormGroup instance. Please pass one in.
|
|
1514
1521
|
|
|
1515
1522
|
Example:
|
|
1516
1523
|
|
|
1517
1524
|
${formControlNameExample}`);
|
|
1518
1525
|
}
|
|
1519
1526
|
function groupParentException() {
|
|
1520
|
-
return new
|
|
1527
|
+
return new ɵRuntimeError(1053 /* RuntimeErrorCode.FORM_GROUP_NAME_MISSING_PARENT */, `formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup
|
|
1521
1528
|
directive and pass it an existing FormGroup instance (you can create one in your class).
|
|
1522
1529
|
|
|
1523
1530
|
Example:
|
|
@@ -1525,7 +1532,7 @@ function groupParentException() {
|
|
|
1525
1532
|
${formGroupNameExample}`);
|
|
1526
1533
|
}
|
|
1527
1534
|
function arrayParentException() {
|
|
1528
|
-
return new
|
|
1535
|
+
return new ɵRuntimeError(1054 /* RuntimeErrorCode.FORM_ARRAY_NAME_MISSING_PARENT */, `formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup
|
|
1529
1536
|
directive and pass it an existing FormGroup instance (you can create one in your class).
|
|
1530
1537
|
|
|
1531
1538
|
Example:
|
|
@@ -1913,6 +1920,24 @@ class AbstractControl {
|
|
|
1913
1920
|
* validator function as the one that was originally set. If a provided validator is not found,
|
|
1914
1921
|
* it is ignored.
|
|
1915
1922
|
*
|
|
1923
|
+
* @usageNotes
|
|
1924
|
+
*
|
|
1925
|
+
* ### Reference to a ValidatorFn
|
|
1926
|
+
*
|
|
1927
|
+
* ```
|
|
1928
|
+
* // Reference to the RequiredValidator
|
|
1929
|
+
* const ctrl = new FormControl<string | null>('', Validators.required);
|
|
1930
|
+
* ctrl.removeValidators(Validators.required);
|
|
1931
|
+
*
|
|
1932
|
+
* // Reference to anonymous function inside MinValidator
|
|
1933
|
+
* const minValidator = Validators.min(3);
|
|
1934
|
+
* const ctrl = new FormControl<string | null>('', minValidator);
|
|
1935
|
+
* expect(ctrl.hasValidator(minValidator)).toEqual(true)
|
|
1936
|
+
* expect(ctrl.hasValidator(Validators.min(3)).toEqual(false)
|
|
1937
|
+
*
|
|
1938
|
+
* ctrl.removeValidators(minValidator);
|
|
1939
|
+
* ```
|
|
1940
|
+
*
|
|
1916
1941
|
* When you add or remove a validator at run time, you must call
|
|
1917
1942
|
* `updateValueAndValidity()` for the new validation to take effect.
|
|
1918
1943
|
*
|
|
@@ -1939,6 +1964,22 @@ class AbstractControl {
|
|
|
1939
1964
|
* Check whether a synchronous validator function is present on this control. The provided
|
|
1940
1965
|
* validator must be a reference to the exact same function that was provided.
|
|
1941
1966
|
*
|
|
1967
|
+
* @usageNotes
|
|
1968
|
+
*
|
|
1969
|
+
* ### Reference to a ValidatorFn
|
|
1970
|
+
*
|
|
1971
|
+
* ```
|
|
1972
|
+
* // Reference to the RequiredValidator
|
|
1973
|
+
* const ctrl = new FormControl<number | null>(0, Validators.required);
|
|
1974
|
+
* expect(ctrl.hasValidator(Validators.required)).toEqual(true)
|
|
1975
|
+
*
|
|
1976
|
+
* // Reference to anonymous function inside MinValidator
|
|
1977
|
+
* const minValidator = Validators.min(3);
|
|
1978
|
+
* const ctrl = new FormControl<number | null>(0, minValidator);
|
|
1979
|
+
* expect(ctrl.hasValidator(minValidator)).toEqual(true)
|
|
1980
|
+
* expect(ctrl.hasValidator(Validators.min(3)).toEqual(false)
|
|
1981
|
+
* ```
|
|
1982
|
+
*
|
|
1942
1983
|
* @param validator The validator to check for presence. Compared by function reference.
|
|
1943
1984
|
* @returns Whether the provided validator was found on this control.
|
|
1944
1985
|
*/
|
|
@@ -3174,7 +3215,7 @@ function _describeControlLocation(dir) {
|
|
|
3174
3215
|
}
|
|
3175
3216
|
function _throwInvalidValueAccessorError(dir) {
|
|
3176
3217
|
const loc = _describeControlLocation(dir);
|
|
3177
|
-
throw new
|
|
3218
|
+
throw new ɵRuntimeError(1200 /* RuntimeErrorCode.NG_VALUE_ACCESSOR_NOT_PROVIDED */, `Value accessor was not provided as an array for form control with ${loc}. ` +
|
|
3178
3219
|
`Check that the \`NG_VALUE_ACCESSOR\` token is configured as a \`multi: true\` provider.`);
|
|
3179
3220
|
}
|
|
3180
3221
|
function isPropertyUpdated(changes, viewModel) {
|
|
@@ -3518,9 +3559,9 @@ class NgForm extends ControlContainer {
|
|
|
3518
3559
|
return path.length ? this.form.get(path) : this.form;
|
|
3519
3560
|
}
|
|
3520
3561
|
}
|
|
3521
|
-
NgForm.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
3522
|
-
NgForm.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
3523
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
3562
|
+
NgForm.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: NgForm, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3563
|
+
NgForm.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
3564
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: NgForm, decorators: [{
|
|
3524
3565
|
type: Directive,
|
|
3525
3566
|
args: [{
|
|
3526
3567
|
selector: 'form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]',
|
|
@@ -3728,9 +3769,9 @@ class AbstractFormGroupDirective extends ControlContainer {
|
|
|
3728
3769
|
/** @internal */
|
|
3729
3770
|
_checkParentType() { }
|
|
3730
3771
|
}
|
|
3731
|
-
AbstractFormGroupDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
3732
|
-
AbstractFormGroupDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
3733
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
3772
|
+
AbstractFormGroupDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: AbstractFormGroupDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3773
|
+
AbstractFormGroupDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", type: AbstractFormGroupDirective, usesInheritance: true, ngImport: i0 });
|
|
3774
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: AbstractFormGroupDirective, decorators: [{
|
|
3734
3775
|
type: Directive
|
|
3735
3776
|
}] });
|
|
3736
3777
|
|
|
@@ -3742,7 +3783,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.2",
|
|
|
3742
3783
|
* found in the LICENSE file at https://angular.io/license
|
|
3743
3784
|
*/
|
|
3744
3785
|
function modelParentException() {
|
|
3745
|
-
return new
|
|
3786
|
+
return new ɵRuntimeError(1350 /* RuntimeErrorCode.NGMODEL_IN_FORM_GROUP */, `
|
|
3746
3787
|
ngModel cannot be used to register form controls with a parent formGroup directive. Try using
|
|
3747
3788
|
formGroup's partner directive "formControlName" instead. Example:
|
|
3748
3789
|
|
|
@@ -3755,7 +3796,7 @@ function modelParentException() {
|
|
|
3755
3796
|
${ngModelWithFormGroupExample}`);
|
|
3756
3797
|
}
|
|
3757
3798
|
function formGroupNameException() {
|
|
3758
|
-
return new
|
|
3799
|
+
return new ɵRuntimeError(1351 /* RuntimeErrorCode.NGMODEL_IN_FORM_GROUP_NAME */, `
|
|
3759
3800
|
ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.
|
|
3760
3801
|
|
|
3761
3802
|
Option 1: Use formControlName instead of ngModel (reactive strategy):
|
|
@@ -3767,14 +3808,14 @@ function formGroupNameException() {
|
|
|
3767
3808
|
${ngModelGroupExample}`);
|
|
3768
3809
|
}
|
|
3769
3810
|
function missingNameException() {
|
|
3770
|
-
return new
|
|
3811
|
+
return new ɵRuntimeError(1352 /* RuntimeErrorCode.NGMODEL_WITHOUT_NAME */, `If ngModel is used within a form tag, either the name attribute must be set or the form
|
|
3771
3812
|
control must be defined as 'standalone' in ngModelOptions.
|
|
3772
3813
|
|
|
3773
3814
|
Example 1: <input [(ngModel)]="person.firstName" name="first">
|
|
3774
3815
|
Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">`);
|
|
3775
3816
|
}
|
|
3776
3817
|
function modelGroupParentException() {
|
|
3777
|
-
return new
|
|
3818
|
+
return new ɵRuntimeError(1353 /* RuntimeErrorCode.NGMODELGROUP_IN_FORM_GROUP */, `
|
|
3778
3819
|
ngModelGroup cannot be used with a parent formGroup directive.
|
|
3779
3820
|
|
|
3780
3821
|
Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):
|
|
@@ -3838,9 +3879,9 @@ class NgModelGroup extends AbstractFormGroupDirective {
|
|
|
3838
3879
|
}
|
|
3839
3880
|
}
|
|
3840
3881
|
}
|
|
3841
|
-
NgModelGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
3842
|
-
NgModelGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
3843
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
3882
|
+
NgModelGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", 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 });
|
|
3883
|
+
NgModelGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", type: NgModelGroup, selector: "[ngModelGroup]", inputs: { name: ["ngModelGroup", "name"] }, providers: [modelGroupProvider], exportAs: ["ngModelGroup"], usesInheritance: true, ngImport: i0 });
|
|
3884
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: NgModelGroup, decorators: [{
|
|
3844
3885
|
type: Directive,
|
|
3845
3886
|
args: [{ selector: '[ngModelGroup]', providers: [modelGroupProvider], exportAs: 'ngModelGroup' }]
|
|
3846
3887
|
}], ctorParameters: function () {
|
|
@@ -4121,9 +4162,9 @@ class NgModel extends NgControl {
|
|
|
4121
4162
|
return this._parent ? controlPath(controlName, this._parent) : [controlName];
|
|
4122
4163
|
}
|
|
4123
4164
|
}
|
|
4124
|
-
NgModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
4125
|
-
NgModel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
4126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
4165
|
+
NgModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", 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 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4166
|
+
NgModel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
4167
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: NgModel, decorators: [{
|
|
4127
4168
|
type: Directive,
|
|
4128
4169
|
args: [{
|
|
4129
4170
|
selector: '[ngModel]:not([formControlName]):not([formControl])',
|
|
@@ -4204,9 +4245,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.2",
|
|
|
4204
4245
|
*/
|
|
4205
4246
|
class ɵNgNoValidate {
|
|
4206
4247
|
}
|
|
4207
|
-
ɵNgNoValidate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
4208
|
-
ɵNgNoValidate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
4209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
4248
|
+
ɵNgNoValidate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: ɵNgNoValidate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4249
|
+
ɵNgNoValidate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", type: ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])", host: { attributes: { "novalidate": "" } }, ngImport: i0 });
|
|
4250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: ɵNgNoValidate, decorators: [{
|
|
4210
4251
|
type: Directive,
|
|
4211
4252
|
args: [{
|
|
4212
4253
|
selector: 'form:not([ngNoForm]):not([ngNativeValidate])',
|
|
@@ -4270,9 +4311,9 @@ class NumberValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4270
4311
|
};
|
|
4271
4312
|
}
|
|
4272
4313
|
}
|
|
4273
|
-
NumberValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
4274
|
-
NumberValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
4275
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
4314
|
+
NumberValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: NumberValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4315
|
+
NumberValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
4316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: NumberValueAccessor, decorators: [{
|
|
4276
4317
|
type: Directive,
|
|
4277
4318
|
args: [{
|
|
4278
4319
|
selector: 'input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]',
|
|
@@ -4294,7 +4335,7 @@ const RADIO_VALUE_ACCESSOR = {
|
|
|
4294
4335
|
multi: true
|
|
4295
4336
|
};
|
|
4296
4337
|
function throwNameError() {
|
|
4297
|
-
throw new
|
|
4338
|
+
throw new ɵRuntimeError(1202 /* RuntimeErrorCode.NAME_AND_FORM_CONTROL_NAME_MUST_MATCH */, `
|
|
4298
4339
|
If you define both a name and a formControlName attribute on your radio button, their values
|
|
4299
4340
|
must match. Ex: <input type="radio" formControlName="food" name="food">
|
|
4300
4341
|
`);
|
|
@@ -4307,10 +4348,10 @@ function throwNameError() {
|
|
|
4307
4348
|
*/
|
|
4308
4349
|
class RadioControlRegistryModule {
|
|
4309
4350
|
}
|
|
4310
|
-
RadioControlRegistryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
4311
|
-
RadioControlRegistryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0-
|
|
4312
|
-
RadioControlRegistryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0-
|
|
4313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
4351
|
+
RadioControlRegistryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: RadioControlRegistryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4352
|
+
RadioControlRegistryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0-rc.0", ngImport: i0, type: RadioControlRegistryModule });
|
|
4353
|
+
RadioControlRegistryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: RadioControlRegistryModule });
|
|
4354
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: RadioControlRegistryModule, decorators: [{
|
|
4314
4355
|
type: NgModule
|
|
4315
4356
|
}] });
|
|
4316
4357
|
/**
|
|
@@ -4358,9 +4399,9 @@ class RadioControlRegistry {
|
|
|
4358
4399
|
controlPair[1].name === accessor.name;
|
|
4359
4400
|
}
|
|
4360
4401
|
}
|
|
4361
|
-
RadioControlRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
4362
|
-
RadioControlRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-
|
|
4363
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
4402
|
+
RadioControlRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: RadioControlRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4403
|
+
RadioControlRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: RadioControlRegistry, providedIn: RadioControlRegistryModule });
|
|
4404
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: RadioControlRegistry, decorators: [{
|
|
4364
4405
|
type: Injectable,
|
|
4365
4406
|
args: [{ providedIn: RadioControlRegistryModule }]
|
|
4366
4407
|
}] });
|
|
@@ -4444,9 +4485,9 @@ class RadioControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4444
4485
|
this.name = this.formControlName;
|
|
4445
4486
|
}
|
|
4446
4487
|
}
|
|
4447
|
-
RadioControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
4448
|
-
RadioControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
4449
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
4488
|
+
RadioControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: RadioControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: RadioControlRegistry }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4489
|
+
RadioControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
4490
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: RadioControlValueAccessor, decorators: [{
|
|
4450
4491
|
type: Directive,
|
|
4451
4492
|
args: [{
|
|
4452
4493
|
selector: 'input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]',
|
|
@@ -4515,9 +4556,9 @@ class RangeValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4515
4556
|
};
|
|
4516
4557
|
}
|
|
4517
4558
|
}
|
|
4518
|
-
RangeValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
4519
|
-
RangeValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
4520
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
4559
|
+
RangeValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: RangeValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4560
|
+
RangeValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
4561
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: RangeValueAccessor, decorators: [{
|
|
4521
4562
|
type: Directive,
|
|
4522
4563
|
args: [{
|
|
4523
4564
|
selector: 'input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]',
|
|
@@ -4655,9 +4696,9 @@ class FormControlDirective extends NgControl {
|
|
|
4655
4696
|
* @internal
|
|
4656
4697
|
*/
|
|
4657
4698
|
FormControlDirective._ngModelWarningSentOnce = false;
|
|
4658
|
-
FormControlDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
4659
|
-
FormControlDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
4660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
4699
|
+
FormControlDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", 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 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4700
|
+
FormControlDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
4701
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: FormControlDirective, decorators: [{
|
|
4661
4702
|
type: Directive,
|
|
4662
4703
|
args: [{ selector: '[formControl]', providers: [formControlBinding], exportAs: 'ngForm' }]
|
|
4663
4704
|
}], ctorParameters: function () {
|
|
@@ -5003,9 +5044,9 @@ class FormGroupDirective extends ControlContainer {
|
|
|
5003
5044
|
}
|
|
5004
5045
|
}
|
|
5005
5046
|
}
|
|
5006
|
-
FormGroupDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
5007
|
-
FormGroupDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
5008
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
5047
|
+
FormGroupDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: FormGroupDirective, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5048
|
+
FormGroupDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
5049
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: FormGroupDirective, decorators: [{
|
|
5009
5050
|
type: Directive,
|
|
5010
5051
|
args: [{
|
|
5011
5052
|
selector: '[formGroup]',
|
|
@@ -5108,9 +5149,9 @@ class FormGroupName extends AbstractFormGroupDirective {
|
|
|
5108
5149
|
}
|
|
5109
5150
|
}
|
|
5110
5151
|
}
|
|
5111
|
-
FormGroupName.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
5112
|
-
FormGroupName.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
5113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
5152
|
+
FormGroupName.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", 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 });
|
|
5153
|
+
FormGroupName.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", type: FormGroupName, selector: "[formGroupName]", inputs: { name: ["formGroupName", "name"] }, providers: [formGroupNameProvider], usesInheritance: true, ngImport: i0 });
|
|
5154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: FormGroupName, decorators: [{
|
|
5114
5155
|
type: Directive,
|
|
5115
5156
|
args: [{ selector: '[formGroupName]', providers: [formGroupNameProvider] }]
|
|
5116
5157
|
}], ctorParameters: function () {
|
|
@@ -5220,9 +5261,9 @@ class FormArrayName extends ControlContainer {
|
|
|
5220
5261
|
}
|
|
5221
5262
|
}
|
|
5222
5263
|
}
|
|
5223
|
-
FormArrayName.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
5224
|
-
FormArrayName.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
5225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
5264
|
+
FormArrayName.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", 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 });
|
|
5265
|
+
FormArrayName.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", type: FormArrayName, selector: "[formArrayName]", inputs: { name: ["formArrayName", "name"] }, providers: [formArrayNameProvider], usesInheritance: true, ngImport: i0 });
|
|
5266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: FormArrayName, decorators: [{
|
|
5226
5267
|
type: Directive,
|
|
5227
5268
|
args: [{ selector: '[formArrayName]', providers: [formArrayNameProvider] }]
|
|
5228
5269
|
}], ctorParameters: function () {
|
|
@@ -5400,9 +5441,9 @@ class FormControlName extends NgControl {
|
|
|
5400
5441
|
* @internal
|
|
5401
5442
|
*/
|
|
5402
5443
|
FormControlName._ngModelWarningSentOnce = false;
|
|
5403
|
-
FormControlName.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
5404
|
-
FormControlName.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
5405
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
5444
|
+
FormControlName.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", 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 });
|
|
5445
|
+
FormControlName.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
5446
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: FormControlName, decorators: [{
|
|
5406
5447
|
type: Directive,
|
|
5407
5448
|
args: [{ selector: '[formControlName]', providers: [controlNameBinding] }]
|
|
5408
5449
|
}], ctorParameters: function () {
|
|
@@ -5547,7 +5588,7 @@ class SelectControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
5547
5588
|
*/
|
|
5548
5589
|
set compareWith(fn) {
|
|
5549
5590
|
if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
5550
|
-
throw new
|
|
5591
|
+
throw new ɵRuntimeError(1201 /* RuntimeErrorCode.COMPAREWITH_NOT_A_FN */, `compareWith must be a function, but received ${JSON.stringify(fn)}`);
|
|
5551
5592
|
}
|
|
5552
5593
|
this._compareWith = fn;
|
|
5553
5594
|
}
|
|
@@ -5589,9 +5630,9 @@ class SelectControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
5589
5630
|
return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;
|
|
5590
5631
|
}
|
|
5591
5632
|
}
|
|
5592
|
-
SelectControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
5593
|
-
SelectControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
5594
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
5633
|
+
SelectControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: SelectControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
5634
|
+
SelectControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
5635
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: SelectControlValueAccessor, decorators: [{
|
|
5595
5636
|
type: Directive,
|
|
5596
5637
|
args: [{
|
|
5597
5638
|
selector: 'select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]',
|
|
@@ -5653,9 +5694,9 @@ class NgSelectOption {
|
|
|
5653
5694
|
}
|
|
5654
5695
|
}
|
|
5655
5696
|
}
|
|
5656
|
-
NgSelectOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
5657
|
-
NgSelectOption.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
5658
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
5697
|
+
NgSelectOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: NgSelectOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5698
|
+
NgSelectOption.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", type: NgSelectOption, selector: "option", inputs: { ngValue: "ngValue", value: "value" }, ngImport: i0 });
|
|
5699
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: NgSelectOption, decorators: [{
|
|
5659
5700
|
type: Directive,
|
|
5660
5701
|
args: [{ selector: 'option' }]
|
|
5661
5702
|
}], ctorParameters: function () {
|
|
@@ -5750,7 +5791,7 @@ class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
5750
5791
|
*/
|
|
5751
5792
|
set compareWith(fn) {
|
|
5752
5793
|
if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
5753
|
-
throw new
|
|
5794
|
+
throw new ɵRuntimeError(1201 /* RuntimeErrorCode.COMPAREWITH_NOT_A_FN */, `compareWith must be a function, but received ${JSON.stringify(fn)}`);
|
|
5754
5795
|
}
|
|
5755
5796
|
this._compareWith = fn;
|
|
5756
5797
|
}
|
|
@@ -5829,9 +5870,9 @@ class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
5829
5870
|
return this._optionMap.has(id) ? this._optionMap.get(id)._value : valueString;
|
|
5830
5871
|
}
|
|
5831
5872
|
}
|
|
5832
|
-
SelectMultipleControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
5833
|
-
SelectMultipleControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
5834
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
5873
|
+
SelectMultipleControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: SelectMultipleControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
5874
|
+
SelectMultipleControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
5875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: SelectMultipleControlValueAccessor, decorators: [{
|
|
5835
5876
|
type: Directive,
|
|
5836
5877
|
args: [{
|
|
5837
5878
|
selector: 'select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]',
|
|
@@ -5903,9 +5944,9 @@ class ɵNgSelectMultipleOption {
|
|
|
5903
5944
|
}
|
|
5904
5945
|
}
|
|
5905
5946
|
}
|
|
5906
|
-
ɵNgSelectMultipleOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
5907
|
-
ɵNgSelectMultipleOption.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
5908
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
5947
|
+
ɵNgSelectMultipleOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: ɵNgSelectMultipleOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectMultipleControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5948
|
+
ɵNgSelectMultipleOption.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", type: ɵNgSelectMultipleOption, selector: "option", inputs: { ngValue: "ngValue", value: "value" }, ngImport: i0 });
|
|
5949
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: ɵNgSelectMultipleOption, decorators: [{
|
|
5909
5950
|
type: Directive,
|
|
5910
5951
|
args: [{ selector: 'option' }]
|
|
5911
5952
|
}], ctorParameters: function () {
|
|
@@ -5987,9 +6028,9 @@ class AbstractValidatorDirective {
|
|
|
5987
6028
|
return input != null /* both `null` and `undefined` */;
|
|
5988
6029
|
}
|
|
5989
6030
|
}
|
|
5990
|
-
AbstractValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
5991
|
-
AbstractValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
5992
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
6031
|
+
AbstractValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: AbstractValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6032
|
+
AbstractValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", type: AbstractValidatorDirective, usesOnChanges: true, ngImport: i0 });
|
|
6033
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: AbstractValidatorDirective, decorators: [{
|
|
5993
6034
|
type: Directive
|
|
5994
6035
|
}] });
|
|
5995
6036
|
/**
|
|
@@ -6033,9 +6074,9 @@ class MaxValidator extends AbstractValidatorDirective {
|
|
|
6033
6074
|
this.createValidator = (max) => maxValidator(max);
|
|
6034
6075
|
}
|
|
6035
6076
|
}
|
|
6036
|
-
MaxValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
6037
|
-
MaxValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
6038
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
6077
|
+
MaxValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: MaxValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6078
|
+
MaxValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
6079
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: MaxValidator, decorators: [{
|
|
6039
6080
|
type: Directive,
|
|
6040
6081
|
args: [{
|
|
6041
6082
|
selector: 'input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]',
|
|
@@ -6086,9 +6127,9 @@ class MinValidator extends AbstractValidatorDirective {
|
|
|
6086
6127
|
this.createValidator = (min) => minValidator(min);
|
|
6087
6128
|
}
|
|
6088
6129
|
}
|
|
6089
|
-
MinValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
6090
|
-
MinValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
6091
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
6130
|
+
MinValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: MinValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6131
|
+
MinValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
6132
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: MinValidator, decorators: [{
|
|
6092
6133
|
type: Directive,
|
|
6093
6134
|
args: [{
|
|
6094
6135
|
selector: 'input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]',
|
|
@@ -6150,9 +6191,9 @@ class RequiredValidator extends AbstractValidatorDirective {
|
|
|
6150
6191
|
return input;
|
|
6151
6192
|
}
|
|
6152
6193
|
}
|
|
6153
|
-
RequiredValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
6154
|
-
RequiredValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
6155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
6194
|
+
RequiredValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: RequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6195
|
+
RequiredValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
6196
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: RequiredValidator, decorators: [{
|
|
6156
6197
|
type: Directive,
|
|
6157
6198
|
args: [{
|
|
6158
6199
|
selector: ':not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]',
|
|
@@ -6190,9 +6231,9 @@ class CheckboxRequiredValidator extends RequiredValidator {
|
|
|
6190
6231
|
this.createValidator = (input) => requiredTrueValidator;
|
|
6191
6232
|
}
|
|
6192
6233
|
}
|
|
6193
|
-
CheckboxRequiredValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
6194
|
-
CheckboxRequiredValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
6195
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
6234
|
+
CheckboxRequiredValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: CheckboxRequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6235
|
+
CheckboxRequiredValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
6236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: CheckboxRequiredValidator, decorators: [{
|
|
6196
6237
|
type: Directive,
|
|
6197
6238
|
args: [{
|
|
6198
6239
|
selector: 'input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]',
|
|
@@ -6251,9 +6292,9 @@ class EmailValidator extends AbstractValidatorDirective {
|
|
|
6251
6292
|
return input;
|
|
6252
6293
|
}
|
|
6253
6294
|
}
|
|
6254
|
-
EmailValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
6255
|
-
EmailValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
6256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
6295
|
+
EmailValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: EmailValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6296
|
+
EmailValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", type: EmailValidator, selector: "[email][formControlName],[email][formControl],[email][ngModel]", inputs: { email: "email" }, providers: [EMAIL_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: EmailValidator, decorators: [{
|
|
6257
6298
|
type: Directive,
|
|
6258
6299
|
args: [{
|
|
6259
6300
|
selector: '[email][formControlName],[email][formControl],[email][ngModel]',
|
|
@@ -6303,9 +6344,9 @@ class MinLengthValidator extends AbstractValidatorDirective {
|
|
|
6303
6344
|
this.createValidator = (minlength) => minLengthValidator(minlength);
|
|
6304
6345
|
}
|
|
6305
6346
|
}
|
|
6306
|
-
MinLengthValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
6307
|
-
MinLengthValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
6308
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
6347
|
+
MinLengthValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: MinLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6348
|
+
MinLengthValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
6349
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: MinLengthValidator, decorators: [{
|
|
6309
6350
|
type: Directive,
|
|
6310
6351
|
args: [{
|
|
6311
6352
|
selector: '[minlength][formControlName],[minlength][formControl],[minlength][ngModel]',
|
|
@@ -6356,9 +6397,9 @@ class MaxLengthValidator extends AbstractValidatorDirective {
|
|
|
6356
6397
|
this.createValidator = (maxlength) => maxLengthValidator(maxlength);
|
|
6357
6398
|
}
|
|
6358
6399
|
}
|
|
6359
|
-
MaxLengthValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
6360
|
-
MaxLengthValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
6361
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
6400
|
+
MaxLengthValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: MaxLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6401
|
+
MaxLengthValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
6402
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: MaxLengthValidator, decorators: [{
|
|
6362
6403
|
type: Directive,
|
|
6363
6404
|
args: [{
|
|
6364
6405
|
selector: '[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]',
|
|
@@ -6411,9 +6452,9 @@ class PatternValidator extends AbstractValidatorDirective {
|
|
|
6411
6452
|
this.createValidator = (input) => patternValidator(input);
|
|
6412
6453
|
}
|
|
6413
6454
|
}
|
|
6414
|
-
PatternValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
6415
|
-
PatternValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-
|
|
6416
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
6455
|
+
PatternValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: PatternValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6456
|
+
PatternValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0-rc.0", 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 });
|
|
6457
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: PatternValidator, decorators: [{
|
|
6417
6458
|
type: Directive,
|
|
6418
6459
|
args: [{
|
|
6419
6460
|
selector: '[pattern][formControlName],[pattern][formControl],[pattern][ngModel]',
|
|
@@ -6460,8 +6501,8 @@ const REACTIVE_DRIVEN_DIRECTIVES = [FormControlDirective, FormGroupDirective, Fo
|
|
|
6460
6501
|
*/
|
|
6461
6502
|
class ɵInternalFormsSharedModule {
|
|
6462
6503
|
}
|
|
6463
|
-
ɵInternalFormsSharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
6464
|
-
ɵInternalFormsSharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0-
|
|
6504
|
+
ɵInternalFormsSharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: ɵInternalFormsSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6505
|
+
ɵInternalFormsSharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0-rc.0", ngImport: i0, type: ɵInternalFormsSharedModule, declarations: [ɵNgNoValidate,
|
|
6465
6506
|
NgSelectOption,
|
|
6466
6507
|
ɵNgSelectMultipleOption,
|
|
6467
6508
|
DefaultValueAccessor,
|
|
@@ -6500,8 +6541,8 @@ class ɵInternalFormsSharedModule {
|
|
|
6500
6541
|
EmailValidator,
|
|
6501
6542
|
MinValidator,
|
|
6502
6543
|
MaxValidator] });
|
|
6503
|
-
ɵInternalFormsSharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0-
|
|
6504
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
6544
|
+
ɵInternalFormsSharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: ɵInternalFormsSharedModule, imports: [RadioControlRegistryModule] });
|
|
6545
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: ɵInternalFormsSharedModule, decorators: [{
|
|
6505
6546
|
type: NgModule,
|
|
6506
6547
|
args: [{
|
|
6507
6548
|
declarations: SHARED_FORM_DIRECTIVES,
|
|
@@ -6531,10 +6572,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.2",
|
|
|
6531
6572
|
*/
|
|
6532
6573
|
class FormsModule {
|
|
6533
6574
|
}
|
|
6534
|
-
FormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
6535
|
-
FormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0-
|
|
6536
|
-
FormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0-
|
|
6537
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
6575
|
+
FormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: FormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6576
|
+
FormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0-rc.0", ngImport: i0, type: FormsModule, declarations: [NgModel, NgModelGroup, NgForm], exports: [ɵInternalFormsSharedModule, NgModel, NgModelGroup, NgForm] });
|
|
6577
|
+
FormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: FormsModule, imports: [ɵInternalFormsSharedModule] });
|
|
6578
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: FormsModule, decorators: [{
|
|
6538
6579
|
type: NgModule,
|
|
6539
6580
|
args: [{
|
|
6540
6581
|
declarations: TEMPLATE_DRIVEN_DIRECTIVES,
|
|
@@ -6572,10 +6613,10 @@ class ReactiveFormsModule {
|
|
|
6572
6613
|
};
|
|
6573
6614
|
}
|
|
6574
6615
|
}
|
|
6575
|
-
ReactiveFormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
6576
|
-
ReactiveFormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0-
|
|
6577
|
-
ReactiveFormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0-
|
|
6578
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
6616
|
+
ReactiveFormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: ReactiveFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6617
|
+
ReactiveFormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0-rc.0", ngImport: i0, type: ReactiveFormsModule, declarations: [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName], exports: [ɵInternalFormsSharedModule, FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName] });
|
|
6618
|
+
ReactiveFormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: ReactiveFormsModule, imports: [ɵInternalFormsSharedModule] });
|
|
6619
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: ReactiveFormsModule, decorators: [{
|
|
6579
6620
|
type: NgModule,
|
|
6580
6621
|
args: [{
|
|
6581
6622
|
declarations: [REACTIVE_DRIVEN_DIRECTIVES],
|
|
@@ -7051,12 +7092,6 @@ function isAbstractControlOptions(options) {
|
|
|
7051
7092
|
options.validators !== undefined ||
|
|
7052
7093
|
options.updateOn !== undefined);
|
|
7053
7094
|
}
|
|
7054
|
-
function isFormControlOptions(options) {
|
|
7055
|
-
return !!options &&
|
|
7056
|
-
(isAbstractControlOptions(options) ||
|
|
7057
|
-
options.initialValueIsDefault !== undefined ||
|
|
7058
|
-
options.nonNullable !== undefined);
|
|
7059
|
-
}
|
|
7060
7095
|
// clang-format on
|
|
7061
7096
|
/**
|
|
7062
7097
|
* @description
|
|
@@ -7231,9 +7266,9 @@ class FormBuilder {
|
|
|
7231
7266
|
}
|
|
7232
7267
|
}
|
|
7233
7268
|
}
|
|
7234
|
-
FormBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
7235
|
-
FormBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-
|
|
7236
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
7269
|
+
FormBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: FormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7270
|
+
FormBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: FormBuilder, providedIn: ReactiveFormsModule });
|
|
7271
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: FormBuilder, decorators: [{
|
|
7237
7272
|
type: Injectable,
|
|
7238
7273
|
args: [{ providedIn: ReactiveFormsModule }]
|
|
7239
7274
|
}] });
|
|
@@ -7246,9 +7281,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.2",
|
|
|
7246
7281
|
*/
|
|
7247
7282
|
class NonNullableFormBuilder {
|
|
7248
7283
|
}
|
|
7249
|
-
NonNullableFormBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
7250
|
-
NonNullableFormBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-
|
|
7251
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
7284
|
+
NonNullableFormBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: NonNullableFormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7285
|
+
NonNullableFormBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: NonNullableFormBuilder, providedIn: ReactiveFormsModule, useFactory: () => inject(FormBuilder).nonNullable });
|
|
7286
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: NonNullableFormBuilder, decorators: [{
|
|
7252
7287
|
type: Injectable,
|
|
7253
7288
|
args: [{
|
|
7254
7289
|
providedIn: ReactiveFormsModule,
|
|
@@ -7275,9 +7310,9 @@ class UntypedFormBuilder extends FormBuilder {
|
|
|
7275
7310
|
return super.array(controlsConfig, validatorOrOpts, asyncValidator);
|
|
7276
7311
|
}
|
|
7277
7312
|
}
|
|
7278
|
-
UntypedFormBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-
|
|
7279
|
-
UntypedFormBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-
|
|
7280
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-
|
|
7313
|
+
UntypedFormBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: UntypedFormBuilder, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
7314
|
+
UntypedFormBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: UntypedFormBuilder, providedIn: ReactiveFormsModule });
|
|
7315
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: UntypedFormBuilder, decorators: [{
|
|
7281
7316
|
type: Injectable,
|
|
7282
7317
|
args: [{ providedIn: ReactiveFormsModule }]
|
|
7283
7318
|
}] });
|
|
@@ -7292,7 +7327,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.2",
|
|
|
7292
7327
|
/**
|
|
7293
7328
|
* @publicApi
|
|
7294
7329
|
*/
|
|
7295
|
-
const VERSION = new Version('14.1.0-
|
|
7330
|
+
const VERSION = new Version('14.1.0-rc.0');
|
|
7296
7331
|
|
|
7297
7332
|
/**
|
|
7298
7333
|
* @license
|